pollination-react-io 1.16.7 → 1.17.0

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.
@@ -3,6 +3,7 @@ import { APIClient } from '../hooks';
3
3
  export interface ComboFileSelectorProps {
4
4
  projectOwner?: string;
5
5
  projectName?: string;
6
+ defaultValue?: string;
6
7
  defaultOption?: 'get_model' | 'get_file' | 'get_cloud' | 'get_local';
7
8
  mode?: 'local' | 'cloud';
8
9
  onChange?: (...any: any) => void;
@@ -2,6 +2,12 @@ import { RecipeInterface } from '@pollination-solutions/pollination-sdk';
2
2
  import { APIClient, PanelMessageOut } from '../hooks';
3
3
  export interface RecipeInputsFormProps {
4
4
  recipe: RecipeInterface;
5
+ controlledValues?: {
6
+ [index: string]: {
7
+ value: string;
8
+ hidden?: boolean;
9
+ };
10
+ };
5
11
  onSubmit?: (name: string, jobArguments: any[], description?: string) => Promise<void> | Promise<PanelMessageOut>;
6
12
  projectOwner?: string;
7
13
  projectName?: string;
@@ -4,9 +4,9 @@ import { APIClient } from '../hooks';
4
4
  export interface RunCardProps {
5
5
  projectOwner: string;
6
6
  projectName: string;
7
- jobId: string;
8
- run: Run;
9
- canWrite: boolean;
7
+ jobId?: string;
8
+ run?: Run;
9
+ canWrite?: boolean;
10
10
  style?: CSSProperties;
11
11
  client?: APIClient;
12
12
  authUser?: UserPrivate;
@@ -7,6 +7,7 @@ export interface SelectCloudArtifactsProps {
7
7
  projectOwner?: string;
8
8
  projectName?: string;
9
9
  jobId?: string;
10
+ defaultValue?: string;
10
11
  fileNameMatch?: string;
11
12
  onChange?: (artifact: CloudFileMeta) => void;
12
13
  client?: APIClient;
@@ -4,9 +4,9 @@ import { APIClient } from '../hooks';
4
4
  export interface StudyCardProps {
5
5
  projectOwner: string;
6
6
  projectName: string;
7
- study: CloudJob;
8
- canWrite: boolean;
9
- runList: boolean;
7
+ study?: CloudJob;
8
+ canWrite?: boolean;
9
+ runList?: boolean;
10
10
  style?: CSSProperties;
11
11
  authUser?: UserPrivate;
12
12
  client?: APIClient;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ButtonProps } from './Button.types';
3
3
  import './Button.scss';
4
- declare const Button: React.FC<ButtonProps>;
4
+ export declare const Button: React.FC<ButtonProps>;
5
5
  export default Button;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { FormInputProps } from './FormInput.types';
3
+ import './FormInput.scss';
4
+ export declare const FormInput: React.FC<FormInputProps>;
5
+ export default FormInput;
@@ -0,0 +1,6 @@
1
+ export interface FormInputProps {
2
+ name: string;
3
+ description?: string;
4
+ errorMessage?: any;
5
+ hidden?: boolean;
6
+ }
@@ -5,6 +5,7 @@ export * from './ComboBox/ComboBox';
5
5
  export * from './ConditionalWrapper';
6
6
  export * from './Dropdown/Dropdown';
7
7
  export * from './FileInput/FileInput';
8
+ export * from './FormInput/FormInput';
8
9
  export * from './InputDescription/InputDescription';
9
10
  export * from './Label/Label';
10
11
  export * from './LoadingIcon/LoadingIcon';
@@ -1,5 +1,5 @@
1
1
  import duration from 'dayjs/plugin/duration';
2
- import { Run, RunStatusEnum } from '@pollination-solutions/pollination-sdk';
2
+ import { CloudJob, Run, RunStatusEnum } from '@pollination-solutions/pollination-sdk';
3
3
  import { APIClient } from './useAPIClient';
4
4
  export declare const statusMap: {
5
5
  pending: {
@@ -46,7 +46,7 @@ export declare const statusMap: {
46
46
  };
47
47
  };
48
48
  export declare const getSummaryColor: (status: any) => string;
49
- export declare const getDuration: (run?: Run) => duration.Duration;
49
+ export declare const getDuration: (item?: Run | CloudJob) => duration.Duration;
50
50
  export declare const useRuns: (client: APIClient) => {
51
51
  listRuns: (projectOwner: string, projectName: string, jobId?: string[], page?: number, perPage?: number, statusFilter?: RunStatusEnum) => Promise<import("@pollination-solutions/pollination-sdk").RunList>;
52
52
  fetchRun: (projectOwner: string, projectName: string, runId: string) => Promise<Run>;