@popcraft/kit 0.63.1 → 0.63.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 (69) hide show
  1. package/dist/chunks/{agent-TC4R7FO3.js → agent-JG7NSI5F.js} +1 -1
  2. package/dist/chunks/{builtin-S5ZIF2CW.js → builtin-FIFCVY72.js} +3 -3
  3. package/dist/chunks/{buy-credits-NX4IKRL4.js → buy-credits-EQ6AJIN3.js} +2 -2
  4. package/dist/chunks/{check-template-NYEPYCTM.js → check-template-A2RJMYU6.js} +5 -5
  5. package/dist/chunks/{chunk-JNLOH2AQ.js → chunk-24KSG4GN.js} +1 -1
  6. package/dist/chunks/{chunk-Q3YFENIY.js → chunk-4NBICMS3.js} +1 -1
  7. package/dist/chunks/{chunk-CLIJ3E3Z.js → chunk-65OAEAWE.js} +3 -3
  8. package/dist/chunks/{chunk-MQUQPUKF.js → chunk-ATIE7UOI.js} +1 -1
  9. package/dist/chunks/{chunk-HIGYPQBI.js → chunk-C7JDUURH.js} +4 -4
  10. package/dist/chunks/{chunk-U7WOPEKL.js → chunk-D4HWELAE.js} +1 -0
  11. package/dist/chunks/{chunk-MELKX4NW.js → chunk-DBL7B4OB.js} +5 -5
  12. package/dist/chunks/{chunk-ESXL2G3V.js → chunk-DJYLXECR.js} +1 -1
  13. package/dist/chunks/{chunk-334TCRF7.js → chunk-E5HBVURV.js} +1 -1
  14. package/dist/chunks/{chunk-Z2SBSP5K.js → chunk-EQCYOX3Y.js} +2 -2
  15. package/dist/chunks/{chunk-B53ABTOG.js → chunk-F52J75FK.js} +9 -9
  16. package/dist/chunks/{chunk-QVTZYXSH.js → chunk-GUYFN7LO.js} +2 -2
  17. package/dist/chunks/{chunk-5VTWGO57.js → chunk-HA66E7QT.js} +1 -1
  18. package/dist/chunks/{chunk-ELWEUEOS.js → chunk-J3GNANCZ.js} +48 -48
  19. package/dist/chunks/{chunk-V4VAYPCO.js → chunk-KNQCCCBU.js} +11 -11
  20. package/dist/chunks/{chunk-5AOAK4TJ.js → chunk-LEGP3ASN.js} +2 -2
  21. package/dist/chunks/{chunk-HNOMTK44.js → chunk-MTDVLJF4.js} +4 -4
  22. package/dist/chunks/{chunk-YNK5WGBX.js → chunk-NEYUL4GW.js} +1 -1
  23. package/dist/chunks/{chunk-NFVIGUJG.js → chunk-O362LA7T.js} +6 -6
  24. package/dist/chunks/{chunk-VO6EGHQM.js → chunk-OUMQLK4A.js} +6 -6
  25. package/dist/chunks/{chunk-UCDKXXM3.js → chunk-R3NC5A2S.js} +5 -5
  26. package/dist/chunks/{chunk-QAN5PIJW.js → chunk-RTCAJDVY.js} +2 -2
  27. package/dist/chunks/{chunk-7SFOZBOW.js → chunk-VWBJ6L7Z.js} +2 -2
  28. package/dist/chunks/{chunk-EK2ICL57.js → chunk-ZYC5VHQK.js} +1 -1
  29. package/dist/chunks/{client-36LGR3J5.js → client-5QNLO3JY.js} +2 -2
  30. package/dist/chunks/{client-F6WIHULX.js → client-5TMC2L4Y.js} +1 -1
  31. package/dist/chunks/{client-LPTO34ZB.js → client-MIRO64O2.js} +3 -3
  32. package/dist/chunks/{client-actions-MAJY5DAV.js → client-actions-WWLJ7MX3.js} +5 -5
  33. package/dist/chunks/{components-O6O4G3BT.js → components-Z3CESEVJ.js} +2 -2
  34. package/dist/chunks/{dangerous-YLKVXJA7.js → dangerous-HG5JGBNY.js} +3 -3
  35. package/dist/chunks/{delete-current-file-CFPUNQHH.js → delete-current-file-A7QBWXXF.js} +5 -5
  36. package/dist/chunks/{editor-seams-LW6IEY6J.js → editor-seams-URUJLQ7N.js} +12 -12
  37. package/dist/chunks/{editor-store-DR4RXA2O.js → editor-store-64K4BZQD.js} +1 -1
  38. package/dist/chunks/{export-watermark-XDBNMZMG.js → export-watermark-MOUCFBIF.js} +5 -5
  39. package/dist/chunks/{eyedropper-ZJPQTSUO.js → eyedropper-X5XKGEJS.js} +1 -1
  40. package/dist/chunks/{generate-media-YTBQ6EZI.js → generate-media-6HQ7OOV6.js} +3 -3
  41. package/dist/chunks/{host-YGMXYIG2.js → host-IXHH7YAC.js} +3 -3
  42. package/dist/chunks/{host-P32F4EBR.js → host-ZRVHL6BJ.js} +6 -6
  43. package/dist/chunks/{integrations-Q6HZN3TJ.js → integrations-2SF3ET4I.js} +1 -1
  44. package/dist/chunks/{libraries-2X65YXKV.js → libraries-77NYGYPJ.js} +5 -5
  45. package/dist/chunks/{live-3J4GXNSU.js → live-KTVFWA3T.js} +1 -1
  46. package/dist/chunks/{media-tool-F4HLOEKV.js → media-tool-62E76O5U.js} +1 -1
  47. package/dist/chunks/{new-file-L4KX47TS.js → new-file-FHE6NDAP.js} +3 -3
  48. package/dist/chunks/{next-commerce-FC3LZGWQ.js → next-commerce-PNC3ZXDS.js} +3 -3
  49. package/dist/chunks/{plugin-S6YCBUKZ.js → plugin-N54NXNEW.js} +2 -2
  50. package/dist/chunks/{plugin-import-Y2T5PAFC.js → plugin-import-UVOZX5WB.js} +16 -16
  51. package/dist/chunks/{presence-BWDFXBX7.js → presence-2WWKQ6S2.js} +2 -2
  52. package/dist/chunks/{project-J4PSFEVC.js → project-J7JQIWYB.js} +4 -4
  53. package/dist/chunks/{publish-site-XHHHEOVK.js → publish-site-KTFDPQ3H.js} +6 -6
  54. package/dist/chunks/{publish-store-LDHDHSLQ.js → publish-store-HYYA4RXT.js} +6 -6
  55. package/dist/chunks/{raster-actions-GU7RQQCN.js → raster-actions-3GDZRPGH.js} +1 -1
  56. package/dist/chunks/{runner-TM333P67.js → runner-F22S6D6N.js} +18 -18
  57. package/dist/chunks/{store-IGAVD7VW.js → store-62BUYI77.js} +6 -6
  58. package/dist/chunks/{storefront-OMB6YHQG.js → storefront-LXMQJCHV.js} +4 -4
  59. package/dist/chunks/{storefront-prepare-46ZXGRO7.js → storefront-prepare-DLYWE3XR.js} +2 -2
  60. package/dist/chunks/{sync-OFYKYVRX.js → sync-NNGUR4LU.js} +5 -5
  61. package/dist/chunks/{tabs-PKP75AXO.js → tabs-BSIUM23F.js} +8 -8
  62. package/dist/chunks/{team-JFQWCSF5.js → team-CAOHTOO3.js} +1 -1
  63. package/dist/chunks/{team-client-2AN6LEGY.js → team-client-L3YDUTBT.js} +1 -1
  64. package/dist/chunks/{tools-F7AVOET3.js → tools-F4ZINAJC.js} +2 -2
  65. package/dist/chunks/{ui-commands-ZRQC2EXQ.js → ui-commands-XE2P64NB.js} +12 -12
  66. package/dist/chunks/{versions-QXYRM36B.js → versions-5A3SOLJV.js} +5 -5
  67. package/dist/chunks/{web-OQSGOY3Y.js → web-T7DCTA2I.js} +3 -3
  68. package/dist/index.js +1 -1
  69. package/package.json +1 -1
