@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,31 +1,35 @@
|
|
|
1
|
-
.
|
|
2
|
-
flex-direction: column;
|
|
3
|
-
margin-bottom: 10px;
|
|
4
|
-
display: flex;
|
|
5
|
-
}
|
|
1
|
+
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
|
|
6
2
|
|
|
7
|
-
.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
3
|
+
@layer byline-components.cms {
|
|
4
|
+
.TextArea__wrapper {
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
margin-bottom: 10px;
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
13
9
|
|
|
14
|
-
.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
10
|
+
.TextArea__label {
|
|
11
|
+
color: #666;
|
|
12
|
+
flex: 1;
|
|
13
|
+
margin-bottom: 4px;
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
21
16
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
.TextArea__input {
|
|
18
|
+
border: 1px solid #999;
|
|
19
|
+
border-radius: 1px;
|
|
20
|
+
min-width: 0;
|
|
21
|
+
padding: 7px 10px;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:is(.dark, [data-theme="dark"]) .TextArea__label {
|
|
26
|
+
color: #ccc;
|
|
27
|
+
}
|
|
25
28
|
|
|
26
|
-
:is(.dark, [data-theme="dark"]) .TextArea__input {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
:is(.dark, [data-theme="dark"]) .TextArea__input {
|
|
30
|
+
color: #eee;
|
|
31
|
+
background-color: #1c1c1c;
|
|
32
|
+
border: 1px solid #666;
|
|
33
|
+
}
|
|
30
34
|
}
|
|
31
35
|
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
flex: 1;
|
|
3
|
-
min-width: 0;
|
|
4
|
-
height: 100%;
|
|
5
|
-
display: flex;
|
|
6
|
-
}
|
|
1
|
+
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
@layer byline-components.cms {
|
|
4
|
+
:is(.wrapper-Kp9TyN, .byline-field-richtext) {
|
|
5
|
+
flex: 1;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
height: 100%;
|
|
8
|
+
display: flex;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:is(.label-row-GTig6y, .byline-field-richtext-label) {
|
|
12
|
+
align-items: center;
|
|
13
|
+
margin-bottom: .25rem;
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
13
16
|
|
|
14
|
-
:is(.body-dyCs_k, .byline-field-richtext-body) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
:is(.body-dyCs_k, .byline-field-richtext-body) {
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
flex: 1;
|
|
20
|
+
gap: .25rem;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
20
24
|
}
|
|
21
25
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "6.
|
|
6
|
+
"version": "6.11.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=22.22.2"
|
|
9
9
|
},
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@byline/admin": "6.
|
|
66
|
-
"@byline/client": "6.
|
|
67
|
-
"@byline/core": "6.
|
|
68
|
-
"@byline/i18n": "6.
|
|
69
|
-
"@byline/ui": "6.
|
|
65
|
+
"@byline/admin": "6.11.0",
|
|
66
|
+
"@byline/client": "6.11.0",
|
|
67
|
+
"@byline/core": "6.11.0",
|
|
68
|
+
"@byline/i18n": "6.11.0",
|
|
69
|
+
"@byline/ui": "6.11.0",
|
|
70
70
|
"@lexical/code": "0.52.0",
|
|
71
71
|
"@lexical/code-prism": "0.52.0",
|
|
72
72
|
"@lexical/extension": "0.52.0",
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
@layer base,
|
|
2
|
+
byline-base,
|
|
3
|
+
theme,
|
|
4
|
+
byline-theme,
|
|
5
|
+
byline-functional,
|
|
6
|
+
byline-typography,
|
|
7
|
+
components,
|
|
8
|
+
byline-components,
|
|
9
|
+
overrides,
|
|
10
|
+
byline-utilities,
|
|
11
|
+
utilities;
|
|
12
|
+
@layer byline-components.primitives, byline-components.cms;
|
|
1
13
|
/**
|
|
2
14
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
15
|
*
|
|
@@ -6,24 +18,26 @@
|
|
|
6
18
|
*
|
|
7
19
|
*
|
|
8
20
|
*/
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
@layer byline-components.cms {
|
|
22
|
+
.ContentEditable__root {
|
|
23
|
+
border: 0;
|
|
24
|
+
font-size: 1.1rem;
|
|
25
|
+
line-height: 1.5;
|
|
26
|
+
display: block;
|
|
27
|
+
position: relative;
|
|
28
|
+
tab-size: 1;
|
|
29
|
+
outline: 0;
|
|
30
|
+
padding: 8px 2px;
|
|
31
|
+
}
|
|
19
32
|
|
|
20
|
-
.ContentEditable__with_draggable_blocks {
|
|
21
|
-
|
|
22
|
-
}
|
|
33
|
+
.ContentEditable__with_draggable_blocks {
|
|
34
|
+
padding: 8px 2px 40px 22px;
|
|
35
|
+
}
|
|
23
36
|
|
|
24
|
-
@media (max-width: 1025px) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
37
|
+
@media (max-width: 1025px) {
|
|
38
|
+
.ContentEditable__root {
|
|
39
|
+
padding-left: 2px;
|
|
40
|
+
padding-right: 2px;
|
|
41
|
+
}
|
|
28
42
|
}
|
|
29
43
|
}
|
|
@@ -1,52 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@layer base,
|
|
2
|
+
byline-base,
|
|
3
|
+
theme,
|
|
4
|
+
byline-theme,
|
|
5
|
+
byline-functional,
|
|
6
|
+
byline-typography,
|
|
7
|
+
components,
|
|
8
|
+
byline-components,
|
|
9
|
+
overrides,
|
|
10
|
+
byline-utilities,
|
|
11
|
+
utilities;
|
|
12
|
+
|
|
13
|
+
@layer byline-components.primitives, byline-components.cms;
|
|
14
|
+
|
|
15
|
+
@layer byline-components.cms {
|
|
16
|
+
.lexicalRichTextEditor {
|
|
17
|
+
display: flex;
|
|
18
|
+
isolation: isolate;
|
|
19
|
+
width: 100%;
|
|
20
|
+
/* Flex container — keep it from being widened by its content (a wide
|
|
6
21
|
* white-space:pre code block) past its allotted column width. */
|
|
7
|
-
|
|
8
|
-
}
|
|
22
|
+
min-width: 0;
|
|
23
|
+
}
|
|
9
24
|
|
|
10
|
-
.lexicalRichTextEditor--read-only {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
.lexicalRichTextEditor--read-only {
|
|
26
|
+
.editor-shell::after {
|
|
27
|
+
content: "";
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 0;
|
|
30
|
+
left: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
background: var(--canvas-50);
|
|
34
|
+
opacity: 0.5;
|
|
35
|
+
z-index: 9;
|
|
36
|
+
}
|
|
21
37
|
}
|
|
22
|
-
}
|
|
23
38
|
|
|
24
|
-
.lexicalRichTextEditor__wrap {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
39
|
+
.lexicalRichTextEditor__wrap {
|
|
40
|
+
width: 100%;
|
|
41
|
+
position: relative;
|
|
42
|
+
/* Flex item of .lexicalRichTextEditor — default min-width:auto would let
|
|
28
43
|
* the code block's intrinsic width grow this past 100%. */
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.lexicalRichTextEditor.error {
|
|
33
|
-
.editor-shell::after {
|
|
34
|
-
content: "";
|
|
35
|
-
position: absolute;
|
|
36
|
-
top: 0;
|
|
37
|
-
left: 0;
|
|
38
|
-
right: 0;
|
|
39
|
-
bottom: 0;
|
|
40
|
-
background: var(--red-700);
|
|
41
|
-
opacity: 1;
|
|
42
|
-
z-index: -1;
|
|
44
|
+
min-width: 0;
|
|
43
45
|
}
|
|
44
|
-
}
|
|
45
46
|
|
|
46
|
-
.dark {
|
|
47
47
|
.lexicalRichTextEditor.error {
|
|
48
48
|
.editor-shell::after {
|
|
49
|
-
|
|
49
|
+
content: "";
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 0;
|
|
52
|
+
left: 0;
|
|
53
|
+
right: 0;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
background: var(--red-700);
|
|
56
|
+
opacity: 1;
|
|
57
|
+
z-index: -1;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.dark {
|
|
62
|
+
.lexicalRichTextEditor.error {
|
|
63
|
+
.editor-shell::after {
|
|
64
|
+
background: var(--red-700-dark);
|
|
65
|
+
}
|
|
50
66
|
}
|
|
51
67
|
}
|
|
52
68
|
}
|