@popcraft/kit 0.59.0 → 0.59.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 (58) hide show
  1. package/dist/chunks/{agent-S2XBIQEK.js → agent-KYZGLHC3.js} +1 -1
  2. package/dist/chunks/{builtin-YMJZTZMA.js → builtin-QRCI2GAM.js} +3 -3
  3. package/dist/chunks/{buy-credits-AK2XYG6U.js → buy-credits-VNYGZKUJ.js} +2 -2
  4. package/dist/chunks/{check-template-7SY3WP7Y.js → check-template-ON44LZ75.js} +2 -2
  5. package/dist/chunks/{chunk-GRAWCIB4.js → chunk-27ENK46P.js} +2 -2
  6. package/dist/chunks/{chunk-NEZIWVGN.js → chunk-3FJQSLRX.js} +3 -3
  7. package/dist/chunks/{chunk-PERS6A4I.js → chunk-4B3FQHRB.js} +2 -2
  8. package/dist/chunks/{chunk-GG3BYS2R.js → chunk-BFJZWSK5.js} +5 -5
  9. package/dist/chunks/{chunk-QPHW6JE2.js → chunk-BXIWPHWT.js} +1 -1
  10. package/dist/chunks/{chunk-QL5BYW63.js → chunk-EWEXK5JV.js} +1 -1
  11. package/dist/chunks/{chunk-L4ZLPYBN.js → chunk-GXPSELWI.js} +2 -2
  12. package/dist/chunks/{chunk-YTSYQYRT.js → chunk-HVOB5FKO.js} +2 -2
  13. package/dist/chunks/{chunk-PSAU4QN4.js → chunk-IYPHO6SR.js} +1 -1
  14. package/dist/chunks/{chunk-5NTVUBIU.js → chunk-JFDHAOCN.js} +9 -9
  15. package/dist/chunks/{chunk-7OVPRHIN.js → chunk-K6HMVKXK.js} +6 -6
  16. package/dist/chunks/{chunk-2YHYGCTT.js → chunk-O7WXCVLI.js} +1 -1
  17. package/dist/chunks/{chunk-6ZFNAY5O.js → chunk-PUUCNMGO.js} +42 -42
  18. package/dist/chunks/{chunk-662GNCQQ.js → chunk-QYLZWJ5C.js} +15 -12
  19. package/dist/chunks/{chunk-J4KNHRIR.js → chunk-RRTIZGVB.js} +4 -4
  20. package/dist/chunks/{chunk-IPGN7XPW.js → chunk-VAHA4VTH.js} +3 -3
  21. package/dist/chunks/{chunk-7EBRN34K.js → chunk-VCQS6AA2.js} +1 -1
  22. package/dist/chunks/{chunk-CB73AZHN.js → chunk-WPM37ITD.js} +4 -4
  23. package/dist/chunks/{chunk-OSY3TQB4.js → chunk-ZVIPNAFE.js} +11 -11
  24. package/dist/chunks/{client-FO26KEPK.js → client-DAGWMPIX.js} +3 -3
  25. package/dist/chunks/{client-3CGSYZJE.js → client-JR4GEHMX.js} +1 -1
  26. package/dist/chunks/{client-ALL6CZAL.js → client-SONJ2OOV.js} +2 -2
  27. package/dist/chunks/{client-actions-ZAUXFL2O.js → client-actions-WA2SYCUV.js} +5 -5
  28. package/dist/chunks/{dangerous-JO67OXBS.js → dangerous-JU5OD6RP.js} +3 -3
  29. package/dist/chunks/{delete-current-file-GT6HXPD3.js → delete-current-file-6EY5J4QU.js} +5 -5
  30. package/dist/chunks/{editor-seams-YN6UTX6E.js → editor-seams-R2EUF3LV.js} +12 -12
  31. package/dist/chunks/{editor-store-YFW4DJ5W.js → editor-store-37LFWBIH.js} +1 -1
  32. package/dist/chunks/{export-watermark-23GQYHS7.js → export-watermark-G3MUZFQ4.js} +5 -5
  33. package/dist/chunks/{eyedropper-5C5PC47G.js → eyedropper-T7KRXRJK.js} +1 -1
  34. package/dist/chunks/{generate-media-5PJDPAWR.js → generate-media-Q44ME2FF.js} +3 -3
  35. package/dist/chunks/{host-AQJ33HVQ.js → host-VQL6FNT4.js} +6 -6
  36. package/dist/chunks/{integrations-I5KCGRBE.js → integrations-MKCOEX5H.js} +1 -1
  37. package/dist/chunks/{libraries-IXCZAWIM.js → libraries-6FGDGUI2.js} +5 -5
  38. package/dist/chunks/{live-PVTZNZ5E.js → live-LD3J434W.js} +1 -1
  39. package/dist/chunks/{media-tool-GN3HGXTE.js → media-tool-JC5VV3OQ.js} +1 -1
  40. package/dist/chunks/{new-file-N5JRPB7A.js → new-file-F4LWOYFE.js} +3 -3
  41. package/dist/chunks/{plugin-DAORGN7V.js → plugin-6RG6NQZQ.js} +2 -2
  42. package/dist/chunks/{plugin-import-S2EP2X6N.js → plugin-import-74DEAU46.js} +16 -16
  43. package/dist/chunks/{presence-KXQY3TQT.js → presence-E2CFS3CQ.js} +2 -2
  44. package/dist/chunks/{project-F7WQIMI5.js → project-7EMDZDML.js} +1 -1
  45. package/dist/chunks/{publish-site-FSCSPPME.js → publish-site-BZJLBWLB.js} +6 -6
  46. package/dist/chunks/{publish-store-H4RKL5YB.js → publish-store-45FDOBFR.js} +4 -4
  47. package/dist/chunks/{raster-actions-2LIUE6YM.js → raster-actions-JI6NIOBE.js} +1 -1
  48. package/dist/chunks/{runner-ZACBUVCU.js → runner-RY77A6PE.js} +18 -18
  49. package/dist/chunks/{store-XL6IPKHJ.js → store-VDTSNYFU.js} +6 -6
  50. package/dist/chunks/{sync-HIAMQQYN.js → sync-XZEVEP2X.js} +5 -5
  51. package/dist/chunks/{tabs-PPSFWHAE.js → tabs-SCQLZNVY.js} +8 -8
  52. package/dist/chunks/{team-DECPX6VV.js → team-7MHFJLEK.js} +1 -1
  53. package/dist/chunks/{team-client-Y5JB3YGB.js → team-client-YYPJDASN.js} +1 -1
  54. package/dist/chunks/{tools-TO3SOVT2.js → tools-GKNYTVTB.js} +2 -2
  55. package/dist/chunks/{ui-commands-TEOBCXX5.js → ui-commands-QT4ZF2RF.js} +12 -12
  56. package/dist/chunks/{versions-RHYSSG3I.js → versions-J4KHYAQG.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-NEZIWVGN.js";
21
+ } from "./chunk-3FJQSLRX.js";
22
22
  import "./chunk-RRT5HQJP.js";
