@popcraft/kit 0.38.1 → 0.38.2
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-SCTVSDTU.js → agent-GNWVB2XJ.js} +1 -1
- package/dist/chunks/{builtin-Y263D2YC.js → builtin-TSVSJO52.js} +3 -3
- package/dist/chunks/{buy-credits-PSDEBHLD.js → buy-credits-7FNCTACK.js} +2 -2
- package/dist/chunks/{check-template-24JPRQGJ.js → check-template-I657LM3I.js} +2 -2
- package/dist/chunks/{chunk-HZI75RGD.js → chunk-3SC25WZ5.js} +2 -2
- package/dist/chunks/{chunk-OWPYTKSY.js → chunk-3VFGHPEZ.js} +4 -4
- package/dist/chunks/{chunk-6O7B3QBZ.js → chunk-4RBH3O5F.js} +11 -11
- package/dist/chunks/{chunk-XRR2LUUI.js → chunk-6SMRNP5Y.js} +5 -5
- package/dist/chunks/{chunk-NVIVZ3F2.js → chunk-BMRNITGS.js} +2 -2
- package/dist/chunks/{chunk-6R6RT6IM.js → chunk-E2D5UCNZ.js} +1 -1
- package/dist/chunks/{chunk-6PWHRTS7.js → chunk-EQLSUBYL.js} +1 -1
- package/dist/chunks/{chunk-GZNST3QE.js → chunk-FJD2O2GZ.js} +1 -1
- package/dist/chunks/{chunk-XOJRL5XK.js → chunk-GYHSZ6Z5.js} +3 -3
- package/dist/chunks/{chunk-IJ4NWCGN.js → chunk-I3SXM7XC.js} +3 -3
- package/dist/chunks/{chunk-X23CRF6P.js → chunk-IWD75TRW.js} +5 -5
- package/dist/chunks/{chunk-YNM4VRAH.js → chunk-J7CCCBMK.js} +2 -2
- package/dist/chunks/{chunk-IMEWZX72.js → chunk-NN3QURPF.js} +1 -1
- package/dist/chunks/{chunk-RCZXVLCY.js → chunk-NZYGZEAZ.js} +5 -5
- package/dist/chunks/{chunk-DNO3VZLU.js → chunk-QQXRAGKU.js} +41 -41
- package/dist/chunks/{chunk-GQA2DGPP.js → chunk-RKU52AC7.js} +1 -1
- package/dist/chunks/{chunk-3WDXWPDI.js → chunk-SI7ZWJYW.js} +4 -4
- package/dist/chunks/{chunk-24YB3WZ2.js → chunk-UW67CF72.js} +8 -8
- package/dist/chunks/{chunk-WKJFFAJV.js → chunk-YMTDSUQS.js} +2 -2
- package/dist/chunks/{client-QIOLY33K.js → client-3WZICJ37.js} +1 -1
- package/dist/chunks/{client-QYP4N2I3.js → client-GTDINYMH.js} +2 -2
- package/dist/chunks/{client-6VISKONQ.js → client-RNLG5M56.js} +3 -3
- package/dist/chunks/{client-actions-TD4WAVT4.js → client-actions-7VFX3VCP.js} +5 -5
- package/dist/chunks/{dangerous-HYNALNYS.js → dangerous-P7FL7VKF.js} +3 -3
- package/dist/chunks/{delete-current-file-62IHEH5K.js → delete-current-file-UJAX3NVJ.js} +5 -5
- package/dist/chunks/{editor-seams-IFHMBP2C.js → editor-seams-6JPLDPPT.js} +10 -10
- package/dist/chunks/{editor-store-7XN5CME2.js → editor-store-LLC7XRHU.js} +1 -1
- package/dist/chunks/{export-watermark-53M4TDBK.js → export-watermark-J6CC5Q4B.js} +5 -5
- package/dist/chunks/{eyedropper-7ECHDA4O.js → eyedropper-XXALH6BL.js} +1 -1
- package/dist/chunks/{generate-media-PSSASS5U.js → generate-media-O5BIURGZ.js} +3 -3
- package/dist/chunks/{host-V4XUB2QK.js → host-V234YQBH.js} +6 -6
- package/dist/chunks/{integrations-NB2OZQQP.js → integrations-2LB76OI6.js} +1 -1
- package/dist/chunks/{libraries-63I6XNBV.js → libraries-6WJVKDR2.js} +5 -5
- package/dist/chunks/{live-7YYKVQAB.js → live-PDOOHV6Z.js} +1 -1
- package/dist/chunks/{media-tool-CQLTWFAB.js → media-tool-S5R4HIUA.js} +1 -1
- package/dist/chunks/{new-file-723H4YU2.js → new-file-EHVYDNIN.js} +3 -3
- package/dist/chunks/{plugin-UGDCUOWA.js → plugin-Y4ZV563I.js} +2 -2
- package/dist/chunks/{plugin-import-WXBNOJ6I.js → plugin-import-TBKPK62K.js} +14 -14
- package/dist/chunks/{presence-YGUYVFTL.js → presence-HUEFAYF4.js} +2 -2
- package/dist/chunks/{project-B7RGMPZX.js → project-HP6PZ37P.js} +1 -1
- package/dist/chunks/{publish-site-YX762ECL.js → publish-site-VYGZYCR2.js} +6 -6
- package/dist/chunks/{publish-store-HIP3LZE5.js → publish-store-TKO5FIHX.js} +4 -4
- package/dist/chunks/{raster-actions-WPPPD7AM.js → raster-actions-5AMCZB2O.js} +1 -1
- package/dist/chunks/{runner-6UKDRH3P.js → runner-Z75WHRNF.js} +17 -17
- package/dist/chunks/{store-ZZBEWXP7.js → store-QTEQH3RU.js} +6 -6
- package/dist/chunks/{sync-XBYKPZQ2.js → sync-RQQNZN7D.js} +5 -5
- package/dist/chunks/{tabs-KBOH4BUL.js → tabs-KFCFURAE.js} +8 -8
- package/dist/chunks/{team-FIV5MCWG.js → team-X4E64IFS.js} +1 -1
- package/dist/chunks/{team-client-ZAB57ZC4.js → team-client-74LSUVFB.js} +1 -1
- package/dist/chunks/{tools-4FMYUTA2.js → tools-NCFNGAZ4.js} +2 -2
- package/dist/chunks/{ui-commands-QI4O7PFQ.js → ui-commands-AZ7L7MMF.js} +12 -12
- package/dist/chunks/{versions-WCY7GB55.js → versions-FSZ7QOWM.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-YMTDSUQS.js";
|
|
11
|
+
import "./chunk-QQXRAGKU.js";
|
|
12
12
|
import "./chunk-EIKVUM25.js";
|
|
13
13
|
import "./chunk-TOFM5KR2.js";
|
|
14
14
|
import "./chunk-GM6EDQRW.js";
|
|
@@ -19,7 +19,7 @@ import "./chunk-D7BTPGKH.js";
|
|
|
19
19
|
import "./chunk-MGHFA3ON.js";
|
|
20
20
|
import "./chunk-EWM2RBS4.js";
|
|
21
21
|
import "./chunk-KZ6U7EJM.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-I3SXM7XC.js";
|
|
23
23
|
import "./chunk-3YTIBH47.js";
|
|
24
24
|
import "./chunk-LCQ2BFMP.js";
|
|
25
25
|
import "./chunk-T3JDVXZ5.js";
|
|
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
HYPERY_TEAM_HEADER,
|
|
9
9
|
hyperyRequestHeaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NN3QURPF.js";
|
|
11
11
|
import {
|
|
12
12
|
useHyperyTeam
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FJD2O2GZ.js";
|
|
14
14
|
import {
|
|
15
15
|
ApiError,
|
|
16
16
|
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-UW67CF72.js";
|
|
10
10
|
import {
|
|
11
11
|
builtinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QQXRAGKU.js";
|
|
13
13
|
import "./chunk-EIKVUM25.js";
|
|
14
14
|
import "./chunk-TOFM5KR2.js";
|
|
15
15
|
import "./chunk-GM6EDQRW.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-LLC7XRHU.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-S5R4HIUA.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);
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-INCK3SLC.js";
|
|
14
14
|
import {
|
|
15
15
|
notice
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BMRNITGS.js";
|
|
17
17
|
import {
|
|
18
18
|
effectiveChatModel,
|
|
19
19
|
setModelPref,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-J3KDQURM.js";
|
|
22
22
|
import {
|
|
23
23
|
useEditorStore
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IWD75TRW.js";
|
|
25
25
|
import {
|
|
26
26
|
create
|
|
27
27
|
} from "./chunk-BS4DLA7I.js";
|
|
@@ -1477,7 +1477,7 @@ async function sendMessage(text) {
|
|
|
1477
1477
|
if (!useAgentStore.getState().activeThreadId) newThread();
|
|
1478
1478
|
const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
|
|
1479
1479
|
useAgentStore.setState({ draft: "", draftMentions: [], error: null });
|
|
1480
|
-
const { runTurn } = await import("./runner-
|
|
1480
|
+
const { runTurn } = await import("./runner-Z75WHRNF.js");
|
|
1481
1481
|
await runTurn(body, mentions);
|
|
1482
1482
|
}
|
|
1483
1483
|
function stop() {
|
|
@@ -1580,7 +1580,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
|
|
|
1580
1580
|
function subscribeChildTools() {
|
|
1581
1581
|
let dispose;
|
|
1582
1582
|
let cancelled = false;
|
|
1583
|
-
void import("./runner-
|
|
1583
|
+
void import("./runner-Z75WHRNF.js").then(({ onChildTool }) => {
|
|
1584
1584
|
const off = onChildTool((report) => {
|
|
1585
1585
|
if (report?.status !== "running" || report.jobId) return;
|
|
1586
1586
|
recordChildTool(report.toolCallId ?? "", report.name);
|
|
@@ -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-GYHSZ6Z5.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-QQXRAGKU.js";
|
|
17
17
|
import {
|
|
18
18
|
external_exports
|
|
19
19
|
} from "./chunk-KZ6U7EJM.js";
|
|
@@ -55,7 +55,7 @@ var collabSetSpotlight = defineCommand({
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
run: async ({ on }, ctx) => {
|
|
58
|
-
const { setSpotlight } = await import("./presence-
|
|
58
|
+
const { setSpotlight } = await import("./presence-HUEFAYF4.js");
|
|
59
59
|
setSpotlight(on);
|
|
60
60
|
ctx.notice(on ? "Spotlight on \u2014 everyone is following this view." : "Spotlight off.");
|
|
61
61
|
return { summary: on ? "Spotlight on" : "Spotlight off", data: { spotlight: on } };
|
|
@@ -82,7 +82,7 @@ var collabRevealPrivate = defineCommand({
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
run: async (_p, ctx) => {
|
|
85
|
-
const { useEditorStore } = await import("./editor-store-
|
|
85
|
+
const { useEditorStore } = await import("./editor-store-LLC7XRHU.js");
|
|
86
86
|
const before = Object.values(useEditorStore.getState().document.nodes).filter((n) => n.privateTo).length;
|
|
87
87
|
useEditorStore.getState().revealPrivate();
|
|
88
88
|
ctx.notice(before ? `Revealed ${before} private item${before === 1 ? "" : "s"}.` : "Nothing was private.");
|
|
@@ -146,7 +146,7 @@ var documentDelete = defineCommand({
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
run: async ({ id }, ctx) => {
|
|
149
|
-
const { useEditorStore } = await import("./editor-store-
|
|
149
|
+
const { useEditorStore } = await import("./editor-store-LLC7XRHU.js");
|
|
150
150
|
const wasOpen = useEditorStore.getState().document.id === id;
|
|
151
151
|
await useEditorStore.getState().deleteDocument(id);
|
|
152
152
|
ctx.notice("Deleted the document.");
|
|
@@ -190,7 +190,7 @@ var libraryPublish = defineCommand({
|
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
192
|
run: async (p, ctx) => {
|
|
193
|
-
const { publishLibrary } = await import("./libraries-
|
|
193
|
+
const { publishLibrary } = await import("./libraries-6WJVKDR2.js");
|
|
194
194
|
const doc = ctx.doc();
|
|
195
195
|
const pick = {
|
|
196
196
|
componentIds: p.componentIds ?? Object.keys(doc.components ?? {}),
|
|
@@ -222,7 +222,7 @@ var libraryUnpublish = defineCommand({
|
|
|
222
222
|
},
|
|
223
223
|
run: async ({ libraryId }, ctx) => {
|
|
224
224
|
if (!libraryId.trim()) throw new CommandError("Which library? Pass its `libraryId`.", "invalid_params");
|
|
225
|
-
const { unpublishLibrary } = await import("./libraries-
|
|
225
|
+
const { unpublishLibrary } = await import("./libraries-6WJVKDR2.js");
|
|
226
226
|
await unpublishLibrary(libraryId);
|
|
227
227
|
ctx.notice(`Unpublished library ${libraryId}.`);
|
|
228
228
|
return { summary: `Unpublished library ${libraryId}`, data: { libraryId, unpublished: true } };
|
|
@@ -234,8 +234,8 @@ var libraryCommands = [libraryPublish, libraryUnpublish];
|
|
|
234
234
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
235
235
|
async function findVersion(id) {
|
|
236
236
|
const [{ useEditorStore }, { versionLabel }] = await Promise.all([
|
|
237
|
-
import("./editor-store-
|
|
238
|
-
import("./versions-
|
|
237
|
+
import("./editor-store-LLC7XRHU.js"),
|
|
238
|
+
import("./versions-FSZ7QOWM.js")
|
|
239
239
|
]);
|
|
240
240
|
const meta = useEditorStore.getState().versions.find((v) => v.id === id);
|
|
241
241
|
if (!meta) {
|
|
@@ -268,7 +268,7 @@ var versionRestore = defineCommand({
|
|
|
268
268
|
},
|
|
269
269
|
run: async ({ id }) => {
|
|
270
270
|
const found = await findVersion(id);
|
|
271
|
-
const { restoreVersion } = await import("./versions-
|
|
271
|
+
const { restoreVersion } = await import("./versions-FSZ7QOWM.js");
|
|
272
272
|
await restoreVersion(found.meta);
|
|
273
273
|
return { summary: `Restored \u201C${found.label}\u201D`, data: { id, label: found.label, restored: true } };
|
|
274
274
|
}
|
|
@@ -293,7 +293,7 @@ var versionDelete = defineCommand({
|
|
|
293
293
|
},
|
|
294
294
|
run: async ({ id }, ctx) => {
|
|
295
295
|
const found = await findVersion(id);
|
|
296
|
-
const { deleteVersion } = await import("./versions-
|
|
296
|
+
const { deleteVersion } = await import("./versions-FSZ7QOWM.js");
|
|
297
297
|
await deleteVersion(found.meta);
|
|
298
298
|
ctx.notice(`Deleted the version \u201C${found.label}\u201D.`);
|
|
299
299
|
return { summary: `Deleted the version \u201C${found.label}\u201D`, data: { id, label: found.label, deleted: true } };
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
} from "./chunk-YEN7I2RF.js";
|
|
16
16
|
import {
|
|
17
17
|
syncStatus
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SI7ZWJYW.js";
|
|
19
19
|
import {
|
|
20
20
|
downloadBlob
|
|
21
21
|
} from "./chunk-EPIHT6OK.js";
|
|
22
22
|
import {
|
|
23
23
|
setPluginTabs,
|
|
24
24
|
useEditorStore
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IWD75TRW.js";
|
|
26
26
|
import {
|
|
27
27
|
TOKEN_IDS,
|
|
28
28
|
tokenVar
|
|
@@ -54,7 +54,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
|
|
|
54
54
|
// lib/plugins/api.ts
|
|
55
55
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
56
56
|
async function handlePluginCall(env, method, params = {}) {
|
|
57
|
-
const { dispatchPluginCall } = await import("./plugin-
|
|
57
|
+
const { dispatchPluginCall } = await import("./plugin-Y4ZV563I.js");
|
|
58
58
|
return dispatchPluginCall(env, method, params);
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -378,7 +378,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
|
|
|
378
378
|
if (!opened) throw new Error("The browser blocked the new tab");
|
|
379
379
|
},
|
|
380
380
|
createDocument: async (opts2) => {
|
|
381
|
-
const { createFreshFileOrExplain } = await import("./new-file-
|
|
381
|
+
const { createFreshFileOrExplain } = await import("./new-file-EHVYDNIN.js");
|
|
382
382
|
const created = await createFreshFileOrExplain({}, { name: opts2?.name });
|
|
383
383
|
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})`);
|
|
384
384
|
await useEditorStore.getState().openDocument(created.docId);
|
|
@@ -538,7 +538,7 @@ if (typeof window !== "undefined") {
|
|
|
538
538
|
const name = d.name || "Imported";
|
|
539
539
|
void (async () => {
|
|
540
540
|
try {
|
|
541
|
-
const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-
|
|
541
|
+
const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-TBKPK62K.js");
|
|
542
542
|
if (d.ir && typeof d.ir === "object") {
|
|
543
543
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
544
544
|
return;
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
requestImageAction,
|
|
29
29
|
sizeForAspect,
|
|
30
30
|
vectorSupport
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EQLSUBYL.js";
|
|
32
32
|
import {
|
|
33
33
|
useEditorStore
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-IWD75TRW.js";
|
|
35
35
|
import {
|
|
36
36
|
getActiveRenderer
|
|
37
37
|
} from "./chunk-UMNWFO5L.js";
|
|
@@ -140,7 +140,7 @@ function startHyperyTeams() {
|
|
|
140
140
|
maybePromptForTeam();
|
|
141
141
|
void followFileTeam(linkedKey);
|
|
142
142
|
});
|
|
143
|
-
void import("./sync-
|
|
143
|
+
void import("./sync-RQQNZN7D.js").then(({ onSyncStatus, syncStatus }) => {
|
|
144
144
|
linkedKey = syncStatus().link?.key ?? null;
|
|
145
145
|
void followFileTeam(linkedKey);
|
|
146
146
|
onSyncStatus((_s, link) => {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
hostEnv,
|
|
10
10
|
plain,
|
|
11
11
|
registerBuiltinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QQXRAGKU.js";
|
|
13
13
|
import {
|
|
14
14
|
storeOpsSeam
|
|
15
15
|
} from "./chunk-EYFUO3JH.js";
|
|
@@ -572,7 +572,7 @@ var commands = [
|
|
|
572
572
|
const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
|
|
573
573
|
import("./storefront-prepare-3XUN5BUO.js"),
|
|
574
574
|
import("./storefront-VZGQWBCK.js"),
|
|
575
|
-
import("./project-
|
|
575
|
+
import("./project-HP6PZ37P.js"),
|
|
576
576
|
import("./zip-export-QH6NXHTG.js"),
|
|
577
577
|
import("./tree-FT7HLUJI.js")
|
|
578
578
|
]);
|
|
@@ -769,7 +769,7 @@ var pluginRun = defineCommand({
|
|
|
769
769
|
}
|
|
770
770
|
},
|
|
771
771
|
run: async (p, ctx) => {
|
|
772
|
-
const { runPlugin } = await import("./host-
|
|
772
|
+
const { runPlugin } = await import("./host-V234YQBH.js");
|
|
773
773
|
await runPlugin(p.pluginId, p.commandId);
|
|
774
774
|
ctx.notice(`Started ${p.pluginId}.`);
|
|
775
775
|
return {
|
|
@@ -59,19 +59,19 @@ async function renderDocument(doc, nodeIds, options) {
|
|
|
59
59
|
function generateCapability(ctx) {
|
|
60
60
|
return async (prompt, options = {}) => {
|
|
61
61
|
if (options.format === "audio") {
|
|
62
|
-
const { requestAudio } = await import("./client-
|
|
62
|
+
const { requestAudio } = await import("./client-RNLG5M56.js");
|
|
63
63
|
const { signal: signal2, format: _f, ...rest2 } = options;
|
|
64
64
|
void _f;
|
|
65
65
|
return requestAudio({ prompt, ...rest2 }, signal2 ?? ctx.signal);
|
|
66
66
|
}
|
|
67
67
|
if (options.format === "video") {
|
|
68
|
-
const { generateVideoFile } = await import("./generate-media-
|
|
68
|
+
const { generateVideoFile } = await import("./generate-media-O5BIURGZ.js");
|
|
69
69
|
const { format: _f, signal: signal2, ...rest2 } = options;
|
|
70
70
|
void _f;
|
|
71
71
|
return generateVideoFile({ ...rest2, prompt, doc: ctx.doc() }, { signal: signal2 ?? ctx.signal });
|
|
72
72
|
}
|
|
73
73
|
const [{ requestImage }, { effectiveImageModel, useAiStore }] = await Promise.all([
|
|
74
|
-
import("./client-
|
|
74
|
+
import("./client-RNLG5M56.js"),
|
|
75
75
|
import("./client-store-UMVWPXFO.js")
|
|
76
76
|
]);
|
|
77
77
|
const modelId = effectiveImageModel(useAiStore.getState());
|
|
@@ -4576,7 +4576,7 @@ function createPopcornSlice(set2, get2) {
|
|
|
4576
4576
|
privateMode: false,
|
|
4577
4577
|
setPrivateMode: (on) => {
|
|
4578
4578
|
set2({ privateMode: on });
|
|
4579
|
-
void import("./presence-
|
|
4579
|
+
void import("./presence-HUEFAYF4.js").then((m) => m.setPresencePrivate(on)).catch(() => {
|
|
4580
4580
|
});
|
|
4581
4581
|
},
|
|
4582
4582
|
/** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
|
|
@@ -6629,7 +6629,7 @@ var useEditorStore = create()(
|
|
|
6629
6629
|
// A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
|
|
6630
6630
|
// Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
|
|
6631
6631
|
duplicateDocument: async (id) => {
|
|
6632
|
-
const { duplicateDocumentToCloud } = await import("./sync-
|
|
6632
|
+
const { duplicateDocumentToCloud } = await import("./sync-RQQNZN7D.js");
|
|
6633
6633
|
return duplicateDocumentToCloud(id);
|
|
6634
6634
|
},
|
|
6635
6635
|
deleteDocument: async (id) => {
|
|
@@ -10081,9 +10081,9 @@ if (typeof window !== "undefined") {
|
|
|
10081
10081
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10082
10082
|
window.__vpDesign = async (script, o = {}) => {
|
|
10083
10083
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10084
|
-
import("./tools-
|
|
10085
|
-
import("./editor-seams-
|
|
10086
|
-
import("./live-
|
|
10084
|
+
import("./tools-NCFNGAZ4.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-TSVSJO52.js")).registerBuiltinTools })),
|
|
10085
|
+
import("./editor-seams-6JPLDPPT.js"),
|
|
10086
|
+
import("./live-PDOOHV6Z.js")
|
|
10087
10087
|
]);
|
|
10088
10088
|
registerBuiltinTools();
|
|
10089
10089
|
const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
|
|
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
activeTeamWorkspaceId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FJD2O2GZ.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiError,
|
|
12
12
|
GUEST_FILE_LIMIT,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-MMX7T3JA.js";
|
|
19
19
|
import {
|
|
20
20
|
markLibraryDocument
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IWD75TRW.js";
|
|
22
22
|
import {
|
|
23
23
|
cloudEnabled,
|
|
24
24
|
cloudUser
|
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
} from "./chunk-Q7PYTWPJ.js";
|
|
21
21
|
import {
|
|
22
22
|
notice
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BMRNITGS.js";
|
|
24
24
|
import {
|
|
25
25
|
agentContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-I3SXM7XC.js";
|
|
27
27
|
import {
|
|
28
28
|
collabSession,
|
|
29
29
|
syncStatus
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SI7ZWJYW.js";
|
|
31
31
|
import {
|
|
32
32
|
loadEntitlements
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-J7CCCBMK.js";
|
|
34
34
|
import {
|
|
35
35
|
cloudApi
|
|
36
36
|
} from "./chunk-OH4LAOUX.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-FIKDDWUF.js";
|
|
40
40
|
import {
|
|
41
41
|
useEditorStore
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IWD75TRW.js";
|
|
43
43
|
import {
|
|
44
44
|
plansEnabled
|
|
45
45
|
} from "./chunk-6ARF54PW.js";
|