@blaze-cms/react-page-builder 0.146.0-alpha.49 → 0.146.0-alpha.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/lib/BannerContext/index.js +1 -2
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +2 -3
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +1 -2
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/application/query/index.js +9 -8
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +1 -2
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +2 -3
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +2 -3
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/helpers.js +3 -3
- package/lib/components/Banner/helpers.js.map +1 -1
- package/lib/components/Banner/index.js +2 -3
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +1 -2
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +2 -3
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Button.js +1 -2
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +1 -2
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +2 -3
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsRender.js +1 -2
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/CarouselRender.js +1 -0
- package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js +1 -2
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/ClickWrapper.js +1 -2
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +1 -2
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +1 -2
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +2 -3
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js +1 -0
- package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +1 -2
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryRender.js +1 -0
- package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +6 -7
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +1 -2
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/ErrorMessage/ErrorMessage.js.map +1 -1
- package/lib/components/ErrorMessage/index.js +2 -3
- package/lib/components/ErrorMessage/index.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +1 -2
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +2 -3
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +1 -2
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +2 -3
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +1 -2
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +1 -2
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-ids.js +1 -0
- package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib/components/ItemList/helpers/set-param-and-redirect.js +1 -0
- package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib/components/Layout/LayoutFactory.js +2 -3
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +1 -2
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/LazyImage/index.js +2 -3
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListFactory.js +1 -2
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js +26 -7
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +1 -2
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -3
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +2 -3
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +2 -3
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js +1 -0
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js +9 -6
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +8 -12
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-banner.js +0 -1
- 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 +0 -1
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js +4 -3
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-url.js +2 -2
- package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib/components/List/helpers/build-query-booster.js +2 -1
- package/lib/components/List/helpers/build-query-booster.js.map +1 -1
- package/lib/components/Loading/index.js +16 -3
- package/lib/components/Loading/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +1 -2
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/MenuItem/MenuItemRender.js +1 -2
- package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/ModalAdapter/ModalAdapter.js +1 -1
- package/lib/components/ModalAdapter/ModalAdapter.js.map +1 -1
- package/lib/components/ModalAdapter/index.js +2 -3
- package/lib/components/ModalAdapter/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +1 -2
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentItems.js +1 -0
- package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +2 -3
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +6 -8
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +1 -2
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/components/Range.js.map +1 -1
- package/lib/components/SearchFilter/components/Select.js.map +1 -1
- package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +1 -0
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-select-options.js +1 -0
- package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib/components/SearchFilter/helpers/parse-filter-value.js +1 -0
- package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js +1 -0
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollowRender.js +1 -0
- package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib/components/Video/VideoModal.js +1 -2
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +1 -2
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +1 -2
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +1 -2
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -3
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +1 -2
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +6 -7
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/index.js +31 -32
- package/lib/components/index.js.map +1 -1
- package/lib/constants/index.js +3 -2
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/build-query-fields.js +2 -1
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/build-raw-query-stringified.js +1 -0
- package/lib/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib/helpers/check-props-to-use.js +1 -0
- package/lib/helpers/check-props-to-use.js.map +1 -1
- package/lib/helpers/get-component-id.js +18 -0
- package/lib/helpers/get-component-id.js.map +1 -0
- package/lib/helpers/get-entities-with-banner.js +1 -1
- package/lib/helpers/get-generic-render-variables.js +1 -0
- package/lib/helpers/get-generic-render-variables.js.map +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js +1 -0
- package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib/helpers/index.js +7 -0
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js +1 -0
- 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-nodes/get-banners-for-nodes.js +1 -1
- package/lib/helpers/is-filter-entitys-id.js +0 -1
- package/lib/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +1 -2
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +1 -2
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/process-data-summary-value.js +2 -3
- package/lib/helpers/process-data-summary-value.js.map +1 -1
- package/lib/helpers/remove-unwanted-characters.js +1 -1
- package/lib/helpers/render-children.js +3 -3
- package/lib/helpers/render-children.js.map +1 -1
- package/lib/hooks/helpers/RenderComponent.js +0 -1
- package/lib/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib/hooks/helpers/StoreImages.js +1 -2
- package/lib/hooks/helpers/StoreImages.js.map +1 -1
- package/lib/hooks/helpers/check-collisions.js +0 -1
- package/lib/hooks/helpers/check-collisions.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js +7 -8
- package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib/hooks/use-page-builder.js +1 -1
- package/lib/hooks/use-page-builder.js.map +1 -1
- package/lib/hooks/use-portal.js +1 -2
- package/lib/hooks/use-portal.js.map +1 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/get-class-modifiers.js +0 -1
- package/lib/utils/get-class-modifiers.js.map +1 -1
- package/lib/utils/get-props-to-display-modifiers.js +1 -0
- package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib/variants/FloatingSideButton/index.js.map +1 -1
- package/lib/variants/HeroImage/index.js.map +1 -1
- package/lib/variants/Infographic/index.js +2 -3
- package/lib/variants/Infographic/index.js.map +1 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js +1 -2
- package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -1
- package/lib/variants/LiveBlogList/index.js +2 -3
- package/lib/variants/LiveBlogList/index.js.map +1 -1
- package/lib/variants/LongformGallery/LongformGallery.js +1 -0
- package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
- package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
- package/lib/variants/LongformGallery/index.js +2 -3
- package/lib/variants/LongformGallery/index.js.map +1 -1
- package/lib/variants/LongformRow/index.js.map +1 -1
- package/lib/variants/ParallaxImageTextRight/index.js.map +1 -1
- package/lib/variants/SlideSummary/index.js +2 -3
- package/lib/variants/SlideSummary/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js +1 -0
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/index.js +2 -3
- package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
- package/lib-es/HOC/recreateOnNavigation.js.map +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/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/Card/Card.js.map +1 -1
- package/lib-es/components/Card/CardsFactory.js.map +1 -1
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.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/ContentGroupTabs.js.map +1 -1
- package/lib-es/components/ContentGroup/helpers/get-active-tab.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-value-from-array.js.map +1 -1
- 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.map +1 -1
- 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/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/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/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/ListRender.js +21 -10
- package/lib-es/components/List/ListRender.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 +9 -6
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib-es/components/List/components/Pagination/ListPagination.js +8 -11
- package/lib-es/components/List/components/Pagination/ListPagination.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 +4 -3
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-url.js +2 -2
- package/lib-es/components/List/helpers/build-pagination-url.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/Loading/Loading.js.map +1 -1
- package/lib-es/components/Loading/index.js +2 -2
- package/lib-es/components/Loading/index.js.map +1 -1
- package/lib-es/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -1
- 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.map +1 -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 +7 -5
- 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.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.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 +2 -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 +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.map +1 -1
- package/lib-es/helpers/build-sort-values.js.map +1 -1
- package/lib-es/helpers/get-component-id.js +7 -0
- package/lib-es/helpers/get-component-id.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-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/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/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib-es/hooks/helpers/buildPBComponents.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/use-app-sync-event-hook.js.map +1 -1
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib-es/index.js +1 -1
- package/lib-es/index.js.map +1 -1
- 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/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/index.js +1 -1
- package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -1
- package/package.json +4 -3
- package/src/components/List/ListRender.js +56 -40
- package/src/components/List/components/Pagination/Classic.js +26 -6
- package/src/components/List/components/Pagination/ListPagination.js +8 -12
- package/src/components/List/helpers/build-pagination-items.js +11 -3
- package/src/components/List/helpers/build-pagination-url.js +2 -2
- package/src/components/Loading/index.js +2 -2
- package/src/components/SearchFilter/SearchFilterContainer.js +11 -5
- package/src/constants/index.js +4 -1
- package/src/helpers/build-query-fields.js +1 -1
- package/src/helpers/get-component-id.js +9 -0
- package/src/helpers/index.js +1 -0
- package/src/index.js +2 -1
- package/tests/unit/src/components/List/__snapshots__/ListRender.test.js.snap +4 -2
- package/tests/unit/src/components/List/helpers/__snapshots__/build-pagination-items.test.js.snap +21 -21
- package/tests/unit/src/components/Loading/__snapshots__/Loading.test.js.snap +2 -14
- package/tests/unit/src/helpers/__snapshots__/build-query-fields.test.js.snap +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
2
|
import { useQuery } from '@apollo/client';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import ListPagination from './components/Pagination';
|
|
@@ -6,6 +6,7 @@ import ListHeader from './components/Header';
|
|
|
6
6
|
import { LOAD_MORE } from '../../constants';
|
|
7
7
|
import { useAppSyncEventHook } from '../../hooks';
|
|
8
8
|
import { buildQueryBooster } from './helpers';
|
|
9
|
+
import { getComponentId } from '../../helpers';
|
|
9
10
|
|
|
10
11
|
const ListRender = props => {
|
|
11
12
|
const {
|
|
@@ -28,65 +29,80 @@ const ListRender = props => {
|
|
|
28
29
|
azFilter,
|
|
29
30
|
displayTotal
|
|
30
31
|
} = props;
|
|
32
|
+
const listRef = useRef(null);
|
|
31
33
|
const { data: updatedVariables } = useAppSyncEventHook({
|
|
32
34
|
eventName: 'list:query-variables',
|
|
33
35
|
data: variables,
|
|
34
36
|
props
|
|
35
37
|
});
|
|
36
38
|
const boostedVariables = buildQueryBooster(props, updatedVariables);
|
|
37
|
-
const { data = {}, error, loading, fetchMore } = useQuery(action, {
|
|
39
|
+
const { data = { [actionKey]: [], total: 0 }, error, loading, fetchMore } = useQuery(action, {
|
|
38
40
|
variables: boostedVariables
|
|
39
41
|
});
|
|
40
42
|
|
|
41
|
-
if (loading)
|
|
43
|
+
if (loading && !listRef.current) {
|
|
44
|
+
// don't render if loading for the first time with no data
|
|
45
|
+
return '';
|
|
46
|
+
}
|
|
42
47
|
if (error) return error.message;
|
|
43
48
|
if (!data[actionKey] || !data[actionKey].results) return null;
|
|
44
49
|
|
|
45
50
|
const listData = data[actionKey].results;
|
|
46
51
|
const listTotal = data[actionKey].total;
|
|
47
52
|
|
|
48
|
-
if (!listData || !listData.length) return null;
|
|
49
|
-
const
|
|
53
|
+
if ((!listData || !listData.length) && !loading) return null;
|
|
54
|
+
const currentListLength = listData.length;
|
|
50
55
|
const currentPage = Math.ceil((initialOffset + currentListLength) / itemsPerPageToUse);
|
|
51
56
|
const totalDisplay = limitToUse && listTotal > limitToUse ? limitToUse : listTotal;
|
|
57
|
+
const componentId = getComponentId(name);
|
|
52
58
|
|
|
53
59
|
return (
|
|
54
60
|
<>
|
|
55
|
-
<
|
|
56
|
-
{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
61
|
+
<div ref={listRef} id={componentId} className="list-top" />
|
|
62
|
+
{!loading && (
|
|
63
|
+
<>
|
|
64
|
+
{isAZ && (
|
|
65
|
+
<ListHeader name={name} listAggregations={listAggregations} azFilter={azFilter} />
|
|
66
|
+
)}
|
|
67
|
+
{displayTotal && (
|
|
68
|
+
<div className="list_total_results w-full text-left p-4">
|
|
69
|
+
Total results: {totalDisplay}
|
|
70
|
+
</div>
|
|
71
|
+
)}
|
|
72
|
+
<ListComponent
|
|
73
|
+
orderedListData={listData}
|
|
74
|
+
isInfinite={isInfinite}
|
|
75
|
+
initialOffset={initialOffset}
|
|
76
|
+
actionKey={actionKey}
|
|
77
|
+
limitToUse={limitToUse}
|
|
78
|
+
fetchMore={fetchMore}
|
|
79
|
+
omitWrappers={omitWrappers}
|
|
80
|
+
itemsPerPageToUse={itemsPerPageToUse || listData.length}
|
|
81
|
+
listTotal={listTotal}
|
|
82
|
+
currentListLength={currentListLength}
|
|
83
|
+
currentPage={currentPage}
|
|
84
|
+
query={query}
|
|
85
|
+
url={url}
|
|
86
|
+
itemsToDisplay={itemsToDisplay}
|
|
87
|
+
{...props}
|
|
88
|
+
/>
|
|
89
|
+
{paginationType !== LOAD_MORE && (
|
|
90
|
+
<ListPagination
|
|
91
|
+
listRef={listRef}
|
|
92
|
+
componentId={componentId}
|
|
93
|
+
limitToUse={limitToUse}
|
|
94
|
+
itemsPerPage={itemsPerPageToUse}
|
|
95
|
+
listTotal={listTotal}
|
|
96
|
+
name={name}
|
|
97
|
+
isInfinite={isInfinite}
|
|
98
|
+
currentListLength={currentListLength}
|
|
99
|
+
paginationType={paginationType}
|
|
100
|
+
currentPage={currentPage}
|
|
101
|
+
query={query}
|
|
102
|
+
url={url}
|
|
103
|
+
/>
|
|
104
|
+
)}
|
|
105
|
+
</>
|
|
90
106
|
)}
|
|
91
107
|
</>
|
|
92
108
|
);
|
|
@@ -5,13 +5,32 @@ import BlazeLink from '../../../BlazeLink';
|
|
|
5
5
|
import buildPaginationUrl from '../../helpers/build-pagination-url';
|
|
6
6
|
import { NEXT_STRING, PREVIOUS_STRING } from '../../../../constants';
|
|
7
7
|
|
|
8
|
-
const Classic = ({
|
|
9
|
-
|
|
8
|
+
const Classic = ({
|
|
9
|
+
name,
|
|
10
|
+
numberOfPages,
|
|
11
|
+
currentPage,
|
|
12
|
+
query,
|
|
13
|
+
url,
|
|
14
|
+
isLastPage,
|
|
15
|
+
onClick,
|
|
16
|
+
componentId
|
|
17
|
+
}) => {
|
|
18
|
+
const pages = buildPaginationItems({
|
|
19
|
+
name,
|
|
20
|
+
numberOfPages,
|
|
21
|
+
currentPage,
|
|
22
|
+
query,
|
|
23
|
+
url,
|
|
24
|
+
onClick,
|
|
25
|
+
componentId
|
|
26
|
+
});
|
|
10
27
|
const nextPage = currentPage + 1;
|
|
11
28
|
const previousPage = currentPage - 1;
|
|
12
29
|
const previousPageLink =
|
|
13
|
-
currentPage > 1 ? buildPaginationUrl(name, previousPage, query, url) : null;
|
|
14
|
-
const nextPageLink = !isLastPage
|
|
30
|
+
currentPage > 1 ? buildPaginationUrl(name, previousPage, query, url, componentId) : null;
|
|
31
|
+
const nextPageLink = !isLastPage
|
|
32
|
+
? buildPaginationUrl(name, nextPage, query, url, componentId)
|
|
33
|
+
: null;
|
|
15
34
|
|
|
16
35
|
return (
|
|
17
36
|
<>
|
|
@@ -21,7 +40,7 @@ const Classic = ({ name, numberOfPages, currentPage, query, url, isLastPage, onC
|
|
|
21
40
|
className="pagination_page-previous"
|
|
22
41
|
onClick={onClick}
|
|
23
42
|
shallow
|
|
24
|
-
scroll>
|
|
43
|
+
scroll={false}>
|
|
25
44
|
{`${PREVIOUS_STRING} page`}
|
|
26
45
|
</BlazeLink>
|
|
27
46
|
)}
|
|
@@ -32,7 +51,7 @@ const Classic = ({ name, numberOfPages, currentPage, query, url, isLastPage, onC
|
|
|
32
51
|
className="pagination_page-next"
|
|
33
52
|
onClick={onClick}
|
|
34
53
|
shallow
|
|
35
|
-
scroll>
|
|
54
|
+
scroll={false}>
|
|
36
55
|
{`${NEXT_STRING} page`}
|
|
37
56
|
</BlazeLink>
|
|
38
57
|
)}
|
|
@@ -41,6 +60,7 @@ const Classic = ({ name, numberOfPages, currentPage, query, url, isLastPage, onC
|
|
|
41
60
|
};
|
|
42
61
|
|
|
43
62
|
Classic.propTypes = {
|
|
63
|
+
componentId: PropTypes.string.isRequired,
|
|
44
64
|
numberOfPages: PropTypes.number.isRequired,
|
|
45
65
|
currentPage: PropTypes.number.isRequired,
|
|
46
66
|
name: PropTypes.string.isRequired,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, { useState, useEffect
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Classic from './Classic';
|
|
4
4
|
import LoadMore from './LoadMore';
|
|
5
|
-
import { LOAD_MORE
|
|
5
|
+
import { LOAD_MORE } from '../../../../constants';
|
|
6
6
|
|
|
7
7
|
const ListPagination = ({
|
|
8
|
+
listRef,
|
|
8
9
|
listTotal,
|
|
9
10
|
name,
|
|
10
11
|
itemsPerPage,
|
|
@@ -15,18 +16,12 @@ const ListPagination = ({
|
|
|
15
16
|
...props
|
|
16
17
|
}) => {
|
|
17
18
|
const [showPagination, setShowPagination] = useState(true);
|
|
18
|
-
const paginationRef = useRef(null);
|
|
19
19
|
|
|
20
20
|
const isLoadMore = paginationType === LOAD_MORE;
|
|
21
|
+
|
|
21
22
|
const scrollOnClick = () => {
|
|
22
|
-
if (!isLoadMore &&
|
|
23
|
-
|
|
24
|
-
left: 0,
|
|
25
|
-
top:
|
|
26
|
-
window.pageYOffset -
|
|
27
|
-
SCROLL_OFFSET +
|
|
28
|
-
paginationRef.current.previousSibling.getBoundingClientRect().top
|
|
29
|
-
});
|
|
23
|
+
if (!isLoadMore && listRef && listRef.current) {
|
|
24
|
+
listRef.current.scrollIntoView();
|
|
30
25
|
}
|
|
31
26
|
};
|
|
32
27
|
|
|
@@ -54,13 +49,14 @@ const ListPagination = ({
|
|
|
54
49
|
};
|
|
55
50
|
|
|
56
51
|
return (
|
|
57
|
-
<div className="pagination"
|
|
52
|
+
<div className="pagination">
|
|
58
53
|
{isLoadMore ? <LoadMore {...paginationProps} /> : <Classic {...paginationProps} />}
|
|
59
54
|
</div>
|
|
60
55
|
);
|
|
61
56
|
};
|
|
62
57
|
|
|
63
58
|
ListPagination.propTypes = {
|
|
59
|
+
listRef: PropTypes.object.isRequired,
|
|
64
60
|
currentPage: PropTypes.number.isRequired,
|
|
65
61
|
paginationType: PropTypes.string.isRequired,
|
|
66
62
|
listTotal: PropTypes.number.isRequired,
|
|
@@ -3,7 +3,15 @@ import BlazeLink from '../../BlazeLink';
|
|
|
3
3
|
import buildPaginationUrl from './build-pagination-url';
|
|
4
4
|
import { PAGINATION_DISPLAY_LIMIT, PAGINATION_DIFFERENCE } from '../../../constants';
|
|
5
5
|
|
|
6
|
-
const buildPaginationItems = ({
|
|
6
|
+
const buildPaginationItems = ({
|
|
7
|
+
name,
|
|
8
|
+
numberOfPages,
|
|
9
|
+
currentPage,
|
|
10
|
+
query,
|
|
11
|
+
url,
|
|
12
|
+
onClick,
|
|
13
|
+
componentId
|
|
14
|
+
}) => {
|
|
7
15
|
const pages = [];
|
|
8
16
|
const paginationDifference =
|
|
9
17
|
currentPage > PAGINATION_DIFFERENCE ? currentPage - PAGINATION_DIFFERENCE : 0;
|
|
@@ -13,7 +21,7 @@ const buildPaginationItems = ({ name, numberOfPages, currentPage, query, url, on
|
|
|
13
21
|
for (let index = 0; index < numberOfPages; index += 1) {
|
|
14
22
|
const page = index + 1 + paginationDifference;
|
|
15
23
|
if (pages.length < PAGINATION_DISPLAY_LIMIT && page <= numberOfPages) {
|
|
16
|
-
const href = buildPaginationUrl(name, page, query, url);
|
|
24
|
+
const href = buildPaginationUrl(name, page, query, url, componentId);
|
|
17
25
|
const pageHtml =
|
|
18
26
|
page === currentPage ? (
|
|
19
27
|
<span key={page} className="pagination_page-item--current">
|
|
@@ -26,7 +34,7 @@ const buildPaginationItems = ({ name, numberOfPages, currentPage, query, url, on
|
|
|
26
34
|
className="pagination_page-item"
|
|
27
35
|
onClick={onClick}
|
|
28
36
|
shallow
|
|
29
|
-
scroll
|
|
37
|
+
scroll={false}
|
|
30
38
|
ariaLabel={`Page ${page}`}>
|
|
31
39
|
{page}
|
|
32
40
|
</BlazeLink>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { stringify } from 'query-string';
|
|
2
2
|
import { PB_QUERY_CONST, PAGINATION_QUERY_CONST } from '../../../constants';
|
|
3
3
|
|
|
4
|
-
const buildPaginationUrl = (name, page, query, url) => {
|
|
4
|
+
const buildPaginationUrl = (name, page, query, url, componentId) => {
|
|
5
5
|
const newQuery = { ...query, [`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`]: page };
|
|
6
6
|
const stringQuery = stringify(newQuery);
|
|
7
|
-
return `${url}?${stringQuery}`;
|
|
7
|
+
return `${url}?${stringQuery}${componentId ? `#${componentId}` : ''}`;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export default buildPaginationUrl;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import dynamic from 'next/dynamic';
|
|
2
2
|
|
|
3
|
-
export default Loading;
|
|
3
|
+
export default dynamic(() => import(/* webpackChunkName: "blazePbLoading" */ './Loading'));
|
|
@@ -19,7 +19,8 @@ import {
|
|
|
19
19
|
getInheritedFilters,
|
|
20
20
|
getQueryProps,
|
|
21
21
|
buildRawQueryStringified,
|
|
22
|
-
buildFiltersQuery
|
|
22
|
+
buildFiltersQuery,
|
|
23
|
+
getComponentId
|
|
23
24
|
} from '../../helpers';
|
|
24
25
|
import { RAW_RESULTS } from './constants';
|
|
25
26
|
import { SCROLL_OFFSET } from '../../constants';
|
|
@@ -133,10 +134,13 @@ const SearchFilterContainer = ({
|
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
const handleSearch = newQuery => {
|
|
137
|
+
const componentId = listComponentName ? getComponentId(listComponentName) : '';
|
|
136
138
|
setDisplaySearchFilter(false);
|
|
137
139
|
const hashBit = asPath.split('#')[1] || '';
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
let parsedHashBit = hashBit ? `#${hashBit}` : '';
|
|
141
|
+
parsedHashBit = parsedHashBit || `#${componentId}`;
|
|
142
|
+
|
|
143
|
+
scrollToFirstList(componentId);
|
|
140
144
|
if (!newQuery) {
|
|
141
145
|
const baseQuery = `${currentUrl}${parsedHashBit}`;
|
|
142
146
|
setUrlPath(baseQuery);
|
|
@@ -149,8 +153,10 @@ const SearchFilterContainer = ({
|
|
|
149
153
|
return router.push('/Resolver', newUrl, { shallow: !url, scroll: false });
|
|
150
154
|
};
|
|
151
155
|
|
|
152
|
-
const scrollToFirstList =
|
|
153
|
-
const
|
|
156
|
+
const scrollToFirstList = componentId => {
|
|
157
|
+
const list = componentId
|
|
158
|
+
? document.getElementById(componentId)
|
|
159
|
+
: document.getElementsByClassName('list-top')[0];
|
|
154
160
|
const shouldScrollToFirstList = !url && list;
|
|
155
161
|
|
|
156
162
|
if (shouldScrollToFirstList) {
|
package/src/constants/index.js
CHANGED
|
@@ -178,6 +178,8 @@ const DATA_SUMMARY_URL_REGEX = /(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,2
|
|
|
178
178
|
const DATA_SUMMARY_TEL_REGEX = /^\+{0,1}[0-9\(\)\.\- \/]{7,}$/; // note: very loose phone number match not for validation
|
|
179
179
|
const SIZE = process.env.BLAZE_PB_SEARCH_FILETER_AGG_SIZE || 500;
|
|
180
180
|
|
|
181
|
+
const COMPONENT_ID_PREFIX = 'pb-';
|
|
182
|
+
|
|
181
183
|
export {
|
|
182
184
|
BANNER_LOADING,
|
|
183
185
|
BANNER_EMPTY,
|
|
@@ -286,5 +288,6 @@ export {
|
|
|
286
288
|
DATA_SUMMARY_URL_REGEX,
|
|
287
289
|
DATA_SUMMARY_TEL_REGEX,
|
|
288
290
|
VIMEO_OEMBED_URL,
|
|
289
|
-
SIZE
|
|
291
|
+
SIZE,
|
|
292
|
+
COMPONENT_ID_PREFIX
|
|
290
293
|
};
|
package/src/helpers/index.js
CHANGED
|
@@ -61,3 +61,4 @@ export { default as shouldReturn } from './should-return';
|
|
|
61
61
|
export { default as shouldSkipSingleQuery } from './should-skip-single-query';
|
|
62
62
|
export { default as buildRawQueryStringified } from './build-raw-query-stringified';
|
|
63
63
|
export { default as buildFiltersQuery } from './build-filters-query';
|
|
64
|
+
export { default as getComponentId } from './get-component-id';
|
package/src/index.js
CHANGED
|
@@ -25,7 +25,8 @@ export {
|
|
|
25
25
|
buildFiltersQuery,
|
|
26
26
|
getUnpublishedEntityName,
|
|
27
27
|
renderChildren,
|
|
28
|
-
hasChildren
|
|
28
|
+
hasChildren,
|
|
29
|
+
getComponentId
|
|
29
30
|
} from './helpers';
|
|
30
31
|
export { withTitle } from './HOC';
|
|
31
32
|
export { useGetEntitySchema, useGetEntitySchemasAsObj, useGetSingleEntitySchema } from './hooks';
|
|
@@ -4,8 +4,9 @@ exports[`ListRender component should not render a List if no actionKey match is
|
|
|
4
4
|
|
|
5
5
|
exports[`ListRender component should not render a List with total if displayTotal is true 1`] = `
|
|
6
6
|
<DocumentFragment>
|
|
7
|
-
<
|
|
7
|
+
<div
|
|
8
8
|
class="list-top"
|
|
9
|
+
id="pb-list"
|
|
9
10
|
/>
|
|
10
11
|
<div
|
|
11
12
|
class="list_total_results w-full text-left p-4"
|
|
@@ -23,8 +24,9 @@ exports[`ListRender component should not render a List with total if displayTota
|
|
|
23
24
|
|
|
24
25
|
exports[`ListRender component should render a List based on passed parameters 1`] = `
|
|
25
26
|
<DocumentFragment>
|
|
26
|
-
<
|
|
27
|
+
<div
|
|
27
28
|
class="list-top"
|
|
29
|
+
id="pb-list"
|
|
28
30
|
/>
|
|
29
31
|
<div>
|
|
30
32
|
Mocked List Comp
|
package/tests/unit/src/components/List/helpers/__snapshots__/build-pagination-items.test.js.snap
CHANGED
|
@@ -10,7 +10,7 @@ Array [
|
|
|
10
10
|
href="url?pb%5Blist-1%5D%5Bpage%5D=1"
|
|
11
11
|
name=""
|
|
12
12
|
onClick={[MockFunction]}
|
|
13
|
-
scroll={
|
|
13
|
+
scroll={false}
|
|
14
14
|
shallow={true}
|
|
15
15
|
title=""
|
|
16
16
|
>
|
|
@@ -29,7 +29,7 @@ Array [
|
|
|
29
29
|
href="url?pb%5Blist-1%5D%5Bpage%5D=3"
|
|
30
30
|
name=""
|
|
31
31
|
onClick={[MockFunction]}
|
|
32
|
-
scroll={
|
|
32
|
+
scroll={false}
|
|
33
33
|
shallow={true}
|
|
34
34
|
title=""
|
|
35
35
|
>
|
|
@@ -43,7 +43,7 @@ Array [
|
|
|
43
43
|
href="url?pb%5Blist-1%5D%5Bpage%5D=4"
|
|
44
44
|
name=""
|
|
45
45
|
onClick={[MockFunction]}
|
|
46
|
-
scroll={
|
|
46
|
+
scroll={false}
|
|
47
47
|
shallow={true}
|
|
48
48
|
title=""
|
|
49
49
|
>
|
|
@@ -62,7 +62,7 @@ Array [
|
|
|
62
62
|
href="url?pb%5Blist-3%5D%5Bpage%5D=1"
|
|
63
63
|
name=""
|
|
64
64
|
onClick={null}
|
|
65
|
-
scroll={
|
|
65
|
+
scroll={false}
|
|
66
66
|
shallow={true}
|
|
67
67
|
title=""
|
|
68
68
|
>
|
|
@@ -76,7 +76,7 @@ Array [
|
|
|
76
76
|
href="url?pb%5Blist-3%5D%5Bpage%5D=2"
|
|
77
77
|
name=""
|
|
78
78
|
onClick={null}
|
|
79
|
-
scroll={
|
|
79
|
+
scroll={false}
|
|
80
80
|
shallow={true}
|
|
81
81
|
title=""
|
|
82
82
|
>
|
|
@@ -90,7 +90,7 @@ Array [
|
|
|
90
90
|
href="url?pb%5Blist-3%5D%5Bpage%5D=3"
|
|
91
91
|
name=""
|
|
92
92
|
onClick={null}
|
|
93
|
-
scroll={
|
|
93
|
+
scroll={false}
|
|
94
94
|
shallow={true}
|
|
95
95
|
title=""
|
|
96
96
|
>
|
|
@@ -104,7 +104,7 @@ Array [
|
|
|
104
104
|
href="url?pb%5Blist-3%5D%5Bpage%5D=4"
|
|
105
105
|
name=""
|
|
106
106
|
onClick={null}
|
|
107
|
-
scroll={
|
|
107
|
+
scroll={false}
|
|
108
108
|
shallow={true}
|
|
109
109
|
title=""
|
|
110
110
|
>
|
|
@@ -123,7 +123,7 @@ Array [
|
|
|
123
123
|
href="url?pb%5Blist-3%5D%5Bpage%5D=6"
|
|
124
124
|
name=""
|
|
125
125
|
onClick={null}
|
|
126
|
-
scroll={
|
|
126
|
+
scroll={false}
|
|
127
127
|
shallow={true}
|
|
128
128
|
title=""
|
|
129
129
|
>
|
|
@@ -137,7 +137,7 @@ Array [
|
|
|
137
137
|
href="url?pb%5Blist-3%5D%5Bpage%5D=7"
|
|
138
138
|
name=""
|
|
139
139
|
onClick={null}
|
|
140
|
-
scroll={
|
|
140
|
+
scroll={false}
|
|
141
141
|
shallow={true}
|
|
142
142
|
title=""
|
|
143
143
|
>
|
|
@@ -151,7 +151,7 @@ Array [
|
|
|
151
151
|
href="url?pb%5Blist-3%5D%5Bpage%5D=8"
|
|
152
152
|
name=""
|
|
153
153
|
onClick={null}
|
|
154
|
-
scroll={
|
|
154
|
+
scroll={false}
|
|
155
155
|
shallow={true}
|
|
156
156
|
title=""
|
|
157
157
|
>
|
|
@@ -165,7 +165,7 @@ Array [
|
|
|
165
165
|
href="url?pb%5Blist-3%5D%5Bpage%5D=9"
|
|
166
166
|
name=""
|
|
167
167
|
onClick={null}
|
|
168
|
-
scroll={
|
|
168
|
+
scroll={false}
|
|
169
169
|
shallow={true}
|
|
170
170
|
title=""
|
|
171
171
|
>
|
|
@@ -179,7 +179,7 @@ Array [
|
|
|
179
179
|
href="url?pb%5Blist-3%5D%5Bpage%5D=10"
|
|
180
180
|
name=""
|
|
181
181
|
onClick={null}
|
|
182
|
-
scroll={
|
|
182
|
+
scroll={false}
|
|
183
183
|
shallow={true}
|
|
184
184
|
title=""
|
|
185
185
|
>
|
|
@@ -198,7 +198,7 @@ Array [
|
|
|
198
198
|
href="url?pb%5Blist-2%5D%5Bpage%5D=4"
|
|
199
199
|
name=""
|
|
200
200
|
onClick={null}
|
|
201
|
-
scroll={
|
|
201
|
+
scroll={false}
|
|
202
202
|
shallow={true}
|
|
203
203
|
title=""
|
|
204
204
|
>
|
|
@@ -212,7 +212,7 @@ Array [
|
|
|
212
212
|
href="url?pb%5Blist-2%5D%5Bpage%5D=5"
|
|
213
213
|
name=""
|
|
214
214
|
onClick={null}
|
|
215
|
-
scroll={
|
|
215
|
+
scroll={false}
|
|
216
216
|
shallow={true}
|
|
217
217
|
title=""
|
|
218
218
|
>
|
|
@@ -226,7 +226,7 @@ Array [
|
|
|
226
226
|
href="url?pb%5Blist-2%5D%5Bpage%5D=6"
|
|
227
227
|
name=""
|
|
228
228
|
onClick={null}
|
|
229
|
-
scroll={
|
|
229
|
+
scroll={false}
|
|
230
230
|
shallow={true}
|
|
231
231
|
title=""
|
|
232
232
|
>
|
|
@@ -240,7 +240,7 @@ Array [
|
|
|
240
240
|
href="url?pb%5Blist-2%5D%5Bpage%5D=7"
|
|
241
241
|
name=""
|
|
242
242
|
onClick={null}
|
|
243
|
-
scroll={
|
|
243
|
+
scroll={false}
|
|
244
244
|
shallow={true}
|
|
245
245
|
title=""
|
|
246
246
|
>
|
|
@@ -259,7 +259,7 @@ Array [
|
|
|
259
259
|
href="url?pb%5Blist-2%5D%5Bpage%5D=9"
|
|
260
260
|
name=""
|
|
261
261
|
onClick={null}
|
|
262
|
-
scroll={
|
|
262
|
+
scroll={false}
|
|
263
263
|
shallow={true}
|
|
264
264
|
title=""
|
|
265
265
|
>
|
|
@@ -273,7 +273,7 @@ Array [
|
|
|
273
273
|
href="url?pb%5Blist-2%5D%5Bpage%5D=10"
|
|
274
274
|
name=""
|
|
275
275
|
onClick={null}
|
|
276
|
-
scroll={
|
|
276
|
+
scroll={false}
|
|
277
277
|
shallow={true}
|
|
278
278
|
title=""
|
|
279
279
|
>
|
|
@@ -287,7 +287,7 @@ Array [
|
|
|
287
287
|
href="url?pb%5Blist-2%5D%5Bpage%5D=11"
|
|
288
288
|
name=""
|
|
289
289
|
onClick={null}
|
|
290
|
-
scroll={
|
|
290
|
+
scroll={false}
|
|
291
291
|
shallow={true}
|
|
292
292
|
title=""
|
|
293
293
|
>
|
|
@@ -301,7 +301,7 @@ Array [
|
|
|
301
301
|
href="url?pb%5Blist-2%5D%5Bpage%5D=12"
|
|
302
302
|
name=""
|
|
303
303
|
onClick={null}
|
|
304
|
-
scroll={
|
|
304
|
+
scroll={false}
|
|
305
305
|
shallow={true}
|
|
306
306
|
title=""
|
|
307
307
|
>
|
|
@@ -315,7 +315,7 @@ Array [
|
|
|
315
315
|
href="url?pb%5Blist-2%5D%5Bpage%5D=13"
|
|
316
316
|
name=""
|
|
317
317
|
onClick={null}
|
|
318
|
-
scroll={
|
|
318
|
+
scroll={false}
|
|
319
319
|
shallow={true}
|
|
320
320
|
title=""
|
|
321
321
|
>
|
|
@@ -18,21 +18,9 @@ exports[`Loading component should render dots loader if dots string is passed 1`
|
|
|
18
18
|
</DocumentFragment>
|
|
19
19
|
`;
|
|
20
20
|
|
|
21
|
-
exports[`Loading component should render spinner loader if no value or not supported value is passed to type 1`] =
|
|
22
|
-
<DocumentFragment>
|
|
23
|
-
<div
|
|
24
|
-
class="blaze-loading__spinner"
|
|
25
|
-
/>
|
|
26
|
-
</DocumentFragment>
|
|
27
|
-
`;
|
|
21
|
+
exports[`Loading component should render spinner loader if no value or not supported value is passed to type 1`] = `<DocumentFragment />`;
|
|
28
22
|
|
|
29
|
-
exports[`Loading component should render spinner loader if no value or not supported value is passed to type 2`] =
|
|
30
|
-
<DocumentFragment>
|
|
31
|
-
<div
|
|
32
|
-
class="blaze-loading__spinner"
|
|
33
|
-
/>
|
|
34
|
-
</DocumentFragment>
|
|
35
|
-
`;
|
|
23
|
+
exports[`Loading component should render spinner loader if no value or not supported value is passed to type 2`] = `<DocumentFragment />`;
|
|
36
24
|
|
|
37
25
|
exports[`Loading component should render spinner loader if spinner string is passed 1`] = `
|
|
38
26
|
<DocumentFragment>
|
|
@@ -7,7 +7,7 @@ exports[`build query field should return a string with additional field if list
|
|
|
7
7
|
name,category{name}
|
|
8
8
|
__typename
|
|
9
9
|
id
|
|
10
|
-
|
|
10
|
+
pageBuilderComponents: preparedPageBuilderComponents
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
total
|
|
@@ -21,7 +21,7 @@ exports[`build query field should return a string with correct data 1`] = `
|
|
|
21
21
|
name,category{name}
|
|
22
22
|
__typename
|
|
23
23
|
id
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
total
|