@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.
Files changed (34) hide show
  1. package/lib/cjs/add-component.js +1 -1
  2. package/lib/cjs/chunks/components-BmFOXvb0.js +57 -0
  3. package/lib/cjs/chunks/{draft-data-CkVvOh60.js → draft-data-e1KnFlxv.js} +1 -1
  4. package/lib/cjs/chunks/{home-DdN3Z-6B.js → home-DHmHyTMb.js} +10 -10
  5. package/lib/cjs/chunks/{index-B-Wh6PRT.js → index-Cu2Jg8OH.js} +24 -24
  6. package/lib/cjs/chunks/{publish-button-BtLFUEny.js → publish-button-Do7oJLSH.js} +1 -1
  7. package/lib/cjs/chunks/site-state-BQySNTiP.js +1 -0
  8. package/lib/cjs/chunks/state-DU3L5Lve.js +1 -0
  9. package/lib/cjs/components.js +1 -1
  10. package/lib/cjs/home.js +1 -1
  11. package/lib/cjs/project-html.js +1 -1
  12. package/lib/cjs/resources.js +1 -1
  13. package/lib/cjs/setting.js +3 -3
  14. package/lib/cjs/site-state.js +1 -1
  15. package/lib/es/add-component.js +2 -2
  16. package/lib/es/chunks/components-DLjI_Xlm.js +615 -0
  17. package/lib/es/chunks/{draft-data-BOoVhbon.js → draft-data-DRdPzuGm.js} +1 -1
  18. package/lib/es/chunks/{home-DVTVPkSm.js → home-DajDpGXA.js} +123 -123
  19. package/lib/es/chunks/{index-DENjTU8O.js → index-BpP1FqET.js} +239 -238
  20. package/lib/es/chunks/{publish-button-BVcMw8Fh.js → publish-button-8kEbdc0k.js} +3 -3
  21. package/lib/es/chunks/site-state-DS7eIMFg.js +1684 -0
  22. package/lib/es/chunks/{state-DNdwHwty.js → state-qDCrgEMQ.js} +114 -113
  23. package/lib/es/components.js +14 -13
  24. package/lib/es/home.js +3 -3
  25. package/lib/es/project-html.js +1 -1
  26. package/lib/es/resources.js +2 -2
  27. package/lib/es/setting.js +415 -413
  28. package/lib/es/site-state.js +2 -2
  29. package/package.json +7 -7
  30. package/lib/cjs/chunks/components-DsHjikTX.js +0 -57
  31. package/lib/cjs/chunks/site-state-DlLhHuIr.js +0 -1
  32. package/lib/cjs/chunks/state-BdtFHk36.js +0 -1
  33. package/lib/es/chunks/components-BIhMGXjB.js +0 -610
  34. package/lib/es/chunks/site-state-CN4Kulgk.js +0 -1671
@@ -1,67 +1,68 @@
1
- import { jsx as de } from "react/jsx-runtime";
2
- import { joinURL as F, withQuery as ue } from "ufo";
3
- import { createAxios as le } from "@blocklet/js-sdk";
4
- import pe from "lodash/isEmpty";
5
- import * as me from "yaml";
6
- import { useLocaleContext as fe } from "@arcblock/ux/lib/Locale/context";
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 ge } from "@blocklet/pages-kit/utils/page-model";
9
+ import { getPageTemplateModel as Se } from "@blocklet/pages-kit/utils/page-model";
9
10
  import "@mui/material";
