@commercetools-frontend/application-shell-connectors 20.9.4 → 20.10.6
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-application-shell-connectors.cjs.dev.js +28 -28
- package/dist/commercetools-frontend-application-shell-connectors.cjs.prod.js +22 -22
- package/dist/commercetools-frontend-application-shell-connectors.esm.js +2 -2
- package/dist/declarations/src/components/application-context/application-context.d.ts +142 -142
- package/dist/declarations/src/components/application-context/index.d.ts +10 -10
- package/dist/declarations/src/components/application-context/normalizers.d.ts +30 -30
- package/dist/declarations/src/components/project-extension-image-regex/index.d.ts +1 -1
- package/dist/declarations/src/components/project-extension-image-regex/project-extension-image-regex.d.ts +30 -30
- package/dist/declarations/src/export-types.d.ts +7 -7
- package/dist/declarations/src/index.d.ts +4 -4
- package/dist/declarations/src/test-utils/index.d.ts +1 -1
- package/dist/declarations/src/test-utils/test-utils.d.ts +97 -97
- package/dist/declarations/src/types/generated/mc.d.ts +746 -746
- package/dist/declarations/src/types/generated/settings.d.ts +3258 -3258
- package/dist/declarations/src/utils/get-display-name.d.ts +3 -3
- package/dist/declarations/src/utils/get-mc-api-url/get-mc-api-url.d.ts +5 -5
- package/dist/declarations/src/utils/get-mc-api-url/index.d.ts +1 -1
- package/dist/declarations/src/version.d.ts +2 -2
- package/package.json +9 -13
- package/test-utils/dist/commercetools-frontend-application-shell-connectors-test-utils.cjs.dev.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-connectors-test-utils.cjs.prod.js +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const getDisplayName: <Props extends {}>(Component: import("react").ComponentType<Props>) => string | undefined;
|
|
3
|
-
export default getDisplayName;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const getDisplayName: <Props extends {}>(Component: import("react").ComponentType<Props>) => string | undefined;
|
|
3
|
+
export default getDisplayName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ApplicationWindow } from '@commercetools-frontend/constants';
|
|
2
|
-
declare type TApplicationContextEnvironment = ApplicationWindow['app'];
|
|
3
|
-
declare type TPartialWindow = Pick<Window, 'origin'>;
|
|
4
|
-
declare function getMcApiUrl(environment: TApplicationContextEnvironment, partialWindow: TPartialWindow): string;
|
|
5
|
-
export default getMcApiUrl;
|
|
1
|
+
import type { ApplicationWindow } from '@commercetools-frontend/constants';
|
|
2
|
+
declare type TApplicationContextEnvironment = ApplicationWindow['app'];
|
|
3
|
+
declare type TPartialWindow = Pick<Window, 'origin'>;
|
|
4
|
+
declare function getMcApiUrl(environment: TApplicationContextEnvironment, partialWindow: TPartialWindow): string;
|
|
5
|
+
export default getMcApiUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './get-mc-api-url';
|
|
1
|
+
export { default } from './get-mc-api-url';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: "__@APPLICATION_KIT_PACKAGE/VERSION_OF_RELEASE__";
|
|
2
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-shell-connectors",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.10.6",
|
|
4
4
|
"description": "Contains complementary tools for @commercetools-frontend/application-shell",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -11,7 +11,6 @@
|
|
|
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
|
},
|
|
@@ -21,26 +20,23 @@
|
|
|
21
20
|
"preconstruct": {
|
|
22
21
|
"entrypoints": ["./index.ts", "./test-utils/index.ts"]
|
|
23
22
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"prepare": "./../../scripts/version.js replace"
|
|
26
|
-
},
|
|
27
23
|
"dependencies": {
|
|
28
|
-
"@babel/runtime": "7.
|
|
29
|
-
"@babel/runtime-corejs3": "7.
|
|
30
|
-
"@commercetools-frontend/constants": "20.
|
|
31
|
-
"@commercetools-frontend/sentry": "20.
|
|
32
|
-
"@emotion/react": "11.
|
|
24
|
+
"@babel/runtime": "7.15.4",
|
|
25
|
+
"@babel/runtime-corejs3": "7.15.4",
|
|
26
|
+
"@commercetools-frontend/constants": "20.10.6",
|
|
27
|
+
"@commercetools-frontend/sentry": "20.10.6",
|
|
28
|
+
"@emotion/react": "11.5.0",
|
|
33
29
|
"@types/lodash": "^4.14.167",
|
|
34
30
|
"@types/prop-types": "^15.7.3",
|
|
35
31
|
"@types/react": "^17.0.16",
|
|
36
|
-
"graphql": "15.
|
|
32
|
+
"graphql": "15.6.1",
|
|
37
33
|
"lodash": "4.17.21",
|
|
38
34
|
"moment-timezone": "^0.5.32",
|
|
39
35
|
"prop-types": "15.7.2"
|
|
40
36
|
},
|
|
41
37
|
"devDependencies": {
|
|
42
|
-
"@apollo/client": "3.4.
|
|
43
|
-
"@testing-library/react": "12.
|
|
38
|
+
"@apollo/client": "3.4.16",
|
|
39
|
+
"@testing-library/react": "12.1.2",
|
|
44
40
|
"react": "17.0.2"
|
|
45
41
|
},
|
|
46
42
|
"peerDependencies": {
|
package/test-utils/dist/commercetools-frontend-application-shell-connectors-test-utils.cjs.dev.js
CHANGED
|
@@ -24,9 +24,9 @@ var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_O
|
|
|
24
24
|
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
25
25
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
26
26
|
|
|
27
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default[
|
|
27
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
28
28
|
|
|
29
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default[
|
|
29
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default["default"]) { _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)); } else { var _context2; _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } } return target; }
|
|
30
30
|
var FetchProjectExtensionImageRegex = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProjectExtensionImageRegex" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "projectExtension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "imageRegex" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "thumb" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ImageRegex" }, directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "small" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ImageRegex" }, directives: [] }] } }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ImageRegex" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ImageRegexOptions" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "flag" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "search" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "replace" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 256, source: { body: "query FetchProjectExtensionImageRegex {\n projectExtension {\n id\n imageRegex {\n thumb {\n ...ImageRegex\n }\n small {\n ...ImageRegex\n }\n }\n }\n}\nfragment ImageRegex on ImageRegexOptions {\n flag\n search\n replace\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
31
31
|
var createGraphqlResponseForProjectExtensionImageRegexQuery = function createGraphqlResponseForProjectExtensionImageRegexQuery() {
|
|
32
32
|
var customResponse = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
package/test-utils/dist/commercetools-frontend-application-shell-connectors-test-utils.cjs.prod.js
CHANGED
|
@@ -24,9 +24,9 @@ var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_O
|
|
|
24
24
|
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
25
25
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
26
26
|
|
|
27
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default[
|
|
27
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
28
28
|
|
|
29
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default[
|
|
29
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default["default"]) { _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)); } else { var _context2; _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } } return target; }
|
|
30
30
|
var FetchProjectExtensionImageRegex = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProjectExtensionImageRegex" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "projectExtension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "imageRegex" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "thumb" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ImageRegex" }, directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "small" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ImageRegex" }, directives: [] }] } }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ImageRegex" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ImageRegexOptions" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "flag" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "search" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "replace" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 256, source: { body: "query FetchProjectExtensionImageRegex {\n projectExtension {\n id\n imageRegex {\n thumb {\n ...ImageRegex\n }\n small {\n ...ImageRegex\n }\n }\n }\n}\nfragment ImageRegex on ImageRegexOptions {\n flag\n search\n replace\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
31
31
|
var createGraphqlResponseForProjectExtensionImageRegexQuery = function createGraphqlResponseForProjectExtensionImageRegexQuery() {
|
|
32
32
|
var customResponse = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|