@popcraft/kit 0.53.13 → 0.53.14
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-VFKKCXNW.js → agent-FSJEFIPY.js} +1 -1
- package/dist/chunks/{builtin-SXC3ESRR.js → builtin-IGI3AUEJ.js} +3 -3
- package/dist/chunks/{buy-credits-4QMY23I7.js → buy-credits-PUWEWVXS.js} +2 -2
- package/dist/chunks/{check-template-XIZE7EOS.js → check-template-TOP5OMHZ.js} +2 -2
- package/dist/chunks/{chunk-TV5FI5GP.js → chunk-2WK7BHVX.js} +2 -2
- package/dist/chunks/{chunk-T2B3BBAY.js → chunk-47MKTQTW.js} +5 -5
- package/dist/chunks/{chunk-6WFRZJQQ.js → chunk-4QN2WHC4.js} +4 -4
- package/dist/chunks/{chunk-J7CR7BAO.js → chunk-53RCZPJR.js} +4 -4
- package/dist/chunks/{chunk-ANGQQ5SL.js → chunk-6AOXUMWU.js} +1 -1
- package/dist/chunks/{chunk-HS7FSPEG.js → chunk-C4PNLR6R.js} +9 -9
- package/dist/chunks/{chunk-K5SBJZE3.js → chunk-ETL6GIHH.js} +7 -7
- package/dist/chunks/{chunk-3NSGRM6J.js → chunk-HRMLMLYJ.js} +2 -2
- package/dist/chunks/{chunk-TRTU2FSO.js → chunk-IOL5IDMF.js} +42 -42
- package/dist/chunks/{chunk-GOVWVKHX.js → chunk-J7K543IW.js} +4 -4
- package/dist/chunks/{chunk-LAMNIV7V.js → chunk-KUWEAGOR.js} +3 -3
- package/dist/chunks/{chunk-7NA4JYVX.js → chunk-L3WQGPTO.js} +3 -1
- package/dist/chunks/{chunk-LHPVTMCD.js → chunk-PIOGFOWS.js} +2 -2
- package/dist/chunks/{chunk-IIFTN3G3.js → chunk-QOCIWG7Y.js} +1 -1
- package/dist/chunks/{chunk-7RIKE7TX.js → chunk-TMTHHTEL.js} +11 -11
- package/dist/chunks/{chunk-4BSC6DYN.js → chunk-UNX5L3LC.js} +3 -3
- package/dist/chunks/{chunk-GOEVKA7R.js → chunk-UPJNYLDK.js} +1 -1
- package/dist/chunks/{chunk-CPOOC3HY.js → chunk-Y5BURR2Y.js} +1 -1
- package/dist/chunks/{chunk-ZHM5OO26.js → chunk-ZBZGUMTR.js} +2 -2
- package/dist/chunks/{client-LKUCTAQJ.js → client-6WNXKMRS.js} +3 -3
- package/dist/chunks/{client-6PTKLMP4.js → client-CSCCSZ3A.js} +1 -1
- package/dist/chunks/{client-TMV3JAVU.js → client-XK74SNHF.js} +2 -2
- package/dist/chunks/{client-actions-G5AEYLK6.js → client-actions-VRVF2IDF.js} +5 -5
- package/dist/chunks/{dangerous-CXYENUHS.js → dangerous-TWFQT7KS.js} +3 -3
- package/dist/chunks/{delete-current-file-P2C4XJ3L.js → delete-current-file-F6UD6TUY.js} +5 -5
- package/dist/chunks/{editor-seams-OJOIPMSR.js → editor-seams-LBR2YU3I.js} +10 -10
- package/dist/chunks/{editor-store-Y4QJUZRN.js → editor-store-S3I62M6V.js} +1 -1
- package/dist/chunks/{export-watermark-KA4DFQ5F.js → export-watermark-PNTZXFDE.js} +5 -5
- package/dist/chunks/{eyedropper-MQXDCCQQ.js → eyedropper-LU25BWYG.js} +1 -1
- package/dist/chunks/{generate-media-WILB2F7S.js → generate-media-V6EIA225.js} +3 -3
- package/dist/chunks/{host-3J3QI73A.js → host-JDDC6RB6.js} +6 -6
- package/dist/chunks/{integrations-QRCBIFAL.js → integrations-VJJ5XIIO.js} +1 -1
- package/dist/chunks/{libraries-5B666Y26.js → libraries-L4UVDSTX.js} +5 -5
- package/dist/chunks/{live-RMPMOVYA.js → live-2EMT5B74.js} +1 -1
- package/dist/chunks/{media-tool-DJZK4QD6.js → media-tool-QXHSL7E6.js} +1 -1
- package/dist/chunks/{new-file-KM7WGHYH.js → new-file-AQIDPJCS.js} +3 -3
- package/dist/chunks/{plugin-F6TFWUMK.js → plugin-GRA3KNGY.js} +2 -2
- package/dist/chunks/{plugin-import-SJN6BBFR.js → plugin-import-IHL3EJOJ.js} +14 -14
- package/dist/chunks/{presence-XSD4ZVR4.js → presence-ED565XFS.js} +2 -2
- package/dist/chunks/{project-YAHBLLJH.js → project-PAYXTSYV.js} +1 -1
- package/dist/chunks/{publish-site-TROND4HZ.js → publish-site-Q3DHBNNU.js} +6 -6
- package/dist/chunks/{publish-store-LCNNW2TV.js → publish-store-QS5HTSDI.js} +4 -4
- package/dist/chunks/{raster-actions-67JHXSXD.js → raster-actions-B2GFWM23.js} +1 -1
- package/dist/chunks/{runner-NU6KTPDY.js → runner-RBZF2S2B.js} +17 -17
- package/dist/chunks/{store-JIAL5L67.js → store-B6I7XTKY.js} +6 -6
- package/dist/chunks/{sync-E6XGN5DN.js → sync-44IIKKZT.js} +5 -5
- package/dist/chunks/{tabs-RBP42L32.js → tabs-KKLR5PAW.js} +8 -8
- package/dist/chunks/{team-CSWHSRE4.js → team-NHML4HFZ.js} +1 -1
- package/dist/chunks/{team-client-HSQHUIL5.js → team-client-5745O2TB.js} +1 -1
- package/dist/chunks/{tools-U5KNAVCI.js → tools-GSV6WRCF.js} +2 -2
- package/dist/chunks/{ui-commands-7MDF266T.js → ui-commands-KBGR2YJD.js} +12 -12
- package/dist/chunks/{versions-6PA52YJZ.js → versions-LQSEFYTK.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinTools,
|
|
9
9
|
registerBuiltinTools
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-2WK7BHVX.js";
|
|
11
|
+
import "./chunk-IOL5IDMF.js";
|
|
12
12
|
import "./chunk-LJZR7CU3.js";
|
|
13
13
|
import "./chunk-JNBUJE2Z.js";
|
|
14
14
|
import "./chunk-EGUH2RFR.js";
|
|
@@ -19,7 +19,7 @@ import "./chunk-SH6T47YM.js";
|
|
|
19
19
|
import "./chunk-O6H6N3RA.js";
|
|
20
20
|
import "./chunk-WA5G5BAY.js";
|
|
21
21
|
import "./chunk-UDDWBCFE.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-UNX5L3LC.js";
|
|
23
23
|
import "./chunk-T2U7UWFL.js";
|
|
24
24
|
import "./chunk-MD3CNNTN.js";
|
|
25
25
|
import "./chunk-AKNWNB6A.js";
|
|
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
HYPERY_TEAM_HEADER,
|
|
9
9
|
hyperyRequestHeaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QOCIWG7Y.js";
|
|
11
11
|
import "./chunk-6TMH7HCQ.js";
|
|
12
12
|
import {
|
|
13
13
|
useHyperyTeam
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UPJNYLDK.js";
|
|
15
15
|
import {
|
|
16
16
|
ApiError,
|
|
17
17
|
inAppPurchases,
|
|
@@ -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-
|
|
9
|
+
} from "./chunk-C4PNLR6R.js";
|
|
10
10
|
import {
|
|
11
11
|
builtinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IOL5IDMF.js";
|
|
13
13
|
import "./chunk-LJZR7CU3.js";
|
|
14
14
|
import "./chunk-JNBUJE2Z.js";
|
|
15
15
|
import "./chunk-EGUH2RFR.js";
|
|
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinCommands,
|
|
9
9
|
registerBuiltinCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IOL5IDMF.js";
|
|
11
11
|
import {
|
|
12
12
|
toolView
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UNX5L3LC.js";
|
|
14
14
|
import {
|
|
15
15
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
16
16
|
} from "./chunk-63KP74KB.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-T2U7UWFL.js";
|
|
16
16
|
import {
|
|
17
17
|
syncStatus
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-53RCZPJR.js";
|
|
19
19
|
import {
|
|
20
20
|
exportNodeToSVG
|
|
21
21
|
} from "./chunk-O7KIQRJE.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
setPluginTabs,
|
|
30
30
|
useEditorStore
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ETL6GIHH.js";
|
|
32
32
|
import {
|
|
33
33
|
openBeside
|
|
34
34
|
} from "./chunk-HU75T2CC.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-GRA3KNGY.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-AQIDPJCS.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-
|
|
772
|
+
const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-IHL3EJOJ.js");
|
|
773
773
|
if (d.ir && typeof d.ir === "object") {
|
|
774
774
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
775
775
|
return;
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-6YGUTIAY.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZBZGUMTR.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveChatModel,
|
|
15
15
|
setModelPref,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-L47DGY5Z.js";
|
|
18
18
|
import {
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ETL6GIHH.js";
|
|
21
21
|
import {
|
|
22
22
|
create
|
|
23
23
|
} from "./chunk-RVNIEOXA.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-
|
|
1800
|
+
const { runTurn } = await import("./runner-RBZF2S2B.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-
|
|
1903
|
+
void import("./runner-RBZF2S2B.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);
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
reportOpenStage,
|
|
17
17
|
setCloudLink,
|
|
18
18
|
trackOpen
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PIOGFOWS.js";
|
|
20
20
|
import {
|
|
21
21
|
parseDeepLink,
|
|
22
22
|
withDeepLink
|
|
23
23
|
} from "./chunk-HFCMTDPQ.js";
|
|
24
24
|
import {
|
|
25
25
|
activeTeamWorkspaceId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UPJNYLDK.js";
|
|
27
27
|
import {
|
|
28
28
|
ApiError,
|
|
29
29
|
api,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-7OJZZPU4.js";
|
|
32
32
|
import {
|
|
33
33
|
attachPresence
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6AOXUMWU.js";
|
|
35
35
|
import {
|
|
36
36
|
isPersistableDocument,
|
|
37
37
|
isUnsavedPlaceholder,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
setCollabHistory,
|
|
43
43
|
storedDocument,
|
|
44
44
|
useEditorStore
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ETL6GIHH.js";
|
|
46
46
|
import {
|
|
47
47
|
currentHistoryGroup
|
|
48
48
|
} from "./chunk-DUH4J3CB.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
needsSelection,
|
|
9
9
|
pageGo,
|
|
10
10
|
selectionIsPicture
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IOL5IDMF.js";
|
|
12
12
|
import {
|
|
13
13
|
external_exports
|
|
14
14
|
} from "./chunk-UDDWBCFE.js";
|
|
@@ -31,7 +31,7 @@ var none = external_exports.object({});
|
|
|
31
31
|
var emit = (name, detail) => {
|
|
32
32
|
if (typeof window !== "undefined") window.dispatchEvent(new CustomEvent(name, { detail }));
|
|
33
33
|
};
|
|
34
|
-
var store = () => import("./editor-store-
|
|
34
|
+
var store = () => import("./editor-store-S3I62M6V.js").then((m) => m.useEditorStore.getState());
|
|
35
35
|
var MODE_IDS = MODE_LIST.map((m) => m.id);
|
|
36
36
|
var MODE_ALIASES = { JAM: "POPCORN", DEV: "VIEW" };
|
|
37
37
|
var modeSet = defineCommand({
|
|
@@ -167,7 +167,7 @@ var dialogOpen = defineCommand({
|
|
|
167
167
|
(await import("./plan-limit-NQZVPJSA.js")).openPlanDialog();
|
|
168
168
|
break;
|
|
169
169
|
case "credits":
|
|
170
|
-
await (await import("./buy-credits-
|
|
170
|
+
await (await import("./buy-credits-PUWEWVXS.js")).buyAiCredits();
|
|
171
171
|
break;
|
|
172
172
|
case "tokens":
|
|
173
173
|
emit("popcraft-open-tokens");
|
|
@@ -213,7 +213,7 @@ var aiOpen = defineCommand({
|
|
|
213
213
|
] } },
|
|
214
214
|
run: async ({ dialog, skillId }) => {
|
|
215
215
|
if (dialog) (await import("./client-store-4J5MJDAW.js")).openAiDialog(dialog);
|
|
216
|
-
else (await import("./store-
|
|
216
|
+
else (await import("./store-B6I7XTKY.js")).openAgentPanel({ skillId: skillId ?? null });
|
|
217
217
|
return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
|
|
218
218
|
}
|
|
219
219
|
});
|
|
@@ -226,7 +226,7 @@ var agentContinue = defineCommand({
|
|
|
226
226
|
params: external_exports.object({}),
|
|
227
227
|
expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
|
|
228
228
|
run: async () => {
|
|
229
|
-
const resumed = await (await import("./runner-
|
|
229
|
+
const resumed = await (await import("./runner-RBZF2S2B.js")).continueTurn();
|
|
230
230
|
return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
|
|
231
231
|
}
|
|
232
232
|
});
|
|
@@ -305,11 +305,11 @@ var toolPlace = defineCommand({
|
|
|
305
305
|
run: async ({ what }) => {
|
|
306
306
|
if (what === "media") {
|
|
307
307
|
const s = await store();
|
|
308
|
-
const { placeMediaFromPicker } = await import("./media-tool-
|
|
308
|
+
const { placeMediaFromPicker } = await import("./media-tool-QXHSL7E6.js");
|
|
309
309
|
await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
|
|
310
310
|
return { summary: "Placing media" };
|
|
311
311
|
}
|
|
312
|
-
const { beginEyedrop } = await import("./eyedropper-
|
|
312
|
+
const { beginEyedrop } = await import("./eyedropper-LU25BWYG.js");
|
|
313
313
|
void beginEyedrop();
|
|
314
314
|
return { summary: "Pick a color" };
|
|
315
315
|
}
|
|
@@ -327,7 +327,7 @@ var nodeRasterize = defineCommand({
|
|
|
327
327
|
keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
|
|
328
328
|
} },
|
|
329
329
|
run: async () => {
|
|
330
|
-
const { flattenSelectionToPaintLayer } = await import("./raster-actions-
|
|
330
|
+
const { flattenSelectionToPaintLayer } = await import("./raster-actions-B2GFWM23.js");
|
|
331
331
|
await flattenSelectionToPaintLayer();
|
|
332
332
|
return { summary: "Rasterized" };
|
|
333
333
|
}
|
|
@@ -438,7 +438,7 @@ function pluginCommand(plugins) {
|
|
|
438
438
|
params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
|
|
439
439
|
expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
|
|
440
440
|
run: async ({ pluginId, commandId }) => {
|
|
441
|
-
await (await import("./host-
|
|
441
|
+
await (await import("./host-JDDC6RB6.js")).runPlugin(pluginId, commandId);
|
|
442
442
|
return { summary: "Plugin started" };
|
|
443
443
|
}
|
|
444
444
|
});
|
|
@@ -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-ED565XFS.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-44IIKKZT.js");
|
|
6660
6660
|
return duplicateDocumentToCloud(id);
|
|
6661
6661
|
},
|
|
6662
6662
|
deleteDocument: async (id) => {
|
|
@@ -7327,8 +7327,8 @@ var useEditorStore = create()(
|
|
|
7327
7327
|
let cosmetic = true;
|
|
7328
7328
|
const touched = [];
|
|
7329
7329
|
for (const u of updates) {
|
|
7330
|
-
const
|
|
7331
|
-
if (!
|
|
7330
|
+
const housekeeping = Object.keys(u.props).every((k) => k === "locked" || k === "visible" || k === "name");
|
|
7331
|
+
if (!housekeeping && isLocked(document2, u.id)) continue;
|
|
7332
7332
|
let props = u.props;
|
|
7333
7333
|
if ("rotation" in props && !canRotate(document2, u.id)) {
|
|
7334
7334
|
const { rotation: _dropped, ...rest } = props;
|
|
@@ -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-GSV6WRCF.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-IGI3AUEJ.js")).registerBuiltinTools })),
|
|
10135
|
+
import("./editor-seams-LBR2YU3I.js"),
|
|
10136
|
+
import("./live-2EMT5B74.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 });
|
|
@@ -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-S3I62M6V.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-QXHSL7E6.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);
|