@blocklet/discuss-kit-ux 1.6.191 → 1.6.192

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-OmtAwPz3.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-QT05VtkX.mjs";
8
8
  import "@blocklet/labels";
9
9
  import "@mui/material/styles";
10
10
  import "@mui/material/Box";
@@ -2137,36 +2137,34 @@ function Comment({
2137
2137
  };
2138
2138
  const render = ({ post, interactive }) => {
2139
2139
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2140
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 3, mt: 1 }, children: [
2141
- /* @__PURE__ */ jsx(
2142
- GithubReaction,
2143
- {
2144
- data: (post == null ? void 0 : post.rating) || [],
2145
- onRate: ({ value, ratingType }) => onRate(post, value, ratingType),
2146
- onUnrate: () => onUnrate(post),
2147
- interactive
2148
- }
2149
- ),
2150
- (!!(session == null ? void 0 : session.user) || preferences.displayReplyButtonForAnonymousUsers) && interactive && /* @__PURE__ */ jsxs(
2151
- Box,
2152
- {
2153
- onClick: () => protectLogin(session, () => setInputVisible(!inputVisible)),
2154
- sx: {
2155
- display: "flex",
2156
- alignItems: "center",
2157
- gap: 0.75,
2158
- fontSize: 13,
2159
- color: "text.secondary",
2160
- lineHeight: 1,
2161
- "&:hover": { cursor: "pointer" }
2162
- },
2163
- children: [
2164
- /* @__PURE__ */ jsx(Box, { component: tablerMessageCircle, sx: { fontSize: 18, color: "text.secondary" } }),
2165
- /* @__PURE__ */ jsx(Box, { component: "span", children: "Reply" })
2166
- ]
2167
- }
2168
- )
2169
- ] }),
2140
+ /* @__PURE__ */ jsx(Box, { sx: { display: "flex", alignItems: "center", gap: 3, mt: 1 }, children: /* @__PURE__ */ jsx(
2141
+ GithubReaction,
2142
+ {
2143
+ data: (post == null ? void 0 : post.rating) || [],
2144
+ onRate: ({ value, ratingType }) => onRate(post, value, ratingType),
2145
+ onUnrate: () => onUnrate(post),
2146
+ interactive,
2147
+ append: (!!(session == null ? void 0 : session.user) || preferences.displayReplyButtonForAnonymousUsers) && interactive && /* @__PURE__ */ jsxs(
2148
+ Box,
2149
+ {
2150
+ onClick: () => protectLogin(session, () => setInputVisible(!inputVisible)),
2151
+ sx: {
2152
+ display: "flex",
2153
+ alignItems: "center",
2154
+ gap: 0.75,
2155
+ fontSize: 13,
2156
+ color: "text.secondary",
2157
+ lineHeight: 1,
2158
+ "&:hover": { cursor: "pointer" }
2159
+ },
2160
+ children: [
2161
+ /* @__PURE__ */ jsx(Box, { component: tablerMessageCircle, sx: { fontSize: 18, color: "text.secondary" } }),
2162
+ /* @__PURE__ */ jsx(Box, { component: "span", children: "Reply" })
2163
+ ]
2164
+ }
2165
+ )
2166
+ }
2167
+ ) }),
2170
2168
  inputVisible && /* @__PURE__ */ jsx(Box, { my: 2, children: /* @__PURE__ */ jsx(
2171
2169
  CommentInput,
2172
2170
  {
@@ -5176,7 +5174,7 @@ function Pagination({
5176
5174
  }
5177
5175
  );
5178
5176
  }
5179
- const Editor = lazy(() => import("./editor-E23ceKmd.mjs"));
5177
+ const Editor = lazy(() => import("./editor-Mvl3hnJk.mjs"));
5180
5178
  function LazyEditor(props) {
5181
5179
  const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
5182
5180
  /* @__PURE__ */ jsx(Skeleton, {}),
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { O, k, T, A, j, a9, B, z, H, F, J, al, W, U, X, Z, q, C, v, w, y, a1, a2, ad, a4, L, N, D, ac, ab, E, G, b, h, aa, M, P, ak, o, n, a8, R, S, a5, am, m, _, a0, ae, ah, ag, ai, an, K, ao, l, p, r, f, t, a6, Q, c, Y, x, a3, a7, u, aj, d, ap, $, af, e } from "./index-OmtAwPz3.mjs";
2
+ import { O, k, T, A, j, a9, B, z, H, F, J, al, W, U, X, Z, q, C, v, w, y, a1, a2, ad, a4, L, N, D, ac, ab, E, G, b, h, aa, M, P, ak, o, n, a8, R, S, a5, am, m, _, a0, ae, ah, ag, ai, an, K, ao, l, p, r, f, t, a6, Q, c, Y, x, a3, a7, u, aj, d, ap, $, af, e } from "./index-QT05VtkX.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -2070,36 +2070,34 @@ var __publicField = (obj, key, value) => {
2070
2070
  };
2071
2071
  const render = ({ post, interactive }) => {
2072
2072
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2073
- /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 3, mt: 1 }, children: [
2074
- /* @__PURE__ */ jsxRuntime.jsx(
2075
- GithubReaction,
2076
- {
2077
- data: (post == null ? void 0 : post.rating) || [],
2078
- onRate: ({ value, ratingType }) => onRate(post, value, ratingType),
2079
- onUnrate: () => onUnrate(post),
2080
- interactive
2081
- }
2082
- ),
2083
- (!!(session == null ? void 0 : session.user) || preferences.displayReplyButtonForAnonymousUsers) && interactive && /* @__PURE__ */ jsxRuntime.jsxs(
2084
- Box,
2085
- {
2086
- onClick: () => protectLogin(session, () => setInputVisible(!inputVisible)),
2087
- sx: {
2088
- display: "flex",
2089
- alignItems: "center",
2090
- gap: 0.75,
2091
- fontSize: 13,
2092
- color: "text.secondary",
2093
- lineHeight: 1,
2094
- "&:hover": { cursor: "pointer" }
2095
- },
2096
- children: [
2097
- /* @__PURE__ */ jsxRuntime.jsx(Box, { component: tablerMessageCircle, sx: { fontSize: 18, color: "text.secondary" } }),
2098
- /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", children: "Reply" })
2099
- ]
2100
- }
2101
- )
2102
- ] }),
2073
+ /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { display: "flex", alignItems: "center", gap: 3, mt: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(
2074
+ GithubReaction,
2075
+ {
2076
+ data: (post == null ? void 0 : post.rating) || [],
2077
+ onRate: ({ value, ratingType }) => onRate(post, value, ratingType),
2078
+ onUnrate: () => onUnrate(post),
2079
+ interactive,
2080
+ append: (!!(session == null ? void 0 : session.user) || preferences.displayReplyButtonForAnonymousUsers) && interactive && /* @__PURE__ */ jsxRuntime.jsxs(
2081
+ Box,
2082
+ {
2083
+ onClick: () => protectLogin(session, () => setInputVisible(!inputVisible)),
2084
+ sx: {
2085
+ display: "flex",
2086
+ alignItems: "center",
2087
+ gap: 0.75,
2088
+ fontSize: 13,
2089
+ color: "text.secondary",
2090
+ lineHeight: 1,
2091
+ "&:hover": { cursor: "pointer" }
2092
+ },
2093
+ children: [
2094
+ /* @__PURE__ */ jsxRuntime.jsx(Box, { component: tablerMessageCircle, sx: { fontSize: 18, color: "text.secondary" } }),
2095
+ /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", children: "Reply" })
2096
+ ]
2097
+ }
2098
+ )
2099
+ }
2100
+ ) }),
2103
2101
  inputVisible && /* @__PURE__ */ jsxRuntime.jsx(Box, { my: 2, children: /* @__PURE__ */ jsxRuntime.jsx(
2104
2102
  CommentInput,
2105
2103
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "1.6.191",
3
+ "version": "1.6.192",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@arcblock/ws": "^1.18.113",
32
- "@blocklet/editor": "1.6.191",
33
- "@blocklet/labels": "1.6.191",
32
+ "@blocklet/editor": "1.6.192",
33
+ "@blocklet/labels": "1.6.192",
34
34
  "@blocklet/uploader": "^0.0.75",
35
35
  "@emotion/css": "^11.10.5",
36
36
  "@emotion/react": "^11.10.5",
@@ -94,5 +94,5 @@
94
94
  "resolutions": {
95
95
  "react": "^18.2.0"
96
96
  },
97
- "gitHead": "e0bfe0bdc7ce8d39f4f3684f7170075025bbcb0a"
97
+ "gitHead": "3c34fa4bd4f854452af6a5d9c434dd4774ed7381"
98
98
  }