@popcraft/kit 0.35.0 → 0.35.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-JHPYSWYB.js → agent-MKYEDRE3.js} +1 -1
  2. package/dist/chunks/{builtin-2HVMPYS2.js → builtin-WF33DS7A.js} +3 -3
  3. package/dist/chunks/{check-template-SS5SRKLZ.js → check-template-ES2RFQBP.js} +2 -2
  4. package/dist/chunks/{chunk-RSKC7OEM.js → chunk-2P7VFUI5.js} +6 -6
  5. package/dist/chunks/{chunk-XLXTGF54.js → chunk-34GI4R3W.js} +11 -11
  6. package/dist/chunks/{chunk-PDE677V4.js → chunk-3RQDOHDZ.js} +1 -1
  7. package/dist/chunks/{chunk-PJW3MZGO.js → chunk-554XE462.js} +3 -3
  8. package/dist/chunks/{chunk-CINNXWUI.js → chunk-A6A3SR4G.js} +1 -1
  9. package/dist/chunks/{chunk-JVZ557U4.js → chunk-BEIF4ZGJ.js} +4 -4
  10. package/dist/chunks/{chunk-RK7FLIB2.js → chunk-BTRSTHMS.js} +4 -4
  11. package/dist/chunks/{chunk-VO4RREDX.js → chunk-DAQIORGG.js} +1 -1
  12. package/dist/chunks/{chunk-FYC5JMBX.js → chunk-FKEZOH37.js} +1 -1
  13. package/dist/chunks/{chunk-ZVJTVA6V.js → chunk-GWAOVJEM.js} +5 -5
  14. package/dist/chunks/{chunk-K5WAAWOE.js → chunk-HJMF7XVI.js} +3 -1
  15. package/dist/chunks/{chunk-K5UPFFH6.js → chunk-I5WLNE7W.js} +2 -2
  16. package/dist/chunks/{chunk-SY7GRTQZ.js → chunk-I7HTM3TN.js} +2 -2
  17. package/dist/chunks/{chunk-IVKG67P2.js → chunk-IJ5I4LNT.js} +10 -10
  18. package/dist/chunks/{chunk-7I3XONKI.js → chunk-K5AO22SK.js} +5 -5
  19. package/dist/chunks/{chunk-TSQ66WGP.js → chunk-MWARUAKF.js} +3 -1
  20. package/dist/chunks/{chunk-4P2YOYQW.js → chunk-PQVYLLMD.js} +3 -3
  21. package/dist/chunks/{chunk-HADO2ZKO.js → chunk-SSWJWHLC.js} +2 -2
  22. package/dist/chunks/{chunk-FZX2SKQA.js → chunk-U23DERY3.js} +40 -40
  23. package/dist/chunks/{chunk-MAHI66ZI.js → chunk-WJHUHQ2T.js} +2 -2
  24. package/dist/chunks/{client-S2HZIKRW.js → client-ET5LPHRM.js} +2 -2
  25. package/dist/chunks/{client-NHQJSVJC.js → client-LKFEYN5I.js} +2 -2
  26. package/dist/chunks/{client-2EA4JQFU.js → client-ZO43J7YH.js} +1 -1
  27. package/dist/chunks/{client-actions-PZZQULW7.js → client-actions-DHRNPSNP.js} +4 -4
  28. package/dist/chunks/{dangerous-CN56TSWA.js → dangerous-FKXUAQD6.js} +3 -3
  29. package/dist/chunks/{editor-seams-QIPQ4A56.js → editor-seams-2RGIGO7H.js} +9 -9
  30. package/dist/chunks/{editor-store-KOCL32QR.js → editor-store-USKCC4FS.js} +1 -1
  31. package/dist/chunks/{export-watermark-BU2IHTBA.js → export-watermark-KLBIFFNC.js} +5 -5
  32. package/dist/chunks/{eyedropper-GFUPXWCN.js → eyedropper-RHIUGAX5.js} +1 -1
  33. package/dist/chunks/{generate-media-FUFNU2MK.js → generate-media-YFKM6ATW.js} +2 -2
  34. package/dist/chunks/{host-46OGNY7R.js → host-7OG36OKX.js} +8 -8
  35. package/dist/chunks/{integrations-HPKUMFDK.js → integrations-HG6A3OAE.js} +1 -1
  36. package/dist/chunks/{libraries-N4J3VJRN.js → libraries-F2AJLFLK.js} +5 -5
  37. package/dist/chunks/{live-G3YDQFUA.js → live-UPG7CITR.js} +1 -1
  38. package/dist/chunks/{media-tool-USRA6PRL.js → media-tool-434MJIMH.js} +2 -2
  39. package/dist/chunks/{new-file-E6CBEXWI.js → new-file-ONPCHRIP.js} +3 -3
  40. package/dist/chunks/{plugin-GRDTMOZ4.js → plugin-BYGSXHLK.js} +2 -2
  41. package/dist/chunks/{plugin-import-WDC2S5SB.js → plugin-import-FHZMVF4S.js} +15 -15
  42. package/dist/chunks/{presence-RVQN2FJL.js → presence-GVKO2DPN.js} +2 -2
  43. package/dist/chunks/{project-RN5YG3LT.js → project-ISGRUUNZ.js} +1 -1
  44. package/dist/chunks/{publish-site-FS2F33ZC.js → publish-site-F3WTIQP4.js} +6 -6
  45. package/dist/chunks/{publish-store-EV6HMGZP.js → publish-store-MTKNMZ75.js} +4 -4
  46. package/dist/chunks/{raster-actions-Z5RDSHUS.js → raster-actions-QU23KVDW.js} +1 -1
  47. package/dist/chunks/{runner-22TLZUFL.js → runner-RCGWPXVE.js} +16 -16
  48. package/dist/chunks/{store-IZWGL5NP.js → store-ZSTV7AQ2.js} +5 -5
  49. package/dist/chunks/{sync-OLNH6OAZ.js → sync-W7K4ZR3P.js} +5 -5
  50. package/dist/chunks/{tabs-HOWAPYTP.js → tabs-GQPIRCJ5.js} +8 -8
  51. package/dist/chunks/{team-P5ORC7HQ.js → team-XZ6QOQBP.js} +1 -1
  52. package/dist/chunks/{team-client-APFDSQEI.js → team-client-A2FYDWX3.js} +1 -1
  53. package/dist/chunks/{theme-store-L4INTQDS.js → theme-store-OWW2NGKE.js} +2 -2
  54. package/dist/chunks/{tools-2JCAIXU2.js → tools-6MQ2BNOX.js} +2 -2
  55. package/dist/chunks/{ui-commands-2JTVMUZX.js → ui-commands-URKLFPLF.js} +11 -11
  56. package/dist/chunks/{versions-VQ6YCHYN.js → versions-XC6MSJSU.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-4P2YOYQW.js";
21
+ } from "./chunk-PQVYLLMD.js";
22
22
  import "./chunk-QXFI2QZ6.js";
