payload-canvas 0.6.3 → 0.6.5

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.
Files changed (60) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +3237 -3236
  3. package/dist/admin/aiKeyField.scss +58 -58
  4. package/dist/admin/diff/layoutDiff.scss +181 -181
  5. package/dist/admin/editor/assistant/assistant.scss +944 -944
  6. package/dist/admin/editor/classes/manager.scss +262 -262
  7. package/dist/admin/editor/comments/comments.scss +539 -539
  8. package/dist/admin/editor/dnd/dnd.scss +261 -261
  9. package/dist/admin/editor/editor.scss +2629 -2629
  10. package/dist/admin/editor/empty/empty.scss +92 -92
  11. package/dist/admin/editor/fields/fields.scss +778 -778
  12. package/dist/admin/editor/generate/generate.scss +276 -276
  13. package/dist/admin/editor/layout/layout.scss +240 -240
  14. package/dist/admin/editor/live/presence.scss +24 -24
  15. package/dist/admin/editor/locale/locale.scss +154 -154
  16. package/dist/admin/editor/media/media.scss +233 -233
  17. package/dist/admin/editor/menu/menu.scss +132 -132
  18. package/dist/admin/editor/motion/motion.scss +84 -84
  19. package/dist/admin/editor/sections/components.scss +238 -238
  20. package/dist/admin/editor/sections/variants.scss +90 -90
  21. package/dist/admin/editor/styles/ClassCss.js +3 -3
  22. package/dist/admin/editor/styles/classes.scss +381 -381
  23. package/dist/admin/editor/styles/styles.scss +1123 -1123
  24. package/dist/admin/editor/styles/tokens.js +2 -1
  25. package/dist/admin/editor/templates/templates.scss +654 -654
  26. package/dist/admin/editor/tooltip/tooltip.scss +39 -39
  27. package/dist/admin/editor/topbar/DocumentActions.js +1 -1
  28. package/dist/admin/editor/topbar/TopBar.js +2 -1
  29. package/dist/admin/editor/topbar/contentMode.scss +26 -26
  30. package/dist/admin/editor/topbar/screens/screens.scss +134 -134
  31. package/dist/admin/editor/topbar/settingsDrawer.scss +32 -32
  32. package/dist/admin/editor/topbar/tabTitle.d.ts +6 -0
  33. package/dist/admin/editor/topbar/tabTitle.js +9 -0
  34. package/dist/admin/editor/topbar/topbar.scss +645 -645
  35. package/dist/admin/editor/ui/controls.scss +320 -320
  36. package/dist/admin/forms/submissions.scss +197 -197
  37. package/dist/admin/layoutField.scss +69 -69
  38. package/dist/admin/templateConditions.scss +24 -24
  39. package/dist/ai/prompt.js +40 -40
  40. package/dist/blocks/client/marquee.js +14 -14
  41. package/dist/blocks/payload.js +13 -3
  42. package/dist/core/payloadBlocks.js +10 -1
  43. package/dist/core/responseError.d.ts +5 -0
  44. package/dist/core/responseError.js +8 -0
  45. package/dist/core/sections.d.ts +2 -0
  46. package/dist/core/sections.js +8 -0
  47. package/dist/css/index.d.ts +6 -0
  48. package/dist/css/index.js +40 -1
  49. package/dist/css/shared.js +2 -2
  50. package/dist/live/session.js +18 -0
  51. package/dist/live/storage.d.ts +5 -0
  52. package/dist/live/storage.js +20 -0
  53. package/dist/mcp/index.js +46 -19
  54. package/dist/mcp/shared.js +16 -16
  55. package/dist/plugin/index.d.ts +21 -1
  56. package/dist/plugin/index.js +46 -15
  57. package/dist/react/canvas/BuilderCanvas.js +76 -75
  58. package/dist/react/canvas/thumbnail/ThumbnailCanvas.js +8 -7
  59. package/dist/theme/admin/fields.scss +363 -363
  60. 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
+ }