@blocklet/discuss-kit-ux 2.4.8 → 2.4.10
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.
|
@@ -17,5 +17,5 @@ export declare const useAutoTranslateStore: import('zustand').UseBoundStore<Omit
|
|
|
17
17
|
getOptions: () => Partial<import('zustand/middleware').PersistOptions<State & Action, State & Action>>;
|
|
18
18
|
};
|
|
19
19
|
}>;
|
|
20
|
-
export declare const useTargetLanguage: () =>
|
|
20
|
+
export declare const useTargetLanguage: () => string;
|
|
21
21
|
export {};
|
|
@@ -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, g as getExcerptSync, s as stringify } from "./index
|
|
7
|
+
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, g as getExcerptSync, s as stringify } from "./index--sBlM7vl.mjs";
|
|
8
8
|
const BlockletEditor = lazyRetry(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -5210,7 +5210,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }) {
|
|
|
5210
5210
|
}
|
|
5211
5211
|
const tablerSend = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", 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" }) });
|
|
5212
5212
|
const tablerLetterCase = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", 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" }) });
|
|
5213
|
-
const Editor = lazyRetry(() => import("./editor-
|
|
5213
|
+
const Editor = lazyRetry(() => import("./editor-CNbLg21V.mjs"));
|
|
5214
5214
|
function LazyEditor(props) {
|
|
5215
5215
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
5216
5216
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
|
@@ -6166,15 +6166,18 @@ function ChatHeaderAddon({ ...rest }) {
|
|
|
6166
6166
|
if (!preferences.enableNotificationBadge || !preferences.chatEnabled) {
|
|
6167
6167
|
return null;
|
|
6168
6168
|
}
|
|
6169
|
-
return
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6169
|
+
return (
|
|
6170
|
+
// @ts-expect-error
|
|
6171
|
+
/* @__PURE__ */ jsx(
|
|
6172
|
+
AddonButton,
|
|
6173
|
+
{
|
|
6174
|
+
size: "medium",
|
|
6175
|
+
icon: /* @__PURE__ */ jsx(Badge$1, { color: "error", invisible: !unread, badgeContent: unreadMessageCount, children: /* @__PURE__ */ jsx(tablerMessageCircle, {}) }),
|
|
6176
|
+
...rest,
|
|
6177
|
+
component: Link,
|
|
6178
|
+
to: "/chat"
|
|
6179
|
+
}
|
|
6180
|
+
)
|
|
6178
6181
|
);
|
|
6179
6182
|
}
|
|
6180
6183
|
const materialSymbolsEditOutline = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M5 19h1.425L16.2 9.225L14.775 7.8L5 17.575zm-2 2v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM19 6.4L17.6 5zm-3.525 2.125l-.7-.725L16.2 9.225z" }) });
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "@blocklet/labels";
|
|
2
|
-
import { W, o, Y, aQ, A, n, af, B, G, N, L, ar, _, Z, a1, $, a0, a3, x, C, y, z, F, a7, a8, aj, aa, T, U, ae, D, ai, ah, K, H, J, aG, aH, b, m, ag, M, P, aC, aq, w, aR, aS, v, O, aE, aF, R, S, ab, as, aD, q, aP, a4, a6, ak, an, am, aM, aI, aA, at, Q, ao, aK, au, aJ, ax, ay, aN, aL, l, az, h, p, r, k, aw, t, j, ac, aB, X, aT, c, a2, E, a9, ad, aV, e, u, ap, d, av, aU, aO, a5, al, f } from "./index
|
|
2
|
+
import { W, o, Y, aQ, A, n, af, B, G, N, L, ar, _, Z, a1, $, a0, a3, x, C, y, z, F, a7, a8, aj, aa, T, U, ae, D, ai, ah, K, H, J, aG, aH, b, m, ag, M, P, aC, aq, w, aR, aS, v, O, aE, aF, R, S, ab, as, aD, q, aP, a4, a6, ak, an, am, aM, aI, aA, at, Q, ao, aK, au, aJ, ax, ay, aN, aL, l, az, h, p, r, k, aw, t, j, ac, aB, X, aT, c, a2, E, a9, ad, aV, e, u, ap, d, av, aU, aO, a5, al, f } from "./index--sBlM7vl.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -6085,15 +6085,18 @@
|
|
|
6085
6085
|
if (!preferences.enableNotificationBadge || !preferences.chatEnabled) {
|
|
6086
6086
|
return null;
|
|
6087
6087
|
}
|
|
6088
|
-
return
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6088
|
+
return (
|
|
6089
|
+
// @ts-expect-error
|
|
6090
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6091
|
+
addonButton.AddonButton,
|
|
6092
|
+
{
|
|
6093
|
+
size: "medium",
|
|
6094
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(material.Badge, { color: "error", invisible: !unread, badgeContent: unreadMessageCount, children: /* @__PURE__ */ jsxRuntime.jsx(tablerMessageCircle, {}) }),
|
|
6095
|
+
...rest,
|
|
6096
|
+
component: reactRouterDom.Link,
|
|
6097
|
+
to: "/chat"
|
|
6098
|
+
}
|
|
6099
|
+
)
|
|
6097
6100
|
);
|
|
6098
6101
|
}
|
|
6099
6102
|
const materialSymbolsEditOutline = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "M5 19h1.425L16.2 9.225L14.775 7.8L5 17.575zm-2 2v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM19 6.4L17.6 5zm-3.525 2.125l-.7-.725L16.2 9.225z" }) });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.10",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/bridge": "^3.0.
|
|
22
|
-
"@arcblock/react-hooks": "^3.0.
|
|
23
|
-
"@arcblock/ws": "^1.20.
|
|
24
|
-
"@blocklet/js-sdk": "^1.16.
|
|
25
|
-
"@blocklet/uploader": "^0.
|
|
21
|
+
"@arcblock/bridge": "^3.0.24",
|
|
22
|
+
"@arcblock/react-hooks": "^3.0.24",
|
|
23
|
+
"@arcblock/ws": "^1.20.15",
|
|
24
|
+
"@blocklet/js-sdk": "^1.16.46",
|
|
25
|
+
"@blocklet/uploader": "^0.2.4",
|
|
26
26
|
"@emotion/css": "^11.13.5",
|
|
27
27
|
"@emotion/react": "^11.14.0",
|
|
28
28
|
"@emotion/styled": "^11.14.1",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"unstated-next": "^1.1.0",
|
|
49
49
|
"url-join": "^4.0.1",
|
|
50
50
|
"zustand": "^4.5.5",
|
|
51
|
-
"@blocklet/editor": "^2.4.
|
|
52
|
-
"@blocklet/labels": "^2.4.
|
|
51
|
+
"@blocklet/editor": "^2.4.10",
|
|
52
|
+
"@blocklet/labels": "^2.4.10"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@arcblock/did-connect": "^3.0.1",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@arcblock/eslint-config-ts": "^0.3.3",
|
|
68
68
|
"@babel/core": "^7.25.2",
|
|
69
|
-
"@blocklet/sdk": "^1.16.
|
|
69
|
+
"@blocklet/sdk": "^1.16.46",
|
|
70
70
|
"@iconify-json/iconoir": "^1.2.1",
|
|
71
71
|
"@iconify-json/material-symbols": "^1.2.1",
|
|
72
72
|
"@iconify-json/mdi": "^1.2.0",
|