@popcraft/kit 0.53.0 → 0.53.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-VDTFMQFH.js → agent-B4XH7FCC.js} +1 -1
  2. package/dist/chunks/{builtin-B425EDUG.js → builtin-3TWJNRDI.js} +3 -3
  3. package/dist/chunks/{buy-credits-YD6DBAQB.js → buy-credits-VZ2J2SR7.js} +2 -2
  4. package/dist/chunks/{check-template-QIUI3LQM.js → check-template-GMNQVCCI.js} +2 -2
  5. package/dist/chunks/{chunk-EISISJQ4.js → chunk-5ICU2TQ2.js} +5 -5
  6. package/dist/chunks/{chunk-EKKA4A5J.js → chunk-5JMMBP5Q.js} +5 -5
  7. package/dist/chunks/{chunk-SD7QCT7C.js → chunk-7CNZ5HLR.js} +3 -3
  8. package/dist/chunks/{chunk-MY5CBA5H.js → chunk-7XP5CWQO.js} +41 -41
  9. package/dist/chunks/{chunk-MGWBSGMA.js → chunk-AJPYEZRT.js} +2 -2
  10. package/dist/chunks/{chunk-V4SNTWZO.js → chunk-D7XGMFYM.js} +4 -4
  11. package/dist/chunks/{chunk-AN2LMY4M.js → chunk-DBGETMUH.js} +4 -4
  12. package/dist/chunks/{chunk-A3MCE2OL.js → chunk-DFY5UNVM.js} +1 -1
  13. package/dist/chunks/{chunk-5AMNMH7S.js → chunk-GNNRFMXK.js} +9 -9
  14. package/dist/chunks/{chunk-HGUHRTIM.js → chunk-KPKVF2TA.js} +2 -2
  15. package/dist/chunks/{chunk-7XLYPWQL.js → chunk-MYCQCAXZ.js} +4 -4
  16. package/dist/chunks/{chunk-B4DDU5KM.js → chunk-P5HF37GX.js} +2 -2
  17. package/dist/chunks/{chunk-VLEZSLRZ.js → chunk-TCPSVZN3.js} +2 -2
  18. package/dist/chunks/{chunk-WXMIWRZM.js → chunk-U3PY5BWW.js} +11 -11
  19. package/dist/chunks/{chunk-6Q7JYDNH.js → chunk-UNJ2Y726.js} +3 -3
  20. package/dist/chunks/{chunk-U5UFIM2E.js → chunk-UT6GKZJF.js} +1 -1
  21. package/dist/chunks/{chunk-PUFEIOUT.js → chunk-XJFTD3EZ.js} +1 -1
  22. package/dist/chunks/{chunk-LHKOU6BP.js → chunk-YHQGAEC5.js} +1 -1
  23. package/dist/chunks/{chunk-GPNEAC5E.js → chunk-Z557VFSN.js} +1 -1
  24. package/dist/chunks/{client-AMMTXTFS.js → client-77HZDECD.js} +3 -3
  25. package/dist/chunks/{client-O2YCQZT7.js → client-DNVGPZXT.js} +1 -1
  26. package/dist/chunks/{client-4LUUUMO2.js → client-SE7SVRWK.js} +2 -2
  27. package/dist/chunks/{client-actions-L7II3NNB.js → client-actions-UNYIWTLI.js} +5 -5
  28. package/dist/chunks/{dangerous-RSWVATGA.js → dangerous-WMMPM5TV.js} +3 -3
  29. package/dist/chunks/{delete-current-file-E46EEPRC.js → delete-current-file-WB6ZWMBO.js} +5 -5
  30. package/dist/chunks/{editor-seams-UO4QUUQH.js → editor-seams-AZ2NUX6J.js} +10 -10
  31. package/dist/chunks/{editor-store-V43NADG6.js → editor-store-TPVGGNLW.js} +1 -1
  32. package/dist/chunks/{export-watermark-XHQOOPR7.js → export-watermark-UGGZ5TX6.js} +5 -5
  33. package/dist/chunks/{eyedropper-4D6OK4VM.js → eyedropper-HPK6A4PE.js} +1 -1
  34. package/dist/chunks/{generate-media-XMD232CS.js → generate-media-Y6MB3ENV.js} +3 -3
  35. package/dist/chunks/{host-WX77JQ2K.js → host-FNER4M32.js} +6 -6
  36. package/dist/chunks/{integrations-LOGIGZY2.js → integrations-LPVAVUUV.js} +1 -1
  37. package/dist/chunks/{libraries-R63ARXMI.js → libraries-I6J7YJQE.js} +5 -5
  38. package/dist/chunks/{live-QLSNGZ3Y.js → live-ZRJ2GT3E.js} +1 -1
  39. package/dist/chunks/{media-tool-TXQINVAR.js → media-tool-LTK46STY.js} +1 -1
  40. package/dist/chunks/{new-file-UUBSWKHK.js → new-file-XH7E3IEZ.js} +3 -3
  41. package/dist/chunks/{plugin-CUBE33JW.js → plugin-LAZVW4F4.js} +2 -2
  42. package/dist/chunks/{plugin-import-C5S2SHFZ.js → plugin-import-P4PD76X3.js} +14 -14
  43. package/dist/chunks/{presence-UQHDKT4A.js → presence-WSPF6N32.js} +2 -2
  44. package/dist/chunks/{project-KEEZ7XYP.js → project-M3KF66GG.js} +1 -1
  45. package/dist/chunks/{publish-site-UL2ISNZU.js → publish-site-PUHKHZF4.js} +6 -6
  46. package/dist/chunks/{publish-store-2TTGS2LW.js → publish-store-PZMIV6LJ.js} +4 -4
  47. package/dist/chunks/{raster-actions-KYYBZLGY.js → raster-actions-NS2NSYLC.js} +1 -1
  48. package/dist/chunks/{runner-ULBSWTOK.js → runner-PGFSW23U.js} +17 -17
  49. package/dist/chunks/{store-OUZ5GTY5.js → store-BXDDRMK7.js} +6 -6
  50. package/dist/chunks/{sync-A56IG32K.js → sync-4AHF7NWR.js} +5 -5
  51. package/dist/chunks/{tabs-UWETDGQJ.js → tabs-KFQNMNUM.js} +8 -8
  52. package/dist/chunks/{team-5VEJ3OZ6.js → team-QUBELR4W.js} +1 -1
  53. package/dist/chunks/{team-client-SG3SVF4G.js → team-client-NCOTLKC5.js} +1 -1
  54. package/dist/chunks/{tools-2TCRJ6YI.js → tools-T5XCKKCW.js} +2 -2
  55. package/dist/chunks/{ui-commands-HVPH6ZXC.js → ui-commands-77JZN35K.js} +12 -12
  56. package/dist/chunks/{versions-BIJCROBJ.js → versions-5HYBXUPA.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-6Q7JYDNH.js";
21
+ } from "./chunk-UNJ2Y726.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-B4DDU5KM.js";
11
- import "./chunk-MY5CBA5H.js";
10
+ } from "./chunk-P5HF37GX.js";
11
+ import "./chunk-7XP5CWQO.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-6Q7JYDNH.js";
22
+ import "./chunk-UNJ2Y726.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-U5UFIM2E.js";
10
+ } from "./chunk-UT6GKZJF.js";
11
11
  import "./chunk-7SMURRFY.js";
