@popcraft/kit 0.60.0 → 0.60.1

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-Q7OXDRHJ.js → agent-U5CT23QH.js} +1 -1
  2. package/dist/chunks/{builtin-3AHQTRQS.js → builtin-C5AGHFJS.js} +3 -3
  3. package/dist/chunks/{buy-credits-M5QSN6YX.js → buy-credits-SMWSEVH3.js} +2 -2
  4. package/dist/chunks/{check-template-BW7WMU7W.js → check-template-P3BJBABQ.js} +2 -2
  5. package/dist/chunks/{chunk-MG5QDKHG.js → chunk-52TGB2U2.js} +6 -6
  6. package/dist/chunks/{chunk-LKY26YDG.js → chunk-764KUMRX.js} +4 -4
  7. package/dist/chunks/{chunk-E56XNADQ.js → chunk-AJSP6UG5.js} +5 -5
  8. package/dist/chunks/{chunk-Y4TO2YBR.js → chunk-AM5IA4WG.js} +1 -1
  9. package/dist/chunks/{chunk-P65CHL53.js → chunk-APUK7EIY.js} +49 -44
  10. package/dist/chunks/{chunk-PHH2CCKN.js → chunk-CEDF2YMY.js} +3 -1
  11. package/dist/chunks/{chunk-WK7CZCZE.js → chunk-EXIMH4VA.js} +5 -5
  12. package/dist/chunks/{chunk-NORHNWBU.js → chunk-FEIULPGN.js} +1 -1
  13. package/dist/chunks/{chunk-HWCV6VTU.js → chunk-J2MGIBMU.js} +2 -2
  14. package/dist/chunks/{chunk-FSXWJRG7.js → chunk-JT2PN2SD.js} +2 -2
  15. package/dist/chunks/{chunk-5TFMD3UF.js → chunk-K6ZHDHL4.js} +2 -2
  16. package/dist/chunks/{chunk-GGWLSD5K.js → chunk-KRJ5XS5E.js} +4 -4
  17. package/dist/chunks/{chunk-666ILBDC.js → chunk-MVXBWFQQ.js} +2 -2
  18. package/dist/chunks/{chunk-3XACBHHM.js → chunk-NJ4LYRQB.js} +3 -3
  19. package/dist/chunks/{chunk-UYIT4HE6.js → chunk-PXOFPOY2.js} +34 -10
  20. package/dist/chunks/{chunk-5AKH4CCL.js → chunk-RW3BWTAF.js} +1 -1
  21. package/dist/chunks/{chunk-VUFGU4BS.js → chunk-XHVSDFQ4.js} +1 -1
  22. package/dist/chunks/{chunk-SOU52U4S.js → chunk-YMKIF26Z.js} +3 -3
  23. package/dist/chunks/{chunk-BDVJX6TO.js → chunk-ZF3ZANVR.js} +11 -11
  24. package/dist/chunks/{client-UBP3IZBE.js → client-7ZQ3NFOV.js} +1 -1
  25. package/dist/chunks/{client-NFHQ5AR2.js → client-NSVV6YU3.js} +3 -3
  26. package/dist/chunks/{client-MGTRD3D5.js → client-VATC2K6O.js} +2 -2
  27. package/dist/chunks/{client-actions-LOEZVJGG.js → client-actions-YCMXTRBN.js} +5 -5
  28. package/dist/chunks/{dangerous-U5MQQW2Z.js → dangerous-KK5PLISX.js} +3 -3
  29. package/dist/chunks/{delete-current-file-GZCO6LRS.js → delete-current-file-UEH67VSJ.js} +5 -5
  30. package/dist/chunks/{editor-seams-DVU53E2R.js → editor-seams-KHCNE2X6.js} +12 -12
  31. package/dist/chunks/{editor-store-B5LF7ORJ.js → editor-store-U4JCAFCU.js} +1 -1
  32. package/dist/chunks/{export-watermark-5YOHTVF2.js → export-watermark-5IZGCYTN.js} +5 -5
  33. package/dist/chunks/{eyedropper-4PKCVCPJ.js → eyedropper-P4XU47GW.js} +1 -1
  34. package/dist/chunks/{generate-media-OZU5VNAM.js → generate-media-C53BQZIP.js} +3 -3
  35. package/dist/chunks/{host-IEOB7VLK.js → host-WMUHPIRI.js} +6 -6
  36. package/dist/chunks/{integrations-OYFFPUM7.js → integrations-2FDHXGFH.js} +1 -1
  37. package/dist/chunks/{libraries-UT7OFUEL.js → libraries-25V2MWYC.js} +5 -5
  38. package/dist/chunks/{live-AHHZJJMB.js → live-6OFYLILA.js} +1 -1
  39. package/dist/chunks/{media-tool-XPMNFYXL.js → media-tool-HXECTWKQ.js} +1 -1
  40. package/dist/chunks/{new-file-2JTQ7LYE.js → new-file-GDSII3GJ.js} +3 -3
  41. package/dist/chunks/{plugin-6KKJZ6SK.js → plugin-VULAPF3S.js} +2 -2
  42. package/dist/chunks/{plugin-import-SS5WZ2CK.js → plugin-import-6GFVLHSA.js} +16 -16
  43. package/dist/chunks/{presence-HFNFA2OE.js → presence-5S3JHO22.js} +2 -2
  44. package/dist/chunks/{project-C5GHWD4S.js → project-SEFKN7XE.js} +1 -1
  45. package/dist/chunks/{publish-site-7IVXVDCF.js → publish-site-YPVEW2PX.js} +6 -6
  46. package/dist/chunks/{publish-store-CAJOF4BJ.js → publish-store-Y3HLAH26.js} +4 -4
  47. package/dist/chunks/{raster-actions-AN77PUK7.js → raster-actions-27OTV5PS.js} +1 -1
  48. package/dist/chunks/{runner-6ENG2HGY.js → runner-A2BGPIFM.js} +18 -18
  49. package/dist/chunks/{store-OGZZAKRG.js → store-H4U53JZ5.js} +6 -6
  50. package/dist/chunks/{sync-OHFX5W44.js → sync-5B55RF3R.js} +5 -5
  51. package/dist/chunks/{tabs-FTM5BHT7.js → tabs-YQRQMAWT.js} +8 -8
  52. package/dist/chunks/{team-BHQYP6SA.js → team-IZT26MBY.js} +1 -1
  53. package/dist/chunks/{team-client-BK3AULCP.js → team-client-4NDH7VS4.js} +1 -1
  54. package/dist/chunks/{tools-JJFVJULW.js → tools-NUIVD75Y.js} +2 -2
  55. package/dist/chunks/{ui-commands-7Q3MDB2U.js → ui-commands-K4ONVDYV.js} +12 -12
  56. package/dist/chunks/{versions-HGSPPDDA.js → versions-IPWF3ZL3.js} +5 -5
  57. package/dist/index.js +1 -1
  58. package/package.json +1 -1
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinCommands,
9
9
  registerBuiltinCommands
