@blocklet/discuss-kit-ux 1.6.198 → 1.6.200
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-rSaGPi_q.mjs";
|
|
8
8
|
import "@blocklet/labels";
|
|
9
9
|
import "@mui/material/styles";
|
|
10
10
|
import "@mui/material/Box";
|
|
@@ -2942,6 +2942,7 @@ function BlogItem({
|
|
|
2942
2942
|
loading = false,
|
|
2943
2943
|
displayLabels = true
|
|
2944
2944
|
}) {
|
|
2945
|
+
var _a2;
|
|
2945
2946
|
const theme = useTheme();
|
|
2946
2947
|
const downMd = useMediaQuery$1(theme.breakpoints.down("md"));
|
|
2947
2948
|
const { locale } = useLocaleContext();
|
|
@@ -2985,7 +2986,7 @@ function BlogItem({
|
|
|
2985
2986
|
sx: { display: "block", color: "inherit", textDecoration: "none", "& + &": { mt: { xs: 2.5, md: 6 } } },
|
|
2986
2987
|
className: "blog-list-item",
|
|
2987
2988
|
children: /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
2988
|
-
/* @__PURE__ */ jsxs(Box, { sx: { flex: 1, pr: { xs: 2, md: 4 } }, children: [
|
|
2989
|
+
/* @__PURE__ */ jsxs(Box, { sx: { flex: 1, minWidth: 0, pr: { xs: 2, md: 4 } }, children: [
|
|
2989
2990
|
typeof prepend === "function" ? prepend(item) : prepend,
|
|
2990
2991
|
hideAuthor === "1" || /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(AuthorInfo, { user: item.author, createdAt: downMd ? void 0 : item.publishTime, size: "sm", responsive: true }) }),
|
|
2991
2992
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", component: "h3", sx: { ...lineClamp2, my: 0.5 }, className: "item-title", children: item.title }),
|
|
@@ -3006,7 +3007,7 @@ function BlogItem({
|
|
|
3006
3007
|
]
|
|
3007
3008
|
}
|
|
3008
3009
|
),
|
|
3009
|
-
displayLabels && /* @__PURE__ */ jsx(
|
|
3010
|
+
displayLabels && !!((_a2 = item.labels) == null ? void 0 : _a2.length) && /* @__PURE__ */ jsx(
|
|
3010
3011
|
Labels2,
|
|
3011
3012
|
{
|
|
3012
3013
|
labels: item.labels,
|
|
@@ -5174,7 +5175,7 @@ function Pagination({
|
|
|
5174
5175
|
}
|
|
5175
5176
|
);
|
|
5176
5177
|
}
|
|
5177
|
-
const Editor = lazy(() => import("./editor-
|
|
5178
|
+
const Editor = lazy(() => import("./editor-zEwMDonN.mjs"));
|
|
5178
5179
|
function LazyEditor(props) {
|
|
5179
5180
|
const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5180
5181
|
/* @__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-rSaGPi_q.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -2875,6 +2875,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2875
2875
|
loading = false,
|
|
2876
2876
|
displayLabels = true
|
|
2877
2877
|
}) {
|
|
2878
|
+
var _a2;
|
|
2878
2879
|
const theme = styles.useTheme();
|
|
2879
2880
|
const downMd = useMediaQuery(theme.breakpoints.down("md"));
|
|
2880
2881
|
const { locale } = context.useLocaleContext();
|
|
@@ -2918,7 +2919,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2918
2919
|
sx: { display: "block", color: "inherit", textDecoration: "none", "& + &": { mt: { xs: 2.5, md: 6 } } },
|
|
2919
2920
|
className: "blog-list-item",
|
|
2920
2921
|
children: /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
2921
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { flex: 1, pr: { xs: 2, md: 4 } }, children: [
|
|
2922
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { flex: 1, minWidth: 0, pr: { xs: 2, md: 4 } }, children: [
|
|
2922
2923
|
typeof prepend === "function" ? prepend(item) : prepend,
|
|
2923
2924
|
hideAuthor === "1" || /* @__PURE__ */ jsxRuntime.jsx(Box, { children: /* @__PURE__ */ jsxRuntime.jsx(AuthorInfo, { user: item.author, createdAt: downMd ? void 0 : item.publishTime, size: "sm", responsive: true }) }),
|
|
2924
2925
|
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h4", component: "h3", sx: { ...lineClamp2, my: 0.5 }, className: "item-title", children: item.title }),
|
|
@@ -2939,7 +2940,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2939
2940
|
]
|
|
2940
2941
|
}
|
|
2941
2942
|
),
|
|
2942
|
-
displayLabels && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2943
|
+
displayLabels && !!((_a2 = item.labels) == null ? void 0 : _a2.length) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2943
2944
|
labels.Labels2,
|
|
2944
2945
|
{
|
|
2945
2946
|
labels: item.labels,
|
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.200",
|
|
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.200",
|
|
33
|
+
"@blocklet/labels": "1.6.200",
|
|
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": "9a1304683bb3a7775d995c6cb5e5ffcee39be438"
|
|
98
98
|
}
|