@popcraft/kit 0.24.2 → 0.24.3
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-VX44HOXQ.js → agent-VBZYSDCS.js} +1 -1
- package/dist/chunks/{builtin-U5OSIAGB.js → builtin-IIVGBVX5.js} +3 -3
- package/dist/chunks/{check-template-EZECNGXQ.js → check-template-WYLINTJH.js} +2 -2
- package/dist/chunks/{chunk-X77HP47O.js → chunk-3A3Z74SW.js} +2 -2
- package/dist/chunks/{chunk-II5UZKJ5.js → chunk-3MQH3YUB.js} +2 -2
- package/dist/chunks/{chunk-LO2YGZM6.js → chunk-3XXM6XDR.js} +37 -37
- package/dist/chunks/{chunk-JAPHT7XO.js → chunk-4SF5THOZ.js} +3 -3
- package/dist/chunks/{chunk-OESYC5DM.js → chunk-55K3WO2X.js} +5 -5
- package/dist/chunks/{chunk-V7ASKTCN.js → chunk-6RZACCY3.js} +5 -5
- package/dist/chunks/{chunk-OGCXTO4V.js → chunk-6WIWNSBT.js} +11 -11
- package/dist/chunks/{chunk-GWFGF3PK.js → chunk-DIN65MRO.js} +7 -7
- package/dist/chunks/{chunk-C4VUE5TI.js → chunk-GSQJHZNK.js} +1 -1
- package/dist/chunks/{chunk-344GY3HS.js → chunk-HW3HFSCG.js} +1 -1
- package/dist/chunks/{chunk-Y6ZEWGTT.js → chunk-JPVRPPPJ.js} +1 -1
- package/dist/chunks/{chunk-SJVXQWYQ.js → chunk-KWLLTBME.js} +4 -4
- package/dist/chunks/{chunk-SQZWARQY.js → chunk-L7QWW6HM.js} +2 -2
- package/dist/chunks/{chunk-RJ42VQTS.js → chunk-NWLJD3DK.js} +3 -3
- package/dist/chunks/{chunk-HRD6YRTR.js → chunk-OFVGA322.js} +4 -4
- package/dist/chunks/{chunk-LDOSBEER.js → chunk-RBBA5BIS.js} +5 -5
- package/dist/chunks/{chunk-T4TZVEYO.js → chunk-U3XGLMJA.js} +3 -1
- package/dist/chunks/{chunk-4JGL3OVX.js → chunk-VVDDRAQJ.js} +2 -2
- package/dist/chunks/{client-J5CP43BE.js → client-ADQ4CODD.js} +2 -2
- package/dist/chunks/{client-MAWI2SX5.js → client-O7OASL7L.js} +1 -1
- package/dist/chunks/{client-TWAOOPOO.js → client-W7KY2MDL.js} +2 -2
- package/dist/chunks/{client-actions-VLIKMFF7.js → client-actions-Q7TTFUXM.js} +4 -4
- package/dist/chunks/{dangerous-VZWIC27O.js → dangerous-4TGIE2PG.js} +3 -3
- package/dist/chunks/{editor-seams-2GS73AD4.js → editor-seams-2SB43CII.js} +9 -9
- package/dist/chunks/{editor-store-XCA367TU.js → editor-store-5N3IDKSV.js} +1 -1
- package/dist/chunks/{export-watermark-SHBFBAKI.js → export-watermark-JTXVARRV.js} +5 -5
- package/dist/chunks/{eyedropper-QGWM7AXJ.js → eyedropper-GEDFKE75.js} +1 -1
- package/dist/chunks/{generate-media-254TVROQ.js → generate-media-WKOJW77N.js} +2 -2
- package/dist/chunks/{host-IL7QVBH7.js → host-FJ2MA2MA.js} +6 -6
- package/dist/chunks/{integrations-R374NBXT.js → integrations-BUGVUXQK.js} +1 -1
- package/dist/chunks/{libraries-XSOLYQW3.js → libraries-QWD4YDNK.js} +5 -5
- package/dist/chunks/{live-KVLZXYKO.js → live-EKNCRVVY.js} +1 -1
- package/dist/chunks/{media-tool-Y7FKHQMM.js → media-tool-SZRZRPP2.js} +1 -1
- package/dist/chunks/{new-file-HVBBR7S3.js → new-file-ZNJ6D5O6.js} +3 -3
- package/dist/chunks/{plugin-5AIB3DJ2.js → plugin-4ZHR2ENU.js} +2 -2
- package/dist/chunks/{plugin-import-VYQZYWKV.js → plugin-import-L4VRMXH4.js} +13 -13
- package/dist/chunks/{presence-BVHIO62T.js → presence-NFDH3AMJ.js} +2 -2
- package/dist/chunks/{project-BZ47MQ44.js → project-VXI2XDH2.js} +1 -1
- package/dist/chunks/{publish-site-XOPEYDOD.js → publish-site-EAL3U5IX.js} +6 -6
- package/dist/chunks/{publish-store-SIZDWTBT.js → publish-store-4ZLTZVFF.js} +4 -4
- package/dist/chunks/{raster-actions-MVJBGYCD.js → raster-actions-EGFOIFE6.js} +1 -1
- package/dist/chunks/{runner-LLMQGXO2.js → runner-VDB3U27G.js} +16 -16
- package/dist/chunks/{store-ZUM467VR.js → store-XKT5YENL.js} +5 -5
- package/dist/chunks/{sync-TR2IIB5B.js → sync-QJUCLUI2.js} +5 -5
- package/dist/chunks/{tabs-GDPUBX7B.js → tabs-OOFQ2FWD.js} +8 -8
- package/dist/chunks/{team-4CQS74ZT.js → team-TZD4LH5Z.js} +1 -1
- package/dist/chunks/{tools-5ZVMZAGH.js → tools-UPRIE2WU.js} +2 -2
- package/dist/chunks/{ui-commands-W3H3VL2A.js → ui-commands-U5QUJ2I6.js} +11 -11
- package/dist/chunks/{versions-7M3OW5ZH.js → versions-WCJKEPCB.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinTools,
|
|
9
9
|
registerBuiltinTools
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-VVDDRAQJ.js";
|
|
11
|
+
import "./chunk-3XXM6XDR.js";
|
|
12
12
|
import "./chunk-3OKZ57OD.js";
|
|
13
13
|
import "./chunk-U57RZGPM.js";
|
|
14
14
|
import "./chunk-FENVY7S5.js";
|
|
@@ -19,7 +19,7 @@ import "./chunk-3CLJHQC5.js";
|
|
|
19
19
|
import "./chunk-HXDZI7ZZ.js";
|
|
20
20
|
import "./chunk-PELUYQR3.js";
|
|
21
21
|
import "./chunk-EZVFNLBJ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-4SF5THOZ.js";
|
|
23
23
|
import "./chunk-XPLI2SES.js";
|
|
24
24
|
import "./chunk-DHZBRKFZ.js";
|
|
25
25
|
import "./chunk-YZ2OHMU7.js";
|
|
@@ -6,10 +6,10 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
appCommands
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DIN65MRO.js";
|
|
10
10
|
import {
|
|
11
11
|
builtinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3XXM6XDR.js";
|
|
13
13
|
import "./chunk-3OKZ57OD.js";
|
|
14
14
|
import "./chunk-U57RZGPM.js";
|
|
15
15
|
import "./chunk-FENVY7S5.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-5N3IDKSV.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-SZRZRPP2.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);
|
|
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
activeTeamWorkspaceId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HW3HFSCG.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiError,
|
|
12
12
|
GUEST_FILE_LIMIT,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-XFB6EZVY.js";
|
|
19
19
|
import {
|
|
20
20
|
markLibraryDocument
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6RZACCY3.js";
|
|
22
22
|
import {
|
|
23
23
|
cloudEnabled,
|
|
24
24
|
cloudUser
|
|
@@ -864,7 +864,7 @@ init_scene_graph();
|
|
|
864
864
|
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.");
|
|
865
865
|
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 });
|
|
866
866
|
async function placeImportedPicture(ctx, imported, at, what, extra = {}) {
|
|
867
|
-
const client = await import("./client-
|
|
867
|
+
const client = await import("./client-O7OASL7L.js");
|
|
868
868
|
if (at.fillLayerId) {
|
|
869
869
|
const doc2 = ctx.doc();
|
|
870
870
|
const target = nodeOrThrow(doc2, at.fillLayerId);
|
|
@@ -910,7 +910,7 @@ var photoSearch = defineCommand({
|
|
|
910
910
|
}
|
|
911
911
|
},
|
|
912
912
|
run: async (args) => {
|
|
913
|
-
const { searchStockPhotos } = await import("./client-
|
|
913
|
+
const { searchStockPhotos } = await import("./client-O7OASL7L.js");
|
|
914
914
|
const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
|
|
915
915
|
return {
|
|
916
916
|
summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
|
|
@@ -944,7 +944,7 @@ var photoInsert = defineCommand({
|
|
|
944
944
|
run: async (args, ctx) => {
|
|
945
945
|
if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
|
|
946
946
|
if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
|
|
947
|
-
const client = await import("./client-
|
|
947
|
+
const client = await import("./client-O7OASL7L.js");
|
|
948
948
|
let photo;
|
|
949
949
|
if (args.id) photo = await client.stockPhotoInfo(args.id);
|
|
950
950
|
else {
|
|
@@ -982,7 +982,7 @@ var mediaList = defineCommand({
|
|
|
982
982
|
}
|
|
983
983
|
},
|
|
984
984
|
run: async (args) => {
|
|
985
|
-
const { listLibraryMedia } = await import("./client-
|
|
985
|
+
const { listLibraryMedia } = await import("./client-ADQ4CODD.js");
|
|
986
986
|
const page = await listLibraryMedia(args);
|
|
987
987
|
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 } };
|
|
988
988
|
}
|
|
@@ -1013,7 +1013,7 @@ var mediaInsert = defineCommand({
|
|
|
1013
1013
|
run: async (args, ctx) => {
|
|
1014
1014
|
const contentType = args.contentType ?? "image/*";
|
|
1015
1015
|
if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
|
|
1016
|
-
const { importLibraryPicture } = await import("./client-
|
|
1016
|
+
const { importLibraryPicture } = await import("./client-ADQ4CODD.js");
|
|
1017
1017
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
|
|
1018
1018
|
const imported = await importLibraryPicture(item);
|
|
1019
1019
|
return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
|
|
@@ -1034,7 +1034,7 @@ var mediaDownload = defineCommand({
|
|
|
1034
1034
|
// The Library's right-click menu: saves the item's file to the computer.
|
|
1035
1035
|
expose: { ui: { label: "Download", palette: false } },
|
|
1036
1036
|
run: async (args) => {
|
|
1037
|
-
const { libraryBlob, libraryFileName } = await import("./client-
|
|
1037
|
+
const { libraryBlob, libraryFileName } = await import("./client-ADQ4CODD.js");
|
|
1038
1038
|
const { downloadBlob } = await import("./download-P52YK7FC.js");
|
|
1039
1039
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
|
|
1040
1040
|
const blob = await libraryBlob(item);
|
|
@@ -1065,7 +1065,7 @@ var mediaDelete = defineCommand({
|
|
|
1065
1065
|
}
|
|
1066
1066
|
},
|
|
1067
1067
|
run: async (args) => {
|
|
1068
|
-
const { deleteLibraryMedia } = await import("./client-
|
|
1068
|
+
const { deleteLibraryMedia } = await import("./client-ADQ4CODD.js");
|
|
1069
1069
|
const out = await deleteLibraryMedia(args.workspace, args.hash);
|
|
1070
1070
|
return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
|
|
1071
1071
|
}
|
|
@@ -1079,13 +1079,13 @@ async function signedIn() {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
async function publishedFile() {
|
|
1081
1081
|
await signedIn();
|
|
1082
|
-
const { openFileKey } = await import("./publish-site-
|
|
1082
|
+
const { openFileKey } = await import("./publish-site-EAL3U5IX.js");
|
|
1083
1083
|
const key = openFileKey();
|
|
1084
1084
|
if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
|
|
1085
1085
|
return key;
|
|
1086
1086
|
}
|
|
1087
1087
|
async function formsWithoutDatabase(key) {
|
|
1088
|
-
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-
|
|
1088
|
+
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-5N3IDKSV.js"), import("./backend-HMDYWKKL.js"), import("./integrations-BUGVUXQK.js")]);
|
|
1089
1089
|
const doc2 = useEditorStore.getState().document;
|
|
1090
1090
|
if (!usesForms(doc2)) return false;
|
|
1091
1091
|
return formsGoNowhere(doc2, await siteBackend(key).catch(() => void 0));
|
|
@@ -1121,7 +1121,7 @@ var publishSite = defineCommand({
|
|
|
1121
1121
|
const { cleanSlug } = await import("./rules-YTGQFWTU.js");
|
|
1122
1122
|
const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
|
|
1123
1123
|
if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
|
|
1124
|
-
const { publishOpenFile, NoScreens } = await import("./publish-site-
|
|
1124
|
+
const { publishOpenFile, NoScreens } = await import("./publish-site-EAL3U5IX.js");
|
|
1125
1125
|
try {
|
|
1126
1126
|
const done = await publishOpenFile(address);
|
|
1127
1127
|
ctx.notice(`Published version ${done.version}: ${done.url}`);
|
|
@@ -1176,7 +1176,7 @@ var publishListSites = defineCommand({
|
|
|
1176
1176
|
},
|
|
1177
1177
|
run: async (p) => {
|
|
1178
1178
|
await signedIn();
|
|
1179
|
-
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-QGITEOXU.js"), import("./team-
|
|
1179
|
+
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-QGITEOXU.js"), import("./team-TZD4LH5Z.js")]);
|
|
1180
1180
|
const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
|
|
1181
1181
|
if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
|
|
1182
1182
|
const out = await workspaceSites(workspaceId);
|
|
@@ -1225,12 +1225,12 @@ var publishStatus = defineCommand({
|
|
|
1225
1225
|
},
|
|
1226
1226
|
run: async () => {
|
|
1227
1227
|
await signedIn();
|
|
1228
|
-
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-
|
|
1228
|
+
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-EAL3U5IX.js"), import("./sites-QGITEOXU.js")]);
|
|
1229
1229
|
const key = openFileKey();
|
|
1230
1230
|
const status = await siteStatus(key);
|
|
1231
1231
|
const site = status.site;
|
|
1232
|
-
const backend = key ? await (await import("./integrations-
|
|
1233
|
-
const destinations = key ? await (await import("./integrations-
|
|
1232
|
+
const backend = key ? await (await import("./integrations-BUGVUXQK.js")).siteBackend(key).catch(() => null) : null;
|
|
1233
|
+
const destinations = key ? await (await import("./integrations-BUGVUXQK.js")).listDestinations(key).catch(() => []) : [];
|
|
1234
1234
|
return {
|
|
1235
1235
|
summary: !status.configured ? "This server does not publish websites" : !site ? "Not published yet" : site.currentVersion === null ? `Offline (${site.versions.length} versions kept) \u2014 ${site.url}` : `Version ${site.currentVersion} is online at ${site.url}`,
|
|
1236
1236
|
data: { ...statusData(status), database: backend?.database ? { provider: backend.database.connection.provider, account: backend.database.connection.account, target: backend.database.target.map((t) => t.name), visitorsCanSignIn: backend.database.signIn } : null, destinations: destinations.map((d) => ({ destinationId: d.id, provider: d.connection.provider, account: d.connection.account, kind: d.capability, target: d.target.map((t) => t.name), lastSent: d.lastDeploy })) }
|
|
@@ -1261,7 +1261,7 @@ var publishStore = defineCommand({
|
|
|
1261
1261
|
},
|
|
1262
1262
|
run: async (p, ctx) => {
|
|
1263
1263
|
await signedIn();
|
|
1264
|
-
const { deployOpenStore } = await import("./publish-store-
|
|
1264
|
+
const { deployOpenStore } = await import("./publish-store-4ZLTZVFF.js");
|
|
1265
1265
|
const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
|
|
1266
1266
|
throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
|
|
1267
1267
|
});
|
|
@@ -1290,7 +1290,7 @@ var integrationList = defineCommand({
|
|
|
1290
1290
|
}
|
|
1291
1291
|
},
|
|
1292
1292
|
run: async ({ capability }) => {
|
|
1293
|
-
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-FZCE76T4.js"), import("./integrations-
|
|
1293
|
+
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-FZCE76T4.js"), import("./integrations-BUGVUXQK.js")]);
|
|
1294
1294
|
if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
|
|
1295
1295
|
const workspaceId = integrationsWorkspaceId();
|
|
1296
1296
|
if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
|
|
@@ -1331,7 +1331,7 @@ var integrationOpen = defineCommand({
|
|
|
1331
1331
|
}
|
|
1332
1332
|
});
|
|
1333
1333
|
async function openFile() {
|
|
1334
|
-
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-FZCE76T4.js"), import("./publish-site-
|
|
1334
|
+
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-FZCE76T4.js"), import("./publish-site-EAL3U5IX.js")]);
|
|
1335
1335
|
if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
|
|
1336
1336
|
const key = openFileKey();
|
|
1337
1337
|
if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
|
|
@@ -1357,7 +1357,7 @@ var integrationListResources = defineCommand({
|
|
|
1357
1357
|
}
|
|
1358
1358
|
},
|
|
1359
1359
|
run: async ({ connectionId, capability, path }) => {
|
|
1360
|
-
const { listResources } = await import("./integrations-
|
|
1360
|
+
const { listResources } = await import("./integrations-BUGVUXQK.js");
|
|
1361
1361
|
const list = await listResources(connectionId, capability, asPath2(path));
|
|
1362
1362
|
return {
|
|
1363
1363
|
summary: list.level ? `${list.resources.length} at the ${list.level.label.toLowerCase()} level${list.canCreate ? " (a new one can be made)" : ""}` : "Nothing further to pick: the path is complete",
|
|
@@ -1392,7 +1392,7 @@ var integrationAddDestination = defineCommand({
|
|
|
1392
1392
|
},
|
|
1393
1393
|
run: async (p, ctx) => {
|
|
1394
1394
|
const key = await openFile();
|
|
1395
|
-
const { addDestination, createDestination, createResource } = await import("./integrations-
|
|
1395
|
+
const { addDestination, createDestination, createResource } = await import("./integrations-BUGVUXQK.js");
|
|
1396
1396
|
let made;
|
|
1397
1397
|
if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
|
|
1398
1398
|
else {
|
|
@@ -1429,7 +1429,7 @@ var integrationDeploy = defineCommand({
|
|
|
1429
1429
|
},
|
|
1430
1430
|
run: async (p, ctx) => {
|
|
1431
1431
|
const key = await openFile();
|
|
1432
|
-
const { deployDestination, listDestinations } = await import("./integrations-
|
|
1432
|
+
const { deployDestination, listDestinations } = await import("./integrations-BUGVUXQK.js");
|
|
1433
1433
|
const all = await listDestinations(key);
|
|
1434
1434
|
const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
|
|
1435
1435
|
if (!dest) throw new CommandError(all.length ? `Say which destination: ${all.map((d) => `${d.id} (${d.target.map((t) => t.name).join(" / ")})`).join(", ")}.` : "This file has no destination yet. Add one first (add_site_destination).", "invalid_params");
|
|
@@ -1463,7 +1463,7 @@ var integrationAttachDatabase = defineCommand({
|
|
|
1463
1463
|
},
|
|
1464
1464
|
run: async (p, ctx) => {
|
|
1465
1465
|
const key = await openFile();
|
|
1466
|
-
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-
|
|
1466
|
+
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-BUGVUXQK.js");
|
|
1467
1467
|
if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
|
|
1468
1468
|
if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
|
|
1469
1469
|
let target = asPath2(p.target);
|
|
@@ -1502,7 +1502,7 @@ var integrationSubmissions = defineCommand({
|
|
|
1502
1502
|
},
|
|
1503
1503
|
run: async ({ form, limit }) => {
|
|
1504
1504
|
const key = await openFile();
|
|
1505
|
-
const { listSubmissions } = await import("./integrations-
|
|
1505
|
+
const { listSubmissions } = await import("./integrations-BUGVUXQK.js");
|
|
1506
1506
|
const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
|
|
1507
1507
|
return { summary: rows.length ? `${rows.length} ${rows.length === 1 ? "submission" : "submissions"}, the newest ${new Date(rows[0].createdAt).toISOString()}` : "Nothing has been sent yet", data: { submissions: rows } };
|
|
1508
1508
|
}
|
|
@@ -1527,7 +1527,7 @@ var integrationSetSignIn = defineCommand({
|
|
|
1527
1527
|
},
|
|
1528
1528
|
run: async ({ on }, ctx) => {
|
|
1529
1529
|
const key = await openFile();
|
|
1530
|
-
const { setSignIn } = await import("./integrations-
|
|
1530
|
+
const { setSignIn } = await import("./integrations-BUGVUXQK.js");
|
|
1531
1531
|
const done = await setSignIn(key, on);
|
|
1532
1532
|
ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
|
|
1533
1533
|
return { summary: on ? "Visitors can now create accounts and sign in on the published site" : "Sign-in is off for the published site", data: { signIn: !!done.database?.signIn } };
|
|
@@ -1539,7 +1539,7 @@ var integrationConfirmCommands = [integrationAddDestination, integrationDeploy,
|
|
|
1539
1539
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1540
1540
|
async function cloudFile() {
|
|
1541
1541
|
const [{ syncStatus }, { cloudUser }] = await Promise.all([
|
|
1542
|
-
import("./sync-
|
|
1542
|
+
import("./sync-QJUCLUI2.js"),
|
|
1543
1543
|
import("./session-FZCE76T4.js")
|
|
1544
1544
|
]);
|
|
1545
1545
|
const link2 = syncStatus().link;
|
|
@@ -1691,11 +1691,11 @@ var fileDuplicate = defineCommand({
|
|
|
1691
1691
|
},
|
|
1692
1692
|
run: async (_p, ctx) => {
|
|
1693
1693
|
const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
|
|
1694
|
-
import("./sync-
|
|
1694
|
+
import("./sync-QJUCLUI2.js"),
|
|
1695
1695
|
import("./api-SP5CMW7F.js"),
|
|
1696
1696
|
import("./tab-mode-H7FXWBQN.js"),
|
|
1697
|
-
import("./tabs-
|
|
1698
|
-
import("./sync-
|
|
1697
|
+
import("./tabs-OOFQ2FWD.js"),
|
|
1698
|
+
import("./sync-QJUCLUI2.js"),
|
|
1699
1699
|
import("./dist-node-PFCYBZF7.js")
|
|
1700
1700
|
]);
|
|
1701
1701
|
const doc2 = ctx.doc();
|
|
@@ -4311,7 +4311,7 @@ var viewCopyLink = defineCommand({
|
|
|
4311
4311
|
},
|
|
4312
4312
|
run: async (args, ctx) => {
|
|
4313
4313
|
const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
|
|
4314
|
-
import("./sync-
|
|
4314
|
+
import("./sync-QJUCLUI2.js"),
|
|
4315
4315
|
import("./api-SP5CMW7F.js"),
|
|
4316
4316
|
import("./deep-link-2GZ3XM5I.js")
|
|
4317
4317
|
]);
|
|
@@ -4636,7 +4636,7 @@ var pageGo = defineCommand({
|
|
|
4636
4636
|
] }
|
|
4637
4637
|
},
|
|
4638
4638
|
run: async ({ to }) => {
|
|
4639
|
-
const { useEditorStore } = await import("./editor-store-
|
|
4639
|
+
const { useEditorStore } = await import("./editor-store-5N3IDKSV.js");
|
|
4640
4640
|
useEditorStore.getState().goToPrintPage(to);
|
|
4641
4641
|
return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
|
|
4642
4642
|
}
|
|
@@ -4670,7 +4670,7 @@ var pageSetup = defineCommand({
|
|
|
4670
4670
|
}
|
|
4671
4671
|
},
|
|
4672
4672
|
run: async (args) => {
|
|
4673
|
-
const { useEditorStore } = await import("./editor-store-
|
|
4673
|
+
const { useEditorStore } = await import("./editor-store-5N3IDKSV.js");
|
|
4674
4674
|
useEditorStore.getState().applyPageSetup(args);
|
|
4675
4675
|
return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
|
|
4676
4676
|
}
|
|
@@ -5429,7 +5429,7 @@ async function docAtTime(doc2, ids, time2) {
|
|
|
5429
5429
|
let frameId;
|
|
5430
5430
|
if (time2 === void 0) {
|
|
5431
5431
|
try {
|
|
5432
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5432
|
+
const { useEditorStore } = await import("./editor-store-5N3IDKSV.js");
|
|
5433
5433
|
const st = useEditorStore.getState();
|
|
5434
5434
|
const target = st.transport?.target;
|
|
5435
5435
|
if (st.mode !== "ANIMATE" || target?.kind !== "frame") return doc2;
|
|
@@ -5807,7 +5807,7 @@ async function runAnimationExport(format, args, ctx) {
|
|
|
5807
5807
|
const filename = exportFileName(args.filename || targetName(doc2, target), format);
|
|
5808
5808
|
const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-7B5R5APU.js"), import("./destination-HXYQZTLQ.js")]);
|
|
5809
5809
|
if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
|
|
5810
|
-
const planWatermark = format !== "png" && await (await import("./export-watermark-
|
|
5810
|
+
const planWatermark = format !== "png" && await (await import("./export-watermark-JTXVARRV.js")).exportWatermark();
|
|
5811
5811
|
if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
|
|
5812
5812
|
const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
|
|
5813
5813
|
let stats;
|
|
@@ -5893,7 +5893,7 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
|
|
|
5893
5893
|
});
|
|
5894
5894
|
async function exportSite(doc2, pageId2, packaging, styling = "css", siteUrl) {
|
|
5895
5895
|
const [{ completeSite, nextFilesOf, shareImageFiles, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
5896
|
-
import("./project-
|
|
5896
|
+
import("./project-VXI2XDH2.js"),
|
|
5897
5897
|
import("./web-QXDK5GSS.js"),
|
|
5898
5898
|
import("./zip-export-QEIUQPMP.js"),
|
|
5899
5899
|
import("./download-P52YK7FC.js")
|
|
@@ -5982,7 +5982,7 @@ var exportStorefront = defineCommand({
|
|
|
5982
5982
|
const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
5983
5983
|
import("./storefront-prepare-JQ2E5LHB.js"),
|
|
5984
5984
|
import("./storefront-Y5ZIZ5LI.js"),
|
|
5985
|
-
import("./project-
|
|
5985
|
+
import("./project-VXI2XDH2.js"),
|
|
5986
5986
|
import("./web-QXDK5GSS.js"),
|
|
5987
5987
|
import("./zip-export-QEIUQPMP.js"),
|
|
5988
5988
|
import("./download-P52YK7FC.js")
|
|
@@ -6377,7 +6377,7 @@ var visionRegenerateImage = defineCommand({
|
|
|
6377
6377
|
const id = args.id ?? ctx.selection()[0];
|
|
6378
6378
|
if (!id) throw new ToolError("Select a generated image to regenerate.");
|
|
6379
6379
|
nodeOrThrow(ctx.doc(), id);
|
|
6380
|
-
const { regenerateImage } = await import("./client-actions-
|
|
6380
|
+
const { regenerateImage } = await import("./client-actions-Q7TTFUXM.js");
|
|
6381
6381
|
regenerateImage(id, args.count);
|
|
6382
6382
|
return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
|
|
6383
6383
|
}
|
|
@@ -9536,7 +9536,7 @@ var scriptRun = defineCommand({
|
|
|
9536
9536
|
// A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
|
|
9537
9537
|
actor: { ...ctx.actor, nested: true, label: "Script" },
|
|
9538
9538
|
// A look_at inside the script sees the document as the script has left it so far, not as it was before.
|
|
9539
|
-
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-
|
|
9539
|
+
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-VBZYSDCS.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
|
|
9540
9540
|
};
|
|
9541
9541
|
let calls = 0;
|
|
9542
9542
|
const images = [];
|
|
@@ -10356,7 +10356,7 @@ var docImportFile = defineCommand({
|
|
|
10356
10356
|
const file = new File([body], args.name);
|
|
10357
10357
|
if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
|
|
10358
10358
|
const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
|
|
10359
|
-
import("./plugin-import-
|
|
10359
|
+
import("./plugin-import-L4VRMXH4.js"),
|
|
10360
10360
|
import("./import-merge-KVTO4W42.js")
|
|
10361
10361
|
]);
|
|
10362
10362
|
const built = await buildImportedDocument(file);
|
|
@@ -59,19 +59,19 @@ async function renderDocument(doc, nodeIds, options) {
|
|
|
59
59
|
function generateCapability(ctx) {
|
|
60
60
|
return async (prompt, options = {}) => {
|
|
61
61
|
if (options.format === "audio") {
|
|
62
|
-
const { requestAudio } = await import("./client-
|
|
62
|
+
const { requestAudio } = await import("./client-W7KY2MDL.js");
|
|
63
63
|
const { signal: signal2, format: _f, ...rest2 } = options;
|
|
64
64
|
void _f;
|
|
65
65
|
return requestAudio({ prompt, ...rest2 }, signal2 ?? ctx.signal);
|
|
66
66
|
}
|
|
67
67
|
if (options.format === "video") {
|
|
68
|
-
const { generateVideoFile } = await import("./generate-media-
|
|
68
|
+
const { generateVideoFile } = await import("./generate-media-WKOJW77N.js");
|
|
69
69
|
const { format: _f, signal: signal2, ...rest2 } = options;
|
|
70
70
|
void _f;
|
|
71
71
|
return generateVideoFile({ ...rest2, prompt, doc: ctx.doc() }, { signal: signal2 ?? ctx.signal });
|
|
72
72
|
}
|
|
73
73
|
const [{ requestImage }, { effectiveImageModel, useAiStore }] = await Promise.all([
|
|
74
|
-
import("./client-
|
|
74
|
+
import("./client-W7KY2MDL.js"),
|
|
75
75
|
import("./client-store-V6YXN7XC.js")
|
|
76
76
|
]);
|
|
77
77
|
const modelId = effectiveImageModel(useAiStore.getState());
|
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
} from "./chunk-4UQLA7H3.js";
|
|
21
21
|
import {
|
|
22
22
|
notice
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-L7QWW6HM.js";
|
|
24
24
|
import {
|
|
25
25
|
agentContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4SF5THOZ.js";
|
|
27
27
|
import {
|
|
28
28
|
collabSession,
|
|
29
29
|
syncStatus
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OFVGA322.js";
|
|
31
31
|
import {
|
|
32
32
|
loadEntitlements
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3MQH3YUB.js";
|
|
34
34
|
import {
|
|
35
35
|
cloudApi
|
|
36
36
|
} from "./chunk-B3Y5M33J.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-RVU4WKRT.js";
|
|
40
40
|
import {
|
|
41
41
|
useEditorStore
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-6RZACCY3.js";
|
|
43
43
|
import {
|
|
44
44
|
plansEnabled
|
|
45
45
|
} from "./chunk-ZTNA7M3C.js";
|
|
@@ -4573,7 +4573,7 @@ function createPopcornSlice(set2, get2) {
|
|
|
4573
4573
|
privateMode: false,
|
|
4574
4574
|
setPrivateMode: (on) => {
|
|
4575
4575
|
set2({ privateMode: on });
|
|
4576
|
-
void import("./presence-
|
|
4576
|
+
void import("./presence-NFDH3AMJ.js").then((m) => m.setPresencePrivate(on)).catch(() => {
|
|
4577
4577
|
});
|
|
4578
4578
|
},
|
|
4579
4579
|
/** 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-QJUCLUI2.js");
|
|
6630
6630
|
return duplicateDocumentToCloud(id);
|
|
6631
6631
|
},
|
|
6632
6632
|
deleteDocument: async (id) => {
|
|
@@ -10078,9 +10078,9 @@ if (typeof window !== "undefined") {
|
|
|
10078
10078
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10079
10079
|
window.__vpDesign = async (script, o = {}) => {
|
|
10080
10080
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10081
|
-
import("./tools-
|
|
10082
|
-
import("./editor-seams-
|
|
10083
|
-
import("./live-
|
|
10081
|
+
import("./tools-UPRIE2WU.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-IIVGBVX5.js")).registerBuiltinTools })),
|
|
10082
|
+
import("./editor-seams-2SB43CII.js"),
|
|
10083
|
+
import("./live-EKNCRVVY.js")
|
|
10084
10084
|
]);
|
|
10085
10085
|
registerBuiltinTools();
|
|
10086
10086
|
const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
|
|
@@ -6,13 +6,13 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
pluginRun
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NWLJD3DK.js";
|
|
10
10
|
import {
|
|
11
11
|
fileCommands,
|
|
12
12
|
integrationConfirmCommands,
|
|
13
13
|
mediaDelete,
|
|
14
14
|
publishCommands
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3XXM6XDR.js";
|
|
16
16
|
import {
|
|
17
17
|
external_exports
|
|
18
18
|
} from "./chunk-EZVFNLBJ.js";
|
|
@@ -54,7 +54,7 @@ var collabSetSpotlight = defineCommand({
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
run: async ({ on }, ctx) => {
|
|
57
|
-
const { setSpotlight } = await import("./presence-
|
|
57
|
+
const { setSpotlight } = await import("./presence-NFDH3AMJ.js");
|
|
58
58
|
setSpotlight(on);
|
|
59
59
|
ctx.notice(on ? "Spotlight on \u2014 everyone is following this view." : "Spotlight off.");
|
|
60
60
|
return { summary: on ? "Spotlight on" : "Spotlight off", data: { spotlight: on } };
|
|
@@ -81,7 +81,7 @@ var collabRevealPrivate = defineCommand({
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
run: async (_p, ctx) => {
|
|
84
|
-
const { useEditorStore } = await import("./editor-store-
|
|
84
|
+
const { useEditorStore } = await import("./editor-store-5N3IDKSV.js");
|
|
85
85
|
const before = Object.values(useEditorStore.getState().document.nodes).filter((n) => n.privateTo).length;
|
|
86
86
|
useEditorStore.getState().revealPrivate();
|
|
87
87
|
ctx.notice(before ? `Revealed ${before} private item${before === 1 ? "" : "s"}.` : "Nothing was private.");
|
|
@@ -145,7 +145,7 @@ var documentDelete = defineCommand({
|
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
run: async ({ id }, ctx) => {
|
|
148
|
-
const { useEditorStore } = await import("./editor-store-
|
|
148
|
+
const { useEditorStore } = await import("./editor-store-5N3IDKSV.js");
|
|
149
149
|
const wasOpen = useEditorStore.getState().document.id === id;
|
|
150
150
|
await useEditorStore.getState().deleteDocument(id);
|
|
151
151
|
ctx.notice("Deleted the document.");
|
|
@@ -189,7 +189,7 @@ var libraryPublish = defineCommand({
|
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
run: async (p, ctx) => {
|
|
192
|
-
const { publishLibrary } = await import("./libraries-
|
|
192
|
+
const { publishLibrary } = await import("./libraries-QWD4YDNK.js");
|
|
193
193
|
const doc = ctx.doc();
|
|
194
194
|
const pick = {
|
|
195
195
|
componentIds: p.componentIds ?? Object.keys(doc.components ?? {}),
|
|
@@ -221,7 +221,7 @@ var libraryUnpublish = defineCommand({
|
|
|
221
221
|
},
|
|
222
222
|
run: async ({ libraryId }, ctx) => {
|
|
223
223
|
if (!libraryId.trim()) throw new CommandError("Which library? Pass its `libraryId`.", "invalid_params");
|
|
224
|
-
const { unpublishLibrary } = await import("./libraries-
|
|
224
|
+
const { unpublishLibrary } = await import("./libraries-QWD4YDNK.js");
|
|
225
225
|
await unpublishLibrary(libraryId);
|
|
226
226
|
ctx.notice(`Unpublished library ${libraryId}.`);
|
|
227
227
|
return { summary: `Unpublished library ${libraryId}`, data: { libraryId, unpublished: true } };
|
|
@@ -233,8 +233,8 @@ var libraryCommands = [libraryPublish, libraryUnpublish];
|
|
|
233
233
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
234
234
|
async function findVersion(id) {
|
|
235
235
|
const [{ useEditorStore }, { versionLabel }] = await Promise.all([
|
|
236
|
-
import("./editor-store-
|
|
237
|
-
import("./versions-
|
|
236
|
+
import("./editor-store-5N3IDKSV.js"),
|
|
237
|
+
import("./versions-WCJKEPCB.js")
|
|
238
238
|
]);
|
|
239
239
|
const meta = useEditorStore.getState().versions.find((v) => v.id === id);
|
|
240
240
|
if (!meta) {
|
|
@@ -267,7 +267,7 @@ var versionRestore = defineCommand({
|
|
|
267
267
|
},
|
|
268
268
|
run: async ({ id }) => {
|
|
269
269
|
const found = await findVersion(id);
|
|
270
|
-
const { restoreVersion } = await import("./versions-
|
|
270
|
+
const { restoreVersion } = await import("./versions-WCJKEPCB.js");
|
|
271
271
|
await restoreVersion(found.meta);
|
|
272
272
|
return { summary: `Restored \u201C${found.label}\u201D`, data: { id, label: found.label, restored: true } };
|
|
273
273
|
}
|
|
@@ -292,7 +292,7 @@ var versionDelete = defineCommand({
|
|
|
292
292
|
},
|
|
293
293
|
run: async ({ id }, ctx) => {
|
|
294
294
|
const found = await findVersion(id);
|
|
295
|
-
const { deleteVersion } = await import("./versions-
|
|
295
|
+
const { deleteVersion } = await import("./versions-WCJKEPCB.js");
|
|
296
296
|
await deleteVersion(found.meta);
|
|
297
297
|
ctx.notice(`Deleted the version \u201C${found.label}\u201D.`);
|
|
298
298
|
return { summary: `Deleted the version \u201C${found.label}\u201D`, data: { id, label: found.label, deleted: true } };
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
needsSelection,
|
|
9
9
|
pageGo,
|
|
10
10
|
selectionIsPicture
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3XXM6XDR.js";
|
|
12
12
|
import {
|
|
13
13
|
external_exports
|
|
14
14
|
} from "./chunk-EZVFNLBJ.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-5N3IDKSV.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({
|
|
@@ -209,7 +209,7 @@ var aiOpen = defineCommand({
|
|
|
209
209
|
] } },
|
|
210
210
|
run: async ({ dialog, skillId }) => {
|
|
211
211
|
if (dialog) (await import("./client-store-V6YXN7XC.js")).openAiDialog(dialog);
|
|
212
|
-
else (await import("./store-
|
|
212
|
+
else (await import("./store-XKT5YENL.js")).openAgentPanel({ skillId: skillId ?? null });
|
|
213
213
|
return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
|
|
214
214
|
}
|
|
215
215
|
});
|
|
@@ -288,11 +288,11 @@ var toolPlace = defineCommand({
|
|
|
288
288
|
run: async ({ what }) => {
|
|
289
289
|
if (what === "media") {
|
|
290
290
|
const s = await store();
|
|
291
|
-
const { placeMediaFromPicker } = await import("./media-tool-
|
|
291
|
+
const { placeMediaFromPicker } = await import("./media-tool-SZRZRPP2.js");
|
|
292
292
|
await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
|
|
293
293
|
return { summary: "Placing media" };
|
|
294
294
|
}
|
|
295
|
-
const { beginEyedrop } = await import("./eyedropper-
|
|
295
|
+
const { beginEyedrop } = await import("./eyedropper-GEDFKE75.js");
|
|
296
296
|
void beginEyedrop();
|
|
297
297
|
return { summary: "Pick a color" };
|
|
298
298
|
}
|
|
@@ -310,7 +310,7 @@ var nodeRasterize = defineCommand({
|
|
|
310
310
|
keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
|
|
311
311
|
} },
|
|
312
312
|
run: async () => {
|
|
313
|
-
const { flattenSelectionToPaintLayer } = await import("./raster-actions-
|
|
313
|
+
const { flattenSelectionToPaintLayer } = await import("./raster-actions-EGFOIFE6.js");
|
|
314
314
|
await flattenSelectionToPaintLayer();
|
|
315
315
|
return { summary: "Rasterized" };
|
|
316
316
|
}
|
|
@@ -421,7 +421,7 @@ function pluginCommand(plugins) {
|
|
|
421
421
|
params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
|
|
422
422
|
expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
|
|
423
423
|
run: async ({ pluginId, commandId }) => {
|
|
424
|
-
await (await import("./host-
|
|
424
|
+
await (await import("./host-FJ2MA2MA.js")).runPlugin(pluginId, commandId);
|
|
425
425
|
return { summary: "Plugin started" };
|
|
426
426
|
}
|
|
427
427
|
});
|
|
@@ -140,7 +140,7 @@ function startHyperyTeams() {
|
|
|
140
140
|
maybePromptForTeam();
|
|
141
141
|
void followFileTeam(linkedKey);
|
|
142
142
|
});
|
|
143
|
-
void import("./sync-
|
|
143
|
+
void import("./sync-QJUCLUI2.js").then(({ onSyncStatus, syncStatus }) => {
|
|
144
144
|
linkedKey = syncStatus().link?.key ?? null;
|
|
145
145
|
void followFileTeam(linkedKey);
|
|
146
146
|
onSyncStatus((_s, link) => {
|