12
12
  import {
13
13
  useHyperyTeam
14
- } from "./chunk-GPNEAC5E.js";
14
+ } from "./chunk-Z557VFSN.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-5AMNMH7S.js";
9
+ } from "./chunk-GNNRFMXK.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-MY5CBA5H.js";
12
+ } from "./chunk-7XP5CWQO.js";
13
13
  import "./chunk-ZLWN6LBH.js";
14
14
  import "./chunk-Q7EITIAT.js";
15
15
  import "./chunk-X36CCQ76.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-ZYK65XJJ.js";
16
16
  import {
17
17
  syncStatus
18
- } from "./chunk-AN2LMY4M.js";
18
+ } from "./chunk-DBGETMUH.js";
19
19
  import {
20
20
  exportNodeToSVG
21
21
  } from "./chunk-T4FFRJAH.js";
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  setPluginTabs,
30
30
  useEditorStore
31
- } from "./chunk-EKKA4A5J.js";
31
+ } from "./chunk-5JMMBP5Q.js";
32
32
  import {
33
33
  openBeside
34
34
  } from "./chunk-PMLSPVLR.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-CUBE33JW.js");
72
+ const { dispatchPluginCall } = await import("./plugin-LAZVW4F4.js");
73
73
  return dispatchPluginCall(env, method, params);
74
74
  }
75
75
 
@@ -579,7 +579,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
579
579
  if (!openBeside(url)) throw new Error("The browser blocked the new tab");
580
580
  },
