@popcraft/kit 0.53.3 → 0.53.4
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-DVKYZ5MR.js → agent-TFP6TVFB.js} +1 -1
- package/dist/chunks/{builtin-VDSMLZXH.js → builtin-3CGPTNXY.js} +3 -3
- package/dist/chunks/{buy-credits-424PQFK4.js → buy-credits-NOGZQSWW.js} +2 -2
- package/dist/chunks/{check-template-E5WVEJ54.js → check-template-RS3UCUQY.js} +2 -2
- package/dist/chunks/{chunk-4SD7TX7R.js → chunk-2S3CK5D5.js} +11 -11
- package/dist/chunks/{chunk-FJSJT5ZM.js → chunk-3Q5PJGIH.js} +3 -3
- package/dist/chunks/{chunk-5SVFCWRP.js → chunk-53D6GE55.js} +5 -5
- package/dist/chunks/{chunk-ZLHMVVTT.js → chunk-5WFPJKU2.js} +1 -1
- package/dist/chunks/{chunk-ODM6DFGO.js → chunk-6N6H2UTK.js} +4 -4
- package/dist/chunks/{chunk-7IH7U6KU.js → chunk-A5YDZ5XZ.js} +4 -4
- package/dist/chunks/{chunk-MQ73SYLV.js → chunk-BNOKQXO7.js} +3 -3
- package/dist/chunks/{chunk-JOUHQ5HK.js → chunk-BO5PL232.js} +1 -1
- package/dist/chunks/{chunk-ZPETEA54.js → chunk-IKJYY6Z6.js} +42 -42
- package/dist/chunks/{chunk-FMWUXVVS.js → chunk-KNX2GNJW.js} +1 -1
- package/dist/chunks/{chunk-VYWXAGEE.js → chunk-QIHWXLAJ.js} +5 -5
- package/dist/chunks/{chunk-6HQI4NQA.js → chunk-ROTVMOEG.js} +2 -2
- package/dist/chunks/{chunk-4SPJEVG6.js → chunk-RYHIYN6C.js} +4 -4
- package/dist/chunks/{chunk-NQPNGZ3C.js → chunk-T6FTHKK6.js} +2 -2
- package/dist/chunks/{chunk-524RSKF3.js → chunk-UNELCDAZ.js} +1 -1
- package/dist/chunks/{chunk-UPLMAXNQ.js → chunk-WMGGQIXP.js} +1 -1
- package/dist/chunks/{chunk-777OZHEF.js → chunk-XMGE3OAL.js} +9 -9
- package/dist/chunks/{chunk-W5KNQERV.js → chunk-ZRL3KFXC.js} +2 -2
- package/dist/chunks/{chunk-Q23DL77U.js → chunk-ZRONJTLS.js} +2 -2
- package/dist/chunks/{client-6XOD422W.js → client-EL5UMAYF.js} +2 -2
- package/dist/chunks/{client-NOHRL7S3.js → client-HIOLQ34E.js} +3 -3
- package/dist/chunks/{client-2L4XUPQN.js → client-MYYXEPL2.js} +1 -1
- package/dist/chunks/{client-actions-K54NVVVW.js → client-actions-THJILN5X.js} +5 -5
- package/dist/chunks/{dangerous-4QU6QUOD.js → dangerous-NVPM5SVJ.js} +3 -3
- package/dist/chunks/{delete-current-file-RMINS2BA.js → delete-current-file-FRA6YXPH.js} +5 -5
- package/dist/chunks/{editor-seams-SW67BCBW.js → editor-seams-SVUE56R2.js} +10 -10
- package/dist/chunks/{editor-store-WPRQJL2A.js → editor-store-FNAFDKST.js} +1 -1
- package/dist/chunks/{export-watermark-2QVKO7OR.js → export-watermark-7Q3ABNS7.js} +5 -5
- package/dist/chunks/{eyedropper-WCIR6LL5.js → eyedropper-EZQ5KIO3.js} +1 -1
- package/dist/chunks/{generate-media-WCNTS5OY.js → generate-media-7NWHA6F5.js} +3 -3
- package/dist/chunks/{host-GLRRFC2S.js → host-PEOFHUBU.js} +6 -6
- package/dist/chunks/{integrations-5I6DGN6S.js → integrations-2WLRYJNT.js} +1 -1
- package/dist/chunks/{libraries-INCBCGOZ.js → libraries-OKUKUYXY.js} +5 -5
- package/dist/chunks/{live-SGBLJFAC.js → live-5IRGOGLI.js} +1 -1
- package/dist/chunks/{media-tool-KSXO2AAJ.js → media-tool-5YCZR3I4.js} +1 -1
- package/dist/chunks/{new-file-56ACDQ35.js → new-file-452KWJA3.js} +3 -3
- package/dist/chunks/{plugin-GJXXN4UQ.js → plugin-NBKCIYEM.js} +2 -2
- package/dist/chunks/{plugin-import-N2J7NVET.js → plugin-import-GRR363KX.js} +14 -14
- package/dist/chunks/{presence-S6FAMSP4.js → presence-OWHZESUG.js} +2 -2
- package/dist/chunks/{project-IH23X2UG.js → project-BP5PLCKJ.js} +1 -1
- package/dist/chunks/{publish-site-7YFHE7PV.js → publish-site-MQDMD6CP.js} +6 -6
- package/dist/chunks/{publish-store-I3NKMHZK.js → publish-store-7RBMG4MW.js} +4 -4
- package/dist/chunks/{raster-actions-PRMIAQQ7.js → raster-actions-LTQUOMVO.js} +1 -1
- package/dist/chunks/{runner-OVYUXA4W.js → runner-DCWBLXVG.js} +17 -17
- package/dist/chunks/{store-BYSDY5PO.js → store-KMW7YRR5.js} +6 -6
- package/dist/chunks/{sync-TFB3VWFP.js → sync-W45RDM4R.js} +5 -5
- package/dist/chunks/{tabs-CNE4XGIM.js → tabs-HZNDAK3V.js} +8 -8
- package/dist/chunks/{team-DFOKEFOE.js → team-CWRUXW3A.js} +1 -1
- package/dist/chunks/{team-client-QHRXYUPI.js → team-client-ABNFDYIJ.js} +1 -1
- package/dist/chunks/{tools-YDR7QIHQ.js → tools-2EVZOZ24.js} +2 -2
- package/dist/chunks/{ui-commands-HB4FFFXA.js → ui-commands-KXAMRX3J.js} +12 -12
- package/dist/chunks/{versions-G4PGAFLF.js → versions-7GKOKZGW.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -873,7 +873,7 @@ init_scene_graph();
|
|
|
873
873
|
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.");
|
|
874
874
|
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 });
|
|
875
875
|
async function placeImportedPicture(ctx, imported, at, what, extra = {}) {
|
|
876
|
-
const client = await import("./client-
|
|
876
|
+
const client = await import("./client-MYYXEPL2.js");
|
|
877
877
|
if (at.fillLayerId) {
|
|
878
878
|
const doc2 = ctx.doc();
|
|
879
879
|
const target = nodeOrThrow(doc2, at.fillLayerId);
|
|
@@ -919,7 +919,7 @@ var photoSearch = defineCommand({
|
|
|
919
919
|
}
|
|
920
920
|
},
|
|
921
921
|
run: async (args) => {
|
|
922
|
-
const { searchStockPhotos } = await import("./client-
|
|
922
|
+
const { searchStockPhotos } = await import("./client-MYYXEPL2.js");
|
|
923
923
|
const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
|
|
924
924
|
return {
|
|
925
925
|
summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
|
|
@@ -953,7 +953,7 @@ var photoInsert = defineCommand({
|
|
|
953
953
|
run: async (args, ctx) => {
|
|
954
954
|
if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
|
|
955
955
|
if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
|
|
956
|
-
const client = await import("./client-
|
|
956
|
+
const client = await import("./client-MYYXEPL2.js");
|
|
957
957
|
let photo;
|
|
958
958
|
if (args.id) photo = await client.stockPhotoInfo(args.id);
|
|
959
959
|
else {
|
|
@@ -991,10 +991,10 @@ var mediaList = defineCommand({
|
|
|
991
991
|
}
|
|
992
992
|
},
|
|
993
993
|
run: async (args) => {
|
|
994
|
-
const { listLibraryMedia } = await import("./client-
|
|
994
|
+
const { listLibraryMedia } = await import("./client-EL5UMAYF.js");
|
|
995
995
|
const q = { ...args };
|
|
996
996
|
if (!q.workspace) {
|
|
997
|
-
const { syncStatus } = await import("./sync-
|
|
997
|
+
const { syncStatus } = await import("./sync-W45RDM4R.js");
|
|
998
998
|
const link2 = syncStatus().link;
|
|
999
999
|
if (!link2) throw new ToolError("This document is not saved to the cloud, so it has no team media library. Pass workspace.");
|
|
1000
1000
|
q.workspace = (await listLibraryMedia({ file: link2.key, limit: 1 })).workspaceId;
|
|
@@ -1029,7 +1029,7 @@ var mediaInsert = defineCommand({
|
|
|
1029
1029
|
run: async (args, ctx) => {
|
|
1030
1030
|
const contentType = args.contentType ?? "image/*";
|
|
1031
1031
|
if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
|
|
1032
|
-
const { importLibraryPicture } = await import("./client-
|
|
1032
|
+
const { importLibraryPicture } = await import("./client-EL5UMAYF.js");
|
|
1033
1033
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
|
|
1034
1034
|
const imported = await importLibraryPicture(item);
|
|
1035
1035
|
return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
|
|
@@ -1050,7 +1050,7 @@ var mediaDownload = defineCommand({
|
|
|
1050
1050
|
// The Library's right-click menu: saves the item's file to the computer.
|
|
1051
1051
|
expose: { ui: { label: "Download", palette: false } },
|
|
1052
1052
|
run: async (args) => {
|
|
1053
|
-
const { libraryBlob, libraryFileName } = await import("./client-
|
|
1053
|
+
const { libraryBlob, libraryFileName } = await import("./client-EL5UMAYF.js");
|
|
1054
1054
|
const { downloadBlob } = await import("./download-YRHNMQPH.js");
|
|
1055
1055
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
|
|
1056
1056
|
const blob = await libraryBlob(item);
|
|
@@ -1081,7 +1081,7 @@ var mediaDelete = defineCommand({
|
|
|
1081
1081
|
}
|
|
1082
1082
|
},
|
|
1083
1083
|
run: async (args) => {
|
|
1084
|
-
const { deleteLibraryMedia } = await import("./client-
|
|
1084
|
+
const { deleteLibraryMedia } = await import("./client-EL5UMAYF.js");
|
|
1085
1085
|
const out = await deleteLibraryMedia(args.workspace, args.hash);
|
|
1086
1086
|
return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
|
|
1087
1087
|
}
|
|
@@ -1095,13 +1095,13 @@ async function signedIn() {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
async function publishedFile() {
|
|
1097
1097
|
await signedIn();
|
|
1098
|
-
const { openFileKey } = await import("./publish-site-
|
|
1098
|
+
const { openFileKey } = await import("./publish-site-MQDMD6CP.js");
|
|
1099
1099
|
const key = openFileKey();
|
|
1100
1100
|
if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
|
|
1101
1101
|
return key;
|
|
1102
1102
|
}
|
|
1103
1103
|
async function formsWithoutDatabase(key) {
|
|
1104
|
-
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-
|
|
1104
|
+
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-FNAFDKST.js"), import("./backend-Q4FQVKIS.js"), import("./integrations-2WLRYJNT.js")]);
|
|
1105
1105
|
const doc2 = useEditorStore.getState().document;
|
|
1106
1106
|
if (!usesForms(doc2)) return false;
|
|
1107
1107
|
return formsGoNowhere(doc2, await siteBackend(key).catch(() => void 0));
|
|
@@ -1137,7 +1137,7 @@ var publishSite = defineCommand({
|
|
|
1137
1137
|
const { cleanSlug } = await import("./rules-QWGSAJAE.js");
|
|
1138
1138
|
const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
|
|
1139
1139
|
if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
|
|
1140
|
-
const { publishOpenFile, NoScreens } = await import("./publish-site-
|
|
1140
|
+
const { publishOpenFile, NoScreens } = await import("./publish-site-MQDMD6CP.js");
|
|
1141
1141
|
try {
|
|
1142
1142
|
const done = await publishOpenFile(address);
|
|
1143
1143
|
ctx.notice(`Published version ${done.version}: ${done.url}`);
|
|
@@ -1192,7 +1192,7 @@ var publishListSites = defineCommand({
|
|
|
1192
1192
|
},
|
|
1193
1193
|
run: async (p) => {
|
|
1194
1194
|
await signedIn();
|
|
1195
|
-
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-L6JYZ4SV.js"), import("./team-
|
|
1195
|
+
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-L6JYZ4SV.js"), import("./team-CWRUXW3A.js")]);
|
|
1196
1196
|
const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
|
|
1197
1197
|
if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
|
|
1198
1198
|
const out = await workspaceSites(workspaceId);
|
|
@@ -1241,12 +1241,12 @@ var publishStatus = defineCommand({
|
|
|
1241
1241
|
},
|
|
1242
1242
|
run: async () => {
|
|
1243
1243
|
await signedIn();
|
|
1244
|
-
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-
|
|
1244
|
+
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-MQDMD6CP.js"), import("./sites-L6JYZ4SV.js")]);
|
|
1245
1245
|
const key = openFileKey();
|
|
1246
1246
|
const status = await siteStatus(key);
|
|
1247
1247
|
const site = status.site;
|
|
1248
|
-
const backend = key ? await (await import("./integrations-
|
|
1249
|
-
const destinations = key ? await (await import("./integrations-
|
|
1248
|
+
const backend = key ? await (await import("./integrations-2WLRYJNT.js")).siteBackend(key).catch(() => null) : null;
|
|
1249
|
+
const destinations = key ? await (await import("./integrations-2WLRYJNT.js")).listDestinations(key).catch(() => []) : [];
|
|
1250
1250
|
return {
|
|
1251
1251
|
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}`,
|
|
1252
1252
|
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 })) }
|
|
@@ -1277,7 +1277,7 @@ var publishStore = defineCommand({
|
|
|
1277
1277
|
},
|
|
1278
1278
|
run: async (p, ctx) => {
|
|
1279
1279
|
await signedIn();
|
|
1280
|
-
const { deployOpenStore } = await import("./publish-store-
|
|
1280
|
+
const { deployOpenStore } = await import("./publish-store-7RBMG4MW.js");
|
|
1281
1281
|
const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
|
|
1282
1282
|
throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
|
|
1283
1283
|
});
|
|
@@ -1306,7 +1306,7 @@ var integrationList = defineCommand({
|
|
|
1306
1306
|
}
|
|
1307
1307
|
},
|
|
1308
1308
|
run: async ({ capability }) => {
|
|
1309
|
-
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-QE4TAG7G.js"), import("./integrations-
|
|
1309
|
+
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-QE4TAG7G.js"), import("./integrations-2WLRYJNT.js")]);
|
|
1310
1310
|
if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
|
|
1311
1311
|
const workspaceId = integrationsWorkspaceId();
|
|
1312
1312
|
if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
|
|
@@ -1347,7 +1347,7 @@ var integrationOpen = defineCommand({
|
|
|
1347
1347
|
}
|
|
1348
1348
|
});
|
|
1349
1349
|
async function openFile() {
|
|
1350
|
-
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-QE4TAG7G.js"), import("./publish-site-
|
|
1350
|
+
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-QE4TAG7G.js"), import("./publish-site-MQDMD6CP.js")]);
|
|
1351
1351
|
if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
|
|
1352
1352
|
const key = openFileKey();
|
|
1353
1353
|
if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
|
|
@@ -1373,7 +1373,7 @@ var integrationListResources = defineCommand({
|
|
|
1373
1373
|
}
|
|
1374
1374
|
},
|
|
1375
1375
|
run: async ({ connectionId, capability, path }) => {
|
|
1376
|
-
const { listResources } = await import("./integrations-
|
|
1376
|
+
const { listResources } = await import("./integrations-2WLRYJNT.js");
|
|
1377
1377
|
const list = await listResources(connectionId, capability, asPath2(path));
|
|
1378
1378
|
return {
|
|
1379
1379
|
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",
|
|
@@ -1408,7 +1408,7 @@ var integrationAddDestination = defineCommand({
|
|
|
1408
1408
|
},
|
|
1409
1409
|
run: async (p, ctx) => {
|
|
1410
1410
|
const key = await openFile();
|
|
1411
|
-
const { addDestination, createDestination, createResource } = await import("./integrations-
|
|
1411
|
+
const { addDestination, createDestination, createResource } = await import("./integrations-2WLRYJNT.js");
|
|
1412
1412
|
let made;
|
|
1413
1413
|
if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
|
|
1414
1414
|
else {
|
|
@@ -1445,7 +1445,7 @@ var integrationDeploy = defineCommand({
|
|
|
1445
1445
|
},
|
|
1446
1446
|
run: async (p, ctx) => {
|
|
1447
1447
|
const key = await openFile();
|
|
1448
|
-
const { deployDestination, listDestinations } = await import("./integrations-
|
|
1448
|
+
const { deployDestination, listDestinations } = await import("./integrations-2WLRYJNT.js");
|
|
1449
1449
|
const all = await listDestinations(key);
|
|
1450
1450
|
const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
|
|
1451
1451
|
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");
|
|
@@ -1479,7 +1479,7 @@ var integrationAttachDatabase = defineCommand({
|
|
|
1479
1479
|
},
|
|
1480
1480
|
run: async (p, ctx) => {
|
|
1481
1481
|
const key = await openFile();
|
|
1482
|
-
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-
|
|
1482
|
+
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-2WLRYJNT.js");
|
|
1483
1483
|
if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
|
|
1484
1484
|
if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
|
|
1485
1485
|
let target = asPath2(p.target);
|
|
@@ -1518,7 +1518,7 @@ var integrationSubmissions = defineCommand({
|
|
|
1518
1518
|
},
|
|
1519
1519
|
run: async ({ form, limit }) => {
|
|
1520
1520
|
const key = await openFile();
|
|
1521
|
-
const { listSubmissions } = await import("./integrations-
|
|
1521
|
+
const { listSubmissions } = await import("./integrations-2WLRYJNT.js");
|
|
1522
1522
|
const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
|
|
1523
1523
|
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 } };
|
|
1524
1524
|
}
|
|
@@ -1543,7 +1543,7 @@ var integrationSetSignIn = defineCommand({
|
|
|
1543
1543
|
},
|
|
1544
1544
|
run: async ({ on }, ctx) => {
|
|
1545
1545
|
const key = await openFile();
|
|
1546
|
-
const { setSignIn } = await import("./integrations-
|
|
1546
|
+
const { setSignIn } = await import("./integrations-2WLRYJNT.js");
|
|
1547
1547
|
const done = await setSignIn(key, on);
|
|
1548
1548
|
ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
|
|
1549
1549
|
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 } };
|
|
@@ -1761,7 +1761,7 @@ var fontTeamList = defineCommand({
|
|
|
1761
1761
|
agent: { name: "list_team_fonts", readOnly: true, description: "The team's fonts: faces uploaded once that every file of the team can use (family, weight, style)." }
|
|
1762
1762
|
},
|
|
1763
1763
|
run: async (args) => {
|
|
1764
|
-
const { refreshTeamFonts } = await import("./team-client-
|
|
1764
|
+
const { refreshTeamFonts } = await import("./team-client-ABNFDYIJ.js");
|
|
1765
1765
|
const fonts = await refreshTeamFonts(args.workspace);
|
|
1766
1766
|
return { summary: plural(fonts.length, "team font"), data: { fonts: fonts.map((f) => ({ id: f.id, family: f.family, weight: f.weight, style: f.style, face: f.face, fileName: f.fileName })) } };
|
|
1767
1767
|
}
|
|
@@ -1788,7 +1788,7 @@ var fontTeamAdd = defineCommand({
|
|
|
1788
1788
|
run: async (args, ctx) => {
|
|
1789
1789
|
const { bytes, fileName: fileName2 } = await fontBytes(args, ctx);
|
|
1790
1790
|
const { face, family, weight, style } = await resolveFace(bytes, args);
|
|
1791
|
-
const { uploadTeamFont } = await import("./team-client-
|
|
1791
|
+
const { uploadTeamFont } = await import("./team-client-ABNFDYIJ.js");
|
|
1792
1792
|
const font = await uploadTeamFont(bytes, { family, weight, style, face: face.index, fileName: fileName2 }, args.workspace);
|
|
1793
1793
|
return { summary: `Added ${family} ${weight}${style === "italic" ? " italic" : ""} to the team`, data: { font } };
|
|
1794
1794
|
}
|
|
@@ -1810,7 +1810,7 @@ var fontTeamRemove = defineCommand({
|
|
|
1810
1810
|
agent: { name: "remove_team_font", description: "Remove a font from the team (list_team_fonts). Files that use it fall back to another font unless they carry it themselves. The user approves every call." }
|
|
1811
1811
|
},
|
|
1812
1812
|
run: async (args) => {
|
|
1813
|
-
const { removeTeamFont } = await import("./team-client-
|
|
1813
|
+
const { removeTeamFont } = await import("./team-client-ABNFDYIJ.js");
|
|
1814
1814
|
const out = await removeTeamFont(args.id, args.workspace);
|
|
1815
1815
|
return { summary: `Removed the team font${out.freed ? " and freed its storage" : ""}`, data: out };
|
|
1816
1816
|
}
|
|
@@ -1821,7 +1821,7 @@ var fontTeamCommands = [fontTeamList, fontTeamAdd];
|
|
|
1821
1821
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1822
1822
|
async function cloudFile() {
|
|
1823
1823
|
const [{ syncStatus }, { cloudUser }] = await Promise.all([
|
|
1824
|
-
import("./sync-
|
|
1824
|
+
import("./sync-W45RDM4R.js"),
|
|
1825
1825
|
import("./session-QE4TAG7G.js")
|
|
1826
1826
|
]);
|
|
1827
1827
|
const link2 = syncStatus().link;
|
|
@@ -1883,7 +1883,7 @@ var fileTrash = defineCommand({
|
|
|
1883
1883
|
agent: { name: "trash_file", description: "Delete the open file: a cloud file goes to the Trash (restorable), a signed-out local file is deleted for good. Then the editor goes back to Home. The user approves every call." }
|
|
1884
1884
|
},
|
|
1885
1885
|
run: async () => {
|
|
1886
|
-
const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-
|
|
1886
|
+
const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-FRA6YXPH.js");
|
|
1887
1887
|
const { name: name2, kind } = await deleteCurrentFile();
|
|
1888
1888
|
leaveDeletedFile();
|
|
1889
1889
|
return { summary: kind === "cloud" ? `Moved \u201C${name2}\u201D to the Trash` : `Deleted \u201C${name2}\u201D` };
|
|
@@ -1996,11 +1996,11 @@ var fileDuplicate = defineCommand({
|
|
|
1996
1996
|
},
|
|
1997
1997
|
run: async (_p, ctx) => {
|
|
1998
1998
|
const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
|
|
1999
|
-
import("./sync-
|
|
1999
|
+
import("./sync-W45RDM4R.js"),
|
|
2000
2000
|
import("./api-7ZHHFXRP.js"),
|
|
2001
2001
|
import("./tab-mode-5ALKOT7S.js"),
|
|
2002
|
-
import("./tabs-
|
|
2003
|
-
import("./sync-
|
|
2002
|
+
import("./tabs-HZNDAK3V.js"),
|
|
2003
|
+
import("./sync-W45RDM4R.js"),
|
|
2004
2004
|
import("./dist-node-MAITLUAX.js")
|
|
2005
2005
|
]);
|
|
2006
2006
|
const doc2 = ctx.doc();
|
|
@@ -4761,7 +4761,7 @@ var viewCopyLink = defineCommand({
|
|
|
4761
4761
|
},
|
|
4762
4762
|
run: async (args, ctx) => {
|
|
4763
4763
|
const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
|
|
4764
|
-
import("./sync-
|
|
4764
|
+
import("./sync-W45RDM4R.js"),
|
|
4765
4765
|
import("./api-7ZHHFXRP.js"),
|
|
4766
4766
|
import("./deep-link-BD4WN46A.js")
|
|
4767
4767
|
]);
|
|
@@ -5086,7 +5086,7 @@ var pageGo = defineCommand({
|
|
|
5086
5086
|
] }
|
|
5087
5087
|
},
|
|
5088
5088
|
run: async ({ to }) => {
|
|
5089
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5089
|
+
const { useEditorStore } = await import("./editor-store-FNAFDKST.js");
|
|
5090
5090
|
useEditorStore.getState().goToPrintPage(to);
|
|
5091
5091
|
return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
|
|
5092
5092
|
}
|
|
@@ -5120,7 +5120,7 @@ var pageSetup = defineCommand({
|
|
|
5120
5120
|
}
|
|
5121
5121
|
},
|
|
5122
5122
|
run: async (args) => {
|
|
5123
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5123
|
+
const { useEditorStore } = await import("./editor-store-FNAFDKST.js");
|
|
5124
5124
|
useEditorStore.getState().applyPageSetup(args);
|
|
5125
5125
|
return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
|
|
5126
5126
|
}
|
|
@@ -5879,7 +5879,7 @@ async function docAtTime(doc2, ids, time2) {
|
|
|
5879
5879
|
let frameId;
|
|
5880
5880
|
if (time2 === void 0) {
|
|
5881
5881
|
try {
|
|
5882
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5882
|
+
const { useEditorStore } = await import("./editor-store-FNAFDKST.js");
|
|
5883
5883
|
const st = useEditorStore.getState();
|
|
5884
5884
|
const target = st.transport?.target;
|
|
5885
5885
|
if (st.mode !== "ANIMATE" || target?.kind !== "frame") return doc2;
|
|
@@ -6273,7 +6273,7 @@ async function runAnimationExport(format, args, ctx) {
|
|
|
6273
6273
|
const filename = exportFileName(args.filename || targetName(doc2, target), format);
|
|
6274
6274
|
const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-TWXTQTP3.js"), import("./destination-DJEJM5KM.js")]);
|
|
6275
6275
|
if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
|
|
6276
|
-
const planWatermark = format !== "png" && await (await import("./export-watermark-
|
|
6276
|
+
const planWatermark = format !== "png" && await (await import("./export-watermark-7Q3ABNS7.js")).exportWatermark();
|
|
6277
6277
|
if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
|
|
6278
6278
|
const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
|
|
6279
6279
|
let stats;
|
|
@@ -6359,7 +6359,7 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
|
|
|
6359
6359
|
});
|
|
6360
6360
|
async function exportSite(doc2, pageId2, packaging, styling = "css", siteUrl) {
|
|
6361
6361
|
const [{ completeSite, nextFilesOf, shareImageFiles, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
6362
|
-
import("./project-
|
|
6362
|
+
import("./project-BP5PLCKJ.js"),
|
|
6363
6363
|
import("./web-TDSHIXQY.js"),
|
|
6364
6364
|
import("./zip-export-ZYXDK4SM.js"),
|
|
6365
6365
|
import("./download-YRHNMQPH.js")
|
|
@@ -6453,7 +6453,7 @@ var exportStorefront = defineCommand({
|
|
|
6453
6453
|
const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
6454
6454
|
import("./storefront-prepare-6IUMZTCQ.js"),
|
|
6455
6455
|
import("./storefront-BPMM6QWK.js"),
|
|
6456
|
-
import("./project-
|
|
6456
|
+
import("./project-BP5PLCKJ.js"),
|
|
6457
6457
|
import("./web-TDSHIXQY.js"),
|
|
6458
6458
|
import("./zip-export-ZYXDK4SM.js"),
|
|
6459
6459
|
import("./download-YRHNMQPH.js")
|
|
@@ -6848,7 +6848,7 @@ var visionRegenerateImage = defineCommand({
|
|
|
6848
6848
|
const id = args.id ?? ctx.selection()[0];
|
|
6849
6849
|
if (!id) throw new ToolError("Select a generated image to regenerate.");
|
|
6850
6850
|
nodeOrThrow(ctx.doc(), id);
|
|
6851
|
-
const { regenerateImage } = await import("./client-actions-
|
|
6851
|
+
const { regenerateImage } = await import("./client-actions-THJILN5X.js");
|
|
6852
6852
|
regenerateImage(id, args.count);
|
|
6853
6853
|
return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
|
|
6854
6854
|
}
|
|
@@ -10007,7 +10007,7 @@ var scriptRun = defineCommand({
|
|
|
10007
10007
|
// A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
|
|
10008
10008
|
actor: { ...ctx.actor, nested: true, label: "Script" },
|
|
10009
10009
|
// A look_at inside the script sees the document as the script has left it so far, not as it was before.
|
|
10010
|
-
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-
|
|
10010
|
+
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-TFP6TVFB.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
|
|
10011
10011
|
};
|
|
10012
10012
|
let calls = 0;
|
|
10013
10013
|
const images = [];
|
|
@@ -10827,7 +10827,7 @@ var docImportFile = defineCommand({
|
|
|
10827
10827
|
const file = new File([body], args.name);
|
|
10828
10828
|
if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
|
|
10829
10829
|
const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
|
|
10830
|
-
import("./plugin-import-
|
|
10830
|
+
import("./plugin-import-GRR363KX.js"),
|
|
10831
10831
|
import("./import-merge-73U4J6IN.js")
|
|
10832
10832
|
]);
|
|
10833
10833
|
const built = await buildImportedDocument(file);
|
|
@@ -150,7 +150,7 @@ function startHyperyTeams() {
|
|
|
150
150
|
maybePromptForTeam();
|
|
151
151
|
void followFileTeam(linkedKey);
|
|
152
152
|
});
|
|
153
|
-
void import("./sync-
|
|
153
|
+
void import("./sync-W45RDM4R.js").then(({ onSyncStatus, syncStatus }) => {
|
|
154
154
|
linkedKey = syncStatus().link?.key ?? null;
|
|
155
155
|
void followFileTeam(linkedKey);
|
|
156
156
|
onSyncStatus((_s, link) => {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-ZYK65XJJ.js";
|
|
16
16
|
import {
|
|
17
17
|
syncStatus
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-A5YDZ5XZ.js";
|
|
19
19
|
import {
|
|
20
20
|
exportNodeToSVG
|
|
21
21
|
} from "./chunk-OWWBFGCR.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
setPluginTabs,
|
|
30
30
|
useEditorStore
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-53D6GE55.js";
|
|
32
32
|
import {
|
|
33
33
|
openBeside
|
|
34
34
|
} from "./chunk-PMLSPVLR.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-NBKCIYEM.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-452KWJA3.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-GRR363KX.js");
|
|
773
773
|
if (d.ir && typeof d.ir === "object") {
|
|
774
774
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
775
775
|
return;
|
|
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinCommands,
|
|
9
9
|
registerBuiltinCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IKJYY6Z6.js";
|
|
11
11
|
import {
|
|
12
12
|
toolView
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3Q5PJGIH.js";
|
|
14
14
|
import {
|
|
15
15
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
16
16
|
} from "./chunk-WKDVCZ45.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-LRF3JAZW.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZRONJTLS.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveChatModel,
|
|
15
15
|
setModelPref,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-A4CGHVJP.js";
|
|
18
18
|
import {
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-53D6GE55.js";
|
|
21
21
|
import {
|
|
22
22
|
create
|
|
23
23
|
} from "./chunk-QLJLPV5R.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-DCWBLXVG.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-DCWBLXVG.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);
|
|
@@ -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-FNAFDKST.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-5YCZR3I4.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);
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
needsSelection,
|
|
9
9
|
pageGo,
|
|
10
10
|
selectionIsPicture
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IKJYY6Z6.js";
|
|
12
12
|
import {
|
|
13
13
|
external_exports
|
|
14
14
|
} from "./chunk-VOOUF5TT.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-FNAFDKST.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-YTIOM3WO.js")).openPlanDialog();
|
|
168
168
|
break;
|
|
169
169
|
case "credits":
|
|
170
|
-
await (await import("./buy-credits-
|
|
170
|
+
await (await import("./buy-credits-NOGZQSWW.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-3YCO6KV5.js")).openAiDialog(dialog);
|
|
216
|
-
else (await import("./store-
|
|
216
|
+
else (await import("./store-KMW7YRR5.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-DCWBLXVG.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-5YCZR3I4.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-EZQ5KIO3.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-LTQUOMVO.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-PEOFHUBU.js")).runPlugin(pluginId, commandId);
|
|
442
442
|
return { summary: "Plugin started" };
|
|
443
443
|
}
|
|
444
444
|
});
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-7SMURRFY.js";
|
|
10
10
|
import {
|
|
11
11
|
activeTeamWorkspaceId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KNX2GNJW.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
GUEST_FILE_LIMIT,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-TZQJDYMB.js";
|
|
24
24
|
import {
|
|
25
25
|
markLibraryDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-53D6GE55.js";
|
|
27
27
|
import {
|
|
28
28
|
create
|
|
29
29
|
} from "./chunk-QLJLPV5R.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
requestImageAction,
|
|
17
17
|
sizeForAspect,
|
|
18
18
|
vectorSupport
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UNELCDAZ.js";
|
|
20
20
|
import {
|
|
21
21
|
external_exports
|
|
22
22
|
} from "./chunk-VOOUF5TT.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-3OXHJA4W.js";
|
|
32
32
|
import {
|
|
33
33
|
useEditorStore
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-53D6GE55.js";
|
|
35
35
|
import {
|
|
36
36
|
withHistoryGroup
|
|
37
37
|
} from "./chunk-76I6DIEM.js";
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
defaultMeasure,
|
|
9
9
|
placePicture
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T6FTHKK6.js";
|
|
11
11
|
import "./chunk-UCNBKWJQ.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-FNAFDKST.js"), import("./media-tool-5YCZR3I4.js")]);
|
|
125
125
|
const cam = useEditorStore.getState().camera;
|
|
126
126
|
await placeMediaFile(file, { kind: "point", ...opts.at ?? { x: cam.x, y: cam.y } });
|
|
127
127
|
return useEditorStore.getState().selection[0] ?? null;
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
requestEmbeddings,
|
|
17
17
|
requestImage,
|
|
18
18
|
requestImageAction
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-UNELCDAZ.js";
|
|
20
|
+
import "./chunk-WMGGQIXP.js";
|
|
21
21
|
import "./chunk-A4CGHVJP.js";
|
|
22
22
|
import "./chunk-7SMURRFY.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-KNX2GNJW.js";
|
|
24
24
|
import "./chunk-KWUXHRXD.js";
|
|
25
25
|
import "./chunk-3PRZ5XSZ.js";
|
|
26
26
|
import "./chunk-QLJLPV5R.js";
|