@pixra/chrome-icons 0.0.5 → 0.0.9

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.
@@ -2420,7 +2420,13 @@ async function exportChromeIcons() {
2420
2420
  zip.file(`icon-${size}.png`, arrayBuffer);
2421
2421
  }
2422
2422
  const zipBlob = await zip.generateAsync({ type: "arraybuffer" });
2423
- await pixra.workspace.downloadFile("chrome-icons.zip", zipBlob);
2423
+ const activeTab = await pixra.tabs.getActive();
2424
+ const baseName = activeTab?.name.replace(/\.[^.]+$/, "");
2425
+ if (!baseName) {
2426
+ throw new Error("Failed to determine base filename from active tab");
2427
+ }
2428
+ const filename = `${baseName}-chrome-icons.zip`;
2429
+ await pixra.window.saveFile({ filename, data: zipBlob });
2424
2430
  await pixra.window.showInformationMessage(
2425
2431
  `Exported ${ICON_SIZES.length} icons: ${ICON_SIZES.join(", ")}px`
2426
2432
  );
@@ -2453,4 +2459,4 @@ jszip/dist/jszip.min.js:
2453
2459
  https://github.com/nodeca/pako/blob/main/LICENSE
2454
2460
  *)
2455
2461
  */
2456
- //# sourceMappingURL=plugin.js.map
2462
+ //# sourceMappingURL=plugin.map
package/dist/plugin.json CHANGED
@@ -18,6 +18,6 @@
18
18
  ]
19
19
  }
20
20
  },
21
- "version": "0.0.5",
22
- "main": "plugin.js"
21
+ "version": "0.0.9",
22
+ "main": "plugin"
23
23
  }