@popcraft/kit 0.20.2 → 0.20.3

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 (54) hide show
  1. package/dist/chunks/{agent-3XRGQL6K.js → agent-J4SXBHGV.js} +1 -1
  2. package/dist/chunks/{builtin-O5EUMSK7.js → builtin-PWQNLB2U.js} +3 -3
  3. package/dist/chunks/{check-template-UISBUUB3.js → check-template-ENJQZXH5.js} +2 -2
  4. package/dist/chunks/{chunk-VM4TCXGM.js → chunk-3MPDKA5K.js} +1 -1
  5. package/dist/chunks/{chunk-HWXDUZAO.js → chunk-3Z2Y6QKZ.js} +2 -2
  6. package/dist/chunks/{chunk-SVAABCJG.js → chunk-45ACHLAL.js} +5 -5
  7. package/dist/chunks/{chunk-LAC5I6AM.js → chunk-464OAKNK.js} +1 -1
  8. package/dist/chunks/{chunk-HXAO664S.js → chunk-4EITFMGW.js} +2 -2
  9. package/dist/chunks/{chunk-DQEH7YHZ.js → chunk-5SDOA4AU.js} +5 -5
  10. package/dist/chunks/{chunk-RQOK4QB5.js → chunk-5WQ22SPX.js} +3 -3
  11. package/dist/chunks/{chunk-43EUFENA.js → chunk-7AMSDSLP.js} +4 -4
  12. package/dist/chunks/{chunk-OJTNFHBZ.js → chunk-D22LSMIW.js} +7 -7
  13. package/dist/chunks/{chunk-YTOCMYV3.js → chunk-EAIMKIA5.js} +2 -2
  14. package/dist/chunks/{chunk-G4KE7KT4.js → chunk-FUMDXWBG.js} +1 -1
  15. package/dist/chunks/{chunk-LA6QHNAX.js → chunk-GAEBPOHW.js} +1 -1
  16. package/dist/chunks/{chunk-IH5DE4KB.js → chunk-K4LCJD5K.js} +11 -11
  17. package/dist/chunks/{chunk-DXXUFB7X.js → chunk-NR3AJXQ4.js} +5 -5
  18. package/dist/chunks/{chunk-N6SD377O.js → chunk-OL577EGK.js} +35 -35
  19. package/dist/chunks/{chunk-AWIP7QCB.js → chunk-R7NWPQKR.js} +2 -2
  20. package/dist/chunks/{chunk-V7PIZ2ZW.js → chunk-U4JVPR7Z.js} +3 -3
  21. package/dist/chunks/{chunk-6SP73YB7.js → chunk-UVOCENGW.js} +4 -4
  22. package/dist/chunks/{client-ZZ4BXWSM.js → client-JFQ2TVII.js} +1 -1
  23. package/dist/chunks/{client-NHRXRV7Y.js → client-MYF3W7PM.js} +2 -2
  24. package/dist/chunks/{client-PQES24BC.js → client-YDSMG6VW.js} +2 -2
  25. package/dist/chunks/{client-actions-SG4XCLG3.js → client-actions-XW7PGUMD.js} +4 -4
  26. package/dist/chunks/{dangerous-42IJNPKX.js → dangerous-JD7VUYER.js} +3 -3
  27. package/dist/chunks/{editor-seams-3W2VZIMT.js → editor-seams-ZGI54SDD.js} +9 -9
  28. package/dist/chunks/{editor-store-I7CK6EUM.js → editor-store-HMBMRJJW.js} +1 -1
  29. package/dist/chunks/{export-watermark-P4EUETUI.js → export-watermark-JRQNIQQ5.js} +5 -5
  30. package/dist/chunks/{eyedropper-DZSU56VR.js → eyedropper-C7KDYS64.js} +1 -1
  31. package/dist/chunks/{generate-media-6CIG67D7.js → generate-media-Z6FOXFSV.js} +2 -2
  32. package/dist/chunks/{host-G52FWPTW.js → host-UHSDIH36.js} +6 -6
  33. package/dist/chunks/{integrations-GKIWYVK4.js → integrations-3332ZZTF.js} +1 -1
  34. package/dist/chunks/{libraries-VCGHYYCK.js → libraries-YJHBPRTY.js} +5 -5
  35. package/dist/chunks/{live-KA4N4BJN.js → live-P3DFZLYB.js} +1 -1
  36. package/dist/chunks/{media-tool-HHQSLJOV.js → media-tool-H4UGBQIQ.js} +1 -1
  37. package/dist/chunks/{new-file-AFI3VBV2.js → new-file-JJEODOJM.js} +3 -3
  38. package/dist/chunks/{plugin-2ACUW576.js → plugin-OC5OOC3U.js} +2 -2
  39. package/dist/chunks/{plugin-import-GLHFCITY.js → plugin-import-QW3HGML4.js} +13 -13
  40. package/dist/chunks/{presence-OJPOVGS7.js → presence-44JVMJ6W.js} +2 -2
  41. package/dist/chunks/{project-XNTT4XD2.js → project-M4KOGR2O.js} +1 -1
  42. package/dist/chunks/{publish-site-GJ6KL5WK.js → publish-site-YT7HNDH3.js} +6 -6
  43. package/dist/chunks/{publish-store-WBNG5E32.js → publish-store-ZRSUHYXH.js} +4 -4
  44. package/dist/chunks/{raster-actions-SFGUYYTL.js → raster-actions-V4K3L52M.js} +1 -1
  45. package/dist/chunks/{runner-GFFPYL3H.js → runner-JEV5TMZ4.js} +16 -16
  46. package/dist/chunks/{store-OVTYLNL2.js → store-BUVK2SOK.js} +5 -5
  47. package/dist/chunks/{sync-VNEOQ3YF.js → sync-YJPTY2NK.js} +5 -5
  48. package/dist/chunks/{tabs-V2FIK5E4.js → tabs-4CWASU2R.js} +8 -8
  49. package/dist/chunks/{team-SVFXXVIX.js → team-N74ADY6L.js} +1 -1
  50. package/dist/chunks/{tools-SWNBWHOE.js → tools-45XK2ITU.js} +2 -2
  51. package/dist/chunks/{ui-commands-4YUJXHBL.js → ui-commands-XTNPMZB4.js} +11 -11
  52. package/dist/chunks/{versions-U26D53YL.js → versions-ERMENPFZ.js} +5 -5
  53. package/dist/index.js +1 -1
  54. package/package.json +1 -1
