payload-canvas 0.6.4 → 0.6.6
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/LICENSE +21 -21
- package/README.md +3237 -3237
- package/dist/admin/diff/layoutDiff.scss +181 -181
- package/dist/admin/editor/assistant/assistant.scss +944 -944
- package/dist/admin/editor/empty/empty.scss +92 -92
- package/dist/admin/editor/generate/generate.scss +276 -276
- package/dist/admin/editor/layout/layout.scss +240 -240
- package/dist/admin/editor/live/presence.scss +24 -24
- package/dist/admin/editor/locale/locale.scss +154 -154
- package/dist/admin/editor/menu/menu.scss +132 -132
- package/dist/admin/editor/motion/motion.scss +84 -84
- package/dist/admin/editor/tooltip/tooltip.scss +39 -39
- package/dist/admin/editor/topbar/TopBar.js +2 -1
- package/dist/admin/editor/topbar/screens/screens.scss +134 -134
- package/dist/admin/editor/topbar/settingsDrawer.scss +32 -32
- package/dist/admin/editor/topbar/tabTitle.d.ts +6 -0
- package/dist/admin/editor/topbar/tabTitle.js +9 -0
- package/dist/admin/editor/ui/controls.scss +320 -320
- package/dist/classes/collection.js +2 -0
- package/dist/core/clearAgain.d.ts +6 -0
- package/dist/core/clearAgain.js +14 -0
- package/dist/core/payloadBlocks.js +10 -1
- package/dist/core/sections.d.ts +2 -0
- package/dist/core/sections.js +8 -0
- package/dist/mcp/index.js +46 -19
- package/dist/plugin/index.d.ts +7 -0
- package/dist/plugin/index.js +1 -8
- package/dist/react/canvas/BuilderCanvas.js +72 -72
- package/dist/react/canvas/thumbnail/ThumbnailCanvas.js +6 -6
- package/dist/theme/global.js +7 -2
- package/package.json +1 -1
|
@@ -1,181 +1,181 @@
|
|
|
1
|
-
// The builder layout diff in Payload's Versions > compare view. Payload CSS variables only, no
|
|
2
|
-
// Tailwind. Colors come from Payload's own diff variables (`--diff-create-*`, `--diff-delete-*`),
|
|
3
|
-
// with theme fallbacks, so it matches the other fields' diffs in light and dark theme.
|
|
4
|
-
|
|
5
|
-
@layer payload-default {
|
|
6
|
-
.layout-diff {
|
|
7
|
-
position: relative;
|
|
8
|
-
|
|
9
|
-
&__content {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
gap: calc(var(--base) * 0.5);
|
|
13
|
-
background: var(--theme-elevation-50);
|
|
14
|
-
padding: calc(var(--base) * 0.5);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&__summary {
|
|
18
|
-
margin: 0;
|
|
19
|
-
color: var(--theme-elevation-800);
|
|
20
|
-
font-weight: 500;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&__list,
|
|
24
|
-
&__details {
|
|
25
|
-
list-style: none;
|
|
26
|
-
margin: 0;
|
|
27
|
-
padding: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&__list {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
gap: calc(var(--base) * 0.25);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&__change {
|
|
37
|
-
padding: calc(var(--base) * 0.4) calc(var(--base) * 0.5);
|
|
38
|
-
border: 1px solid var(--theme-elevation-100);
|
|
39
|
-
border-radius: var(--style-radius-s);
|
|
40
|
-
background: var(--theme-elevation-0);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__head {
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-wrap: wrap;
|
|
46
|
-
align-items: baseline;
|
|
47
|
-
gap: calc(var(--base) * 0.3);
|
|
48
|
-
min-width: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&__pill {
|
|
52
|
-
flex: none;
|
|
53
|
-
padding: 0 calc(var(--base) * 0.25);
|
|
54
|
-
border: 1px solid var(--theme-elevation-150);
|
|
55
|
-
border-radius: var(--style-radius-s);
|
|
56
|
-
background: var(--theme-elevation-100);
|
|
57
|
-
color: var(--theme-elevation-800);
|
|
58
|
-
font-size: calc(var(--base) * 0.55);
|
|
59
|
-
font-weight: 600;
|
|
60
|
-
line-height: 1.6;
|
|
61
|
-
text-transform: uppercase;
|
|
62
|
-
letter-spacing: 0.04em;
|
|
63
|
-
|
|
64
|
-
&--added {
|
|
65
|
-
border-color: var(--diff-create-pill-border, var(--theme-success-400));
|
|
66
|
-
background: var(--diff-create-pill-bg, var(--theme-success-200));
|
|
67
|
-
color: var(--diff-create-pill-color, var(--theme-success-600));
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&--removed {
|
|
71
|
-
border-color: var(--diff-delete-pill-border, var(--theme-error-400));
|
|
72
|
-
background: var(--diff-delete-pill-bg, var(--theme-error-200));
|
|
73
|
-
color: var(--diff-delete-pill-color, var(--theme-error-600));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__name {
|
|
78
|
-
min-width: 0;
|
|
79
|
-
overflow-wrap: anywhere;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&__where {
|
|
83
|
-
color: var(--theme-elevation-600);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&__details {
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
gap: calc(var(--base) * 0.2);
|
|
90
|
-
margin-top: calc(var(--base) * 0.3);
|
|
91
|
-
padding-inline-start: calc(var(--base) * 0.5);
|
|
92
|
-
border-inline-start: 2px solid var(--theme-elevation-100);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&__detail {
|
|
96
|
-
display: flex;
|
|
97
|
-
flex-wrap: wrap;
|
|
98
|
-
align-items: baseline;
|
|
99
|
-
gap: calc(var(--base) * 0.25);
|
|
100
|
-
min-width: 0;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&__detail-label {
|
|
104
|
-
display: inline-flex;
|
|
105
|
-
align-items: baseline;
|
|
106
|
-
gap: calc(var(--base) * 0.2);
|
|
107
|
-
color: var(--theme-elevation-600);
|
|
108
|
-
|
|
109
|
-
&::after {
|
|
110
|
-
content: ':';
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.field-diff__locale-label {
|
|
114
|
-
margin: 0;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&__value,
|
|
119
|
-
&__class {
|
|
120
|
-
padding: 0 calc(var(--base) * 0.15);
|
|
121
|
-
border-radius: var(--style-radius-s);
|
|
122
|
-
text-decoration: none;
|
|
123
|
-
overflow-wrap: anywhere;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&__value--del {
|
|
127
|
-
background: var(--diff-delete-parent-bg, var(--theme-error-100));
|
|
128
|
-
color: var(--diff-delete-parent-color, var(--theme-error-800));
|
|
129
|
-
text-decoration: line-through;
|
|
130
|
-
text-decoration-color: var(--diff-delete-pill-border, var(--theme-error-400));
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&__value--ins {
|
|
134
|
-
background: var(--diff-create-parent-bg, var(--theme-success-100));
|
|
135
|
-
color: var(--diff-create-parent-color, var(--theme-success-800));
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&__class {
|
|
139
|
-
font-family: var(--font-mono, ui-monospace, monospace);
|
|
140
|
-
font-size: calc(var(--base) * 0.55);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&__empty {
|
|
144
|
-
color: var(--theme-elevation-400);
|
|
145
|
-
font-style: italic;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&__arrow {
|
|
149
|
-
color: var(--theme-elevation-400);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&__json {
|
|
153
|
-
border-top: 1px solid var(--theme-elevation-100);
|
|
154
|
-
padding-top: calc(var(--base) * 0.4);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&__json-summary {
|
|
158
|
-
cursor: pointer;
|
|
159
|
-
color: var(--theme-elevation-600);
|
|
160
|
-
width: fit-content;
|
|
161
|
-
|
|
162
|
-
&:hover {
|
|
163
|
-
color: var(--theme-elevation-900);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&__json-content {
|
|
168
|
-
display: grid;
|
|
169
|
-
// Same columns as Payload's field diffs: old on the left, new on the right.
|
|
170
|
-
grid-template-columns: calc(50% - var(--base) * 0.5) calc(50% - var(--base) * 0.5);
|
|
171
|
-
gap: var(--base);
|
|
172
|
-
margin-top: calc(var(--base) * 0.5);
|
|
173
|
-
overflow-x: auto;
|
|
174
|
-
|
|
175
|
-
pre {
|
|
176
|
-
white-space: pre-wrap;
|
|
177
|
-
overflow-wrap: anywhere;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
1
|
+
// The builder layout diff in Payload's Versions > compare view. Payload CSS variables only, no
|
|
2
|
+
// Tailwind. Colors come from Payload's own diff variables (`--diff-create-*`, `--diff-delete-*`),
|
|
3
|
+
// with theme fallbacks, so it matches the other fields' diffs in light and dark theme.
|
|
4
|
+
|
|
5
|
+
@layer payload-default {
|
|
6
|
+
.layout-diff {
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
&__content {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: calc(var(--base) * 0.5);
|
|
13
|
+
background: var(--theme-elevation-50);
|
|
14
|
+
padding: calc(var(--base) * 0.5);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__summary {
|
|
18
|
+
margin: 0;
|
|
19
|
+
color: var(--theme-elevation-800);
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__list,
|
|
24
|
+
&__details {
|
|
25
|
+
list-style: none;
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__list {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: calc(var(--base) * 0.25);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__change {
|
|
37
|
+
padding: calc(var(--base) * 0.4) calc(var(--base) * 0.5);
|
|
38
|
+
border: 1px solid var(--theme-elevation-100);
|
|
39
|
+
border-radius: var(--style-radius-s);
|
|
40
|
+
background: var(--theme-elevation-0);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__head {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
align-items: baseline;
|
|
47
|
+
gap: calc(var(--base) * 0.3);
|
|
48
|
+
min-width: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__pill {
|
|
52
|
+
flex: none;
|
|
53
|
+
padding: 0 calc(var(--base) * 0.25);
|
|
54
|
+
border: 1px solid var(--theme-elevation-150);
|
|
55
|
+
border-radius: var(--style-radius-s);
|
|
56
|
+
background: var(--theme-elevation-100);
|
|
57
|
+
color: var(--theme-elevation-800);
|
|
58
|
+
font-size: calc(var(--base) * 0.55);
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
line-height: 1.6;
|
|
61
|
+
text-transform: uppercase;
|
|
62
|
+
letter-spacing: 0.04em;
|
|
63
|
+
|
|
64
|
+
&--added {
|
|
65
|
+
border-color: var(--diff-create-pill-border, var(--theme-success-400));
|
|
66
|
+
background: var(--diff-create-pill-bg, var(--theme-success-200));
|
|
67
|
+
color: var(--diff-create-pill-color, var(--theme-success-600));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&--removed {
|
|
71
|
+
border-color: var(--diff-delete-pill-border, var(--theme-error-400));
|
|
72
|
+
background: var(--diff-delete-pill-bg, var(--theme-error-200));
|
|
73
|
+
color: var(--diff-delete-pill-color, var(--theme-error-600));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__name {
|
|
78
|
+
min-width: 0;
|
|
79
|
+
overflow-wrap: anywhere;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__where {
|
|
83
|
+
color: var(--theme-elevation-600);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&__details {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
gap: calc(var(--base) * 0.2);
|
|
90
|
+
margin-top: calc(var(--base) * 0.3);
|
|
91
|
+
padding-inline-start: calc(var(--base) * 0.5);
|
|
92
|
+
border-inline-start: 2px solid var(--theme-elevation-100);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__detail {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-wrap: wrap;
|
|
98
|
+
align-items: baseline;
|
|
99
|
+
gap: calc(var(--base) * 0.25);
|
|
100
|
+
min-width: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&__detail-label {
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
align-items: baseline;
|
|
106
|
+
gap: calc(var(--base) * 0.2);
|
|
107
|
+
color: var(--theme-elevation-600);
|
|
108
|
+
|
|
109
|
+
&::after {
|
|
110
|
+
content: ':';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.field-diff__locale-label {
|
|
114
|
+
margin: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&__value,
|
|
119
|
+
&__class {
|
|
120
|
+
padding: 0 calc(var(--base) * 0.15);
|
|
121
|
+
border-radius: var(--style-radius-s);
|
|
122
|
+
text-decoration: none;
|
|
123
|
+
overflow-wrap: anywhere;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&__value--del {
|
|
127
|
+
background: var(--diff-delete-parent-bg, var(--theme-error-100));
|
|
128
|
+
color: var(--diff-delete-parent-color, var(--theme-error-800));
|
|
129
|
+
text-decoration: line-through;
|
|
130
|
+
text-decoration-color: var(--diff-delete-pill-border, var(--theme-error-400));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&__value--ins {
|
|
134
|
+
background: var(--diff-create-parent-bg, var(--theme-success-100));
|
|
135
|
+
color: var(--diff-create-parent-color, var(--theme-success-800));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&__class {
|
|
139
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
140
|
+
font-size: calc(var(--base) * 0.55);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__empty {
|
|
144
|
+
color: var(--theme-elevation-400);
|
|
145
|
+
font-style: italic;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&__arrow {
|
|
149
|
+
color: var(--theme-elevation-400);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&__json {
|
|
153
|
+
border-top: 1px solid var(--theme-elevation-100);
|
|
154
|
+
padding-top: calc(var(--base) * 0.4);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&__json-summary {
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
color: var(--theme-elevation-600);
|
|
160
|
+
width: fit-content;
|
|
161
|
+
|
|
162
|
+
&:hover {
|
|
163
|
+
color: var(--theme-elevation-900);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&__json-content {
|
|
168
|
+
display: grid;
|
|
169
|
+
// Same columns as Payload's field diffs: old on the left, new on the right.
|
|
170
|
+
grid-template-columns: calc(50% - var(--base) * 0.5) calc(50% - var(--base) * 0.5);
|
|
171
|
+
gap: var(--base);
|
|
172
|
+
margin-top: calc(var(--base) * 0.5);
|
|
173
|
+
overflow-x: auto;
|
|
174
|
+
|
|
175
|
+
pre {
|
|
176
|
+
white-space: pre-wrap;
|
|
177
|
+
overflow-wrap: anywhere;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|