@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,31 +1,35 @@
1
- .Button__root {
2
- cursor: pointer;
3
- background-color: #eee;
4
- border: 0;
5
- border-radius: 5px;
6
- padding: 10px 15px;
7
- font-size: 14px;
8
- }
1
+ @layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
9
2
 
10
- .Button__root:hover {
11
- background-color: #ddd;
12
- }
3
+ @layer byline-components.cms {
4
+ .Button__root {
5
+ cursor: pointer;
6
+ background-color: #eee;
7
+ border: 0;
8
+ border-radius: 5px;
9
+ padding: 10px 15px;
10
+ font-size: 14px;
11
+ }
13
12
 
14
- .Button__small {
15
- padding: 5px 10px;
16
- font-size: 13px;
17
- }
13
+ .Button__root:hover {
14
+ background-color: #ddd;
15
+ }
18
16
 
19
- .Button__disabled:hover {
20
- background-color: #eee;
21
- }
17
+ .Button__small {
18
+ padding: 5px 10px;
19
+ font-size: 13px;
20
+ }
22
21
 
23
- [data-theme="dark"] .Button__root {
24
- color: #ccc;
25
- background-color: #222;
26
- }
22
+ .Button__disabled:hover {
23
+ background-color: #eee;
24
+ }
25
+
26
+ [data-theme="dark"] .Button__root {
27
+ color: #ccc;
28
+ background-color: #222;
29
+ }
27
30
 
28
- [data-theme="dark"] .Button__root:hover {
29
- background-color: #282828;
31
+ [data-theme="dark"] .Button__root:hover {
32
+ background-color: #282828;
33
+ }
30
34
  }
31
35
 
@@ -1,46 +1,50 @@
1
- [type="checkbox"]:checked, [type="checkbox"]:not(:checked) {
2
- position: absolute;
3
- left: -9999px;
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
- [type="checkbox"]:checked + label, [type="checkbox"]:not(:checked) + label {
7
- cursor: pointer;
8
- color: #666;
9
- padding-right: 55px;
10
- line-height: 20px;
11
- display: inline-block;
12
- position: relative;
13
- }
3
+ @layer byline-components.cms {
4
+ [type="checkbox"]:checked, [type="checkbox"]:not(:checked) {
5
+ position: absolute;
6
+ left: -9999px;
7
+ }
14
8
 
15
- [type="checkbox"]:checked + label:before, [type="checkbox"]:not(:checked) + label:before {
16
- content: "";
17
- background: #fff;
18
- border: 1px solid #666;
19
- width: 18px;
20
- height: 18px;
21
- position: absolute;
22
- top: 0;
23
- right: 0;
24
- }
9
+ [type="checkbox"]:checked + label, [type="checkbox"]:not(:checked) + label {
10
+ cursor: pointer;
11
+ color: #666;
12
+ padding-right: 55px;
13
+ line-height: 20px;
14
+ display: inline-block;
15
+ position: relative;
16
+ }
25
17
 
26
- [type="checkbox"]:checked + label:after, [type="checkbox"]:not(:checked) + label:after {
27
- content: "";
28
- background: #222;
29
- width: 8px;
30
- height: 8px;
31
- transition: all .2s;
32
- position: absolute;
33
- top: 6px;
34
- right: 6px;
35
- }
18
+ [type="checkbox"]:checked + label:before, [type="checkbox"]:not(:checked) + label:before {
19
+ content: "";
20
+ background: #fff;
21
+ border: 1px solid #666;
22
+ width: 18px;
23
+ height: 18px;
24
+ position: absolute;
25
+ top: 0;
26
+ right: 0;
27
+ }
36
28
 
37
- [type="checkbox"]:not(:checked) + label:after {
38
- opacity: 0;
39
- transform: scale(0);
40
- }
29
+ [type="checkbox"]:checked + label:after, [type="checkbox"]:not(:checked) + label:after {
30
+ content: "";
31
+ background: #222;
32
+ width: 8px;
33
+ height: 8px;
34
+ transition: all .2s;
35
+ position: absolute;
36
+ top: 6px;
37
+ right: 6px;
38
+ }
39
+
40
+ [type="checkbox"]:not(:checked) + label:after {
41
+ opacity: 0;
42
+ transform: scale(0);
43
+ }
41
44
 
42
- [type="checkbox"]:checked + label:after {
43
- opacity: 1;
44
- transform: scale(1);
45
+ [type="checkbox"]:checked + label:after {
46
+ opacity: 1;
47
+ transform: scale(1);
48
+ }
45
49
  }
46
50
 
@@ -1,75 +1,79 @@
1
- .color-picker-wrapper {
2
- padding: 20px;
3
- }
1
+ @layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
4
2
 
5
- .color-picker-basic-color {
6
- flex-wrap: wrap;
7
- gap: 10px;
8
- margin: 0;
9
- padding: 0;
10
- display: flex;
11
- }
3
+ @layer byline-components.cms {
4
+ .color-picker-wrapper {
5
+ padding: 20px;
6
+ }
12
7
 
13
- .color-picker-basic-color button {
14
- cursor: pointer;
15
- border: 1px solid #ccc;
16
- border-radius: 4px;
17
- width: 16px;
18
- height: 16px;
19
- list-style-type: none;
20
- }
8
+ .color-picker-basic-color {
9
+ flex-wrap: wrap;
10
+ gap: 10px;
11
+ margin: 0;
12
+ padding: 0;
13
+ display: flex;
14
+ }
21
15
 
22
- .color-picker-basic-color button.active {
23
- box-shadow: 0 0 2px 2px #0000004d;
24
- }
16
+ .color-picker-basic-color button {
17
+ cursor: pointer;
18
+ border: 1px solid #ccc;
19
+ border-radius: 4px;
20
+ width: 16px;
21
+ height: 16px;
22
+ list-style-type: none;
23
+ }
25
24
 
26
- .color-picker-saturation {
27
- -webkit-user-select: none;
28
- user-select: none;
29
- background-image: linear-gradient(#0000, #000), linear-gradient(to right, #fff, #0000);
30
- width: 100%;
31
- height: 150px;
32
- margin-top: 15px;
33
- position: relative;
34
- }
25
+ .color-picker-basic-color button.active {
26
+ box-shadow: 0 0 2px 2px #0000004d;
27
+ }
35
28
 
36
- .color-picker-saturation_cursor {
37
- box-sizing: border-box;
38
- border: 2px solid #fff;
39
- border-radius: 50%;
40
- width: 20px;
41
- height: 20px;
42
- position: absolute;
43
- transform: translate(-10px, -10px);
44
- box-shadow: 0 0 15px #00000026;
45
- }
29
+ .color-picker-saturation {
30
+ -webkit-user-select: none;
31
+ user-select: none;
32
+ background-image: linear-gradient(#0000, #000), linear-gradient(to right, #fff, #0000);
33
+ width: 100%;
34
+ height: 150px;
35
+ margin-top: 15px;
36
+ position: relative;
37
+ }
46
38
 
47
- .color-picker-hue {
48
- -webkit-user-select: none;
49
- user-select: none;
50
- background-image: linear-gradient(to right, red, #ff0, #0f0, #0ff, #00f, #f0f, red);
51
- border-radius: 12px;
52
- width: 100%;
53
- height: 12px;
54
- margin-top: 15px;
55
- position: relative;
56
- }
39
+ .color-picker-saturation_cursor {
40
+ box-sizing: border-box;
41
+ border: 2px solid #fff;
42
+ border-radius: 50%;
43
+ width: 20px;
44
+ height: 20px;
45
+ position: absolute;
46
+ transform: translate(-10px, -10px);
47
+ box-shadow: 0 0 15px #00000026;
48
+ }
57
49
 
58
- .color-picker-hue_cursor {
59
- box-sizing: border-box;
60
- border: 2px solid #fff;
61
- border-radius: 50%;
62
- width: 20px;
63
- height: 20px;
64
- position: absolute;
65
- transform: translate(-10px, -4px);
66
- box-shadow: 0 0 0 .5px #0003;
67
- }
50
+ .color-picker-hue {
51
+ -webkit-user-select: none;
52
+ user-select: none;
53
+ background-image: linear-gradient(to right, red, #ff0, #0f0, #0ff, #00f, #f0f, red);
54
+ border-radius: 12px;
55
+ width: 100%;
56
+ height: 12px;
57
+ margin-top: 15px;
58
+ position: relative;
59
+ }
60
+
61
+ .color-picker-hue_cursor {
62
+ box-sizing: border-box;
63
+ border: 2px solid #fff;
64
+ border-radius: 50%;
65
+ width: 20px;
66
+ height: 20px;
67
+ position: absolute;
68
+ transform: translate(-10px, -4px);
69
+ box-shadow: 0 0 0 .5px #0003;
70
+ }
68
71
 
69
- .color-picker-color {
70
- border: 1px solid #ccc;
71
- width: 100%;
72
- height: 20px;
73
- margin-top: 15px;
72
+ .color-picker-color {
73
+ border: 1px solid #ccc;
74
+ width: 100%;
75
+ height: 20px;
76
+ margin-top: 15px;
77
+ }
74
78
  }
75
79
 
@@ -1,18 +1,22 @@
1
- .DialogActions {
2
- flex-direction: row;
3
- justify-content: right;
4
- margin-top: 20px;
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
- .DialogButtonsList {
9
- flex-direction: column;
10
- justify-content: right;
11
- margin-top: 20px;
12
- display: flex;
13
- }
3
+ @layer byline-components.cms {
4
+ .DialogActions {
5
+ flex-direction: row;
6
+ justify-content: right;
7
+ margin-top: 20px;
8
+ display: flex;
9
+ }
10
+
11
+ .DialogButtonsList {
12
+ flex-direction: column;
13
+ justify-content: right;
14
+ margin-top: 20px;
15
+ display: flex;
16
+ }
14
17
 
15
- .DialogButtonsList button {
16
- margin-bottom: 20px;
18
+ .DialogButtonsList button {
19
+ margin-bottom: 20px;
20
+ }
17
21
  }
18
22
 
@@ -1,23 +1,27 @@
1
- .Input__wrapper {
2
- flex-direction: row;
3
- align-items: center;
4
- margin-bottom: 10px;
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
- .Input__label {
9
- color: #666;
10
- flex: 1;
11
- display: flex;
12
- }
3
+ @layer byline-components.cms {
4
+ .Input__wrapper {
5
+ flex-direction: row;
6
+ align-items: center;
7
+ margin-bottom: 10px;
8
+ display: flex;
9
+ }
10
+
11
+ .Input__label {
12
+ color: #666;
13
+ flex: 1;
14
+ display: flex;
15
+ }
13
16
 
14
- .Input__input {
15
- border: 1px solid #999;
16
- border-radius: 5px;
17
- flex: 2;
18
- min-width: 0;
19
- padding: 7px 10px;
20
- font-size: 16px;
21
- display: flex;
17
+ .Input__input {
18
+ border: 1px solid #999;
19
+ border-radius: 5px;
20
+ flex: 2;
21
+ min-width: 0;
22
+ padding: 7px 10px;
23
+ font-size: 16px;
24
+ display: flex;
25
+ }
22
26
  }
23
27
 
@@ -1,73 +1,77 @@
1
- .Modal__overlay {
2
- flex-direction: column;
3
- flex-grow: 0px;
4
- flex-shrink: 1px;
5
- z-index: 100;
6
- background-color: #28282899;
7
- justify-content: center;
8
- align-items: center;
9
- display: flex;
10
- position: fixed;
11
- inset: 0;
12
- }
1
+ @layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
13
2
 
14
- .Modal__modal {
15
- flex-grow: 0px;
16
- background-color: #fff;
17
- border-radius: 10px;
18
- flex-direction: column;
19
- min-width: 300px;
20
- min-height: 100px;
21
- padding: 20px;
22
- display: flex;
23
- position: relative;
24
- box-shadow: 0 0 20px #444;
25
- }
3
+ @layer byline-components.cms {
4
+ .Modal__overlay {
5
+ flex-direction: column;
6
+ flex-grow: 0px;
7
+ flex-shrink: 1px;
8
+ z-index: 100;
9
+ background-color: #28282899;
10
+ justify-content: center;
11
+ align-items: center;
12
+ display: flex;
13
+ position: fixed;
14
+ inset: 0;
15
+ }
26
16
 
27
- .Modal__title {
28
- color: #444;
29
- border-bottom: 1px solid #ccc;
30
- margin: 0;
31
- padding-bottom: 10px;
32
- font-size: 1.4rem;
33
- }
17
+ .Modal__modal {
18
+ flex-grow: 0px;
19
+ background-color: #fff;
20
+ border-radius: 10px;
21
+ flex-direction: column;
22
+ min-width: 300px;
23
+ min-height: 100px;
24
+ padding: 20px;
25
+ display: flex;
26
+ position: relative;
27
+ box-shadow: 0 0 20px #444;
28
+ }
34
29
 
35
- .Modal__closeButton {
36
- text-align: center;
37
- cursor: pointer;
38
- background-color: #eee;
39
- border: 0;
40
- border-radius: 20px;
41
- justify-content: center;
42
- align-items: center;
43
- width: 30px;
44
- height: 30px;
45
- display: flex;
46
- position: absolute;
47
- right: 20px;
48
- }
30
+ .Modal__title {
31
+ color: #444;
32
+ border-bottom: 1px solid #ccc;
33
+ margin: 0;
34
+ padding-bottom: 10px;
35
+ font-size: 1.4rem;
36
+ }
49
37
 
50
- .Modal__closeButton:hover {
51
- background-color: #ddd;
52
- }
38
+ .Modal__closeButton {
39
+ text-align: center;
40
+ cursor: pointer;
41
+ background-color: #eee;
42
+ border: 0;
43
+ border-radius: 20px;
44
+ justify-content: center;
45
+ align-items: center;
46
+ width: 30px;
47
+ height: 30px;
48
+ display: flex;
49
+ position: absolute;
50
+ right: 20px;
51
+ }
53
52
 
54
- .Modal__content {
55
- padding-top: 20px;
56
- }
53
+ .Modal__closeButton:hover {
54
+ background-color: #ddd;
55
+ }
57
56
 
58
- [data-theme="dark"] .Modal__modal {
59
- background-color: #111;
60
- }
57
+ .Modal__content {
58
+ padding-top: 20px;
59
+ }
61
60
 
62
- [data-theme="dark"] .Modal__closeButton {
63
- background-color: #222;
64
- }
61
+ [data-theme="dark"] .Modal__modal {
62
+ background-color: #111;
63
+ }
65
64
 
66
- [data-theme="dark"] .Modal__closeButton:hover {
67
- background-color: #282828;
68
- }
65
+ [data-theme="dark"] .Modal__closeButton {
66
+ background-color: #222;
67
+ }
68
+
69
+ [data-theme="dark"] .Modal__closeButton:hover {
70
+ background-color: #282828;
71
+ }
69
72
 
70
- [data-theme="dark"] .Modal__title {
71
- color: #ccc;
73
+ [data-theme="dark"] .Modal__title {
74
+ color: #ccc;
75
+ }
72
76
  }
73
77
 
@@ -1,26 +1,30 @@
1
- .Placeholder__root {
2
- color: #999;
3
- text-overflow: ellipsis;
4
- -webkit-user-select: none;
5
- user-select: none;
6
- white-space: nowrap;
7
- pointer-events: none;
8
- font-size: 15px;
9
- display: inline-block;
10
- position: absolute;
11
- top: 8px;
12
- left: 2px;
13
- right: 0;
14
- overflow: hidden;
15
- }
16
-
17
- .Placeholder__with_draggable_blocks {
18
- left: 22px;
19
- }
1
+ @layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
20
2
 
21
- @media (max-width: 1025px) {
22
- .ContentEditable__root {
3
+ @layer byline-components.cms {
4
+ .Placeholder__root {
5
+ color: #999;
6
+ text-overflow: ellipsis;
7
+ -webkit-user-select: none;
8
+ user-select: none;
9
+ white-space: nowrap;
10
+ pointer-events: none;
11
+ font-size: 15px;
12
+ display: inline-block;
13
+ position: absolute;
14
+ top: 8px;
23
15
  left: 2px;
16
+ right: 0;
17
+ overflow: hidden;
18
+ }
19
+
20
+ .Placeholder__with_draggable_blocks {
21
+ left: 22px;
22
+ }
23
+
24
+ @media (max-width: 1025px) {
25
+ .ContentEditable__root {
26
+ left: 2px;
27
+ }
24
28
  }
25
29
  }
26
30
 
@@ -1,32 +1,36 @@
1
- select {
2
- appearance: none;
3
- font-family: inherit;
4
- font-size: inherit;
5
- cursor: inherit;
6
- line-height: inherit;
7
- z-index: 1;
8
- background-color: #0000;
9
- border: none;
10
- outline: none;
11
- margin: 0;
12
- padding: 0 1em 0 0;
13
- }
1
+ @layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
14
2
 
15
- :root {
16
- --select-border: #393939;
17
- --select-focus: #101484;
18
- --select-arrow: var(--select-border);
19
- }
3
+ @layer byline-components.cms {
4
+ select {
5
+ appearance: none;
6
+ font-family: inherit;
7
+ font-size: inherit;
8
+ cursor: inherit;
9
+ line-height: inherit;
10
+ z-index: 1;
11
+ background-color: #0000;
12
+ border: none;
13
+ outline: none;
14
+ margin: 0;
15
+ padding: 0 1em 0 0;
16
+ }
17
+
18
+ :root {
19
+ --select-border: #393939;
20
+ --select-focus: #101484;
21
+ --select-arrow: var(--select-border);
22
+ }
20
23
 
21
- .select {
22
- border: 1px solid var(--select-border);
23
- cursor: pointer;
24
- background: linear-gradient(#fff 0%, #e5e5e5 100%);
25
- border-radius: .25em;
26
- min-width: 160px;
27
- max-width: 290px;
28
- padding: .25em .5em;
29
- font-size: 1rem;
30
- line-height: 1.4;
24
+ .select {
25
+ border: 1px solid var(--select-border);
26
+ cursor: pointer;
27
+ background: linear-gradient(#fff 0%, #e5e5e5 100%);
28
+ border-radius: .25em;
29
+ min-width: 160px;
30
+ max-width: 290px;
31
+ padding: .25em .5em;
32
+ font-size: 1rem;
33
+ line-height: 1.4;
34
+ }
31
35
  }
32
36