@@ -858,7 +858,7 @@ init_scene_graph();
858
858
  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.");
859
859
  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 });
860
860
  async function placeImportedPicture(ctx, imported, at, what, extra = {}) {
861
- const client = await import("./client-ZZ4BXWSM.js");
861
+ const client = await import("./client-JFQ2TVII.js");
862
862
  if (at.fillLayerId) {
863
863
  const doc2 = ctx.doc();
864
864
  const target = nodeOrThrow(doc2, at.fillLayerId);
@@ -904,7 +904,7 @@ var photoSearch = defineCommand({
904
904
  }
905
905
  },
906
906
  run: async (args) => {
907
- const { searchStockPhotos } = await import("./client-ZZ4BXWSM.js");
907
+ const { searchStockPhotos } = await import("./client-JFQ2TVII.js");
908
908
  const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
909
909
  return {
910
910
  summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
@@ -938,7 +938,7 @@ var photoInsert = defineCommand({
938
938
  run: async (args, ctx) => {
939
939
  if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
940
940
  if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
941
- const client = await import("./client-ZZ4BXWSM.js");
941
+ const client = await import("./client-JFQ2TVII.js");
942
942
  let photo;
943
943
  if (args.id) photo = await client.stockPhotoInfo(args.id);
944
944
  else {
@@ -976,7 +976,7 @@ var mediaList = defineCommand({
976
976
  }
977
977
  },
978
978
  run: async (args) => {
979
- const { listLibraryMedia } = await import("./client-PQES24BC.js");
979
+ const { listLibraryMedia } = await import("./client-YDSMG6VW.js");
980
980
  const page = await listLibraryMedia(args);
981
981
  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 } };
982
982
  }
@@ -1007,7 +1007,7 @@ var mediaInsert = defineCommand({
1007
1007
  run: async (args, ctx) => {
1008
1008
  const contentType = args.contentType ?? "image/*";
1009
1009
  if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
1010
- const { importLibraryPicture } = await import("./client-PQES24BC.js");
1010
+ const { importLibraryPicture } = await import("./client-YDSMG6VW.js");
1011
1011
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
1012
1012
  const imported = await importLibraryPicture(item);
1013
1013
  return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
@@ -1028,7 +1028,7 @@ var mediaDownload = defineCommand({
1028
1028
  // The Library's right-click menu: saves the item's file to the computer.
1029
1029
  expose: { ui: { label: "Download", palette: false } },
1030
1030
  run: async (args) => {
1031
- const { libraryBlob, libraryFileName } = await import("./client-PQES24BC.js");
1031
+ const { libraryBlob, libraryFileName } = await import("./client-YDSMG6VW.js");
1032
1032
  const { downloadBlob } = await import("./download-5SIBHEEZ.js");
1033
1033
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
1034
1034
  const blob = await libraryBlob(item);
@@ -1059,7 +1059,7 @@ var mediaDelete = defineCommand({
1059
1059
  }
1060
1060
  },
1061
1061
  run: async (args) => {
1062
- const { deleteLibraryMedia } = await import("./client-PQES24BC.js");
1062
+ const { deleteLibraryMedia } = await import("./client-YDSMG6VW.js");
1063
1063
  const out = await deleteLibraryMedia(args.workspace, args.hash);
1064
1064
  return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
1065
1065
  }
@@ -1073,7 +1073,7 @@ async function signedIn() {
1073
1073
  }
1074
1074
  async function publishedFile() {
1075
1075
  await signedIn();
1076
- const { openFileKey } = await import("./publish-site-GJ6KL5WK.js");
1076
+ const { openFileKey } = await import("./publish-site-YT7HNDH3.js");
1077
1077
  const key = openFileKey();
1078
1078
  if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
1079
1079
  return key;
@@ -1109,7 +1109,7 @@ var publishSite = defineCommand({
1109
1109
  const { cleanSlug } = await import("./rules-X2IKPJCZ.js");
1110
1110
  const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
1111
1111
  if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
1112
- const { publishOpenFile, NoScreens } = await import("./publish-site-GJ6KL5WK.js");
1112
+ const { publishOpenFile, NoScreens } = await import("./publish-site-YT7HNDH3.js");
1113
1113
  try {
1114
1114
  const done = await publishOpenFile(address);
1115
1115
  ctx.notice(`Published version ${done.version}: ${done.url}`);
@@ -1162,7 +1162,7 @@ var publishListSites = defineCommand({
1162
1162
  },
1163
1163
  run: async (p) => {
1164
1164
  await signedIn();
1165
- const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-3ZEP2Q62.js"), import("./team-SVFXXVIX.js")]);
1165
+ const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-3ZEP2Q62.js"), import("./team-N74ADY6L.js")]);
1166
1166
  const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
1167
1167
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
1168
1168
  const out = await workspaceSites(workspaceId);
@@ -1211,12 +1211,12 @@ var publishStatus = defineCommand({
1211
1211
  },
1212
1212
  run: async () => {
1213
1213
  await signedIn();
1214
- const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-GJ6KL5WK.js"), import("./sites-3ZEP2Q62.js")]);
1214
+ const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-YT7HNDH3.js"), import("./sites-3ZEP2Q62.js")]);
1215
1215
  const key = openFileKey();
1216
1216
  const status = await siteStatus(key);
1217
1217
  const site = status.site;
1218
- const backend = key ? await (await import("./integrations-GKIWYVK4.js")).siteBackend(key).catch(() => null) : null;
1219
- const destinations = key ? await (await import("./integrations-GKIWYVK4.js")).listDestinations(key).catch(() => []) : [];
1218
+ const backend = key ? await (await import("./integrations-3332ZZTF.js")).siteBackend(key).catch(() => null) : null;
1219
+ const destinations = key ? await (await import("./integrations-3332ZZTF.js")).listDestinations(key).catch(() => []) : [];
1220
1220
  return {
1221
1221
  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}`,
1222
1222
  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 })) }
@@ -1247,7 +1247,7 @@ var publishStore = defineCommand({
1247
1247
  },
1248
1248
  run: async (p, ctx) => {
1249
1249
  await signedIn();
1250
- const { deployOpenStore } = await import("./publish-store-WBNG5E32.js");
1250
+ const { deployOpenStore } = await import("./publish-store-ZRSUHYXH.js");
1251
1251
  const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
1252
1252
  throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
1253
1253
  });
@@ -1276,7 +1276,7 @@ var integrationList = defineCommand({
1276
1276
  }
1277
1277
  },
1278
1278
  run: async ({ capability }) => {
1279
- const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-WZ474Q66.js"), import("./integrations-GKIWYVK4.js")]);
1279
+ const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-WZ474Q66.js"), import("./integrations-3332ZZTF.js")]);
1280
1280
  if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
1281
1281
  const workspaceId = integrationsWorkspaceId();
1282
1282
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
@@ -1317,7 +1317,7 @@ var integrationOpen = defineCommand({
1317
1317
  }
1318
1318
  });
1319
1319
  async function openFile() {
1320
- const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-WZ474Q66.js"), import("./publish-site-GJ6KL5WK.js")]);
1320
+ const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-WZ474Q66.js"), import("./publish-site-YT7HNDH3.js")]);
1321
1321
  if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
1322
1322
  const key = openFileKey();
1323
1323
  if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
@@ -1343,7 +1343,7 @@ var integrationListResources = defineCommand({
1343
1343
  }
1344
1344
  },
1345
1345
  run: async ({ connectionId, capability, path }) => {
1346
- const { listResources } = await import("./integrations-GKIWYVK4.js");
1346
+ const { listResources } = await import("./integrations-3332ZZTF.js");
1347
1347
  const list = await listResources(connectionId, capability, asPath2(path));
1348
1348
  return {
1349
1349
  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",
@@ -1378,7 +1378,7 @@ var integrationAddDestination = defineCommand({
1378
1378
  },
1379
1379
  run: async (p, ctx) => {
1380
1380
  const key = await openFile();
1381
- const { addDestination, createDestination, createResource } = await import("./integrations-GKIWYVK4.js");
1381
+ const { addDestination, createDestination, createResource } = await import("./integrations-3332ZZTF.js");
1382
1382
  let made;
1383
1383
  if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
1384
1384
  else {
@@ -1415,7 +1415,7 @@ var integrationDeploy = defineCommand({
1415
1415
  },
1416
1416
  run: async (p, ctx) => {
1417
1417
  const key = await openFile();
1418
- const { deployDestination, listDestinations } = await import("./integrations-GKIWYVK4.js");
1418
+ const { deployDestination, listDestinations } = await import("./integrations-3332ZZTF.js");
1419
1419
  const all = await listDestinations(key);
1420
1420
  const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
1421
1421
  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");
@@ -1449,7 +1449,7 @@ var integrationAttachDatabase = defineCommand({
1449
1449
  },
1450
1450
  run: async (p, ctx) => {
1451
1451
  const key = await openFile();
1452
- const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-GKIWYVK4.js");
1452
+ const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-3332ZZTF.js");
1453
1453
  if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
1454
1454
  if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
1455
1455
  let target = asPath2(p.target);
@@ -1488,7 +1488,7 @@ var integrationSubmissions = defineCommand({
1488
1488
  },
1489
1489
  run: async ({ form, limit }) => {
1490
1490
  const key = await openFile();
1491
- const { listSubmissions } = await import("./integrations-GKIWYVK4.js");
1491
+ const { listSubmissions } = await import("./integrations-3332ZZTF.js");
1492
1492
  const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
1493
1493
  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 } };
1494
1494
  }
@@ -1513,7 +1513,7 @@ var integrationSetSignIn = defineCommand({
1513
1513
  },
1514
1514
  run: async ({ on }, ctx) => {
1515
1515
  const key = await openFile();
1516
- const { setSignIn } = await import("./integrations-GKIWYVK4.js");
1516
+ const { setSignIn } = await import("./integrations-3332ZZTF.js");
1517
1517
  const done = await setSignIn(key, on);
1518
1518
  ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
1519
1519
  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 } };
@@ -1525,7 +1525,7 @@ var integrationConfirmCommands = [integrationAddDestination, integrationDeploy,
1525
1525
  init_define_POPCRAFT_COMPONENT_IDS();
1526
1526
  async function cloudFile() {
1527
1527
  const [{ syncStatus }, { cloudUser }] = await Promise.all([
1528
- import("./sync-VNEOQ3YF.js"),
1528
+ import("./sync-YJPTY2NK.js"),
1529
1529
  import("./session-WZ474Q66.js")
1530
1530
  ]);
1531
1531
  const link2 = syncStatus().link;
@@ -1677,11 +1677,11 @@ var fileDuplicate = defineCommand({
1677
1677
  },
1678
1678
  run: async (_p, ctx) => {
1679
1679
  const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
1680
- import("./sync-VNEOQ3YF.js"),
1680
+ import("./sync-YJPTY2NK.js"),
1681
1681
  import("./api-YVXHOJG2.js"),
1682
1682
  import("./tab-mode-H5WD6AFQ.js"),
1683
- import("./tabs-V2FIK5E4.js"),
1684
- import("./sync-VNEOQ3YF.js"),
1683
+ import("./tabs-4CWASU2R.js"),
1684
+ import("./sync-YJPTY2NK.js"),
1685
1685
  import("./dist-node-FLDU4KRA.js")
1686
1686
  ]);
1687
1687
  const doc2 = ctx.doc();
@@ -4188,7 +4188,7 @@ var viewCopyLink = defineCommand({
4188
4188
  },
4189
4189
  run: async (args, ctx) => {
4190
4190
  const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
4191
- import("./sync-VNEOQ3YF.js"),
4191
+ import("./sync-YJPTY2NK.js"),
4192
4192
  import("./api-YVXHOJG2.js"),
4193
4193
  import("./deep-link-YGYQWCPW.js")
4194
4194
  ]);
@@ -4513,7 +4513,7 @@ var pageGo = defineCommand({
4513
4513
  ] }
4514
4514
  },
4515
4515
  run: async ({ to }) => {
4516
- const { useEditorStore } = await import("./editor-store-I7CK6EUM.js");
4516
+ const { useEditorStore } = await import("./editor-store-HMBMRJJW.js");
4517
4517
  useEditorStore.getState().goToPrintPage(to);
4518
4518
  return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
4519
4519
  }
@@ -4547,7 +4547,7 @@ var pageSetup = defineCommand({
4547
4547
  }
4548
4548
  },
4549
4549
  run: async (args) => {
4550
- const { useEditorStore } = await import("./editor-store-I7CK6EUM.js");
4550
+ const { useEditorStore } = await import("./editor-store-HMBMRJJW.js");
4551
4551
  useEditorStore.getState().applyPageSetup(args);
4552
4552
  return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
4553
4553
  }
@@ -5655,7 +5655,7 @@ async function runAnimationExport(format, args, ctx) {
5655
5655
  const filename = exportFileName(args.filename || targetName(doc2, target), format);
5656
5656
  const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-ZJHFBXT6.js"), import("./destination-N3H4TUSP.js")]);
5657
5657
  if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
5658
- const planWatermark = format !== "png" && await (await import("./export-watermark-P4EUETUI.js")).exportWatermark();
5658
+ const planWatermark = format !== "png" && await (await import("./export-watermark-JRQNIQQ5.js")).exportWatermark();
5659
5659
  if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
5660
5660
  const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
5661
5661
  let stats;
@@ -5741,7 +5741,7 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
5741
5741
  });
5742
5742
  async function exportSite(doc2, pageId2, packaging, styling = "css") {
5743
5743
  const [{ completeSite, nextFilesOf, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
5744
- import("./project-XNTT4XD2.js"),
5744
+ import("./project-M4KOGR2O.js"),
5745
5745
  import("./web-W6Y2D6EB.js"),
5746
5746
  import("./zip-export-O3CSBCUF.js"),
5747
5747
  import("./download-5SIBHEEZ.js")
@@ -5828,7 +5828,7 @@ var exportStorefront = defineCommand({
5828
5828
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
5829
5829
  import("./storefront-prepare-KO62WABI.js"),
5830
5830
  import("./storefront-ZAUBM3IU.js"),
5831
- import("./project-XNTT4XD2.js"),
5831
+ import("./project-M4KOGR2O.js"),
5832
5832
  import("./web-W6Y2D6EB.js"),
5833
5833
  import("./zip-export-O3CSBCUF.js"),
5834
5834
  import("./download-5SIBHEEZ.js")
@@ -6223,7 +6223,7 @@ var visionRegenerateImage = defineCommand({
6223
6223
  const id = args.id ?? ctx.selection()[0];
6224
6224
  if (!id) throw new ToolError("Select a generated image to regenerate.");
6225
6225
  nodeOrThrow(ctx.doc(), id);
6226
- const { regenerateImage } = await import("./client-actions-SG4XCLG3.js");
6226
+ const { regenerateImage } = await import("./client-actions-XW7PGUMD.js");
6227
6227
  regenerateImage(id, args.count);
6228
6228
  return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
6229
6229
  }
@@ -9382,7 +9382,7 @@ var scriptRun = defineCommand({
9382
9382
  // A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
9383
9383
  actor: { ...ctx.actor, nested: true, label: "Script" },
9384
9384
  // A look_at inside the script sees the document as the script has left it so far, not as it was before.
9385
- use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-3XRGQL6K.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
9385
+ use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-J4SXBHGV.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
9386
9386
  };
9387
9387
  let calls = 0;
9388
9388
  const images = [];
@@ -10054,7 +10054,7 @@ var docImportFile = defineCommand({
10054
10054
  const file = new File([body], args.name);
10055
10055
  if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
10056
10056
  const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
10057
- import("./plugin-import-GLHFCITY.js"),
10057
+ import("./plugin-import-QW3HGML4.js"),
10058
10058
  import("./import-merge-7C3SU4XX.js")
10059
10059
  ]);
10060
10060
  const built = await buildImportedDocument(file);
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinCommands,
9
9
  registerBuiltinCommands
10
- } from "./chunk-N6SD377O.js";
10
+ } from "./chunk-OL577EGK.js";
11
11
  import {
12
12
  toolView
13
- } from "./chunk-RQOK4QB5.js";
13
+ } from "./chunk-5WQ22SPX.js";
14
14
  import {
15
15
  init_define_POPCRAFT_COMPONENT_IDS
16
16
  } from "./chunk-AZVDCD7K.js";
@@ -9,7 +9,7 @@ import {
9
9
  hostEnv,
10
10
  plain,
11
11
  registerBuiltinCommands
12
- } from "./chunk-N6SD377O.js";
12
+ } from "./chunk-OL577EGK.js";
13
13
  import {
14
14
  storeOpsSeam
15
15
  } from "./chunk-YW4GMJMW.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-KO62WABI.js"),
574
574
  import("./storefront-ZAUBM3IU.js"),
575
- import("./project-XNTT4XD2.js"),
575
+ import("./project-M4KOGR2O.js"),
576
576
  import("./zip-export-O3CSBCUF.js"),
577
577
  import("./tree-5BIRLSEM.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-G52FWPTW.js");
772
+ const { runPlugin } = await import("./host-UHSDIH36.js");
773
773
  await runPlugin(p.pluginId, p.commandId);
774
774
  ctx.notice(`Started ${p.pluginId}.`);
775
775
  return {
@@ -14,14 +14,14 @@ import {
14
14
  newFileRefusal,
15
15
  reportNewFileBlocked,
16
16
  setCloudLink
17
- } from "./chunk-HXAO664S.js";
17
+ } from "./chunk-4EITFMGW.js";
18
18
  import {
19
19
  parseDeepLink,
20
20
  withDeepLink
21
21
  } from "./chunk-W5MTS4F6.js";
22
22
  import {
23
23
  attachPresence
24
- } from "./chunk-LAC5I6AM.js";
24
+ } from "./chunk-464OAKNK.js";
25
25
  import {
26
26
  isPersistableDocument,
27
27
  isUnsavedPlaceholder,
@@ -32,7 +32,7 @@ import {
32
32
  setCollabHistory,
33
33
  storedDocument,
34
34
  useEditorStore
35
- } from "./chunk-DQEH7YHZ.js";
35
+ } from "./chunk-5SDOA4AU.js";
36
36
  import {
37
37
  deleteDocFromLibrary,
38
38
  docExists,
@@ -48,7 +48,7 @@ import {
48
48
  } from "./chunk-IX4H4YZT.js";
49
49
  import {
50
50
  activeTeamWorkspaceId
51
- } from "./chunk-G4KE7KT4.js";
51
+ } from "./chunk-FUMDXWBG.js";
52
52
  import {
53
53
  ApiError,
54
54
  api,
@@ -14,7 +14,7 @@ import {
14
14
  placeStockPhoto,
15
15
  searchStockPhotos,
16
16
  stockPhotoInfo
17
- } from "./chunk-HWXDUZAO.js";
17
+ } from "./chunk-3Z2Y6QKZ.js";
18
18
  import "./chunk-K43OUC2L.js";
19
19
  import "./chunk-AZVDCD7K.js";
20
20
  import "./chunk-LJSVREWM.js";
@@ -16,9 +16,9 @@ import {
16
16
  requestEmbeddings,
17
17
  requestImage,
18
18
  requestImageAction
19
- } from "./chunk-VM4TCXGM.js";
19
+ } from "./chunk-3MPDKA5K.js";
20
20
  import "./chunk-Z5KWGXYT.js";
21
- import "./chunk-G4KE7KT4.js";
21
+ import "./chunk-FUMDXWBG.js";
22
22
  import "./chunk-7IGFWASX.js";
23
23
  import "./chunk-RUDVOUQG.js";
24
24
  import "./chunk-66AVOIOA.js";
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  defaultMeasure,
9
9
  placePicture
10
- } from "./chunk-HWXDUZAO.js";
10
+ } from "./chunk-3Z2Y6QKZ.js";
11
11
  import "./chunk-K43OUC2L.js";
12
12
  import {
13
13
  api
@@ -121,7 +121,7 @@ async function placeLibraryItem(item, opts = {}) {
121
121
  }
122
122
  if (item.contentType.startsWith("video/")) {
123
123
  const file = await libraryFile(item, opts);
124
- const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-I7CK6EUM.js"), import("./media-tool-HHQSLJOV.js")]);
124
+ const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-HMBMRJJW.js"), import("./media-tool-H4UGBQIQ.js")]);
125
125
  const cam = useEditorStore.getState().camera;
126
126
  await placeMediaFile(file, { kind: "point", ...opts.at ?? { x: cam.x, y: cam.y } });
127
127
  return useEditorStore.getState().selection[0] ?? null;
@@ -16,7 +16,7 @@ import {
16
16
  selectedVectorTarget,
17
17
  startImageAction,
18
18
  startImageGeneration
19
- } from "./chunk-YTOCMYV3.js";
19
+ } from "./chunk-EAIMKIA5.js";
20
20
  import "./chunk-IAUCBQRC.js";
21
21
  import "./chunk-LCIZBGZN.js";
22
22
  import "./chunk-7NYBUZSB.js";
@@ -27,7 +27,7 @@ import "./chunk-TUE3FJHT.js";
27
27
  import "./chunk-3J33ZEZN.js";
28
28
  import "./chunk-TZUJYUHF.js";
29
29
  import "./chunk-L6R43WQX.js";
30
- import "./chunk-VM4TCXGM.js";
30
+ import "./chunk-3MPDKA5K.js";
31
31
  import "./chunk-Z5KWGXYT.js";
32
32
  import "./chunk-RVMIBNSQ.js";
33
33
  import "./chunk-TZ6WF5R4.js";
@@ -35,7 +35,7 @@ import "./chunk-2IGNVUUW.js";
35
35
  import "./chunk-C4FHNSTP.js";
36
36
  import "./chunk-VNXLQVFB.js";
37
37
  import "./chunk-4WSV3B6X.js";
38
- import "./chunk-DQEH7YHZ.js";
38
+ import "./chunk-5SDOA4AU.js";
39
39
  import "./chunk-ZPLSZ2KQ.js";
40
40
  import "./chunk-QDL3KUP4.js";
41
41
  import "./chunk-TZMJ37M6.js";
@@ -50,7 +50,7 @@ import "./chunk-7HQZX3WG.js";
50
50
  import "./chunk-WUFR74B4.js";
51
51
  import "./chunk-IX4H4YZT.js";
52
52
  import "./chunk-HHD6CUWZ.js";
53
- import "./chunk-G4KE7KT4.js";
53
+ import "./chunk-FUMDXWBG.js";
54
54
  import "./chunk-7IGFWASX.js";
55
55
  import "./chunk-RUDVOUQG.js";
56
56
  import "./chunk-66AVOIOA.js";
@@ -8,9 +8,9 @@ import {
8
8
  confirmTierCommands,
9
9
  dangerousCommands,
10
10
  registerDangerousCommands
11
- } from "./chunk-IH5DE4KB.js";
12
- import "./chunk-V7PIZ2ZW.js";
13
- import "./chunk-N6SD377O.js";
11
+ } from "./chunk-K4LCJD5K.js";
12
+ import "./chunk-U4JVPR7Z.js";
13
+ import "./chunk-OL577EGK.js";
14
14
  import "./chunk-PW2CNK5I.js";
15
15
  import "./chunk-ESWEDBML.js";
16
16
  import "./chunk-W2ZOUTFE.js";
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  editBlockReason,
9
9
  editorToolContext
10
- } from "./chunk-SVAABCJG.js";
10
+ } from "./chunk-45ACHLAL.js";
11
11
  import "./chunk-YW4GMJMW.js";
12
12
  import "./chunk-SFZFU7HO.js";
13
- import "./chunk-YTOCMYV3.js";
13
+ import "./chunk-EAIMKIA5.js";
14
14
  import "./chunk-IAUCBQRC.js";
15
15
  import "./chunk-LCIZBGZN.js";
16
16
  import "./chunk-7NYBUZSB.js";
@@ -21,13 +21,13 @@ import "./chunk-TUE3FJHT.js";
21
21
  import "./chunk-3J33ZEZN.js";
22
22
  import "./chunk-TZUJYUHF.js";
23
23
  import "./chunk-L6R43WQX.js";
24
- import "./chunk-VM4TCXGM.js";
24
+ import "./chunk-3MPDKA5K.js";
25
25
  import "./chunk-Z5KWGXYT.js";
26
- import "./chunk-RQOK4QB5.js";
26
+ import "./chunk-5WQ22SPX.js";
27
27
  import "./chunk-7NQ5744H.js";
28
- import "./chunk-6SP73YB7.js";
28
+ import "./chunk-UVOCENGW.js";
29
29
  import "./chunk-KB46RQZ6.js";
30
- import "./chunk-HXAO664S.js";
30
+ import "./chunk-4EITFMGW.js";
31
31
  import "./chunk-W5MTS4F6.js";
32
32
  import "./chunk-RVMIBNSQ.js";
33
33
  import "./chunk-TZ6WF5R4.js";
@@ -38,8 +38,8 @@ import "./chunk-VNXLQVFB.js";
38
38
  import "./chunk-T7PNSZ4T.js";
39
39
  import "./chunk-TQXZOQRM.js";
40
40
  import "./chunk-4WSV3B6X.js";
41
- import "./chunk-LAC5I6AM.js";
42
- import "./chunk-DQEH7YHZ.js";
41
+ import "./chunk-464OAKNK.js";
42
+ import "./chunk-5SDOA4AU.js";
43
43
  import "./chunk-ZPLSZ2KQ.js";
44
44
  import "./chunk-QDL3KUP4.js";
45
45
  import "./chunk-TZMJ37M6.js";
@@ -55,7 +55,7 @@ import "./chunk-WUFR74B4.js";
55
55
  import "./chunk-IX4H4YZT.js";
56
56
  import "./chunk-HHD6CUWZ.js";
57
57
  import "./chunk-H4FOOM4E.js";
58
- import "./chunk-G4KE7KT4.js";
58
+ import "./chunk-FUMDXWBG.js";
59
59
  import "./chunk-7IGFWASX.js";
60
60
  import "./chunk-RUDVOUQG.js";
61
61
  import "./chunk-66AVOIOA.js";
@@ -21,7 +21,7 @@ import {
21
21
  useEditorStore,
22
22
  useMode,
23
23
  useSelection
24
- } from "./chunk-DQEH7YHZ.js";
24
+ } from "./chunk-5SDOA4AU.js";
25
25
  import "./chunk-ZPLSZ2KQ.js";
26
26
  import "./chunk-QDL3KUP4.js";
27
27
  import "./chunk-TZMJ37M6.js";
@@ -6,17 +6,17 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  syncStatus
9
- } from "./chunk-6SP73YB7.js";
9
+ } from "./chunk-UVOCENGW.js";
10
10
  import "./chunk-KB46RQZ6.js";
11
11
  import {
12
12
  cachedLimits,
13
13
  isGuest,
14
14
  loadEntitlements
15
- } from "./chunk-HXAO664S.js";
15
+ } from "./chunk-4EITFMGW.js";
16
16
  import "./chunk-W5MTS4F6.js";
17
17
  import "./chunk-CKEJK7AD.js";
18
- import "./chunk-LAC5I6AM.js";
19
- import "./chunk-DQEH7YHZ.js";
18
+ import "./chunk-464OAKNK.js";
19
+ import "./chunk-5SDOA4AU.js";
20
20
  import "./chunk-ZPLSZ2KQ.js";
21
21
  import "./chunk-QDL3KUP4.js";
22
22
  import "./chunk-TZMJ37M6.js";
@@ -32,7 +32,7 @@ import "./chunk-WUFR74B4.js";
32
32
  import "./chunk-IX4H4YZT.js";
33
33
  import "./chunk-HHD6CUWZ.js";
34
34
  import "./chunk-H4FOOM4E.js";
35
- import "./chunk-G4KE7KT4.js";
35
+ import "./chunk-FUMDXWBG.js";
36
36
  import {
37
37
  PLANS,
38
38
  cloudApi,
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-KB46RQZ6.js";
13
13
  import {
14
14
  useEditorStore
15
- } from "./chunk-DQEH7YHZ.js";
15
+ } from "./chunk-5SDOA4AU.js";
16
16
  import "./chunk-ZPLSZ2KQ.js";
17
17
  import "./chunk-QDL3KUP4.js";
18
18
  import "./chunk-TZMJ37M6.js";
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  AiClientError,
17
17
  aiFetch
18
- } from "./chunk-VM4TCXGM.js";
18
+ } from "./chunk-3MPDKA5K.js";
19
19
  import {
20
20
  useAiStore
21
21
  } from "./chunk-Z5KWGXYT.js";
@@ -27,7 +27,7 @@ import {
27
27
  selectionWorldBounds
28
28
  } from "./chunk-S3PK7G6P.js";
29
29
  import "./chunk-VROHFO6I.js";
30
- import "./chunk-G4KE7KT4.js";
30
+ import "./chunk-FUMDXWBG.js";
31
31
  import "./chunk-7IGFWASX.js";
32
32
  import "./chunk-RUDVOUQG.js";
33
33
  import "./chunk-66AVOIOA.js";
@@ -18,7 +18,7 @@ import {
18
18
  runPluginWithImport,
19
19
  runningSessionFor,
20
20
  setEnabled
21
- } from "./chunk-DXXUFB7X.js";
21
+ } from "./chunk-NR3AJXQ4.js";
22
22
  import "./chunk-3QRMDZQA.js";
23
23
  import "./chunk-VIZ2BQWU.js";
24
24
  import "./chunk-7NYBUZSB.js";
@@ -28,9 +28,9 @@ import "./chunk-UN5VS5GP.js";
28
28
  import "./chunk-TUE3FJHT.js";
29
29
  import "./chunk-3J33ZEZN.js";
30
30
  import "./chunk-L6R43WQX.js";
31
- import "./chunk-6SP73YB7.js";
31
+ import "./chunk-UVOCENGW.js";
32
32
  import "./chunk-KB46RQZ6.js";
33
- import "./chunk-HXAO664S.js";
33
+ import "./chunk-4EITFMGW.js";
34
34
  import "./chunk-W5MTS4F6.js";
35
35
  import "./chunk-RVMIBNSQ.js";
36
36
  import "./chunk-TZ6WF5R4.js";
@@ -40,8 +40,8 @@ import "./chunk-QHCOW4XM.js";
40
40
  import "./chunk-C4FHNSTP.js";
41
41
  import "./chunk-VNXLQVFB.js";
42
42
  import "./chunk-4WSV3B6X.js";
43
- import "./chunk-LAC5I6AM.js";
44
- import "./chunk-DQEH7YHZ.js";
43
+ import "./chunk-464OAKNK.js";
44
+ import "./chunk-5SDOA4AU.js";
45
45
  import "./chunk-ZPLSZ2KQ.js";
46
46
  import "./chunk-QDL3KUP4.js";
47
47
  import "./chunk-TZMJ37M6.js";
@@ -58,7 +58,7 @@ import "./chunk-IX4H4YZT.js";
58
58
  import "./chunk-HHD6CUWZ.js";
59
59
  import "./chunk-JT5AP7SB.js";
60
60
  import "./chunk-H4FOOM4E.js";
61
- import "./chunk-G4KE7KT4.js";
61
+ import "./chunk-FUMDXWBG.js";
62
62
  import "./chunk-7IGFWASX.js";
63
63
  import "./chunk-RUDVOUQG.js";
64
64
  import "./chunk-66AVOIOA.js";
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  activeTeamWorkspaceId,
9
9
  useHyperyTeam
10
- } from "./chunk-G4KE7KT4.js";
10
+ } from "./chunk-FUMDXWBG.js";
11
11
  import {
12
12
  api
13
13
  } from "./chunk-7IGFWASX.js";