@commercetools-frontend/experimental-components 6.2.2 → 6.2.3

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/styles.css CHANGED
@@ -266,6 +266,42 @@
266
266
  border-bottom-left-radius: 0;
267
267
  margin-left: 0;
268
268
  }
269
+ /* imported from file-input.module.css */
270
+
271
+ /** Button */
272
+
273
+ .file-input-module__button___2KypN {
274
+ display: inline-flex;
275
+ background-color: var(--color-surface);
276
+ border: 1px solid var(--color-neutral);
277
+ box-shadow: none;
278
+ border-radius: var(--border-radius-4);
279
+ color: var(--color-solid);
280
+ height: var(--height-for-button-as-big);
281
+ font-size: var(--font-size-20);
282
+ font-weight: var(--font-weight-500);
283
+ align-items: center;
284
+ transition: background-color var(--transition-linear-80ms);
285
+ padding: 0 var(--spacing-m);
286
+ }
287
+
288
+ .file-input-module__button___2KypN:hover,
289
+ .file-input-module__button___2KypN:focus {
290
+ cursor: pointer;
291
+ background-color: var(--background-color-for-button-when-hovered);
292
+ box-shadow: none;
293
+ }
294
+
295
+ .file-input-module__button___2KypN:active {
296
+ box-shadow: var(--shadow-9);
297
+ background-color: var(--color-surface);
298
+ }
299
+
300
+ .file-input-module__input___3MP4D {
301
+ visibility: hidden;
302
+ width: 1px;
303
+ height: 1px;
304
+ }
269
305
  /* imported from button.module.css */
270
306
 
271
307
  /* Generic button */
@@ -469,41 +505,14 @@
469
505
  .button-module__add-button___1f093 {
470
506
  min-height: 32px;
471
507
  }
472
- /* imported from file-input.module.css */
473
-
474
- /** Button */
508
+ /* imported from centered-loading-spinner.module.css */
475
509
 