10
- } from "./chunk-P65CHL53.js";
10
+ } from "./chunk-APUK7EIY.js";
11
11
  import {
12
12
  toolView
13
- } from "./chunk-3XACBHHM.js";
13
+ } from "./chunk-NJ4LYRQB.js";
14
14
  import {
15
15
  init_define_POPCRAFT_COMPONENT_IDS
16
16
  } from "./chunk-POJ5P6WK.js";
@@ -13,17 +13,17 @@ import {
13
13
  reportOpenStage,
14
14
  setCloudLink,
15
15
  trackOpen
16
- } from "./chunk-FSXWJRG7.js";
16
+ } from "./chunk-JT2PN2SD.js";
17
17
  import {
18
18
  parseDeepLink,
19
19
  withDeepLink
20
20
  } from "./chunk-GKJ4R7AO.js";
21
21
  import {
22
22
  activeTeamWorkspaceId
23
- } from "./chunk-5AKH4CCL.js";
23
+ } from "./chunk-RW3BWTAF.js";
24
24
  import {
25
25
  attachPresence
26
- } from "./chunk-Y4TO2YBR.js";
26
+ } from "./chunk-AM5IA4WG.js";
27
27
  import {
28
28
  fileOpeningMode,
29
29
  isAppleMobile,
@@ -36,7 +36,7 @@ import {
36
36
  setCollabHistory,
37
37
  storedDocument,
38
38
  useEditorStore
39
- } from "./chunk-WK7CZCZE.js";
39
+ } from "./chunk-EXIMH4VA.js";
40
40
  import {
41
41
  currentHistoryGroup
42
42
  } from "./chunk-OPKP7PLB.js";
