@blocklet/pages-kit-inner-components 0.6.76 → 0.6.78
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/{draft-data-1hI-ev3X.js → draft-data-CkVvOh60.js} +1 -1
- package/lib/cjs/chunks/{home-BEBAcHLJ.js → home-CjhOAEa7.js} +2 -2
- package/lib/cjs/chunks/html-xfTPTsl5.js +1 -0
- package/lib/cjs/chunks/{index-DC4XWhpO.js → index-CiYwdeK9.js} +1 -1
- package/lib/cjs/chunks/{publish-button-Brxy74Ql.js → publish-button-DV23sfgB.js} +1 -1
- package/lib/cjs/chunks/site-state-CtiXHtSX.js +1 -0
- package/lib/cjs/chunks/state-BdtFHk36.js +1 -0
- package/lib/cjs/home.js +1 -1
- package/lib/cjs/locales.js +2 -2
- package/lib/cjs/project-html.js +1 -1
- 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/{draft-data--WtLtXxy.js → draft-data-BOoVhbon.js} +1 -1
- package/lib/es/chunks/{home-iBLOByRu.js → home-BZB9zOlO.js} +3 -3
- package/lib/es/chunks/{html-DfzaaIYa.js → html-DOgzvdOd.js} +11 -10
- package/lib/es/chunks/{index-BlZcgfTW.js → index-Bggolyu_.js} +2 -2
- package/lib/es/chunks/{publish-button-CHmiGlT7.js → publish-button-Dm2Nce-b.js} +3 -3
- package/lib/es/chunks/{site-state-BXM-5tZw.js → site-state-D4wvb7PN.js} +300 -300
- package/lib/es/chunks/{state-DS2djQbR.js → state-DNdwHwty.js} +173 -165
- package/lib/es/home.js +3 -3
- package/lib/es/locales.js +2 -0
- package/lib/es/project-html.js +1 -1
- package/lib/es/resources.js +1 -1
- package/lib/es/setting.js +680 -670
- package/lib/es/site-state.js +1 -1
- package/package.json +3 -3
- package/lib/cjs/chunks/html-JOhPskS4.js +0 -1
- package/lib/cjs/chunks/site-state-CcYU6tKv.js +0 -1
- package/lib/cjs/chunks/state-BAjDjwwp.js +0 -1
|
@@ -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-DNdwHwty.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-Bggolyu_.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-Dm2Nce-b.js")), Ke = X(() => import("./draft-data-BOoVhbon.js"));
|
|
153
153
|
function Ye({
|
|
154
154
|
mode: t,
|
|
155
155
|
children: o
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createHash as a } from "crypto";
|
|
2
|
+
import "ufo";
|
|
2
3
|
const s = async () => await import("cheerio"), o = {};
|
|
3
4
|
function u(t, e) {
|
|
4
5
|
const n = JSON.stringify([t, e]);
|
|
5
6
|
return a("md5").update(n).digest("hex");
|
|
6
7
|
}
|
|
7
|
-
async function
|
|
8
|
+
async function i(t, e) {
|
|
8
9
|
{
|
|
9
10
|
let n = await s();
|
|
10
11
|
try {
|
|
@@ -17,33 +18,33 @@ async function l(t, e) {
|
|
|
17
18
|
n = null;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
return
|
|
21
|
+
return l(t, e);
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function l(t, e) {
|
|
23
24
|
let n = t;
|
|
24
25
|
return e.forEach((r) => {
|
|
25
26
|
const c = typeof r.selector.pattern == "string" ? new RegExp(r.selector.pattern, "gis") : r.selector.pattern;
|
|
26
27
|
n = n.replace(c, r.value);
|
|
27
28
|
}), n;
|
|
28
29
|
}
|
|
29
|
-
async function
|
|
30
|
+
async function f(t, e) {
|
|
30
31
|
if (!e || e.length === 0)
|
|
31
32
|
return t;
|
|
32
33
|
const n = u(t, e);
|
|
33
|
-
return o[n] ??=
|
|
34
|
+
return o[n] ??= i(t, e).finally(() => {
|
|
34
35
|
setTimeout(() => {
|
|
35
36
|
delete o[n];
|
|
36
37
|
}, 10 * 1e3);
|
|
37
38
|
}), o[n];
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function p(t) {
|
|
40
41
|
return t.match(/<body[^>]*>(.*?)<\/body>/s)?.[1] || "";
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function g(t, e) {
|
|
43
44
|
return !e || Object.keys(e).length === 0 ? !0 : Object.entries(e).every(([n, r]) => t.includes(`${n}=${r}`));
|
|
44
45
|
}
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
p as e,
|
|
48
|
+
f as i,
|
|
49
|
+
g as m
|
|
49
50
|
};
|
|
@@ -13,7 +13,7 @@ import { Link as We, NavLink as Ue, useNavigate as Fe } from "react-router-dom";
|
|
|
13
13
|
import Ve 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 V, f as P, i as vt, k as kt } from "./state-
|
|
16
|
+
import { e as V, f as P, i as vt, k as kt } from "./state-DNdwHwty.js";
|
|
17
17
|
import He 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 Ge } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
@@ -526,7 +526,7 @@ function $r({
|
|
|
526
526
|
const i = I(() => t ? JSON.parse(JSON.stringify(t)) : null, [JSON.stringify(t)]), a = Q(() => {
|
|
527
527
|
if (!i) return {};
|
|
528
528
|
const A = n || o;
|
|
529
|
-
return i.locales?.[A] ?? {};
|
|
529
|
+
return i.locales?.[A] ?? i.locales?.[o] ?? {};
|
|
530
530
|
}, [i, o, n]), l = Q(
|
|
531
531
|
(A = "sx") => {
|
|
532
532
|
const u = a();
|
|
@@ -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-DNdwHwty.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-BZB9zOlO.js";
|
|
14
|
+
import { p as Ce, g as Re } from "./index-Bggolyu_.js";
|
|
15
15
|
function ze(s) {
|
|
16
16
|
const [u, g] = D(!1);
|
|
17
17
|
return /* @__PURE__ */ t(
|