@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.
@@ -257,9 +257,9 @@ var runtime = (function (exports) {
257
257
  // This is a polyfill for %IteratorPrototype% for environments that
258
258
  // don't natively support it.
259
259
  var IteratorPrototype = {};
260
- IteratorPrototype[iteratorSymbol] = function () {
260
+ define(IteratorPrototype, iteratorSymbol, function () {
261
261
  return this;
262
- };
262
+ });
263
263
 
264
264
  var getProto = Object.getPrototypeOf;
265
265
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
@@ -273,8 +273,9 @@ var runtime = (function (exports) {
273
273
 
274
274
  var Gp = GeneratorFunctionPrototype.prototype =
275
275
  Generator.prototype = Object.create(IteratorPrototype);
276
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
277
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
276
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
277
+ define(Gp, "constructor", GeneratorFunctionPrototype);
278
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
278
279
  GeneratorFunction.displayName = define(
279
280
  GeneratorFunctionPrototype,
280
281
  toStringTagSymbol,
@@ -388,9 +389,9 @@ var runtime = (function (exports) {
388
389
  }
389
390
 
390
391
  defineIteratorMethods(AsyncIterator.prototype);
391
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
392
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
392
393
  return this;
393
- };
394
+ });
394
395
  exports.AsyncIterator = AsyncIterator;
395
396
 
396
397
  // Note that simple async functions are implemented on top of
@@ -583,13 +584,13 @@ var runtime = (function (exports) {
583
584
  // iterator prototype chain incorrectly implement this, causing the Generator
584
585
  // object to not be returned from this call. This ensures that doesn't happen.
585
586
  // See https://github.com/facebook/regenerator/issues/274 for more details.
586
- Gp[iteratorSymbol] = function() {
587
+ define(Gp, iteratorSymbol, function() {
587
588
  return this;
588
- };
589
+ });
589
590
 
590
- Gp.toString = function() {
591
+ define(Gp, "toString", function() {
591
592
  return "[object Generator]";
592
- };
593
+ });
593
594
 
594
595
  function pushTryEntry(locs) {
595
596
  var entry = { tryLoc: locs[0] };
@@ -908,14 +909,19 @@ try {
908
909
  } catch (accidentalStrictMode) {
909
910
  // This module should not be running in strict mode, so the above
910
911
  // assignment should always work unless something is misconfigured. Just
911
- // in case runtime.js accidentally runs in strict mode, we can escape
912
+ // in case runtime.js accidentally runs in strict mode, in modern engines
913
+ // we can explicitly access globalThis. In older engines we can escape
912
914
  // strict mode using a global Function call. This could conceivably fail
913
915
  // if a Content Security Policy forbids using Function, but in that case
914
916
  // the proper solution is to fix the accidental strict mode problem. If
915
917
  // you've misconfigured your bundler to force strict mode and applied a
916
918
  // CSP to forbid Function, and you're not willing to fix either of those
917
919
  // problems, please detail your unique predicament in a GitHub issue.
918
- Function("r", "regeneratorRuntime = r")(runtime);
920
+ if (typeof globalThis === "object") {
921
+ globalThis.regeneratorRuntime = runtime;
922
+ } else {
923
+ Function("r", "regeneratorRuntime = r")(runtime);
924
+ }
919
925
  }
920
926
  });
921
927
 
@@ -933,6 +939,7 @@ function useProduct() {
933
939
  return useContext(ProductContext);
934
940
  }
935
941
 
942
+ var _excluded = ["children"];
936
943
  var Commerce = /*#__PURE__*/createContext({});
937
944
  function CoreCommerceProvider(_ref) {
938
945
  var provider = _ref.provider,
@@ -960,7 +967,7 @@ function CoreCommerceProvider(_ref) {
960
967
  function getCommerceProvider(provider) {
961
968
  return function CommerceProvider(_ref2) {
962
969
  var children = _ref2.children,
963
- props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
970
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded);
964
971
 
965
972
  return React.createElement(CoreCommerceProvider, {
966
973
  provider: _extends({}, provider, props)