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