@blocklet/discuss-kit-ux 2.1.154 → 2.1.156
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 { lazyRetry } from "@arcblock/ux/lib/Util";
|
|
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-Crm8cXwn.mjs";
|
|
8
8
|
const BlockletEditor = lazyRetry(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -87,50 +87,63 @@ const typography = {
|
|
|
87
87
|
h1: {
|
|
88
88
|
fontSize: "1.875rem",
|
|
89
89
|
lineHeight: 1.2,
|
|
90
|
-
fontWeight:
|
|
91
|
-
letterSpacing:
|
|
90
|
+
fontWeight: 700
|
|
91
|
+
// letterSpacing: '-.025em',
|
|
92
92
|
},
|
|
93
93
|
h2: {
|
|
94
94
|
fontSize: "1.5rem",
|
|
95
95
|
lineHeight: 1.3333333,
|
|
96
|
-
fontWeight: 700
|
|
97
|
-
letterSpacing:
|
|
96
|
+
fontWeight: 700
|
|
97
|
+
// letterSpacing: '-.025em',
|
|
98
98
|
},
|
|
99
99
|
h3: {
|
|
100
100
|
fontSize: "1.25rem",
|
|
101
101
|
lineHeight: 1.4,
|
|
102
|
-
fontWeight:
|
|
103
|
-
letterSpacing:
|
|
102
|
+
fontWeight: 700
|
|
103
|
+
// letterSpacing: '-.025em',
|
|
104
104
|
},
|
|
105
105
|
h4: {
|
|
106
106
|
fontSize: "1.125rem",
|
|
107
|
-
lineHeight: 1.
|
|
107
|
+
lineHeight: 1.55,
|
|
108
108
|
fontWeight: 600
|
|
109
109
|
},
|
|
110
110
|
h5: {
|
|
111
111
|
fontSize: "1rem",
|
|
112
|
-
lineHeight: 1.
|
|
113
|
-
fontWeight:
|
|
112
|
+
lineHeight: 1.5,
|
|
113
|
+
fontWeight: 700
|
|
114
114
|
},
|
|
115
115
|
h6: {
|
|
116
|
-
fontSize: "
|
|
117
|
-
lineHeight: 1.
|
|
118
|
-
fontWeight:
|
|
116
|
+
fontSize: "0.875rem",
|
|
117
|
+
lineHeight: 1.43,
|
|
118
|
+
fontWeight: 700
|
|
119
119
|
},
|
|
120
120
|
subtitle1: {
|
|
121
121
|
fontSize: "1rem",
|
|
122
|
-
lineHeight: 1.
|
|
123
|
-
fontWeight:
|
|
122
|
+
lineHeight: 1.5,
|
|
123
|
+
fontWeight: 500
|
|
124
124
|
},
|
|
125
125
|
subtitle2: {
|
|
126
|
-
fontSize: "
|
|
127
|
-
lineHeight: 1.
|
|
128
|
-
fontWeight:
|
|
126
|
+
fontSize: "0.875rem",
|
|
127
|
+
lineHeight: 1.43,
|
|
128
|
+
fontWeight: 500
|
|
129
129
|
},
|
|
130
130
|
body1: {
|
|
131
131
|
fontSize: "1rem",
|
|
132
132
|
lineHeight: 1.75
|
|
133
133
|
},
|
|
134
|
+
body2: {
|
|
135
|
+
fontSize: "0.875rem",
|
|
136
|
+
lineHeight: 1.43
|
|
137
|
+
},
|
|
138
|
+
caption: {
|
|
139
|
+
fontSize: "0.75rem",
|
|
140
|
+
lineHeight: 1.33
|
|
141
|
+
},
|
|
142
|
+
overline: {
|
|
143
|
+
fontSize: "0.75rem",
|
|
144
|
+
lineHeight: 1.33,
|
|
145
|
+
fontWeight: 500
|
|
146
|
+
},
|
|
134
147
|
fontWeightLight: 300,
|
|
135
148
|
fontWeightRegular: 400,
|
|
136
149
|
fontWeightMedium: 500,
|
|
@@ -155,7 +168,8 @@ const themeOverrides = {
|
|
|
155
168
|
},
|
|
156
169
|
MuiButton: {
|
|
157
170
|
defaultProps: {
|
|
158
|
-
size: "small"
|
|
171
|
+
size: "small",
|
|
172
|
+
disableElevation: true
|
|
159
173
|
},
|
|
160
174
|
styleOverrides: {
|
|
161
175
|
root: {
|
|
@@ -4799,7 +4813,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
|
|
|
4799
4813
|
}
|
|
4800
4814
|
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" }) });
|
|
4801
4815
|
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" }) });
|
|
4802
|
-
const Editor = lazyRetry(() => import("./editor-
|
|
4816
|
+
const Editor = lazyRetry(() => import("./editor-Dk8IGx7s.mjs"));
|
|
4803
4817
|
function LazyEditor(props) {
|
|
4804
4818
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
4805
4819
|
/* @__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, au, 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, au, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-Crm8cXwn.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -10,50 +10,63 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
10
10
|
h1: {
|
|
11
11
|
fontSize: "1.875rem",
|
|
12
12
|
lineHeight: 1.2,
|
|
13
|
-
fontWeight:
|
|
14
|
-
letterSpacing:
|
|
13
|
+
fontWeight: 700
|
|
14
|
+
// letterSpacing: '-.025em',
|
|
15
15
|
},
|
|
16
16
|
h2: {
|
|
17
17
|
fontSize: "1.5rem",
|
|
18
18
|
lineHeight: 1.3333333,
|
|
19
|
-
fontWeight: 700
|
|
20
|
-
letterSpacing:
|
|
19
|
+
fontWeight: 700
|
|
20
|
+
// letterSpacing: '-.025em',
|
|
21
21
|
},
|
|
22
22
|
h3: {
|
|
23
23
|
fontSize: "1.25rem",
|
|
24
24
|
lineHeight: 1.4,
|
|
25
|
-
fontWeight:
|
|
26
|
-
letterSpacing:
|
|
25
|
+
fontWeight: 700
|
|
26
|
+
// letterSpacing: '-.025em',
|
|
27
27
|
},
|
|
28
28
|
h4: {
|
|
29
29
|
fontSize: "1.125rem",
|
|
30
|
-
lineHeight: 1.
|
|
30
|
+
lineHeight: 1.55,
|
|
31
31
|
fontWeight: 600
|
|
32
32
|
},
|
|
33
33
|
h5: {
|
|
34
34
|
fontSize: "1rem",
|
|
35
|
-
lineHeight: 1.
|
|
36
|
-
fontWeight:
|
|
35
|
+
lineHeight: 1.5,
|
|
36
|
+
fontWeight: 700
|
|
37
37
|
},
|
|
38
38
|
h6: {
|
|
39
|
-
fontSize: "
|
|
40
|
-
lineHeight: 1.
|
|
41
|
-
fontWeight:
|
|
39
|
+
fontSize: "0.875rem",
|
|
40
|
+
lineHeight: 1.43,
|
|
41
|
+
fontWeight: 700
|
|
42
42
|
},
|
|
43
43
|
subtitle1: {
|
|
44
44
|
fontSize: "1rem",
|
|
45
|
-
lineHeight: 1.
|
|
46
|
-
fontWeight:
|
|
45
|
+
lineHeight: 1.5,
|
|
46
|
+
fontWeight: 500
|
|
47
47
|
},
|
|
48
48
|
subtitle2: {
|
|
49
|
-
fontSize: "
|
|
50
|
-
lineHeight: 1.
|
|
51
|
-
fontWeight:
|
|
49
|
+
fontSize: "0.875rem",
|
|
50
|
+
lineHeight: 1.43,
|
|
51
|
+
fontWeight: 500
|
|
52
52
|
},
|
|
53
53
|
body1: {
|
|
54
54
|
fontSize: "1rem",
|
|
55
55
|
lineHeight: 1.75
|
|
56
56
|
},
|
|
57
|
+
body2: {
|
|
58
|
+
fontSize: "0.875rem",
|
|
59
|
+
lineHeight: 1.43
|
|
60
|
+
},
|
|
61
|
+
caption: {
|
|
62
|
+
fontSize: "0.75rem",
|
|
63
|
+
lineHeight: 1.33
|
|
64
|
+
},
|
|
65
|
+
overline: {
|
|
66
|
+
fontSize: "0.75rem",
|
|
67
|
+
lineHeight: 1.33,
|
|
68
|
+
fontWeight: 500
|
|
69
|
+
},
|
|
57
70
|
fontWeightLight: 300,
|
|
58
71
|
fontWeightRegular: 400,
|
|
59
72
|
fontWeightMedium: 500,
|
|
@@ -78,7 +91,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
78
91
|
},
|
|
79
92
|
MuiButton: {
|
|
80
93
|
defaultProps: {
|
|
81
|
-
size: "small"
|
|
94
|
+
size: "small",
|
|
95
|
+
disableElevation: true
|
|
82
96
|
},
|
|
83
97
|
styleOverrides: {
|
|
84
98
|
root: {
|
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.156",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"ufo": "^1.5.4",
|
|
46
46
|
"unstated-next": "^1.1.0",
|
|
47
47
|
"url-join": "^4.0.1",
|
|
48
|
-
"@blocklet/editor": "^2.1.
|
|
49
|
-
"@blocklet/labels": "^2.1.
|
|
48
|
+
"@blocklet/editor": "^2.1.156",
|
|
49
|
+
"@blocklet/labels": "^2.1.156"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@arcblock/did-connect": "^2.10.36",
|