@popcraft/kit 0.53.3 → 0.53.4

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-DVKYZ5MR.js → agent-TFP6TVFB.js} +1 -1
  2. package/dist/chunks/{builtin-VDSMLZXH.js → builtin-3CGPTNXY.js} +3 -3
  3. package/dist/chunks/{buy-credits-424PQFK4.js → buy-credits-NOGZQSWW.js} +2 -2
  4. package/dist/chunks/{check-template-E5WVEJ54.js → check-template-RS3UCUQY.js} +2 -2
  5. package/dist/chunks/{chunk-4SD7TX7R.js → chunk-2S3CK5D5.js} +11 -11
  6. package/dist/chunks/{chunk-FJSJT5ZM.js → chunk-3Q5PJGIH.js} +3 -3
  7. package/dist/chunks/{chunk-5SVFCWRP.js → chunk-53D6GE55.js} +5 -5
  8. package/dist/chunks/{chunk-ZLHMVVTT.js → chunk-5WFPJKU2.js} +1 -1
  9. package/dist/chunks/{chunk-ODM6DFGO.js → chunk-6N6H2UTK.js} +4 -4
  10. package/dist/chunks/{chunk-7IH7U6KU.js → chunk-A5YDZ5XZ.js} +4 -4
  11. package/dist/chunks/{chunk-MQ73SYLV.js → chunk-BNOKQXO7.js} +3 -3
  12. package/dist/chunks/{chunk-JOUHQ5HK.js → chunk-BO5PL232.js} +1 -1
  13. package/dist/chunks/{chunk-ZPETEA54.js → chunk-IKJYY6Z6.js} +42 -42
  14. package/dist/chunks/{chunk-FMWUXVVS.js → chunk-KNX2GNJW.js} +1 -1
  15. package/dist/chunks/{chunk-VYWXAGEE.js → chunk-QIHWXLAJ.js} +5 -5
  16. package/dist/chunks/{chunk-6HQI4NQA.js → chunk-ROTVMOEG.js} +2 -2
  17. package/dist/chunks/{chunk-4SPJEVG6.js → chunk-RYHIYN6C.js} +4 -4
  18. package/dist/chunks/{chunk-NQPNGZ3C.js → chunk-T6FTHKK6.js} +2 -2
  19. package/dist/chunks/{chunk-524RSKF3.js → chunk-UNELCDAZ.js} +1 -1
  20. package/dist/chunks/{chunk-UPLMAXNQ.js → chunk-WMGGQIXP.js} +1 -1
  21. package/dist/chunks/{chunk-777OZHEF.js → chunk-XMGE3OAL.js} +9 -9
  22. package/dist/chunks/{chunk-W5KNQERV.js → chunk-ZRL3KFXC.js} +2 -2
  23. package/dist/chunks/{chunk-Q23DL77U.js → chunk-ZRONJTLS.js} +2 -2
  24. package/dist/chunks/{client-6XOD422W.js → client-EL5UMAYF.js} +2 -2
  25. package/dist/chunks/{client-NOHRL7S3.js → client-HIOLQ34E.js} +3 -3
  26. package/dist/chunks/{client-2L4XUPQN.js → client-MYYXEPL2.js} +1 -1
  27. package/dist/chunks/{client-actions-K54NVVVW.js → client-actions-THJILN5X.js} +5 -5
  28. package/dist/chunks/{dangerous-4QU6QUOD.js → dangerous-NVPM5SVJ.js} +3 -3
  29. package/dist/chunks/{delete-current-file-RMINS2BA.js → delete-current-file-FRA6YXPH.js} +5 -5
  30. package/dist/chunks/{editor-seams-SW67BCBW.js → editor-seams-SVUE56R2.js} +10 -10
  31. package/dist/chunks/{editor-store-WPRQJL2A.js → editor-store-FNAFDKST.js} +1 -1
  32. package/dist/chunks/{export-watermark-2QVKO7OR.js → export-watermark-7Q3ABNS7.js} +5 -5
  33. package/dist/chunks/{eyedropper-WCIR6LL5.js → eyedropper-EZQ5KIO3.js} +1 -1
  34. package/dist/chunks/{generate-media-WCNTS5OY.js → generate-media-7NWHA6F5.js} +3 -3
  35. package/dist/chunks/{host-GLRRFC2S.js → host-PEOFHUBU.js} +6 -6
  36. package/dist/chunks/{integrations-5I6DGN6S.js → integrations-2WLRYJNT.js} +1 -1
  37. package/dist/chunks/{libraries-INCBCGOZ.js → libraries-OKUKUYXY.js} +5 -5
  38. package/dist/chunks/{live-SGBLJFAC.js → live-5IRGOGLI.js} +1 -1
  39. package/dist/chunks/{media-tool-KSXO2AAJ.js → media-tool-5YCZR3I4.js} +1 -1
  40. package/dist/chunks/{new-file-56ACDQ35.js → new-file-452KWJA3.js} +3 -3
  41. package/dist/chunks/{plugin-GJXXN4UQ.js → plugin-NBKCIYEM.js} +2 -2
  42. package/dist/chunks/{plugin-import-N2J7NVET.js → plugin-import-GRR363KX.js} +14 -14
  43. package/dist/chunks/{presence-S6FAMSP4.js → presence-OWHZESUG.js} +2 -2
  44. package/dist/chunks/{project-IH23X2UG.js → project-BP5PLCKJ.js} +1 -1
  45. package/dist/chunks/{publish-site-7YFHE7PV.js → publish-site-MQDMD6CP.js} +6 -6
  46. package/dist/chunks/{publish-store-I3NKMHZK.js → publish-store-7RBMG4MW.js} +4 -4
  47. package/dist/chunks/{raster-actions-PRMIAQQ7.js → raster-actions-LTQUOMVO.js} +1 -1
  48. package/dist/chunks/{runner-OVYUXA4W.js → runner-DCWBLXVG.js} +17 -17
  49. package/dist/chunks/{store-BYSDY5PO.js → store-KMW7YRR5.js} +6 -6
  50. package/dist/chunks/{sync-TFB3VWFP.js → sync-W45RDM4R.js} +5 -5
  51. package/dist/chunks/{tabs-CNE4XGIM.js → tabs-HZNDAK3V.js} +8 -8
  52. package/dist/chunks/{team-DFOKEFOE.js → team-CWRUXW3A.js} +1 -1
  53. package/dist/chunks/{team-client-QHRXYUPI.js → team-client-ABNFDYIJ.js} +1 -1
  54. package/dist/chunks/{tools-YDR7QIHQ.js → tools-2EVZOZ24.js} +2 -2
  55. package/dist/chunks/{ui-commands-HB4FFFXA.js → ui-commands-KXAMRX3J.js} +12 -12
  56. package/dist/chunks/{versions-G4PGAFLF.js → versions-7GKOKZGW.js} +5 -5
  57. package/dist/index.js +1 -1
  58. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  renderDocument,
