@blaze-cms/react-page-builder 0.146.0-node18-tooltips.42 → 0.146.0-node18-core-styles-tooltips.58
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 +145 -47
- package/lib/BannerContext/index.js +1 -1
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +2 -2
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +2 -2
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/application/query/index.js +1 -0
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +1 -1
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +2 -2
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +2 -2
- 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 -2
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +1 -1
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +2 -2
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Button.js +3 -3
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +1 -1
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +2 -2
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsRender.js +1 -1
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.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 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/ClickWrapper.js +1 -1
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +1 -1
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +1 -1
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroup.js +1 -1
- package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupAccordion.js +1 -1
- package/lib/components/ContentGroup/ContentGroupAccordion.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +2 -2
- 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 -1
- 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 -2
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +2 -2
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +2 -2
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +2 -2
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +2 -2
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +6 -6
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +1 -1
- 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 -2
- package/lib/components/ErrorMessage/index.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +2 -2
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +1 -1
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +2 -2
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +1 -1
- 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 -2
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/LazyImage/index.js +2 -2
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListFactory.js +1 -1
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js +1 -1
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +1 -1
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -2
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +2 -2
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +2 -2
- 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/ListPagination.js +1 -1
- 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-query-booster.js +2 -1
- package/lib/components/List/helpers/build-query-booster.js.map +1 -1
- package/lib/components/Loading/index.js +2 -2
- package/lib/components/Loading/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +5 -2
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js +2 -1
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/MenuItem/MenuItemRender.js +28 -13
- package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib/components/MenuItem/helpers/has-active-child.js +19 -0
- package/lib/components/MenuItem/helpers/has-active-child.js.map +1 -0
- package/lib/components/MenuItem/helpers/index.js +14 -0
- package/lib/components/MenuItem/helpers/index.js.map +1 -1
- package/lib/components/MenuItem/helpers/isUrlPathMatch.js +18 -0
- package/lib/components/MenuItem/helpers/isUrlPathMatch.js.map +1 -0
- 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 -2
- package/lib/components/ModalAdapter/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +1 -1
- 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 -2
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +1 -2
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +1 -1
- 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 -1
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +1 -1
- 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 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -2
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +6 -6
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/index.js +31 -31
- package/lib/components/index.js.map +1 -1
- package/lib/helpers/build-query-fields.js +1 -0
- 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-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/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/parse-TextBlock.js +1 -1
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +1 -1
- 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/StoreImages.js +3 -4
- package/lib/hooks/helpers/StoreImages.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js +7 -7
- 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-app-event-hook.js +2 -1
- package/lib/hooks/use-app-event-hook.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 -1
- package/lib/hooks/use-portal.js.map +1 -1
- package/lib/system-components/EditorMode/BlazeLogo.js +1 -1
- package/lib/system-components/EditorMode/BlazeLogo.js.map +1 -1
- package/lib/system-components/EditorMode/PbWrapper.js +2 -2
- package/lib/system-components/EditorMode/PbWrapper.js.map +1 -1
- package/lib/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js +3 -3
- package/lib/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js.map +1 -1
- package/lib/system-components/index.js +1 -1
- package/lib/system-components/index.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 -2
- package/lib/variants/Infographic/index.js.map +1 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js +1 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -1
- package/lib/variants/LiveBlogList/index.js +2 -2
- 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 -2
- 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 -2
- 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 -2
- package/lib/variants/ThumbnailCarousel/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/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/ContentGroup.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroupAccordion.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/components/Header/ListHeader.js.map +1 -1
- package/lib-es/components/List/components/Pagination/Classic.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/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 +1 -1
- package/lib-es/components/Loading/index.js.map +1 -1
- package/lib-es/components/Menu/Menu.js +4 -1
- package/lib-es/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/Menu/MenuContext.js +2 -1
- package/lib-es/components/Menu/MenuContext.js.map +1 -1
- package/lib-es/components/MenuItem/MenuItemRender.js +25 -11
- package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib-es/components/MenuItem/helpers/has-active-child.js +5 -0
- package/lib-es/components/MenuItem/helpers/has-active-child.js.map +1 -0
- package/lib-es/components/MenuItem/helpers/index.js +3 -1
- package/lib-es/components/MenuItem/helpers/index.js.map +1 -1
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -1
- package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js +8 -0
- package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js.map +1 -0
- 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.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.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.map +1 -1
- package/lib-es/helpers/build-sort-values.js.map +1 -1
- package/lib-es/helpers/get-component-id.js.map +1 -1
- 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/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/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/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-event-hook.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/system-components/EditorMode/PbWrapper.js +1 -1
- package/lib-es/system-components/EditorMode/PbWrapper.js.map +1 -1
- package/lib-es/system-components/EditorMode/helpers/add-editor-mode-event-listeners.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 +11 -11
- package/src/HOC/withTitle.js +2 -2
- package/src/components/ContentGroup/ContentGroup.js +10 -13
- package/src/components/ContentGroup/ContentGroupAccordion.js +5 -8
- package/src/components/Menu/Menu.js +3 -1
- package/src/components/Menu/MenuContext.js +1 -1
- package/src/components/MenuItem/MenuItemRender.js +40 -12
- package/src/components/MenuItem/helpers/has-active-child.js +10 -0
- package/src/components/MenuItem/helpers/index.js +3 -1
- package/src/components/MenuItem/helpers/isUrlPathMatch.js +10 -0
- package/src/hooks/use-app-event-hook.js +14 -20
- package/tests/unit/src/components/Breadcrumb/__snapshots__/Breadcrumb.test.js.snap +1 -13
- package/tests/unit/src/components/Button.test.js +5 -0
- package/tests/unit/src/components/Card/Card.test.js +2 -4
- package/tests/unit/src/components/Card/__snapshots__/Card.test.js.snap +9 -24
- package/tests/unit/src/components/Card/__snapshots__/CardContainer.test.js.snap +1 -13
- package/tests/unit/src/components/Carousel/Carousel.test.js +4 -1
- package/tests/unit/src/components/Carousel/CarouselImage/CarouselImage.test.js +7 -3
- package/tests/unit/src/components/Carousel/CarouselRender/CarouselRender.test.js +20 -10
- package/tests/unit/src/components/Carousel/CarouselRender/__snapshots__/CarouselRender.test.js.snap +5 -3
- package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +17 -3
- package/tests/unit/src/components/Code/Code.test.js +7 -3
- package/tests/unit/src/components/EmailConfirm/__snapshots__/EmailConfirm.test.js.snap +8 -6
- package/tests/unit/src/components/MenuItem/MenuItem.test.js +5 -0
- package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +13 -5
- package/tests/unit/src/components/MenuItem/__snapshots__/MenuItem.test.js.snap +2 -2
- package/tests/unit/src/components/MenuItem/helpers/constants.js +73 -0
- package/tests/unit/src/components/MenuItem/helpers/has-active-child.test.js +35 -0
- package/tests/unit/src/components/MenuItem/helpers/is-url-path-match.test.js +53 -0
- package/tests/unit/src/components/TextBlock/__snapshots__/TextBlock.test.js.snap +1 -13
- package/tests/unit/src/helpers/__snapshots__/parse-textBlock.test.js.snap +0 -3
- package/tests/unit/src/helpers/get-current-offset.test.js +2 -2
- package/tests/unit/src/helpers/get-custom-html-properties.test.js +4 -1
- package/tests/unit/src/helpers/parse-textBlock.test.js +1 -3
- package/tests/unit/src/hooks/use-check-mobile-screen.test.js +18 -12
- package/tests/unit/src/variants/Infographic/Infographic.test.js +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["dynamic","SlideSummary","getSettings","componentSettings","_objectSpread","VariantComponent"],"sources":["../../../src/variants/SlideSummary/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst SlideSummary = {\n getSettings: componentSettings => ({\n ...componentSettings\n }),\n VariantComponent: dynamic(\n () => import(/* webpackChunkName: \"blazePbVariantSlideSummary\" */ './SlideSummary')\n )\n};\nexport default SlideSummary;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,YAAY,GAAG;EACnBC,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,KACzBD,iBAAiB,CACpB;EACFE,gBAAgB,EAAEL,OAAO,CACvB,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","names":["dynamic","SlideSummary","getSettings","componentSettings","_objectSpread","VariantComponent"],"sources":["../../../src/variants/SlideSummary/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst SlideSummary = {\n getSettings: componentSettings => ({\n ...componentSettings\n }),\n VariantComponent: dynamic(\n () => import(/* webpackChunkName: \"blazePbVariantSlideSummary\" */ './SlideSummary')\n )\n};\nexport default SlideSummary;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,YAAY,GAAG;EACnBC,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,KACzBD,iBAAiB,CACpB;EACFE,gBAAgB,EAAEL,OAAO,CACvB,MAAM,MAAM,CAAC,oDAAqD,gBAAgB,CACpF;AACF,CAAC;AACD,eAAeC,YAAY","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import dynamic from 'next/dynamic';
|
|
5
5
|
const ThumbnailCarousel = {
|
|
6
6
|
getSettings: componentSettings => _objectSpread({}, componentSettings),
|
|
7
|
-
VariantComponent: dynamic(() => import(
|
|
7
|
+
VariantComponent: dynamic(() => import(/* webpackChunkName: "blazePbVariantThumbnailCarousel" */'./ThumbnailCarousel'))
|
|
8
8
|
};
|
|
9
9
|
export default ThumbnailCarousel;
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["dynamic","ThumbnailCarousel","getSettings","componentSettings","_objectSpread","VariantComponent"],"sources":["../../../src/variants/ThumbnailCarousel/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst ThumbnailCarousel = {\n getSettings: componentSettings => ({\n ...componentSettings\n }),\n VariantComponent: dynamic(\n () => import(/* webpackChunkName: \"blazePbVariantThumbnailCarousel\" */ './ThumbnailCarousel')\n )\n};\n\nexport default ThumbnailCarousel;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,iBAAiB,GAAG;EACxBC,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,KACzBD,iBAAiB,CACpB;EACFE,gBAAgB,EAAEL,OAAO,CACvB,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","names":["dynamic","ThumbnailCarousel","getSettings","componentSettings","_objectSpread","VariantComponent"],"sources":["../../../src/variants/ThumbnailCarousel/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst ThumbnailCarousel = {\n getSettings: componentSettings => ({\n ...componentSettings\n }),\n VariantComponent: dynamic(\n () => import(/* webpackChunkName: \"blazePbVariantThumbnailCarousel\" */ './ThumbnailCarousel')\n )\n};\n\nexport default ThumbnailCarousel;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,iBAAiB,GAAG;EACxBC,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,KACzBD,iBAAiB,CACpB;EACFE,gBAAgB,EAAEL,OAAO,CACvB,MAAM,MAAM,CAAC,yDAA0D,qBAAqB,CAC9F;AACF,CAAC;AAED,eAAeC,iBAAiB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/react-page-builder",
|
|
3
|
-
"version": "0.146.0-node18-tooltips.
|
|
3
|
+
"version": "0.146.0-node18-core-styles-tooltips.58",
|
|
4
4
|
"description": "Blaze react page builder",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "GPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@blaze-cms/core-auth-ui": "0.146.0-node18-tooltips.
|
|
31
|
-
"@blaze-cms/core-errors": "0.146.0-node18-tooltips.
|
|
32
|
-
"@blaze-cms/core-errors-ui": "0.146.0-node18-tooltips.
|
|
30
|
+
"@blaze-cms/core-auth-ui": "0.146.0-node18-core-styles-tooltips.58",
|
|
31
|
+
"@blaze-cms/core-errors": "0.146.0-node18-core-styles-tooltips.46",
|
|
32
|
+
"@blaze-cms/core-errors-ui": "0.146.0-node18-core-styles-tooltips.46",
|
|
33
33
|
"@blaze-cms/image-cdn-react": "0.3.0-alpha.7",
|
|
34
|
-
"@blaze-cms/nextjs-components": "0.146.0-node18-tooltips.
|
|
35
|
-
"@blaze-cms/plugin-search-ui": "0.146.0-node18-tooltips.
|
|
36
|
-
"@blaze-cms/setup-ui": "0.146.0-node18-tooltips.
|
|
37
|
-
"@blaze-cms/utils": "0.146.0-node18-tooltips.
|
|
38
|
-
"@blaze-cms/utils-handlebars": "0.146.0-node18-tooltips.
|
|
34
|
+
"@blaze-cms/nextjs-components": "0.146.0-node18-core-styles-tooltips.58",
|
|
35
|
+
"@blaze-cms/plugin-search-ui": "0.146.0-node18-core-styles-tooltips.58",
|
|
36
|
+
"@blaze-cms/setup-ui": "0.146.0-node18-core-styles-tooltips.46",
|
|
37
|
+
"@blaze-cms/utils": "0.146.0-node18-core-styles-tooltips.46",
|
|
38
|
+
"@blaze-cms/utils-handlebars": "0.146.0-node18-core-styles-tooltips.58",
|
|
39
39
|
"@blaze-react/badge": "^0.7.0",
|
|
40
40
|
"@blaze-react/breadcrumb": "0.8.0-alpha.60",
|
|
41
41
|
"@blaze-react/button": "0.8.0-alpha.82",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"lodash.uniq": "^4.5.0",
|
|
61
61
|
"lodash.upperfirst": "^4.3.1",
|
|
62
62
|
"query-string": "^6.9.0",
|
|
63
|
-
"react-cookie": "^
|
|
63
|
+
"react-cookie": "^7.2.2",
|
|
64
64
|
"react-dfp": "^0.19.0",
|
|
65
65
|
"react-html-parser": "2.0.2",
|
|
66
66
|
"react-jw-player": "^1.19.1",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"lib/*",
|
|
93
93
|
"lib-es/*"
|
|
94
94
|
],
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "f7a6d4bdce550c1edced07053c611a4e5aa28d8b"
|
|
96
96
|
}
|
package/src/HOC/withTitle.js
CHANGED
|
@@ -15,10 +15,10 @@ const withTitle = Component => {
|
|
|
15
15
|
if (loading) return '';
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
|
-
|
|
18
|
+
<>
|
|
19
19
|
{shouldDisplayTitle && <h2 className="heading heading--section">{elementTitleToUse}</h2>}
|
|
20
20
|
<Component {...props} />
|
|
21
|
-
|
|
21
|
+
</>
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -19,19 +19,16 @@ const ContentGroup = ({ contentType, isFaqContent, children, customHtmlProps, ..
|
|
|
19
19
|
);
|
|
20
20
|
const WrapperComponent = useMemo(() => (!isFaqContent ? Fragment : 'div'), [isFaqContent]);
|
|
21
21
|
|
|
22
|
-
const { topWrapperProps, ...schemaProperties } = useMemo(
|
|
23
|
-
()
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
topWrapperProps
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
[isFaqContent, customHtmlProps]
|
|
34
|
-
);
|
|
22
|
+
const { topWrapperProps, ...schemaProperties } = useMemo(() => {
|
|
23
|
+
const structuredDataProperties = getStructuredDataProperties(isFaqContent);
|
|
24
|
+
return {
|
|
25
|
+
...structuredDataProperties,
|
|
26
|
+
topWrapperProps: {
|
|
27
|
+
...structuredDataProperties.topWrapperProps,
|
|
28
|
+
...getCustomHtmlProperties({ customHtmlProps })
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}, [isFaqContent, customHtmlProps]);
|
|
35
32
|
|
|
36
33
|
if (!groupSections || !groupSections.length || !VALID_TYPES.includes(contentType)) return '';
|
|
37
34
|
|
|
@@ -31,15 +31,12 @@ const ContentGroupAccordion = ({
|
|
|
31
31
|
|
|
32
32
|
const sectionNames = useMemo(() => sectionPairs.map(p => p.sectionName), [sectionPairs]);
|
|
33
33
|
|
|
34
|
-
const baseInitialOpen = useMemo(
|
|
35
|
-
()
|
|
36
|
-
|
|
37
|
-
if (openState === OPEN_STATES.ALL_CLOSED && sectionNames.length) return new Set();
|
|
34
|
+
const baseInitialOpen = useMemo(() => {
|
|
35
|
+
if (openState === OPEN_STATES.ALL_OPEN) return new Set(sectionNames);
|
|
36
|
+
if (openState === OPEN_STATES.ALL_CLOSED && sectionNames.length) return new Set();
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
[openState, sectionNames]
|
|
42
|
-
);
|
|
38
|
+
return new Set([sectionNames[0]]);
|
|
39
|
+
}, [openState, sectionNames]);
|
|
43
40
|
|
|
44
41
|
const [openSet, setOpenSet] = useState(baseInitialOpen);
|
|
45
42
|
|
|
@@ -11,6 +11,7 @@ import BlazeLink from '../BlazeLink';
|
|
|
11
11
|
const Menu = ({
|
|
12
12
|
children,
|
|
13
13
|
collapse,
|
|
14
|
+
openActiveSubmenus,
|
|
14
15
|
modifier,
|
|
15
16
|
mobileMenuModifier,
|
|
16
17
|
mobileMenuChildrenModifier,
|
|
@@ -51,7 +52,7 @@ const Menu = ({
|
|
|
51
52
|
});
|
|
52
53
|
|
|
53
54
|
return (
|
|
54
|
-
<MenuContext.Provider value={{ showMobileMenu }}>
|
|
55
|
+
<MenuContext.Provider value={{ showMobileMenu, openActiveSubmenus }}>
|
|
55
56
|
<div className={menuWrapperClasses}>
|
|
56
57
|
{collapse && (
|
|
57
58
|
<div className="menu--mobile-wrapper">
|
|
@@ -99,6 +100,7 @@ const Menu = ({
|
|
|
99
100
|
|
|
100
101
|
Menu.propTypes = {
|
|
101
102
|
collapse: PropTypes.bool.isRequired,
|
|
103
|
+
openActiveSubmenus: PropTypes.bool.isRequired,
|
|
102
104
|
logoOnMobile: PropTypes.bool.isRequired,
|
|
103
105
|
logoOnDesktop: PropTypes.bool,
|
|
104
106
|
logoOnMobileUrl: PropTypes.string,
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
+
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
1
2
|
import React, { useState, useContext, useEffect } from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import { FaChevronDown, FaChevronUp } from 'react-icons/fa';
|
|
5
|
+
import classnames from 'classnames';
|
|
4
6
|
import { useRouter } from 'next/router';
|
|
5
7
|
import { useStringTemplate } from '@blaze-cms/utils-handlebars';
|
|
6
|
-
import { HOVER, MOUSE_ENTER, MOUSE_LEAVE, HIDDEN } from '../../constants';
|
|
8
|
+
import { HOVER, MOUSE_ENTER, MOUSE_LEAVE, HIDDEN, CLICK } from '../../constants';
|
|
7
9
|
import { hasChildren } from '../../helpers';
|
|
8
10
|
import BlazeLink from '../BlazeLink';
|
|
9
11
|
import MenuContext from '../Menu/MenuContext';
|
|
10
|
-
import { injectHelperIntoTemplate } from './helpers';
|
|
12
|
+
import { injectHelperIntoTemplate, isUrlPathMatch, hasActiveChild } from './helpers';
|
|
11
13
|
|
|
12
14
|
const MenuItemRender = ({ children, eventType, text, modifier, url, parent }) => {
|
|
13
|
-
const
|
|
14
|
-
const { showMobileMenu } = useContext(MenuContext);
|
|
15
|
+
const router = useRouter();
|
|
16
|
+
const { showMobileMenu, openActiveSubmenus } = useContext(MenuContext);
|
|
17
|
+
|
|
18
|
+
const isHoverEvent = eventType === HOVER;
|
|
19
|
+
const isClickEvent = eventType === CLICK;
|
|
20
|
+
|
|
15
21
|
const {
|
|
16
22
|
loading: loadingText,
|
|
17
23
|
data: [textToUse]
|
|
@@ -21,14 +27,24 @@ const MenuItemRender = ({ children, eventType, text, modifier, url, parent }) =>
|
|
|
21
27
|
data: [urlToUse]
|
|
22
28
|
} = useStringTemplate(parent, [injectHelperIntoTemplate(url, 'url_encode')]);
|
|
23
29
|
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
30
|
+
const isActive = router ? isUrlPathMatch(router.asPath, urlToUse) : false;
|
|
31
|
+
const isActiveParent = router ? hasActiveChild(router.asPath, children) : false;
|
|
32
|
+
const shouldPreOpen = openActiveSubmenus && isActiveParent && isClickEvent;
|
|
27
33
|
const hasValidChildren = hasChildren(children);
|
|
28
34
|
|
|
35
|
+
const [displayChildren, setDisplayChildren] = useState(shouldPreOpen);
|
|
36
|
+
|
|
29
37
|
useEffect(() => {
|
|
30
|
-
if (!showMobileMenu) setDisplayChildren(false);
|
|
31
|
-
}, [
|
|
38
|
+
if (!showMobileMenu && !shouldPreOpen) setDisplayChildren(false);
|
|
39
|
+
}, [
|
|
40
|
+
children,
|
|
41
|
+
isClickEvent,
|
|
42
|
+
loadingUrl,
|
|
43
|
+
openActiveSubmenus,
|
|
44
|
+
router,
|
|
45
|
+
shouldPreOpen,
|
|
46
|
+
showMobileMenu
|
|
47
|
+
]);
|
|
32
48
|
|
|
33
49
|
useEffect(() => {
|
|
34
50
|
if (isHoverEvent) {
|
|
@@ -38,6 +54,8 @@ const MenuItemRender = ({ children, eventType, text, modifier, url, parent }) =>
|
|
|
38
54
|
|
|
39
55
|
if (loadingUrl || loadingText) return '';
|
|
40
56
|
|
|
57
|
+
const childrenDisplayClass = displayChildren ? '' : HIDDEN;
|
|
58
|
+
|
|
41
59
|
const handleItemEvent = ({ type }) => {
|
|
42
60
|
if (isHoverEvent) {
|
|
43
61
|
if (type === MOUSE_ENTER) {
|
|
@@ -55,15 +73,25 @@ const MenuItemRender = ({ children, eventType, text, modifier, url, parent }) =>
|
|
|
55
73
|
}
|
|
56
74
|
};
|
|
57
75
|
|
|
76
|
+
const menuItemLinkClassname = classnames('menu--item--link', {
|
|
77
|
+
'menu--item--link--active': isActive,
|
|
78
|
+
'menu--item--link--active-parent': isActiveParent
|
|
79
|
+
});
|
|
80
|
+
|
|
58
81
|
return (
|
|
59
82
|
<li className={modifier} onMouseEnter={handleItemEvent} onMouseLeave={handleItemEvent}>
|
|
60
83
|
<div
|
|
61
|
-
className=
|
|
84
|
+
className={menuItemLinkClassname}
|
|
62
85
|
onClick={handleMobileClick}
|
|
63
86
|
role={!urlToUse && hasValidChildren ? 'button' : undefined}
|
|
64
87
|
tabIndex={!urlToUse && hasValidChildren ? 0 : undefined}>
|
|
65
|
-
{urlToUse ?
|
|
66
|
-
|
|
88
|
+
{urlToUse ? (
|
|
89
|
+
<BlazeLink href={urlToUse}>{textToUse}</BlazeLink>
|
|
90
|
+
) : (
|
|
91
|
+
<span role="button" onClick={handleItemEvent}>
|
|
92
|
+
{textToUse}
|
|
93
|
+
</span>
|
|
94
|
+
)}
|
|
67
95
|
{hasValidChildren && (
|
|
68
96
|
<i
|
|
69
97
|
role="button"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import isUrlPathMatch from './isUrlPathMatch';
|
|
2
|
+
import { hasChildren } from '../../../helpers';
|
|
3
|
+
|
|
4
|
+
const hasActiveChild = (path, children) =>
|
|
5
|
+
hasChildren(children) &&
|
|
6
|
+
children.props.children[1][0].props.component.items.find(menuItem =>
|
|
7
|
+
isUrlPathMatch(path, menuItem.settings.url)
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export default hasActiveChild;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import injectHelperIntoTemplate from './inject-helper-into-template';
|
|
2
|
+
import isUrlPathMatch from './isUrlPathMatch';
|
|
3
|
+
import hasActiveChild from './has-active-child';
|
|
2
4
|
|
|
3
|
-
export { injectHelperIntoTemplate };
|
|
5
|
+
export { injectHelperIntoTemplate, isUrlPathMatch, hasActiveChild };
|
|
@@ -13,27 +13,21 @@ const useAppEventHook = ({ eventName, data, props }) => {
|
|
|
13
13
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
14
14
|
const stableProps = useMemo(() => props, [JSON.stringify(props)]);
|
|
15
15
|
|
|
16
|
-
useEffect(
|
|
17
|
-
()
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
[updatedData, eventName, hasListener, blazeApp.events, stableProps]
|
|
29
|
-
);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
async function emitEvent() {
|
|
18
|
+
// setLoading(true);
|
|
19
|
+
await blazeApp.events.emitAsync(`plugin:page-builder:${eventName}`, {
|
|
20
|
+
data: updatedData,
|
|
21
|
+
props: stableProps
|
|
22
|
+
});
|
|
23
|
+
setLoading(false);
|
|
24
|
+
}
|
|
25
|
+
if (hasListener && updatedData) emitEvent();
|
|
26
|
+
}, [updatedData, eventName, hasListener, blazeApp.events, stableProps]);
|
|
30
27
|
|
|
31
|
-
useEffect(
|
|
32
|
-
()
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
[stableData]
|
|
36
|
-
);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
setUpdatedData(stableData);
|
|
30
|
+
}, [stableData]);
|
|
37
31
|
|
|
38
32
|
return { data: updatedData || stableData, loading };
|
|
39
33
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Breadcrumb component should match snapshot 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
@@ -14,9 +14,6 @@ exports[`Breadcrumb component should match snapshot 1`] = `
|
|
|
14
14
|
<a
|
|
15
15
|
aria-label="Home"
|
|
16
16
|
href="/"
|
|
17
|
-
/>
|
|
18
|
-
<a
|
|
19
|
-
href="/"
|
|
20
17
|
>
|
|
21
18
|
Home
|
|
22
19
|
</a>
|
|
@@ -27,7 +24,6 @@ exports[`Breadcrumb component should match snapshot 1`] = `
|
|
|
27
24
|
<a
|
|
28
25
|
href="/Resolver"
|
|
29
26
|
/>
|
|
30
|
-
<a />
|
|
31
27
|
</li>
|
|
32
28
|
</ul>
|
|
33
29
|
</div>
|
|
@@ -48,9 +44,6 @@ exports[`Breadcrumb component should not render if loading, err or no data exist
|
|
|
48
44
|
<a
|
|
49
45
|
aria-label="Home"
|
|
50
46
|
href="/"
|
|
51
|
-
/>
|
|
52
|
-
<a
|
|
53
|
-
href="/"
|
|
54
47
|
>
|
|
55
48
|
Home
|
|
56
49
|
</a>
|
|
@@ -61,7 +54,6 @@ exports[`Breadcrumb component should not render if loading, err or no data exist
|
|
|
61
54
|
<a
|
|
62
55
|
href="/Resolver"
|
|
63
56
|
/>
|
|
64
|
-
<a />
|
|
65
57
|
</li>
|
|
66
58
|
</ul>
|
|
67
59
|
</div>
|
|
@@ -82,9 +74,6 @@ exports[`Breadcrumb component should render 1`] = `
|
|
|
82
74
|
<a
|
|
83
75
|
aria-label="Home"
|
|
84
76
|
href="/"
|
|
85
|
-
/>
|
|
86
|
-
<a
|
|
87
|
-
href="/"
|
|
88
77
|
>
|
|
89
78
|
Home
|
|
90
79
|
</a>
|
|
@@ -95,7 +84,6 @@ exports[`Breadcrumb component should render 1`] = `
|
|
|
95
84
|
<a
|
|
96
85
|
href="/Resolver"
|
|
97
86
|
/>
|
|
98
|
-
<a />
|
|
99
87
|
</li>
|
|
100
88
|
</ul>
|
|
101
89
|
</div>
|
|
@@ -6,6 +6,11 @@ import { act, render, fireEvent, waitFor } from '@testing-library/react';
|
|
|
6
6
|
import '@testing-library/jest-dom/extend-expect';
|
|
7
7
|
import Button from '../../../../src/components/Button';
|
|
8
8
|
|
|
9
|
+
jest.mock('react-cookie', () => ({
|
|
10
|
+
useCookies: jest.fn(() => [{ blazeCookie: 'blazeCookie' }, jest.fn(), jest.fn()]),
|
|
11
|
+
CookiesProvider: ({ children }) => children
|
|
12
|
+
}));
|
|
13
|
+
|
|
9
14
|
jest.mock('@blaze-cms/utils-handlebars', () => ({
|
|
10
15
|
useStringTemplate: jest.fn((parent, [title]) => ({ loadig: false, data: [title] }))
|
|
11
16
|
}));
|
|
@@ -33,9 +33,7 @@ const propsToDisplay = [
|
|
|
33
33
|
htmlAttribute: 'data-testid'
|
|
34
34
|
}
|
|
35
35
|
];
|
|
36
|
-
const getMockedParsedProp = children => {
|
|
37
|
-
children;
|
|
38
|
-
};
|
|
36
|
+
const getMockedParsedProp = children => React.createElement(React.Fragment, {}, ...children);
|
|
39
37
|
const firstPropValue = 'some description';
|
|
40
38
|
const secondPropValue = 'extra props';
|
|
41
39
|
const firstPropToDisplay = getMockedParsedProp(['', '', firstPropValue, '', '']);
|
|
@@ -77,7 +75,7 @@ const alternativeHeadline = 'Alternative headline';
|
|
|
77
75
|
jest.mock(
|
|
78
76
|
'../../../../../src/components/LazyImage',
|
|
79
77
|
() =>
|
|
80
|
-
function ({ src, alt }) {
|
|
78
|
+
function LazyImage({ src, alt }) {
|
|
81
79
|
return <img src={src} alt={alt} />;
|
|
82
80
|
}
|
|
83
81
|
);
|
|
@@ -28,7 +28,7 @@ exports[`Card component should not render alternative headline if alternativePre
|
|
|
28
28
|
<a
|
|
29
29
|
aria-label="category-name"
|
|
30
30
|
class="badge badge--label"
|
|
31
|
-
href="published-url"
|
|
31
|
+
href="/published-url"
|
|
32
32
|
>
|
|
33
33
|
category-name
|
|
34
34
|
</a>
|
|
@@ -38,9 +38,6 @@ exports[`Card component should not render alternative headline if alternativePre
|
|
|
38
38
|
<a
|
|
39
39
|
aria-label="mock name"
|
|
40
40
|
href="/mockurl"
|
|
41
|
-
/>
|
|
42
|
-
<a
|
|
43
|
-
href="/mockurl"
|
|
44
41
|
>
|
|
45
42
|
mock name
|
|
46
43
|
</a>
|
|
@@ -71,7 +68,7 @@ exports[`Card component should not render alternative headline if alternativePre
|
|
|
71
68
|
</div>
|
|
72
69
|
<div
|
|
73
70
|
class="child_2"
|
|
74
|
-
modifier="child-
|
|
71
|
+
data-modifier="child-modifier"
|
|
75
72
|
>
|
|
76
73
|
another child
|
|
77
74
|
</div>
|
|
@@ -112,9 +109,6 @@ exports[`Card component should not render alternative headline if displayCategor
|
|
|
112
109
|
<a
|
|
113
110
|
aria-label="mock name"
|
|
114
111
|
href="/mockurl"
|
|
115
|
-
/>
|
|
116
|
-
<a
|
|
117
|
-
href="/mockurl"
|
|
118
112
|
>
|
|
119
113
|
mock name
|
|
120
114
|
</a>
|
|
@@ -145,7 +139,7 @@ exports[`Card component should not render alternative headline if displayCategor
|
|
|
145
139
|
</div>
|
|
146
140
|
<div
|
|
147
141
|
class="child_2"
|
|
148
|
-
modifier="child-
|
|
142
|
+
data-modifier="child-modifier"
|
|
149
143
|
>
|
|
150
144
|
another child
|
|
151
145
|
</div>
|
|
@@ -183,7 +177,7 @@ exports[`Card component should not render preHeader if alternativeHeadline is no
|
|
|
183
177
|
<a
|
|
184
178
|
aria-label="category-name"
|
|
185
179
|
class="badge badge--label"
|
|
186
|
-
href="published-url"
|
|
180
|
+
href="/published-url"
|
|
187
181
|
>
|
|
188
182
|
category-name
|
|
189
183
|
</a>
|
|
@@ -193,9 +187,6 @@ exports[`Card component should not render preHeader if alternativeHeadline is no
|
|
|
193
187
|
<a
|
|
194
188
|
aria-label="mock name"
|
|
195
189
|
href="/mockurl"
|
|
196
|
-
/>
|
|
197
|
-
<a
|
|
198
|
-
href="/mockurl"
|
|
199
190
|
>
|
|
200
191
|
mock name
|
|
201
192
|
</a>
|
|
@@ -226,7 +217,7 @@ exports[`Card component should not render preHeader if alternativeHeadline is no
|
|
|
226
217
|
</div>
|
|
227
218
|
<div
|
|
228
219
|
class="child_2"
|
|
229
|
-
modifier="child-
|
|
220
|
+
data-modifier="child-modifier"
|
|
230
221
|
>
|
|
231
222
|
another child
|
|
232
223
|
</div>
|
|
@@ -272,9 +263,6 @@ exports[`Card component should render customPreheader and alternativeHeadline in
|
|
|
272
263
|
<a
|
|
273
264
|
aria-label="Alternative headline"
|
|
274
265
|
href="/mockurl"
|
|
275
|
-
/>
|
|
276
|
-
<a
|
|
277
|
-
href="/mockurl"
|
|
278
266
|
>
|
|
279
267
|
Alternative headline
|
|
280
268
|
</a>
|
|
@@ -305,7 +293,7 @@ exports[`Card component should render customPreheader and alternativeHeadline in
|
|
|
305
293
|
</div>
|
|
306
294
|
<div
|
|
307
295
|
class="child_2"
|
|
308
|
-
modifier="child-
|
|
296
|
+
data-modifier="child-modifier"
|
|
309
297
|
>
|
|
310
298
|
another child
|
|
311
299
|
</div>
|
|
@@ -388,7 +376,7 @@ exports[`Card component should render link wrapper 1`] = `
|
|
|
388
376
|
</div>
|
|
389
377
|
<div
|
|
390
378
|
class="child_2"
|
|
391
|
-
modifier="child-
|
|
379
|
+
data-modifier="child-modifier"
|
|
392
380
|
>
|
|
393
381
|
another child
|
|
394
382
|
</div>
|
|
@@ -426,7 +414,7 @@ exports[`Card component should render without throwing an error and match snapsh
|
|
|
426
414
|
<a
|
|
427
415
|
aria-label="category-name"
|
|
428
416
|
class="badge badge--label"
|
|
429
|
-
href="published-url"
|
|
417
|
+
href="/published-url"
|
|
430
418
|
>
|
|
431
419
|
category-name
|
|
432
420
|
</a>
|
|
@@ -436,9 +424,6 @@ exports[`Card component should render without throwing an error and match snapsh
|
|
|
436
424
|
<a
|
|
437
425
|
aria-label="mock name"
|
|
438
426
|
href="/mockurl"
|
|
439
|
-
/>
|
|
440
|
-
<a
|
|
441
|
-
href="/mockurl"
|
|
442
427
|
>
|
|
443
428
|
mock name
|
|
444
429
|
</a>
|
|
@@ -469,7 +454,7 @@ exports[`Card component should render without throwing an error and match snapsh
|
|
|
469
454
|
</div>
|
|
470
455
|
<div
|
|
471
456
|
class="child_2"
|
|
472
|
-
modifier="child-
|
|
457
|
+
data-modifier="child-modifier"
|
|
473
458
|
>
|
|
474
459
|
another child
|
|
475
460
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`CardsContainer component should render with carousel if option is enabled 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
@@ -43,9 +43,6 @@ exports[`CardsContainer component should render with carousel if option is enabl
|
|
|
43
43
|
<a
|
|
44
44
|
aria-label="Swan 78"
|
|
45
45
|
href="/nautors-swan/swan-78"
|
|
46
|
-
/>
|
|
47
|
-
<a
|
|
48
|
-
href="/nautors-swan/swan-78"
|
|
49
46
|
>
|
|
50
47
|
Swan 78
|
|
51
48
|
</a>
|
|
@@ -85,9 +82,6 @@ exports[`CardsContainer component should render with carousel if option is enabl
|
|
|
85
82
|
<a
|
|
86
83
|
aria-label="Swan 98"
|
|
87
84
|
href="/nautors-swan/swan-98"
|
|
88
|
-
/>
|
|
89
|
-
<a
|
|
90
|
-
href="/nautors-swan/swan-98"
|
|
91
85
|
>
|
|
92
86
|
Swan 98
|
|
93
87
|
</a>
|
|
@@ -141,9 +135,6 @@ exports[`CardsContainer component should render without throwing error and match
|
|
|
141
135
|
<a
|
|
142
136
|
aria-label="Swan 78"
|
|
143
137
|
href="/nautors-swan/swan-78"
|
|
144
|
-
/>
|
|
145
|
-
<a
|
|
146
|
-
href="/nautors-swan/swan-78"
|
|
147
138
|
>
|
|
148
139
|
Swan 78
|
|
149
140
|
</a>
|
|
@@ -183,9 +174,6 @@ exports[`CardsContainer component should render without throwing error and match
|
|
|
183
174
|
<a
|
|
184
175
|
aria-label="Swan 98"
|
|
185
176
|
href="/nautors-swan/swan-98"
|
|
186
|
-
/>
|
|
187
|
-
<a
|
|
188
|
-
href="/nautors-swan/swan-98"
|
|
189
177
|
>
|
|
190
178
|
Swan 98
|
|
191
179
|
</a>
|
|
@@ -96,7 +96,10 @@ describe('Carousel component', () => {
|
|
|
96
96
|
...MOCK_RELATION,
|
|
97
97
|
...mocks
|
|
98
98
|
]);
|
|
99
|
-
await waitFor(() =>
|
|
99
|
+
await waitFor(() => {
|
|
100
|
+
expect(container.childNodes.length).toBeGreaterThan(0);
|
|
101
|
+
expect(container.querySelectorAll('img').length).toBeGreaterThan(1);
|
|
102
|
+
});
|
|
100
103
|
expect(asFragment()).toMatchSnapshot();
|
|
101
104
|
});
|
|
102
105
|
|
|
@@ -8,9 +8,13 @@ import CarouselImage from '../../../../../../src/components/Carousel/CarouselIma
|
|
|
8
8
|
import getMockedProps from './helpers';
|
|
9
9
|
import mocks from './mocks';
|
|
10
10
|
|
|
11
|
-
jest.mock(
|
|
12
|
-
|
|
13
|
-
)
|
|
11
|
+
jest.mock(
|
|
12
|
+
'../../../../../../src/components/LazyImage',
|
|
13
|
+
() =>
|
|
14
|
+
function ({ alt, ...props }) {
|
|
15
|
+
return <img {...props} alt={alt} data-testid="lazy-image-mock" />;
|
|
16
|
+
}
|
|
17
|
+
);
|
|
14
18
|
|
|
15
19
|
const [MOCK_WITH_DATA, MOCK_WITH_ERROR] = mocks;
|
|
16
20
|
|