23
23
  import "./chunk-H5OKJTC3.js";
24
24
  import "./chunk-CERJ4PMP.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-PERS6A4I.js";
11
- import "./chunk-6ZFNAY5O.js";
10
+ } from "./chunk-4B3FQHRB.js";
11
+ import "./chunk-PUUCNMGO.js";
12
12
  import "./chunk-RBNDP3QS.js";
13
13
  import "./chunk-UDJDLJXO.js";
14
14
  import "./chunk-NDUN6ION.js";
@@ -17,7 +17,7 @@ import "./chunk-WJY5YMZF.js";
17
17
  import "./chunk-UPQJSFMZ.js";
18
18
  import "./chunk-B46OGMLE.js";
19
19
  import "./chunk-3QZXQL3W.js";
20
- import "./chunk-NEZIWVGN.js";
20
+ import "./chunk-3FJQSLRX.js";
21
21
  import "./chunk-RRT5HQJP.js";
22
22
  import "./chunk-TLE2JL3N.js";
23
23
  import "./chunk-YKLYCEHF.js";
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  HYPERY_TEAM_HEADER,
9
9
  hyperyRequestHeaders
10
- } from "./chunk-PSAU4QN4.js";
10
+ } from "./chunk-IYPHO6SR.js";
11
11
  import "./chunk-5Z3PWMIP.js";
12
12
  import {
13
13
  useHyperyTeam
14
- } from "./chunk-QPHW6JE2.js";
14
+ } from "./chunk-BXIWPHWT.js";
15
15
  import {
16
16
  openLink
17
17
  } from "./chunk-P4EC4ZZR.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-5NTVUBIU.js";
9
+ } from "./chunk-JFDHAOCN.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-6ZFNAY5O.js";
12
+ } from "./chunk-PUUCNMGO.js";
13
13
  import "./chunk-RBNDP3QS.js";
14
14
  import "./chunk-UDJDLJXO.js";
