@popcraft/kit 0.42.2 → 0.42.3

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 (58) hide show
  1. package/dist/chunks/{agent-4KHH7N57.js → agent-42PE54PH.js} +1 -1
  2. package/dist/chunks/{builtin-SMU2EMMI.js → builtin-7QS35VK4.js} +3 -3
  3. package/dist/chunks/{buy-credits-EBYKR7GA.js → buy-credits-JW23WWSX.js} +2 -2
  4. package/dist/chunks/{check-template-OIDQMROT.js → check-template-F2JAKTS6.js} +2 -2
  5. package/dist/chunks/{chunk-BZF5JOET.js → chunk-BUDYFRGD.js} +9 -9
  6. package/dist/chunks/{chunk-YXJY4TR5.js → chunk-E72N4DXG.js} +11 -11
  7. package/dist/chunks/{chunk-NSGI74YM.js → chunk-EDPYHRPI.js} +4 -4
  8. package/dist/chunks/{chunk-JWEODSO2.js → chunk-EMIDQTFD.js} +3 -3
  9. package/dist/chunks/{chunk-ZT5ETBEE.js → chunk-G6ER3HDZ.js} +1 -1
  10. package/dist/chunks/{chunk-35JFZHPY.js → chunk-KVIDWRAJ.js} +5 -5
  11. package/dist/chunks/{chunk-GNXY4FNU.js → chunk-KZT3BIDO.js} +1 -1
  12. package/dist/chunks/{chunk-PX2EGB5F.js → chunk-LQFOBCGR.js} +3 -3
  13. package/dist/chunks/{chunk-HFG4PLYS.js → chunk-N3PVLPAA.js} +1 -1
  14. package/dist/chunks/{chunk-WRCJVWSB.js → chunk-NEVK76UB.js} +2 -2
  15. package/dist/chunks/{chunk-3W2O5XQW.js → chunk-PNLEII77.js} +2 -2
  16. package/dist/chunks/{chunk-ZXBN2OIQ.js → chunk-Q24T2GV2.js} +4 -4
  17. package/dist/chunks/{chunk-ERNBHUHI.js → chunk-QMWJG27P.js} +1 -1
  18. package/dist/chunks/{chunk-M2S7XTVS.js → chunk-TBHIA4XW.js} +2 -2
  19. package/dist/chunks/{chunk-FHHBFQQI.js → chunk-TPDHDEOR.js} +5 -5
  20. package/dist/chunks/{chunk-KTYVWBRU.js → chunk-VSJFPVC6.js} +4 -4
  21. package/dist/chunks/{chunk-3W4JSQ2T.js → chunk-VXEQZ7WC.js} +1 -1
  22. package/dist/chunks/{chunk-2YC53WET.js → chunk-YAW3B4AK.js} +2 -2
  23. package/dist/chunks/{chunk-QWG2YIOH.js → chunk-ZQ5E7XQ2.js} +41 -41
  24. package/dist/chunks/{client-632WXE4U.js → client-H4PYT2Y7.js} +3 -3
  25. package/dist/chunks/{client-OVQU5XBQ.js → client-K5EBLVQV.js} +1 -1
  26. package/dist/chunks/{client-WDE7LLLS.js → client-YZ7YV6CR.js} +2 -2
  27. package/dist/chunks/{client-actions-R5O7WAEQ.js → client-actions-GHGGWKPQ.js} +5 -5
  28. package/dist/chunks/{dangerous-6IGOEAP2.js → dangerous-LOZPP7GW.js} +3 -3
  29. package/dist/chunks/{delete-current-file-773KYBT7.js → delete-current-file-LGLOV72Y.js} +5 -5
  30. package/dist/chunks/{editor-seams-KYOERJQB.js → editor-seams-HKG4B6Z7.js} +10 -10
  31. package/dist/chunks/{editor-store-IYOPVYY4.js → editor-store-ZJEI2Y4S.js} +1 -1
  32. package/dist/chunks/{export-watermark-KR6GFXCD.js → export-watermark-Q5MIUM2V.js} +5 -5
  33. package/dist/chunks/{eyedropper-J75I6V25.js → eyedropper-XFJ2EC3S.js} +1 -1
  34. package/dist/chunks/{generate-media-IBDYWMKZ.js → generate-media-H2SJCVZY.js} +3 -3
  35. package/dist/chunks/{host-KVCYV4GQ.js → host-XR4CPZFP.js} +6 -6
  36. package/dist/chunks/{integrations-PLUHNNRM.js → integrations-BJHNC3DW.js} +1 -1
  37. package/dist/chunks/{libraries-5CESYF4T.js → libraries-63XDLUTQ.js} +5 -5
  38. package/dist/chunks/{live-MUG2BHTK.js → live-5SKPMXKY.js} +1 -1
  39. package/dist/chunks/{media-tool-3TJ2JW6N.js → media-tool-HRPZSKD6.js} +1 -1
  40. package/dist/chunks/{new-file-UCG6AMMG.js → new-file-TWVJXOLS.js} +3 -3
  41. package/dist/chunks/{plugin-ZOHFW4F5.js → plugin-NTIGYGND.js} +2 -2
  42. package/dist/chunks/{plugin-import-T5QK5SKY.js → plugin-import-O3I3UIKM.js} +14 -14
  43. package/dist/chunks/{presence-ZRB4MBU4.js → presence-BMFO2EE2.js} +2 -2
  44. package/dist/chunks/{project-AYH7FCMW.js → project-GSCF5IX2.js} +1 -1
  45. package/dist/chunks/{publish-site-LQBV7HMV.js → publish-site-O433QM5R.js} +6 -6
  46. package/dist/chunks/{publish-store-B5NCTDHE.js → publish-store-4WAWHBAT.js} +4 -4
  47. package/dist/chunks/{raster-actions-UNSVVR5E.js → raster-actions-OWLP3XXH.js} +1 -1
  48. package/dist/chunks/{runner-5IOYLLPI.js → runner-O2W4HSUV.js} +17 -17
  49. package/dist/chunks/{store-T34Z6UEY.js → store-NPVYNVVT.js} +6 -6
  50. package/dist/chunks/{sync-DC4GDGT5.js → sync-DJKHNDYN.js} +5 -5
  51. package/dist/chunks/{tabs-3QWOEREC.js → tabs-7JJ3LBOC.js} +8 -8
  52. package/dist/chunks/{team-W6X57DAF.js → team-TXLPHRTR.js} +1 -1
  53. package/dist/chunks/{team-client-OLADEY42.js → team-client-QVKJT426.js} +1 -1
  54. package/dist/chunks/{tools-5HC3ADWQ.js → tools-IVMN7DTY.js} +2 -2
  55. package/dist/chunks/{ui-commands-YSXF7J5B.js → ui-commands-6PVII7BP.js} +12 -12
  56. package/dist/chunks/{versions-DLHWVJTA.js → versions-KAGIVDGI.js} +5 -5
  57. package/dist/index.js +1 -1
  58. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  renderDocument,
