@popcraft/kit 1.8.0 → 1.8.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 (74) hide show
  1. package/dist/chunks/{agent-3VMEBCB4.js → agent-ODO74SIV.js} +1 -1
  2. package/dist/chunks/{builtin-VFXWVSBY.js → builtin-EII5VCM3.js} +5 -5
  3. package/dist/chunks/{buy-credits-7NG7NUTF.js → buy-credits-65JK3LLZ.js} +2 -2
  4. package/dist/chunks/{check-template-5X4TXV2I.js → check-template-7YXRYNNX.js} +7 -7
  5. package/dist/chunks/{chunk-S2KHVXP2.js → chunk-2FWXMRVF.js} +2 -2
  6. package/dist/chunks/{chunk-FH65BZ6F.js → chunk-3TKQ66IS.js} +11 -11
  7. package/dist/chunks/{chunk-SVX3BJJ5.js → chunk-6RPZOVA4.js} +1 -1
  8. package/dist/chunks/{chunk-Z2SAV6RK.js → chunk-6YAILHPA.js} +2 -2
  9. package/dist/chunks/{chunk-4VW6TW52.js → chunk-ADLP6AWG.js} +9 -9
  10. package/dist/chunks/{chunk-35H4YW5F.js → chunk-BKZYRRAQ.js} +6 -6
  11. package/dist/chunks/{chunk-KOX6DC7O.js → chunk-BW4D7VH5.js} +4 -4
  12. package/dist/chunks/{chunk-KKWKWUNN.js → chunk-CEHD6QNX.js} +3 -3
  13. package/dist/chunks/{chunk-X56SU5PL.js → chunk-CKX33B5C.js} +2 -2
  14. package/dist/chunks/{chunk-L6A4A4DT.js → chunk-FBL4ASBX.js} +2 -2
  15. package/dist/chunks/{chunk-P36U2QHT.js → chunk-HAG56W4M.js} +5 -5
  16. package/dist/chunks/{chunk-SUK4OYMS.js → chunk-HHLH2UZT.js} +1 -1
  17. package/dist/chunks/{chunk-4EQHP25T.js → chunk-ICON5HSN.js} +2 -2
  18. package/dist/chunks/{chunk-D3EQULKF.js → chunk-J26TD72C.js} +1 -1
  19. package/dist/chunks/{chunk-3RXYVVPS.js → chunk-M6SDH5WZ.js} +2 -2
  20. package/dist/chunks/{chunk-K3WWCTDF.js → chunk-NBNQGYDL.js} +19 -10
  21. package/dist/chunks/{chunk-23WKZQQP.js → chunk-NTLOVRAT.js} +3 -3
  22. package/dist/chunks/{chunk-UY4AQKUC.js → chunk-PB6EJ3VE.js} +1 -1
  23. package/dist/chunks/{chunk-RTL5OPT4.js → chunk-Q7XPI4LU.js} +1 -1
  24. package/dist/chunks/{chunk-RUMXL7TT.js → chunk-QL54YHU7.js} +1 -1
  25. package/dist/chunks/{chunk-L52UVZ4H.js → chunk-QOQL5TG3.js} +1 -1
  26. package/dist/chunks/{chunk-H3QJ4FGV.js → chunk-SMTX3YP4.js} +49 -49
  27. package/dist/chunks/{chunk-VDPCKGMN.js → chunk-TRRACONE.js} +7 -7
  28. package/dist/chunks/{chunk-4FHDWGCD.js → chunk-U2ZK3HJ2.js} +6 -6
  29. package/dist/chunks/{chunk-4ASS3JJJ.js → chunk-WIPRGU5D.js} +1 -1
  30. package/dist/chunks/{chunk-NKFAJTBR.js → chunk-Y26IR3XY.js} +2 -2
  31. package/dist/chunks/{chunk-LGCGRZNK.js → chunk-YA2PYFVZ.js} +1 -1
  32. package/dist/chunks/{client-3AR5LMWO.js → client-FQ7LIPAK.js} +3 -3
  33. package/dist/chunks/{client-4DPA75PJ.js → client-QXWIFTBL.js} +2 -2
  34. package/dist/chunks/{client-NFKHKPDL.js → client-T4NMSPEC.js} +1 -1
  35. package/dist/chunks/{client-actions-6YTCHAFN.js → client-actions-L6FP6DP5.js} +5 -5
  36. package/dist/chunks/{components-GIX6DGC5.js → components-G3KKHF4W.js} +4 -4
  37. package/dist/chunks/{dangerous-C5OJSIA4.js → dangerous-CN4FK4K2.js} +5 -5
  38. package/dist/chunks/{delete-current-file-CGB4JSWH.js → delete-current-file-BXUU3YDL.js} +5 -5
  39. package/dist/chunks/{editor-seams-CPQXKVQD.js → editor-seams-VR5WEMKQ.js} +14 -14
  40. package/dist/chunks/{editor-store-LZMCUPSM.js → editor-store-CLHG4QMC.js} +1 -1
  41. package/dist/chunks/{export-watermark-4FVFQ7EQ.js → export-watermark-MK5GQIVR.js} +5 -5
  42. package/dist/chunks/{eyedropper-NEB7U3XN.js → eyedropper-BJMWVXAO.js} +1 -1
  43. package/dist/chunks/{generate-media-JNSFV7X2.js → generate-media-GDI4AMLM.js} +3 -3
  44. package/dist/chunks/{host-PLP67PLR.js → host-34EZWHDU.js} +5 -5
  45. package/dist/chunks/{host-Q2B5JDF6.js → host-QJI5VIFQ.js} +6 -6
  46. package/dist/chunks/{integrations-Q5LMI7GJ.js → integrations-3KJWPEGA.js} +1 -1
  47. package/dist/chunks/{libraries-RN3FPNA4.js → libraries-6BOXZTPS.js} +5 -5
  48. package/dist/chunks/{live-U6T4WDTA.js → live-LIQ32RHJ.js} +1 -1
  49. package/dist/chunks/{media-tool-KCK4GFQY.js → media-tool-H3CNAVPZ.js} +1 -1
  50. package/dist/chunks/{new-file-EEIKLZKU.js → new-file-OPZ4HWAL.js} +3 -3
  51. package/dist/chunks/{next-commerce-76YNE7N4.js → next-commerce-Z4QO52KL.js} +6 -6
  52. package/dist/chunks/{plugin-5B2JXIAG.js → plugin-UCUUITRZ.js} +4 -4
  53. package/dist/chunks/{plugin-import-SSUSTL7V.js → plugin-import-VJDKNFPE.js} +18 -18
  54. package/dist/chunks/{presence-4OSUD5JN.js → presence-K46Y5AGD.js} +2 -2
  55. package/dist/chunks/{present-physics-KYZBNAVG.js → present-physics-FHMMPOFT.js} +2 -2
  56. package/dist/chunks/{project-TLJXPUXS.js → project-FRB4R73B.js} +6 -6
  57. package/dist/chunks/{publish-site-ZM2RYCGU.js → publish-site-GLNTAKHT.js} +6 -6
  58. package/dist/chunks/{publish-store-AHEXCLYK.js → publish-store-UWPAZ7VT.js} +8 -8
  59. package/dist/chunks/{raster-actions-U7F5FZJS.js → raster-actions-64TJYFEP.js} +1 -1
  60. package/dist/chunks/{runner-3X5C2MOH.js → runner-ZIHFK45A.js} +20 -20
  61. package/dist/chunks/{store-EQALPZRM.js → store-3C2KQNYF.js} +6 -6
  62. package/dist/chunks/{storefront-DASOKGXT.js → storefront-D6BBFNOK.js} +7 -7
  63. package/dist/chunks/{storefront-prepare-543VBJ2B.js → storefront-prepare-RSUGQZN4.js} +2 -2
  64. package/dist/chunks/{sync-6A34IQQE.js → sync-JWGSNCXM.js} +5 -5
  65. package/dist/chunks/{tabs-SV6BGUSZ.js → tabs-B72KGPKW.js} +8 -8
  66. package/dist/chunks/{team-KNYMXICM.js → team-HJMNNMGO.js} +1 -1
  67. package/dist/chunks/{team-client-6E6HCYGW.js → team-client-EJV4YFOX.js} +1 -1
  68. package/dist/chunks/{tools-KGOJSW5W.js → tools-KKFGAXNC.js} +2 -2
  69. package/dist/chunks/{tree-BMHSJ6SG.js → tree-PZTCVNQQ.js} +2 -2
  70. package/dist/chunks/{ui-commands-XMJPZ5J2.js → ui-commands-4UEB5UD4.js} +14 -14
  71. package/dist/chunks/{versions-OREWXTWL.js → versions-DIYWCIEN.js} +5 -5
  72. package/dist/chunks/{web-TJD6HFKE.js → web-AQK5INI5.js} +5 -5
  73. package/dist/index.js +1 -1
  74. package/package.json +1 -1
