payload-canvas 0.6.2 → 0.6.4
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 +7 -5
- package/dist/admin/aiKeyField.scss +58 -58
- package/dist/admin/diff/layoutDiff.scss +181 -181
- package/dist/admin/editor/assistant/assistant.scss +944 -944
- package/dist/admin/editor/classes/manager.scss +262 -262
- package/dist/admin/editor/comments/comments.scss +539 -539
- package/dist/admin/editor/dnd/dnd.scss +261 -261
- package/dist/admin/editor/editor.scss +2629 -2629
- package/dist/admin/editor/empty/empty.scss +92 -92
- package/dist/admin/editor/fields/fields.scss +778 -778
- 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/media/media.scss +233 -233
- package/dist/admin/editor/menu/menu.scss +132 -132
- package/dist/admin/editor/motion/motion.scss +84 -84
- package/dist/admin/editor/sections/components.scss +238 -238
- package/dist/admin/editor/sections/variants.scss +90 -90
- package/dist/admin/editor/styles/ClassCss.js +3 -3
- package/dist/admin/editor/styles/classes.scss +381 -381
- package/dist/admin/editor/styles/styles.scss +1123 -1123
- package/dist/admin/editor/styles/tokens.js +2 -1
- package/dist/admin/editor/templates/templates.scss +654 -654
- package/dist/admin/editor/tooltip/tooltip.scss +39 -39
- package/dist/admin/editor/topbar/DocumentActions.js +1 -1
- package/dist/admin/editor/topbar/contentMode.scss +26 -26
- package/dist/admin/editor/topbar/screens/screens.scss +134 -134
- package/dist/admin/editor/topbar/settingsDrawer.scss +32 -32
- package/dist/admin/editor/topbar/topbar.scss +645 -645
- package/dist/admin/editor/ui/controls.scss +320 -320
- package/dist/admin/forms/submissions.scss +197 -197
- package/dist/admin/layoutField.scss +69 -69
- package/dist/admin/templateConditions.scss +24 -24
- package/dist/ai/prompt.js +40 -40
- package/dist/blocks/client/marquee.js +14 -14
- package/dist/blocks/defaults.js +17 -1
- package/dist/blocks/payload.js +13 -3
- package/dist/core/responseError.d.ts +5 -0
- package/dist/core/responseError.js +8 -0
- package/dist/css/index.d.ts +6 -0
- package/dist/css/index.js +40 -1
- package/dist/css/shared.js +2 -2
- package/dist/live/session.js +18 -0
- package/dist/live/storage.d.ts +5 -0
- package/dist/live/storage.js +20 -0
- package/dist/mcp/shared.js +16 -16
- package/dist/plugin/index.d.ts +14 -1
- package/dist/plugin/index.js +46 -8
- package/dist/react/canvas/BuilderCanvas.js +4 -3
- package/dist/react/canvas/thumbnail/ThumbnailCanvas.js +2 -1
- package/dist/react/components/AutoplayVideo.d.ts +3 -1
- package/dist/react/components/AutoplayVideo.js +4 -3
- package/dist/react/components/Video.d.ts +1 -0
- package/dist/react/components/Video.js +13 -2
- package/dist/react/components/videoPlayback.d.ts +13 -0
- package/dist/react/components/videoPlayback.js +10 -0
- package/dist/theme/admin/fields.scss +363 -363
- package/package.json +1 -1
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
// Localization in the editor: the top bar's switcher, the inspector note and field marks, and
|
|
2
|
-
// the outline dot. Payload CSS variables only.
|
|
3
|
-
|
|
4
|
-
@layer payload-default {
|
|
5
|
-
.builder-locale-switch {
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
flex: none;
|
|
8
|
-
align-items: center;
|
|
9
|
-
gap: 4px;
|
|
10
|
-
height: 28px;
|
|
11
|
-
padding: 0 6px 0 8px;
|
|
12
|
-
border: 1px solid var(--be-border);
|
|
13
|
-
border-radius: var(--be-radius);
|
|
14
|
-
background: transparent;
|
|
15
|
-
color: var(--theme-text);
|
|
16
|
-
font: inherit;
|
|
17
|
-
font-size: var(--be-text-m);
|
|
18
|
-
font-weight: var(--be-weight-strong);
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
|
|
21
|
-
&:hover {
|
|
22
|
-
background: var(--be-hover);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:focus-visible {
|
|
26
|
-
outline: 2px solid var(--be-accent);
|
|
27
|
-
outline-offset: 1px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
svg {
|
|
31
|
-
color: var(--be-muted);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Editing another language than the default: the switcher stands out a little.
|
|
36
|
-
.builder-locale-switch--other {
|
|
37
|
-
border-color: color-mix(in srgb, var(--theme-warning-500, #f59e0b) 55%, transparent);
|
|
38
|
-
background: color-mix(in srgb, var(--theme-warning-500, #f59e0b) 10%, transparent);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.builder-locale-switch__code {
|
|
42
|
-
letter-spacing: 0.02em;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.builder-locale-note {
|
|
46
|
-
display: flex;
|
|
47
|
-
gap: 8px;
|
|
48
|
-
margin: 0 0 12px;
|
|
49
|
-
padding: 8px 10px;
|
|
50
|
-
border: 1px solid color-mix(in srgb, var(--theme-warning-500, #f59e0b) 40%, transparent);
|
|
51
|
-
border-radius: var(--be-radius-m);
|
|
52
|
-
background: color-mix(in srgb, var(--theme-warning-500, #f59e0b) 8%, transparent);
|
|
53
|
-
color: var(--theme-text);
|
|
54
|
-
font-size: var(--be-text-m);
|
|
55
|
-
line-height: 1.4;
|
|
56
|
-
|
|
57
|
-
> svg {
|
|
58
|
-
flex: none;
|
|
59
|
-
margin-top: 2px;
|
|
60
|
-
color: var(--theme-warning-500, #f59e0b);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
p {
|
|
64
|
-
margin: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.builder-locale-field__action {
|
|
68
|
-
margin-top: 6px;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.builder-locale-field {
|
|
73
|
-
display: flex;
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
gap: 4px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// The input shows the fallback language's value: greyed.
|
|
79
|
-
.builder-locale-field[data-locale-status='untranslated'] {
|
|
80
|
-
input,
|
|
81
|
-
textarea,
|
|
82
|
-
.rich-text-lexical,
|
|
83
|
-
.react-select,
|
|
84
|
-
.upload,
|
|
85
|
-
.relationship {
|
|
86
|
-
opacity: 0.6;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.builder-locale-field__mark {
|
|
91
|
-
display: flex;
|
|
92
|
-
flex-wrap: wrap;
|
|
93
|
-
align-items: center;
|
|
94
|
-
gap: 4px 8px;
|
|
95
|
-
margin-top: -6px;
|
|
96
|
-
color: var(--be-muted);
|
|
97
|
-
font-size: var(--be-text-s);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.builder-locale-field[data-locale-status='untranslated'] .builder-locale-field__state,
|
|
101
|
-
.builder-locale-field[data-locale-status='missing'] .builder-locale-field__state {
|
|
102
|
-
color: var(--theme-warning-500, #f59e0b);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.builder-locale-field__action {
|
|
106
|
-
padding: 0;
|
|
107
|
-
border: 0;
|
|
108
|
-
background: none;
|
|
109
|
-
color: var(--theme-text);
|
|
110
|
-
font: inherit;
|
|
111
|
-
font-size: var(--be-text-s);
|
|
112
|
-
text-decoration: underline;
|
|
113
|
-
text-underline-offset: 2px;
|
|
114
|
-
cursor: pointer;
|
|
115
|
-
|
|
116
|
-
&:hover {
|
|
117
|
-
color: var(--be-accent-strong);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&:focus-visible {
|
|
121
|
-
outline: 2px solid var(--be-accent);
|
|
122
|
-
outline-offset: 1px;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Outline: a block with props that show the fallback language.
|
|
127
|
-
.builder-editor__row-untranslated {
|
|
128
|
-
flex: none;
|
|
129
|
-
width: 6px;
|
|
130
|
-
height: 6px;
|
|
131
|
-
margin-left: auto;
|
|
132
|
-
border-radius: 50%;
|
|
133
|
-
background: var(--theme-warning-500, #f59e0b);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.builder-editor__row-untranslated + .builder-editor__row-problem {
|
|
137
|
-
margin-left: 4px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// Presence: a collaborator's language under their initials.
|
|
141
|
-
.builder-presence__locale {
|
|
142
|
-
position: absolute;
|
|
143
|
-
right: -6px;
|
|
144
|
-
bottom: -5px;
|
|
145
|
-
padding: 0 3px;
|
|
146
|
-
border-radius: 3px;
|
|
147
|
-
background: var(--theme-elevation-800);
|
|
148
|
-
color: var(--theme-elevation-0);
|
|
149
|
-
font-size: 8px;
|
|
150
|
-
font-weight: 700;
|
|
151
|
-
line-height: 11px;
|
|
152
|
-
letter-spacing: 0.02em;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
1
|
+
// Localization in the editor: the top bar's switcher, the inspector note and field marks, and
|
|
2
|
+
// the outline dot. Payload CSS variables only.
|
|
3
|
+
|
|
4
|
+
@layer payload-default {
|
|
5
|
+
.builder-locale-switch {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
flex: none;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 4px;
|
|
10
|
+
height: 28px;
|
|
11
|
+
padding: 0 6px 0 8px;
|
|
12
|
+
border: 1px solid var(--be-border);
|
|
13
|
+
border-radius: var(--be-radius);
|
|
14
|
+
background: transparent;
|
|
15
|
+
color: var(--theme-text);
|
|
16
|
+
font: inherit;
|
|
17
|
+
font-size: var(--be-text-m);
|
|
18
|
+
font-weight: var(--be-weight-strong);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
background: var(--be-hover);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:focus-visible {
|
|
26
|
+
outline: 2px solid var(--be-accent);
|
|
27
|
+
outline-offset: 1px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
svg {
|
|
31
|
+
color: var(--be-muted);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Editing another language than the default: the switcher stands out a little.
|
|
36
|
+
.builder-locale-switch--other {
|
|
37
|
+
border-color: color-mix(in srgb, var(--theme-warning-500, #f59e0b) 55%, transparent);
|
|
38
|
+
background: color-mix(in srgb, var(--theme-warning-500, #f59e0b) 10%, transparent);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.builder-locale-switch__code {
|
|
42
|
+
letter-spacing: 0.02em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.builder-locale-note {
|
|
46
|
+
display: flex;
|
|
47
|
+
gap: 8px;
|
|
48
|
+
margin: 0 0 12px;
|
|
49
|
+
padding: 8px 10px;
|
|
50
|
+
border: 1px solid color-mix(in srgb, var(--theme-warning-500, #f59e0b) 40%, transparent);
|
|
51
|
+
border-radius: var(--be-radius-m);
|
|
52
|
+
background: color-mix(in srgb, var(--theme-warning-500, #f59e0b) 8%, transparent);
|
|
53
|
+
color: var(--theme-text);
|
|
54
|
+
font-size: var(--be-text-m);
|
|
55
|
+
line-height: 1.4;
|
|
56
|
+
|
|
57
|
+
> svg {
|
|
58
|
+
flex: none;
|
|
59
|
+
margin-top: 2px;
|
|
60
|
+
color: var(--theme-warning-500, #f59e0b);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
p {
|
|
64
|
+
margin: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.builder-locale-field__action {
|
|
68
|
+
margin-top: 6px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.builder-locale-field {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
gap: 4px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// The input shows the fallback language's value: greyed.
|
|
79
|
+
.builder-locale-field[data-locale-status='untranslated'] {
|
|
80
|
+
input,
|
|
81
|
+
textarea,
|
|
82
|
+
.rich-text-lexical,
|
|
83
|
+
.react-select,
|
|
84
|
+
.upload,
|
|
85
|
+
.relationship {
|
|
86
|
+
opacity: 0.6;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.builder-locale-field__mark {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
align-items: center;
|
|
94
|
+
gap: 4px 8px;
|
|
95
|
+
margin-top: -6px;
|
|
96
|
+
color: var(--be-muted);
|
|
97
|
+
font-size: var(--be-text-s);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.builder-locale-field[data-locale-status='untranslated'] .builder-locale-field__state,
|
|
101
|
+
.builder-locale-field[data-locale-status='missing'] .builder-locale-field__state {
|
|
102
|
+
color: var(--theme-warning-500, #f59e0b);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.builder-locale-field__action {
|
|
106
|
+
padding: 0;
|
|
107
|
+
border: 0;
|
|
108
|
+
background: none;
|
|
109
|
+
color: var(--theme-text);
|
|
110
|
+
font: inherit;
|
|
111
|
+
font-size: var(--be-text-s);
|
|
112
|
+
text-decoration: underline;
|
|
113
|
+
text-underline-offset: 2px;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
|
|
116
|
+
&:hover {
|
|
117
|
+
color: var(--be-accent-strong);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&:focus-visible {
|
|
121
|
+
outline: 2px solid var(--be-accent);
|
|
122
|
+
outline-offset: 1px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Outline: a block with props that show the fallback language.
|
|
127
|
+
.builder-editor__row-untranslated {
|
|
128
|
+
flex: none;
|
|
129
|
+
width: 6px;
|
|
130
|
+
height: 6px;
|
|
131
|
+
margin-left: auto;
|
|
132
|
+
border-radius: 50%;
|
|
133
|
+
background: var(--theme-warning-500, #f59e0b);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.builder-editor__row-untranslated + .builder-editor__row-problem {
|
|
137
|
+
margin-left: 4px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Presence: a collaborator's language under their initials.
|
|
141
|
+
.builder-presence__locale {
|
|
142
|
+
position: absolute;
|
|
143
|
+
right: -6px;
|
|
144
|
+
bottom: -5px;
|
|
145
|
+
padding: 0 3px;
|
|
146
|
+
border-radius: 3px;
|
|
147
|
+
background: var(--theme-elevation-800);
|
|
148
|
+
color: var(--theme-elevation-0);
|
|
149
|
+
font-size: 8px;
|
|
150
|
+
font-weight: 700;
|
|
151
|
+
line-height: 11px;
|
|
152
|
+
letter-spacing: 0.02em;
|
|
153
|
+
}
|
|
154
|
+
}
|