@popcraft/kit 1.6.0 → 1.6.2

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 (62) hide show
  1. package/dist/chunks/{agent-AFXVE4TB.js → agent-OE6KSDX3.js} +1 -1
  2. package/dist/chunks/{builtin-YV5ZOHLZ.js → builtin-N7D66RH5.js} +3 -3
  3. package/dist/chunks/{buy-credits-KMWEOFGJ.js → buy-credits-S6MZEFBU.js} +2 -2
  4. package/dist/chunks/{check-template-3YZD5ZNI.js → check-template-7OLJXPEY.js} +2 -2
  5. package/dist/chunks/{chunk-IYF3RAPB.js → chunk-4JGDU2LS.js} +43 -43
  6. package/dist/chunks/{chunk-GZBIH2XJ.js → chunk-65ICR62T.js} +1 -1
  7. package/dist/chunks/{chunk-BJWOEPRV.js → chunk-7WDSWN42.js} +6 -6
  8. package/dist/chunks/{chunk-4CNUZ5HD.js → chunk-AJQGNODT.js} +2 -2
  9. package/dist/chunks/{chunk-TJ2FR2UT.js → chunk-CPCTSQ54.js} +9 -9
  10. package/dist/chunks/{chunk-IV2FJFIM.js → chunk-D3UCFXP5.js} +4 -4
  11. package/dist/chunks/{chunk-YEX5SJ45.js → chunk-ESI5ZRM7.js} +4 -4
  12. package/dist/chunks/{chunk-R4F7GN3C.js → chunk-HNZXUHIC.js} +2 -2
  13. package/dist/chunks/{chunk-ZVM5KYLX.js → chunk-JYH2TY4E.js} +5 -5
  14. package/dist/chunks/{chunk-HEHOAJ6Y.js → chunk-JZLQJ7EY.js} +1 -1
  15. package/dist/chunks/{chunk-QW3CNJG2.js → chunk-KURMOEAD.js} +1 -1
  16. package/dist/chunks/{chunk-G65N6Z34.js → chunk-LKBJSK2C.js} +1 -1
  17. package/dist/chunks/{chunk-OIKQZUIZ.js → chunk-MVREQFZT.js} +2 -2
  18. package/dist/chunks/{chunk-6AXY7EAS.js → chunk-ND2HH4UM.js} +2 -2
  19. package/dist/chunks/{chunk-CQFOW6N5.js → chunk-OEYPIHRP.js} +5 -5
  20. package/dist/chunks/{chunk-4CIZKVAQ.js → chunk-QEOEHNTC.js} +1 -1
  21. package/dist/chunks/{chunk-TGT46XPQ.js → chunk-QRJDTIGI.js} +11 -11
  22. package/dist/chunks/{chunk-RDWZRO5J.js → chunk-SEOGNWSQ.js} +1 -1
  23. package/dist/chunks/{chunk-NT3BLV67.js → chunk-WHVP4PYO.js} +5 -5
  24. package/dist/chunks/{chunk-LUBVPMJ2.js → chunk-XWBVCMDN.js} +1 -1
  25. package/dist/chunks/{chunk-UX3KNRUI.js → chunk-ZV3S523N.js} +3 -3
  26. package/dist/chunks/{client-ZI6VCIWH.js → client-2BFEBXIM.js} +3 -3
  27. package/dist/chunks/{client-4KHVSJ5O.js → client-GXVSY6WW.js} +2 -2
  28. package/dist/chunks/{client-CWGXL4X4.js → client-HE7UBY4L.js} +1 -1
  29. package/dist/chunks/{client-actions-EGZZQMZK.js → client-actions-UMXJFVVG.js} +5 -5
  30. package/dist/chunks/{dangerous-LCZZIH23.js → dangerous-NZLQSKNC.js} +3 -3
  31. package/dist/chunks/{delete-current-file-Z62UVIVM.js → delete-current-file-AZX2MBLL.js} +5 -5
  32. package/dist/chunks/{editor-seams-TADECU7N.js → editor-seams-PB5FDYPL.js} +12 -12
  33. package/dist/chunks/{editor-store-FHINTE2K.js → editor-store-3UUO3W2D.js} +1 -1
  34. package/dist/chunks/{export-watermark-43TTHNVK.js → export-watermark-HCVSFKFE.js} +5 -5
  35. package/dist/chunks/{eyedropper-EQYRS3RH.js → eyedropper-3AO2FYBG.js} +1 -1
  36. package/dist/chunks/{generate-media-WFQMH3O2.js → generate-media-5HKRD5NA.js} +3 -3
  37. package/dist/chunks/{host-NDXV7EJB.js → host-PLOL2V4Z.js} +6 -6
  38. package/dist/chunks/{integrations-XP2QXE5D.js → integrations-AU2FD534.js} +1 -1
  39. package/dist/chunks/{libraries-T2IXBVSR.js → libraries-KKZYTYKD.js} +5 -5
  40. package/dist/chunks/{live-22WE7WRC.js → live-6ECTHSLB.js} +1 -1
  41. package/dist/chunks/{media-tool-34H6RLBV.js → media-tool-5NMY3HNT.js} +1 -1
  42. package/dist/chunks/{new-file-LEAIPEYC.js → new-file-MF5BTZEL.js} +3 -3
  43. package/dist/chunks/{next-commerce-B5J45KA4.js → next-commerce-G2YETQA7.js} +2 -2
  44. package/dist/chunks/{plugin-SBHQJ634.js → plugin-QPT53NNI.js} +2 -2
  45. package/dist/chunks/{plugin-import-NALQGSJD.js → plugin-import-6GEEEWIB.js} +16 -16
  46. package/dist/chunks/{presence-ALTQEYFE.js → presence-NPELRZIZ.js} +2 -2
  47. package/dist/chunks/{project-DRY4UMRI.js → project-WU2UQZE3.js} +1 -1
  48. package/dist/chunks/{publish-site-NYXOLCK3.js → publish-site-PDSR5M3T.js} +6 -6
  49. package/dist/chunks/{publish-store-G56VGGGK.js → publish-store-NAPZBL2M.js} +5 -5
  50. package/dist/chunks/{raster-actions-Y2W5RYE3.js → raster-actions-UGXW5H4I.js} +1 -1
  51. package/dist/chunks/{runner-JTGVAO35.js → runner-3LTKN2ZV.js} +18 -18
  52. package/dist/chunks/{store-FBYFTERX.js → store-BXUFD27P.js} +6 -6
  53. package/dist/chunks/{storefront-2JBT3AXM.js → storefront-A5S7V7AE.js} +2 -2
  54. package/dist/chunks/{sync-CCQEJJXS.js → sync-AVT7VZNN.js} +5 -5
  55. package/dist/chunks/{tabs-2G7SLYA4.js → tabs-TDBF6SSS.js} +8 -8
  56. package/dist/chunks/{team-LNSCS65P.js → team-GTULZILG.js} +1 -1
  57. package/dist/chunks/{team-client-LS7VL3JP.js → team-client-5YIEKK2Y.js} +1 -1
  58. package/dist/chunks/{tools-OKQGWON5.js → tools-K63FQJPN.js} +2 -2
  59. package/dist/chunks/{ui-commands-P4KLVZKF.js → ui-commands-VE2VHLRI.js} +12 -12
  60. package/dist/chunks/{versions-NW2T5R4T.js → versions-IN4L46KN.js} +5 -5
  61. package/dist/index.js +1 -1
  62. package/package.json +1 -1
