@blaze-cms/react-page-builder 0.139.0-project-admin-customisations.0 → 0.139.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -3
- package/README.md +9 -0
- package/lib/BannerContext/helpers/set-initial-banner-counters.js +1 -2
- package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
- package/lib/BannerContext/index.js +4 -6
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/recreateOnNavigation.js +1 -2
- package/lib/HOC/recreateOnNavigation.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +3 -4
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +3 -4
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/PBContext/index.js +1 -2
- package/lib/PBContext/index.js.map +1 -1
- package/lib/application/query/index.js +15 -30
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +3 -4
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/BackToTop/index.js +1 -2
- package/lib/components/BackToTop/index.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +3 -4
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +3 -4
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/BannerRender.js +1 -2
- package/lib/components/Banner/BannerRender.js.map +1 -1
- package/lib/components/Banner/helpers.js +10 -20
- package/lib/components/Banner/helpers.js.map +1 -1
- package/lib/components/Banner/index.js +3 -4
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +3 -4
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +3 -4
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Breadcrumb/index.js +1 -2
- package/lib/components/Breadcrumb/index.js.map +1 -1
- package/lib/components/Button.js +3 -4
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +8 -7
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +4 -8
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsFactory.js +1 -2
- package/lib/components/Card/CardsFactory.js.map +1 -1
- package/lib/components/Card/CardsRender.js +4 -6
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Card/constants.js +2 -4
- package/lib/components/Card/constants.js.map +1 -1
- package/lib/components/Card/helpers/filter-query-setup.js +1 -2
- package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
- package/lib/components/Card/helpers/filters-setup.js +1 -2
- package/lib/components/Card/helpers/filters-setup.js.map +1 -1
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js +1 -2
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib/components/Card/helpers/get-published-listing-url.js +1 -2
- package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
- package/lib/components/Card/helpers/get-updated-items-to-display.js +1 -2
- package/lib/components/Card/helpers/get-updated-items-to-display.js.map +1 -1
- package/lib/components/Card/helpers/get-updated-sort-properties.js +1 -2
- package/lib/components/Card/helpers/get-updated-sort-properties.js.map +1 -1
- package/lib/components/Card/helpers/should-return.js +1 -2
- package/lib/components/Card/helpers/should-return.js.map +1 -1
- package/lib/components/Card/helpers/should-skip-single-query.js +1 -2
- package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
- package/lib/components/Card/helpers/use-dynamic-size-key.js +1 -2
- package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib/components/Card/index.js +1 -2
- package/lib/components/Card/index.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +27 -19
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/CarouselImage.js +1 -2
- package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/index.js +1 -2
- package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/CarouselRender.js +35 -62
- package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/index.js +1 -2
- package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
- package/lib/components/Carousel/hooks/useCarouselNavigation.js +56 -0
- package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -0
- package/lib/components/Carousel/index.js +1 -2
- package/lib/components/Carousel/index.js.map +1 -1
- package/lib/components/CarouselWrapper/CarouselWrapper.js +1 -2
- package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js +3 -4
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js +1 -2
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/index.js +1 -2
- package/lib/components/CarouselWrapper/index.js.map +1 -1
- package/lib/components/ClickWrapper.js +3 -4
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +3 -4
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +3 -4
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/Code/helpers/wrap-script-tags.js +1 -2
- package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib/components/Code/index.js +1 -2
- package/lib/components/Code/index.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroup.js +1 -2
- package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +3 -4
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ContentGroup/constants.js +5 -10
- package/lib/components/ContentGroup/constants.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-active-tab.js +1 -2
- package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js +1 -2
- package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib/components/ContentGroup/index.js +1 -2
- package/lib/components/ContentGroup/index.js.map +1 -1
- package/lib/components/ContentGroupSection/ContentGroupSection.js +1 -2
- package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib/components/ContentGroupSection/index.js +1 -2
- package/lib/components/ContentGroupSection/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +3 -4
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryRender.js +1 -2
- package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +3 -4
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-loop-props-content.js +1 -2
- package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js +1 -2
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-data-summary-query.js +1 -2
- package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js +1 -2
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-props.js +1 -2
- package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js +1 -2
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js +1 -2
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-prop-value.js +1 -2
- package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-value-from-array.js +3 -5
- package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib/components/DataSummary/helpers/parse-boolean-values.js +1 -2
- package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js +1 -2
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib/components/DataSummary/index.js +1 -2
- package/lib/components/DataSummary/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +3 -4
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/EmailConfirm/index.js +1 -2
- package/lib/components/EmailConfirm/index.js.map +1 -1
- package/lib/components/EmailConfirm/mutation.js +1 -2
- package/lib/components/EmailConfirm/mutation.js.map +1 -1
- package/lib/components/Iframe/Iframe.js +1 -2
- package/lib/components/Iframe/Iframe.js.map +1 -1
- package/lib/components/Iframe/constants.js +2 -4
- package/lib/components/Iframe/constants.js.map +1 -1
- package/lib/components/Iframe/index.js +1 -2
- package/lib/components/Iframe/index.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +3 -4
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/NavButton.js +1 -2
- package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +3 -4
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +3 -4
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageDetails.js +1 -2
- package/lib/components/Image/ImageDetails.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +23 -12
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/ImageRender.js +9 -4
- package/lib/components/Image/ImageRender.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +3 -4
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/Image/Lightbox/index.js +1 -2
- package/lib/components/Image/Lightbox/index.js.map +1 -1
- package/lib/components/Image/index.js +1 -2
- package/lib/components/Image/index.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +3 -4
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/index.js +1 -2
- package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +1 -2
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/index.js +1 -2
- package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/ItemListNew.js +1 -2
- package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/index.js +1 -2
- package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
- package/lib/components/ItemList/constants.js +5 -10
- package/lib/components/ItemList/constants.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-data.js +1 -2
- package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-id.js +1 -2
- package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-ids.js +1 -2
- package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib/components/ItemList/helpers/set-item-list-id.js +1 -2
- package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/set-param-and-redirect.js +1 -2
- package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib/components/ItemList/hooks/use-item-list-id.js +1 -2
- package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib/components/Layout/Layout.js +8 -5
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/LayoutFactory.js +3 -4
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +3 -4
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/Layout/constants.js +3 -6
- package/lib/components/Layout/constants.js.map +1 -1
- package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -2
- package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib/components/Layout/helpers/get-styles-to-update.js +1 -2
- package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib/components/Layout/index.js +1 -2
- package/lib/components/Layout/index.js.map +1 -1
- package/lib/components/LazyImage/LazyImage.js +1 -2
- package/lib/components/LazyImage/LazyImage.js.map +1 -1
- package/lib/components/LazyImage/index.js +3 -4
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListBuilder.js +1 -2
- package/lib/components/List/ListBuilder.js.map +1 -1
- package/lib/components/List/ListFactory.js +3 -4
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js +1 -2
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js +1 -2
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +3 -4
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderItem.js +1 -2
- package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +3 -4
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Cards/index.js +1 -2
- package/lib/components/List/components/Cards/index.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +10 -7
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +3 -4
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js +1 -2
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Full/index.js +1 -2
- package/lib/components/List/components/Full/index.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js +1 -2
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Header/index.js +1 -2
- package/lib/components/List/components/Header/index.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js +1 -2
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +3 -4
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/components/Pagination/LoadMore.js +1 -2
- package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib/components/List/components/Pagination/index.js +1 -2
- package/lib/components/List/components/Pagination/index.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-banner.js +2 -4
- package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js +1 -2
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib/components/List/constants.js +7 -14
- package/lib/components/List/constants.js.map +1 -1
- package/lib/components/List/helpers/build-az-aggregations.js +1 -2
- package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib/components/List/helpers/build-az-url.js +2 -4
- package/lib/components/List/helpers/build-az-url.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js +1 -2
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-url.js +1 -2
- package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib/components/List/helpers/get-az-query-filter.js +1 -2
- package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib/components/List/helpers/get-items-per-page-to-use.js +1 -2
- package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
- package/lib/components/List/helpers/get-list-component.js +1 -2
- package/lib/components/List/helpers/get-list-component.js.map +1 -1
- package/lib/components/List/helpers/get-list-query.js +1 -2
- package/lib/components/List/helpers/get-list-query.js.map +1 -1
- package/lib/components/List/helpers/get-list-specific-search-filter.js +1 -2
- package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
- package/lib/components/List/helpers/get-sort-props.js +1 -2
- package/lib/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib/components/List/helpers/has-required-item-list-details.js +1 -2
- package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib/components/List/helpers/sort-aggs.js +1 -2
- package/lib/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib/components/List/helpers/strip-query-key.js +1 -2
- package/lib/components/List/helpers/strip-query-key.js.map +1 -1
- package/lib/components/List/index.js +1 -2
- package/lib/components/List/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +4 -6
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js +1 -2
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/Menu/index.js +1 -2
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js +3 -4
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/index.js +1 -2
- package/lib/components/MenuItem/index.js.map +1 -1
- package/lib/components/Modal/Modal.js +1 -2
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/index.js +1 -2
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +58 -56
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentItems.js +1 -2
- package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib/components/SearchContent/SearchContentResults.js +17 -19
- package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib/components/SearchContent/SearchContentToggleIcon.js +9 -18
- package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib/components/SearchContent/constants.js +10 -0
- package/lib/components/SearchContent/constants.js.map +1 -0
- package/lib/components/SearchContent/index.js +1 -2
- package/lib/components/SearchContent/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +3 -4
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +3 -4
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/index.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +3 -5
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +3 -4
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/components/Range.js +1 -2
- package/lib/components/SearchFilter/components/Range.js.map +1 -1
- package/lib/components/SearchFilter/components/Select.js +1 -2
- package/lib/components/SearchFilter/components/Select.js.map +1 -1
- package/lib/components/SearchFilter/components/TextSearch.js +1 -2
- package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib/components/SearchFilter/constants.js +24 -48
- package/lib/components/SearchFilter/constants.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-filters-query.js +1 -2
- package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-new-url.js +1 -2
- package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js +1 -2
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-url-query.js +1 -2
- package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-min-max.js +1 -2
- package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-step.js +1 -2
- package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js +1 -2
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib/components/SearchFilter/helpers/decode-encode.js +2 -4
- package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-display-value.js +1 -2
- package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +1 -2
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +1 -2
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-values.js +1 -2
- package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js +1 -2
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js +1 -2
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-range-value.js +1 -2
- package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js +1 -2
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-select-options.js +1 -2
- package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +1 -2
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/components/SearchFilter/helpers/is-device-desktop.js +1 -2
- package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/parse-filter-value.js +1 -2
- package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib/components/SearchFilter/index.js +1 -2
- package/lib/components/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/searchFilterReducer.js +1 -2
- package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js +1 -2
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/SearchFilterSort/constants.js +4 -8
- package/lib/components/SearchFilterSort/constants.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +1 -2
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/update-sort.js +2 -4
- package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib/components/SearchFilterSort/index.js +1 -2
- package/lib/components/SearchFilterSort/index.js.map +1 -1
- package/lib/components/SocialFollow/SFItem.js +1 -2
- package/lib/components/SocialFollow/SFItem.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollow.js +1 -2
- package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollowRender.js +1 -2
- package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib/components/SocialFollow/index.js +1 -2
- package/lib/components/SocialFollow/index.js.map +1 -1
- package/lib/components/SocialFollow/sf.config.js +4 -8
- package/lib/components/SocialFollow/sf.config.js.map +1 -1
- package/lib/components/SubMenu/SubMenu.js +1 -2
- package/lib/components/SubMenu/SubMenu.js.map +1 -1
- package/lib/components/SubMenu/index.js +1 -2
- package/lib/components/SubMenu/index.js.map +1 -1
- package/lib/components/TextBlock/TextBlockRender.js +1 -2
- package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib/components/TextBlock/index.js +1 -2
- package/lib/components/TextBlock/index.js.map +1 -1
- package/lib/components/Video/Video.js +1 -2
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoModal.js +3 -4
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +1 -2
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/index.js +1 -2
- package/lib/components/Video/index.js.map +1 -1
- package/lib/components/Video/providers/Default.js +1 -2
- package/lib/components/Video/providers/Default.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +1 -2
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +1 -2
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +3 -4
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +1 -2
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js +1 -2
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +3 -4
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/YouTube/helpers/index.js +3 -6
- package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +3 -4
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/Video/providers/index.js +1 -2
- package/lib/components/Video/providers/index.js.map +1 -1
- package/lib/components/Wrapper.js +1 -2
- package/lib/components/Wrapper.js.map +1 -1
- package/lib/components/index.js +3 -4
- package/lib/components/index.js.map +1 -1
- package/lib/constants/componentsDefaultValues.js +1 -2
- package/lib/constants/componentsDefaultValues.js.map +1 -1
- package/lib/constants/index.js +107 -212
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/append-images.js +1 -2
- package/lib/helpers/append-images.js.map +1 -1
- package/lib/helpers/build-az-filter.js +1 -2
- package/lib/helpers/build-az-filter.js.map +1 -1
- package/lib/helpers/build-checkbox-filters.js +1 -2
- package/lib/helpers/build-checkbox-filters.js.map +1 -1
- package/lib/helpers/build-image-properties.js +1 -2
- package/lib/helpers/build-image-properties.js.map +1 -1
- package/lib/helpers/build-inherited-filters.js +1 -2
- package/lib/helpers/build-inherited-filters.js.map +1 -1
- package/lib/helpers/build-link-extra-props.js +1 -2
- package/lib/helpers/build-link-extra-props.js.map +1 -1
- package/lib/helpers/build-props-query.js +1 -2
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/helpers/build-query-fields.js +1 -2
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/build-query-key.js +1 -2
- package/lib/helpers/build-query-key.js.map +1 -1
- package/lib/helpers/build-raw-query-base.js +2 -4
- package/lib/helpers/build-raw-query-base.js.map +1 -1
- package/lib/helpers/build-raw-query.js +1 -2
- package/lib/helpers/build-raw-query.js.map +1 -1
- package/lib/helpers/build-search-values-checkbox-select.js +1 -2
- package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib/helpers/build-search-values-text.js +1 -2
- package/lib/helpers/build-search-values-text.js.map +1 -1
- package/lib/helpers/build-set-filters.js +1 -2
- package/lib/helpers/build-set-filters.js.map +1 -1
- package/lib/helpers/build-sort-values.js +1 -2
- package/lib/helpers/build-sort-values.js.map +1 -1
- package/lib/helpers/check-for-error.js +1 -2
- package/lib/helpers/check-for-error.js.map +1 -1
- package/lib/helpers/check-props-to-use.js +1 -2
- package/lib/helpers/check-props-to-use.js.map +1 -1
- package/lib/helpers/entities/constants.js +3 -6
- package/lib/helpers/entities/constants.js.map +1 -1
- package/lib/helpers/get-checkbox-filters.js +1 -2
- package/lib/helpers/get-checkbox-filters.js.map +1 -1
- package/lib/helpers/get-click-wrapper-options.js +1 -2
- package/lib/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib/helpers/get-current-offset.js +1 -2
- package/lib/helpers/get-current-offset.js.map +1 -1
- package/lib/helpers/get-dictionary-match.js +1 -2
- package/lib/helpers/get-dictionary-match.js.map +1 -1
- package/lib/helpers/get-display-count-data.js +1 -2
- package/lib/helpers/get-display-count-data.js.map +1 -1
- package/lib/helpers/get-elasticsearch-operator.js +1 -2
- package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib/helpers/get-entity-data.js +1 -2
- package/lib/helpers/get-entity-data.js.map +1 -1
- package/lib/helpers/get-entity-render-props.js +1 -2
- package/lib/helpers/get-entity-render-props.js.map +1 -1
- package/lib/helpers/get-extra-az-bits.js +1 -2
- package/lib/helpers/get-extra-az-bits.js.map +1 -1
- package/lib/helpers/get-filter-props.js +1 -2
- package/lib/helpers/get-filter-props.js.map +1 -1
- package/lib/helpers/get-filter-relation-keys.js +1 -2
- package/lib/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib/helpers/get-generic-props.js +1 -2
- package/lib/helpers/get-generic-props.js.map +1 -1
- package/lib/helpers/get-generic-render-variables.js +1 -2
- package/lib/helpers/get-generic-render-variables.js.map +1 -1
- package/lib/helpers/get-image-ids.js +1 -2
- package/lib/helpers/get-image-ids.js.map +1 -1
- package/lib/helpers/get-inherited-filters.js +1 -2
- package/lib/helpers/get-inherited-filters.js.map +1 -1
- package/lib/helpers/get-items-to-display-ids.js +1 -2
- package/lib/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib/helpers/get-modifiers.js +1 -2
- package/lib/helpers/get-modifiers.js.map +1 -1
- package/lib/helpers/get-pagination-index.js +1 -2
- package/lib/helpers/get-pagination-index.js.map +1 -1
- package/lib/helpers/get-parsed-prop-values.js +1 -2
- package/lib/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib/helpers/get-parsed-summary-value.js +1 -2
- package/lib/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib/helpers/get-prop-values.js +1 -2
- package/lib/helpers/get-prop-values.js.map +1 -1
- package/lib/helpers/get-query-filters.js +1 -2
- package/lib/helpers/get-query-filters.js.map +1 -1
- package/lib/helpers/get-query-props.js +1 -2
- package/lib/helpers/get-query-props.js.map +1 -1
- package/lib/helpers/get-required-schemas.js +1 -2
- package/lib/helpers/get-required-schemas.js.map +1 -1
- package/lib/helpers/get-sanitized-prop-values.js +1 -2
- package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
- package/lib/helpers/get-search-filter-type.js +1 -2
- package/lib/helpers/get-search-filter-type.js.map +1 -1
- package/lib/helpers/get-sort-by-field-name.js +1 -2
- package/lib/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib/helpers/get-unpublished-entity-name.js +1 -2
- package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
- package/lib/helpers/get-updated-filter-by.js +1 -2
- package/lib/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js +1 -2
- package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib/helpers/has-children.js +1 -2
- package/lib/helpers/has-children.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js +1 -2
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js +1 -2
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/index.js +1 -2
- package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
- package/lib/helpers/is-browser.js +1 -2
- package/lib/helpers/is-browser.js.map +1 -1
- package/lib/helpers/is-filter-entitys-id.js +1 -2
- package/lib/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib/helpers/is-object.js +1 -2
- package/lib/helpers/is-object.js.map +1 -1
- package/lib/helpers/is-using-relation-image.js +1 -2
- package/lib/helpers/is-using-relation-image.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +3 -4
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +3 -4
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/process-data-summary-value.js +4 -6
- package/lib/helpers/process-data-summary-value.js.map +1 -1
- package/lib/helpers/remove-extra-items.js +1 -2
- package/lib/helpers/remove-extra-items.js.map +1 -1
- package/lib/helpers/remove-unwanted-characters.js +1 -2
- package/lib/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib/helpers/render-children.js +1 -2
- package/lib/helpers/render-children.js.map +1 -1
- package/lib/helpers/should-render-waypoint.js +1 -2
- package/lib/helpers/should-render-waypoint.js.map +1 -1
- package/lib/helpers/should-show-property.js +1 -2
- package/lib/helpers/should-show-property.js.map +1 -1
- package/lib/helpers/sort-response-data.js +1 -2
- package/lib/helpers/sort-response-data.js.map +1 -1
- package/lib/helpers/split-children.js +1 -2
- package/lib/helpers/split-children.js.map +1 -1
- package/lib/helpers/update-childrens-parent.js +1 -2
- package/lib/helpers/update-childrens-parent.js.map +1 -1
- package/lib/hooks/helpers/RenderComponent.js +10 -4
- package/lib/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib/hooks/helpers/StoreImages.js +1 -2
- package/lib/hooks/helpers/StoreImages.js.map +1 -1
- package/lib/hooks/helpers/append-gtm-classname.js +1 -2
- package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib/hooks/helpers/buildPBComponents.js +1 -2
- package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib/hooks/helpers/check-banner-insertion-set.js +1 -2
- package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
- package/lib/hooks/helpers/check-collisions.js +2 -4
- package/lib/hooks/helpers/check-collisions.js.map +1 -1
- package/lib/hooks/helpers/constants.js +4 -8
- package/lib/hooks/helpers/constants.js.map +1 -1
- package/lib/hooks/helpers/get-banner-index.js +1 -2
- package/lib/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib/hooks/helpers/get-banners-by-type.js +1 -2
- package/lib/hooks/helpers/get-banners-by-type.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js +1 -2
- package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib/hooks/helpers/getVariant.js +18 -0
- package/lib/hooks/helpers/getVariant.js.map +1 -0
- package/lib/hooks/helpers/index.js +1 -2
- package/lib/hooks/helpers/index.js.map +1 -1
- package/lib/hooks/helpers/inject-element-banners.js +1 -2
- package/lib/hooks/helpers/inject-element-banners.js.map +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js +1 -2
- package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib/hooks/helpers/insert-banners.js +1 -2
- package/lib/hooks/helpers/insert-banners.js.map +1 -1
- package/lib/hooks/helpers/update-targetings.js +1 -2
- package/lib/hooks/helpers/update-targetings.js.map +1 -1
- package/lib/hooks/use-banner-insertion.js +1 -2
- package/lib/hooks/use-banner-insertion.js.map +1 -1
- package/lib/hooks/use-check-mobile-screen.js +1 -2
- package/lib/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib/hooks/use-get-entity-schema.js +1 -2
- package/lib/hooks/use-get-entity-schema.js.map +1 -1
- package/lib/hooks/use-get-entity-schemas-as-obj.js +1 -2
- package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib/hooks/use-get-image-id-from-relation.js +3 -4
- package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib/hooks/use-get-images.js +5 -5
- package/lib/hooks/use-get-images.js.map +1 -1
- package/lib/hooks/use-get-single-entity-schema.js +1 -2
- package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib/hooks/use-page-builder.js +1 -2
- package/lib/hooks/use-page-builder.js.map +1 -1
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/component-map.js +4 -5
- package/lib/utils/component-map.js.map +1 -1
- package/lib/utils/get-image-data.js +1 -2
- package/lib/utils/get-image-data.js.map +1 -1
- package/lib/utils/get-props-to-display-modifiers.js +1 -2
- package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib/utils/index.js +7 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/variant-handler.js +39 -0
- package/lib/utils/variant-handler.js.map +1 -0
- package/lib/variants/index.js +9 -0
- package/lib/variants/index.js.map +1 -0
- package/lib-es/components/Card/Card.js +5 -3
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/Card/CardsContainer.js +2 -5
- package/lib-es/components/Card/CardsContainer.js.map +1 -1
- package/lib-es/components/Card/CardsRender.js +1 -2
- package/lib-es/components/Card/CardsRender.js.map +1 -1
- package/lib-es/components/Carousel/Carousel.js +27 -17
- package/lib-es/components/Carousel/Carousel.js.map +1 -1
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js +33 -53
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js +49 -0
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -0
- package/lib-es/components/Image/ImageFactory.js +18 -8
- package/lib-es/components/Image/ImageFactory.js.map +1 -1
- package/lib-es/components/Image/ImageRender.js +9 -3
- package/lib-es/components/Image/ImageRender.js.map +1 -1
- package/lib-es/components/Layout/Layout.js +8 -4
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRender.js +9 -5
- package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContent.js +53 -49
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentResults.js +16 -17
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js +13 -23
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib-es/components/SearchContent/constants.js +4 -0
- package/lib-es/components/SearchContent/constants.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilterContainer.js +0 -1
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib-es/helpers/process-data-summary-value.js +2 -2
- package/lib-es/hooks/helpers/RenderComponent.js +5 -2
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib-es/hooks/helpers/getVariant.js +14 -0
- package/lib-es/hooks/helpers/getVariant.js.map +1 -0
- package/lib-es/hooks/use-get-image-id-from-relation.js +2 -2
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib-es/hooks/use-get-images.js +4 -4
- package/lib-es/hooks/use-get-images.js.map +1 -1
- package/lib-es/index.js +2 -1
- package/lib-es/index.js.map +1 -1
- package/lib-es/utils/component-map.js +4 -4
- package/lib-es/utils/component-map.js.map +1 -1
- package/lib-es/utils/index.js +2 -1
- package/lib-es/utils/index.js.map +1 -1
- package/lib-es/utils/variant-handler.js +26 -0
- package/lib-es/utils/variant-handler.js.map +1 -0
- package/lib-es/variants/index.js +2 -0
- package/lib-es/variants/index.js.map +1 -0
- package/package.json +10 -10
- package/src/components/Card/Card.js +1 -2
- package/src/components/Card/CardsContainer.js +0 -3
- package/src/components/Card/CardsRender.js +0 -1
- package/src/components/Carousel/Carousel.js +28 -12
- package/src/components/Carousel/CarouselRender/CarouselRender.js +36 -56
- package/src/components/Carousel/hooks/useCarouselNavigation.js +50 -0
- package/src/components/Image/ImageFactory.js +20 -5
- package/src/components/Image/ImageRender.js +14 -8
- package/src/components/Layout/Layout.js +8 -5
- package/src/components/List/components/Full/FullRender.js +11 -3
- package/src/components/SearchContent/SearchContent.js +66 -52
- package/src/components/SearchContent/SearchContentResults.js +17 -17
- package/src/components/SearchContent/SearchContentToggleIcon.js +10 -23
- package/src/components/SearchContent/constants.js +6 -0
- package/src/hooks/helpers/RenderComponent.js +4 -0
- package/src/hooks/helpers/getVariant.js +11 -0
- package/src/hooks/use-get-image-id-from-relation.js +13 -2
- package/src/hooks/use-get-images.js +4 -4
- package/src/index.js +2 -1
- package/src/utils/component-map.js +4 -5
- package/src/utils/index.js +9 -1
- package/src/utils/variant-handler.js +33 -0
- package/src/variants/index.js +1 -0
- package/tests/unit/src/components/Carousel/Carousel.test.js +23 -0
- package/tests/unit/src/components/Carousel/CarouselRender/CarouselRender.test.js +14 -22
- package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +10 -0
- package/tests/unit/src/components/Image/ImageFactory.test.js +20 -3
- package/tests/unit/src/components/Image/ImageRender.test.js +12 -0
- package/tests/unit/src/components/Image/__snapshots__/ImageFactory.test.js.snap +24 -0
- package/tests/unit/src/components/Image/__snapshots__/ImageRender.test.js.snap +9 -0
- package/tests/unit/src/components/Image/mocks.js +49 -1
- package/tests/unit/src/components/Layout/Layout.test.js +11 -0
- package/tests/unit/src/components/List/components/Full/FullRender.test.js +14 -1
- package/tests/unit/src/components/List/components/Full/__snapshots__/FullRender.test.js.snap +24 -6
- package/tests/unit/src/components/List/components/mocks.js +9 -3
- package/tests/unit/src/components/Menu/__snapshots__/Menu.test.js.snap +1 -1
- package/tests/unit/src/components/PlaceholderIcon/__snapshots__/index.test.js.snap +4 -6
- package/tests/unit/src/components/SearchContent/SearchContent.test.js +32 -7
- package/tests/unit/src/components/SearchContent/__snapshots__/SearchContent.test.js.snap +66 -2
- package/tests/unit/src/utils/variant-handler.test.js +41 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value","_default","exports"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":";;;;;;;AAAA,IAAMA,IAAI,GAAG,MAAM;AACnB,IAAMC,KAAK,GAAG,OAAO;AAErB,IAAMC,mBAAmB,GAAG;EAC1BF,IAAI,EAAE,KAAK;EACXC,KAAK,EAAE;AACT,CAAC;AAED,SAASE,qBAAqBA,CAACC,KAAK,EAAE;EACpC,IAAIA,KAAK,KAAKJ,IAAI,EAAE,OAAOE,mBAAmB,CAACF,IAAI;EACnD,IAAII,KAAK,KAAKH,KAAK,EAAE,OAAOC,mBAAmB,CAACD,KAAK;EAErD,OAAOG,KAAK;AACd;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value","_default","exports"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":";;;;;;;AAAA,IAAMA,IAAI,GAAG,MAAM;AACnB,IAAMC,KAAK,GAAG,OAAO;AAErB,IAAMC,mBAAmB,GAAG;EAC1BF,IAAI,EAAE,KAAK;EACXC,KAAK,EAAE;AACT,CAAC;AAED,SAASE,qBAAqBA,CAACC,KAAK,EAAE;EACpC,IAAIA,KAAK,KAAKJ,IAAI,EAAE,OAAOE,mBAAmB,CAACF,IAAI;EACnD,IAAII,KAAK,KAAKH,KAAK,EAAE,OAAOC,mBAAmB,CAACD,KAAK;EAErD,OAAOG,KAAK;AACd;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEcH,qBAAqB"}
|
|
@@ -30,6 +30,5 @@ var getPropValues = function getPropValues(propertiesToDisplay, props) {
|
|
|
30
30
|
return value;
|
|
31
31
|
}).filter(Boolean);
|
|
32
32
|
};
|
|
33
|
-
var _default = getPropValues;
|
|
34
|
-
exports["default"] = _default;
|
|
33
|
+
var _default = exports["default"] = getPropValues;
|
|
35
34
|
//# sourceMappingURL=get-prop-values.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prop-values.js","names":["_isObject","_interopRequireDefault","require","getPropValues","propertiesToDisplay","props","map","property","_property$split","split","_property$split2","_slicedToArray2","filteredProperty","subtype","value","Array","isArray","prop","isObject","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,mBAAmB,EAAEC,KAAK;EAAA,OAC/CD,mBAAmB,CAChBE,GAAG,CAAC,UAAAC,QAAQ,EAAI;IACf,IAAAC,eAAA,GAAoCD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,gBAAA,OAAAC,eAAA,aAAAH,eAAA;MAAhDI,gBAAgB,GAAAF,gBAAA;MAAEG,OAAO,GAAAH,gBAAA;IAChC,IAAMI,KAAK,GAAGT,KAAK,CAACO,gBAAgB,CAAC;IAErC,IAAIG,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;MACxB,OAAOA,KAAK,CAACR,GAAG,CAAC,UAAAW,IAAI;QAAA,OAAKJ,OAAO,GAAGI,IAAI,CAACJ,OAAO,CAAC,GAAGI,IAAI;MAAA,CAAC,CAAC;IAC5D;IAEA,IAAI,IAAAC,oBAAQ,EAACJ,KAAK,CAAC,EAAE;MACnB,OAAOA,KAAK,CAACD,OAAO,CAAC;IACvB;IAEA,OAAOC,KAAK;EACd,CAAC,CAAC,CACDK,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"file":"get-prop-values.js","names":["_isObject","_interopRequireDefault","require","getPropValues","propertiesToDisplay","props","map","property","_property$split","split","_property$split2","_slicedToArray2","filteredProperty","subtype","value","Array","isArray","prop","isObject","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,mBAAmB,EAAEC,KAAK;EAAA,OAC/CD,mBAAmB,CAChBE,GAAG,CAAC,UAAAC,QAAQ,EAAI;IACf,IAAAC,eAAA,GAAoCD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,gBAAA,OAAAC,eAAA,aAAAH,eAAA;MAAhDI,gBAAgB,GAAAF,gBAAA;MAAEG,OAAO,GAAAH,gBAAA;IAChC,IAAMI,KAAK,GAAGT,KAAK,CAACO,gBAAgB,CAAC;IAErC,IAAIG,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;MACxB,OAAOA,KAAK,CAACR,GAAG,CAAC,UAAAW,IAAI;QAAA,OAAKJ,OAAO,GAAGI,IAAI,CAACJ,OAAO,CAAC,GAAGI,IAAI;MAAA,CAAC,CAAC;IAC5D;IAEA,IAAI,IAAAC,oBAAQ,EAACJ,KAAK,CAAC,EAAE;MACnB,OAAOA,KAAK,CAACD,OAAO,CAAC;IACvB;IAEA,OAAOC,KAAK;EACd,CAAC,CAAC,CACDK,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAENnB,aAAa"}
|
|
@@ -28,6 +28,5 @@ var getQueryFilters = function getQueryFilters(searchFilter, query, listName) {
|
|
|
28
28
|
valuesOr: valuesOr
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
var _default = getQueryFilters;
|
|
32
|
-
exports["default"] = _default;
|
|
31
|
+
var _default = exports["default"] = getQueryFilters;
|
|
33
32
|
//# sourceMappingURL=get-query-filters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-query-filters.js","names":["_getSearchFilterType","_interopRequireDefault","require","_buildSearchValuesCheckboxSelect","_constants","getQueryFilters","searchFilter","query","listName","settings","filters","valuesAnd","valuesOr","rangeFilters","getSearchFilterType","RANGE","checkboxFilters","CHECKBOX","selectFilters","SELECT","_buildSearchValuesChe","buildSearchValuesCheckboxSelect","values","_default","exports"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query, listName) => {\n if (!searchFilter.settings || !searchFilter.settings.filters)\n return { valuesAnd: [], valuesOr: [] };\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters,\n listName\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gCAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAMG,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,YAAY,EAAEC,KAAK,EAAEC,QAAQ,EAAK;EACzD,IAAI,CAACF,YAAY,CAACG,QAAQ,IAAI,CAACH,YAAY,CAACG,QAAQ,CAACC,OAAO,EAC1D,OAAO;IAAEC,SAAS,EAAE,EAAE;IAAEC,QAAQ,EAAE;EAAG,CAAC;EAExC,IAAMC,YAAY,GAAG,IAAAC,+BAAmB,EAACR,YAAY,EAAES,gBAAK,CAAC;EAC7D,IAAMC,eAAe,GAAG,IAAAF,+BAAmB,EAACR,YAAY,EAAEW,mBAAQ,CAAC;EACnE,IAAMC,aAAa,GAAG,IAAAJ,+BAAmB,EAACR,YAAY,EAAEa,iBAAM,CAAC;EAE/D,IAAAC,qBAAA,GAAwC,IAAAC,2CAA+B,EACrEd,KAAK,EACLM,YAAY,EACZG,eAAe,EACfE,aAAa,EACbV,QACF,CAAC;IANeG,SAAS,GAAAS,qBAAA,CAAjBE,MAAM;IAAaV,QAAQ,GAAAQ,qBAAA,CAARR,QAAQ;EAOnC,OAAO;IAAED,SAAS,EAATA,SAAS;IAAEC,QAAQ,EAARA;EAAS,CAAC;AAChC,CAAC;AAAC,IAAAW,QAAA,
|
|
1
|
+
{"version":3,"file":"get-query-filters.js","names":["_getSearchFilterType","_interopRequireDefault","require","_buildSearchValuesCheckboxSelect","_constants","getQueryFilters","searchFilter","query","listName","settings","filters","valuesAnd","valuesOr","rangeFilters","getSearchFilterType","RANGE","checkboxFilters","CHECKBOX","selectFilters","SELECT","_buildSearchValuesChe","buildSearchValuesCheckboxSelect","values","_default","exports"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query, listName) => {\n if (!searchFilter.settings || !searchFilter.settings.filters)\n return { valuesAnd: [], valuesOr: [] };\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters,\n listName\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gCAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAMG,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,YAAY,EAAEC,KAAK,EAAEC,QAAQ,EAAK;EACzD,IAAI,CAACF,YAAY,CAACG,QAAQ,IAAI,CAACH,YAAY,CAACG,QAAQ,CAACC,OAAO,EAC1D,OAAO;IAAEC,SAAS,EAAE,EAAE;IAAEC,QAAQ,EAAE;EAAG,CAAC;EAExC,IAAMC,YAAY,GAAG,IAAAC,+BAAmB,EAACR,YAAY,EAAES,gBAAK,CAAC;EAC7D,IAAMC,eAAe,GAAG,IAAAF,+BAAmB,EAACR,YAAY,EAAEW,mBAAQ,CAAC;EACnE,IAAMC,aAAa,GAAG,IAAAJ,+BAAmB,EAACR,YAAY,EAAEa,iBAAM,CAAC;EAE/D,IAAAC,qBAAA,GAAwC,IAAAC,2CAA+B,EACrEd,KAAK,EACLM,YAAY,EACZG,eAAe,EACfE,aAAa,EACbV,QACF,CAAC;IANeG,SAAS,GAAAS,qBAAA,CAAjBE,MAAM;IAAaV,QAAQ,GAAAQ,qBAAA,CAARR,QAAQ;EAOnC,OAAO;IAAED,SAAS,EAATA,SAAS;IAAEC,QAAQ,EAARA;EAAS,CAAC;AAChC,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,cAEanB,eAAe"}
|
|
@@ -45,6 +45,5 @@ var getQueryProps = function getQueryProps(inheritedFilters, currentSchema) {
|
|
|
45
45
|
return "".concat(acc, " ").concat(queryPropFinalValue, " ");
|
|
46
46
|
}, _constants.ID);
|
|
47
47
|
};
|
|
48
|
-
var _default = getQueryProps;
|
|
49
|
-
exports["default"] = _default;
|
|
48
|
+
var _default = exports["default"] = getQueryProps;
|
|
50
49
|
//# sourceMappingURL=get-query-props.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-query-props.js","names":["_isFilterEntitysId","_interopRequireDefault","require","_getFilterProps2","_constants","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","arguments","length","undefined","ID","currentEntityId","identifier","properties","filterEntityId","reduce","acc","filter","_getFilterProps","getFilterProps","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","concat","join","queryValue","Object","keys","find","propKey","relation","entityIdentifier","queryProp","queryPropFinalValue","isFilterEntitysId","_default","exports"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema = {}) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId, properties } = currentSchema;\n const { identifier: filterEntityId } = filterEntitySchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n if (filterName === ID) {\n const queryValue = Object.keys(properties).find(\n propKey =>\n properties[propKey] &&\n properties[propKey].relation &&\n properties[propKey].relation.entityIdentifier === filterEntityId\n );\n if (queryValue) return `${acc} ${queryValue} `;\n }\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAMG,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,gBAAgB,EAAEC,aAAa,EAA8B;EAAA,IAA5BC,kBAAkB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAC7E,IAAI,CAACF,aAAa,IAAI,CAACD,gBAAgB,CAACI,MAAM,EAAE,OAAOE,aAAE;EAEzD,IAAoBC,eAAe,GAAiBN,aAAa,CAAzDO,UAAU;IAAmBC,UAAU,GAAKR,aAAa,CAA5BQ,UAAU;EAC/C,IAAoBC,cAAc,GAAKR,kBAAkB,CAAjDM,UAAU;EAElB,OAAOR,gBAAgB,CAACW,MAAM,CAAC,UAACC,GAAG,EAAEC,MAAM,EAAK;IAC9C,IAAAC,eAAA,GAQI,IAAAC,2BAAc,EAACF,MAAM,EAAEZ,aAAa,EAAEC,kBAAkB,CAAC;MAP3Dc,UAAU,GAAAF,eAAA,CAAVE,UAAU;MACVC,YAAY,GAAAH,eAAA,CAAZG,YAAY;MACZC,YAAY,GAAAJ,eAAA,CAAZI,YAAY;MACZC,kBAAkB,GAAAL,eAAA,CAAlBK,kBAAkB;MAClBC,cAAc,GAAAN,eAAA,CAAdM,cAAc;MACdC,mBAAmB,GAAAP,eAAA,CAAnBO,mBAAmB;MACnBC,kBAAkB,GAAAR,eAAA,CAAlBQ,kBAAkB;IAEpB,IAAIA,kBAAkB,EAAE,OAAOV,GAAG;IAClC,IAAIS,mBAAmB,IAAIA,mBAAmB,CAACjB,MAAM,EAAE;MACrD,UAAAmB,MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIF,mBAAmB,CAACG,IAAI,CAAC,GAAG,CAAC;IAChD;IACA,IAAIR,UAAU,KAAKV,aAAE,EAAE;MACrB,IAAMmB,UAAU,GAAGC,MAAM,CAACC,IAAI,CAAClB,UAAU,CAAC,CAACmB,IAAI,CAC7C,UAAAC,OAAO;QAAA,OACLpB,UAAU,CAACoB,OAAO,CAAC,IACnBpB,UAAU,CAACoB,OAAO,CAAC,CAACC,QAAQ,IAC5BrB,UAAU,CAACoB,OAAO,CAAC,CAACC,QAAQ,CAACC,gBAAgB,KAAKrB,cAAc;MAAA,CACpE,CAAC;MACD,IAAIe,UAAU,EAAE,UAAAF,MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIE,UAAU;IAC7C;IACA,IAAMO,SAAS,GAAGb,kBAAkB,MAAAI,MAAA,CAAMN,YAAY,SAAAM,MAAA,CAAML,YAAY,UAAOF,UAAU;IACzF,IAAMiB,mBAAmB,GACvBb,cAAc,IAAI,IAAAc,6BAAiB,EAAClB,UAAU,EAAET,eAAe,CAAC,GAAGD,aAAE,GAAG0B,SAAS;IAEnF,UAAAT,MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIU,mBAAmB;EACtC,CAAC,EAAE3B,aAAE,CAAC;AACR,CAAC;AAAC,IAAA6B,QAAA,
|
|
1
|
+
{"version":3,"file":"get-query-props.js","names":["_isFilterEntitysId","_interopRequireDefault","require","_getFilterProps2","_constants","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","arguments","length","undefined","ID","currentEntityId","identifier","properties","filterEntityId","reduce","acc","filter","_getFilterProps","getFilterProps","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","concat","join","queryValue","Object","keys","find","propKey","relation","entityIdentifier","queryProp","queryPropFinalValue","isFilterEntitysId","_default","exports"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema = {}) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId, properties } = currentSchema;\n const { identifier: filterEntityId } = filterEntitySchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n if (filterName === ID) {\n const queryValue = Object.keys(properties).find(\n propKey =>\n properties[propKey] &&\n properties[propKey].relation &&\n properties[propKey].relation.entityIdentifier === filterEntityId\n );\n if (queryValue) return `${acc} ${queryValue} `;\n }\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAMG,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,gBAAgB,EAAEC,aAAa,EAA8B;EAAA,IAA5BC,kBAAkB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAC7E,IAAI,CAACF,aAAa,IAAI,CAACD,gBAAgB,CAACI,MAAM,EAAE,OAAOE,aAAE;EAEzD,IAAoBC,eAAe,GAAiBN,aAAa,CAAzDO,UAAU;IAAmBC,UAAU,GAAKR,aAAa,CAA5BQ,UAAU;EAC/C,IAAoBC,cAAc,GAAKR,kBAAkB,CAAjDM,UAAU;EAElB,OAAOR,gBAAgB,CAACW,MAAM,CAAC,UAACC,GAAG,EAAEC,MAAM,EAAK;IAC9C,IAAAC,eAAA,GAQI,IAAAC,2BAAc,EAACF,MAAM,EAAEZ,aAAa,EAAEC,kBAAkB,CAAC;MAP3Dc,UAAU,GAAAF,eAAA,CAAVE,UAAU;MACVC,YAAY,GAAAH,eAAA,CAAZG,YAAY;MACZC,YAAY,GAAAJ,eAAA,CAAZI,YAAY;MACZC,kBAAkB,GAAAL,eAAA,CAAlBK,kBAAkB;MAClBC,cAAc,GAAAN,eAAA,CAAdM,cAAc;MACdC,mBAAmB,GAAAP,eAAA,CAAnBO,mBAAmB;MACnBC,kBAAkB,GAAAR,eAAA,CAAlBQ,kBAAkB;IAEpB,IAAIA,kBAAkB,EAAE,OAAOV,GAAG;IAClC,IAAIS,mBAAmB,IAAIA,mBAAmB,CAACjB,MAAM,EAAE;MACrD,UAAAmB,MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIF,mBAAmB,CAACG,IAAI,CAAC,GAAG,CAAC;IAChD;IACA,IAAIR,UAAU,KAAKV,aAAE,EAAE;MACrB,IAAMmB,UAAU,GAAGC,MAAM,CAACC,IAAI,CAAClB,UAAU,CAAC,CAACmB,IAAI,CAC7C,UAAAC,OAAO;QAAA,OACLpB,UAAU,CAACoB,OAAO,CAAC,IACnBpB,UAAU,CAACoB,OAAO,CAAC,CAACC,QAAQ,IAC5BrB,UAAU,CAACoB,OAAO,CAAC,CAACC,QAAQ,CAACC,gBAAgB,KAAKrB,cAAc;MAAA,CACpE,CAAC;MACD,IAAIe,UAAU,EAAE,UAAAF,MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIE,UAAU;IAC7C;IACA,IAAMO,SAAS,GAAGb,kBAAkB,MAAAI,MAAA,CAAMN,YAAY,SAAAM,MAAA,CAAML,YAAY,UAAOF,UAAU;IACzF,IAAMiB,mBAAmB,GACvBb,cAAc,IAAI,IAAAc,6BAAiB,EAAClB,UAAU,EAAET,eAAe,CAAC,GAAGD,aAAE,GAAG0B,SAAS;IAEnF,UAAAT,MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIU,mBAAmB;EACtC,CAAC,EAAE3B,aAAE,CAAC;AACR,CAAC;AAAC,IAAA6B,QAAA,GAAAC,OAAA,cAEarC,aAAa"}
|
|
@@ -39,6 +39,5 @@ var getRequiredSchemas = function getRequiredSchemas(searchProperties) {
|
|
|
39
39
|
return matchingRelation.entityIdentifier;
|
|
40
40
|
}))).filter(Boolean);
|
|
41
41
|
};
|
|
42
|
-
var _default = getRequiredSchemas;
|
|
43
|
-
exports["default"] = _default;
|
|
42
|
+
var _default = exports["default"] = getRequiredSchemas;
|
|
44
43
|
//# sourceMappingURL=get-required-schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-required-schemas.js","names":["getRequiredSchemas","searchProperties","_ref","arguments","length","undefined","id","_ref$properties","properties","_ref$dynamicPropertie","dynamicProperties","_ref$relations","relations","concat","_toConsumableArray2","map","property","fieldParts","split","_property$split","_property$split2","_slicedToArray2","localFieldPart","matchingRelation","find","_ref2","localField","entityIdentifier","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-required-schemas.js"],"sourcesContent":["const getRequiredSchemas = (\n searchProperties,\n { id, properties = {}, dynamicProperties = {}, relations = [] } = {}\n) =>\n [\n id,\n ...searchProperties.map(property => {\n if (!property) return null;\n\n const fieldParts = property.split('.');\n const [localFieldPart] = property.split('.');\n\n if (\n fieldParts.length === 1 ||\n properties[localFieldPart] ||\n dynamicProperties[localFieldPart]\n ) {\n return null;\n }\n\n const matchingRelation = relations.find(({ localField }) => localField === localFieldPart);\n if (!matchingRelation) return null;\n\n return matchingRelation.entityIdentifier;\n })\n ].filter(Boolean);\n\nexport default getRequiredSchemas;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,gBAAgB;EAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MACkD,CAAC,CAAC;IAAlEG,EAAE,GAAAJ,IAAA,CAAFI,EAAE;IAAAC,eAAA,GAAAL,IAAA,CAAEM,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,CAAC,CAAC,GAAAA,eAAA;IAAAE,qBAAA,GAAAP,IAAA,CAAEQ,iBAAiB;IAAjBA,iBAAiB,GAAAD,qBAAA,cAAG,CAAC,CAAC,GAAAA,qBAAA;IAAAE,cAAA,GAAAT,IAAA,CAAEU,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,EAAE,GAAAA,cAAA;EAAA,OAE7D,CACEL,EAAE,EAAAO,MAAA,KAAAC,mBAAA,aACCb,gBAAgB,CAACc,GAAG,CAAC,UAAAC,QAAQ,EAAI;IAClC,IAAI,CAACA,QAAQ,EAAE,OAAO,IAAI;IAE1B,IAAMC,UAAU,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;IACtC,IAAAC,eAAA,GAAyBH,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAE,gBAAA,OAAAC,eAAA,aAAAF,eAAA;MAArCG,cAAc,GAAAF,gBAAA;IAErB,IACEH,UAAU,CAACb,MAAM,KAAK,CAAC,IACvBI,UAAU,CAACc,cAAc,CAAC,IAC1BZ,iBAAiB,CAACY,cAAc,CAAC,EACjC;MACA,OAAO,IAAI;IACb;IAEA,IAAMC,gBAAgB,GAAGX,SAAS,CAACY,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;MAAA,OAAOA,UAAU,KAAKJ,cAAc;IAAA,EAAC;IAC1F,IAAI,CAACC,gBAAgB,EAAE,OAAO,IAAI;IAElC,OAAOA,gBAAgB,CAACI,gBAAgB;EAC1C,CAAC,CAAC,GACFC,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"file":"get-required-schemas.js","names":["getRequiredSchemas","searchProperties","_ref","arguments","length","undefined","id","_ref$properties","properties","_ref$dynamicPropertie","dynamicProperties","_ref$relations","relations","concat","_toConsumableArray2","map","property","fieldParts","split","_property$split","_property$split2","_slicedToArray2","localFieldPart","matchingRelation","find","_ref2","localField","entityIdentifier","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-required-schemas.js"],"sourcesContent":["const getRequiredSchemas = (\n searchProperties,\n { id, properties = {}, dynamicProperties = {}, relations = [] } = {}\n) =>\n [\n id,\n ...searchProperties.map(property => {\n if (!property) return null;\n\n const fieldParts = property.split('.');\n const [localFieldPart] = property.split('.');\n\n if (\n fieldParts.length === 1 ||\n properties[localFieldPart] ||\n dynamicProperties[localFieldPart]\n ) {\n return null;\n }\n\n const matchingRelation = relations.find(({ localField }) => localField === localFieldPart);\n if (!matchingRelation) return null;\n\n return matchingRelation.entityIdentifier;\n })\n ].filter(Boolean);\n\nexport default getRequiredSchemas;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,gBAAgB;EAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MACkD,CAAC,CAAC;IAAlEG,EAAE,GAAAJ,IAAA,CAAFI,EAAE;IAAAC,eAAA,GAAAL,IAAA,CAAEM,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,CAAC,CAAC,GAAAA,eAAA;IAAAE,qBAAA,GAAAP,IAAA,CAAEQ,iBAAiB;IAAjBA,iBAAiB,GAAAD,qBAAA,cAAG,CAAC,CAAC,GAAAA,qBAAA;IAAAE,cAAA,GAAAT,IAAA,CAAEU,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,EAAE,GAAAA,cAAA;EAAA,OAE7D,CACEL,EAAE,EAAAO,MAAA,KAAAC,mBAAA,aACCb,gBAAgB,CAACc,GAAG,CAAC,UAAAC,QAAQ,EAAI;IAClC,IAAI,CAACA,QAAQ,EAAE,OAAO,IAAI;IAE1B,IAAMC,UAAU,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;IACtC,IAAAC,eAAA,GAAyBH,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAE,gBAAA,OAAAC,eAAA,aAAAF,eAAA;MAArCG,cAAc,GAAAF,gBAAA;IAErB,IACEH,UAAU,CAACb,MAAM,KAAK,CAAC,IACvBI,UAAU,CAACc,cAAc,CAAC,IAC1BZ,iBAAiB,CAACY,cAAc,CAAC,EACjC;MACA,OAAO,IAAI;IACb;IAEA,IAAMC,gBAAgB,GAAGX,SAAS,CAACY,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;MAAA,OAAOA,UAAU,KAAKJ,cAAc;IAAA,EAAC;IAC1F,IAAI,CAACC,gBAAgB,EAAE,OAAO,IAAI;IAElC,OAAOA,gBAAgB,CAACI,gBAAgB;EAC1C,CAAC,CAAC,GACFC,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEL/B,kBAAkB"}
|
|
@@ -12,6 +12,5 @@ var getSanitizedPropValues = function getSanitizedPropValues(values) {
|
|
|
12
12
|
return curr.length ? [prev, ', ', curr] : prev;
|
|
13
13
|
}) : values;
|
|
14
14
|
};
|
|
15
|
-
var _default = getSanitizedPropValues;
|
|
16
|
-
exports["default"] = _default;
|
|
15
|
+
var _default = exports["default"] = getSanitizedPropValues;
|
|
17
16
|
//# sourceMappingURL=get-sanitized-prop-values.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sanitized-prop-values.js","names":["getSanitizedPropValues","values","length","reduce","prev","curr","_default","exports"],"sources":["../../src/helpers/get-sanitized-prop-values.js"],"sourcesContent":["const getSanitizedPropValues = values =>\n values.length ? values.reduce((prev, curr) => (curr.length ? [prev, ', ', curr] : prev)) : values;\n\nexport default getSanitizedPropValues;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAGC,MAAM;EAAA,OACnCA,MAAM,CAACC,MAAM,GAAGD,MAAM,CAACE,MAAM,CAAC,UAACC,IAAI,EAAEC,IAAI;IAAA,OAAMA,IAAI,CAACH,MAAM,GAAG,CAACE,IAAI,EAAE,IAAI,EAAEC,IAAI,CAAC,GAAGD,IAAI;EAAA,CAAC,CAAC,GAAGH,MAAM;AAAA;AAAC,IAAAK,QAAA,
|
|
1
|
+
{"version":3,"file":"get-sanitized-prop-values.js","names":["getSanitizedPropValues","values","length","reduce","prev","curr","_default","exports"],"sources":["../../src/helpers/get-sanitized-prop-values.js"],"sourcesContent":["const getSanitizedPropValues = values =>\n values.length ? values.reduce((prev, curr) => (curr.length ? [prev, ', ', curr] : prev)) : values;\n\nexport default getSanitizedPropValues;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAGC,MAAM;EAAA,OACnCA,MAAM,CAACC,MAAM,GAAGD,MAAM,CAACE,MAAM,CAAC,UAACC,IAAI,EAAEC,IAAI;IAAA,OAAMA,IAAI,CAACH,MAAM,GAAG,CAACE,IAAI,EAAE,IAAI,EAAEC,IAAI,CAAC,GAAGD,IAAI;EAAA,CAAC,CAAC,GAAGH,MAAM;AAAA;AAAC,IAAAK,QAAA,GAAAC,OAAA,cAErFP,sBAAsB"}
|
|
@@ -18,6 +18,5 @@ var getSearchFilterType = function getSearchFilterType(_ref, type) {
|
|
|
18
18
|
return filterType === type;
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
var _default = getSearchFilterType;
|
|
22
|
-
exports["default"] = _default;
|
|
21
|
+
var _default = exports["default"] = getSearchFilterType;
|
|
23
22
|
//# sourceMappingURL=get-search-filter-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-search-filter-type.js","names":["getSearchFilterType","_ref","type","_ref$settings","settings","_ref$settings2","_ref$settings2$filter","filters","length","filter","_ref2","filterType","_default","exports"],"sources":["../../src/helpers/get-search-filter-type.js"],"sourcesContent":["const getSearchFilterType = ({ settings: { filters = [] } = {} }, type) => {\n if (!filters.length) return [];\n\n return filters.filter(({ type: filterType }) => filterType === type);\n};\n\nexport default getSearchFilterType;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAAyCC,IAAI,EAAK;EAAA,IAAAC,aAAA,GAAAF,IAAA,CAA5CG,QAAQ;IAAAC,cAAA,GAAAF,aAAA,cAAqB,CAAC,CAAC,GAAAA,aAAA;IAAAG,qBAAA,GAAAD,cAAA,CAAnBE,OAAO;IAAPA,OAAO,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;EACrD,IAAI,CAACC,OAAO,CAACC,MAAM,EAAE,OAAO,EAAE;EAE9B,OAAOD,OAAO,CAACE,MAAM,CAAC,UAAAC,KAAA;IAAA,IAASC,UAAU,GAAAD,KAAA,CAAhBR,IAAI;IAAA,OAAmBS,UAAU,KAAKT,IAAI;EAAA,EAAC;AACtE,CAAC;AAAC,IAAAU,QAAA,
|
|
1
|
+
{"version":3,"file":"get-search-filter-type.js","names":["getSearchFilterType","_ref","type","_ref$settings","settings","_ref$settings2","_ref$settings2$filter","filters","length","filter","_ref2","filterType","_default","exports"],"sources":["../../src/helpers/get-search-filter-type.js"],"sourcesContent":["const getSearchFilterType = ({ settings: { filters = [] } = {} }, type) => {\n if (!filters.length) return [];\n\n return filters.filter(({ type: filterType }) => filterType === type);\n};\n\nexport default getSearchFilterType;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAAyCC,IAAI,EAAK;EAAA,IAAAC,aAAA,GAAAF,IAAA,CAA5CG,QAAQ;IAAAC,cAAA,GAAAF,aAAA,cAAqB,CAAC,CAAC,GAAAA,aAAA;IAAAG,qBAAA,GAAAD,cAAA,CAAnBE,OAAO;IAAPA,OAAO,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;EACrD,IAAI,CAACC,OAAO,CAACC,MAAM,EAAE,OAAO,EAAE;EAE9B,OAAOD,OAAO,CAACE,MAAM,CAAC,UAAAC,KAAA;IAAA,IAASC,UAAU,GAAAD,KAAA,CAAhBR,IAAI;IAAA,OAAmBS,UAAU,KAAKT,IAAI;EAAA,EAAC;AACtE,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,cAEab,mBAAmB"}
|
|
@@ -39,6 +39,5 @@ var buildFieldName = function buildFieldName(relations, fieldValue, stringProps)
|
|
|
39
39
|
var getSortbyFieldName = function getSortbyFieldName(relations, sortby, stringProps, isSortbyArray) {
|
|
40
40
|
return isSortbyArray ? buildFieldName(relations, sortby[0], stringProps) : buildFieldName(relations, sortby, stringProps);
|
|
41
41
|
};
|
|
42
|
-
var _default = getSortbyFieldName;
|
|
43
|
-
exports["default"] = _default;
|
|
42
|
+
var _default = exports["default"] = getSortbyFieldName;
|
|
44
43
|
//# sourceMappingURL=get-sort-by-field-name.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sort-by-field-name.js","names":["_constants","require","buildFieldName","relations","fieldValue","stringProps","field","Array","isArray","updatedField","includes","_field$split","split","_field$split2","_slicedToArray2","relationName","relationProp","_relations$filter","filter","_ref","localField","_relations$filter2","relation","_ref2","_ref2$entityIdentifie","entityIdentifier","concat","KEYWORD","getSortbyFieldName","sortby","isSortbyArray","_default","exports"],"sources":["../../src/helpers/get-sort-by-field-name.js"],"sourcesContent":["import { KEYWORD } from '../constants';\n\nconst buildFieldName = (relations, fieldValue, stringProps) => {\n const field = Array.isArray(fieldValue) ? fieldValue[0] : fieldValue;\n if (!field) return null;\n\n let updatedField = field;\n\n if (field.includes('.')) {\n const [relationName, relationProp] = field.split('.');\n\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedField = `${entityIdentifier}.${relationProp}`;\n }\n return stringProps.includes(updatedField) ? `${field}.${KEYWORD}` : field;\n};\n\nconst getSortbyFieldName = (relations, sortby, stringProps, isSortbyArray) =>\n isSortbyArray\n ? buildFieldName(relations, sortby[0], stringProps)\n : buildFieldName(relations, sortby, stringProps);\n\nexport default getSortbyFieldName;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,SAAS,EAAEC,UAAU,EAAEC,WAAW,EAAK;EAC7D,IAAMC,KAAK,GAAGC,KAAK,CAACC,OAAO,CAACJ,UAAU,CAAC,GAAGA,UAAU,CAAC,CAAC,CAAC,GAAGA,UAAU;EACpE,IAAI,CAACE,KAAK,EAAE,OAAO,IAAI;EAEvB,IAAIG,YAAY,GAAGH,KAAK;EAExB,IAAIA,KAAK,CAACI,QAAQ,CAAC,GAAG,CAAC,EAAE;IACvB,IAAAC,YAAA,GAAqCL,KAAK,CAACM,KAAK,CAAC,GAAG,CAAC;MAAAC,aAAA,OAAAC,eAAA,aAAAH,YAAA;MAA9CI,YAAY,GAAAF,aAAA;MAAEG,YAAY,GAAAH,aAAA;IAEjC,IAAAI,iBAAA,GAAmBd,SAAS,CAACe,MAAM,CAAC,UAAAC,IAAA;QAAA,IAAGC,UAAU,GAAAD,IAAA,CAAVC,UAAU;QAAA,OAAOA,UAAU,KAAKL,YAAY;MAAA,EAAC;MAAAM,kBAAA,OAAAP,eAAA,aAAAG,iBAAA;MAA7EK,QAAQ,GAAAD,kBAAA;IACf,IAAAE,KAAA,GAAkCD,QAAQ,IAAI,CAAC,CAAC;MAAAE,qBAAA,GAAAD,KAAA,CAAxCE,gBAAgB;MAAhBA,gBAAgB,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;IAC7B,IAAIC,gBAAgB,IAAIA,gBAAgB,KAAKV,YAAY,EACvDN,YAAY,MAAAiB,MAAA,CAAMD,gBAAgB,OAAAC,MAAA,CAAIV,YAAY,CAAE;EACxD;EACA,OAAOX,WAAW,CAACK,QAAQ,CAACD,YAAY,CAAC,MAAAiB,MAAA,CAAMpB,KAAK,OAAAoB,MAAA,CAAIC,kBAAO,IAAKrB,KAAK;AAC3E,CAAC;AAED,IAAMsB,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIzB,SAAS,EAAE0B,MAAM,EAAExB,WAAW,EAAEyB,aAAa;EAAA,OACvEA,aAAa,GACT5B,cAAc,CAACC,SAAS,EAAE0B,MAAM,CAAC,CAAC,CAAC,EAAExB,WAAW,CAAC,GACjDH,cAAc,CAACC,SAAS,EAAE0B,MAAM,EAAExB,WAAW,CAAC;AAAA;AAAC,IAAA0B,QAAA,
|
|
1
|
+
{"version":3,"file":"get-sort-by-field-name.js","names":["_constants","require","buildFieldName","relations","fieldValue","stringProps","field","Array","isArray","updatedField","includes","_field$split","split","_field$split2","_slicedToArray2","relationName","relationProp","_relations$filter","filter","_ref","localField","_relations$filter2","relation","_ref2","_ref2$entityIdentifie","entityIdentifier","concat","KEYWORD","getSortbyFieldName","sortby","isSortbyArray","_default","exports"],"sources":["../../src/helpers/get-sort-by-field-name.js"],"sourcesContent":["import { KEYWORD } from '../constants';\n\nconst buildFieldName = (relations, fieldValue, stringProps) => {\n const field = Array.isArray(fieldValue) ? fieldValue[0] : fieldValue;\n if (!field) return null;\n\n let updatedField = field;\n\n if (field.includes('.')) {\n const [relationName, relationProp] = field.split('.');\n\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedField = `${entityIdentifier}.${relationProp}`;\n }\n return stringProps.includes(updatedField) ? `${field}.${KEYWORD}` : field;\n};\n\nconst getSortbyFieldName = (relations, sortby, stringProps, isSortbyArray) =>\n isSortbyArray\n ? buildFieldName(relations, sortby[0], stringProps)\n : buildFieldName(relations, sortby, stringProps);\n\nexport default getSortbyFieldName;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,SAAS,EAAEC,UAAU,EAAEC,WAAW,EAAK;EAC7D,IAAMC,KAAK,GAAGC,KAAK,CAACC,OAAO,CAACJ,UAAU,CAAC,GAAGA,UAAU,CAAC,CAAC,CAAC,GAAGA,UAAU;EACpE,IAAI,CAACE,KAAK,EAAE,OAAO,IAAI;EAEvB,IAAIG,YAAY,GAAGH,KAAK;EAExB,IAAIA,KAAK,CAACI,QAAQ,CAAC,GAAG,CAAC,EAAE;IACvB,IAAAC,YAAA,GAAqCL,KAAK,CAACM,KAAK,CAAC,GAAG,CAAC;MAAAC,aAAA,OAAAC,eAAA,aAAAH,YAAA;MAA9CI,YAAY,GAAAF,aAAA;MAAEG,YAAY,GAAAH,aAAA;IAEjC,IAAAI,iBAAA,GAAmBd,SAAS,CAACe,MAAM,CAAC,UAAAC,IAAA;QAAA,IAAGC,UAAU,GAAAD,IAAA,CAAVC,UAAU;QAAA,OAAOA,UAAU,KAAKL,YAAY;MAAA,EAAC;MAAAM,kBAAA,OAAAP,eAAA,aAAAG,iBAAA;MAA7EK,QAAQ,GAAAD,kBAAA;IACf,IAAAE,KAAA,GAAkCD,QAAQ,IAAI,CAAC,CAAC;MAAAE,qBAAA,GAAAD,KAAA,CAAxCE,gBAAgB;MAAhBA,gBAAgB,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;IAC7B,IAAIC,gBAAgB,IAAIA,gBAAgB,KAAKV,YAAY,EACvDN,YAAY,MAAAiB,MAAA,CAAMD,gBAAgB,OAAAC,MAAA,CAAIV,YAAY,CAAE;EACxD;EACA,OAAOX,WAAW,CAACK,QAAQ,CAACD,YAAY,CAAC,MAAAiB,MAAA,CAAMpB,KAAK,OAAAoB,MAAA,CAAIC,kBAAO,IAAKrB,KAAK;AAC3E,CAAC;AAED,IAAMsB,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIzB,SAAS,EAAE0B,MAAM,EAAExB,WAAW,EAAEyB,aAAa;EAAA,OACvEA,aAAa,GACT5B,cAAc,CAACC,SAAS,EAAE0B,MAAM,CAAC,CAAC,CAAC,EAAExB,WAAW,CAAC,GACjDH,cAAc,CAACC,SAAS,EAAE0B,MAAM,EAAExB,WAAW,CAAC;AAAA;AAAC,IAAA0B,QAAA,GAAAC,OAAA,cAEtCJ,kBAAkB"}
|
|
@@ -17,6 +17,5 @@ var getUnpublishedEntityName = function getUnpublishedEntityName(entity) {
|
|
|
17
17
|
return word !== _constants.PUBLISHED;
|
|
18
18
|
}).join(UNDERSCORE);
|
|
19
19
|
};
|
|
20
|
-
var _default = getUnpublishedEntityName;
|
|
21
|
-
exports["default"] = _default;
|
|
20
|
+
var _default = exports["default"] = getUnpublishedEntityName;
|
|
22
21
|
//# sourceMappingURL=get-unpublished-entity-name.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-unpublished-entity-name.js","names":["_constants","require","UNDERSCORE","getUnpublishedEntityName","entity","split","filter","word","PUBLISHED","join","_default","exports"],"sources":["../../src/helpers/get-unpublished-entity-name.js"],"sourcesContent":["import { PUBLISHED } from '../constants';\n\nconst UNDERSCORE = '_';\n\nconst getUnpublishedEntityName = entity =>\n entity\n .split(UNDERSCORE)\n .filter(word => word !== PUBLISHED)\n .join(UNDERSCORE);\n\nexport default getUnpublishedEntityName;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,UAAU,GAAG,GAAG;AAEtB,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAGC,MAAM;EAAA,OACrCA,MAAM,CACHC,KAAK,CAACH,UAAU,CAAC,CACjBI,MAAM,CAAC,UAAAC,IAAI;IAAA,OAAIA,IAAI,KAAKC,oBAAS;EAAA,EAAC,CAClCC,IAAI,CAACP,UAAU,CAAC;AAAA;AAAC,IAAAQ,QAAA,
|
|
1
|
+
{"version":3,"file":"get-unpublished-entity-name.js","names":["_constants","require","UNDERSCORE","getUnpublishedEntityName","entity","split","filter","word","PUBLISHED","join","_default","exports"],"sources":["../../src/helpers/get-unpublished-entity-name.js"],"sourcesContent":["import { PUBLISHED } from '../constants';\n\nconst UNDERSCORE = '_';\n\nconst getUnpublishedEntityName = entity =>\n entity\n .split(UNDERSCORE)\n .filter(word => word !== PUBLISHED)\n .join(UNDERSCORE);\n\nexport default getUnpublishedEntityName;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,UAAU,GAAG,GAAG;AAEtB,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAGC,MAAM;EAAA,OACrCA,MAAM,CACHC,KAAK,CAACH,UAAU,CAAC,CACjBI,MAAM,CAAC,UAAAC,IAAI;IAAA,OAAIA,IAAI,KAAKC,oBAAS;EAAA,EAAC,CAClCC,IAAI,CAACP,UAAU,CAAC;AAAA;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEPR,wBAAwB"}
|
|
@@ -17,6 +17,5 @@ var getUpdatedFilterBy = function getUpdatedFilterBy(inheritedFilters, entityDat
|
|
|
17
17
|
}
|
|
18
18
|
return [];
|
|
19
19
|
};
|
|
20
|
-
var _default = getUpdatedFilterBy;
|
|
21
|
-
exports["default"] = _default;
|
|
20
|
+
var _default = exports["default"] = getUpdatedFilterBy;
|
|
22
21
|
//# sourceMappingURL=get-updated-filter-by.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-updated-filter-by.js","names":["_lodash","_interopRequireDefault","require","_buildInheritedFilters","getUpdatedFilterBy","inheritedFilters","entityData","currentSchema","filterEntitySchema","itemId","props","length","relationFilters","buildInheritedFilters","uniq","concat","_toConsumableArray2","filterBy","_default","exports"],"sources":["../../src/helpers/get-updated-filter-by.js"],"sourcesContent":["import uniq from 'lodash.uniq';\nimport buildInheritedFilters from './build-inherited-filters';\n\nconst getUpdatedFilterBy = (\n inheritedFilters,\n entityData,\n currentSchema,\n filterEntitySchema,\n itemId,\n props\n) => {\n if (inheritedFilters && inheritedFilters.length) {\n const relationFilters = buildInheritedFilters(\n entityData,\n inheritedFilters,\n currentSchema,\n filterEntitySchema,\n itemId\n );\n\n return relationFilters.length ? uniq([...props.filterBy, ...relationFilters]) : null;\n }\n return [];\n};\n\nexport default getUpdatedFilterBy;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,gBAAgB,EAChBC,UAAU,EACVC,aAAa,EACbC,kBAAkB,EAClBC,MAAM,EACNC,KAAK,EACF;EACH,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACM,MAAM,EAAE;IAC/C,IAAMC,eAAe,GAAG,IAAAC,iCAAqB,EAC3CP,UAAU,EACVD,gBAAgB,EAChBE,aAAa,EACbC,kBAAkB,EAClBC,MACF,CAAC;IAED,OAAOG,eAAe,CAACD,MAAM,GAAG,IAAAG,kBAAI,KAAAC,MAAA,KAAAC,mBAAA,aAAKN,KAAK,CAACO,QAAQ,OAAAD,mBAAA,aAAKJ,eAAe,EAAC,CAAC,GAAG,IAAI;EACtF;EACA,OAAO,EAAE;AACX,CAAC;AAAC,IAAAM,QAAA,
|
|
1
|
+
{"version":3,"file":"get-updated-filter-by.js","names":["_lodash","_interopRequireDefault","require","_buildInheritedFilters","getUpdatedFilterBy","inheritedFilters","entityData","currentSchema","filterEntitySchema","itemId","props","length","relationFilters","buildInheritedFilters","uniq","concat","_toConsumableArray2","filterBy","_default","exports"],"sources":["../../src/helpers/get-updated-filter-by.js"],"sourcesContent":["import uniq from 'lodash.uniq';\nimport buildInheritedFilters from './build-inherited-filters';\n\nconst getUpdatedFilterBy = (\n inheritedFilters,\n entityData,\n currentSchema,\n filterEntitySchema,\n itemId,\n props\n) => {\n if (inheritedFilters && inheritedFilters.length) {\n const relationFilters = buildInheritedFilters(\n entityData,\n inheritedFilters,\n currentSchema,\n filterEntitySchema,\n itemId\n );\n\n return relationFilters.length ? uniq([...props.filterBy, ...relationFilters]) : null;\n }\n return [];\n};\n\nexport default getUpdatedFilterBy;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,gBAAgB,EAChBC,UAAU,EACVC,aAAa,EACbC,kBAAkB,EAClBC,MAAM,EACNC,KAAK,EACF;EACH,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACM,MAAM,EAAE;IAC/C,IAAMC,eAAe,GAAG,IAAAC,iCAAqB,EAC3CP,UAAU,EACVD,gBAAgB,EAChBE,aAAa,EACbC,kBAAkB,EAClBC,MACF,CAAC;IAED,OAAOG,eAAe,CAACD,MAAM,GAAG,IAAAG,kBAAI,KAAAC,MAAA,KAAAC,mBAAA,aAAKN,KAAK,CAACO,QAAQ,OAAAD,mBAAA,aAAKJ,eAAe,EAAC,CAAC,GAAG,IAAI;EACtF;EACA,OAAO,EAAE;AACX,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,cAEaf,kBAAkB"}
|
|
@@ -31,6 +31,5 @@ var getWrappedValueWithLink = function getWrappedValueWithLink(value, link) {
|
|
|
31
31
|
href: link
|
|
32
32
|
}, value) : value;
|
|
33
33
|
};
|
|
34
|
-
var _default = getWrappedValueWithLink;
|
|
35
|
-
exports["default"] = _default;
|
|
34
|
+
var _default = exports["default"] = getWrappedValueWithLink;
|
|
36
35
|
//# sourceMappingURL=get-wrapped-value-with-link.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-wrapped-value-with-link.js","names":["_react","_interopRequireDefault","require","_BlazeLink","getWrappedValueWithLink","value","link","keyPrefix","arguments","length","undefined","Array","isArray","arrayResults","map","arrValue","index","keyField","url","keyValue","isLastItem","keyFieldValue","createElement","Fragment","key","join","href","_default","exports"],"sources":["../../src/helpers/get-wrapped-value-with-link.js"],"sourcesContent":["import React from 'react';\nimport BlazeLink from '../components/BlazeLink';\n\nconst getWrappedValueWithLink = (value, link, keyPrefix = '') => {\n if (Array.isArray(value)) {\n const arrayResults = value.map((arrValue, index) => {\n const { keyField, url } = arrValue;\n const keyValue = arrValue[keyField];\n\n const isLastItem = index === value.length - 1;\n const keyFieldValue = isLastItem ? keyValue : <>{keyValue}, </>;\n\n return url ? (\n <BlazeLink key={[keyPrefix, index].join('-')} href={url}>\n {<>{keyFieldValue} </>}\n </BlazeLink>\n ) : (\n <>{keyFieldValue} </>\n );\n });\n\n return arrayResults.length ? arrayResults : null;\n }\n\n return link ? <BlazeLink href={link}>{value}</BlazeLink> : value;\n};\n\nexport default getWrappedValueWithLink;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAIC,KAAK,EAAEC,IAAI,EAAqB;EAAA,IAAnBC,SAAS,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAC1D,IAAIG,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,EAAE;IACxB,IAAMQ,YAAY,GAAGR,KAAK,CAACS,GAAG,CAAC,UAACC,QAAQ,EAAEC,KAAK,EAAK;MAClD,IAAQC,QAAQ,GAAUF,QAAQ,CAA1BE,QAAQ;QAAEC,GAAG,GAAKH,QAAQ,CAAhBG,GAAG;MACrB,IAAMC,QAAQ,GAAGJ,QAAQ,CAACE,QAAQ,CAAC;MAEnC,IAAMG,UAAU,GAAGJ,KAAK,KAAKX,KAAK,CAACI,MAAM,GAAG,CAAC;MAC7C,IAAMY,aAAa,GAAGD,UAAU,GAAGD,QAAQ,gBAAGnB,MAAA,YAAAsB,aAAA,CAAAtB,MAAA,YAAAuB,QAAA,QAAGJ,QAAQ,EAAC,IAAI,CAAC;MAE/D,OAAOD,GAAG,gBACRlB,MAAA,YAAAsB,aAAA,CAACnB,UAAA,WAAS;QAACqB,GAAG,EAAE,CAACjB,SAAS,EAAES,KAAK,CAAC,CAACS,IAAI,CAAC,GAAG,CAAE;QAACC,IAAI,EAAER;MAAI,gBACrDlB,MAAA,YAAAsB,aAAA,CAAAtB,MAAA,YAAAuB,QAAA,QAAGF,aAAa,EAAC,GAAG,CACZ,CAAC,gBAEZrB,MAAA,YAAAsB,aAAA,CAAAtB,MAAA,YAAAuB,QAAA,QAAGF,aAAa,EAAC,GAAG,CACrB;IACH,CAAC,CAAC;IAEF,OAAOR,YAAY,CAACJ,MAAM,GAAGI,YAAY,GAAG,IAAI;EAClD;EAEA,OAAOP,IAAI,gBAAGN,MAAA,YAAAsB,aAAA,CAACnB,UAAA,WAAS;IAACuB,IAAI,EAAEpB;EAAK,GAAED,KAAiB,CAAC,GAAGA,KAAK;AAClE,CAAC;AAAC,IAAAsB,QAAA,
|
|
1
|
+
{"version":3,"file":"get-wrapped-value-with-link.js","names":["_react","_interopRequireDefault","require","_BlazeLink","getWrappedValueWithLink","value","link","keyPrefix","arguments","length","undefined","Array","isArray","arrayResults","map","arrValue","index","keyField","url","keyValue","isLastItem","keyFieldValue","createElement","Fragment","key","join","href","_default","exports"],"sources":["../../src/helpers/get-wrapped-value-with-link.js"],"sourcesContent":["import React from 'react';\nimport BlazeLink from '../components/BlazeLink';\n\nconst getWrappedValueWithLink = (value, link, keyPrefix = '') => {\n if (Array.isArray(value)) {\n const arrayResults = value.map((arrValue, index) => {\n const { keyField, url } = arrValue;\n const keyValue = arrValue[keyField];\n\n const isLastItem = index === value.length - 1;\n const keyFieldValue = isLastItem ? keyValue : <>{keyValue}, </>;\n\n return url ? (\n <BlazeLink key={[keyPrefix, index].join('-')} href={url}>\n {<>{keyFieldValue} </>}\n </BlazeLink>\n ) : (\n <>{keyFieldValue} </>\n );\n });\n\n return arrayResults.length ? arrayResults : null;\n }\n\n return link ? <BlazeLink href={link}>{value}</BlazeLink> : value;\n};\n\nexport default getWrappedValueWithLink;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAIC,KAAK,EAAEC,IAAI,EAAqB;EAAA,IAAnBC,SAAS,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAC1D,IAAIG,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,EAAE;IACxB,IAAMQ,YAAY,GAAGR,KAAK,CAACS,GAAG,CAAC,UAACC,QAAQ,EAAEC,KAAK,EAAK;MAClD,IAAQC,QAAQ,GAAUF,QAAQ,CAA1BE,QAAQ;QAAEC,GAAG,GAAKH,QAAQ,CAAhBG,GAAG;MACrB,IAAMC,QAAQ,GAAGJ,QAAQ,CAACE,QAAQ,CAAC;MAEnC,IAAMG,UAAU,GAAGJ,KAAK,KAAKX,KAAK,CAACI,MAAM,GAAG,CAAC;MAC7C,IAAMY,aAAa,GAAGD,UAAU,GAAGD,QAAQ,gBAAGnB,MAAA,YAAAsB,aAAA,CAAAtB,MAAA,YAAAuB,QAAA,QAAGJ,QAAQ,EAAC,IAAI,CAAC;MAE/D,OAAOD,GAAG,gBACRlB,MAAA,YAAAsB,aAAA,CAACnB,UAAA,WAAS;QAACqB,GAAG,EAAE,CAACjB,SAAS,EAAES,KAAK,CAAC,CAACS,IAAI,CAAC,GAAG,CAAE;QAACC,IAAI,EAAER;MAAI,gBACrDlB,MAAA,YAAAsB,aAAA,CAAAtB,MAAA,YAAAuB,QAAA,QAAGF,aAAa,EAAC,GAAG,CACZ,CAAC,gBAEZrB,MAAA,YAAAsB,aAAA,CAAAtB,MAAA,YAAAuB,QAAA,QAAGF,aAAa,EAAC,GAAG,CACrB;IACH,CAAC,CAAC;IAEF,OAAOR,YAAY,CAACJ,MAAM,GAAGI,YAAY,GAAG,IAAI;EAClD;EAEA,OAAOP,IAAI,gBAAGN,MAAA,YAAAsB,aAAA,CAACnB,UAAA,WAAS;IAACuB,IAAI,EAAEpB;EAAK,GAAED,KAAiB,CAAC,GAAGA,KAAK;AAClE,CAAC;AAAC,IAAAsB,QAAA,GAAAC,OAAA,cAEaxB,uBAAuB"}
|
|
@@ -15,6 +15,5 @@ var hasChildren = function hasChildren(children) {
|
|
|
15
15
|
}
|
|
16
16
|
return isChildrenArray && !!children.length;
|
|
17
17
|
};
|
|
18
|
-
var _default = hasChildren;
|
|
19
|
-
exports["default"] = _default;
|
|
18
|
+
var _default = exports["default"] = hasChildren;
|
|
20
19
|
//# sourceMappingURL=has-children.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-children.js","names":["hasChildren","children","isChildrenArray","Array","isArray","Object","keys","length","props","_default","exports"],"sources":["../../src/helpers/has-children.js"],"sourcesContent":["const hasChildren = children => {\n if (!children) return false;\n const isChildrenArray = Array.isArray(children);\n if (!isChildrenArray) {\n return !!(\n Object.keys(children).length &&\n children.props &&\n children.props.children &&\n children.props.children.length > 1\n );\n }\n return isChildrenArray && !!children.length;\n};\n\nexport default hasChildren;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAGC,QAAQ,EAAI;EAC9B,IAAI,CAACA,QAAQ,EAAE,OAAO,KAAK;EAC3B,IAAMC,eAAe,GAAGC,KAAK,CAACC,OAAO,CAACH,QAAQ,CAAC;EAC/C,IAAI,CAACC,eAAe,EAAE;IACpB,OAAO,CAAC,EACNG,MAAM,CAACC,IAAI,CAACL,QAAQ,CAAC,CAACM,MAAM,IAC5BN,QAAQ,CAACO,KAAK,IACdP,QAAQ,CAACO,KAAK,CAACP,QAAQ,IACvBA,QAAQ,CAACO,KAAK,CAACP,QAAQ,CAACM,MAAM,GAAG,CAAC,CACnC;EACH;EACA,OAAOL,eAAe,IAAI,CAAC,CAACD,QAAQ,CAACM,MAAM;AAC7C,CAAC;AAAC,IAAAE,QAAA,
|
|
1
|
+
{"version":3,"file":"has-children.js","names":["hasChildren","children","isChildrenArray","Array","isArray","Object","keys","length","props","_default","exports"],"sources":["../../src/helpers/has-children.js"],"sourcesContent":["const hasChildren = children => {\n if (!children) return false;\n const isChildrenArray = Array.isArray(children);\n if (!isChildrenArray) {\n return !!(\n Object.keys(children).length &&\n children.props &&\n children.props.children &&\n children.props.children.length > 1\n );\n }\n return isChildrenArray && !!children.length;\n};\n\nexport default hasChildren;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAGC,QAAQ,EAAI;EAC9B,IAAI,CAACA,QAAQ,EAAE,OAAO,KAAK;EAC3B,IAAMC,eAAe,GAAGC,KAAK,CAACC,OAAO,CAACH,QAAQ,CAAC;EAC/C,IAAI,CAACC,eAAe,EAAE;IACpB,OAAO,CAAC,EACNG,MAAM,CAACC,IAAI,CAACL,QAAQ,CAAC,CAACM,MAAM,IAC5BN,QAAQ,CAACO,KAAK,IACdP,QAAQ,CAACO,KAAK,CAACP,QAAQ,IACvBA,QAAQ,CAACO,KAAK,CAACP,QAAQ,CAACM,MAAM,GAAG,CAAC,CACnC;EACH;EACA,OAAOL,eAAe,IAAI,CAAC,CAACD,QAAQ,CAACM,MAAM;AAC7C,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,cAEaV,WAAW"}
|
|
@@ -7,6 +7,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _getBannersForEntities = _interopRequireDefault(require("./get-banners-for-entities"));
|
|
10
|
-
var _default = _getBannersForEntities["default"];
|
|
11
|
-
exports["default"] = _default;
|
|
10
|
+
var _default = exports["default"] = _getBannersForEntities["default"];
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_getBannersForEntities","_interopRequireDefault","require","_default","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_getBannersForEntities","_interopRequireDefault","require","_default","exports","getBannersForEntities"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-entities/index.js"],"sourcesContent":["import getBannersForEntities from './get-banners-for-entities';\n\nexport default getBannersForEntities;\n"],"mappings":";;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA+D,IAAAC,QAAA,GAAAC,OAAA,cAEhDC,iCAAqB"}
|
|
@@ -7,6 +7,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _getBannersForNodes = _interopRequireDefault(require("./get-banners-for-nodes"));
|
|
10
|
-
var _default = _getBannersForNodes["default"];
|
|
11
|
-
exports["default"] = _default;
|
|
10
|
+
var _default = exports["default"] = _getBannersForNodes["default"];
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_getBannersForNodes","_interopRequireDefault","require","_default","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_getBannersForNodes","_interopRequireDefault","require","_default","exports","getBannersForNodes"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/index.js"],"sourcesContent":["import getBannersForNodes from './get-banners-for-nodes';\n\nexport default getBannersForNodes;\n"],"mappings":";;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAyD,IAAAC,QAAA,GAAAC,OAAA,cAE1CC,8BAAkB"}
|
|
@@ -7,6 +7,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _injectMultipleBanners = _interopRequireDefault(require("./inject-multiple-banners"));
|
|
10
|
-
var _default = _injectMultipleBanners["default"];
|
|
11
|
-
exports["default"] = _default;
|
|
10
|
+
var _default = exports["default"] = _injectMultipleBanners["default"];
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_injectMultipleBanners","_interopRequireDefault","require","_default","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_injectMultipleBanners","_interopRequireDefault","require","_default","exports","injectMultipleBanners"],"sources":["../../../src/helpers/inject-multiple-banners/index.js"],"sourcesContent":["import injectMultipleBanners from './inject-multiple-banners';\n\nexport default injectMultipleBanners;\n"],"mappings":";;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8D,IAAAC,QAAA,GAAAC,OAAA,cAE/CC,iCAAqB"}
|
|
@@ -8,6 +8,5 @@ exports["default"] = void 0;
|
|
|
8
8
|
var isBrowser = function isBrowser() {
|
|
9
9
|
return typeof window !== 'undefined';
|
|
10
10
|
};
|
|
11
|
-
var _default = isBrowser;
|
|
12
|
-
exports["default"] = _default;
|
|
11
|
+
var _default = exports["default"] = isBrowser;
|
|
13
12
|
//# sourceMappingURL=is-browser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-browser.js","names":["isBrowser","window","_default","exports"],"sources":["../../src/helpers/is-browser.js"],"sourcesContent":["const isBrowser = () => typeof window !== 'undefined';\n\nexport default isBrowser;\n"],"mappings":";;;;;;;AAAA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAA;EAAA,OAAS,OAAOC,MAAM,KAAK,WAAW;AAAA;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"file":"is-browser.js","names":["isBrowser","window","_default","exports"],"sources":["../../src/helpers/is-browser.js"],"sourcesContent":["const isBrowser = () => typeof window !== 'undefined';\n\nexport default isBrowser;\n"],"mappings":";;;;;;;AAAA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAA;EAAA,OAAS,OAAOC,MAAM,KAAK,WAAW;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEvCH,SAAS"}
|
|
@@ -15,6 +15,5 @@ var isFilterEntitysId = function isFilterEntitysId(entityName, itemEntityUpdated
|
|
|
15
15
|
var id = (0, _lodash["default"])(_constants.ID);
|
|
16
16
|
return ["".concat(itemEntityUpdated).concat(id), "".concat(itemEntityUpdated, "s").concat(id), "".concat(itemEntityUpdated).concat(id, "s"), "".concat(itemEntityUpdated, "s").concat(id, "s")].includes(entityName);
|
|
17
17
|
};
|
|
18
|
-
var _default = isFilterEntitysId;
|
|
19
|
-
exports["default"] = _default;
|
|
18
|
+
var _default = exports["default"] = isFilterEntitysId;
|
|
20
19
|
//# sourceMappingURL=is-filter-entitys-id.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-filter-entitys-id.js","names":["_lodash","_interopRequireDefault","require","_constants","isFilterEntitysId","entityName","itemEntityUpdated","id","upperFirst","ID","concat","includes","_default","exports"],"sources":["../../src/helpers/is-filter-entitys-id.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport { ID } from '../constants';\n\nconst isFilterEntitysId = (entityName, itemEntityUpdated) => {\n const id = upperFirst(ID);\n return [\n `${itemEntityUpdated}${id}`,\n `${itemEntityUpdated}s${id}`,\n `${itemEntityUpdated}${id}s`,\n `${itemEntityUpdated}s${id}s`\n ].includes(entityName);\n};\n\nexport default isFilterEntitysId;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,UAAU,EAAEC,iBAAiB,EAAK;EAC3D,IAAMC,EAAE,GAAG,IAAAC,kBAAU,EAACC,aAAE,CAAC;EACzB,OAAO,IAAAC,MAAA,CACFJ,iBAAiB,EAAAI,MAAA,CAAGH,EAAE,MAAAG,MAAA,CACtBJ,iBAAiB,OAAAI,MAAA,CAAIH,EAAE,MAAAG,MAAA,CACvBJ,iBAAiB,EAAAI,MAAA,CAAGH,EAAE,WAAAG,MAAA,CACtBJ,iBAAiB,OAAAI,MAAA,CAAIH,EAAE,OAC3B,CAACI,QAAQ,CAACN,UAAU,CAAC;AACxB,CAAC;AAAC,IAAAO,QAAA,
|
|
1
|
+
{"version":3,"file":"is-filter-entitys-id.js","names":["_lodash","_interopRequireDefault","require","_constants","isFilterEntitysId","entityName","itemEntityUpdated","id","upperFirst","ID","concat","includes","_default","exports"],"sources":["../../src/helpers/is-filter-entitys-id.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport { ID } from '../constants';\n\nconst isFilterEntitysId = (entityName, itemEntityUpdated) => {\n const id = upperFirst(ID);\n return [\n `${itemEntityUpdated}${id}`,\n `${itemEntityUpdated}s${id}`,\n `${itemEntityUpdated}${id}s`,\n `${itemEntityUpdated}s${id}s`\n ].includes(entityName);\n};\n\nexport default isFilterEntitysId;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,UAAU,EAAEC,iBAAiB,EAAK;EAC3D,IAAMC,EAAE,GAAG,IAAAC,kBAAU,EAACC,aAAE,CAAC;EACzB,OAAO,IAAAC,MAAA,CACFJ,iBAAiB,EAAAI,MAAA,CAAGH,EAAE,MAAAG,MAAA,CACtBJ,iBAAiB,OAAAI,MAAA,CAAIH,EAAE,MAAAG,MAAA,CACvBJ,iBAAiB,EAAAI,MAAA,CAAGH,EAAE,WAAAG,MAAA,CACtBJ,iBAAiB,OAAAI,MAAA,CAAIH,EAAE,OAC3B,CAACI,QAAQ,CAACN,UAAU,CAAC;AACxB,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,cAEaT,iBAAiB"}
|
package/lib/helpers/is-object.js
CHANGED
|
@@ -11,6 +11,5 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
|
11
11
|
var isObject = function isObject(value) {
|
|
12
12
|
return !!(value !== null && (0, _typeof2["default"])(value) === 'object' && !Array.isArray(value));
|
|
13
13
|
};
|
|
14
|
-
var _default = isObject;
|
|
15
|
-
exports["default"] = _default;
|
|
14
|
+
var _default = exports["default"] = isObject;
|
|
16
15
|
//# sourceMappingURL=is-object.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-object.js","names":["isObject","value","_typeof2","Array","isArray","_default","exports"],"sources":["../../src/helpers/is-object.js"],"sourcesContent":["const isObject = value => !!(value !== null && typeof value === 'object' && !Array.isArray(value));\n\nexport default isObject;\n"],"mappings":";;;;;;;;;;AAAA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAGC,KAAK;EAAA,OAAI,CAAC,EAAEA,KAAK,KAAK,IAAI,IAAI,IAAAC,QAAA,aAAOD,KAAK,MAAK,QAAQ,IAAI,CAACE,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,CAAC;AAAA;AAAC,IAAAI,QAAA,
|
|
1
|
+
{"version":3,"file":"is-object.js","names":["isObject","value","_typeof2","Array","isArray","_default","exports"],"sources":["../../src/helpers/is-object.js"],"sourcesContent":["const isObject = value => !!(value !== null && typeof value === 'object' && !Array.isArray(value));\n\nexport default isObject;\n"],"mappings":";;;;;;;;;;AAAA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAGC,KAAK;EAAA,OAAI,CAAC,EAAEA,KAAK,KAAK,IAAI,IAAI,IAAAC,QAAA,aAAOD,KAAK,MAAK,QAAQ,IAAI,CAACE,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,CAAC;AAAA;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEpFN,QAAQ"}
|
|
@@ -8,6 +8,5 @@ exports["default"] = void 0;
|
|
|
8
8
|
var isUsingRelationImage = function isUsingRelationImage(entity, fetchFromRelation, imageRelation) {
|
|
9
9
|
return entity && fetchFromRelation && imageRelation.length;
|
|
10
10
|
};
|
|
11
|
-
var _default = isUsingRelationImage;
|
|
12
|
-
exports["default"] = _default;
|
|
11
|
+
var _default = exports["default"] = isUsingRelationImage;
|
|
13
12
|
//# sourceMappingURL=is-using-relation-image.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-using-relation-image.js","names":["isUsingRelationImage","entity","fetchFromRelation","imageRelation","length","_default","exports"],"sources":["../../src/helpers/is-using-relation-image.js"],"sourcesContent":["const isUsingRelationImage = (entity, fetchFromRelation, imageRelation) =>\n entity && fetchFromRelation && imageRelation.length;\n\nexport default isUsingRelationImage;\n"],"mappings":";;;;;;;AAAA,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAIC,MAAM,EAAEC,iBAAiB,EAAEC,aAAa;EAAA,OACpEF,MAAM,IAAIC,iBAAiB,IAAIC,aAAa,CAACC,MAAM;AAAA;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"file":"is-using-relation-image.js","names":["isUsingRelationImage","entity","fetchFromRelation","imageRelation","length","_default","exports"],"sources":["../../src/helpers/is-using-relation-image.js"],"sourcesContent":["const isUsingRelationImage = (entity, fetchFromRelation, imageRelation) =>\n entity && fetchFromRelation && imageRelation.length;\n\nexport default isUsingRelationImage;\n"],"mappings":";;;;;;;AAAA,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAIC,MAAM,EAAEC,iBAAiB,EAAEC,aAAa;EAAA,OACpEF,MAAM,IAAIC,iBAAiB,IAAIC,aAAa,CAACC,MAAM;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEvCN,oBAAoB"}
|
|
@@ -18,8 +18,8 @@ require("core-js/modules/es.function.name.js");
|
|
|
18
18
|
var _htmlReactParser = _interopRequireWildcard(require("html-react-parser"));
|
|
19
19
|
var _react = _interopRequireDefault(require("react"));
|
|
20
20
|
var _constants = require("../constants");
|
|
21
|
-
function _getRequireWildcardCache(
|
|
22
|
-
function _interopRequireWildcard(
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
23
|
function parseTextBlock(config) {
|
|
24
24
|
var html = config.html,
|
|
25
25
|
LinkWrapper = config.LinkWrapper,
|
|
@@ -40,6 +40,5 @@ function parseTextBlock(config) {
|
|
|
40
40
|
};
|
|
41
41
|
return (0, _htmlReactParser["default"])(html, options);
|
|
42
42
|
}
|
|
43
|
-
var _default = parseTextBlock;
|
|
44
|
-
exports["default"] = _default;
|
|
43
|
+
var _default = exports["default"] = parseTextBlock;
|
|
45
44
|
//# sourceMappingURL=parse-TextBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-TextBlock.js","names":["_htmlReactParser","_interopRequireWildcard","require","_react","_interopRequireDefault","_constants","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"file":"parse-TextBlock.js","names":["_htmlReactParser","_interopRequireWildcard","require","_react","_interopRequireDefault","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","parseTextBlock","config","html","LinkWrapper","useTargetBlank","options","replace","domNode","attribs","children","tagName","name","ANCHOR_TAG","target","TARGET_BLANK","createElement","_extends2","domToReact","parseHTML","_default","exports"],"sources":["../../src/helpers/parse-TextBlock.js"],"sourcesContent":["import parseHTML, { domToReact } from 'html-react-parser';\nimport React from 'react';\nimport { ANCHOR_TAG, TARGET_BLANK } from '../constants';\n\nfunction parseTextBlock(config) {\n const { html, LinkWrapper, useTargetBlank } = config;\n\n const options = {\n replace: domNode => {\n const { attribs, children, name: tagName } = domNode;\n if (tagName === ANCHOR_TAG) {\n const target = useTargetBlank ? TARGET_BLANK : attribs.target;\n\n return LinkWrapper ? (\n <LinkWrapper {...attribs} target={target}>\n {domToReact(children, options)}\n </LinkWrapper>\n ) : (\n domNode\n );\n }\n return null;\n }\n };\n\n return parseHTML(html, options);\n}\n\nexport default parseTextBlock;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAAwD,SAAAI,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,cAAAR,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAgB,GAAA,CAAAnB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAExD,SAASY,cAAcA,CAACC,MAAM,EAAE;EAC9B,IAAQC,IAAI,GAAkCD,MAAM,CAA5CC,IAAI;IAAEC,WAAW,GAAqBF,MAAM,CAAtCE,WAAW;IAAEC,cAAc,GAAKH,MAAM,CAAzBG,cAAc;EAEzC,IAAMC,OAAO,GAAG;IACdC,OAAO,EAAE,SAAAA,QAAAC,OAAO,EAAI;MAClB,IAAQC,OAAO,GAA8BD,OAAO,CAA5CC,OAAO;QAAEC,QAAQ,GAAoBF,OAAO,CAAnCE,QAAQ;QAAQC,OAAO,GAAKH,OAAO,CAAzBI,IAAI;MAC/B,IAAID,OAAO,KAAKE,qBAAU,EAAE;QAC1B,IAAMC,MAAM,GAAGT,cAAc,GAAGU,uBAAY,GAAGN,OAAO,CAACK,MAAM;QAE7D,OAAOV,WAAW,gBAChB3B,MAAA,YAAAuC,aAAA,CAACZ,WAAW,MAAAa,SAAA,iBAAKR,OAAO;UAAEK,MAAM,EAAEA;QAAO,IACtC,IAAAI,2BAAU,EAACR,QAAQ,EAAEJ,OAAO,CAClB,CAAC,GAEdE,OACD;MACH;MACA,OAAO,IAAI;IACb;EACF,CAAC;EAED,OAAO,IAAAW,2BAAS,EAAChB,IAAI,EAAEG,OAAO,CAAC;AACjC;AAAC,IAAAc,QAAA,GAAAC,OAAA,cAEcpB,cAAc"}
|
|
@@ -24,8 +24,8 @@ var _getParsedPropValues = _interopRequireDefault(require("./get-parsed-prop-val
|
|
|
24
24
|
var _getSanitizedPropValues = _interopRequireDefault(require("./get-sanitized-prop-values"));
|
|
25
25
|
var _constants = require("../constants");
|
|
26
26
|
var _processDataSummaryValue = _interopRequireDefault(require("./process-data-summary-value"));
|
|
27
|
-
function _getRequireWildcardCache(
|
|
28
|
-
function _interopRequireWildcard(
|
|
27
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
28
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
29
29
|
// TODO this helper should be removed if database is wiped clean and all elements change to new props struc
|
|
30
30
|
var parsePropsToDisplay = function parsePropsToDisplay() {
|
|
31
31
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -54,6 +54,5 @@ var parsePropsToDisplay = function parsePropsToDisplay() {
|
|
|
54
54
|
return /*#__PURE__*/_react["default"].createElement(Wrapper, null, prefix, " ", processedValue, " ", suffix, stringEndBlank);
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
|
-
var _default = parsePropsToDisplay;
|
|
58
|
-
exports["default"] = _default;
|
|
57
|
+
var _default = exports["default"] = parsePropsToDisplay;
|
|
59
58
|
//# sourceMappingURL=parse-props-to-display.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-props-to-display.js","names":["_react","_interopRequireWildcard","require","_lodash","_interopRequireDefault","_isObject","_getParsedPropValues","_getSanitizedPropValues","_constants","_processDataSummaryValue","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"file":"parse-props-to-display.js","names":["_react","_interopRequireWildcard","require","_lodash","_interopRequireDefault","_isObject","_getParsedPropValues","_getSanitizedPropValues","_constants","_processDataSummaryValue","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","parsePropsToDisplay","props","arguments","length","undefined","propsToDisplay","isObject","at","filter","Boolean","map","options","currentIndex","bold","propertiesToDisplay","prefix","suffix","shouldStrip","enableLink","Wrapper","BOLD_TAG","Fragment","parsedPropValues","getParsedPropValues","sanitizedPropValues","getSanitizedPropValues","stringEndBlank","BLANK_SPACE_UNICODE_STRING","processedValue","Array","isArray","value","processDataSummaryValue","createElement","_default","exports"],"sources":["../../src/helpers/parse-props-to-display.js"],"sourcesContent":["import React, { Fragment } from 'react';\nimport at from 'lodash.at';\nimport isObject from './is-object';\nimport getParsedPropValues from './get-parsed-prop-values';\nimport getSanitizedPropValues from './get-sanitized-prop-values';\nimport { BOLD_TAG, BLANK_SPACE_UNICODE_STRING } from '../constants';\nimport processDataSummaryValue from './process-data-summary-value';\n\n// TODO this helper should be removed if database is wiped clean and all elements change to new props struc\nconst parsePropsToDisplay = (props = {}, propsToDisplay = []) => {\n if (!isObject(propsToDisplay[0])) return at(props, propsToDisplay).filter(Boolean);\n\n return propsToDisplay.map((options, currentIndex) => {\n const { bold, propertiesToDisplay, prefix, suffix, shouldStrip, enableLink } = options;\n const Wrapper = bold ? BOLD_TAG : Fragment;\n\n const parsedPropValues = getParsedPropValues({\n propertiesToDisplay,\n props,\n enableLink,\n shouldStrip\n });\n\n const sanitizedPropValues = getSanitizedPropValues(parsedPropValues);\n if (!sanitizedPropValues || !sanitizedPropValues.length) return null;\n const stringEndBlank =\n currentIndex + 1 === propsToDisplay.length ? '' : BLANK_SPACE_UNICODE_STRING;\n\n const processedValue = Array.isArray(sanitizedPropValues)\n ? sanitizedPropValues.map(value => processDataSummaryValue(value, options))\n : processDataSummaryValue(sanitizedPropValues, options);\n\n return (\n <Wrapper>\n {prefix} {processedValue} {suffix}\n {stringEndBlank}\n </Wrapper>\n );\n });\n};\n\nexport default parsePropsToDisplay;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,SAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,oBAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,uBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,wBAAA,GAAAL,sBAAA,CAAAF,OAAA;AAAmE,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,cAAAR,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAgB,GAAA,CAAAnB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAEnE;AACA,IAAMY,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAA,EAAwC;EAAA,IAApCC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAAA,IAAEG,cAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAC1D,IAAI,CAAC,IAAAI,oBAAQ,EAACD,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,IAAAE,kBAAE,EAACN,KAAK,EAAEI,cAAc,CAAC,CAACG,MAAM,CAACC,OAAO,CAAC;EAElF,OAAOJ,cAAc,CAACK,GAAG,CAAC,UAACC,OAAO,EAAEC,YAAY,EAAK;IACnD,IAAQC,IAAI,GAAmEF,OAAO,CAA9EE,IAAI;MAAEC,mBAAmB,GAA8CH,OAAO,CAAxEG,mBAAmB;MAAEC,MAAM,GAAsCJ,OAAO,CAAnDI,MAAM;MAAEC,MAAM,GAA8BL,OAAO,CAA3CK,MAAM;MAAEC,WAAW,GAAiBN,OAAO,CAAnCM,WAAW;MAAEC,UAAU,GAAKP,OAAO,CAAtBO,UAAU;IAC1E,IAAMC,OAAO,GAAGN,IAAI,GAAGO,mBAAQ,GAAGC,eAAQ;IAE1C,IAAMC,gBAAgB,GAAG,IAAAC,+BAAmB,EAAC;MAC3CT,mBAAmB,EAAnBA,mBAAmB;MACnBb,KAAK,EAALA,KAAK;MACLiB,UAAU,EAAVA,UAAU;MACVD,WAAW,EAAXA;IACF,CAAC,CAAC;IAEF,IAAMO,mBAAmB,GAAG,IAAAC,kCAAsB,EAACH,gBAAgB,CAAC;IACpE,IAAI,CAACE,mBAAmB,IAAI,CAACA,mBAAmB,CAACrB,MAAM,EAAE,OAAO,IAAI;IACpE,IAAMuB,cAAc,GAClBd,YAAY,GAAG,CAAC,KAAKP,cAAc,CAACF,MAAM,GAAG,EAAE,GAAGwB,qCAA0B;IAE9E,IAAMC,cAAc,GAAGC,KAAK,CAACC,OAAO,CAACN,mBAAmB,CAAC,GACrDA,mBAAmB,CAACd,GAAG,CAAC,UAAAqB,KAAK;MAAA,OAAI,IAAAC,mCAAuB,EAACD,KAAK,EAAEpB,OAAO,CAAC;IAAA,EAAC,GACzE,IAAAqB,mCAAuB,EAACR,mBAAmB,EAAEb,OAAO,CAAC;IAEzD,oBACE1C,MAAA,YAAAgE,aAAA,CAACd,OAAO,QACLJ,MAAM,EAAC,GAAC,EAACa,cAAc,EAAC,GAAC,EAACZ,MAAM,EAChCU,cACM,CAAC;EAEd,CAAC,CAAC;AACJ,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEanC,mBAAmB"}
|
|
@@ -28,8 +28,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
28
28
|
var _components = _interopRequireDefault(require("../components"));
|
|
29
29
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30
30
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
|
-
function _toPropertyKey(
|
|
32
|
-
function _toPrimitive(
|
|
31
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
32
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
33
33
|
var Code = _components["default"].code;
|
|
34
34
|
var renderCode = function renderCode(value) {
|
|
35
35
|
return /*#__PURE__*/_react["default"].createElement(Code, {
|
|
@@ -42,15 +42,13 @@ var processDataSummaryValue = function processDataSummaryValue(objPropValue, _re
|
|
|
42
42
|
var pValue = objPropValue;
|
|
43
43
|
if (isHtml) {
|
|
44
44
|
pValue = Array.isArray(objPropValue) ? objPropValue.map(function (_ref2) {
|
|
45
|
-
var _objectSpread2;
|
|
46
45
|
var keyField = _ref2.keyField,
|
|
47
46
|
value = _ref2[keyField],
|
|
48
47
|
otherProps = (0, _objectWithoutProperties2["default"])(_ref2, ["keyField", keyField].map(_toPropertyKey));
|
|
49
|
-
return _objectSpread((
|
|
48
|
+
return _objectSpread((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, keyField, renderCode(value)), "keyField", keyField), otherProps);
|
|
50
49
|
}) : renderCode(objPropValue);
|
|
51
50
|
}
|
|
52
51
|
return pValue;
|
|
53
52
|
};
|
|
54
|
-
var _default = processDataSummaryValue;
|
|
55
|
-
exports["default"] = _default;
|
|
53
|
+
var _default = exports["default"] = processDataSummaryValue;
|
|
56
54
|
//# sourceMappingURL=process-data-summary-value.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-data-summary-value.js","names":["_react","_interopRequireDefault","require","_components","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","
|
|
1
|
+
{"version":3,"file":"process-data-summary-value.js","names":["_react","_interopRequireDefault","require","_components","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","i","_toPrimitive","_typeof","String","Symbol","toPrimitive","call","TypeError","Number","Code","components","code","renderCode","value","createElement","disableWrapper","processDataSummaryValue","objPropValue","_ref","isHtml","pValue","Array","isArray","map","_ref2","keyField","otherProps","_objectWithoutProperties2","_default","exports"],"sources":["../../src/helpers/process-data-summary-value.js"],"sourcesContent":["import React from 'react';\nimport components from '../components';\n\nconst { code: Code } = components;\n\nconst renderCode = value => <Code code={value} disableWrapper />;\n\nconst processDataSummaryValue = (objPropValue, { isHtml }) => {\n let pValue = objPropValue;\n if (isHtml) {\n pValue = Array.isArray(objPropValue)\n ? objPropValue.map(({ keyField, [keyField]: value, ...otherProps }) => ({\n [keyField]: renderCode(value),\n keyField,\n ...otherProps\n }))\n : renderCode(objPropValue);\n }\n return pValue;\n};\n\nexport default processDataSummaryValue;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAuC,SAAAE,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,QAAAe,gBAAA,aAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,CAAA,EAAAG,MAAA,CAAAc,yBAAA,CAAAf,CAAA,KAAAH,OAAA,CAAAI,MAAA,CAAAD,CAAA,GAAAa,OAAA,WAAAd,CAAA,IAAAE,MAAA,CAAAgB,cAAA,CAAAnB,CAAA,EAAAC,CAAA,EAAAE,MAAA,CAAAK,wBAAA,CAAAN,CAAA,EAAAD,CAAA,iBAAAD,CAAA;AAAA,SAAAoB,eAAAlB,CAAA,QAAAmB,CAAA,GAAAC,YAAA,CAAApB,CAAA,gCAAAqB,OAAA,CAAAF,CAAA,IAAAA,CAAA,GAAAG,MAAA,CAAAH,CAAA;AAAA,SAAAC,aAAApB,CAAA,EAAAD,CAAA,oBAAAsB,OAAA,CAAArB,CAAA,MAAAA,CAAA,SAAAA,CAAA,MAAAF,CAAA,GAAAE,CAAA,CAAAuB,MAAA,CAAAC,WAAA,kBAAA1B,CAAA,QAAAqB,CAAA,GAAArB,CAAA,CAAA2B,IAAA,CAAAzB,CAAA,EAAAD,CAAA,gCAAAsB,OAAA,CAAAF,CAAA,UAAAA,CAAA,YAAAO,SAAA,yEAAA3B,CAAA,GAAAuB,MAAA,GAAAK,MAAA,EAAA3B,CAAA;AAEvC,IAAc4B,IAAI,GAAKC,sBAAU,CAAzBC,IAAI;AAEZ,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAGC,KAAK;EAAA,oBAAIvC,MAAA,YAAAwC,aAAA,CAACL,IAAI;IAACE,IAAI,EAAEE,KAAM;IAACE,cAAc;EAAA,CAAE,CAAC;AAAA;AAEhE,IAAMC,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAIC,YAAY,EAAAC,IAAA,EAAiB;EAAA,IAAbC,MAAM,GAAAD,IAAA,CAANC,MAAM;EACrD,IAAIC,MAAM,GAAGH,YAAY;EACzB,IAAIE,MAAM,EAAE;IACVC,MAAM,GAAGC,KAAK,CAACC,OAAO,CAACL,YAAY,CAAC,GAChCA,YAAY,CAACM,GAAG,CAAC,UAAAC,KAAA;MAAA,IAAGC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;QAAcZ,KAAK,GAAAW,KAAA,CAAhBC,QAAQ;QAAaC,UAAU,OAAAC,yBAAA,aAAAH,KAAA,eAA/BC,QAAQ,EAAAF,GAAA,CAAAxB,cAAA;MAAA,OAAAR,aAAA,KAAAI,gBAAA,iBAAAA,gBAAA,iBACpC8B,QAAQ,EAAGb,UAAU,CAACC,KAAK,CAAC,eAC7BY,QAAQ,GACLC,UAAU;IAAA,CACb,CAAC,GACHd,UAAU,CAACK,YAAY,CAAC;EAC9B;EACA,OAAOG,MAAM;AACf,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEab,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-extra-items.js","names":["removeExtraItems","data","limit","itemId","newData","i","length","id","push","_default","exports"],"sources":["../../src/helpers/remove-extra-items.js"],"sourcesContent":["function removeExtraItems(data, limit, itemId) {\n const newData = [];\n // eslint-disable-next-line no-plusplus\n for (let i = 0; i < data.length; i++) {\n if (data[i].id !== itemId) {\n newData.push(data[i]);\n }\n if (newData.length >= limit) break;\n }\n return newData;\n}\n\nexport default removeExtraItems;\n"],"mappings":";;;;;;;AAAA,SAASA,gBAAgBA,CAACC,IAAI,EAAEC,KAAK,EAAEC,MAAM,EAAE;EAC7C,IAAMC,OAAO,GAAG,EAAE;EAClB;EACA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,IAAI,CAACK,MAAM,EAAED,CAAC,EAAE,EAAE;IACpC,IAAIJ,IAAI,CAACI,CAAC,CAAC,CAACE,EAAE,KAAKJ,MAAM,EAAE;MACzBC,OAAO,CAACI,IAAI,CAACP,IAAI,CAACI,CAAC,CAAC,CAAC;IACvB;IACA,IAAID,OAAO,CAACE,MAAM,IAAIJ,KAAK,EAAE;EAC/B;EACA,OAAOE,OAAO;AAChB;AAAC,IAAAK,QAAA,
|
|
1
|
+
{"version":3,"file":"remove-extra-items.js","names":["removeExtraItems","data","limit","itemId","newData","i","length","id","push","_default","exports"],"sources":["../../src/helpers/remove-extra-items.js"],"sourcesContent":["function removeExtraItems(data, limit, itemId) {\n const newData = [];\n // eslint-disable-next-line no-plusplus\n for (let i = 0; i < data.length; i++) {\n if (data[i].id !== itemId) {\n newData.push(data[i]);\n }\n if (newData.length >= limit) break;\n }\n return newData;\n}\n\nexport default removeExtraItems;\n"],"mappings":";;;;;;;AAAA,SAASA,gBAAgBA,CAACC,IAAI,EAAEC,KAAK,EAAEC,MAAM,EAAE;EAC7C,IAAMC,OAAO,GAAG,EAAE;EAClB;EACA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,IAAI,CAACK,MAAM,EAAED,CAAC,EAAE,EAAE;IACpC,IAAIJ,IAAI,CAACI,CAAC,CAAC,CAACE,EAAE,KAAKJ,MAAM,EAAE;MACzBC,OAAO,CAACI,IAAI,CAACP,IAAI,CAACI,CAAC,CAAC,CAAC;IACvB;IACA,IAAID,OAAO,CAACE,MAAM,IAAIJ,KAAK,EAAE;EAC/B;EACA,OAAOE,OAAO;AAChB;AAAC,IAAAK,QAAA,GAAAC,OAAA,cAEcV,gBAAgB"}
|