19
19
  toolView,
20
20
  underReviewKit
21
- } from "./chunk-FJSJT5ZM.js";
21
+ } from "./chunk-3Q5PJGIH.js";
22
22
  import "./chunk-ZYK65XJJ.js";
23
23
  import "./chunk-CEVTHE4E.js";
24
24
  import "./chunk-OQZFD4BD.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-6HQI4NQA.js";
11
- import "./chunk-ZPETEA54.js";
10
+ } from "./chunk-ROTVMOEG.js";
11
+ import "./chunk-IKJYY6Z6.js";
12
12
  import "./chunk-ZLWN6LBH.js";
13
13
  import "./chunk-Q7EITIAT.js";
14
14
  import "./chunk-X36CCQ76.js";
@@ -19,7 +19,7 @@ import "./chunk-A6XXXQQO.js";
19
19
  import "./chunk-ATSLWELA.js";
20
20
  import "./chunk-6B6ULEDJ.js";
21
21
  import "./chunk-VOOUF5TT.js";
22
- import "./chunk-FJSJT5ZM.js";
22
+ import "./chunk-3Q5PJGIH.js";
23
23
  import "./chunk-ZYK65XJJ.js";
24
24
  import "./chunk-4LOAHKDJ.js";
25
25
  import "./chunk-UCNBKWJQ.js";
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  HYPERY_TEAM_HEADER,
9
9
  hyperyRequestHeaders
10
- } from "./chunk-UPLMAXNQ.js";
10
+ } from "./chunk-WMGGQIXP.js";
11
11
  import "./chunk-7SMURRFY.js";
