@popcraft/kit 0.53.16 → 0.53.17
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-CMHX6TIO.js → agent-76MOJF7H.js} +1 -1
- package/dist/chunks/{builtin-RTTBLUAL.js → builtin-O5D2Q6RV.js} +3 -3
- package/dist/chunks/{buy-credits-DD453AXQ.js → buy-credits-2RI5ALP3.js} +2 -2
- package/dist/chunks/{check-template-JUZALH4J.js → check-template-5FJPJLKN.js} +2 -2
- package/dist/chunks/{chunk-KU4HCWYC.js → chunk-4UOE2QLJ.js} +4 -4
- package/dist/chunks/{chunk-WNCUXXQ3.js → chunk-64TRA3OH.js} +3 -3
- package/dist/chunks/{chunk-W2PQ27E2.js → chunk-AMQ2XV6E.js} +5 -5
- package/dist/chunks/{chunk-FUS7Y4SS.js → chunk-B4FB4B2M.js} +1 -1
- package/dist/chunks/{chunk-AGOLJ27G.js → chunk-E4P2HVUD.js} +1 -1
- package/dist/chunks/{chunk-S2QORHQB.js → chunk-IAL55FGC.js} +2 -2
- package/dist/chunks/{chunk-YPSNEHNF.js → chunk-MEEB2X3B.js} +42 -42
- package/dist/chunks/{chunk-KMGJ55U3.js → chunk-N6T6XKGC.js} +1 -1
- package/dist/chunks/{chunk-LV2DMDTD.js → chunk-NAXSGXBD.js} +11 -11
- package/dist/chunks/{chunk-JQNEQDKU.js → chunk-NH42V7UK.js} +1 -1
- package/dist/chunks/{chunk-XI7YE4K3.js → chunk-QJU5LRJX.js} +2 -2
- package/dist/chunks/{chunk-2FFA6464.js → chunk-ROIDWBDQ.js} +3 -3
- package/dist/chunks/{chunk-IFDOQEHS.js → chunk-SAUZ2HYM.js} +4 -4
- package/dist/chunks/{chunk-KWJBP75Z.js → chunk-SELEMFEP.js} +1 -1
- package/dist/chunks/{chunk-EIPEDGHA.js → chunk-U6OKU7J4.js} +2 -2
- package/dist/chunks/{chunk-2KPU4QCV.js → chunk-UXNXHMBD.js} +27 -4
- package/dist/chunks/{chunk-XSYCOMIX.js → chunk-VRGEEHBR.js} +16 -9
- package/dist/chunks/{chunk-D5EG45LZ.js → chunk-YLNK64NW.js} +9 -9
- package/dist/chunks/{chunk-ESP2XWO3.js → chunk-YZYQTXAK.js} +2 -2
- package/dist/chunks/{client-XKJT4H2P.js → client-3EX4LVI6.js} +3 -3
- package/dist/chunks/{client-MCO72XP4.js → client-N525NCFB.js} +2 -2
- package/dist/chunks/{client-RMWHGLS4.js → client-RIPJA5PK.js} +1 -1
- package/dist/chunks/{client-actions-IRIVVQJJ.js → client-actions-232DIA3G.js} +5 -5
- package/dist/chunks/{dangerous-IGR27D2F.js → dangerous-2CPJMLP6.js} +3 -3
- package/dist/chunks/{delete-current-file-OHKLBKKQ.js → delete-current-file-IVQD2M3K.js} +5 -5
- package/dist/chunks/{editor-seams-WVHFVQHE.js → editor-seams-AFXFNM6K.js} +10 -10
- package/dist/chunks/{editor-store-A2SNJTLI.js → editor-store-ZFR2ZHNM.js} +1 -1
- package/dist/chunks/{export-watermark-KGGTO4O4.js → export-watermark-KT25FYVD.js} +5 -5
- package/dist/chunks/{eyedropper-4FPMVPMA.js → eyedropper-W6X2VHUB.js} +1 -1
- package/dist/chunks/{generate-media-XVYKOX6Q.js → generate-media-Y3NYLLSS.js} +3 -3
- package/dist/chunks/{host-YTWNKTAD.js → host-PKGEIJZF.js} +6 -6
- package/dist/chunks/{integrations-V57Q7LUC.js → integrations-4NFCLH3S.js} +1 -1
- package/dist/chunks/{libraries-T6HTLURU.js → libraries-565L4UXX.js} +5 -5
- package/dist/chunks/{live-EA3LBJFA.js → live-X3AP4MHF.js} +1 -1
- package/dist/chunks/{media-tool-RYUZKR7X.js → media-tool-HVMNAVAE.js} +1 -1
- package/dist/chunks/{new-file-UQQMA2GY.js → new-file-Z7EJFO2J.js} +3 -3
- package/dist/chunks/{plugin-E3ILJQPJ.js → plugin-OLV3V7ZN.js} +2 -2
- package/dist/chunks/{plugin-import-TI46GQFN.js → plugin-import-SM3NLQ5A.js} +14 -14
- package/dist/chunks/{presence-FTKMD5F3.js → presence-TL24PA2T.js} +2 -2
- package/dist/chunks/{project-JGVNQ5OU.js → project-TS27R5XO.js} +1 -1
- package/dist/chunks/{publish-site-TEZEZGDT.js → publish-site-34NCZ274.js} +6 -6
- package/dist/chunks/{publish-store-WUY2P2RZ.js → publish-store-V27NWG4I.js} +4 -4
- package/dist/chunks/{raster-actions-DI55TXCE.js → raster-actions-PGNW6BX6.js} +1 -1
- package/dist/chunks/{runner-OYGJ7BEH.js → runner-Q6HI2WVB.js} +17 -17
- package/dist/chunks/{store-EUIN7C5G.js → store-SIAVD2I6.js} +6 -6
- package/dist/chunks/{sync-THYAERCF.js → sync-PQCW3ZLW.js} +5 -5
- package/dist/chunks/{tabs-IURSKOB4.js → tabs-HTDE6XGQ.js} +8 -8
- package/dist/chunks/{team-WYTKJA5K.js → team-H4DYU4NF.js} +1 -1
- package/dist/chunks/{team-client-QABPVGKN.js → team-client-DW5CMJ4L.js} +1 -1
- package/dist/chunks/{tools-676MQY7D.js → tools-HBJ2I7YP.js} +2 -2
- package/dist/chunks/{ui-commands-TRN7NNDS.js → ui-commands-NRTJFHI6.js} +12 -12
- package/dist/chunks/{versions-6I33EUEK.js → versions-22FL7N6P.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-6TMH7HCQ.js";
|
|
10
10
|
import {
|
|
11
11
|
activeTeamWorkspaceId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NH42V7UK.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
GUEST_FILE_LIMIT,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-LCLQWQO2.js";
|
|
24
24
|
import {
|
|
25
25
|
markLibraryDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VRGEEHBR.js";
|
|
27
27
|
import {
|
|
28
28
|
create
|
|
29
29
|
} from "./chunk-RVNIEOXA.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
hostEnv,
|
|
10
10
|
plain,
|
|
11
11
|
registerBuiltinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MEEB2X3B.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-6WYLPH6E.js"),
|
|
620
620
|
import("./storefront-N34CMI4B.js"),
|
|
621
|
-
import("./project-
|
|
621
|
+
import("./project-TS27R5XO.js"),
|
|
622
622
|
import("./zip-export-ITATIAQ3.js"),
|
|
623
623
|
import("./tree-SQJHUZW2.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-PKGEIJZF.js");
|
|
819
819
|
await runPlugin(p.pluginId, p.commandId);
|
|
820
820
|
ctx.notice(`Started ${p.pluginId}.`);
|
|
821
821
|
return {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-6YGUTIAY.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YZYQTXAK.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-VRGEEHBR.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-Q6HI2WVB.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-Q6HI2WVB.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,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinCommands,
|
|
9
9
|
registerBuiltinCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MEEB2X3B.js";
|
|
11
11
|
import {
|
|
12
12
|
toolView
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-64TRA3OH.js";
|
|
14
14
|
import {
|
|
15
15
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
16
16
|
} from "./chunk-63KP74KB.js";
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
reportOpenStage,
|
|
17
17
|
setCloudLink,
|
|
18
18
|
trackOpen
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QJU5LRJX.js";
|
|
20
20
|
import {
|
|
21
21
|
parseDeepLink,
|
|
22
22
|
withDeepLink
|
|
23
23
|
} from "./chunk-HFCMTDPQ.js";
|
|
24
24
|
import {
|
|
25
25
|
activeTeamWorkspaceId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NH42V7UK.js";
|
|
27
27
|
import {
|
|
28
28
|
ApiError,
|
|
29
29
|
api,
|
|
@@ -31,8 +31,9 @@ import {
|
|
|
31
31
|
} from "./chunk-7OJZZPU4.js";
|
|
32
32
|
import {
|
|
33
33
|
attachPresence
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-N6T6XKGC.js";
|
|
35
35
|
import {
|
|
36
|
+
fileOpeningMode,
|
|
36
37
|
isPersistableDocument,
|
|
37
38
|
isUnsavedPlaceholder,
|
|
38
39
|
legacyYdocDatabase,
|
|
@@ -42,7 +43,7 @@ import {
|
|
|
42
43
|
setCollabHistory,
|
|
43
44
|
storedDocument,
|
|
44
45
|
useEditorStore
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-VRGEEHBR.js";
|
|
46
47
|
import {
|
|
47
48
|
currentHistoryGroup
|
|
48
49
|
} from "./chunk-DUH4J3CB.js";
|
|
@@ -10126,10 +10127,32 @@ async function linkActive(link) {
|
|
|
10126
10127
|
activeLink = link;
|
|
10127
10128
|
await setCloudLink(link);
|
|
10128
10129
|
applyReadOnly(link.role);
|
|
10130
|
+
firstOpenOfShared(link);
|
|
10129
10131
|
ensureCollab(link);
|
|
10130
10132
|
setStatus(liveStatus());
|
|
10131
10133
|
void healMedia(link);
|
|
10132
10134
|
}
|
|
10135
|
+
var SEEN_KEY = "popcraft.sharedFilesOpened";
|
|
10136
|
+
function seenShared() {
|
|
10137
|
+
try {
|
|
10138
|
+
return new Set(JSON.parse(localStorage.getItem(SEEN_KEY) || "[]"));
|
|
10139
|
+
} catch {
|
|
10140
|
+
return /* @__PURE__ */ new Set();
|
|
10141
|
+
}
|
|
10142
|
+
}
|
|
10143
|
+
function firstOpenOfShared(link) {
|
|
10144
|
+
if (link.role === "owner" || link.anonymous) return;
|
|
10145
|
+
const seen = seenShared();
|
|
10146
|
+
const first = !seen.has(link.key);
|
|
10147
|
+
seen.add(link.key);
|
|
10148
|
+
try {
|
|
10149
|
+
localStorage.setItem(SEEN_KEY, JSON.stringify([...seen].slice(-500)));
|
|
10150
|
+
} catch {
|
|
10151
|
+
}
|
|
10152
|
+
const st = useEditorStore.getState();
|
|
10153
|
+
if (st.document.id !== link.docId || st.mode !== "DESIGN") return;
|
|
10154
|
+
if (fileOpeningMode(st.document, { shared: true, seenBefore: !first }) === "VIEW") st.setMode("VIEW");
|
|
10155
|
+
}
|
|
10133
10156
|
function applyReadOnly(role) {
|
|
10134
10157
|
readOnlyDoc = canEdit(role) ? null : useEditorStore.getState().document;
|
|
10135
10158
|
}
|
|
@@ -1026,6 +1026,11 @@ function openingMode(doc) {
|
|
|
1026
1026
|
};
|
|
1027
1027
|
return moves2(first.id) ? "ANIMATE" : "VIEW";
|
|
1028
1028
|
}
|
|
1029
|
+
function fileOpeningMode(doc, opts = {}) {
|
|
1030
|
+
const mode = openingMode(doc);
|
|
1031
|
+
if (mode !== "VIEW") return mode;
|
|
1032
|
+
return opts.shared && !opts.seenBefore ? "VIEW" : "DESIGN";
|
|
1033
|
+
}
|
|
1029
1034
|
|
|
1030
1035
|
// lib/store/editor-store.ts
|
|
1031
1036
|
init_routing();
|
|
@@ -3653,11 +3658,12 @@ function openTabPatch(s, tab) {
|
|
|
3653
3658
|
}
|
|
3654
3659
|
function createModeSlice(set2, get2) {
|
|
3655
3660
|
return {
|
|
3656
|
-
|
|
3661
|
+
// The editor starts ready to edit. Read only is for someone else's file on its first open (lib/client/cloud/sync.ts),
|
|
3662
|
+
// and a file of another kind picks its own mode when it opens (lib/templates/kinds.ts `fileOpeningMode`).
|
|
3663
|
+
mode: "DESIGN",
|
|
3657
3664
|
viewFlags: { ...DEFAULT_VIEW_FLAGS },
|
|
3658
3665
|
leftTab: "composition",
|
|
3659
|
-
|
|
3660
|
-
rightTab: MODE_PROFILES.VIEW.rightTab,
|
|
3666
|
+
rightTab: MODE_PROFILES.DESIGN.rightTab,
|
|
3661
3667
|
leftPanelOpen: true,
|
|
3662
3668
|
rightPanelOpen: true,
|
|
3663
3669
|
tabSides: loadTabSides(),
|
|
@@ -4624,7 +4630,7 @@ function createPopcornSlice(set2, get2) {
|
|
|
4624
4630
|
privateMode: false,
|
|
4625
4631
|
setPrivateMode: (on) => {
|
|
4626
4632
|
set2({ privateMode: on });
|
|
4627
|
-
void import("./presence-
|
|
4633
|
+
void import("./presence-TL24PA2T.js").then((m) => m.setPresencePrivate(on)).catch(() => {
|
|
4628
4634
|
});
|
|
4629
4635
|
},
|
|
4630
4636
|
/** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
|
|
@@ -6652,7 +6658,7 @@ var useEditorStore = create()(
|
|
|
6652
6658
|
cropEdit: null,
|
|
6653
6659
|
imageEdit: null
|
|
6654
6660
|
});
|
|
6655
|
-
get2().setMode(
|
|
6661
|
+
get2().setMode(fileOpeningMode(snap.document));
|
|
6656
6662
|
{
|
|
6657
6663
|
const st = get2();
|
|
6658
6664
|
const comp = st.mode === "ANIMATE" ? Object.values(openedDoc.compositions ?? {}).find((c) => c.clips?.length) : void 0;
|
|
@@ -6669,7 +6675,7 @@ var useEditorStore = create()(
|
|
|
6669
6675
|
// A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
|
|
6670
6676
|
// Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
|
|
6671
6677
|
duplicateDocument: async (id) => {
|
|
6672
|
-
const { duplicateDocumentToCloud } = await import("./sync-
|
|
6678
|
+
const { duplicateDocumentToCloud } = await import("./sync-PQCW3ZLW.js");
|
|
6673
6679
|
return duplicateDocumentToCloud(id);
|
|
6674
6680
|
},
|
|
6675
6681
|
deleteDocument: async (id) => {
|
|
@@ -10165,9 +10171,9 @@ if (typeof window !== "undefined") {
|
|
|
10165
10171
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10166
10172
|
window.__vpDesign = async (script, o = {}) => {
|
|
10167
10173
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10168
|
-
import("./tools-
|
|
10169
|
-
import("./editor-seams-
|
|
10170
|
-
import("./live-
|
|
10174
|
+
import("./tools-HBJ2I7YP.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-O5D2Q6RV.js")).registerBuiltinTools })),
|
|
10175
|
+
import("./editor-seams-AFXFNM6K.js"),
|
|
10176
|
+
import("./live-X3AP4MHF.js")
|
|
10171
10177
|
]);
|
|
10172
10178
|
registerBuiltinTools();
|
|
10173
10179
|
const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
|
|
@@ -10436,6 +10442,7 @@ onWriteFromReadOnly(() => {
|
|
|
10436
10442
|
});
|
|
10437
10443
|
|
|
10438
10444
|
export {
|
|
10445
|
+
fileOpeningMode,
|
|
10439
10446
|
RASTER_MAX_SIDE,
|
|
10440
10447
|
setPluginTabs,
|
|
10441
10448
|
notifyCollabHistory,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
needsSelection,
|
|
9
9
|
pageGo,
|
|
10
10
|
selectionIsPicture
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MEEB2X3B.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-ZFR2ZHNM.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-2RI5ALP3.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-SIAVD2I6.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-Q6HI2WVB.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-HVMNAVAE.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-W6X2VHUB.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-PGNW6BX6.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-PKGEIJZF.js")).runPlugin(pluginId, commandId);
|
|
442
442
|
return { summary: "Plugin started" };
|
|
443
443
|
}
|
|
444
444
|
});
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
requestImageAction,
|
|
17
17
|
sizeForAspect,
|
|
18
18
|
vectorSupport
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-E4P2HVUD.js";
|
|
20
20
|
import {
|
|
21
21
|
external_exports
|
|
22
22
|
} from "./chunk-UDDWBCFE.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-ZIOF5AO6.js";
|
|
32
32
|
import {
|
|
33
33
|
useEditorStore
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VRGEEHBR.js";
|
|
35
35
|
import {
|
|
36
36
|
withHistoryGroup
|
|
37
37
|
} from "./chunk-DUH4J3CB.js";
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
requestEmbeddings,
|
|
17
17
|
requestImage,
|
|
18
18
|
requestImageAction
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-E4P2HVUD.js";
|
|
20
|
+
import "./chunk-B4FB4B2M.js";
|
|
21
21
|
import "./chunk-L47DGY5Z.js";
|
|
22
22
|
import "./chunk-6TMH7HCQ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-NH42V7UK.js";
|
|
24
24
|
import "./chunk-7OJZZPU4.js";
|
|
25
25
|
import "./chunk-4DCE2NBA.js";
|
|
26
26
|
import "./chunk-RVNIEOXA.js";
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
defaultMeasure,
|
|
9
9
|
placePicture
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IAL55FGC.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-ZFR2ZHNM.js"), import("./media-tool-HVMNAVAE.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,10 +16,10 @@ import {
|
|
|
16
16
|
selectedVectorTarget,
|
|
17
17
|
startImageAction,
|
|
18
18
|
startImageGeneration
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YZYQTXAK.js";
|
|
20
20
|
import "./chunk-FXQCJKLS.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-E4P2HVUD.js";
|
|
22
|
+
import "./chunk-B4FB4B2M.js";
|
|
23
23
|
import "./chunk-L47DGY5Z.js";
|
|
24
24
|
import "./chunk-UDDWBCFE.js";
|
|
25
25
|
import "./chunk-53RJWF2A.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-NH42V7UK.js";
|
|
42
42
|
import "./chunk-7OJZZPU4.js";
|
|
43
43
|
import "./chunk-4DCE2NBA.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-VRGEEHBR.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-NAXSGXBD.js";
|
|
12
|
+
import "./chunk-ROIDWBDQ.js";
|
|
13
|
+
import "./chunk-MEEB2X3B.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-UXNXHMBD.js";
|
|
10
10
|
import "./chunk-ZBANBY2Q.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QJU5LRJX.js";
|
|
12
12
|
import "./chunk-6TMH7HCQ.js";
|
|
13
13
|
import "./chunk-HFCMTDPQ.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-NH42V7UK.js";
|
|
15
15
|
import {
|
|
16
16
|
cloudApi
|
|
17
17
|
} from "./chunk-7OJZZPU4.js";
|
|
18
18
|
import "./chunk-4DCE2NBA.js";
|
|
19
19
|
import "./chunk-LCLQWQO2.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-N6T6XKGC.js";
|
|
21
21
|
import {
|
|
22
22
|
useEditorStore
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VRGEEHBR.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-4UOE2QLJ.js";
|
|
11
11
|
import "./chunk-GUR467P4.js";
|
|
12
12
|
import "./chunk-D6YVHRBL.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-YZYQTXAK.js";
|
|
14
14
|
import "./chunk-FXQCJKLS.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-E4P2HVUD.js";
|
|
16
|
+
import "./chunk-B4FB4B2M.js";
|
|
17
17
|
import "./chunk-L47DGY5Z.js";
|
|
18
18
|
import "./chunk-UDDWBCFE.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-64TRA3OH.js";
|
|
20
20
|
import "./chunk-T2U7UWFL.js";
|
|
21
21
|
import "./chunk-53RJWF2A.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-UXNXHMBD.js";
|
|
23
23
|
import "./chunk-ZBANBY2Q.js";
|
|
24
24
|
import "./chunk-ZEERADTI.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-QJU5LRJX.js";
|
|
41
41
|
import "./chunk-6TMH7HCQ.js";
|
|
42
42
|
import "./chunk-HFCMTDPQ.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-NH42V7UK.js";
|
|
44
44
|
import "./chunk-7OJZZPU4.js";
|
|
45
45
|
import "./chunk-4DCE2NBA.js";
|
|
46
46
|
import "./chunk-LCLQWQO2.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-N6T6XKGC.js";
|
|
48
|
+
import "./chunk-VRGEEHBR.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-UXNXHMBD.js";
|
|
10
10
|
import "./chunk-ZBANBY2Q.js";
|
|
11
11
|
import {
|
|
12
12
|
isGuest
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QJU5LRJX.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-NH42V7UK.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-LCLQWQO2.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-N6T6XKGC.js";
|
|
28
|
+
import "./chunk-VRGEEHBR.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-E4P2HVUD.js";
|
|
16
|
+
import "./chunk-B4FB4B2M.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-NH42V7UK.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-AMQ2XV6E.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-UXNXHMBD.js";
|
|
27
27
|
import "./chunk-ZBANBY2Q.js";
|
|
28
28
|
import "./chunk-ZEERADTI.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-QJU5LRJX.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-NH42V7UK.js";
|
|
47
47
|
import "./chunk-7OJZZPU4.js";
|
|
48
48
|
import "./chunk-4DCE2NBA.js";
|
|
49
49
|
import "./chunk-LCLQWQO2.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-N6T6XKGC.js";
|
|
51
|
+
import "./chunk-VRGEEHBR.js";
|
|
52
52
|
import "./chunk-PPM77AQB.js";
|
|
53
53
|
import "./chunk-HU75T2CC.js";
|
|
54
54
|
import "./chunk-DUH4J3CB.js";
|
|
@@ -7,21 +7,21 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
onSyncStatus,
|
|
9
9
|
syncStatus
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UXNXHMBD.js";
|
|
11
11
|
import "./chunk-ZBANBY2Q.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QJU5LRJX.js";
|
|
13
13
|
import "./chunk-6TMH7HCQ.js";
|
|
14
14
|
import "./chunk-HFCMTDPQ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-NH42V7UK.js";
|
|
16
16
|
import {
|
|
17
17
|
api
|
|
18
18
|
} from "./chunk-7OJZZPU4.js";
|
|
19
19
|
import "./chunk-4DCE2NBA.js";
|
|
20
20
|
import "./chunk-LCLQWQO2.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-N6T6XKGC.js";
|
|
22
22
|
import {
|
|
23
23
|
useEditorStore
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VRGEEHBR.js";
|
|
25
25
|
import "./chunk-PPM77AQB.js";
|
|
26
26
|
import "./chunk-HU75T2CC.js";
|
|
27
27
|
import "./chunk-DUH4J3CB.js";
|