@popcraft/kit 0.56.0 → 0.56.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/chunks/{agent-UVE4ACQF.js → agent-FJAHWWFZ.js} +1 -1
  2. package/dist/chunks/{builtin-EPNP7MEP.js → builtin-4ZDUQFZL.js} +3 -3
  3. package/dist/chunks/{buy-credits-D74TTLB5.js → buy-credits-TMRXF7A2.js} +2 -2
  4. package/dist/chunks/{check-template-3OPZT3AG.js → check-template-4UA7P5HO.js} +2 -2
  5. package/dist/chunks/{chunk-7TUQ3F3V.js → chunk-2YXJVA4K.js} +1 -1
  6. package/dist/chunks/{chunk-LTJ4CXQZ.js → chunk-3BLJB6YE.js} +4 -4
  7. package/dist/chunks/{chunk-SPTZS66L.js → chunk-CSBP73YD.js} +2 -2
  8. package/dist/chunks/{chunk-EBLRQCCS.js → chunk-D24EBG4P.js} +1 -1
  9. package/dist/chunks/{chunk-H2CF47MC.js → chunk-FU6WZBAH.js} +1 -1
  10. package/dist/chunks/{chunk-5ZFBKQNX.js → chunk-GUAEBDQE.js} +6 -6
  11. package/dist/chunks/{chunk-ISGOBXEK.js → chunk-HUEXATAZ.js} +1 -1
  12. package/dist/chunks/{chunk-FTLIVP4G.js → chunk-IS5PCC56.js} +3 -3
  13. package/dist/chunks/{chunk-JQMFZXNS.js → chunk-J53KVKHW.js} +11 -11
  14. package/dist/chunks/{chunk-3VM2VCEQ.js → chunk-KJOUBU7D.js} +4 -4
  15. package/dist/chunks/{chunk-NKJ2LPIZ.js → chunk-LN55WZRD.js} +3 -3
  16. package/dist/chunks/{chunk-B47CBBIF.js → chunk-PAINLP2Z.js} +2 -2
  17. package/dist/chunks/{chunk-YDQ43WXH.js → chunk-QQPRSLOE.js} +5 -5
  18. package/dist/chunks/{chunk-VJEQEPSJ.js → chunk-TID2Q3IO.js} +42 -42
  19. package/dist/chunks/{chunk-T4XOZF7W.js → chunk-TTWURO2B.js} +1 -1
  20. package/dist/chunks/{chunk-GVOWNO2V.js → chunk-WTBZLPFO.js} +9 -9
  21. package/dist/chunks/{chunk-TZHP73F5.js → chunk-WYLZGKQK.js} +2 -2
  22. package/dist/chunks/{chunk-2EXAT6UH.js → chunk-XSLJ5YFT.js} +2 -2
  23. package/dist/chunks/{chunk-IDOM7FS7.js → chunk-ZDYM7NMN.js} +5 -5
  24. package/dist/chunks/{client-BRRVEGDL.js → client-5KRARYXB.js} +1 -1
  25. package/dist/chunks/{client-M2F3HZ7R.js → client-EB3NNJWL.js} +2 -2
  26. package/dist/chunks/{client-ERKQHYQK.js → client-OOWJTD2A.js} +3 -3
  27. package/dist/chunks/{client-actions-O5UIQQ2O.js → client-actions-QQGCMIGO.js} +5 -5
  28. package/dist/chunks/{dangerous-AKFUNJHE.js → dangerous-WSFBXONS.js} +3 -3
  29. package/dist/chunks/{delete-current-file-LTOB7L3S.js → delete-current-file-UZYKXBRB.js} +5 -5
  30. package/dist/chunks/{editor-seams-2MRLRFLD.js → editor-seams-L6T3VMNP.js} +12 -12
  31. package/dist/chunks/{editor-store-WX7CUIO3.js → editor-store-3M6NBXYE.js} +1 -1
  32. package/dist/chunks/{export-watermark-OQN32PBQ.js → export-watermark-TT4U4WFS.js} +5 -5
  33. package/dist/chunks/{eyedropper-XQHOJMVZ.js → eyedropper-6FGWIOZQ.js} +1 -1
  34. package/dist/chunks/{generate-media-IXGTTS4D.js → generate-media-NMMIZJ2Y.js} +3 -3
  35. package/dist/chunks/{host-YIJATUIX.js → host-6WSNDWNB.js} +6 -6
  36. package/dist/chunks/{integrations-HUIMYNZ2.js → integrations-BXVLXW43.js} +1 -1
  37. package/dist/chunks/{libraries-2GW3HSNN.js → libraries-HZTBKDMY.js} +5 -5
  38. package/dist/chunks/{live-ZN2J3FAY.js → live-YKABFNRO.js} +1 -1
  39. package/dist/chunks/{media-tool-ZNUCVC2J.js → media-tool-VAPW6M2E.js} +1 -1
  40. package/dist/chunks/{new-file-SG7RV5LH.js → new-file-RT6OZKTR.js} +3 -3
  41. package/dist/chunks/{plugin-QCVRO7RT.js → plugin-M47AU56O.js} +2 -2
  42. package/dist/chunks/{plugin-import-WXHLY7WC.js → plugin-import-D4RCBOR3.js} +16 -16
  43. package/dist/chunks/{presence-B7ZNN5Q4.js → presence-B7YQC5OG.js} +2 -2
  44. package/dist/chunks/{project-XAALXR77.js → project-VVRR4PTF.js} +1 -1
  45. package/dist/chunks/{publish-site-5HEZXPAZ.js → publish-site-JW5GEKTM.js} +6 -6
  46. package/dist/chunks/{publish-store-OWCCFLXI.js → publish-store-L7PZB57F.js} +4 -4
  47. package/dist/chunks/{raster-actions-GSOZB3PE.js → raster-actions-DGRCM466.js} +1 -1
  48. package/dist/chunks/{runner-XLIZPRZU.js → runner-7WPDBIIR.js} +18 -18
  49. package/dist/chunks/{store-MYL4G3K7.js → store-BEHJ6VAN.js} +6 -6
  50. package/dist/chunks/{sync-MMSKHA4D.js → sync-RCTFLRNH.js} +5 -5
  51. package/dist/chunks/{tabs-A6FBMMU5.js → tabs-6OWMXIMZ.js} +8 -8
  52. package/dist/chunks/{team-SG2YJDXW.js → team-QCE4TVGZ.js} +1 -1
  53. package/dist/chunks/{team-client-MBSQ4BMT.js → team-client-7ERMHL3K.js} +1 -1
  54. package/dist/chunks/{tools-QZ3YVQB3.js → tools-WJRH2SSO.js} +2 -2
  55. package/dist/chunks/{ui-commands-PEWTUORV.js → ui-commands-ULT4O23I.js} +12 -12
  56. package/dist/chunks/{versions-XF5UPOSZ.js → versions-UXNLBT7T.js} +5 -5
  57. package/dist/index.js +1 -1
  58. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  renderDocument,
