@plasmicpkgs/commerce 0.0.3 → 0.0.5
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.cjs.development.js +20 -13
- package/dist/commerce.cjs.development.js.map +1 -1
- package/dist/commerce.cjs.production.min.js +1 -1
- package/dist/commerce.cjs.production.min.js.map +1 -1
- package/dist/commerce.esm.js +20 -13
- package/dist/commerce.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -264,9 +264,9 @@ var runtime = (function (exports) {
|
|
|
264
264
|
// This is a polyfill for %IteratorPrototype% for environments that
|
|
265
265
|
// don't natively support it.
|
|
266
266
|
var IteratorPrototype = {};
|
|
267
|
-
IteratorPrototype
|
|
267
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
268
268
|
return this;
|
|
269
|
-
};
|
|
269
|
+
});
|
|
270
270
|
|
|
271
271
|
var getProto = Object.getPrototypeOf;
|
|
272
272
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
@@ -280,8 +280,9 @@ var runtime = (function (exports) {
|
|
|
280
280
|
|
|
281
281
|
var Gp = GeneratorFunctionPrototype.prototype =
|
|
282
282
|
Generator.prototype = Object.create(IteratorPrototype);
|
|
283
|
-
GeneratorFunction.prototype =
|
|
284
|
-
|
|
283
|
+
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
284
|
+
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
285
|
+
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
285
286
|
GeneratorFunction.displayName = define(
|
|
286
287
|
GeneratorFunctionPrototype,
|
|
287
288
|
toStringTagSymbol,
|
|
@@ -395,9 +396,9 @@ var runtime = (function (exports) {
|
|
|
395
396
|
}
|
|
396
397
|
|
|
397
398
|
defineIteratorMethods(AsyncIterator.prototype);
|
|
398
|
-
AsyncIterator.prototype
|
|
399
|
+
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
399
400
|
return this;
|
|
400
|
-
};
|
|
401
|
+
});
|
|
401
402
|
exports.AsyncIterator = AsyncIterator;
|
|
402
403
|
|
|
403
404
|
// Note that simple async functions are implemented on top of
|
|
@@ -590,13 +591,13 @@ var runtime = (function (exports) {
|
|
|
590
591
|
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
591
592
|
// object to not be returned from this call. This ensures that doesn't happen.
|
|
592
593
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
593
|
-
Gp
|
|
594
|
+
define(Gp, iteratorSymbol, function() {
|
|
594
595
|
return this;
|
|
595
|
-
};
|
|
596
|
+
});
|
|
596
597
|
|
|
597
|
-
Gp
|
|
598
|
+
define(Gp, "toString", function() {
|
|
598
599
|
return "[object Generator]";
|
|
599
|
-
};
|
|
600
|
+
});
|
|
600
601
|
|
|
601
602
|
function pushTryEntry(locs) {
|
|
602
603
|
var entry = { tryLoc: locs[0] };
|
|
@@ -915,14 +916,19 @@ try {
|
|
|
915
916
|
} catch (accidentalStrictMode) {
|
|
916
917
|
// This module should not be running in strict mode, so the above
|
|
917
918
|
// assignment should always work unless something is misconfigured. Just
|
|
918
|
-
// in case runtime.js accidentally runs in strict mode,
|
|
919
|
+
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
920
|
+
// we can explicitly access globalThis. In older engines we can escape
|
|
919
921
|
// strict mode using a global Function call. This could conceivably fail
|
|
920
922
|
// if a Content Security Policy forbids using Function, but in that case
|
|
921
923
|
// the proper solution is to fix the accidental strict mode problem. If
|
|
922
924
|
// you've misconfigured your bundler to force strict mode and applied a
|
|
923
925
|
// CSP to forbid Function, and you're not willing to fix either of those
|
|
924
926
|
// problems, please detail your unique predicament in a GitHub issue.
|
|
925
|
-
|
|
927
|
+
if (typeof globalThis === "object") {
|
|
928
|
+
globalThis.regeneratorRuntime = runtime;
|
|
929
|
+
} else {
|
|
930
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
931
|
+
}
|
|
926
932
|
}
|
|
927
933
|
});
|
|
928
934
|
|
|
@@ -940,6 +946,7 @@ function useProduct() {
|
|
|
940
946
|
return React.useContext(ProductContext);
|
|
941
947
|
}
|
|
942
948
|
|
|
949
|
+
var _excluded = ["children"];
|
|
943
950
|
var Commerce = /*#__PURE__*/React.createContext({});
|
|
944
951
|
function CoreCommerceProvider(_ref) {
|
|
945
952
|
var provider = _ref.provider,
|
|
@@ -967,7 +974,7 @@ function CoreCommerceProvider(_ref) {
|
|
|
967
974
|
function getCommerceProvider(provider) {
|
|
968
975
|
return function CommerceProvider(_ref2) {
|
|
969
976
|
var children = _ref2.children,
|
|
970
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
977
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded);
|
|
971
978
|
|
|
972
979
|
return React__default.createElement(CoreCommerceProvider, {
|
|
973
980
|
provider: _extends({}, provider, props)
|