@vacantthinker/firefox-addon-framework-easy 2026.607.1416 → 2026.607.2128

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/README.md CHANGED
@@ -90,6 +90,7 @@ export class DomainORM extends BaseORM { }
90
90
  export async function generateHtmlByUserSettings(
91
91
  userSettings,
92
92
  radioItemClickCallback,
93
+ checkboxItemClickCallback,
93
94
  ) { }
94
95
 
95
96
  export function generateMkvScriptForSystemWindows({ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.0607.1416",
3
+ "version": "2026.0607.2128",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
package/src/generate.js CHANGED
@@ -19,6 +19,7 @@ function debounce(func, wait) {
19
19
  export async function generateHtmlByUserSettings(
20
20
  userSettings,
21
21
  radioItemClickCallback,
22
+ checkboxItemClickCallback,
22
23
  ) {
23
24
  const elementsMap = {};
24
25
 
@@ -83,11 +84,14 @@ export async function generateHtmlByUserSettings(
83
84
  const allCheckboxes = eleWrap.querySelectorAll(
84
85
  'input[type="checkbox"]',
85
86
  );
86
- const valueNew = Array.from(allCheckboxes).
87
- filter((cb) => cb.checked).
88
- map((cb) => cb.value);
87
+ const valueNew = Array.from(allCheckboxes)
88
+ .filter((cb) => cb.checked)
89
+ .map((cb) => cb.value);
89
90
 
90
91
  await stoOpSet(storageKey, valueNew);
92
+ if (typeof checkboxItemClickCallback === 'function') {
93
+ checkboxItemClickCallback(storageKey, option);
94
+ }
91
95
  triggerVisibility(storageKey, valueNew);
92
96
  });
93
97
  }