19
19
  toolView,
20
20
  underReviewKit
21
- } from "./chunk-NKJ2LPIZ.js";
21
+ } from "./chunk-LN55WZRD.js";
22
22
  import "./chunk-O5EVXXD4.js";
23
23
  import "./chunk-XCOAYP4L.js";
24
24
  import "./chunk-NMRW4HVJ.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-TZHP73F5.js";
11
- import "./chunk-VJEQEPSJ.js";
10
+ } from "./chunk-WYLZGKQK.js";
11
+ import "./chunk-TID2Q3IO.js";
12
12
  import "./chunk-22VKIAMI.js";
13
13
  import "./chunk-5SUPV4QJ.js";
14
14
  import "./chunk-4QE7MM2H.js";
@@ -17,7 +17,7 @@ import "./chunk-UQ6WPYQA.js";
17
17
  import "./chunk-25NRQMDZ.js";
18
18
  import "./chunk-OLSM4TUX.js";
19
19
  import "./chunk-5GG3V6NR.js";
20
- import "./chunk-NKJ2LPIZ.js";
20
+ import "./chunk-LN55WZRD.js";
21
21
  import "./chunk-O5EVXXD4.js";
22
22
  import "./chunk-V2QM5NM7.js";
23
23
  import "./chunk-VUEWRNTS.js";
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  HYPERY_TEAM_HEADER,
9
9
  hyperyRequestHeaders
10
- } from "./chunk-H2CF47MC.js";
10
+ } from "./chunk-FU6WZBAH.js";
11
11
  import "./chunk-BSR2R43F.js";
12
12
  import {
13
13
  useHyperyTeam
14
- } from "./chunk-EBLRQCCS.js";
14
+ } from "./chunk-D24EBG4P.js";
15
15
  import {
16
16
  openLink
17
17
  } from "./chunk-IQE2HE25.js";
