@byline/richtext-lexical 6.10.0 → 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 (60) 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/lexical-editor.tsx +2 -0
  60. package/src/richtext-field.module.css +38 -22
@@ -1,31 +1,35 @@
1
- .TextArea__wrapper {
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
- .TextArea__label {
8
- color: #666;
9
- flex: 1;
10
- margin-bottom: 4px;
11
- display: flex;
12
- }
3
+ @layer byline-components.cms {
4
+ .TextArea__wrapper {
5
+ flex-direction: column;
6
+ margin-bottom: 10px;
7
+ display: flex;
8
+ }
13
9
 
14
- .TextArea__input {
15
- border: 1px solid #999;
16
- border-radius: 1px;
17
- min-width: 0;
18
- padding: 7px 10px;
19
- font-size: 16px;
20
- }
10
+ .TextArea__label {
11
+ color: #666;
12
+ flex: 1;
13
+ margin-bottom: 4px;
14
+ display: flex;
15
+ }
21
16
 
22
- :is(.dark, [data-theme="dark"]) .TextArea__label {
23
- color: #ccc;
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
- color: #eee;
28
- background-color: #1c1c1c;
29
- border: 1px solid #666;
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
- :is(.wrapper-Kp9TyN, .byline-field-richtext) {
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
- :is(.label-row-GTig6y, .byline-field-richtext-label) {
9
- align-items: center;
10
- margin-bottom: .25rem;
11
- display: flex;
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
- flex-direction: column;
16
- flex: 1;
17
- gap: .25rem;
18
- min-width: 0;
19
- display: flex;
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.10.0",
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.10.0",
66
- "@byline/client": "6.10.0",
67
- "@byline/core": "6.10.0",
68
- "@byline/i18n": "6.10.0",
69
- "@byline/ui": "6.10.0",
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
- .ContentEditable__root {
10
- border: 0;
11
- font-size: 1.1rem;
12
- line-height: 1.5;
13
- display: block;
14
- position: relative;
15
- tab-size: 1;
16
- outline: 0;
17
- padding: 8px 2px;
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
- padding: 8px 2px 40px 22px;
22
- }
33
+ .ContentEditable__with_draggable_blocks {
34
+ padding: 8px 2px 40px 22px;
35
+ }
23
36
 
24
- @media (max-width: 1025px) {
25
- .ContentEditable__root {
26
- padding-left: 2px;
27
- padding-right: 2px;
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
- .lexicalRichTextEditor {
2
- display: flex;
3
- isolation: isolate;
4
- width: 100%;
5
- /* Flex container — keep it from being widened by its content (a wide
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
- min-width: 0;
8
- }
22
+ min-width: 0;
23
+ }
9
24
 
10
- .lexicalRichTextEditor--read-only {
11
- .editor-shell::after {
12
- content: "";
13
- position: absolute;
14
- top: 0;
15
- left: 0;
16
- right: 0;
17
- bottom: 0;
18
- background: var(--canvas-50);
19
- opacity: 0.5;
20
- z-index: 9;
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
- width: 100%;
26
- position: relative;
27
- /* Flex item of .lexicalRichTextEditor — default min-width:auto would let
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
- min-width: 0;
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
- background: var(--red-700-dark);
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
  }