@popcraft/kit 0.55.2 → 0.55.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-FKHU27BN.js → agent-H4MB6SAO.js} +1 -1
- package/dist/chunks/{api-JUPUFV5S.js → api-WLDSRSFX.js} +1 -1
- package/dist/chunks/{builtin-J6ZGZ4XA.js → builtin-WEBXXT7A.js} +3 -3
- package/dist/chunks/{buy-credits-SONV2G3Z.js → buy-credits-OJPM3MO4.js} +4 -4
- package/dist/chunks/{check-template-UAH7O2PK.js → check-template-VTVX2V2O.js} +2 -2
- package/dist/chunks/{chunk-HZPZGSPI.js → chunk-3DK3PVRQ.js} +4 -4
- package/dist/chunks/{chunk-SYTXPXKM.js → chunk-5O2GXE33.js} +3 -3
- package/dist/chunks/{chunk-VCRMIT3U.js → chunk-A5V6RLDB.js} +1 -1
- package/dist/chunks/{chunk-7EWR3ZPW.js → chunk-AMAKZX23.js} +3 -3
- package/dist/chunks/{chunk-EYUFOLVB.js → chunk-AZUGCZN3.js} +3 -3
- package/dist/chunks/{chunk-5ESKXIOI.js → chunk-BCWYDJC6.js} +5 -5
- package/dist/chunks/{chunk-K37ABRNF.js → chunk-C6AMEANF.js} +6 -6
- package/dist/chunks/{chunk-UUVHJ4E7.js → chunk-CM7MZQLR.js} +2 -2
- package/dist/chunks/{chunk-GUFAKFYN.js → chunk-FCSL5B4G.js} +1 -1
- package/dist/chunks/{chunk-LPZSNJ6C.js → chunk-GUIW7DSC.js} +2 -2
- package/dist/chunks/{chunk-KKEUJBVB.js → chunk-IMQP3MHC.js} +2 -2
- package/dist/chunks/{chunk-6RTOG3SA.js → chunk-LUBEXKDJ.js} +12 -1
- package/dist/chunks/{chunk-TQXHOEFN.js → chunk-NW4DCD5O.js} +1 -1
- package/dist/chunks/{chunk-7AINVVFW.js → chunk-O7ETIWNG.js} +3 -3
- package/dist/chunks/{chunk-YNOGVTNE.js → chunk-PHO6X2B2.js} +11 -11
- package/dist/chunks/{chunk-WFAZNRI3.js → chunk-RKISJDWZ.js} +6 -6
- package/dist/chunks/{chunk-CUKVNWIW.js → chunk-SNE2WLUE.js} +1 -1
- package/dist/chunks/{chunk-IWE3TYKJ.js → chunk-WKOFUGDL.js} +48 -48
- package/dist/chunks/{chunk-4PUI3V2J.js → chunk-WVWXXB2M.js} +6 -6
- package/dist/chunks/{chunk-KZOHHKMB.js → chunk-YICKA742.js} +1 -1
- package/dist/chunks/{chunk-ZHANJ25S.js → chunk-YKGXSVJN.js} +9 -9
- package/dist/chunks/{chunk-DCULKNUV.js → chunk-ZIVPZ262.js} +5 -5
- package/dist/chunks/{client-ODU66HFR.js → client-JEVPLGGF.js} +3 -3
- package/dist/chunks/{client-W4KDKXJP.js → client-YMDV6MDY.js} +5 -5
- package/dist/chunks/{client-7TCGFXUH.js → client-YRR4ZH52.js} +1 -1
- package/dist/chunks/{client-actions-G23VP2LO.js → client-actions-NGQG2SBX.js} +7 -7
- package/dist/chunks/{dangerous-QHXUBTSH.js → dangerous-FHAT7SAQ.js} +3 -3
- package/dist/chunks/{delete-current-file-AC3H7FEO.js → delete-current-file-CIEAXLJD.js} +7 -7
- package/dist/chunks/{editor-seams-FWGHLGM7.js → editor-seams-MNSMUZF6.js} +12 -12
- package/dist/chunks/{editor-store-EMCLHKBR.js → editor-store-NTRUWPYO.js} +1 -1
- package/dist/chunks/{export-watermark-JXMRE46M.js → export-watermark-UVQID6Q3.js} +7 -7
- package/dist/chunks/{eyedropper-BC35FTWT.js → eyedropper-UV5UEGZF.js} +1 -1
- package/dist/chunks/{generate-media-4ZBFI25S.js → generate-media-EHBLU4ZU.js} +5 -5
- package/dist/chunks/{host-6B2GGGNE.js → host-IXHIW6S6.js} +8 -8
- package/dist/chunks/{integrations-U6UENGFR.js → integrations-VT7VMJ5S.js} +2 -2
- package/dist/chunks/{libraries-GFVTGUTZ.js → libraries-I2GMDUWH.js} +7 -7
- package/dist/chunks/{live-5D6BV5X3.js → live-XIZRCGN7.js} +1 -1
- package/dist/chunks/{media-tool-4ETLAS2Q.js → media-tool-OIIV4OCQ.js} +1 -1
- package/dist/chunks/{new-file-WLMSKM3H.js → new-file-3DSUSBAS.js} +5 -5
- package/dist/chunks/{plugin-COICIQPS.js → plugin-ETEABZQW.js} +2 -2
- package/dist/chunks/{plugin-import-NWEKZ7AJ.js → plugin-import-RUZFO3Z3.js} +16 -16
- package/dist/chunks/{presence-X6DTRNUD.js → presence-R4ULZAVE.js} +2 -2
- package/dist/chunks/{project-CQWH7QSM.js → project-W5G66BBB.js} +1 -1
- package/dist/chunks/{publish-site-R3ZTK4OM.js → publish-site-U4UDWOMX.js} +9 -9
- package/dist/chunks/{publish-store-GCNH64OY.js → publish-store-ZYYOWWEZ.js} +4 -4
- package/dist/chunks/{raster-actions-Y4ULMM53.js → raster-actions-XX6SKK7V.js} +1 -1
- package/dist/chunks/{runner-GXJMECWH.js → runner-GQCVZL2K.js} +19 -19
- package/dist/chunks/{sites-D6IA7WTP.js → sites-V3J7T6AK.js} +2 -2
- package/dist/chunks/{store-4ZBTALMW.js → store-62RBSSX6.js} +8 -8
- package/dist/chunks/{sync-VOJYNDQI.js → sync-SCX5AHQB.js} +7 -7
- package/dist/chunks/{tabs-K4MZRWKN.js → tabs-3Q45P77E.js} +10 -10
- package/dist/chunks/{team-2XBCMJUW.js → team-UMTFETUC.js} +2 -2
- package/dist/chunks/{team-client-KLTF3WFW.js → team-client-ALTJV3YG.js} +2 -2
- package/dist/chunks/{templates-CU6OBTEN.js → templates-KGGDGD2B.js} +1 -1
- package/dist/chunks/{tools-EBEDL7N6.js → tools-CHTTNUKI.js} +2 -2
- package/dist/chunks/{ui-commands-TJI7WUQ6.js → ui-commands-S22ADYXN.js} +14 -14
- package/dist/chunks/{versions-ZEEBP3V3.js → versions-FOOCCGKY.js} +7 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -904,7 +904,7 @@ init_scene_graph();
|
|
|
904
904
|
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.");
|
|
905
905
|
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 });
|
|
906
906
|
async function placeImportedPicture(ctx, imported, at2, what, extra = {}) {
|
|
907
|
-
const client = await import("./client-
|
|
907
|
+
const client = await import("./client-YRR4ZH52.js");
|
|
908
908
|
if (at2.fillLayerId) {
|
|
909
909
|
const doc2 = ctx.doc();
|
|
910
910
|
const target = nodeOrThrow(doc2, at2.fillLayerId);
|
|
@@ -950,7 +950,7 @@ var photoSearch = defineCommand({
|
|
|
950
950
|
}
|
|
951
951
|
},
|
|
952
952
|
run: async (args) => {
|
|
953
|
-
const { searchStockPhotos } = await import("./client-
|
|
953
|
+
const { searchStockPhotos } = await import("./client-YRR4ZH52.js");
|
|
954
954
|
const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
|
|
955
955
|
return {
|
|
956
956
|
summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
|
|
@@ -984,7 +984,7 @@ var photoInsert = defineCommand({
|
|
|
984
984
|
run: async (args, ctx) => {
|
|
985
985
|
if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
|
|
986
986
|
if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
|
|
987
|
-
const client = await import("./client-
|
|
987
|
+
const client = await import("./client-YRR4ZH52.js");
|
|
988
988
|
let photo;
|
|
989
989
|
if (args.id) photo = await client.stockPhotoInfo(args.id);
|
|
990
990
|
else {
|
|
@@ -1022,10 +1022,10 @@ var mediaList = defineCommand({
|
|
|
1022
1022
|
}
|
|
1023
1023
|
},
|
|
1024
1024
|
run: async (args) => {
|
|
1025
|
-
const { listLibraryMedia } = await import("./client-
|
|
1025
|
+
const { listLibraryMedia } = await import("./client-JEVPLGGF.js");
|
|
1026
1026
|
const q = { ...args };
|
|
1027
1027
|
if (!q.workspace) {
|
|
1028
|
-
const { syncStatus } = await import("./sync-
|
|
1028
|
+
const { syncStatus } = await import("./sync-SCX5AHQB.js");
|
|
1029
1029
|
const link2 = syncStatus().link;
|
|
1030
1030
|
if (!link2) throw new ToolError("This document is not saved to the cloud, so it has no team media library. Pass workspace.");
|
|
1031
1031
|
q.workspace = (await listLibraryMedia({ file: link2.key, limit: 1 })).workspaceId;
|
|
@@ -1060,7 +1060,7 @@ var mediaInsert = defineCommand({
|
|
|
1060
1060
|
run: async (args, ctx) => {
|
|
1061
1061
|
const contentType = args.contentType ?? "image/*";
|
|
1062
1062
|
if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
|
|
1063
|
-
const { importLibraryPicture } = await import("./client-
|
|
1063
|
+
const { importLibraryPicture } = await import("./client-JEVPLGGF.js");
|
|
1064
1064
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
|
|
1065
1065
|
const imported = await importLibraryPicture(item);
|
|
1066
1066
|
return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
|
|
@@ -1081,7 +1081,7 @@ var mediaDownload = defineCommand({
|
|
|
1081
1081
|
// The Library's right-click menu: saves the item's file to the computer.
|
|
1082
1082
|
expose: { ui: { label: "Download", palette: false } },
|
|
1083
1083
|
run: async (args) => {
|
|
1084
|
-
const { libraryBlob, libraryFileName } = await import("./client-
|
|
1084
|
+
const { libraryBlob, libraryFileName } = await import("./client-JEVPLGGF.js");
|
|
1085
1085
|
const { downloadBlob } = await import("./download-IAHP32Q5.js");
|
|
1086
1086
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
|
|
1087
1087
|
const blob = await libraryBlob(item);
|
|
@@ -1112,7 +1112,7 @@ var mediaDelete = defineCommand({
|
|
|
1112
1112
|
}
|
|
1113
1113
|
},
|
|
1114
1114
|
run: async (args) => {
|
|
1115
|
-
const { deleteLibraryMedia } = await import("./client-
|
|
1115
|
+
const { deleteLibraryMedia } = await import("./client-JEVPLGGF.js");
|
|
1116
1116
|
const out = await deleteLibraryMedia(args.workspace, args.hash);
|
|
1117
1117
|
return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
|
|
1118
1118
|
}
|
|
@@ -1126,13 +1126,13 @@ async function signedIn() {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
async function publishedFile() {
|
|
1128
1128
|
await signedIn();
|
|
1129
|
-
const { openFileKey } = await import("./publish-site-
|
|
1129
|
+
const { openFileKey } = await import("./publish-site-U4UDWOMX.js");
|
|
1130
1130
|
const key = openFileKey();
|
|
1131
1131
|
if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
|
|
1132
1132
|
return key;
|
|
1133
1133
|
}
|
|
1134
1134
|
async function formsWithoutDatabase(key) {
|
|
1135
|
-
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-
|
|
1135
|
+
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-NTRUWPYO.js"), import("./backend-MZBOFSI2.js"), import("./integrations-VT7VMJ5S.js")]);
|
|
1136
1136
|
const doc2 = useEditorStore.getState().document;
|
|
1137
1137
|
if (!usesForms(doc2)) return false;
|
|
1138
1138
|
return formsGoNowhere(doc2, await siteBackend(key).catch(() => void 0));
|
|
@@ -1168,7 +1168,7 @@ var publishSite = defineCommand({
|
|
|
1168
1168
|
const { cleanSlug } = await import("./rules-VD5T72ZS.js");
|
|
1169
1169
|
const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
|
|
1170
1170
|
if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
|
|
1171
|
-
const { publishOpenFile, NoScreens } = await import("./publish-site-
|
|
1171
|
+
const { publishOpenFile, NoScreens } = await import("./publish-site-U4UDWOMX.js");
|
|
1172
1172
|
try {
|
|
1173
1173
|
const done = await publishOpenFile(address);
|
|
1174
1174
|
ctx.notice(`Published version ${done.version}: ${done.url}`);
|
|
@@ -1203,7 +1203,7 @@ var publishSetVersion = defineCommand({
|
|
|
1203
1203
|
},
|
|
1204
1204
|
run: async ({ version: version2 }, ctx) => {
|
|
1205
1205
|
const key = await publishedFile();
|
|
1206
|
-
const { setSiteVersion } = await import("./sites-
|
|
1206
|
+
const { setSiteVersion } = await import("./sites-V3J7T6AK.js");
|
|
1207
1207
|
const status = await setSiteVersion(key, version2);
|
|
1208
1208
|
ctx.notice(version2 === null ? "The site is offline." : `Version ${version2} is online.`);
|
|
1209
1209
|
return { summary: version2 === null ? "Took the site offline" : `Version ${version2} is online at ${status.site?.url ?? "the site's address"}`, data: statusData(status) };
|
|
@@ -1223,7 +1223,7 @@ var publishListSites = defineCommand({
|
|
|
1223
1223
|
},
|
|
1224
1224
|
run: async (p) => {
|
|
1225
1225
|
await signedIn();
|
|
1226
|
-
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-
|
|
1226
|
+
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-V3J7T6AK.js"), import("./team-UMTFETUC.js")]);
|
|
1227
1227
|
const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
|
|
1228
1228
|
if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
|
|
1229
1229
|
const out = await workspaceSites(workspaceId);
|
|
@@ -1250,7 +1250,7 @@ var publishDeleteSite = defineCommand({
|
|
|
1250
1250
|
run: async (p, ctx) => {
|
|
1251
1251
|
const key = p.fileKey ?? await publishedFile();
|
|
1252
1252
|
await signedIn();
|
|
1253
|
-
const { deleteSite } = await import("./sites-
|
|
1253
|
+
const { deleteSite } = await import("./sites-V3J7T6AK.js");
|
|
1254
1254
|
await deleteSite(key);
|
|
1255
1255
|
ctx.notice("The website is deleted.");
|
|
1256
1256
|
return { summary: "Deleted the published website", data: { fileKey: key } };
|
|
@@ -1272,12 +1272,12 @@ var publishStatus = defineCommand({
|
|
|
1272
1272
|
},
|
|
1273
1273
|
run: async () => {
|
|
1274
1274
|
await signedIn();
|
|
1275
|
-
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-
|
|
1275
|
+
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-U4UDWOMX.js"), import("./sites-V3J7T6AK.js")]);
|
|
1276
1276
|
const key = openFileKey();
|
|
1277
1277
|
const status = await siteStatus(key);
|
|
1278
1278
|
const site = status.site;
|
|
1279
|
-
const backend = key ? await (await import("./integrations-
|
|
1280
|
-
const destinations = key ? await (await import("./integrations-
|
|
1279
|
+
const backend = key ? await (await import("./integrations-VT7VMJ5S.js")).siteBackend(key).catch(() => null) : null;
|
|
1280
|
+
const destinations = key ? await (await import("./integrations-VT7VMJ5S.js")).listDestinations(key).catch(() => []) : [];
|
|
1281
1281
|
return {
|
|
1282
1282
|
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}`,
|
|
1283
1283
|
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 })) }
|
|
@@ -1308,7 +1308,7 @@ var publishStore = defineCommand({
|
|
|
1308
1308
|
},
|
|
1309
1309
|
run: async (p, ctx) => {
|
|
1310
1310
|
await signedIn();
|
|
1311
|
-
const { deployOpenStore } = await import("./publish-store-
|
|
1311
|
+
const { deployOpenStore } = await import("./publish-store-ZYYOWWEZ.js");
|
|
1312
1312
|
const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
|
|
1313
1313
|
throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
|
|
1314
1314
|
});
|
|
@@ -1337,7 +1337,7 @@ var integrationList = defineCommand({
|
|
|
1337
1337
|
}
|
|
1338
1338
|
},
|
|
1339
1339
|
run: async ({ capability }) => {
|
|
1340
|
-
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-ZTCZUSBI.js"), import("./integrations-
|
|
1340
|
+
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-ZTCZUSBI.js"), import("./integrations-VT7VMJ5S.js")]);
|
|
1341
1341
|
if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
|
|
1342
1342
|
const workspaceId = integrationsWorkspaceId();
|
|
1343
1343
|
if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
|
|
@@ -1378,7 +1378,7 @@ var integrationOpen = defineCommand({
|
|
|
1378
1378
|
}
|
|
1379
1379
|
});
|
|
1380
1380
|
async function openFile() {
|
|
1381
|
-
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-ZTCZUSBI.js"), import("./publish-site-
|
|
1381
|
+
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-ZTCZUSBI.js"), import("./publish-site-U4UDWOMX.js")]);
|
|
1382
1382
|
if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
|
|
1383
1383
|
const key = openFileKey();
|
|
1384
1384
|
if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
|
|
@@ -1404,7 +1404,7 @@ var integrationListResources = defineCommand({
|
|
|
1404
1404
|
}
|
|
1405
1405
|
},
|
|
1406
1406
|
run: async ({ connectionId, capability, path }) => {
|
|
1407
|
-
const { listResources } = await import("./integrations-
|
|
1407
|
+
const { listResources } = await import("./integrations-VT7VMJ5S.js");
|
|
1408
1408
|
const list = await listResources(connectionId, capability, asPath2(path));
|
|
1409
1409
|
return {
|
|
1410
1410
|
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",
|
|
@@ -1439,7 +1439,7 @@ var integrationAddDestination = defineCommand({
|
|
|
1439
1439
|
},
|
|
1440
1440
|
run: async (p, ctx) => {
|
|
1441
1441
|
const key = await openFile();
|
|
1442
|
-
const { addDestination, createDestination, createResource } = await import("./integrations-
|
|
1442
|
+
const { addDestination, createDestination, createResource } = await import("./integrations-VT7VMJ5S.js");
|
|
1443
1443
|
let made;
|
|
1444
1444
|
if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
|
|
1445
1445
|
else {
|
|
@@ -1476,7 +1476,7 @@ var integrationDeploy = defineCommand({
|
|
|
1476
1476
|
},
|
|
1477
1477
|
run: async (p, ctx) => {
|
|
1478
1478
|
const key = await openFile();
|
|
1479
|
-
const { deployDestination, listDestinations } = await import("./integrations-
|
|
1479
|
+
const { deployDestination, listDestinations } = await import("./integrations-VT7VMJ5S.js");
|
|
1480
1480
|
const all = await listDestinations(key);
|
|
1481
1481
|
const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
|
|
1482
1482
|
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");
|
|
@@ -1510,7 +1510,7 @@ var integrationAttachDatabase = defineCommand({
|
|
|
1510
1510
|
},
|
|
1511
1511
|
run: async (p, ctx) => {
|
|
1512
1512
|
const key = await openFile();
|
|
1513
|
-
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-
|
|
1513
|
+
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-VT7VMJ5S.js");
|
|
1514
1514
|
if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
|
|
1515
1515
|
if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
|
|
1516
1516
|
let target = asPath2(p.target);
|
|
@@ -1549,7 +1549,7 @@ var integrationSubmissions = defineCommand({
|
|
|
1549
1549
|
},
|
|
1550
1550
|
run: async ({ form, limit }) => {
|
|
1551
1551
|
const key = await openFile();
|
|
1552
|
-
const { listSubmissions } = await import("./integrations-
|
|
1552
|
+
const { listSubmissions } = await import("./integrations-VT7VMJ5S.js");
|
|
1553
1553
|
const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
|
|
1554
1554
|
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 } };
|
|
1555
1555
|
}
|
|
@@ -1574,7 +1574,7 @@ var integrationSetSignIn = defineCommand({
|
|
|
1574
1574
|
},
|
|
1575
1575
|
run: async ({ on }, ctx) => {
|
|
1576
1576
|
const key = await openFile();
|
|
1577
|
-
const { setSignIn } = await import("./integrations-
|
|
1577
|
+
const { setSignIn } = await import("./integrations-VT7VMJ5S.js");
|
|
1578
1578
|
const done = await setSignIn(key, on);
|
|
1579
1579
|
ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
|
|
1580
1580
|
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 } };
|
|
@@ -1792,7 +1792,7 @@ var fontTeamList = defineCommand({
|
|
|
1792
1792
|
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)." }
|
|
1793
1793
|
},
|
|
1794
1794
|
run: async (args) => {
|
|
1795
|
-
const { refreshTeamFonts } = await import("./team-client-
|
|
1795
|
+
const { refreshTeamFonts } = await import("./team-client-ALTJV3YG.js");
|
|
1796
1796
|
const fonts = await refreshTeamFonts(args.workspace);
|
|
1797
1797
|
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 })) } };
|
|
1798
1798
|
}
|
|
@@ -1819,7 +1819,7 @@ var fontTeamAdd = defineCommand({
|
|
|
1819
1819
|
run: async (args, ctx) => {
|
|
1820
1820
|
const { bytes, fileName: fileName2 } = await fontBytes(args, ctx);
|
|
1821
1821
|
const { face, family, weight, style } = await resolveFace(bytes, args);
|
|
1822
|
-
const { uploadTeamFont } = await import("./team-client-
|
|
1822
|
+
const { uploadTeamFont } = await import("./team-client-ALTJV3YG.js");
|
|
1823
1823
|
const font = await uploadTeamFont(bytes, { family, weight, style, face: face.index, fileName: fileName2 }, args.workspace);
|
|
1824
1824
|
return { summary: `Added ${family} ${weight}${style === "italic" ? " italic" : ""} to the team`, data: { font } };
|
|
1825
1825
|
}
|
|
@@ -1841,7 +1841,7 @@ var fontTeamRemove = defineCommand({
|
|
|
1841
1841
|
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." }
|
|
1842
1842
|
},
|
|
1843
1843
|
run: async (args) => {
|
|
1844
|
-
const { removeTeamFont } = await import("./team-client-
|
|
1844
|
+
const { removeTeamFont } = await import("./team-client-ALTJV3YG.js");
|
|
1845
1845
|
const out = await removeTeamFont(args.id, args.workspace);
|
|
1846
1846
|
return { summary: `Removed the team font${out.freed ? " and freed its storage" : ""}`, data: out };
|
|
1847
1847
|
}
|
|
@@ -1852,7 +1852,7 @@ var fontTeamCommands = [fontTeamList, fontTeamAdd];
|
|
|
1852
1852
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1853
1853
|
async function cloudFile() {
|
|
1854
1854
|
const [{ syncStatus }, { cloudUser }] = await Promise.all([
|
|
1855
|
-
import("./sync-
|
|
1855
|
+
import("./sync-SCX5AHQB.js"),
|
|
1856
1856
|
import("./session-ZTCZUSBI.js")
|
|
1857
1857
|
]);
|
|
1858
1858
|
const link2 = syncStatus().link;
|
|
@@ -1862,13 +1862,13 @@ async function cloudFile() {
|
|
|
1862
1862
|
}
|
|
1863
1863
|
async function fileName(key) {
|
|
1864
1864
|
try {
|
|
1865
|
-
const { cloudApi } = await import("./api-
|
|
1865
|
+
const { cloudApi } = await import("./api-WLDSRSFX.js");
|
|
1866
1866
|
return (await cloudApi.getFile(key)).file.name || "Untitled";
|
|
1867
1867
|
} catch {
|
|
1868
1868
|
return "Untitled";
|
|
1869
1869
|
}
|
|
1870
1870
|
}
|
|
1871
|
-
var api = async () => (await import("./api-
|
|
1871
|
+
var api = async () => (await import("./api-WLDSRSFX.js")).cloudApi;
|
|
1872
1872
|
var FILE_ROLE = external_exports.enum(["viewer", "commenter", "editor"]);
|
|
1873
1873
|
var fileDelete = defineCommand({
|
|
1874
1874
|
id: "file.delete",
|
|
@@ -1914,7 +1914,7 @@ var fileTrash = defineCommand({
|
|
|
1914
1914
|
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." }
|
|
1915
1915
|
},
|
|
1916
1916
|
run: async () => {
|
|
1917
|
-
const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-
|
|
1917
|
+
const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-CIEAXLJD.js");
|
|
1918
1918
|
const { name: name2, kind } = await deleteCurrentFile();
|
|
1919
1919
|
leaveDeletedFile();
|
|
1920
1920
|
return { summary: kind === "cloud" ? `Moved \u201C${name2}\u201D to the Trash` : `Deleted \u201C${name2}\u201D` };
|
|
@@ -2027,11 +2027,11 @@ var fileDuplicate = defineCommand({
|
|
|
2027
2027
|
},
|
|
2028
2028
|
run: async (_p, ctx) => {
|
|
2029
2029
|
const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
|
|
2030
|
-
import("./sync-
|
|
2031
|
-
import("./api-
|
|
2030
|
+
import("./sync-SCX5AHQB.js"),
|
|
2031
|
+
import("./api-WLDSRSFX.js"),
|
|
2032
2032
|
import("./tab-mode-JUO37HWE.js"),
|
|
2033
|
-
import("./tabs-
|
|
2034
|
-
import("./sync-
|
|
2033
|
+
import("./tabs-3Q45P77E.js"),
|
|
2034
|
+
import("./sync-SCX5AHQB.js"),
|
|
2035
2035
|
import("./dist-node-RBXA53XX.js")
|
|
2036
2036
|
]);
|
|
2037
2037
|
const doc2 = ctx.doc();
|
|
@@ -4849,8 +4849,8 @@ var viewCopyLink = defineCommand({
|
|
|
4849
4849
|
},
|
|
4850
4850
|
run: async (args, ctx) => {
|
|
4851
4851
|
const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
|
|
4852
|
-
import("./sync-
|
|
4853
|
-
import("./api-
|
|
4852
|
+
import("./sync-SCX5AHQB.js"),
|
|
4853
|
+
import("./api-WLDSRSFX.js"),
|
|
4854
4854
|
import("./deep-link-AZSCPLVZ.js")
|
|
4855
4855
|
]);
|
|
4856
4856
|
const link2 = syncStatus().link;
|
|
@@ -5174,7 +5174,7 @@ var pageGo = defineCommand({
|
|
|
5174
5174
|
] }
|
|
5175
5175
|
},
|
|
5176
5176
|
run: async ({ to }) => {
|
|
5177
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5177
|
+
const { useEditorStore } = await import("./editor-store-NTRUWPYO.js");
|
|
5178
5178
|
useEditorStore.getState().goToPrintPage(to);
|
|
5179
5179
|
return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
|
|
5180
5180
|
}
|
|
@@ -5208,7 +5208,7 @@ var pageSetup = defineCommand({
|
|
|
5208
5208
|
}
|
|
5209
5209
|
},
|
|
5210
5210
|
run: async (args) => {
|
|
5211
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5211
|
+
const { useEditorStore } = await import("./editor-store-NTRUWPYO.js");
|
|
5212
5212
|
useEditorStore.getState().applyPageSetup(args);
|
|
5213
5213
|
return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
|
|
5214
5214
|
}
|
|
@@ -5646,7 +5646,7 @@ async function docAtTime(doc2, ids, time2) {
|
|
|
5646
5646
|
let frameId;
|
|
5647
5647
|
if (time2 === void 0) {
|
|
5648
5648
|
try {
|
|
5649
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5649
|
+
const { useEditorStore } = await import("./editor-store-NTRUWPYO.js");
|
|
5650
5650
|
const st = useEditorStore.getState();
|
|
5651
5651
|
const target = st.transport?.target;
|
|
5652
5652
|
if (st.mode !== "ANIMATE" || target?.kind !== "frame") return doc2;
|
|
@@ -6040,7 +6040,7 @@ async function runAnimationExport(format, args, ctx) {
|
|
|
6040
6040
|
const filename = exportFileName(args.filename || targetName(doc2, target), format);
|
|
6041
6041
|
const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-6GJVQW4X.js"), import("./destination-RF2ZSTLU.js")]);
|
|
6042
6042
|
if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
|
|
6043
|
-
const planWatermark = format !== "png" && await (await import("./export-watermark-
|
|
6043
|
+
const planWatermark = format !== "png" && await (await import("./export-watermark-UVQID6Q3.js")).exportWatermark();
|
|
6044
6044
|
if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
|
|
6045
6045
|
const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
|
|
6046
6046
|
let stats;
|
|
@@ -6126,7 +6126,7 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
|
|
|
6126
6126
|
});
|
|
6127
6127
|
async function exportSite(doc2, pageId2, packaging, styling = "css", siteUrl) {
|
|
6128
6128
|
const [{ completeSite, nextFilesOf, shareImageFiles, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
6129
|
-
import("./project-
|
|
6129
|
+
import("./project-W5G66BBB.js"),
|
|
6130
6130
|
import("./web-RD2LMTBT.js"),
|
|
6131
6131
|
import("./zip-export-MY5KVTJH.js"),
|
|
6132
6132
|
import("./download-IAHP32Q5.js")
|
|
@@ -6220,7 +6220,7 @@ var exportStorefront = defineCommand({
|
|
|
6220
6220
|
const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
6221
6221
|
import("./storefront-prepare-ORDEDJJG.js"),
|
|
6222
6222
|
import("./storefront-4Y7ZBJW5.js"),
|
|
6223
|
-
import("./project-
|
|
6223
|
+
import("./project-W5G66BBB.js"),
|
|
6224
6224
|
import("./web-RD2LMTBT.js"),
|
|
6225
6225
|
import("./zip-export-MY5KVTJH.js"),
|
|
6226
6226
|
import("./download-IAHP32Q5.js")
|
|
@@ -6615,7 +6615,7 @@ var visionRegenerateImage = defineCommand({
|
|
|
6615
6615
|
const id = args.id ?? ctx.selection()[0];
|
|
6616
6616
|
if (!id) throw new ToolError("Select a generated image to regenerate.");
|
|
6617
6617
|
nodeOrThrow(ctx.doc(), id);
|
|
6618
|
-
const { regenerateImage } = await import("./client-actions-
|
|
6618
|
+
const { regenerateImage } = await import("./client-actions-NGQG2SBX.js");
|
|
6619
6619
|
regenerateImage(id, args.count);
|
|
6620
6620
|
return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
|
|
6621
6621
|
}
|
|
@@ -10150,7 +10150,7 @@ var scriptRun = defineCommand({
|
|
|
10150
10150
|
// A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
|
|
10151
10151
|
actor: { ...ctx.actor, nested: true, label: "Script" },
|
|
10152
10152
|
// A look_at inside the script sees the document as the script has left it so far, not as it was before.
|
|
10153
|
-
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-
|
|
10153
|
+
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-H4MB6SAO.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
|
|
10154
10154
|
};
|
|
10155
10155
|
let calls = 0;
|
|
10156
10156
|
const images = [];
|
|
@@ -10970,7 +10970,7 @@ var docImportFile = defineCommand({
|
|
|
10970
10970
|
const file = new File([body], args.name);
|
|
10971
10971
|
if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
|
|
10972
10972
|
const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
|
|
10973
|
-
import("./plugin-import-
|
|
10973
|
+
import("./plugin-import-RUZFO3Z3.js"),
|
|
10974
10974
|
import("./import-merge-PBWSDPTK.js")
|
|
10975
10975
|
]);
|
|
10976
10976
|
const built = await buildImportedDocument(file);
|
|
@@ -6,13 +6,13 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
cachedLimits
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FCSL5B4G.js";
|
|
10
10
|
import {
|
|
11
11
|
prepareTemplate
|
|
12
12
|
} from "./chunk-JFK2HKMU.js";
|
|
13
13
|
import {
|
|
14
14
|
markLibraryDocument
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RKISJDWZ.js";
|
|
16
16
|
import {
|
|
17
17
|
listDocMetas,
|
|
18
18
|
saveDocSnapshot
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
} from "./chunk-UGGTR6OM.js";
|
|
24
24
|
import {
|
|
25
25
|
activeTeamWorkspaceId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AZUGCZN3.js";
|
|
27
27
|
import {
|
|
28
28
|
ApiError,
|
|
29
29
|
GUEST_FILE_LIMIT,
|
|
30
30
|
cloudApi
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-LUBEXKDJ.js";
|
|
32
32
|
import {
|
|
33
33
|
openPlanDialog
|
|
34
34
|
} from "./chunk-EFGI7YEY.js";
|
|
@@ -183,7 +183,7 @@ async function documentFromSeed(seed) {
|
|
|
183
183
|
return seed.name && seed.name !== doc.name ? { ...doc, name: seed.name } : doc;
|
|
184
184
|
}
|
|
185
185
|
let template = seed.template;
|
|
186
|
-
if (!template && seed.templateId) template = await (await import("./templates-
|
|
186
|
+
if (!template && seed.templateId) template = await (await import("./templates-KGGDGD2B.js")).fetchCloudTemplate(seed.templateId);
|
|
187
187
|
if (template) {
|
|
188
188
|
reportOpenStage("media");
|
|
189
189
|
await prepareTemplate(template);
|
|
@@ -263,7 +263,7 @@ async function createNewFile(place = {}, seed = {}) {
|
|
|
263
263
|
return result;
|
|
264
264
|
}
|
|
265
265
|
function countTemplateUse(id) {
|
|
266
|
-
void import("./api-
|
|
266
|
+
void import("./api-WLDSRSFX.js").then(({ api }) => api(`/api/templates/${encodeURIComponent(id)}/installs`, { method: "POST" })).catch(() => {
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
async function createNewFileOrExplain(place = {}, seed = {}) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
needsSelection,
|
|
9
9
|
pageGo,
|
|
10
10
|
selectionIsPicture
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WKOFUGDL.js";
|
|
12
12
|
import {
|
|
13
13
|
external_exports
|
|
14
14
|
} from "./chunk-QYE5ZBKF.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-NTRUWPYO.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-L7RIQ4CY.js")).openPlanDialog();
|
|
168
168
|
break;
|
|
169
169
|
case "credits":
|
|
170
|
-
await (await import("./buy-credits-
|
|
170
|
+
await (await import("./buy-credits-OJPM3MO4.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-QRM25DG4.js")).openAiDialog(dialog);
|
|
216
|
-
else (await import("./store-
|
|
216
|
+
else (await import("./store-62RBSSX6.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-GQCVZL2K.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-OIIV4OCQ.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-UV5UEGZF.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-XX6SKK7V.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-IXHIW6S6.js")).runPlugin(pluginId, commandId);
|
|
442
442
|
return { summary: "Plugin started" };
|
|
443
443
|
}
|
|
444
444
|
});
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
reportOpenStage,
|
|
14
14
|
setCloudLink,
|
|
15
15
|
trackOpen
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WVWXXB2M.js";
|
|
17
17
|
import {
|
|
18
18
|
parseDeepLink,
|
|
19
19
|
withDeepLink
|
|
20
20
|
} from "./chunk-IEGXDV67.js";
|
|
21
21
|
import {
|
|
22
22
|
attachPresence
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YICKA742.js";
|
|
24
24
|
import {
|
|
25
25
|
fileOpeningMode,
|
|
26
26
|
isAppleMobile,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
setCollabHistory,
|
|
34
34
|
storedDocument,
|
|
35
35
|
useEditorStore
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RKISJDWZ.js";
|
|
37
37
|
import {
|
|
38
38
|
currentHistoryGroup
|
|
39
39
|
} from "./chunk-AWH6VFF3.js";
|
|
@@ -52,12 +52,12 @@ import {
|
|
|
52
52
|
} from "./chunk-UGGTR6OM.js";
|
|
53
53
|
import {
|
|
54
54
|
activeTeamWorkspaceId
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-AZUGCZN3.js";
|
|
56
56
|
import {
|
|
57
57
|
ApiError,
|
|
58
58
|
api,
|
|
59
59
|
cloudApi
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-LUBEXKDJ.js";
|
|
61
61
|
import {
|
|
62
62
|
create
|
|
63
63
|
} from "./chunk-6WXASC7R.js";
|
|
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
defaultMeasure,
|
|
9
9
|
placePicture
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CM7MZQLR.js";
|
|
11
11
|
import "./chunk-ABPJ2NHG.js";
|
|
12
12
|
import {
|
|
13
13
|
api
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LUBEXKDJ.js";
|
|
15
15
|
import "./chunk-EFGI7YEY.js";
|
|
16
16
|
import "./chunk-6WXASC7R.js";
|
|
17
17
|
import "./chunk-YFC35RD5.js";
|
|
@@ -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-NTRUWPYO.js"), import("./media-tool-OIIV4OCQ.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,12 +16,12 @@ import {
|
|
|
16
16
|
requestEmbeddings,
|
|
17
17
|
requestImage,
|
|
18
18
|
requestImageAction
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-A5V6RLDB.js";
|
|
20
|
+
import "./chunk-AMAKZX23.js";
|
|
21
21
|
import "./chunk-QW3TASQN.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-FCSL5B4G.js";
|
|
23
|
+
import "./chunk-AZUGCZN3.js";
|
|
24
|
+
import "./chunk-LUBEXKDJ.js";
|
|
25
25
|
import "./chunk-EFGI7YEY.js";
|
|
26
26
|
import "./chunk-6WXASC7R.js";
|
|
27
27
|
import "./chunk-YFC35RD5.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
selectedVectorTarget,
|
|
17
17
|
startImageAction,
|
|
18
18
|
startImageGeneration
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IMQP3MHC.js";
|
|
20
20
|
import "./chunk-DBMGIXBJ.js";
|
|
21
21
|
import "./chunk-X22CL2VV.js";
|
|
22
22
|
import "./chunk-JATRFCW7.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-A5V6RLDB.js";
|
|
24
|
+
import "./chunk-AMAKZX23.js";
|
|
25
25
|
import "./chunk-QW3TASQN.js";
|
|
26
26
|
import "./chunk-QYE5ZBKF.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-FCSL5B4G.js";
|
|
28
28
|
import "./chunk-3EYF2YPU.js";
|
|
29
29
|
import "./chunk-IXBI6TEE.js";
|
|
30
30
|
import "./chunk-ABPJ2NHG.js";
|
|
@@ -37,7 +37,7 @@ import "./chunk-BVB25X4V.js";
|
|
|
37
37
|
import "./chunk-AJGH5OVQ.js";
|
|
38
38
|
import "./chunk-CHCYPDDU.js";
|
|
39
39
|
import "./chunk-3B45WZMG.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-RKISJDWZ.js";
|
|
41
41
|
import "./chunk-VUEGRBOY.js";
|
|
42
42
|
import "./chunk-AWH6VFF3.js";
|
|
43
43
|
import "./chunk-AIKB3LFL.js";
|
|
@@ -54,8 +54,8 @@ import "./chunk-S62ZTJAU.js";
|
|
|
54
54
|
import "./chunk-ZUR56JE7.js";
|
|
55
55
|
import "./chunk-UGGTR6OM.js";
|
|
56
56
|
import "./chunk-2XYN5MH6.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-AZUGCZN3.js";
|
|
58
|
+
import "./chunk-LUBEXKDJ.js";
|
|
59
59
|
import "./chunk-EFGI7YEY.js";
|
|
60
60
|
import "./chunk-6WXASC7R.js";
|
|
61
61
|
import "./chunk-YFC35RD5.js";
|