@popcraft/kit 2.2.1 → 2.2.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-EJXIFBTK.js → agent-CAVORCIP.js} +1 -1
  2. package/dist/chunks/{builtin-JDIZMWFA.js → builtin-SP3SSRYW.js} +3 -3
  3. package/dist/chunks/{buy-credits-553SVOD6.js → buy-credits-HRDC77FW.js} +2 -2
  4. package/dist/chunks/{check-template-7VQXZJTX.js → check-template-PWMH3OHG.js} +2 -2
  5. package/dist/chunks/{chunk-XY34BSYU.js → chunk-25ZWPJ4C.js} +1 -1
  6. package/dist/chunks/{chunk-5IKNFA5Y.js → chunk-4VMFFOY2.js} +1 -1
  7. package/dist/chunks/{chunk-IP5YX23K.js → chunk-4YRFRCRE.js} +1 -1
  8. package/dist/chunks/{chunk-F2XV57I3.js → chunk-5VKRL7I6.js} +1 -1
  9. package/dist/chunks/{chunk-H7O7UG3T.js → chunk-5VQ2OIXG.js} +5 -5
  10. package/dist/chunks/{chunk-ZDKXMD5W.js → chunk-7PA7BTXK.js} +2 -2
  11. package/dist/chunks/{chunk-YYQ5C65Y.js → chunk-7PG7AHTM.js} +1 -1
  12. package/dist/chunks/{chunk-IBFCKDEU.js → chunk-7UOZ5IGA.js} +1 -1
  13. package/dist/chunks/{chunk-ZAYZ7SEW.js → chunk-CIESFWNS.js} +2 -2
  14. package/dist/chunks/{chunk-6JM5PDM7.js → chunk-CPZ6GXN7.js} +6 -6
  15. package/dist/chunks/{chunk-ZW6KJBRD.js → chunk-FZMTU26T.js} +4 -4
  16. package/dist/chunks/{chunk-UZOTGJJ7.js → chunk-IWDCQCY3.js} +2 -2
  17. package/dist/chunks/{chunk-HWCLMJGE.js → chunk-KGDDA7OH.js} +5 -5
  18. package/dist/chunks/{chunk-HNTHECF2.js → chunk-L6NPM2VK.js} +11 -11
  19. package/dist/chunks/{chunk-PPXNIAN5.js → chunk-QDZJGY23.js} +1 -1
  20. package/dist/chunks/{chunk-GLVFTYLA.js → chunk-UUGS5Z2Q.js} +2 -2
  21. package/dist/chunks/{chunk-KSNVC4ES.js → chunk-WF6GKULP.js} +5 -5
  22. package/dist/chunks/{chunk-NBHWTUUQ.js → chunk-Y2XU3OGM.js} +9 -9
  23. package/dist/chunks/{chunk-7QRRU7EJ.js → chunk-Y46WEGFO.js} +4 -4
  24. package/dist/chunks/{chunk-TO3CA4N6.js → chunk-YGEVXFT5.js} +3 -3
  25. package/dist/chunks/{chunk-NQMQPM4E.js → chunk-ZOEVBMZO.js} +43 -43
  26. package/dist/chunks/{client-4E7B2IFM.js → client-5XIQ2RWW.js} +1 -1
  27. package/dist/chunks/{client-665AK3W7.js → client-YO36MK2E.js} +3 -3
  28. package/dist/chunks/{client-ZGYBDDJD.js → client-Z55OLWYQ.js} +2 -2
  29. package/dist/chunks/{client-actions-ZGMPB4L3.js → client-actions-ZXIVEAKA.js} +5 -5
  30. package/dist/chunks/{dangerous-NNH76QQ3.js → dangerous-HVXQXNJB.js} +3 -3
  31. package/dist/chunks/{delete-current-file-JP3YXQFR.js → delete-current-file-PKO4EVIE.js} +5 -5
  32. package/dist/chunks/{editor-seams-O4NUCCAC.js → editor-seams-QJKENLDL.js} +12 -12
  33. package/dist/chunks/{editor-store-ZKS75Z4L.js → editor-store-XYFGCUDM.js} +1 -1
  34. package/dist/chunks/{export-watermark-IZEFX42N.js → export-watermark-HBRXBD5L.js} +5 -5
  35. package/dist/chunks/{eyedropper-VXKYYC47.js → eyedropper-FMPO5HRC.js} +1 -1
  36. package/dist/chunks/{generate-media-UOENDTIA.js → generate-media-LOEOIF6P.js} +3 -3
  37. package/dist/chunks/{host-LU6T6F5B.js → host-X6WIOLAD.js} +6 -6
  38. package/dist/chunks/{integrations-O32M6MW3.js → integrations-5BQCAF3S.js} +1 -1
  39. package/dist/chunks/{libraries-J34N4KVN.js → libraries-77RPXDEA.js} +5 -5
  40. package/dist/chunks/{live-FL6WF76L.js → live-G2N7J4KP.js} +1 -1
  41. package/dist/chunks/{media-tool-TJBKGSHG.js → media-tool-3NAF5WYB.js} +1 -1
  42. package/dist/chunks/{new-file-6H3PJPZ3.js → new-file-NGM4DMER.js} +3 -3
  43. package/dist/chunks/{next-commerce-P5VDR7GT.js → next-commerce-AOWPOKF4.js} +2 -2
  44. package/dist/chunks/{plugin-TOD74E2H.js → plugin-VA3UX6MB.js} +2 -2
  45. package/dist/chunks/{plugin-import-H546NCY7.js → plugin-import-ETZGR3GP.js} +16 -16
  46. package/dist/chunks/{presence-KWD2DAZY.js → presence-OKJOZW5T.js} +2 -2
  47. package/dist/chunks/{project-5MDWVT4R.js → project-M2434NSN.js} +1 -1
  48. package/dist/chunks/{publish-site-K62E5TMF.js → publish-site-2HKDY5QX.js} +6 -6
  49. package/dist/chunks/{publish-store-UL7XQAEY.js → publish-store-HLC6MPYW.js} +5 -5
  50. package/dist/chunks/{raster-actions-VDSV6RXM.js → raster-actions-WAGBFNI6.js} +1 -1
  51. package/dist/chunks/{runner-XX7F7TUO.js → runner-KNXGHJMR.js} +18 -18
  52. package/dist/chunks/{store-GQBQN44I.js → store-QCVJ4IFP.js} +6 -6
  53. package/dist/chunks/{storefront-YEYSRO2H.js → storefront-DCFAMXB7.js} +2 -2
  54. package/dist/chunks/{sync-U2JPBWJG.js → sync-GL2PCAY4.js} +5 -5
  55. package/dist/chunks/{tabs-BTBKFZBQ.js → tabs-HMRJLPSM.js} +8 -8
  56. package/dist/chunks/{team-7ZHO2ZN5.js → team-EGHCFRFL.js} +1 -1
  57. package/dist/chunks/{team-client-F2TB2YMA.js → team-client-TV3QFKTA.js} +1 -1
  58. package/dist/chunks/{tools-NXIGJP2M.js → tools-FMSVCWQX.js} +2 -2
  59. package/dist/chunks/{ui-commands-CI5HE5Z3.js → ui-commands-SUFD4YOW.js} +12 -12
  60. package/dist/chunks/{versions-ELDRXOVR.js → versions-IDLFYQL2.js} +5 -5
  61. package/dist/index.js +1 -1
  62. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  renderDocument,