23
23
  import "./chunk-E3KQHYTX.js";
24
24
  import "./chunk-UZHRIQKA.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-HADO2ZKO.js";
11
- import "./chunk-FZX2SKQA.js";
10
+ } from "./chunk-SSWJWHLC.js";
11
+ import "./chunk-U23DERY3.js";
12
12
  import "./chunk-N6Z5BDDH.js";
13
13
  import "./chunk-DTOW52PO.js";
14
14
  import "./chunk-4272FD62.js";
@@ -19,7 +19,7 @@ import "./chunk-OLD6HJHX.js";
19
19
  import "./chunk-HIYPB6SZ.js";
20
20
  import "./chunk-HNWYL55X.js";
21
21
  import "./chunk-5B4N7D2D.js";
22
- import "./chunk-4P2YOYQW.js";
22
+ import "./chunk-PQVYLLMD.js";
23
23
  import "./chunk-QXFI2QZ6.js";
24
24
  import "./chunk-PG4ITWUM.js";
25
25
  import "./chunk-JBFKDN6P.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-IVKG67P2.js";
9
+ } from "./chunk-IJ5I4LNT.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-FZX2SKQA.js";
12
+ } from "./chunk-U23DERY3.js";
13
13
  import "./chunk-N6Z5BDDH.js";
14
14
  import "./chunk-DTOW52PO.js";
15
15
  import "./chunk-4272FD62.js";
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  useThemeStore
9
- } from "./chunk-CINNXWUI.js";
9
+ } from "./chunk-A6A3SR4G.js";
10
10
  import {
11
11
  exportNodeToSVG
12
12
  } from "./chunk-VJQG4PM7.js";
