pollination-react-io 1.8.2 → 1.9.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,7 +3,7 @@ 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
8
  client: APIClient;
9
9
  inputProps?: HTMLProps<HTMLInputElement>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ConfigureLocalRunProps } from './ConfigureLocalRun.types';
3
+ import './ConfigureLocalRun.scss';
4
+ export declare const ConfigureLocalRun: React.FC<ConfigureLocalRunProps>;
5
+ export default ConfigureLocalRun;
@@ -0,0 +1,3 @@
1
+ export interface ConfigureLocalRunProps {
2
+ defaultOption?: 'cloud' | 'local';
3
+ }
@@ -7,4 +7,5 @@ export interface RecipeInputsFormProps {
7
7
  projectOwner?: string;
8
8
  projectName?: string;
9
9
  client?: APIClient;
10
+ mode?: 'local' | 'cloud';
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;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SelectLocalArtifactsProps } from './SelectLocalArtifacts.types';
3
+ export declare const SelectLocalArtifacts: React.FC<SelectLocalArtifactsProps>;
4
+ export default SelectLocalArtifacts;
@@ -0,0 +1,5 @@
1
+ import { FileMeta } from '@pollination-solutions/pollination-sdk';
2
+ export interface SelectLocalArtifactsProps {
3
+ fileExtensionMatch?: string;
4
+ onChange?: (artifact: FileMeta, path?: string[]) => void;
5
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const getFileIcon: (type?: string) => React.ReactNode;
@@ -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
  }
@@ -2,5 +2,6 @@ import { CSSProperties, ReactNode } from 'react';
2
2
  export interface LabelProps {
3
3
  label: string | ReactNode;
4
4
  name?: string;
5
+ disabled?: boolean;
5
6
  style?: CSSProperties;
6
7
  }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
2
  import { NumberInputProps } from './NumberInput.types';
3
+ import './NumberInput.scss';
3
4
  export declare const NumberInput: React.FC<NumberInputProps>;
4
5
  export default NumberInput;
@@ -1,6 +1,6 @@
1
1
  import type { SettingsOptions } from '.';
2
2
  export declare const useManageSettings: () => {
3
- host: any;
3
+ host: "web" | "rhino" | "revit" | "sketchup";
4
4
  sendSettings: (settings: SettingsOptions) => import("./types").Message;
5
5
  getSettings: () => any;
6
6
  };
@@ -5,6 +5,6 @@ declare global {
5
5
  }
6
6
  }
7
7
  export declare const useRunCommand: () => {
8
- host: any;
8
+ host: "web" | "rhino" | "revit" | "sketchup";
9
9
  runCommand: (commandString: string, commandOptions?: any) => void;
10
10
  };
@@ -9,7 +9,7 @@ interface SendGeometry {
9
9
  }
10
10
  declare type SendGeometryMessage = Message & SendGeometry;
11
11
  export declare const useSendGeometry: () => {
12
- host: any;
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: any;
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?: string): any;
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';