@@ -6,10 +6,10 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  appCommands
9
- } from "./chunk-GVOWNO2V.js";
9
+ } from "./chunk-WTBZLPFO.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-VJEQEPSJ.js";
12
+ } from "./chunk-TID2Q3IO.js";
13
13
  import "./chunk-22VKIAMI.js";
14
14
  import "./chunk-5SUPV4QJ.js";
15
15
  import "./chunk-4QE7MM2H.js";
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  hyperyRequestHeaders
9
- } from "./chunk-H2CF47MC.js";
9
+ } from "./chunk-FU6WZBAH.js";
10
10
  import {
11
11
  aiAvailability,
12
12
  effectiveChatModel,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-LZH7QSLX.js";
10
10
  import {
11
11
  notice
12
- } from "./chunk-SPTZS66L.js";
12
+ } from "./chunk-CSBP73YD.js";
13
13
  import {
14
14
  effectiveChatModel,
15
15
  setModelPref,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-7LJKKD3D.js";
18
18
  import {
19
19
  useEditorStore
20
- } from "./chunk-IDOM7FS7.js";
20
+ } from "./chunk-ZDYM7NMN.js";
21
21
  import {
22
22
  create
23
23
  } from "./chunk-KN6RX7L6.js";
@@ -1797,7 +1797,7 @@ async function sendMessage(text) {
1797
1797
  if (!useAgentStore.getState().activeThreadId) newThread();
1798
1798
  const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
1799
1799
  useAgentStore.setState({ draft: "", draftMentions: [], error: null });
1800
- const { runTurn } = await import("./runner-XLIZPRZU.js");
1800
+ const { runTurn } = await import("./runner-7WPDBIIR.js");
1801
1801
  await runTurn(body, mentions);
1802
1802
  }
1803
1803
  function stop() {
@@ -1900,7 +1900,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
1900
1900
  function subscribeChildTools() {
1901
1901
  let dispose;
1902
1902
  let cancelled = false;
1903
- void import("./runner-XLIZPRZU.js").then(({ onChildTool }) => {
1903
+ void import("./runner-7WPDBIIR.js").then(({ onChildTool }) => {
1904
1904
  const off = onChildTool((report) => {
1905
1905
  if (report?.status !== "running" || report.jobId) return;
1906
1906
  recordChildTool(report.toolCallId ?? "", report.name);
@@ -28,10 +28,10 @@ import {
28
28
  requestImageAction,
29
29
  sizeForAspect,
30
30
  vectorSupport
31
- } from "./chunk-7TUQ3F3V.js";
31
+ } from "./chunk-2YXJVA4K.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-IDOM7FS7.js";
34
+ } from "./chunk-ZDYM7NMN.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-QRVZD2BS.js";
@@ -150,7 +150,7 @@ function startHyperyTeams() {
150
150
  maybePromptForTeam();
151
151
  void followFileTeam(linkedKey);
152
152
  });
153
- void import("./sync-MMSKHA4D.js").then(({ onSyncStatus, syncStatus }) => {
153
+ void import("./sync-RCTFLRNH.js").then(({ onSyncStatus, syncStatus }) => {
154
154
  linkedKey = syncStatus().link?.key ?? null;
155
155
  void followFileTeam(linkedKey);
156
156
  onSyncStatus((_s, link) => {
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-EBLRQCCS.js";
14
+ } from "./chunk-D24EBG4P.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-5CWDKADM.js";
@@ -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-GVOWNO2V.js";
9
+ } from "./chunk-WTBZLPFO.js";
10
10
  import {
11
11
  storeOpsSeam
12
12
  } from "./chunk-7IVZPY43.js";
@@ -23,17 +23,17 @@ import {
23
23
  sameResolution,
24
24
  surfaceSize,
25
25
  windowCssSize
26
- } from "./chunk-VJEQEPSJ.js";
26
+ } from "./chunk-TID2Q3IO.js";
27
27
  import {
28
28
  notice
29
- } from "./chunk-SPTZS66L.js";
29
+ } from "./chunk-CSBP73YD.js";
30
30
  import {
31
31
  agentContext
32
- } from "./chunk-NKJ2LPIZ.js";
32
+ } from "./chunk-LN55WZRD.js";
33
33
  import {
34
34
  collabSession,
35
35
  syncStatus
36
- } from "./chunk-3VM2VCEQ.js";
36
+ } from "./chunk-KJOUBU7D.js";
37
37
  import {
38
38
  loadEntitlements
39
39
  } from "./chunk-BSR2R43F.js";
@@ -44,7 +44,7 @@ import {
44
44
  import {
45
45
  persist,
46
46
  useEditorStore
47
- } from "./chunk-IDOM7FS7.js";
47
+ } from "./chunk-ZDYM7NMN.js";
48
48
  import {
49
49
  cloudApi
50
50
  } from "./chunk-5CWDKADM.js";
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  useEditorStore
9
- } from "./chunk-IDOM7FS7.js";
9
+ } from "./chunk-ZDYM7NMN.js";
10
10
  import {
11
11
  announce
12
12
  } from "./chunk-NRD2OUOG.js";
@@ -12,7 +12,7 @@ import {
12
12
  hostEnv,
13
13
  plain,
14
14
  registerBuiltinCommands
15
- } from "./chunk-VJEQEPSJ.js";
15
+ } from "./chunk-TID2Q3IO.js";
16
16
  import {
17
17
  external_exports
18
18
  } from "./chunk-5GG3V6NR.js";
@@ -618,7 +618,7 @@ var commands = [
618
618
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
619
619
  import("./storefront-prepare-7SE72SAZ.js"),
620
620
  import("./storefront-K3QL5A3K.js"),
621
- import("./project-XAALXR77.js"),
621
+ import("./project-VVRR4PTF.js"),
622
622
  import("./zip-export-SBADSOLA.js"),
623
623
  import("./tree-QWHKZB22.js")
624
624
  ]);
@@ -815,7 +815,7 @@ var pluginRun = defineCommand({
815
815
  }
816
816
  },
817
817
  run: async (p, ctx) => {
818
- const { runPlugin } = await import("./host-YIJATUIX.js");
818
+ const { runPlugin } = await import("./host-6WSNDWNB.js");
819
819
  await runPlugin(p.pluginId, p.commandId);
820
820
  ctx.notice(`Started ${p.pluginId}.`);
821
821
  return {
@@ -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-FTLIVP4G.js";
9
+ } from "./chunk-IS5PCC56.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-VJEQEPSJ.js";
16
+ } from "./chunk-TID2Q3IO.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-5GG3V6NR.js";
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
53
53
  }
