@byline/richtext-lexical 6.10.1 → 6.11.0
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/field/content-editable.css +22 -18
- package/dist/field/editor-component.css +33 -29
- package/dist/field/editor.css +1218 -1214
- package/dist/field/extensions/admonition/admonition-modal.css +20 -16
- package/dist/field/extensions/admonition/admonition-node.css +114 -110
- package/dist/field/extensions/admonition/icons/danger-icon.css +13 -9
- package/dist/field/extensions/admonition/icons/note-icon.css +13 -9
- package/dist/field/extensions/admonition/icons/tip-icon.css +13 -9
- package/dist/field/extensions/admonition/icons/warning-icon.css +13 -9
- package/dist/field/extensions/auto-embed/auto-embed-modal.css +14 -10
- package/dist/field/extensions/floating-text-format/index.css +130 -126
- package/dist/field/extensions/inline-image/inline-image-modal.css +120 -116
- package/dist/field/extensions/inline-image/inline-image-node-component.css +243 -239
- package/dist/field/extensions/layout/insert-layout-modal.css +16 -12
- package/dist/field/extensions/link/floating-link-editor.css +113 -109
- package/dist/field/extensions/link/link-target-fields.css +61 -57
- package/dist/field/normalize/adapted-notice.css +2 -4
- package/dist/field/plugins/table-plugin/table-modal.css +17 -13
- package/dist/field/themes/lexical-editor-theme.css +471 -467
- package/dist/field/ui/button.css +28 -24
- package/dist/field/ui/checkbox.css +43 -39
- package/dist/field/ui/color-picker.css +69 -65
- package/dist/field/ui/dialog.css +18 -14
- package/dist/field/ui/input.css +23 -19
- package/dist/field/ui/modal.css +66 -62
- package/dist/field/ui/placeholder.css +25 -21
- package/dist/field/ui/select.css +32 -28
- package/dist/field/ui/text-area.css +29 -25
- package/dist/richtext-field_module.css +21 -17
- package/package.json +6 -6
- package/src/field/content-editable.css +31 -17
- package/src/field/editor-component.css +56 -40
- package/src/field/editor.css +1248 -1232
- package/src/field/extensions/admonition/admonition-modal.css +32 -16
- package/src/field/extensions/admonition/admonition-node.css +105 -89
- package/src/field/extensions/admonition/icons/danger-icon.css +25 -9
- package/src/field/extensions/admonition/icons/note-icon.css +25 -9
- package/src/field/extensions/admonition/icons/tip-icon.css +25 -9
- package/src/field/extensions/admonition/icons/warning-icon.css +25 -9
- package/src/field/extensions/auto-embed/auto-embed-modal.css +25 -9
- package/src/field/extensions/floating-text-format/index.css +142 -126
- package/src/field/extensions/inline-image/inline-image-modal.css +144 -128
- package/src/field/extensions/inline-image/inline-image-node-component.css +258 -242
- package/src/field/extensions/layout/insert-layout-modal.css +28 -12
- package/src/field/extensions/link/floating-link-editor.css +129 -113
- package/src/field/extensions/link/link-target-fields.css +68 -52
- package/src/field/normalize/adapted-notice.css +5 -4
- package/src/field/plugins/table-plugin/table-modal.css +29 -13
- package/src/field/themes/lexical-editor-theme.css +508 -494
- package/src/field/ui/button.css +46 -30
- package/src/field/ui/checkbox.css +62 -46
- package/src/field/ui/color-picker.css +89 -73
- package/src/field/ui/dialog.css +30 -14
- package/src/field/ui/input.css +38 -22
- package/src/field/ui/modal.css +81 -65
- package/src/field/ui/placeholder.css +36 -20
- package/src/field/ui/select.css +46 -30
- package/src/field/ui/text-area.css +45 -29
- package/src/richtext-field.module.css +38 -22
|
@@ -1,241 +1,245 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
.
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
1
|
+
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
|
|
2
|
+
|
|
3
|
+
@layer byline-components.cms {
|
|
4
|
+
.LexicalEditor__inline-image {
|
|
5
|
+
cursor: default;
|
|
6
|
+
z-index: 1;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.LexicalEditor__inline-image img {
|
|
12
|
+
cursor: default;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.LexicalEditor__inline-image.has-link img {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.LexicalEditor__inline-image.has-link img.focused.draggable {
|
|
21
|
+
cursor: grab;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.LexicalEditor__inline-image img.focused {
|
|
25
|
+
outline: 2px solid #3c84f4;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.LexicalEditor__inline-image img.focused.draggable {
|
|
29
|
+
cursor: grab;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.LexicalEditor__inline-image img.focused.draggable:active {
|
|
33
|
+
cursor: grabbing;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.LexicalEditor__inline-image.position-full, .LexicalEditor__inline-image.position-default {
|
|
37
|
+
width: 100%;
|
|
38
|
+
margin: 1em 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.LexicalEditor__inline-image.position-full img, .LexicalEditor__inline-image.position-default img {
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.LexicalEditor__inline-image.position-left {
|
|
46
|
+
float: left;
|
|
47
|
+
width: 50%;
|
|
48
|
+
margin: .75rem 1.5rem .45rem 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.LexicalEditor__inline-image.position-right {
|
|
52
|
+
float: right;
|
|
53
|
+
width: 50%;
|
|
54
|
+
margin: .75rem .45rem .45rem 1.5rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.LexicalEditor__inline-image .image-edit-button {
|
|
58
|
+
color: #fff;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
-webkit-user-select: none;
|
|
61
|
+
user-select: none;
|
|
62
|
+
background-color: #00000080;
|
|
63
|
+
border: 1px solid #ffffff4d;
|
|
64
|
+
border-radius: 5px;
|
|
65
|
+
min-width: 50px;
|
|
66
|
+
margin: 0 auto;
|
|
67
|
+
padding: 1px 4px;
|
|
68
|
+
font-size: .95rem;
|
|
69
|
+
display: block;
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 12px;
|
|
72
|
+
right: 12px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.LexicalEditor__inline-image .image-edit-button:hover {
|
|
76
|
+
background-color: #3c84f480;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.LexicalEditor__inline-image .image-link-badge {
|
|
80
|
+
color: #fff;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
-webkit-user-select: none;
|
|
83
|
+
user-select: none;
|
|
84
|
+
background-color: #00000080;
|
|
85
|
+
border: 1px solid #ffffff4d;
|
|
86
|
+
border-radius: 5px;
|
|
87
|
+
align-items: center;
|
|
88
|
+
gap: 4px;
|
|
89
|
+
max-width: calc(100% - 90px);
|
|
90
|
+
padding: 1px 6px;
|
|
91
|
+
font-size: .8rem;
|
|
92
|
+
display: flex;
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 12px;
|
|
95
|
+
left: 12px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.LexicalEditor__inline-image .image-link-badge:hover {
|
|
99
|
+
background-color: #3c84f480;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.LexicalEditor__inline-image .image-link-badge__label {
|
|
103
|
+
text-overflow: ellipsis;
|
|
104
|
+
white-space: nowrap;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.LexicalEditor__inline-image .InlineImageNode__caption_container {
|
|
109
|
+
color: #000;
|
|
110
|
+
background-color: #f4f4f4;
|
|
111
|
+
min-width: 100%;
|
|
112
|
+
font-size: .95rem;
|
|
113
|
+
display: block;
|
|
114
|
+
position: relative;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.LexicalEditor__inline-image .InlineImageNode__caption_container .tree-view-output {
|
|
119
|
+
border-radius: 0;
|
|
120
|
+
margin: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.LexicalEditor__inline-image .image-caption-button:hover {
|
|
124
|
+
background-color: #3c84f480;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.LexicalEditor__inline-image .image-resizer {
|
|
128
|
+
background-color: #3c84f4;
|
|
129
|
+
border: 1px solid #fff;
|
|
130
|
+
width: 7px;
|
|
131
|
+
height: 7px;
|
|
132
|
+
display: block;
|
|
133
|
+
position: absolute;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.LexicalEditor__inline-image .image-resizer.image-resizer-n {
|
|
137
|
+
cursor: n-resize;
|
|
138
|
+
top: -6px;
|
|
139
|
+
left: 48%;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.LexicalEditor__inline-image .image-resizer.image-resizer-ne {
|
|
143
|
+
cursor: ne-resize;
|
|
144
|
+
top: -6px;
|
|
145
|
+
right: -6px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.LexicalEditor__inline-image .image-resizer.image-resizer-e {
|
|
149
|
+
cursor: e-resize;
|
|
150
|
+
bottom: 48%;
|
|
151
|
+
right: -6px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.LexicalEditor__inline-image .image-resizer.image-resizer-se {
|
|
155
|
+
cursor: nwse-resize;
|
|
156
|
+
bottom: -2px;
|
|
157
|
+
right: -6px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.LexicalEditor__inline-image .image-resizer.image-resizer-s {
|
|
161
|
+
cursor: s-resize;
|
|
162
|
+
bottom: -2px;
|
|
163
|
+
left: 48%;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.LexicalEditor__inline-image .image-resizer.image-resizer-sw {
|
|
167
|
+
cursor: sw-resize;
|
|
168
|
+
bottom: -2px;
|
|
169
|
+
left: -6px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.LexicalEditor__inline-image .image-resizer.image-resizer-w {
|
|
173
|
+
cursor: w-resize;
|
|
174
|
+
bottom: 48%;
|
|
175
|
+
left: -6px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.LexicalEditor__inline-image .image-resizer.image-resizer-nw {
|
|
179
|
+
cursor: nw-resize;
|
|
180
|
+
top: -6px;
|
|
181
|
+
left: -6px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.InlineImageNode__container {
|
|
185
|
+
display: block;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.InlineImageNode__container.focused {
|
|
189
|
+
outline: 2px solid #3c84f4;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.InlineImageNode__contentEditable {
|
|
193
|
+
resize: none;
|
|
194
|
+
cursor: text;
|
|
195
|
+
caret-color: #050505;
|
|
196
|
+
-moz-tab-size: 1;
|
|
197
|
+
tab-size: 1;
|
|
198
|
+
-webkit-user-select: text;
|
|
199
|
+
user-select: text;
|
|
200
|
+
white-space: pre-wrap;
|
|
201
|
+
word-break: break-word;
|
|
202
|
+
border: 0;
|
|
203
|
+
outline: 0;
|
|
204
|
+
min-height: 20px;
|
|
205
|
+
padding: 10px;
|
|
206
|
+
font-size: 14px;
|
|
207
|
+
line-height: 1.4em;
|
|
208
|
+
display: block;
|
|
209
|
+
position: relative;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.InlineImageNode__contentEditable p {
|
|
213
|
+
margin-bottom: .25em;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.InlineImageNode__placeholder {
|
|
217
|
+
color: #888;
|
|
218
|
+
text-overflow: ellipsis;
|
|
219
|
+
top: 10px;
|
|
220
|
+
left: 10px;
|
|
221
|
+
right: unset;
|
|
222
|
+
-webkit-user-select: none;
|
|
223
|
+
user-select: none;
|
|
224
|
+
white-space: nowrap;
|
|
225
|
+
pointer-events: none;
|
|
226
|
+
font-size: 12px;
|
|
227
|
+
display: inline-block;
|
|
228
|
+
position: absolute;
|
|
229
|
+
overflow: hidden;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.dark .InlineImageNode__contentEditable {
|
|
233
|
+
color: #eee;
|
|
234
|
+
caret-color: auto;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.dark .LexicalEditor__inline-image .InlineImageNode__caption_container {
|
|
238
|
+
background-color: #222;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.dark .InlineImageNode__placeholder {
|
|
242
|
+
color: #888;
|
|
243
|
+
}
|
|
240
244
|
}
|
|
241
245
|
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
min-width: 340px;
|
|
3
|
-
max-width: 600px;
|
|
4
|
-
}
|
|
1
|
+
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
|
|
5
2
|
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
@layer byline-components.cms {
|
|
4
|
+
.insert-layout-modal-container {
|
|
5
|
+
min-width: 340px;
|
|
6
|
+
max-width: 600px;
|
|
7
|
+
}
|
|
9
8
|
|
|
10
|
-
@media screen and (min-width: 640px) {
|
|
11
9
|
.insert-layout-modal-select {
|
|
12
|
-
|
|
13
|
-
margin: 1rem 0 .5rem;
|
|
10
|
+
margin: 2rem 0 0;
|
|
14
11
|
}
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
@media screen and (min-width: 640px) {
|
|
14
|
+
.insert-layout-modal-select {
|
|
15
|
+
width: 100%;
|
|
16
|
+
margin: 1rem 0 .5rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.insert-layout-modal-actions {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
|