dune-react 0.0.31 → 0.0.33
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/puck-base/article-card.d.ts +2 -2
- package/dist/components/puck-base/article-card.js +2 -2
- package/dist/components/puck-base/card.d.ts +2 -2
- package/dist/components/puck-base/card.js +2 -2
- package/dist/components/puck-base/index.d.ts +2 -1
- package/dist/components/puck-base/media.d.ts +12 -0
- package/dist/components/puck-base/media.js +576 -0
- package/dist/components/puck-base/social-links.d.ts +7 -0
- package/dist/components/puck-base/social-links.js +23 -0
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +6 -6
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.d.ts +1 -1
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.js +2 -2
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +42 -0
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +10 -10
- package/dist/components/puck-block/banner-sections/dual-row-marquee/index.d.ts +2 -2
- package/dist/components/puck-block/banner-sections/dual-row-marquee/index.js +3 -3
- package/dist/components/puck-block/banner-sections/props.d.ts +9 -12
- package/dist/components/puck-block/contact-sections/centered-form/centered-form.js +1 -5
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -5
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -5
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +4 -8
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.js +2 -2
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -5
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +4 -8
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/info-cards-media/index.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +4 -8
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.js +2 -2
- package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.js +10 -14
- package/dist/components/puck-block/contact-sections/props.d.ts +5 -16
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.d.ts +7 -2
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -2
- package/dist/components/puck-block/contact-sections/tab-locations/index.d.ts +57 -8
- package/dist/components/puck-block/contact-sections/tab-locations/index.js +7 -7
- package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +40 -47
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.js +2 -2
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +6 -6
- package/dist/components/puck-block/cta-sections/props.d.ts +3 -3
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +4 -4
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +3 -3
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +3 -3
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +10 -10
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.d.ts +2 -2
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.js +2 -2
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.js +2 -2
- package/dist/components/puck-block/faq-sections/props.d.ts +3 -3
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +6 -6
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.js +3 -3
- package/dist/components/puck-block/feature-sections/feature-list-split/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +6 -6
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/index.js +3 -3
- package/dist/components/puck-block/feature-sections/props.d.ts +3 -3
- package/dist/components/puck-block/feature-sections/tab-feature/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +12 -12
- package/dist/components/puck-block/feature-sections/tab-feature/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/tab-feature/index.js +2 -2
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +5 -5
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.js +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/component.js +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-only-section/index.js +2 -2
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +3 -2
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.d.ts +7 -2
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +3 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +3 -3
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/props.d.ts +17 -10
- package/dist/components/puck-block/footer-sections/props.js +8 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/asymmetric-grid.js +7 -7
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +12 -12
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.js +12 -12
- package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/image-carousel/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +14 -14
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +7 -7
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +6 -6
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +9 -9
- package/dist/components/puck-block/gallery-sections/props.d.ts +8 -8
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +11 -11
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +5 -5
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +26 -26
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/split-carousel/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.js +6 -6
- package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/static-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/static-grid/static-grid.js +7 -7
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +31 -24
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +92 -0
- package/dist/components/puck-block/header-sections/centered-navbar/index.js +9 -4
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +32 -25
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +92 -0
- package/dist/components/puck-block/header-sections/drawer-navbar/index.js +5 -3
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +27 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +91 -3
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +23 -18
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +91 -3
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +64 -0
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +13 -6
- package/dist/components/puck-block/header-sections/props.d.ts +17 -5
- package/dist/components/puck-block/header-sections/props.js +8 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +64 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.js +6 -4
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +9 -5
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +8 -8
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/carousel-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +14 -14
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
- 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 +16 -16
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +6 -6
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +7 -7
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.js +4 -4
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.d.ts +4 -4
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +16 -16
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +12 -12
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/props.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
- 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 +9 -9
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +12 -12
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +13 -13
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/tab-hero/component.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +7 -6
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +4 -7
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +2 -7
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.d.ts +4 -4
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +4 -4
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.js +4 -4
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +7 -7
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +5 -5
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +4 -4
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.js +3 -3
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +7 -7
- package/dist/components/puck-block/metrics-sections/props.d.ts +6 -6
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/split-stats/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +4 -4
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +3 -3
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.d.ts +3 -3
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +11 -11
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +13 -0
- package/dist/components/puck-block/pricing-sections/props.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.js +3 -3
- package/dist/components/puck-block/pricing-sections/split-pricing/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +4 -3
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.d.ts +2 -2
- package/dist/components/puck-block/registry.generated.d.ts +796 -124
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/props.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +8 -8
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.js +2 -2
- package/dist/components/puck-block/team-sections/props.d.ts +2 -3
- package/dist/components/puck-block/team-sections/team-carousel/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-carousel/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-grid/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-grid/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-inline-card/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-inline-card/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-two-column/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-two-column/component.js +3 -3
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +8 -8
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +4 -4
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.js +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +10 -10
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +7 -7
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.d.ts +2 -2
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.d.ts +2 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/props.d.ts +3 -4
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.d.ts +3 -2
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.js +6 -3
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +5 -5
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +6 -6
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +3 -3
- package/dist/components/puck-block/text-sections/blog-article/component.d.ts +4 -7
- package/dist/components/puck-block/text-sections/blog-article/component.js +9 -17
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +39 -14
- package/dist/components/puck-block/text-sections/blog-article/index.js +4 -10
- package/dist/components/puck-block/text-sections/props.d.ts +3 -3
- package/dist/components/puck-block/text-sections/prose-content/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/prose-content/component.js +3 -3
- package/dist/components/puck-block/text-sections/prose-content/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/prose-content/index.js +2 -2
- package/dist/components/puck-block/text-sections/prose-sidebar/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/side-media-content/component.js +5 -5
- package/dist/components/puck-block/text-sections/side-media-content/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/side-media-content/index.js +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +4 -4
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.d.ts +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.js +2 -2
- package/dist/components/puck-block/text-sections/text-header/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +1 -1
- package/dist/components/puck-core/core/context/editor-context.d.ts +2 -0
- package/dist/components/puck-core/core/fields.d.ts +2 -2
- package/dist/components/puck-core/core/props/content.d.ts +3 -3
- package/dist/components/puck-core/core/props/index.d.ts +2 -2
- package/dist/components/puck-core/core/props/index.js +7 -0
- package/dist/components/puck-core/core/props/interactive.d.ts +44 -1
- package/dist/components/puck-core/core/props/interactive.js +24 -1
- package/dist/components/puck-core/core/props/media.d.ts +8 -8
- package/dist/components/puck-core/core/props/media.js +21 -21
- package/dist/components/puck-core/core/puck-fields-to-zod.d.ts +40 -0
- package/dist/components/puck-core/core/puck-fields-to-zod.js +113 -0
- package/dist/components/puck-core/core/social-icons.d.ts +5 -0
- package/dist/components/puck-core/core/social-icons.js +48 -0
- package/dist/components/puck-core/core/with-editable.js +9 -2
- package/dist/components/puck-core/fields/media-upload-field.d.ts +7 -0
- package/dist/components/puck-core/fields/{image-upload-field.js → media-upload-field.js} +71 -28
- package/dist/components/puck-core/index.d.ts +3 -2
- package/dist/components/shadcn/tabs.d.ts +2 -1
- package/dist/components/shadcn/tabs.js +21 -3
- package/dist/components/shadcn/video-iframe.d.ts +2 -1
- package/dist/components/shadcn/video-iframe.js +7 -6
- package/dist/index.js +18 -12
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js +44 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js +43 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js +29 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js +665 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js +569 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js +410 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js +74 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js +37 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js +72 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js +314 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js +95 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js +81 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js +1345 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js +362 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js +430 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js +8 -0
- package/package.json +3 -2
- package/dist/components/puck-base/image.d.ts +0 -6
- package/dist/components/puck-base/image.js +0 -360
- package/dist/components/puck-core/fields/image-upload-field.d.ts +0 -7
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useCallback } from "react";
|
|
4
|
-
import { X, Loader2, UploadCloud
|
|
2
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useCallback, useMemo } from "react";
|
|
4
|
+
import { Youtube, Film, ImageIcon, X, Loader2, UploadCloud } from "lucide-react";
|
|
5
5
|
import { cn } from "../../../utils/css-utils.js";
|
|
6
6
|
import { Button } from "../../shadcn/button.js";
|
|
7
7
|
import { Input } from "../../shadcn/input.js";
|
|
8
8
|
import useUpload from "../use-upload.js";
|
|
9
|
-
function
|
|
9
|
+
function detectMediaType(src) {
|
|
10
|
+
if (/youtube\.com|youtu\.be|vimeo\.com/i.test(src)) return "embed";
|
|
11
|
+
if (/\.(mp4|webm|mov|ogg)(\?.*)?$/i.test(src)) return "video";
|
|
12
|
+
return "image";
|
|
13
|
+
}
|
|
14
|
+
function getEmbedThumbnail(src) {
|
|
15
|
+
const ytMatch = src.match(
|
|
16
|
+
/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]+)/
|
|
17
|
+
);
|
|
18
|
+
if (ytMatch) return `https://img.youtube.com/vi/${ytMatch[1]}/mqdefault.jpg`;
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
const TYPE_META = {
|
|
22
|
+
image: { icon: ImageIcon, label: "Image", color: "text-blue-500" },
|
|
23
|
+
video: { icon: Film, label: "Video", color: "text-purple-500" },
|
|
24
|
+
embed: { icon: Youtube, label: "YouTube / Vimeo", color: "text-red-500" }
|
|
25
|
+
};
|
|
26
|
+
function MediaUploadField({
|
|
10
27
|
name,
|
|
11
28
|
value,
|
|
12
29
|
onChange
|
|
@@ -22,30 +39,56 @@ function ImageUploadField({
|
|
|
22
39
|
onChange("");
|
|
23
40
|
}, [onChange]);
|
|
24
41
|
const hasValue = !!value;
|
|
42
|
+
const mediaType = useMemo(() => hasValue ? detectMediaType(value) : "image", [hasValue, value]);
|
|
43
|
+
const meta = TYPE_META[mediaType];
|
|
44
|
+
const TypeIcon = meta.icon;
|
|
25
45
|
const inputProps = getInputProps();
|
|
26
46
|
const dropzoneProps = getDropzoneProps();
|
|
27
47
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
28
48
|
/* @__PURE__ */ jsx("input", { ...inputProps, name }),
|
|
29
|
-
hasValue && !isUploading ? /* @__PURE__ */ jsxs("div", { className: "
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
"
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
hasValue && !isUploading ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
50
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
51
|
+
/* @__PURE__ */ jsx(TypeIcon, { className: cn("size-3.5", meta.color) }),
|
|
52
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-muted-foreground", children: meta.label })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ jsxs("div", { className: "group relative overflow-hidden rounded-md border", children: [
|
|
55
|
+
mediaType === "image" && /* @__PURE__ */ jsx(
|
|
56
|
+
"img",
|
|
57
|
+
{
|
|
58
|
+
src: value,
|
|
59
|
+
alt: "preview",
|
|
60
|
+
className: "block h-32 w-full object-contain"
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
mediaType === "video" && /* @__PURE__ */ jsx(
|
|
64
|
+
"video",
|
|
65
|
+
{
|
|
66
|
+
src: value,
|
|
67
|
+
muted: true,
|
|
68
|
+
playsInline: true,
|
|
69
|
+
className: "block h-32 w-full object-contain"
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
mediaType === "embed" && /* @__PURE__ */ jsx(Fragment, { children: getEmbedThumbnail(value) ? /* @__PURE__ */ jsx(
|
|
73
|
+
"img",
|
|
74
|
+
{
|
|
75
|
+
src: getEmbedThumbnail(value),
|
|
76
|
+
alt: "video thumbnail",
|
|
77
|
+
className: "block h-32 w-full object-contain"
|
|
78
|
+
}
|
|
79
|
+
) : /* @__PURE__ */ jsx("div", { className: "flex h-32 w-full items-center justify-center bg-muted", children: /* @__PURE__ */ jsx(Youtube, { className: "size-8 text-muted-foreground" }) }) }),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
Button,
|
|
82
|
+
{
|
|
83
|
+
type: "button",
|
|
84
|
+
variant: "destructive",
|
|
85
|
+
size: "icon-sm",
|
|
86
|
+
className: "absolute top-1.5 right-1.5 opacity-0 transition-opacity group-hover:opacity-100",
|
|
87
|
+
onClick: handleClear,
|
|
88
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-3" })
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
] })
|
|
49
92
|
] }) : isUploading ? /* @__PURE__ */ jsxs("div", { className: "flex h-28 w-full flex-col items-center justify-center gap-3 rounded-md border-2 border-dashed border-primary/50 bg-accent/30", children: [
|
|
50
93
|
/* @__PURE__ */ jsx(Loader2, { className: "text-primary size-6 animate-spin" }),
|
|
51
94
|
/* @__PURE__ */ jsxs("div", { className: "w-3/4", children: [
|
|
@@ -73,7 +116,7 @@ function ImageUploadField({
|
|
|
73
116
|
...dropzoneProps,
|
|
74
117
|
children: [
|
|
75
118
|
/* @__PURE__ */ jsx(UploadCloud, { className: "size-6" }),
|
|
76
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs", children: "
|
|
119
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs", children: "Drag image here, or click to upload" })
|
|
77
120
|
]
|
|
78
121
|
}
|
|
79
122
|
),
|
|
@@ -83,7 +126,7 @@ function ImageUploadField({
|
|
|
83
126
|
Input,
|
|
84
127
|
{
|
|
85
128
|
type: "text",
|
|
86
|
-
placeholder: "https://example.com/image.jpg",
|
|
129
|
+
placeholder: "https://example.com/image.jpg or YouTube URL",
|
|
87
130
|
defaultValue: value,
|
|
88
131
|
onBlur: (e) => {
|
|
89
132
|
const v = e.currentTarget.value.trim();
|
|
@@ -118,12 +161,12 @@ function ImageUploadField({
|
|
|
118
161
|
onClick: () => setUrlMode(true),
|
|
119
162
|
children: [
|
|
120
163
|
/* @__PURE__ */ jsx(ImageIcon, { className: "size-3" }),
|
|
121
|
-
/* @__PURE__ */ jsx("span", { children: "
|
|
164
|
+
/* @__PURE__ */ jsx("span", { children: "Use URL" })
|
|
122
165
|
]
|
|
123
166
|
}
|
|
124
167
|
)
|
|
125
168
|
] });
|
|
126
169
|
}
|
|
127
170
|
export {
|
|
128
|
-
|
|
171
|
+
MediaUploadField
|
|
129
172
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { MediaUploadField } from "./fields/media-upload-field";
|
|
2
2
|
export { ActionField, ACTION_TYPE_FIELD_MAP, ACTION_TYPE_OPTIONS, PageActionFields, ExternalActionFields, EmailActionFields, PhoneActionFields, SectionActionFields, DownloadActionFields, type ActionTypeFieldProps, AutoField, type FieldDef, type AutoFieldProps, type FieldsPanelProps, } from "./fields";
|
|
3
3
|
export { type IconName, type Feature, type ActionType, type Action, resolveActionUrl, } from "./core/types";
|
|
4
4
|
export { withEditable } from "./core/with-editable";
|
|
5
5
|
export { findComponentById, getRandomAdjective } from "./core/utils";
|
|
6
|
+
export { puckFieldsToZod, customSchemaRegistry } from "./core/puck-fields-to-zod";
|
|
6
7
|
export { ErrorBoundary } from "./error-boundary";
|
|
7
8
|
export { InlineEditable } from "./inline-editable";
|
|
8
9
|
export { usePuckDispatch, usePuckAppState, usePuckHistory, usePuckConfig, usePuckGetSelectorForId, type PuckComponentInfo, } from "./core/hooks";
|
|
@@ -10,4 +11,4 @@ export { SectionWrapper, type SectionWrapperProps } from "./section-wrapper";
|
|
|
10
11
|
export { EditorContextProvider, useEditorContext } from "./core/context/editor-context";
|
|
11
12
|
export { SectionIdProvider, useSectionId } from "./core/context/section-id-context";
|
|
12
13
|
export { default as useUpload, type UploadFileItem, type UploadStatus, type UseUploadOptions } from "./use-upload";
|
|
13
|
-
export { icon, action, actionDefaults, button, buttons, badge,
|
|
14
|
+
export { icon, action, actionDefaults, button, buttons, badge, media, medias, padding, paddingDefaults, paddingLevel, heading, description, features, contentFields, contentFieldsWithFeatures, card, cards, field, fieldDefaults, form, formDefaults, getPlaceholderMediaUrl, media16x9Placeholder, media1x1Placeholder, media9x16Placeholder, sectionStyle, sectionOverlay, backgroundColor, backgroundImage, } from "./core/fields";
|
|
@@ -7,4 +7,5 @@ declare const tabsListVariants: (props?: ({
|
|
|
7
7
|
declare function TabsList({ className, variant, ...props }: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare function TabsContent({ className, ...props }: TabsPrimitive.Panel.Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
|
|
10
|
+
declare function TabsIndicator({ className, ...props }: TabsPrimitive.Indicator.Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, TabsIndicator, tabsListVariants };
|
|
@@ -22,7 +22,7 @@ function Tabs({
|
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
24
|
const tabsListVariants = cva(
|
|
25
|
-
"group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-
|
|
25
|
+
"group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",
|
|
26
26
|
{
|
|
27
27
|
variants: {
|
|
28
28
|
variant: {
|
|
@@ -56,7 +56,7 @@ function TabsTrigger({ className, ...props }) {
|
|
|
56
56
|
{
|
|
57
57
|
"data-slot": "tabs-trigger",
|
|
58
58
|
className: cn(
|
|
59
|
-
"relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-
|
|
59
|
+
"relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
60
60
|
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
|
|
61
61
|
"data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
|
|
62
62
|
"after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
|
|
@@ -71,7 +71,24 @@ function TabsContent({ className, ...props }) {
|
|
|
71
71
|
Tabs$1.Panel,
|
|
72
72
|
{
|
|
73
73
|
"data-slot": "tabs-content",
|
|
74
|
-
className: cn("flex-1 outline-none", className),
|
|
74
|
+
className: cn("flex-1 text-sm outline-none", className),
|
|
75
|
+
...props
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function TabsIndicator({ className, ...props }) {
|
|
80
|
+
return /* @__PURE__ */ jsx(
|
|
81
|
+
Tabs$1.Indicator,
|
|
82
|
+
{
|
|
83
|
+
"data-slot": "tabs-indicator",
|
|
84
|
+
className: cn(
|
|
85
|
+
"absolute bottom-0 h-0.5 rounded-full bg-foreground transition-all duration-200 ease-out",
|
|
86
|
+
"group-data-vertical/tabs:bottom-auto group-data-vertical/tabs:left-0 group-data-vertical/tabs:h-auto group-data-vertical/tabs:w-0.5",
|
|
87
|
+
className
|
|
88
|
+
),
|
|
89
|
+
style: {
|
|
90
|
+
transitionProperty: "left, right, top, bottom, width, height"
|
|
91
|
+
},
|
|
75
92
|
...props
|
|
76
93
|
}
|
|
77
94
|
);
|
|
@@ -79,6 +96,7 @@ function TabsContent({ className, ...props }) {
|
|
|
79
96
|
export {
|
|
80
97
|
Tabs,
|
|
81
98
|
TabsContent,
|
|
99
|
+
TabsIndicator,
|
|
82
100
|
TabsList,
|
|
83
101
|
TabsTrigger,
|
|
84
102
|
tabsListVariants
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface VideoIframeProps {
|
|
2
2
|
video: string;
|
|
3
3
|
className?: string;
|
|
4
|
+
autoplay?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare function VideoIframe({ video, className }: VideoIframeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function VideoIframe({ video, className, autoplay }: VideoIframeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -3,16 +3,17 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { cn } from "../../utils/css-utils.js";
|
|
5
5
|
import { CgSpinner } from "../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
|
|
6
|
-
function getEmbedUrl(url) {
|
|
6
|
+
function getEmbedUrl(url, autoplay = true) {
|
|
7
|
+
const ap = autoplay ? "?autoplay=1" : "";
|
|
7
8
|
const ytMatch = url.match(
|
|
8
|
-
/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]+)/
|
|
9
|
+
/(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/)|youtu\.be\/)([a-zA-Z0-9_-]+)/
|
|
9
10
|
);
|
|
10
|
-
if (ytMatch) return `https://www.youtube.com/embed/${ytMatch[1]}
|
|
11
|
+
if (ytMatch) return `https://www.youtube.com/embed/${ytMatch[1]}${ap}`;
|
|
11
12
|
const vimeoMatch = url.match(/vimeo\.com\/(\d+)/);
|
|
12
|
-
if (vimeoMatch) return `https://player.vimeo.com/video/${vimeoMatch[1]}
|
|
13
|
+
if (vimeoMatch) return `https://player.vimeo.com/video/${vimeoMatch[1]}${ap}`;
|
|
13
14
|
return url;
|
|
14
15
|
}
|
|
15
|
-
function VideoIframe({ video, className }) {
|
|
16
|
+
function VideoIframe({ video, className, autoplay = true }) {
|
|
16
17
|
const [loaded, setLoaded] = useState(false);
|
|
17
18
|
return /* @__PURE__ */ jsxs("div", { className: cn("relative aspect-video w-full", className), children: [
|
|
18
19
|
!loaded && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx(CgSpinner, { className: "size-8 animate-spin text-muted-foreground" }) }),
|
|
@@ -20,7 +21,7 @@ function VideoIframe({ video, className }) {
|
|
|
20
21
|
"iframe",
|
|
21
22
|
{
|
|
22
23
|
className: "size-full",
|
|
23
|
-
src: getEmbedUrl(video),
|
|
24
|
+
src: getEmbedUrl(video, autoplay),
|
|
24
25
|
allow: "autoplay; fullscreen",
|
|
25
26
|
allowFullScreen: true,
|
|
26
27
|
onLoad: () => setLoaded(true)
|
package/dist/index.js
CHANGED
|
@@ -139,7 +139,8 @@ import { CompoundContainer } from "./components/puck-base/container.js";
|
|
|
139
139
|
import { CompoundContent } from "./components/puck-base/content.js";
|
|
140
140
|
import { CompoundField, fieldTypes } from "./components/puck-base/field.js";
|
|
141
141
|
import { CompoundForm, formMethods } from "./components/puck-base/form.js";
|
|
142
|
-
import {
|
|
142
|
+
import { CompoundMedia } from "./components/puck-base/media.js";
|
|
143
|
+
import { CompoundSocialLinks } from "./components/puck-base/social-links.js";
|
|
143
144
|
import { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from "./components/shadcn/context-menu.js";
|
|
144
145
|
import { Cover } from "./components/ui-block/cover/index.js";
|
|
145
146
|
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./components/shadcn/dialog.js";
|
|
@@ -153,7 +154,6 @@ import { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLab
|
|
|
153
154
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "./components/shadcn/form.js";
|
|
154
155
|
import { GradientText } from "./components/puck-base/gradient-text.js";
|
|
155
156
|
import { HoverCard, HoverCardContent, HoverCardTrigger } from "./components/shadcn/hover-card.js";
|
|
156
|
-
import { ImageUploadField } from "./components/puck-core/fields/image-upload-field.js";
|
|
157
157
|
import { InlineEditable } from "./components/puck-core/inline-editable.js";
|
|
158
158
|
import { Input } from "./components/shadcn/input.js";
|
|
159
159
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/shadcn/input-group.js";
|
|
@@ -162,6 +162,7 @@ import { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup,
|
|
|
162
162
|
import { Kbd, KbdGroup } from "./components/shadcn/kbd.js";
|
|
163
163
|
import { Label } from "./components/shadcn/label.js";
|
|
164
164
|
import { LayoutTextFlip } from "./components/shadcn/layout-text-flip.js";
|
|
165
|
+
import { MediaUploadField } from "./components/puck-core/fields/media-upload-field.js";
|
|
165
166
|
import { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from "./components/shadcn/menubar.js";
|
|
166
167
|
import { MobileNav, MobileNavHeader, MobileNavMenu, MobileNavToggle, NavBody, NavItems, Navbar, NavbarButton, NavbarLogo } from "./components/shadcn/resizable-navbar.js";
|
|
167
168
|
import { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "./components/shadcn/native-select.js";
|
|
@@ -186,7 +187,7 @@ import { Spinner } from "./components/shadcn/spinner.js";
|
|
|
186
187
|
import { Spotlight } from "./components/ui-block/spotlight/index.js";
|
|
187
188
|
import { Switch } from "./components/shadcn/switch.js";
|
|
188
189
|
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./components/shadcn/table.js";
|
|
189
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants } from "./components/shadcn/tabs.js";
|
|
190
|
+
import { Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, tabsListVariants } from "./components/shadcn/tabs.js";
|
|
190
191
|
import { Textarea } from "./components/shadcn/textarea.js";
|
|
191
192
|
import { Toaster } from "./components/shadcn/sonner.js";
|
|
192
193
|
import { Toggle, toggleVariants } from "./components/shadcn/toggle.js";
|
|
@@ -201,13 +202,14 @@ import { buildComponents, categories, confMap, getComponentDefaultProps, section
|
|
|
201
202
|
import { cardField, cardsField, descriptionField, featuresField, headingField } from "./components/puck-core/core/props/content.js";
|
|
202
203
|
import { cn, liquidGlass } from "./utils/css-utils.js";
|
|
203
204
|
import { contentFields, contentFieldsWithFeatures } from "./components/puck-core/core/props/index.js";
|
|
205
|
+
import { customSchemaRegistry, puckFieldsToZod } from "./components/puck-core/core/puck-fields-to-zod.js";
|
|
204
206
|
import { downloadImage, downloadImageClient, fetchHasOnlineFile, getBase64Client, isValidFileSize, isValidFileType } from "./utils/utils-image.js";
|
|
205
207
|
import { formFieldField, formFieldDefaults, formField, formDefaults } from "./components/puck-core/core/props/form.js";
|
|
206
208
|
import { filterEmptyValues } from "./utils/utils-common.js";
|
|
207
209
|
import { findComponentById, getRandomAdjective } from "./components/puck-core/core/utils.js";
|
|
208
210
|
import { formatLargeNumber, getUrlWithParams } from "./utils/utils-api.js";
|
|
209
211
|
import { formatTimeAgo, formatTimeString, getTimeDetails, getTimestamp, sleep, timeAgo } from "./utils/utils-time.js";
|
|
210
|
-
import {
|
|
212
|
+
import { getPlaceholderMediaUrl, mediaField, media16x9Placeholder, media1x1Placeholder, media9x16Placeholder, mediasField } from "./components/puck-core/core/props/media.js";
|
|
211
213
|
import { nanoid } from "./utils/utils-random.js";
|
|
212
214
|
import { usePuckAppState, usePuckConfig, usePuckDispatch, usePuckGetSelectorForId, usePuckHistory } from "./components/puck-core/core/hooks.js";
|
|
213
215
|
import { withEditable } from "./components/puck-core/core/with-editable.js";
|
|
@@ -325,7 +327,8 @@ export {
|
|
|
325
327
|
CompoundContent,
|
|
326
328
|
CompoundField,
|
|
327
329
|
CompoundForm,
|
|
328
|
-
|
|
330
|
+
CompoundMedia,
|
|
331
|
+
CompoundSocialLinks,
|
|
329
332
|
default15 as ContactCardsGridConf,
|
|
330
333
|
default16 as ContactLinksFooterConf,
|
|
331
334
|
default17 as ContactModalConf,
|
|
@@ -438,7 +441,6 @@ export {
|
|
|
438
441
|
default40 as ImageCarouselConf,
|
|
439
442
|
default41 as ImageTestimonialCarouselConf,
|
|
440
443
|
default42 as ImageTestimonialConf,
|
|
441
|
-
ImageUploadField,
|
|
442
444
|
default43 as InfoCardsMediaConf,
|
|
443
445
|
InlineEditable,
|
|
444
446
|
default44 as InlineImageHeroConf,
|
|
@@ -475,6 +477,7 @@ export {
|
|
|
475
477
|
default47 as MarqueeTestimonialConf,
|
|
476
478
|
default48 as MasonryGridConf,
|
|
477
479
|
default49 as MasonryTestimonialConf,
|
|
480
|
+
MediaUploadField,
|
|
478
481
|
default50 as MegaMenuNavbarConf,
|
|
479
482
|
Menubar,
|
|
480
483
|
MenubarCheckboxItem,
|
|
@@ -645,6 +648,7 @@ export {
|
|
|
645
648
|
TableRow,
|
|
646
649
|
Tabs,
|
|
647
650
|
TabsContent,
|
|
651
|
+
TabsIndicator,
|
|
648
652
|
TabsList,
|
|
649
653
|
TabsTrigger,
|
|
650
654
|
default95 as TeamCarouselConf,
|
|
@@ -697,6 +701,7 @@ export {
|
|
|
697
701
|
contentFields,
|
|
698
702
|
contentFieldsWithFeatures,
|
|
699
703
|
convertBase64ToBlob,
|
|
704
|
+
customSchemaRegistry,
|
|
700
705
|
descriptionField as description,
|
|
701
706
|
downloadImage,
|
|
702
707
|
downloadImageClient,
|
|
@@ -715,26 +720,27 @@ export {
|
|
|
715
720
|
formatTimeString,
|
|
716
721
|
getBase64Client,
|
|
717
722
|
getComponentDefaultProps,
|
|
718
|
-
|
|
723
|
+
getPlaceholderMediaUrl,
|
|
719
724
|
getRandomAdjective,
|
|
720
725
|
getTimeDetails,
|
|
721
726
|
getTimestamp,
|
|
722
727
|
getUrlWithParams,
|
|
723
728
|
headingField as heading,
|
|
724
729
|
iconField as icon,
|
|
725
|
-
imageField as image,
|
|
726
|
-
image16x9Placeholder,
|
|
727
|
-
image1x1Placeholder,
|
|
728
|
-
image9x16Placeholder,
|
|
729
|
-
imagesField as images,
|
|
730
730
|
isValidFileSize,
|
|
731
731
|
isValidFileType,
|
|
732
732
|
liquidGlass,
|
|
733
|
+
mediaField as media,
|
|
734
|
+
media16x9Placeholder,
|
|
735
|
+
media1x1Placeholder,
|
|
736
|
+
media9x16Placeholder,
|
|
737
|
+
mediasField as medias,
|
|
733
738
|
nanoid,
|
|
734
739
|
navigationMenuTriggerStyle,
|
|
735
740
|
padding,
|
|
736
741
|
paddingDefaults,
|
|
737
742
|
paddingLevel,
|
|
743
|
+
puckFieldsToZod,
|
|
738
744
|
resolveActionUrl,
|
|
739
745
|
sectionOverlay,
|
|
740
746
|
sectionStyle,
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { $constructor } from "../core/core.js";
|
|
2
|
+
import { $ZodError, flattenError, formatError } from "../core/errors.js";
|
|
3
|
+
import { jsonStringifyReplacer } from "../core/util.js";
|
|
4
|
+
import "../core/registries.js";
|
|
5
|
+
const initializer = (inst, issues) => {
|
|
6
|
+
$ZodError.init(inst, issues);
|
|
7
|
+
inst.name = "ZodError";
|
|
8
|
+
Object.defineProperties(inst, {
|
|
9
|
+
format: {
|
|
10
|
+
value: (mapper) => formatError(inst, mapper)
|
|
11
|
+
// enumerable: false,
|
|
12
|
+
},
|
|
13
|
+
flatten: {
|
|
14
|
+
value: (mapper) => flattenError(inst, mapper)
|
|
15
|
+
// enumerable: false,
|
|
16
|
+
},
|
|
17
|
+
addIssue: {
|
|
18
|
+
value: (issue) => {
|
|
19
|
+
inst.issues.push(issue);
|
|
20
|
+
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
21
|
+
}
|
|
22
|
+
// enumerable: false,
|
|
23
|
+
},
|
|
24
|
+
addIssues: {
|
|
25
|
+
value: (issues2) => {
|
|
26
|
+
inst.issues.push(...issues2);
|
|
27
|
+
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
28
|
+
}
|
|
29
|
+
// enumerable: false,
|
|
30
|
+
},
|
|
31
|
+
isEmpty: {
|
|
32
|
+
get() {
|
|
33
|
+
return inst.issues.length === 0;
|
|
34
|
+
}
|
|
35
|
+
// enumerable: false,
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
const ZodRealError = $constructor("ZodError", initializer, {
|
|
40
|
+
Parent: Error
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
ZodRealError
|
|
44
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { $constructor } from "../core/core.js";
|
|
2
|
+
import { $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration } from "../core/schemas.js";
|
|
3
|
+
import "../core/registries.js";
|
|
4
|
+
import { _isoDateTime, _isoDate, _isoTime, _isoDuration } from "../core/api.js";
|
|
5
|
+
import { ZodStringFormat } from "./schemas.js";
|
|
6
|
+
const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
7
|
+
$ZodISODateTime.init(inst, def);
|
|
8
|
+
ZodStringFormat.init(inst, def);
|
|
9
|
+
});
|
|
10
|
+
function datetime(params) {
|
|
11
|
+
return _isoDateTime(ZodISODateTime, params);
|
|
12
|
+
}
|
|
13
|
+
const ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
|
|
14
|
+
$ZodISODate.init(inst, def);
|
|
15
|
+
ZodStringFormat.init(inst, def);
|
|
16
|
+
});
|
|
17
|
+
function date(params) {
|
|
18
|
+
return _isoDate(ZodISODate, params);
|
|
19
|
+
}
|
|
20
|
+
const ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
|
|
21
|
+
$ZodISOTime.init(inst, def);
|
|
22
|
+
ZodStringFormat.init(inst, def);
|
|
23
|
+
});
|
|
24
|
+
function time(params) {
|
|
25
|
+
return _isoTime(ZodISOTime, params);
|
|
26
|
+
}
|
|
27
|
+
const ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
|
|
28
|
+
$ZodISODuration.init(inst, def);
|
|
29
|
+
ZodStringFormat.init(inst, def);
|
|
30
|
+
});
|
|
31
|
+
function duration(params) {
|
|
32
|
+
return _isoDuration(ZodISODuration, params);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
ZodISODate,
|
|
36
|
+
ZodISODateTime,
|
|
37
|
+
ZodISODuration,
|
|
38
|
+
ZodISOTime,
|
|
39
|
+
date,
|
|
40
|
+
datetime,
|
|
41
|
+
duration,
|
|
42
|
+
time
|
|
43
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { _parse, _safeParse, _parseAsync, _safeParseAsync, _encode, _decode, _encodeAsync, _decodeAsync, _safeEncode, _safeDecode, _safeEncodeAsync, _safeDecodeAsync } from "../core/parse.js";
|
|
2
|
+
import "../core/registries.js";
|
|
3
|
+
import { ZodRealError } from "./errors.js";
|
|
4
|
+
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
5
|
+
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
6
|
+
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
7
|
+
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
8
|
+
const encode = /* @__PURE__ */ _encode(ZodRealError);
|
|
9
|
+
const decode = /* @__PURE__ */ _decode(ZodRealError);
|
|
10
|
+
const encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError);
|
|
11
|
+
const decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError);
|
|
12
|
+
const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
13
|
+
const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
14
|
+
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
15
|
+
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
16
|
+
export {
|
|
17
|
+
decode,
|
|
18
|
+
decodeAsync,
|
|
19
|
+
encode,
|
|
20
|
+
encodeAsync,
|
|
21
|
+
parse,
|
|
22
|
+
parseAsync,
|
|
23
|
+
safeDecode,
|
|
24
|
+
safeDecodeAsync,
|
|
25
|
+
safeEncode,
|
|
26
|
+
safeEncodeAsync,
|
|
27
|
+
safeParse,
|
|
28
|
+
safeParseAsync
|
|
29
|
+
};
|