19
19
  toolView,
20
20
  underReviewKit
21
- } from "./chunk-TO3CA4N6.js";
21
+ } from "./chunk-YGEVXFT5.js";
22
22
  import "./chunk-DOV5BZYA.js";
23
23
  import "./chunk-45NFD6KM.js";
24
24
  import "./chunk-BP37OPD4.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-GLVFTYLA.js";
11
- import "./chunk-NQMQPM4E.js";
10
+ } from "./chunk-UUGS5Z2Q.js";
11
+ import "./chunk-ZOEVBMZO.js";
12
12
  import "./chunk-5DESVDWS.js";
13
13
  import "./chunk-CDDA2WRT.js";
14
14
  import "./chunk-R4DFTJUG.js";
@@ -18,7 +18,7 @@ import "./chunk-HEFTNQS6.js";
18
18
  import "./chunk-2TZJCTRC.js";
19
19
  import "./chunk-LT4BMSBP.js";
20
20
  import "./chunk-ALKMPJM5.js";
21
- import "./chunk-TO3CA4N6.js";
21
+ import "./chunk-YGEVXFT5.js";
22
22
  import "./chunk-DOV5BZYA.js";
23
23
  import "./chunk-MQHPHSD6.js";
24
24
  import "./chunk-WWGTXW5X.js";
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  HYPERY_TEAM_HEADER,
9
9
  hyperyRequestHeaders
