@popcraft/kit 0.53.13 → 0.53.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{agent-VFKKCXNW.js → agent-5U4U6C43.js} +1 -1
- package/dist/chunks/{builtin-SXC3ESRR.js → builtin-G67V4RJF.js} +3 -3
- package/dist/chunks/{buy-credits-4QMY23I7.js → buy-credits-5UKOLBHA.js} +2 -2
- package/dist/chunks/{check-template-XIZE7EOS.js → check-template-RTWNUF7Q.js} +2 -2
- package/dist/chunks/{chunk-7NA4JYVX.js → chunk-3W53KLNF.js} +3 -1
- package/dist/chunks/{chunk-TRTU2FSO.js → chunk-5ANWZ37I.js} +58 -48
- package/dist/chunks/{chunk-4BSC6DYN.js → chunk-C2GTJPT5.js} +3 -3
- package/dist/chunks/{chunk-K5SBJZE3.js → chunk-F3PBS2Z5.js} +12 -8
- package/dist/chunks/{chunk-J7CR7BAO.js → chunk-FT64PUMZ.js} +4 -4
- package/dist/chunks/{chunk-CPOOC3HY.js → chunk-G33U3C3W.js} +1 -1
- package/dist/chunks/{chunk-ANGQQ5SL.js → chunk-GLSJFVGH.js} +1 -1
- package/dist/chunks/{chunk-GOVWVKHX.js → chunk-IQDKL6R5.js} +4 -4
- package/dist/chunks/{chunk-TV5FI5GP.js → chunk-J6IPNDUM.js} +2 -2
- package/dist/chunks/{chunk-T2B3BBAY.js → chunk-JH3F3JX7.js} +5 -5
- package/dist/chunks/{chunk-KIIXFEQ5.js → chunk-RET3ZYRN.js} +1 -1
- package/dist/chunks/{chunk-GOEVKA7R.js → chunk-SCGTY227.js} +1 -1
- package/dist/chunks/{chunk-IIFTN3G3.js → chunk-TUPHMLPV.js} +1 -1
- package/dist/chunks/{chunk-HS7FSPEG.js → chunk-V5OPDI56.js} +9 -9
- package/dist/chunks/{chunk-LAMNIV7V.js → chunk-VCD6WEEH.js} +3 -3
- package/dist/chunks/{chunk-ZHM5OO26.js → chunk-VIYUKTOT.js} +3 -3
- package/dist/chunks/{chunk-7RIKE7TX.js → chunk-VW2Q7ERH.js} +11 -11
- package/dist/chunks/{chunk-3NSGRM6J.js → chunk-VXOQFVPW.js} +2 -2
- package/dist/chunks/{chunk-LHPVTMCD.js → chunk-YHG7UWFJ.js} +2 -2
- package/dist/chunks/{chunk-6WFRZJQQ.js → chunk-YHVBH4GK.js} +4 -4
- package/dist/chunks/{client-TMV3JAVU.js → client-EWVMZ6CF.js} +2 -2
- package/dist/chunks/{client-LKUCTAQJ.js → client-MLI53ZNN.js} +3 -3
- package/dist/chunks/{client-6PTKLMP4.js → client-WGYLRZ5W.js} +1 -1
- package/dist/chunks/{client-actions-G5AEYLK6.js → client-actions-AF3YLM73.js} +6 -6
- package/dist/chunks/{dangerous-CXYENUHS.js → dangerous-OBN3GMPU.js} +3 -3
- package/dist/chunks/{delete-current-file-P2C4XJ3L.js → delete-current-file-R2CGPD6P.js} +5 -5
- package/dist/chunks/{editor-seams-OJOIPMSR.js → editor-seams-KMPTES3K.js} +11 -11
- package/dist/chunks/{editor-store-Y4QJUZRN.js → editor-store-2SPG6CDB.js} +1 -1
- package/dist/chunks/{export-watermark-KA4DFQ5F.js → export-watermark-KBMDOVSF.js} +5 -5
- package/dist/chunks/{eyedropper-MQXDCCQQ.js → eyedropper-OYWRSZUA.js} +1 -1
- package/dist/chunks/{generate-media-WILB2F7S.js → generate-media-GOWIQCUK.js} +3 -3
- package/dist/chunks/{host-3J3QI73A.js → host-SSDIETZS.js} +6 -6
- package/dist/chunks/{integrations-QRCBIFAL.js → integrations-ZWSNTNFK.js} +1 -1
- package/dist/chunks/{libraries-5B666Y26.js → libraries-3RB4C5H3.js} +5 -5
- package/dist/chunks/{live-RMPMOVYA.js → live-LQWDISXX.js} +1 -1
- package/dist/chunks/{media-tool-DJZK4QD6.js → media-tool-HLCFTLIH.js} +6 -1
- package/dist/chunks/{new-file-KM7WGHYH.js → new-file-BL7UV3JO.js} +3 -3
- package/dist/chunks/{plugin-F6TFWUMK.js → plugin-XPWKYRQM.js} +2 -2
- package/dist/chunks/{plugin-import-SJN6BBFR.js → plugin-import-4ROQ6UYM.js} +16 -16
- package/dist/chunks/{presence-XSD4ZVR4.js → presence-VJE6WHKF.js} +2 -2
- package/dist/chunks/{project-YAHBLLJH.js → project-LO5CZDIT.js} +1 -1
- package/dist/chunks/{publish-site-TROND4HZ.js → publish-site-NIEC2X7V.js} +6 -6
- package/dist/chunks/{publish-store-LCNNW2TV.js → publish-store-JSJJPBZN.js} +4 -4
- package/dist/chunks/{raster-actions-67JHXSXD.js → raster-actions-F5RKSV2V.js} +1 -1
- package/dist/chunks/{runner-NU6KTPDY.js → runner-MJ3Q3NW3.js} +18 -18
- package/dist/chunks/{store-JIAL5L67.js → store-2WWSL2DR.js} +7 -7
- package/dist/chunks/{svg-place-TISTLAQB.js → svg-place-BWACOZJR.js} +1 -1
- package/dist/chunks/{sync-E6XGN5DN.js → sync-YRC4CAYD.js} +5 -5
- package/dist/chunks/{tabs-RBP42L32.js → tabs-LNKNT7FE.js} +8 -8
- package/dist/chunks/{team-CSWHSRE4.js → team-YVXVKPS3.js} +1 -1
- package/dist/chunks/{team-client-HSQHUIL5.js → team-client-BPI2FI3K.js} +1 -1
- package/dist/chunks/{tools-U5KNAVCI.js → tools-2HVINJ4B.js} +2 -2
- package/dist/chunks/{ui-commands-7MDF266T.js → ui-commands-5RZ3OLFU.js} +13 -13
- package/dist/chunks/{versions-6PA52YJZ.js → versions-WT6SPAR2.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-T2U7UWFL.js";
|
|
16
16
|
import {
|
|
17
17
|
syncStatus
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FT64PUMZ.js";
|
|
19
19
|
import {
|
|
20
20
|
exportNodeToSVG
|
|
21
21
|
} from "./chunk-O7KIQRJE.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
setPluginTabs,
|
|
30
30
|
useEditorStore
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-F3PBS2Z5.js";
|
|
32
32
|
import {
|
|
33
33
|
openBeside
|
|
34
34
|
} from "./chunk-HU75T2CC.js";
|
|
@@ -69,7 +69,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
|
|
|
69
69
|
// lib/plugins/api.ts
|
|
70
70
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
71
71
|
async function handlePluginCall(env, method, params = {}) {
|
|
72
|
-
const { dispatchPluginCall } = await import("./plugin-
|
|
72
|
+
const { dispatchPluginCall } = await import("./plugin-XPWKYRQM.js");
|
|
73
73
|
return dispatchPluginCall(env, method, params);
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -579,7 +579,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
|
|
|
579
579
|
if (!openBeside(url)) throw new Error("The browser blocked the new tab");
|
|
580
580
|
},
|
|
581
581
|
createDocument: async (opts2) => {
|
|
582
|
-
const { createFreshFileOrExplain } = await import("./new-file-
|
|
582
|
+
const { createFreshFileOrExplain } = await import("./new-file-BL7UV3JO.js");
|
|
583
583
|
const created = await createFreshFileOrExplain({}, { name: opts2?.name });
|
|
584
584
|
if (!created.ok) throw new Error(created.reason === "plan" ? "Plan limit reached" : created.reason === "guest-limit" ? "Sign in to create another file" : `Could not create file (${created.reason})`);
|
|
585
585
|
await useEditorStore.getState().openDocument(created.docId);
|
|
@@ -769,7 +769,7 @@ if (typeof window !== "undefined") {
|
|
|
769
769
|
const name = d.name || "Imported";
|
|
770
770
|
void (async () => {
|
|
771
771
|
try {
|
|
772
|
-
const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-
|
|
772
|
+
const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-4ROQ6UYM.js");
|
|
773
773
|
if (d.ir && typeof d.ir === "object") {
|
|
774
774
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
775
775
|
return;
|
|
@@ -70,7 +70,7 @@ function placeSvgLayers(doc, parentId, svg, place) {
|
|
|
70
70
|
}
|
|
71
71
|
const minX = Math.min(...kids.map((k2) => k2.x)), minY = Math.min(...kids.map((k2) => k2.y));
|
|
72
72
|
const maxX = Math.max(...kids.map((k2) => k2.x + k2.width)), maxY = Math.max(...kids.map((k2) => k2.y + k2.height));
|
|
73
|
-
for (const k2 of kids) nodes[k2.id] = { ...nodes[k2.id], x: k2.x - minX, y: k2.y - minY };
|
|
73
|
+
for (const k2 of kids) nodes[k2.id] = { ...nodes[k2.id], x: k2.x - minX, y: k2.y - minY, constraints: { horizontal: "SCALE", vertical: "SCALE" } };
|
|
74
74
|
let w = Math.max(1, maxX - minX), h = Math.max(1, maxY - minY);
|
|
75
75
|
const f = place.fit;
|
|
76
76
|
const k = f && (f.width || f.height) ? Math.min(f.width ? f.width / w : Infinity, f.height ? f.height / h : Infinity) : 1;
|
|
@@ -150,7 +150,7 @@ function startHyperyTeams() {
|
|
|
150
150
|
maybePromptForTeam();
|
|
151
151
|
void followFileTeam(linkedKey);
|
|
152
152
|
});
|
|
153
|
-
void import("./sync-
|
|
153
|
+
void import("./sync-YRC4CAYD.js").then(({ onSyncStatus, syncStatus }) => {
|
|
154
154
|
linkedKey = syncStatus().link?.key ?? null;
|
|
155
155
|
void followFileTeam(linkedKey);
|
|
156
156
|
onSyncStatus((_s, link) => {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
needsSelection,
|
|
9
9
|
pageGo,
|
|
10
10
|
selectionIsPicture
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5ANWZ37I.js";
|
|
12
12
|
import {
|
|
13
13
|
external_exports
|
|
14
14
|
} from "./chunk-UDDWBCFE.js";
|
|
@@ -31,7 +31,7 @@ var none = external_exports.object({});
|
|
|
31
31
|
var emit = (name, detail) => {
|
|
32
32
|
if (typeof window !== "undefined") window.dispatchEvent(new CustomEvent(name, { detail }));
|
|
33
33
|
};
|
|
34
|
-
var store = () => import("./editor-store-
|
|
34
|
+
var store = () => import("./editor-store-2SPG6CDB.js").then((m) => m.useEditorStore.getState());
|
|
35
35
|
var MODE_IDS = MODE_LIST.map((m) => m.id);
|
|
36
36
|
var MODE_ALIASES = { JAM: "POPCORN", DEV: "VIEW" };
|
|
37
37
|
var modeSet = defineCommand({
|
|
@@ -167,7 +167,7 @@ var dialogOpen = defineCommand({
|
|
|
167
167
|
(await import("./plan-limit-NQZVPJSA.js")).openPlanDialog();
|
|
168
168
|
break;
|
|
169
169
|
case "credits":
|
|
170
|
-
await (await import("./buy-credits-
|
|
170
|
+
await (await import("./buy-credits-5UKOLBHA.js")).buyAiCredits();
|
|
171
171
|
break;
|
|
172
172
|
case "tokens":
|
|
173
173
|
emit("popcraft-open-tokens");
|
|
@@ -213,7 +213,7 @@ var aiOpen = defineCommand({
|
|
|
213
213
|
] } },
|
|
214
214
|
run: async ({ dialog, skillId }) => {
|
|
215
215
|
if (dialog) (await import("./client-store-4J5MJDAW.js")).openAiDialog(dialog);
|
|
216
|
-
else (await import("./store-
|
|
216
|
+
else (await import("./store-2WWSL2DR.js")).openAgentPanel({ skillId: skillId ?? null });
|
|
217
217
|
return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
|
|
218
218
|
}
|
|
219
219
|
});
|
|
@@ -226,7 +226,7 @@ var agentContinue = defineCommand({
|
|
|
226
226
|
params: external_exports.object({}),
|
|
227
227
|
expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
|
|
228
228
|
run: async () => {
|
|
229
|
-
const resumed = await (await import("./runner-
|
|
229
|
+
const resumed = await (await import("./runner-MJ3Q3NW3.js")).continueTurn();
|
|
230
230
|
return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
|
|
231
231
|
}
|
|
232
232
|
});
|
|
@@ -305,11 +305,11 @@ var toolPlace = defineCommand({
|
|
|
305
305
|
run: async ({ what }) => {
|
|
306
306
|
if (what === "media") {
|
|
307
307
|
const s = await store();
|
|
308
|
-
const { placeMediaFromPicker } = await import("./media-tool-
|
|
308
|
+
const { placeMediaFromPicker } = await import("./media-tool-HLCFTLIH.js");
|
|
309
309
|
await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
|
|
310
310
|
return { summary: "Placing media" };
|
|
311
311
|
}
|
|
312
|
-
const { beginEyedrop } = await import("./eyedropper-
|
|
312
|
+
const { beginEyedrop } = await import("./eyedropper-OYWRSZUA.js");
|
|
313
313
|
void beginEyedrop();
|
|
314
314
|
return { summary: "Pick a color" };
|
|
315
315
|
}
|
|
@@ -327,7 +327,7 @@ var nodeRasterize = defineCommand({
|
|
|
327
327
|
keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
|
|
328
328
|
} },
|
|
329
329
|
run: async () => {
|
|
330
|
-
const { flattenSelectionToPaintLayer } = await import("./raster-actions-
|
|
330
|
+
const { flattenSelectionToPaintLayer } = await import("./raster-actions-F5RKSV2V.js");
|
|
331
331
|
await flattenSelectionToPaintLayer();
|
|
332
332
|
return { summary: "Rasterized" };
|
|
333
333
|
}
|
|
@@ -438,7 +438,7 @@ function pluginCommand(plugins) {
|
|
|
438
438
|
params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
|
|
439
439
|
expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
|
|
440
440
|
run: async ({ pluginId, commandId }) => {
|
|
441
|
-
await (await import("./host-
|
|
441
|
+
await (await import("./host-SSDIETZS.js")).runPlugin(pluginId, commandId);
|
|
442
442
|
return { summary: "Plugin started" };
|
|
443
443
|
}
|
|
444
444
|
});
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
hostEnv,
|
|
10
10
|
plain,
|
|
11
11
|
registerBuiltinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5ANWZ37I.js";
|
|
13
13
|
import {
|
|
14
14
|
storeOpsSeam
|
|
15
15
|
} from "./chunk-GUR467P4.js";
|
|
@@ -618,7 +618,7 @@ var commands = [
|
|
|
618
618
|
const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
|
|
619
619
|
import("./storefront-prepare-KXYUIYOX.js"),
|
|
620
620
|
import("./storefront-UUS57X6E.js"),
|
|
621
|
-
import("./project-
|
|
621
|
+
import("./project-LO5CZDIT.js"),
|
|
622
622
|
import("./zip-export-ITATIAQ3.js"),
|
|
623
623
|
import("./tree-WU53OA64.js")
|
|
624
624
|
]);
|
|
@@ -815,7 +815,7 @@ var pluginRun = defineCommand({
|
|
|
815
815
|
}
|
|
816
816
|
},
|
|
817
817
|
run: async (p, ctx) => {
|
|
818
|
-
const { runPlugin } = await import("./host-
|
|
818
|
+
const { runPlugin } = await import("./host-SSDIETZS.js");
|
|
819
819
|
await runPlugin(p.pluginId, p.commandId);
|
|
820
820
|
ctx.notice(`Started ${p.pluginId}.`);
|
|
821
821
|
return {
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
requestImageAction,
|
|
17
17
|
sizeForAspect,
|
|
18
18
|
vectorSupport
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3W53KLNF.js";
|
|
20
20
|
import {
|
|
21
21
|
external_exports
|
|
22
22
|
} from "./chunk-UDDWBCFE.js";
|
|
23
23
|
import {
|
|
24
24
|
placeSvgLayers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RET3ZYRN.js";
|
|
26
26
|
import {
|
|
27
27
|
exportNodeToSVG
|
|
28
28
|
} from "./chunk-O7KIQRJE.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-X4E6BGB6.js";
|
|
32
32
|
import {
|
|
33
33
|
useEditorStore
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-F3PBS2Z5.js";
|
|
35
35
|
import {
|
|
36
36
|
withHistoryGroup
|
|
37
37
|
} from "./chunk-DUH4J3CB.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-VCD6WEEH.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-5ANWZ37I.js";
|
|
17
17
|
import {
|
|
18
18
|
external_exports
|
|
19
19
|
} from "./chunk-UDDWBCFE.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-VJE6WHKF.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-2SPG6CDB.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-2SPG6CDB.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-3RB4C5H3.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-3RB4C5H3.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-2SPG6CDB.js"),
|
|
236
|
+
import("./versions-WT6SPAR2.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-WT6SPAR2.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-WT6SPAR2.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 } };
|
|
@@ -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-2SPG6CDB.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-HLCFTLIH.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);
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-6TMH7HCQ.js";
|
|
10
10
|
import {
|
|
11
11
|
activeTeamWorkspaceId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SCGTY227.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
GUEST_FILE_LIMIT,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-KA6COJ7W.js";
|
|
24
24
|
import {
|
|
25
25
|
markLibraryDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-F3PBS2Z5.js";
|
|
27
27
|
import {
|
|
28
28
|
create
|
|
29
29
|
} from "./chunk-RVNIEOXA.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-6YGUTIAY.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VIYUKTOT.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveChatModel,
|
|
15
15
|
setModelPref,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-L47DGY5Z.js";
|
|
18
18
|
import {
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-F3PBS2Z5.js";
|
|
21
21
|
import {
|
|
22
22
|
create
|
|
23
23
|
} from "./chunk-RVNIEOXA.js";
|
|
@@ -1797,7 +1797,7 @@ async function sendMessage(text) {
|
|
|
1797
1797
|
if (!useAgentStore.getState().activeThreadId) newThread();
|
|
1798
1798
|
const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
|
|
1799
1799
|
useAgentStore.setState({ draft: "", draftMentions: [], error: null });
|
|
1800
|
-
const { runTurn } = await import("./runner-
|
|
1800
|
+
const { runTurn } = await import("./runner-MJ3Q3NW3.js");
|
|
1801
1801
|
await runTurn(body, mentions);
|
|
1802
1802
|
}
|
|
1803
1803
|
function stop() {
|
|
@@ -1900,7 +1900,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
|
|
|
1900
1900
|
function subscribeChildTools() {
|
|
1901
1901
|
let dispose;
|
|
1902
1902
|
let cancelled = false;
|
|
1903
|
-
void import("./runner-
|
|
1903
|
+
void import("./runner-MJ3Q3NW3.js").then(({ onChildTool }) => {
|
|
1904
1904
|
const off = onChildTool((report) => {
|
|
1905
1905
|
if (report?.status !== "running" || report.jobId) return;
|
|
1906
1906
|
recordChildTool(report.toolCallId ?? "", report.name);
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
defaultMeasure,
|
|
9
9
|
placePicture
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VXOQFVPW.js";
|
|
11
11
|
import "./chunk-AKNWNB6A.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-2SPG6CDB.js"), import("./media-tool-HLCFTLIH.js")]);
|
|
125
125
|
const cam = useEditorStore.getState().camera;
|
|
126
126
|
await placeMediaFile(file, { kind: "point", ...opts.at ?? { x: cam.x, y: cam.y } });
|
|
127
127
|
return useEditorStore.getState().selection[0] ?? null;
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
requestEmbeddings,
|
|
17
17
|
requestImage,
|
|
18
18
|
requestImageAction
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-3W53KLNF.js";
|
|
20
|
+
import "./chunk-TUPHMLPV.js";
|
|
21
21
|
import "./chunk-L47DGY5Z.js";
|
|
22
22
|
import "./chunk-6TMH7HCQ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-SCGTY227.js";
|
|
24
24
|
import "./chunk-7OJZZPU4.js";
|
|
25
25
|
import "./chunk-4DCE2NBA.js";
|
|
26
26
|
import "./chunk-RVNIEOXA.js";
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
selectedVectorTarget,
|
|
17
17
|
startImageAction,
|
|
18
18
|
startImageGeneration
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VIYUKTOT.js";
|
|
20
20
|
import "./chunk-FXQCJKLS.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-3W53KLNF.js";
|
|
22
|
+
import "./chunk-TUPHMLPV.js";
|
|
23
23
|
import "./chunk-L47DGY5Z.js";
|
|
24
24
|
import "./chunk-UDDWBCFE.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-RET3ZYRN.js";
|
|
26
26
|
import "./chunk-O7KIQRJE.js";
|
|
27
27
|
import "./chunk-L2VARVQP.js";
|
|
28
28
|
import "./chunk-PQS6DHQP.js";
|
|
@@ -38,10 +38,10 @@ import "./chunk-ZJA62LXW.js";
|
|
|
38
38
|
import "./chunk-7SQJMUIG.js";
|
|
39
39
|
import "./chunk-EH6D57EA.js";
|
|
40
40
|
import "./chunk-6TMH7HCQ.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-SCGTY227.js";
|
|
42
42
|
import "./chunk-7OJZZPU4.js";
|
|
43
43
|
import "./chunk-4DCE2NBA.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-F3PBS2Z5.js";
|
|
45
45
|
import "./chunk-PPM77AQB.js";
|
|
46
46
|
import "./chunk-HU75T2CC.js";
|
|
47
47
|
import "./chunk-DUH4J3CB.js";
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
confirmTierCommands,
|
|
9
9
|
dangerousCommands,
|
|
10
10
|
registerDangerousCommands
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-VW2Q7ERH.js";
|
|
12
|
+
import "./chunk-VCD6WEEH.js";
|
|
13
|
+
import "./chunk-5ANWZ37I.js";
|
|
14
14
|
import "./chunk-LJZR7CU3.js";
|
|
15
15
|
import "./chunk-JNBUJE2Z.js";
|
|
16
16
|
import "./chunk-EGUH2RFR.js";
|
|
@@ -6,21 +6,21 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
syncStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FT64PUMZ.js";
|
|
10
10
|
import "./chunk-ZBANBY2Q.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-YHG7UWFJ.js";
|
|
12
12
|
import "./chunk-6TMH7HCQ.js";
|
|
13
13
|
import "./chunk-HFCMTDPQ.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-SCGTY227.js";
|
|
15
15
|
import {
|
|
16
16
|
cloudApi
|
|
17
17
|
} from "./chunk-7OJZZPU4.js";
|
|
18
18
|
import "./chunk-4DCE2NBA.js";
|
|
19
19
|
import "./chunk-KA6COJ7W.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-GLSJFVGH.js";
|
|
21
21
|
import {
|
|
22
22
|
useEditorStore
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-F3PBS2Z5.js";
|
|
24
24
|
import "./chunk-PPM77AQB.js";
|
|
25
25
|
import "./chunk-HU75T2CC.js";
|
|
26
26
|
import "./chunk-DUH4J3CB.js";
|
|
@@ -7,19 +7,19 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
editBlockReason,
|
|
9
9
|
editorToolContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IQDKL6R5.js";
|
|
11
11
|
import "./chunk-GUR467P4.js";
|
|
12
12
|
import "./chunk-D6YVHRBL.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-VIYUKTOT.js";
|
|
14
14
|
import "./chunk-FXQCJKLS.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-3W53KLNF.js";
|
|
16
|
+
import "./chunk-TUPHMLPV.js";
|
|
17
17
|
import "./chunk-L47DGY5Z.js";
|
|
18
18
|
import "./chunk-UDDWBCFE.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-C2GTJPT5.js";
|
|
20
20
|
import "./chunk-T2U7UWFL.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-RET3ZYRN.js";
|
|
22
|
+
import "./chunk-FT64PUMZ.js";
|
|
23
23
|
import "./chunk-ZBANBY2Q.js";
|
|
24
24
|
import "./chunk-O7KIQRJE.js";
|
|
25
25
|
import "./chunk-L2VARVQP.js";
|
|
@@ -37,15 +37,15 @@ import "./chunk-7SQJMUIG.js";
|
|
|
37
37
|
import "./chunk-FIJRNTK2.js";
|
|
38
38
|
import "./chunk-NPFIKFPP.js";
|
|
39
39
|
import "./chunk-EH6D57EA.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-YHG7UWFJ.js";
|
|
41
41
|
import "./chunk-6TMH7HCQ.js";
|
|
42
42
|
import "./chunk-HFCMTDPQ.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-SCGTY227.js";
|
|
44
44
|
import "./chunk-7OJZZPU4.js";
|
|
45
45
|
import "./chunk-4DCE2NBA.js";
|
|
46
46
|
import "./chunk-KA6COJ7W.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-GLSJFVGH.js";
|
|
48
|
+
import "./chunk-F3PBS2Z5.js";
|
|
49
49
|
import "./chunk-PPM77AQB.js";
|
|
50
50
|
import "./chunk-HU75T2CC.js";
|
|
51
51
|
import "./chunk-DUH4J3CB.js";
|
|
@@ -6,17 +6,17 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
syncStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FT64PUMZ.js";
|
|
10
10
|
import "./chunk-ZBANBY2Q.js";
|
|
11
11
|
import {
|
|
12
12
|
isGuest
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YHG7UWFJ.js";
|
|
14
14
|
import {
|
|
15
15
|
cachedLimits,
|
|
16
16
|
loadEntitlements
|
|
17
17
|
} from "./chunk-6TMH7HCQ.js";
|
|
18
18
|
import "./chunk-HFCMTDPQ.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-SCGTY227.js";
|
|
20
20
|
import {
|
|
21
21
|
PLANS,
|
|
22
22
|
cloudApi,
|
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
} from "./chunk-7OJZZPU4.js";
|
|
25
25
|
import "./chunk-4DCE2NBA.js";
|
|
26
26
|
import "./chunk-KA6COJ7W.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-GLSJFVGH.js";
|
|
28
|
+
import "./chunk-F3PBS2Z5.js";
|
|
29
29
|
import "./chunk-PPM77AQB.js";
|
|
30
30
|
import "./chunk-HU75T2CC.js";
|
|
31
31
|
import "./chunk-DUH4J3CB.js";
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
AiClientError,
|
|
14
14
|
aiFetch
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-3W53KLNF.js";
|
|
16
|
+
import "./chunk-TUPHMLPV.js";
|
|
17
17
|
import {
|
|
18
18
|
useAiStore
|
|
19
19
|
} from "./chunk-L47DGY5Z.js";
|
|
@@ -24,7 +24,7 @@ import "./chunk-FFIZKGS2.js";
|
|
|
24
24
|
import "./chunk-7SQJMUIG.js";
|
|
25
25
|
import "./chunk-EH6D57EA.js";
|
|
26
26
|
import "./chunk-6TMH7HCQ.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-SCGTY227.js";
|
|
28
28
|
import "./chunk-7OJZZPU4.js";
|
|
29
29
|
import "./chunk-4DCE2NBA.js";
|
|
30
30
|
import {
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
runPluginWithImport,
|
|
19
19
|
runningSessionFor,
|
|
20
20
|
setEnabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JH3F3JX7.js";
|
|
22
22
|
import "./chunk-QS4AT3DM.js";
|
|
23
23
|
import "./chunk-XKUI2K2V.js";
|
|
24
24
|
import "./chunk-UDDWBCFE.js";
|
|
25
25
|
import "./chunk-T2U7UWFL.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-FT64PUMZ.js";
|
|
27
27
|
import "./chunk-ZBANBY2Q.js";
|
|
28
28
|
import "./chunk-O7KIQRJE.js";
|
|
29
29
|
import "./chunk-L2VARVQP.js";
|
|
@@ -39,16 +39,16 @@ import "./chunk-ZQMCKI3G.js";
|
|
|
39
39
|
import "./chunk-ZJA62LXW.js";
|
|
40
40
|
import "./chunk-7SQJMUIG.js";
|
|
41
41
|
import "./chunk-EH6D57EA.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-YHG7UWFJ.js";
|
|
43
43
|
import "./chunk-6TMH7HCQ.js";
|
|
44
44
|
import "./chunk-HFCMTDPQ.js";
|
|
45
45
|
import "./chunk-N72PY6HV.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-SCGTY227.js";
|
|
47
47
|
import "./chunk-7OJZZPU4.js";
|
|
48
48
|
import "./chunk-4DCE2NBA.js";
|
|
49
49
|
import "./chunk-KA6COJ7W.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-GLSJFVGH.js";
|
|
51
|
+
import "./chunk-F3PBS2Z5.js";
|
|
52
52
|
import "./chunk-PPM77AQB.js";
|
|
53
53
|
import "./chunk-HU75T2CC.js";
|
|
54
54
|
import "./chunk-DUH4J3CB.js";
|