@@ -28,10 +28,10 @@ import {
28
28
  requestImageAction,
29
29
  sizeForAspect,
30
30
  vectorSupport
31
- } from "./chunk-PHH2CCKN.js";
31
+ } from "./chunk-CEDF2YMY.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-WK7CZCZE.js";
34
+ } from "./chunk-EXIMH4VA.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-OPKP7PLB.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-NFHQ5AR2.js");
60
+ const { requestAudio } = await import("./client-NSVV6YU3.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-OZU5VNAM.js");
66
+ const { generateVideoFile } = await import("./generate-media-C53BQZIP.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-NFHQ5AR2.js"),
72
+ import("./client-NSVV6YU3.js"),
73
73
  import("./client-store-VKUTQKAJ.js")
74
74
  ]);
75
75
  const modelId = effectiveImageModel(useAiStore.getState());
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-P65CHL53.js";
11
+ } from "./chunk-APUK7EIY.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-IX7HAFDY.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-B5LF7ORJ.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-U4JCAFCU.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({
@@ -83,6 +83,30 @@ var modeEdit = defineCommand({
83
83
  return { summary: "Editing points" };
84
84
  }
85
85
  });
86
+ var PIXEL_SIZES = [16, 32, 64, 128];
87
+ var pixelCanvasNew = defineCommand({
88
+ id: "pixel.newCanvas",
89
+ title: "New pixel canvas",
90
+ domain: "node",
91
+ effect: "document",
92
+ permission: "write",
93
+ params: external_exports.object({ size: external_exports.number().int().min(4).max(512) }),
94
+ expose: { ui: { label: "New pixel canvas", keywords: ["pixel", "sprite", "pixel art", "canvas", "grid", "8-bit", "game"], variants: PIXEL_SIZES.map((n) => ({ id: String(n), label: `New pixel canvas ${n}\xD7${n}`, params: { size: n } })) } },
95
+ run: async ({ size }) => {
96
+ const s = await store();
97
+ const cell = size > 128 ? 2 : size > 64 ? 4 : 10;
98
+ const id = s.createNode("PIXEL_GRID", {
99
+ name: `Pixel canvas ${size}\xD7${size}`,
100
+ pixelWidth: size,
101
+ pixelHeight: size,
102
+ cellSize: cell,
103
+ x: s.camera.x - size * cell / 2,
104
+ y: s.camera.y - size * cell / 2
105
+ });
106
+ if (id) (await store()).enterPixelEdit(id);
107
+ return { summary: `New ${size}\xD7${size} pixel canvas` };
108
+ }
109
+ });
86
110
  var PANELS = [
87
111
  // Pages and layers are one panel now, but both names still find it: they are what people type.
88
112
  { id: "composition", side: "left", label: "Composition (pages & layers)" },
@@ -167,7 +191,7 @@ var dialogOpen = defineCommand({
167
191
  (await import("./plan-limit-DM55QOIK.js")).openPlanDialog();
168
192
  break;
169
193
  case "credits":
170
- await (await import("./buy-credits-M5QSN6YX.js")).buyAiCredits();
194
+ await (await import("./buy-credits-SMWSEVH3.js")).buyAiCredits();
171
195
  break;
172
196
  case "tokens":
173
197
  emit("popcraft-open-tokens");
@@ -213,7 +237,7 @@ var aiOpen = defineCommand({
213
237
  ] } },
214
238
  run: async ({ dialog, skillId }) => {
215
239
  if (dialog) (await import("./client-store-VKUTQKAJ.js")).openAiDialog(dialog);
216
- else (await import("./store-OGZZAKRG.js")).openAgentPanel({ skillId: skillId ?? null });
240
+ else (await import("./store-H4U53JZ5.js")).openAgentPanel({ skillId: skillId ?? null });
217
241
  return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
218
242
  }
219
243
  });
@@ -226,7 +250,7 @@ var agentContinue = defineCommand({
226
250
  params: external_exports.object({}),
227
251
  expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
228
252
  run: async () => {
229
- const resumed = await (await import("./runner-6ENG2HGY.js")).continueTurn();
253
+ const resumed = await (await import("./runner-A2BGPIFM.js")).continueTurn();
230
254
  return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
231
255
  }
232
256
  });
