pollination-react-io 1.9.0 → 1.10.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/ComboFileSelector/ComboFileSelector.d.ts +1 -0
- package/build/ComboFileSelector/ComboFileSelector.types.d.ts +1 -0
- package/build/ConfigureLocalRun/ConfigureLocalRun.types.d.ts +1 -0
- package/build/SelectCloudArtifacts/SelectCloudArtifacts.types.d.ts +1 -1
- package/build/SelectStudy/SelectStudy.types.d.ts +1 -2
- package/build/atoms/Avatar/Avatar.d.ts +1 -1
- package/build/atoms/Dropdown/Dropdown.d.ts +2 -2
- package/build/atoms/Logo/index.d.ts +6 -2
- package/build/atoms/RadioList/RadioList.types.d.ts +0 -1
- package/build/atoms/index.d.ts +2 -0
- package/build/hooks/index.d.ts +2 -2
- package/build/hooks/types.d.ts +12 -10
- package/build/hooks/useCreateStudy.d.ts +1 -1
- package/build/hooks/useManageSettings.d.ts +1 -1
- package/build/hooks/useRunCommand.d.ts +1 -1
- package/build/hooks/useSendHbjson.d.ts +2 -12
- package/build/hooks/useSendMessage.d.ts +6 -0
- package/build/hooks/utilities.d.ts +3 -3
- package/build/index.esm.js +194 -210
- package/build/index.esm.js.map +1 -1
- package/build/index.js +194 -210
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/build/hooks/useSendGeometry.d.ts +0 -16
|
@@ -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
|
}
|
|
@@ -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';
|
package/build/hooks/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { PanelMessageIn, PanelMessageOut, Coordinates, SettingsOptions, } from './types';
|
|
2
2
|
export * from './useAPIClient';
|
|
3
3
|
export * from './useCreateStudy';
|
|
4
4
|
export * from './useGetHbjson';
|
|
5
5
|
export * from './useGetGeometry';
|
|
6
6
|
export * from './useSendHbjson';
|
|
7
|
-
export * from './
|
|
7
|
+
export * from './useSendMessage';
|
|
8
8
|
export * from './useRunCommand';
|
|
9
9
|
export * from './useManageSettings';
|
|
10
10
|
export * from './useHbjsontoVTK';
|
package/build/hooks/types.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare type
|
|
6
|
-
export declare type
|
|
7
|
-
export declare type
|
|
8
|
-
export
|
|
9
|
-
export declare type Action = GeometryAction | ModelAction | ResultsAction | StudyAction | 'RunCommand' | 'SetModelSettings';
|
|
10
|
-
export interface Message {
|
|
1
|
+
export declare type GeometryAction = 'AddGeometry' | 'PreviewGeometry' | 'DeleteGeometry' | 'ClearGeometry' | 'SubscribePreviewGeometry';
|
|
2
|
+
export declare type ModelAction = 'AddHBJSON' | 'PreviewHBJSON' | 'DeleteHBJSON' | 'ClearHBJSON' | 'SubscribePreviewHBJSON';
|
|
3
|
+
export declare type SettingsAction = 'AddSettings' | 'PreviewSettings' | 'DeleteSettings' | 'ClearSettings' | 'SubscribePreviewSettings';
|
|
4
|
+
export declare type CommandAction = 'AddCommand' | 'PreviewCommand' | 'DeleteCommand' | 'ClearCommand' | 'SubscribePreviewCommand';
|
|
5
|
+
export declare type ResultsAction = 'AddResults' | 'PreviewResults' | 'DeleteResults' | 'ClearResults' | 'SubscribePreviewResults';
|
|
6
|
+
export declare type StudyAction = 'AddStudy' | 'PreviewStudy' | 'DeleteStudy' | 'ClearStudy' | 'SubscribePreviewStudy';
|
|
7
|
+
export declare type Action = GeometryAction | ModelAction | ResultsAction | StudyAction | CommandAction | SettingsAction;
|
|
8
|
+
export interface PanelMessageIn {
|
|
11
9
|
action?: Action;
|
|
12
10
|
data?: any;
|
|
13
11
|
options?: any;
|
|
14
12
|
uniqueId?: string;
|
|
15
13
|
}
|
|
14
|
+
export interface PanelMessageOut {
|
|
15
|
+
data?: any;
|
|
16
|
+
identifier?: string;
|
|
17
|
+
}
|
|
16
18
|
export interface Coordinates {
|
|
17
19
|
lat: number;
|
|
18
20
|
lon: number;
|
|
@@ -12,6 +12,6 @@ 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").
|
|
15
|
+
createStudy: (({ name, source, description }: JobArgs, data: object) => Promise<void>) | (({ name, source, description }: JobArgs, data: object, key?: string) => Promise<import("./types").PanelMessageIn>);
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SettingsOptions } from '.';
|
|
2
2
|
export declare const useManageSettings: () => {
|
|
3
3
|
host: "web" | "rhino" | "revit" | "sketchup";
|
|
4
|
-
sendSettings: (settings: SettingsOptions) => import("./types").
|
|
4
|
+
sendSettings: (settings: SettingsOptions) => import("./types").PanelMessageIn;
|
|
5
5
|
getSettings: () => any;
|
|
6
6
|
};
|
|
@@ -4,7 +4,7 @@ declare global {
|
|
|
4
4
|
chrome?: any;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
export declare const useRunCommand: () => {
|
|
7
|
+
export declare const useRunCommand: (defaultKey?: string) => {
|
|
8
8
|
host: "web" | "rhino" | "revit" | "sketchup";
|
|
9
9
|
runCommand: (commandString: string, commandOptions?: any) => void;
|
|
10
10
|
};
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import { ModelAction,
|
|
2
|
-
interface SendGeometryOptions {
|
|
3
|
-
layer: string;
|
|
4
|
-
units: string;
|
|
5
|
-
}
|
|
6
|
-
interface SendGeometry {
|
|
7
|
-
uniqueId: string;
|
|
8
|
-
options?: SendGeometryOptions;
|
|
9
|
-
}
|
|
10
|
-
declare type SendGeometryMessage = Message & SendGeometry;
|
|
1
|
+
import { ModelAction, PanelMessageIn } from './types';
|
|
11
2
|
export declare const useSendHbjson: () => {
|
|
12
3
|
host: "web" | "rhino" | "revit" | "sketchup";
|
|
13
4
|
state: {};
|
|
14
|
-
sendHbjson: (action: ModelAction, message:
|
|
5
|
+
sendHbjson: (action: ModelAction, message: PanelMessageIn) => PanelMessageIn;
|
|
15
6
|
};
|
|
16
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PanelMessageIn } from './types';
|
|
2
2
|
export declare function checkDotNet(): boolean;
|
|
3
3
|
export declare function checkRuby(): boolean;
|
|
4
|
-
export declare function sendMessageDotNet(message:
|
|
5
|
-
export declare function sendMessageRuby(message:
|
|
4
|
+
export declare function sendMessageDotNet(message: PanelMessageIn): PanelMessageIn;
|
|
5
|
+
export declare function sendMessageRuby(message: PanelMessageIn): PanelMessageIn;
|
|
6
6
|
export declare function getHost(key?: string, defaultValue?: 'web' | 'rhino' | 'revit' | 'sketchup'): 'web' | 'rhino' | 'revit' | 'sketchup';
|