10
- } from "./chunk-YYQ5C65Y.js";
10
+ } from "./chunk-7PG7AHTM.js";
11
11
  import "./chunk-BDU22GCT.js";
12
12
  import {
13
13
  useHyperyTeam
14
- } from "./chunk-PPXNIAN5.js";
14
+ } from "./chunk-QDZJGY23.js";
15
15
  import {
16
16
  ApiError
17
17
  } from "./chunk-33JJ7IML.js";
@@ -6,10 +6,10 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  appCommands
9
- } from "./chunk-NBHWTUUQ.js";
9
+ } from "./chunk-Y2XU3OGM.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-NQMQPM4E.js";
12
+ } from "./chunk-ZOEVBMZO.js";
13
13
  import "./chunk-5DESVDWS.js";
14
14
  import "./chunk-CDDA2WRT.js";
15
15
  import "./chunk-R4DFTJUG.js";
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-TO3CA4N6.js";
16
+ } from "./chunk-YGEVXFT5.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-45NFD6KM.js";
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  useEditorStore
9
- } from "./chunk-KSNVC4ES.js";
9
+ } from "./chunk-WF6GKULP.js";
10
10
  import {
11
11
  announce
12
12
  } from "./chunk-T3EOX5B6.js";
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  RUNTIME_PACKAGE,
13
13
  runtimeRange
14
- } from "./chunk-IBFCKDEU.js";
14
+ } from "./chunk-7UOZ5IGA.js";
15
15
  import {
16
16
  routesOf,
17
17
  screensOf
@@ -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-YYQ5C65Y.js";
9
+ } from "./chunk-7PG7AHTM.js";
10
10
  import {
11
11
  aiAvailability,
12
12
  effectiveChatModel,
@@ -24,14 +24,14 @@ import {
24
24
  } from "./chunk-6LALLJCP.js";
25
25
  import {
26
26
  syncStatus
27
- } from "./chunk-ZW6KJBRD.js";
27
+ } from "./chunk-FZMTU26T.js";
28
28
  import {
29
29
  usePluginStore
30
30
  } from "./chunk-JWHQPXE7.js";
31
31
  import {
32
32
  setPluginTabs,
33
33
  useEditorStore
34
- } from "./chunk-KSNVC4ES.js";
34
+ } from "./chunk-WF6GKULP.js";
35
35
  import {
36
36
  openBeside
37
37
  } from "./chunk-YPSEZDNS.js";
@@ -72,7 +72,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
72
72
  // lib/plugins/api.ts
73
73
  init_define_POPCRAFT_COMPONENT_IDS();
74
74
  async function handlePluginCall(env, method, params = {}) {
75
- const { dispatchPluginCall } = await import("./plugin-TOD74E2H.js");
75
+ const { dispatchPluginCall } = await import("./plugin-VA3UX6MB.js");
76
76
  return dispatchPluginCall(env, method, params);
77
77
  }
