@popcraft/kit 0.53.14 → 0.53.15

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 (60) hide show
  1. package/dist/chunks/{agent-FSJEFIPY.js → agent-5U4U6C43.js} +1 -1
  2. package/dist/chunks/{builtin-IGI3AUEJ.js → builtin-G67V4RJF.js} +3 -3
  3. package/dist/chunks/{buy-credits-PUWEWVXS.js → buy-credits-5UKOLBHA.js} +2 -2
  4. package/dist/chunks/{check-template-TOP5OMHZ.js → check-template-RTWNUF7Q.js} +2 -2
  5. package/dist/chunks/{chunk-L3WQGPTO.js → chunk-3W53KLNF.js} +1 -1
  6. package/dist/chunks/{chunk-IOL5IDMF.js → chunk-5ANWZ37I.js} +58 -48
  7. package/dist/chunks/{chunk-UNX5L3LC.js → chunk-C2GTJPT5.js} +3 -3
  8. package/dist/chunks/{chunk-ETL6GIHH.js → chunk-F3PBS2Z5.js} +10 -6
  9. package/dist/chunks/{chunk-53RCZPJR.js → chunk-FT64PUMZ.js} +4 -4
  10. package/dist/chunks/{chunk-Y5BURR2Y.js → chunk-G33U3C3W.js} +1 -1
  11. package/dist/chunks/{chunk-6AOXUMWU.js → chunk-GLSJFVGH.js} +1 -1
  12. package/dist/chunks/{chunk-J7K543IW.js → chunk-IQDKL6R5.js} +4 -4
  13. package/dist/chunks/{chunk-2WK7BHVX.js → chunk-J6IPNDUM.js} +2 -2
  14. package/dist/chunks/{chunk-47MKTQTW.js → chunk-JH3F3JX7.js} +5 -5
  15. package/dist/chunks/{chunk-KIIXFEQ5.js → chunk-RET3ZYRN.js} +1 -1
  16. package/dist/chunks/{chunk-UPJNYLDK.js → chunk-SCGTY227.js} +1 -1
  17. package/dist/chunks/{chunk-QOCIWG7Y.js → chunk-TUPHMLPV.js} +1 -1
  18. package/dist/chunks/{chunk-C4PNLR6R.js → chunk-V5OPDI56.js} +9 -9
  19. package/dist/chunks/{chunk-KUWEAGOR.js → chunk-VCD6WEEH.js} +3 -3
  20. package/dist/chunks/{chunk-ZBZGUMTR.js → chunk-VIYUKTOT.js} +3 -3
  21. package/dist/chunks/{chunk-TMTHHTEL.js → chunk-VW2Q7ERH.js} +11 -11
  22. package/dist/chunks/{chunk-HRMLMLYJ.js → chunk-VXOQFVPW.js} +2 -2
  23. package/dist/chunks/{chunk-PIOGFOWS.js → chunk-YHG7UWFJ.js} +2 -2
  24. package/dist/chunks/{chunk-4QN2WHC4.js → chunk-YHVBH4GK.js} +4 -4
  25. package/dist/chunks/{client-XK74SNHF.js → client-EWVMZ6CF.js} +2 -2
  26. package/dist/chunks/{client-6WNXKMRS.js → client-MLI53ZNN.js} +3 -3
  27. package/dist/chunks/{client-CSCCSZ3A.js → client-WGYLRZ5W.js} +1 -1
  28. package/dist/chunks/{client-actions-VRVF2IDF.js → client-actions-AF3YLM73.js} +6 -6
  29. package/dist/chunks/{dangerous-TWFQT7KS.js → dangerous-OBN3GMPU.js} +3 -3
  30. package/dist/chunks/{delete-current-file-F6UD6TUY.js → delete-current-file-R2CGPD6P.js} +5 -5
  31. package/dist/chunks/{editor-seams-LBR2YU3I.js → editor-seams-KMPTES3K.js} +11 -11
  32. package/dist/chunks/{editor-store-S3I62M6V.js → editor-store-2SPG6CDB.js} +1 -1
  33. package/dist/chunks/{export-watermark-PNTZXFDE.js → export-watermark-KBMDOVSF.js} +5 -5
  34. package/dist/chunks/{eyedropper-LU25BWYG.js → eyedropper-OYWRSZUA.js} +1 -1
  35. package/dist/chunks/{generate-media-V6EIA225.js → generate-media-GOWIQCUK.js} +3 -3
  36. package/dist/chunks/{host-JDDC6RB6.js → host-SSDIETZS.js} +6 -6
  37. package/dist/chunks/{integrations-VJJ5XIIO.js → integrations-ZWSNTNFK.js} +1 -1
  38. package/dist/chunks/{libraries-L4UVDSTX.js → libraries-3RB4C5H3.js} +5 -5
  39. package/dist/chunks/{live-2EMT5B74.js → live-LQWDISXX.js} +1 -1
  40. package/dist/chunks/{media-tool-QXHSL7E6.js → media-tool-HLCFTLIH.js} +6 -1
  41. package/dist/chunks/{new-file-AQIDPJCS.js → new-file-BL7UV3JO.js} +3 -3
  42. package/dist/chunks/{plugin-GRA3KNGY.js → plugin-XPWKYRQM.js} +2 -2
  43. package/dist/chunks/{plugin-import-IHL3EJOJ.js → plugin-import-4ROQ6UYM.js} +16 -16
  44. package/dist/chunks/{presence-ED565XFS.js → presence-VJE6WHKF.js} +2 -2
  45. package/dist/chunks/{project-PAYXTSYV.js → project-LO5CZDIT.js} +1 -1
  46. package/dist/chunks/{publish-site-Q3DHBNNU.js → publish-site-NIEC2X7V.js} +6 -6
  47. package/dist/chunks/{publish-store-QS5HTSDI.js → publish-store-JSJJPBZN.js} +4 -4
  48. package/dist/chunks/{raster-actions-B2GFWM23.js → raster-actions-F5RKSV2V.js} +1 -1
  49. package/dist/chunks/{runner-RBZF2S2B.js → runner-MJ3Q3NW3.js} +18 -18
  50. package/dist/chunks/{store-B6I7XTKY.js → store-2WWSL2DR.js} +7 -7
  51. package/dist/chunks/{svg-place-TISTLAQB.js → svg-place-BWACOZJR.js} +1 -1
  52. package/dist/chunks/{sync-44IIKKZT.js → sync-YRC4CAYD.js} +5 -5
  53. package/dist/chunks/{tabs-KKLR5PAW.js → tabs-LNKNT7FE.js} +8 -8
  54. package/dist/chunks/{team-NHML4HFZ.js → team-YVXVKPS3.js} +1 -1
  55. package/dist/chunks/{team-client-5745O2TB.js → team-client-BPI2FI3K.js} +1 -1
  56. package/dist/chunks/{tools-GSV6WRCF.js → tools-2HVINJ4B.js} +2 -2
  57. package/dist/chunks/{ui-commands-KBGR2YJD.js → ui-commands-5RZ3OLFU.js} +13 -13
  58. package/dist/chunks/{versions-LQSEFYTK.js → versions-WT6SPAR2.js} +5 -5
  59. package/dist/index.js +1 -1
  60. package/package.json +1 -1
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-T2U7UWFL.js";
16
16
  import {
17
17
  syncStatus
18
- } from "./chunk-53RCZPJR.js";
18
+ } from "./chunk-FT64PUMZ.js";
19
19
  import {
20
20
  exportNodeToSVG
21
21
  } from "./chunk-O7KIQRJE.js";
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  setPluginTabs,
30
30
  useEditorStore
