@parallelworks/ui 0.12.1 → 0.14.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/dist/chunks/{BareModal-DBa84JZO.js → BareModal-BqroLbZ5.js} +1 -0
- package/dist/chunks/{CodePreviewEditor-hwjZof0M.js → CodePreviewEditor-67A_SKgE.js} +1 -1
- package/dist/chunks/{CreateModal-DLCC8t_x.js → CreateModal-DoA2WsXf.js} +28 -8
- package/dist/chunks/{Monaco-DCwRDrPm.js → Monaco-H56KyEdb.js} +22 -12
- package/dist/chunks/{PageHeader-dyoL44ue.js → PageHeader-CxxbidPp.js} +44 -10
- package/dist/chunks/{Provider-CfFV-vc5.js → Provider-CbFVFB7O.js} +8 -2
- package/dist/chunks/RequiredMark-DfLdYbYZ.js +11 -0
- package/dist/chunks/{StatusBadge-P6C2tv7Z.js → StatusBadge-RRUI78iS.js} +4 -4
- package/dist/chunks/{SwitchToggle-DcPCXkqL.js → SwitchToggle-DbW0Q__L.js} +49 -32
- package/dist/chunks/{Table-ByziK93x.js → Table-CutP1bRt.js} +22 -6
- package/dist/chunks/{Tooltip-WgbiC_nd.js → Tooltip-n9w7Tkt1.js} +28 -3
- package/dist/chunks/{editor-BH81U5-C.js → editor-BZ9Buwi4.js} +34 -23
- package/dist/chunks/lib-DyJvmbzj.js +256 -0
- package/dist/chunks/{list-CWVR3dfZ.js → list-CBZpAYP7.js} +35 -15
- package/dist/components/Breadcrumbs.d.ts +9 -0
- package/dist/components/CollapsiblePanel.d.ts +4 -4
- package/dist/components/CreateModal.d.ts +8 -8
- package/dist/components/Dropdown.d.ts +5 -3
- package/dist/components/Input.d.ts +1 -1
- package/dist/components/Listbox.d.ts +7 -4
- package/dist/components/Loader.d.ts +1 -1
- package/dist/components/MultiSelect.d.ts +8 -5
- package/dist/components/PageHeader.d.ts +4 -3
- package/dist/components/Pagination.d.ts +2 -2
- package/dist/components/Provider.d.ts +9 -3
- package/dist/components/RequiredMark.d.ts +1 -0
- package/dist/components/SettingRow.d.ts +1 -1
- package/dist/components/SwitchToggle.d.ts +3 -2
- package/dist/components/Table.d.ts +5 -3
- package/dist/components/Tooltip.d.ts +7 -1
- package/dist/components/dropdownUtils.d.ts +6 -6
- package/dist/editor/FormCodePanel.d.ts +3 -3
- package/dist/editor/Monaco.d.ts +2 -2
- package/dist/editor/index.js +1 -1
- package/dist/file-explorer/FileExplorer.d.ts +2 -2
- package/dist/file-explorer/helpers.d.ts +2 -2
- package/dist/file-explorer/index.js +46 -18
- package/dist/file-explorer/lib/fileExplorer.d.ts +1 -1
- package/dist/file-explorer/lib/types.d.ts +21 -21
- package/dist/form/FieldWrapper.d.ts +6 -1
- package/dist/form/Fields/ResourceOptionIcon.d.ts +1 -1
- package/dist/form/Fields/StepField.d.ts +1 -1
- package/dist/form/Form.d.ts +28 -27
- package/dist/form/SpecialTypes/DropdownWrapper.d.ts +16 -3
- package/dist/form/SpecialTypes/FormikCustomDropdown.d.ts +11 -11
- package/dist/form/SpecialTypes/FormikCustomInput.d.ts +12 -10
- package/dist/form/SpecialTypes/FormikMultiSelectDropdown.d.ts +1 -1
- package/dist/form/SpecialTypes/FormikNumericInput.d.ts +2 -2
- package/dist/form/Wizard/WizardContainer.d.ts +1 -1
- package/dist/form/Wizard/WizardStepContent.d.ts +2 -2
- package/dist/form/Wizard/types.d.ts +21 -14
- package/dist/form/Wizard/utils.d.ts +1 -1
- package/dist/form/fieldContext.d.ts +19 -0
- package/dist/form/index.d.ts +2 -1
- package/dist/form/index.js +191 -106
- package/dist/form/lib.d.ts +3 -3
- package/dist/form/types/fieldComponentTypes.d.ts +2 -2
- package/dist/form/useParsedOpts.d.ts +1 -1
- package/dist/form/utils/getParentValue.d.ts +3 -1
- package/dist/form/utils/getValueUsingPath.d.ts +1 -1
- package/dist/form/utils/pwResolver.d.ts +4 -4
- package/dist/icons.d.ts +8 -8
- package/dist/icons.js +4 -4
- package/dist/index.d.ts +4 -3
- package/dist/index.js +51 -21
- package/dist/list/ActionToolbar.d.ts +4 -4
- package/dist/list/HoverCard.d.ts +3 -1
- package/dist/list/ListPage.d.ts +3 -3
- package/dist/list/ListTable.d.ts +1 -1
- package/dist/list/RowContextMenu.d.ts +20 -20
- package/dist/list/index.js +2 -2
- package/dist/logviewer/index.js +24 -7
- package/dist/styles/theme.css +6 -6
- package/dist/styles.css +1 -1
- package/dist/theme/index.js +4 -3
- package/dist/workflow/AnnotationBanner.d.ts +2 -1
- package/dist/workflow/DependencyGraph.d.ts +15 -3
- package/dist/workflow/JobSummary.d.ts +2 -25
- package/dist/workflow/MatrixGroup.d.ts +3 -2
- package/dist/workflow/TreeView.d.ts +1 -32
- package/dist/workflow/index.js +235 -138
- package/dist/workflow/types.d.ts +48 -0
- package/package.json +2 -6
- package/dist/chunks/lib-DTgL8klR.js +0 -191
|
@@ -6,18 +6,18 @@ interface CreateModalProps {
|
|
|
6
6
|
typeIcon?: ReactNode;
|
|
7
7
|
typeLabel: string;
|
|
8
8
|
/** Makes the type chip a dropdown to switch between sibling form types. */
|
|
9
|
-
typeMenu?: HeaderAddMenuItem[];
|
|
9
|
+
typeMenu?: HeaderAddMenuItem[] | undefined;
|
|
10
10
|
namePlaceholder: string;
|
|
11
11
|
hideName?: boolean;
|
|
12
|
-
initialName?: string;
|
|
12
|
+
initialName?: string | undefined;
|
|
13
13
|
showDescription?: boolean;
|
|
14
14
|
descriptionPlaceholder?: string;
|
|
15
15
|
submitLabel?: string;
|
|
16
16
|
submittingLabel?: string;
|
|
17
|
-
validateName?: (name: string) => string | null;
|
|
17
|
+
validateName?: ((name: string) => string | null) | undefined;
|
|
18
18
|
/** Normalize the name as the user types (e.g. strip disallowed characters). */
|
|
19
19
|
sanitizeName?: (name: string) => string;
|
|
20
|
-
nameHint?: (name: string) => ReactNode;
|
|
20
|
+
nameHint?: ((name: string) => ReactNode) | undefined;
|
|
21
21
|
children?: ReactNode;
|
|
22
22
|
properties?: ReactNode;
|
|
23
23
|
advanced?: ReactNode;
|
|
@@ -40,13 +40,13 @@ export declare function CreateModal({ open, onClose, typeIcon, typeLabel, typeMe
|
|
|
40
40
|
export declare function CreateModalField({ label, tooltip, ...props }: InputHTMLAttributes<HTMLInputElement> & {
|
|
41
41
|
label: string;
|
|
42
42
|
/** Help text surfaced via an info icon next to the label. */
|
|
43
|
-
tooltip?: string;
|
|
43
|
+
tooltip?: string | undefined;
|
|
44
44
|
}): import("react").JSX.Element;
|
|
45
45
|
/** Labeled multi-line field for credential blobs (JSON keys, PEM keys). */
|
|
46
46
|
export declare function CreateModalTextarea({ label, tooltip, rows, ...props }: TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
47
47
|
label: string;
|
|
48
48
|
/** Help text surfaced via an info icon next to the label. */
|
|
49
|
-
tooltip?: string;
|
|
49
|
+
tooltip?: string | undefined;
|
|
50
50
|
}): import("react").JSX.Element;
|
|
51
51
|
/** Labeled input row with typeahead suggestions; free-form values allowed. */
|
|
52
52
|
export declare function CreateModalAutocompleteField({ label, tooltip, value, onChange, options, placeholder, }: {
|
|
@@ -84,13 +84,13 @@ export declare const CREATE_MODAL_SELECT_FILTER_THRESHOLD = 8;
|
|
|
84
84
|
export declare function CreateModalSelect({ label, icon, value, options, onChange, disabled, disabledHint, tooltip, collapsedLabel, }: {
|
|
85
85
|
label: string;
|
|
86
86
|
icon?: ReactNode;
|
|
87
|
-
value?: string;
|
|
87
|
+
value?: string | undefined;
|
|
88
88
|
options: CreateModalSelectOption[];
|
|
89
89
|
onChange: (value: string) => void;
|
|
90
90
|
/** Gray the pill out (e.g. while a prerequisite pill is unset). */
|
|
91
91
|
disabled?: boolean;
|
|
92
92
|
/** Shown as the pill's tooltip while disabled (e.g. the prerequisite). */
|
|
93
|
-
disabledHint?: string;
|
|
93
|
+
disabledHint?: string | undefined;
|
|
94
94
|
/** Help text surfaced on hover (explains what the pill selects). */
|
|
95
95
|
tooltip?: string;
|
|
96
96
|
/** Label for the toggle row hiding a group's collapsible options. */
|
|
@@ -9,13 +9,15 @@ export interface IProps {
|
|
|
9
9
|
max: number;
|
|
10
10
|
}) => void;
|
|
11
11
|
value: IOptions | string | Record<string, unknown>;
|
|
12
|
-
id?: string;
|
|
13
|
-
ariaLabel?: string;
|
|
12
|
+
id?: string | undefined;
|
|
13
|
+
ariaLabel?: string | undefined;
|
|
14
|
+
'aria-describedby'?: string | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
14
16
|
className?: string;
|
|
15
17
|
wrapperClassName?: string;
|
|
16
18
|
textBoxClassName?: string;
|
|
17
19
|
disabled?: boolean;
|
|
18
|
-
placeholder?: string;
|
|
20
|
+
placeholder?: string | undefined;
|
|
19
21
|
loading?: boolean;
|
|
20
22
|
allowCustomValue?: boolean;
|
|
21
23
|
customValueLabel?: string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { InputHTMLAttributes, TextareaHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
3
|
label?: ReactNode;
|
|
4
|
-
error?: string;
|
|
4
|
+
error?: string | undefined;
|
|
5
5
|
mono?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
interface ICustomListboxProps {
|
|
1
|
+
interface ICustomListboxProps<T> {
|
|
2
2
|
/** Only used visually to inform what you're selecting */
|
|
3
3
|
type: string;
|
|
4
4
|
options: {
|
|
5
5
|
label: string;
|
|
6
6
|
secondaryLabel?: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
8
|
-
value:
|
|
8
|
+
value: T;
|
|
9
9
|
selected: boolean;
|
|
10
10
|
}[];
|
|
11
11
|
closeOnSelect?: boolean;
|
|
12
12
|
allowSearch?: boolean;
|
|
13
|
-
handleOptionSelected: (value:
|
|
13
|
+
handleOptionSelected: (value: T) => void;
|
|
14
14
|
className?: string;
|
|
15
15
|
invalid?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
id?: string | undefined;
|
|
18
|
+
'aria-describedby'?: string | undefined;
|
|
16
19
|
}
|
|
17
|
-
export default function CustomListbox({ options, handleOptionSelected, type, allowSearch, closeOnSelect, className, invalid, }: ICustomListboxProps): import("react").JSX.Element;
|
|
20
|
+
export default function CustomListbox<T>({ options, handleOptionSelected, type, allowSearch, closeOnSelect, className, invalid, required, id, 'aria-describedby': describedBy, }: ICustomListboxProps<T>): import("react").JSX.Element;
|
|
18
21
|
export {};
|
|
@@ -3,17 +3,20 @@ type MultiSelectDropdownProps<T = string> = {
|
|
|
3
3
|
options: (ICategory<T> | IOptions<T> | string)[];
|
|
4
4
|
value: T[];
|
|
5
5
|
onChange: (next: T[]) => void;
|
|
6
|
-
id?: string;
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
'aria-labelledby'?: string | undefined;
|
|
8
|
+
'aria-describedby'?: string | undefined;
|
|
9
|
+
required?: boolean;
|
|
7
10
|
className?: string;
|
|
8
11
|
wrapperClassName?: string;
|
|
9
|
-
textBoxClassName?: string;
|
|
12
|
+
textBoxClassName?: string | undefined;
|
|
10
13
|
disabled?: boolean;
|
|
11
|
-
placeholder?: string;
|
|
14
|
+
placeholder?: string | undefined;
|
|
12
15
|
loading?: boolean;
|
|
13
16
|
searchable?: boolean;
|
|
14
17
|
maxTagCount?: number;
|
|
15
18
|
/** Custom comparator for object values. Defaults to strict equality. */
|
|
16
|
-
compareBy?: (a: T, b: T) => boolean;
|
|
19
|
+
compareBy?: ((a: T, b: T) => boolean) | undefined;
|
|
17
20
|
};
|
|
18
|
-
export default function MultiSelectDropdown<T = string>({ options, value, onChange, id, className, wrapperClassName, textBoxClassName, disabled, placeholder, loading, searchable, maxTagCount, compareBy, }: MultiSelectDropdownProps<T>): import("react").JSX.Element;
|
|
21
|
+
export default function MultiSelectDropdown<T = string>({ options, value, onChange, id, 'aria-labelledby': labelledBy, 'aria-describedby': describedBy, required, className, wrapperClassName, textBoxClassName, disabled, placeholder, loading, searchable, maxTagCount, compareBy, }: MultiSelectDropdownProps<T>): import("react").JSX.Element;
|
|
19
22
|
export {};
|
|
@@ -10,6 +10,7 @@ export interface PageHeaderCrumb {
|
|
|
10
10
|
label: ReactNode;
|
|
11
11
|
href?: string;
|
|
12
12
|
}
|
|
13
|
+
export declare const headerActionButtonClasses = "flex items-center justify-center w-6 h-6 rounded-md shrink-0 cursor-pointer text-(--theme-muted-text-color) hover:text-(--theme-app) hover:bg-(--theme-muted-panel-bg) transition-colors";
|
|
13
14
|
/** With menu, the plus opens a chooser; otherwise navigates to or calls the
|
|
14
15
|
* single action. `word` is the visible verb; `label` stays the full action for
|
|
15
16
|
* the tooltip and screen readers. */
|
|
@@ -35,7 +36,7 @@ export declare function HeaderEditButton({ to, onClick, label, disabled, tooltip
|
|
|
35
36
|
onClick?: () => void;
|
|
36
37
|
label?: string;
|
|
37
38
|
disabled?: boolean;
|
|
38
|
-
tooltip?: string;
|
|
39
|
+
tooltip?: string | undefined;
|
|
39
40
|
}): import("react").JSX.Element;
|
|
40
41
|
/** Renders nothing when the modern breadcrumb strip isn't mounted (classic chrome or self-headered pages). */
|
|
41
42
|
export declare function BreadcrumbsTitleAction({ children }: {
|
|
@@ -51,9 +52,9 @@ export declare function BreadcrumbsActionButton({ icon: Icon, label, ariaLabel,
|
|
|
51
52
|
label: string;
|
|
52
53
|
ariaLabel?: string;
|
|
53
54
|
to?: string;
|
|
54
|
-
onClick?: () => void;
|
|
55
|
+
onClick?: (() => void) | undefined;
|
|
55
56
|
disabled?: boolean;
|
|
56
|
-
tooltip?: string;
|
|
57
|
+
tooltip?: string | undefined;
|
|
57
58
|
}): import("react").JSX.Element;
|
|
58
59
|
interface PageHeaderProps {
|
|
59
60
|
breadcrumbs?: PageHeaderBreadcrumb[] | undefined;
|
|
@@ -3,8 +3,8 @@ interface IPaginationProps {
|
|
|
3
3
|
prevCallback: () => void;
|
|
4
4
|
startingNumber?: string | number;
|
|
5
5
|
endingNumber?: string | number;
|
|
6
|
-
startingTime?: string;
|
|
7
|
-
endingTime?: string;
|
|
6
|
+
startingTime?: string | undefined;
|
|
7
|
+
endingTime?: string | undefined;
|
|
8
8
|
nextDisabled: boolean;
|
|
9
9
|
prevDisabled: boolean;
|
|
10
10
|
name?: string;
|
|
@@ -52,10 +52,13 @@ export interface UIStrings {
|
|
|
52
52
|
jsonHasErrors: string;
|
|
53
53
|
add: string;
|
|
54
54
|
create: string;
|
|
55
|
+
remove: string;
|
|
56
|
+
sort: string;
|
|
55
57
|
};
|
|
56
58
|
dropdown: {
|
|
57
59
|
select: (type: string) => string;
|
|
58
60
|
noOptionsFound: string;
|
|
61
|
+
showOptions: string;
|
|
59
62
|
};
|
|
60
63
|
logviewer: {
|
|
61
64
|
error: string;
|
|
@@ -94,6 +97,9 @@ export interface UIStrings {
|
|
|
94
97
|
submitted: string;
|
|
95
98
|
expandAll: string;
|
|
96
99
|
collapseAll: string;
|
|
100
|
+
loadingLogs: string;
|
|
101
|
+
noLogFound: string;
|
|
102
|
+
logLoadFailed: string;
|
|
97
103
|
statusLabel: (status: string) => string;
|
|
98
104
|
statusReason: (reason: string | undefined | null) => string | undefined;
|
|
99
105
|
};
|
|
@@ -394,7 +400,7 @@ export interface UIData {
|
|
|
394
400
|
*/
|
|
395
401
|
provisionCorsRules?: (args: {
|
|
396
402
|
csp: string;
|
|
397
|
-
type?: string;
|
|
403
|
+
type?: string | undefined;
|
|
398
404
|
username: string;
|
|
399
405
|
storageName: string;
|
|
400
406
|
}) => Promise<{
|
|
@@ -440,8 +446,8 @@ export interface UISlots {
|
|
|
440
446
|
}) => ReactNode;
|
|
441
447
|
/** Icon for a subworkflow step; absent hides icon-bound affordances. */
|
|
442
448
|
workflowIcon?: (args: {
|
|
443
|
-
image?: string;
|
|
444
|
-
type?: string;
|
|
449
|
+
image?: string | undefined;
|
|
450
|
+
type?: string | undefined;
|
|
445
451
|
className?: string;
|
|
446
452
|
}) => ReactNode;
|
|
447
453
|
/** Icon URL for a storage type; absent falls back to a generic disk icon.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RequiredMark(): import("react").JSX.Element;
|
|
@@ -4,7 +4,7 @@ export declare function SettingRow({ label, htmlFor, helpText, children, isFirst
|
|
|
4
4
|
htmlFor?: string;
|
|
5
5
|
helpText?: ReactNode;
|
|
6
6
|
children: ReactNode;
|
|
7
|
-
isFirst?: boolean;
|
|
7
|
+
isFirst?: boolean | undefined;
|
|
8
8
|
/** When set, the control column fills and left-aligns for full-width inputs; default is the compact right-aligned control. */
|
|
9
9
|
fill?: boolean;
|
|
10
10
|
/** Makes the whole row a click target for its control (e.g. a toggle). The
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
interface IToggleProps {
|
|
2
2
|
onChange: (value: boolean) => void;
|
|
3
3
|
/** Lets a `<label htmlFor>` point at the toggle. */
|
|
4
|
-
id?: string;
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
'aria-describedby'?: string | undefined;
|
|
5
6
|
value?: boolean;
|
|
6
7
|
/** Display label for the on/off positions; defaults to Yes/No. */
|
|
7
8
|
yesLabel?: string;
|
|
@@ -10,5 +11,5 @@ interface IToggleProps {
|
|
|
10
11
|
datatip?: string | undefined;
|
|
11
12
|
invalid?: boolean;
|
|
12
13
|
}
|
|
13
|
-
declare function SwitchToggle({ onChange, id, value, yesLabel, noLabel, disabled, datatip, invalid, }: IToggleProps): import("react").JSX.Element;
|
|
14
|
+
declare function SwitchToggle({ onChange, id, 'aria-describedby': describedBy, value, yesLabel, noLabel, disabled, datatip, invalid, }: IToggleProps): import("react").JSX.Element;
|
|
14
15
|
export default SwitchToggle;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { TDirection } from './Sort.js';
|
|
2
3
|
interface IItemProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
3
4
|
wrap?: boolean;
|
|
4
5
|
colspan?: number;
|
|
@@ -10,18 +11,19 @@ interface ITableHeaderProps {
|
|
|
10
11
|
className?: string;
|
|
11
12
|
style?: React.CSSProperties | undefined;
|
|
12
13
|
colspan?: number;
|
|
13
|
-
onClick?: () => void;
|
|
14
|
+
onClick?: (() => void) | undefined;
|
|
15
|
+
sort?: TDirection | 'none';
|
|
14
16
|
/** When false, drops uppercase + tracking-wider for a sentence-case header. */
|
|
15
17
|
caps?: boolean;
|
|
16
18
|
}
|
|
17
|
-
declare function Header({ children, className, style, colspan, onClick, caps, }: ITableHeaderProps): React.JSX.Element;
|
|
19
|
+
declare function Header({ children, className, style, colspan, onClick, sort, caps, }: ITableHeaderProps): React.JSX.Element;
|
|
18
20
|
interface ITableProps {
|
|
19
21
|
children?: React.ReactNode;
|
|
20
22
|
borderless?: boolean;
|
|
21
23
|
/** When false, drops the theme-panel background. */
|
|
22
24
|
panel?: boolean;
|
|
23
25
|
className?: string;
|
|
24
|
-
tbodyClassName?: string;
|
|
26
|
+
tbodyClassName?: string | undefined;
|
|
25
27
|
theadClassName?: string;
|
|
26
28
|
wrapperClassName?: string;
|
|
27
29
|
roundedTop?: boolean;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { type PlacesType } from 'react-tooltip';
|
|
2
2
|
export declare const TOOLTIP_ID = "global-tooltip";
|
|
3
|
+
/** Anchor props that reveal `content` only while the text is ellipsized; `measure` picks the clipped descendant when it isn't the anchor. */
|
|
4
|
+
export declare function truncationTooltipProps(content: string, measure?: (anchor: HTMLElement) => HTMLElement | null): {
|
|
5
|
+
role: 'none';
|
|
6
|
+
'data-tooltip-id': string;
|
|
7
|
+
onMouseEnter: (event: React.MouseEvent<HTMLElement>) => void;
|
|
8
|
+
};
|
|
3
9
|
/** Tooltip text can come from untrusted sources (workflow YAML), so all markup is literal text — only `[text](url)` links and newlines are parsed. */
|
|
4
10
|
export declare function formatTooltipContent(content: React.ReactNode): number | bigint | true | import("react").JSX.Element[] | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
|
|
5
11
|
/** Singleton rendered at layout root; anchors opt in via data-tooltip-id={TOOLTIP_ID}, data-tooltip-content, and data-tooltip-shortcut. */
|
|
6
12
|
export declare function GlobalTooltip(): import("react").JSX.Element;
|
|
7
13
|
interface ITooltipInfo {
|
|
8
14
|
text: string;
|
|
9
|
-
className?: string;
|
|
15
|
+
className?: string | undefined;
|
|
10
16
|
place?: PlacesType;
|
|
11
17
|
children?: React.ReactNode;
|
|
12
18
|
tabIndex?: number;
|
|
@@ -2,15 +2,15 @@ import type React from 'react';
|
|
|
2
2
|
export interface IOptions<T = unknown> {
|
|
3
3
|
label: string;
|
|
4
4
|
value: T;
|
|
5
|
-
secondaryValue?: unknown;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
icon?: React.ReactNode;
|
|
8
|
-
description?: string;
|
|
5
|
+
secondaryValue?: unknown | undefined;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
icon?: React.ReactNode | undefined;
|
|
8
|
+
description?: string | undefined;
|
|
9
9
|
/** Hidden behind the category's toggle row until the category is expanded. */
|
|
10
|
-
collapsible?: boolean;
|
|
10
|
+
collapsible?: boolean | undefined;
|
|
11
11
|
}
|
|
12
12
|
export interface ICategory<T = unknown> {
|
|
13
|
-
category?: string;
|
|
13
|
+
category?: string | undefined;
|
|
14
14
|
options: IOptions<T>[];
|
|
15
15
|
}
|
|
16
16
|
export declare function isCategory<T>(option: ICategory<T> | IOptions<T> | string): option is ICategory<T>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare function FormCodePanel({ formJSON, data, mutate, height, disabled, }: {
|
|
2
|
-
formJSON: Record<string,
|
|
3
|
-
data: Record<string,
|
|
4
|
-
mutate:
|
|
2
|
+
formJSON: Record<string, unknown>;
|
|
3
|
+
data: Record<string, unknown>;
|
|
4
|
+
mutate: (values: Record<string, unknown>) => void;
|
|
5
5
|
height?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}): import("react").JSX.Element;
|
package/dist/editor/Monaco.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ type WorkflowItem = EditorWorkflowItem;
|
|
|
18
18
|
export type ISchemaError = monaco.editor.IMarker;
|
|
19
19
|
export interface IEditorProps extends monaco.editor.IStandaloneEditorConstructionOptions {
|
|
20
20
|
className?: string;
|
|
21
|
-
disabled?: boolean;
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
22
|
onChange?: (value: string) => void;
|
|
23
|
-
onValidate?: (errors:
|
|
23
|
+
onValidate?: (errors: ISchemaError[]) => void;
|
|
24
24
|
width?: string | number;
|
|
25
25
|
height?: string | number;
|
|
26
26
|
path?: 'file:///workflow.yaml' | string;
|
package/dist/editor/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as EditorField, i as FormCodePanel, n as defineEditorThemes, o as Editor, r as getThemeName, t as setupMonacoWorkers } from "../chunks/editor-
|
|
1
|
+
import { a as EditorField, i as FormCodePanel, n as defineEditorThemes, o as Editor, r as getThemeName, t as setupMonacoWorkers } from "../chunks/editor-BZ9Buwi4.js";
|
|
2
2
|
export { Editor, EditorField, FormCodePanel, defineEditorThemes, getThemeName, setupMonacoWorkers };
|
|
@@ -11,8 +11,8 @@ interface IFileExplorerProps {
|
|
|
11
11
|
showUserHierarchy?: boolean;
|
|
12
12
|
groups?: {
|
|
13
13
|
name: string;
|
|
14
|
-
id?: string;
|
|
15
|
-
}[];
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
}[] | undefined;
|
|
16
16
|
groupsLoading?: boolean;
|
|
17
17
|
selectedPath: string;
|
|
18
18
|
onPathChange: (path: string) => void;
|
|
@@ -20,13 +20,13 @@ export type CorsAwareRefresh = (opts?: {
|
|
|
20
20
|
} | void>;
|
|
21
21
|
declare function CorsIssuePreview({ selectedStorage, onRefresh, }: {
|
|
22
22
|
selectedStorage: TStorage | null;
|
|
23
|
-
onRefresh?: CorsAwareRefresh;
|
|
23
|
+
onRefresh?: CorsAwareRefresh | undefined;
|
|
24
24
|
}): JSX.Element;
|
|
25
25
|
declare function NoDataAvailablePreview({ selectedStorage, error, onRefresh, connectionIssueMessage, className, canWrite, }: {
|
|
26
26
|
selectedStorage: TStorage | null;
|
|
27
27
|
error?: Error | null;
|
|
28
28
|
onRefresh?: CorsAwareRefresh;
|
|
29
|
-
connectionIssueMessage?: string | null;
|
|
29
|
+
connectionIssueMessage?: string | null | undefined;
|
|
30
30
|
className?: string;
|
|
31
31
|
canWrite?: boolean;
|
|
32
32
|
}): JSX.Element;
|