@blocklet/discuss-kit-ux 2.1.50 → 2.1.52
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-R5E6N0Fj.mjs";
|
|
8
8
|
const BlockletEditor = lazy(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -1045,7 +1045,7 @@ function Badge({
|
|
|
1045
1045
|
] }) : null;
|
|
1046
1046
|
}
|
|
1047
1047
|
const useSessionContext = () => {
|
|
1048
|
-
var _a2, _b2, _c2, _d2, _e;
|
|
1048
|
+
var _a2, _b2, _c2, _d2, _e, _f, _g, _h;
|
|
1049
1049
|
const ctx = useContext(SessionContext) || {};
|
|
1050
1050
|
const loginRole = (_b2 = (_a2 = ctx == null ? void 0 : ctx.session) == null ? void 0 : _a2.user) == null ? void 0 : _b2.role;
|
|
1051
1051
|
const permissionSet = useMemo(() => {
|
|
@@ -1057,7 +1057,7 @@ const useSessionContext = () => {
|
|
|
1057
1057
|
isAuthenticated: !!((_e = ctx.session) == null ? void 0 : _e.user),
|
|
1058
1058
|
isAdmin: ["admin", "owner"].includes(loginRole),
|
|
1059
1059
|
isMember: ["member"].includes(loginRole),
|
|
1060
|
-
isBlogEditor:
|
|
1060
|
+
isBlogEditor: (_h = (_g = (_f = ctx == null ? void 0 : ctx.session) == null ? void 0 : _f.user) == null ? void 0 : _g.passports) == null ? void 0 : _h.some((p) => p.name === "blogEditor"),
|
|
1061
1061
|
hasAnyPassport: (passports) => {
|
|
1062
1062
|
if (!passports || passports.length === 0) {
|
|
1063
1063
|
return true;
|
|
@@ -4735,7 +4735,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
|
|
|
4735
4735
|
}
|
|
4736
4736
|
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" }) });
|
|
4737
4737
|
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" }) });
|
|
4738
|
-
const Editor = lazy(() => import("./editor-
|
|
4738
|
+
const Editor = lazy(() => import("./editor-CLynam5w.mjs"));
|
|
4739
4739
|
function LazyEditor(props) {
|
|
4740
4740
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
4741
4741
|
/* @__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, ar, N, am, 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, ar, N, am, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-R5E6N0Fj.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -969,7 +969,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
969
969
|
] }) : null;
|
|
970
970
|
}
|
|
971
971
|
const useSessionContext = () => {
|
|
972
|
-
var _a2, _b2, _c2, _d2, _e;
|
|
972
|
+
var _a2, _b2, _c2, _d2, _e, _f, _g, _h;
|
|
973
973
|
const ctx = react.useContext(Session.SessionContext) || {};
|
|
974
974
|
const loginRole = (_b2 = (_a2 = ctx == null ? void 0 : ctx.session) == null ? void 0 : _a2.user) == null ? void 0 : _b2.role;
|
|
975
975
|
const permissionSet = react.useMemo(() => {
|
|
@@ -981,7 +981,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
981
981
|
isAuthenticated: !!((_e = ctx.session) == null ? void 0 : _e.user),
|
|
982
982
|
isAdmin: ["admin", "owner"].includes(loginRole),
|
|
983
983
|
isMember: ["member"].includes(loginRole),
|
|
984
|
-
isBlogEditor:
|
|
984
|
+
isBlogEditor: (_h = (_g = (_f = ctx == null ? void 0 : ctx.session) == null ? void 0 : _f.user) == null ? void 0 : _g.passports) == null ? void 0 : _h.some((p) => p.name === "blogEditor"),
|
|
985
985
|
hasAnyPassport: (passports) => {
|
|
986
986
|
if (!passports || passports.length === 0) {
|
|
987
987
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.52",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/bridge": "^2.10.
|
|
22
|
-
"@arcblock/react-hooks": "^2.10.
|
|
23
|
-
"@arcblock/ws": "^1.18.
|
|
21
|
+
"@arcblock/bridge": "^2.10.70",
|
|
22
|
+
"@arcblock/react-hooks": "^2.10.70",
|
|
23
|
+
"@arcblock/ws": "^1.18.135",
|
|
24
24
|
"@blocklet/uploader": "^0.1.53",
|
|
25
|
-
"@emotion/css": "^11.13.
|
|
26
|
-
"@emotion/react": "^11.13.
|
|
27
|
-
"@emotion/styled": "^11.13.
|
|
25
|
+
"@emotion/css": "^11.13.0",
|
|
26
|
+
"@emotion/react": "^11.13.3",
|
|
27
|
+
"@emotion/styled": "^11.13.0",
|
|
28
28
|
"@iconify/react": "^4.1.1",
|
|
29
29
|
"@lexical/react": "0.13.1",
|
|
30
30
|
"@lexical/text": "0.13.1",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"react-flip-toolkit": "^7.2.4",
|
|
40
40
|
"react-helmet": "^6.1.0",
|
|
41
41
|
"react-lazy-with-preload": "^2.2.1",
|
|
42
|
-
"react-select": "^5.8.
|
|
42
|
+
"react-select": "^5.8.1",
|
|
43
43
|
"semver-compare": "^1.0.0",
|
|
44
44
|
"ufo": "^1.5.4",
|
|
45
45
|
"unstated-next": "^1.1.0",
|
|
46
46
|
"url-join": "^4.0.1",
|
|
47
|
-
"@blocklet/editor": "^2.1.
|
|
48
|
-
"@blocklet/labels": "^2.1.
|
|
47
|
+
"@blocklet/editor": "^2.1.52",
|
|
48
|
+
"@blocklet/labels": "^2.1.52"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@arcblock/did-connect": "^2.10.36",
|
|
@@ -61,31 +61,31 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@arcblock/eslint-config-ts": "^0.3.3",
|
|
64
|
-
"@babel/core": "^7.
|
|
65
|
-
"@iconify-json/iconoir": "^1.2.
|
|
66
|
-
"@iconify-json/material-symbols": "^1.2.
|
|
67
|
-
"@iconify-json/mdi": "^1.2.
|
|
64
|
+
"@babel/core": "^7.25.2",
|
|
65
|
+
"@iconify-json/iconoir": "^1.2.1",
|
|
66
|
+
"@iconify-json/material-symbols": "^1.2.1",
|
|
67
|
+
"@iconify-json/mdi": "^1.2.0",
|
|
68
68
|
"@storybook/addon-actions": "^6.5.16",
|
|
69
69
|
"@storybook/addon-essentials": "^6.5.16",
|
|
70
70
|
"@storybook/addon-interactions": "^6.5.16",
|
|
71
71
|
"@storybook/addon-links": "^6.5.16",
|
|
72
|
-
"@storybook/builder-vite": "^8.
|
|
72
|
+
"@storybook/builder-vite": "^8.3.5",
|
|
73
73
|
"@storybook/react": "^6.5.16",
|
|
74
74
|
"@storybook/testing-library": "^0.0.13",
|
|
75
75
|
"@svgr/core": "^6.5.1",
|
|
76
|
-
"@types/react": "^18.3.
|
|
76
|
+
"@types/react": "^18.3.9",
|
|
77
77
|
"@types/react-color": "^3.0.12",
|
|
78
|
-
"@types/react-dom": "^18.3.
|
|
78
|
+
"@types/react-dom": "^18.3.0",
|
|
79
79
|
"@types/semver-compare": "^1.0.3",
|
|
80
|
-
"@vitejs/plugin-react": "^4.3.
|
|
80
|
+
"@vitejs/plugin-react": "^4.3.2",
|
|
81
81
|
"babel-loader": "^8.4.1",
|
|
82
82
|
"react": "^18.3.1",
|
|
83
83
|
"react-dom": "^18.3.1",
|
|
84
84
|
"rollup-plugin-node-externals": "^7.1.3",
|
|
85
85
|
"typescript": "^4.9.5",
|
|
86
86
|
"unplugin-icons": "^0.14.15",
|
|
87
|
-
"vite": "^5.4.
|
|
88
|
-
"vite-plugin-dts": "^4.
|
|
87
|
+
"vite": "^5.4.9",
|
|
88
|
+
"vite-plugin-dts": "^4.2.4",
|
|
89
89
|
"vite-plugin-libcss": "^1.1.1"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|