@@ -305,11 +329,11 @@ var toolPlace = defineCommand({
305
329
  run: async ({ what }) => {
306
330
  if (what === "media") {
307
331
  const s = await store();
308
- const { placeMediaFromPicker } = await import("./media-tool-XPMNFYXL.js");
332
+ const { placeMediaFromPicker } = await import("./media-tool-HXECTWKQ.js");
309
333
  await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
310
334
  return { summary: "Placing media" };
311
335
  }
312
- const { beginEyedrop } = await import("./eyedropper-4PKCVCPJ.js");
336
+ const { beginEyedrop } = await import("./eyedropper-P4XU47GW.js");
313
337
  void beginEyedrop();
314
338
  return { summary: "Pick a color" };
315
339
  }
@@ -327,7 +351,7 @@ var nodeRasterize = defineCommand({
327
351
  keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
328
352
  } },
329
353
  run: async () => {
330
- const { flattenSelectionToPaintLayer } = await import("./raster-actions-AN77PUK7.js");
354
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-27OTV5PS.js");
331
355
  await flattenSelectionToPaintLayer();
332
356
  return { summary: "Rasterized" };
333
357
  }
@@ -438,7 +462,7 @@ function pluginCommand(plugins) {
438
462
  params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
439
463
  expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
440
464
  run: async ({ pluginId, commandId }) => {
441
- await (await import("./host-IEOB7VLK.js")).runPlugin(pluginId, commandId);
465
+ await (await import("./host-WMUHPIRI.js")).runPlugin(pluginId, commandId);
442
466
  return { summary: "Plugin started" };
443
467
  }
444
468
  });
@@ -464,7 +488,7 @@ var viewSetBreakpoint = defineCommand({
464
488
  return { summary: `Showing ${(all.find((b) => b.id === shown) ?? all[0]).name}`, data: { breakpoint: shown ?? all[0].id } };
465
489
  }
466
490
  });
467
- var appCommands = [modeSet, modeEdit, nodeRasterize, panelOpen, panelToggle, dialogOpen, aiOpen, agentContinue, docAction, toolSet, toolPlace, nodeOps, canvasToggle, viewSetBreakpoint, popcornOpen, pageGo];
491
+ var appCommands = [modeSet, modeEdit, pixelCanvasNew, nodeRasterize, panelOpen, panelToggle, dialogOpen, aiOpen, agentContinue, docAction, toolSet, toolPlace, nodeOps, canvasToggle, viewSetBreakpoint, popcornOpen, pageGo];
468
492
  var started = false;
469
493
  function registerAppCommands() {
470
494
  registerCommand(...appCommands);
@@ -150,7 +150,7 @@ function startHyperyTeams() {
150
150
  maybePromptForTeam();
151
151
  void followFileTeam(linkedKey);
152
152
  });
153
- void import("./sync-OHFX5W44.js").then(({ onSyncStatus, syncStatus }) => {
153
+ void import("./sync-5B55RF3R.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-5AKH4CCL.js";
14
+ } from "./chunk-RW3BWTAF.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-CIDLHLQA.js";
@@ -12,7 +12,7 @@ import {
12
12
  hostEnv,
13
13
  plain,
14
14
  registerBuiltinCommands
15
- } from "./chunk-P65CHL53.js";
15
+ } from "./chunk-APUK7EIY.js";
16
16
  import {
17
17
  external_exports
18
18
  } from "./chunk-IX7HAFDY.js";
@@ -646,7 +646,7 @@ var commands = [
646
646
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
647
647
  import("./storefront-prepare-PAPD2BNC.js"),
648
648
  import("./storefront-4G4YKROR.js"),
649
- import("./project-C5GHWD4S.js"),
649
+ import("./project-SEFKN7XE.js"),
650
650
  import("./zip-export-64S64ROR.js"),
651
651
  import("./tree-EGLVXF7C.js")
652
652
  ]);
@@ -843,7 +843,7 @@ var pluginRun = defineCommand({
843
843
  }
844
844
  },
