pollination-react-io 1.13.0 → 1.13.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.
- package/build/index.esm.js +4 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -39798,6 +39798,7 @@ var RecipeInputsForm = function (_a) {
|
|
|
39798
39798
|
var recipe = _a.recipe, onSubmit = _a.onSubmit, projectName = _a.projectName, projectOwner = _a.projectOwner, client = _a.client;
|
|
39799
39799
|
var _g = useState(false), loading = _g[0], setLoading = _g[1];
|
|
39800
39800
|
var schema = generateSchema(recipe.inputs);
|
|
39801
|
+
var host = getHost();
|
|
39801
39802
|
var _h = useForm({
|
|
39802
39803
|
// @ts-ignore
|
|
39803
39804
|
defaultValues: recipe.inputs.reduce(function (p, c) {
|
|
@@ -39949,8 +39950,9 @@ var RecipeInputsForm = function (_a) {
|
|
|
39949
39950
|
// @ts-ignore
|
|
39950
39951
|
name: input.name, control: control, render: function (_a) {
|
|
39951
39952
|
var _b = _a.field; _b.value; var onChange = _b.onChange, field = __rest(_b, ["value", "onChange"]);
|
|
39952
|
-
return (React__default.createElement(ComboFileSelector, { projectOwner: projectOwner, projectName: projectName, defaultOption: input.extensions &&
|
|
39953
|
-
|
|
39953
|
+
return (React__default.createElement(ComboFileSelector, { projectOwner: projectOwner, projectName: projectName, defaultOption: input.extensions &&
|
|
39954
|
+
input.extensions.includes('hbjson') &&
|
|
39955
|
+
host !== 'web' ? 'get_model' : 'get_cloud', onChange: onChange, client: client, inputProps: __assign(__assign({}, field), { accept: input.extensions.map(function (e) { return ".".concat(e); }).join(', ') }) }));
|
|
39954
39956
|
} });
|
|
39955
39957
|
case 'DAGStringInput':
|
|
39956
39958
|
return typeof ((_a = input.spec) === null || _a === void 0 ? void 0 : _a.enum) !== 'undefined' ?
|