19
19
  toolView,
20
20
  underReviewKit
21
- } from "./chunk-PX2EGB5F.js";
21
+ } from "./chunk-LQFOBCGR.js";
22
22
  import "./chunk-FRTFU7R7.js";
23
23
  import "./chunk-JOQCOIMO.js";
24
24
  import "./chunk-2MUFUTFX.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-2YC53WET.js";
11
- import "./chunk-QWG2YIOH.js";
10
+ } from "./chunk-YAW3B4AK.js";
11
+ import "./chunk-ZQ5E7XQ2.js";
12
12
  import "./chunk-S2423SQK.js";
13
13
  import "./chunk-LZYZBJ47.js";
14
14
  import "./chunk-3SNHQX7G.js";
@@ -19,7 +19,7 @@ import "./chunk-NVFHJ2XC.js";
19
19
  import "./chunk-UH67NNPO.js";
20
20
  import "./chunk-GS45GYOL.js";
21
21
  import "./chunk-USRHDLUX.js";
22
- import "./chunk-PX2EGB5F.js";
22
+ import "./chunk-LQFOBCGR.js";
23
23
  import "./chunk-FRTFU7R7.js";
24
24
  import "./chunk-YEYG27XX.js";
25
25
  import "./chunk-UD62EXKW.js";
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  HYPERY_TEAM_HEADER,
9
9
  hyperyRequestHeaders
