pollination-react-io 1.8.2 → 1.9.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.
- package/build/ComboFileSelector/ComboFileSelector.d.ts +1 -0
- package/build/ComboFileSelector/ComboFileSelector.types.d.ts +2 -1
- package/build/ConfigureLocalRun/ConfigureLocalRun.d.ts +5 -0
- package/build/ConfigureLocalRun/ConfigureLocalRun.types.d.ts +4 -0
- package/build/RecipeInputsForm/RecipeInputsForm.types.d.ts +1 -0
- package/build/SelectCloudArtifacts/SelectCloudArtifacts.d.ts +1 -1
- package/build/SelectCloudArtifacts/SelectCloudArtifacts.types.d.ts +1 -1
- package/build/SelectLocalArtifacts/SelectLocalArtifacts.d.ts +4 -0
- package/build/SelectLocalArtifacts/SelectLocalArtifacts.types.d.ts +5 -0
- package/build/SelectLocalArtifacts/getFileTypeIcon.d.ts +2 -0
- package/build/SelectStudy/SelectStudy.types.d.ts +1 -2
- package/build/atoms/Avatar/Avatar.d.ts +1 -1
- package/build/atoms/ComboBox/ComboBox.types.d.ts +11 -10
- package/build/atoms/Dropdown/Dropdown.d.ts +2 -2
- package/build/atoms/Label/Label.types.d.ts +1 -0
- package/build/atoms/Logo/index.d.ts +6 -2
- package/build/atoms/NumberInput/NumberInput.d.ts +1 -0
- package/build/atoms/RadioList/RadioList.types.d.ts +0 -1
- package/build/atoms/index.d.ts +2 -0
- package/build/hooks/useManageSettings.d.ts +1 -1
- package/build/hooks/useRunCommand.d.ts +1 -1
- package/build/hooks/useSendGeometry.d.ts +1 -1
- package/build/hooks/useSendHbjson.d.ts +1 -1
- package/build/hooks/utilities.d.ts +1 -1
- package/build/index.d.ts +3 -0
- package/build/index.esm.js +831 -359
- package/build/index.esm.js.map +1 -1
- package/build/index.js +833 -358
- package/build/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -3,8 +3,9 @@ import { APIClient } from '../hooks';
|
|
|
3
3
|
export interface ComboFileSelectorProps {
|
|
4
4
|
projectOwner?: string;
|
|
5
5
|
projectName?: string;
|
|
6
|
-
defaultOption?: 'get_model' | 'get_file' | 'get_cloud';
|
|
6
|
+
defaultOption?: 'get_model' | 'get_file' | 'get_cloud' | 'get_local';
|
|
7
7
|
onChange?: (...any: any) => void;
|
|
8
|
+
disabled?: boolean;
|
|
8
9
|
client: APIClient;
|
|
9
10
|
inputProps?: HTMLProps<HTMLInputElement>;
|
|
10
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SelectCloudArtifactsProps } from './SelectCloudArtifacts.types';
|
|
3
|
-
declare const SelectCloudArtifacts: React.FC<SelectCloudArtifactsProps>;
|
|
3
|
+
export declare const SelectCloudArtifacts: React.FC<SelectCloudArtifactsProps>;
|
|
4
4
|
export default SelectCloudArtifacts;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Project,
|
|
1
|
+
import { Project, UserPrivate } from '@pollination-solutions/pollination-sdk';
|
|
2
2
|
import { APIClient } from '../hooks';
|
|
3
3
|
export interface SelectStudyProps {
|
|
4
4
|
projectName?: string;
|
|
@@ -6,5 +6,4 @@ export interface SelectStudyProps {
|
|
|
6
6
|
authUser?: UserPrivate;
|
|
7
7
|
client?: APIClient;
|
|
8
8
|
setSelStudy?: (project: Project) => void;
|
|
9
|
-
queryConfig?: Partial<ProjectsApiListProjectsRequest>;
|
|
10
9
|
}
|
|
@@ -7,16 +7,6 @@ export interface ComboBoxProps {
|
|
|
7
7
|
}[];
|
|
8
8
|
renderItem?: (item: any, i?: number, arr?: any[]) => ReactNode;
|
|
9
9
|
setSelected?: (item: any) => void;
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
icon?: ReactElement;
|
|
13
|
-
inputStyle?: CSSProperties;
|
|
14
|
-
menuStyle?: CSSProperties;
|
|
15
|
-
inputProps?: HTMLProps<HTMLInputElement>;
|
|
16
|
-
header?: ReactNode;
|
|
17
|
-
footer?: string | ReactNode;
|
|
18
|
-
noMatchText?: string;
|
|
19
|
-
ref?: Ref<any>;
|
|
20
10
|
onScrollReachEnd?: (...args: any) => void;
|
|
21
11
|
stateReducer?: (state: UseComboboxState<{
|
|
22
12
|
id: string;
|
|
@@ -28,4 +18,15 @@ export interface ComboBoxProps {
|
|
|
28
18
|
id: string;
|
|
29
19
|
name: string;
|
|
30
20
|
}>>;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
icon?: ReactElement;
|
|
24
|
+
inputStyle?: CSSProperties;
|
|
25
|
+
menuStyle?: CSSProperties;
|
|
26
|
+
maxHeight?: number;
|
|
27
|
+
inputProps?: HTMLProps<HTMLInputElement>;
|
|
28
|
+
header?: ReactNode;
|
|
29
|
+
footer?: string | ReactNode;
|
|
30
|
+
noMatchText?: string;
|
|
31
|
+
ref?: Ref<any>;
|
|
31
32
|
}
|
|
@@ -16,7 +16,7 @@ export declare type OptionGroup = {
|
|
|
16
16
|
type?: 'radio' | 'default';
|
|
17
17
|
value?: string;
|
|
18
18
|
};
|
|
19
|
-
interface DropdownProps {
|
|
19
|
+
export interface DropdownProps {
|
|
20
20
|
optionGroups: OptionGroup[];
|
|
21
21
|
trigger: React.ReactNode;
|
|
22
22
|
open?: boolean;
|
|
@@ -26,4 +26,4 @@ interface DropdownProps {
|
|
|
26
26
|
disabled?: boolean;
|
|
27
27
|
}
|
|
28
28
|
export declare const Dropdown: FC<DropdownProps>;
|
|
29
|
-
export
|
|
29
|
+
export default Dropdown;
|
package/build/atoms/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export * from './NumberInput/NumberInput';
|
|
|
11
11
|
export * from './SettingsButton';
|
|
12
12
|
export * from './TextInput/TextInput';
|
|
13
13
|
export * from './Tooltip';
|
|
14
|
+
export { AvatarProps } from './Avatar/Avatar';
|
|
15
|
+
export { ButtonProps } from './Button/Button.types';
|
|
14
16
|
export { ComboBoxProps } from './ComboBox/ComboBox.types';
|
|
15
17
|
export { FileInputProps } from './FileInput/FileInput.types';
|
|
16
18
|
export { LabelProps } from './Label/Label.types';
|
|
@@ -9,7 +9,7 @@ interface SendGeometry {
|
|
|
9
9
|
}
|
|
10
10
|
declare type SendGeometryMessage = Message & SendGeometry;
|
|
11
11
|
export declare const useSendGeometry: () => {
|
|
12
|
-
host:
|
|
12
|
+
host: "web" | "rhino" | "revit" | "sketchup";
|
|
13
13
|
state: {};
|
|
14
14
|
sendGeometry: (action: GeometryAction | ResultsAction, message: SendGeometryMessage) => Message;
|
|
15
15
|
};
|
|
@@ -9,7 +9,7 @@ interface SendGeometry {
|
|
|
9
9
|
}
|
|
10
10
|
declare type SendGeometryMessage = Message & SendGeometry;
|
|
11
11
|
export declare const useSendHbjson: () => {
|
|
12
|
-
host:
|
|
12
|
+
host: "web" | "rhino" | "revit" | "sketchup";
|
|
13
13
|
state: {};
|
|
14
14
|
sendHbjson: (action: ModelAction, message: SendGeometryMessage) => Message;
|
|
15
15
|
};
|
|
@@ -3,4 +3,4 @@ export declare function checkDotNet(): boolean;
|
|
|
3
3
|
export declare function checkRuby(): boolean;
|
|
4
4
|
export declare function sendMessageDotNet(message: Message): Message;
|
|
5
5
|
export declare function sendMessageRuby(message: Message): Message;
|
|
6
|
-
export declare function getHost(key?: string, defaultValue?:
|
|
6
|
+
export declare function getHost(key?: string, defaultValue?: 'web' | 'rhino' | 'revit' | 'sketchup'): 'web' | 'rhino' | 'revit' | 'sketchup';
|
package/build/index.d.ts
CHANGED
|
@@ -2,10 +2,13 @@ export * from './hooks';
|
|
|
2
2
|
export * from './AuthUser/AuthUser';
|
|
3
3
|
export * from './CreateStudy/CreateStudy';
|
|
4
4
|
export * from './ComboFileSelector/ComboFileSelector';
|
|
5
|
+
export * from './ConfigureLocalRun/ConfigureLocalRun';
|
|
5
6
|
export * from './GetGeometry/GetGeometry';
|
|
6
7
|
export * from './GetModel/GetModel';
|
|
7
8
|
export * from './RunCommand/RunCommand';
|
|
8
9
|
export * from './SelectAccount/SelectAccount';
|
|
10
|
+
export * from './SelectCloudArtifacts/SelectCloudArtifacts';
|
|
11
|
+
export * from './SelectLocalArtifacts/SelectLocalArtifacts';
|
|
9
12
|
export * from './SelectStudy/SelectStudy';
|
|
10
13
|
export * from './SelectProject/SelectProject';
|
|
11
14
|
export * from './SelectRecipe/SelectRecipe';
|