@@ -15,14 +15,14 @@ import {
15
15
  } from "./chunk-IP7VWXK4.js";
16
16
  import {
17
17
  syncStatus
18
- } from "./chunk-JVZ557U4.js";
18
+ } from "./chunk-BEIF4ZGJ.js";
19
19
  import {
20
20
  downloadBlob
21
21
  } from "./chunk-LALU2FSN.js";
22
22
  import {
23
23
  setPluginTabs,
24
24
  useEditorStore
25
- } from "./chunk-7I3XONKI.js";
25
+ } from "./chunk-K5AO22SK.js";
26
26
  import {
27
27
  TOKEN_IDS,
28
28
  tokenVar
@@ -54,7 +54,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
54
54
  // lib/plugins/api.ts
55
55
  init_define_POPCRAFT_COMPONENT_IDS();
56
56
  async function handlePluginCall(env, method, params = {}) {
57
- const { dispatchPluginCall } = await import("./plugin-GRDTMOZ4.js");
57
+ const { dispatchPluginCall } = await import("./plugin-BYGSXHLK.js");
58
58
  return dispatchPluginCall(env, method, params);
59
59
  }
60
60
 
@@ -378,7 +378,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
378
378
  if (!opened) throw new Error("The browser blocked the new tab");
379
379
  },
