pollination-react-io 1.9.2 → 1.11.1

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,4 @@
1
1
  import React from 'react';
2
2
  import { ComboFileSelectorProps } from './ComboFileSelector.types';
3
- import './ComboFileSelector.scss';
4
3
  export declare const ComboFileSelector: React.FC<ComboFileSelectorProps>;
5
4
  export default ComboFileSelector;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ConfigureLocalRunProps } from './ConfigureLocalRun.types';
3
- import './ConfigureLocalRun.scss';
4
3
  export declare const ConfigureLocalRun: React.FC<ConfigureLocalRunProps>;
5
4
  export default ConfigureLocalRun;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { SelectLocalArtifactNativeProps } from './SelectLocalArtifactNative.types';
3
+ import './SelectLocalArtifactNative.scss';
4
+ declare const SelectLocalArtifactNative: React.FC<SelectLocalArtifactNativeProps>;
5
+ export default SelectLocalArtifactNative;
@@ -0,0 +1,3 @@
1
+ export interface SelectLocalArtifactNativeProps {
2
+ onChange?: (path: string) => void;
3
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ButtonGroupProps } from './ButtonGroup.types';
3
+ import './ButtonGroup.scss';
4
+ declare const ButtonGroup: React.FC<ButtonGroupProps>;
5
+ export default ButtonGroup;
@@ -0,0 +1,5 @@
1
+ import { HTMLProps } from 'react';
2
+ export interface ButtonGroupProps {
3
+ wrapperProps?: HTMLProps<HTMLDivElement>;
4
+ disabled?: boolean;
5
+ }
@@ -1,6 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import { OptionGroup } from '../Dropdown/Dropdown';
3
- import './SettingsButton.scss';
4
3
  export interface SettingsButtonProps {
5
4
  onClick: () => void;
6
5
  label: string | ReactNode;
@@ -12,3 +11,4 @@ export interface SettingsButtonProps {
12
11
  icon?: ReactNode;
13
12
  }
14
13
  export declare const SettingsButton: FC<SettingsButtonProps>;
14
+ export default SettingsButton;
@@ -1,10 +1,10 @@
1
- export type { Options, Message, Coordinates, SettingsOptions, } from './types';
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 './useSendGeometry';
7
+ export * from './useSendMessage';
8
8
  export * from './useRunCommand';
9
9
  export * from './useManageSettings';
10
10
  export * from './useHbjsontoVTK';
@@ -1,18 +1,20 @@
1
- export interface Options {
2
- layer?: string;
3
- units?: string;
4
- }
5
- export declare type GeometryAction = 'BakeGeometry' | 'ClearGeometry' | 'DrawGeometry' | 'DisableDraw' | 'CombinedRendering';
6
- export declare type ModelAction = 'BakePollinationModel' | 'DisableDrawPollinationModel' | 'DrawPollinationModel' | 'CombinedRenderingPollinationModel';
7
- export declare type ResultsAction = 'DrawResults' | 'ClearResults' | 'SubscribeDrawResults' | 'AddResults' | 'DeleteResults';
8
- export declare type StudyAction = 'CreateStudy';
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").Message>);
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").Message;
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, Message } from './types';
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: SendGeometryMessage) => Message;
5
+ sendHbjson: (action: ModelAction, message: PanelMessageIn) => PanelMessageIn;
15
6
  };
16
- export {};
@@ -0,0 +1,6 @@
1
+ import { Action, PanelMessageIn, PanelMessageOut } from './types';
2
+ export declare const useSendMessage: () => {
3
+ host: "web" | "rhino" | "revit" | "sketchup";
4
+ state: PanelMessageOut;
5
+ sendMessage: (action: Action, message: PanelMessageIn) => PanelMessageIn;
6
+ };
@@ -1,6 +1,6 @@
1
- import type { Message } from './types';
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: Message): Message;
5
- export declare function sendMessageRuby(message: Message): 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';