@blocklet/pages-kit-inner-components 0.5.45 → 0.5.48

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 (35) hide show
  1. package/lib/cjs/add-component.js +19 -19
  2. package/lib/cjs/chunks/{array-Cip5uTnI.js → array-BqHuYyfx.js} +1 -1
  3. package/lib/cjs/chunks/{config-string-CEipCOnU.js → config-string-4bVR9Vc8.js} +1 -1
  4. package/lib/cjs/chunks/{draft-data-F0V4PcIs.js → draft-data-CuZfaQ4s.js} +1 -1
  5. package/lib/cjs/chunks/{home-BCFoaIEZ.js → home-CQTuGad2.js} +3 -3
  6. package/lib/cjs/chunks/{publish-button-Bbd4z1_d.js → publish-button-1xmfwN7o.js} +1 -1
  7. package/lib/cjs/chunks/site-state-BtZ8o3J2.js +57 -0
  8. package/lib/cjs/chunks/state-BVdbNJCA.js +1 -0
  9. package/lib/cjs/components.js +1 -1
  10. package/lib/cjs/home.js +1 -1
  11. package/lib/cjs/locales.js +2 -2
  12. package/lib/cjs/project-html.js +1 -1
  13. package/lib/cjs/resources.js +1 -1
  14. package/lib/cjs/setting.js +3 -3
  15. package/lib/cjs/site-state.js +1 -1
  16. package/lib/cjs/theme.js +1 -1
  17. package/lib/es/add-component.js +18 -17
  18. package/lib/es/chunks/{array-DM0x2Sjw.js → array-c6HYTLze.js} +1 -1
  19. package/lib/es/chunks/{config-string-Dw6sJMn_.js → config-string-WMpFf-7V.js} +1 -1
  20. package/lib/es/chunks/{draft-data-sTSk4UTm.js → draft-data-CWM--ooz.js} +1 -1
  21. package/lib/es/chunks/{home-ClxOpmCx.js → home-DQjaiv2F.js} +4 -4
  22. package/lib/es/chunks/{publish-button-CKXdANG9.js → publish-button-wYeS7m-g.js} +3 -3
  23. package/lib/es/chunks/{site-state-BeEHvakk.js → site-state-D-moj9fA.js} +527 -550
  24. package/lib/es/chunks/{state-COB6reM7.js → state-l--dTdHq.js} +87 -88
  25. package/lib/es/components.js +1 -1
  26. package/lib/es/home.js +3 -3
  27. package/lib/es/locales.js +2 -2
  28. package/lib/es/project-html.js +1 -1
  29. package/lib/es/resources.js +1 -1
  30. package/lib/es/setting.js +94 -93
  31. package/lib/es/site-state.js +6 -5
  32. package/lib/es/theme.js +34 -34
  33. package/package.json +7 -7
  34. package/lib/cjs/chunks/site-state-CeQEnrvX.js +0 -57
  35. package/lib/cjs/chunks/state-UwRWAZRe.js +0 -1
@@ -1,20 +1,20 @@
1
1
  import { jsxs as e, jsx as I, Fragment as f } from "react/jsx-runtime";
2
- import { b as gI, i as q, j as AC, n as _, h as iC, k as oC, l as wC, g as sC } from "./chunks/state-COB6reM7.js";
2
+ import { b as gI, i as q, j as AC, h as iC, k as oC, l as wC, g as sC } from "./chunks/state-l--dTdHq.js";
3
3
  import tI from "@arcblock/ux/lib/Empty";
4
4
  import { useLocaleContext as T } from "@arcblock/ux/lib/Locale/context";
5
- import { Icon as $ } from "@iconify-icon/react";
5
+ import { Icon as _ } from "@iconify-icon/react";
6
6
  import MC from "@mui/icons-material/Check";
7
7
  import { Box as D, styled as nI, InputLabel as uI, TextField as h, IconButton as G, Autocomplete as XI, FormControl as LC, Select as jC, MenuItem as Q, ListItemText as WI, Typography as k, OutlinedInput as JC, useTheme as OC, CircularProgress as AI, InputAdornment as mC, Button as W, Grid as V, Stack as TI, Input as YI, CssBaseline as SC, Menu as BC, Dialog as MI, DialogTitle as LI, DialogContent as jI, DialogActions as JI, Tabs as yC, Tab as DC, Card as eC, CardMedia as bC, CardContent as NC, Skeleton as KC } from "@mui/material";
8
8
  import { useDebounceFn as dC, useRequest as zC, useReactive as v, useUpdate as xI, useThrottleFn as rI, useGetState as cC, useAsyncEffect as hI, useBoolean as ZI } from "ahooks";
