@blocklet/discuss-kit-ux 2.0.97 → 2.0.98
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-8LMyNkyB.mjs";
|
|
8
8
|
const BlockletEditor = lazy(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -2218,10 +2218,12 @@ function GithubReaction({
|
|
|
2218
2218
|
const prefs = window.blocklet.preferences;
|
|
2219
2219
|
const preferences = {
|
|
2220
2220
|
...prefs,
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2221
|
+
// 对 preferences 做一些格式化处理
|
|
2222
|
+
maxCommentLength: parseInt(`${prefs.maxCommentLength}`, 10),
|
|
2223
|
+
maxDiscussionLength: parseInt(`${prefs.maxDiscussionLength}`, 10),
|
|
2224
|
+
maxPinLimit: parseInt(`${prefs.maxPinLimit}`, 10),
|
|
2225
|
+
maxFeaturedLimit: parseInt(`${prefs.maxFeaturedLimit}`, 10),
|
|
2226
|
+
assignmentAuthorizedPassports: prefs.assignmentAuthorizedPassports.split(",").map((x) => x.trim())
|
|
2225
2227
|
};
|
|
2226
2228
|
function Confirm({
|
|
2227
2229
|
open,
|
|
@@ -4760,7 +4762,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
|
|
|
4760
4762
|
}
|
|
4761
4763
|
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" }) });
|
|
4762
4764
|
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" }) });
|
|
4763
|
-
const Editor = lazy(() => import("./editor-
|
|
4765
|
+
const Editor = lazy(() => import("./editor-DYjHI-qS.mjs"));
|
|
4764
4766
|
function LazyEditor(props) {
|
|
4765
4767
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
4766
4768
|
/* @__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-8LMyNkyB.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -2144,10 +2144,12 @@ var __publicField = (obj, key, value) => {
|
|
|
2144
2144
|
const prefs = window.blocklet.preferences;
|
|
2145
2145
|
const preferences = {
|
|
2146
2146
|
...prefs,
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2147
|
+
// 对 preferences 做一些格式化处理
|
|
2148
|
+
maxCommentLength: parseInt(`${prefs.maxCommentLength}`, 10),
|
|
2149
|
+
maxDiscussionLength: parseInt(`${prefs.maxDiscussionLength}`, 10),
|
|
2150
|
+
maxPinLimit: parseInt(`${prefs.maxPinLimit}`, 10),
|
|
2151
|
+
maxFeaturedLimit: parseInt(`${prefs.maxFeaturedLimit}`, 10),
|
|
2152
|
+
assignmentAuthorizedPassports: prefs.assignmentAuthorizedPassports.split(",").map((x) => x.trim())
|
|
2151
2153
|
};
|
|
2152
2154
|
function Confirm({
|
|
2153
2155
|
open,
|
package/dist/preferences.d.ts
CHANGED
|
@@ -1,82 +1,2 @@
|
|
|
1
|
-
declare const preferences:
|
|
2
|
-
maxCommentLength: number;
|
|
3
|
-
maxDiscussionLength: number;
|
|
4
|
-
maxPinLimit: number;
|
|
5
|
-
maxFeaturedLimit: number;
|
|
6
|
-
allowDeleteComment: boolean;
|
|
7
|
-
allowEditComment: boolean;
|
|
8
|
-
allowImageComment: boolean;
|
|
9
|
-
discussMode: "knowledge-base" | "BBS";
|
|
10
|
-
postsViewMode: "flat" | "nested";
|
|
11
|
-
allowDeleteDiscussion: boolean;
|
|
12
|
-
allowEditDiscussion: boolean;
|
|
13
|
-
allowNewDiscussion: boolean;
|
|
14
|
-
allowLockDiscussion: boolean;
|
|
15
|
-
allowPublishBlog: boolean;
|
|
16
|
-
displayBlogComments: boolean;
|
|
17
|
-
displayLabelFilterOnBlogList: boolean;
|
|
18
|
-
blogListStyle: "default";
|
|
19
|
-
displayAuthorOnBlogList: boolean;
|
|
20
|
-
displayLabelsOnBlogList: boolean;
|
|
21
|
-
displayAuthorOnBlog: boolean;
|
|
22
|
-
displayLabelsOnBlog: boolean;
|
|
23
|
-
displayBackButtonOnBlog: boolean;
|
|
24
|
-
displayConnectButtonOnBlog: boolean;
|
|
25
|
-
displayReactionOnBlog: boolean;
|
|
26
|
-
displayReplyButtonForAnonymousUsers: boolean;
|
|
27
|
-
disableNotificationBadge: boolean;
|
|
28
|
-
enableDiscussLog: boolean;
|
|
29
|
-
discussLogPosition: "top" | "standard";
|
|
30
|
-
enableDiscussPostLog: boolean;
|
|
31
|
-
enableDiscussCommentLog: boolean;
|
|
32
|
-
enableBlogLog: boolean;
|
|
33
|
-
blogLogPosition: "top" | "standard";
|
|
34
|
-
enableBlogPostLog: boolean;
|
|
35
|
-
enableBlogCommentLog: boolean;
|
|
36
|
-
enableDocsLog: boolean;
|
|
37
|
-
docsLogPosition: "top" | "standard";
|
|
38
|
-
enableDocsPostLog: boolean;
|
|
39
|
-
enableDocsCommentLog: boolean;
|
|
40
|
-
badgeList: any[];
|
|
41
|
-
socialShareButtonsDiscussion: boolean;
|
|
42
|
-
socialShareButtonsBlog: boolean;
|
|
43
|
-
socialShareButtonsDoc: boolean;
|
|
44
|
-
blogListTemplate: "standard" | "corp";
|
|
45
|
-
blogTemplate: "standard" | "corp";
|
|
46
|
-
primaryColor: string;
|
|
47
|
-
secondaryColor: string;
|
|
48
|
-
subscriptionPublicType: "blur" | "slice";
|
|
49
|
-
enableAssignmentDiscussion: boolean;
|
|
50
|
-
enableAssignmentBlog: boolean;
|
|
51
|
-
enableAssignmentDoc: boolean;
|
|
52
|
-
bannerTitleDiscussionEn: string;
|
|
53
|
-
bannerTitleDiscussionZh: string;
|
|
54
|
-
bannerDescDiscussionEn: string;
|
|
55
|
-
bannerDescDiscussionZh: string;
|
|
56
|
-
bannerTitleBlogEn: string;
|
|
57
|
-
bannerTitleBlogZh: string;
|
|
58
|
-
bannerDescBlogEn: string;
|
|
59
|
-
bannerDescBlogZh: string;
|
|
60
|
-
bannerTitleDocEn: string;
|
|
61
|
-
bannerTitleDocZh: string;
|
|
62
|
-
bannerDescDocEn: string;
|
|
63
|
-
bannerDescDocZh: string;
|
|
64
|
-
bannerTitleBookmarkEn: string;
|
|
65
|
-
bannerTitleBookmarkZh: string;
|
|
66
|
-
bannerDescBookmarkEn: string;
|
|
67
|
-
bannerDescBookmarkZh: string;
|
|
68
|
-
discussionsVisiblePostTypes: string[];
|
|
69
|
-
allowDonationOnDiscussion: boolean;
|
|
70
|
-
allowDonationAmountCustom: boolean;
|
|
71
|
-
discussionDonationButtonText: string;
|
|
72
|
-
discussionDonationHistoryStyle: string;
|
|
73
|
-
discussionDonationMaximum: string;
|
|
74
|
-
discussionDonationMinimum: string;
|
|
75
|
-
discussionDonationPresets: string;
|
|
76
|
-
discussionEnabled: boolean;
|
|
77
|
-
blogEnabled: boolean;
|
|
78
|
-
docEnabled: boolean;
|
|
79
|
-
bookmarkEnabled: boolean;
|
|
80
|
-
chatEnabled: boolean;
|
|
81
|
-
};
|
|
1
|
+
declare const preferences: typeof window.blocklet.preferences;
|
|
82
2
|
export default preferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.98",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@arcblock/bridge": "^2.10.12",
|
|
32
32
|
"@arcblock/react-hooks": "^2.10.12",
|
|
33
33
|
"@arcblock/ws": "^1.18.128",
|
|
34
|
-
"@blocklet/editor": "2.0.
|
|
35
|
-
"@blocklet/labels": "2.0.
|
|
34
|
+
"@blocklet/editor": "2.0.98",
|
|
35
|
+
"@blocklet/labels": "2.0.98",
|
|
36
36
|
"@blocklet/uploader": "^0.1.20",
|
|
37
37
|
"@emotion/css": "^11.10.5",
|
|
38
38
|
"@emotion/react": "^11.10.5",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"resolutions": {
|
|
101
101
|
"react": "^18.2.0"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "48f5be0c9040037f11ba939b63b4d78dab0ea220"
|
|
104
104
|
}
|