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,92 +1,92 @@
|
|
|
1
|
-
// The empty page's start card, over the canvas. Payload CSS variables only.
|
|
2
|
-
|
|
3
|
-
@layer payload-default {
|
|
4
|
-
.builder-empty-start {
|
|
5
|
-
position: absolute;
|
|
6
|
-
inset: 0;
|
|
7
|
-
z-index: 2;
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
align-items: flex-start;
|
|
11
|
-
padding: 72px 16px 16px;
|
|
12
|
-
overflow: auto;
|
|
13
|
-
// Drops from the library pass through to the canvas around the card.
|
|
14
|
-
pointer-events: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.builder-empty-start__card {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
align-items: center;
|
|
21
|
-
gap: 12px;
|
|
22
|
-
width: min(560px, 100%);
|
|
23
|
-
padding: 24px;
|
|
24
|
-
border: 1px solid var(--be-border);
|
|
25
|
-
border-radius: var(--be-radius-m);
|
|
26
|
-
background: var(--be-panel);
|
|
27
|
-
color: var(--theme-text);
|
|
28
|
-
box-shadow: var(--be-shadow);
|
|
29
|
-
text-align: center;
|
|
30
|
-
pointer-events: auto;
|
|
31
|
-
animation: builder-fade-in 200ms var(--be-ease) both;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.builder-empty-start__icon {
|
|
35
|
-
display: grid;
|
|
36
|
-
place-items: center;
|
|
37
|
-
width: 40px;
|
|
38
|
-
height: 40px;
|
|
39
|
-
border-radius: 50%;
|
|
40
|
-
background: var(--be-raised);
|
|
41
|
-
color: var(--be-muted);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.builder-empty-start__title {
|
|
45
|
-
margin: 0;
|
|
46
|
-
// Payload's h4 size (16px): the start card's title is a page-level heading, not panel text.
|
|
47
|
-
font-size: calc(var(--base) * 0.8);
|
|
48
|
-
font-weight: var(--be-weight-strong);
|
|
49
|
-
line-height: 1.35;
|
|
50
|
-
text-wrap: balance;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.builder-empty-start__text {
|
|
54
|
-
max-width: 48ch;
|
|
55
|
-
margin: 0;
|
|
56
|
-
color: var(--theme-elevation-650);
|
|
57
|
-
font-size: var(--be-text-m);
|
|
58
|
-
line-height: 1.5;
|
|
59
|
-
text-wrap: balance;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.builder-empty-start__sections {
|
|
63
|
-
display: grid;
|
|
64
|
-
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
65
|
-
gap: 10px;
|
|
66
|
-
width: 100%;
|
|
67
|
-
margin: 4px 0 0;
|
|
68
|
-
padding: 0;
|
|
69
|
-
list-style: none;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.builder-empty-start__section {
|
|
73
|
-
height: 100%;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
|
|
76
|
-
.builder-editor__thumb {
|
|
77
|
-
height: 84px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.builder-editor__thumb--picture {
|
|
81
|
-
max-height: 84px;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.builder-empty-start__actions {
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-wrap: wrap;
|
|
88
|
-
justify-content: center;
|
|
89
|
-
gap: 8px;
|
|
90
|
-
margin-top: 4px;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
1
|
+
// The empty page's start card, over the canvas. Payload CSS variables only.
|
|
2
|
+
|
|
3
|
+
@layer payload-default {
|
|
4
|
+
.builder-empty-start {
|
|
5
|
+
position: absolute;
|
|
6
|
+
inset: 0;
|
|
7
|
+
z-index: 2;
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: flex-start;
|
|
11
|
+
padding: 72px 16px 16px;
|
|
12
|
+
overflow: auto;
|
|
13
|
+
// Drops from the library pass through to the canvas around the card.
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.builder-empty-start__card {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 12px;
|
|
22
|
+
width: min(560px, 100%);
|
|
23
|
+
padding: 24px;
|
|
24
|
+
border: 1px solid var(--be-border);
|
|
25
|
+
border-radius: var(--be-radius-m);
|
|
26
|
+
background: var(--be-panel);
|
|
27
|
+
color: var(--theme-text);
|
|
28
|
+
box-shadow: var(--be-shadow);
|
|
29
|
+
text-align: center;
|
|
30
|
+
pointer-events: auto;
|
|
31
|
+
animation: builder-fade-in 200ms var(--be-ease) both;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.builder-empty-start__icon {
|
|
35
|
+
display: grid;
|
|
36
|
+
place-items: center;
|
|
37
|
+
width: 40px;
|
|
38
|
+
height: 40px;
|
|
39
|
+
border-radius: 50%;
|
|
40
|
+
background: var(--be-raised);
|
|
41
|
+
color: var(--be-muted);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.builder-empty-start__title {
|
|
45
|
+
margin: 0;
|
|
46
|
+
// Payload's h4 size (16px): the start card's title is a page-level heading, not panel text.
|
|
47
|
+
font-size: calc(var(--base) * 0.8);
|
|
48
|
+
font-weight: var(--be-weight-strong);
|
|
49
|
+
line-height: 1.35;
|
|
50
|
+
text-wrap: balance;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.builder-empty-start__text {
|
|
54
|
+
max-width: 48ch;
|
|
55
|
+
margin: 0;
|
|
56
|
+
color: var(--theme-elevation-650);
|
|
57
|
+
font-size: var(--be-text-m);
|
|
58
|
+
line-height: 1.5;
|
|
59
|
+
text-wrap: balance;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.builder-empty-start__sections {
|
|
63
|
+
display: grid;
|
|
64
|
+
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
65
|
+
gap: 10px;
|
|
66
|
+
width: 100%;
|
|
67
|
+
margin: 4px 0 0;
|
|
68
|
+
padding: 0;
|
|
69
|
+
list-style: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.builder-empty-start__section {
|
|
73
|
+
height: 100%;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
|
|
76
|
+
.builder-editor__thumb {
|
|
77
|
+
height: 84px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.builder-editor__thumb--picture {
|
|
81
|
+
max-height: 84px;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.builder-empty-start__actions {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-wrap: wrap;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
gap: 8px;
|
|
90
|
+
margin-top: 4px;
|
|
91
|
+
}
|
|
92
|
+
}
|