@blocklet/list 0.14.18 → 0.14.19

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 (2) hide show
  1. package/lib/index.es.js +65 -65
  2. package/package.json +4 -4
package/lib/index.es.js CHANGED
@@ -8,10 +8,10 @@ import y from "@mui/material/Box";
8
8
  import A from "@mui/material/Stack";
9
9
  import { ErrorBoundary as rt } from "react-error-boundary";
10
10
  import ot from "@iconify-icons/tabler/compass";
11
- import { Icon as Le } from "@iconify/react";
11
+ import { Icon as Ee } from "@iconify/react";
12
12
  import ye from "@mui/icons-material/Close";
13
13
  import w from "@mui/material/Typography";
14
- import { createContext as Ee, useState as P, useMemo as H, useContext as Oe, useCallback as pe, useEffect as U, forwardRef as nt, useRef as me, memo as it } from "react";
14
+ import { createContext as Le, useState as P, useMemo as H, useContext as Oe, useCallback as pe, useEffect as U, forwardRef as nt, useRef as me, memo as it } from "react";
15
15
  import { createAxios as _e } from "@blocklet/js-sdk";
16
16
  import lt from "lodash/orderBy";
17
17
  import { useRequest as te, useDebounceFn as ze, useInfiniteScroll as at, useReactive as st } from "ahooks";
@@ -54,12 +54,12 @@ import je from "@mui/material/OutlinedInput";
54
54
  import At from "@mui/material/TextField";
55
55
  import { useHotkeys as Ft } from "react-hotkeys-hook";
56
56
  import Re from "@mui/material/InputAdornment";
57
- import Lt from "@arcblock/ux/lib/Empty";
58
- import Et from "json-stable-stringify";
57
+ import Et from "@arcblock/ux/lib/Empty";
58
+ import Lt from "json-stable-stringify";
59
59
  import Ot from "@mui/icons-material/Menu";
60
60
  import { Card as _t, Box as le, Skeleton as O } from "@mui/material";
61
61
  import zt from "@arcblock/ux/lib/Img";
