@blocklet/discuss-kit 2.0.120 → 2.0.121
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/comments.js
CHANGED
|
@@ -295,8 +295,7 @@ function Wrapper({
|
|
|
295
295
|
react.useEffect(() => {
|
|
296
296
|
wsClient.connect();
|
|
297
297
|
return () => {
|
|
298
|
-
if (wsClient.isConnected())
|
|
299
|
-
;
|
|
298
|
+
if (wsClient.isConnected()) ;
|
|
300
299
|
};
|
|
301
300
|
}, []);
|
|
302
301
|
return /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.UploaderProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(reactErrorBoundary.ErrorBoundary, { FallbackComponent: ErrorFallback, children: /* @__PURE__ */ jsxRuntime.jsx(context.LocaleProvider, { translations: locales.translations, locale, children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.InternalThemeProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.ConfirmProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.DefaultEditorConfigProvider, { request: api, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10,8 +10,7 @@ const ThemeContext = react.createContext({});
|
|
|
10
10
|
function ThemeProvider({ children, theme: _theme } = {}) {
|
|
11
11
|
const [theme, setTheme] = react.useState(defaultTheme);
|
|
12
12
|
react.useEffect(() => {
|
|
13
|
-
if (_theme && typeof _theme === "object")
|
|
14
|
-
setTheme(_theme);
|
|
13
|
+
if (_theme && typeof _theme === "object") setTheme(_theme);
|
|
15
14
|
}, [_theme]);
|
|
16
15
|
if (theme) {
|
|
17
16
|
return /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: theme, children: /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Consumer, { children: (themeValue) => {
|
package/lib/es/comments.js
CHANGED
|
@@ -294,8 +294,7 @@ function Wrapper({
|
|
|
294
294
|
useEffect(() => {
|
|
295
295
|
wsClient.connect();
|
|
296
296
|
return () => {
|
|
297
|
-
if (wsClient.isConnected())
|
|
298
|
-
;
|
|
297
|
+
if (wsClient.isConnected()) ;
|
|
299
298
|
};
|
|
300
299
|
}, []);
|
|
301
300
|
return /* @__PURE__ */ jsx(UploaderProvider, { children: /* @__PURE__ */ jsx(ErrorBoundary, { FallbackComponent: ErrorFallback, children: /* @__PURE__ */ jsx(LocaleProvider, { translations, locale, children: /* @__PURE__ */ jsx(InternalThemeProvider, { children: /* @__PURE__ */ jsx(ConfirmProvider, { children: /* @__PURE__ */ jsx(DefaultEditorConfigProvider, { request: api, children: /* @__PURE__ */ jsx(
|
package/lib/es/theme-provider.js
CHANGED
|
@@ -8,8 +8,7 @@ const ThemeContext = createContext({});
|
|
|
8
8
|
function ThemeProvider({ children, theme: _theme } = {}) {
|
|
9
9
|
const [theme, setTheme] = useState(defaultTheme);
|
|
10
10
|
useEffect(() => {
|
|
11
|
-
if (_theme && typeof _theme === "object")
|
|
12
|
-
setTheme(_theme);
|
|
11
|
+
if (_theme && typeof _theme === "object") setTheme(_theme);
|
|
13
12
|
}, [_theme]);
|
|
14
13
|
if (theme) {
|
|
15
14
|
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: theme, children: /* @__PURE__ */ jsx(ThemeContext.Consumer, { children: (themeValue) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.121",
|
|
4
4
|
"description": "A react component for Discuss Kit blocklet.",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/es/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@arcblock/ws": "^1.18.128",
|
|
38
|
-
"@blocklet/discuss-kit-ux": "2.0.
|
|
39
|
-
"@blocklet/editor": "2.0.
|
|
38
|
+
"@blocklet/discuss-kit-ux": "2.0.121",
|
|
39
|
+
"@blocklet/editor": "2.0.121",
|
|
40
40
|
"@blocklet/js-sdk": "^1.16.29",
|
|
41
41
|
"@dnd-kit/core": "^6.1.0",
|
|
42
42
|
"@dnd-kit/sortable": "^8.0.0",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"@vitejs/plugin-react": "^4.2.1",
|
|
78
78
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
79
79
|
"jest": "^24.9.0",
|
|
80
|
-
"vite": "^5.
|
|
80
|
+
"vite": "^5.4.0",
|
|
81
81
|
"vite-plugin-build": "^0.10.0",
|
|
82
82
|
"vite-plugin-svgr": "^4.2.0"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "8f9d09ae2d4379fac4e7fafdffe1a2aae2aaa2b7"
|
|
85
85
|
}
|