@blaze-cms/react-page-builder 0.127.0 → 0.128.0-admin-updates.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 +11 -0
- package/README.md +9 -0
- package/lib/HOC/withInfiniteScroll.js +21 -23
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/components/Banner/Banner.js +3 -3
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +11 -11
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Card/CardRender.js +4 -4
- package/lib/components/Card/CardRender.js.map +1 -1
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js +3 -3
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js +8 -8
- package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib/components/ContentGroupSection/ContentGroupSection.js +4 -2
- package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +4 -4
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/Iframe/Iframe.js +51 -0
- package/lib/components/Iframe/Iframe.js.map +1 -0
- package/lib/components/Iframe/constants.js +15 -0
- package/lib/components/Iframe/constants.js.map +1 -0
- package/lib/components/Iframe/index.js +12 -0
- package/lib/components/Iframe/index.js.map +1 -0
- package/lib/components/Image/ImageFactory.js +9 -9
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/ItemListNew.js +3 -3
- package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib/components/Layout/Layout.js +4 -4
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/List/ListFactory.js +9 -9
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/helpers/sort-aggs.js +10 -10
- package/lib/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +5 -5
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Range.js +4 -4
- package/lib/components/SearchFilter/components/Range.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js +5 -5
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +21 -23
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/index.js +5 -0
- package/lib/components/index.js.map +1 -1
- package/lib/helpers/build-raw-query-base.js +6 -6
- package/lib/helpers/build-raw-query-base.js.map +1 -1
- package/lib/helpers/get-click-wrapper-options.js +11 -11
- package/lib/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib/helpers/get-entity-data.js +3 -3
- package/lib/helpers/get-entity-data.js.map +1 -1
- package/lib/helpers/get-search-filter-type.js +4 -4
- package/lib/helpers/get-search-filter-type.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/split-children.js +12 -12
- package/lib/helpers/split-children.js.map +1 -1
- package/lib/hooks/helpers/buildPBComponents.js +3 -3
- package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js +3 -3
- package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib/hooks/helpers/insert-banners.js.map +1 -1
- package/lib/hooks/use-page-builder.js +7 -9
- package/lib/hooks/use-page-builder.js.map +1 -1
- package/lib-es/components/ContentGroupSection/ContentGroupSection.js +4 -2
- package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib-es/components/Iframe/Iframe.js +42 -0
- package/lib-es/components/Iframe/Iframe.js.map +1 -0
- package/lib-es/components/Iframe/constants.js +7 -0
- package/lib-es/components/Iframe/constants.js.map +1 -0
- package/lib-es/components/Iframe/index.js +3 -0
- package/lib-es/components/Iframe/index.js.map +1 -0
- package/lib-es/components/List/ListRender.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib-es/components/index.js +2 -1
- package/lib-es/components/index.js.map +1 -1
- package/lib-es/helpers/parse-props-to-display.js.map +1 -1
- package/package.json +10 -9
- package/src/components/ContentGroupSection/ContentGroupSection.js +3 -2
- package/src/components/Iframe/Iframe.js +36 -0
- package/src/components/Iframe/constants.js +4 -0
- package/src/components/Iframe/index.js +3 -0
- package/src/components/index.js +2 -1
- package/tests/unit/src/HOC/withInfiniteScroll.test.js +3 -0
- package/tests/unit/src/HOC/withTitle.test.js +5 -2
- package/tests/unit/src/Layout/Layout.test.js +4 -2
- package/tests/unit/src/Layout/getMockedProps.js +3 -0
- package/tests/unit/src/Layout/helpers/check-if-row-has-columns.test.js +4 -1
- package/tests/unit/src/Layout/helpers/get-styles-to-update.test.js +1 -1
- package/tests/unit/src/Layout/helpers/has-children.test.js +4 -1
- package/tests/unit/src/components/BackToTop/BackToTop.test.js +3 -0
- package/tests/unit/src/components/Banner/AdSlotRender.test.js +3 -0
- package/tests/unit/src/components/Banner/Banner.test.js +3 -0
- package/tests/unit/src/components/Banner/BannerRender.test.js +3 -0
- package/tests/unit/src/components/BlazeLink.test.js +3 -0
- package/tests/unit/src/components/Breadcrumb/Breadcrumb.test.js +3 -0
- package/tests/unit/src/components/Button.test.js +3 -0
- package/tests/unit/src/components/Card/Card.test.js +3 -0
- package/tests/unit/src/components/Card/CardContainer.test.js +5 -1
- package/tests/unit/src/components/Card/CardRender.test.js +3 -0
- package/tests/unit/src/components/Card/helpers/append-images.test.js +1 -1
- package/tests/unit/src/components/Card/helpers/get-dynamic-grid-classes.test.js +1 -1
- package/tests/unit/src/components/Card/helpers/getPublishedListingUrl.test.js +1 -1
- package/tests/unit/src/components/Card/helpers/useDynamicSizeKey.test.js +1 -1
- package/tests/unit/src/components/Carousel/Carousel.test.js +3 -0
- package/tests/unit/src/components/Carousel/CarouselImage/CarouselImage.test.js +4 -2
- package/tests/unit/src/components/Carousel/CarouselRender/CarouselRender.test.js +3 -0
- package/tests/unit/src/components/CarouselWrapper.test.js +3 -0
- package/tests/unit/src/components/ClickWrapper.test.js +3 -0
- package/tests/unit/src/components/Code/Code.test.js +3 -0
- package/tests/unit/src/components/Code/ScriptTag.test.js +3 -0
- package/tests/unit/src/components/Code/helpers/wrap-script-tags.test.js +1 -1
- package/tests/unit/src/components/Code.test.js +3 -0
- package/tests/unit/src/components/ContentGroup/ContentGroup.test.js +3 -0
- package/tests/unit/src/components/ContentGroup/ContentGroupTabs.test.js +3 -0
- package/tests/unit/src/components/ContentGroupSection/ContentGroupSection.test.js +3 -0
- package/tests/unit/src/components/DataSummary/DataSummaryFactory.test.js +3 -0
- package/tests/unit/src/components/DataSummary/DataSummaryRender.test.js +3 -0
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/HeadingLargeSummary.test.js +3 -0
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/ItemDetailsSummary.test.js +3 -0
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/LargeSummary.test.js +3 -0
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/ListSummary.test.js +3 -0
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/TextSummary.test.js +3 -0
- package/tests/unit/src/components/DataSummary/helpers/build-loop-props-content.test.js +1 -1
- package/tests/unit/src/components/DataSummary/helpers/build-props-to-display-with-content.test.js +1 -1
- package/tests/unit/src/components/DataSummary/helpers/get-data-summary-query.test.js +1 -1
- package/tests/unit/src/components/DataSummary/helpers/get-link-based-on-value.test.js +2 -2
- package/tests/unit/src/components/DataSummary/helpers/get-link-to-published-content.test.js +1 -1
- package/tests/unit/src/components/DataSummary/helpers/parse-boolean-values.test.js +1 -1
- package/tests/unit/src/components/EmailConfirm/EmailConfirm.test.js +3 -0
- package/tests/unit/src/components/Iframe/Iframe.test.js +21 -0
- package/tests/unit/src/components/Iframe/__snapshots__/Iframe.test.js.snap +21 -0
- package/tests/unit/src/components/Image/GlobalLightbox/GlobalLightbox.test.js +5 -1
- package/tests/unit/src/components/Image/GlobalLightbox/NavButton.test.js +3 -0
- package/tests/unit/src/components/Image/Image.test.js +3 -0
- package/tests/unit/src/components/Image/ImageDetails.test.js +3 -0
- package/tests/unit/src/components/Image/ImageFactory.test.js +3 -0
- package/tests/unit/src/components/Image/ImageRender.test.js +3 -0
- package/tests/unit/src/components/Image/Lightbox/Lightbox.test.js +3 -0
- package/tests/unit/src/components/ItemList/ItemListButton.test.js +3 -0
- package/tests/unit/src/components/ItemList/ItemListCounter.test.js +3 -0
- package/tests/unit/src/components/ItemList/ItemListNew.test.js +3 -0
- package/tests/unit/src/components/ItemList/helpers/set-item-list-id.test.js +3 -0
- package/tests/unit/src/components/ItemList/hooks/use-item-list-id.test.js +3 -0
- package/tests/unit/src/components/Layout/Layout.test.js +3 -0
- package/tests/unit/src/components/LazyImage/LazyImage.test.js +3 -0
- package/tests/unit/src/components/List/ListRender.test.js +3 -0
- package/tests/unit/src/components/List/components/Cards/CardsRender.test.js +3 -0
- package/tests/unit/src/components/List/components/Cards/CardsRenderItem.test.js +3 -0
- package/tests/unit/src/components/List/components/Cards/CardsRenderWrapper.test.js +3 -0
- package/tests/unit/src/components/List/components/Cards/helpers/check-if-should-render-gtm.test.js +1 -1
- package/tests/unit/src/components/List/components/Full/FullRender.test.js +3 -0
- package/tests/unit/src/components/List/components/Full/FullRenderItem.test.js +3 -0
- package/tests/unit/src/components/List/components/Header/ListHeader.test.js +3 -0
- package/tests/unit/src/components/List/components/Pagination/Classic.test.js +3 -0
- package/tests/unit/src/components/List/components/Pagination/ListPagination.test.js +3 -0
- package/tests/unit/src/components/List/components/Pagination/LoadMore.test.js +3 -0
- package/tests/unit/src/components/Menu/Menu.test.js +3 -0
- package/tests/unit/src/components/MenuItem/MenuItem.test.js +3 -0
- package/tests/unit/src/components/MenuItem/SubMenu.test.js +3 -0
- package/tests/unit/src/components/Modal/Modal.test.js +3 -0
- package/tests/unit/src/components/SearchContent/SearchContent.test.js +3 -0
- package/tests/unit/src/components/SearchFilter/SearchFilter/CloseMobileForm.test.js +3 -0
- package/tests/unit/src/components/SearchFilter/SearchFilter/MobileFormToolbar.test.js +3 -0
- package/tests/unit/src/components/SearchFilter/SearchFilter/ResetDesktopForm.test.js +3 -0
- package/tests/unit/src/components/SearchFilter/SearchFilter/SearchFilter.test.js +3 -0
- package/tests/unit/src/components/SearchFilter/SearchFilterContainer.test.js +3 -0
- package/tests/unit/src/components/SearchFilter/components/Checkbox.test.js +3 -0
- package/tests/unit/src/components/SearchFilter/components/Range.test.js +3 -0
- package/tests/unit/src/components/SearchFilter/components/Select.test.js +3 -0
- package/tests/unit/src/components/SearchFilter/components/TextSearch.test.js +3 -0
- package/tests/unit/src/components/SearchFilter/helpers/build-new-query.test.js +1 -1
- package/tests/unit/src/components/SearchFilter/helpers/build-raw-query-stringified.test.js +1 -1
- package/tests/unit/src/components/SearchFilter/helpers/calculate-min-max.test.js +1 -1
- package/tests/unit/src/components/SearchFilter/helpers/calculate-step.test.js +1 -1
- package/tests/unit/src/components/SearchFilter/helpers/check-if-range-updated.test.js +4 -1
- package/tests/unit/src/components/SearchFilter/helpers/get-display-value.test.js +1 -1
- package/tests/unit/src/components/SearchFilter/helpers/get-intersected-prop.test.js +1 -1
- package/tests/unit/src/components/SearchFilter/helpers/get-range-value.test.js +1 -1
- package/tests/unit/src/components/SearchFilter/helpers/get-select-options.test.js +1 -1
- package/tests/unit/src/components/SearchFilter/helpers/is-device-desktop.test.js +4 -2
- package/tests/unit/src/components/SearchFilterSort/SearchFilterSort.test.js +3 -0
- package/tests/unit/src/components/SocialFollow/SFItem.test.js +3 -0
- package/tests/unit/src/components/SocialFollow/SocialFollow.test.js +3 -0
- package/tests/unit/src/components/TextBlock/TextBlock.test.js +3 -0
- package/tests/unit/src/components/Video/Video.test.js +3 -0
- package/tests/unit/src/components/Video/VideoModal.test.js +3 -0
- package/tests/unit/src/components/Video/providers/Default.test.js +3 -0
- package/tests/unit/src/components/Video/providers/JWPlayer/JWPlayerProvider.test.js +3 -0
- package/tests/unit/src/components/Video/providers/Vimeo/Vimeo.test.js +3 -0
- package/tests/unit/src/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.test.js +1 -1
- package/tests/unit/src/components/Video/providers/YouTube/YouTubeProvider.test.js +3 -0
- package/tests/unit/src/components/Wrapper.test.js +3 -0
- package/tests/unit/src/components/__snapshots__/index.test.js.snap +4 -0
- package/tests/unit/src/helpers/build-image-properties.test.js +1 -1
- package/tests/unit/src/helpers/build-inherited-filters.test.js +1 -1
- package/tests/unit/src/helpers/build-link-extra-props.test.js +1 -1
- package/tests/unit/src/helpers/build-props-query.test.js +1 -1
- package/tests/unit/src/helpers/build-query-fields.test.js +1 -1
- package/tests/unit/src/helpers/build-raw-query-base.test.js +1 -1
- package/tests/unit/src/helpers/build-raw-query.test.js +1 -1
- package/tests/unit/src/helpers/build-search-values-checkbox-select.test.js +1 -1
- package/tests/unit/src/helpers/build-search-values-text.test.js +1 -1
- package/tests/unit/src/helpers/build-set-filters.test.js +1 -1
- package/tests/unit/src/helpers/check-for-error.test.js +1 -1
- package/tests/unit/src/helpers/check-props-to-use.test.js +1 -1
- package/tests/unit/src/helpers/get-click-wrapper-options.test.js +1 -1
- package/tests/unit/src/helpers/get-current-offset.test.js +1 -1
- package/tests/unit/src/helpers/get-display-count-data.test.js +1 -1
- package/tests/unit/src/helpers/get-elasticsearch-operator.test.js +1 -1
- package/tests/unit/src/helpers/get-entity-data.test.js +1 -1
- package/tests/unit/src/helpers/get-entity-render-props.test.js +1 -1
- package/tests/unit/src/helpers/get-generic-props.test.js +1 -1
- package/tests/unit/src/helpers/get-generic-render-variables.test.js +1 -1
- package/tests/unit/src/helpers/get-image-ids.test.js +1 -1
- package/tests/unit/src/helpers/get-inherited-filters.test.js +1 -1
- package/tests/unit/src/helpers/get-not-equal-query.test.js +1 -1
- package/tests/unit/src/helpers/get-pagination-index.test.js +1 -1
- package/tests/unit/src/helpers/get-parsed-prop-values.test.js +3 -0
- package/tests/unit/src/helpers/get-parsed-summary-value.test.js +1 -1
- package/tests/unit/src/helpers/get-query-filters.test.js +1 -1
- package/tests/unit/src/helpers/get-query-props.test.js +1 -1
- package/tests/unit/src/helpers/get-required-schemas.test.js +1 -1
- package/tests/unit/src/helpers/get-search-filter-type.test.js +1 -1
- package/tests/unit/src/helpers/get-unpublished-entity-name.test.js +1 -1
- package/tests/unit/src/helpers/get-updated-filter-by.test.js +1 -1
- package/tests/unit/src/helpers/get-wrapped-value-with-link.test.js +1 -1
- package/tests/unit/src/helpers/inject-banner.test.js +3 -0
- package/tests/unit/src/helpers/is-filter-entitys-id.test.js +1 -1
- package/tests/unit/src/helpers/is-object.test.js +1 -1
- package/tests/unit/src/helpers/is-using-relation-image.test.js +1 -1
- package/tests/unit/src/helpers/parse-props-to-display.test.js +1 -1
- package/tests/unit/src/helpers/parse-textBlock.test.js +4 -1
- package/tests/unit/src/helpers/remove-extra-items.test.js +1 -1
- package/tests/unit/src/helpers/remove-unwanted-characters.test.js +1 -1
- package/tests/unit/src/helpers/render-children.test.js +4 -1
- package/tests/unit/src/helpers/should-render-waypoint.test.js +1 -1
- package/tests/unit/src/helpers/should-show-property.test.js +1 -1
- package/tests/unit/src/helpers/sort-response-data.test.js +1 -1
- package/tests/unit/src/helpers/update-childrens-parent.test.js +1 -1
- package/tests/unit/src/hooks/helpers/StoreImages.test.js +1 -1
- package/tests/unit/src/hooks/helpers/getComponent.test.js +3 -0
- package/tests/unit/src/hooks/helpers/inject-textblock-banners.test.js +1 -1
- package/tests/unit/src/hooks/use-check-mobile-screen.test.js +3 -0
- package/tests/unit/src/hooks/use-get-image-id-from-relation.test.js +5 -1
- package/tests/unit/src/hooks/use-get-images.test.js +3 -0
- package/tests/unit/src/hooks/use-get-single-entity-schema.test.js +4 -1
- package/tests/unit/src/hooks/use-page-builder.test.js +3 -0
- package/tests/unit/src/utils/component-map.test.js +3 -0
- package/tests/unit/src/utils/get-image-data.test.js +0 -1
- package/tests/unit/src/utils/get-props-to-display-modifiers.test.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import getDisplayCountData from '../../../../src/helpers/get-display-count-data';
|
|
3
3
|
import { IMAGE, IMAGES } from '../../../../src/constants';
|
|
4
4
|
|
|
5
5
|
describe('get display count data', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import getElasticsearchOperator from '../../../../src/helpers/get-elasticsearch-operator';
|
|
3
3
|
|
|
4
4
|
describe('get Elasticsearch operator', () => {
|
|
5
5
|
it('should be a function', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import getGenericRenderVariables from '../../../../src/helpers/get-generic-render-variables';
|
|
3
3
|
|
|
4
4
|
const IS_TEXT_SEARCH_FILTER_APPLIED_TRUE = true;
|
|
5
5
|
const IS_TEXT_SEARCH_FILTER_APPLIED_FALSE = false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import getInheritedFilters from '../../../../src/helpers/get-inherited-filters';
|
|
3
3
|
|
|
4
4
|
const filterBy = ['name/some name', 'category.name/category-1'];
|
|
5
5
|
const filterByProperty = ['name/page', 'category.name/category', 'brokers.metaTitle/brokers'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import getPaginationIndex from '../../../../src/helpers/get-pagination-index';
|
|
3
3
|
|
|
4
4
|
const mockedArgs = [
|
|
5
5
|
[{ [`pb[list-1][page]`]: 17, someOtherQuery: 'yes' }, 'list-1'],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import getParsedSummaryValue from '../../../../src/helpers/get-parsed-summary-value';
|
|
3
3
|
|
|
4
4
|
describe('get parsed summary value func', () => {
|
|
5
5
|
it('should be a function', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MOCKED_SCHEMA_FOR_FILTERS } from '../../../helpers/mocks';
|
|
2
|
-
import
|
|
2
|
+
import getQueryProps from '../../../../src/helpers/get-query-props';
|
|
3
3
|
|
|
4
4
|
const inheritedFilters = ['category.name/category'];
|
|
5
5
|
const inheritedFiltersMoreData = ['authors.firstname/author', 'tags.name/tag'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import getUnpublishedEntityName from '../../../../src/helpers/get-unpublished-entity-name';
|
|
3
3
|
|
|
4
4
|
describe('get sanitized entity name', () => {
|
|
5
5
|
const empty = getUnpublishedEntityName('');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MOCKED_INFINITE_SCROLL_PROPS, MOCKED_SCHEMA_FOR_FILTERS } from '../../../helpers/mocks';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import getUpdatedFilterBy from '../../../../src/helpers/get-updated-filter-by';
|
|
4
4
|
|
|
5
5
|
const mockedProps = [
|
|
6
6
|
['category.name/category', 'tags.name/tag', 'metaTitle', 'exhibitorIds/exhibitor'],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import getWrappedValueWithLink from '../../../../src/helpers/get-wrapped-value-with-link';
|
|
3
3
|
|
|
4
4
|
describe('get wrapped value with link func', () => {
|
|
5
5
|
const value = 'test-value';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import isUsingRelationImage from '../../../../src/helpers/is-using-relation-image';
|
|
3
3
|
|
|
4
4
|
describe('is using relation image', () => {
|
|
5
5
|
it('should be a function', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import parsePropsToDisplay from '../../../../src/helpers/parse-props-to-display';
|
|
3
3
|
|
|
4
4
|
const mockedPropsToDisplayStringArr = ['name', 'other', 'cat.name', 'tag.name'];
|
|
5
5
|
const mockedPropsToDisplayObjectArr = [
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jest-environment jsdom
|
|
3
|
+
*/
|
|
2
4
|
import React from 'react';
|
|
5
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
3
6
|
import { render } from '@blaze-cms/tools/test-helpers/test-functions';
|
|
4
7
|
import parseTextBlock from '../../../../src/helpers/parse-TextBlock';
|
|
5
8
|
import BlazeLink from '../../../../src/components/BlazeLink';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import removeExtraItems from '../../../../src/helpers/remove-extra-items';
|
|
3
3
|
|
|
4
4
|
describe('Remove extra items', () => {
|
|
5
5
|
const data = [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jest-environment jsdom
|
|
3
|
+
*/
|
|
1
4
|
import React from 'react';
|
|
2
5
|
import '@testing-library/jest-dom/extend-expect';
|
|
3
|
-
import
|
|
6
|
+
import renderChildren from '../../../../src/helpers/render-children';
|
|
4
7
|
|
|
5
8
|
const mocks = [
|
|
6
9
|
<span className="span-child" modifier="has-modifier">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import shouldShowProperty from '../../../../src/helpers/should-show-property';
|
|
3
3
|
|
|
4
4
|
describe('shouldShowProperty function', () => {
|
|
5
5
|
it('should be a function', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import
|
|
2
|
+
import sortResponseData from '../../../../src/helpers/sort-response-data';
|
|
3
3
|
import { MOCKED_SORT_DATA, MOCKED_SORT_IDS, MOCKED_SORT_RESULTS } from '../../../helpers/mocks';
|
|
4
4
|
|
|
5
5
|
describe('sort response data function', () => {
|
|
@@ -109,7 +109,7 @@ function checkIsBanner(banner, posn) {
|
|
|
109
109
|
if (posn) {
|
|
110
110
|
expect(banner).toHaveProperty('props.targetings', `posn=${posn}`);
|
|
111
111
|
} else {
|
|
112
|
-
expect(banner).toHaveProperty('props.targetings'
|
|
112
|
+
expect(banner).not.toHaveProperty('props.targetings');
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jest-environment jsdom
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
1
5
|
import { renderHook } from '@testing-library/react-hooks';
|
|
2
6
|
import { MockedProvider } from '@apollo/client/testing';
|
|
3
|
-
|
|
7
|
+
|
|
4
8
|
import useGetImageIdFromRelation from '../../../../src/hooks/use-get-image-id-from-relation';
|
|
5
9
|
import * as query from '../../../../src/application/query';
|
|
6
10
|
import { GET_IMAGE_ID_FROM_RELATION_MOCK } from '../../../helpers/mocks';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jest-environment jsdom
|
|
3
|
+
*/
|
|
2
4
|
import React from 'react';
|
|
5
|
+
import { renderHook, act } from '@testing-library/react-hooks';
|
|
3
6
|
import { MockedProvider } from '@apollo/client/testing';
|
|
4
7
|
import { useGetSingleEntitySchema } from '../../../../src/hooks';
|
|
5
8
|
import { getSingleEntitySchema } from '../../../../src/application/query';
|