31
- } from "./chunk-ETL6GIHH.js";
31
+ } from "./chunk-F3PBS2Z5.js";
32
32
  import {
33
33
  openBeside
34
34
  } from "./chunk-HU75T2CC.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-GRA3KNGY.js");
72
+ const { dispatchPluginCall } = await import("./plugin-XPWKYRQM.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-AQIDPJCS.js");
582
+ const { createFreshFileOrExplain } = await import("./new-file-BL7UV3JO.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-IHL3EJOJ.js");
772
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-4ROQ6UYM.js");
773
773
  if (d.ir && typeof d.ir === "object") {
774
774
  await applyPluginLayoutIr(d.ir, { mode, name });
775
775
  return;
@@ -70,7 +70,7 @@ function placeSvgLayers(doc, parentId, svg, place) {
70
70
  }
71
71
  const minX = Math.min(...kids.map((k2) => k2.x)), minY = Math.min(...kids.map((k2) => k2.y));
72
72
  const maxX = Math.max(...kids.map((k2) => k2.x + k2.width)), maxY = Math.max(...kids.map((k2) => k2.y + k2.height));
73
- for (const k2 of kids) nodes[k2.id] = { ...nodes[k2.id], x: k2.x - minX, y: k2.y - minY };
73
+ for (const k2 of kids) nodes[k2.id] = { ...nodes[k2.id], x: k2.x - minX, y: k2.y - minY, constraints: { horizontal: "SCALE", vertical: "SCALE" } };
74
74
  let w = Math.max(1, maxX - minX), h = Math.max(1, maxY - minY);
75
75
  const f = place.fit;
76
76
  const k = f && (f.width || f.height) ? Math.min(f.width ? f.width / w : Infinity, f.height ? f.height / h : Infinity) : 1;
@@ -150,7 +150,7 @@ function startHyperyTeams() {
150
150
  maybePromptForTeam();
151
151
  void followFileTeam(linkedKey);
152
152
  });