10
- import Se, { getYjsDoc as Ie } from "@syncedstore/core";
11
- import { useSyncedStore as Pe } from "@syncedstore/react";
12
- import { useLocalStorageState as ye } from "ahooks";
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 ee from "lodash/debounce";
16
- import { createContext as we, useState as W, useRef as te, useMemo as j, useCallback as M, useEffect as V, useContext as Ce } from "react";
17
- import { useParams as he, useNavigate as ve } from "react-router-dom";
18
- import { IndexeddbPersistence as Oe } from "y-indexeddb";
19
- import { WebsocketProvider as be } from "y-websocket";
20
- import { UndoManager as xe } from "yjs";
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 Ee() {
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 st(o) {
29
+ function at(o) {
29
30
  return `${o}:pages:version`;
30
31
  }
31
- function it(o, n) {
32
- return n === "yaml" ? pe(o) ? "" : me.stringify(o, { indent: 2 }) : n === "json" ? JSON.parse(JSON.stringify(o || {})) : n === "array" ? JSON.parse(JSON.stringify(o || [])) : o;
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 || "/", oe = le({
35
+ const Q = window.blocklet?.prefix || "/", ne = pe({
35
36
  timeout: 200 * 1e3
36
- }), Te = window.location.protocol === "https:" ? "wss" : "ws", at = (o) => F(`${Te}://${window.location.hostname}`, Q, `api/${o}/ws/pages`), ke = "z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9";
37
- blocklet?.componentMountPoints.find((o) => o.did === ke)?.mountPoint || F(Q, "/image-bin");
38
- function dt(o) {
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 Ne = window.innerWidth <= 750;
42
- function ut(o, n, I) {
42
+ const Le = window.innerWidth <= 750;
43
+ function pt(o, n, I) {
43
44
  if (!o || /\.gif/.test(o)) return o;
44
- const f = (Ne ? n / 1.5 : n) * (I === "quality" ? 1.5 : 1);
45
- return Le(o, { imageFilter: "resize", w: f, f: "webp" });
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 Le(o, n) {
48
- return !o || !n ? o : ue(o, n);
48
+ function Me(o, n) {
49
+ return !o || !n ? o : le(o, n);
49
50
  }
50
51
  async function je(o) {
51
- return oe.get(`/api/projects/${o}`).then((n) => n.data);
52
+ return ne.get(`/api/projects/${o}`).then((n) => n.data);
52
53
  }
53
- async function Me(o) {
54
- return oe.post(`/api/projects/${o.id}/update`, o).then((n) => n.data);
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 ne(o, n = {}) {
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 && ne(f, n);
61
+ f && re(f, n);
61
62
  }), n;
62
63
  }
63
- function Ae(o, n) {
64
- const I = X(o.id), f = n.section, O = ne(f);
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 De = 500, re = we(null);
82
- function lt({
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: A } = fe(), h = ce(), k = `${h}:MakerLocalState`, b = `${h}:${n}`, [v, S] = ye(k, {
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
- }), J = te(v);
92
- J.current = v;
93
- const $ = j(
94
- () => Se({
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 = j(() => Ie($), [$]);
108
- j(() => new Oe(b, y), [b, y]);
109
- const C = j(
110
- () => new be(o, b, y, {
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 = j(
118
- () => new xe(
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 Me({
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 = j(
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: A
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
- JSON.stringify(v),
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
- A,
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 } = J.current;
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 = ee(({ status: T }) => {
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 se = Date.now();
232
+ const ie = Date.now();
232
233
  let H = 0;
233
- const ie = Math.ceil(N / P), Y = () => {
234
+ const ae = Math.ceil(N / P), Y = () => {
234
235
  H++;
235
- const ae = Date.now() - se;
236
+ const de = Date.now() - ie;
236
237
  if (C.wsconnected) {
237
238
  x();
238
239
  return;
239
240
  }
240
- if (ae >= N || H >= ie) {
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
- }, De), D = () => {
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", D), window.addEventListener("offline", G), C.wsconnected && x(), () => {
256
- a && clearTimeout(a), C.off("status", L), window.removeEventListener("online", D), window.removeEventListener("offline", G);
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__ */ de(re.Provider, { value: p, children: I });
259
+ }, [C, S]), f && !O ? null : /* @__PURE__ */ ue(ce.Provider, { value: p, children: I });
259
260
  }
260
- const _e = () => {
261
- const o = Ce(re);
261
+ const Re = () => {
262
+ const o = he(ce);
262
263
  if (!o)
263
264
  throw new Error("Context is null");
264
- const n = Pe(o.state), { setLocalState: I, localState: f } = o, O = ve(), w = ce(), A = te({}), h = M(
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 : (A.current[e] || (A.current[e] = {
268
- page: Ae(t, t.renderer)
269
- }), A.current[e]?.page);
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 = j(
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 ge(e, !1);
403
+ return Se(e, !1);
403
404
  }
404
405
  }),
405
- [JSON.stringify(f), n]
406
- ), J = j(() => {
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]), $ = M(
425
- () => J?.kind === "component-template" ? J : void 0,
426
- [J]
427
- ), y = j(
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 = ee(() => {
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], D = L ? g.sections?.[L] : void 0;
518
- E && D && s(E, D);
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 = j(
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 D = l.getComponentById(E), G = l.getComponentById(L);
676
- if (!D || !G || D.model.component !== "layout-block")
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
- }, ce = () => {
814
- const { projectId: o } = he();
815
- return o ?? Ee() ?? "";
816
- }, pt = () => window.__PROJECT_SLUG__ ?? "";
817
- function Re(o) {
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 $e(o) {
836
+ function Be(o) {
836
837
  return {
837
- ...Re(o),
838
+ ...$e(o),
838
839
  ...Je(o)
839
840
  };
840
841
  }
841
- const mt = () => $e(_e().state);
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 A = n.sections?.[w], h = z(n.sections?.[w]), k = h.id;
847
- return A?.id === n.config?.backgroundSectionId && (f.backgroundSectionId = h.id), n.config?.gridSettings && Object.keys(n.config.gridSettings).forEach((b) => {
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
- lt as S,
866
- _e as a,
867
- st as b,
868
- $e as c,
869
- pt as d,
870
- ut as e,
871
- dt as f,
872
- at as g,
873
- mt as h,
874
- oe as i,
875
- Ae as j,
876
- Ee as k,
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
- Re as m,
879
- it as t,
880
- ce as u
879
+ $e as m,
880
+ dt as t,
881
+ se as u
881
882
  };
@@ -1,4 +1,4 @@
1
- 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-BIhMGXjB.js";
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
- 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,
17
- d as clearPreloadComponentsCacheByMode,
18
- P as getComponentFromState,
19
- N as getComponentFromStateByName,
20
- O as getExportSchemaValueFromCode,
21
- g as getPreloadComponent,
22
- I as getPreloadComponents,
23
- T as getPreloadComponentsCacheKey,
24
- h as skipTranspileComponent
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-DNdwHwty.js";
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-DENjTU8O.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-DVTVPkSm.js";
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,
@@ -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-BIhMGXjB.js";
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";
@@ -1,5 +1,5 @@
1
- import { i as A, a as M, l as b } from "./chunks/components-BIhMGXjB.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-CN4Kulgk.js";
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";