9
9
  import QI, { useState as F, useEffect as n, useMemo as t, createContext as OI, useContext as FC, useRef as Z, useCallback as Y, createElement as aC, forwardRef as mI, useImperativeHandle as SI } from "react";
10
- import { I as HC, n as bI, A as lC, b as EC, T as tC, c as nC, B as uC } from "./chunks/array-DM0x2Sjw.js";
10
+ import { I as HC, n as bI, A as lC, b as EC, T as tC, c as nC, B as uC } from "./chunks/array-c6HYTLze.js";
11
11
  import { styled as iI } from "@arcblock/ux/lib/Theme";
12
12
  import "@blocklet/pages-kit/builtin/color-picker";
13
13
  import "@blocklet/pages-kit/utils/style";
14
14
  import { cx as sI } from "@emotion/css";
15
15
  import "lodash/without";
16
16
  import { red as XC, pink as WC, purple as TC, indigo as YC, blue as xC, cyan as rC, teal as hC, green as ZC, lime as QC, yellow as kC, amber as RC, orange as pC, brown as UC, grey as fC, blueGrey as GC } from "@mui/material/colors";
17
- import { C as CI } from "./chunks/config-string-Dw6sJMn_.js";
17
+ import { C as CI } from "./chunks/config-string-WMpFf-7V.js";
18
18
  import VC from "lodash/cloneDeep";
19
19
  import { DragIndicator as NI, SearchRounded as vC, Remove as PC, Add as kI, Language as _C, CopyAll as $C, Settings as qC, Delete as Ig } from "@mui/icons-material";
20
20
  import { useDrag as Cg, useDrop as gg } from "react-dnd";
@@ -56,6 +56,7 @@ import Eg from "@mui/icons-material/CheckCircleOutline";
56
56
  import dI from "lodash/uniq";
57
57
  import tg from "lodash/get";
58
58
  import ng from "lodash/set";
59
+ import { nextId as $ } from "@blocklet/pages-kit/utils/common";
59
60
  import { CustomComponentRenderer as ug } from "@blocklet/pages-kit/components";
60
61
  XC[300], WC[300], TC[300], // deepPurple['300'],
61
62
  YC[300], xC[300], // lightBlue['300'],
@@ -1374,7 +1375,7 @@ function SA({
1374
1375
  /* @__PURE__ */ I(KI, { className: "title", variant: "h5", component: "div", children: A.name }),
1375
1376
  /* @__PURE__ */ I(KI, { className: "subtitle", variant: "caption", children: A.description })
1376
1377
  ] }),
1377
- /* @__PURE__ */ I(r, { fontSize: 88, m: -1.25, display: "flex", children: /* @__PURE__ */ I($, { icon: A.icon ?? "" }) })
1378
+ /* @__PURE__ */ I(r, { fontSize: 88, m: -1.25, display: "flex", children: /* @__PURE__ */ I(_, { icon: A.icon ?? "" }) })
1378
1379
  ] }) }),
1379
1380
  /* @__PURE__ */ I(
1380
1381
  oA,
@@ -1431,7 +1432,7 @@ function yA({ templates: C }) {
1431
1432
  alignItems: "center",
1432
1433
  justifyContent: "center"
1433
1434
  },
1434
- children: /* @__PURE__ */ I($, { icon: s.icon ?? "" })
1435
+ children: /* @__PURE__ */ I(_, { icon: s.icon ?? "" })
1435
1436
  }
1436
1437
  ),
1437
1438
  /* @__PURE__ */ I(k, { variant: "h6", sx: { my: 2, overflow: "hidden", textOverflow: "ellipsis" }, children: s.name }),
@@ -1869,7 +1870,7 @@ function EA({
1869
1870
  justifyContent: "center"
1870
1871
  },
1871
1872
  children: [
1872
- /* @__PURE__ */ I($, { icon: "eos-icons:ai", size: 18 }),
1873
+ /* @__PURE__ */ I(_, { icon: "eos-icons:ai", size: 18 }),
1873
1874
  j && /* @__PURE__ */ I(AI, { size: 22 })
1874
1875
  ]
1875
1876
  }
