@blaze-cms/react-page-builder 0.146.0-translations.8 → 0.147.0-rc-eagle.2
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/lib/BannerContext/helpers/index.js +2 -3
- package/lib/BannerContext/helpers/index.js.map +1 -1
- package/lib/BannerContext/helpers/set-initial-banner-counters.js +13 -17
- package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
- package/lib/BannerContext/index.js +19 -26
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/index.js +2 -3
- package/lib/HOC/index.js.map +1 -1
- package/lib/HOC/recreateOnNavigation.js +11 -12
- package/lib/HOC/recreateOnNavigation.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +47 -81
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +21 -30
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/PBContext/index.js +3 -4
- package/lib/PBContext/index.js.map +1 -1
- package/lib/application/query/index.js +179 -46
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +16 -32
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/BackToTop/index.js +2 -3
- package/lib/components/BackToTop/index.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +45 -63
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +63 -64
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/BannerRender.js +89 -88
- package/lib/components/Banner/BannerRender.js.map +1 -1
- package/lib/components/Banner/helpers.js +89 -135
- package/lib/components/Banner/helpers.js.map +1 -1
- package/lib/components/Banner/index.js +3 -17
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +37 -52
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +66 -71
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Breadcrumb/index.js +2 -3
- package/lib/components/Breadcrumb/index.js.map +1 -1
- package/lib/components/Button.js +75 -137
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +187 -190
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +108 -120
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsFactory.js +62 -58
- package/lib/components/Card/CardsFactory.js.map +1 -1
- package/lib/components/Card/CardsRender.js +166 -185
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Card/constants.js +2 -3
- package/lib/components/Card/constants.js.map +1 -1
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js +16 -22
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib/components/Card/helpers/get-published-listing-url.js +3 -6
- package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
- package/lib/components/Card/helpers/index.js +18 -19
- package/lib/components/Card/helpers/index.js.map +1 -1
- package/lib/components/Card/helpers/use-dynamic-size-key.js +5 -11
- package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib/components/Card/index.js +2 -3
- package/lib/components/Card/index.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +59 -26
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/CarouselImage.js +36 -34
- package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/constants.js +1 -2
- package/lib/components/Carousel/CarouselImage/constants.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/index.js +2 -3
- package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/CarouselRender.js +41 -47
- package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/index.js +2 -3
- package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
- package/lib/components/Carousel/hooks/useCarouselNavigation.js +25 -26
- package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
- package/lib/components/Carousel/index.js +2 -3
- package/lib/components/Carousel/index.js.map +1 -1
- package/lib/components/CarouselWrapper/CarouselWrapper.js +11 -10
- package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js +72 -80
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js +23 -23
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/index.js +2 -3
- package/lib/components/CarouselWrapper/index.js.map +1 -1
- package/lib/components/ClickWrapper.js +20 -38
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +20 -34
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +15 -29
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/Code/helpers/index.js +2 -3
- package/lib/components/Code/helpers/index.js.map +1 -1
- package/lib/components/Code/helpers/wrap-script-tags.js +12 -15
- package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib/components/Code/index.js +2 -3
- package/lib/components/Code/index.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroup.js +43 -40
- package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupAccordion.js +83 -112
- package/lib/components/ContentGroup/ContentGroupAccordion.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +45 -62
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ContentGroup/constants.js +8 -10
- package/lib/components/ContentGroup/constants.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-active-tab.js +7 -13
- package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js +15 -18
- package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-structured-data-properties.js +4 -5
- package/lib/components/ContentGroup/helpers/get-structured-data-properties.js.map +1 -1
- package/lib/components/ContentGroup/helpers/index.js +4 -5
- package/lib/components/ContentGroup/helpers/index.js.map +1 -1
- package/lib/components/ContentGroup/index.js +2 -3
- package/lib/components/ContentGroup/index.js.map +1 -1
- package/lib/components/ContentGroupSection/ContentGroupSection.js +9 -10
- package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib/components/ContentGroupSection/index.js +2 -3
- package/lib/components/ContentGroupSection/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +52 -57
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryRender.js +56 -55
- package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +14 -16
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +14 -27
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +11 -10
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +15 -30
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +11 -10
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +20 -35
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +11 -10
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +20 -35
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +11 -10
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +15 -30
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +7 -37
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-loop-props-content.js +36 -52
- package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js +22 -27
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-data-summary-query.js +13 -10
- package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js +4 -6
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-props.js +6 -16
- package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js +5 -14
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js +6 -12
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-prop-value.js +15 -25
- package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-record-id.js +20 -0
- package/lib/components/DataSummary/helpers/get-record-id.js.map +1 -0
- package/lib/components/DataSummary/helpers/get-value-from-array.js +12 -17
- package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib/components/DataSummary/helpers/index.js +23 -17
- package/lib/components/DataSummary/helpers/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/parse-boolean-values.js +3 -4
- package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js +6 -13
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib/components/DataSummary/index.js +2 -3
- package/lib/components/DataSummary/index.js.map +1 -1
- package/lib/components/DateTime/DateTime.js +18 -18
- package/lib/components/DateTime/DateTime.js.map +1 -1
- package/lib/components/DateTime/index.js +2 -3
- package/lib/components/DateTime/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +48 -55
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/EmailConfirm/index.js +2 -3
- package/lib/components/EmailConfirm/index.js.map +1 -1
- package/lib/components/EmailConfirm/mutation.js +12 -7
- package/lib/components/EmailConfirm/mutation.js.map +1 -1
- package/lib/components/ErrorMessage/ErrorMessage.js +19 -22
- package/lib/components/ErrorMessage/ErrorMessage.js.map +1 -1
- package/lib/components/ErrorMessage/index.js +3 -17
- package/lib/components/ErrorMessage/index.js.map +1 -1
- package/lib/components/Iframe/Iframe.js +19 -20
- package/lib/components/Iframe/Iframe.js.map +1 -1
- package/lib/components/Iframe/constants.js +2 -3
- package/lib/components/Iframe/constants.js.map +1 -1
- package/lib/components/Iframe/index.js +2 -3
- package/lib/components/Iframe/index.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +85 -103
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/NavButton.js +20 -22
- package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +3 -17
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +94 -116
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageDetails.js +19 -21
- package/lib/components/Image/ImageDetails.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +57 -63
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/ImageRender.js +44 -44
- package/lib/components/Image/ImageRender.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +29 -43
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/Image/Lightbox/index.js +2 -3
- package/lib/components/Image/Lightbox/index.js.map +1 -1
- package/lib/components/Image/index.js +2 -3
- package/lib/components/Image/index.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +63 -78
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/index.js +2 -3
- package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +34 -35
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/index.js +2 -3
- package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/ItemListNew.js +36 -33
- package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/index.js +2 -3
- package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
- package/lib/components/ItemList/constants.js +5 -6
- package/lib/components/ItemList/constants.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-data.js +3 -4
- package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-id.js +4 -6
- package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-ids.js +9 -12
- package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib/components/ItemList/helpers/index.js +10 -11
- package/lib/components/ItemList/helpers/index.js.map +1 -1
- package/lib/components/ItemList/helpers/set-item-list-id.js +4 -6
- package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/set-param-and-redirect.js +7 -18
- package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib/components/ItemList/hooks/index.js +2 -3
- package/lib/components/ItemList/hooks/index.js.map +1 -1
- package/lib/components/ItemList/hooks/use-item-list-id.js +12 -17
- package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib/components/ItemList/icons/AddedBookmark.js +8 -9
- package/lib/components/ItemList/icons/AddedBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/BaseBookmark.js +9 -10
- package/lib/components/ItemList/icons/BaseBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/HoverBookmark.js +9 -10
- package/lib/components/ItemList/icons/HoverBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/RemoveBookmark.js +8 -9
- package/lib/components/ItemList/icons/RemoveBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/index.js +8 -9
- package/lib/components/ItemList/icons/index.js.map +1 -1
- package/lib/components/Layout/Layout.js +57 -53
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/LayoutFactory.js +11 -23
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +18 -33
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/Layout/constants.js +3 -4
- package/lib/components/Layout/constants.js.map +1 -1
- package/lib/components/Layout/helpers/check-if-row-has-columns.js +8 -15
- package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib/components/Layout/helpers/get-styles-to-update.js +6 -6
- package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib/components/Layout/helpers/index.js +4 -5
- package/lib/components/Layout/helpers/index.js.map +1 -1
- package/lib/components/Layout/index.js +2 -3
- package/lib/components/Layout/index.js.map +1 -1
- package/lib/components/LazyImage/LazyImage.js +20 -23
- package/lib/components/LazyImage/LazyImage.js.map +1 -1
- package/lib/components/LazyImage/index.js +3 -17
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListBuilder.js +130 -144
- package/lib/components/List/ListBuilder.js.map +1 -1
- package/lib/components/List/ListFactory.js +165 -183
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js +75 -80
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js +2 -3
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +62 -75
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderItem.js +69 -71
- package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +29 -35
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Cards/index.js +2 -3
- package/lib/components/List/components/Cards/index.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +49 -60
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +63 -79
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js +2 -3
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Full/index.js +2 -3
- package/lib/components/List/components/Full/index.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js +34 -32
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Header/index.js +2 -3
- package/lib/components/List/components/Header/index.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js +35 -36
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +39 -58
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/components/Pagination/LoadMore.js +21 -22
- package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib/components/List/components/Pagination/index.js +2 -3
- package/lib/components/List/components/Pagination/index.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-banner.js +26 -22
- package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js +6 -10
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib/components/List/components/helpers/index.js +4 -5
- package/lib/components/List/components/helpers/index.js.map +1 -1
- package/lib/components/List/components/index.js +8 -9
- package/lib/components/List/components/index.js.map +1 -1
- package/lib/components/List/constants.js +7 -11
- package/lib/components/List/constants.js.map +1 -1
- package/lib/components/List/helpers/build-az-aggregations.js +22 -37
- package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib/components/List/helpers/build-az-url.js +15 -23
- package/lib/components/List/helpers/build-az-url.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js +19 -20
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-url.js +9 -18
- package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib/components/List/helpers/build-query-booster.js +32 -38
- package/lib/components/List/helpers/build-query-booster.js.map +1 -1
- package/lib/components/List/helpers/get-az-query-filter.js +4 -6
- package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib/components/List/helpers/get-items-per-page-to-use.js +3 -4
- package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
- package/lib/components/List/helpers/get-list-component.js +3 -4
- package/lib/components/List/helpers/get-list-component.js.map +1 -1
- package/lib/components/List/helpers/get-list-query.js +14 -26
- package/lib/components/List/helpers/get-list-query.js.map +1 -1
- package/lib/components/List/helpers/get-list-specific-search-filter.js +10 -12
- package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
- package/lib/components/List/helpers/get-sort-props.js +16 -24
- package/lib/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib/components/List/helpers/has-required-item-list-details.js +8 -8
- package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib/components/List/helpers/index.js +24 -25
- package/lib/components/List/helpers/index.js.map +1 -1
- package/lib/components/List/helpers/sort-aggs.js +16 -22
- package/lib/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib/components/List/helpers/strip-query-key.js +3 -4
- package/lib/components/List/helpers/strip-query-key.js.map +1 -1
- package/lib/components/List/index.js +2 -3
- package/lib/components/List/index.js.map +1 -1
- package/lib/components/Loading/Loading.js +15 -16
- package/lib/components/Loading/Loading.js.map +1 -1
- package/lib/components/Loading/constants.js +3 -4
- package/lib/components/Loading/constants.js.map +1 -1
- package/lib/components/Loading/helpers.js +4 -8
- package/lib/components/Loading/helpers.js.map +1 -1
- package/lib/components/Loading/index.js +3 -17
- package/lib/components/Loading/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +65 -83
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js +4 -6
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/Menu/index.js +2 -3
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/MenuItem/MenuEntitiesItem.js +131 -150
- package/lib/components/MenuItem/MenuEntitiesItem.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js +19 -18
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/MenuItemRender.js +49 -74
- package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib/components/MenuItem/helpers/index.js +2 -17
- package/lib/components/MenuItem/helpers/index.js.map +1 -1
- package/lib/components/MenuItem/helpers/inject-helper-into-template.js +17 -8
- package/lib/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -1
- package/lib/components/MenuItem/index.js +2 -3
- package/lib/components/MenuItem/index.js.map +1 -1
- package/lib/components/Modal/Modal.js +15 -14
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/index.js +2 -3
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/ModalAdapter/ModalAdapter.js +7 -8
- package/lib/components/ModalAdapter/ModalAdapter.js.map +1 -1
- package/lib/components/ModalAdapter/index.js +3 -17
- package/lib/components/ModalAdapter/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +78 -91
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentItems.js +28 -31
- package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib/components/SearchContent/SearchContentResults.js +18 -17
- package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib/components/SearchContent/SearchContentToggleIcon.js +15 -17
- package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib/components/SearchContent/constants.js +2 -3
- package/lib/components/SearchContent/constants.js.map +1 -1
- package/lib/components/SearchContent/index.js +2 -3
- package/lib/components/SearchContent/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js +12 -11
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +44 -52
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js +14 -13
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js +12 -11
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +95 -125
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/index.js +2 -3
- package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +133 -150
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +66 -83
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/components/Range.js +79 -82
- package/lib/components/SearchFilter/components/Range.js.map +1 -1
- package/lib/components/SearchFilter/components/Select.js +46 -48
- package/lib/components/SearchFilter/components/Select.js.map +1 -1
- package/lib/components/SearchFilter/components/TextSearch.js +41 -39
- package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib/components/SearchFilter/components/index.js +8 -9
- package/lib/components/SearchFilter/components/index.js.map +1 -1
- package/lib/components/SearchFilter/constants.js +29 -30
- package/lib/components/SearchFilter/constants.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-list-name-query.js +9 -19
- package/lib/components/SearchFilter/helpers/build-list-name-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-new-url.js +8 -9
- package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-url-query.js +19 -33
- package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-min-max.js +10 -10
- package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-step.js +3 -6
- package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js +7 -6
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib/components/SearchFilter/helpers/decode-encode.js +4 -7
- package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-display-value.js +4 -14
- package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +10 -17
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +14 -14
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-values.js +11 -15
- package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js +13 -17
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js +3 -7
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-range-value.js +17 -24
- package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js +17 -13
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-select-options.js +9 -11
- package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +9 -21
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/components/SearchFilter/helpers/index.js +34 -35
- package/lib/components/SearchFilter/helpers/index.js.map +1 -1
- package/lib/components/SearchFilter/helpers/is-device-desktop.js +3 -6
- package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/parse-filter-value.js +8 -14
- package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib/components/SearchFilter/index.js +2 -3
- package/lib/components/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/searchFilterReducer.js +10 -19
- package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js +49 -55
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/SearchFilterSort/constants.js +4 -5
- package/lib/components/SearchFilterSort/constants.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +26 -30
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/index.js +4 -5
- package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/update-sort.js +13 -27
- package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib/components/SearchFilterSort/index.js +2 -3
- package/lib/components/SearchFilterSort/index.js.map +1 -1
- package/lib/components/SocialFollow/SFItem.js +18 -18
- package/lib/components/SocialFollow/SFItem.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollow.js +17 -16
- package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollowRender.js +15 -16
- package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib/components/SocialFollow/index.js +2 -3
- package/lib/components/SocialFollow/index.js.map +1 -1
- package/lib/components/SocialFollow/sf.config.js +4 -5
- package/lib/components/SocialFollow/sf.config.js.map +1 -1
- package/lib/components/SubMenu/SubMenu.js +10 -10
- package/lib/components/SubMenu/SubMenu.js.map +1 -1
- package/lib/components/SubMenu/index.js +2 -3
- package/lib/components/SubMenu/index.js.map +1 -1
- package/lib/components/TextBlock/TextBlockRender.js +12 -13
- package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib/components/TextBlock/index.js +22 -30
- package/lib/components/TextBlock/index.js.map +1 -1
- package/lib/components/Video/Video.js +46 -52
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoContext.js +3 -4
- package/lib/components/Video/VideoContext.js.map +1 -1
- package/lib/components/Video/VideoModal.js +13 -28
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +30 -36
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/constants.js +1 -2
- package/lib/components/Video/constants.js.map +1 -1
- package/lib/components/Video/helpers/emit-gtm-event.js +11 -11
- package/lib/components/Video/helpers/emit-gtm-event.js.map +1 -1
- package/lib/components/Video/index.js +2 -3
- package/lib/components/Video/index.js.map +1 -1
- package/lib/components/Video/providers/Default.js +22 -24
- package/lib/components/Video/providers/Default.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +44 -46
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +44 -56
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +41 -88
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +8 -21
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/index.js +2 -3
- package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js +18 -18
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +101 -121
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/YouTube/helpers/index.js +17 -23
- package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +10 -40
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/Video/providers/index.js +2 -3
- package/lib/components/Video/providers/index.js.map +1 -1
- package/lib/components/Wrapper.js +21 -21
- package/lib/components/Wrapper.js.map +1 -1
- package/lib/components/index.js +34 -164
- package/lib/components/index.js.map +1 -1
- package/lib/constants/componentsDefaultValues.js +5 -7
- package/lib/constants/componentsDefaultValues.js.map +1 -1
- package/lib/constants/index.js +110 -112
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/append-images.js +20 -30
- package/lib/helpers/append-images.js.map +1 -1
- package/lib/helpers/build-az-filter.js +12 -13
- package/lib/helpers/build-az-filter.js.map +1 -1
- package/lib/helpers/build-checkbox-filters.js +17 -20
- package/lib/helpers/build-checkbox-filters.js.map +1 -1
- package/lib/helpers/build-filters-query.js +50 -57
- package/lib/helpers/build-filters-query.js.map +1 -1
- package/lib/helpers/build-image-properties.js +21 -23
- package/lib/helpers/build-image-properties.js.map +1 -1
- package/lib/helpers/build-inherited-filters.js +41 -53
- package/lib/helpers/build-inherited-filters.js.map +1 -1
- package/lib/helpers/build-link-extra-props.js +10 -11
- package/lib/helpers/build-link-extra-props.js.map +1 -1
- package/lib/helpers/build-props-query.js +70 -111
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/helpers/build-query-fields.js +13 -10
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/build-query-key.js +6 -8
- package/lib/helpers/build-query-key.js.map +1 -1
- package/lib/helpers/build-raw-query-base.js +59 -80
- package/lib/helpers/build-raw-query-base.js.map +1 -1
- package/lib/helpers/build-raw-query-stringified.js +9 -15
- package/lib/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib/helpers/build-raw-query.js +72 -86
- package/lib/helpers/build-raw-query.js.map +1 -1
- package/lib/helpers/build-search-values-checkbox-select.js +54 -76
- package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib/helpers/build-search-values-text.js +30 -36
- package/lib/helpers/build-search-values-text.js.map +1 -1
- package/lib/helpers/build-set-filters.js +24 -38
- package/lib/helpers/build-set-filters.js.map +1 -1
- package/lib/helpers/build-sort-values.js +18 -28
- package/lib/helpers/build-sort-values.js.map +1 -1
- package/lib/helpers/check-for-error.js +7 -13
- package/lib/helpers/check-for-error.js.map +1 -1
- package/lib/helpers/check-props-to-use.js +5 -11
- package/lib/helpers/check-props-to-use.js.map +1 -1
- package/lib/helpers/entities/constants.js +3 -4
- package/lib/helpers/entities/constants.js.map +1 -1
- package/lib/helpers/filter-query-setup.js +39 -48
- package/lib/helpers/filter-query-setup.js.map +1 -1
- package/lib/helpers/filters-setup.js +34 -35
- package/lib/helpers/filters-setup.js.map +1 -1
- package/lib/helpers/get-banner-data.js +12 -22
- package/lib/helpers/get-banner-data.js.map +1 -1
- package/lib/helpers/get-checkbox-filters.js +3 -4
- package/lib/helpers/get-checkbox-filters.js.map +1 -1
- package/lib/helpers/get-click-wrapper-options.js +28 -43
- package/lib/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib/helpers/get-component-id.js +5 -9
- package/lib/helpers/get-component-id.js.map +1 -1
- package/lib/helpers/get-current-offset.js +4 -10
- package/lib/helpers/get-current-offset.js.map +1 -1
- package/lib/helpers/get-custom-html-properties.js +19 -0
- package/lib/helpers/get-custom-html-properties.js.map +1 -0
- package/lib/helpers/get-dictionary-match.js +4 -7
- package/lib/helpers/get-dictionary-match.js.map +1 -1
- package/lib/helpers/get-display-count-data.js +8 -10
- package/lib/helpers/get-display-count-data.js.map +1 -1
- package/lib/helpers/get-elasticsearch-operator.js +5 -7
- package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib/helpers/get-entities-with-banner.js +22 -28
- package/lib/helpers/get-entities-with-banner.js.map +1 -1
- package/lib/helpers/get-entity-data.js +15 -17
- package/lib/helpers/get-entity-data.js.map +1 -1
- package/lib/helpers/get-entity-render-props.js +16 -14
- package/lib/helpers/get-entity-render-props.js.map +1 -1
- package/lib/helpers/get-extra-az-bits.js +25 -23
- package/lib/helpers/get-extra-az-bits.js.map +1 -1
- package/lib/helpers/get-filter-props.js +46 -60
- package/lib/helpers/get-filter-props.js.map +1 -1
- package/lib/helpers/get-filter-relation-keys.js +8 -16
- package/lib/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib/helpers/get-generic-props.js +9 -18
- package/lib/helpers/get-generic-props.js.map +1 -1
- package/lib/helpers/get-generic-render-variables.js +30 -45
- package/lib/helpers/get-generic-render-variables.js.map +1 -1
- package/lib/helpers/get-image-ids.js +12 -21
- package/lib/helpers/get-image-ids.js.map +1 -1
- package/lib/helpers/get-inherited-filters.js +6 -18
- package/lib/helpers/get-inherited-filters.js.map +1 -1
- package/lib/helpers/get-items-to-display-ids.js +6 -15
- package/lib/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib/helpers/get-modifiers.js +8 -23
- package/lib/helpers/get-modifiers.js.map +1 -1
- package/lib/helpers/get-not-equal-query.js +1 -2
- package/lib/helpers/get-not-equal-query.js.map +1 -1
- package/lib/helpers/get-pagination-index.js +3 -6
- package/lib/helpers/get-pagination-index.js.map +1 -1
- package/lib/helpers/get-parsed-prop-values.js +28 -40
- package/lib/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib/helpers/get-parsed-summary-value.js +5 -6
- package/lib/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib/helpers/get-prop-values.js +13 -26
- package/lib/helpers/get-prop-values.js.map +1 -1
- package/lib/helpers/get-query-filters.js +12 -15
- package/lib/helpers/get-query-filters.js.map +1 -1
- package/lib/helpers/get-query-props.js +27 -32
- package/lib/helpers/get-query-props.js.map +1 -1
- package/lib/helpers/get-required-schemas.js +20 -37
- package/lib/helpers/get-required-schemas.js.map +1 -1
- package/lib/helpers/get-sanitized-prop-values.js +3 -10
- package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
- package/lib/helpers/get-search-filter-type.js +10 -14
- package/lib/helpers/get-search-filter-type.js.map +1 -1
- package/lib/helpers/get-sort-by-field-name.js +15 -32
- package/lib/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib/helpers/get-unpublished-entity-name.js +4 -14
- package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
- package/lib/helpers/get-updated-filter-by.js +5 -8
- package/lib/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/helpers/get-updated-items-to-display.js +17 -33
- package/lib/helpers/get-updated-items-to-display.js.map +1 -1
- package/lib/helpers/get-updated-sort-properties.js +8 -18
- package/lib/helpers/get-updated-sort-properties.js.map +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js +14 -17
- package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib/helpers/group-entities.js +4 -9
- package/lib/helpers/group-entities.js.map +1 -1
- package/lib/helpers/has-children.js +4 -7
- package/lib/helpers/has-children.js.map +1 -1
- package/lib/helpers/index.js +135 -129
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/inject-banner.js +8 -10
- package/lib/helpers/inject-banner.js.map +1 -1
- package/lib/helpers/inject-banners-to-entities.js +11 -9
- package/lib/helpers/inject-banners-to-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js +9 -12
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js +2 -3
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +10 -22
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +17 -24
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js +2 -3
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js +2 -3
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/index.js +2 -3
- package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js +6 -6
- package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
- package/lib/helpers/is-browser.js +3 -6
- package/lib/helpers/is-browser.js.map +1 -1
- package/lib/helpers/is-filter-entitys-id.js +5 -9
- package/lib/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib/helpers/is-object.js +3 -9
- package/lib/helpers/is-object.js.map +1 -1
- package/lib/helpers/is-using-relation-image.js +3 -6
- package/lib/helpers/is-using-relation-image.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +18 -24
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-interval.js +1 -2
- package/lib/helpers/parse-interval.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +24 -39
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/process-data-summary-value.js +26 -37
- package/lib/helpers/process-data-summary-value.js.map +1 -1
- package/lib/helpers/remove-extra-items.js +4 -5
- package/lib/helpers/remove-extra-items.js.map +1 -1
- package/lib/helpers/remove-unwanted-characters.js +11 -23
- package/lib/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib/helpers/render-children.js +15 -36
- package/lib/helpers/render-children.js.map +1 -1
- package/lib/helpers/should-render-waypoint.js +3 -10
- package/lib/helpers/should-render-waypoint.js.map +1 -1
- package/lib/helpers/should-return.js +3 -11
- package/lib/helpers/should-return.js.map +1 -1
- package/lib/helpers/should-show-property.js +6 -8
- package/lib/helpers/should-show-property.js.map +1 -1
- package/lib/helpers/should-skip-single-query.js +3 -6
- package/lib/helpers/should-skip-single-query.js.map +1 -1
- package/lib/helpers/sort-response-data.js +7 -17
- package/lib/helpers/sort-response-data.js.map +1 -1
- package/lib/helpers/split-children.js +43 -52
- package/lib/helpers/split-children.js.map +1 -1
- package/lib/helpers/update-childrens-parent.js +12 -25
- package/lib/helpers/update-childrens-parent.js.map +1 -1
- package/lib/hooks/helpers/RenderComponent.js +53 -46
- package/lib/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib/hooks/helpers/StoreImages.js +40 -71
- package/lib/hooks/helpers/StoreImages.js.map +1 -1
- package/lib/hooks/helpers/append-gtm-classname.js +28 -31
- package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib/hooks/helpers/buildPBComponents.js +46 -71
- package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib/hooks/helpers/check-banner-insertion-set.js +10 -18
- package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
- package/lib/hooks/helpers/check-collisions.js +17 -20
- package/lib/hooks/helpers/check-collisions.js.map +1 -1
- package/lib/hooks/helpers/constants.js +4 -5
- package/lib/hooks/helpers/constants.js.map +1 -1
- package/lib/hooks/helpers/get-banner-index.js +3 -9
- package/lib/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib/hooks/helpers/get-components-to-insert-by-type.js +16 -18
- package/lib/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js +17 -44
- package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib/hooks/helpers/getComponent.js +1 -2
- package/lib/hooks/helpers/getComponent.js.map +1 -1
- package/lib/hooks/helpers/getVariant.js +9 -7
- package/lib/hooks/helpers/getVariant.js.map +1 -1
- package/lib/hooks/helpers/index.js +2 -3
- package/lib/hooks/helpers/index.js.map +1 -1
- package/lib/hooks/helpers/inject-element-components.js +33 -37
- package/lib/hooks/helpers/inject-element-components.js.map +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js +56 -62
- package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib/hooks/helpers/insert-banners.js +41 -58
- package/lib/hooks/helpers/insert-banners.js.map +1 -1
- package/lib/hooks/helpers/update-targetings.js +11 -9
- package/lib/hooks/helpers/update-targetings.js.map +1 -1
- package/lib/hooks/index.js +29 -23
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-app-event-hook.js +45 -0
- package/lib/hooks/use-app-event-hook.js.map +1 -0
- package/lib/hooks/use-app-sync-event-hook.js +21 -21
- package/lib/hooks/use-app-sync-event-hook.js.map +1 -1
- package/lib/hooks/use-banner-insertion.js +14 -14
- package/lib/hooks/use-banner-insertion.js.map +1 -1
- package/lib/hooks/use-check-mobile-screen.js +12 -18
- package/lib/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib/hooks/use-filter-aggregation-values.js +19 -35
- package/lib/hooks/use-filter-aggregation-values.js.map +1 -1
- package/lib/hooks/use-get-entity-schema.js +20 -26
- package/lib/hooks/use-get-entity-schema.js.map +1 -1
- package/lib/hooks/use-get-entity-schemas-as-obj.js +7 -17
- package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib/hooks/use-get-image-id-from-relation.js +31 -34
- package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib/hooks/use-get-images.js +20 -24
- package/lib/hooks/use-get-images.js.map +1 -1
- package/lib/hooks/use-get-single-entity-schema.js +16 -17
- package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib/hooks/use-page-builder.js +8 -30
- package/lib/hooks/use-page-builder.js.map +1 -1
- package/lib/hooks/use-portal.js +6 -15
- package/lib/hooks/use-portal.js.map +1 -1
- package/lib/index.js +44 -45
- package/lib/index.js.map +1 -1
- package/lib/system-components/EditorMode/BlazeLogo.js +75 -0
- package/lib/system-components/EditorMode/BlazeLogo.js.map +1 -0
- package/lib/system-components/EditorMode/PbWrapper.js +42 -0
- package/lib/system-components/EditorMode/PbWrapper.js.map +1 -0
- package/lib/system-components/EditorMode/constants.js +9 -0
- package/lib/system-components/EditorMode/constants.js.map +1 -0
- package/lib/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js +100 -0
- package/lib/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js.map +1 -0
- package/lib/system-components/EditorMode/helpers/check-is-over-blaze-icon.js +25 -0
- package/lib/system-components/EditorMode/helpers/check-is-over-blaze-icon.js.map +1 -0
- package/lib/system-components/index.js +11 -0
- package/lib/system-components/index.js.map +1 -0
- package/lib/translations.js +4 -5
- package/lib/translations.js.map +1 -1
- package/lib/utils/component-map.js +12 -18
- package/lib/utils/component-map.js.map +1 -1
- package/lib/utils/get-class-modifiers.js +43 -55
- package/lib/utils/get-class-modifiers.js.map +1 -1
- package/lib/utils/get-image-data.js +7 -15
- package/lib/utils/get-image-data.js.map +1 -1
- package/lib/utils/get-props-to-display-modifiers.js +5 -10
- package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib/utils/index.js +12 -13
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/is-object-empty.js +1 -3
- package/lib/utils/is-object-empty.js.map +1 -1
- package/lib/utils/variant-handler.js +8 -15
- package/lib/utils/variant-handler.js.map +1 -1
- package/lib/variants/FloatingSideButton/index.js +7 -19
- package/lib/variants/FloatingSideButton/index.js.map +1 -1
- package/lib/variants/HeroImage/index.js +7 -19
- package/lib/variants/HeroImage/index.js.map +1 -1
- package/lib/variants/Infographic/Infographic.js +10 -10
- package/lib/variants/Infographic/Infographic.js.map +1 -1
- package/lib/variants/Infographic/index.js +7 -30
- package/lib/variants/Infographic/index.js.map +1 -1
- package/lib/variants/Infographic/useInfographic.js +16 -29
- package/lib/variants/Infographic/useInfographic.js.map +1 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js +49 -74
- package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -1
- package/lib/variants/LiveBlogList/index.js +9 -32
- package/lib/variants/LiveBlogList/index.js.map +1 -1
- package/lib/variants/LongformGallery/LongformGallery.js +28 -34
- package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
- package/lib/variants/LongformGallery/LongformGalleryImage.js +34 -39
- package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
- package/lib/variants/LongformGallery/constants.js +11 -7
- package/lib/variants/LongformGallery/constants.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/index.js +6 -7
- package/lib/variants/LongformGallery/helpers/index.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/parseImageData.js +11 -20
- package/lib/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/separateImages.js +9 -13
- package/lib/variants/LongformGallery/helpers/separateImages.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/shouldSkip.js +3 -7
- package/lib/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
- package/lib/variants/LongformGallery/index.js +9 -32
- package/lib/variants/LongformGallery/index.js.map +1 -1
- package/lib/variants/LongformGallery/useLongformGallery.js +36 -41
- package/lib/variants/LongformGallery/useLongformGallery.js.map +1 -1
- package/lib/variants/LongformRow/index.js +7 -19
- package/lib/variants/LongformRow/index.js.map +1 -1
- package/lib/variants/ParallaxImageTextRight/index.js +8 -20
- package/lib/variants/ParallaxImageTextRight/index.js.map +1 -1
- package/lib/variants/SlideSummary/SlideSummary.js +10 -9
- package/lib/variants/SlideSummary/SlideSummary.js.map +1 -1
- package/lib/variants/SlideSummary/index.js +7 -30
- package/lib/variants/SlideSummary/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js +30 -37
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +15 -15
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js +2 -3
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js +46 -46
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/index.js +7 -30
- package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js +25 -37
- package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
- package/lib/variants/index.js +11 -12
- package/lib/variants/index.js.map +1 -1
- package/lib-es/HOC/recreateOnNavigation.js.map +1 -1
- package/lib-es/HOC/withTitle.js +1 -1
- package/lib-es/HOC/withTitle.js.map +1 -1
- package/lib-es/application/query/index.js.map +1 -1
- package/lib-es/components/BackToTop/BackToTop.js +2 -2
- package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
- package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
- package/lib-es/components/Banner/Banner.js.map +1 -1
- package/lib-es/components/Banner/BannerRender.js.map +1 -1
- package/lib-es/components/Banner/helpers.js.map +1 -1
- package/lib-es/components/Banner/index.js +1 -1
- package/lib-es/components/Banner/index.js.map +1 -1
- package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib-es/components/Button.js.map +1 -1
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/Card/CardsFactory.js.map +1 -1
- package/lib-es/components/Card/CardsRender.js +16 -6
- package/lib-es/components/Card/CardsRender.js.map +1 -1
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib-es/components/Carousel/Carousel.js +39 -9
- package/lib-es/components/Carousel/Carousel.js.map +1 -1
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js +2 -1
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib-es/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroup.js +22 -5
- package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroupAccordion.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroupTabs.js +0 -1
- package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryFactory.js +3 -2
- package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js +5 -5
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- 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.map +1 -1
- package/lib-es/components/DataSummary/helpers/index.js +2 -1
- package/lib-es/components/DataSummary/helpers/index.js.map +1 -1
- package/lib-es/components/EmailConfirm/EmailConfirm.js +4 -4
- package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
- package/lib-es/components/ErrorMessage/index.js +1 -1
- package/lib-es/components/ErrorMessage/index.js.map +1 -1
- package/lib-es/components/Iframe/Iframe.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js +5 -5
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/NavButton.js +2 -2
- package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/index.js +1 -1
- package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib-es/components/Image/Image.js.map +1 -1
- package/lib-es/components/Image/ImageFactory.js.map +1 -1
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib-es/components/Layout/Layout.js +14 -5
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/Layout/LayoutFactory.js +1 -1
- package/lib-es/components/Layout/LayoutFactory.js.map +1 -1
- package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib-es/components/LazyImage/index.js +1 -1
- package/lib-es/components/LazyImage/index.js.map +1 -1
- package/lib-es/components/List/ListBuilder.js +1 -1
- package/lib-es/components/List/ListBuilder.js.map +1 -1
- package/lib-es/components/List/ListFactory.js.map +1 -1
- package/lib-es/components/List/ListRender.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib-es/components/List/components/Pagination/LoadMore.js +2 -2
- package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib-es/components/List/helpers/build-query-booster.js +9 -6
- package/lib-es/components/List/helpers/build-query-booster.js.map +1 -1
- package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib-es/components/List/helpers/get-list-query.js.map +1 -1
- package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib-es/components/Loading/Loading.js.map +1 -1
- package/lib-es/components/Loading/index.js +1 -1
- package/lib-es/components/Loading/index.js.map +1 -1
- package/lib-es/components/Menu/Menu.js +1 -4
- package/lib-es/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/Menu/MenuContext.js +1 -2
- package/lib-es/components/Menu/MenuContext.js.map +1 -1
- package/lib-es/components/MenuItem/MenuItemRender.js +11 -25
- package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib-es/components/MenuItem/helpers/index.js +1 -3
- package/lib-es/components/MenuItem/helpers/index.js.map +1 -1
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js +14 -2
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -1
- package/lib-es/components/ModalAdapter/ModalAdapter.js +1 -1
- package/lib-es/components/ModalAdapter/ModalAdapter.js.map +1 -1
- package/lib-es/components/ModalAdapter/index.js +1 -1
- package/lib-es/components/ModalAdapter/index.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContent.js +8 -2
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentResults.js +2 -1
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
- package/lib-es/components/SearchFilter/constants.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-list-name-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-new-url.js +3 -2
- package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
- package/lib-es/components/Video/Video.js.map +1 -1
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib-es/components/Video/providers/get-provider.js +5 -5
- package/lib-es/components/Video/providers/get-provider.js.map +1 -1
- package/lib-es/components/Wrapper.js +2 -2
- package/lib-es/components/Wrapper.js.map +1 -1
- package/lib-es/components/index.js +30 -30
- package/lib-es/components/index.js.map +1 -1
- package/lib-es/constants/componentsDefaultValues.js.map +1 -1
- package/lib-es/constants/index.js.map +1 -1
- package/lib-es/helpers/build-az-filter.js.map +1 -1
- package/lib-es/helpers/build-filters-query.js.map +1 -1
- package/lib-es/helpers/build-inherited-filters.js.map +1 -1
- package/lib-es/helpers/build-props-query.js.map +1 -1
- package/lib-es/helpers/build-query-fields.js.map +1 -1
- package/lib-es/helpers/build-query-key.js.map +1 -1
- package/lib-es/helpers/build-raw-query-base.js.map +1 -1
- package/lib-es/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib-es/helpers/build-search-values-checkbox-select.js +1 -1
- package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib-es/helpers/build-sort-values.js.map +1 -1
- package/lib-es/helpers/get-component-id.js +1 -1
- package/lib-es/helpers/get-component-id.js.map +1 -1
- package/lib-es/helpers/get-current-offset.js +1 -1
- package/lib-es/helpers/get-current-offset.js.map +1 -1
- 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-display-count-data.js.map +1 -1
- package/lib-es/helpers/get-entity-data.js.map +1 -1
- package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
- package/lib-es/helpers/get-image-ids.js +2 -0
- package/lib-es/helpers/get-image-ids.js.map +1 -1
- package/lib-es/helpers/get-inherited-filters.js.map +1 -1
- package/lib-es/helpers/get-modifiers.js.map +1 -1
- package/lib-es/helpers/get-pagination-index.js.map +1 -1
- package/lib-es/helpers/get-query-props.js.map +1 -1
- package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib-es/helpers/index.js +1 -0
- package/lib-es/helpers/index.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
- package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib-es/helpers/process-data-summary-value.js +1 -1
- package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib-es/hooks/helpers/RenderComponent.js +14 -2
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib-es/hooks/helpers/StoreImages.js +2 -2
- package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
- package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
- package/lib-es/hooks/helpers/inject-textblock-banners.js +1 -1
- package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
- package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
- package/lib-es/hooks/index.js +1 -0
- package/lib-es/hooks/index.js.map +1 -1
- 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.map +1 -1
- package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
- package/lib-es/hooks/use-get-image-id-from-relation.js +11 -4
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib-es/hooks/use-page-builder.js +1 -1
- package/lib-es/hooks/use-page-builder.js.map +1 -1
- 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/utils/component-map.js.map +1 -1
- package/lib-es/utils/get-class-modifiers.js.map +1 -1
- package/lib-es/utils/variant-handler.js.map +1 -1
- package/lib-es/variants/Infographic/index.js +1 -1
- package/lib-es/variants/Infographic/index.js.map +1 -1
- package/lib-es/variants/Infographic/useInfographic.js.map +1 -1
- package/lib-es/variants/LiveBlogList/LiveBlogList.js.map +1 -1
- package/lib-es/variants/LiveBlogList/index.js +1 -1
- package/lib-es/variants/LiveBlogList/index.js.map +1 -1
- package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -1
- package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
- package/lib-es/variants/LongformGallery/constants.js.map +1 -1
- package/lib-es/variants/LongformGallery/index.js +1 -1
- package/lib-es/variants/LongformGallery/index.js.map +1 -1
- package/lib-es/variants/SlideSummary/index.js +1 -1
- package/lib-es/variants/SlideSummary/index.js.map +1 -1
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
- package/lib-es/variants/ThumbnailCarousel/index.js +1 -1
- package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -1
- package/package.json +29 -30
- package/src/HOC/recreateOnNavigation.js +3 -3
- package/src/HOC/withTitle.js +5 -5
- package/src/components/BackToTop/BackToTop.js +10 -15
- package/src/components/Banner/BannerRender.js +0 -2
- package/src/components/Breadcrumb/Breadcrumb.js +5 -1
- package/src/components/Button.js +3 -6
- package/src/components/Card/CardsFactory.js +8 -7
- package/src/components/Card/CardsRender.js +28 -13
- package/src/components/Carousel/Carousel.js +46 -9
- package/src/components/Carousel/CarouselImage/CarouselImage.js +3 -1
- package/src/components/CarouselWrapper/DefaultCarousel.js +20 -26
- package/src/components/ContentGroup/ContentGroup.js +21 -7
- package/src/components/ContentGroup/ContentGroupAccordion.js +5 -8
- package/src/components/ContentGroup/ContentGroupTabs.js +4 -8
- package/src/components/DataSummary/DataSummaryFactory.js +4 -2
- package/src/components/DataSummary/DataSummaryTypes/index.js +14 -10
- package/src/components/DataSummary/helpers/get-record-id.js +14 -0
- package/src/components/DataSummary/helpers/index.js +3 -1
- package/src/components/EmailConfirm/EmailConfirm.js +9 -11
- package/src/components/ErrorMessage/index.js +2 -2
- package/src/components/Image/GlobalLightbox/GlobalLightbox.js +76 -80
- package/src/components/Image/GlobalLightbox/NavButton.js +12 -15
- package/src/components/Image/GlobalLightbox/index.js +2 -2
- package/src/components/Image/Image.js +6 -4
- package/src/components/Image/ImageFactory.js +5 -5
- package/src/components/ItemList/hooks/use-item-list-id.js +10 -13
- package/src/components/Layout/Layout.js +14 -3
- package/src/components/Layout/LayoutFactory.js +2 -2
- package/src/components/Layout/LayoutWithStickyTimer.js +11 -14
- package/src/components/List/ListBuilder.js +1 -1
- package/src/components/List/ListFactory.js +10 -11
- package/src/components/List/ListRender.js +8 -6
- package/src/components/List/components/Full/FullRenderItem.js +3 -4
- package/src/components/List/components/Pagination/ListPagination.js +3 -6
- package/src/components/List/components/Pagination/LoadMore.js +7 -9
- package/src/components/List/helpers/build-query-booster.js +12 -6
- package/src/components/List/helpers/sort-aggs.js +1 -2
- package/src/components/Menu/Menu.js +13 -19
- package/src/components/Menu/MenuContext.js +1 -1
- package/src/components/MenuItem/MenuItemRender.js +18 -44
- package/src/components/MenuItem/helpers/index.js +1 -3
- package/src/components/MenuItem/helpers/inject-helper-into-template.js +12 -2
- package/src/components/ModalAdapter/index.js +2 -2
- package/src/components/SearchContent/SearchContent.js +37 -37
- package/src/components/SearchContent/SearchContentResults.js +1 -1
- package/src/components/SearchFilter/SearchFilter/SearchFilter.js +15 -19
- package/src/components/SearchFilter/helpers/build-new-url.js +3 -2
- package/src/components/Video/providers/Vimeo/VimeoProvider.js +19 -22
- package/src/components/Video/providers/YouTube/YoutubeEmbeded.js +58 -64
- package/src/components/Video/providers/get-provider.js +4 -4
- package/src/components/Wrapper.js +5 -7
- package/src/components/index.js +20 -20
- package/src/constants/index.js +2 -1
- package/src/helpers/build-search-values-checkbox-select.js +1 -1
- package/src/helpers/get-component-id.js +1 -1
- package/src/helpers/get-current-offset.js +1 -1
- package/src/helpers/get-custom-html-properties.js +11 -0
- package/src/helpers/get-image-ids.js +3 -0
- package/src/helpers/get-wrapped-value-with-link.js +1 -1
- package/src/helpers/index.js +1 -0
- package/src/helpers/remove-unwanted-characters.js +1 -4
- package/src/hooks/helpers/RenderComponent.js +5 -0
- package/src/hooks/helpers/buildPBComponents.js +2 -4
- package/src/hooks/helpers/get-components-to-insert-by-type.js +3 -1
- package/src/hooks/helpers/inject-textblock-banners.js +2 -8
- package/src/hooks/index.js +1 -0
- package/src/hooks/use-app-event-hook.js +34 -0
- package/src/hooks/use-check-mobile-screen.js +5 -8
- package/src/hooks/use-get-entity-schema.js +5 -1
- package/src/hooks/use-get-image-id-from-relation.js +16 -4
- package/src/hooks/use-page-builder.js +9 -12
- package/src/system-components/EditorMode/BlazeLogo.js +48 -0
- package/src/system-components/EditorMode/PbWrapper.js +27 -0
- package/src/system-components/EditorMode/constants.js +2 -0
- package/src/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js +101 -0
- package/src/system-components/EditorMode/helpers/check-is-over-blaze-icon.js +24 -0
- package/src/system-components/index.js +3 -0
- package/src/variants/Infographic/index.js +2 -2
- package/src/variants/LiveBlogList/LiveBlogList.js +24 -30
- package/src/variants/LiveBlogList/index.js +2 -2
- package/src/variants/LongformGallery/LongformGallery.js +2 -8
- package/src/variants/LongformGallery/index.js +2 -2
- package/src/variants/SlideSummary/index.js +2 -2
- package/src/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +2 -3
- package/src/variants/ThumbnailCarousel/index.js +2 -2
- package/CHANGELOG.md +0 -2524
- package/babel.config.js +0 -3
- package/example.env +0 -4
- package/jest.config.js +0 -5
- package/lib/components/MenuItem/helpers/has-active-child.js +0 -19
- package/lib/components/MenuItem/helpers/has-active-child.js.map +0 -1
- package/lib/components/MenuItem/helpers/isUrlPathMatch.js +0 -18
- package/lib/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
- package/lib-es/components/MenuItem/helpers/has-active-child.js +0 -5
- package/lib-es/components/MenuItem/helpers/has-active-child.js.map +0 -1
- package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js +0 -8
- package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
- package/src/components/MenuItem/helpers/has-active-child.js +0 -10
- package/src/components/MenuItem/helpers/isUrlPathMatch.js +0 -10
- 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 -50
- package/tests/unit/src/Layout/Layout.test.js +0 -119
- 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 -49
- 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 -80
- 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 -244
- package/tests/unit/src/components/BlazeLink.test.js +0 -71
- package/tests/unit/src/components/Breadcrumb/Breadcrumb.test.js +0 -106
- package/tests/unit/src/components/Breadcrumb/__snapshots__/Breadcrumb.test.js.snap +0 -85
- package/tests/unit/src/components/Button.test.js +0 -143
- package/tests/unit/src/components/Card/Card.test.js +0 -229
- package/tests/unit/src/components/Card/CardContainer.test.js +0 -62
- 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 -196
- package/tests/unit/src/components/Carousel/Carousel.test.js +0 -114
- package/tests/unit/src/components/Carousel/CarouselImage/CarouselImage.test.js +0 -48
- 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 -73
- package/tests/unit/src/components/Carousel/CarouselRender/__snapshots__/CarouselRender.test.js.snap +0 -3
- package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +0 -94
- 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 -46
- 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 -46
- package/tests/unit/src/components/ContentGroup/ContentGroupAccordion.test.js +0 -283
- package/tests/unit/src/components/ContentGroup/ContentGroupTabs.test.js +0 -32
- 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 -30
- 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 -11
- package/tests/unit/src/components/DataSummary/__snapshots__/DataSummaryRender.test.js.snap +0 -67
- 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 -52
- 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-value-from-array.test.js +0 -46
- 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 -40
- package/tests/unit/src/components/DataSummary/mockData.js +0 -47
- 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 -13
- 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 -120
- 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 -68
- 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 -53
- 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 -30
- 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 -58
- package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +0 -114
- 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/constants.js +0 -73
- package/tests/unit/src/components/MenuItem/helpers/has-active-child.test.js +0 -35
- package/tests/unit/src/components/MenuItem/helpers/inject-helper-into-template.test.js +0 -44
- package/tests/unit/src/components/MenuItem/helpers/is-url-path-match.test.js +0 -53
- 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/PlaceholderIcon/__snapshots__/index.test.js.snap +0 -87
- package/tests/unit/src/components/PlaceholderIcon/index.test.js +0 -20
- package/tests/unit/src/components/SearchContent/SearchContent.test.js +0 -57
- 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 -341
- 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 -31
- 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 -40
- 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 -27
- 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-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 -80
- 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 -71
- 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-sync-evet-hook.test.js +0 -70
- package/tests/unit/src/hooks/use-check-mobile-screen.test.js +0 -40
- 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 -92
- package/tests/unit/src/hooks/use-get-images.test.js +0 -165
- package/tests/unit/src/hooks/use-get-single-entity-schema.test.js +0 -78
- package/tests/unit/src/hooks/use-page-builder.test.js +0 -48
- 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
package/tests/helpers/mocks.js
DELETED
|
@@ -1,2494 +0,0 @@
|
|
|
1
|
-
import { gql } from '@apollo/client';
|
|
2
|
-
import {
|
|
3
|
-
getSingleEntitySchema,
|
|
4
|
-
generateSingleItemQuery,
|
|
5
|
-
getSearchPublishedContent,
|
|
6
|
-
getCount,
|
|
7
|
-
getMultipleSchema
|
|
8
|
-
} from '../../src/application/query';
|
|
9
|
-
import {
|
|
10
|
-
GET_BANNER,
|
|
11
|
-
BANNER_QUERY_PROPS,
|
|
12
|
-
COUNT_CONTENT_HIERARCHIES,
|
|
13
|
-
PUBLISHED
|
|
14
|
-
} from '../../src/constants';
|
|
15
|
-
|
|
16
|
-
const DATE_TIME_OBJECT = 'date-time-object';
|
|
17
|
-
const SEARCH_FILTER_SEARCH_EXHIBITORS_STRING = 'searchfilter-search-exhibitors';
|
|
18
|
-
const TEXT_SEARCH_STRING = 'text-search';
|
|
19
|
-
const GTM_CLASSNAME = 'gtm-classname';
|
|
20
|
-
|
|
21
|
-
const MOCKED_SCHEMA_FOR_FILTERS = {
|
|
22
|
-
identifier: 'page',
|
|
23
|
-
dynamicProperties: {
|
|
24
|
-
dynamicProp: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
searchable: true
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
relations: [
|
|
30
|
-
{
|
|
31
|
-
relationType: 'hasOne',
|
|
32
|
-
entityIdentifier: 'category',
|
|
33
|
-
foreignKey: 'categoryId',
|
|
34
|
-
localField: 'category',
|
|
35
|
-
description: 'Category',
|
|
36
|
-
showInForm: true,
|
|
37
|
-
label: 'Category',
|
|
38
|
-
formFieldType: 'relationStandard',
|
|
39
|
-
formPriority: 1,
|
|
40
|
-
searchable: true,
|
|
41
|
-
onDeleteAction: 'unset'
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
relationType: 'hasOne',
|
|
45
|
-
entityIdentifier: 'yachts',
|
|
46
|
-
foreignKey: 'yachtId',
|
|
47
|
-
localField: 'yacht',
|
|
48
|
-
description: 'Yacht',
|
|
49
|
-
label: 'Yacht',
|
|
50
|
-
showInForm: true,
|
|
51
|
-
displayFormName: 'Yacht',
|
|
52
|
-
formFieldType: 'relationStandard',
|
|
53
|
-
formPriority: 1.1,
|
|
54
|
-
searchable: false
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
relationType: 'hasOne',
|
|
58
|
-
entityIdentifierKey: 'parentEntity',
|
|
59
|
-
allowedInterface: 'content/content',
|
|
60
|
-
foreignKey: 'parentId',
|
|
61
|
-
localField: 'parent',
|
|
62
|
-
description: 'Parent record',
|
|
63
|
-
showInForm: true,
|
|
64
|
-
label: 'Parent',
|
|
65
|
-
formFieldType: 'relationDynamic',
|
|
66
|
-
formPriority: 2
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
relationType: 'hasMany',
|
|
70
|
-
entityIdentifier: 'tag',
|
|
71
|
-
foreignKey: 'tagIds',
|
|
72
|
-
localField: 'tags',
|
|
73
|
-
description: 'Tags',
|
|
74
|
-
showInForm: true,
|
|
75
|
-
label: 'Tags',
|
|
76
|
-
formFieldType: 'relationStandard',
|
|
77
|
-
formPriority: 3,
|
|
78
|
-
searchable: true,
|
|
79
|
-
onDeleteAction: 'unset'
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
relationType: 'hasMany',
|
|
83
|
-
entityIdentifier: 'page',
|
|
84
|
-
foreignKey: 'relatedPageIds',
|
|
85
|
-
localField: 'relatedPages',
|
|
86
|
-
description: 'Related pages',
|
|
87
|
-
label: 'Related Profiles',
|
|
88
|
-
showInForm: true,
|
|
89
|
-
displayFormName: 'Related Profiles',
|
|
90
|
-
formPriority: 3.11,
|
|
91
|
-
formFieldType: 'relationStandard',
|
|
92
|
-
searchable: false
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
relationType: 'hasMany',
|
|
96
|
-
entityIdentifier: 'profile',
|
|
97
|
-
foreignKey: 'builderProfileIds',
|
|
98
|
-
localField: 'builderProfiles',
|
|
99
|
-
description: 'Builder Profiles',
|
|
100
|
-
label: 'Builder Profiles',
|
|
101
|
-
showInForm: true,
|
|
102
|
-
displayFormName: 'Builder Profiles',
|
|
103
|
-
formPriority: 3.11,
|
|
104
|
-
formFieldType: 'relationStandard',
|
|
105
|
-
searchable: false
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
relationType: 'hasMany',
|
|
109
|
-
entityIdentifier: 'yacht_category',
|
|
110
|
-
foreignKey: 'yachtCategoryIds',
|
|
111
|
-
localField: 'yachtCategories',
|
|
112
|
-
description: 'Yacht categories',
|
|
113
|
-
label: 'Yacht categories',
|
|
114
|
-
showInForm: true,
|
|
115
|
-
displayFormName: 'Yacht categories',
|
|
116
|
-
formFieldType: 'relationStandard',
|
|
117
|
-
formPriority: 3.17,
|
|
118
|
-
searchable: true
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
relationType: 'hasMany',
|
|
122
|
-
entityIdentifier: 'published_profile',
|
|
123
|
-
foreignKey: 'builderProfileIds',
|
|
124
|
-
localField: 'publishedBuilderProfiles',
|
|
125
|
-
searchable: true
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
relationType: 'hasMany',
|
|
129
|
-
entityIdentifier: 'published_profile',
|
|
130
|
-
foreignKey: 'exteriorDesignerProfileIds',
|
|
131
|
-
localField: 'publishedExteriorDesignerProfiles',
|
|
132
|
-
searchable: true
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
relationType: 'hasMany',
|
|
136
|
-
entityIdentifier: 'published_profile',
|
|
137
|
-
foreignKey: 'navalArchitectProfileIds',
|
|
138
|
-
localField: 'publishedNavalArchitectProfiles',
|
|
139
|
-
searchable: true
|
|
140
|
-
}
|
|
141
|
-
],
|
|
142
|
-
properties: {
|
|
143
|
-
name: {
|
|
144
|
-
type: 'string',
|
|
145
|
-
label: 'Name',
|
|
146
|
-
isNotEmpty: true,
|
|
147
|
-
showInListing: true,
|
|
148
|
-
showInForm: true,
|
|
149
|
-
formFieldType: 'text',
|
|
150
|
-
formPriority: 1,
|
|
151
|
-
searchable: true
|
|
152
|
-
},
|
|
153
|
-
metaTitle: {
|
|
154
|
-
type: 'string',
|
|
155
|
-
label: 'Meta title',
|
|
156
|
-
showInForm: true,
|
|
157
|
-
formFieldType: 'text',
|
|
158
|
-
formPriority: 3,
|
|
159
|
-
searchable: true
|
|
160
|
-
},
|
|
161
|
-
metaDescription: {
|
|
162
|
-
type: 'string',
|
|
163
|
-
showInForm: true,
|
|
164
|
-
label: 'Meta description',
|
|
165
|
-
formFieldType: 'textarea',
|
|
166
|
-
formPriority: 4,
|
|
167
|
-
searchable: true
|
|
168
|
-
},
|
|
169
|
-
pageBuilder: {
|
|
170
|
-
type: 'array',
|
|
171
|
-
showInListing: false,
|
|
172
|
-
showInForm: true,
|
|
173
|
-
searchable: true,
|
|
174
|
-
label: 'Page builder',
|
|
175
|
-
formFieldType: 'pageBuilder',
|
|
176
|
-
formPriority: 8,
|
|
177
|
-
description:
|
|
178
|
-
"Page builder components. Array items should match the format of '#/definitions/page-builder/component'",
|
|
179
|
-
items: {
|
|
180
|
-
type: 'object',
|
|
181
|
-
additionalProperties: true
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
parentEntity: {
|
|
186
|
-
type: 'string'
|
|
187
|
-
},
|
|
188
|
-
userId: {
|
|
189
|
-
type: 'string',
|
|
190
|
-
relation: {
|
|
191
|
-
relationType: 'hasOne',
|
|
192
|
-
entityIdentifier: 'user',
|
|
193
|
-
foreignKey: 'userId',
|
|
194
|
-
localField: 'user',
|
|
195
|
-
description: 'User who created record',
|
|
196
|
-
label: 'Created by',
|
|
197
|
-
searchable: false,
|
|
198
|
-
showInForm: true,
|
|
199
|
-
formFieldType: 'relationStandard',
|
|
200
|
-
formPriority: 4
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
categoryId: {
|
|
204
|
-
type: 'string',
|
|
205
|
-
description: 'Category id',
|
|
206
|
-
searchable: true,
|
|
207
|
-
relation: {
|
|
208
|
-
relationType: 'hasOne',
|
|
209
|
-
entityIdentifier: 'category',
|
|
210
|
-
foreignKey: 'categoryId',
|
|
211
|
-
localField: 'category',
|
|
212
|
-
description: 'Category',
|
|
213
|
-
showInForm: true,
|
|
214
|
-
label: 'Category',
|
|
215
|
-
formFieldType: 'relationStandard',
|
|
216
|
-
formPriority: 1,
|
|
217
|
-
searchable: true,
|
|
218
|
-
onDeleteAction: 'unset'
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
yachtCategoryIds: {
|
|
222
|
-
type: 'array',
|
|
223
|
-
items: {
|
|
224
|
-
type: 'string'
|
|
225
|
-
},
|
|
226
|
-
relation: {
|
|
227
|
-
relationType: 'hasMany',
|
|
228
|
-
entityIdentifier: 'yacht_category',
|
|
229
|
-
foreignKey: 'yachtCategoryIds',
|
|
230
|
-
localField: 'yachtCategories',
|
|
231
|
-
description: 'Yacht categories',
|
|
232
|
-
label: 'Yacht categories',
|
|
233
|
-
showInForm: true,
|
|
234
|
-
displayFormName: 'Yacht categories',
|
|
235
|
-
formFieldType: 'relationStandard',
|
|
236
|
-
formPriority: 3.17,
|
|
237
|
-
searchable: true
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
yachtId: {
|
|
241
|
-
type: ['string', 'null'],
|
|
242
|
-
description: 'Yacht id',
|
|
243
|
-
searchable: true,
|
|
244
|
-
relation: {
|
|
245
|
-
relationType: 'hasOne',
|
|
246
|
-
entityIdentifier: 'yachts',
|
|
247
|
-
foreignKey: 'yachtId',
|
|
248
|
-
localField: 'yacht',
|
|
249
|
-
description: 'Yacht',
|
|
250
|
-
label: 'Yacht',
|
|
251
|
-
showInForm: true,
|
|
252
|
-
displayFormName: 'Yacht',
|
|
253
|
-
formFieldType: 'relationStandard',
|
|
254
|
-
formPriority: 1.1,
|
|
255
|
-
searchable: false
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
exhibitorIds: {
|
|
259
|
-
type: 'array',
|
|
260
|
-
searchable: true,
|
|
261
|
-
items: {
|
|
262
|
-
type: 'string'
|
|
263
|
-
},
|
|
264
|
-
relation: {
|
|
265
|
-
relationType: 'hasMany',
|
|
266
|
-
entityIdentifier: 'exhibitor',
|
|
267
|
-
foreignKey: 'exhibitorIds',
|
|
268
|
-
localField: 'exhibitors',
|
|
269
|
-
description: 'Exhibitors',
|
|
270
|
-
label: 'Exhibitors',
|
|
271
|
-
showInForm: true,
|
|
272
|
-
displayFormName: 'Exhibitors',
|
|
273
|
-
formFieldType: 'relationStandard',
|
|
274
|
-
formPriority: 4.1,
|
|
275
|
-
searchable: false
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
const PAGE_BUILDER_MOCK = [
|
|
282
|
-
{
|
|
283
|
-
id: '32832932',
|
|
284
|
-
name: 'Home page',
|
|
285
|
-
slug: '/listing/example',
|
|
286
|
-
entity: 'product',
|
|
287
|
-
pageBuilder: [
|
|
288
|
-
{
|
|
289
|
-
type: 'Row',
|
|
290
|
-
id: 'row-1',
|
|
291
|
-
settings: {
|
|
292
|
-
modifiers: 'row--wide',
|
|
293
|
-
title: 'This is row title'
|
|
294
|
-
},
|
|
295
|
-
items: [
|
|
296
|
-
{
|
|
297
|
-
type: 'Banner',
|
|
298
|
-
id: 'row-1-banner-1',
|
|
299
|
-
settings: {
|
|
300
|
-
modifiers: 'banner--leaderboard banner--header'
|
|
301
|
-
},
|
|
302
|
-
items: [
|
|
303
|
-
{
|
|
304
|
-
type: 'Row',
|
|
305
|
-
settings: {
|
|
306
|
-
modifiers: 'row-nested'
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
]
|
|
310
|
-
}
|
|
311
|
-
]
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
type: 'Hero',
|
|
315
|
-
id: '2',
|
|
316
|
-
settings: {
|
|
317
|
-
text: 'Title',
|
|
318
|
-
imageId: '123'
|
|
319
|
-
},
|
|
320
|
-
items: []
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
type: 'Gallery',
|
|
324
|
-
id: '3',
|
|
325
|
-
settings: {
|
|
326
|
-
text: 'Title',
|
|
327
|
-
imageIds: ['123', '456']
|
|
328
|
-
},
|
|
329
|
-
items: []
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
type: 'Row',
|
|
333
|
-
id: '4',
|
|
334
|
-
settings: {
|
|
335
|
-
width: 'full',
|
|
336
|
-
limit: 6,
|
|
337
|
-
imageId: '123'
|
|
338
|
-
},
|
|
339
|
-
items: [
|
|
340
|
-
{
|
|
341
|
-
type: 'Card',
|
|
342
|
-
settings: {
|
|
343
|
-
items: [{}, {}],
|
|
344
|
-
title: 'Title',
|
|
345
|
-
modifiers: 'card--basic card--wide',
|
|
346
|
-
entityType: 'yachts'
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
type: 'Hero',
|
|
351
|
-
id: '2',
|
|
352
|
-
settings: {
|
|
353
|
-
text: 'Title',
|
|
354
|
-
imageId: '123'
|
|
355
|
-
},
|
|
356
|
-
items: [
|
|
357
|
-
{
|
|
358
|
-
type: 'Card',
|
|
359
|
-
settings: {
|
|
360
|
-
title: 'Title',
|
|
361
|
-
entityType: 'yachts'
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
]
|
|
365
|
-
}
|
|
366
|
-
]
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
type: 'Button',
|
|
370
|
-
id: '5',
|
|
371
|
-
settings: {},
|
|
372
|
-
items: []
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
type: 'Card',
|
|
376
|
-
settings: {
|
|
377
|
-
title: 'Title',
|
|
378
|
-
entityType: 'yachts'
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
]
|
|
382
|
-
}
|
|
383
|
-
];
|
|
384
|
-
|
|
385
|
-
const PAGE_SCHEMA = {
|
|
386
|
-
id: 'page',
|
|
387
|
-
identifier: 'page',
|
|
388
|
-
properties: {
|
|
389
|
-
id: {
|
|
390
|
-
type: 'string',
|
|
391
|
-
primaryKey: true
|
|
392
|
-
},
|
|
393
|
-
created: {
|
|
394
|
-
type: 'object',
|
|
395
|
-
dataFormat: DATE_TIME_OBJECT,
|
|
396
|
-
searchable: true
|
|
397
|
-
},
|
|
398
|
-
updated: {
|
|
399
|
-
type: 'object',
|
|
400
|
-
dataFormat: DATE_TIME_OBJECT,
|
|
401
|
-
searchable: true
|
|
402
|
-
},
|
|
403
|
-
metaDescription: {
|
|
404
|
-
type: 'string',
|
|
405
|
-
showInForm: true,
|
|
406
|
-
label: 'Meta description',
|
|
407
|
-
formFieldType: 'textarea',
|
|
408
|
-
searchable: true
|
|
409
|
-
},
|
|
410
|
-
name: {
|
|
411
|
-
type: 'string',
|
|
412
|
-
isNotEmpty: true,
|
|
413
|
-
showInListing: true,
|
|
414
|
-
showInForm: true,
|
|
415
|
-
formFieldType: 'text',
|
|
416
|
-
searchable: true,
|
|
417
|
-
label: 'Name'
|
|
418
|
-
},
|
|
419
|
-
metaTitle: {
|
|
420
|
-
type: 'string',
|
|
421
|
-
showInForm: true,
|
|
422
|
-
formFieldType: 'text',
|
|
423
|
-
searchable: true,
|
|
424
|
-
label: 'Meta title'
|
|
425
|
-
},
|
|
426
|
-
featured: {
|
|
427
|
-
type: 'boolean',
|
|
428
|
-
showInForm: true,
|
|
429
|
-
label: 'Featured',
|
|
430
|
-
formFieldType: 'checkbox',
|
|
431
|
-
default: false
|
|
432
|
-
},
|
|
433
|
-
sponsored: {
|
|
434
|
-
type: 'boolean',
|
|
435
|
-
showInForm: true,
|
|
436
|
-
label: 'Sponsored',
|
|
437
|
-
formFieldType: 'checkbox',
|
|
438
|
-
default: false
|
|
439
|
-
},
|
|
440
|
-
parentId: {
|
|
441
|
-
type: 'string'
|
|
442
|
-
},
|
|
443
|
-
parentEntity: {
|
|
444
|
-
type: 'string'
|
|
445
|
-
},
|
|
446
|
-
imageId: {
|
|
447
|
-
label: 'Images',
|
|
448
|
-
type: 'string',
|
|
449
|
-
formFieldType: 'fileUpload',
|
|
450
|
-
showInForm: true
|
|
451
|
-
},
|
|
452
|
-
userId: {
|
|
453
|
-
type: 'string'
|
|
454
|
-
},
|
|
455
|
-
published: {
|
|
456
|
-
type: ['object', 'null'],
|
|
457
|
-
dataFormat: DATE_TIME_OBJECT
|
|
458
|
-
},
|
|
459
|
-
status: {
|
|
460
|
-
type: 'string',
|
|
461
|
-
enum: ['published', 'unpublished'],
|
|
462
|
-
default: 'unpublished'
|
|
463
|
-
},
|
|
464
|
-
pageBuilderTemplateId: {
|
|
465
|
-
type: 'string',
|
|
466
|
-
description: 'Page builder template'
|
|
467
|
-
},
|
|
468
|
-
pageBuilderTemplateChanges: {
|
|
469
|
-
type: 'object',
|
|
470
|
-
showInListing: false,
|
|
471
|
-
showInForm: false,
|
|
472
|
-
searchable: false,
|
|
473
|
-
description:
|
|
474
|
-
'Stores component settings that differ from the template with the component key as the property. This is autogenerated from pageBuilder',
|
|
475
|
-
additionalProperties: true
|
|
476
|
-
},
|
|
477
|
-
pageBuilder: {
|
|
478
|
-
type: 'array',
|
|
479
|
-
showInListing: false,
|
|
480
|
-
showInForm: true,
|
|
481
|
-
searchable: true,
|
|
482
|
-
label: 'Page builder',
|
|
483
|
-
formFieldType: 'pageBuilder',
|
|
484
|
-
description:
|
|
485
|
-
"Page builder components. Array items should match the format of '#/definitions/page-builder/component'",
|
|
486
|
-
items: {
|
|
487
|
-
type: 'object',
|
|
488
|
-
additionalProperties: true
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
tagIds: {
|
|
492
|
-
type: 'array',
|
|
493
|
-
description: 'Tag ids',
|
|
494
|
-
items: {
|
|
495
|
-
type: 'string'
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
categoryId: {
|
|
499
|
-
type: 'string',
|
|
500
|
-
description: 'Category id'
|
|
501
|
-
},
|
|
502
|
-
slug: {
|
|
503
|
-
type: 'string',
|
|
504
|
-
pattern: '^[a-z0-9€_]+(?:[-]{1,2}[a-z0-9€_]+)*$',
|
|
505
|
-
description:
|
|
506
|
-
'Must start with alpha-numeric, underscore or € character and contain only dashes, alpha-numeric, underscore or € characters',
|
|
507
|
-
showInForm: true,
|
|
508
|
-
formFieldType: 'text',
|
|
509
|
-
searchable: true
|
|
510
|
-
},
|
|
511
|
-
canonicalUrl: {
|
|
512
|
-
type: ['string', 'null'],
|
|
513
|
-
format: 'uri-template',
|
|
514
|
-
description: `A canonical tag`,
|
|
515
|
-
showInForm: true,
|
|
516
|
-
label: 'Canonical URL',
|
|
517
|
-
formFieldType: 'text',
|
|
518
|
-
searchable: true
|
|
519
|
-
},
|
|
520
|
-
sitemapPriority: {
|
|
521
|
-
type: ['number', 'null'],
|
|
522
|
-
showInForm: true,
|
|
523
|
-
label: 'Sitemap priority',
|
|
524
|
-
formFieldType: 'number'
|
|
525
|
-
},
|
|
526
|
-
sitemapExclude: {
|
|
527
|
-
type: 'boolean',
|
|
528
|
-
showInForm: true,
|
|
529
|
-
label: 'Exclude from sitemap',
|
|
530
|
-
formFieldType: 'checkbox'
|
|
531
|
-
},
|
|
532
|
-
authorIds: {
|
|
533
|
-
type: 'array',
|
|
534
|
-
description: 'Author ids',
|
|
535
|
-
items: {
|
|
536
|
-
type: 'string'
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
},
|
|
540
|
-
dynamicProperties: {},
|
|
541
|
-
actions: {
|
|
542
|
-
create: 'createPage',
|
|
543
|
-
update: 'updatePage',
|
|
544
|
-
delete: 'deletePage',
|
|
545
|
-
deleteAll: 'deletePages',
|
|
546
|
-
publish: 'publishPage',
|
|
547
|
-
unpublish: 'unpublishPage',
|
|
548
|
-
get: 'getPage',
|
|
549
|
-
getAll: 'getPages',
|
|
550
|
-
countAll: 'countPages',
|
|
551
|
-
getPublished: 'getPublishedPage',
|
|
552
|
-
getAllPublished: 'getPublishedPages',
|
|
553
|
-
countAllPublished: 'countPublishedPages'
|
|
554
|
-
},
|
|
555
|
-
interfaces: [
|
|
556
|
-
'content/content',
|
|
557
|
-
'content/content-base',
|
|
558
|
-
'users/owner',
|
|
559
|
-
'publish/publishable',
|
|
560
|
-
'page-builder/page-builder-template',
|
|
561
|
-
'page-builder/page-builder',
|
|
562
|
-
'tags/has-tags',
|
|
563
|
-
'tags/has-category',
|
|
564
|
-
'urls/url',
|
|
565
|
-
'content-sitemap/sitemap',
|
|
566
|
-
'content-base/has-authors'
|
|
567
|
-
],
|
|
568
|
-
relations: [],
|
|
569
|
-
__typename: 'DataEntitySchemaDefinition'
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
const DATA_SUMMARY_MOCK = [
|
|
573
|
-
{
|
|
574
|
-
request: {
|
|
575
|
-
query: getSingleEntitySchema,
|
|
576
|
-
variables: {
|
|
577
|
-
id: 'page'
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
result: {
|
|
581
|
-
data: {
|
|
582
|
-
getEntitySchema: PAGE_SCHEMA
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
];
|
|
587
|
-
|
|
588
|
-
const DATA_SUMMARY_ERROR_MOCK = [
|
|
589
|
-
{
|
|
590
|
-
request: {
|
|
591
|
-
query: getSingleEntitySchema,
|
|
592
|
-
variables: {
|
|
593
|
-
id: 'page'
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
result: {
|
|
597
|
-
data: {
|
|
598
|
-
getEntitySchema: {
|
|
599
|
-
id: 'page'
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
];
|
|
605
|
-
|
|
606
|
-
const ENTITY_SCHEMA_AS_OBJECT = [
|
|
607
|
-
{
|
|
608
|
-
request: {
|
|
609
|
-
query: getMultipleSchema(['page'])
|
|
610
|
-
},
|
|
611
|
-
result: {
|
|
612
|
-
data: {
|
|
613
|
-
page: PAGE_SCHEMA
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
];
|
|
618
|
-
|
|
619
|
-
const CARD_RENDER_ENTITY_DATA_MOCK = [
|
|
620
|
-
{
|
|
621
|
-
request: {
|
|
622
|
-
query: getMultipleSchema(['page'])
|
|
623
|
-
},
|
|
624
|
-
result: {
|
|
625
|
-
data: {
|
|
626
|
-
page: {
|
|
627
|
-
id: 'page',
|
|
628
|
-
identifier: 'page',
|
|
629
|
-
properties: {
|
|
630
|
-
id: {
|
|
631
|
-
type: 'string',
|
|
632
|
-
primaryKey: true
|
|
633
|
-
},
|
|
634
|
-
created: {
|
|
635
|
-
type: 'object',
|
|
636
|
-
dataFormat: DATE_TIME_OBJECT,
|
|
637
|
-
searchable: true
|
|
638
|
-
},
|
|
639
|
-
updated: {
|
|
640
|
-
type: 'object',
|
|
641
|
-
dataFormat: DATE_TIME_OBJECT,
|
|
642
|
-
searchable: true
|
|
643
|
-
},
|
|
644
|
-
metaDescription: {
|
|
645
|
-
type: 'string',
|
|
646
|
-
showInForm: true,
|
|
647
|
-
label: 'Meta description',
|
|
648
|
-
formFieldType: 'textarea',
|
|
649
|
-
searchable: true
|
|
650
|
-
},
|
|
651
|
-
name: {
|
|
652
|
-
type: 'string',
|
|
653
|
-
isNotEmpty: true,
|
|
654
|
-
showInListing: true,
|
|
655
|
-
showInForm: true,
|
|
656
|
-
formFieldType: 'text',
|
|
657
|
-
searchable: true,
|
|
658
|
-
label: 'Name'
|
|
659
|
-
},
|
|
660
|
-
metaTitle: {
|
|
661
|
-
type: 'string',
|
|
662
|
-
showInForm: true,
|
|
663
|
-
formFieldType: 'text',
|
|
664
|
-
searchable: true,
|
|
665
|
-
label: 'Meta title'
|
|
666
|
-
},
|
|
667
|
-
featured: {
|
|
668
|
-
type: 'boolean',
|
|
669
|
-
showInForm: true,
|
|
670
|
-
label: 'Featured',
|
|
671
|
-
formFieldType: 'checkbox',
|
|
672
|
-
default: false
|
|
673
|
-
},
|
|
674
|
-
sponsored: {
|
|
675
|
-
type: 'boolean',
|
|
676
|
-
showInForm: true,
|
|
677
|
-
label: 'Sponsored',
|
|
678
|
-
formFieldType: 'checkbox',
|
|
679
|
-
default: false
|
|
680
|
-
},
|
|
681
|
-
parentId: {
|
|
682
|
-
type: 'string'
|
|
683
|
-
},
|
|
684
|
-
parentEntity: {
|
|
685
|
-
type: 'string'
|
|
686
|
-
},
|
|
687
|
-
imageId: {
|
|
688
|
-
label: 'Images',
|
|
689
|
-
type: 'string',
|
|
690
|
-
formFieldType: 'fileUpload',
|
|
691
|
-
showInForm: true
|
|
692
|
-
},
|
|
693
|
-
userId: {
|
|
694
|
-
type: 'string'
|
|
695
|
-
},
|
|
696
|
-
published: {
|
|
697
|
-
type: ['object', 'null'],
|
|
698
|
-
dataFormat: DATE_TIME_OBJECT
|
|
699
|
-
},
|
|
700
|
-
status: {
|
|
701
|
-
type: 'string',
|
|
702
|
-
enum: ['published', 'unpublished'],
|
|
703
|
-
default: 'unpublished'
|
|
704
|
-
},
|
|
705
|
-
pageBuilderTemplateId: {
|
|
706
|
-
type: 'string',
|
|
707
|
-
description: 'Page builder template'
|
|
708
|
-
},
|
|
709
|
-
pageBuilderTemplateChanges: {
|
|
710
|
-
type: 'object',
|
|
711
|
-
showInListing: false,
|
|
712
|
-
showInForm: false,
|
|
713
|
-
searchable: false,
|
|
714
|
-
description:
|
|
715
|
-
'Stores component settings that differ from the template with the component key as the property. This is autogenerated from pageBuilder',
|
|
716
|
-
additionalProperties: true
|
|
717
|
-
},
|
|
718
|
-
pageBuilder: {
|
|
719
|
-
type: 'array',
|
|
720
|
-
showInListing: false,
|
|
721
|
-
showInForm: true,
|
|
722
|
-
searchable: true,
|
|
723
|
-
label: 'Page builder',
|
|
724
|
-
formFieldType: 'pageBuilder',
|
|
725
|
-
description:
|
|
726
|
-
"Page builder components. Array items should match the format of '#/definitions/page-builder/component'",
|
|
727
|
-
items: {
|
|
728
|
-
type: 'object',
|
|
729
|
-
additionalProperties: true
|
|
730
|
-
}
|
|
731
|
-
},
|
|
732
|
-
tagIds: {
|
|
733
|
-
type: 'array',
|
|
734
|
-
description: 'Tag ids',
|
|
735
|
-
items: {
|
|
736
|
-
type: 'string'
|
|
737
|
-
}
|
|
738
|
-
},
|
|
739
|
-
categoryId: {
|
|
740
|
-
type: 'string',
|
|
741
|
-
description: 'Category id'
|
|
742
|
-
},
|
|
743
|
-
slug: {
|
|
744
|
-
type: 'string',
|
|
745
|
-
pattern: '^[a-z0-9€_]+(?:[-]{1,2}[a-z0-9€_]+)*$',
|
|
746
|
-
description:
|
|
747
|
-
'Must start with alpha-numeric, underscore or € character and contain only dashes, alpha-numeric, underscore or € characters',
|
|
748
|
-
showInForm: true,
|
|
749
|
-
formFieldType: 'text',
|
|
750
|
-
searchable: true
|
|
751
|
-
},
|
|
752
|
-
canonicalUrl: {
|
|
753
|
-
type: ['string', 'null'],
|
|
754
|
-
format: 'uri-template',
|
|
755
|
-
description: `A canonical tag`,
|
|
756
|
-
showInForm: true,
|
|
757
|
-
label: 'Canonical URL',
|
|
758
|
-
formFieldType: 'text',
|
|
759
|
-
searchable: true
|
|
760
|
-
},
|
|
761
|
-
sitemapPriority: {
|
|
762
|
-
type: ['number', 'null'],
|
|
763
|
-
showInForm: true,
|
|
764
|
-
label: 'Sitemap priority',
|
|
765
|
-
formFieldType: 'number'
|
|
766
|
-
},
|
|
767
|
-
sitemapExclude: {
|
|
768
|
-
type: 'boolean',
|
|
769
|
-
showInForm: true,
|
|
770
|
-
label: 'Exclude from sitemap',
|
|
771
|
-
formFieldType: 'checkbox'
|
|
772
|
-
},
|
|
773
|
-
authorIds: {
|
|
774
|
-
type: 'array',
|
|
775
|
-
description: 'Author ids',
|
|
776
|
-
items: {
|
|
777
|
-
type: 'string'
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
},
|
|
781
|
-
dynamicProperties: {},
|
|
782
|
-
actions: {
|
|
783
|
-
create: 'createPage',
|
|
784
|
-
update: 'updatePage',
|
|
785
|
-
delete: 'deletePage',
|
|
786
|
-
deleteAll: 'deletePages',
|
|
787
|
-
publish: 'publishPage',
|
|
788
|
-
unpublish: 'unpublishPage',
|
|
789
|
-
get: 'getPage',
|
|
790
|
-
getAll: 'getPages',
|
|
791
|
-
countAll: 'countPages',
|
|
792
|
-
getPublished: 'getPublishedPage',
|
|
793
|
-
getAllPublished: 'getPublishedPages',
|
|
794
|
-
countAllPublished: 'countPublishedPages'
|
|
795
|
-
},
|
|
796
|
-
interfaces: [
|
|
797
|
-
'content/content',
|
|
798
|
-
'content/content-base',
|
|
799
|
-
'users/owner',
|
|
800
|
-
'publish/publishable',
|
|
801
|
-
'page-builder/page-builder-template',
|
|
802
|
-
'page-builder/page-builder',
|
|
803
|
-
'tags/has-tags',
|
|
804
|
-
'tags/has-category',
|
|
805
|
-
'urls/url',
|
|
806
|
-
'content-sitemap/sitemap',
|
|
807
|
-
'content-base/has-authors'
|
|
808
|
-
],
|
|
809
|
-
relations: [],
|
|
810
|
-
__typename: ''
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
];
|
|
816
|
-
|
|
817
|
-
const CARD_RENDER_EMPTY_ENTITY_DATA_MOCK = [
|
|
818
|
-
{
|
|
819
|
-
request: {
|
|
820
|
-
query: getSingleEntitySchema,
|
|
821
|
-
variables: {
|
|
822
|
-
id: ''
|
|
823
|
-
}
|
|
824
|
-
},
|
|
825
|
-
result: {
|
|
826
|
-
data: {
|
|
827
|
-
getEntitySchema: {}
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
];
|
|
832
|
-
|
|
833
|
-
const QUERY_PROPS = `results {
|
|
834
|
-
... on PublishedPage {
|
|
835
|
-
id
|
|
836
|
-
name
|
|
837
|
-
url
|
|
838
|
-
metaDescription
|
|
839
|
-
category {
|
|
840
|
-
name
|
|
841
|
-
listingPageId
|
|
842
|
-
listingPageEntity
|
|
843
|
-
publishedListingPage {
|
|
844
|
-
url
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
image {
|
|
848
|
-
url
|
|
849
|
-
data
|
|
850
|
-
}
|
|
851
|
-
__typename
|
|
852
|
-
id
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
total`;
|
|
856
|
-
|
|
857
|
-
const CARD_RECORD = {
|
|
858
|
-
id: 'CARD PAGE ID',
|
|
859
|
-
name: 'Card page',
|
|
860
|
-
url: '/card-page',
|
|
861
|
-
metaDescription: 'Card page meta',
|
|
862
|
-
category: {
|
|
863
|
-
name: 'Card page cat',
|
|
864
|
-
listingPageId: 'Card page Listing ID',
|
|
865
|
-
listingPageEntity: 'page',
|
|
866
|
-
publishedListingPage: {
|
|
867
|
-
url: '/listing-page',
|
|
868
|
-
__typename: 'PublishedPage'
|
|
869
|
-
},
|
|
870
|
-
__typename: 'Category'
|
|
871
|
-
},
|
|
872
|
-
image: {
|
|
873
|
-
url: '/card-image.jpg',
|
|
874
|
-
data: { alt: 'card image alt' },
|
|
875
|
-
__typename: 'File'
|
|
876
|
-
},
|
|
877
|
-
__typename: 'PublishedPage'
|
|
878
|
-
};
|
|
879
|
-
|
|
880
|
-
const CARD_RENDER_SEARCH_PUBLISHED_MOCK = [
|
|
881
|
-
{
|
|
882
|
-
request: {
|
|
883
|
-
query: getSearchPublishedContent(QUERY_PROPS),
|
|
884
|
-
variables: {
|
|
885
|
-
limit: 51,
|
|
886
|
-
offset: 0,
|
|
887
|
-
sort: '',
|
|
888
|
-
rawQueryStringified:
|
|
889
|
-
'{"bool":{"filter":{"bool":{"must":[{"term":{"docType":["published_page"]}}]}}}}'
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
|
-
result: {
|
|
893
|
-
data: {
|
|
894
|
-
searchPublishedContent: {
|
|
895
|
-
results: [CARD_RECORD],
|
|
896
|
-
total: 1,
|
|
897
|
-
__typename: 'SearchPublishedContentReponse'
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
];
|
|
903
|
-
|
|
904
|
-
const WITH_INFINITE_SCROLL_SEARCH_PUBLISHED_MOCK = [
|
|
905
|
-
{
|
|
906
|
-
request: {
|
|
907
|
-
query: getSearchPublishedContent(QUERY_PROPS),
|
|
908
|
-
variables: {
|
|
909
|
-
limit: 50,
|
|
910
|
-
offset: 0,
|
|
911
|
-
rawQueryStringified:
|
|
912
|
-
'{"bool":{"must":[{"bool":{"must":[{"bool":{"should":[]}}]}}],"filter":' +
|
|
913
|
-
'{"bool":{"must":[{"term":{"docType":"published_page"}}]}},"must_not":' +
|
|
914
|
-
'[{"ids":{"values":["itemId"]}}]}}'
|
|
915
|
-
}
|
|
916
|
-
},
|
|
917
|
-
result: {
|
|
918
|
-
data: {
|
|
919
|
-
searchPublishedContent: {
|
|
920
|
-
results: [],
|
|
921
|
-
total: 0
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
];
|
|
927
|
-
|
|
928
|
-
const ENTITY_DATA_MOCK = [
|
|
929
|
-
{
|
|
930
|
-
request: {
|
|
931
|
-
query: generateSingleItemQuery('getPublishedPage', 'id,metaDescription,name,category{name}'),
|
|
932
|
-
variables: {
|
|
933
|
-
id: 'f5fe4d50-1b57-11ea-adb6-af887205bfc6'
|
|
934
|
-
}
|
|
935
|
-
},
|
|
936
|
-
result: {
|
|
937
|
-
data: {
|
|
938
|
-
entityData: {
|
|
939
|
-
id: 'f5fe4d50-1b57-11ea-adb6-af887205bfc6',
|
|
940
|
-
metaDescription: 'aa',
|
|
941
|
-
name: 'page with summaryx',
|
|
942
|
-
category: {
|
|
943
|
-
name: 'cat'
|
|
944
|
-
},
|
|
945
|
-
__typename: 'DataEntitySchemaDefinition'
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
];
|
|
951
|
-
|
|
952
|
-
const ENTITY_DATA_MOCK_ERROR = [
|
|
953
|
-
{
|
|
954
|
-
request: {
|
|
955
|
-
query: generateSingleItemQuery('getPublishedPage', 'id,metaDescription,name,category{name}'),
|
|
956
|
-
variables: {
|
|
957
|
-
id: 'errorId'
|
|
958
|
-
}
|
|
959
|
-
},
|
|
960
|
-
error: new Error('this is an error')
|
|
961
|
-
}
|
|
962
|
-
];
|
|
963
|
-
|
|
964
|
-
const BANNER_MOCK = {
|
|
965
|
-
request: {
|
|
966
|
-
query: generateSingleItemQuery(GET_BANNER, BANNER_QUERY_PROPS),
|
|
967
|
-
variables: {
|
|
968
|
-
id: 'someSizeId'
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
result: {
|
|
972
|
-
data: {
|
|
973
|
-
entityData: {
|
|
974
|
-
sizes: [
|
|
975
|
-
{
|
|
976
|
-
width: 300,
|
|
977
|
-
height: 600,
|
|
978
|
-
viewports: [
|
|
979
|
-
{
|
|
980
|
-
width: 1024,
|
|
981
|
-
height: 768
|
|
982
|
-
}
|
|
983
|
-
]
|
|
984
|
-
}
|
|
985
|
-
],
|
|
986
|
-
__typename: 'Banner'
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
};
|
|
991
|
-
|
|
992
|
-
const COUNT_MOCK = [
|
|
993
|
-
{
|
|
994
|
-
request: {
|
|
995
|
-
query: getCount(COUNT_CONTENT_HIERARCHIES),
|
|
996
|
-
variables: {
|
|
997
|
-
where: {
|
|
998
|
-
parentId: 'id',
|
|
999
|
-
childEntity: {
|
|
1000
|
-
_ilike: `${PUBLISHED}_%`
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
},
|
|
1005
|
-
result: {
|
|
1006
|
-
data: {
|
|
1007
|
-
countContentHierarchies: 0
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
];
|
|
1012
|
-
|
|
1013
|
-
const ITEMS_TO_DISPLAY = [
|
|
1014
|
-
'd6a79240-3c5e-11ea-84c3-99e89d013812',
|
|
1015
|
-
'fae0a8d0-35ed-11ea-9ef3-a10a62235b17',
|
|
1016
|
-
'0c9dfaf0-35ee-11ea-9ef3-a10a62235b17'
|
|
1017
|
-
];
|
|
1018
|
-
|
|
1019
|
-
const MOCKED_ARGS = {
|
|
1020
|
-
docType: 'published_page',
|
|
1021
|
-
operator: 'should',
|
|
1022
|
-
searchValuesText: { must: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }] },
|
|
1023
|
-
searchValuesCheckboxSelectRange: [],
|
|
1024
|
-
searchValuesCheckboxOrEmpty: [],
|
|
1025
|
-
id: 'itemId',
|
|
1026
|
-
itemsToDisplay: [
|
|
1027
|
-
{
|
|
1028
|
-
displayItems: [ITEMS_TO_DISPLAY[0]],
|
|
1029
|
-
id: '13313d20-3d30-11ea-86b3-a97281bccc23'
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
displayItems: [ITEMS_TO_DISPLAY[1]],
|
|
1033
|
-
id: '16224290-3d30-11ea-86b3-a97281bccc23'
|
|
1034
|
-
},
|
|
1035
|
-
{
|
|
1036
|
-
displayItems: [ITEMS_TO_DISPLAY[2]]
|
|
1037
|
-
}
|
|
1038
|
-
]
|
|
1039
|
-
};
|
|
1040
|
-
|
|
1041
|
-
const SEARCH_VALUES_TEXT_EMPTY = { must: [] };
|
|
1042
|
-
|
|
1043
|
-
const SEARCH_VALUES_CHECKBOX_SELECT = [
|
|
1044
|
-
{ match: { metaDescription: 'test' } },
|
|
1045
|
-
{ match: { category: 'cat' } }
|
|
1046
|
-
];
|
|
1047
|
-
|
|
1048
|
-
const AND_OPERATOR = 'must';
|
|
1049
|
-
|
|
1050
|
-
const EXAMPLE_SHOULD_TEXT = [{ match: { pageBuilderIndexed: 'search' } }];
|
|
1051
|
-
const SEARCH_VALUES_TEXT = {
|
|
1052
|
-
should: EXAMPLE_SHOULD_TEXT,
|
|
1053
|
-
must: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }]
|
|
1054
|
-
};
|
|
1055
|
-
|
|
1056
|
-
const SEARCH_PUBLISHED_MOCK = [
|
|
1057
|
-
{
|
|
1058
|
-
request: {
|
|
1059
|
-
query: getSearchPublishedContent('rawResults'),
|
|
1060
|
-
variables: {
|
|
1061
|
-
limit: 0,
|
|
1062
|
-
rawQueryStringified:
|
|
1063
|
-
'{"aggs":{"name":{"terms":{"field":"name.keyword","size":50}}},' +
|
|
1064
|
-
'"size":0,"query":{"bool":{"filter":{"bool":{"should":[{"match":{"docType":' +
|
|
1065
|
-
'"published_page"}}],"minimum_should_match":1}}}}}'
|
|
1066
|
-
}
|
|
1067
|
-
},
|
|
1068
|
-
result: {
|
|
1069
|
-
data: {
|
|
1070
|
-
searchPublishedContent: {
|
|
1071
|
-
rawResults: {
|
|
1072
|
-
took: 92,
|
|
1073
|
-
timed_out: false,
|
|
1074
|
-
_shards: {
|
|
1075
|
-
total: 1,
|
|
1076
|
-
successful: 1,
|
|
1077
|
-
skipped: 0,
|
|
1078
|
-
failed: 0
|
|
1079
|
-
},
|
|
1080
|
-
hits: {
|
|
1081
|
-
total: {
|
|
1082
|
-
value: 8,
|
|
1083
|
-
relation: 'eq'
|
|
1084
|
-
},
|
|
1085
|
-
max_score: null,
|
|
1086
|
-
hits: []
|
|
1087
|
-
},
|
|
1088
|
-
aggregations: {
|
|
1089
|
-
name: {
|
|
1090
|
-
doc_count_error_upper_bound: 0,
|
|
1091
|
-
sum_other_doc_count: 0,
|
|
1092
|
-
buckets: [
|
|
1093
|
-
{
|
|
1094
|
-
key: 'Checkbox',
|
|
1095
|
-
doc_count: 1
|
|
1096
|
-
},
|
|
1097
|
-
{
|
|
1098
|
-
key: 'Test card',
|
|
1099
|
-
doc_count: 1
|
|
1100
|
-
},
|
|
1101
|
-
{
|
|
1102
|
-
key: 'Test category',
|
|
1103
|
-
doc_count: 1
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
key: 'Test content',
|
|
1107
|
-
doc_count: 1
|
|
1108
|
-
},
|
|
1109
|
-
{
|
|
1110
|
-
key: 'Text block',
|
|
1111
|
-
doc_count: 1
|
|
1112
|
-
}
|
|
1113
|
-
]
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
];
|
|
1122
|
-
|
|
1123
|
-
const MOCKED_PROPS_FILTERS_LIST = {
|
|
1124
|
-
data: {
|
|
1125
|
-
rawResults: {
|
|
1126
|
-
aggregations: {
|
|
1127
|
-
name: {
|
|
1128
|
-
buckets: [
|
|
1129
|
-
{
|
|
1130
|
-
key: 'name1'
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
key: 'name2'
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
key: 'name3'
|
|
1137
|
-
}
|
|
1138
|
-
]
|
|
1139
|
-
},
|
|
1140
|
-
category: {
|
|
1141
|
-
buckets: [
|
|
1142
|
-
{
|
|
1143
|
-
key: 'category1'
|
|
1144
|
-
},
|
|
1145
|
-
{
|
|
1146
|
-
key: 'category2'
|
|
1147
|
-
}
|
|
1148
|
-
]
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
},
|
|
1153
|
-
router: {
|
|
1154
|
-
query: {}
|
|
1155
|
-
}
|
|
1156
|
-
};
|
|
1157
|
-
|
|
1158
|
-
const MOCKED_PROPS_SEARCH_FILTER = {
|
|
1159
|
-
listComponentName: '',
|
|
1160
|
-
filterData: {},
|
|
1161
|
-
asPath: 'somePath',
|
|
1162
|
-
parent: {
|
|
1163
|
-
itemEntity: 'published_page'
|
|
1164
|
-
},
|
|
1165
|
-
entity: 'page',
|
|
1166
|
-
url: null,
|
|
1167
|
-
name: 'comp name',
|
|
1168
|
-
filters: [{ type: 'select', propsToDisplay: ['name'] }]
|
|
1169
|
-
};
|
|
1170
|
-
|
|
1171
|
-
const MOCKED_EVENT_CHECKBOX = {
|
|
1172
|
-
target: {
|
|
1173
|
-
name: {
|
|
1174
|
-
checked: true,
|
|
1175
|
-
value: 'some name'
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
};
|
|
1179
|
-
|
|
1180
|
-
const MOCKED_FILTERS_CHECKBOX = [{ propsToDisplay: ['name'], type: 'checkbox' }];
|
|
1181
|
-
|
|
1182
|
-
const MOCKED_EVENT_CHECKBOX_ARRAY = {
|
|
1183
|
-
target: {
|
|
1184
|
-
name: [
|
|
1185
|
-
{
|
|
1186
|
-
checked: true,
|
|
1187
|
-
value: 'some name'
|
|
1188
|
-
},
|
|
1189
|
-
{
|
|
1190
|
-
checked: true,
|
|
1191
|
-
value: 'another name'
|
|
1192
|
-
}
|
|
1193
|
-
]
|
|
1194
|
-
}
|
|
1195
|
-
};
|
|
1196
|
-
|
|
1197
|
-
const MOCKED_EVENT_SELECT = {
|
|
1198
|
-
target: {
|
|
1199
|
-
metaTitle: {
|
|
1200
|
-
value: 'meta meta'
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
};
|
|
1204
|
-
|
|
1205
|
-
const MOCKED_FILTERS_SELECT = [{ propsToDisplay: ['metaTitle'], type: 'select' }];
|
|
1206
|
-
|
|
1207
|
-
const MOCKED_EVENT_SELECT_DEFAULT = {
|
|
1208
|
-
target: {
|
|
1209
|
-
metaTitle: {
|
|
1210
|
-
value: 'Any'
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
};
|
|
1214
|
-
|
|
1215
|
-
const MOCKED_RANGE_FILTER = {
|
|
1216
|
-
e: {
|
|
1217
|
-
target: {}
|
|
1218
|
-
},
|
|
1219
|
-
filters: [{ propsToDisplay: ['length'], type: 'range' }]
|
|
1220
|
-
};
|
|
1221
|
-
|
|
1222
|
-
const MOCKED_ALL_FILTERS = {
|
|
1223
|
-
e: {
|
|
1224
|
-
target: {
|
|
1225
|
-
name: {
|
|
1226
|
-
checked: true,
|
|
1227
|
-
value: 'testing'
|
|
1228
|
-
},
|
|
1229
|
-
metaDescription: {
|
|
1230
|
-
value: 'desc'
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
},
|
|
1234
|
-
filters: [
|
|
1235
|
-
{ propsToDisplay: ['length'], type: 'range' },
|
|
1236
|
-
{ propsToDisplay: ['name'], type: 'checkbox' },
|
|
1237
|
-
{ propsToDisplay: ['metaDescription'], type: 'select' }
|
|
1238
|
-
]
|
|
1239
|
-
};
|
|
1240
|
-
|
|
1241
|
-
const MOCKED_EVENT_TEXT = {
|
|
1242
|
-
target: {
|
|
1243
|
-
search_term: {
|
|
1244
|
-
value: 'test'
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
};
|
|
1248
|
-
|
|
1249
|
-
const MOCKED_FILTERS_TEXT = [{ propsToDisplay: ['name', 'metaTitle'], type: TEXT_SEARCH_STRING }];
|
|
1250
|
-
|
|
1251
|
-
const MOCKED_ALL_FILTERS_INCLUDING_TEXT = {
|
|
1252
|
-
e: {
|
|
1253
|
-
target: {
|
|
1254
|
-
author: {
|
|
1255
|
-
value: 'name',
|
|
1256
|
-
checked: true
|
|
1257
|
-
},
|
|
1258
|
-
metaDescription: {
|
|
1259
|
-
value: 'description1'
|
|
1260
|
-
},
|
|
1261
|
-
search_term: {
|
|
1262
|
-
value: 'test'
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
},
|
|
1266
|
-
filters: [
|
|
1267
|
-
{ propsToDisplay: ['author'], type: 'checkbox' },
|
|
1268
|
-
{ propsToDisplay: ['price'], type: 'range' },
|
|
1269
|
-
{ propsToDisplay: ['metaDescription'], type: 'select' },
|
|
1270
|
-
{ propsToDisplay: ['name', 'metaTitle'], type: TEXT_SEARCH_STRING }
|
|
1271
|
-
]
|
|
1272
|
-
};
|
|
1273
|
-
const RAW_QUERY_ONLY_TEXT_SEARCH = {
|
|
1274
|
-
bool: {
|
|
1275
|
-
must: [
|
|
1276
|
-
{
|
|
1277
|
-
bool: {
|
|
1278
|
-
must: [
|
|
1279
|
-
{
|
|
1280
|
-
bool: { should: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }] }
|
|
1281
|
-
}
|
|
1282
|
-
]
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
],
|
|
1286
|
-
filter: {
|
|
1287
|
-
bool: {
|
|
1288
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1289
|
-
minimum_should_match: 1,
|
|
1290
|
-
must: []
|
|
1291
|
-
}
|
|
1292
|
-
},
|
|
1293
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
|
|
1297
|
-
const RAW_QUERY_CHECKBOX_SELECT = {
|
|
1298
|
-
bool: {
|
|
1299
|
-
must: [
|
|
1300
|
-
{
|
|
1301
|
-
bool: {
|
|
1302
|
-
must: [
|
|
1303
|
-
{ match: { metaDescription: 'test' } },
|
|
1304
|
-
{ match: { category: 'cat' } },
|
|
1305
|
-
{ bool: { should: [] } }
|
|
1306
|
-
]
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
],
|
|
1310
|
-
filter: {
|
|
1311
|
-
bool: {
|
|
1312
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1313
|
-
minimum_should_match: 1,
|
|
1314
|
-
must: []
|
|
1315
|
-
}
|
|
1316
|
-
},
|
|
1317
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1318
|
-
}
|
|
1319
|
-
};
|
|
1320
|
-
|
|
1321
|
-
const RAW_QUERY_CHECKBOX_SELECT_CHECKBOX_HAS_OR_OPERATOR = {
|
|
1322
|
-
bool: {
|
|
1323
|
-
must: [
|
|
1324
|
-
{
|
|
1325
|
-
bool: {
|
|
1326
|
-
must: [
|
|
1327
|
-
{ match: { metaDescription: 'test' } },
|
|
1328
|
-
{ match: { category: 'cat' } },
|
|
1329
|
-
{ bool: { should: [{ match: { name: 'someName' } }, { match: { name: 'another' } }] } }
|
|
1330
|
-
]
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
],
|
|
1334
|
-
filter: {
|
|
1335
|
-
bool: {
|
|
1336
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1337
|
-
minimum_should_match: 1,
|
|
1338
|
-
must: []
|
|
1339
|
-
}
|
|
1340
|
-
},
|
|
1341
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1342
|
-
}
|
|
1343
|
-
};
|
|
1344
|
-
|
|
1345
|
-
const RAW_QUERY_ALL_SEARCH_VALUE_SAME_OPERATOR = {
|
|
1346
|
-
bool: {
|
|
1347
|
-
must: [
|
|
1348
|
-
{
|
|
1349
|
-
bool: {
|
|
1350
|
-
must: [
|
|
1351
|
-
{ match: { name: 'search' } },
|
|
1352
|
-
{ match: { metaTitle: 'search' } },
|
|
1353
|
-
{ match: { metaDescription: 'test' } },
|
|
1354
|
-
{ match: { category: 'cat' } }
|
|
1355
|
-
]
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
],
|
|
1359
|
-
should: EXAMPLE_SHOULD_TEXT,
|
|
1360
|
-
filter: {
|
|
1361
|
-
bool: {
|
|
1362
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1363
|
-
minimum_should_match: 1,
|
|
1364
|
-
must: []
|
|
1365
|
-
}
|
|
1366
|
-
},
|
|
1367
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1368
|
-
}
|
|
1369
|
-
};
|
|
1370
|
-
|
|
1371
|
-
const RAW_QUERY_ALL_SEARCH_VALUE_DIFFERENT_OPERATOR = {
|
|
1372
|
-
bool: {
|
|
1373
|
-
must: [
|
|
1374
|
-
{
|
|
1375
|
-
bool: {
|
|
1376
|
-
must: [
|
|
1377
|
-
{ match: { metaDescription: 'test' } },
|
|
1378
|
-
{ match: { category: 'cat' } },
|
|
1379
|
-
{
|
|
1380
|
-
bool: {
|
|
1381
|
-
should: [
|
|
1382
|
-
{ match: { name: 'search' } },
|
|
1383
|
-
{ match: { metaTitle: 'search' } },
|
|
1384
|
-
...EXAMPLE_SHOULD_TEXT
|
|
1385
|
-
]
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
]
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
],
|
|
1392
|
-
should: EXAMPLE_SHOULD_TEXT,
|
|
1393
|
-
filter: {
|
|
1394
|
-
bool: {
|
|
1395
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1396
|
-
minimum_should_match: 1,
|
|
1397
|
-
must: []
|
|
1398
|
-
}
|
|
1399
|
-
},
|
|
1400
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1401
|
-
}
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
|
-
const RAW_QUERY_ALL_SEARCH_VALUE_SAME_OPERATOR_TEXT_CHECKBOX_HAS_OR_OPERATOR = {
|
|
1405
|
-
bool: {
|
|
1406
|
-
must: [
|
|
1407
|
-
{
|
|
1408
|
-
bool: {
|
|
1409
|
-
must: [
|
|
1410
|
-
{ match: { name: 'search' } },
|
|
1411
|
-
{ match: { metaTitle: 'search' } },
|
|
1412
|
-
{ match: { metaDescription: 'test' } },
|
|
1413
|
-
{ match: { category: 'cat' } },
|
|
1414
|
-
{ bool: { should: [{ match: { name: 'someName' } }, { match: { name: 'another' } }] } }
|
|
1415
|
-
]
|
|
1416
|
-
}
|
|
1417
|
-
}
|
|
1418
|
-
],
|
|
1419
|
-
should: EXAMPLE_SHOULD_TEXT,
|
|
1420
|
-
filter: {
|
|
1421
|
-
bool: {
|
|
1422
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1423
|
-
minimum_should_match: 1,
|
|
1424
|
-
must: []
|
|
1425
|
-
}
|
|
1426
|
-
},
|
|
1427
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1428
|
-
}
|
|
1429
|
-
};
|
|
1430
|
-
|
|
1431
|
-
const RAW_QUERY_ALL_SEARCH_VALUE_DIFFERENT_OPERATOR_TEXT_CHECKBOX_HAS_OR_OPERATOR = {
|
|
1432
|
-
bool: {
|
|
1433
|
-
must: [
|
|
1434
|
-
{
|
|
1435
|
-
bool: {
|
|
1436
|
-
must: [
|
|
1437
|
-
{ match: { metaDescription: 'test' } },
|
|
1438
|
-
{ match: { category: 'cat' } },
|
|
1439
|
-
{
|
|
1440
|
-
bool: {
|
|
1441
|
-
should: [
|
|
1442
|
-
{ match: { name: 'search' } },
|
|
1443
|
-
{ match: { metaTitle: 'search' } },
|
|
1444
|
-
{ match: { name: 'someName' } },
|
|
1445
|
-
{ match: { name: 'another' } },
|
|
1446
|
-
...EXAMPLE_SHOULD_TEXT
|
|
1447
|
-
]
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
]
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
],
|
|
1454
|
-
should: EXAMPLE_SHOULD_TEXT,
|
|
1455
|
-
filter: {
|
|
1456
|
-
bool: {
|
|
1457
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1458
|
-
minimum_should_match: 1,
|
|
1459
|
-
must: []
|
|
1460
|
-
}
|
|
1461
|
-
},
|
|
1462
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1463
|
-
}
|
|
1464
|
-
};
|
|
1465
|
-
|
|
1466
|
-
const RAW_QUERY_STRINGIFIED =
|
|
1467
|
-
'{"aggs":{"tags.name":{"terms":{"field":"tags.name.keyword","size":500}},"category.name"' +
|
|
1468
|
-
':{"terms":{"field":"category.name.keyword","size":500}}},"size":0,"query":{"bool":{"filter":{"bool"' +
|
|
1469
|
-
':{"should":[{"match":{"docType":"published_page"}}],"minimum_should_match":1}}}}}';
|
|
1470
|
-
|
|
1471
|
-
const RAW_QUERY_STRINGIFIED_WITH_RANGE =
|
|
1472
|
-
'{"aggs":{"tags.name":{"terms":{"field":"tags.name.keyword","size":500}},"category.name":{"' +
|
|
1473
|
-
'terms":{"field":"category.name.keyword","size":500}},"price":{"stats":{"field":"price"}},"length":' +
|
|
1474
|
-
'{"stats":{"field":"length"}}},"size":0,"query":{"bool":{"filter":{"bool":{"should":[{"match":' +
|
|
1475
|
-
'{"docType":"published_page"}}],"minimum_should_match":1}}}}}';
|
|
1476
|
-
|
|
1477
|
-
const RAW_QUERY_BASE_CHECKBOX_FILTERS = {
|
|
1478
|
-
filter: {
|
|
1479
|
-
bool: {
|
|
1480
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1481
|
-
minimum_should_match: 1,
|
|
1482
|
-
must: [{ match: { featured: true } }, { match: { sponsored: true } }]
|
|
1483
|
-
}
|
|
1484
|
-
},
|
|
1485
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1486
|
-
};
|
|
1487
|
-
|
|
1488
|
-
const RAW_QUERY_CHECKBOX_FILTERS = {
|
|
1489
|
-
bool: {
|
|
1490
|
-
must: [
|
|
1491
|
-
{
|
|
1492
|
-
bool: {
|
|
1493
|
-
must: [
|
|
1494
|
-
{
|
|
1495
|
-
bool: { should: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }] }
|
|
1496
|
-
}
|
|
1497
|
-
]
|
|
1498
|
-
}
|
|
1499
|
-
},
|
|
1500
|
-
{ regexp: { 'name.keyword': { value: 'x.*', case_insensitive: true } } }
|
|
1501
|
-
],
|
|
1502
|
-
filter: {
|
|
1503
|
-
bool: {
|
|
1504
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1505
|
-
minimum_should_match: 1,
|
|
1506
|
-
must: [{ match: { featured: true } }, { match: { sponsored: true } }]
|
|
1507
|
-
}
|
|
1508
|
-
},
|
|
1509
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1510
|
-
}
|
|
1511
|
-
};
|
|
1512
|
-
|
|
1513
|
-
const RAW_QUERY_BASE_ONE_CHECKBOX_FILTERS = {
|
|
1514
|
-
filter: {
|
|
1515
|
-
bool: {
|
|
1516
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1517
|
-
minimum_should_match: 1,
|
|
1518
|
-
must: [{ match: { sponsored: true } }]
|
|
1519
|
-
}
|
|
1520
|
-
},
|
|
1521
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1522
|
-
};
|
|
1523
|
-
|
|
1524
|
-
const RAW_QUERY_ONE_CHECKBOX_FILTERS = {
|
|
1525
|
-
bool: {
|
|
1526
|
-
must: [
|
|
1527
|
-
{
|
|
1528
|
-
bool: {
|
|
1529
|
-
must: [
|
|
1530
|
-
{
|
|
1531
|
-
bool: { should: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }] }
|
|
1532
|
-
}
|
|
1533
|
-
]
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
],
|
|
1537
|
-
filter: {
|
|
1538
|
-
bool: {
|
|
1539
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1540
|
-
minimum_should_match: 1,
|
|
1541
|
-
must: [{ match: { sponsored: true } }]
|
|
1542
|
-
}
|
|
1543
|
-
},
|
|
1544
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
|
-
|
|
1548
|
-
const RAW_QUERY_BASE_ONE_CHECKBOX_FILTERS_AND_OTHER_FILTERS = {
|
|
1549
|
-
filter: {
|
|
1550
|
-
bool: {
|
|
1551
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1552
|
-
minimum_should_match: 1,
|
|
1553
|
-
must: [
|
|
1554
|
-
{ match: { sponsored: true } },
|
|
1555
|
-
{
|
|
1556
|
-
bool: {
|
|
1557
|
-
should: [
|
|
1558
|
-
{ match: { 'name.keyword': 'entity-name' } },
|
|
1559
|
-
{ match: { 'name.keyword': 'another name' } }
|
|
1560
|
-
]
|
|
1561
|
-
}
|
|
1562
|
-
},
|
|
1563
|
-
{ bool: { should: [{ match: { 'category.name.keyword': 'another category' } }] } }
|
|
1564
|
-
]
|
|
1565
|
-
}
|
|
1566
|
-
},
|
|
1567
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1568
|
-
};
|
|
1569
|
-
|
|
1570
|
-
const RAW_QUERY_BASE_ONE_CHECKBOX_FILTERS_AND_OTHER_FILTERS_OR_OPERATOR = {
|
|
1571
|
-
filter: {
|
|
1572
|
-
bool: {
|
|
1573
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1574
|
-
minimum_should_match: 1,
|
|
1575
|
-
must: [
|
|
1576
|
-
{ match: { sponsored: true } },
|
|
1577
|
-
{
|
|
1578
|
-
bool: {
|
|
1579
|
-
should: [
|
|
1580
|
-
{ bool: { should: [{ match: { price: '10' } }, { match: { price: '332' } }] } },
|
|
1581
|
-
{ bool: { should: [{ match: { 'authors.lastname.keyword': 'last name' } }] } }
|
|
1582
|
-
]
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
]
|
|
1586
|
-
}
|
|
1587
|
-
},
|
|
1588
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1589
|
-
};
|
|
1590
|
-
|
|
1591
|
-
const RAW_QUERY_BASE_ONE_CHECKBOX_FILTERS_AND_OTHER_FILTERS_OR_OPERATOR_ITEMS_TO_DISPLAY = {
|
|
1592
|
-
filter: {
|
|
1593
|
-
bool: {
|
|
1594
|
-
must: [
|
|
1595
|
-
{
|
|
1596
|
-
term: {
|
|
1597
|
-
docType: 'published_page'
|
|
1598
|
-
}
|
|
1599
|
-
},
|
|
1600
|
-
{
|
|
1601
|
-
ids: {
|
|
1602
|
-
values: ITEMS_TO_DISPLAY
|
|
1603
|
-
}
|
|
1604
|
-
},
|
|
1605
|
-
{ match: { sponsored: true } },
|
|
1606
|
-
{
|
|
1607
|
-
bool: {
|
|
1608
|
-
should: [
|
|
1609
|
-
{
|
|
1610
|
-
bool: {
|
|
1611
|
-
should: [
|
|
1612
|
-
{ match: { 'tagIds.keyword': 'id1' } },
|
|
1613
|
-
{ match: { 'tagIds.keyword': 'id2' } }
|
|
1614
|
-
]
|
|
1615
|
-
}
|
|
1616
|
-
},
|
|
1617
|
-
{
|
|
1618
|
-
bool: {
|
|
1619
|
-
should: [{ match: { 'categoryId.keyword': 'catId' } }]
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
]
|
|
1623
|
-
}
|
|
1624
|
-
}
|
|
1625
|
-
]
|
|
1626
|
-
}
|
|
1627
|
-
},
|
|
1628
|
-
must_not: [
|
|
1629
|
-
{
|
|
1630
|
-
ids: {
|
|
1631
|
-
values: ['itemId']
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
]
|
|
1635
|
-
};
|
|
1636
|
-
|
|
1637
|
-
const RAW_QUERY_ONE_CHECKBOX_FILTERS_AND_OTHER_FILTERS = {
|
|
1638
|
-
bool: {
|
|
1639
|
-
must: [
|
|
1640
|
-
{
|
|
1641
|
-
bool: {
|
|
1642
|
-
must: [
|
|
1643
|
-
{
|
|
1644
|
-
bool: { should: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }] }
|
|
1645
|
-
}
|
|
1646
|
-
]
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
],
|
|
1650
|
-
filter: {
|
|
1651
|
-
bool: {
|
|
1652
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1653
|
-
minimum_should_match: 1,
|
|
1654
|
-
must: [
|
|
1655
|
-
{ match: { sponsored: true } },
|
|
1656
|
-
{
|
|
1657
|
-
bool: {
|
|
1658
|
-
should: [
|
|
1659
|
-
{ match: { 'name.keyword': 'entity-name' } },
|
|
1660
|
-
{ match: { 'name.keyword': 'another name' } }
|
|
1661
|
-
]
|
|
1662
|
-
}
|
|
1663
|
-
},
|
|
1664
|
-
{ bool: { should: [{ match: { 'category.name.keyword': 'another category' } }] } }
|
|
1665
|
-
]
|
|
1666
|
-
}
|
|
1667
|
-
},
|
|
1668
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1669
|
-
}
|
|
1670
|
-
};
|
|
1671
|
-
|
|
1672
|
-
const RAW_QUERY_ITEMS_TO_DISPLAY = {
|
|
1673
|
-
bool: {
|
|
1674
|
-
must: [
|
|
1675
|
-
{
|
|
1676
|
-
bool: {
|
|
1677
|
-
must: [
|
|
1678
|
-
{
|
|
1679
|
-
bool: { should: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }] }
|
|
1680
|
-
}
|
|
1681
|
-
]
|
|
1682
|
-
}
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
ids: {
|
|
1686
|
-
values: [
|
|
1687
|
-
'd6a79240-3c5e-11ea-84c3-99e89d013812',
|
|
1688
|
-
'fae0a8d0-35ed-11ea-9ef3-a10a62235b17',
|
|
1689
|
-
'0c9dfaf0-35ee-11ea-9ef3-a10a62235b17'
|
|
1690
|
-
]
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
],
|
|
1694
|
-
filter: {
|
|
1695
|
-
bool: {
|
|
1696
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1697
|
-
minimum_should_match: 1,
|
|
1698
|
-
must: [
|
|
1699
|
-
{ match: { sponsored: true } },
|
|
1700
|
-
{
|
|
1701
|
-
bool: {
|
|
1702
|
-
should: [
|
|
1703
|
-
{ match: { 'image.name.keyword': 'img1' } },
|
|
1704
|
-
{ match: { 'image.name.keyword': 'img3' } }
|
|
1705
|
-
]
|
|
1706
|
-
}
|
|
1707
|
-
},
|
|
1708
|
-
{ bool: { should: [{ match: { 'category.name.keyword': 'general-category' } }] } },
|
|
1709
|
-
{ bool: { should: [{ match: { length: '10' } }] } }
|
|
1710
|
-
]
|
|
1711
|
-
}
|
|
1712
|
-
},
|
|
1713
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1714
|
-
}
|
|
1715
|
-
};
|
|
1716
|
-
|
|
1717
|
-
const RAW_QUERY_OR_OPERATOR_ITEMS_TO_DISPLAY = {
|
|
1718
|
-
bool: {
|
|
1719
|
-
must: [
|
|
1720
|
-
{
|
|
1721
|
-
bool: {
|
|
1722
|
-
must: [
|
|
1723
|
-
{
|
|
1724
|
-
bool: { should: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }] }
|
|
1725
|
-
}
|
|
1726
|
-
]
|
|
1727
|
-
}
|
|
1728
|
-
},
|
|
1729
|
-
{
|
|
1730
|
-
ids: {
|
|
1731
|
-
values: [
|
|
1732
|
-
'd6a79240-3c5e-11ea-84c3-99e89d013812',
|
|
1733
|
-
'fae0a8d0-35ed-11ea-9ef3-a10a62235b17',
|
|
1734
|
-
'0c9dfaf0-35ee-11ea-9ef3-a10a62235b17'
|
|
1735
|
-
]
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
],
|
|
1739
|
-
filter: {
|
|
1740
|
-
bool: {
|
|
1741
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1742
|
-
minimum_should_match: 1,
|
|
1743
|
-
must: [
|
|
1744
|
-
{ match: { sponsored: true } },
|
|
1745
|
-
{
|
|
1746
|
-
bool: {
|
|
1747
|
-
should: [
|
|
1748
|
-
{
|
|
1749
|
-
bool: {
|
|
1750
|
-
should: [
|
|
1751
|
-
{ match: { 'metaTitle.keyword': 'meta' } },
|
|
1752
|
-
{ match: { 'metaTitle.keyword': 'more-meta' } }
|
|
1753
|
-
]
|
|
1754
|
-
}
|
|
1755
|
-
},
|
|
1756
|
-
{ bool: { should: [{ match: { 'slug.keyword': 'slug-link' } }] } }
|
|
1757
|
-
]
|
|
1758
|
-
}
|
|
1759
|
-
}
|
|
1760
|
-
]
|
|
1761
|
-
}
|
|
1762
|
-
},
|
|
1763
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1764
|
-
}
|
|
1765
|
-
};
|
|
1766
|
-
|
|
1767
|
-
const RAW_QUERY_FINAL_VALUES_WITH_AND_UPDATED = {
|
|
1768
|
-
filter: {
|
|
1769
|
-
bool: {
|
|
1770
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1771
|
-
minimum_should_match: 1,
|
|
1772
|
-
must: [
|
|
1773
|
-
{ match: { sponsored: true } },
|
|
1774
|
-
{ bool: { should: [{ match: { tagIds: 'id1' } }, { match: { tagIds: 'id2' } }] } },
|
|
1775
|
-
{ bool: { should: [{ match: { categoryId: 'catId' } }] } }
|
|
1776
|
-
]
|
|
1777
|
-
}
|
|
1778
|
-
},
|
|
1779
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1780
|
-
};
|
|
1781
|
-
|
|
1782
|
-
const FILTER_VALUES = { checkboxFilters: [], listFilterValues: {} };
|
|
1783
|
-
|
|
1784
|
-
const UPDATED_RANGES_EMPTY = [];
|
|
1785
|
-
|
|
1786
|
-
const UPDATED_RANGES = ['length'];
|
|
1787
|
-
|
|
1788
|
-
const UPDATED_RANGES_OTHER_VALUE = ['price'];
|
|
1789
|
-
|
|
1790
|
-
const MOCKED_SORT_DATA = [
|
|
1791
|
-
{
|
|
1792
|
-
name: '2019 DELTA 88 CARBON',
|
|
1793
|
-
url: '/yachts-for-sale/delta-884--92649',
|
|
1794
|
-
category: {
|
|
1795
|
-
name: 'Motor Yacht',
|
|
1796
|
-
listingPageId: null,
|
|
1797
|
-
listingPageEntity: null,
|
|
1798
|
-
publishedListingPage: null
|
|
1799
|
-
},
|
|
1800
|
-
image: null,
|
|
1801
|
-
__typename: 'PublishedYachtForSale',
|
|
1802
|
-
id: '26bb0670-36d0-11ea-9776-070aacc2c6c7'
|
|
1803
|
-
},
|
|
1804
|
-
{
|
|
1805
|
-
name: '116 Yacht',
|
|
1806
|
-
url: '/yachts-for-sale/116--101455',
|
|
1807
|
-
category: {
|
|
1808
|
-
name: 'Motor Yacht',
|
|
1809
|
-
listingPageId: null,
|
|
1810
|
-
listingPageEntity: null,
|
|
1811
|
-
publishedListingPage: null
|
|
1812
|
-
},
|
|
1813
|
-
image: null,
|
|
1814
|
-
__typename: 'PublishedYachtForSale',
|
|
1815
|
-
id: 'f4acffd0-36cf-11ea-9776-070aacc2c6c7'
|
|
1816
|
-
}
|
|
1817
|
-
];
|
|
1818
|
-
|
|
1819
|
-
const MOCKED_SORT_IDS = [
|
|
1820
|
-
{
|
|
1821
|
-
displayItems: ['f4acffd0-36cf-11ea-9776-070aacc2c6c7'],
|
|
1822
|
-
id: '0ee457c0-4992-11ea-93e2-61ad2b3cadd0',
|
|
1823
|
-
items: null
|
|
1824
|
-
},
|
|
1825
|
-
{
|
|
1826
|
-
displayItems: ['26bb0670-36d0-11ea-9776-070aacc2c6c7'],
|
|
1827
|
-
id: '2f31b0e0-4992-11ea-93e2-61ad2b3cadd0',
|
|
1828
|
-
items: null
|
|
1829
|
-
}
|
|
1830
|
-
];
|
|
1831
|
-
|
|
1832
|
-
const MOCKED_SORT_RESULTS = [
|
|
1833
|
-
[
|
|
1834
|
-
{
|
|
1835
|
-
name: '116 Yacht',
|
|
1836
|
-
url: '/yachts-for-sale/116--101455',
|
|
1837
|
-
category: {
|
|
1838
|
-
name: 'Motor Yacht',
|
|
1839
|
-
listingPageId: null,
|
|
1840
|
-
listingPageEntity: null,
|
|
1841
|
-
publishedListingPage: null
|
|
1842
|
-
},
|
|
1843
|
-
image: null,
|
|
1844
|
-
__typename: 'PublishedYachtForSale',
|
|
1845
|
-
id: 'f4acffd0-36cf-11ea-9776-070aacc2c6c7'
|
|
1846
|
-
},
|
|
1847
|
-
{
|
|
1848
|
-
name: '2019 DELTA 88 CARBON',
|
|
1849
|
-
url: '/yachts-for-sale/delta-884--92649',
|
|
1850
|
-
category: {
|
|
1851
|
-
name: 'Motor Yacht',
|
|
1852
|
-
listingPageId: null,
|
|
1853
|
-
listingPageEntity: null,
|
|
1854
|
-
publishedListingPage: null
|
|
1855
|
-
},
|
|
1856
|
-
image: null,
|
|
1857
|
-
__typename: 'PublishedYachtForSale',
|
|
1858
|
-
id: '26bb0670-36d0-11ea-9776-070aacc2c6c7'
|
|
1859
|
-
}
|
|
1860
|
-
]
|
|
1861
|
-
];
|
|
1862
|
-
|
|
1863
|
-
const RAW_QUERY_ONE_CHECKBOX_FILTERS_AND_OTHER_FILTERS_OR_OPERATOR = {
|
|
1864
|
-
bool: {
|
|
1865
|
-
must: [
|
|
1866
|
-
{
|
|
1867
|
-
bool: {
|
|
1868
|
-
must: [
|
|
1869
|
-
{
|
|
1870
|
-
bool: { should: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }] }
|
|
1871
|
-
}
|
|
1872
|
-
]
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
],
|
|
1876
|
-
filter: {
|
|
1877
|
-
bool: {
|
|
1878
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1879
|
-
minimum_should_match: 1,
|
|
1880
|
-
must: [
|
|
1881
|
-
{ match: { featured: true } },
|
|
1882
|
-
{
|
|
1883
|
-
bool: {
|
|
1884
|
-
should: [
|
|
1885
|
-
{
|
|
1886
|
-
bool: {
|
|
1887
|
-
should: [
|
|
1888
|
-
{ match: { 'authors.firstname.keyword': 'John' } },
|
|
1889
|
-
{ match: { 'authors.firstname.keyword': 'Paul' } }
|
|
1890
|
-
]
|
|
1891
|
-
}
|
|
1892
|
-
},
|
|
1893
|
-
{ bool: { should: [{ match: { price: '33' } }] } }
|
|
1894
|
-
]
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
]
|
|
1898
|
-
}
|
|
1899
|
-
},
|
|
1900
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1901
|
-
}
|
|
1902
|
-
};
|
|
1903
|
-
|
|
1904
|
-
const RAW_QUERY_WITH_ITEMS_TO_DISPLAY = {
|
|
1905
|
-
filter: {
|
|
1906
|
-
bool: {
|
|
1907
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1908
|
-
minimum_should_match: 1,
|
|
1909
|
-
must: [
|
|
1910
|
-
{ ids: { values: ['displayItem1', 'displayItem2'] } },
|
|
1911
|
-
{ match: { sponsored: true } },
|
|
1912
|
-
{
|
|
1913
|
-
bool: {
|
|
1914
|
-
should: [
|
|
1915
|
-
{ bool: { should: [{ match: { tagIds: 'id1' } }, { match: { tagIds: 'id2' } }] } },
|
|
1916
|
-
{ bool: { should: [{ match: { 'categoryId.keyword': 'catId' } }] } }
|
|
1917
|
-
]
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
]
|
|
1921
|
-
}
|
|
1922
|
-
},
|
|
1923
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1924
|
-
};
|
|
1925
|
-
|
|
1926
|
-
const RAW_QUERY_WITH_QUERY_FILTERS = {
|
|
1927
|
-
should: [{ bool: { should: [{ match: { tagIds: 'id1' } }, { match: { tagIds: 'id2' } }] } }],
|
|
1928
|
-
minimum_should_match: 1,
|
|
1929
|
-
filter: {
|
|
1930
|
-
bool: {
|
|
1931
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1932
|
-
minimum_should_match: 1,
|
|
1933
|
-
must: [{ match: { sponsored: true } }]
|
|
1934
|
-
}
|
|
1935
|
-
},
|
|
1936
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1937
|
-
};
|
|
1938
|
-
|
|
1939
|
-
const RAW_QUERY_EMPTY_FILTERS_VALUE = {
|
|
1940
|
-
filter: {
|
|
1941
|
-
bool: { should: [{ match: { docType: 'published_page' } }], minimum_should_match: 1, must: [] }
|
|
1942
|
-
},
|
|
1943
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1944
|
-
};
|
|
1945
|
-
|
|
1946
|
-
const RAW_QUERY_WITH_SHOULD_APPLY_SORT = {
|
|
1947
|
-
query: {
|
|
1948
|
-
bool: {
|
|
1949
|
-
must: [
|
|
1950
|
-
{
|
|
1951
|
-
bool: {
|
|
1952
|
-
must: [
|
|
1953
|
-
{
|
|
1954
|
-
bool: {
|
|
1955
|
-
should: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }]
|
|
1956
|
-
}
|
|
1957
|
-
}
|
|
1958
|
-
]
|
|
1959
|
-
}
|
|
1960
|
-
},
|
|
1961
|
-
{
|
|
1962
|
-
ids: {
|
|
1963
|
-
values: [
|
|
1964
|
-
'd6a79240-3c5e-11ea-84c3-99e89d013812',
|
|
1965
|
-
'fae0a8d0-35ed-11ea-9ef3-a10a62235b17',
|
|
1966
|
-
'0c9dfaf0-35ee-11ea-9ef3-a10a62235b17'
|
|
1967
|
-
]
|
|
1968
|
-
}
|
|
1969
|
-
}
|
|
1970
|
-
],
|
|
1971
|
-
filter: {
|
|
1972
|
-
bool: {
|
|
1973
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
1974
|
-
minimum_should_match: 1,
|
|
1975
|
-
must: [
|
|
1976
|
-
{ match: { sponsored: true } },
|
|
1977
|
-
{
|
|
1978
|
-
bool: {
|
|
1979
|
-
should: [
|
|
1980
|
-
{ match: { 'url.keyword': '/url' } },
|
|
1981
|
-
{ match: { 'url.keyword': '/alternative-url' } }
|
|
1982
|
-
]
|
|
1983
|
-
}
|
|
1984
|
-
},
|
|
1985
|
-
{ bool: { should: [{ match: { date: '29-03-2020' } }] } }
|
|
1986
|
-
]
|
|
1987
|
-
}
|
|
1988
|
-
},
|
|
1989
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
1990
|
-
}
|
|
1991
|
-
},
|
|
1992
|
-
sort: [
|
|
1993
|
-
{
|
|
1994
|
-
_script: {
|
|
1995
|
-
type: 'number',
|
|
1996
|
-
script: {
|
|
1997
|
-
lang: 'painless',
|
|
1998
|
-
source:
|
|
1999
|
-
"!doc['id.keyword'].empty ? params.sortOrder.indexOf(doc['id.keyword'].value) : 0",
|
|
2000
|
-
params: {
|
|
2001
|
-
sortOrder: [
|
|
2002
|
-
'd6a79240-3c5e-11ea-84c3-99e89d013812',
|
|
2003
|
-
'fae0a8d0-35ed-11ea-9ef3-a10a62235b17',
|
|
2004
|
-
'0c9dfaf0-35ee-11ea-9ef3-a10a62235b17'
|
|
2005
|
-
]
|
|
2006
|
-
}
|
|
2007
|
-
},
|
|
2008
|
-
order: 'asc'
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
]
|
|
2012
|
-
};
|
|
2013
|
-
|
|
2014
|
-
const RAW_QUERY_WITH_AGGS = {
|
|
2015
|
-
query: {
|
|
2016
|
-
bool: {
|
|
2017
|
-
must: [
|
|
2018
|
-
{
|
|
2019
|
-
bool: {
|
|
2020
|
-
must: [
|
|
2021
|
-
{
|
|
2022
|
-
bool: {
|
|
2023
|
-
should: [{ match: { name: 'search' } }, { match: { metaTitle: 'search' } }]
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
]
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2029
|
-
],
|
|
2030
|
-
filter: {
|
|
2031
|
-
bool: {
|
|
2032
|
-
should: [{ match: { docType: 'published_page' } }],
|
|
2033
|
-
minimum_should_match: 1,
|
|
2034
|
-
must: []
|
|
2035
|
-
}
|
|
2036
|
-
},
|
|
2037
|
-
must_not: [{ ids: { values: ['itemId'] } }]
|
|
2038
|
-
}
|
|
2039
|
-
},
|
|
2040
|
-
aggs: {
|
|
2041
|
-
azCount: {
|
|
2042
|
-
terms: { script: "doc['name.keyword'].getValue().substring(0,1).toUpperCase()", size: 500 }
|
|
2043
|
-
}
|
|
2044
|
-
},
|
|
2045
|
-
sort: [{ 'name.keyword': 'asc' }]
|
|
2046
|
-
};
|
|
2047
|
-
|
|
2048
|
-
const MOCKED_GTM_CHILD_COMPONENTS = [
|
|
2049
|
-
{
|
|
2050
|
-
props: {
|
|
2051
|
-
children: [
|
|
2052
|
-
false,
|
|
2053
|
-
[
|
|
2054
|
-
{ props: { component: { type: 'not-gtm' } } },
|
|
2055
|
-
{ props: { component: { type: 'gtm', settings: { gtmClassName: GTM_CLASSNAME } } } },
|
|
2056
|
-
{ props: { component: { type: 'other', settings: { gtmClassName: GTM_CLASSNAME } } } },
|
|
2057
|
-
{ props: { component: { type: 'other3' } } }
|
|
2058
|
-
]
|
|
2059
|
-
]
|
|
2060
|
-
}
|
|
2061
|
-
},
|
|
2062
|
-
{
|
|
2063
|
-
props: {
|
|
2064
|
-
children: [
|
|
2065
|
-
false,
|
|
2066
|
-
[
|
|
2067
|
-
{ props: { component: { type: 'not-gtm' } } },
|
|
2068
|
-
{ props: { component: { type: 'other2', settings: { gtmClassName: GTM_CLASSNAME } } } },
|
|
2069
|
-
{ props: { component: { type: 'other3' } } }
|
|
2070
|
-
]
|
|
2071
|
-
]
|
|
2072
|
-
}
|
|
2073
|
-
},
|
|
2074
|
-
{
|
|
2075
|
-
props: {
|
|
2076
|
-
children: [
|
|
2077
|
-
false,
|
|
2078
|
-
[
|
|
2079
|
-
{ props: { component: { type: 'not-gtm' } } },
|
|
2080
|
-
{ props: { component: { type: 'gtm', settings: {} } } }
|
|
2081
|
-
]
|
|
2082
|
-
]
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
];
|
|
2086
|
-
|
|
2087
|
-
const MOCKED_INFINITE_SCROLL_PROPS = {
|
|
2088
|
-
router: {
|
|
2089
|
-
pathname: '/Resolver',
|
|
2090
|
-
route: '/Resolver',
|
|
2091
|
-
query: {},
|
|
2092
|
-
asPath: '/new-build',
|
|
2093
|
-
isFallback: false,
|
|
2094
|
-
basePath: '',
|
|
2095
|
-
events: {}
|
|
2096
|
-
},
|
|
2097
|
-
entity: 'exhibitor',
|
|
2098
|
-
propsToDisplay: [
|
|
2099
|
-
{
|
|
2100
|
-
propertiesToDisplay: ['category.name'],
|
|
2101
|
-
label: '',
|
|
2102
|
-
prefix: '',
|
|
2103
|
-
suffix: '',
|
|
2104
|
-
bold: false
|
|
2105
|
-
}
|
|
2106
|
-
],
|
|
2107
|
-
entityFields:
|
|
2108
|
-
'id,name,url,category{name,listingPageId,listingPageEntity, publishedListingPage{url}},image{url,data}',
|
|
2109
|
-
style: 'landscape',
|
|
2110
|
-
gridModifier: 'grid--one',
|
|
2111
|
-
type: 'cards',
|
|
2112
|
-
name: 'list-exhibitors',
|
|
2113
|
-
parent: {
|
|
2114
|
-
itemId: '8f717220-83d9-11ea-967c-97ffdeb65ced',
|
|
2115
|
-
itemEntity: 'published_page',
|
|
2116
|
-
category: null,
|
|
2117
|
-
tags: [
|
|
2118
|
-
{
|
|
2119
|
-
name: 'New Build'
|
|
2120
|
-
},
|
|
2121
|
-
{
|
|
2122
|
-
name: 'Builder'
|
|
2123
|
-
}
|
|
2124
|
-
],
|
|
2125
|
-
getAction: 'getPublishedPage',
|
|
2126
|
-
getAllAction: 'getPublishedPages'
|
|
2127
|
-
},
|
|
2128
|
-
searchFilter: {
|
|
2129
|
-
type: 'searchfilter',
|
|
2130
|
-
settings: {
|
|
2131
|
-
name: SEARCH_FILTER_SEARCH_EXHIBITORS_STRING,
|
|
2132
|
-
modifier: null,
|
|
2133
|
-
elementTitle: null,
|
|
2134
|
-
url: null,
|
|
2135
|
-
entity: 'exhibitor',
|
|
2136
|
-
filters: [
|
|
2137
|
-
{
|
|
2138
|
-
elementTitle: '',
|
|
2139
|
-
propsToDisplay: ['name'],
|
|
2140
|
-
label: 'Search for Exhibitors',
|
|
2141
|
-
type: TEXT_SEARCH_STRING,
|
|
2142
|
-
rangeInterval: 1
|
|
2143
|
-
}
|
|
2144
|
-
],
|
|
2145
|
-
gtmClassName: null
|
|
2146
|
-
},
|
|
2147
|
-
id: SEARCH_FILTER_SEARCH_EXHIBITORS_STRING,
|
|
2148
|
-
name: SEARCH_FILTER_SEARCH_EXHIBITORS_STRING,
|
|
2149
|
-
items: null
|
|
2150
|
-
},
|
|
2151
|
-
id: '8f717220-83d9-11ea-967c-97ffdeb65ced',
|
|
2152
|
-
metaDescription: '',
|
|
2153
|
-
canonicalUrl: null,
|
|
2154
|
-
metaTitle: 'Virtual Boat Show - New Build',
|
|
2155
|
-
open: false,
|
|
2156
|
-
selectedImage: 0,
|
|
2157
|
-
lightboxImages: [],
|
|
2158
|
-
desktop: true,
|
|
2159
|
-
tablet: true,
|
|
2160
|
-
mobile: true,
|
|
2161
|
-
gtmClassName: null,
|
|
2162
|
-
modifier: 'vbs-list-compact',
|
|
2163
|
-
elementTitle: null,
|
|
2164
|
-
displayCount: false,
|
|
2165
|
-
itemsPerPage: 0,
|
|
2166
|
-
limit: 0,
|
|
2167
|
-
offset: 0,
|
|
2168
|
-
sortby: ['name'],
|
|
2169
|
-
sort: 'ASC',
|
|
2170
|
-
filterByFeatured: false,
|
|
2171
|
-
filterBySponsored: false,
|
|
2172
|
-
filterByProperty: ['tagIds/tag'],
|
|
2173
|
-
filterBy: [],
|
|
2174
|
-
operator: 'AND',
|
|
2175
|
-
displayCategory: true,
|
|
2176
|
-
itemsToDisplay: [],
|
|
2177
|
-
children: []
|
|
2178
|
-
};
|
|
2179
|
-
|
|
2180
|
-
const MOCKED_GTM_CLASSNAME_SETTINGS = {
|
|
2181
|
-
name: 'row-content specific main body',
|
|
2182
|
-
modifier: null,
|
|
2183
|
-
width: 'wide',
|
|
2184
|
-
backgroundImage: null,
|
|
2185
|
-
desktop: true,
|
|
2186
|
-
tablet: true,
|
|
2187
|
-
mobile: true
|
|
2188
|
-
};
|
|
2189
|
-
|
|
2190
|
-
const GET_ENTITY_DATA_QUERY = gql`
|
|
2191
|
-
query getEntityData($id: String!) {
|
|
2192
|
-
entityData: getBanner(id: $id) {
|
|
2193
|
-
sizes {
|
|
2194
|
-
width
|
|
2195
|
-
height
|
|
2196
|
-
viewports {
|
|
2197
|
-
width
|
|
2198
|
-
height
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
id
|
|
2202
|
-
__typename
|
|
2203
|
-
}
|
|
2204
|
-
}
|
|
2205
|
-
`;
|
|
2206
|
-
|
|
2207
|
-
const GET_PUBLISHED_PAGE = gql`
|
|
2208
|
-
query getEntityData($id: String!) {
|
|
2209
|
-
entityData: getPublishedPage(id: $id) {
|
|
2210
|
-
publishedPages {
|
|
2211
|
-
imageId
|
|
2212
|
-
__typename
|
|
2213
|
-
}
|
|
2214
|
-
id
|
|
2215
|
-
__typename
|
|
2216
|
-
}
|
|
2217
|
-
}
|
|
2218
|
-
`;
|
|
2219
|
-
|
|
2220
|
-
const GET_PUBLISHED_PAGE_NO_IMAGE_RELATION = gql`
|
|
2221
|
-
query getEntityData($id: String!) {
|
|
2222
|
-
entityData: getPublishedPage(id: $id) {
|
|
2223
|
-
id
|
|
2224
|
-
id
|
|
2225
|
-
__typename
|
|
2226
|
-
}
|
|
2227
|
-
}
|
|
2228
|
-
`;
|
|
2229
|
-
|
|
2230
|
-
const GET_PUBLISHED_PAGE_PREVIEW = gql`
|
|
2231
|
-
query getEntityData($id: String!) {
|
|
2232
|
-
entityData: getPage(id: $id) {
|
|
2233
|
-
publishedPages {
|
|
2234
|
-
imageId
|
|
2235
|
-
__typename
|
|
2236
|
-
}
|
|
2237
|
-
id
|
|
2238
|
-
__typename
|
|
2239
|
-
}
|
|
2240
|
-
}
|
|
2241
|
-
`;
|
|
2242
|
-
|
|
2243
|
-
const expectedId = '39c3c350-ff0d-11ea-81bc-6111e210dc3f';
|
|
2244
|
-
const expectedImageId = 'e5b78190-3a43-11ea-bb47-d191b56a74b4';
|
|
2245
|
-
const expectedIdFromRelation = 'e222e300-e211-11ea-bb57-75eb5a4f187b';
|
|
2246
|
-
|
|
2247
|
-
const GET_IMAGE_ID_FROM_RELATION_MOCK = [
|
|
2248
|
-
{
|
|
2249
|
-
request: {
|
|
2250
|
-
query: GET_ENTITY_DATA_QUERY,
|
|
2251
|
-
variables: {
|
|
2252
|
-
id: '48c792e0-6dd2-11ea-a7dc-bf7382a1aea1'
|
|
2253
|
-
}
|
|
2254
|
-
},
|
|
2255
|
-
result: {
|
|
2256
|
-
data: {
|
|
2257
|
-
entityData: {
|
|
2258
|
-
sizes: [
|
|
2259
|
-
{
|
|
2260
|
-
width: 300,
|
|
2261
|
-
height: 250,
|
|
2262
|
-
viewports: [
|
|
2263
|
-
{
|
|
2264
|
-
width: 300,
|
|
2265
|
-
height: 250
|
|
2266
|
-
}
|
|
2267
|
-
]
|
|
2268
|
-
}
|
|
2269
|
-
],
|
|
2270
|
-
id: '48c792e0-6dd2-11ea-a7dc-bf7382a1aea1',
|
|
2271
|
-
__typename: 'Banner'
|
|
2272
|
-
}
|
|
2273
|
-
},
|
|
2274
|
-
loading: true,
|
|
2275
|
-
networkStatus: 1,
|
|
2276
|
-
stale: false
|
|
2277
|
-
}
|
|
2278
|
-
},
|
|
2279
|
-
{
|
|
2280
|
-
request: {
|
|
2281
|
-
query: GET_PUBLISHED_PAGE,
|
|
2282
|
-
variables: {
|
|
2283
|
-
id: expectedIdFromRelation
|
|
2284
|
-
}
|
|
2285
|
-
},
|
|
2286
|
-
result: {
|
|
2287
|
-
data: {
|
|
2288
|
-
entityData: {
|
|
2289
|
-
publishedPages: [
|
|
2290
|
-
{
|
|
2291
|
-
imageId: expectedImageId,
|
|
2292
|
-
__typename: 'PublishedBroker'
|
|
2293
|
-
}
|
|
2294
|
-
],
|
|
2295
|
-
id: expectedId,
|
|
2296
|
-
__typename: 'PublishedPage'
|
|
2297
|
-
}
|
|
2298
|
-
},
|
|
2299
|
-
loading: false,
|
|
2300
|
-
networkStatus: 7,
|
|
2301
|
-
stale: false
|
|
2302
|
-
}
|
|
2303
|
-
},
|
|
2304
|
-
{
|
|
2305
|
-
request: {
|
|
2306
|
-
query: GET_PUBLISHED_PAGE_NO_IMAGE_RELATION,
|
|
2307
|
-
variables: {
|
|
2308
|
-
id: expectedIdFromRelation
|
|
2309
|
-
}
|
|
2310
|
-
},
|
|
2311
|
-
result: {
|
|
2312
|
-
data: {
|
|
2313
|
-
entityData: {
|
|
2314
|
-
publishedPages: [
|
|
2315
|
-
{
|
|
2316
|
-
imageId: expectedImageId,
|
|
2317
|
-
__typename: 'PublishedBroker'
|
|
2318
|
-
}
|
|
2319
|
-
],
|
|
2320
|
-
id: expectedId,
|
|
2321
|
-
__typename: 'PublishedPage'
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
},
|
|
2326
|
-
{
|
|
2327
|
-
request: {
|
|
2328
|
-
query: GET_PUBLISHED_PAGE_NO_IMAGE_RELATION,
|
|
2329
|
-
variables: {
|
|
2330
|
-
id: expectedIdFromRelation
|
|
2331
|
-
}
|
|
2332
|
-
},
|
|
2333
|
-
result: {
|
|
2334
|
-
data: {
|
|
2335
|
-
entityData: {
|
|
2336
|
-
publishedPages: [
|
|
2337
|
-
{
|
|
2338
|
-
imageId: expectedImageId,
|
|
2339
|
-
__typename: 'PublishedBroker'
|
|
2340
|
-
}
|
|
2341
|
-
],
|
|
2342
|
-
id: expectedId,
|
|
2343
|
-
__typename: 'PublishedPage'
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
}
|
|
2347
|
-
},
|
|
2348
|
-
{
|
|
2349
|
-
request: {
|
|
2350
|
-
query: GET_PUBLISHED_PAGE_NO_IMAGE_RELATION,
|
|
2351
|
-
variables: {
|
|
2352
|
-
id: expectedIdFromRelation
|
|
2353
|
-
}
|
|
2354
|
-
},
|
|
2355
|
-
result: {
|
|
2356
|
-
data: {
|
|
2357
|
-
entityData: {
|
|
2358
|
-
publishedPages: [
|
|
2359
|
-
{
|
|
2360
|
-
imageId: expectedImageId,
|
|
2361
|
-
__typename: 'PublishedBroker'
|
|
2362
|
-
}
|
|
2363
|
-
],
|
|
2364
|
-
id: expectedId,
|
|
2365
|
-
__typename: 'PublishedPage'
|
|
2366
|
-
}
|
|
2367
|
-
}
|
|
2368
|
-
}
|
|
2369
|
-
},
|
|
2370
|
-
{
|
|
2371
|
-
request: {
|
|
2372
|
-
query: GET_PUBLISHED_PAGE_PREVIEW,
|
|
2373
|
-
variables: {
|
|
2374
|
-
id: expectedIdFromRelation
|
|
2375
|
-
}
|
|
2376
|
-
},
|
|
2377
|
-
result: {
|
|
2378
|
-
data: {
|
|
2379
|
-
entityData: {
|
|
2380
|
-
publishedPages: [],
|
|
2381
|
-
id: expectedId,
|
|
2382
|
-
__typename: 'PublishedPage'
|
|
2383
|
-
}
|
|
2384
|
-
}
|
|
2385
|
-
}
|
|
2386
|
-
},
|
|
2387
|
-
{
|
|
2388
|
-
request: {
|
|
2389
|
-
query: GET_PUBLISHED_PAGE_PREVIEW,
|
|
2390
|
-
variables: {
|
|
2391
|
-
id: expectedIdFromRelation
|
|
2392
|
-
}
|
|
2393
|
-
},
|
|
2394
|
-
result: {
|
|
2395
|
-
data: {
|
|
2396
|
-
entityData: {
|
|
2397
|
-
publishedPages: [],
|
|
2398
|
-
id: expectedId,
|
|
2399
|
-
__typename: 'PublishedPage'
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
}
|
|
2403
|
-
},
|
|
2404
|
-
{
|
|
2405
|
-
request: {
|
|
2406
|
-
query: GET_PUBLISHED_PAGE_PREVIEW,
|
|
2407
|
-
variables: {
|
|
2408
|
-
id: expectedIdFromRelation
|
|
2409
|
-
}
|
|
2410
|
-
},
|
|
2411
|
-
result: {
|
|
2412
|
-
data: {
|
|
2413
|
-
entityData: {
|
|
2414
|
-
publishedPages: [],
|
|
2415
|
-
id: expectedId,
|
|
2416
|
-
__typename: 'PublishedPage'
|
|
2417
|
-
}
|
|
2418
|
-
}
|
|
2419
|
-
}
|
|
2420
|
-
}
|
|
2421
|
-
];
|
|
2422
|
-
|
|
2423
|
-
export {
|
|
2424
|
-
PAGE_BUILDER_MOCK,
|
|
2425
|
-
DATA_SUMMARY_MOCK,
|
|
2426
|
-
CARD_RECORD,
|
|
2427
|
-
CARD_RENDER_ENTITY_DATA_MOCK,
|
|
2428
|
-
CARD_RENDER_EMPTY_ENTITY_DATA_MOCK,
|
|
2429
|
-
CARD_RENDER_SEARCH_PUBLISHED_MOCK,
|
|
2430
|
-
ENTITY_DATA_MOCK,
|
|
2431
|
-
ENTITY_DATA_MOCK_ERROR,
|
|
2432
|
-
BANNER_MOCK,
|
|
2433
|
-
COUNT_MOCK,
|
|
2434
|
-
MOCKED_ARGS,
|
|
2435
|
-
SEARCH_VALUES_TEXT_EMPTY,
|
|
2436
|
-
SEARCH_VALUES_CHECKBOX_SELECT,
|
|
2437
|
-
AND_OPERATOR,
|
|
2438
|
-
SEARCH_VALUES_TEXT,
|
|
2439
|
-
SEARCH_PUBLISHED_MOCK,
|
|
2440
|
-
MOCKED_PROPS_FILTERS_LIST,
|
|
2441
|
-
MOCKED_PROPS_SEARCH_FILTER,
|
|
2442
|
-
MOCKED_EVENT_CHECKBOX,
|
|
2443
|
-
MOCKED_FILTERS_CHECKBOX,
|
|
2444
|
-
MOCKED_EVENT_CHECKBOX_ARRAY,
|
|
2445
|
-
MOCKED_EVENT_SELECT,
|
|
2446
|
-
MOCKED_FILTERS_SELECT,
|
|
2447
|
-
MOCKED_GTM_CHILD_COMPONENTS,
|
|
2448
|
-
MOCKED_GTM_CLASSNAME_SETTINGS,
|
|
2449
|
-
MOCKED_INFINITE_SCROLL_PROPS,
|
|
2450
|
-
MOCKED_EVENT_SELECT_DEFAULT,
|
|
2451
|
-
MOCKED_RANGE_FILTER,
|
|
2452
|
-
MOCKED_ALL_FILTERS,
|
|
2453
|
-
MOCKED_EVENT_TEXT,
|
|
2454
|
-
MOCKED_FILTERS_TEXT,
|
|
2455
|
-
MOCKED_ALL_FILTERS_INCLUDING_TEXT,
|
|
2456
|
-
MOCKED_SORT_DATA,
|
|
2457
|
-
MOCKED_SORT_IDS,
|
|
2458
|
-
MOCKED_SORT_RESULTS,
|
|
2459
|
-
MOCKED_SCHEMA_FOR_FILTERS,
|
|
2460
|
-
RAW_QUERY_ONLY_TEXT_SEARCH,
|
|
2461
|
-
RAW_QUERY_CHECKBOX_SELECT,
|
|
2462
|
-
RAW_QUERY_CHECKBOX_SELECT_CHECKBOX_HAS_OR_OPERATOR,
|
|
2463
|
-
RAW_QUERY_ALL_SEARCH_VALUE_SAME_OPERATOR,
|
|
2464
|
-
RAW_QUERY_ALL_SEARCH_VALUE_DIFFERENT_OPERATOR,
|
|
2465
|
-
RAW_QUERY_ALL_SEARCH_VALUE_SAME_OPERATOR_TEXT_CHECKBOX_HAS_OR_OPERATOR,
|
|
2466
|
-
RAW_QUERY_ALL_SEARCH_VALUE_DIFFERENT_OPERATOR_TEXT_CHECKBOX_HAS_OR_OPERATOR,
|
|
2467
|
-
RAW_QUERY_STRINGIFIED,
|
|
2468
|
-
RAW_QUERY_STRINGIFIED_WITH_RANGE,
|
|
2469
|
-
RAW_QUERY_CHECKBOX_FILTERS,
|
|
2470
|
-
RAW_QUERY_ONE_CHECKBOX_FILTERS,
|
|
2471
|
-
RAW_QUERY_ONE_CHECKBOX_FILTERS_AND_OTHER_FILTERS,
|
|
2472
|
-
RAW_QUERY_BASE_CHECKBOX_FILTERS,
|
|
2473
|
-
RAW_QUERY_BASE_ONE_CHECKBOX_FILTERS,
|
|
2474
|
-
RAW_QUERY_BASE_ONE_CHECKBOX_FILTERS_AND_OTHER_FILTERS,
|
|
2475
|
-
RAW_QUERY_ITEMS_TO_DISPLAY,
|
|
2476
|
-
FILTER_VALUES,
|
|
2477
|
-
UPDATED_RANGES_EMPTY,
|
|
2478
|
-
UPDATED_RANGES,
|
|
2479
|
-
UPDATED_RANGES_OTHER_VALUE,
|
|
2480
|
-
RAW_QUERY_ONE_CHECKBOX_FILTERS_AND_OTHER_FILTERS_OR_OPERATOR,
|
|
2481
|
-
RAW_QUERY_OR_OPERATOR_ITEMS_TO_DISPLAY,
|
|
2482
|
-
RAW_QUERY_BASE_ONE_CHECKBOX_FILTERS_AND_OTHER_FILTERS_OR_OPERATOR,
|
|
2483
|
-
RAW_QUERY_BASE_ONE_CHECKBOX_FILTERS_AND_OTHER_FILTERS_OR_OPERATOR_ITEMS_TO_DISPLAY,
|
|
2484
|
-
RAW_QUERY_FINAL_VALUES_WITH_AND_UPDATED,
|
|
2485
|
-
RAW_QUERY_WITH_ITEMS_TO_DISPLAY,
|
|
2486
|
-
RAW_QUERY_EMPTY_FILTERS_VALUE,
|
|
2487
|
-
RAW_QUERY_WITH_SHOULD_APPLY_SORT,
|
|
2488
|
-
RAW_QUERY_WITH_AGGS,
|
|
2489
|
-
DATA_SUMMARY_ERROR_MOCK,
|
|
2490
|
-
RAW_QUERY_WITH_QUERY_FILTERS,
|
|
2491
|
-
WITH_INFINITE_SCROLL_SEARCH_PUBLISHED_MOCK,
|
|
2492
|
-
ENTITY_SCHEMA_AS_OBJECT,
|
|
2493
|
-
GET_IMAGE_ID_FROM_RELATION_MOCK
|
|
2494
|
-
};
|