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

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 (207) hide show
  1. package/CHANGELOG.md +44 -90
  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/Carousel/Carousel.js +44 -7
  31. package/lib/components/Carousel/Carousel.js.map +1 -1
  32. package/lib/components/Carousel/CarouselImage/CarouselImage.js +2 -1
  33. package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  34. package/lib/components/CarouselWrapper/DefaultCarousel.js +2 -1
  35. package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  36. package/lib/components/ClickWrapper.js +2 -1
  37. package/lib/components/ClickWrapper.js.map +1 -1
  38. package/lib/components/Code/Code.js +2 -1
  39. package/lib/components/Code/Code.js.map +1 -1
  40. package/lib/components/Code/ScriptTag.js +2 -1
  41. package/lib/components/Code/ScriptTag.js.map +1 -1
  42. package/lib/components/ContentGroup/ContentGroup.js +2 -1
  43. package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
  44. package/lib/components/ContentGroup/ContentGroupAccordion.js +2 -1
  45. package/lib/components/ContentGroup/ContentGroupAccordion.js.map +1 -1
  46. package/lib/components/ContentGroup/ContentGroupTabs.js +2 -1
  47. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  48. package/lib/components/DataSummary/DataSummaryFactory.js +2 -1
  49. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  50. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +2 -1
  51. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  52. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +2 -1
  53. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  54. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +2 -1
  55. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  56. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +2 -1
  57. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  58. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +2 -1
  59. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  60. package/lib/components/DataSummary/DataSummaryTypes/index.js +2 -1
  61. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  62. package/lib/components/EmailConfirm/EmailConfirm.js +2 -1
  63. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  64. package/lib/components/ErrorMessage/index.js +2 -1
  65. package/lib/components/ErrorMessage/index.js.map +1 -1
  66. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +2 -1
  67. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  68. package/lib/components/Image/GlobalLightbox/index.js +2 -1
  69. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  70. package/lib/components/Image/Image.js +2 -1
  71. package/lib/components/Image/Image.js.map +1 -1
  72. package/lib/components/Image/ImageFactory.js +2 -1
  73. package/lib/components/Image/ImageFactory.js.map +1 -1
  74. package/lib/components/Image/Lightbox/Lightbox.js +2 -1
  75. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  76. package/lib/components/ItemList/ItemListButton/ItemListButton.js +2 -1
  77. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  78. package/lib/components/Layout/LayoutFactory.js +2 -1
  79. package/lib/components/Layout/LayoutFactory.js.map +1 -1
  80. package/lib/components/Layout/LayoutWithStickyTimer.js +2 -1
  81. package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  82. package/lib/components/LazyImage/index.js +2 -1
  83. package/lib/components/LazyImage/index.js.map +1 -1
  84. package/lib/components/List/ListFactory.js +2 -1
  85. package/lib/components/List/ListFactory.js.map +1 -1
  86. package/lib/components/List/ListRender.js +2 -1
  87. package/lib/components/List/ListRender.js.map +1 -1
  88. package/lib/components/List/components/Cards/CardsRender.js +2 -1
  89. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  90. package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -1
  91. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  92. package/lib/components/List/components/Full/FullRender.js +2 -1
  93. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  94. package/lib/components/List/components/Full/FullRenderItem.js +2 -1
  95. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  96. package/lib/components/List/components/Pagination/ListPagination.js +2 -1
  97. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  98. package/lib/components/Loading/index.js +2 -1
  99. package/lib/components/Loading/index.js.map +1 -1
  100. package/lib/components/Menu/Menu.js +3 -5
  101. package/lib/components/Menu/Menu.js.map +1 -1
  102. package/lib/components/Menu/MenuContext.js +1 -2
  103. package/lib/components/Menu/MenuContext.js.map +1 -1
  104. package/lib/components/MenuItem/MenuItemRender.js +14 -28
  105. package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
  106. package/lib/components/MenuItem/helpers/index.js +0 -14
  107. package/lib/components/MenuItem/helpers/index.js.map +1 -1
  108. package/lib/components/ModalAdapter/index.js +2 -1
  109. package/lib/components/ModalAdapter/index.js.map +1 -1
  110. package/lib/components/SearchContent/SearchContent.js +6 -3
  111. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  112. package/lib/components/SearchContent/SearchContentResults.js +2 -1
  113. package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
  114. package/lib/components/SearchFilter/SearchFilter/FiltersList.js +2 -1
  115. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  116. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +2 -1
  117. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  118. package/lib/components/SearchFilter/SearchFilterContainer.js +2 -1
  119. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  120. package/lib/components/SearchFilter/components/Checkbox.js +2 -1
  121. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  122. package/lib/components/Video/VideoModal.js +2 -1
  123. package/lib/components/Video/VideoModal.js.map +1 -1
  124. package/lib/components/Video/VideoRender.js +2 -1
  125. package/lib/components/Video/VideoRender.js.map +1 -1
  126. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +2 -1
  127. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  128. package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -1
  129. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  130. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +2 -1
  131. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  132. package/lib/components/Video/providers/get-provider.js +2 -1
  133. package/lib/components/Video/providers/get-provider.js.map +1 -1
  134. package/lib/components/index.js +2 -1
  135. package/lib/components/index.js.map +1 -1
  136. package/lib/helpers/parse-TextBlock.js +2 -1
  137. package/lib/helpers/parse-TextBlock.js.map +1 -1
  138. package/lib/helpers/parse-props-to-display.js +2 -1
  139. package/lib/helpers/parse-props-to-display.js.map +1 -1
  140. package/lib/hooks/use-get-image-id-from-relation.js +4 -3
  141. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  142. package/lib/hooks/use-portal.js +2 -1
  143. package/lib/hooks/use-portal.js.map +1 -1
  144. package/lib/system-components/EditorMode/BlazeLogo.js +2 -1
  145. package/lib/system-components/EditorMode/BlazeLogo.js.map +1 -1
  146. package/lib/system-components/EditorMode/PbWrapper.js +2 -1
  147. package/lib/system-components/EditorMode/PbWrapper.js.map +1 -1
  148. package/lib/system-components/index.js +2 -1
  149. package/lib/system-components/index.js.map +1 -1
  150. package/lib/variants/Infographic/index.js +2 -1
  151. package/lib/variants/Infographic/index.js.map +1 -1
  152. package/lib/variants/LiveBlogList/LiveBlogList.js +2 -1
  153. package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -1
  154. package/lib/variants/LiveBlogList/index.js +2 -1
  155. package/lib/variants/LiveBlogList/index.js.map +1 -1
  156. package/lib/variants/LongformGallery/index.js +2 -1
  157. package/lib/variants/LongformGallery/index.js.map +1 -1
  158. package/lib/variants/SlideSummary/index.js +2 -1
  159. package/lib/variants/SlideSummary/index.js.map +1 -1
  160. package/lib/variants/ThumbnailCarousel/index.js +2 -1
  161. package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
  162. package/lib-es/components/Carousel/Carousel.js +39 -9
  163. package/lib-es/components/Carousel/Carousel.js.map +1 -1
  164. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js +2 -1
  165. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  166. package/lib-es/components/Menu/Menu.js +1 -4
  167. package/lib-es/components/Menu/Menu.js.map +1 -1
  168. package/lib-es/components/Menu/MenuContext.js +1 -2
  169. package/lib-es/components/Menu/MenuContext.js.map +1 -1
  170. package/lib-es/components/MenuItem/MenuItemRender.js +11 -25
  171. package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -1
  172. package/lib-es/components/MenuItem/helpers/index.js +1 -3
  173. package/lib-es/components/MenuItem/helpers/index.js.map +1 -1
  174. package/lib-es/components/SearchContent/SearchContent.js +8 -2
  175. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  176. package/lib-es/components/SearchContent/SearchContentResults.js +2 -1
  177. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  178. package/lib-es/hooks/use-get-image-id-from-relation.js +2 -2
  179. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  180. package/package.json +10 -10
  181. package/src/components/Carousel/Carousel.js +46 -9
  182. package/src/components/Carousel/CarouselImage/CarouselImage.js +3 -1
  183. package/src/components/Menu/Menu.js +1 -3
  184. package/src/components/Menu/MenuContext.js +1 -1
  185. package/src/components/MenuItem/MenuItemRender.js +12 -40
  186. package/src/components/MenuItem/helpers/index.js +1 -3
  187. package/src/components/SearchContent/SearchContent.js +8 -2
  188. package/src/components/SearchContent/SearchContentResults.js +1 -1
  189. package/src/hooks/use-get-image-id-from-relation.js +2 -1
  190. package/tests/unit/src/components/Carousel/Carousel.test.js +45 -35
  191. package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +49 -8
  192. package/tests/unit/src/components/MenuItem/MenuItem.test.js +0 -5
  193. package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +3 -11
  194. package/tests/unit/src/components/SearchContent/SearchContent.test.js +32 -1
  195. package/lib/components/MenuItem/helpers/has-active-child.js +0 -19
  196. package/lib/components/MenuItem/helpers/has-active-child.js.map +0 -1
  197. package/lib/components/MenuItem/helpers/isUrlPathMatch.js +0 -18
  198. package/lib/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
  199. package/lib-es/components/MenuItem/helpers/has-active-child.js +0 -5
  200. package/lib-es/components/MenuItem/helpers/has-active-child.js.map +0 -1
  201. package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js +0 -8
  202. package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
  203. package/src/components/MenuItem/helpers/has-active-child.js +0 -10
  204. package/src/components/MenuItem/helpers/isUrlPathMatch.js +0 -10
  205. package/tests/unit/src/components/MenuItem/helpers/constants.js +0 -73
  206. package/tests/unit/src/components/MenuItem/helpers/has-active-child.test.js +0 -35
  207. package/tests/unit/src/components/MenuItem/helpers/is-url-path-match.test.js +0 -53
