@vacantthinker/firefox-addon-framework-easy 2026.612.1204 → 2026.612.2157

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.
@@ -9,15 +9,19 @@ export declare function browserRuntimeReload(): void;
9
9
  export declare function browserRuntimeSetUninstallURL(url?: string): Promise<void>;
10
10
  /**
11
11
  * Adds a listener for available updates.
12
- * @param callback Callback to execute when an update is available.
13
12
  */
14
- export declare function browserRuntimeOnUpdateAvailable(callback?: (details: browser.runtime._OnUpdateAvailableDetails) => void | Promise<void>): void;
13
+ export declare function browserRuntimeOnUpdateAvailable(): void;
15
14
  /**
16
15
  * Converts a relative path to a fully qualified URL.
17
16
  * @param path The path to the resource.
18
17
  * @returns The absolute URL string.
19
18
  */
20
19
  export declare function browserRuntimeGetURL(path: string): string;
20
+ /**
21
+ * `pages/${path}`
22
+ * @param path
23
+ */
24
+ export declare function browserRuntimeGetPagesURL(path: string): string;
21
25
  /**
22
26
  * Retrieves the Gecko ID from the manifest.
23
27
  * @returns The Gecko ID or empty string if not found.
@@ -1 +1 @@
1
- {"version":3,"file":"browserRuntime.d.ts","sourceRoot":"","sources":["../src/browserRuntime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;;GAGG;AACH,wBAAsB,6BAA6B,CAAC,GAAG,GAAE,MAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAEnF;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,yBAAyB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GACtF,IAAI,CAMN;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAG9C;AAED;;;GAGG;AACH,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAExF;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,IAAI,MAAM,CAEtD;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CAEnD"}
1
+ {"version":3,"file":"browserRuntime.d.ts","sourceRoot":"","sources":["../src/browserRuntime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;;GAGG;AACH,wBAAsB,6BAA6B,CAAC,GAAG,GAAE,MAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAEnF;AAED;;GAEG;AACH,wBAAgB,+BAA+B,IAAI,IAAI,CAGtD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAG9C;AAED;;;GAGG;AACH,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAExF;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,IAAI,MAAM,CAEtD;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CAEnD"}
@@ -13,13 +13,9 @@ export async function browserRuntimeSetUninstallURL(url = '') {
13
13
  }
14
14
  /**
15
15
  * Adds a listener for available updates.
16
- * @param callback Callback to execute when an update is available.
17
16
  */