153
- void import("./sync-44IIKKZT.js").then(({ onSyncStatus, syncStatus }) => {
153
+ void import("./sync-YRC4CAYD.js").then(({ onSyncStatus, syncStatus }) => {
154
154
  linkedKey = syncStatus().link?.key ?? null;
155
155
  void followFileTeam(linkedKey);
156
156
  onSyncStatus((_s, link) => {
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-UPJNYLDK.js";
14
+ } from "./chunk-SCGTY227.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-7OJZZPU4.js";
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-IOL5IDMF.js";
11
+ } from "./chunk-5ANWZ37I.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-S3I62M6V.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-2SPG6CDB.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({
@@ -167,7 +167,7 @@ var dialogOpen = defineCommand({
167
167
  (await import("./plan-limit-NQZVPJSA.js")).openPlanDialog();
168
168
  break;
169
169
  case "credits":
170
- await (await import("./buy-credits-PUWEWVXS.js")).buyAiCredits();
170
+ await (await import("./buy-credits-5UKOLBHA.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-B6I7XTKY.js")).openAgentPanel({ skillId: skillId ?? null });
216
+ else (await import("./store-2WWSL2DR.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-RBZF2S2B.js")).continueTurn();
229
+ const resumed = await (await import("./runner-MJ3Q3NW3.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-QXHSL7E6.js");
308
+ const { placeMediaFromPicker } = await import("./media-tool-HLCFTLIH.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-LU25BWYG.js");
312
+ const { beginEyedrop } = await import("./eyedropper-OYWRSZUA.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-B2GFWM23.js");
330
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-F5RKSV2V.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-JDDC6RB6.js")).runPlugin(pluginId, commandId);
441
+ await (await import("./host-SSDIETZS.js")).runPlugin(pluginId, commandId);
442
442
  return { summary: "Plugin started" };
443
443
  }
444
444
  });
@@ -9,7 +9,7 @@ import {
9
9
  hostEnv,
10
10
  plain,
11
11
  registerBuiltinCommands
12
- } from "./chunk-IOL5IDMF.js";
12
+ } from "./chunk-5ANWZ37I.js";
13
13
  import {
14
14
  storeOpsSeam
15
15
  } from "./chunk-GUR467P4.js";
@@ -618,7 +618,7 @@ var commands = [
618
618
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
619
619
  import("./storefront-prepare-KXYUIYOX.js"),
620
620
  import("./storefront-UUS57X6E.js"),
621
- import("./project-PAYXTSYV.js"),
621
+ import("./project-LO5CZDIT.js"),
622
622
  import("./zip-export-ITATIAQ3.js"),
623
623
  import("./tree-WU53OA64.js")
624
624
  ]);
@@ -815,7 +815,7 @@ var pluginRun = defineCommand({
815
815
  }
816
816
  },
817
817
  run: async (p, ctx) => {
818
- const { runPlugin } = await import("./host-JDDC6RB6.js");
818
+ const { runPlugin } = await import("./host-SSDIETZS.js");
819
819
  await runPlugin(p.pluginId, p.commandId);
820
820
  ctx.notice(`Started ${p.pluginId}.`);
821
821
  return {
@@ -16,13 +16,13 @@ import {
16
16
  requestImageAction,
17
17
  sizeForAspect,
18
18
  vectorSupport
19
- } from "./chunk-L3WQGPTO.js";
19
+ } from "./chunk-3W53KLNF.js";
20
20
  import {
21
21
  external_exports
22
22
  } from "./chunk-UDDWBCFE.js";
23
23
  import {
24
24
  placeSvgLayers
25
- } from "./chunk-KIIXFEQ5.js";
25
+ } from "./chunk-RET3ZYRN.js";
26
26
  import {
27
27
  exportNodeToSVG
28
28
  } from "./chunk-O7KIQRJE.js";
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-X4E6BGB6.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-ETL6GIHH.js";
34
+ } from "./chunk-F3PBS2Z5.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-DUH4J3CB.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-KUWEAGOR.js";
9
+ } from "./chunk-VCD6WEEH.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-IOL5IDMF.js";
16
+ } from "./chunk-5ANWZ37I.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-ED565XFS.js");
56
+ const { setSpotlight } = await import("./presence-VJE6WHKF.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-S3I62M6V.js");
83
+ const { useEditorStore } = await import("./editor-store-2SPG6CDB.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-S3I62M6V.js");
147
+ const { useEditorStore } = await import("./editor-store-2SPG6CDB.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-L4UVDSTX.js");
191
+ const { publishLibrary } = await import("./libraries-3RB4C5H3.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-L4UVDSTX.js");
223
+ const { unpublishLibrary } = await import("./libraries-3RB4C5H3.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-S3I62M6V.js"),
236
- import("./versions-LQSEFYTK.js")
235
+ import("./editor-store-2SPG6CDB.js"),
236
+ import("./versions-WT6SPAR2.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-LQSEFYTK.js");
269
+ const { restoreVersion } = await import("./versions-WT6SPAR2.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-LQSEFYTK.js");
294
+ const { deleteVersion } = await import("./versions-WT6SPAR2.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 } };
@@ -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-S3I62M6V.js"),
94
+ import("./editor-store-2SPG6CDB.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-QXHSL7E6.js")
96
+ import("./media-tool-HLCFTLIH.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-6TMH7HCQ.js";
10
10
  import {
11
11
  activeTeamWorkspaceId
12
- } from "./chunk-UPJNYLDK.js";
12
+ } from "./chunk-SCGTY227.js";
13
13
  import {
14
14
  ApiError,
15
15
  GUEST_FILE_LIMIT,
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-KA6COJ7W.js";
24
24
  import {
25
25
  markLibraryDocument
26
- } from "./chunk-ETL6GIHH.js";
26
+ } from "./chunk-F3PBS2Z5.js";
27
27
  import {
28
28
  create
29
29
  } from "./chunk-RVNIEOXA.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-6YGUTIAY.js";
10
10
  import {
11
11
  notice
12
- } from "./chunk-ZBZGUMTR.js";
12
+ } from "./chunk-VIYUKTOT.js";
13
13
  import {
14
14
  effectiveChatModel,
15
15
  setModelPref,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-L47DGY5Z.js";
18
18
  import {
19
19
  useEditorStore
20
- } from "./chunk-ETL6GIHH.js";
20
+ } from "./chunk-F3PBS2Z5.js";
21
21
  import {
22
22
  create
23
23
  } from "./chunk-RVNIEOXA.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-RBZF2S2B.js");
