@plasmicpkgs/commerce-shopify 0.0.217 → 0.0.218
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/commerce-shopify.cjs.development.js +95 -124
- package/dist/commerce-shopify.cjs.development.js.map +1 -1
- package/dist/commerce-shopify.cjs.production.min.js +1 -1
- package/dist/commerce-shopify.cjs.production.min.js.map +1 -1
- package/dist/commerce-shopify.esm.js +95 -124
- package/dist/commerce-shopify.esm.js.map +1 -1
- package/package.json +4 -4
|
@@ -11,6 +11,79 @@ var React__default = _interopDefault(React);
|
|
|
11
11
|
var Cookies = _interopDefault(require('js-cookie'));
|
|
12
12
|
var debounce = _interopDefault(require('debounce'));
|
|
13
13
|
|
|
14
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
15
|
+
try {
|
|
16
|
+
var i = n[a](c),
|
|
17
|
+
u = i.value;
|
|
18
|
+
} catch (n) {
|
|
19
|
+
return void e(n);
|
|
20
|
+
}
|
|
21
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
22
|
+
}
|
|
23
|
+
function _asyncToGenerator(n) {
|
|
24
|
+
return function () {
|
|
25
|
+
var t = this,
|
|
26
|
+
e = arguments;
|
|
27
|
+
return new Promise(function (r, o) {
|
|
28
|
+
var a = n.apply(t, e);
|
|
29
|
+
function _next(n) {
|
|
30
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
31
|
+
}
|
|
32
|
+
function _throw(n) {
|
|
33
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
34
|
+
}
|
|
35
|
+
_next(void 0);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function _construct(t, e, r) {
|
|
40
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
41
|
+
var o = [null];
|
|
42
|
+
o.push.apply(o, e);
|
|
43
|
+
var p = new (t.bind.apply(t, o))();
|
|
44
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
45
|
+
}
|
|
46
|
+
function _extends() {
|
|
47
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
48
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
49
|
+
var t = arguments[e];
|
|
50
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
51
|
+
}
|
|
52
|
+
return n;
|
|
53
|
+
}, _extends.apply(null, arguments);
|
|
54
|
+
}
|
|
55
|
+
function _getPrototypeOf(t) {
|
|
56
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
57
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
58
|
+
}, _getPrototypeOf(t);
|
|
59
|
+
}
|
|
60
|
+
function _inheritsLoose(t, o) {
|
|
61
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
62
|
+
}
|
|
63
|
+
function _isNativeFunction(t) {
|
|
64
|
+
try {
|
|
65
|
+
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
66
|
+
} catch (n) {
|
|
67
|
+
return "function" == typeof t;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function _isNativeReflectConstruct() {
|
|
71
|
+
try {
|
|
72
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
73
|
+
} catch (t) {}
|
|
74
|
+
return (_isNativeReflectConstruct = function () {
|
|
75
|
+
return !!t;
|
|
76
|
+
})();
|
|
77
|
+
}
|
|
78
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
79
|
+
if (null == r) return {};
|
|
80
|
+
var t = {};
|
|
81
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
82
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
83
|
+
t[n] = r[n];
|
|
84
|
+
}
|
|
85
|
+
return t;
|
|
86
|
+
}
|
|
14
87
|
function _regeneratorRuntime() {
|
|
15
88
|
_regeneratorRuntime = function () {
|
|
16
89
|
return e;
|
|
@@ -119,7 +192,7 @@ function _regeneratorRuntime() {
|
|
|
119
192
|
function makeInvokeMethod(e, r, n) {
|
|
120
193
|
var o = h;
|
|
121
194
|
return function (i, a) {
|
|
122
|
-
if (o === f) throw
|
|
195
|
+
if (o === f) throw Error("Generator is already running");
|
|
123
196
|
if (o === s) {
|
|
124
197
|
if ("throw" === i) throw a;
|
|
125
198
|
return {
|
|
@@ -261,7 +334,7 @@ function _regeneratorRuntime() {
|
|
|
261
334
|
} else if (c) {
|
|
262
335
|
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
263
336
|
} else {
|
|
264
|
-
if (!u) throw
|
|
337
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
265
338
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
266
339
|
}
|
|
267
340
|
}
|
|
@@ -301,7 +374,7 @@ function _regeneratorRuntime() {
|
|
|
301
374
|
return o;
|
|
302
375
|
}
|
|
303
376
|
}
|
|
304
|
-
throw
|
|
377
|
+
throw Error("illegal catch attempt");
|
|
305
378
|
},
|
|
306
379
|
delegateYield: function (e, r, n) {
|
|
307
380
|
return this.delegate = {
|
|
@@ -312,134 +385,32 @@ function _regeneratorRuntime() {
|
|
|
312
385
|
}
|
|
313
386
|
}, e;
|
|
314
387
|
}
|
|
315
|
-
function
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
} catch (error) {
|
|
320
|
-
reject(error);
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
323
|
-
if (info.done) {
|
|
324
|
-
resolve(value);
|
|
325
|
-
} else {
|
|
326
|
-
Promise.resolve(value).then(_next, _throw);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
function _asyncToGenerator(fn) {
|
|
330
|
-
return function () {
|
|
331
|
-
var self = this,
|
|
332
|
-
args = arguments;
|
|
333
|
-
return new Promise(function (resolve, reject) {
|
|
334
|
-
var gen = fn.apply(self, args);
|
|
335
|
-
function _next(value) {
|
|
336
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
337
|
-
}
|
|
338
|
-
function _throw(err) {
|
|
339
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
340
|
-
}
|
|
341
|
-
_next(undefined);
|
|
342
|
-
});
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
function _extends() {
|
|
346
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
347
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
348
|
-
var source = arguments[i];
|
|
349
|
-
for (var key in source) {
|
|
350
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
351
|
-
target[key] = source[key];
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
return target;
|
|
356
|
-
};
|
|
357
|
-
return _extends.apply(this, arguments);
|
|
358
|
-
}
|
|
359
|
-
function _inheritsLoose(subClass, superClass) {
|
|
360
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
361
|
-
subClass.prototype.constructor = subClass;
|
|
362
|
-
_setPrototypeOf(subClass, superClass);
|
|
363
|
-
}
|
|
364
|
-
function _getPrototypeOf(o) {
|
|
365
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
366
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
367
|
-
};
|
|
368
|
-
return _getPrototypeOf(o);
|
|
369
|
-
}
|
|
370
|
-
function _setPrototypeOf(o, p) {
|
|
371
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
372
|
-
o.__proto__ = p;
|
|
373
|
-
return o;
|
|
374
|
-
};
|
|
375
|
-
return _setPrototypeOf(o, p);
|
|
376
|
-
}
|
|
377
|
-
function _isNativeReflectConstruct() {
|
|
378
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
379
|
-
if (Reflect.construct.sham) return false;
|
|
380
|
-
if (typeof Proxy === "function") return true;
|
|
381
|
-
try {
|
|
382
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
383
|
-
return true;
|
|
384
|
-
} catch (e) {
|
|
385
|
-
return false;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
function _construct(Parent, args, Class) {
|
|
389
|
-
if (_isNativeReflectConstruct()) {
|
|
390
|
-
_construct = Reflect.construct.bind();
|
|
391
|
-
} else {
|
|
392
|
-
_construct = function _construct(Parent, args, Class) {
|
|
393
|
-
var a = [null];
|
|
394
|
-
a.push.apply(a, args);
|
|
395
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
396
|
-
var instance = new Constructor();
|
|
397
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
398
|
-
return instance;
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
return _construct.apply(null, arguments);
|
|
402
|
-
}
|
|
403
|
-
function _isNativeFunction(fn) {
|
|
404
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
388
|
+
function _setPrototypeOf(t, e) {
|
|
389
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
390
|
+
return t.__proto__ = e, t;
|
|
391
|
+
}, _setPrototypeOf(t, e);
|
|
405
392
|
}
|
|
406
|
-
function _wrapNativeSuper(
|
|
407
|
-
var
|
|
408
|
-
_wrapNativeSuper = function
|
|
409
|
-
if (
|
|
410
|
-
if (typeof
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
415
|
-
_cache.set(Class, Wrapper);
|
|
393
|
+
function _wrapNativeSuper(t) {
|
|
394
|
+
var r = "function" == typeof Map ? new Map() : void 0;
|
|
395
|
+
return _wrapNativeSuper = function (t) {
|
|
396
|
+
if (null === t || !_isNativeFunction(t)) return t;
|
|
397
|
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
398
|
+
if (void 0 !== r) {
|
|
399
|
+
if (r.has(t)) return r.get(t);
|
|
400
|
+
r.set(t, Wrapper);
|
|
416
401
|
}
|
|
417
402
|
function Wrapper() {
|
|
418
|
-
return _construct(
|
|
403
|
+
return _construct(t, arguments, _getPrototypeOf(this).constructor);
|
|
419
404
|
}
|
|
420
|
-
Wrapper.prototype = Object.create(
|
|
405
|
+
return Wrapper.prototype = Object.create(t.prototype, {
|
|
421
406
|
constructor: {
|
|
422
407
|
value: Wrapper,
|
|
423
|
-
enumerable:
|
|
424
|
-
writable:
|
|
425
|
-
configurable:
|
|
408
|
+
enumerable: !1,
|
|
409
|
+
writable: !0,
|
|
410
|
+
configurable: !0
|
|
426
411
|
}
|
|
427
|
-
});
|
|
428
|
-
|
|
429
|
-
};
|
|
430
|
-
return _wrapNativeSuper(Class);
|
|
431
|
-
}
|
|
432
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
433
|
-
if (source == null) return {};
|
|
434
|
-
var target = {};
|
|
435
|
-
var sourceKeys = Object.keys(source);
|
|
436
|
-
var key, i;
|
|
437
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
438
|
-
key = sourceKeys[i];
|
|
439
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
440
|
-
target[key] = source[key];
|
|
441
|
-
}
|
|
442
|
-
return target;
|
|
412
|
+
}), _setPrototypeOf(Wrapper, t);
|
|
413
|
+
}, _wrapNativeSuper(t);
|
|
443
414
|
}
|
|
444
415
|
|
|
445
416
|
var _schema;
|