pollination-react-io 1.11.0 → 1.11.1

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/build/index.js CHANGED
@@ -23966,13 +23966,12 @@ var useManageSettings = function () {
23966
23966
  settings = window.parent.chrome.webview.hostObjects.sync.settings.GetModelSettings();
23967
23967
  }
23968
23968
  catch (_a) {
23969
- throw new Error('window.parent.chrome.webview.hostObjects.sync.settings.GetModelSettings() is not available on this platform or has been deprecated.');
23970
- }
23971
- try {
23972
- settings = window.parent.chrome.webview.hostObjects.sync.settings.Get();
23973
- }
23974
- catch (_b) {
23975
- throw new Error('window.parent.chrome.webview.hostObjects.sync.settings.Get() is not available on this platform or has been deprecated.');
23969
+ try {
23970
+ settings = window.parent.chrome.webview.hostObjects.sync.settings.Get();
23971
+ }
23972
+ catch (_b) {
23973
+ throw new Error('Neither window.parent.chrome.webview.hostObjects.sync.settings.GetModelSettings() nor .Get() are available on this platform.');
23974
+ }
23976
23975
  }
23977
23976
  return settings;
23978
23977
  }, []);
@@ -40085,12 +40084,12 @@ var RecipeInputsForm = function (_a) {
40085
40084
  }, {}),
40086
40085
  resolver: Oe(schema),
40087
40086
  mode: 'all'
40088
- }), control = _e.control, register = _e.register, handleSubmit = _e.handleSubmit, reset = _e.reset, resetField = _e.resetField; _e.setValue; var _f = _e.formState, errors = _f.errors, isValid = _f.isValid, isSubmitSuccessful = _f.isSubmitSuccessful;
40089
- React.useEffect(function () {
40090
- if (isSubmitSuccessful) {
40091
- reset();
40092
- }
40093
- }, [isSubmitSuccessful, reset]);
40087
+ }), control = _e.control, register = _e.register, handleSubmit = _e.handleSubmit; _e.reset; var resetField = _e.resetField; _e.setValue; var _f = _e.formState, errors = _f.errors, isValid = _f.isValid; _f.isSubmitSuccessful;
40088
+ // useEffect(() => {
40089
+ // if(isSubmitSuccessful) {
40090
+ // reset()
40091
+ // }
40092
+ // }, [isSubmitSuccessful, reset])
40094
40093
  var _onSubmit = function (_data) {
40095
40094
  var data = __assign$3({}, _data);
40096
40095
  // TODO: fix isTouched for controlled fields https://github.com/react-hook-form/react-hook-form/discussions/6824