12
12
  import {
13
13
  useHyperyTeam
14
- } from "./chunk-FMWUXVVS.js";
14
+ } from "./chunk-KNX2GNJW.js";
15
15
  import {
16
16
  ApiError,
17
17
  inAppPurchases,
@@ -6,10 +6,10 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  appCommands
9
- } from "./chunk-777OZHEF.js";
9
+ } from "./chunk-XMGE3OAL.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-ZPETEA54.js";
12
+ } from "./chunk-IKJYY6Z6.js";
13
13
  import "./chunk-ZLWN6LBH.js";
14
14
  import "./chunk-Q7EITIAT.js";
15
15
  import "./chunk-X36CCQ76.js";
@@ -6,14 +6,14 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  pluginRun
9
- } from "./chunk-MQ73SYLV.js";
9
+ } from "./chunk-BNOKQXO7.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-ZPETEA54.js";
16
+ } from "./chunk-IKJYY6Z6.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-VOOUF5TT.js";
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
53
53
  }
54
54
  },
55
55
  run: async ({ on }, ctx) => {
56
- const { setSpotlight } = await import("./presence-S6FAMSP4.js");
56
+ const { setSpotlight } = await import("./presence-OWHZESUG.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-WPRQJL2A.js");
83
+ const { useEditorStore } = await import("./editor-store-FNAFDKST.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-WPRQJL2A.js");
147
+ const { useEditorStore } = await import("./editor-store-FNAFDKST.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-INCBCGOZ.js");
191
+ const { publishLibrary } = await import("./libraries-OKUKUYXY.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-INCBCGOZ.js");
223
+ const { unpublishLibrary } = await import("./libraries-OKUKUYXY.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-WPRQJL2A.js"),
236
- import("./versions-G4PGAFLF.js")
235
+ import("./editor-store-FNAFDKST.js"),
236
+ import("./versions-7GKOKZGW.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-G4PGAFLF.js");
269
+ const { restoreVersion } = await import("./versions-7GKOKZGW.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-G4PGAFLF.js");
294
+ const { deleteVersion } = await import("./versions-7GKOKZGW.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 } };
@@ -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-NOHRL7S3.js");
60
+ const { requestAudio } = await import("./client-HIOLQ34E.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-WCNTS5OY.js");
66
+ const { generateVideoFile } = await import("./generate-media-7NWHA6F5.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-NOHRL7S3.js"),
72
+ import("./client-HIOLQ34E.js"),
73
73
  import("./client-store-3YCO6KV5.js")
74
74
  ]);
75
75
  const modelId = effectiveImageModel(useAiStore.getState());