1800
+ const { runTurn } = await import("./runner-MJ3Q3NW3.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-RBZF2S2B.js").then(({ onChildTool }) => {
1903
+ void import("./runner-MJ3Q3NW3.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);
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  defaultMeasure,
9
9
  placePicture
10
- } from "./chunk-HRMLMLYJ.js";
10
+ } from "./chunk-VXOQFVPW.js";
11
11
  import "./chunk-AKNWNB6A.js";
12
12
  import {
13
13
  api
@@ -121,7 +121,7 @@ async function placeLibraryItem(item, opts = {}) {
121
121
  }
122
122
  if (item.contentType.startsWith("video/")) {
123
123
  const file = await libraryFile(item, opts);
124
- const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-S3I62M6V.js"), import("./media-tool-QXHSL7E6.js")]);
124
+ const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-2SPG6CDB.js"), import("./media-tool-HLCFTLIH.js")]);
125
125
  const cam = useEditorStore.getState().camera;
126
126
  await placeMediaFile(file, { kind: "point", ...opts.at ?? { x: cam.x, y: cam.y } });
127
127
  return useEditorStore.getState().selection[0] ?? null;
@@ -16,11 +16,11 @@ import {
16
16
  requestEmbeddings,
17
17
  requestImage,
18
18
  requestImageAction
19
- } from "./chunk-L3WQGPTO.js";
20
- import "./chunk-QOCIWG7Y.js";
19
+ } from "./chunk-3W53KLNF.js";
20
+ import "./chunk-TUPHMLPV.js";
21
21
  import "./chunk-L47DGY5Z.js";
22
22
  import "./chunk-6TMH7HCQ.js";
23
- import "./chunk-UPJNYLDK.js";
23
+ import "./chunk-SCGTY227.js";
24
24
  import "./chunk-7OJZZPU4.js";
25
25
  import "./chunk-4DCE2NBA.js";
26
26
  import "./chunk-RVNIEOXA.js";
@@ -14,7 +14,7 @@ import {
14
14
  placeStockPhoto,
15
15
  searchStockPhotos,
16
16
  stockPhotoInfo
17
- } from "./chunk-HRMLMLYJ.js";
17
+ } from "./chunk-VXOQFVPW.js";
18
18
  import "./chunk-AKNWNB6A.js";
19
19
  import "./chunk-63KP74KB.js";
20
20
  import "./chunk-LJSVREWM.js";
@@ -16,13 +16,13 @@ import {
16
16
  selectedVectorTarget,
17
17
  startImageAction,
18
18
  startImageGeneration
19
- } from "./chunk-ZBZGUMTR.js";
19
+ } from "./chunk-VIYUKTOT.js";
20
20
  import "./chunk-FXQCJKLS.js";