78
78
 
@@ -602,7 +602,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
602
602
  if (!openBeside(url)) throw new Error("The browser blocked the new tab");
603
603
  },
604
604
  createDocument: async (opts2) => {
605
- const { createFreshFileOrExplain } = await import("./new-file-6H3PJPZ3.js");
605
+ const { createFreshFileOrExplain } = await import("./new-file-NGM4DMER.js");
606
606
  const created = await createFreshFileOrExplain({}, { name: opts2?.name });
607
607
  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})`);
608
608
  await useEditorStore.getState().openDocument(created.docId);
@@ -811,7 +811,7 @@ if (typeof window !== "undefined") {
811
811
  const name = d.name || "Imported";
812
812
  void (async () => {
813
813
  try {
814
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-H546NCY7.js");
814
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-ETZGR3GP.js");
815
815
  if (d.ir && typeof d.ir === "object") {
816
816
  await applyPluginLayoutIr(d.ir, { mode, name });
817
817
  return;
@@ -16,7 +16,7 @@ import {
16
16
  requestImageAction,
17
17
  sizeForAspect,
18
18
  vectorSupport
19
- } from "./chunk-F2XV57I3.js";
19
+ } from "./chunk-5VKRL7I6.js";
20
20
  import {
21
21
  external_exports
22
22
  } from "./chunk-ALKMPJM5.js";
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-3RRV6EZB.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-KSNVC4ES.js";
34
+ } from "./chunk-WF6GKULP.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-4FO2WIBL.js";
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-PPXNIAN5.js";
14
+ } from "./chunk-QDZJGY23.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-7L4NGJEG.js";
@@ -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: "2.2.1",
17
+ version: "2.2.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",
@@ -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-ZKS75Z4L.js"),
94
+ import("./editor-store-XYFGCUDM.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-TJBKGSHG.js")
96
+ import("./media-tool-3NAF5WYB.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);
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  registerAppCommands
9
- } from "./chunk-NBHWTUUQ.js";
9
+ } from "./chunk-Y2XU3OGM.js";
10
10
  import {
11
11
  storeOpsSeam
12
12
  } from "./chunk-IH2N3U3I.js";
@@ -23,13 +23,13 @@ import {
23
23
  sameResolution,
24
24
  surfaceSize,
25
25
  windowCssSize
26
- } from "./chunk-NQMQPM4E.js";
26
+ } from "./chunk-ZOEVBMZO.js";
27
27
  import {
28
28
  notice
29
- } from "./chunk-ZDKXMD5W.js";
29
+ } from "./chunk-7PA7BTXK.js";
30
30
  import {
31
31
  agentContext
32
- } from "./chunk-TO3CA4N6.js";
32
+ } from "./chunk-YGEVXFT5.js";
33
33
  import {
34
34
  setAudioOutputDocument,
35
35
  setMediaDocument
@@ -37,7 +37,7 @@ import {
37
37
  import {
38
38
  collabSession,
39
39
  syncStatus
40
- } from "./chunk-ZW6KJBRD.js";
40
+ } from "./chunk-FZMTU26T.js";
41
41
  import {
42
42
  loadEntitlements
43
43
  } from "./chunk-BDU22GCT.js";
@@ -50,7 +50,7 @@ import {
50
50
  import {
51
51
  persist,
52
52
  useEditorStore
53
- } from "./chunk-KSNVC4ES.js";
53
+ } from "./chunk-WF6GKULP.js";
54
54
  import {
55
55
  create
56
56
  } from "./chunk-E7VPUIWN.js";
@@ -17,14 +17,14 @@ import {
17
17
  reportOpenStage,
18
18
  setCloudLink,
19
19
  trackOpen
20
- } from "./chunk-UZOTGJJ7.js";
20
+ } from "./chunk-IWDCQCY3.js";
21
21
  import {
22
22
  parseDeepLink,
23
23
  withDeepLink
24
24
  } from "./chunk-HSOG6V7H.js";
25
25
  import {
26
26
  activeTeamWorkspaceId
27
- } from "./chunk-PPXNIAN5.js";
27
+ } from "./chunk-QDZJGY23.js";
28
28
  import {
29
29
  ApiError,
30
30
  api,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-33JJ7IML.js";
33
33
  import {
34
34
  attachPresence
35
- } from "./chunk-5IKNFA5Y.js";
35
+ } from "./chunk-4VMFFOY2.js";
36
36
  import {
37
37
  fileOpeningMode,
38
38
  isAppleMobile,
@@ -45,7 +45,7 @@ import {
45
45
  setCollabHistory,
46
46
  storedDocument,
47
47
  useEditorStore
48
- } from "./chunk-KSNVC4ES.js";
48
+ } from "./chunk-WF6GKULP.js";
49
49
  import {
50
50
  currentHistoryGroup
51
51
  } from "./chunk-4FO2WIBL.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-BDU22GCT.js";
10
10
  import {
11
11
  activeTeamWorkspaceId
12
- } from "./chunk-PPXNIAN5.js";
12
+ } from "./chunk-QDZJGY23.js";
13
13
  import {
14
14
  ApiError,
15
15
  cloudApi
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-62RK3D7W.js";
23
23
  import {
24
24
  markLibraryDocument
25
- } from "./chunk-KSNVC4ES.js";
25
+ } from "./chunk-WF6GKULP.js";
26
26
  import {
27
27
  GUEST_FILE_LIMIT
28
28
  } from "./chunk-7L4NGJEG.js";
@@ -12,7 +12,7 @@ import {
12
12
  hostEnv,
13
13
  plain,
14
14
  registerBuiltinCommands
15
- } from "./chunk-NQMQPM4E.js";
15
+ } from "./chunk-ZOEVBMZO.js";
16
16
  import {
17
17
  external_exports
18
18
  } from "./chunk-ALKMPJM5.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-JP6DD24T.js"), import("./storefront-YEYSRO2H.js")]);
629
+ const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-JP6DD24T.js"), import("./storefront-DCFAMXB7.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-STPPU55M.js"),
648
- import("./storefront-YEYSRO2H.js"),
649
- import("./project-5MDWVT4R.js"),
648
+ import("./storefront-DCFAMXB7.js"),
649
+ import("./project-M2434NSN.js"),
650
650
  import("./zip-export-7RSIVOGN.js"),
651
651
  import("./tree-224ATUW2.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-LU6T6F5B.js");
846
+ const { runPlugin } = await import("./host-X6WIOLAD.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-HWCLMJGE.js";
9
+ } from "./chunk-KGDDA7OH.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-NQMQPM4E.js";
16
+ } from "./chunk-ZOEVBMZO.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-ALKMPJM5.js";
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
53
53
  }
54
54
  },
55
55
  run: async ({ on }, ctx) => {
56
- const { setSpotlight } = await import("./presence-KWD2DAZY.js");
56
+ const { setSpotlight } = await import("./presence-OKJOZW5T.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-ZKS75Z4L.js");
83
+ const { useEditorStore } = await import("./editor-store-XYFGCUDM.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-ZKS75Z4L.js");
147
+ const { useEditorStore } = await import("./editor-store-XYFGCUDM.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-J34N4KVN.js");
191
+ const { publishLibrary } = await import("./libraries-77RPXDEA.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-J34N4KVN.js");
223
+ const { unpublishLibrary } = await import("./libraries-77RPXDEA.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-ZKS75Z4L.js"),
236
- import("./versions-ELDRXOVR.js")
235
+ import("./editor-store-XYFGCUDM.js"),
236
+ import("./versions-IDLFYQL2.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-ELDRXOVR.js");
269
+ const { restoreVersion } = await import("./versions-IDLFYQL2.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-ELDRXOVR.js");
294
+ const { deleteVersion } = await import("./versions-IDLFYQL2.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 } };
@@ -150,7 +150,7 @@ function startHyperyTeams() {
150
150
  maybePromptForTeam();
151
151
  void followFileTeam(linkedKey);
152
152
  });
153
- void import("./sync-U2JPBWJG.js").then(({ onSyncStatus, syncStatus }) => {
153
+ void import("./sync-GL2PCAY4.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-NQMQPM4E.js";
10
+ } from "./chunk-ZOEVBMZO.js";
11
11
  import {
12
12
  toolView
13
- } from "./chunk-TO3CA4N6.js";
13
+ } from "./chunk-YGEVXFT5.js";
14
14
  import {
15
15
  init_define_POPCRAFT_COMPONENT_IDS
16
16
  } from "./chunk-CXCODRT2.js";
@@ -4871,7 +4871,7 @@ function createPopcornSlice(set2, get2) {
4871
4871
  privateMode: false,
4872
4872
  setPrivateMode: (on) => {
4873
4873
  set2({ privateMode: on });
4874
- void import("./presence-KWD2DAZY.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4874
+ void import("./presence-OKJOZW5T.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4875
4875
  });
4876
4876
  },
4877
4877
  /** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
@@ -6943,7 +6943,7 @@ var useEditorStore = create()(
6943
6943
  // A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
6944
6944
  // Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
6945
6945
  duplicateDocument: async (id) => {
6946
- const { duplicateDocumentToCloud } = await import("./sync-U2JPBWJG.js");
6946
+ const { duplicateDocumentToCloud } = await import("./sync-GL2PCAY4.js");
6947
6947
  return duplicateDocumentToCloud(id);
6948
6948
  },
6949
6949
  deleteDocument: async (id) => {
@@ -10453,9 +10453,9 @@ if (typeof window !== "undefined") {
10453
10453
  if (typeof window !== "undefined" && navigator.webdriver) {
10454
10454
  window.__vpDesign = async (script, o = {}) => {
10455
10455
  const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
10456
- import("./tools-NXIGJP2M.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-JDIZMWFA.js")).registerBuiltinTools })),
10457
- import("./editor-seams-O4NUCCAC.js"),
10458
- import("./live-FL6WF76L.js")
10456
+ import("./tools-FMSVCWQX.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-SP3SSRYW.js")).registerBuiltinTools })),
10457
+ import("./editor-seams-QJKENLDL.js"),
10458
+ import("./live-G2N7J4KP.js")
10459
10459
  ]);
10460
10460
  registerBuiltinTools();
10461
10461
  const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-NQMQPM4E.js";
11
+ } from "./chunk-ZOEVBMZO.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-ALKMPJM5.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-ZKS75Z4L.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-XYFGCUDM.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({
@@ -191,7 +191,7 @@ var dialogOpen = defineCommand({
191
191
  (await import("./plan-limit-OV2UHGRY.js")).openPlanDialog();
192
192
  break;
193
193
  case "credits":
194
- await (await import("./buy-credits-553SVOD6.js")).buyAiCredits();
194
+ await (await import("./buy-credits-HRDC77FW.js")).buyAiCredits();
195
195
  break;
196
196
  case "tokens":
197
197
  emit("popcraft-open-tokens");
@@ -237,7 +237,7 @@ var aiOpen = defineCommand({
237
237
  ] } },
238
238
  run: async ({ dialog, skillId }) => {
239
239
  if (dialog) (await import("./client-store-3GXEHYH7.js")).openAiDialog(dialog);
240
- else (await import("./store-GQBQN44I.js")).openAgentPanel({ skillId: skillId ?? null });
240
+ else (await import("./store-QCVJ4IFP.js")).openAgentPanel({ skillId: skillId ?? null });
241
241
  return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
242
242
  }
243
243
  });
@@ -250,7 +250,7 @@ var agentContinue = defineCommand({
250
250
  params: external_exports.object({}),
251
251
  expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
252
252
  run: async () => {
253
- const resumed = await (await import("./runner-XX7F7TUO.js")).continueTurn();
253
+ const resumed = await (await import("./runner-KNXGHJMR.js")).continueTurn();
254
254
  return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
255
255
  }
256
256
  });
@@ -329,11 +329,11 @@ var toolPlace = defineCommand({
329
329
  run: async ({ what }) => {
330
330
  if (what === "media") {
331
331
  const s = await store();
332
- const { placeMediaFromPicker } = await import("./media-tool-TJBKGSHG.js");
332
+ const { placeMediaFromPicker } = await import("./media-tool-3NAF5WYB.js");
333
333
  await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
334
334
  return { summary: "Placing media" };
335
335
  }
336
- const { beginEyedrop } = await import("./eyedropper-VXKYYC47.js");
336
+ const { beginEyedrop } = await import("./eyedropper-FMPO5HRC.js");
337
337
  void beginEyedrop();
338
338
  return { summary: "Pick a color" };
339
339
  }
@@ -351,7 +351,7 @@ var nodeRasterize = defineCommand({
351
351
  keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
352
352
  } },
353
353
  run: async () => {
354
- const { flattenSelectionToPaintLayer } = await import("./raster-actions-VDSV6RXM.js");
354
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-WAGBFNI6.js");
355
355
  await flattenSelectionToPaintLayer();
356
356
  return { summary: "Rasterized" };
357
357
  }
@@ -462,7 +462,7 @@ function pluginCommand(plugins) {
462
462
  params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
463
463
  expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
464
464
  run: async ({ pluginId, commandId }) => {
465
- await (await import("./host-LU6T6F5B.js")).runPlugin(pluginId, commandId);
465
+ await (await import("./host-X6WIOLAD.js")).runPlugin(pluginId, commandId);
466
466
  return { summary: "Plugin started" };
467
467
  }
468
468
  });
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-E5T4NZW2.js";
10
10
  import {
11
11
  notice
12
- } from "./chunk-ZDKXMD5W.js";
12
+ } from "./chunk-7PA7BTXK.js";
13
13
  import {
14
14
  effectiveChatModel,
15
15
  setModelPref,
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-BP37OPD4.js";
21
21
  import {
22
22
  useEditorStore
23
- } from "./chunk-KSNVC4ES.js";
23
+ } from "./chunk-WF6GKULP.js";
24
24
  import {
25
25
  create
26
26
  } from "./chunk-E7VPUIWN.js";
@@ -1990,7 +1990,7 @@ async function sendMessage(text) {
1990
1990
  if (!useAgentStore.getState().activeThreadId) newThread();
1991
1991
  const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
1992
1992
  useAgentStore.setState({ draft: "", draftMentions: [], error: null });
1993
- const { runTurn } = await import("./runner-XX7F7TUO.js");
1993
+ const { runTurn } = await import("./runner-KNXGHJMR.js");
1994
1994
  await runTurn(body, mentions);
1995
1995
  }
1996
1996
  function stop() {
@@ -2093,7 +2093,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
2093
2093
  function subscribeChildTools() {
2094
2094
  let dispose;
2095
2095
  let cancelled = false;
2096
- void import("./runner-XX7F7TUO.js").then(({ onChildTool }) => {
2096
+ void import("./runner-KNXGHJMR.js").then(({ onChildTool }) => {
2097
2097
  const off = onChildTool((report) => {
2098
2098
  if (report?.status !== "running" || report.jobId) return;
2099
2099
  recordChildTool(report.toolCallId ?? "", report.name);
@@ -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-665AK3W7.js");
60
+ const { requestAudio } = await import("./client-YO36MK2E.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-UOENDTIA.js");
66
+ const { generateVideoFile } = await import("./generate-media-LOEOIF6P.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-665AK3W7.js"),
72
+ import("./client-YO36MK2E.js"),
73
73
  import("./client-store-3GXEHYH7.js")
74
74
  ]);
75
75
  const modelId = effectiveImageModel(useAiStore.getState());