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
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
function getEnumValues(entries) {
|
|
2
|
+
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
3
|
+
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
4
|
+
return values;
|
|
5
|
+
}
|
|
6
|
+
function jsonStringifyReplacer(_, value) {
|
|
7
|
+
if (typeof value === "bigint")
|
|
8
|
+
return value.toString();
|
|
9
|
+
return value;
|
|
10
|
+
}
|
|
11
|
+
function cached(getter) {
|
|
12
|
+
return {
|
|
13
|
+
get value() {
|
|
14
|
+
{
|
|
15
|
+
const value = getter();
|
|
16
|
+
Object.defineProperty(this, "value", { value });
|
|
17
|
+
return value;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function nullish(input) {
|
|
23
|
+
return input === null || input === void 0;
|
|
24
|
+
}
|
|
25
|
+
function cleanRegex(source) {
|
|
26
|
+
const start = source.startsWith("^") ? 1 : 0;
|
|
27
|
+
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
28
|
+
return source.slice(start, end);
|
|
29
|
+
}
|
|
30
|
+
function floatSafeRemainder(val, step) {
|
|
31
|
+
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
32
|
+
const stepString = step.toString();
|
|
33
|
+
let stepDecCount = (stepString.split(".")[1] || "").length;
|
|
34
|
+
if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
|
|
35
|
+
const match = stepString.match(/\d?e-(\d?)/);
|
|
36
|
+
if (match == null ? void 0 : match[1]) {
|
|
37
|
+
stepDecCount = Number.parseInt(match[1]);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
41
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
42
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
43
|
+
return valInt % stepInt / 10 ** decCount;
|
|
44
|
+
}
|
|
45
|
+
const EVALUATING = Symbol("evaluating");
|
|
46
|
+
function defineLazy(object, key, getter) {
|
|
47
|
+
let value = void 0;
|
|
48
|
+
Object.defineProperty(object, key, {
|
|
49
|
+
get() {
|
|
50
|
+
if (value === EVALUATING) {
|
|
51
|
+
return void 0;
|
|
52
|
+
}
|
|
53
|
+
if (value === void 0) {
|
|
54
|
+
value = EVALUATING;
|
|
55
|
+
value = getter();
|
|
56
|
+
}
|
|
57
|
+
return value;
|
|
58
|
+
},
|
|
59
|
+
set(v) {
|
|
60
|
+
Object.defineProperty(object, key, {
|
|
61
|
+
value: v
|
|
62
|
+
// configurable: true,
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function assignProp(target, prop, value) {
|
|
69
|
+
Object.defineProperty(target, prop, {
|
|
70
|
+
value,
|
|
71
|
+
writable: true,
|
|
72
|
+
enumerable: true,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function mergeDefs(...defs) {
|
|
77
|
+
const mergedDescriptors = {};
|
|
78
|
+
for (const def of defs) {
|
|
79
|
+
const descriptors = Object.getOwnPropertyDescriptors(def);
|
|
80
|
+
Object.assign(mergedDescriptors, descriptors);
|
|
81
|
+
}
|
|
82
|
+
return Object.defineProperties({}, mergedDescriptors);
|
|
83
|
+
}
|
|
84
|
+
function esc(str) {
|
|
85
|
+
return JSON.stringify(str);
|
|
86
|
+
}
|
|
87
|
+
function slugify(input) {
|
|
88
|
+
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
89
|
+
}
|
|
90
|
+
const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
91
|
+
};
|
|
92
|
+
function isObject(data) {
|
|
93
|
+
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
94
|
+
}
|
|
95
|
+
const allowsEval = cached(() => {
|
|
96
|
+
var _a;
|
|
97
|
+
if (typeof navigator !== "undefined" && ((_a = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : _a.includes("Cloudflare"))) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
try {
|
|
101
|
+
const F = Function;
|
|
102
|
+
new F("");
|
|
103
|
+
return true;
|
|
104
|
+
} catch (_) {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
function isPlainObject(o) {
|
|
109
|
+
if (isObject(o) === false)
|
|
110
|
+
return false;
|
|
111
|
+
const ctor = o.constructor;
|
|
112
|
+
if (ctor === void 0)
|
|
113
|
+
return true;
|
|
114
|
+
if (typeof ctor !== "function")
|
|
115
|
+
return true;
|
|
116
|
+
const prot = ctor.prototype;
|
|
117
|
+
if (isObject(prot) === false)
|
|
118
|
+
return false;
|
|
119
|
+
if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
function shallowClone(o) {
|
|
125
|
+
if (isPlainObject(o))
|
|
126
|
+
return { ...o };
|
|
127
|
+
if (Array.isArray(o))
|
|
128
|
+
return [...o];
|
|
129
|
+
return o;
|
|
130
|
+
}
|
|
131
|
+
const propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
132
|
+
function escapeRegex(str) {
|
|
133
|
+
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
134
|
+
}
|
|
135
|
+
function clone(inst, def, params) {
|
|
136
|
+
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
137
|
+
if (!def || (params == null ? void 0 : params.parent))
|
|
138
|
+
cl._zod.parent = inst;
|
|
139
|
+
return cl;
|
|
140
|
+
}
|
|
141
|
+
function normalizeParams(_params) {
|
|
142
|
+
const params = _params;
|
|
143
|
+
if (!params)
|
|
144
|
+
return {};
|
|
145
|
+
if (typeof params === "string")
|
|
146
|
+
return { error: () => params };
|
|
147
|
+
if ((params == null ? void 0 : params.message) !== void 0) {
|
|
148
|
+
if ((params == null ? void 0 : params.error) !== void 0)
|
|
149
|
+
throw new Error("Cannot specify both `message` and `error` params");
|
|
150
|
+
params.error = params.message;
|
|
151
|
+
}
|
|
152
|
+
delete params.message;
|
|
153
|
+
if (typeof params.error === "string")
|
|
154
|
+
return { ...params, error: () => params.error };
|
|
155
|
+
return params;
|
|
156
|
+
}
|
|
157
|
+
function optionalKeys(shape) {
|
|
158
|
+
return Object.keys(shape).filter((k) => {
|
|
159
|
+
return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
const NUMBER_FORMAT_RANGES = {
|
|
163
|
+
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
164
|
+
int32: [-2147483648, 2147483647],
|
|
165
|
+
uint32: [0, 4294967295],
|
|
166
|
+
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
167
|
+
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
168
|
+
};
|
|
169
|
+
function pick(schema, mask) {
|
|
170
|
+
const currDef = schema._zod.def;
|
|
171
|
+
const checks = currDef.checks;
|
|
172
|
+
const hasChecks = checks && checks.length > 0;
|
|
173
|
+
if (hasChecks) {
|
|
174
|
+
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
175
|
+
}
|
|
176
|
+
const def = mergeDefs(schema._zod.def, {
|
|
177
|
+
get shape() {
|
|
178
|
+
const newShape = {};
|
|
179
|
+
for (const key in mask) {
|
|
180
|
+
if (!(key in currDef.shape)) {
|
|
181
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
182
|
+
}
|
|
183
|
+
if (!mask[key])
|
|
184
|
+
continue;
|
|
185
|
+
newShape[key] = currDef.shape[key];
|
|
186
|
+
}
|
|
187
|
+
assignProp(this, "shape", newShape);
|
|
188
|
+
return newShape;
|
|
189
|
+
},
|
|
190
|
+
checks: []
|
|
191
|
+
});
|
|
192
|
+
return clone(schema, def);
|
|
193
|
+
}
|
|
194
|
+
function omit(schema, mask) {
|
|
195
|
+
const currDef = schema._zod.def;
|
|
196
|
+
const checks = currDef.checks;
|
|
197
|
+
const hasChecks = checks && checks.length > 0;
|
|
198
|
+
if (hasChecks) {
|
|
199
|
+
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
200
|
+
}
|
|
201
|
+
const def = mergeDefs(schema._zod.def, {
|
|
202
|
+
get shape() {
|
|
203
|
+
const newShape = { ...schema._zod.def.shape };
|
|
204
|
+
for (const key in mask) {
|
|
205
|
+
if (!(key in currDef.shape)) {
|
|
206
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
207
|
+
}
|
|
208
|
+
if (!mask[key])
|
|
209
|
+
continue;
|
|
210
|
+
delete newShape[key];
|
|
211
|
+
}
|
|
212
|
+
assignProp(this, "shape", newShape);
|
|
213
|
+
return newShape;
|
|
214
|
+
},
|
|
215
|
+
checks: []
|
|
216
|
+
});
|
|
217
|
+
return clone(schema, def);
|
|
218
|
+
}
|
|
219
|
+
function extend(schema, shape) {
|
|
220
|
+
if (!isPlainObject(shape)) {
|
|
221
|
+
throw new Error("Invalid input to extend: expected a plain object");
|
|
222
|
+
}
|
|
223
|
+
const checks = schema._zod.def.checks;
|
|
224
|
+
const hasChecks = checks && checks.length > 0;
|
|
225
|
+
if (hasChecks) {
|
|
226
|
+
const existingShape = schema._zod.def.shape;
|
|
227
|
+
for (const key in shape) {
|
|
228
|
+
if (Object.getOwnPropertyDescriptor(existingShape, key) !== void 0) {
|
|
229
|
+
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
const def = mergeDefs(schema._zod.def, {
|
|
234
|
+
get shape() {
|
|
235
|
+
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
236
|
+
assignProp(this, "shape", _shape);
|
|
237
|
+
return _shape;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
return clone(schema, def);
|
|
241
|
+
}
|
|
242
|
+
function safeExtend(schema, shape) {
|
|
243
|
+
if (!isPlainObject(shape)) {
|
|
244
|
+
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
245
|
+
}
|
|
246
|
+
const def = mergeDefs(schema._zod.def, {
|
|
247
|
+
get shape() {
|
|
248
|
+
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
249
|
+
assignProp(this, "shape", _shape);
|
|
250
|
+
return _shape;
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
return clone(schema, def);
|
|
254
|
+
}
|
|
255
|
+
function merge(a, b) {
|
|
256
|
+
const def = mergeDefs(a._zod.def, {
|
|
257
|
+
get shape() {
|
|
258
|
+
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
259
|
+
assignProp(this, "shape", _shape);
|
|
260
|
+
return _shape;
|
|
261
|
+
},
|
|
262
|
+
get catchall() {
|
|
263
|
+
return b._zod.def.catchall;
|
|
264
|
+
},
|
|
265
|
+
checks: []
|
|
266
|
+
// delete existing checks
|
|
267
|
+
});
|
|
268
|
+
return clone(a, def);
|
|
269
|
+
}
|
|
270
|
+
function partial(Class, schema, mask) {
|
|
271
|
+
const currDef = schema._zod.def;
|
|
272
|
+
const checks = currDef.checks;
|
|
273
|
+
const hasChecks = checks && checks.length > 0;
|
|
274
|
+
if (hasChecks) {
|
|
275
|
+
throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
276
|
+
}
|
|
277
|
+
const def = mergeDefs(schema._zod.def, {
|
|
278
|
+
get shape() {
|
|
279
|
+
const oldShape = schema._zod.def.shape;
|
|
280
|
+
const shape = { ...oldShape };
|
|
281
|
+
if (mask) {
|
|
282
|
+
for (const key in mask) {
|
|
283
|
+
if (!(key in oldShape)) {
|
|
284
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
285
|
+
}
|
|
286
|
+
if (!mask[key])
|
|
287
|
+
continue;
|
|
288
|
+
shape[key] = Class ? new Class({
|
|
289
|
+
type: "optional",
|
|
290
|
+
innerType: oldShape[key]
|
|
291
|
+
}) : oldShape[key];
|
|
292
|
+
}
|
|
293
|
+
} else {
|
|
294
|
+
for (const key in oldShape) {
|
|
295
|
+
shape[key] = Class ? new Class({
|
|
296
|
+
type: "optional",
|
|
297
|
+
innerType: oldShape[key]
|
|
298
|
+
}) : oldShape[key];
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
assignProp(this, "shape", shape);
|
|
302
|
+
return shape;
|
|
303
|
+
},
|
|
304
|
+
checks: []
|
|
305
|
+
});
|
|
306
|
+
return clone(schema, def);
|
|
307
|
+
}
|
|
308
|
+
function required(Class, schema, mask) {
|
|
309
|
+
const def = mergeDefs(schema._zod.def, {
|
|
310
|
+
get shape() {
|
|
311
|
+
const oldShape = schema._zod.def.shape;
|
|
312
|
+
const shape = { ...oldShape };
|
|
313
|
+
if (mask) {
|
|
314
|
+
for (const key in mask) {
|
|
315
|
+
if (!(key in shape)) {
|
|
316
|
+
throw new Error(`Unrecognized key: "${key}"`);
|
|
317
|
+
}
|
|
318
|
+
if (!mask[key])
|
|
319
|
+
continue;
|
|
320
|
+
shape[key] = new Class({
|
|
321
|
+
type: "nonoptional",
|
|
322
|
+
innerType: oldShape[key]
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
} else {
|
|
326
|
+
for (const key in oldShape) {
|
|
327
|
+
shape[key] = new Class({
|
|
328
|
+
type: "nonoptional",
|
|
329
|
+
innerType: oldShape[key]
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
assignProp(this, "shape", shape);
|
|
334
|
+
return shape;
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
return clone(schema, def);
|
|
338
|
+
}
|
|
339
|
+
function aborted(x, startIndex = 0) {
|
|
340
|
+
var _a;
|
|
341
|
+
if (x.aborted === true)
|
|
342
|
+
return true;
|
|
343
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
344
|
+
if (((_a = x.issues[i]) == null ? void 0 : _a.continue) !== true) {
|
|
345
|
+
return true;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return false;
|
|
349
|
+
}
|
|
350
|
+
function prefixIssues(path, issues) {
|
|
351
|
+
return issues.map((iss) => {
|
|
352
|
+
var _a;
|
|
353
|
+
(_a = iss).path ?? (_a.path = []);
|
|
354
|
+
iss.path.unshift(path);
|
|
355
|
+
return iss;
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
function unwrapMessage(message) {
|
|
359
|
+
return typeof message === "string" ? message : message == null ? void 0 : message.message;
|
|
360
|
+
}
|
|
361
|
+
function finalizeIssue(iss, ctx, config) {
|
|
362
|
+
var _a, _b, _c, _d, _e, _f;
|
|
363
|
+
const full = { ...iss, path: iss.path ?? [] };
|
|
364
|
+
if (!iss.message) {
|
|
365
|
+
const message = unwrapMessage((_c = (_b = (_a = iss.inst) == null ? void 0 : _a._zod.def) == null ? void 0 : _b.error) == null ? void 0 : _c.call(_b, iss)) ?? unwrapMessage((_d = ctx == null ? void 0 : ctx.error) == null ? void 0 : _d.call(ctx, iss)) ?? unwrapMessage((_e = config.customError) == null ? void 0 : _e.call(config, iss)) ?? unwrapMessage((_f = config.localeError) == null ? void 0 : _f.call(config, iss)) ?? "Invalid input";
|
|
366
|
+
full.message = message;
|
|
367
|
+
}
|
|
368
|
+
delete full.inst;
|
|
369
|
+
delete full.continue;
|
|
370
|
+
if (!(ctx == null ? void 0 : ctx.reportInput)) {
|
|
371
|
+
delete full.input;
|
|
372
|
+
}
|
|
373
|
+
return full;
|
|
374
|
+
}
|
|
375
|
+
function getLengthableOrigin(input) {
|
|
376
|
+
if (Array.isArray(input))
|
|
377
|
+
return "array";
|
|
378
|
+
if (typeof input === "string")
|
|
379
|
+
return "string";
|
|
380
|
+
return "unknown";
|
|
381
|
+
}
|
|
382
|
+
function issue(...args) {
|
|
383
|
+
const [iss, input, inst] = args;
|
|
384
|
+
if (typeof iss === "string") {
|
|
385
|
+
return {
|
|
386
|
+
message: iss,
|
|
387
|
+
code: "custom",
|
|
388
|
+
input,
|
|
389
|
+
inst
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
return { ...iss };
|
|
393
|
+
}
|
|
394
|
+
export {
|
|
395
|
+
NUMBER_FORMAT_RANGES,
|
|
396
|
+
aborted,
|
|
397
|
+
allowsEval,
|
|
398
|
+
assignProp,
|
|
399
|
+
cached,
|
|
400
|
+
captureStackTrace,
|
|
401
|
+
cleanRegex,
|
|
402
|
+
clone,
|
|
403
|
+
defineLazy,
|
|
404
|
+
esc,
|
|
405
|
+
escapeRegex,
|
|
406
|
+
extend,
|
|
407
|
+
finalizeIssue,
|
|
408
|
+
floatSafeRemainder,
|
|
409
|
+
getEnumValues,
|
|
410
|
+
getLengthableOrigin,
|
|
411
|
+
isObject,
|
|
412
|
+
isPlainObject,
|
|
413
|
+
issue,
|
|
414
|
+
jsonStringifyReplacer,
|
|
415
|
+
merge,
|
|
416
|
+
mergeDefs,
|
|
417
|
+
normalizeParams,
|
|
418
|
+
nullish,
|
|
419
|
+
omit,
|
|
420
|
+
optionalKeys,
|
|
421
|
+
partial,
|
|
422
|
+
pick,
|
|
423
|
+
prefixIssues,
|
|
424
|
+
propertyKeyTypes,
|
|
425
|
+
required,
|
|
426
|
+
safeExtend,
|
|
427
|
+
shallowClone,
|
|
428
|
+
slugify,
|
|
429
|
+
unwrapMessage
|
|
430
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dune-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -418,6 +418,7 @@
|
|
|
418
418
|
"embla-carousel-autoplay": "8.6.0",
|
|
419
419
|
"react-error-boundary": "6.1.1",
|
|
420
420
|
"react-icons": "5.6.0",
|
|
421
|
-
"shadcn": "4.0.8"
|
|
421
|
+
"shadcn": "4.0.8",
|
|
422
|
+
"zod": "4.3.6"
|
|
422
423
|
}
|
|
423
424
|
}
|