54
54
  },
55
55
  run: async ({ on }, ctx) => {
56
- const { setSpotlight } = await import("./presence-B7ZNN5Q4.js");
56
+ const { setSpotlight } = await import("./presence-B7YQC5OG.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-WX7CUIO3.js");
83
+ const { useEditorStore } = await import("./editor-store-3M6NBXYE.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-WX7CUIO3.js");
147
+ const { useEditorStore } = await import("./editor-store-3M6NBXYE.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-2GW3HSNN.js");
191
+ const { publishLibrary } = await import("./libraries-HZTBKDMY.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-2GW3HSNN.js");
223
+ const { unpublishLibrary } = await import("./libraries-HZTBKDMY.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-WX7CUIO3.js"),
236
- import("./versions-XF5UPOSZ.js")
235
+ import("./editor-store-3M6NBXYE.js"),
236
+ import("./versions-UXNLBT7T.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-XF5UPOSZ.js");
269
+ const { restoreVersion } = await import("./versions-UXNLBT7T.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-XF5UPOSZ.js");
294
+ const { deleteVersion } = await import("./versions-UXNLBT7T.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 } };
@@ -13,17 +13,17 @@ import {
13
13
  reportOpenStage,
14
14
  setCloudLink,
15
15
  trackOpen
16
- } from "./chunk-2EXAT6UH.js";
16
+ } from "./chunk-XSLJ5YFT.js";
17
17
  import {
18
18
  parseDeepLink,
19
19
  withDeepLink
20
20
  } from "./chunk-E4I4KH24.js";
21
21
  import {
22
22
  activeTeamWorkspaceId
23
- } from "./chunk-EBLRQCCS.js";
23
+ } from "./chunk-D24EBG4P.js";
24
24
  import {
25
25
  attachPresence
26
- } from "./chunk-ISGOBXEK.js";
26
+ } from "./chunk-HUEXATAZ.js";
27
27
  import {
28
28
  fileOpeningMode,
29
29
  isAppleMobile,
@@ -36,7 +36,7 @@ import {
36
36
  setCollabHistory,
37
37
  storedDocument,
38
38
  useEditorStore
39
- } from "./chunk-IDOM7FS7.js";
39
+ } from "./chunk-ZDYM7NMN.js";
40
40
  import {
41
41
  currentHistoryGroup
42
42
  } from "./chunk-QRVZD2BS.js";
