@blocklet/pages-kit-inner-components 0.5.56 → 0.6.0

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 (45) hide show
  1. package/lib/cjs/add-component.js +21 -23
  2. package/lib/cjs/chunks/{draft-data-CuZfaQ4s.js → draft-data-D44_IEV2.js} +1 -1
  3. package/lib/cjs/chunks/home-BYk01EUy.js +39 -0
  4. package/lib/cjs/chunks/index-BRgYwvuv.js +475 -0
  5. package/lib/cjs/chunks/publish-button-C8XPA4g_.js +1 -0
  6. package/lib/cjs/chunks/session-BRtsDvA-.js +1 -0
  7. package/lib/cjs/chunks/site-state-gSkcvhcV.js +57 -0
  8. package/lib/cjs/chunks/state-B6BF5wJ-.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 +7 -7
  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/cjs/theme.js +1 -1
  16. package/lib/es/add-component.js +385 -2356
  17. package/lib/es/chunks/{draft-data-CWM--ooz.js → draft-data-CafrGKeh.js} +1 -1
  18. package/lib/es/chunks/home-DW8SdyfO.js +594 -0
  19. package/lib/es/chunks/index-D5gXPe_7.js +2326 -0
  20. package/lib/es/chunks/publish-button-XSZrDaTQ.js +498 -0
  21. package/lib/es/chunks/session-C72Dq8zg.js +19 -0
  22. package/lib/es/chunks/site-state-W2H7XCSQ.js +2077 -0
  23. package/lib/es/chunks/state-0gvZF3k2.js +573 -0
  24. package/lib/es/components.js +1 -1
  25. package/lib/es/home.js +5 -5
  26. package/lib/es/project-html.js +131 -141
  27. package/lib/es/resources.js +106 -107
  28. package/lib/es/setting.js +1772 -1489
  29. package/lib/es/site-state.js +1 -1
  30. package/lib/es/theme.js +50 -51
  31. package/package.json +46 -47
  32. package/lib/cjs/chunks/array-BqHuYyfx.js +0 -475
  33. package/lib/cjs/chunks/config-string-4bVR9Vc8.js +0 -1
  34. package/lib/cjs/chunks/home-BMjMYgq3.js +0 -38
  35. package/lib/cjs/chunks/publish-button-CGfGqrov.js +0 -1
  36. package/lib/cjs/chunks/session-BA7Qrcia.js +0 -1
  37. package/lib/cjs/chunks/site-state-BtZ8o3J2.js +0 -57
  38. package/lib/cjs/chunks/state-BVdbNJCA.js +0 -1
  39. package/lib/es/chunks/array-c6HYTLze.js +0 -2224
  40. package/lib/es/chunks/config-string-WMpFf-7V.js +0 -88
  41. package/lib/es/chunks/home-PDsc59QG.js +0 -566
  42. package/lib/es/chunks/publish-button-Ds7OBvxV.js +0 -462
  43. package/lib/es/chunks/session-CVblGhSp.js +0 -21
  44. package/lib/es/chunks/site-state-D-moj9fA.js +0 -2125
  45. package/lib/es/chunks/state-l--dTdHq.js +0 -603
@@ -1,4 +1,4 @@
1
- import { p as j, n as q, o as v, S as B, q as L, r as U, s as h, b as y, v as z, u as C, t as F, w as G } from "./chunks/site-state-D-moj9fA.js";
1
+ import { p as j, n as q, o as v, S as B, q as L, r as U, s as h, b as y, v as z, u as C, t as F, w as G } from "./chunks/site-state-W2H7XCSQ.js";
2
2
  import { nextId as K } from "@blocklet/pages-kit/utils/common";
3
3
  import "@blocklet/pages-kit/utils/page-model";
4
4
  import "@blocklet/pages-kit/utils/property";
