@plasmicpkgs/commerce-shopify 0.0.217 → 0.0.219

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.
@@ -4,6 +4,79 @@ import React, { useMemo, useCallback } from 'react';
4
4
  import Cookies from 'js-cookie';
5
5
  import debounce from 'debounce';
6
6
 
7
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
8
+ try {
9
+ var i = n[a](c),
10
+ u = i.value;
11
+ } catch (n) {
12
+ return void e(n);
13
+ }
14
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
15
+ }
16
+ function _asyncToGenerator(n) {
17
+ return function () {
18
+ var t = this,
19
+ e = arguments;
20
+ return new Promise(function (r, o) {
21
+ var a = n.apply(t, e);
22
+ function _next(n) {
23
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
24
+ }
25
+ function _throw(n) {
26
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
27
+ }
28
+ _next(void 0);
29
+ });
30
+ };
31
+ }
32
+ function _construct(t, e, r) {
33
+ if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
34
+ var o = [null];
35
+ o.push.apply(o, e);
36
+ var p = new (t.bind.apply(t, o))();
37
+ return r && _setPrototypeOf(p, r.prototype), p;
38
+ }
39
+ function _extends() {
40
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
41
+ for (var e = 1; e < arguments.length; e++) {
42
+ var t = arguments[e];
43
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
44
+ }
45
+ return n;
46
+ }, _extends.apply(null, arguments);
47
+ }
48
+ function _getPrototypeOf(t) {
49
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
50
+ return t.__proto__ || Object.getPrototypeOf(t);
51
+ }, _getPrototypeOf(t);
52
+ }
53
+ function _inheritsLoose(t, o) {
54
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
55
+ }
56
+ function _isNativeFunction(t) {
57
+ try {
58
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
59
+ } catch (n) {
60
+ return "function" == typeof t;
61
+ }
62
+ }
63
+ function _isNativeReflectConstruct() {
64
+ try {
65
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
66
+ } catch (t) {}
67
+ return (_isNativeReflectConstruct = function () {
68
+ return !!t;
69
+ })();
70
+ }
71
+ function _objectWithoutPropertiesLoose(r, e) {
72
+ if (null == r) return {};
73
+ var t = {};
74
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
75
+ if (-1 !== e.indexOf(n)) continue;
76
+ t[n] = r[n];
77
+ }
78
+ return t;
79
+ }
7
80
  function _regeneratorRuntime() {
8
81
  _regeneratorRuntime = function () {
9
82
  return e;
@@ -112,7 +185,7 @@ function _regeneratorRuntime() {
112
185
  function makeInvokeMethod(e, r, n) {
113
186
  var o = h;
114
187
  return function (i, a) {
115
- if (o === f) throw new Error("Generator is already running");
188
+ if (o === f) throw Error("Generator is already running");
116
189
  if (o === s) {
117
190
  if ("throw" === i) throw a;
118
191
  return {
@@ -254,7 +327,7 @@ function _regeneratorRuntime() {
254
327
  } else if (c) {
255
328
  if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
256
329
  } else {
257
- if (!u) throw new Error("try statement without catch or finally");
330
+ if (!u) throw Error("try statement without catch or finally");
258
331
  if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
259
332
  }
260
333
  }
@@ -294,7 +367,7 @@ function _regeneratorRuntime() {
294
367
  return o;
295
368
  }
296
369
  }
297
- throw new Error("illegal catch attempt");
370
+ throw Error("illegal catch attempt");
298
371
  },
299
372
  delegateYield: function (e, r, n) {
300
373
  return this.delegate = {
@@ -305,134 +378,32 @@ function _regeneratorRuntime() {
305
378
  }
306
379
  }, e;
307
380
  }
308
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
309
- try {
310
- var info = gen[key](arg);
311
- var value = info.value;
312
- } catch (error) {
313
- reject(error);
314
- return;
315
- }
316
- if (info.done) {
317
- resolve(value);
318
- } else {
319
- Promise.resolve(value).then(_next, _throw);
320
- }
321
- }
322
- function _asyncToGenerator(fn) {
323
- return function () {
324
- var self = this,
325
- args = arguments;
326
- return new Promise(function (resolve, reject) {
327
- var gen = fn.apply(self, args);
328
- function _next(value) {
329
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
330
- }
331
- function _throw(err) {
332
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
333
- }
334
- _next(undefined);
335
- });
336
- };
337
- }
338
- function _extends() {
339
- _extends = Object.assign ? Object.assign.bind() : function (target) {
340
- for (var i = 1; i < arguments.length; i++) {
341
- var source = arguments[i];
342
- for (var key in source) {
343
- if (Object.prototype.hasOwnProperty.call(source, key)) {
344
- target[key] = source[key];
345
- }
346
- }
347
- }
348
- return target;
349
- };
350
- return _extends.apply(this, arguments);
351
- }
352
- function _inheritsLoose(subClass, superClass) {
353
- subClass.prototype = Object.create(superClass.prototype);
354
- subClass.prototype.constructor = subClass;
355
- _setPrototypeOf(subClass, superClass);
356
- }
357
- function _getPrototypeOf(o) {
358
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
359
- return o.__proto__ || Object.getPrototypeOf(o);
360
- };
361
- return _getPrototypeOf(o);
362
- }
363
- function _setPrototypeOf(o, p) {
364
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
365
- o.__proto__ = p;
366
- return o;
367
- };
368
- return _setPrototypeOf(o, p);
369
- }
370
- function _isNativeReflectConstruct() {
371
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
372
- if (Reflect.construct.sham) return false;
373
- if (typeof Proxy === "function") return true;
374
- try {
375
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
376
- return true;
377
- } catch (e) {
378
- return false;
379
- }
380
- }
381
- function _construct(Parent, args, Class) {
382
- if (_isNativeReflectConstruct()) {
383
- _construct = Reflect.construct.bind();
384
- } else {
385
- _construct = function _construct(Parent, args, Class) {
386
- var a = [null];
387
- a.push.apply(a, args);
388
- var Constructor = Function.bind.apply(Parent, a);
389
- var instance = new Constructor();
390
- if (Class) _setPrototypeOf(instance, Class.prototype);
391
- return instance;
392
- };
393
- }
394
- return _construct.apply(null, arguments);
395
- }
396
- function _isNativeFunction(fn) {
397
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
381
+ function _setPrototypeOf(t, e) {
382
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
383
+ return t.__proto__ = e, t;
384
+ }, _setPrototypeOf(t, e);
398
385
  }
399
- function _wrapNativeSuper(Class) {
400
- var _cache = typeof Map === "function" ? new Map() : undefined;
401
- _wrapNativeSuper = function _wrapNativeSuper(Class) {
402
- if (Class === null || !_isNativeFunction(Class)) return Class;
403
- if (typeof Class !== "function") {
404
- throw new TypeError("Super expression must either be null or a function");
405
- }
406
- if (typeof _cache !== "undefined") {
407
- if (_cache.has(Class)) return _cache.get(Class);
408
- _cache.set(Class, Wrapper);
386
+ function _wrapNativeSuper(t) {
387
+ var r = "function" == typeof Map ? new Map() : void 0;
388
+ return _wrapNativeSuper = function (t) {
389
+ if (null === t || !_isNativeFunction(t)) return t;
390
+ if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
391
+ if (void 0 !== r) {
392
+ if (r.has(t)) return r.get(t);
393
+ r.set(t, Wrapper);
409
394
  }
410
395
  function Wrapper() {
411
- return _construct(Class, arguments, _getPrototypeOf(this).constructor);
396
+ return _construct(t, arguments, _getPrototypeOf(this).constructor);
412
397
  }
413
- Wrapper.prototype = Object.create(Class.prototype, {
398
+ return Wrapper.prototype = Object.create(t.prototype, {
414
399
  constructor: {
415
400
  value: Wrapper,
416
- enumerable: false,
417
- writable: true,
418
- configurable: true
401
+ enumerable: !1,
402
+ writable: !0,
403
+ configurable: !0
419
404
  }
420
- });
421
- return _setPrototypeOf(Wrapper, Class);
422
- };
423
- return _wrapNativeSuper(Class);
424
- }
425
- function _objectWithoutPropertiesLoose(source, excluded) {
426
- if (source == null) return {};
427
- var target = {};
428
- var sourceKeys = Object.keys(source);
429
- var key, i;
430
- for (i = 0; i < sourceKeys.length; i++) {
431
- key = sourceKeys[i];
432
- if (excluded.indexOf(key) >= 0) continue;
433
- target[key] = source[key];
434
- }
435
- return target;
405
+ }), _setPrototypeOf(Wrapper, t);
406
+ }, _wrapNativeSuper(t);
436
407
  }
437
408
 
438
409
  var _schema;