476
- .file-input-module__button___2KypN {
477
- display: inline-flex;
478
- background-color: var(--color-surface);
479
- border: 1px solid var(--color-neutral);
480
- box-shadow: none;
481
- border-radius: var(--border-radius-4);
482
- color: var(--color-solid);
483
- height: var(--height-for-button-as-big);
484
- font-size: var(--font-size-20);
485
- font-weight: var(--font-weight-500);
510
+ .centered-loading-spinner-module__loading-container___3_9-h {
511
+ height: 100%;
512
+ display: flex;
513
+ flex-grow: 1;
486
514
  align-items: center;
487
- transition: background-color var(--transition-linear-80ms);
488
- padding: 0 var(--spacing-m);
489
- }
490
-
491
- .file-input-module__button___2KypN:hover,
492
- .file-input-module__button___2KypN:focus {
493
- cursor: pointer;
494
- background-color: var(--background-color-for-button-when-hovered);
495
- box-shadow: none;
496
- }
497
-
498
- .file-input-module__button___2KypN:active {
499
- box-shadow: var(--shadow-9);
500
- background-color: var(--color-surface);
501
- }
502
-
503
- .file-input-module__input___3MP4D {
504
- visibility: hidden;
505
- width: 1px;
506
- height: 1px;
515
+ justify-content: center;
507
516
  }
508
517
  /* imported from divider.module.css */
509
518
 
@@ -532,15 +541,6 @@
532
541
  .divider-module__divider-dashed___2Em8A {
533
542
  border-style: dashed;
534
543
  }
535
- /* imported from centered-loading-spinner.module.css */
536
-
537
- .centered-loading-spinner-module__loading-container___3_9-h {
538
- height: 100%;
539
- display: flex;
540
- flex-grow: 1;
541
- align-items: center;
542
- justify-content: center;
543
- }
544
544
  /* imported from reference-search.module.css */
545
545
 
546
546
  .reference-search-module__container___3-iK3 {
@@ -589,14 +589,9 @@
589
589
  .set-buttons-module__gap___38Qr0 {
590
590
  padding: 20px;
591
591
  }
592
- /* imported from platform-limits-customers-status.module.css */
593
-
594
- .platform-limits-customers-status-module__status___3rXYM {
595
- min-width: max-content;
596
- }
597
- /* imported from platform-limits-customers-combined.module.css */
592
+ /* imported from platform-limits-customer-groups-combined.module.css */
598
593
 
599
- .platform-limits-customers-combined-module__combined___OszDd {
594
+ .platform-limits-customer-groups-combined-module__combined___WjRoI {
600
595
  margin-bottom: var(--spacing-s);
601
596
  }
602
597
  /* imported from platform-limits-customer-groups-status.module.css */
@@ -604,8 +599,13 @@
604
599
  .platform-limits-customer-groups-status-module__status___6099G {
605
600
  min-width: max-content;
606
601
  }
607
- /* imported from platform-limits-customer-groups-combined.module.css */
602
+ /* imported from platform-limits-customers-combined.module.css */
608
603
 
609
- .platform-limits-customer-groups-combined-module__combined___WjRoI {
604
+ .platform-limits-customers-combined-module__combined___OszDd {
610
605
  margin-bottom: var(--spacing-s);
611
606
  }
607
+ /* imported from platform-limits-customers-status.module.css */
608
+
609
+ .platform-limits-customers-status-module__status___3rXYM {
610
+ min-width: max-content;
611
+ }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/experimental-components",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/commercetools/merchant-center-frontend.git",
8
8
  "directory": "packages-shared/experimental-components"
9
9
  },
10
+ "sideEffects": false,
10
11
  "main": "dist/commercetools-frontend-experimental-components.cjs.js",
11
12
  "module": "dist/commercetools-frontend-experimental-components.esm.js",
12
13
  "files": [
@@ -2,33 +2,33 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var msw = require('msw');
6
- var _lastIndexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/last-index-of');
7
- var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
8
- var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
9
5
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
10
6
  var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
7
+ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
11
8
  var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
12
9
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
13
10
  var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
14
11
  var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
15
12
  var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
16
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
+ var msw = require('msw');
15
+ var _lastIndexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/last-index-of');
16
+ var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
17
17
 
18
18
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
19
19
 
20
- var _lastIndexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_lastIndexOfInstanceProperty);
21
- var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
22
- var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
23
20
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
24
21
  var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
22
+ var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
25
23
  var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
26
24
  var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
27
25
  var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
28
26
  var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
29
27
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
28
+ var _lastIndexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_lastIndexOfInstanceProperty);
29
+ var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
30
30
 
31
- const handlers$8 = {
31
+ const handlers$g = {
32
32
  TotalNumberOfStores: {
33
33
  all: total => msw.graphql.query('TotalNumberOfStores', (req, res, ctx) => {
34
34
  return res(ctx.data({
@@ -39,14 +39,16 @@ const handlers$8 = {
39
39
  })
40
40
  }
41
41
  };
42
+ var handlers$h = handlers$g;
42
43
 
43
- const handlers$7 = {
44
+ const handlers$e = {
44
45
  TypeDefinitions: {
45
46
  all: typeDefinitions => msw.graphql.query('FetchTypeDefinitionsQuery', (req, res, ctx) => res(ctx.data({
46
47
  typeDefinitions
47
48
  })))
48
49
  }
49
50
  };
51
+ var handlers$f = handlers$e;
50
52
 
51
53
  const graphqlQueries = {
52
54
  ASSOCIATE_ROLE: 'associateRoles',
@@ -71,7 +73,7 @@ const graphqlQueries = {
71
73
  TAX_CATEGORY: 'taxCategories',
72
74
  ZONE: 'zones'
73
75
  };
74
- const handlers$6 = {
76
+ const handlers$c = {
75
77
  DuplicatedField: {
76
78
  total: (total, resourceType) => msw.graphql.query('FetchResourceTypeDuplicatedField', (req, res, ctx) => {
77
79
  if (!graphqlQueries[resourceType]) return res(ctx.data({}));
@@ -83,16 +85,18 @@ const handlers$6 = {
83
85
  })
84
86
  }
85
87
  };
88
+ var handlers$d = handlers$c;
86
89
 
87
- const handlers$5 = {
90
+ const handlers$a = {
88
91
  ProductSelections: {
89
92
  all: productSelections => msw.graphql.query('FetchProductSelections', (req, res, ctx) => res(ctx.data({
90
93
  productSelections
91
94
  })))
92
95
  }
93
96
  };
97
+ var handlers$b = handlers$a;
94
98
 
95
- const handlers$4 = {
99
+ const handlers$8 = {
96
100
  ProductSelections: {
97
101
  total: total => msw.graphql.query('FetchProductSelectionsTotal', (req, res, ctx) => res(ctx.data({
98
102
  productSelections: {
@@ -102,12 +106,13 @@ const handlers$4 = {
102
106
  })))
103
107
  }
104
108
  };
109
+ var handlers$9 = handlers$8;
105
110
 
106
111
  const extractKeysFromWherePredicateClause = function () {
107
112
  let whereClause = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
108
113
  return whereClause.substring(_lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '("') + 1, _lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '")')).replace(/["]/g, '').split(', ');
109
114
  };
110
- const handlers$3 = {
115
+ const handlers$6 = {
111
116
  StoresList: {
112
117
  all: stores => msw.graphql.query('FetchStoresQuery', (req, res, ctx) => {
113
118
  // GIVEN req.variables.where is specified
@@ -155,8 +160,9 @@ const handlers$3 = {
155
160
  })
156
161
  }
157
162
  };
163
+ var handlers$7 = handlers$6;
158
164
 
159
- const handlers$2 = {
165
+ const handlers$4 = {
160
166
  FetchStoresByField: {
161
167
  all: stores => msw.graphql.query('FetchStoresByField', (req, res, ctx) => {
162
168
  return res(ctx.data({
@@ -165,8 +171,9 @@ const handlers$2 = {
165
171
  })
166
172
  }
167
173
  };
174
+ var handlers$5 = handlers$4;
168
175
 
169
- const handlers$1 = {
176
+ const handlers$2 = {
170
177
  FetchStoresByWherePredicate: {
171
178
  all: stores => msw.graphql.query('FetchStoresByWherePredicate', (req, res, ctx) => {
172
179
  return res(ctx.data({
@@ -178,6 +185,7 @@ const handlers$1 = {
178
185
  })
179
186
  }
180
187
  };
188
+ var handlers$3 = handlers$2;
181
189
 
182
190
  const handlers = {
183
191
  PlatformLimits: {
@@ -186,6 +194,7 @@ const handlers = {
186
194
  })))
187
195
  }
188
196
  };
197
+ var handlers$1 = handlers;
189
198
 
190
199
  function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
191
200
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -208,12 +217,12 @@ const createFetchStoreDistributionChannelsQueryMock = custom => _objectSpread({
208
217
  }, custom);
209
218
 
210
219
  exports.createFetchStoreDistributionChannelsQueryMock = createFetchStoreDistributionChannelsQueryMock;
211
- exports.customFieldDefinitionsMockHanders = handlers$7;
212
- exports.isFieldDuplicatedMockHandlers = handlers$6;
213
- exports.platformLimitsMockHandlers = handlers;
214
- exports.productSelectionsFetcherMockHandler = handlers$5;
215
- exports.productSelectionsTotalFetcherMockHandler = handlers$4;
216
- exports.storesListConnectorMockHandlers = handlers$3;
217
- exports.useStoreByFieldFetcherHandlers = handlers$2;
218
- exports.useStoresByWherePredicateFetcherHandlers = handlers$1;
219
- exports.useTotalNumberOfStoresFetcherHandlers = handlers$8;
220
+ exports.customFieldDefinitionsMockHanders = handlers$f;
221
+ exports.isFieldDuplicatedMockHandlers = handlers$d;
222
+ exports.platformLimitsMockHandlers = handlers$1;
223
+ exports.productSelectionsFetcherMockHandler = handlers$b;
224
+ exports.productSelectionsTotalFetcherMockHandler = handlers$9;
225
+ exports.storesListConnectorMockHandlers = handlers$7;
226
+ exports.useStoreByFieldFetcherHandlers = handlers$5;
227
+ exports.useStoresByWherePredicateFetcherHandlers = handlers$3;
228
+ exports.useTotalNumberOfStoresFetcherHandlers = handlers$h;
@@ -2,33 +2,33 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var msw = require('msw');
6
- var _lastIndexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/last-index-of');
7
- var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
8
- var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
9
5
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
10
6
  var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
7
+ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
11
8
  var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
12
9
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
13
10
  var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
14
11
  var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
15
12
  var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
16
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
+ var msw = require('msw');
15
+ var _lastIndexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/last-index-of');
16
+ var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
17
17
 
18
18
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
19
19
 
20
- var _lastIndexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_lastIndexOfInstanceProperty);
21
- var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
22
- var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
23
20
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
24
21
  var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
22
+ var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
25
23
  var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
26
24
  var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
27
25
  var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
28
26
  var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
29
27
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
28
+ var _lastIndexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_lastIndexOfInstanceProperty);
29
+ var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
30
30
 
31
- const handlers$8 = {
31
+ const handlers$g = {
32
32
  TotalNumberOfStores: {
33
33
  all: total => msw.graphql.query('TotalNumberOfStores', (req, res, ctx) => {
34
34
  return res(ctx.data({
@@ -39,14 +39,16 @@ const handlers$8 = {
39
39
  })
40
40
  }
41
41
  };
42
+ var handlers$h = handlers$g;
42
43
 
43
- const handlers$7 = {
44
+ const handlers$e = {
44
45
  TypeDefinitions: {
45
46
  all: typeDefinitions => msw.graphql.query('FetchTypeDefinitionsQuery', (req, res, ctx) => res(ctx.data({
46
47
  typeDefinitions
47
48
  })))
48
49
  }
49
50
  };
51
+ var handlers$f = handlers$e;
50
52
 
51
53
  const graphqlQueries = {
52
54
  ASSOCIATE_ROLE: 'associateRoles',
@@ -71,7 +73,7 @@ const graphqlQueries = {
71
73
  TAX_CATEGORY: 'taxCategories',
72
74
  ZONE: 'zones'
73
75
  };
74
- const handlers$6 = {
76
+ const handlers$c = {
75
77
  DuplicatedField: {
76
78
  total: (total, resourceType) => msw.graphql.query('FetchResourceTypeDuplicatedField', (req, res, ctx) => {
77
79
  if (!graphqlQueries[resourceType]) return res(ctx.data({}));
@@ -83,16 +85,18 @@ const handlers$6 = {
83
85
  })
84
86
  }
85
87
  };
88
+ var handlers$d = handlers$c;
86
89
 
87
- const handlers$5 = {
90
+ const handlers$a = {
88
91
  ProductSelections: {
89
92
  all: productSelections => msw.graphql.query('FetchProductSelections', (req, res, ctx) => res(ctx.data({
90
93
  productSelections
91
94
  })))
92
95
  }
93
96
  };
97
+ var handlers$b = handlers$a;
94
98
 
95
- const handlers$4 = {
99
+ const handlers$8 = {
96
100
  ProductSelections: {
97
101
  total: total => msw.graphql.query('FetchProductSelectionsTotal', (req, res, ctx) => res(ctx.data({
98
102
  productSelections: {
@@ -102,12 +106,13 @@ const handlers$4 = {
102
106
  })))
103
107
  }
104
108
  };
109
+ var handlers$9 = handlers$8;
105
110
 
106
111
  const extractKeysFromWherePredicateClause = function () {
107
112
  let whereClause = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
108
113
  return whereClause.substring(_lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '("') + 1, _lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '")')).replace(/["]/g, '').split(', ');
109
114
  };
110
- const handlers$3 = {
115
+ const handlers$6 = {
111
116
  StoresList: {
112
117
  all: stores => msw.graphql.query('FetchStoresQuery', (req, res, ctx) => {
113
118
  // GIVEN req.variables.where is specified
@@ -155,8 +160,9 @@ const handlers$3 = {
155
160
  })
156
161
  }
157
162
  };
163
+ var handlers$7 = handlers$6;
158
164
 
159
- const handlers$2 = {
165
+ const handlers$4 = {
160
166
  FetchStoresByField: {
161
167
  all: stores => msw.graphql.query('FetchStoresByField', (req, res, ctx) => {
162
168
  return res(ctx.data({
@@ -165,8 +171,9 @@ const handlers$2 = {
165
171
  })
166
172
  }
167
173
  };
174
+ var handlers$5 = handlers$4;
168
175
 
169
- const handlers$1 = {
176
+ const handlers$2 = {
170
177
  FetchStoresByWherePredicate: {
171
178
  all: stores => msw.graphql.query('FetchStoresByWherePredicate', (req, res, ctx) => {
172
179
  return res(ctx.data({
@@ -178,6 +185,7 @@ const handlers$1 = {
178
185
  })
179
186
  }
180
187
  };
188
+ var handlers$3 = handlers$2;
181
189
 
182
190
  const handlers = {
183
191
  PlatformLimits: {
@@ -186,6 +194,7 @@ const handlers = {
186
194
  })))
187
195
  }
188
196
  };
197
+ var handlers$1 = handlers;
189
198
 
190
199
  function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
191
200
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -208,12 +217,12 @@ const createFetchStoreDistributionChannelsQueryMock = custom => _objectSpread({
208
217
  }, custom);
209
218
 
210
219
  exports.createFetchStoreDistributionChannelsQueryMock = createFetchStoreDistributionChannelsQueryMock;
211
- exports.customFieldDefinitionsMockHanders = handlers$7;
212
- exports.isFieldDuplicatedMockHandlers = handlers$6;
213
- exports.platformLimitsMockHandlers = handlers;
214
- exports.productSelectionsFetcherMockHandler = handlers$5;
215
- exports.productSelectionsTotalFetcherMockHandler = handlers$4;
216
- exports.storesListConnectorMockHandlers = handlers$3;
217
- exports.useStoreByFieldFetcherHandlers = handlers$2;
218
- exports.useStoresByWherePredicateFetcherHandlers = handlers$1;
219
- exports.useTotalNumberOfStoresFetcherHandlers = handlers$8;
220
+ exports.customFieldDefinitionsMockHanders = handlers$f;
221
+ exports.isFieldDuplicatedMockHandlers = handlers$d;
222
+ exports.platformLimitsMockHandlers = handlers$1;
223
+ exports.productSelectionsFetcherMockHandler = handlers$b;
224
+ exports.productSelectionsTotalFetcherMockHandler = handlers$9;
225
+ exports.storesListConnectorMockHandlers = handlers$7;
226
+ exports.useStoreByFieldFetcherHandlers = handlers$5;
227
+ exports.useStoresByWherePredicateFetcherHandlers = handlers$3;
228
+ exports.useTotalNumberOfStoresFetcherHandlers = handlers$h;
@@ -1,17 +1,17 @@
1
- import { graphql } from 'msw';
2
- import _lastIndexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/last-index-of';
3
- import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
4
- import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
5
1
  import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
6
2
  import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
3
+ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
7
4
  import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
8
5
  import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
9
6
  import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
10
7
  import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
11
8
  import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
12
9
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
+ import { graphql } from 'msw';
11
+ import _lastIndexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/last-index-of';
12
+ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
13
13
 
14
- const handlers$8 = {
14
+ const handlers$g = {
15
15
  TotalNumberOfStores: {
16
16
  all: total => graphql.query('TotalNumberOfStores', (req, res, ctx) => {
17
17
  return res(ctx.data({
@@ -22,14 +22,16 @@ const handlers$8 = {
22
22
  })
23
23
  }
24
24
  };
25
+ var handlers$h = handlers$g;
25
26
 
26
- const handlers$7 = {
27
+ const handlers$e = {
27
28
  TypeDefinitions: {
28
29
  all: typeDefinitions => graphql.query('FetchTypeDefinitionsQuery', (req, res, ctx) => res(ctx.data({
29
30
  typeDefinitions
30
31
  })))
31
32
  }
32
33
  };
34
+ var handlers$f = handlers$e;
33
35
 
34
36
  const graphqlQueries = {
35
37
  ASSOCIATE_ROLE: 'associateRoles',
@@ -54,7 +56,7 @@ const graphqlQueries = {
54
56
  TAX_CATEGORY: 'taxCategories',
55
57
  ZONE: 'zones'
56
58
  };
57
- const handlers$6 = {
59
+ const handlers$c = {
58
60
  DuplicatedField: {
59
61
  total: (total, resourceType) => graphql.query('FetchResourceTypeDuplicatedField', (req, res, ctx) => {
60
62
  if (!graphqlQueries[resourceType]) return res(ctx.data({}));
@@ -66,16 +68,18 @@ const handlers$6 = {
66
68
  })
67
69
  }
68
70
  };
71
+ var handlers$d = handlers$c;
69
72
 
70
- const handlers$5 = {
73
+ const handlers$a = {
71
74
  ProductSelections: {
72
75
  all: productSelections => graphql.query('FetchProductSelections', (req, res, ctx) => res(ctx.data({
73
76
  productSelections
74
77
  })))
75
78
  }
76
79
  };
80
+ var handlers$b = handlers$a;
77
81
 
78
- const handlers$4 = {
82
+ const handlers$8 = {
79
83
  ProductSelections: {
80
84
  total: total => graphql.query('FetchProductSelectionsTotal', (req, res, ctx) => res(ctx.data({
81
85
  productSelections: {
@@ -85,12 +89,13 @@ const handlers$4 = {
85
89
  })))
86
90
  }
87
91
  };
92
+ var handlers$9 = handlers$8;
88
93
 
89
94
  const extractKeysFromWherePredicateClause = function () {
90
95
  let whereClause = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
91
96
  return whereClause.substring(_lastIndexOfInstanceProperty(whereClause).call(whereClause, '("') + 1, _lastIndexOfInstanceProperty(whereClause).call(whereClause, '")')).replace(/["]/g, '').split(', ');
92
97
  };
93
- const handlers$3 = {
98
+ const handlers$6 = {
94
99
  StoresList: {
95
100
  all: stores => graphql.query('FetchStoresQuery', (req, res, ctx) => {
96
101
  // GIVEN req.variables.where is specified
@@ -138,8 +143,9 @@ const handlers$3 = {
138
143
  })
139
144
  }
140
145
  };
146
+ var handlers$7 = handlers$6;
141
147
 
142
- const handlers$2 = {
148
+ const handlers$4 = {
143
149
  FetchStoresByField: {
144
150
  all: stores => graphql.query('FetchStoresByField', (req, res, ctx) => {
145
151
  return res(ctx.data({
@@ -148,8 +154,9 @@ const handlers$2 = {
148
154
  })
149
155
  }
150
156
  };
157
+ var handlers$5 = handlers$4;
151
158
 
152
- const handlers$1 = {
159
+ const handlers$2 = {
153
160
  FetchStoresByWherePredicate: {
154
161
  all: stores => graphql.query('FetchStoresByWherePredicate', (req, res, ctx) => {
155
162
  return res(ctx.data({
@@ -161,6 +168,7 @@ const handlers$1 = {
161
168
  })
162
169
  }
163
170
  };
171
+ var handlers$3 = handlers$2;
164
172
 
165
173
  const handlers = {
166
174
  PlatformLimits: {
@@ -169,6 +177,7 @@ const handlers = {
169
177
  })))
170
178
  }
171
179
  };
180
+ var handlers$1 = handlers;
172
181
 
173
182
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
174
183
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -190,4 +199,4 @@ const createFetchStoreDistributionChannelsQueryMock = custom => _objectSpread({
190
199
  }
191
200
  }, custom);
192
201
 
193
- export { createFetchStoreDistributionChannelsQueryMock, handlers$7 as customFieldDefinitionsMockHanders, handlers$6 as isFieldDuplicatedMockHandlers, handlers as platformLimitsMockHandlers, handlers$5 as productSelectionsFetcherMockHandler, handlers$4 as productSelectionsTotalFetcherMockHandler, handlers$3 as storesListConnectorMockHandlers, handlers$2 as useStoreByFieldFetcherHandlers, handlers$1 as useStoresByWherePredicateFetcherHandlers, handlers$8 as useTotalNumberOfStoresFetcherHandlers };
202
+ export { createFetchStoreDistributionChannelsQueryMock, handlers$f as customFieldDefinitionsMockHanders, handlers$d as isFieldDuplicatedMockHandlers, handlers$1 as platformLimitsMockHandlers, handlers$b as productSelectionsFetcherMockHandler, handlers$9 as productSelectionsTotalFetcherMockHandler, handlers$7 as storesListConnectorMockHandlers, handlers$5 as useStoreByFieldFetcherHandlers, handlers$3 as useStoresByWherePredicateFetcherHandlers, handlers$h as useTotalNumberOfStoresFetcherHandlers };