package/lib/es/theme.js CHANGED
@@ -1,14 +1,13 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { ConfigProvider as h } from "@arcblock/ux/lib/Config";
3
- import { Icon as $ } from "@iconify-icon/react";
4
- import y from "@iconify-icons/tabler/chevron-down";
5
- import { listItemIconClasses as g, switchClasses as z, svgIconClasses as r, sliderClasses as o, outlinedInputClasses as m, inputBaseClasses as t, filledInputClasses as u, inputLabelClasses as s, inputClasses as a, selectClasses as v, autocompleteClasses as p, Box as S } from "@mui/material";
6
- import { useMemo as M } from "react";
7
- import { useLocation as I } from "react-router-dom";
8
- import { S as C } from "./chunks/session-CVblGhSp.js";
9
- import { translations as O } from "./locales.js";
10
- var f;
11
- const l = ((f = window.blocklet) == null ? void 0 : f.prefix) || "/", T = l.endsWith("/") ? `${l}admin` : `${l}/admin`, b = {
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { ConfigProvider as c } from "@arcblock/ux/lib/Config";
3
+ import { Icon as h } from "@iconify-icon/react";
4
+ import $ from "@iconify-icons/tabler/chevron-down";
5
+ import { listItemIconClasses as y, switchClasses as S, svgIconClasses as s, sliderClasses as o, outlinedInputClasses as m, inputBaseClasses as t, filledInputClasses as u, inputLabelClasses as i, inputClasses as l, selectClasses as g, autocompleteClasses as p, Box as z } from "@mui/material";
6
+ import { useMemo as v } from "react";
7
+ import { useLocation as M } from "react-router-dom";
8
+ import { S as I } from "./chunks/session-C72Dq8zg.js";
9
+ import { translations as C } from "./locales.js";
10
+ const n = window.blocklet?.prefix || "/", O = n.endsWith("/") ? `${n}admin` : `${n}/admin`, f = {
12
11
  fontSize: "5rem",
13
12
  "@media (max-width: 1536px)": {
14
13
  fontSize: "5rem"
@@ -24,11 +23,11 @@ const l = ((f = window.blocklet) == null ? void 0 : f.prefix) || "/", T = l.ends
24
23
  }
25
24
  };
26
25
  function x(e) {
27
- return /* @__PURE__ */ n(S, { ...e, component: $, icon: y });
26
+ return /* @__PURE__ */ a(z, { ...e, component: h, icon: $ });
28
27
  }
29
- const L = {
28
+ const T = {
30
29
  typography: {
31
- big: { ...b },
30
+ big: { ...f },
32
31
  button: {
33
32
  // @ts-ignore
34
33
  textTransform: "none",
@@ -85,10 +84,10 @@ const L = {
85
84
  styleOverrides: {
86
85
  root: {
87
86
  padding: 4,
88
- [`.${r.fontSizeMedium}`]: {
87
+ [`.${s.fontSizeMedium}`]: {
89
88
  fontSize: "1.25rem"
90
89
  },
91
- [`.${r.fontSizeSmall}`]: {
90
+ [`.${s.fontSizeSmall}`]: {
92
91
  fontSize: "1.125rem"
93
92
  }
94
93
  }
@@ -98,10 +97,10 @@ const L = {
98
97
  styleOverrides: {
99
98
  root: {
100
99
  padding: 4,
101
- [`.${r.fontSizeMedium}`]: {
100
+ [`.${s.fontSizeMedium}`]: {
102
101
  fontSize: "1.25rem"
103
102
  },
104
- [`.${r.fontSizeSmall}`]: {
103
+ [`.${s.fontSizeSmall}`]: {
105
104
  fontSize: "1.125rem"
106
105
  }
107
106
  }
@@ -113,7 +112,7 @@ const L = {
113
112
  height: 28,
114
113
  width: 48,
115
114
  padding: 8,
116
- [`&.${z.sizeSmall}`]: {
115
+ [`&.${S.sizeSmall}`]: {
117
116
  height: 26,
118
117
  width: 40,
119
118
  padding: 8
@@ -125,7 +124,7 @@ const L = {
125
124
  }
126
125
  },
127
126
  MuiAutocomplete: {
128
- defaultProps: { popupIcon: /* @__PURE__ */ n(x, { fontSize: 14 }) },
127
+ defaultProps: { popupIcon: /* @__PURE__ */ a(x, { fontSize: 14 }) },
129
128
  variants: [
130
129
  {
131
130
  props: {},
@@ -156,41 +155,41 @@ const L = {
156
155
  {
157
156
  props: {},
158
157
  // @ts-ignore
159
- style: ({ theme: e, ownerState: i }) => e.unstable_sx({
158
+ style: ({ theme: e, ownerState: r }) => e.unstable_sx({
160
159
  [`.${t.root}`]: {
161
160
  borderRadius: 1,
162
161
  lineHeight: "1.5rem",
163
162
  [`.${t.input}`]: {
164
163
  height: "1.5rem"
165
164
  },
166
- [`&.${a.multiline}`]: {
165
+ [`&.${l.multiline}`]: {
167
166
  pl: 0,
168
167
  pr: 0,
169
- pt: i != null && i.label ? 2 : 1,
168
+ pt: r?.label ? 2 : 1,
170
169
  "& .MuiInputBase-inputMultiline": {
171
170
  py: 0
172
171
  }
173
172
  }
174
173
  },
175
174
  // standard
176
- [`.${a.root}`]: {
175
+ [`.${l.root}`]: {
177
176
  mt: 1.5,
178
177
  [`&.${t.hiddenLabel}`]: {
179
178
  mt: 0,
180
179
  pt: 0,
181
- [`.${v.select}.${a.input}:focus`]: {
180
+ [`.${g.select}.${l.input}:focus`]: {
182
181
  bgcolor: "transparent"
183
182
  }
184
183
  }
185
184
  },
186
- [`.${s.standard}`]: {
185
+ [`.${i.standard}`]: {
187
186
  transform: "translate(0px, 18px) scale(1)",
188
- [`&.${s.sizeSmall}`]: {
187
+ [`&.${i.sizeSmall}`]: {
189
188
  transform: "translate(0px, 15px) scale(1)"
190
189
  },
191
- [`&.${s.shrink}`]: {
190
+ [`&.${i.shrink}`]: {
192
191
  transform: "translate(0px, -1px) scale(0.8)",
193
- [`&.${s.sizeSmall}`]: {
192
+ [`&.${i.sizeSmall}`]: {
194
193
  transform: "translate(0px, -1px) scale(0.8)"
195
194
  }
196
195
  }
@@ -200,15 +199,15 @@ const L = {
200
199
  ":before,:after": { display: "none" },
201
200
  [`.${t.input}`]: {
202
201
  pb: 0.5,
203
- pt: i != null && i.label ? 2 : 0.5,
202
+ pt: r?.label ? 2 : 0.5,
204
203
  px: 1,
205
204
  ":focus": {
206
205
  borderRadius: 1
207
206
  },
208
207
  [`&.${t.inputSizeSmall}`]: {
209
208
  pb: 0.25,
210
- pt: i != null && i.label ? 1.25 : 0.25,
211
- ...i != null && i.multiline ? {
209
+ pt: r?.label ? 1.25 : 0.25,
210
+ ...r?.multiline ? {
212
211
  pt: 0
213
212
  } : {}
214
213
  },
@@ -220,14 +219,14 @@ const L = {
220
219
  }
221
220
  }
222
221
  },
223
- [`.${s.filled}`]: {
222
+ [`.${i.filled}`]: {
224
223
  transform: "translate(8px, 11px) scale(1)",
225
- [`&.${s.sizeSmall}`]: {
224
+ [`&.${i.sizeSmall}`]: {
226
225
  transform: "translate(8px, 7px) scale(1)"
227
226
  },
228
- [`&.${s.shrink}`]: {
227
+ [`&.${i.shrink}`]: {
229
228
  transform: "translate(8px, 2px) scale(0.8)",
230
- [`&.${s.sizeSmall}`]: {
229
+ [`&.${i.sizeSmall}`]: {
231
230
  transform: "translate(8px, 0) scale(0.8)"
232
231
  }
233
232
  }
@@ -248,12 +247,12 @@ const L = {
248
247
  }
249
248
  }
250
249
  },
251
- [`.${s.outlined}`]: {
250
+ [`.${i.outlined}`]: {
252
251
  transform: "translate(8px, 10px) scale(1)",
253
- [`&.${s.sizeSmall}`]: {
252
+ [`&.${i.sizeSmall}`]: {
254
253
  transform: "translate(8px, 7px) scale(1)"
255
254
  },
256
- [`&.${s.shrink}`]: {
255
+ [`&.${i.shrink}`]: {
257
256
  transform: "translate(16px, -7px) scale(0.8)"
258
257
  }
259
258
  }
@@ -304,7 +303,7 @@ const L = {
304
303
  select: {
305
304
  display: "flex",
306
305
  alignItems: "center",
307
- [`.${g.root}`]: {
306
+ [`.${y.root}`]: {
308
307
  minWidth: 20
309
308
  }
310
309
  }
@@ -454,32 +453,32 @@ const L = {
454
453
  styleOverrides: {}
455
454
  }
456
455
  }
457
- }, _ = {
456
+ }, L = {
458
457
  typography: {
459
458
  // @ts-ignore
460
- big: { ...b },
459
+ big: { ...f },
461
460
  button: {
462
461
  // @ts-ignore
463
462
  textTransform: "none",
464
463
  WebkitTextTransform: "none"
465
464
  }
466
465
  }
467
- }, U = ({
466
+ }, A = ({
468
467
  children: e,
469
- isDashboard: i = !1
468
+ isDashboard: r = !1
470
469
  }) => {
471
- const d = I().pathname.startsWith("/admin/maker") || i, c = M(() => d ? L : _, [d]);
472
- return /* @__PURE__ */ n(
473
- h,
470
+ const d = M().pathname.startsWith("/admin/maker") || r, b = v(() => d ? T : L, [d]);
471
+ return /* @__PURE__ */ a(
472
+ c,
474
473
  {
475
- theme: c,
476
- translations: O,
474
+ theme: b,
475
+ translations: C,
477
476
  fallbackLocale: "en",
478
477
  injectFirst: !0,
479
- children: /* @__PURE__ */ n(C, { serviceHost: l, protectedRoutes: [`${T}/*`], children: e })
478
+ children: /* @__PURE__ */ a(I, { serviceHost: n, protectedRoutes: [`${O}/*`], children: e })
480
479
  }
481
480
  );
482
481
  };
483
482
  export {
484
- U as PagesKitThemeProvider
483
+ A as PagesKitThemeProvider
485
484
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit-inner-components",
3
- "version": "0.5.56",
3
+ "version": "0.6.0",
4
4
  "description": "Pages Kit inner components library",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -69,28 +69,28 @@
69
69
  "url": "git+https://github.com/blocklet/pages-kit.git"
70
70
  },
71
71
  "dependencies": {
72
- "@arcblock/did-auth": "^1.20.14",
72
+ "@arcblock/did-auth": "^1.20.15",
73
73
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
74
- "@arcblock/did-connect": "^2.13.70",
75
- "@arcblock/react-hooks": "^2.13.70",
76
- "@arcblock/ux": "^2.13.70",
74
+ "@arcblock/did-connect": "^3.0.8",
75
+ "@arcblock/react-hooks": "^3.0.8",
76
+ "@arcblock/ux": "^3.0.8",
77
77
  "@blocklet/ai-kit": "^0.1.79",
78
- "@blocklet/ai-runtime": "^0.4.274",
79
- "@blocklet/code-editor": "^0.4.274",
78
+ "@blocklet/ai-runtime": "^0.4.275",
79
+ "@blocklet/code-editor": "^0.4.275",
80
80
  "@blocklet/embed": "^0.2.5",
81
81
  "@blocklet/js-sdk": "^1.16.44",
82
- "@blocklet/logger": "1.16.36",
83
- "@blocklet/quickjs": "^0.4.274",
82
+ "@blocklet/logger": "1.16.44",
83
+ "@blocklet/quickjs": "^0.4.275",
84
84
  "@blocklet/sdk": "^1.16.44",
85
- "@blocklet/studio-ui": "^0.4.274",
85
+ "@blocklet/studio-ui": "^0.4.275",
86
86
  "@blocklet/tracker": "^1.16.44",
87
- "@blocklet/ui-react": "^2.13.70",
88
- "@blocklet/uploader": "^0.1.95",
89
- "@blocklet/uploader-server": "^0.1.101",
90
- "@emotion/cache": "^11.13.1",
91
- "@emotion/css": "^11.13.0",
92
- "@emotion/react": "^11.13.0",
93
- "@emotion/styled": "^11.13.0",
87
+ "@blocklet/ui-react": "^3.0.8",
88
+ "@blocklet/uploader": "^0.2.1",
89
+ "@blocklet/uploader-server": "^0.2.0",
90
+ "@emotion/cache": "^11.14.0",
91
+ "@emotion/css": "^11.13.5",
92
+ "@emotion/react": "^11.14.0",
93
+ "@emotion/styled": "^11.14.1",
94
94
  "@iconify-icon/react": "^2.1.0",
95
95
  "@iconify-icons/tabler": "^1.2.95",
96
96
  "@iconify-json/mdi": "^1.1.68",
@@ -99,15 +99,15 @@
99
99
  "@microsoft/fetch-event-source": "^2.0.1",
100
100
  "@monaco-editor/react": "^4.6.0",
101
101
  "@mui/base": "^5.0.0-beta.40",
102
- "@mui/icons-material": "^5.16.14",
103
- "@mui/lab": "^5.0.0-alpha.173",
104
- "@mui/material": "^5.16.14",
102
+ "@mui/icons-material": "^7.1.2",
103
+ "@mui/lab": "^7.0.0-beta.14",
104
+ "@mui/material": "^7.1.2",
105
105
  "@mui/styles": "^5.16.14",
106
- "@mui/utils": "^5.16.6",
107
- "@mui/x-date-pickers": "^7.13.0",
108
- "@ocap/client": "^1.20.14",
109
- "@ocap/mcrypto": "^1.20.14",
110
- "@ocap/wallet": "^1.20.14",
106
+ "@mui/utils": "^7.1.1",
107
+ "@mui/x-date-pickers": "^8.6.0",
108
+ "@ocap/client": "^1.20.15",
109
+ "@ocap/mcrypto": "^1.20.15",
110
+ "@ocap/wallet": "^1.20.15",
111
111
  "@reactivedata/reactive": "^0.2.2",
112
112
  "@syncedstore/core": "^0.6.0",
113
113
  "@syncedstore/react": "^0.6.0",
@@ -160,11 +160,11 @@
160
160
  "pathe": "^1.1.2",
161
161
  "postcss": "^8.4.41",
162
162
  "prettier": "^3.3.3",
163
- "react": "^18.3.1",
163
+ "react": "^19.1.0",
164
164
  "react-best-gradient-color-picker": "^3.0.14",
165
165
  "react-dnd": "^16.0.1",
166
166
  "react-dnd-html5-backend": "^16.0.1",
167
- "react-dom": "^18.3.1",
167
+ "react-dom": "^19.1.0",
168
168
  "react-error-boundary": "^4.0.13",
169
169
  "react-frame-component": "^5.2.7",
170
170
  "react-helmet": "^6.1.0",
@@ -175,7 +175,6 @@
175
175
  "react-twitter-embed": "^4.0.4",
176
176
  "react-use": "^17.5.1",
177
177
  "react-window": "^1.8.10",
178
- "recoil": "^0.7.7",
179
178
  "remark-gfm": "^4.0.0",
180
179
  "rimraf": "^6.0.1",
181
180
  "sequelize": "^6.37.5",
@@ -191,7 +190,7 @@
191
190
  "tz-lookup": "^6.1.25",
192
191
  "ufo": "^1.5.4",
193
192
  "umzug": "^3.8.2",
194
- "unocss": "^0.62.2",
193
+ "unocss": "^66.3.2",
195
194
  "uppload": "^3.2.1",
196
195
  "url-join": "^4.0.1",
197
196
  "uuid": "^10.0.0",
@@ -204,8 +203,8 @@
204
203
  "yaml": "^2.5.0",
205
204
  "yjs": "^13.6.18",
206
205
  "zustand": "^4.5.5",
207
- "@blocklet/pages-kit-block-studio": "^0.5.56",
208
- "@blocklet/pages-kit": "^0.5.56"
206
+ "@blocklet/pages-kit": "^0.6.0",
207
+ "@blocklet/pages-kit-block-studio": "^0.6.0"
209
208
  },
210
209
  "devDependencies": {
211
210
  "@trivago/prettier-plugin-sort-imports": "^5.2.1",
@@ -224,16 +223,16 @@
224
223
  "@types/mustache": "^4.2.5",
225
224
  "@types/node": "^22.4.2",
226
225
  "@types/node-fetch": "^2.6.11",
227
- "@types/react": "^18.3.4",
228
- "@types/react-dom": "^18.3.0",
226
+ "@types/react": "^19.1.8",
227
+ "@types/react-dom": "^19.1.6",
229
228
  "@types/react-frame-component": "^4.1.6",
230
229
  "@types/react-window": "^1.8.8",
231
230
  "@types/tar": "^6.1.13",
232
231
  "@types/url-join": "^4.0.3",
233
232
  "@types/wait-on": "^5.3.4",
234
233
  "@types/ws": "^8.5.12",
235
- "@vitejs/plugin-legacy": "^5.4.2",
236
- "@vitejs/plugin-react": "^4.3.1",
234
+ "@vitejs/plugin-legacy": "^7.0.0",
235
+ "@vitejs/plugin-react": "^4.6.0",
237
236
  "cross-env": "^7.0.3",
238
237
  "nodemon": "^3.1.4",
239
238
  "npm-run-all": "^4.1.5",
@@ -241,21 +240,21 @@
241
240
  "ts-node": "^10.9.2",
242
241
  "tsc-alias": "^1.8.10",
243
242
  "tsc-files": "^1.1.4",
244
- "vite": "^5.4.2",
245
- "vite-node": "^2.0.5",
246
- "vite-plugin-blocklet": "^0.9.31",
247
- "vite-plugin-pwa": "^0.21.1",
248
- "vite-plugin-svgr": "^4.2.0",
249
- "vite-tsconfig-paths": "^5.0.1",
243
+ "vite": "^7.0.0",
244
+ "vite-node": "^3.2.4",
245
+ "vite-plugin-blocklet": "^0.10.0",
246
+ "vite-plugin-pwa": "^1.0.0",
247
+ "vite-plugin-svgr": "^4.3.0",
248
+ "vite-tsconfig-paths": "^5.1.4",
250
249
  "zx": "^8.1.4"
251
250
  },
252
251
  "peerDependencies": {
253
- "react": "^18.3.1",
254
- "react-dom": "^18.3.1",
255
- "react-router-dom": "^6.26.1",
256
- "@mui/icons-material": "^5.16.14",
257
- "@mui/material": "^5.16.14",
258
- "@arcblock/ux": "^2.11.35"
252
+ "@arcblock/ux": "^3.0.8",
253
+ "@mui/icons-material": "^7.1.2",
254
+ "@mui/material": "^7.1.2",
255
+ "react": "^19.1.0",
256
+ "react-dom": "^19.1.0",
257
+ "react-router-dom": "^6.26.1"
259
258
  },
260
259
  "scripts": {
261
260
  "lint": "echo 'skip'",