@blaze-cms/react-page-builder 0.139.0-project-admin-customisations.0 → 0.139.0
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/CHANGELOG.md +69 -3
- package/README.md +9 -0
- package/lib/BannerContext/helpers/set-initial-banner-counters.js +1 -2
- package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
- package/lib/BannerContext/index.js +4 -6
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/recreateOnNavigation.js +1 -2
- package/lib/HOC/recreateOnNavigation.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +3 -4
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +3 -4
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/PBContext/index.js +1 -2
- package/lib/PBContext/index.js.map +1 -1
- package/lib/application/query/index.js +15 -30
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +3 -4
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/BackToTop/index.js +1 -2
- package/lib/components/BackToTop/index.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +3 -4
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +3 -4
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/BannerRender.js +1 -2
- package/lib/components/Banner/BannerRender.js.map +1 -1
- package/lib/components/Banner/helpers.js +10 -20
- package/lib/components/Banner/helpers.js.map +1 -1
- package/lib/components/Banner/index.js +3 -4
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +3 -4
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +3 -4
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Breadcrumb/index.js +1 -2
- package/lib/components/Breadcrumb/index.js.map +1 -1
- package/lib/components/Button.js +3 -4
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +8 -7
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +4 -8
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsFactory.js +1 -2
- package/lib/components/Card/CardsFactory.js.map +1 -1
- package/lib/components/Card/CardsRender.js +4 -6
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Card/constants.js +2 -4
- package/lib/components/Card/constants.js.map +1 -1
- package/lib/components/Card/helpers/filter-query-setup.js +1 -2
- package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
- package/lib/components/Card/helpers/filters-setup.js +1 -2
- package/lib/components/Card/helpers/filters-setup.js.map +1 -1
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js +1 -2
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib/components/Card/helpers/get-published-listing-url.js +1 -2
- package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
- package/lib/components/Card/helpers/get-updated-items-to-display.js +1 -2
- package/lib/components/Card/helpers/get-updated-items-to-display.js.map +1 -1
- package/lib/components/Card/helpers/get-updated-sort-properties.js +1 -2
- package/lib/components/Card/helpers/get-updated-sort-properties.js.map +1 -1
- package/lib/components/Card/helpers/should-return.js +1 -2
- package/lib/components/Card/helpers/should-return.js.map +1 -1
- package/lib/components/Card/helpers/should-skip-single-query.js +1 -2
- package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
- package/lib/components/Card/helpers/use-dynamic-size-key.js +1 -2
- package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib/components/Card/index.js +1 -2
- package/lib/components/Card/index.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +27 -19
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/CarouselImage.js +1 -2
- package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/index.js +1 -2
- package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/CarouselRender.js +35 -62
- package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/index.js +1 -2
- package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
- package/lib/components/Carousel/hooks/useCarouselNavigation.js +56 -0
- package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -0
- package/lib/components/Carousel/index.js +1 -2
- package/lib/components/Carousel/index.js.map +1 -1
- package/lib/components/CarouselWrapper/CarouselWrapper.js +1 -2
- package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js +3 -4
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js +1 -2
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/index.js +1 -2
- package/lib/components/CarouselWrapper/index.js.map +1 -1
- package/lib/components/ClickWrapper.js +3 -4
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +3 -4
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +3 -4
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/Code/helpers/wrap-script-tags.js +1 -2
- package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib/components/Code/index.js +1 -2
- package/lib/components/Code/index.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroup.js +1 -2
- package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +3 -4
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ContentGroup/constants.js +5 -10
- package/lib/components/ContentGroup/constants.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-active-tab.js +1 -2
- package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js +1 -2
- package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib/components/ContentGroup/index.js +1 -2
- package/lib/components/ContentGroup/index.js.map +1 -1
- package/lib/components/ContentGroupSection/ContentGroupSection.js +1 -2
- package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib/components/ContentGroupSection/index.js +1 -2
- package/lib/components/ContentGroupSection/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +3 -4
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryRender.js +1 -2
- package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-loop-props-content.js +1 -2
- package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js +1 -2
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-data-summary-query.js +1 -2
- package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js +1 -2
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-props.js +1 -2
- package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js +1 -2
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js +1 -2
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-prop-value.js +1 -2
- package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-value-from-array.js +3 -5
- package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib/components/DataSummary/helpers/parse-boolean-values.js +1 -2
- package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js +1 -2
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib/components/DataSummary/index.js +1 -2
- package/lib/components/DataSummary/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +3 -4
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/EmailConfirm/index.js +1 -2
- package/lib/components/EmailConfirm/index.js.map +1 -1
- package/lib/components/EmailConfirm/mutation.js +1 -2
- package/lib/components/EmailConfirm/mutation.js.map +1 -1
- package/lib/components/Iframe/Iframe.js +1 -2
- package/lib/components/Iframe/Iframe.js.map +1 -1
- package/lib/components/Iframe/constants.js +2 -4
- package/lib/components/Iframe/constants.js.map +1 -1
- package/lib/components/Iframe/index.js +1 -2
- package/lib/components/Iframe/index.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +3 -4
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/NavButton.js +1 -2
- package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +3 -4
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +3 -4
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageDetails.js +1 -2
- package/lib/components/Image/ImageDetails.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +23 -12
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/ImageRender.js +9 -4
- package/lib/components/Image/ImageRender.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +3 -4
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/Image/Lightbox/index.js +1 -2
- package/lib/components/Image/Lightbox/index.js.map +1 -1
- package/lib/components/Image/index.js +1 -2
- package/lib/components/Image/index.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +3 -4
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/index.js +1 -2
- package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +1 -2
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/index.js +1 -2
- package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/ItemListNew.js +1 -2
- package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/index.js +1 -2
- package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
- package/lib/components/ItemList/constants.js +5 -10
- package/lib/components/ItemList/constants.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-data.js +1 -2
- package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-id.js +1 -2
- package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-ids.js +1 -2
- package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib/components/ItemList/helpers/set-item-list-id.js +1 -2
- package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/set-param-and-redirect.js +1 -2
- package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib/components/ItemList/hooks/use-item-list-id.js +1 -2
- package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib/components/Layout/Layout.js +8 -5
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/LayoutFactory.js +3 -4
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +3 -4
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/Layout/constants.js +3 -6
- package/lib/components/Layout/constants.js.map +1 -1
- package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -2
- package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib/components/Layout/helpers/get-styles-to-update.js +1 -2
- package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib/components/Layout/index.js +1 -2
- package/lib/components/Layout/index.js.map +1 -1
- package/lib/components/LazyImage/LazyImage.js +1 -2
- package/lib/components/LazyImage/LazyImage.js.map +1 -1
- package/lib/components/LazyImage/index.js +3 -4
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListBuilder.js +1 -2
- package/lib/components/List/ListBuilder.js.map +1 -1
- package/lib/components/List/ListFactory.js +3 -4
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js +1 -2
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js +1 -2
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +3 -4
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderItem.js +1 -2
- package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +3 -4
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Cards/index.js +1 -2
- package/lib/components/List/components/Cards/index.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +10 -7
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +3 -4
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js +1 -2
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Full/index.js +1 -2
- package/lib/components/List/components/Full/index.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js +1 -2
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Header/index.js +1 -2
- package/lib/components/List/components/Header/index.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js +1 -2
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +3 -4
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/components/Pagination/LoadMore.js +1 -2
- package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib/components/List/components/Pagination/index.js +1 -2
- package/lib/components/List/components/Pagination/index.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-banner.js +2 -4
- package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js +1 -2
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib/components/List/constants.js +7 -14
- package/lib/components/List/constants.js.map +1 -1
- package/lib/components/List/helpers/build-az-aggregations.js +1 -2
- package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib/components/List/helpers/build-az-url.js +2 -4
- package/lib/components/List/helpers/build-az-url.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js +1 -2
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-url.js +1 -2
- package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib/components/List/helpers/get-az-query-filter.js +1 -2
- package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib/components/List/helpers/get-items-per-page-to-use.js +1 -2
- package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
- package/lib/components/List/helpers/get-list-component.js +1 -2
- package/lib/components/List/helpers/get-list-component.js.map +1 -1
- package/lib/components/List/helpers/get-list-query.js +1 -2
- package/lib/components/List/helpers/get-list-query.js.map +1 -1
- package/lib/components/List/helpers/get-list-specific-search-filter.js +1 -2
- package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
- package/lib/components/List/helpers/get-sort-props.js +1 -2
- package/lib/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib/components/List/helpers/has-required-item-list-details.js +1 -2
- package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib/components/List/helpers/sort-aggs.js +1 -2
- package/lib/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib/components/List/helpers/strip-query-key.js +1 -2
- package/lib/components/List/helpers/strip-query-key.js.map +1 -1
- package/lib/components/List/index.js +1 -2
- package/lib/components/List/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +4 -6
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js +1 -2
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/Menu/index.js +1 -2
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js +3 -4
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/index.js +1 -2
- package/lib/components/MenuItem/index.js.map +1 -1
- package/lib/components/Modal/Modal.js +1 -2
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/index.js +1 -2
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +58 -56
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentItems.js +1 -2
- package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib/components/SearchContent/SearchContentResults.js +17 -19
- package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib/components/SearchContent/SearchContentToggleIcon.js +9 -18
- package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib/components/SearchContent/constants.js +10 -0
- package/lib/components/SearchContent/constants.js.map +1 -0
- package/lib/components/SearchContent/index.js +1 -2
- package/lib/components/SearchContent/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +3 -4
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +3 -4
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/index.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +3 -5
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +3 -4
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/components/Range.js +1 -2
- package/lib/components/SearchFilter/components/Range.js.map +1 -1
- package/lib/components/SearchFilter/components/Select.js +1 -2
- package/lib/components/SearchFilter/components/Select.js.map +1 -1
- package/lib/components/SearchFilter/components/TextSearch.js +1 -2
- package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib/components/SearchFilter/constants.js +24 -48
- package/lib/components/SearchFilter/constants.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-filters-query.js +1 -2
- package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-new-url.js +1 -2
- package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js +1 -2
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-url-query.js +1 -2
- package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-min-max.js +1 -2
- package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-step.js +1 -2
- package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js +1 -2
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib/components/SearchFilter/helpers/decode-encode.js +2 -4
- package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-display-value.js +1 -2
- package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +1 -2
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +1 -2
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-values.js +1 -2
- package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js +1 -2
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js +1 -2
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-range-value.js +1 -2
- package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js +1 -2
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-select-options.js +1 -2
- package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +1 -2
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/components/SearchFilter/helpers/is-device-desktop.js +1 -2
- package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/parse-filter-value.js +1 -2
- package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib/components/SearchFilter/index.js +1 -2
- package/lib/components/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/searchFilterReducer.js +1 -2
- package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js +1 -2
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/SearchFilterSort/constants.js +4 -8
- package/lib/components/SearchFilterSort/constants.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +1 -2
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/update-sort.js +2 -4
- package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib/components/SearchFilterSort/index.js +1 -2
- package/lib/components/SearchFilterSort/index.js.map +1 -1
- package/lib/components/SocialFollow/SFItem.js +1 -2
- package/lib/components/SocialFollow/SFItem.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollow.js +1 -2
- package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollowRender.js +1 -2
- package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib/components/SocialFollow/index.js +1 -2
- package/lib/components/SocialFollow/index.js.map +1 -1
- package/lib/components/SocialFollow/sf.config.js +4 -8
- package/lib/components/SocialFollow/sf.config.js.map +1 -1
- package/lib/components/SubMenu/SubMenu.js +1 -2
- package/lib/components/SubMenu/SubMenu.js.map +1 -1
- package/lib/components/SubMenu/index.js +1 -2
- package/lib/components/SubMenu/index.js.map +1 -1
- package/lib/components/TextBlock/TextBlockRender.js +1 -2
- package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib/components/TextBlock/index.js +1 -2
- package/lib/components/TextBlock/index.js.map +1 -1
- package/lib/components/Video/Video.js +1 -2
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoModal.js +3 -4
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +1 -2
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/index.js +1 -2
- package/lib/components/Video/index.js.map +1 -1
- package/lib/components/Video/providers/Default.js +1 -2
- package/lib/components/Video/providers/Default.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +1 -2
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +1 -2
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +3 -4
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +1 -2
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js +1 -2
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +3 -4
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/YouTube/helpers/index.js +3 -6
- package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +3 -4
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/Video/providers/index.js +1 -2
- package/lib/components/Video/providers/index.js.map +1 -1
- package/lib/components/Wrapper.js +1 -2
- package/lib/components/Wrapper.js.map +1 -1
- package/lib/components/index.js +3 -4
- package/lib/components/index.js.map +1 -1
- package/lib/constants/componentsDefaultValues.js +1 -2
- package/lib/constants/componentsDefaultValues.js.map +1 -1
- package/lib/constants/index.js +107 -212
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/append-images.js +1 -2
- package/lib/helpers/append-images.js.map +1 -1
- package/lib/helpers/build-az-filter.js +1 -2
- package/lib/helpers/build-az-filter.js.map +1 -1
- package/lib/helpers/build-checkbox-filters.js +1 -2
- package/lib/helpers/build-checkbox-filters.js.map +1 -1
- package/lib/helpers/build-image-properties.js +1 -2
- package/lib/helpers/build-image-properties.js.map +1 -1
- package/lib/helpers/build-inherited-filters.js +1 -2
- package/lib/helpers/build-inherited-filters.js.map +1 -1
- package/lib/helpers/build-link-extra-props.js +1 -2
- package/lib/helpers/build-link-extra-props.js.map +1 -1
- package/lib/helpers/build-props-query.js +1 -2
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/helpers/build-query-fields.js +1 -2
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/build-query-key.js +1 -2
- package/lib/helpers/build-query-key.js.map +1 -1
- package/lib/helpers/build-raw-query-base.js +2 -4
- package/lib/helpers/build-raw-query-base.js.map +1 -1
- package/lib/helpers/build-raw-query.js +1 -2
- package/lib/helpers/build-raw-query.js.map +1 -1
- package/lib/helpers/build-search-values-checkbox-select.js +1 -2
- package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib/helpers/build-search-values-text.js +1 -2
- package/lib/helpers/build-search-values-text.js.map +1 -1
- package/lib/helpers/build-set-filters.js +1 -2
- package/lib/helpers/build-set-filters.js.map +1 -1
- package/lib/helpers/build-sort-values.js +1 -2
- package/lib/helpers/build-sort-values.js.map +1 -1
- package/lib/helpers/check-for-error.js +1 -2
- package/lib/helpers/check-for-error.js.map +1 -1
- package/lib/helpers/check-props-to-use.js +1 -2
- package/lib/helpers/check-props-to-use.js.map +1 -1
- package/lib/helpers/entities/constants.js +3 -6
- package/lib/helpers/entities/constants.js.map +1 -1
- package/lib/helpers/get-checkbox-filters.js +1 -2
- package/lib/helpers/get-checkbox-filters.js.map +1 -1
- package/lib/helpers/get-click-wrapper-options.js +1 -2
- package/lib/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib/helpers/get-current-offset.js +1 -2
- package/lib/helpers/get-current-offset.js.map +1 -1
- package/lib/helpers/get-dictionary-match.js +1 -2
- package/lib/helpers/get-dictionary-match.js.map +1 -1
- package/lib/helpers/get-display-count-data.js +1 -2
- package/lib/helpers/get-display-count-data.js.map +1 -1
- package/lib/helpers/get-elasticsearch-operator.js +1 -2
- package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib/helpers/get-entity-data.js +1 -2
- package/lib/helpers/get-entity-data.js.map +1 -1
- package/lib/helpers/get-entity-render-props.js +1 -2
- package/lib/helpers/get-entity-render-props.js.map +1 -1
- package/lib/helpers/get-extra-az-bits.js +1 -2
- package/lib/helpers/get-extra-az-bits.js.map +1 -1
- package/lib/helpers/get-filter-props.js +1 -2
- package/lib/helpers/get-filter-props.js.map +1 -1
- package/lib/helpers/get-filter-relation-keys.js +1 -2
- package/lib/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib/helpers/get-generic-props.js +1 -2
- package/lib/helpers/get-generic-props.js.map +1 -1
- package/lib/helpers/get-generic-render-variables.js +1 -2
- package/lib/helpers/get-generic-render-variables.js.map +1 -1
- package/lib/helpers/get-image-ids.js +1 -2
- package/lib/helpers/get-image-ids.js.map +1 -1
- package/lib/helpers/get-inherited-filters.js +1 -2
- package/lib/helpers/get-inherited-filters.js.map +1 -1
- package/lib/helpers/get-items-to-display-ids.js +1 -2
- package/lib/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib/helpers/get-modifiers.js +1 -2
- package/lib/helpers/get-modifiers.js.map +1 -1
- package/lib/helpers/get-pagination-index.js +1 -2
- package/lib/helpers/get-pagination-index.js.map +1 -1
- package/lib/helpers/get-parsed-prop-values.js +1 -2
- package/lib/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib/helpers/get-parsed-summary-value.js +1 -2
- package/lib/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib/helpers/get-prop-values.js +1 -2
- package/lib/helpers/get-prop-values.js.map +1 -1
- package/lib/helpers/get-query-filters.js +1 -2
- package/lib/helpers/get-query-filters.js.map +1 -1
- package/lib/helpers/get-query-props.js +1 -2
- package/lib/helpers/get-query-props.js.map +1 -1
- package/lib/helpers/get-required-schemas.js +1 -2
- package/lib/helpers/get-required-schemas.js.map +1 -1
- package/lib/helpers/get-sanitized-prop-values.js +1 -2
- package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
- package/lib/helpers/get-search-filter-type.js +1 -2
- package/lib/helpers/get-search-filter-type.js.map +1 -1
- package/lib/helpers/get-sort-by-field-name.js +1 -2
- package/lib/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib/helpers/get-unpublished-entity-name.js +1 -2
- package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
- package/lib/helpers/get-updated-filter-by.js +1 -2
- package/lib/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js +1 -2
- package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib/helpers/has-children.js +1 -2
- package/lib/helpers/has-children.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js +1 -2
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js +1 -2
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/index.js +1 -2
- package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
- package/lib/helpers/is-browser.js +1 -2
- package/lib/helpers/is-browser.js.map +1 -1
- package/lib/helpers/is-filter-entitys-id.js +1 -2
- package/lib/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib/helpers/is-object.js +1 -2
- package/lib/helpers/is-object.js.map +1 -1
- package/lib/helpers/is-using-relation-image.js +1 -2
- package/lib/helpers/is-using-relation-image.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +3 -4
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +3 -4
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/process-data-summary-value.js +4 -6
- package/lib/helpers/process-data-summary-value.js.map +1 -1
- package/lib/helpers/remove-extra-items.js +1 -2
- package/lib/helpers/remove-extra-items.js.map +1 -1
- package/lib/helpers/remove-unwanted-characters.js +1 -2
- package/lib/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib/helpers/render-children.js +1 -2
- package/lib/helpers/render-children.js.map +1 -1
- package/lib/helpers/should-render-waypoint.js +1 -2
- package/lib/helpers/should-render-waypoint.js.map +1 -1
- package/lib/helpers/should-show-property.js +1 -2
- package/lib/helpers/should-show-property.js.map +1 -1
- package/lib/helpers/sort-response-data.js +1 -2
- package/lib/helpers/sort-response-data.js.map +1 -1
- package/lib/helpers/split-children.js +1 -2
- package/lib/helpers/split-children.js.map +1 -1
- package/lib/helpers/update-childrens-parent.js +1 -2
- package/lib/helpers/update-childrens-parent.js.map +1 -1
- package/lib/hooks/helpers/RenderComponent.js +10 -4
- package/lib/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib/hooks/helpers/StoreImages.js +1 -2
- package/lib/hooks/helpers/StoreImages.js.map +1 -1
- package/lib/hooks/helpers/append-gtm-classname.js +1 -2
- package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib/hooks/helpers/buildPBComponents.js +1 -2
- package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib/hooks/helpers/check-banner-insertion-set.js +1 -2
- package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
- package/lib/hooks/helpers/check-collisions.js +2 -4
- package/lib/hooks/helpers/check-collisions.js.map +1 -1
- package/lib/hooks/helpers/constants.js +4 -8
- package/lib/hooks/helpers/constants.js.map +1 -1
- package/lib/hooks/helpers/get-banner-index.js +1 -2
- package/lib/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib/hooks/helpers/get-banners-by-type.js +1 -2
- package/lib/hooks/helpers/get-banners-by-type.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js +1 -2
- package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib/hooks/helpers/getVariant.js +18 -0
- package/lib/hooks/helpers/getVariant.js.map +1 -0
- package/lib/hooks/helpers/index.js +1 -2
- package/lib/hooks/helpers/index.js.map +1 -1
- package/lib/hooks/helpers/inject-element-banners.js +1 -2
- package/lib/hooks/helpers/inject-element-banners.js.map +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js +1 -2
- package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib/hooks/helpers/insert-banners.js +1 -2
- package/lib/hooks/helpers/insert-banners.js.map +1 -1
- package/lib/hooks/helpers/update-targetings.js +1 -2
- package/lib/hooks/helpers/update-targetings.js.map +1 -1
- package/lib/hooks/use-banner-insertion.js +1 -2
- package/lib/hooks/use-banner-insertion.js.map +1 -1
- package/lib/hooks/use-check-mobile-screen.js +1 -2
- package/lib/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib/hooks/use-get-entity-schema.js +1 -2
- package/lib/hooks/use-get-entity-schema.js.map +1 -1
- package/lib/hooks/use-get-entity-schemas-as-obj.js +1 -2
- package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib/hooks/use-get-image-id-from-relation.js +3 -4
- package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib/hooks/use-get-images.js +5 -5
- package/lib/hooks/use-get-images.js.map +1 -1
- package/lib/hooks/use-get-single-entity-schema.js +1 -2
- package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib/hooks/use-page-builder.js +1 -2
- package/lib/hooks/use-page-builder.js.map +1 -1
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/component-map.js +4 -5
- package/lib/utils/component-map.js.map +1 -1
- package/lib/utils/get-image-data.js +1 -2
- package/lib/utils/get-image-data.js.map +1 -1
- package/lib/utils/get-props-to-display-modifiers.js +1 -2
- package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib/utils/index.js +7 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/variant-handler.js +39 -0
- package/lib/utils/variant-handler.js.map +1 -0
- package/lib/variants/index.js +9 -0
- package/lib/variants/index.js.map +1 -0
- package/lib-es/components/Card/Card.js +5 -3
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/Card/CardsContainer.js +2 -5
- package/lib-es/components/Card/CardsContainer.js.map +1 -1
- package/lib-es/components/Card/CardsRender.js +1 -2
- package/lib-es/components/Card/CardsRender.js.map +1 -1
- package/lib-es/components/Carousel/Carousel.js +27 -17
- package/lib-es/components/Carousel/Carousel.js.map +1 -1
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js +33 -53
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js +49 -0
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -0
- package/lib-es/components/Image/ImageFactory.js +18 -8
- package/lib-es/components/Image/ImageFactory.js.map +1 -1
- package/lib-es/components/Image/ImageRender.js +9 -3
- package/lib-es/components/Image/ImageRender.js.map +1 -1
- package/lib-es/components/Layout/Layout.js +8 -4
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRender.js +9 -5
- package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContent.js +53 -49
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentResults.js +16 -17
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js +13 -23
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib-es/components/SearchContent/constants.js +4 -0
- package/lib-es/components/SearchContent/constants.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilterContainer.js +0 -1
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib-es/helpers/process-data-summary-value.js +2 -2
- package/lib-es/hooks/helpers/RenderComponent.js +5 -2
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib-es/hooks/helpers/getVariant.js +14 -0
- package/lib-es/hooks/helpers/getVariant.js.map +1 -0
- package/lib-es/hooks/use-get-image-id-from-relation.js +2 -2
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib-es/hooks/use-get-images.js +4 -4
- package/lib-es/hooks/use-get-images.js.map +1 -1
- package/lib-es/index.js +2 -1
- package/lib-es/index.js.map +1 -1
- package/lib-es/utils/component-map.js +4 -4
- package/lib-es/utils/component-map.js.map +1 -1
- package/lib-es/utils/index.js +2 -1
- package/lib-es/utils/index.js.map +1 -1
- package/lib-es/utils/variant-handler.js +26 -0
- package/lib-es/utils/variant-handler.js.map +1 -0
- package/lib-es/variants/index.js +2 -0
- package/lib-es/variants/index.js.map +1 -0
- package/package.json +10 -10
- package/src/components/Card/Card.js +1 -2
- package/src/components/Card/CardsContainer.js +0 -3
- package/src/components/Card/CardsRender.js +0 -1
- package/src/components/Carousel/Carousel.js +28 -12
- package/src/components/Carousel/CarouselRender/CarouselRender.js +36 -56
- package/src/components/Carousel/hooks/useCarouselNavigation.js +50 -0
- package/src/components/Image/ImageFactory.js +20 -5
- package/src/components/Image/ImageRender.js +14 -8
- package/src/components/Layout/Layout.js +8 -5
- package/src/components/List/components/Full/FullRender.js +11 -3
- package/src/components/SearchContent/SearchContent.js +66 -52
- package/src/components/SearchContent/SearchContentResults.js +17 -17
- package/src/components/SearchContent/SearchContentToggleIcon.js +10 -23
- package/src/components/SearchContent/constants.js +6 -0
- package/src/hooks/helpers/RenderComponent.js +4 -0
- package/src/hooks/helpers/getVariant.js +11 -0
- package/src/hooks/use-get-image-id-from-relation.js +13 -2
- package/src/hooks/use-get-images.js +4 -4
- package/src/index.js +2 -1
- package/src/utils/component-map.js +4 -5
- package/src/utils/index.js +9 -1
- package/src/utils/variant-handler.js +33 -0
- package/src/variants/index.js +1 -0
- package/tests/unit/src/components/Carousel/Carousel.test.js +23 -0
- package/tests/unit/src/components/Carousel/CarouselRender/CarouselRender.test.js +14 -22
- package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +10 -0
- package/tests/unit/src/components/Image/ImageFactory.test.js +20 -3
- package/tests/unit/src/components/Image/ImageRender.test.js +12 -0
- package/tests/unit/src/components/Image/__snapshots__/ImageFactory.test.js.snap +24 -0
- package/tests/unit/src/components/Image/__snapshots__/ImageRender.test.js.snap +9 -0
- package/tests/unit/src/components/Image/mocks.js +49 -1
- package/tests/unit/src/components/Layout/Layout.test.js +11 -0
- package/tests/unit/src/components/List/components/Full/FullRender.test.js +14 -1
- package/tests/unit/src/components/List/components/Full/__snapshots__/FullRender.test.js.snap +24 -6
- package/tests/unit/src/components/List/components/mocks.js +9 -3
- package/tests/unit/src/components/Menu/__snapshots__/Menu.test.js.snap +1 -1
- package/tests/unit/src/components/PlaceholderIcon/__snapshots__/index.test.js.snap +4 -6
- package/tests/unit/src/components/SearchContent/SearchContent.test.js +32 -7
- package/tests/unit/src/components/SearchContent/__snapshots__/SearchContent.test.js.snap +66 -2
- package/tests/unit/src/utils/variant-handler.test.js +41 -0
|
@@ -5,14 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TABS = exports.TAB = exports.SIDEPANEL = exports.PANEL = exports.CONTENT_GROUP = void 0;
|
|
8
|
-
var TAB = 'tab';
|
|
9
|
-
exports.
|
|
10
|
-
var
|
|
11
|
-
exports.
|
|
12
|
-
var
|
|
13
|
-
exports.SIDEPANEL = SIDEPANEL;
|
|
14
|
-
var CONTENT_GROUP = 'content-group';
|
|
15
|
-
exports.CONTENT_GROUP = CONTENT_GROUP;
|
|
16
|
-
var PANEL = 'panel';
|
|
17
|
-
exports.PANEL = PANEL;
|
|
8
|
+
var TAB = exports.TAB = 'tab';
|
|
9
|
+
var TABS = exports.TABS = 'tabs';
|
|
10
|
+
var SIDEPANEL = exports.SIDEPANEL = 'sidepanel';
|
|
11
|
+
var CONTENT_GROUP = exports.CONTENT_GROUP = 'content-group';
|
|
12
|
+
var PANEL = exports.PANEL = 'panel';
|
|
18
13
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["TAB","exports","TABS","SIDEPANEL","CONTENT_GROUP","PANEL"],"sources":["../../../src/components/ContentGroup/constants.js"],"sourcesContent":["const TAB = 'tab';\nconst TABS = 'tabs';\nconst SIDEPANEL = 'sidepanel';\nconst CONTENT_GROUP = 'content-group';\nconst PANEL = 'panel';\n\nexport { TAB, TABS, SIDEPANEL, CONTENT_GROUP, PANEL };\n"],"mappings":";;;;;;;AAAA,IAAMA,GAAG,
|
|
1
|
+
{"version":3,"file":"constants.js","names":["TAB","exports","TABS","SIDEPANEL","CONTENT_GROUP","PANEL"],"sources":["../../../src/components/ContentGroup/constants.js"],"sourcesContent":["const TAB = 'tab';\nconst TABS = 'tabs';\nconst SIDEPANEL = 'sidepanel';\nconst CONTENT_GROUP = 'content-group';\nconst PANEL = 'panel';\n\nexport { TAB, TABS, SIDEPANEL, CONTENT_GROUP, PANEL };\n"],"mappings":";;;;;;;AAAA,IAAMA,GAAG,GAAAC,OAAA,CAAAD,GAAA,GAAG,KAAK;AACjB,IAAME,IAAI,GAAAD,OAAA,CAAAC,IAAA,GAAG,MAAM;AACnB,IAAMC,SAAS,GAAAF,OAAA,CAAAE,SAAA,GAAG,WAAW;AAC7B,IAAMC,aAAa,GAAAH,OAAA,CAAAG,aAAA,GAAG,eAAe;AACrC,IAAMC,KAAK,GAAAJ,OAAA,CAAAI,KAAA,GAAG,OAAO"}
|
|
@@ -17,6 +17,5 @@ var getActiveTab = function getActiveTab(sections, url) {
|
|
|
17
17
|
var tabToUse = isUrlTabValid && activeTabName || sections[0][0];
|
|
18
18
|
return "".concat(_constants.TAB, "-").concat(tabToUse);
|
|
19
19
|
};
|
|
20
|
-
var _default = getActiveTab;
|
|
21
|
-
exports["default"] = _default;
|
|
20
|
+
var _default = exports["default"] = getActiveTab;
|
|
22
21
|
//# sourceMappingURL=get-active-tab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-active-tab.js","names":["_constants","require","getActiveTab","sections","url","activeTabName","split","isUrlTabValid","find","section","tabToUse","concat","TAB","_default","exports"],"sources":["../../../../src/components/ContentGroup/helpers/get-active-tab.js"],"sourcesContent":["import { TAB } from '../constants';\n\nconst getActiveTab = (sections, url) => {\n const activeTabName = url.split('#')[1];\n const isUrlTabValid = !!sections.find(section => section[0] === activeTabName);\n const tabToUse = (isUrlTabValid && activeTabName) || sections[0][0];\n return `${TAB}-${tabToUse}`;\n};\n\nexport default getActiveTab;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAIC,QAAQ,EAAEC,GAAG,EAAK;EACtC,IAAMC,aAAa,GAAGD,GAAG,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;EACvC,IAAMC,aAAa,GAAG,CAAC,CAACJ,QAAQ,CAACK,IAAI,CAAC,UAAAC,OAAO;IAAA,OAAIA,OAAO,CAAC,CAAC,CAAC,KAAKJ,aAAa;EAAA,EAAC;EAC9E,IAAMK,QAAQ,GAAIH,aAAa,IAAIF,aAAa,IAAKF,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EACnE,UAAAQ,MAAA,CAAUC,cAAG,OAAAD,MAAA,CAAID,QAAQ;AAC3B,CAAC;AAAC,IAAAG,QAAA,
|
|
1
|
+
{"version":3,"file":"get-active-tab.js","names":["_constants","require","getActiveTab","sections","url","activeTabName","split","isUrlTabValid","find","section","tabToUse","concat","TAB","_default","exports"],"sources":["../../../../src/components/ContentGroup/helpers/get-active-tab.js"],"sourcesContent":["import { TAB } from '../constants';\n\nconst getActiveTab = (sections, url) => {\n const activeTabName = url.split('#')[1];\n const isUrlTabValid = !!sections.find(section => section[0] === activeTabName);\n const tabToUse = (isUrlTabValid && activeTabName) || sections[0][0];\n return `${TAB}-${tabToUse}`;\n};\n\nexport default getActiveTab;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAIC,QAAQ,EAAEC,GAAG,EAAK;EACtC,IAAMC,aAAa,GAAGD,GAAG,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;EACvC,IAAMC,aAAa,GAAG,CAAC,CAACJ,QAAQ,CAACK,IAAI,CAAC,UAAAC,OAAO;IAAA,OAAIA,OAAO,CAAC,CAAC,CAAC,KAAKJ,aAAa;EAAA,EAAC;EAC9E,IAAMK,QAAQ,GAAIH,aAAa,IAAIF,aAAa,IAAKF,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EACnE,UAAAQ,MAAA,CAAUC,cAAG,OAAAD,MAAA,CAAID,QAAQ;AAC3B,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEaZ,YAAY"}
|
|
@@ -20,6 +20,5 @@ var getSectionsData = function getSectionsData(sections) {
|
|
|
20
20
|
return [encodeURI(name), label];
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
var _default = getSectionsData;
|
|
24
|
-
exports["default"] = _default;
|
|
23
|
+
var _default = exports["default"] = getSectionsData;
|
|
25
24
|
//# sourceMappingURL=get-sections-data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sections-data.js","names":["getSectionsData","sections","map","section","_section$props","props","_section$props2","_section$props2$compo","component","_section$props2$compo2","_section$props2$compo3","settings","_section$props2$compo4","label","name","encodeURI","_default","exports"],"sources":["../../../../src/components/ContentGroup/helpers/get-sections-data.js"],"sourcesContent":["const getSectionsData = sections =>\n sections.map(section => {\n const { props: { component: { settings: { label, name } = {} } = {} } = {} } = section;\n return [encodeURI(name), label];\n });\n\nexport default getSectionsData;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAGC,QAAQ;EAAA,OAC9BA,QAAQ,CAACC,GAAG,CAAC,UAAAC,OAAO,EAAI;IACtB,IAAAC,cAAA,GAA+ED,OAAO,CAA9EE,KAAK;MAAAC,eAAA,GAAAF,cAAA,cAA2D,CAAC,CAAC,GAAAA,cAAA;MAAAG,qBAAA,GAAAD,eAAA,CAAzDE,SAAS;MAAAC,sBAAA,GAAAF,qBAAA,cAAuC,CAAC,CAAC,GAAAA,qBAAA;MAAAG,sBAAA,GAAAD,sBAAA,CAArCE,QAAQ;MAAAC,sBAAA,GAAAF,sBAAA,cAAoB,CAAC,CAAC,GAAAA,sBAAA;MAAlBG,KAAK,GAAAD,sBAAA,CAALC,KAAK;MAAEC,IAAI,GAAAF,sBAAA,CAAJE,IAAI;IACrD,OAAO,CAACC,SAAS,CAACD,IAAI,CAAC,EAAED,KAAK,CAAC;EACjC,CAAC,CAAC;AAAA;AAAC,IAAAG,QAAA,
|
|
1
|
+
{"version":3,"file":"get-sections-data.js","names":["getSectionsData","sections","map","section","_section$props","props","_section$props2","_section$props2$compo","component","_section$props2$compo2","_section$props2$compo3","settings","_section$props2$compo4","label","name","encodeURI","_default","exports"],"sources":["../../../../src/components/ContentGroup/helpers/get-sections-data.js"],"sourcesContent":["const getSectionsData = sections =>\n sections.map(section => {\n const { props: { component: { settings: { label, name } = {} } = {} } = {} } = section;\n return [encodeURI(name), label];\n });\n\nexport default getSectionsData;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAGC,QAAQ;EAAA,OAC9BA,QAAQ,CAACC,GAAG,CAAC,UAAAC,OAAO,EAAI;IACtB,IAAAC,cAAA,GAA+ED,OAAO,CAA9EE,KAAK;MAAAC,eAAA,GAAAF,cAAA,cAA2D,CAAC,CAAC,GAAAA,cAAA;MAAAG,qBAAA,GAAAD,eAAA,CAAzDE,SAAS;MAAAC,sBAAA,GAAAF,qBAAA,cAAuC,CAAC,CAAC,GAAAA,qBAAA;MAAAG,sBAAA,GAAAD,sBAAA,CAArCE,QAAQ;MAAAC,sBAAA,GAAAF,sBAAA,cAAoB,CAAC,CAAC,GAAAA,sBAAA;MAAlBG,KAAK,GAAAD,sBAAA,CAALC,KAAK;MAAEC,IAAI,GAAAF,sBAAA,CAAJE,IAAI;IACrD,OAAO,CAACC,SAAS,CAACD,IAAI,CAAC,EAAED,KAAK,CAAC;EACjC,CAAC,CAAC;AAAA;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEUjB,eAAe"}
|
|
@@ -7,6 +7,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _ContentGroup = _interopRequireDefault(require("./ContentGroup"));
|
|
10
|
-
var _default = _ContentGroup["default"];
|
|
11
|
-
exports["default"] = _default;
|
|
10
|
+
var _default = exports["default"] = _ContentGroup["default"];
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_ContentGroup","_interopRequireDefault","require","_default","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_ContentGroup","_interopRequireDefault","require","_default","exports","ContentGroup"],"sources":["../../../src/components/ContentGroup/index.js"],"sourcesContent":["import ContentGroup from './ContentGroup';\n\nexport default ContentGroup;\n"],"mappings":";;;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0C,IAAAC,QAAA,GAAAC,OAAA,cAE3BC,wBAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentGroupSection.js","names":["_react","_interopRequireDefault","require","_propTypes","_helpers","ContentGroupSection","_ref","children","name","hasChildren","createElement","key","className","propTypes","PropTypes","oneOfType","arrayOf","node","string","defaultProps","_default","exports"],"sources":["../../../src/components/ContentGroupSection/ContentGroupSection.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { hasChildren } from '../../helpers';\n\nconst ContentGroupSection = ({ children, name }) => {\n if (!hasChildren(children)) return null;\n\n return (\n <div key={name} className=\"content-group-section\">\n {children}\n </div>\n );\n};\n\nContentGroupSection.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n name: PropTypes.string\n};\n\nContentGroupSection.defaultProps = { children: null, name: '' };\n\nexport default ContentGroupSection;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAEA,IAAMG,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAA2B;EAAA,IAArBC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;EAC3C,IAAI,CAAC,IAAAC,oBAAW,EAACF,QAAQ,CAAC,EAAE,OAAO,IAAI;EAEvC,oBACEP,MAAA,YAAAU,aAAA;IAAKC,GAAG,EAAEH,IAAK;IAACI,SAAS,EAAC;EAAuB,GAC9CL,QACE,CAAC;AAEV,CAAC;AAEDF,mBAAmB,CAACQ,SAAS,GAAG;EAC9BN,QAAQ,EAAEO,qBAAS,CAACC,SAAS,CAAC,CAACD,qBAAS,CAACE,OAAO,CAACF,qBAAS,CAACG,IAAI,CAAC,EAAEH,qBAAS,CAACG,IAAI,CAAC,CAAC;EAClFT,IAAI,EAAEM,qBAAS,CAACI;AAClB,CAAC;AAEDb,mBAAmB,CAACc,YAAY,GAAG;EAAEZ,QAAQ,EAAE,IAAI;EAAEC,IAAI,EAAE;AAAG,CAAC;AAAC,IAAAY,QAAA,
|
|
1
|
+
{"version":3,"file":"ContentGroupSection.js","names":["_react","_interopRequireDefault","require","_propTypes","_helpers","ContentGroupSection","_ref","children","name","hasChildren","createElement","key","className","propTypes","PropTypes","oneOfType","arrayOf","node","string","defaultProps","_default","exports"],"sources":["../../../src/components/ContentGroupSection/ContentGroupSection.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { hasChildren } from '../../helpers';\n\nconst ContentGroupSection = ({ children, name }) => {\n if (!hasChildren(children)) return null;\n\n return (\n <div key={name} className=\"content-group-section\">\n {children}\n </div>\n );\n};\n\nContentGroupSection.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n name: PropTypes.string\n};\n\nContentGroupSection.defaultProps = { children: null, name: '' };\n\nexport default ContentGroupSection;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAEA,IAAMG,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAA2B;EAAA,IAArBC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;EAC3C,IAAI,CAAC,IAAAC,oBAAW,EAACF,QAAQ,CAAC,EAAE,OAAO,IAAI;EAEvC,oBACEP,MAAA,YAAAU,aAAA;IAAKC,GAAG,EAAEH,IAAK;IAACI,SAAS,EAAC;EAAuB,GAC9CL,QACE,CAAC;AAEV,CAAC;AAEDF,mBAAmB,CAACQ,SAAS,GAAG;EAC9BN,QAAQ,EAAEO,qBAAS,CAACC,SAAS,CAAC,CAACD,qBAAS,CAACE,OAAO,CAACF,qBAAS,CAACG,IAAI,CAAC,EAAEH,qBAAS,CAACG,IAAI,CAAC,CAAC;EAClFT,IAAI,EAAEM,qBAAS,CAACI;AAClB,CAAC;AAEDb,mBAAmB,CAACc,YAAY,GAAG;EAAEZ,QAAQ,EAAE,IAAI;EAAEC,IAAI,EAAE;AAAG,CAAC;AAAC,IAAAY,QAAA,GAAAC,OAAA,cAEjDhB,mBAAmB"}
|
|
@@ -7,6 +7,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _ContentGroupSection = _interopRequireDefault(require("./ContentGroupSection"));
|
|
10
|
-
var _default = _ContentGroupSection["default"];
|
|
11
|
-
exports["default"] = _default;
|
|
10
|
+
var _default = exports["default"] = _ContentGroupSection["default"];
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_ContentGroupSection","_interopRequireDefault","require","_default","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_ContentGroupSection","_interopRequireDefault","require","_default","exports","ContentGroupSection"],"sources":["../../../src/components/ContentGroupSection/index.js"],"sourcesContent":["import ContentGroupSection from './ContentGroupSection';\n\nexport default ContentGroupSection;\n"],"mappings":";;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAwD,IAAAC,QAAA,GAAAC,OAAA,cAEzCC,+BAAmB"}
|
|
@@ -23,8 +23,8 @@ var _helpers = require("../../helpers");
|
|
|
23
23
|
var _helpers2 = require("./helpers");
|
|
24
24
|
var _DataSummaryRender = _interopRequireDefault(require("./DataSummaryRender"));
|
|
25
25
|
var _excluded = ["entity", "dataRecordId", "propsToDisplay", "type", "useSelectedEntity", "elementTitle", "modifier", "headingStyle", "loopProperties", "loopLimit"];
|
|
26
|
-
function _getRequireWildcardCache(
|
|
27
|
-
function _interopRequireWildcard(
|
|
26
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
28
28
|
var DataSummaryFactory = function DataSummaryFactory(_ref) {
|
|
29
29
|
var entity = _ref.entity,
|
|
30
30
|
dataRecordId = _ref.dataRecordId,
|
|
@@ -93,6 +93,5 @@ DataSummaryFactory.defaultProps = {
|
|
|
93
93
|
loopProperties: [],
|
|
94
94
|
loopLimit: 0
|
|
95
95
|
};
|
|
96
|
-
var _default = DataSummaryFactory;
|
|
97
|
-
exports["default"] = _default;
|
|
96
|
+
var _default = exports["default"] = DataSummaryFactory;
|
|
98
97
|
//# sourceMappingURL=DataSummaryFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSummaryFactory.js","names":["_react","_interopRequireWildcard","require","_client","_propTypes","_interopRequireDefault","_nextjsComponents","_query","_helpers","_helpers2","_DataSummaryRender","_excluded","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"file":"DataSummaryFactory.js","names":["_react","_interopRequireWildcard","require","_client","_propTypes","_interopRequireDefault","_nextjsComponents","_query","_helpers","_helpers2","_DataSummaryRender","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","DataSummaryFactory","_ref","entity","dataRecordId","propsToDisplay","type","useSelectedEntity","elementTitle","modifier","headingStyle","loopProperties","loopLimit","dataSummaryProps","_objectWithoutProperties2","entityForQuery","parent","itemEntity","_useQuery","useQuery","getSingleEntitySchema","variables","id","data","error","loading","_useContext","useContext","MainContext","isPreview","message","length","propsToDisplayValues","checkPropsToUse","linkProps","getLinkProps","propsQueryString","buildPropsQuery","dataSummaryQuery","getDataSummaryQuery","recordId","itemId","createElement","query","htmlTag","propTypes","PropTypes","string","array","bool","number","defaultProps","_default","exports"],"sources":["../../../src/components/DataSummary/DataSummaryFactory.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useQuery } from '@apollo/client';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { getSingleEntitySchema } from '../../application/query';\nimport { buildPropsQuery, checkPropsToUse } from '../../helpers';\nimport { getDataSummaryQuery, getLinkProps } from './helpers';\nimport DataSummaryRender from './DataSummaryRender';\n\nconst DataSummaryFactory = ({\n entity,\n dataRecordId,\n propsToDisplay,\n type,\n useSelectedEntity,\n elementTitle,\n modifier,\n headingStyle,\n loopProperties,\n loopLimit,\n ...dataSummaryProps\n}) => {\n const entityForQuery = useSelectedEntity ? entity : dataSummaryProps.parent.itemEntity;\n const { data, error, loading } = useQuery(getSingleEntitySchema, {\n variables: { id: entityForQuery }\n });\n const { isPreview } = useContext(MainContext);\n if (loading) return '';\n if (error) return error.message;\n if (!data) return null;\n if (!propsToDisplay || !propsToDisplay.length) return null;\n const propsToDisplayValues = checkPropsToUse(propsToDisplay);\n const linkProps = getLinkProps(propsToDisplay);\n const propsQueryString = buildPropsQuery(data, propsToDisplayValues, null, linkProps);\n const dataSummaryQuery = getDataSummaryQuery(data, isPreview, propsQueryString);\n const recordId = dataRecordId[0] || dataSummaryProps.parent.itemId;\n\n return (\n <DataSummaryRender\n recordId={recordId}\n propsToDisplay={propsToDisplay}\n loopProperties={loopProperties}\n loopLimit={loopLimit}\n query={dataSummaryQuery}\n type={type}\n elementTitle={elementTitle}\n modifier={modifier}\n htmlTag={headingStyle}\n />\n );\n};\n\nDataSummaryFactory.propTypes = {\n type: PropTypes.string,\n dataRecordId: PropTypes.array,\n propsToDisplay: PropTypes.array,\n entity: PropTypes.string,\n useSelectedEntity: PropTypes.bool,\n elementTitle: PropTypes.string,\n modifier: PropTypes.string,\n headingStyle: PropTypes.string,\n loopProperties: PropTypes.array,\n loopLimit: PropTypes.number\n};\n\nDataSummaryFactory.defaultProps = {\n type: 'text',\n dataRecordId: [],\n propsToDisplay: [],\n useSelectedEntity: true,\n entity: '',\n elementTitle: '',\n modifier: '',\n headingStyle: 'h2',\n loopProperties: [],\n loopLimit: 0\n};\n\nexport default DataSummaryFactory;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,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;EAChBC,cAAc,EAAE,EAAE;EAClBE,iBAAiB,EAAE,IAAI;EACvBJ,MAAM,EAAE,EAAE;EACVK,YAAY,EAAE,EAAE;EAChBC,QAAQ,EAAE,EAAE;EACZC,YAAY,EAAE,IAAI;EAClBC,cAAc,EAAE,EAAE;EAClBC,SAAS,EAAE;AACb,CAAC;AAAC,IAAAwC,QAAA,GAAAC,OAAA,cAEapD,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSummaryRender.js","names":["_react","_interopRequireDefault","require","_client","_propTypes","_DataSummaryTypes","_utils","_helpers","_excluded","DataSummaryRender","_ref","type","htmlTag","recordId","query","propsToDisplay","elementTitle","loopProperties","loopLimit","otherProps","_objectWithoutProperties2","_useQuery","useQuery","variables","id","data","error","loading","message","entityData","shouldLoop","length","modifier","getClassModifiers","summaryPropsWithContent","buildLoopPropsContent","buildPropsToDisplayWithContent","summaryPropsWithCleanContent","stripSummaryPropsContent","SummaryComponent","summaryComponents","createElement","propTypes","PropTypes","string","object","array","number","defaultProps","_default","exports"],"sources":["../../../src/components/DataSummary/DataSummaryRender.js"],"sourcesContent":["import React from 'react';\nimport { useQuery } from '@apollo/client';\nimport PropTypes from 'prop-types';\nimport { summaryComponents } from './DataSummaryTypes';\nimport { getClassModifiers } from '../../utils';\nimport {\n buildPropsToDisplayWithContent,\n stripSummaryPropsContent,\n buildLoopPropsContent\n} from './helpers';\n\nconst DataSummaryRender = ({\n type,\n htmlTag,\n recordId,\n query,\n propsToDisplay,\n elementTitle,\n loopProperties,\n loopLimit,\n ...otherProps\n}) => {\n const { data, error, loading } = useQuery(query, {\n variables: { id: recordId }\n });\n\n if (loading) return '';\n if (error) return error.message;\n if (!data || !data.entityData) return null;\n\n const { entityData } = data;\n const shouldLoop = loopProperties && loopProperties.length;\n const modifier = getClassModifiers('list', otherProps);\n const summaryPropsWithContent = shouldLoop\n ? buildLoopPropsContent(loopProperties, propsToDisplay, loopLimit, entityData)\n : buildPropsToDisplayWithContent(entityData, propsToDisplay);\n\n const summaryPropsWithCleanContent = stripSummaryPropsContent(\n propsToDisplay,\n summaryPropsWithContent\n );\n const SummaryComponent = summaryComponents[type];\n if (!summaryPropsWithCleanContent.length) return null;\n\n return (\n <SummaryComponent\n modifier={modifier}\n elementTitle={elementTitle}\n summaryPropsWithContent={summaryPropsWithCleanContent}\n htmlTag={htmlTag}\n />\n );\n};\n\nDataSummaryRender.propTypes = {\n type: PropTypes.string,\n query: PropTypes.object,\n recordId: PropTypes.string,\n propsToDisplay: PropTypes.array,\n elementTitle: PropTypes.string,\n htmlTag: PropTypes.string,\n loopProperties: PropTypes.array,\n loopLimit: PropTypes.number\n};\n\nDataSummaryRender.defaultProps = {\n type: 'text',\n query: {},\n recordId: '',\n propsToDisplay: [],\n elementTitle: '',\n htmlTag: 'h2',\n loopProperties: [],\n loopLimit: 0\n};\n\nexport default DataSummaryRender;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAImB,IAAAM,SAAA;AAEnB,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAUjB;EAAA,IATJC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACRC,KAAK,GAAAJ,IAAA,CAALI,KAAK;IACLC,cAAc,GAAAL,IAAA,CAAdK,cAAc;IACdC,YAAY,GAAAN,IAAA,CAAZM,YAAY;IACZC,cAAc,GAAAP,IAAA,CAAdO,cAAc;IACdC,SAAS,GAAAR,IAAA,CAATQ,SAAS;IACNC,UAAU,OAAAC,yBAAA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qBAAS,CAACC,MAAM;EACtB9B,KAAK,EAAE6B,qBAAS,CAACE,MAAM;EACvBhC,QAAQ,EAAE8B,qBAAS,CAACC,MAAM;EAC1B7B,cAAc,EAAE4B,qBAAS,CAACG,KAAK;EAC/B9B,YAAY,EAAE2B,qBAAS,CAACC,MAAM;EAC9BhC,OAAO,EAAE+B,qBAAS,CAACC,MAAM;EACzB3B,cAAc,EAAE0B,qBAAS,CAACG,KAAK;EAC/B5B,SAAS,EAAEyB,qBAAS,CAACI;AACvB,CAAC;AAEDtC,iBAAiB,CAACuC,YAAY,GAAG;EAC/BrC,IAAI,EAAE,MAAM;EACZG,KAAK,EAAE,CAAC,CAAC;EACTD,QAAQ,EAAE,EAAE;EACZE,cAAc,EAAE,EAAE;EAClBC,YAAY,EAAE,EAAE;EAChBJ,OAAO,EAAE,IAAI;EACbK,cAAc,EAAE,EAAE;EAClBC,SAAS,EAAE;AACb,CAAC;AAAC,IAAA+B,QAAA,
|
|
1
|
+
{"version":3,"file":"DataSummaryRender.js","names":["_react","_interopRequireDefault","require","_client","_propTypes","_DataSummaryTypes","_utils","_helpers","_excluded","DataSummaryRender","_ref","type","htmlTag","recordId","query","propsToDisplay","elementTitle","loopProperties","loopLimit","otherProps","_objectWithoutProperties2","_useQuery","useQuery","variables","id","data","error","loading","message","entityData","shouldLoop","length","modifier","getClassModifiers","summaryPropsWithContent","buildLoopPropsContent","buildPropsToDisplayWithContent","summaryPropsWithCleanContent","stripSummaryPropsContent","SummaryComponent","summaryComponents","createElement","propTypes","PropTypes","string","object","array","number","defaultProps","_default","exports"],"sources":["../../../src/components/DataSummary/DataSummaryRender.js"],"sourcesContent":["import React from 'react';\nimport { useQuery } from '@apollo/client';\nimport PropTypes from 'prop-types';\nimport { summaryComponents } from './DataSummaryTypes';\nimport { getClassModifiers } from '../../utils';\nimport {\n buildPropsToDisplayWithContent,\n stripSummaryPropsContent,\n buildLoopPropsContent\n} from './helpers';\n\nconst DataSummaryRender = ({\n type,\n htmlTag,\n recordId,\n query,\n propsToDisplay,\n elementTitle,\n loopProperties,\n loopLimit,\n ...otherProps\n}) => {\n const { data, error, loading } = useQuery(query, {\n variables: { id: recordId }\n });\n\n if (loading) return '';\n if (error) return error.message;\n if (!data || !data.entityData) return null;\n\n const { entityData } = data;\n const shouldLoop = loopProperties && loopProperties.length;\n const modifier = getClassModifiers('list', otherProps);\n const summaryPropsWithContent = shouldLoop\n ? buildLoopPropsContent(loopProperties, propsToDisplay, loopLimit, entityData)\n : buildPropsToDisplayWithContent(entityData, propsToDisplay);\n\n const summaryPropsWithCleanContent = stripSummaryPropsContent(\n propsToDisplay,\n summaryPropsWithContent\n );\n const SummaryComponent = summaryComponents[type];\n if (!summaryPropsWithCleanContent.length) return null;\n\n return (\n <SummaryComponent\n modifier={modifier}\n elementTitle={elementTitle}\n summaryPropsWithContent={summaryPropsWithCleanContent}\n htmlTag={htmlTag}\n />\n );\n};\n\nDataSummaryRender.propTypes = {\n type: PropTypes.string,\n query: PropTypes.object,\n recordId: PropTypes.string,\n propsToDisplay: PropTypes.array,\n elementTitle: PropTypes.string,\n htmlTag: PropTypes.string,\n loopProperties: PropTypes.array,\n loopLimit: PropTypes.number\n};\n\nDataSummaryRender.defaultProps = {\n type: 'text',\n query: {},\n recordId: '',\n propsToDisplay: [],\n elementTitle: '',\n htmlTag: 'h2',\n loopProperties: [],\n loopLimit: 0\n};\n\nexport default DataSummaryRender;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAImB,IAAAM,SAAA;AAEnB,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAUjB;EAAA,IATJC,IAAI,GAAAD,IA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AAC;EAChD,IAAI,CAAC0B,4BAA4B,CAACN,MAAM,EAAE,OAAO,IAAI;EAErD,oBACE/B,MAAA,YAAAyC,aAAA,CAACF,gBAAgB;IACfP,QAAQ,EAAEA,QAAS;IACnBhB,YAAY,EAAEA,YAAa;IAC3BkB,uBAAuB,EAAEG,4BAA6B;IACtDzB,OAAO,EAAEA;EAAQ,CAClB,CAAC;AAEN,CAAC;AAEDH,iBAAiB,CAACiC,SAAS,GAAG;EAC5B/B,IAAI,EAAEgC,qBAAS,CAACC,MAAM;EACtB9B,KAAK,EAAE6B,qBAAS,CAACE,MAAM;EACvBhC,QAAQ,EAAE8B,qBAAS,CAACC,MAAM;EAC1B7B,cAAc,EAAE4B,qBAAS,CAACG,KAAK;EAC/B9B,YAAY,EAAE2B,qBAAS,CAACC,MAAM;EAC9BhC,OAAO,EAAE+B,qBAAS,CAACC,MAAM;EACzB3B,cAAc,EAAE0B,qBAAS,CAACG,KAAK;EAC/B5B,SAAS,EAAEyB,qBAAS,CAACI;AACvB,CAAC;AAEDtC,iBAAiB,CAACuC,YAAY,GAAG;EAC/BrC,IAAI,EAAE,MAAM;EACZG,KAAK,EAAE,CAAC,CAAC;EACTD,QAAQ,EAAE,EAAE;EACZE,cAAc,EAAE,EAAE;EAClBC,YAAY,EAAE,EAAE;EAChBJ,OAAO,EAAE,IAAI;EACbK,cAAc,EAAE,EAAE;EAClBC,SAAS,EAAE;AACb,CAAC;AAAC,IAAA+B,QAAA,GAAAC,OAAA,cAEazC,iBAAiB"}
|
package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingLargeSummary.js","names":["_react","_interopRequireDefault","require","_propTypes","_helpers","_HeadingLargeSummaryContent","HeadingLargeSummary","_ref","HtmlTag","htmlTag","summaryPropsWithContent","modifier","createElement","className","concat","getModifiers","propTypes","PropTypes","array","isRequired","string","defaultProps","_default","exports"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { getModifiers } from '../../../../helpers';\nimport HeadingLargeSummaryContent from './HeadingLargeSummaryContent';\n\nconst HeadingLargeSummary = ({ htmlTag: HtmlTag, summaryPropsWithContent, modifier }) => (\n <HtmlTag className={`${getModifiers('heading', modifier)} heading--large`}>\n <HeadingLargeSummaryContent summaryPropsWithContent={summaryPropsWithContent} />\n </HtmlTag>\n);\n\nHeadingLargeSummary.propTypes = {\n summaryPropsWithContent: PropTypes.array.isRequired,\n modifier: PropTypes.string,\n htmlTag: PropTypes.string\n};\n\nHeadingLargeSummary.defaultProps = {\n modifier: '',\n htmlTag: 'h2'\n};\n\nexport default HeadingLargeSummary;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAMI,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA;EAAA,IAAeC,OAAO,GAAAD,IAAA,CAAhBE,OAAO;IAAWC,uBAAuB,GAAAH,IAAA,CAAvBG,uBAAuB;IAAEC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;EAAA,oBAChFX,MAAA,YAAAY,aAAA,CAACJ,OAAO;IAACK,SAAS,KAAAC,MAAA,CAAK,IAAAC,qBAAY,EAAC,SAAS,EAAEJ,QAAQ,CAAC;EAAkB,gBACxEX,MAAA,YAAAY,aAAA,CAACP,2BAAA,WAA0B;IAACK,uBAAuB,EAAEA;EAAwB,CAAE,CACxE,CAAC;AAAA,CACX;AAEDJ,mBAAmB,CAACU,SAAS,GAAG;EAC9BN,uBAAuB,EAAEO,qBAAS,CAACC,KAAK,CAACC,UAAU;EACnDR,QAAQ,EAAEM,qBAAS,CAACG,MAAM;EAC1BX,OAAO,EAAEQ,qBAAS,CAACG;AACrB,CAAC;AAEDd,mBAAmB,CAACe,YAAY,GAAG;EACjCV,QAAQ,EAAE,EAAE;EACZF,OAAO,EAAE;AACX,CAAC;AAAC,IAAAa,QAAA,
|
|
1
|
+
{"version":3,"file":"HeadingLargeSummary.js","names":["_react","_interopRequireDefault","require","_propTypes","_helpers","_HeadingLargeSummaryContent","HeadingLargeSummary","_ref","HtmlTag","htmlTag","summaryPropsWithContent","modifier","createElement","className","concat","getModifiers","propTypes","PropTypes","array","isRequired","string","defaultProps","_default","exports"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { getModifiers } from '../../../../helpers';\nimport HeadingLargeSummaryContent from './HeadingLargeSummaryContent';\n\nconst HeadingLargeSummary = ({ htmlTag: HtmlTag, summaryPropsWithContent, modifier }) => (\n <HtmlTag className={`${getModifiers('heading', modifier)} heading--large`}>\n <HeadingLargeSummaryContent summaryPropsWithContent={summaryPropsWithContent} />\n </HtmlTag>\n);\n\nHeadingLargeSummary.propTypes = {\n summaryPropsWithContent: PropTypes.array.isRequired,\n modifier: PropTypes.string,\n htmlTag: PropTypes.string\n};\n\nHeadingLargeSummary.defaultProps = {\n modifier: '',\n htmlTag: 'h2'\n};\n\nexport default HeadingLargeSummary;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAMI,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA;EAAA,IAAeC,OAAO,GAAAD,IAAA,CAAhBE,OAAO;IAAWC,uBAAuB,GAAAH,IAAA,CAAvBG,uBAAuB;IAAEC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;EAAA,oBAChFX,MAAA,YAAAY,aAAA,CAACJ,OAAO;IAACK,SAAS,KAAAC,MAAA,CAAK,IAAAC,qBAAY,EAAC,SAAS,EAAEJ,QAAQ,CAAC;EAAkB,gBACxEX,MAAA,YAAAY,aAAA,CAACP,2BAAA,WAA0B;IAACK,uBAAuB,EAAEA;EAAwB,CAAE,CACxE,CAAC;AAAA,CACX;AAEDJ,mBAAmB,CAACU,SAAS,GAAG;EAC9BN,uBAAuB,EAAEO,qBAAS,CAACC,KAAK,CAACC,UAAU;EACnDR,QAAQ,EAAEM,qBAAS,CAACG,MAAM;EAC1BX,OAAO,EAAEQ,qBAAS,CAACG;AACrB,CAAC;AAEDd,mBAAmB,CAACe,YAAY,GAAG;EACjCV,QAAQ,EAAE,EAAE;EACZF,OAAO,EAAE;AACX,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,cAEajB,mBAAmB"}
|
|
@@ -21,8 +21,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
21
21
|
var _nextjsComponents = require("@blaze-cms/nextjs-components");
|
|
22
22
|
var _helpers = require("../../../../helpers");
|
|
23
23
|
var _helpers2 = require("../../helpers");
|
|
24
|
-
function _getRequireWildcardCache(
|
|
25
|
-
function _interopRequireWildcard(
|
|
24
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
25
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
26
26
|
var HeadingLargeSummaryContent = function HeadingLargeSummaryContent(_ref) {
|
|
27
27
|
var summaryPropsWithContent = _ref.summaryPropsWithContent;
|
|
28
28
|
var _useContext = (0, _react.useContext)(_nextjsComponents.MainContext),
|
|
@@ -41,6 +41,5 @@ var HeadingLargeSummaryContent = function HeadingLargeSummaryContent(_ref) {
|
|
|
41
41
|
HeadingLargeSummaryContent.propTypes = {
|
|
42
42
|
summaryPropsWithContent: _propTypes["default"].array.isRequired
|
|
43
43
|
};
|
|
44
|
-
var _default = HeadingLargeSummaryContent;
|
|
45
|
-
exports["default"] = _default;
|
|
44
|
+
var _default = exports["default"] = HeadingLargeSummaryContent;
|
|
46
45
|
//# sourceMappingURL=HeadingLargeSummaryContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingLargeSummaryContent.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_nextjsComponents","_helpers","_helpers2","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"file":"HeadingLargeSummaryContent.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_nextjsComponents","_helpers","_helpers2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","HeadingLargeSummaryContent","_ref","summaryPropsWithContent","_useContext","useContext","MainContext","itemId","map","_ref2","index","_ref3","_slicedToArray2","key","value","dynamicKey","join","wrappedValue","parseBooleanValues","getWrappedValueWithLink","createElement","Fragment","propTypes","PropTypes","array","isRequired","_default","exports"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js"],"sourcesContent":["import React, { Fragment, useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { getWrappedValueWithLink } from '../../../../helpers';\nimport { parseBooleanValues } from '../../helpers';\n\nconst HeadingLargeSummaryContent = ({ summaryPropsWithContent }) => {\n const { itemId } = useContext(MainContext);\n\n return summaryPropsWithContent.map(([key, value], index) => {\n const dynamicKey = [itemId, index].join('-');\n const wrappedValue = parseBooleanValues(getWrappedValueWithLink(value, null, itemId), key);\n\n return <Fragment key={dynamicKey}>{wrappedValue}</Fragment>;\n });\n};\n\nHeadingLargeSummaryContent.propTypes = {\n summaryPropsWithContent: PropTypes.array.isRequired\n};\n\nexport default HeadingLargeSummaryContent;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAAmD,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,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CAACqB,SAAS,GAAG;EACrCnB,uBAAuB,EAAEoB,qBAAS,CAACC,KAAK,CAACC;AAC3C,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa1B,0BAA0B"}
|
|
@@ -7,6 +7,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _HeadingLargeSummary = _interopRequireDefault(require("./HeadingLargeSummary"));
|
|
10
|
-
var _default = _HeadingLargeSummary["default"];
|
|
11
|
-
exports["default"] = _default;
|
|
10
|
+
var _default = exports["default"] = _HeadingLargeSummary["default"];
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_HeadingLargeSummary","_interopRequireDefault","require","_default","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_HeadingLargeSummary","_interopRequireDefault","require","_default","exports","HeadingLargeSummary"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js"],"sourcesContent":["import HeadingLargeSummary from './HeadingLargeSummary';\n\nexport default HeadingLargeSummary;\n"],"mappings":";;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAwD,IAAAC,QAAA,GAAAC,OAAA,cAEzCC,+BAAmB"}
|
package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js
CHANGED
|
@@ -25,6 +25,5 @@ ItemDetailsSummary.propTypes = {
|
|
|
25
25
|
ItemDetailsSummary.defaultProps = {
|
|
26
26
|
modifier: ''
|
|
27
27
|
};
|
|
28
|
-
var _default = ItemDetailsSummary;
|
|
29
|
-
exports["default"] = _default;
|
|
28
|
+
var _default = exports["default"] = ItemDetailsSummary;
|
|
30
29
|
//# sourceMappingURL=ItemDetailsSummary.js.map
|
package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemDetailsSummary.js","names":["_react","_interopRequireDefault","require","_propTypes","_helpers","_ItemDetailsSummaryContent","_excluded","ItemDetailsSummary","_ref","modifier","otherProps","_objectWithoutProperties2","createElement","className","getModifiers","propTypes","PropTypes","string","defaultProps","_default","exports"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { getModifiers } from '../../../../helpers';\nimport ItemDetailsSummaryContent from './ItemDetailsSummaryContent';\n\nconst ItemDetailsSummary = ({ modifier, ...otherProps }) => (\n <div className={getModifiers('details', modifier)}>\n <ItemDetailsSummaryContent {...otherProps} />\n </div>\n);\n\nItemDetailsSummary.propTypes = {\n modifier: PropTypes.string\n};\n\nItemDetailsSummary.defaultProps = {\n modifier: ''\n};\n\nexport default ItemDetailsSummary;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAoE,IAAAI,SAAA;AAEpE,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAKC,UAAU,OAAAC,yBAAA,aAAAH,IAAA,EAAAF,SAAA;EAAA,oBACnDN,MAAA,YAAAY,aAAA;IAAKC,SAAS,EAAE,IAAAC,qBAAY,EAAC,SAAS,EAAEL,QAAQ;EAAE,gBAChDT,MAAA,YAAAY,aAAA,CAACP,0BAAA,WAAyB,EAAKK,UAAa,CACzC,CAAC;AAAA,CACP;AAEDH,kBAAkB,CAACQ,SAAS,GAAG;EAC7BN,QAAQ,EAAEO,qBAAS,CAACC;AACtB,CAAC;AAEDV,kBAAkB,CAACW,YAAY,GAAG;EAChCT,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAU,QAAA,
|
|
1
|
+
{"version":3,"file":"ItemDetailsSummary.js","names":["_react","_interopRequireDefault","require","_propTypes","_helpers","_ItemDetailsSummaryContent","_excluded","ItemDetailsSummary","_ref","modifier","otherProps","_objectWithoutProperties2","createElement","className","getModifiers","propTypes","PropTypes","string","defaultProps","_default","exports"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { getModifiers } from '../../../../helpers';\nimport ItemDetailsSummaryContent from './ItemDetailsSummaryContent';\n\nconst ItemDetailsSummary = ({ modifier, ...otherProps }) => (\n <div className={getModifiers('details', modifier)}>\n <ItemDetailsSummaryContent {...otherProps} />\n </div>\n);\n\nItemDetailsSummary.propTypes = {\n modifier: PropTypes.string\n};\n\nItemDetailsSummary.defaultProps = {\n modifier: ''\n};\n\nexport default ItemDetailsSummary;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAoE,IAAAI,SAAA;AAEpE,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAKC,UAAU,OAAAC,yBAAA,aAAAH,IAAA,EAAAF,SAAA;EAAA,oBACnDN,MAAA,YAAAY,aAAA;IAAKC,SAAS,EAAE,IAAAC,qBAAY,EAAC,SAAS,EAAEL,QAAQ;EAAE,gBAChDT,MAAA,YAAAY,aAAA,CAACP,0BAAA,WAAyB,EAAKK,UAAa,CACzC,CAAC;AAAA,CACP;AAEDH,kBAAkB,CAACQ,SAAS,GAAG;EAC7BN,QAAQ,EAAEO,qBAAS,CAACC;AACtB,CAAC;AAEDV,kBAAkB,CAACW,YAAY,GAAG;EAChCT,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,cAEab,kBAAkB"}
|
package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js
CHANGED
|
@@ -22,8 +22,8 @@ var _nextjsComponents = require("@blaze-cms/nextjs-components");
|
|
|
22
22
|
var _helpers = require("../../../../helpers");
|
|
23
23
|
var _helpers2 = require("../../helpers");
|
|
24
24
|
var _HOC = require("../../../../HOC");
|
|
25
|
-
function _getRequireWildcardCache(
|
|
26
|
-
function _interopRequireWildcard(
|
|
25
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
27
27
|
var ItemDetailsSummaryContent = function ItemDetailsSummaryContent(_ref) {
|
|
28
28
|
var summaryPropsWithContent = _ref.summaryPropsWithContent;
|
|
29
29
|
var _useContext = (0, _react.useContext)(_nextjsComponents.MainContext),
|
|
@@ -47,6 +47,5 @@ var ItemDetailsSummaryContent = function ItemDetailsSummaryContent(_ref) {
|
|
|
47
47
|
ItemDetailsSummaryContent.propTypes = {
|
|
48
48
|
summaryPropsWithContent: _propTypes["default"].array.isRequired
|
|
49
49
|
};
|
|
50
|
-
var _default = (0, _HOC.withTitle)(ItemDetailsSummaryContent);
|
|
51
|
-
exports["default"] = _default;
|
|
50
|
+
var _default = exports["default"] = (0, _HOC.withTitle)(ItemDetailsSummaryContent);
|
|
52
51
|
//# sourceMappingURL=ItemDetailsSummaryContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemDetailsSummaryContent.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_nextjsComponents","_helpers","_helpers2","_HOC","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"file":"ItemDetailsSummaryContent.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_nextjsComponents","_helpers","_helpers2","_HOC","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","ItemDetailsSummaryContent","_ref","summaryPropsWithContent","_useContext","useContext","MainContext","itemId","map","_ref2","index","_ref3","_slicedToArray2","key","value","link","modifier","dynamicKey","join","wrappedValue","parseBooleanValues","getWrappedValueWithLink","createElement","className","propTypes","PropTypes","array","isRequired","_default","exports","withTitle"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { getWrappedValueWithLink } from '../../../../helpers';\nimport { parseBooleanValues } from '../../helpers';\nimport { withTitle } from '../../../../HOC';\n\nconst ItemDetailsSummaryContent = ({ summaryPropsWithContent }) => {\n const { itemId } = useContext(MainContext);\n return summaryPropsWithContent.map(([key, value, link, modifier], index) => {\n const dynamicKey = [itemId, index, value].join('-');\n const wrappedValue = parseBooleanValues(getWrappedValueWithLink(value, link, itemId), key);\n\n return (\n <span className={modifier} key={dynamicKey}>\n {key && <span className=\"item-details-summary-label\">{key}</span>} {wrappedValue}\n </span>\n );\n });\n};\n\nItemDetailsSummaryContent.propTypes = {\n summaryPropsWithContent: PropTypes.array.isRequired\n};\n\nexport default withTitle(ItemDetailsSummaryContent);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,IAAA,GAAAN,OAAA;AAA4C,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,I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C3C,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa,IAAAC,cAAS,EAAC7B,yBAAyB,CAAC"}
|
|
@@ -7,6 +7,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _ItemDetailsSummary = _interopRequireDefault(require("./ItemDetailsSummary"));
|
|
10
|
-
var _default = _ItemDetailsSummary["default"];
|
|
11
|
-
exports["default"] = _default;
|
|
10
|
+
var _default = exports["default"] = _ItemDetailsSummary["default"];
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_ItemDetailsSummary","_interopRequireDefault","require","_default","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_ItemDetailsSummary","_interopRequireDefault","require","_default","exports","ItemDetailsSummary"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js"],"sourcesContent":["import ItemDetailsSummary from './ItemDetailsSummary';\n\nexport default ItemDetailsSummary;\n"],"mappings":";;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAsD,IAAAC,QAAA,GAAAC,OAAA,cAEvCC,8BAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LargeSummary.js","names":["_react","_interopRequireDefault","require","_propTypes","_helpers","_LargeSummaryContent","_excluded","LargeSummary","_ref","modifier","otherProps","_objectWithoutProperties2","createElement","className","getModifiers","propTypes","PropTypes","string","defaultProps","_default","exports"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { getModifiers } from '../../../../helpers';\nimport LargeSummaryContent from './LargeSummaryContent';\n\nconst LargeSummary = ({ modifier, ...otherProps }) => (\n <div className={getModifiers('stats', modifier)}>\n <LargeSummaryContent {...otherProps} />\n </div>\n);\n\nLargeSummary.propTypes = {\n modifier: PropTypes.string\n};\n\nLargeSummary.defaultProps = {\n modifier: ''\n};\n\nexport default LargeSummary;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAwD,IAAAI,SAAA;AAExD,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAKC,UAAU,OAAAC,yBAAA,aAAAH,IAAA,EAAAF,SAAA;EAAA,oBAC7CN,MAAA,YAAAY,aAAA;IAAKC,SAAS,EAAE,IAAAC,qBAAY,EAAC,OAAO,EAAEL,QAAQ;EAAE,gBAC9CT,MAAA,YAAAY,aAAA,CAACP,oBAAA,WAAmB,EAAKK,UAAa,CACnC,CAAC;AAAA,CACP;AAEDH,YAAY,CAACQ,SAAS,GAAG;EACvBN,QAAQ,EAAEO,qBAAS,CAACC;AACtB,CAAC;AAEDV,YAAY,CAACW,YAAY,GAAG;EAC1BT,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAU,QAAA,
|
|
1
|
+
{"version":3,"file":"LargeSummary.js","names":["_react","_interopRequireDefault","require","_propTypes","_helpers","_LargeSummaryContent","_excluded","LargeSummary","_ref","modifier","otherProps","_objectWithoutProperties2","createElement","className","getModifiers","propTypes","PropTypes","string","defaultProps","_default","exports"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { getModifiers } from '../../../../helpers';\nimport LargeSummaryContent from './LargeSummaryContent';\n\nconst LargeSummary = ({ modifier, ...otherProps }) => (\n <div className={getModifiers('stats', modifier)}>\n <LargeSummaryContent {...otherProps} />\n </div>\n);\n\nLargeSummary.propTypes = {\n modifier: PropTypes.string\n};\n\nLargeSummary.defaultProps = {\n modifier: ''\n};\n\nexport default LargeSummary;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAwD,IAAAI,SAAA;AAExD,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAKC,UAAU,OAAAC,yBAAA,aAAAH,IAAA,EAAAF,SAAA;EAAA,oBAC7CN,MAAA,YAAAY,aAAA;IAAKC,SAAS,EAAE,IAAAC,qBAAY,EAAC,OAAO,EAAEL,QAAQ;EAAE,gBAC9CT,MAAA,YAAAY,aAAA,CAACP,oBAAA,WAAmB,EAAKK,UAAa,CACnC,CAAC;AAAA,CACP;AAEDH,YAAY,CAACQ,SAAS,GAAG;EACvBN,QAAQ,EAAEO,qBAAS,CAACC;AACtB,CAAC;AAEDV,YAAY,CAACW,YAAY,GAAG;EAC1BT,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,cAEab,YAAY"}
|
|
@@ -23,8 +23,8 @@ var _nextjsComponents = require("@blaze-cms/nextjs-components");
|
|
|
23
23
|
var _helpers = require("../../../../helpers");
|
|
24
24
|
var _helpers2 = require("../../helpers");
|
|
25
25
|
var _HOC = require("../../../../HOC");
|
|
26
|
-
function _getRequireWildcardCache(
|
|
27
|
-
function _interopRequireWildcard(
|
|
26
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
28
28
|
var LargeSummaryContent = function LargeSummaryContent(_ref) {
|
|
29
29
|
var summaryPropsWithContent = _ref.summaryPropsWithContent;
|
|
30
30
|
var _useContext = (0, _react.useContext)(_nextjsComponents.MainContext),
|
|
@@ -54,6 +54,5 @@ var LargeSummaryContent = function LargeSummaryContent(_ref) {
|
|
|
54
54
|
LargeSummaryContent.propTypes = {
|
|
55
55
|
summaryPropsWithContent: _propTypes["default"].array.isRequired
|
|
56
56
|
};
|
|
57
|
-
var _default = (0, _HOC.withTitle)(LargeSummaryContent);
|
|
58
|
-
exports["default"] = _default;
|
|
57
|
+
var _default = exports["default"] = (0, _HOC.withTitle)(LargeSummaryContent);
|
|
59
58
|
//# sourceMappingURL=LargeSummaryContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LargeSummaryContent.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_lodash","_nextjsComponents","_helpers","_helpers2","_HOC","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"file":"LargeSummaryContent.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_lodash","_nextjsComponents","_helpers","_helpers2","_HOC","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","LargeSummaryContent","_ref","summaryPropsWithContent","_useContext","useContext","MainContext","itemId","createElement","className","map","_ref2","index","_ref3","_slicedToArray2","key","value","link","modifier","dynamicKey","join","wrappedValue","parseBooleanValues","getWrappedValueWithLink","upperFirst","concat","propTypes","PropTypes","array","isRequired","_default","exports","withTitle"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport upperFirst from 'lodash.upperfirst';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { getWrappedValueWithLink } from '../../../../helpers';\nimport { parseBooleanValues } from '../../helpers';\nimport { withTitle } from '../../../../HOC';\n\nconst LargeSummaryContent = ({ summaryPropsWithContent }) => {\n const { itemId } = useContext(MainContext);\n\n return (\n <div className=\"stats__wrapper\">\n {summaryPropsWithContent.map(([key, value, link, modifier], index) => {\n const dynamicKey = [itemId, index].join('-');\n const wrappedValue = parseBooleanValues(\n getWrappedValueWithLink(value, link, itemId),\n upperFirst(key)\n );\n\n return (\n <div key={dynamicKey} className=\"stats__block\">\n <div className=\"stats__text\">\n <div className={`stats__title ${modifier}`}>{upperFirst(key)}</div>\n {wrappedValue && <div className={`stats__value ${modifier}`}>{wrappedValue}</div>}\n </div>\n </div>\n );\n })}\n </div>\n );\n};\n\nLargeSummaryContent.propTypes = {\n summaryPropsWithContent: PropTypes.array.isRequired\n};\n\nexport default withTitle(LargeSummaryContent);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,IAAA,GAAAP,OAAA;AAA4C,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA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ary"));
|
|
10
|
-
var _default = _LargeSummary["default"];
|
|
11
|
-
exports["default"] = _default;
|
|
10
|
+
var _default = exports["default"] = _LargeSummary["default"];
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_LargeSummary","_interopRequireDefault","require","_default","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_LargeSummary","_interopRequireDefault","require","_default","exports","LargeSummary"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/LargeSummary/index.js"],"sourcesContent":["import LargeSummary from './LargeSummary';\n\nexport default LargeSummary;\n"],"mappings":";;;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0C,IAAAC,QAAA,GAAAC,OAAA,cAE3BC,wBAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListSummary.js","names":["_react","_interopRequireDefault","require","_propTypes","_helpers","_ListSummaryContent","_excluded","ListSummary","_ref","modifier","otherProps","_objectWithoutProperties2","createElement","className","getModifiers","propTypes","PropTypes","string","defaultProps","_default","exports"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { getModifiers } from '../../../../helpers';\nimport ListSummaryContent from './ListSummaryContent';\n\nconst ListSummary = ({ modifier, ...otherProps }) => (\n <div className={getModifiers('spec-block', modifier)}>\n <ListSummaryContent {...otherProps} />\n </div>\n);\n\nListSummary.propTypes = {\n modifier: PropTypes.string\n};\n\nListSummary.defaultProps = {\n modifier: ''\n};\n\nexport default ListSummary;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAsD,IAAAI,SAAA;AAEtD,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAKC,UAAU,OAAAC,yBAAA,aAAAH,IAAA,EAAAF,SAAA;EAAA,oBAC5CN,MAAA,YAAAY,aAAA;IAAKC,SAAS,EAAE,IAAAC,qBAAY,EAAC,YAAY,EAAEL,QAAQ;EAAE,gBACnDT,MAAA,YAAAY,aAAA,CAACP,mBAAA,WAAkB,EAAKK,UAAa,CAClC,CAAC;AAAA,CACP;AAEDH,WAAW,CAACQ,SAAS,GAAG;EACtBN,QAAQ,EAAEO,qBAAS,CAACC;AACtB,CAAC;AAEDV,WAAW,CAACW,YAAY,GAAG;EACzBT,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAU,QAAA,
|
|
1
|
+
{"version":3,"file":"ListSummary.js","names":["_react","_interopRequireDefault","require","_propTypes","_helpers","_ListSummaryContent","_excluded","ListSummary","_ref","modifier","otherProps","_objectWithoutProperties2","createElement","className","getModifiers","propTypes","PropTypes","string","defaultProps","_default","exports"],"sources":["../../../../../src/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { getModifiers } from '../../../../helpers';\nimport ListSummaryContent from './ListSummaryContent';\n\nconst ListSummary = ({ modifier, ...otherProps }) => (\n <div className={getModifiers('spec-block', modifier)}>\n <ListSummaryContent {...otherProps} />\n </div>\n);\n\nListSummary.propTypes = {\n modifier: PropTypes.string\n};\n\nListSummary.defaultProps = {\n modifier: ''\n};\n\nexport default ListSummary;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAsD,IAAAI,SAAA;AAEtD,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAKC,UAAU,OAAAC,yBAAA,aAAAH,IAAA,EAAAF,SAAA;EAAA,oBAC5CN,MAAA,YAAAY,aAAA;IAAKC,SAAS,EAAE,IAAAC,qBAAY,EAAC,YAAY,EAAEL,QAAQ;EAAE,gBACnDT,MAAA,YAAAY,aAAA,CAACP,mBAAA,WAAkB,EAAKK,UAAa,CAClC,CAAC;AAAA,CACP;AAEDH,WAAW,CAACQ,SAAS,GAAG;EACtBN,QAAQ,EAAEO,qBAAS,CAACC;AACtB,CAAC;AAEDV,WAAW,CAACW,YAAY,GAAG;EACzBT,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,cAEab,WAAW"}
|
|
@@ -22,8 +22,8 @@ var _nextjsComponents = require("@blaze-cms/nextjs-components");
|
|
|
22
22
|
var _helpers = require("../../../../helpers");
|
|
23
23
|
var _helpers2 = require("../../helpers");
|
|
24
24
|
var _HOC = require("../../../../HOC");
|
|
25
|
-
function _getRequireWildcardCache(
|
|
26
|
-
function _interopRequireWildcard(
|
|
25
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
27
27
|
var ListSummaryContent = function ListSummaryContent(_ref) {
|
|
28
28
|
var summaryPropsWithContent = _ref.summaryPropsWithContent;
|
|
29
29
|
var _useContext = (0, _react.useContext)(_nextjsComponents.MainContext),
|
|
@@ -53,6 +53,5 @@ var ListSummaryContent = function ListSummaryContent(_ref) {
|
|
|
53
53
|
ListSummaryContent.propTypes = {
|
|
54
54
|
summaryPropsWithContent: _propTypes["default"].array.isRequired
|
|
55
55
|
};
|
|
56
|
-
var _default = (0, _HOC.withTitle)(ListSummaryContent);
|
|
57
|
-
exports["default"] = _default;
|
|
56
|
+
var _default = exports["default"] = (0, _HOC.withTitle)(ListSummaryContent);
|
|
58
57
|
//# sourceMappingURL=ListSummaryContent.js.map
|