@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,124 +1,128 @@
|
|
|
1
|
-
|
|
2
|
-
z-index: 10;
|
|
3
|
-
opacity: 0;
|
|
4
|
-
will-change: transform;
|
|
5
|
-
background-color: #fff;
|
|
6
|
-
border-radius: 6px;
|
|
7
|
-
width: 100%;
|
|
8
|
-
max-width: 400px;
|
|
9
|
-
transition: opacity .5s;
|
|
10
|
-
position: absolute;
|
|
11
|
-
top: 0;
|
|
12
|
-
left: 0;
|
|
13
|
-
box-shadow: 0 5px 10px #0000004d;
|
|
14
|
-
}
|
|
1
|
+
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
|
|
15
2
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
3
|
+
@layer byline-components.cms {
|
|
4
|
+
.link-editor {
|
|
5
|
+
z-index: 10;
|
|
6
|
+
opacity: 0;
|
|
7
|
+
will-change: transform;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
border-radius: 6px;
|
|
10
|
+
width: 100%;
|
|
11
|
+
max-width: 400px;
|
|
12
|
+
transition: opacity .5s;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
box-shadow: 0 5px 10px #0000004d;
|
|
17
|
+
}
|
|
25
18
|
|
|
26
|
-
.link-editor .button
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
.link-editor .button {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
border-radius: 6px;
|
|
22
|
+
width: 20px;
|
|
23
|
+
height: 20px;
|
|
24
|
+
margin: 0 2px;
|
|
25
|
+
padding: 6px;
|
|
26
|
+
display: inline-block;
|
|
27
|
+
}
|
|
32
28
|
|
|
33
|
-
.link-editor .button
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
29
|
+
.link-editor .button.hovered {
|
|
30
|
+
background-color: #eee;
|
|
31
|
+
width: 20px;
|
|
32
|
+
height: 20px;
|
|
33
|
+
display: inline-block;
|
|
34
|
+
}
|
|
40
35
|
|
|
41
|
-
.link-editor .button
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
.link-editor .button i, .actions i {
|
|
37
|
+
vertical-align: -.25em;
|
|
38
|
+
background-size: contain;
|
|
39
|
+
width: 20px;
|
|
40
|
+
height: 20px;
|
|
41
|
+
display: inline-block;
|
|
42
|
+
}
|
|
44
43
|
|
|
45
|
-
.link-editor .
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
background-color: #eee;
|
|
49
|
-
border: 0;
|
|
50
|
-
border-radius: 8px;
|
|
51
|
-
outline: 0;
|
|
52
|
-
min-height: 26px;
|
|
53
|
-
margin: 8px 4px 8px 10px;
|
|
54
|
-
padding: 2px;
|
|
55
|
-
font-family: inherit;
|
|
56
|
-
font-size: 15px;
|
|
57
|
-
display: block;
|
|
58
|
-
position: relative;
|
|
59
|
-
}
|
|
44
|
+
.link-editor .button.active, .toolbar .button.active {
|
|
45
|
+
background-color: #dfe8fa;
|
|
46
|
+
}
|
|
60
47
|
|
|
61
|
-
.link-editor .link-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
48
|
+
.link-editor .link-input {
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
color: #050505;
|
|
51
|
+
background-color: #eee;
|
|
52
|
+
border: 0;
|
|
53
|
+
border-radius: 8px;
|
|
54
|
+
outline: 0;
|
|
55
|
+
min-height: 26px;
|
|
56
|
+
margin: 8px 4px 8px 10px;
|
|
57
|
+
padding: 2px;
|
|
58
|
+
font-family: inherit;
|
|
59
|
+
font-size: 15px;
|
|
60
|
+
display: block;
|
|
61
|
+
position: relative;
|
|
62
|
+
}
|
|
66
63
|
|
|
67
|
-
.link-editor
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
background-repeat: no-repeat;
|
|
73
|
-
background-size: 16px;
|
|
74
|
-
width: 35px;
|
|
75
|
-
position: absolute;
|
|
76
|
-
top: 0;
|
|
77
|
-
bottom: 0;
|
|
78
|
-
right: 30px;
|
|
79
|
-
}
|
|
64
|
+
.link-editor .link-view a {
|
|
65
|
+
word-break: break-word;
|
|
66
|
+
width: calc(100% - 33px);
|
|
67
|
+
display: block;
|
|
68
|
+
}
|
|
80
69
|
|
|
81
|
-
.link-editor div.link-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
70
|
+
.link-editor div.link-edit {
|
|
71
|
+
vertical-align: -.25em;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
background-image: url(../../../static/svg/pencil-fill.svg);
|
|
74
|
+
background-position: center;
|
|
75
|
+
background-repeat: no-repeat;
|
|
76
|
+
background-size: 16px;
|
|
77
|
+
width: 35px;
|
|
78
|
+
position: absolute;
|
|
79
|
+
top: 0;
|
|
80
|
+
bottom: 0;
|
|
81
|
+
right: 30px;
|
|
82
|
+
}
|
|
94
83
|
|
|
95
|
-
.link-editor .link-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
84
|
+
.link-editor div.link-trash {
|
|
85
|
+
vertical-align: -.25em;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
background-image: url(../../../static/svg/trash.svg);
|
|
88
|
+
background-position: center;
|
|
89
|
+
background-repeat: no-repeat;
|
|
90
|
+
background-size: 16px;
|
|
91
|
+
width: 35px;
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 0;
|
|
94
|
+
bottom: 0;
|
|
95
|
+
right: 0;
|
|
96
|
+
}
|
|
104
97
|
|
|
105
|
-
.link-editor .link-input a
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
.link-editor .link-input a {
|
|
99
|
+
color: #216fdb;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
margin-right: 30px;
|
|
103
|
+
text-decoration: none;
|
|
104
|
+
display: block;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
}
|
|
108
107
|
|
|
109
|
-
.link-editor .
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
108
|
+
.link-editor .link-input a:hover {
|
|
109
|
+
text-decoration: underline;
|
|
110
|
+
}
|
|
113
111
|
|
|
114
|
-
.link-editor
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
.link-editor .font-size-wrapper, .link-editor .font-family-wrapper {
|
|
113
|
+
margin: 0 4px;
|
|
114
|
+
display: flex;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.link-editor select {
|
|
118
|
+
background-color: #00000013;
|
|
119
|
+
border: none;
|
|
120
|
+
border-radius: 4px;
|
|
121
|
+
padding: 6px;
|
|
122
|
+
}
|
|
120
123
|
|
|
121
|
-
.dark .link-editor {
|
|
122
|
-
|
|
124
|
+
.dark .link-editor {
|
|
125
|
+
background-color: var(--canvas-800);
|
|
126
|
+
}
|
|
123
127
|
}
|
|
124
128
|
|
|
@@ -1,59 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
:
|
|
57
|
-
|
|
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
|
+
.byline-link-target-frame {
|
|
5
|
+
border: var(--border-width-thin, 1px) var(--border-style-solid, solid) var(--field-border);
|
|
6
|
+
border-radius: var(--border-radius-md, 6px);
|
|
7
|
+
margin-top: .25rem;
|
|
8
|
+
padding: .5rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.byline-link-target-tile {
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
gap: var(--spacing-8, .5rem);
|
|
15
|
+
padding: var(--spacing-8, .5rem);
|
|
16
|
+
border: var(--border-width-thin, 1px) var(--border-style-solid, solid) var(--primary-500);
|
|
17
|
+
border-radius: var(--border-radius-md, 6px);
|
|
18
|
+
font-size: var(--font-size-xs);
|
|
19
|
+
display: flex;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.byline-link-target-summary {
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: .125rem;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
display: flex;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.byline-link-target-kind {
|
|
30
|
+
color: var(--gray-500);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.byline-link-target-value {
|
|
34
|
+
color: var(--gray-900);
|
|
35
|
+
text-overflow: ellipsis;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.byline-link-target-actions {
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--spacing-4, .25rem);
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.byline-link-target-actions .byline-button {
|
|
48
|
+
color: var(--gray-900);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:is([data-theme="dark"], .dark) .byline-link-target-frame {
|
|
52
|
+
border-color: var(--canvas-700, var(--field-border));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:is([data-theme="dark"], .dark) .byline-link-target-value {
|
|
56
|
+
color: var(--gray-100);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:is([data-theme="dark"], .dark) .byline-link-target-actions .byline-button {
|
|
60
|
+
color: var(--gray-200);
|
|
61
|
+
}
|
|
58
62
|
}
|
|
59
63
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
1
|
+
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
|
|
2
2
|
|
|
3
|
-
@layer byline-components {
|
|
3
|
+
@layer byline-components.cms {
|
|
4
4
|
.byline-richtext-notice {
|
|
5
5
|
border-radius: var(--border-radius-sm, 4px);
|
|
6
6
|
font-size: var(--font-size-sm, .8125rem);
|
|
@@ -30,5 +30,3 @@
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
@layer utilities, byline-utilities;
|
|
34
|
-
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
|
|
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
|
-
.
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
@layer byline-components.cms {
|
|
4
|
+
.table-modal-container {
|
|
5
|
+
min-width: 340px;
|
|
6
|
+
max-width: 600px;
|
|
7
|
+
}
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
width: 100%;
|
|
13
|
-
margin: 1rem 0 .5rem;
|
|
9
|
+
.table-modal-header {
|
|
10
|
+
margin-bottom: .5rem;
|
|
14
11
|
}
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
@media screen and (min-width: 640px) {
|
|
14
|
+
.table-modal-select {
|
|
15
|
+
width: 100%;
|
|
16
|
+
margin: 1rem 0 .5rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.table-modal-actions {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
|