581
581
  createDocument: async (opts2) => {
582
- const { createFreshFileOrExplain } = await import("./new-file-UUBSWKHK.js");
582
+ const { createFreshFileOrExplain } = await import("./new-file-XH7E3IEZ.js");
583
583
  const created = await createFreshFileOrExplain({}, { name: opts2?.name });
584
584
  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})`);
585
585
  await useEditorStore.getState().openDocument(created.docId);
@@ -769,7 +769,7 @@ if (typeof window !== "undefined") {
769
769
  const name = d.name || "Imported";
770
770
  void (async () => {
771
771
  try {
772
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-C5S2SHFZ.js");
772
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-P4PD76X3.js");
773
773
  if (d.ir && typeof d.ir === "object") {
774
774
  await applyPluginLayoutIr(d.ir, { mode, name });
775
775
  return;
@@ -4588,7 +4588,7 @@ function createPopcornSlice(set2, get2) {
4588
4588
  privateMode: false,
4589
4589
  setPrivateMode: (on) => {
4590
4590
  set2({ privateMode: on });
4591
- void import("./presence-UQHDKT4A.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4591
+ void import("./presence-WSPF6N32.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4592
4592
  });
4593
4593
  },
4594
4594
  /** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
@@ -6652,7 +6652,7 @@ var useEditorStore = create()(
6652
6652
  // A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
6653
6653
  // Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
6654
6654
  duplicateDocument: async (id) => {
6655
- const { duplicateDocumentToCloud } = await import("./sync-A56IG32K.js");
6655
+ const { duplicateDocumentToCloud } = await import("./sync-4AHF7NWR.js");
6656
6656
  return duplicateDocumentToCloud(id);
6657
6657
  },
6658
6658
  deleteDocument: async (id) => {
@@ -10115,9 +10115,9 @@ if (typeof window !== "undefined") {
10115
10115
  if (typeof window !== "undefined" && navigator.webdriver) {
10116
10116
  window.__vpDesign = async (script, o = {}) => {
10117
10117
  const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
10118
- import("./tools-2TCRJ6YI.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-B425EDUG.js")).registerBuiltinTools })),
10119
- import("./editor-seams-UO4QUUQH.js"),
10120
- import("./live-QLSNGZ3Y.js")
10118
+ import("./tools-T5XCKKCW.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-3TWJNRDI.js")).registerBuiltinTools })),
10119
+ import("./editor-seams-AZ2NUX6J.js"),
10120
+ import("./live-ZRJ2GT3E.js")
10121
10121
  ]);
10122
10122
  registerBuiltinTools();
10123
10123
  const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
@@ -9,7 +9,7 @@ import {
9
9
  hostEnv,
10
10
  plain,
11
11
  registerBuiltinCommands
12
- } from "./chunk-MY5CBA5H.js";
12
+ } from "./chunk-7XP5CWQO.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-EXR7OIWW.js"),
617
617
  import("./storefront-BPMM6QWK.js"),
618
- import("./project-KEEZ7XYP.js"),
618
+ import("./project-M3KF66GG.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-WX77JQ2K.js");
815
+ const { runPlugin } = await import("./host-FNER4M32.js");
816
816
  await runPlugin(p.pluginId, p.commandId);
817
817
  ctx.notice(`Started ${p.pluginId}.`);
818
818
  return {
@@ -862,7 +862,7 @@ init_scene_graph();
862
862
  var licence = external_exports.enum(["commercial", "any"]).optional().describe("commercial (default): only licences that allow commercial use and edits (CC0, public domain, CC BY, CC BY-SA). any: every Creative Commons licence, including NC and ND.");
863
863
  var brief2 = (p) => ({ id: p.id, title: p.title, creator: p.credit.creator, licence: licenceLabel(p.credit), width: p.width, height: p.height, source: p.credit.sourceUrl });
864
864
  async function placeImportedPicture(ctx, imported, at, what, extra = {}) {
865
- const client = await import("./client-O2YCQZT7.js");
865
+ const client = await import("./client-DNVGPZXT.js");
866
866
  if (at.fillLayerId) {
867
867
  const doc2 = ctx.doc();
868
868
  const target = nodeOrThrow(doc2, at.fillLayerId);
@@ -908,7 +908,7 @@ var photoSearch = defineCommand({
908
908
  }
909
909
  },
910
910
  run: async (args) => {
911
- const { searchStockPhotos } = await import("./client-O2YCQZT7.js");
911
+ const { searchStockPhotos } = await import("./client-DNVGPZXT.js");
912
912
  const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
913
913
  return {
914
914
  summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
@@ -942,7 +942,7 @@ var photoInsert = defineCommand({
942
942
  run: async (args, ctx) => {
943
943
  if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
944
944
  if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
945
- const client = await import("./client-O2YCQZT7.js");
945
+ const client = await import("./client-DNVGPZXT.js");
946
946
  let photo;
947
947
  if (args.id) photo = await client.stockPhotoInfo(args.id);
948
948
  else {
@@ -980,7 +980,7 @@ var mediaList = defineCommand({
980
980
  }
981
981
  },
982
982
  run: async (args) => {
983
- const { listLibraryMedia } = await import("./client-4LUUUMO2.js");
983
+ const { listLibraryMedia } = await import("./client-SE7SVRWK.js");
984
984
  const page = await listLibraryMedia(args);
985
985
  return { summary: `${page.items.length} media item${page.items.length === 1 ? "" : "s"}${page.nextCursor ? " (more)" : ""}`, data: { workspaceId: page.workspaceId, items: page.items.map(brief3), nextCursor: page.nextCursor } };
986
986
  }
@@ -1011,7 +1011,7 @@ var mediaInsert = defineCommand({
1011
1011
  run: async (args, ctx) => {
1012
1012
  const contentType = args.contentType ?? "image/*";
1013
1013
  if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
1014
- const { importLibraryPicture } = await import("./client-4LUUUMO2.js");
1014
+ const { importLibraryPicture } = await import("./client-SE7SVRWK.js");
1015
1015
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
1016
1016
  const imported = await importLibraryPicture(item);
1017
1017
  return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
@@ -1032,7 +1032,7 @@ var mediaDownload = defineCommand({
1032
1032
  // The Library's right-click menu: saves the item's file to the computer.
1033
1033
  expose: { ui: { label: "Download", palette: false } },
1034
1034
  run: async (args) => {
1035
- const { libraryBlob, libraryFileName } = await import("./client-4LUUUMO2.js");
1035
+ const { libraryBlob, libraryFileName } = await import("./client-SE7SVRWK.js");
1036
1036
  const { downloadBlob } = await import("./download-YRHNMQPH.js");
1037
1037
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
1038
1038
  const blob = await libraryBlob(item);
@@ -1063,7 +1063,7 @@ var mediaDelete = defineCommand({
1063
1063
  }
1064
1064
  },
1065
1065
  run: async (args) => {
1066
- const { deleteLibraryMedia } = await import("./client-4LUUUMO2.js");
1066
+ const { deleteLibraryMedia } = await import("./client-SE7SVRWK.js");
1067
1067
  const out = await deleteLibraryMedia(args.workspace, args.hash);
1068
1068
  return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
1069
1069
  }
@@ -1077,13 +1077,13 @@ async function signedIn() {
1077
1077
  }
1078
1078
  async function publishedFile() {
1079
1079
  await signedIn();
1080
- const { openFileKey } = await import("./publish-site-UL2ISNZU.js");
1080
+ const { openFileKey } = await import("./publish-site-PUHKHZF4.js");
1081
1081
  const key = openFileKey();
1082
1082
  if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
1083
1083
  return key;
1084
1084
  }
1085
1085
  async function formsWithoutDatabase(key) {
1086
- const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-V43NADG6.js"), import("./backend-Q4FQVKIS.js"), import("./integrations-LOGIGZY2.js")]);
1086
+ const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-TPVGGNLW.js"), import("./backend-Q4FQVKIS.js"), import("./integrations-LPVAVUUV.js")]);
1087
1087
  const doc2 = useEditorStore.getState().document;
1088
1088
  if (!usesForms(doc2)) return false;
1089
1089
  return formsGoNowhere(doc2, await siteBackend(key).catch(() => void 0));
@@ -1119,7 +1119,7 @@ var publishSite = defineCommand({
1119
1119
  const { cleanSlug } = await import("./rules-QWGSAJAE.js");
1120
1120
  const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
1121
1121
  if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
1122
- const { publishOpenFile, NoScreens } = await import("./publish-site-UL2ISNZU.js");
1122
+ const { publishOpenFile, NoScreens } = await import("./publish-site-PUHKHZF4.js");
1123
1123
  try {
1124
1124
  const done = await publishOpenFile(address);
1125
1125
  ctx.notice(`Published version ${done.version}: ${done.url}`);
@@ -1174,7 +1174,7 @@ var publishListSites = defineCommand({
1174
1174
  },
1175
1175
  run: async (p) => {
1176
1176
  await signedIn();
1177
- const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-L6JYZ4SV.js"), import("./team-5VEJ3OZ6.js")]);
1177
+ const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-L6JYZ4SV.js"), import("./team-QUBELR4W.js")]);
1178
1178
  const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
1179
1179
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
1180
1180
  const out = await workspaceSites(workspaceId);
@@ -1223,12 +1223,12 @@ var publishStatus = defineCommand({
1223
1223
  },
1224
1224
  run: async () => {
1225
1225
  await signedIn();
1226
- const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-UL2ISNZU.js"), import("./sites-L6JYZ4SV.js")]);
1226
+ const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-PUHKHZF4.js"), import("./sites-L6JYZ4SV.js")]);
1227
1227
  const key = openFileKey();
1228
1228
  const status = await siteStatus(key);
1229
1229
  const site = status.site;
1230
- const backend = key ? await (await import("./integrations-LOGIGZY2.js")).siteBackend(key).catch(() => null) : null;
1231
- const destinations = key ? await (await import("./integrations-LOGIGZY2.js")).listDestinations(key).catch(() => []) : [];
1230
+ const backend = key ? await (await import("./integrations-LPVAVUUV.js")).siteBackend(key).catch(() => null) : null;
1231
+ const destinations = key ? await (await import("./integrations-LPVAVUUV.js")).listDestinations(key).catch(() => []) : [];
1232
1232
  return {
1233
1233
  summary: !status.configured ? "This server does not publish websites" : !site ? "Not published yet" : site.currentVersion === null ? `Offline (${site.versions.length} versions kept) \u2014 ${site.url}` : `Version ${site.currentVersion} is online at ${site.url}`,
1234
1234
  data: { ...statusData(status), database: backend?.database ? { provider: backend.database.connection.provider, account: backend.database.connection.account, target: backend.database.target.map((t) => t.name), visitorsCanSignIn: backend.database.signIn } : null, destinations: destinations.map((d) => ({ destinationId: d.id, provider: d.connection.provider, account: d.connection.account, kind: d.capability, target: d.target.map((t) => t.name), lastSent: d.lastDeploy })) }
@@ -1259,7 +1259,7 @@ var publishStore = defineCommand({
1259
1259
  },
1260
1260
  run: async (p, ctx) => {
1261
1261
  await signedIn();
1262
- const { deployOpenStore } = await import("./publish-store-2TTGS2LW.js");
1262
+ const { deployOpenStore } = await import("./publish-store-PZMIV6LJ.js");
1263
1263
  const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
1264
1264
  throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
1265
1265
  });
@@ -1288,7 +1288,7 @@ var integrationList = defineCommand({
1288
1288
  }
1289
1289
  },
1290
1290
  run: async ({ capability }) => {
1291
- const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-QE4TAG7G.js"), import("./integrations-LOGIGZY2.js")]);
1291
+ const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-QE4TAG7G.js"), import("./integrations-LPVAVUUV.js")]);
1292
1292
  if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
1293
1293
  const workspaceId = integrationsWorkspaceId();
1294
1294
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
@@ -1329,7 +1329,7 @@ var integrationOpen = defineCommand({
1329
1329
  }
1330
1330
  });
1331
1331
  async function openFile() {
1332
- const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-QE4TAG7G.js"), import("./publish-site-UL2ISNZU.js")]);
1332
+ const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-QE4TAG7G.js"), import("./publish-site-PUHKHZF4.js")]);
1333
1333
  if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
1334
1334
  const key = openFileKey();
1335
1335
  if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
@@ -1355,7 +1355,7 @@ var integrationListResources = defineCommand({
1355
1355
  }
1356
1356
  },
1357
1357
  run: async ({ connectionId, capability, path }) => {
1358
- const { listResources } = await import("./integrations-LOGIGZY2.js");
1358
+ const { listResources } = await import("./integrations-LPVAVUUV.js");
1359
1359
  const list = await listResources(connectionId, capability, asPath2(path));
1360
1360
  return {
1361
1361
  summary: list.level ? `${list.resources.length} at the ${list.level.label.toLowerCase()} level${list.canCreate ? " (a new one can be made)" : ""}` : "Nothing further to pick: the path is complete",
@@ -1390,7 +1390,7 @@ var integrationAddDestination = defineCommand({
1390
1390
  },
1391
1391
  run: async (p, ctx) => {
1392
1392
  const key = await openFile();
1393
- const { addDestination, createDestination, createResource } = await import("./integrations-LOGIGZY2.js");
1393
+ const { addDestination, createDestination, createResource } = await import("./integrations-LPVAVUUV.js");
1394
1394
  let made;
1395
1395
  if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
1396
1396
  else {
@@ -1427,7 +1427,7 @@ var integrationDeploy = defineCommand({
1427
1427
  },
1428
1428
  run: async (p, ctx) => {
1429
1429
  const key = await openFile();
1430
- const { deployDestination, listDestinations } = await import("./integrations-LOGIGZY2.js");
1430
+ const { deployDestination, listDestinations } = await import("./integrations-LPVAVUUV.js");
1431
1431
  const all = await listDestinations(key);
1432
1432
  const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
1433
1433
  if (!dest) throw new CommandError(all.length ? `Say which destination: ${all.map((d) => `${d.id} (${d.target.map((t) => t.name).join(" / ")})`).join(", ")}.` : "This file has no destination yet. Add one first (add_site_destination).", "invalid_params");
@@ -1461,7 +1461,7 @@ var integrationAttachDatabase = defineCommand({
1461
1461
  },
1462
1462
  run: async (p, ctx) => {
1463
1463
  const key = await openFile();
1464
- const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-LOGIGZY2.js");
1464
+ const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-LPVAVUUV.js");
1465
1465
  if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
1466
1466
  if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
1467
1467
  let target = asPath2(p.target);
@@ -1500,7 +1500,7 @@ var integrationSubmissions = defineCommand({
1500
1500
  },
1501
1501
  run: async ({ form, limit }) => {
1502
1502
  const key = await openFile();
1503
- const { listSubmissions } = await import("./integrations-LOGIGZY2.js");
1503
+ const { listSubmissions } = await import("./integrations-LPVAVUUV.js");
1504
1504
  const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
1505
1505
  return { summary: rows.length ? `${rows.length} ${rows.length === 1 ? "submission" : "submissions"}, the newest ${new Date(rows[0].createdAt).toISOString()}` : "Nothing has been sent yet", data: { submissions: rows } };
1506
1506
  }
@@ -1525,7 +1525,7 @@ var integrationSetSignIn = defineCommand({
1525
1525
  },
1526
1526
  run: async ({ on }, ctx) => {
1527
1527
  const key = await openFile();
1528
- const { setSignIn } = await import("./integrations-LOGIGZY2.js");
1528
+ const { setSignIn } = await import("./integrations-LPVAVUUV.js");
1529
1529
  const done = await setSignIn(key, on);
1530
1530
  ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
1531
1531
  return { summary: on ? "Visitors can now create accounts and sign in on the published site" : "Sign-in is off for the published site", data: { signIn: !!done.database?.signIn } };
@@ -1743,7 +1743,7 @@ var fontTeamList = defineCommand({
1743
1743
  agent: { name: "list_team_fonts", readOnly: true, description: "The team's fonts: faces uploaded once that every file of the team can use (family, weight, style)." }
1744
1744
  },
1745
1745
  run: async (args) => {
1746
- const { refreshTeamFonts } = await import("./team-client-SG3SVF4G.js");
1746
+ const { refreshTeamFonts } = await import("./team-client-NCOTLKC5.js");
1747
1747
  const fonts = await refreshTeamFonts(args.workspace);
1748
1748
  return { summary: plural(fonts.length, "team font"), data: { fonts: fonts.map((f) => ({ id: f.id, family: f.family, weight: f.weight, style: f.style, face: f.face, fileName: f.fileName })) } };
1749
1749
  }
@@ -1770,7 +1770,7 @@ var fontTeamAdd = defineCommand({
1770
1770
  run: async (args, ctx) => {
1771
1771
  const { bytes, fileName: fileName2 } = await fontBytes(args, ctx);
1772
1772
  const { face, family, weight, style } = await resolveFace(bytes, args);
1773
- const { uploadTeamFont } = await import("./team-client-SG3SVF4G.js");
1773
+ const { uploadTeamFont } = await import("./team-client-NCOTLKC5.js");
1774
1774
  const font = await uploadTeamFont(bytes, { family, weight, style, face: face.index, fileName: fileName2 }, args.workspace);
1775
1775
  return { summary: `Added ${family} ${weight}${style === "italic" ? " italic" : ""} to the team`, data: { font } };
1776
1776
  }
@@ -1792,7 +1792,7 @@ var fontTeamRemove = defineCommand({
1792
1792
  agent: { name: "remove_team_font", description: "Remove a font from the team (list_team_fonts). Files that use it fall back to another font unless they carry it themselves. The user approves every call." }
1793
1793
  },
1794
1794
  run: async (args) => {
1795
- const { removeTeamFont } = await import("./team-client-SG3SVF4G.js");
1795
+ const { removeTeamFont } = await import("./team-client-NCOTLKC5.js");
1796
1796
  const out = await removeTeamFont(args.id, args.workspace);
1797
1797
  return { summary: `Removed the team font${out.freed ? " and freed its storage" : ""}`, data: out };
1798
1798
  }
@@ -1803,7 +1803,7 @@ var fontTeamCommands = [fontTeamList, fontTeamAdd];
1803
1803
  init_define_POPCRAFT_COMPONENT_IDS();
1804
1804
  async function cloudFile() {
1805
1805
  const [{ syncStatus }, { cloudUser }] = await Promise.all([
1806
- import("./sync-A56IG32K.js"),
1806
+ import("./sync-4AHF7NWR.js"),
1807
1807
  import("./session-QE4TAG7G.js")
1808
1808
  ]);
1809
1809
  const link2 = syncStatus().link;
@@ -1865,7 +1865,7 @@ var fileTrash = defineCommand({
1865
1865
  agent: { name: "trash_file", description: "Delete the open file: a cloud file goes to the Trash (restorable), a signed-out local file is deleted for good. Then the editor goes back to Home. The user approves every call." }
1866
1866
  },
1867
1867
  run: async () => {
1868
- const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-E46EEPRC.js");
1868
+ const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-WB6ZWMBO.js");
1869
1869
  const { name: name2, kind } = await deleteCurrentFile();
1870
1870
  leaveDeletedFile();
1871
1871
  return { summary: kind === "cloud" ? `Moved \u201C${name2}\u201D to the Trash` : `Deleted \u201C${name2}\u201D` };
@@ -1978,11 +1978,11 @@ var fileDuplicate = defineCommand({
1978
1978
  },
1979
1979
  run: async (_p, ctx) => {
1980
1980
  const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
1981
- import("./sync-A56IG32K.js"),
1981
+ import("./sync-4AHF7NWR.js"),
1982
1982
  import("./api-7ZHHFXRP.js"),
1983
1983
  import("./tab-mode-5ALKOT7S.js"),
1984
- import("./tabs-UWETDGQJ.js"),
1985
- import("./sync-A56IG32K.js"),
1984
+ import("./tabs-KFQNMNUM.js"),
1985
+ import("./sync-4AHF7NWR.js"),
1986
1986
  import("./dist-node-MAITLUAX.js")
1987
1987
  ]);
1988
1988
  const doc2 = ctx.doc();
@@ -4649,7 +4649,7 @@ var viewCopyLink = defineCommand({
4649
4649
  },
4650
4650
  run: async (args, ctx) => {
4651
4651
  const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
4652
- import("./sync-A56IG32K.js"),
4652
+ import("./sync-4AHF7NWR.js"),
4653
4653
  import("./api-7ZHHFXRP.js"),
4654
4654
  import("./deep-link-BD4WN46A.js")
4655
4655
  ]);
@@ -4974,7 +4974,7 @@ var pageGo = defineCommand({
4974
4974
  ] }
4975
4975
  },
4976
4976
  run: async ({ to }) => {
4977
- const { useEditorStore } = await import("./editor-store-V43NADG6.js");
4977
+ const { useEditorStore } = await import("./editor-store-TPVGGNLW.js");
4978
4978
  useEditorStore.getState().goToPrintPage(to);
4979
4979
  return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
4980
4980
  }
@@ -5008,7 +5008,7 @@ var pageSetup = defineCommand({
5008
5008
  }
5009
5009
  },
5010
5010
  run: async (args) => {
5011
- const { useEditorStore } = await import("./editor-store-V43NADG6.js");
5011
+ const { useEditorStore } = await import("./editor-store-TPVGGNLW.js");
5012
5012
  useEditorStore.getState().applyPageSetup(args);
5013
5013
  return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
5014
5014
  }
@@ -5767,7 +5767,7 @@ async function docAtTime(doc2, ids, time2) {
5767
5767
  let frameId;
5768
5768
  if (time2 === void 0) {
5769
5769
  try {
5770
- const { useEditorStore } = await import("./editor-store-V43NADG6.js");
5770
+ const { useEditorStore } = await import("./editor-store-TPVGGNLW.js");
5771
5771
  const st = useEditorStore.getState();
5772
5772
  const target = st.transport?.target;
5773
5773
  if (st.mode !== "ANIMATE" || target?.kind !== "frame") return doc2;
@@ -6161,7 +6161,7 @@ async function runAnimationExport(format, args, ctx) {
6161
6161
  const filename = exportFileName(args.filename || targetName(doc2, target), format);
6162
6162
  const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-TWXTQTP3.js"), import("./destination-DJEJM5KM.js")]);
6163
6163
  if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
6164
- const planWatermark = format !== "png" && await (await import("./export-watermark-XHQOOPR7.js")).exportWatermark();
6164
+ const planWatermark = format !== "png" && await (await import("./export-watermark-UGGZ5TX6.js")).exportWatermark();
6165
6165
  if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
6166
6166
  const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
6167
6167
  let stats;
@@ -6247,7 +6247,7 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
6247
6247
  });
6248
6248
  async function exportSite(doc2, pageId2, packaging, styling = "css", siteUrl) {
6249
6249
  const [{ completeSite, nextFilesOf, shareImageFiles, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
6250
- import("./project-KEEZ7XYP.js"),
6250
+ import("./project-M3KF66GG.js"),
6251
6251
  import("./web-TDSHIXQY.js"),
6252
6252
  import("./zip-export-ZYXDK4SM.js"),
6253
6253
  import("./download-YRHNMQPH.js")
@@ -6341,7 +6341,7 @@ var exportStorefront = defineCommand({
6341
6341
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
6342
6342
  import("./storefront-prepare-EXR7OIWW.js"),
6343
6343
  import("./storefront-BPMM6QWK.js"),
6344
- import("./project-KEEZ7XYP.js"),
6344
+ import("./project-M3KF66GG.js"),
6345
6345
  import("./web-TDSHIXQY.js"),
6346
6346
  import("./zip-export-ZYXDK4SM.js"),
6347
6347
  import("./download-YRHNMQPH.js")
@@ -6736,7 +6736,7 @@ var visionRegenerateImage = defineCommand({
6736
6736
  const id = args.id ?? ctx.selection()[0];
6737
6737
  if (!id) throw new ToolError("Select a generated image to regenerate.");
6738
6738
  nodeOrThrow(ctx.doc(), id);
6739
- const { regenerateImage } = await import("./client-actions-L7II3NNB.js");
6739
+ const { regenerateImage } = await import("./client-actions-UNYIWTLI.js");
6740
6740
  regenerateImage(id, args.count);
6741
6741
  return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
6742
6742
  }
@@ -9895,7 +9895,7 @@ var scriptRun = defineCommand({
9895
9895
  // A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
9896
9896
  actor: { ...ctx.actor, nested: true, label: "Script" },
9897
9897
  // A look_at inside the script sees the document as the script has left it so far, not as it was before.
9898
- use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-VDTFMQFH.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
9898
+ use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-B4XH7FCC.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
9899
9899
  };
9900
9900
  let calls = 0;
9901
9901
  const images = [];
@@ -10715,7 +10715,7 @@ var docImportFile = defineCommand({
10715
10715
  const file = new File([body], args.name);
10716
10716
  if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
10717
10717
  const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
10718
- import("./plugin-import-C5S2SHFZ.js"),
10718
+ import("./plugin-import-P4PD76X3.js"),
10719
10719
  import("./import-merge-73U4J6IN.js")
10720
10720
  ]);
10721
10721
  const built = await buildImportedDocument(file);
@@ -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-V43NADG6.js"),
94
+ import("./editor-store-TPVGGNLW.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-TXQINVAR.js")
96
+ import("./media-tool-LTK46STY.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);
@@ -20,14 +20,14 @@ import {
20
20
  } from "./chunk-U7FLEMSS.js";
21
21
  import {
22
22
  notice
23
- } from "./chunk-VLEZSLRZ.js";
23
+ } from "./chunk-TCPSVZN3.js";
24
24
  import {
25
25
  agentContext
26
- } from "./chunk-6Q7JYDNH.js";
26
+ } from "./chunk-UNJ2Y726.js";
27
27
  import {
28
28
  collabSession,
29
29
  syncStatus
30
- } from "./chunk-AN2LMY4M.js";
30
+ } from "./chunk-DBGETMUH.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-EKKA4A5J.js";
39
+ } from "./chunk-5JMMBP5Q.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-HGUHRTIM.js";
19
+ } from "./chunk-KPKVF2TA.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-GPNEAC5E.js";
26
+ } from "./chunk-Z557VFSN.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-PUFEIOUT.js";
34
+ } from "./chunk-XJFTD3EZ.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-EKKA4A5J.js";
45
+ } from "./chunk-5JMMBP5Q.js";
46
46
  import {
47
47
  currentHistoryGroup
48
48
  } from "./chunk-76I6DIEM.js";
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-6Q7JYDNH.js";
16
+ } from "./chunk-UNJ2Y726.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-OQZFD4BD.js";