@@ -14,7 +14,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
14
14
  // packages/runtime/package.json
15
15
  var package_default = {
16
16
  name: "@popcraft/runtime",
17
- version: "1.8.0",
17
+ version: "1.8.1",
18
18
  description: "What code exported from PopCraft shares: the meaning of expressions (operators and functions) and, as it grows, the parts of a design's behaviour that are common code rather than generated React.",
19
19
  license: "MIT",
20
20
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -29,7 +29,7 @@ import {
29
29
  styleMapToJSX,
30
30
  variantStates,
31
31
  webStateMachine
32
- } from "./chunk-L52UVZ4H.js";
32
+ } from "./chunk-QOQL5TG3.js";
33
33
  import {
34
34
  asShown
35
35
  } from "./chunk-UVZJVPE7.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-KWLEMS7F.js";
13
13
  import {
14
14
  screenPhysics
15
- } from "./chunk-SVX3BJJ5.js";
15
+ } from "./chunk-6RPZOVA4.js";
16
16
  import {
17
17
  anchorOf,
18
18
  hrefOf,
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  EXPORT_NODE_CAP,
49
49
  cleanName
50
- } from "./chunk-L52UVZ4H.js";
50
+ } from "./chunk-QOQL5TG3.js";
51
51
  import {
52
52
  MAX_PHOTO_PAGE,
53
53
  MAX_PHOTO_QUERY,
@@ -952,7 +952,7 @@ init_scene_graph();
952
952
  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.");
953
953
  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 });
