pollination-react-io 1.11.0 → 1.12.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.
- package/build/RecipeInputsForm/RecipeInputsForm.d.ts +1 -1
- package/build/RecipeInputsForm/RecipeInputsForm.types.d.ts +2 -4
- package/build/SelectCloudArtifacts/SelectCloudArtifacts.types.d.ts +5 -1
- package/build/SelectCloudArtifacts/getFileTypeIcon.d.ts +1 -1
- package/build/atoms/ComboBox/ComboBox.types.d.ts +1 -0
- package/build/hooks/types.d.ts +2 -2
- package/build/hooks/useCreateStudy.d.ts +2 -1
- package/build/hooks/useManageSettings.d.ts +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.esm.js +290 -376
- package/build/index.esm.js.map +1 -1
- package/build/index.js +290 -375
- package/build/index.js.map +1 -1
- package/package.json +4 -6
|
@@ -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,
|
|
2
|
+
import { APIClient, PanelMessageOut } from '../hooks';
|
|
3
3
|
export interface RecipeInputsFormProps {
|
|
4
4
|
recipe: RecipeInterface;
|
|
5
|
-
onSubmit?: (
|
|
6
|
-
disabled?: boolean;
|
|
5
|
+
onSubmit?: (name: string, jobArguments: any[], description?: string) => Promise<void> | Promise<PanelMessageOut> | void;
|
|
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:
|
|
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.
|
|
2
|
+
export declare const getFileIcon: (type?: string, disabled?: boolean) => React.ReactElement;
|
package/build/hooks/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare type GeometryAction = 'AddGeometry' | 'PreviewGeometry' | 'DeleteGeometry' | 'ClearGeometry' | 'SubscribePreviewGeometry';
|
|
2
2
|
export declare type ModelAction = 'AddHBJSON' | 'PreviewHBJSON' | 'DeleteHBJSON' | 'ClearHBJSON' | 'SubscribePreviewHBJSON';
|
|
3
|
-
export declare type SettingsAction = 'AddSettings'
|
|
4
|
-
export declare type CommandAction = 'AddCommand'
|
|
3
|
+
export declare type SettingsAction = 'AddSettings';
|
|
4
|
+
export declare type CommandAction = 'AddCommand';
|
|
5
5
|
export declare type ResultsAction = 'AddResults' | 'PreviewResults' | 'DeleteResults' | 'ClearResults' | 'SubscribePreviewResults';
|
|
6
6
|
export declare type StudyAction = 'AddStudy' | 'PreviewStudy' | 'DeleteStudy' | 'ClearStudy' | 'SubscribePreviewStudy';
|
|
7
7
|
export declare type Action = GeometryAction | ModelAction | ResultsAction | StudyAction | CommandAction | SettingsAction;
|
|
@@ -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: (
|
|
15
|
+
createStudy: ({ name, source, description }: JobArgs, data: object) => Promise<void>;
|
|
16
|
+
createLocalStudy: ({ name, source, description }: JobArgs, data: object, key?: string) => Promise<import("./types").PanelMessageIn>;
|
|
16
17
|
};
|
|
17
18
|
export {};
|
|
@@ -2,5 +2,5 @@ import type { SettingsOptions } from '.';
|
|
|
2
2
|
export declare const useManageSettings: () => {
|
|
3
3
|
host: "web" | "rhino" | "revit" | "sketchup";
|
|
4
4
|
sendSettings: (settings: SettingsOptions) => import("./types").PanelMessageIn;
|
|
5
|
-
getSettings: () => any;
|
|
5
|
+
getSettings: (key?: string) => any;
|
|
6
6
|
};
|
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';
|