10
- } from "./chunk-3W4JSQ2T.js";
10
+ } from "./chunk-VXEQZ7WC.js";
11
11
  import "./chunk-MONEISVG.js";
12
12
  import {
13
13
  useHyperyTeam
14
- } from "./chunk-HFG4PLYS.js";
14
+ } from "./chunk-N3PVLPAA.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-BZF5JOET.js";
9
+ } from "./chunk-BUDYFRGD.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-QWG2YIOH.js";
12
+ } from "./chunk-ZQ5E7XQ2.js";
13
13
  import "./chunk-S2423SQK.js";
14
14
  import "./chunk-LZYZBJ47.js";
15
15
  import "./chunk-3SNHQX7G.js";
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-QWG2YIOH.js";
11
+ } from "./chunk-ZQ5E7XQ2.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-USRHDLUX.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-IYOPVYY4.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-ZJEI2Y4S.js").then((m) => m.useEditorStore.getState());
35
35
  var MODE_IDS = MODE_LIST.map((m) => m.id);
36
36
  var MODE_ALIASES = { JAM: "POPCORN" };
37
37
  var modeSet = defineCommand({
@@ -167,7 +167,7 @@ var dialogOpen = defineCommand({
167
167
  (await import("./plan-limit-GF4YNCV2.js")).openPlanDialog();
168
168
  break;
169
169
  case "credits":
170
- await (await import("./buy-credits-EBYKR7GA.js")).buyAiCredits();
170
+ await (await import("./buy-credits-JW23WWSX.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-GALKAQXH.js")).openAiDialog(dialog);
216
- else (await import("./store-T34Z6UEY.js")).openAgentPanel({ skillId: skillId ?? null });
216
+ else (await import("./store-NPVYNVVT.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-5IOYLLPI.js")).continueTurn();
229
+ const resumed = await (await import("./runner-O2W4HSUV.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-3TJ2JW6N.js");
308
+ const { placeMediaFromPicker } = await import("./media-tool-HRPZSKD6.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-J75I6V25.js");
312
+ const { beginEyedrop } = await import("./eyedropper-XFJ2EC3S.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-UNSVVR5E.js");
330
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-OWLP3XXH.js");
331
331
  await flattenSelectionToPaintLayer();
332
332
  return { summary: "Rasterized" };
333
333
  }
@@ -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-KVCYV4GQ.js")).runPlugin(pluginId, commandId);
441
+ await (await import("./host-XR4CPZFP.js")).runPlugin(pluginId, commandId);
442
442
  return { summary: "Plugin started" };
443
443
  }
444
444
  });
@@ -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-JWEODSO2.js";
9
+ } from "./chunk-EMIDQTFD.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-QWG2YIOH.js";
16
+ } from "./chunk-ZQ5E7XQ2.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-USRHDLUX.js";
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
53
53
  }
54
54
  },
55
55
  run: async ({ on }, ctx) => {
56
- const { setSpotlight } = await import("./presence-ZRB4MBU4.js");
56
+ const { setSpotlight } = await import("./presence-BMFO2EE2.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-IYOPVYY4.js");
83
+ const { useEditorStore } = await import("./editor-store-ZJEI2Y4S.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-IYOPVYY4.js");
147
+ const { useEditorStore } = await import("./editor-store-ZJEI2Y4S.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-5CESYF4T.js");
191
+ const { publishLibrary } = await import("./libraries-63XDLUTQ.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-5CESYF4T.js");
223
+ const { unpublishLibrary } = await import("./libraries-63XDLUTQ.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-IYOPVYY4.js"),
236
- import("./versions-DLHWVJTA.js")
235
+ import("./editor-store-ZJEI2Y4S.js"),
236
+ import("./versions-KAGIVDGI.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-DLHWVJTA.js");
269
+ const { restoreVersion } = await import("./versions-KAGIVDGI.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-DLHWVJTA.js");
294
+ const { deleteVersion } = await import("./versions-KAGIVDGI.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 } };
@@ -20,14 +20,14 @@ import {
20
20
  } from "./chunk-7SPWZYOD.js";
21
21
  import {
22
22
  notice
23
- } from "./chunk-M2S7XTVS.js";
23
+ } from "./chunk-TBHIA4XW.js";
24
24
  import {
25
25
  agentContext
26
- } from "./chunk-PX2EGB5F.js";
26
+ } from "./chunk-LQFOBCGR.js";
27
27
  import {
28
28
  collabSession,
29
29
  syncStatus
30
- } from "./chunk-KTYVWBRU.js";
30
+ } from "./chunk-VSJFPVC6.js";
31
31
  import {
32
32
  loadEntitlements
33
33
  } from "./chunk-MONEISVG.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-EHX5IF4Y.js";
