@blaze-cms/react-page-builder 0.128.0-alpha.1 → 0.128.0-alpha.3

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 CHANGED
@@ -3,7 +3,7 @@
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.128.0-alpha.1](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.0...v0.128.0-alpha.1) (2023-03-29)
6
+ # [0.128.0-alpha.3](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.2...v0.128.0-alpha.3) (2023-04-12)
7
7
 
8
8
  **Note:** Version bump only for package @blaze-cms/react-page-builder
9
9
 
@@ -11,15 +11,25 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [0.128.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.127.2...v0.128.0-alpha.0) (2023-03-28)
14
+ # [0.128.0-alpha.2](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.1...v0.128.0-alpha.2) (2023-03-31)
15
15
 
16
+ ## [0.127.3](https://github.com/thebyte9/blaze/compare/v0.127.2...v0.127.3) (2023-03-31)
17
+
18
+ ### Bug Fixes
19
+
20
+ * ignore DOMException errors in ErrorBoundary ([05b66af](https://github.com/thebyte9/blaze/commit/05b66afff5f8cb3ee6618e7a6b5521d8bdfbf7a0))
21
+
22
+ # [0.128.0-alpha.1](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.0...v0.128.0-alpha.1) (2023-03-29)
23
+
24
+ **Note:** Version bump only for package @blaze-cms/react-page-builder
25
+
26
+ # [0.128.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.127.2...v0.128.0-alpha.0) (2023-03-28)
16
27
 
17
28
  ### Bug Fixes
18
29
 
19
30
  * added handling of blank spaces for content groups ([#3828](https://github.com/thebyte9/blaze/issues/3828)) ([e196b41](https://github.com/thebyte9/blaze/commit/e196b41f2c424b05cc07642af9697e65e0ab26e1))
20
31
  * deconstruct correct query variable to fix filtered card loading ([#3839](https://github.com/thebyte9/blaze/issues/3839)) ([aa282ed](https://github.com/thebyte9/blaze/commit/aa282ed971768d935eba9bd8a32538f98f0abdc7))
21
32
 
22
-
23
33
  ### Features
24
34
 
25
35
  * added iframe component ([#3793](https://github.com/thebyte9/blaze/issues/3793)) ([71d1029](https://github.com/thebyte9/blaze/commit/71d102984896f7fd571a6c60499978e5c8e2d044))
@@ -28,583 +38,320 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
28
38
  * removed h2 from all but layout and withTitle hoc ([#3853](https://github.com/thebyte9/blaze/issues/3853)) ([b05160b](https://github.com/thebyte9/blaze/commit/b05160b568115f64b560dd5803f1d81fac55adca))
29
39
  * update banner repetition settings for list and card components ([#3809](https://github.com/thebyte9/blaze/issues/3809)) ([8804687](https://github.com/thebyte9/blaze/commit/88046871e16ade178fa0f89a5f8c463a0ac4c701))
30
40
 
31
-
32
-
33
-
34
-
35
41
  # [0.127.0](https://github.com/thebyte9/blaze/compare/v0.126.1...v0.127.0) (2023-02-10)
36
42
 
37
-
38
43
  ### Features
39
44
 
40
45
  * shorthand story plugins ([#3806](https://github.com/thebyte9/blaze/issues/3806)) ([08d9b82](https://github.com/thebyte9/blaze/commit/08d9b82aa1983291450c616c9bd8fd81f6ddae9d))
41
46
 
42
-
43
-
44
-
45
-
46
47
  # [0.126.0](https://github.com/thebyte9/blaze/compare/v0.126.0-alpha.6...v0.126.0) (2023-01-17)
47
48
 
48
49
  **Note:** Version bump only for package @blaze-cms/react-page-builder
49
50
 
50
-
51
-
52
-
53
-
54
51
  # [0.126.0-alpha.5](https://github.com/thebyte9/blaze/compare/v0.126.0-alpha.4...v0.126.0-alpha.5) (2023-01-12)
55
52
 
56
-
57
53
  ### Features
58
54
 
59
55
  * content groups anchor links in the url ([#3736](https://github.com/thebyte9/blaze/issues/3736)) ([b0fb981](https://github.com/thebyte9/blaze/commit/b0fb9814a62bba34e005537a7410550b1ac79afc))
60
56
 
61
-
62
-
63
-
64
-
65
57
  # [0.126.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.125.0...v0.126.0-alpha.0) (2022-12-02)
66
58
 
67
-
68
59
  ### Features
69
60
 
70
61
  * frontend should always search with pageBuilderIndexed property ([#3725](https://github.com/thebyte9/blaze/issues/3725)) ([dea4943](https://github.com/thebyte9/blaze/commit/dea49431c36cc28afb99a715a764bb5bb4a6da30))
71
62
  * vimeo player lazy loading ([#3723](https://github.com/thebyte9/blaze/issues/3723)) ([c2814eb](https://github.com/thebyte9/blaze/commit/c2814eb03f89d885dcf845ecdf07728645a607cb))
72
63
 
73
-
74
-
75
-
76
-
77
64
  # [0.125.0](https://github.com/thebyte9/blaze/compare/v0.125.0-alpha.18...v0.125.0) (2022-11-30)
78
65
 
79
66
  **Note:** Version bump only for package @blaze-cms/react-page-builder
80
67
 
81
-
82
-
83
-
84
-
85
68
  # [0.125.0-alpha.18](https://github.com/thebyte9/blaze/compare/v0.125.0-alpha.17...v0.125.0-alpha.18) (2022-11-28)
86
69
 
87
-
88
70
  ### Features
89
71
 
90
72
  * add autoLogin function to auth provider requirements ([3f5e7ed](https://github.com/thebyte9/blaze/commit/3f5e7ed949052dcc6296ac7defe87ddce6869a65))
91
73
  * allow setting custom html attribute on props to display ([115e3f1](https://github.com/thebyte9/blaze/commit/115e3f1540abfe6a5dd32dbebc2a4474197c262e))
92
74
 
93
-
94
-
95
-
96
-
97
75
  # [0.125.0-alpha.15](https://github.com/thebyte9/blaze/compare/v0.125.0-alpha.14...v0.125.0-alpha.15) (2022-11-16)
98
76
 
99
-
100
77
  ### Bug Fixes
101
78
 
102
79
  * added link handler to card ([#3692](https://github.com/thebyte9/blaze/issues/3692)) ([d7c003d](https://github.com/thebyte9/blaze/commit/d7c003d85e4e8fba4c7707a61ea33cb9ac86fceb))
103
80
 
104
-
105
81
  ### Features
106
82
 
107
83
  * GroupContent components ([#3678](https://github.com/thebyte9/blaze/issues/3678)) ([b6f5c7e](https://github.com/thebyte9/blaze/commit/b6f5c7e6e5a03f2322f3d3c1568c9d42b33ede45))
108
84
 
109
-
110
-
111
-
112
-
113
85
  # [0.125.0-alpha.14](https://github.com/thebyte9/blaze/compare/v0.125.0-alpha.13...v0.125.0-alpha.14) (2022-10-25)
114
86
 
115
87
  **Note:** Version bump only for package @blaze-cms/react-page-builder
116
88
 
117
-
118
-
119
-
120
-
121
89
  # [0.125.0-alpha.13](https://github.com/thebyte9/blaze/compare/v0.125.0-alpha.12...v0.125.0-alpha.13) (2022-10-24)
122
90
 
123
-
124
91
  ### Features
125
92
 
126
93
  * dynamic values hook and dynamic PB button properties ([#3643](https://github.com/thebyte9/blaze/issues/3643)) ([16411e7](https://github.com/thebyte9/blaze/commit/16411e731e9ac1d05312bca59156be89a554e25b))
127
94
 
128
-
129
-
130
-
131
-
132
95
  # [0.125.0-alpha.7](https://github.com/thebyte9/blaze/compare/v0.125.0-alpha.6...v0.125.0-alpha.7) (2022-10-07)
133
96
 
134
97
  **Note:** Version bump only for package @blaze-cms/react-page-builder
135
98
 
136
-
137
-
138
-
139
-
140
99
  # [0.125.0-alpha.3](https://github.com/thebyte9/blaze/compare/v0.125.0-alpha.2...v0.125.0-alpha.3) (2022-09-27)
141
100
 
142
-
143
101
  ### Features
144
102
 
145
103
  * adding vimeo provider ([#3605](https://github.com/thebyte9/blaze/issues/3605)) ([458c810](https://github.com/thebyte9/blaze/commit/458c810c647a6bcb0d69281865fd0afa0966475c))
146
104
 
147
-
148
-
149
-
150
-
151
105
  # [0.125.0-alpha.1](https://github.com/thebyte9/blaze/compare/v0.125.0-alpha.0...v0.125.0-alpha.1) (2022-09-15)
152
106
 
153
107
  **Note:** Version bump only for package @blaze-cms/react-page-builder
154
108
 
155
-
156
-
157
-
158
-
159
109
  ## [0.124.1](https://github.com/thebyte9/blaze/compare/v0.124.1-alpha.5...v0.124.1) (2022-09-06)
160
110
 
161
111
  **Note:** Version bump only for package @blaze-cms/react-page-builder
162
112
 
163
-
164
-
165
-
166
-
167
113
  ## [0.124.1-alpha.5](https://github.com/thebyte9/blaze/compare/v0.124.1-alpha.4...v0.124.1-alpha.5) (2022-09-05)
168
114
 
169
-
170
115
  ### Bug Fixes
171
116
 
172
117
  * unpersist show/hide when navigating to next page ([#3584](https://github.com/thebyte9/blaze/issues/3584)) ([5ea63ce](https://github.com/thebyte9/blaze/commit/5ea63cefd780bf3e9e85c1471571c58a1170a473))
173
118
  * use arrays for banner targetting ([#3579](https://github.com/thebyte9/blaze/issues/3579)) ([fd78f18](https://github.com/thebyte9/blaze/commit/fd78f189ba4bde01147be2d3021bdf1c17a27d58))
174
119
 
175
-
176
-
177
-
178
-
179
120
  ## [0.124.1-alpha.3](https://github.com/thebyte9/blaze/compare/v0.124.1-alpha.2...v0.124.1-alpha.3) (2022-08-25)
180
121
 
181
-
182
122
  ### Bug Fixes
183
123
 
184
124
  * search filter handles range values, show range filter even when min/max are the same ([#3568](https://github.com/thebyte9/blaze/issues/3568)) ([0c7e561](https://github.com/thebyte9/blaze/commit/0c7e561bd4bbd8fff9968dfa373cfa66ffc7a8ae))
185
125
 
186
-
187
-
188
-
189
-
190
126
  ## [0.124.1-alpha.2](https://github.com/thebyte9/blaze/compare/v0.124.1-alpha.1...v0.124.1-alpha.2) (2022-08-23)
191
127
 
192
-
193
128
  ### Bug Fixes
194
129
 
195
130
  * resolve reset filters not updating filter options ([#3563](https://github.com/thebyte9/blaze/issues/3563)) ([b230507](https://github.com/thebyte9/blaze/commit/b230507476b811f0a4d141b8e20956738c53d2fc))
196
131
 
197
-
198
-
199
-
200
-
201
132
  ## [0.124.1-alpha.1](https://github.com/thebyte9/blaze/compare/v0.124.1-alpha.0...v0.124.1-alpha.1) (2022-08-19)
202
133
 
203
-
204
134
  ### Bug Fixes
205
135
 
206
136
  * search filter component handling range values properly ([#3559](https://github.com/thebyte9/blaze/issues/3559)) ([8a261b4](https://github.com/thebyte9/blaze/commit/8a261b4b4ac472290654761e068621317f5a242f))
207
137
 
208
-
209
-
210
-
211
-
212
138
  # [0.124.0](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.43...v0.124.0) (2022-08-08)
213
139
 
214
140
  **Note:** Version bump only for package @blaze-cms/react-page-builder
215
141
 
216
-
217
-
218
-
219
-
220
142
  # [0.124.0-alpha.43](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.42...v0.124.0-alpha.43) (2022-08-05)
221
143
 
222
-
223
144
  ### Bug Fixes
224
145
 
225
146
  * set initial filter keys on initial load ([#3550](https://github.com/thebyte9/blaze/issues/3550)) ([0b4910a](https://github.com/thebyte9/blaze/commit/0b4910ae9ca751023f4a110f3bb0de42adce6549))
226
147
 
227
-
228
-
229
-
230
-
231
148
  # [0.124.0-alpha.42](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.41...v0.124.0-alpha.42) (2022-08-04)
232
149
 
233
-
234
150
  ### Bug Fixes
235
151
 
236
152
  * added special value escape check to all filters ([#3542](https://github.com/thebyte9/blaze/issues/3542)) ([7455391](https://github.com/thebyte9/blaze/commit/7455391b48f82c242c5340fecbd5f76e9b6678b1))
237
153
 
238
-
239
154
  ### Features
240
155
 
241
156
  * add button show/hide children ([#3541](https://github.com/thebyte9/blaze/issues/3541)) ([db6badf](https://github.com/thebyte9/blaze/commit/db6badf8ab116a4b5507559ca43c153012fda99c))
242
157
 
243
-
244
-
245
-
246
-
247
158
  # [0.124.0-alpha.40](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.39...v0.124.0-alpha.40) (2022-07-13)
248
159
 
249
-
250
160
  ### Bug Fixes
251
161
 
252
162
  * revert carousel classes and add card carousel arrow styles ([#3534](https://github.com/thebyte9/blaze/issues/3534)) ([54e8b07](https://github.com/thebyte9/blaze/commit/54e8b078efa9920a502f30dd0e2703e25a5ecf2a))
253
163
 
254
-
255
-
256
-
257
-
258
164
  # [0.124.0-alpha.39](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.38...v0.124.0-alpha.39) (2022-07-13)
259
165
 
260
-
261
166
  ### Bug Fixes
262
167
 
263
168
  * show filters even if no filter values by setting filter values from query ([#3533](https://github.com/thebyte9/blaze/issues/3533)) ([b8a0080](https://github.com/thebyte9/blaze/commit/b8a00804993b49066712dfbb74f20523e8cea764))
264
169
 
265
-
266
-
267
-
268
-
269
170
  # [0.124.0-alpha.37](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.36...v0.124.0-alpha.37) (2022-06-29)
270
171
 
271
-
272
172
  ### Bug Fixes
273
173
 
274
174
  * update image-cdn-react package to add as to preload tag ([#3527](https://github.com/thebyte9/blaze/issues/3527)) ([d7cab87](https://github.com/thebyte9/blaze/commit/d7cab874e824d9b2e99a0d3d5f2c6c48775132e5))
275
175
 
276
-
277
-
278
-
279
-
280
176
  # [0.124.0-alpha.36](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.35...v0.124.0-alpha.36) (2022-06-28)
281
177
 
282
-
283
178
  ### Features
284
179
 
285
180
  * make menu responsive using css ([#3526](https://github.com/thebyte9/blaze/issues/3526)) ([e8a7f45](https://github.com/thebyte9/blaze/commit/e8a7f45e22d4e31a106bff1b06ab25775a2a13ce))
286
181
 
287
-
288
-
289
-
290
-
291
182
  # [0.124.0-alpha.35](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.34...v0.124.0-alpha.35) (2022-06-27)
292
183
 
293
-
294
184
  ### Bug Fixes
295
185
 
296
186
  * set search filter values correctly. Handle missing buckets for checkbox ([#3520](https://github.com/thebyte9/blaze/issues/3520)) ([c8024f2](https://github.com/thebyte9/blaze/commit/c8024f2be5f39962f491a61ac0cc64de93d8efab))
297
187
 
298
-
299
-
300
-
301
-
302
188
  # [0.124.0-alpha.34](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.33...v0.124.0-alpha.34) (2022-06-24)
303
189
 
304
-
305
190
  ### Features
306
191
 
307
192
  * show clear list button when list in query string ([#3518](https://github.com/thebyte9/blaze/issues/3518)) ([0066907](https://github.com/thebyte9/blaze/commit/00669078ef9177300fcf388f9a01bfd874d20eca))
308
193
 
309
-
310
-
311
-
312
-
313
194
  # [0.124.0-alpha.33](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.32...v0.124.0-alpha.33) (2022-06-21)
314
195
 
315
-
316
196
  ### Features
317
197
 
318
198
  * add new item list component ([#3512](https://github.com/thebyte9/blaze/issues/3512)) ([e3f3a33](https://github.com/thebyte9/blaze/commit/e3f3a33528a46eda907d120ec9e9eaa1def544d5))
319
199
 
320
-
321
-
322
-
323
-
324
200
  # [0.124.0-alpha.32](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.31...v0.124.0-alpha.32) (2022-06-17)
325
201
 
326
202
  **Note:** Version bump only for package @blaze-cms/react-page-builder
327
203
 
328
-
329
-
330
-
331
-
332
204
  # [0.124.0-alpha.31](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.30...v0.124.0-alpha.31) (2022-06-13)
333
205
 
334
-
335
206
  ### Features
336
207
 
337
208
  * add show hide child menu items in mobile menu ([#3494](https://github.com/thebyte9/blaze/issues/3494)) ([41bfa2e](https://github.com/thebyte9/blaze/commit/41bfa2ef1999c169db6c5fc1ebbb4b7a896d1fe4))
338
209
 
339
-
340
-
341
-
342
-
343
210
  # [0.124.0-alpha.30](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.29...v0.124.0-alpha.30) (2022-06-09)
344
211
 
345
-
346
212
  ### Bug Fixes
347
213
 
348
214
  * use correct filter values in search filter ([#3501](https://github.com/thebyte9/blaze/issues/3501)) ([4466948](https://github.com/thebyte9/blaze/commit/446694875dfc2f0f32f1cf82981cbd82f3608ff1))
349
215
 
350
-
351
216
  ### Features
352
217
 
353
218
  * update responsive image to preload priority image ([6f50971](https://github.com/thebyte9/blaze/commit/6f5097162151fca62493ab50027a43f3652e949f))
354
219
 
355
-
356
-
357
-
358
-
359
220
  # [0.124.0-alpha.29](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.28...v0.124.0-alpha.29) (2022-06-06)
360
221
 
361
-
362
222
  ### Bug Fixes
363
223
 
364
224
  * contextual filter not using query props on initial load ([#3495](https://github.com/thebyte9/blaze/issues/3495)) ([a52b9e1](https://github.com/thebyte9/blaze/commit/a52b9e1b4005288e58666bb2c30c43605e6ae548))
365
225
 
366
-
367
226
  ### Features
368
227
 
369
228
  * filter counts and contextual display ([#3485](https://github.com/thebyte9/blaze/issues/3485)) ([41431fc](https://github.com/thebyte9/blaze/commit/41431fc4509824747dfcf27a0b7ff6045a32ebe4))
370
229
 
371
-
372
-
373
-
374
-
375
230
  # [0.124.0-alpha.28](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.27...v0.124.0-alpha.28) (2022-05-27)
376
231
 
377
232
  **Note:** Version bump only for package @blaze-cms/react-page-builder
378
233
 
379
-
380
-
381
-
382
-
383
234
  # [0.124.0-alpha.26](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.25...v0.124.0-alpha.26) (2022-05-24)
384
235
 
385
236
  **Note:** Version bump only for package @blaze-cms/react-page-builder
386
237
 
387
-
388
-
389
-
390
-
391
238
  # [0.124.0-alpha.25](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.24...v0.124.0-alpha.25) (2022-05-24)
392
239
 
393
240
  **Note:** Version bump only for package @blaze-cms/react-page-builder
394
241
 
395
-
396
-
397
-
398
-
399
242
  # [0.124.0-alpha.24](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.23...v0.124.0-alpha.24) (2022-05-24)
400
243
 
401
244
  **Note:** Version bump only for package @blaze-cms/react-page-builder
402
245
 
403
-
404
-
405
-
406
-
407
246
  # [0.124.0-alpha.23](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.22...v0.124.0-alpha.23) (2022-05-24)
408
247
 
409
248
  **Note:** Version bump only for package @blaze-cms/react-page-builder
410
249
 
411
-
412
-
413
-
414
-
415
250
  # [0.124.0-alpha.22](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.21...v0.124.0-alpha.22) (2022-05-24)
416
251
 
417
252
  **Note:** Version bump only for package @blaze-cms/react-page-builder
418
253
 
419
-
420
-
421
-
422
-
423
254
  # [0.124.0-alpha.21](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.20...v0.124.0-alpha.21) (2022-05-24)
424
255
 
425
256
  **Note:** Version bump only for package @blaze-cms/react-page-builder
426
257
 
427
-
428
-
429
-
430
-
431
258
  # [0.124.0-alpha.20](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.19...v0.124.0-alpha.20) (2022-05-24)
432
259
 
433
260
  **Note:** Version bump only for package @blaze-cms/react-page-builder
434
261
 
435
-
436
-
437
-
438
-
439
262
  # [0.124.0-alpha.19](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.18...v0.124.0-alpha.19) (2022-05-18)
440
263
 
441
-
442
264
  ### Features
443
265
 
444
266
  * add useDebounceSearch ([806201b](https://byte9/thebyte9/blaze/commits/806201bd2839162a78d4b64d2634c8bb6737b711))
445
267
 
446
-
447
-
448
-
449
-
450
268
  # [0.124.0-alpha.18](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.17...v0.124.0-alpha.18) (2022-05-17)
451
269
 
452
-
453
270
  ### Bug Fixes
454
271
 
455
272
  * list component add itemListId to query string ([#3477](https://github.com/thebyte9/blaze/issues/3477)) ([5eb7a9f](https://github.com/thebyte9/blaze/commit/5eb7a9f90bb3bea6d33c0ce891b0a13c929280f9))
456
273
 
457
-
458
-
459
-
460
-
461
274
  # [0.124.0-alpha.15](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.14...v0.124.0-alpha.15) (2022-05-11)
462
275
 
463
-
464
276
  ### Bug Fixes
465
277
 
466
278
  * add missing react import ([d29d867](https://github.com/thebyte9/blaze/commit/d29d8670c5c8c5e377308e57e34acec96f39e0c5))
467
279
 
468
-
469
-
470
-
471
-
472
280
  # [0.124.0-alpha.14](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.13...v0.124.0-alpha.14) (2022-05-11)
473
281
 
474
-
475
282
  ### Features
476
283
 
477
284
  * added itemCounter/itemListButton and lis logic for itemList ([#3469](https://github.com/thebyte9/blaze/issues/3469)) ([bd9e1b1](https://github.com/thebyte9/blaze/commit/bd9e1b185c929306089d495316f40ab39e242a68))
478
285
 
479
-
480
-
481
-
482
-
483
286
  # [0.124.0-alpha.13](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.12...v0.124.0-alpha.13) (2022-05-11)
484
287
 
485
288
  **Note:** Version bump only for package @blaze-cms/react-page-builder
486
289
 
487
-
488
-
489
-
490
-
491
290
  # [0.124.0-alpha.12](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.11...v0.124.0-alpha.12) (2022-05-11)
492
291
 
493
292
  **Note:** Version bump only for package @blaze-cms/react-page-builder
494
293
 
495
-
496
-
497
-
498
-
499
294
  # [0.124.0-alpha.11](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.10...v0.124.0-alpha.11) (2022-05-11)
500
295
 
501
296
  **Note:** Version bump only for package @blaze-cms/react-page-builder
502
297
 
503
-
504
-
505
-
506
-
507
298
  # [0.124.0-alpha.10](https://byte9/thebyte9/blaze/compare/v0.124.0-alpha.9...v0.124.0-alpha.10) (2022-05-11)
508
299
 
509
300
  **Note:** Version bump only for package @blaze-cms/react-page-builder
510
301
 
511
-
512
-
513
-
514
-
515
302
  # [0.124.0-alpha.9](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.8...v0.124.0-alpha.9) (2022-05-10)
516
303
 
517
-
518
304
  ### Bug Fixes
519
305
 
520
306
  * close search filter toggles on submit ([#3461](https://github.com/thebyte9/blaze/issues/3461)) ([412ebf1](https://github.com/thebyte9/blaze/commit/412ebf1a93760405f8942af59b8debf4fa69b994))
521
307
  * enable changing filter aggregation size ([#3459](https://github.com/thebyte9/blaze/issues/3459)) ([d65111f](https://github.com/thebyte9/blaze/commit/d65111f8353a17a18cb82b0ba63470347f3b63b6))
522
308
  * fix apollo client version to 3.5.x while investigating ssr issue ([#3466](https://github.com/thebyte9/blaze/issues/3466)) ([8f14f8e](https://github.com/thebyte9/blaze/commit/8f14f8e9946f0e1e2ed3d9eb747a6d01c34e9937))
523
309
 
524
-
525
-
526
-
527
-
528
310
  # [0.124.0-alpha.8](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.7...v0.124.0-alpha.8) (2022-05-06)
529
311
 
530
312
  ### Bug Fixes
531
313
 
532
314
  * enable changing filter aggregation size ([#3459](https://github.com/thebyte9/blaze/issues/3459)) ([#3460](https://github.com/thebyte9/blaze/issues/3460)) ([04ea731](https://github.com/thebyte9/blaze/commit/04ea7311902ac195f0badd7807fa827e00f1f946))
533
315
 
534
-
535
-
536
-
537
316
  ## [0.122.5](https://github.com/thebyte9/blaze/compare/v0.122.4...v0.122.5) (2022-05-06)
538
317
 
539
-
540
318
  ### Bug Fixes
541
319
 
542
320
  * enable changing filter aggregation size ([#3458](https://github.com/thebyte9/blaze/issues/3458)) ([5693f8a](https://github.com/thebyte9/blaze/commit/5693f8aebc30b4b2e0996a0cbb55f0d732f4e39e))
543
321
 
544
-
545
-
546
-
547
-
548
-
549
-
550
-
551
322
  # [0.124.0-alpha.7](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.6...v0.124.0-alpha.7) (2022-05-06)
552
323
 
553
324
  **Note:** Version bump only for package @blaze-cms/react-page-builder
554
325
 
555
-
556
-
557
-
558
-
559
326
  # [0.124.0-alpha.6](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.5...v0.124.0-alpha.6) (2022-05-06)
560
327
 
561
328
  **Note:** Version bump only for package @blaze-cms/react-page-builder
562
329
 
563
-
564
-
565
-
566
-
567
330
  # [0.124.0-alpha.4](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.3...v0.124.0-alpha.4) (2022-05-03)
568
331
 
569
-
570
332
  ### Bug Fixes
571
333
 
572
334
  * add id prop to filter queries to help data merges in apollo ([#3451](https://github.com/thebyte9/blaze/issues/3451)) ([0e66222](https://github.com/thebyte9/blaze/commit/0e662220e80da84c1713e23b60f2ab4495a8e883))
573
335
 
574
-
575
336
  ### Features
576
337
 
577
338
  * adding url property to document and update card to fetch url for non content entity ([#3371](https://github.com/thebyte9/blaze/issues/3371)) ([5a52e05](https://github.com/thebyte9/blaze/commit/5a52e05d83c2ce564aa8faada635660c7e4e3eef))
578
339
 
579
-
580
-
581
-
582
-
583
340
  # [0.124.0-alpha.3](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.2...v0.124.0-alpha.3) (2022-04-29)
584
341
 
585
342
  **Note:** Version bump only for package @blaze-cms/react-page-builder
586
343
 
587
-
588
-
589
-
590
-
591
344
  # [0.124.0-alpha.2](https://github.com/thebyte9/blaze/compare/v0.124.0-alpha.1...v0.124.0-alpha.2) (2022-04-29)
592
345
 
593
346
  **Note:** Version bump only for package @blaze-cms/react-page-builder
594
347
 
595
-
596
-
597
-
598
-
599
348
  # [0.124.0-alpha.1](https://github.com/thebyte9/blaze/compare/v0.122.4...v0.124.0-alpha.1) (2022-04-27)
600
349
 
601
-
602
350
  ### Bug Fixes
603
351
 
604
352
  * handle default select filter value correctly ([3453057](https://github.com/thebyte9/blaze/commit/345305725051ae40109bc405246907cf58bbcba3))
605
353
  * render empty card block when removing card that same as parent record ([#3171](https://github.com/thebyte9/blaze/issues/3171)) ([bce20cf](https://github.com/thebyte9/blaze/commit/bce20cfd05a7e66444f0aadd67389b6adf18430c))
606
354
 
607
-
608
355
  ### Features
609
356
 
610
357
  * add back to top component ([#3436](https://github.com/thebyte9/blaze/issues/3436)) ([e0454fe](https://github.com/thebyte9/blaze/commit/e0454fe0a8b36e9e34539e95b57128d66a3b43cf))
@@ -613,262 +360,152 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
613
360
  * add tel: link to data summary data ([#3420](https://github.com/thebyte9/blaze/issues/3420)) ([6223ac9](https://github.com/thebyte9/blaze/commit/6223ac99839c50626173a1cb0f2922e40ec60f10))
614
361
  * added video modal play ([#3433](https://github.com/thebyte9/blaze/issues/3433)) ([b88338a](https://github.com/thebyte9/blaze/commit/b88338acf362fe6609e430c039b7dadee0fa8a91))
615
362
 
616
-
617
-
618
363
  # [0.124.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.123.1-alpha.2...v0.124.0-alpha.0) (2022-04-25)
619
364
 
620
-
621
-
622
365
  ## [0.123.1-alpha.2](https://github.com/thebyte9/blaze/compare/v0.123.1-alpha.1...v0.123.1-alpha.2) (2022-04-21)
623
366
 
624
-
625
-
626
367
  ## [0.123.1-alpha.1](https://github.com/thebyte9/blaze/compare/v0.123.1-alpha.0...v0.123.1-alpha.1) (2022-04-21)
627
368
 
628
-
629
-
630
369
  ## [0.123.1-alpha.0](https://github.com/thebyte9/blaze/compare/v0.123.0...v0.123.1-alpha.0) (2022-04-21)
631
370
 
632
-
633
-
634
371
  # [0.123.0](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.29...v0.123.0) (2022-04-11)
635
372
 
636
-
637
-
638
373
  # [0.123.0-alpha.27](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.26...v0.123.0-alpha.27) (2022-04-07)
639
374
 
640
-
641
-
642
375
  # [0.123.0-alpha.25](https://github.com/thebyte9/blaze/compare/v0.122.3...v0.123.0-alpha.25) (2022-04-07)
643
376
 
644
-
645
-
646
377
  # [0.123.0-alpha.24](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.23...v0.123.0-alpha.24) (2022-04-05)
647
378
 
648
-
649
379
  ### Bug Fixes
650
380
 
651
381
  * handle default select filter value correctly ([4dfb85a](https://github.com/thebyte9/blaze/commit/4dfb85a6e1aeb9e7b927d06088220ed38e8886e5))
652
382
 
653
-
654
383
  ### Features
655
384
 
656
385
  * add display label as placeholder for select filter ([cf3bbf1](https://github.com/thebyte9/blaze/commit/cf3bbf18f0316d7b61b4da4e631750033105bb02))
657
386
  * add tel: link to data summary data ([#3420](https://github.com/thebyte9/blaze/issues/3420)) ([9f59a02](https://github.com/thebyte9/blaze/commit/9f59a0200dec1c506b2a7062cbaff812d51c85e1))
658
387
 
659
-
660
-
661
388
  # [0.123.0-alpha.23](https://github.com/thebyte9/blaze/compare/v0.122.2...v0.123.0-alpha.23) (2022-04-04)
662
389
 
663
-
664
390
  ### Bug Fixes
665
391
 
666
392
  * render empty card block when removing card that same as parent record ([#3171](https://github.com/thebyte9/blaze/issues/3171)) ([31c1644](https://github.com/thebyte9/blaze/commit/31c1644db187a1a2ac0337254770d914a4542410))
667
393
 
668
-
669
394
  ### Features
670
395
 
671
396
  * add email/web links around matching data summary values ([#3407](https://github.com/thebyte9/blaze/issues/3407)) ([78257b2](https://github.com/thebyte9/blaze/commit/78257b2f9b75e05e229a45c7d0a09d1bea452b57))
672
397
 
673
-
674
-
675
398
  # [0.123.0-alpha.22](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.21...v0.123.0-alpha.22) (2022-04-04)
676
399
 
677
-
678
-
679
400
  # [0.123.0-alpha.21](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.20...v0.123.0-alpha.21) (2022-04-01)
680
401
 
681
-
682
-
683
402
  # [0.123.0-alpha.20](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.19...v0.123.0-alpha.20) (2022-04-01)
684
403
 
685
-
686
-
687
404
  # [0.123.0-alpha.19](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.18...v0.123.0-alpha.19) (2022-03-31)
688
405
 
689
-
690
406
  ### Bug Fixes
691
407
 
692
408
  * handle search filter with css ([#3395](https://github.com/thebyte9/blaze/issues/3395)) ([41cef02](https://github.com/thebyte9/blaze/commit/41cef02add747256cb813b0d2985f54ec92a4061))
693
409
 
694
-
695
-
696
410
  # [0.123.0-alpha.18](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.17...v0.123.0-alpha.18) (2022-03-31)
697
411
 
698
-
699
-
700
412
  # [0.123.0-alpha.17](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.16...v0.123.0-alpha.17) (2022-03-31)
701
413
 
702
-
703
-
704
414
  # [0.123.0-alpha.16](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.15...v0.123.0-alpha.16) (2022-03-30)
705
415
 
706
-
707
-
708
416
  # [0.123.0-alpha.15](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.14...v0.123.0-alpha.15) (2022-03-30)
709
417
 
710
-
711
-
712
418
  # [0.123.0-alpha.14](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.13...v0.123.0-alpha.14) (2022-03-30)
713
419
 
714
-
715
420
  ### Bug Fixes
716
421
 
717
422
  * hide error if query fails ([fdfbc41](https://github.com/thebyte9/blaze/commit/fdfbc417b767ea68a20fb300f453500f0ab11098))
718
423
 
719
-
720
-
721
424
  # [0.123.0-alpha.13](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.12...v0.123.0-alpha.13) (2022-03-30)
722
425
 
723
-
724
-
725
426
  # [0.123.0-alpha.12](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.9...v0.123.0-alpha.12) (2022-03-30)
726
427
 
727
-
728
-
729
428
  # [0.123.0-alpha.9](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.8...v0.123.0-alpha.9) (2022-03-26)
730
429
 
731
-
732
-
733
430
  # [0.123.0-alpha.8](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.7...v0.123.0-alpha.8) (2022-03-26)
734
431
 
735
-
736
-
737
432
  # [0.123.0-alpha.7](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.6...v0.123.0-alpha.7) (2022-03-26)
738
433
 
739
-
740
434
  ### Bug Fixes
741
435
 
742
436
  * logo and search input alignment ([c0e9382](https://github.com/thebyte9/blaze/commit/c0e9382769a569b84ba61fbe43d29c6c3a3f6553))
743
437
 
744
-
745
-
746
438
  # [0.123.0-alpha.6](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.5...v0.123.0-alpha.6) (2022-03-26)
747
439
 
748
-
749
-
750
440
  # [0.123.0-alpha.5](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.4...v0.123.0-alpha.5) (2022-03-26)
751
441
 
752
-
753
-
754
442
  # [0.123.0-alpha.4](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.3...v0.123.0-alpha.4) (2022-03-25)
755
443
 
756
-
757
444
  ### Features
758
445
 
759
446
  * add email/web links around matching data summary values ([#3407](https://github.com/thebyte9/blaze/issues/3407)) ([d2e4496](https://github.com/thebyte9/blaze/commit/d2e449622eaba85eb03612b14bd9cfcfb47bca4f))
760
447
 
761
-
762
-
763
448
  # [0.123.0-alpha.3](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.2...v0.123.0-alpha.3) (2022-03-25)
764
449
 
765
-
766
450
  ### Bug Fixes
767
451
 
768
452
  * render empty card block when removing card that same as parent record ([#3171](https://github.com/thebyte9/blaze/issues/3171)) ([011bd77](https://github.com/thebyte9/blaze/commit/011bd77cab7eba6462e42e7d61e075a6c4e58248))
769
453
 
770
-
771
-
772
454
  # [0.123.0-alpha.2](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.1...v0.123.0-alpha.2) (2022-03-22)
773
455
 
774
-
775
-
776
-
777
-
778
456
  # [0.124.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.123.1-alpha.2...v0.124.0-alpha.0) (2022-04-25)
779
457
 
780
458
  **Note:** Version bump only for package @blaze-cms/react-page-builder
781
459
 
782
-
783
-
784
-
785
460
  ## [0.122.3](https://github.com/thebyte9/blaze/compare/v0.122.2...v0.122.3) (2022-04-06)
786
461
 
787
-
788
462
  ### Bug Fixes
789
463
 
790
464
  * add id to elasticsearch index data and update frontend item to display sort to use ([#3426](https://github.com/thebyte9/blaze/issues/3426)) ([0e3572c](https://github.com/thebyte9/blaze/commit/0e3572cdc69a8a59f9a500c1ae452a940c0f97cd))
791
465
 
792
-
793
-
794
-
795
-
796
466
  ## [0.122.2](https://github.com/thebyte9/blaze/compare/v0.122.1...v0.122.2) (2022-04-04)
797
467
 
798
468
  **Note:** Version bump only for package @blaze-cms/react-page-builder
799
469
 
800
-
801
-
802
-
803
-
804
470
  ## [0.123.1-alpha.2](https://github.com/thebyte9/blaze/compare/v0.123.1-alpha.1...v0.123.1-alpha.2) (2022-04-21)
805
471
 
806
472
  **Note:** Version bump only for package @blaze-cms/react-page-builder
807
473
 
808
-
809
-
810
-
811
-
812
474
  ## [0.123.1-alpha.1](https://github.com/thebyte9/blaze/compare/v0.123.1-alpha.0...v0.123.1-alpha.1) (2022-04-21)
813
475
 
814
476
  **Note:** Version bump only for package @blaze-cms/react-page-builder
815
477
 
816
-
817
-
818
-
819
-
820
478
  ## [0.123.1-alpha.0](https://github.com/thebyte9/blaze/compare/v0.123.0...v0.123.1-alpha.0) (2022-04-21)
821
479
 
822
480
  **Note:** Version bump only for package @blaze-cms/react-page-builder
823
481
 
824
-
825
-
826
-
827
-
828
482
  # [0.123.0](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.29...v0.123.0) (2022-04-11)
829
483
 
830
484
  **Note:** Version bump only for package @blaze-cms/react-page-builder
831
485
 
832
-
833
-
834
-
835
-
836
486
  # [0.123.0-alpha.27](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.26...v0.123.0-alpha.27) (2022-04-07)
837
487
 
838
488
  **Note:** Version bump only for package @blaze-cms/react-page-builder
839
489
 
840
-
841
-
842
-
843
-
844
490
  # [0.123.0-alpha.25](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.24...v0.123.0-alpha.25) (2022-04-07)
845
491
 
846
492
  **Note:** Version bump only for package @blaze-cms/react-page-builder
847
493
 
848
-
849
-
850
-
851
-
852
494
  # [0.123.0-alpha.24](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.23...v0.123.0-alpha.24) (2022-04-05)
853
495
 
854
-
855
496
  ### Bug Fixes
856
497
 
857
498
  * handle default select filter value correctly ([4dfb85a](https://github.com/thebyte9/blaze/commit/4dfb85a6e1aeb9e7b927d06088220ed38e8886e5))
858
499
  * render empty card block when removing card that same as parent record ([#3171](https://github.com/thebyte9/blaze/issues/3171)) ([31c1644](https://github.com/thebyte9/blaze/commit/31c1644db187a1a2ac0337254770d914a4542410))
859
500
 
860
-
861
501
  ### Features
862
502
 
863
503
  * add display label as placeholder for select filter ([cf3bbf1](https://github.com/thebyte9/blaze/commit/cf3bbf18f0316d7b61b4da4e631750033105bb02))
864
504
  * add email/web links around matching data summary values ([#3407](https://github.com/thebyte9/blaze/issues/3407)) ([78257b2](https://github.com/thebyte9/blaze/commit/78257b2f9b75e05e229a45c7d0a09d1bea452b57))
865
505
  * add tel: link to data summary data ([#3420](https://github.com/thebyte9/blaze/issues/3420)) ([9f59a02](https://github.com/thebyte9/blaze/commit/9f59a0200dec1c506b2a7062cbaff812d51c85e1))
866
506
 
867
-
868
-
869
507
  ## [0.122.2](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.22...v0.122.2) (2022-04-04)
870
508
 
871
-
872
509
  ### Bug Fixes
873
510
 
874
511
  * add initial modifier to filter form ([be2254c](https://github.com/thebyte9/blaze/commit/be2254c967137b1c08e9989fcd1bf29d3675bb05))
@@ -877,10 +514,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
877
514
  * remove visibility ([32afbb4](https://github.com/thebyte9/blaze/commit/32afbb49f097a43e3e58a4938862a839beabe394))
878
515
  * update to handle isCollapseOnMobile more consistently ([3123d99](https://github.com/thebyte9/blaze/commit/3123d9952f3d19391f91252bc1cfc716c787bed1))
879
516
 
880
-
881
-
882
-
883
-
884
517
  # [0.123.0-alpha.23](https://github.com/thebyte9/blaze/compare/v0.123.0-alpha.22...v0.123.0-alpha.23) (2022-04-04)
885
518
 
886
519
  **Note:** Version bump only for package @blaze-cms/react-page-builder
@@ -13,6 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
16
+ var _coreErrorsUi = _interopRequireDefault(require("@blaze-cms/core-errors-ui"));
16
17
  var _getComponent = _interopRequireDefault(require("./getComponent"));
17
18
  var _appendGtmClassname = _interopRequireDefault(require("./append-gtm-classname"));
18
19
  var _constants = require("./constants");
@@ -37,7 +38,7 @@ var RenderComponent = function RenderComponent(_ref) {
37
38
  var imageOptions = isImage ? imageProps : {};
38
39
  if (!Component) return null;
39
40
  var updatedSettings = (0, _appendGtmClassname["default"])(settings, childComponents);
40
- return /*#__PURE__*/_react["default"].createElement(Component, (0, _extends2["default"])({
41
+ return /*#__PURE__*/_react["default"].createElement(_coreErrorsUi["default"], null, /*#__PURE__*/_react["default"].createElement(Component, (0, _extends2["default"])({
41
42
  key: id,
42
43
  type: type
43
44
  }, options, imageOptions, nestedComponentsProps, updatedSettings, {
@@ -46,7 +47,7 @@ var RenderComponent = function RenderComponent(_ref) {
46
47
  siblings: siblings,
47
48
  banners: textBlockBanners,
48
49
  pbOptions: options
49
- }, childComponents) : childComponents);
50
+ }, childComponents) : childComponents));
50
51
  };
51
52
  RenderComponent.propTypes = {
52
53
  component: _propTypes["default"].shape({
@@ -1 +1 @@
1
- {"version":3,"file":"RenderComponent.js","names":["_react","_interopRequireDefault","require","_propTypes","_getComponent","_appendGtmClassname","_constants","_BannerContext","_excluded","RenderComponent","_ref","component","imageProps","childComponents","_ref$options","options","textBlockBanners","hasTextBlockBanners","siblings","nestedComponentsProps","_objectWithoutProperties2","type","settings","id","name","Component","getComponent","isImage","PB_TYPE_IMAGE","PB_TYPE_BANNER","PB_TYPE_TEXTBLOCK","PB_TYPE_CAROUSEL","includes","imageOptions","updatedSettings","appendGtmClassName","createElement","_extends2","key","BannerContextProvider","banners","pbOptions","propTypes","PropTypes","shape","string","object","items","array","isRequired","node","bool","defaultProps","_default","exports"],"sources":["../../../src/hooks/helpers/RenderComponent.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport getComponent from './getComponent';\nimport appendGtmClassName from './append-gtm-classname';\nimport { PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL } from './constants';\nimport { BannerContextProvider } from '../../BannerContext';\n\nconst RenderComponent = ({\n component,\n imageProps,\n childComponents,\n options = {},\n textBlockBanners,\n hasTextBlockBanners,\n siblings,\n ...nestedComponentsProps\n}) => {\n const { type, settings, id, name } = component;\n const Component = getComponent(type);\n const isImage = [PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL].includes(\n type\n );\n const imageOptions = isImage ? imageProps : {};\n if (!Component) return null;\n const updatedSettings = appendGtmClassName(settings, childComponents);\n\n return (\n <Component\n key={id}\n type={type}\n {...options}\n {...imageOptions}\n {...nestedComponentsProps}\n {...updatedSettings}\n name={name || settings.name}>\n {hasTextBlockBanners ? (\n <BannerContextProvider siblings={siblings} banners={textBlockBanners} pbOptions={options}>\n {childComponents}\n </BannerContextProvider>\n ) : (\n childComponents\n )}\n </Component>\n );\n};\n\nRenderComponent.propTypes = {\n component: PropTypes.shape({\n type: PropTypes.string,\n id: PropTypes.string,\n name: PropTypes.string,\n settings: PropTypes.object,\n items: PropTypes.array\n }).isRequired,\n imageProps: PropTypes.object.isRequired,\n options: PropTypes.object.isRequired,\n childComponents: PropTypes.node.isRequired,\n textBlockBanners: PropTypes.array,\n hasTextBlockBanners: PropTypes.bool,\n siblings: PropTypes.array\n};\n\nRenderComponent.defaultProps = { textBlockBanners: null, hasTextBlockBanners: false, siblings: [] };\n\nexport default RenderComponent;\n"],"mappings":"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"}
1
+ {"version":3,"file":"RenderComponent.js","names":["_react","_interopRequireDefault","require","_propTypes","_coreErrorsUi","_getComponent","_appendGtmClassname","_constants","_BannerContext","_excluded","RenderComponent","_ref","component","imageProps","childComponents","_ref$options","options","textBlockBanners","hasTextBlockBanners","siblings","nestedComponentsProps","_objectWithoutProperties2","type","settings","id","name","Component","getComponent","isImage","PB_TYPE_IMAGE","PB_TYPE_BANNER","PB_TYPE_TEXTBLOCK","PB_TYPE_CAROUSEL","includes","imageOptions","updatedSettings","appendGtmClassName","createElement","_extends2","key","BannerContextProvider","banners","pbOptions","propTypes","PropTypes","shape","string","object","items","array","isRequired","node","bool","defaultProps","_default","exports"],"sources":["../../../src/hooks/helpers/RenderComponent.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ErrorBoundary from '@blaze-cms/core-errors-ui';\nimport getComponent from './getComponent';\nimport appendGtmClassName from './append-gtm-classname';\nimport { PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL } from './constants';\nimport { BannerContextProvider } from '../../BannerContext';\n\nconst RenderComponent = ({\n component,\n imageProps,\n childComponents,\n options = {},\n textBlockBanners,\n hasTextBlockBanners,\n siblings,\n ...nestedComponentsProps\n}) => {\n const { type, settings, id, name } = component;\n const Component = getComponent(type);\n const isImage = [PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL].includes(\n type\n );\n const imageOptions = isImage ? imageProps : {};\n if (!Component) return null;\n const updatedSettings = appendGtmClassName(settings, childComponents);\n\n return (\n <ErrorBoundary>\n <Component\n key={id}\n type={type}\n {...options}\n {...imageOptions}\n {...nestedComponentsProps}\n {...updatedSettings}\n name={name || settings.name}>\n {hasTextBlockBanners ? (\n <BannerContextProvider siblings={siblings} banners={textBlockBanners} pbOptions={options}>\n {childComponents}\n </BannerContextProvider>\n ) : (\n childComponents\n )}\n </Component>\n </ErrorBoundary>\n );\n};\n\nRenderComponent.propTypes = {\n component: PropTypes.shape({\n type: PropTypes.string,\n id: PropTypes.string,\n name: PropTypes.string,\n settings: PropTypes.object,\n items: PropTypes.array\n }).isRequired,\n imageProps: PropTypes.object.isRequired,\n options: PropTypes.object.isRequired,\n childComponents: PropTypes.node.isRequired,\n textBlockBanners: PropTypes.array,\n hasTextBlockBanners: PropTypes.bool,\n siblings: PropTypes.array\n};\n\nRenderComponent.defaultProps = { textBlockBanners: null, hasTextBlockBanners: false, siblings: [] };\n\nexport default RenderComponent;\n"],"mappings":"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"}
@@ -3,6 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  const _excluded = ["component", "imageProps", "childComponents", "options", "textBlockBanners", "hasTextBlockBanners", "siblings"];
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
+ import ErrorBoundary from '@blaze-cms/core-errors-ui';
6
7
  import getComponent from './getComponent';
7
8
  import appendGtmClassName from './append-gtm-classname';
8
9
  import { PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL } from './constants';
@@ -29,7 +30,7 @@ const RenderComponent = _ref => {
29
30
  const imageOptions = isImage ? imageProps : {};
30
31
  if (!Component) return null;
31
32
  const updatedSettings = appendGtmClassName(settings, childComponents);
32
- return /*#__PURE__*/React.createElement(Component, _extends({
33
+ return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(Component, _extends({
33
34
  key: id,
34
35
  type: type
35
36
  }, options, imageOptions, nestedComponentsProps, updatedSettings, {
@@ -38,7 +39,7 @@ const RenderComponent = _ref => {
38
39
  siblings: siblings,
39
40
  banners: textBlockBanners,
40
41
  pbOptions: options
41
- }, childComponents) : childComponents);
42
+ }, childComponents) : childComponents));
42
43
  };
43
44
  RenderComponent.propTypes = {
44
45
  component: PropTypes.shape({
@@ -1 +1 @@
1
- {"version":3,"file":"RenderComponent.js","names":["React","PropTypes","getComponent","appendGtmClassName","PB_TYPE_IMAGE","PB_TYPE_BANNER","PB_TYPE_TEXTBLOCK","PB_TYPE_CAROUSEL","BannerContextProvider","RenderComponent","_ref","component","imageProps","childComponents","options","textBlockBanners","hasTextBlockBanners","siblings","nestedComponentsProps","_objectWithoutProperties","_excluded","type","settings","id","name","Component","isImage","includes","imageOptions","updatedSettings","createElement","_extends","key","banners","pbOptions","propTypes","shape","string","object","items","array","isRequired","node","bool","defaultProps"],"sources":["../../../src/hooks/helpers/RenderComponent.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport getComponent from './getComponent';\nimport appendGtmClassName from './append-gtm-classname';\nimport { PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL } from './constants';\nimport { BannerContextProvider } from '../../BannerContext';\n\nconst RenderComponent = ({\n component,\n imageProps,\n childComponents,\n options = {},\n textBlockBanners,\n hasTextBlockBanners,\n siblings,\n ...nestedComponentsProps\n}) => {\n const { type, settings, id, name } = component;\n const Component = getComponent(type);\n const isImage = [PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL].includes(\n type\n );\n const imageOptions = isImage ? imageProps : {};\n if (!Component) return null;\n const updatedSettings = appendGtmClassName(settings, childComponents);\n\n return (\n <Component\n key={id}\n type={type}\n {...options}\n {...imageOptions}\n {...nestedComponentsProps}\n {...updatedSettings}\n name={name || settings.name}>\n {hasTextBlockBanners ? (\n <BannerContextProvider siblings={siblings} banners={textBlockBanners} pbOptions={options}>\n {childComponents}\n </BannerContextProvider>\n ) : (\n childComponents\n )}\n </Component>\n );\n};\n\nRenderComponent.propTypes = {\n component: PropTypes.shape({\n type: PropTypes.string,\n id: PropTypes.string,\n name: PropTypes.string,\n settings: PropTypes.object,\n items: PropTypes.array\n }).isRequired,\n imageProps: PropTypes.object.isRequired,\n options: PropTypes.object.isRequired,\n childComponents: PropTypes.node.isRequired,\n textBlockBanners: PropTypes.array,\n hasTextBlockBanners: PropTypes.bool,\n siblings: PropTypes.array\n};\n\nRenderComponent.defaultProps = { textBlockBanners: null, hasTextBlockBanners: false, siblings: [] };\n\nexport default RenderComponent;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,kBAAkB,MAAM,wBAAwB;AACvD,SAASC,aAAa,EAAEC,cAAc,EAAEC,iBAAiB,EAAEC,gBAAgB,QAAQ,aAAa;AAChG,SAASC,qBAAqB,QAAQ,qBAAqB;AAE3D,MAAMC,eAAe,GAAGC,IAAA,IASlB;EAAA,IATmB;MACvBC,SAAS;MACTC,UAAU;MACVC,eAAe;MACfC,OAAO,GAAG,CAAC,CAAC;MACZC,gBAAgB;MAChBC,mBAAmB;MACnBC;IAEF,CAAC,GAAAP,IAAA;IADIQ,qBAAqB,GAAAC,wBAAA,CAAAT,IAAA,EAAAU,SAAA;EAExB,MAAM;IAAEC,IAAI;IAAEC,QAAQ;IAAEC,EAAE;IAAEC;EAAK,CAAC,GAAGb,SAAS;EAC9C,MAAMc,SAAS,GAAGvB,YAAY,CAACmB,IAAI,CAAC;EACpC,MAAMK,OAAO,GAAG,CAACtB,aAAa,EAAEC,cAAc,EAAEC,iBAAiB,EAAEC,gBAAgB,CAAC,CAACoB,QAAQ,CAC3FN,IAAI,CACL;EACD,MAAMO,YAAY,GAAGF,OAAO,GAAGd,UAAU,GAAG,CAAC,CAAC;EAC9C,IAAI,CAACa,SAAS,EAAE,OAAO,IAAI;EAC3B,MAAMI,eAAe,GAAG1B,kBAAkB,CAACmB,QAAQ,EAAET,eAAe,CAAC;EAErE,oBACEb,KAAA,CAAA8B,aAAA,CAACL,SAAS,EAAAM,QAAA;IACRC,GAAG,EAAET,EAAG;IACRF,IAAI,EAAEA;EAAK,GACPP,OAAO,EACPc,YAAY,EACZV,qBAAqB,EACrBW,eAAe;IACnBL,IAAI,EAAEA,IAAI,IAAIF,QAAQ,CAACE;EAAK,IAC3BR,mBAAmB,gBAClBhB,KAAA,CAAA8B,aAAA,CAACtB,qBAAqB;IAACS,QAAQ,EAAEA,QAAS;IAACgB,OAAO,EAAElB,gBAAiB;IAACmB,SAAS,EAAEpB;EAAQ,GACtFD,eAAe,CACM,GAExBA,eACD,CACS;AAEhB,CAAC;AAEDJ,eAAe,CAAC0B,SAAS,GAAG;EAC1BxB,SAAS,EAAEV,SAAS,CAACmC,KAAK,CAAC;IACzBf,IAAI,EAAEpB,SAAS,CAACoC,MAAM;IACtBd,EAAE,EAAEtB,SAAS,CAACoC,MAAM;IACpBb,IAAI,EAAEvB,SAAS,CAACoC,MAAM;IACtBf,QAAQ,EAAErB,SAAS,CAACqC,MAAM;IAC1BC,KAAK,EAAEtC,SAAS,CAACuC;EACnB,CAAC,CAAC,CAACC,UAAU;EACb7B,UAAU,EAAEX,SAAS,CAACqC,MAAM,CAACG,UAAU;EACvC3B,OAAO,EAAEb,SAAS,CAACqC,MAAM,CAACG,UAAU;EACpC5B,eAAe,EAAEZ,SAAS,CAACyC,IAAI,CAACD,UAAU;EAC1C1B,gBAAgB,EAAEd,SAAS,CAACuC,KAAK;EACjCxB,mBAAmB,EAAEf,SAAS,CAAC0C,IAAI;EACnC1B,QAAQ,EAAEhB,SAAS,CAACuC;AACtB,CAAC;AAED/B,eAAe,CAACmC,YAAY,GAAG;EAAE7B,gBAAgB,EAAE,IAAI;EAAEC,mBAAmB,EAAE,KAAK;EAAEC,QAAQ,EAAE;AAAG,CAAC;AAEnG,eAAeR,eAAe"}
1
+ {"version":3,"file":"RenderComponent.js","names":["React","PropTypes","ErrorBoundary","getComponent","appendGtmClassName","PB_TYPE_IMAGE","PB_TYPE_BANNER","PB_TYPE_TEXTBLOCK","PB_TYPE_CAROUSEL","BannerContextProvider","RenderComponent","_ref","component","imageProps","childComponents","options","textBlockBanners","hasTextBlockBanners","siblings","nestedComponentsProps","_objectWithoutProperties","_excluded","type","settings","id","name","Component","isImage","includes","imageOptions","updatedSettings","createElement","_extends","key","banners","pbOptions","propTypes","shape","string","object","items","array","isRequired","node","bool","defaultProps"],"sources":["../../../src/hooks/helpers/RenderComponent.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ErrorBoundary from '@blaze-cms/core-errors-ui';\nimport getComponent from './getComponent';\nimport appendGtmClassName from './append-gtm-classname';\nimport { PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL } from './constants';\nimport { BannerContextProvider } from '../../BannerContext';\n\nconst RenderComponent = ({\n component,\n imageProps,\n childComponents,\n options = {},\n textBlockBanners,\n hasTextBlockBanners,\n siblings,\n ...nestedComponentsProps\n}) => {\n const { type, settings, id, name } = component;\n const Component = getComponent(type);\n const isImage = [PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL].includes(\n type\n );\n const imageOptions = isImage ? imageProps : {};\n if (!Component) return null;\n const updatedSettings = appendGtmClassName(settings, childComponents);\n\n return (\n <ErrorBoundary>\n <Component\n key={id}\n type={type}\n {...options}\n {...imageOptions}\n {...nestedComponentsProps}\n {...updatedSettings}\n name={name || settings.name}>\n {hasTextBlockBanners ? (\n <BannerContextProvider siblings={siblings} banners={textBlockBanners} pbOptions={options}>\n {childComponents}\n </BannerContextProvider>\n ) : (\n childComponents\n )}\n </Component>\n </ErrorBoundary>\n );\n};\n\nRenderComponent.propTypes = {\n component: PropTypes.shape({\n type: PropTypes.string,\n id: PropTypes.string,\n name: PropTypes.string,\n settings: PropTypes.object,\n items: PropTypes.array\n }).isRequired,\n imageProps: PropTypes.object.isRequired,\n options: PropTypes.object.isRequired,\n childComponents: PropTypes.node.isRequired,\n textBlockBanners: PropTypes.array,\n hasTextBlockBanners: PropTypes.bool,\n siblings: PropTypes.array\n};\n\nRenderComponent.defaultProps = { textBlockBanners: null, hasTextBlockBanners: false, siblings: [] };\n\nexport default RenderComponent;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,aAAa,MAAM,2BAA2B;AACrD,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,kBAAkB,MAAM,wBAAwB;AACvD,SAASC,aAAa,EAAEC,cAAc,EAAEC,iBAAiB,EAAEC,gBAAgB,QAAQ,aAAa;AAChG,SAASC,qBAAqB,QAAQ,qBAAqB;AAE3D,MAAMC,eAAe,GAAGC,IAAA,IASlB;EAAA,IATmB;MACvBC,SAAS;MACTC,UAAU;MACVC,eAAe;MACfC,OAAO,GAAG,CAAC,CAAC;MACZC,gBAAgB;MAChBC,mBAAmB;MACnBC;IAEF,CAAC,GAAAP,IAAA;IADIQ,qBAAqB,GAAAC,wBAAA,CAAAT,IAAA,EAAAU,SAAA;EAExB,MAAM;IAAEC,IAAI;IAAEC,QAAQ;IAAEC,EAAE;IAAEC;EAAK,CAAC,GAAGb,SAAS;EAC9C,MAAMc,SAAS,GAAGvB,YAAY,CAACmB,IAAI,CAAC;EACpC,MAAMK,OAAO,GAAG,CAACtB,aAAa,EAAEC,cAAc,EAAEC,iBAAiB,EAAEC,gBAAgB,CAAC,CAACoB,QAAQ,CAC3FN,IAAI,CACL;EACD,MAAMO,YAAY,GAAGF,OAAO,GAAGd,UAAU,GAAG,CAAC,CAAC;EAC9C,IAAI,CAACa,SAAS,EAAE,OAAO,IAAI;EAC3B,MAAMI,eAAe,GAAG1B,kBAAkB,CAACmB,QAAQ,EAAET,eAAe,CAAC;EAErE,oBACEd,KAAA,CAAA+B,aAAA,CAAC7B,aAAa,qBACZF,KAAA,CAAA+B,aAAA,CAACL,SAAS,EAAAM,QAAA;IACRC,GAAG,EAAET,EAAG;IACRF,IAAI,EAAEA;EAAK,GACPP,OAAO,EACPc,YAAY,EACZV,qBAAqB,EACrBW,eAAe;IACnBL,IAAI,EAAEA,IAAI,IAAIF,QAAQ,CAACE;EAAK,IAC3BR,mBAAmB,gBAClBjB,KAAA,CAAA+B,aAAA,CAACtB,qBAAqB;IAACS,QAAQ,EAAEA,QAAS;IAACgB,OAAO,EAAElB,gBAAiB;IAACmB,SAAS,EAAEpB;EAAQ,GACtFD,eAAe,CACM,GAExBA,eACD,CACS,CACE;AAEpB,CAAC;AAEDJ,eAAe,CAAC0B,SAAS,GAAG;EAC1BxB,SAAS,EAAEX,SAAS,CAACoC,KAAK,CAAC;IACzBf,IAAI,EAAErB,SAAS,CAACqC,MAAM;IACtBd,EAAE,EAAEvB,SAAS,CAACqC,MAAM;IACpBb,IAAI,EAAExB,SAAS,CAACqC,MAAM;IACtBf,QAAQ,EAAEtB,SAAS,CAACsC,MAAM;IAC1BC,KAAK,EAAEvC,SAAS,CAACwC;EACnB,CAAC,CAAC,CAACC,UAAU;EACb7B,UAAU,EAAEZ,SAAS,CAACsC,MAAM,CAACG,UAAU;EACvC3B,OAAO,EAAEd,SAAS,CAACsC,MAAM,CAACG,UAAU;EACpC5B,eAAe,EAAEb,SAAS,CAAC0C,IAAI,CAACD,UAAU;EAC1C1B,gBAAgB,EAAEf,SAAS,CAACwC,KAAK;EACjCxB,mBAAmB,EAAEhB,SAAS,CAAC2C,IAAI;EACnC1B,QAAQ,EAAEjB,SAAS,CAACwC;AACtB,CAAC;AAED/B,eAAe,CAACmC,YAAY,GAAG;EAAE7B,gBAAgB,EAAE,IAAI;EAAEC,mBAAmB,EAAE,KAAK;EAAEC,QAAQ,EAAE;AAAG,CAAC;AAEnG,eAAeR,eAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaze-cms/react-page-builder",
3
- "version": "0.128.0-alpha.1",
3
+ "version": "0.128.0-alpha.3",
4
4
  "description": "Blaze react page builder",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-es/index.js",
@@ -29,6 +29,7 @@
29
29
  "dependencies": {
30
30
  "@blaze-cms/core-auth-ui": "0.128.0-alpha.0",
31
31
  "@blaze-cms/core-errors": "^0.127.0",
32
+ "@blaze-cms/core-errors-ui": "0.128.0-alpha.3",
32
33
  "@blaze-cms/image-cdn-react": "0.3.0-alpha.5",
33
34
  "@blaze-cms/nextjs-components": "0.128.0-alpha.1",
34
35
  "@blaze-cms/plugin-search-ui": "0.128.0-alpha.0",
@@ -88,5 +89,5 @@
88
89
  "lib/*",
89
90
  "lib-es/*"
90
91
  ],
91
- "gitHead": "b8a36a93d7a0833e442b556eb3ca4817a3db5ee9"
92
+ "gitHead": "71e16abe0163b4f92df1540b25dc709a7865f064"
92
93
  }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import ErrorBoundary from '@blaze-cms/core-errors-ui';
3
4
  import getComponent from './getComponent';
4
5
  import appendGtmClassName from './append-gtm-classname';
5
6
  import { PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL } from './constants';
@@ -25,22 +26,24 @@ const RenderComponent = ({
25
26
  const updatedSettings = appendGtmClassName(settings, childComponents);
26
27
 
27
28
  return (
28
- <Component
29
- key={id}
30
- type={type}
31
- {...options}
32
- {...imageOptions}
33
- {...nestedComponentsProps}
34
- {...updatedSettings}
35
- name={name || settings.name}>
36
- {hasTextBlockBanners ? (
37
- <BannerContextProvider siblings={siblings} banners={textBlockBanners} pbOptions={options}>
38
- {childComponents}
39
- </BannerContextProvider>
40
- ) : (
41
- childComponents
42
- )}
43
- </Component>
29
+ <ErrorBoundary>
30
+ <Component
31
+ key={id}
32
+ type={type}
33
+ {...options}
34
+ {...imageOptions}
35
+ {...nestedComponentsProps}
36
+ {...updatedSettings}
37
+ name={name || settings.name}>
38
+ {hasTextBlockBanners ? (
39
+ <BannerContextProvider siblings={siblings} banners={textBlockBanners} pbOptions={options}>
40
+ {childComponents}
41
+ </BannerContextProvider>
42
+ ) : (
43
+ childComponents
44
+ )}
45
+ </Component>
46
+ </ErrorBoundary>
44
47
  );
45
48
  };
46
49