@blaze-cms/react-page-builder 0.146.0-core-styles.45 → 0.146.0-core-styles.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/lib/BannerContext/index.js +1 -2
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +1 -2
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +1 -2
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/application/query/index.js +19 -15
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +1 -2
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +2 -3
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +2 -3
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/index.js +1 -2
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +1 -2
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +2 -3
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Button.js +1 -2
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +4 -3
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +2 -3
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsRender.js +1 -2
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/CarouselRender.js +1 -0
- package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js +1 -2
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/ClickWrapper.js +1 -2
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +1 -2
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +1 -2
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +2 -3
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js +1 -0
- package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +1 -2
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryRender.js +1 -0
- package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +1 -2
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +1 -2
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/ErrorMessage/index.js +1 -2
- package/lib/components/ErrorMessage/index.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +1 -2
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +1 -2
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +1 -2
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +2 -3
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +1 -2
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +23 -8
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-ids.js +1 -0
- package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib/components/ItemList/icons/AddedBookmark.js +45 -0
- package/lib/components/ItemList/icons/AddedBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/BaseBookmark.js +50 -0
- package/lib/components/ItemList/icons/BaseBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/FocusedBookmark.js +45 -0
- package/lib/components/ItemList/icons/FocusedBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/HoverBookmark.js +45 -0
- package/lib/components/ItemList/icons/HoverBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/RemoveBookmark.js +45 -0
- package/lib/components/ItemList/icons/RemoveBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/index.js +43 -0
- package/lib/components/ItemList/icons/index.js.map +1 -0
- package/lib/components/Layout/LayoutFactory.js +1 -2
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +1 -2
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/LazyImage/index.js +1 -2
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListFactory.js +12 -7
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +1 -2
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -3
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +2 -3
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +34 -32
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js +1 -0
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +1 -2
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/helpers/build-query-booster.js +1 -1
- package/lib/components/Menu/Menu.js +1 -2
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/MenuItem/MenuItemRender.js +1 -2
- package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib/components/ModalAdapter/index.js +1 -2
- package/lib/components/ModalAdapter/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +1 -2
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentItems.js +1 -0
- package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +2 -3
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +1 -2
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +1 -2
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +1 -2
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +1 -0
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-select-options.js +1 -0
- package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib/components/SearchFilter/helpers/parse-filter-value.js +1 -0
- package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js +1 -0
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollowRender.js +1 -0
- package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib/components/Video/VideoModal.js +1 -2
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +1 -2
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +1 -2
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +1 -2
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +1 -2
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +1 -2
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/index.js +1 -2
- package/lib/components/index.js.map +1 -1
- package/lib/helpers/build-props-query.js +4 -2
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/helpers/build-query-fields.js +1 -0
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/check-props-to-use.js +1 -0
- package/lib/helpers/check-props-to-use.js.map +1 -1
- package/lib/helpers/get-entities-with-banner.js +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js +1 -0
- package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js +1 -0
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +1 -1
- package/lib/helpers/is-filter-entitys-id.js +0 -1
- package/lib/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +1 -2
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +1 -2
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/process-data-summary-value.js +1 -1
- package/lib/helpers/remove-unwanted-characters.js +1 -1
- package/lib/hooks/helpers/RenderComponent.js +0 -1
- package/lib/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib/hooks/helpers/check-collisions.js +0 -1
- package/lib/hooks/helpers/check-collisions.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js +1 -2
- package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib/hooks/use-portal.js +1 -2
- package/lib/hooks/use-portal.js.map +1 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/get-class-modifiers.js +0 -1
- package/lib/utils/get-class-modifiers.js.map +1 -1
- package/lib/utils/get-props-to-display-modifiers.js +1 -0
- package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib/variants/Infographic/index.js +1 -2
- package/lib/variants/Infographic/index.js.map +1 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js +115 -0
- package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -0
- package/lib/variants/LiveBlogList/index.js +42 -0
- package/lib/variants/LiveBlogList/index.js.map +1 -0
- package/lib/variants/LongformGallery/LongformGallery.js +1 -0
- package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
- package/lib/variants/LongformGallery/index.js +1 -2
- package/lib/variants/LongformGallery/index.js.map +1 -1
- package/lib/variants/SlideSummary/index.js +1 -2
- package/lib/variants/SlideSummary/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js +1 -0
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/index.js +1 -2
- package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
- package/lib/variants/index.js +3 -1
- package/lib/variants/index.js.map +1 -1
- package/lib-es/application/query/index.js +9 -1
- package/lib-es/application/query/index.js.map +1 -1
- package/lib-es/components/Card/Card.js +3 -1
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js +15 -6
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib-es/components/ItemList/icons/AddedBookmark.js +36 -0
- package/lib-es/components/ItemList/icons/AddedBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js +41 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/FocusedBookmark.js +36 -0
- package/lib-es/components/ItemList/icons/FocusedBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js +36 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js +36 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/index.js +6 -0
- package/lib-es/components/ItemList/icons/index.js.map +1 -0
- package/lib-es/components/List/ListFactory.js +10 -4
- package/lib-es/components/List/ListFactory.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRenderItem.js +34 -30
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib-es/helpers/build-props-query.js +4 -2
- package/lib-es/helpers/build-props-query.js.map +1 -1
- package/lib-es/index.js +1 -1
- package/lib-es/index.js.map +1 -1
- package/lib-es/variants/LiveBlogList/LiveBlogList.js +90 -0
- package/lib-es/variants/LiveBlogList/LiveBlogList.js.map +1 -0
- package/lib-es/variants/LiveBlogList/index.js +12 -0
- package/lib-es/variants/LiveBlogList/index.js.map +1 -0
- package/lib-es/variants/index.js +3 -1
- package/lib-es/variants/index.js.map +1 -1
- package/package.json +6 -6
- package/src/application/query/index.js +11 -1
- package/src/components/Card/Card.js +2 -1
- package/src/components/ItemList/ItemListButton/ItemListButton.js +23 -12
- package/src/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
- package/src/components/ItemList/icons/AddedBookmark.js +33 -0
- package/src/components/ItemList/icons/BaseBookmark.js +39 -0
- package/src/components/ItemList/icons/FocusedBookmark.js +33 -0
- package/src/components/ItemList/icons/HoverBookmark.js +33 -0
- package/src/components/ItemList/icons/RemoveBookmark.js +33 -0
- package/src/components/ItemList/icons/index.js +5 -0
- package/src/components/List/ListFactory.js +13 -4
- package/src/components/List/components/Full/FullRenderItem.js +45 -28
- package/src/helpers/build-props-query.js +3 -2
- package/src/index.js +2 -1
- package/src/variants/LiveBlogList/LiveBlogList.js +109 -0
- package/src/variants/LiveBlogList/index.js +13 -0
- package/src/variants/index.js +3 -1
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListButton.test.js.snap +151 -43
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListCounter.test.js.snap +35 -9
- package/tests/unit/src/helpers/build-props-query.test.js +13 -11
|
@@ -3,24 +3,50 @@
|
|
|
3
3
|
exports[`ItemListButton component should add and remove item to the list on click 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
aria-label="Add to list_name"
|
|
7
6
|
class="item-list-button item-list-button--selected modifier"
|
|
8
7
|
role="button"
|
|
8
|
+
tabindex="0"
|
|
9
9
|
>
|
|
10
10
|
<i>
|
|
11
11
|
<svg
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
viewBox="0 0 16 16"
|
|
17
|
-
width="1em"
|
|
12
|
+
height="33px"
|
|
13
|
+
version="1.1"
|
|
14
|
+
viewBox="0 0 24 33"
|
|
15
|
+
width="24px"
|
|
18
16
|
xmlns="http://www.w3.org/2000/svg"
|
|
19
17
|
>
|
|
20
|
-
<
|
|
21
|
-
|
|
18
|
+
<title>
|
|
19
|
+
wishlist-button/added
|
|
20
|
+
</title>
|
|
21
|
+
<g
|
|
22
|
+
fill="none"
|
|
22
23
|
fill-rule="evenodd"
|
|
23
|
-
|
|
24
|
+
id="Wishlist"
|
|
25
|
+
stroke="none"
|
|
26
|
+
stroke-width="1"
|
|
27
|
+
>
|
|
28
|
+
<g
|
|
29
|
+
id="components"
|
|
30
|
+
transform="translate(-417, -433)"
|
|
31
|
+
>
|
|
32
|
+
<g
|
|
33
|
+
id="Group"
|
|
34
|
+
transform="translate(417, 433.0588)"
|
|
35
|
+
>
|
|
36
|
+
<path
|
|
37
|
+
d="M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z"
|
|
38
|
+
fill="#C31629"
|
|
39
|
+
fill-rule="nonzero"
|
|
40
|
+
id="Shape"
|
|
41
|
+
/>
|
|
42
|
+
<path
|
|
43
|
+
d="M19.5735342,9.48562495 C20.1421553,8.91700384 20.1421553,7.99508691 19.5735342,7.42646583 C19.0049131,6.85784474 18.0829962,6.85784472 17.514375,7.42646579 L9.81870394,15.1250453 L6.48565817,11.7890911 C6.11782481,11.4212578 5.58169601,11.2776025 5.0792263,11.4122388 C4.57675658,11.5468752 4.18428306,11.9393487 4.04964671,12.4418184 C3.91501035,12.9442881 4.05866564,13.4804169 4.42649901,13.8482503 L8.78912435,18.2108756 C9.06194626,18.4843881 9.43238689,18.638104 9.81870394,18.638104 C10.205021,18.638104 10.5754616,18.4843881 10.8482835,18.2108756 L19.5735342,9.48562495 Z"
|
|
44
|
+
fill="#FFFFFF"
|
|
45
|
+
id="Path"
|
|
46
|
+
/>
|
|
47
|
+
</g>
|
|
48
|
+
</g>
|
|
49
|
+
</g>
|
|
24
50
|
</svg>
|
|
25
51
|
</i>
|
|
26
52
|
</div>
|
|
@@ -30,24 +56,50 @@ exports[`ItemListButton component should add and remove item to the list on clic
|
|
|
30
56
|
exports[`ItemListButton component should add and remove item to the list on click 2`] = `
|
|
31
57
|
<DocumentFragment>
|
|
32
58
|
<div
|
|
33
|
-
aria-label="Add to list_name"
|
|
34
59
|
class="item-list-button item-list-button--selected modifier"
|
|
35
60
|
role="button"
|
|
61
|
+
tabindex="0"
|
|
36
62
|
>
|
|
37
63
|
<i>
|
|
38
64
|
<svg
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
viewBox="0 0 16 16"
|
|
44
|
-
width="1em"
|
|
65
|
+
height="33px"
|
|
66
|
+
version="1.1"
|
|
67
|
+
viewBox="0 0 24 33"
|
|
68
|
+
width="24px"
|
|
45
69
|
xmlns="http://www.w3.org/2000/svg"
|
|
46
70
|
>
|
|
47
|
-
<
|
|
48
|
-
|
|
71
|
+
<title>
|
|
72
|
+
wishlist-button/added
|
|
73
|
+
</title>
|
|
74
|
+
<g
|
|
75
|
+
fill="none"
|
|
49
76
|
fill-rule="evenodd"
|
|
50
|
-
|
|
77
|
+
id="Wishlist"
|
|
78
|
+
stroke="none"
|
|
79
|
+
stroke-width="1"
|
|
80
|
+
>
|
|
81
|
+
<g
|
|
82
|
+
id="components"
|
|
83
|
+
transform="translate(-417, -433)"
|
|
84
|
+
>
|
|
85
|
+
<g
|
|
86
|
+
id="Group"
|
|
87
|
+
transform="translate(417, 433.0588)"
|
|
88
|
+
>
|
|
89
|
+
<path
|
|
90
|
+
d="M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z"
|
|
91
|
+
fill="#C31629"
|
|
92
|
+
fill-rule="nonzero"
|
|
93
|
+
id="Shape"
|
|
94
|
+
/>
|
|
95
|
+
<path
|
|
96
|
+
d="M19.5735342,9.48562495 C20.1421553,8.91700384 20.1421553,7.99508691 19.5735342,7.42646583 C19.0049131,6.85784474 18.0829962,6.85784472 17.514375,7.42646579 L9.81870394,15.1250453 L6.48565817,11.7890911 C6.11782481,11.4212578 5.58169601,11.2776025 5.0792263,11.4122388 C4.57675658,11.5468752 4.18428306,11.9393487 4.04964671,12.4418184 C3.91501035,12.9442881 4.05866564,13.4804169 4.42649901,13.8482503 L8.78912435,18.2108756 C9.06194626,18.4843881 9.43238689,18.638104 9.81870394,18.638104 C10.205021,18.638104 10.5754616,18.4843881 10.8482835,18.2108756 L19.5735342,9.48562495 Z"
|
|
97
|
+
fill="#FFFFFF"
|
|
98
|
+
id="Path"
|
|
99
|
+
/>
|
|
100
|
+
</g>
|
|
101
|
+
</g>
|
|
102
|
+
</g>
|
|
51
103
|
</svg>
|
|
52
104
|
</i>
|
|
53
105
|
</div>
|
|
@@ -57,24 +109,50 @@ exports[`ItemListButton component should add and remove item to the list on clic
|
|
|
57
109
|
exports[`ItemListButton component should render button marked selected when current parent is in the list 1`] = `
|
|
58
110
|
<DocumentFragment>
|
|
59
111
|
<div
|
|
60
|
-
aria-label="Add to list_name"
|
|
61
112
|
class="item-list-button item-list-button--selected modifier"
|
|
62
113
|
role="button"
|
|
114
|
+
tabindex="0"
|
|
63
115
|
>
|
|
64
116
|
<i>
|
|
65
117
|
<svg
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
viewBox="0 0 16 16"
|
|
71
|
-
width="1em"
|
|
118
|
+
height="33px"
|
|
119
|
+
version="1.1"
|
|
120
|
+
viewBox="0 0 24 33"
|
|
121
|
+
width="24px"
|
|
72
122
|
xmlns="http://www.w3.org/2000/svg"
|
|
73
123
|
>
|
|
74
|
-
<
|
|
75
|
-
|
|
124
|
+
<title>
|
|
125
|
+
wishlist-button/added
|
|
126
|
+
</title>
|
|
127
|
+
<g
|
|
128
|
+
fill="none"
|
|
76
129
|
fill-rule="evenodd"
|
|
77
|
-
|
|
130
|
+
id="Wishlist"
|
|
131
|
+
stroke="none"
|
|
132
|
+
stroke-width="1"
|
|
133
|
+
>
|
|
134
|
+
<g
|
|
135
|
+
id="components"
|
|
136
|
+
transform="translate(-417, -433)"
|
|
137
|
+
>
|
|
138
|
+
<g
|
|
139
|
+
id="Group"
|
|
140
|
+
transform="translate(417, 433.0588)"
|
|
141
|
+
>
|
|
142
|
+
<path
|
|
143
|
+
d="M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z"
|
|
144
|
+
fill="#C31629"
|
|
145
|
+
fill-rule="nonzero"
|
|
146
|
+
id="Shape"
|
|
147
|
+
/>
|
|
148
|
+
<path
|
|
149
|
+
d="M19.5735342,9.48562495 C20.1421553,8.91700384 20.1421553,7.99508691 19.5735342,7.42646583 C19.0049131,6.85784474 18.0829962,6.85784472 17.514375,7.42646579 L9.81870394,15.1250453 L6.48565817,11.7890911 C6.11782481,11.4212578 5.58169601,11.2776025 5.0792263,11.4122388 C4.57675658,11.5468752 4.18428306,11.9393487 4.04964671,12.4418184 C3.91501035,12.9442881 4.05866564,13.4804169 4.42649901,13.8482503 L8.78912435,18.2108756 C9.06194626,18.4843881 9.43238689,18.638104 9.81870394,18.638104 C10.205021,18.638104 10.5754616,18.4843881 10.8482835,18.2108756 L19.5735342,9.48562495 Z"
|
|
150
|
+
fill="#FFFFFF"
|
|
151
|
+
id="Path"
|
|
152
|
+
/>
|
|
153
|
+
</g>
|
|
154
|
+
</g>
|
|
155
|
+
</g>
|
|
78
156
|
</svg>
|
|
79
157
|
</i>
|
|
80
158
|
</div>
|
|
@@ -84,26 +162,56 @@ exports[`ItemListButton component should render button marked selected when curr
|
|
|
84
162
|
exports[`ItemListButton component should render button not marked selected when current parent is not in the list 1`] = `
|
|
85
163
|
<DocumentFragment>
|
|
86
164
|
<div
|
|
87
|
-
aria-label="Add to list_name"
|
|
88
165
|
class="item-list-button modifier"
|
|
89
166
|
role="button"
|
|
167
|
+
tabindex="0"
|
|
90
168
|
>
|
|
91
169
|
<i>
|
|
92
170
|
<svg
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
viewBox="0 0 16 16"
|
|
98
|
-
width="1em"
|
|
171
|
+
height="32px"
|
|
172
|
+
version="1.1"
|
|
173
|
+
viewBox="0 0 24 32"
|
|
174
|
+
width="24px"
|
|
99
175
|
xmlns="http://www.w3.org/2000/svg"
|
|
100
176
|
>
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
177
|
+
<title>
|
|
178
|
+
wishlist-button/base
|
|
179
|
+
</title>
|
|
180
|
+
<g
|
|
181
|
+
fill="none"
|
|
182
|
+
fill-rule="evenodd"
|
|
183
|
+
id="Wishlist"
|
|
184
|
+
stroke="none"
|
|
185
|
+
stroke-width="1"
|
|
186
|
+
>
|
|
187
|
+
<g
|
|
188
|
+
id="components"
|
|
189
|
+
transform="translate(-417, -237)"
|
|
190
|
+
>
|
|
191
|
+
<g
|
|
192
|
+
id="Group"
|
|
193
|
+
transform="translate(417, 237)"
|
|
194
|
+
>
|
|
195
|
+
<path
|
|
196
|
+
d="M0,4.00006438 C0,1.79088983 1.79088983,0 4.00006438,0 L20.0003219,0 C22.2094965,0 24.0003863,1.79088983 24.0003863,4.00006438 L24.0003863,31.000499 C24.0003863,31.3690566 23.7972987,31.707635 23.4723789,31.8815946 C23.1474592,32.0555542 22.7531917,32.0366934 22.4463613,31.8325124 L12.0001931,26.2024217 L1.55402501,31.8325124 C1.24719462,32.0366934 0.852927098,32.0555542 0.528007369,31.8815946 C0.203087639,31.707635 0,31.3690566 0,31.000499 L0,4.00006438 Z"
|
|
197
|
+
fill="#FFFFFF"
|
|
198
|
+
id="Path"
|
|
199
|
+
/>
|
|
200
|
+
<path
|
|
201
|
+
d="M11.4884365,6.3199776 C11.5838756,6.12420508 11.7826038,6 12.0004007,6 C12.2181976,6 12.4169257,6.12420508 12.5123648,6.3199776 L14.5410228,10.4316897 C14.623468,10.6005456 14.7838925,10.717871 14.9697928,10.7452678 L19.5134747,11.4044216 C19.9774422,11.4716169 20.166229,12.0443768 19.8270528,12.3739538 L16.5440826,15.5769295 C16.4096115,15.7082089 16.3485531,15.8973704 16.380894,16.0824941 L17.1552398,20.6069774 C17.1907134,20.8200705 17.1025787,21.0348915 16.927666,21.1616693 C16.7527533,21.2884471 16.5211722,21.3053581 16.3296976,21.2053355 L12.2659821,19.0678851 C12.1006216,18.9813923 11.9033796,18.9813923 11.7380191,19.0678851 L7.67430355,21.2053355 C7.48306696,21.3035559 7.2528198,21.2857277 7.07898266,21.1592392 C6.90514552,21.0327507 6.81734235,20.8191571 6.85196113,20.6069774 L7.62630692,16.0824941 C7.6594628,15.8979103 7.5996286,15.7088342 7.46631812,15.5769295 L4.17054885,12.3739538 C4.01657399,12.222779 3.96125182,11.9975718 4.027656,11.7922609 C4.09406017,11.58695 4.2707867,11.4367948 4.48412689,11.4044216 L9.0278088,10.7452678 C9.21370906,10.717871 9.3741336,10.6005456 9.45657878,10.4316897 L11.4884365,6.3199776 Z"
|
|
202
|
+
fill="#C31629"
|
|
203
|
+
fill-rule="nonzero"
|
|
204
|
+
id="Path"
|
|
205
|
+
/>
|
|
206
|
+
<path
|
|
207
|
+
d="M0,4.00006438 C0,1.79088983 1.79088983,0 4.00006438,0 L20.0003219,0 C22.2094965,0 24.0003863,1.79088983 24.0003863,4.00006438 L24.0003863,31.000499 C24.0003863,31.3690566 23.7972987,31.707635 23.4723789,31.8815946 C23.1474592,32.0555542 22.7531917,32.0366934 22.4463613,31.8325124 L12.0001931,26.2024217 L1.55402501,31.8325124 C1.24719462,32.0366934 0.852927098,32.0555542 0.528007369,31.8815946 C0.203087639,31.707635 0,31.3690566 0,31.000499 L0,4.00006438 Z M4.00006438,2.00003219 C2.8954771,2.00003219 2.00003219,2.8954771 2.00003219,4.00006438 L2.00003219,29.1324689 L11.4461842,24.168389 C11.7817677,23.9450743 12.2186186,23.9450743 12.5542021,24.168389 L22.0003541,29.1324689 L22.0003541,4.00006438 C22.0003541,2.8954771 21.1049092,2.00003219 20.0003219,2.00003219 L4.00006438,2.00003219 Z"
|
|
208
|
+
fill="#C31629"
|
|
209
|
+
fill-rule="nonzero"
|
|
210
|
+
id="Shape"
|
|
211
|
+
/>
|
|
212
|
+
</g>
|
|
213
|
+
</g>
|
|
214
|
+
</g>
|
|
107
215
|
</svg>
|
|
108
216
|
</i>
|
|
109
217
|
</div>
|
|
@@ -9,18 +9,44 @@ exports[`ItemListCounter component should display listItem count and route to ur
|
|
|
9
9
|
type="button"
|
|
10
10
|
>
|
|
11
11
|
<svg
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
viewBox="0 0 16 16"
|
|
17
|
-
width="1em"
|
|
12
|
+
height="33px"
|
|
13
|
+
version="1.1"
|
|
14
|
+
viewBox="0 0 24 33"
|
|
15
|
+
width="24px"
|
|
18
16
|
xmlns="http://www.w3.org/2000/svg"
|
|
19
17
|
>
|
|
20
|
-
<
|
|
21
|
-
|
|
18
|
+
<title>
|
|
19
|
+
wishlist-button/added
|
|
20
|
+
</title>
|
|
21
|
+
<g
|
|
22
|
+
fill="none"
|
|
22
23
|
fill-rule="evenodd"
|
|
23
|
-
|
|
24
|
+
id="Wishlist"
|
|
25
|
+
stroke="none"
|
|
26
|
+
stroke-width="1"
|
|
27
|
+
>
|
|
28
|
+
<g
|
|
29
|
+
id="components"
|
|
30
|
+
transform="translate(-417, -433)"
|
|
31
|
+
>
|
|
32
|
+
<g
|
|
33
|
+
id="Group"
|
|
34
|
+
transform="translate(417, 433.0588)"
|
|
35
|
+
>
|
|
36
|
+
<path
|
|
37
|
+
d="M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z"
|
|
38
|
+
fill="#C31629"
|
|
39
|
+
fill-rule="nonzero"
|
|
40
|
+
id="Shape"
|
|
41
|
+
/>
|
|
42
|
+
<path
|
|
43
|
+
d="M19.5735342,9.48562495 C20.1421553,8.91700384 20.1421553,7.99508691 19.5735342,7.42646583 C19.0049131,6.85784474 18.0829962,6.85784472 17.514375,7.42646579 L9.81870394,15.1250453 L6.48565817,11.7890911 C6.11782481,11.4212578 5.58169601,11.2776025 5.0792263,11.4122388 C4.57675658,11.5468752 4.18428306,11.9393487 4.04964671,12.4418184 C3.91501035,12.9442881 4.05866564,13.4804169 4.42649901,13.8482503 L8.78912435,18.2108756 C9.06194626,18.4843881 9.43238689,18.638104 9.81870394,18.638104 C10.205021,18.638104 10.5754616,18.4843881 10.8482835,18.2108756 L19.5735342,9.48562495 Z"
|
|
44
|
+
fill="#FFFFFF"
|
|
45
|
+
id="Path"
|
|
46
|
+
/>
|
|
47
|
+
</g>
|
|
48
|
+
</g>
|
|
49
|
+
</g>
|
|
24
50
|
</svg>
|
|
25
51
|
<span
|
|
26
52
|
class="item-list-counter__badge"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import buildPropsQuery from '../../../../src/helpers/build-props-query';
|
|
5
5
|
|
|
6
|
-
const CONTENT_INTERFACE = 'content/content';
|
|
6
|
+
const CONTENT_INTERFACE = 'content/content-base';
|
|
7
7
|
|
|
8
8
|
describe('get card render props', () => {
|
|
9
9
|
const relations = [
|
|
@@ -60,7 +60,7 @@ describe('get card render props', () => {
|
|
|
60
60
|
};
|
|
61
61
|
const query = buildPropsQuery(_data, [], cardProps);
|
|
62
62
|
expect(query).toEqual(
|
|
63
|
-
'id,name,url,sponsored,featured,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}},image{id,url,data}'
|
|
63
|
+
'id,name,url,sponsored,featured,live,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}},image{id,url,data}'
|
|
64
64
|
);
|
|
65
65
|
});
|
|
66
66
|
|
|
@@ -70,7 +70,7 @@ describe('get card render props', () => {
|
|
|
70
70
|
displayThumbnail: false
|
|
71
71
|
});
|
|
72
72
|
expect(query).toEqual(
|
|
73
|
-
'id,name,alternativePreHeader{name},alternativeHeadline,url,sponsored,featured'
|
|
73
|
+
'id,name,alternativePreHeader{name},alternativeHeadline,url,sponsored,featured,live'
|
|
74
74
|
);
|
|
75
75
|
});
|
|
76
76
|
|
|
@@ -92,18 +92,20 @@ describe('get card render props', () => {
|
|
|
92
92
|
displayThumbnail: false
|
|
93
93
|
});
|
|
94
94
|
expect(query).toEqual(
|
|
95
|
-
'id,name,alternativePreHeader{name},alternativeHeadline,url,sponsored,featured,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}}'
|
|
95
|
+
'id,name,alternativePreHeader{name},alternativeHeadline,url,sponsored,featured,live,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}}'
|
|
96
96
|
);
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
it('should not include category if the schema does not have a category', () => {
|
|
100
100
|
const query = buildPropsQuery(data, [], cardProps);
|
|
101
|
-
expect(query).toEqual('id,name,url,sponsored,featured,image{id,url,data}');
|
|
101
|
+
expect(query).toEqual('id,name,url,sponsored,featured,live,image{id,url,data}');
|
|
102
102
|
});
|
|
103
103
|
|
|
104
104
|
it('should return complex props when base includes published', () => {
|
|
105
105
|
const query = buildPropsQuery(data, ['published.date'], cardProps);
|
|
106
|
-
expect(query).toEqual(
|
|
106
|
+
expect(query).toEqual(
|
|
107
|
+
'id,name,url,sponsored,featured,live,image{id,url,data},published{date,url}'
|
|
108
|
+
);
|
|
107
109
|
});
|
|
108
110
|
|
|
109
111
|
it('should return result as if isCard was false when isCard is not passed', () => {
|
|
@@ -113,7 +115,7 @@ describe('get card render props', () => {
|
|
|
113
115
|
|
|
114
116
|
it('should return result as if isCard was false when extraProps were not passed', () => {
|
|
115
117
|
const query = buildPropsQuery(data, undefined, cardProps);
|
|
116
|
-
expect(query).toEqual('id,name,url,sponsored,featured,image{id,url,data}');
|
|
118
|
+
expect(query).toEqual('id,name,url,sponsored,featured,live,image{id,url,data}');
|
|
117
119
|
});
|
|
118
120
|
|
|
119
121
|
it('should return a string with respective props query when isCard is passed as true', () => {
|
|
@@ -136,7 +138,7 @@ describe('get card render props', () => {
|
|
|
136
138
|
|
|
137
139
|
it('should not include category and image props if card options says not to', () => {
|
|
138
140
|
const query = buildPropsQuery(data, [], { displayCategory: false, displayThumbnail: false });
|
|
139
|
-
expect(query).toEqual('id,name,url,sponsored,featured');
|
|
141
|
+
expect(query).toEqual('id,name,url,sponsored,featured,live');
|
|
140
142
|
});
|
|
141
143
|
|
|
142
144
|
it('should not fetch image if the schema does not have imageId property', () => {
|
|
@@ -153,7 +155,7 @@ describe('get card render props', () => {
|
|
|
153
155
|
};
|
|
154
156
|
const query = buildPropsQuery(_data, [], cardProps);
|
|
155
157
|
expect(query).toEqual(
|
|
156
|
-
'id,name,url,sponsored,featured,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}}'
|
|
158
|
+
'id,name,url,sponsored,featured,live,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}}'
|
|
157
159
|
);
|
|
158
160
|
});
|
|
159
161
|
|
|
@@ -179,7 +181,7 @@ describe('get card render props', () => {
|
|
|
179
181
|
};
|
|
180
182
|
const query = buildPropsQuery(_data, ['address.country'], cardProps);
|
|
181
183
|
expect(query).toEqual(
|
|
182
|
-
'id,name,url,sponsored,featured,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}},address{country,id}'
|
|
184
|
+
'id,name,url,sponsored,featured,live,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}},address{country,id}'
|
|
183
185
|
);
|
|
184
186
|
});
|
|
185
187
|
|
|
@@ -204,7 +206,7 @@ describe('get card render props', () => {
|
|
|
204
206
|
const linkProps = ['nestedProperty.title', 'nestedDynamicProperty.title', 'address.title'];
|
|
205
207
|
const query = buildPropsQuery(_data, linkProps, {}, linkProps);
|
|
206
208
|
expect(query).toEqual(
|
|
207
|
-
'id,name,url,sponsored,featured,nestedProperty{title,url},nestedDynamicProperty{title,url},address{title,id,url}'
|
|
209
|
+
'id,name,url,sponsored,featured,live,nestedProperty{title,url},nestedDynamicProperty{title,url},address{title,id,url}'
|
|
208
210
|
);
|
|
209
211
|
});
|
|
210
212
|
});
|