@haklex/rich-editor 0.0.13 → 0.0.14
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.
- package/dist/index.mjs +1 -1
- package/dist/rich-editor.css +14 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var darkArticleTheme = "_17pm0gw2";
|
|
|
8
8
|
var darkCommentTheme = "_17pm0gw3";
|
|
9
9
|
var noteTheme = "_17pm0gw4";
|
|
10
10
|
var darkNoteTheme = "_17pm0gw5";
|
|
11
|
-
var vars = { color: { text: "var(--rc-text)", textSecondary: "var(--rc-text-secondary)", bg: "var(--rc-bg)", bgSecondary: "var(--rc-bg-secondary)", border: "var(--rc-border)", accent: "var(--rc-accent)", accentLight: "var(--rc-accent-light)", link: "var(--rc-link)", codeText: "var(--rc-code-text)", codeBg: "var(--rc-code-bg)", quoteBorder: "var(--rc-quote-border)", quoteBg: "var(--rc-quote-bg)", alertInfo: "var(--rc-alert-info)", alertWarning: "var(--rc-alert-warning)", alertTip: "var(--rc-alert-tip)", alertCaution: "var(--rc-alert-caution)", alertImportant: "var(--rc-alert-important)" }, spacing: { xs: "var(--rc-space-xs)", sm: "var(--rc-space-sm)", md: "var(--rc-space-md)", lg: "var(--rc-space-lg)", xl: "var(--rc-space-xl)" }, typography: { fontFamily: "var(--rc-font-family)", fontMono: "var(--rc-font-mono)", fontSizeBase: "var(--rc-font-size-base)", fontSizeSmall: "var(--rc-font-size-small)", fontSizeLarge: "var(--rc-font-size-large)", lineHeight: "var(--rc-line-height)", lineHeightTight: "var(--rc-line-height-tight)" }, borderRadius: { sm: "var(--rc-radius-sm)", md: "var(--rc-radius-md)", lg: "var(--rc-radius-lg)" } };
|
|
11
|
+
var vars = { color: { text: "var(--rc-text)", textSecondary: "var(--rc-text-secondary)", bg: "var(--rc-bg)", bgSecondary: "var(--rc-bg-secondary)", border: "var(--rc-border)", accent: "var(--rc-accent)", accentLight: "var(--rc-accent-light)", link: "var(--rc-link)", codeText: "var(--rc-code-text)", codeBg: "var(--rc-code-bg)", quoteBorder: "var(--rc-quote-border)", quoteBg: "var(--rc-quote-bg)", alertInfo: "var(--rc-alert-info)", alertWarning: "var(--rc-alert-warning)", alertTip: "var(--rc-alert-tip)", alertCaution: "var(--rc-alert-caution)", alertImportant: "var(--rc-alert-important)" }, spacing: { xs: "var(--rc-space-xs)", sm: "var(--rc-space-sm)", md: "var(--rc-space-md)", lg: "var(--rc-space-lg)", xl: "var(--rc-space-xl)" }, typography: { fontFamily: "var(--rc-font-family)", fontMono: "var(--rc-font-mono)", fontSizeBase: "var(--rc-font-size-base)", fontSizeSmall: "var(--rc-font-size-small)", fontSizeLarge: "var(--rc-font-size-large)", lineHeight: "var(--rc-line-height)", lineHeightTight: "var(--rc-line-height-tight)" }, borderRadius: { sm: "var(--rc-radius-sm)", md: "var(--rc-radius-md)", lg: "var(--rc-radius-lg)" }, layout: { maxWidth: "var(--rc-max-width)" } };
|
|
12
12
|
export {
|
|
13
13
|
$ as $createFootnoteSectionNode,
|
|
14
14
|
f2 as $createGridContainerNode,
|
package/dist/rich-editor.css
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
--rc-alert-tip: #22c55e;
|
|
17
17
|
--rc-alert-caution: #ef4444;
|
|
18
18
|
--rc-alert-important: #a855f7;
|
|
19
|
+
--rc-max-width: 65ch;
|
|
19
20
|
--rc-space-xs: 4px;
|
|
20
21
|
--rc-space-sm: 8px;
|
|
21
22
|
--rc-space-md: 16px;
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
--rc-alert-tip: #22c55e;
|
|
51
52
|
--rc-alert-caution: #ef4444;
|
|
52
53
|
--rc-alert-important: #a855f7;
|
|
54
|
+
--rc-max-width: 65ch;
|
|
53
55
|
--rc-space-xs: 4px;
|
|
54
56
|
--rc-space-sm: 8px;
|
|
55
57
|
--rc-space-md: 16px;
|
|
@@ -84,6 +86,7 @@
|
|
|
84
86
|
--rc-alert-tip: #22c55e;
|
|
85
87
|
--rc-alert-caution: #ef4444;
|
|
86
88
|
--rc-alert-important: #a855f7;
|
|
89
|
+
--rc-max-width: none;
|
|
87
90
|
--rc-space-xs: 2px;
|
|
88
91
|
--rc-space-sm: 4px;
|
|
89
92
|
--rc-space-md: 10px;
|
|
@@ -118,6 +121,7 @@
|
|
|
118
121
|
--rc-alert-tip: #4ade80;
|
|
119
122
|
--rc-alert-caution: #f87171;
|
|
120
123
|
--rc-alert-important: #c084fc;
|
|
124
|
+
--rc-max-width: 65ch;
|
|
121
125
|
--rc-space-xs: 4px;
|
|
122
126
|
--rc-space-sm: 8px;
|
|
123
127
|
--rc-space-md: 16px;
|
|
@@ -152,6 +156,7 @@
|
|
|
152
156
|
--rc-alert-tip: #4ade80;
|
|
153
157
|
--rc-alert-caution: #f87171;
|
|
154
158
|
--rc-alert-important: #c084fc;
|
|
159
|
+
--rc-max-width: none;
|
|
155
160
|
--rc-space-xs: 2px;
|
|
156
161
|
--rc-space-sm: 4px;
|
|
157
162
|
--rc-space-md: 10px;
|
|
@@ -186,6 +191,7 @@
|
|
|
186
191
|
--rc-alert-tip: #22c55e;
|
|
187
192
|
--rc-alert-caution: #ef4444;
|
|
188
193
|
--rc-alert-important: #a855f7;
|
|
194
|
+
--rc-max-width: 65ch;
|
|
189
195
|
--rc-space-xs: 4px;
|
|
190
196
|
--rc-space-sm: 8px;
|
|
191
197
|
--rc-space-md: 16px;
|
|
@@ -220,6 +226,7 @@
|
|
|
220
226
|
--rc-alert-tip: #4ade80;
|
|
221
227
|
--rc-alert-caution: #f87171;
|
|
222
228
|
--rc-alert-important: #c084fc;
|
|
229
|
+
--rc-max-width: 65ch;
|
|
223
230
|
--rc-space-xs: 4px;
|
|
224
231
|
--rc-space-sm: 8px;
|
|
225
232
|
--rc-space-md: 16px;
|
|
@@ -684,7 +691,7 @@
|
|
|
684
691
|
.r8uj4t0 > *:last-child, .r8uj4t0 .rich-editor__content > *:last-child {
|
|
685
692
|
margin-bottom: 0;
|
|
686
693
|
}.v10dui0 {
|
|
687
|
-
max-width:
|
|
694
|
+
max-width: var(--rc-max-width);
|
|
688
695
|
font-size: var(--rc-font-size-large);
|
|
689
696
|
line-height: 1.7777778;
|
|
690
697
|
color: var(--rc-text);
|
|
@@ -961,7 +968,7 @@
|
|
|
961
968
|
padding: var(--rc-space-sm) 0;
|
|
962
969
|
margin: var(--rc-space-sm) 0;
|
|
963
970
|
}.ys4fw90 {
|
|
964
|
-
max-width:
|
|
971
|
+
max-width: var(--rc-max-width);
|
|
965
972
|
font-size: var(--rc-font-size-large);
|
|
966
973
|
line-height: 1.8;
|
|
967
974
|
color: var(--rc-text);
|
|
@@ -1146,6 +1153,11 @@
|
|
|
1146
1153
|
padding: 0;
|
|
1147
1154
|
line-height: inherit;
|
|
1148
1155
|
}
|
|
1156
|
+
.ys4fw90 .rich-table .rich-paragraph:first-child::first-letter {
|
|
1157
|
+
float: none;
|
|
1158
|
+
font-size: inherit;
|
|
1159
|
+
margin-right: 0;
|
|
1160
|
+
}
|
|
1149
1161
|
.ys4fw90 .rich-image {
|
|
1150
1162
|
margin-top: 2em;
|
|
1151
1163
|
margin-bottom: 2em;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Core rich text editor based on Lexical",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"thumbhash": "^0.1.1",
|
|
28
|
-
"@haklex/rich-editor-ui": "0.0.
|
|
29
|
-
"@haklex/rich-headless": "0.0.
|
|
30
|
-
"@haklex/rich-style-token": "0.0.
|
|
28
|
+
"@haklex/rich-editor-ui": "0.0.14",
|
|
29
|
+
"@haklex/rich-headless": "0.0.14",
|
|
30
|
+
"@haklex/rich-style-token": "0.0.14"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@base-ui/react": "^1.1.0",
|