dune-react 0.0.21 → 0.0.22

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 (180) hide show
  1. package/dist/components/index.d.ts +1 -0
  2. package/dist/components/puck-base/button.d.ts +1 -1
  3. package/dist/components/puck-base/button.js +5 -6
  4. package/dist/components/puck-base/card.d.ts +1 -1
  5. package/dist/components/puck-base/container.js +1 -1
  6. package/dist/components/puck-base/content.d.ts +1 -1
  7. package/dist/components/puck-base/image.js +16 -16
  8. package/dist/components/puck-base/index.d.ts +1 -13
  9. package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +3 -25
  10. package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +1 -1
  11. package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -1
  12. package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +1 -1
  13. package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
  14. package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +1 -1
  15. package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
  16. package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
  17. package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +1 -1
  18. package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
  19. package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
  20. package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +88 -59
  21. package/dist/components/puck-block/cta-sections/props.js +46 -0
  22. package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -73
  23. package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
  24. package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
  25. package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -74
  26. package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
  27. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
  28. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
  29. package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +1 -1
  30. package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
  31. package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +1 -1
  32. package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +1 -1
  33. package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +1 -1
  34. package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
  35. package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +2 -2
  36. package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +2 -2
  37. package/dist/components/puck-block/feature-sections/tab-feature/component.js +77 -61
  38. package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
  39. package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
  40. package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +1 -1
  41. package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +1 -1
  42. package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +1 -1
  43. package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +1 -1
  44. package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +1 -1
  45. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +25 -28
  46. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -2
  47. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +2 -2
  48. package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +2 -2
  49. package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +67 -64
  50. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +24 -27
  51. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -2
  52. package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
  53. package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +118 -17
  54. package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
  55. package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +161 -22
  56. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +1 -1
  57. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +142 -19
  58. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +1 -1
  59. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +1 -1
  60. package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +1 -1
  61. package/dist/components/puck-block/hero-sections/carousel-hero/component.js +50 -9
  62. package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
  63. package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +2 -2
  64. package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
  65. package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
  66. package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +2 -2
  67. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +4 -2
  68. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
  69. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
  70. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
  71. package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +1 -1
  72. package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +26 -29
  73. package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
  74. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +25 -28
  75. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -2
  76. package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +1 -1
  77. package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
  78. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
  79. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
  80. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +91 -44
  81. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
  82. package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +2 -2
  83. package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +2 -2
  84. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
  85. package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
  86. package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -44
  87. package/dist/components/puck-block/hero-sections/tab-hero/index.js +7 -2
  88. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +93 -43
  89. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +1 -1
  90. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +27 -4
  91. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
  92. package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
  93. package/dist/components/puck-block/index.d.ts +2 -0
  94. package/dist/components/puck-block/location-sections/location-1/location.d.ts +1 -1
  95. package/dist/components/puck-block/location-sections/location-2/location.d.ts +1 -1
  96. package/dist/components/puck-block/location-sections/location-3/location.d.ts +2 -2
  97. package/dist/components/puck-block/location-sections/props.d.ts +1 -1
  98. package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
  99. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +1 -1
  100. package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
  101. package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +0 -22
  102. package/dist/components/puck-block/metrics-sections/tab-stats/index.js +1 -1
  103. package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +36 -23
  104. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +0 -22
  105. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +1 -1
  106. package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -22
  107. package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -1
  108. package/dist/components/puck-block/registry.generated.d.ts +13141 -0
  109. package/dist/components/puck-block/registry.generated.js +558 -0
  110. package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +1 -1
  111. package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +1 -1
  112. package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
  113. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
  114. package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +1 -23
  115. package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +1 -1
  116. package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
  117. package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +1 -23
  118. package/dist/components/puck-block/team-sections/team-carousel/index.js +1 -2
  119. package/dist/components/puck-block/team-sections/team-grid/index.d.ts +1 -23
  120. package/dist/components/puck-block/team-sections/team-grid/index.js +1 -2
  121. package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +1 -23
  122. package/dist/components/puck-block/team-sections/team-inline-card/index.js +1 -2
  123. package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +1 -1
  124. package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +1 -1
  125. package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +0 -22
  126. package/dist/components/puck-block/text-sections/aside-nav-content/index.js +1 -1
  127. package/dist/components/puck-block/text-sections/blog-article/index.d.ts +0 -22
  128. package/dist/components/puck-block/text-sections/blog-article/index.js +1 -1
  129. package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -23
  130. package/dist/components/puck-block/text-sections/text-header/index.d.ts +2 -2
  131. package/dist/components/puck-core/core/props/content.js +41 -1
  132. package/dist/components/puck-core/core/props/form.js +76 -0
  133. package/dist/components/puck-core/core/props/index.js +34 -0
  134. package/dist/components/puck-core/core/props/interactive.js +17 -0
  135. package/dist/components/puck-core/core/props/media.js +8 -4
  136. package/dist/components/puck-core/core/styles.d.ts +1 -1
  137. package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
  138. package/dist/components/{puck-base → puck-core}/core/with-editable.js +1 -1
  139. package/dist/components/puck-core/fields/action-field.js +1 -1
  140. package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +4 -4
  141. package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
  142. package/dist/components/puck-core/index.d.ts +1 -0
  143. package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
  144. package/dist/index.js +121 -104
  145. package/package.json +1 -1
  146. package/dist/components/puck-base/core/fields.d.ts +0 -827
  147. package/dist/components/puck-base/core/fields.js +0 -267
  148. package/dist/components/puck-base/core/hooks.d.ts +0 -19
  149. package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
  150. package/dist/components/puck-base/core/icon-catalog.js +0 -193
  151. package/dist/components/puck-base/core/styles.d.ts +0 -1942
  152. package/dist/components/puck-base/core/types.d.ts +0 -20
  153. package/dist/components/puck-base/core/types.js +0 -26
  154. package/dist/components/puck-base/core/utils.d.ts +0 -5
  155. package/dist/components/puck-base/core/with-editable.d.ts +0 -16
  156. package/dist/components/puck-base/error-boundary.d.ts +0 -4
  157. package/dist/components/puck-base/fields/action-field.d.ts +0 -30
  158. package/dist/components/puck-base/fields/action-field.js +0 -265
  159. package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
  160. package/dist/components/puck-base/fields/color-field.d.ts +0 -6
  161. package/dist/components/puck-base/fields/index.d.ts +0 -8
  162. package/dist/components/puck-base/fields/location-field.d.ts +0 -44
  163. package/dist/components/puck-base/fields/object-field.d.ts +0 -8
  164. package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
  165. package/dist/components/puck-base/fields/types.d.ts +0 -29
  166. package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
  167. package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
  168. package/dist/components/puck-base/icon-picker-field.js +0 -153
  169. package/dist/components/puck-base/image-upload-field.d.ts +0 -7
  170. package/dist/components/puck-base/inline-editable.d.ts +0 -14
  171. package/dist/components/puck-base/use-upload.d.ts +0 -42
  172. /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
  173. /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
  174. /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
  175. /package/dist/components/{puck-base → puck-core}/fields/auto-field.js +0 -0
  176. /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
  177. /package/dist/components/{puck-base → puck-core}/fields/object-field.js +0 -0
  178. /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
  179. /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
  180. /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
