pollination-react-io 1.82.5 → 1.83.0
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
@@ -53599,9 +53599,9 @@ var overlayOptions$1 = [
|
|
53599
53599
|
];
|
53600
53600
|
var SendModel = function (_a) {
|
53601
53601
|
var _b;
|
53602
|
-
var hbjson = _a.hbjson, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, _c = _a.optionsConfig, optionsConfig = _c === void 0 ? undefined : _c;
|
53603
|
-
var
|
53604
|
-
var
|
53602
|
+
var hbjson = _a.hbjson, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, _c = _a.optionsConfig, optionsConfig = _c === void 0 ? undefined : _c, _d = _a.onVisibleChange, onVisibleChange = _d === void 0 ? function (visible) { return undefined; } : _d;
|
53603
|
+
var _e = React.useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _e[0], setKey = _e[1];
|
53604
|
+
var _f = React.useState(), currOption = _f[0], setCurrOption = _f[1];
|
53605
53605
|
var onSelect = function (o) { return setCurrOption(o); };
|
53606
53606
|
var host = getHost();
|
53607
53607
|
var sendHbjson = useSendHbjson().sendHbjson;
|
@@ -53646,7 +53646,7 @@ var SendModel = function (_a) {
|
|
53646
53646
|
replace: "Replace the model in the ".concat(host, " viewport"),
|
53647
53647
|
'subscribe-preview': "Render the model in the ".concat(host, " viewport"),
|
53648
53648
|
};
|
53649
|
-
return React__default["default"].createElement(BaseDropdown, { childOverlayStyle: {
|
53649
|
+
return React__default["default"].createElement(BaseDropdown, { onVisibleChange: onVisibleChange, childOverlayStyle: {
|
53650
53650
|
width: 'auto',
|
53651
53651
|
backgroundColor: 'white',
|
53652
53652
|
color: '#393e46',
|
@@ -53732,10 +53732,10 @@ var overlayOptions = [
|
|
53732
53732
|
];
|
53733
53733
|
var SendResults = function (_a) {
|
53734
53734
|
var _b, _c;
|
53735
|
-
var results = _a.results, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, geometryOptions = _a.geometryOptions;
|
53736
|
-
var
|
53737
|
-
var
|
53738
|
-
var
|
53735
|
+
var results = _a.results, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, geometryOptions = _a.geometryOptions, _d = _a.onVisibleChange, onVisibleChange = _d === void 0 ? function (visible) { return undefined; } : _d;
|
53736
|
+
var _e = React.useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _e[0], setKey = _e[1];
|
53737
|
+
var _f = React.useState(), currOption = _f[0], setCurrOption = _f[1];
|
53738
|
+
var _g = React.useState(), previewResults = _g[0], setPreviewResults = _g[1];
|
53739
53739
|
React.useEffect(function () {
|
53740
53740
|
if (!results || Object.keys(results).length === 0)
|
53741
53741
|
return;
|
@@ -53846,7 +53846,7 @@ var SendResults = function (_a) {
|
|
53846
53846
|
clear: "Clear results from the ".concat(host, " viewport"),
|
53847
53847
|
'subscribe-preview': "Render results in the ".concat(host, " viewport"),
|
53848
53848
|
};
|
53849
|
-
return React__default["default"].createElement(BaseDropdown, { childOverlayStyle: {
|
53849
|
+
return React__default["default"].createElement(BaseDropdown, { onVisibleChange: onVisibleChange, childOverlayStyle: {
|
53850
53850
|
width: 'auto',
|
53851
53851
|
backgroundColor: 'white',
|
53852
53852
|
color: '#393e46',
|
@@ -53888,7 +53888,7 @@ var SendResults = function (_a) {
|
|
53888
53888
|
&& initialIds
|
53889
53889
|
&& dataSets.length >= 1 && (dataSets === null || dataSets === void 0 ? void 0 : dataSets.map(function (d, index) {
|
53890
53890
|
var _a;
|
53891
|
-
return React__default["default"].createElement(BaseDropdown, { childOverlayStyle: {
|
53891
|
+
return React__default["default"].createElement(BaseDropdown, { onVisibleChange: onVisibleChange, childOverlayStyle: {
|
53892
53892
|
width: 'auto',
|
53893
53893
|
backgroundColor: 'white',
|
53894
53894
|
color: '#393e46',
|