@blocklet/discuss-kit-ux 1.6.257 → 1.6.258
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 { lazy } from "react";
|
|
7
|
-
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-
|
|
7
|
+
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-B65hdBdO.mjs";
|
|
8
8
|
const BlockletEditor = lazy(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -3596,7 +3596,7 @@ function UnreadNotificationProvider({ fetchUnreadState, children }) {
|
|
|
3596
3596
|
setUnread(unreadState);
|
|
3597
3597
|
};
|
|
3598
3598
|
useEffect(() => {
|
|
3599
|
-
if (session.user && !preferences.disableNotificationBadge) {
|
|
3599
|
+
if (session.user && !preferences.disableNotificationBadge && preferences.chatEnabled) {
|
|
3600
3600
|
update();
|
|
3601
3601
|
}
|
|
3602
3602
|
}, [session.user]);
|
|
@@ -5317,7 +5317,7 @@ const iconoirMessageText = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
|
5317
5317
|
] }) });
|
|
5318
5318
|
function ChatHeaderAddon({ ...rest }) {
|
|
5319
5319
|
const { unread } = useUnreadNotification();
|
|
5320
|
-
if (preferences.disableNotificationBadge) {
|
|
5320
|
+
if (preferences.disableNotificationBadge || !preferences.chatEnabled) {
|
|
5321
5321
|
return null;
|
|
5322
5322
|
}
|
|
5323
5323
|
return /* @__PURE__ */ jsx(IconButton$2, { size: "medium", ...rest, component: Link, to: "/chat", children: /* @__PURE__ */ jsx(Badge$1, { color: "error", variant: "dot", invisible: !unread, children: /* @__PURE__ */ jsx(iconoirMessageText, { style: { fontSize: 20 } }) }) });
|
|
@@ -5603,7 +5603,7 @@ function Pagination({
|
|
|
5603
5603
|
}
|
|
5604
5604
|
);
|
|
5605
5605
|
}
|
|
5606
|
-
const Editor = lazy(() => import("./editor-
|
|
5606
|
+
const Editor = lazy(() => import("./editor-BgoCcMOC.mjs"));
|
|
5607
5607
|
function LazyEditor(props) {
|
|
5608
5608
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
5609
5609
|
/* @__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, am, ar, N, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-
|
|
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, am, ar, N, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-B65hdBdO.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -3525,7 +3525,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3525
3525
|
setUnread(unreadState);
|
|
3526
3526
|
};
|
|
3527
3527
|
react.useEffect(() => {
|
|
3528
|
-
if (session.user && !preferences.disableNotificationBadge) {
|
|
3528
|
+
if (session.user && !preferences.disableNotificationBadge && preferences.chatEnabled) {
|
|
3529
3529
|
update();
|
|
3530
3530
|
}
|
|
3531
3531
|
}, [session.user]);
|
|
@@ -5246,7 +5246,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5246
5246
|
] }) });
|
|
5247
5247
|
function ChatHeaderAddon({ ...rest }) {
|
|
5248
5248
|
const { unread } = useUnreadNotification();
|
|
5249
|
-
if (preferences.disableNotificationBadge) {
|
|
5249
|
+
if (preferences.disableNotificationBadge || !preferences.chatEnabled) {
|
|
5250
5250
|
return null;
|
|
5251
5251
|
}
|
|
5252
5252
|
return /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size: "medium", ...rest, component: reactRouterDom.Link, to: "/chat", children: /* @__PURE__ */ jsxRuntime.jsx(material.Badge, { color: "error", variant: "dot", invisible: !unread, children: /* @__PURE__ */ jsxRuntime.jsx(iconoirMessageText, { style: { fontSize: 20 } }) }) });
|
package/dist/preferences.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.258",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@arcblock/bridge": "^2.9.77",
|
|
32
32
|
"@arcblock/react-hooks": "^2.9.80",
|
|
33
33
|
"@arcblock/ws": "^1.18.116",
|
|
34
|
-
"@blocklet/editor": "1.6.
|
|
35
|
-
"@blocklet/labels": "1.6.
|
|
34
|
+
"@blocklet/editor": "1.6.258",
|
|
35
|
+
"@blocklet/labels": "1.6.258",
|
|
36
36
|
"@blocklet/uploader": "^0.1.2",
|
|
37
37
|
"@emotion/css": "^11.10.5",
|
|
38
38
|
"@emotion/react": "^11.10.5",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"resolutions": {
|
|
100
100
|
"react": "^18.2.0"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "6b5469534e4b90a352a6e9af359e5bf57daac880"
|
|
103
103
|
}
|