@blocklet/pages-kit-inner-components 0.6.7 → 0.6.9
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-CacZMc0_.js +57 -0
- package/lib/cjs/chunks/{draft-data-D44_IEV2.js → draft-data-CVjF01PQ.js} +1 -1
- package/lib/cjs/chunks/{home-BYk01EUy.js → home-BarvCpAK.js} +2 -2
- package/lib/cjs/chunks/index-DH8UBqWG.js +475 -0
- package/lib/cjs/chunks/{publish-button-C8XPA4g_.js → publish-button-CNo2gT6Q.js} +1 -1
- package/lib/cjs/chunks/site-state-BkjuFb4-.js +1 -0
- package/lib/cjs/chunks/state-DCxHc_MB.js +1 -0
- package/lib/cjs/components.js +1 -1
- package/lib/cjs/home.js +1 -1
- package/lib/cjs/project-html.js +6 -9
- package/lib/cjs/resources.js +1 -1
- package/lib/cjs/setting.js +2 -2
- package/lib/cjs/site-state.js +1 -1
- package/lib/es/add-component.js +2 -2
- package/lib/es/chunks/components-BWQM8y6L.js +608 -0
- package/lib/es/chunks/{draft-data-CafrGKeh.js → draft-data-BiayOfQz.js} +1 -1
- package/lib/es/chunks/{home-DW8SdyfO.js → home-DBc-g4K0.js} +3 -3
- package/lib/es/chunks/{index-D5gXPe_7.js → index-DaF8ujCZ.js} +675 -763
- package/lib/es/chunks/{publish-button-XSZrDaTQ.js → publish-button-DiKDLFU8.js} +3 -3
- package/lib/es/chunks/site-state-BMW2lUR1.js +1586 -0
- package/lib/es/chunks/{state-0gvZF3k2.js → state-C3hsEhCe.js} +117 -121
- package/lib/es/components.js +11 -10
- package/lib/es/home.js +3 -3
- package/lib/es/project-html.js +132 -121
- package/lib/es/resources.js +28 -29
- package/lib/es/setting.js +148 -145
- package/lib/es/site-state.js +16 -15
- package/package.json +3 -3
- package/lib/cjs/chunks/index-BRgYwvuv.js +0 -475
- package/lib/cjs/chunks/site-state-BlQzwACl.js +0 -57
- package/lib/cjs/chunks/state-B6BF5wJ-.js +0 -1
- package/lib/es/chunks/site-state-BdLTu3Od.js +0 -2123
|
@@ -1,75 +1,72 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useLocaleContext as Y } from "@arcblock/ux/lib/Locale/context";
|
|
1
|
+
import { jsx as W } from "react/jsx-runtime";
|
|
2
|
+
import { joinURL as b, withQuery as K } from "ufo";
|
|
3
|
+
import { createAxios as V } from "@blocklet/js-sdk";
|
|
4
|
+
import z from "lodash/isEmpty";
|
|
5
|
+
import * as Q from "yaml";
|
|
6
|
+
import { useLocaleContext as X } from "@arcblock/ux/lib/Locale/context";
|
|
8
7
|
import { nextId as O } from "@blocklet/pages-kit/utils/common";
|
|
9
|
-
import { getPageTemplateModel as
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { getPageTemplateModel as q } from "@blocklet/pages-kit/utils/page-model";
|
|
9
|
+
import "@mui/material";
|
|
10
|
+
import Y, { getYjsDoc as Z } from "@syncedstore/core";
|
|
11
|
+
import { useSyncedStore as H } from "@syncedstore/react";
|
|
12
|
+
import { useLocalStorageState as ee } from "ahooks";
|
|
13
13
|
import { produce as v } from "immer";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { createContext as
|
|
17
|
-
import { useParams as
|
|
18
|
-
import { IndexeddbPersistence as
|
|
19
|
-
import { WebsocketProvider as
|
|
20
|
-
import { UndoManager as
|
|
14
|
+
import T from "lodash/cloneDeep";
|
|
15
|
+
import J from "lodash/debounce";
|
|
16
|
+
import { createContext as te, useState as L, useRef as oe, useMemo as I, useCallback as M, useEffect as x, useContext as ne } from "react";
|
|
17
|
+
import { useParams as re, useNavigate as se } from "react-router-dom";
|
|
18
|
+
import { IndexeddbPersistence as ce } from "y-indexeddb";
|
|
19
|
+
import { WebsocketProvider as ae } from "y-websocket";
|
|
20
|
+
import { UndoManager as ie } from "yjs";
|
|
21
21
|
import "@blocklet/pages-kit/types";
|
|
22
|
-
function
|
|
22
|
+
function de() {
|
|
23
23
|
const { pathname: o } = window.location, l = o.match(/\/admin\/(maker|previewer)\/([^/]+)/)?.[2], p = window.__PROJECT_ID__;
|
|
24
24
|
if (!l && !p)
|
|
25
25
|
throw new Error("Unable to get projectId from pathname");
|
|
26
26
|
return l || p;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function Ue(o) {
|
|
29
29
|
return `${o}:pages:version`;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return r === "yaml" ?
|
|
31
|
+
function Fe(o, r) {
|
|
32
|
+
return r === "yaml" ? z(o) ? "" : Q.stringify(o, { indent: 2 }) : r === "json" ? JSON.parse(JSON.stringify(o || {})) : r === "array" ? JSON.parse(JSON.stringify(o || [])) : o;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
return /* @__PURE__ */ k(V, { children: /* @__PURE__ */ k(K, { severity: "error", children: o.message }) });
|
|
36
|
-
}
|
|
37
|
-
const N = window.blocklet?.prefix || "/", B = Q({
|
|
34
|
+
const k = window.blocklet?.prefix || "/", G = V({
|
|
38
35
|
timeout: 200 * 1e3
|
|
39
|
-
}),
|
|
40
|
-
blocklet?.componentMountPoints.find((o) => o.did ===
|
|
41
|
-
function
|
|
42
|
-
return o && !/^(https?:\/\/|\/)/.test(o) ? window.location.origin + b(
|
|
36
|
+
}), le = window.location.protocol === "https:" ? "wss" : "ws", We = (o) => b(`${le}://${window.location.hostname}`, k, `api/${o}/ws/pages`), ue = "z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9";
|
|
37
|
+
blocklet?.componentMountPoints.find((o) => o.did === ue)?.mountPoint || b(k, "/image-bin");
|
|
38
|
+
function Ke(o) {
|
|
39
|
+
return o && !/^(https?:\/\/|\/)/.test(o) ? window.location.origin + b(k, "uploads", o) : o;
|
|
43
40
|
}
|
|
44
|
-
const
|
|
45
|
-
function
|
|
41
|
+
const pe = window.innerWidth <= 750;
|
|
42
|
+
function Ve(o, r, l) {
|
|
46
43
|
if (!o || /\.gif/.test(o)) return o;
|
|
47
|
-
const p = (
|
|
48
|
-
return
|
|
44
|
+
const p = (pe ? r / 1.5 : r) * (l === "quality" ? 1.5 : 1);
|
|
45
|
+
return me(o, { imageFilter: "resize", w: p, f: "webp" });
|
|
49
46
|
}
|
|
50
|
-
function
|
|
51
|
-
return !o || !r ? o :
|
|
47
|
+
function me(o, r) {
|
|
48
|
+
return !o || !r ? o : K(o, r);
|
|
52
49
|
}
|
|
53
|
-
async function
|
|
54
|
-
return
|
|
50
|
+
async function fe(o) {
|
|
51
|
+
return G.get(`/api/projects/${o}`).then((r) => r.data);
|
|
55
52
|
}
|
|
56
|
-
async function
|
|
57
|
-
return
|
|
53
|
+
async function ge(o) {
|
|
54
|
+
return G.post(`/api/projects/${o.id}/update`, o).then((r) => r.data);
|
|
58
55
|
}
|
|
59
|
-
const
|
|
60
|
-
function
|
|
56
|
+
const Se = 500, B = te(null);
|
|
57
|
+
function ze({
|
|
61
58
|
url: o,
|
|
62
59
|
name: r,
|
|
63
60
|
children: l,
|
|
64
61
|
waitingSynced: p
|
|
65
62
|
}) {
|
|
66
|
-
const [w,
|
|
63
|
+
const [w, h] = L(!1), { locale: m } = X(), P = U(), E = `${P}:MakerLocalState`, e = `${P}:${r}`, [t, s] = ee(E, {
|
|
67
64
|
defaultValue: {},
|
|
68
65
|
listenStorageChange: !0
|
|
69
|
-
}), n =
|
|
66
|
+
}), n = oe(t);
|
|
70
67
|
n.current = t;
|
|
71
68
|
const i = I(
|
|
72
|
-
() =>
|
|
69
|
+
() => Y({
|
|
73
70
|
dataSourceIds: [],
|
|
74
71
|
dataSources: {},
|
|
75
72
|
pages: {},
|
|
@@ -82,10 +79,10 @@ function qe({
|
|
|
82
79
|
resources: {}
|
|
83
80
|
}),
|
|
84
81
|
[]
|
|
85
|
-
), c = I(() =>
|
|
86
|
-
I(() => new
|
|
82
|
+
), c = I(() => Z(i), [i]);
|
|
83
|
+
I(() => new ce(e, c), [e, c]);
|
|
87
84
|
const a = I(
|
|
88
|
-
() => new
|
|
85
|
+
() => new ae(o, e, c, {
|
|
89
86
|
params: {},
|
|
90
87
|
resyncInterval: 5 * 60 * 1e3
|
|
91
88
|
}),
|
|
@@ -93,7 +90,7 @@ function qe({
|
|
|
93
90
|
), d = M(() => {
|
|
94
91
|
a && (a.disconnect(), a.connect());
|
|
95
92
|
}, [a]), f = I(
|
|
96
|
-
() => new
|
|
93
|
+
() => new ie(
|
|
97
94
|
[
|
|
98
95
|
c.getArray("pageIds"),
|
|
99
96
|
c.getMap("pages"),
|
|
@@ -107,41 +104,41 @@ function qe({
|
|
|
107
104
|
{ doc: c }
|
|
108
105
|
),
|
|
109
106
|
[c]
|
|
110
|
-
), [C, j] =
|
|
107
|
+
), [C, j] = L(null), [N, A] = L(!1), [R, _] = L(void 0), $ = M(async () => {
|
|
111
108
|
if (P) {
|
|
112
|
-
|
|
109
|
+
A(!0);
|
|
113
110
|
try {
|
|
114
|
-
const u = await
|
|
111
|
+
const u = await fe(P);
|
|
115
112
|
j(u);
|
|
116
113
|
} catch (u) {
|
|
117
114
|
console.error("Failed to fetch project:", u);
|
|
118
115
|
} finally {
|
|
119
|
-
|
|
116
|
+
A(!1);
|
|
120
117
|
}
|
|
121
118
|
}
|
|
122
|
-
}, [P]),
|
|
119
|
+
}, [P]), D = M(
|
|
123
120
|
async (u, g) => {
|
|
124
|
-
if (
|
|
121
|
+
if (_(void 0), !!P) {
|
|
125
122
|
g?.optimisticUpdate && C && j((S) => ({
|
|
126
123
|
...S,
|
|
127
124
|
...u
|
|
128
125
|
}));
|
|
129
126
|
try {
|
|
130
|
-
const S = await
|
|
127
|
+
const S = await ge({
|
|
131
128
|
...u
|
|
132
129
|
});
|
|
133
130
|
j(S);
|
|
134
131
|
} catch (S) {
|
|
135
|
-
console.error("Failed to update project:", S), g?.optimisticUpdate && j(C),
|
|
132
|
+
console.error("Failed to update project:", S), g?.optimisticUpdate && j(C), _(S?.response?.data);
|
|
136
133
|
}
|
|
137
134
|
}
|
|
138
135
|
},
|
|
139
136
|
[P, C]
|
|
140
137
|
);
|
|
141
|
-
|
|
142
|
-
P &&
|
|
143
|
-
}, [P,
|
|
144
|
-
const
|
|
138
|
+
x(() => {
|
|
139
|
+
P && $();
|
|
140
|
+
}, [P, $]);
|
|
141
|
+
const F = I(
|
|
145
142
|
() => ({
|
|
146
143
|
doc: c,
|
|
147
144
|
state: i,
|
|
@@ -154,10 +151,10 @@ function qe({
|
|
|
154
151
|
undoManager: f,
|
|
155
152
|
projectState: {
|
|
156
153
|
project: C,
|
|
157
|
-
isLoadingProject:
|
|
158
|
-
error:
|
|
154
|
+
isLoadingProject: N,
|
|
155
|
+
error: R
|
|
159
156
|
},
|
|
160
|
-
updateProject:
|
|
157
|
+
updateProject: D,
|
|
161
158
|
forceSync: d
|
|
162
159
|
}),
|
|
163
160
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -169,48 +166,48 @@ function qe({
|
|
|
169
166
|
s,
|
|
170
167
|
f,
|
|
171
168
|
C,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
169
|
+
N,
|
|
170
|
+
D,
|
|
171
|
+
R,
|
|
175
172
|
m,
|
|
176
173
|
d
|
|
177
174
|
]
|
|
178
175
|
);
|
|
179
|
-
return
|
|
176
|
+
return x(() => {
|
|
180
177
|
f.on("stack-item-added", ({ stackItem: u }) => {
|
|
181
|
-
const { currentPageId: g, currentLocale: S, pages:
|
|
182
|
-
u.meta.set("localState", { currentPageId: g, currentLocale: S, pages:
|
|
178
|
+
const { currentPageId: g, currentLocale: S, pages: y } = n.current;
|
|
179
|
+
u.meta.set("localState", { currentPageId: g, currentLocale: S, pages: y });
|
|
183
180
|
}), f.on("stack-item-popped", ({ stackItem: u }) => {
|
|
184
181
|
const g = u.meta.get("localState");
|
|
185
182
|
g && s((S) => ({ ...S, ...g }));
|
|
186
183
|
});
|
|
187
|
-
}, [f, s]),
|
|
184
|
+
}, [f, s]), x(() => {
|
|
188
185
|
a.awareness.setLocalState(t);
|
|
189
|
-
}, [a, t]),
|
|
190
|
-
a.once("synced", () =>
|
|
186
|
+
}, [a, t]), x(() => {
|
|
187
|
+
a.once("synced", () => h(!0));
|
|
191
188
|
const u = () => {
|
|
192
|
-
s((
|
|
193
|
-
...
|
|
189
|
+
s((y) => ({
|
|
190
|
+
...y,
|
|
194
191
|
networkStatus: void 0
|
|
195
192
|
}));
|
|
196
193
|
}, g = () => {
|
|
197
|
-
s((
|
|
198
|
-
...
|
|
194
|
+
s((y) => ({
|
|
195
|
+
...y,
|
|
199
196
|
networkStatus: "offline"
|
|
200
197
|
}));
|
|
201
|
-
}, S =
|
|
202
|
-
|
|
203
|
-
},
|
|
198
|
+
}, S = J(({ status: y }) => {
|
|
199
|
+
y === "connected" ? u() : y === "disconnected" && g();
|
|
200
|
+
}, Se);
|
|
204
201
|
return a.on("status", S), window.addEventListener("online", u), window.addEventListener("offline", g), () => {
|
|
205
202
|
a.off("status", S), window.removeEventListener("online", u), window.removeEventListener("offline", g);
|
|
206
203
|
};
|
|
207
|
-
}, [a, s]), p && !w ? null : /* @__PURE__ */
|
|
204
|
+
}, [a, s]), p && !w ? null : /* @__PURE__ */ W(B.Provider, { value: F, children: l });
|
|
208
205
|
}
|
|
209
|
-
const
|
|
210
|
-
const o =
|
|
206
|
+
const Pe = () => {
|
|
207
|
+
const o = ne(B);
|
|
211
208
|
if (!o)
|
|
212
209
|
throw new Error("Context is null");
|
|
213
|
-
const r =
|
|
210
|
+
const r = H(o.state), { setLocalState: l, localState: p } = o, w = se(), h = U(), m = I(
|
|
214
211
|
() => ({
|
|
215
212
|
get currentPage() {
|
|
216
213
|
const {
|
|
@@ -286,21 +283,21 @@ const Ie = () => {
|
|
|
286
283
|
get currentPageModel() {
|
|
287
284
|
const e = this.currentPage ?? null;
|
|
288
285
|
if (e)
|
|
289
|
-
return
|
|
286
|
+
return q(e, !1);
|
|
290
287
|
}
|
|
291
288
|
}),
|
|
292
289
|
[JSON.stringify(p), r]
|
|
293
290
|
), P = I(
|
|
294
291
|
() => ({
|
|
295
292
|
setCurrentSectionId: (e, t) => {
|
|
296
|
-
e === p.currentPageId && t === p.pages?.[e]?.currentSectionId || (w(b("/admin/maker",
|
|
293
|
+
e === p.currentPageId && t === p.pages?.[e]?.currentSectionId || (w(b("/admin/maker", h ?? "", "pages", e)), l(
|
|
297
294
|
(s) => v(s, (n) => {
|
|
298
295
|
n.currentPageId = e, n.currentComponentId = void 0, t !== void 0 && (n.pages ??= {}, n.pages[e] ??= {}, n.pages[e].currentSectionId = t ?? void 0), t ? window.sessionStorage.setItem("iframe_show_id", `"${t}"`) : window.sessionStorage.removeItem("iframe_show_id");
|
|
299
296
|
})
|
|
300
297
|
));
|
|
301
298
|
},
|
|
302
299
|
setCurrentComponentId: (e) => {
|
|
303
|
-
e !== p.currentComponentId && (w(b("/admin/maker",
|
|
300
|
+
e !== p.currentComponentId && (w(b("/admin/maker", h ?? "", "components", e)), l(
|
|
304
301
|
(t) => v(t, (s) => {
|
|
305
302
|
s.currentComponentId = e;
|
|
306
303
|
})
|
|
@@ -317,12 +314,12 @@ const Ie = () => {
|
|
|
317
314
|
setCustomComponentPreviewerProperties: (() => {
|
|
318
315
|
const e = {};
|
|
319
316
|
let t = "";
|
|
320
|
-
const s =
|
|
317
|
+
const s = J(() => {
|
|
321
318
|
l(
|
|
322
319
|
(n) => v(n, (i) => {
|
|
323
320
|
i.customComponentPreviewerProperties ??= {}, i.customComponentPreviewerProperties[t] = {
|
|
324
321
|
...i.customComponentPreviewerProperties[t],
|
|
325
|
-
...
|
|
322
|
+
...T(e[t])
|
|
326
323
|
}, delete e[t];
|
|
327
324
|
})
|
|
328
325
|
);
|
|
@@ -352,7 +349,7 @@ const Ie = () => {
|
|
|
352
349
|
);
|
|
353
350
|
}
|
|
354
351
|
}),
|
|
355
|
-
[l, w,
|
|
352
|
+
[l, w, h, m]
|
|
356
353
|
), E = I(
|
|
357
354
|
() => ({
|
|
358
355
|
addPage: (e, t) => {
|
|
@@ -425,7 +422,7 @@ const Ie = () => {
|
|
|
425
422
|
id: t.id ?? O(),
|
|
426
423
|
isTemplateSection: t.isTemplateSection ?? !0,
|
|
427
424
|
llmConfig: t.llmConfig ?? {}
|
|
428
|
-
}, a =
|
|
425
|
+
}, a = T(c.locales);
|
|
429
426
|
return delete c.locales, o.doc.transact(() => {
|
|
430
427
|
if (n && n.component === "layout-block") {
|
|
431
428
|
const d = m.currentPageModel?.getComponentById(n.id);
|
|
@@ -486,7 +483,7 @@ const Ie = () => {
|
|
|
486
483
|
const n = m.currentPageModel?.getComponentById(t);
|
|
487
484
|
if (!n?.model)
|
|
488
485
|
throw new Error(`Section ${t} is not exists`);
|
|
489
|
-
const i = JSON.parse(JSON.stringify(n.model)), c =
|
|
486
|
+
const i = JSON.parse(JSON.stringify(n.model)), c = he(i), a = c.id, d = n?.parent;
|
|
490
487
|
return d && (d.model.sections[a] = c, d.model.sectionIds.push(a), P.setCurrentSectionId(e, a), m.currentPage?.dataSource?.[t] && (m.currentPage.dataSource[a] = JSON.parse(
|
|
491
488
|
JSON.stringify(m.currentPage.dataSource[t])
|
|
492
489
|
))), c;
|
|
@@ -517,11 +514,11 @@ const Ie = () => {
|
|
|
517
514
|
localActions: P,
|
|
518
515
|
...m
|
|
519
516
|
};
|
|
520
|
-
},
|
|
521
|
-
const { projectId: o } =
|
|
522
|
-
return o ??
|
|
523
|
-
},
|
|
524
|
-
function
|
|
517
|
+
}, U = () => {
|
|
518
|
+
const { projectId: o } = re();
|
|
519
|
+
return o ?? de() ?? "";
|
|
520
|
+
}, Qe = () => window.__PROJECT_SLUG__ ?? "";
|
|
521
|
+
function we(o) {
|
|
525
522
|
const { resources: r } = o;
|
|
526
523
|
if (!r.components)
|
|
527
524
|
return {};
|
|
@@ -529,24 +526,24 @@ function he(o) {
|
|
|
529
526
|
return window?.blocklet?.componentMountPoints?.forEach((p) => {
|
|
530
527
|
l[p.did] = p;
|
|
531
528
|
}), Object.fromEntries(
|
|
532
|
-
Object.entries(r.components).map(([p, { blockletId: w, component:
|
|
529
|
+
Object.entries(r.components).map(([p, { blockletId: w, component: h }]) => [
|
|
533
530
|
p,
|
|
534
|
-
{ data:
|
|
531
|
+
{ data: h, blockletId: w, blockletTitle: l[w]?.title || w }
|
|
535
532
|
])
|
|
536
533
|
);
|
|
537
534
|
}
|
|
538
|
-
function
|
|
535
|
+
function Ie(o) {
|
|
539
536
|
const { components: r } = o;
|
|
540
537
|
return r || {};
|
|
541
538
|
}
|
|
542
|
-
function
|
|
539
|
+
function ye(o) {
|
|
543
540
|
return {
|
|
544
|
-
...
|
|
545
|
-
...
|
|
541
|
+
...we(o),
|
|
542
|
+
...Ie(o)
|
|
546
543
|
};
|
|
547
544
|
}
|
|
548
|
-
const
|
|
549
|
-
function
|
|
545
|
+
const Xe = () => ye(Pe().state);
|
|
546
|
+
function he(o) {
|
|
550
547
|
const r = JSON.parse(JSON.stringify(o)), l = O();
|
|
551
548
|
return {
|
|
552
549
|
...r,
|
|
@@ -554,20 +551,19 @@ function Ce(o) {
|
|
|
554
551
|
};
|
|
555
552
|
}
|
|
556
553
|
export {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
F as u
|
|
554
|
+
ze as S,
|
|
555
|
+
Pe as a,
|
|
556
|
+
Ue as b,
|
|
557
|
+
ye as c,
|
|
558
|
+
Qe as d,
|
|
559
|
+
Ve as e,
|
|
560
|
+
Ke as f,
|
|
561
|
+
We as g,
|
|
562
|
+
Xe as h,
|
|
563
|
+
G as i,
|
|
564
|
+
Ie as j,
|
|
565
|
+
we as k,
|
|
566
|
+
de as l,
|
|
567
|
+
Fe as t,
|
|
568
|
+
U as u
|
|
573
569
|
};
|
package/lib/es/components.js
CHANGED
|
@@ -8,17 +8,18 @@ import "lru-cache";
|
|
|
8
8
|
import "node-fetch";
|
|
9
9
|
import "ufo";
|
|
10
10
|
import "lodash/isEmpty";
|
|
11
|
-
import {
|
|
11
|
+
import { C as S, G as _, e as c, f as E, c as d, k as P, n as N, b as O, j as g, g as I, h as T, s as h } from "./chunks/components-BWQM8y6L.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
S as CUSTOM_COMPONENT_CACHE_DURATION_IN_SECONDS,
|
|
14
|
+
_ as GET_SERVER_SIDE_PROPS_TIMEOUT_IN_SECONDS,
|
|
15
|
+
c as clearPreloadComponentsCache,
|
|
16
|
+
E as clearPreloadComponentsCacheByInstanceId,
|
|
16
17
|
d as clearPreloadComponentsCacheByMode,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
P as getComponentFromState,
|
|
19
|
+
N as getComponentFromStateByName,
|
|
20
|
+
O as getExportSchemaValueFromCode,
|
|
21
|
+
g as getPreloadComponent,
|
|
22
|
+
I as getPreloadComponents,
|
|
22
23
|
T as getPreloadComponentsCacheKey,
|
|
23
|
-
h as
|
|
24
|
+
h as skipTranspileComponent
|
|
24
25
|
};
|
package/lib/es/home.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "./chunks/state-
|
|
2
|
+
import "./chunks/state-C3hsEhCe.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, P as S, d as W, c as j, b as k, T as q, H as v } from "./chunks/home-
|
|
24
|
+
import "./chunks/index-DaF8ujCZ.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-DBc-g4K0.js";
|
|
26
26
|
import "./chunks/session-C72Dq8zg.js";
|
|
27
27
|
export {
|
|
28
28
|
R as HomeView,
|