pollination-react-io 1.64.0 → 1.64.1

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.
@@ -41252,8 +41252,14 @@ var ComboFileSelector = function (_a) {
41252
41252
  return (React__default.createElement(SelectCloudArtifacts, { projectOwner: projectOwner, projectName: projectName, value: value, hidden: hidden, fileNameMatch: typeof inputProps.accept === 'string' ?
41253
41253
  ".*(".concat(inputProps.accept.replace(/\./g, '').split(', ').join('$|'), "$)") : '.*', onChange: onChange, client: client }));
41254
41254
  case 'get_local':
41255
- return (React__default.createElement(SelectLocalArtifactNative, { onChange: handleLocalArtifactSelect, buttonLabel: "Select ".concat(inputProps.accept.split(',').length > 1 ?
41256
- 'any of' : 'an', " ").concat(inputProps.accept, " ").concat(inputProps.accept.split(',').length > 1 ? 'file types' : 'file', "."), fileMatchPattern: "File types ".concat(inputProps.accept, "|*").concat(inputProps.accept.split(', ').join(';*')) }));
41255
+ return (React__default.createElement(SelectLocalArtifactNative, { onChange: handleLocalArtifactSelect, buttonLabel: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.accept)
41256
+ ? "Select ".concat(inputProps.accept.split(',').length > 1
41257
+ ? 'any of'
41258
+ : 'an', " ").concat(inputProps.accept, " ").concat(inputProps.accept.split(',').length > 1
41259
+ ? 'file types' : 'file', ".")
41260
+ : 'Select a file.', fileMatchPattern: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.accept)
41261
+ ? "File types ".concat(inputProps.accept, "|*").concat(inputProps.accept.split(', ').join(';*'))
41262
+ : 'File types | *.*' }));
41257
41263
  default:
41258
41264
  return (React__default.createElement(FileInput, { onChange: onChange, inputProps: inputProps, accept: typeof inputProps.accept === 'string' ?
41259
41265
  inputProps.accept.split(', ') : undefined }));
@@ -44759,15 +44765,15 @@ var RecipeForm = function (_a) {
44759
44765
  : React__default.createElement(TextInput, { key: i.name, inputProps: __assign(__assign({}, register(i.name)), { defaultValue: i.default }), reset: function () { return handleReset(i); } });
44760
44766
  case InputType.DAGFileInput:
44761
44767
  return React__default.createElement(Controller, { name: i.name, control: control, defaultValue: i.default, render: function (_a) {
44762
- var _b, _c, _d;
44763
- var _e = _a.field, value = _e.value, onChange = _e.onChange, field = __rest(_e, ["value", "onChange"]);
44768
+ var _b, _c;
44769
+ var _d = _a.field, value = _d.value, onChange = _d.onChange, field = __rest(_d, ["value", "onChange"]);
44764
44770
  return React__default.createElement(ComboFileSelector, { projectOwner: projectOwner, projectName: projectName, defaultOption: i.extensions &&
44765
44771
  ((_b = i.extensions) === null || _b === void 0 ? void 0 : _b.includes('hbjson')) &&
44766
44772
  host !== 'web' ? 'get_model' : 'get_cloud', optionsConfig: {
44767
- get_model: ((_c = i.extensions) === null || _c === void 0 ? void 0 : _c.includes('hbjson')) && host !== 'web',
44773
+ get_model: host !== 'web' && i.extensions && i.extensions.includes('hbjson'),
44768
44774
  get_local: host !== 'web',
44769
44775
  get_file: host === 'web'
44770
- }, value: value, onChange: onChange, inputProps: __assign(__assign({}, field), { accept: i.extensions && ((_d = i.extensions) === null || _d === void 0 ? void 0 : _d.map(function (e) { return ".".concat(e); }).join(', ')) }), client: client });
44776
+ }, value: value, onChange: onChange, inputProps: __assign(__assign({}, field), { accept: i.extensions && ((_c = i.extensions) === null || _c === void 0 ? void 0 : _c.map(function (e) { return ".".concat(e); }).join(', ')) }), client: client });
44771
44777
  } });
44772
44778
  // Others...
44773
44779
  default: