@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.
Files changed (95) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/lib/application/query/index.js +18 -15
  3. package/lib/application/query/index.js.map +1 -1
  4. package/lib/components/Card/Card.js +3 -1
  5. package/lib/components/Card/Card.js.map +1 -1
  6. package/lib/components/ContentGroup/ContentGroupTabs.js +0 -1
  7. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  8. package/lib/components/ItemList/ItemListButton/ItemListButton.js +9 -7
  9. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  10. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
  11. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  12. package/lib/components/ItemList/icons/AddedBookmark.js +41 -0
  13. package/lib/components/ItemList/icons/AddedBookmark.js.map +1 -0
  14. package/lib/components/ItemList/icons/BaseBookmark.js +45 -0
  15. package/lib/components/ItemList/icons/BaseBookmark.js.map +1 -0
  16. package/lib/components/ItemList/icons/HoverBookmark.js +43 -0
  17. package/lib/components/ItemList/icons/HoverBookmark.js.map +1 -0
  18. package/lib/components/ItemList/icons/RemoveBookmark.js +41 -0
  19. package/lib/components/ItemList/icons/RemoveBookmark.js.map +1 -0
  20. package/lib/components/ItemList/icons/index.js +36 -0
  21. package/lib/components/ItemList/icons/index.js.map +1 -0
  22. package/lib/components/List/ListBuilder.js +1 -1
  23. package/lib/components/List/ListBuilder.js.map +1 -1
  24. package/lib/components/List/ListFactory.js +11 -5
  25. package/lib/components/List/ListFactory.js.map +1 -1
  26. package/lib/components/List/components/Full/FullRenderItem.js +32 -29
  27. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  28. package/lib/helpers/build-props-query.js +4 -2
  29. package/lib/helpers/build-props-query.js.map +1 -1
  30. package/lib/index.js +6 -0
  31. package/lib/index.js.map +1 -1
  32. package/lib/variants/LiveBlogList/LiveBlogList.js +116 -0
  33. package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -0
  34. package/lib/variants/LiveBlogList/index.js +43 -0
  35. package/lib/variants/LiveBlogList/index.js.map +1 -0
  36. package/lib/variants/index.js +3 -1
  37. package/lib/variants/index.js.map +1 -1
  38. package/lib-es/application/query/index.js +9 -1
  39. package/lib-es/application/query/index.js.map +1 -1
  40. package/lib-es/components/Card/Card.js +3 -1
  41. package/lib-es/components/Card/Card.js.map +1 -1
  42. package/lib-es/components/ContentGroup/ContentGroupTabs.js +0 -1
  43. package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  44. package/lib-es/components/ItemList/ItemListButton/ItemListButton.js +9 -7
  45. package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  46. package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
  47. package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  48. package/lib-es/components/ItemList/icons/AddedBookmark.js +33 -0
  49. package/lib-es/components/ItemList/icons/AddedBookmark.js.map +1 -0
  50. package/lib-es/components/ItemList/icons/BaseBookmark.js +37 -0
  51. package/lib-es/components/ItemList/icons/BaseBookmark.js.map +1 -0
  52. package/lib-es/components/ItemList/icons/HoverBookmark.js +35 -0
  53. package/lib-es/components/ItemList/icons/HoverBookmark.js.map +1 -0
  54. package/lib-es/components/ItemList/icons/RemoveBookmark.js +33 -0
  55. package/lib-es/components/ItemList/icons/RemoveBookmark.js.map +1 -0
  56. package/lib-es/components/ItemList/icons/index.js +5 -0
  57. package/lib-es/components/ItemList/icons/index.js.map +1 -0
  58. package/lib-es/components/List/ListBuilder.js +1 -1
  59. package/lib-es/components/List/ListBuilder.js.map +1 -1
  60. package/lib-es/components/List/ListFactory.js +10 -4
  61. package/lib-es/components/List/ListFactory.js.map +1 -1
  62. package/lib-es/components/List/components/Full/FullRenderItem.js +34 -30
  63. package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
  64. package/lib-es/helpers/build-props-query.js +4 -2
  65. package/lib-es/helpers/build-props-query.js.map +1 -1
  66. package/lib-es/index.js +1 -1
  67. package/lib-es/index.js.map +1 -1
  68. package/lib-es/variants/LiveBlogList/LiveBlogList.js +90 -0
  69. package/lib-es/variants/LiveBlogList/LiveBlogList.js.map +1 -0
  70. package/lib-es/variants/LiveBlogList/index.js +12 -0
  71. package/lib-es/variants/LiveBlogList/index.js.map +1 -0
  72. package/lib-es/variants/index.js +3 -1
  73. package/lib-es/variants/index.js.map +1 -1
  74. package/package.json +6 -6
  75. package/src/application/query/index.js +11 -1
  76. package/src/components/Card/Card.js +2 -1
  77. package/src/components/ContentGroup/ContentGroupTabs.js +0 -1
  78. package/src/components/ItemList/ItemListButton/ItemListButton.js +11 -13
  79. package/src/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
  80. package/src/components/ItemList/icons/AddedBookmark.js +33 -0
  81. package/src/components/ItemList/icons/BaseBookmark.js +33 -0
  82. package/src/components/ItemList/icons/HoverBookmark.js +33 -0
  83. package/src/components/ItemList/icons/RemoveBookmark.js +33 -0
  84. package/src/components/ItemList/icons/index.js +4 -0
  85. package/src/components/List/ListBuilder.js +1 -1
  86. package/src/components/List/ListFactory.js +13 -4
  87. package/src/components/List/components/Full/FullRenderItem.js +45 -28
  88. package/src/helpers/build-props-query.js +3 -2
  89. package/src/index.js +2 -1
  90. package/src/variants/LiveBlogList/LiveBlogList.js +109 -0
  91. package/src/variants/LiveBlogList/index.js +13 -0
  92. package/src/variants/index.js +3 -1
  93. package/tests/unit/src/components/ItemList/__snapshots__/ItemListButton.test.js.snap +143 -35
  94. package/tests/unit/src/components/ItemList/__snapshots__/ItemListCounter.test.js.snap +37 -7
  95. 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('id,name,url,sponsored,featured,image{id,url,data},published{date,url}');
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
  });