package/CHANGELOG.md CHANGED
@@ -3,31 +3,23 @@
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.33](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.32...v0.146.0-node18-tooltips.33) (2025-12-15)
7
7
 
8
- **Note:** Version bump only for package @blaze-cms/react-page-builder
9
-
10
-
11
-
12
-
13
-
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
- **Note:** Version bump only for package @blaze-cms/react-page-builder
17
8
 
9
+ ### Bug Fixes
18
10
 
11
+ * reopen autosuggest after search submission ([#5027](https://github.com/thebyte9/blaze/issues/5027)) ([b09acc1](https://github.com/thebyte9/blaze/commit/b09acc12a66d0a67639ff0edaae82b2d376f53dd))
19
12
 
20
13
 
14
+ ### Features
21
15
 
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)
16
+ * get carousel images from record data ([#4341](https://github.com/thebyte9/blaze/issues/4341)) ([904e8a3](https://github.com/thebyte9/blaze/commit/904e8a319ab053ee470dbb4477c3865d3a5435df))
23
17
 
24
- **Note:** Version bump only for package @blaze-cms/react-page-builder
25
18
 
26
19
 
27
20
 
28
21
 
29
-
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)
22
+ # [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)
31
23
 
32
24
 
33
25
  ### Bug Fixes
@@ -39,7 +31,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
39
31
 
40
32
 
41
33
 
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)
34
+ # [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)
43
35
 
44
36
  **Note:** Version bump only for package @blaze-cms/react-page-builder
45
37
 
@@ -47,7 +39,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
47
39
 
48
40
 
49
41
 
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)
42
+ # [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)
51
43
 
