@blocklet/discuss-kit-ux 1.6.46 → 1.6.48
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-8ce9d402.mjs";
|
|
8
8
|
import "@blocklet/labels";
|
|
9
9
|
import "@mui/material/styles";
|
|
10
10
|
import "@mui/material/Box";
|
|
@@ -40,7 +40,7 @@ import trim from "lodash/trim";
|
|
|
40
40
|
import Avatar$1 from "@mui/material/Avatar";
|
|
41
41
|
import BrokenImageIcon from "@mui/icons-material/BrokenImage";
|
|
42
42
|
import { Icon } from "@iconify/react";
|
|
43
|
-
import { Link, useNavigate, useLocation, useSearchParams,
|
|
43
|
+
import { Link, useNavigate, useLocation, useSearchParams, unstable_useBlocker } from "react-router-dom";
|
|
44
44
|
import { green } from "@mui/material/colors";
|
|
45
45
|
import { SessionContext } from "@arcblock/did-connect/lib/Session";
|
|
46
46
|
import { useTheme as useTheme$1, useMediaQuery, Box as Box$1, Tooltip as Tooltip$1, Chip as Chip$1, alpha, ClickAwayListener, Dialog as Dialog$1, DialogTitle, DialogContent, DialogActions, DialogContentText, Button as Button$1, Skeleton, IconButton as IconButton$2, InputBase, tooltipClasses as tooltipClasses$1, Badge as Badge$1 } from "@mui/material";
|
|
@@ -4439,7 +4439,7 @@ function Pagination({ page, size = 20, total, onChange, routerMode = true, ...re
|
|
|
4439
4439
|
}
|
|
4440
4440
|
);
|
|
4441
4441
|
}
|
|
4442
|
-
const Editor = lazy(() => import("./editor-
|
|
4442
|
+
const Editor = lazy(() => import("./editor-9918fcea.mjs"));
|
|
4443
4443
|
function LazyEditor(props) {
|
|
4444
4444
|
const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4445
4445
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
|
@@ -4515,7 +4515,7 @@ const DirtyPromptContainer = createContainer(useDirtyPrompt);
|
|
|
4515
4515
|
function ConfirmNavigation() {
|
|
4516
4516
|
const { t } = useLocaleContext();
|
|
4517
4517
|
const { dirty, reset } = DirtyPromptContainer.useContainer();
|
|
4518
|
-
const blocker =
|
|
4518
|
+
const blocker = unstable_useBlocker(dirty);
|
|
4519
4519
|
useEffect(() => {
|
|
4520
4520
|
if (blocker.state === "blocked" && !dirty) {
|
|
4521
4521
|
blocker.reset();
|
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-8ce9d402.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -4455,7 +4455,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4455
4455
|
function ConfirmNavigation() {
|
|
4456
4456
|
const { t } = context.useLocaleContext();
|
|
4457
4457
|
const { dirty, reset } = DirtyPromptContainer.useContainer();
|
|
4458
|
-
const blocker = reactRouterDom.
|
|
4458
|
+
const blocker = reactRouterDom.unstable_useBlocker(dirty);
|
|
4459
4459
|
react.useEffect(() => {
|
|
4460
4460
|
if (blocker.state === "blocked" && !dirty) {
|
|
4461
4461
|
blocker.reset();
|
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.48",
|
|
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.48",
|
|
33
|
+
"@blocklet/labels": "1.6.48",
|
|
34
34
|
"@blocklet/uploader": "^0.0.55",
|
|
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": "47b4287d4ecb8d9a3428386f1010a8374df13654"
|
|
97
97
|
}
|