845
845
  run: async (p, ctx) => {
846
- const { runPlugin } = await import("./host-IEOB7VLK.js");
846
+ const { runPlugin } = await import("./host-WMUHPIRI.js");
847
847
  await runPlugin(p.pluginId, p.commandId);
848
848
  ctx.notice(`Started ${p.pluginId}.`);
849
849
  return {
@@ -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-SOU52U4S.js";
9
+ } from "./chunk-YMKIF26Z.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-P65CHL53.js";
16
+ } from "./chunk-APUK7EIY.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-IX7HAFDY.js";
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
53
53
  }
54
54
  },
55
55
  run: async ({ on }, ctx) => {
56
- const { setSpotlight } = await import("./presence-HFNFA2OE.js");
56
+ const { setSpotlight } = await import("./presence-5S3JHO22.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-B5LF7ORJ.js");
83
+ const { useEditorStore } = await import("./editor-store-U4JCAFCU.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-B5LF7ORJ.js");
147
+ const { useEditorStore } = await import("./editor-store-U4JCAFCU.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-UT7OFUEL.js");
191
+ const { publishLibrary } = await import("./libraries-25V2MWYC.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-UT7OFUEL.js");
223
+ const { unpublishLibrary } = await import("./libraries-25V2MWYC.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-B5LF7ORJ.js"),
236
- import("./versions-HGSPPDDA.js")
235
+ import("./editor-store-U4JCAFCU.js"),
236
+ import("./versions-IPWF3ZL3.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-HGSPPDDA.js");
269
+ const { restoreVersion } = await import("./versions-IPWF3ZL3.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-HGSPPDDA.js");
294
+ const { deleteVersion } = await import("./versions-IPWF3ZL3.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 } };
@@ -14,7 +14,7 @@ import {
14
14
  placeStockPhoto,
15
15
  searchStockPhotos,
16
16
  stockPhotoInfo
17
- } from "./chunk-HWCV6VTU.js";
17
+ } from "./chunk-J2MGIBMU.js";
18
18
  import "./chunk-YEKG65KC.js";
19
19
  import "./chunk-POJ5P6WK.js";
20
20
  import "./chunk-LJSVREWM.js";
@@ -16,11 +16,11 @@ import {
16
16
  requestEmbeddings,
17
17
  requestImage,
18
18
  requestImageAction
19
- } from "./chunk-PHH2CCKN.js";
20
- import "./chunk-VUFGU4BS.js";
19
+ } from "./chunk-CEDF2YMY.js";
20
+ import "./chunk-XHVSDFQ4.js";
21
21
  import "./chunk-SUTZWEBK.js";
22
22
  import "./chunk-KBKUIFSG.js";
23
- import "./chunk-5AKH4CCL.js";
23
+ import "./chunk-RW3BWTAF.js";
24
24
  import "./chunk-LZT24WFD.js";
25
25
  import "./chunk-CIDLHLQA.js";
26
26
  import "./chunk-SWATOWQ7.js";
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  defaultMeasure,
9
9
  placePicture
10
- } from "./chunk-HWCV6VTU.js";
10
+ } from "./chunk-J2MGIBMU.js";
11
11
  import "./chunk-YEKG65KC.js";
