@blaze-cms/react-page-builder 0.146.0-rc-eagle.0 → 0.146.0-rc-eagle-3.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 +7 -1
- package/lib/BannerContext/index.js +2 -1
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +2 -1
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +2 -1
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +2 -1
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +2 -1
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +2 -1
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/index.js +2 -1
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +2 -1
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +2 -1
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Button.js +2 -1
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +2 -1
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +2 -1
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsRender.js +2 -1
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +2 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js +2 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/ClickWrapper.js +2 -1
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +2 -1
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +2 -1
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroup.js +42 -9
- package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupAccordion.js +2 -1
- package/lib/components/ContentGroup/ContentGroupAccordion.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupDataFetcher.js +97 -0
- package/lib/components/ContentGroup/ContentGroupDataFetcher.js.map +1 -0
- package/lib/components/ContentGroup/ContentGroupTabs.js +2 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ContentGroup/helpers/build-data-sections.js +47 -0
- package/lib/components/ContentGroup/helpers/build-data-sections.js.map +1 -0
- package/lib/components/ContentGroup/helpers/index.js +7 -0
- package/lib/components/ContentGroup/helpers/index.js.map +1 -1
- package/lib/components/ContentGroupSection/ContentGroupSection.js +3 -2
- package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +2 -1
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +2 -1
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/ErrorMessage/index.js +2 -1
- package/lib/components/ErrorMessage/index.js.map +1 -1
- package/lib/components/Iframe/Iframe.js +16 -6
- package/lib/components/Iframe/Iframe.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +2 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +2 -1
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +2 -1
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +2 -1
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +2 -1
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +2 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/Layout/Layout.js +14 -3
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/LayoutFactory.js +2 -1
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +2 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/LazyImage/index.js +2 -1
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListFactory.js +2 -1
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js +2 -1
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +2 -1
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +2 -1
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +2 -1
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +2 -1
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/Loading/index.js +2 -1
- package/lib/components/Loading/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +2 -1
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/MenuItem/MenuItemRender.js +2 -1
- package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib/components/ModalAdapter/index.js +2 -1
- package/lib/components/ModalAdapter/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +2 -1
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +2 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +2 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +2 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +2 -1
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/Video/VideoModal.js +2 -1
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +2 -1
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +2 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +2 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +2 -1
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/index.js +2 -1
- package/lib/components/index.js.map +1 -1
- package/lib/helpers/get-component-id.js +9 -3
- package/lib/helpers/get-component-id.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +2 -1
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +2 -1
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/hooks/use-portal.js +2 -1
- package/lib/hooks/use-portal.js.map +1 -1
- package/lib/system-components/EditorMode/BlazeLogo.js +2 -1
- package/lib/system-components/EditorMode/BlazeLogo.js.map +1 -1
- package/lib/system-components/EditorMode/PbWrapper.js +2 -1
- package/lib/system-components/EditorMode/PbWrapper.js.map +1 -1
- package/lib/system-components/index.js +2 -1
- package/lib/system-components/index.js.map +1 -1
- package/lib/variants/Infographic/index.js +2 -1
- package/lib/variants/Infographic/index.js.map +1 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js +2 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -1
- package/lib/variants/LiveBlogList/index.js +2 -1
- package/lib/variants/LiveBlogList/index.js.map +1 -1
- package/lib/variants/LongformGallery/index.js +2 -1
- package/lib/variants/LongformGallery/index.js.map +1 -1
- package/lib/variants/SlideSummary/index.js +2 -1
- package/lib/variants/SlideSummary/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/index.js +2 -1
- package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
- package/lib-es/BannerContext/helpers/index.js +3 -0
- package/lib-es/BannerContext/helpers/index.js.map +1 -0
- package/lib-es/BannerContext/helpers/set-initial-banner-counters.js +17 -0
- package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -0
- package/lib-es/BannerContext/index.js +29 -0
- package/lib-es/BannerContext/index.js.map +1 -0
- package/lib-es/HOC/index.js +3 -0
- package/lib-es/HOC/index.js.map +1 -0
- package/lib-es/HOC/recreateOnNavigation.js +20 -0
- package/lib-es/HOC/recreateOnNavigation.js.map +1 -0
- package/lib-es/HOC/withInfiniteScroll.js +62 -0
- package/lib-es/HOC/withInfiniteScroll.js.map +1 -0
- package/lib-es/HOC/withTitle.js +36 -0
- package/lib-es/HOC/withTitle.js.map +1 -0
- package/lib-es/PBContext/index.js +6 -0
- package/lib-es/PBContext/index.js.map +1 -0
- package/lib-es/application/query/index.js +178 -0
- package/lib-es/application/query/index.js.map +1 -0
- package/lib-es/components/BackToTop/BackToTop.js +38 -0
- package/lib-es/components/BackToTop/BackToTop.js.map +1 -0
- package/lib-es/components/BackToTop/index.js +3 -0
- package/lib-es/components/BackToTop/index.js.map +1 -0
- package/lib-es/components/Banner/AdSlotRender.js +73 -0
- package/lib-es/components/Banner/AdSlotRender.js.map +1 -0
- package/lib-es/components/Banner/Banner.js +94 -0
- package/lib-es/components/Banner/Banner.js.map +1 -0
- package/lib-es/components/Banner/BannerRender.js +125 -0
- package/lib-es/components/Banner/BannerRender.js.map +1 -0
- package/lib-es/components/Banner/helpers.js +155 -0
- package/lib-es/components/Banner/helpers.js.map +1 -0
- package/lib-es/components/Banner/index.js +3 -0
- package/lib-es/components/Banner/index.js.map +1 -0
- package/lib-es/components/BlazeLink.js +68 -0
- package/lib-es/components/BlazeLink.js.map +1 -0
- package/lib-es/components/Breadcrumb/Breadcrumb.js +88 -0
- package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/lib-es/components/Breadcrumb/index.js +3 -0
- package/lib-es/components/Breadcrumb/index.js.map +1 -0
- package/lib-es/components/Button.js +134 -0
- package/lib-es/components/Button.js.map +1 -0
- package/lib-es/components/Card/Card.js +290 -0
- package/lib-es/components/Card/Card.js.map +1 -0
- package/lib-es/components/Card/CardsContainer.js +186 -0
- package/lib-es/components/Card/CardsContainer.js.map +1 -0
- package/lib-es/components/Card/CardsFactory.js +99 -0
- package/lib-es/components/Card/CardsFactory.js.map +1 -0
- package/lib-es/components/Card/CardsRender.js +203 -0
- package/lib-es/components/Card/CardsRender.js.map +1 -0
- package/lib-es/components/Card/constants.js +4 -0
- package/lib-es/components/Card/constants.js.map +1 -0
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js +21 -0
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -0
- package/lib-es/components/Card/helpers/get-published-listing-url.js +3 -0
- package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -0
- package/lib-es/components/Card/helpers/index.js +10 -0
- package/lib-es/components/Card/helpers/index.js.map +1 -0
- package/lib-es/components/Card/helpers/use-dynamic-size-key.js +6 -0
- package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -0
- package/lib-es/components/Card/index.js +3 -0
- package/lib-es/components/Card/index.js.map +1 -0
- package/lib-es/components/Carousel/Carousel.js +78 -0
- package/lib-es/components/Carousel/Carousel.js.map +1 -0
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js +59 -0
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -0
- package/lib-es/components/Carousel/CarouselImage/constants.js +2 -0
- package/lib-es/components/Carousel/CarouselImage/constants.js.map +1 -0
- package/lib-es/components/Carousel/CarouselImage/index.js +3 -0
- package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -0
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js +74 -0
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -0
- package/lib-es/components/Carousel/CarouselRender/index.js +3 -0
- package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -0
- 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/Carousel/index.js +3 -0
- package/lib-es/components/Carousel/index.js.map +1 -0
- package/lib-es/components/CarouselWrapper/CarouselWrapper.js +22 -0
- package/lib-es/components/CarouselWrapper/CarouselWrapper.js.map +1 -0
- package/lib-es/components/CarouselWrapper/DefaultCarousel.js +140 -0
- package/lib-es/components/CarouselWrapper/DefaultCarousel.js.map +1 -0
- package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js +43 -0
- package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -0
- package/lib-es/components/CarouselWrapper/index.js +3 -0
- package/lib-es/components/CarouselWrapper/index.js.map +1 -0
- package/lib-es/components/ClickWrapper.js +40 -0
- package/lib-es/components/ClickWrapper.js.map +1 -0
- package/lib-es/components/Code/Code.js +43 -0
- package/lib-es/components/Code/Code.js.map +1 -0
- package/lib-es/components/Code/ScriptTag.js +32 -0
- package/lib-es/components/Code/ScriptTag.js.map +1 -0
- package/lib-es/components/Code/helpers/index.js +2 -0
- package/lib-es/components/Code/helpers/index.js.map +1 -0
- package/lib-es/components/Code/helpers/wrap-script-tags.js +36 -0
- package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -0
- package/lib-es/components/Code/index.js +3 -0
- package/lib-es/components/Code/index.js.map +1 -0
- package/lib-es/components/ContentGroup/ContentGroup.js +95 -0
- package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -0
- package/lib-es/components/ContentGroup/ContentGroupAccordion.js +138 -0
- package/lib-es/components/ContentGroup/ContentGroupAccordion.js.map +1 -0
- package/lib-es/components/ContentGroup/ContentGroupDataFetcher.js +88 -0
- package/lib-es/components/ContentGroup/ContentGroupDataFetcher.js.map +1 -0
- package/lib-es/components/ContentGroup/ContentGroupTabs.js +83 -0
- package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -0
- package/lib-es/components/ContentGroup/constants.js +18 -0
- package/lib-es/components/ContentGroup/constants.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/build-data-sections.js +38 -0
- package/lib-es/components/ContentGroup/helpers/build-data-sections.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js +9 -0
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/get-sections-data.js +15 -0
- package/lib-es/components/ContentGroup/helpers/get-sections-data.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/get-structured-data-properties.js +33 -0
- package/lib-es/components/ContentGroup/helpers/get-structured-data-properties.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/index.js +5 -0
- package/lib-es/components/ContentGroup/helpers/index.js.map +1 -0
- package/lib-es/components/ContentGroup/index.js +3 -0
- package/lib-es/components/ContentGroup/index.js.map +1 -0
- package/lib-es/components/ContentGroupSection/ContentGroupSection.js +24 -0
- package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -0
- package/lib-es/components/ContentGroupSection/index.js +3 -0
- package/lib-es/components/ContentGroupSection/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryFactory.js +93 -0
- package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryRender.js +92 -0
- package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +24 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +24 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +28 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +35 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +34 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +29 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js +9 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/build-loop-props-content.js +61 -0
- package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js +45 -0
- package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-data-summary-query.js +19 -0
- package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js +15 -0
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-link-props.js +6 -0
- package/lib-es/components/DataSummary/helpers/get-link-props.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js +9 -0
- package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js +12 -0
- package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-prop-value.js +20 -0
- package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-record-id.js +14 -0
- package/lib-es/components/DataSummary/helpers/get-record-id.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-value-from-array.js +17 -0
- package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/index.js +11 -0
- package/lib-es/components/DataSummary/helpers/index.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/parse-boolean-values.js +7 -0
- package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js +14 -0
- package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -0
- package/lib-es/components/DataSummary/index.js +3 -0
- package/lib-es/components/DataSummary/index.js.map +1 -0
- package/lib-es/components/DateTime/DateTime.js +36 -0
- package/lib-es/components/DateTime/DateTime.js.map +1 -0
- package/lib-es/components/DateTime/index.js +3 -0
- package/lib-es/components/DateTime/index.js.map +1 -0
- package/lib-es/components/EmailConfirm/EmailConfirm.js +71 -0
- package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -0
- package/lib-es/components/EmailConfirm/index.js +3 -0
- package/lib-es/components/EmailConfirm/index.js.map +1 -0
- package/lib-es/components/EmailConfirm/mutation.js +13 -0
- package/lib-es/components/EmailConfirm/mutation.js.map +1 -0
- package/lib-es/components/ErrorMessage/ErrorMessage.js +30 -0
- package/lib-es/components/ErrorMessage/ErrorMessage.js.map +1 -0
- package/lib-es/components/ErrorMessage/index.js +3 -0
- package/lib-es/components/ErrorMessage/index.js.map +1 -0
- package/lib-es/components/Iframe/Iframe.js +52 -0
- package/lib-es/components/Iframe/Iframe.js.map +1 -0
- package/lib-es/components/Iframe/constants.js +7 -0
- package/lib-es/components/Iframe/constants.js.map +1 -0
- package/lib-es/components/Iframe/index.js +3 -0
- package/lib-es/components/Iframe/index.js.map +1 -0
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js +161 -0
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -0
- package/lib-es/components/Image/GlobalLightbox/NavButton.js +24 -0
- package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -0
- package/lib-es/components/Image/GlobalLightbox/index.js +3 -0
- package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -0
- package/lib-es/components/Image/Image.js +173 -0
- package/lib-es/components/Image/Image.js.map +1 -0
- package/lib-es/components/Image/ImageDetails.js +27 -0
- package/lib-es/components/Image/ImageDetails.js.map +1 -0
- package/lib-es/components/Image/ImageFactory.js +86 -0
- package/lib-es/components/Image/ImageFactory.js.map +1 -0
- package/lib-es/components/Image/ImageRender.js +86 -0
- package/lib-es/components/Image/ImageRender.js.map +1 -0
- package/lib-es/components/Image/Lightbox/Lightbox.js +63 -0
- package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -0
- package/lib-es/components/Image/Lightbox/index.js +3 -0
- package/lib-es/components/Image/Lightbox/index.js.map +1 -0
- package/lib-es/components/Image/index.js +3 -0
- package/lib-es/components/Image/index.js.map +1 -0
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js +107 -0
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -0
- package/lib-es/components/ItemList/ItemListButton/index.js +3 -0
- package/lib-es/components/ItemList/ItemListButton/index.js.map +1 -0
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js +57 -0
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -0
- package/lib-es/components/ItemList/ItemListCounter/index.js +3 -0
- package/lib-es/components/ItemList/ItemListCounter/index.js.map +1 -0
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js +60 -0
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -0
- package/lib-es/components/ItemList/ItemListNew/index.js +3 -0
- package/lib-es/components/ItemList/ItemListNew/index.js.map +1 -0
- package/lib-es/components/ItemList/constants.js +6 -0
- package/lib-es/components/ItemList/constants.js.map +1 -0
- package/lib-es/components/ItemList/helpers/get-item-list-data.js +6 -0
- package/lib-es/components/ItemList/helpers/get-item-list-data.js.map +1 -0
- package/lib-es/components/ItemList/helpers/get-item-list-id.js +9 -0
- package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -0
- package/lib-es/components/ItemList/helpers/get-item-list-ids.js +11 -0
- package/lib-es/components/ItemList/helpers/get-item-list-ids.js.map +1 -0
- package/lib-es/components/ItemList/helpers/index.js +6 -0
- package/lib-es/components/ItemList/helpers/index.js.map +1 -0
- package/lib-es/components/ItemList/helpers/set-item-list-id.js +8 -0
- package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -0
- package/lib-es/components/ItemList/helpers/set-param-and-redirect.js +17 -0
- package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -0
- package/lib-es/components/ItemList/hooks/index.js +2 -0
- package/lib-es/components/ItemList/hooks/index.js.map +1 -0
- package/lib-es/components/ItemList/hooks/use-item-list-id.js +23 -0
- package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -0
- package/lib-es/components/ItemList/icons/AddedBookmark.js +33 -0
- package/lib-es/components/ItemList/icons/AddedBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js +37 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js +35 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js +33 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/index.js +5 -0
- package/lib-es/components/ItemList/icons/index.js.map +1 -0
- package/lib-es/components/Layout/Layout.js +105 -0
- package/lib-es/components/Layout/Layout.js.map +1 -0
- package/lib-es/components/Layout/LayoutFactory.js +14 -0
- package/lib-es/components/Layout/LayoutFactory.js.map +1 -0
- package/lib-es/components/Layout/LayoutWithStickyTimer.js +42 -0
- package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -0
- package/lib-es/components/Layout/constants.js +6 -0
- package/lib-es/components/Layout/constants.js.map +1 -0
- package/lib-es/components/Layout/helpers/check-if-row-has-columns.js +19 -0
- package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -0
- package/lib-es/components/Layout/helpers/get-styles-to-update.js +10 -0
- package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -0
- package/lib-es/components/Layout/helpers/index.js +4 -0
- package/lib-es/components/Layout/helpers/index.js.map +1 -0
- package/lib-es/components/Layout/index.js +3 -0
- package/lib-es/components/Layout/index.js.map +1 -0
- package/lib-es/components/LazyImage/LazyImage.js +41 -0
- package/lib-es/components/LazyImage/LazyImage.js.map +1 -0
- package/lib-es/components/LazyImage/index.js +3 -0
- package/lib-es/components/LazyImage/index.js.map +1 -0
- package/lib-es/components/List/ListBuilder.js +206 -0
- package/lib-es/components/List/ListBuilder.js.map +1 -0
- package/lib-es/components/List/ListFactory.js +213 -0
- package/lib-es/components/List/ListFactory.js.map +1 -0
- package/lib-es/components/List/ListRender.js +134 -0
- package/lib-es/components/List/ListRender.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js +4 -0
- package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardsRender.js +106 -0
- package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardsRenderItem.js +121 -0
- package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardsRenderWrapper.js +59 -0
- package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -0
- package/lib-es/components/List/components/Cards/index.js +3 -0
- package/lib-es/components/List/components/Cards/index.js.map +1 -0
- package/lib-es/components/List/components/Full/FullRender.js +92 -0
- package/lib-es/components/List/components/Full/FullRender.js.map +1 -0
- package/lib-es/components/List/components/Full/FullRenderItem.js +95 -0
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -0
- package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js +4 -0
- package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -0
- package/lib-es/components/List/components/Full/index.js +3 -0
- package/lib-es/components/List/components/Full/index.js.map +1 -0
- package/lib-es/components/List/components/Header/ListHeader.js +64 -0
- package/lib-es/components/List/components/Header/ListHeader.js.map +1 -0
- package/lib-es/components/List/components/Header/index.js +3 -0
- package/lib-es/components/List/components/Header/index.js.map +1 -0
- package/lib-es/components/List/components/Pagination/Classic.js +55 -0
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -0
- package/lib-es/components/List/components/Pagination/ListPagination.js +63 -0
- package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -0
- package/lib-es/components/List/components/Pagination/LoadMore.js +37 -0
- package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -0
- package/lib-es/components/List/components/Pagination/index.js +3 -0
- package/lib-es/components/List/components/Pagination/index.js.map +1 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-banner.js +42 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js +14 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -0
- package/lib-es/components/List/components/helpers/index.js +4 -0
- package/lib-es/components/List/components/helpers/index.js.map +1 -0
- package/lib-es/components/List/components/index.js +5 -0
- package/lib-es/components/List/components/index.js.map +1 -0
- package/lib-es/components/List/constants.js +10 -0
- package/lib-es/components/List/constants.js.map +1 -0
- package/lib-es/components/List/helpers/build-az-aggregations.js +25 -0
- package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -0
- package/lib-es/components/List/helpers/build-az-url.js +26 -0
- package/lib-es/components/List/helpers/build-az-url.js.map +1 -0
- package/lib-es/components/List/helpers/build-pagination-items.js +39 -0
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -0
- package/lib-es/components/List/helpers/build-pagination-url.js +14 -0
- package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -0
- package/lib-es/components/List/helpers/build-query-booster.js +44 -0
- package/lib-es/components/List/helpers/build-query-booster.js.map +1 -0
- package/lib-es/components/List/helpers/get-az-query-filter.js +7 -0
- package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -0
- package/lib-es/components/List/helpers/get-items-per-page-to-use.js +7 -0
- package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -0
- package/lib-es/components/List/helpers/get-list-component.js +9 -0
- package/lib-es/components/List/helpers/get-list-component.js.map +1 -0
- package/lib-es/components/List/helpers/get-list-query.js +27 -0
- package/lib-es/components/List/helpers/get-list-query.js.map +1 -0
- package/lib-es/components/List/helpers/get-list-specific-search-filter.js +12 -0
- package/lib-es/components/List/helpers/get-list-specific-search-filter.js.map +1 -0
- package/lib-es/components/List/helpers/get-sort-props.js +32 -0
- package/lib-es/components/List/helpers/get-sort-props.js.map +1 -0
- package/lib-es/components/List/helpers/has-required-item-list-details.js +16 -0
- package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -0
- package/lib-es/components/List/helpers/index.js +13 -0
- package/lib-es/components/List/helpers/index.js.map +1 -0
- package/lib-es/components/List/helpers/sort-aggs.js +22 -0
- package/lib-es/components/List/helpers/sort-aggs.js.map +1 -0
- package/lib-es/components/List/helpers/strip-query-key.js +6 -0
- package/lib-es/components/List/helpers/strip-query-key.js.map +1 -0
- package/lib-es/components/List/index.js +3 -0
- package/lib-es/components/List/index.js.map +1 -0
- package/lib-es/components/Loading/Loading.js +27 -0
- package/lib-es/components/Loading/Loading.js.map +1 -0
- package/lib-es/components/Loading/constants.js +5 -0
- package/lib-es/components/Loading/constants.js.map +1 -0
- package/lib-es/components/Loading/helpers.js +8 -0
- package/lib-es/components/Loading/helpers.js.map +1 -0
- package/lib-es/components/Loading/index.js +3 -0
- package/lib-es/components/Loading/index.js.map +1 -0
- package/lib-es/components/Menu/Menu.js +117 -0
- package/lib-es/components/Menu/Menu.js.map +1 -0
- package/lib-es/components/Menu/MenuContext.js +6 -0
- package/lib-es/components/Menu/MenuContext.js.map +1 -0
- package/lib-es/components/Menu/index.js +3 -0
- package/lib-es/components/Menu/index.js.map +1 -0
- package/lib-es/components/MenuItem/MenuEntitiesItem.js +178 -0
- package/lib-es/components/MenuItem/MenuEntitiesItem.js.map +1 -0
- package/lib-es/components/MenuItem/MenuItem.js +41 -0
- package/lib-es/components/MenuItem/MenuItem.js.map +1 -0
- package/lib-es/components/MenuItem/MenuItemRender.js +100 -0
- package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -0
- package/lib-es/components/MenuItem/helpers/index.js +3 -0
- package/lib-es/components/MenuItem/helpers/index.js.map +1 -0
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js +20 -0
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -0
- package/lib-es/components/MenuItem/index.js +3 -0
- package/lib-es/components/MenuItem/index.js.map +1 -0
- package/lib-es/components/Modal/Modal.js +32 -0
- package/lib-es/components/Modal/Modal.js.map +1 -0
- package/lib-es/components/Modal/index.js +3 -0
- package/lib-es/components/Modal/index.js.map +1 -0
- package/lib-es/components/ModalAdapter/ModalAdapter.js +13 -0
- package/lib-es/components/ModalAdapter/ModalAdapter.js.map +1 -0
- package/lib-es/components/ModalAdapter/index.js +3 -0
- package/lib-es/components/ModalAdapter/index.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContent.js +152 -0
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContentItems.js +31 -0
- package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContentResults.js +28 -0
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js +17 -0
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -0
- package/lib-es/components/SearchContent/constants.js +4 -0
- package/lib-es/components/SearchContent/constants.js.map +1 -0
- package/lib-es/components/SearchContent/index.js +3 -0
- package/lib-es/components/SearchContent/index.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js +24 -0
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js +110 -0
- package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js +31 -0
- package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js +31 -0
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js +209 -0
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/index.js +3 -0
- package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilterContainer.js +227 -0
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -0
- package/lib-es/components/SearchFilter/components/Checkbox.js +102 -0
- package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -0
- package/lib-es/components/SearchFilter/components/Range.js +130 -0
- package/lib-es/components/SearchFilter/components/Range.js.map +1 -0
- package/lib-es/components/SearchFilter/components/Select.js +78 -0
- package/lib-es/components/SearchFilter/components/Select.js.map +1 -0
- package/lib-es/components/SearchFilter/components/TextSearch.js +52 -0
- package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -0
- package/lib-es/components/SearchFilter/components/index.js +6 -0
- package/lib-es/components/SearchFilter/components/index.js.map +1 -0
- package/lib-es/components/SearchFilter/constants.js +32 -0
- package/lib-es/components/SearchFilter/constants.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/build-list-name-query.js +15 -0
- package/lib-es/components/SearchFilter/helpers/build-list-name-query.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/build-new-url.js +9 -0
- package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/build-url-query.js +37 -0
- package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/calculate-min-max.js +18 -0
- package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/calculate-step.js +3 -0
- package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js +10 -0
- package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/decode-encode.js +4 -0
- package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-display-value.js +6 -0
- package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +18 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js +27 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-values.js +19 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-values.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js +21 -0
- package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js +4 -0
- package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-range-value.js +33 -0
- package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js +18 -0
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-select-options.js +14 -0
- package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js +19 -0
- package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/index.js +19 -0
- package/lib-es/components/SearchFilter/helpers/index.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/is-device-desktop.js +4 -0
- package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js +21 -0
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -0
- package/lib-es/components/SearchFilter/index.js +3 -0
- package/lib-es/components/SearchFilter/index.js.map +1 -0
- package/lib-es/components/SearchFilter/searchFilterReducer.js +26 -0
- package/lib-es/components/SearchFilter/searchFilterReducer.js.map +1 -0
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js +79 -0
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -0
- package/lib-es/components/SearchFilterSort/constants.js +6 -0
- package/lib-es/components/SearchFilterSort/constants.js.map +1 -0
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js +39 -0
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -0
- package/lib-es/components/SearchFilterSort/helpers/index.js +3 -0
- package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -0
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js +19 -0
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -0
- package/lib-es/components/SearchFilterSort/index.js +3 -0
- package/lib-es/components/SearchFilterSort/index.js.map +1 -0
- package/lib-es/components/SocialFollow/SFItem.js +33 -0
- package/lib-es/components/SocialFollow/SFItem.js.map +1 -0
- package/lib-es/components/SocialFollow/SocialFollow.js +38 -0
- package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -0
- package/lib-es/components/SocialFollow/SocialFollowRender.js +33 -0
- package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -0
- package/lib-es/components/SocialFollow/index.js +3 -0
- package/lib-es/components/SocialFollow/index.js.map +1 -0
- package/lib-es/components/SocialFollow/sf.config.js +50 -0
- package/lib-es/components/SocialFollow/sf.config.js.map +1 -0
- package/lib-es/components/SubMenu/SubMenu.js +23 -0
- package/lib-es/components/SubMenu/SubMenu.js.map +1 -0
- package/lib-es/components/SubMenu/index.js +3 -0
- package/lib-es/components/SubMenu/index.js.map +1 -0
- package/lib-es/components/TextBlock/TextBlockRender.js +20 -0
- package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -0
- package/lib-es/components/TextBlock/index.js +53 -0
- package/lib-es/components/TextBlock/index.js.map +1 -0
- package/lib-es/components/Video/Video.js +98 -0
- package/lib-es/components/Video/Video.js.map +1 -0
- package/lib-es/components/Video/VideoContext.js +6 -0
- package/lib-es/components/Video/VideoContext.js.map +1 -0
- package/lib-es/components/Video/VideoModal.js +30 -0
- package/lib-es/components/Video/VideoModal.js.map +1 -0
- package/lib-es/components/Video/VideoRender.js +44 -0
- package/lib-es/components/Video/VideoRender.js.map +1 -0
- package/lib-es/components/Video/constants.js +7 -0
- package/lib-es/components/Video/constants.js.map +1 -0
- package/lib-es/components/Video/helpers/emit-gtm-event.js +25 -0
- package/lib-es/components/Video/helpers/emit-gtm-event.js.map +1 -0
- package/lib-es/components/Video/index.js +3 -0
- package/lib-es/components/Video/index.js.map +1 -0
- package/lib-es/components/Video/providers/Default.js +36 -0
- package/lib-es/components/Video/providers/Default.js.map +1 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js +65 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js +87 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -0
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js +68 -0
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +14 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/index.js +3 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/index.js.map +1 -0
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js +40 -0
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -0
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js +213 -0
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -0
- package/lib-es/components/Video/providers/YouTube/helpers/index.js +26 -0
- package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -0
- package/lib-es/components/Video/providers/get-provider.js +13 -0
- package/lib-es/components/Video/providers/get-provider.js.map +1 -0
- package/lib-es/components/Video/providers/index.js +3 -0
- package/lib-es/components/Video/providers/index.js.map +1 -0
- package/lib-es/components/Wrapper.js +36 -0
- package/lib-es/components/Wrapper.js.map +1 -0
- package/lib-es/components/index.js +36 -0
- package/lib-es/components/index.js.map +1 -0
- package/lib-es/constants/componentsDefaultValues.js +20 -0
- package/lib-es/constants/componentsDefaultValues.js.map +1 -0
- package/lib-es/constants/index.js +143 -0
- package/lib-es/constants/index.js.map +1 -0
- package/lib-es/helpers/append-images.js +28 -0
- package/lib-es/helpers/append-images.js.map +1 -0
- package/lib-es/helpers/build-az-filter.js +16 -0
- package/lib-es/helpers/build-az-filter.js.map +1 -0
- package/lib-es/helpers/build-checkbox-filters.js +28 -0
- package/lib-es/helpers/build-checkbox-filters.js.map +1 -0
- package/lib-es/helpers/build-filters-query.js +86 -0
- package/lib-es/helpers/build-filters-query.js.map +1 -0
- package/lib-es/helpers/build-image-properties.js +29 -0
- package/lib-es/helpers/build-image-properties.js.map +1 -0
- package/lib-es/helpers/build-inherited-filters.js +67 -0
- package/lib-es/helpers/build-inherited-filters.js.map +1 -0
- package/lib-es/helpers/build-link-extra-props.js +17 -0
- package/lib-es/helpers/build-link-extra-props.js.map +1 -0
- package/lib-es/helpers/build-props-query.js +98 -0
- package/lib-es/helpers/build-props-query.js.map +1 -0
- package/lib-es/helpers/build-query-fields.js +13 -0
- package/lib-es/helpers/build-query-fields.js.map +1 -0
- package/lib-es/helpers/build-query-key.js +7 -0
- package/lib-es/helpers/build-query-key.js.map +1 -0
- package/lib-es/helpers/build-raw-query-base.js +113 -0
- package/lib-es/helpers/build-raw-query-base.js.map +1 -0
- package/lib-es/helpers/build-raw-query-stringified.js +44 -0
- package/lib-es/helpers/build-raw-query-stringified.js.map +1 -0
- package/lib-es/helpers/build-raw-query.js +132 -0
- package/lib-es/helpers/build-raw-query.js.map +1 -0
- package/lib-es/helpers/build-search-values-checkbox-select.js +64 -0
- package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -0
- package/lib-es/helpers/build-search-values-text.js +34 -0
- package/lib-es/helpers/build-search-values-text.js.map +1 -0
- package/lib-es/helpers/build-set-filters.js +32 -0
- package/lib-es/helpers/build-set-filters.js.map +1 -0
- package/lib-es/helpers/build-sort-values.js +34 -0
- package/lib-es/helpers/build-sort-values.js.map +1 -0
- package/lib-es/helpers/check-for-error.js +11 -0
- package/lib-es/helpers/check-for-error.js.map +1 -0
- package/lib-es/helpers/check-props-to-use.js +9 -0
- package/lib-es/helpers/check-props-to-use.js.map +1 -0
- package/lib-es/helpers/entities/constants.js +11 -0
- package/lib-es/helpers/entities/constants.js.map +1 -0
- package/lib-es/helpers/filter-query-setup.js +61 -0
- package/lib-es/helpers/filter-query-setup.js.map +1 -0
- package/lib-es/helpers/filters-setup.js +41 -0
- package/lib-es/helpers/filters-setup.js.map +1 -0
- package/lib-es/helpers/get-banner-data.js +17 -0
- package/lib-es/helpers/get-banner-data.js.map +1 -0
- package/lib-es/helpers/get-checkbox-filters.js +7 -0
- package/lib-es/helpers/get-checkbox-filters.js.map +1 -0
- package/lib-es/helpers/get-click-wrapper-options.js +43 -0
- package/lib-es/helpers/get-click-wrapper-options.js.map +1 -0
- package/lib-es/helpers/get-component-id.js +13 -0
- package/lib-es/helpers/get-component-id.js.map +1 -0
- package/lib-es/helpers/get-current-offset.js +7 -0
- package/lib-es/helpers/get-current-offset.js.map +1 -0
- package/lib-es/helpers/get-custom-html-properties.js +13 -0
- package/lib-es/helpers/get-custom-html-properties.js.map +1 -0
- package/lib-es/helpers/get-dictionary-match.js +11 -0
- package/lib-es/helpers/get-dictionary-match.js.map +1 -0
- package/lib-es/helpers/get-display-count-data.js +13 -0
- package/lib-es/helpers/get-display-count-data.js.map +1 -0
- package/lib-es/helpers/get-elasticsearch-operator.js +6 -0
- package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -0
- package/lib-es/helpers/get-entities-with-banner.js +33 -0
- package/lib-es/helpers/get-entities-with-banner.js.map +1 -0
- package/lib-es/helpers/get-entity-data.js +29 -0
- package/lib-es/helpers/get-entity-data.js.map +1 -0
- package/lib-es/helpers/get-entity-render-props.js +21 -0
- package/lib-es/helpers/get-entity-render-props.js.map +1 -0
- package/lib-es/helpers/get-extra-az-bits.js +54 -0
- package/lib-es/helpers/get-extra-az-bits.js.map +1 -0
- package/lib-es/helpers/get-filter-props.js +60 -0
- package/lib-es/helpers/get-filter-props.js.map +1 -0
- package/lib-es/helpers/get-filter-relation-keys.js +8 -0
- package/lib-es/helpers/get-filter-relation-keys.js.map +1 -0
- package/lib-es/helpers/get-generic-props.js +16 -0
- package/lib-es/helpers/get-generic-props.js.map +1 -0
- package/lib-es/helpers/get-generic-render-variables.js +64 -0
- package/lib-es/helpers/get-generic-render-variables.js.map +1 -0
- package/lib-es/helpers/get-image-ids.js +26 -0
- package/lib-es/helpers/get-image-ids.js.map +1 -0
- package/lib-es/helpers/get-inherited-filters.js +12 -0
- package/lib-es/helpers/get-inherited-filters.js.map +1 -0
- package/lib-es/helpers/get-items-to-display-ids.js +12 -0
- package/lib-es/helpers/get-items-to-display-ids.js.map +1 -0
- package/lib-es/helpers/get-modifiers.js +16 -0
- package/lib-es/helpers/get-modifiers.js.map +1 -0
- package/lib-es/helpers/get-not-equal-query.js +9 -0
- package/lib-es/helpers/get-not-equal-query.js.map +1 -0
- package/lib-es/helpers/get-pagination-index.js +8 -0
- package/lib-es/helpers/get-pagination-index.js.map +1 -0
- package/lib-es/helpers/get-parsed-prop-values.js +32 -0
- package/lib-es/helpers/get-parsed-prop-values.js.map +1 -0
- package/lib-es/helpers/get-parsed-summary-value.js +13 -0
- package/lib-es/helpers/get-parsed-summary-value.js.map +1 -0
- package/lib-es/helpers/get-prop-values.js +14 -0
- package/lib-es/helpers/get-prop-values.js.map +1 -0
- package/lib-es/helpers/get-query-filters.js +22 -0
- package/lib-es/helpers/get-query-filters.js.map +1 -0
- package/lib-es/helpers/get-query-props.js +37 -0
- package/lib-es/helpers/get-query-props.js.map +1 -0
- package/lib-es/helpers/get-required-schemas.js +20 -0
- package/lib-es/helpers/get-required-schemas.js.map +1 -0
- package/lib-es/helpers/get-sanitized-prop-values.js +3 -0
- package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -0
- package/lib-es/helpers/get-search-filter-type.js +12 -0
- package/lib-es/helpers/get-search-filter-type.js.map +1 -0
- package/lib-es/helpers/get-sort-by-field-name.js +20 -0
- package/lib-es/helpers/get-sort-by-field-name.js.map +1 -0
- package/lib-es/helpers/get-unpublished-entity-name.js +5 -0
- package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -0
- package/lib-es/helpers/get-updated-filter-by.js +11 -0
- package/lib-es/helpers/get-updated-filter-by.js.map +1 -0
- package/lib-es/helpers/get-updated-items-to-display.js +32 -0
- package/lib-es/helpers/get-updated-items-to-display.js.map +1 -0
- package/lib-es/helpers/get-updated-sort-properties.js +15 -0
- package/lib-es/helpers/get-updated-sort-properties.js.map +1 -0
- package/lib-es/helpers/get-wrapped-value-with-link.js +25 -0
- package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -0
- package/lib-es/helpers/group-entities.js +10 -0
- package/lib-es/helpers/group-entities.js.map +1 -0
- package/lib-es/helpers/has-children.js +10 -0
- package/lib-es/helpers/has-children.js.map +1 -0
- package/lib-es/helpers/index.js +66 -0
- package/lib-es/helpers/index.js.map +1 -0
- package/lib-es/helpers/inject-banner.js +15 -0
- package/lib-es/helpers/inject-banner.js.map +1 -0
- package/lib-es/helpers/inject-banners-to-entities.js +19 -0
- package/lib-es/helpers/inject-banners-to-entities.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js +15 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +19 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +26 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js +11 -0
- package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -0
- package/lib-es/helpers/is-browser.js +3 -0
- package/lib-es/helpers/is-browser.js.map +1 -0
- package/lib-es/helpers/is-filter-entitys-id.js +8 -0
- package/lib-es/helpers/is-filter-entitys-id.js.map +1 -0
- package/lib-es/helpers/is-object.js +3 -0
- package/lib-es/helpers/is-object.js.map +1 -0
- package/lib-es/helpers/is-using-relation-image.js +3 -0
- package/lib-es/helpers/is-using-relation-image.js.map +1 -0
- package/lib-es/helpers/parse-TextBlock.js +30 -0
- package/lib-es/helpers/parse-TextBlock.js.map +1 -0
- package/lib-es/helpers/parse-interval.js +4 -0
- package/lib-es/helpers/parse-interval.js.map +1 -0
- package/lib-es/helpers/parse-props-to-display.js +36 -0
- package/lib-es/helpers/parse-props-to-display.js.map +1 -0
- package/lib-es/helpers/process-data-summary-value.js +36 -0
- package/lib-es/helpers/process-data-summary-value.js.map +1 -0
- package/lib-es/helpers/remove-extra-items.js +13 -0
- package/lib-es/helpers/remove-extra-items.js.map +1 -0
- package/lib-es/helpers/remove-unwanted-characters.js +21 -0
- package/lib-es/helpers/remove-unwanted-characters.js.map +1 -0
- package/lib-es/helpers/render-children.js +21 -0
- package/lib-es/helpers/render-children.js.map +1 -0
- package/lib-es/helpers/should-render-waypoint.js +3 -0
- package/lib-es/helpers/should-render-waypoint.js.map +1 -0
- package/lib-es/helpers/should-return.js +3 -0
- package/lib-es/helpers/should-return.js.map +1 -0
- package/lib-es/helpers/should-show-property.js +6 -0
- package/lib-es/helpers/should-show-property.js.map +1 -0
- package/lib-es/helpers/should-skip-single-query.js +4 -0
- package/lib-es/helpers/should-skip-single-query.js.map +1 -0
- package/lib-es/helpers/sort-response-data.js +10 -0
- package/lib-es/helpers/sort-response-data.js.map +1 -0
- package/lib-es/helpers/split-children.js +69 -0
- package/lib-es/helpers/split-children.js.map +1 -0
- package/lib-es/helpers/update-childrens-parent.js +17 -0
- package/lib-es/helpers/update-childrens-parent.js.map +1 -0
- package/lib-es/hooks/helpers/RenderComponent.js +80 -0
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -0
- package/lib-es/hooks/helpers/StoreImages.js +56 -0
- package/lib-es/hooks/helpers/StoreImages.js.map +1 -0
- package/lib-es/hooks/helpers/append-gtm-classname.js +38 -0
- package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -0
- package/lib-es/hooks/helpers/buildPBComponents.js +88 -0
- package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -0
- package/lib-es/hooks/helpers/check-banner-insertion-set.js +17 -0
- package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -0
- package/lib-es/hooks/helpers/check-collisions.js +30 -0
- package/lib-es/hooks/helpers/check-collisions.js.map +1 -0
- package/lib-es/hooks/helpers/constants.js +6 -0
- package/lib-es/hooks/helpers/constants.js.map +1 -0
- package/lib-es/hooks/helpers/get-banner-index.js +3 -0
- package/lib-es/hooks/helpers/get-banner-index.js.map +1 -0
- package/lib-es/hooks/helpers/get-components-to-insert-by-type.js +27 -0
- package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -0
- package/lib-es/hooks/helpers/get-lightbox-images.js +40 -0
- package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -0
- package/lib-es/hooks/helpers/getComponent.js +5 -0
- package/lib-es/hooks/helpers/getComponent.js.map +1 -0
- package/lib-es/hooks/helpers/getVariant.js +14 -0
- package/lib-es/hooks/helpers/getVariant.js.map +1 -0
- package/lib-es/hooks/helpers/index.js +3 -0
- package/lib-es/hooks/helpers/index.js.map +1 -0
- package/lib-es/hooks/helpers/inject-element-components.js +59 -0
- package/lib-es/hooks/helpers/inject-element-components.js.map +1 -0
- package/lib-es/hooks/helpers/inject-textblock-banners.js +95 -0
- package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -0
- package/lib-es/hooks/helpers/insert-banners.js +83 -0
- package/lib-es/hooks/helpers/insert-banners.js.map +1 -0
- package/lib-es/hooks/helpers/update-targetings.js +15 -0
- package/lib-es/hooks/helpers/update-targetings.js.map +1 -0
- package/lib-es/hooks/index.js +13 -0
- package/lib-es/hooks/index.js.map +1 -0
- package/lib-es/hooks/use-app-event-hook.js +39 -0
- package/lib-es/hooks/use-app-event-hook.js.map +1 -0
- package/lib-es/hooks/use-app-sync-event-hook.js +37 -0
- package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -0
- package/lib-es/hooks/use-banner-insertion.js +22 -0
- package/lib-es/hooks/use-banner-insertion.js.map +1 -0
- package/lib-es/hooks/use-check-mobile-screen.js +29 -0
- package/lib-es/hooks/use-check-mobile-screen.js.map +1 -0
- package/lib-es/hooks/use-filter-aggregation-values.js +31 -0
- package/lib-es/hooks/use-filter-aggregation-values.js.map +1 -0
- package/lib-es/hooks/use-get-entity-schema.js +39 -0
- package/lib-es/hooks/use-get-entity-schema.js.map +1 -0
- package/lib-es/hooks/use-get-entity-schemas-as-obj.js +13 -0
- package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -0
- package/lib-es/hooks/use-get-image-id-from-relation.js +37 -0
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -0
- package/lib-es/hooks/use-get-images.js +37 -0
- package/lib-es/hooks/use-get-images.js.map +1 -0
- package/lib-es/hooks/use-get-single-entity-schema.js +21 -0
- package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -0
- package/lib-es/hooks/use-page-builder.js +17 -0
- package/lib-es/hooks/use-page-builder.js.map +1 -0
- package/lib-es/hooks/use-portal.js +14 -0
- package/lib-es/hooks/use-portal.js.map +1 -0
- package/lib-es/index.js +17 -0
- package/lib-es/index.js.map +1 -0
- package/lib-es/system-components/EditorMode/BlazeLogo.js +67 -0
- package/lib-es/system-components/EditorMode/BlazeLogo.js.map +1 -0
- package/lib-es/system-components/EditorMode/PbWrapper.js +34 -0
- package/lib-es/system-components/EditorMode/PbWrapper.js.map +1 -0
- package/lib-es/system-components/EditorMode/constants.js +3 -0
- package/lib-es/system-components/EditorMode/constants.js.map +1 -0
- package/lib-es/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js +93 -0
- package/lib-es/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js.map +1 -0
- package/lib-es/system-components/EditorMode/helpers/check-is-over-blaze-icon.js +19 -0
- package/lib-es/system-components/EditorMode/helpers/check-is-over-blaze-icon.js.map +1 -0
- package/lib-es/system-components/index.js +3 -0
- package/lib-es/system-components/index.js.map +1 -0
- package/lib-es/translations.js +37 -0
- package/lib-es/translations.js.map +1 -0
- package/lib-es/utils/component-map.js +30 -0
- package/lib-es/utils/component-map.js.map +1 -0
- package/lib-es/utils/get-class-modifiers.js +81 -0
- package/lib-es/utils/get-class-modifiers.js.map +1 -0
- package/lib-es/utils/get-image-data.js +16 -0
- package/lib-es/utils/get-image-data.js.map +1 -0
- package/lib-es/utils/get-props-to-display-modifiers.js +5 -0
- package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -0
- package/lib-es/utils/index.js +8 -0
- package/lib-es/utils/index.js.map +1 -0
- package/lib-es/utils/is-object-empty.js +4 -0
- package/lib-es/utils/is-object-empty.js.map +1 -0
- package/lib-es/utils/variant-handler.js +27 -0
- package/lib-es/utils/variant-handler.js.map +1 -0
- package/lib-es/variants/FloatingSideButton/index.js +10 -0
- package/lib-es/variants/FloatingSideButton/index.js.map +1 -0
- package/lib-es/variants/HeroImage/index.js +10 -0
- package/lib-es/variants/HeroImage/index.js.map +1 -0
- package/lib-es/variants/Infographic/Infographic.js +16 -0
- package/lib-es/variants/Infographic/Infographic.js.map +1 -0
- package/lib-es/variants/Infographic/index.js +10 -0
- package/lib-es/variants/Infographic/index.js.map +1 -0
- package/lib-es/variants/Infographic/useInfographic.js +23 -0
- package/lib-es/variants/Infographic/useInfographic.js.map +1 -0
- package/lib-es/variants/LiveBlogList/LiveBlogList.js +80 -0
- package/lib-es/variants/LiveBlogList/LiveBlogList.js.map +1 -0
- package/lib-es/variants/LiveBlogList/index.js +12 -0
- package/lib-es/variants/LiveBlogList/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/LongformGallery.js +40 -0
- package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -0
- package/lib-es/variants/LongformGallery/LongformGalleryImage.js +59 -0
- package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -0
- package/lib-es/variants/LongformGallery/constants.js +18 -0
- package/lib-es/variants/LongformGallery/constants.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/index.js +5 -0
- package/lib-es/variants/LongformGallery/helpers/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/parseImageData.js +26 -0
- package/lib-es/variants/LongformGallery/helpers/parseImageData.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/separateImages.js +25 -0
- package/lib-es/variants/LongformGallery/helpers/separateImages.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/shouldSkip.js +3 -0
- package/lib-es/variants/LongformGallery/helpers/shouldSkip.js.map +1 -0
- package/lib-es/variants/LongformGallery/index.js +12 -0
- package/lib-es/variants/LongformGallery/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/useLongformGallery.js +47 -0
- package/lib-es/variants/LongformGallery/useLongformGallery.js.map +1 -0
- package/lib-es/variants/LongformRow/index.js +10 -0
- package/lib-es/variants/LongformRow/index.js.map +1 -0
- package/lib-es/variants/ParallaxImageTextRight/index.js +11 -0
- package/lib-es/variants/ParallaxImageTextRight/index.js.map +1 -0
- package/lib-es/variants/SlideSummary/SlideSummary.js +23 -0
- package/lib-es/variants/SlideSummary/SlideSummary.js.map +1 -0
- package/lib-es/variants/SlideSummary/index.js +10 -0
- package/lib-es/variants/SlideSummary/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js +49 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +30 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js +3 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js +62 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/index.js +10 -0
- package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js +47 -0
- package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -0
- package/lib-es/variants/index.js +21 -0
- package/lib-es/variants/index.js.map +1 -0
- package/package.json +16 -11
- package/src/components/ContentGroup/ContentGroup.js +54 -8
- package/src/components/ContentGroup/ContentGroupDataFetcher.js +74 -0
- package/src/components/ContentGroup/helpers/build-data-sections.js +35 -0
- package/src/components/ContentGroup/helpers/index.js +2 -1
- package/src/components/ContentGroupSection/ContentGroupSection.js +2 -2
- package/src/components/Iframe/Iframe.js +22 -6
- package/src/components/Layout/Layout.js +13 -2
- package/src/helpers/get-component-id.js +7 -4
- package/babel.config.js +0 -3
- package/example.env +0 -4
- package/jest.config.js +0 -5
- package/tests/helpers/mocks.js +0 -2494
- package/tests/unit/src/BannerContext/helpers/set-initial-banner-counters.test.js +0 -48
- package/tests/unit/src/HOC/__snapshots__/withInfiniteScroll.test.js.snap +0 -9
- package/tests/unit/src/HOC/recreateOnNavigation.test.js +0 -28
- package/tests/unit/src/HOC/withInfiniteScroll.test.js +0 -26
- package/tests/unit/src/HOC/withTitle.test.js +0 -40
- package/tests/unit/src/Layout/Layout.test.js +0 -167
- package/tests/unit/src/Layout/__snapshots__/Layout.test.js.snap +0 -24
- package/tests/unit/src/Layout/getMockedProps.js +0 -19
- package/tests/unit/src/Layout/helpers/check-if-row-has-columns.test.js +0 -51
- package/tests/unit/src/Layout/helpers/get-styles-to-update.test.js +0 -23
- package/tests/unit/src/Layout/helpers/has-children.test.js +0 -38
- package/tests/unit/src/components/BackToTop/BackToTop.test.js +0 -23
- package/tests/unit/src/components/BackToTop/__snapshots__/BackToTop.test.js.snap +0 -3
- package/tests/unit/src/components/Banner/AdSlotRender.test.js +0 -83
- package/tests/unit/src/components/Banner/Banner.test.js +0 -60
- package/tests/unit/src/components/Banner/BannerRender.test.js +0 -126
- package/tests/unit/src/components/Banner/__snapshots__/AdSlotRender.test.js.snap +0 -80
- package/tests/unit/src/components/Banner/__snapshots__/Banner.test.js.snap +0 -7
- package/tests/unit/src/components/Banner/__snapshots__/BannerRender.test.js.snap +0 -15
- package/tests/unit/src/components/Banner/__snapshots__/helpers.test.js.snap +0 -3
- package/tests/unit/src/components/Banner/helpers.test.js +0 -271
- package/tests/unit/src/components/BlazeLink.test.js +0 -68
- package/tests/unit/src/components/Breadcrumb/Breadcrumb.test.js +0 -106
- package/tests/unit/src/components/Breadcrumb/__snapshots__/Breadcrumb.test.js.snap +0 -91
- package/tests/unit/src/components/Button.test.js +0 -148
- package/tests/unit/src/components/Card/Card.test.js +0 -240
- package/tests/unit/src/components/Card/CardContainer.test.js +0 -68
- package/tests/unit/src/components/Card/CardsRender.test.js +0 -118
- package/tests/unit/src/components/Card/__snapshots__/Card.test.js.snap +0 -465
- package/tests/unit/src/components/Card/__snapshots__/CardContainer.test.js.snap +0 -189
- package/tests/unit/src/components/Card/helpers/append-images.test.js +0 -36
- package/tests/unit/src/components/Card/helpers/get-dynamic-grid-classes.test.js +0 -29
- package/tests/unit/src/components/Card/helpers/get-updated-items-to-display.test.js +0 -72
- package/tests/unit/src/components/Card/helpers/getPublishedListingUrl.test.js +0 -23
- package/tests/unit/src/components/Card/helpers/useDynamicSizeKey.test.js +0 -14
- package/tests/unit/src/components/Card/mockData.js +0 -194
- package/tests/unit/src/components/Carousel/Carousel.test.js +0 -133
- package/tests/unit/src/components/Carousel/CarouselImage/CarouselImage.test.js +0 -52
- package/tests/unit/src/components/Carousel/CarouselImage/__snapshots__/CarouselImage.test.js.snap +0 -17
- package/tests/unit/src/components/Carousel/CarouselImage/helpers.js +0 -9
- package/tests/unit/src/components/Carousel/CarouselImage/mocks.js +0 -38
- package/tests/unit/src/components/Carousel/CarouselRender/CarouselRender.test.js +0 -84
- package/tests/unit/src/components/Carousel/CarouselRender/__snapshots__/CarouselRender.test.js.snap +0 -49
- package/tests/unit/src/components/Carousel/CarouselRender/mocks.js +0 -0
- package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +0 -149
- package/tests/unit/src/components/CarouselWrapper.test.js +0 -54
- package/tests/unit/src/components/ClickWrapper.test.js +0 -22
- package/tests/unit/src/components/Code/Code.test.js +0 -50
- package/tests/unit/src/components/Code/ScriptTag.test.js +0 -21
- package/tests/unit/src/components/Code/__snapshots__/Code.test.js.snap +0 -37
- package/tests/unit/src/components/Code/__snapshots__/ScriptTag.test.js.snap +0 -24
- package/tests/unit/src/components/Code/helpers/wrap-script-tags.test.js +0 -31
- package/tests/unit/src/components/Code.test.js +0 -29
- package/tests/unit/src/components/ContentGroup/ContentGroup.test.js +0 -89
- package/tests/unit/src/components/ContentGroup/ContentGroupAccordion.test.js +0 -283
- package/tests/unit/src/components/ContentGroup/ContentGroupTabs.test.js +0 -35
- package/tests/unit/src/components/ContentGroup/__snapshots__/ContentGroup.test.js.snap +0 -5
- package/tests/unit/src/components/ContentGroup/__snapshots__/ContentGroupAccordion.test.js.snap +0 -243
- package/tests/unit/src/components/ContentGroup/__snapshots__/ContentGroupTabs.test.js.snap +0 -123
- package/tests/unit/src/components/ContentGroup/helpers/get-active-tab.test.js +0 -28
- package/tests/unit/src/components/ContentGroup/helpers/get-sections-data.test.js +0 -33
- package/tests/unit/src/components/ContentGroup/helpers/get-structured-data-properties.test.js +0 -105
- package/tests/unit/src/components/ContentGroupSection/ContentGroupSection.test.js +0 -20
- package/tests/unit/src/components/ContentGroupSection/__snapshots__/ContentGroupSection.test.js.snap +0 -15
- package/tests/unit/src/components/DataSummary/DataSummaryFactory.test.js +0 -67
- package/tests/unit/src/components/DataSummary/DataSummaryRender.test.js +0 -41
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/HeadingLargeSummary.test.js +0 -33
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/ItemDetailsSummary.test.js +0 -23
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/LargeSummary.test.js +0 -23
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/ListSummary.test.js +0 -23
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/TextSummary.test.js +0 -23
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/__snapshots__/HeadingLargeSummary.test.js.snap +0 -11
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/__snapshots__/ItemDetailsSummary.test.js.snap +0 -69
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/__snapshots__/LargeSummary.test.js.snap +0 -109
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/__snapshots__/ListSummary.test.js.snap +0 -101
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/__snapshots__/TextSummary.test.js.snap +0 -57
- package/tests/unit/src/components/DataSummary/__snapshots__/DataSummaryFactory.test.js.snap +0 -7
- package/tests/unit/src/components/DataSummary/__snapshots__/DataSummaryRender.test.js.snap +0 -66
- package/tests/unit/src/components/DataSummary/helpers/build-loop-props-content.test.js +0 -134
- package/tests/unit/src/components/DataSummary/helpers/build-props-to-display-with-content.test.js +0 -56
- package/tests/unit/src/components/DataSummary/helpers/get-data-summary-query.test.js +0 -35
- package/tests/unit/src/components/DataSummary/helpers/get-link-based-on-value.test.js +0 -58
- package/tests/unit/src/components/DataSummary/helpers/get-link-props.test.js +0 -35
- package/tests/unit/src/components/DataSummary/helpers/get-link-to-published-content.test.js +0 -62
- package/tests/unit/src/components/DataSummary/helpers/get-loop-props-limit.test.js +0 -32
- package/tests/unit/src/components/DataSummary/helpers/get-prop-value.test.js +0 -67
- package/tests/unit/src/components/DataSummary/helpers/get-record-id.test.js +0 -108
- package/tests/unit/src/components/DataSummary/helpers/get-value-from-array.test.js +0 -49
- package/tests/unit/src/components/DataSummary/helpers/mocks.js +0 -90
- package/tests/unit/src/components/DataSummary/helpers/parse-boolean-values.test.js +0 -28
- package/tests/unit/src/components/DataSummary/helpers/strip-summary-props-content.test.js +0 -46
- package/tests/unit/src/components/DataSummary/mockData.js +0 -50
- package/tests/unit/src/components/DateTime/DateTime.test.js +0 -129
- package/tests/unit/src/components/EmailConfirm/EmailConfirm.test.js +0 -53
- package/tests/unit/src/components/EmailConfirm/__snapshots__/EmailConfirm.test.js.snap +0 -15
- package/tests/unit/src/components/Iframe/Iframe.test.js +0 -21
- package/tests/unit/src/components/Iframe/__snapshots__/Iframe.test.js.snap +0 -21
- package/tests/unit/src/components/Image/GlobalLightbox/GlobalLightbox.test.js +0 -123
- package/tests/unit/src/components/Image/GlobalLightbox/NavButton.test.js +0 -44
- package/tests/unit/src/components/Image/GlobalLightbox/__snapshots__/GlobalLightbox.test.js.snap +0 -101
- package/tests/unit/src/components/Image/GlobalLightbox/__snapshots__/NavButton.test.js.snap +0 -15
- package/tests/unit/src/components/Image/GlobalLightbox/getMockedLightboxProps.js +0 -15
- package/tests/unit/src/components/Image/GlobalLightbox/mocks.js +0 -39
- package/tests/unit/src/components/Image/Image.test.js +0 -213
- package/tests/unit/src/components/Image/ImageDetails.test.js +0 -41
- package/tests/unit/src/components/Image/ImageFactory.test.js +0 -121
- package/tests/unit/src/components/Image/ImageRender.test.js +0 -54
- package/tests/unit/src/components/Image/Lightbox/Lightbox.test.js +0 -64
- package/tests/unit/src/components/Image/Lightbox/__snapshots__/Lightbox.test.js.snap +0 -17
- package/tests/unit/src/components/Image/Lightbox/mocks.js +0 -21
- package/tests/unit/src/components/Image/__snapshots__/Image.test.js.snap +0 -74
- package/tests/unit/src/components/Image/__snapshots__/ImageDetails.test.js.snap +0 -10
- package/tests/unit/src/components/Image/__snapshots__/ImageFactory.test.js.snap +0 -93
- package/tests/unit/src/components/Image/__snapshots__/ImageRender.test.js.snap +0 -41
- package/tests/unit/src/components/Image/mocks.js +0 -255
- package/tests/unit/src/components/ItemList/ItemListButton.test.js +0 -178
- package/tests/unit/src/components/ItemList/ItemListCounter.test.js +0 -69
- package/tests/unit/src/components/ItemList/ItemListNew.test.js +0 -167
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListButton.test.js.snap +0 -219
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListCounter.test.js.snap +0 -62
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListNew.test.js.snap +0 -27
- package/tests/unit/src/components/ItemList/helpers/get-item-list-data.test.js +0 -28
- package/tests/unit/src/components/ItemList/helpers/get-item-list-id.test.js +0 -20
- package/tests/unit/src/components/ItemList/helpers/get-item-list-ids.test.js +0 -19
- package/tests/unit/src/components/ItemList/helpers/set-item-list-id.test.js +0 -16
- package/tests/unit/src/components/ItemList/helpers/set-param-and-redirect.test.js +0 -30
- package/tests/unit/src/components/ItemList/hooks/use-item-list-id.test.js +0 -35
- package/tests/unit/src/components/Layout/Layout.test.js +0 -99
- package/tests/unit/src/components/Layout/LayoutFactory.test.js +0 -49
- package/tests/unit/src/components/Layout/__snapshots__/Layout.test.js.snap +0 -67
- package/tests/unit/src/components/LazyImage/LazyImage.test.js +0 -46
- package/tests/unit/src/components/LazyImage/__snapshots__/LazyImage.test.js.snap +0 -31
- package/tests/unit/src/components/List/ListRender.test.js +0 -65
- package/tests/unit/src/components/List/__snapshots__/ListRender.test.js.snap +0 -38
- package/tests/unit/src/components/List/components/Cards/CardsRender.test.js +0 -37
- package/tests/unit/src/components/List/components/Cards/CardsRenderItem.test.js +0 -19
- package/tests/unit/src/components/List/components/Cards/CardsRenderWrapper.test.js +0 -31
- package/tests/unit/src/components/List/components/Cards/__snapshots__/CardsRender.test.js.snap +0 -155
- package/tests/unit/src/components/List/components/Cards/__snapshots__/CardsRenderItem.test.js.snap +0 -13
- package/tests/unit/src/components/List/components/Cards/__snapshots__/CardsRenderWrapper.test.js.snap +0 -31
- package/tests/unit/src/components/List/components/Cards/helpers/check-if-should-render-gtm.test.js +0 -39
- package/tests/unit/src/components/List/components/Full/FullRender.test.js +0 -37
- package/tests/unit/src/components/List/components/Full/FullRenderItem.test.js +0 -32
- package/tests/unit/src/components/List/components/Full/__snapshots__/FullRender.test.js.snap +0 -51
- package/tests/unit/src/components/List/components/Full/__snapshots__/FullRenderItem.test.js.snap +0 -52
- package/tests/unit/src/components/List/components/Header/ListHeader.test.js +0 -28
- package/tests/unit/src/components/List/components/Header/__snapshots__/ListHeader.test.js.snap +0 -45
- package/tests/unit/src/components/List/components/Pagination/Classic.test.js +0 -21
- package/tests/unit/src/components/List/components/Pagination/ListPagination.test.js +0 -86
- package/tests/unit/src/components/List/components/Pagination/LoadMore.test.js +0 -22
- package/tests/unit/src/components/List/components/Pagination/__snapshots__/Classic.test.js.snap +0 -53
- package/tests/unit/src/components/List/components/Pagination/__snapshots__/ListPagination.test.js.snap +0 -51
- package/tests/unit/src/components/List/components/Pagination/__snapshots__/LoadMore.test.js.snap +0 -13
- package/tests/unit/src/components/List/components/helpers/check-if-should-render-banner.test.js +0 -75
- package/tests/unit/src/components/List/components/index.test.js +0 -15
- package/tests/unit/src/components/List/components/mocks.js +0 -56
- package/tests/unit/src/components/List/helpers/__snapshots__/build-pagination-items.test.js.snap +0 -325
- package/tests/unit/src/components/List/helpers/build-az-aggregations.test.js +0 -33
- package/tests/unit/src/components/List/helpers/build-az-url.test.js +0 -11
- package/tests/unit/src/components/List/helpers/build-pagination-items.test.js +0 -40
- package/tests/unit/src/components/List/helpers/build-pagination-url.test.js +0 -16
- package/tests/unit/src/components/List/helpers/build-query-booster.test.js +0 -33
- package/tests/unit/src/components/List/helpers/get-az-query-filter.test.js +0 -17
- package/tests/unit/src/components/List/helpers/get-items-per-page-to-use.test.js +0 -24
- package/tests/unit/src/components/List/helpers/get-list-component.test.js +0 -21
- package/tests/unit/src/components/List/helpers/get-list-query.test.js +0 -55
- package/tests/unit/src/components/List/helpers/get-sort-props.test.js +0 -109
- package/tests/unit/src/components/List/helpers/has-required-item-list-details.test.js +0 -30
- package/tests/unit/src/components/List/helpers/sort-aggs.test.js +0 -46
- package/tests/unit/src/components/Loading/Loading.test.js +0 -29
- package/tests/unit/src/components/Loading/__snapshots__/Loading.test.js.snap +0 -31
- package/tests/unit/src/components/Menu/Menu.test.js +0 -28
- package/tests/unit/src/components/Menu/__snapshots__/Menu.test.js.snap +0 -23
- package/tests/unit/src/components/MenuItem/MenuEntitiesItem.test.js +0 -23
- package/tests/unit/src/components/MenuItem/MenuItem.test.js +0 -53
- package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +0 -106
- package/tests/unit/src/components/MenuItem/SubMenu.test.js +0 -30
- package/tests/unit/src/components/MenuItem/__snapshots__/MenuEntitiesItem.test.js.snap +0 -3
- package/tests/unit/src/components/MenuItem/__snapshots__/MenuItem.test.js.snap +0 -49
- package/tests/unit/src/components/MenuItem/__snapshots__/SubMenu.test.js.snap +0 -17
- package/tests/unit/src/components/MenuItem/helpers/inject-helper-into-template.test.js +0 -88
- package/tests/unit/src/components/MenuItem/mocks.js +0 -71
- package/tests/unit/src/components/Modal/Modal.test.js +0 -45
- package/tests/unit/src/components/Modal/__snapshots__/Modal.test.js.snap +0 -17
- package/tests/unit/src/components/SearchContent/SearchContent.test.js +0 -88
- package/tests/unit/src/components/SearchContent/__snapshots__/SearchContent.test.js.snap +0 -73
- package/tests/unit/src/components/SearchFilter/SearchFilter/CloseMobileForm.test.js +0 -35
- package/tests/unit/src/components/SearchFilter/SearchFilter/FiltersList.test.js +0 -15
- package/tests/unit/src/components/SearchFilter/SearchFilter/MobileFormToolbar.test.js +0 -37
- package/tests/unit/src/components/SearchFilter/SearchFilter/ResetDesktopForm.test.js +0 -43
- package/tests/unit/src/components/SearchFilter/SearchFilter/SearchFilter.test.js +0 -179
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/CloseMobileForm.test.js.snap +0 -35
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/MobileFormToolbar.test.js.snap +0 -25
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/ResetDesktopForm.test.js.snap +0 -39
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/SearchFilter.test.js.snap +0 -767
- package/tests/unit/src/components/SearchFilter/SearchFilterContainer.test.js +0 -38
- package/tests/unit/src/components/SearchFilter/__snapshots__/SearchFilterContainer.test.js.snap +0 -5
- package/tests/unit/src/components/SearchFilter/components/Checkbox.test.js +0 -34
- package/tests/unit/src/components/SearchFilter/components/Range.test.js +0 -132
- package/tests/unit/src/components/SearchFilter/components/Select.test.js +0 -96
- package/tests/unit/src/components/SearchFilter/components/TextSearch.test.js +0 -34
- package/tests/unit/src/components/SearchFilter/components/__snapshots__/Checkbox.test.js.snap +0 -60
- package/tests/unit/src/components/SearchFilter/components/__snapshots__/Range.test.js.snap +0 -323
- package/tests/unit/src/components/SearchFilter/components/__snapshots__/Select.test.js.snap +0 -68
- package/tests/unit/src/components/SearchFilter/components/__snapshots__/TextSearch.test.js.snap +0 -58
- package/tests/unit/src/components/SearchFilter/helpers/build-new-url.test.js +0 -51
- package/tests/unit/src/components/SearchFilter/helpers/build-query.test.js +0 -56
- package/tests/unit/src/components/SearchFilter/helpers/calculate-min-max.test.js +0 -21
- package/tests/unit/src/components/SearchFilter/helpers/calculate-step.test.js +0 -21
- package/tests/unit/src/components/SearchFilter/helpers/check-if-range-updated.test.js +0 -27
- package/tests/unit/src/components/SearchFilter/helpers/get-display-value.test.js +0 -38
- package/tests/unit/src/components/SearchFilter/helpers/get-filter-value-from-query.test.js +0 -28
- package/tests/unit/src/components/SearchFilter/helpers/get-initial-filter-values.test.js +0 -50
- package/tests/unit/src/components/SearchFilter/helpers/get-intersected-prop.test.js +0 -12
- package/tests/unit/src/components/SearchFilter/helpers/get-range-value.test.js +0 -24
- package/tests/unit/src/components/SearchFilter/helpers/get-select-options.test.js +0 -46
- package/tests/unit/src/components/SearchFilter/helpers/get-updated-filter-by.test.js +0 -28
- package/tests/unit/src/components/SearchFilter/helpers/is-device-desktop.test.js +0 -31
- package/tests/unit/src/components/SearchFilter/helpers/parse-filter-value.test.js +0 -35
- package/tests/unit/src/components/SearchFilterSort/SearchFilterSort.test.js +0 -27
- package/tests/unit/src/components/SearchFilterSort/__snapshots__/SearchFilterSort.test.js.snap +0 -28
- package/tests/unit/src/components/SearchFilterSort/helpers/handle-sort-update.test.js +0 -53
- package/tests/unit/src/components/SearchFilterSort/helpers/update-sort.test.js +0 -25
- package/tests/unit/src/components/SocialFollow/SFItem.test.js +0 -22
- package/tests/unit/src/components/SocialFollow/SocialFollow.test.js +0 -38
- package/tests/unit/src/components/SocialFollow/__snapshots__/SFItem.test.js.snap +0 -38
- package/tests/unit/src/components/SocialFollow/__snapshots__/SocialFollow.test.js.snap +0 -74
- package/tests/unit/src/components/TextBlock/TextBlock.test.js +0 -82
- package/tests/unit/src/components/TextBlock/__snapshots__/TextBlock.test.js.snap +0 -89
- package/tests/unit/src/components/Video/Video.test.js +0 -74
- package/tests/unit/src/components/Video/VideoModal.test.js +0 -18
- package/tests/unit/src/components/Video/__snapshots__/Video.test.js.snap +0 -59
- package/tests/unit/src/components/Video/__snapshots__/VideoModal.test.js.snap +0 -14
- package/tests/unit/src/components/Video/providers/Default.test.js +0 -22
- package/tests/unit/src/components/Video/providers/JWPlayer/JWPlayerProvider.test.js +0 -49
- package/tests/unit/src/components/Video/providers/JWPlayer/__snapshots__/JWPlayerProvider.test.js.snap +0 -13
- package/tests/unit/src/components/Video/providers/JWPlayer/mocks.js +0 -40
- package/tests/unit/src/components/Video/providers/Vimeo/Vimeo.test.js +0 -13
- package/tests/unit/src/components/Video/providers/Vimeo/__snapshots__/Vimeo.test.js.snap +0 -10
- package/tests/unit/src/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.test.js +0 -24
- package/tests/unit/src/components/Video/providers/YouTube/YouTubeProvider.test.js +0 -15
- package/tests/unit/src/components/Video/providers/YouTube/__snapshots__/YouTubeProvider.test.js.snap +0 -27
- package/tests/unit/src/components/Video/providers/YouTube/helpers/index.test.js +0 -23
- package/tests/unit/src/components/Video/providers/__snapshots__/Default.test.js.snap +0 -165
- package/tests/unit/src/components/Video/providers/get-provider.test.js +0 -36
- package/tests/unit/src/components/Wrapper.test.js +0 -39
- package/tests/unit/src/components/__snapshots__/BlazeLink.test.js.snap +0 -15
- package/tests/unit/src/components/__snapshots__/Button.test.js.snap +0 -18
- package/tests/unit/src/components/__snapshots__/CarouselWrapper.test.js.snap +0 -162
- package/tests/unit/src/components/__snapshots__/ClickWrapper.test.js.snap +0 -13
- package/tests/unit/src/components/__snapshots__/Code.test.js.snap +0 -13
- package/tests/unit/src/components/__snapshots__/Wrapper.test.js.snap +0 -34
- package/tests/unit/src/components/__snapshots__/index.test.js.snap +0 -130
- package/tests/unit/src/components/index.test.js +0 -7
- package/tests/unit/src/constants/__snapshots__/componentsDefaultValues.test.js.snap +0 -21
- package/tests/unit/src/constants/__snapshots__/index.test.js.snap +0 -3
- package/tests/unit/src/constants/componentsDefaultValues.test.js +0 -8
- package/tests/unit/src/constants/index.test.js +0 -7
- package/tests/unit/src/helpers/__snapshots__/build-query-fields.test.js.snap +0 -29
- package/tests/unit/src/helpers/__snapshots__/get-extra-az-bits.test.js.snap +0 -137
- package/tests/unit/src/helpers/__snapshots__/get-wrapped-value-with-link.test.js.snap +0 -18
- package/tests/unit/src/helpers/__snapshots__/parse-textBlock.test.js.snap +0 -15
- package/tests/unit/src/helpers/build-az-query.test.js +0 -26
- package/tests/unit/src/helpers/build-checkbox-filters.test.js +0 -30
- package/tests/unit/src/helpers/build-image-properties.test.js +0 -51
- package/tests/unit/src/helpers/build-inherited-filters.test.js +0 -112
- package/tests/unit/src/helpers/build-link-extra-props.test.js +0 -41
- package/tests/unit/src/helpers/build-props-query.test.js +0 -228
- package/tests/unit/src/helpers/build-query-fields.test.js +0 -25
- package/tests/unit/src/helpers/build-raw-query-base.test.js +0 -169
- package/tests/unit/src/helpers/build-raw-query-stringified.test.js +0 -49
- package/tests/unit/src/helpers/build-raw-query.test.js +0 -474
- package/tests/unit/src/helpers/build-search-values-checkbox-select.test.js +0 -174
- package/tests/unit/src/helpers/build-search-values-text.test.js +0 -57
- package/tests/unit/src/helpers/build-set-filters.test.js +0 -84
- package/tests/unit/src/helpers/build-sort-values.test.js +0 -54
- package/tests/unit/src/helpers/check-for-error.test.js +0 -33
- package/tests/unit/src/helpers/check-props-to-use.test.js +0 -32
- package/tests/unit/src/helpers/get-banner-data.test.js +0 -32
- package/tests/unit/src/helpers/get-card-entities.test.js +0 -27
- package/tests/unit/src/helpers/get-checkbox-filters.test.js +0 -33
- package/tests/unit/src/helpers/get-click-wrapper-options.test.js +0 -81
- package/tests/unit/src/helpers/get-component-id.test.js +0 -36
- package/tests/unit/src/helpers/get-current-offset.test.js +0 -39
- package/tests/unit/src/helpers/get-custom-html-properties.test.js +0 -51
- package/tests/unit/src/helpers/get-dictionary-match.test.js +0 -14
- package/tests/unit/src/helpers/get-display-count-data.test.js +0 -49
- package/tests/unit/src/helpers/get-elasticsearch-operator.test.js +0 -20
- package/tests/unit/src/helpers/get-entity-data.test.js +0 -47
- package/tests/unit/src/helpers/get-entity-render-props.test.js +0 -37
- package/tests/unit/src/helpers/get-extra-az-bits.test.js +0 -51
- package/tests/unit/src/helpers/get-filter-props.test.js +0 -82
- package/tests/unit/src/helpers/get-filter-relation-keys.test.js +0 -22
- package/tests/unit/src/helpers/get-generic-props.test.js +0 -21
- package/tests/unit/src/helpers/get-generic-render-variables.test.js +0 -150
- package/tests/unit/src/helpers/get-image-ids.test.js +0 -92
- package/tests/unit/src/helpers/get-inherited-filters.test.js +0 -27
- package/tests/unit/src/helpers/get-items-to-display-ids.test.js +0 -59
- package/tests/unit/src/helpers/get-modifiers.test.js +0 -46
- package/tests/unit/src/helpers/get-not-equal-query.test.js +0 -23
- package/tests/unit/src/helpers/get-pagination-index.test.js +0 -31
- package/tests/unit/src/helpers/get-parsed-prop-values.test.js +0 -66
- package/tests/unit/src/helpers/get-parsed-summary-value.test.js +0 -26
- package/tests/unit/src/helpers/get-prop-values.test.js +0 -38
- package/tests/unit/src/helpers/get-query-filters.test.js +0 -104
- package/tests/unit/src/helpers/get-query-props.test.js +0 -45
- package/tests/unit/src/helpers/get-required-schemas.test.js +0 -56
- package/tests/unit/src/helpers/get-sanitized-prop-values.test.js +0 -26
- package/tests/unit/src/helpers/get-search-filter-type.test.js +0 -47
- package/tests/unit/src/helpers/get-sort-by-field-name.test.js +0 -57
- package/tests/unit/src/helpers/get-unpublished-entity-name.test.js +0 -33
- package/tests/unit/src/helpers/get-updated-filter-by.test.js +0 -44
- package/tests/unit/src/helpers/get-wrapped-value-with-link.test.js +0 -39
- package/tests/unit/src/helpers/group-entities.test.js +0 -34
- package/tests/unit/src/helpers/inject-banner.test.js +0 -39
- package/tests/unit/src/helpers/inject-banners-to-entities.test.js +0 -47
- package/tests/unit/src/helpers/inject-multiple-banners.test.js +0 -45
- package/tests/unit/src/helpers/is-filter-entitys-id.test.js +0 -23
- package/tests/unit/src/helpers/is-object.test.js +0 -21
- package/tests/unit/src/helpers/is-using-relation-image.test.js +0 -12
- package/tests/unit/src/helpers/parse-interval.test.js +0 -27
- package/tests/unit/src/helpers/parse-props-to-display.test.js +0 -73
- package/tests/unit/src/helpers/parse-textBlock.test.js +0 -31
- package/tests/unit/src/helpers/prcoess-data-summary-value.test.js +0 -52
- package/tests/unit/src/helpers/remove-extra-items.test.js +0 -30
- package/tests/unit/src/helpers/remove-unwanted-characters.test.js +0 -70
- package/tests/unit/src/helpers/render-children.test.js +0 -73
- package/tests/unit/src/helpers/should-render-waypoint.test.js +0 -23
- package/tests/unit/src/helpers/should-show-property.test.js +0 -20
- package/tests/unit/src/helpers/sort-response-data.test.js +0 -24
- package/tests/unit/src/helpers/update-childrens-parent.test.js +0 -41
- package/tests/unit/src/hooks/helpers/StoreImages.test.js +0 -26
- package/tests/unit/src/hooks/helpers/append-gtm-classname.test.js +0 -50
- package/tests/unit/src/hooks/helpers/check-banner-insertion-set.test.js +0 -48
- package/tests/unit/src/hooks/helpers/check-collisions.test.js +0 -44
- package/tests/unit/src/hooks/helpers/get-banner-index.test.js +0 -39
- package/tests/unit/src/hooks/helpers/get-components-to-insert-by-type.test.js +0 -38
- package/tests/unit/src/hooks/helpers/getComponent.test.js +0 -30
- package/tests/unit/src/hooks/helpers/inject-element-components.test.js +0 -103
- package/tests/unit/src/hooks/helpers/inject-textblock-banners.test.js +0 -125
- package/tests/unit/src/hooks/helpers/insert-banners.test.js +0 -127
- package/tests/unit/src/hooks/helpers/split-children.test.js +0 -78
- package/tests/unit/src/hooks/helpers/update-targetings.test.js +0 -13
- package/tests/unit/src/hooks/use-app-event-hook.test.js +0 -64
- package/tests/unit/src/hooks/use-app-sync-evet-hook.test.js +0 -70
- package/tests/unit/src/hooks/use-check-mobile-screen.test.js +0 -47
- package/tests/unit/src/hooks/use-get-entity-schema-as-obj.test.js +0 -46
- package/tests/unit/src/hooks/use-get-image-id-from-relation.test.js +0 -161
- package/tests/unit/src/hooks/use-get-images.test.js +0 -167
- package/tests/unit/src/hooks/use-get-single-entity-schema.test.js +0 -80
- package/tests/unit/src/utils/component-map.test.js +0 -56
- package/tests/unit/src/utils/get-class-modifiers.test.js +0 -116
- package/tests/unit/src/utils/get-image-data.test.js +0 -54
- package/tests/unit/src/utils/get-props-to-display-modifiers.test.js +0 -14
- package/tests/unit/src/utils/is-object-empty.test.js +0 -22
- package/tests/unit/src/utils/variant-handler.test.js +0 -46
- package/tests/unit/src/variants/Infographic/Infographic.test.js +0 -30
- package/tests/unit/src/variants/LiveBlogList/LiveBlogList.test.js +0 -121
- package/tests/unit/src/variants/LiveBlogList/constants.js +0 -10
- package/tests/unit/src/variants/LongFormGallery/LongformGallery.test.js +0 -42
- package/tests/unit/src/variants/LongFormGallery/LongformGalleryImage.test.js +0 -44
- package/tests/unit/src/variants/LongFormGallery/__snapshots__/LongformGallery.test.js.snap +0 -99
- package/tests/unit/src/variants/LongFormGallery/__snapshots__/LongformGalleryImage.test.js.snap +0 -51
- package/tests/unit/src/variants/LongFormGallery/constants.js +0 -37
- package/tests/unit/src/variants/LongFormGallery/helpers/parseImageData.test.js +0 -53
- package/tests/unit/src/variants/LongFormGallery/helpers/separateImages.test.js +0 -52
- package/tests/unit/src/variants/LongFormGallery/helpers/shouldSkip.test.js +0 -23
- package/tests/unit/src/variants/LongFormGallery/useLongformGallery.test.js +0 -36
- package/tests/unit/src/variants/ThumbnailCarousel/ThumbnailCarousel.test.js +0 -29
- package/tests/unit/src/variants/ThumbnailCarousel/ThumbnailImage.test.js +0 -45
- package/tests/unit/src/variants/ThumbnailCarousel/__snapshots__/ThumbnailCarousel.test.js.snap +0 -71
- package/tests/unit/src/variants/ThumbnailCarousel/__snapshots__/ThumbnailImage.test.js.snap +0 -19
- package/tests/unit/src/variants/ThumbnailCarousel/mocks.js +0 -64
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import { AND, OR } from '../../../../src/constants';
|
|
3
|
-
import buildSearchValuesCheckboxSelect from '../../../../src/helpers/build-search-values-checkbox-select';
|
|
4
|
-
|
|
5
|
-
const mockedArgs = {
|
|
6
|
-
query: {
|
|
7
|
-
metaTitle: 'something',
|
|
8
|
-
name: ['test', 'other']
|
|
9
|
-
},
|
|
10
|
-
rangeFiltersEmpty: [],
|
|
11
|
-
checkboxFiltersEmpty: [],
|
|
12
|
-
selectFiltersEmpty: []
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const mockedQueryCheckboxOneValue = {
|
|
16
|
-
metaTitle: 'something',
|
|
17
|
-
name: 'other'
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const mockedSearchArray = {
|
|
21
|
-
values: [{ match: { 'name.keyword': 'other' } }],
|
|
22
|
-
valuesOr: []
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const mockedQueryRandomData = {
|
|
26
|
-
test: 'random-value'
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const mockedCheckboxFilters = operator => [
|
|
30
|
-
{ propsToDisplay: ['name'], type: 'checkbox', operator }
|
|
31
|
-
];
|
|
32
|
-
|
|
33
|
-
describe('build search values for checkbox & select', () => {
|
|
34
|
-
const { query, rangeFiltersEmpty, checkboxFiltersEmpty, selectFiltersEmpty } = mockedArgs;
|
|
35
|
-
const searchValuesCheckboxSelect = buildSearchValuesCheckboxSelect(
|
|
36
|
-
query,
|
|
37
|
-
rangeFiltersEmpty,
|
|
38
|
-
checkboxFiltersEmpty,
|
|
39
|
-
selectFiltersEmpty
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
it('should be a function', () => {
|
|
43
|
-
expect(typeof buildSearchValuesCheckboxSelect).toEqual('function');
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
it('should always return an object', () => {
|
|
47
|
-
expect(typeof searchValuesCheckboxSelect).toBe('object');
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
it('should return an array with range filter', () => {
|
|
51
|
-
const searchArray = {
|
|
52
|
-
values: [
|
|
53
|
-
{
|
|
54
|
-
range: {
|
|
55
|
-
price: {
|
|
56
|
-
gte: 1,
|
|
57
|
-
lte: 123
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
valuesOr: []
|
|
63
|
-
};
|
|
64
|
-
const queryRange = {
|
|
65
|
-
price: '1-123',
|
|
66
|
-
metaTitle: 'something',
|
|
67
|
-
name: ['test', 'other']
|
|
68
|
-
};
|
|
69
|
-
const rangeFilters = [{ propsToDisplay: ['price'], type: 'range' }];
|
|
70
|
-
const searchValuesWithRange = buildSearchValuesCheckboxSelect(
|
|
71
|
-
queryRange,
|
|
72
|
-
rangeFilters,
|
|
73
|
-
checkboxFiltersEmpty,
|
|
74
|
-
selectFiltersEmpty
|
|
75
|
-
);
|
|
76
|
-
expect(searchValuesWithRange).toEqual(searchArray);
|
|
77
|
-
expect(searchValuesWithRange.values.length).toBe(1);
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
it('should return an array with correct data when checkbox filter has OR operator selected', () => {
|
|
81
|
-
const searchValuesCheckboxWithOrSelect = buildSearchValuesCheckboxSelect(
|
|
82
|
-
query,
|
|
83
|
-
rangeFiltersEmpty,
|
|
84
|
-
mockedCheckboxFilters(OR),
|
|
85
|
-
selectFiltersEmpty
|
|
86
|
-
);
|
|
87
|
-
const searchArray = {
|
|
88
|
-
values: [],
|
|
89
|
-
valuesOr: [{ match: { 'name.keyword': 'test' } }, { match: { 'name.keyword': 'other' } }]
|
|
90
|
-
};
|
|
91
|
-
expect(searchValuesCheckboxWithOrSelect).toEqual(searchArray);
|
|
92
|
-
expect(searchValuesCheckboxWithOrSelect.values.length).toBe(0);
|
|
93
|
-
expect(searchValuesCheckboxWithOrSelect.valuesOr.length).toBe(2);
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
it('should return an array with correct data when checkbox filter has AND operator selected', () => {
|
|
97
|
-
const searchValuesCheckboxWithOrSelect = buildSearchValuesCheckboxSelect(
|
|
98
|
-
query,
|
|
99
|
-
rangeFiltersEmpty,
|
|
100
|
-
mockedCheckboxFilters(AND),
|
|
101
|
-
selectFiltersEmpty
|
|
102
|
-
);
|
|
103
|
-
const searchArray = {
|
|
104
|
-
values: [{ match: { 'name.keyword': 'test' } }, { match: { 'name.keyword': 'other' } }],
|
|
105
|
-
valuesOr: []
|
|
106
|
-
};
|
|
107
|
-
expect(searchValuesCheckboxWithOrSelect).toEqual(searchArray);
|
|
108
|
-
expect(searchValuesCheckboxWithOrSelect.values.length).toBe(2);
|
|
109
|
-
expect(searchValuesCheckboxWithOrSelect.valuesOr.length).toBe(0);
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
it('should return an array with correct data when checkbox filter has only one value checked + AND operator', () => {
|
|
113
|
-
const searchValuesCheckboxWithOrSelect = buildSearchValuesCheckboxSelect(
|
|
114
|
-
mockedQueryCheckboxOneValue,
|
|
115
|
-
rangeFiltersEmpty,
|
|
116
|
-
mockedCheckboxFilters(AND),
|
|
117
|
-
selectFiltersEmpty
|
|
118
|
-
);
|
|
119
|
-
|
|
120
|
-
expect(searchValuesCheckboxWithOrSelect).toEqual(mockedSearchArray);
|
|
121
|
-
expect(searchValuesCheckboxWithOrSelect.values.length).toBe(1);
|
|
122
|
-
expect(searchValuesCheckboxWithOrSelect.valuesOr.length).toBe(0);
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
it('should return an array with correct data when checkbox filter has only one value checked + OR operator', () => {
|
|
126
|
-
const searchValuesCheckboxWithOrSelect = buildSearchValuesCheckboxSelect(
|
|
127
|
-
mockedQueryCheckboxOneValue,
|
|
128
|
-
rangeFiltersEmpty,
|
|
129
|
-
mockedCheckboxFilters(OR),
|
|
130
|
-
selectFiltersEmpty
|
|
131
|
-
);
|
|
132
|
-
|
|
133
|
-
expect(searchValuesCheckboxWithOrSelect).toEqual(mockedSearchArray);
|
|
134
|
-
expect(searchValuesCheckboxWithOrSelect.values.length).toBe(1);
|
|
135
|
-
expect(searchValuesCheckboxWithOrSelect.valuesOr.length).toBe(0);
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
it('should return an empty object if query params set but no filters', () => {
|
|
139
|
-
const searchValuesEmpty = buildSearchValuesCheckboxSelect(
|
|
140
|
-
mockedQueryRandomData,
|
|
141
|
-
rangeFiltersEmpty,
|
|
142
|
-
checkboxFiltersEmpty,
|
|
143
|
-
selectFiltersEmpty
|
|
144
|
-
);
|
|
145
|
-
|
|
146
|
-
expect(searchValuesEmpty).toEqual({ values: [], valuesOr: [] });
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
it('should return an empty object if query params set but they dont match any filters', () => {
|
|
150
|
-
const searchValuesEmpty = buildSearchValuesCheckboxSelect(
|
|
151
|
-
mockedQueryRandomData,
|
|
152
|
-
rangeFiltersEmpty,
|
|
153
|
-
mockedCheckboxFilters(AND),
|
|
154
|
-
selectFiltersEmpty
|
|
155
|
-
);
|
|
156
|
-
|
|
157
|
-
expect(searchValuesEmpty.values.length).toBe(0);
|
|
158
|
-
expect(searchValuesEmpty.valuesOr.length).toBe(0);
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
it('should remove query with keys named "search-term"', () => {
|
|
162
|
-
const querySearchTerm = { search_term: 'test-search-term', other: 'other-test' };
|
|
163
|
-
|
|
164
|
-
const searchQuerySearchTerm = buildSearchValuesCheckboxSelect(
|
|
165
|
-
querySearchTerm,
|
|
166
|
-
rangeFiltersEmpty,
|
|
167
|
-
checkboxFiltersEmpty,
|
|
168
|
-
selectFiltersEmpty
|
|
169
|
-
);
|
|
170
|
-
|
|
171
|
-
expect(searchQuerySearchTerm.values.length).toBe(0);
|
|
172
|
-
expect(searchQuerySearchTerm.valuesOr.length).toBe(0);
|
|
173
|
-
});
|
|
174
|
-
});
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import buildSearchValuesText from '../../../../src/helpers/build-search-values-text';
|
|
3
|
-
|
|
4
|
-
const mockedArgs = {
|
|
5
|
-
textFilter: {
|
|
6
|
-
propsToDisplay: ['name', 'metaTitle']
|
|
7
|
-
},
|
|
8
|
-
query: {
|
|
9
|
-
search_term: 'something'
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
describe('build search values for text input', () => {
|
|
14
|
-
const { textFilter, query } = mockedArgs;
|
|
15
|
-
const searchValues = buildSearchValuesText(textFilter, query);
|
|
16
|
-
const searchValuesEmpty = buildSearchValuesText({ propsToDisplay: [] }, query);
|
|
17
|
-
const searchValuesNoQueryParams = buildSearchValuesText(textFilter, {});
|
|
18
|
-
const searchValuesEmptyArgs = buildSearchValuesText();
|
|
19
|
-
|
|
20
|
-
it('should always return an array', () => {
|
|
21
|
-
[searchValues, searchValuesEmpty, searchValuesEmptyArgs].forEach(searchValue => {
|
|
22
|
-
expect(Array.isArray(searchValue.should)).toEqual(true);
|
|
23
|
-
expect(Array.isArray(searchValue.must)).toEqual(true);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('should handle empty values', () => {
|
|
28
|
-
[searchValues, searchValuesEmpty, searchValuesEmptyArgs].forEach(searchValue => {
|
|
29
|
-
expect(Array.isArray(searchValue.should)).toEqual(true);
|
|
30
|
-
expect(Array.isArray(searchValue.must)).toEqual(true);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
it('should have no filters set', () => {
|
|
35
|
-
expect(searchValuesEmpty.should.length).toEqual(0);
|
|
36
|
-
expect(searchValuesEmpty.must.length).toEqual(0);
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('should return an array with correct data', () => {
|
|
40
|
-
const searchArray = {
|
|
41
|
-
should: [
|
|
42
|
-
{
|
|
43
|
-
match: { pageBuilderIndexed: { query: 'something', fuzziness: 'AUTO', prefix_length: 3 } }
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
must: [
|
|
47
|
-
{ match: { name: { query: 'something', fuzziness: 'AUTO', prefix_length: 3 } } },
|
|
48
|
-
{ match: { metaTitle: { query: 'something', fuzziness: 'AUTO', prefix_length: 3 } } }
|
|
49
|
-
]
|
|
50
|
-
};
|
|
51
|
-
expect(searchValues).toEqual(searchArray);
|
|
52
|
-
expect(searchValuesEmpty).toEqual({ should: [], must: [] });
|
|
53
|
-
expect(searchValues.must.length).toBe(2);
|
|
54
|
-
expect(searchValuesEmpty.must.length).toBe(0);
|
|
55
|
-
expect(searchValuesNoQueryParams.must.length).toBe(0);
|
|
56
|
-
});
|
|
57
|
-
});
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import buildSetFilters from '../../../../src/helpers/build-set-filters';
|
|
3
|
-
|
|
4
|
-
const tagFilterByProperty = 'tagIds/tag';
|
|
5
|
-
const getMockedArgs = overrides => ({
|
|
6
|
-
filterBy: ['tagIds/id1', 'tagIds/id2'],
|
|
7
|
-
filterByProperty: [tagFilterByProperty],
|
|
8
|
-
filterByFeatured: null,
|
|
9
|
-
filterBySponsored: null,
|
|
10
|
-
...overrides
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
describe('build set filters', () => {
|
|
14
|
-
const filters = buildSetFilters(getMockedArgs());
|
|
15
|
-
|
|
16
|
-
it('should be a function', () => {
|
|
17
|
-
expect(typeof buildSetFilters).toEqual('function');
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should always return an object', () => {
|
|
21
|
-
expect(typeof filters).toBe('object');
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it('should return correct data with only filter values for one field', () => {
|
|
25
|
-
const { checkboxFilters, listFilterValues } = filters;
|
|
26
|
-
|
|
27
|
-
expect(checkboxFilters).toEqual([]);
|
|
28
|
-
expect(listFilterValues).toEqual({ tagIds: ['id1', 'id2'] });
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('should return correct data with filter values for more than one field', () => {
|
|
32
|
-
const { checkboxFilters, listFilterValues } = buildSetFilters(
|
|
33
|
-
getMockedArgs({
|
|
34
|
-
filterByProperty: [tagFilterByProperty, 'categoryId/category'],
|
|
35
|
-
filterBy: ['tagIds/id1', 'tagIds/id2', 'categoryId/cat1']
|
|
36
|
-
})
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
expect(checkboxFilters).toEqual([]);
|
|
40
|
-
expect(listFilterValues).toEqual({ tagIds: ['id1', 'id2'], categoryId: ['cat1'] });
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('should handle filter values with forward slash', () => {
|
|
44
|
-
const tagWithSlash = 'tag/with/slash';
|
|
45
|
-
const { listFilterValues } = buildSetFilters(
|
|
46
|
-
getMockedArgs({
|
|
47
|
-
filterByProperty: [tagFilterByProperty],
|
|
48
|
-
filterBy: [`tagIds/${tagWithSlash}`]
|
|
49
|
-
})
|
|
50
|
-
);
|
|
51
|
-
expect(listFilterValues).toEqual({ tagIds: [tagWithSlash] });
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
it('should return correct data with only one checkbox filter', () => {
|
|
55
|
-
const { checkboxFilters, listFilterValues } = buildSetFilters(
|
|
56
|
-
getMockedArgs({
|
|
57
|
-
filterByProperty: [],
|
|
58
|
-
filterBy: [],
|
|
59
|
-
filterBySponsored: true
|
|
60
|
-
})
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
expect(checkboxFilters).toEqual(['sponsored']);
|
|
64
|
-
expect(listFilterValues).toEqual({});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
it('should return correct data with both both filter values and checkbox filters', () => {
|
|
68
|
-
const { checkboxFilters, listFilterValues } = buildSetFilters(
|
|
69
|
-
getMockedArgs({
|
|
70
|
-
filterByFeatured: true,
|
|
71
|
-
filterBySponsored: true
|
|
72
|
-
})
|
|
73
|
-
);
|
|
74
|
-
|
|
75
|
-
expect(checkboxFilters).toEqual(['featured', 'sponsored']);
|
|
76
|
-
expect(listFilterValues).toEqual({ tagIds: ['id1', 'id2'] });
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
it('should take default empty array value when filterBy is not defined', () => {
|
|
80
|
-
const { checkboxFilters, listFilterValues } = buildSetFilters({});
|
|
81
|
-
expect(checkboxFilters).toEqual([]);
|
|
82
|
-
expect(listFilterValues).toEqual({});
|
|
83
|
-
});
|
|
84
|
-
});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import buildSortValues from '../../../../src/helpers/build-sort-values';
|
|
3
|
-
|
|
4
|
-
describe('buildSortValues helper function', () => {
|
|
5
|
-
it('should return an object with empty sort array if no sortFilters are passed', () => {
|
|
6
|
-
const noSort = buildSortValues();
|
|
7
|
-
const emptySortFilters = buildSortValues([]);
|
|
8
|
-
expect(noSort).toEqual({ sort: [] });
|
|
9
|
-
expect(emptySortFilters).toEqual({ sort: [] });
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
it('should return null if no sortFilters are passed and useSortObject is true', () => {
|
|
13
|
-
const noSortUseSortObject = buildSortValues(null, [], [], true);
|
|
14
|
-
const emptySortFiltersUseSortObject = buildSortValues([], [], [], true);
|
|
15
|
-
expect(noSortUseSortObject).toEqual(null);
|
|
16
|
-
expect(emptySortFiltersUseSortObject).toEqual(null);
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should return sort object if useSortObject is true and sortFilters match', () => {
|
|
20
|
-
const withUseSortObject = buildSortValues(
|
|
21
|
-
[
|
|
22
|
-
{
|
|
23
|
-
propsToDisplay: ['slug'],
|
|
24
|
-
sort: 'ASC',
|
|
25
|
-
label: ''
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
[],
|
|
29
|
-
['name', 'slug', 'metaTitle'],
|
|
30
|
-
true
|
|
31
|
-
);
|
|
32
|
-
expect(withUseSortObject).toEqual({ 'slug.keyword': 'asc' });
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it('should filter out duplicate sort values', () => {
|
|
36
|
-
const sort = buildSortValues(
|
|
37
|
-
[
|
|
38
|
-
{
|
|
39
|
-
propsToDisplay: ['slug'],
|
|
40
|
-
sort: 'ASC',
|
|
41
|
-
label: ''
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
propsToDisplay: ['slug'],
|
|
45
|
-
sort: 'ASC',
|
|
46
|
-
label: ''
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
[],
|
|
50
|
-
['name', 'slug', 'metaTitle']
|
|
51
|
-
);
|
|
52
|
-
expect(sort).toEqual({ sort: 'slug.keyword:asc' });
|
|
53
|
-
});
|
|
54
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import checkForError from '../../../../src/helpers/check-for-error';
|
|
2
|
-
|
|
3
|
-
const mockedResults = [
|
|
4
|
-
{ hasErr: false, errMsg: undefined },
|
|
5
|
-
{ hasErr: true, errMsg: 'hasError' },
|
|
6
|
-
{ hasErr: true, errMsg: 'shouldDisplayErr' },
|
|
7
|
-
{ hasErr: true, errMsg: 'shouldDisplayThisErr' }
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
const mockedProps = [
|
|
11
|
-
[{ message: 'hasError' }],
|
|
12
|
-
[{ message: 'shouldDisplayErr' }, { message: 'noShow' }, { message: 'noShow' }],
|
|
13
|
-
[{}, { message: 'shouldDisplayThisErr' }, { message: 'noShow' }]
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
describe('Get updated filter by helper function', () => {
|
|
17
|
-
it('should be a function', () => {
|
|
18
|
-
expect(typeof checkForError).toEqual('function');
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('should return false and no message if nothing is passed', () => {
|
|
22
|
-
expect(checkForError()).toEqual(mockedResults[0]);
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
it('should return true and the error message', () => {
|
|
26
|
-
expect(checkForError(mockedProps[0])).toEqual(mockedResults[1]);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it('should return true and the the first error msg if multiple errs are passed', () => {
|
|
30
|
-
expect(checkForError(mockedProps[1])).toEqual(mockedResults[2]);
|
|
31
|
-
expect(checkForError(mockedProps[2])).toEqual(mockedResults[3]);
|
|
32
|
-
});
|
|
33
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import checkPropsToUse from '../../../../src/helpers/check-props-to-use';
|
|
3
|
-
|
|
4
|
-
const mockedPropsArr = ['prop1', 'prop2'];
|
|
5
|
-
const mockedPropsObj = [
|
|
6
|
-
{ propertiesToDisplay: ['prop1', 'prop2'], prop2: 3 },
|
|
7
|
-
{ propertiesToDisplay: ['prop3', 'prop4'], prop2: 4 }
|
|
8
|
-
];
|
|
9
|
-
const mockedResult = ['prop1', 'prop2', 'prop3', 'prop4'];
|
|
10
|
-
|
|
11
|
-
describe('check props to use function', () => {
|
|
12
|
-
const withPropsArr = checkPropsToUse(mockedPropsArr);
|
|
13
|
-
const withPropsObj = checkPropsToUse(mockedPropsObj);
|
|
14
|
-
|
|
15
|
-
it('should be a function', () => {
|
|
16
|
-
expect(typeof checkPropsToUse).toEqual('function');
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should always return an array', () => {
|
|
20
|
-
expect(Array.isArray(withPropsArr)).toBe(true);
|
|
21
|
-
expect(Array.isArray(withPropsObj)).toBe(true);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it('should return the propertiesToDisplay values in a flat array', () => {
|
|
25
|
-
expect(withPropsObj).toEqual(mockedResult);
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it('should return empty array if no props to display are passed as argument', () => {
|
|
29
|
-
expect(Array.isArray(checkPropsToUse())).toBeTruthy();
|
|
30
|
-
expect(checkPropsToUse().length).toEqual(0);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import getBannerData from '../../../../src/helpers/get-banner-data';
|
|
3
|
-
|
|
4
|
-
const mockedParams = {
|
|
5
|
-
banner: {
|
|
6
|
-
someBannerKey: 'someBannerKey'
|
|
7
|
-
},
|
|
8
|
-
options: {
|
|
9
|
-
parent: { itemEntity: 12 },
|
|
10
|
-
limit: 4
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
describe('Get banner data object', () => {
|
|
15
|
-
const { banner, options } = mockedParams;
|
|
16
|
-
const bannerData = getBannerData(banner, options);
|
|
17
|
-
|
|
18
|
-
it('should return an object', () => {
|
|
19
|
-
expect(typeof bannerData).toBe('object');
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should return object merged with parent and limit', () => {
|
|
23
|
-
expect(bannerData).toHaveProperty('someBannerKey');
|
|
24
|
-
expect(bannerData).toHaveProperty('parent');
|
|
25
|
-
expect(bannerData).toHaveProperty('limit');
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it('should set entity as parentEntity if none is set on banner', () => {
|
|
29
|
-
expect(bannerData).toHaveProperty('entity');
|
|
30
|
-
expect(bannerData.entity).toEqual(12);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import getEntitiesWithBanner from '../../../../src/helpers/get-entities-with-banner';
|
|
3
|
-
|
|
4
|
-
const getMockedEntities = entities => [...Array(entities).keys()];
|
|
5
|
-
const banner = {
|
|
6
|
-
adunit: 'someBannerId',
|
|
7
|
-
sizes: '300x250, 300x600',
|
|
8
|
-
interval: 2,
|
|
9
|
-
repeat: true
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
describe('Get card entities', () => {
|
|
13
|
-
const mockedEntities = getMockedEntities(10);
|
|
14
|
-
const entities = getEntitiesWithBanner(mockedEntities, { hasBanner: true, banner });
|
|
15
|
-
it('should be a function', () => {
|
|
16
|
-
expect(typeof getEntitiesWithBanner).toEqual('function');
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should return an array', () => {
|
|
20
|
-
expect(Array.isArray(entities)).toBeTruthy();
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('should return an array with a banner injected', () => {
|
|
24
|
-
const foundBanner = entities.filter(entity => entity.adunit);
|
|
25
|
-
expect(foundBanner.length).toBeTruthy();
|
|
26
|
-
});
|
|
27
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import getCheckboxFilters from '../../../../src/helpers/get-checkbox-filters';
|
|
2
|
-
|
|
3
|
-
describe('getCheckboxFilters helper', () => {
|
|
4
|
-
it('adds [name, value] to checkboxFilters when value is a non-"off" string', () => {
|
|
5
|
-
const checkboxFilters = [];
|
|
6
|
-
getCheckboxFilters(checkboxFilters, 'filterName', 'on');
|
|
7
|
-
expect(checkboxFilters).toEqual([['filterName', 'on']]);
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
it('does not add to checkboxFilters when value is "off"', () => {
|
|
11
|
-
const checkboxFilters = [];
|
|
12
|
-
getCheckboxFilters(checkboxFilters, 'filterName', 'off');
|
|
13
|
-
expect(checkboxFilters).toEqual([]);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
it('does not add to checkboxFilters when value is falsy', () => {
|
|
17
|
-
const checkboxFilters = [];
|
|
18
|
-
getCheckboxFilters(checkboxFilters, 'filterName', null);
|
|
19
|
-
expect(checkboxFilters).toEqual([]);
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('adds name to checkboxFilters when value is truthy and not a string', () => {
|
|
23
|
-
const checkboxFilters = [];
|
|
24
|
-
getCheckboxFilters(checkboxFilters, 'filterName', true);
|
|
25
|
-
expect(checkboxFilters).toEqual(['filterName']);
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it('adds name to checkboxFilters when value is truthy and not a string', () => {
|
|
29
|
-
const checkboxFilters = [];
|
|
30
|
-
getCheckboxFilters(checkboxFilters, 'filterName', true);
|
|
31
|
-
expect(checkboxFilters).toEqual(['filterName']);
|
|
32
|
-
});
|
|
33
|
-
});
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import getClickWrapperOptions from '../../../../src/helpers/get-click-wrapper-options';
|
|
3
|
-
|
|
4
|
-
const mockedChildrenProp = {
|
|
5
|
-
props: {
|
|
6
|
-
children: [
|
|
7
|
-
null,
|
|
8
|
-
[
|
|
9
|
-
{
|
|
10
|
-
props: {
|
|
11
|
-
component: {
|
|
12
|
-
settings: {
|
|
13
|
-
gtmEvents: [
|
|
14
|
-
{
|
|
15
|
-
eventTrigger: 'onClick'
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
eventTrigger: 'inView'
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
eventTrigger: 'onLoad'
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
eventTrigger: 'onClick'
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
const mockedComponentProps = { name: 'compName', tag: 'compTag' };
|
|
36
|
-
|
|
37
|
-
describe('getClickWrapperOptions function', () => {
|
|
38
|
-
const noPropsPassed = getClickWrapperOptions();
|
|
39
|
-
const nullChildren = getClickWrapperOptions(null);
|
|
40
|
-
const noClickWrapper = getClickWrapperOptions({}, {});
|
|
41
|
-
const withClickWrapper = getClickWrapperOptions(mockedChildrenProp, {});
|
|
42
|
-
const withClickWrapperAndComponentProps = getClickWrapperOptions(
|
|
43
|
-
mockedChildrenProp,
|
|
44
|
-
mockedComponentProps
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
it('should always return an object', () => {
|
|
48
|
-
expect(typeof noPropsPassed).toBe('object');
|
|
49
|
-
expect(typeof nullChildren).toBe('object');
|
|
50
|
-
expect(typeof noClickWrapper).toBe('object');
|
|
51
|
-
expect(typeof withClickWrapper).toBe('object');
|
|
52
|
-
expect(typeof withClickWrapperAndComponentProps).toBe('object');
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
it('should return shouldUseClickWrapper as false if no gtm child with onClick event trigger is found', () => {
|
|
56
|
-
const { shouldUseClickWrapper } = noClickWrapper;
|
|
57
|
-
expect(shouldUseClickWrapper).toBe(false);
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it('should return shouldUseClickWrapper as true if a gtm child with onClick event trigger is found', () => {
|
|
61
|
-
const { shouldUseClickWrapper } = withClickWrapper;
|
|
62
|
-
expect(shouldUseClickWrapper).toBe(true);
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
it('should return componentProps if shouldUseClickWrapper is true and componentProps are passed', () => {
|
|
66
|
-
const { wrapperProps } = withClickWrapperAndComponentProps;
|
|
67
|
-
const expectedComponentProps = {
|
|
68
|
-
gtmChildren: mockedChildrenProp,
|
|
69
|
-
...mockedComponentProps,
|
|
70
|
-
id: null
|
|
71
|
-
};
|
|
72
|
-
const { gtmEvents } = wrapperProps.gtmChildren.props.children[1][0].props.component.settings;
|
|
73
|
-
expect(wrapperProps).toEqual(expectedComponentProps);
|
|
74
|
-
expect(gtmEvents).toEqual([
|
|
75
|
-
{ eventTrigger: 'onClick' },
|
|
76
|
-
{ eventTrigger: 'inView' },
|
|
77
|
-
{ eventTrigger: 'onLoad' },
|
|
78
|
-
{ eventTrigger: 'onClick' }
|
|
79
|
-
]);
|
|
80
|
-
});
|
|
81
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import cssesc from 'cssesc';
|
|
2
|
-
import getComponentId from '../../../../src/helpers/get-component-id';
|
|
3
|
-
import { COMPONENT_ID_PREFIX } from '../../../../src/constants';
|
|
4
|
-
|
|
5
|
-
jest.mock('cssesc');
|
|
6
|
-
|
|
7
|
-
describe('Get component Id', () => {
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
cssesc.mockClear();
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
it('should call cssesc with correct arguments', () => {
|
|
13
|
-
cssesc.mockReturnValue('escapedId');
|
|
14
|
-
const componentName = 'MyComponent';
|
|
15
|
-
const expectedInput = `${COMPONENT_ID_PREFIX}${componentName}`;
|
|
16
|
-
const result = getComponentId(componentName);
|
|
17
|
-
|
|
18
|
-
expect(cssesc).toHaveBeenCalledWith(expectedInput, { isIdentifier: true });
|
|
19
|
-
expect(result).toBe('escapedId');
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should handle special characters in component name', () => {
|
|
23
|
-
cssesc.mockImplementation(str => `escaped:${str}`);
|
|
24
|
-
const componentName = 'My$Component#1';
|
|
25
|
-
const expectedInput = `${COMPONENT_ID_PREFIX}${componentName}`;
|
|
26
|
-
const result = getComponentId(componentName);
|
|
27
|
-
|
|
28
|
-
expect(result).toBe(`escaped:${expectedInput}`);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('should return a string', () => {
|
|
32
|
-
cssesc.mockReturnValue('someId');
|
|
33
|
-
const result = getComponentId('Test');
|
|
34
|
-
expect(typeof result).toBe('string');
|
|
35
|
-
});
|
|
36
|
-
});
|