@blocklet/pages-kit-inner-components 0.5.47 → 0.5.48
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/lib/cjs/add-component.js +19 -19
- package/lib/cjs/chunks/{array-Cip5uTnI.js → array-BqHuYyfx.js} +1 -1
- package/lib/cjs/chunks/{config-string-CEipCOnU.js → config-string-4bVR9Vc8.js} +1 -1
- package/lib/cjs/chunks/{draft-data-F0V4PcIs.js → draft-data-CuZfaQ4s.js} +1 -1
- package/lib/cjs/chunks/{home-BCFoaIEZ.js → home-CQTuGad2.js} +3 -3
- package/lib/cjs/chunks/{publish-button-Bbd4z1_d.js → publish-button-1xmfwN7o.js} +1 -1
- package/lib/cjs/chunks/site-state-BtZ8o3J2.js +57 -0
- package/lib/cjs/chunks/state-BVdbNJCA.js +1 -0
- package/lib/cjs/components.js +1 -1
- package/lib/cjs/home.js +1 -1
- package/lib/cjs/locales.js +2 -2
- package/lib/cjs/project-html.js +1 -1
- package/lib/cjs/resources.js +1 -1
- package/lib/cjs/setting.js +3 -3
- package/lib/cjs/site-state.js +1 -1
- package/lib/cjs/theme.js +1 -1
- package/lib/es/add-component.js +18 -17
- package/lib/es/chunks/{array-DM0x2Sjw.js → array-c6HYTLze.js} +1 -1
- package/lib/es/chunks/{config-string-Dw6sJMn_.js → config-string-WMpFf-7V.js} +1 -1
- package/lib/es/chunks/{draft-data-sTSk4UTm.js → draft-data-CWM--ooz.js} +1 -1
- package/lib/es/chunks/{home-ClxOpmCx.js → home-DQjaiv2F.js} +4 -4
- package/lib/es/chunks/{publish-button-CKXdANG9.js → publish-button-wYeS7m-g.js} +3 -3
- package/lib/es/chunks/{site-state-BeEHvakk.js → site-state-D-moj9fA.js} +527 -550
- package/lib/es/chunks/{state-COB6reM7.js → state-l--dTdHq.js} +87 -88
- package/lib/es/components.js +1 -1
- package/lib/es/home.js +3 -3
- package/lib/es/locales.js +2 -2
- package/lib/es/project-html.js +1 -1
- package/lib/es/resources.js +1 -1
- package/lib/es/setting.js +94 -93
- package/lib/es/site-state.js +6 -5
- package/lib/es/theme.js +34 -34
- package/package.json +3 -3
- package/lib/cjs/chunks/site-state-CeQEnrvX.js +0 -57
- package/lib/cjs/chunks/state-UwRWAZRe.js +0 -1
|
@@ -1,78 +1,78 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
|
-
import { Box as
|
|
3
|
-
import { joinURL as _, withQuery as
|
|
4
|
-
import { createAxios as
|
|
2
|
+
import { Box as z, Alert as Q } from "@mui/material";
|
|
3
|
+
import { joinURL as _, withQuery as X } from "ufo";
|
|
4
|
+
import { createAxios as q } from "@blocklet/js-sdk";
|
|
5
5
|
import Y from "lodash/isEmpty";
|
|
6
6
|
import * as Z from "yaml";
|
|
7
7
|
import { useLocaleContext as H } from "@arcblock/ux/lib/Locale/context";
|
|
8
|
+
import { nextId as A } from "@blocklet/pages-kit/utils/common";
|
|
8
9
|
import { getPageTemplateModel as ee } from "@blocklet/pages-kit/utils/page-model";
|
|
9
10
|
import te, { getYjsDoc as oe } from "@syncedstore/core";
|
|
10
11
|
import { useSyncedStore as ne } from "@syncedstore/react";
|
|
11
12
|
import { useLocalStorageState as re } from "ahooks";
|
|
12
|
-
import { produce as
|
|
13
|
+
import { produce as k } from "immer";
|
|
13
14
|
import G from "lodash/cloneDeep";
|
|
14
15
|
import F from "lodash/debounce";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { UndoManager as fe } from "yjs";
|
|
16
|
+
import { createContext as se, useState as $, useRef as ce, useMemo as L, useCallback as R, useEffect as D, useContext as ie } from "react";
|
|
17
|
+
import { useParams as ae, useNavigate as de } from "react-router-dom";
|
|
18
|
+
import { IndexeddbPersistence as le } from "y-indexeddb";
|
|
19
|
+
import { WebsocketProvider as ue } from "y-websocket";
|
|
20
|
+
import { UndoManager as me } from "yjs";
|
|
21
21
|
import "@blocklet/pages-kit/types";
|
|
22
22
|
const Ke = (s) => {
|
|
23
23
|
const n = blocklet == null ? void 0 : blocklet.componentMountPoints.find((f) => f.name === s);
|
|
24
24
|
return n ? n.mountPoint : "/";
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function fe() {
|
|
27
27
|
const { pathname: s } = window.location, n = s.match(/\/admin\/(maker|previewer)\/([^/]+)/), f = n == null ? void 0 : n[2], h = window.__PROJECT_ID__;
|
|
28
28
|
if (!f && !h)
|
|
29
29
|
throw new Error("Unable to get projectId from pathname");
|
|
30
30
|
return f || h;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ze(s) {
|
|
33
33
|
return `${s}:pages:version`;
|
|
34
34
|
}
|
|
35
35
|
function Qe(s, n) {
|
|
36
36
|
return n === "yaml" ? Y(s) ? "" : Z.stringify(s, { indent: 2 }) : n === "json" ? JSON.parse(JSON.stringify(s || {})) : n === "array" ? JSON.parse(JSON.stringify(s || [])) : s;
|
|
37
37
|
}
|
|
38
38
|
function Xe({ error: s }) {
|
|
39
|
-
return /* @__PURE__ */ T(
|
|
39
|
+
return /* @__PURE__ */ T(z, { children: /* @__PURE__ */ T(Q, { severity: "error", children: s.message }) });
|
|
40
40
|
}
|
|
41
41
|
var B;
|
|
42
|
-
const J = ((B = window.blocklet) == null ? void 0 : B.prefix) || "/", W =
|
|
42
|
+
const J = ((B = window.blocklet) == null ? void 0 : B.prefix) || "/", W = q({
|
|
43
43
|
timeout: 200 * 1e3
|
|
44
|
-
}),
|
|
44
|
+
}), Se = window.location.protocol === "https:" ? "wss" : "ws", qe = (s) => _(`${Se}://${window.location.hostname}`, J, `api/${s}/ws/pages`), pe = "z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9";
|
|
45
45
|
var U;
|
|
46
|
-
(U = blocklet == null ? void 0 : blocklet.componentMountPoints.find((s) => s.did ===
|
|
47
|
-
function
|
|
46
|
+
(U = blocklet == null ? void 0 : blocklet.componentMountPoints.find((s) => s.did === pe)) != null && U.mountPoint || _(J, "/image-bin");
|
|
47
|
+
function Ye(s) {
|
|
48
48
|
return s && !/^(https?:\/\/|\/)/.test(s) ? window.location.origin + _(J, "uploads", s) : s;
|
|
49
49
|
}
|
|
50
|
-
const
|
|
51
|
-
function
|
|
50
|
+
const ge = window.innerWidth <= 750;
|
|
51
|
+
function Ze(s, n, f) {
|
|
52
52
|
if (!s || /\.gif/.test(s)) return s;
|
|
53
|
-
const h = (
|
|
54
|
-
return
|
|
53
|
+
const h = (ge ? n / 1.5 : n) * (f === "quality" ? 1.5 : 1);
|
|
54
|
+
return Pe(s, { imageFilter: "resize", w: h, f: "webp" });
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return !s || !n ? s :
|
|
56
|
+
function Pe(s, n) {
|
|
57
|
+
return !s || !n ? s : X(s, n);
|
|
58
58
|
}
|
|
59
|
-
async function
|
|
59
|
+
async function we(s) {
|
|
60
60
|
return W.get(`/api/projects/${s}`).then((n) => n.data);
|
|
61
61
|
}
|
|
62
|
-
async function
|
|
62
|
+
async function Ie(s) {
|
|
63
63
|
return W.post(`/api/projects/${s.id}/update`, s).then((n) => n.data);
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
function
|
|
65
|
+
const ye = 500, N = se(null);
|
|
66
|
+
function He({
|
|
67
67
|
url: s,
|
|
68
68
|
name: n,
|
|
69
69
|
children: f,
|
|
70
70
|
waitingSynced: h
|
|
71
71
|
}) {
|
|
72
|
-
const [E,
|
|
72
|
+
const [E, O] = $(!1), { locale: S } = H(), v = V(), M = `${v}:MakerLocalState`, e = `${v}:${n}`, [t, c] = re(M, {
|
|
73
73
|
defaultValue: {},
|
|
74
74
|
listenStorageChange: !0
|
|
75
|
-
}), r =
|
|
75
|
+
}), r = ce(t);
|
|
76
76
|
r.current = t;
|
|
77
77
|
const i = L(
|
|
78
78
|
() => te({
|
|
@@ -89,9 +89,9 @@ function et({
|
|
|
89
89
|
}),
|
|
90
90
|
[]
|
|
91
91
|
), o = L(() => oe(i), [i]);
|
|
92
|
-
L(() => new
|
|
92
|
+
L(() => new le(e, o), [e, o]);
|
|
93
93
|
const a = L(
|
|
94
|
-
() => new
|
|
94
|
+
() => new ue(s, e, o, {
|
|
95
95
|
params: {},
|
|
96
96
|
resyncInterval: 5 * 60 * 1e3
|
|
97
97
|
}),
|
|
@@ -99,7 +99,7 @@ function et({
|
|
|
99
99
|
), d = R(() => {
|
|
100
100
|
a && (a.disconnect(), a.connect());
|
|
101
101
|
}, [a]), l = L(
|
|
102
|
-
() => new
|
|
102
|
+
() => new me(
|
|
103
103
|
[
|
|
104
104
|
o.getArray("pageIds"),
|
|
105
105
|
o.getMap("pages"),
|
|
@@ -117,7 +117,7 @@ function et({
|
|
|
117
117
|
if (v) {
|
|
118
118
|
P(!0);
|
|
119
119
|
try {
|
|
120
|
-
const g = await
|
|
120
|
+
const g = await we(v);
|
|
121
121
|
m(g);
|
|
122
122
|
} catch (g) {
|
|
123
123
|
console.error("Failed to fetch project:", g);
|
|
@@ -127,19 +127,19 @@ function et({
|
|
|
127
127
|
}
|
|
128
128
|
}, [v]), b = R(
|
|
129
129
|
async (g, I) => {
|
|
130
|
-
var
|
|
130
|
+
var j;
|
|
131
131
|
if (C(void 0), !!v) {
|
|
132
132
|
I != null && I.optimisticUpdate && u && m((y) => ({
|
|
133
133
|
...y,
|
|
134
134
|
...g
|
|
135
135
|
}));
|
|
136
136
|
try {
|
|
137
|
-
const y = await
|
|
137
|
+
const y = await Ie({
|
|
138
138
|
...g
|
|
139
139
|
});
|
|
140
140
|
m(y);
|
|
141
141
|
} catch (y) {
|
|
142
|
-
console.error("Failed to update project:", y), I != null && I.optimisticUpdate && m(u), C((
|
|
142
|
+
console.error("Failed to update project:", y), I != null && I.optimisticUpdate && m(u), C((j = y == null ? void 0 : y.response) == null ? void 0 : j.data);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
},
|
|
@@ -148,7 +148,7 @@ function et({
|
|
|
148
148
|
D(() => {
|
|
149
149
|
v && p();
|
|
150
150
|
}, [v, p]);
|
|
151
|
-
const
|
|
151
|
+
const K = L(
|
|
152
152
|
() => ({
|
|
153
153
|
doc: o,
|
|
154
154
|
state: i,
|
|
@@ -185,16 +185,16 @@ function et({
|
|
|
185
185
|
);
|
|
186
186
|
return D(() => {
|
|
187
187
|
l.on("stack-item-added", ({ stackItem: g }) => {
|
|
188
|
-
const { currentPageId: I, currentLocale:
|
|
189
|
-
g.meta.set("localState", { currentPageId: I, currentLocale:
|
|
188
|
+
const { currentPageId: I, currentLocale: j, pages: y } = r.current;
|
|
189
|
+
g.meta.set("localState", { currentPageId: I, currentLocale: j, pages: y });
|
|
190
190
|
}), l.on("stack-item-popped", ({ stackItem: g }) => {
|
|
191
191
|
const I = g.meta.get("localState");
|
|
192
|
-
I && c((
|
|
192
|
+
I && c((j) => ({ ...j, ...I }));
|
|
193
193
|
});
|
|
194
194
|
}, [l, c]), D(() => {
|
|
195
195
|
a.awareness.setLocalState(t);
|
|
196
196
|
}, [a, t]), D(() => {
|
|
197
|
-
a.once("synced", () =>
|
|
197
|
+
a.once("synced", () => O(!0));
|
|
198
198
|
const g = () => {
|
|
199
199
|
c((y) => ({
|
|
200
200
|
...y,
|
|
@@ -205,19 +205,19 @@ function et({
|
|
|
205
205
|
...y,
|
|
206
206
|
networkStatus: "offline"
|
|
207
207
|
}));
|
|
208
|
-
},
|
|
208
|
+
}, j = F(({ status: y }) => {
|
|
209
209
|
y === "connected" ? g() : y === "disconnected" && I();
|
|
210
|
-
},
|
|
211
|
-
return a.on("status",
|
|
212
|
-
a.off("status",
|
|
210
|
+
}, ye);
|
|
211
|
+
return a.on("status", j), window.addEventListener("online", g), window.addEventListener("offline", I), () => {
|
|
212
|
+
a.off("status", j), window.removeEventListener("online", g), window.removeEventListener("offline", I);
|
|
213
213
|
};
|
|
214
|
-
}, [a, c]), h && !E ? null : /* @__PURE__ */ T(N.Provider, { value:
|
|
214
|
+
}, [a, c]), h && !E ? null : /* @__PURE__ */ T(N.Provider, { value: K, children: f });
|
|
215
215
|
}
|
|
216
|
-
const
|
|
217
|
-
const s =
|
|
216
|
+
const he = () => {
|
|
217
|
+
const s = ie(N);
|
|
218
218
|
if (!s)
|
|
219
219
|
throw new Error("Context is null");
|
|
220
|
-
const n = ne(s.state), { setLocalState: f, localState: h } = s, E =
|
|
220
|
+
const n = ne(s.state), { setLocalState: f, localState: h } = s, E = de(), O = V(), S = L(
|
|
221
221
|
() => ({
|
|
222
222
|
get currentPage() {
|
|
223
223
|
const {
|
|
@@ -306,23 +306,23 @@ const ve = () => {
|
|
|
306
306
|
() => ({
|
|
307
307
|
setCurrentSectionId: (e, t) => {
|
|
308
308
|
var c, r;
|
|
309
|
-
e === h.currentPageId && t === ((r = (c = h.pages) == null ? void 0 : c[e]) == null ? void 0 : r.currentSectionId) || (E(_("/admin/maker",
|
|
310
|
-
(i) =>
|
|
309
|
+
e === h.currentPageId && t === ((r = (c = h.pages) == null ? void 0 : c[e]) == null ? void 0 : r.currentSectionId) || (E(_("/admin/maker", O ?? "", "pages", e)), f(
|
|
310
|
+
(i) => k(i, (o) => {
|
|
311
311
|
var a;
|
|
312
312
|
o.currentPageId = e, o.currentComponentId = void 0, t !== void 0 && (o.pages ?? (o.pages = {}), (a = o.pages)[e] ?? (a[e] = {}), o.pages[e].currentSectionId = t ?? void 0), t ? window.sessionStorage.setItem("iframe_show_id", `"${t}"`) : window.sessionStorage.removeItem("iframe_show_id");
|
|
313
313
|
})
|
|
314
314
|
));
|
|
315
315
|
},
|
|
316
316
|
setCurrentComponentId: (e) => {
|
|
317
|
-
e !== h.currentComponentId && (E(_("/admin/maker",
|
|
318
|
-
(t) =>
|
|
317
|
+
e !== h.currentComponentId && (E(_("/admin/maker", O ?? "", "components", e)), f(
|
|
318
|
+
(t) => k(t, (c) => {
|
|
319
319
|
c.currentComponentId = e;
|
|
320
320
|
})
|
|
321
321
|
));
|
|
322
322
|
},
|
|
323
323
|
setCurrentRouteId: ({ routeId: e, dynamicParams: t }) => {
|
|
324
324
|
f(
|
|
325
|
-
(c) =>
|
|
325
|
+
(c) => k(c, (r) => {
|
|
326
326
|
r.currentRouteId = e, r.currentDynamicParams = t;
|
|
327
327
|
})
|
|
328
328
|
);
|
|
@@ -333,7 +333,7 @@ const ve = () => {
|
|
|
333
333
|
let t = "";
|
|
334
334
|
const c = F(() => {
|
|
335
335
|
f(
|
|
336
|
-
(r) =>
|
|
336
|
+
(r) => k(r, (i) => {
|
|
337
337
|
i.customComponentPreviewerProperties ?? (i.customComponentPreviewerProperties = {}), i.customComponentPreviewerProperties[t] = {
|
|
338
338
|
...i.customComponentPreviewerProperties[t],
|
|
339
339
|
...G(e[t])
|
|
@@ -348,7 +348,7 @@ const ve = () => {
|
|
|
348
348
|
})(),
|
|
349
349
|
setRouteGenerateProcess: (e) => {
|
|
350
350
|
f(
|
|
351
|
-
(t) =>
|
|
351
|
+
(t) => k(t, (c) => {
|
|
352
352
|
e ? c.routeGenerateProcess = {
|
|
353
353
|
...c.routeGenerateProcess,
|
|
354
354
|
...e
|
|
@@ -358,7 +358,7 @@ const ve = () => {
|
|
|
358
358
|
},
|
|
359
359
|
resetRouteGenerateProcess: () => {
|
|
360
360
|
f(
|
|
361
|
-
(e) =>
|
|
361
|
+
(e) => k(e, (t) => {
|
|
362
362
|
t.routeGenerateProcess = {
|
|
363
363
|
progress: "complete"
|
|
364
364
|
};
|
|
@@ -366,8 +366,8 @@ const ve = () => {
|
|
|
366
366
|
);
|
|
367
367
|
}
|
|
368
368
|
}),
|
|
369
|
-
[f, E,
|
|
370
|
-
),
|
|
369
|
+
[f, E, O, S]
|
|
370
|
+
), M = L(
|
|
371
371
|
() => ({
|
|
372
372
|
addPage: (e, t) => {
|
|
373
373
|
var i, o, a, d, l, u;
|
|
@@ -538,43 +538,43 @@ const ve = () => {
|
|
|
538
538
|
return {
|
|
539
539
|
...s,
|
|
540
540
|
state: n,
|
|
541
|
-
actions:
|
|
541
|
+
actions: M,
|
|
542
542
|
localActions: v,
|
|
543
543
|
...S
|
|
544
544
|
};
|
|
545
545
|
}, V = () => {
|
|
546
|
-
const { projectId: s } =
|
|
547
|
-
return s ??
|
|
548
|
-
},
|
|
549
|
-
function
|
|
546
|
+
const { projectId: s } = ae();
|
|
547
|
+
return s ?? fe() ?? "";
|
|
548
|
+
}, et = () => window.__PROJECT_SLUG__ ?? "";
|
|
549
|
+
function ve(s) {
|
|
550
550
|
var h, E;
|
|
551
551
|
const { resources: n } = s;
|
|
552
552
|
if (!n.components)
|
|
553
553
|
return {};
|
|
554
554
|
const f = {};
|
|
555
|
-
return (E = (h = window == null ? void 0 : window.blocklet) == null ? void 0 : h.componentMountPoints) == null || E.forEach((
|
|
556
|
-
f[
|
|
555
|
+
return (E = (h = window == null ? void 0 : window.blocklet) == null ? void 0 : h.componentMountPoints) == null || E.forEach((O) => {
|
|
556
|
+
f[O.did] = O;
|
|
557
557
|
}), Object.fromEntries(
|
|
558
|
-
Object.entries(n.components).map(([
|
|
559
|
-
var
|
|
558
|
+
Object.entries(n.components).map(([O, { blockletId: S, component: v }]) => {
|
|
559
|
+
var M;
|
|
560
560
|
return [
|
|
561
|
-
|
|
562
|
-
{ data: v, blockletId: S, blockletTitle: ((
|
|
561
|
+
O,
|
|
562
|
+
{ data: v, blockletId: S, blockletTitle: ((M = f[S]) == null ? void 0 : M.title) || S }
|
|
563
563
|
];
|
|
564
564
|
})
|
|
565
565
|
);
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Ce(s) {
|
|
568
568
|
const { components: n } = s;
|
|
569
569
|
return n || {};
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function be(s) {
|
|
572
572
|
return {
|
|
573
|
-
...
|
|
574
|
-
...
|
|
573
|
+
...ve(s),
|
|
574
|
+
...Ce(s)
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
|
-
const
|
|
577
|
+
const tt = () => be(he().state);
|
|
578
578
|
function Oe(s) {
|
|
579
579
|
const n = JSON.parse(JSON.stringify(s)), f = A();
|
|
580
580
|
return {
|
|
@@ -584,21 +584,20 @@ function Oe(s) {
|
|
|
584
584
|
}
|
|
585
585
|
export {
|
|
586
586
|
Xe as E,
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
587
|
+
He as S,
|
|
588
|
+
qe as a,
|
|
589
|
+
he as b,
|
|
590
|
+
ze as c,
|
|
591
|
+
be as d,
|
|
592
|
+
et as e,
|
|
593
|
+
Ze as f,
|
|
594
|
+
Ye as g,
|
|
595
|
+
tt as h,
|
|
596
596
|
W as i,
|
|
597
597
|
Ke as j,
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
A as n,
|
|
598
|
+
Ce as k,
|
|
599
|
+
ve as l,
|
|
600
|
+
fe as m,
|
|
602
601
|
Qe as t,
|
|
603
602
|
V as u
|
|
604
603
|
};
|
package/lib/es/components.js
CHANGED
|
@@ -7,7 +7,7 @@ import "lru-cache";
|
|
|
7
7
|
import "node-fetch";
|
|
8
8
|
import "ufo";
|
|
9
9
|
import "crypto";
|
|
10
|
-
import { c as _, G as E, d as i, e as d, j as l, k as N, m as O, h as P, g as c, f as g } from "./chunks/site-state-
|
|
10
|
+
import { c as _, G as E, d as i, e as d, j as l, k as N, m as O, h as P, g as c, f as g } from "./chunks/site-state-D-moj9fA.js";
|
|
11
11
|
export {
|
|
12
12
|
_ as CUSTOM_COMPONENT_CACHE_DURATION_IN_SECONDS,
|
|
13
13
|
E as GET_SERVER_SIDE_PROPS_TIMEOUT_IN_SECONDS,
|
package/lib/es/home.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "./chunks/state-
|
|
2
|
+
import "./chunks/state-l--dTdHq.js";
|
|
3
3
|
import "@arcblock/ux/lib/Locale/context";
|
|
4
4
|
import "@arcblock/ux/lib/Result";
|
|
5
5
|
import "@blocklet/pages-kit/builtin/page/header";
|
|
@@ -21,8 +21,8 @@ import "react-helmet";
|
|
|
21
21
|
import "react-router-dom";
|
|
22
22
|
import "react-use";
|
|
23
23
|
import "ufo";
|
|
24
|
-
import "./chunks/array-
|
|
25
|
-
import { a as R, P as S, d as W, c as j, b as k, T as q, H as v } from "./chunks/home-
|
|
24
|
+
import "./chunks/array-c6HYTLze.js";
|
|
25
|
+
import { a as R, P as S, d as W, c as j, b as k, T as q, H as v } from "./chunks/home-DQjaiv2F.js";
|
|
26
26
|
import "./chunks/session-CVblGhSp.js";
|
|
27
27
|
export {
|
|
28
28
|
R as HomeView,
|
package/lib/es/locales.js
CHANGED
|
@@ -291,7 +291,7 @@ const t = e({
|
|
|
291
291
|
templateSectionNameDuplicated: "Section name must be unique among all template sections in the page",
|
|
292
292
|
propertyNotFound: "Failed to modify parameter, reason: component does not exist `{key}` property",
|
|
293
293
|
configLLMDescription: "Configure LLM description",
|
|
294
|
-
llmConfigTitle: "LLM
|
|
294
|
+
llmConfigTitle: "Configure LLM Description",
|
|
295
295
|
llmConfigLabel: "LLM Configuration Information",
|
|
296
296
|
llmConfigPlaceholder: "Enter additional configuration information for LLM",
|
|
297
297
|
llmConfigInstructions: "Configure which properties should be processed by AI and provide detailed descriptions.",
|
|
@@ -800,7 +800,7 @@ const t = e({
|
|
|
800
800
|
templateSectionNameDuplicated: "模板卡片名称在页面中必须唯一,当前名称已被其他模板卡片使用",
|
|
801
801
|
propertyNotFound: "修改参数失败,原因:组件不存在 `{key}` 属性",
|
|
802
802
|
configLLMDescription: "配置 LLM 描述",
|
|
803
|
-
llmConfigTitle: "LLM
|
|
803
|
+
llmConfigTitle: "配置 LLM 描述",
|
|
804
804
|
llmConfigLabel: "LLM 配置信息",
|
|
805
805
|
llmConfigPlaceholder: "输入用于LLM的额外配置信息",
|
|
806
806
|
llmConfigInstructions: "配置需要AI处理的属性并提供详细描述",
|
package/lib/es/project-html.js
CHANGED
|
@@ -5,7 +5,7 @@ import J from "@blocklet/sdk/lib/wallet";
|
|
|
5
5
|
import z from "@blocklet/sdk/lib/wallet-authenticator";
|
|
6
6
|
import G from "@blocklet/sdk/lib/wallet-handler";
|
|
7
7
|
import Y, { resolve as M } from "path";
|
|
8
|
-
import { l as T, g as Q } from "./chunks/site-state-
|
|
8
|
+
import { l as T, g as Q } from "./chunks/site-state-D-moj9fA.js";
|
|
9
9
|
import { createSnapshotMiddleware as V } from "@arcblock/crawler-middleware";
|
|
10
10
|
import { PreloadComponentScriptModule as X } from "@blocklet/pages-kit/types";
|
|
11
11
|
import { isMuiColorKey as Z } from "@blocklet/pages-kit/utils/common";
|
package/lib/es/resources.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as S, i as b, a as M, l as x, C as J, R as X, S as N, t as W, b as G } from "./chunks/site-state-
|
|
1
|
+
import { P as S, i as b, a as M, l as x, C as J, R as X, S as N, t as W, b as G } from "./chunks/site-state-D-moj9fA.js";
|
|
2
2
|
import { AsyncLocalStorage as K } from "async_hooks";
|
|
3
3
|
import { Router as Y } from "express";
|
|
4
4
|
import d from "fs";
|