18
- export function browserRuntimeOnUpdateAvailable(callback) {
19
- browser.runtime.onUpdateAvailable.addListener(async (details) => {
20
- if (callback) {
21
- await callback(details);
22
- }
17
+ export function browserRuntimeOnUpdateAvailable() {
18
+ browser.runtime.onUpdateAvailable.addListener(() => {
23
19
  });
24
20
  }
25
21
  /**
@@ -30,6 +26,13 @@ export function browserRuntimeOnUpdateAvailable(callback) {
30
26
  export function browserRuntimeGetURL(path) {
31
27
  return browser.runtime.getURL(path);
32
28
  }
29
+ /**
30
+ * `pages/${path}`
31
+ * @param path
32
+ */
33
+ export function browserRuntimeGetPagesURL(path) {
34
+ return browser.runtime.getURL(`pages/${path}`);
35
+ }
33
36
  /**
34
37
  * Retrieves the Gecko ID from the manifest.
35
38
  * @returns The Gecko ID or empty string if not found.
@@ -1,34 +1,5 @@
1
- /**
2
- * Interface representing the structure of a message sent to a tab.
3
- * Includes optional properties for tab creation and specific message data.
4
- */
5
- export interface TabMessage {
6
- targetTabId?: number;
7
- previousTabId?: number;
8
- url?: string;
9
- focusNewTab?: boolean;
10
- [key: string]: any;
11
- }
12
1
  /**
13
2
  * Sends a message to a specific tab.
14
3
  */
15
4
  export declare function browserTabSendMessage(tabId: number, message: any): Promise<void>;
16
- /**
17
- * Waits for a tab to finish loading (status: complete) before sending a message.
18
- */
19
- export declare function browserTabWaitReloadThenSendMessageToContentJs(message: TabMessage): void;
20
- /**
21
- * Creates a tab for download, waits for load, and then removes it.
22
- */
23
- export declare function browserTabCreateToDownload(message: TabMessage): Promise<void>;
24
- /**
25
- * Safely handles incoming messages to create tabs and send messages to content scripts.
26
- */
27
- export declare function browserTabCreateNearSendMessageToContentJs(message?: TabMessage): Promise<void>;
28
- /**
29
- * Watches a tab for reload, then removes it upon completion.
30
- */
31
- export declare function browserTabWaitReloadThenRemoveIt({ tabId }: {
32
- tabId: number;
33
- }): void;
34
5
  //# sourceMappingURL=browserTab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browserTab.d.ts","sourceRoot":"","sources":["../src/browserTab.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAEtF;AAED;;GAEG;AACH,wBAAgB,8CAA8C,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAkBxF;AAED;;GAEG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BnF;AAED;;GAEG;AACH,wBAAsB,0CAA0C,CAAC,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAyCxG;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,EAAC,KAAK,EAAC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAYjF"}
1
+ {"version":3,"file":"browserTab.d.ts","sourceRoot":"","sources":["../src/browserTab.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAEtF"}
@@ -1,105 +1,6 @@
1
- import { tabOpCreate, tabOpCreateNear, tabOpRemove } from './opTab';
2
1
  /**
3
2
  * Sends a message to a specific tab.
4
3
  */
5
4
  export async function browserTabSendMessage(tabId, message) {
6
5
  await browser.tabs.sendMessage(tabId, message);
7
6
  }
8
- /**
9
- * Waits for a tab to finish loading (status: complete) before sending a message.
10
- */
11
- export function browserTabWaitReloadThenSendMessageToContentJs(message) {
12
- const { targetTabId, ...rest } = message;
13
- if (targetTabId === undefined)
14
- return;
15
- const listener = async (tabId, changeInfo) => {
16
- if (tabId === targetTabId && changeInfo.status === 'complete') {
17
- browser.tabs.onUpdated.removeListener(listener);
18
- await browserTabSendMessage(tabId, rest);
19
- }
20
- };
21
- browser.tabs.onUpdated.addListener(listener, {
22
- tabId: targetTabId,
23
- properties: ['status'],
24
- });
25
- }
26
- /**
27
- * Creates a tab for download, waits for load, and then removes it.
28
- */
29
- export async function browserTabCreateToDownload(message) {
30
- if (!message.url)
31
- return;
32
- const properties = {
33
- url: message.url,
34
- };
35
- if (message.focusNewTab !== undefined) {
36
- properties.active = message.focusNewTab;
37
- }
38
- const { tabId } = await tabOpCreate(properties);
39
- const listener = async (updatedTabId, changeInfo) => {
40
- if (updatedTabId === tabId && changeInfo.status === 'complete') {
41
- browser.tabs.onUpdated.removeListener(listener);
42
- await tabOpRemove(tabId);
43
- }
44
- };
45
- browser.tabs.onUpdated.addListener(listener, {
46
- tabId,
47
- properties: ['status'],
48
- });
49
- }
50
- /**
51
- * Safely handles incoming messages to create tabs and send messages to content scripts.
52
- */
53
- export async function browserTabCreateNearSendMessageToContentJs(message = {}) {
54
- if (!message.url)
55
- return;
56
- const { previousTabId, ...rest } = message;
57
- const properties = {
58
- url: message.url,
59
- active: message.focusNewTab ?? false,
60
- };
61
- const { tabId: createdTabId } = message.previousTabId
62
- ? await tabOpCreateNear({ properties, previousTabId })
63
- : await tabOpCreate(properties);
64
- if (!createdTabId)
65
- return;
66
- const onUpdatedListener = async (tabId, changeInfo) => {
67
- if (tabId === createdTabId && changeInfo.status === 'complete') {
68
- cleanup();
69
- await browserTabSendMessage(tabId, {
70
- ...rest,
71
- tabId: tabId,
72
- });
73
- }
74
- };
75
- // Listener to cleanup if tab is closed before loading completes
76
- const onRemovedListener = (tabId) => {
77
- if (tabId === createdTabId) {
78
- cleanup();
79
- }
80
- };
81
- const cleanup = () => {
82
- browser.tabs.onUpdated.removeListener(onUpdatedListener);
83
- browser.tabs.onRemoved.removeListener(onRemovedListener);
84
- };
85
- browser.tabs.onUpdated.addListener(onUpdatedListener, {
86
- tabId: createdTabId,
87
- properties: ['status'],
88
- });
89
- browser.tabs.onRemoved.addListener(onRemovedListener);
90
- }
91
- /**
92
- * Watches a tab for reload, then removes it upon completion.
93
- */
94
- export function browserTabWaitReloadThenRemoveIt({ tabId }) {
95
- const listener = async (updatedTabId, changeInfo) => {
96
- if (updatedTabId === tabId && changeInfo.status === 'complete') {
97
- browser.tabs.onUpdated.removeListener(listener);
98
- await tabOpRemove(tabId);
99
- }
100
- };
101
- browser.tabs.onUpdated.addListener(listener, {
102
- tabId,
103
- properties: ['status'],
104
- });
105
- }
package/dist/opTab.d.ts CHANGED
@@ -12,6 +12,14 @@ export declare function tabOpEnhance(tab: browser.tabs.Tab): EnhancedTab | null;
12
12
  * Creates a standard tab.
13
13
  */
14
14
  export declare function tabOpCreate(properties: browser.tabs._CreateCreateProperties): Promise<EnhancedTab>;
15
+ /**
16
+ * Creates a tab in the background (inactive and muted).
17
+ */
18
+ export declare function tabOpCreateActiveFalse(properties: browser.tabs._CreateCreateProperties): Promise<EnhancedTab>;
19
+ /**
20
+ * Creates a tab in the background (inactive and muted).
21
+ */
22
+ export declare function tabOpCreateActiveTrue(properties: browser.tabs._CreateCreateProperties): Promise<EnhancedTab>;
15
23
  interface TabOpCreateNearOptions {
16
24
  properties: browser.tabs._CreateCreateProperties;
17
25
  previousTabId: number | undefined;
@@ -20,10 +28,6 @@ interface TabOpCreateNearOptions {
20
28
  * Creates a new tab positioned immediately after a specified existing tab.
21
29
  */
22
30
  export declare function tabOpCreateNear(options: TabOpCreateNearOptions): Promise<EnhancedTab>;
23
- /**
24
- * Creates a tab in the background (inactive and muted).
25
- */
26
- export declare function tabOpCreateActiveFalse(properties: browser.tabs._CreateCreateProperties): Promise<EnhancedTab>;
27
31
  /**
28
32
  * Creates a new window and returns its primary tab.
29
33
  */
@@ -1 +1 @@
1
- {"version":3,"file":"opTab.d.ts","sourceRoot":"","sources":["../src/opTab.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO,CAAC,IAAI,CAAC,GAAG;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,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,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAK7E;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAE5F;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAEzE;AAED;;GAEG;AACH,wBAAsB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAE3E;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,OAAO,CAAC,IAAI,CAAC,uBAAuB,GACrD,OAAO,CAAC,WAAW,CAAC,CAEtB;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAEhF;AAED;;GAEG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAQpE;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEnF;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEnF"}
package/dist/opTab.js CHANGED
@@ -33,6 +33,25 @@ async function _update(tabId, properties) {
33
33
  export async function tabOpCreate(properties) {
34
34
  return _create(properties);
35
35
  }
36
+ /**
37
+ * Creates a tab in the background (inactive and muted).
38
+ */
39
+ export async function tabOpCreateActiveFalse(properties) {
40
+ return _create({
41
+ ...properties,
42
+ active: false,
43
+ muted: true,
44
+ });
45
+ }
46
+ /**
47
+ * Creates a tab in the background (inactive and muted).
48
+ */
49
+ export async function tabOpCreateActiveTrue(properties) {
50
+ return _create({
51
+ ...properties,
52
+ active: true,
53
+ });
54
+ }
36
55
  /**
37
56
  * Creates a new tab positioned immediately after a specified existing tab.
38
57
  */
@@ -50,16 +69,6 @@ export async function tabOpCreateNear(options) {
50
69
  }
51
70
  return _create(properties);
52
71
  }
53
- /**
54
- * Creates a tab in the background (inactive and muted).
55
- */
56
- export async function tabOpCreateActiveFalse(properties) {
57
- return _create({
58
- ...properties,
59
- active: false,
60
- muted: true,
61
- });
62
- }
63
72
  /**
64
73
  * Creates a new window and returns its primary tab.
65
74
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.0612.1204",
3
+ "version": "2026.0612.2157",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",