pollination-react-io 1.94.0 → 1.95.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
@@ -47289,7 +47289,7 @@ var RecipeForm = function (_a) {
|
|
47289
47289
|
return inputInfo;
|
47290
47290
|
});
|
47291
47291
|
return data;
|
47292
|
-
}, [recipe, handlers, triggers]);
|
47292
|
+
}, [recipe, handlers, triggers, controlledValues]);
|
47293
47293
|
/**
|
47294
47294
|
* LOCAL ONLY - Create a copy of the recipe and remove alias
|
47295
47295
|
*/
|
@@ -55898,10 +55898,11 @@ var overlayOptions = [
|
|
55898
55898
|
];
|
55899
55899
|
var SendResults = function (_a) {
|
55900
55900
|
var _b, _c;
|
55901
|
-
var results = _a.results, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, geometryOptions = _a.geometryOptions, _d = _a.onOverlayHeightChange, onOverlayHeightChange = _d === void 0 ? function (height) { return undefined; } : _d;
|
55902
|
-
var
|
55903
|
-
var
|
55904
|
-
var
|
55901
|
+
var results = _a.results, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, geometryOptions = _a.geometryOptions, _d = _a.onOverlayHeightChange, onOverlayHeightChange = _d === void 0 ? function (height) { return undefined; } : _d, _e = _a.delay, delay = _e === void 0 ? 500 : _e;
|
55902
|
+
var _f = React.useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _f[0], setKey = _f[1];
|
55903
|
+
var _g = React.useState(), currOption = _g[0], setCurrOption = _g[1];
|
55904
|
+
var _h = React.useState(), previewResults = _h[0], setPreviewResults = _h[1];
|
55905
|
+
var debounce = useDebounce(delay);
|
55905
55906
|
React.useEffect(function () {
|
55906
55907
|
if (!results || Object.keys(results).length === 0)
|
55907
55908
|
return;
|
@@ -55927,7 +55928,7 @@ var SendResults = function (_a) {
|
|
55927
55928
|
React.useEffect(function () {
|
55928
55929
|
setKey(defaultKey);
|
55929
55930
|
}, [defaultKey]);
|
55930
|
-
|
55931
|
+
debounce(function () {
|
55931
55932
|
if (disabled || (currOption === null || currOption === void 0 ? void 0 : currOption.id) !== Action.subscribePreview)
|
55932
55933
|
return;
|
55933
55934
|
sendMessage('SubscribePreviewResults', {
|