15
15
  import "./chunk-NDUN6ION.js";
@@ -28,10 +28,10 @@ import {
28
28
  requestImageAction,
29
29
  sizeForAspect,
30
30
  vectorSupport
31
- } from "./chunk-7EBRN34K.js";
31
+ } from "./chunk-VCQS6AA2.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-662GNCQQ.js";
34
+ } from "./chunk-QYLZWJ5C.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-XK56NJG6.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-FO26KEPK.js");
60
+ const { requestAudio } = await import("./client-DAGWMPIX.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-5PJDPAWR.js");
66
+ const { generateVideoFile } = await import("./generate-media-Q44ME2FF.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-FO26KEPK.js"),
72
+ import("./client-DAGWMPIX.js"),
73
73
  import("./client-store-DU6THDGV.js")
74
74
  ]);
75
75
  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-6ZFNAY5O.js";
10
+ } from "./chunk-PUUCNMGO.js";
11
11
  import {
12
12
  toolView
13
- } from "./chunk-NEZIWVGN.js";
13
+ } from "./chunk-3FJQSLRX.js";
14
14
  import {
15
15
  init_define_POPCRAFT_COMPONENT_IDS
16
16
  } from "./chunk-34VP5O27.js";
@@ -21,11 +21,11 @@ import {
21
21
  } from "./chunk-XYGKEDBH.js";
22
22
  import {
23
23
  syncStatus
24
- } from "./chunk-J4KNHRIR.js";
24
+ } from "./chunk-RRTIZGVB.js";
25
25
  import {
26
26
  setPluginTabs,
27
27
  useEditorStore
28
- } from "./chunk-662GNCQQ.js";
28
+ } from "./chunk-QYLZWJ5C.js";
29
29
  import {
30
30
  openBeside
31
31
  } from "./chunk-P4EC4ZZR.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-DAORGN7V.js");