12
12
  import {
13
13
  api
@@ -122,7 +122,7 @@ async function placeLibraryItem(item, opts = {}) {
122
122
  }
123
123
  if (item.contentType.startsWith("video/")) {
124
124
  const file = await libraryFile(item, opts);
125
- const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-B5LF7ORJ.js"), import("./media-tool-XPMNFYXL.js")]);
125
+ const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-U4JCAFCU.js"), import("./media-tool-HXECTWKQ.js")]);
126
126
  const cam = useEditorStore.getState().camera;
127
127
  await placeMediaFile(file, { kind: "point", ...opts.at ?? { x: cam.x, y: cam.y } });
128
128
  return useEditorStore.getState().selection[0] ?? null;
@@ -16,7 +16,7 @@ import {
16
16
  selectedVectorTarget,
17
17
  startImageAction,
18
18
  startImageGeneration
19
- } from "./chunk-666ILBDC.js";
19
+ } from "./chunk-MVXBWFQQ.js";
20
20
  import "./chunk-GRK5TBXU.js";
21
21
  import "./chunk-IX7HAFDY.js";
22
22
  import "./chunk-5K4KHDXE.js";
@@ -28,17 +28,17 @@ import "./chunk-EATT7YGW.js";
28
28
  import "./chunk-I5KO7Z3V.js";
29
29
  import "./chunk-WGPGWKOM.js";
30
30
  import "./chunk-KLL6R7TS.js";
31
- import "./chunk-PHH2CCKN.js";
32
- import "./chunk-VUFGU4BS.js";
31
+ import "./chunk-CEDF2YMY.js";
32
+ import "./chunk-XHVSDFQ4.js";
33
33
  import "./chunk-SUTZWEBK.js";
34
34
  import "./chunk-KBKUIFSG.js";
35
35
  import "./chunk-XSW6GOER.js";
36
36
  import "./chunk-XSCQ664G.js";
37
- import "./chunk-5AKH4CCL.js";
37
+ import "./chunk-RW3BWTAF.js";
38
38
  import "./chunk-MB62O5QU.js";
39
39
  import "./chunk-VZZISHR7.js";
40
40
  import "./chunk-DOLFFITQ.js";
41
- import "./chunk-WK7CZCZE.js";
41
+ import "./chunk-EXIMH4VA.js";
42
42
  import "./chunk-JVFT5JCN.js";
43
43
  import "./chunk-OPKP7PLB.js";
44
44
  import "./chunk-R42VU24I.js";
@@ -8,10 +8,10 @@ import {
8
8
  confirmTierCommands,
9
9
  dangerousCommands,
10
10
  registerDangerousCommands
11
- } from "./chunk-BDVJX6TO.js";
12
- import "./chunk-SOU52U4S.js";
11
+ } from "./chunk-ZF3ZANVR.js";
12
+ import "./chunk-YMKIF26Z.js";
13
13
  import "./chunk-V55TRMJK.js";
14
- import "./chunk-P65CHL53.js";
14
+ import "./chunk-APUK7EIY.js";
15
15
  import "./chunk-F7YP4K43.js";
16
16
  import "./chunk-VCQKXTSJ.js";
17
17
  import "./chunk-PEJWXGQC.js";
@@ -6,16 +6,16 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  syncStatus
9
- } from "./chunk-GGWLSD5K.js";
10
- import "./chunk-FSXWJRG7.js";
9
+ } from "./chunk-KRJ5XS5E.js";
10
+ import "./chunk-JT2PN2SD.js";
11
11
  import "./chunk-KBKUIFSG.js";
12
12
  import "./chunk-GKJ4R7AO.js";
13
- import "./chunk-5AKH4CCL.js";
13
+ import "./chunk-RW3BWTAF.js";
14
14
  import "./chunk-D3CLCZGW.js";
15
- import "./chunk-Y4TO2YBR.js";
15
+ import "./chunk-AM5IA4WG.js";
16
16
  import {
17
17
  useEditorStore
18
- } from "./chunk-WK7CZCZE.js";
18
+ } from "./chunk-EXIMH4VA.js";
19
19
  import "./chunk-JVFT5JCN.js";
20
20
  import "./chunk-OPKP7PLB.js";
21
21
  import "./chunk-R42VU24I.js";
@@ -7,20 +7,20 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  editBlockReason,
9
9
  editorToolContext
10
- } from "./chunk-MG5QDKHG.js";
11
- import "./chunk-UYIT4HE6.js";
10
+ } from "./chunk-52TGB2U2.js";
11
+ import "./chunk-PXOFPOY2.js";
12
12
  import "./chunk-V55TRMJK.js";
13
- import "./chunk-P65CHL53.js";
13
+ import "./chunk-APUK7EIY.js";
14
14
  import "./chunk-F7YP4K43.js";
15
15
  import "./chunk-VCQKXTSJ.js";
16
16
  import "./chunk-PEJWXGQC.js";
17
- import "./chunk-666ILBDC.js";
17
+ import "./chunk-MVXBWFQQ.js";
18
18
  import "./chunk-GRK5TBXU.js";
19
19
  import "./chunk-JFJ3HQUH.js";
20
20
  import "./chunk-IT56AOP2.js";
21
21
  import "./chunk-ZLYTVR5V.js";
22
22
  import "./chunk-IX7HAFDY.js";
23
- import "./chunk-3XACBHHM.js";
23
+ import "./chunk-NJ4LYRQB.js";
24
24
  import "./chunk-ZF2EYBXY.js";
25
25
  import "./chunk-5K4KHDXE.js";
26
26
  import "./chunk-JUHREBH6.js";