@@ -36,28 +36,6 @@ declare const conf: {
36
36
  type: string;
37
37
  label: string;
38
38
  objectFields: {
39
- className: {
40
- readonly type: "text";
41
- readonly label: "Class Name";
42
- readonly ai: {
43
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
44
- };
45
- };
46
- style: {
47
- readonly type: "object";
48
- readonly label: "Style";
49
- readonly objectFields: {};
50
- readonly ai: {
51
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
52
- };
53
- };
54
- css: {
55
- readonly type: "textarea";
56
- readonly label: "Custom CSS";
57
- readonly ai: {
58
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
59
- };
60
- };
61
39
  heading: {
62
40
  readonly type: "text";
63
41
  readonly contentEditable: true;
@@ -75,7 +53,7 @@ declare const conf: {
75
53
  readonly action: {
76
54
  type: "custom";
77
55
  label: string;
78
- render: typeof import("../../../puck-core").ActionField;
56
+ render: typeof import("../../..").ActionField;
79
57
  };
80
58
  readonly variant: {
81
59
  readonly type: "select";
@@ -23,8 +23,7 @@ const conf = {
23
23
  objectFields: {
24
24
  heading: headingField,
25
25
  description: descriptionField,
26
- button: buttonField,
27
- ...sectionWrapperFields
26
+ button: buttonField
28
27
  }
29
28
  },
30
29
  styles: {
@@ -36,28 +36,6 @@ declare const conf: {
36
36
  type: string;
37
37
  label: string;
38
38
  objectFields: {
39
- className: {
40
- readonly type: "text";
41
- readonly label: "Class Name";
42
- readonly ai: {
43
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
44
- };
45
- };
46
- style: {
47
- readonly type: "object";
48
- readonly label: "Style";
49
- readonly objectFields: {};
50
- readonly ai: {
51
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
52
- };
53
- };
54
- css: {
55
- readonly type: "textarea";
56
- readonly label: "Custom CSS";
57
- readonly ai: {
58
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
59
- };
60
- };
61
39
  heading: {
62
40
  readonly type: "text";
63
41
  readonly contentEditable: true;
@@ -75,7 +53,7 @@ declare const conf: {
75
53
  readonly action: {
76
54
  type: "custom";
77
55
  label: string;
78
- render: typeof import("../../../puck-core").ActionField;
56
+ render: typeof import("../../..").ActionField;
79
57
  };
80
58
  readonly variant: {
81
59
  readonly type: "select";
@@ -23,8 +23,7 @@ const conf = {
23
23
  objectFields: {
24
24
  heading: headingField,
25
25
  description: descriptionField,
26
- button: buttonField,
27
- ...sectionWrapperFields
26
+ button: buttonField
28
27
  }
29
28
  },
30
29
  styles: {
@@ -36,28 +36,6 @@ declare const conf: {
36
36
  type: string;
37
37
  label: string;
38
38
  objectFields: {
39
- className: {
40
- readonly type: "text";
41
- readonly label: "Class Name";
42
- readonly ai: {
43
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
44
- };
45
- };
46
- style: {
47
- readonly type: "object";
48
- readonly label: "Style";
49
- readonly objectFields: {};
50
- readonly ai: {
51
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
52
- };
53
- };
54
- css: {
55
- readonly type: "textarea";
56
- readonly label: "Custom CSS";
57
- readonly ai: {
58
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
59
- };
60
- };
61
39
  heading: {
62
40
  readonly type: "text";
63
41
  readonly contentEditable: true;
@@ -75,7 +53,7 @@ declare const conf: {
75
53
  readonly action: {
76
54
  type: "custom";
77
55
  label: string;
78
- render: typeof import("../../../puck-core").ActionField;
56
+ render: typeof import("../../..").ActionField;
79
57
  };
80
58
  readonly variant: {
81
59
  readonly type: "select";
@@ -23,8 +23,7 @@ const conf = {
23
23
  objectFields: {
24
24
  heading: headingField,
25
25
  description: descriptionField,
26
- button: buttonField,
27
- ...sectionWrapperFields
26
+ button: buttonField
28
27
  }
29
28
  },
30
29
  styles: {
@@ -24,7 +24,7 @@ declare const conf: {
24
24
  readonly action: {
25
25
  type: "custom";
26
26
  label: string;
27
- render: typeof import("../../../puck-core").ActionField;
27
+ render: typeof import("../../..").ActionField;
28
28
  };
29
29
  readonly variant: {
30
30
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -9,28 +9,6 @@ declare const conf: {
9
9
  label: string;
10
10
  objectFields: {
11
11
  title: {
12
- className: {
13
- readonly type: "text";
14
- readonly label: "Class Name";
15
- readonly ai: {
16
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
17
- };
18
- };
19
- style: {
20
- readonly type: "object";
21
- readonly label: "Style";
22
- readonly objectFields: {};
23
- readonly ai: {
24
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
25
- };
26
- };
27
- css: {
28
- readonly type: "textarea";
29
- readonly label: "Custom CSS";
30
- readonly ai: {
31
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
32
- };
33
- };
34
12
  type: string;
35
13
  };
36
14
  links: {
@@ -7,7 +7,7 @@ const conf = {
7
7
  type: "object",
8
8
  label: "Aside Navigation",
9
9
  objectFields: {
10
- title: { type: "text", ...sectionWrapperFields },
10
+ title: { type: "text" },
11
11
  links: {
12
12
  type: "array",
13
13
  getItemSummary: (item, index = 0) => item.title || `Link ${index + 1}`,
@@ -43,28 +43,6 @@ declare const conf: {
43
43
  label: string;
44
44
  objectFields: {
45
45
  name: {
46
- className: {
47
- readonly type: "text";
48
- readonly label: "Class Name";
49
- readonly ai: {
50
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
51
- };
52
- };
53
- style: {
54
- readonly type: "object";
55
- readonly label: "Style";
56
- readonly objectFields: {};
57
- readonly ai: {
58
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
59
- };
60
- };
61
- css: {
62
- readonly type: "textarea";
63
- readonly label: "Custom CSS";
64
- readonly ai: {
65
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
66
- };
67
- };
68
46
  type: string;
69
47
  };
70
48
  titleAndCompany: {
@@ -26,7 +26,7 @@ const conf = {
26
26
  type: "object",
27
27
  label: "Author",
28
28
  objectFields: {
29
- name: { type: "text", ...sectionWrapperFields },
29
+ name: { type: "text" },
30
30
  titleAndCompany: { type: "text" },
31
31
  avatar: imageField
32
32
  }
@@ -12,28 +12,6 @@ declare const conf: {
12
12
  label: string;
13
13
  objectFields: {
14
14
  title: {
15
- className: {
16
- readonly type: "text";
17
- readonly label: "Class Name";
18
- readonly ai: {
19
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
20
- };
21
- };
22
- style: {
23
- readonly type: "object";
24
- readonly label: "Style";
25
- readonly objectFields: {};
26
- readonly ai: {
27
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
28
- };
29
- };
30
- css: {
31
- readonly type: "textarea";
32
- readonly label: "Custom CSS";
33
- readonly ai: {
34
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
35
- };
36
- };
37
15
  type: string;
38
16
  };
39
17
  description: {
@@ -51,7 +29,7 @@ declare const conf: {
51
29
  readonly action: {
52
30
  type: "custom";
53
31
  label: string;
54
- render: typeof import("../../../puck-core").ActionField;
32
+ render: typeof import("../../..").ActionField;
55
33
  };
56
34
  readonly variant: {
57
35
  readonly type: "select";
@@ -28,7 +28,7 @@ declare const conf: {
28
28
  readonly action: {
29
29
  type: "custom";
30
30
  label: string;
31
- render: typeof import("../../../puck-core").ActionField;
31
+ render: typeof import("../../..").ActionField;
32
32
  };
33
33
  readonly variant: {
34
34
  readonly type: "select";
@@ -106,7 +106,7 @@ declare const conf: {
106
106
  readonly action: {
107
107
  type: "custom";
108
108
  label: string;
109
- render: typeof import("../../../puck-core").ActionField;
109
+ render: typeof import("../../..").ActionField;
110
110
  };
111
111
  readonly variant: {
112
112
  readonly type: "select";
@@ -1,4 +1,4 @@
1
- import "./interactive.js";
1
+ import { buttonField, iconField, buttonDefaults } from "./interactive.js";
2
2
  const headingField = {
3
3
  type: "text",
4
4
  contentEditable: true
@@ -7,7 +7,47 @@ const descriptionField = {
7
7
  type: "textarea",
8
8
  contentEditable: true
9
9
  };
10
+ const featuresField = {
11
+ type: "array",
12
+ max: 5,
13
+ getItemSummary: (item, index = 0) => item.name || `Feature ${index + 1}`,
14
+ arrayFields: {
15
+ icon: iconField,
16
+ name: { type: "text", contentEditable: true },
17
+ description: { type: "textarea", contentEditable: true }
18
+ },
19
+ defaultItemProps: {
20
+ icon: "check",
21
+ name: "Feature name",
22
+ description: "Description of the feature"
23
+ }
24
+ };
25
+ const cardField = {
26
+ type: "object",
27
+ objectFields: {
28
+ icon: iconField,
29
+ heading: headingField,
30
+ description: descriptionField,
31
+ button: buttonField
32
+ }
33
+ };
34
+ const cardsField = {
35
+ type: "array",
36
+ getItemSummary: (item, index = 0) => item.heading || `Card ${index + 1}`,
37
+ arrayFields: {
38
+ ...cardField.objectFields
39
+ },
40
+ defaultItemProps: {
41
+ icon: "activity",
42
+ heading: "Heading",
43
+ description: "Description",
44
+ button: buttonDefaults
45
+ }
46
+ };
10
47
  export {
48
+ cardField,
49
+ cardsField,
11
50
  descriptionField,
51
+ featuresField,
12
52
  headingField
13
53
  };
@@ -0,0 +1,76 @@
1
+ import { buttonField } from "./interactive.js";
2
+ const fieldTypes = [
3
+ "text",
4
+ "number",
5
+ "password",
6
+ "date",
7
+ "file"
8
+ ];
9
+ const formMethods = ["get", "post", "put", "patch", "delete"];
10
+ const formFieldField = {
11
+ type: "object",
12
+ objectFields: {
13
+ label: { type: "text", contentEditable: true },
14
+ name: { type: "text" },
15
+ type: {
16
+ type: "select",
17
+ options: fieldTypes.map((f) => ({ label: f, value: f }))
18
+ }
19
+ }
20
+ };
21
+ const formFieldDefaults = {
22
+ label: "Field Label",
23
+ type: "text",
24
+ name: "field_name"
25
+ };
26
+ const { action: _buttonAction, ...formButtonConfig } = buttonField.objectFields;
27
+ const formField = {
28
+ type: "object",
29
+ objectFields: {
30
+ title: { type: "text", contentEditable: true },
31
+ fields: {
32
+ type: "array",
33
+ min: 1,
34
+ max: 10,
35
+ arrayFields: { ...formFieldField.objectFields },
36
+ getItemSummary: (item, index = 0) => item.label || `Field ${index + 1}`,
37
+ defaultItemProps: formFieldDefaults
38
+ },
39
+ action: { type: "text", label: "submit url" },
40
+ method: {
41
+ type: "select",
42
+ label: "submit method",
43
+ options: formMethods.map((method) => ({ label: method, value: method }))
44
+ },
45
+ button: {
46
+ ...buttonField,
47
+ objectFields: {
48
+ ...formButtonConfig
49
+ }
50
+ }
51
+ }
52
+ };
53
+ const formDefaults = {
54
+ title: "Book a meeting",
55
+ fields: [
56
+ { label: "First name", type: "text", name: "first_name" },
57
+ { label: "Last name", type: "text", name: "last_name" },
58
+ { label: "Resume", type: "file", name: "resume" }
59
+ ],
60
+ action: "/submit-form",
61
+ method: "post",
62
+ button: {
63
+ label: "Book the meeting",
64
+ variant: "default",
65
+ size: "default",
66
+ icon: "move-right"
67
+ }
68
+ };
69
+ export {
70
+ fieldTypes,
71
+ formDefaults,
72
+ formField,
73
+ formFieldDefaults,
74
+ formFieldField,
75
+ formMethods
76
+ };
@@ -0,0 +1,34 @@
1
+ import { buttonsField, badgeField } from "./interactive.js";
2
+ import { actionDefaults, actionField, buttonDefaults, buttonField, iconField, resolveActionUrl } from "./interactive.js";
3
+ import { descriptionField, headingField, featuresField } from "./content.js";
4
+ import { cardField, cardsField } from "./content.js";
5
+ const contentFields = {
6
+ heading: headingField,
7
+ description: descriptionField,
8
+ badge: badgeField,
9
+ buttons: buttonsField
10
+ };
11
+ const contentFieldsWithFeatures = {
12
+ heading: headingField,
13
+ description: descriptionField,
14
+ badge: badgeField,
15
+ features: featuresField,
16
+ buttons: buttonsField
17
+ };
18
+ export {
19
+ actionDefaults,
20
+ actionField,
21
+ badgeField,
22
+ buttonDefaults,
23
+ buttonField,
24
+ buttonsField,
25
+ cardField,
26
+ cardsField,
27
+ contentFields,
28
+ contentFieldsWithFeatures,
29
+ descriptionField,
30
+ featuresField,
31
+ headingField,
32
+ iconField,
33
+ resolveActionUrl
34
+ };
@@ -90,9 +90,26 @@ const buttonsField = {
90
90
  instructions: "Buttons must use the same size"
91
91
  }
92
92
  };
93
+ const badgeField = {
94
+ type: "object",
95
+ objectFields: {
96
+ label: { type: "text" },
97
+ url: { type: "text" },
98
+ variant: {
99
+ type: "select",
100
+ options: [
101
+ { label: "default", value: "default" },
102
+ { label: "secondary", value: "secondary" },
103
+ { label: "destructive", value: "destructive" },
104
+ { label: "outline", value: "outline" }
105
+ ]
106
+ }
107
+ }
108
+ };
93
109
  export {
94
110
  actionDefaults,
95
111
  actionField,
112
+ badgeField,
96
113
  buttonDefaults,
97
114
  buttonField,
98
115
  buttonsField,
@@ -13,12 +13,14 @@ const image16x9Placeholder = {
13
13
  alt: "16/9 aspect ratio accessible description of the image",
14
14
  src: getPlaceholderImageUrl("1920x1080")
15
15
  };
16
- ({
16
+ const image1x1Placeholder = {
17
+ alt: "1/1 aspect ratio An accessible description of the image",
17
18
  src: getPlaceholderImageUrl("1000x1000")
18
- });
19
- ({
19
+ };
20
+ const image9x16Placeholder = {
21
+ alt: "9/16 accessible description of the image",
20
22
  src: getPlaceholderImageUrl("1080x1920")
21
- });
23
+ };
22
24
  const imagesField = {
23
25
  type: "array",
24
26
  max: 10,
@@ -36,6 +38,8 @@ const imagesField = {
36
38
  export {
37
39
  getPlaceholderImageUrl,
38
40
  image16x9Placeholder,
41
+ image1x1Placeholder,
42
+ image9x16Placeholder,
39
43
  imageField,
40
44
  imagesField
41
45
  };
@@ -15,7 +15,7 @@
15
15
  * 4. 工厂函数 — createStylesField / createStylesDefaults
16
16
  * 5. 各分类预设 — Banner / Hero / CTA … 每类导出 Interface + Field + Defaults 三件套
17
17
  */
18
- import type { SectionStyle, OverlayStyle } from "../../puck-base/container";
18
+ import type { SectionStyle, OverlayStyle } from "@/components/puck-base/container";
19
19
  export type PaddingLevel = "none" | "small" | "medium" | "large";
20
20
  export type { SectionStyle, OverlayStyle };
21
21
  /** 所有 section 通用的基础样式 */
@@ -1,3 +1,4 @@
1
+ import { sectionWrapperFields } from "../section-wrapper.js";
1
2
  const paddingLevel = {
2
3
  type: "select",
3
4
  options: [
@@ -72,7 +73,8 @@ function createStylesField(extraFields) {
72
73
  label: "Styles",
73
74
  objectFields: {
74
75
  ...sectionBaseStyleFields,
75
- ...extraFields
76
+ ...extraFields,
77
+ ...sectionWrapperFields
76
78
  }
77
79
  };
78
80
  }
@@ -4,7 +4,7 @@ import { useRef, useEffect, useCallback } from "react";
4
4
  import { registerOverlayPortal } from "@puckeditor/core";
5
5
  import { usePuckDispatch, usePuckAppState } from "./hooks.js";
6
6
  import { Pencil } from "lucide-react";
7
- import { useEditorContext } from "../../puck-core/core/context/editor-context.js";
7
+ import { useEditorContext } from "./context/editor-context.js";
8
8
  import set from "../../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/set.js";
9
9
  const BLOCK_LEVEL_TYPES = /* @__PURE__ */ new Set(["image"]);
10
10
  function getComponentIdFromDOM(el) {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
3
- import { useCallback, memo } from "react";
3
+ import { memo, useCallback } from "react";
4
4
  import { Input } from "../../shadcn/input.js";
5
5
  import { Label } from "../../shadcn/label.js";
6
6
  import { Tabs, TabsList, TabsTrigger } from "../../shadcn/tabs.js";
@@ -2,10 +2,10 @@
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { useState, useCallback } from "react";
4
4
  import { X, Loader2, UploadCloud, ImageIcon } from "lucide-react";
5
- import { cn } from "../../utils/css-utils.js";
6
- import { Button } from "../shadcn/button.js";
7
- import { Input } from "../shadcn/input.js";
8
- import useUpload from "./use-upload.js";
5
+ import { cn } from "../../../utils/css-utils.js";
6
+ import { Button } from "../../shadcn/button.js";
7
+ import { Input } from "../../shadcn/input.js";
8
+ import useUpload from "../use-upload.js";
9
9
  function ImageUploadField({
10
10
  name,
11
11
  value,
@@ -4,7 +4,7 @@ import { memo, useState, useRef, useEffect, useCallback } from "react";
4
4
  import { Input } from "../../shadcn/input.js";
5
5
  import { Label } from "../../shadcn/label.js";
6
6
  import { Loader2, Search, X, MapPin } from "lucide-react";
7
- import { useEditorContext } from "../../puck-core/core/context/editor-context.js";
7
+ import { useEditorContext } from "../core/context/editor-context.js";
8
8
  let googleLoadPromise = null;
9
9
  function loadGooglePlaces(apiKey) {
10
10
  var _a, _b;
@@ -8,5 +8,6 @@ export { InlineEditable } from "./inline-editable";
8
8
  export { usePuckDispatch, usePuckAppState, usePuckHistory, usePuckConfig, usePuckGetSelectorForId, type PuckComponentInfo, } from "./core/hooks";
9
9
  export { SectionWrapper, type SectionWrapperProps } from "./section-wrapper";
10
10
  export { EditorContextProvider, useEditorContext } from "./core/context/editor-context";
11
+ export { SectionIdProvider, useSectionId } from "./core/context/section-id-context";
11
12
  export { default as useUpload, type UploadFileItem, type UploadStatus, type UseUploadOptions } from "./use-upload";
12
13
  export { icon, action, actionDefaults, button, buttons, badge, image, images, padding, paddingDefaults, paddingLevel, heading, description, features, contentFields, contentFieldsWithFeatures, card, cards, field, fieldDefaults, form, formDefaults, getPlaceholderImageUrl, image16x9Placeholder, image1x1Placeholder, image9x16Placeholder, sectionStyle, sectionOverlay, backgroundColor, backgroundImage, } from "./core/fields";
@@ -2,7 +2,7 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { createElement, useRef, useEffect, useCallback } from "react";
4
4
  import { registerOverlayPortal } from "@puckeditor/core";
5
- import { useEditorContext } from "../puck-core/core/context/editor-context.js";
5
+ import { useEditorContext } from "./core/context/editor-context.js";
6
6
  import { usePuckDispatch } from "./core/hooks.js";
7
7
  import set from "../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/set.js";
8
8
  import { findComponentById } from "./core/utils.js";