@@ -4611,7 +4611,7 @@ function createPopcornSlice(set2, get2) {
4611
4611
  privateMode: false,
4612
4612
  setPrivateMode: (on) => {
4613
4613
  set2({ privateMode: on });
4614
- void import("./presence-S6FAMSP4.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4614
+ void import("./presence-OWHZESUG.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4615
4615
  });
4616
4616
  },
4617
4617
  /** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
@@ -6656,7 +6656,7 @@ var useEditorStore = create()(
6656
6656
  // A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
6657
6657
  // Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
6658
6658
  duplicateDocument: async (id) => {
6659
- const { duplicateDocumentToCloud } = await import("./sync-TFB3VWFP.js");
6659
+ const { duplicateDocumentToCloud } = await import("./sync-W45RDM4R.js");
6660
6660
  return duplicateDocumentToCloud(id);
6661
6661
  },
6662
6662
  deleteDocument: async (id) => {
@@ -10131,9 +10131,9 @@ if (typeof window !== "undefined") {
10131
10131
  if (typeof window !== "undefined" && navigator.webdriver) {
10132
10132
  window.__vpDesign = async (script, o = {}) => {
10133
10133
  const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
10134
- import("./tools-YDR7QIHQ.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-VDSMLZXH.js")).registerBuiltinTools })),
10135
- import("./editor-seams-SW67BCBW.js"),
10136
- import("./live-SGBLJFAC.js")
10134
+ import("./tools-2EVZOZ24.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-3CGPTNXY.js")).registerBuiltinTools })),
10135
+ import("./editor-seams-SVUE56R2.js"),
10136
+ import("./live-5IRGOGLI.js")
10137
10137
  ]);
10138
10138
  registerBuiltinTools();
10139
10139
  const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-FJSJT5ZM.js";
16
+ } from "./chunk-3Q5PJGIH.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-OQZFD4BD.js";
@@ -20,14 +20,14 @@ import {
20
20
  } from "./chunk-U7FLEMSS.js";
21
21
  import {
22
22
  notice
23
- } from "./chunk-Q23DL77U.js";
23
+ } from "./chunk-ZRONJTLS.js";
24
24
  import {
25
25
  agentContext
26
- } from "./chunk-FJSJT5ZM.js";
26
+ } from "./chunk-3Q5PJGIH.js";
27
27
  import {
28
28
  collabSession,
29
29
  syncStatus
30
- } from "./chunk-7IH7U6KU.js";
30
+ } from "./chunk-A5YDZ5XZ.js";
31
31
  import {
32
32
  loadEntitlements
33
33
  } from "./chunk-7SMURRFY.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-KWUXHRXD.js";
37
37
  import {
38
38
  useEditorStore
39
- } from "./chunk-5SVFCWRP.js";
39
+ } from "./chunk-53D6GE55.js";
40
40
  import {
41
41
  getActiveRenderer
42
42
  } from "./chunk-CEVTHE4E.js";
@@ -16,14 +16,14 @@ import {
16
16
  reportOpenStage,
17
17
  setCloudLink,
18
18
  trackOpen
19
- } from "./chunk-W5KNQERV.js";
19
+ } from "./chunk-ZRL3KFXC.js";
20
20
  import {
21
21
  parseDeepLink,
22
22
  withDeepLink
23
23
  } from "./chunk-EUF3VFBW.js";
24
24
  import {
25
25
  activeTeamWorkspaceId
26
- } from "./chunk-FMWUXVVS.js";
26
+ } from "./chunk-KNX2GNJW.js";
27
27
  import {
28
28
  ApiError,
29
29
  api,
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-KWUXHRXD.js";
32
32
  import {
33
33
  attachPresence
34
- } from "./chunk-JOUHQ5HK.js";
34
+ } from "./chunk-BO5PL232.js";
35
35
  import {
36
36
  isPersistableDocument,
37
37
  isUnsavedPlaceholder,
@@ -42,7 +42,7 @@ import {
42
42
  setCollabHistory,
43
43
  storedDocument,
44
44
  useEditorStore
45
- } from "./chunk-5SVFCWRP.js";
45
+ } from "./chunk-53D6GE55.js";
46
46
  import {
47
47
  currentHistoryGroup
48
48
  } from "./chunk-76I6DIEM.js";
@@ -9,7 +9,7 @@ import {
9
9
  hostEnv,
10
10
  plain,
11
11
  registerBuiltinCommands
12
- } from "./chunk-ZPETEA54.js";
12
+ } from "./chunk-IKJYY6Z6.js";
13
13
  import {
14
14
  storeOpsSeam
15
15
  } from "./chunk-KOAEKWIA.js";
@@ -615,7 +615,7 @@ var commands = [
615
615
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
616
616
  import("./storefront-prepare-6IUMZTCQ.js"),
617
617
  import("./storefront-BPMM6QWK.js"),
618
- import("./project-IH23X2UG.js"),
618
+ import("./project-BP5PLCKJ.js"),
619
619
  import("./zip-export-ZYXDK4SM.js"),
620
620
  import("./tree-YKYXBPRZ.js")
621
621
  ]);
@@ -812,7 +812,7 @@ var pluginRun = defineCommand({
812
812
  }
813
813
  },
814
814
  run: async (p, ctx) => {
815
- const { runPlugin } = await import("./host-GLRRFC2S.js");
815
+ const { runPlugin } = await import("./host-PEOFHUBU.js");
816
816
  await runPlugin(p.pluginId, p.commandId);
817
817
  ctx.notice(`Started ${p.pluginId}.`);
818
818
  return {
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  useEditorStore
9
- } from "./chunk-5SVFCWRP.js";
9
+ } from "./chunk-53D6GE55.js";
10
10
  import {
11
11
  announce
12
12
  } from "./chunk-DV7XWPVL.js";