@popcraft/kit 0.42.4 → 0.42.5
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-U6D7QUHP.js → agent-IIZ5PDCO.js} +1 -1
- package/dist/chunks/{builtin-KWOWZKW3.js → builtin-DE64ZBRE.js} +3 -3
- package/dist/chunks/{buy-credits-4TGROJVP.js → buy-credits-OJW54QNW.js} +2 -2
- package/dist/chunks/{check-template-FDTT7PRG.js → check-template-75LYTGVW.js} +2 -2
- package/dist/chunks/{chunk-J3OQ4EF2.js → chunk-3EUOQHIN.js} +2 -2
- package/dist/chunks/{chunk-EIVWSBXW.js → chunk-4YEXUZLM.js} +2 -2
- package/dist/chunks/{chunk-YHD7GFFM.js → chunk-AYLGWK67.js} +3 -3
- package/dist/chunks/{chunk-2ST25LTS.js → chunk-E25C5V7O.js} +4 -4
- package/dist/chunks/{chunk-MQ4JN2G6.js → chunk-FXDNRH4T.js} +2 -2
- package/dist/chunks/{chunk-RDE5EFKC.js → chunk-G5Z4JJRN.js} +4 -4
- package/dist/chunks/{chunk-WF7UJLPQ.js → chunk-H3L3T37D.js} +1 -1
- package/dist/chunks/{chunk-M6BGAC3K.js → chunk-HBYGYLZ2.js} +1 -1
- package/dist/chunks/{chunk-SBJGRTZT.js → chunk-KG3ZTNV5.js} +5 -5
- package/dist/chunks/{chunk-LA6PIIQI.js → chunk-LQGDIZH4.js} +5 -5
- package/dist/chunks/{chunk-SENCX4WC.js → chunk-MFWRTUC5.js} +4 -4
- package/dist/chunks/{chunk-F2KWLMGY.js → chunk-MKKJE44L.js} +1 -1
- package/dist/chunks/{chunk-WCGU53B7.js → chunk-NS3CXWKM.js} +41 -41
- package/dist/chunks/{chunk-VWAVRILX.js → chunk-S2Y7HYWA.js} +3 -3
- package/dist/chunks/{chunk-E7BEH6EE.js → chunk-SFUJVM4T.js} +1 -1
- package/dist/chunks/{chunk-3PMXTKD4.js → chunk-URZZZUEA.js} +9 -9
- package/dist/chunks/{chunk-URH43F22.js → chunk-V7TNB2QR.js} +3 -1
- package/dist/chunks/{chunk-WKPH3XB7.js → chunk-WRYUDRTY.js} +11 -11
- package/dist/chunks/{chunk-Y63EIGT6.js → chunk-X6EOCSFH.js} +2 -2
- package/dist/chunks/{client-MBG7A5H5.js → client-575NETIC.js} +3 -3
- package/dist/chunks/{client-XNQDU3SG.js → client-NIJUU5BZ.js} +1 -1
- package/dist/chunks/{client-AUGFI7EP.js → client-VBJG3KQZ.js} +2 -2
- package/dist/chunks/{client-actions-DKD5VVZ2.js → client-actions-JFYPLS2G.js} +5 -5
- package/dist/chunks/{dangerous-MUPFWFSU.js → dangerous-US5LQFWT.js} +3 -3
- package/dist/chunks/{delete-current-file-ADQGWJXZ.js → delete-current-file-YAWHZKX5.js} +5 -5
- package/dist/chunks/{editor-seams-DIMRYLSO.js → editor-seams-WKPTSZGB.js} +10 -10
- package/dist/chunks/{editor-store-IVJ43LQ5.js → editor-store-NOCQ6TTG.js} +1 -1
- package/dist/chunks/{export-watermark-D2EZUSEH.js → export-watermark-N7HBG3VR.js} +5 -5
- package/dist/chunks/{eyedropper-75V7NJBV.js → eyedropper-VF46FE4F.js} +1 -1
- package/dist/chunks/{generate-media-T3CADU2F.js → generate-media-KNCT4NBG.js} +3 -3
- package/dist/chunks/{host-ADESAKA4.js → host-SSAXC2VC.js} +6 -6
- package/dist/chunks/{integrations-XVBQ5OLI.js → integrations-M7EU7H5L.js} +1 -1
- package/dist/chunks/{libraries-DPYA7BMS.js → libraries-LGWAG6HN.js} +5 -5
- package/dist/chunks/{live-NRY3KCQB.js → live-XTGAU3P6.js} +1 -1
- package/dist/chunks/{media-tool-JPB4UWSR.js → media-tool-FIEWJM4Y.js} +1 -1
- package/dist/chunks/{new-file-GHVDSSEI.js → new-file-OKA3K2VW.js} +3 -3
- package/dist/chunks/{plugin-DEBMIBP4.js → plugin-Z4WOZCSC.js} +2 -2
- package/dist/chunks/{plugin-import-BEYLZVNK.js → plugin-import-F63FQSNC.js} +14 -14
- package/dist/chunks/{presence-GMVUARUV.js → presence-7HWCQ7IU.js} +2 -2
- package/dist/chunks/{project-I4QE3DPC.js → project-GYZYVYKS.js} +1 -1
- package/dist/chunks/{publish-site-6PQO73KU.js → publish-site-AT3Q5ATZ.js} +6 -6
- package/dist/chunks/{publish-store-L3ZBNXVK.js → publish-store-U4ESZSBZ.js} +4 -4
- package/dist/chunks/{raster-actions-GDRPY2HP.js → raster-actions-ISLNIMQ3.js} +1 -1
- package/dist/chunks/{runner-KR7LK5NH.js → runner-ETRVYLPF.js} +17 -17
- package/dist/chunks/{store-UG4QGK7X.js → store-3JYGUCWA.js} +6 -6
- package/dist/chunks/{sync-OJDKDSTB.js → sync-7IEJNKQA.js} +5 -5
- package/dist/chunks/{tabs-XTTS2AUK.js → tabs-NVXVSF3V.js} +8 -8
- package/dist/chunks/{team-GAGK6CSH.js → team-7ALXEN44.js} +1 -1
- package/dist/chunks/{team-client-UHSRFKGO.js → team-client-5F6UKZ7O.js} +1 -1
- package/dist/chunks/{tools-JF34FHPL.js → tools-T5OOFCAK.js} +2 -2
- package/dist/chunks/{ui-commands-FJRS7ZFG.js → ui-commands-SRKETFSJ.js} +12 -12
- package/dist/chunks/{versions-VKZPDWOJ.js → versions-FOYJLJ56.js} +5 -5
- package/dist/index.js +5 -5
- 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-FXDNRH4T.js";
|
|
11
|
+
import "./chunk-NS3CXWKM.js";
|
|
12
12
|
import "./chunk-FP4SRYEY.js";
|
|
13
13
|
import "./chunk-KNZC67UG.js";
|
|
14
14
|
import "./chunk-BYQRWB45.js";
|
|
@@ -19,7 +19,7 @@ import "./chunk-HXLERMCQ.js";
|
|
|
19
19
|
import "./chunk-6RKVV3NE.js";
|
|
20
20
|
import "./chunk-2ISDJ45D.js";
|
|
21
21
|
import "./chunk-LG7DRCNH.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-AYLGWK67.js";
|
|
23
23
|
import "./chunk-CJAUQQRO.js";
|
|
24
24
|
import "./chunk-HP7P4BWV.js";
|
|
25
25
|
import "./chunk-IKLFVV7P.js";
|
|
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
HYPERY_TEAM_HEADER,
|
|
9
9
|
hyperyRequestHeaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H3L3T37D.js";
|
|
11
11
|
import "./chunk-IAQXFATC.js";
|
|
12
12
|
import {
|
|
13
13
|
useHyperyTeam
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SFUJVM4T.js";
|
|
15
15
|
import {
|
|
16
16
|
ApiError,
|
|
17
17
|
inAppPurchases,
|
|
@@ -6,10 +6,10 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
appCommands
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-URZZZUEA.js";
|
|
10
10
|
import {
|
|
11
11
|
builtinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NS3CXWKM.js";
|
|
13
13
|
import "./chunk-FP4SRYEY.js";
|
|
14
14
|
import "./chunk-KNZC67UG.js";
|
|
15
15
|
import "./chunk-BYQRWB45.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-NOCQ6TTG.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-FIEWJM4Y.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);
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
requestImageAction,
|
|
29
29
|
sizeForAspect,
|
|
30
30
|
vectorSupport
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-V7TNB2QR.js";
|
|
32
32
|
import {
|
|
33
33
|
useEditorStore
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KG3ZTNV5.js";
|
|
35
35
|
import {
|
|
36
36
|
withHistoryGroup
|
|
37
37
|
} from "./chunk-WLHDRYWM.js";
|
|
@@ -57,19 +57,19 @@ async function renderDocument(doc, nodeIds, options) {
|
|
|
57
57
|
function generateCapability(ctx) {
|
|
58
58
|
return async (prompt, options = {}) => {
|
|
59
59
|
if (options.format === "audio") {
|
|
60
|
-
const { requestAudio } = await import("./client-
|
|
60
|
+
const { requestAudio } = await import("./client-575NETIC.js");
|
|
61
61
|
const { signal: signal2, format: _f, ...rest2 } = options;
|
|
62
62
|
void _f;
|
|
63
63
|
return requestAudio({ prompt, ...rest2 }, signal2 ?? ctx.signal);
|
|
64
64
|
}
|
|
65
65
|
if (options.format === "video") {
|
|
66
|
-
const { generateVideoFile } = await import("./generate-media-
|
|
66
|
+
const { generateVideoFile } = await import("./generate-media-KNCT4NBG.js");
|
|
67
67
|
const { format: _f, signal: signal2, ...rest2 } = options;
|
|
68
68
|
void _f;
|
|
69
69
|
return generateVideoFile({ ...rest2, prompt, doc: ctx.doc() }, { signal: signal2 ?? ctx.signal });
|
|
70
70
|
}
|
|
71
71
|
const [{ requestImage }, { effectiveImageModel, useAiStore }] = await Promise.all([
|
|
72
|
-
import("./client-
|
|
72
|
+
import("./client-575NETIC.js"),
|
|
73
73
|
import("./client-store-OXZDCRVY.js")
|
|
74
74
|
]);
|
|
75
75
|
const modelId = effectiveImageModel(useAiStore.getState());
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-5TJENPVP.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4YEXUZLM.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveChatModel,
|
|
15
15
|
setModelPref,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-7ZG6LPNA.js";
|
|
18
18
|
import {
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KG3ZTNV5.js";
|
|
21
21
|
import {
|
|
22
22
|
create
|
|
23
23
|
} from "./chunk-GGHJRQSQ.js";
|
|
@@ -1797,7 +1797,7 @@ async function sendMessage(text) {
|
|
|
1797
1797
|
if (!useAgentStore.getState().activeThreadId) newThread();
|
|
1798
1798
|
const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
|
|
1799
1799
|
useAgentStore.setState({ draft: "", draftMentions: [], error: null });
|
|
1800
|
-
const { runTurn } = await import("./runner-
|
|
1800
|
+
const { runTurn } = await import("./runner-ETRVYLPF.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-ETRVYLPF.js").then(({ onChildTool }) => {
|
|
1904
1904
|
const off = onChildTool((report) => {
|
|
1905
1905
|
if (report?.status !== "running" || report.jobId) return;
|
|
1906
1906
|
recordChildTool(report.toolCallId ?? "", report.name);
|
|
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinCommands,
|
|
9
9
|
registerBuiltinCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NS3CXWKM.js";
|
|
11
11
|
import {
|
|
12
12
|
toolView
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AYLGWK67.js";
|
|
14
14
|
import {
|
|
15
15
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
16
16
|
} from "./chunk-CIBKIB3Q.js";
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
newFileRefusal,
|
|
15
15
|
reportNewFileBlocked,
|
|
16
16
|
setCloudLink
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-X6EOCSFH.js";
|
|
18
18
|
import {
|
|
19
19
|
parseDeepLink,
|
|
20
20
|
withDeepLink
|
|
21
21
|
} from "./chunk-Z56Z7JCB.js";
|
|
22
22
|
import {
|
|
23
23
|
activeTeamWorkspaceId
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SFUJVM4T.js";
|
|
25
25
|
import {
|
|
26
26
|
ApiError,
|
|
27
27
|
api,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-WLR2W5H6.js";
|
|
30
30
|
import {
|
|
31
31
|
attachPresence
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MKKJE44L.js";
|
|
33
33
|
import {
|
|
34
34
|
isPersistableDocument,
|
|
35
35
|
isUnsavedPlaceholder,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
setCollabHistory,
|
|
41
41
|
storedDocument,
|
|
42
42
|
useEditorStore
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KG3ZTNV5.js";
|
|
44
44
|
import {
|
|
45
45
|
currentHistoryGroup
|
|
46
46
|
} from "./chunk-WLHDRYWM.js";
|
|
@@ -4582,7 +4582,7 @@ function createPopcornSlice(set2, get2) {
|
|
|
4582
4582
|
privateMode: false,
|
|
4583
4583
|
setPrivateMode: (on) => {
|
|
4584
4584
|
set2({ privateMode: on });
|
|
4585
|
-
void import("./presence-
|
|
4585
|
+
void import("./presence-7HWCQ7IU.js").then((m) => m.setPresencePrivate(on)).catch(() => {
|
|
4586
4586
|
});
|
|
4587
4587
|
},
|
|
4588
4588
|
/** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
|
|
@@ -6635,7 +6635,7 @@ var useEditorStore = create()(
|
|
|
6635
6635
|
// A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
|
|
6636
6636
|
// Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
|
|
6637
6637
|
duplicateDocument: async (id) => {
|
|
6638
|
-
const { duplicateDocumentToCloud } = await import("./sync-
|
|
6638
|
+
const { duplicateDocumentToCloud } = await import("./sync-7IEJNKQA.js");
|
|
6639
6639
|
return duplicateDocumentToCloud(id);
|
|
6640
6640
|
},
|
|
6641
6641
|
deleteDocument: async (id) => {
|
|
@@ -10097,9 +10097,9 @@ if (typeof window !== "undefined") {
|
|
|
10097
10097
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10098
10098
|
window.__vpDesign = async (script, o = {}) => {
|
|
10099
10099
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10100
|
-
import("./tools-
|
|
10101
|
-
import("./editor-seams-
|
|
10102
|
-
import("./live-
|
|
10100
|
+
import("./tools-T5OOFCAK.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-DE64ZBRE.js")).registerBuiltinTools })),
|
|
10101
|
+
import("./editor-seams-WKPTSZGB.js"),
|
|
10102
|
+
import("./live-XTGAU3P6.js")
|
|
10103
10103
|
]);
|
|
10104
10104
|
registerBuiltinTools();
|
|
10105
10105
|
const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
} from "./chunk-P4DTBNMR.js";
|
|
22
22
|
import {
|
|
23
23
|
syncStatus
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-G5Z4JJRN.js";
|
|
25
25
|
import {
|
|
26
26
|
setPluginTabs,
|
|
27
27
|
useEditorStore
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-KG3ZTNV5.js";
|
|
29
29
|
import {
|
|
30
30
|
openBeside
|
|
31
31
|
} from "./chunk-DGXWJPTE.js";
|
|
@@ -69,7 +69,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
|
|
|
69
69
|
// lib/plugins/api.ts
|
|
70
70
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
71
71
|
async function handlePluginCall(env, method, params = {}) {
|
|
72
|
-
const { dispatchPluginCall } = await import("./plugin-
|
|
72
|
+
const { dispatchPluginCall } = await import("./plugin-Z4WOZCSC.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-OKA3K2VW.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-F63FQSNC.js");
|
|
773
773
|
if (d.ir && typeof d.ir === "object") {
|
|
774
774
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
775
775
|
return;
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
} from "./chunk-L34RO4NA.js";
|
|
21
21
|
import {
|
|
22
22
|
notice
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4YEXUZLM.js";
|
|
24
24
|
import {
|
|
25
25
|
agentContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AYLGWK67.js";
|
|
27
27
|
import {
|
|
28
28
|
collabSession,
|
|
29
29
|
syncStatus
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-G5Z4JJRN.js";
|
|
31
31
|
import {
|
|
32
32
|
loadEntitlements
|
|
33
33
|
} from "./chunk-IAQXFATC.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-WLR2W5H6.js";
|
|
37
37
|
import {
|
|
38
38
|
useEditorStore
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KG3ZTNV5.js";
|
|
40
40
|
import {
|
|
41
41
|
plansEnabled
|
|
42
42
|
} from "./chunk-FWZDT4HA.js";
|