@blaze-cms/nextjs-tools 0.139.2 → 0.139.3-core-styles.0

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,15 +3,11 @@
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.139.2](https://github.com/thebyte9/blaze/compare/v0.139.2-alpha.0...v0.139.2) (2024-02-14)
7
-
8
- **Note:** Version bump only for package @blaze-cms/nextjs-tools
9
-
6
+ ## [0.139.3-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.139.2...v0.139.3-core-styles.0) (2024-02-15)
10
7
 
11
8
 
12
9
 
13
-
14
- ## [0.139.2-alpha.0](https://github.com/thebyte9/blaze/compare/v0.139.1...v0.139.2-alpha.0) (2024-02-14)
10
+ ## [0.139.1-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.139.0...v0.139.1-core-styles.0) (2024-02-07)
15
11
 
16
12
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
17
13
 
@@ -19,386 +15,207 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
15
 
20
16
 
21
17
 
22
- ## [0.139.1](https://github.com/thebyte9/blaze/compare/v0.139.1-alpha.1...v0.139.1) (2024-02-13)
18
+ ## [0.139.2](https://github.com/thebyte9/blaze/compare/v0.139.2-alpha.0...v0.139.2) (2024-02-14)
23
19
 
24
20
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
25
21
 
22
+ ## [0.139.2-alpha.0](https://github.com/thebyte9/blaze/compare/v0.139.1...v0.139.2-alpha.0) (2024-02-14)
26
23
 
24
+ **Note:** Version bump only for package @blaze-cms/nextjs-tools
27
25
 
26
+ ## [0.139.1](https://github.com/thebyte9/blaze/compare/v0.139.1-alpha.1...v0.139.1) (2024-02-13)
28
27
 
28
+ **Note:** Version bump only for package @blaze-cms/nextjs-tools
29
29
 
30
30
  ## [0.139.1-alpha.0](https://github.com/thebyte9/blaze/compare/v0.139.0...v0.139.1-alpha.0) (2024-02-12)
31
31
 
32
32
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
33
33
 
34
-
35
-
36
-
37
-
38
34
  # [0.139.0](https://github.com/thebyte9/blaze/compare/v0.139.0-alpha.7...v0.139.0) (2024-01-31)
39
35
 
40
36
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
41
37
 
42
-
43
-
44
-
45
-
46
38
  # [0.139.0-alpha.7](https://github.com/thebyte9/blaze/compare/v0.139.0-alpha.6...v0.139.0-alpha.7) (2024-01-30)
47
39
 
48
40
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
49
41
 
50
-
51
-
52
-
53
-
54
42
  # [0.139.0-alpha.6](https://github.com/thebyte9/blaze/compare/v0.139.0-alpha.5...v0.139.0-alpha.6) (2024-01-30)
55
43
 
56
44
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
57
45
 
58
-
59
-
60
-
61
-
62
46
  # [0.139.0-alpha.5](https://github.com/thebyte9/blaze/compare/v0.139.0-alpha.4...v0.139.0-alpha.5) (2024-01-25)
63
47
 
64
-
65
48
  ### Features
66
49
 
67
50
  * set x frame options and disable nextjs powered by header ([#4180](https://github.com/thebyte9/blaze/issues/4180)) ([c1d3def](https://github.com/thebyte9/blaze/commit/c1d3def81e2fb2d4de591017e74c91ae2234c4dd))
68
51
 
69
-
70
-
71
-
72
-
73
52
  # [0.139.0-alpha.4](https://github.com/thebyte9/blaze/compare/v0.139.0-alpha.3...v0.139.0-alpha.4) (2024-01-19)
74
53
 
75
54
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
76
55
 
77
-
78
-
79
-
80
-
81
56
  # [0.139.0-alpha.3](https://github.com/thebyte9/blaze/compare/v0.139.0-alpha.2...v0.139.0-alpha.3) (2024-01-09)
82
57
 
83
58
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
84
59
 
85
-
86
-
87
-
88
-
89
60
  # [0.139.0-alpha.1](https://github.com/thebyte9/blaze/compare/v0.139.0-alpha.0...v0.139.0-alpha.1) (2023-12-20)
90
61
 
91
62
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
92
63
 
93
-
94
-
95
-
96
-
97
64
  # [0.139.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.138.0...v0.139.0-alpha.0) (2023-12-19)
98
65
 
99
66
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
100
67
 
101
-
102
-
103
-
104
-
105
68
  # [0.138.0](https://github.com/thebyte9/blaze/compare/v0.138.0-alpha.0...v0.138.0) (2023-12-19)
106
69
 
107
70
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
108
71
 
109
-
110
-
111
-
112
-
113
72
  # [0.138.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.137.1...v0.138.0-alpha.0) (2023-12-18)
114
73
 
115
74
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
116
75
 
117
-
118
-
119
-
120
-
121
76
  ## [0.137.1](https://github.com/thebyte9/blaze/compare/v0.137.0...v0.137.1) (2023-12-12)
122
77
 
123
78
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
124
79
 
125
-
126
-
127
-
128
-
129
80
  # [0.137.0](https://github.com/thebyte9/blaze/compare/v0.137.0-alpha.1...v0.137.0) (2023-12-11)
130
81
 
131
82
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
132
83
 
133
-
134
-
135
-
136
-
137
84
  # [0.137.0-alpha.1](https://github.com/thebyte9/blaze/compare/v0.137.0-alpha.0...v0.137.0-alpha.1) (2023-12-07)
138
85
 
139
86
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
140
87
 
141
-
142
-
143
-
144
-
145
88
  ## [0.136.1](https://github.com/thebyte9/blaze/compare/v0.136.0...v0.136.1) (2023-11-22)
146
89
 
147
90
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
148
91
 
149
-
150
-
151
-
152
-
153
92
  # [0.136.0](https://github.com/thebyte9/blaze/compare/v0.136.0-alpha.1...v0.136.0) (2023-11-22)
154
93
 
155
94
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
156
95
 
157
-
158
-
159
-
160
-
161
96
  # [0.136.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.135.0...v0.136.0-alpha.0) (2023-11-22)
162
97
 
163
98
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
164
99
 
165
-
166
-
167
-
168
-
169
100
  # [0.135.0](https://github.com/thebyte9/blaze/compare/v0.135.0-alpha.0...v0.135.0) (2023-11-21)
170
101
 
171
102
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
172
103
 
173
-
174
-
175
-
176
-
177
104
  # [0.135.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.134.0...v0.135.0-alpha.0) (2023-11-21)
178
105
 
179
106
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
180
107
 
181
-
182
-
183
-
184
-
185
108
  # [0.134.0](https://github.com/thebyte9/blaze/compare/v0.134.0-alpha.0...v0.134.0) (2023-10-31)
186
109
 
187
110
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
188
111
 
189
-
190
-
191
-
192
-
193
112
  # [0.134.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.133.0...v0.134.0-alpha.0) (2023-10-23)
194
113
 
195
114
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
196
115
 
197
-
198
-
199
-
200
-
201
116
  # [0.133.0](https://github.com/thebyte9/blaze/compare/v0.133.0-alpha.6...v0.133.0) (2023-10-04)
202
117
 
203
118
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
204
119
 
205
-
206
-
207
-
208
-
209
120
  # [0.133.0-alpha.6](https://github.com/thebyte9/blaze/compare/v0.133.0-alpha.5...v0.133.0-alpha.6) (2023-10-03)
210
121
 
211
122
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
212
123
 
213
-
214
-
215
-
216
-
217
124
  # [0.133.0-alpha.5](https://github.com/thebyte9/blaze/compare/v0.133.0-alpha.4...v0.133.0-alpha.5) (2023-10-03)
218
125
 
219
126
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
220
127
 
221
-
222
-
223
-
224
-
225
128
  # [0.133.0-alpha.4](https://github.com/thebyte9/blaze/compare/v0.133.0-alpha.3...v0.133.0-alpha.4) (2023-10-02)
226
129
 
227
130
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
228
131
 
229
-
230
-
231
-
232
-
233
132
  # [0.133.0-alpha.3](https://github.com/thebyte9/blaze/compare/v0.133.0-alpha.2...v0.133.0-alpha.3) (2023-09-18)
234
133
 
235
134
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
236
135
 
237
-
238
-
239
-
240
-
241
136
  # [0.133.0-alpha.2](https://github.com/thebyte9/blaze/compare/v0.133.0-alpha.1...v0.133.0-alpha.2) (2023-09-06)
242
137
 
243
138
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
244
139
 
245
-
246
-
247
-
248
-
249
140
  # [0.133.0-alpha.1](https://github.com/thebyte9/blaze/compare/v0.133.0-alpha.0...v0.133.0-alpha.1) (2023-09-05)
250
141
 
251
142
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
252
143
 
253
-
254
-
255
-
256
-
257
144
  # [0.133.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.132.0...v0.133.0-alpha.0) (2023-08-25)
258
145
 
259
-
260
146
  ### Bug Fixes
261
147
 
262
148
  * update route regex ([9cbb764](https://github.com/thebyte9/blaze/commit/9cbb7644cdaee021421c17d97a2c48681689676b))
263
149
 
264
-
265
-
266
-
267
-
268
150
  # [0.132.0](https://github.com/thebyte9/blaze/compare/v0.132.0-alpha.0...v0.132.0) (2023-08-21)
269
151
 
270
152
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
271
153
 
272
-
273
-
274
-
275
-
276
154
  # [0.132.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.131.2...v0.132.0-alpha.0) (2023-08-17)
277
155
 
278
-
279
156
  ### Features
280
157
 
281
158
  * Filters and sorts now target generic or specific lists ([#3973](https://github.com/thebyte9/blaze/issues/3973)) ([39c0af3](https://github.com/thebyte9/blaze/commit/39c0af3ed266369968139efe827a805ced71bd70))
282
159
  * redirect with query string in the frontend ([#3985](https://github.com/thebyte9/blaze/issues/3985)) ([c5decf5](https://github.com/thebyte9/blaze/commit/c5decf5fc1c194d29036e3c5c6f314ec24f3565e))
283
160
 
284
-
285
-
286
-
287
-
288
161
  ## [0.131.2](https://github.com/thebyte9/blaze/compare/v0.131.1...v0.131.2) (2023-08-04)
289
162
 
290
163
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
291
164
 
292
-
293
-
294
-
295
-
296
165
  ## [0.131.1](https://github.com/thebyte9/blaze/compare/v0.131.0...v0.131.1) (2023-07-28)
297
166
 
298
167
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
299
168
 
300
-
301
-
302
-
303
-
304
169
  # [0.131.0](https://github.com/thebyte9/blaze/compare/v0.130.1...v0.131.0) (2023-07-18)
305
170
 
306
171
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
307
172
 
308
-
309
-
310
-
311
-
312
173
  ## [0.130.1](https://github.com/thebyte9/blaze/compare/v0.130.0...v0.130.1) (2023-07-06)
313
174
 
314
175
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
315
176
 
316
-
317
-
318
-
319
-
320
177
  # [0.130.0](https://github.com/thebyte9/blaze/compare/v0.130.0-alpha.0...v0.130.0) (2023-07-04)
321
178
 
322
179
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
323
180
 
324
-
325
-
326
-
327
-
328
181
  # [0.130.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.129.0...v0.130.0-alpha.0) (2023-07-04)
329
182
 
330
-
331
183
  ### Features
332
184
 
333
185
  * wip add structured data plugin and configured core entities ([20028e6](https://github.com/thebyte9/blaze/commit/20028e616488926e43134b1b27e9220c97346f96))
334
186
 
335
-
336
-
337
-
338
-
339
187
  # [0.129.0](https://github.com/thebyte9/blaze/compare/v0.129.0-alpha.1...v0.129.0) (2023-05-23)
340
188
 
341
189
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
342
190
 
343
-
344
-
345
-
346
-
347
191
  # [0.129.0-alpha.1](https://github.com/thebyte9/blaze/compare/v0.129.0-alpha.0...v0.129.0-alpha.1) (2023-05-17)
348
192
 
349
193
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
350
194
 
351
-
352
-
353
-
354
-
355
195
  # [0.129.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.128.2...v0.129.0-alpha.0) (2023-05-10)
356
196
 
357
-
358
197
  ### Bug Fixes
359
198
 
360
199
  * add query checker that forces SSR to complete if apollo client gets stuck ([#3923](https://github.com/thebyte9/blaze/issues/3923)) ([02cc0d7](https://github.com/thebyte9/blaze/commit/02cc0d775b1a1ef7cc2ec261094291124b08cd67))
361
200
 
362
-
363
-
364
-
365
-
366
201
  ## [0.128.1](https://github.com/thebyte9/blaze/compare/v0.128.1-alpha.0...v0.128.1) (2023-04-14)
367
202
 
368
203
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
369
204
 
370
-
371
-
372
-
373
-
374
205
  ## [0.128.1-alpha.0](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.4...v0.128.1-alpha.0) (2023-04-14)
375
206
 
376
207
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
377
208
 
378
-
379
-
380
-
381
-
382
209
  # [0.128.0](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.4...v0.128.0) (2023-04-13)
383
210
 
384
211
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
385
212
 
386
-
387
-
388
-
389
-
390
213
  # [0.128.0-alpha.4](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.3...v0.128.0-alpha.4) (2023-04-13)
391
214
 
392
-
393
-
394
215
  ## [0.127.3](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.2...v0.127.3) (2023-03-31)
395
216
 
396
217
  **Note:** Version bump only for package @blaze-cms/nextjs-tools
397
218
 
398
-
399
-
400
-
401
-
402
219
  # [0.128.0-alpha.3](https://github.com/thebyte9/blaze/compare/v0.128.0-alpha.2...v0.128.0-alpha.3) (2023-04-12)
403
220
 
404
221
  ## [0.127.3](https://github.com/thebyte9/blaze/compare/v0.127.2...v0.127.3) (2023-03-31)
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  require("core-js/modules/es.array.iterator.js");
4
+ require("core-js/modules/es.object.define-property.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
4
6
  require("core-js/modules/es.object.to-string.js");
5
7
  require("core-js/modules/es.string.iterator.js");
6
8
  require("core-js/modules/es.weak-map.js");
7
9
  require("core-js/modules/web.dom-collections.iterator.js");
8
- require("core-js/modules/es.object.define-property.js");
9
- require("core-js/modules/es.object.get-own-property-descriptor.js");
10
10
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
11
  var _typeof = require("@babel/runtime/helpers/typeof");
12
12
  Object.defineProperty(exports, "__esModule", {
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.keys.js");
4
3
  require("core-js/modules/es.symbol.js");
5
4
  require("core-js/modules/es.array.filter.js");
6
- require("core-js/modules/es.object.to-string.js");
7
- require("core-js/modules/es.object.get-own-property-descriptor.js");
8
5
  require("core-js/modules/es.array.for-each.js");
9
- require("core-js/modules/web.dom-collections.for-each.js");
10
- require("core-js/modules/es.object.get-own-property-descriptors.js");
6
+ require("core-js/modules/es.array.iterator.js");
11
7
  require("core-js/modules/es.object.define-properties.js");
12
8
  require("core-js/modules/es.object.define-property.js");
13
- require("core-js/modules/es.array.iterator.js");
9
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
10
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
11
+ require("core-js/modules/es.object.keys.js");
12
+ require("core-js/modules/es.object.to-string.js");
14
13
  require("core-js/modules/es.string.iterator.js");
15
14
  require("core-js/modules/es.weak-map.js");
15
+ require("core-js/modules/web.dom-collections.for-each.js");
16
16
  require("core-js/modules/web.dom-collections.iterator.js");
17
17
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
18
18
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports["default"] = void 0;
8
+ require("core-js/modules/es.array.concat.js");
8
9
  require("core-js/modules/es.regexp.exec.js");
9
10
  require("core-js/modules/es.string.replace.js");
10
- require("core-js/modules/es.array.concat.js");
11
11
  var _constants = require("../constants");
12
12
  var buildAdminHref = function buildAdminHref(_ref) {
13
13
  var itemEntity = _ref.itemEntity,
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports["default"] = void 0;
8
8
  require("core-js/modules/es.array.find.js");
9
- require("core-js/modules/es.object.to-string.js");
10
9
  require("core-js/modules/es.array.includes.js");
10
+ require("core-js/modules/es.object.to-string.js");
11
11
  require("core-js/modules/es.string.includes.js");
12
12
  var _constants = require("../constants");
13
13
  var checkForGTM = function checkForGTM() {
@@ -2,13 +2,13 @@
2
2
 
3
3
  require("core-js/modules/es.symbol.js");
4
4
  require("core-js/modules/es.array.filter.js");
5
- require("core-js/modules/es.object.to-string.js");
6
- require("core-js/modules/es.object.get-own-property-descriptor.js");
7
5
  require("core-js/modules/es.array.for-each.js");
8
- require("core-js/modules/web.dom-collections.for-each.js");
9
- require("core-js/modules/es.object.get-own-property-descriptors.js");
10
6
  require("core-js/modules/es.object.define-properties.js");
11
7
  require("core-js/modules/es.object.define-property.js");
8
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
9
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
10
+ require("core-js/modules/es.object.to-string.js");
11
+ require("core-js/modules/web.dom-collections.for-each.js");
12
12
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
13
13
  Object.defineProperty(exports, "__esModule", {
14
14
  value: true
@@ -17,9 +17,9 @@ exports["default"] = void 0;
17
17
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
18
18
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
19
19
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
20
+ require("core-js/modules/es.array.concat.js");
20
21
  require("core-js/modules/es.number.constructor.js");
21
22
  require("core-js/modules/es.object.keys.js");
22
- require("core-js/modules/es.array.concat.js");
23
23
  var _queryString = require("query-string");
24
24
  var _reactPageBuilder = require("@blaze-cms/react-page-builder");
25
25
  var _coreAuthUi = require("@blaze-cms/core-auth-ui");
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.keys.js");
4
3
  require("core-js/modules/es.symbol.js");
5
4
  require("core-js/modules/es.array.filter.js");
6
- require("core-js/modules/es.object.to-string.js");
7
- require("core-js/modules/es.object.get-own-property-descriptor.js");
8
5
  require("core-js/modules/es.array.for-each.js");
9
- require("core-js/modules/web.dom-collections.for-each.js");
10
- require("core-js/modules/es.object.get-own-property-descriptors.js");
11
6
  require("core-js/modules/es.object.define-properties.js");
12
7
  require("core-js/modules/es.object.define-property.js");
8
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
9
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
10
+ require("core-js/modules/es.object.keys.js");
11
+ require("core-js/modules/es.object.to-string.js");
12
+ require("core-js/modules/web.dom-collections.for-each.js");
13
13
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
14
14
  Object.defineProperty(exports, "__esModule", {
15
15
  value: true
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports["default"] = void 0;
8
- require("core-js/modules/es.array.filter.js");
9
- require("core-js/modules/es.object.to-string.js");
10
8
  require("core-js/modules/es.array.concat.js");
9
+ require("core-js/modules/es.array.filter.js");
10
+ require("core-js/modules/es.array.join.js");
11
11
  require("core-js/modules/es.array.reduce.js");
12
12
  require("core-js/modules/es.array.slice.js");
13
- require("core-js/modules/es.array.join.js");
13
+ require("core-js/modules/es.object.to-string.js");
14
14
  var _constants = require("../constants");
15
15
  function getRootSelectorClasses(url) {
16
16
  var classesLimit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.array.slice.js");
4
- require("core-js/modules/es.date.to-string.js");
5
- require("core-js/modules/es.regexp.to-string.js");
6
- require("core-js/modules/es.function.name.js");
7
- require("core-js/modules/es.array.from.js");
8
- require("core-js/modules/es.string.iterator.js");
9
3
  require("core-js/modules/es.symbol.js");
10
4
  require("core-js/modules/es.symbol.description.js");
11
5
  require("core-js/modules/es.symbol.iterator.js");
6
+ require("core-js/modules/es.array.from.js");
12
7
  require("core-js/modules/es.array.is-array.js");
8
+ require("core-js/modules/es.array.slice.js");
9
+ require("core-js/modules/es.date.to-string.js");
10
+ require("core-js/modules/es.function.name.js");
13
11
  require("core-js/modules/es.object.define-property.js");
12
+ require("core-js/modules/es.regexp.to-string.js");
13
+ require("core-js/modules/es.string.iterator.js");
14
14
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
15
15
  Object.defineProperty(exports, "__esModule", {
16
16
  value: true
@@ -19,8 +19,8 @@ exports["default"] = void 0;
19
19
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
20
20
  require("core-js/modules/es.array.iterator.js");
21
21
  require("core-js/modules/es.object.to-string.js");
22
- require("core-js/modules/web.dom-collections.iterator.js");
23
22
  require("core-js/modules/es.regexp.exec.js");
23
+ require("core-js/modules/web.dom-collections.iterator.js");
24
24
  var _staticRouteHandlers = _interopRequireDefault(require("./static-route-handlers"));
25
25
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
26
26
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = void 0;
9
9
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
+ require("core-js/modules/es.array.for-each.js");
10
11
  require("core-js/modules/es.object.to-string.js");
11
12
  require("core-js/modules/es.promise.js");
12
- require("core-js/modules/es.array.for-each.js");
13
13
  require("core-js/modules/web.dom-collections.for-each.js");
14
14
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
15
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.weak-map.js");
4
3
  require("core-js/modules/es.object.define-property.js");
5
4
  require("core-js/modules/es.object.get-own-property-descriptor.js");
5
+ require("core-js/modules/es.weak-map.js");
6
6
  var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.reflect.construct.js");
4
3
  require("core-js/modules/es.symbol.js");
5
4
  require("core-js/modules/es.array.filter.js");
6
5
  require("core-js/modules/es.array.for-each.js");
7
- require("core-js/modules/web.dom-collections.for-each.js");
8
- require("core-js/modules/es.object.get-own-property-descriptors.js");
9
6
  require("core-js/modules/es.object.define-properties.js");
7
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
8
+ require("core-js/modules/es.reflect.construct.js");
9
+ require("core-js/modules/web.dom-collections.for-each.js");
10
10
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
11
  Object.defineProperty(exports, "__esModule", {
12
12
  value: true
@@ -22,17 +22,17 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
22
22
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
23
23
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
24
24
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
25
- require("core-js/modules/es.object.to-string.js");
26
- require("core-js/modules/es.promise.js");
27
25
  require("core-js/modules/es.array.iterator.js");
28
- require("core-js/modules/es.string.iterator.js");
29
- require("core-js/modules/web.dom-collections.iterator.js");
30
26
  require("core-js/modules/es.array.reduce.js");
31
27
  require("core-js/modules/es.array.sort.js");
32
- require("core-js/modules/es.object.keys.js");
33
- require("core-js/modules/es.weak-map.js");
34
28
  require("core-js/modules/es.object.define-property.js");
35
29
  require("core-js/modules/es.object.get-own-property-descriptor.js");
30
+ require("core-js/modules/es.object.keys.js");
31
+ require("core-js/modules/es.object.to-string.js");
32
+ require("core-js/modules/es.promise.js");
33
+ require("core-js/modules/es.string.iterator.js");
34
+ require("core-js/modules/es.weak-map.js");
35
+ require("core-js/modules/web.dom-collections.iterator.js");
36
36
  var _react = _interopRequireWildcard(require("react"));
37
37
  var _ssr = require("@apollo/client/react/ssr");
38
38
  var _coreUi = _interopRequireDefault(require("@blaze-cms/core-ui"));
@@ -55,7 +55,7 @@ var ErrorBoundary = (0, _dynamic["default"])(function () {
55
55
  });
56
56
  var APP_LOG_NAMESPACE_MAIN = 'main';
57
57
  function getWrappedApp(isSsr, config, blazeApp, App) {
58
- var _class;
58
+ var _Class;
59
59
  function getApolloClient(ctx, requestApp) {
60
60
  return ctx.apolloClient || requestApp.getClient() || requestApp.createClient();
61
61
  }
@@ -64,12 +64,12 @@ function getWrappedApp(isSsr, config, blazeApp, App) {
64
64
  config: config
65
65
  }) : blazeApp;
66
66
  }
67
- return _class = /*#__PURE__*/function (_Component2) {
68
- (0, _inherits2["default"])(_class, _Component2);
69
- function _class(props) {
67
+ return _Class = /*#__PURE__*/function (_Component2) {
68
+ (0, _inherits2["default"])(_Class, _Component2);
69
+ function _Class(props) {
70
70
  var _this;
71
- (0, _classCallCheck2["default"])(this, _class);
72
- _this = _callSuper(this, _class, [props]);
71
+ (0, _classCallCheck2["default"])(this, _Class);
72
+ _this = _callSuper(this, _Class, [props]);
73
73
  _this.apolloClient = props.apolloClient;
74
74
  _this.state = {
75
75
  appLoaded: isSsr || blazeApp.initComplete()
@@ -77,7 +77,7 @@ function getWrappedApp(isSsr, config, blazeApp, App) {
77
77
  _this.blazeApp = blazeApp;
78
78
  return _this;
79
79
  }
80
- (0, _createClass2["default"])(_class, [{
80
+ (0, _createClass2["default"])(_Class, [{
81
81
  key: "componentDidMount",
82
82
  value: function () {
83
83
  var _componentDidMount = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
@@ -220,16 +220,16 @@ function getWrappedApp(isSsr, config, blazeApp, App) {
220
220
  return getInitialProps;
221
221
  }()
222
222
  }]);
223
- return _class;
224
- }(_react.Component), (0, _defineProperty2["default"])(_class, "displayName", 'withBlaze(App)'), (0, _defineProperty2["default"])(_class, "propTypes", {
223
+ return _Class;
224
+ }(_react.Component), (0, _defineProperty2["default"])(_Class, "displayName", 'withBlaze(App)'), (0, _defineProperty2["default"])(_Class, "propTypes", {
225
225
  apolloState: _propTypes["default"].object,
226
226
  apolloClient: _propTypes["default"].object,
227
227
  processedBlazeEntities: _propTypes["default"].object
228
- }), (0, _defineProperty2["default"])(_class, "defaultProps", {
228
+ }), (0, _defineProperty2["default"])(_Class, "defaultProps", {
229
229
  apolloState: {},
230
230
  apolloClient: null,
231
231
  processedBlazeEntities: undefined
232
- }), _class;
232
+ }), _Class;
233
233
  }
234
234
  var withBlaze = function withBlaze(App, buildConfig) {
235
235
  var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
@@ -1 +1 @@
1
- {"version":3,"file":"withBlaze.js","names":["_react","_interopRequireWildcard","require","_ssr","_coreUi","_interopRequireDefault","_coreAuthUi","_propTypes","_dynamic","_blaze","_helpers","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_callSuper","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","Boolean","prototype","valueOf","call","_getRequireWildcardCache","WeakMap","__esModule","_typeof2","has","get","n","__proto__","a","u","hasOwnProperty","i","set","ErrorBoundary","dynamic","Promise","resolve","then","APP_LOG_NAMESPACE_MAIN","getWrappedApp","isSsr","config","blazeApp","App","_class","getApolloClient","ctx","requestApp","apolloClient","getClient","createClient","getRequestApp","getBlazeUi","_Component2","_inherits2","props","_this","_classCallCheck2","state","appLoaded","initComplete","_createClass2","key","value","_componentDidMount","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","abrupt","init","setState","stop","componentDidMount","setApolloClient","_this$props","apolloState","processedBlazeEntities","setupCheckAccessToken","render","createElement","app","_extends2","_getInitialProps","_callee2","context","_Component","router","AppTree","appProps","errorProps","_appProps","_appProps$pageProps","pageProps","mainProps","renderAndCheckPromises","sortedState","_callee2$","_context2","Component","req","res","events","emit","getInitialProps","sent","getDataFromTree","openQueryChecker","checkOpenQueries","race","t0","getErrorMessage","errorCode","statusCode","error","log","cache","extract","sort","reduce","acc","getProcessedEntities","_x","PropTypes","object","undefined","withBlaze","buildConfig","_ref","_ref$forceSsr","forceSsr","window","blazeConfig","logNameSpace","_default","exports"],"sources":["../../src/hoc/withBlaze.js"],"sourcesContent":["// see: https://github.com/zeit/next.js/blob/canary/examples/with-apollo-auth/lib/withApollo.js\nimport React, { Component } from 'react';\nimport { getDataFromTree } from '@apollo/client/react/ssr';\nimport getBlazeUi from '@blaze-cms/core-ui';\nimport { setupCheckAccessToken } from '@blaze-cms/core-auth-ui';\nimport PropTypes from 'prop-types';\nimport dynamic from 'next/dynamic'; // Next.js dynamic\nimport blazeConfig from '../blaze.config';\nimport { getErrorMessage } from '../helpers';\n\nconst ErrorBoundary = dynamic(() => import('@blaze-cms/core-errors-ui'));\n\nconst APP_LOG_NAMESPACE_MAIN = 'main';\n\nfunction getWrappedApp(isSsr, config, blazeApp, App) {\n function getApolloClient(ctx, requestApp) {\n return ctx.apolloClient || requestApp.getClient() || requestApp.createClient();\n }\n\n function getRequestApp(requestApp) {\n return !requestApp && isSsr ? getBlazeUi({ config }) : blazeApp;\n }\n return class extends Component {\n static displayName = 'withBlaze(App)';\n\n static propTypes = {\n apolloState: PropTypes.object,\n apolloClient: PropTypes.object,\n processedBlazeEntities: PropTypes.object\n };\n\n static defaultProps = {\n apolloState: {},\n apolloClient: null,\n processedBlazeEntities: undefined\n };\n\n static async getInitialProps(context) {\n const { Component: _Component, router, AppTree, ctx } = context;\n let appProps = {};\n let errorProps = {};\n\n let requestApp = ctx.blazeApp;\n requestApp = getRequestApp(requestApp);\n\n requestApp.ctx.router = router;\n requestApp.ctx.req = ctx.req;\n requestApp.ctx.res = ctx.res;\n\n await blazeApp.init();\n await requestApp.init();\n\n const apolloClient = getApolloClient(ctx, requestApp);\n\n ctx.apolloClient = apolloClient;\n ctx.blazeApp = requestApp;\n\n requestApp.events.emit('page-load:get-initial-props:before', { ctx });\n\n if (App.getInitialProps) {\n appProps = await App.getInitialProps(context);\n }\n\n const { pageProps = {} } = appProps;\n const mainProps = {\n ...appProps,\n pageProps: { ...pageProps, ...errorProps }\n };\n\n if (!isSsr) return mainProps;\n\n try {\n const renderAndCheckPromises = [\n getDataFromTree(\n <AppTree\n {...appProps}\n Component={_Component}\n router={router}\n apolloClient={apolloClient}\n />\n ),\n requestApp.openQueryChecker.checkOpenQueries()\n ];\n // race is so that if getDataFromTree gets stuck the checkOpenQueries will resolve when outstanding queries are done\n await Promise.race(renderAndCheckPromises);\n } catch (error) {\n errorProps = getErrorMessage(error);\n if (errorProps.errorCode) ctx.res.statusCode = errorProps.errorCode;\n ctx.blazeApp.events.emit('monitor:log', { error });\n requestApp.log.error('Error while running `getDataFromTree`', error);\n }\n\n const apolloState = apolloClient.cache.extract();\n const sortedState = Object.keys(apolloState)\n .sort()\n .reduce((acc, key) => {\n acc[key] = apolloState[key];\n return acc;\n }, {});\n\n return {\n ...mainProps,\n pageProps: { ...mainProps.pageProps, ...errorProps },\n apolloState: sortedState,\n processedBlazeEntities: blazeApp.getProcessedEntities()\n };\n }\n\n constructor(props) {\n super(props);\n this.apolloClient = props.apolloClient;\n this.state = {\n appLoaded: isSsr || blazeApp.initComplete()\n };\n this.blazeApp = blazeApp;\n }\n\n async componentDidMount() {\n if (blazeApp.initComplete()) return;\n\n await blazeApp.init();\n\n this.setState({\n appLoaded: blazeApp.initComplete()\n });\n }\n\n setApolloClient() {\n if (!this.apolloClient) {\n const { apolloState, processedBlazeEntities } = this.props;\n this.apolloClient = blazeApp.createClient(apolloState, processedBlazeEntities);\n setupCheckAccessToken(this.apolloClient);\n }\n }\n\n render() {\n const { appLoaded } = this.state;\n\n if (!appLoaded && !isSsr) return '...loading';\n\n this.setApolloClient();\n\n return (\n <ErrorBoundary app={this.blazeApp}>\n <App {...this.props} apolloClient={this.apolloClient} />\n </ErrorBoundary>\n );\n }\n };\n}\n\nconst withBlaze = (App, buildConfig, { forceSsr = false } = {}) => {\n const isSsr = forceSsr || typeof window === 'undefined';\n const config = buildConfig ? buildConfig(blazeConfig) : blazeConfig;\n const blazeApp = getBlazeUi({ config, logNameSpace: APP_LOG_NAMESPACE_MAIN });\n blazeApp.init();\n\n return getWrappedApp(isSsr, config, blazeApp, App);\n};\n\nexport default withBlaze;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,QAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,MAAA,GAAAJ,sBAAA,CAAAH,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAA6C,SAAAS,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,C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AM;IAC7BjF,YAAY,EAAEgF,qBAAS,CAACC,MAAM;IAC9B/C,sBAAsB,EAAE8C,qBAAS,CAACC;EACpC,CAAC,OAAA5H,gBAAA,aAAAuC,MAAA,kBAEqB;IACpBqC,WAAW,EAAE,CAAC,CAAC;IACfjC,YAAY,EAAE,IAAI;IAClBkC,sBAAsB,EAAEgD;EAC1B,CAAC,GAAAtF,MAAA;AAkHL;AAEA,IAAMuF,SAAS,GAAG,SAAZA,SAASA,CAAIxF,GAAG,EAAEyF,WAAW,EAAgC;EAAA,IAAAC,IAAA,GAAAnI,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAgI,SAAA,GAAAhI,SAAA,MAAP,CAAC,CAAC;IAAAoI,aAAA,GAAAD,IAAA,CAAvBE,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;EACrD,IAAM9F,KAAK,GAAG+F,QAAQ,IAAI,OAAOC,MAAM,KAAK,WAAW;EACvD,IAAM/F,MAAM,GAAG2F,WAAW,GAAGA,WAAW,CAACK,iBAAW,CAAC,GAAGA,iBAAW;EACnE,IAAM/F,QAAQ,GAAG,IAAAU,kBAAU,EAAC;IAAEX,MAAM,EAANA,MAAM;IAAEiG,YAAY,EAAEpG;EAAuB,CAAC,CAAC;EAC7EI,QAAQ,CAACiC,IAAI,CAAC,CAAC;EAEf,OAAOpC,aAAa,CAACC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,GAAG,CAAC;AACpD,CAAC;AAAC,IAAAgG,QAAA,GAAAC,OAAA,cAEaT,SAAS"}
1
+ {"version":3,"file":"withBlaze.js","names":["_react","_interopRequireWildcard","require","_ssr","_coreUi","_interopRequireDefault","_coreAuthUi","_propTypes","_dynamic","_blaze","_helpers","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_callSuper","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","Boolean","prototype","valueOf","call","_getRequireWildcardCache","WeakMap","__esModule","_typeof2","has","get","n","__proto__","a","u","hasOwnProperty","i","set","ErrorBoundary","dynamic","Promise","resolve","then","APP_LOG_NAMESPACE_MAIN","getWrappedApp","isSsr","config","blazeApp","App","_Class","getApolloClient","ctx","requestApp","apolloClient","getClient","createClient","getRequestApp","getBlazeUi","_Component2","_inherits2","props","_this","_classCallCheck2","state","appLoaded","initComplete","_createClass2","key","value","_componentDidMount","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","abrupt","init","setState","stop","componentDidMount","setApolloClient","_this$props","apolloState","processedBlazeEntities","setupCheckAccessToken","render","createElement","app","_extends2","_getInitialProps","_callee2","context","_Component","router","AppTree","appProps","errorProps","_appProps","_appProps$pageProps","pageProps","mainProps","renderAndCheckPromises","sortedState","_callee2$","_context2","Component","req","res","events","emit","getInitialProps","sent","getDataFromTree","openQueryChecker","checkOpenQueries","race","t0","getErrorMessage","errorCode","statusCode","error","log","cache","extract","sort","reduce","acc","getProcessedEntities","_x","PropTypes","object","undefined","withBlaze","buildConfig","_ref","_ref$forceSsr","forceSsr","window","blazeConfig","logNameSpace","_default","exports"],"sources":["../../src/hoc/withBlaze.js"],"sourcesContent":["// see: https://github.com/zeit/next.js/blob/canary/examples/with-apollo-auth/lib/withApollo.js\nimport React, { Component } from 'react';\nimport { getDataFromTree } from '@apollo/client/react/ssr';\nimport getBlazeUi from '@blaze-cms/core-ui';\nimport { setupCheckAccessToken } from '@blaze-cms/core-auth-ui';\nimport PropTypes from 'prop-types';\nimport dynamic from 'next/dynamic'; // Next.js dynamic\nimport blazeConfig from '../blaze.config';\nimport { getErrorMessage } from '../helpers';\n\nconst ErrorBoundary = dynamic(() => import('@blaze-cms/core-errors-ui'));\n\nconst APP_LOG_NAMESPACE_MAIN = 'main';\n\nfunction getWrappedApp(isSsr, config, blazeApp, App) {\n function getApolloClient(ctx, requestApp) {\n return ctx.apolloClient || requestApp.getClient() || requestApp.createClient();\n }\n\n function getRequestApp(requestApp) {\n return !requestApp && isSsr ? getBlazeUi({ config }) : blazeApp;\n }\n return class extends Component {\n static displayName = 'withBlaze(App)';\n\n static propTypes = {\n apolloState: PropTypes.object,\n apolloClient: PropTypes.object,\n processedBlazeEntities: PropTypes.object\n };\n\n static defaultProps = {\n apolloState: {},\n apolloClient: null,\n processedBlazeEntities: undefined\n };\n\n static async getInitialProps(context) {\n const { Component: _Component, router, AppTree, ctx } = context;\n let appProps = {};\n let errorProps = {};\n\n let requestApp = ctx.blazeApp;\n requestApp = getRequestApp(requestApp);\n\n requestApp.ctx.router = router;\n requestApp.ctx.req = ctx.req;\n requestApp.ctx.res = ctx.res;\n\n await blazeApp.init();\n await requestApp.init();\n\n const apolloClient = getApolloClient(ctx, requestApp);\n\n ctx.apolloClient = apolloClient;\n ctx.blazeApp = requestApp;\n\n requestApp.events.emit('page-load:get-initial-props:before', { ctx });\n\n if (App.getInitialProps) {\n appProps = await App.getInitialProps(context);\n }\n\n const { pageProps = {} } = appProps;\n const mainProps = {\n ...appProps,\n pageProps: { ...pageProps, ...errorProps }\n };\n\n if (!isSsr) return mainProps;\n\n try {\n const renderAndCheckPromises = [\n getDataFromTree(\n <AppTree\n {...appProps}\n Component={_Component}\n router={router}\n apolloClient={apolloClient}\n />\n ),\n requestApp.openQueryChecker.checkOpenQueries()\n ];\n // race is so that if getDataFromTree gets stuck the checkOpenQueries will resolve when outstanding queries are done\n await Promise.race(renderAndCheckPromises);\n } catch (error) {\n errorProps = getErrorMessage(error);\n if (errorProps.errorCode) ctx.res.statusCode = errorProps.errorCode;\n ctx.blazeApp.events.emit('monitor:log', { error });\n requestApp.log.error('Error while running `getDataFromTree`', error);\n }\n\n const apolloState = apolloClient.cache.extract();\n const sortedState = Object.keys(apolloState)\n .sort()\n .reduce((acc, key) => {\n acc[key] = apolloState[key];\n return acc;\n }, {});\n\n return {\n ...mainProps,\n pageProps: { ...mainProps.pageProps, ...errorProps },\n apolloState: sortedState,\n processedBlazeEntities: blazeApp.getProcessedEntities()\n };\n }\n\n constructor(props) {\n super(props);\n this.apolloClient = props.apolloClient;\n this.state = {\n appLoaded: isSsr || blazeApp.initComplete()\n };\n this.blazeApp = blazeApp;\n }\n\n async componentDidMount() {\n if (blazeApp.initComplete()) return;\n\n await blazeApp.init();\n\n this.setState({\n appLoaded: blazeApp.initComplete()\n });\n }\n\n setApolloClient() {\n if (!this.apolloClient) {\n const { apolloState, processedBlazeEntities } = this.props;\n this.apolloClient = blazeApp.createClient(apolloState, processedBlazeEntities);\n setupCheckAccessToken(this.apolloClient);\n }\n }\n\n render() {\n const { appLoaded } = this.state;\n\n if (!appLoaded && !isSsr) return '...loading';\n\n this.setApolloClient();\n\n return (\n <ErrorBoundary app={this.blazeApp}>\n <App {...this.props} apolloClient={this.apolloClient} />\n </ErrorBoundary>\n );\n }\n };\n}\n\nconst withBlaze = (App, buildConfig, { forceSsr = false } = {}) => {\n const isSsr = forceSsr || typeof window === 'undefined';\n const config = buildConfig ? buildConfig(blazeConfig) : blazeConfig;\n const blazeApp = getBlazeUi({ config, logNameSpace: APP_LOG_NAMESPACE_MAIN });\n blazeApp.init();\n\n return getWrappedApp(isSsr, config, blazeApp, App);\n};\n\nexport default withBlaze;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,QAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,MAAA,GAAAJ,sBAAA,CAAAH,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAA6C,SAAAS,QAAAC,CA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M/F,QAAQ,GAAG,IAAAU,kBAAU,EAAC;IAAEX,MAAM,EAANA,MAAM;IAAEiG,YAAY,EAAEpG;EAAuB,CAAC,CAAC;EAC7EI,QAAQ,CAACiC,IAAI,CAAC,CAAC;EAEf,OAAOpC,aAAa,CAACC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,GAAG,CAAC;AACpD,CAAC;AAAC,IAAAgG,QAAA,GAAAC,OAAA,cAEaT,SAAS"}
package/lib/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  require("core-js/modules/es.array.iterator.js");
4
+ require("core-js/modules/es.object.define-property.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
4
6
  require("core-js/modules/es.object.to-string.js");
5
7
  require("core-js/modules/es.string.iterator.js");
6
8
  require("core-js/modules/es.weak-map.js");
7
9
  require("core-js/modules/web.dom-collections.iterator.js");
8
- require("core-js/modules/es.object.define-property.js");
9
- require("core-js/modules/es.object.get-own-property-descriptor.js");
10
10
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
11
  var _typeof = require("@babel/runtime/helpers/typeof");
12
12
  Object.defineProperty(exports, "__esModule", {
@@ -9,13 +9,13 @@ exports["default"] = void 0;
9
9
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
11
  require("core-js/modules/es.array.iterator.js");
12
+ require("core-js/modules/es.date.now.js");
13
+ require("core-js/modules/es.date.to-string.js");
12
14
  require("core-js/modules/es.object.to-string.js");
13
15
  require("core-js/modules/es.string.iterator.js");
14
16
  require("core-js/modules/web.dom-collections.iterator.js");
15
17
  require("core-js/modules/web.url.js");
16
18
  require("core-js/modules/web.url-search-params.js");
17
- require("core-js/modules/es.date.now.js");
18
- require("core-js/modules/es.date.to-string.js");
19
19
  var _react = _interopRequireDefault(require("react"));
20
20
  var _error = _interopRequireDefault(require("next/error"));
21
21
  var _router = require("next/router");
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  require("core-js/modules/es.array.iterator.js");
4
+ require("core-js/modules/es.object.define-property.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
4
6
  require("core-js/modules/es.object.to-string.js");
5
7
  require("core-js/modules/es.string.iterator.js");
6
8
  require("core-js/modules/es.weak-map.js");
7
9
  require("core-js/modules/web.dom-collections.iterator.js");
8
- require("core-js/modules/es.object.define-property.js");
9
- require("core-js/modules/es.object.get-own-property-descriptor.js");
10
10
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
11
  var _typeof = require("@babel/runtime/helpers/typeof");
12
12
  Object.defineProperty(exports, "__esModule", {
@@ -14,7 +14,7 @@ import { getErrorMessage } from '../helpers';
14
14
  const ErrorBoundary = dynamic(() => import('@blaze-cms/core-errors-ui'));
15
15
  const APP_LOG_NAMESPACE_MAIN = 'main';
16
16
  function getWrappedApp(isSsr, config, blazeApp, App) {
17
- var _class;
17
+ var _Class;
18
18
  function getApolloClient(ctx, requestApp) {
19
19
  return ctx.apolloClient || requestApp.getClient() || requestApp.createClient();
20
20
  }
@@ -23,7 +23,7 @@ function getWrappedApp(isSsr, config, blazeApp, App) {
23
23
  config
24
24
  }) : blazeApp;
25
25
  }
26
- return _class = class extends Component {
26
+ return _Class = class extends Component {
27
27
  static async getInitialProps(context) {
28
28
  const {
29
29
  Component: _Component,
@@ -120,15 +120,15 @@ function getWrappedApp(isSsr, config, blazeApp, App) {
120
120
  apolloClient: this.apolloClient
121
121
  })));
122
122
  }
123
- }, _defineProperty(_class, "displayName", 'withBlaze(App)'), _defineProperty(_class, "propTypes", {
123
+ }, _defineProperty(_Class, "displayName", 'withBlaze(App)'), _defineProperty(_Class, "propTypes", {
124
124
  apolloState: PropTypes.object,
125
125
  apolloClient: PropTypes.object,
126
126
  processedBlazeEntities: PropTypes.object
127
- }), _defineProperty(_class, "defaultProps", {
127
+ }), _defineProperty(_Class, "defaultProps", {
128
128
  apolloState: {},
129
129
  apolloClient: null,
130
130
  processedBlazeEntities: undefined
131
- }), _class;
131
+ }), _Class;
132
132
  }
133
133
  const withBlaze = (App, buildConfig, {
134
134
  forceSsr = false
@@ -1 +1 @@
1
- {"version":3,"file":"withBlaze.js","names":["React","Component","getDataFromTree","getBlazeUi","setupCheckAccessToken","PropTypes","dynamic","blazeConfig","getErrorMessage","ErrorBoundary","APP_LOG_NAMESPACE_MAIN","getWrappedApp","isSsr","config","blazeApp","App","_class","getApolloClient","ctx","requestApp","apolloClient","getClient","createClient","getRequestApp","getInitialProps","context","_Component","router","AppTree","appProps","errorProps","req","res","init","events","emit","pageProps","mainProps","_objectSpread","renderAndCheckPromises","createElement","_extends","openQueryChecker","checkOpenQueries","Promise","race","error","errorCode","statusCode","log","apolloState","cache","extract","sortedState","Object","keys","sort","reduce","acc","key","processedBlazeEntities","getProcessedEntities","constructor","props","state","appLoaded","initComplete","componentDidMount","setState","setApolloClient","render","app","_defineProperty","object","undefined","withBlaze","buildConfig","forceSsr","window","logNameSpace"],"sources":["../../src/hoc/withBlaze.js"],"sourcesContent":["// see: https://github.com/zeit/next.js/blob/canary/examples/with-apollo-auth/lib/withApollo.js\nimport React, { Component } from 'react';\nimport { getDataFromTree } from '@apollo/client/react/ssr';\nimport getBlazeUi from '@blaze-cms/core-ui';\nimport { setupCheckAccessToken } from '@blaze-cms/core-auth-ui';\nimport PropTypes from 'prop-types';\nimport dynamic from 'next/dynamic'; // Next.js dynamic\nimport blazeConfig from '../blaze.config';\nimport { getErrorMessage } from '../helpers';\n\nconst ErrorBoundary = dynamic(() => import('@blaze-cms/core-errors-ui'));\n\nconst APP_LOG_NAMESPACE_MAIN = 'main';\n\nfunction getWrappedApp(isSsr, config, blazeApp, App) {\n function getApolloClient(ctx, requestApp) {\n return ctx.apolloClient || requestApp.getClient() || requestApp.createClient();\n }\n\n function getRequestApp(requestApp) {\n return !requestApp && isSsr ? getBlazeUi({ config }) : blazeApp;\n }\n return class extends Component {\n static displayName = 'withBlaze(App)';\n\n static propTypes = {\n apolloState: PropTypes.object,\n apolloClient: PropTypes.object,\n processedBlazeEntities: PropTypes.object\n };\n\n static defaultProps = {\n apolloState: {},\n apolloClient: null,\n processedBlazeEntities: undefined\n };\n\n static async getInitialProps(context) {\n const { Component: _Component, router, AppTree, ctx } = context;\n let appProps = {};\n let errorProps = {};\n\n let requestApp = ctx.blazeApp;\n requestApp = getRequestApp(requestApp);\n\n requestApp.ctx.router = router;\n requestApp.ctx.req = ctx.req;\n requestApp.ctx.res = ctx.res;\n\n await blazeApp.init();\n await requestApp.init();\n\n const apolloClient = getApolloClient(ctx, requestApp);\n\n ctx.apolloClient = apolloClient;\n ctx.blazeApp = requestApp;\n\n requestApp.events.emit('page-load:get-initial-props:before', { ctx });\n\n if (App.getInitialProps) {\n appProps = await App.getInitialProps(context);\n }\n\n const { pageProps = {} } = appProps;\n const mainProps = {\n ...appProps,\n pageProps: { ...pageProps, ...errorProps }\n };\n\n if (!isSsr) return mainProps;\n\n try {\n const renderAndCheckPromises = [\n getDataFromTree(\n <AppTree\n {...appProps}\n Component={_Component}\n router={router}\n apolloClient={apolloClient}\n />\n ),\n requestApp.openQueryChecker.checkOpenQueries()\n ];\n // race is so that if getDataFromTree gets stuck the checkOpenQueries will resolve when outstanding queries are done\n await Promise.race(renderAndCheckPromises);\n } catch (error) {\n errorProps = getErrorMessage(error);\n if (errorProps.errorCode) ctx.res.statusCode = errorProps.errorCode;\n ctx.blazeApp.events.emit('monitor:log', { error });\n requestApp.log.error('Error while running `getDataFromTree`', error);\n }\n\n const apolloState = apolloClient.cache.extract();\n const sortedState = Object.keys(apolloState)\n .sort()\n .reduce((acc, key) => {\n acc[key] = apolloState[key];\n return acc;\n }, {});\n\n return {\n ...mainProps,\n pageProps: { ...mainProps.pageProps, ...errorProps },\n apolloState: sortedState,\n processedBlazeEntities: blazeApp.getProcessedEntities()\n };\n }\n\n constructor(props) {\n super(props);\n this.apolloClient = props.apolloClient;\n this.state = {\n appLoaded: isSsr || blazeApp.initComplete()\n };\n this.blazeApp = blazeApp;\n }\n\n async componentDidMount() {\n if (blazeApp.initComplete()) return;\n\n await blazeApp.init();\n\n this.setState({\n appLoaded: blazeApp.initComplete()\n });\n }\n\n setApolloClient() {\n if (!this.apolloClient) {\n const { apolloState, processedBlazeEntities } = this.props;\n this.apolloClient = blazeApp.createClient(apolloState, processedBlazeEntities);\n setupCheckAccessToken(this.apolloClient);\n }\n }\n\n render() {\n const { appLoaded } = this.state;\n\n if (!appLoaded && !isSsr) return '...loading';\n\n this.setApolloClient();\n\n return (\n <ErrorBoundary app={this.blazeApp}>\n <App {...this.props} apolloClient={this.apolloClient} />\n </ErrorBoundary>\n );\n }\n };\n}\n\nconst withBlaze = (App, buildConfig, { forceSsr = false } = {}) => {\n const isSsr = forceSsr || typeof window === 'undefined';\n const config = buildConfig ? buildConfig(blazeConfig) : blazeConfig;\n const blazeApp = getBlazeUi({ config, logNameSpace: APP_LOG_NAMESPACE_MAIN });\n blazeApp.init();\n\n return getWrappedApp(isSsr, config, blazeApp, App);\n};\n\nexport default withBlaze;\n"],"mappings":";;;;AAAA;AACA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,OAAOC,UAAU,MAAM,oBAAoB;AAC3C,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,OAAO,MAAM,cAAc,CAAC,CAAC;AACpC,OAAOC,WAAW,MAAM,iBAAiB;AACzC,SAASC,eAAe,QAAQ,YAAY;AAE5C,MAAMC,aAAa,GAAGH,OAAO,CAAC,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;AAExE,MAAMI,sBAAsB,GAAG,MAAM;AAErC,SAASC,aAAaA,CAACC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,GAAG,EAAE;EAAA,IAAAC,MAAA;EACnD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eUi","setupCheckAccessToken","PropTypes","dynamic","blazeConfig","getErrorMessage","ErrorBoundary","APP_LOG_NAMESPACE_MAIN","getWrappedApp","isSsr","config","blazeApp","App","_Class","getApolloClient","ctx","requestApp","apolloClient","getClient","createClient","getRequestApp","getInitialProps","context","_Component","router","AppTree","appProps","errorProps","req","res","init","events","emit","pageProps","mainProps","_objectSpread","renderAndCheckPromises","createElement","_extends","openQueryChecker","checkOpenQueries","Promise","race","error","errorCode","statusCode","log","apolloState","cache","extract","sortedState","Object","keys","sort","reduce","acc","key","processedBlazeEntities","getProcessedEntities","constructor","props","state","appLoaded","initComplete","componentDidMount","setState","setApolloClient","render","app","_defineProperty","object","undefined","withBlaze","buildConfig","forceSsr","window","logNameSpace"],"sources":["../../src/hoc/withBlaze.js"],"sourcesContent":["// see: https://github.com/zeit/next.js/blob/canary/examples/with-apollo-auth/lib/withApollo.js\nimport React, { Component } from 'react';\nimport { getDataFromTree } from '@apollo/client/react/ssr';\nimport getBlazeUi from '@blaze-cms/core-ui';\nimport { setupCheckAccessToken } from '@blaze-cms/core-auth-ui';\nimport PropTypes from 'prop-types';\nimport dynamic from 'next/dynamic'; // Next.js dynamic\nimport blazeConfig from '../blaze.config';\nimport { getErrorMessage } from '../helpers';\n\nconst ErrorBoundary = dynamic(() => import('@blaze-cms/core-errors-ui'));\n\nconst APP_LOG_NAMESPACE_MAIN = 'main';\n\nfunction getWrappedApp(isSsr, config, blazeApp, App) {\n function getApolloClient(ctx, requestApp) {\n return ctx.apolloClient || requestApp.getClient() || requestApp.createClient();\n }\n\n function getRequestApp(requestApp) {\n return !requestApp && isSsr ? getBlazeUi({ config }) : blazeApp;\n }\n return class extends Component {\n static displayName = 'withBlaze(App)';\n\n static propTypes = {\n apolloState: PropTypes.object,\n apolloClient: PropTypes.object,\n processedBlazeEntities: PropTypes.object\n };\n\n static defaultProps = {\n apolloState: {},\n apolloClient: null,\n processedBlazeEntities: undefined\n };\n\n static async getInitialProps(context) {\n const { Component: _Component, router, AppTree, ctx } = context;\n let appProps = {};\n let errorProps = {};\n\n let requestApp = ctx.blazeApp;\n requestApp = getRequestApp(requestApp);\n\n requestApp.ctx.router = router;\n requestApp.ctx.req = ctx.req;\n requestApp.ctx.res = ctx.res;\n\n await blazeApp.init();\n await requestApp.init();\n\n const apolloClient = getApolloClient(ctx, requestApp);\n\n ctx.apolloClient = apolloClient;\n ctx.blazeApp = requestApp;\n\n requestApp.events.emit('page-load:get-initial-props:before', { ctx });\n\n if (App.getInitialProps) {\n appProps = await App.getInitialProps(context);\n }\n\n const { pageProps = {} } = appProps;\n const mainProps = {\n ...appProps,\n pageProps: { ...pageProps, ...errorProps }\n };\n\n if (!isSsr) return mainProps;\n\n try {\n const renderAndCheckPromises = [\n getDataFromTree(\n <AppTree\n {...appProps}\n Component={_Component}\n router={router}\n apolloClient={apolloClient}\n />\n ),\n requestApp.openQueryChecker.checkOpenQueries()\n ];\n // race is so that if getDataFromTree gets stuck the checkOpenQueries will resolve when outstanding queries are done\n await Promise.race(renderAndCheckPromises);\n } catch (error) {\n errorProps = getErrorMessage(error);\n if (errorProps.errorCode) ctx.res.statusCode = errorProps.errorCode;\n ctx.blazeApp.events.emit('monitor:log', { error });\n requestApp.log.error('Error while running `getDataFromTree`', error);\n }\n\n const apolloState = apolloClient.cache.extract();\n const sortedState = Object.keys(apolloState)\n .sort()\n .reduce((acc, key) => {\n acc[key] = apolloState[key];\n return acc;\n }, {});\n\n return {\n ...mainProps,\n pageProps: { ...mainProps.pageProps, ...errorProps },\n apolloState: sortedState,\n processedBlazeEntities: blazeApp.getProcessedEntities()\n };\n }\n\n constructor(props) {\n super(props);\n this.apolloClient = props.apolloClient;\n this.state = {\n appLoaded: isSsr || blazeApp.initComplete()\n };\n this.blazeApp = blazeApp;\n }\n\n async componentDidMount() {\n if (blazeApp.initComplete()) return;\n\n await blazeApp.init();\n\n this.setState({\n appLoaded: blazeApp.initComplete()\n });\n }\n\n setApolloClient() {\n if (!this.apolloClient) {\n const { apolloState, processedBlazeEntities } = this.props;\n this.apolloClient = blazeApp.createClient(apolloState, processedBlazeEntities);\n setupCheckAccessToken(this.apolloClient);\n }\n }\n\n render() {\n const { appLoaded } = this.state;\n\n if (!appLoaded && !isSsr) return '...loading';\n\n this.setApolloClient();\n\n return (\n <ErrorBoundary app={this.blazeApp}>\n <App {...this.props} apolloClient={this.apolloClient} />\n </ErrorBoundary>\n );\n }\n };\n}\n\nconst withBlaze = (App, buildConfig, { forceSsr = false } = {}) => {\n const isSsr = forceSsr || typeof window === 'undefined';\n const config = buildConfig ? buildConfig(blazeConfig) : blazeConfig;\n const blazeApp = getBlazeUi({ config, logNameSpace: APP_LOG_NAMESPACE_MAIN });\n blazeApp.init();\n\n return getWrappedApp(isSsr, config, blazeApp, App);\n};\n\nexport default withBlaze;\n"],"mappings":";;;;AAAA;AACA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,OAAOC,UAAU,MAAM,oBAAoB;AAC3C,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,OAAO,MAAM,cAAc,CAAC,CAAC;AACpC,OAAOC,WAAW,MAAM,iBAAiB;AACzC,SAASC,eAAe,QAAQ,YAAY;AAE5C,MAAMC,aAAa,GAAGH,OAAO,CAAC,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;AAExE,MAAMI,sBAAsB,GAAG,MAAM;AAErC,SAASC,aAAaA,CAACC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,GAAG,EAAE;EAAA,IAAAC,MAAA;EACnD,SAASC,eAAeA,CAACC,GAAG,EAAEC,UAAU,EAAE;IACxC,OAAOD,GAAG,CAACE,YAAY,IAAID,UAAU,CAACE,SAAS,CAAC,CAAC,IAAIF,UAAU,CAACG,YAAY,CAAC,CAAC;EAChF;EAEA,SAASC,aAAaA,CAACJ,UAAU,EAAE;IACjC,OAAO,CAACA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B,KAAK;QAAE3C,YAAY,EAAE,IAAI,CAACA;MAAa,EAAE,CAC1C,CAAC;IAEpB;EACF,CAAC,EAAAoD,eAAA,CAAAxD,MAAA,iBA7HsB,gBAAgB,GAAAwD,eAAA,CAAAxD,MAAA,eAElB;IACjBkC,WAAW,EAAE7C,SAAS,CAACoE,MAAM;IAC7BrD,YAAY,EAAEf,SAAS,CAACoE,MAAM;IAC9Bb,sBAAsB,EAAEvD,SAAS,CAACoE;EACpC,CAAC,GAAAD,eAAA,CAAAxD,MAAA,kBAEqB;IACpBkC,WAAW,EAAE,CAAC,CAAC;IACf9B,YAAY,EAAE,IAAI;IAClBwC,sBAAsB,EAAEc;EAC1B,CAAC,GAAA1D,MAAA;AAkHL;AAEA,MAAM2D,SAAS,GAAGA,CAAC5D,GAAG,EAAE6D,WAAW,EAAE;EAAEC,QAAQ,GAAG;AAAM,CAAC,GAAG,CAAC,CAAC,KAAK;EACjE,MAAMjE,KAAK,GAAGiE,QAAQ,IAAI,OAAOC,MAAM,KAAK,WAAW;EACvD,MAAMjE,MAAM,GAAG+D,WAAW,GAAGA,WAAW,CAACrE,WAAW,CAAC,GAAGA,WAAW;EACnE,MAAMO,QAAQ,GAAGX,UAAU,CAAC;IAAEU,MAAM;IAAEkE,YAAY,EAAErE;EAAuB,CAAC,CAAC;EAC7EI,QAAQ,CAACmB,IAAI,CAAC,CAAC;EAEf,OAAOtB,aAAa,CAACC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,GAAG,CAAC;AACpD,CAAC;AAED,eAAe4D,SAAS"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaze-cms/nextjs-tools",
3
- "version": "0.139.2",
3
+ "version": "0.139.3-core-styles.0",
4
4
  "description": "Blaze nextjs tools",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-es/index.js",
@@ -35,13 +35,13 @@
35
35
  "@blaze-cms/nextjs-components": "^0.139.0",
36
36
  "@blaze-cms/plugin-auth-fe": "^0.139.0",
37
37
  "@blaze-cms/plugin-auth-local-fe": "^0.139.0",
38
- "@blaze-cms/plugin-google-maps-fe": "0.139.2",
39
- "@blaze-cms/plugin-gtm-fe": "0.139.2",
40
- "@blaze-cms/plugin-page-builder-fe": "0.139.2",
38
+ "@blaze-cms/plugin-google-maps-fe": "0.139.3-core-styles.0",
39
+ "@blaze-cms/plugin-gtm-fe": "0.139.3-core-styles.0",
40
+ "@blaze-cms/plugin-page-builder-fe": "0.139.3-core-styles.0",
41
41
  "@blaze-cms/plugin-preview-fe": "^0.139.0",
42
42
  "@blaze-cms/plugin-search-ui": "^0.139.0",
43
43
  "@blaze-cms/plugin-structured-data-fe": "^0.139.0",
44
- "@blaze-cms/react-page-builder": "0.139.2",
44
+ "@blaze-cms/react-page-builder": "0.139.3-core-styles.0",
45
45
  "@blaze-cms/setup-ui": "^0.139.0",
46
46
  "autoprefixer": "^10.2.3",
47
47
  "core-js": "^3.2.1",
@@ -69,5 +69,5 @@
69
69
  "lib/*",
70
70
  "lib-es/*"
71
71
  ],
72
- "gitHead": "a47d01c9d674c570e63d84818360b875bfdeab5a"
72
+ "gitHead": "816e8025e361150d1f400bfcf6a1d4d97c1ed728"
73
73
  }