@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.
- package/CHANGELOG.md +44 -90
- package/lib/BannerContext/index.js +2 -1
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +2 -1
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +2 -1
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/application/query/index.js +8 -8
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +2 -1
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +2 -1
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +2 -1
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/index.js +2 -1
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +2 -1
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +2 -1
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Button.js +2 -1
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +2 -1
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +2 -1
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsRender.js +2 -1
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +44 -7
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/CarouselImage.js +2 -1
- package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js +2 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/ClickWrapper.js +2 -1
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +2 -1
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +2 -1
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroup.js +2 -1
- package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupAccordion.js +2 -1
- package/lib/components/ContentGroup/ContentGroupAccordion.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +2 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +2 -1
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +2 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +2 -1
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/ErrorMessage/index.js +2 -1
- package/lib/components/ErrorMessage/index.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +2 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +2 -1
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +2 -1
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +2 -1
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +2 -1
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +2 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/Layout/LayoutFactory.js +2 -1
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +2 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/LazyImage/index.js +2 -1
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListFactory.js +2 -1
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js +2 -1
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +2 -1
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +2 -1
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +2 -1
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +2 -1
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/Loading/index.js +2 -1
- package/lib/components/Loading/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +3 -5
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js +1 -2
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/MenuItem/MenuItemRender.js +14 -28
- package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib/components/MenuItem/helpers/index.js +0 -14
- package/lib/components/MenuItem/helpers/index.js.map +1 -1
- package/lib/components/ModalAdapter/index.js +2 -1
- package/lib/components/ModalAdapter/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +6 -3
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentResults.js +2 -1
- package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +2 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +2 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +2 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +2 -1
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/Video/VideoModal.js +2 -1
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +2 -1
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +2 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +2 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +2 -1
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/index.js +2 -1
- package/lib/components/index.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +2 -1
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +2 -1
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/hooks/use-get-image-id-from-relation.js +4 -3
- package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib/hooks/use-portal.js +2 -1
- package/lib/hooks/use-portal.js.map +1 -1
- package/lib/system-components/EditorMode/BlazeLogo.js +2 -1
- package/lib/system-components/EditorMode/BlazeLogo.js.map +1 -1
- package/lib/system-components/EditorMode/PbWrapper.js +2 -1
- package/lib/system-components/EditorMode/PbWrapper.js.map +1 -1
- package/lib/system-components/index.js +2 -1
- package/lib/system-components/index.js.map +1 -1
- package/lib/variants/Infographic/index.js +2 -1
- package/lib/variants/Infographic/index.js.map +1 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js +2 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -1
- package/lib/variants/LiveBlogList/index.js +2 -1
- package/lib/variants/LiveBlogList/index.js.map +1 -1
- package/lib/variants/LongformGallery/index.js +2 -1
- package/lib/variants/LongformGallery/index.js.map +1 -1
- package/lib/variants/SlideSummary/index.js +2 -1
- package/lib/variants/SlideSummary/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/index.js +2 -1
- package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
- package/lib-es/components/Carousel/Carousel.js +39 -9
- package/lib-es/components/Carousel/Carousel.js.map +1 -1
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js +2 -1
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib-es/components/Menu/Menu.js +1 -4
- package/lib-es/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/Menu/MenuContext.js +1 -2
- package/lib-es/components/Menu/MenuContext.js.map +1 -1
- package/lib-es/components/MenuItem/MenuItemRender.js +11 -25
- package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib-es/components/MenuItem/helpers/index.js +1 -3
- package/lib-es/components/MenuItem/helpers/index.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContent.js +8 -2
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentResults.js +2 -1
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib-es/hooks/use-get-image-id-from-relation.js +2 -2
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/package.json +10 -10
- package/src/components/Carousel/Carousel.js +46 -9
- package/src/components/Carousel/CarouselImage/CarouselImage.js +3 -1
- package/src/components/Menu/Menu.js +1 -3
- package/src/components/Menu/MenuContext.js +1 -1
- package/src/components/MenuItem/MenuItemRender.js +12 -40
- package/src/components/MenuItem/helpers/index.js +1 -3
- package/src/components/SearchContent/SearchContent.js +8 -2
- package/src/components/SearchContent/SearchContentResults.js +1 -1
- package/src/hooks/use-get-image-id-from-relation.js +2 -1
- package/tests/unit/src/components/Carousel/Carousel.test.js +45 -35
- package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +49 -8
- package/tests/unit/src/components/MenuItem/MenuItem.test.js +0 -5
- package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +3 -11
- package/tests/unit/src/components/SearchContent/SearchContent.test.js +32 -1
- package/lib/components/MenuItem/helpers/has-active-child.js +0 -19
- package/lib/components/MenuItem/helpers/has-active-child.js.map +0 -1
- package/lib/components/MenuItem/helpers/isUrlPathMatch.js +0 -18
- package/lib/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
- package/lib-es/components/MenuItem/helpers/has-active-child.js +0 -5
- package/lib-es/components/MenuItem/helpers/has-active-child.js.map +0 -1
- package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js +0 -8
- package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
- package/src/components/MenuItem/helpers/has-active-child.js +0 -10
- package/src/components/MenuItem/helpers/isUrlPathMatch.js +0 -10
- package/tests/unit/src/components/MenuItem/helpers/constants.js +0 -73
- package/tests/unit/src/components/MenuItem/helpers/has-active-child.test.js +0 -35
- 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-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
69
|
+
### Bug Fixes
|
|
83
70
|
|
|
84
|
-
|
|
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-
|
|
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
|
-
*
|
|
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-
|
|
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-
|
|
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
|
-
*
|
|
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-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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
|
-
*
|
|
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
|
|
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","
|
|
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,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBA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AK,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
|
|
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","
|
|
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,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAA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,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":[]}
|
package/lib/HOC/withTitle.js
CHANGED
|
@@ -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
|
|
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,
|
package/lib/HOC/withTitle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withTitle.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_utilsHandlebars","
|
|
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: PropT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AG;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,
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
56
|
+
return (0, _client.gql)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n "])), query);
|
|
57
57
|
};
|
|
58
|
-
var getItemList = exports.getItemList = (0, _client.gql)(
|
|
59
|
-
var addItemsToList = exports.addItemsToList = (0, _client.gql)(
|
|
60
|
-
var removeItemsFromList = exports.removeItemsFromList = (0, _client.gql)(
|
|
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","
|
|
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,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K;AAAA,CAKV;AAEH,IAAMG,uBAAuB,GAAA1B,OAAA,CAAA0B,uBAAA,GAAG,SAA1BA,uBAAuBA,CAAIL,MAAM,EAAEE,KAAK;EAAA,WAAKrB,WAAG,EAAAT,iBAAA,KAAAA,iBAAA,OAAAU,uBAAA,+IAEpCkB,MAAM,EAClBE,KAAK;AAAA,CAKR;;AAEH;AACA,IAAMI,SAAS,GAAA3B,OAAA,CAAA2B,SAAA,GAAG,SAAZA,SAASA,CAAIN,MAAM,EAAEE,KAAK,EAAK;EACnC,IAAMK,KAAK,GAAGN,aAAa,CAACD,MAAM,EAAEE,KAAK,CAAC;EAC1C,WAAOrB,WAAG,EAAAR,iBAAA,KAAAA,iBAAA,OAAAS,uBAAA,mCACNyB,KAAK;AAEX,CAAC;AAED,IAAMC,WAAW,GAAA7B,OAAA,CAAA6B,WAAA,OAAG3B,WAAG,EAAAP,iBAAA,KAAAA,iBAAA,OAAAQ,uBAAA,6KAUtB;AAED,IAAM2B,cAAc,GAAA9B,OAAA,CAAA8B,cAAA,OAAG5B,WAAG,EAAAN,iBAAA,KAAAA,iBAAA,OAAAO,uBAAA,0VAgBzB;AAED,IAAM4B,mBAAmB,GAAA/B,OAAA,CAAA+B,mBAAA,OAAG7B,WAAG,EAAAL,iBAAA,KAAAA,iBAAA,OAAAM,uBAAA,iVAe9B","ignoreList":[]}
|
|
@@ -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
|
|
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;
|