@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.
- 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/lexical-editor.tsx +2 -0
- package/src/richtext-field.module.css +38 -22
|
@@ -1,148 +1,152 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
+
.floating-text-format-popup {
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
z-index: 10;
|
|
7
|
+
opacity: 0;
|
|
8
|
+
will-change: transform;
|
|
9
|
+
background: #fff;
|
|
10
|
+
border-radius: 6px;
|
|
11
|
+
height: 35px;
|
|
12
|
+
padding: 4px;
|
|
13
|
+
transition: opacity .5s;
|
|
14
|
+
display: flex;
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
box-shadow: 0 5px 10px #0000004d;
|
|
19
|
+
}
|
|
17
20
|
|
|
18
|
-
.floating-text-format-popup button.popup-item {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
21
|
+
.floating-text-format-popup button.popup-item {
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
vertical-align: middle;
|
|
24
|
+
background: none;
|
|
25
|
+
border: 0;
|
|
26
|
+
border-radius: 6px;
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
26
29
|
|
|
27
|
-
.floating-text-format-popup button.popup-item:disabled {
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
+
.floating-text-format-popup button.popup-item:disabled {
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
}
|
|
30
33
|
|
|
31
|
-
.floating-text-format-popup button.popup-item.spaced {
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
+
.floating-text-format-popup button.popup-item.spaced {
|
|
35
|
+
margin-right: 2px;
|
|
36
|
+
}
|
|
34
37
|
|
|
35
|
-
.floating-text-format-popup button.popup-item i.format {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
38
|
+
.floating-text-format-popup button.popup-item i.format {
|
|
39
|
+
vertical-align: -.25em;
|
|
40
|
+
opacity: .6;
|
|
41
|
+
background-size: contain;
|
|
42
|
+
width: 18px;
|
|
43
|
+
height: 18px;
|
|
44
|
+
margin-top: 3px;
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
44
47
|
|
|
45
|
-
.floating-text-format-popup button.popup-item:disabled i.format {
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
+
.floating-text-format-popup button.popup-item:disabled i.format {
|
|
49
|
+
opacity: .2;
|
|
50
|
+
}
|
|
48
51
|
|
|
49
|
-
.floating-text-format-popup button.popup-item.active {
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
+
.floating-text-format-popup button.popup-item.active {
|
|
53
|
+
background-color: #dfe8fa4d;
|
|
54
|
+
}
|
|
52
55
|
|
|
53
|
-
.floating-text-format-popup button.popup-item.active i {
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
+
.floating-text-format-popup button.popup-item.active i {
|
|
57
|
+
opacity: 1;
|
|
58
|
+
}
|
|
56
59
|
|
|
57
|
-
.floating-text-format-popup .popup-item:hover:not([disabled]) {
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
+
.floating-text-format-popup .popup-item:hover:not([disabled]) {
|
|
61
|
+
background-color: #eee;
|
|
62
|
+
}
|
|
60
63
|
|
|
61
|
-
.floating-text-format-popup select.popup-item {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
64
|
+
.floating-text-format-popup select.popup-item {
|
|
65
|
+
vertical-align: middle;
|
|
66
|
+
-webkit-appearance: none;
|
|
67
|
+
-moz-appearance: none;
|
|
68
|
+
color: #777;
|
|
69
|
+
text-overflow: ellipsis;
|
|
70
|
+
background: none;
|
|
71
|
+
border: 0;
|
|
72
|
+
border-radius: 6px;
|
|
73
|
+
width: 70px;
|
|
74
|
+
padding: 8px;
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
display: flex;
|
|
77
|
+
}
|
|
75
78
|
|
|
76
|
-
.floating-text-format-popup select.code-language {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
79
|
+
.floating-text-format-popup select.code-language {
|
|
80
|
+
text-transform: capitalize;
|
|
81
|
+
width: 130px;
|
|
82
|
+
}
|
|
80
83
|
|
|
81
|
-
.floating-text-format-popup .popup-item .text {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
84
|
+
.floating-text-format-popup .popup-item .text {
|
|
85
|
+
vertical-align: middle;
|
|
86
|
+
color: #777;
|
|
87
|
+
text-overflow: ellipsis;
|
|
88
|
+
text-align: left;
|
|
89
|
+
width: 200px;
|
|
90
|
+
height: 20px;
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
line-height: 20px;
|
|
93
|
+
display: flex;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
}
|
|
93
96
|
|
|
94
|
-
.floating-text-format-popup .popup-item .icon {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
97
|
+
.floating-text-format-popup .popup-item .icon {
|
|
98
|
+
-webkit-user-select: none;
|
|
99
|
+
user-select: none;
|
|
100
|
+
background-size: contain;
|
|
101
|
+
width: 20px;
|
|
102
|
+
height: 20px;
|
|
103
|
+
margin-right: 8px;
|
|
104
|
+
line-height: 16px;
|
|
105
|
+
display: flex;
|
|
106
|
+
}
|
|
104
107
|
|
|
105
|
-
.floating-text-format-popup i.chevron-down {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
108
|
+
.floating-text-format-popup i.chevron-down {
|
|
109
|
+
-webkit-user-select: none;
|
|
110
|
+
user-select: none;
|
|
111
|
+
width: 16px;
|
|
112
|
+
height: 16px;
|
|
113
|
+
margin-top: 3px;
|
|
114
|
+
display: flex;
|
|
115
|
+
}
|
|
113
116
|
|
|
114
|
-
.floating-text-format-popup i.chevron-down.inside {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
117
|
+
.floating-text-format-popup i.chevron-down.inside {
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
width: 16px;
|
|
120
|
+
height: 16px;
|
|
121
|
+
margin-top: 11px;
|
|
122
|
+
margin-left: -25px;
|
|
123
|
+
margin-right: 10px;
|
|
124
|
+
display: flex;
|
|
125
|
+
}
|
|
123
126
|
|
|
124
|
-
.floating-text-format-popup .divider {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
127
|
+
.floating-text-format-popup .divider {
|
|
128
|
+
background-color: #eee;
|
|
129
|
+
width: 1px;
|
|
130
|
+
margin: 0 4px;
|
|
131
|
+
}
|
|
129
132
|
|
|
130
|
-
@media (max-width: 1024px) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
@media (max-width: 1024px) {
|
|
134
|
+
.floating-text-format-popup button.insert-comment {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
133
137
|
}
|
|
134
|
-
}
|
|
135
138
|
|
|
136
|
-
.dark .floating-text-format-popup {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
139
|
+
.dark .floating-text-format-popup {
|
|
140
|
+
background-color: var(--canvas-800);
|
|
141
|
+
border: 1px solid var(--border-color);
|
|
142
|
+
}
|
|
140
143
|
|
|
141
|
-
.dark .floating-text-format-popup i {
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
+
.dark .floating-text-format-popup i {
|
|
145
|
+
filter: invert();
|
|
146
|
+
}
|
|
144
147
|
|
|
145
|
-
.dark .floating-text-format-popup .popup-item:hover:not([disabled]) {
|
|
146
|
-
|
|
148
|
+
.dark .floating-text-format-popup .popup-item:hover:not([disabled]) {
|
|
149
|
+
background-color: #1c1c1c;
|
|
150
|
+
}
|
|
147
151
|
}
|
|
148
152
|
|
|
@@ -1,118 +1,122 @@
|
|
|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
-
|
|
104
|
-
|
|
105
|
-
:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
+
.inline-image-modal-picker {
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: .75rem;
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.inline-image-modal-thumb, .inline-image-modal-thumb-placeholder {
|
|
11
|
+
border: 1px solid var(--border-color);
|
|
12
|
+
border-radius: .25rem;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
width: 8rem;
|
|
15
|
+
height: 8rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.inline-image-modal-thumb {
|
|
19
|
+
object-fit: cover;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.inline-image-modal-thumb-placeholder {
|
|
23
|
+
background-color: var(--surface-subtle);
|
|
24
|
+
color: var(--text-subtle);
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
font-size: .75rem;
|
|
28
|
+
display: flex;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.inline-image-modal-picker-details {
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
flex: 1;
|
|
34
|
+
align-items: flex-start;
|
|
35
|
+
gap: .5rem;
|
|
36
|
+
min-width: 0;
|
|
37
|
+
display: flex;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.inline-image-modal-change-btn {
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
min-width: 70px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.inline-image-modal-title {
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
color: var(--text-subtle);
|
|
50
|
+
align-self: stretch;
|
|
51
|
+
font-size: .875rem;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.inline-image-modal-tabs.byline-tabs-root {
|
|
56
|
+
border: none;
|
|
57
|
+
border-radius: 0;
|
|
58
|
+
gap: 0;
|
|
59
|
+
padding: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.inline-image-modal-tabs .byline-tabs-list {
|
|
63
|
+
border: none;
|
|
64
|
+
border-bottom: 1px solid var(--border-color);
|
|
65
|
+
border-radius: 0;
|
|
66
|
+
gap: 1.25rem;
|
|
67
|
+
padding: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.inline-image-modal-tabs .byline-tabs-trigger {
|
|
71
|
+
width: auto;
|
|
72
|
+
color: var(--gray-500);
|
|
73
|
+
font-size: 1rem;
|
|
74
|
+
font-weight: var(--font-weight-medium);
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
background: none;
|
|
77
|
+
border: none;
|
|
78
|
+
border-bottom: 2px solid #0000;
|
|
79
|
+
flex: none;
|
|
80
|
+
justify-content: flex-start;
|
|
81
|
+
margin-bottom: -1px;
|
|
82
|
+
padding: .5rem 0;
|
|
83
|
+
transition: color .15s, border-color .15s;
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
position: relative;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.inline-image-modal-tabs .byline-tabs-trigger:hover {
|
|
89
|
+
color: var(--gray-800);
|
|
90
|
+
border-bottom-color: var(--gray-300);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.inline-image-modal-tabs .byline-tabs-trigger:focus-visible {
|
|
94
|
+
box-shadow: inset 0 0 0 2px var(--blue-500);
|
|
95
|
+
border-radius: var(--radius-sm, 3px);
|
|
96
|
+
outline: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.inline-image-modal-tabs .byline-tabs-trigger[data-active], .inline-image-modal-tabs .byline-tabs-trigger[data-active]:hover {
|
|
100
|
+
color: var(--primary-600);
|
|
101
|
+
border-bottom-color: var(--primary-400);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.inline-image-modal-tabs .inline-image-modal-link-panel {
|
|
105
|
+
min-height: 20rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:is([data-theme="dark"], .dark) .inline-image-modal-tabs .byline-tabs-trigger {
|
|
109
|
+
color: var(--gray-400);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:is([data-theme="dark"], .dark) .inline-image-modal-tabs .byline-tabs-trigger:hover {
|
|
113
|
+
color: var(--gray-200);
|
|
114
|
+
border-bottom-color: var(--gray-600);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:is([data-theme="dark"], .dark) .inline-image-modal-tabs .byline-tabs-trigger[data-active], :is([data-theme="dark"], .dark) .inline-image-modal-tabs .byline-tabs-trigger[data-active]:hover {
|
|
118
|
+
color: var(--primary-200);
|
|
119
|
+
border-bottom-color: var(--primary-400);
|
|
120
|
+
}
|
|
117
121
|
}
|
|
118
122
|
|