dune-react 0.0.20 → 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.
- package/dist/components/index.d.ts +1 -0
- package/dist/components/puck-base/button.d.ts +1 -1
- package/dist/components/puck-base/button.js +5 -6
- package/dist/components/puck-base/card.d.ts +1 -1
- package/dist/components/puck-base/container.js +1 -1
- package/dist/components/puck-base/content.d.ts +1 -1
- package/dist/components/puck-base/form.js +1 -1
- package/dist/components/puck-base/image.js +17 -17
- package/dist/components/puck-base/index.d.ts +1 -12
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +9 -4
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.d.ts +22 -0
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.js +3 -1
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +25 -3
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +16 -4
- package/dist/components/puck-block/banner-sections/props.d.ts +3 -0
- package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +13 -2
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +15 -4
- package/dist/components/puck-block/contact-sections/centered-form/centered-form.js +3 -13
- package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/centered-form/index.js +3 -1
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +5 -1
- package/dist/components/puck-block/contact-sections/contact-cards-grid/index.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/contact-cards-grid/index.js +3 -1
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +5 -23
- package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/contact-modal/index.js +3 -1
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +3 -13
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.js +3 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +4 -13
- package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/index.js +3 -1
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +4 -2
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.js +3 -1
- package/dist/components/puck-block/contact-sections/info-cards-media/index.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/info-cards-media/index.js +3 -1
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +4 -2
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.js +3 -1
- package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.js +5 -1
- package/dist/components/puck-block/contact-sections/props.d.ts +3 -0
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/split-info-form/index.js +3 -1
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +4 -13
- package/dist/components/puck-block/contact-sections/tab-locations/index.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/tab-locations/index.js +3 -1
- package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +4 -2
- package/dist/components/puck-block/contact-sections/use-contact-form.js +1 -1
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.js +3 -2
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +23 -1
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +3 -1
- package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +23 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.js +3 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +89 -59
- package/dist/components/puck-block/cta-sections/props.d.ts +3 -1
- package/dist/components/puck-block/cta-sections/props.js +46 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +35 -77
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +24 -83
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/dual-column-accordion-faq.js +3 -2
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +23 -1
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.js +3 -1
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.js +6 -2
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/props.d.ts +3 -0
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +23 -1
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.js +3 -1
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/stacked-accordion-faq.js +5 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +23 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/index.js +3 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/stacked-static-faq.js +5 -1
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +23 -1
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.js +3 -1
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/two-column-accordion-faq.js +3 -2
- package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/two-column-static-faq/two-column-static-faq.js +6 -2
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +5 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +24 -2
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.js +3 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +5 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +24 -2
- package/dist/components/puck-block/feature-sections/feature-list-split/index.js +3 -1
- package/dist/components/puck-block/feature-sections/props.d.ts +3 -0
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +78 -60
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +5 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +23 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.js +3 -1
- package/dist/components/puck-block/feature-sections/text-only-section/component.js +8 -3
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +23 -1
- package/dist/components/puck-block/feature-sections/text-only-section/index.js +3 -1
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +5 -2
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +3 -2
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +22 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +2 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +3 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +2 -1
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/props.d.ts +3 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/asymmetric-grid.js +3 -2
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +16 -6
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +23 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.js +6 -2
- package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/image-carousel/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +4 -3
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +3 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +24 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +5 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +24 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +71 -66
- package/dist/components/puck-block/gallery-sections/props.d.ts +3 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +9 -3
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +26 -10
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/split-carousel/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.js +3 -2
- package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/static-grid/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/static-grid/static-grid.js +3 -2
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +5 -2
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +120 -16
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +163 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +23 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +2 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +144 -18
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +23 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +2 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +23 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +2 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +5 -2
- package/dist/components/puck-block/header-sections/props.d.ts +3 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +23 -1
- package/dist/components/puck-block/header-sections/standard-navbar/index.js +2 -1
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +5 -2
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +54 -10
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +24 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +6 -3
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +5 -2
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +37 -7
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +19 -7
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +14 -6
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +12 -4
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.js +3 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +8 -4
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.js +3 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/inline-image-hero.js +4 -2
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +37 -7
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +9 -5
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +6 -4
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.js +3 -1
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +6 -4
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +10 -3
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/props.d.ts +3 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +12 -4
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +16 -7
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +14 -6
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +98 -42
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +36 -6
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.js +5 -3
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +37 -7
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +37 -7
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +15 -5
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +37 -14
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +36 -6
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.js +5 -3
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +6 -3
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -0
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +6 -0
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +102 -44
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.js +3 -1
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +32 -5
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +12 -4
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/index.d.ts +2 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +4 -1
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +4 -1
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +5 -2
- package/dist/components/puck-block/location-sections/props.d.ts +4 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +5 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.d.ts +22 -0
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +5 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +23 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +23 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +5 -1
- package/dist/components/puck-block/metrics-sections/props.d.ts +3 -0
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +23 -1
- package/dist/components/puck-block/metrics-sections/split-stats/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +5 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +22 -0
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +38 -23
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/component.js +4 -2
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/index.d.ts +22 -0
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/index.js +3 -1
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +5 -1
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +22 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +3 -1
- package/dist/components/puck-block/pricing-sections/props.d.ts +3 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.js +4 -2
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +22 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +3 -1
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +5 -2
- package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -0
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.js +4 -2
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/index.d.ts +22 -0
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/index.js +3 -1
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.js +5 -2
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/index.d.ts +22 -0
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/index.js +3 -1
- package/dist/components/puck-block/registry.generated.d.ts +13141 -0
- package/dist/components/puck-block/registry.generated.js +558 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.js +5 -1
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +23 -1
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.js +3 -1
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.js +6 -1
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +23 -1
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.js +3 -1
- package/dist/components/puck-block/showcase-sections/props.d.ts +3 -0
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +8 -1
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +24 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.js +3 -1
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +8 -1
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +24 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.js +3 -1
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.d.ts +1 -3
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +5 -1
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +24 -4
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +3 -1
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +8 -1
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +24 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.js +3 -1
- package/dist/components/puck-block/team-sections/props.d.ts +3 -0
- package/dist/components/puck-block/team-sections/team-carousel/component.js +8 -2
- package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +23 -1
- package/dist/components/puck-block/team-sections/team-carousel/index.js +3 -1
- package/dist/components/puck-block/team-sections/team-grid/component.js +6 -1
- package/dist/components/puck-block/team-sections/team-grid/index.d.ts +23 -1
- package/dist/components/puck-block/team-sections/team-grid/index.js +3 -1
- package/dist/components/puck-block/team-sections/team-inline-card/component.js +10 -2
- package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +23 -1
- package/dist/components/puck-block/team-sections/team-inline-card/index.js +3 -1
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.js +9 -2
- package/dist/components/puck-block/team-sections/team-sticky-scatter/index.d.ts +22 -0
- package/dist/components/puck-block/team-sections/team-sticky-scatter/index.js +3 -1
- package/dist/components/puck-block/team-sections/team-two-column/component.js +6 -1
- package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +23 -1
- package/dist/components/puck-block/team-sections/team-two-column/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +5 -1
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +6 -1
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.js +5 -1
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +14 -6
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.d.ts +35 -5
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.js +5 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +8 -2
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.js +9 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.js +9 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/props.d.ts +3 -1
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.js +9 -2
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +23 -1
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +9 -2
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +6 -1
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +5 -1
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.js +3 -1
- package/dist/components/puck-block/text-sections/aside-nav-content/component.js +5 -1
- package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +22 -0
- package/dist/components/puck-block/text-sections/aside-nav-content/index.js +3 -1
- package/dist/components/puck-block/text-sections/blog-article/component.js +6 -1
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +22 -0
- package/dist/components/puck-block/text-sections/blog-article/index.js +3 -1
- package/dist/components/puck-block/text-sections/props.d.ts +3 -0
- package/dist/components/puck-block/text-sections/prose-content/component.js +5 -1
- package/dist/components/puck-block/text-sections/prose-content/index.d.ts +22 -0
- package/dist/components/puck-block/text-sections/prose-content/index.js +3 -1
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +23 -1
- package/dist/components/puck-block/text-sections/side-media-content/component.js +5 -1
- package/dist/components/puck-block/text-sections/side-media-content/index.d.ts +22 -0
- package/dist/components/puck-block/text-sections/side-media-content/index.js +3 -1
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +6 -1
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.d.ts +22 -0
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.js +3 -1
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +24 -2
- package/dist/components/puck-core/core/context/section-id-context.d.ts +6 -0
- package/dist/components/puck-core/core/context/section-id-context.js +12 -0
- package/dist/components/puck-core/core/props/content.js +41 -1
- package/dist/components/puck-core/core/props/form.js +76 -0
- package/dist/components/puck-core/core/props/index.js +34 -0
- package/dist/components/puck-core/core/props/interactive.js +17 -0
- package/dist/components/puck-core/core/props/media.js +8 -4
- package/dist/components/puck-core/core/styles.d.ts +375 -1
- package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
- package/dist/components/{puck-base → puck-core}/core/with-editable.js +13 -2
- package/dist/components/puck-core/fields/action-field.js +2 -2
- package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +4 -4
- package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
- package/dist/components/puck-core/index.d.ts +3 -1
- package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
- package/dist/components/puck-core/section-wrapper.d.ts +27 -13
- package/dist/components/puck-core/section-wrapper.js +48 -0
- package/dist/hooks/use-scroll-container.d.ts +18 -0
- package/dist/hooks/use-scroll-container.js +25 -0
- package/dist/index.js +125 -105
- package/package.json +1 -1
- package/dist/components/puck-base/core/fields.d.ts +0 -827
- package/dist/components/puck-base/core/fields.js +0 -267
- package/dist/components/puck-base/core/hooks.d.ts +0 -19
- package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
- package/dist/components/puck-base/core/icon-catalog.js +0 -193
- package/dist/components/puck-base/core/styles.d.ts +0 -1942
- package/dist/components/puck-base/core/types.d.ts +0 -20
- package/dist/components/puck-base/core/types.js +0 -26
- package/dist/components/puck-base/core/utils.d.ts +0 -5
- package/dist/components/puck-base/core/with-editable.d.ts +0 -16
- package/dist/components/puck-base/error-boundary.d.ts +0 -4
- package/dist/components/puck-base/fields/action-field.d.ts +0 -30
- package/dist/components/puck-base/fields/action-field.js +0 -265
- package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
- package/dist/components/puck-base/fields/color-field.d.ts +0 -6
- package/dist/components/puck-base/fields/index.d.ts +0 -8
- package/dist/components/puck-base/fields/location-field.d.ts +0 -44
- package/dist/components/puck-base/fields/object-field.d.ts +0 -8
- package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
- package/dist/components/puck-base/fields/types.d.ts +0 -29
- package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
- package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
- package/dist/components/puck-base/icon-picker-field.js +0 -153
- package/dist/components/puck-base/image-upload-field.d.ts +0 -7
- package/dist/components/puck-base/inline-editable.d.ts +0 -14
- package/dist/components/puck-base/use-upload.d.ts +0 -42
- package/dist/components/puck-core/editor-context.d.ts +0 -25
- package/dist/components/puck-core/editor-context.js +0 -15
- /package/dist/components/{puck-base → puck-core/core/context}/editor-context.d.ts +0 -0
- /package/dist/components/{puck-base → puck-core/core/context}/editor-context.js +0 -0
- /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
- /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
- /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/auto-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/object-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { cn } from "../../utils/css-utils.js";
|
|
4
|
+
import { useSectionId } from "./core/context/section-id-context.js";
|
|
5
|
+
const sectionWrapperFields = {
|
|
6
|
+
className: {
|
|
7
|
+
type: "text",
|
|
8
|
+
label: "Class Name",
|
|
9
|
+
ai: {
|
|
10
|
+
instructions: "Additional Tailwind CSS classes to apply to the section wrapper."
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
style: {
|
|
14
|
+
type: "object",
|
|
15
|
+
label: "Style",
|
|
16
|
+
objectFields: {},
|
|
17
|
+
ai: {
|
|
18
|
+
instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }."
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
css: {
|
|
22
|
+
type: "textarea",
|
|
23
|
+
label: "Custom CSS",
|
|
24
|
+
ai: {
|
|
25
|
+
instructions: "Custom CSS rules. Use & as a placeholder for the section selector."
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const SectionWrapper = forwardRef(
|
|
30
|
+
function SectionWrapper2({ className, style, css, children, ...rest }, ref) {
|
|
31
|
+
const sectionId = useSectionId();
|
|
32
|
+
return /* @__PURE__ */ jsxs("section", { ref, id: sectionId ?? void 0, className: cn("relative", className), style, ...rest, children: [
|
|
33
|
+
css && sectionId && /* @__PURE__ */ jsx(
|
|
34
|
+
"style",
|
|
35
|
+
{
|
|
36
|
+
dangerouslySetInnerHTML: {
|
|
37
|
+
__html: css.replaceAll("&", `#${sectionId}`)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
children
|
|
42
|
+
] });
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
export {
|
|
46
|
+
SectionWrapper,
|
|
47
|
+
sectionWrapperFields
|
|
48
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* 自动查找目标元素最近的可滚动祖先,返回一个 ref 供 framer-motion useScroll 的 container 使用。
|
|
4
|
+
*
|
|
5
|
+
* 解决:在 Puck 编辑器 iframe 中,滚动发生在 iframe 内部容器(而非 window),
|
|
6
|
+
* useScroll({ target }) 默认找不到正确的滚动容器。
|
|
7
|
+
*
|
|
8
|
+
* @returns [containerRef, ready] — ready 为 true 时 containerRef 已就绪
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const targetRef = useRef(null);
|
|
12
|
+
* const [containerRef, ready] = useScrollContainer(targetRef);
|
|
13
|
+
* const { scrollYProgress } = useScroll({
|
|
14
|
+
* target: targetRef,
|
|
15
|
+
* container: containerRef,
|
|
16
|
+
* });
|
|
17
|
+
*/
|
|
18
|
+
export declare function useScrollContainer<T extends HTMLElement>(targetRef: RefObject<T | null>): [RefObject<HTMLElement | null>, boolean];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useRef, useState, useLayoutEffect } from "react";
|
|
2
|
+
function useScrollContainer(targetRef) {
|
|
3
|
+
const containerRef = useRef(null);
|
|
4
|
+
const [ready, setReady] = useState(false);
|
|
5
|
+
useLayoutEffect(() => {
|
|
6
|
+
const el = targetRef.current;
|
|
7
|
+
if (!el) return;
|
|
8
|
+
let ancestor = el.parentElement;
|
|
9
|
+
while (ancestor && ancestor !== document.documentElement) {
|
|
10
|
+
const { overflowY } = getComputedStyle(ancestor);
|
|
11
|
+
if (overflowY === "auto" || overflowY === "scroll") {
|
|
12
|
+
containerRef.current = ancestor;
|
|
13
|
+
setReady(true);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
ancestor = ancestor.parentElement;
|
|
17
|
+
}
|
|
18
|
+
containerRef.current = null;
|
|
19
|
+
setReady(true);
|
|
20
|
+
}, [targetRef]);
|
|
21
|
+
return [containerRef, ready];
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
useScrollContainer
|
|
25
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -67,52 +67,54 @@ import { default as default67 } from "./components/puck-block/banner-sections/sc
|
|
|
67
67
|
import { default as default68 } from "./components/puck-block/hero-sections/scroll-zoom-hero/index.js";
|
|
68
68
|
import { default as default69 } from "./components/shadcn/badge-promo.js";
|
|
69
69
|
import { default as default70 } from "./components/puck-block/text-sections/side-media-content/index.js";
|
|
70
|
-
import { default as default71 } from "./components/puck-block/
|
|
71
|
-
import { default as default72 } from "./components/puck-block/
|
|
72
|
-
import { default as default73 } from "./components/puck-block/
|
|
73
|
-
import { default as default74 } from "./components/puck-block/
|
|
74
|
-
import { default as default75 } from "./components/puck-block/
|
|
75
|
-
import { default as default76 } from "./components/puck-block/
|
|
76
|
-
import { default as default77 } from "./components/puck-block/
|
|
77
|
-
import { default as default78 } from "./components/puck-block/faq-sections/stacked-
|
|
78
|
-
import { default as default79 } from "./components/puck-block/
|
|
79
|
-
import { default as default80 } from "./components/puck-block/
|
|
80
|
-
import { default as default81 } from "./components/puck-block/
|
|
81
|
-
import { default as default82 } from "./components/puck-block/
|
|
82
|
-
import { default as default83 } from "./components/puck-block/
|
|
83
|
-
import { default as default84 } from "./components/puck-block/
|
|
84
|
-
import { default as default85 } from "./components/puck-block/
|
|
85
|
-
import { default as default86 } from "./components/puck-block/
|
|
86
|
-
import { default as default87 } from "./components/puck-block/
|
|
87
|
-
import { default as default88 } from "./components/puck-block/
|
|
88
|
-
import { default as default89 } from "./components/puck-block/
|
|
89
|
-
import { default as default90 } from "./components/puck-block/pricing-sections/tab-
|
|
90
|
-
import { default as default91 } from "./components/puck-block/
|
|
91
|
-
import { default as default92 } from "./components/puck-block/
|
|
92
|
-
import { default as default93 } from "./components/puck-block/
|
|
93
|
-
import { default as default94 } from "./components/puck-block/
|
|
94
|
-
import { default as default95 } from "./components/puck-block/team-sections/team-
|
|
95
|
-
import { default as default96 } from "./components/puck-block/team-sections/team-
|
|
96
|
-
import { default as default97 } from "./components/puck-block/team-sections/team-
|
|
97
|
-
import { default as default98 } from "./components/puck-block/team-sections/team-
|
|
98
|
-
import { default as default99 } from "./components/puck-block/
|
|
99
|
-
import { default as default100 } from "./components/puck-block/testimonial-sections/testimonial-
|
|
100
|
-
import { default as default101 } from "./components/puck-block/
|
|
101
|
-
import { default as default102 } from "./components/puck-block/
|
|
102
|
-
import { default as default103 } from "./components/puck-block/
|
|
103
|
-
import { default as default104 } from "./components/puck-block/
|
|
104
|
-
import { default as default105 } from "./components/puck-block/
|
|
105
|
-
import { default as default106 } from "./components/puck-block/
|
|
106
|
-
import { default as default107 } from "./components/puck-block/
|
|
107
|
-
import { default as default108 } from "./components/puck-block/hero-sections/
|
|
108
|
-
import { default as default109 } from "./components/puck-
|
|
109
|
-
import {
|
|
70
|
+
import { default as default71 } from "./components/puck-block/cta-sections/side-media-cta/index.js";
|
|
71
|
+
import { default as default72 } from "./components/puck-block/showcase-sections/single-column-timeline/index.js";
|
|
72
|
+
import { default as default73 } from "./components/puck-block/pricing-sections/single-pricing-card/index.js";
|
|
73
|
+
import { default as default74 } from "./components/puck-block/gallery-sections/split-carousel/index.js";
|
|
74
|
+
import { default as default75 } from "./components/puck-block/contact-sections/split-info-form/index.js";
|
|
75
|
+
import { default as default76 } from "./components/puck-block/pricing-sections/split-pricing/index.js";
|
|
76
|
+
import { default as default77 } from "./components/puck-block/metrics-sections/split-stats/index.js";
|
|
77
|
+
import { default as default78 } from "./components/puck-block/faq-sections/stacked-accordion-faq/index.js";
|
|
78
|
+
import { default as default79 } from "./components/puck-block/faq-sections/stacked-static-faq/index.js";
|
|
79
|
+
import { default as default80 } from "./components/puck-block/header-sections/standard-navbar/index.js";
|
|
80
|
+
import { default as default81 } from "./components/puck-block/gallery-sections/static-grid/index.js";
|
|
81
|
+
import { default as default82 } from "./components/puck-block/hero-sections/sticky-expand-hero/index.js";
|
|
82
|
+
import { default as default83 } from "./components/puck-block/showcase-sections/sticky-scroll-timeline/index.js";
|
|
83
|
+
import { default as default84 } from "./components/puck-block/testimonial-sections/sticky-testimonial/index.js";
|
|
84
|
+
import { default as default85 } from "./components/puck-block/text-sections/sticky-text-multi-image/index.js";
|
|
85
|
+
import { default as default86 } from "./components/puck-block/hero-sections/sticky-video-hero/index.js";
|
|
86
|
+
import { default as default87 } from "./components/puck-block/feature-sections/tab-feature/index.js";
|
|
87
|
+
import { default as default88 } from "./components/puck-block/hero-sections/tab-hero/index.js";
|
|
88
|
+
import { default as default89 } from "./components/puck-block/contact-sections/tab-locations/index.js";
|
|
89
|
+
import { default as default90 } from "./components/puck-block/pricing-sections/tab-pricing-grid/index.js";
|
|
90
|
+
import { default as default91 } from "./components/puck-block/pricing-sections/tab-single-pricing/index.js";
|
|
91
|
+
import { default as default92 } from "./components/puck-block/metrics-sections/tab-stats/index.js";
|
|
92
|
+
import { default as default93 } from "./components/puck-block/testimonial-sections/tab-testimonial/index.js";
|
|
93
|
+
import { default as default94 } from "./components/puck-block/showcase-sections/tab-timeline/index.js";
|
|
94
|
+
import { default as default95 } from "./components/puck-block/team-sections/team-carousel/index.js";
|
|
95
|
+
import { default as default96 } from "./components/puck-block/team-sections/team-grid/index.js";
|
|
96
|
+
import { default as default97 } from "./components/puck-block/team-sections/team-inline-card/index.js";
|
|
97
|
+
import { default as default98 } from "./components/puck-block/team-sections/team-sticky-scatter/index.js";
|
|
98
|
+
import { default as default99 } from "./components/puck-block/team-sections/team-two-column/index.js";
|
|
99
|
+
import { default as default100 } from "./components/puck-block/testimonial-sections/testimonial-card-grid/index.js";
|
|
100
|
+
import { default as default101 } from "./components/puck-block/testimonial-sections/testimonial-carousel/index.js";
|
|
101
|
+
import { default as default102 } from "./components/puck-block/cta-sections/text-block-cta/index.js";
|
|
102
|
+
import { default as default103 } from "./components/puck-block/feature-sections/text-media-split/index.js";
|
|
103
|
+
import { default as default104 } from "./components/puck-block/feature-sections/text-only-section/index.js";
|
|
104
|
+
import { default as default105 } from "./components/puck-block/hero-sections/three-image-parallax-hero/index.js";
|
|
105
|
+
import { default as default106 } from "./components/puck-block/faq-sections/two-column-accordion-faq/index.js";
|
|
106
|
+
import { default as default107 } from "./components/puck-block/faq-sections/two-column-static-faq/index.js";
|
|
107
|
+
import { default as default108 } from "./components/puck-block/hero-sections/vertical-gallery-hero/index.js";
|
|
108
|
+
import { default as default109 } from "./components/puck-block/showcase-sections/zigzag-timeline/index.js";
|
|
109
|
+
import { default as default110 } from "./components/puck-block/hero-sections/zoom-grid-hero/index.js";
|
|
110
|
+
import { default as default111 } from "./components/puck-core/use-upload.js";
|
|
111
|
+
import { ACTION_TYPE_FIELD_MAP, ACTION_TYPE_OPTIONS, ActionField, DownloadActionFields, EmailActionFields, ExternalActionFields, PageActionFields, PhoneActionFields, SectionActionFields } from "./components/puck-core/fields/action-field.js";
|
|
110
112
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/shadcn/accordion.js";
|
|
111
113
|
import { Alert, AlertAction, AlertDescription, AlertTitle } from "./components/shadcn/alert.js";
|
|
112
114
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/shadcn/alert-dialog.js";
|
|
113
115
|
import { AnimatedThemeToggler } from "./components/shadcn/animated-theme-toggler.js";
|
|
114
116
|
import { AspectRatio } from "./components/shadcn/aspect-ratio.js";
|
|
115
|
-
import { AutoField } from "./components/puck-
|
|
117
|
+
import { AutoField } from "./components/puck-core/fields/auto-field.js";
|
|
116
118
|
import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "./components/shadcn/avatar.js";
|
|
117
119
|
import { Badge, badgeVariants } from "./components/shadcn/badge.js";
|
|
118
120
|
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./components/shadcn/breadcrumb.js";
|
|
@@ -141,15 +143,15 @@ import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, Di
|
|
|
141
143
|
import { DirectionProvider, useDirection } from "@base-ui/react/direction-provider";
|
|
142
144
|
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./components/shadcn/drawer.js";
|
|
143
145
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/shadcn/dropdown-menu.js";
|
|
144
|
-
import { EditorContextProvider, useEditorContext } from "./components/puck-
|
|
146
|
+
import { EditorContextProvider, useEditorContext } from "./components/puck-core/core/context/editor-context.js";
|
|
145
147
|
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "./components/shadcn/empty.js";
|
|
146
|
-
import { ErrorBoundary } from "./components/puck-
|
|
148
|
+
import { ErrorBoundary } from "./components/puck-core/error-boundary.js";
|
|
147
149
|
import { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle } from "./components/shadcn/field.js";
|
|
148
150
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "./components/shadcn/form.js";
|
|
149
151
|
import { GradientText } from "./components/puck-base/gradient-text.js";
|
|
150
152
|
import { HoverCard, HoverCardContent, HoverCardTrigger } from "./components/shadcn/hover-card.js";
|
|
151
|
-
import { ImageUploadField } from "./components/puck-
|
|
152
|
-
import { InlineEditable } from "./components/puck-
|
|
153
|
+
import { ImageUploadField } from "./components/puck-core/fields/image-upload-field.js";
|
|
154
|
+
import { InlineEditable } from "./components/puck-core/inline-editable.js";
|
|
153
155
|
import { Input } from "./components/shadcn/input.js";
|
|
154
156
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/shadcn/input-group.js";
|
|
155
157
|
import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "./components/shadcn/input-otp.js";
|
|
@@ -166,7 +168,10 @@ import { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitl
|
|
|
166
168
|
import { Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue } from "./components/shadcn/progress.js";
|
|
167
169
|
import { RadioGroup, RadioGroupItem } from "./components/shadcn/radio-group.js";
|
|
168
170
|
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./components/shadcn/resizable.js";
|
|
171
|
+
import { SafeDynamicIcon } from "./components/puck-base/safe-dynamic-icon.js";
|
|
169
172
|
import { ScrollArea, ScrollBar } from "./components/shadcn/scroll-area.js";
|
|
173
|
+
import { SectionIdProvider, useSectionId } from "./components/puck-core/core/context/section-id-context.js";
|
|
174
|
+
import { SectionWrapper } from "./components/puck-core/section-wrapper.js";
|
|
170
175
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/shadcn/select.js";
|
|
171
176
|
import { Separator } from "./components/shadcn/separator.js";
|
|
172
177
|
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from "./components/shadcn/sheet.js";
|
|
@@ -186,19 +191,23 @@ import { ToggleGroup, ToggleGroupItem } from "./components/shadcn/toggle-group.j
|
|
|
186
191
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/shadcn/tooltip.js";
|
|
187
192
|
import { TweetCard, truncate } from "./components/shadcn/tweet-card.js";
|
|
188
193
|
import { TweetCardClient } from "./components/shadcn/tweet-card-client.js";
|
|
189
|
-
import {
|
|
190
|
-
import { backgroundColor, backgroundImage, padding, paddingDefaults, paddingLevel, sectionOverlay, sectionStyle } from "./components/puck-
|
|
194
|
+
import { actionField, actionDefaults, badgeField, buttonField, buttonsField, iconField, resolveActionUrl } from "./components/puck-core/core/props/interactive.js";
|
|
195
|
+
import { backgroundColor, backgroundImage, padding, paddingDefaults, paddingLevel, sectionOverlay, sectionStyle } from "./components/puck-core/core/styles.js";
|
|
191
196
|
import { base64ToFile, base64ToUrl, blobToBase64, blobToUrl, convertBase64ToBlob, structureFile } from "./utils/utils-canvas.js";
|
|
197
|
+
import { buildComponents, categories, confMap, getComponentDefaultProps, sectionsMap } from "./components/puck-block/registry.generated.js";
|
|
198
|
+
import { cardField, cardsField, descriptionField, featuresField, headingField } from "./components/puck-core/core/props/content.js";
|
|
192
199
|
import { cn, liquidGlass } from "./utils/css-utils.js";
|
|
200
|
+
import { contentFields, contentFieldsWithFeatures } from "./components/puck-core/core/props/index.js";
|
|
193
201
|
import { downloadImage, downloadImageClient, fetchHasOnlineFile, getBase64Client, isValidFileSize, isValidFileType } from "./utils/utils-image.js";
|
|
202
|
+
import { formFieldField, formFieldDefaults, formField, formDefaults } from "./components/puck-core/core/props/form.js";
|
|
194
203
|
import { filterEmptyValues } from "./utils/utils-common.js";
|
|
195
|
-
import { findComponentById, getRandomAdjective } from "./components/puck-
|
|
204
|
+
import { findComponentById, getRandomAdjective } from "./components/puck-core/core/utils.js";
|
|
196
205
|
import { formatLargeNumber, getUrlWithParams } from "./utils/utils-api.js";
|
|
197
206
|
import { formatTimeAgo, formatTimeString, getTimeDetails, getTimestamp, sleep, timeAgo } from "./utils/utils-time.js";
|
|
207
|
+
import { getPlaceholderImageUrl, imageField, image16x9Placeholder, image1x1Placeholder, image9x16Placeholder, imagesField } from "./components/puck-core/core/props/media.js";
|
|
198
208
|
import { nanoid } from "./utils/utils-random.js";
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
201
|
-
import { withEditable } from "./components/puck-base/core/with-editable.js";
|
|
209
|
+
import { usePuckAppState, usePuckConfig, usePuckDispatch, usePuckGetSelectorForId, usePuckHistory } from "./components/puck-core/core/hooks.js";
|
|
210
|
+
import { withEditable } from "./components/puck-core/core/with-editable.js";
|
|
202
211
|
export {
|
|
203
212
|
ACTION_TYPE_FIELD_MAP,
|
|
204
213
|
ACTION_TYPE_OPTIONS,
|
|
@@ -533,6 +542,7 @@ export {
|
|
|
533
542
|
ResizableHandle,
|
|
534
543
|
ResizablePanel,
|
|
535
544
|
ResizablePanelGroup,
|
|
545
|
+
SafeDynamicIcon,
|
|
536
546
|
default62 as ScatterParallaxHeroConf,
|
|
537
547
|
ScrollArea,
|
|
538
548
|
ScrollBar,
|
|
@@ -543,6 +553,8 @@ export {
|
|
|
543
553
|
default67 as ScrollParallaxTextConf,
|
|
544
554
|
default68 as ScrollZoomHeroConf,
|
|
545
555
|
SectionActionFields,
|
|
556
|
+
SectionIdProvider,
|
|
557
|
+
SectionWrapper,
|
|
546
558
|
Select,
|
|
547
559
|
SelectContent,
|
|
548
560
|
SelectGroup,
|
|
@@ -564,6 +576,7 @@ export {
|
|
|
564
576
|
SheetTrigger,
|
|
565
577
|
default69 as ShinyPromoBadge,
|
|
566
578
|
default70 as SideMediaContentConf,
|
|
579
|
+
default71 as SideMediaCtaConf,
|
|
567
580
|
Sidebar,
|
|
568
581
|
SidebarContent,
|
|
569
582
|
SidebarFooter,
|
|
@@ -587,35 +600,35 @@ export {
|
|
|
587
600
|
SidebarRail,
|
|
588
601
|
SidebarSeparator,
|
|
589
602
|
SidebarTrigger,
|
|
590
|
-
|
|
591
|
-
|
|
603
|
+
default72 as SingleColumnTimelineConf,
|
|
604
|
+
default73 as SinglePricingCardConf,
|
|
592
605
|
Skeleton,
|
|
593
606
|
Slider,
|
|
594
607
|
SparklesCore,
|
|
595
608
|
Spinner,
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
609
|
+
default74 as SplitCarouselConf,
|
|
610
|
+
default75 as SplitInfoFormConf,
|
|
611
|
+
default76 as SplitPricingConf,
|
|
612
|
+
default77 as SplitStatsConf,
|
|
600
613
|
Spotlight,
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
614
|
+
default78 as StackedAccordionFaqConf,
|
|
615
|
+
default79 as StackedStaticFaqConf,
|
|
616
|
+
default80 as StandardNavbarConf,
|
|
617
|
+
default81 as StaticGridConf,
|
|
618
|
+
default82 as StickyExpandHeroConf,
|
|
619
|
+
default83 as StickyScrollTimelineConf,
|
|
620
|
+
default84 as StickyTestimonialConf,
|
|
621
|
+
default85 as StickyTextMultiImageConf,
|
|
622
|
+
default86 as StickyVideoHeroConf,
|
|
610
623
|
Switch,
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
624
|
+
default87 as TabFeatureConf,
|
|
625
|
+
default88 as TabHeroConf,
|
|
626
|
+
default89 as TabLocationsConf,
|
|
627
|
+
default90 as TabPricingGridConf,
|
|
628
|
+
default91 as TabSinglePricingConf,
|
|
629
|
+
default92 as TabStatsConf,
|
|
630
|
+
default93 as TabTestimonialConf,
|
|
631
|
+
default94 as TabTimelineConf,
|
|
619
632
|
Table,
|
|
620
633
|
TableBody,
|
|
621
634
|
TableCaption,
|
|
@@ -628,17 +641,18 @@ export {
|
|
|
628
641
|
TabsContent,
|
|
629
642
|
TabsList,
|
|
630
643
|
TabsTrigger,
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
644
|
+
default95 as TeamCarouselConf,
|
|
645
|
+
default96 as TeamGridConf,
|
|
646
|
+
default97 as TeamInlineCardConf,
|
|
647
|
+
default98 as TeamStickyScatterConf,
|
|
648
|
+
default99 as TeamTwoColumnConf,
|
|
649
|
+
default100 as TestimonialCardGridConf,
|
|
650
|
+
default101 as TestimonialCarouselConf,
|
|
651
|
+
default102 as TextBlockCtaConf,
|
|
652
|
+
default103 as TextMediaSplitConf,
|
|
653
|
+
default104 as TextOnlySectionConf,
|
|
640
654
|
Textarea,
|
|
641
|
-
|
|
655
|
+
default105 as ThreeImageParallaxHeroConf,
|
|
642
656
|
Toaster,
|
|
643
657
|
Toggle,
|
|
644
658
|
ToggleGroup,
|
|
@@ -649,60 +663,64 @@ export {
|
|
|
649
663
|
TooltipTrigger,
|
|
650
664
|
TweetCard,
|
|
651
665
|
TweetCardClient,
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
action,
|
|
666
|
+
default106 as TwoColumnAccordionFaqConf,
|
|
667
|
+
default107 as TwoColumnStaticFaqConf,
|
|
668
|
+
default108 as VerticalGalleryHeroConf,
|
|
669
|
+
default109 as ZigzagTimelineConf,
|
|
670
|
+
default110 as ZoomGridHeroConf,
|
|
671
|
+
actionField as action,
|
|
658
672
|
actionDefaults,
|
|
659
673
|
backgroundColor,
|
|
660
674
|
backgroundImage,
|
|
661
|
-
badge,
|
|
675
|
+
badgeField as badge,
|
|
662
676
|
badgeVariants,
|
|
663
677
|
base64ToFile,
|
|
664
678
|
base64ToUrl,
|
|
665
679
|
blobToBase64,
|
|
666
680
|
blobToUrl,
|
|
667
|
-
|
|
681
|
+
buildComponents,
|
|
682
|
+
buttonField as button,
|
|
668
683
|
buttonGroupVariants,
|
|
669
684
|
buttonVariants,
|
|
670
|
-
buttons,
|
|
671
|
-
card,
|
|
672
|
-
cards,
|
|
685
|
+
buttonsField as buttons,
|
|
686
|
+
cardField as card,
|
|
687
|
+
cardsField as cards,
|
|
688
|
+
categories,
|
|
673
689
|
cn,
|
|
690
|
+
confMap,
|
|
674
691
|
contentFields,
|
|
675
692
|
contentFieldsWithFeatures,
|
|
676
693
|
convertBase64ToBlob,
|
|
677
|
-
description,
|
|
694
|
+
descriptionField as description,
|
|
678
695
|
downloadImage,
|
|
679
696
|
downloadImageClient,
|
|
680
|
-
features,
|
|
697
|
+
featuresField as features,
|
|
681
698
|
fetchHasOnlineFile,
|
|
682
|
-
field,
|
|
683
|
-
fieldDefaults,
|
|
699
|
+
formFieldField as field,
|
|
700
|
+
formFieldDefaults as fieldDefaults,
|
|
684
701
|
fieldTypes,
|
|
685
702
|
filterEmptyValues,
|
|
686
703
|
findComponentById,
|
|
687
|
-
form,
|
|
704
|
+
formField as form,
|
|
688
705
|
formDefaults,
|
|
689
706
|
formMethods,
|
|
690
707
|
formatLargeNumber,
|
|
691
708
|
formatTimeAgo,
|
|
692
709
|
formatTimeString,
|
|
693
710
|
getBase64Client,
|
|
711
|
+
getComponentDefaultProps,
|
|
694
712
|
getPlaceholderImageUrl,
|
|
695
713
|
getRandomAdjective,
|
|
696
714
|
getTimeDetails,
|
|
697
715
|
getTimestamp,
|
|
698
716
|
getUrlWithParams,
|
|
699
|
-
heading,
|
|
700
|
-
icon,
|
|
701
|
-
image,
|
|
717
|
+
headingField as heading,
|
|
718
|
+
iconField as icon,
|
|
719
|
+
imageField as image,
|
|
702
720
|
image16x9Placeholder,
|
|
703
721
|
image1x1Placeholder,
|
|
704
722
|
image9x16Placeholder,
|
|
705
|
-
images,
|
|
723
|
+
imagesField as images,
|
|
706
724
|
isValidFileSize,
|
|
707
725
|
isValidFileType,
|
|
708
726
|
liquidGlass,
|
|
@@ -714,6 +732,7 @@ export {
|
|
|
714
732
|
resolveActionUrl,
|
|
715
733
|
sectionOverlay,
|
|
716
734
|
sectionStyle,
|
|
735
|
+
sectionsMap,
|
|
717
736
|
sleep,
|
|
718
737
|
structureFile,
|
|
719
738
|
tabsListVariants,
|
|
@@ -729,7 +748,8 @@ export {
|
|
|
729
748
|
usePuckDispatch,
|
|
730
749
|
usePuckGetSelectorForId,
|
|
731
750
|
usePuckHistory,
|
|
751
|
+
useSectionId,
|
|
732
752
|
useSidebar,
|
|
733
|
-
|
|
753
|
+
default111 as useUpload,
|
|
734
754
|
withEditable
|
|
735
755
|
};
|