@blaze-cms/react-page-builder 0.146.0-node18-core-styles-tooltips.38 → 0.146.0-node18-tooltips.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -98
- 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/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 +2 -1
- package/lib/components/SearchContent/SearchContent.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-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/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/package.json +10 -10
- 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/tests/unit/src/components/MenuItem/MenuItem.test.js +0 -5
- package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +3 -11
- 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
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export const mockMenuProps = {
|
|
2
|
-
props: {
|
|
3
|
-
children: [
|
|
4
|
-
false,
|
|
5
|
-
[
|
|
6
|
-
{
|
|
7
|
-
props: {
|
|
8
|
-
component: {
|
|
9
|
-
items: [
|
|
10
|
-
{
|
|
11
|
-
type: 'menuitem',
|
|
12
|
-
settings: {
|
|
13
|
-
name: 'menuitem-card',
|
|
14
|
-
url: 'card',
|
|
15
|
-
text: 'Card'
|
|
16
|
-
},
|
|
17
|
-
id: 'menuitem-card-1',
|
|
18
|
-
items: [],
|
|
19
|
-
name: 'menuitem-card-1'
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
type: 'menuitem',
|
|
23
|
-
settings: {
|
|
24
|
-
name: 'menuitem-Card',
|
|
25
|
-
|
|
26
|
-
url: 'card',
|
|
27
|
-
text: 'Card'
|
|
28
|
-
},
|
|
29
|
-
id: 'menuitem-Card-1',
|
|
30
|
-
items: [],
|
|
31
|
-
name: 'menuitem-Card-1'
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
type: 'menuitem',
|
|
35
|
-
settings: {
|
|
36
|
-
name: 'menuitem-card-Carousel',
|
|
37
|
-
url: 'card-carousel',
|
|
38
|
-
text: 'Card Carousel'
|
|
39
|
-
},
|
|
40
|
-
id: 'menuitem-card-carousel-1',
|
|
41
|
-
items: [],
|
|
42
|
-
name: 'menuitem-card-carousel-1'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
type: 'menuitem',
|
|
46
|
-
settings: {
|
|
47
|
-
eventType: 'hover',
|
|
48
|
-
name: 'menuitem-Content-Group',
|
|
49
|
-
modifier: null,
|
|
50
|
-
url: 'content-group',
|
|
51
|
-
text: 'Content Group',
|
|
52
|
-
variant: null,
|
|
53
|
-
gtmClassName: null,
|
|
54
|
-
entities: [],
|
|
55
|
-
filterByProperty: [],
|
|
56
|
-
filterByFeatured: 'off',
|
|
57
|
-
filterBySponsored: 'off',
|
|
58
|
-
operator: 'AND',
|
|
59
|
-
filterBy: [],
|
|
60
|
-
sortProperties: []
|
|
61
|
-
},
|
|
62
|
-
id: 'menuitem-Content-Group-1',
|
|
63
|
-
items: [],
|
|
64
|
-
name: 'menuitem-Content-Group-1'
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
2
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
3
|
-
import { hasActiveChild } from '../../../../../../src/components/MenuItem/helpers';
|
|
4
|
-
import { mockMenuProps } from './constants';
|
|
5
|
-
|
|
6
|
-
describe('hasActiveChild', () => {
|
|
7
|
-
const structuredClone = val => JSON.parse(JSON.stringify(val));
|
|
8
|
-
|
|
9
|
-
it('should return true for finding active menu-item child', () => {
|
|
10
|
-
const activePath = '/card';
|
|
11
|
-
const menuProps = mockMenuProps;
|
|
12
|
-
const result = !!hasActiveChild(activePath, menuProps);
|
|
13
|
-
expect(result).toBe(true);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
it('shoul return false for findng no exact match', () => {
|
|
17
|
-
const activePath = '/carousel';
|
|
18
|
-
const menuProps = mockMenuProps;
|
|
19
|
-
|
|
20
|
-
const result = !!hasActiveChild(activePath, menuProps);
|
|
21
|
-
expect(result).toBe(false);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it('should return false for empty children-items', () => {
|
|
25
|
-
const activePath = '/carousel';
|
|
26
|
-
const menuWithNoChildrenProps = (() => {
|
|
27
|
-
const obj = structuredClone(mockMenuProps);
|
|
28
|
-
obj.props.children[1][0].props.component.items = [];
|
|
29
|
-
return obj;
|
|
30
|
-
}).call();
|
|
31
|
-
|
|
32
|
-
const result = !!hasActiveChild(activePath, menuWithNoChildrenProps);
|
|
33
|
-
expect(result).toBe(false);
|
|
34
|
-
});
|
|
35
|
-
});
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
2
|
-
import { isUrlPathMatch } from '../../../../../../src/components/MenuItem/helpers';
|
|
3
|
-
|
|
4
|
-
describe('isUrlPathMatch', () => {
|
|
5
|
-
it('should return true since path and itemUrl match', () => {
|
|
6
|
-
const path = '/button';
|
|
7
|
-
const itemUrl = 'button';
|
|
8
|
-
const result = isUrlPathMatch(path, itemUrl);
|
|
9
|
-
expect(result).toBeTruthy();
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
it('should match since path and itemUrl do not match', () => {
|
|
13
|
-
const path = '/card';
|
|
14
|
-
const itemUrl = 'button';
|
|
15
|
-
const result = isUrlPathMatch(path, itemUrl);
|
|
16
|
-
expect(result).toBeFalsy();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should not match since path and itemUrl is a partial match', () => {
|
|
20
|
-
const path = '/button-card';
|
|
21
|
-
const itemUrl = 'button';
|
|
22
|
-
const result = isUrlPathMatch(path, itemUrl);
|
|
23
|
-
expect(result).toBeFalsy();
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it('should not match since nested path and itemUrl is a partial match', () => {
|
|
27
|
-
const path = '/button/child';
|
|
28
|
-
const itemUrl = 'button';
|
|
29
|
-
const result = isUrlPathMatch(path, itemUrl);
|
|
30
|
-
expect(result).toBeFalsy();
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
it('should match with uri-with-fragment', () => {
|
|
34
|
-
const path = '/button#dark';
|
|
35
|
-
const itemUrl = 'button';
|
|
36
|
-
const result = isUrlPathMatch(path, itemUrl);
|
|
37
|
-
expect(result).toBeTruthy();
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
it('should match with uri-with-parameters', () => {
|
|
41
|
-
const path = '/button?paramater=value';
|
|
42
|
-
const itemUrl = 'button';
|
|
43
|
-
const result = isUrlPathMatch(path, itemUrl);
|
|
44
|
-
expect(result).toBeTruthy();
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('should not match with empty itemUrl', () => {
|
|
48
|
-
const path = '/';
|
|
49
|
-
const itemUrl = null;
|
|
50
|
-
const result = isUrlPathMatch(path, itemUrl);
|
|
51
|
-
expect(result).toBeFalsy();
|
|
52
|
-
});
|
|
53
|
-
});
|