@commercetools-frontend/application-shell-connectors 21.23.10 → 21.24.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.
- package/dist/commercetools-frontend-application-shell-connectors.cjs.dev.js +126 -131
- package/dist/commercetools-frontend-application-shell-connectors.cjs.prod.js +126 -131
- package/dist/commercetools-frontend-application-shell-connectors.esm.js +126 -131
- package/dist/declarations/src/components/application-context/application-context.d.ts +1 -9
- package/dist/declarations/src/components/project-extension-image-regex/project-extension-image-regex.d.ts +1 -1
- package/dist/declarations/src/types/generated/mc.d.ts +3 -3
- package/package.json +5 -5
- package/test-utils/dist/commercetools-frontend-application-shell-connectors-test-utils.cjs.dev.js +4 -4
- package/test-utils/dist/commercetools-frontend-application-shell-connectors-test-utils.cjs.prod.js +4 -4
- package/test-utils/dist/commercetools-frontend-application-shell-connectors-test-utils.esm.js +4 -4
package/test-utils/dist/commercetools-frontend-application-shell-connectors-test-utils.esm.js
CHANGED
|
@@ -13,8 +13,8 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
|
13
13
|
|
|
14
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
15
|
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 } } } };
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const createGraphqlResponseForProjectExtensionImageRegexQuery = function () {
|
|
17
|
+
let customResponse = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
18
18
|
return _objectSpread({
|
|
19
19
|
projectExtension: {
|
|
20
20
|
__typename: 'ProjectExtension',
|
|
@@ -37,8 +37,8 @@ var createGraphqlResponseForProjectExtensionImageRegexQuery = function createGra
|
|
|
37
37
|
}
|
|
38
38
|
}, customResponse);
|
|
39
39
|
};
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
const createFetchProjectExtensionImageRegexMock = function () {
|
|
41
|
+
let customMock = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
42
42
|
return _objectSpread({
|
|
43
43
|
request: {
|
|
44
44
|
query: FetchProjectExtensionImageRegex,
|