@commercetools-frontend/constants 22.2.1 → 22.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,17 +3,20 @@
|
|
|
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 = "22.
|
|
6
|
+
var version = "22.3.0";
|
|
7
7
|
|
|
8
8
|
// DOM elements
|
|
9
|
-
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
9
|
+
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// Links
|
|
12
|
+
const SUPPORT_PORTAL_URL = 'https://support.commercetools.com';
|
|
12
13
|
|
|
14
|
+
// Notification actions
|
|
13
15
|
const SHOW_LOADING = 'SHOW_LOADING';
|
|
14
16
|
const HIDE_LOADING = 'HIDE_LOADING';
|
|
15
|
-
const HIDE_ALL_PAGE_NOTIFICATIONS = 'HIDE_ALL_PAGE_NOTIFICATIONS';
|
|
17
|
+
const HIDE_ALL_PAGE_NOTIFICATIONS = 'HIDE_ALL_PAGE_NOTIFICATIONS';
|
|
16
18
|
|
|
19
|
+
// Notifications
|
|
17
20
|
const NOTIFICATION_DOMAINS = {
|
|
18
21
|
GLOBAL: 'global',
|
|
19
22
|
PAGE: 'page',
|
|
@@ -43,8 +46,9 @@ const NOTIFICATION_KINDS_PAGE = {
|
|
|
43
46
|
// Alias to `NOTIFICATION_DOMAINS` for backwards compatibility
|
|
44
47
|
const DOMAINS = NOTIFICATION_DOMAINS;
|
|
45
48
|
// Fallback string when there is no localized value
|
|
46
|
-
const NO_VALUE_FALLBACK = '- -';
|
|
49
|
+
const NO_VALUE_FALLBACK = '- -';
|
|
47
50
|
|
|
51
|
+
// HTTP requests and responses
|
|
48
52
|
const STATUS_CODES = {
|
|
49
53
|
UNAUTHORIZED: 401,
|
|
50
54
|
FORBIDDEN: 403,
|
|
@@ -76,6 +80,9 @@ const MC_API_PROXY_TARGETS = {
|
|
|
76
80
|
MC_METRICS: 'mc-metrics',
|
|
77
81
|
IMPORT: 'import'
|
|
78
82
|
};
|
|
83
|
+
|
|
84
|
+
// Global application environment on window object
|
|
85
|
+
|
|
79
86
|
const HTTP_SECURITY_HEADERS = {
|
|
80
87
|
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload',
|
|
81
88
|
'X-XSS-Protection': '1; mode=block',
|
|
@@ -3,17 +3,20 @@
|
|
|
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 = "22.
|
|
6
|
+
var version = "22.3.0";
|
|
7
7
|
|
|
8
8
|
// DOM elements
|
|
9
|
-
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
9
|
+
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// Links
|
|
12
|
+
const SUPPORT_PORTAL_URL = 'https://support.commercetools.com';
|
|
12
13
|
|
|
14
|
+
// Notification actions
|
|
13
15
|
const SHOW_LOADING = 'SHOW_LOADING';
|
|
14
16
|
const HIDE_LOADING = 'HIDE_LOADING';
|
|
15
|
-
const HIDE_ALL_PAGE_NOTIFICATIONS = 'HIDE_ALL_PAGE_NOTIFICATIONS';
|
|
17
|
+
const HIDE_ALL_PAGE_NOTIFICATIONS = 'HIDE_ALL_PAGE_NOTIFICATIONS';
|
|
16
18
|
|
|
19
|
+
// Notifications
|
|
17
20
|
const NOTIFICATION_DOMAINS = {
|
|
18
21
|
GLOBAL: 'global',
|
|
19
22
|
PAGE: 'page',
|
|
@@ -43,8 +46,9 @@ const NOTIFICATION_KINDS_PAGE = {
|
|
|
43
46
|
// Alias to `NOTIFICATION_DOMAINS` for backwards compatibility
|
|
44
47
|
const DOMAINS = NOTIFICATION_DOMAINS;
|
|
45
48
|
// Fallback string when there is no localized value
|
|
46
|
-
const NO_VALUE_FALLBACK = '- -';
|
|
49
|
+
const NO_VALUE_FALLBACK = '- -';
|
|
47
50
|
|
|
51
|
+
// HTTP requests and responses
|
|
48
52
|
const STATUS_CODES = {
|
|
49
53
|
UNAUTHORIZED: 401,
|
|
50
54
|
FORBIDDEN: 403,
|
|
@@ -76,6 +80,9 @@ const MC_API_PROXY_TARGETS = {
|
|
|
76
80
|
MC_METRICS: 'mc-metrics',
|
|
77
81
|
IMPORT: 'import'
|
|
78
82
|
};
|
|
83
|
+
|
|
84
|
+
// Global application environment on window object
|
|
85
|
+
|
|
79
86
|
const HTTP_SECURITY_HEADERS = {
|
|
80
87
|
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload',
|
|
81
88
|
'X-XSS-Protection': '1; mode=block',
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
// NOTE: This string will be replaced on build time with the package version.
|
|
2
|
-
var version = "22.
|
|
2
|
+
var version = "22.3.0";
|
|
3
3
|
|
|
4
4
|
// DOM elements
|
|
5
|
-
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
5
|
+
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// Links
|
|
8
|
+
const SUPPORT_PORTAL_URL = 'https://support.commercetools.com';
|
|
8
9
|
|
|
10
|
+
// Notification actions
|
|
9
11
|
const SHOW_LOADING = 'SHOW_LOADING';
|
|
10
12
|
const HIDE_LOADING = 'HIDE_LOADING';
|
|
11
|
-
const HIDE_ALL_PAGE_NOTIFICATIONS = 'HIDE_ALL_PAGE_NOTIFICATIONS';
|
|
13
|
+
const HIDE_ALL_PAGE_NOTIFICATIONS = 'HIDE_ALL_PAGE_NOTIFICATIONS';
|
|
12
14
|
|
|
15
|
+
// Notifications
|
|
13
16
|
const NOTIFICATION_DOMAINS = {
|
|
14
17
|
GLOBAL: 'global',
|
|
15
18
|
PAGE: 'page',
|
|
@@ -39,8 +42,9 @@ const NOTIFICATION_KINDS_PAGE = {
|
|
|
39
42
|
// Alias to `NOTIFICATION_DOMAINS` for backwards compatibility
|
|
40
43
|
const DOMAINS = NOTIFICATION_DOMAINS;
|
|
41
44
|
// Fallback string when there is no localized value
|
|
42
|
-
const NO_VALUE_FALLBACK = '- -';
|
|
45
|
+
const NO_VALUE_FALLBACK = '- -';
|
|
43
46
|
|
|
47
|
+
// HTTP requests and responses
|
|
44
48
|
const STATUS_CODES = {
|
|
45
49
|
UNAUTHORIZED: 401,
|
|
46
50
|
FORBIDDEN: 403,
|
|
@@ -72,6 +76,9 @@ const MC_API_PROXY_TARGETS = {
|
|
|
72
76
|
MC_METRICS: 'mc-metrics',
|
|
73
77
|
IMPORT: 'import'
|
|
74
78
|
};
|
|
79
|
+
|
|
80
|
+
// Global application environment on window object
|
|
81
|
+
|
|
75
82
|
const HTTP_SECURITY_HEADERS = {
|
|
76
83
|
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload',
|
|
77
84
|
'X-XSS-Protection': '1; mode=block',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/constants",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.3.0",
|
|
4
4
|
"description": "Shared constants for MC applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -9,16 +9,26 @@
|
|
|
9
9
|
"directory": "packages/constants"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://docs.commercetools.com/custom-applications/api-reference/commercetools-frontend-constants",
|
|
12
|
-
"keywords": [
|
|
12
|
+
"keywords": [
|
|
13
|
+
"javascript",
|
|
14
|
+
"frontend",
|
|
15
|
+
"react",
|
|
16
|
+
"toolkit"
|
|
17
|
+
],
|
|
13
18
|
"license": "MIT",
|
|
14
19
|
"publishConfig": {
|
|
15
20
|
"access": "public"
|
|
16
21
|
},
|
|
17
22
|
"main": "dist/commercetools-frontend-constants.cjs.js",
|
|
18
23
|
"module": "dist/commercetools-frontend-constants.esm.js",
|
|
19
|
-
"files": [
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"package.json",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
20
30
|
"dependencies": {
|
|
21
31
|
"@babel/runtime": "^7.20.13",
|
|
22
32
|
"@babel/runtime-corejs3": "^7.20.13"
|
|
23
33
|
}
|
|
24
|
-
}
|
|
34
|
+
}
|