@blaze-cms/react-page-builder 0.146.0-core-styles.61 → 0.146.0-core-styles.62

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 (372) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/BannerContext/index.js +1 -2
  3. package/lib/BannerContext/index.js.map +1 -1
  4. package/lib/HOC/withInfiniteScroll.js +7 -8
  5. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  6. package/lib/HOC/withTitle.js +1 -2
  7. package/lib/HOC/withTitle.js.map +1 -1
  8. package/lib/application/query/index.js +9 -8
  9. package/lib/application/query/index.js.map +1 -1
  10. package/lib/components/BackToTop/BackToTop.js +1 -2
  11. package/lib/components/BackToTop/BackToTop.js.map +1 -1
  12. package/lib/components/Banner/AdSlotRender.js +2 -3
  13. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  14. package/lib/components/Banner/Banner.js +2 -3
  15. package/lib/components/Banner/Banner.js.map +1 -1
  16. package/lib/components/Banner/helpers.js +3 -3
  17. package/lib/components/Banner/helpers.js.map +1 -1
  18. package/lib/components/Banner/index.js +2 -3
  19. package/lib/components/Banner/index.js.map +1 -1
  20. package/lib/components/BlazeLink.js +1 -2
  21. package/lib/components/BlazeLink.js.map +1 -1
  22. package/lib/components/Breadcrumb/Breadcrumb.js +2 -3
  23. package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
  24. package/lib/components/Button.js +16 -17
  25. package/lib/components/Button.js.map +1 -1
  26. package/lib/components/Card/Card.js +1 -2
  27. package/lib/components/Card/Card.js.map +1 -1
  28. package/lib/components/Card/CardsContainer.js +2 -3
  29. package/lib/components/Card/CardsContainer.js.map +1 -1
  30. package/lib/components/Card/CardsRender.js +1 -2
  31. package/lib/components/Card/CardsRender.js.map +1 -1
  32. package/lib/components/Carousel/CarouselRender/CarouselRender.js +1 -0
  33. package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  34. package/lib/components/CarouselWrapper/DefaultCarousel.js +1 -2
  35. package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  36. package/lib/components/ClickWrapper.js +1 -2
  37. package/lib/components/ClickWrapper.js.map +1 -1
  38. package/lib/components/Code/Code.js +1 -2
  39. package/lib/components/Code/Code.js.map +1 -1
  40. package/lib/components/Code/ScriptTag.js +1 -2
  41. package/lib/components/Code/ScriptTag.js.map +1 -1
  42. package/lib/components/ContentGroup/ContentGroupTabs.js +2 -3
  43. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  44. package/lib/components/ContentGroup/helpers/get-sections-data.js +1 -0
  45. package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  46. package/lib/components/DataSummary/DataSummaryFactory.js +1 -2
  47. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  48. package/lib/components/DataSummary/DataSummaryRender.js +1 -0
  49. package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
  50. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +2 -3
  51. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  52. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +2 -3
  53. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  54. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +2 -3
  55. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  56. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +2 -3
  57. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  58. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +2 -3
  59. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  60. package/lib/components/DataSummary/DataSummaryTypes/index.js +6 -7
  61. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  62. package/lib/components/EmailConfirm/EmailConfirm.js +1 -2
  63. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  64. package/lib/components/ErrorMessage/ErrorMessage.js.map +1 -1
  65. package/lib/components/ErrorMessage/index.js +2 -3
  66. package/lib/components/ErrorMessage/index.js.map +1 -1
  67. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +1 -2
  68. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  69. package/lib/components/Image/GlobalLightbox/index.js +2 -3
  70. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  71. package/lib/components/Image/Image.js +1 -2
  72. package/lib/components/Image/Image.js.map +1 -1
  73. package/lib/components/Image/ImageFactory.js +2 -3
  74. package/lib/components/Image/ImageFactory.js.map +1 -1
  75. package/lib/components/Image/Lightbox/Lightbox.js +1 -2
  76. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  77. package/lib/components/ItemList/ItemListButton/ItemListButton.js +1 -2
  78. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  79. package/lib/components/ItemList/helpers/get-item-list-ids.js +1 -0
  80. package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  81. package/lib/components/ItemList/helpers/set-param-and-redirect.js +1 -0
  82. package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  83. package/lib/components/Layout/LayoutFactory.js +2 -3
  84. package/lib/components/Layout/LayoutFactory.js.map +1 -1
  85. package/lib/components/Layout/LayoutWithStickyTimer.js +1 -2
  86. package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  87. package/lib/components/LazyImage/index.js +2 -3
  88. package/lib/components/LazyImage/index.js.map +1 -1
  89. package/lib/components/List/ListFactory.js +1 -2
  90. package/lib/components/List/ListFactory.js.map +1 -1
  91. package/lib/components/List/ListRender.js +1 -2
  92. package/lib/components/List/ListRender.js.map +1 -1
  93. package/lib/components/List/components/Cards/CardsRender.js +1 -2
  94. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  95. package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -3
  96. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  97. package/lib/components/List/components/Full/FullRender.js +2 -3
  98. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  99. package/lib/components/List/components/Full/FullRenderItem.js +2 -3
  100. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  101. package/lib/components/List/components/Header/ListHeader.js +1 -0
  102. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  103. package/lib/components/List/components/Pagination/ListPagination.js +1 -2
  104. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  105. package/lib/components/List/components/helpers/check-if-should-render-banner.js +0 -1
  106. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  107. package/lib/components/List/components/helpers/check-if-should-render-gtm.js +0 -1
  108. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  109. package/lib/components/List/helpers/build-query-booster.js +2 -1
  110. package/lib/components/List/helpers/build-query-booster.js.map +1 -1
  111. package/lib/components/Loading/index.js +2 -3
  112. package/lib/components/Loading/index.js.map +1 -1
  113. package/lib/components/Menu/Menu.js +1 -2
  114. package/lib/components/Menu/Menu.js.map +1 -1
  115. package/lib/components/MenuItem/MenuItemRender.js +18 -7
  116. package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
  117. package/lib/components/Modal/Modal.js.map +1 -1
  118. package/lib/components/ModalAdapter/ModalAdapter.js +1 -1
  119. package/lib/components/ModalAdapter/ModalAdapter.js.map +1 -1
  120. package/lib/components/ModalAdapter/index.js +2 -3
  121. package/lib/components/ModalAdapter/index.js.map +1 -1
  122. package/lib/components/SearchContent/SearchContent.js +1 -2
  123. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  124. package/lib/components/SearchContent/SearchContentItems.js +1 -0
  125. package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
  126. package/lib/components/SearchFilter/SearchFilter/FiltersList.js +2 -3
  127. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  128. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +1 -2
  129. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  130. package/lib/components/SearchFilter/SearchFilterContainer.js +1 -3
  131. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  132. package/lib/components/SearchFilter/components/Checkbox.js +1 -2
  133. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  134. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  135. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  136. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  137. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +1 -0
  138. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  139. package/lib/components/SearchFilter/helpers/get-select-options.js +1 -0
  140. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  141. package/lib/components/SearchFilter/helpers/parse-filter-value.js +1 -0
  142. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  143. package/lib/components/SearchFilterSort/SearchFilterSort.js +1 -0
  144. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  145. package/lib/components/SocialFollow/SocialFollowRender.js +1 -0
  146. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  147. package/lib/components/Video/VideoModal.js +1 -2
  148. package/lib/components/Video/VideoModal.js.map +1 -1
  149. package/lib/components/Video/VideoRender.js +1 -2
  150. package/lib/components/Video/VideoRender.js.map +1 -1
  151. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +1 -2
  152. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  153. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +1 -2
  154. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  155. package/lib/components/Video/providers/Vimeo/VimeoProvider.js +15 -16
  156. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  157. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +1 -2
  158. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  159. package/lib/components/Video/providers/get-provider.js +6 -7
  160. package/lib/components/Video/providers/get-provider.js.map +1 -1
  161. package/lib/components/index.js +31 -32
  162. package/lib/components/index.js.map +1 -1
  163. package/lib/helpers/build-query-fields.js +1 -0
  164. package/lib/helpers/build-query-fields.js.map +1 -1
  165. package/lib/helpers/build-raw-query-stringified.js +1 -0
  166. package/lib/helpers/build-raw-query-stringified.js.map +1 -1
  167. package/lib/helpers/check-props-to-use.js +1 -0
  168. package/lib/helpers/check-props-to-use.js.map +1 -1
  169. package/lib/helpers/get-entities-with-banner.js +1 -1
  170. package/lib/helpers/get-generic-render-variables.js +1 -0
  171. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  172. package/lib/helpers/get-wrapped-value-with-link.js +1 -0
  173. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  174. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js +1 -0
  175. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  176. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +1 -1
  177. package/lib/helpers/is-filter-entitys-id.js +0 -1
  178. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  179. package/lib/helpers/parse-TextBlock.js +1 -2
  180. package/lib/helpers/parse-TextBlock.js.map +1 -1
  181. package/lib/helpers/parse-props-to-display.js +1 -2
  182. package/lib/helpers/parse-props-to-display.js.map +1 -1
  183. package/lib/helpers/process-data-summary-value.js +2 -3
  184. package/lib/helpers/process-data-summary-value.js.map +1 -1
  185. package/lib/helpers/remove-unwanted-characters.js +1 -1
  186. package/lib/helpers/render-children.js +3 -3
  187. package/lib/helpers/render-children.js.map +1 -1
  188. package/lib/hooks/helpers/RenderComponent.js +0 -1
  189. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  190. package/lib/hooks/helpers/StoreImages.js +3 -4
  191. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  192. package/lib/hooks/helpers/check-collisions.js +0 -1
  193. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  194. package/lib/hooks/helpers/get-lightbox-images.js +7 -8
  195. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  196. package/lib/hooks/helpers/inject-textblock-banners.js +1 -1
  197. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  198. package/lib/hooks/use-page-builder.js +3 -3
  199. package/lib/hooks/use-page-builder.js.map +1 -1
  200. package/lib/hooks/use-portal.js +1 -2
  201. package/lib/hooks/use-portal.js.map +1 -1
  202. package/lib/utils/get-class-modifiers.js +0 -1
  203. package/lib/utils/get-class-modifiers.js.map +1 -1
  204. package/lib/utils/get-props-to-display-modifiers.js +1 -0
  205. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  206. package/lib/variants/FloatingSideButton/index.js.map +1 -1
  207. package/lib/variants/HeroImage/index.js.map +1 -1
  208. package/lib/variants/Infographic/index.js +2 -3
  209. package/lib/variants/Infographic/index.js.map +1 -1
  210. package/lib/variants/LiveBlogList/LiveBlogList.js +1 -2
  211. package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -1
  212. package/lib/variants/LiveBlogList/index.js +2 -3
  213. package/lib/variants/LiveBlogList/index.js.map +1 -1
  214. package/lib/variants/LongformGallery/LongformGallery.js +1 -0
  215. package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
  216. package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  217. package/lib/variants/LongformGallery/index.js +2 -3
  218. package/lib/variants/LongformGallery/index.js.map +1 -1
  219. package/lib/variants/LongformRow/index.js.map +1 -1
  220. package/lib/variants/ParallaxImageTextRight/index.js.map +1 -1
  221. package/lib/variants/SlideSummary/index.js +2 -3
  222. package/lib/variants/SlideSummary/index.js.map +1 -1
  223. package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js +1 -0
  224. package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
  225. package/lib/variants/ThumbnailCarousel/index.js +2 -3
  226. package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
  227. package/lib-es/HOC/recreateOnNavigation.js.map +1 -1
  228. package/lib-es/HOC/withTitle.js.map +1 -1
  229. package/lib-es/application/query/index.js.map +1 -1
  230. package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
  231. package/lib-es/components/Banner/Banner.js.map +1 -1
  232. package/lib-es/components/Banner/BannerRender.js.map +1 -1
  233. package/lib-es/components/Banner/helpers.js.map +1 -1
  234. package/lib-es/components/Banner/index.js +1 -1
  235. package/lib-es/components/Banner/index.js.map +1 -1
  236. package/lib-es/components/Card/Card.js.map +1 -1
  237. package/lib-es/components/Card/CardsFactory.js.map +1 -1
  238. package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  239. package/lib-es/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  240. package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
  241. package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  242. package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  243. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  244. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  245. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  246. package/lib-es/components/DataSummary/DataSummaryTypes/index.js +5 -5
  247. package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  248. package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  249. package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  250. package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  251. package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
  252. package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
  253. package/lib-es/components/ErrorMessage/index.js +1 -1
  254. package/lib-es/components/ErrorMessage/index.js.map +1 -1
  255. package/lib-es/components/Iframe/Iframe.js.map +1 -1
  256. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  257. package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  258. package/lib-es/components/Image/GlobalLightbox/index.js +1 -1
  259. package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
  260. package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  261. package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  262. package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  263. package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  264. package/lib-es/components/Layout/Layout.js.map +1 -1
  265. package/lib-es/components/Layout/LayoutFactory.js +1 -1
  266. package/lib-es/components/Layout/LayoutFactory.js.map +1 -1
  267. package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  268. package/lib-es/components/LazyImage/index.js +1 -1
  269. package/lib-es/components/LazyImage/index.js.map +1 -1
  270. package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
  271. package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
  272. package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
  273. package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
  274. package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
  275. package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
  276. package/lib-es/components/List/helpers/get-list-query.js.map +1 -1
  277. package/lib-es/components/Loading/Loading.js.map +1 -1
  278. package/lib-es/components/Loading/index.js +1 -1
  279. package/lib-es/components/Loading/index.js.map +1 -1
  280. package/lib-es/components/Menu/Menu.js.map +1 -1
  281. package/lib-es/components/MenuItem/MenuItemRender.js +16 -3
  282. package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -1
  283. package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -1
  284. package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js.map +1 -1
  285. package/lib-es/components/ModalAdapter/ModalAdapter.js +1 -1
  286. package/lib-es/components/ModalAdapter/ModalAdapter.js.map +1 -1
  287. package/lib-es/components/ModalAdapter/index.js +1 -1
  288. package/lib-es/components/ModalAdapter/index.js.map +1 -1
  289. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  290. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  291. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  292. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  293. package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
  294. package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
  295. package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
  296. package/lib-es/components/SearchFilter/constants.js.map +1 -1
  297. package/lib-es/components/SearchFilter/helpers/build-list-name-query.js.map +1 -1
  298. package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  299. package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  300. package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  301. package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  302. package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  303. package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  304. package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  305. package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  306. package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
  307. package/lib-es/components/Video/Video.js.map +1 -1
  308. package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  309. package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  310. package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  311. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  312. package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  313. package/lib-es/components/Video/providers/get-provider.js +5 -5
  314. package/lib-es/components/Video/providers/get-provider.js.map +1 -1
  315. package/lib-es/components/Wrapper.js.map +1 -1
  316. package/lib-es/components/index.js +30 -30
  317. package/lib-es/components/index.js.map +1 -1
  318. package/lib-es/constants/componentsDefaultValues.js.map +1 -1
  319. package/lib-es/constants/index.js.map +1 -1
  320. package/lib-es/helpers/build-az-filter.js.map +1 -1
  321. package/lib-es/helpers/build-filters-query.js.map +1 -1
  322. package/lib-es/helpers/build-inherited-filters.js.map +1 -1
  323. package/lib-es/helpers/build-props-query.js.map +1 -1
  324. package/lib-es/helpers/build-query-fields.js.map +1 -1
  325. package/lib-es/helpers/build-query-key.js.map +1 -1
  326. package/lib-es/helpers/build-raw-query-base.js.map +1 -1
  327. package/lib-es/helpers/build-raw-query-stringified.js.map +1 -1
  328. package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
  329. package/lib-es/helpers/build-sort-values.js.map +1 -1
  330. package/lib-es/helpers/get-component-id.js.map +1 -1
  331. package/lib-es/helpers/get-display-count-data.js.map +1 -1
  332. package/lib-es/helpers/get-entity-data.js.map +1 -1
  333. package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
  334. package/lib-es/helpers/get-inherited-filters.js.map +1 -1
  335. package/lib-es/helpers/get-modifiers.js.map +1 -1
  336. package/lib-es/helpers/get-pagination-index.js.map +1 -1
  337. package/lib-es/helpers/get-query-props.js.map +1 -1
  338. package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
  339. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  340. package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
  341. package/lib-es/helpers/process-data-summary-value.js +1 -1
  342. package/lib-es/hooks/helpers/StoreImages.js +2 -2
  343. package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
  344. package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
  345. package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
  346. package/lib-es/hooks/helpers/inject-textblock-banners.js +1 -1
  347. package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
  348. package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
  349. package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
  350. package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -1
  351. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  352. package/lib-es/utils/component-map.js.map +1 -1
  353. package/lib-es/utils/get-class-modifiers.js.map +1 -1
  354. package/lib-es/utils/variant-handler.js.map +1 -1
  355. package/lib-es/variants/Infographic/index.js +1 -1
  356. package/lib-es/variants/Infographic/index.js.map +1 -1
  357. package/lib-es/variants/Infographic/useInfographic.js.map +1 -1
  358. package/lib-es/variants/LiveBlogList/LiveBlogList.js.map +1 -1
  359. package/lib-es/variants/LiveBlogList/index.js +1 -1
  360. package/lib-es/variants/LiveBlogList/index.js.map +1 -1
  361. package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  362. package/lib-es/variants/LongformGallery/constants.js.map +1 -1
  363. package/lib-es/variants/LongformGallery/index.js +1 -1
  364. package/lib-es/variants/LongformGallery/index.js.map +1 -1
  365. package/lib-es/variants/SlideSummary/index.js +1 -1
  366. package/lib-es/variants/SlideSummary/index.js.map +1 -1
  367. package/lib-es/variants/ThumbnailCarousel/index.js +1 -1
  368. package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -1
  369. package/package.json +2 -2
  370. package/src/components/MenuItem/MenuItemRender.js +17 -3
  371. package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +25 -2
  372. package/tests/unit/src/components/MenuItem/__snapshots__/MenuItem.test.js.snap +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"get-class-modifiers.js","names":["BUTTON","BUTTON_ICON","CLASS_MODIFIERS","ICON_BUTTON","LINK","CODE","COMPONENTS_DEFAULT_VALUES","BUTTON_TYPE","DEFAULT","DESKTOP","GTM_CLASS_NAME","HIDE","ICON","MOBILE","MODIFIER","SIZE","STICKY","STYLE","TABLET","WIDTH","ALIGNMENT","PARALLAX","commonProps","responsiveProps","buttonProps","iconProps","commonAttributes","props","prefix","supportedTypes","row","column","button","icon","textBlock","_objectSpread","banner","image","hero","video","list","code","getClassModifiers","type","supportedProps","defaultValues","modifiers","map","prop","propValue","stringValue","isResponsiveProp","includes","undefined","filter","Boolean","unshift","join"],"sources":["../../src/utils/get-class-modifiers.js"],"sourcesContent":["import { BUTTON, BUTTON_ICON, CLASS_MODIFIERS, ICON_BUTTON, LINK, CODE } from '../constants';\nimport COMPONENTS_DEFAULT_VALUES from '../constants/componentsDefaultValues';\n\nconst {\n BUTTON_TYPE,\n DEFAULT,\n DESKTOP,\n GTM_CLASS_NAME,\n HIDE,\n ICON,\n MOBILE,\n MODIFIER,\n SIZE,\n STICKY,\n STYLE,\n TABLET,\n WIDTH,\n ALIGNMENT,\n PARALLAX\n} = CLASS_MODIFIERS;\nconst commonProps = [GTM_CLASS_NAME, MODIFIER, PARALLAX];\nconst responsiveProps = [DESKTOP, TABLET, MOBILE];\nconst buttonProps = [SIZE, BUTTON_TYPE, ICON, STYLE, ALIGNMENT, ...commonProps];\nconst iconProps = [BUTTON_TYPE, ...commonProps];\n\nconst commonAttributes = { props: commonProps, prefix: null };\n\nconst supportedTypes = {\n row: { props: [WIDTH, STICKY, ...responsiveProps, ...commonProps] },\n column: { props: [WIDTH, STICKY, ...responsiveProps, ...commonProps] },\n button: {\n props: buttonProps,\n prefix: BUTTON\n },\n icon: { props: iconProps, prefix: ICON_BUTTON },\n textBlock: { ...commonAttributes },\n banner: { ...commonAttributes },\n image: { ...commonAttributes },\n hero: { ...commonAttributes },\n video: { ...commonAttributes },\n list: { ...commonAttributes },\n code: { ...commonAttributes, prefix: CODE }\n};\n\nexport default function getClassModifiers(type, props) {\n const { props: supportedProps, prefix } = supportedTypes[type] || {};\n const defaultValues = COMPONENTS_DEFAULT_VALUES[type] || {};\n if (!supportedProps) return '';\n\n const modifiers = supportedProps\n .map(prop => {\n const propValue = props[prop];\n const stringValue = typeof propValue === 'boolean' ? prop : propValue;\n\n const isResponsiveProp = responsiveProps.includes(prop);\n if (prop === ICON) return propValue ? BUTTON_ICON : '';\n if (prop === MODIFIER && propValue) return `${propValue}`;\n if (propValue === DEFAULT || stringValue === type) return '';\n if (isResponsiveProp) return propValue ? '' : `${HIDE}-${prop}`;\n if (propValue === null || propValue === undefined) return defaultValues[prop] || '';\n if (prop === WIDTH || prop === LINK) return `${type}--${propValue}`;\n if (prop === GTM_CLASS_NAME) return `${propValue}`;\n if (prop === STICKY) return propValue ? `${type}--${stringValue}` : '';\n if (prop === PARALLAX) return propValue ? `${type}--${stringValue}` : '';\n\n return stringValue ? `${type}--${stringValue}` : '';\n })\n .filter(Boolean);\n if (prefix) modifiers.unshift(prefix);\n\n return modifiers.join(' ');\n}\n"],"mappings":";;;AAAA,SAASA,MAAM,EAAEC,WAAW,EAAEC,eAAe,EAAEC,WAAW,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC5F,OAAOC,yBAAyB,MAAM,sCAAsC;AAE5E,MAAM;EACJC,WAAW;EACXC,OAAO;EACPC,OAAO;EACPC,cAAc;EACdC,IAAI;EACJC,IAAI;EACJC,MAAM;EACNC,QAAQ;EACRC,IAAI;EACJC,MAAM;EACNC,KAAK;EACLC,MAAM;EACNC,KAAK;EACLC,SAAS;EACTC;AACF,CAAC,GAAGnB,eAAe;AACnB,MAAMoB,WAAW,GAAG,CAACZ,cAAc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,IAAI,KAAK3B,QAAQ,EAAE,OAAO4B,SAAS,GAAI,GAAEN,IAAK,KAAIO,WAAY,EAAC,GAAG,EAAE;IAExE,OAAOA,WAAW,GAAI,GAAEP,IAAK,KAAIO,WAAY,EAAC,GAAG,EAAE;EACrD,CAAC,CAAC,CACDI,MAAM,CAACC,OAAO,CAAC;EAClB,IAAI3B,MAAM,EAAEkB,SAAS,CAACU,OAAO,CAAC5B,MAAM,CAAC;EAErC,OAAOkB,SAAS,CAACW,IAAI,CAAC,GAAG,CAAC;AAC5B","ignoreList":[]}
