pollination-react-io 1.52.1 → 1.52.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.
@@ -15738,7 +15738,10 @@ var SettingsButton = function (_a) {
15738
15738
  ? style && style['highlight']
15739
15739
  ? "inset 0px 0px 9px 4px ".concat(style['highlight'])
15740
15740
  : 'inset 0px 0px 9px 4px #096dd9'
15741
- : undefined }), onClick: function (e) { return o.onSelect && o.onSelect(o); } }, (_a = o.icon) !== null && _a !== void 0 ? _a : o.label);
15741
+ : undefined }), onClick: function (e) {
15742
+ e.stopPropagation();
15743
+ o.onSelect && o.onSelect(o);
15744
+ } }, (_a = o.icon) !== null && _a !== void 0 ? _a : o.label);
15742
15745
  }))
15743
15746
  :
15744
15747
  React__default.createElement(Dropdown, { trigger: (React__default.createElement("button", { type: 'button' }, triggerIcon)), optionGroups: options, contentProps: {
@@ -44306,6 +44309,7 @@ var SendResults = function (_a) {
44306
44309
  var results = _a.results, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, _b = _a.buttonLabel, buttonLabel = _b === void 0 ? 'Send Results' : _b, geometryOptions = _a.geometryOptions, _c = _a.style, style = _c === void 0 ? {} : _c;
44307
44310
  var _d = useState(defaultAction !== null && defaultAction !== void 0 ? defaultAction : Action$2.preview), selOpt = _d[0], setSelOpt = _d[1];
44308
44311
  var _e = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _e[0], setKey = _e[1];
44312
+ var host = getHost();
44309
44313
  var sendMessage = useSendMessage().sendMessage;
44310
44314
  var disabled = useMemo(function () {
44311
44315
  return !checkPollinationPanel();
@@ -44409,7 +44413,7 @@ var SendResults = function (_a) {
44409
44413
  return true;
44410
44414
  return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
44411
44415
  }),
44412
- }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " results.") }));
44416
+ }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " results to ").concat(host, " scene") }));
44413
44417
  };
44414
44418
 
44415
44419
  /*!
@@ -46812,6 +46816,7 @@ var SendGeometry = function (_a) {
46812
46816
  var geometry = _a.geometry, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, _b = _a.buttonLabel, buttonLabel = _b === void 0 ? 'Send Geometry' : _b, geometryOptions = _a.geometryOptions, style = _a.style;
46813
46817
  var _c = useState(defaultAction !== null && defaultAction !== void 0 ? defaultAction : Action$1.preview), selOpt = _c[0], setSelOpt = _c[1];
46814
46818
  var _d = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0], setKey = _d[1];
46819
+ var host = getHost();
46815
46820
  var sendMessage = useSendMessage().sendMessage;
46816
46821
  var disabled = useMemo(function () {
46817
46822
  return !checkPollinationPanel();
@@ -46912,7 +46917,7 @@ var SendGeometry = function (_a) {
46912
46917
  return true;
46913
46918
  return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
46914
46919
  }),
46915
- }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " geometry.") }));
46920
+ }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " geometry to ").concat(host, " scene") }));
46916
46921
  };
46917
46922
 
46918
46923
  var Action;
@@ -46940,6 +46945,7 @@ var SendModel = function (_a) {
46940
46945
  var hbjson = _a.hbjson, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, _b = _a.buttonLabel, buttonLabel = _b === void 0 ? 'Send Model' : _b, _c = _a.style, style = _c === void 0 ? {} : _c;
46941
46946
  var _d = useState(defaultAction !== null && defaultAction !== void 0 ? defaultAction : Action.preview), selOpt = _d[0], setSelOpt = _d[1];
46942
46947
  var _e = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _e[0], setKey = _e[1];
46948
+ var host = getHost();
46943
46949
  var sendHbjson = useSendHbjson().sendHbjson;
46944
46950
  var disabled = useMemo(function () {
46945
46951
  return !checkPollinationPanel();
@@ -47038,7 +47044,7 @@ var SendModel = function (_a) {
47038
47044
  return true;
47039
47045
  return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
47040
47046
  }),
47041
- }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " model.") }));
47047
+ }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " model to ").concat(host, " scene") }));
47042
47048
  };
47043
47049
 
47044
47050
  var JobTabs;
@@ -49270,7 +49276,7 @@ var FileCard = function (_a) {
49270
49276
  onClicked({ label: label, path: path, file: currFile, description: description });
49271
49277
  } },
49272
49278
  React__default.createElement("div", { className: 'title-param' },
49273
- React__default.createElement("div", { style: { float: 'left', margin: '0 8px 0 0' } }, !isLoading ? React__default.createElement("div", null,
49279
+ React__default.createElement("div", { style: { float: 'left', margin: '0 8px 0 0' } }, !isLoading ? React__default.createElement("div", { title: 'Open the viewer' },
49274
49280
  React__default.createElement("span", { style: { margin: '0 8px 0 0' } }, getFileIcon(18, ((_c = (_b = path.split('/')
49275
49281
  .reverse()[0]) === null || _b === void 0 ? void 0 : _b.split('.')) === null || _c === void 0 ? void 0 : _c.pop()) || '')),
49276
49282
  label)
@@ -49289,7 +49295,7 @@ var FileCard = function (_a) {
49289
49295
  border: '1px solid var(--slate9)',
49290
49296
  // @ts-ignore
49291
49297
  highlight: 'var(--slate7)'
49292
- }, hbjson: CADdata.data, buttonLabel: 'Model', defaultAction: Action.add, optionsConfig: {
49298
+ }, hbjson: CADdata.data, buttonLabel: label, defaultAction: Action.add, optionsConfig: {
49293
49299
  add: true,
49294
49300
  delete: false,
49295
49301
  'subscribe-preview': false,
@@ -49302,7 +49308,7 @@ var FileCard = function (_a) {
49302
49308
  border: '1px solid var(--slate9)',
49303
49309
  // @ts-ignore
49304
49310
  highlight: 'var(--slate7)'
49305
- }, results: CADdata.data, buttonLabel: 'Results', defaultAction: Action.add, optionsConfig: {
49311
+ }, results: CADdata.data, buttonLabel: label, defaultAction: Action.add, optionsConfig: {
49306
49312
  add: true,
49307
49313
  delete: false,
49308
49314
  'subscribe-preview': false,