@blocklet/discuss-kit-ux 1.6.54 → 1.6.56
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.
|
@@ -6,6 +6,7 @@ interface Props {
|
|
|
6
6
|
onSubmit?: Send;
|
|
7
7
|
autoCollapse?: boolean;
|
|
8
8
|
enableHeadingsIdPlugin?: boolean;
|
|
9
|
+
onReady?: () => void;
|
|
9
10
|
}
|
|
10
|
-
export default function PostContent({ content, editing, onExitEditing, onSubmit, autoCollapse, enableHeadingsIdPlugin, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function PostContent({ content, editing, onExitEditing, onSubmit, autoCollapse, enableHeadingsIdPlugin, onReady, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
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 { 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-e43dee87.mjs";
|
|
8
8
|
import "@blocklet/labels";
|
|
9
9
|
import "@mui/material/styles";
|
|
10
10
|
import "@mui/material/Box";
|
|
@@ -1162,6 +1162,7 @@ function PostContent({
|
|
|
1162
1162
|
onSubmit,
|
|
1163
1163
|
autoCollapse,
|
|
1164
1164
|
enableHeadingsIdPlugin,
|
|
1165
|
+
onReady,
|
|
1165
1166
|
...rest
|
|
1166
1167
|
}) {
|
|
1167
1168
|
if (editing && onSubmit) {
|
|
@@ -1182,6 +1183,7 @@ function PostContent({
|
|
|
1182
1183
|
editable: false,
|
|
1183
1184
|
editorState: inferInitialEditorState(content),
|
|
1184
1185
|
enableHeadingsIdPlugin,
|
|
1186
|
+
onReady,
|
|
1185
1187
|
children: [
|
|
1186
1188
|
/* @__PURE__ */ jsx(ImagePathFixerPlugin, {}),
|
|
1187
1189
|
/* @__PURE__ */ jsx(VideoPathFixerPlugin, {}),
|
|
@@ -1196,6 +1198,7 @@ function PostContent({
|
|
|
1196
1198
|
editable: false,
|
|
1197
1199
|
editorState: inferInitialEditorState(content),
|
|
1198
1200
|
enableHeadingsIdPlugin,
|
|
1201
|
+
onReady,
|
|
1199
1202
|
children: [
|
|
1200
1203
|
/* @__PURE__ */ jsx(ImagePathFixerPlugin, {}),
|
|
1201
1204
|
/* @__PURE__ */ jsx(CheckboxPlugin, { send: onSubmit })
|
|
@@ -4458,7 +4461,7 @@ function Pagination({ page, size = 20, total, onChange, routerMode = true, ...re
|
|
|
4458
4461
|
}
|
|
4459
4462
|
);
|
|
4460
4463
|
}
|
|
4461
|
-
const Editor = lazy(() => import("./editor-
|
|
4464
|
+
const Editor = lazy(() => import("./editor-7eb9bd3b.mjs"));
|
|
4462
4465
|
function LazyEditor(props) {
|
|
4463
4466
|
const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4464
4467
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "@blocklet/labels";
|
|
2
|
-
import { K, j, N, A, h, a6, B, z, y, E, Q, O, T, W, o, C, q, v, x, _, $, aa, a1, H, J, D, a9, a8, G, c, b, a7, M, P, ah, n, m, a5, R, S, a2, k, X, Z, ab, ae, ad, af, ai, F, aj, l, p, r, t, d, a3, L, e, U, w, a0, a4, u, ag, ak, Y, ac, f } from "./index-
|
|
2
|
+
import { K, j, N, A, h, a6, B, z, y, E, Q, O, T, W, o, C, q, v, x, _, $, aa, a1, H, J, D, a9, a8, G, c, b, a7, M, P, ah, n, m, a5, R, S, a2, k, X, Z, ab, ae, ad, af, ai, F, aj, l, p, r, t, d, a3, L, e, U, w, a0, a4, u, ag, ak, Y, ac, f } from "./index-e43dee87.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -1102,6 +1102,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1102
1102
|
onSubmit,
|
|
1103
1103
|
autoCollapse,
|
|
1104
1104
|
enableHeadingsIdPlugin,
|
|
1105
|
+
onReady,
|
|
1105
1106
|
...rest
|
|
1106
1107
|
}) {
|
|
1107
1108
|
if (editing && onSubmit) {
|
|
@@ -1122,6 +1123,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1122
1123
|
editable: false,
|
|
1123
1124
|
editorState: inferInitialEditorState(content),
|
|
1124
1125
|
enableHeadingsIdPlugin,
|
|
1126
|
+
onReady,
|
|
1125
1127
|
children: [
|
|
1126
1128
|
/* @__PURE__ */ jsxRuntime.jsx(ImagePathFixerPlugin, {}),
|
|
1127
1129
|
/* @__PURE__ */ jsxRuntime.jsx(VideoPathFixerPlugin, {}),
|
|
@@ -1136,6 +1138,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1136
1138
|
editable: false,
|
|
1137
1139
|
editorState: inferInitialEditorState(content),
|
|
1138
1140
|
enableHeadingsIdPlugin,
|
|
1141
|
+
onReady,
|
|
1139
1142
|
children: [
|
|
1140
1143
|
/* @__PURE__ */ jsxRuntime.jsx(ImagePathFixerPlugin, {}),
|
|
1141
1144
|
/* @__PURE__ */ jsxRuntime.jsx(CheckboxPlugin, { send: onSubmit })
|
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.56",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@arcblock/ws": "^1.18.107",
|
|
32
|
-
"@blocklet/editor": "1.6.
|
|
33
|
-
"@blocklet/labels": "1.6.
|
|
32
|
+
"@blocklet/editor": "1.6.56",
|
|
33
|
+
"@blocklet/labels": "1.6.56",
|
|
34
34
|
"@blocklet/uploader": "^0.0.60",
|
|
35
35
|
"@emotion/css": "^11.10.5",
|
|
36
36
|
"@emotion/react": "^11.10.5",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"resolutions": {
|
|
94
94
|
"react": "^18.2.0"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "154919a0faacdfe5dae05b3cce7f4836893ea1ea"
|
|
97
97
|
}
|