pollination-react-io 1.11.2 → 1.12.2

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { RecipeInputsFormProps } from './RecipeInputsForm.types';
3
3
  import './RecipeInputsForm.scss';
4
- declare const RecipeInputsForm: React.FC<RecipeInputsFormProps>;
4
+ export declare const RecipeInputsForm: React.FC<RecipeInputsFormProps>;
5
5
  export default RecipeInputsForm;
@@ -1,11 +1,9 @@
1
1
  import { RecipeInterface } from '@pollination-solutions/pollination-sdk';
2
- import { APIClient, Message } from '../hooks';
2
+ import { APIClient, PanelMessageOut } from '../hooks';
3
3
  export interface RecipeInputsFormProps {
4
4
  recipe: RecipeInterface;
5
- onSubmit?: (data: any) => Promise<void> | Promise<Message> | void;
6
- disabled?: boolean;
5
+ onSubmit?: (name: string, jobArguments: any[], description?: string) => Promise<void> | Promise<PanelMessageOut>;
7
6
  projectOwner?: string;
8
7
  projectName?: string;
9
8
  client?: APIClient;
10
- mode?: 'local' | 'cloud';
11
9
  }
@@ -1,9 +1,13 @@
1
1
  import { FileMeta } from '@pollination-solutions/pollination-sdk';
2
2
  import { APIClient } from '../hooks';
3
+ declare type CloudFileMeta = FileMeta & {
4
+ pollination_cloud_path: string;
5
+ };
3
6
  export interface SelectCloudArtifactsProps {
4
7
  projectOwner?: string;
5
8
  projectName?: string;
6
9
  fileNameMatch?: string;
7
- onChange?: (artifact: FileMeta) => void;
10
+ onChange?: (artifact: CloudFileMeta) => void;
8
11
  client?: APIClient;
9
12
  }
13
+ export {};
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const getFileIcon: (type?: string) => React.ReactNode;
2
+ export declare const getFileIcon: (type?: string, disabled?: boolean) => React.ReactElement;
@@ -4,6 +4,7 @@ export interface ComboBoxProps {
4
4
  items: {
5
5
  id: string;
6
6
  name: string;
7
+ disabled?: boolean;
7
8
  }[];
8
9
  renderItem?: (item: any, i?: number, arr?: any[]) => ReactNode;
9
10
  setSelected?: (item: any) => void;
@@ -12,6 +12,7 @@ interface JobArgs {
12
12
  }
13
13
  export declare const useCreateStudy: (accountName: string, projectName: string, client: APIClient) => {
14
14
  host: string;
15
- createStudy: (({ name, source, description }: JobArgs, data: object) => Promise<void>) | (({ name, source, description }: JobArgs, data: object, key?: string) => Promise<import("./types").PanelMessageIn>);
15
+ createStudy: ({ name, source, description }: JobArgs, data: object, onSuccess?: (accountName: string, projectName: string, studyId: string) => void) => Promise<void>;
16
+ createLocalStudy: ({ name, source, description }: JobArgs, data: object, key?: string) => Promise<import("./types").PanelMessageIn>;
16
17
  };
17
18
  export {};
package/build/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './ComboFileSelector/ComboFileSelector';
5
5
  export * from './ConfigureLocalRun/ConfigureLocalRun';
6
6
  export * from './GetGeometry/GetGeometry';
7
7
  export * from './GetModel/GetModel';
8
+ export * from './RecipeInputsForm/RecipeInputsForm';
8
9
  export * from './RunCommand/RunCommand';
9
10
  export * from './SelectAccount/SelectAccount';
10
11
  export * from './SelectCloudArtifacts/SelectCloudArtifacts';