@ansible/ansible-ui-framework 2.4.312 → 2.4.318

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.
@@ -39,19 +39,19 @@ export interface IPageActionButton extends IPageActionNoneCommon {
39
39
  type: PageActionType.Button;
40
40
  selection: PageActionSelection.None;
41
41
  variant?: ButtonVariant;
42
- onClick: () => unknown | Promise<unknown>;
42
+ onClick: () => unknown;
43
43
  }
44
44
  export interface IPageActionButtonSingle<T extends object> extends IPageActionSingleCommon<T> {
45
45
  type: PageActionType.Button;
46
46
  selection: PageActionSelection.Single;
47
47
  variant?: ButtonVariant;
48
- onClick: (item: T) => unknown | Promise<unknown>;
48
+ onClick: (item: T) => unknown;
49
49
  }
50
50
  export interface IPageActionButtonMultiple<T extends object> extends IPageActionMultipleCommon<T> {
51
51
  type: PageActionType.Button;
52
52
  selection: PageActionSelection.Multiple;
53
53
  variant?: ButtonVariant;
54
- onClick: (items: T[]) => unknown | Promise<unknown>;
54
+ onClick: (items: T[]) => unknown;
55
55
  }
56
56
  export interface IPageActionLink extends IPageActionNoneCommon {
57
57
  type: PageActionType.Link;
@@ -63,7 +63,7 @@ export interface IPageActionLinkSingle<T extends object> extends IPageActionSing
63
63
  }
64
64
  export interface IPageActionSwitch extends IPageActionNoneCommon {
65
65
  type: PageActionType.Switch;
66
- onToggle: (enable: boolean) => unknown | Promise<unknown>;
66
+ onToggle: (enable: boolean) => unknown;
67
67
  isSwitchOn: () => boolean;
68
68
  showPinnedLabel?: boolean;
69
69
  labelOff?: string;
@@ -71,7 +71,7 @@ export interface IPageActionSwitch extends IPageActionNoneCommon {
71
71
  }
72
72
  export interface IPageActionSwitchSingle<T extends object> extends IPageActionSingleCommon<T> {
73
73
  type: PageActionType.Switch;
74
- onToggle: (item: T, enable: boolean) => unknown | Promise<unknown>;
74
+ onToggle: (item: T, enable: boolean) => unknown;
75
75
  isSwitchOn: (item: T) => boolean;
76
76
  showPinnedLabel?: boolean;
77
77
  labelOff?: string;
@@ -1,6 +1,6 @@
1
1
  import { JSONSchema6 } from 'json-schema';
2
2
  import { CSSProperties, ReactNode } from 'react';
3
- import { DeepPartial, ErrorOption, FieldPath, FieldValues } from 'react-hook-form';
3
+ import { DefaultValues, ErrorOption, FieldPath, FieldValues } from 'react-hook-form';
4
4
  export declare function PageForm<T extends object>(props: {
5
5
  schema?: JSONSchema6;
6
6
  children?: ReactNode;
@@ -8,7 +8,7 @@ export declare function PageForm<T extends object>(props: {
8
8
  onSubmit: PageFormSubmitHandler<T>;
9
9
  cancelText?: string;
10
10
  onCancel?: () => void;
11
- defaultValue?: DeepPartial<T>;
11
+ defaultValue?: DefaultValues<T>;
12
12
  isVertical?: boolean;
13
13
  singleColumn?: boolean;
14
14
  disableScrolling?: boolean;
@@ -1,3 +1,3 @@
1
- export declare function compareUnknowns(a: unknown | undefined | null, b: unknown | undefined | null): 0 | 1 | -1;
1
+ export declare function compareUnknowns(a: unknown, b: unknown): 0 | 1 | -1;
2
2
  export declare function compareStrings(a: string | undefined | null, b: string | undefined | null): 0 | 1 | -1;
3
3
  export declare function compareNumbers(a: number | undefined | null, b: number | undefined | null): 0 | 1 | -1;