From c10df6f5bc22adfb512641b58927185d96dfc82b Mon Sep 17 00:00:00 2001 From: "honwhy.wang" Date: Fri, 10 May 2024 23:54:13 +0800 Subject: [PATCH] remove stopPropagation --- entrypoints/SelectionPopper.vue | 2 +- package.json | 4 +- pnpm-lock.yaml | 77 ++++++++++++++++++++++++++++----- 3 files changed, 70 insertions(+), 13 deletions(-) diff --git a/entrypoints/SelectionPopper.vue b/entrypoints/SelectionPopper.vue index 2427d05..5f50cd3 100644 --- a/entrypoints/SelectionPopper.vue +++ b/entrypoints/SelectionPopper.vue @@ -62,7 +62,7 @@ function handleSelection() { } // 监听鼠标抬起事件以检测是否进行了文本选择 function handleMouseUp(event: MouseEvent) { - event.stopPropagation() + // event.stopPropagation() console.log('handleMouseUp', event) if (isPopoverVisible.value) { console.log('handleMouseUp=>still in the last on popper') diff --git a/package.json b/package.json index f29e50c..8307fa4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "words-100-helper", "type": "module", - "version": "0.0.2", + "version": "0.0.3", "private": true, "description": "新百词斩助手,支持取词翻译、收藏单词等操作(可同步至百词斩APP中)", "scripts": { @@ -38,6 +38,6 @@ "unplugin-auto-import": "^0.17.5", "unplugin-vue-components": "^0.26.0", "vue-tsc": "^2.0.6", - "wxt": "^0.17.12" + "wxt": "^0.18.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 470616d..f7ab34e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -65,8 +65,8 @@ devDependencies: specifier: ^2.0.6 version: 2.0.7(typescript@5.4.3) wxt: - specifier: ^0.17.12 - version: 0.17.12(sass@1.72.0) + specifier: ^0.18.2 + version: 0.18.2(sass@1.72.0) packages: @@ -217,6 +217,14 @@ packages: dependencies: '@babel/types': 7.24.0 + /@babel/parser@7.24.5: + resolution: {integrity: sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.24.0 + dev: true + /@babel/runtime@7.23.9: resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==} engines: {node: '>=6.9.0'} @@ -1570,8 +1578,10 @@ packages: lodash.merge: 4.6.2 dev: true - /@webext-core/isolated-element@1.1.1: - resolution: {integrity: sha512-kn5OURB8FaEB0oSZdf1jc1PyohWXbWQbdhXfAS2d3AxxkP8HlYfhB75fhZJ3GceZvFf8in4bZNJbOvcArSFxCg==} + /@webext-core/isolated-element@1.1.2: + resolution: {integrity: sha512-CNHYhsIR8TPkPb+4yqTIuzaGnVn/Fshev5fyoPW+/8Cyc93tJbCjP9PC1XSK6fDWu+xASdPHLZaoa2nWAYoxeQ==} + dependencies: + is-potential-custom-element-name: 1.0.1 dev: true /@webext-core/match-patterns@1.0.3: @@ -3686,6 +3696,10 @@ packages: isobject: 3.0.1 dev: true + /is-potential-custom-element-name@1.0.1: + resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + dev: true + /is-primitive@3.0.1: resolution: {integrity: sha512-GljRxhWvlCNRfZyORiH77FwdFwGcMO620o37EOYC0ORWdq+WYNVqW0w2Juzew4M+L81l6/QS3t5gkkihyRqv9w==} engines: {node: '>=0.10.0'} @@ -4023,6 +4037,14 @@ packages: dependencies: '@jridgewell/sourcemap-codec': 1.4.15 + /magicast@0.3.4: + resolution: {integrity: sha512-TyDF/Pn36bBji9rWKHlZe+PZb6Mx5V8IHCSxk7X4aljM4e/vyDvZZYwHewdVaqiA0nb3ghfHU/6AUpDxWoER2Q==} + dependencies: + '@babel/parser': 7.24.5 + '@babel/types': 7.24.0 + source-map-js: 1.2.0 + dev: true + /make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} dev: true @@ -5602,6 +5624,42 @@ packages: spdx-expression-parse: 3.0.1 dev: true + /vite@5.2.11(sass@1.72.0): + resolution: {integrity: sha512-HndV31LWW05i1BLPMUCE1B9E9GFbOu1MbenhS58FuK6owSO5qHm7GiCotrNY1YE5rMeQSFBGmT5ZaLEjFizgiQ==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + esbuild: 0.20.2 + postcss: 8.4.38 + rollup: 4.13.1 + sass: 1.72.0 + optionalDependencies: + fsevents: 2.3.3 + dev: true + /vite@5.2.6(sass@1.72.0): resolution: {integrity: sha512-FPtnxFlSIKYjZ2eosBQamz4CbyrTizbZ3hnGJlh/wMtCrlp1Hah6AzBLjGI5I2urTfNnpovpHdrL6YRuBOPnCA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -5849,22 +5907,20 @@ packages: optional: true dev: true - /wxt@0.17.12(sass@1.72.0): - resolution: {integrity: sha512-VedEvueLVP8Pi9DH0ikSqhQyGJ6uRWVycSicdLNxeGUmPTbExj7hhH5ZZM+SIgsIh9yQgVm7MPnVnobzmeJHJw==} - engines: {node: '>=18', pnpm: '>=8'} + /wxt@0.18.2(sass@1.72.0): + resolution: {integrity: sha512-yZubyR/MSJi7mwGA8C9MfuiRYOeXHOiP7+DwTwzdbWNKWGIRT06tsCcuoBKKaSPVjlBMPsBsOjOSGvfxjwJheA==} hasBin: true dependencies: '@aklinker1/rollup-plugin-visualizer': 5.12.0 '@types/webextension-polyfill': 0.10.7 '@webext-core/fake-browser': 1.3.1 - '@webext-core/isolated-element': 1.1.1 + '@webext-core/isolated-element': 1.1.2 '@webext-core/match-patterns': 1.0.3 async-mutex: 0.4.1 c12: 1.10.0 cac: 6.7.14 chokidar: 3.6.0 ci-info: 4.0.0 - consola: 3.2.3 defu: 6.1.4 dequal: 2.0.3 esbuild: 0.19.12 @@ -5879,6 +5935,7 @@ packages: json5: 2.2.3 jszip: 3.10.1 linkedom: 0.16.11 + magicast: 0.3.4 minimatch: 9.0.3 natural-compare: 1.4.0 normalize-path: 3.0.0 @@ -5889,7 +5946,7 @@ packages: prompts: 2.4.2 publish-browser-extension: 2.1.3 unimport: 3.7.1 - vite: 5.2.6(sass@1.72.0) + vite: 5.2.11(sass@1.72.0) web-ext-run: 0.2.0 webextension-polyfill: 0.10.0 transitivePeerDependencies: