@commercetools-frontend/constants 24.2.1 → 24.3.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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
// NOTE: This string will be replaced on build time with the package version.
|
|
6
|
-
var version = "24.
|
|
6
|
+
var version = "24.3.0";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The project key must be between 2 and 36 characters long. It can only contain alphanumeric lowercase characters (a-z, 0-9),
|
|
@@ -157,12 +157,13 @@ const STORAGE_KEYS = {
|
|
|
157
157
|
};
|
|
158
158
|
const HTTP_SECURITY_HEADER_KEYS = {
|
|
159
159
|
'Content-Security-Policy': 'Content-Security-Policy',
|
|
160
|
-
'Referrer-Policy': 'Referrer-Policy',
|
|
161
160
|
'Permissions-Policy': 'Permissions-Policy',
|
|
161
|
+
'Referrer-Policy': 'Referrer-Policy',
|
|
162
162
|
'Strict-Transport-Security': 'Strict-Transport-Security',
|
|
163
|
-
'X-XSS-Protection': 'X-XSS-Protection',
|
|
164
163
|
'X-Content-Type-Options': 'X-Content-Type-Options',
|
|
165
|
-
'X-Frame-Options': 'X-Frame-Options'
|
|
164
|
+
'X-Frame-Options': 'X-Frame-Options',
|
|
165
|
+
// @deprecated: this header is not supported by the browser anymore. Use `Content-Security-Policy` instead.
|
|
166
|
+
'X-XSS-Protection': 'X-XSS-Protection'
|
|
166
167
|
};
|
|
167
168
|
const HTTP_SECURITY_HEADERS = {
|
|
168
169
|
[HTTP_SECURITY_HEADER_KEYS['Referrer-Policy']]: 'same-origin',
|
|
@@ -171,7 +172,6 @@ const HTTP_SECURITY_HEADERS = {
|
|
|
171
172
|
// can inherit the main application permissions policy and override other directives if needed.
|
|
172
173
|
'microphone=(self), camera=(self), payment=(self), usb=(self), geolocation=(self)',
|
|
173
174
|
[HTTP_SECURITY_HEADER_KEYS['Strict-Transport-Security']]: 'max-age=31536000; includeSubDomains; preload',
|
|
174
|
-
[HTTP_SECURITY_HEADER_KEYS['X-XSS-Protection']]: '1; mode=block',
|
|
175
175
|
[HTTP_SECURITY_HEADER_KEYS['X-Content-Type-Options']]: 'nosniff',
|
|
176
176
|
[HTTP_SECURITY_HEADER_KEYS['X-Frame-Options']]: 'SAMEORIGIN'
|
|
177
177
|
};
|
|
@@ -181,7 +181,8 @@ const CUSTOM_VIEWS_EVENTS_NAMES = {
|
|
|
181
181
|
CUSTOM_VIEW_BOOTSTRAP: 'custom-view-bootstrap',
|
|
182
182
|
CUSTOM_VIEW_INITIALIZATION: 'custom-view-initialization',
|
|
183
183
|
CUSTOM_VIEW_CLOSE: 'custom-view-close',
|
|
184
|
-
CUSTOM_VIEW_READY: 'custom-view-ready'
|
|
184
|
+
CUSTOM_VIEW_READY: 'custom-view-ready',
|
|
185
|
+
CUSTOM_VIEW_ON_CLOSE_AFTER: 'custom-view-on-close-after'
|
|
185
186
|
};
|
|
186
187
|
const CUSTOM_VIEWS_EVENTS_META = {
|
|
187
188
|
HOST_APPLICATION_CODE: 'mc-host-application',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
// NOTE: This string will be replaced on build time with the package version.
|
|
6
|
-
var version = "24.
|
|
6
|
+
var version = "24.3.0";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The project key must be between 2 and 36 characters long. It can only contain alphanumeric lowercase characters (a-z, 0-9),
|
|
@@ -157,12 +157,13 @@ const STORAGE_KEYS = {
|
|
|
157
157
|
};
|
|
158
158
|
const HTTP_SECURITY_HEADER_KEYS = {
|
|
159
159
|
'Content-Security-Policy': 'Content-Security-Policy',
|
|
160
|
-
'Referrer-Policy': 'Referrer-Policy',
|
|
161
160
|
'Permissions-Policy': 'Permissions-Policy',
|
|
161
|
+
'Referrer-Policy': 'Referrer-Policy',
|
|
162
162
|
'Strict-Transport-Security': 'Strict-Transport-Security',
|
|
163
|
-
'X-XSS-Protection': 'X-XSS-Protection',
|
|
164
163
|
'X-Content-Type-Options': 'X-Content-Type-Options',
|
|
165
|
-
'X-Frame-Options': 'X-Frame-Options'
|
|
164
|
+
'X-Frame-Options': 'X-Frame-Options',
|
|
165
|
+
// @deprecated: this header is not supported by the browser anymore. Use `Content-Security-Policy` instead.
|
|
166
|
+
'X-XSS-Protection': 'X-XSS-Protection'
|
|
166
167
|
};
|
|
167
168
|
const HTTP_SECURITY_HEADERS = {
|
|
168
169
|
[HTTP_SECURITY_HEADER_KEYS['Referrer-Policy']]: 'same-origin',
|
|
@@ -171,7 +172,6 @@ const HTTP_SECURITY_HEADERS = {
|
|
|
171
172
|
// can inherit the main application permissions policy and override other directives if needed.
|
|
172
173
|
'microphone=(self), camera=(self), payment=(self), usb=(self), geolocation=(self)',
|
|
173
174
|
[HTTP_SECURITY_HEADER_KEYS['Strict-Transport-Security']]: 'max-age=31536000; includeSubDomains; preload',
|
|
174
|
-
[HTTP_SECURITY_HEADER_KEYS['X-XSS-Protection']]: '1; mode=block',
|
|
175
175
|
[HTTP_SECURITY_HEADER_KEYS['X-Content-Type-Options']]: 'nosniff',
|
|
176
176
|
[HTTP_SECURITY_HEADER_KEYS['X-Frame-Options']]: 'SAMEORIGIN'
|
|
177
177
|
};
|
|
@@ -181,7 +181,8 @@ const CUSTOM_VIEWS_EVENTS_NAMES = {
|
|
|
181
181
|
CUSTOM_VIEW_BOOTSTRAP: 'custom-view-bootstrap',
|
|
182
182
|
CUSTOM_VIEW_INITIALIZATION: 'custom-view-initialization',
|
|
183
183
|
CUSTOM_VIEW_CLOSE: 'custom-view-close',
|
|
184
|
-
CUSTOM_VIEW_READY: 'custom-view-ready'
|
|
184
|
+
CUSTOM_VIEW_READY: 'custom-view-ready',
|
|
185
|
+
CUSTOM_VIEW_ON_CLOSE_AFTER: 'custom-view-on-close-after'
|
|
185
186
|
};
|
|
186
187
|
const CUSTOM_VIEWS_EVENTS_META = {
|
|
187
188
|
HOST_APPLICATION_CODE: 'mc-host-application',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// NOTE: This string will be replaced on build time with the package version.
|
|
2
|
-
var version = "24.
|
|
2
|
+
var version = "24.3.0";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The project key must be between 2 and 36 characters long. It can only contain alphanumeric lowercase characters (a-z, 0-9),
|
|
@@ -153,12 +153,13 @@ const STORAGE_KEYS = {
|
|
|
153
153
|
};
|
|
154
154
|
const HTTP_SECURITY_HEADER_KEYS = {
|
|
155
155
|
'Content-Security-Policy': 'Content-Security-Policy',
|
|
156
|
-
'Referrer-Policy': 'Referrer-Policy',
|
|
157
156
|
'Permissions-Policy': 'Permissions-Policy',
|
|
157
|
+
'Referrer-Policy': 'Referrer-Policy',
|
|
158
158
|
'Strict-Transport-Security': 'Strict-Transport-Security',
|
|
159
|
-
'X-XSS-Protection': 'X-XSS-Protection',
|
|
160
159
|
'X-Content-Type-Options': 'X-Content-Type-Options',
|
|
161
|
-
'X-Frame-Options': 'X-Frame-Options'
|
|
160
|
+
'X-Frame-Options': 'X-Frame-Options',
|
|
161
|
+
// @deprecated: this header is not supported by the browser anymore. Use `Content-Security-Policy` instead.
|
|
162
|
+
'X-XSS-Protection': 'X-XSS-Protection'
|
|
162
163
|
};
|
|
163
164
|
const HTTP_SECURITY_HEADERS = {
|
|
164
165
|
[HTTP_SECURITY_HEADER_KEYS['Referrer-Policy']]: 'same-origin',
|
|
@@ -167,7 +168,6 @@ const HTTP_SECURITY_HEADERS = {
|
|
|
167
168
|
// can inherit the main application permissions policy and override other directives if needed.
|
|
168
169
|
'microphone=(self), camera=(self), payment=(self), usb=(self), geolocation=(self)',
|
|
169
170
|
[HTTP_SECURITY_HEADER_KEYS['Strict-Transport-Security']]: 'max-age=31536000; includeSubDomains; preload',
|
|
170
|
-
[HTTP_SECURITY_HEADER_KEYS['X-XSS-Protection']]: '1; mode=block',
|
|
171
171
|
[HTTP_SECURITY_HEADER_KEYS['X-Content-Type-Options']]: 'nosniff',
|
|
172
172
|
[HTTP_SECURITY_HEADER_KEYS['X-Frame-Options']]: 'SAMEORIGIN'
|
|
173
173
|
};
|
|
@@ -177,7 +177,8 @@ const CUSTOM_VIEWS_EVENTS_NAMES = {
|
|
|
177
177
|
CUSTOM_VIEW_BOOTSTRAP: 'custom-view-bootstrap',
|
|
178
178
|
CUSTOM_VIEW_INITIALIZATION: 'custom-view-initialization',
|
|
179
179
|
CUSTOM_VIEW_CLOSE: 'custom-view-close',
|
|
180
|
-
CUSTOM_VIEW_READY: 'custom-view-ready'
|
|
180
|
+
CUSTOM_VIEW_READY: 'custom-view-ready',
|
|
181
|
+
CUSTOM_VIEW_ON_CLOSE_AFTER: 'custom-view-on-close-after'
|
|
181
182
|
};
|
|
182
183
|
const CUSTOM_VIEWS_EVENTS_META = {
|
|
183
184
|
HOST_APPLICATION_CODE: 'mc-host-application',
|
|
@@ -256,19 +256,18 @@ export declare const STORAGE_KEYS: {
|
|
|
256
256
|
};
|
|
257
257
|
export declare const HTTP_SECURITY_HEADER_KEYS: {
|
|
258
258
|
readonly 'Content-Security-Policy': "Content-Security-Policy";
|
|
259
|
-
readonly 'Referrer-Policy': "Referrer-Policy";
|
|
260
259
|
readonly 'Permissions-Policy': "Permissions-Policy";
|
|
260
|
+
readonly 'Referrer-Policy': "Referrer-Policy";
|
|
261
261
|
readonly 'Strict-Transport-Security': "Strict-Transport-Security";
|
|
262
|
-
readonly 'X-XSS-Protection': "X-XSS-Protection";
|
|
263
262
|
readonly 'X-Content-Type-Options': "X-Content-Type-Options";
|
|
264
263
|
readonly 'X-Frame-Options': "X-Frame-Options";
|
|
264
|
+
readonly 'X-XSS-Protection': "X-XSS-Protection";
|
|
265
265
|
};
|
|
266
|
-
export type THttpSecurityHeaders = keyof typeof HTTP_SECURITY_HEADER_KEYS
|
|
266
|
+
export type THttpSecurityHeaders = Exclude<keyof typeof HTTP_SECURITY_HEADER_KEYS, 'X-XSS-Protection'>;
|
|
267
267
|
export declare const HTTP_SECURITY_HEADERS: {
|
|
268
268
|
readonly "Referrer-Policy": "same-origin";
|
|
269
269
|
readonly "Permissions-Policy": "microphone=(self), camera=(self), payment=(self), usb=(self), geolocation=(self)";
|
|
270
270
|
readonly "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload";
|
|
271
|
-
readonly "X-XSS-Protection": "1; mode=block";
|
|
272
271
|
readonly "X-Content-Type-Options": "nosniff";
|
|
273
272
|
readonly "X-Frame-Options": "SAMEORIGIN";
|
|
274
273
|
};
|
|
@@ -277,6 +276,7 @@ export declare const CUSTOM_VIEWS_EVENTS_NAMES: {
|
|
|
277
276
|
CUSTOM_VIEW_INITIALIZATION: string;
|
|
278
277
|
CUSTOM_VIEW_CLOSE: string;
|
|
279
278
|
CUSTOM_VIEW_READY: string;
|
|
279
|
+
CUSTOM_VIEW_ON_CLOSE_AFTER: string;
|
|
280
280
|
};
|
|
281
281
|
export declare const CUSTOM_VIEWS_EVENTS_META: {
|
|
282
282
|
HOST_APPLICATION_CODE: string;
|
package/package.json
CHANGED