@@ -33,16 +33,16 @@ import "./chunk-I5KO7Z3V.js";
33
33
  import "./chunk-WGPGWKOM.js";
34
34
  import "./chunk-PQKEBND4.js";
35
35
  import "./chunk-KLL6R7TS.js";
36
- import "./chunk-PHH2CCKN.js";
37
- import "./chunk-VUFGU4BS.js";
36
+ import "./chunk-CEDF2YMY.js";
37
+ import "./chunk-XHVSDFQ4.js";
38
38
  import "./chunk-SUTZWEBK.js";
39
- import "./chunk-GGWLSD5K.js";
40
- import "./chunk-FSXWJRG7.js";
39
+ import "./chunk-KRJ5XS5E.js";
40
+ import "./chunk-JT2PN2SD.js";
41
41
  import "./chunk-KBKUIFSG.js";
42
42
  import "./chunk-GKJ4R7AO.js";
43
43
  import "./chunk-XSW6GOER.js";
44
44
  import "./chunk-XSCQ664G.js";
45
- import "./chunk-5AKH4CCL.js";
45
+ import "./chunk-RW3BWTAF.js";
46
46
  import "./chunk-D3CLCZGW.js";
47
47
  import "./chunk-VPTV5SAT.js";
48
48
  import "./chunk-MB62O5QU.js";
@@ -50,8 +50,8 @@ import "./chunk-VZZISHR7.js";
50
50
  import "./chunk-DOLFFITQ.js";
51
51
  import "./chunk-YMNCL7HL.js";
52
52
  import "./chunk-N5JZDV55.js";
53
- import "./chunk-Y4TO2YBR.js";
54
- import "./chunk-WK7CZCZE.js";
53
+ import "./chunk-AM5IA4WG.js";
54
+ import "./chunk-EXIMH4VA.js";
55
55
  import "./chunk-JVFT5JCN.js";
56
56
  import "./chunk-OPKP7PLB.js";
57
57
  import "./chunk-R42VU24I.js";
@@ -19,7 +19,7 @@ import {
19
19
  useEditorStore,
20
20
  useMode,
21
21
  useSelection
22
- } from "./chunk-WK7CZCZE.js";
22
+ } from "./chunk-EXIMH4VA.js";
23
23
  import "./chunk-JVFT5JCN.js";
24
24
  import "./chunk-OPKP7PLB.js";
25
25
  import "./chunk-R42VU24I.js";
@@ -6,19 +6,19 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  syncStatus
9
- } from "./chunk-GGWLSD5K.js";
9
+ } from "./chunk-KRJ5XS5E.js";
10
10
  import {
11
11
  isGuest
12
- } from "./chunk-FSXWJRG7.js";
12
+ } from "./chunk-JT2PN2SD.js";
13
13
  import {
14
14
  cachedLimits,
15
15
  loadEntitlements
16
16
  } from "./chunk-KBKUIFSG.js";
17
17
  import "./chunk-GKJ4R7AO.js";
18
- import "./chunk-5AKH4CCL.js";
18
+ import "./chunk-RW3BWTAF.js";
19
19
  import "./chunk-D3CLCZGW.js";
20
- import "./chunk-Y4TO2YBR.js";
21
- import "./chunk-WK7CZCZE.js";
20
+ import "./chunk-AM5IA4WG.js";
21
+ import "./chunk-EXIMH4VA.js";
22
22
  import "./chunk-JVFT5JCN.js";
23
23
  import "./chunk-OPKP7PLB.js";
24
24
  import "./chunk-R42VU24I.js";
@@ -8,7 +8,7 @@ import {
8
8
  canvasDpr,
9
9
  screenToWorld,
10
10
  useEditorStore
11
- } from "./chunk-WK7CZCZE.js";
11
+ } from "./chunk-EXIMH4VA.js";
12
12
  import "./chunk-JVFT5JCN.js";
13
13
  import "./chunk-OPKP7PLB.js";
14
14
  import "./chunk-R42VU24I.js";
@@ -15,14 +15,14 @@ import {
15
15
  import {
16
16
  AiClientError,
17
17
  aiFetch
18
- } from "./chunk-PHH2CCKN.js";
19
- import "./chunk-VUFGU4BS.js";
18
+ } from "./chunk-CEDF2YMY.js";
19
+ import "./chunk-XHVSDFQ4.js";
20
20
  import {
21
21
  useAiStore
22
22
  } from "./chunk-SUTZWEBK.js";