@@ -949,7 +949,7 @@ init_scene_graph();
949
949
  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.");
950
950
  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 });
951
951
  async function placeImportedPicture(ctx, imported, at2, what, extra = {}) {
952
- const client = await import("./client-F6WIHULX.js");
952
+ const client = await import("./client-5TMC2L4Y.js");
953
953
  if (at2.fillLayerId) {
954
954
  const doc2 = ctx.doc();
955
955
  const target = nodeOrThrow(doc2, at2.fillLayerId);
@@ -995,7 +995,7 @@ var photoSearch = defineCommand({
995
995
  }
996
996
  },
997
997
  run: async (args) => {
998
- const { searchStockPhotos } = await import("./client-F6WIHULX.js");
998
+ const { searchStockPhotos } = await import("./client-5TMC2L4Y.js");
999
999
  const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
1000
1000
  return {
1001
1001
  summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
@@ -1029,7 +1029,7 @@ var photoInsert = defineCommand({
1029
1029
  run: async (args, ctx) => {
1030
1030
  if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
1031
1031
  if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
1032
- const client = await import("./client-F6WIHULX.js");
1032
+ const client = await import("./client-5TMC2L4Y.js");
1033
1033
  let photo;
1034
1034
  if (args.id) photo = await client.stockPhotoInfo(args.id);
1035
1035
  else {
@@ -1067,10 +1067,10 @@ var mediaList = defineCommand({
1067
1067
  }
1068
1068
  },
1069
1069
  run: async (args) => {
1070
- const { listLibraryMedia } = await import("./client-36LGR3J5.js");
1070
+ const { listLibraryMedia } = await import("./client-5QNLO3JY.js");
1071
1071
  const q = { ...args };
1072
1072
  if (!q.workspace) {
1073
- const { syncStatus } = await import("./sync-OFYKYVRX.js");
1073
+ const { syncStatus } = await import("./sync-NNGUR4LU.js");
1074
1074
  const link2 = syncStatus().link;
1075
1075
  if (!link2) throw new ToolError("This document is not saved to the cloud, so it has no team media library. Pass workspace.");
1076
1076
  q.workspace = (await listLibraryMedia({ file: link2.key, limit: 1 })).workspaceId;
@@ -1105,7 +1105,7 @@ var mediaInsert = defineCommand({
1105
1105
  run: async (args, ctx) => {
1106
1106
  const contentType = args.contentType ?? "image/*";
1107
1107
  if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
1108
- const { importLibraryPicture } = await import("./client-36LGR3J5.js");
1108
+ const { importLibraryPicture } = await import("./client-5QNLO3JY.js");
1109
1109
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
1110
1110
  const imported = await importLibraryPicture(item);
1111
1111
  return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
@@ -1126,7 +1126,7 @@ var mediaDownload = defineCommand({
1126
1126
  // The Library's right-click menu: saves the item's file to the computer.
1127
1127
  expose: { ui: { label: "Download", palette: false } },
1128
1128
  run: async (args) => {
1129
- const { libraryBlob, libraryFileName } = await import("./client-36LGR3J5.js");
1129
+ const { libraryBlob, libraryFileName } = await import("./client-5QNLO3JY.js");
1130
1130
  const { downloadBlob } = await import("./download-G4F3QEWZ.js");
1131
1131
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
1132
1132
  const blob = await libraryBlob(item);
@@ -1157,7 +1157,7 @@ var mediaDelete = defineCommand({
1157
1157
  }
1158
1158
  },
1159
1159
  run: async (args) => {
1160
- const { deleteLibraryMedia } = await import("./client-36LGR3J5.js");
1160
+ const { deleteLibraryMedia } = await import("./client-5QNLO3JY.js");
1161
1161
  const out = await deleteLibraryMedia(args.workspace, args.hash);
1162
1162
  return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
1163
1163
  }
@@ -1171,13 +1171,13 @@ async function signedIn() {
1171
1171
  }
1172
1172
  async function publishedFile() {
1173
1173
  await signedIn();
1174
- const { openFileKey } = await import("./publish-site-XHHHEOVK.js");
1174
+ const { openFileKey } = await import("./publish-site-KTFDPQ3H.js");
1175
1175
  const key = openFileKey();
1176
1176
  if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
1177
1177
  return key;
1178
1178
  }
1179
1179
  async function formsWithoutDatabase(key) {
1180
- const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-DR4RXA2O.js"), import("./backend-5OR26XPV.js"), import("./integrations-Q6HZN3TJ.js")]);
1180
+ const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-64K4BZQD.js"), import("./backend-5OR26XPV.js"), import("./integrations-2SF3ET4I.js")]);
1181
1181
  const doc2 = useEditorStore.getState().document;
1182
1182
  if (!usesForms(doc2)) return false;
1183
1183
  return formsGoNowhere(doc2, await siteBackend(key).catch(() => void 0));
@@ -1213,7 +1213,7 @@ var publishSite = defineCommand({
1213
1213
  const { cleanSlug } = await import("./rules-4UDK7TMG.js");
1214
1214
  const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
1215
1215
  if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
1216
- const { publishOpenFile, NoScreens } = await import("./publish-site-XHHHEOVK.js");
1216
+ const { publishOpenFile, NoScreens } = await import("./publish-site-KTFDPQ3H.js");
1217
1217
  try {
1218
1218
  const done = await publishOpenFile(address);
1219
1219
  ctx.notice(`Published version ${done.version}: ${done.url}`);
@@ -1268,7 +1268,7 @@ var publishListSites = defineCommand({
1268
1268
  },
1269
1269
  run: async (p) => {
1270
1270
  await signedIn();
1271
- const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-Y2PSSVC7.js"), import("./team-JFQWCSF5.js")]);
1271
+ const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-Y2PSSVC7.js"), import("./team-CAOHTOO3.js")]);
1272
1272
  const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
1273
1273
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
1274
1274
  const out = await workspaceSites(workspaceId);
@@ -1317,12 +1317,12 @@ var publishStatus = defineCommand({
1317
1317
  },
1318
1318
  run: async () => {
1319
1319
  await signedIn();
1320
- const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-XHHHEOVK.js"), import("./sites-Y2PSSVC7.js")]);
1320
+ const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-KTFDPQ3H.js"), import("./sites-Y2PSSVC7.js")]);
1321
1321
  const key = openFileKey();
1322
1322
  const status = await siteStatus(key);
1323
1323
  const site = status.site;
1324
- const backend = key ? await (await import("./integrations-Q6HZN3TJ.js")).siteBackend(key).catch(() => null) : null;
1325
- const destinations = key ? await (await import("./integrations-Q6HZN3TJ.js")).listDestinations(key).catch(() => []) : [];
1324
+ const backend = key ? await (await import("./integrations-2SF3ET4I.js")).siteBackend(key).catch(() => null) : null;
1325
+ const destinations = key ? await (await import("./integrations-2SF3ET4I.js")).listDestinations(key).catch(() => []) : [];
1326
1326
  return {
1327
1327
  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}`,
1328
1328
  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 })) }
@@ -1353,7 +1353,7 @@ var publishStore = defineCommand({
1353
1353
  },
1354
1354
  run: async (p, ctx) => {
1355
1355
  await signedIn();
1356
- const { deployOpenStore } = await import("./publish-store-LDHDHSLQ.js");
1356
+ const { deployOpenStore } = await import("./publish-store-HYYA4RXT.js");
1357
1357
  const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
1358
1358
  throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
1359
1359
  });
@@ -1382,7 +1382,7 @@ var integrationList = defineCommand({
1382
1382
  }
1383
1383
  },
1384
1384
  run: async ({ capability }) => {
1385
- const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-HNH4PB2I.js"), import("./integrations-Q6HZN3TJ.js")]);
1385
+ const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-HNH4PB2I.js"), import("./integrations-2SF3ET4I.js")]);
1386
1386
  if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
1387
1387
  const workspaceId = integrationsWorkspaceId();
1388
1388
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
@@ -1423,7 +1423,7 @@ var integrationOpen = defineCommand({
1423
1423
  }
1424
1424
  });
1425
1425
  async function openFile() {
1426
- const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-HNH4PB2I.js"), import("./publish-site-XHHHEOVK.js")]);
1426
+ const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-HNH4PB2I.js"), import("./publish-site-KTFDPQ3H.js")]);
1427
1427
  if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
1428
1428
  const key = openFileKey();
1429
1429
  if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
@@ -1449,7 +1449,7 @@ var integrationListResources = defineCommand({
1449
1449
  }
1450
1450
  },
1451
1451
  run: async ({ connectionId, capability, path }) => {
1452
- const { listResources } = await import("./integrations-Q6HZN3TJ.js");
1452
+ const { listResources } = await import("./integrations-2SF3ET4I.js");
1453
1453
  const list = await listResources(connectionId, capability, asPath2(path));
1454
1454
  return {
1455
1455
  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",
@@ -1484,7 +1484,7 @@ var integrationAddDestination = defineCommand({
1484
1484
  },
1485
1485
  run: async (p, ctx) => {
1486
1486
  const key = await openFile();
1487
- const { addDestination, createDestination, createResource } = await import("./integrations-Q6HZN3TJ.js");
1487
+ const { addDestination, createDestination, createResource } = await import("./integrations-2SF3ET4I.js");
1488
1488
  let made;
1489
1489
  if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
1490
1490
  else {
@@ -1521,7 +1521,7 @@ var integrationDeploy = defineCommand({
1521
1521
  },
1522
1522
  run: async (p, ctx) => {
1523
1523
  const key = await openFile();
1524
- const { deployDestination, listDestinations } = await import("./integrations-Q6HZN3TJ.js");
1524
+ const { deployDestination, listDestinations } = await import("./integrations-2SF3ET4I.js");
1525
1525
  const all = await listDestinations(key);
1526
1526
  const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
1527
1527
  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");
@@ -1555,7 +1555,7 @@ var integrationAttachDatabase = defineCommand({
1555
1555
  },
1556
1556
  run: async (p, ctx) => {
1557
1557
  const key = await openFile();
1558
- const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-Q6HZN3TJ.js");
1558
+ const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-2SF3ET4I.js");
1559
1559
  if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
1560
1560
  if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
1561
1561
  let target = asPath2(p.target);
@@ -1594,7 +1594,7 @@ var integrationSubmissions = defineCommand({
1594
1594
  },
1595
1595
  run: async ({ form, limit }) => {
1596
1596
  const key = await openFile();
1597
- const { listSubmissions } = await import("./integrations-Q6HZN3TJ.js");
1597
+ const { listSubmissions } = await import("./integrations-2SF3ET4I.js");
1598
1598
  const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
1599
1599
  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 } };
1600
1600
  }
@@ -1619,7 +1619,7 @@ var integrationSetSignIn = defineCommand({
1619
1619
  },
1620
1620
  run: async ({ on }, ctx) => {
1621
1621
  const key = await openFile();
1622
- const { setSignIn } = await import("./integrations-Q6HZN3TJ.js");
1622
+ const { setSignIn } = await import("./integrations-2SF3ET4I.js");
1623
1623
  const done = await setSignIn(key, on);
1624
1624
  ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
1625
1625
  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 } };
@@ -1837,7 +1837,7 @@ var fontTeamList = defineCommand({
1837
1837
  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)." }
1838
1838
  },
1839
1839
  run: async (args) => {
1840
- const { refreshTeamFonts } = await import("./team-client-2AN6LEGY.js");
1840
+ const { refreshTeamFonts } = await import("./team-client-L3YDUTBT.js");
1841
1841
  const fonts = await refreshTeamFonts(args.workspace);
1842
1842
  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 })) } };
1843
1843
  }
@@ -1864,7 +1864,7 @@ var fontTeamAdd = defineCommand({
1864
1864
  run: async (args, ctx) => {
1865
1865
  const { bytes, fileName: fileName2 } = await fontBytes(args, ctx);
1866
1866
  const { face, family, weight, style } = await resolveFace(bytes, args);
1867
- const { uploadTeamFont } = await import("./team-client-2AN6LEGY.js");
1867
+ const { uploadTeamFont } = await import("./team-client-L3YDUTBT.js");
1868
1868
  const font = await uploadTeamFont(bytes, { family, weight, style, face: face.index, fileName: fileName2 }, args.workspace);
1869
1869
  return { summary: `Added ${family} ${weight}${style === "italic" ? " italic" : ""} to the team`, data: { font } };
1870
1870
  }
@@ -1886,7 +1886,7 @@ var fontTeamRemove = defineCommand({
1886
1886
  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." }
1887
1887
  },
1888
1888
  run: async (args) => {
1889
- const { removeTeamFont } = await import("./team-client-2AN6LEGY.js");
1889
+ const { removeTeamFont } = await import("./team-client-L3YDUTBT.js");
1890
1890
  const out = await removeTeamFont(args.id, args.workspace);
1891
1891
  return { summary: `Removed the team font${out.freed ? " and freed its storage" : ""}`, data: out };
1892
1892
  }
@@ -1897,7 +1897,7 @@ var fontTeamCommands = [fontTeamList, fontTeamAdd];
1897
1897
  init_define_POPCRAFT_COMPONENT_IDS();
1898
1898
  async function cloudFile() {
1899
1899
  const [{ syncStatus }, { cloudUser }] = await Promise.all([
1900
- import("./sync-OFYKYVRX.js"),
1900
+ import("./sync-NNGUR4LU.js"),
1901
1901
  import("./session-HNH4PB2I.js")
1902
1902
  ]);
1903
1903
  const link2 = syncStatus().link;
@@ -1959,7 +1959,7 @@ var fileTrash = defineCommand({
1959
1959
  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." }
1960
1960
  },
1961
1961
  run: async () => {
1962
- const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-CFPUNQHH.js");
1962
+ const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-A7QBWXXF.js");
1963
1963
  const { name: name2, kind } = await deleteCurrentFile();
1964
1964
  leaveDeletedFile();
1965
1965
  return { summary: kind === "cloud" ? `Moved \u201C${name2}\u201D to the Trash` : `Deleted \u201C${name2}\u201D` };
@@ -2072,11 +2072,11 @@ var fileDuplicate = defineCommand({
2072
2072
  },
2073
2073
  run: async (_p, ctx) => {
2074
2074
  const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
2075
- import("./sync-OFYKYVRX.js"),
2075
+ import("./sync-NNGUR4LU.js"),
2076
2076
  import("./api-MJP2KJ33.js"),
2077
2077
  import("./tab-mode-TWDN4YFP.js"),
2078
- import("./tabs-PKP75AXO.js"),
2079
- import("./sync-OFYKYVRX.js"),
2078
+ import("./tabs-BSIUM23F.js"),
2079
+ import("./sync-NNGUR4LU.js"),
2080
2080
  import("./dist-node-6HK4MDGF.js")
2081
2081
  ]);
2082
2082
  const doc2 = ctx.doc();
@@ -4953,7 +4953,7 @@ var viewCopyLink = defineCommand({
4953
4953
  },
4954
4954
  run: async (args, ctx) => {
4955
4955
  const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
4956
- import("./sync-OFYKYVRX.js"),
4956
+ import("./sync-NNGUR4LU.js"),
4957
4957
  import("./api-MJP2KJ33.js"),
4958
4958
  import("./deep-link-QXZ6BPDJ.js")
4959
4959
  ]);
@@ -5278,7 +5278,7 @@ var pageGo = defineCommand({
5278
5278
  ] }
5279
5279
  },
5280
5280
  run: async ({ to }) => {
5281
- const { useEditorStore } = await import("./editor-store-DR4RXA2O.js");
5281
+ const { useEditorStore } = await import("./editor-store-64K4BZQD.js");
5282
5282
  useEditorStore.getState().goToPrintPage(to);
5283
5283
  return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
5284
5284
  }
@@ -5312,7 +5312,7 @@ var pageSetup = defineCommand({
5312
5312
  }
5313
5313
  },
5314
5314
  run: async (args) => {
5315
- const { useEditorStore } = await import("./editor-store-DR4RXA2O.js");
5315
+ const { useEditorStore } = await import("./editor-store-64K4BZQD.js");
5316
5316
  useEditorStore.getState().applyPageSetup(args);
5317
5317
  return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
5318
5318
  }
@@ -5750,7 +5750,7 @@ async function docAtTime(doc2, ids, time2) {
5750
5750
  let frameId;
5751
5751
  if (time2 === void 0) {
5752
5752
  try {
5753
- const { useEditorStore } = await import("./editor-store-DR4RXA2O.js");
5753
+ const { useEditorStore } = await import("./editor-store-64K4BZQD.js");
5754
5754
  const st = useEditorStore.getState();
5755
5755
  const target = st.transport?.target;
5756
5756
  if (st.mode !== "ANIMATE" || target?.kind !== "frame") return doc2;
@@ -6144,7 +6144,7 @@ async function runAnimationExport(format, args, ctx) {
6144
6144
  const filename = exportFileName(args.filename || targetName(doc2, target), format);
6145
6145
  const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-MONR3KYO.js"), import("./destination-75O3SAQ7.js")]);
6146
6146
  if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
6147
- const planWatermark = format !== "png" && await (await import("./export-watermark-XDBNMZMG.js")).exportWatermark();
6147
+ const planWatermark = format !== "png" && await (await import("./export-watermark-MOUCFBIF.js")).exportWatermark();
6148
6148
  if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
6149
6149
  const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
6150
6150
  let stats;
@@ -6230,8 +6230,8 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
6230
6230
  });
6231
6231
  async function exportSite(doc2, pageId2, packaging, styling = "css", siteUrl) {
6232
6232
  const [{ completeSite, nextFilesOf, shareImageFiles, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
6233
- import("./project-J4PSFEVC.js"),
6234
- import("./web-OQSGOY3Y.js"),
6233
+ import("./project-J7JQIWYB.js"),
6234
+ import("./web-T7DCTA2I.js"),
6235
6235
  import("./zip-export-UR4GGFYY.js"),
6236
6236
  import("./download-G4F3QEWZ.js")
6237
6237
  ]);
@@ -6273,7 +6273,7 @@ var exportWeb = reportsMissingFonts(defineCommand({
6273
6273
  const id = args.id ?? ctx.selection()[0] ?? doc2.nodes[ctx.pageId()]?.childIds?.[0];
6274
6274
  const node = id ? doc2.nodes[id] : void 0;
6275
6275
  if (!node) throw new ToolError("Select a frame or layer to export.");
6276
- const { webTreeFor, extensionFor, externalAssets, fileBase, resolveWebAssets, serializeFor, flatten } = await import("./web-OQSGOY3Y.js");
6276
+ const { webTreeFor, extensionFor, externalAssets, fileBase, resolveWebAssets, serializeFor, flatten } = await import("./web-T7DCTA2I.js");
6277
6277
  const { rendererAssetResolvers } = await import("./resolvers-6PSW2BRF.js");
6278
6278
  const { downloadBlob } = await import("./download-G4F3QEWZ.js");
6279
6279
  const tree = webTreeFor(doc2, node.id, lang, { nodeCap: EXPORT_NODE_CAP, fullImageUrls: true });
@@ -6322,17 +6322,17 @@ var exportStorefront = defineCommand({
6322
6322
  run: async (args, ctx) => {
6323
6323
  const doc2 = ctx.doc();
6324
6324
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
6325
- import("./storefront-prepare-46ZXGRO7.js"),
6326
- import("./storefront-OMB6YHQG.js"),
6327
- import("./project-J4PSFEVC.js"),
6328
- import("./web-OQSGOY3Y.js"),
6325
+ import("./storefront-prepare-DLYWE3XR.js"),
6326
+ import("./storefront-LXMQJCHV.js"),
6327
+ import("./project-J7JQIWYB.js"),
6328
+ import("./web-T7DCTA2I.js"),
6329
6329
  import("./zip-export-UR4GGFYY.js"),
6330
6330
  import("./download-G4F3QEWZ.js")
6331
6331
  ]);
6332
6332
  const target = STOREFRONT_TARGETS[args.target];
6333
6333
  const { screens, media } = await storefrontInputs(doc2, ctx.pageId(), EXPORT_NODE_CAP);
6334
6334
  if (!screens.length) throw new ToolError("This page has no screens: a top-level frame is a page of the store.");
6335
- const files = args.target === "next-commerce" && args.dir ? (await import("./components-O6O4G3BT.js")).componentFiles(doc2, screens, { styling: args.styling, dir: args.dir, media }) : target.files(doc2, screens, { media, styling: args.styling });
6335
+ const files = args.target === "next-commerce" && args.dir ? (await import("./components-Z3CESEVJ.js")).componentFiles(doc2, screens, { styling: args.styling, dir: args.dir, media }) : target.files(doc2, screens, { media, styling: args.styling });
6336
6336
  const base = `${fileBase(doc2.name)}-${args.target}`;
6337
6337
  downloadBlob(zipFiles(files.map((f) => ({ name: f.path, bytes: bytesOf(f) }))), `${base}.zip`);
6338
6338
  const bound = screens.filter((s) => s.about || flatten(s.tree.root).some((n) => n.repeat && doc2.collections?.[n.repeat.collectionId]?.schema)).length;
@@ -6719,7 +6719,7 @@ var visionRegenerateImage = defineCommand({
6719
6719
  const id = args.id ?? ctx.selection()[0];
6720
6720
  if (!id) throw new ToolError("Select a generated image to regenerate.");
6721
6721
  nodeOrThrow(ctx.doc(), id);
6722
- const { regenerateImage } = await import("./client-actions-MAJY5DAV.js");
6722
+ const { regenerateImage } = await import("./client-actions-WWLJ7MX3.js");
6723
6723
  regenerateImage(id, args.count);
6724
6724
  return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
6725
6725
  }
@@ -11937,7 +11937,7 @@ var scriptRun = defineCommand({
11937
11937
  // A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
11938
11938
  actor: { ...ctx.actor, nested: true, label: "Script" },
11939
11939
  // A look_at inside the script sees the document as the script has left it so far, not as it was before.
11940
- use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-TC4R7FO3.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
11940
+ use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-JG7NSI5F.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
11941
11941
  };
11942
11942
  let calls = 0;
11943
11943
  const images = [];
@@ -12757,7 +12757,7 @@ var docImportFile = defineCommand({
12757
12757
  const file = new File([body], args.name);
12758
12758
  if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
12759
12759
  const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
12760
- import("./plugin-import-Y2T5PAFC.js"),
12760
+ import("./plugin-import-UVOZX5WB.js"),
12761
12761
  import("./import-merge-772P4D44.js")
12762
12762
  ]);
12763
12763
  const built = await buildImportedDocument(file);
@@ -6,14 +6,14 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  pluginRun
9
- } from "./chunk-NFVIGUJG.js";
9
+ } from "./chunk-O362LA7T.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-ELWEUEOS.js";
16
+ } from "./chunk-J3GNANCZ.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-VPMMB3C2.js";
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
53
53
  }
54
54
  },
55
55
  run: async ({ on }, ctx) => {
56
- const { setSpotlight } = await import("./presence-BWDFXBX7.js");
56
+ const { setSpotlight } = await import("./presence-2WWKQ6S2.js");
57
57
  setSpotlight(on);
58
58
  ctx.notice(on ? "Spotlight on \u2014 everyone is following this view." : "Spotlight off.");
59
59
  return { summary: on ? "Spotlight on" : "Spotlight off", data: { spotlight: on } };
@@ -80,7 +80,7 @@ var collabRevealPrivate = defineCommand({
80
80
  }
81
81
  },
82
82
  run: async (_p, ctx) => {
83
- const { useEditorStore } = await import("./editor-store-DR4RXA2O.js");
83
+ const { useEditorStore } = await import("./editor-store-64K4BZQD.js");
84
84
  const before = Object.values(useEditorStore.getState().document.nodes).filter((n) => n.privateTo).length;
85
85
  useEditorStore.getState().revealPrivate();
86
86
  ctx.notice(before ? `Revealed ${before} private item${before === 1 ? "" : "s"}.` : "Nothing was private.");
@@ -144,7 +144,7 @@ var documentDelete = defineCommand({
144
144
  }
145
145
  },
146
146
  run: async ({ id }, ctx) => {
147
- const { useEditorStore } = await import("./editor-store-DR4RXA2O.js");
147
+ const { useEditorStore } = await import("./editor-store-64K4BZQD.js");
148
148
  const wasOpen = useEditorStore.getState().document.id === id;
149
149
  await useEditorStore.getState().deleteDocument(id);
150
150
  ctx.notice("Deleted the document.");
@@ -188,7 +188,7 @@ var libraryPublish = defineCommand({
188
188
  }
189
189
  },
190
190
  run: async (p, ctx) => {
191
- const { publishLibrary } = await import("./libraries-2X65YXKV.js");
191
+ const { publishLibrary } = await import("./libraries-77NYGYPJ.js");
192
192
  const doc = ctx.doc();
193
193
  const pick = {
194
194
  componentIds: p.componentIds ?? Object.keys(doc.components ?? {}),
@@ -220,7 +220,7 @@ var libraryUnpublish = defineCommand({
220
220
  },
221
221
  run: async ({ libraryId }, ctx) => {
222
222
  if (!libraryId.trim()) throw new CommandError("Which library? Pass its `libraryId`.", "invalid_params");
223
- const { unpublishLibrary } = await import("./libraries-2X65YXKV.js");
223
+ const { unpublishLibrary } = await import("./libraries-77NYGYPJ.js");
224
224
  await unpublishLibrary(libraryId);
225
225
  ctx.notice(`Unpublished library ${libraryId}.`);
226
226
  return { summary: `Unpublished library ${libraryId}`, data: { libraryId, unpublished: true } };
@@ -232,8 +232,8 @@ var libraryCommands = [libraryPublish, libraryUnpublish];
232
232
  init_define_POPCRAFT_COMPONENT_IDS();
233
233
  async function findVersion(id) {
234
234
  const [{ useEditorStore }, { versionLabel }] = await Promise.all([
235
- import("./editor-store-DR4RXA2O.js"),
236
- import("./versions-QXYRM36B.js")
235
+ import("./editor-store-64K4BZQD.js"),
236
+ import("./versions-5A3SOLJV.js")
237
237
  ]);
238
238
  const meta = useEditorStore.getState().versions.find((v) => v.id === id);
239
239
  if (!meta) {
@@ -266,7 +266,7 @@ var versionRestore = defineCommand({
266
266
  },
267
267
  run: async ({ id }) => {
268
268
  const found = await findVersion(id);
269
- const { restoreVersion } = await import("./versions-QXYRM36B.js");
269
+ const { restoreVersion } = await import("./versions-5A3SOLJV.js");
270
270
  await restoreVersion(found.meta);
271
271
  return { summary: `Restored \u201C${found.label}\u201D`, data: { id, label: found.label, restored: true } };
272
272
  }
@@ -291,7 +291,7 @@ var versionDelete = defineCommand({
291
291
  },
292
292
  run: async ({ id }, ctx) => {
293
293
  const found = await findVersion(id);
294
- const { deleteVersion } = await import("./versions-QXYRM36B.js");
294
+ const { deleteVersion } = await import("./versions-5A3SOLJV.js");
295
295
  await deleteVersion(found.meta);
296
296
  ctx.notice(`Deleted the version \u201C${found.label}\u201D.`);
297
297
  return { summary: `Deleted the version \u201C${found.label}\u201D`, data: { id, label: found.label, deleted: true } };
@@ -11,11 +11,11 @@ import {
11
11
  import {
12
12
  serializeCSS,
13
13
  serializeHTML
14
- } from "./chunk-YNK5WGBX.js";
14
+ } from "./chunk-NEYUL4GW.js";
15
15
  import {
16
16
  serializeReact,
17
17
  serializeTailwind
18
- } from "./chunk-U7WOPEKL.js";
18
+ } from "./chunk-D4HWELAE.js";
19
19
  import {
20
20
  altFor,
21
21
  buildWebTree,
@@ -17,14 +17,14 @@ import {
17
17
  reportOpenStage,
18
18
  setCloudLink,
19
19
  trackOpen
20
- } from "./chunk-Z2SBSP5K.js";
20
+ } from "./chunk-EQCYOX3Y.js";
21
21
  import {
22
22
  parseDeepLink,
23
23
  withDeepLink
24
24
  } from "./chunk-XNUX4MRE.js";
25
25
  import {
26
26
  activeTeamWorkspaceId
27
- } from "./chunk-334TCRF7.js";
27
+ } from "./chunk-E5HBVURV.js";
28
28
  import {
29
29
  ApiError,
30
30
  api,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-N6ZQJYXS.js";
33
33
  import {
34
34
  attachPresence
35
- } from "./chunk-MQUQPUKF.js";
35
+ } from "./chunk-ATIE7UOI.js";
36
36
  import {
37
37
  fileOpeningMode,
38
38
  isAppleMobile,
@@ -45,7 +45,7 @@ import {
45
45
  setCollabHistory,
46
46
  storedDocument,
47
47
  useEditorStore
48
- } from "./chunk-MELKX4NW.js";
48
+ } from "./chunk-DBL7B4OB.js";
49
49
  import {
50
50
  currentHistoryGroup
51
51
  } from "./chunk-XYXJGZE5.js";
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  classNameFor,
9
9
  interactiveSpec
10
- } from "./chunk-U7WOPEKL.js";
10
+ } from "./chunk-D4HWELAE.js";
11
11
  import {
12
12
  fontFaceRules,
13
13
  fontsHref
@@ -12,7 +12,7 @@ import {
12
12
  hostEnv,
13
13
  plain,
14
14
  registerBuiltinCommands
15
- } from "./chunk-ELWEUEOS.js";
15
+ } from "./chunk-J3GNANCZ.js";
16
16
  import {
17
17
  external_exports
18
18
  } from "./chunk-VPMMB3C2.js";
@@ -626,7 +626,7 @@ var commands = [
626
626
  // A storefront design in a neutral form (lib/io/web/project/storefront.ts `storefrontDesign`): what an exporter
627
627
  // plugin turns into its own store's templates, as PopCraft turns it into a Next.js Commerce store (the Ecommerce plugin makes a Shopify theme of it).
628
628
  run: async (_p, ctx) => {
629
- const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-O6O4G3BT.js"), import("./storefront-OMB6YHQG.js")]);
629
+ const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-Z3CESEVJ.js"), import("./storefront-LXMQJCHV.js")]);
630
630
  const doc = ctx.doc();
631
631
  const design = storefrontDesign(doc, componentScreens(doc, ctx.pageId()));
632
632
  return { summary: `Storefront: ${design.pages.length} pages`, data: design };
@@ -644,9 +644,9 @@ var commands = [
644
644
  // saves (the Ecommerce plugin's Shopify theme), so a target is written once, here, and never again in a plugin.
645
645
  run: async (p, ctx) => {
646
646
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
647
- import("./storefront-prepare-46ZXGRO7.js"),
648
- import("./storefront-OMB6YHQG.js"),
649
- import("./project-J4PSFEVC.js"),
647
+ import("./storefront-prepare-DLYWE3XR.js"),
648
+ import("./storefront-LXMQJCHV.js"),
649
+ import("./project-J7JQIWYB.js"),
650
650
  import("./zip-export-UR4GGFYY.js"),
651
651
  import("./tree-PBB77TXT.js")
652
652
  ]);
@@ -843,7 +843,7 @@ var pluginRun = defineCommand({
843
843
  }
844
844
  },
845
845
  run: async (p, ctx) => {
846
- const { runPlugin } = await import("./host-P32F4EBR.js");
846
+ const { runPlugin } = await import("./host-ZRVHL6BJ.js");
847
847
  await runPlugin(p.pluginId, p.commandId);
848
848
  ctx.notice(`Started ${p.pluginId}.`);
849
849
  return {
@@ -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-B53ABTOG.js";
9
+ } from "./chunk-F52J75FK.js";
10
10
  import {
11
11
  storeOpsSeam
12
12
  } from "./chunk-UVWTSHLG.js";
@@ -23,17 +23,17 @@ import {
23
23
  sameResolution,
24
24
  surfaceSize,
25
25
  windowCssSize
26
- } from "./chunk-ELWEUEOS.js";
26
+ } from "./chunk-J3GNANCZ.js";
27
27
  import {
28
28
  notice
29
- } from "./chunk-QAN5PIJW.js";
29
+ } from "./chunk-RTCAJDVY.js";
30
30
  import {
31
31
  agentContext
32
- } from "./chunk-CLIJ3E3Z.js";
32
+ } from "./chunk-65OAEAWE.js";
33
33
  import {
34
34
  collabSession,
35
35
  syncStatus
36
- } from "./chunk-HNOMTK44.js";
36
+ } from "./chunk-MTDVLJF4.js";
37
37
  import {
38
38
  loadEntitlements
39
39
  } from "./chunk-QDH7K5TG.js";
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  persist,
49
49
  useEditorStore
50
- } from "./chunk-MELKX4NW.js";
50
+ } from "./chunk-DBL7B4OB.js";
51
51
  import {
52
52
  create
53
53
  } from "./chunk-YB2RTI5I.js";
@@ -21,14 +21,14 @@ import {
21
21
  } from "./chunk-B2HNUDGB.js";
22
22
  import {
23
23
  syncStatus
24
- } from "./chunk-HNOMTK44.js";
24
+ } from "./chunk-MTDVLJF4.js";
25
25
  import {
26
26
  usePluginStore
27
27
  } from "./chunk-ZJNIMDB7.js";
28
28
  import {
29
29
  setPluginTabs,
30
30
  useEditorStore
31
- } from "./chunk-MELKX4NW.js";
31
+ } from "./chunk-DBL7B4OB.js";
32
32
  import {
33
33
  openBeside
34
34
  } from "./chunk-IZU62IK5.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-S6YCBUKZ.js");
72
+ const { dispatchPluginCall } = await import("./plugin-N54NXNEW.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-L4KX47TS.js");
589
+ const { createFreshFileOrExplain } = await import("./new-file-FHE6NDAP.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);
@@ -795,7 +795,7 @@ if (typeof window !== "undefined") {
795
795
  const name = d.name || "Imported";
796
796
  void (async () => {
797
797
  try {
798
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-Y2T5PAFC.js");
798
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-UVOZX5WB.js");
799
799
  if (d.ir && typeof d.ir === "object") {
800
800
  await applyPluginLayoutIr(d.ir, { mode, name });
801
801
  return;