@popcraft/kit 0.53.17 → 0.53.19

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.
Files changed (81) hide show
  1. package/dist/chunks/{agent-76MOJF7H.js → agent-QQAYZ5WB.js} +1 -1
  2. package/dist/chunks/{builtin-O5D2Q6RV.js → builtin-KE5VRKPQ.js} +4 -4
  3. package/dist/chunks/{buy-credits-2RI5ALP3.js → buy-credits-R6PSWUM2.js} +2 -2
  4. package/dist/chunks/{check-template-5FJPJLKN.js → check-template-BMGDUIRP.js} +3 -3
  5. package/dist/chunks/{chunk-GZZNTUHF.js → chunk-2O3AJLC7.js} +5 -5
  6. package/dist/chunks/{chunk-MUOTQRR5.js → chunk-35ZHGX7R.js} +3 -3
  7. package/dist/chunks/{chunk-B4FB4B2M.js → chunk-5IRV2SAQ.js} +1 -1
  8. package/dist/chunks/{chunk-64TRA3OH.js → chunk-6DDTIGDY.js} +4 -4
  9. package/dist/chunks/{chunk-ZIOF5AO6.js → chunk-7G7UOKM4.js} +1 -1
  10. package/dist/chunks/{chunk-IAL55FGC.js → chunk-DSFTJ6BI.js} +2 -2
  11. package/dist/chunks/{chunk-YLNK64NW.js → chunk-DW7H5O5F.js} +12 -12
  12. package/dist/chunks/{chunk-N6T6XKGC.js → chunk-ERXWGXIF.js} +1 -1
  13. package/dist/chunks/{chunk-SELEMFEP.js → chunk-FIFDX2PJ.js} +1 -1
  14. package/dist/chunks/{chunk-NAXSGXBD.js → chunk-GYRYPM3N.js} +11 -11
  15. package/dist/chunks/{chunk-LVENLTN6.js → chunk-HC2BCDFS.js} +4 -4
  16. package/dist/chunks/{chunk-4UOE2QLJ.js → chunk-HE2HQQF7.js} +4 -4
  17. package/dist/chunks/{chunk-ZEERADTI.js → chunk-I5VBP754.js} +12 -12
  18. package/dist/chunks/{chunk-IIPH3CZZ.js → chunk-IY5UZMTO.js} +251 -2
  19. package/dist/chunks/{chunk-QJU5LRJX.js → chunk-J6Q7JXER.js} +2 -2
  20. package/dist/chunks/{chunk-NH42V7UK.js → chunk-JGJZXJRJ.js} +1 -1
  21. package/dist/chunks/{chunk-AMQ2XV6E.js → chunk-JUHBI75X.js} +10 -10
  22. package/dist/chunks/{chunk-UXNXHMBD.js → chunk-K3AZGLLD.js} +5 -7
  23. package/dist/chunks/{chunk-YZYQTXAK.js → chunk-KT3VWNJF.js} +4 -4
  24. package/dist/chunks/{chunk-U6OKU7J4.js → chunk-PIVR4JOX.js} +2 -2
  25. package/dist/chunks/{chunk-MEEB2X3B.js → chunk-RCYPJTDS.js} +54 -54
  26. package/dist/chunks/{chunk-QS4AT3DM.js → chunk-RPZJC2IG.js} +2 -4
  27. package/dist/chunks/{chunk-ROIDWBDQ.js → chunk-USXZ2Z7E.js} +4 -4
  28. package/dist/chunks/{chunk-SAUZ2HYM.js → chunk-VO5AERM4.js} +4 -4
  29. package/dist/chunks/{chunk-XKUI2K2V.js → chunk-X4JKF2JG.js} +214 -1
  30. package/dist/chunks/{chunk-K63NQAOB.js → chunk-XE6NJFI2.js} +89 -89
  31. package/dist/chunks/{chunk-VRGEEHBR.js → chunk-Y7SVEIXZ.js} +270 -50
  32. package/dist/chunks/{chunk-E4P2HVUD.js → chunk-ZDBDOXNF.js} +3 -1
  33. package/dist/chunks/{client-RIPJA5PK.js → client-6AZSG3ZL.js} +1 -1
  34. package/dist/chunks/{client-3EX4LVI6.js → client-DBACY2LR.js} +3 -3
  35. package/dist/chunks/{client-N525NCFB.js → client-R43QZ4QR.js} +2 -2
  36. package/dist/chunks/{client-actions-232DIA3G.js → client-actions-FBVLWSY2.js} +13 -14
  37. package/dist/chunks/{dangerous-2CPJMLP6.js → dangerous-N4RC6QXK.js} +4 -4
  38. package/dist/chunks/{delete-current-file-IVQD2M3K.js → delete-current-file-KB34A5H7.js} +9 -10
  39. package/dist/chunks/{editor-seams-AFXFNM6K.js → editor-seams-YTHZIEZ2.js} +18 -20
  40. package/dist/chunks/{editor-store-ZFR2ZHNM.js → editor-store-I7XK3PGQ.js} +5 -5
  41. package/dist/chunks/{export-FWVSW5AN.js → export-FZA6A6I6.js} +1 -1
  42. package/dist/chunks/{export-watermark-KT25FYVD.js → export-watermark-6YAEKDKK.js} +9 -10
  43. package/dist/chunks/{eyedropper-W6X2VHUB.js → eyedropper-UWISBVOX.js} +7 -11
  44. package/dist/chunks/{generate-media-Y3NYLLSS.js → generate-media-6VUWK57N.js} +4 -4
  45. package/dist/chunks/{host-PKGEIJZF.js → host-MIEETQXP.js} +14 -17
  46. package/dist/chunks/{integrations-4NFCLH3S.js → integrations-DWTRYAL5.js} +1 -1
  47. package/dist/chunks/{libraries-565L4UXX.js → libraries-LHFSA7JJ.js} +9 -10
  48. package/dist/chunks/{live-X3AP4MHF.js → live-6C5QKVRX.js} +5 -5
  49. package/dist/chunks/{lottie-AGAHYTZE.js → lottie-ZKR6H64U.js} +3 -4
  50. package/dist/chunks/{media-tool-HVMNAVAE.js → media-tool-Z6ND5SKE.js} +12 -126
  51. package/dist/chunks/{new-file-Z7EJFO2J.js → new-file-ZD27RMLG.js} +7 -7
  52. package/dist/chunks/{pdf-X3ZB6QKO.js → pdf-RPD6QHMP.js} +5 -7
  53. package/dist/chunks/{player-check-ZGWLAHXY.js → player-check-CZVWUJXW.js} +3 -4
  54. package/dist/chunks/{plugin-OLV3V7ZN.js → plugin-IIVMHWXJ.js} +3 -3
  55. package/dist/chunks/{plugin-import-SM3NLQ5A.js → plugin-import-VVPFCMMO.js} +23 -26
  56. package/dist/chunks/{pptx-OI7DTHPN.js → pptx-QZMA6SRM.js} +3 -4
  57. package/dist/chunks/{presence-TL24PA2T.js → presence-X4HNN2NN.js} +6 -6
  58. package/dist/chunks/{project-TS27R5XO.js → project-ZSZAT2MB.js} +3 -3
  59. package/dist/chunks/{publish-site-34NCZ274.js → publish-site-B36S2CS7.js} +10 -11
  60. package/dist/chunks/{publish-store-V27NWG4I.js → publish-store-7ZCGU56C.js} +5 -5
  61. package/dist/chunks/{raster-actions-PGNW6BX6.js → raster-actions-I5TJ5I7S.js} +7 -11
  62. package/dist/chunks/{reference-images-36D6WIRI.js → reference-images-RAJE3NRE.js} +2 -2
  63. package/dist/chunks/{resolvers-V6SR7XRN.js → resolvers-J3DRJJ7P.js} +5 -6
  64. package/dist/chunks/{runner-Q6HI2WVB.js → runner-7PSSJXP6.js} +25 -27
  65. package/dist/chunks/{store-SIAVD2I6.js → store-D7M2QNWT.js} +14 -15
  66. package/dist/chunks/{storefront-prepare-6WYLPH6E.js → storefront-prepare-S6A5FZXC.js} +1 -1
  67. package/dist/chunks/{svg-export-QTVHP7B2.js → svg-export-J23NHZWC.js} +4 -5
  68. package/dist/chunks/{sync-PQCW3ZLW.js → sync-GQHOTPE4.js} +9 -10
  69. package/dist/chunks/{tabs-HTDE6XGQ.js → tabs-ZRZQW5HB.js} +12 -12
  70. package/dist/chunks/{team-H4DYU4NF.js → team-GZOX67CF.js} +1 -1
  71. package/dist/chunks/{team-client-DW5CMJ4L.js → team-client-PQQV3564.js} +1 -1
  72. package/dist/chunks/{theme-store-FAYEXX7K.js → theme-store-CBS2LI4H.js} +2 -3
  73. package/dist/chunks/{tools-HBJ2I7YP.js → tools-KNCUAUHK.js} +2 -2
  74. package/dist/chunks/{ui-commands-NRTJFHI6.js → ui-commands-WNPLJR4F.js} +20 -22
  75. package/dist/chunks/{versions-22FL7N6P.js → versions-SFXXLEBS.js} +9 -10
  76. package/dist/index.js +1 -1
  77. package/package.json +1 -1
  78. package/dist/chunks/chunk-C3QJHVOH.js +0 -269
  79. package/dist/chunks/chunk-I5REOOP7.js +0 -225
  80. package/dist/chunks/chunk-P4LE4WLR.js +0 -25
  81. package/dist/chunks/chunk-ZBANBY2Q.js +0 -27