954
954
  async function placeImportedPicture(ctx, imported, at2, what, extra = {}) {
955
- const client = await import("./client-NFKHKPDL.js");
955
+ const client = await import("./client-T4NMSPEC.js");
956
956
  if (at2.fillLayerId) {
957
957
  const doc2 = ctx.doc();
958
958
  const target = nodeOrThrow(doc2, at2.fillLayerId);
@@ -998,7 +998,7 @@ var photoSearch = defineCommand({
998
998
  }
999
999
  },
1000
1000
  run: async (args) => {
1001
- const { searchStockPhotos } = await import("./client-NFKHKPDL.js");
1001
+ const { searchStockPhotos } = await import("./client-T4NMSPEC.js");
1002
1002
  const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
1003
1003
  return {
1004
1004
  summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
@@ -1032,7 +1032,7 @@ var photoInsert = defineCommand({
1032
1032
  run: async (args, ctx) => {
1033
1033
  if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
1034
1034
  if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
1035
- const client = await import("./client-NFKHKPDL.js");
1035
+ const client = await import("./client-T4NMSPEC.js");
1036
1036
  let photo;
1037
1037
  if (args.id) photo = await client.stockPhotoInfo(args.id);
1038
1038
  else {
@@ -1070,10 +1070,10 @@ var mediaList = defineCommand({
1070
1070
  }
1071
1071
  },
1072
1072
  run: async (args) => {
1073
- const { listLibraryMedia } = await import("./client-4DPA75PJ.js");
1073
+ const { listLibraryMedia } = await import("./client-QXWIFTBL.js");
1074
1074
  const q = { ...args };
1075
1075
  if (!q.workspace) {
1076
- const { syncStatus } = await import("./sync-6A34IQQE.js");
1076
+ const { syncStatus } = await import("./sync-JWGSNCXM.js");
1077
1077
  const link2 = syncStatus().link;
1078
1078
  if (!link2) throw new ToolError("This document is not saved to the cloud, so it has no team media library. Pass workspace.");
1079
1079
  q.workspace = (await listLibraryMedia({ file: link2.key, limit: 1 })).workspaceId;
@@ -1108,7 +1108,7 @@ var mediaInsert = defineCommand({
1108
1108
  run: async (args, ctx) => {
1109
1109
  const contentType = args.contentType ?? "image/*";
1110
1110
  if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
1111
- const { importLibraryPicture } = await import("./client-4DPA75PJ.js");
1111
+ const { importLibraryPicture } = await import("./client-QXWIFTBL.js");
1112
1112
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
1113
1113
  const imported = await importLibraryPicture(item);
1114
1114
  return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
@@ -1129,7 +1129,7 @@ var mediaDownload = defineCommand({
1129
1129
  // The Library's right-click menu: saves the item's file to the computer.
1130
1130
  expose: { ui: { label: "Download", palette: false } },
1131
1131
  run: async (args) => {
1132
- const { libraryBlob, libraryFileName } = await import("./client-4DPA75PJ.js");
1132
+ const { libraryBlob, libraryFileName } = await import("./client-QXWIFTBL.js");
1133
1133
  const { downloadBlob } = await import("./download-HKKU74HQ.js");
1134
1134
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
1135
1135
  const blob = await libraryBlob(item);
@@ -1160,7 +1160,7 @@ var mediaDelete = defineCommand({
1160
1160
  }
1161
1161
  },
1162
1162
  run: async (args) => {
1163
- const { deleteLibraryMedia } = await import("./client-4DPA75PJ.js");
1163
+ const { deleteLibraryMedia } = await import("./client-QXWIFTBL.js");
1164
1164
  const out = await deleteLibraryMedia(args.workspace, args.hash);
1165
1165
  return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
1166
1166
  }
@@ -1174,13 +1174,13 @@ async function signedIn() {
1174
1174
  }
1175
1175
  async function publishedFile() {
1176
1176
  await signedIn();
1177
- const { openFileKey } = await import("./publish-site-ZM2RYCGU.js");
1177
+ const { openFileKey } = await import("./publish-site-GLNTAKHT.js");
1178
1178
  const key = openFileKey();
1179
1179
  if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
1180
1180
  return key;
1181
1181
  }
1182
1182
  async function formsWithoutDatabase(key) {
1183
- const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-LZMCUPSM.js"), import("./backend-XWFLTJ7Q.js"), import("./integrations-Q5LMI7GJ.js")]);
1183
+ const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-CLHG4QMC.js"), import("./backend-XWFLTJ7Q.js"), import("./integrations-3KJWPEGA.js")]);
1184
1184
  const doc2 = useEditorStore.getState().document;
1185
1185
  if (!usesForms(doc2)) return false;
1186
1186
  return formsGoNowhere(doc2, await siteBackend(key).catch(() => void 0));
@@ -1216,7 +1216,7 @@ var publishSite = defineCommand({
1216
1216
  const { cleanSlug } = await import("./rules-QHJ6MTFA.js");
1217
1217
  const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
1218
1218
  if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
1219
- const { publishOpenFile, NoScreens } = await import("./publish-site-ZM2RYCGU.js");
1219
+ const { publishOpenFile, NoScreens } = await import("./publish-site-GLNTAKHT.js");
1220
1220
  try {
1221
1221
  const done = await publishOpenFile(address);
1222
1222
  ctx.notice(`Published version ${done.version}: ${done.url}`);
@@ -1271,7 +1271,7 @@ var publishListSites = defineCommand({
1271
1271
  },
1272
1272
  run: async (p) => {
1273
1273
  await signedIn();
1274
- const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-GPJOZNHF.js"), import("./team-KNYMXICM.js")]);
1274
+ const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-GPJOZNHF.js"), import("./team-HJMNNMGO.js")]);
1275
1275
  const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
1276
1276
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
1277
1277
  const out = await workspaceSites(workspaceId);
@@ -1320,12 +1320,12 @@ var publishStatus = defineCommand({
1320
1320
  },
1321
1321
  run: async () => {
1322
1322
  await signedIn();
1323
- const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-ZM2RYCGU.js"), import("./sites-GPJOZNHF.js")]);
1323
+ const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-GLNTAKHT.js"), import("./sites-GPJOZNHF.js")]);
1324
1324
  const key = openFileKey();
1325
1325
  const status = await siteStatus(key);
1326
1326
  const site = status.site;
1327
- const backend = key ? await (await import("./integrations-Q5LMI7GJ.js")).siteBackend(key).catch(() => null) : null;
1328
- const destinations = key ? await (await import("./integrations-Q5LMI7GJ.js")).listDestinations(key).catch(() => []) : [];
1327
+ const backend = key ? await (await import("./integrations-3KJWPEGA.js")).siteBackend(key).catch(() => null) : null;
1328
+ const destinations = key ? await (await import("./integrations-3KJWPEGA.js")).listDestinations(key).catch(() => []) : [];
1329
1329
  return {
1330
1330
  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}`,
1331
1331
  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 })) }
@@ -1356,7 +1356,7 @@ var publishStore = defineCommand({
1356
1356
  },
1357
1357
  run: async (p, ctx) => {
1358
1358
  await signedIn();
1359
- const { deployOpenStore } = await import("./publish-store-AHEXCLYK.js");
1359
+ const { deployOpenStore } = await import("./publish-store-UWPAZ7VT.js");
1360
1360
  const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
1361
1361
  throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
1362
1362
  });
@@ -1385,7 +1385,7 @@ var integrationList = defineCommand({
1385
1385
  }
1386
1386
  },
1387
1387
  run: async ({ capability }) => {
1388
- const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-MNEF3IH4.js"), import("./integrations-Q5LMI7GJ.js")]);
1388
+ const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-MNEF3IH4.js"), import("./integrations-3KJWPEGA.js")]);
1389
1389
  if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
1390
1390
  const workspaceId = integrationsWorkspaceId();
1391
1391
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
@@ -1426,7 +1426,7 @@ var integrationOpen = defineCommand({
1426
1426
  }
1427
1427
  });
1428
1428
  async function openFile() {
1429
- const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-MNEF3IH4.js"), import("./publish-site-ZM2RYCGU.js")]);
1429
+ const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-MNEF3IH4.js"), import("./publish-site-GLNTAKHT.js")]);
1430
1430
  if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
1431
1431
  const key = openFileKey();
1432
1432
  if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
@@ -1452,7 +1452,7 @@ var integrationListResources = defineCommand({
1452
1452
  }
1453
1453
  },
1454
1454
  run: async ({ connectionId, capability, path }) => {
1455
- const { listResources } = await import("./integrations-Q5LMI7GJ.js");
1455
+ const { listResources } = await import("./integrations-3KJWPEGA.js");
1456
1456
  const list = await listResources(connectionId, capability, asPath2(path));
1457
1457
  return {
1458
1458
  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",
@@ -1487,7 +1487,7 @@ var integrationAddDestination = defineCommand({
1487
1487
  },
1488
1488
  run: async (p, ctx) => {
1489
1489
  const key = await openFile();
1490
- const { addDestination, createDestination, createResource } = await import("./integrations-Q5LMI7GJ.js");
1490
+ const { addDestination, createDestination, createResource } = await import("./integrations-3KJWPEGA.js");
1491
1491
  let made;
1492
1492
  if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
1493
1493
  else {
@@ -1524,7 +1524,7 @@ var integrationDeploy = defineCommand({
1524
1524
  },
1525
1525
  run: async (p, ctx) => {
1526
1526
  const key = await openFile();
1527
- const { deployDestination, listDestinations } = await import("./integrations-Q5LMI7GJ.js");
1527
+ const { deployDestination, listDestinations } = await import("./integrations-3KJWPEGA.js");
1528
1528
  const all = await listDestinations(key);
1529
1529
  const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
1530
1530
  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");
@@ -1558,7 +1558,7 @@ var integrationAttachDatabase = defineCommand({
1558
1558
  },
1559
1559
  run: async (p, ctx) => {
1560
1560
  const key = await openFile();
1561
- const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-Q5LMI7GJ.js");
1561
+ const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-3KJWPEGA.js");
1562
1562
  if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
1563
1563
  if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
1564
1564
  let target = asPath2(p.target);
@@ -1597,7 +1597,7 @@ var integrationSubmissions = defineCommand({
1597
1597
  },
1598
1598
  run: async ({ form, limit }) => {
1599
1599
  const key = await openFile();
1600
- const { listSubmissions } = await import("./integrations-Q5LMI7GJ.js");
1600
+ const { listSubmissions } = await import("./integrations-3KJWPEGA.js");
1601
1601
  const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
1602
1602
  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 } };
1603
1603
  }
@@ -1622,7 +1622,7 @@ var integrationSetSignIn = defineCommand({
1622
1622
  },
1623
1623
  run: async ({ on }, ctx) => {
1624
1624
  const key = await openFile();
1625
- const { setSignIn } = await import("./integrations-Q5LMI7GJ.js");
1625
+ const { setSignIn } = await import("./integrations-3KJWPEGA.js");
1626
1626
  const done = await setSignIn(key, on);
1627
1627
  ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
1628
1628
  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 } };
@@ -1840,7 +1840,7 @@ var fontTeamList = defineCommand({
1840
1840
  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)." }
1841
1841
  },
1842
1842
  run: async (args) => {
1843
- const { refreshTeamFonts } = await import("./team-client-6E6HCYGW.js");
1843
+ const { refreshTeamFonts } = await import("./team-client-EJV4YFOX.js");
1844
1844
  const fonts = await refreshTeamFonts(args.workspace);
1845
1845
  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 })) } };
1846
1846
  }
@@ -1867,7 +1867,7 @@ var fontTeamAdd = defineCommand({
1867
1867
  run: async (args, ctx) => {
1868
1868
  const { bytes, fileName: fileName2 } = await fontBytes(args, ctx);
1869
1869
  const { face, family, weight, style } = await resolveFace(bytes, args);
1870
- const { uploadTeamFont } = await import("./team-client-6E6HCYGW.js");
1870
+ const { uploadTeamFont } = await import("./team-client-EJV4YFOX.js");
1871
1871
  const font = await uploadTeamFont(bytes, { family, weight, style, face: face.index, fileName: fileName2 }, args.workspace);
1872
1872
  return { summary: `Added ${family} ${weight}${style === "italic" ? " italic" : ""} to the team`, data: { font } };
1873
1873
  }
@@ -1889,7 +1889,7 @@ var fontTeamRemove = defineCommand({
1889
1889
  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." }
1890
1890
  },
1891
1891
  run: async (args) => {
1892
- const { removeTeamFont } = await import("./team-client-6E6HCYGW.js");
1892
+ const { removeTeamFont } = await import("./team-client-EJV4YFOX.js");
1893
1893
  const out = await removeTeamFont(args.id, args.workspace);
1894
1894
  return { summary: `Removed the team font${out.freed ? " and freed its storage" : ""}`, data: out };
1895
1895
  }
@@ -1900,7 +1900,7 @@ var fontTeamCommands = [fontTeamList, fontTeamAdd];
1900
1900
  init_define_POPCRAFT_COMPONENT_IDS();
1901
1901
  async function cloudFile() {
1902
1902
  const [{ syncStatus }, { cloudUser }] = await Promise.all([
1903
- import("./sync-6A34IQQE.js"),
1903
+ import("./sync-JWGSNCXM.js"),
1904
1904
  import("./session-MNEF3IH4.js")
1905
1905
  ]);
1906
1906
  const link2 = syncStatus().link;
@@ -1962,7 +1962,7 @@ var fileTrash = defineCommand({
1962
1962
  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." }
1963
1963
  },
1964
1964
  run: async () => {
1965
- const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-CGB4JSWH.js");
1965
+ const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-BXUU3YDL.js");
1966
1966
  const { name: name2, kind } = await deleteCurrentFile();
1967
1967
  leaveDeletedFile();
1968
1968
  return { summary: kind === "cloud" ? `Moved \u201C${name2}\u201D to the Trash` : `Deleted \u201C${name2}\u201D` };
@@ -2079,11 +2079,11 @@ var fileDuplicate = defineCommand({
2079
2079
  },
2080
2080
  run: async (p, ctx) => {
2081
2081
  const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
2082
- import("./sync-6A34IQQE.js"),
2082
+ import("./sync-JWGSNCXM.js"),
2083
2083
  import("./api-2UT5UYIB.js"),
2084
2084
  import("./tab-mode-RB7RFFTR.js"),
2085
- import("./tabs-SV6BGUSZ.js"),
2086
- import("./sync-6A34IQQE.js"),
2085
+ import("./tabs-B72KGPKW.js"),
2086
+ import("./sync-JWGSNCXM.js"),
2087
2087
  import("./dist-node-R6GFIW6U.js")
2088
2088
  ]);
2089
2089
  const doc2 = ctx.doc();
@@ -4964,7 +4964,7 @@ var viewCopyLink = defineCommand({
4964
4964
  },
4965
4965
  run: async (args, ctx) => {
4966
4966
  const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
4967
- import("./sync-6A34IQQE.js"),
4967
+ import("./sync-JWGSNCXM.js"),
4968
4968
  import("./api-2UT5UYIB.js"),
4969
4969
  import("./deep-link-NUGKV6MQ.js")
4970
4970
  ]);
@@ -5289,7 +5289,7 @@ var pageGo = defineCommand({
5289
5289
  ] }
5290
5290
  },
5291
5291
  run: async ({ to }) => {
5292
- const { useEditorStore } = await import("./editor-store-LZMCUPSM.js");
5292
+ const { useEditorStore } = await import("./editor-store-CLHG4QMC.js");
5293
5293
  useEditorStore.getState().goToPrintPage(to);
5294
5294
  return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
5295
5295
  }
@@ -5323,7 +5323,7 @@ var pageSetup = defineCommand({
5323
5323
  }
5324
5324
  },
5325
5325
  run: async (args) => {
5326
- const { useEditorStore } = await import("./editor-store-LZMCUPSM.js");
5326
+ const { useEditorStore } = await import("./editor-store-CLHG4QMC.js");
5327
5327
  useEditorStore.getState().applyPageSetup(args);
5328
5328
  return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
5329
5329
  }
@@ -5761,7 +5761,7 @@ async function docAtTime(doc2, ids, time2) {
5761
5761
  let frameId;
5762
5762
  if (time2 === void 0) {
5763
5763
  try {
5764
- const { useEditorStore } = await import("./editor-store-LZMCUPSM.js");
5764
+ const { useEditorStore } = await import("./editor-store-CLHG4QMC.js");
5765
5765
  const st = useEditorStore.getState();
5766
5766
  const target = st.transport?.target;
5767
5767
  if (st.mode !== "ANIMATE" || target?.kind !== "frame") return doc2;
@@ -6155,7 +6155,7 @@ async function runAnimationExport(format, args, ctx) {
6155
6155
  const filename = exportFileName(args.filename || targetName(doc2, target), format);
6156
6156
  const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-7KPETY67.js"), import("./destination-XVROFAPQ.js")]);
6157
6157
  if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
6158
- const planWatermark = format !== "png" && await (await import("./export-watermark-4FVFQ7EQ.js")).exportWatermark();
6158
+ const planWatermark = format !== "png" && await (await import("./export-watermark-MK5GQIVR.js")).exportWatermark();
6159
6159
  if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
6160
6160
  const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
6161
6161
  let stats;
@@ -6241,8 +6241,8 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
6241
6241
  });
6242
6242
  async function exportSite(doc2, pageId2, packaging, styling = "css", siteUrl) {
6243
6243
  const [{ completeSite, nextFilesOf, nextProjectDropped, shareImageFiles, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
6244
- import("./project-TLJXPUXS.js"),
6245
- import("./web-TJD6HFKE.js"),
6244
+ import("./project-FRB4R73B.js"),
6245
+ import("./web-AQK5INI5.js"),
6246
6246
  import("./zip-export-6TZJSSQO.js"),
6247
6247
  import("./download-HKKU74HQ.js")
6248
6248
  ]);
@@ -6285,7 +6285,7 @@ var exportWeb = reportsMissingFonts(defineCommand({
6285
6285
  const id = args.id ?? ctx.selection()[0] ?? doc2.nodes[ctx.pageId()]?.childIds?.[0];
6286
6286
  const node = id ? doc2.nodes[id] : void 0;
6287
6287
  if (!node) throw new ToolError("Select a frame or layer to export.");
6288
- const { webTreeFor, extensionFor, externalAssets, fileBase, resolveWebAssets, serializeWithReport, flatten } = await import("./web-TJD6HFKE.js");
6288
+ const { webTreeFor, extensionFor, externalAssets, fileBase, resolveWebAssets, serializeWithReport, flatten } = await import("./web-AQK5INI5.js");
6289
6289
  const { rendererAssetResolvers } = await import("./resolvers-N2IBGBN2.js");
6290
6290
  const { downloadBlob } = await import("./download-HKKU74HQ.js");
6291
6291
  const tree = webTreeFor(doc2, node.id, lang, { nodeCap: EXPORT_NODE_CAP, fullImageUrls: true });
@@ -6335,17 +6335,17 @@ var exportStorefront = defineCommand({
6335
6335
  run: async (args, ctx) => {
6336
6336
  const doc2 = ctx.doc();
6337
6337
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
6338
- import("./storefront-prepare-543VBJ2B.js"),
6339
- import("./storefront-DASOKGXT.js"),
6340
- import("./project-TLJXPUXS.js"),
6341
- import("./web-TJD6HFKE.js"),
6338
+ import("./storefront-prepare-RSUGQZN4.js"),
6339
+ import("./storefront-D6BBFNOK.js"),
6340
+ import("./project-FRB4R73B.js"),
6341
+ import("./web-AQK5INI5.js"),
6342
6342
  import("./zip-export-6TZJSSQO.js"),
6343
6343
  import("./download-HKKU74HQ.js")
6344
6344
  ]);
6345
6345
  const target = STOREFRONT_TARGETS[args.target];
6346
6346
  const { screens, media } = await storefrontInputs(doc2, ctx.pageId(), EXPORT_NODE_CAP);
6347
6347
  if (!screens.length) throw new ToolError("This page has no screens: a top-level frame is a page of the store.");
6348
- const files = args.target === "next-commerce" && args.dir ? (await import("./components-GIX6DGC5.js")).componentFiles(doc2, screens, { styling: args.styling, dir: args.dir, media }) : target.files(doc2, screens, { media, styling: args.styling });
6348
+ const files = args.target === "next-commerce" && args.dir ? (await import("./components-G3KKHF4W.js")).componentFiles(doc2, screens, { styling: args.styling, dir: args.dir, media }) : target.files(doc2, screens, { media, styling: args.styling });
6349
6349
  const base = `${fileBase(doc2.name)}-${args.target}`;
6350
6350
  downloadBlob(zipFiles(files.map((f) => ({ name: f.path, bytes: bytesOf(f) }))), `${base}.zip`);
6351
6351
  const bound = screens.filter((s) => s.about || flatten(s.tree.root).some((n) => n.repeat && doc2.collections?.[n.repeat.collectionId]?.schema)).length;
@@ -6732,7 +6732,7 @@ var visionRegenerateImage = defineCommand({
6732
6732
  const id = args.id ?? ctx.selection()[0];
6733
6733
  if (!id) throw new ToolError("Select a generated image to regenerate.");
6734
6734
  nodeOrThrow(ctx.doc(), id);
6735
- const { regenerateImage } = await import("./client-actions-6YTCHAFN.js");
6735
+ const { regenerateImage } = await import("./client-actions-L6FP6DP5.js");
6736
6736
  regenerateImage(id, args.count);
6737
6737
  return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
6738
6738
  }
@@ -12139,7 +12139,7 @@ var scriptRun = defineCommand({
12139
12139
  // A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
12140
12140
  actor: { ...ctx.actor, nested: true, label: "Script" },
12141
12141
  // A look_at inside the script sees the document as the script has left it so far, not as it was before.
12142
- use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-3VMEBCB4.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
12142
+ use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-ODO74SIV.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
12143
12143
  };
12144
12144
  let calls = 0;
12145
12145
  const images = [];
@@ -12992,7 +12992,7 @@ var docImportFile = defineCommand({
12992
12992
  const file = new File([body], args.name);
12993
12993
  if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
12994
12994
  const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
12995
- import("./plugin-import-SSUSTL7V.js"),
12995
+ import("./plugin-import-VJDKNFPE.js"),
12996
12996
  import("./import-merge-W2SH4VNP.js")
12997
12997
  ]);
12998
12998
  const built = await buildImportedDocument(file);
@@ -12,7 +12,7 @@ import {
12
12
  hostEnv,
13
13
  plain,
14
14
  registerBuiltinCommands
15
- } from "./chunk-H3QJ4FGV.js";
15
+ } from "./chunk-SMTX3YP4.js";
16
16
  import {
17
17
  external_exports
18
18
  } from "./chunk-GHPSGTWV.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-GIX6DGC5.js"), import("./storefront-DASOKGXT.js")]);
629
+ const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-G3KKHF4W.js"), import("./storefront-D6BBFNOK.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,11 +644,11 @@ 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-543VBJ2B.js"),
648
- import("./storefront-DASOKGXT.js"),
649
- import("./project-TLJXPUXS.js"),
647
+ import("./storefront-prepare-RSUGQZN4.js"),
648
+ import("./storefront-D6BBFNOK.js"),
649
+ import("./project-FRB4R73B.js"),
650
650
  import("./zip-export-6TZJSSQO.js"),
651
- import("./tree-BMHSJ6SG.js")
651
+ import("./tree-PZTCVNQQ.js")
652
652
  ]);
653
653
  const doc = ctx.doc();
654
654
  const { screens, media } = await storefrontInputs(doc, ctx.pageId(), EXPORT_NODE_CAP);
@@ -843,7 +843,7 @@ var pluginRun = defineCommand({
843
843
  }
844
844
  },
845
845
  run: async (p, ctx) => {
846
- const { runPlugin } = await import("./host-Q2B5JDF6.js");
846
+ const { runPlugin } = await import("./host-QJI5VIFQ.js");
847
847
  await runPlugin(p.pluginId, p.commandId);
848
848
  ctx.notice(`Started ${p.pluginId}.`);
849
849
  return {
@@ -4862,7 +4862,7 @@ function createPopcornSlice(set2, get2) {
4862
4862
  privateMode: false,
4863
4863
  setPrivateMode: (on) => {
4864
4864
  set2({ privateMode: on });
4865
- void import("./presence-4OSUD5JN.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4865
+ void import("./presence-K46Y5AGD.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4866
4866
  });
4867
4867
  },
4868
4868
  /** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
@@ -6926,7 +6926,7 @@ var useEditorStore = create()(
6926
6926
  // A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
6927
6927
  // Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
6928
6928
  duplicateDocument: async (id) => {
6929
- const { duplicateDocumentToCloud } = await import("./sync-6A34IQQE.js");
6929
+ const { duplicateDocumentToCloud } = await import("./sync-JWGSNCXM.js");
6930
6930
  return duplicateDocumentToCloud(id);
6931
6931
  },
6932
6932
  deleteDocument: async (id) => {
@@ -7201,7 +7201,7 @@ var useEditorStore = create()(
7201
7201
  if (e.settle) setTimeout(() => get2().focusOnNode(e.screen), 10);
7202
7202
  else get2().focusOnNode(e.screen);
7203
7203
  } else if (e.kind === "game") {
7204
- void import("./present-physics-KYZBNAVG.js").then((m) => m.physicsCommand(e.command));
7204
+ void import("./present-physics-FHMMPOFT.js").then((m) => m.physicsCommand(e.command));
7205
7205
  } else if (e.kind === "open") {
7206
7206
  openBeside(e.href);
7207
7207
  } else {
@@ -10436,9 +10436,9 @@ if (typeof window !== "undefined") {
10436
10436
  if (typeof window !== "undefined" && navigator.webdriver) {
10437
10437
  window.__vpDesign = async (script, o = {}) => {
10438
10438
  const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
10439
- import("./tools-KGOJSW5W.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-VFXWVSBY.js")).registerBuiltinTools })),
10440
- import("./editor-seams-CPQXKVQD.js"),
10441
- import("./live-U6T4WDTA.js")
10439
+ import("./tools-KKFGAXNC.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-EII5VCM3.js")).registerBuiltinTools })),
10440
+ import("./editor-seams-VR5WEMKQ.js"),
10441
+ import("./live-LIQ32RHJ.js")
10442
10442
  ]);
10443
10443
  registerBuiltinTools();
10444
10444
  const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-LGCGRZNK.js";
14
+ } from "./chunk-YA2PYFVZ.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-JP2Y6BP5.js";
@@ -16,7 +16,7 @@ import {
16
16
  requestImageAction,
17
17
  sizeForAspect,
18
18
  vectorSupport
19
- } from "./chunk-SUK4OYMS.js";
19
+ } from "./chunk-HHLH2UZT.js";
20
20
  import {
21
21
  external_exports
22
22
  } from "./chunk-GHPSGTWV.js";
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-XZX4EC7B.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-4FHDWGCD.js";
34
+ } from "./chunk-U2ZK3HJ2.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-PPJ2NEBU.js";
@@ -150,7 +150,7 @@ function startHyperyTeams() {
150
150
  maybePromptForTeam();
151
151
  void followFileTeam(linkedKey);
152
152
  });
153
- void import("./sync-6A34IQQE.js").then(({ onSyncStatus, syncStatus }) => {
153
+ void import("./sync-JWGSNCXM.js").then(({ onSyncStatus, syncStatus }) => {
154
154
  linkedKey = syncStatus().link?.key ?? null;
155
155
  void followFileTeam(linkedKey);
156
156
  onSyncStatus((_s, link) => {
@@ -16,11 +16,11 @@ import {
16
16
  requestEmbeddings,
17
17
  requestImage,
18
18
  requestImageAction
19
- } from "./chunk-SUK4OYMS.js";
20
- import "./chunk-4ASS3JJJ.js";
19
+ } from "./chunk-HHLH2UZT.js";
20
+ import "./chunk-WIPRGU5D.js";
21
21
  import "./chunk-XLE5SPZO.js";
22
22
  import "./chunk-IZXKUQCO.js";
23
- import "./chunk-LGCGRZNK.js";
23
+ import "./chunk-YA2PYFVZ.js";
24
24
  import "./chunk-34CAPALE.js";
25
25
  import "./chunk-OZGQG6LY.js";
26
26
  import "./chunk-JP2Y6BP5.js";
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  defaultMeasure,
9
9
  placePicture
10
- } from "./chunk-Z2SAV6RK.js";
10
+ } from "./chunk-6YAILHPA.js";
11
11
  import "./chunk-A5WDYCFE.js";
12
12
  import {
13
13
  api
@@ -122,7 +122,7 @@ async function placeLibraryItem(item, opts = {}) {
122
122
  }
123
123
  if (item.contentType.startsWith("video/")) {
124
124
  const file = await libraryFile(item, opts);
125
- const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-LZMCUPSM.js"), import("./media-tool-KCK4GFQY.js")]);
125
+ const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-CLHG4QMC.js"), import("./media-tool-H3CNAVPZ.js")]);
126
126
  const cam = useEditorStore.getState().camera;
127
127
  await placeMediaFile(file, { kind: "point", ...opts.at ?? { x: cam.x, y: cam.y } });
128
128
  return useEditorStore.getState().selection[0] ?? null;
@@ -14,7 +14,7 @@ import {
14
14
  placeStockPhoto,
15
15
  searchStockPhotos,
16
16
  stockPhotoInfo
17
- } from "./chunk-Z2SAV6RK.js";
17
+ } from "./chunk-6YAILHPA.js";
18
18
  import "./chunk-A5WDYCFE.js";
19
19
  import "./chunk-2ZVN63DR.js";
20
20
  import "./chunk-LJSVREWM.js";
@@ -16,10 +16,10 @@ import {
16
16
  selectedVectorTarget,
17
17
  startImageAction,
18
18
  startImageGeneration
19
- } from "./chunk-NKFAJTBR.js";
19
+ } from "./chunk-Y26IR3XY.js";
20
20
  import "./chunk-CHQHRZER.js";
21
- import "./chunk-SUK4OYMS.js";
22
- import "./chunk-4ASS3JJJ.js";
21
+ import "./chunk-HHLH2UZT.js";
22
+ import "./chunk-WIPRGU5D.js";
23
23
  import "./chunk-GHPSGTWV.js";
24
24
  import "./chunk-Z5FGIPAF.js";
25
25
  import "./chunk-3EICOHG5.js";
@@ -37,10 +37,10 @@ import "./chunk-QO5QY5HK.js";
37
37
  import "./chunk-5CMMCJSI.js";
38
38
  import "./chunk-FLK2AZEV.js";
39
39
  import "./chunk-IZXKUQCO.js";
40
- import "./chunk-LGCGRZNK.js";
40
+ import "./chunk-YA2PYFVZ.js";
41
41
  import "./chunk-34CAPALE.js";
42
42
  import "./chunk-OZGQG6LY.js";
43
- import "./chunk-4FHDWGCD.js";
43
+ import "./chunk-U2ZK3HJ2.js";
44
44
  import "./chunk-IHAM22V3.js";
45
45
  import "./chunk-PPJ2NEBU.js";
46
46
  import "./chunk-PTH2F35W.js";
@@ -9,15 +9,15 @@ import {
9
9
  componentMedia,
10
10
  componentPlan,
11
11
  componentScreens
12
- } from "./chunk-L6A4A4DT.js";
12
+ } from "./chunk-FBL4ASBX.js";
13
13
  import "./chunk-NVNRDWPT.js";
14
- import "./chunk-RUMXL7TT.js";
14
+ import "./chunk-QL54YHU7.js";
15
15
  import "./chunk-7ARQWSPP.js";
16
16
  import "./chunk-DLXMRD2P.js";
17
- import "./chunk-L52UVZ4H.js";
17
+ import "./chunk-QOQL5TG3.js";
18
18
  import "./chunk-UVZJVPE7.js";
19
19
  import "./chunk-KWLEMS7F.js";
20
- import "./chunk-SVX3BJJ5.js";
20
+ import "./chunk-6RPZOVA4.js";
21
21
  import "./chunk-25KP2YJV.js";
22
22
  import "./chunk-ISGAOXDM.js";
23
23
  import "./chunk-TSXXRZAO.js";