@blaze-cms/nextjs-tools 0.146.0-core-styles.43 → 0.146.0-node18.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 +16 -178
- package/README.md +9 -8
- package/example.env +1 -1
- package/lib/application/query/index.js.map +1 -1
- package/lib/blaze.config.js.map +1 -1
- package/lib/components/DebugSidebar/index.js +3 -3
- package/lib/components/DebugSidebar/index.js.map +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/constants.js.map +1 -1
- package/lib/containers/ContentContainer.js +7 -7
- package/lib/containers/ContentContainer.js.map +1 -1
- package/lib/containers/index.js.map +1 -1
- package/lib/helpers/build-admin-href.js +1 -1
- package/lib/helpers/build-admin-href.js.map +1 -1
- package/lib/helpers/check-for-gtm.js +4 -4
- package/lib/helpers/check-for-gtm.js.map +1 -1
- package/lib/helpers/check-parent.js.map +1 -1
- package/lib/helpers/check-preview-url.js.map +1 -1
- package/lib/helpers/check-url.js +28 -21
- package/lib/helpers/check-url.js.map +1 -1
- package/lib/helpers/get-entitys-actions.js.map +1 -1
- package/lib/helpers/get-error-message.js.map +1 -1
- package/lib/helpers/get-page-data.js +6 -6
- package/lib/helpers/get-page-data.js.map +1 -1
- package/lib/helpers/get-root-selector-classes.js +3 -3
- package/lib/helpers/get-root-selector-classes.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 +10 -10
- package/lib/helpers/handle-static-routes.js.map +1 -1
- package/lib/helpers/index.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/set-blaze-debug.js.map +1 -1
- package/lib/helpers/static-route-handlers/generic-file-handler.js +2 -2
- package/lib/helpers/static-route-handlers/generic-file-handler.js.map +1 -1
- package/lib/helpers/static-route-handlers/index.js +2 -2
- package/lib/helpers/static-route-handlers/index.js.map +1 -1
- package/lib/helpers/static-route-handlers/robots-txt.js.map +1 -1
- package/lib/helpers/static-route-handlers/sitemap-file.js.map +1 -1
- package/lib/helpers/static-route-handlers/sitemap.js.map +1 -1
- package/lib/hoc/withBlaze.js +23 -24
- package/lib/hoc/withBlaze.js.map +1 -1
- package/lib/hooks/use-get-page.js.map +1 -1
- package/lib/index.js +3 -10
- package/lib/index.js.map +1 -1
- package/lib/pages/Resolver.js +3 -3
- package/lib/pages/Resolver.js.map +1 -1
- package/lib/pages/document/DocumentBody.js.map +1 -1
- package/lib/pages/document/_document.js +6 -8
- package/lib/pages/document/_document.js.map +1 -1
- package/lib/server/index.js +8 -7
- package/lib/server/index.js.map +1 -1
- package/lib/server/routes.js.map +1 -1
- package/lib-es/application/query/index.js.map +1 -1
- package/lib-es/blaze.config.js.map +1 -1
- package/lib-es/components/DebugSidebar/index.js.map +1 -1
- package/lib-es/components/index.js.map +1 -1
- package/lib-es/constants.js.map +1 -1
- package/lib-es/containers/ContentContainer.js.map +1 -1
- package/lib-es/containers/index.js.map +1 -1
- package/lib-es/helpers/build-admin-href.js.map +1 -1
- package/lib-es/helpers/check-for-gtm.js.map +1 -1
- package/lib-es/helpers/check-parent.js.map +1 -1
- package/lib-es/helpers/check-preview-url.js.map +1 -1
- package/lib-es/helpers/check-url.js +5 -2
- package/lib-es/helpers/check-url.js.map +1 -1
- package/lib-es/helpers/get-entitys-actions.js.map +1 -1
- package/lib-es/helpers/get-error-message.js.map +1 -1
- package/lib-es/helpers/get-page-data.js.map +1 -1
- package/lib-es/helpers/get-root-selector-classes.js.map +1 -1
- package/lib-es/helpers/get-search-filter.js.map +1 -1
- package/lib-es/helpers/handle-static-routes.js.map +1 -1
- package/lib-es/helpers/index.js.map +1 -1
- package/lib-es/helpers/render-apple-tags.js.map +1 -1
- package/lib-es/helpers/set-blaze-debug.js.map +1 -1
- package/lib-es/helpers/static-route-handlers/generic-file-handler.js.map +1 -1
- package/lib-es/helpers/static-route-handlers/index.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 +6 -6
- package/lib-es/hoc/withBlaze.js.map +1 -1
- package/lib-es/hooks/use-get-page.js.map +1 -1
- package/lib-es/index.js +1 -1
- package/lib-es/index.js.map +1 -1
- package/lib-es/pages/Resolver.js.map +1 -1
- package/lib-es/pages/document/DocumentBody.js.map +1 -1
- package/lib-es/pages/document/_document.js +2 -5
- package/lib-es/pages/document/_document.js.map +1 -1
- package/lib-es/server/index.js +5 -4
- package/lib-es/server/index.js.map +1 -1
- package/lib-es/server/routes.js.map +1 -1
- package/package.json +26 -26
- package/src/components/DebugSidebar/index.js +5 -8
- package/src/helpers/check-url.js +6 -4
- package/src/index.js +1 -1
- package/src/pages/Resolver.js +1 -1
- package/src/pages/document/_document.js +2 -1
- package/src/server/index.js +5 -4
- package/tests/helpers/tests/static-file-handler-tests.js +7 -11
- package/tests/unit/src/components/DebugSidebar/__snapshots__/DebugSidebar.test.js.snap +3 -0
- package/tests/unit/src/helpers/handle-static-routes.test.js +1 -1
- package/tests/unit/src/hoc/withBlaze.test.js +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,192 +3,30 @@
|
|
|
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-
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# [0.146.0-core-styles.42](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.41...v0.146.0-core-styles.42) (2025-01-06)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# [0.146.0-core-styles.41](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.40...v0.146.0-core-styles.41) (2024-12-16)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# [0.146.0-core-styles.40](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.39...v0.146.0-core-styles.40) (2024-12-13)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# [0.146.0-core-styles.38](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.37...v0.146.0-core-styles.38) (2024-11-20)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# [0.146.0-core-styles.37](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.36...v0.146.0-core-styles.37) (2024-11-12)
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# [0.146.0-core-styles.36](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.35...v0.146.0-core-styles.36) (2024-11-07)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
# [0.146.0-core-styles.35](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.34...v0.146.0-core-styles.35) (2024-11-06)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
65
|
-
|
|
66
|
-
|
|
6
|
+
# [0.146.0-node18.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18.0) (2025-03-12)
|
|
67
7
|
|
|
68
8
|
|
|
9
|
+
### Bug Fixes
|
|
69
10
|
|
|
70
|
-
|
|
11
|
+
* bumped apollo versions ([b371dc7](https://github.com/thebyte9/blaze/commit/b371dc7e7bbe814a0cc4d57af2b959ab5e1b1bfd))
|
|
12
|
+
* fixed breaking tests, updated next to 14 ([fecb0e1](https://github.com/thebyte9/blaze/commit/fecb0e1d822bd69ebbaa084072a219f0fddd23f1))
|
|
13
|
+
* fixed more tests ([46a2fb9](https://github.com/thebyte9/blaze/commit/46a2fb9467f9f3c9cf320c9caf36c66503cc1f49))
|
|
14
|
+
* fixed remaining failing tests ([8a5963f](https://github.com/thebyte9/blaze/commit/8a5963ff8a0bf615a2ced9fb77b8986a9b05d80c))
|
|
15
|
+
* lint errors for reegex ([daaf750](https://github.com/thebyte9/blaze/commit/daaf7506d22f9578072c71f5557d0b6bf6185018))
|
|
16
|
+
* linting fix for reading return values from promise executor functions ([7edb563](https://github.com/thebyte9/blaze/commit/7edb563a4cbfa37188f26c1ae709ffe8ed837d69))
|
|
17
|
+
* linting fixed automatically ([73135b9](https://github.com/thebyte9/blaze/commit/73135b9b8b0d5407e2e1dfba42ab2381f290607f))
|
|
18
|
+
* udpated yarn lock ([0cd4fa4](https://github.com/thebyte9/blaze/commit/0cd4fa4a185fca4b80b57e472badb771dd649ec2))
|
|
19
|
+
* updated with dev ([90f545f](https://github.com/thebyte9/blaze/commit/90f545f1beabb35e26ba6fb2b45a7a0dfd072927))
|
|
20
|
+
* updated with dev ([729bb6e](https://github.com/thebyte9/blaze/commit/729bb6ee7e87946081d51564a4ab45538f7be1e7))
|
|
21
|
+
* updated with latest ([21cde6f](https://github.com/thebyte9/blaze/commit/21cde6f157c9279ed1eccb326870547821bc3dde))
|
|
22
|
+
* wip ([a2b7b30](https://github.com/thebyte9/blaze/commit/a2b7b304f1871b372b3c8f105205ecc6e2ef8f01))
|
|
23
|
+
* wip ([48ea1ee](https://github.com/thebyte9/blaze/commit/48ea1ee2bff03b04bfeca7e1e2fe13bd7b316ad1))
|
|
71
24
|
|
|
72
25
|
|
|
73
26
|
### Features
|
|
74
27
|
|
|
75
28
|
* allow . (dot) character in route regex ([#4552](https://github.com/thebyte9/blaze/issues/4552)) ([9be0fe0](https://github.com/thebyte9/blaze/commit/9be0fe0dd0dac2e0891c2d965a20c6b2e02165cc))
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
# [0.146.0-core-styles.32](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.31...v0.146.0-core-styles.32) (2024-10-31)
|
|
82
|
-
|
|
83
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
# [0.146.0-core-styles.28](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.27...v0.146.0-core-styles.28) (2024-10-29)
|
|
90
|
-
|
|
91
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
# [0.146.0-core-styles.26](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.25...v0.146.0-core-styles.26) (2024-10-28)
|
|
98
|
-
|
|
99
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
# [0.146.0-core-styles.25](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.24...v0.146.0-core-styles.25) (2024-10-25)
|
|
106
|
-
|
|
107
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
# [0.146.0-core-styles.23](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.22...v0.146.0-core-styles.23) (2024-10-23)
|
|
114
|
-
|
|
115
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
# [0.146.0-core-styles.21](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.20...v0.146.0-core-styles.21) (2024-10-18)
|
|
122
|
-
|
|
123
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
# [0.146.0-core-styles.11](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.10...v0.146.0-core-styles.11) (2024-10-01)
|
|
130
|
-
|
|
131
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
# [0.146.0-core-styles.10](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.9...v0.146.0-core-styles.10) (2024-09-25)
|
|
138
|
-
|
|
139
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
# [0.146.0-core-styles.8](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.7...v0.146.0-core-styles.8) (2024-09-24)
|
|
146
|
-
|
|
147
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
# [0.146.0-core-styles.7](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.6...v0.146.0-core-styles.7) (2024-09-20)
|
|
154
|
-
|
|
155
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
# [0.146.0-core-styles.6](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.5...v0.146.0-core-styles.6) (2024-09-20)
|
|
162
|
-
|
|
163
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
# [0.146.0-core-styles.3](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.2...v0.146.0-core-styles.3) (2024-09-18)
|
|
170
|
-
|
|
171
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
# [0.146.0-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.145.1-core-styles.1...v0.146.0-core-styles.0) (2024-09-03)
|
|
178
|
-
|
|
179
|
-
**Note:** Version bump only for package @blaze-cms/nextjs-tools
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
## [0.145.1-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.145.1-core-styles.0) (2024-08-22)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### Bug Fixes
|
|
189
|
-
|
|
190
|
-
* adds default root selector to readme ([cfb5095](https://github.com/thebyte9/blaze/commit/cfb50956d95df485fe4486f632d32400b46806f7))
|
|
191
|
-
* fixes readme layout ([9dbdd8e](https://github.com/thebyte9/blaze/commit/9dbdd8ee96cb4a716e1e42c224939ac22ac6af0d))
|
|
29
|
+
* updated react to 18 ([9335f84](https://github.com/thebyte9/blaze/commit/9335f8432b376494501abb9c3deef1ddaa9b35a8))
|
|
192
30
|
|
|
193
31
|
|
|
194
32
|
|
package/README.md
CHANGED
|
@@ -84,15 +84,16 @@ If you want to make it stricter or more open you can override the default with t
|
|
|
84
84
|
## Environment variables
|
|
85
85
|
|
|
86
86
|
| Name | Description | Type | Default |
|
|
87
|
-
|
|
87
|
+
|---|---|---|
|
|
88
88
|
| BLAZE_FRONTEND_HOST | Frontend host (used to identify host) | String | |
|
|
89
|
-
| BLAZE_ROUTE_REGEX | Override default route regex |
|
|
89
|
+
| BLAZE_ROUTE_REGEX | Override default route regex | /^\/[a-z0-9€*\/]+(?:[-\/\.]{1,2}[a-z0-9\/€*\/]+)*$|^\/$/ |
|
|
90
90
|
| BLAZE_CACHE_CONTROL_HEADER | Cache-Control header to set on page requests | String | "" |
|
|
91
|
-
| BLAZE_STATIC_ROUTE_STORE_KEY | Override store for static file routes |
|
|
92
|
-
| BLAZE_ROUTE_PATTERN_SITEMAP | Override sitemap route |
|
|
91
|
+
| BLAZE_STATIC_ROUTE_STORE_KEY | Override store for static file routes | default |
|
|
92
|
+
| BLAZE_ROUTE_PATTERN_SITEMAP | Override sitemap route | /sitemap.xml |
|
|
93
93
|
| 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 | |
|
|
94
|
-
| BLAZE_ROOT_SELECTOR_CLASSES_LIMIT | The number of root-selector classes to display.
|
|
95
|
-
| 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. |
|
|
94
|
+
| BLAZE_ROOT_SELECTOR_CLASSES_LIMIT | The number of root-selector classes to display. 0 or unset will show noe | String | |
|
|
95
|
+
| 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 |
|
|
96
|
+
| 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 | |
|
|
96
97
|
| BLAZE_DISABLE_REDIRECT_WITH_QUERY | Do not add query string to redirects | String | |
|
|
97
98
|
|
|
98
99
|
## Events emitted
|
|
@@ -115,7 +116,7 @@ For more information about specific package events go to package README.
|
|
|
115
116
|
|
|
116
117
|
```sh
|
|
117
118
|
cd packages/frontend/
|
|
118
|
-
|
|
119
|
+
npm install tailwindcss@latest postcss@latest autoprefixer@latest --save
|
|
119
120
|
```
|
|
120
121
|
|
|
121
122
|
3. Add **tailwind.config.js** file in packages/frontend with following content
|
|
@@ -199,7 +200,7 @@ When checking new code or build configs make sure to check the [following things
|
|
|
199
200
|
|
|
200
201
|
## Root selector classes
|
|
201
202
|
|
|
202
|
-
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.
|
|
203
|
+
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.
|
|
203
204
|
|
|
204
205
|
For example the following url, `/parent/child/article-123` might be broken into the following classes
|
|
205
206
|
|
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="2"
|
|
7
7
|
BLAZE_CACHE_CONTROL_HEADER="max-age=0"
|
|
8
8
|
BLAZE_DISABLE_REDIRECT_WITH_QUERY=""
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_client","require","_templateObject","_templateObject2","_templateObject3","pageDataFields","checkUrlQuery","exports","gql","_taggedTemplateLiteral2","getPageQuery","_ref","_ref$actions","actions","_ref$actions2","get","getPublished","isPreview","getMethod","GET_ENTITY_SCHEMA"],"sources":["../../../src/application/query/index.js"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst pageDataFields = `\nid\nname\npreparedPageBuilderComponents\ncanonicalUrl\ncategory {\n id\n name\n}\ntags {\n id\n name\n}\nslug\nimage{\n id\n data\n url\n}\nformattedMetaTitle\nformattedMetaDescription\n__typename\ncacheControlMaxAge`;\n\nconst checkUrlQuery = gql`\n query checkUrl($url: String!) {\n checkUrl(url: $url) {\n itemId\n itemEntity\n urlTo,\n pageData: record {\n ...on ContentContentInterface {\n ${pageDataFields}\n }\n }\n }\n }\n`;\n\nconst getPageQuery = ({ actions: { get, getPublished } = {}, isPreview }) => {\n const getMethod = !isPreview && getPublished ? getPublished : get;\n\n return gql`\n query pageData($id: String!) {\n pageData: ${getMethod}(id: $id) {\n ${pageDataFields}\n url\n }\n }\n `;\n};\n\nconst GET_ENTITY_SCHEMA = gql`\n query getEntitySchema($id: String!) {\n entitySchema: getEntitySchema(id: $id) {\n id\n identifier\n actions\n }\n }\n`;\n\nexport { checkUrlQuery, getPageQuery, GET_ENTITY_SCHEMA };\n"],"mappings":";;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAqC,IAAAC,eAAA,EAAAC,gBAAA,EAAAC,gBAAA;AAErC,IAAMC,cAAc,sOAsBD;AAEnB,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,OAAGE,WAAG,EAAAN,eAAA,KAAAA,eAAA,OAAAO,uBAAA,sPAQbJ,cAAc,CAKzB;AAED,IAAMK,YAAY,GAAAH,OAAA,CAAAG,YAAA,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAA2D;EAAA,IAAAC,YAAA,GAAAD,IAAA,CAArDE,OAAO;IAAAC,aAAA,GAAAF,YAAA,cAA0B,CAAC,CAAC,GAAAA,YAAA;IAAxBG,GAAG,GAAAD,aAAA,CAAHC,GAAG;IAAEC,YAAY,GAAAF,aAAA,CAAZE,YAAY;IAASC,SAAS,GAAAN,IAAA,CAATM,SAAS;EACpE,IAAMC,SAAS,GAAG,CAACD,SAAS,IAAID,YAAY,GAAGA,YAAY,GAAGD,GAAG;EAEjE,WAAOP,WAAG,EAAAL,gBAAA,KAAAA,gBAAA,OAAAM,uBAAA,yIAEMS,SAAS,EACjBb,cAAc;AAKxB,CAAC;AAED,IAAMc,iBAAiB,GAAAZ,OAAA,CAAAY,iBAAA,OAAGX,WAAG,EAAAJ,gBAAA,KAAAA,gBAAA,OAAAK,uBAAA,oKAQ5B"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_client","require","_templateObject","_templateObject2","_templateObject3","pageDataFields","checkUrlQuery","exports","gql","_taggedTemplateLiteral2","getPageQuery","_ref","_ref$actions","actions","_ref$actions2","get","getPublished","isPreview","getMethod","GET_ENTITY_SCHEMA"],"sources":["../../../src/application/query/index.js"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst pageDataFields = `\nid\nname\npreparedPageBuilderComponents\ncanonicalUrl\ncategory {\n id\n name\n}\ntags {\n id\n name\n}\nslug\nimage{\n id\n data\n url\n}\nformattedMetaTitle\nformattedMetaDescription\n__typename\ncacheControlMaxAge`;\n\nconst checkUrlQuery = gql`\n query checkUrl($url: String!) {\n checkUrl(url: $url) {\n itemId\n itemEntity\n urlTo,\n pageData: record {\n ...on ContentContentInterface {\n ${pageDataFields}\n }\n }\n }\n }\n`;\n\nconst getPageQuery = ({ actions: { get, getPublished } = {}, isPreview }) => {\n const getMethod = !isPreview && getPublished ? getPublished : get;\n\n return gql`\n query pageData($id: String!) {\n pageData: ${getMethod}(id: $id) {\n ${pageDataFields}\n url\n }\n }\n `;\n};\n\nconst GET_ENTITY_SCHEMA = gql`\n query getEntitySchema($id: String!) {\n entitySchema: getEntitySchema(id: $id) {\n id\n identifier\n actions\n }\n }\n`;\n\nexport { checkUrlQuery, getPageQuery, GET_ENTITY_SCHEMA };\n"],"mappings":";;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAqC,IAAAC,eAAA,EAAAC,gBAAA,EAAAC,gBAAA;AAErC,IAAMC,cAAc,sOAsBD;AAEnB,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,OAAGE,WAAG,EAAAN,eAAA,KAAAA,eAAA,OAAAO,uBAAA,sPAQbJ,cAAc,CAKzB;AAED,IAAMK,YAAY,GAAAH,OAAA,CAAAG,YAAA,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAA2D;EAAA,IAAAC,YAAA,GAAAD,IAAA,CAArDE,OAAO;IAAAC,aAAA,GAAAF,YAAA,cAA0B,CAAC,CAAC,GAAAA,YAAA;IAAxBG,GAAG,GAAAD,aAAA,CAAHC,GAAG;IAAEC,YAAY,GAAAF,aAAA,CAAZE,YAAY;IAASC,SAAS,GAAAN,IAAA,CAATM,SAAS;EACpE,IAAMC,SAAS,GAAG,CAACD,SAAS,IAAID,YAAY,GAAGA,YAAY,GAAGD,GAAG;EAEjE,WAAOP,WAAG,EAAAL,gBAAA,KAAAA,gBAAA,OAAAM,uBAAA,yIAEMS,SAAS,EACjBb,cAAc;AAKxB,CAAC;AAED,IAAMc,iBAAiB,GAAAZ,OAAA,CAAAY,iBAAA,OAAGX,WAAG,EAAAJ,gBAAA,KAAAA,gBAAA,OAAAK,uBAAA,oKAQ5B","ignoreList":[]}
|
package/lib/blaze.config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blaze.config.js","names":["_pluginPageBuilderFe","_interopRequireDefault","require","_pluginGtmFe","_pluginGoogleMapsFe","_pluginPreviewFe","_pluginAuthFe","_pluginStructuredDataFe","plugins","Map","set","pageBuilder","gtm","googleMaps","previewFe","authFe","structuredDataFe","authenticatedBotHeaders","apollo","uri","process","env","BLAZE_GRAPHQL_URI","loadEntitiesInBrowser","_default","exports"],"sources":["../src/blaze.config.js"],"sourcesContent":["import pageBuilder from '@blaze-cms/plugin-page-builder-fe';\nimport gtm from '@blaze-cms/plugin-gtm-fe';\nimport googleMaps from '@blaze-cms/plugin-google-maps-fe';\nimport previewFe from '@blaze-cms/plugin-preview-fe';\nimport authFe from '@blaze-cms/plugin-auth-fe';\nimport structuredDataFe from '@blaze-cms/plugin-structured-data-fe';\n\nconst plugins = new Map();\n\nplugins.set(pageBuilder, {});\nplugins.set(gtm, {});\nplugins.set(googleMaps, {});\nplugins.set(previewFe, {});\nplugins.set(authFe, {});\nplugins.set(structuredDataFe, {\n authenticatedBotHeaders: ['x-amzn-waf-googlebot']\n});\n\nconst apollo = {\n uri: process.env.BLAZE_GRAPHQL_URI,\n loadEntitiesInBrowser: false\n};\n\nexport default { plugins, apollo };\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,mBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,gBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,uBAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAMM,OAAO,GAAG,IAAIC,GAAG,CAAC,CAAC;AAEzBD,OAAO,CAACE,GAAG,CAACC,+BAAW,EAAE,CAAC,CAAC,CAAC;AAC5BH,OAAO,CAACE,GAAG,CAACE,uBAAG,EAAE,CAAC,CAAC,CAAC;AACpBJ,OAAO,CAACE,GAAG,CAACG,8BAAU,EAAE,CAAC,CAAC,CAAC;AAC3BL,OAAO,CAACE,GAAG,CAACI,2BAAS,EAAE,CAAC,CAAC,CAAC;AAC1BN,OAAO,CAACE,GAAG,CAACK,wBAAM,EAAE,CAAC,CAAC,CAAC;AACvBP,OAAO,CAACE,GAAG,CAACM,kCAAgB,EAAE;EAC5BC,uBAAuB,EAAE,CAAC,sBAAsB;AAClD,CAAC,CAAC;AAEF,IAAMC,MAAM,GAAG;EACbC,GAAG,EAAEC,OAAO,CAACC,GAAG,CAACC,iBAAiB;EAClCC,qBAAqB,EAAE;AACzB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa;EAAEjB,OAAO,EAAPA,OAAO;EAAEU,MAAM,EAANA;AAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"blaze.config.js","names":["_pluginPageBuilderFe","_interopRequireDefault","require","_pluginGtmFe","_pluginGoogleMapsFe","_pluginPreviewFe","_pluginAuthFe","_pluginStructuredDataFe","plugins","Map","set","pageBuilder","gtm","googleMaps","previewFe","authFe","structuredDataFe","authenticatedBotHeaders","apollo","uri","process","env","BLAZE_GRAPHQL_URI","loadEntitiesInBrowser","_default","exports"],"sources":["../src/blaze.config.js"],"sourcesContent":["import pageBuilder from '@blaze-cms/plugin-page-builder-fe';\nimport gtm from '@blaze-cms/plugin-gtm-fe';\nimport googleMaps from '@blaze-cms/plugin-google-maps-fe';\nimport previewFe from '@blaze-cms/plugin-preview-fe';\nimport authFe from '@blaze-cms/plugin-auth-fe';\nimport structuredDataFe from '@blaze-cms/plugin-structured-data-fe';\n\nconst plugins = new Map();\n\nplugins.set(pageBuilder, {});\nplugins.set(gtm, {});\nplugins.set(googleMaps, {});\nplugins.set(previewFe, {});\nplugins.set(authFe, {});\nplugins.set(structuredDataFe, {\n authenticatedBotHeaders: ['x-amzn-waf-googlebot']\n});\n\nconst apollo = {\n uri: process.env.BLAZE_GRAPHQL_URI,\n loadEntitiesInBrowser: false\n};\n\nexport default { plugins, apollo };\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,mBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,gBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,uBAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAMM,OAAO,GAAG,IAAIC,GAAG,CAAC,CAAC;AAEzBD,OAAO,CAACE,GAAG,CAACC,+BAAW,EAAE,CAAC,CAAC,CAAC;AAC5BH,OAAO,CAACE,GAAG,CAACE,uBAAG,EAAE,CAAC,CAAC,CAAC;AACpBJ,OAAO,CAACE,GAAG,CAACG,8BAAU,EAAE,CAAC,CAAC,CAAC;AAC3BL,OAAO,CAACE,GAAG,CAACI,2BAAS,EAAE,CAAC,CAAC,CAAC;AAC1BN,OAAO,CAACE,GAAG,CAACK,wBAAM,EAAE,CAAC,CAAC,CAAC;AACvBP,OAAO,CAACE,GAAG,CAACM,kCAAgB,EAAE;EAC5BC,uBAAuB,EAAE,CAAC,sBAAsB;AAClD,CAAC,CAAC;AAEF,IAAMC,MAAM,GAAG;EACbC,GAAG,EAAEC,OAAO,CAACC,GAAG,CAACC,iBAAiB;EAClCC,qBAAqB,EAAE;AACzB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa;EAAEjB,OAAO,EAAPA,OAAO;EAAEU,MAAM,EAANA;AAAO,CAAC","ignoreList":[]}
|
|
@@ -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", {
|
|
@@ -22,7 +22,7 @@ var _md = require("react-icons/md");
|
|
|
22
22
|
var _helpers = require("../../helpers");
|
|
23
23
|
var _constants = require("../../constants");
|
|
24
24
|
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); }
|
|
25
|
-
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 &&
|
|
25
|
+
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; }
|
|
26
26
|
var DebugSidebar = function DebugSidebar(_ref) {
|
|
27
27
|
var itemEntity = _ref.itemEntity,
|
|
28
28
|
itemId = _ref.itemId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_nextjsComponents","_md","_helpers","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_nextjsComponents","_md","_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","debugMode","_useState","useState","_useState2","_slicedToArray2","isDebugMode","setIsDebugMode","_useState3","_useState4","isOpen","setIsOpen","useEffect","setBlazeDebug","divClass","classnames","href","buildAdminHref","createElement","Fragment","className","Link","src","DEBUG_LOGO","SRC","alt","ALT","role","id","onClick","MdKeyboardArrowLeft","propTypes","PropTypes","string","bool","defaultProps","_default","exports"],"sources":["../../../src/components/DebugSidebar/index.js"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport { MdKeyboardArrowLeft } from 'react-icons/md';\nimport { buildAdminHref, setBlazeDebug } from '../../helpers';\nimport { DEBUG_LOGO } from '../../constants';\n\nconst DebugSidebar = ({ itemEntity, itemId, debugMode }) => {\n const [isDebugMode, setIsDebugMode] = useState(debugMode);\n const [isOpen, setIsOpen] = useState(true);\n\n useEffect(() => {\n if (debugMode === true) {\n setIsDebugMode(debugMode);\n } else setBlazeDebug(setIsDebugMode);\n }, [debugMode]);\n\n const divClass = classnames('debug-sidebar', {\n 'debug-sidebar--open': isOpen,\n 'debug-sidebar--close': !isOpen\n });\n\n const href = buildAdminHref({ itemEntity, itemId });\n\n return (\n <>\n {isDebugMode ? (\n <div className={divClass} data-testid=\"debug-sidebar\">\n <Link href={href}>\n <img src={DEBUG_LOGO.SRC} alt={DEBUG_LOGO.ALT} />\n <span>Blaze admin</span>\n </Link>\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 ) : null}\n </>\n );\n};\n\nDebugSidebar.propTypes = {\n itemEntity: PropTypes.string,\n itemId: PropTypes.string,\n debugMode: PropTypes.bool\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,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,GAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAA6C,SAAAQ,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,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA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C,qBAAS,CAACC,MAAM;EAC5BjC,MAAM,EAAEgC,qBAAS,CAACC,MAAM;EACxBhC,SAAS,EAAE+B,qBAAS,CAACE;AACvB,CAAC;AAEDrC,YAAY,CAACsC,YAAY,GAAG;EAC1BpC,UAAU,EAAE,EAAE;EACdC,MAAM,EAAE,EAAE;EACVC,SAAS,EAAE;AACb,CAAC;AAAC,IAAAmC,QAAA,GAAAC,OAAA,cAEaxC,YAAY","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_DebugSidebar","_interopRequireDefault","require"],"sources":["../../src/components/index.js"],"sourcesContent":["import DebugSidebar from './DebugSidebar';\n\nexport { DebugSidebar };\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_DebugSidebar","_interopRequireDefault","require"],"sources":["../../src/components/index.js"],"sourcesContent":["import DebugSidebar from './DebugSidebar';\n\nexport { DebugSidebar };\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA","ignoreList":[]}
|
package/lib/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["ACTIVE_META_TAGS","BLAZE_X_FRAME_OPTIONS_DEFAULT","META_TAGS_LOOKUP","description","apiKey","htmlTagName","tagKeyName","contentDataKeyName","canonical","PB_TYPE_IMAGE","PB_TYPE_TEXTBLOCK","PB_TYPE_CAROUSEL","SEARCH_FILTER","COLON","DOUBLE_SLASH","HTTPS","DEFAULT_ROUTE_REGEX","ROUTE_REGEX","process","env","BLAZE_ROUTE_REGEX","RegExp","PREVIEW_REGEX","PREVIEW_MODE","GTM_STRING","DEBUG_LOGO","SRC","ALT","PUBLISHED_","RESPONSE_404","SITEMAP_STORE_KEY","ROUTE_PATTERN_SITEMAP","BLAZE_ROUTE_PATTERN_SITEMAP","sitemapFilePrefix","BLAZE_CONTENT_SITEMAP_URL_PREFIX","ROUTE_PATTERN_SITEMAP_FILE_REGEX","concat","ROUTE_PATTERN_ROBOTS_TXT","BLAZE_STATIC_ROUTE_STORE_KEY","STATIC_FILE_FORWARD_HEADERS","APPLE_TAGS","href","rel","sizes","NOT_FOUND_STATUS_CODE","ROOT_SELECTOR_CLASS_PREFIX","ROOT_SELECTOR_SEPARATOR","RESOLVER_CONTAINER_CLASS","module","exports"],"sources":["../src/constants.js"],"sourcesContent":["const ACTIVE_META_TAGS = ['description', 'canonical'];\nconst BLAZE_X_FRAME_OPTIONS_DEFAULT = 'SAMEORIGIN';\n\nconst META_TAGS_LOOKUP = {\n description: {\n apiKey: 'metaDescription',\n htmlTagName: 'meta',\n tagKeyName: 'name',\n contentDataKeyName: 'content'\n },\n canonical: {\n apiKey: 'canonicalUrl',\n htmlTagName: 'link',\n tagKeyName: 'rel',\n contentDataKeyName: 'href'\n }\n};\n\nconst PB_TYPE_IMAGE = 'image';\nconst PB_TYPE_TEXTBLOCK = 'textblock';\nconst PB_TYPE_CAROUSEL = 'carousel';\nconst SEARCH_FILTER = 'searchfilter';\nconst COLON = ':';\nconst DOUBLE_SLASH = '//';\nconst HTTPS = 'https://';\n\nconst DEFAULT_ROUTE_REGEX = /^\\/[a-z0-9€_\\/]+(?:[-\\/\\.]{1,2}[a-z0-9\\/€_\\/]+)*$|^\\/$/i;\nconst ROUTE_REGEX = process.env.BLAZE_ROUTE_REGEX\n ? new RegExp(process.env.BLAZE_ROUTE_REGEX)\n : DEFAULT_ROUTE_REGEX;\nconst PREVIEW_REGEX = /^(\\/_preview)/;\nconst PREVIEW_MODE = 'Preview Mode';\nconst GTM_STRING = 'gtm';\n\nconst DEBUG_LOGO = {\n SRC: 'https://images.thisisblaze.com/logo-small-27-40.png',\n ALT: 'blaze-logo'\n};\n\nconst PUBLISHED_ = 'published_';\n\nconst RESPONSE_404 = '404 Not Found\\n';\n\nconst SITEMAP_STORE_KEY = 'default_sitemap';\nconst ROUTE_PATTERN_SITEMAP = process.env.BLAZE_ROUTE_PATTERN_SITEMAP || '/sitemap.xml';\nconst sitemapFilePrefix = process.env.BLAZE_CONTENT_SITEMAP_URL_PREFIX || 'sitemap';\nconst ROUTE_PATTERN_SITEMAP_FILE_REGEX = new RegExp(`/${sitemapFilePrefix}/.*\\.xml`);\nconst ROUTE_PATTERN_ROBOTS_TXT = '/robots.txt';\nconst BLAZE_STATIC_ROUTE_STORE_KEY = 'default';\n\nconst STATIC_FILE_FORWARD_HEADERS = ['content-length', 'last-modified', 'etag'];\n\nconst APPLE_TAGS = [\n { href: '/static/icons/touch-icon-iphone.png', rel: 'apple-touch-icon' },\n { href: '/static/icons/touch-icon-ipad.png', rel: 'apple-touch-icon', sizes: '152x152' },\n { href: '/static/icons/touch-icon-iphone-retina.png', rel: 'apple-touch-icon', sizes: '180x180' },\n { href: '/static/icons/touch-icon-ipad-retina.png', rel: 'apple-touch-icon', sizes: '167x167' }\n];\n\nconst NOT_FOUND_STATUS_CODE = 404;\n\nconst ROOT_SELECTOR_CLASS_PREFIX = 'root-selector';\nconst ROOT_SELECTOR_SEPARATOR = '--';\nconst RESOLVER_CONTAINER_CLASS = 'resolver-container';\n\nmodule.exports = {\n APPLE_TAGS,\n ACTIVE_META_TAGS,\n COLON,\n DOUBLE_SLASH,\n GTM_STRING,\n HTTPS,\n META_TAGS_LOOKUP,\n SEARCH_FILTER,\n PB_TYPE_IMAGE,\n PB_TYPE_TEXTBLOCK,\n PB_TYPE_CAROUSEL,\n PREVIEW_MODE,\n ROUTE_REGEX,\n PREVIEW_REGEX,\n DEBUG_LOGO,\n PUBLISHED_,\n RESPONSE_404,\n NOT_FOUND_STATUS_CODE,\n SITEMAP_STORE_KEY,\n ROUTE_PATTERN_SITEMAP,\n ROUTE_PATTERN_SITEMAP_FILE_REGEX,\n ROUTE_PATTERN_ROBOTS_TXT,\n BLAZE_STATIC_ROUTE_STORE_KEY,\n STATIC_FILE_FORWARD_HEADER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WAAW;EACXK,aAAa,EAAbA,aAAa;EACbG,UAAU,EAAVA,UAAU;EACVG,UAAU,EAAVA,UAAU;EACVC,YAAY,EAAZA,YAAY;EACZe,qBAAqB,EAArBA,qBAAqB;EACrBd,iBAAiB,EAAjBA,iBAAiB;EACjBC,qBAAqB,EAArBA,qBAAqB;EACrBI,gCAAgC,EAAhCA,gCAAgC;EAChCE,wBAAwB,EAAxBA,wBAAwB;EACxBC,4BAA4B,EAA5BA,4BAA4B;EAC5BC,2BAA2B,EAA3BA,2BAA2B;EAC3BM,0BAA0B,EAA1BA,0BAA0B;EAC1BC,uBAAuB,EAAvBA,uBAAuB;EACvBC,wBAAwB,EAAxBA,wBAAwB;EACxB9C,6BAA6B,EAA7BA;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","names":["ACTIVE_META_TAGS","BLAZE_X_FRAME_OPTIONS_DEFAULT","META_TAGS_LOOKUP","description","apiKey","htmlTagName","tagKeyName","contentDataKeyName","canonical","PB_TYPE_IMAGE","PB_TYPE_TEXTBLOCK","PB_TYPE_CAROUSEL","SEARCH_FILTER","COLON","DOUBLE_SLASH","HTTPS","DEFAULT_ROUTE_REGEX","ROUTE_REGEX","process","env","BLAZE_ROUTE_REGEX","RegExp","PREVIEW_REGEX","PREVIEW_MODE","GTM_STRING","DEBUG_LOGO","SRC","ALT","PUBLISHED_","RESPONSE_404","SITEMAP_STORE_KEY","ROUTE_PATTERN_SITEMAP","BLAZE_ROUTE_PATTERN_SITEMAP","sitemapFilePrefix","BLAZE_CONTENT_SITEMAP_URL_PREFIX","ROUTE_PATTERN_SITEMAP_FILE_REGEX","concat","ROUTE_PATTERN_ROBOTS_TXT","BLAZE_STATIC_ROUTE_STORE_KEY","STATIC_FILE_FORWARD_HEADERS","APPLE_TAGS","href","rel","sizes","NOT_FOUND_STATUS_CODE","ROOT_SELECTOR_CLASS_PREFIX","ROOT_SELECTOR_SEPARATOR","RESOLVER_CONTAINER_CLASS","module","exports"],"sources":["../src/constants.js"],"sourcesContent":["const ACTIVE_META_TAGS = ['description', 'canonical'];\nconst BLAZE_X_FRAME_OPTIONS_DEFAULT = 'SAMEORIGIN';\n\nconst META_TAGS_LOOKUP = {\n description: {\n apiKey: 'metaDescription',\n htmlTagName: 'meta',\n tagKeyName: 'name',\n contentDataKeyName: 'content'\n },\n canonical: {\n apiKey: 'canonicalUrl',\n htmlTagName: 'link',\n tagKeyName: 'rel',\n contentDataKeyName: 'href'\n }\n};\n\nconst PB_TYPE_IMAGE = 'image';\nconst PB_TYPE_TEXTBLOCK = 'textblock';\nconst PB_TYPE_CAROUSEL = 'carousel';\nconst SEARCH_FILTER = 'searchfilter';\nconst COLON = ':';\nconst DOUBLE_SLASH = '//';\nconst HTTPS = 'https://';\n\nconst DEFAULT_ROUTE_REGEX = /^\\/[a-z0-9€_\\/]+(?:[-\\/\\.]{1,2}[a-z0-9\\/€_\\/]+)*$|^\\/$/i;\nconst ROUTE_REGEX = process.env.BLAZE_ROUTE_REGEX\n ? new RegExp(process.env.BLAZE_ROUTE_REGEX)\n : DEFAULT_ROUTE_REGEX;\nconst PREVIEW_REGEX = /^(\\/_preview)/;\nconst PREVIEW_MODE = 'Preview Mode';\nconst GTM_STRING = 'gtm';\n\nconst DEBUG_LOGO = {\n SRC: 'https://images.thisisblaze.com/logo-small-27-40.png',\n ALT: 'blaze-logo'\n};\n\nconst PUBLISHED_ = 'published_';\n\nconst RESPONSE_404 = '404 Not Found\\n';\n\nconst SITEMAP_STORE_KEY = 'default_sitemap';\nconst ROUTE_PATTERN_SITEMAP = process.env.BLAZE_ROUTE_PATTERN_SITEMAP || '/sitemap.xml';\nconst sitemapFilePrefix = process.env.BLAZE_CONTENT_SITEMAP_URL_PREFIX || 'sitemap';\nconst ROUTE_PATTERN_SITEMAP_FILE_REGEX = new RegExp(`/${sitemapFilePrefix}/.*\\.xml`);\nconst ROUTE_PATTERN_ROBOTS_TXT = '/robots.txt';\nconst BLAZE_STATIC_ROUTE_STORE_KEY = 'default';\n\nconst STATIC_FILE_FORWARD_HEADERS = ['content-length', 'last-modified', 'etag'];\n\nconst APPLE_TAGS = [\n { href: '/static/icons/touch-icon-iphone.png', rel: 'apple-touch-icon' },\n { href: '/static/icons/touch-icon-ipad.png', rel: 'apple-touch-icon', sizes: '152x152' },\n { href: '/static/icons/touch-icon-iphone-retina.png', rel: 'apple-touch-icon', sizes: '180x180' },\n { href: '/static/icons/touch-icon-ipad-retina.png', rel: 'apple-touch-icon', sizes: '167x167' }\n];\n\nconst NOT_FOUND_STATUS_CODE = 404;\n\nconst ROOT_SELECTOR_CLASS_PREFIX = 'root-selector';\nconst ROOT_SELECTOR_SEPARATOR = '--';\nconst RESOLVER_CONTAINER_CLASS = 'resolver-container';\n\nmodule.exports = {\n APPLE_TAGS,\n ACTIVE_META_TAGS,\n COLON,\n DOUBLE_SLASH,\n GTM_STRING,\n HTTPS,\n META_TAGS_LOOKUP,\n SEARCH_FILTER,\n PB_TYPE_IMAGE,\n PB_TYPE_TEXTBLOCK,\n PB_TYPE_CAROUSEL,\n PREVIEW_MODE,\n ROUTE_REGEX,\n PREVIEW_REGEX,\n DEBUG_LOGO,\n PUBLISHED_,\n RESPONSE_404,\n NOT_FOUND_STATUS_CODE,\n SITEMAP_STORE_KEY,\n ROUTE_PATTERN_SITEMAP,\n ROUTE_PATTERN_SITEMAP_FILE_REGEX,\n ROUTE_PATTERN_ROBOTS_TXT,\n BLAZE_STATIC_ROUTE_STORE_KEY,\n STATIC_FILE_FORWARD_HEADERS,\n ROOT_SELECTOR_CLASS_PREFIX,\n ROOT_SELECTOR_SEPARATOR,\n RESOLVER_CONTAINER_CLASS,\n BLAZE_X_FRAME_OPTIONS_DEFAULT\n};\n"],"mappings":";;;;;AAAA,IAAMA,gBAAgB,GAAG,CAAC,aAAa,EAAE,WAAW,CAAC;AACrD,IAAMC,6BAA6B,GAAG,YAAY;AAElD,IAAMC,gBAAgB,GAAG;EACvBC,WAAW,EAAE;IACXC,MAAM,EAAE,iBAAi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C5BC,2BAA2B,EAA3BA,2BAA2B;EAC3BM,0BAA0B,EAA1BA,0BAA0B;EAC1BC,uBAAuB,EAAvBA,uBAAuB;EACvBC,wBAAwB,EAAxBA,wBAAwB;EACxB9C,6BAA6B,EAA7BA;AACF,CAAC","ignoreList":[]}
|
|
@@ -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/
|
|
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.
|
|
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");
|
|
@@ -31,7 +31,7 @@ var _helpers = require("../helpers");
|
|
|
31
31
|
var _constants = require("../constants");
|
|
32
32
|
var _excluded = ["category", "tags", "preparedPageBuilderComponents"];
|
|
33
33
|
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); }
|
|
34
|
-
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 &&
|
|
34
|
+
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; }
|
|
35
35
|
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; }
|
|
36
36
|
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; }
|
|
37
37
|
var ContentContainer = function ContentContainer(_ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentContainer.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_pluginPageBuilderFe","_nextjsComponents","_helpers","_constants","_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","_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","_useState4","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","createElement","MainContextProvider","value","Header","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';\n\nconst ContentContainer = ({ fullUrl, pageData, isPreview, itemId, itemEntity }) => {\n const [open, setOpen] = useState(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 const buildPBComponentsOptions = {\n ...options,\n ...metaProps,\n ...GlobalLigthBoxProps,\n hasGTM\n };\n\n return (\n <MainContextProvider value={{ fullUrl, isPreview, itemId, hasGTM }}>\n <Header {...metaProps} />\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;AAA4C,IAAAO,SAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAA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AW,EAAXA,WAAW;IACXF,aAAa,EAAbA,aAAa;IACbmB,cAAc,EAAdA,cAAc;IACdlB,gBAAgB,EAAhBA;EACF,CAAC;EACD,IAAMuB,wBAAwB,GAAA9C,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,KACzBgC,OAAO,GACPH,SAAS,GACTgB,mBAAmB;IACtBF,MAAM,EAANA;EAAM,EACP;EAED,oBACEjF,MAAA,YAAAqF,aAAA,CAAC/E,iBAAA,CAAAgF,mBAAmB;IAACC,KAAK,EAAE;MAAExC,OAAO,EAAPA,OAAO;MAAEE,SAAS,EAATA,SAAS;MAAEC,MAAM,EAANA,MAAM;MAAE+B,MAAM,EAANA;IAAO;EAAE,gBACjEjF,MAAA,YAAAqF,aAAA,CAAC/E,iBAAA,CAAAkF,MAAM,EAAKrB,SAAY,CAAC,EACxBlB,SAAS,iBAAIjD,MAAA,YAAAqF,aAAA;IAAKI,SAAS,EAAC;EAAgB,GAAEC,uBAAkB,CAAC,EACjE,CAAC,CAACrB,WAAW,CAAC7B,MAAM,IAAI,IAAAmD,sCAAiB,EAACtB,WAAW,EAAEe,wBAAwB,EAAE,IAAI,CACnE,CAAC;AAE1B,CAAC;AAEDvC,gBAAgB,CAAC+C,SAAS,GAAG;EAC3B7C,OAAO,EAAE8C,qBAAS,CAACC,MAAM,CAACC,UAAU;EACpC/C,QAAQ,EAAE6C,qBAAS,CAACG,MAAM,CAACD,UAAU;EACrC9C,SAAS,EAAE4C,qBAAS,CAACI,IAAI,CAACF,UAAU;EACpC7C,MAAM,EAAE2C,qBAAS,CAACC,MAAM,CAACC,UAAU;EACnC5C,UAAU,EAAE0C,qBAAS,CAACC,MAAM,CAACC;AAC/B,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEatD,gBAAgB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_ContentContainer","_interopRequireDefault","require"],"sources":["../../src/containers/index.js"],"sourcesContent":["import ContentContainer from './ContentContainer';\n\nexport { ContentContainer };\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_ContentContainer","_interopRequireDefault","require"],"sources":["../../src/containers/index.js"],"sourcesContent":["import ContentContainer from './ContentContainer';\n\nexport { ContentContainer };\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA","ignoreList":[]}
|
|
@@ -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,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-admin-href.js","names":["_constants","require","buildAdminHref","_ref","itemEntity","itemId","process","env","BLAZE_ADMIN_URL","updatedItemEntity","replace","PUBLISHED_","concat","_default","exports"],"sources":["../../src/helpers/build-admin-href.js"],"sourcesContent":["import { PUBLISHED_ } from '../constants';\n\nconst buildAdminHref = ({ itemEntity, itemId }) => {\n if (!itemEntity || !itemId || !process.env.BLAZE_ADMIN_URL) return '/';\n\n const updatedItemEntity = itemEntity.replace(PUBLISHED_, '');\n\n return `${process.env.BLAZE_ADMIN_URL}/data-listing/${updatedItemEntity}/update/${itemId}`;\n};\n\nexport default buildAdminHref;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAA+B;EAAA,IAAzBC,UAAU,GAAAD,IAAA,CAAVC,UAAU;IAAEC,MAAM,GAAAF,IAAA,CAANE,MAAM;EAC1C,IAAI,CAACD,UAAU,IAAI,CAACC,MAAM,IAAI,CAACC,OAAO,CAACC,GAAG,CAACC,eAAe,EAAE,OAAO,GAAG;EAEtE,IAAMC,iBAAiB,GAAGL,UAAU,CAACM,OAAO,CAACC,qBAAU,EAAE,EAAE,CAAC;EAE5D,UAAAC,MAAA,CAAUN,OAAO,CAACC,GAAG,CAACC,eAAe,oBAAAI,MAAA,CAAiBH,iBAAiB,cAAAG,MAAA,CAAWP,MAAM;AAC1F,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEaZ,cAAc"}
|
|
1
|
+
{"version":3,"file":"build-admin-href.js","names":["_constants","require","buildAdminHref","_ref","itemEntity","itemId","process","env","BLAZE_ADMIN_URL","updatedItemEntity","replace","PUBLISHED_","concat","_default","exports"],"sources":["../../src/helpers/build-admin-href.js"],"sourcesContent":["import { PUBLISHED_ } from '../constants';\n\nconst buildAdminHref = ({ itemEntity, itemId }) => {\n if (!itemEntity || !itemId || !process.env.BLAZE_ADMIN_URL) return '/';\n\n const updatedItemEntity = itemEntity.replace(PUBLISHED_, '');\n\n return `${process.env.BLAZE_ADMIN_URL}/data-listing/${updatedItemEntity}/update/${itemId}`;\n};\n\nexport default buildAdminHref;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAA+B;EAAA,IAAzBC,UAAU,GAAAD,IAAA,CAAVC,UAAU;IAAEC,MAAM,GAAAF,IAAA,CAANE,MAAM;EAC1C,IAAI,CAACD,UAAU,IAAI,CAACC,MAAM,IAAI,CAACC,OAAO,CAACC,GAAG,CAACC,eAAe,EAAE,OAAO,GAAG;EAEtE,IAAMC,iBAAiB,GAAGL,UAAU,CAACM,OAAO,CAACC,qBAAU,EAAE,EAAE,CAAC;EAE5D,UAAAC,MAAA,CAAUN,OAAO,CAACC,GAAG,CAACC,eAAe,oBAAAI,MAAA,CAAiBH,iBAAiB,cAAAG,MAAA,CAAWP,MAAM;AAC1F,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEaZ,cAAc","ignoreList":[]}
|
|
@@ -6,19 +6,19 @@ 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
|
-
var
|
|
13
|
+
var _checkForGTM = function checkForGTM() {
|
|
14
14
|
var components = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
15
15
|
return !!components.find(function (_ref) {
|
|
16
16
|
var type = _ref.type,
|
|
17
17
|
items = _ref.items;
|
|
18
18
|
if (type && type.includes(_constants.GTM_STRING)) return true;
|
|
19
|
-
if (items && items.length) return
|
|
19
|
+
if (items && items.length) return _checkForGTM(items);
|
|
20
20
|
return false;
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
var _default = exports["default"] =
|
|
23
|
+
var _default = exports["default"] = _checkForGTM;
|
|
24
24
|
//# sourceMappingURL=check-for-gtm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-for-gtm.js","names":["_constants","require","checkForGTM","components","arguments","length","undefined","find","_ref","type","items","includes","GTM_STRING","_default","exports"],"sources":["../../src/helpers/check-for-gtm.js"],"sourcesContent":["import { GTM_STRING } from '../constants';\n\nconst checkForGTM = (components = []) =>\n !!components.find(({ type, items }) => {\n if (type && type.includes(GTM_STRING)) return true;\n if (items && items.length) return checkForGTM(items);\n return false;\n });\n\nexport default checkForGTM;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,
|
|
1
|
+
{"version":3,"file":"check-for-gtm.js","names":["_constants","require","checkForGTM","components","arguments","length","undefined","find","_ref","type","items","includes","GTM_STRING","_default","exports"],"sources":["../../src/helpers/check-for-gtm.js"],"sourcesContent":["import { GTM_STRING } from '../constants';\n\nconst checkForGTM = (components = []) =>\n !!components.find(({ type, items }) => {\n if (type && type.includes(GTM_STRING)) return true;\n if (items && items.length) return checkForGTM(items);\n return false;\n });\n\nexport default checkForGTM;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,YAAW,GAAG,SAAdA,WAAWA,CAAA;EAAA,IAAIC,UAAU,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,OAClC,CAAC,CAACD,UAAU,CAACI,IAAI,CAAC,UAAAC,IAAA,EAAqB;IAAA,IAAlBC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAC9B,IAAID,IAAI,IAAIA,IAAI,CAACE,QAAQ,CAACC,qBAAU,CAAC,EAAE,OAAO,IAAI;IAClD,IAAIF,KAAK,IAAIA,KAAK,CAACL,MAAM,EAAE,OAAOH,YAAW,CAACQ,KAAK,CAAC;IACpD,OAAO,KAAK;EACd,CAAC,CAAC;AAAA;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEUZ,YAAW","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-parent.js","names":["checkParent","url","parentPATH","substring","lastIndexOf","length","_default","exports"],"sources":["../../src/helpers/check-parent.js"],"sourcesContent":["function checkParent(url) {\n if (!url) return null;\n const parentPATH = url.substring(0, url.lastIndexOf('/'));\n if (parentPATH && parentPATH.length) return parentPATH;\n return null;\n}\n\nexport default checkParent;\n"],"mappings":";;;;;;;;AAAA,SAASA,WAAWA,CAACC,GAAG,EAAE;EACxB,IAAI,CAACA,GAAG,EAAE,OAAO,IAAI;EACrB,IAAMC,UAAU,GAAGD,GAAG,CAACE,SAAS,CAAC,CAAC,EAAEF,GAAG,CAACG,WAAW,CAAC,GAAG,CAAC,CAAC;EACzD,IAAIF,UAAU,IAAIA,UAAU,CAACG,MAAM,EAAE,OAAOH,UAAU;EACtD,OAAO,IAAI;AACb;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEcP,WAAW"}
|
|
1
|
+
{"version":3,"file":"check-parent.js","names":["checkParent","url","parentPATH","substring","lastIndexOf","length","_default","exports"],"sources":["../../src/helpers/check-parent.js"],"sourcesContent":["function checkParent(url) {\n if (!url) return null;\n const parentPATH = url.substring(0, url.lastIndexOf('/'));\n if (parentPATH && parentPATH.length) return parentPATH;\n return null;\n}\n\nexport default checkParent;\n"],"mappings":";;;;;;;;AAAA,SAASA,WAAWA,CAACC,GAAG,EAAE;EACxB,IAAI,CAACA,GAAG,EAAE,OAAO,IAAI;EACrB,IAAMC,UAAU,GAAGD,GAAG,CAACE,SAAS,CAAC,CAAC,EAAEF,GAAG,CAACG,WAAW,CAAC,GAAG,CAAC,CAAC;EACzD,IAAIF,UAAU,IAAIA,UAAU,CAACG,MAAM,EAAE,OAAOH,UAAU;EACtD,OAAO,IAAI;AACb;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEcP,WAAW","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-preview-url.js","names":["_constants","require","checkPreviewUrl","url","query","process","env","BLAZE_DISABLE_PREVIEW","isPreview","match","PREVIEW_REGEX","_default","exports"],"sources":["../../src/helpers/check-preview-url.js"],"sourcesContent":["import { PREVIEW_REGEX } from '../constants';\n\nfunction checkPreviewUrl(url, query) {\n if (process.env.BLAZE_DISABLE_PREVIEW) return null;\n const isPreview = url.match(PREVIEW_REGEX);\n if (!isPreview || !query) return null;\n\n return query;\n}\n\nexport default checkPreviewUrl;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,eAAeA,CAACC,GAAG,EAAEC,KAAK,EAAE;EACnC,IAAIC,OAAO,CAACC,GAAG,CAACC,qBAAqB,EAAE,OAAO,IAAI;EAClD,IAAMC,SAAS,GAAGL,GAAG,CAACM,KAAK,CAACC,wBAAa,CAAC;EAC1C,IAAI,CAACF,SAAS,IAAI,CAACJ,KAAK,EAAE,OAAO,IAAI;EAErC,OAAOA,KAAK;AACd;AAAC,IAAAO,QAAA,GAAAC,OAAA,cAEcV,eAAe"}
|
|
1
|
+
{"version":3,"file":"check-preview-url.js","names":["_constants","require","checkPreviewUrl","url","query","process","env","BLAZE_DISABLE_PREVIEW","isPreview","match","PREVIEW_REGEX","_default","exports"],"sources":["../../src/helpers/check-preview-url.js"],"sourcesContent":["import { PREVIEW_REGEX } from '../constants';\n\nfunction checkPreviewUrl(url, query) {\n if (process.env.BLAZE_DISABLE_PREVIEW) return null;\n const isPreview = url.match(PREVIEW_REGEX);\n if (!isPreview || !query) return null;\n\n return query;\n}\n\nexport default checkPreviewUrl;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,eAAeA,CAACC,GAAG,EAAEC,KAAK,EAAE;EACnC,IAAIC,OAAO,CAACC,GAAG,CAACC,qBAAqB,EAAE,OAAO,IAAI;EAClD,IAAMC,SAAS,GAAGL,GAAG,CAACM,KAAK,CAACC,wBAAa,CAAC;EAC1C,IAAI,CAACF,SAAS,IAAI,CAACJ,KAAK,EAAE,OAAO,IAAI;EAErC,OAAOA,KAAK;AACd;AAAC,IAAAO,QAAA,GAAAC,OAAA,cAEcV,eAAe","ignoreList":[]}
|