@blaze-cms/nextjs-tools 0.146.0-node18-tooltips.41 → 0.146.0-node18-core-styles-tooltips.55
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 +133 -35
- package/README.md +7 -8
- package/example.env +1 -1
- package/lib/components/DebugSidebar/DebugSidebar.js +2 -2
- package/lib/components/DebugSidebar/DebugSidebar.js.map +1 -1
- package/lib/components/DebugSidebar/DebugSidebarRender.js +1 -1
- package/lib/components/DebugSidebar/DebugSidebarRender.js.map +1 -1
- package/lib/containers/ContentContainer.js +1 -1
- package/lib/containers/ContentContainer.js.map +1 -1
- package/lib/helpers/check-for-gtm.js +3 -3
- package/lib/helpers/check-for-gtm.js.map +1 -1
- package/lib/helpers/check-url.js +5 -5
- package/lib/helpers/check-url.js.map +1 -1
- package/lib/helpers/get-page-data.js +1 -1
- package/lib/helpers/get-page-data.js.map +1 -1
- package/lib/helpers/get-search-filter.js +3 -3
- package/lib/helpers/get-search-filter.js.map +1 -1
- package/lib/helpers/handle-static-routes.js +3 -3
- package/lib/helpers/handle-static-routes.js.map +1 -1
- package/lib/helpers/render-apple-tags.js +1 -0
- package/lib/helpers/render-apple-tags.js.map +1 -1
- package/lib/helpers/static-route-handlers/generic-file-handler.js +1 -1
- package/lib/helpers/static-route-handlers/generic-file-handler.js.map +1 -1
- package/lib/helpers/static-route-handlers/index.js +1 -1
- package/lib/helpers/static-route-handlers/index.js.map +1 -1
- package/lib/hoc/withBlaze.js +6 -7
- package/lib/hoc/withBlaze.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/pages/Resolver.js +2 -2
- package/lib/pages/Resolver.js.map +1 -1
- package/lib/pages/document/_document.js +1 -1
- package/lib/pages/document/_document.js.map +1 -1
- package/lib/server/index.js +1 -1
- package/lib/server/index.js.map +1 -1
- package/lib-es/application/query/index.js.map +1 -1
- package/lib-es/components/DebugSidebar/DebugSidebar.js +1 -1
- package/lib-es/components/DebugSidebar/DebugSidebar.js.map +1 -1
- package/lib-es/components/DebugSidebar/DebugSidebarRender.js.map +1 -1
- package/lib-es/constants.js.map +1 -1
- package/lib-es/helpers/build-admin-href.js.map +1 -1
- package/lib-es/helpers/check-url.js +1 -1
- package/lib-es/helpers/check-url.js.map +1 -1
- package/lib-es/helpers/get-root-selector-classes.js.map +1 -1
- package/lib-es/helpers/static-route-handlers/llms.js.map +1 -1
- package/lib-es/helpers/static-route-handlers/robots-txt.js.map +1 -1
- package/lib-es/helpers/static-route-handlers/sitemap-file.js.map +1 -1
- package/lib-es/helpers/static-route-handlers/sitemap.js.map +1 -1
- package/lib-es/hoc/withBlaze.js +1 -1
- package/lib-es/hoc/withBlaze.js.map +1 -1
- package/package.json +19 -19
- package/src/helpers/check-url.js +1 -1
- package/tests/unit/src/application/query/__snapshots__/index.test.js.snap +6 -0
- package/tests/unit/src/helpers/static-route-handlers/__snapshots__/generic-file-handler.test.js.snap +2 -0
- package/tests/unit/src/helpers/static-route-handlers/__snapshots__/llms.test.js.snap +1 -0
- package/tests/unit/src/helpers/static-route-handlers/__snapshots__/robots-txt.test.js.snap +1 -0
- package/tests/unit/src/helpers/static-route-handlers/__snapshots__/sitemap-file.test.js.snap +2 -0
- package/tests/unit/src/helpers/static-route-handlers/__snapshots__/sitemap.test.js.snap +1 -0
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.146.0-node18-tooltips.
|
|
6
|
+
# [0.146.0-node18-core-styles-tooltips.55](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.54...v0.146.0-node18-core-styles-tooltips.55) (2026-03-10)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
9
9
|
|
|
@@ -11,12 +11,45 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
# [0.146.0-node18-tooltips.
|
|
14
|
+
# [0.146.0-node18-core-styles-tooltips.54](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.53...v0.146.0-node18-core-styles-tooltips.54) (2026-03-02)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [0.146.0-node18-core-styles-tooltips.52](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.51...v0.146.0-node18-core-styles-tooltips.52) (2026-02-17)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [0.146.0-node18-core-styles-tooltips.51](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.50...v0.146.0-node18-core-styles-tooltips.51) (2026-02-16)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# [0.146.0-node18-core-styles-tooltips.46](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.45...v0.146.0-node18-core-styles-tooltips.46) (2026-01-16)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [0.146.0-node18-core-styles-tooltips.45](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.44...v0.146.0-node18-core-styles-tooltips.45) (2026-01-15)
|
|
15
47
|
|
|
16
48
|
|
|
17
49
|
### Bug Fixes
|
|
18
50
|
|
|
19
51
|
* changed plugin logic ([451b8af](https://github.com/thebyte9/blaze/commit/451b8afd47fade28b0143c128cf645fe90557424))
|
|
52
|
+
* snapshots ([2283a3d](https://github.com/thebyte9/blaze/commit/2283a3da71117b93fc3f52d8ddb6373fd10fa2eb))
|
|
20
53
|
|
|
21
54
|
|
|
22
55
|
### Features
|
|
@@ -27,7 +60,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
60
|
|
|
28
61
|
|
|
29
62
|
|
|
30
|
-
# [0.146.0-node18-tooltips.
|
|
63
|
+
# [0.146.0-node18-core-styles-tooltips.44](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.43...v0.146.0-node18-core-styles-tooltips.44) (2026-01-02)
|
|
31
64
|
|
|
32
65
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
33
66
|
|
|
@@ -35,7 +68,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
68
|
|
|
36
69
|
|
|
37
70
|
|
|
38
|
-
# [0.146.0-node18-tooltips.
|
|
71
|
+
# [0.146.0-node18-core-styles-tooltips.43](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.42...v0.146.0-node18-core-styles-tooltips.43) (2025-12-17)
|
|
39
72
|
|
|
40
73
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
41
74
|
|
|
@@ -43,7 +76,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
43
76
|
|
|
44
77
|
|
|
45
78
|
|
|
46
|
-
# [0.146.0-node18-tooltips.
|
|
79
|
+
# [0.146.0-node18-core-styles-tooltips.42](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.41...v0.146.0-node18-core-styles-tooltips.42) (2025-12-17)
|
|
47
80
|
|
|
48
81
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
49
82
|
|
|
@@ -51,7 +84,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
51
84
|
|
|
52
85
|
|
|
53
86
|
|
|
54
|
-
# [0.146.0-node18-tooltips.
|
|
87
|
+
# [0.146.0-node18-core-styles-tooltips.41](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.40...v0.146.0-node18-core-styles-tooltips.41) (2025-12-15)
|
|
55
88
|
|
|
56
89
|
|
|
57
90
|
### Features
|
|
@@ -62,7 +95,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
62
95
|
|
|
63
96
|
|
|
64
97
|
|
|
65
|
-
# [0.146.0-node18-tooltips.
|
|
98
|
+
# [0.146.0-node18-core-styles-tooltips.38](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.37...v0.146.0-node18-core-styles-tooltips.38) (2025-12-04)
|
|
66
99
|
|
|
67
100
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
68
101
|
|
|
@@ -70,7 +103,39 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
70
103
|
|
|
71
104
|
|
|
72
105
|
|
|
73
|
-
# [0.146.0-node18-tooltips.
|
|
106
|
+
# [0.146.0-node18-core-styles-tooltips.34](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.33...v0.146.0-node18-core-styles-tooltips.34) (2025-11-27)
|
|
107
|
+
|
|
108
|
+
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# [0.146.0-node18-core-styles-tooltips.32](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.31...v0.146.0-node18-core-styles-tooltips.32) (2025-11-26)
|
|
115
|
+
|
|
116
|
+
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
# [0.146.0-node18-core-styles-tooltips.31](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.30...v0.146.0-node18-core-styles-tooltips.31) (2025-11-26)
|
|
123
|
+
|
|
124
|
+
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
# [0.146.0-node18-core-styles-tooltips.30](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.29...v0.146.0-node18-core-styles-tooltips.30) (2025-11-25)
|
|
131
|
+
|
|
132
|
+
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
# [0.146.0-node18-core-styles-tooltips.29](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.28...v0.146.0-node18-core-styles-tooltips.29) (2025-11-17)
|
|
74
139
|
|
|
75
140
|
|
|
76
141
|
### Features
|
|
@@ -81,7 +146,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
81
146
|
|
|
82
147
|
|
|
83
148
|
|
|
84
|
-
# [0.146.0-node18-tooltips.
|
|
149
|
+
# [0.146.0-node18-core-styles-tooltips.27](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.26...v0.146.0-node18-core-styles-tooltips.27) (2025-11-13)
|
|
85
150
|
|
|
86
151
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
87
152
|
|
|
@@ -89,7 +154,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
89
154
|
|
|
90
155
|
|
|
91
156
|
|
|
92
|
-
# [0.146.0-node18-tooltips.
|
|
157
|
+
# [0.146.0-node18-core-styles-tooltips.26](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.25...v0.146.0-node18-core-styles-tooltips.26) (2025-11-12)
|
|
93
158
|
|
|
94
159
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
95
160
|
|
|
@@ -97,7 +162,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
97
162
|
|
|
98
163
|
|
|
99
164
|
|
|
100
|
-
# [0.146.0-node18-tooltips.
|
|
165
|
+
# [0.146.0-node18-core-styles-tooltips.25](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.24...v0.146.0-node18-core-styles-tooltips.25) (2025-11-07)
|
|
166
|
+
|
|
167
|
+
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
# [0.146.0-node18-core-styles-tooltips.24](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.23...v0.146.0-node18-core-styles-tooltips.24) (2025-11-03)
|
|
101
174
|
|
|
102
175
|
|
|
103
176
|
### Bug Fixes
|
|
@@ -113,7 +186,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
113
186
|
|
|
114
187
|
|
|
115
188
|
|
|
116
|
-
# [0.146.0-node18-tooltips.
|
|
189
|
+
# [0.146.0-node18-core-styles-tooltips.23](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.22...v0.146.0-node18-core-styles-tooltips.23) (2025-10-27)
|
|
117
190
|
|
|
118
191
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
119
192
|
|
|
@@ -121,7 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
121
194
|
|
|
122
195
|
|
|
123
196
|
|
|
124
|
-
# [0.146.0-node18-tooltips.
|
|
197
|
+
# [0.146.0-node18-core-styles-tooltips.22](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.21...v0.146.0-node18-core-styles-tooltips.22) (2025-10-20)
|
|
125
198
|
|
|
126
199
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
127
200
|
|
|
@@ -129,7 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
129
202
|
|
|
130
203
|
|
|
131
204
|
|
|
132
|
-
# [0.146.0-node18-tooltips.
|
|
205
|
+
# [0.146.0-node18-core-styles-tooltips.21](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.20...v0.146.0-node18-core-styles-tooltips.21) (2025-10-07)
|
|
133
206
|
|
|
134
207
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
135
208
|
|
|
@@ -137,7 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
137
210
|
|
|
138
211
|
|
|
139
212
|
|
|
140
|
-
# [0.146.0-node18-tooltips.
|
|
213
|
+
# [0.146.0-node18-core-styles-tooltips.20](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.19...v0.146.0-node18-core-styles-tooltips.20) (2025-10-03)
|
|
141
214
|
|
|
142
215
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
143
216
|
|
|
@@ -145,7 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
145
218
|
|
|
146
219
|
|
|
147
220
|
|
|
148
|
-
# [0.146.0-node18-tooltips.
|
|
221
|
+
# [0.146.0-node18-core-styles-tooltips.19](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.18...v0.146.0-node18-core-styles-tooltips.19) (2025-10-01)
|
|
149
222
|
|
|
150
223
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
151
224
|
|
|
@@ -153,7 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
153
226
|
|
|
154
227
|
|
|
155
228
|
|
|
156
|
-
# [0.146.0-node18-tooltips.
|
|
229
|
+
# [0.146.0-node18-core-styles-tooltips.18](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.17...v0.146.0-node18-core-styles-tooltips.18) (2025-09-29)
|
|
157
230
|
|
|
158
231
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
159
232
|
|
|
@@ -161,7 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
161
234
|
|
|
162
235
|
|
|
163
236
|
|
|
164
|
-
# [0.146.0-node18-tooltips.
|
|
237
|
+
# [0.146.0-node18-core-styles-tooltips.15](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.14...v0.146.0-node18-core-styles-tooltips.15) (2025-09-23)
|
|
165
238
|
|
|
166
239
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
167
240
|
|
|
@@ -169,15 +242,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
169
242
|
|
|
170
243
|
|
|
171
244
|
|
|
172
|
-
# [0.146.0-node18-tooltips.
|
|
245
|
+
# [0.146.0-node18-core-styles-tooltips.14](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.13...v0.146.0-node18-core-styles-tooltips.14) (2025-09-18)
|
|
173
246
|
|
|
174
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
175
247
|
|
|
248
|
+
### Bug Fixes
|
|
249
|
+
|
|
250
|
+
* force debug link to open in new tab ([#4907](https://github.com/thebyte9/blaze/issues/4907)) ([59abc33](https://github.com/thebyte9/blaze/commit/59abc3356636f5f8eb6ff911101947c878dbd213))
|
|
176
251
|
|
|
177
252
|
|
|
178
253
|
|
|
179
254
|
|
|
180
|
-
|
|
255
|
+
|
|
256
|
+
# [0.146.0-node18-core-styles-tooltips.13](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.12...v0.146.0-node18-core-styles-tooltips.13) (2025-09-15)
|
|
181
257
|
|
|
182
258
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
183
259
|
|
|
@@ -185,7 +261,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
185
261
|
|
|
186
262
|
|
|
187
263
|
|
|
188
|
-
# [0.146.0-node18-tooltips.
|
|
264
|
+
# [0.146.0-node18-core-styles-tooltips.12](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.11...v0.146.0-node18-core-styles-tooltips.12) (2025-08-27)
|
|
189
265
|
|
|
190
266
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
191
267
|
|
|
@@ -193,26 +269,30 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
193
269
|
|
|
194
270
|
|
|
195
271
|
|
|
196
|
-
# [0.146.0-node18-tooltips.
|
|
272
|
+
# [0.146.0-node18-core-styles-tooltips.11](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.10...v0.146.0-node18-core-styles-tooltips.11) (2025-08-27)
|
|
197
273
|
|
|
198
|
-
|
|
274
|
+
|
|
275
|
+
### Features
|
|
276
|
+
|
|
277
|
+
* add support for custom 404 page using custom error 404 slug and fallback rendering ([#4839](https://github.com/thebyte9/blaze/issues/4839)) ([67554a3](https://github.com/thebyte9/blaze/commit/67554a3febc2871d73bd127753edf3b918a1a0b7))
|
|
278
|
+
* chart component ([#4846](https://github.com/thebyte9/blaze/issues/4846)) ([f74bd5a](https://github.com/thebyte9/blaze/commit/f74bd5aecc6078e725f92c523d8da0916a612d88))
|
|
199
279
|
|
|
200
280
|
|
|
201
281
|
|
|
202
282
|
|
|
203
283
|
|
|
204
|
-
# [0.146.0-node18-tooltips.
|
|
284
|
+
# [0.146.0-node18-core-styles-tooltips.8](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.7...v0.146.0-node18-core-styles-tooltips.8) (2025-07-25)
|
|
205
285
|
|
|
206
286
|
|
|
207
287
|
### Bug Fixes
|
|
208
288
|
|
|
209
|
-
*
|
|
289
|
+
* restore favion loading in the frontend ([#4851](https://github.com/thebyte9/blaze/issues/4851)) ([f1c31bb](https://github.com/thebyte9/blaze/commit/f1c31bb2213f79b1d4b6b1ae6e5d5bd2b150fdf8))
|
|
210
290
|
|
|
211
291
|
|
|
212
292
|
|
|
213
293
|
|
|
214
294
|
|
|
215
|
-
# [0.146.0-node18-tooltips.
|
|
295
|
+
# [0.146.0-node18-core-styles-tooltips.5](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.4...v0.146.0-node18-core-styles-tooltips.5) (2025-07-18)
|
|
216
296
|
|
|
217
297
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
218
298
|
|
|
@@ -220,7 +300,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
220
300
|
|
|
221
301
|
|
|
222
302
|
|
|
223
|
-
# [0.146.0-node18-tooltips.
|
|
303
|
+
# [0.146.0-node18-core-styles-tooltips.4](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.3...v0.146.0-node18-core-styles-tooltips.4) (2025-07-10)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
### Bug Fixes
|
|
307
|
+
|
|
308
|
+
* respond to live blog item size changes for laze loaded image, live blog title and global light box fix ([#4730](https://github.com/thebyte9/blaze/issues/4730)) ([5dd38d8](https://github.com/thebyte9/blaze/commit/5dd38d8d9e5983c55d3053d440eb7ab618688920))
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
# [0.146.0-node18-core-styles-tooltips.2](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.1...v0.146.0-node18-core-styles-tooltips.2) (2025-06-20)
|
|
224
315
|
|
|
225
316
|
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
226
317
|
|
|
@@ -228,24 +319,34 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
228
319
|
|
|
229
320
|
|
|
230
321
|
|
|
231
|
-
# [0.146.0-node18-tooltips.
|
|
322
|
+
# [0.146.0-node18-core-styles-tooltips.1](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.0...v0.146.0-node18-core-styles-tooltips.1) (2025-06-20)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
### Features
|
|
326
|
+
|
|
327
|
+
* added frontend links for editor mode ([#4801](https://github.com/thebyte9/blaze/issues/4801)) ([d5de370](https://github.com/thebyte9/blaze/commit/d5de370203abf467fcc3819d06c7375f4a6c1eb9))
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
# [0.146.0-node18-core-styles-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18-core-styles-tooltips.0) (2025-06-18)
|
|
232
334
|
|
|
233
335
|
|
|
234
336
|
### Bug Fixes
|
|
235
337
|
|
|
338
|
+
* adds default root selector to readme ([cfb5095](https://github.com/thebyte9/blaze/commit/cfb50956d95df485fe4486f632d32400b46806f7))
|
|
236
339
|
* bumped apollo versions ([b371dc7](https://github.com/thebyte9/blaze/commit/b371dc7e7bbe814a0cc4d57af2b959ab5e1b1bfd))
|
|
237
340
|
* fixed breaking tests, updated next to 14 ([fecb0e1](https://github.com/thebyte9/blaze/commit/fecb0e1d822bd69ebbaa084072a219f0fddd23f1))
|
|
238
341
|
* fixed more tests ([46a2fb9](https://github.com/thebyte9/blaze/commit/46a2fb9467f9f3c9cf320c9caf36c66503cc1f49))
|
|
239
342
|
* fixed remaining failing tests ([8a5963f](https://github.com/thebyte9/blaze/commit/8a5963ff8a0bf615a2ced9fb77b8986a9b05d80c))
|
|
343
|
+
* fixes readme layout ([9dbdd8e](https://github.com/thebyte9/blaze/commit/9dbdd8ee96cb4a716e1e42c224939ac22ac6af0d))
|
|
240
344
|
* lint errors for reegex ([daaf750](https://github.com/thebyte9/blaze/commit/daaf7506d22f9578072c71f5557d0b6bf6185018))
|
|
241
345
|
* linting fix for reading return values from promise executor functions ([7edb563](https://github.com/thebyte9/blaze/commit/7edb563a4cbfa37188f26c1ae709ffe8ed837d69))
|
|
242
346
|
* linting fixed automatically ([73135b9](https://github.com/thebyte9/blaze/commit/73135b9b8b0d5407e2e1dfba42ab2381f290607f))
|
|
243
347
|
* only do parent redirect when there are graphql errors ([#4697](https://github.com/thebyte9/blaze/issues/4697)) ([1ec63ba](https://github.com/thebyte9/blaze/commit/1ec63ba95c21c11d41721f07346945742d7237ae))
|
|
244
348
|
* prevent 404 error when no data is returned from and improve redi… ([#4688](https://github.com/thebyte9/blaze/issues/4688)) ([3a5af3d](https://github.com/thebyte9/blaze/commit/3a5af3ddf65d67456971d2d75525235c30965633))
|
|
245
|
-
* respond to live blog item size changes for laze loaded image, live blog title and global light box fix ([#4730](https://github.com/thebyte9/blaze/issues/4730)) ([5dd38d8](https://github.com/thebyte9/blaze/commit/5dd38d8d9e5983c55d3053d440eb7ab618688920))
|
|
246
|
-
* restore favion loading in the frontend ([#4851](https://github.com/thebyte9/blaze/issues/4851)) ([f1c31bb](https://github.com/thebyte9/blaze/commit/f1c31bb2213f79b1d4b6b1ae6e5d5bd2b150fdf8))
|
|
247
349
|
* set blank cache-control header to override nextjs default of 0 ([#4783](https://github.com/thebyte9/blaze/issues/4783)) ([2f1653e](https://github.com/thebyte9/blaze/commit/2f1653ed3756a90575c48f8a2253776958c6c0ff))
|
|
248
|
-
* show pagebuilder tabs when no components added ([#4844](https://github.com/thebyte9/blaze/issues/4844)) ([2cbb24d](https://github.com/thebyte9/blaze/commit/2cbb24df95b38d4c8f4575814daadebd74ba04d4))
|
|
249
350
|
* udpated yarn lock ([0cd4fa4](https://github.com/thebyte9/blaze/commit/0cd4fa4a185fca4b80b57e472badb771dd649ec2))
|
|
250
351
|
* updated with dev ([90f545f](https://github.com/thebyte9/blaze/commit/90f545f1beabb35e26ba6fb2b45a7a0dfd072927))
|
|
251
352
|
* updated with dev ([729bb6e](https://github.com/thebyte9/blaze/commit/729bb6ee7e87946081d51564a4ab45538f7be1e7))
|
|
@@ -256,10 +357,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
256
357
|
|
|
257
358
|
### Features
|
|
258
359
|
|
|
259
|
-
* add support for custom 404 page using custom error 404 slug and fallback rendering ([#4839](https://github.com/thebyte9/blaze/issues/4839)) ([67554a3](https://github.com/thebyte9/blaze/commit/67554a3febc2871d73bd127753edf3b918a1a0b7))
|
|
260
|
-
* added frontend links for editor mode ([#4801](https://github.com/thebyte9/blaze/issues/4801)) ([d5de370](https://github.com/thebyte9/blaze/commit/d5de370203abf467fcc3819d06c7375f4a6c1eb9))
|
|
261
360
|
* allow . (dot) character in route regex ([#4552](https://github.com/thebyte9/blaze/issues/4552)) ([9be0fe0](https://github.com/thebyte9/blaze/commit/9be0fe0dd0dac2e0891c2d965a20c6b2e02165cc))
|
|
262
|
-
* chart component ([#4846](https://github.com/thebyte9/blaze/issues/4846)) ([f74bd5a](https://github.com/thebyte9/blaze/commit/f74bd5aecc6078e725f92c523d8da0916a612d88))
|
|
263
361
|
* debug sidebar now shows on error if enabled ([#4667](https://github.com/thebyte9/blaze/issues/4667)) ([01d43e1](https://github.com/thebyte9/blaze/commit/01d43e19c160980cfc8259c1a951ab70ebe70eb0))
|
|
264
362
|
* open frontend debug toolbar with a url param ([#4771](https://github.com/thebyte9/blaze/issues/4771)) ([37b8ea5](https://github.com/thebyte9/blaze/commit/37b8ea59a5ed4be0912465717adeb079fd6b3a89))
|
|
265
363
|
* updated react to 18 ([9335f84](https://github.com/thebyte9/blaze/commit/9335f8432b376494501abb9c3deef1ddaa9b35a8))
|
package/README.md
CHANGED
|
@@ -90,16 +90,15 @@ If is possible to create a custom error page by adding a page with the slug "cus
|
|
|
90
90
|
## Environment variables
|
|
91
91
|
|
|
92
92
|
| Name | Description | Type | Default |
|
|
93
|
-
|
|
93
|
+
|---|---|---|---|
|
|
94
94
|
| BLAZE_FRONTEND_HOST | Frontend host (used to identify host) | String | |
|
|
95
|
-
| BLAZE_ROUTE_REGEX | Override default route regex | /^\/[a-z0-9
|
|
95
|
+
| BLAZE_ROUTE_REGEX | Override default route regex | Regex | /^\/[a-z0-9€_\/]+(?:[-\/\.]{1,2}[a-z0-9\/€_\/]+)*$|^\/$/ |
|
|
96
96
|
| BLAZE_CACHE_CONTROL_HEADER | Cache-Control header to set on page requests | String | "" |
|
|
97
|
-
| BLAZE_STATIC_ROUTE_STORE_KEY | Override store for static file routes | default |
|
|
98
|
-
| BLAZE_ROUTE_PATTERN_SITEMAP | Override sitemap route | /sitemap.xml |
|
|
97
|
+
| BLAZE_STATIC_ROUTE_STORE_KEY | Override store for static file routes | String | default |
|
|
98
|
+
| BLAZE_ROUTE_PATTERN_SITEMAP | Override sitemap route | String | /sitemap.xml |
|
|
99
99
|
| BLAZE_CONTENT_SITEMAP_URL_PREFIX | Prefix for sitemap URL, used in frontend static route e.g. /sitemap/sitemap-0.xml. This needs to match the value set in the API app. | String | |
|
|
100
|
-
| BLAZE_ROOT_SELECTOR_CLASSES_LIMIT | The number of root-selector classes to display.
|
|
101
|
-
| BLAZE_BUILD_ENV_PREFIX_REGEX | '\|' separated list of allowed environment variable prefixes. Any environment variable that matches this prefix pattern will be dynamically added to the next environment config and will be available in code for use. If the environment variable has a "BUILD_" prefix, then this prefix will be removed from the next environment variable name before assigning it. i.e. BUILD_THIRD_PARTY_ENV will become THIRD_PARTY_ENV in the build. Prefixes BLAZE\|GOOGLE\|JWPLAYER\|DFP are added for backward compatibility and will be deprecated. We recommend to use new and change existing environment variables with "BUILD_" prefix. | BLAZE\|GOOGLE\|JWPLAYER\|DFP\|BUILD |
|
|
102
|
-
| BLAZE_CONTENT_SITEMAP_URL_PREFIX | Prefix for sitemap URL, used in frontend static route e.g. /sitemap/sitemap-0.xml. This needs to match value set in API app. | String | |
|
|
100
|
+
| BLAZE_ROOT_SELECTOR_CLASSES_LIMIT | The number of root-selector classes to display. If the variable is not set, it defaults to 1, displaying only the highest-level parent class. | String | 1 |
|
|
101
|
+
| BLAZE_BUILD_ENV_PREFIX_REGEX | '\|' separated list of allowed environment variable prefixes. Any environment variable that matches this prefix pattern will be dynamically added to the next environment config and will be available in code for use. If the environment variable has a "BUILD_" prefix, then this prefix will be removed from the next environment variable name before assigning it. i.e. BUILD_THIRD_PARTY_ENV will become THIRD_PARTY_ENV in the build. Prefixes BLAZE\|GOOGLE\|JWPLAYER\|DFP are added for backward compatibility and will be deprecated. We recommend to use new and change existing environment variables with "BUILD_" prefix. | String | BLAZE\|GOOGLE\|JWPLAYER\|DFP\|BUILD |
|
|
103
102
|
| BLAZE_DISABLE_REDIRECT_WITH_QUERY | Do not add query string to redirects | String | |
|
|
104
103
|
|
|
105
104
|
## Events emitted
|
|
@@ -206,7 +205,7 @@ When checking new code or build configs make sure to check the [following things
|
|
|
206
205
|
|
|
207
206
|
## Root selector classes
|
|
208
207
|
|
|
209
|
-
To make styling of sections of a site simpler, it is possible to enable setting root selector classes at the top of the Resolver page structure that are generated based on the url hierarchy.
|
|
208
|
+
To make styling of sections of a site simpler, it is possible to enable setting root selector classes at the top of the Resolver page structure that are generated based on the url hierarchy. If the variable is not set, it defaults to 1, displaying only the highest-level parent class.
|
|
210
209
|
|
|
211
210
|
For example the following url, `/parent/child/article-123` might be broken into the following classes
|
|
212
211
|
|
package/example.env
CHANGED
|
@@ -3,6 +3,6 @@ BLAZE_FRONTEND_HOST=thisisblaze.com
|
|
|
3
3
|
BLAZE_ROUTE_PATTERN_SITEMAP="/sitemap.xml"
|
|
4
4
|
BLAZE_CONTENT_SITEMAP_URL_PREFIX="sitemap"
|
|
5
5
|
#BLAZE_ROUTE_REGEX="^\/[a-z0-9€_\/]+(?:[-\/]{1,2}[a-z0-9\/€_\/]+)*$|^\/$"
|
|
6
|
-
BLAZE_ROOT_SELECTOR_CLASSES_LIMIT="
|
|
6
|
+
BLAZE_ROOT_SELECTOR_CLASSES_LIMIT="1"
|
|
7
7
|
BLAZE_CACHE_CONTROL_HEADER="max-age=0"
|
|
8
8
|
BLAZE_DISABLE_REDIRECT_WITH_QUERY=""
|
|
@@ -30,7 +30,7 @@ var _switches = _interopRequireDefault(require("@blaze-react/switches"));
|
|
|
30
30
|
var _helpers = require("../../helpers");
|
|
31
31
|
var _constants = require("../../constants");
|
|
32
32
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
33
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
33
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
34
34
|
var DebugSidebar = function DebugSidebar(_ref) {
|
|
35
35
|
var itemEntity = _ref.itemEntity,
|
|
36
36
|
itemId = _ref.itemId,
|
|
@@ -87,7 +87,7 @@ var DebugSidebar = function DebugSidebar(_ref) {
|
|
|
87
87
|
shallow: true
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
|
-
return /*#__PURE__*/(0, _reactDom.createPortal)(
|
|
90
|
+
return /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react["default"].createElement("div", {
|
|
91
91
|
className: divClass,
|
|
92
92
|
"data-testid": "debug-sidebar"
|
|
93
93
|
}, /*#__PURE__*/_react["default"].createElement(_nextjsComponents.Link, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugSidebar.js","names":["_react","_interopRequireWildcard","require","_reactDom","_propTypes","_interopRequireDefault","_classnames","_io","_router","_md","_nextjsComponents","_switches","_helpers","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","
|
|
1
|
+
{"version":3,"file":"DebugSidebar.js","names":["_react","_interopRequireWildcard","require","_reactDom","_propTypes","_interopRequireDefault","_classnames","_io","_router","_md","_nextjsComponents","_switches","_helpers","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DebugSidebar","_ref","itemEntity","itemId","updatedDebugOptions","debugMode","setIsDebugMode","router","useRouter","_useState","useState","_useState2","_slicedToArray2","isEditorMode","setIsEditorMode","_useState3","_useState4","isOpen","setIsOpen","divClass","classnames","toggleEditorMode","editorModeEnabled","adminHref","buildAdminHref","href","closeDebug","setBlazeDebug","window","blaze","debug","_router$asPath$split","asPath","split","_router$asPath$split2","pathname","_router$asPath$split3","search","params","URLSearchParams","BLAZE_DEBUG","newUrl","toString","concat","push","shallow","createPortal","createElement","className","Link","target","src","DEBUG_LOGO","SRC","alt","ALT","role","onClick","IoCloseOutline","onChange","name","icon","MdEdit","alignVertically","returnBoolean","onText","offText","options","id","checked","MdKeyboardArrowLeft","document","body","propTypes","PropTypes","func","isRequired","string","bool","defaultProps","_default","exports"],"sources":["../../../src/components/DebugSidebar/DebugSidebar.js"],"sourcesContent":["import React, { useState } from 'react';\nimport { createPortal } from 'react-dom';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport { IoCloseOutline } from 'react-icons/io5';\nimport { useRouter } from 'next/router';\nimport { MdKeyboardArrowLeft, MdEdit } from 'react-icons/md';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport Switches from '@blaze-react/switches';\nimport { buildAdminHref, setBlazeDebug } from '../../helpers';\nimport { DEBUG_LOGO, BLAZE_DEBUG } from '../../constants';\n\nconst DebugSidebar = ({ itemEntity, itemId, updatedDebugOptions, debugMode, setIsDebugMode }) => {\n const router = useRouter();\n const [isEditorMode, setIsEditorMode] = useState(false);\n const [isOpen, setIsOpen] = useState(true);\n\n const divClass = classnames('debug-sidebar', {\n 'debug-sidebar--open': isOpen,\n 'debug-sidebar--close': !isOpen\n });\n\n const toggleEditorMode = () => {\n // todo: persist editor mode in local storage\n // const currentEditorMode = getFromLocal(BLAZE_PB_EDITOR_MODE);\n // if (currentEditorMode) {\n // window.localStorage.removeItem(BLAZE_PB_EDITOR_MODE);\n // } else {\n // window.localStorage.setItem(BLAZE_PB_EDITOR_MODE, true);\n // }\n updatedDebugOptions('editorModeEnabled', !isEditorMode);\n updatedDebugOptions({\n editorModeEnabled: !isEditorMode,\n adminHref: buildAdminHref({ itemEntity, itemId })\n });\n setIsEditorMode(!isEditorMode);\n };\n\n const href = buildAdminHref({ itemEntity, itemId });\n\n const closeDebug = () => {\n setBlazeDebug(setIsDebugMode);\n window.blaze.debug();\n\n const [pathname, search = ''] = router.asPath.split('?');\n const params = new URLSearchParams(search);\n params.delete(BLAZE_DEBUG);\n const newUrl = params.toString() ? `${pathname}?${params.toString()}` : pathname;\n\n router.push('/Resolver', newUrl, {\n shallow: true\n });\n };\n\n return createPortal(\n <div className={divClass} data-testid=\"debug-sidebar\">\n <Link href={href} target=\"_blank\">\n <img src={DEBUG_LOGO.SRC} alt={DEBUG_LOGO.ALT} />\n </Link>\n <div\n role=\"button\"\n className=\"debug-sidebar__button debug-sidebar__button--close\"\n data-testid=\"debug-sidebar-close\"\n aria-label=\"Close debug sidebar\"\n onClick={closeDebug}>\n <IoCloseOutline />\n </div>\n <Switches\n onChange={toggleEditorMode}\n name=\"debug-sidebar-switch\"\n icon={<MdEdit />}\n alignVertically\n returnBoolean\n onText=\"ON\"\n offText=\"OFF\"\n options={{\n id: 'debug-sidebar-switch',\n checked: isEditorMode\n }}\n />\n <div\n role=\"button\"\n className=\"debug-sidebar__button open\"\n data-testid=\"debug-sidebar-button\"\n id=\"debug-sidebar-button\"\n onClick={() => setIsOpen(!isOpen)}>\n <i>\n <MdKeyboardArrowLeft />\n </i>\n </div>\n </div>,\n document.body\n );\n};\n\nDebugSidebar.propTypes = {\n updatedDebugOptions: PropTypes.func.isRequired,\n itemEntity: PropTypes.string,\n itemId: PropTypes.string,\n debugMode: PropTypes.bool,\n setIsDebugMode: PropTypes.func.isRequired\n};\n\nDebugSidebar.defaultProps = {\n itemEntity: '',\n itemId: '',\n debugMode: false\n};\n\nexport default DebugSidebar;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,GAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,GAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAN,sBAAA,CAAAH,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,UAAA,GAAAX,OAAA;AAA0D,SAAAY,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAd,wBAAAc,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GA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oB,EAAE,EAAC,sBAAsB;IACzBX,OAAO,EAAE,SAATA,OAAOA,CAAA;MAAA,OAAQvC,SAAS,CAAC,CAACD,MAAM,CAAC;IAAA;EAAC,gBAClCnD,MAAA,YAAAiF,aAAA,yBACEjF,MAAA,YAAAiF,aAAA,CAACxE,GAAA,CAAA+F,mBAAmB,MAAE,CACrB,CACA,CACF,CAAC,EACNC,QAAQ,CAACC,IACX,CAAC;AACH,CAAC;AAEDxE,YAAY,CAACyE,SAAS,GAAG;EACvBrE,mBAAmB,EAAEsE,qBAAS,CAACC,IAAI,CAACC,UAAU;EAC9C1E,UAAU,EAAEwE,qBAAS,CAACG,MAAM;EAC5B1E,MAAM,EAAEuE,qBAAS,CAACG,MAAM;EACxBxE,SAAS,EAAEqE,qBAAS,CAACI,IAAI;EACzBxE,cAAc,EAAEoE,qBAAS,CAACC,IAAI,CAACC;AACjC,CAAC;AAED5E,YAAY,CAAC+E,YAAY,GAAG;EAC1B7E,UAAU,EAAE,EAAE;EACdC,MAAM,EAAE,EAAE;EACVE,SAAS,EAAE;AACb,CAAC;AAAC,IAAA2E,QAAA,GAAAC,OAAA,cAEajF,YAAY","ignoreList":[]}
|
|
@@ -24,7 +24,7 @@ var _router = require("next/router");
|
|
|
24
24
|
var _helpers = require("../../helpers");
|
|
25
25
|
var _constants = require("../../constants");
|
|
26
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
27
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
28
28
|
var DebugSidebar = (0, _dynamic["default"])(function () {
|
|
29
29
|
return Promise.resolve().then(function () {
|
|
30
30
|
return _interopRequireWildcard(require('./DebugSidebar'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugSidebarRender.js","names":["_react","_interopRequireWildcard","require","_dynamic","_interopRequireDefault","_propTypes","_router","_helpers","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof2","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","
|
|
1
|
+
{"version":3,"file":"DebugSidebarRender.js","names":["_react","_interopRequireWildcard","require","_dynamic","_interopRequireDefault","_propTypes","_router","_helpers","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof2","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DebugSidebar","dynamic","Promise","resolve","then","DebugSidebarRender","_ref","itemEntity","itemId","updatedDebugOptions","debugMode","_useState","useState","_useState2","_slicedToArray2","isDebugMode","setIsDebugMode","router","useRouter","useEffect","currentDebugValue","getFromLocal","BLAZE_DEBUG","setBlazeDebug","handleRouteChange","url","hasDebug","includes","concat","asPath","events","on","off","createElement","propTypes","PropTypes","func","isRequired","string","bool","defaultProps","_default","exports"],"sources":["../../../src/components/DebugSidebar/DebugSidebarRender.js"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport dynamic from 'next/dynamic';\nimport PropTypes from 'prop-types';\nimport { useRouter } from 'next/router';\nimport { setBlazeDebug, getFromLocal } from '../../helpers';\nimport { BLAZE_DEBUG } from '../../constants';\n\nconst DebugSidebar = dynamic(() => import('./DebugSidebar'));\n\nconst DebugSidebarRender = ({ itemEntity, itemId, updatedDebugOptions, debugMode }) => {\n const [isDebugMode, setIsDebugMode] = useState(debugMode);\n const router = useRouter();\n\n useEffect(() => {\n const currentDebugValue = getFromLocal(BLAZE_DEBUG);\n setIsDebugMode(currentDebugValue);\n setBlazeDebug(setIsDebugMode);\n }, []);\n\n useEffect(\n () => {\n const handleRouteChange = url => {\n const hasDebug = url.includes(`${BLAZE_DEBUG}=1`);\n if (hasDebug) {\n setBlazeDebug(setIsDebugMode);\n }\n };\n\n if (router.asPath.includes(`${BLAZE_DEBUG}=1`)) {\n handleRouteChange(router.asPath);\n }\n\n router.events.on('routeChangeComplete', handleRouteChange);\n return () => {\n router.events.off('routeChangeComplete', handleRouteChange);\n };\n },\n [router.events, router.asPath]\n );\n\n if (!isDebugMode) return null;\n\n return (\n <DebugSidebar\n itemEntity={itemEntity}\n itemId={itemId}\n updatedDebugOptions={updatedDebugOptions}\n debugMode={debugMode}\n setIsDebugMode={setIsDebugMode}\n />\n );\n};\n\nDebugSidebarRender.propTypes = {\n updatedDebugOptions: PropTypes.func.isRequired,\n itemEntity: PropTypes.string,\n itemId: PropTypes.string,\n debugMode: PropTypes.bool\n};\n\nDebugSidebarRender.defaultProps = {\n itemEntity: '',\n itemId: '',\n debugMode: false\n};\n\nexport default DebugSidebarRender;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAA8C,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,m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,CAACY,MAAM,CAC/B,CAAC;EAED,IAAI,CAACd,WAAW,EAAE,OAAO,IAAI;EAE7B,oBACE5C,MAAA,YAAA8D,aAAA,CAACjC,YAAY;IACXO,UAAU,EAAEA,UAAW;IACvBC,MAAM,EAAEA,MAAO;IACfC,mBAAmB,EAAEA,mBAAoB;IACzCC,SAAS,EAAEA,SAAU;IACrBM,cAAc,EAAEA;EAAe,CAChC,CAAC;AAEN,CAAC;AAEDX,kBAAkB,CAAC6B,SAAS,GAAG;EAC7BzB,mBAAmB,EAAE0B,qBAAS,CAACC,IAAI,CAACC,UAAU;EAC9C9B,UAAU,EAAE4B,qBAAS,CAACG,MAAM;EAC5B9B,MAAM,EAAE2B,qBAAS,CAACG,MAAM;EACxB5B,SAAS,EAAEyB,qBAAS,CAACI;AACvB,CAAC;AAEDlC,kBAAkB,CAACmC,YAAY,GAAG;EAChCjC,UAAU,EAAE,EAAE;EACdC,MAAM,EAAE,EAAE;EACVE,SAAS,EAAE;AACb,CAAC;AAAC,IAAA+B,QAAA,GAAAC,OAAA,cAEarC,kBAAkB","ignoreList":[]}
|
|
@@ -32,7 +32,7 @@ var _constants = require("../constants");
|
|
|
32
32
|
var _components = require("../components");
|
|
33
33
|
var _excluded = ["category", "tags", "preparedPageBuilderComponents"];
|
|
34
34
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
35
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
35
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
36
36
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
37
37
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
38
38
|
var ContentContainer = function ContentContainer(_ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentContainer.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_pluginPageBuilderFe","_nextjsComponents","_helpers","_constants","_components","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","
|
|
1
|
+
{"version":3,"file":"ContentContainer.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_pluginPageBuilderFe","_nextjsComponents","_helpers","_constants","_components","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","ContentContainer","_ref","fullUrl","pageData","isPreview","itemId","itemEntity","_useState","useState","_useState2","_slicedToArray2","open","setOpen","_useState3","editorModeEnabled","_useState4","debugOptions","setDebugOptions","_useState5","_useState6","selectedImage","setSelectedImage","toggleModal","useEffect","category","tags","preparedPageBuilderComponents","metaProps","_objectWithoutProperties2","pageBuilder","options","parent","searchFilterItems","getSearchFilter","defaultSearchFilter","settings","url","searchFilter","allSearchFilters","lightboxImages","getLightboxImages","hasGTM","checkForGtm","GlobalLigthBoxProps","buildPBComponentsOptions","updatedDebugOptions","newOptions","undefined","createElement","MainContextProvider","value","Header","DebugSidebar","className","PREVIEW_MODE","buildPBComponents","propTypes","PropTypes","string","isRequired","object","bool","_default","exports"],"sources":["../../src/containers/ContentContainer.js"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { buildPBComponents, getLightboxImages } from '@blaze-cms/plugin-page-builder-fe';\nimport { Header, MainContextProvider } from '@blaze-cms/nextjs-components';\nimport { getSearchFilter, checkForGtm } from '../helpers';\nimport { PREVIEW_MODE } from '../constants';\nimport { DebugSidebar } from '../components';\n\nconst ContentContainer = ({ fullUrl, pageData, isPreview, itemId, itemEntity }) => {\n const [open, setOpen] = useState(false);\n const [debugOptions, setDebugOptions] = useState({ editorModeEnabled: false });\n const [selectedImage, setSelectedImage] = useState(0);\n const toggleModal = () => setOpen(!open);\n\n useEffect(\n () => {\n if (open) setOpen(false);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [fullUrl]\n );\n\n const { category, tags, preparedPageBuilderComponents, ...metaProps } = pageData;\n const pageBuilder = preparedPageBuilderComponents || [];\n const options = { parent: { itemId, itemEntity, category, tags } };\n const searchFilterItems = getSearchFilter(pageBuilder);\n const defaultSearchFilter = searchFilterItems[0];\n // TODO check if this can be removed\n if (defaultSearchFilter && !defaultSearchFilter.settings.url) {\n options.searchFilter = defaultSearchFilter;\n }\n options.allSearchFilters = searchFilterItems;\n const lightboxImages = getLightboxImages(pageBuilder);\n const hasGTM = checkForGtm(pageBuilder);\n const GlobalLigthBoxProps = {\n open,\n setOpen,\n toggleModal,\n selectedImage,\n lightboxImages,\n setSelectedImage\n };\n\n const buildPBComponentsOptions = {\n ...options,\n ...metaProps,\n ...GlobalLigthBoxProps,\n hasGTM\n };\n\n const updatedDebugOptions = (newOptions = {}) => {\n setDebugOptions({\n ...debugOptions,\n ...newOptions\n });\n };\n\n return (\n <MainContextProvider value={{ fullUrl, isPreview, itemId, itemEntity, hasGTM, debugOptions }}>\n <Header {...metaProps} />\n <DebugSidebar\n itemId={itemId}\n itemEntity={itemEntity}\n updatedDebugOptions={updatedDebugOptions}\n />\n {isPreview && <div className=\"preview-header\">{PREVIEW_MODE}</div>}\n {!!pageBuilder.length && buildPBComponents(pageBuilder, buildPBComponentsOptions, true)}\n </MainContextProvider>\n );\n};\n\nContentContainer.propTypes = {\n fullUrl: PropTypes.string.isRequired,\n pageData: PropTypes.object.isRequired,\n isPreview: PropTypes.bool.isRequired,\n itemId: PropTypes.string.isRequired,\n itemEntity: PropTypes.string.isRequired\n};\n\nexport default ContentContainer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAA6C,IAAAQ,SAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAA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