@@ -2080,7 +2081,7 @@ const XA = iI(D)`
2080
2081
  }
2081
2082
  }
2082
2083
  `, WA = "primary", TA = "contained", aI = {
2083
- id: _(),
2084
+ id: $(),
2084
2085
  color: WA,
2085
2086
  variant: TA,
2086
2087
  text: "",
@@ -2277,7 +2278,7 @@ function rA({ value: C, locale: i, locales: w, onChange: A = () => {
2277
2278
  actionIndex: void 0
2278
2279
  }), L = () => {
2279
2280
  var B;
2280
- s.actionIndex = void 0, (B = o.current) == null || B.open({ id: _() }, -1);
2281
+ s.actionIndex = void 0, (B = o.current) == null || B.open({ id: $() }, -1);
2281
2282
  }, j = (B) => {
2282
2283
  var b;
2283
2284
  const N = C == null ? void 0 : C.findIndex((S) => S === B);
@@ -2326,7 +2327,7 @@ function rA({ value: C, locale: i, locales: w, onChange: A = () => {
2326
2327
  mr: 0.35,
2327
2328
  onClick: () => A(
2328
2329
  a(C, (b) => {
2329
- b.splice(N + 1, 0, { ...B, id: _() });
2330
+ b.splice(N + 1, 0, { ...B, id: $() });
2330
2331
  })
2331
2332
  ),
2332
2333
  children: /* @__PURE__ */ I($C, {})
@@ -2361,7 +2362,7 @@ function hA({ children: C }) {
2361
2362
  }
2362
2363
  mI(function({ onSave: i = () => {
2363
2364
  }, type: w, locale: A, locales: o }, g) {
2364
- const { t: s } = T(), [L, { setFalse: j, setTrue: M }] = ZI(!1), y = xI(), m = Z({ ...HI, id: _() }), J = m.current, B = Y((z) => {
2365
+ const { t: s } = T(), [L, { setFalse: j, setTrue: M }] = ZI(!1), y = xI(), m = Z({ ...HI, id: $() }), J = m.current, B = Y((z) => {
2365
2366
  m.current = typeof z == "function" ? z(m.current) : z, y();
2366
2367
  }, []), N = Y(() => {
2367
2368
  j();
@@ -2518,7 +2519,7 @@ const ZA = {
2518
2519
  padding: "normal",
2519
2520
  list: [
2520
2521
  {
2521
- id: _(),
2522
+ id: $(),
2522
2523
  title: "Simplified Service Delivery",
2523
2524
  description: "Block Server's Service Gateway makes networking easy with access to load balancing, SSL termination, automatic and customizable URL mapping, and redirects.",
2524
2525
  image: "https://www.arcblock.io/static/ead0cabde7f2b7ff34db8f3e8ceca271/afc4b/builder.png"
@@ -2589,7 +2590,7 @@ const lI = 260, kA = 5, gC = "IGNORE_RENDER_BLOCKLET_TITLE", EI = (C, i) => C ?
2589
2590
  properties: {}
2590
2591
  }
2591
2592
  ].map((C) => ({ ...C, type: "basic", component: C.id }));
2592
- function _i({
2593
+ function $i({
2593
2594
  state: C,
2594
2595
  open: i,
2595
2596
  onClose: w,
@@ -2683,7 +2684,7 @@ function _i({
2683
2684
  sx: { flex: 1, maxWidth: 350 },
2684
2685
  InputProps: {
2685
2686
  startAdornment: /* @__PURE__ */ I(
2686
- $,
2687
+ _,
2687
2688
  {
2688
2689
  icon: "tabler:search",
2689
2690
  style: {
@@ -2694,7 +2695,7 @@ function _i({
2694
2695
  }
2695
2696
  }
2696
2697
  ),
2697
- /* @__PURE__ */ I(G, { size: "small", onClick: w, children: /* @__PURE__ */ I(D, { component: $, icon: "tabler:x", sx: { color: "text.primary" } }) })
2698
+ /* @__PURE__ */ I(G, { size: "small", onClick: w, children: /* @__PURE__ */ I(D, { component: _, icon: "tabler:x", sx: { color: "text.primary" } }) })
2698
2699
  ] }),
2699
2700
  /* @__PURE__ */ e(
2700
2701
  jI,
@@ -3053,10 +3054,10 @@ function UA({
3053
3054
  ] }, g)) : /* @__PURE__ */ I(tI, { children: i }) });
3054
3055
  }
3055
3056
  export {
3056
- _i as AddComponent,
3057
+ $i as AddComponent,
3057
3058
  pA as AutoScaledComponentRenderer,
3058
3059
  RA as BASIC_COMPONENT_LIST,
3059
3060
  UA as GroupedComponentsList,
3060
- _i as default,
3061
+ $i as default,
3061
3062
  EI as formatComponent
3062
3063
  };
@@ -5,7 +5,7 @@ import te from "lodash/isEmpty";
5
5
  import tt from "lodash/pick";
6
6
  import ee, { createContext as $t, useMemo as L, useCallback as F, useContext as Ct, Fragment as oe, isValidElement as Nt, useState as et, useEffect as H, useRef as lt } from "react";
7
7
  import ot from "lodash/keyBy";
8
- import { f as T, g as I, E as re, i as st, m as ct } from "./state-COB6reM7.js";
8
+ import { f as T, g as I, E as re, i as st, m as ct } from "./state-l--dTdHq.js";
9
9
  import { AIForm as ht, AIFormResult as ft } from "@blocklet/ai-runtime/components";
10
10
  import { deepmerge as ne } from "@mui/utils";
11
11
  import { ErrorBoundary as ie } from "react-error-boundary";
@@ -4,7 +4,7 @@ import { Icon as P } from "@iconify-icon/react";
4
4
  import { TextField as A, Stack as w, FormControlLabel as F, Switch as L, Box as j, InputAdornment as k } from "@mui/material";
5
5
  import { forwardRef as B, useState as D, useEffect as E, useImperativeHandle as U } from "react";
6
6
  import { useDebounce as V } from "react-use";
7
- import { g as x } from "./state-COB6reM7.js";
7
+ import { g as x } from "./state-l--dTdHq.js";
8
8
  const J = B(function({ showMarkdown: I, markdown: h, onMarkdownChange: n, showUploader: S, value: o, meta: H, onChange: l, ...a }, z) {
9
9
  const [e, c] = D("");
10
10
  E(() => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { u as a, S as o, a as s, b as n } from "./state-COB6reM7.js";
2
+ import { u as a, S as o, a as s, b as n } from "./state-l--dTdHq.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 t, jsxs as D } from "react/jsx-runtime";
2
- import { u as J, d as Q, e as ft, f as ht, g as bt, c as vt } from "./state-COB6reM7.js";
2
+ import { u as J, d as Q, e as ft, f as ht, g as bt, c as vt } from "./state-l--dTdHq.js";
3
3
  import { useLocaleContext as X } from "@arcblock/ux/lib/Locale/context";
4
4
  import Z from "@arcblock/ux/lib/Result";
5
5
  import { useHeaderState as yt } from "@blocklet/pages-kit/builtin/page/header";
@@ -21,7 +21,7 @@ import { Helmet as Ot } from "react-helmet";
21
21
  import { useSearchParams as ut, Routes as Bt, Route as T, Navigate as Mt, ScrollRestoration as Ft } from "react-router-dom";
22
22
  import { useAsync as pt } from "react-use";
23
23
  import { joinURL as S } from "ufo";
24
- import { S as Lt, n as Y, P as $t, a as _t, B as At, g as Dt } from "./array-DM0x2Sjw.js";
24
+ import { S as Lt, n as Y, P as $t, a as _t, B as At, g as Dt } from "./array-c6HYTLze.js";
25
25
  import { styled as mt, useTheme as Ht } from "@arcblock/ux/lib/Theme";
26
26
  import Nt from "@blocklet/ui-react/lib/Footer";
27
27
  import "webfontloader";
@@ -96,7 +96,7 @@ function Qt({ mode: e }) {
96
96
  }
97
97
  return /* @__PURE__ */ t(Xt, { children: ({ state: n }) => /* @__PURE__ */ t(U, { mode: e, state: n }) });
98
98
  }
99
- const Xt = it(() => import("./draft-data-sTSk4UTm.js"));
99
+ const Xt = it(() => import("./draft-data-CWM--ooz.js"));
100
100
  function Zt({
101
101
  mode: e,
102
102
  children: n
@@ -439,7 +439,7 @@ function N({
439
439
  !((j = r.footer) != null && j.hidden) && /* @__PURE__ */ t(Gt, {})
440
440
  ] });
441
441
  }
442
- const te = it(() => import("./publish-button-CKXdANG9.js")), dt = nt(kt)`
442
+ const te = it(() => import("./publish-button-wYeS7m-g.js")), dt = nt(kt)`
443
443
  &.sticky {
444
444
  position: sticky;
445
445
  top: 0;
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as f, Fragment as le } from "react/jsx-runtime";
2
- import { u as ce, c as de } from "./state-COB6reM7.js";
2
+ import { u as ce, c as de } from "./state-l--dTdHq.js";
3
3
  import { useLocaleContext as U } from "@arcblock/ux/lib/Locale/context";
4
4
  import Q from "@arcblock/ux/lib/Toast";
5
5
  import { generateParamCombinations as me } from "@blocklet/pages-kit/utils/route";
@@ -10,8 +10,8 @@ import { produce as Oe } from "immer";
10
10
  import ee from "lodash/difference";
11
11
  import { useState as j, useMemo as R, useCallback as v, forwardRef as je, useImperativeHandle as ve, useEffect as $, useRef as Te } from "react";
12
12
  import { useAsync as Re } from "react-use";
13
- import { L as ze } from "./home-ClxOpmCx.js";
14
- import { p as Le, g as Be } from "./array-DM0x2Sjw.js";
13
+ import { L as ze } from "./home-DQjaiv2F.js";
14
+ import { p as Le, g as Be } from "./array-c6HYTLze.js";
15
15
  function Ee(s) {
16
16
  const [y, w] = j(!1);
17
17
  return /* @__PURE__ */ t(