@@ -18,7 +18,7 @@ import {
18
18
  renderDocument,
19
19
  toolView,
20
20
  underReviewKit
21
- } from "./chunk-64TRA3OH.js";
21
+ } from "./chunk-6DDTIGDY.js";
22
22
  import "./chunk-T2U7UWFL.js";
23
23
  import "./chunk-A2DCJZGE.js";
24
24
  import "./chunk-SZHIVENR.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-U6OKU7J4.js";
11
- import "./chunk-MEEB2X3B.js";
10
+ } from "./chunk-PIVR4JOX.js";
11
+ import "./chunk-RCYPJTDS.js";
12
12
  import "./chunk-LJZR7CU3.js";
13
13
  import "./chunk-JNBUJE2Z.js";
14
14
  import "./chunk-EGUH2RFR.js";
@@ -19,7 +19,7 @@ import "./chunk-SH6T47YM.js";
19
19
  import "./chunk-O6H6N3RA.js";
20
20
  import "./chunk-WA5G5BAY.js";
21
21
  import "./chunk-UDDWBCFE.js";
22
- import "./chunk-64TRA3OH.js";
22
+ import "./chunk-6DDTIGDY.js";
23
23
  import "./chunk-T2U7UWFL.js";
24
24
  import "./chunk-ZX64TIVJ.js";