21
- import "./chunk-L3WQGPTO.js";
22
- import "./chunk-QOCIWG7Y.js";
21
+ import "./chunk-3W53KLNF.js";
22
+ import "./chunk-TUPHMLPV.js";
23
23
  import "./chunk-L47DGY5Z.js";
24
24
  import "./chunk-UDDWBCFE.js";
25
- import "./chunk-KIIXFEQ5.js";
25
+ import "./chunk-RET3ZYRN.js";
26
26
  import "./chunk-O7KIQRJE.js";
27
27
  import "./chunk-L2VARVQP.js";
28
28
  import "./chunk-PQS6DHQP.js";
@@ -38,10 +38,10 @@ import "./chunk-ZJA62LXW.js";
38
38
  import "./chunk-7SQJMUIG.js";
39
39
  import "./chunk-EH6D57EA.js";
40
40
  import "./chunk-6TMH7HCQ.js";
41
- import "./chunk-UPJNYLDK.js";
41
+ import "./chunk-SCGTY227.js";
42
42
  import "./chunk-7OJZZPU4.js";
43
43
  import "./chunk-4DCE2NBA.js";
44
- import "./chunk-ETL6GIHH.js";
44
+ import "./chunk-F3PBS2Z5.js";
45
45
  import "./chunk-PPM77AQB.js";
46
46
  import "./chunk-HU75T2CC.js";
47
47
  import "./chunk-DUH4J3CB.js";
@@ -8,9 +8,9 @@ import {
8
8
  confirmTierCommands,
9
9
  dangerousCommands,
10
10
  registerDangerousCommands
11
- } from "./chunk-TMTHHTEL.js";
12
- import "./chunk-KUWEAGOR.js";
13
- import "./chunk-IOL5IDMF.js";
11
+ } from "./chunk-VW2Q7ERH.js";
12
+ import "./chunk-VCD6WEEH.js";
13
+ import "./chunk-5ANWZ37I.js";
14
14
  import "./chunk-LJZR7CU3.js";
15
15
  import "./chunk-JNBUJE2Z.js";
16
16
  import "./chunk-EGUH2RFR.js";
@@ -6,21 +6,21 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  syncStatus
9
- } from "./chunk-53RCZPJR.js";
9
+ } from "./chunk-FT64PUMZ.js";
10
10
  import "./chunk-ZBANBY2Q.js";
11
- import "./chunk-PIOGFOWS.js";
11
+ import "./chunk-YHG7UWFJ.js";
12
12
  import "./chunk-6TMH7HCQ.js";
13
13
  import "./chunk-HFCMTDPQ.js";
14
- import "./chunk-UPJNYLDK.js";
14
+ import "./chunk-SCGTY227.js";
15
15
  import {
16
16
  cloudApi
17
17
  } from "./chunk-7OJZZPU4.js";
18
18
  import "./chunk-4DCE2NBA.js";
