@blaze-cms/react-page-builder 0.146.0-node18-core-styles-tooltips.38 → 0.146.0-node18-tooltips.32

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.
Files changed (181) hide show
  1. package/CHANGELOG.md +36 -98
  2. package/lib/BannerContext/index.js +2 -1
  3. package/lib/BannerContext/index.js.map +1 -1
  4. package/lib/HOC/withInfiniteScroll.js +2 -1
  5. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  6. package/lib/HOC/withTitle.js +2 -1
  7. package/lib/HOC/withTitle.js.map +1 -1
  8. package/lib/application/query/index.js +8 -8
  9. package/lib/application/query/index.js.map +1 -1
  10. package/lib/components/BackToTop/BackToTop.js +2 -1
  11. package/lib/components/BackToTop/BackToTop.js.map +1 -1
  12. package/lib/components/Banner/AdSlotRender.js +2 -1
  13. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  14. package/lib/components/Banner/Banner.js +2 -1
  15. package/lib/components/Banner/Banner.js.map +1 -1
  16. package/lib/components/Banner/index.js +2 -1
  17. package/lib/components/Banner/index.js.map +1 -1
  18. package/lib/components/BlazeLink.js +2 -1
  19. package/lib/components/BlazeLink.js.map +1 -1
  20. package/lib/components/Breadcrumb/Breadcrumb.js +2 -1
  21. package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
  22. package/lib/components/Button.js +2 -1
  23. package/lib/components/Button.js.map +1 -1
  24. package/lib/components/Card/Card.js +2 -1
  25. package/lib/components/Card/Card.js.map +1 -1
  26. package/lib/components/Card/CardsContainer.js +2 -1
  27. package/lib/components/Card/CardsContainer.js.map +1 -1
  28. package/lib/components/Card/CardsRender.js +2 -1
  29. package/lib/components/Card/CardsRender.js.map +1 -1
  30. package/lib/components/CarouselWrapper/DefaultCarousel.js +2 -1
  31. package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  32. package/lib/components/ClickWrapper.js +2 -1
  33. package/lib/components/ClickWrapper.js.map +1 -1
  34. package/lib/components/Code/Code.js +2 -1
  35. package/lib/components/Code/Code.js.map +1 -1
  36. package/lib/components/Code/ScriptTag.js +2 -1
  37. package/lib/components/Code/ScriptTag.js.map +1 -1
  38. package/lib/components/ContentGroup/ContentGroup.js +2 -1
  39. package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
  40. package/lib/components/ContentGroup/ContentGroupAccordion.js +2 -1
  41. package/lib/components/ContentGroup/ContentGroupAccordion.js.map +1 -1
  42. package/lib/components/ContentGroup/ContentGroupTabs.js +2 -1
  43. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  44. package/lib/components/DataSummary/DataSummaryFactory.js +2 -1
  45. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  46. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +2 -1
  47. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  48. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +2 -1
  49. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  50. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +2 -1
  51. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  52. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +2 -1
  53. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  54. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +2 -1
  55. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  56. package/lib/components/DataSummary/DataSummaryTypes/index.js +2 -1
  57. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  58. package/lib/components/EmailConfirm/EmailConfirm.js +2 -1
  59. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  60. package/lib/components/ErrorMessage/index.js +2 -1
  61. package/lib/components/ErrorMessage/index.js.map +1 -1
  62. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +2 -1
  63. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  64. package/lib/components/Image/GlobalLightbox/index.js +2 -1
  65. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  66. package/lib/components/Image/Image.js +2 -1
  67. package/lib/components/Image/Image.js.map +1 -1
  68. package/lib/components/Image/ImageFactory.js +2 -1
  69. package/lib/components/Image/ImageFactory.js.map +1 -1
  70. package/lib/components/Image/Lightbox/Lightbox.js +2 -1
  71. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  72. package/lib/components/ItemList/ItemListButton/ItemListButton.js +2 -1
  73. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  74. package/lib/components/Layout/LayoutFactory.js +2 -1
  75. package/lib/components/Layout/LayoutFactory.js.map +1 -1
  76. package/lib/components/Layout/LayoutWithStickyTimer.js +2 -1
  77. package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  78. package/lib/components/LazyImage/index.js +2 -1
  79. package/lib/components/LazyImage/index.js.map +1 -1
  80. package/lib/components/List/ListFactory.js +2 -1
  81. package/lib/components/List/ListFactory.js.map +1 -1
  82. package/lib/components/List/ListRender.js +2 -1
  83. package/lib/components/List/ListRender.js.map +1 -1
  84. package/lib/components/List/components/Cards/CardsRender.js +2 -1
  85. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  86. package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -1
  87. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  88. package/lib/components/List/components/Full/FullRender.js +2 -1
  89. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  90. package/lib/components/List/components/Full/FullRenderItem.js +2 -1
  91. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  92. package/lib/components/List/components/Pagination/ListPagination.js +2 -1
  93. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  94. package/lib/components/Loading/index.js +2 -1
  95. package/lib/components/Loading/index.js.map +1 -1
  96. package/lib/components/Menu/Menu.js +3 -5
  97. package/lib/components/Menu/Menu.js.map +1 -1
  98. package/lib/components/Menu/MenuContext.js +1 -2
  99. package/lib/components/Menu/MenuContext.js.map +1 -1
  100. package/lib/components/MenuItem/MenuItemRender.js +14 -28
  101. package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
  102. package/lib/components/MenuItem/helpers/index.js +0 -14
  103. package/lib/components/MenuItem/helpers/index.js.map +1 -1
  104. package/lib/components/ModalAdapter/index.js +2 -1
  105. package/lib/components/ModalAdapter/index.js.map +1 -1
  106. package/lib/components/SearchContent/SearchContent.js +2 -1
  107. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  108. package/lib/components/SearchFilter/SearchFilter/FiltersList.js +2 -1
  109. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  110. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +2 -1
  111. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  112. package/lib/components/SearchFilter/SearchFilterContainer.js +2 -1
  113. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  114. package/lib/components/SearchFilter/components/Checkbox.js +2 -1
  115. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  116. package/lib/components/Video/VideoModal.js +2 -1
  117. package/lib/components/Video/VideoModal.js.map +1 -1
  118. package/lib/components/Video/VideoRender.js +2 -1
  119. package/lib/components/Video/VideoRender.js.map +1 -1
  120. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +2 -1
  121. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  122. package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -1
  123. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  124. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +2 -1
  125. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  126. package/lib/components/Video/providers/get-provider.js +2 -1
  127. package/lib/components/Video/providers/get-provider.js.map +1 -1
  128. package/lib/components/index.js +2 -1
  129. package/lib/components/index.js.map +1 -1
  130. package/lib/helpers/parse-TextBlock.js +2 -1
  131. package/lib/helpers/parse-TextBlock.js.map +1 -1
  132. package/lib/helpers/parse-props-to-display.js +2 -1
  133. package/lib/helpers/parse-props-to-display.js.map +1 -1
  134. package/lib/hooks/use-portal.js +2 -1
  135. package/lib/hooks/use-portal.js.map +1 -1
  136. package/lib/system-components/EditorMode/BlazeLogo.js +2 -1
  137. package/lib/system-components/EditorMode/BlazeLogo.js.map +1 -1
  138. package/lib/system-components/EditorMode/PbWrapper.js +2 -1
  139. package/lib/system-components/EditorMode/PbWrapper.js.map +1 -1
  140. package/lib/system-components/index.js +2 -1
  141. package/lib/system-components/index.js.map +1 -1
  142. package/lib/variants/Infographic/index.js +2 -1
  143. package/lib/variants/Infographic/index.js.map +1 -1
  144. package/lib/variants/LiveBlogList/LiveBlogList.js +2 -1
  145. package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -1
  146. package/lib/variants/LiveBlogList/index.js +2 -1
  147. package/lib/variants/LiveBlogList/index.js.map +1 -1
  148. package/lib/variants/LongformGallery/index.js +2 -1
  149. package/lib/variants/LongformGallery/index.js.map +1 -1
  150. package/lib/variants/SlideSummary/index.js +2 -1
  151. package/lib/variants/SlideSummary/index.js.map +1 -1
  152. package/lib/variants/ThumbnailCarousel/index.js +2 -1
  153. package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
  154. package/lib-es/components/Menu/Menu.js +1 -4
  155. package/lib-es/components/Menu/Menu.js.map +1 -1
  156. package/lib-es/components/Menu/MenuContext.js +1 -2
  157. package/lib-es/components/Menu/MenuContext.js.map +1 -1
  158. package/lib-es/components/MenuItem/MenuItemRender.js +11 -25
  159. package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -1
  160. package/lib-es/components/MenuItem/helpers/index.js +1 -3
  161. package/lib-es/components/MenuItem/helpers/index.js.map +1 -1
  162. package/package.json +10 -10
  163. package/src/components/Menu/Menu.js +1 -3
  164. package/src/components/Menu/MenuContext.js +1 -1
  165. package/src/components/MenuItem/MenuItemRender.js +12 -40
  166. package/src/components/MenuItem/helpers/index.js +1 -3
  167. package/tests/unit/src/components/MenuItem/MenuItem.test.js +0 -5
  168. package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +3 -11
  169. package/lib/components/MenuItem/helpers/has-active-child.js +0 -19
  170. package/lib/components/MenuItem/helpers/has-active-child.js.map +0 -1
  171. package/lib/components/MenuItem/helpers/isUrlPathMatch.js +0 -18
  172. package/lib/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
  173. package/lib-es/components/MenuItem/helpers/has-active-child.js +0 -5
  174. package/lib-es/components/MenuItem/helpers/has-active-child.js.map +0 -1
  175. package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js +0 -8
  176. package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
  177. package/src/components/MenuItem/helpers/has-active-child.js +0 -10
  178. package/src/components/MenuItem/helpers/isUrlPathMatch.js +0 -10
  179. package/tests/unit/src/components/MenuItem/helpers/constants.js +0 -73
  180. package/tests/unit/src/components/MenuItem/helpers/has-active-child.test.js +0 -35
  181. package/tests/unit/src/components/MenuItem/helpers/is-url-path-match.test.js +0 -53
