chayns-api 2.6.1 → 2.6.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.
@@ -416,6 +416,9 @@ export interface ChaynsReactFunctions {
416
416
  storageSetItem: <T extends object | number | string>(key: string, value: T, accessMode?: AccessMode, tappIds?: number[]) => Promise<void>;
417
417
  vibrate: (value: Vibrate) => Promise<void>;
418
418
  scrollByY: (position: number, duration?: number) => Promise<void>;
419
+ /**
420
+ * @deprecated This call will be removed soon. Use dialogs instead.
421
+ */
419
422
  setOverlay: (value: ShowOverlay, callback: () => void) => Promise<void>;
420
423
  createDialog(config: BaseDialog & (DialogAlert | DialogConfirm | DialogToast)): DialogHandler<void>;
421
424
  createDialog(config: BaseDialog & (DialogInput | DialogSignature)): DialogHandler<string>;
@@ -428,7 +431,7 @@ export interface ChaynsReactFunctions {
428
431
  createDialog(config: BaseDialog & DialogDate): DialogHandler<Date>;
429
432
  createDialog(config: BaseDialog & DialogFileSelect): DialogHandler<DialogResultFile[]>;
430
433
  createDialog<Input = any, Result = unknown>(config: BaseDialog & (DialogModule<Input> | DialogIFrame<Input>)): DialogHandler<Result>;
431
- createDialog<Input = any, Result = unknown>(config: BaseDialog & (DialogAlert | DialogConfirm | DialogToast | DialogInput | DialogSignature | DialogSelect | DialogDate | DialogFileSelect | DialogIFrame<Input> | DialogModule<Input>)): any;
434
+ createDialog<Input = any, Result = unknown>(config: BaseDialog & (DialogAlert | DialogConfirm | DialogToast | DialogInput | DialogSignature | DialogSelect | DialogDate | DialogFileSelect | DialogIFrame<Input> | DialogModule<Input>)): DialogHandler<any>;
432
435
  openDialog: (value: any, callback: (data: any) => any) => Promise<any>;
433
436
  closeDialog: (dialogId: number) => Promise<void>;
434
437
  setDialogResult: (buttonType: DialogButtonType, result: any) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",