@@ -21,14 +21,14 @@ import {
21
21
  } from "./chunk-IAMMPZOH.js";
22
22
  import {
23
23
  syncStatus
24
- } from "./chunk-YEX5SJ45.js";
24
+ } from "./chunk-ESI5ZRM7.js";
25
25
  import {
26
26
  usePluginStore
27
27
  } from "./chunk-JSR4SFIH.js";
28
28
  import {
29
29
  setPluginTabs,
30
30
  useEditorStore
31
- } from "./chunk-CQFOW6N5.js";
31
+ } from "./chunk-OEYPIHRP.js";
32
32
  import {
33
33
  openBeside
34
34
  } from "./chunk-USUBDOAP.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-SBHQJ634.js");
72
+ const { dispatchPluginCall } = await import("./plugin-QPT53NNI.js");
73
73
  return dispatchPluginCall(env, method, params);
74
74
  }
75
75
 
@@ -586,7 +586,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
586
586
  if (!openBeside(url)) throw new Error("The browser blocked the new tab");
587
587
  },
588
588
  createDocument: async (opts2) => {
589
- const { createFreshFileOrExplain } = await import("./new-file-LEAIPEYC.js");
589
+ const { createFreshFileOrExplain } = await import("./new-file-MF5BTZEL.js");
590
590
  const created = await createFreshFileOrExplain({}, { name: opts2?.name });
591
591
  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})`);
592
592
  await useEditorStore.getState().openDocument(created.docId);
@@ -795,7 +795,7 @@ if (typeof window !== "undefined") {
795
795
  const name = d.name || "Imported";
796
796
  void (async () => {
797
797
  try {
798
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-NALQGSJD.js");
798
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-6GEEEWIB.js");
799
799
  if (d.ir && typeof d.ir === "object") {
800
800
  await applyPluginLayoutIr(d.ir, { mode, name });
801
801
  return;
@@ -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-LUBVPMJ2.js";
9
+ } from "./chunk-XWBVCMDN.js";
10
10
  import {
11
11
  aiAvailability,
12
12
  effectiveChatModel,
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  RUNTIME_PACKAGE,
13
13
  runtimeRange
14
- } from "./chunk-4CIZKVAQ.js";
14
+ } from "./chunk-QEOEHNTC.js";
15
15
  import {
16
16
  routesOf,
17
17
  screensOf
@@ -150,7 +150,7 @@ function startHyperyTeams() {
150
150
  maybePromptForTeam();
151
151
  void followFileTeam(linkedKey);
152
152
  });
153
- void import("./sync-CCQEJJXS.js").then(({ onSyncStatus, syncStatus }) => {
153
+ void import("./sync-AVT7VZNN.js").then(({ onSyncStatus, syncStatus }) => {
154
154
  linkedKey = syncStatus().link?.key ?? null;
155
155
  void followFileTeam(linkedKey);
156
156
  onSyncStatus((_s, link) => {
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinCommands,
9
9
  registerBuiltinCommands
10
- } from "./chunk-IYF3RAPB.js";
10
+ } from "./chunk-4JGDU2LS.js";
11
11
  import {
12
12
  toolView
13
- } from "./chunk-UX3KNRUI.js";
13
+ } from "./chunk-ZV3S523N.js";
14
14
  import {
15
15
  init_define_POPCRAFT_COMPONENT_IDS
16
16
  } from "./chunk-OZ7YKRVK.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-FHINTE2K.js"),
94
+ import("./editor-store-3UUO3W2D.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-34H6RLBV.js")
96
+ import("./media-tool-5NMY3HNT.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);
@@ -4862,7 +4862,7 @@ function createPopcornSlice(set2, get2) {
4862
4862
  privateMode: false,
4863
4863
  setPrivateMode: (on) => {
4864
4864
  set2({ privateMode: on });
4865
- void import("./presence-ALTQEYFE.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4865
+ void import("./presence-NPELRZIZ.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4866
4866
  });
4867
4867
  },
4868
4868
  /** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
@@ -6924,7 +6924,7 @@ var useEditorStore = create()(
6924
6924
  // A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
6925
6925
  // Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
6926
6926
  duplicateDocument: async (id) => {
6927
- const { duplicateDocumentToCloud } = await import("./sync-CCQEJJXS.js");
6927
+ const { duplicateDocumentToCloud } = await import("./sync-AVT7VZNN.js");
6928
6928
  return duplicateDocumentToCloud(id);
6929
6929
  },
6930
6930
  deleteDocument: async (id) => {
@@ -10432,9 +10432,9 @@ if (typeof window !== "undefined") {
10432
10432
  if (typeof window !== "undefined" && navigator.webdriver) {
10433
10433
  window.__vpDesign = async (script, o = {}) => {
10434
10434
  const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
10435
- import("./tools-OKQGWON5.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-YV5ZOHLZ.js")).registerBuiltinTools })),
10436
- import("./editor-seams-TADECU7N.js"),
10437
- import("./live-22WE7WRC.js")
10435
+ import("./tools-K63FQJPN.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-N7D66RH5.js")).registerBuiltinTools })),
10436
+ import("./editor-seams-PB5FDYPL.js"),
10437
+ import("./live-6ECTHSLB.js")
10438
10438
  ]);
10439
10439
  registerBuiltinTools();
10440
10440
  const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
@@ -14,7 +14,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
14
14
  // packages/runtime/package.json
15
15
  var package_default = {
16
16
  name: "@popcraft/runtime",
17
- version: "1.6.0",
17
+ version: "1.6.2",
18
18
  description: "What code exported from PopCraft shares: the meaning of expressions (operators and functions) and, as it grows, the parts of a design's behaviour that are common code rather than generated React.",
19
19
  license: "MIT",
20
20
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -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-NT3BLV67.js";
9
+ } from "./chunk-WHVP4PYO.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-IYF3RAPB.js";
16
+ } from "./chunk-4JGDU2LS.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-BTBNRHSK.js";
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
53
53
  }
54
54
  },
55
55
  run: async ({ on }, ctx) => {
56
- const { setSpotlight } = await import("./presence-ALTQEYFE.js");
56
+ const { setSpotlight } = await import("./presence-NPELRZIZ.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-FHINTE2K.js");
83
+ const { useEditorStore } = await import("./editor-store-3UUO3W2D.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-FHINTE2K.js");
147
+ const { useEditorStore } = await import("./editor-store-3UUO3W2D.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-T2IXBVSR.js");
191
+ const { publishLibrary } = await import("./libraries-KKZYTYKD.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-T2IXBVSR.js");
223
+ const { unpublishLibrary } = await import("./libraries-KKZYTYKD.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-FHINTE2K.js"),
236
- import("./versions-NW2T5R4T.js")
235
+ import("./editor-store-3UUO3W2D.js"),
236
+ import("./versions-IN4L46KN.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-NW2T5R4T.js");
269
+ const { restoreVersion } = await import("./versions-IN4L46KN.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-NW2T5R4T.js");
294
+ const { deleteVersion } = await import("./versions-IN4L46KN.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 } };
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-UX3KNRUI.js";
16
+ } from "./chunk-ZV3S523N.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-PJ5QGI5W.js";
@@ -12,7 +12,7 @@ import {
12
12
  hostEnv,
13
13
  plain,
14
14
  registerBuiltinCommands
15
- } from "./chunk-IYF3RAPB.js";
15
+ } from "./chunk-4JGDU2LS.js";
16
16
  import {
17
17
  external_exports
18
18
  } from "./chunk-BTBNRHSK.js";
@@ -626,7 +626,7 @@ var commands = [
626
626
  // A storefront design in a neutral form (lib/io/web/project/storefront.ts `storefrontDesign`): what an exporter
627
627
  // plugin turns into its own store's templates, as PopCraft turns it into a Next.js Commerce store (the Ecommerce plugin makes a Shopify theme of it).
628
628
  run: async (_p, ctx) => {
629
- const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-Y2OMFSTT.js"), import("./storefront-2JBT3AXM.js")]);
629
+ const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-Y2OMFSTT.js"), import("./storefront-A5S7V7AE.js")]);
630
630
  const doc = ctx.doc();
631
631
  const design = storefrontDesign(doc, componentScreens(doc, ctx.pageId()));
632
632
  return { summary: `Storefront: ${design.pages.length} pages`, data: design };
@@ -645,8 +645,8 @@ var commands = [
645
645
  run: async (p, ctx) => {
646
646
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
647
647
  import("./storefront-prepare-JJ2GHGNO.js"),
648
- import("./storefront-2JBT3AXM.js"),
649
- import("./project-DRY4UMRI.js"),
648
+ import("./storefront-A5S7V7AE.js"),
649
+ import("./project-WU2UQZE3.js"),
650
650
  import("./zip-export-CZ33UN52.js"),
651
651
  import("./tree-FDSQS3FC.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-NDXV7EJB.js");
846
+ const { runPlugin } = await import("./host-PLOL2V4Z.js");
847
847
  await runPlugin(p.pluginId, p.commandId);
848
848
  ctx.notice(`Started ${p.pluginId}.`);
849
849
  return {
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-G65N6Z34.js";
14
+ } from "./chunk-LKBJSK2C.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-ISRYFYVE.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-ZI6VCIWH.js");
60
+ const { requestAudio } = await import("./client-2BFEBXIM.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-WFQMH3O2.js");
66
+ const { generateVideoFile } = await import("./generate-media-5HKRD5NA.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-ZI6VCIWH.js"),
72
+ import("./client-2BFEBXIM.js"),
73
73
  import("./client-store-XT3TFIYX.js")
74
74
  ]);
75
75
  const modelId = effectiveImageModel(useAiStore.getState());
@@ -16,11 +16,11 @@ import {
16
16
  requestEmbeddings,
17
17
  requestImage,
18
18
  requestImageAction
19
- } from "./chunk-HEHOAJ6Y.js";
20
- import "./chunk-LUBVPMJ2.js";
19
+ } from "./chunk-JZLQJ7EY.js";
20
+ import "./chunk-XWBVCMDN.js";
21
21
  import "./chunk-5RQ6N2MU.js";
22
22
  import "./chunk-SIAQNWXY.js";
23
- import "./chunk-G65N6Z34.js";
23
+ import "./chunk-LKBJSK2C.js";
24
24
  import "./chunk-MSF5FVCK.js";
25
25
  import "./chunk-7FHOYYRP.js";
26
26
  import "./chunk-ISRYFYVE.js";
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  defaultMeasure,
9
9
  placePicture
10
- } from "./chunk-6AXY7EAS.js";
10
+ } from "./chunk-ND2HH4UM.js";
11
11
  import "./chunk-WOIQ3K6I.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-FHINTE2K.js"), import("./media-tool-34H6RLBV.js")]);
125
+ const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-3UUO3W2D.js"), import("./media-tool-5NMY3HNT.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;
@@ -14,7 +14,7 @@ import {
14
14
  placeStockPhoto,
15
15
  searchStockPhotos,
16
16
  stockPhotoInfo
17
- } from "./chunk-6AXY7EAS.js";
17
+ } from "./chunk-ND2HH4UM.js";
18
18
  import "./chunk-WOIQ3K6I.js";
19
19
  import "./chunk-OZ7YKRVK.js";
20
20
  import "./chunk-LJSVREWM.js";
@@ -16,7 +16,7 @@ import {
16
16
  selectedVectorTarget,
17
17
  startImageAction,
18
18
  startImageGeneration
19
- } from "./chunk-R4F7GN3C.js";
19
+ } from "./chunk-HNZXUHIC.js";
20
20
  import "./chunk-KPY3FPWW.js";
21
21
  import "./chunk-BTBNRHSK.js";
22
22
  import "./chunk-XZAAKOWB.js";
@@ -29,18 +29,18 @@ import "./chunk-Z4KMUNTT.js";
29
29
  import "./chunk-RDXQEVJP.js";
30
30
  import "./chunk-CKYRSSYQ.js";
31
31
  import "./chunk-IAMMPZOH.js";
32
- import "./chunk-HEHOAJ6Y.js";
33
- import "./chunk-LUBVPMJ2.js";
32
+ import "./chunk-JZLQJ7EY.js";
33
+ import "./chunk-XWBVCMDN.js";
34
34
  import "./chunk-5RQ6N2MU.js";
35
35
  import "./chunk-MCSHNQ6V.js";
36
36
  import "./chunk-QUWZBLLJ.js";
37
37
  import "./chunk-GIWFCROY.js";
38
38
  import "./chunk-SIAQNWXY.js";
39
39
  import "./chunk-ZJJKTLOP.js";
40
- import "./chunk-G65N6Z34.js";
40
+ import "./chunk-LKBJSK2C.js";
41
41
  import "./chunk-MSF5FVCK.js";
42
42
  import "./chunk-7FHOYYRP.js";
43
- import "./chunk-CQFOW6N5.js";
43
+ import "./chunk-OEYPIHRP.js";
44
44
  import "./chunk-USUBDOAP.js";
45
45
  import "./chunk-BJRVE5Z3.js";
46
46
  import "./chunk-6FO2AN6Q.js";
@@ -8,10 +8,10 @@ import {
8
8
  confirmTierCommands,
9
9
  dangerousCommands,
10
10
  registerDangerousCommands
11
- } from "./chunk-TGT46XPQ.js";
12
- import "./chunk-NT3BLV67.js";
11
+ } from "./chunk-QRJDTIGI.js";
12
+ import "./chunk-WHVP4PYO.js";
13
13
  import "./chunk-Q4JZ2MCT.js";
14
- import "./chunk-IYF3RAPB.js";
14
+ import "./chunk-4JGDU2LS.js";
15
15
  import "./chunk-6PXIUEMR.js";
16
16
  import "./chunk-NEKEZ7CQ.js";
17
17
  import "./chunk-QVNNTSVJ.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-YEX5SJ45.js";
9
+ } from "./chunk-ESI5ZRM7.js";
10
10
  import "./chunk-MMMCHNWB.js";
11
- import "./chunk-4CNUZ5HD.js";
11
+ import "./chunk-AJQGNODT.js";
12
12
  import "./chunk-SIAQNWXY.js";
13
13
  import "./chunk-45QYYCSX.js";
14
- import "./chunk-G65N6Z34.js";
14
+ import "./chunk-LKBJSK2C.js";
15
15
  import {
16
16
  cloudApi
17
17
  } from "./chunk-MSF5FVCK.js";
18
18
  import "./chunk-5KY3FINP.js";
19
19
  import "./chunk-7FHOYYRP.js";
20
- import "./chunk-GZBIH2XJ.js";
20
+ import "./chunk-65ICR62T.js";
21
21
  import {
22
22
  useEditorStore
23
- } from "./chunk-CQFOW6N5.js";
23
+ } from "./chunk-OEYPIHRP.js";
24
24
  import "./chunk-USUBDOAP.js";
25
25
  import "./chunk-BJRVE5Z3.js";
26
26
  import "./chunk-6FO2AN6Q.js";
@@ -7,21 +7,21 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  editBlockReason,
9
9
  editorToolContext
10
- } from "./chunk-BJWOEPRV.js";
11
- import "./chunk-TJ2FR2UT.js";
10
+ } from "./chunk-7WDSWN42.js";
11
+ import "./chunk-CPCTSQ54.js";
12
12
  import "./chunk-Q4JZ2MCT.js";
13
- import "./chunk-IYF3RAPB.js";
13
+ import "./chunk-4JGDU2LS.js";
14
14
  import "./chunk-6PXIUEMR.js";
15
15
  import "./chunk-NEKEZ7CQ.js";
16
16
  import "./chunk-QVNNTSVJ.js";
17
- import "./chunk-R4F7GN3C.js";
17
+ import "./chunk-HNZXUHIC.js";
18
18
  import "./chunk-KPY3FPWW.js";
19
19
  import "./chunk-3EXX5XF3.js";
20
20
  import "./chunk-YHR4ZLN4.js";
21
21
  import "./chunk-ZCKKN7DQ.js";
22
22
  import "./chunk-QLDI22ZY.js";
23
23
  import "./chunk-BTBNRHSK.js";
24
- import "./chunk-UX3KNRUI.js";
24
+ import "./chunk-ZV3S523N.js";
25
25
  import "./chunk-QPMR3J3G.js";
26
26
  import "./chunk-XZAAKOWB.js";
27
27
  import "./chunk-IFP7BSQO.js";
@@ -35,28 +35,28 @@ import "./chunk-Z4KMUNTT.js";
35
35
  import "./chunk-RDXQEVJP.js";
36
36
  import "./chunk-CKYRSSYQ.js";
37
37
  import "./chunk-IAMMPZOH.js";
38
- import "./chunk-HEHOAJ6Y.js";
39
- import "./chunk-LUBVPMJ2.js";
38
+ import "./chunk-JZLQJ7EY.js";
39
+ import "./chunk-XWBVCMDN.js";
40
40
  import "./chunk-5RQ6N2MU.js";
41
41
  import "./chunk-VKJ2XHZD.js";
42
42
  import "./chunk-MCSHNQ6V.js";
43
43
  import "./chunk-QUWZBLLJ.js";
44
44
  import "./chunk-GIWFCROY.js";
45
- import "./chunk-YEX5SJ45.js";
45
+ import "./chunk-ESI5ZRM7.js";
46
46
  import "./chunk-MMMCHNWB.js";
47
- import "./chunk-4CNUZ5HD.js";
47
+ import "./chunk-AJQGNODT.js";
48
48
  import "./chunk-SIAQNWXY.js";
49
49
  import "./chunk-45QYYCSX.js";
50
50
  import "./chunk-ZJJKTLOP.js";
51
- import "./chunk-G65N6Z34.js";
51
+ import "./chunk-LKBJSK2C.js";
52
52
  import "./chunk-MSF5FVCK.js";
53
53
  import "./chunk-5KY3FINP.js";
54
54
  import "./chunk-Y6OURU7C.js";
55
55
  import "./chunk-UJOMBAQ5.js";
56
56
  import "./chunk-7FHOYYRP.js";
57
57
  import "./chunk-PJ5QGI5W.js";
58
- import "./chunk-GZBIH2XJ.js";
59
- import "./chunk-CQFOW6N5.js";
58
+ import "./chunk-65ICR62T.js";
59
+ import "./chunk-OEYPIHRP.js";
60
60
  import "./chunk-USUBDOAP.js";
61
61
  import "./chunk-BJRVE5Z3.js";
62
62
  import "./chunk-6FO2AN6Q.js";
@@ -19,7 +19,7 @@ import {
19
19
  useEditorStore,
20
20
  useMode,
21
21
  useSelection
22
- } from "./chunk-CQFOW6N5.js";
22
+ } from "./chunk-OEYPIHRP.js";
23
23
  import "./chunk-USUBDOAP.js";
24
24
  import "./chunk-BJRVE5Z3.js";
25
25
  import "./chunk-6FO2AN6Q.js";
@@ -6,24 +6,24 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  syncStatus
9
- } from "./chunk-YEX5SJ45.js";
9
+ } from "./chunk-ESI5ZRM7.js";
10
10
  import "./chunk-MMMCHNWB.js";
11
11
  import {
12
12
  isGuest
13
- } from "./chunk-4CNUZ5HD.js";
13
+ } from "./chunk-AJQGNODT.js";
14
14
  import {
15
15
  cachedLimits,
16
16
  loadEntitlements
17
17
  } from "./chunk-SIAQNWXY.js";
18
18
  import "./chunk-45QYYCSX.js";
19
- import "./chunk-G65N6Z34.js";
19
+ import "./chunk-LKBJSK2C.js";
20
20
  import {
21
21
  cloudApi
22
22
  } from "./chunk-MSF5FVCK.js";
23
23
  import "./chunk-5KY3FINP.js";
24
24
  import "./chunk-7FHOYYRP.js";
25
- import "./chunk-GZBIH2XJ.js";
26
- import "./chunk-CQFOW6N5.js";
25
+ import "./chunk-65ICR62T.js";
26
+ import "./chunk-OEYPIHRP.js";
27
27
  import "./chunk-USUBDOAP.js";
28
28
  import "./chunk-BJRVE5Z3.js";
29
29
  import "./chunk-6FO2AN6Q.js";
@@ -8,7 +8,7 @@ import {
8
8
  canvasDpr,
9
9
  screenToWorld,
10
10
  useEditorStore
11
- } from "./chunk-CQFOW6N5.js";
11
+ } from "./chunk-OEYPIHRP.js";
12
12
  import "./chunk-USUBDOAP.js";
13
13
  import "./chunk-BJRVE5Z3.js";
14
14
  import "./chunk-6FO2AN6Q.js";
@@ -15,8 +15,8 @@ import {
15
15
  import {
16
16
  AiClientError,
17
17
  aiFetch
18
- } from "./chunk-HEHOAJ6Y.js";
19
- import "./chunk-LUBVPMJ2.js";
18
+ } from "./chunk-JZLQJ7EY.js";
19
+ import "./chunk-XWBVCMDN.js";
20
20
  import {
21
21
  useAiStore
22
22
  } from "./chunk-5RQ6N2MU.js";
@@ -24,7 +24,7 @@ import "./chunk-QUWZBLLJ.js";
24
24
  import "./chunk-GIWFCROY.js";
25
25
  import "./chunk-SIAQNWXY.js";
26
26
  import "./chunk-ZJJKTLOP.js";
27
- import "./chunk-G65N6Z34.js";
27
+ import "./chunk-LKBJSK2C.js";
28
28
  import "./chunk-MSF5FVCK.js";
29
29
  import "./chunk-7FHOYYRP.js";
30
30
  import {
@@ -19,7 +19,7 @@ import {
19
19
  runPluginWithImport,
20
20
  runningSessionFor,
21
21
  setEnabled
22
- } from "./chunk-ZVM5KYLX.js";
22
+ } from "./chunk-JYH2TY4E.js";
23
23
  import "./chunk-D55LFGQH.js";
24
24
  import "./chunk-BTBNRHSK.js";
25
25
  import "./chunk-QPMR3J3G.js";
@@ -35,19 +35,19 @@ import "./chunk-UBPDWB7M.js";
35
35
  import "./chunk-MCSHNQ6V.js";
36
36
  import "./chunk-QUWZBLLJ.js";
37
37
  import "./chunk-GIWFCROY.js";
38
- import "./chunk-YEX5SJ45.js";
38
+ import "./chunk-ESI5ZRM7.js";
39
39
  import "./chunk-MMMCHNWB.js";
40
- import "./chunk-4CNUZ5HD.js";
40
+ import "./chunk-AJQGNODT.js";
41
41
  import "./chunk-SIAQNWXY.js";
42
42
  import "./chunk-45QYYCSX.js";
43
43
  import "./chunk-ZJJKTLOP.js";
44
- import "./chunk-G65N6Z34.js";
44
+ import "./chunk-LKBJSK2C.js";
45
45
  import "./chunk-MSF5FVCK.js";
46
46
  import "./chunk-5KY3FINP.js";
47
47
  import "./chunk-JSR4SFIH.js";
48
48
  import "./chunk-7FHOYYRP.js";
49
- import "./chunk-GZBIH2XJ.js";
50
- import "./chunk-CQFOW6N5.js";
49
+ import "./chunk-65ICR62T.js";
50
+ import "./chunk-OEYPIHRP.js";
51
51
  import "./chunk-USUBDOAP.js";
52
52
  import "./chunk-BJRVE5Z3.js";
53
53
  import "./chunk-6FO2AN6Q.js";
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  activeTeamWorkspaceId,
9
9
  useHyperyTeam
10
- } from "./chunk-G65N6Z34.js";
10
+ } from "./chunk-LKBJSK2C.js";
11
11
  import {
12
12
  api
13
13
  } from "./chunk-MSF5FVCK.js";
@@ -7,21 +7,21 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  onSyncStatus,
9
9
  syncStatus
10
- } from "./chunk-YEX5SJ45.js";
10
+ } from "./chunk-ESI5ZRM7.js";
11
11
  import "./chunk-MMMCHNWB.js";
12
- import "./chunk-4CNUZ5HD.js";
12
+ import "./chunk-AJQGNODT.js";
13
13
  import "./chunk-SIAQNWXY.js";
14
14
  import "./chunk-45QYYCSX.js";
15
- import "./chunk-G65N6Z34.js";
15
+ import "./chunk-LKBJSK2C.js";
16
16
  import {
17
17
  api
18
18
  } from "./chunk-MSF5FVCK.js";
19
19
  import "./chunk-5KY3FINP.js";
20
20
  import "./chunk-7FHOYYRP.js";
21
- import "./chunk-GZBIH2XJ.js";
21
+ import "./chunk-65ICR62T.js";
22
22
  import {
23
23
  useEditorStore
24
- } from "./chunk-CQFOW6N5.js";
24
+ } from "./chunk-OEYPIHRP.js";
25
25
  import "./chunk-USUBDOAP.js";
26
26
  import "./chunk-BJRVE5Z3.js";
27
27
  import "./chunk-6FO2AN6Q.js";