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.
@@ -13,4 +13,5 @@ export interface SendModelProps {
13
13
  optionsConfig?: {
14
14
  [index in Action]: boolean;
15
15
  };
16
+ onVisibleChange?: (visible: boolean) => any;
16
17
  }
@@ -17,5 +17,6 @@ export interface SendResultsProps {
17
17
  [index in Action]: boolean;
18
18
  };
19
19
  geometryOptions?: ResultsOptions;
20
+ onVisibleChange?: (visible: boolean) => any;
20
21
  }
21
22
  export {};
@@ -53572,9 +53572,9 @@ var overlayOptions$1 = [
53572
53572
  ];
53573
53573
  var SendModel = function (_a) {
53574
53574
  var _b;
53575
- var hbjson = _a.hbjson, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, _c = _a.optionsConfig, optionsConfig = _c === void 0 ? undefined : _c;
53576
- var _d = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0], setKey = _d[1];
53577
- var _e = useState(), currOption = _e[0], setCurrOption = _e[1];
53575
+ 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;
53576
+ var _e = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _e[0], setKey = _e[1];
53577
+ var _f = useState(), currOption = _f[0], setCurrOption = _f[1];
53578
53578
  var onSelect = function (o) { return setCurrOption(o); };
53579
53579
  var host = getHost();
53580
53580
  var sendHbjson = useSendHbjson().sendHbjson;
@@ -53619,7 +53619,7 @@ var SendModel = function (_a) {
53619
53619
  replace: "Replace the model in the ".concat(host, " viewport"),
53620
53620
  'subscribe-preview': "Render the model in the ".concat(host, " viewport"),
53621
53621
  };
53622
- return React__default.createElement(BaseDropdown, { childOverlayStyle: {
53622
+ return React__default.createElement(BaseDropdown, { onVisibleChange: onVisibleChange, childOverlayStyle: {
53623
53623
  width: 'auto',
53624
53624
  backgroundColor: 'white',
53625
53625
  color: '#393e46',
@@ -53705,10 +53705,10 @@ var overlayOptions = [
53705
53705
  ];
53706
53706
  var SendResults = function (_a) {
53707
53707
  var _b, _c;
53708
- var results = _a.results, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, geometryOptions = _a.geometryOptions;
53709
- var _d = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0], setKey = _d[1];
53710
- var _e = useState(), currOption = _e[0], setCurrOption = _e[1];
53711
- var _f = useState(), previewResults = _f[0], setPreviewResults = _f[1];
53708
+ 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;
53709
+ var _e = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _e[0], setKey = _e[1];
53710
+ var _f = useState(), currOption = _f[0], setCurrOption = _f[1];
53711
+ var _g = useState(), previewResults = _g[0], setPreviewResults = _g[1];
53712
53712
  useEffect(function () {
53713
53713
  if (!results || Object.keys(results).length === 0)
53714
53714
  return;
@@ -53819,7 +53819,7 @@ var SendResults = function (_a) {
53819
53819
  clear: "Clear results from the ".concat(host, " viewport"),
53820
53820
  'subscribe-preview': "Render results in the ".concat(host, " viewport"),
53821
53821
  };
53822
- return React__default.createElement(BaseDropdown, { childOverlayStyle: {
53822
+ return React__default.createElement(BaseDropdown, { onVisibleChange: onVisibleChange, childOverlayStyle: {
53823
53823
  width: 'auto',
53824
53824
  backgroundColor: 'white',
53825
53825
  color: '#393e46',
@@ -53861,7 +53861,7 @@ var SendResults = function (_a) {
53861
53861
  && initialIds
53862
53862
  && dataSets.length >= 1 && (dataSets === null || dataSets === void 0 ? void 0 : dataSets.map(function (d, index) {
53863
53863
  var _a;
53864
- return React__default.createElement(BaseDropdown, { childOverlayStyle: {
53864
+ return React__default.createElement(BaseDropdown, { onVisibleChange: onVisibleChange, childOverlayStyle: {
53865
53865
  width: 'auto',
53866
53866
  backgroundColor: 'white',
53867
53867
  color: '#393e46',