pollination-react-io 1.52.2 → 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.
package/build/index.js CHANGED
@@ -44335,6 +44335,7 @@ var SendResults = function (_a) {
44335
44335
  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;
44336
44336
  var _d = React.useState(defaultAction !== null && defaultAction !== void 0 ? defaultAction : Action$2.preview), selOpt = _d[0], setSelOpt = _d[1];
44337
44337
  var _e = React.useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _e[0], setKey = _e[1];
44338
+ var host = getHost();
44338
44339
  var sendMessage = useSendMessage().sendMessage;
44339
44340
  var disabled = React.useMemo(function () {
44340
44341
  return !checkPollinationPanel();
@@ -44438,7 +44439,7 @@ var SendResults = function (_a) {
44438
44439
  return true;
44439
44440
  return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
44440
44441
  }),
44441
- }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " results.") }));
44442
+ }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " results to ").concat(host, " scene") }));
44442
44443
  };
44443
44444
 
44444
44445
  /*!
@@ -46841,6 +46842,7 @@ var SendGeometry = function (_a) {
46841
46842
  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;
46842
46843
  var _c = React.useState(defaultAction !== null && defaultAction !== void 0 ? defaultAction : Action$1.preview), selOpt = _c[0], setSelOpt = _c[1];
46843
46844
  var _d = React.useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0], setKey = _d[1];
46845
+ var host = getHost();
46844
46846
  var sendMessage = useSendMessage().sendMessage;
46845
46847
  var disabled = React.useMemo(function () {
46846
46848
  return !checkPollinationPanel();
@@ -46941,7 +46943,7 @@ var SendGeometry = function (_a) {
46941
46943
  return true;
46942
46944
  return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
46943
46945
  }),
46944
- }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " geometry.") }));
46946
+ }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " geometry to ").concat(host, " scene") }));
46945
46947
  };
46946
46948
 
46947
46949
  var Action;
@@ -46969,6 +46971,7 @@ var SendModel = function (_a) {
46969
46971
  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;
46970
46972
  var _d = React.useState(defaultAction !== null && defaultAction !== void 0 ? defaultAction : Action.preview), selOpt = _d[0], setSelOpt = _d[1];
46971
46973
  var _e = React.useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _e[0], setKey = _e[1];
46974
+ var host = getHost();
46972
46975
  var sendHbjson = useSendHbjson().sendHbjson;
46973
46976
  var disabled = React.useMemo(function () {
46974
46977
  return !checkPollinationPanel();
@@ -47067,7 +47070,7 @@ var SendModel = function (_a) {
47067
47070
  return true;
47068
47071
  return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
47069
47072
  }),
47070
- }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " model.") }));
47073
+ }], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " model to ").concat(host, " scene") }));
47071
47074
  };
47072
47075
 
47073
47076
  var JobTabs;
@@ -49299,7 +49302,7 @@ var FileCard = function (_a) {
49299
49302
  onClicked({ label: label, path: path, file: currFile, description: description });
49300
49303
  } },
49301
49304
  React__default["default"].createElement("div", { className: 'title-param' },
49302
- React__default["default"].createElement("div", { style: { float: 'left', margin: '0 8px 0 0' } }, !isLoading ? React__default["default"].createElement("div", null,
49305
+ React__default["default"].createElement("div", { style: { float: 'left', margin: '0 8px 0 0' } }, !isLoading ? React__default["default"].createElement("div", { title: 'Open the viewer' },
49303
49306
  React__default["default"].createElement("span", { style: { margin: '0 8px 0 0' } }, getFileIcon(18, ((_c = (_b = path.split('/')
49304
49307
  .reverse()[0]) === null || _b === void 0 ? void 0 : _b.split('.')) === null || _c === void 0 ? void 0 : _c.pop()) || '')),
49305
49308
  label)
@@ -49318,7 +49321,7 @@ var FileCard = function (_a) {
49318
49321
  border: '1px solid var(--slate9)',
49319
49322
  // @ts-ignore
49320
49323
  highlight: 'var(--slate7)'
49321
- }, hbjson: CADdata.data, buttonLabel: 'Model', defaultAction: Action.add, optionsConfig: {
49324
+ }, hbjson: CADdata.data, buttonLabel: label, defaultAction: Action.add, optionsConfig: {
49322
49325
  add: true,
49323
49326
  delete: false,
49324
49327
  'subscribe-preview': false,
@@ -49331,7 +49334,7 @@ var FileCard = function (_a) {
49331
49334
  border: '1px solid var(--slate9)',
49332
49335
  // @ts-ignore
49333
49336
  highlight: 'var(--slate7)'
49334
- }, results: CADdata.data, buttonLabel: 'Results', defaultAction: Action.add, optionsConfig: {
49337
+ }, results: CADdata.data, buttonLabel: label, defaultAction: Action.add, optionsConfig: {
49335
49338
  add: true,
49336
49339
  delete: false,
49337
49340
  'subscribe-preview': false,