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.js
CHANGED
|
@@ -39825,6 +39825,7 @@ var RecipeInputsForm = function (_a) {
|
|
|
39825
39825
|
var recipe = _a.recipe, onSubmit = _a.onSubmit, projectName = _a.projectName, projectOwner = _a.projectOwner, client = _a.client;
|
|
39826
39826
|
var _g = React.useState(false), loading = _g[0], setLoading = _g[1];
|
|
39827
39827
|
var schema = generateSchema(recipe.inputs);
|
|
39828
|
+
var host = getHost();
|
|
39828
39829
|
var _h = useForm({
|
|
39829
39830
|
// @ts-ignore
|
|
39830
39831
|
defaultValues: recipe.inputs.reduce(function (p, c) {
|
|
@@ -39976,8 +39977,9 @@ var RecipeInputsForm = function (_a) {
|
|
|
39976
39977
|
// @ts-ignore
|
|
39977
39978
|
name: input.name, control: control, render: function (_a) {
|
|
39978
39979
|
var _b = _a.field; _b.value; var onChange = _b.onChange, field = __rest(_b, ["value", "onChange"]);
|
|
39979
|
-
return (React__default["default"].createElement(ComboFileSelector, { projectOwner: projectOwner, projectName: projectName, defaultOption: input.extensions &&
|
|
39980
|
-
|
|
39980
|
+
return (React__default["default"].createElement(ComboFileSelector, { projectOwner: projectOwner, projectName: projectName, defaultOption: input.extensions &&
|
|
39981
|
+
input.extensions.includes('hbjson') &&
|
|
39982
|
+
host !== 'web' ? 'get_model' : 'get_cloud', onChange: onChange, client: client, inputProps: __assign(__assign({}, field), { accept: input.extensions.map(function (e) { return ".".concat(e); }).join(', ') }) }));
|
|
39981
39983
|
} });
|
|
39982
39984
|
case 'DAGStringInput':
|
|
39983
39985
|
return typeof ((_a = input.spec) === null || _a === void 0 ? void 0 : _a.enum) !== 'undefined' ?
|