72
+ const { dispatchPluginCall } = await import("./plugin-6RG6NQZQ.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-N5JRPB7A.js");
589
+ const { createFreshFileOrExplain } = await import("./new-file-F4LWOYFE.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);
@@ -785,7 +785,7 @@ if (typeof window !== "undefined") {
785
785
  const name = d.name || "Imported";
786
786
  void (async () => {
787
787
  try {
788
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-S2EP2X6N.js");
788
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-74DEAU46.js");
789
789
  if (d.ir && typeof d.ir === "object") {
790
790
  await applyPluginLayoutIr(d.ir, { mode, name });
791
791
  return;
@@ -150,7 +150,7 @@ function startHyperyTeams() {
150
150
  maybePromptForTeam();
151
151
  void followFileTeam(linkedKey);
152
152
  });
153
- void import("./sync-HIAMQQYN.js").then(({ onSyncStatus, syncStatus }) => {
153
+ void import("./sync-XZEVEP2X.js").then(({ onSyncStatus, syncStatus }) => {
154
154
  linkedKey = syncStatus().link?.key ?? null;
155
155
  void followFileTeam(linkedKey);
156
156
  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-662GNCQQ.js";
9
+ } from "./chunk-QYLZWJ5C.js";
10
10
  import {
11
11
  announce
12
12
  } from "./chunk-WYWMUNIZ.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-YFW4DJ5W.js"),
94
+ import("./editor-store-37LFWBIH.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-GN3HGXTE.js")
96
+ import("./media-tool-JC5VV3OQ.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);
@@ -9,13 +9,13 @@ import {
9
9
  } from "./chunk-5Z3PWMIP.js";
10
10
  import {
11
11
  activeTeamWorkspaceId
12
- } from "./chunk-QPHW6JE2.js";
12
+ } from "./chunk-BXIWPHWT.js";
13
13
  import {
14
14
  prepareTemplate
15
15
  } from "./chunk-NUVFMZV7.js";
16
16
  import {
17
17
  markLibraryDocument
18
- } from "./chunk-662GNCQQ.js";
18
+ } from "./chunk-QYLZWJ5C.js";
19
19
  import {
20
20
  listDocMetas,
21
21
  saveDocSnapshot
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-QPHW6JE2.js";
14
+ } from "./chunk-BXIWPHWT.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-MUGOUK76.js";
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-6ZFNAY5O.js";
11
+ } from "./chunk-PUUCNMGO.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-3QZXQL3W.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-YFW4DJ5W.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-37LFWBIH.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({
@@ -167,7 +167,7 @@ var dialogOpen = defineCommand({
167
167
  (await import("./plan-limit-22B6F76F.js")).openPlanDialog();
168
168
  break;
169
169
  case "credits":
170
- await (await import("./buy-credits-AK2XYG6U.js")).buyAiCredits();
170
+ await (await import("./buy-credits-VNYGZKUJ.js")).buyAiCredits();
171
171
  break;
172
172
  case "tokens":
173
173
  emit("popcraft-open-tokens");
@@ -213,7 +213,7 @@ var aiOpen = defineCommand({
213
213
  ] } },
214
214
  run: async ({ dialog, skillId }) => {
215
215
  if (dialog) (await import("./client-store-DU6THDGV.js")).openAiDialog(dialog);
216
- else (await import("./store-XL6IPKHJ.js")).openAgentPanel({ skillId: skillId ?? null });
216
+ else (await import("./store-VDTSNYFU.js")).openAgentPanel({ skillId: skillId ?? null });
217
217
  return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
218
218
  }
219
219
  });
@@ -226,7 +226,7 @@ var agentContinue = defineCommand({
226
226
  params: external_exports.object({}),
227
227
  expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
228
228
  run: async () => {
229
- const resumed = await (await import("./runner-ZACBUVCU.js")).continueTurn();
229
+ const resumed = await (await import("./runner-RY77A6PE.js")).continueTurn();
230
230
  return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
231
231
  }
232
232
  });
@@ -305,11 +305,11 @@ var toolPlace = defineCommand({
305
305
  run: async ({ what }) => {
306
306
  if (what === "media") {
307
307
  const s = await store();
308
- const { placeMediaFromPicker } = await import("./media-tool-GN3HGXTE.js");
308
+ const { placeMediaFromPicker } = await import("./media-tool-JC5VV3OQ.js");
309
309
  await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
310
310
  return { summary: "Placing media" };
311
311
  }
312
- const { beginEyedrop } = await import("./eyedropper-5C5PC47G.js");
312
+ const { beginEyedrop } = await import("./eyedropper-T7KRXRJK.js");
313
313
  void beginEyedrop();
314
314
  return { summary: "Pick a color" };
315
315
  }
@@ -327,7 +327,7 @@ var nodeRasterize = defineCommand({
327
327
  keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
328
328
  } },
329
329
  run: async () => {
330
- const { flattenSelectionToPaintLayer } = await import("./raster-actions-2LIUE6YM.js");
330
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-JI6NIOBE.js");
331
331
  await flattenSelectionToPaintLayer();
332
332
  return { summary: "Rasterized" };
333
333
  }
@@ -438,7 +438,7 @@ function pluginCommand(plugins) {
438
438
  params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
439
439
  expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
440
440
  run: async ({ pluginId, commandId }) => {
441
- await (await import("./host-AQJ33HVQ.js")).runPlugin(pluginId, commandId);
441
+ await (await import("./host-VQL6FNT4.js")).runPlugin(pluginId, commandId);
442
442
  return { summary: "Plugin started" };
443
443
  }
444
444
  });
@@ -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-5NTVUBIU.js";
9
+ } from "./chunk-JFDHAOCN.js";
10
10
  import {
11
11
  storeOpsSeam
12
12
  } from "./chunk-CK4GNJX4.js";
@@ -23,17 +23,17 @@ import {
23
23
  sameResolution,
24
24
  surfaceSize,
25
25
  windowCssSize
26
- } from "./chunk-6ZFNAY5O.js";
26
+ } from "./chunk-PUUCNMGO.js";
27
27
  import {
28
28
  notice
29
- } from "./chunk-GRAWCIB4.js";
29
+ } from "./chunk-27ENK46P.js";
30
30
  import {
31
31
  agentContext
32
- } from "./chunk-NEZIWVGN.js";
32
+ } from "./chunk-3FJQSLRX.js";
33
33
  import {
34
34
  collabSession,
35
35
  syncStatus
36
- } from "./chunk-J4KNHRIR.js";
36
+ } from "./chunk-RRTIZGVB.js";
37
37
  import {
38
38
  loadEntitlements
39
39
  } from "./chunk-5Z3PWMIP.js";
@@ -44,7 +44,7 @@ import {
44
44
  import {
45
45
  persist,
46
46
  useEditorStore
47
- } from "./chunk-662GNCQQ.js";
47
+ } from "./chunk-QYLZWJ5C.js";
48
48
  import {
49
49
  cloudApi
50
50
  } from "./chunk-A7LGUF3X.js";
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-NEZIWVGN.js";
16
+ } from "./chunk-3FJQSLRX.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-H5OKJTC3.js";