25
25
  import "./chunk-AKNWNB6A.js";
@@ -27,7 +27,7 @@ import "./chunk-AFRAXU4Y.js";
27
27
  import "./chunk-FJL3DZQB.js";
28
28
  import "./chunk-FIJRNTK2.js";
29
29
  import "./chunk-NPFIKFPP.js";
30
- import "./chunk-K63NQAOB.js";
30
+ import "./chunk-XE6NJFI2.js";
31
31
  import "./chunk-VB3ZFOB6.js";
32
32
  import "./chunk-ZVISQBYU.js";
33
33
  import "./chunk-TXEWYX4G.js";
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  HYPERY_TEAM_HEADER,
9
9
  hyperyRequestHeaders
10
- } from "./chunk-B4FB4B2M.js";
10
+ } from "./chunk-5IRV2SAQ.js";
11
11
  import "./chunk-6TMH7HCQ.js";
12
12
  import {
13
13
  useHyperyTeam
14
- } from "./chunk-NH42V7UK.js";
14
+ } from "./chunk-JGJZXJRJ.js";
15
15
  import {
16
16
  ApiError,
17
17
  inAppPurchases,
@@ -6,10 +6,10 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  appCommands
9
- } from "./chunk-YLNK64NW.js";
9
+ } from "./chunk-DW7H5O5F.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-MEEB2X3B.js";
12
+ } from "./chunk-RCYPJTDS.js";
13
13
  import "./chunk-LJZR7CU3.js";