62
- const He = Ee({
62
+ const He = Le({
63
63
  open: !1,
64
64
  toggleOpen: (e) => {
65
65
  }
@@ -333,7 +333,7 @@ const Wt = (e, r, o) => e && r || !o, Ue = (e) => [
333
333
  handlePage: () => {
334
334
  }
335
335
  }
336
- }, Ke = Ee(qe), { Provider: Kt, Consumer: Ro } = Ke;
336
+ }, Ke = Le(qe), { Provider: Kt, Consumer: To } = Ke;
337
337
  function Xt(e) {
338
338
  const {
339
339
  locale: r = "zh",
@@ -357,16 +357,16 @@ function Xt(e) {
357
357
  },
358
358
  endpoint: C,
359
359
  blockletRender: x
360
- } = e, F = Ge(n, v), L = H(() => _e({ baseURL: C, headers: F }), [C]), E = Dt(o, { onFilterChange: l, emptyCategory: !i.showExplore, onSearchSelect: u }), [N, V] = P(""), {
360
+ } = e, F = Ge(n, v), E = H(() => _e({ baseURL: C, headers: F }), [C]), L = Dt(o, { onFilterChange: l, emptyCategory: !i.showExplore, onSearchSelect: u }), [N, V] = P(""), {
361
361
  data: G = [],
362
362
  error: ne,
363
363
  loading: X,
364
364
  run: Q
365
- } = Nt(L), $ = H(() => {
365
+ } = Nt(E), $ = H(() => {
366
366
  const R = lt(G, [(W) => W.name], ["asc"]), z = R.findIndex((W) => W.name === "All" || W.locales.en === "All");
367
367
  return z > -1 ? [{ ...R[z], _id: "All" }, ...R.slice(0, z), ...R.slice(z + 1)] : R;
368
368
  }, [G]), q = pe(qt(r), [r]), s = H(() => jt($, r), [$, r]), b = $t(q), D = {
369
- search: E,
369
+ search: L,
370
370
  errors: { fetchCategoriesError: ne },
371
371
  loadings: {
372
372
  fetchCategoriesLoading: X
@@ -385,13 +385,13 @@ function Xt(e) {
385
385
  t: q,
386
386
  storeVersion: v,
387
387
  serverVersion: n,
388
- selectedCategory: E.filters.category || (i.showExplore ? "" : "All"),
388
+ selectedCategory: L.filters.category || (i.showExplore ? "" : "All"),
389
389
  categoryList: $,
390
390
  blockletRender: x,
391
391
  locale: r,
392
392
  categoryOptions: s,
393
393
  priceOptions: b,
394
- storeApi: L,
394
+ storeApi: E,
395
395
  baseSearch: g,
396
396
  showResourcesSwitch: f,
397
397
  showCategory: k,
@@ -659,7 +659,7 @@ function er() {
659
659
  pr: { md: 6 },
660
660
  children: p ? /* @__PURE__ */ h(M, { children: [
661
661
  a.showExplore && /* @__PURE__ */ h(y, { display: "flex", alignItems: "center", gap: 1, mb: 3, pb: 3, borderBottom: 1, borderColor: "divider", children: [
662
- /* @__PURE__ */ t(Le, { icon: ot }),
662
+ /* @__PURE__ */ t(Ee, { icon: ot }),
663
663
  /* @__PURE__ */ t(
664
664
  w,
665
665
  {
@@ -734,8 +734,8 @@ function Te({
734
734
  )
735
735
  ] });
736
736
  }
737
- const se = 292, fe = 210, ee = 336;
738
- function tr() {
737
+ const tr = 16 / 9, se = 292, fe = 189, ee = 336;
738
+ function rr() {
739
739
  var B, v;
740
740
  const { t: e, search: r } = I(), { get: o } = ve(), n = ge(), l = j(n.breakpoints.down("md")), a = ((v = (B = window.blocklet) == null ? void 0 : B.preferences) == null ? void 0 : v.homeBanner) || [], {
741
741
  data: c = [],
@@ -797,8 +797,8 @@ function tr() {
797
797
  items: a.map((u, C) => ({
798
798
  original: u.did,
799
799
  renderItem: () => {
800
- var E;
801
- const x = c[C] || {}, F = u.cover || or(u.did, (E = x.screenshots) == null ? void 0 : E[0]), L = Ve(F, n.breakpoints.values.md * 2);
800
+ var L;
801
+ const x = c[C] || {}, F = u.cover || nr(u.did, (L = x.screenshots) == null ? void 0 : L[0]), E = Ve(F, n.breakpoints.values.md * 2);
802
802
  return /* @__PURE__ */ h(
803
803
  A,
804
804
  {
@@ -812,7 +812,7 @@ function tr() {
812
812
  left: 0,
813
813
  right: 0,
814
814
  bottom: 0,
815
- backgroundImage: `url("${L}")`,
815
+ backgroundImage: `url("${E}")`,
816
816
  backgroundSize: "cover",
817
817
  filter: "blur(50px)",
818
818
  opacity: 0.15,
@@ -827,7 +827,7 @@ function tr() {
827
827
  onClick: () => r.handleSearchSelect(x),
828
828
  gap: { xs: 2, md: 5 },
829
829
  children: [
830
- g(L),
830
+ g(E),
831
831
  /* @__PURE__ */ h(A, { flex: 1, height: "100%", gap: 3, children: [
832
832
  /* @__PURE__ */ h(y, { flex: 1, children: [
833
833
  p(u.name || x.title || u.name),
@@ -847,7 +847,7 @@ function tr() {
847
847
  )
848
848
  ] }) : null;
849
849
  function g(u) {
850
- return /* @__PURE__ */ t(y, { borderRadius: 2, overflow: "hidden", position: "relative", width: { xs: "100%", md: ee }, children: /* @__PURE__ */ t(nr, { url: u }) });
850
+ return /* @__PURE__ */ t(y, { borderRadius: 2, overflow: "hidden", position: "relative", width: { xs: "100%", md: ee }, children: /* @__PURE__ */ t(ir, { url: u }) });
851
851
  }
852
852
  function p(u) {
853
853
  return /* @__PURE__ */ t(w, { variant: "h2", width: "100%", children: u });
@@ -877,10 +877,10 @@ function tr() {
877
877
  );
878
878
  }
879
879
  function k(u, C = 0) {
880
- const { did: x, owner: F, stats: L } = u;
880
+ const { did: x, owner: F, stats: E } = u;
881
881
  return /* @__PURE__ */ h(y, { display: "flex", alignItems: "center", gap: 2, color: "text.secondary", children: [
882
882
  /* @__PURE__ */ t(Te, { icon: /* @__PURE__ */ t($e, { src: F.avatar, did: x, size: 20, variant: "circle" }), children: F.fullName }),
883
- /* @__PURE__ */ t(Te, { icon: /* @__PURE__ */ t(Le, { icon: Ct }), title: `${L.downloads + C}`, children: rr(L.downloads + C) })
883
+ /* @__PURE__ */ t(Te, { icon: /* @__PURE__ */ t(Ee, { icon: Ct }), title: `${E.downloads + C}`, children: or(E.downloads + C) })
884
884
  ] });
885
885
  }
886
886
  function S(u) {
@@ -903,8 +903,8 @@ function tr() {
903
903
  );
904
904
  }
905
905
  }
906
- const rr = (e) => Number.isNaN(e) ? 0 : e < 1e3 ? e : e < 1e6 ? `${(e / 1e3).toFixed(1)}k` : e < 1e9 ? `${(e / 1e6).toFixed(1)}m` : `${(e / 1e9).toFixed(1)}b`, or = (e, r) => e && r ? `/assets/${e}/screenshots/${r}` : "";
907
- function nr({ url: e }) {
906
+ const or = (e) => Number.isNaN(e) ? 0 : e < 1e3 ? e : e < 1e6 ? `${(e / 1e3).toFixed(1)}k` : e < 1e9 ? `${(e / 1e6).toFixed(1)}m` : `${(e / 1e9).toFixed(1)}b`, nr = (e, r) => e && r ? `/assets/${e}/screenshots/${r}` : "";
907
+ function ir({ url: e }) {
908
908
  const [r, o] = P(!0);
909
909
  return /* @__PURE__ */ h(M, { children: [
910
910
  r && /* @__PURE__ */ t(
@@ -928,21 +928,21 @@ function nr({ url: e }) {
928
928
  borderRadius: 2,
929
929
  border: 1,
930
930
  borderColor: "divider",
931
- sx: { objectFit: "container", cursor: "pointer", aspectRatio: 16 / 10 },
931
+ sx: { objectFit: "container", cursor: "pointer", aspectRatio: tr },
932
932
  onLoad: () => o(!1),
933
933
  onError: () => o(!1)
934
934
  }
935
935
  )
936
936
  ] });
937
937
  }
938
- function ir({ title: e, blocklets: r }) {
938
+ function lr({ title: e, blocklets: r }) {
939
939
  const { blockletRender: o, serverVersion: n } = I();
940
940
  return /* @__PURE__ */ h(y, { mt: 3, children: [
941
941
  /* @__PURE__ */ t(w, { component: "h3", variant: "h3", sx: { mb: 2 }, children: e }),
942
942
  /* @__PURE__ */ t(Ie, { container: !0, spacing: 2, children: r.map((l) => /* @__PURE__ */ t(Ie, { item: !0, xs: 12, md: 6, p: "2px", "data-blocklet-did": l.did, children: /* @__PURE__ */ t(y, { padding: "1px", children: o({ blocklet: l, blocklets: r, serverVersion: n }) }) }, l.did)) })
943
943
  ] });
944
944
  }
945
- function lr() {
945
+ function ar() {
946
946
  const { get: e } = ve(), { t: r } = I(), {
947
947
  data: o = [],
948
948
  error: n,
@@ -952,14 +952,14 @@ function lr() {
952
952
  return Array.isArray(a) ? a : [];
953
953
  });
954
954
  return n ? /* @__PURE__ */ t(xe, { error: new Error(`Failed to fetch blocklets from ${T.explorePath}`) }) : l ? /* @__PURE__ */ t(Ze, { mt: 15 }) : /* @__PURE__ */ h(M, { children: [
955
- /* @__PURE__ */ t(tr, {}),
955
+ /* @__PURE__ */ t(rr, {}),
956
956
  o.map(
957
- (a) => a.blocklets.length > 0 ? /* @__PURE__ */ t(ir, { title: r(`explore.${a.type}`), blocklets: a.blocklets }, a.type) : null
957
+ (a) => a.blocklets.length > 0 ? /* @__PURE__ */ t(lr, { title: r(`explore.${a.type}`), blocklets: a.blocklets }, a.type) : null
958
958
  )
959
959
  ] });
960
960
  }
961
961
  const ce = "__FREE_TEXT__", Pe = "__NO_RESULT__", de = 40;
962
- function ar({
962
+ function sr({
963
963
  endpoint: e,
964
964
  t: r,
965
965
  locale: o,
@@ -994,9 +994,9 @@ function ar({
994
994
  },
995
995
  { enableOnTags: ["INPUT"] }
996
996
  );
997
- const L = ze((s) => F(s), { wait: 300 }), E = { name: ce, title: p, did: "" };
997
+ const E = ze((s) => F(s), { wait: 300 }), L = { name: ce, title: p, did: "" };
998
998
  let N = [];
999
- return p && (v ? N = [E] : x != null && x.length ? N = [E, ...x] : N = [{ name: Pe, title: r("blocklet.noResults"), did: "" }]), /* @__PURE__ */ h(M, { children: [
999
+ return p && (v ? N = [L] : x != null && x.length ? N = [L, ...x] : N = [{ name: Pe, title: r("blocklet.noResults"), did: "" }]), /* @__PURE__ */ h(M, { children: [
1000
1000
  /* @__PURE__ */ h(Pt, { fullScreen: !0, open: k, sx: { display: { md: "none" } }, children: [
1001
1001
  /* @__PURE__ */ h(y, { p: 2, pb: 0, display: "flex", alignItems: "center", gap: 2, children: [
1002
1002
  /* @__PURE__ */ t(
@@ -1094,7 +1094,7 @@ function ar({
1094
1094
  ...c,
1095
1095
  options: N,
1096
1096
  renderOption: (s, b) => X(b),
1097
- value: E,
1097
+ value: L,
1098
1098
  sx: [
1099
1099
  {
1100
1100
  bgcolor: "#F9FAFB",
@@ -1115,7 +1115,7 @@ function ar({
1115
1115
  )
1116
1116
  ] });
1117
1117
  function V(s) {
1118
- u(!0), f(s), m.current = !1, L.run(s);
1118
+ u(!0), f(s), m.current = !1, E.run(s);
1119
1119
  }
1120
1120
  function G() {
1121
1121
  S(!1), f(""), V(""), l("");
@@ -1167,7 +1167,7 @@ function ar({
1167
1167
  return p ? /* @__PURE__ */ t(y, { sx: { display: "flex", alignItems: "center", color: "text.lighter" }, children: /* @__PURE__ */ t(ye, { sx: { fontSize: 20, cursor: "pointer" }, onClick: () => G() }) }) : null;
1168
1168
  }
1169
1169
  }
1170
- function sr({ placeholder: e = "Type to search...", ...r }) {
1170
+ function cr({ placeholder: e = "Type to search...", ...r }) {
1171
1171
  const { search: o } = I(), { filters: n, handleKeyword: l } = o, [a, c] = P(n.keyword || ""), i = ze(l, { wait: 300 }), m = (g) => {
1172
1172
  const { value: p } = g.target;
1173
1173
  c(p), i.run(p);
@@ -1177,23 +1177,23 @@ function sr({ placeholder: e = "Type to search...", ...r }) {
1177
1177
  return U(() => {
1178
1178
  c(n.keyword || "");
1179
1179
  }, [n.keyword]), /* @__PURE__ */ t(
1180
- cr,
1180
+ dr,
1181
1181
  {
1182
1182
  inputProps: {
1183
1183
  "data-cy": "search-blocklet"
1184
1184
  },
1185
- startAdornment: /* @__PURE__ */ t(Re, { position: "start", children: /* @__PURE__ */ t(dr, {}) }),
1185
+ startAdornment: /* @__PURE__ */ t(Re, { position: "start", children: /* @__PURE__ */ t(ur, {}) }),
1186
1186
  onChange: m,
1187
1187
  placeholder: e,
1188
1188
  value: a,
1189
1189
  title: e,
1190
1190
  "data-cy": "search",
1191
- endAdornment: a && /* @__PURE__ */ t(Re, { position: "end", children: /* @__PURE__ */ t(ur, { "data-cy": "search-delete", onClick: d }) }),
1191
+ endAdornment: a && /* @__PURE__ */ t(Re, { position: "end", children: /* @__PURE__ */ t(hr, { "data-cy": "search-delete", onClick: d }) }),
1192
1192
  ...r
1193
1193
  }
1194
1194
  );
1195
1195
  }
1196
- const cr = K(je)`
1196
+ const dr = K(je)`
1197
1197
  background-color: ${(e) => e.theme.palette.grey[50]};
1198
1198
  font-size: 14px;
1199
1199
  border-radius: 6px;
@@ -1210,18 +1210,18 @@ const cr = K(je)`
1210
1210
  color: transparent;
1211
1211
  }
1212
1212
  }
1213
- `, dr = K(J)`
1213
+ `, ur = K(J)`
1214
1214
  color: ${(e) => e.theme.palette.grey[500]};
1215
1215
  font-size: 28px;
1216
1216
  @media (max-width: ${(e) => e.theme.breakpoints.values.md}px) {
1217
1217
  font-size: 24px;
1218
1218
  }
1219
- `, ur = K(ye)`
1219
+ `, hr = K(ye)`
1220
1220
  color: ${(e) => e.theme.palette.grey[500]};
1221
1221
  font-size: 16px;
1222
1222
  cursor: pointer;
1223
1223
  `;
1224
- function hr() {
1224
+ function pr() {
1225
1225
  const { search: e, t: r, endpoint: o, locale: n, getCategoryLocale: l, developerName: a, showResourcesSwitch: c, layout: i, baseSearch: m } = I(), { filters: d, handleSort: g, handlePrice: p, handleDeveloper: f, handleSwitchShowResources: k, cleanFilter: S } = e, B = Ue(r);
1226
1226
  return /* @__PURE__ */ h(
1227
1227
  A,
@@ -1247,8 +1247,8 @@ function hr() {
1247
1247
  justifyContent: { xs: "space-between", md: "flex-end" },
1248
1248
  gap: 2,
1249
1249
  children: [
1250
- i.showSearch ? /* @__PURE__ */ t(y, { flex: 1, children: m ? /* @__PURE__ */ t(sr, {}) : /* @__PURE__ */ t(
1251
- ar,
1250
+ i.showSearch ? /* @__PURE__ */ t(y, { flex: 1, children: m ? /* @__PURE__ */ t(cr, {}) : /* @__PURE__ */ t(
1251
+ sr,
1252
1252
  {
1253
1253
  locale: n,
1254
1254
  endpoint: o,
@@ -1336,7 +1336,7 @@ function Ae({
1336
1336
  }
1337
1337
  function Z({ children: e }) {
1338
1338
  return /* @__PURE__ */ h(y, { display: "flex", mt: 2, flexDirection: "column", alignItems: "center", justifyContent: "center", color: "text.lighter", children: [
1339
- /* @__PURE__ */ t(Lt, {}),
1339
+ /* @__PURE__ */ t(Et, {}),
1340
1340
  e
1341
1341
  ] });
1342
1342
  }
@@ -1367,7 +1367,7 @@ function he({
1367
1367
  ] })
1368
1368
  ] });
1369
1369
  }
1370
- function pr() {
1370
+ function mr() {
1371
1371
  const { t: e, search: r, getCategoryLocale: o, selectedCategory: n } = I(), { filters: l } = r, a = !!n || !!l.price;
1372
1372
  if (l.keyword && a)
1373
1373
  return /* @__PURE__ */ h(Z, { children: [
@@ -1409,7 +1409,7 @@ function pr() {
1409
1409
  }
1410
1410
  return /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ t(Fe, {}) });
1411
1411
  }
1412
- const mr = (e, r, o, n) => at(
1412
+ const fr = (e, r, o, n) => at(
1413
1413
  async (l) => {
1414
1414
  l || (o.currentPage = o.defaultCurrentPage);
1415
1415
  const { currentPage: a, pageSize: c } = o, i = {
@@ -1425,17 +1425,17 @@ const mr = (e, r, o, n) => at(
1425
1425
  },
1426
1426
  {
1427
1427
  isNoMore: (l) => l ? l.page * l.pageSize >= l.total : !1,
1428
- reloadDeps: [e, Et(r)],
1428
+ reloadDeps: [e, Lt(r)],
1429
1429
  onError: n
1430
1430
  }
1431
1431
  );
1432
- function fr() {
1432
+ function gr() {
1433
1433
  var p;
1434
1434
  const { storeApi: e, search: r, extraFilter: o, errors: n, updateDeveloperName: l } = I(), { filters: a } = r, c = st({
1435
1435
  currentPage: T.currentPage,
1436
1436
  pageSize: Ut() ? T.mobilePageSize : T.pageSize,
1437
1437
  defaultCurrentPage: T.defaultCurrentPage
1438
- }), [i, m] = P(null), d = mr(e, a, c, m), g = H(
1438
+ }), [i, m] = P(null), d = fr(e, a, c, m), g = H(
1439
1439
  () => {
1440
1440
  var f, k;
1441
1441
  return o ? o(((f = d.data) == null ? void 0 : f.list) || []) : ((k = d.data) == null ? void 0 : k.list) || [];
@@ -1461,8 +1461,8 @@ function fr() {
1461
1461
  }
1462
1462
  };
1463
1463
  }
1464
- function gr() {
1465
- const { t: e, search: r, endpoint: o, blockletRender: n, serverVersion: l, minItemWidth: a, layout: c, baseSearch: i } = I(), { filters: m } = r, { blocklets: d, errors: g, loadMore: p, loadings: f, hasNextPage: k, total: S } = fr(), [B] = Rt({
1464
+ function xr() {
1465
+ const { t: e, search: r, endpoint: o, blockletRender: n, serverVersion: l, minItemWidth: a, layout: c, baseSearch: i } = I(), { filters: m } = r, { blocklets: d, errors: g, loadMore: p, loadings: f, hasNextPage: k, total: S } = gr(), [B] = Rt({
1466
1466
  loading: f.fetchBlockletsLoading || f.loadingMore,
1467
1467
  hasNextPage: k,
1468
1468
  onLoadMore: p
@@ -1473,7 +1473,7 @@ function gr() {
1473
1473
  }
1474
1474
  const v = i && c.showSearch || !m.keyword;
1475
1475
  return /* @__PURE__ */ h(M, { children: [
1476
- v ? /* @__PURE__ */ t(hr, {}) : /* @__PURE__ */ h(M, { children: [
1476
+ v ? /* @__PURE__ */ t(pr, {}) : /* @__PURE__ */ h(M, { children: [
1477
1477
  /* @__PURE__ */ t(ke, { xs: /* @__PURE__ */ t(Ye, {}), md: null }),
1478
1478
  C()
1479
1479
  ] }),
@@ -1491,7 +1491,7 @@ function gr() {
1491
1491
  gap: 2,
1492
1492
  children: d.map((x) => /* @__PURE__ */ t(y, { "data-blocklet-did": x.did, sx: { minWidth: a }, children: n({ blocklet: x, blocklets: d, serverVersion: l }) }, x.did))
1493
1493
  }
1494
- ) : /* @__PURE__ */ t(pr, {});
1494
+ ) : /* @__PURE__ */ t(mr, {});
1495
1495
  }
1496
1496
  function C() {
1497
1497
  return /* @__PURE__ */ h(
@@ -1511,7 +1511,7 @@ function gr() {
1511
1511
  );
1512
1512
  }
1513
1513
  }
1514
- function xr() {
1514
+ function yr() {
1515
1515
  const { t: e, selectedCategory: r, getCategoryLocale: o } = I(), { toggleOpen: n } = be();
1516
1516
  return /* @__PURE__ */ h(
1517
1517
  w,
@@ -1529,17 +1529,17 @@ function xr() {
1529
1529
  }
1530
1530
  );
1531
1531
  }
1532
- function yr() {
1532
+ function wr() {
1533
1533
  const { search: e, layout: r } = I(), { filters: o } = e, n = o.category || o.keyword || o.price;
1534
1534
  return /* @__PURE__ */ t(Mt, { children: /* @__PURE__ */ h(rt, { FallbackComponent: xe, children: [
1535
- /* @__PURE__ */ t(xr, {}),
1535
+ /* @__PURE__ */ t(yr, {}),
1536
1536
  /* @__PURE__ */ h(y, { display: "flex", height: "100%", className: "list-container", pt: { xs: 0, md: 5 }, children: [
1537
1537
  /* @__PURE__ */ t(er, {}),
1538
- /* @__PURE__ */ t(A, { height: "100%", position: "relative", flex: 1, overflow: "visible", children: r.showExplore && !n ? /* @__PURE__ */ t(lr, {}) : /* @__PURE__ */ t(gr, {}) })
1538
+ /* @__PURE__ */ t(A, { height: "100%", position: "relative", flex: 1, overflow: "visible", children: r.showExplore && !n ? /* @__PURE__ */ t(ar, {}) : /* @__PURE__ */ t(xr, {}) })
1539
1539
  ] })
1540
1540
  ] }) });
1541
1541
  }
1542
- function To(e) {
1542
+ function Po(e) {
1543
1543
  return /* @__PURE__ */ h(_t, { variant: "outlined", ...e, sx: { maxWidth: 400, borderRadius: "8px", p: { xs: 2, md: 3 }, ...e.sx }, children: [
1544
1544
  /* @__PURE__ */ h(le, { display: "flex", alignItems: "center", gap: 2, pb: 1, children: [
1545
1545
  /* @__PURE__ */ h(le, { display: "flex", alignItems: "center", gap: 2, flex: 1, children: [
@@ -1558,10 +1558,10 @@ function To(e) {
1558
1558
  ] })
1559
1559
  ] });
1560
1560
  }
1561
- function Po({ showSkeleton: e, ...r }) {
1561
+ function Ao({ showSkeleton: e, ...r }) {
1562
1562
  return e ? /* @__PURE__ */ t(_, { variant: "rectangular", width: r.width, height: r.height }) : /* @__PURE__ */ t(zt, { ...r });
1563
1563
  }
1564
- function Ao(e) {
1564
+ function Fo(e) {
1565
1565
  const r = ge(), o = Je(
1566
1566
  tt({
1567
1567
  ...r,
@@ -1591,12 +1591,12 @@ function Ao(e) {
1591
1591
  }
1592
1592
  })
1593
1593
  );
1594
- return /* @__PURE__ */ t(et, { theme: o, children: /* @__PURE__ */ t(Xt, { ...e, children: /* @__PURE__ */ t(yr, {}) }) });
1594
+ return /* @__PURE__ */ t(et, { theme: o, children: /* @__PURE__ */ t(Xt, { ...e, children: /* @__PURE__ */ t(wr, {}) }) });
1595
1595
  }
1596
1596
  export {
1597
- ar as Autocomplete,
1598
- To as CardSkeleton,
1599
- Po as Image,
1600
- Ao as default,
1597
+ sr as Autocomplete,
1598
+ Po as CardSkeleton,
1599
+ Ao as Image,
1600
+ Fo as default,
1601
1601
  Dt as useSearch
1602
1602
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/list",
3
- "version": "0.14.18",
3
+ "version": "0.14.19",
4
4
  "description": "Common ux components of blocklet",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -52,8 +52,8 @@
52
52
  "react-dom": ">=18.2.0"
53
53
  },
54
54
  "dependencies": {
55
- "@blocklet/js-sdk": "^1.16.32",
56
- "@blocklet/util": "0.14.18",
55
+ "@blocklet/js-sdk": "1.16.33-beta-20241111-162739-f5906773",
56
+ "@blocklet/util": "0.14.19",
57
57
  "@emotion/react": "^11.10.0",
58
58
  "@emotion/styled": "^11.10.0",
59
59
  "@iconify-icons/tabler": "^1.2.95",
@@ -90,5 +90,5 @@
90
90
  "prettier": "^3.3.2",
91
91
  "vite": "^5.4.10"
92
92
  },
93
- "gitHead": "2439ba0b842f8a59ed193da644bfd1ab93e9a783"
93
+ "gitHead": "83cee4ab6b20108a8a3052e10fe4c2b37f51ede3"
94
94
  }