@sawport/react-sdk 0.1.0-alpha.11 → 0.1.0-alpha.12

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.
@@ -1089,7 +1089,7 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
1089
1089
  }
1090
1090
  return isSymbol$a(value2) ? [value2] : copyArray(stringToPath$4(toString$h(value2)));
1091
1091
  }
1092
- var isProduction = process.env.NODE_ENV === "production";
1092
+ var isProduction = production === "production";
1093
1093
  function warning(condition, message) {
1094
1094
  if (!isProduction) {
1095
1095
  if (condition) {
@@ -1224,7 +1224,7 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
1224
1224
  if (hasRequiredReactIs_development)
1225
1225
  return reactIs_development;
1226
1226
  hasRequiredReactIs_development = 1;
1227
- if (process.env.NODE_ENV !== "production") {
1227
+ if (production !== "production") {
1228
1228
  (function() {
1229
1229
  var hasSymbol = typeof Symbol === "function" && Symbol.for;
1230
1230
  var REACT_ELEMENT_TYPE2 = hasSymbol ? Symbol.for("react.element") : 60103;
@@ -1378,7 +1378,7 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
1378
1378
  return reactIs$1.exports;
1379
1379
  hasRequiredReactIs = 1;
1380
1380
  (function(module2) {
1381
- if (process.env.NODE_ENV === "production") {
1381
+ if (production === "production") {
1382
1382
  module2.exports = requireReactIs_production_min();
1383
1383
  } else {
1384
1384
  module2.exports = requireReactIs_development();
@@ -1546,7 +1546,7 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
1546
1546
  FormikContext.Consumer;
1547
1547
  function useFormikContext() {
1548
1548
  var formik = React$1.useContext(FormikContext);
1549
- !!!formik ? process.env.NODE_ENV !== "production" ? warning(false, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.") : warning(false) : void 0;
1549
+ !!!formik ? production !== "production" ? warning(false, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.") : warning(false) : void 0;
1550
1550
  return formik;
1551
1551
  }
1552
1552
  function formikReducer(state, msg) {
@@ -1628,9 +1628,9 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
1628
1628
  var initialStatus = React$1.useRef(props.initialStatus);
1629
1629
  var isMounted = React$1.useRef(false);
1630
1630
  var fieldRegistry = React$1.useRef({});
1631
- if (process.env.NODE_ENV !== "production") {
1631
+ if (production !== "production") {
1632
1632
  React$1.useEffect(function() {
1633
- !(typeof isInitialValid === "undefined") ? process.env.NODE_ENV !== "production" ? warning(false, "isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.") : warning(false) : void 0;
1633
+ !(typeof isInitialValid === "undefined") ? production !== "production" ? warning(false, "isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.") : warning(false) : void 0;
1634
1634
  }, []);
1635
1635
  }
1636
1636
  React$1.useEffect(function() {
@@ -1657,7 +1657,7 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
1657
1657
  maybePromisedErrors.then(function(errors) {
1658
1658
  resolve(errors || emptyErrors);
1659
1659
  }, function(actualException) {
1660
- if (process.env.NODE_ENV !== "production") {
1660
+ if (production !== "production") {
1661
1661
  console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", actualException);
1662
1662
  }
1663
1663
  reject(actualException);
@@ -1678,7 +1678,7 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
1678
1678
  if (err.name === "ValidationError") {
1679
1679
  resolve(yupToFormErrors(err));
1680
1680
  } else {
1681
- if (process.env.NODE_ENV !== "production") {
1681
+ if (production !== "production") {
1682
1682
  console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", err);
1683
1683
  }
1684
1684
  reject(err);
@@ -1938,7 +1938,7 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
1938
1938
  var target = eventOrTextValue.target ? eventOrTextValue.target : eventOrTextValue.currentTarget;
1939
1939
  var type = target.type, name = target.name, id2 = target.id, value2 = target.value, checked = target.checked, outerHTML = target.outerHTML, options = target.options, multiple = target.multiple;
1940
1940
  field = maybePath ? maybePath : name ? name : id2;
1941
- if (!field && process.env.NODE_ENV !== "production") {
1941
+ if (!field && production !== "production") {
1942
1942
  warnAboutMissingIdentifier({
1943
1943
  htmlContent: outerHTML,
1944
1944
  documentationAnchorLink: "handlechange-e-reactchangeeventany--void",
@@ -1980,7 +1980,7 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
1980
1980
  }
1981
1981
  var _e$target = e2.target, name = _e$target.name, id2 = _e$target.id, outerHTML = _e$target.outerHTML;
1982
1982
  var field = path2 ? path2 : name ? name : id2;
1983
- if (!field && process.env.NODE_ENV !== "production") {
1983
+ if (!field && production !== "production") {
1984
1984
  warnAboutMissingIdentifier({
1985
1985
  htmlContent: outerHTML,
1986
1986
  documentationAnchorLink: "handleblur-e-any--void",
@@ -2075,10 +2075,10 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
2075
2075
  if (e2 && e2.stopPropagation && isFunction$6(e2.stopPropagation)) {
2076
2076
  e2.stopPropagation();
2077
2077
  }
2078
- if (process.env.NODE_ENV !== "production" && typeof document !== "undefined") {
2078
+ if (production !== "production" && typeof document !== "undefined") {
2079
2079
  var activeElement = getActiveElement();
2080
2080
  if (activeElement !== null && activeElement instanceof HTMLButtonElement) {
2081
- !(activeElement.attributes && activeElement.attributes.getNamedItem("type")) ? process.env.NODE_ENV !== "production" ? warning(false, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.') : warning(false) : void 0;
2081
+ !(activeElement.attributes && activeElement.attributes.getNamedItem("type")) ? production !== "production" ? warning(false, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.') : warning(false) : void 0;
2082
2082
  }
2083
2083
  }
2084
2084
  submitForm()["catch"](function(reason2) {
@@ -2211,9 +2211,9 @@ var sawportReactSDK = function(exports, React$1, ReactDOM2) {
2211
2211
  React$1.useImperativeHandle(innerRef, function() {
2212
2212
  return formikbag;
2213
2213
  });
2214
- if (process.env.NODE_ENV !== "production") {
2214
+ if (production !== "production") {
2215
2215
  React$1.useEffect(function() {
2216
- !!props.render ? process.env.NODE_ENV !== "production" ? warning(false, "<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>") : warning(false) : void 0;
2216
+ !!props.render ? production !== "production" ? warning(false, "<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>") : warning(false) : void 0;
2217
2217
  }, []);
2218
2218
  }
2219
2219
  return React$1.createElement(FormikProvider, {
@@ -6152,7 +6152,7 @@ attempted value: ${formattedValue}
6152
6152
  hasRequiredCheckPropTypes = 1;
6153
6153
  var printWarning = function() {
6154
6154
  };
6155
- if (process.env.NODE_ENV !== "production") {
6155
+ if (production !== "production") {
6156
6156
  var ReactPropTypesSecret = requireReactPropTypesSecret();
6157
6157
  var loggedTypeFailures = {};
6158
6158
  var has2 = requireHas();
@@ -6168,7 +6168,7 @@ attempted value: ${formattedValue}
6168
6168
  };
6169
6169
  }
6170
6170
  function checkPropTypes(typeSpecs, values, location2, componentName, getStack) {
6171
- if (process.env.NODE_ENV !== "production") {
6171
+ if (production !== "production") {
6172
6172
  for (var typeSpecName in typeSpecs) {
6173
6173
  if (has2(typeSpecs, typeSpecName)) {
6174
6174
  var error;
@@ -6201,7 +6201,7 @@ attempted value: ${formattedValue}
6201
6201
  }
6202
6202
  }
6203
6203
  checkPropTypes.resetWarningCache = function() {
6204
- if (process.env.NODE_ENV !== "production") {
6204
+ if (production !== "production") {
6205
6205
  loggedTypeFailures = {};
6206
6206
  }
6207
6207
  };
@@ -6221,7 +6221,7 @@ attempted value: ${formattedValue}
6221
6221
  var checkPropTypes = requireCheckPropTypes();
6222
6222
  var printWarning = function() {
6223
6223
  };
6224
- if (process.env.NODE_ENV !== "production") {
6224
+ if (production !== "production") {
6225
6225
  printWarning = function(text) {
6226
6226
  var message = "Warning: " + text;
6227
6227
  if (typeof console !== "undefined") {
@@ -6281,7 +6281,7 @@ attempted value: ${formattedValue}
6281
6281
  }
6282
6282
  PropTypeError.prototype = Error.prototype;
6283
6283
  function createChainableTypeChecker(validate) {
6284
- if (process.env.NODE_ENV !== "production") {
6284
+ if (production !== "production") {
6285
6285
  var manualPropTypeCallCache = {};
6286
6286
  var manualPropTypeWarningCount = 0;
6287
6287
  }
@@ -6295,7 +6295,7 @@ attempted value: ${formattedValue}
6295
6295
  );
6296
6296
  err.name = "Invariant Violation";
6297
6297
  throw err;
6298
- } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
6298
+ } else if (production !== "production" && typeof console !== "undefined") {
6299
6299
  var cacheKey = componentName + ":" + propName;
6300
6300
  if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
6301
6301
  printWarning(
@@ -6395,7 +6395,7 @@ attempted value: ${formattedValue}
6395
6395
  }
6396
6396
  function createEnumTypeChecker(expectedValues) {
6397
6397
  if (!Array.isArray(expectedValues)) {
6398
- if (process.env.NODE_ENV !== "production") {
6398
+ if (production !== "production") {
6399
6399
  if (arguments.length > 1) {
6400
6400
  printWarning(
6401
6401
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -6448,7 +6448,7 @@ attempted value: ${formattedValue}
6448
6448
  }
6449
6449
  function createUnionTypeChecker(arrayOfTypeCheckers) {
6450
6450
  if (!Array.isArray(arrayOfTypeCheckers)) {
6451
- process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
6451
+ production !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
6452
6452
  return emptyFunctionThatReturnsNull;
6453
6453
  }
6454
6454
  for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
@@ -6706,7 +6706,7 @@ attempted value: ${formattedValue}
6706
6706
  };
6707
6707
  return factoryWithThrowingShims;
6708
6708
  }
6709
- if (process.env.NODE_ENV !== "production") {
6709
+ if (production !== "production") {
6710
6710
  var ReactIs = requireReactIs();
6711
6711
  var throwOnDirectAccess = true;
6712
6712
  propTypes$h.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
@@ -6987,7 +6987,7 @@ attempted value: ${formattedValue}
6987
6987
  if (hasRequiredReactJsxRuntime_development)
6988
6988
  return reactJsxRuntime_development;
6989
6989
  hasRequiredReactJsxRuntime_development = 1;
6990
- if (process.env.NODE_ENV !== "production") {
6990
+ if (production !== "production") {
6991
6991
  (function() {
6992
6992
  var React3 = React__default.default;
6993
6993
  var REACT_ELEMENT_TYPE2 = Symbol.for("react.element");
@@ -7851,7 +7851,7 @@ attempted value: ${formattedValue}
7851
7851
  return reactJsxRuntime_development;
7852
7852
  }
7853
7853
  (function(module2) {
7854
- if (process.env.NODE_ENV === "production") {
7854
+ if (production === "production") {
7855
7855
  module2.exports = requireReactJsxRuntime_production_min();
7856
7856
  } else {
7857
7857
  module2.exports = requireReactJsxRuntime_development();
@@ -8672,13 +8672,13 @@ attempted value: ${formattedValue}
8672
8672
  function _interopRequireDefault$2(obj) {
8673
8673
  return obj && obj.__esModule ? obj : { default: obj };
8674
8674
  }
8675
- var timeoutsShape = process.env.NODE_ENV !== "production" ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
8675
+ var timeoutsShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
8676
8676
  enter: _propTypes.default.number,
8677
8677
  exit: _propTypes.default.number,
8678
8678
  appear: _propTypes.default.number
8679
8679
  }).isRequired]) : null;
8680
8680
  PropTypes$1.timeoutsShape = timeoutsShape;
8681
- var classNamesShape = process.env.NODE_ENV !== "production" ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
8681
+ var classNamesShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
8682
8682
  enter: _propTypes.default.string,
8683
8683
  exit: _propTypes.default.string,
8684
8684
  active: _propTypes.default.string
@@ -8984,7 +8984,7 @@ attempted value: ${formattedValue}
8984
8984
  return Transition2;
8985
8985
  }(_react$1.default.Component);
8986
8986
  Transition.contextType = _TransitionGroupContext.default;
8987
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
8987
+ Transition.propTypes = production !== "production" ? {
8988
8988
  children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
8989
8989
  in: PropTypes.bool,
8990
8990
  mountOnEnter: PropTypes.bool,
@@ -9196,7 +9196,7 @@ attempted value: ${formattedValue}
9196
9196
  CSSTransition2.defaultProps = {
9197
9197
  classNames: ""
9198
9198
  };
9199
- CSSTransition2.propTypes = process.env.NODE_ENV !== "production" ? _extends2({}, _Transition2.default.propTypes, {
9199
+ CSSTransition2.propTypes = production !== "production" ? _extends2({}, _Transition2.default.propTypes, {
9200
9200
  classNames: _PropTypes2.classNamesShape,
9201
9201
  onEnter: PropTypes2.func,
9202
9202
  onEntering: PropTypes2.func,
@@ -9442,7 +9442,7 @@ attempted value: ${formattedValue}
9442
9442
  };
9443
9443
  return TransitionGroup3;
9444
9444
  }(_react2.default.Component);
9445
- TransitionGroup2.propTypes = process.env.NODE_ENV !== "production" ? {
9445
+ TransitionGroup2.propTypes = production !== "production" ? {
9446
9446
  component: _propTypes2.default.any,
9447
9447
  children: _propTypes2.default.node,
9448
9448
  appear: _propTypes2.default.bool,
@@ -9563,7 +9563,7 @@ attempted value: ${formattedValue}
9563
9563
  };
9564
9564
  return ReplaceTransition3;
9565
9565
  }(_react2.default.Component);
9566
- ReplaceTransition2.propTypes = process.env.NODE_ENV !== "production" ? {
9566
+ ReplaceTransition2.propTypes = production !== "production" ? {
9567
9567
  in: _propTypes2.default.bool.isRequired,
9568
9568
  children: function children(props, propName) {
9569
9569
  if (_react2.default.Children.count(props[propName]) !== 2)
@@ -15148,7 +15148,7 @@ attempted value: ${formattedValue}
15148
15148
  function n$1(t2) {
15149
15149
  for (var e2 = arguments.length, r2 = Array(e2 > 1 ? e2 - 1 : 0), n2 = 1; n2 < e2; n2++)
15150
15150
  r2[n2 - 1] = arguments[n2];
15151
- if ("production" !== process.env.NODE_ENV) {
15151
+ if ("production" !== production) {
15152
15152
  var o2 = G[t2], i2 = o2 ? "function" == typeof o2 ? o2.apply(null, r2) : o2 : "unknown error nr: " + t2;
15153
15153
  throw Error("[Immer] " + i2);
15154
15154
  }
@@ -15224,7 +15224,7 @@ attempted value: ${formattedValue}
15224
15224
  return e2 || n$1(18, t2), e2;
15225
15225
  }
15226
15226
  function m$1() {
15227
- return "production" === process.env.NODE_ENV || M || n$1(0), M;
15227
+ return "production" === production || M || n$1(0), M;
15228
15228
  }
15229
15229
  function g(t2, e2) {
15230
15230
  e2 && (b("Patches"), t2.u = [], t2.s = [], t2.v = e2);
@@ -15269,7 +15269,7 @@ attempted value: ${formattedValue}
15269
15269
  return n2.o;
15270
15270
  }
15271
15271
  function E(t2, e2, r2, u2, a2, s2) {
15272
- if ("production" !== process.env.NODE_ENV && a2 === r2 && n$1(5), o$2(a2)) {
15272
+ if ("production" !== production && a2 === r2 && n$1(5), o$2(a2)) {
15273
15273
  var l2 = D(t2, a2, s2 && e2 && 3 !== e2.i && !c$1(e2.D, u2) ? s2.concat(u2) : void 0);
15274
15274
  if (f(r2, u2, l2), !o$2(l2))
15275
15275
  return;
@@ -15407,9 +15407,9 @@ attempted value: ${formattedValue}
15407
15407
  return arguments[0] = arguments[0][0], e2.apply(this, arguments);
15408
15408
  };
15409
15409
  }), L.deleteProperty = function(t2, e2) {
15410
- return "production" !== process.env.NODE_ENV && isNaN(parseInt(e2)) && n$1(13), H.deleteProperty.call(this, t2[0], e2);
15410
+ return "production" !== production && isNaN(parseInt(e2)) && n$1(13), H.deleteProperty.call(this, t2[0], e2);
15411
15411
  }, L.set = function(t2, e2, r2) {
15412
- return "production" !== process.env.NODE_ENV && "length" !== e2 && isNaN(parseInt(e2)) && n$1(14), H.set.call(this, t2[0], e2, r2, t2[0]);
15412
+ return "production" !== production && "length" !== e2 && isNaN(parseInt(e2)) && n$1(14), H.set.call(this, t2[0], e2, r2, t2[0]);
15413
15413
  };
15414
15414
  var Q = new (function() {
15415
15415
  function t2(t3) {
@@ -15470,7 +15470,7 @@ attempted value: ${formattedValue}
15470
15470
  return r2[$$j].C = true, P(e3), r2;
15471
15471
  }, e2.finishDraft = function(t3, e3) {
15472
15472
  var r2 = t3 && t3[$$j];
15473
- "production" !== process.env.NODE_ENV && (r2 && r2.C || n$1(9), r2.I && n$1(10));
15473
+ "production" !== production && (r2 && r2.C || n$1(9), r2.I && n$1(10));
15474
15474
  var o2 = r2.A;
15475
15475
  return g(o2, e3), A(void 0, o2);
15476
15476
  }, e2.setAutoFreeze = function(t3) {
@@ -37813,7 +37813,7 @@ attempted value: ${formattedValue}
37813
37813
  }
37814
37814
  var createRoot;
37815
37815
  var m = ReactDOM__default.default;
37816
- if (process.env.NODE_ENV === "production") {
37816
+ if (production === "production") {
37817
37817
  createRoot = m.createRoot;
37818
37818
  m.hydrateRoot;
37819
37819
  } else {
package/dist/index.js CHANGED
@@ -1068,7 +1068,7 @@ function toPath(value2) {
1068
1068
  }
1069
1069
  return isSymbol$a(value2) ? [value2] : copyArray(stringToPath$4(toString$h(value2)));
1070
1070
  }
1071
- var isProduction = process.env.NODE_ENV === "production";
1071
+ var isProduction = production === "production";
1072
1072
  function warning(condition, message) {
1073
1073
  if (!isProduction) {
1074
1074
  if (condition) {
@@ -1203,7 +1203,7 @@ function requireReactIs_development() {
1203
1203
  if (hasRequiredReactIs_development)
1204
1204
  return reactIs_development;
1205
1205
  hasRequiredReactIs_development = 1;
1206
- if (process.env.NODE_ENV !== "production") {
1206
+ if (production !== "production") {
1207
1207
  (function() {
1208
1208
  var hasSymbol = typeof Symbol === "function" && Symbol.for;
1209
1209
  var REACT_ELEMENT_TYPE2 = hasSymbol ? Symbol.for("react.element") : 60103;
@@ -1357,7 +1357,7 @@ function requireReactIs() {
1357
1357
  return reactIs$1.exports;
1358
1358
  hasRequiredReactIs = 1;
1359
1359
  (function(module2) {
1360
- if (process.env.NODE_ENV === "production") {
1360
+ if (production === "production") {
1361
1361
  module2.exports = requireReactIs_production_min();
1362
1362
  } else {
1363
1363
  module2.exports = requireReactIs_development();
@@ -1525,7 +1525,7 @@ var FormikProvider = FormikContext.Provider;
1525
1525
  FormikContext.Consumer;
1526
1526
  function useFormikContext() {
1527
1527
  var formik = useContext(FormikContext);
1528
- !!!formik ? process.env.NODE_ENV !== "production" ? warning(false, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.") : warning(false) : void 0;
1528
+ !!!formik ? production !== "production" ? warning(false, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.") : warning(false) : void 0;
1529
1529
  return formik;
1530
1530
  }
1531
1531
  function formikReducer(state, msg) {
@@ -1607,9 +1607,9 @@ function useFormik(_ref) {
1607
1607
  var initialStatus = useRef(props.initialStatus);
1608
1608
  var isMounted = useRef(false);
1609
1609
  var fieldRegistry = useRef({});
1610
- if (process.env.NODE_ENV !== "production") {
1610
+ if (production !== "production") {
1611
1611
  useEffect(function() {
1612
- !(typeof isInitialValid === "undefined") ? process.env.NODE_ENV !== "production" ? warning(false, "isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.") : warning(false) : void 0;
1612
+ !(typeof isInitialValid === "undefined") ? production !== "production" ? warning(false, "isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.") : warning(false) : void 0;
1613
1613
  }, []);
1614
1614
  }
1615
1615
  useEffect(function() {
@@ -1636,7 +1636,7 @@ function useFormik(_ref) {
1636
1636
  maybePromisedErrors.then(function(errors) {
1637
1637
  resolve(errors || emptyErrors);
1638
1638
  }, function(actualException) {
1639
- if (process.env.NODE_ENV !== "production") {
1639
+ if (production !== "production") {
1640
1640
  console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", actualException);
1641
1641
  }
1642
1642
  reject(actualException);
@@ -1657,7 +1657,7 @@ function useFormik(_ref) {
1657
1657
  if (err.name === "ValidationError") {
1658
1658
  resolve(yupToFormErrors(err));
1659
1659
  } else {
1660
- if (process.env.NODE_ENV !== "production") {
1660
+ if (production !== "production") {
1661
1661
  console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", err);
1662
1662
  }
1663
1663
  reject(err);
@@ -1917,7 +1917,7 @@ function useFormik(_ref) {
1917
1917
  var target = eventOrTextValue.target ? eventOrTextValue.target : eventOrTextValue.currentTarget;
1918
1918
  var type = target.type, name = target.name, id2 = target.id, value2 = target.value, checked = target.checked, outerHTML = target.outerHTML, options = target.options, multiple = target.multiple;
1919
1919
  field = maybePath ? maybePath : name ? name : id2;
1920
- if (!field && process.env.NODE_ENV !== "production") {
1920
+ if (!field && production !== "production") {
1921
1921
  warnAboutMissingIdentifier({
1922
1922
  htmlContent: outerHTML,
1923
1923
  documentationAnchorLink: "handlechange-e-reactchangeeventany--void",
@@ -1959,7 +1959,7 @@ function useFormik(_ref) {
1959
1959
  }
1960
1960
  var _e$target = e2.target, name = _e$target.name, id2 = _e$target.id, outerHTML = _e$target.outerHTML;
1961
1961
  var field = path2 ? path2 : name ? name : id2;
1962
- if (!field && process.env.NODE_ENV !== "production") {
1962
+ if (!field && production !== "production") {
1963
1963
  warnAboutMissingIdentifier({
1964
1964
  htmlContent: outerHTML,
1965
1965
  documentationAnchorLink: "handleblur-e-any--void",
@@ -2054,10 +2054,10 @@ function useFormik(_ref) {
2054
2054
  if (e2 && e2.stopPropagation && isFunction$6(e2.stopPropagation)) {
2055
2055
  e2.stopPropagation();
2056
2056
  }
2057
- if (process.env.NODE_ENV !== "production" && typeof document !== "undefined") {
2057
+ if (production !== "production" && typeof document !== "undefined") {
2058
2058
  var activeElement = getActiveElement();
2059
2059
  if (activeElement !== null && activeElement instanceof HTMLButtonElement) {
2060
- !(activeElement.attributes && activeElement.attributes.getNamedItem("type")) ? process.env.NODE_ENV !== "production" ? warning(false, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.') : warning(false) : void 0;
2060
+ !(activeElement.attributes && activeElement.attributes.getNamedItem("type")) ? production !== "production" ? warning(false, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.') : warning(false) : void 0;
2061
2061
  }
2062
2062
  }
2063
2063
  submitForm()["catch"](function(reason2) {
@@ -2190,9 +2190,9 @@ function Formik(props) {
2190
2190
  useImperativeHandle(innerRef, function() {
2191
2191
  return formikbag;
2192
2192
  });
2193
- if (process.env.NODE_ENV !== "production") {
2193
+ if (production !== "production") {
2194
2194
  useEffect(function() {
2195
- !!props.render ? process.env.NODE_ENV !== "production" ? warning(false, "<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>") : warning(false) : void 0;
2195
+ !!props.render ? production !== "production" ? warning(false, "<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>") : warning(false) : void 0;
2196
2196
  }, []);
2197
2197
  }
2198
2198
  return createElement$1(FormikProvider, {
@@ -6131,7 +6131,7 @@ function requireCheckPropTypes() {
6131
6131
  hasRequiredCheckPropTypes = 1;
6132
6132
  var printWarning = function() {
6133
6133
  };
6134
- if (process.env.NODE_ENV !== "production") {
6134
+ if (production !== "production") {
6135
6135
  var ReactPropTypesSecret = requireReactPropTypesSecret();
6136
6136
  var loggedTypeFailures = {};
6137
6137
  var has2 = requireHas();
@@ -6147,7 +6147,7 @@ function requireCheckPropTypes() {
6147
6147
  };
6148
6148
  }
6149
6149
  function checkPropTypes(typeSpecs, values, location2, componentName, getStack) {
6150
- if (process.env.NODE_ENV !== "production") {
6150
+ if (production !== "production") {
6151
6151
  for (var typeSpecName in typeSpecs) {
6152
6152
  if (has2(typeSpecs, typeSpecName)) {
6153
6153
  var error;
@@ -6180,7 +6180,7 @@ function requireCheckPropTypes() {
6180
6180
  }
6181
6181
  }
6182
6182
  checkPropTypes.resetWarningCache = function() {
6183
- if (process.env.NODE_ENV !== "production") {
6183
+ if (production !== "production") {
6184
6184
  loggedTypeFailures = {};
6185
6185
  }
6186
6186
  };
@@ -6200,7 +6200,7 @@ function requireFactoryWithTypeCheckers() {
6200
6200
  var checkPropTypes = requireCheckPropTypes();
6201
6201
  var printWarning = function() {
6202
6202
  };
6203
- if (process.env.NODE_ENV !== "production") {
6203
+ if (production !== "production") {
6204
6204
  printWarning = function(text) {
6205
6205
  var message = "Warning: " + text;
6206
6206
  if (typeof console !== "undefined") {
@@ -6260,7 +6260,7 @@ function requireFactoryWithTypeCheckers() {
6260
6260
  }
6261
6261
  PropTypeError.prototype = Error.prototype;
6262
6262
  function createChainableTypeChecker(validate) {
6263
- if (process.env.NODE_ENV !== "production") {
6263
+ if (production !== "production") {
6264
6264
  var manualPropTypeCallCache = {};
6265
6265
  var manualPropTypeWarningCount = 0;
6266
6266
  }
@@ -6274,7 +6274,7 @@ function requireFactoryWithTypeCheckers() {
6274
6274
  );
6275
6275
  err.name = "Invariant Violation";
6276
6276
  throw err;
6277
- } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
6277
+ } else if (production !== "production" && typeof console !== "undefined") {
6278
6278
  var cacheKey = componentName + ":" + propName;
6279
6279
  if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
6280
6280
  printWarning(
@@ -6374,7 +6374,7 @@ function requireFactoryWithTypeCheckers() {
6374
6374
  }
6375
6375
  function createEnumTypeChecker(expectedValues) {
6376
6376
  if (!Array.isArray(expectedValues)) {
6377
- if (process.env.NODE_ENV !== "production") {
6377
+ if (production !== "production") {
6378
6378
  if (arguments.length > 1) {
6379
6379
  printWarning(
6380
6380
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -6427,7 +6427,7 @@ function requireFactoryWithTypeCheckers() {
6427
6427
  }
6428
6428
  function createUnionTypeChecker(arrayOfTypeCheckers) {
6429
6429
  if (!Array.isArray(arrayOfTypeCheckers)) {
6430
- process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
6430
+ production !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
6431
6431
  return emptyFunctionThatReturnsNull;
6432
6432
  }
6433
6433
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
@@ -6685,7 +6685,7 @@ function requireFactoryWithThrowingShims() {
6685
6685
  };
6686
6686
  return factoryWithThrowingShims;
6687
6687
  }
6688
- if (process.env.NODE_ENV !== "production") {
6688
+ if (production !== "production") {
6689
6689
  var ReactIs = requireReactIs();
6690
6690
  var throwOnDirectAccess = true;
6691
6691
  propTypes$h.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
@@ -6966,7 +6966,7 @@ function requireReactJsxRuntime_development() {
6966
6966
  if (hasRequiredReactJsxRuntime_development)
6967
6967
  return reactJsxRuntime_development;
6968
6968
  hasRequiredReactJsxRuntime_development = 1;
6969
- if (process.env.NODE_ENV !== "production") {
6969
+ if (production !== "production") {
6970
6970
  (function() {
6971
6971
  var React2 = React__default;
6972
6972
  var REACT_ELEMENT_TYPE2 = Symbol.for("react.element");
@@ -7830,7 +7830,7 @@ function requireReactJsxRuntime_development() {
7830
7830
  return reactJsxRuntime_development;
7831
7831
  }
7832
7832
  (function(module2) {
7833
- if (process.env.NODE_ENV === "production") {
7833
+ if (production === "production") {
7834
7834
  module2.exports = requireReactJsxRuntime_production_min();
7835
7835
  } else {
7836
7836
  module2.exports = requireReactJsxRuntime_development();
@@ -8651,13 +8651,13 @@ var _propTypes = _interopRequireDefault$2(propTypes$h.exports);
8651
8651
  function _interopRequireDefault$2(obj) {
8652
8652
  return obj && obj.__esModule ? obj : { default: obj };
8653
8653
  }
8654
- var timeoutsShape = process.env.NODE_ENV !== "production" ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
8654
+ var timeoutsShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
8655
8655
  enter: _propTypes.default.number,
8656
8656
  exit: _propTypes.default.number,
8657
8657
  appear: _propTypes.default.number
8658
8658
  }).isRequired]) : null;
8659
8659
  PropTypes$1.timeoutsShape = timeoutsShape;
8660
- var classNamesShape = process.env.NODE_ENV !== "production" ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
8660
+ var classNamesShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
8661
8661
  enter: _propTypes.default.string,
8662
8662
  exit: _propTypes.default.string,
8663
8663
  active: _propTypes.default.string
@@ -8963,7 +8963,7 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
8963
8963
  return Transition2;
8964
8964
  }(_react$1.default.Component);
8965
8965
  Transition.contextType = _TransitionGroupContext.default;
8966
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
8966
+ Transition.propTypes = production !== "production" ? {
8967
8967
  children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
8968
8968
  in: PropTypes.bool,
8969
8969
  mountOnEnter: PropTypes.bool,
@@ -9175,7 +9175,7 @@ Transition$1.default = _default;
9175
9175
  CSSTransition2.defaultProps = {
9176
9176
  classNames: ""
9177
9177
  };
9178
- CSSTransition2.propTypes = process.env.NODE_ENV !== "production" ? _extends2({}, _Transition2.default.propTypes, {
9178
+ CSSTransition2.propTypes = production !== "production" ? _extends2({}, _Transition2.default.propTypes, {
9179
9179
  classNames: _PropTypes2.classNamesShape,
9180
9180
  onEnter: PropTypes2.func,
9181
9181
  onEntering: PropTypes2.func,
@@ -9421,7 +9421,7 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
9421
9421
  };
9422
9422
  return TransitionGroup3;
9423
9423
  }(_react2.default.Component);
9424
- TransitionGroup2.propTypes = process.env.NODE_ENV !== "production" ? {
9424
+ TransitionGroup2.propTypes = production !== "production" ? {
9425
9425
  component: _propTypes2.default.any,
9426
9426
  children: _propTypes2.default.node,
9427
9427
  appear: _propTypes2.default.bool,
@@ -9542,7 +9542,7 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
9542
9542
  };
9543
9543
  return ReplaceTransition3;
9544
9544
  }(_react2.default.Component);
9545
- ReplaceTransition2.propTypes = process.env.NODE_ENV !== "production" ? {
9545
+ ReplaceTransition2.propTypes = production !== "production" ? {
9546
9546
  in: _propTypes2.default.bool.isRequired,
9547
9547
  children: function children(props, propName) {
9548
9548
  if (_react2.default.Children.count(props[propName]) !== 2)
@@ -15127,7 +15127,7 @@ function useMutation(arg1, arg2, arg3) {
15127
15127
  function n$1(t2) {
15128
15128
  for (var e2 = arguments.length, r2 = Array(e2 > 1 ? e2 - 1 : 0), n2 = 1; n2 < e2; n2++)
15129
15129
  r2[n2 - 1] = arguments[n2];
15130
- if ("production" !== process.env.NODE_ENV) {
15130
+ if ("production" !== production) {
15131
15131
  var o2 = G[t2], i = o2 ? "function" == typeof o2 ? o2.apply(null, r2) : o2 : "unknown error nr: " + t2;
15132
15132
  throw Error("[Immer] " + i);
15133
15133
  }
@@ -15203,7 +15203,7 @@ function b(t2) {
15203
15203
  return e2 || n$1(18, t2), e2;
15204
15204
  }
15205
15205
  function m$1() {
15206
- return "production" === process.env.NODE_ENV || M || n$1(0), M;
15206
+ return "production" === production || M || n$1(0), M;
15207
15207
  }
15208
15208
  function g(t2, e2) {
15209
15209
  e2 && (b("Patches"), t2.u = [], t2.s = [], t2.v = e2);
@@ -15248,7 +15248,7 @@ function D(t2, e2, r2) {
15248
15248
  return n2.o;
15249
15249
  }
15250
15250
  function E(t2, e2, r2, u2, a2, s2) {
15251
- if ("production" !== process.env.NODE_ENV && a2 === r2 && n$1(5), o$2(a2)) {
15251
+ if ("production" !== production && a2 === r2 && n$1(5), o$2(a2)) {
15252
15252
  var l2 = D(t2, a2, s2 && e2 && 3 !== e2.i && !c$1(e2.D, u2) ? s2.concat(u2) : void 0);
15253
15253
  if (f(r2, u2, l2), !o$2(l2))
15254
15254
  return;
@@ -15386,9 +15386,9 @@ u(H, function(t2, e2) {
15386
15386
  return arguments[0] = arguments[0][0], e2.apply(this, arguments);
15387
15387
  };
15388
15388
  }), L.deleteProperty = function(t2, e2) {
15389
- return "production" !== process.env.NODE_ENV && isNaN(parseInt(e2)) && n$1(13), H.deleteProperty.call(this, t2[0], e2);
15389
+ return "production" !== production && isNaN(parseInt(e2)) && n$1(13), H.deleteProperty.call(this, t2[0], e2);
15390
15390
  }, L.set = function(t2, e2, r2) {
15391
- return "production" !== process.env.NODE_ENV && "length" !== e2 && isNaN(parseInt(e2)) && n$1(14), H.set.call(this, t2[0], e2, r2, t2[0]);
15391
+ return "production" !== production && "length" !== e2 && isNaN(parseInt(e2)) && n$1(14), H.set.call(this, t2[0], e2, r2, t2[0]);
15392
15392
  };
15393
15393
  var Q = new (function() {
15394
15394
  function t2(t3) {
@@ -15449,7 +15449,7 @@ var Q = new (function() {
15449
15449
  return r2[$$j].C = true, P(e3), r2;
15450
15450
  }, e2.finishDraft = function(t3, e3) {
15451
15451
  var r2 = t3 && t3[$$j];
15452
- "production" !== process.env.NODE_ENV && (r2 && r2.C || n$1(9), r2.I && n$1(10));
15452
+ "production" !== production && (r2 && r2.C || n$1(9), r2.I && n$1(10));
15453
15453
  var o2 = r2.A;
15454
15454
  return g(o2, e3), A(void 0, o2);
15455
15455
  }, e2.setAutoFreeze = function(t3) {
@@ -37792,7 +37792,7 @@ function WidgetInitOnlineHeader({
37792
37792
  }
37793
37793
  var createRoot;
37794
37794
  var m = ReactDOM;
37795
- if (process.env.NODE_ENV === "production") {
37795
+ if (production === "production") {
37796
37796
  createRoot = m.createRoot;
37797
37797
  m.hydrateRoot;
37798
37798
  } else {
package/dist/index.umd.js CHANGED
@@ -1091,7 +1091,7 @@
1091
1091
  }
1092
1092
  return isSymbol$a(value2) ? [value2] : copyArray(stringToPath$4(toString$h(value2)));
1093
1093
  }
1094
- var isProduction = process.env.NODE_ENV === "production";
1094
+ var isProduction = production === "production";
1095
1095
  function warning(condition, message) {
1096
1096
  if (!isProduction) {
1097
1097
  if (condition) {
@@ -1226,7 +1226,7 @@
1226
1226
  if (hasRequiredReactIs_development)
1227
1227
  return reactIs_development;
1228
1228
  hasRequiredReactIs_development = 1;
1229
- if (process.env.NODE_ENV !== "production") {
1229
+ if (production !== "production") {
1230
1230
  (function() {
1231
1231
  var hasSymbol = typeof Symbol === "function" && Symbol.for;
1232
1232
  var REACT_ELEMENT_TYPE2 = hasSymbol ? Symbol.for("react.element") : 60103;
@@ -1380,7 +1380,7 @@
1380
1380
  return reactIs$1.exports;
1381
1381
  hasRequiredReactIs = 1;
1382
1382
  (function(module2) {
1383
- if (process.env.NODE_ENV === "production") {
1383
+ if (production === "production") {
1384
1384
  module2.exports = requireReactIs_production_min();
1385
1385
  } else {
1386
1386
  module2.exports = requireReactIs_development();
@@ -1548,7 +1548,7 @@
1548
1548
  FormikContext.Consumer;
1549
1549
  function useFormikContext() {
1550
1550
  var formik = React$1.useContext(FormikContext);
1551
- !!!formik ? process.env.NODE_ENV !== "production" ? warning(false, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.") : warning(false) : void 0;
1551
+ !!!formik ? production !== "production" ? warning(false, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.") : warning(false) : void 0;
1552
1552
  return formik;
1553
1553
  }
1554
1554
  function formikReducer(state, msg) {
@@ -1630,9 +1630,9 @@
1630
1630
  var initialStatus = React$1.useRef(props.initialStatus);
1631
1631
  var isMounted = React$1.useRef(false);
1632
1632
  var fieldRegistry = React$1.useRef({});
1633
- if (process.env.NODE_ENV !== "production") {
1633
+ if (production !== "production") {
1634
1634
  React$1.useEffect(function() {
1635
- !(typeof isInitialValid === "undefined") ? process.env.NODE_ENV !== "production" ? warning(false, "isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.") : warning(false) : void 0;
1635
+ !(typeof isInitialValid === "undefined") ? production !== "production" ? warning(false, "isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.") : warning(false) : void 0;
1636
1636
  }, []);
1637
1637
  }
1638
1638
  React$1.useEffect(function() {
@@ -1659,7 +1659,7 @@
1659
1659
  maybePromisedErrors.then(function(errors) {
1660
1660
  resolve(errors || emptyErrors);
1661
1661
  }, function(actualException) {
1662
- if (process.env.NODE_ENV !== "production") {
1662
+ if (production !== "production") {
1663
1663
  console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", actualException);
1664
1664
  }
1665
1665
  reject(actualException);
@@ -1680,7 +1680,7 @@
1680
1680
  if (err.name === "ValidationError") {
1681
1681
  resolve(yupToFormErrors(err));
1682
1682
  } else {
1683
- if (process.env.NODE_ENV !== "production") {
1683
+ if (production !== "production") {
1684
1684
  console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", err);
1685
1685
  }
1686
1686
  reject(err);
@@ -1940,7 +1940,7 @@
1940
1940
  var target = eventOrTextValue.target ? eventOrTextValue.target : eventOrTextValue.currentTarget;
1941
1941
  var type = target.type, name = target.name, id2 = target.id, value2 = target.value, checked = target.checked, outerHTML = target.outerHTML, options = target.options, multiple = target.multiple;
1942
1942
  field = maybePath ? maybePath : name ? name : id2;
1943
- if (!field && process.env.NODE_ENV !== "production") {
1943
+ if (!field && production !== "production") {
1944
1944
  warnAboutMissingIdentifier({
1945
1945
  htmlContent: outerHTML,
1946
1946
  documentationAnchorLink: "handlechange-e-reactchangeeventany--void",
@@ -1982,7 +1982,7 @@
1982
1982
  }
1983
1983
  var _e$target = e2.target, name = _e$target.name, id2 = _e$target.id, outerHTML = _e$target.outerHTML;
1984
1984
  var field = path2 ? path2 : name ? name : id2;
1985
- if (!field && process.env.NODE_ENV !== "production") {
1985
+ if (!field && production !== "production") {
1986
1986
  warnAboutMissingIdentifier({
1987
1987
  htmlContent: outerHTML,
1988
1988
  documentationAnchorLink: "handleblur-e-any--void",
@@ -2077,10 +2077,10 @@
2077
2077
  if (e2 && e2.stopPropagation && isFunction$6(e2.stopPropagation)) {
2078
2078
  e2.stopPropagation();
2079
2079
  }
2080
- if (process.env.NODE_ENV !== "production" && typeof document !== "undefined") {
2080
+ if (production !== "production" && typeof document !== "undefined") {
2081
2081
  var activeElement = getActiveElement();
2082
2082
  if (activeElement !== null && activeElement instanceof HTMLButtonElement) {
2083
- !(activeElement.attributes && activeElement.attributes.getNamedItem("type")) ? process.env.NODE_ENV !== "production" ? warning(false, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.') : warning(false) : void 0;
2083
+ !(activeElement.attributes && activeElement.attributes.getNamedItem("type")) ? production !== "production" ? warning(false, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.') : warning(false) : void 0;
2084
2084
  }
2085
2085
  }
2086
2086
  submitForm()["catch"](function(reason2) {
@@ -2213,9 +2213,9 @@
2213
2213
  React$1.useImperativeHandle(innerRef, function() {
2214
2214
  return formikbag;
2215
2215
  });
2216
- if (process.env.NODE_ENV !== "production") {
2216
+ if (production !== "production") {
2217
2217
  React$1.useEffect(function() {
2218
- !!props.render ? process.env.NODE_ENV !== "production" ? warning(false, "<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>") : warning(false) : void 0;
2218
+ !!props.render ? production !== "production" ? warning(false, "<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>") : warning(false) : void 0;
2219
2219
  }, []);
2220
2220
  }
2221
2221
  return React$1.createElement(FormikProvider, {
@@ -6154,7 +6154,7 @@ attempted value: ${formattedValue}
6154
6154
  hasRequiredCheckPropTypes = 1;
6155
6155
  var printWarning = function() {
6156
6156
  };
6157
- if (process.env.NODE_ENV !== "production") {
6157
+ if (production !== "production") {
6158
6158
  var ReactPropTypesSecret = requireReactPropTypesSecret();
6159
6159
  var loggedTypeFailures = {};
6160
6160
  var has2 = requireHas();
@@ -6170,7 +6170,7 @@ attempted value: ${formattedValue}
6170
6170
  };
6171
6171
  }
6172
6172
  function checkPropTypes(typeSpecs, values, location2, componentName, getStack) {
6173
- if (process.env.NODE_ENV !== "production") {
6173
+ if (production !== "production") {
6174
6174
  for (var typeSpecName in typeSpecs) {
6175
6175
  if (has2(typeSpecs, typeSpecName)) {
6176
6176
  var error;
@@ -6203,7 +6203,7 @@ attempted value: ${formattedValue}
6203
6203
  }
6204
6204
  }
6205
6205
  checkPropTypes.resetWarningCache = function() {
6206
- if (process.env.NODE_ENV !== "production") {
6206
+ if (production !== "production") {
6207
6207
  loggedTypeFailures = {};
6208
6208
  }
6209
6209
  };
@@ -6223,7 +6223,7 @@ attempted value: ${formattedValue}
6223
6223
  var checkPropTypes = requireCheckPropTypes();
6224
6224
  var printWarning = function() {
6225
6225
  };
6226
- if (process.env.NODE_ENV !== "production") {
6226
+ if (production !== "production") {
6227
6227
  printWarning = function(text) {
6228
6228
  var message = "Warning: " + text;
6229
6229
  if (typeof console !== "undefined") {
@@ -6283,7 +6283,7 @@ attempted value: ${formattedValue}
6283
6283
  }
6284
6284
  PropTypeError.prototype = Error.prototype;
6285
6285
  function createChainableTypeChecker(validate) {
6286
- if (process.env.NODE_ENV !== "production") {
6286
+ if (production !== "production") {
6287
6287
  var manualPropTypeCallCache = {};
6288
6288
  var manualPropTypeWarningCount = 0;
6289
6289
  }
@@ -6297,7 +6297,7 @@ attempted value: ${formattedValue}
6297
6297
  );
6298
6298
  err.name = "Invariant Violation";
6299
6299
  throw err;
6300
- } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
6300
+ } else if (production !== "production" && typeof console !== "undefined") {
6301
6301
  var cacheKey = componentName + ":" + propName;
6302
6302
  if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
6303
6303
  printWarning(
@@ -6397,7 +6397,7 @@ attempted value: ${formattedValue}
6397
6397
  }
6398
6398
  function createEnumTypeChecker(expectedValues) {
6399
6399
  if (!Array.isArray(expectedValues)) {
6400
- if (process.env.NODE_ENV !== "production") {
6400
+ if (production !== "production") {
6401
6401
  if (arguments.length > 1) {
6402
6402
  printWarning(
6403
6403
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -6450,7 +6450,7 @@ attempted value: ${formattedValue}
6450
6450
  }
6451
6451
  function createUnionTypeChecker(arrayOfTypeCheckers) {
6452
6452
  if (!Array.isArray(arrayOfTypeCheckers)) {
6453
- process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
6453
+ production !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
6454
6454
  return emptyFunctionThatReturnsNull;
6455
6455
  }
6456
6456
  for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
@@ -6708,7 +6708,7 @@ attempted value: ${formattedValue}
6708
6708
  };
6709
6709
  return factoryWithThrowingShims;
6710
6710
  }
6711
- if (process.env.NODE_ENV !== "production") {
6711
+ if (production !== "production") {
6712
6712
  var ReactIs = requireReactIs();
6713
6713
  var throwOnDirectAccess = true;
6714
6714
  propTypes$h.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
@@ -6989,7 +6989,7 @@ attempted value: ${formattedValue}
6989
6989
  if (hasRequiredReactJsxRuntime_development)
6990
6990
  return reactJsxRuntime_development;
6991
6991
  hasRequiredReactJsxRuntime_development = 1;
6992
- if (process.env.NODE_ENV !== "production") {
6992
+ if (production !== "production") {
6993
6993
  (function() {
6994
6994
  var React2 = React__default.default;
6995
6995
  var REACT_ELEMENT_TYPE2 = Symbol.for("react.element");
@@ -7853,7 +7853,7 @@ attempted value: ${formattedValue}
7853
7853
  return reactJsxRuntime_development;
7854
7854
  }
7855
7855
  (function(module2) {
7856
- if (process.env.NODE_ENV === "production") {
7856
+ if (production === "production") {
7857
7857
  module2.exports = requireReactJsxRuntime_production_min();
7858
7858
  } else {
7859
7859
  module2.exports = requireReactJsxRuntime_development();
@@ -8674,13 +8674,13 @@ attempted value: ${formattedValue}
8674
8674
  function _interopRequireDefault$2(obj) {
8675
8675
  return obj && obj.__esModule ? obj : { default: obj };
8676
8676
  }
8677
- var timeoutsShape = process.env.NODE_ENV !== "production" ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
8677
+ var timeoutsShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
8678
8678
  enter: _propTypes.default.number,
8679
8679
  exit: _propTypes.default.number,
8680
8680
  appear: _propTypes.default.number
8681
8681
  }).isRequired]) : null;
8682
8682
  PropTypes$1.timeoutsShape = timeoutsShape;
8683
- var classNamesShape = process.env.NODE_ENV !== "production" ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
8683
+ var classNamesShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
8684
8684
  enter: _propTypes.default.string,
8685
8685
  exit: _propTypes.default.string,
8686
8686
  active: _propTypes.default.string
@@ -8986,7 +8986,7 @@ attempted value: ${formattedValue}
8986
8986
  return Transition2;
8987
8987
  }(_react$1.default.Component);
8988
8988
  Transition.contextType = _TransitionGroupContext.default;
8989
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
8989
+ Transition.propTypes = production !== "production" ? {
8990
8990
  children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
8991
8991
  in: PropTypes.bool,
8992
8992
  mountOnEnter: PropTypes.bool,
@@ -9198,7 +9198,7 @@ attempted value: ${formattedValue}
9198
9198
  CSSTransition2.defaultProps = {
9199
9199
  classNames: ""
9200
9200
  };
9201
- CSSTransition2.propTypes = process.env.NODE_ENV !== "production" ? _extends2({}, _Transition2.default.propTypes, {
9201
+ CSSTransition2.propTypes = production !== "production" ? _extends2({}, _Transition2.default.propTypes, {
9202
9202
  classNames: _PropTypes2.classNamesShape,
9203
9203
  onEnter: PropTypes2.func,
9204
9204
  onEntering: PropTypes2.func,
@@ -9444,7 +9444,7 @@ attempted value: ${formattedValue}
9444
9444
  };
9445
9445
  return TransitionGroup3;
9446
9446
  }(_react2.default.Component);
9447
- TransitionGroup2.propTypes = process.env.NODE_ENV !== "production" ? {
9447
+ TransitionGroup2.propTypes = production !== "production" ? {
9448
9448
  component: _propTypes2.default.any,
9449
9449
  children: _propTypes2.default.node,
9450
9450
  appear: _propTypes2.default.bool,
@@ -9565,7 +9565,7 @@ attempted value: ${formattedValue}
9565
9565
  };
9566
9566
  return ReplaceTransition3;
9567
9567
  }(_react2.default.Component);
9568
- ReplaceTransition2.propTypes = process.env.NODE_ENV !== "production" ? {
9568
+ ReplaceTransition2.propTypes = production !== "production" ? {
9569
9569
  in: _propTypes2.default.bool.isRequired,
9570
9570
  children: function children(props, propName) {
9571
9571
  if (_react2.default.Children.count(props[propName]) !== 2)
@@ -15150,7 +15150,7 @@ attempted value: ${formattedValue}
15150
15150
  function n$1(t2) {
15151
15151
  for (var e2 = arguments.length, r2 = Array(e2 > 1 ? e2 - 1 : 0), n2 = 1; n2 < e2; n2++)
15152
15152
  r2[n2 - 1] = arguments[n2];
15153
- if ("production" !== process.env.NODE_ENV) {
15153
+ if ("production" !== production) {
15154
15154
  var o2 = G[t2], i2 = o2 ? "function" == typeof o2 ? o2.apply(null, r2) : o2 : "unknown error nr: " + t2;
15155
15155
  throw Error("[Immer] " + i2);
15156
15156
  }
@@ -15226,7 +15226,7 @@ attempted value: ${formattedValue}
15226
15226
  return e2 || n$1(18, t2), e2;
15227
15227
  }
15228
15228
  function m$1() {
15229
- return "production" === process.env.NODE_ENV || M || n$1(0), M;
15229
+ return "production" === production || M || n$1(0), M;
15230
15230
  }
15231
15231
  function g(t2, e2) {
15232
15232
  e2 && (b("Patches"), t2.u = [], t2.s = [], t2.v = e2);
@@ -15271,7 +15271,7 @@ attempted value: ${formattedValue}
15271
15271
  return n2.o;
15272
15272
  }
15273
15273
  function E(t2, e2, r2, u2, a2, s2) {
15274
- if ("production" !== process.env.NODE_ENV && a2 === r2 && n$1(5), o$2(a2)) {
15274
+ if ("production" !== production && a2 === r2 && n$1(5), o$2(a2)) {
15275
15275
  var l2 = D(t2, a2, s2 && e2 && 3 !== e2.i && !c$1(e2.D, u2) ? s2.concat(u2) : void 0);
15276
15276
  if (f(r2, u2, l2), !o$2(l2))
15277
15277
  return;
@@ -15409,9 +15409,9 @@ attempted value: ${formattedValue}
15409
15409
  return arguments[0] = arguments[0][0], e2.apply(this, arguments);
15410
15410
  };
15411
15411
  }), L.deleteProperty = function(t2, e2) {
15412
- return "production" !== process.env.NODE_ENV && isNaN(parseInt(e2)) && n$1(13), H.deleteProperty.call(this, t2[0], e2);
15412
+ return "production" !== production && isNaN(parseInt(e2)) && n$1(13), H.deleteProperty.call(this, t2[0], e2);
15413
15413
  }, L.set = function(t2, e2, r2) {
15414
- return "production" !== process.env.NODE_ENV && "length" !== e2 && isNaN(parseInt(e2)) && n$1(14), H.set.call(this, t2[0], e2, r2, t2[0]);
15414
+ return "production" !== production && "length" !== e2 && isNaN(parseInt(e2)) && n$1(14), H.set.call(this, t2[0], e2, r2, t2[0]);
15415
15415
  };
15416
15416
  var Q = new (function() {
15417
15417
  function t2(t3) {
@@ -15472,7 +15472,7 @@ attempted value: ${formattedValue}
15472
15472
  return r2[$$j].C = true, P(e3), r2;
15473
15473
  }, e2.finishDraft = function(t3, e3) {
15474
15474
  var r2 = t3 && t3[$$j];
15475
- "production" !== process.env.NODE_ENV && (r2 && r2.C || n$1(9), r2.I && n$1(10));
15475
+ "production" !== production && (r2 && r2.C || n$1(9), r2.I && n$1(10));
15476
15476
  var o2 = r2.A;
15477
15477
  return g(o2, e3), A(void 0, o2);
15478
15478
  }, e2.setAutoFreeze = function(t3) {
@@ -37815,7 +37815,7 @@ attempted value: ${formattedValue}
37815
37815
  }
37816
37816
  var createRoot;
37817
37817
  var m = ReactDOM__default.default;
37818
- if (process.env.NODE_ENV === "production") {
37818
+ if (production === "production") {
37819
37819
  createRoot = m.createRoot;
37820
37820
  m.hydrateRoot;
37821
37821
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sawport/react-sdk",
3
- "version": "0.1.0-alpha.11",
3
+ "version": "0.1.0-alpha.12",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.js",