@blocklet/discuss-kit-ux 1.6.234 → 1.6.237
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-CrcR6k_q.mjs";
|
|
8
8
|
const BlockletEditor = lazy(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -213,7 +213,8 @@ const themeOverrides = {
|
|
|
213
213
|
};
|
|
214
214
|
function InternalThemeProvider({ children }) {
|
|
215
215
|
const theme = useTheme();
|
|
216
|
-
const merged = create$1(
|
|
216
|
+
const merged = create$1({
|
|
217
|
+
...theme,
|
|
217
218
|
typography,
|
|
218
219
|
...themeOverrides
|
|
219
220
|
});
|
|
@@ -2814,21 +2815,12 @@ function UploaderProvider({ children }) {
|
|
|
2814
2815
|
ref: uploaderRef,
|
|
2815
2816
|
popup: true,
|
|
2816
2817
|
coreProps: {
|
|
2817
|
-
//
|
|
2818
|
-
restrictions
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
"image/webp",
|
|
2824
|
-
"image/svg+xml",
|
|
2825
|
-
"video/mp4",
|
|
2826
|
-
"video/webm",
|
|
2827
|
-
"application/pdf"
|
|
2828
|
-
],
|
|
2829
|
-
maxNumberOfFiles: void 0
|
|
2830
|
-
// default is unlimited
|
|
2831
|
-
}
|
|
2818
|
+
// 不做代码限制,默认使用 Media Kit 配置
|
|
2819
|
+
// // 上传限制,参考 https://uppy.io/docs/uppy/#restrictions
|
|
2820
|
+
// restrictions: {
|
|
2821
|
+
// allowedFileExts: ['.png', '.jpg', '.jpeg', '.gif', '.webp', '.svg', '.mp4', '.webm', '.pdf'],
|
|
2822
|
+
// maxNumberOfFiles: undefined, // default is unlimited
|
|
2823
|
+
// },
|
|
2832
2824
|
}
|
|
2833
2825
|
},
|
|
2834
2826
|
"uploader"
|
|
@@ -5558,7 +5550,7 @@ function Pagination({
|
|
|
5558
5550
|
}
|
|
5559
5551
|
);
|
|
5560
5552
|
}
|
|
5561
|
-
const Editor = lazy(() => import("./editor-
|
|
5553
|
+
const Editor = lazy(() => import("./editor-BBrjb_5e.mjs"));
|
|
5562
5554
|
function LazyEditor(props) {
|
|
5563
5555
|
const fallback = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
5564
5556
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "@blocklet/labels";
|
|
2
|
-
import { Q, m, U, A, k, ad, B, E, J, H, K, ap, X, W, _, Y, Z, a0, v, C, w, x, z, a4, a5, ah, a7, N, O, ab, D, ag, af, F, G, b, j, ae, M, P, ao, q, o, ac, R, S, a8, aq, n, a1, a3, ai, al, ak, am, ar, L, as, l, p, r, h, t, f, a9, T, c, $, y, a6, aa, u, an, d, at, a2, aj, e } from "./index-
|
|
2
|
+
import { Q, m, U, A, k, ad, B, E, J, H, K, ap, X, W, _, Y, Z, a0, v, C, w, x, z, a4, a5, ah, a7, N, O, ab, D, ag, af, F, G, b, j, ae, M, P, ao, q, o, ac, R, S, a8, aq, n, a1, a3, ai, al, ak, am, ar, L, as, l, p, r, h, t, f, a9, T, c, $, y, a6, aa, u, an, d, at, a2, aj, e } from "./index-CrcR6k_q.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -145,7 +145,8 @@ var __publicField = (obj, key, value) => {
|
|
|
145
145
|
};
|
|
146
146
|
function InternalThemeProvider({ children }) {
|
|
147
147
|
const theme = styles.useTheme();
|
|
148
|
-
const merged = Theme.create(
|
|
148
|
+
const merged = Theme.create({
|
|
149
|
+
...theme,
|
|
149
150
|
typography,
|
|
150
151
|
...themeOverrides
|
|
151
152
|
});
|
|
@@ -2746,21 +2747,12 @@ var __publicField = (obj, key, value) => {
|
|
|
2746
2747
|
ref: uploaderRef,
|
|
2747
2748
|
popup: true,
|
|
2748
2749
|
coreProps: {
|
|
2749
|
-
//
|
|
2750
|
-
restrictions
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
"image/webp",
|
|
2756
|
-
"image/svg+xml",
|
|
2757
|
-
"video/mp4",
|
|
2758
|
-
"video/webm",
|
|
2759
|
-
"application/pdf"
|
|
2760
|
-
],
|
|
2761
|
-
maxNumberOfFiles: void 0
|
|
2762
|
-
// default is unlimited
|
|
2763
|
-
}
|
|
2750
|
+
// 不做代码限制,默认使用 Media Kit 配置
|
|
2751
|
+
// // 上传限制,参考 https://uppy.io/docs/uppy/#restrictions
|
|
2752
|
+
// restrictions: {
|
|
2753
|
+
// allowedFileExts: ['.png', '.jpg', '.jpeg', '.gif', '.webp', '.svg', '.mp4', '.webm', '.pdf'],
|
|
2754
|
+
// maxNumberOfFiles: undefined, // default is unlimited
|
|
2755
|
+
// },
|
|
2764
2756
|
}
|
|
2765
2757
|
},
|
|
2766
2758
|
"uploader"
|
package/dist/preferences.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ declare const preferences: {
|
|
|
33
33
|
blogTemplate: "standard" | "corp";
|
|
34
34
|
primaryColor: string;
|
|
35
35
|
secondaryColor: string;
|
|
36
|
-
subscriptionPublicType: "
|
|
36
|
+
subscriptionPublicType: "blur" | "slice";
|
|
37
37
|
enableAssignmentDiscussion: boolean;
|
|
38
38
|
enableAssignmentBlog: boolean;
|
|
39
39
|
enableAssignmentDoc: boolean;
|
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.237",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@arcblock/bridge": "^2.9.
|
|
32
|
-
"@arcblock/ws": "^1.18.
|
|
33
|
-
"@blocklet/editor": "1.6.
|
|
34
|
-
"@blocklet/labels": "1.6.
|
|
35
|
-
"@blocklet/uploader": "^0.
|
|
31
|
+
"@arcblock/bridge": "^2.9.77",
|
|
32
|
+
"@arcblock/ws": "^1.18.116",
|
|
33
|
+
"@blocklet/editor": "1.6.237",
|
|
34
|
+
"@blocklet/labels": "1.6.237",
|
|
35
|
+
"@blocklet/uploader": "^0.1.2",
|
|
36
36
|
"@emotion/css": "^11.10.5",
|
|
37
37
|
"@emotion/react": "^11.10.5",
|
|
38
38
|
"@emotion/styled": "^11.10.5",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"resolutions": {
|
|
96
96
|
"react": "^18.2.0"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "252ca705b171a1406071a46b016a0583799b63ee"
|
|
99
99
|
}
|