@payloadcms/richtext-slate 3.0.0-beta.90 → 3.0.0-beta.91
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.
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
.rich-text-link {
|
|
4
4
|
position: relative;
|
|
5
|
-
text-decoration: underline;
|
|
6
5
|
|
|
7
6
|
.popup {
|
|
8
7
|
position: absolute;
|
|
@@ -35,11 +34,6 @@
|
|
|
35
34
|
font-weight: 600;
|
|
36
35
|
cursor: pointer;
|
|
37
36
|
margin: 0;
|
|
38
|
-
|
|
39
|
-
&:hover,
|
|
40
|
-
&:focus-visible {
|
|
41
|
-
text-decoration: underline;
|
|
42
|
-
}
|
|
43
37
|
}
|
|
44
38
|
}
|
|
45
39
|
|
|
@@ -78,7 +72,9 @@
|
|
|
78
72
|
border: 0;
|
|
79
73
|
background-color: transparent;
|
|
80
74
|
padding: 0;
|
|
81
|
-
|
|
75
|
+
color: var(--theme-success-600);
|
|
76
|
+
text-decoration: none;
|
|
77
|
+
border-bottom: 1px dotted;
|
|
82
78
|
cursor: text;
|
|
83
79
|
|
|
84
80
|
&:focus,
|
package/dist/field/index.scss
CHANGED
|
@@ -39,7 +39,14 @@
|
|
|
39
39
|
&__editor {
|
|
40
40
|
font-family: var(--font-serif);
|
|
41
41
|
font-size: base(0.8);
|
|
42
|
-
|
|
42
|
+
line-height: 1.5;
|
|
43
|
+
|
|
44
|
+
*[data-slate-node='element'] {
|
|
45
|
+
margin-top: 0.75em;
|
|
46
|
+
position: relative;
|
|
47
|
+
line-height: 1.5;
|
|
48
|
+
letter-spacing: normal;
|
|
49
|
+
}
|
|
43
50
|
|
|
44
51
|
h1,
|
|
45
52
|
h2,
|
|
@@ -47,39 +54,49 @@
|
|
|
47
54
|
h4,
|
|
48
55
|
h5,
|
|
49
56
|
h6 {
|
|
50
|
-
font-
|
|
51
|
-
|
|
52
|
-
letter-spacing: 0;
|
|
57
|
+
font-weight: 700;
|
|
58
|
+
letter-spacing: normal;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
h1[data-slate-node='element'] {
|
|
56
|
-
font-size: base(1.
|
|
57
|
-
margin:
|
|
62
|
+
font-size: base(1.4);
|
|
63
|
+
margin-block: 0.5em 0.4em;
|
|
64
|
+
line-height: base(1.2);
|
|
65
|
+
letter-spacing: normal;
|
|
58
66
|
}
|
|
59
67
|
|
|
60
68
|
h2[data-slate-node='element'] {
|
|
61
69
|
font-size: base(1.25);
|
|
62
|
-
margin:
|
|
70
|
+
margin-block: 0.55em 0.4em;
|
|
71
|
+
line-height: base(1.2);
|
|
72
|
+
letter-spacing: normal;
|
|
63
73
|
}
|
|
64
74
|
|
|
65
75
|
h3[data-slate-node='element'] {
|
|
66
|
-
font-size: base(1.
|
|
67
|
-
margin:
|
|
76
|
+
font-size: base(1.1);
|
|
77
|
+
margin-block: 0.6em 0.4em;
|
|
78
|
+
line-height: base(1.3);
|
|
79
|
+
letter-spacing: normal;
|
|
68
80
|
}
|
|
69
81
|
|
|
70
82
|
h4[data-slate-node='element'] {
|
|
71
83
|
font-size: base(1);
|
|
72
|
-
margin:
|
|
84
|
+
margin-block: 0.65em 0.4em;
|
|
85
|
+
line-height: base(1.4);
|
|
86
|
+
letter-spacing: normal;
|
|
73
87
|
}
|
|
74
88
|
|
|
75
89
|
h5[data-slate-node='element'] {
|
|
76
|
-
font-size: base(0.
|
|
77
|
-
margin:
|
|
90
|
+
font-size: base(0.9);
|
|
91
|
+
margin-block: 0.7em 0.4em;
|
|
92
|
+
line-height: base(1.5);
|
|
93
|
+
letter-spacing: normal;
|
|
78
94
|
}
|
|
79
95
|
|
|
80
96
|
h6[data-slate-node='element'] {
|
|
81
|
-
font-size: base(0.
|
|
82
|
-
margin:
|
|
97
|
+
font-size: base(0.8);
|
|
98
|
+
margin-block: 0.75em 0.4em;
|
|
99
|
+
line-height: base(1.5);
|
|
83
100
|
}
|
|
84
101
|
}
|
|
85
102
|
|
package/dist/scss/app.scss
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
--theme-baseline-body-size: #{$baseline-body-size};
|
|
22
22
|
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
23
23
|
sans-serif;
|
|
24
|
-
--font-serif: Georgia, 'Bitstream Charter', 'Charis SIL', Utopia, 'URW Bookman L', serif;
|
|
25
|
-
--font-mono: monospace;
|
|
24
|
+
--font-serif: 'Georgia', 'Bitstream Charter', 'Charis SIL', Utopia, 'URW Bookman L', serif;
|
|
25
|
+
--font-mono: 'SF Mono', Menlo, Consolas, Monaco, monospace;
|
|
26
26
|
|
|
27
27
|
--style-radius-s: #{$style-radius-s};
|
|
28
28
|
--style-radius-m: #{$style-radius-m};
|
|
@@ -146,13 +146,13 @@ h6 {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
p {
|
|
149
|
-
margin: 0
|
|
149
|
+
margin: 0;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
ul,
|
|
153
153
|
ol {
|
|
154
154
|
padding-left: $baseline;
|
|
155
|
-
margin: 0
|
|
155
|
+
margin: 0;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
:focus-visible {
|
package/dist/scss/type.scss
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
%h1 {
|
|
19
|
-
margin: 0
|
|
19
|
+
margin: 0;
|
|
20
20
|
font-size: base(1.6);
|
|
21
21
|
line-height: base(1.8);
|
|
22
22
|
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
%h2 {
|
|
30
|
-
margin: 0
|
|
30
|
+
margin: 0;
|
|
31
31
|
font-size: base(1.3);
|
|
32
32
|
line-height: base(1.6);
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
%h3 {
|
|
40
|
-
margin: 0
|
|
40
|
+
margin: 0;
|
|
41
41
|
font-size: base(1);
|
|
42
42
|
line-height: base(1.2);
|
|
43
43
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
%h4 {
|
|
51
|
-
margin: 0
|
|
51
|
+
margin: 0;
|
|
52
52
|
font-size: base(0.8);
|
|
53
53
|
line-height: base(1);
|
|
54
54
|
letter-spacing: -0.375px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/richtext-slate",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.91",
|
|
4
4
|
"description": "The officially supported Slate richtext adapter for Payload",
|
|
5
5
|
"homepage": "https://payloadcms.com",
|
|
6
6
|
"repository": {
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
|
47
47
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
|
48
48
|
"@payloadcms/eslint-config": "3.0.0-beta.59",
|
|
49
|
-
"@payloadcms/ui": "3.0.0-beta.
|
|
50
|
-
"payload": "3.0.0-beta.
|
|
49
|
+
"@payloadcms/ui": "3.0.0-beta.91",
|
|
50
|
+
"payload": "3.0.0-beta.91"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "^19.0.0 || ^19.0.0-rc-06d0b89e-20240801",
|
|
54
|
-
"@payloadcms/translations": "3.0.0-beta.
|
|
55
|
-
"@payloadcms/ui": "3.0.0-beta.
|
|
56
|
-
"payload": "3.0.0-beta.
|
|
54
|
+
"@payloadcms/translations": "3.0.0-beta.91",
|
|
55
|
+
"@payloadcms/ui": "3.0.0-beta.91",
|
|
56
|
+
"payload": "3.0.0-beta.91"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": "^18.20.2 || >=20.9.0"
|