@blocklet/pages-kit-inner-components 0.6.103 → 0.6.105
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 +1 -1
- package/lib/cjs/chunks/components-BmFOXvb0.js +57 -0
- package/lib/cjs/chunks/{draft-data-CkVvOh60.js → draft-data-e1KnFlxv.js} +1 -1
- package/lib/cjs/chunks/{home-DdN3Z-6B.js → home-DHmHyTMb.js} +10 -10
- package/lib/cjs/chunks/{index-B-Wh6PRT.js → index-Cu2Jg8OH.js} +24 -24
- package/lib/cjs/chunks/{publish-button-BtLFUEny.js → publish-button-Do7oJLSH.js} +1 -1
- package/lib/cjs/chunks/site-state-BQySNTiP.js +1 -0
- package/lib/cjs/chunks/state-DU3L5Lve.js +1 -0
- package/lib/cjs/components.js +1 -1
- package/lib/cjs/home.js +1 -1
- 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/es/add-component.js +2 -2
- package/lib/es/chunks/components-DLjI_Xlm.js +615 -0
- package/lib/es/chunks/{draft-data-BOoVhbon.js → draft-data-DRdPzuGm.js} +1 -1
- package/lib/es/chunks/{home-DVTVPkSm.js → home-DajDpGXA.js} +123 -123
- package/lib/es/chunks/{index-DENjTU8O.js → index-BpP1FqET.js} +239 -238
- package/lib/es/chunks/{publish-button-BVcMw8Fh.js → publish-button-8kEbdc0k.js} +3 -3
- package/lib/es/chunks/site-state-DS7eIMFg.js +1684 -0
- package/lib/es/chunks/{state-DNdwHwty.js → state-qDCrgEMQ.js} +114 -113
- package/lib/es/components.js +14 -13
- package/lib/es/home.js +3 -3
- package/lib/es/project-html.js +1 -1
- package/lib/es/resources.js +2 -2
- package/lib/es/setting.js +415 -413
- package/lib/es/site-state.js +2 -2
- package/package.json +7 -7
- package/lib/cjs/chunks/components-DsHjikTX.js +0 -57
- package/lib/cjs/chunks/site-state-DlLhHuIr.js +0 -1
- package/lib/cjs/chunks/state-BdtFHk36.js +0 -1
- package/lib/es/chunks/components-BIhMGXjB.js +0 -610
- package/lib/es/chunks/site-state-CN4Kulgk.js +0 -1671
|
@@ -1,67 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { joinURL as F, withQuery as
|
|
3
|
-
import { createAxios as
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
6
|
-
import { useLocaleContext as
|
|
1
|
+
import { jsx as ue } from "react/jsx-runtime";
|
|
2
|
+
import { joinURL as F, withQuery as le } from "ufo";
|
|
3
|
+
import { createAxios as pe } from "@blocklet/js-sdk";
|
|
4
|
+
import me from "lodash/isEmpty";
|
|
5
|
+
import * as fe from "yaml";
|
|
6
|
+
import { useLocaleContext as ge } from "@arcblock/ux/lib/Locale/context";
|
|
7
|
+
import { useDeepCompareMemo as ee } from "@blocklet/pages-kit/hooks/use-deep-compare-memo";
|
|
7
8
|
import { nextId as B } from "@blocklet/pages-kit/utils/common";
|
|
8
|
-
import { getPageTemplateModel as
|
|
9
|
+
import { getPageTemplateModel as Se } from "@blocklet/pages-kit/utils/page-model";
|
|
9
10
|
import "@mui/material";
|
|
10
|
-
import
|
|
11
|
-
import { useSyncedStore as
|
|
12
|
-
import { useLocalStorageState as
|
|
11
|
+
import Ie, { getYjsDoc as Pe } from "@syncedstore/core";
|
|
12
|
+
import { useSyncedStore as ye } from "@syncedstore/react";
|
|
13
|
+
import { useLocalStorageState as we } from "ahooks";
|
|
13
14
|
import { produce as _ } from "immer";
|
|
14
15
|
import R from "lodash/cloneDeep";
|
|
15
|
-
import
|
|
16
|
-
import { createContext as
|
|
17
|
-
import { useParams as
|
|
18
|
-
import { IndexeddbPersistence as
|
|
19
|
-
import { WebsocketProvider as
|
|
20
|
-
import { UndoManager as
|
|
16
|
+
import te from "lodash/debounce";
|
|
17
|
+
import { createContext as Ce, useState as W, useRef as oe, useMemo as D, useCallback as M, useEffect as V, useContext as he } from "react";
|
|
18
|
+
import { useParams as ve, useNavigate as Oe } from "react-router-dom";
|
|
19
|
+
import { IndexeddbPersistence as be } from "y-indexeddb";
|
|
20
|
+
import { WebsocketProvider as xe } from "y-websocket";
|
|
21
|
+
import { UndoManager as Ee } from "yjs";
|
|
21
22
|
import "@blocklet/pages-kit/types";
|
|
22
|
-
function
|
|
23
|
+
function Te() {
|
|
23
24
|
const { pathname: o } = window.location, I = o.match(/\/admin\/(maker|previewer)\/([^/]+)/)?.[2], f = window.__PROJECT_ID__;
|
|
24
25
|
if (!I && !f)
|
|
25
26
|
throw new Error("Unable to get projectId from pathname");
|
|
26
27
|
return I || f;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function at(o) {
|
|
29
30
|
return `${o}:pages:version`;
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
return n === "yaml" ?
|
|
32
|
+
function dt(o, n) {
|
|
33
|
+
return n === "yaml" ? me(o) ? "" : fe.stringify(o, { indent: 2 }) : n === "json" ? JSON.parse(JSON.stringify(o || {})) : n === "array" ? JSON.parse(JSON.stringify(o || [])) : o;
|
|
33
34
|
}
|
|
34
|
-
const Q = window.blocklet?.prefix || "/",
|
|
35
|
+
const Q = window.blocklet?.prefix || "/", ne = pe({
|
|
35
36
|
timeout: 200 * 1e3
|
|
36
|
-
}),
|
|
37
|
-
blocklet?.componentMountPoints.find((o) => o.did ===
|
|
38
|
-
function
|
|
37
|
+
}), ke = window.location.protocol === "https:" ? "wss" : "ws", ut = (o) => F(`${ke}://${window.location.hostname}`, Q, `api/${o}/ws/pages`), Ne = "z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9";
|
|
38
|
+
blocklet?.componentMountPoints.find((o) => o.did === Ne)?.mountPoint || F(Q, "/image-bin");
|
|
39
|
+
function lt(o) {
|
|
39
40
|
return o && !/^(https?:\/\/|\/)/.test(o) ? window.location.origin + F(Q, "uploads", o) : o;
|
|
40
41
|
}
|
|
41
|
-
const
|
|
42
|
-
function
|
|
42
|
+
const Le = window.innerWidth <= 750;
|
|
43
|
+
function pt(o, n, I) {
|
|
43
44
|
if (!o || /\.gif/.test(o)) return o;
|
|
44
|
-
const f = (
|
|
45
|
-
return
|
|
45
|
+
const f = (Le ? n / 1.5 : n) * (I === "quality" ? 1.5 : 1);
|
|
46
|
+
return Me(o, { imageFilter: "resize", w: f, f: "webp" });
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
-
return !o || !n ? o :
|
|
48
|
+
function Me(o, n) {
|
|
49
|
+
return !o || !n ? o : le(o, n);
|
|
49
50
|
}
|
|
50
51
|
async function je(o) {
|
|
51
|
-
return
|
|
52
|
+
return ne.get(`/api/projects/${o}`).then((n) => n.data);
|
|
52
53
|
}
|
|
53
|
-
async function
|
|
54
|
-
return
|
|
54
|
+
async function Ae(o) {
|
|
55
|
+
return ne.post(`/api/projects/${o.id}/update`, o).then((n) => n.data);
|
|
55
56
|
}
|
|
56
57
|
const q = "@COMPONENT-TEMPLATE-", X = (o) => `${q}${o}`, K = (o) => o.startsWith(q), Z = (o) => K(o) ? o.slice(q.length) : null;
|
|
57
|
-
function
|
|
58
|
+
function re(o, n = {}) {
|
|
58
59
|
return n[o.id] = o, o.sectionIds && o.sections && o.sectionIds.forEach((I) => {
|
|
59
60
|
const f = o.sections?.[I];
|
|
60
|
-
f &&
|
|
61
|
+
f && re(f, n);
|
|
61
62
|
}), n;
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
-
const I = X(o.id), f = n.section, O =
|
|
64
|
+
function De(o, n) {
|
|
65
|
+
const I = X(o.id), f = n.section, O = re(f);
|
|
65
66
|
n.dataSource ??= {};
|
|
66
67
|
const w = n.dataSource;
|
|
67
68
|
return {
|
|
@@ -78,20 +79,20 @@ function Ae(o, n) {
|
|
|
78
79
|
dataSource: w
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
|
-
const
|
|
82
|
-
function
|
|
82
|
+
const _e = 500, ce = Ce(null);
|
|
83
|
+
function mt({
|
|
83
84
|
url: o,
|
|
84
85
|
name: n,
|
|
85
86
|
children: I,
|
|
86
87
|
waitingSynced: f
|
|
87
88
|
}) {
|
|
88
|
-
const [O, w] = W(!1), { locale:
|
|
89
|
+
const [O, w] = W(!1), { locale: j } = ge(), h = se(), k = `${h}:MakerLocalState`, b = `${h}:${n}`, [v, S] = we(k, {
|
|
89
90
|
defaultValue: {},
|
|
90
91
|
listenStorageChange: !0
|
|
91
|
-
}),
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
() =>
|
|
92
|
+
}), $ = oe(v);
|
|
93
|
+
$.current = v;
|
|
94
|
+
const J = D(
|
|
95
|
+
() => Ie({
|
|
95
96
|
dataSourceIds: [],
|
|
96
97
|
dataSources: {},
|
|
97
98
|
pages: {},
|
|
@@ -104,18 +105,18 @@ function lt({
|
|
|
104
105
|
resources: {}
|
|
105
106
|
}),
|
|
106
107
|
[]
|
|
107
|
-
), y =
|
|
108
|
-
|
|
109
|
-
const C =
|
|
110
|
-
() => new
|
|
108
|
+
), y = D(() => Pe(J), [J]);
|
|
109
|
+
D(() => new be(b, y), [b, y]);
|
|
110
|
+
const C = D(
|
|
111
|
+
() => new xe(o, b, y, {
|
|
111
112
|
params: {},
|
|
112
113
|
resyncInterval: 5 * 60 * 1e3
|
|
113
114
|
}),
|
|
114
115
|
[o, b, y]
|
|
115
116
|
), U = M(() => {
|
|
116
117
|
C && (C.wsconnected ? (C.disconnect(), setTimeout(() => C.connect(), 100)) : C.connect());
|
|
117
|
-
}, [C]), e =
|
|
118
|
-
() => new
|
|
118
|
+
}, [C]), e = D(
|
|
119
|
+
() => new Ee(
|
|
119
120
|
[
|
|
120
121
|
y.getArray("pageIds"),
|
|
121
122
|
y.getMap("pages"),
|
|
@@ -149,7 +150,7 @@ function lt({
|
|
|
149
150
|
...s
|
|
150
151
|
}));
|
|
151
152
|
try {
|
|
152
|
-
const g = await
|
|
153
|
+
const g = await Ae({
|
|
153
154
|
...s
|
|
154
155
|
});
|
|
155
156
|
r(g);
|
|
@@ -163,14 +164,14 @@ function lt({
|
|
|
163
164
|
V(() => {
|
|
164
165
|
h && m();
|
|
165
166
|
}, [h, m]);
|
|
166
|
-
const p =
|
|
167
|
+
const p = ee(
|
|
167
168
|
() => ({
|
|
168
169
|
doc: y,
|
|
169
|
-
state:
|
|
170
|
+
state: J,
|
|
170
171
|
localState: {
|
|
171
172
|
...v,
|
|
172
173
|
// always use the locale from the context
|
|
173
|
-
currentLocale:
|
|
174
|
+
currentLocale: j
|
|
174
175
|
},
|
|
175
176
|
setLocalState: (s) => S(typeof s == "function" ? (a) => s(a ?? {}) : s),
|
|
176
177
|
undoManager: e,
|
|
@@ -185,8 +186,8 @@ function lt({
|
|
|
185
186
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
186
187
|
[
|
|
187
188
|
y,
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
J,
|
|
190
|
+
v,
|
|
190
191
|
// resolve the problem of react warning
|
|
191
192
|
S,
|
|
192
193
|
e,
|
|
@@ -194,13 +195,13 @@ function lt({
|
|
|
194
195
|
c,
|
|
195
196
|
u,
|
|
196
197
|
i,
|
|
197
|
-
|
|
198
|
+
j,
|
|
198
199
|
U
|
|
199
200
|
]
|
|
200
201
|
);
|
|
201
202
|
return V(() => {
|
|
202
203
|
e.on("stack-item-added", ({ stackItem: s }) => {
|
|
203
|
-
const { currentPageId: a, currentLocale: g, pages: P } =
|
|
204
|
+
const { currentPageId: a, currentLocale: g, pages: P } = $.current;
|
|
204
205
|
s.meta.set("localState", { currentPageId: a, currentLocale: g, pages: P });
|
|
205
206
|
}), e.on("stack-item-popped", ({ stackItem: s }) => {
|
|
206
207
|
const a = s.meta.get("localState");
|
|
@@ -223,21 +224,21 @@ function lt({
|
|
|
223
224
|
...T,
|
|
224
225
|
networkStatus: "offline"
|
|
225
226
|
}));
|
|
226
|
-
}, L =
|
|
227
|
+
}, L = te(({ status: T }) => {
|
|
227
228
|
if (T === "connected")
|
|
228
229
|
x(), a && (clearTimeout(a), a = null);
|
|
229
230
|
else if (T === "disconnected") {
|
|
230
231
|
if (s++, !a) {
|
|
231
|
-
const
|
|
232
|
+
const ie = Date.now();
|
|
232
233
|
let H = 0;
|
|
233
|
-
const
|
|
234
|
+
const ae = Math.ceil(N / P), Y = () => {
|
|
234
235
|
H++;
|
|
235
|
-
const
|
|
236
|
+
const de = Date.now() - ie;
|
|
236
237
|
if (C.wsconnected) {
|
|
237
238
|
x();
|
|
238
239
|
return;
|
|
239
240
|
}
|
|
240
|
-
if (
|
|
241
|
+
if (de >= N || H >= ae) {
|
|
241
242
|
E();
|
|
242
243
|
return;
|
|
243
244
|
}
|
|
@@ -247,26 +248,26 @@ function lt({
|
|
|
247
248
|
}
|
|
248
249
|
s >= g && E();
|
|
249
250
|
}
|
|
250
|
-
},
|
|
251
|
+
}, _e), A = () => {
|
|
251
252
|
C.wsconnected || C.connect(), x();
|
|
252
253
|
}, G = () => {
|
|
253
254
|
E();
|
|
254
255
|
};
|
|
255
|
-
return C.on("status", L), window.addEventListener("online",
|
|
256
|
-
a && clearTimeout(a), C.off("status", L), window.removeEventListener("online",
|
|
256
|
+
return C.on("status", L), window.addEventListener("online", A), window.addEventListener("offline", G), C.wsconnected && x(), () => {
|
|
257
|
+
a && clearTimeout(a), C.off("status", L), window.removeEventListener("online", A), window.removeEventListener("offline", G);
|
|
257
258
|
};
|
|
258
|
-
}, [C, S]), f && !O ? null : /* @__PURE__ */
|
|
259
|
+
}, [C, S]), f && !O ? null : /* @__PURE__ */ ue(ce.Provider, { value: p, children: I });
|
|
259
260
|
}
|
|
260
|
-
const
|
|
261
|
-
const o =
|
|
261
|
+
const Re = () => {
|
|
262
|
+
const o = he(ce);
|
|
262
263
|
if (!o)
|
|
263
264
|
throw new Error("Context is null");
|
|
264
|
-
const n =
|
|
265
|
+
const n = ye(o.state), { setLocalState: I, localState: f } = o, O = Oe(), w = se(), j = oe({}), h = M(
|
|
265
266
|
(e) => {
|
|
266
267
|
const t = n.components[e]?.data;
|
|
267
|
-
return !t || t.renderer?.type !== "component-template" ? void 0 : (
|
|
268
|
-
page:
|
|
269
|
-
}),
|
|
268
|
+
return !t || t.renderer?.type !== "component-template" ? void 0 : (j.current[e] || (j.current[e] = {
|
|
269
|
+
page: De(t, t.renderer)
|
|
270
|
+
}), j.current[e]?.page);
|
|
270
271
|
},
|
|
271
272
|
[n.components]
|
|
272
273
|
), k = M(
|
|
@@ -314,7 +315,7 @@ const _e = () => {
|
|
|
314
315
|
return t;
|
|
315
316
|
},
|
|
316
317
|
[b]
|
|
317
|
-
), S =
|
|
318
|
+
), S = ee(
|
|
318
319
|
() => ({
|
|
319
320
|
get currentPage() {
|
|
320
321
|
const {
|
|
@@ -399,11 +400,11 @@ const _e = () => {
|
|
|
399
400
|
get currentPageModel() {
|
|
400
401
|
const e = this.currentPage ?? null;
|
|
401
402
|
if (e)
|
|
402
|
-
return
|
|
403
|
+
return Se(e, !1);
|
|
403
404
|
}
|
|
404
405
|
}),
|
|
405
|
-
[
|
|
406
|
-
),
|
|
406
|
+
[f, n]
|
|
407
|
+
), $ = D(() => {
|
|
407
408
|
if (f.currentPageId) {
|
|
408
409
|
const e = b(f.currentPageId);
|
|
409
410
|
if (e?.kind === "component-template")
|
|
@@ -421,10 +422,10 @@ const _e = () => {
|
|
|
421
422
|
renderer: e.renderer
|
|
422
423
|
};
|
|
423
424
|
}
|
|
424
|
-
}, [f.currentPageId, f.currentComponentId, b, k]),
|
|
425
|
-
() =>
|
|
426
|
-
[
|
|
427
|
-
), y =
|
|
425
|
+
}, [f.currentPageId, f.currentComponentId, b, k]), J = M(
|
|
426
|
+
() => $?.kind === "component-template" ? $ : void 0,
|
|
427
|
+
[$]
|
|
428
|
+
), y = D(
|
|
428
429
|
() => ({
|
|
429
430
|
setCurrentSectionId: (e, t) => {
|
|
430
431
|
const r = K(e), c = r ? Z(e) : null;
|
|
@@ -461,7 +462,7 @@ const _e = () => {
|
|
|
461
462
|
setCustomComponentPreviewerProperties: (() => {
|
|
462
463
|
const e = {};
|
|
463
464
|
let t = "";
|
|
464
|
-
const r =
|
|
465
|
+
const r = te(() => {
|
|
465
466
|
I(
|
|
466
467
|
(c) => _(c, (d) => {
|
|
467
468
|
d.customComponentPreviewerProperties ??= {}, d.customComponentPreviewerProperties[t] = {
|
|
@@ -514,8 +515,8 @@ const _e = () => {
|
|
|
514
515
|
const s = (a, g) => {
|
|
515
516
|
const P = u[a.id];
|
|
516
517
|
P && (l.dataSource[g.id] = R(P)), a.component === "layout-block" && a.sectionIds?.length && a.sectionIds.forEach((N, x) => {
|
|
517
|
-
const E = a.sections?.[N], L = g.sectionIds?.[x],
|
|
518
|
-
E &&
|
|
518
|
+
const E = a.sections?.[N], L = g.sectionIds?.[x], A = L ? g.sections?.[L] : void 0;
|
|
519
|
+
E && A && s(E, A);
|
|
519
520
|
});
|
|
520
521
|
};
|
|
521
522
|
s(m, p);
|
|
@@ -523,7 +524,7 @@ const _e = () => {
|
|
|
523
524
|
}), y.setCurrentSectionId(e, p.id), p;
|
|
524
525
|
},
|
|
525
526
|
[v, S, o.doc, y]
|
|
526
|
-
), U =
|
|
527
|
+
), U = D(
|
|
527
528
|
() => ({
|
|
528
529
|
addPage: (e, t) => {
|
|
529
530
|
const r = e?.id ?? B(), c = {
|
|
@@ -672,8 +673,8 @@ const _e = () => {
|
|
|
672
673
|
if (!P || P.component !== "layout-block")
|
|
673
674
|
throw new Error(`Layout block ${a} not found`);
|
|
674
675
|
if (a === t || ((E, L) => {
|
|
675
|
-
const
|
|
676
|
-
if (!
|
|
676
|
+
const A = l.getComponentById(E), G = l.getComponentById(L);
|
|
677
|
+
if (!A || !G || A.model.component !== "layout-block")
|
|
677
678
|
return !1;
|
|
678
679
|
let T = G.parent;
|
|
679
680
|
for (; T; ) {
|
|
@@ -808,13 +809,13 @@ const _e = () => {
|
|
|
808
809
|
actions: U,
|
|
809
810
|
localActions: y,
|
|
810
811
|
...S,
|
|
811
|
-
getComponentTemplateContext:
|
|
812
|
+
getComponentTemplateContext: J
|
|
812
813
|
};
|
|
813
|
-
},
|
|
814
|
-
const { projectId: o } =
|
|
815
|
-
return o ??
|
|
816
|
-
},
|
|
817
|
-
function
|
|
814
|
+
}, se = () => {
|
|
815
|
+
const { projectId: o } = ve();
|
|
816
|
+
return o ?? Te() ?? "";
|
|
817
|
+
}, ft = () => window.__PROJECT_SLUG__ ?? "";
|
|
818
|
+
function $e(o) {
|
|
818
819
|
const { resources: n } = o;
|
|
819
820
|
if (!n.components)
|
|
820
821
|
return {};
|
|
@@ -832,19 +833,19 @@ function Je(o) {
|
|
|
832
833
|
const { components: n } = o;
|
|
833
834
|
return n || {};
|
|
834
835
|
}
|
|
835
|
-
function
|
|
836
|
+
function Be(o) {
|
|
836
837
|
return {
|
|
837
|
-
|
|
838
|
+
...$e(o),
|
|
838
839
|
...Je(o)
|
|
839
840
|
};
|
|
840
841
|
}
|
|
841
|
-
const
|
|
842
|
+
const gt = () => Be(Re().state);
|
|
842
843
|
function z(o) {
|
|
843
844
|
const n = JSON.parse(JSON.stringify(o)), I = B();
|
|
844
845
|
if (n.component === "layout-block") {
|
|
845
846
|
const f = { ...n.config ?? {} }, O = n.sectionIds?.map((w) => {
|
|
846
|
-
const
|
|
847
|
-
return
|
|
847
|
+
const j = n.sections?.[w], h = z(n.sections?.[w]), k = h.id;
|
|
848
|
+
return j?.id === n.config?.backgroundSectionId && (f.backgroundSectionId = h.id), n.config?.gridSettings && Object.keys(n.config.gridSettings).forEach((b) => {
|
|
848
849
|
f.gridSettings[b] = {
|
|
849
850
|
...f.gridSettings[b] ?? {},
|
|
850
851
|
[k]: {
|
|
@@ -862,20 +863,20 @@ function z(o) {
|
|
|
862
863
|
};
|
|
863
864
|
}
|
|
864
865
|
export {
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
866
|
+
mt as S,
|
|
867
|
+
Re as a,
|
|
868
|
+
at as b,
|
|
869
|
+
Be as c,
|
|
870
|
+
ft as d,
|
|
871
|
+
pt as e,
|
|
872
|
+
lt as f,
|
|
873
|
+
ut as g,
|
|
874
|
+
gt as h,
|
|
875
|
+
ne as i,
|
|
876
|
+
De as j,
|
|
877
|
+
Te as k,
|
|
877
878
|
Je as l,
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
879
|
+
$e as m,
|
|
880
|
+
dt as t,
|
|
881
|
+
se as u
|
|
881
882
|
};
|
package/lib/es/components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as _, G as c, e as E, f as d, c as P, k as N, n as O, b as g, j as I, g as T, h, s as y } from "./chunks/components-DLjI_Xlm.js";
|
|
2
2
|
import "@blocklet/pages-kit/builtin/utils";
|
|
3
3
|
import "@blocklet/pages-kit/types";
|
|
4
4
|
import "@blocklet/pages-kit/utils/builtin";
|
|
@@ -8,18 +8,19 @@ import "@blocklet/sdk/lib/config";
|
|
|
8
8
|
import "lodash/isEmpty";
|
|
9
9
|
import "lru-cache";
|
|
10
10
|
import "node-fetch";
|
|
11
|
+
import "p-limit";
|
|
11
12
|
import "ufo";
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
_ as CUSTOM_COMPONENT_CACHE_DURATION_IN_SECONDS,
|
|
15
|
+
c as GET_SERVER_SIDE_PROPS_TIMEOUT_IN_SECONDS,
|
|
16
|
+
E as clearPreloadComponentsCache,
|
|
17
|
+
d as clearPreloadComponentsCacheByInstanceId,
|
|
18
|
+
P as clearPreloadComponentsCacheByMode,
|
|
19
|
+
N as getComponentFromState,
|
|
20
|
+
O as getComponentFromStateByName,
|
|
21
|
+
g as getExportSchemaValueFromCode,
|
|
22
|
+
I as getPreloadComponent,
|
|
23
|
+
T as getPreloadComponents,
|
|
24
|
+
h as getPreloadComponentsCacheKey,
|
|
25
|
+
y as skipTranspileComponent
|
|
25
26
|
};
|
package/lib/es/home.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "./chunks/state-
|
|
2
|
+
import "./chunks/state-qDCrgEMQ.js";
|
|
3
3
|
import "@arcblock/ux/lib/Locale/context";
|
|
4
4
|
import "@arcblock/ux/lib/Result";
|
|
5
5
|
import "@arcblock/ux/lib/Theme";
|
|
@@ -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/index-
|
|
25
|
-
import { a as R, e as S, P as W, d as j, c as k, b as q, T as v, H as z } from "./chunks/home-
|
|
24
|
+
import "./chunks/index-BpP1FqET.js";
|
|
25
|
+
import { a as R, e as S, P as W, d as j, c as k, b as q, T as v, H as z } from "./chunks/home-DajDpGXA.js";
|
|
26
26
|
import "./chunks/session-Dx5M-1r2.js";
|
|
27
27
|
export {
|
|
28
28
|
R as HomeView,
|
package/lib/es/project-html.js
CHANGED
|
@@ -5,7 +5,7 @@ import { WalletAuthenticator as B } from "@blocklet/sdk/lib/wallet-authenticator
|
|
|
5
5
|
import { WalletHandlers as D } from "@blocklet/sdk/lib/wallet-handler";
|
|
6
6
|
import { BlockletService as K } from "@blocklet/sdk/service/auth";
|
|
7
7
|
import U, { resolve as C } from "path";
|
|
8
|
-
import { l as v, g as W } from "./chunks/components-
|
|
8
|
+
import { l as v, g as W } from "./chunks/components-DLjI_Xlm.js";
|
|
9
9
|
import { e as H, i as N } from "./chunks/html-DOgzvdOd.js";
|
|
10
10
|
import { createSnapshotMiddleware as O } from "@arcblock/crawler-middleware";
|
|
11
11
|
import { PreloadComponentScriptModule as R } from "@blocklet/pages-kit/types";
|
package/lib/es/resources.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as A, a as M, l as b } from "./chunks/components-
|
|
2
|
-
import { P as w, C as J, R as X, S as x, t as W, g as G } from "./chunks/site-state-
|
|
1
|
+
import { i as A, a as M, l as b } from "./chunks/components-DLjI_Xlm.js";
|
|
2
|
+
import { P as w, C as J, R as X, S as x, t as W, g as G } from "./chunks/site-state-DS7eIMFg.js";
|
|
3
3
|
import { Router as K } from "express";
|
|
4
4
|
import a from "fs";
|
|
5
5
|
import m from "joi";
|