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.
Files changed (30) hide show
  1. package/build/ComboFileSelector/ComboFileSelector.d.ts +1 -0
  2. package/build/ComboFileSelector/ComboFileSelector.types.d.ts +2 -1
  3. package/build/ConfigureLocalRun/ConfigureLocalRun.d.ts +5 -0
  4. package/build/ConfigureLocalRun/ConfigureLocalRun.types.d.ts +4 -0
  5. package/build/RecipeInputsForm/RecipeInputsForm.types.d.ts +1 -0
  6. package/build/SelectCloudArtifacts/SelectCloudArtifacts.d.ts +1 -1
  7. package/build/SelectCloudArtifacts/SelectCloudArtifacts.types.d.ts +1 -1
  8. package/build/SelectLocalArtifacts/SelectLocalArtifacts.d.ts +4 -0
  9. package/build/SelectLocalArtifacts/SelectLocalArtifacts.types.d.ts +5 -0
  10. package/build/SelectLocalArtifacts/getFileTypeIcon.d.ts +2 -0
  11. package/build/SelectStudy/SelectStudy.types.d.ts +1 -2
  12. package/build/atoms/Avatar/Avatar.d.ts +1 -1
  13. package/build/atoms/ComboBox/ComboBox.types.d.ts +11 -10
  14. package/build/atoms/Dropdown/Dropdown.d.ts +2 -2
  15. package/build/atoms/Label/Label.types.d.ts +1 -0
  16. package/build/atoms/Logo/index.d.ts +6 -2
  17. package/build/atoms/NumberInput/NumberInput.d.ts +1 -0
  18. package/build/atoms/RadioList/RadioList.types.d.ts +0 -1
  19. package/build/atoms/index.d.ts +2 -0
  20. package/build/hooks/useManageSettings.d.ts +1 -1
  21. package/build/hooks/useRunCommand.d.ts +1 -1
  22. package/build/hooks/useSendGeometry.d.ts +1 -1
  23. package/build/hooks/useSendHbjson.d.ts +1 -1
  24. package/build/hooks/utilities.d.ts +1 -1
  25. package/build/index.d.ts +3 -0
  26. package/build/index.esm.js +831 -359
  27. package/build/index.esm.js.map +1 -1
  28. package/build/index.js +833 -358
  29. package/build/index.js.map +1 -1
  30. package/package.json +2 -1
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ComboFileSelectorProps } from './ComboFileSelector.types';
3
+ import './ComboFileSelector.scss';
3
4
  export declare const ComboFileSelector: React.FC<ComboFileSelectorProps>;
4
5
  export default ComboFileSelector;
@@ -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
  }
@@ -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,4 @@
1
+ export interface ConfigureLocalRunProps {
2
+ defaultOption?: 'cloud' | 'local';
3
+ disabled?: boolean;
4
+ }
@@ -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;
@@ -3,7 +3,7 @@ import { APIClient } from '../hooks';
3
3
  export interface SelectCloudArtifactsProps {
4
4
  projectOwner?: string;
5
5
  projectName?: string;
6
- fileExtensionMatch?: string;
6
+ fileNameMatch?: string;
7
7
  onChange?: (artifact: FileMeta) => void;
8
8
  client?: APIClient;
9
9
  }
@@ -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;
@@ -1,4 +1,4 @@
1
- import { Project, ProjectsApiListProjectsRequest, UserPrivate } from '@pollination-solutions/pollination-sdk';
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
  }
@@ -1,5 +1,5 @@
1
1
  import React, { CSSProperties } from 'react';
2
- interface AvatarProps {
2
+ export interface AvatarProps {
3
3
  alt?: string;
4
4
  fallback?: string;
5
5
  href?: string;
@@ -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;
@@ -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,2 +1,6 @@
1
- /// <reference types="react" />
2
- export declare const Logo: () => JSX.Element;
1
+ import React from 'react';
2
+ export interface LogoProps {
3
+ size?: number;
4
+ }
5
+ export declare const Logo: React.FC<LogoProps>;
6
+ export default Logo;
@@ -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,7 +1,6 @@
1
1
  export interface RadioListProps {
2
2
  items: string[];
3
3
  name: string;
4
- form: string;
5
4
  defaultValue: string;
6
5
  onChange: (any: any) => void;
7
6
  }
@@ -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';
@@ -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';