pollination-react-io 1.53.2 → 1.53.3

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
@@ -46541,6 +46541,13 @@ var SendGeometry = function (_a) {
46541
46541
  });
46542
46542
  };
46543
46543
  }, [disabled, geometry, geometryOptions, key, selOpt, sendMessage]);
46544
+ var helpTextButton = {
46545
+ add: "Add geometry to the ".concat(host, " viewport"),
46546
+ preview: "Preview geometry in the ".concat(host, " viewport"),
46547
+ delete: "Delete geometry from the ".concat(host, " viewport"),
46548
+ clear: "Clear geometry from the ".concat(host, " viewport"),
46549
+ 'subscribe-preview': "Render geometry in the ".concat(host, " viewport"),
46550
+ };
46544
46551
  return (React__default["default"].createElement(SettingsButton, { style: style, disabled: disabled, onClick: function (e) {
46545
46552
  e.stopPropagation();
46546
46553
  if (disabled)
@@ -46615,7 +46622,7 @@ var SendGeometry = function (_a) {
46615
46622
  return true;
46616
46623
  return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
46617
46624
  }),
46618
- }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " geometry to ").concat(host, " scene") }));
46625
+ }], asButtons: true, label: buttonLabel, helpText: helpTextButton[selOpt] }));
46619
46626
  };
46620
46627
 
46621
46628
  var Action$1;
@@ -46676,6 +46683,13 @@ var SendModel = function (_a) {
46676
46683
  });
46677
46684
  };
46678
46685
  }, [disabled, hbjson, key, selOpt, sendHbjson]);
46686
+ var helpTextButton = {
46687
+ add: "Add model to the ".concat(host, " viewport"),
46688
+ preview: "Preview model in the ".concat(host, " viewport"),
46689
+ delete: "Delete model from the ".concat(host, " viewport"),
46690
+ clear: "Clear model from the ".concat(host, " viewport"),
46691
+ 'subscribe-preview': "Render model in the ".concat(host, " viewport"),
46692
+ };
46679
46693
  return (React__default["default"].createElement(SettingsButton, { style: style, disabled: disabled, onClick: function (e) {
46680
46694
  e.stopPropagation();
46681
46695
  if (disabled)
@@ -46742,7 +46756,7 @@ var SendModel = function (_a) {
46742
46756
  return true;
46743
46757
  return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
46744
46758
  }),
46745
- }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " model to ").concat(host, " scene") }));
46759
+ }], asButtons: true, label: buttonLabel, helpText: helpTextButton[selOpt] }));
46746
46760
  };
46747
46761
 
46748
46762
  var Action;
@@ -46802,6 +46816,13 @@ var SendResults = function (_a) {
46802
46816
  });
46803
46817
  };
46804
46818
  }, [disabled, geometryOptions, key, results, selOpt, sendMessage]);
46819
+ var helpTextButton = {
46820
+ add: "Add results to the ".concat(host, " viewport"),
46821
+ preview: "Preview results in the ".concat(host, " viewport"),
46822
+ delete: "Delete results from the ".concat(host, " viewport"),
46823
+ clear: "Clear results from the ".concat(host, " viewport"),
46824
+ 'subscribe-preview': "Render results in the ".concat(host, " viewport"),
46825
+ };
46805
46826
  return (React__default["default"].createElement(SettingsButton, { style: style, disabled: disabled, onClick: function (e) {
46806
46827
  e.stopPropagation();
46807
46828
  if (disabled)
@@ -46876,7 +46897,7 @@ var SendResults = function (_a) {
46876
46897
  return true;
46877
46898
  return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
46878
46899
  }),
46879
- }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " results to ").concat(host, " scene") }));
46900
+ }], asButtons: true, label: buttonLabel, helpText: helpTextButton[selOpt] }));
46880
46901
  };
46881
46902
 
46882
46903
  var JobTabs;