chayns-api 3.4.3 → 3.4.4

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 +1,2 @@
1
+ /** @deprecated Use createDialog with type DialogType.ALERT instead */
1
2
  export declare function alert(title?: string, message?: string): Promise<any> | "unsupported";
@@ -9,5 +9,6 @@ type Confirm = {
9
9
  links?: unknown;
10
10
  select?: unknown;
11
11
  };
12
+ /** @deprecated Use createDialog with type DialogType.CONFIRM instead */
12
13
  export declare function confirm(title?: string, message?: string, config?: Confirm): Promise<any> | "unsupported";
13
14
  export {};
@@ -47,6 +47,7 @@ type DateConfig = {
47
47
  dateType?: number;
48
48
  autoSelectDate?: boolean;
49
49
  };
50
+ /** @deprecated Use createDialog with type DialogType.DATE instead */
50
51
  export declare function date(config?: DateConfig): Promise<any>;
51
52
  type preSelectObj = {
52
53
  start?: number | undefined | Date;
@@ -1,5 +1,6 @@
1
1
  type DropUpAlert = {
2
2
  callType?: number;
3
3
  };
4
+ /** @deprecated This dialog type has been removed */
4
5
  export declare function dropUpAlert(dialog?: DropUpAlert): Promise<unknown>;
5
6
  export {};
@@ -12,5 +12,6 @@ type FileSelectInput = {
12
12
  directory?: boolean;
13
13
  chaynsToken?: string;
14
14
  };
15
+ /** @deprecated Use createDialog with type DialogType.FILE_SELECT instead */
15
16
  export declare function fileSelect(dialog?: FileSelectInput): Promise<unknown>;
16
17
  export {};
@@ -11,6 +11,8 @@ type IFrameDialog = {
11
11
  fullHeight?: boolean;
12
12
  customTransitionTimeout?: number;
13
13
  };
14
+ /** @deprecated Backward compatibility to open iFrame dialogs based on chayns-js.
15
+ * Consider migrating the dialog to use chayns-api and use createDialog with type DialogType.IFRAME instead */
14
16
  export declare function iFrame(dialog?: IFrameDialog): Promise<unknown>;
15
17
  export declare function _chaynsCallResponder(obj: any): void;
16
18
  export {};
@@ -4,6 +4,7 @@ type InputDialog = {
4
4
  callType?: number;
5
5
  formatter?: string;
6
6
  };
7
+ /** @deprecated Use createDialog with type DialogType.INPUT instead */
7
8
  export declare function input(dialog?: InputDialog): Promise<unknown>;
8
9
  export declare const inputType: {
9
10
  DEFAULT: number;
@@ -4,5 +4,6 @@ type MediaSelectInput = {
4
4
  callType?: number;
5
5
  chaynsToken?: string;
6
6
  };
7
+ /** @deprecated This dialog type hase been removed */
7
8
  export declare function mediaSelect(dialog?: MediaSelectInput): Promise<unknown>;
8
9
  export {};
@@ -1,4 +1,5 @@
1
1
  import { SelectInput } from '../../types/IChaynsReact';
2
+ /** @deprecated Use createDialog with type DialogType.SELECT instead */
2
3
  export declare function select(config: SelectInput): Promise<unknown>;
3
4
  export declare const selectType: {
4
5
  DEFAULT: number;
@@ -3,5 +3,6 @@ type SignatureInput = {
3
3
  buttons?: DialogButtonOld[];
4
4
  callType?: number;
5
5
  };
6
+ /** @deprecated Use createDialog with type DialogType.SIGNATURE instead */
6
7
  export declare function signature(dialog?: SignatureInput): Promise<unknown>;
7
8
  export {};
@@ -1 +1,2 @@
1
+ /** @deprecated Use createDialog with type DialogType.TOAST instead */
1
2
  export declare function toast(config?: {}): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "3.4.3",
3
+ "version": "3.4.4",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",