@popcraft/kit 0.42.7 → 0.43.1
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-ACKW52XX.js → agent-C2VSTR5O.js} +1 -1
- package/dist/chunks/{builtin-MUPNSPBL.js → builtin-TJXXHK52.js} +4 -4
- package/dist/chunks/{buy-credits-54GWI7ML.js → buy-credits-R6OKQRV7.js} +2 -2
- package/dist/chunks/{check-template-MNDCLNN3.js → check-template-YU5WSAI7.js} +3 -3
- package/dist/chunks/{chunk-ZQISW66S.js → chunk-3QLBPU6J.js} +1 -1
- package/dist/chunks/{chunk-HBBK6Y7G.js → chunk-3R7UXPLU.js} +4 -4
- package/dist/chunks/{chunk-DKCTRTHM.js → chunk-4KAE6LEY.js} +5 -5
- package/dist/chunks/{chunk-LAUMMLSQ.js → chunk-7DDQUWTV.js} +4 -4
- package/dist/chunks/{chunk-6RD5SXEV.js → chunk-7PMMHDSA.js} +2 -2
- package/dist/chunks/{chunk-CCUKBEMT.js → chunk-7R75CBZP.js} +2 -2
- package/dist/chunks/{chunk-P6BSBDFG.js → chunk-B6V7A5RJ.js} +12 -9
- package/dist/chunks/{chunk-BYD4J3DP.js → chunk-CMZ5T7PG.js} +2 -2
- package/dist/chunks/{chunk-HNIEELX5.js → chunk-DZTRGEL7.js} +1 -0
- package/dist/chunks/{chunk-WNMASA6F.js → chunk-IAGYTFXR.js} +2 -2
- package/dist/chunks/{chunk-DBIFNY6B.js → chunk-IMDKO63P.js} +2 -2
- package/dist/chunks/{chunk-IW6JTLD2.js → chunk-JG2RVAD4.js} +3 -3
- package/dist/chunks/{chunk-5N2YIXAW.js → chunk-KFBEUEXO.js} +9 -9
- package/dist/chunks/{chunk-TW3WMAQC.js → chunk-KS5JOFAZ.js} +4 -4
- package/dist/chunks/{chunk-E5FYXTQJ.js → chunk-L4SGSZZY.js} +1 -1
- package/dist/chunks/{chunk-5WN2WJX7.js → chunk-LWO5LQVB.js} +42 -42
- package/dist/chunks/{chunk-LFM2MDFK.js → chunk-LYF34TQA.js} +1 -1
- package/dist/chunks/{chunk-63S6ZT4X.js → chunk-MVKKIXPI.js} +1 -1
- package/dist/chunks/{chunk-ENNXV2HZ.js → chunk-OL7EZZA5.js} +1 -1
- package/dist/chunks/{chunk-YAQXFYV7.js → chunk-QLICXXNA.js} +1 -1
- package/dist/chunks/{chunk-TS4NM6DU.js → chunk-UMYGT2ZT.js} +2 -2
- package/dist/chunks/{chunk-R24QYTCE.js → chunk-WG4RKX6B.js} +3 -3
- package/dist/chunks/{chunk-UW4HKICD.js → chunk-XTXZYBKV.js} +1 -1
- package/dist/chunks/{chunk-HBGZZBYX.js → chunk-XWWZQWLJ.js} +11 -11
- package/dist/chunks/{client-5B5VRM44.js → client-C7BOARPK.js} +2 -2
- package/dist/chunks/{client-3WUDZOWS.js → client-HJSWUHO3.js} +1 -1
- package/dist/chunks/{client-MT6DEVEG.js → client-VNUMMNOU.js} +3 -3
- package/dist/chunks/{client-actions-2RNH2UNU.js → client-actions-SCBHZTEW.js} +6 -6
- package/dist/chunks/{dangerous-CDBMV3HH.js → dangerous-2FCRKKGU.js} +4 -4
- package/dist/chunks/{delete-current-file-GMNBEFYU.js → delete-current-file-EHOVBESQ.js} +6 -6
- package/dist/chunks/{editor-seams-ZBO64KKV.js → editor-seams-5MFJYN2R.js} +11 -11
- package/dist/chunks/{editor-store-YRDTWU3X.js → editor-store-EXQ4NUHP.js} +2 -2
- package/dist/chunks/{export-watermark-RE7UP5AV.js → export-watermark-YO5YR7RY.js} +6 -6
- package/dist/chunks/{eyedropper-GEDNYROO.js → eyedropper-UVA7KFPT.js} +2 -2
- package/dist/chunks/{generate-media-UBX3JHPU.js → generate-media-EOVEWKZD.js} +3 -3
- package/dist/chunks/{host-Q2FQMGGE.js → host-FQVWI4PB.js} +7 -7
- package/dist/chunks/{integrations-AFQZEQLD.js → integrations-SJRBAKI7.js} +1 -1
- package/dist/chunks/{libraries-SD56BVOE.js → libraries-VYO4MY7S.js} +6 -6
- package/dist/chunks/{live-FEN4OOLV.js → live-SYRHTTHJ.js} +2 -2
- package/dist/chunks/{media-tool-V5KI37HI.js → media-tool-FI43CHAB.js} +2 -2
- package/dist/chunks/{new-file-4Z2SGHIQ.js → new-file-LQYNFGDE.js} +4 -4
- package/dist/chunks/{plugin-DDY3MUPL.js → plugin-DCUQJPJX.js} +3 -3
- package/dist/chunks/{plugin-import-Q4OXSEX2.js → plugin-import-OG4KSWJX.js} +15 -15
- package/dist/chunks/{presence-WAP7NBCI.js → presence-POQZNXHP.js} +3 -3
- package/dist/chunks/{project-YT4MJQRK.js → project-4JBUGGVO.js} +1 -1
- package/dist/chunks/{publish-site-7QKDUXYB.js → publish-site-7DRTOD6G.js} +7 -7
- package/dist/chunks/{publish-store-XB4A5BLB.js → publish-store-FQZLLXHF.js} +4 -4
- package/dist/chunks/{raster-actions-UM4C3A5S.js → raster-actions-3UWZYZL5.js} +2 -2
- package/dist/chunks/{runner-H5NO3HSV.js → runner-3RTUVN4I.js} +18 -18
- package/dist/chunks/{store-LPIDT3B3.js → store-ZAE4ZFBR.js} +7 -7
- package/dist/chunks/{sync-ND55CHVZ.js → sync-M3VDSVDV.js} +6 -6
- package/dist/chunks/{tabs-YXEHXOSZ.js → tabs-ODUUIHY7.js} +9 -9
- package/dist/chunks/{team-JVNMTHAS.js → team-CHANDPAZ.js} +1 -1
- package/dist/chunks/{team-client-FJZC7WXC.js → team-client-PFD5CTM5.js} +1 -1
- package/dist/chunks/{tools-C3CLXFEB.js → tools-KWKL74XR.js} +2 -2
- package/dist/chunks/{ui-commands-C4ZWWI4Y.js → ui-commands-LYBJTU6K.js} +13 -13
- package/dist/chunks/{versions-3QSFHAC2.js → versions-Q7IZIP74.js} +6 -6
- package/dist/index.js +1 -1
- package/dist/templates/index.js +4 -4
- package/dist/templates/motion/landing-hero/index.js +2 -2
- package/dist/templates/motion/launch-trailer/document.js +4 -4
- package/dist/templates/motion/launch-trailer/index.js +2 -2
- package/dist/templates/motion/launch-trailer/scenes.js +3 -1
- package/package.json +1 -1
- package/src/templates/motion/launch-trailer/scenes.ts +1 -1
- package/types/templates/src/motion/launch-trailer/scenes.d.ts +5 -0
|
@@ -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-7PMMHDSA.js";
|
|
11
|
+
import "./chunk-LWO5LQVB.js";
|
|
12
12
|
import "./chunk-FP4SRYEY.js";
|
|
13
13
|
import "./chunk-KNZC67UG.js";
|
|
14
14
|
import "./chunk-BYQRWB45.js";
|
|
@@ -19,7 +19,7 @@ import "./chunk-HXLERMCQ.js";
|
|
|
19
19
|
import "./chunk-6RKVV3NE.js";
|
|
20
20
|
import "./chunk-2ISDJ45D.js";
|
|
21
21
|
import "./chunk-LG7DRCNH.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-JG2RVAD4.js";
|
|
23
23
|
import "./chunk-CJAUQQRO.js";
|
|
24
24
|
import "./chunk-HP7P4BWV.js";
|
|
25
25
|
import "./chunk-IKLFVV7P.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-BTYS6PD2.js";
|
|
|
27
27
|
import "./chunk-WQAETPPJ.js";
|
|
28
28
|
import "./chunk-324UQOHH.js";
|
|
29
29
|
import "./chunk-DU24BGF4.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-UMYGT2ZT.js";
|
|
31
31
|
import "./chunk-MJ3SFWGZ.js";
|
|
32
32
|
import "./chunk-HRCUF6Q3.js";
|
|
33
33
|
import "./chunk-IVNQG76O.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-L4SGSZZY.js";
|
|
11
11
|
import "./chunk-2NGVUEN2.js";
|
|
12
12
|
import {
|
|
13
13
|
useHyperyTeam
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XTXZYBKV.js";
|
|
15
15
|
import {
|
|
16
16
|
ApiError,
|
|
17
17
|
inAppPurchases,
|
|
@@ -6,10 +6,10 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
appCommands
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KFBEUEXO.js";
|
|
10
10
|
import {
|
|
11
11
|
builtinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LWO5LQVB.js";
|
|
13
13
|
import "./chunk-FP4SRYEY.js";
|
|
14
14
|
import "./chunk-KNZC67UG.js";
|
|
15
15
|
import "./chunk-BYQRWB45.js";
|
|
@@ -34,7 +34,7 @@ import "./chunk-WQAETPPJ.js";
|
|
|
34
34
|
import "./chunk-324UQOHH.js";
|
|
35
35
|
import "./chunk-DU24BGF4.js";
|
|
36
36
|
import "./chunk-XLASVAX6.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-UMYGT2ZT.js";
|
|
38
38
|
import "./chunk-T7WUWBL7.js";
|
|
39
39
|
import "./chunk-MJ3SFWGZ.js";
|
|
40
40
|
import "./chunk-HRCUF6Q3.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-5TJENPVP.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IAGYTFXR.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveChatModel,
|
|
15
15
|
setModelPref,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-7ZG6LPNA.js";
|
|
18
18
|
import {
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-B6V7A5RJ.js";
|
|
21
21
|
import {
|
|
22
22
|
create
|
|
23
23
|
} from "./chunk-GGHJRQSQ.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-3RTUVN4I.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-3RTUVN4I.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);
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
} from "./chunk-PQ3RUO5F.js";
|
|
22
22
|
import {
|
|
23
23
|
syncStatus
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7DDQUWTV.js";
|
|
25
25
|
import {
|
|
26
26
|
usePluginStore
|
|
27
27
|
} from "./chunk-CVXRQ66R.js";
|
|
28
28
|
import {
|
|
29
29
|
setPluginTabs,
|
|
30
30
|
useEditorStore
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-B6V7A5RJ.js";
|
|
32
32
|
import {
|
|
33
33
|
openBeside
|
|
34
34
|
} from "./chunk-DGXWJPTE.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-DCUQJPJX.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-LQYNFGDE.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-OG4KSWJX.js");
|
|
773
773
|
if (d.ir && typeof d.ir === "object") {
|
|
774
774
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
775
775
|
return;
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
newFileRefusal,
|
|
15
15
|
reportNewFileBlocked,
|
|
16
16
|
setCloudLink
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CMZ5T7PG.js";
|
|
18
18
|
import {
|
|
19
19
|
parseDeepLink,
|
|
20
20
|
withDeepLink
|
|
21
21
|
} from "./chunk-Z56Z7JCB.js";
|
|
22
22
|
import {
|
|
23
23
|
activeTeamWorkspaceId
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XTXZYBKV.js";
|
|
25
25
|
import {
|
|
26
26
|
ApiError,
|
|
27
27
|
api,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-2CEEDVFE.js";
|
|
30
30
|
import {
|
|
31
31
|
attachPresence
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OL7EZZA5.js";
|
|
33
33
|
import {
|
|
34
34
|
isPersistableDocument,
|
|
35
35
|
isUnsavedPlaceholder,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
setCollabHistory,
|
|
41
41
|
storedDocument,
|
|
42
42
|
useEditorStore
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-B6V7A5RJ.js";
|
|
44
44
|
import {
|
|
45
45
|
currentHistoryGroup
|
|
46
46
|
} from "./chunk-WLHDRYWM.js";
|
|
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinCommands,
|
|
9
9
|
registerBuiltinCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LWO5LQVB.js";
|
|
11
11
|
import {
|
|
12
12
|
toolView
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JG2RVAD4.js";
|
|
14
14
|
import {
|
|
15
15
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
16
16
|
} from "./chunk-CIBKIB3Q.js";
|
|
@@ -294,10 +294,10 @@ import {
|
|
|
294
294
|
} from "./chunk-N276Z5FO.js";
|
|
295
295
|
import {
|
|
296
296
|
landing_hero_default
|
|
297
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-3QLBPU6J.js";
|
|
298
298
|
import {
|
|
299
299
|
launch_trailer_default
|
|
300
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-LYF34TQA.js";
|
|
301
301
|
import {
|
|
302
302
|
template_wall_default
|
|
303
303
|
} from "./chunk-H3DQQQL3.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
stageFit,
|
|
26
26
|
stageTarget,
|
|
27
27
|
textLinkSource
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UMYGT2ZT.js";
|
|
29
29
|
import {
|
|
30
30
|
parseColor
|
|
31
31
|
} from "./chunk-3NU2KKMC.js";
|
|
@@ -4582,7 +4582,7 @@ function createPopcornSlice(set2, get2) {
|
|
|
4582
4582
|
privateMode: false,
|
|
4583
4583
|
setPrivateMode: (on) => {
|
|
4584
4584
|
set2({ privateMode: on });
|
|
4585
|
-
void import("./presence-
|
|
4585
|
+
void import("./presence-POQZNXHP.js").then((m) => m.setPresencePrivate(on)).catch(() => {
|
|
4586
4586
|
});
|
|
4587
4587
|
},
|
|
4588
4588
|
/** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
|
|
@@ -5781,8 +5781,11 @@ function activeTarget(state) {
|
|
|
5781
5781
|
function shownBreakpoint(state) {
|
|
5782
5782
|
const id = state.activeBreakpoint;
|
|
5783
5783
|
if (!id || state.isPresentMode || state.machinePreview || isBaseBreakpoint(state.document, id)) return null;
|
|
5784
|
-
|
|
5785
|
-
|
|
5784
|
+
return id;
|
|
5785
|
+
}
|
|
5786
|
+
function breakpointView(state, doc = state.document) {
|
|
5787
|
+
const id = state.breakpointGesture ? null : shownBreakpoint(state);
|
|
5788
|
+
return id ? breakpointDocument(doc, id) : doc;
|
|
5786
5789
|
}
|
|
5787
5790
|
var storedDocument = (state) => state.motionGesture?.rest ?? state.breakpointGesture?.rest ?? state.designPreview?.rest ?? state.document;
|
|
5788
5791
|
|
|
@@ -6635,7 +6638,7 @@ var useEditorStore = create()(
|
|
|
6635
6638
|
// A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
|
|
6636
6639
|
// Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
|
|
6637
6640
|
duplicateDocument: async (id) => {
|
|
6638
|
-
const { duplicateDocumentToCloud } = await import("./sync-
|
|
6641
|
+
const { duplicateDocumentToCloud } = await import("./sync-M3VDSVDV.js");
|
|
6639
6642
|
return duplicateDocumentToCloud(id);
|
|
6640
6643
|
},
|
|
6641
6644
|
deleteDocument: async (id) => {
|
|
@@ -8018,7 +8021,7 @@ var useEditorStore = create()(
|
|
|
8018
8021
|
zoomToSelection: () => get2().zoomToNodes(get2().selection, 0.2),
|
|
8019
8022
|
zoomToFrame: (opts) => {
|
|
8020
8023
|
const state = get2();
|
|
8021
|
-
const target = stageTarget(state);
|
|
8024
|
+
const target = stageTarget(state, breakpointView(state));
|
|
8022
8025
|
const camera = target && stageFit(target.rect, canvasViewport(), canvasInsets(), STAGE_PADDING * canvasPixelRatio());
|
|
8023
8026
|
if (!target || !camera) return false;
|
|
8024
8027
|
if (target.kind === "frame") state.setStageFrameId(target.frameId);
|
|
@@ -10097,9 +10100,9 @@ if (typeof window !== "undefined") {
|
|
|
10097
10100
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10098
10101
|
window.__vpDesign = async (script, o = {}) => {
|
|
10099
10102
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10100
|
-
import("./tools-
|
|
10101
|
-
import("./editor-seams-
|
|
10102
|
-
import("./live-
|
|
10103
|
+
import("./tools-KWKL74XR.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-TJXXHK52.js")).registerBuiltinTools })),
|
|
10104
|
+
import("./editor-seams-5MFJYN2R.js"),
|
|
10105
|
+
import("./live-SYRHTTHJ.js")
|
|
10103
10106
|
]);
|
|
10104
10107
|
registerBuiltinTools();
|
|
10105
10108
|
const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-2NGVUEN2.js";
|
|
10
10
|
import {
|
|
11
11
|
activeTeamWorkspaceId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XTXZYBKV.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
GUEST_FILE_LIMIT,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-TINOZ576.js";
|
|
24
24
|
import {
|
|
25
25
|
markLibraryDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B6V7A5RJ.js";
|
|
27
27
|
import {
|
|
28
28
|
cloudEnabled,
|
|
29
29
|
cloudUser
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
requestImageAction,
|
|
17
17
|
sizeForAspect,
|
|
18
18
|
vectorSupport
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MVKKIXPI.js";
|
|
20
20
|
import {
|
|
21
21
|
external_exports
|
|
22
22
|
} from "./chunk-LG7DRCNH.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-4E365KXP.js";
|
|
32
32
|
import {
|
|
33
33
|
useEditorStore
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-B6V7A5RJ.js";
|
|
35
35
|
import {
|
|
36
36
|
withHistoryGroup
|
|
37
37
|
} from "./chunk-WLHDRYWM.js";
|
|
@@ -91,9 +91,9 @@ async function placeStockPhoto(photo, opts = {}) {
|
|
|
91
91
|
}
|
|
92
92
|
async function placePicture(imported, opts = {}) {
|
|
93
93
|
const [{ useEditorStore }, { photoFrameOf }, { placeImage }] = await Promise.all([
|
|
94
|
-
import("./editor-store-
|
|
94
|
+
import("./editor-store-EXQ4NUHP.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-FI43CHAB.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);
|
|
@@ -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-VNUMMNOU.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-EOVEWKZD.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-VNUMMNOU.js"),
|
|
73
73
|
import("./client-store-OXZDCRVY.js")
|
|
74
74
|
]);
|
|
75
75
|
const modelId = effectiveImageModel(useAiStore.getState());
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
needsSelection,
|
|
9
9
|
pageGo,
|
|
10
10
|
selectionIsPicture
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LWO5LQVB.js";
|
|
12
12
|
import {
|
|
13
13
|
external_exports
|
|
14
14
|
} from "./chunk-LG7DRCNH.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-EXQ4NUHP.js").then((m) => m.useEditorStore.getState());
|
|
35
35
|
var MODE_IDS = MODE_LIST.map((m) => m.id);
|
|
36
36
|
var MODE_ALIASES = { JAM: "POPCORN" };
|
|
37
37
|
var modeSet = defineCommand({
|
|
@@ -167,7 +167,7 @@ var dialogOpen = defineCommand({
|
|
|
167
167
|
(await import("./plan-limit-2XFVSQOR.js")).openPlanDialog();
|
|
168
168
|
break;
|
|
169
169
|
case "credits":
|
|
170
|
-
await (await import("./buy-credits-
|
|
170
|
+
await (await import("./buy-credits-R6OKQRV7.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-OXZDCRVY.js")).openAiDialog(dialog);
|
|
216
|
-
else (await import("./store-
|
|
216
|
+
else (await import("./store-ZAE4ZFBR.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-3RTUVN4I.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-FI43CHAB.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-UVA7KFPT.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-3UWZYZL5.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-FQVWI4PB.js")).runPlugin(pluginId, commandId);
|
|
442
442
|
return { summary: "Plugin started" };
|
|
443
443
|
}
|
|
444
444
|
});
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
} from "./chunk-L34RO4NA.js";
|
|
21
21
|
import {
|
|
22
22
|
notice
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IAGYTFXR.js";
|
|
24
24
|
import {
|
|
25
25
|
agentContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JG2RVAD4.js";
|
|
27
27
|
import {
|
|
28
28
|
collabSession,
|
|
29
29
|
syncStatus
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7DDQUWTV.js";
|
|
31
31
|
import {
|
|
32
32
|
loadEntitlements
|
|
33
33
|
} from "./chunk-2NGVUEN2.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-2CEEDVFE.js";
|
|
37
37
|
import {
|
|
38
38
|
useEditorStore
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-B6V7A5RJ.js";
|
|
40
40
|
import {
|
|
41
41
|
getActiveRenderer
|
|
42
42
|
} from "./chunk-IVNQG76O.js";
|