1
+ {"version":3,"file":"get-class-modifiers.js","names":["BUTTON","BUTTON_ICON","CLASS_MODIFIERS","ICON_BUTTON","LINK","CODE","COMPONENTS_DEFAULT_VALUES","BUTTON_TYPE","DEFAULT","DESKTOP","GTM_CLASS_NAME","HIDE","ICON","MOBILE","MODIFIER","SIZE","STICKY","STYLE","TABLET","WIDTH","ALIGNMENT","PARALLAX","commonProps","responsiveProps","buttonProps","iconProps","commonAttributes","props","prefix","supportedTypes","row","column","button","icon","textBlock","_objectSpread","banner","image","hero","video","list","code","getClassModifiers","type","supportedProps","defaultValues","modifiers","map","prop","propValue","stringValue","isResponsiveProp","includes","undefined","filter","Boolean","unshift","join"],"sources":["../../src/utils/get-class-modifiers.js"],"sourcesContent":["import { BUTTON, BUTTON_ICON, CLASS_MODIFIERS, ICON_BUTTON, LINK, CODE } from '../constants';\nimport COMPONENTS_DEFAULT_VALUES from '../constants/componentsDefaultValues';\n\nconst {\n BUTTON_TYPE,\n DEFAULT,\n DESKTOP,\n GTM_CLASS_NAME,\n HIDE,\n ICON,\n MOBILE,\n MODIFIER,\n SIZE,\n STICKY,\n STYLE,\n TABLET,\n WIDTH,\n ALIGNMENT,\n PARALLAX\n} = CLASS_MODIFIERS;\nconst commonProps = [GTM_CLASS_NAME, MODIFIER, PARALLAX];\nconst responsiveProps = [DESKTOP, TABLET, MOBILE];\nconst buttonProps = [SIZE, BUTTON_TYPE, ICON, STYLE, ALIGNMENT, ...commonProps];\nconst iconProps = [BUTTON_TYPE, ...commonProps];\n\nconst commonAttributes = { props: commonProps, prefix: null };\n\nconst supportedTypes = {\n row: { props: [WIDTH, STICKY, ...responsiveProps, ...commonProps] },\n column: { props: [WIDTH, STICKY, ...responsiveProps, ...commonProps] },\n button: {\n props: buttonProps,\n prefix: BUTTON\n },\n icon: { props: iconProps, prefix: ICON_BUTTON },\n textBlock: { ...commonAttributes },\n banner: { ...commonAttributes },\n image: { ...commonAttributes },\n hero: { ...commonAttributes },\n video: { ...commonAttributes },\n list: { ...commonAttributes },\n code: { ...commonAttributes, prefix: CODE }\n};\n\nexport default function getClassModifiers(type, props) {\n const { props: supportedProps, prefix } = supportedTypes[type] || {};\n const defaultValues = COMPONENTS_DEFAULT_VALUES[type] || {};\n if (!supportedProps) return '';\n\n const modifiers = supportedProps\n .map(prop => {\n const propValue = props[prop];\n const stringValue = typeof propValue === 'boolean' ? prop : propValue;\n\n const isResponsiveProp = responsiveProps.includes(prop);\n if (prop === ICON) return propValue ? BUTTON_ICON : '';\n if (prop === MODIFIER && propValue) return `${propValue}`;\n if (propValue === DEFAULT || stringValue === type) return '';\n if (isResponsiveProp) return propValue ? '' : `${HIDE}-${prop}`;\n if (propValue === null || propValue === undefined) return defaultValues[prop] || '';\n if (prop === WIDTH || prop === LINK) return `${type}--${propValue}`;\n if (prop === GTM_CLASS_NAME) return `${propValue}`;\n if (prop === STICKY) return propValue ? `${type}--${stringValue}` : '';\n if (prop === PARALLAX) return propValue ? `${type}--${stringValue}` : '';\n\n return stringValue ? `${type}--${stringValue}` : '';\n })\n .filter(Boolean);\n if (prefix) modifiers.unshift(prefix);\n\n return modifiers.join(' ');\n}\n"],"mappings":";;;AAAA,SAASA,MAAM,EAAEC,WAAW,EAAEC,eAAe,EAAEC,WAAW,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC5F,OAAOC,yBAAyB,MAAM,sCAAsC;AAE5E,MAAM;EACJC,WAAW;EACXC,O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O,GAAGuC,IAAI,KAAKM,SAAS,EAAE;IACnE,IAAID,IAAI,KAAKtC,cAAc,EAAE,OAAO,GAAGuC,SAAS,EAAE;IAClD,IAAID,IAAI,KAAKhC,MAAM,EAAE,OAAOiC,SAAS,GAAG,GAAGN,IAAI,KAAKO,WAAW,EAAE,GAAG,EAAE;IACtE,IAAIF,IAAI,KAAK3B,QAAQ,EAAE,OAAO4B,SAAS,GAAG,GAAGN,IAAI,KAAKO,WAAW,EAAE,GAAG,EAAE;IAExE,OAAOA,WAAW,GAAG,GAAGP,IAAI,KAAKO,WAAW,EAAE,GAAG,EAAE;EACrD,CAAC,CAAC,CACDI,MAAM,CAACC,OAAO,CAAC;EAClB,IAAI3B,MAAM,EAAEkB,SAAS,CAACU,OAAO,CAAC5B,MAAM,CAAC;EAErC,OAAOkB,SAAS,CAACW,IAAI,CAAC,GAAG,CAAC;AAC5B","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"variant-handler.js","names":["BlazeError","variantMapHandler","variants","Map","get","key","getAll","Array","from","entries","add","variant","validate","set","has","console","warn","variantHandler"],"sources":["../../src/utils/variant-handler.js"],"sourcesContent":["import { BlazeError } from '@blaze-cms/core-errors';\n\nfunction variantMapHandler() {\n const variants = new Map();\n\n function get(key) {\n return variants.get(key);\n }\n\n function getAll() {\n return Array.from(variants.entries());\n }\n\n function add(key, variant) {\n validate(key, variant);\n variants.set(key, variant);\n }\n\n function validate(key, variant) {\n if (!key || !variant) throw new BlazeError('Variant requires key and component');\n // eslint-disable-next-line no-console\n if (variants.has(key) && key !== 'array') console.warn(`Variant already exists: ${key}`); // todo: restore error // throw new BlazeError(`Variant already exists: ${key}`);\n }\n\n return {\n add,\n get,\n getAll\n };\n}\n\nconst variantHandler = variantMapHandler();\n\nexport default variantHandler;\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,wBAAwB;AAEnD,SAASC,iBAAiBA,CAAA,EAAG;EAC3B,MAAMC,QAAQ,GAAG,IAAIC,GAAG,CAAC,CAAC;EAE1B,SAASC,GAAGA,CAACC,GAAG,EAAE;IAChB,OAAOH,QAAQ,CAACE,GAAG,CAACC,GAAG,CAAC;EAC1B;EAEA,SAASC,MAAMA,CAAA,EAAG;IAChB,OAAOC,KAAK,CAACC,IAAI,CAACN,QAAQ,CAACO,OAAO,CAAC,CAAC,CAAC;EACvC;EAEA,SAASC,GAAGA,CAACL,GAAG,EAAEM,OAAO,EAAE;IACzBC,QAAQ,CAACP,GAAG,EAAEM,OAAO,CAAC;IACtBT,QAAQ,CAACW,GAAG,CAACR,GAAG,EAAEM,OAAO,CAAC;EAC5B;EAEA,SAASC,QAAQA,CAACP,GAAG,EAAEM,OAAO,EAAE;IAC9B,IAAI,CAACN,GAAG,IAAI,CAACM,OAAO,EAAE,MAAM,IAAIX,UAAU,CAAC,oCAAoC,CAAC;IAChF;IACA,IAAIE,QAAQ,CAACY,GAAG,CAACT,GAAG,CAAC,IAAIA,GAAG,KAAK,OAAO,EAAEU,OAAO,CAACC,IAAI,CAAE,2BAA0BX,GAAI,EAAC,CAAC,CAAC,CAAC;EAC5F;EAEA,OAAO;IACLK,GAAG;IACHN,GAAG;IACHE;EACF,CAAC;AACH;AAEA,MAAMW,cAAc,GAAGhB,iBAAiB,CAAC,CAAC;AAE1C,eAAegB,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"variant-handler.js","names":["BlazeError","variantMapHandler","variants","Map","get","key","getAll","Array","from","entries","add","variant","validate","set","has","console","warn","variantHandler"],"sources":["../../src/utils/variant-handler.js"],"sourcesContent":["import { BlazeError } from '@blaze-cms/core-errors';\n\nfunction variantMapHandler() {\n const variants = new Map();\n\n function get(key) {\n return variants.get(key);\n }\n\n function getAll() {\n return Array.from(variants.entries());\n }\n\n function add(key, variant) {\n validate(key, variant);\n variants.set(key, variant);\n }\n\n function validate(key, variant) {\n if (!key || !variant) throw new BlazeError('Variant requires key and component');\n // eslint-disable-next-line no-console\n if (variants.has(key) && key !== 'array') console.warn(`Variant already exists: ${key}`); // todo: restore error // throw new BlazeError(`Variant already exists: ${key}`);\n }\n\n return {\n add,\n get,\n getAll\n };\n}\n\nconst variantHandler = variantMapHandler();\n\nexport default variantHandler;\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,wBAAwB;AAEnD,SAASC,iBAAiBA,CAAA,EAAG;EAC3B,MAAMC,QAAQ,GAAG,IAAIC,GAAG,CAAC,CAAC;EAE1B,SAASC,GAAGA,CAACC,GAAG,EAAE;IAChB,OAAOH,QAAQ,CAACE,GAAG,CAACC,GAAG,CAAC;EAC1B;EAEA,SAASC,MAAMA,CAAA,EAAG;IAChB,OAAOC,KAAK,CAACC,IAAI,CAACN,QAAQ,CAACO,OAAO,CAAC,CAAC,CAAC;EACvC;EAEA,SAASC,GAAGA,CAACL,GAAG,EAAEM,OAAO,EAAE;IACzBC,QAAQ,CAACP,GAAG,EAAEM,OAAO,CAAC;IACtBT,QAAQ,CAACW,GAAG,CAACR,GAAG,EAAEM,OAAO,CAAC;EAC5B;EAEA,SAASC,QAAQA,CAACP,GAAG,EAAEM,OAAO,EAAE;IAC9B,IAAI,CAACN,GAAG,IAAI,CAACM,OAAO,EAAE,MAAM,IAAIX,UAAU,CAAC,oCAAoC,CAAC;IAChF;IACA,IAAIE,QAAQ,CAACY,GAAG,CAACT,GAAG,CAAC,IAAIA,GAAG,KAAK,OAAO,EAAEU,OAAO,CAACC,IAAI,CAAC,2BAA2BX,GAAG,EAAE,CAAC,CAAC,CAAC;EAC5F;EAEA,OAAO;IACLK,GAAG;IACHN,GAAG;IACHE;EACF,CAAC;AACH;AAEA,MAAMW,cAAc,GAAGhB,iBAAiB,CAAC,CAAC;AAE1C,eAAegB,cAAc","ignoreList":[]}
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import dynamic from 'next/dynamic';
5
5
  const Infographic = {
6
6
  getSettings: componentSettings => _objectSpread({}, componentSettings),
7
- VariantComponent: dynamic(() => import( /* webpackChunkName: "blazePbVariantInfographic" */'./Infographic'))
7
+ VariantComponent: dynamic(() => import(/* webpackChunkName: "blazePbVariantInfographic" */'./Infographic'))
8
8
  };
9
9
  export default Infographic;
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["dynamic","Infographic","getSettings","componentSettings","_objectSpread","VariantComponent"],"sources":["../../../src/variants/Infographic/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst Infographic = {\n getSettings: componentSettings => ({\n ...componentSettings\n }),\n VariantComponent: dynamic(() =>\n import(/* webpackChunkName: \"blazePbVariantInfographic\" */ './Infographic')\n )\n};\n\nexport default Infographic;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,WAAW,GAAG;EAClBC,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,KACzBD,iBAAiB,CACpB;EACFE,gBAAgB,EAAEL,OAAO,CAAC,MACxB,MAAM,EAAC,mDAAoD,eAAe,CAC5E;AACF,CAAC;AAED,eAAeC,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["dynamic","Infographic","getSettings","componentSettings","_objectSpread","VariantComponent"],"sources":["../../../src/variants/Infographic/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst Infographic = {\n getSettings: componentSettings => ({\n ...componentSettings\n }),\n VariantComponent: dynamic(() =>\n import(/* webpackChunkName: \"blazePbVariantInfographic\" */ './Infographic')\n )\n};\n\nexport default Infographic;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,WAAW,GAAG;EAClBC,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,KACzBD,iBAAiB,CACpB;EACFE,gBAAgB,EAAEL,OAAO,CAAC,MACxB,MAAM,CAAC,mDAAoD,eAAe,CAC5E;AACF,CAAC;AAED,eAAeC,WAAW","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"useInfographic.js","names":["useInView","useInfographic","_ref","className","_className","props","_objectWithoutProperties","_excluded","isIntersecting","contentRef","once","offset","_objectSpread"],"sources":["../../../src/variants/Infographic/useInfographic.js"],"sourcesContent":["import { useInView } from '@blaze-react/utils/lib/customHooks';\n\nconst useInfographic = ({ className: _className, ...props }) => {\n const [isIntersecting, contentRef] = useInView({\n once: true,\n offset: '200px'\n });\n\n const className = `${_className} infographic${isIntersecting ? ' infographic__active' : ''}`;\n\n return {\n ...props,\n className,\n contentRef\n };\n};\n\nexport default useInfographic;\n"],"mappings":";;;;;AAAA,SAASA,SAAS,QAAQ,oCAAoC;AAE9D,MAAMC,cAAc,GAAGC,IAAA,IAAyC;EAAA,IAAxC;MAAEC,SAAS,EAAEC;IAAqB,CAAC,GAAAF,IAAA;IAAPG,KAAK,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA;EACvD,MAAM,CAACC,cAAc,EAAEC,UAAU,CAAC,GAAGT,SAAS,CAAC;IAC7CU,IAAI,EAAE,IAAI;IACVC,MAAM,EAAE;EACV,CAAC,CAAC;EAEF,MAAMR,SAAS,GAAI,GAAEC,UAAW,eAAcI,cAAc,GAAG,sBAAsB,GAAG,EAAG,EAAC;EAE5F,OAAAI,aAAA,CAAAA,aAAA,KACKP,KAAK;IACRF,SAAS;IACTM;EAAU;AAEd,CAAC;AAED,eAAeR,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"useInfographic.js","names":["useInView","useInfographic","_ref","className","_className","props","_objectWithoutProperties","_excluded","isIntersecting","contentRef","once","offset","_objectSpread"],"sources":["../../../src/variants/Infographic/useInfographic.js"],"sourcesContent":["import { useInView } from '@blaze-react/utils/lib/customHooks';\n\nconst useInfographic = ({ className: _className, ...props }) => {\n const [isIntersecting, contentRef] = useInView({\n once: true,\n offset: '200px'\n });\n\n const className = `${_className} infographic${isIntersecting ? ' infographic__active' : ''}`;\n\n return {\n ...props,\n className,\n contentRef\n };\n};\n\nexport default useInfographic;\n"],"mappings":";;;;;AAAA,SAASA,SAAS,QAAQ,oCAAoC;AAE9D,MAAMC,cAAc,GAAGC,IAAA,IAAyC;EAAA,IAAxC;MAAEC,SAAS,EAAEC;IAAqB,CAAC,GAAAF,IAAA;IAAPG,KAAK,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA;EACvD,MAAM,CAACC,cAAc,EAAEC,UAAU,CAAC,GAAGT,SAAS,CAAC;IAC7CU,IAAI,EAAE,IAAI;IACVC,MAAM,EAAE;EACV,CAAC,CAAC;EAEF,MAAMR,SAAS,GAAG,GAAGC,UAAU,eAAeI,cAAc,GAAG,sBAAsB,GAAG,EAAE,EAAE;EAE5F,OAAAI,aAAA,CAAAA,aAAA,KACKP,KAAK;IACRF,SAAS;IACTM;EAAU;AAEd,CAAC;AAED,eAAeR,cAAc","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"LiveBlogList.js","names":["React","useRef","useState","useEffect","dayjs","relativeTime","Button","FaPlus","FaMinus","BsPinAngleFill","extend","COLLAPSE_HEIGHT","LiveBlogList","children","date","published","featured","alternativeHeadline","isExpanded","setIsExpanded","shouldShowButton","setShouldShowButton","displayedDate","displayedTime","setDisplayedDate","usedDate","contentRef","el","current","check","scrollHeight","ResizeObserver","ro","observe","disconnect","days","diff","lessThanAYear","newDate","fromNow","format","toggleExpanded","value","isCollapsed","showHeader","createElement","className","Fragment","ref","onClick","type"],"sources":["../../../src/variants/LiveBlogList/LiveBlogList.js"],"sourcesContent":["import React, { useRef, useState, useEffect } from 'react';\nimport dayjs from 'dayjs';\nimport relativeTime from 'dayjs/plugin/relativeTime';\nimport Button from '@blaze-react/button';\nimport { FaPlus, FaMinus } from 'react-icons/fa';\nimport { BsPinAngleFill } from 'react-icons/bs';\n\ndayjs.extend(relativeTime);\n\nconst COLLAPSE_HEIGHT = 380;\n\nconst LiveBlogList = ({ children, date, published, featured, alternativeHeadline }) => {\n const [isExpanded, setIsExpanded] = useState(false);\n const [shouldShowButton, setShouldShowButton] = useState(false);\n const [{ displayedDate, displayedTime }, setDisplayedDate] = useState({\n displayedDate: '&nbsp;',\n displayedTime: ''\n });\n const usedDate = date;\n const contentRef = useRef(null);\n\n useEffect(\n () => {\n const el = contentRef.current;\n if (!el) return;\n\n const check = () => setShouldShowButton(el.scrollHeight > COLLAPSE_HEIGHT);\n\n if (typeof ResizeObserver !== 'undefined') {\n check();\n const ro = new ResizeObserver(check);\n ro.observe(el);\n return () => ro.disconnect();\n }\n check();\n },\n [children]\n );\n\n useEffect(\n () => {\n if (!usedDate) return;\n const days = dayjs().diff(dayjs(usedDate), 'day');\n const lessThanAYear = days < 365;\n\n let newDate;\n if (days < 1) newDate = dayjs(usedDate).fromNow();\n else if (lessThanAYear) newDate = dayjs(usedDate).format('DD MMM');\n else newDate = dayjs(usedDate).format('DD MMM YYYY');\n\n setDisplayedDate({\n displayedDate: newDate,\n displayedTime: lessThanAYear ? dayjs(usedDate).format('HH:mm') : null\n });\n },\n [usedDate]\n );\n\n const toggleExpanded = () => setIsExpanded(value => !value);\n const isCollapsed = !isExpanded;\n const showHeader = usedDate || alternativeHeadline || featured;\n\n return (\n <div className={`live-blog-container${featured ? ' live-blog-container--featured' : ''}`}>\n {showHeader && (\n <div className=\"live-blog-date\">\n {featured && <BsPinAngleFill />}\n {usedDate && (\n <>\n <span className=\"live-blog-date--date\">{displayedDate}</span>\n {displayedTime && <span className=\"live-blog-date--time\">{displayedTime}</span>}\n </>\n )}\n {alternativeHeadline && (\n <span className=\"live-blog-date--headline\">{alternativeHeadline}</span>\n )}\n </div>\n )}\n\n <div\n ref={contentRef}\n className={`live-blog-content ${\n isCollapsed\n ? 'live-blog-content--collapsed collapsed'\n : 'live-blog-content--opened opened'\n }`}>\n {children}\n </div>\n\n {shouldShowButton && (\n <div className=\"live-blog-button-wrapper\">\n <Button\n aria-label={isExpanded ? 'Show Less' : 'Show More'}\n className=\"live-blog-toggle\"\n onClick={toggleExpanded}\n type=\"button\">\n {isExpanded ? (\n <>\n <FaMinus className=\"toggle-icon\" /> Show Less\n </>\n ) :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reList":[]}
1
+ {"version":3,"file":"LiveBlogList.js","names":["React","useRef","useState","useEffect","dayjs","relativeTime","Button","FaPlus","FaMinus","BsPinAngleFill","extend","COLLAPSE_HEIGHT","LiveBlogList","children","date","published","featured","alternativeHeadline","isExpanded","setIsExpanded","shouldShowButton","setShouldShowButton","displayedDate","displayedTime","setDisplayedDate","usedDate","contentRef","el","current","check","scrollHeight","ResizeObserver","ro","observe","disconnect","days","diff","lessThanAYear","newDate","fromNow","format","toggleExpanded","value","isCollapsed","showHeader","createElement","className","Fragment","ref","onClick","type"],"sources":["../../../src/variants/LiveBlogList/LiveBlogList.js"],"sourcesContent":["import React, { useRef, useState, useEffect } from 'react';\nimport dayjs from 'dayjs';\nimport relativeTime from 'dayjs/plugin/relativeTime';\nimport Button from '@blaze-react/button';\nimport { FaPlus, FaMinus } from 'react-icons/fa';\nimport { BsPinAngleFill } from 'react-icons/bs';\n\ndayjs.extend(relativeTime);\n\nconst COLLAPSE_HEIGHT = 380;\n\nconst LiveBlogList = ({ children, date, published, featured, alternativeHeadline }) => {\n const [isExpanded, setIsExpanded] = useState(false);\n const [shouldShowButton, setShouldShowButton] = useState(false);\n const [{ displayedDate, displayedTime }, setDisplayedDate] = useState({\n displayedDate: '&nbsp;',\n displayedTime: ''\n });\n const usedDate = date;\n const contentRef = useRef(null);\n\n useEffect(\n () => {\n const el = contentRef.current;\n if (!el) return;\n\n const check = () => setShouldShowButton(el.scrollHeight > COLLAPSE_HEIGHT);\n\n if (typeof ResizeObserver !== 'undefined') {\n check();\n const ro = new ResizeObserver(check);\n ro.observe(el);\n return () => ro.disconnect();\n }\n check();\n },\n [children]\n );\n\n useEffect(\n () => {\n if (!usedDate) return;\n const days = dayjs().diff(dayjs(usedDate), 'day');\n const lessThanAYear = days < 365;\n\n let newDate;\n if (days < 1) newDate = dayjs(usedDate).fromNow();\n else if (lessThanAYear) newDate = dayjs(usedDate).format('DD MMM');\n else newDate = dayjs(usedDate).format('DD MMM YYYY');\n\n setDisplayedDate({\n displayedDate: newDate,\n displayedTime: lessThanAYear ? dayjs(usedDate).format('HH:mm') : null\n });\n },\n [usedDate]\n );\n\n const toggleExpanded = () => setIsExpanded(value => !value);\n const isCollapsed = !isExpanded;\n const showHeader = usedDate || alternativeHeadline || featured;\n\n return (\n <div className={`live-blog-container${featured ? ' live-blog-container--featured' : ''}`}>\n {showHeader && (\n <div className=\"live-blog-date\">\n {featured && <BsPinAngleFill />}\n {usedDate && (\n <>\n <span className=\"live-blog-date--date\">{displayedDate}</span>\n {displayedTime && <span className=\"live-blog-date--time\">{displayedTime}</span>}\n </>\n )}\n {alternativeHeadline && (\n <span className=\"live-blog-date--headline\">{alternativeHeadline}</span>\n )}\n </div>\n )}\n\n <div\n ref={contentRef}\n className={`live-blog-content ${\n isCollapsed\n ? 'live-blog-content--collapsed collapsed'\n : 'live-blog-content--opened opened'\n }`}>\n {children}\n </div>\n\n {shouldShowButton && (\n <div className=\"live-blog-button-wrapper\">\n <Button\n aria-label={isExpanded ? 'Show Less' : 'Show More'}\n className=\"live-blog-toggle\"\n onClick={toggleExpanded}\n type=\"button\">\n {isExpanded ? (\n <>\n <FaMinus className=\"toggle-icon\" /> Show Less\n </>\n ) : (\n <>\n <FaPlus className=\"toggle-icon\" /> Show More\n </>\n )}\n </Button>\n </div>\n )}\n </div>\n );\n};\n\nexport default LiveBlogList;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAC1D,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,YAAY,MAAM,2BAA2B;AACpD,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,MAAM,EAAEC,OAAO,QAAQ,gBAAgB;AAChD,SAASC,cAAc,QAAQ,gBAAgB;AAE/CL,KAAK,CAACM,MAAM,CAACL,YAAY,CAAC;AAE1B,MAAMM,eAAe,GAAG,GAAG;AAE3B,MAAMC,YAAY,GAAGA,CAAC;EAAEC,QAAQ;E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CACN,eAEDjB,KAAA,CAAA6C,aAAA;IACEG,GAAG,EAAEtB,UAAW;IAChBoB,SAAS,EAAE,qBACTH,WAAW,GACP,wCAAwC,GACxC,kCAAkC;EACrC,GACF9B,QACE,CAAC,EAELO,gBAAgB,iBACfpB,KAAA,CAAA6C,aAAA;IAAKC,SAAS,EAAC;EAA0B,gBACvC9C,KAAA,CAAA6C,aAAA,CAACvC,MAAM;IACL,cAAYY,UAAU,GAAG,WAAW,GAAG,WAAY;IACnD4B,SAAS,EAAC,kBAAkB;IAC5BG,OAAO,EAAER,cAAe;IACxBS,IAAI,EAAC;EAAQ,GACZhC,UAAU,gBACTlB,KAAA,CAAA6C,aAAA,CAAA7C,KAAA,CAAA+C,QAAA,qBACE/C,KAAA,CAAA6C,aAAA,CAACrC,OAAO;IAACsC,SAAS,EAAC;EAAa,CAAE,CAAC,cACnC,CAAC,gBAEH9C,KAAA,CAAA6C,aAAA,CAAA7C,KAAA,CAAA+C,QAAA,qBACE/C,KAAA,CAAA6C,aAAA,CAACtC,MAAM;IAACuC,SAAS,EAAC;EAAa,CAAE,CAAC,cAClC,CAEE,CACL,CAEJ,CAAC;AAEV,CAAC;AAED,eAAelC,YAAY","ignoreList":[]}
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import dynamic from 'next/dynamic';
5
5
  const liveBlogList = {
6
- VariantComponent: dynamic(() => import( /* webpackChunkName: "blazePbliveBlogList" */'./LiveBlogList')),
6
+ VariantComponent: dynamic(() => import(/* webpackChunkName: "blazePbliveBlogList" */'./LiveBlogList')),
7
7
  getSettings: componentSettings => _objectSpread(_objectSpread({}, componentSettings), {}, {
8
8
  modifier: 'liveBlogList'
9
9
  })
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["dynamic","liveBlogList","VariantComponent","getSettings","componentSettings","_objectSpread","modifier"],"sources":["../../../src/variants/LiveBlogList/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst liveBlogList = {\n VariantComponent: dynamic(() =>\n import(/* webpackChunkName: \"blazePbliveBlogList\" */ './LiveBlogList')\n ),\n getSettings: componentSettings => ({\n ...componentSettings,\n modifier: 'liveBlogList'\n })\n};\n\nexport default liveBlogList;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,YAAY,GAAG;EACnBC,gBAAgB,EAAEF,OAAO,CAAC,MACxB,MAAM,EAAC,6CAA8C,gBAAgB,CACvE,CAAC;EACDG,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,CAAAA,aAAA,KACzBD,iBAAiB;IACpBE,QAAQ,EAAE;EAAc;AAE5B,CAAC;AAED,eAAeL,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["dynamic","liveBlogList","VariantComponent","getSettings","componentSettings","_objectSpread","modifier"],"sources":["../../../src/variants/LiveBlogList/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst liveBlogList = {\n VariantComponent: dynamic(() =>\n import(/* webpackChunkName: \"blazePbliveBlogList\" */ './LiveBlogList')\n ),\n getSettings: componentSettings => ({\n ...componentSettings,\n modifier: 'liveBlogList'\n })\n};\n\nexport default liveBlogList;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,YAAY,GAAG;EACnBC,gBAAgB,EAAEF,OAAO,CAAC,MACxB,MAAM,CAAC,6CAA8C,gBAAgB,CACvE,CAAC;EACDG,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,CAAAA,aAAA,KACzBD,iBAAiB;IACpBE,QAAQ,EAAE;EAAc;AAE5B,CAAC;AAED,eAAeL,YAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"LongformGalleryImage.js","names":["React","PropTypes","Head","useInView","ResponsiveImage","IN_VIEW_CONFIG","LongformGalleryImage","_ref","id","url","caption","altText","priority","className","numberOfImages","handleImageOnClick","props","_objectWithoutProperties","_excluded","isIntersecting","outerRef","shouldRender","HeadComponent","sizeKey","createElement","ref","role","onClick","_extends","src","alt","propTypes","string","isRequired","number","bool","func"],"sources":["../../../src/variants/LongformGallery/LongformGalleryImage.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Head from 'next/head';\nimport { useInView } from '@blaze-react/utils/lib/customHooks';\nimport { ResponsiveImage } from '@blaze-cms/image-cdn-react';\nimport { IN_VIEW_CONFIG } from './constants';\n\nconst LongformGalleryImage = ({\n id,\n url,\n caption,\n altText,\n priority,\n className,\n numberOfImages,\n handleImageOnClick,\n ...props\n}) => {\n const [isIntersecting, outerRef] = useInView(IN_VIEW_CONFIG);\n const shouldRender = priority || isIntersecting;\n const HeadComponent = priority ? Head : null;\n const sizeKey = `carousel:longform:${numberOfImages}`;\n\n return (\n <div ref={outerRef} className={`${className}`}>\n <div\n role=\"button\"\n className=\"longform-gallery__images__image__container\"\n data-testid=\"longform-gallery__images__image__container\"\n onClick={() => handleImageOnClick(id)}>\n {shouldRender && (\n <ResponsiveImage\n sizeKey={sizeKey}\n role=\"button\"\n src={url}\n alt={altText}\n priority={priority}\n HeadComponent={HeadComponent}\n {...props}\n />\n )}\n </div>\n {!!caption && (\n <div\n className=\"longform-gallery__images__image__details\"\n data-testid=\"longform-gallery__images__image__details\">\n <div className=\"longform-gallery__images__image__details__caption\">{caption}</div>\n </div>\n )}\n </div>\n );\n};\n\nLongformGalleryImage.propTypes = {\n id: PropTypes.string.isRequired,\n url: PropTypes.string.isRequired,\n caption: PropTypes.string.isRequired,\n numberOfImages: PropTypes.number.isRequired,\n altText: PropTypes.string.isRequired,\n priority: PropTypes.bool.isRequired,\n className: PropTypes.string.isRequired,\n handleImageOnClick: PropTypes.func.isRequired\n};\n\nexport default LongformGalleryImage;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,IAAI,MAAM,WAAW;AAC5B,SAASC,SAAS,QAAQ,oCAAoC;AAC9D,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SAASC,cAAc,QAAQ,aAAa;AAE5C,MAAMC,oBAAoB,GAAGC,IAAA,IAUvB;EAAA,IAVwB;MAC5BC,EAAE;MACFC,GAAG;MACHC,OAAO;MACPC,OAAO;MACPC,QAAQ;MACRC,SAAS;MACTC,cAAc;MACdC;IAEF,CAAC,GAAAR,IAAA;IADIS,KAAK,GAAAC,wBAAA,CAAAV,IAAA,EAAAW,SAAA;EAER,MAAM,CAACC,cAAc,EAAEC,QAAQ,CAAC,GAAGjB,SAAS,CAACE,cAAc,CAAC;EAC5D,MAAMgB,YAAY,GAAGT,QAAQ,IAAIO,cAAc;EAC/C,MAAMG,aAAa,GAAGV,QAAQ,GAAGV,IAAI,GAAG,IAAI;EAC5C,MAAMqB,OAAO,GAAI,qBAAoBT,cAAe,EAAC;EAErD,oBACEd,KAAA,CAAAwB,aAAA;IAAKC,GAAG,EAAEL,QAAS;IAACP,SAAS,EAAG,GAAEA,SAAU;EAAE,gBAC5Cb,KAAA,CAAAwB,aAAA;IACEE,IAAI,EAAC,QAAQ;IACbb,SAAS,EAAC,4CAA4C;IACtD,eAAY,4CAA4C;IACxDc,OAAO,EAAEA,CAAA,KAAMZ,kBAAkB,CAACP,EAAE;EAAE,GACrCa,YAAY,iBACXrB,KAAA,CAAAwB,aAAA,CAACpB,eAAe,EAAAwB,QAAA;IACdL,OAAO,EAAEA,OAAQ;IACjBG,IAAI,EAAC,QAAQ;IACbG,GAAG,EAAEpB,GAAI;IACTqB,GAAG,EAAEnB,OAAQ;IACbC,QAAQ,EAAEA,QAAS;IACnBU,aAAa,EAAEA;EAAc,GACzBN,KAAK,CACV,CAEA,CAAC,EACL,CAAC,CAACN,OAAO,iBACRV,KAAA,CAAAwB,aAAA;IACEX,SAAS,EAAC,0CAA0C;IACpD,eAAY;EAA0C,gBACtDb,KAAA,CAAAwB,aAAA;IAAKX,SAAS,EAAC;EAAmD,GAAEH,OAAa,CAC9E,CAEJ,CAAC;AAEV,CAAC;AAEDJ,oBAAoB,CAACyB,SAAS,GAAG;EAC/BvB,EAAE,EAAEP,SAAS,CAAC+B,MAAM,CAACC,UAAU;EAC/BxB,GAAG,EAAER,SAAS,CAAC+B,MAAM,CAACC,UAAU;EAChCvB,OAAO,EAAET,SAAS,CAAC+B,MAAM,CAACC,UAAU;EACpCnB,cAAc,EAAEb,SAAS,CAACiC,MAAM,CAACD,UAAU;EAC3CtB,OAAO,EAAEV,SAAS,CAAC+B,MAAM,CAACC,UAAU;EACpCrB,QAAQ,EAAEX,SAAS,CAACkC,IAAI,CAACF,UAAU;EACnCpB,SAAS,EAAEZ,SAAS,CAAC+B,MAAM,CAACC,UAAU;EACtClB,kBAAkB,EAAEd,SAAS,CAACmC,IAAI,CAACH;AACrC,CAAC;AAED,eAAe3B,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"LongformGalleryImage.js","names":["React","PropTypes","Head","useInView","ResponsiveImage","IN_VIEW_CONFIG","LongformGalleryImage","_ref","id","url","caption","altText","priority","className","numberOfImages","handleImageOnClick","props","_objectWithoutProperties","_excluded","isIntersecting","outerRef","shouldRender","HeadComponent","sizeKey","createElement","ref","role","onClick","_extends","src","alt","propTypes","string","isRequired","number","bool","func"],"sources":["../../../src/variants/LongformGallery/LongformGalleryImage.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Head from 'next/head';\nimport { useInView } from '@blaze-react/utils/lib/customHooks';\nimport { ResponsiveImage } from '@blaze-cms/image-cdn-react';\nimport { IN_VIEW_CONFIG } from './constants';\n\nconst LongformGalleryImage = ({\n id,\n url,\n caption,\n altText,\n priority,\n className,\n numberOfImages,\n handleImageOnClick,\n ...props\n}) => {\n const [isIntersecting, outerRef] = useInView(IN_VIEW_CONFIG);\n const shouldRender = priority || isIntersecting;\n const HeadComponent = priority ? Head : null;\n const sizeKey = `carousel:longform:${numberOfImages}`;\n\n return (\n <div ref={outerRef} className={`${className}`}>\n <div\n role=\"button\"\n className=\"longform-gallery__images__image__container\"\n data-testid=\"longform-gallery__images__image__container\"\n onClick={() => handleImageOnClick(id)}>\n {shouldRender && (\n <ResponsiveImage\n sizeKey={sizeKey}\n role=\"button\"\n src={url}\n alt={altText}\n priority={priority}\n HeadComponent={HeadComponent}\n {...props}\n />\n )}\n </div>\n {!!caption && (\n <div\n className=\"longform-gallery__images__image__details\"\n data-testid=\"longform-gallery__images__image__details\">\n <div className=\"longform-gallery__images__image__details__caption\">{caption}</div>\n </div>\n )}\n </div>\n );\n};\n\nLongformGalleryImage.propTypes = {\n id: PropTypes.string.isRequired,\n url: PropTypes.string.isRequired,\n caption: PropTypes.string.isRequired,\n numberOfImages: PropTypes.number.isRequired,\n altText: PropTypes.string.isRequired,\n priority: PropTypes.bool.isRequired,\n className: PropTypes.string.isRequired,\n handleImageOnClick: PropTypes.func.isRequired\n};\n\nexport default LongformGalleryImage;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,IAAI,MAAM,WAAW;AAC5B,SAASC,SAAS,QAAQ,oCAAoC;AAC9D,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SAASC,cAAc,QAAQ,aAAa;AAE5C,MAAMC,oBAAoB,GAAGC,IAAA,IAUvB;EAAA,IAVwB;MAC5BC,EAAE;MACFC,GAAG;MACHC,OAAO;MACPC,OAAO;MACPC,QAAQ;MACRC,SAAS;MACTC,cAAc;MACdC;IAEF,CAAC,GAAAR,IAAA;IADIS,KAAK,GAAAC,wBAAA,CAAA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3CtB,OAAO,EAAEV,SAAS,CAAC+B,MAAM,CAACC,UAAU;EACpCrB,QAAQ,EAAEX,SAAS,CAACkC,IAAI,CAACF,UAAU;EACnCpB,SAAS,EAAEZ,SAAS,CAAC+B,MAAM,CAACC,UAAU;EACtClB,kBAAkB,EAAEd,SAAS,CAACmC,IAAI,CAACH;AACrC,CAAC;AAED,eAAe3B,oBAAoB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":["gql","GET_IMAGES_QUERY","PROPS_TO_CHECK","IN_VIEW_CONFIG","once","offset","bottomOffset"],"sources":["../../../src/variants/LongformGallery/constants.js"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst GET_IMAGES_QUERY = gql`\n query getImages($where: JSON!) {\n getImages: getFiles(where: $where) {\n id\n url\n data\n }\n }\n`;\n\nconst PROPS_TO_CHECK = ['altText', 'caption', 'hrefUrl', 'credits'];\n\nconst IN_VIEW_CONFIG = {\n once: true,\n offset: '200px',\n bottomOffset: '-200px'\n};\n\nexport { GET_IMAGES_QUERY, IN_VIEW_CONFIG, PROPS_TO_CHECK };\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,MAAMC,gBAAgB,GAAGD,GAAI;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,MAAME,cAAc,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;AAEnE,MAAMC,cAAc,GAAG;EACrBC,IAAI,EAAE,IAAI;EACVC,MAAM,EAAE,OAAO;EACfC,YAAY,EAAE;AAChB,CAAC;AAED,SAASL,gBAAgB,EAAEE,cAAc,EAAED,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"constants.js","names":["gql","GET_IMAGES_QUERY","PROPS_TO_CHECK","IN_VIEW_CONFIG","once","offset","bottomOffset"],"sources":["../../../src/variants/LongformGallery/constants.js"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst GET_IMAGES_QUERY = gql`\n query getImages($where: JSON!) {\n getImages: getFiles(where: $where) {\n id\n url\n data\n }\n }\n`;\n\nconst PROPS_TO_CHECK = ['altText', 'caption', 'hrefUrl', 'credits'];\n\nconst IN_VIEW_CONFIG = {\n once: true,\n offset: '200px',\n bottomOffset: '-200px'\n};\n\nexport { GET_IMAGES_QUERY, IN_VIEW_CONFIG, PROPS_TO_CHECK };\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,MAAMC,gBAAgB,GAAGD,GAAG;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,MAAME,cAAc,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;AAEnE,MAAMC,cAAc,GAAG;EACrBC,IAAI,EAAE,IAAI;EACVC,MAAM,EAAE,OAAO;EACfC,YAAY,EAAE;AAChB,CAAC;AAED,SAASL,gBAAgB,EAAEE,cAAc,EAAED,cAAc","ignoreList":[]}
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import dynamic from 'next/dynamic';
5
5
  const LongformGallery = {
6
- VariantComponent: dynamic(() => import( /* webpackChunkName: "blazePbVariantLongformGallery" */'./LongformGallery')),
6
+ VariantComponent: dynamic(() => import(/* webpackChunkName: "blazePbVariantLongformGallery" */'./LongformGallery')),
7
7
  getSettings: componentSettings => _objectSpread(_objectSpread({}, componentSettings), {}, {
8
8
  modifier: 'longformGallery'
9
9
  })
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["dynamic","LongformGallery","VariantComponent","getSettings","componentSettings","_objectSpread","modifier"],"sources":["../../../src/variants/LongformGallery/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst LongformGallery = {\n VariantComponent: dynamic(() =>\n import(/* webpackChunkName: \"blazePbVariantLongformGallery\" */ './LongformGallery')\n ),\n getSettings: componentSettings => ({\n ...componentSettings,\n modifier: 'longformGallery'\n })\n};\n\nexport default LongformGallery;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,eAAe,GAAG;EACtBC,gBAAgB,EAAEF,OAAO,CAAC,MACxB,MAAM,EAAC,uDAAwD,mBAAmB,CACpF,CAAC;EACDG,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,CAAAA,aAAA,KACzBD,iBAAiB;IACpBE,QAAQ,EAAE;EAAiB;AAE/B,CAAC;AAED,eAAeL,eAAe","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["dynamic","LongformGallery","VariantComponent","getSettings","componentSettings","_objectSpread","modifier"],"sources":["../../../src/variants/LongformGallery/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst LongformGallery = {\n VariantComponent: dynamic(() =>\n import(/* webpackChunkName: \"blazePbVariantLongformGallery\" */ './LongformGallery')\n ),\n getSettings: componentSettings => ({\n ...componentSettings,\n modifier: 'longformGallery'\n })\n};\n\nexport default LongformGallery;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,eAAe,GAAG;EACtBC,gBAAgB,EAAEF,OAAO,CAAC,MACxB,MAAM,CAAC,uDAAwD,mBAAmB,CACpF,CAAC;EACDG,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,CAAAA,aAAA,KACzBD,iBAAiB;IACpBE,QAAQ,EAAE;EAAiB;AAE/B,CAAC;AAED,eAAeL,eAAe","ignoreList":[]}
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import dynamic from 'next/dynamic';
5
5
  const SlideSummary = {
6
6
  getSettings: componentSettings => _objectSpread({}, componentSettings),
7
- VariantComponent: dynamic(() => import( /* webpackChunkName: "blazePbVariantSlideSummary" */'./SlideSummary'))
7
+ VariantComponent: dynamic(() => import(/* webpackChunkName: "blazePbVariantSlideSummary" */'./SlideSummary'))
8
8
  };
9
9
  export default SlideSummary;
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["dynamic","SlideSummary","getSettings","componentSettings","_objectSpread","VariantComponent"],"sources":["../../../src/variants/SlideSummary/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst SlideSummary = {\n getSettings: componentSettings => ({\n ...componentSettings\n }),\n VariantComponent: dynamic(() =>\n import(/* webpackChunkName: \"blazePbVariantSlideSummary\" */ './SlideSummary')\n )\n};\nexport default SlideSummary;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,YAAY,GAAG;EACnBC,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,KACzBD,iBAAiB,CACpB;EACFE,gBAAgB,EAAEL,OAAO,CAAC,MACxB,MAAM,EAAC,oDAAqD,gBAAgB,CAC9E;AACF,CAAC;AACD,eAAeC,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["dynamic","SlideSummary","getSettings","componentSettings","_objectSpread","VariantComponent"],"sources":["../../../src/variants/SlideSummary/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst SlideSummary = {\n getSettings: componentSettings => ({\n ...componentSettings\n }),\n VariantComponent: dynamic(() =>\n import(/* webpackChunkName: \"blazePbVariantSlideSummary\" */ './SlideSummary')\n )\n};\nexport default SlideSummary;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,YAAY,GAAG;EACnBC,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,KACzBD,iBAAiB,CACpB;EACFE,gBAAgB,EAAEL,OAAO,CAAC,MACxB,MAAM,CAAC,oDAAqD,gBAAgB,CAC9E;AACF,CAAC;AACD,eAAeC,YAAY","ignoreList":[]}
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import dynamic from 'next/dynamic';
5
5
  const ThumbnailCarousel = {
6
6
  getSettings: componentSettings => _objectSpread({}, componentSettings),
7
- VariantComponent: dynamic(() => import( /* webpackChunkName: "blazePbVariantThumbnailCarousel" */'./ThumbnailCarousel'))
7
+ VariantComponent: dynamic(() => import(/* webpackChunkName: "blazePbVariantThumbnailCarousel" */'./ThumbnailCarousel'))
8
8
  };
9
9
  export default ThumbnailCarousel;
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["dynamic","ThumbnailCarousel","getSettings","componentSettings","_objectSpread","VariantComponent"],"sources":["../../../src/variants/ThumbnailCarousel/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst ThumbnailCarousel = {\n getSettings: componentSettings => ({\n ...componentSettings\n }),\n VariantComponent: dynamic(() =>\n import(/* webpackChunkName: \"blazePbVariantThumbnailCarousel\" */ './ThumbnailCarousel')\n )\n};\n\nexport default ThumbnailCarousel;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,iBAAiB,GAAG;EACxBC,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,KACzBD,iBAAiB,CACpB;EACFE,gBAAgB,EAAEL,OAAO,CAAC,MACxB,MAAM,EAAC,yDAA0D,qBAAqB,CACxF;AACF,CAAC;AAED,eAAeC,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["dynamic","ThumbnailCarousel","getSettings","componentSettings","_objectSpread","VariantComponent"],"sources":["../../../src/variants/ThumbnailCarousel/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nconst ThumbnailCarousel = {\n getSettings: componentSettings => ({\n ...componentSettings\n }),\n VariantComponent: dynamic(() =>\n import(/* webpackChunkName: \"blazePbVariantThumbnailCarousel\" */ './ThumbnailCarousel')\n )\n};\n\nexport default ThumbnailCarousel;\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,cAAc;AAElC,MAAMC,iBAAiB,GAAG;EACxBC,WAAW,EAAEC,iBAAiB,IAAAC,aAAA,KACzBD,iBAAiB,CACpB;EACFE,gBAAgB,EAAEL,OAAO,CAAC,MACxB,MAAM,CAAC,yDAA0D,qBAAqB,CACxF;AACF,CAAC;AAED,eAAeC,iBAAiB","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaze-cms/react-page-builder",
3
- "version": "0.146.0-core-styles.61",
3
+ "version": "0.146.0-core-styles.62",
4
4
  "description": "Blaze react page builder",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-es/index.js",
@@ -91,5 +91,5 @@
91
91
  "lib/*",
92
92
  "lib-es/*"
93
93
  ],
94
- "gitHead": "8fa30efb2aec60464da5156e9670c0adc44e6384"
94
+ "gitHead": "92dcab6fab3478c0e7966f13df33bd4a144c1401"
95
95
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable jsx-a11y/no-static-element-interactions */
1
2
  import React, { useState, useContext, useEffect } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import { FaChevronDown, FaChevronUp } from 'react-icons/fa';
@@ -29,6 +30,7 @@ const MenuItemRender = ({ children, eventType, text, modifier, url, parent }) =>
29
30
  const isActive = router ? isUrlPathMatch(router.asPath, urlToUse) : false;
30
31
  const isActiveParent = router ? hasActiveChild(router.asPath, children) : false;
31
32
  const shouldPreOpen = openActiveSubmenus && isActiveParent && isClickEvent;
33
+ const hasValidChildren = hasChildren(children);
32
34
 
33
35
  const [displayChildren, setDisplayChildren] = useState(shouldPreOpen);
34
36
 
@@ -63,7 +65,11 @@ const MenuItemRender = ({ children, eventType, text, modifier, url, parent }) =>
63
65
  }
64
66
  };
65
67
 
66
- const hasValidChildren = hasChildren(children);
68
+ const handleMobileClick = () => {
69
+ if (!urlToUse && hasValidChildren) {
70
+ setDisplayChildren(!displayChildren);
71
+ }
72
+ };
67
73
 
68
74
  const menuItemLinkClassname = classnames('menu--item--link', {
69
75
  'menu--item--link--active': isActive,
@@ -72,7 +78,11 @@ const MenuItemRender = ({ children, eventType, text, modifier, url, parent }) =>
72
78
 
73
79
  return (
74
80
  <li className={modifier} onMouseEnter={handleItemEvent} onMouseLeave={handleItemEvent}>
75
- <div className={menuItemLinkClassname}>
81
+ <div
82
+ className={menuItemLinkClassname}
83
+ onClick={handleMobileClick}
84
+ role={!urlToUse && hasValidChildren ? 'button' : undefined}
85
+ tabIndex={!urlToUse && hasValidChildren ? 0 : undefined}>
76
86
  {urlToUse ? (
77
87
  <BlazeLink href={urlToUse}>{textToUse}</BlazeLink>
78
88
  ) : (
@@ -84,7 +94,11 @@ const MenuItemRender = ({ children, eventType, text, modifier, url, parent }) =>
84
94
  <i
85
95
  role="button"
86
96
  className="menu--item--link--icon"
87
- onClick={() => setDisplayChildren(!displayChildren)}>
97
+ onClick={e => {
98
+ e.stopPropagation();
99
+ setDisplayChildren(!displayChildren);
100
+ }}
101
+ tabIndex={0}>
88
102
  {displayChildren ? <FaChevronUp /> : <FaChevronDown />}
89
103
  </i>
90
104
  )}
@@ -7,6 +7,8 @@ import { render, fireEvent } from '@testing-library/react';
7
7
  import '@testing-library/jest-dom/extend-expect';
8
8
  import MenuRender from '../../../../../src/components/MenuItem/MenuItemRender';
9
9
 
10
+ const MENU_ITEM_CHILDREN_CLASS = 'menu--item-children';
11
+
10
12
  let mockAsPathValue = '/';
11
13
 
12
14
  jest.mock('next/router', () => {
@@ -75,7 +77,7 @@ describe('MenuRender component', () => {
75
77
  );
76
78
 
77
79
  fireEvent.mouseEnter(getByText('Parent'));
78
- let childContainer = container.querySelector('.menu--item-children');
80
+ let childContainer = container.querySelector(`.${MENU_ITEM_CHILDREN_CLASS}`);
79
81
  expect(childContainer).not.toHaveClass('hidden');
80
82
 
81
83
  mockAsPathValue = '/new-route';
@@ -85,7 +87,28 @@ describe('MenuRender component', () => {
85
87
  </MenuRender>
86
88
  );
87
89
 
88
- childContainer = container.querySelector('.menu--item-children');
90
+ childContainer = container.querySelector(`.${MENU_ITEM_CHILDREN_CLASS}`);
91
+ expect(childContainer).toHaveClass('hidden');
92
+ });
93
+
94
+ it('toggles display of children when chevron icon is clicked', () => {
95
+ const { container } = render(
96
+ <MenuRender eventType="click" text="Parent">
97
+ <div data-testid="child">Child</div>
98
+ </MenuRender>
99
+ );
100
+ let childContainer = container.querySelector(`.${MENU_ITEM_CHILDREN_CLASS}`);
101
+ expect(childContainer).toHaveClass('hidden');
102
+
103
+ const chevronIcon = container.querySelector('.menu--item--link--icon');
104
+ expect(chevronIcon).toBeInTheDocument();
105
+
106
+ chevronIcon.click();
107
+ childContainer = container.querySelector(`.${MENU_ITEM_CHILDREN_CLASS}`);
108
+ expect(childContainer).not.toHaveClass('hidden');
109
+
110
+ chevronIcon.click();
111
+ childContainer = container.querySelector(`.${MENU_ITEM_CHILDREN_CLASS}`);
89
112
  expect(childContainer).toHaveClass('hidden');
90
113
  });
91
114
  });
@@ -17,6 +17,7 @@ exports[`MenuItem component should render a MenuItem based on passed parameters
17
17
  <i
18
18
  class="menu--item--link--icon"
19
19
  role="button"
20
+ tabindex="0"
20
21
  >
21
22
  <svg
22
23
  fill="currentColor"