@popcraft/kit 0.53.5 → 0.53.6
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.
- package/dist/chunks/{agent-BU2V7K5W.js → agent-F236O3DC.js} +1 -1
- package/dist/chunks/{builtin-WRS6ZSPK.js → builtin-SZL3EYOL.js} +3 -3
- package/dist/chunks/{buy-credits-JBM7ETTL.js → buy-credits-LYBWZL7A.js} +2 -2
- package/dist/chunks/{check-template-H2DYU3XJ.js → check-template-ETFXFCDS.js} +2 -2
- package/dist/chunks/{chunk-QMHR62B6.js → chunk-5ZBDTTAQ.js} +4 -4
- package/dist/chunks/{chunk-ENO5QFID.js → chunk-74TVT6AN.js} +1 -1
- package/dist/chunks/{chunk-S6IW3WWA.js → chunk-7LACCK4I.js} +9 -9
- package/dist/chunks/{chunk-UTDF3XDV.js → chunk-DHEP4225.js} +8 -5
- package/dist/chunks/{chunk-C743GDSN.js → chunk-E2Z7MZPS.js} +1 -1
- package/dist/chunks/{chunk-4JTHODXO.js → chunk-EG7XZL7A.js} +4 -4
- package/dist/chunks/{chunk-G53FIV7D.js → chunk-M7OCDUFH.js} +1 -1
- package/dist/chunks/{chunk-7CSTSDHU.js → chunk-MAFFDC5R.js} +42 -42
- package/dist/chunks/{chunk-YMGUPGGX.js → chunk-MDGSETIP.js} +2 -2
- package/dist/chunks/{chunk-ESUEH4WJ.js → chunk-MPFEXGO7.js} +11 -11
- package/dist/chunks/{chunk-NGYWHBRO.js → chunk-NU76YFXE.js} +5 -5
- package/dist/chunks/{chunk-5CG26ML2.js → chunk-RROXM35D.js} +2 -2
- package/dist/chunks/{chunk-57ZPSFB4.js → chunk-S6PC3S6K.js} +3 -3
- package/dist/chunks/{chunk-LOQZBYNB.js → chunk-UTI7RUIM.js} +7 -7
- package/dist/chunks/{chunk-5F5AEM7E.js → chunk-XFBBMSYC.js} +4 -4
- package/dist/chunks/{chunk-LGPRILVA.js → chunk-XFSPCWQ2.js} +1 -1
- package/dist/chunks/{chunk-K65QFCH4.js → chunk-XKGIQ46C.js} +2 -2
- package/dist/chunks/{chunk-X2TDZ6AE.js → chunk-XLF3H275.js} +2 -2
- package/dist/chunks/{chunk-G27HUNKQ.js → chunk-ZRYADMQJ.js} +1 -1
- package/dist/chunks/{client-7MO2SGFG.js → client-KL5JXK2P.js} +3 -3
- package/dist/chunks/{client-P3YFS7W7.js → client-QULURI4N.js} +2 -2
- package/dist/chunks/{client-TM3O6JDA.js → client-W5CWQ6WV.js} +1 -1
- package/dist/chunks/{client-actions-MRVKPWRX.js → client-actions-IYLVZFMM.js} +5 -5
- package/dist/chunks/{dangerous-CIKKSAGL.js → dangerous-45AY3FRV.js} +3 -3
- package/dist/chunks/{delete-current-file-KHH7YB3K.js → delete-current-file-KRGFRN7A.js} +5 -5
- package/dist/chunks/{editor-seams-PLS3CZ74.js → editor-seams-WIFRRRQ4.js} +10 -10
- package/dist/chunks/{editor-store-5WVLZBLO.js → editor-store-ZLLBU4NJ.js} +1 -1
- package/dist/chunks/{export-watermark-THVSCEIC.js → export-watermark-JF734AYK.js} +5 -5
- package/dist/chunks/{eyedropper-NM7NT6QT.js → eyedropper-YAKM5VCE.js} +1 -1
- package/dist/chunks/{generate-media-KISZDA4U.js → generate-media-LWGCYS77.js} +3 -3
- package/dist/chunks/{host-KAU6H7H3.js → host-YM5AFDNH.js} +6 -6
- package/dist/chunks/{integrations-IMLMOW27.js → integrations-5DBMCRLB.js} +1 -1
- package/dist/chunks/{libraries-VKNKFX2X.js → libraries-3V26PUWF.js} +5 -5
- package/dist/chunks/{live-SJGND5BC.js → live-E2VFF2RZ.js} +1 -1
- package/dist/chunks/{media-tool-4VTG3IOX.js → media-tool-K25UY2TI.js} +1 -1
- package/dist/chunks/{new-file-FJC7XVL2.js → new-file-QPQRONY4.js} +3 -3
- package/dist/chunks/{plugin-YD7BJLEU.js → plugin-AQUJPWUI.js} +2 -2
- package/dist/chunks/{plugin-import-QT4JGS2G.js → plugin-import-MHISOFXB.js} +14 -14
- package/dist/chunks/{presence-E5RZ754Y.js → presence-KHMUGC46.js} +2 -2
- package/dist/chunks/{project-C6HMCR35.js → project-CKKMLARY.js} +1 -1
- package/dist/chunks/{publish-site-6D56UAKF.js → publish-site-OCBS5MNL.js} +6 -6
- package/dist/chunks/{publish-store-ZIKPVRJM.js → publish-store-N4XMIU6Y.js} +4 -4
- package/dist/chunks/{raster-actions-YLYA524F.js → raster-actions-U5GPH6IK.js} +1 -1
- package/dist/chunks/{runner-5YTIWTPP.js → runner-RXEDZMYB.js} +17 -17
- package/dist/chunks/{store-TUT4RJNP.js → store-GBKKEBYK.js} +6 -6
- package/dist/chunks/{sync-KNGK6CKY.js → sync-AIGBOHDI.js} +5 -5
- package/dist/chunks/{tabs-CIVUYFNK.js → tabs-ERNRFGS5.js} +8 -8
- package/dist/chunks/{team-S6MMDNH6.js → team-NT5EL22O.js} +1 -1
- package/dist/chunks/{team-client-3D3DLCUN.js → team-client-Q7W7AQSO.js} +1 -1
- package/dist/chunks/{tools-QCMLA2KV.js → tools-FW45NJIG.js} +2 -2
- package/dist/chunks/{ui-commands-SORZLF7L.js → ui-commands-UFGYRB3C.js} +12 -12
- package/dist/chunks/{versions-FU75DQNZ.js → versions-ZRVR5TQU.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
9
|
+
} from "./chunk-DHEP4225.js";
|
|
10
10
|
import {
|
|
11
11
|
fileCommands,
|
|
12
12
|
fontTeamRemove,
|
|
13
13
|
integrationConfirmCommands,
|
|
14
14
|
mediaDelete,
|
|
15
15
|
publishCommands
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MAFFDC5R.js";
|
|
17
17
|
import {
|
|
18
18
|
external_exports
|
|
19
19
|
} from "./chunk-VOOUF5TT.js";
|
|
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
run: async ({ on }, ctx) => {
|
|
56
|
-
const { setSpotlight } = await import("./presence-
|
|
56
|
+
const { setSpotlight } = await import("./presence-KHMUGC46.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-
|
|
83
|
+
const { useEditorStore } = await import("./editor-store-ZLLBU4NJ.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-
|
|
147
|
+
const { useEditorStore } = await import("./editor-store-ZLLBU4NJ.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-
|
|
191
|
+
const { publishLibrary } = await import("./libraries-3V26PUWF.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-
|
|
223
|
+
const { unpublishLibrary } = await import("./libraries-3V26PUWF.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-
|
|
236
|
-
import("./versions-
|
|
235
|
+
import("./editor-store-ZLLBU4NJ.js"),
|
|
236
|
+
import("./versions-ZRVR5TQU.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-
|
|
269
|
+
const { restoreVersion } = await import("./versions-ZRVR5TQU.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-
|
|
294
|
+
const { deleteVersion } = await import("./versions-ZRVR5TQU.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 } };
|
|
@@ -4611,7 +4611,7 @@ function createPopcornSlice(set2, get2) {
|
|
|
4611
4611
|
privateMode: false,
|
|
4612
4612
|
setPrivateMode: (on) => {
|
|
4613
4613
|
set2({ privateMode: on });
|
|
4614
|
-
void import("./presence-
|
|
4614
|
+
void import("./presence-KHMUGC46.js").then((m) => m.setPresencePrivate(on)).catch(() => {
|
|
4615
4615
|
});
|
|
4616
4616
|
},
|
|
4617
4617
|
/** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
|
|
@@ -6656,7 +6656,7 @@ var useEditorStore = create()(
|
|
|
6656
6656
|
// A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
|
|
6657
6657
|
// Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
|
|
6658
6658
|
duplicateDocument: async (id) => {
|
|
6659
|
-
const { duplicateDocumentToCloud } = await import("./sync-
|
|
6659
|
+
const { duplicateDocumentToCloud } = await import("./sync-AIGBOHDI.js");
|
|
6660
6660
|
return duplicateDocumentToCloud(id);
|
|
6661
6661
|
},
|
|
6662
6662
|
deleteDocument: async (id) => {
|
|
@@ -10131,9 +10131,9 @@ if (typeof window !== "undefined") {
|
|
|
10131
10131
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10132
10132
|
window.__vpDesign = async (script, o = {}) => {
|
|
10133
10133
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10134
|
-
import("./tools-
|
|
10135
|
-
import("./editor-seams-
|
|
10136
|
-
import("./live-
|
|
10134
|
+
import("./tools-FW45NJIG.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-SZL3EYOL.js")).registerBuiltinTools })),
|
|
10135
|
+
import("./editor-seams-WIFRRRQ4.js"),
|
|
10136
|
+
import("./live-E2VFF2RZ.js")
|
|
10137
10137
|
]);
|
|
10138
10138
|
registerBuiltinTools();
|
|
10139
10139
|
const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
|
|
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinCommands,
|
|
9
9
|
registerBuiltinCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MAFFDC5R.js";
|
|
11
11
|
import {
|
|
12
12
|
toolView
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-S6PC3S6K.js";
|
|
14
14
|
import {
|
|
15
15
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
16
16
|
} from "./chunk-WKDVCZ45.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-
|
|
60
|
+
const { requestAudio } = await import("./client-KL5JXK2P.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-
|
|
66
|
+
const { generateVideoFile } = await import("./generate-media-LWGCYS77.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-
|
|
72
|
+
import("./client-KL5JXK2P.js"),
|
|
73
73
|
import("./client-store-3YCO6KV5.js")
|
|
74
74
|
]);
|
|
75
75
|
const modelId = effectiveImageModel(useAiStore.getState());
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-ZYK65XJJ.js";
|
|
16
16
|
import {
|
|
17
17
|
syncStatus
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EG7XZL7A.js";
|
|
19
19
|
import {
|
|
20
20
|
exportNodeToSVG
|
|
21
21
|
} from "./chunk-OWWBFGCR.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
setPluginTabs,
|
|
30
30
|
useEditorStore
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NU76YFXE.js";
|
|
32
32
|
import {
|
|
33
33
|
openBeside
|
|
34
34
|
} from "./chunk-PMLSPVLR.js";
|
|
@@ -69,7 +69,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
|
|
|
69
69
|
// lib/plugins/api.ts
|
|
70
70
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
71
71
|
async function handlePluginCall(env, method, params = {}) {
|
|
72
|
-
const { dispatchPluginCall } = await import("./plugin-
|
|
72
|
+
const { dispatchPluginCall } = await import("./plugin-AQUJPWUI.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-
|
|
582
|
+
const { createFreshFileOrExplain } = await import("./new-file-QPQRONY4.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);
|
|
@@ -594,7 +594,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
|
|
|
594
594
|
downloadBlob(new Blob([file.bytes], { type: file.mimeType || "application/octet-stream" }), name);
|
|
595
595
|
return { name, byteLength: file.bytes.byteLength };
|
|
596
596
|
},
|
|
597
|
-
exportNode: async (nodes, format, scale) => {
|
|
597
|
+
exportNode: async (nodes, format, scale, bleed) => {
|
|
598
598
|
const renderer = getActiveRenderer();
|
|
599
599
|
if (!renderer) throw new Error("Renderer is not ready");
|
|
600
600
|
const st = useEditorStore.getState();
|
|
@@ -603,7 +603,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
|
|
|
603
603
|
const { exportNodesToPDF } = await import("./pdf-HK3GJ6QP.js");
|
|
604
604
|
const { jobPageSize } = await import("../lib/document/print-pages.js");
|
|
605
605
|
const { loadFullBleed } = await import("./print-prefs-XQJ4IJYZ.js");
|
|
606
|
-
const blob2 = await exportNodesToPDF(renderer, nodes, { dpi: 300, bleed: !loadFullBleed(), marks: false, splitSpreads: true, pageSize: jobPageSize(st.document) }, st.document, st.document.styles);
|
|
606
|
+
const blob2 = await exportNodesToPDF(renderer, nodes, { dpi: 300, bleed: bleed ?? !loadFullBleed(), marks: false, splitSpreads: true, pageSize: jobPageSize(st.document) }, st.document, st.document.styles);
|
|
607
607
|
if (!blob2) throw new Error("PDF export failed");
|
|
608
608
|
return new Uint8Array(await blob2.arrayBuffer());
|
|
609
609
|
}
|
|
@@ -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-
|
|
772
|
+
const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-MHISOFXB.js");
|
|
773
773
|
if (d.ir && typeof d.ir === "object") {
|
|
774
774
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
775
775
|
return;
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
} from "./chunk-U7FLEMSS.js";
|
|
21
21
|
import {
|
|
22
22
|
notice
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MDGSETIP.js";
|
|
24
24
|
import {
|
|
25
25
|
agentContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-S6PC3S6K.js";
|
|
27
27
|
import {
|
|
28
28
|
collabSession,
|
|
29
29
|
syncStatus
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EG7XZL7A.js";
|
|
31
31
|
import {
|
|
32
32
|
loadEntitlements
|
|
33
33
|
} from "./chunk-PTWMYRV4.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-SY3KZGGN.js";
|
|
37
37
|
import {
|
|
38
38
|
useEditorStore
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NU76YFXE.js";
|
|
40
40
|
import {
|
|
41
41
|
getActiveRenderer
|
|
42
42
|
} from "./chunk-CEVTHE4E.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-PTWMYRV4.js";
|
|
10
10
|
import {
|
|
11
11
|
activeTeamWorkspaceId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E2Z7MZPS.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
GUEST_FILE_LIMIT,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-SSIJMUZP.js";
|
|
24
24
|
import {
|
|
25
25
|
markLibraryDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NU76YFXE.js";
|
|
27
27
|
import {
|
|
28
28
|
create
|
|
29
29
|
} from "./chunk-QLJLPV5R.js";
|
|
@@ -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-
|
|
94
|
+
import("./editor-store-ZLLBU4NJ.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-K25UY2TI.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);
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
requestEmbeddings,
|
|
17
17
|
requestImage,
|
|
18
18
|
requestImageAction
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-ZRYADMQJ.js";
|
|
20
|
+
import "./chunk-M7OCDUFH.js";
|
|
21
21
|
import "./chunk-A4CGHVJP.js";
|
|
22
22
|
import "./chunk-PTWMYRV4.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-E2Z7MZPS.js";
|
|
24
24
|
import "./chunk-SY3KZGGN.js";
|
|
25
25
|
import "./chunk-3PRZ5XSZ.js";
|
|
26
26
|
import "./chunk-QLJLPV5R.js";
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
defaultMeasure,
|
|
9
9
|
placePicture
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XLF3H275.js";
|
|
11
11
|
import "./chunk-UCNBKWJQ.js";
|
|
12
12
|
import {
|
|
13
13
|
api
|
|
@@ -121,7 +121,7 @@ async function placeLibraryItem(item, opts = {}) {
|
|
|
121
121
|
}
|
|
122
122
|
if (item.contentType.startsWith("video/")) {
|
|
123
123
|
const file = await libraryFile(item, opts);
|
|
124
|
-
const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-
|
|
124
|
+
const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-ZLLBU4NJ.js"), import("./media-tool-K25UY2TI.js")]);
|
|
125
125
|
const cam = useEditorStore.getState().camera;
|
|
126
126
|
await placeMediaFile(file, { kind: "point", ...opts.at ?? { x: cam.x, y: cam.y } });
|
|
127
127
|
return useEditorStore.getState().selection[0] ?? null;
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
selectedVectorTarget,
|
|
17
17
|
startImageAction,
|
|
18
18
|
startImageGeneration
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MDGSETIP.js";
|
|
20
20
|
import "./chunk-3QD6CCCN.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-ZRYADMQJ.js";
|
|
22
|
+
import "./chunk-M7OCDUFH.js";
|
|
23
23
|
import "./chunk-A4CGHVJP.js";
|
|
24
24
|
import "./chunk-VOOUF5TT.js";
|
|
25
25
|
import "./chunk-HS4CR6HU.js";
|
|
@@ -38,10 +38,10 @@ import "./chunk-IYAH6IB3.js";
|
|
|
38
38
|
import "./chunk-633NXQV2.js";
|
|
39
39
|
import "./chunk-EYGE2XSW.js";
|
|
40
40
|
import "./chunk-PTWMYRV4.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-E2Z7MZPS.js";
|
|
42
42
|
import "./chunk-SY3KZGGN.js";
|
|
43
43
|
import "./chunk-3PRZ5XSZ.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-NU76YFXE.js";
|
|
45
45
|
import "./chunk-OZJ7KASI.js";
|
|
46
46
|
import "./chunk-PMLSPVLR.js";
|
|
47
47
|
import "./chunk-76I6DIEM.js";
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
confirmTierCommands,
|
|
9
9
|
dangerousCommands,
|
|
10
10
|
registerDangerousCommands
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-MPFEXGO7.js";
|
|
12
|
+
import "./chunk-DHEP4225.js";
|
|
13
|
+
import "./chunk-MAFFDC5R.js";
|
|
14
14
|
import "./chunk-ZLWN6LBH.js";
|
|
15
15
|
import "./chunk-Q7EITIAT.js";
|
|
16
16
|
import "./chunk-X36CCQ76.js";
|
|
@@ -6,21 +6,21 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
syncStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EG7XZL7A.js";
|
|
10
10
|
import "./chunk-DE2GVUWC.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-XKGIQ46C.js";
|
|
12
12
|
import "./chunk-PTWMYRV4.js";
|
|
13
13
|
import "./chunk-EUF3VFBW.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-E2Z7MZPS.js";
|
|
15
15
|
import {
|
|
16
16
|
cloudApi
|
|
17
17
|
} from "./chunk-SY3KZGGN.js";
|
|
18
18
|
import "./chunk-3PRZ5XSZ.js";
|
|
19
19
|
import "./chunk-SSIJMUZP.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-XFSPCWQ2.js";
|
|
21
21
|
import {
|
|
22
22
|
useEditorStore
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NU76YFXE.js";
|
|
24
24
|
import "./chunk-OZJ7KASI.js";
|
|
25
25
|
import "./chunk-PMLSPVLR.js";
|
|
26
26
|
import "./chunk-76I6DIEM.js";
|
|
@@ -7,19 +7,19 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
editBlockReason,
|
|
9
9
|
editorToolContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XFBBMSYC.js";
|
|
11
11
|
import "./chunk-KOAEKWIA.js";
|
|
12
12
|
import "./chunk-U7FLEMSS.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-MDGSETIP.js";
|
|
14
14
|
import "./chunk-3QD6CCCN.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-ZRYADMQJ.js";
|
|
16
|
+
import "./chunk-M7OCDUFH.js";
|
|
17
17
|
import "./chunk-A4CGHVJP.js";
|
|
18
18
|
import "./chunk-VOOUF5TT.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-S6PC3S6K.js";
|
|
20
20
|
import "./chunk-ZYK65XJJ.js";
|
|
21
21
|
import "./chunk-HS4CR6HU.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-EG7XZL7A.js";
|
|
23
23
|
import "./chunk-DE2GVUWC.js";
|
|
24
24
|
import "./chunk-OWWBFGCR.js";
|
|
25
25
|
import "./chunk-LB26H7IY.js";
|
|
@@ -37,15 +37,15 @@ import "./chunk-633NXQV2.js";
|
|
|
37
37
|
import "./chunk-YD7Z3PGN.js";
|
|
38
38
|
import "./chunk-3DMEPFEZ.js";
|
|
39
39
|
import "./chunk-EYGE2XSW.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-XKGIQ46C.js";
|
|
41
41
|
import "./chunk-PTWMYRV4.js";
|
|
42
42
|
import "./chunk-EUF3VFBW.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-E2Z7MZPS.js";
|
|
44
44
|
import "./chunk-SY3KZGGN.js";
|
|
45
45
|
import "./chunk-3PRZ5XSZ.js";
|
|
46
46
|
import "./chunk-SSIJMUZP.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-XFSPCWQ2.js";
|
|
48
|
+
import "./chunk-NU76YFXE.js";
|
|
49
49
|
import "./chunk-OZJ7KASI.js";
|
|
50
50
|
import "./chunk-PMLSPVLR.js";
|
|
51
51
|
import "./chunk-76I6DIEM.js";
|
|
@@ -6,17 +6,17 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
syncStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EG7XZL7A.js";
|
|
10
10
|
import "./chunk-DE2GVUWC.js";
|
|
11
11
|
import {
|
|
12
12
|
isGuest
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XKGIQ46C.js";
|
|
14
14
|
import {
|
|
15
15
|
cachedLimits,
|
|
16
16
|
loadEntitlements
|
|
17
17
|
} from "./chunk-PTWMYRV4.js";
|
|
18
18
|
import "./chunk-EUF3VFBW.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-E2Z7MZPS.js";
|
|
20
20
|
import {
|
|
21
21
|
PLANS,
|
|
22
22
|
cloudApi,
|
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
} from "./chunk-SY3KZGGN.js";
|
|
25
25
|
import "./chunk-3PRZ5XSZ.js";
|
|
26
26
|
import "./chunk-SSIJMUZP.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-XFSPCWQ2.js";
|
|
28
|
+
import "./chunk-NU76YFXE.js";
|
|
29
29
|
import "./chunk-OZJ7KASI.js";
|
|
30
30
|
import "./chunk-PMLSPVLR.js";
|
|
31
31
|
import "./chunk-76I6DIEM.js";
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
AiClientError,
|
|
14
14
|
aiFetch
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-ZRYADMQJ.js";
|
|
16
|
+
import "./chunk-M7OCDUFH.js";
|
|
17
17
|
import {
|
|
18
18
|
useAiStore
|
|
19
19
|
} from "./chunk-A4CGHVJP.js";
|
|
@@ -24,7 +24,7 @@ import "./chunk-T4R6MNN5.js";
|
|
|
24
24
|
import "./chunk-633NXQV2.js";
|
|
25
25
|
import "./chunk-EYGE2XSW.js";
|
|
26
26
|
import "./chunk-PTWMYRV4.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-E2Z7MZPS.js";
|
|
28
28
|
import "./chunk-SY3KZGGN.js";
|
|
29
29
|
import "./chunk-3PRZ5XSZ.js";
|
|
30
30
|
import {
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
runPluginWithImport,
|
|
19
19
|
runningSessionFor,
|
|
20
20
|
setEnabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UTI7RUIM.js";
|
|
22
22
|
import "./chunk-TIIUGFMT.js";
|
|
23
23
|
import "./chunk-NHUTNMHR.js";
|
|
24
24
|
import "./chunk-VOOUF5TT.js";
|
|
25
25
|
import "./chunk-ZYK65XJJ.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-EG7XZL7A.js";
|
|
27
27
|
import "./chunk-DE2GVUWC.js";
|
|
28
28
|
import "./chunk-OWWBFGCR.js";
|
|
29
29
|
import "./chunk-LB26H7IY.js";
|
|
@@ -39,16 +39,16 @@ import "./chunk-SZLGZKNV.js";
|
|
|
39
39
|
import "./chunk-IYAH6IB3.js";
|
|
40
40
|
import "./chunk-633NXQV2.js";
|
|
41
41
|
import "./chunk-EYGE2XSW.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-XKGIQ46C.js";
|
|
43
43
|
import "./chunk-PTWMYRV4.js";
|
|
44
44
|
import "./chunk-EUF3VFBW.js";
|
|
45
45
|
import "./chunk-RJHJSADV.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-E2Z7MZPS.js";
|
|
47
47
|
import "./chunk-SY3KZGGN.js";
|
|
48
48
|
import "./chunk-3PRZ5XSZ.js";
|
|
49
49
|
import "./chunk-SSIJMUZP.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-XFSPCWQ2.js";
|
|
51
|
+
import "./chunk-NU76YFXE.js";
|
|
52
52
|
import "./chunk-OZJ7KASI.js";
|
|
53
53
|
import "./chunk-PMLSPVLR.js";
|
|
54
54
|
import "./chunk-76I6DIEM.js";
|
|
@@ -7,21 +7,21 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
onSyncStatus,
|
|
9
9
|
syncStatus
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EG7XZL7A.js";
|
|
11
11
|
import "./chunk-DE2GVUWC.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-XKGIQ46C.js";
|
|
13
13
|
import "./chunk-PTWMYRV4.js";
|
|
14
14
|
import "./chunk-EUF3VFBW.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-E2Z7MZPS.js";
|
|
16
16
|
import {
|
|
17
17
|
api
|
|
18
18
|
} from "./chunk-SY3KZGGN.js";
|
|
19
19
|
import "./chunk-3PRZ5XSZ.js";
|
|
20
20
|
import "./chunk-SSIJMUZP.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-XFSPCWQ2.js";
|
|
22
22
|
import {
|
|
23
23
|
useEditorStore
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NU76YFXE.js";
|
|
25
25
|
import "./chunk-OZJ7KASI.js";
|
|
26
26
|
import "./chunk-PMLSPVLR.js";
|
|
27
27
|
import "./chunk-76I6DIEM.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
documentFromSeed,
|
|
14
14
|
localOnlyDocs,
|
|
15
15
|
newFileRefusal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XKGIQ46C.js";
|
|
17
17
|
import "./chunk-PTWMYRV4.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-E2Z7MZPS.js";
|
|
19
19
|
import "./chunk-SY3KZGGN.js";
|
|
20
20
|
import "./chunk-3PRZ5XSZ.js";
|
|
21
21
|
import "./chunk-SSIJMUZP.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-NU76YFXE.js";
|
|
23
23
|
import "./chunk-OZJ7KASI.js";
|
|
24
24
|
import "./chunk-PMLSPVLR.js";
|
|
25
25
|
import "./chunk-76I6DIEM.js";
|