23
23
  import "./chunk-KBKUIFSG.js";
24
24
  import "./chunk-XSW6GOER.js";
25
- import "./chunk-5AKH4CCL.js";
25
+ import "./chunk-RW3BWTAF.js";
26
26
  import "./chunk-MB62O5QU.js";
27
27
  import "./chunk-VZZISHR7.js";
28
28
  import {
@@ -19,7 +19,7 @@ import {
19
19
  runPluginWithImport,
20
20
  runningSessionFor,
21
21
  setEnabled
22
- } from "./chunk-E56XNADQ.js";
22
+ } from "./chunk-AJSP6UG5.js";
23
23
  import "./chunk-TI4KBYFG.js";
24
24
  import "./chunk-IX7HAFDY.js";
25
25
  import "./chunk-ZF2EYBXY.js";
@@ -30,20 +30,20 @@ import "./chunk-BF66SQUV.js";
30
30
  import "./chunk-EATT7YGW.js";
31
31
  import "./chunk-I5KO7Z3V.js";
32
32
  import "./chunk-KLL6R7TS.js";
33
- import "./chunk-GGWLSD5K.js";
34
- import "./chunk-FSXWJRG7.js";
33
+ import "./chunk-KRJ5XS5E.js";
34
+ import "./chunk-JT2PN2SD.js";
35
35
  import "./chunk-KBKUIFSG.js";
36
36
  import "./chunk-GKJ4R7AO.js";
37
37
  import "./chunk-XSW6GOER.js";
38
38
  import "./chunk-XSCQ664G.js";
39
- import "./chunk-5AKH4CCL.js";
39
+ import "./chunk-RW3BWTAF.js";
40
40
  import "./chunk-D3CLCZGW.js";
41
41
  import "./chunk-GBYIESUP.js";
42
42
  import "./chunk-MB62O5QU.js";
43
43
  import "./chunk-VZZISHR7.js";
44
44
  import "./chunk-DOLFFITQ.js";
45
- import "./chunk-Y4TO2YBR.js";
46
- import "./chunk-WK7CZCZE.js";
45
+ import "./chunk-AM5IA4WG.js";
46
+ import "./chunk-EXIMH4VA.js";
47
47
  import "./chunk-JVFT5JCN.js";
48
48
  import "./chunk-OPKP7PLB.js";
49
49
  import "./chunk-R42VU24I.js";
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  activeTeamWorkspaceId,
9
9
  useHyperyTeam
10
- } from "./chunk-5AKH4CCL.js";
10
+ } from "./chunk-RW3BWTAF.js";
11
11
  import {
12
12
  api
13
13
  } from "./chunk-LZT24WFD.js";
@@ -7,16 +7,16 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  onSyncStatus,
9
9
  syncStatus
10
- } from "./chunk-GGWLSD5K.js";
11
- import "./chunk-FSXWJRG7.js";
10
+ } from "./chunk-KRJ5XS5E.js";
11
+ import "./chunk-JT2PN2SD.js";
12
12
  import "./chunk-KBKUIFSG.js";
13
13
  import "./chunk-GKJ4R7AO.js";
14
- import "./chunk-5AKH4CCL.js";
14
+ import "./chunk-RW3BWTAF.js";
15
15
  import "./chunk-D3CLCZGW.js";
16
- import "./chunk-Y4TO2YBR.js";
16
+ import "./chunk-AM5IA4WG.js";
17
17
  import {
18
18
  useEditorStore
19
- } from "./chunk-WK7CZCZE.js";
19
+ } from "./chunk-EXIMH4VA.js";
20
20
  import "./chunk-JVFT5JCN.js";
21
21
  import "./chunk-OPKP7PLB.js";
22
22
  import "./chunk-R42VU24I.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-PEJWXGQC.js";
13
13
  import {
14
14
  useEditorStore
15
- } from "./chunk-WK7CZCZE.js";
15
+ } from "./chunk-EXIMH4VA.js";
16
16
  import "./chunk-JVFT5JCN.js";
17
17
  import "./chunk-OPKP7PLB.js";
18
18
  import "./chunk-R42VU24I.js";