52
44
  **Note:** Version bump only for package @blaze-cms/react-page-builder
53
45
 
@@ -55,7 +47,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
55
47
 
56
48
 
57
49
 
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)
50
+ # [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)
59
51
 
60
52
  **Note:** Version bump only for package @blaze-cms/react-page-builder
61
53
 
@@ -63,7 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
63
55
 
64
56
 
65
57
 
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)
58
+ # [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)
67
59
 
68
60
  **Note:** Version bump only for package @blaze-cms/react-page-builder
69
61
 
@@ -71,134 +63,113 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
71
63
 
72
64
 
73
65
 
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
-
76
- **Note:** Version bump only for package @blaze-cms/react-page-builder
77
-
78
-
79
-
66
+ # [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)
80
67
 
81
68
 
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)
69
+ ### Bug Fixes
83
70
 
84
- **Note:** Version bump only for package @blaze-cms/react-page-builder
71
+ * 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))
85
72
 
86
73
 
87
74
 
88
75
 
89
76
 
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)
77
+ # [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)
91
78
 
92
79
 
93
80
  ### Bug Fixes
94
81
 
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))
82
+ * content group variant should render passed props ([#4960](https://github.com/thebyte9/blaze/issues/4960)) ([6c947bb](https://github.com/thebyte9/blaze/commit/6c947bba61283b03185fb6a8865a96b55b8246a6))
96
83
 
97
84
 
98
85
 
99
86
 
100
87
 
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)
88
+ # [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)
102
89
 
103
90
 
104
91
  ### Bug Fixes
105
92
 
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
- * 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
93
  * 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
- * reset input and results on click away ([#4930](https://github.com/thebyte9/blaze/issues/4930)) ([cebd271](https://github.com/thebyte9/blaze/commit/cebd271c09d0b32db5db52943888a342acd484d3))
111
94
 
112
95
 
113
96
  ### Features
114
97
 
115
- * add accordion content group variant ([#4906](https://github.com/thebyte9/blaze/issues/4906)) ([879f4e4](https://github.com/thebyte9/blaze/commit/879f4e45e3d35de6ab8e739adb0739a94a5bbfb4))
116
- * 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
98
  * 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
99
 
119
100
 
120
101
 
121
102
 
122
103
 
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)
104
+ # [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)
124
105
 
125
106
 
126
107
  ### Bug Fixes
127
108
 
128
- * remove card wrapper that is not required ([#4938](https://github.com/thebyte9/blaze/issues/4938)) ([52a449c](https://github.com/thebyte9/blaze/commit/52a449c4de5d8d806112ff4159b4d5556030e5c3))
129
-
130
-
131
-
132
-
133
-
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)
135
-
136
-
137
- ### Bug Fixes
138
-
139
- * render all group sections ([#4903](https://github.com/thebyte9/blaze/issues/4903)) ([fb79560](https://github.com/thebyte9/blaze/commit/fb7956017d8486ed345cfee889882d8c756c117f))
140
- * updated chart icon ([#4925](https://github.com/thebyte9/blaze/issues/4925)) ([0cc8721](https://github.com/thebyte9/blaze/commit/0cc87217889e3c5ab93adb4ba8d7506fc78d9316))
109
+ * prevent search input from interfering with other inputs ([#4955](https://github.com/thebyte9/blaze/issues/4955)) ([78c6036](https://github.com/thebyte9/blaze/commit/78c6036c0040f07acfa71493bbbd73cdc4ad03b1))
141
110
 
142
111
 
143
112
 
144
113
 
145
114
 
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)
115
+ # [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)
147
116
 
148
117
 
149
118
  ### Bug Fixes
150
119
 
151
- * update range when changing unit ([#4893](https://github.com/thebyte9/blaze/issues/4893)) ([817789a](https://github.com/thebyte9/blaze/commit/817789a1b5fac364ff004981855e04d25c6d8544))
120
+ * editor mode icon flicker improvements ([#4949](https://github.com/thebyte9/blaze/issues/4949)) ([211c72d](https://github.com/thebyte9/blaze/commit/211c72d83dc1da87e9bdef8e2a816af9ae3e321c))
121
+ * reset input and results on click away ([#4930](https://github.com/thebyte9/blaze/issues/4930)) ([cebd271](https://github.com/thebyte9/blaze/commit/cebd271c09d0b32db5db52943888a342acd484d3))
152
122
 
153
123
 
154
124
  ### Features
155
125
 
156
- * navigate on SearchFilter submit even without changes ([#4904](https://github.com/thebyte9/blaze/issues/4904)) ([082e72e](https://github.com/thebyte9/blaze/commit/082e72ee8fec81f93a6664d7375e947fa0972c32))
126
+ * add accordion content group variant ([#4906](https://github.com/thebyte9/blaze/issues/4906)) ([879f4e4](https://github.com/thebyte9/blaze/commit/879f4e45e3d35de6ab8e739adb0739a94a5bbfb4))
127
+ * 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))
157
128
 
158
129
 
159
130
 
160
131
 
161
132
 
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)
133
+ # [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)
163
134
 
164
- **Note:** Version bump only for package @blaze-cms/react-page-builder
165
135
 
136
+ ### Bug Fixes
166
137
 
138
+ * remove card wrapper that is not required ([#4938](https://github.com/thebyte9/blaze/issues/4938)) ([52a449c](https://github.com/thebyte9/blaze/commit/52a449c4de5d8d806112ff4159b4d5556030e5c3))
167
139
 
168
140
 
169
141
 
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)
171
-
172
- **Note:** Version bump only for package @blaze-cms/react-page-builder
173
142
 
174
143
 
144
+ # [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)
175
145
 
176
146
 
147
+ ### Bug Fixes
177
148
 
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)
149
+ * render all group sections ([#4903](https://github.com/thebyte9/blaze/issues/4903)) ([fb79560](https://github.com/thebyte9/blaze/commit/fb7956017d8486ed345cfee889882d8c756c117f))
150
+ * updated chart icon ([#4925](https://github.com/thebyte9/blaze/issues/4925)) ([0cc8721](https://github.com/thebyte9/blaze/commit/0cc87217889e3c5ab93adb4ba8d7506fc78d9316))
179
151
 
180
152
 
181
- ### Bug Fixes
182
153
 
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
154
 
185
155
 
156
+ # [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)
186
157
 
187
158
 
159
+ ### Bug Fixes
188
160
 
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)
161
+ * update range when changing unit ([#4893](https://github.com/thebyte9/blaze/issues/4893)) ([817789a](https://github.com/thebyte9/blaze/commit/817789a1b5fac364ff004981855e04d25c6d8544))
190
162
 
191
163
 
192
164
  ### Features
193
165
 
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))
166
+ * navigate on SearchFilter submit even without changes ([#4904](https://github.com/thebyte9/blaze/issues/4904)) ([082e72e](https://github.com/thebyte9/blaze/commit/082e72ee8fec81f93a6664d7375e947fa0972c32))
196
167
 
197
168
 
198
169
 
199
170
 
200
171
 
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)
172
+ # [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)
202
173
 
203
174
  **Note:** Version bump only for package @blaze-cms/react-page-builder
204
175
 
@@ -206,50 +177,33 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
206
177
 
207
178
 
208
179
 
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)
210
-
180
+ # [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)
211
181
 
212
- ### Bug Fixes
213
-
214
- * 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))
182
+ **Note:** Version bump only for package @blaze-cms/react-page-builder
227
183
 
228
184
 
229
185
 
230
186
 
231
187
 
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)
188
+ # [0.146.0-node18-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18-tooltips.0) (2025-09-09)
233
189
 
234
190
 
235
191
  ### Bug Fixes
236
192
 
237
- * menu setdisplaychildren logic ([#4629](https://github.com/thebyte9/blaze/issues/4629)) ([16c5c67](https://github.com/thebyte9/blaze/commit/16c5c674f4db1505131a8557d34f5349cf33fc42))
193
+ * add constant to avoid duplication ([07d6742](https://github.com/thebyte9/blaze/commit/07d6742f894ee8e063c17847fbb89559c23c5766))
194
+ * 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
195
  * added space between image counter ([fe23887](https://github.com/thebyte9/blaze/commit/fe23887db201c8f8c4d3c2df6b0f84adac84df9f))
239
196
  * apply search filters even when shouldAddFilters is false ([ac82708](https://github.com/thebyte9/blaze/commit/ac827080df3001f4643a2d7a69b8f5502646cf77))
240
197
  * changed image lightbox counter ([3e22b68](https://github.com/thebyte9/blaze/commit/3e22b6817d60d2b4fd4beac713f864fdb5b6826e))
241
198
  * close menu item on url change ([#4669](https://github.com/thebyte9/blaze/issues/4669)) ([697750a](https://github.com/thebyte9/blaze/commit/697750ac771a5ea89702e990e23d6e78b1c45a67))
242
199
  * encode dynamic menu urls ([#4497](https://github.com/thebyte9/blaze/issues/4497)) ([43695a0](https://github.com/thebyte9/blaze/commit/43695a01408a85a5cd94704d9b78f36fd3fb509f))
243
200
  * 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
201
  * fixed breaking tests, updated next to 14 ([fecb0e1](https://github.com/thebyte9/blaze/commit/fecb0e1d822bd69ebbaa084072a219f0fddd23f1))
246
202
  * fixed code smells ([95d874e](https://github.com/thebyte9/blaze/commit/95d874e7e392e8e39921c146c86987d515d090e5))
247
203
  * fixed more tests ([46a2fb9](https://github.com/thebyte9/blaze/commit/46a2fb9467f9f3c9cf320c9caf36c66503cc1f49))
248
204
  * fixed nan values on ranges ([#4582](https://github.com/thebyte9/blaze/issues/4582)) ([963ceec](https://github.com/thebyte9/blaze/commit/963ceec6b1eea027cb36b9358f7dee5e91e852ce))
249
205
  * fixed url change not reflecting on filters ([#4488](https://github.com/thebyte9/blaze/issues/4488)) ([0d6574f](https://github.com/thebyte9/blaze/commit/0d6574f5d5e698633c6032668cb8e1d914cf0342))
250
206
  * 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
207
  * 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
208
  * improve filter and pagination scroll client side ([#4803](https://github.com/thebyte9/blaze/issues/4803)) ([b438755](https://github.com/thebyte9/blaze/commit/b4387551cb9fea3197c83db6b245ecd11a2dd64a))
255
209
  * lint errors in node 18 dev ([#4784](https://github.com/thebyte9/blaze/issues/4784)) ([5b102df](https://github.com/thebyte9/blaze/commit/5b102df10a77abc62aa94ffa476f1c2156c17947))
@@ -259,17 +213,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
259
213
  * permission should be returned when returnPermission=true ([#4775](https://github.com/thebyte9/blaze/issues/4775)) ([5f9f903](https://github.com/thebyte9/blaze/commit/5f9f90341c871d9dc76b035b7511e71cb7f964fe))
260
214
  * persist last selected filter ([#4526](https://github.com/thebyte9/blaze/issues/4526)) ([5b15b57](https://github.com/thebyte9/blaze/commit/5b15b57f5b008a6a9b71a0ea4d5a7bc75b1779a3))
261
215
  * 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
216
  * 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
217
  * removed commented code ([5e93306](https://github.com/thebyte9/blaze/commit/5e933063ff0896dc67da0b33506231bc57427a40))
265
218
  * removed empty sapce ([461f486](https://github.com/thebyte9/blaze/commit/461f4868cf7a49208825851ff4dbc22a2c65974e))
266
219
  * resolving eslint warnings ([d4d1568](https://github.com/thebyte9/blaze/commit/d4d1568751c3f63a630bf396ff002c7fdc2532e8))
267
220
  * resolving eslint warnings ([a0fc18a](https://github.com/thebyte9/blaze/commit/a0fc18a4b4ef4f2f50edf2ae9fd24ab8fb4ef2bb))
221
+ * 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
222
  * 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
223
  * udpated yarn lock ([0cd4fa4](https://github.com/thebyte9/blaze/commit/0cd4fa4a185fca4b80b57e472badb771dd649ec2))
271
224
  * 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
225
  * updated jest dependences/setup ([6d6cba8](https://github.com/thebyte9/blaze/commit/6d6cba84b3c4ce4d4da7463098de19815a9fb7a6))
274
226
  * updated react-testing-library ([ec9a955](https://github.com/thebyte9/blaze/commit/ec9a955d8991989a8daf6910d084b2853f557647))
275
227
  * updated with dev ([90f545f](https://github.com/thebyte9/blaze/commit/90f545f1beabb35e26ba6fb2b45a7a0dfd072927))
@@ -283,10 +235,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
283
235
  ### Features
284
236
 
285
237
  * add Floating Side Button variant with MVP styling ([#4594](https://github.com/thebyte9/blaze/issues/4594)) ([effb843](https://github.com/thebyte9/blaze/commit/effb843fa9c226fbf07b3ad3dac359d81e164590))
238
+ * add hook for search content component ([#4866](https://github.com/thebyte9/blaze/issues/4866)) ([2fe2fb9](https://github.com/thebyte9/blaze/commit/2fe2fb91a13199b2c7cabbd734c3b79f9c962cad))
286
239
  * add list live variant ([#4727](https://github.com/thebyte9/blaze/issues/4727)) ([f482abf](https://github.com/thebyte9/blaze/commit/f482abfe03bf6db2d2d7eb462f8141ff80c1cc79))
287
240
  * add live property to content entities ([#4729](https://github.com/thebyte9/blaze/issues/4729)) ([8cdc5d6](https://github.com/thebyte9/blaze/commit/8cdc5d6b57945590ac97bd2da82c7ad74583c51d))
288
241
  * 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))
242
+ * add unit support to range filters ([fabc125](https://github.com/thebyte9/blaze/commit/fabc125355a4097c0fbe71e8419f207f93929926))
289
243
  * add video component events for youtube and jwplayer ([7b4aa78](https://github.com/thebyte9/blaze/commit/7b4aa78dea3798d736b32aed13760cc67445780c))
244
+ * added frontend links for editor mode ([#4801](https://github.com/thebyte9/blaze/issues/4801)) ([d5de370](https://github.com/thebyte9/blaze/commit/d5de370203abf467fcc3819d06c7375f4a6c1eb9))
290
245
  * added Loading component ([#4469](https://github.com/thebyte9/blaze/issues/4469)) ([957f09b](https://github.com/thebyte9/blaze/commit/957f09bab84e2e08df879abf4eec17293d167e00))
291
246
  * allow customisation of refine search text ([#4489](https://github.com/thebyte9/blaze/issues/4489)) ([2082c4b](https://github.com/thebyte9/blaze/commit/2082c4b9322882cf779c9619d32ff44793324723))
292
247
  * dynamic menu items ([#4099](https://github.com/thebyte9/blaze/issues/4099)) ([c1e052b](https://github.com/thebyte9/blaze/commit/c1e052ba93218d4f603c697cf8b533d2d0befbf1))
@@ -294,7 +249,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
294
249
  * 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
250
  * make editorview card placeholders dynamic ([#4722](https://github.com/thebyte9/blaze/issues/4722)) ([872be4a](https://github.com/thebyte9/blaze/commit/872be4ac9537fa8d52c705c4b120eec23a35afae))
296
251
  * 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
252
  * 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
253
  * updated react to 18 ([9335f84](https://github.com/thebyte9/blaze/commit/9335f8432b376494501abb9c3deef1ddaa9b35a8))
300
254
 
@@ -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,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,mBAAAT,CAAA,iBAAAA,CAAA,gBAAAU,OAAA,CAAAV,CAAA,0BAAA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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,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CA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E;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,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,GAAA,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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,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAmC,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD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AAE8C,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,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAAgE,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC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CAAiB,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,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,C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GC,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 getItemList,\n addItemsToList,\n removeItemsFromList,\n getCurrentUser\n};\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GA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A1B,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,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EA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A,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;