@blaze-cms/react-page-builder 0.141.0-alpha.0 → 0.141.0-alpha.2
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 +57 -0
- package/lib/components/BlazeLink.js +6 -2
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +10 -8
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/Image/ImageRender.js +4 -2
- package/lib/components/Image/ImageRender.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js +5 -2
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js +2 -2
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/LoadMore.js +2 -1
- package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js +2 -1
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/Menu/Menu.js +4 -2
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/SearchFilter/components/Select.js +1 -0
- package/lib/components/SearchFilter/components/Select.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/SFItem.js +4 -3
- package/lib/components/SocialFollow/SFItem.js.map +1 -1
- package/lib/components/Video/providers/Default.js +13 -7
- package/lib/components/Video/providers/Default.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +5 -0
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/hooks/helpers/getVariant.js.map +1 -1
- package/lib/utils/variant-handler.js +2 -1
- package/lib/utils/variant-handler.js.map +1 -1
- package/lib/variants/HeroImage/index.js +29 -0
- package/lib/variants/HeroImage/index.js.map +1 -0
- package/lib/variants/Infographic/Infographic.js +27 -0
- package/lib/variants/Infographic/Infographic.js.map +1 -0
- package/lib/variants/Infographic/index.js +41 -0
- package/lib/variants/Infographic/index.js.map +1 -0
- package/lib/variants/Infographic/useInfographic.js +43 -0
- package/lib/variants/Infographic/useInfographic.js.map +1 -0
- package/lib/variants/LongformGallery/LongformGallery.js +53 -0
- package/lib/variants/LongformGallery/LongformGallery.js.map +1 -0
- package/lib/variants/LongformGallery/LongformGalleryImage.js +71 -0
- package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -0
- package/lib/variants/LongformGallery/constants.js +19 -0
- package/lib/variants/LongformGallery/constants.js.map +1 -0
- package/lib/variants/LongformGallery/helpers/index.js +29 -0
- package/lib/variants/LongformGallery/helpers/index.js.map +1 -0
- package/lib/variants/LongformGallery/helpers/parseImageData.js +42 -0
- package/lib/variants/LongformGallery/helpers/parseImageData.js.map +1 -0
- package/lib/variants/LongformGallery/helpers/separateImages.js +36 -0
- package/lib/variants/LongformGallery/helpers/separateImages.js.map +1 -0
- package/lib/variants/LongformGallery/helpers/shouldSkip.js +13 -0
- package/lib/variants/LongformGallery/helpers/shouldSkip.js.map +1 -0
- package/lib/variants/LongformGallery/index.js +43 -0
- package/lib/variants/LongformGallery/index.js.map +1 -0
- package/lib/variants/LongformGallery/useLongformGallery.js +58 -0
- package/lib/variants/LongformGallery/useLongformGallery.js.map +1 -0
- package/lib/variants/LongformRow/index.js +29 -0
- package/lib/variants/LongformRow/index.js.map +1 -0
- package/lib/variants/ParallaxImageTextRight/index.js +30 -0
- package/lib/variants/ParallaxImageTextRight/index.js.map +1 -0
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js +63 -0
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -0
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +37 -0
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -0
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js +11 -0
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -0
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js +69 -0
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -0
- package/lib/variants/ThumbnailCarousel/index.js +41 -0
- package/lib/variants/ThumbnailCarousel/index.js.map +1 -0
- package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js +66 -0
- package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -0
- package/lib/variants/index.js +15 -1
- package/lib/variants/index.js.map +1 -1
- package/lib-es/components/BlazeLink.js +6 -2
- package/lib-es/components/BlazeLink.js.map +1 -1
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroupTabs.js +10 -8
- package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib-es/components/Image/ImageRender.js +4 -2
- package/lib-es/components/Image/ImageRender.js.map +1 -1
- package/lib-es/components/List/components/Header/ListHeader.js +5 -2
- package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib-es/components/List/components/Pagination/Classic.js +2 -2
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib-es/components/List/components/Pagination/LoadMore.js +2 -1
- package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-items.js +2 -1
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib-es/components/Menu/Menu.js +4 -2
- package/lib-es/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Select.js +1 -0
- package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js +1 -0
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib-es/components/SocialFollow/SFItem.js +4 -3
- package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
- package/lib-es/components/Video/providers/Default.js +14 -7
- package/lib-es/components/Video/providers/Default.js.map +1 -1
- package/lib-es/components/Video/providers/get-provider.js +2 -1
- package/lib-es/components/Video/providers/get-provider.js.map +1 -1
- package/lib-es/hooks/helpers/getVariant.js.map +1 -1
- package/lib-es/utils/variant-handler.js +2 -1
- package/lib-es/utils/variant-handler.js.map +1 -1
- package/lib-es/variants/HeroImage/index.js +10 -0
- package/lib-es/variants/HeroImage/index.js.map +1 -0
- package/lib-es/variants/Infographic/Infographic.js +20 -0
- package/lib-es/variants/Infographic/Infographic.js.map +1 -0
- package/lib-es/variants/Infographic/index.js +10 -0
- package/lib-es/variants/Infographic/index.js.map +1 -0
- package/lib-es/variants/Infographic/useInfographic.js +23 -0
- package/lib-es/variants/Infographic/useInfographic.js.map +1 -0
- package/lib-es/variants/LongformGallery/LongformGallery.js +40 -0
- package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -0
- package/lib-es/variants/LongformGallery/LongformGalleryImage.js +59 -0
- package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -0
- package/lib-es/variants/LongformGallery/constants.js +18 -0
- package/lib-es/variants/LongformGallery/constants.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/index.js +5 -0
- package/lib-es/variants/LongformGallery/helpers/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/parseImageData.js +26 -0
- package/lib-es/variants/LongformGallery/helpers/parseImageData.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/separateImages.js +25 -0
- package/lib-es/variants/LongformGallery/helpers/separateImages.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/shouldSkip.js +3 -0
- package/lib-es/variants/LongformGallery/helpers/shouldSkip.js.map +1 -0
- package/lib-es/variants/LongformGallery/index.js +12 -0
- package/lib-es/variants/LongformGallery/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/useLongformGallery.js +47 -0
- package/lib-es/variants/LongformGallery/useLongformGallery.js.map +1 -0
- package/lib-es/variants/LongformRow/index.js +10 -0
- package/lib-es/variants/LongformRow/index.js.map +1 -0
- package/lib-es/variants/ParallaxImageTextRight/index.js +11 -0
- package/lib-es/variants/ParallaxImageTextRight/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js +49 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +30 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js +3 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js +62 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/index.js +10 -0
- package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js +47 -0
- package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -0
- package/lib-es/variants/index.js +14 -1
- package/lib-es/variants/index.js.map +1 -1
- package/package.json +8 -8
- package/src/components/BlazeLink.js +23 -4
- package/src/components/Card/Card.js +0 -1
- package/src/components/ContentGroup/ContentGroupTabs.js +11 -8
- package/src/components/Image/ImageRender.js +4 -2
- package/src/components/List/components/Header/ListHeader.js +7 -4
- package/src/components/List/components/Pagination/Classic.js +2 -2
- package/src/components/List/components/Pagination/LoadMore.js +7 -2
- package/src/components/List/helpers/build-pagination-items.js +2 -1
- package/src/components/Menu/Menu.js +4 -3
- package/src/components/SearchFilter/components/Select.js +1 -0
- package/src/components/SearchFilterSort/SearchFilterSort.js +1 -0
- package/src/components/SocialFollow/SFItem.js +8 -2
- package/src/components/Video/providers/Default.js +12 -6
- package/src/components/Video/providers/get-provider.js +2 -1
- package/src/hooks/helpers/getVariant.js +1 -0
- package/src/utils/variant-handler.js +2 -1
- package/src/variants/HeroImage/index.js +8 -0
- package/src/variants/Infographic/Infographic.js +14 -0
- package/src/variants/Infographic/index.js +12 -0
- package/src/variants/Infographic/useInfographic.js +18 -0
- package/src/variants/LongformGallery/LongformGallery.js +47 -0
- package/src/variants/LongformGallery/LongformGalleryImage.js +65 -0
- package/src/variants/LongformGallery/constants.js +21 -0
- package/src/variants/LongformGallery/helpers/index.js +5 -0
- package/src/variants/LongformGallery/helpers/parseImageData.js +25 -0
- package/src/variants/LongformGallery/helpers/separateImages.js +38 -0
- package/src/variants/LongformGallery/helpers/shouldSkip.js +3 -0
- package/src/variants/LongformGallery/index.js +13 -0
- package/src/variants/LongformGallery/useLongformGallery.js +41 -0
- package/src/variants/LongformRow/index.js +8 -0
- package/src/variants/ParallaxImageTextRight/index.js +9 -0
- package/src/variants/ThumbnailCarousel/ThumbnailCarousel.js +51 -0
- package/src/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +26 -0
- package/src/variants/ThumbnailCarousel/ThumbnailImage/index.js +3 -0
- package/src/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js +61 -0
- package/src/variants/ThumbnailCarousel/index.js +12 -0
- package/src/variants/ThumbnailCarousel/useThumbnailCarousel.js +42 -0
- package/src/variants/index.js +15 -1
- package/tests/unit/src/components/Breadcrumb/__snapshots__/Breadcrumb.test.js.snap +3 -0
- package/tests/unit/src/components/Button.test.js +2 -2
- package/tests/unit/src/components/Card/__snapshots__/Card.test.js.snap +13 -0
- package/tests/unit/src/components/Card/__snapshots__/CardContainer.test.js.snap +8 -0
- package/tests/unit/src/components/ContentGroup/__snapshots__/ContentGroupTabs.test.js.snap +2 -0
- package/tests/unit/src/components/Image/GlobalLightbox/__snapshots__/GlobalLightbox.test.js.snap +1 -0
- package/tests/unit/src/components/Image/__snapshots__/Image.test.js.snap +3 -0
- package/tests/unit/src/components/Image/__snapshots__/ImageFactory.test.js.snap +4 -0
- package/tests/unit/src/components/List/components/Header/__snapshots__/ListHeader.test.js.snap +5 -0
- package/tests/unit/src/components/List/components/Pagination/__snapshots__/Classic.test.js.snap +8 -2
- package/tests/unit/src/components/List/components/Pagination/__snapshots__/ListPagination.test.js.snap +5 -1
- package/tests/unit/src/components/List/components/Pagination/__snapshots__/LoadMore.test.js.snap +1 -1
- package/tests/unit/src/components/List/helpers/__snapshots__/build-pagination-items.test.js.snap +21 -0
- package/tests/unit/src/components/MenuItem/__snapshots__/MenuItem.test.js.snap +1 -0
- package/tests/unit/src/components/SearchFilter/components/__snapshots__/Select.test.js.snap +5 -3
- package/tests/unit/src/components/SearchFilterSort/__snapshots__/SearchFilterSort.test.js.snap +2 -1
- package/tests/unit/src/components/SocialFollow/__snapshots__/SFItem.test.js.snap +2 -2
- package/tests/unit/src/components/SocialFollow/__snapshots__/SocialFollow.test.js.snap +2 -6
- package/tests/unit/src/components/TextBlock/__snapshots__/TextBlock.test.js.snap +4 -0
- package/tests/unit/src/components/Video/providers/__snapshots__/Default.test.js.snap +111 -108
- package/tests/unit/src/components/__snapshots__/BlazeLink.test.js.snap +1 -1
- package/tests/unit/src/components/__snapshots__/Button.test.js.snap +1 -0
- package/tests/unit/src/helpers/__snapshots__/parse-textBlock.test.js.snap +1 -0
- package/tests/unit/src/helpers/parse-textBlock.test.js +3 -1
- package/tests/unit/src/utils/variant-handler.test.js +9 -4
- package/tests/unit/src/variants/LongFormGallery/LongformGallery.test.js +42 -0
- package/tests/unit/src/variants/LongFormGallery/LongformGalleryImage.test.js +44 -0
- package/tests/unit/src/variants/LongFormGallery/__snapshots__/LongformGallery.test.js.snap +99 -0
- package/tests/unit/src/variants/LongFormGallery/__snapshots__/LongformGalleryImage.test.js.snap +51 -0
- package/tests/unit/src/variants/LongFormGallery/constants.js +37 -0
- package/tests/unit/src/variants/LongFormGallery/helpers/parseImageData.test.js +53 -0
- package/tests/unit/src/variants/LongFormGallery/helpers/separateImages.test.js +52 -0
- package/tests/unit/src/variants/LongFormGallery/helpers/shouldSkip.test.js +23 -0
- package/tests/unit/src/variants/LongFormGallery/useLongformGallery.test.js +36 -0
- package/tests/unit/src/variants/ThumbnailCarousel/ThumbnailCarousel.test.js +29 -0
- package/tests/unit/src/variants/ThumbnailCarousel/ThumbnailImage.test.js +45 -0
- package/tests/unit/src/variants/ThumbnailCarousel/__snapshots__/ThumbnailCarousel.test.js.snap +71 -0
- package/tests/unit/src/variants/ThumbnailCarousel/__snapshots__/ThumbnailImage.test.js.snap +19 -0
- package/tests/unit/src/variants/ThumbnailCarousel/mocks.js +64 -0
|
@@ -12,24 +12,28 @@ exports[`ListPagination component should render pagination items based on curren
|
|
|
12
12
|
class="pagination"
|
|
13
13
|
>
|
|
14
14
|
<a
|
|
15
|
+
aria-label="Previous page"
|
|
15
16
|
class="pagination_page-previous"
|
|
16
17
|
href="?pb%5Blist%5D%5Bpage%5D=3"
|
|
17
18
|
>
|
|
18
|
-
Previous
|
|
19
|
+
Previous page
|
|
19
20
|
</a>
|
|
20
21
|
<a
|
|
22
|
+
aria-label="Page 1"
|
|
21
23
|
class="pagination_page-item"
|
|
22
24
|
href="?pb%5Blist%5D%5Bpage%5D=1"
|
|
23
25
|
>
|
|
24
26
|
1
|
|
25
27
|
</a>
|
|
26
28
|
<a
|
|
29
|
+
aria-label="Page 2"
|
|
27
30
|
class="pagination_page-item"
|
|
28
31
|
href="?pb%5Blist%5D%5Bpage%5D=2"
|
|
29
32
|
>
|
|
30
33
|
2
|
|
31
34
|
</a>
|
|
32
35
|
<a
|
|
36
|
+
aria-label="Page 3"
|
|
33
37
|
class="pagination_page-item"
|
|
34
38
|
href="?pb%5Blist%5D%5Bpage%5D=3"
|
|
35
39
|
>
|
package/tests/unit/src/components/List/helpers/__snapshots__/build-pagination-items.test.js.snap
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
exports[`buildPaginationItems helper function should render four pages second selected with onclick passed 1`] = `
|
|
4
4
|
Array [
|
|
5
5
|
<BlazeLink
|
|
6
|
+
ariaLabel="Page 1"
|
|
6
7
|
as=""
|
|
7
8
|
className="pagination_page-item"
|
|
8
9
|
gtmId=""
|
|
@@ -21,6 +22,7 @@ Array [
|
|
|
21
22
|
2
|
|
22
23
|
</span>,
|
|
23
24
|
<BlazeLink
|
|
25
|
+
ariaLabel="Page 3"
|
|
24
26
|
as=""
|
|
25
27
|
className="pagination_page-item"
|
|
26
28
|
gtmId=""
|
|
@@ -34,6 +36,7 @@ Array [
|
|
|
34
36
|
3
|
|
35
37
|
</BlazeLink>,
|
|
36
38
|
<BlazeLink
|
|
39
|
+
ariaLabel="Page 4"
|
|
37
40
|
as=""
|
|
38
41
|
className="pagination_page-item"
|
|
39
42
|
gtmId=""
|
|
@@ -52,6 +55,7 @@ Array [
|
|
|
52
55
|
exports[`buildPaginationItems helper function should render ten page fith selected 1`] = `
|
|
53
56
|
Array [
|
|
54
57
|
<BlazeLink
|
|
58
|
+
ariaLabel="Page 1"
|
|
55
59
|
as=""
|
|
56
60
|
className="pagination_page-item"
|
|
57
61
|
gtmId=""
|
|
@@ -65,6 +69,7 @@ Array [
|
|
|
65
69
|
1
|
|
66
70
|
</BlazeLink>,
|
|
67
71
|
<BlazeLink
|
|
72
|
+
ariaLabel="Page 2"
|
|
68
73
|
as=""
|
|
69
74
|
className="pagination_page-item"
|
|
70
75
|
gtmId=""
|
|
@@ -78,6 +83,7 @@ Array [
|
|
|
78
83
|
2
|
|
79
84
|
</BlazeLink>,
|
|
80
85
|
<BlazeLink
|
|
86
|
+
ariaLabel="Page 3"
|
|
81
87
|
as=""
|
|
82
88
|
className="pagination_page-item"
|
|
83
89
|
gtmId=""
|
|
@@ -91,6 +97,7 @@ Array [
|
|
|
91
97
|
3
|
|
92
98
|
</BlazeLink>,
|
|
93
99
|
<BlazeLink
|
|
100
|
+
ariaLabel="Page 4"
|
|
94
101
|
as=""
|
|
95
102
|
className="pagination_page-item"
|
|
96
103
|
gtmId=""
|
|
@@ -109,6 +116,7 @@ Array [
|
|
|
109
116
|
5
|
|
110
117
|
</span>,
|
|
111
118
|
<BlazeLink
|
|
119
|
+
ariaLabel="Page 6"
|
|
112
120
|
as=""
|
|
113
121
|
className="pagination_page-item"
|
|
114
122
|
gtmId=""
|
|
@@ -122,6 +130,7 @@ Array [
|
|
|
122
130
|
6
|
|
123
131
|
</BlazeLink>,
|
|
124
132
|
<BlazeLink
|
|
133
|
+
ariaLabel="Page 7"
|
|
125
134
|
as=""
|
|
126
135
|
className="pagination_page-item"
|
|
127
136
|
gtmId=""
|
|
@@ -135,6 +144,7 @@ Array [
|
|
|
135
144
|
7
|
|
136
145
|
</BlazeLink>,
|
|
137
146
|
<BlazeLink
|
|
147
|
+
ariaLabel="Page 8"
|
|
138
148
|
as=""
|
|
139
149
|
className="pagination_page-item"
|
|
140
150
|
gtmId=""
|
|
@@ -148,6 +158,7 @@ Array [
|
|
|
148
158
|
8
|
|
149
159
|
</BlazeLink>,
|
|
150
160
|
<BlazeLink
|
|
161
|
+
ariaLabel="Page 9"
|
|
151
162
|
as=""
|
|
152
163
|
className="pagination_page-item"
|
|
153
164
|
gtmId=""
|
|
@@ -161,6 +172,7 @@ Array [
|
|
|
161
172
|
9
|
|
162
173
|
</BlazeLink>,
|
|
163
174
|
<BlazeLink
|
|
175
|
+
ariaLabel="Page 10"
|
|
164
176
|
as=""
|
|
165
177
|
className="pagination_page-item"
|
|
166
178
|
gtmId=""
|
|
@@ -179,6 +191,7 @@ Array [
|
|
|
179
191
|
exports[`buildPaginationItems helper function should rrender twenty pages either selected 1`] = `
|
|
180
192
|
Array [
|
|
181
193
|
<BlazeLink
|
|
194
|
+
ariaLabel="Page 4"
|
|
182
195
|
as=""
|
|
183
196
|
className="pagination_page-item"
|
|
184
197
|
gtmId=""
|
|
@@ -192,6 +205,7 @@ Array [
|
|
|
192
205
|
4
|
|
193
206
|
</BlazeLink>,
|
|
194
207
|
<BlazeLink
|
|
208
|
+
ariaLabel="Page 5"
|
|
195
209
|
as=""
|
|
196
210
|
className="pagination_page-item"
|
|
197
211
|
gtmId=""
|
|
@@ -205,6 +219,7 @@ Array [
|
|
|
205
219
|
5
|
|
206
220
|
</BlazeLink>,
|
|
207
221
|
<BlazeLink
|
|
222
|
+
ariaLabel="Page 6"
|
|
208
223
|
as=""
|
|
209
224
|
className="pagination_page-item"
|
|
210
225
|
gtmId=""
|
|
@@ -218,6 +233,7 @@ Array [
|
|
|
218
233
|
6
|
|
219
234
|
</BlazeLink>,
|
|
220
235
|
<BlazeLink
|
|
236
|
+
ariaLabel="Page 7"
|
|
221
237
|
as=""
|
|
222
238
|
className="pagination_page-item"
|
|
223
239
|
gtmId=""
|
|
@@ -236,6 +252,7 @@ Array [
|
|
|
236
252
|
8
|
|
237
253
|
</span>,
|
|
238
254
|
<BlazeLink
|
|
255
|
+
ariaLabel="Page 9"
|
|
239
256
|
as=""
|
|
240
257
|
className="pagination_page-item"
|
|
241
258
|
gtmId=""
|
|
@@ -249,6 +266,7 @@ Array [
|
|
|
249
266
|
9
|
|
250
267
|
</BlazeLink>,
|
|
251
268
|
<BlazeLink
|
|
269
|
+
ariaLabel="Page 10"
|
|
252
270
|
as=""
|
|
253
271
|
className="pagination_page-item"
|
|
254
272
|
gtmId=""
|
|
@@ -262,6 +280,7 @@ Array [
|
|
|
262
280
|
10
|
|
263
281
|
</BlazeLink>,
|
|
264
282
|
<BlazeLink
|
|
283
|
+
ariaLabel="Page 11"
|
|
265
284
|
as=""
|
|
266
285
|
className="pagination_page-item"
|
|
267
286
|
gtmId=""
|
|
@@ -275,6 +294,7 @@ Array [
|
|
|
275
294
|
11
|
|
276
295
|
</BlazeLink>,
|
|
277
296
|
<BlazeLink
|
|
297
|
+
ariaLabel="Page 12"
|
|
278
298
|
as=""
|
|
279
299
|
className="pagination_page-item"
|
|
280
300
|
gtmId=""
|
|
@@ -288,6 +308,7 @@ Array [
|
|
|
288
308
|
12
|
|
289
309
|
</BlazeLink>,
|
|
290
310
|
<BlazeLink
|
|
311
|
+
ariaLabel="Page 13"
|
|
291
312
|
as=""
|
|
292
313
|
className="pagination_page-item"
|
|
293
314
|
gtmId=""
|
|
@@ -7,7 +7,8 @@ exports[`Select component should display label as placeholder with no label tag
|
|
|
7
7
|
>
|
|
8
8
|
<select
|
|
9
9
|
data-testid="filter-name"
|
|
10
|
-
id="name"
|
|
10
|
+
id="select-filter-name"
|
|
11
|
+
name="filter-name"
|
|
11
12
|
>
|
|
12
13
|
<option>
|
|
13
14
|
Placeholder label
|
|
@@ -36,13 +37,14 @@ exports[`Select component should render witout throwing an error and match snaps
|
|
|
36
37
|
>
|
|
37
38
|
<label
|
|
38
39
|
class=""
|
|
39
|
-
for="name"
|
|
40
|
+
for="select-filter-name"
|
|
40
41
|
>
|
|
41
42
|
name
|
|
42
43
|
</label>
|
|
43
44
|
<select
|
|
44
45
|
data-testid="filter-name"
|
|
45
|
-
id="name"
|
|
46
|
+
id="select-filter-name"
|
|
47
|
+
name="filter-name"
|
|
46
48
|
>
|
|
47
49
|
<option>
|
|
48
50
|
Any
|
|
@@ -6,11 +6,11 @@ exports[`SFItem component should match snapshot and render without throwing an e
|
|
|
6
6
|
class="social__list-item social__list-item--follow"
|
|
7
7
|
>
|
|
8
8
|
<a
|
|
9
|
+
aria-label="Facebook"
|
|
9
10
|
class="facebook"
|
|
10
|
-
href="www.facebook.com"
|
|
11
|
+
href="http://www.facebook.com"
|
|
11
12
|
rel="noopener nofollow"
|
|
12
13
|
target="_blank"
|
|
13
|
-
title="Facebook"
|
|
14
14
|
>
|
|
15
15
|
<i>
|
|
16
16
|
<svg
|
|
@@ -12,11 +12,9 @@ exports[`SocialFollow component should render without throwing an error and matc
|
|
|
12
12
|
class="social__list-item social__list-item--follow"
|
|
13
13
|
>
|
|
14
14
|
<a
|
|
15
|
+
aria-label="Facebook"
|
|
15
16
|
class="facebook"
|
|
16
17
|
href="facebook value"
|
|
17
|
-
rel="noopener nofollow"
|
|
18
|
-
target="_blank"
|
|
19
|
-
title="Facebook"
|
|
20
18
|
>
|
|
21
19
|
<i>
|
|
22
20
|
<svg
|
|
@@ -44,11 +42,9 @@ exports[`SocialFollow component should render without throwing an error and matc
|
|
|
44
42
|
class="social__list-item social__list-item--follow"
|
|
45
43
|
>
|
|
46
44
|
<a
|
|
45
|
+
aria-label="Twitter"
|
|
47
46
|
class="twitter"
|
|
48
47
|
href="twitter value"
|
|
49
|
-
rel="noopener nofollow"
|
|
50
|
-
target="_blank"
|
|
51
|
-
title="Twitter"
|
|
52
48
|
>
|
|
53
49
|
<i>
|
|
54
50
|
<svg
|
|
@@ -12,6 +12,7 @@ exports[`TextBlock component With wrapper flag should render with wrapper and le
|
|
|
12
12
|
</h1>
|
|
13
13
|
|
|
14
14
|
<a
|
|
15
|
+
aria-label="link"
|
|
15
16
|
href="/"
|
|
16
17
|
>
|
|
17
18
|
link
|
|
@@ -34,6 +35,7 @@ exports[`TextBlock component With wrapper flag should render with wrapper and le
|
|
|
34
35
|
</h1>
|
|
35
36
|
|
|
36
37
|
<a
|
|
38
|
+
aria-label="link"
|
|
37
39
|
href="/"
|
|
38
40
|
>
|
|
39
41
|
link
|
|
@@ -56,6 +58,7 @@ exports[`TextBlock component should match snapshot 1`] = `
|
|
|
56
58
|
</h1>
|
|
57
59
|
|
|
58
60
|
<a
|
|
61
|
+
aria-label="link"
|
|
59
62
|
href="/"
|
|
60
63
|
>
|
|
61
64
|
link
|
|
@@ -75,6 +78,7 @@ exports[`TextBlock component should not render wrapper if no modifier 1`] = `
|
|
|
75
78
|
</h1>
|
|
76
79
|
|
|
77
80
|
<a
|
|
81
|
+
aria-label="link"
|
|
78
82
|
href="/"
|
|
79
83
|
>
|
|
80
84
|
link
|
|
@@ -3,159 +3,162 @@
|
|
|
3
3
|
exports[`Default provider component should render without throwing error and match snapshot 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="
|
|
7
|
-
role="region"
|
|
8
|
-
style="padding-top: 56.25%;"
|
|
9
|
-
tabindex="-1"
|
|
6
|
+
class="video__wrapper"
|
|
10
7
|
>
|
|
11
|
-
<video
|
|
12
|
-
class="video-react-video"
|
|
13
|
-
preload="none"
|
|
14
|
-
tabindex="-1"
|
|
15
|
-
>
|
|
16
|
-
<source
|
|
17
|
-
src="http://media.w3.org/2010/05/bunny/movie.mp4"
|
|
18
|
-
type="video/mp4"
|
|
19
|
-
/>
|
|
20
|
-
</video>
|
|
21
8
|
<div
|
|
22
|
-
class="video-react-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class="video-react-big-play-button video-react-big-play-button-left big-play-button-hide"
|
|
27
|
-
tabindex="0"
|
|
28
|
-
type="button"
|
|
9
|
+
class="video-react-controls-enabled video-react-paused video-react-fluid video-react-user-active video-react-workinghover video-react mocked-modifier"
|
|
10
|
+
role="region"
|
|
11
|
+
style="padding-top: 56.25%;"
|
|
12
|
+
tabindex="-1"
|
|
29
13
|
>
|
|
30
|
-
<
|
|
31
|
-
class="video-react-
|
|
14
|
+
<video
|
|
15
|
+
class="video-react-video"
|
|
16
|
+
preload="none"
|
|
17
|
+
tabindex="-1"
|
|
32
18
|
>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
19
|
+
<source
|
|
20
|
+
src="http://media.w3.org/2010/05/bunny/movie.mp4"
|
|
21
|
+
/>
|
|
22
|
+
</video>
|
|
23
|
+
<div
|
|
24
|
+
class="video-react-loading-spinner"
|
|
25
|
+
/>
|
|
39
26
|
<button
|
|
40
|
-
|
|
27
|
+
aria-live="polite"
|
|
28
|
+
class="video-react-big-play-button video-react-big-play-button-left big-play-button-hide"
|
|
41
29
|
tabindex="0"
|
|
42
30
|
type="button"
|
|
43
31
|
>
|
|
44
32
|
<span
|
|
45
33
|
class="video-react-control-text"
|
|
46
34
|
>
|
|
47
|
-
Play
|
|
35
|
+
Play Video
|
|
48
36
|
</span>
|
|
49
37
|
</button>
|
|
50
38
|
<div
|
|
51
|
-
class="video-react-
|
|
52
|
-
role="button"
|
|
53
|
-
tabindex="0"
|
|
39
|
+
class="video-react-control-bar video-react-control-bar-auto-hide"
|
|
54
40
|
>
|
|
41
|
+
<button
|
|
42
|
+
class="video-react-play-control video-react-control video-react-button video-react-paused"
|
|
43
|
+
tabindex="0"
|
|
44
|
+
type="button"
|
|
45
|
+
>
|
|
46
|
+
<span
|
|
47
|
+
class="video-react-control-text"
|
|
48
|
+
>
|
|
49
|
+
Play
|
|
50
|
+
</span>
|
|
51
|
+
</button>
|
|
55
52
|
<div
|
|
56
|
-
class="video-react-menu"
|
|
53
|
+
class="video-react-volume-menu-button-horizontal video-react-vol-3 video-react-volume-menu-button video-react-menu-button-inline video-react-control video-react-button video-react-menu-button"
|
|
54
|
+
role="button"
|
|
55
|
+
tabindex="0"
|
|
57
56
|
>
|
|
58
57
|
<div
|
|
59
|
-
class="video-react-menu
|
|
58
|
+
class="video-react-menu"
|
|
60
59
|
>
|
|
61
60
|
<div
|
|
62
|
-
|
|
63
|
-
aria-valuemax="100"
|
|
64
|
-
aria-valuemin="0"
|
|
65
|
-
aria-valuenow="100.00"
|
|
66
|
-
aria-valuetext="100.00%"
|
|
67
|
-
class="video-react-volume-bar video-react-slider-bar video-react-slider-horizontal video-react-slider"
|
|
68
|
-
role="slider"
|
|
69
|
-
tabindex="0"
|
|
61
|
+
class="video-react-menu-content"
|
|
70
62
|
>
|
|
71
63
|
<div
|
|
72
|
-
|
|
73
|
-
|
|
64
|
+
aria-label="volume level"
|
|
65
|
+
aria-valuemax="100"
|
|
66
|
+
aria-valuemin="0"
|
|
67
|
+
aria-valuenow="100.00"
|
|
68
|
+
aria-valuetext="100.00%"
|
|
69
|
+
class="video-react-volume-bar video-react-slider-bar video-react-slider-horizontal video-react-slider"
|
|
70
|
+
role="slider"
|
|
71
|
+
tabindex="0"
|
|
74
72
|
>
|
|
75
|
-
<
|
|
76
|
-
class="video-react-
|
|
77
|
-
|
|
73
|
+
<div
|
|
74
|
+
class="video-react-volume-level"
|
|
75
|
+
style="width: 100.00%;"
|
|
76
|
+
>
|
|
77
|
+
<span
|
|
78
|
+
class="video-react-control-text"
|
|
79
|
+
/>
|
|
80
|
+
</div>
|
|
78
81
|
</div>
|
|
79
82
|
</div>
|
|
80
83
|
</div>
|
|
81
84
|
</div>
|
|
82
|
-
</div>
|
|
83
|
-
<div
|
|
84
|
-
class="video-react-current-time video-react-time-control video-react-control"
|
|
85
|
-
>
|
|
86
85
|
<div
|
|
87
|
-
|
|
88
|
-
class="video-react-current-time-display"
|
|
86
|
+
class="video-react-current-time video-react-time-control video-react-control"
|
|
89
87
|
>
|
|
90
|
-
<
|
|
91
|
-
|
|
88
|
+
<div
|
|
89
|
+
aria-live="off"
|
|
90
|
+
class="video-react-current-time-display"
|
|
92
91
|
>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
dir="ltr"
|
|
101
|
-
>
|
|
102
|
-
<div>
|
|
103
|
-
<span>
|
|
104
|
-
/
|
|
105
|
-
</span>
|
|
92
|
+
<span
|
|
93
|
+
class="video-react-control-text"
|
|
94
|
+
>
|
|
95
|
+
Current Time
|
|
96
|
+
</span>
|
|
97
|
+
0:00
|
|
98
|
+
</div>
|
|
106
99
|
</div>
|
|
107
|
-
</div>
|
|
108
|
-
<div
|
|
109
|
-
class="video-react-duration video-react-time-control video-react-control"
|
|
110
|
-
>
|
|
111
100
|
<div
|
|
112
|
-
|
|
113
|
-
|
|
101
|
+
class="video-react-time-control video-react-time-divider"
|
|
102
|
+
dir="ltr"
|
|
114
103
|
>
|
|
115
|
-
<
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
</
|
|
120
|
-
0:00
|
|
104
|
+
<div>
|
|
105
|
+
<span>
|
|
106
|
+
/
|
|
107
|
+
</span>
|
|
108
|
+
</div>
|
|
121
109
|
</div>
|
|
122
|
-
</div>
|
|
123
|
-
<div
|
|
124
|
-
class="video-react-progress-control video-react-control"
|
|
125
|
-
>
|
|
126
110
|
<div
|
|
127
|
-
|
|
128
|
-
aria-valuemax="100"
|
|
129
|
-
aria-valuemin="0"
|
|
130
|
-
aria-valuenow="NaN"
|
|
131
|
-
aria-valuetext="0:00"
|
|
132
|
-
class="video-react-progress-holder video-react-slider-horizontal video-react-slider"
|
|
133
|
-
role="slider"
|
|
134
|
-
tabindex="0"
|
|
111
|
+
class="video-react-duration video-react-time-control video-react-control"
|
|
135
112
|
>
|
|
136
113
|
<div
|
|
137
|
-
|
|
138
|
-
|
|
114
|
+
aria-live="off"
|
|
115
|
+
class="video-react-duration-display"
|
|
139
116
|
>
|
|
140
117
|
<span
|
|
141
118
|
class="video-react-control-text"
|
|
142
119
|
>
|
|
143
|
-
|
|
120
|
+
Duration Time
|
|
144
121
|
</span>
|
|
122
|
+
0:00
|
|
145
123
|
</div>
|
|
146
124
|
</div>
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
class="video-react-icon-fullscreen video-react-fullscreen-control video-react-control video-react-button video-react-icon"
|
|
150
|
-
tabindex="0"
|
|
151
|
-
type="button"
|
|
152
|
-
>
|
|
153
|
-
<span
|
|
154
|
-
class="video-react-control-text"
|
|
125
|
+
<div
|
|
126
|
+
class="video-react-progress-control video-react-control"
|
|
155
127
|
>
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
128
|
+
<div
|
|
129
|
+
aria-label="video progress bar"
|
|
130
|
+
aria-valuemax="100"
|
|
131
|
+
aria-valuemin="0"
|
|
132
|
+
aria-valuenow="NaN"
|
|
133
|
+
aria-valuetext="0:00"
|
|
134
|
+
class="video-react-progress-holder video-react-slider-horizontal video-react-slider"
|
|
135
|
+
role="slider"
|
|
136
|
+
tabindex="0"
|
|
137
|
+
>
|
|
138
|
+
<div
|
|
139
|
+
class="video-react-play-progress video-react-slider-bar"
|
|
140
|
+
data-current-time="0:00"
|
|
141
|
+
>
|
|
142
|
+
<span
|
|
143
|
+
class="video-react-control-text"
|
|
144
|
+
>
|
|
145
|
+
Progress: NaN%
|
|
146
|
+
</span>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
<button
|
|
151
|
+
class="video-react-icon-fullscreen video-react-fullscreen-control video-react-control video-react-button video-react-icon"
|
|
152
|
+
tabindex="0"
|
|
153
|
+
type="button"
|
|
154
|
+
>
|
|
155
|
+
<span
|
|
156
|
+
class="video-react-control-text"
|
|
157
|
+
>
|
|
158
|
+
Non-Fullscreen
|
|
159
|
+
</span>
|
|
160
|
+
</button>
|
|
161
|
+
</div>
|
|
159
162
|
</div>
|
|
160
163
|
</div>
|
|
161
164
|
</DocumentFragment>
|
|
@@ -24,6 +24,8 @@ describe('Parse textBlock', () => {
|
|
|
24
24
|
|
|
25
25
|
test('it should include a link tag', () => {
|
|
26
26
|
const { container } = render(expectedMarkup);
|
|
27
|
-
expect(container).toContainHTML(
|
|
27
|
+
expect(container).toContainHTML(
|
|
28
|
+
'<div><p>lorem ipsum <a aria-label="link" href="/">link</a></p></div>'
|
|
29
|
+
);
|
|
28
30
|
});
|
|
29
31
|
});
|
|
@@ -33,9 +33,14 @@ describe('variantHandler function', () => {
|
|
|
33
33
|
expect(entries.length).toEqual(2);
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
it('should
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
);
|
|
36
|
+
it('should call console.warn error if we try to add an object that has already been added', () => {
|
|
37
|
+
const { warn } = console;
|
|
38
|
+
// eslint-disable-next-line no-console
|
|
39
|
+
console.warn = jest.fn();
|
|
40
|
+
variantHandler.add('RandomVariant', () => <div />);
|
|
41
|
+
// eslint-disable-next-line no-console
|
|
42
|
+
expect(console.warn).toHaveBeenCalledWith('Variant already exists: RandomVariant');
|
|
43
|
+
// eslint-disable-next-line no-console
|
|
44
|
+
console.warn = warn;
|
|
40
45
|
});
|
|
41
46
|
});
|