@blaze-cms/react-page-builder 0.146.0-node18-core-styles.0 → 0.146.0-node18-core-styles.2
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 +28 -0
- package/lib/application/query/index.js +18 -15
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/Card/Card.js +3 -1
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +0 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +9 -7
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/icons/AddedBookmark.js +41 -0
- package/lib/components/ItemList/icons/AddedBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/BaseBookmark.js +45 -0
- package/lib/components/ItemList/icons/BaseBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/HoverBookmark.js +43 -0
- package/lib/components/ItemList/icons/HoverBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/RemoveBookmark.js +41 -0
- package/lib/components/ItemList/icons/RemoveBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/index.js +36 -0
- package/lib/components/ItemList/icons/index.js.map +1 -0
- package/lib/components/List/ListBuilder.js +1 -1
- package/lib/components/List/ListBuilder.js.map +1 -1
- package/lib/components/List/ListFactory.js +11 -5
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +32 -29
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/helpers/build-props-query.js +4 -2
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js +116 -0
- package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -0
- package/lib/variants/LiveBlogList/index.js +43 -0
- package/lib/variants/LiveBlogList/index.js.map +1 -0
- package/lib/variants/index.js +3 -1
- package/lib/variants/index.js.map +1 -1
- package/lib-es/application/query/index.js +9 -1
- package/lib-es/application/query/index.js.map +1 -1
- package/lib-es/components/Card/Card.js +3 -1
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroupTabs.js +0 -1
- package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js +9 -7
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib-es/components/ItemList/icons/AddedBookmark.js +33 -0
- package/lib-es/components/ItemList/icons/AddedBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js +37 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js +35 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js +33 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/index.js +5 -0
- package/lib-es/components/ItemList/icons/index.js.map +1 -0
- package/lib-es/components/List/ListBuilder.js +1 -1
- package/lib-es/components/List/ListBuilder.js.map +1 -1
- package/lib-es/components/List/ListFactory.js +10 -4
- package/lib-es/components/List/ListFactory.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRenderItem.js +34 -30
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib-es/helpers/build-props-query.js +4 -2
- package/lib-es/helpers/build-props-query.js.map +1 -1
- package/lib-es/index.js +1 -1
- package/lib-es/index.js.map +1 -1
- package/lib-es/variants/LiveBlogList/LiveBlogList.js +90 -0
- package/lib-es/variants/LiveBlogList/LiveBlogList.js.map +1 -0
- package/lib-es/variants/LiveBlogList/index.js +12 -0
- package/lib-es/variants/LiveBlogList/index.js.map +1 -0
- package/lib-es/variants/index.js +3 -1
- package/lib-es/variants/index.js.map +1 -1
- package/package.json +6 -6
- package/src/application/query/index.js +11 -1
- package/src/components/Card/Card.js +2 -1
- package/src/components/ContentGroup/ContentGroupTabs.js +0 -1
- package/src/components/ItemList/ItemListButton/ItemListButton.js +11 -13
- package/src/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
- package/src/components/ItemList/icons/AddedBookmark.js +33 -0
- package/src/components/ItemList/icons/BaseBookmark.js +33 -0
- package/src/components/ItemList/icons/HoverBookmark.js +33 -0
- package/src/components/ItemList/icons/RemoveBookmark.js +33 -0
- package/src/components/ItemList/icons/index.js +4 -0
- package/src/components/List/ListBuilder.js +1 -1
- package/src/components/List/ListFactory.js +13 -4
- package/src/components/List/components/Full/FullRenderItem.js +45 -28
- package/src/helpers/build-props-query.js +3 -2
- package/src/index.js +2 -1
- package/src/variants/LiveBlogList/LiveBlogList.js +109 -0
- package/src/variants/LiveBlogList/index.js +13 -0
- package/src/variants/index.js +3 -1
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListButton.test.js.snap +143 -35
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListCounter.test.js.snap +37 -7
- package/tests/unit/src/helpers/build-props-query.test.js +13 -11
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import buildPropsQuery from '../../../../src/helpers/build-props-query';
|
|
5
5
|
|
|
6
|
-
const CONTENT_INTERFACE = 'content/content';
|
|
6
|
+
const CONTENT_INTERFACE = 'content/content-base';
|
|
7
7
|
|
|
8
8
|
describe('get card render props', () => {
|
|
9
9
|
const relations = [
|
|
@@ -60,7 +60,7 @@ describe('get card render props', () => {
|
|
|
60
60
|
};
|
|
61
61
|
const query = buildPropsQuery(_data, [], cardProps);
|
|
62
62
|
expect(query).toEqual(
|
|
63
|
-
'id,name,url,sponsored,featured,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}},image{id,url,data}'
|
|
63
|
+
'id,name,url,sponsored,featured,live,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}},image{id,url,data}'
|
|
64
64
|
);
|
|
65
65
|
});
|
|
66
66
|
|
|
@@ -70,7 +70,7 @@ describe('get card render props', () => {
|
|
|
70
70
|
displayThumbnail: false
|
|
71
71
|
});
|
|
72
72
|
expect(query).toEqual(
|
|
73
|
-
'id,name,alternativePreHeader{name},alternativeHeadline,url,sponsored,featured'
|
|
73
|
+
'id,name,alternativePreHeader{name},alternativeHeadline,url,sponsored,featured,live'
|
|
74
74
|
);
|
|
75
75
|
});
|
|
76
76
|
|
|
@@ -92,18 +92,20 @@ describe('get card render props', () => {
|
|
|
92
92
|
displayThumbnail: false
|
|
93
93
|
});
|
|
94
94
|
expect(query).toEqual(
|
|
95
|
-
'id,name,alternativePreHeader{name},alternativeHeadline,url,sponsored,featured,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}}'
|
|
95
|
+
'id,name,alternativePreHeader{name},alternativeHeadline,url,sponsored,featured,live,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}}'
|
|
96
96
|
);
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
it('should not include category if the schema does not have a category', () => {
|
|
100
100
|
const query = buildPropsQuery(data, [], cardProps);
|
|
101
|
-
expect(query).toEqual('id,name,url,sponsored,featured,image{id,url,data}');
|
|
101
|
+
expect(query).toEqual('id,name,url,sponsored,featured,live,image{id,url,data}');
|
|
102
102
|
});
|
|
103
103
|
|
|
104
104
|
it('should return complex props when base includes published', () => {
|
|
105
105
|
const query = buildPropsQuery(data, ['published.date'], cardProps);
|
|
106
|
-
expect(query).toEqual(
|
|
106
|
+
expect(query).toEqual(
|
|
107
|
+
'id,name,url,sponsored,featured,live,image{id,url,data},published{date,url}'
|
|
108
|
+
);
|
|
107
109
|
});
|
|
108
110
|
|
|
109
111
|
it('should return result as if isCard was false when isCard is not passed', () => {
|
|
@@ -113,7 +115,7 @@ describe('get card render props', () => {
|
|
|
113
115
|
|
|
114
116
|
it('should return result as if isCard was false when extraProps were not passed', () => {
|
|
115
117
|
const query = buildPropsQuery(data, undefined, cardProps);
|
|
116
|
-
expect(query).toEqual('id,name,url,sponsored,featured,image{id,url,data}');
|
|
118
|
+
expect(query).toEqual('id,name,url,sponsored,featured,live,image{id,url,data}');
|
|
117
119
|
});
|
|
118
120
|
|
|
119
121
|
it('should return a string with respective props query when isCard is passed as true', () => {
|
|
@@ -136,7 +138,7 @@ describe('get card render props', () => {
|
|
|
136
138
|
|
|
137
139
|
it('should not include category and image props if card options says not to', () => {
|
|
138
140
|
const query = buildPropsQuery(data, [], { displayCategory: false, displayThumbnail: false });
|
|
139
|
-
expect(query).toEqual('id,name,url,sponsored,featured');
|
|
141
|
+
expect(query).toEqual('id,name,url,sponsored,featured,live');
|
|
140
142
|
});
|
|
141
143
|
|
|
142
144
|
it('should not fetch image if the schema does not have imageId property', () => {
|
|
@@ -153,7 +155,7 @@ describe('get card render props', () => {
|
|
|
153
155
|
};
|
|
154
156
|
const query = buildPropsQuery(_data, [], cardProps);
|
|
155
157
|
expect(query).toEqual(
|
|
156
|
-
'id,name,url,sponsored,featured,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}}'
|
|
158
|
+
'id,name,url,sponsored,featured,live,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}}'
|
|
157
159
|
);
|
|
158
160
|
});
|
|
159
161
|
|
|
@@ -179,7 +181,7 @@ describe('get card render props', () => {
|
|
|
179
181
|
};
|
|
180
182
|
const query = buildPropsQuery(_data, ['address.country'], cardProps);
|
|
181
183
|
expect(query).toEqual(
|
|
182
|
-
'id,name,url,sponsored,featured,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}},address{country,id}'
|
|
184
|
+
'id,name,url,sponsored,featured,live,category{name,listingPageId,listingPageEntity, id publishedListingPage{id, url}},address{country,id}'
|
|
183
185
|
);
|
|
184
186
|
});
|
|
185
187
|
|
|
@@ -204,7 +206,7 @@ describe('get card render props', () => {
|
|
|
204
206
|
const linkProps = ['nestedProperty.title', 'nestedDynamicProperty.title', 'address.title'];
|
|
205
207
|
const query = buildPropsQuery(_data, linkProps, {}, linkProps);
|
|
206
208
|
expect(query).toEqual(
|
|
207
|
-
'id,name,url,sponsored,featured,nestedProperty{title,url},nestedDynamicProperty{title,url},address{title,id,url}'
|
|
209
|
+
'id,name,url,sponsored,featured,live,nestedProperty{title,url},nestedDynamicProperty{title,url},address{title,id,url}'
|
|
208
210
|
);
|
|
209
211
|
});
|
|
210
212
|
});
|