@popcraft/kit 0.63.3 → 0.63.4
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-JG7NSI5F.js → agent-C2N3NV4Y.js} +1 -1
- package/dist/chunks/{builtin-FIFCVY72.js → builtin-RXJXTSQY.js} +3 -3
- package/dist/chunks/{buy-credits-EQ6AJIN3.js → buy-credits-CCXHKNZ5.js} +2 -2
- package/dist/chunks/{check-template-A2RJMYU6.js → check-template-JHR53TVQ.js} +2 -2
- package/dist/chunks/{chunk-KNQCCCBU.js → chunk-23DHAXV3.js} +11 -11
- package/dist/chunks/{chunk-ATIE7UOI.js → chunk-7AMO475U.js} +1 -1
- package/dist/chunks/{chunk-F52J75FK.js → chunk-AWGCGLOI.js} +9 -9
- package/dist/chunks/{chunk-C7JDUURH.js → chunk-B4ZUZF5G.js} +4 -4
- package/dist/chunks/{chunk-O362LA7T.js → chunk-DSFALQPH.js} +3 -3
- package/dist/chunks/{chunk-VWBJ6L7Z.js → chunk-GKNUQFCL.js} +2 -2
- package/dist/chunks/{chunk-DBL7B4OB.js → chunk-NZJPVJXS.js} +7 -7
- package/dist/chunks/{chunk-EQCYOX3Y.js → chunk-O5TUK2FU.js} +2 -2
- package/dist/chunks/{chunk-MTDVLJF4.js → chunk-Q7SNI3MR.js} +4 -4
- package/dist/chunks/{chunk-R3NC5A2S.js → chunk-QD5M7DQO.js} +5 -5
- package/dist/chunks/{chunk-E5HBVURV.js → chunk-QXNL5CXB.js} +1 -1
- package/dist/chunks/{chunk-65OAEAWE.js → chunk-RSVZLTJF.js} +3 -3
- package/dist/chunks/{chunk-J3GNANCZ.js → chunk-SS3J4F4P.js} +42 -42
- package/dist/chunks/{chunk-24KSG4GN.js → chunk-TWS37A46.js} +1 -1
- package/dist/chunks/{chunk-OUMQLK4A.js → chunk-U6BGUGCJ.js} +6 -6
- package/dist/chunks/{chunk-RTCAJDVY.js → chunk-WESZZZEP.js} +2 -2
- package/dist/chunks/{chunk-HA66E7QT.js → chunk-XHW5TBBB.js} +1 -1
- package/dist/chunks/{chunk-DJYLXECR.js → chunk-XKVEIWMH.js} +1 -1
- package/dist/chunks/{chunk-GUYFN7LO.js → chunk-Y47QSCFW.js} +2 -2
- package/dist/chunks/{client-MIRO64O2.js → client-3JQM2OIO.js} +3 -3
- package/dist/chunks/{client-5TMC2L4Y.js → client-3QLT6NED.js} +1 -1
- package/dist/chunks/{client-5QNLO3JY.js → client-A5UF3HLS.js} +2 -2
- package/dist/chunks/{client-actions-WWLJ7MX3.js → client-actions-Z462QF5C.js} +5 -5
- package/dist/chunks/{dangerous-HG5JGBNY.js → dangerous-XIRHDRTC.js} +3 -3
- package/dist/chunks/{delete-current-file-A7QBWXXF.js → delete-current-file-HAOLWXXO.js} +5 -5
- package/dist/chunks/{editor-seams-URUJLQ7N.js → editor-seams-ORIBEUWW.js} +12 -12
- package/dist/chunks/{editor-store-64K4BZQD.js → editor-store-2WVOBH4J.js} +1 -1
- package/dist/chunks/{export-watermark-MOUCFBIF.js → export-watermark-IDXJQ6JI.js} +5 -5
- package/dist/chunks/{eyedropper-X5XKGEJS.js → eyedropper-WKLUQFRU.js} +1 -1
- package/dist/chunks/{generate-media-6HQ7OOV6.js → generate-media-EWLPFCDG.js} +3 -3
- package/dist/chunks/{host-ZRVHL6BJ.js → host-2X4KIPPZ.js} +6 -6
- package/dist/chunks/{integrations-2SF3ET4I.js → integrations-5UPUSU5J.js} +1 -1
- package/dist/chunks/{libraries-77NYGYPJ.js → libraries-PL3B6RIH.js} +5 -5
- package/dist/chunks/{live-KTVFWA3T.js → live-OEYNGZGD.js} +1 -1
- package/dist/chunks/{media-tool-62E76O5U.js → media-tool-BRA56Z5L.js} +1 -1
- package/dist/chunks/{new-file-FHE6NDAP.js → new-file-I7SYDP3Y.js} +3 -3
- package/dist/chunks/{plugin-N54NXNEW.js → plugin-3QX3KLXW.js} +2 -2
- package/dist/chunks/{plugin-import-UVOZX5WB.js → plugin-import-FZZGUZY4.js} +16 -16
- package/dist/chunks/{presence-2WWKQ6S2.js → presence-AHPZVPHB.js} +2 -2
- package/dist/chunks/{project-J7JQIWYB.js → project-IPE4HU3S.js} +1 -1
- package/dist/chunks/{publish-site-KTFDPQ3H.js → publish-site-CXEXFYYN.js} +6 -6
- package/dist/chunks/{publish-store-HYYA4RXT.js → publish-store-GBCAUZLL.js} +4 -4
- package/dist/chunks/{raster-actions-3GDZRPGH.js → raster-actions-Z65VHMCO.js} +1 -1
- package/dist/chunks/{runner-F22S6D6N.js → runner-HWSH65JN.js} +18 -18
- package/dist/chunks/{shader-preview-SDFZKON2.js → shader-preview-ACMUNQ37.js} +3 -2
- package/dist/chunks/{store-62BUYI77.js → store-JX2VK7PW.js} +6 -6
- package/dist/chunks/{sync-NNGUR4LU.js → sync-4WGZPPYD.js} +5 -5
- package/dist/chunks/{tabs-BSIUM23F.js → tabs-ZANRUXTC.js} +8 -8
- package/dist/chunks/{team-CAOHTOO3.js → team-AGPA3Q4K.js} +1 -1
- package/dist/chunks/{team-client-L3YDUTBT.js → team-client-3OYUD2U4.js} +1 -1
- package/dist/chunks/{tools-F4ZINAJC.js → tools-74VWK66O.js} +2 -2
- package/dist/chunks/{ui-commands-XE2P64NB.js → ui-commands-6BOC6O2O.js} +12 -12
- package/dist/chunks/{versions-5A3SOLJV.js → versions-PFOT22BQ.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-Y47QSCFW.js";
|
|
11
|
+
import "./chunk-SS3J4F4P.js";
|
|
12
12
|
import "./chunk-VWLOSP5P.js";
|
|
13
13
|
import "./chunk-XZCVQPV6.js";
|
|
14
14
|
import "./chunk-NHPK5RDE.js";
|
|
@@ -17,7 +17,7 @@ import "./chunk-7ZG55E52.js";
|
|
|
17
17
|
import "./chunk-IBHIPO2U.js";
|
|
18
18
|
import "./chunk-CO5QRETZ.js";
|
|
19
19
|
import "./chunk-VPMMB3C2.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-RSVZLTJF.js";
|
|
21
21
|
import "./chunk-PJ2EDRZS.js";
|
|
22
22
|
import "./chunk-UKEUJ3JW.js";
|
|
23
23
|
import "./chunk-AJDUB6PH.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-TWS37A46.js";
|
|
11
11
|
import "./chunk-QDH7K5TG.js";
|
|
12
12
|
import {
|
|
13
13
|
useHyperyTeam
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QXNL5CXB.js";
|
|
15
15
|
import {
|
|
16
16
|
ApiError
|
|
17
17
|
} from "./chunk-N6ZQJYXS.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-
|
|
9
|
+
} from "./chunk-AWGCGLOI.js";
|
|
10
10
|
import {
|
|
11
11
|
builtinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SS3J4F4P.js";
|
|
13
13
|
import "./chunk-VWLOSP5P.js";
|
|
14
14
|
import "./chunk-XZCVQPV6.js";
|
|
15
15
|
import "./chunk-NHPK5RDE.js";
|
|
@@ -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-DSFALQPH.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-SS3J4F4P.js";
|
|
17
17
|
import {
|
|
18
18
|
external_exports
|
|
19
19
|
} from "./chunk-VPMMB3C2.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-AHPZVPHB.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-2WVOBH4J.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-2WVOBH4J.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-PL3B6RIH.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-PL3B6RIH.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-2WVOBH4J.js"),
|
|
236
|
+
import("./versions-PFOT22BQ.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-PFOT22BQ.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-PFOT22BQ.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 } };
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
needsSelection,
|
|
9
9
|
pageGo,
|
|
10
10
|
selectionIsPicture
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SS3J4F4P.js";
|
|
12
12
|
import {
|
|
13
13
|
external_exports
|
|
14
14
|
} from "./chunk-VPMMB3C2.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-2WVOBH4J.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({
|
|
@@ -191,7 +191,7 @@ var dialogOpen = defineCommand({
|
|
|
191
191
|
(await import("./plan-limit-CK2M5DL4.js")).openPlanDialog();
|
|
192
192
|
break;
|
|
193
193
|
case "credits":
|
|
194
|
-
await (await import("./buy-credits-
|
|
194
|
+
await (await import("./buy-credits-CCXHKNZ5.js")).buyAiCredits();
|
|
195
195
|
break;
|
|
196
196
|
case "tokens":
|
|
197
197
|
emit("popcraft-open-tokens");
|
|
@@ -237,7 +237,7 @@ var aiOpen = defineCommand({
|
|
|
237
237
|
] } },
|
|
238
238
|
run: async ({ dialog, skillId }) => {
|
|
239
239
|
if (dialog) (await import("./client-store-OXRM2Q43.js")).openAiDialog(dialog);
|
|
240
|
-
else (await import("./store-
|
|
240
|
+
else (await import("./store-JX2VK7PW.js")).openAgentPanel({ skillId: skillId ?? null });
|
|
241
241
|
return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
|
|
242
242
|
}
|
|
243
243
|
});
|
|
@@ -250,7 +250,7 @@ var agentContinue = defineCommand({
|
|
|
250
250
|
params: external_exports.object({}),
|
|
251
251
|
expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
|
|
252
252
|
run: async () => {
|
|
253
|
-
const resumed = await (await import("./runner-
|
|
253
|
+
const resumed = await (await import("./runner-HWSH65JN.js")).continueTurn();
|
|
254
254
|
return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
|
|
255
255
|
}
|
|
256
256
|
});
|
|
@@ -329,11 +329,11 @@ var toolPlace = defineCommand({
|
|
|
329
329
|
run: async ({ what }) => {
|
|
330
330
|
if (what === "media") {
|
|
331
331
|
const s = await store();
|
|
332
|
-
const { placeMediaFromPicker } = await import("./media-tool-
|
|
332
|
+
const { placeMediaFromPicker } = await import("./media-tool-BRA56Z5L.js");
|
|
333
333
|
await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
|
|
334
334
|
return { summary: "Placing media" };
|
|
335
335
|
}
|
|
336
|
-
const { beginEyedrop } = await import("./eyedropper-
|
|
336
|
+
const { beginEyedrop } = await import("./eyedropper-WKLUQFRU.js");
|
|
337
337
|
void beginEyedrop();
|
|
338
338
|
return { summary: "Pick a color" };
|
|
339
339
|
}
|
|
@@ -351,7 +351,7 @@ var nodeRasterize = defineCommand({
|
|
|
351
351
|
keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
|
|
352
352
|
} },
|
|
353
353
|
run: async () => {
|
|
354
|
-
const { flattenSelectionToPaintLayer } = await import("./raster-actions-
|
|
354
|
+
const { flattenSelectionToPaintLayer } = await import("./raster-actions-Z65VHMCO.js");
|
|
355
355
|
await flattenSelectionToPaintLayer();
|
|
356
356
|
return { summary: "Rasterized" };
|
|
357
357
|
}
|
|
@@ -462,7 +462,7 @@ function pluginCommand(plugins) {
|
|
|
462
462
|
params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
|
|
463
463
|
expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
|
|
464
464
|
run: async ({ pluginId, commandId }) => {
|
|
465
|
-
await (await import("./host-
|
|
465
|
+
await (await import("./host-2X4KIPPZ.js")).runPlugin(pluginId, commandId);
|
|
466
466
|
return { summary: "Plugin started" };
|
|
467
467
|
}
|
|
468
468
|
});
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-4RRGRQBL.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WESZZZEP.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveChatModel,
|
|
15
15
|
setModelPref,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-U6ZHQH5G.js";
|
|
18
18
|
import {
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NZJPVJXS.js";
|
|
21
21
|
import {
|
|
22
22
|
create
|
|
23
23
|
} from "./chunk-YB2RTI5I.js";
|
|
@@ -1903,7 +1903,7 @@ async function sendMessage(text) {
|
|
|
1903
1903
|
if (!useAgentStore.getState().activeThreadId) newThread();
|
|
1904
1904
|
const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
|
|
1905
1905
|
useAgentStore.setState({ draft: "", draftMentions: [], error: null });
|
|
1906
|
-
const { runTurn } = await import("./runner-
|
|
1906
|
+
const { runTurn } = await import("./runner-HWSH65JN.js");
|
|
1907
1907
|
await runTurn(body, mentions);
|
|
1908
1908
|
}
|
|
1909
1909
|
function stop() {
|
|
@@ -2006,7 +2006,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
|
|
|
2006
2006
|
function subscribeChildTools() {
|
|
2007
2007
|
let dispose;
|
|
2008
2008
|
let cancelled = false;
|
|
2009
|
-
void import("./runner-
|
|
2009
|
+
void import("./runner-HWSH65JN.js").then(({ onChildTool }) => {
|
|
2010
2010
|
const off = onChildTool((report) => {
|
|
2011
2011
|
if (report?.status !== "running" || report.jobId) return;
|
|
2012
2012
|
recordChildTool(report.toolCallId ?? "", report.name);
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
hostEnv,
|
|
13
13
|
plain,
|
|
14
14
|
registerBuiltinCommands
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SS3J4F4P.js";
|
|
16
16
|
import {
|
|
17
17
|
external_exports
|
|
18
18
|
} from "./chunk-VPMMB3C2.js";
|
|
@@ -646,7 +646,7 @@ var commands = [
|
|
|
646
646
|
const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
|
|
647
647
|
import("./storefront-prepare-DLYWE3XR.js"),
|
|
648
648
|
import("./storefront-LXMQJCHV.js"),
|
|
649
|
-
import("./project-
|
|
649
|
+
import("./project-IPE4HU3S.js"),
|
|
650
650
|
import("./zip-export-UR4GGFYY.js"),
|
|
651
651
|
import("./tree-PBB77TXT.js")
|
|
652
652
|
]);
|
|
@@ -843,7 +843,7 @@ var pluginRun = defineCommand({
|
|
|
843
843
|
}
|
|
844
844
|
},
|
|
845
845
|
run: async (p, ctx) => {
|
|
846
|
-
const { runPlugin } = await import("./host-
|
|
846
|
+
const { runPlugin } = await import("./host-2X4KIPPZ.js");
|
|
847
847
|
await runPlugin(p.pluginId, p.commandId);
|
|
848
848
|
ctx.notice(`Started ${p.pluginId}.`);
|
|
849
849
|
return {
|
|
@@ -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-2WVOBH4J.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-BRA56Z5L.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);
|
|
@@ -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-
|
|
4865
|
+
void import("./presence-AHPZVPHB.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. */
|
|
@@ -6933,7 +6933,7 @@ var useEditorStore = create()(
|
|
|
6933
6933
|
// A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
|
|
6934
6934
|
// Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
|
|
6935
6935
|
duplicateDocument: async (id) => {
|
|
6936
|
-
const { duplicateDocumentToCloud } = await import("./sync-
|
|
6936
|
+
const { duplicateDocumentToCloud } = await import("./sync-4WGZPPYD.js");
|
|
6937
6937
|
return duplicateDocumentToCloud(id);
|
|
6938
6938
|
},
|
|
6939
6939
|
deleteDocument: async (id) => {
|
|
@@ -10443,9 +10443,9 @@ if (typeof window !== "undefined") {
|
|
|
10443
10443
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10444
10444
|
window.__vpDesign = async (script, o = {}) => {
|
|
10445
10445
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10446
|
-
import("./tools-
|
|
10447
|
-
import("./editor-seams-
|
|
10448
|
-
import("./live-
|
|
10446
|
+
import("./tools-74VWK66O.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-RXJXTSQY.js")).registerBuiltinTools })),
|
|
10447
|
+
import("./editor-seams-ORIBEUWW.js"),
|
|
10448
|
+
import("./live-OEYNGZGD.js")
|
|
10449
10449
|
]);
|
|
10450
10450
|
registerBuiltinTools();
|
|
10451
10451
|
const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
|
|
@@ -10522,7 +10522,7 @@ if (typeof window !== "undefined" && navigator.webdriver) {
|
|
|
10522
10522
|
});
|
|
10523
10523
|
};
|
|
10524
10524
|
window.__vpShaderPreview = async (code, params, zoom) => {
|
|
10525
|
-
const [{ shaderPreview }] = await Promise.all([import("./shader-preview-
|
|
10525
|
+
const [{ shaderPreview }] = await Promise.all([import("./shader-preview-ACMUNQ37.js")]);
|
|
10526
10526
|
const p = await shaderPreview(code, params, zoom);
|
|
10527
10527
|
if (!p) return null;
|
|
10528
10528
|
let bin = "";
|
|
@@ -10530,7 +10530,7 @@ if (typeof window !== "undefined" && navigator.webdriver) {
|
|
|
10530
10530
|
return { type: p.type, width: p.width, height: p.height, animated: p.animated, b64: btoa(bin) };
|
|
10531
10531
|
};
|
|
10532
10532
|
window.__vpShaderCompare = async (a, b, at) => {
|
|
10533
|
-
const [{ compareShaders }, { previewFills }, { getActiveRenderer: getActiveRenderer2 }] = await Promise.all([import("./shader-compare-HY3XFQ33.js"), import("./shader-preview-
|
|
10533
|
+
const [{ compareShaders }, { previewFills }, { getActiveRenderer: getActiveRenderer2 }] = await Promise.all([import("./shader-compare-HY3XFQ33.js"), import("./shader-preview-ACMUNQ37.js"), import("./renderer-registry-KQO6KLKH.js")]);
|
|
10534
10534
|
const device = getActiveRenderer2()?.getDevice();
|
|
10535
10535
|
if (!device) throw new Error("no renderer on this route");
|
|
10536
10536
|
return compareShaders(device, previewFills(device), a, b, at);
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-QDH7K5TG.js";
|
|
10
10
|
import {
|
|
11
11
|
activeTeamWorkspaceId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QXNL5CXB.js";
|
|
13
13
|
import {
|
|
14
14
|
prepareTemplate
|
|
15
15
|
} from "./chunk-FLF5E6T2.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-A7DXX5A5.js";
|
|
23
23
|
import {
|
|
24
24
|
markLibraryDocument
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NZJPVJXS.js";
|
|
26
26
|
import {
|
|
27
27
|
GUEST_FILE_LIMIT
|
|
28
28
|
} from "./chunk-DFUHSE3I.js";
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
reportOpenStage,
|
|
18
18
|
setCloudLink,
|
|
19
19
|
trackOpen
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-O5TUK2FU.js";
|
|
21
21
|
import {
|
|
22
22
|
parseDeepLink,
|
|
23
23
|
withDeepLink
|
|
24
24
|
} from "./chunk-XNUX4MRE.js";
|
|
25
25
|
import {
|
|
26
26
|
activeTeamWorkspaceId
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QXNL5CXB.js";
|
|
28
28
|
import {
|
|
29
29
|
ApiError,
|
|
30
30
|
api,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-N6ZQJYXS.js";
|
|
33
33
|
import {
|
|
34
34
|
attachPresence
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-7AMO475U.js";
|
|
36
36
|
import {
|
|
37
37
|
fileOpeningMode,
|
|
38
38
|
isAppleMobile,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
setCollabHistory,
|
|
46
46
|
storedDocument,
|
|
47
47
|
useEditorStore
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-NZJPVJXS.js";
|
|
49
49
|
import {
|
|
50
50
|
currentHistoryGroup
|
|
51
51
|
} from "./chunk-XYXJGZE5.js";
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
} from "./chunk-B2HNUDGB.js";
|
|
22
22
|
import {
|
|
23
23
|
syncStatus
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-Q7SNI3MR.js";
|
|
25
25
|
import {
|
|
26
26
|
usePluginStore
|
|
27
27
|
} from "./chunk-ZJNIMDB7.js";
|
|
28
28
|
import {
|
|
29
29
|
setPluginTabs,
|
|
30
30
|
useEditorStore
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NZJPVJXS.js";
|
|
32
32
|
import {
|
|
33
33
|
openBeside
|
|
34
34
|
} from "./chunk-IZU62IK5.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-3QX3KLXW.js");
|
|
73
73
|
return dispatchPluginCall(env, method, params);
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -586,7 +586,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
|
|
|
586
586
|
if (!openBeside(url)) throw new Error("The browser blocked the new tab");
|
|
587
587
|
},
|
|
588
588
|
createDocument: async (opts2) => {
|
|
589
|
-
const { createFreshFileOrExplain } = await import("./new-file-
|
|
589
|
+
const { createFreshFileOrExplain } = await import("./new-file-I7SYDP3Y.js");
|
|
590
590
|
const created = await createFreshFileOrExplain({}, { name: opts2?.name });
|
|
591
591
|
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})`);
|
|
592
592
|
await useEditorStore.getState().openDocument(created.docId);
|
|
@@ -795,7 +795,7 @@ if (typeof window !== "undefined") {
|
|
|
795
795
|
const name = d.name || "Imported";
|
|
796
796
|
void (async () => {
|
|
797
797
|
try {
|
|
798
|
-
const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-
|
|
798
|
+
const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-FZZGUZY4.js");
|
|
799
799
|
if (d.ir && typeof d.ir === "object") {
|
|
800
800
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
801
801
|
return;
|
|
@@ -150,7 +150,7 @@ function startHyperyTeams() {
|
|
|
150
150
|
maybePromptForTeam();
|
|
151
151
|
void followFileTeam(linkedKey);
|
|
152
152
|
});
|
|
153
|
-
void import("./sync-
|
|
153
|
+
void import("./sync-4WGZPPYD.js").then(({ onSyncStatus, syncStatus }) => {
|
|
154
154
|
linkedKey = syncStatus().link?.key ?? null;
|
|
155
155
|
void followFileTeam(linkedKey);
|
|
156
156
|
onSyncStatus((_s, link) => {
|
|
@@ -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-3JQM2OIO.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-EWLPFCDG.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-3JQM2OIO.js"),
|
|
73
73
|
import("./client-store-OXRM2Q43.js")
|
|
74
74
|
]);
|
|
75
75
|
const modelId = effectiveImageModel(useAiStore.getState());
|