19
19
  import "./chunk-KA6COJ7W.js";
20
- import "./chunk-6AOXUMWU.js";
20
+ import "./chunk-GLSJFVGH.js";
21
21
  import {
22
22
  useEditorStore
23
- } from "./chunk-ETL6GIHH.js";
23
+ } from "./chunk-F3PBS2Z5.js";
24
24
  import "./chunk-PPM77AQB.js";
25
25
  import "./chunk-HU75T2CC.js";
26
26
  import "./chunk-DUH4J3CB.js";
@@ -7,19 +7,19 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  editBlockReason,
9
9
  editorToolContext
10
- } from "./chunk-J7K543IW.js";
10
+ } from "./chunk-IQDKL6R5.js";
11
11
  import "./chunk-GUR467P4.js";
12
12
  import "./chunk-D6YVHRBL.js";
13
- import "./chunk-ZBZGUMTR.js";
13
+ import "./chunk-VIYUKTOT.js";
14
14
  import "./chunk-FXQCJKLS.js";
15
- import "./chunk-L3WQGPTO.js";
16
- import "./chunk-QOCIWG7Y.js";
15
+ import "./chunk-3W53KLNF.js";
16
+ import "./chunk-TUPHMLPV.js";
17
17
  import "./chunk-L47DGY5Z.js";
18
18
  import "./chunk-UDDWBCFE.js";
19
- import "./chunk-UNX5L3LC.js";
19
+ import "./chunk-C2GTJPT5.js";
20
20
  import "./chunk-T2U7UWFL.js";
21
- import "./chunk-KIIXFEQ5.js";
22
- import "./chunk-53RCZPJR.js";
21
+ import "./chunk-RET3ZYRN.js";
22
+ import "./chunk-FT64PUMZ.js";
23
23
  import "./chunk-ZBANBY2Q.js";
24
24
  import "./chunk-O7KIQRJE.js";
25
25
  import "./chunk-L2VARVQP.js";
@@ -37,15 +37,15 @@ import "./chunk-7SQJMUIG.js";
37
37
  import "./chunk-FIJRNTK2.js";
38
38
  import "./chunk-NPFIKFPP.js";
39
39
  import "./chunk-EH6D57EA.js";
40
- import "./chunk-PIOGFOWS.js";
40
+ import "./chunk-YHG7UWFJ.js";
41
41
  import "./chunk-6TMH7HCQ.js";
42
42
  import "./chunk-HFCMTDPQ.js";
43
- import "./chunk-UPJNYLDK.js";
43
+ import "./chunk-SCGTY227.js";
44
44
  import "./chunk-7OJZZPU4.js";
45
45
  import "./chunk-4DCE2NBA.js";
46
46
  import "./chunk-KA6COJ7W.js";
47
- import "./chunk-6AOXUMWU.js";
48
- import "./chunk-ETL6GIHH.js";
47
+ import "./chunk-GLSJFVGH.js";
48
+ import "./chunk-F3PBS2Z5.js";
49
49
  import "./chunk-PPM77AQB.js";
50
50
  import "./chunk-HU75T2CC.js";
51
51
  import "./chunk-DUH4J3CB.js";
@@ -19,7 +19,7 @@ import {
19
19
  useEditorStore,
20
20
  useMode,
21
21
  useSelection
22
- } from "./chunk-ETL6GIHH.js";
22
+ } from "./chunk-F3PBS2Z5.js";
23
23
  import "./chunk-PPM77AQB.js";
24
24
  import "./chunk-HU75T2CC.js";
25
25
  import "./chunk-DUH4J3CB.js";
@@ -6,17 +6,17 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  syncStatus
9
- } from "./chunk-53RCZPJR.js";
9
+ } from "./chunk-FT64PUMZ.js";
10
10
  import "./chunk-ZBANBY2Q.js";
11
11
  import {
12
12
  isGuest
13
- } from "./chunk-PIOGFOWS.js";
13
+ } from "./chunk-YHG7UWFJ.js";
14
14
  import {
15
15
  cachedLimits,
16
16
  loadEntitlements
17
17
  } from "./chunk-6TMH7HCQ.js";
18
18
  import "./chunk-HFCMTDPQ.js";
