@blocklet/discuss-kit-ux 2.1.111 → 2.1.113

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.
@@ -4,7 +4,7 @@ import { OnContentChangePlugin } from "@blocklet/editor/lib/ext/OnContentChangeP
4
4
  import { CtrlsShortcutPlugin } from "@blocklet/editor/lib/ext/ShortcutPlugin";
5
5
  import { SafeAreaPlugin } from "@blocklet/editor/lib/ext/SafeAreaPlugin";
6
6
  import { lazyRetry } from "@arcblock/ux/lib/Util";
7
- import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-BXFZiIgf.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-BoZpHEX0.mjs";
8
8
  const BlockletEditor = lazyRetry(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -3044,6 +3044,7 @@ function UploaderTrigger({ onChange, children }) {
3044
3044
  }
3045
3045
  function UploaderProvider({ children }) {
3046
3046
  const uploaderRef = useRef(null);
3047
+ const { locale } = useLocaleContext();
3047
3048
  window.uploaderRef = uploaderRef;
3048
3049
  return /* @__PURE__ */ jsxs(UploaderContext.Provider, { value: uploaderRef, children: [
3049
3050
  children,
@@ -3051,6 +3052,7 @@ function UploaderProvider({ children }) {
3051
3052
  /* @__PURE__ */ jsx(
3052
3053
  UploaderComponent,
3053
3054
  {
3055
+ locale,
3054
3056
  ref: uploaderRef,
3055
3057
  popup: true,
3056
3058
  coreProps: {
@@ -4782,7 +4784,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
4782
4784
  }
4783
4785
  const tablerSend = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "data-iconify": "tabler", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 14L21 3m0 0l-6.5 18a.55.55 0 0 1-1 0L10 14l-7-3.5a.55.55 0 0 1 0-1z" }) });
4784
4786
  const tablerLetterCase = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "data-iconify": "tabler", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M14 15.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0-7 0M3 19V8.5a3.5 3.5 0 0 1 7 0V19m-7-6h7m11-1v7" }) });
4785
- const Editor = lazyRetry(() => import("./editor-BvoQGKvy.mjs"));
4787
+ const Editor = lazyRetry(() => import("./editor-Dug_xpu_.mjs"));
4786
4788
  function LazyEditor(props) {
4787
4789
  const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
4788
4790
  /* @__PURE__ */ jsx(Skeleton, {}),
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { T, n, W, A, m, ad, B, F, K, J, L, ap, Y, X, $, Z, _, a1, w, C, x, y, E, a5, a6, ah, a8, O, Q, ac, D, ag, af, H, G, b, k, ae, M, P, ao, v, q, R, S, a9, aq, o, a2, a4, ai, al, ak, ar, N, am, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-BXFZiIgf.mjs";
2
+ import { T, n, W, A, m, ad, B, F, K, J, L, ap, Y, X, $, Z, _, a1, w, C, x, y, E, a5, a6, ah, a8, O, Q, ac, D, ag, af, H, G, b, k, ae, M, P, ao, v, q, R, S, a9, aq, o, a2, a4, ai, al, ak, ar, N, am, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-BoZpHEX0.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -2967,6 +2967,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2967
2967
  }
2968
2968
  function UploaderProvider({ children }) {
2969
2969
  const uploaderRef = react.useRef(null);
2970
+ const { locale } = context.useLocaleContext();
2970
2971
  window.uploaderRef = uploaderRef;
2971
2972
  return /* @__PURE__ */ jsxRuntime.jsxs(UploaderContext.Provider, { value: uploaderRef, children: [
2972
2973
  children,
@@ -2974,6 +2975,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2974
2975
  /* @__PURE__ */ jsxRuntime.jsx(
2975
2976
  UploaderComponent,
2976
2977
  {
2978
+ locale,
2977
2979
  ref: uploaderRef,
2978
2980
  popup: true,
2979
2981
  coreProps: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.1.111",
3
+ "version": "2.1.113",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -44,8 +44,8 @@
44
44
  "ufo": "^1.5.4",
45
45
  "unstated-next": "^1.1.0",
46
46
  "url-join": "^4.0.1",
47
- "@blocklet/editor": "^2.1.111",
48
- "@blocklet/labels": "^2.1.111"
47
+ "@blocklet/editor": "^2.1.113",
48
+ "@blocklet/labels": "^2.1.113"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@arcblock/did-connect": "^2.10.36",