@blocklet/discuss-kit-ux 2.3.99 → 2.3.100
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-
|
|
7
|
+
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-CKoW6m-f.mjs";
|
|
8
8
|
const BlockletEditor = lazyRetry(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -682,6 +682,15 @@ const Input = ({
|
|
|
682
682
|
toolbar: {
|
|
683
683
|
items: ["component", "block", "italic", "bold", "underline", "media", ...((_a2 = editorConfig == null ? void 0 : editorConfig.toolbar) == null ? void 0 : _a2.items) || []]
|
|
684
684
|
}
|
|
685
|
+
},
|
|
686
|
+
characterLimitConfig: {
|
|
687
|
+
maxLength: window.blocklet.preferences.maxCommentLength,
|
|
688
|
+
indicatorStyle: {
|
|
689
|
+
position: "absolute",
|
|
690
|
+
bottom: 6,
|
|
691
|
+
left: { xs: 12, md: 32 }
|
|
692
|
+
},
|
|
693
|
+
alignLeft: false
|
|
685
694
|
}
|
|
686
695
|
};
|
|
687
696
|
const editorState = draftKey && draftContent && !initialContent ? draftContent : inferInitialEditorState(initialContent);
|
|
@@ -5092,7 +5101,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }) {
|
|
|
5092
5101
|
}
|
|
5093
5102
|
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" }) });
|
|
5094
5103
|
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" }) });
|
|
5095
|
-
const Editor = lazyRetry(() => import("./editor-
|
|
5104
|
+
const Editor = lazyRetry(() => import("./editor-DAew7Gs0.mjs"));
|
|
5096
5105
|
function LazyEditor(props) {
|
|
5097
5106
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
5098
5107
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
|
@@ -6323,7 +6332,15 @@ function DefaultEditorConfigProvider({
|
|
|
6323
6332
|
blockletEmbedEndpoint: joinURL(window.location.origin, discussKitMountPoint || "", "/api/embed/check"),
|
|
6324
6333
|
openGraphEndpoint: joinURL(window.location.origin, discussKitMountPoint || "", "/api/embed/og"),
|
|
6325
6334
|
AI,
|
|
6326
|
-
templatePlugin
|
|
6335
|
+
templatePlugin,
|
|
6336
|
+
characterLimitConfig: {
|
|
6337
|
+
maxLength: window.blocklet.preferences.maxDiscussionLength,
|
|
6338
|
+
indicatorStyle: {
|
|
6339
|
+
position: "fixed",
|
|
6340
|
+
bottom: 12
|
|
6341
|
+
},
|
|
6342
|
+
alignLeft: true
|
|
6343
|
+
}
|
|
6327
6344
|
};
|
|
6328
6345
|
return value;
|
|
6329
6346
|
}, [isAdmin, request, (_b2 = session == null ? void 0 : session.user) == null ? void 0 : _b2.did, downMd]);
|
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, O, 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, 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, O, 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, 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-CKoW6m-f.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -599,6 +599,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
599
599
|
toolbar: {
|
|
600
600
|
items: ["component", "block", "italic", "bold", "underline", "media", ...((_a2 = editorConfig == null ? void 0 : editorConfig.toolbar) == null ? void 0 : _a2.items) || []]
|
|
601
601
|
}
|
|
602
|
+
},
|
|
603
|
+
characterLimitConfig: {
|
|
604
|
+
maxLength: window.blocklet.preferences.maxCommentLength,
|
|
605
|
+
indicatorStyle: {
|
|
606
|
+
position: "absolute",
|
|
607
|
+
bottom: 6,
|
|
608
|
+
left: { xs: 12, md: 32 }
|
|
609
|
+
},
|
|
610
|
+
alignLeft: false
|
|
602
611
|
}
|
|
603
612
|
};
|
|
604
613
|
const editorState = draftKey && draftContent && !initialContent ? draftContent : inferInitialEditorState(initialContent);
|
|
@@ -6240,7 +6249,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6240
6249
|
blockletEmbedEndpoint: ufo.joinURL(window.location.origin, discussKitMountPoint || "", "/api/embed/check"),
|
|
6241
6250
|
openGraphEndpoint: ufo.joinURL(window.location.origin, discussKitMountPoint || "", "/api/embed/og"),
|
|
6242
6251
|
AI,
|
|
6243
|
-
templatePlugin
|
|
6252
|
+
templatePlugin,
|
|
6253
|
+
characterLimitConfig: {
|
|
6254
|
+
maxLength: window.blocklet.preferences.maxDiscussionLength,
|
|
6255
|
+
indicatorStyle: {
|
|
6256
|
+
position: "fixed",
|
|
6257
|
+
bottom: 12
|
|
6258
|
+
},
|
|
6259
|
+
alignLeft: true
|
|
6260
|
+
}
|
|
6244
6261
|
};
|
|
6245
6262
|
return value;
|
|
6246
6263
|
}, [isAdmin, request, (_b2 = session == null ? void 0 : session.user) == null ? void 0 : _b2.did, downMd]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.100",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -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.3.
|
|
52
|
-
"@blocklet/labels": "^2.3.
|
|
51
|
+
"@blocklet/editor": "^2.3.100",
|
|
52
|
+
"@blocklet/labels": "^2.3.100"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@arcblock/did-connect": "^2.10.36",
|