19
- import "./chunk-UPJNYLDK.js";
19
+ import "./chunk-SCGTY227.js";
20
20
  import {
21
21
  PLANS,
22
22
  cloudApi,
@@ -24,8 +24,8 @@ import {
24
24
  } from "./chunk-7OJZZPU4.js";
25
25
  import "./chunk-4DCE2NBA.js";
26
26
  import "./chunk-KA6COJ7W.js";
27
- import "./chunk-6AOXUMWU.js";
28
- import "./chunk-ETL6GIHH.js";
27
+ import "./chunk-GLSJFVGH.js";
28
+ import "./chunk-F3PBS2Z5.js";
29
29
  import "./chunk-PPM77AQB.js";
30
30
  import "./chunk-HU75T2CC.js";
31
31
  import "./chunk-DUH4J3CB.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-ZBANBY2Q.js";
13
13
  import {
14
14
  useEditorStore
15
- } from "./chunk-ETL6GIHH.js";
15
+ } from "./chunk-F3PBS2Z5.js";
16
16
  import "./chunk-PPM77AQB.js";
17
17
  import "./chunk-HU75T2CC.js";
18
18
  import "./chunk-DUH4J3CB.js";
@@ -12,8 +12,8 @@ import {
12
12
  import {
13
13
  AiClientError,
14
14
  aiFetch
15
- } from "./chunk-L3WQGPTO.js";
16
- import "./chunk-QOCIWG7Y.js";
15
+ } from "./chunk-3W53KLNF.js";
16
+ import "./chunk-TUPHMLPV.js";
17
17
  import {
18
18
  useAiStore
19
19
  } from "./chunk-L47DGY5Z.js";
@@ -24,7 +24,7 @@ import "./chunk-FFIZKGS2.js";
24
24
  import "./chunk-7SQJMUIG.js";
25
25
  import "./chunk-EH6D57EA.js";
26
26
  import "./chunk-6TMH7HCQ.js";
27
- import "./chunk-UPJNYLDK.js";
27
+ import "./chunk-SCGTY227.js";
28
28
  import "./chunk-7OJZZPU4.js";
29
29
  import "./chunk-4DCE2NBA.js";
30
30
  import {
@@ -18,12 +18,12 @@ import {
18
18
  runPluginWithImport,
19
19
  runningSessionFor,
20
20
  setEnabled
21
- } from "./chunk-47MKTQTW.js";
21
+ } from "./chunk-JH3F3JX7.js";
22
22
  import "./chunk-QS4AT3DM.js";
23
23
  import "./chunk-XKUI2K2V.js";
24
24
  import "./chunk-UDDWBCFE.js";
25
25
  import "./chunk-T2U7UWFL.js";
26
- import "./chunk-53RCZPJR.js";
26
+ import "./chunk-FT64PUMZ.js";
27
27
  import "./chunk-ZBANBY2Q.js";
28
28
  import "./chunk-O7KIQRJE.js";
29
29
  import "./chunk-L2VARVQP.js";
@@ -39,16 +39,16 @@ import "./chunk-ZQMCKI3G.js";
39
39
  import "./chunk-ZJA62LXW.js";
40
40
  import "./chunk-7SQJMUIG.js";
41
41
  import "./chunk-EH6D57EA.js";
42
- import "./chunk-PIOGFOWS.js";
42
+ import "./chunk-YHG7UWFJ.js";
43
43
  import "./chunk-6TMH7HCQ.js";
44
44
  import "./chunk-HFCMTDPQ.js";
45
45
  import "./chunk-N72PY6HV.js";
46
- import "./chunk-UPJNYLDK.js";
46
+ import "./chunk-SCGTY227.js";
47
47
  import "./chunk-7OJZZPU4.js";
48
48
  import "./chunk-4DCE2NBA.js";
49
49
  import "./chunk-KA6COJ7W.js";
50
- import "./chunk-6AOXUMWU.js";
51
- import "./chunk-ETL6GIHH.js";
50
+ import "./chunk-GLSJFVGH.js";
51
+ import "./chunk-F3PBS2Z5.js";
52
52
  import "./chunk-PPM77AQB.js";
53
53
  import "./chunk-HU75T2CC.js";
54
54
  import "./chunk-DUH4J3CB.js";
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  activeTeamWorkspaceId,
9
9
  useHyperyTeam
10
- } from "./chunk-UPJNYLDK.js";
10
+ } from "./chunk-SCGTY227.js";
11
11
  import {
12
12
  api
13
13
  } from "./chunk-7OJZZPU4.js";