@opensite/ui 0.5.3 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/about-company-profile.cjs +11 -11
- package/dist/about-company-profile.js +12 -11
- package/dist/about-developer-profile.cjs +11 -11
- package/dist/about-developer-profile.js +12 -11
- package/dist/about-developer-story.cjs +11 -11
- package/dist/about-developer-story.js +12 -11
- package/dist/about-interactive-tabs.cjs +10 -5
- package/dist/about-interactive-tabs.js +12 -6
- package/dist/about-location-info-hero.cjs +14 -14
- package/dist/about-location-info-hero.js +15 -15
- package/dist/about-minimal-story.cjs +5 -4
- package/dist/about-minimal-story.js +6 -5
- package/dist/about-mission-dual-image.cjs +5 -5
- package/dist/about-mission-dual-image.js +6 -5
- package/dist/about-mission-features.cjs +5 -4
- package/dist/about-mission-features.js +6 -5
- package/dist/about-network-spotlight.cjs +12 -134
- package/dist/about-network-spotlight.js +13 -135
- package/dist/about-startup-team.cjs +10 -12
- package/dist/about-startup-team.js +11 -12
- package/dist/about-stats-showcase.cjs +17 -16
- package/dist/about-stats-showcase.js +17 -16
- package/dist/about-stats-sidebar.cjs +8 -7
- package/dist/about-stats-sidebar.js +8 -7
- package/dist/about-story-expertise.cjs +17 -139
- package/dist/about-story-expertise.js +18 -140
- package/dist/about-story-gallery.cjs +6 -9
- package/dist/about-story-gallery.js +6 -9
- package/dist/about-story-hero.cjs +6 -9
- package/dist/about-story-hero.js +7 -10
- package/dist/about-streamline-team.cjs +10 -10
- package/dist/about-streamline-team.js +11 -10
- package/dist/about-vision-gallery.cjs +33 -40
- package/dist/about-vision-gallery.d.cts +44 -24
- package/dist/about-vision-gallery.d.ts +44 -24
- package/dist/about-vision-gallery.js +34 -40
- package/dist/alternating-blocks.cjs +5 -5
- package/dist/alternating-blocks.js +5 -5
- package/dist/article-breadcrumb-social.cjs +35 -41
- package/dist/article-breadcrumb-social.d.cts +0 -2
- package/dist/article-breadcrumb-social.d.ts +0 -2
- package/dist/article-breadcrumb-social.js +35 -41
- package/dist/article-chapters-author.cjs +80 -80
- package/dist/article-chapters-author.js +79 -79
- package/dist/article-compact-toc.cjs +31 -30
- package/dist/article-compact-toc.js +30 -29
- package/dist/article-hero-prose.cjs +9 -9
- package/dist/article-hero-prose.d.cts +5 -5
- package/dist/article-hero-prose.d.ts +5 -5
- package/dist/article-hero-prose.js +9 -9
- package/dist/article-sidebar-sticky.cjs +12 -11
- package/dist/article-sidebar-sticky.js +12 -11
- package/dist/article-split-animated.cjs +23 -142
- package/dist/article-split-animated.js +23 -142
- package/dist/article-toc-sidebar.cjs +31 -31
- package/dist/article-toc-sidebar.js +30 -30
- package/dist/banner-announcement-dismissible.cjs +37 -17
- package/dist/banner-announcement-dismissible.d.cts +0 -2
- package/dist/banner-announcement-dismissible.d.ts +0 -2
- package/dist/banner-announcement-dismissible.js +38 -18
- package/dist/banner-countdown-sale.cjs +19 -11
- package/dist/banner-countdown-sale.d.cts +0 -1
- package/dist/banner-countdown-sale.d.ts +0 -1
- package/dist/banner-countdown-sale.js +21 -13
- package/dist/banner-delivery-countdown.cjs +29 -24
- package/dist/banner-delivery-countdown.d.cts +0 -2
- package/dist/banner-delivery-countdown.d.ts +0 -2
- package/dist/banner-delivery-countdown.js +30 -25
- package/dist/banner-event-promo.cjs +28 -13
- package/dist/banner-event-promo.js +29 -13
- package/dist/banner-floating-offer.cjs +42 -24
- package/dist/banner-floating-offer.d.cts +0 -3
- package/dist/banner-floating-offer.d.ts +0 -3
- package/dist/banner-floating-offer.js +43 -25
- package/dist/banner-gdpr-rights.cjs +36 -19
- package/dist/banner-gdpr-rights.d.cts +3 -5
- package/dist/banner-gdpr-rights.d.ts +3 -5
- package/dist/banner-gdpr-rights.js +37 -20
- package/dist/banner-privacy-notice.cjs +34 -17
- package/dist/banner-privacy-notice.d.cts +0 -2
- package/dist/banner-privacy-notice.d.ts +0 -2
- package/dist/banner-privacy-notice.js +35 -18
- package/dist/banner-promo-cta.cjs +27 -12
- package/dist/banner-promo-cta.js +28 -12
- package/dist/banner-social-follow.cjs +37 -17
- package/dist/banner-social-follow.d.cts +0 -2
- package/dist/banner-social-follow.d.ts +0 -2
- package/dist/banner-social-follow.js +38 -18
- package/dist/banner-survey-incentive.cjs +34 -17
- package/dist/banner-survey-incentive.d.cts +0 -2
- package/dist/banner-survey-incentive.d.ts +0 -2
- package/dist/banner-survey-incentive.js +35 -18
- package/dist/blog-cards-read-time.cjs +408 -24
- package/dist/blog-cards-read-time.d.cts +20 -1
- package/dist/blog-cards-read-time.d.ts +20 -1
- package/dist/blog-cards-read-time.js +409 -24
- package/dist/blog-cards-tagline-cta.cjs +406 -19
- package/dist/blog-cards-tagline-cta.d.cts +20 -1
- package/dist/blog-cards-tagline-cta.d.ts +20 -1
- package/dist/blog-cards-tagline-cta.js +407 -19
- package/dist/blog-category-overlay.cjs +407 -20
- package/dist/blog-category-overlay.d.cts +27 -8
- package/dist/blog-category-overlay.d.ts +27 -8
- package/dist/blog-category-overlay.js +408 -20
- package/dist/blog-featured-popular.cjs +406 -19
- package/dist/blog-featured-popular.d.cts +20 -1
- package/dist/blog-featured-popular.d.ts +20 -1
- package/dist/blog-featured-popular.js +407 -19
- package/dist/blog-filtered-results.cjs +457 -71
- package/dist/blog-filtered-results.d.cts +38 -19
- package/dist/blog-filtered-results.d.ts +38 -19
- package/dist/blog-filtered-results.js +455 -69
- package/dist/blog-grid-author-cards.cjs +408 -20
- package/dist/blog-grid-author-cards.d.cts +28 -9
- package/dist/blog-grid-author-cards.d.ts +28 -9
- package/dist/blog-grid-author-cards.js +409 -20
- package/dist/blog-grid-nine-posts.cjs +403 -16
- package/dist/blog-grid-nine-posts.d.cts +24 -5
- package/dist/blog-grid-nine-posts.d.ts +24 -5
- package/dist/blog-grid-nine-posts.js +404 -16
- package/dist/blog-horizontal-cards.cjs +407 -20
- package/dist/blog-horizontal-cards.d.cts +21 -2
- package/dist/blog-horizontal-cards.d.ts +21 -2
- package/dist/blog-horizontal-cards.js +408 -20
- package/dist/blog-horizontal-timeline.cjs +401 -14
- package/dist/blog-horizontal-timeline.d.cts +28 -9
- package/dist/blog-horizontal-timeline.d.ts +28 -9
- package/dist/blog-horizontal-timeline.js +402 -14
- package/dist/blog-masonry-featured.cjs +405 -18
- package/dist/blog-masonry-featured.d.cts +28 -9
- package/dist/blog-masonry-featured.d.ts +28 -9
- package/dist/blog-masonry-featured.js +406 -18
- package/dist/blog-related-articles.cjs +401 -14
- package/dist/blog-related-articles.d.cts +20 -1
- package/dist/blog-related-articles.d.ts +20 -1
- package/dist/blog-related-articles.js +402 -14
- package/dist/blog-tech-insights.cjs +410 -23
- package/dist/blog-tech-insights.d.cts +31 -12
- package/dist/blog-tech-insights.d.ts +31 -12
- package/dist/blog-tech-insights.js +411 -23
- package/dist/case-studies-featured-border.cjs +423 -14
- package/dist/case-studies-featured-border.d.cts +20 -1
- package/dist/case-studies-featured-border.d.ts +20 -1
- package/dist/case-studies-featured-border.js +424 -14
- package/dist/case-studies-image-grid.cjs +404 -7
- package/dist/case-studies-image-grid.d.cts +20 -1
- package/dist/case-studies-image-grid.d.ts +20 -1
- package/dist/case-studies-image-grid.js +405 -7
- package/dist/case-studies-stats-card.cjs +416 -29
- package/dist/case-studies-stats-card.d.cts +20 -1
- package/dist/case-studies-stats-card.d.ts +20 -1
- package/dist/case-studies-stats-card.js +417 -29
- package/dist/case-studies-testimonial-stats.cjs +409 -10
- package/dist/case-studies-testimonial-stats.d.cts +20 -1
- package/dist/case-studies-testimonial-stats.d.ts +20 -1
- package/dist/case-studies-testimonial-stats.js +409 -10
- package/dist/case-study-prose-sidebar.cjs +414 -23
- package/dist/case-study-prose-sidebar.d.cts +34 -15
- package/dist/case-study-prose-sidebar.d.ts +34 -15
- package/dist/case-study-prose-sidebar.js +415 -23
- package/dist/case-study-stats-metrics.cjs +443 -43
- package/dist/case-study-stats-metrics.d.cts +39 -20
- package/dist/case-study-stats-metrics.d.ts +39 -20
- package/dist/case-study-stats-metrics.js +444 -43
- package/dist/case-study-toc-social-sidebar.cjs +436 -46
- package/dist/case-study-toc-social-sidebar.d.cts +36 -17
- package/dist/case-study-toc-social-sidebar.d.ts +36 -17
- package/dist/case-study-toc-social-sidebar.js +437 -47
- package/dist/comparison-ai-models.cjs +498 -77
- package/dist/comparison-ai-models.d.cts +25 -7
- package/dist/comparison-ai-models.d.ts +25 -7
- package/dist/comparison-ai-models.js +497 -76
- package/dist/comparison-feature-cards.cjs +492 -80
- package/dist/comparison-feature-cards.d.cts +25 -6
- package/dist/comparison-feature-cards.d.ts +25 -6
- package/dist/comparison-feature-cards.js +492 -79
- package/dist/comparison-feature-grid.cjs +475 -47
- package/dist/comparison-feature-grid.d.cts +24 -1
- package/dist/comparison-feature-grid.d.ts +24 -1
- package/dist/comparison-feature-grid.js +476 -47
- package/dist/comparison-grid-badges.cjs +422 -25
- package/dist/comparison-grid-badges.d.cts +26 -3
- package/dist/comparison-grid-badges.d.ts +26 -3
- package/dist/comparison-grid-badges.js +423 -25
- package/dist/comparison-image-cards.cjs +450 -36
- package/dist/comparison-image-cards.d.cts +23 -4
- package/dist/comparison-image-cards.d.ts +23 -4
- package/dist/comparison-image-cards.js +451 -36
- package/dist/comparison-legacy-modern.cjs +442 -41
- package/dist/comparison-legacy-modern.d.cts +29 -6
- package/dist/comparison-legacy-modern.d.ts +29 -6
- package/dist/comparison-legacy-modern.js +443 -41
- package/dist/comparison-metrics-rows.cjs +478 -47
- package/dist/comparison-metrics-rows.d.cts +20 -1
- package/dist/comparison-metrics-rows.d.ts +20 -1
- package/dist/comparison-metrics-rows.js +479 -47
- package/dist/comparison-table-tabs.cjs +423 -13
- package/dist/comparison-table-tabs.d.cts +25 -2
- package/dist/comparison-table-tabs.d.ts +25 -2
- package/dist/comparison-table-tabs.js +424 -14
- package/dist/comparison-table-tooltips.cjs +443 -37
- package/dist/comparison-table-tooltips.d.cts +24 -1
- package/dist/comparison-table-tooltips.d.ts +24 -1
- package/dist/comparison-table-tooltips.js +443 -37
- package/dist/comparison-table-two-column.cjs +463 -53
- package/dist/comparison-table-two-column.d.cts +24 -6
- package/dist/comparison-table-two-column.d.ts +24 -6
- package/dist/comparison-table-two-column.js +464 -53
- package/dist/components.cjs +8 -8
- package/dist/components.js +9 -9
- package/dist/contact-callback.cjs +577 -190
- package/dist/contact-callback.d.cts +35 -1
- package/dist/contact-callback.d.ts +35 -1
- package/dist/contact-callback.js +578 -190
- package/dist/contact-card.cjs +502 -115
- package/dist/contact-card.d.cts +20 -1
- package/dist/contact-card.d.ts +20 -1
- package/dist/contact-card.js +503 -115
- package/dist/contact-careers.cjs +628 -241
- package/dist/contact-careers.d.cts +20 -2
- package/dist/contact-careers.d.ts +20 -2
- package/dist/contact-careers.js +629 -242
- package/dist/contact-catering.cjs +664 -277
- package/dist/contact-catering.d.cts +20 -1
- package/dist/contact-catering.d.ts +20 -1
- package/dist/contact-catering.js +665 -277
- package/dist/contact-consultation.cjs +567 -180
- package/dist/contact-consultation.d.cts +20 -2
- package/dist/contact-consultation.d.ts +20 -2
- package/dist/contact-consultation.js +568 -180
- package/dist/contact-dark.cjs +486 -99
- package/dist/contact-dark.d.cts +20 -2
- package/dist/contact-dark.d.ts +20 -2
- package/dist/contact-dark.js +487 -99
- package/dist/contact-demo.cjs +558 -171
- package/dist/contact-demo.d.cts +20 -2
- package/dist/contact-demo.d.ts +20 -2
- package/dist/contact-demo.js +559 -171
- package/dist/contact-emergency.cjs +571 -184
- package/dist/contact-emergency.d.cts +20 -2
- package/dist/contact-emergency.d.ts +20 -2
- package/dist/contact-emergency.js +572 -184
- package/dist/contact-event.cjs +489 -102
- package/dist/contact-event.d.cts +20 -2
- package/dist/contact-event.d.ts +20 -2
- package/dist/contact-event.js +490 -102
- package/dist/contact-faq.cjs +478 -91
- package/dist/contact-faq.d.cts +20 -2
- package/dist/contact-faq.d.ts +20 -2
- package/dist/contact-faq.js +479 -91
- package/dist/contact-feedback.cjs +450 -63
- package/dist/contact-feedback.d.cts +20 -2
- package/dist/contact-feedback.d.ts +20 -2
- package/dist/contact-feedback.js +451 -63
- package/dist/contact-fitness.cjs +489 -102
- package/dist/contact-fitness.d.cts +20 -2
- package/dist/contact-fitness.d.ts +20 -2
- package/dist/contact-fitness.js +490 -102
- package/dist/contact-floating-banner.cjs +5 -5
- package/dist/contact-floating-banner.js +5 -5
- package/dist/contact-guest.cjs +489 -102
- package/dist/contact-guest.d.cts +20 -2
- package/dist/contact-guest.d.ts +20 -2
- package/dist/contact-guest.js +490 -102
- package/dist/contact-image.cjs +489 -102
- package/dist/contact-image.d.cts +20 -2
- package/dist/contact-image.d.ts +20 -2
- package/dist/contact-image.js +490 -102
- package/dist/contact-insurance.cjs +489 -102
- package/dist/contact-insurance.d.cts +20 -2
- package/dist/contact-insurance.d.ts +20 -2
- package/dist/contact-insurance.js +490 -102
- package/dist/contact-interview.cjs +489 -102
- package/dist/contact-interview.d.cts +20 -2
- package/dist/contact-interview.d.ts +20 -2
- package/dist/contact-interview.js +490 -102
- package/dist/contact-locations.cjs +489 -102
- package/dist/contact-locations.d.cts +20 -2
- package/dist/contact-locations.d.ts +20 -2
- package/dist/contact-locations.js +490 -102
- package/dist/contact-maintenance.cjs +489 -102
- package/dist/contact-maintenance.d.cts +20 -2
- package/dist/contact-maintenance.d.ts +20 -2
- package/dist/contact-maintenance.js +490 -102
- package/dist/contact-map.cjs +489 -102
- package/dist/contact-map.d.cts +20 -2
- package/dist/contact-map.d.ts +20 -2
- package/dist/contact-map.js +490 -102
- package/dist/contact-minimal.cjs +466 -79
- package/dist/contact-minimal.d.cts +32 -1
- package/dist/contact-minimal.d.ts +32 -1
- package/dist/contact-minimal.js +467 -79
- package/dist/contact-moving.cjs +489 -102
- package/dist/contact-moving.d.cts +20 -2
- package/dist/contact-moving.d.ts +20 -2
- package/dist/contact-moving.js +490 -102
- package/dist/contact-multistep.cjs +489 -102
- package/dist/contact-multistep.d.cts +20 -2
- package/dist/contact-multistep.d.ts +20 -2
- package/dist/contact-multistep.js +490 -102
- package/dist/contact-partnership.cjs +489 -102
- package/dist/contact-partnership.d.cts +20 -2
- package/dist/contact-partnership.d.ts +20 -2
- package/dist/contact-partnership.js +490 -102
- package/dist/contact-photography.cjs +489 -102
- package/dist/contact-photography.d.cts +20 -2
- package/dist/contact-photography.d.ts +20 -2
- package/dist/contact-photography.js +490 -102
- package/dist/contact-press.cjs +489 -102
- package/dist/contact-press.d.cts +20 -2
- package/dist/contact-press.d.ts +20 -2
- package/dist/contact-press.js +490 -102
- package/dist/contact-quote.cjs +489 -102
- package/dist/contact-quote.d.cts +20 -2
- package/dist/contact-quote.d.ts +20 -2
- package/dist/contact-quote.js +490 -102
- package/dist/contact-referral.cjs +489 -102
- package/dist/contact-referral.d.cts +20 -2
- package/dist/contact-referral.d.ts +20 -2
- package/dist/contact-referral.js +490 -102
- package/dist/contact-report.cjs +489 -102
- package/dist/contact-report.d.cts +20 -2
- package/dist/contact-report.d.ts +20 -2
- package/dist/contact-report.js +490 -102
- package/dist/contact-reservation.cjs +489 -102
- package/dist/contact-reservation.d.cts +20 -2
- package/dist/contact-reservation.d.ts +20 -2
- package/dist/contact-reservation.js +490 -102
- package/dist/contact-retreat.cjs +489 -102
- package/dist/contact-retreat.d.cts +20 -2
- package/dist/contact-retreat.d.ts +20 -2
- package/dist/contact-retreat.js +490 -102
- package/dist/contact-rsvp.cjs +489 -102
- package/dist/contact-rsvp.d.cts +20 -2
- package/dist/contact-rsvp.d.ts +20 -2
- package/dist/contact-rsvp.js +490 -102
- package/dist/contact-sales.cjs +489 -102
- package/dist/contact-sales.d.cts +20 -1
- package/dist/contact-sales.d.ts +20 -1
- package/dist/contact-sales.js +490 -102
- package/dist/contact-schedule.cjs +489 -102
- package/dist/contact-schedule.d.cts +20 -2
- package/dist/contact-schedule.d.ts +20 -2
- package/dist/contact-schedule.js +490 -102
- package/dist/contact-sponsorship.cjs +489 -102
- package/dist/contact-sponsorship.d.cts +20 -2
- package/dist/contact-sponsorship.d.ts +20 -2
- package/dist/contact-sponsorship.js +490 -102
- package/dist/contact-support.cjs +463 -76
- package/dist/contact-support.d.cts +20 -2
- package/dist/contact-support.d.ts +20 -2
- package/dist/contact-support.js +464 -76
- package/dist/contact-tenant.cjs +489 -102
- package/dist/contact-tenant.d.cts +20 -2
- package/dist/contact-tenant.d.ts +20 -2
- package/dist/contact-tenant.js +490 -102
- package/dist/contact-vendor.cjs +489 -102
- package/dist/contact-vendor.d.cts +20 -2
- package/dist/contact-vendor.d.ts +20 -2
- package/dist/contact-vendor.js +490 -102
- package/dist/contact-volunteer.cjs +489 -102
- package/dist/contact-volunteer.d.cts +20 -2
- package/dist/contact-volunteer.d.ts +20 -2
- package/dist/contact-volunteer.js +490 -102
- package/dist/contact-warranty.cjs +489 -102
- package/dist/contact-warranty.d.cts +20 -2
- package/dist/contact-warranty.d.ts +20 -2
- package/dist/contact-warranty.js +490 -102
- package/dist/contact-wedding.cjs +489 -102
- package/dist/contact-wedding.d.cts +20 -2
- package/dist/contact-wedding.d.ts +20 -2
- package/dist/contact-wedding.js +490 -102
- package/dist/cta-accent-background.cjs +11 -11
- package/dist/cta-accent-background.js +12 -12
- package/dist/cta-app-download-newsletter.cjs +16 -135
- package/dist/cta-app-download-newsletter.js +17 -136
- package/dist/cta-background-icon-badge.cjs +12 -131
- package/dist/cta-background-icon-badge.js +13 -132
- package/dist/cta-case-study-testimonial.cjs +31 -154
- package/dist/cta-case-study-testimonial.js +32 -155
- package/dist/cta-documentation-links.cjs +15 -15
- package/dist/cta-documentation-links.js +16 -16
- package/dist/cta-enterprise-dark-features.cjs +21 -21
- package/dist/cta-enterprise-dark-features.js +22 -22
- package/dist/cta-enterprise-split.cjs +14 -14
- package/dist/cta-enterprise-split.js +15 -15
- package/dist/cta-feature-cards-grid.cjs +16 -16
- package/dist/cta-feature-cards-grid.js +17 -17
- package/dist/cta-feature-checklist.cjs +14 -14
- package/dist/cta-feature-checklist.js +15 -15
- package/dist/cta-feature-list.cjs +16 -135
- package/dist/cta-feature-list.js +17 -136
- package/dist/cta-fullwidth-background.cjs +14 -133
- package/dist/cta-fullwidth-background.js +15 -134
- package/dist/cta-gradient-logos-floating.cjs +17 -17
- package/dist/cta-gradient-logos-floating.js +18 -18
- package/dist/cta-gradient-stats-hero.cjs +16 -16
- package/dist/cta-gradient-stats-hero.js +17 -17
- package/dist/cta-hero-feature-cards.cjs +36 -136
- package/dist/cta-hero-feature-cards.js +37 -137
- package/dist/cta-image-overlay-arrow.cjs +12 -131
- package/dist/cta-image-overlay-arrow.js +13 -132
- package/dist/cta-image-overlay-centered.cjs +12 -131
- package/dist/cta-image-overlay-centered.js +13 -132
- package/dist/cta-minimal-separator.cjs +8 -8
- package/dist/cta-minimal-separator.js +9 -9
- package/dist/cta-newsletter-features.cjs +14 -14
- package/dist/cta-newsletter-features.js +15 -15
- package/dist/cta-pattern-background.cjs +11 -11
- package/dist/cta-pattern-background.js +12 -12
- package/dist/cta-platform-demo.cjs +16 -139
- package/dist/cta-platform-demo.js +17 -140
- package/dist/cta-simple-centered.cjs +11 -11
- package/dist/cta-simple-centered.js +12 -12
- package/dist/cta-split-gradient-image.cjs +14 -133
- package/dist/cta-split-gradient-image.js +15 -134
- package/dist/cta-split-image-logos.cjs +17 -136
- package/dist/cta-split-image-logos.js +18 -137
- package/dist/cta-split-image.cjs +60 -174
- package/dist/cta-split-image.js +61 -175
- package/dist/cta-stacked-cards.cjs +11 -11
- package/dist/cta-stacked-cards.js +12 -12
- package/dist/cta-video-background-hero.cjs +16 -100
- package/dist/cta-video-background-hero.js +17 -101
- package/dist/cta-workflow-tabs.cjs +18 -137
- package/dist/cta-workflow-tabs.js +19 -138
- package/dist/hero-ad-campaign-expert.cjs +2 -2
- package/dist/hero-ad-campaign-expert.js +2 -2
- package/dist/hero-adaptable-product-grid.cjs +2 -2
- package/dist/hero-adaptable-product-grid.js +2 -2
- package/dist/hero-agency-animated-images.cjs +2 -2
- package/dist/hero-agency-animated-images.js +2 -2
- package/dist/hero-ai-powered-carousel.cjs +2 -2
- package/dist/hero-ai-powered-carousel.js +2 -2
- package/dist/hero-announcement-badge.cjs +2 -2
- package/dist/hero-announcement-badge.js +2 -2
- package/dist/hero-architecture-fullscreen.cjs +2 -2
- package/dist/hero-architecture-fullscreen.js +2 -2
- package/dist/hero-badge-image-split.cjs +2 -2
- package/dist/hero-badge-image-split.js +2 -2
- package/dist/hero-badge-shadow-overlay.cjs +2 -2
- package/dist/hero-badge-shadow-overlay.js +2 -2
- package/dist/hero-billing-platform-logos.cjs +2 -2
- package/dist/hero-billing-platform-logos.js +2 -2
- package/dist/hero-business-carousel-dots.cjs +2 -2
- package/dist/hero-business-carousel-dots.js +2 -2
- package/dist/hero-business-operations-mosaic.cjs +2 -2
- package/dist/hero-business-operations-mosaic.js +2 -2
- package/dist/hero-centered-gradient-cta.cjs +2 -2
- package/dist/hero-centered-gradient-cta.js +2 -2
- package/dist/hero-centered-image-grid.cjs +2 -2
- package/dist/hero-centered-image-grid.js +2 -2
- package/dist/hero-centered-screenshot.cjs +2 -2
- package/dist/hero-centered-screenshot.js +2 -2
- package/dist/hero-coming-soon-countdown.cjs +2 -2
- package/dist/hero-coming-soon-countdown.js +2 -2
- package/dist/hero-community-survey-cta.cjs +2 -2
- package/dist/hero-community-survey-cta.js +2 -2
- package/dist/hero-conversation-intelligence.cjs +2 -2
- package/dist/hero-conversation-intelligence.js +2 -2
- package/dist/hero-conversion-video-play.cjs +2 -2
- package/dist/hero-conversion-video-play.js +2 -2
- package/dist/hero-creative-studio-stacked.cjs +2 -2
- package/dist/hero-creative-studio-stacked.js +2 -2
- package/dist/hero-crm-streamlined.cjs +2 -2
- package/dist/hero-crm-streamlined.js +2 -2
- package/dist/hero-customer-support-layered.cjs +2 -2
- package/dist/hero-customer-support-layered.js +2 -2
- package/dist/hero-dashed-border-features.cjs +2 -2
- package/dist/hero-dashed-border-features.js +2 -2
- package/dist/hero-design-carousel-portfolio.cjs +2 -2
- package/dist/hero-design-carousel-portfolio.js +2 -2
- package/dist/hero-design-showcase-logos.cjs +2 -2
- package/dist/hero-design-showcase-logos.js +2 -2
- package/dist/hero-design-system-3d.cjs +2 -2
- package/dist/hero-design-system-3d.js +2 -2
- package/dist/hero-developer-tools-code.cjs +2 -2
- package/dist/hero-developer-tools-code.js +2 -2
- package/dist/hero-digital-agency-fullscreen.cjs +2 -2
- package/dist/hero-digital-agency-fullscreen.js +2 -2
- package/dist/hero-ecommerce-product-showcase.cjs +2 -2
- package/dist/hero-ecommerce-product-showcase.js +2 -2
- package/dist/hero-enterprise-security.cjs +2 -2
- package/dist/hero-enterprise-security.js +2 -2
- package/dist/hero-event-registration.cjs +2 -2
- package/dist/hero-event-registration.js +2 -2
- package/dist/hero-feature-cards-grid.cjs +2 -2
- package/dist/hero-feature-cards-grid.js +2 -2
- package/dist/hero-fullscreen-background-image.cjs +2 -2
- package/dist/hero-fullscreen-background-image.js +2 -2
- package/dist/hero-fullscreen-logo-cta.cjs +2 -2
- package/dist/hero-fullscreen-logo-cta.js +2 -2
- package/dist/hero-gradient-avatars-rating.cjs +2 -2
- package/dist/hero-gradient-avatars-rating.js +2 -2
- package/dist/hero-gradient-client-focused.cjs +2 -2
- package/dist/hero-gradient-client-focused.js +2 -2
- package/dist/hero-grid-pattern-efficiency.cjs +2 -2
- package/dist/hero-grid-pattern-efficiency.js +2 -2
- package/dist/hero-grid-pattern-solutions.cjs +2 -2
- package/dist/hero-grid-pattern-solutions.js +2 -2
- package/dist/hero-hiring-animated-text.cjs +2 -2
- package/dist/hero-hiring-animated-text.js +2 -2
- package/dist/hero-image-left-content.cjs +2 -2
- package/dist/hero-image-left-content.js +2 -2
- package/dist/hero-image-slider.cjs +2 -2
- package/dist/hero-image-slider.js +2 -2
- package/dist/hero-innovation-image-grid.cjs +2 -2
- package/dist/hero-innovation-image-grid.js +2 -2
- package/dist/hero-logo-centered-screenshot.cjs +2 -2
- package/dist/hero-logo-centered-screenshot.js +2 -2
- package/dist/hero-marketplace-scattered-images.cjs +2 -2
- package/dist/hero-marketplace-scattered-images.js +2 -2
- package/dist/hero-mental-health-team.cjs +2 -2
- package/dist/hero-mental-health-team.js +2 -2
- package/dist/hero-mentorship-video-split.cjs +2 -2
- package/dist/hero-mentorship-video-split.js +2 -2
- package/dist/hero-minimal-centered-dark.cjs +2 -2
- package/dist/hero-minimal-centered-dark.js +2 -2
- package/dist/hero-mobile-app-download.cjs +2 -2
- package/dist/hero-mobile-app-download.js +2 -2
- package/dist/hero-newsletter-minimal.cjs +2 -2
- package/dist/hero-newsletter-minimal.js +2 -2
- package/dist/hero-pattern-badge-logos.cjs +2 -2
- package/dist/hero-pattern-badge-logos.js +2 -2
- package/dist/hero-pattern-logo-tech-stack.cjs +2 -2
- package/dist/hero-pattern-logo-tech-stack.js +2 -2
- package/dist/hero-platform-features-grid.cjs +2 -2
- package/dist/hero-platform-features-grid.js +2 -2
- package/dist/hero-portfolio-creative.cjs +2 -2
- package/dist/hero-portfolio-creative.js +2 -2
- package/dist/hero-premium-split-avatars.cjs +2 -2
- package/dist/hero-premium-split-avatars.js +2 -2
- package/dist/hero-presentation-platform-video.cjs +2 -2
- package/dist/hero-presentation-platform-video.js +2 -2
- package/dist/hero-pricing-comparison.cjs +2 -2
- package/dist/hero-pricing-comparison.js +2 -2
- package/dist/hero-product-showcase-floating.cjs +2 -2
- package/dist/hero-product-showcase-floating.js +2 -2
- package/dist/hero-productivity-launcher-video.cjs +2 -2
- package/dist/hero-productivity-launcher-video.js +2 -2
- package/dist/hero-saas-dashboard-preview.cjs +2 -2
- package/dist/hero-saas-dashboard-preview.js +2 -2
- package/dist/hero-shared-inbox-layered.cjs +2 -2
- package/dist/hero-shared-inbox-layered.js +2 -2
- package/dist/hero-simple-centered-image.cjs +2 -2
- package/dist/hero-simple-centered-image.js +2 -2
- package/dist/hero-software-growth-video-dialog.cjs +2 -2
- package/dist/hero-software-growth-video-dialog.js +2 -2
- package/dist/hero-spiral-pattern-cards.cjs +2 -2
- package/dist/hero-spiral-pattern-cards.js +2 -2
- package/dist/hero-split-geometric-shapes.cjs +2 -2
- package/dist/hero-split-geometric-shapes.js +2 -2
- package/dist/hero-split-icon-cards.cjs +1 -1
- package/dist/hero-split-icon-cards.js +1 -1
- package/dist/hero-split-image-newsletter.cjs +2 -2
- package/dist/hero-split-image-newsletter.js +2 -2
- package/dist/hero-split-spiral-shapes.cjs +2 -2
- package/dist/hero-split-spiral-shapes.js +2 -2
- package/dist/hero-startup-launch-cta.cjs +2 -2
- package/dist/hero-startup-launch-cta.js +2 -2
- package/dist/hero-stats-social-proof.cjs +2 -2
- package/dist/hero-stats-social-proof.js +2 -2
- package/dist/hero-task-timer-animated.cjs +2 -2
- package/dist/hero-task-timer-animated.js +2 -2
- package/dist/hero-tech-carousel.cjs +2 -2
- package/dist/hero-tech-carousel.js +2 -2
- package/dist/hero-therapy-testimonial-grid.cjs +2 -2
- package/dist/hero-therapy-testimonial-grid.js +2 -2
- package/dist/hero-ui-library-showcase.cjs +2 -2
- package/dist/hero-ui-library-showcase.js +2 -2
- package/dist/hero-video-background-dark.cjs +2 -2
- package/dist/hero-video-background-dark.js +2 -2
- package/dist/hero-video-dialog-gradient.cjs +2 -2
- package/dist/hero-video-dialog-gradient.js +2 -2
- package/dist/hero-video-overlay-stars.cjs +2 -2
- package/dist/hero-video-overlay-stars.js +2 -2
- package/dist/hero-welcome-asymmetric-images.cjs +2 -2
- package/dist/hero-welcome-asymmetric-images.js +2 -2
- package/dist/index.cjs +8 -8
- package/dist/index.js +9 -9
- package/dist/media-hover-ctas.cjs +7 -7
- package/dist/media-hover-ctas.js +7 -7
- package/dist/registry.cjs +10071 -8111
- package/dist/registry.js +10033 -8073
- package/package.json +2 -2
|
@@ -896,8 +896,8 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
896
896
|
heroImageAlt,
|
|
897
897
|
heroMediaSlot,
|
|
898
898
|
children,
|
|
899
|
-
enableTocTracking
|
|
900
|
-
enableBackToTop
|
|
899
|
+
enableTocTracking,
|
|
900
|
+
enableBackToTop,
|
|
901
901
|
optixFlowConfig
|
|
902
902
|
}) {
|
|
903
903
|
const author = authorProp ?? (authorName ? { name: authorName, image: authorImage, role: authorRole } : void 0);
|
|
@@ -945,10 +945,10 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
945
945
|
window.addEventListener("scroll", handleScroll);
|
|
946
946
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
947
947
|
}, [enableBackToTop]);
|
|
948
|
-
const scrollToTop = () => {
|
|
948
|
+
const scrollToTop = React4__namespace.useCallback(() => {
|
|
949
949
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
950
|
-
};
|
|
951
|
-
const
|
|
950
|
+
}, []);
|
|
951
|
+
const breadcrumbsContent = React4__namespace.useMemo(() => {
|
|
952
952
|
if (breadcrumbsSlot) return breadcrumbsSlot;
|
|
953
953
|
if (!breadcrumbs || breadcrumbs.length === 0) return null;
|
|
954
954
|
return /* @__PURE__ */ jsxRuntime.jsx(Breadcrumb, { className: cn("mb-8", breadcrumbClassName), children: /* @__PURE__ */ jsxRuntime.jsxs(BreadcrumbList, { children: [
|
|
@@ -957,11 +957,13 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
957
957
|
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbSeparator, {}),
|
|
958
958
|
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Pressable, { href: crumb.href, children: crumb.label }) }) })
|
|
959
959
|
] }, index)),
|
|
960
|
-
/* @__PURE__ */ jsxRuntime.
|
|
961
|
-
|
|
960
|
+
currentPage && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
961
|
+
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbSeparator, {}),
|
|
962
|
+
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbPage, { children: typeof currentPage === "string" ? currentPage : currentPage }) })
|
|
963
|
+
] })
|
|
962
964
|
] }) });
|
|
963
|
-
};
|
|
964
|
-
const
|
|
965
|
+
}, [breadcrumbsSlot, breadcrumbs, currentPage, breadcrumbClassName]);
|
|
966
|
+
const authorContent = React4__namespace.useMemo(() => {
|
|
965
967
|
if (authorSlot) return authorSlot;
|
|
966
968
|
if (!author) return null;
|
|
967
969
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mt-6 flex items-center gap-4 not-prose", authorClassName), children: [
|
|
@@ -970,33 +972,25 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
970
972
|
/* @__PURE__ */ jsxRuntime.jsx(AvatarFallback, { children: author.name?.charAt(0) || "A" })
|
|
971
973
|
] }),
|
|
972
974
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
973
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium", children: author.name }),
|
|
974
|
-
/* @__PURE__ */ jsxRuntime.
|
|
975
|
-
author.role,
|
|
976
|
-
" \xB7 ",
|
|
977
|
-
publishDate,
|
|
978
|
-
" \xB7 ",
|
|
979
|
-
readTime
|
|
980
|
-
] })
|
|
975
|
+
author.name && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium", children: author.name }),
|
|
976
|
+
(author.role || publishDate || readTime) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: [author.role, publishDate, readTime].filter(Boolean).join(" \xB7 ") })
|
|
981
977
|
] })
|
|
982
978
|
] });
|
|
983
|
-
};
|
|
984
|
-
const
|
|
979
|
+
}, [authorSlot, author, publishDate, readTime, authorClassName]);
|
|
980
|
+
const heroMediaContent = React4__namespace.useMemo(() => {
|
|
985
981
|
if (heroMediaSlot) return heroMediaSlot;
|
|
986
|
-
if (heroImageSrc)
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
};
|
|
999
|
-
const renderToc = () => {
|
|
982
|
+
if (!heroImageSrc) return null;
|
|
983
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
984
|
+
img.Img,
|
|
985
|
+
{
|
|
986
|
+
src: heroImageSrc,
|
|
987
|
+
alt: heroImageAlt,
|
|
988
|
+
className: cn("my-8 aspect-video w-full rounded-lg object-cover", heroImageClassName),
|
|
989
|
+
optixFlowConfig
|
|
990
|
+
}
|
|
991
|
+
);
|
|
992
|
+
}, [heroMediaSlot, heroImageSrc, heroImageAlt, heroImageClassName, optixFlowConfig]);
|
|
993
|
+
const tocContent = React4__namespace.useMemo(() => {
|
|
1000
994
|
if (tocSlot) return tocSlot;
|
|
1001
995
|
if (!sections || sections.length === 0) return null;
|
|
1002
996
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("rounded-lg border p-4", tocClassName), children: [
|
|
@@ -1020,8 +1014,8 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
1020
1014
|
);
|
|
1021
1015
|
}) })
|
|
1022
1016
|
] });
|
|
1023
|
-
};
|
|
1024
|
-
const
|
|
1017
|
+
}, [tocSlot, sections, activeSection, renderSectionLink, tocClassName]);
|
|
1018
|
+
const shareButtonsContent = React4__namespace.useMemo(() => {
|
|
1025
1019
|
if (shareSlot) return shareSlot;
|
|
1026
1020
|
if (!socialLinks || socialLinks.length === 0) return null;
|
|
1027
1021
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("rounded-lg border p-4", shareClassName), children: [
|
|
@@ -1040,21 +1034,21 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
1040
1034
|
index
|
|
1041
1035
|
)) })
|
|
1042
1036
|
] });
|
|
1043
|
-
};
|
|
1037
|
+
}, [shareSlot, socialLinks, shareClassName]);
|
|
1044
1038
|
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: cn("py-32", className), children: [
|
|
1045
1039
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("container", containerClassName), children: [
|
|
1046
|
-
|
|
1040
|
+
breadcrumbsContent,
|
|
1047
1041
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-10 lg:grid-cols-[minmax(0,1fr)_280px]", children: [
|
|
1048
1042
|
/* @__PURE__ */ jsxRuntime.jsxs("article", { className: cn("prose max-w-none dark:prose-invert", articleClassName), children: [
|
|
1049
1043
|
title && (typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn("text-4xl font-bold tracking-tight md:text-5xl", titleClassName), children: title }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: titleClassName, children: title })),
|
|
1050
|
-
|
|
1044
|
+
authorContent,
|
|
1051
1045
|
/* @__PURE__ */ jsxRuntime.jsx(Separator, { className: "my-8" }),
|
|
1052
|
-
|
|
1046
|
+
heroMediaContent,
|
|
1053
1047
|
children || defaultArticleContent(optixFlowConfig)
|
|
1054
1048
|
] }),
|
|
1055
1049
|
/* @__PURE__ */ jsxRuntime.jsx("aside", { className: cn("hidden lg:block", sidebarClassName), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sticky top-8 space-y-6", children: [
|
|
1056
|
-
|
|
1057
|
-
|
|
1050
|
+
tocContent,
|
|
1051
|
+
shareButtonsContent
|
|
1058
1052
|
] }) })
|
|
1059
1053
|
] })
|
|
1060
1054
|
] }),
|
|
@@ -154,12 +154,10 @@ interface ArticleBreadcrumbSocialProps {
|
|
|
154
154
|
children?: React.ReactNode;
|
|
155
155
|
/**
|
|
156
156
|
* Enable scroll-based TOC tracking
|
|
157
|
-
* @default true
|
|
158
157
|
*/
|
|
159
158
|
enableTocTracking?: boolean;
|
|
160
159
|
/**
|
|
161
160
|
* Enable back to top button
|
|
162
|
-
* @default true
|
|
163
161
|
*/
|
|
164
162
|
enableBackToTop?: boolean;
|
|
165
163
|
/**
|
|
@@ -154,12 +154,10 @@ interface ArticleBreadcrumbSocialProps {
|
|
|
154
154
|
children?: React.ReactNode;
|
|
155
155
|
/**
|
|
156
156
|
* Enable scroll-based TOC tracking
|
|
157
|
-
* @default true
|
|
158
157
|
*/
|
|
159
158
|
enableTocTracking?: boolean;
|
|
160
159
|
/**
|
|
161
160
|
* Enable back to top button
|
|
162
|
-
* @default true
|
|
163
161
|
*/
|
|
164
162
|
enableBackToTop?: boolean;
|
|
165
163
|
/**
|
|
@@ -872,8 +872,8 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
872
872
|
heroImageAlt,
|
|
873
873
|
heroMediaSlot,
|
|
874
874
|
children,
|
|
875
|
-
enableTocTracking
|
|
876
|
-
enableBackToTop
|
|
875
|
+
enableTocTracking,
|
|
876
|
+
enableBackToTop,
|
|
877
877
|
optixFlowConfig
|
|
878
878
|
}) {
|
|
879
879
|
const author = authorProp ?? (authorName ? { name: authorName, image: authorImage, role: authorRole } : void 0);
|
|
@@ -921,10 +921,10 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
921
921
|
window.addEventListener("scroll", handleScroll);
|
|
922
922
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
923
923
|
}, [enableBackToTop]);
|
|
924
|
-
const scrollToTop = () => {
|
|
924
|
+
const scrollToTop = React4.useCallback(() => {
|
|
925
925
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
926
|
-
};
|
|
927
|
-
const
|
|
926
|
+
}, []);
|
|
927
|
+
const breadcrumbsContent = React4.useMemo(() => {
|
|
928
928
|
if (breadcrumbsSlot) return breadcrumbsSlot;
|
|
929
929
|
if (!breadcrumbs || breadcrumbs.length === 0) return null;
|
|
930
930
|
return /* @__PURE__ */ jsx(Breadcrumb, { className: cn("mb-8", breadcrumbClassName), children: /* @__PURE__ */ jsxs(BreadcrumbList, { children: [
|
|
@@ -933,11 +933,13 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
933
933
|
/* @__PURE__ */ jsx(BreadcrumbSeparator, {}),
|
|
934
934
|
/* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsx(Pressable, { href: crumb.href, children: crumb.label }) }) })
|
|
935
935
|
] }, index)),
|
|
936
|
-
/* @__PURE__ */
|
|
937
|
-
|
|
936
|
+
currentPage && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
937
|
+
/* @__PURE__ */ jsx(BreadcrumbSeparator, {}),
|
|
938
|
+
/* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbPage, { children: typeof currentPage === "string" ? currentPage : currentPage }) })
|
|
939
|
+
] })
|
|
938
940
|
] }) });
|
|
939
|
-
};
|
|
940
|
-
const
|
|
941
|
+
}, [breadcrumbsSlot, breadcrumbs, currentPage, breadcrumbClassName]);
|
|
942
|
+
const authorContent = React4.useMemo(() => {
|
|
941
943
|
if (authorSlot) return authorSlot;
|
|
942
944
|
if (!author) return null;
|
|
943
945
|
return /* @__PURE__ */ jsxs("div", { className: cn("mt-6 flex items-center gap-4 not-prose", authorClassName), children: [
|
|
@@ -946,33 +948,25 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
946
948
|
/* @__PURE__ */ jsx(AvatarFallback, { children: author.name?.charAt(0) || "A" })
|
|
947
949
|
] }),
|
|
948
950
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
949
|
-
/* @__PURE__ */ jsx("p", { className: "font-medium", children: author.name }),
|
|
950
|
-
/* @__PURE__ */
|
|
951
|
-
author.role,
|
|
952
|
-
" \xB7 ",
|
|
953
|
-
publishDate,
|
|
954
|
-
" \xB7 ",
|
|
955
|
-
readTime
|
|
956
|
-
] })
|
|
951
|
+
author.name && /* @__PURE__ */ jsx("p", { className: "font-medium", children: author.name }),
|
|
952
|
+
(author.role || publishDate || readTime) && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: [author.role, publishDate, readTime].filter(Boolean).join(" \xB7 ") })
|
|
957
953
|
] })
|
|
958
954
|
] });
|
|
959
|
-
};
|
|
960
|
-
const
|
|
955
|
+
}, [authorSlot, author, publishDate, readTime, authorClassName]);
|
|
956
|
+
const heroMediaContent = React4.useMemo(() => {
|
|
961
957
|
if (heroMediaSlot) return heroMediaSlot;
|
|
962
|
-
if (heroImageSrc)
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
};
|
|
975
|
-
const renderToc = () => {
|
|
958
|
+
if (!heroImageSrc) return null;
|
|
959
|
+
return /* @__PURE__ */ jsx(
|
|
960
|
+
Img,
|
|
961
|
+
{
|
|
962
|
+
src: heroImageSrc,
|
|
963
|
+
alt: heroImageAlt,
|
|
964
|
+
className: cn("my-8 aspect-video w-full rounded-lg object-cover", heroImageClassName),
|
|
965
|
+
optixFlowConfig
|
|
966
|
+
}
|
|
967
|
+
);
|
|
968
|
+
}, [heroMediaSlot, heroImageSrc, heroImageAlt, heroImageClassName, optixFlowConfig]);
|
|
969
|
+
const tocContent = React4.useMemo(() => {
|
|
976
970
|
if (tocSlot) return tocSlot;
|
|
977
971
|
if (!sections || sections.length === 0) return null;
|
|
978
972
|
return /* @__PURE__ */ jsxs("div", { className: cn("rounded-lg border p-4", tocClassName), children: [
|
|
@@ -996,8 +990,8 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
996
990
|
);
|
|
997
991
|
}) })
|
|
998
992
|
] });
|
|
999
|
-
};
|
|
1000
|
-
const
|
|
993
|
+
}, [tocSlot, sections, activeSection, renderSectionLink, tocClassName]);
|
|
994
|
+
const shareButtonsContent = React4.useMemo(() => {
|
|
1001
995
|
if (shareSlot) return shareSlot;
|
|
1002
996
|
if (!socialLinks || socialLinks.length === 0) return null;
|
|
1003
997
|
return /* @__PURE__ */ jsxs("div", { className: cn("rounded-lg border p-4", shareClassName), children: [
|
|
@@ -1016,21 +1010,21 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
1016
1010
|
index
|
|
1017
1011
|
)) })
|
|
1018
1012
|
] });
|
|
1019
|
-
};
|
|
1013
|
+
}, [shareSlot, socialLinks, shareClassName]);
|
|
1020
1014
|
return /* @__PURE__ */ jsxs("section", { className: cn("py-32", className), children: [
|
|
1021
1015
|
/* @__PURE__ */ jsxs("div", { className: cn("container", containerClassName), children: [
|
|
1022
|
-
|
|
1016
|
+
breadcrumbsContent,
|
|
1023
1017
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-10 lg:grid-cols-[minmax(0,1fr)_280px]", children: [
|
|
1024
1018
|
/* @__PURE__ */ jsxs("article", { className: cn("prose max-w-none dark:prose-invert", articleClassName), children: [
|
|
1025
1019
|
title && (typeof title === "string" ? /* @__PURE__ */ jsx("h1", { className: cn("text-4xl font-bold tracking-tight md:text-5xl", titleClassName), children: title }) : /* @__PURE__ */ jsx("div", { className: titleClassName, children: title })),
|
|
1026
|
-
|
|
1020
|
+
authorContent,
|
|
1027
1021
|
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
1028
|
-
|
|
1022
|
+
heroMediaContent,
|
|
1029
1023
|
children || defaultArticleContent(optixFlowConfig)
|
|
1030
1024
|
] }),
|
|
1031
1025
|
/* @__PURE__ */ jsx("aside", { className: cn("hidden lg:block", sidebarClassName), children: /* @__PURE__ */ jsxs("div", { className: "sticky top-8 space-y-6", children: [
|
|
1032
|
-
|
|
1033
|
-
|
|
1026
|
+
tocContent,
|
|
1027
|
+
shareButtonsContent
|
|
1034
1028
|
] }) })
|
|
1035
1029
|
] })
|
|
1036
1030
|
] }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var React4 = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var tailwindMerge = require('tailwind-merge');
|
|
7
7
|
var img = require('@page-speed/img');
|
|
@@ -28,7 +28,7 @@ function _interopNamespace(e) {
|
|
|
28
28
|
return Object.freeze(n);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var React4__namespace = /*#__PURE__*/_interopNamespace(React4);
|
|
32
32
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
33
33
|
|
|
34
34
|
// components/blocks/article/article-chapters-author.tsx
|
|
@@ -110,7 +110,7 @@ function useNavigation({
|
|
|
110
110
|
href,
|
|
111
111
|
onClick
|
|
112
112
|
} = {}) {
|
|
113
|
-
const linkType =
|
|
113
|
+
const linkType = React4__namespace.useMemo(() => {
|
|
114
114
|
if (!href || href.trim() === "") {
|
|
115
115
|
return onClick ? "none" : "none";
|
|
116
116
|
}
|
|
@@ -131,7 +131,7 @@ function useNavigation({
|
|
|
131
131
|
return "internal";
|
|
132
132
|
}
|
|
133
133
|
}, [href, onClick]);
|
|
134
|
-
const normalizedHref =
|
|
134
|
+
const normalizedHref = React4__namespace.useMemo(() => {
|
|
135
135
|
if (!href || href.trim() === "") {
|
|
136
136
|
return void 0;
|
|
137
137
|
}
|
|
@@ -149,7 +149,7 @@ function useNavigation({
|
|
|
149
149
|
return trimmed;
|
|
150
150
|
}
|
|
151
151
|
}, [href, linkType]);
|
|
152
|
-
const target =
|
|
152
|
+
const target = React4__namespace.useMemo(() => {
|
|
153
153
|
switch (linkType) {
|
|
154
154
|
case "external":
|
|
155
155
|
return "_blank";
|
|
@@ -162,7 +162,7 @@ function useNavigation({
|
|
|
162
162
|
return void 0;
|
|
163
163
|
}
|
|
164
164
|
}, [linkType]);
|
|
165
|
-
const rel =
|
|
165
|
+
const rel = React4__namespace.useMemo(() => {
|
|
166
166
|
if (linkType === "external") {
|
|
167
167
|
return "noopener noreferrer";
|
|
168
168
|
}
|
|
@@ -171,7 +171,7 @@ function useNavigation({
|
|
|
171
171
|
const isExternal = linkType === "external";
|
|
172
172
|
const isInternal = linkType === "internal";
|
|
173
173
|
const shouldUseRouter = isInternal && typeof normalizedHref === "string" && normalizedHref.startsWith("/");
|
|
174
|
-
const handleClick =
|
|
174
|
+
const handleClick = React4__namespace.useCallback(
|
|
175
175
|
(event) => {
|
|
176
176
|
if (onClick) {
|
|
177
177
|
try {
|
|
@@ -355,7 +355,7 @@ var buttonVariants = classVarianceAuthority.cva(baseStyles, {
|
|
|
355
355
|
size: "default"
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
|
-
var Pressable =
|
|
358
|
+
var Pressable = React4__namespace.forwardRef(
|
|
359
359
|
({
|
|
360
360
|
children,
|
|
361
361
|
className,
|
|
@@ -461,10 +461,10 @@ function DynamicIcon({
|
|
|
461
461
|
className,
|
|
462
462
|
alt
|
|
463
463
|
}) {
|
|
464
|
-
const [svgContent, setSvgContent] =
|
|
465
|
-
const [isLoading, setIsLoading] =
|
|
466
|
-
const [error, setError] =
|
|
467
|
-
const { url, iconName } =
|
|
464
|
+
const [svgContent, setSvgContent] = React4__namespace.useState(null);
|
|
465
|
+
const [isLoading, setIsLoading] = React4__namespace.useState(true);
|
|
466
|
+
const [error, setError] = React4__namespace.useState(null);
|
|
467
|
+
const { url, iconName } = React4__namespace.useMemo(() => {
|
|
468
468
|
const separator = name.includes("/") ? "/" : ":";
|
|
469
469
|
const [prefix, iconName2] = name.split(separator);
|
|
470
470
|
const baseUrl = `https://icons.opensite.ai/api/icon/${prefix}/${iconName2}?format=svg&width=${size}&height=${size}`;
|
|
@@ -473,7 +473,7 @@ function DynamicIcon({
|
|
|
473
473
|
iconName: iconName2
|
|
474
474
|
};
|
|
475
475
|
}, [name, size]);
|
|
476
|
-
|
|
476
|
+
React4__namespace.useEffect(() => {
|
|
477
477
|
let isMounted = true;
|
|
478
478
|
const fetchSvg = async () => {
|
|
479
479
|
const cached = svgCache.get(url);
|
|
@@ -880,10 +880,10 @@ function ArticleChaptersAuthorComponent({
|
|
|
880
880
|
optixFlowConfig
|
|
881
881
|
}) {
|
|
882
882
|
const conclusionActions = conclusionActionsProp ?? (conclusionButtonText ? [{ label: conclusionButtonText, href: conclusionButtonHref || "#", variant: "default" }] : []);
|
|
883
|
-
const [activeChapter, setActiveChapter] =
|
|
883
|
+
const [activeChapter, setActiveChapter] = React4__namespace.useState(
|
|
884
884
|
chapters?.[0]?.id || ""
|
|
885
885
|
);
|
|
886
|
-
|
|
886
|
+
React4__namespace.useEffect(() => {
|
|
887
887
|
if (!enableChapterTracking || !chapters || chapters.length === 0) return;
|
|
888
888
|
const observer = new IntersectionObserver(
|
|
889
889
|
(entries) => {
|
|
@@ -901,20 +901,20 @@ function ArticleChaptersAuthorComponent({
|
|
|
901
901
|
});
|
|
902
902
|
return () => observer.disconnect();
|
|
903
903
|
}, [chapters, enableChapterTracking]);
|
|
904
|
-
const
|
|
904
|
+
const breadcrumbsContent = React4__namespace.useMemo(() => {
|
|
905
905
|
if (breadcrumbsSlot) return breadcrumbsSlot;
|
|
906
906
|
if (!breadcrumbs || breadcrumbs.length === 0) return null;
|
|
907
907
|
return /* @__PURE__ */ jsxRuntime.jsx(Breadcrumb, { className: cn("mb-8", breadcrumbClassName), children: /* @__PURE__ */ jsxRuntime.jsxs(BreadcrumbList, { children: [
|
|
908
908
|
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Pressable, { href: "#", children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/home", size: 16 }) }) }) }),
|
|
909
|
-
breadcrumbs.map((crumb, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
909
|
+
breadcrumbs.map((crumb, index) => /* @__PURE__ */ jsxRuntime.jsxs(React4__namespace.Fragment, { children: [
|
|
910
910
|
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbSeparator, {}),
|
|
911
911
|
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Pressable, { href: crumb.href, children: crumb.label }) }) })
|
|
912
912
|
] }, index)),
|
|
913
913
|
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbSeparator, {}),
|
|
914
914
|
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbPage, { children: typeof currentPage === "string" ? currentPage : currentPage }) })
|
|
915
915
|
] }) });
|
|
916
|
-
};
|
|
917
|
-
const
|
|
916
|
+
}, [breadcrumbsSlot, breadcrumbs, currentPage, breadcrumbClassName]);
|
|
917
|
+
const chaptersNavContent = React4__namespace.useMemo(() => {
|
|
918
918
|
if (chaptersSlot) return chaptersSlot;
|
|
919
919
|
if (!chapters || chapters.length === 0) return null;
|
|
920
920
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("rounded-lg border p-4", chaptersClassName), children: [
|
|
@@ -922,7 +922,7 @@ function ArticleChaptersAuthorComponent({
|
|
|
922
922
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "space-y-2", children: chapters.map((chapter) => {
|
|
923
923
|
const isActive = activeChapter === chapter.id;
|
|
924
924
|
if (renderChapterLink) {
|
|
925
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
925
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React4__namespace.Fragment, { children: renderChapterLink(chapter, isActive) }, chapter.id);
|
|
926
926
|
}
|
|
927
927
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
928
928
|
Pressable,
|
|
@@ -941,50 +941,52 @@ function ArticleChaptersAuthorComponent({
|
|
|
941
941
|
);
|
|
942
942
|
}) })
|
|
943
943
|
] });
|
|
944
|
-
};
|
|
945
|
-
const
|
|
944
|
+
}, [chaptersSlot, chapters, activeChapter, renderChapterLink, chaptersClassName]);
|
|
945
|
+
const authorCardContent = React4__namespace.useMemo(() => {
|
|
946
946
|
if (authorSlot) return authorSlot;
|
|
947
947
|
if (!author) return null;
|
|
948
|
-
|
|
949
|
-
|
|
948
|
+
let socialLinksContent = null;
|
|
949
|
+
if (author.socialLinks) {
|
|
950
950
|
if (Array.isArray(author.socialLinks)) {
|
|
951
|
-
if (author.socialLinks.length
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
951
|
+
if (author.socialLinks.length > 0) {
|
|
952
|
+
socialLinksContent = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 flex gap-2", children: author.socialLinks.map((link, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
953
|
+
Pressable,
|
|
954
|
+
{
|
|
955
|
+
href: link.href,
|
|
956
|
+
className: cn(
|
|
957
|
+
"flex h-8 w-8 items-center justify-center rounded-md border hover:bg-muted",
|
|
958
|
+
link.className
|
|
959
|
+
),
|
|
960
|
+
"aria-label": link["aria-label"],
|
|
961
|
+
children: link.icon ?? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: `lucide/${link.platform}`, size: 14 })
|
|
962
|
+
},
|
|
963
|
+
index
|
|
964
|
+
)) });
|
|
965
|
+
}
|
|
965
966
|
} else {
|
|
966
967
|
const links = author.socialLinks;
|
|
967
968
|
const socialEntries = Object.entries(links).filter(([, href]) => href);
|
|
968
|
-
if (socialEntries.length
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
969
|
+
if (socialEntries.length > 0) {
|
|
970
|
+
const platformLabels = {
|
|
971
|
+
twitter: "Twitter",
|
|
972
|
+
linkedin: "LinkedIn",
|
|
973
|
+
github: "GitHub",
|
|
974
|
+
facebook: "Facebook",
|
|
975
|
+
instagram: "Instagram"
|
|
976
|
+
};
|
|
977
|
+
socialLinksContent = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 flex gap-2", children: socialEntries.map(([platform, href]) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
978
|
+
Pressable,
|
|
979
|
+
{
|
|
980
|
+
href,
|
|
981
|
+
className: "flex h-8 w-8 items-center justify-center rounded-md border hover:bg-muted",
|
|
982
|
+
"aria-label": platformLabels[platform] || platform.charAt(0).toUpperCase() + platform.slice(1),
|
|
983
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: `lucide/${platform}`, size: 14 })
|
|
984
|
+
},
|
|
985
|
+
platform
|
|
986
|
+
)) });
|
|
987
|
+
}
|
|
986
988
|
}
|
|
987
|
-
}
|
|
989
|
+
}
|
|
988
990
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("rounded-lg border p-4", authorClassName), children: [
|
|
989
991
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4 text-sm font-semibold", children: "About the Author" }),
|
|
990
992
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -998,25 +1000,23 @@ function ArticleChaptersAuthorComponent({
|
|
|
998
1000
|
] })
|
|
999
1001
|
] }),
|
|
1000
1002
|
author.bio && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-3 text-sm text-muted-foreground", children: author.bio }),
|
|
1001
|
-
|
|
1003
|
+
socialLinksContent
|
|
1002
1004
|
] });
|
|
1003
|
-
};
|
|
1004
|
-
const
|
|
1005
|
+
}, [authorSlot, author, authorClassName]);
|
|
1006
|
+
const heroMediaContent = React4__namespace.useMemo(() => {
|
|
1005
1007
|
if (heroMediaSlot) return heroMediaSlot;
|
|
1006
|
-
if (heroImageSrc)
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
};
|
|
1019
|
-
const renderConclusion = () => {
|
|
1008
|
+
if (!heroImageSrc) return null;
|
|
1009
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1010
|
+
img.Img,
|
|
1011
|
+
{
|
|
1012
|
+
src: heroImageSrc,
|
|
1013
|
+
alt: heroImageAlt,
|
|
1014
|
+
className: cn("my-8 aspect-video w-full rounded-lg object-cover", heroImageClassName),
|
|
1015
|
+
optixFlowConfig
|
|
1016
|
+
}
|
|
1017
|
+
);
|
|
1018
|
+
}, [heroMediaSlot, heroImageSrc, heroImageAlt, heroImageClassName, optixFlowConfig]);
|
|
1019
|
+
const conclusionContent = React4__namespace.useMemo(() => {
|
|
1020
1020
|
if (conclusionSlot) return conclusionSlot;
|
|
1021
1021
|
if (!conclusionTitle && !conclusionDescription && (!conclusionActions || conclusionActions.length === 0)) return null;
|
|
1022
1022
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mt-12 rounded-lg border bg-muted/50 p-6 not-prose", conclusionClassName), children: [
|
|
@@ -1040,22 +1040,22 @@ function ArticleChaptersAuthorComponent({
|
|
|
1040
1040
|
);
|
|
1041
1041
|
}) })
|
|
1042
1042
|
] });
|
|
1043
|
-
};
|
|
1043
|
+
}, [conclusionSlot, conclusionTitle, conclusionDescription, conclusionActions, conclusionClassName]);
|
|
1044
1044
|
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: cn("py-32", className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("container", containerClassName), children: [
|
|
1045
|
-
|
|
1045
|
+
breadcrumbsContent,
|
|
1046
1046
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mb-12 text-center", headerClassName), children: [
|
|
1047
1047
|
title && (typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn("text-4xl font-bold tracking-tight md:text-5xl lg:text-6xl", titleClassName), children: title }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: titleClassName, children: title })),
|
|
1048
1048
|
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("mt-4 text-lg text-muted-foreground md:text-xl", subtitleClassName), children: subtitle }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-4", subtitleClassName), children: subtitle }))
|
|
1049
1049
|
] }),
|
|
1050
1050
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-10 lg:grid-cols-[280px_minmax(0,1fr)]", children: [
|
|
1051
1051
|
/* @__PURE__ */ jsxRuntime.jsx("aside", { className: cn("hidden lg:block", sidebarClassName), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sticky top-8 space-y-6", children: [
|
|
1052
|
-
|
|
1053
|
-
|
|
1052
|
+
chaptersNavContent,
|
|
1053
|
+
authorCardContent
|
|
1054
1054
|
] }) }),
|
|
1055
1055
|
/* @__PURE__ */ jsxRuntime.jsxs("article", { className: cn("prose max-w-none dark:prose-invert", articleClassName), children: [
|
|
1056
|
-
|
|
1056
|
+
heroMediaContent,
|
|
1057
1057
|
children || defaultArticleContent(optixFlowConfig),
|
|
1058
|
-
|
|
1058
|
+
conclusionContent
|
|
1059
1059
|
] })
|
|
1060
1060
|
] })
|
|
1061
1061
|
] }) });
|