@popcraft/kit 0.9.1 → 0.9.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/{builtin-RCGHESED.js → builtin-5AWZBAUF.js} +2 -2
- package/dist/chunks/{check-template-DQUS5XID.js → check-template-5OYK57VZ.js} +6 -6
- package/dist/chunks/{chunk-GDKAD543.js → chunk-35XN7366.js} +2 -2
- package/dist/chunks/{chunk-CTGMX7XI.js → chunk-4JWN7VM6.js} +3 -3
- package/dist/chunks/{chunk-QMQTSLQI.js → chunk-75KZFAR7.js} +1 -1
- package/dist/chunks/{chunk-SLOSUSYN.js → chunk-DBQLMGCW.js} +2 -2
- package/dist/chunks/{chunk-QCX3VIUO.js → chunk-GQZ4E5SS.js} +1 -1
- package/dist/chunks/{chunk-ANBUANX4.js → chunk-HEJ63HAI.js} +3 -3
- package/dist/chunks/{chunk-3QFFNWYW.js → chunk-I3BX63EE.js} +5 -5
- package/dist/chunks/{chunk-FGAL6B7B.js → chunk-MSHMNAXB.js} +15 -15
- package/dist/chunks/{chunk-AHDUYJA7.js → chunk-RP44PBHH.js} +5 -5
- package/dist/chunks/{chunk-EAUBE3CA.js → chunk-UW67A3XW.js} +3 -3
- package/dist/chunks/{chunk-ANDXO55O.js → chunk-XKNBMU6F.js} +1 -1
- package/dist/chunks/{client-GWUAGKDF.js → client-AIEXJQ72.js} +2 -2
- package/dist/chunks/{client-25AYQYHR.js → client-KYJR3MFE.js} +1 -1
- package/dist/chunks/{editor-seams-IJRTPVJN.js → editor-seams-SSXKBSF6.js} +5 -5
- package/dist/chunks/{editor-store-MWSP3IOY.js → editor-store-DC4N6O4Y.js} +1 -1
- package/dist/chunks/{export-watermark-QNDDV6EM.js → export-watermark-NRCKLY5Z.js} +4 -4
- package/dist/chunks/{eyedropper-47JV6T2Y.js → eyedropper-OWZIYYCW.js} +1 -1
- package/dist/chunks/{host-SUZBVMXL.js → host-WGZV7NYC.js} +5 -5
- package/dist/chunks/{libraries-PZVPXB2C.js → libraries-5UN5FHC3.js} +4 -4
- package/dist/chunks/{live-HL5DQQNB.js → live-5Q4N47VB.js} +1 -1
- package/dist/chunks/{media-tool-5SEU5XGY.js → media-tool-W6JDIZHA.js} +1 -1
- package/dist/chunks/{new-file-6ENATVPS.js → new-file-C2NZEPFS.js} +2 -2
- package/dist/chunks/{plugin-5TRGQ7S6.js → plugin-AEL3OOGI.js} +2 -2
- package/dist/chunks/{plugin-import-7AQL5GBE.js → plugin-import-DU75CZ4Q.js} +9 -9
- package/dist/chunks/{presence-RQNUAIFU.js → presence-APMZLJ6N.js} +2 -2
- package/dist/chunks/{project-YROYWLGA.js → project-ONTCESHW.js} +1 -1
- package/dist/chunks/{publish-site-XY27HI2Q.js → publish-site-DTA67CJ5.js} +5 -5
- package/dist/chunks/{raster-actions-IZQVFO6J.js → raster-actions-VOITKGHZ.js} +1 -1
- package/dist/chunks/{runner-FRGEIJ5N.js → runner-DTPKD6J5.js} +20 -20
- package/dist/chunks/{store-WJHO4JYF.js → store-MZP4DWFW.js} +2 -2
- package/dist/chunks/{sync-OZTOAZDT.js → sync-NN7XXUVY.js} +4 -4
- package/dist/chunks/{versions-RHJXNHD6.js → versions-5O46O5NO.js} +4 -4
- 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-GQZ4E5SS.js";
|
|
11
|
+
import "./chunk-MSHMNAXB.js";
|
|
12
12
|
import "./chunk-4GBCCBSQ.js";
|
|
13
13
|
import "./chunk-UFMB2TVR.js";
|
|
14
14
|
import "./chunk-3DP3VBDU.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
needsSelection,
|
|
10
10
|
pageGo,
|
|
11
11
|
selectionIsPicture
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MSHMNAXB.js";
|
|
13
13
|
import "./chunk-4GBCCBSQ.js";
|
|
14
14
|
import "./chunk-UFMB2TVR.js";
|
|
15
15
|
import "./chunk-3DP3VBDU.js";
|
|
@@ -224,7 +224,7 @@ var none = external_exports.object({});
|
|
|
224
224
|
var emit = (name, detail) => {
|
|
225
225
|
if (typeof window !== "undefined") window.dispatchEvent(new CustomEvent(name, { detail }));
|
|
226
226
|
};
|
|
227
|
-
var store = () => import("./editor-store-
|
|
227
|
+
var store = () => import("./editor-store-DC4N6O4Y.js").then((m) => m.useEditorStore.getState());
|
|
228
228
|
var MODE_IDS = MODE_LIST.map((m) => m.id);
|
|
229
229
|
var MODE_ALIASES = { JAM: "POPCORN" };
|
|
230
230
|
var modeSet = defineCommand({
|
|
@@ -402,7 +402,7 @@ var aiOpen = defineCommand({
|
|
|
402
402
|
] } },
|
|
403
403
|
run: async ({ dialog, skillId }) => {
|
|
404
404
|
if (dialog) (await import("./client-store-QWGARW3P.js")).openAiDialog(dialog);
|
|
405
|
-
else (await import("./store-
|
|
405
|
+
else (await import("./store-MZP4DWFW.js")).openAgentPanel({ skillId: skillId ?? null });
|
|
406
406
|
return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
|
|
407
407
|
}
|
|
408
408
|
});
|
|
@@ -481,11 +481,11 @@ var toolPlace = defineCommand({
|
|
|
481
481
|
run: async ({ what }) => {
|
|
482
482
|
if (what === "media") {
|
|
483
483
|
const s = await store();
|
|
484
|
-
const { placeMediaFromPicker } = await import("./media-tool-
|
|
484
|
+
const { placeMediaFromPicker } = await import("./media-tool-W6JDIZHA.js");
|
|
485
485
|
await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
|
|
486
486
|
return { summary: "Placing media" };
|
|
487
487
|
}
|
|
488
|
-
const { beginEyedrop } = await import("./eyedropper-
|
|
488
|
+
const { beginEyedrop } = await import("./eyedropper-OWZIYYCW.js");
|
|
489
489
|
void beginEyedrop();
|
|
490
490
|
return { summary: "Pick a color" };
|
|
491
491
|
}
|
|
@@ -503,7 +503,7 @@ var nodeRasterize = defineCommand({
|
|
|
503
503
|
keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
|
|
504
504
|
} },
|
|
505
505
|
run: async () => {
|
|
506
|
-
const { flattenSelectionToPaintLayer } = await import("./raster-actions-
|
|
506
|
+
const { flattenSelectionToPaintLayer } = await import("./raster-actions-VOITKGHZ.js");
|
|
507
507
|
await flattenSelectionToPaintLayer();
|
|
508
508
|
return { summary: "Rasterized" };
|
|
509
509
|
}
|
|
@@ -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-DC4N6O4Y.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-W6JDIZHA.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);
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
collabSession,
|
|
29
29
|
syncStatus
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UW67A3XW.js";
|
|
31
31
|
import {
|
|
32
32
|
loadEntitlements
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-XKNBMU6F.js";
|
|
34
34
|
import {
|
|
35
35
|
useEditorStore
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RP44PBHH.js";
|
|
37
37
|
import {
|
|
38
38
|
cloudApi
|
|
39
39
|
} from "./chunk-INM2MZEQ.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
hostEnv,
|
|
10
10
|
plain,
|
|
11
11
|
registerBuiltinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MSHMNAXB.js";
|
|
13
13
|
import {
|
|
14
14
|
storeOpsSeam
|
|
15
15
|
} from "./chunk-7V6KADBP.js";
|
|
@@ -692,7 +692,7 @@ var pluginRun = defineCommand({
|
|
|
692
692
|
}
|
|
693
693
|
},
|
|
694
694
|
run: async (p, ctx) => {
|
|
695
|
-
const { runPlugin } = await import("./host-
|
|
695
|
+
const { runPlugin } = await import("./host-WGZV7NYC.js");
|
|
696
696
|
await runPlugin(p.pluginId, p.commandId);
|
|
697
697
|
ctx.notice(`Started ${p.pluginId}.`);
|
|
698
698
|
return {
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-XHYSH5ZQ.js";
|
|
22
22
|
import {
|
|
23
23
|
useEditorStore
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RP44PBHH.js";
|
|
25
25
|
import {
|
|
26
26
|
create
|
|
27
27
|
} from "./chunk-XDQNKR53.js";
|
|
@@ -1422,7 +1422,7 @@ async function sendMessage(text) {
|
|
|
1422
1422
|
if (!useAgentStore.getState().activeThreadId) newThread();
|
|
1423
1423
|
const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
|
|
1424
1424
|
useAgentStore.setState({ draft: "", draftMentions: [], error: null });
|
|
1425
|
-
const { runTurn } = await import("./runner-
|
|
1425
|
+
const { runTurn } = await import("./runner-DTPKD6J5.js");
|
|
1426
1426
|
await runTurn(body, mentions);
|
|
1427
1427
|
}
|
|
1428
1428
|
function stop() {
|
|
@@ -1525,7 +1525,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
|
|
|
1525
1525
|
function subscribeChildTools() {
|
|
1526
1526
|
let dispose;
|
|
1527
1527
|
let cancelled = false;
|
|
1528
|
-
void import("./runner-
|
|
1528
|
+
void import("./runner-DTPKD6J5.js").then(({ onChildTool }) => {
|
|
1529
1529
|
const off = onChildTool((report) => {
|
|
1530
1530
|
if (report?.status !== "running" || report.jobId) return;
|
|
1531
1531
|
recordChildTool(report.toolCallId ?? "", report.name);
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-AF7ACTI3.js";
|
|
10
10
|
import {
|
|
11
11
|
syncStatus
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UW67A3XW.js";
|
|
13
13
|
import {
|
|
14
14
|
exportNodeToSVG
|
|
15
15
|
} from "./chunk-SX7GDQCE.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
setPluginTabs,
|
|
24
24
|
useEditorStore
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RP44PBHH.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-AEL3OOGI.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-C2NZEPFS.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-DU75CZ4Q.js");
|
|
542
542
|
if (d.ir && typeof d.ir === "object") {
|
|
543
543
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
544
544
|
return;
|
|
@@ -3315,7 +3315,7 @@ var viewCopyLink = defineCommand({
|
|
|
3315
3315
|
},
|
|
3316
3316
|
run: async (args, ctx) => {
|
|
3317
3317
|
const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
|
|
3318
|
-
import("./sync-
|
|
3318
|
+
import("./sync-NN7XXUVY.js"),
|
|
3319
3319
|
import("./api-6GMG3SAB.js"),
|
|
3320
3320
|
import("./deep-link-5FVSI2Y6.js")
|
|
3321
3321
|
]);
|
|
@@ -3640,7 +3640,7 @@ var pageGo = defineCommand({
|
|
|
3640
3640
|
] }
|
|
3641
3641
|
},
|
|
3642
3642
|
run: async ({ to }) => {
|
|
3643
|
-
const { useEditorStore } = await import("./editor-store-
|
|
3643
|
+
const { useEditorStore } = await import("./editor-store-DC4N6O4Y.js");
|
|
3644
3644
|
useEditorStore.getState().goToPrintPage(to);
|
|
3645
3645
|
return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
|
|
3646
3646
|
}
|
|
@@ -3674,7 +3674,7 @@ var pageSetup = defineCommand({
|
|
|
3674
3674
|
}
|
|
3675
3675
|
},
|
|
3676
3676
|
run: async (args) => {
|
|
3677
|
-
const { useEditorStore } = await import("./editor-store-
|
|
3677
|
+
const { useEditorStore } = await import("./editor-store-DC4N6O4Y.js");
|
|
3678
3678
|
useEditorStore.getState().applyPageSetup(args);
|
|
3679
3679
|
return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
|
|
3680
3680
|
}
|
|
@@ -4781,7 +4781,7 @@ async function runAnimationExport(format, args, ctx) {
|
|
|
4781
4781
|
const filename = exportFileName(args.filename || targetName(doc2, target), format);
|
|
4782
4782
|
const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-M6LNBBQ3.js"), import("./destination-HDQ3L4FO.js")]);
|
|
4783
4783
|
if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
|
|
4784
|
-
const planWatermark = format !== "png" && await (await import("./export-watermark-
|
|
4784
|
+
const planWatermark = format !== "png" && await (await import("./export-watermark-NRCKLY5Z.js")).exportWatermark();
|
|
4785
4785
|
if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
|
|
4786
4786
|
const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
|
|
4787
4787
|
let stats;
|
|
@@ -4868,7 +4868,7 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
|
|
|
4868
4868
|
var EXPORT_NODE_CAP = 2e4;
|
|
4869
4869
|
async function exportSite(doc2, pageId2, packaging, styling = "css") {
|
|
4870
4870
|
const [{ completeSite, nextFilesOf, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
4871
|
-
import("./project-
|
|
4871
|
+
import("./project-ONTCESHW.js"),
|
|
4872
4872
|
import("./web-UEYBDFCF.js"),
|
|
4873
4873
|
import("./zip-export-FX3MLZUV.js"),
|
|
4874
4874
|
import("./download-WGBNF2WA.js")
|
|
@@ -7852,7 +7852,7 @@ init_scene_graph();
|
|
|
7852
7852
|
var licence = external_exports.enum(["commercial", "any"]).optional().describe("commercial (default): only licences that allow commercial use and edits (CC0, public domain, CC BY, CC BY-SA). any: every Creative Commons licence, including NC and ND.");
|
|
7853
7853
|
var brief2 = (p) => ({ id: p.id, title: p.title, creator: p.credit.creator, licence: licenceLabel(p.credit), width: p.width, height: p.height, source: p.credit.sourceUrl });
|
|
7854
7854
|
async function placeImportedPicture(ctx, imported, at, what, extra = {}) {
|
|
7855
|
-
const client = await import("./client-
|
|
7855
|
+
const client = await import("./client-KYJR3MFE.js");
|
|
7856
7856
|
if (at.fillLayerId) {
|
|
7857
7857
|
const doc2 = ctx.doc();
|
|
7858
7858
|
const target = nodeOrThrow(doc2, at.fillLayerId);
|
|
@@ -7898,7 +7898,7 @@ var photoSearch = defineCommand({
|
|
|
7898
7898
|
}
|
|
7899
7899
|
},
|
|
7900
7900
|
run: async (args) => {
|
|
7901
|
-
const { searchStockPhotos } = await import("./client-
|
|
7901
|
+
const { searchStockPhotos } = await import("./client-KYJR3MFE.js");
|
|
7902
7902
|
const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
|
|
7903
7903
|
return {
|
|
7904
7904
|
summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
|
|
@@ -7932,7 +7932,7 @@ var photoInsert = defineCommand({
|
|
|
7932
7932
|
run: async (args, ctx) => {
|
|
7933
7933
|
if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
|
|
7934
7934
|
if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
|
|
7935
|
-
const client = await import("./client-
|
|
7935
|
+
const client = await import("./client-KYJR3MFE.js");
|
|
7936
7936
|
let photo;
|
|
7937
7937
|
if (args.id) photo = await client.stockPhotoInfo(args.id);
|
|
7938
7938
|
else {
|
|
@@ -7971,7 +7971,7 @@ var mediaList = defineCommand({
|
|
|
7971
7971
|
}
|
|
7972
7972
|
},
|
|
7973
7973
|
run: async (args) => {
|
|
7974
|
-
const { listLibraryMedia } = await import("./client-
|
|
7974
|
+
const { listLibraryMedia } = await import("./client-AIEXJQ72.js");
|
|
7975
7975
|
const page = await listLibraryMedia(args);
|
|
7976
7976
|
return { summary: `${page.items.length} media item${page.items.length === 1 ? "" : "s"}${page.nextCursor ? " (more)" : ""}`, data: { workspaceId: page.workspaceId, items: page.items.map(brief3), nextCursor: page.nextCursor } };
|
|
7977
7977
|
}
|
|
@@ -8002,7 +8002,7 @@ var mediaInsert = defineCommand({
|
|
|
8002
8002
|
run: async (args, ctx) => {
|
|
8003
8003
|
const contentType = args.contentType ?? "image/*";
|
|
8004
8004
|
if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
|
|
8005
|
-
const { importLibraryPicture } = await import("./client-
|
|
8005
|
+
const { importLibraryPicture } = await import("./client-AIEXJQ72.js");
|
|
8006
8006
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
|
|
8007
8007
|
const imported = await importLibraryPicture(item);
|
|
8008
8008
|
return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
|
|
@@ -8274,7 +8274,7 @@ async function signedIn() {
|
|
|
8274
8274
|
}
|
|
8275
8275
|
async function publishedFile() {
|
|
8276
8276
|
await signedIn();
|
|
8277
|
-
const { openFileKey } = await import("./publish-site-
|
|
8277
|
+
const { openFileKey } = await import("./publish-site-DTA67CJ5.js");
|
|
8278
8278
|
const key = openFileKey();
|
|
8279
8279
|
if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
|
|
8280
8280
|
return key;
|
|
@@ -8310,7 +8310,7 @@ var publishSite = defineCommand({
|
|
|
8310
8310
|
const { cleanSlug } = await import("./rules-MBMDYEJ5.js");
|
|
8311
8311
|
const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
|
|
8312
8312
|
if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
|
|
8313
|
-
const { publishOpenFile, NoScreens } = await import("./publish-site-
|
|
8313
|
+
const { publishOpenFile, NoScreens } = await import("./publish-site-DTA67CJ5.js");
|
|
8314
8314
|
try {
|
|
8315
8315
|
const done = await publishOpenFile(address);
|
|
8316
8316
|
ctx.notice(`Published version ${done.version}: ${done.url}`);
|
|
@@ -8365,7 +8365,7 @@ var publishStatus = defineCommand({
|
|
|
8365
8365
|
},
|
|
8366
8366
|
run: async () => {
|
|
8367
8367
|
await signedIn();
|
|
8368
|
-
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-
|
|
8368
|
+
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-DTA67CJ5.js"), import("./sites-OZBRHUH6.js")]);
|
|
8369
8369
|
const key = openFileKey();
|
|
8370
8370
|
const status = await siteStatus(key);
|
|
8371
8371
|
const site = status.site;
|
|
@@ -8708,7 +8708,7 @@ var integrationOpen = defineCommand({
|
|
|
8708
8708
|
}
|
|
8709
8709
|
});
|
|
8710
8710
|
async function openFile() {
|
|
8711
|
-
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-TDPI2HEY.js"), import("./publish-site-
|
|
8711
|
+
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-TDPI2HEY.js"), import("./publish-site-DTA67CJ5.js")]);
|
|
8712
8712
|
if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
|
|
8713
8713
|
const key = openFileKey();
|
|
8714
8714
|
if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
|
|
@@ -9487,7 +9487,7 @@ var docImportFile = defineCommand({
|
|
|
9487
9487
|
const file = new File([body], args.name);
|
|
9488
9488
|
if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
|
|
9489
9489
|
const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
|
|
9490
|
-
import("./plugin-import-
|
|
9490
|
+
import("./plugin-import-DU75CZ4Q.js"),
|
|
9491
9491
|
import("./import-merge-H2V2S3BI.js")
|
|
9492
9492
|
]);
|
|
9493
9493
|
const built = await buildImportedDocument(file);
|
|
@@ -4559,7 +4559,7 @@ function createPopcornSlice(set2, get2) {
|
|
|
4559
4559
|
privateMode: false,
|
|
4560
4560
|
setPrivateMode: (on) => {
|
|
4561
4561
|
set2({ privateMode: on });
|
|
4562
|
-
void import("./presence-
|
|
4562
|
+
void import("./presence-APMZLJ6N.js").then((m) => m.setPresencePrivate(on)).catch(() => {
|
|
4563
4563
|
});
|
|
4564
4564
|
},
|
|
4565
4565
|
/** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
|
|
@@ -6626,7 +6626,7 @@ var useEditorStore = create()(
|
|
|
6626
6626
|
// A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
|
|
6627
6627
|
// Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
|
|
6628
6628
|
duplicateDocument: async (id) => {
|
|
6629
|
-
const { duplicateDocumentToCloud } = await import("./sync-
|
|
6629
|
+
const { duplicateDocumentToCloud } = await import("./sync-NN7XXUVY.js");
|
|
6630
6630
|
return duplicateDocumentToCloud(id);
|
|
6631
6631
|
},
|
|
6632
6632
|
deleteDocument: async (id) => {
|
|
@@ -10070,9 +10070,9 @@ if (typeof window !== "undefined") {
|
|
|
10070
10070
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10071
10071
|
window.__vpDesign = async (script, o = {}) => {
|
|
10072
10072
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10073
|
-
import("./tools-NRNNO374.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-
|
|
10074
|
-
import("./editor-seams-
|
|
10075
|
-
import("./live-
|
|
10073
|
+
import("./tools-NRNNO374.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-5AWZBAUF.js")).registerBuiltinTools })),
|
|
10074
|
+
import("./editor-seams-SSXKBSF6.js"),
|
|
10075
|
+
import("./live-5Q4N47VB.js")
|
|
10076
10076
|
]);
|
|
10077
10077
|
registerBuiltinTools();
|
|
10078
10078
|
const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
newFileRefusal,
|
|
15
15
|
reportNewFileBlocked,
|
|
16
16
|
setCloudLink
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XKNBMU6F.js";
|
|
18
18
|
import {
|
|
19
19
|
activeTeamWorkspaceId
|
|
20
20
|
} from "./chunk-XRXRSVVQ.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-3VROQ6LH.js";
|
|
25
25
|
import {
|
|
26
26
|
attachPresence
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-75KZFAR7.js";
|
|
28
28
|
import {
|
|
29
29
|
documentPath,
|
|
30
30
|
isDesktopTabs,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
setCollabHistory,
|
|
39
39
|
storedDocument,
|
|
40
40
|
useEditorStore
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RP44PBHH.js";
|
|
42
42
|
import {
|
|
43
43
|
deleteDocFromLibrary,
|
|
44
44
|
docExists,
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
defaultMeasure,
|
|
9
9
|
placePicture
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-35XN7366.js";
|
|
11
11
|
import "./chunk-I6KTHLBX.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-DC4N6O4Y.js"), import("./media-tool-W6JDIZHA.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;
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
editBlockReason,
|
|
9
9
|
editorToolContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4JWN7VM6.js";
|
|
11
11
|
import "./chunk-E5XPS4HV.js";
|
|
12
12
|
import "./chunk-7V6KADBP.js";
|
|
13
13
|
import "./chunk-3DP3VBDU.js";
|
|
@@ -18,9 +18,9 @@ import "./chunk-XHYSH5ZQ.js";
|
|
|
18
18
|
import "./chunk-YPFXDWRH.js";
|
|
19
19
|
import "./chunk-JASRRFYT.js";
|
|
20
20
|
import "./chunk-3FIZNBXI.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-UW67A3XW.js";
|
|
22
22
|
import "./chunk-RVRQIQW7.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XKNBMU6F.js";
|
|
24
24
|
import "./chunk-XRXRSVVQ.js";
|
|
25
25
|
import "./chunk-3VROQ6LH.js";
|
|
26
26
|
import "./chunk-SX7GDQCE.js";
|
|
@@ -39,8 +39,8 @@ import "./chunk-MASWPAC4.js";
|
|
|
39
39
|
import "./chunk-ZY73GWEP.js";
|
|
40
40
|
import "./chunk-GNHGAXOA.js";
|
|
41
41
|
import "./chunk-SARRRKQG.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-75KZFAR7.js";
|
|
43
|
+
import "./chunk-RP44PBHH.js";
|
|
44
44
|
import "./chunk-46ZTFFJ6.js";
|
|
45
45
|
import "./chunk-7DD4V2OC.js";
|
|
46
46
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -6,18 +6,18 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
syncStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UW67A3XW.js";
|
|
10
10
|
import "./chunk-RVRQIQW7.js";
|
|
11
11
|
import {
|
|
12
12
|
cachedLimits,
|
|
13
13
|
isGuest,
|
|
14
14
|
loadEntitlements
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XKNBMU6F.js";
|
|
16
16
|
import "./chunk-XRXRSVVQ.js";
|
|
17
17
|
import "./chunk-3VROQ6LH.js";
|
|
18
18
|
import "./chunk-IM4CQVGS.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-75KZFAR7.js";
|
|
20
|
+
import "./chunk-RP44PBHH.js";
|
|
21
21
|
import "./chunk-46ZTFFJ6.js";
|
|
22
22
|
import "./chunk-7DD4V2OC.js";
|
|
23
23
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
runPluginWithImport,
|
|
19
19
|
runningSessionFor,
|
|
20
20
|
setEnabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-I3BX63EE.js";
|
|
22
22
|
import "./chunk-AF7ACTI3.js";
|
|
23
23
|
import "./chunk-4WX5YEBT.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-UW67A3XW.js";
|
|
25
25
|
import "./chunk-RVRQIQW7.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-XKNBMU6F.js";
|
|
27
27
|
import "./chunk-XRXRSVVQ.js";
|
|
28
28
|
import "./chunk-3VROQ6LH.js";
|
|
29
29
|
import "./chunk-SX7GDQCE.js";
|
|
@@ -41,8 +41,8 @@ import "./chunk-TKRXIAHH.js";
|
|
|
41
41
|
import "./chunk-PNR4PICU.js";
|
|
42
42
|
import "./chunk-MASWPAC4.js";
|
|
43
43
|
import "./chunk-SARRRKQG.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-75KZFAR7.js";
|
|
45
|
+
import "./chunk-RP44PBHH.js";
|
|
46
46
|
import "./chunk-46ZTFFJ6.js";
|
|
47
47
|
import "./chunk-7DD4V2OC.js";
|
|
48
48
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -7,16 +7,16 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
onSyncStatus,
|
|
9
9
|
syncStatus
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UW67A3XW.js";
|
|
11
11
|
import "./chunk-RVRQIQW7.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-XKNBMU6F.js";
|
|
13
13
|
import "./chunk-XRXRSVVQ.js";
|
|
14
14
|
import "./chunk-3VROQ6LH.js";
|
|
15
15
|
import "./chunk-IM4CQVGS.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-75KZFAR7.js";
|
|
17
17
|
import {
|
|
18
18
|
useEditorStore
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RP44PBHH.js";
|
|
20
20
|
import "./chunk-46ZTFFJ6.js";
|
|
21
21
|
import "./chunk-7DD4V2OC.js";
|
|
22
22
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
createNewLocalFile,
|
|
13
13
|
documentFromSeed,
|
|
14
14
|
newFileRefusal
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XKNBMU6F.js";
|
|
16
16
|
import "./chunk-XRXRSVVQ.js";
|
|
17
17
|
import "./chunk-IM4CQVGS.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-RP44PBHH.js";
|
|
19
19
|
import "./chunk-46ZTFFJ6.js";
|
|
20
20
|
import "./chunk-7DD4V2OC.js";
|
|
21
21
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
pluginMethods,
|
|
13
13
|
pluginRun,
|
|
14
14
|
registerPluginCommands
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-DBQLMGCW.js";
|
|
16
|
+
import "./chunk-MSHMNAXB.js";
|
|
17
17
|
import "./chunk-4GBCCBSQ.js";
|
|
18
18
|
import "./chunk-UFMB2TVR.js";
|
|
19
19
|
import "./chunk-7V6KADBP.js";
|
|
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
editBlockReason
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4JWN7VM6.js";
|
|
10
10
|
import "./chunk-E5XPS4HV.js";
|
|
11
11
|
import {
|
|
12
12
|
mergeImportedDocument
|
|
@@ -16,7 +16,7 @@ import "./chunk-3DP3VBDU.js";
|
|
|
16
16
|
import "./chunk-KJDY7QE6.js";
|
|
17
17
|
import {
|
|
18
18
|
runPluginWithImport
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-I3BX63EE.js";
|
|
20
20
|
import "./chunk-AF7ACTI3.js";
|
|
21
21
|
import "./chunk-4WX5YEBT.js";
|
|
22
22
|
import "./chunk-J6TOKUS3.js";
|
|
@@ -25,11 +25,11 @@ import "./chunk-XHYSH5ZQ.js";
|
|
|
25
25
|
import "./chunk-YPFXDWRH.js";
|
|
26
26
|
import "./chunk-JASRRFYT.js";
|
|
27
27
|
import "./chunk-3FIZNBXI.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-UW67A3XW.js";
|
|
29
29
|
import "./chunk-RVRQIQW7.js";
|
|
30
30
|
import {
|
|
31
31
|
createFreshFileOrExplain
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XKNBMU6F.js";
|
|
33
33
|
import "./chunk-XRXRSVVQ.js";
|
|
34
34
|
import "./chunk-3VROQ6LH.js";
|
|
35
35
|
import "./chunk-SX7GDQCE.js";
|
|
@@ -49,10 +49,10 @@ import "./chunk-MASWPAC4.js";
|
|
|
49
49
|
import "./chunk-ZY73GWEP.js";
|
|
50
50
|
import "./chunk-GNHGAXOA.js";
|
|
51
51
|
import "./chunk-SARRRKQG.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-75KZFAR7.js";
|
|
53
53
|
import {
|
|
54
54
|
useEditorStore
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-RP44PBHH.js";
|
|
56
56
|
import "./chunk-46ZTFFJ6.js";
|
|
57
57
|
import "./chunk-7DD4V2OC.js";
|
|
58
58
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -335,7 +335,7 @@ async function applyLayoutIrNow(ir, opts) {
|
|
|
335
335
|
customFonts: cur.customFonts,
|
|
336
336
|
lastToolProps: cur.lastToolProps
|
|
337
337
|
});
|
|
338
|
-
const { collabSession } = await import("./sync-
|
|
338
|
+
const { collabSession } = await import("./sync-NN7XXUVY.js");
|
|
339
339
|
collabSession()?.flush();
|
|
340
340
|
usePluginStore.getState().toast(t("pluginImport.imported", { name: opts.name }));
|
|
341
341
|
return true;
|
|
@@ -490,7 +490,7 @@ async function openCreated(created, opener, frameIds) {
|
|
|
490
490
|
if (created.local) {
|
|
491
491
|
await useEditorStore.getState().openDocument(created.docId);
|
|
492
492
|
} else {
|
|
493
|
-
const { openFilledCloudDocument } = await import("./sync-
|
|
493
|
+
const { openFilledCloudDocument } = await import("./sync-NN7XXUVY.js");
|
|
494
494
|
await openFilledCloudDocument(created.docId, created.key, 0);
|
|
495
495
|
}
|
|
496
496
|
zoomImportedFrames(frameIds);
|
|
@@ -527,7 +527,7 @@ async function hostImportIntoOpenDoc(file) {
|
|
|
527
527
|
customFonts: cur.customFonts,
|
|
528
528
|
lastToolProps: cur.lastToolProps
|
|
529
529
|
});
|
|
530
|
-
const { collabSession } = await import("./sync-
|
|
530
|
+
const { collabSession } = await import("./sync-NN7XXUVY.js");
|
|
531
531
|
collabSession()?.flush();
|
|
532
532
|
return { notes: built.notes };
|
|
533
533
|
}
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
setPresencePrivate,
|
|
15
15
|
setSpotlight,
|
|
16
16
|
usePresence
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-75KZFAR7.js";
|
|
18
|
+
import "./chunk-RP44PBHH.js";
|
|
19
19
|
import "./chunk-46ZTFFJ6.js";
|
|
20
20
|
import "./chunk-7DD4V2OC.js";
|
|
21
21
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -937,7 +937,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
|
|
|
937
937
|
// packages/runtime/package.json
|
|
938
938
|
var package_default = {
|
|
939
939
|
name: "@popcraft/runtime",
|
|
940
|
-
version: "0.9.
|
|
940
|
+
version: "0.9.2",
|
|
941
941
|
description: "What code exported from PopCraft shares: the meaning of expressions (operators and functions) and, as it grows, the parts of a design's behaviour that are common code rather than generated React.",
|
|
942
942
|
license: "MIT",
|
|
943
943
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -13,16 +13,16 @@ import "./chunk-GKKN6XAU.js";
|
|
|
13
13
|
import {
|
|
14
14
|
syncStatus,
|
|
15
15
|
uploadActiveDocument
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UW67A3XW.js";
|
|
17
17
|
import "./chunk-RVRQIQW7.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-XKNBMU6F.js";
|
|
19
19
|
import "./chunk-XRXRSVVQ.js";
|
|
20
20
|
import "./chunk-3VROQ6LH.js";
|
|
21
21
|
import "./chunk-IM4CQVGS.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-75KZFAR7.js";
|
|
23
23
|
import {
|
|
24
24
|
useEditorStore
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RP44PBHH.js";
|
|
26
26
|
import "./chunk-46ZTFFJ6.js";
|
|
27
27
|
import "./chunk-7DD4V2OC.js";
|
|
28
28
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -133,7 +133,7 @@ async function publishOpenFile(slug, progress = {}) {
|
|
|
133
133
|
progress.onBuild?.();
|
|
134
134
|
const key = openFileKey() ?? await uploadActiveDocument();
|
|
135
135
|
const { document, currentPageId } = useEditorStore.getState();
|
|
136
|
-
const { completeSite, staticFilesOf } = await import("./project-
|
|
136
|
+
const { completeSite, staticFilesOf } = await import("./project-ONTCESHW.js");
|
|
137
137
|
const built = await completeSite(document, currentPageId);
|
|
138
138
|
if (!built.pages.length) throw new NoScreens();
|
|
139
139
|
const files = await staticFilesOf(built);
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
updateActiveThread,
|
|
20
20
|
updateMessage,
|
|
21
21
|
useAgentStore
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HEJ63HAI.js";
|
|
23
23
|
import {
|
|
24
24
|
ALL_TOOLS,
|
|
25
25
|
SUBAGENT_FRAMING,
|
|
@@ -29,20 +29,20 @@ import {
|
|
|
29
29
|
} from "./chunk-SDGDUS34.js";
|
|
30
30
|
import {
|
|
31
31
|
registerBuiltinTools
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GQZ4E5SS.js";
|
|
33
33
|
import {
|
|
34
34
|
editBlockReason,
|
|
35
35
|
editorToolContext
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4JWN7VM6.js";
|
|
37
37
|
import "./chunk-E5XPS4HV.js";
|
|
38
38
|
import "./chunk-RJ53C5I6.js";
|
|
39
39
|
import {
|
|
40
40
|
pluginRun
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-DBQLMGCW.js";
|
|
42
42
|
import {
|
|
43
43
|
integrationConfirmCommands,
|
|
44
44
|
publishCommands
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MSHMNAXB.js";
|
|
46
46
|
import "./chunk-4GBCCBSQ.js";
|
|
47
47
|
import "./chunk-UFMB2TVR.js";
|
|
48
48
|
import "./chunk-7V6KADBP.js";
|
|
@@ -80,9 +80,9 @@ import {
|
|
|
80
80
|
import {
|
|
81
81
|
defineCommand
|
|
82
82
|
} from "./chunk-3FIZNBXI.js";
|
|
83
|
-
import "./chunk-
|
|
83
|
+
import "./chunk-UW67A3XW.js";
|
|
84
84
|
import "./chunk-RVRQIQW7.js";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-XKNBMU6F.js";
|
|
86
86
|
import {
|
|
87
87
|
activeHyperyTeamId
|
|
88
88
|
} from "./chunk-XRXRSVVQ.js";
|
|
@@ -103,10 +103,10 @@ import "./chunk-MASWPAC4.js";
|
|
|
103
103
|
import "./chunk-ZY73GWEP.js";
|
|
104
104
|
import "./chunk-GNHGAXOA.js";
|
|
105
105
|
import "./chunk-SARRRKQG.js";
|
|
106
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-75KZFAR7.js";
|
|
107
107
|
import {
|
|
108
108
|
useEditorStore
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-RP44PBHH.js";
|
|
110
110
|
import "./chunk-46ZTFFJ6.js";
|
|
111
111
|
import "./chunk-7DD4V2OC.js";
|
|
112
112
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -993,7 +993,7 @@ var collabSetSpotlight = defineCommand({
|
|
|
993
993
|
}
|
|
994
994
|
},
|
|
995
995
|
run: async ({ on }, ctx) => {
|
|
996
|
-
const { setSpotlight } = await import("./presence-
|
|
996
|
+
const { setSpotlight } = await import("./presence-APMZLJ6N.js");
|
|
997
997
|
setSpotlight(on);
|
|
998
998
|
ctx.notice(on ? "Spotlight on \u2014 everyone is following this view." : "Spotlight off.");
|
|
999
999
|
return { summary: on ? "Spotlight on" : "Spotlight off", data: { spotlight: on } };
|
|
@@ -1020,7 +1020,7 @@ var collabRevealPrivate = defineCommand({
|
|
|
1020
1020
|
}
|
|
1021
1021
|
},
|
|
1022
1022
|
run: async (_p, ctx) => {
|
|
1023
|
-
const { useEditorStore: useEditorStore2 } = await import("./editor-store-
|
|
1023
|
+
const { useEditorStore: useEditorStore2 } = await import("./editor-store-DC4N6O4Y.js");
|
|
1024
1024
|
const before = Object.values(useEditorStore2.getState().document.nodes).filter((n) => n.privateTo).length;
|
|
1025
1025
|
useEditorStore2.getState().revealPrivate();
|
|
1026
1026
|
ctx.notice(before ? `Revealed ${before} private item${before === 1 ? "" : "s"}.` : "Nothing was private.");
|
|
@@ -1084,7 +1084,7 @@ var documentDelete = defineCommand({
|
|
|
1084
1084
|
}
|
|
1085
1085
|
},
|
|
1086
1086
|
run: async ({ id }, ctx) => {
|
|
1087
|
-
const { useEditorStore: useEditorStore2 } = await import("./editor-store-
|
|
1087
|
+
const { useEditorStore: useEditorStore2 } = await import("./editor-store-DC4N6O4Y.js");
|
|
1088
1088
|
const wasOpen = useEditorStore2.getState().document.id === id;
|
|
1089
1089
|
await useEditorStore2.getState().deleteDocument(id);
|
|
1090
1090
|
ctx.notice("Deleted the document.");
|
|
@@ -1097,7 +1097,7 @@ var docCommands = [docImportJson, documentDelete];
|
|
|
1097
1097
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1098
1098
|
async function cloudFile() {
|
|
1099
1099
|
const [{ syncStatus }, { cloudUser }] = await Promise.all([
|
|
1100
|
-
import("./sync-
|
|
1100
|
+
import("./sync-NN7XXUVY.js"),
|
|
1101
1101
|
import("./session-TDPI2HEY.js")
|
|
1102
1102
|
]);
|
|
1103
1103
|
const link = syncStatus().link;
|
|
@@ -1270,7 +1270,7 @@ var libraryPublish = defineCommand({
|
|
|
1270
1270
|
}
|
|
1271
1271
|
},
|
|
1272
1272
|
run: async (p, ctx) => {
|
|
1273
|
-
const { publishLibrary } = await import("./libraries-
|
|
1273
|
+
const { publishLibrary } = await import("./libraries-5UN5FHC3.js");
|
|
1274
1274
|
const doc = ctx.doc();
|
|
1275
1275
|
const pick = {
|
|
1276
1276
|
componentIds: p.componentIds ?? Object.keys(doc.components ?? {}),
|
|
@@ -1302,7 +1302,7 @@ var libraryUnpublish = defineCommand({
|
|
|
1302
1302
|
},
|
|
1303
1303
|
run: async ({ libraryId }, ctx) => {
|
|
1304
1304
|
if (!libraryId.trim()) throw new CommandError("Which library? Pass its `libraryId`.", "invalid_params");
|
|
1305
|
-
const { unpublishLibrary } = await import("./libraries-
|
|
1305
|
+
const { unpublishLibrary } = await import("./libraries-5UN5FHC3.js");
|
|
1306
1306
|
await unpublishLibrary(libraryId);
|
|
1307
1307
|
ctx.notice(`Unpublished library ${libraryId}.`);
|
|
1308
1308
|
return { summary: `Unpublished library ${libraryId}`, data: { libraryId, unpublished: true } };
|
|
@@ -1314,8 +1314,8 @@ var libraryCommands = [libraryPublish, libraryUnpublish];
|
|
|
1314
1314
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1315
1315
|
async function findVersion(id) {
|
|
1316
1316
|
const [{ useEditorStore: useEditorStore2 }, { versionLabel }] = await Promise.all([
|
|
1317
|
-
import("./editor-store-
|
|
1318
|
-
import("./versions-
|
|
1317
|
+
import("./editor-store-DC4N6O4Y.js"),
|
|
1318
|
+
import("./versions-5O46O5NO.js")
|
|
1319
1319
|
]);
|
|
1320
1320
|
const meta = useEditorStore2.getState().versions.find((v) => v.id === id);
|
|
1321
1321
|
if (!meta) {
|
|
@@ -1348,7 +1348,7 @@ var versionRestore = defineCommand({
|
|
|
1348
1348
|
},
|
|
1349
1349
|
run: async ({ id }) => {
|
|
1350
1350
|
const found = await findVersion(id);
|
|
1351
|
-
const { restoreVersion } = await import("./versions-
|
|
1351
|
+
const { restoreVersion } = await import("./versions-5O46O5NO.js");
|
|
1352
1352
|
await restoreVersion(found.meta);
|
|
1353
1353
|
return { summary: `Restored \u201C${found.label}\u201D`, data: { id, label: found.label, restored: true } };
|
|
1354
1354
|
}
|
|
@@ -1373,7 +1373,7 @@ var versionDelete = defineCommand({
|
|
|
1373
1373
|
},
|
|
1374
1374
|
run: async ({ id }, ctx) => {
|
|
1375
1375
|
const found = await findVersion(id);
|
|
1376
|
-
const { deleteVersion } = await import("./versions-
|
|
1376
|
+
const { deleteVersion } = await import("./versions-5O46O5NO.js");
|
|
1377
1377
|
await deleteVersion(found.meta);
|
|
1378
1378
|
ctx.notice(`Deleted the version \u201C${found.label}\u201D.`);
|
|
1379
1379
|
return { summary: `Deleted the version \u201C${found.label}\u201D`, data: { id, label: found.label, deleted: true } };
|
|
@@ -1674,7 +1674,7 @@ async function runTurn(text, mentions = []) {
|
|
|
1674
1674
|
const abort = new AbortController();
|
|
1675
1675
|
useAgentStore.setState({ running: true, abort, error: null });
|
|
1676
1676
|
const ctx = editorToolContext(abort.signal);
|
|
1677
|
-
const { createDesignPreview, DESIGN_TOOL } = await import("./live-
|
|
1677
|
+
const { createDesignPreview, DESIGN_TOOL } = await import("./live-5Q4N47VB.js");
|
|
1678
1678
|
const preview = createDesignPreview();
|
|
1679
1679
|
registerTurnTools({
|
|
1680
1680
|
readOnly: !!editBlockReason(),
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
updateActiveThread,
|
|
47
47
|
updateMessage,
|
|
48
48
|
useAgentStore
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-HEJ63HAI.js";
|
|
50
50
|
import "./chunk-SDGDUS34.js";
|
|
51
51
|
import "./chunk-E5XPS4HV.js";
|
|
52
52
|
import "./chunk-RJ53C5I6.js";
|
|
@@ -69,7 +69,7 @@ import "./chunk-RUXZVJOD.js";
|
|
|
69
69
|
import "./chunk-PNR4PICU.js";
|
|
70
70
|
import "./chunk-MASWPAC4.js";
|
|
71
71
|
import "./chunk-SARRRKQG.js";
|
|
72
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-RP44PBHH.js";
|
|
73
73
|
import "./chunk-46ZTFFJ6.js";
|
|
74
74
|
import "./chunk-7DD4V2OC.js";
|
|
75
75
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
uploadLocalDocument,
|
|
21
21
|
uploadMediaNow,
|
|
22
22
|
withDocUploadLock
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UW67A3XW.js";
|
|
24
24
|
import "./chunk-RVRQIQW7.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-XKNBMU6F.js";
|
|
26
26
|
import "./chunk-XRXRSVVQ.js";
|
|
27
27
|
import "./chunk-3VROQ6LH.js";
|
|
28
28
|
import "./chunk-IM4CQVGS.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-75KZFAR7.js";
|
|
30
|
+
import "./chunk-RP44PBHH.js";
|
|
31
31
|
import "./chunk-46ZTFFJ6.js";
|
|
32
32
|
import "./chunk-7DD4V2OC.js";
|
|
33
33
|
import "./chunk-ZRZ44FWZ.js";
|
|
@@ -7,17 +7,17 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
syncStatus,
|
|
9
9
|
uploadActiveDocument
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UW67A3XW.js";
|
|
11
11
|
import "./chunk-RVRQIQW7.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-XKNBMU6F.js";
|
|
13
13
|
import "./chunk-XRXRSVVQ.js";
|
|
14
14
|
import "./chunk-3VROQ6LH.js";
|
|
15
15
|
import "./chunk-IM4CQVGS.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-75KZFAR7.js";
|
|
17
17
|
import {
|
|
18
18
|
storedDocument,
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RP44PBHH.js";
|
|
21
21
|
import "./chunk-46ZTFFJ6.js";
|
|
22
22
|
import "./chunk-7DD4V2OC.js";
|
|
23
23
|
import "./chunk-ZRZ44FWZ.js";
|
package/dist/index.js
CHANGED
|
@@ -280,7 +280,7 @@ function toTemplate(document, listing, options = {}) {
|
|
|
280
280
|
}
|
|
281
281
|
var mediaHash = (bytes) => hashBytesSync(bytes);
|
|
282
282
|
async function checkTemplate(template, options = {}) {
|
|
283
|
-
return (await import("./chunks/check-template-
|
|
283
|
+
return (await import("./chunks/check-template-5OYK57VZ.js")).checkTemplate(template, options);
|
|
284
284
|
}
|
|
285
285
|
export {
|
|
286
286
|
HELPER_NAMES,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/kit",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "The PopCraft design kit: everything PopCraft's own templates are made with — the Kit, every helper, style system and theme kit, every official template source to read and remix, the build and every check the official templates pass — plus the design-script runner and .popcraft output.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://popcraft.app/docs/api/design-reference",
|