380
380
  createDocument: async (opts2) => {
381
- const { createFreshFileOrExplain } = await import("./new-file-E6CBEXWI.js");
381
+ const { createFreshFileOrExplain } = await import("./new-file-ONPCHRIP.js");
382
382
  const created = await createFreshFileOrExplain({}, { name: opts2?.name });
383
383
  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})`);
384
384
  await useEditorStore.getState().openDocument(created.docId);
@@ -538,7 +538,7 @@ if (typeof window !== "undefined") {
538
538
  const name = d.name || "Imported";
539
539
  void (async () => {
540
540
  try {
541
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-WDC2S5SB.js");
541
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-FHZMVF4S.js");
542
542
  if (d.ir && typeof d.ir === "object") {
543
543
  await applyPluginLayoutIr(d.ir, { mode, name });
544
544
  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-PJW3MZGO.js";
9
+ } from "./chunk-554XE462.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-FZX2SKQA.js";
16
+ } from "./chunk-U23DERY3.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-5B4N7D2D.js";
@@ -55,7 +55,7 @@ var collabSetSpotlight = defineCommand({
55
55
  }
56
56
  },
57
57
  run: async ({ on }, ctx) => {
58
- const { setSpotlight } = await import("./presence-RVQN2FJL.js");
58
+ const { setSpotlight } = await import("./presence-GVKO2DPN.js");
59
59
  setSpotlight(on);
60
60
  ctx.notice(on ? "Spotlight on \u2014 everyone is following this view." : "Spotlight off.");
61
61
  return { summary: on ? "Spotlight on" : "Spotlight off", data: { spotlight: on } };
@@ -82,7 +82,7 @@ var collabRevealPrivate = defineCommand({
82
82
  }
83
83
  },
84
84
  run: async (_p, ctx) => {
85
- const { useEditorStore } = await import("./editor-store-KOCL32QR.js");
85
+ const { useEditorStore } = await import("./editor-store-USKCC4FS.js");
86
86
  const before = Object.values(useEditorStore.getState().document.nodes).filter((n) => n.privateTo).length;
87
87
  useEditorStore.getState().revealPrivate();
88
88
  ctx.notice(before ? `Revealed ${before} private item${before === 1 ? "" : "s"}.` : "Nothing was private.");
@@ -146,7 +146,7 @@ var documentDelete = defineCommand({
146
146
  }
147
147
  },
148
148
  run: async ({ id }, ctx) => {
149
- const { useEditorStore } = await import("./editor-store-KOCL32QR.js");
149
+ const { useEditorStore } = await import("./editor-store-USKCC4FS.js");
150
150
  const wasOpen = useEditorStore.getState().document.id === id;
151
151
  await useEditorStore.getState().deleteDocument(id);
152
152
  ctx.notice("Deleted the document.");
@@ -190,7 +190,7 @@ var libraryPublish = defineCommand({
190
190
  }
191
191
  },
192
192
  run: async (p, ctx) => {
193
- const { publishLibrary } = await import("./libraries-N4J3VJRN.js");
193
+ const { publishLibrary } = await import("./libraries-F2AJLFLK.js");
194
194
  const doc = ctx.doc();
195
195
  const pick = {
196
196
  componentIds: p.componentIds ?? Object.keys(doc.components ?? {}),
@@ -222,7 +222,7 @@ var libraryUnpublish = defineCommand({
222
222
  },
223
223
  run: async ({ libraryId }, ctx) => {
224
224
  if (!libraryId.trim()) throw new CommandError("Which library? Pass its `libraryId`.", "invalid_params");
225
- const { unpublishLibrary } = await import("./libraries-N4J3VJRN.js");
225
+ const { unpublishLibrary } = await import("./libraries-F2AJLFLK.js");
226
226
  await unpublishLibrary(libraryId);
227
227
  ctx.notice(`Unpublished library ${libraryId}.`);
228
228
  return { summary: `Unpublished library ${libraryId}`, data: { libraryId, unpublished: true } };
@@ -234,8 +234,8 @@ var libraryCommands = [libraryPublish, libraryUnpublish];
234
234
  init_define_POPCRAFT_COMPONENT_IDS();
235
235
  async function findVersion(id) {
236
236
  const [{ useEditorStore }, { versionLabel }] = await Promise.all([
237
- import("./editor-store-KOCL32QR.js"),
238
- import("./versions-VQ6YCHYN.js")
237
+ import("./editor-store-USKCC4FS.js"),
238
+ import("./versions-XC6MSJSU.js")
239
239
  ]);
240
240
  const meta = useEditorStore.getState().versions.find((v) => v.id === id);
241
241
  if (!meta) {
@@ -268,7 +268,7 @@ var versionRestore = defineCommand({
268
268
  },
269
269
  run: async ({ id }) => {
270
270
  const found = await findVersion(id);
271
- const { restoreVersion } = await import("./versions-VQ6YCHYN.js");
271
+ const { restoreVersion } = await import("./versions-XC6MSJSU.js");
272
272
  await restoreVersion(found.meta);
273
273
  return { summary: `Restored \u201C${found.label}\u201D`, data: { id, label: found.label, restored: true } };
274
274
  }
@@ -293,7 +293,7 @@ var versionDelete = defineCommand({
293
293
  },
294
294
  run: async ({ id }, ctx) => {
295
295
  const found = await findVersion(id);
296
- const { deleteVersion } = await import("./versions-VQ6YCHYN.js");
296
+ const { deleteVersion } = await import("./versions-XC6MSJSU.js");
297
297
  await deleteVersion(found.meta);
298
298
  ctx.notice(`Deleted the version \u201C${found.label}\u201D.`);
299
299
  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-4P2YOYQW.js";
16
+ } from "./chunk-PQVYLLMD.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-E3KQHYTX.js";
@@ -9,7 +9,7 @@ import {
9
9
  hostEnv,
10
10
  plain,
11
11
  registerBuiltinCommands
12
- } from "./chunk-FZX2SKQA.js";
12
+ } from "./chunk-U23DERY3.js";
13
13
  import {
14
14
  storeOpsSeam
15
15
  } from "./chunk-IV6QVMT2.js";
@@ -572,7 +572,7 @@ var commands = [
572
572
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
573
573
  import("./storefront-prepare-J6IZ46PG.js"),
574
574
  import("./storefront-EEGZNEWI.js"),
575
- import("./project-RN5YG3LT.js"),
575
+ import("./project-ISGRUUNZ.js"),
576
576
  import("./zip-export-T5X4WHLL.js"),
577
577
  import("./tree-HPDA5RUX.js")
578
578
  ]);
@@ -769,7 +769,7 @@ var pluginRun = defineCommand({
769
769
  }
770
770
  },
771
771
  run: async (p, ctx) => {
772
- const { runPlugin } = await import("./host-46OGNY7R.js");
772
+ const { runPlugin } = await import("./host-7OG36OKX.js");
773
773
  await runPlugin(p.pluginId, p.commandId);
774
774
  ctx.notice(`Started ${p.pluginId}.`);
775
775
  return {
@@ -9,7 +9,7 @@ import {
9
9
  DEFAULT_THEME_ID,
10
10
  INITIAL_THEME_ID,
11
11
  PICKABLE_BUILTIN_IDS
12
- } from "./chunk-TSQ66WGP.js";
12
+ } from "./chunk-MWARUAKF.js";
13
13
  import {
14
14
  isDesktop,
15
15
  storePlatform
@@ -14,14 +14,14 @@ import {
14
14
  newFileRefusal,
15
15
  reportNewFileBlocked,
16
16
  setCloudLink
17
- } from "./chunk-MAHI66ZI.js";
17
+ } from "./chunk-WJHUHQ2T.js";
18
18
  import {
19
19
  parseDeepLink,
20
20
  withDeepLink
21
21
  } from "./chunk-33NV2XOR.js";
22
22
  import {
23
23
  activeTeamWorkspaceId
24
- } from "./chunk-VO4RREDX.js";
24
+ } from "./chunk-DAQIORGG.js";
25
25
  import {
26
26
  ApiError,
27
27
  api,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-PKUFDCMC.js";
30
30
  import {
31
31
  attachPresence
32
- } from "./chunk-FYC5JMBX.js";
32
+ } from "./chunk-FKEZOH37.js";
33
33
  import {
34
34
  isPersistableDocument,
35
35
  isUnsavedPlaceholder,
@@ -40,7 +40,7 @@ import {
40
40
  setCollabHistory,
41
41
  storedDocument,
42
42
  useEditorStore
43
- } from "./chunk-7I3XONKI.js";
43
+ } from "./chunk-K5AO22SK.js";
44
44
  import {
45
45
  accessToken,
46
46
  cloudUser,
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-QS6227N4.js";
14
14
  import {
15
15
  notice
16
- } from "./chunk-K5UPFFH6.js";
16
+ } from "./chunk-I5WLNE7W.js";
17
17
  import {
18
18
  effectiveChatModel,
19
19
  setModelPref,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-R5RDT6GR.js";
22
22
  import {
23
23
  useEditorStore
24
- } from "./chunk-7I3XONKI.js";
24
+ } from "./chunk-K5AO22SK.js";
25
25
  import {
26
26
  create
27
27
  } from "./chunk-5ORZ3TC6.js";
@@ -1477,7 +1477,7 @@ async function sendMessage(text) {
1477
1477
  if (!useAgentStore.getState().activeThreadId) newThread();
1478
1478
  const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
1479
1479
  useAgentStore.setState({ draft: "", draftMentions: [], error: null });
1480
- const { runTurn } = await import("./runner-22TLZUFL.js");
1480
+ const { runTurn } = await import("./runner-RCGWPXVE.js");
1481
1481
  await runTurn(body, mentions);
1482
1482
  }
1483
1483
  function stop() {
@@ -1580,7 +1580,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
1580
1580
  function subscribeChildTools() {
1581
1581
  let dispose;
1582
1582
  let cancelled = false;
1583
- void import("./runner-22TLZUFL.js").then(({ onChildTool }) => {
1583
+ void import("./runner-RCGWPXVE.js").then(({ onChildTool }) => {
1584
1584
  const off = onChildTool((report) => {
1585
1585
  if (report?.status !== "running" || report.jobId) return;
1586
1586
  recordChildTool(report.toolCallId ?? "", report.name);
@@ -140,7 +140,7 @@ function startHyperyTeams() {
140
140
  maybePromptForTeam();
141
141
  void followFileTeam(linkedKey);
142
142
  });
143
- void import("./sync-OLNH6OAZ.js").then(({ onSyncStatus, syncStatus }) => {
143
+ void import("./sync-W7K4ZR3P.js").then(({ onSyncStatus, syncStatus }) => {
144
144
  linkedKey = syncStatus().link?.key ?? null;
145
145
  void followFileTeam(linkedKey);
146
146
  onSyncStatus((_s, link) => {
@@ -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-7I3XONKI.js";
9
+ } from "./chunk-K5AO22SK.js";
10
10
  import {
11
11
  announce
12
12
  } from "./chunk-NUOH65MA.js";
@@ -20,17 +20,17 @@ import {
20
20
  } from "./chunk-EBRE6YBZ.js";
21
21
  import {
22
22
  notice
23
- } from "./chunk-K5UPFFH6.js";
23
+ } from "./chunk-I5WLNE7W.js";
24
24
  import {
25
25
  agentContext
26
- } from "./chunk-4P2YOYQW.js";
26
+ } from "./chunk-PQVYLLMD.js";
27
27
  import {
28
28
  collabSession,
29
29
  syncStatus
30
- } from "./chunk-JVZ557U4.js";
30
+ } from "./chunk-BEIF4ZGJ.js";
31
31
  import {
32
32
  loadEntitlements
33
- } from "./chunk-MAHI66ZI.js";
33
+ } from "./chunk-WJHUHQ2T.js";
34
34
  import {
35
35
  cloudApi
36
36
  } from "./chunk-PKUFDCMC.js";
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-JU7UCSNG.js";
40
40
  import {
41
41
  useEditorStore
42
- } from "./chunk-7I3XONKI.js";
42
+ } from "./chunk-K5AO22SK.js";
43
43
  import {
44
44
  plansEnabled
45
45
  } from "./chunk-IV7SL2NN.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-R5RDT6GR.js";
14
14
  import {
15
15
  activeHyperyTeamId
16
- } from "./chunk-VO4RREDX.js";
16
+ } from "./chunk-DAQIORGG.js";
17
17
  import {
18
18
  inAppPurchases
19
19
  } from "./chunk-PKUFDCMC.js";
@@ -103,6 +103,8 @@ var AiClientError = class extends Error {
103
103
  this.code = code;
104
104
  this.status = status;
105
105
  }
106
+ code;
107
+ status;
106
108
  };
107
109
  var needsReauth = (e) => e instanceof AiClientError && (e.code === "ai_reauth" || e.code === "ai_scope" || e.code === "unauthenticated");
108
110
  function ensureAvailable() {
@@ -28,10 +28,10 @@ import {
28
28
  requestImageAction,
29
29
  sizeForAspect,
30
30
  vectorSupport
31
- } from "./chunk-K5WAAWOE.js";
31
+ } from "./chunk-HJMF7XVI.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-7I3XONKI.js";
34
+ } from "./chunk-K5AO22SK.js";
35
35
  import {
36
36
  getActiveRenderer
37
37
  } from "./chunk-NCN76WJ5.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-KOCL32QR.js"),
94
+ import("./editor-store-USKCC4FS.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-USRA6PRL.js")
96
+ import("./media-tool-434MJIMH.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);
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-FZX2SKQA.js";
11
+ } from "./chunk-U23DERY3.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-5B4N7D2D.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-KOCL32QR.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-USKCC4FS.js").then((m) => m.useEditorStore.getState());
35
35
  var MODE_IDS = MODE_LIST.map((m) => m.id);
36
36
  var MODE_ALIASES = { JAM: "POPCORN" };
37
37
  var modeSet = defineCommand({
@@ -160,7 +160,7 @@ var dialogOpen = defineCommand({
160
160
  (await import("./plugin-store-2KQFYAWB.js")).usePluginStore.getState().setManagerOpen(true);
161
161
  break;
162
162
  case "theme-editor":
163
- (await import("./theme-store-L4INTQDS.js")).useThemeStore.getState().setEditorOpen(true);
163
+ (await import("./theme-store-OWW2NGKE.js")).useThemeStore.getState().setEditorOpen(true);
164
164
  break;
165
165
  case "plan":
166
166
  (await import("./plan-limit-TYJ6KRYB.js")).openPlanDialog();
@@ -209,7 +209,7 @@ var aiOpen = defineCommand({
209
209
  ] } },
210
210
  run: async ({ dialog, skillId }) => {
211
211
  if (dialog) (await import("./client-store-JBOBEPQS.js")).openAiDialog(dialog);
212
- else (await import("./store-IZWGL5NP.js")).openAgentPanel({ skillId: skillId ?? null });
212
+ else (await import("./store-ZSTV7AQ2.js")).openAgentPanel({ skillId: skillId ?? null });
213
213
  return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
214
214
  }
215
215
  });
@@ -288,11 +288,11 @@ var toolPlace = defineCommand({
288
288
  run: async ({ what }) => {
289
289
  if (what === "media") {
290
290
  const s = await store();
291
- const { placeMediaFromPicker } = await import("./media-tool-USRA6PRL.js");
291
+ const { placeMediaFromPicker } = await import("./media-tool-434MJIMH.js");
292
292
  await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
293
293
  return { summary: "Placing media" };
294
294
  }
295
- const { beginEyedrop } = await import("./eyedropper-GFUPXWCN.js");
295
+ const { beginEyedrop } = await import("./eyedropper-RHIUGAX5.js");
296
296
  void beginEyedrop();
297
297
  return { summary: "Pick a color" };
298
298
  }
@@ -310,7 +310,7 @@ var nodeRasterize = defineCommand({
310
310
  keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
311
311
  } },
312
312
  run: async () => {
313
- const { flattenSelectionToPaintLayer } = await import("./raster-actions-Z5RDSHUS.js");
313
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-QU23KVDW.js");
314
314
  await flattenSelectionToPaintLayer();
315
315
  return { summary: "Rasterized" };
316
316
  }
@@ -402,7 +402,7 @@ function themeCommand(themes) {
402
402
  params: external_exports.object({ id: external_exports.string() }),
403
403
  expose: { ui: { label: "Theme", keywords: ["theme", "dark", "light", "comic", "appearance", "colors"], variants: themes.map((t) => ({ id: t.id, label: `Theme: ${t.name}`, params: { id: t.id } })) } },
404
404
  run: async ({ id }) => {
405
- (await import("./theme-store-L4INTQDS.js")).useThemeStore.getState().setActiveTheme(id);
405
+ (await import("./theme-store-OWW2NGKE.js")).useThemeStore.getState().setActiveTheme(id);
406
406
  return { summary: `Theme: ${themes.find((t) => t.id === id)?.name ?? id}` };
407
407
  }
408
408
  });
@@ -421,7 +421,7 @@ function pluginCommand(plugins) {
421
421
  params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
422
422
  expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
423
423
  run: async ({ pluginId, commandId }) => {
424
- await (await import("./host-46OGNY7R.js")).runPlugin(pluginId, commandId);
424
+ await (await import("./host-7OG36OKX.js")).runPlugin(pluginId, commandId);
425
425
  return { summary: "Plugin started" };
426
426
  }
427
427
  });
@@ -453,7 +453,7 @@ function registerAppCommands() {
453
453
  registerCommand(...appCommands);
454
454
  if (started || typeof window === "undefined") return;
455
455
  started = true;
456
- void import("./theme-store-L4INTQDS.js").then(({ useThemeStore, pickableThemes }) => {
456
+ void import("./theme-store-OWW2NGKE.js").then(({ useThemeStore, pickableThemes }) => {
457
457
  const sync = () => registerCommand(themeCommand(pickableThemes(useThemeStore.getState())));
458
458
  sync();
459
459
  useThemeStore.subscribe(sync);
@@ -4576,7 +4576,7 @@ function createPopcornSlice(set2, get2) {
4576
4576
  privateMode: false,
4577
4577
  setPrivateMode: (on) => {
4578
4578
  set2({ privateMode: on });
4579
- void import("./presence-RVQN2FJL.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4579
+ void import("./presence-GVKO2DPN.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4580
4580
  });
4581
4581
  },
4582
4582
  /** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
@@ -6629,7 +6629,7 @@ var useEditorStore = create()(
6629
6629
  // A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
6630
6630
  // Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
6631
6631
  duplicateDocument: async (id) => {
6632
- const { duplicateDocumentToCloud } = await import("./sync-OLNH6OAZ.js");
6632
+ const { duplicateDocumentToCloud } = await import("./sync-W7K4ZR3P.js");
6633
6633
  return duplicateDocumentToCloud(id);
6634
6634
  },
6635
6635
  deleteDocument: async (id) => {
@@ -10081,9 +10081,9 @@ if (typeof window !== "undefined") {
10081
10081
  if (typeof window !== "undefined" && navigator.webdriver) {
10082
10082
  window.__vpDesign = async (script, o = {}) => {
10083
10083
  const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
10084
- import("./tools-2JCAIXU2.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-2HVMPYS2.js")).registerBuiltinTools })),
10085
- import("./editor-seams-QIPQ4A56.js"),
10086
- import("./live-G3YDQFUA.js")
10084
+ import("./tools-6MQ2BNOX.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-WF33DS7A.js")).registerBuiltinTools })),
10085
+ import("./editor-seams-2RGIGO7H.js"),
10086
+ import("./live-UPG7CITR.js")
10087
10087
  ]);
10088
10088
  registerBuiltinTools();
10089
10089
  const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
@@ -311,7 +311,9 @@ button:not(:disabled), a[href], [role="button"], [role="menuitem"], [role="tab"]
311
311
  [data-pc="home-sidebar"] { border: var(--pc-border-width) solid ${INK2} !important; box-shadow: 4px 4px 0 ${INK2}; background: var(--pc-raised) !important; }
312
312
  [data-pc="home-title"] { font-family: var(--pc-font-heading); font-weight: 400 !important; letter-spacing: var(--pc-letter-spacing-heading); text-transform: var(--pc-text-transform-heading); }
313
313
  [data-pc="home-welcome"] [data-pc="home-title"] { color: var(--pc-raised) !important; -webkit-text-stroke: 1.5px ${INK2}; text-shadow: 4px 4px 0 ${INK2}; }
314
- [data-pc="home-kicker"] { display: inline-block; padding: 1px 8px; background: var(--pc-accent); color: var(--pc-fg-on-accent) !important; border: 2px solid ${INK2}; box-shadow: 2px 2px 0 ${INK2}; rotate: -2deg; }
314
+ /* The highlighted word sits on the accent: it takes the accent's own ink, not the headline's outlined fill. */
315
+ [data-pc="home-welcome"] [data-pc="home-pop"] { color: var(--pc-fg-on-accent) !important; -webkit-text-stroke: 0; text-shadow: 3px 3px 0 ${INK2}; border: 2px solid ${INK2}; box-shadow: 4px 4px 0 ${INK2}; }
316
+ [data-pc="home-kicker"] { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 1px 8px; background: var(--pc-accent); color: var(--pc-fg-on-accent) !important; border: 2px solid ${INK2}; box-shadow: 2px 2px 0 ${INK2}; rotate: -2deg; }
315
317
  [data-pc="home-card"] > button, [data-pc="home-card-face"], [data-pc="home-mock"] {
316
318
  border: var(--pc-border-width) solid ${INK2} !important; border-radius: var(--pc-radius-md) !important;
317
319
  background: var(--pc-raised) !important; box-shadow: 6px 6px 0 ${INK2} !important;
@@ -59,19 +59,19 @@ async function renderDocument(doc, nodeIds, options) {
59
59
  function generateCapability(ctx) {
60
60
  return async (prompt, options = {}) => {
61
61
  if (options.format === "audio") {
62
- const { requestAudio } = await import("./client-S2HZIKRW.js");
62
+ const { requestAudio } = await import("./client-ET5LPHRM.js");
63
63
  const { signal: signal2, format: _f, ...rest2 } = options;
64
64
  void _f;
65
65
  return requestAudio({ prompt, ...rest2 }, signal2 ?? ctx.signal);
66
66
  }
67
67
  if (options.format === "video") {
68
- const { generateVideoFile } = await import("./generate-media-FUFNU2MK.js");
68
+ const { generateVideoFile } = await import("./generate-media-YFKM6ATW.js");
69
69
  const { format: _f, signal: signal2, ...rest2 } = options;
70
70
  void _f;
71
71
  return generateVideoFile({ ...rest2, prompt, doc: ctx.doc() }, { signal: signal2 ?? ctx.signal });
72
72
  }
73
73
  const [{ requestImage }, { effectiveImageModel, useAiStore }] = await Promise.all([
74
- import("./client-S2HZIKRW.js"),
74
+ import("./client-ET5LPHRM.js"),
75
75
  import("./client-store-JBOBEPQS.js")
76
76
  ]);
77
77
  const modelId = effectiveImageModel(useAiStore.getState());
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinCommands,
9
9
  registerBuiltinCommands
10
- } from "./chunk-FZX2SKQA.js";
10
+ } from "./chunk-U23DERY3.js";
11
11
  import {
12
12
  toolView
13
- } from "./chunk-4P2YOYQW.js";
13
+ } from "./chunk-PQVYLLMD.js";
14
14
  import {
15
15
  init_define_POPCRAFT_COMPONENT_IDS
16
16
  } from "./chunk-APZ7CG5P.js";