package/CHANGELOG.md CHANGED
@@ -3,43 +3,43 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [0.146.0-node18-core-styles-tooltips.38](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.37...v0.146.0-node18-core-styles-tooltips.38) (2025-12-04)
6
+ # [0.146.0-node18-tooltips.32](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.31...v0.146.0-node18-tooltips.32) (2025-12-15)
7
7
 
8
- **Note:** Version bump only for package @blaze-cms/react-page-builder
9
8
 
9
+ ### Bug Fixes
10
10
 
11
+ * added handlebar prop validation ([#5014](https://github.com/thebyte9/blaze/issues/5014)) ([f949bc5](https://github.com/thebyte9/blaze/commit/f949bc5d949d9a33c7aef8485e1fe13f48e79d28))
12
+ * fixed lint on handlebar inject test ([#5018](https://github.com/thebyte9/blaze/issues/5018)) ([c57f06c](https://github.com/thebyte9/blaze/commit/c57f06c03b095dd4e5f0683d9fcf94a22d80c592))
11
13
 
12
14
 
13
15
 
14
- # [0.146.0-node18-core-styles-tooltips.34](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.33...v0.146.0-node18-core-styles-tooltips.34) (2025-11-27)
15
16
 
16
- **Note:** Version bump only for package @blaze-cms/react-page-builder
17
17
 
18
+ # [0.146.0-node18-tooltips.30](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.29...v0.146.0-node18-tooltips.30) (2025-11-17)
18
19
 
20
+ **Note:** Version bump only for package @blaze-cms/react-page-builder
19
21
 
20
22
 
21
23
 
22
- # [0.146.0-node18-core-styles-tooltips.32](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.31...v0.146.0-node18-core-styles-tooltips.32) (2025-11-26)
23
24
 
24
- **Note:** Version bump only for package @blaze-cms/react-page-builder
25
25
 
26
+ # [0.146.0-node18-tooltips.28](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.27...v0.146.0-node18-tooltips.28) (2025-11-10)
26
27
 
28
+ **Note:** Version bump only for package @blaze-cms/react-page-builder
27
29
 
28
30
 
29
31
 
30
- # [0.146.0-node18-core-styles-tooltips.31](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.30...v0.146.0-node18-core-styles-tooltips.31) (2025-11-26)
31
32
 
32
33
 
33
- ### Bug Fixes
34
+ # [0.146.0-node18-tooltips.27](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.26...v0.146.0-node18-tooltips.27) (2025-11-06)
34
35
 
35
- * added handlebar prop validation ([#5014](https://github.com/thebyte9/blaze/issues/5014)) ([f949bc5](https://github.com/thebyte9/blaze/commit/f949bc5d949d9a33c7aef8485e1fe13f48e79d28))
36
- * fixed lint on handlebar inject test ([#5018](https://github.com/thebyte9/blaze/issues/5018)) ([c57f06c](https://github.com/thebyte9/blaze/commit/c57f06c03b095dd4e5f0683d9fcf94a22d80c592))
36
+ **Note:** Version bump only for package @blaze-cms/react-page-builder
37
37
 
38
38
 
39
39
 
40
40
 
41
41
 
42
- # [0.146.0-node18-core-styles-tooltips.30](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.29...v0.146.0-node18-core-styles-tooltips.30) (2025-11-25)
42
+ # [0.146.0-node18-tooltips.26](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.25...v0.146.0-node18-tooltips.26) (2025-10-29)
43
43
 
44
44
  **Note:** Version bump only for package @blaze-cms/react-page-builder
45
45
 
@@ -47,66 +47,61 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
47
47
 
48
48
 
49
49
 
50
- # [0.146.0-node18-core-styles-tooltips.29](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.28...v0.146.0-node18-core-styles-tooltips.29) (2025-11-17)
51
-
52
- **Note:** Version bump only for package @blaze-cms/react-page-builder
53
-
54
-
50
+ # [0.146.0-node18-tooltips.24](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.23...v0.146.0-node18-tooltips.24) (2025-10-27)
55
51
 
56
52
 
53
+ ### Bug Fixes
57
54
 
58
- # [0.146.0-node18-core-styles-tooltips.27](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.26...v0.146.0-node18-core-styles-tooltips.27) (2025-11-13)
55
+ * fixed logo flicker highlight getting stuck and logo position when close to window top ([#4962](https://github.com/thebyte9/blaze/issues/4962)) ([051f843](https://github.com/thebyte9/blaze/commit/051f843d717a9648f5ca19dd531f20de8e1516c0))
59
56
 
60
- **Note:** Version bump only for package @blaze-cms/react-page-builder
61
57
 
62
58
 
63
59
 
64
60
 
61
+ # [0.146.0-node18-tooltips.23](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.22...v0.146.0-node18-tooltips.23) (2025-10-20)
65
62
 
66
- # [0.146.0-node18-core-styles-tooltips.26](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.25...v0.146.0-node18-core-styles-tooltips.26) (2025-11-12)
67
63
 
68
- **Note:** Version bump only for package @blaze-cms/react-page-builder
64
+ ### Bug Fixes
69
65
 
66
+ * content group variant should render passed props ([#4960](https://github.com/thebyte9/blaze/issues/4960)) ([6c947bb](https://github.com/thebyte9/blaze/commit/6c947bba61283b03185fb6a8865a96b55b8246a6))
70
67
 
71
68
 
72
69
 
73
70
 
74
- # [0.146.0-node18-core-styles-tooltips.25](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.24...v0.146.0-node18-core-styles-tooltips.25) (2025-11-07)
75
71
 
76
- **Note:** Version bump only for package @blaze-cms/react-page-builder
72
+ # [0.146.0-node18-tooltips.22](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.21...v0.146.0-node18-tooltips.22) (2025-10-17)
77
73
 
78
74
 
75
+ ### Bug Fixes
79
76
 
77
+ * remove anchor links when search filters are applied ([#4957](https://github.com/thebyte9/blaze/issues/4957)) ([a5d4148](https://github.com/thebyte9/blaze/commit/a5d4148d1c122db654fe015f4892359ab0f9963c))
80
78
 
81
79
 
82
- # [0.146.0-node18-core-styles-tooltips.24](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.23...v0.146.0-node18-core-styles-tooltips.24) (2025-11-03)
80
+ ### Features
83
81
 
84
- **Note:** Version bump only for package @blaze-cms/react-page-builder
82
+ * update @blaze-react/checkboxes to 0.8.0-alpha.106 ([#4874](https://github.com/thebyte9/blaze/issues/4874)) ([0877a34](https://github.com/thebyte9/blaze/commit/0877a341086ff50d9243e2e2fda05ab2716d949c))
85
83
 
86
84
 
87
85
 
88
86
 
89
87
 
90
- # [0.146.0-node18-core-styles-tooltips.23](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.22...v0.146.0-node18-core-styles-tooltips.23) (2025-10-27)
88
+ # [0.146.0-node18-tooltips.21](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.20...v0.146.0-node18-tooltips.21) (2025-10-14)
91
89
 
92
90
 
93
91
  ### Bug Fixes
94
92
 
95
- * fixed logo flicker highlight getting stuck and logo position when close to window top ([#4962](https://github.com/thebyte9/blaze/issues/4962)) ([051f843](https://github.com/thebyte9/blaze/commit/051f843d717a9648f5ca19dd531f20de8e1516c0))
93
+ * prevent search input from interfering with other inputs ([#4955](https://github.com/thebyte9/blaze/issues/4955)) ([78c6036](https://github.com/thebyte9/blaze/commit/78c6036c0040f07acfa71493bbbd73cdc4ad03b1))
96
94
 
97
95
 
98
96
 
99
97
 
100
98
 
101
- # [0.146.0-node18-core-styles-tooltips.22](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.21...v0.146.0-node18-core-styles-tooltips.22) (2025-10-20)
99
+ # [0.146.0-node18-tooltips.19](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.18...v0.146.0-node18-tooltips.19) (2025-10-10)
102
100
 
103
101
 
104
102
  ### Bug Fixes
105
103
 
106
- * content group variant should render passed props ([#4960](https://github.com/thebyte9/blaze/issues/4960)) ([6c947bb](https://github.com/thebyte9/blaze/commit/6c947bba61283b03185fb6a8865a96b55b8246a6))
107
104
  * editor mode icon flicker improvements ([#4949](https://github.com/thebyte9/blaze/issues/4949)) ([211c72d](https://github.com/thebyte9/blaze/commit/211c72d83dc1da87e9bdef8e2a816af9ae3e321c))
108
- * prevent search input from interfering with other inputs ([#4955](https://github.com/thebyte9/blaze/issues/4955)) ([78c6036](https://github.com/thebyte9/blaze/commit/78c6036c0040f07acfa71493bbbd73cdc4ad03b1))
109
- * remove anchor links when search filters are applied ([#4957](https://github.com/thebyte9/blaze/issues/4957)) ([a5d4148](https://github.com/thebyte9/blaze/commit/a5d4148d1c122db654fe015f4892359ab0f9963c))
110
105
  * reset input and results on click away ([#4930](https://github.com/thebyte9/blaze/issues/4930)) ([cebd271](https://github.com/thebyte9/blaze/commit/cebd271c09d0b32db5db52943888a342acd484d3))
111
106
 
112
107
 
@@ -114,13 +109,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
114
109
 
115
110
  * add accordion content group variant ([#4906](https://github.com/thebyte9/blaze/issues/4906)) ([879f4e4](https://github.com/thebyte9/blaze/commit/879f4e45e3d35de6ab8e739adb0739a94a5bbfb4))
116
111
  * enable accordion component to be marked up with FAQPage schema ([#4913](https://github.com/thebyte9/blaze/issues/4913)) ([6bf92fe](https://github.com/thebyte9/blaze/commit/6bf92fe870f47dc6069b12ce0d8b29abc9fee3d5))
117
- * update @blaze-react/checkboxes to 0.8.0-alpha.106 ([#4874](https://github.com/thebyte9/blaze/issues/4874)) ([0877a34](https://github.com/thebyte9/blaze/commit/0877a341086ff50d9243e2e2fda05ab2716d949c))
118
112
 
119
113
 
120
114
 
121
115
 
122
116
 
123
- # [0.146.0-node18-core-styles-tooltips.20](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.19...v0.146.0-node18-core-styles-tooltips.20) (2025-10-03)
117
+ # [0.146.0-node18-tooltips.13](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.12...v0.146.0-node18-tooltips.13) (2025-10-02)
124
118
 
125
119
 
126
120
  ### Bug Fixes
@@ -131,7 +125,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
131
125
 
132
126
 
133
127
 
134
- # [0.146.0-node18-core-styles-tooltips.19](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.18...v0.146.0-node18-core-styles-tooltips.19) (2025-10-01)
128
+ # [0.146.0-node18-tooltips.11](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.10...v0.146.0-node18-tooltips.11) (2025-10-01)
135
129
 
136
130
 
137
131
  ### Bug Fixes
@@ -143,7 +137,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
143
137
 
144
138
 
145
139
 
146
- # [0.146.0-node18-core-styles-tooltips.18](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.17...v0.146.0-node18-core-styles-tooltips.18) (2025-09-29)
140
+ # [0.146.0-node18-tooltips.8](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.7...v0.146.0-node18-tooltips.8) (2025-09-24)
147
141
 
148
142
 
149
143
  ### Bug Fixes
@@ -159,7 +153,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
159
153
 
160
154
 
161
155
 
162
- # [0.146.0-node18-core-styles-tooltips.15](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.14...v0.146.0-node18-core-styles-tooltips.15) (2025-09-23)
156
+ # [0.146.0-node18-tooltips.4](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.3...v0.146.0-node18-tooltips.4) (2025-09-22)
163
157
 
164
158
  **Note:** Version bump only for package @blaze-cms/react-page-builder
165
159
 
@@ -167,7 +161,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
167
161
 
168
162
 
169
163
 
170
- # [0.146.0-node18-core-styles-tooltips.13](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.12...v0.146.0-node18-core-styles-tooltips.13) (2025-09-15)
164
+ # [0.146.0-node18-tooltips.2](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.1...v0.146.0-node18-tooltips.2) (2025-09-17)
171
165
 
172
166
  **Note:** Version bump only for package @blaze-cms/react-page-builder
173
167
 
@@ -175,81 +169,25 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
175
169
 
176
170
 
177
171
 
178
- # [0.146.0-node18-core-styles-tooltips.12](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.11...v0.146.0-node18-core-styles-tooltips.12) (2025-08-27)
179
-
180
-
181
- ### Bug Fixes
182
-
183
- * add react import missing from editor mode components ([#4885](https://github.com/thebyte9/blaze/issues/4885)) ([bb6e3eb](https://github.com/thebyte9/blaze/commit/bb6e3eb238a0f0263ed13a32e5121f49d21b2add))
184
-
185
-
186
-
187
-
188
-
189
- # [0.146.0-node18-core-styles-tooltips.11](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.10...v0.146.0-node18-core-styles-tooltips.11) (2025-08-27)
190
-
191
-
192
- ### Features
193
-
194
- * add hook for search content component ([#4866](https://github.com/thebyte9/blaze/issues/4866)) ([2fe2fb9](https://github.com/thebyte9/blaze/commit/2fe2fb91a13199b2c7cabbd734c3b79f9c962cad))
195
- * add unit support to range filters ([fabc125](https://github.com/thebyte9/blaze/commit/fabc125355a4097c0fbe71e8419f207f93929926))
196
-
197
-
198
-
199
-
200
-
201
- # [0.146.0-node18-core-styles-tooltips.5](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.4...v0.146.0-node18-core-styles-tooltips.5) (2025-07-18)
202
-
203
- **Note:** Version bump only for package @blaze-cms/react-page-builder
204
-
205
-
206
-
207
-
208
-
209
- # [0.146.0-node18-core-styles-tooltips.4](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.3...v0.146.0-node18-core-styles-tooltips.4) (2025-07-10)
172
+ # [0.146.0-node18-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18-tooltips.0) (2025-09-09)
210
173
 
211
174
 
212
175
  ### Bug Fixes
213
176
 
214
177
  * add constant to avoid duplication ([07d6742](https://github.com/thebyte9/blaze/commit/07d6742f894ee8e063c17847fbb89559c23c5766))
215
- * respond to live blog item size changes for laze loaded image, live blog title and global light box fix ([#4730](https://github.com/thebyte9/blaze/issues/4730)) ([5dd38d8](https://github.com/thebyte9/blaze/commit/5dd38d8d9e5983c55d3053d440eb7ab618688920))
216
-
217
-
218
-
219
-
220
-
221
- # [0.146.0-node18-core-styles-tooltips.1](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.0...v0.146.0-node18-core-styles-tooltips.1) (2025-06-20)
222
-
223
-
224
- ### Features
225
-
226
- * added frontend links for editor mode ([#4801](https://github.com/thebyte9/blaze/issues/4801)) ([d5de370](https://github.com/thebyte9/blaze/commit/d5de370203abf467fcc3819d06c7375f4a6c1eb9))
227
-
228
-
229
-
230
-
231
-
232
- # [0.146.0-node18-core-styles-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18-core-styles-tooltips.0) (2025-06-18)
233
-
234
-
235
- ### Bug Fixes
236
-
237
- * menu setdisplaychildren logic ([#4629](https://github.com/thebyte9/blaze/issues/4629)) ([16c5c67](https://github.com/thebyte9/blaze/commit/16c5c674f4db1505131a8557d34f5349cf33fc42))
178
+ * add react import missing from editor mode components ([#4885](https://github.com/thebyte9/blaze/issues/4885)) ([bb6e3eb](https://github.com/thebyte9/blaze/commit/bb6e3eb238a0f0263ed13a32e5121f49d21b2add))
238
179
  * added space between image counter ([fe23887](https://github.com/thebyte9/blaze/commit/fe23887db201c8f8c4d3c2df6b0f84adac84df9f))
239
180
  * apply search filters even when shouldAddFilters is false ([ac82708](https://github.com/thebyte9/blaze/commit/ac827080df3001f4643a2d7a69b8f5502646cf77))
240
181
  * changed image lightbox counter ([3e22b68](https://github.com/thebyte9/blaze/commit/3e22b6817d60d2b4fd4beac713f864fdb5b6826e))
241
182
  * close menu item on url change ([#4669](https://github.com/thebyte9/blaze/issues/4669)) ([697750a](https://github.com/thebyte9/blaze/commit/697750ac771a5ea89702e990e23d6e78b1c45a67))
242
183
  * encode dynamic menu urls ([#4497](https://github.com/thebyte9/blaze/issues/4497)) ([43695a0](https://github.com/thebyte9/blaze/commit/43695a01408a85a5cd94704d9b78f36fd3fb509f))
243
184
  * exported necessary helpers from blaze react page builder ([#4466](https://github.com/thebyte9/blaze/issues/4466)) ([9a8d0db](https://github.com/thebyte9/blaze/commit/9a8d0db28dc0fbf7a2c93733fa1c7d61f293ac1b))
244
- * extended regex for #s in urls ([#4648](https://github.com/thebyte9/blaze/issues/4648)) ([089b19a](https://github.com/thebyte9/blaze/commit/089b19afaf503477429df3415fcd382e8b55745a))
245
185
  * fixed breaking tests, updated next to 14 ([fecb0e1](https://github.com/thebyte9/blaze/commit/fecb0e1d822bd69ebbaa084072a219f0fddd23f1))
246
186
  * fixed code smells ([95d874e](https://github.com/thebyte9/blaze/commit/95d874e7e392e8e39921c146c86987d515d090e5))
247
187
  * fixed more tests ([46a2fb9](https://github.com/thebyte9/blaze/commit/46a2fb9467f9f3c9cf320c9caf36c66503cc1f49))
248
188
  * fixed nan values on ranges ([#4582](https://github.com/thebyte9/blaze/issues/4582)) ([963ceec](https://github.com/thebyte9/blaze/commit/963ceec6b1eea027cb36b9358f7dee5e91e852ce))
249
189
  * fixed url change not reflecting on filters ([#4488](https://github.com/thebyte9/blaze/issues/4488)) ([0d6574f](https://github.com/thebyte9/blaze/commit/0d6574f5d5e698633c6032668cb8e1d914cf0342))
250
190
  * fixed url not being decoded when set on useEffect in SearchFilterContainer ([#4492](https://github.com/thebyte9/blaze/issues/4492)) ([64ba7a0](https://github.com/thebyte9/blaze/commit/64ba7a0260ee657561df5273fac3e537d6845db0))
251
- * fixed variable placing ([cbd733b](https://github.com/thebyte9/blaze/commit/cbd733b15bf9094bec7f2349267042fe22a54dac))
252
- * handle active url ([58be170](https://github.com/thebyte9/blaze/commit/58be170c8641abeb89e6b51dca9c5a75179c3dd7))
253
191
  * handle reseting filters and pagination with correct client scroll ([#4804](https://github.com/thebyte9/blaze/issues/4804)) ([8f098d9](https://github.com/thebyte9/blaze/commit/8f098d9240fe260911f399a54d91e235aa109b76))
254
192
  * improve filter and pagination scroll client side ([#4803](https://github.com/thebyte9/blaze/issues/4803)) ([b438755](https://github.com/thebyte9/blaze/commit/b4387551cb9fea3197c83db6b245ecd11a2dd64a))
255
193
  * lint errors in node 18 dev ([#4784](https://github.com/thebyte9/blaze/issues/4784)) ([5b102df](https://github.com/thebyte9/blaze/commit/5b102df10a77abc62aa94ffa476f1c2156c17947))
@@ -259,17 +197,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
259
197
  * permission should be returned when returnPermission=true ([#4775](https://github.com/thebyte9/blaze/issues/4775)) ([5f9f903](https://github.com/thebyte9/blaze/commit/5f9f90341c871d9dc76b035b7511e71cb7f964fe))
260
198
  * persist last selected filter ([#4526](https://github.com/thebyte9/blaze/issues/4526)) ([5b15b57](https://github.com/thebyte9/blaze/commit/5b15b57f5b008a6a9b71a0ea4d5a7bc75b1779a3))
261
199
  * remove limit from dynamic menu item check ([535e557](https://github.com/thebyte9/blaze/commit/535e5574817c3d4248419cf42961fdc27c28dd34))
262
- * remove limit from dynamic menu item check ([#4533](https://github.com/thebyte9/blaze/issues/4533)) ([2f9cba8](https://github.com/thebyte9/blaze/commit/2f9cba859223e0d2a81ce8bb816cfacbe7b474b6))
263
200
  * remove youtube origin api param as it breaks SSR ([#4538](https://github.com/thebyte9/blaze/issues/4538)) ([98f71c5](https://github.com/thebyte9/blaze/commit/98f71c501fa8f01f9187d3ab7807c8fc4eada3e6))
264
201
  * removed commented code ([5e93306](https://github.com/thebyte9/blaze/commit/5e933063ff0896dc67da0b33506231bc57427a40))
265
202
  * removed empty sapce ([461f486](https://github.com/thebyte9/blaze/commit/461f4868cf7a49208825851ff4dbc22a2c65974e))
266
203
  * resolving eslint warnings ([d4d1568](https://github.com/thebyte9/blaze/commit/d4d1568751c3f63a630bf396ff002c7fdc2532e8))
267
204
  * resolving eslint warnings ([a0fc18a](https://github.com/thebyte9/blaze/commit/a0fc18a4b4ef4f2f50edf2ae9fd24ab8fb4ef2bb))
205
+ * respond to live blog item size changes for laze loaded image, live blog title and global light box fix ([#4730](https://github.com/thebyte9/blaze/issues/4730)) ([5dd38d8](https://github.com/thebyte9/blaze/commit/5dd38d8d9e5983c55d3053d440eb7ab618688920))
268
206
  * set correct list limit ([#4714](https://github.com/thebyte9/blaze/issues/4714)) ([4b981a2](https://github.com/thebyte9/blaze/commit/4b981a29a19e78d1cbd72fa2ab1d867958e0bdee))
269
- * typo ([88018f9](https://github.com/thebyte9/blaze/commit/88018f96fe2559a981826acb67a60f5b02c94f04))
270
207
  * udpated yarn lock ([0cd4fa4](https://github.com/thebyte9/blaze/commit/0cd4fa4a185fca4b80b57e472badb771dd649ec2))
271
208
  * update content tab state using url instead of url and button click ([#4759](https://github.com/thebyte9/blaze/issues/4759)) ([f5beff6](https://github.com/thebyte9/blaze/commit/f5beff686c059fb4523e87b274da5d630285478e))
272
- * update snapshot ([f3e1029](https://github.com/thebyte9/blaze/commit/f3e1029d9eb713a3126f396966ad01516a6a6add))
273
209
  * updated jest dependences/setup ([6d6cba8](https://github.com/thebyte9/blaze/commit/6d6cba84b3c4ce4d4da7463098de19815a9fb7a6))
274
210
  * updated react-testing-library ([ec9a955](https://github.com/thebyte9/blaze/commit/ec9a955d8991989a8daf6910d084b2853f557647))
275
211
  * updated with dev ([90f545f](https://github.com/thebyte9/blaze/commit/90f545f1beabb35e26ba6fb2b45a7a0dfd072927))
@@ -283,10 +219,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
283
219
  ### Features
284
220
 
285
221
  * add Floating Side Button variant with MVP styling ([#4594](https://github.com/thebyte9/blaze/issues/4594)) ([effb843](https://github.com/thebyte9/blaze/commit/effb843fa9c226fbf07b3ad3dac359d81e164590))
222
+ * add hook for search content component ([#4866](https://github.com/thebyte9/blaze/issues/4866)) ([2fe2fb9](https://github.com/thebyte9/blaze/commit/2fe2fb91a13199b2c7cabbd734c3b79f9c962cad))
286
223
  * add list live variant ([#4727](https://github.com/thebyte9/blaze/issues/4727)) ([f482abf](https://github.com/thebyte9/blaze/commit/f482abfe03bf6db2d2d7eb462f8141ff80c1cc79))
287
224
  * add live property to content entities ([#4729](https://github.com/thebyte9/blaze/issues/4729)) ([8cdc5d6](https://github.com/thebyte9/blaze/commit/8cdc5d6b57945590ac97bd2da82c7ad74583c51d))
288
225
  * add tooltip support to parent select in DynamicRelation component ([#4603](https://github.com/thebyte9/blaze/issues/4603)) ([7767b5d](https://github.com/thebyte9/blaze/commit/7767b5dd7641d4b0c2477cffe6c0be8f9e8aa9dd))
226
+ * add unit support to range filters ([fabc125](https://github.com/thebyte9/blaze/commit/fabc125355a4097c0fbe71e8419f207f93929926))
289
227
  * add video component events for youtube and jwplayer ([7b4aa78](https://github.com/thebyte9/blaze/commit/7b4aa78dea3798d736b32aed13760cc67445780c))
228
+ * added frontend links for editor mode ([#4801](https://github.com/thebyte9/blaze/issues/4801)) ([d5de370](https://github.com/thebyte9/blaze/commit/d5de370203abf467fcc3819d06c7375f4a6c1eb9))
290
229
  * added Loading component ([#4469](https://github.com/thebyte9/blaze/issues/4469)) ([957f09b](https://github.com/thebyte9/blaze/commit/957f09bab84e2e08df879abf4eec17293d167e00))
291
230
  * allow customisation of refine search text ([#4489](https://github.com/thebyte9/blaze/issues/4489)) ([2082c4b](https://github.com/thebyte9/blaze/commit/2082c4b9322882cf779c9619d32ff44793324723))
292
231
  * dynamic menu items ([#4099](https://github.com/thebyte9/blaze/issues/4099)) ([c1e052b](https://github.com/thebyte9/blaze/commit/c1e052ba93218d4f603c697cf8b533d2d0befbf1))
@@ -294,7 +233,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
294
233
  * improve card click wrapper feature flag to make valid html ([#4495](https://github.com/thebyte9/blaze/issues/4495)) ([cc01f4d](https://github.com/thebyte9/blaze/commit/cc01f4dae15158c0896d48ed05cb32a64c8caa1b))
295
234
  * make editorview card placeholders dynamic ([#4722](https://github.com/thebyte9/blaze/issues/4722)) ([872be4a](https://github.com/thebyte9/blaze/commit/872be4ac9537fa8d52c705c4b120eec23a35afae))
296
235
  * move error message component to react page builder ([#4680](https://github.com/thebyte9/blaze/issues/4680)) ([5585514](https://github.com/thebyte9/blaze/commit/55855146a43300c702d7a8284828f592854950c7))
297
- * new preOpenMenu menu setting ([db23d0d](https://github.com/thebyte9/blaze/commit/db23d0d46a3bfe9db848ce5b52532c13e8ed5aa0))
298
236
  * update image-cdn-react package with fetchpolicy update ([#4564](https://github.com/thebyte9/blaze/issues/4564)) ([1b6b719](https://github.com/thebyte9/blaze/commit/1b6b71952dc63f90fdecde1c4214e59a3207d615))
299
237
  * updated react to 18 ([9335f84](https://github.com/thebyte9/blaze/commit/9335f8432b376494501abb9c3deef1ddaa9b35a8))
300
238
 
@@ -14,7 +14,8 @@ Object.defineProperty(exports, "__esModule", {
14
14
  exports.BannerContextProvider = exports.BannerContext = void 0;
15
15
  var _react = _interopRequireWildcard(require("react"));
16
16
  var _helpers = require("./helpers");
17
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
17
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
19
  var BannerContext = exports.BannerContext = /*#__PURE__*/(0, _react.createContext)({});
19
20
  var BannerContextProvider = exports.BannerContextProvider = function BannerContextProvider(_ref) {
20
21
  var children = _ref.children,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_helpers","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t2","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BannerContext","exports","createContext","BannerContextProvider","_ref","children","siblings","banners","pbOptions","bannerCounters","setInitialBannerCounters","bannerPositionCounter","counter","blockTracker","lastBlockType","createElement","Provider","value"],"sources":["../../src/BannerContext/index.js"],"sourcesContent":["import React, { createContext } from 'react';\nimport { setInitialBannerCounters } from './helpers';\n\nconst BannerContext = createContext({});\n\nconst BannerContextProvider = ({ children, siblings, banners, pbOptions }) => {\n const bannerCounters = setInitialBannerCounters(banners);\n const bannerPositionCounter = { counter: 0 };\n const blockTracker = { lastBlockType: null };\n\n return (\n <BannerContext.Provider\n value={{\n banners,\n bannerCounters,\n bannerPositionCounter,\n siblings,\n pbOptions,\n blockTracker\n }}>\n {children}\n </BannerContext.Provider>\n );\n};\n\nexport { BannerContext, BannerContextProvider };\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAAqD,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,wBAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL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AG;IAAEC,aAAa,EAAE;EAAK,CAAC;EAE5C,oBACEtC,MAAA,YAAAuC,aAAA,CAACf,aAAa,CAACgB,QAAQ;IACrBC,KAAK,EAAE;MACLV,OAAO,EAAPA,OAAO;MACPE,cAAc,EAAdA,cAAc;MACdE,qBAAqB,EAArBA,qBAAqB;MACrBL,QAAQ,EAARA,QAAQ;MACRE,SAAS,EAATA,SAAS;MACTK,YAAY,EAAZA;IACF;EAAE,GACDR,QACqB,CAAC;AAE7B,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","BannerContext","exports","createContext","BannerContextProvider","_ref","children","siblings","banners","pbOptions","bannerCounters","setInitialBannerCounters","bannerPositionCounter","counter","blockTracker","lastBlockType","createElement","Provider","value"],"sources":["../../src/BannerContext/index.js"],"sourcesContent":["import React, { createContext } from 'react';\nimport { setInitialBannerCounters } from './helpers';\n\nconst BannerContext = createContext({});\n\nconst BannerContextProvider = ({ children, siblings, banners, pbOptions }) => {\n const bannerCounters = setInitialBannerCounters(banners);\n const bannerPositionCounter = { counter: 0 };\n const blockTracker = { lastBlockType: null };\n\n return (\n <BannerContext.Provider\n value={{\n banners,\n bannerCounters,\n bannerPositionCounter,\n siblings,\n pbOptions,\n blockTracker\n }}>\n {children}\n </BannerContext.Provider>\n );\n};\n\nexport { BannerContext, BannerContextProvider };\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAAqD,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CA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,IAAA,CAATI,SAAS;EACrE,IAAMC,cAAc,GAAG,IAAAC,iCAAwB,EAACH,OAAO,CAAC;EACxD,IAAMI,qBAAqB,GAAG;IAAEC,OAAO,EAAE;EAAE,CAAC;EAC5C,IAAMC,YAAY,GAAG;IAAEC,aAAa,EAAE;EAAK,CAAC;EAE5C,oBACEtC,MAAA,YAAAuC,aAAA,CAACf,aAAa,CAACgB,QAAQ;IACrBC,KAAK,EAAE;MACLV,OAAO,EAAPA,OAAO;MACPE,cAAc,EAAdA,cAAc;MACdE,qBAAqB,EAArBA,qBAAqB;MACrBL,QAAQ,EAARA,QAAQ;MACRE,SAAS,EAATA,SAAS;MACTK,YAAY,EAAZA;IACF;EAAE,GACDR,QACqB,CAAC;AAE7B,CAAC","ignoreList":[]}
@@ -22,7 +22,8 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
22
22
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
23
23
  var _react = _interopRequireWildcard(require("react"));
24
24
  var _propTypes = _interopRequireDefault(require("prop-types"));
25
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
25
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
26
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
26
27
  var withInfiniteScroll = function withInfiniteScroll(Component) {
27
28
  var InfiniteComponent = function InfiniteComponent(props) {
28
29
  var initialOffset = props.initialOffset,
@@ -1 +1 @@
1
- {"version":3,"file":"withInfiniteScroll.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t2","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","withInfiniteScroll","Component","InfiniteComponent","props","initialOffset","orderedListData","actionKey","limitToUse","fetchMore","listTotal","_useState","useState","_useState2","_slicedToArray2","isFetching","setIsFetching","_useState3","_useState4","newData","setNewData","updateQuery","prevQuery","_ref","fetchMoreResult","moreResults","results","updatedResults","concat","_toConsumableArray2","_defineProperty2","total","triggerInfiniteScroll","_ref3","_asyncToGenerator2","_regenerator","mark","_callee","dataLength","newOffset","wrap","_callee$","_context","prev","next","length","abrupt","variables","offset","stop","apply","arguments","createElement","_extends2","gtmData","propTypes","PropTypes","number","isRequired","array","string","func","itemsPerPageToUse","_default","exports"],"sources":["../../src/HOC/withInfiniteScroll.js"],"sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\n\nconst withInfiniteScroll = Component => {\n const InfiniteComponent = props => {\n const { initialOffset, orderedListData, actionKey, limitToUse, fetchMore, listTotal } = props;\n const [isFetching, setIsFetching] = useState(false);\n const [newData, setNewData] = useState(null);\n\n const updateQuery = (prevQuery, { fetchMoreResult }) => {\n if (!fetchMoreResult || !fetchMoreResult[actionKey]) return prevQuery;\n const { results: moreResults } = fetchMoreResult[actionKey];\n const updatedResults = [...prevQuery[actionKey].results, ...moreResults];\n setIsFetching(false);\n setNewData(moreResults);\n\n return {\n [actionKey]: {\n results: updatedResults,\n total: fetchMoreResult[actionKey].total\n }\n };\n };\n\n const triggerInfiniteScroll = async () => {\n const dataLength = orderedListData.length;\n const newOffset = dataLength + initialOffset;\n if (isFetching || (limitToUse && dataLength >= limitToUse) || dataLength >= listTotal) return;\n setIsFetching(true);\n\n await fetchMore({\n variables: {\n offset: newOffset\n },\n updateQuery\n });\n };\n\n return <Component triggerInfiniteScroll={triggerInfiniteScroll} gtmData={newData} {...props} />;\n };\n\n InfiniteComponent.propTypes = {\n initialOffset: PropTypes.number.isRequired,\n orderedListData: PropTypes.array.isRequired,\n actionKey: PropTypes.string.isRequired,\n limitToUse: PropTypes.number.isRequired,\n fetchMore: PropTypes.func.isRequired,\n itemsPerPageToUse: PropTypes.number.isRequired,\n listTotal: PropTypes.number.isRequired\n };\n\n return InfiniteComponent;\n};\n\nexport default withInfiniteScroll;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAmC,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,wBAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,mBAAAT,CAAA,iBAAAA,CAAA,gBAAAU,OAAA,CAAAV,CAAA,0BAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA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,EAAXA;cACF,CAAC,CAAC;YAAA;YAAA;cAAA,OAAAqB,QAAA,CAAAO,IAAA;UAAA;QAAA,GAAAZ,OAAA;MAAA,CACH;MAAA,gBAZKL,qBAAqBA,CAAA;QAAA,OAAAC,KAAA,CAAAiB,KAAA,OAAAC,SAAA;MAAA;IAAA,GAY1B;IAED,oBAAO3E,MAAA,YAAA4E,aAAA,CAAClD,SAAS,MAAAmD,SAAA;MAACrB,qBAAqB,EAAEA,qBAAsB;MAACsB,OAAO,EAAEnC;IAAQ,GAAKf,KAAK,CAAG,CAAC;EACjG,CAAC;EAEDD,iBAAiB,CAACoD,SAAS,GAAG;IAC5BlD,aAAa,EAAEmD,qBAAS,CAACC,MAAM,CAACC,UAAU;IAC1CpD,eAAe,EAAEkD,qBAAS,CAACG,KAAK,CAACD,UAAU;IAC3CnD,SAAS,EAAEiD,qBAAS,CAACI,MAAM,CAACF,UAAU;IACtClD,UAAU,EAAEgD,qBAAS,CAACC,MAAM,CAACC,UAAU;IACvCjD,SAAS,EAAE+C,qBAAS,CAACK,IAAI,CAACH,UAAU;IACpCI,iBAAiB,EAAEN,qBAAS,CAACC,MAAM,CAACC,UAAU;IAC9ChD,SAAS,EAAE8C,qBAAS,CAACC,MAAM,CAACC;EAC9B,CAAC;EAED,OAAOvD,iBAAiB;AAC1B,CAAC;AAAC,IAAA4D,QAAA,GAAAC,OAAA,cAEa/D,kBAAkB","ignoreList":[]}
1
+ {"version":3,"file":"withInfiniteScroll.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","withInfiniteScroll","Component","InfiniteComponent","props","initialOffset","orderedListData","actionKey","limitToUse","fetchMore","listTotal","_useState","useState","_useState2","_slicedToArray2","isFetching","setIsFetching","_useState3","_useState4","newData","setNewData","updateQuery","prevQuery","_ref","fetchMoreResult","moreResults","results","updatedResults","concat","_toConsumableArray2","_defineProperty2","total","triggerInfiniteScroll","_ref3","_asyncToGenerator2","_regenerator","mark","_callee","dataLength","newOffset","wrap","_callee$","_context","prev","next","length","abrupt","variables","offset","stop","apply","arguments","createElement","_extends2","gtmData","propTypes","PropTypes","number","isRequired","array","string","func","itemsPerPageToUse","_default","exports"],"sources":["../../src/HOC/withInfiniteScroll.js"],"sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\n\nconst withInfiniteScroll = Component => {\n const InfiniteComponent = props => {\n const { initialOffset, orderedListData, actionKey, limitToUse, fetchMore, listTotal } = props;\n const [isFetching, setIsFetching] = useState(false);\n const [newData, setNewData] = useState(null);\n\n const updateQuery = (prevQuery, { fetchMoreResult }) => {\n if (!fetchMoreResult || !fetchMoreResult[actionKey]) return prevQuery;\n const { results: moreResults } = fetchMoreResult[actionKey];\n const updatedResults = [...prevQuery[actionKey].results, ...moreResults];\n setIsFetching(false);\n setNewData(moreResults);\n\n return {\n [actionKey]: {\n results: updatedResults,\n total: fetchMoreResult[actionKey].total\n }\n };\n };\n\n const triggerInfiniteScroll = async () => {\n const dataLength = orderedListData.length;\n const newOffset = dataLength + initialOffset;\n if (isFetching || (limitToUse && dataLength >= limitToUse) || dataLength >= listTotal) return;\n setIsFetching(true);\n\n await fetchMore({\n variables: {\n offset: newOffset\n },\n updateQuery\n });\n };\n\n return <Component triggerInfiniteScroll={triggerInfiniteScroll} gtmData={newData} {...props} />;\n };\n\n InfiniteComponent.propTypes = {\n initialOffset: PropTypes.number.isRequired,\n orderedListData: PropTypes.array.isRequired,\n actionKey: PropTypes.string.isRequired,\n limitToUse: PropTypes.number.isRequired,\n fetchMore: PropTypes.func.isRequired,\n itemsPerPageToUse: PropTypes.number.isRequired,\n listTotal: PropTypes.number.isRequired\n };\n\n return InfiniteComponent;\n};\n\nexport default withInfiniteScroll;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,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vCjD,SAAS,EAAE+C,qBAAS,CAACK,IAAI,CAACH,UAAU;IACpCI,iBAAiB,EAAEN,qBAAS,CAACC,MAAM,CAACC,UAAU;IAC9ChD,SAAS,EAAE8C,qBAAS,CAACC,MAAM,CAACC;EAC9B,CAAC;EAED,OAAOvD,iBAAiB;AAC1B,CAAC;AAAC,IAAA4D,QAAA,GAAAC,OAAA,cAEa/D,kBAAkB","ignoreList":[]}
@@ -18,7 +18,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
18
18
  var _react = _interopRequireWildcard(require("react"));
19
19
  var _propTypes = _interopRequireDefault(require("prop-types"));
20
20
  var _utilsHandlebars = require("@blaze-cms/utils-handlebars");
21
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
21
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
22
23
  var withTitle = function withTitle(Component) {
23
24
  var InnerComponent = function InnerComponent(props) {
24
25
  var elementTitle = props.elementTitle,
@@ -1 +1 @@
1
- {"version":3,"file":"withTitle.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_utilsHandlebars","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t2","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","withTitle","Component","InnerComponent","props","elementTitle","isHeroImg","parent","shouldDisplayTitle","_useStringTemplate","useStringTemplate","loading","_useStringTemplate$da","_slicedToArray2","data","elementTitleToUse","createElement","Fragment","className","WrappedComponent","displayName","concat","name","propTypes","PropTypes","object","string","bool","defaultProps","_default","exports"],"sources":["../../src/HOC/withTitle.js"],"sourcesContent":["import React, { Fragment } from 'react';\nimport PropTypes from 'prop-types';\nimport { useStringTemplate } from '@blaze-cms/utils-handlebars';\n\nconst withTitle = Component => {\n const InnerComponent = props => {\n const { elementTitle, isHeroImg, parent } = props;\n\n const shouldDisplayTitle = elementTitle && !isHeroImg;\n const {\n loading,\n data: [elementTitleToUse]\n } = useStringTemplate(parent, [elementTitle]);\n\n if (loading) return '';\n\n return (\n <Fragment>\n {shouldDisplayTitle && <h2 className=\"heading heading--section\">{elementTitleToUse}</h2>}\n <Component {...props} />\n </Fragment>\n );\n };\n\n InnerComponent.WrappedComponent = Component;\n\n InnerComponent.displayName = `WithTitle(${\n Component.displayName || Component.name || 'Component'\n })`;\n\n InnerComponent.propTypes = {\n parent: PropTypes.object,\n elementTitle: PropTypes.string,\n isHeroImg: PropTypes.bool\n };\n InnerComponent.defaultProps = {\n parent: {},\n elementTitle: '',\n isHeroImg: false\n };\n\n return InnerComponent;\n};\n\nexport default withTitle;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,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MAAM,GAAKH,KAAK,CAAhBG,MAAM;IAEvC,IAAMC,kBAAkB,GAAGH,YAAY,IAAI,CAACC,SAAS;IACrD,IAAAG,kBAAA,GAGI,IAAAC,kCAAiB,EAACH,MAAM,EAAE,CAACF,YAAY,CAAC,CAAC;MAF3CM,OAAO,GAAAF,kBAAA,CAAPE,OAAO;MAAAC,qBAAA,OAAAC,eAAA,aAAAJ,kBAAA,CACPK,IAAI;MAAGC,iBAAiB,GAAAH,qBAAA;IAG1B,IAAID,OAAO,EAAE,OAAO,EAAE;IAEtB,oBACEpC,MAAA,YAAAyC,aAAA,CAACzC,MAAA,CAAA0C,QAAQ,QACNT,kBAAkB,iBAAIjC,MAAA,YAAAyC,aAAA;MAAIE,SAAS,EAAC;IAA0B,GAAEH,iBAAsB,CAAC,eACxFxC,MAAA,YAAAyC,aAAA,CAACd,SAAS,EAAKE,KAAQ,CACf,CAAC;EAEf,CAAC;EAEDD,cAAc,CAACgB,gBAAgB,GAAGjB,SAAS;EAE3CC,cAAc,CAACiB,WAAW,gBAAAC,MAAA,CACxBnB,SAAS,CAACkB,WAAW,IAAIlB,SAAS,CAACoB,IAAI,IAAI,WAAW,MACrD;EAEHnB,cAAc,CAACoB,SAAS,GAAG;IACzBhB,MAAM,EAAEiB,qBAAS,CAACC,MAAM;IACxBpB,YAAY,EAAEmB,qBAAS,CAACE,MAAM;IAC9BpB,SAAS,EAAEkB,qBAAS,CAACG;EACvB,CAAC;EACDxB,cAAc,CAACyB,YAAY,GAAG;IAC5BrB,MAAM,EAAE,CAAC,CAAC;IACVF,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACb,CAAC;EAED,OAAOH,cAAc;AACvB,CAAC;AAAC,IAAA0B,QAAA,GAAAC,OAAA,cAEa7B,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"withTitle.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_utilsHandlebars","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","withTitle","Component","InnerComponent","props","elementTitle","isHeroImg","parent","shouldDisplayTitle","_useStringTemplate","useStringTemplate","loading","_useStringTemplate$da","_slicedToArray2","data","elementTitleToUse","createElement","Fragment","className","WrappedComponent","displayName","concat","name","propTypes","PropTypes","object","string","bool","defaultProps","_default","exports"],"sources":["../../src/HOC/withTitle.js"],"sourcesContent":["import React, { Fragment } from 'react';\nimport PropTypes from 'prop-types';\nimport { useStringTemplate } from '@blaze-cms/utils-handlebars';\n\nconst withTitle = Component => {\n const InnerComponent = props => {\n const { elementTitle, isHeroImg, parent } = props;\n\n const shouldDisplayTitle = elementTitle && !isHeroImg;\n const {\n loading,\n data: [elementTitleToUse]\n } = useStringTemplate(parent, [elementTitle]);\n\n if (loading) return '';\n\n return (\n <Fragment>\n {shouldDisplayTitle && <h2 className=\"heading heading--section\">{elementTitleToUse}</h2>}\n <Component {...props} />\n </Fragment>\n );\n };\n\n InnerComponent.WrappedComponent = Component;\n\n InnerComponent.displayName = `WithTitle(${\n Component.displayName || Component.name || 'Component'\n })`;\n\n InnerComponent.propTypes = {\n parent: PropTypes.object,\n elementTitle: PropTypes.string,\n isHeroImg: PropTypes.bool\n };\n InnerComponent.defaultProps = {\n parent: {},\n elementTitle: '',\n isHeroImg: false\n };\n\n return InnerComponent;\n};\n\nexport default withTitle;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAAgE,SAAAI,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,w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ACF,YAAY,CAAC,CAAC;MAF3CM,OAAO,GAAAF,kBAAA,CAAPE,OAAO;MAAAC,qBAAA,OAAAC,eAAA,aAAAJ,kBAAA,CACPK,IAAI;MAAGC,iBAAiB,GAAAH,qBAAA;IAG1B,IAAID,OAAO,EAAE,OAAO,EAAE;IAEtB,oBACEpC,MAAA,YAAAyC,aAAA,CAACzC,MAAA,CAAA0C,QAAQ,QACNT,kBAAkB,iBAAIjC,MAAA,YAAAyC,aAAA;MAAIE,SAAS,EAAC;IAA0B,GAAEH,iBAAsB,CAAC,eACxFxC,MAAA,YAAAyC,aAAA,CAACd,SAAS,EAAKE,KAAQ,CACf,CAAC;EAEf,CAAC;EAEDD,cAAc,CAACgB,gBAAgB,GAAGjB,SAAS;EAE3CC,cAAc,CAACiB,WAAW,gBAAAC,MAAA,CACxBnB,SAAS,CAACkB,WAAW,IAAIlB,SAAS,CAACoB,IAAI,IAAI,WAAW,MACrD;EAEHnB,cAAc,CAACoB,SAAS,GAAG;IACzBhB,MAAM,EAAEiB,qBAAS,CAACC,MAAM;IACxBpB,YAAY,EAAEmB,qBAAS,CAACE,MAAM;IAC9BpB,SAAS,EAAEkB,qBAAS,CAACG;EACvB,CAAC;EACDxB,cAAc,CAACyB,YAAY,GAAG;IAC5BrB,MAAM,EAAE,CAAC,CAAC;IACVF,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACb,CAAC;EAED,OAAOH,cAAc;AACvB,CAAC;AAAC,IAAA0B,QAAA,GAAAC,OAAA,cAEa7B,SAAS","ignoreList":[]}
@@ -13,7 +13,7 @@ require("core-js/modules/es.object.to-string.js");
13
13
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
14
14
  var _client = require("@apollo/client");
15
15
  var _lodash = _interopRequireDefault(require("lodash.upperfirst"));
16
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
16
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
17
17
  var defaultSchemaProps = "\n id\n identifier\n properties\n dynamicProperties\n actions\n interfaces\n relations\n __typename\n";
18
18
  var getSearchPublishedContent = exports.getSearchPublishedContent = function getSearchPublishedContent(fields) {
19
19
  return (0, _client.gql)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n query searchPublishedContent($rawQueryStringified: String!, $offset: Int, $limit: Int, $sort: String) {\n searchPublishedContent(rawQueryStringified: $rawQueryStringified, offset: $offset, limit: $limit, sort: $sort) {\n ", "\n }\n }\n "])), fields);
@@ -38,24 +38,24 @@ var getMultipleSchema = exports.getMultipleSchema = function getMultipleSchema(i
38
38
  var getFiles = exports.getFiles = (0, _client.gql)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n query getFiles($where: JSON!) {\n getFiles(where: $where) {\n id\n url\n data\n }\n }\n"])));
39
39
  var getFileById = exports.getFileById = (0, _client.gql)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n query getFile($id: String!) {\n getFile(id: $id) {\n id\n url\n data\n }\n }\n"])));
40
40
  var getCount = exports.getCount = function getCount(action) {
41
- return (0, _client.gql)(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2["default"])(["query countData($where: JSON!) {\n ", " (where: $where)\n }\n"])), action);
41
+ return (0, _client.gql)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["query countData($where: JSON!) {\n ", " (where: $where)\n }\n"])), action);
42
42
  };
43
43
  var generateQuery = function generateQuery(action, props) {
44
44
  return "\n query getEntityData(\n $where: JSON\n $limit: Int\n $offset: Int\n $sort: [".concat((0, _lodash["default"])(action), "SortItem]){\n ").concat(action, " (where: $where, limit: $limit, offset: $offset, sort: $sort){\n ").concat(props, "\n id\n __typename\n }\n }\n ");
45
45
  };
46
46
  var generateMultiItemQuery = exports.generateMultiItemQuery = function generateMultiItemQuery(action, props) {
47
- return (0, _client.gql)(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2["default"])(["\n query getEntityData($where: JSON){\n ", " (where: $where){\n ", "\n id\n __typename\n }\n }\n "])), action, props);
47
+ return (0, _client.gql)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["\n query getEntityData($where: JSON){\n ", " (where: $where){\n ", "\n id\n __typename\n }\n }\n "])), action, props);
48
48
  };
49
49
  var generateSingleItemQuery = exports.generateSingleItemQuery = function generateSingleItemQuery(action, props) {
50
- return (0, _client.gql)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["\n query getEntityData($id: String!){\n entityData: ", "(id: $id){\n ", ",\n id,\n __typename\n }\n }\n "])), action, props);
50
+ return (0, _client.gql)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["\n query getEntityData($id: String!){\n entityData: ", "(id: $id){\n ", ",\n id,\n __typename\n }\n }\n "])), action, props);
51
51
  };
52
52
 
53
53
  // TODO: extend function to handle properties and make them dynamic with a config schema for each entity.
54
54
  var getAction = exports.getAction = function getAction(action, props) {
55
55
  var query = generateQuery(action, props);
56
- return (0, _client.gql)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n "])), query);
56
+ return (0, _client.gql)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n "])), query);
57
57
  };
58
- var getItemList = exports.getItemList = (0, _client.gql)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["\n query getItemList($id: String!) {\n getItemList(id: $id) {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n"])));
59
- var addItemsToList = exports.addItemsToList = (0, _client.gql)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["\n mutation addItemsToList(\n $name: String!\n $id: String\n $listItems: [AddItemsToListInputListItemsItem]!\n ) {\n addItemsToList(input: { name: $name, id: $id, listItems: $listItems }) {\n result {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n }\n"])));
60
- var removeItemsFromList = exports.removeItemsFromList = (0, _client.gql)(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["\n mutation removeItemsFromList(\n $listId: String!\n $listItems: [RemoveItemsFromListInputListItemsItem]!\n ) {\n removeItemsFromList(input: { id: $listId, listItems: $listItems }) {\n result {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n }\n"])));
58
+ var getItemList = exports.getItemList = (0, _client.gql)(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["\n query getItemList($id: String!) {\n getItemList(id: $id) {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n"])));
59
+ var addItemsToList = exports.addItemsToList = (0, _client.gql)(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["\n mutation addItemsToList(\n $name: String!\n $id: String\n $listItems: [AddItemsToListInputListItemsItem]!\n ) {\n addItemsToList(input: { name: $name, id: $id, listItems: $listItems }) {\n result {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n }\n"])));
60
+ var removeItemsFromList = exports.removeItemsFromList = (0, _client.gql)(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["\n mutation removeItemsFromList(\n $listId: String!\n $listItems: [RemoveItemsFromListInputListItemsItem]!\n ) {\n removeItemsFromList(input: { id: $listId, listItems: $listItems }) {\n result {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n }\n"])));
61
61
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_client","require","_lodash","_interopRequireDefault","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","_templateObject0","_templateObject1","_templateObject10","_templateObject11","_templateObject12","_templateObject13","_templateObject14","defaultSchemaProps","getSearchPublishedContent","exports","fields","gql","_taggedTemplateLiteral2","getUser","userProps","getCurrentUser","getEntitySchema","getSingleEntitySchema","getRecordParents","queryName","getMultipleSchema","identifiers","queryString","map","id","concat","join","getFiles","getFileById","getCount","action","generateQuery","props","upperFirst","generateMultiItemQuery","generateSingleItemQuery","getAction","query","getItemList","addItemsToList","removeItemsFromList"],"sources":["../../../src/application/query/index.js"],"sourcesContent":["import { gql } from '@apollo/client';\nimport upperFirst from 'lodash.upperfirst';\n\nconst defaultSchemaProps = `\n id\n identifier\n properties\n dynamicProperties\n actions\n interfaces\n relations\n __typename\n`;\n\nconst getSearchPublishedContent = fields => gql`\n query searchPublishedContent($rawQueryStringified: String!, $offset: Int, $limit: Int, $sort: String) {\n searchPublishedContent(rawQueryStringified: $rawQueryStringified, offset: $offset, limit: $limit, sort: $sort) {\n ${fields}\n }\n }\n `;\n\nconst getUser = userProps => gql`\n query getUser($id: String!) {\n getUser(id: $id) {\n id\n ${userProps}\n }\n }\n`;\n\nconst getCurrentUser = userProps => gql`\n query {\n getUser: getCurrentUser {\n id\n ${userProps}\n }\n }\n`;\n\nconst getEntitySchema = gql`\n query getEntitySchemas($identifier: String!) {\n getEntitySchemas(identifier: $identifier) {\n ${defaultSchemaProps}\n }\n }\n`;\n\nconst getSingleEntitySchema = gql`\n query getEntitySchema($id: String!) {\n getEntitySchema: getEntitySchema(id: $id) {\n ${defaultSchemaProps}\n }\n }\n`;\n\nconst getRecordParents = queryName => gql`\nquery getRecordParents($id: String!){\n recordParents: ${queryName}(id: $id){\n id,\n name,\n url,\n parents {\n id,\n name\n url\n }\n }\n}`;\n\nconst getMultipleSchema = identifiers => {\n const queryString = identifiers\n .map(\n id => `${id}: getEntitySchema(id: \"${id}\") {\n ${defaultSchemaProps}\n }`\n )\n .join(`\\n`);\n return gql`\n query {\n ${queryString}\n }`;\n};\n\nconst getFiles = gql`\n query getFiles($where: JSON!) {\n getFiles(where: $where) {\n id\n url\n data\n }\n }\n`;\n\nconst getFileById = gql`\n query getFile($id: String!) {\n getFile(id: $id) {\n id\n url\n data\n }\n }\n`;\n\nconst getCount = action => gql`query countData($where: JSON!) {\n ${action} (where: $where)\n }\n`;\n\nconst generateQuery = (action, props) => `\n query getEntityData(\n $where: JSON\n $limit: Int\n $offset: Int\n $sort: [${upperFirst(action)}SortItem]){\n ${action} (where: $where, limit: $limit, offset: $offset, sort: $sort){\n ${props}\n id\n __typename\n }\n }\n `;\nconst generateMultiItemQuery = (action, props) => gql`\n query getEntityData($where: JSON){\n ${action} (where: $where){\n ${props}\n id\n __typename\n }\n }\n `;\n\nconst generateSingleItemQuery = (action, props) => gql`\n query getEntityData($id: String!){\n entityData: ${action}(id: $id){\n ${props},\n id,\n __typename\n }\n }\n `;\n\n// TODO: extend function to handle properties and make them dynamic with a config schema for each entity.\nconst getAction = (action, props) => {\n const query = generateQuery(action, props);\n return gql`\n ${query}\n `;\n};\n\nconst getItemList = gql`\n query getItemList($id: String!) {\n getItemList(id: $id) {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n`;\n\nconst addItemsToList = gql`\n mutation addItemsToList(\n $name: String!\n $id: String\n $listItems: [AddItemsToListInputListItemsItem]!\n ) {\n addItemsToList(input: { name: $name, id: $id, listItems: $listItems }) {\n result {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n }\n`;\n\nconst removeItemsFromList = gql`\n mutation removeItemsFromList(\n $listId: String!\n $listItems: [RemoveItemsFromListInputListItemsItem]!\n ) {\n removeItemsFromList(input: { id: $listId, listItems: $listItems }) {\n result {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n }\n`;\n\nexport {\n getEntitySchema,\n getSingleEntitySchema,\n getAction,\n getFiles,\n getFileById,\n generateMultiItemQuery,\n generateSingleItemQuery,\n getSearchPublishedContent,\n getCount,\n getMultipleSchema,\n getUser,\n getRecordParents,\n get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AAKrB,WAAG,EAAAV,gBAAA,KAAAA,gBAAA,OAAAW,uBAAA,8IAE/CkB,MAAM,EACJE,KAAK;AAAA,CAKV;AAEH,IAAMG,uBAAuB,GAAA1B,OAAA,CAAA0B,uBAAA,GAAG,SAA1BA,uBAAuBA,CAAIL,MAAM,EAAEE,KAAK;EAAA,WAAKrB,WAAG,EAAAT,iBAAA,KAAAA,iBAAA,OAAAU,uBAAA,+IAEpCkB,MAAM,EAClBE,KAAK;AAAA,CAKR;;AAEH;AACA,IAAMI,SAAS,GAAA3B,OAAA,CAAA2B,SAAA,GAAG,SAAZA,SAASA,CAAIN,MAAM,EAAEE,KAAK,EAAK;EACnC,IAAMK,KAAK,GAAGN,aAAa,CAACD,MAAM,EAAEE,KAAK,CAAC;EAC1C,WAAOrB,WAAG,EAAAR,iBAAA,KAAAA,iBAAA,OAAAS,uBAAA,mCACNyB,KAAK;AAEX,CAAC;AAED,IAAMC,WAAW,GAAA7B,OAAA,CAAA6B,WAAA,OAAG3B,WAAG,EAAAP,iBAAA,KAAAA,iBAAA,OAAAQ,uBAAA,6KAUtB;AAED,IAAM2B,cAAc,GAAA9B,OAAA,CAAA8B,cAAA,OAAG5B,WAAG,EAAAN,iBAAA,KAAAA,iBAAA,OAAAO,uBAAA,0VAgBzB;AAED,IAAM4B,mBAAmB,GAAA/B,OAAA,CAAA+B,mBAAA,OAAG7B,WAAG,EAAAL,iBAAA,KAAAA,iBAAA,OAAAM,uBAAA,iVAe9B","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_client","require","_lodash","_interopRequireDefault","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","_templateObject12","_templateObject13","_templateObject14","_templateObject15","_templateObject16","defaultSchemaProps","getSearchPublishedContent","exports","fields","gql","_taggedTemplateLiteral2","getUser","userProps","getCurrentUser","getEntitySchema","getSingleEntitySchema","getRecordParents","queryName","getMultipleSchema","identifiers","queryString","map","id","concat","join","getFiles","getFileById","getCount","action","generateQuery","props","upperFirst","generateMultiItemQuery","generateSingleItemQuery","getAction","query","getItemList","addItemsToList","removeItemsFromList"],"sources":["../../../src/application/query/index.js"],"sourcesContent":["import { gql } from '@apollo/client';\nimport upperFirst from 'lodash.upperfirst';\n\nconst defaultSchemaProps = `\n id\n identifier\n properties\n dynamicProperties\n actions\n interfaces\n relations\n __typename\n`;\n\nconst getSearchPublishedContent = fields => gql`\n query searchPublishedContent($rawQueryStringified: String!, $offset: Int, $limit: Int, $sort: String) {\n searchPublishedContent(rawQueryStringified: $rawQueryStringified, offset: $offset, limit: $limit, sort: $sort) {\n ${fields}\n }\n }\n `;\n\nconst getUser = userProps => gql`\n query getUser($id: String!) {\n getUser(id: $id) {\n id\n ${userProps}\n }\n }\n`;\n\nconst getCurrentUser = userProps => gql`\n query {\n getUser: getCurrentUser {\n id\n ${userProps}\n }\n }\n`;\n\nconst getEntitySchema = gql`\n query getEntitySchemas($identifier: String!) {\n getEntitySchemas(identifier: $identifier) {\n ${defaultSchemaProps}\n }\n }\n`;\n\nconst getSingleEntitySchema = gql`\n query getEntitySchema($id: String!) {\n getEntitySchema: getEntitySchema(id: $id) {\n ${defaultSchemaProps}\n }\n }\n`;\n\nconst getRecordParents = queryName => gql`\nquery getRecordParents($id: String!){\n recordParents: ${queryName}(id: $id){\n id,\n name,\n url,\n parents {\n id,\n name\n url\n }\n }\n}`;\n\nconst getMultipleSchema = identifiers => {\n const queryString = identifiers\n .map(\n id => `${id}: getEntitySchema(id: \"${id}\") {\n ${defaultSchemaProps}\n }`\n )\n .join(`\\n`);\n return gql`\n query {\n ${queryString}\n }`;\n};\n\nconst getFiles = gql`\n query getFiles($where: JSON!) {\n getFiles(where: $where) {\n id\n url\n data\n }\n }\n`;\n\nconst getFileById = gql`\n query getFile($id: String!) {\n getFile(id: $id) {\n id\n url\n data\n }\n }\n`;\n\nconst getCount = action => gql`query countData($where: JSON!) {\n ${action} (where: $where)\n }\n`;\n\nconst generateQuery = (action, props) => `\n query getEntityData(\n $where: JSON\n $limit: Int\n $offset: Int\n $sort: [${upperFirst(action)}SortItem]){\n ${action} (where: $where, limit: $limit, offset: $offset, sort: $sort){\n ${props}\n id\n __typename\n }\n }\n `;\nconst generateMultiItemQuery = (action, props) => gql`\n query getEntityData($where: JSON){\n ${action} (where: $where){\n ${props}\n id\n __typename\n }\n }\n `;\n\nconst generateSingleItemQuery = (action, props) => gql`\n query getEntityData($id: String!){\n entityData: ${action}(id: $id){\n ${props},\n id,\n __typename\n }\n }\n `;\n\n// TODO: extend function to handle properties and make them dynamic with a config schema for each entity.\nconst getAction = (action, props) => {\n const query = generateQuery(action, props);\n return gql`\n ${query}\n `;\n};\n\nconst getItemList = gql`\n query getItemList($id: String!) {\n getItemList(id: $id) {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n`;\n\nconst addItemsToList = gql`\n mutation addItemsToList(\n $name: String!\n $id: String\n $listItems: [AddItemsToListInputListItemsItem]!\n ) {\n addItemsToList(input: { name: $name, id: $id, listItems: $listItems }) {\n result {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n }\n`;\n\nconst removeItemsFromList = gql`\n mutation removeItemsFromList(\n $listId: String!\n $listItems: [RemoveItemsFromListInputListItemsItem]!\n ) {\n removeItemsFromList(input: { id: $listId, listItems: $listItems }) {\n result {\n id\n listItems {\n itemId\n itemEntity\n }\n }\n }\n }\n`;\n\nexport {\n getEntitySchema,\n getSingleEntitySchema,\n getAction,\n getFiles,\n getFileById,\n generateMultiItemQuery,\n generateSingleItemQuery,\n getSearchPublishedContent,\n getCount,\n getMultipleSchema,\n getUser,\n getRecordParents,\n getItemList,\n addItemsToList,\n removeItemsFromList,\n getCurrentUser\n};\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA2C,IAAAG,eAAA,EAAAC,gBAAA,EAAAC,gB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,KAAK;EAAA,WAAKrB,WAAG,EAAAT,iBAAA,KAAAA,iBAAA,OAAAU,uBAAA,+IAEpCkB,MAAM,EAClBE,KAAK;AAAA,CAKR;;AAEH;AACA,IAAMI,SAAS,GAAA3B,OAAA,CAAA2B,SAAA,GAAG,SAAZA,SAASA,CAAIN,MAAM,EAAEE,KAAK,EAAK;EACnC,IAAMK,KAAK,GAAGN,aAAa,CAACD,MAAM,EAAEE,KAAK,CAAC;EAC1C,WAAOrB,WAAG,EAAAR,iBAAA,KAAAA,iBAAA,OAAAS,uBAAA,mCACNyB,KAAK;AAEX,CAAC;AAED,IAAMC,WAAW,GAAA7B,OAAA,CAAA6B,WAAA,OAAG3B,WAAG,EAAAP,iBAAA,KAAAA,iBAAA,OAAAQ,uBAAA,6KAUtB;AAED,IAAM2B,cAAc,GAAA9B,OAAA,CAAA8B,cAAA,OAAG5B,WAAG,EAAAN,iBAAA,KAAAA,iBAAA,OAAAO,uBAAA,0VAgBzB;AAED,IAAM4B,mBAAmB,GAAA/B,OAAA,CAAA+B,mBAAA,OAAG7B,WAAG,EAAAL,iBAAA,KAAAA,iBAAA,OAAAM,uBAAA,iVAe9B","ignoreList":[]}
@@ -17,7 +17,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
17
17
  var _react = _interopRequireWildcard(require("react"));
18
18
  var _propTypes = _interopRequireDefault(require("prop-types"));
19
19
  var _fa = require("react-icons/fa");
20
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
20
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
21
22
  var BackToTop = function BackToTop(_ref) {
22
23
  var type = _ref.type,
23
24
  showAfterPixels = _ref.showAfterPixels;
@@ -1 +1 @@
1
- {"version":3,"file":"BackToTop.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_fa","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t2","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BackToTop","_ref","type","showAfterPixels","_useState","useState","_useState2","_slicedToArray2","goToTop","setGoToTop","useEffect","handleOnScroll","window","scrollY","document","addEventListener","removeEventListener","handleBackToTop","event","preventDefault","scroll","top","left","behavior","createElement","href","className","onClick","FaArrowUp","propTypes","PropTypes","string","number","defaultProps","_default","exports"],"sources":["../../../src/components/BackToTop/BackToTop.js"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { FaArrowUp } from 'react-icons/fa';\n\nconst BackToTop = ({ type, showAfterPixels }) => {\n const [goToTop, setGoToTop] = useState(false);\n\n useEffect(() => {\n const handleOnScroll = () => setGoToTop(window.scrollY >= showAfterPixels);\n document.addEventListener('scroll', handleOnScroll);\n return () => document.removeEventListener('scroll', handleOnScroll);\n }, [showAfterPixels]);\n\n const handleBackToTop = event => {\n event.preventDefault();\n window.scroll({\n top: 0,\n left: 0,\n behavior: 'smooth'\n });\n };\n\n return (\n goToTop && (\n <a href=\"#top\" className={type} onClick={handleBackToTop} aria-label=\"Back to top\">\n <FaArrowUp />\n </a>\n )\n );\n};\n\nBackToTop.propTypes = {\n type: PropTypes.string,\n showAfterPixels: PropTypes.number\n};\n\nBackToTop.defaultProps = {\n type: 'backtotop',\n showAfterPixels: 200\n};\n\nexport default BackToTop;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,GAAA,GAAAH,OAAA;AAA2C,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,wBAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,mBAAAT,CAAA,iBAAAA,CAAA,gBAAAU,OAAA,CAAAV,CAAA,0BAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,GAAA,IAAAd,CAAA,gBAAAc,GAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,GAAA,OAAAP,CAAA,IAAAD,CAAA,GAAAW,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,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AAA,YAAAkD,aAAA,CAAC7C,GAAA,CAAAiD,SAAS,MAAE,CACX,CACJ;AAEL,CAAC;AAED5B,SAAS,CAAC6B,SAAS,GAAG;EACpB3B,IAAI,EAAE4B,qBAAS,CAACC,MAAM;EACtB5B,eAAe,EAAE2B,qBAAS,CAACE;AAC7B,CAAC;AAEDhC,SAAS,CAACiC,YAAY,GAAG;EACvB/B,IAAI,EAAE,WAAW;EACjBC,eAAe,EAAE;AACnB,CAAC;AAAC,IAAA+B,QAAA,GAAAC,OAAA,cAEanC,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"BackToTop.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_fa","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","BackToTop","_ref","type","showAfterPixels","_useState","useState","_useState2","_slicedToArray2","goToTop","setGoToTop","useEffect","handleOnScroll","window","scrollY","document","addEventListener","removeEventListener","handleBackToTop","event","preventDefault","scroll","top","left","behavior","createElement","href","className","onClick","FaArrowUp","propTypes","PropTypes","string","number","defaultProps","_default","exports"],"sources":["../../../src/components/BackToTop/BackToTop.js"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { FaArrowUp } from 'react-icons/fa';\n\nconst BackToTop = ({ type, showAfterPixels }) => {\n const [goToTop, setGoToTop] = useState(false);\n\n useEffect(() => {\n const handleOnScroll = () => setGoToTop(window.scrollY >= showAfterPixels);\n document.addEventListener('scroll', handleOnScroll);\n return () => document.removeEventListener('scroll', handleOnScroll);\n }, [showAfterPixels]);\n\n const handleBackToTop = event => {\n event.preventDefault();\n window.scroll({\n top: 0,\n left: 0,\n behavior: 'smooth'\n });\n };\n\n return (\n goToTop && (\n <a href=\"#top\" className={type} onClick={handleBackToTop} aria-label=\"Back to top\">\n <FaArrowUp />\n </a>\n )\n );\n};\n\nBackToTop.propTypes = {\n type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