37
37
  import {
38
38
  useEditorStore
39
- } from "./chunk-FHHBFQQI.js";
39
+ } from "./chunk-TPDHDEOR.js";
40
40
  import {
41
41
  plansEnabled
42
42
  } from "./chunk-ES7DYRRQ.js";
@@ -9,7 +9,7 @@ import {
9
9
  hostEnv,
10
10
  plain,
11
11
  registerBuiltinCommands
12
- } from "./chunk-QWG2YIOH.js";
12
+ } from "./chunk-ZQ5E7XQ2.js";
13
13
  import {
14
14
  storeOpsSeam
15
15
  } from "./chunk-5IQXTWST.js";
@@ -573,7 +573,7 @@ var commands = [
573
573
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
574
574
  import("./storefront-prepare-YW3FELOX.js"),
575
575
  import("./storefront-GDV2CSNK.js"),
576
- import("./project-AYH7FCMW.js"),
576
+ import("./project-GSCF5IX2.js"),
577
577
  import("./zip-export-T3THUXFG.js"),
578
578
  import("./tree-OEVHZWUY.js")
579
579
  ]);
@@ -770,7 +770,7 @@ var pluginRun = defineCommand({
770
770
  }
771
771
  },
772
772
  run: async (p, ctx) => {
773
- const { runPlugin } = await import("./host-KVCYV4GQ.js");
773
+ const { runPlugin } = await import("./host-XR4CPZFP.js");
774
774
  await runPlugin(p.pluginId, p.commandId);
775
775
  ctx.notice(`Started ${p.pluginId}.`);
776
776
  return {
@@ -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-FHHBFQQI.js";
9
+ } from "./chunk-TPDHDEOR.js";
10
10
  import {
11
11
  announce
12
12
  } from "./chunk-IAQZ6JSZ.js";
@@ -21,11 +21,11 @@ import {
21
21
  } from "./chunk-P5YD36N4.js";
22
22
  import {
23
23
  syncStatus
24
- } from "./chunk-KTYVWBRU.js";
24
+ } from "./chunk-VSJFPVC6.js";
25
25
  import {
26
26
  setPluginTabs,
27
27
  useEditorStore
28
- } from "./chunk-FHHBFQQI.js";
28
+ } from "./chunk-TPDHDEOR.js";
29
29
  import {
30
30
  openBeside
31
31
  } from "./chunk-N53LH5QX.js";
@@ -69,7 +69,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
69
69
  // lib/plugins/api.ts
70
70
  init_define_POPCRAFT_COMPONENT_IDS();
71
71
  async function handlePluginCall(env, method, params = {}) {
72
- const { dispatchPluginCall } = await import("./plugin-ZOHFW4F5.js");
72
+ const { dispatchPluginCall } = await import("./plugin-NTIGYGND.js");
73
73
  return dispatchPluginCall(env, method, params);
74
74
  }
75
75
 
@@ -579,7 +579,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
579
579
  if (!openBeside(url)) throw new Error("The browser blocked the new tab");
580
580
  },
