@vacantthinker/firefox-addon-framework-easy 2026.528.1648 → 2026.528.2324

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.0528.1648",
3
+ "version": "2026.0528.2324",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -108,7 +108,6 @@ export async function serviceElementPicker(message) {
108
108
  width: rect.width,
109
109
  x: rect.left + window.scrollX,
110
110
  y: rect.top + window.scrollY,
111
- selector: getUniqueSelector(target),
112
111
  };
113
112
 
114
113
  console.log('Target Selected:', {rectData});
@@ -152,7 +151,7 @@ export async function serviceElementPicker(message) {
152
151
  }
153
152
 
154
153
  /**
155
- * middle ware, output: Object.assign({}, message, {x, y, width, height,})
154
+ * middle ware, output: {rectdata}
156
155
  *
157
156
  * @param message{{
158
157
  * tabId:number,
@@ -171,13 +170,13 @@ export async function serviceGetFullPageRectData(message) {
171
170
  let x = 0, y = 0;
172
171
  let width = document.documentElement.scrollWidth;
173
172
  let height = document.documentElement.scrollHeight;
174
-
173
+ let rectData = {
174
+ x, y, width, height,
175
+ };
175
176
  await browser.runtime.sendMessage(Object.assign(
176
177
  {},
177
178
  message,
178
- {
179
- x, y, width, height,
180
- },
179
+ rectData,
181
180
  ));
182
181
  // todo end if (message)
183
182
  },