@blocklet/pages-kit-inner-components 0.6.72 → 0.6.73
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 +12 -12
- package/lib/cjs/chunks/{draft-data-DfZ81oCU.js → draft-data-1hI-ev3X.js} +1 -1
- package/lib/cjs/chunks/{home-CP3WKJ_e.js → home-ymdnbwRQ.js} +2 -2
- package/lib/cjs/chunks/{index-BqynZDZ3.js → index-BAiZumV7.js} +1 -1
- package/lib/cjs/chunks/{publish-button-t3lAZwFy.js → publish-button-45a3egG-.js} +1 -1
- package/lib/cjs/chunks/{site-state-BRYYpS9Q.js → site-state-CcYU6tKv.js} +1 -1
- package/lib/cjs/chunks/state-BAjDjwwp.js +1 -0
- package/lib/cjs/home.js +1 -1
- package/lib/cjs/locales.js +2 -2
- 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 +274 -242
- package/lib/es/chunks/{draft-data-BtzZ0_tq.js → draft-data--WtLtXxy.js} +1 -1
- package/lib/es/chunks/{home-DBOWtpCK.js → home-BIH-BNIG.js} +3 -3
- package/lib/es/chunks/{index-CjNVgrdz.js → index-Cj977HLf.js} +1 -1
- package/lib/es/chunks/{publish-button-CFzWcpJ3.js → publish-button-Dn3ikSo5.js} +3 -3
- package/lib/es/chunks/{site-state-DYm1fKT3.js → site-state-BXM-5tZw.js} +5 -1
- package/lib/es/chunks/state-DS2djQbR.js +873 -0
- package/lib/es/home.js +3 -3
- package/lib/es/locales.js +20 -4
- package/lib/es/resources.js +1 -1
- package/lib/es/setting.js +829 -799
- package/lib/es/site-state.js +1 -1
- package/package.json +3 -3
- package/lib/cjs/chunks/state-BP5DoD6I.js +0 -1
- package/lib/es/chunks/state-Biqa_a5U.js +0 -685
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as a, S as o, g as s, a as n } from "./state-
|
|
2
|
+
import { u as a, S as o, g as s, a as n } from "./state-DS2djQbR.js";
|
|
3
3
|
function d({ children: t }) {
|
|
4
4
|
const r = a();
|
|
5
5
|
return /* @__PURE__ */ e(o, { url: s(r ?? ""), name: "root", waitingSynced: !0, children: /* @__PURE__ */ e(i, { children: t }) });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as T } from "react/jsx-runtime";
|
|
2
|
-
import { u as N, c as U, d as se, e as ie, f as le, b as ce } from "./state-
|
|
2
|
+
import { u as N, c as U, d as se, e as ie, f as le, b as ce } from "./state-DS2djQbR.js";
|
|
3
3
|
import { useLocaleContext as W } from "@arcblock/ux/lib/Locale/context";
|
|
4
4
|
import V from "@arcblock/ux/lib/Result";
|
|
5
5
|
import { styled as M, useTheme as ue } from "@arcblock/ux/lib/Theme";
|
|
@@ -21,7 +21,7 @@ import { Helmet as Se } from "react-helmet";
|
|
|
21
21
|
import { useSearchParams as Z, Routes as Ce, Route as S, Navigate as Ie, ScrollRestoration as Te } from "react-router-dom";
|
|
22
22
|
import { useAsync as ee } from "react-use";
|
|
23
23
|
import { joinURL as P } from "ufo";
|
|
24
|
-
import { u as Re, S as je, i as D, P as Me, a as Oe, R as Ee, B as Le, b as te, g as Ae } from "./index-
|
|
24
|
+
import { u as Re, S as je, i as D, P as Me, a as Oe, R as Ee, B as Le, b as te, g as Ae } from "./index-Cj977HLf.js";
|
|
25
25
|
import Be from "@blocklet/ui-react/lib/Footer";
|
|
26
26
|
import "webfontloader";
|
|
27
27
|
import { u as _e, a as Fe } from "./session-Dx5M-1r2.js";
|
|
@@ -149,7 +149,7 @@ function Ge({ mode: t }) {
|
|
|
149
149
|
}
|
|
150
150
|
return /* @__PURE__ */ e(Ke, { children: ({ state: o }) => /* @__PURE__ */ e(L, { mode: t, state: o }) });
|
|
151
151
|
}
|
|
152
|
-
const qe = X(() => import("./publish-button-
|
|
152
|
+
const qe = X(() => import("./publish-button-Dn3ikSo5.js")), Ke = X(() => import("./draft-data--WtLtXxy.js"));
|
|
153
153
|
function Ye({
|
|
154
154
|
mode: t,
|
|
155
155
|
children: o
|
|
@@ -13,7 +13,7 @@ import { Link as ze, NavLink as We, useNavigate as Ue } from "react-router-dom";
|
|
|
13
13
|
import Fe from "@arcblock/ux/lib/Button";
|
|
14
14
|
import ft from "is-uri";
|
|
15
15
|
import { Icon as Xt } from "@iconify-icon/react";
|
|
16
|
-
import { e as H, f as N, i as vt,
|
|
16
|
+
import { e as H, f as N, i as vt, k as kt } from "./state-DS2djQbR.js";
|
|
17
17
|
import Ve from "@blocklet/pages-kit/builtin/markdown/markdown-renderer";
|
|
18
18
|
import { useColorConvert as Kt } from "@blocklet/pages-kit/contexts/color";
|
|
19
19
|
import { materialDark as He } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
-
import { u as ae, b as le } from "./state-
|
|
2
|
+
import { u as ae, b as le } from "./state-DS2djQbR.js";
|
|
3
3
|
import { useLocaleContext as G } from "@arcblock/ux/lib/Locale/context";
|
|
4
4
|
import q from "@arcblock/ux/lib/Toast";
|
|
5
5
|
import { generateParamCombinations as ce } from "@blocklet/pages-kit/utils/route";
|
|
@@ -10,8 +10,8 @@ import { produce as De } from "immer";
|
|
|
10
10
|
import Z from "lodash/difference";
|
|
11
11
|
import { useState as D, useMemo as C, useCallback as O, useImperativeHandle as Oe, useEffect as E, useRef as Ae } from "react";
|
|
12
12
|
import { useAsync as je } from "react-use";
|
|
13
|
-
import { L as ve } from "./home-
|
|
14
|
-
import { p as Ce, g as Re } from "./index-
|
|
13
|
+
import { L as ve } from "./home-BIH-BNIG.js";
|
|
14
|
+
import { p as Ce, g as Re } from "./index-Cj977HLf.js";
|
|
15
15
|
function ze(s) {
|
|
16
16
|
const [u, g] = D(!1);
|
|
17
17
|
return /* @__PURE__ */ t(
|
|
@@ -908,7 +908,11 @@ async function Jt(t, {
|
|
|
908
908
|
state: t,
|
|
909
909
|
pageIds: l,
|
|
910
910
|
componentIds: a === "all" ? Object.keys(t.components) : a
|
|
911
|
-
})
|
|
911
|
+
});
|
|
912
|
+
Object.entries(t.components).forEach(([n, S]) => {
|
|
913
|
+
S.data?.renderer?.type === "component-template" && p.push(n);
|
|
914
|
+
});
|
|
915
|
+
const y = c === "all" ? t.routeIds : c, w = (n) => ({
|
|
912
916
|
id: n.id,
|
|
913
917
|
name: n.name,
|
|
914
918
|
isTemplateSection: n.isTemplateSection ?? !1,
|