@commercetools-frontend/constants 20.10.1 → 20.12.1
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/dist/commercetools-frontend-constants.cjs.dev.js +10 -2
- package/dist/commercetools-frontend-constants.cjs.prod.js +10 -2
- package/dist/commercetools-frontend-constants.esm.js +10 -3
- package/dist/declarations/src/constants.d.ts +10 -0
- package/dist/declarations/src/version.d.ts +1 -1
- package/package.json +3 -7
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
// NOTE: This string will be replaced
|
|
6
|
-
var version =
|
|
5
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
6
|
+
var version = "20.12.1";
|
|
7
7
|
|
|
8
8
|
// DOM elements
|
|
9
9
|
var PORTALS_CONTAINER_ID = 'portals-container'; // Links
|
|
@@ -76,11 +76,19 @@ var MC_API_PROXY_TARGETS = {
|
|
|
76
76
|
MC_METRICS: 'mc-metrics',
|
|
77
77
|
IMPORT: 'import'
|
|
78
78
|
};
|
|
79
|
+
var HTTP_SECURITY_HEADERS = {
|
|
80
|
+
'Strict-Transport-Security': 'max-age=31536000',
|
|
81
|
+
'X-XSS-Protection': '1; mode=block',
|
|
82
|
+
'X-Content-Type-Options': 'nosniff',
|
|
83
|
+
'X-Frame-Options': 'DENY',
|
|
84
|
+
'Referrer-Policy': 'same-origin'
|
|
85
|
+
};
|
|
79
86
|
|
|
80
87
|
exports.DOMAINS = DOMAINS;
|
|
81
88
|
exports.GRAPHQL_TARGETS = GRAPHQL_TARGETS;
|
|
82
89
|
exports.HIDE_ALL_PAGE_NOTIFICATIONS = HIDE_ALL_PAGE_NOTIFICATIONS;
|
|
83
90
|
exports.HIDE_LOADING = HIDE_LOADING;
|
|
91
|
+
exports.HTTP_SECURITY_HEADERS = HTTP_SECURITY_HEADERS;
|
|
84
92
|
exports.LOGOUT_REASONS = LOGOUT_REASONS;
|
|
85
93
|
exports.MC_API_PROXY_TARGETS = MC_API_PROXY_TARGETS;
|
|
86
94
|
exports.NOTIFICATION_DOMAINS = NOTIFICATION_DOMAINS;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
// NOTE: This string will be replaced
|
|
6
|
-
var version =
|
|
5
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
6
|
+
var version = "20.12.1";
|
|
7
7
|
|
|
8
8
|
// DOM elements
|
|
9
9
|
var PORTALS_CONTAINER_ID = 'portals-container'; // Links
|
|
@@ -76,11 +76,19 @@ var MC_API_PROXY_TARGETS = {
|
|
|
76
76
|
MC_METRICS: 'mc-metrics',
|
|
77
77
|
IMPORT: 'import'
|
|
78
78
|
};
|
|
79
|
+
var HTTP_SECURITY_HEADERS = {
|
|
80
|
+
'Strict-Transport-Security': 'max-age=31536000',
|
|
81
|
+
'X-XSS-Protection': '1; mode=block',
|
|
82
|
+
'X-Content-Type-Options': 'nosniff',
|
|
83
|
+
'X-Frame-Options': 'DENY',
|
|
84
|
+
'Referrer-Policy': 'same-origin'
|
|
85
|
+
};
|
|
79
86
|
|
|
80
87
|
exports.DOMAINS = DOMAINS;
|
|
81
88
|
exports.GRAPHQL_TARGETS = GRAPHQL_TARGETS;
|
|
82
89
|
exports.HIDE_ALL_PAGE_NOTIFICATIONS = HIDE_ALL_PAGE_NOTIFICATIONS;
|
|
83
90
|
exports.HIDE_LOADING = HIDE_LOADING;
|
|
91
|
+
exports.HTTP_SECURITY_HEADERS = HTTP_SECURITY_HEADERS;
|
|
84
92
|
exports.LOGOUT_REASONS = LOGOUT_REASONS;
|
|
85
93
|
exports.MC_API_PROXY_TARGETS = MC_API_PROXY_TARGETS;
|
|
86
94
|
exports.NOTIFICATION_DOMAINS = NOTIFICATION_DOMAINS;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// NOTE: This string will be replaced
|
|
2
|
-
var version =
|
|
1
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
2
|
+
var version = "20.12.1";
|
|
3
3
|
|
|
4
4
|
// DOM elements
|
|
5
5
|
var PORTALS_CONTAINER_ID = 'portals-container'; // Links
|
|
@@ -72,5 +72,12 @@ var MC_API_PROXY_TARGETS = {
|
|
|
72
72
|
MC_METRICS: 'mc-metrics',
|
|
73
73
|
IMPORT: 'import'
|
|
74
74
|
};
|
|
75
|
+
var HTTP_SECURITY_HEADERS = {
|
|
76
|
+
'Strict-Transport-Security': 'max-age=31536000',
|
|
77
|
+
'X-XSS-Protection': '1; mode=block',
|
|
78
|
+
'X-Content-Type-Options': 'nosniff',
|
|
79
|
+
'X-Frame-Options': 'DENY',
|
|
80
|
+
'Referrer-Policy': 'same-origin'
|
|
81
|
+
};
|
|
75
82
|
|
|
76
|
-
export { DOMAINS, GRAPHQL_TARGETS, HIDE_ALL_PAGE_NOTIFICATIONS, HIDE_LOADING, LOGOUT_REASONS, MC_API_PROXY_TARGETS, NOTIFICATION_DOMAINS, NOTIFICATION_KINDS_GLOBAL, NOTIFICATION_KINDS_PAGE, NOTIFICATION_KINDS_SIDE, NO_VALUE_FALLBACK, PORTALS_CONTAINER_ID, SHOW_LOADING, STATUS_CODES, SUPPORT_PORTAL_URL, version };
|
|
83
|
+
export { DOMAINS, GRAPHQL_TARGETS, HIDE_ALL_PAGE_NOTIFICATIONS, HIDE_LOADING, HTTP_SECURITY_HEADERS, LOGOUT_REASONS, MC_API_PROXY_TARGETS, NOTIFICATION_DOMAINS, NOTIFICATION_KINDS_GLOBAL, NOTIFICATION_KINDS_PAGE, NOTIFICATION_KINDS_SIDE, NO_VALUE_FALLBACK, PORTALS_CONTAINER_ID, SHOW_LOADING, STATUS_CODES, SUPPORT_PORTAL_URL, version };
|
|
@@ -48,6 +48,9 @@ export declare type TAppNotificationOfKind<T extends TAppNotificationOfDomain> =
|
|
|
48
48
|
export declare type TAppNotificationApiError<ExtraFields extends {} = {}> = {
|
|
49
49
|
message: string;
|
|
50
50
|
code?: string;
|
|
51
|
+
extensions?: {
|
|
52
|
+
code?: string;
|
|
53
|
+
};
|
|
51
54
|
} & ExtraFields;
|
|
52
55
|
export declare type TAppNotificationValuesApiError<ExtraFields extends {} = {}> = {
|
|
53
56
|
errors: TAppNotificationApiError<ExtraFields>[];
|
|
@@ -159,3 +162,10 @@ export interface ApplicationWindow extends Window {
|
|
|
159
162
|
};
|
|
160
163
|
};
|
|
161
164
|
}
|
|
165
|
+
export declare const HTTP_SECURITY_HEADERS: {
|
|
166
|
+
readonly 'Strict-Transport-Security': "max-age=31536000";
|
|
167
|
+
readonly 'X-XSS-Protection': "1; mode=block";
|
|
168
|
+
readonly 'X-Content-Type-Options': "nosniff";
|
|
169
|
+
readonly 'X-Frame-Options': "DENY";
|
|
170
|
+
readonly 'Referrer-Policy': "same-origin";
|
|
171
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "
|
|
1
|
+
declare const _default: "__@APPLICATION_KIT_PACKAGE/VERSION_OF_RELEASE__";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/constants",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.12.1",
|
|
4
4
|
"description": "Shared constants for MC applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -11,18 +11,14 @@
|
|
|
11
11
|
"homepage": "https://docs.commercetools.com/custom-applications",
|
|
12
12
|
"keywords": ["javascript", "frontend", "react", "toolkit"],
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"private": false,
|
|
15
14
|
"publishConfig": {
|
|
16
15
|
"access": "public"
|
|
17
16
|
},
|
|
18
17
|
"main": "dist/commercetools-frontend-constants.cjs.js",
|
|
19
18
|
"module": "dist/commercetools-frontend-constants.esm.js",
|
|
20
19
|
"files": ["dist", "package.json", "LICENSE", "README.md"],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"prepare": "./../../scripts/version.js replace"
|
|
23
|
-
},
|
|
24
20
|
"dependencies": {
|
|
25
|
-
"@babel/runtime": "7.
|
|
26
|
-
"@babel/runtime-corejs3": "7.
|
|
21
|
+
"@babel/runtime": "7.16.3",
|
|
22
|
+
"@babel/runtime-corejs3": "7.16.3"
|
|
27
23
|
}
|
|
28
24
|
}
|