14
14
  import "./chunk-JNBUJE2Z.js";
15
15
  import "./chunk-EGUH2RFR.js";
@@ -34,7 +34,7 @@ import "./chunk-FJL3DZQB.js";
34
34
  import "./chunk-FIJRNTK2.js";
35
35
  import "./chunk-NPFIKFPP.js";
36
36
  import "./chunk-PPM77AQB.js";
37
- import "./chunk-K63NQAOB.js";
37
+ import "./chunk-XE6NJFI2.js";
38
38
  import "./chunk-ECOCNQ6W.js";
39
39
  import "./chunk-VB3ZFOB6.js";
40
40
  import "./chunk-ZVISQBYU.js";
@@ -10,15 +10,15 @@ import {
10
10
  } from "./chunk-52AGTWH7.js";
11
11
  import {
12
12
  walkNode
13
- } from "./chunk-LVENLTN6.js";
14
- import {
15
- fittedRadii,
16
- vectorCmds
17
- } from "./chunk-C3QJHVOH.js";
13
+ } from "./chunk-HC2BCDFS.js";
18
14
  import {
19
15
  strToU8,
20
16
  zipSync
21
17
  } from "./chunk-ZQMCKI3G.js";
18
+ import {
19
+ fittedRadii,
20
+ vectorCmds
21
+ } from "./chunk-IY5UZMTO.js";
22
22
  import {
23
23
  bytesToBase64,
24
24
  encodePng
@@ -127,7 +127,7 @@ async function copyNodeAsPNG(renderer, node, doc, styles, scale = 2) {
127
127
  }
128
128
  async function copyNodeAsSVG(renderer, node, doc, styles) {
129
129
  try {
130
- const { exportNodeToSVG } = await import("./svg-export-QTVHP7B2.js");
130
+ const { exportNodeToSVG } = await import("./svg-export-J23NHZWC.js");
131
131
  const svg = await exportNodeToSVG(renderer, node, doc, styles);
132
132
  if (!svg) return false;
133
133
  await navigator.clipboard.writeText(svg);
@@ -149,12 +149,12 @@ async function exportSettingFile(renderer, node, setting, doc, styles) {
149
149
  return blob ? { name, blob } : null;
150
150
  }
151
151
  if (setting.format === "SVG") {
152
- const { exportNodeToSVG } = await import("./svg-export-QTVHP7B2.js");
152
+ const { exportNodeToSVG } = await import("./svg-export-J23NHZWC.js");
153
153
  const svg = await exportNodeToSVG(renderer, node, doc, styles);
154
154
  return svg ? { name, blob: new Blob([svg], { type: "image/svg+xml" }) } : null;
155
155
  }
156
156
  if (setting.format === "PDF") {
157
- const { exportNodeToPDF, pdfOptionsFor } = await import("./pdf-X3ZB6QKO.js");
157
+ const { exportNodeToPDF, pdfOptionsFor } = await import("./pdf-RPD6QHMP.js");
158
158
  const blob = await exportNodeToPDF(renderer, node, pdfOptionsFor(setting), doc, styles);
159
159
  return blob ? { name, blob } : null;
160
160
  }
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-NH42V7UK.js";
14
+ } from "./chunk-JGJZXJRJ.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-7OJZZPU4.js";
@@ -40,7 +40,7 @@ async function underReviewKit(doc, kit) {
40
40
  return settleMeasuredLayout({ ...kitted, nodes });
41
41
  }
42
42
  async function renderDocument(doc, nodeIds, options) {
43
- const { selectionReferenceImages } = await import("./reference-images-36D6WIRI.js");
43
+ const { selectionReferenceImages } = await import("./reference-images-RAJE3NRE.js");
44
44
  if (options?.kit) {
45
45
  doc = await underReviewKit(doc, options.kit);
46
46
  }
@@ -57,19 +57,19 @@ async function renderDocument(doc, nodeIds, options) {
57
57
  function generateCapability(ctx) {
58
58
  return async (prompt, options = {}) => {
59
59
  if (options.format === "audio") {
60
- const { requestAudio } = await import("./client-3EX4LVI6.js");
60
+ const { requestAudio } = await import("./client-DBACY2LR.js");
61
61
  const { signal: signal2, format: _f, ...rest2 } = options;
62
62
  void _f;
63
63
  return requestAudio({ prompt, ...rest2 }, signal2 ?? ctx.signal);
64
64
  }
65
65
  if (options.format === "video") {
66
- const { generateVideoFile } = await import("./generate-media-Y3NYLLSS.js");
66
+ const { generateVideoFile } = await import("./generate-media-6VUWK57N.js");
67
67
  const { format: _f, signal: signal2, ...rest2 } = options;
68
68
  void _f;
69
69
  return generateVideoFile({ ...rest2, prompt, doc: ctx.doc() }, { signal: signal2 ?? ctx.signal });
70
70
  }
71
71
  const [{ requestImage }, { effectiveImageModel, useAiStore }] = await Promise.all([
72
- import("./client-3EX4LVI6.js"),
72
+ import("./client-DBACY2LR.js"),
73
73
  import("./client-store-4J5MJDAW.js")
74
74
  ]);
75
75
  const modelId = effectiveImageModel(useAiStore.getState());
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  encodeImageData
9
- } from "./chunk-MUOTQRR5.js";
9
+ } from "./chunk-35ZHGX7R.js";
10
10
  import {
11
11
  selectionWorldBounds
12
12
  } from "./chunk-TXEWYX4G.js";
@@ -91,9 +91,9 @@ async function placeStockPhoto(photo, opts = {}) {
91
91
  }
92
92
  async function placePicture(imported, opts = {}) {
93
93
  const [{ useEditorStore }, { photoFrameOf }, { placeImage }] = await Promise.all([
94
- import("./editor-store-ZFR2ZHNM.js"),
94
+ import("./editor-store-I7XK3PGQ.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-HVMNAVAE.js")
96
+ import("./media-tool-Z6ND5SKE.js")
97
97
  ]);
98
98
  const st = useEditorStore.getState();
99
99
  const frame = photoFrameOf(st.document.nodes, opts.targetId !== void 0 ? opts.targetId : st.selection[0] ?? null);
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-MEEB2X3B.js";
11
+ } from "./chunk-RCYPJTDS.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-UDDWBCFE.js";
@@ -31,7 +31,7 @@ var none = external_exports.object({});
31
31
  var emit = (name, detail) => {
32
32
  if (typeof window !== "undefined") window.dispatchEvent(new CustomEvent(name, { detail }));
33
33
  };
34
- var store = () => import("./editor-store-ZFR2ZHNM.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-I7XK3PGQ.js").then((m) => m.useEditorStore.getState());
35
35
  var MODE_IDS = MODE_LIST.map((m) => m.id);
36
36
  var MODE_ALIASES = { JAM: "POPCORN", DEV: "VIEW" };
37
37
  var modeSet = defineCommand({
@@ -161,13 +161,13 @@ var dialogOpen = defineCommand({
161
161
  (await import("./plugin-store-M7EIBRYQ.js")).usePluginStore.getState().setManagerOpen(true);
162
162
  break;
163
163
  case "theme-editor":
164
- (await import("./theme-store-FAYEXX7K.js")).useThemeStore.getState().setEditorOpen(true);
164
+ (await import("./theme-store-CBS2LI4H.js")).useThemeStore.getState().setEditorOpen(true);
165
165
  break;
166
166
  case "plan":
167
167
  (await import("./plan-limit-NQZVPJSA.js")).openPlanDialog();
168
168
  break;
169
169
  case "credits":
170
- await (await import("./buy-credits-2RI5ALP3.js")).buyAiCredits();
170
+ await (await import("./buy-credits-R6PSWUM2.js")).buyAiCredits();
171
171
  break;
172
172
  case "tokens":
173
173
  emit("popcraft-open-tokens");
@@ -213,7 +213,7 @@ var aiOpen = defineCommand({
213
213
  ] } },
214
214
  run: async ({ dialog, skillId }) => {
215
215
  if (dialog) (await import("./client-store-4J5MJDAW.js")).openAiDialog(dialog);
216
- else (await import("./store-SIAVD2I6.js")).openAgentPanel({ skillId: skillId ?? null });
216
+ else (await import("./store-D7M2QNWT.js")).openAgentPanel({ skillId: skillId ?? null });
217
217
  return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
218
218
  }
219
219
  });
@@ -226,7 +226,7 @@ var agentContinue = defineCommand({
226
226
  params: external_exports.object({}),
227
227
  expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
228
228
  run: async () => {
229
- const resumed = await (await import("./runner-Q6HI2WVB.js")).continueTurn();
229
+ const resumed = await (await import("./runner-7PSSJXP6.js")).continueTurn();
230
230
  return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
231
231
  }
232
232
  });
@@ -305,11 +305,11 @@ var toolPlace = defineCommand({
305
305
  run: async ({ what }) => {
306
306
  if (what === "media") {
307
307
  const s = await store();
308
- const { placeMediaFromPicker } = await import("./media-tool-HVMNAVAE.js");
308
+ const { placeMediaFromPicker } = await import("./media-tool-Z6ND5SKE.js");
309
309
  await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
310
310
  return { summary: "Placing media" };
311
311
  }
312
- const { beginEyedrop } = await import("./eyedropper-W6X2VHUB.js");
312
+ const { beginEyedrop } = await import("./eyedropper-UWISBVOX.js");
313
313
  void beginEyedrop();
314
314
  return { summary: "Pick a color" };
315
315
  }
@@ -327,7 +327,7 @@ var nodeRasterize = defineCommand({
327
327
  keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
328
328
  } },
329
329
  run: async () => {
330
- const { flattenSelectionToPaintLayer } = await import("./raster-actions-PGNW6BX6.js");
330
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-I5TJ5I7S.js");
331
331
  await flattenSelectionToPaintLayer();
332
332
  return { summary: "Rasterized" };
333
333
  }
@@ -419,7 +419,7 @@ function themeCommand(themes) {
419
419
  params: external_exports.object({ id: external_exports.string() }),
420
420
  expose: { ui: { label: "Theme", keywords: ["theme", "dark", "light", "comic", "appearance", "colors"], variants: themes.map((t) => ({ id: t.id, label: `Theme: ${t.name}`, params: { id: t.id } })) } },
421
421
  run: async ({ id }) => {
422
- (await import("./theme-store-FAYEXX7K.js")).useThemeStore.getState().setActiveTheme(id);
422
+ (await import("./theme-store-CBS2LI4H.js")).useThemeStore.getState().setActiveTheme(id);
423
423
  return { summary: `Theme: ${themes.find((t) => t.id === id)?.name ?? id}` };
424
424
  }
425
425
  });
@@ -438,7 +438,7 @@ function pluginCommand(plugins) {
438
438
  params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
439
439
  expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
440
440
  run: async ({ pluginId, commandId }) => {
441
- await (await import("./host-PKGEIJZF.js")).runPlugin(pluginId, commandId);
441
+ await (await import("./host-MIEETQXP.js")).runPlugin(pluginId, commandId);
442
442
  return { summary: "Plugin started" };
443
443
  }
444
444
  });
@@ -470,7 +470,7 @@ function registerAppCommands() {
470
470
  registerCommand(...appCommands);
471
471
  if (started || typeof window === "undefined") return;
472
472
  started = true;
473
- void import("./theme-store-FAYEXX7K.js").then(({ useThemeStore, pickableThemes }) => {
473
+ void import("./theme-store-CBS2LI4H.js").then(({ useThemeStore, pickableThemes }) => {
474
474
  const sync = () => registerCommand(themeCommand(pickableThemes(useThemeStore.getState())));
475
475
  sync();
476
476
  useThemeStore.subscribe(sync);
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  useEditorStore
9
- } from "./chunk-VRGEEHBR.js";
9
+ } from "./chunk-Y7SVEIXZ.js";
10
10
  import {
11
11
  announce
12
12
  } from "./chunk-MBI3PCPN.js";
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-64TRA3OH.js";
16
+ } from "./chunk-6DDTIGDY.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-SZHIVENR.js";
@@ -6,14 +6,14 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  pluginRun
9
- } from "./chunk-ROIDWBDQ.js";
9
+ } from "./chunk-USXZ2Z7E.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-MEEB2X3B.js";
16
+ } from "./chunk-RCYPJTDS.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-UDDWBCFE.js";
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
53
53
  }
54
54
  },
55
55
  run: async ({ on }, ctx) => {
56
- const { setSpotlight } = await import("./presence-TL24PA2T.js");
56
+ const { setSpotlight } = await import("./presence-X4HNN2NN.js");
57
57
  setSpotlight(on);
58
58
  ctx.notice(on ? "Spotlight on \u2014 everyone is following this view." : "Spotlight off.");
59
59
  return { summary: on ? "Spotlight on" : "Spotlight off", data: { spotlight: on } };
@@ -80,7 +80,7 @@ var collabRevealPrivate = defineCommand({
80
80
  }
81
81
  },
82
82
  run: async (_p, ctx) => {
83
- const { useEditorStore } = await import("./editor-store-ZFR2ZHNM.js");
83
+ const { useEditorStore } = await import("./editor-store-I7XK3PGQ.js");
84
84
  const before = Object.values(useEditorStore.getState().document.nodes).filter((n) => n.privateTo).length;
85
85
  useEditorStore.getState().revealPrivate();
86
86
  ctx.notice(before ? `Revealed ${before} private item${before === 1 ? "" : "s"}.` : "Nothing was private.");
@@ -144,7 +144,7 @@ var documentDelete = defineCommand({
144
144
  }
145
145
  },
146
146
  run: async ({ id }, ctx) => {
147
- const { useEditorStore } = await import("./editor-store-ZFR2ZHNM.js");
147
+ const { useEditorStore } = await import("./editor-store-I7XK3PGQ.js");
148
148
  const wasOpen = useEditorStore.getState().document.id === id;
149
149
  await useEditorStore.getState().deleteDocument(id);
150
150
  ctx.notice("Deleted the document.");
@@ -188,7 +188,7 @@ var libraryPublish = defineCommand({
188
188
  }
189
189
  },
190
190
  run: async (p, ctx) => {
191
- const { publishLibrary } = await import("./libraries-565L4UXX.js");
191
+ const { publishLibrary } = await import("./libraries-LHFSA7JJ.js");
192
192
  const doc = ctx.doc();
193
193
  const pick = {
194
194
  componentIds: p.componentIds ?? Object.keys(doc.components ?? {}),
@@ -220,7 +220,7 @@ var libraryUnpublish = defineCommand({
220
220
  },
221
221
  run: async ({ libraryId }, ctx) => {
222
222
  if (!libraryId.trim()) throw new CommandError("Which library? Pass its `libraryId`.", "invalid_params");
223
- const { unpublishLibrary } = await import("./libraries-565L4UXX.js");
223
+ const { unpublishLibrary } = await import("./libraries-LHFSA7JJ.js");
224
224
  await unpublishLibrary(libraryId);
225
225
  ctx.notice(`Unpublished library ${libraryId}.`);
226
226
  return { summary: `Unpublished library ${libraryId}`, data: { libraryId, unpublished: true } };
@@ -232,8 +232,8 @@ var libraryCommands = [libraryPublish, libraryUnpublish];
232
232
  init_define_POPCRAFT_COMPONENT_IDS();
233
233
  async function findVersion(id) {
234
234
  const [{ useEditorStore }, { versionLabel }] = await Promise.all([
235
- import("./editor-store-ZFR2ZHNM.js"),
236
- import("./versions-22FL7N6P.js")
235
+ import("./editor-store-I7XK3PGQ.js"),
236
+ import("./versions-SFXXLEBS.js")
237
237
  ]);
238
238
  const meta = useEditorStore.getState().versions.find((v) => v.id === id);
239
239
  if (!meta) {
@@ -266,7 +266,7 @@ var versionRestore = defineCommand({
266
266
  },
267
267
  run: async ({ id }) => {
268
268
  const found = await findVersion(id);
269
- const { restoreVersion } = await import("./versions-22FL7N6P.js");
269
+ const { restoreVersion } = await import("./versions-SFXXLEBS.js");
270
270
  await restoreVersion(found.meta);
271
271
  return { summary: `Restored \u201C${found.label}\u201D`, data: { id, label: found.label, restored: true } };
272
272
  }
@@ -291,7 +291,7 @@ var versionDelete = defineCommand({
291
291
  },
292
292
  run: async ({ id }, ctx) => {
293
293
  const found = await findVersion(id);
294
- const { deleteVersion } = await import("./versions-22FL7N6P.js");
294
+ const { deleteVersion } = await import("./versions-SFXXLEBS.js");
295
295
  await deleteVersion(found.meta);
296
296
  ctx.notice(`Deleted the version \u201C${found.label}\u201D.`);
297
297
  return { summary: `Deleted the version \u201C${found.label}\u201D`, data: { id, label: found.label, deleted: true } };
@@ -12,16 +12,16 @@ import {
12
12
  ownsPath,
13
13
  polylineFor
14
14
  } from "./chunk-AFRAXU4Y.js";
15
+ import {
16
+ strokeBehindFill
17
+ } from "./chunk-FJL3DZQB.js";
15
18
  import {
16
19
  cornerRadii,
17
20
  glyphCmds,
18
21
  ringsCmds,
19
22
  shapeCmds,
20
23
  vectorCmds
21
- } from "./chunk-C3QJHVOH.js";
22
- import {
23
- strokeBehindFill
24
- } from "./chunk-FJL3DZQB.js";
24
+ } from "./chunk-IY5UZMTO.js";
25
25
  import {
26
26
  childrenOf
27
27
  } from "./chunk-H6JYMGPO.js";
@@ -20,14 +20,14 @@ import {
20
20
  } from "./chunk-D6YVHRBL.js";
21
21
  import {
22
22
  notice
23
- } from "./chunk-YZYQTXAK.js";
23
+ } from "./chunk-KT3VWNJF.js";
24
24
  import {
25
25
  agentContext
26
- } from "./chunk-64TRA3OH.js";
26
+ } from "./chunk-6DDTIGDY.js";
27
27
  import {
28
28
  collabSession,
29
29
  syncStatus
30
- } from "./chunk-UXNXHMBD.js";
30
+ } from "./chunk-K3AZGLLD.js";
31
31
  import {
32
32
  loadEntitlements
33
33
  } from "./chunk-6TMH7HCQ.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-7OJZZPU4.js";
37
37
  import {
38
38
  useEditorStore
39
- } from "./chunk-VRGEEHBR.js";
39
+ } from "./chunk-Y7SVEIXZ.js";
40
40
  import {
41
41
  getActiveRenderer
42
42
  } from "./chunk-A2DCJZGE.js";
@@ -15,29 +15,19 @@ import {
15
15
  layoutText,
16
16
  resolveThreadNode,
17
17
  rootMatrix
18
- } from "./chunk-LVENLTN6.js";
18
+ } from "./chunk-HC2BCDFS.js";
19
19
  import {
20
20
  attachTextPath,
21
21
  polylineOf,
22
22
  reseamAt
23
23
  } from "./chunk-AFRAXU4Y.js";
24
- import {
25
- cornerRadii,
26
- fmt,
27
- ringsCmds,
28
- roundedRectCmds,
29
- shapeCmds,
30
- toSvgD,
31
- trimCmds,
32
- vectorCmds
33
- } from "./chunk-C3QJHVOH.js";
34
24
  import {
35
25
  strokeBehindFill
36
26
  } from "./chunk-FJL3DZQB.js";
37
27
  import {
38
28
  encodeImageData,
39
29
  sliceRegion
40
- } from "./chunk-MUOTQRR5.js";
30
+ } from "./chunk-35ZHGX7R.js";
41
31
  import {
42
32
  documentForExport
43
33
  } from "./chunk-FFIZKGS2.js";
@@ -46,6 +36,16 @@ import {
46
36
  stockPatternSvg,
47
37
  stockPatternUrl
48
38
  } from "./chunk-4VF6RACM.js";
39
+ import {
40
+ cornerRadii,
41
+ fmt,
42
+ ringsCmds,
43
+ roundedRectCmds,
44
+ shapeCmds,
45
+ toSvgD,
46
+ trimCmds,
47
+ vectorCmds
48
+ } from "./chunk-IY5UZMTO.js";
49
49
  import {
50
50
  bytesToBase64,
51
51
  encodePng