@blocklet/discuss-kit-ux 2.0.76 → 2.0.78

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.
@@ -18,6 +18,7 @@ interface Session {
18
18
  export declare const useSessionContext: () => {
19
19
  isAdmin: boolean;
20
20
  isMember: boolean;
21
+ isBlogEditor: boolean;
21
22
  hasAnyPassport: (passports: string | string[]) => boolean;
22
23
  hasAnyPermission: (perms: string | string[]) => boolean;
23
24
  session: Session;
@@ -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-DDeumtGz.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-usvR3B2J.mjs";
8
8
  const BlockletEditor = lazy(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -1051,6 +1051,7 @@ const useSessionContext = () => {
1051
1051
  ...ctx,
1052
1052
  isAdmin: ["admin", "owner"].includes(loginRole),
1053
1053
  isMember: ["member"].includes(loginRole),
1054
+ isBlogEditor: ["blogEditor"].includes(loginRole),
1054
1055
  hasAnyPassport: (passports) => {
1055
1056
  if (!passports || passports.length === 0) {
1056
1057
  return true;
@@ -4750,7 +4751,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
4750
4751
  }
4751
4752
  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" }) });
4752
4753
  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" }) });
4753
- const Editor = lazy(() => import("./editor-Ipde8Cxv.mjs"));
4754
+ const Editor = lazy(() => import("./editor-C_9ooELE.mjs"));
4754
4755
  function LazyEditor(props) {
4755
4756
  const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
4756
4757
  /* @__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-DDeumtGz.mjs";
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-usvR3B2J.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -977,6 +977,7 @@ var __publicField = (obj, key, value) => {
977
977
  ...ctx,
978
978
  isAdmin: ["admin", "owner"].includes(loginRole),
979
979
  isMember: ["member"].includes(loginRole),
980
+ isBlogEditor: ["blogEditor"].includes(loginRole),
980
981
  hasAnyPassport: (passports) => {
981
982
  if (!passports || passports.length === 0) {
982
983
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.0.76",
3
+ "version": "2.0.78",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -31,8 +31,8 @@
31
31
  "@arcblock/bridge": "^2.10.6",
32
32
  "@arcblock/react-hooks": "^2.10.6",
33
33
  "@arcblock/ws": "^1.18.126",
34
- "@blocklet/editor": "2.0.76",
35
- "@blocklet/labels": "2.0.76",
34
+ "@blocklet/editor": "2.0.78",
35
+ "@blocklet/labels": "2.0.78",
36
36
  "@blocklet/uploader": "^0.1.19",
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": "ea47b53c34ddf5111fa4cda4f5dea97eb65d1672"
103
+ "gitHead": "6afde2cacb951f2d5d7d2e059f674625cdbd29b1"
104
104
  }