@blocklet/pages-kit-inner-components 0.6.72 → 0.6.74

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.
@@ -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-Biqa_a5U.js";
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-Biqa_a5U.js";
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-CjNVgrdz.js";
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-CFzWcpJ3.js")), Ke = X(() => import("./draft-data-BtzZ0_tq.js"));
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, l as kt } from "./state-Biqa_a5U.js";
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-Biqa_a5U.js";
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-DBOWtpCK.js";
14
- import { p as Ce, g as Re } from "./index-CjNVgrdz.js";
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
- }), y = c === "all" ? t.routeIds : c, w = (n) => ({
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,