@commercetools-frontend/constants 22.6.0 → 22.7.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.
|
@@ -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 = "22.
|
|
6
|
+
var version = "22.7.1";
|
|
7
7
|
|
|
8
8
|
// DOM elements
|
|
9
9
|
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
@@ -91,6 +91,18 @@ const HTTP_SECURITY_HEADERS = {
|
|
|
91
91
|
'Referrer-Policy': 'same-origin'
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
+
// Custom Views events (messages sent between the host application and the custom view)
|
|
95
|
+
const CUSTOM_VIEWS_EVENTS_NAMES = {
|
|
96
|
+
CUSTOM_VIEW_BOOTSTRAP: 'custom-view-bootstrap',
|
|
97
|
+
CUSTOM_VIEW_INITIALIZATION: 'custom-view-initialization'
|
|
98
|
+
};
|
|
99
|
+
const CUSTOM_VIEWS_EVENTS_META = {
|
|
100
|
+
SOURCE: 'mc-host-application',
|
|
101
|
+
DESTINATION_PREFIX: 'custom-view-'
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
exports.CUSTOM_VIEWS_EVENTS_META = CUSTOM_VIEWS_EVENTS_META;
|
|
105
|
+
exports.CUSTOM_VIEWS_EVENTS_NAMES = CUSTOM_VIEWS_EVENTS_NAMES;
|
|
94
106
|
exports.DOMAINS = DOMAINS;
|
|
95
107
|
exports.GRAPHQL_TARGETS = GRAPHQL_TARGETS;
|
|
96
108
|
exports.HIDE_ALL_PAGE_NOTIFICATIONS = HIDE_ALL_PAGE_NOTIFICATIONS;
|
|
@@ -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 = "22.
|
|
6
|
+
var version = "22.7.1";
|
|
7
7
|
|
|
8
8
|
// DOM elements
|
|
9
9
|
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
@@ -91,6 +91,18 @@ const HTTP_SECURITY_HEADERS = {
|
|
|
91
91
|
'Referrer-Policy': 'same-origin'
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
+
// Custom Views events (messages sent between the host application and the custom view)
|
|
95
|
+
const CUSTOM_VIEWS_EVENTS_NAMES = {
|
|
96
|
+
CUSTOM_VIEW_BOOTSTRAP: 'custom-view-bootstrap',
|
|
97
|
+
CUSTOM_VIEW_INITIALIZATION: 'custom-view-initialization'
|
|
98
|
+
};
|
|
99
|
+
const CUSTOM_VIEWS_EVENTS_META = {
|
|
100
|
+
SOURCE: 'mc-host-application',
|
|
101
|
+
DESTINATION_PREFIX: 'custom-view-'
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
exports.CUSTOM_VIEWS_EVENTS_META = CUSTOM_VIEWS_EVENTS_META;
|
|
105
|
+
exports.CUSTOM_VIEWS_EVENTS_NAMES = CUSTOM_VIEWS_EVENTS_NAMES;
|
|
94
106
|
exports.DOMAINS = DOMAINS;
|
|
95
107
|
exports.GRAPHQL_TARGETS = GRAPHQL_TARGETS;
|
|
96
108
|
exports.HIDE_ALL_PAGE_NOTIFICATIONS = HIDE_ALL_PAGE_NOTIFICATIONS;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// NOTE: This string will be replaced on build time with the package version.
|
|
2
|
-
var version = "22.
|
|
2
|
+
var version = "22.7.1";
|
|
3
3
|
|
|
4
4
|
// DOM elements
|
|
5
5
|
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
@@ -87,4 +87,14 @@ const HTTP_SECURITY_HEADERS = {
|
|
|
87
87
|
'Referrer-Policy': 'same-origin'
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
// Custom Views events (messages sent between the host application and the custom view)
|
|
91
|
+
const CUSTOM_VIEWS_EVENTS_NAMES = {
|
|
92
|
+
CUSTOM_VIEW_BOOTSTRAP: 'custom-view-bootstrap',
|
|
93
|
+
CUSTOM_VIEW_INITIALIZATION: 'custom-view-initialization'
|
|
94
|
+
};
|
|
95
|
+
const CUSTOM_VIEWS_EVENTS_META = {
|
|
96
|
+
SOURCE: 'mc-host-application',
|
|
97
|
+
DESTINATION_PREFIX: 'custom-view-'
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export { CUSTOM_VIEWS_EVENTS_META, CUSTOM_VIEWS_EVENTS_NAMES, 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 };
|
|
@@ -170,3 +170,11 @@ export declare const HTTP_SECURITY_HEADERS: {
|
|
|
170
170
|
readonly 'X-Frame-Options': "DENY";
|
|
171
171
|
readonly 'Referrer-Policy': "same-origin";
|
|
172
172
|
};
|
|
173
|
+
export declare const CUSTOM_VIEWS_EVENTS_NAMES: {
|
|
174
|
+
CUSTOM_VIEW_BOOTSTRAP: string;
|
|
175
|
+
CUSTOM_VIEW_INITIALIZATION: string;
|
|
176
|
+
};
|
|
177
|
+
export declare const CUSTOM_VIEWS_EVENTS_META: {
|
|
178
|
+
SOURCE: string;
|
|
179
|
+
DESTINATION_PREFIX: string;
|
|
180
|
+
};
|
package/package.json
CHANGED