@@ -57,19 +57,19 @@ async function renderDocument(doc, nodeIds, options) {
57
57
  function generateCapability(ctx) {
58
58
  return async (prompt, options = {}) => {
59
59
  if (options.format === "audio") {
60
- const { requestAudio } = await import("./client-ERKQHYQK.js");
60
+ const { requestAudio } = await import("./client-OOWJTD2A.js");
61
61
  const { signal: signal2, format: _f, ...rest2 } = options;
62
62
  void _f;
63
63
  return requestAudio({ prompt, ...rest2 }, signal2 ?? ctx.signal);
64
64
  }
65
65
  if (options.format === "video") {
66
- const { generateVideoFile } = await import("./generate-media-IXGTTS4D.js");
66
+ const { generateVideoFile } = await import("./generate-media-NMMIZJ2Y.js");
67
67
  const { format: _f, signal: signal2, ...rest2 } = options;
68
68
  void _f;
69
69
  return generateVideoFile({ ...rest2, prompt, doc: ctx.doc() }, { signal: signal2 ?? ctx.signal });
70
70
  }
71
71
  const [{ requestImage }, { effectiveImageModel, useAiStore }] = await Promise.all([
72
- import("./client-ERKQHYQK.js"),
72
+ import("./client-OOWJTD2A.js"),
73
73
  import("./client-store-EDTSS7WR.js")
74
74
  ]);
75
75
  const modelId = effectiveImageModel(useAiStore.getState());
@@ -91,9 +91,9 @@ async function placeStockPhoto(photo, opts = {}) {
91
91
  }
92
92
  async function placePicture(imported, opts = {}) {
93
93
  const [{ useEditorStore }, { photoFrameOf }, { placeImage }] = await Promise.all([
94
- import("./editor-store-WX7CUIO3.js"),
94
+ import("./editor-store-3M6NBXYE.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-ZNUCVC2J.js")
96
+ import("./media-tool-VAPW6M2E.js")
97
97
  ]);
98
98
  const st = useEditorStore.getState();
99
99
  const frame = photoFrameOf(st.document.nodes, opts.targetId !== void 0 ? opts.targetId : st.selection[0] ?? null);
@@ -21,11 +21,11 @@ import {
21
21
  } from "./chunk-GEEEA6AF.js";
22
22
  import {
23
23
  syncStatus
24
- } from "./chunk-3VM2VCEQ.js";
24
+ } from "./chunk-KJOUBU7D.js";
25
25
  import {
26
26
  setPluginTabs,
27
27
  useEditorStore
28
- } from "./chunk-IDOM7FS7.js";
28
+ } from "./chunk-ZDYM7NMN.js";
29
29
  import {
30
30
  openBeside
31
31
  } from "./chunk-IQE2HE25.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-QCVRO7RT.js");
72
+ const { dispatchPluginCall } = await import("./plugin-M47AU56O.js");
73
73
  return dispatchPluginCall(env, method, params);
74
74
  }
75
75
 
@@ -579,7 +579,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
579
579
  if (!openBeside(url)) throw new Error("The browser blocked the new tab");
580
580
  },
581
581
  createDocument: async (opts2) => {
582
- const { createFreshFileOrExplain } = await import("./new-file-SG7RV5LH.js");
582
+ const { createFreshFileOrExplain } = await import("./new-file-RT6OZKTR.js");
583
583
  const created = await createFreshFileOrExplain({}, { name: opts2?.name });
584
584
  if (!created.ok) throw new Error(created.reason === "plan" ? "Plan limit reached" : created.reason === "guest-limit" ? "Sign in to create another file" : `Could not create file (${created.reason})`);
585
585
  await useEditorStore.getState().openDocument(created.docId);
@@ -769,7 +769,7 @@ if (typeof window !== "undefined") {
769
769
  const name = d.name || "Imported";
770
770
  void (async () => {
771
771
  try {
772
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-WXHLY7WC.js");
772
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-D4RCBOR3.js");
773
773
  if (d.ir && typeof d.ir === "object") {
774
774
  await applyPluginLayoutIr(d.ir, { mode, name });
775
775
  return;