@blocklet/discuss-kit-ux 1.6.191 → 1.6.193
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-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__ */
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
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-
|
|
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-
|
|
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.
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
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.
|
|
3
|
+
"version": "1.6.193",
|
|
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.
|
|
33
|
-
"@blocklet/labels": "1.6.
|
|
32
|
+
"@blocklet/editor": "1.6.193",
|
|
33
|
+
"@blocklet/labels": "1.6.193",
|
|
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": "
|
|
97
|
+
"gitHead": "9037f9c4d84c8117cdbfb44ec701f86a66fb65bb"
|
|
98
98
|
}
|