581
581
  createDocument: async (opts2) => {
582
- const { createFreshFileOrExplain } = await import("./new-file-UCG6AMMG.js");
582
+ const { createFreshFileOrExplain } = await import("./new-file-TWVJXOLS.js");
583
583
  const created = await createFreshFileOrExplain({}, { name: opts2?.name });
584
584
  if (!created.ok) throw new Error(created.reason === "plan" ? "Plan limit reached" : created.reason === "guest-limit" ? "Sign in to create another file" : `Could not create file (${created.reason})`);
585
585
  await useEditorStore.getState().openDocument(created.docId);
@@ -769,7 +769,7 @@ if (typeof window !== "undefined") {
769
769
  const name = d.name || "Imported";
770
770
  void (async () => {
771
771
  try {
772
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-T5QK5SKY.js");
772
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-O3I3UIKM.js");
773
773
  if (d.ir && typeof d.ir === "object") {
774
774
  await applyPluginLayoutIr(d.ir, { mode, name });
775
775
  return;
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-PX2EGB5F.js";
16
+ } from "./chunk-LQFOBCGR.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-JOQCOIMO.js";
@@ -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-632WXE4U.js");
60
+ const { requestAudio } = await import("./client-H4PYT2Y7.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-IBDYWMKZ.js");
66
+ const { generateVideoFile } = await import("./generate-media-H2SJCVZY.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-632WXE4U.js"),
72
+ import("./client-H4PYT2Y7.js"),
73
73
  import("./client-store-GALKAQXH.js")
74
74
  ]);
75
75
  const modelId = effectiveImageModel(useAiStore.getState());
@@ -150,7 +150,7 @@ function startHyperyTeams() {
150
150
  maybePromptForTeam();
151
151
  void followFileTeam(linkedKey);
152
152
  });
153
- void import("./sync-DC4GDGT5.js").then(({ onSyncStatus, syncStatus }) => {
153
+ void import("./sync-DJKHNDYN.js").then(({ onSyncStatus, syncStatus }) => {
154
154
  linkedKey = syncStatus().link?.key ?? null;
155
155
  void followFileTeam(linkedKey);
156
156
  onSyncStatus((_s, link) => {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-MONEISVG.js";
10
10
  import {
11
11
  activeTeamWorkspaceId
12
- } from "./chunk-HFG4PLYS.js";
12
+ } from "./chunk-N3PVLPAA.js";
13
13
  import {
14
14
  ApiError,
15
15
  GUEST_FILE_LIMIT,
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-7SYCPZLZ.js";
24
24
  import {
25
25
  markLibraryDocument
26
- } from "./chunk-FHHBFQQI.js";
26
+ } from "./chunk-TPDHDEOR.js";
27
27
  import {
28
28
  cloudEnabled,
29
29
  cloudUser
@@ -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-IYOPVYY4.js"),
94
+ import("./editor-store-ZJEI2Y4S.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-3TJ2JW6N.js")
96
+ import("./media-tool-HRPZSKD6.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);
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-CCULWYPP.js";
10
10
  import {
11
11
  notice
12
- } from "./chunk-M2S7XTVS.js";
12
+ } from "./chunk-TBHIA4XW.js";
13
13
  import {
14
14
  effectiveChatModel,
15
15
  setModelPref,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-KNLHOCVP.js";
18
18
  import {
19
19
  useEditorStore
20
- } from "./chunk-FHHBFQQI.js";
20
+ } from "./chunk-TPDHDEOR.js";
21
21
  import {
22
22
  create
23
23
  } from "./chunk-A63RBO5M.js";
@@ -1797,7 +1797,7 @@ async function sendMessage(text) {
1797
1797
  if (!useAgentStore.getState().activeThreadId) newThread();
1798
1798
  const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
1799
1799
  useAgentStore.setState({ draft: "", draftMentions: [], error: null });
1800
- const { runTurn } = await import("./runner-5IOYLLPI.js");
1800
+ const { runTurn } = await import("./runner-O2W4HSUV.js");
1801
1801
  await runTurn(body, mentions);
1802
1802
  }
1803
1803
  function stop() {
@@ -1900,7 +1900,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
1900
1900
  function subscribeChildTools() {
1901
1901
  let dispose;
1902
1902
  let cancelled = false;
1903
- void import("./runner-5IOYLLPI.js").then(({ onChildTool }) => {
1903
+ void import("./runner-O2W4HSUV.js").then(({ onChildTool }) => {
1904
1904
  const off = onChildTool((report) => {
1905
1905
  if (report?.status !== "running" || report.jobId) return;
1906
1906
  recordChildTool(report.toolCallId ?? "", report.name);
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  hyperyRequestHeaders
9
- } from "./chunk-3W4JSQ2T.js";
9
+ } from "./chunk-VXEQZ7WC.js";
10
10
  import {
11
11
  aiAvailability,
12
12
  effectiveChatModel,
@@ -28,10 +28,10 @@ import {
28
28
  requestImageAction,
29
29
  sizeForAspect,
30
30
  vectorSupport
31
- } from "./chunk-ERNBHUHI.js";
31
+ } from "./chunk-QMWJG27P.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-FHHBFQQI.js";
34
+ } from "./chunk-TPDHDEOR.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-TU46HSZS.js";
@@ -4582,7 +4582,7 @@ function createPopcornSlice(set2, get2) {
4582
4582
  privateMode: false,
4583
4583
  setPrivateMode: (on) => {
4584
4584
  set2({ privateMode: on });
4585
- void import("./presence-ZRB4MBU4.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4585
+ void import("./presence-BMFO2EE2.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4586
4586
  });
4587
4587
  },
4588
4588
  /** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
@@ -6635,7 +6635,7 @@ var useEditorStore = create()(
6635
6635
  // A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
6636
6636
  // Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
6637
6637
  duplicateDocument: async (id) => {
6638
- const { duplicateDocumentToCloud } = await import("./sync-DC4GDGT5.js");
6638
+ const { duplicateDocumentToCloud } = await import("./sync-DJKHNDYN.js");
6639
6639
  return duplicateDocumentToCloud(id);
6640
6640
  },
6641
6641
  deleteDocument: async (id) => {
@@ -10097,9 +10097,9 @@ if (typeof window !== "undefined") {
10097
10097
  if (typeof window !== "undefined" && navigator.webdriver) {
10098
10098
  window.__vpDesign = async (script, o = {}) => {
10099
10099
  const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
10100
- import("./tools-5HC3ADWQ.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-SMU2EMMI.js")).registerBuiltinTools })),
10101
- import("./editor-seams-KYOERJQB.js"),
10102
- import("./live-MUG2BHTK.js")
10100
+ import("./tools-IVMN7DTY.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-7QS35VK4.js")).registerBuiltinTools })),
10101
+ import("./editor-seams-HKG4B6Z7.js"),
10102
+ import("./live-5SKPMXKY.js")
10103
10103
  ]);
10104
10104
  registerBuiltinTools();
10105
10105
  const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
@@ -14,14 +14,14 @@ import {
14
14
  newFileRefusal,
15
15
  reportNewFileBlocked,
16
16
  setCloudLink
17
- } from "./chunk-WRCJVWSB.js";
17
+ } from "./chunk-NEVK76UB.js";
18
18
  import {
19
19
  parseDeepLink,
20
20
  withDeepLink
21
21
  } from "./chunk-OKQCYAPJ.js";
22
22
  import {
23
23
  activeTeamWorkspaceId
24
- } from "./chunk-HFG4PLYS.js";
24
+ } from "./chunk-N3PVLPAA.js";
25
25
  import {
26
26
  ApiError,
27
27
  api,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-EHX5IF4Y.js";
30
30
  import {
31
31
  attachPresence
32
- } from "./chunk-ZT5ETBEE.js";
32
+ } from "./chunk-G6ER3HDZ.js";
33
33
  import {
34
34
  isPersistableDocument,
35
35
  isUnsavedPlaceholder,
@@ -40,7 +40,7 @@ import {
40
40
  setCollabHistory,
41
41
  storedDocument,
42
42
  useEditorStore
43
- } from "./chunk-FHHBFQQI.js";
43
+ } from "./chunk-TPDHDEOR.js";
44
44
  import {
45
45
  currentHistoryGroup
46
46
  } from "./chunk-TU46HSZS.js";
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-HFG4PLYS.js";
14
+ } from "./chunk-N3PVLPAA.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-EHX5IF4Y.js";
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinCommands,
9
9
  registerBuiltinCommands
10
- } from "./chunk-QWG2YIOH.js";
10
+ } from "./chunk-ZQ5E7XQ2.js";
11
11
  import {
12
12
  toolView
13
- } from "./chunk-PX2EGB5F.js";
13
+ } from "./chunk-LQFOBCGR.js";
14
14
  import {
15
15
  init_define_POPCRAFT_COMPONENT_IDS
16
16
  } from "./chunk-VD6RCW2E.js";