chayns-api 2.1.4 → 2.1.5

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,4 +1,4 @@
1
- import { DialogDataHookResult, DialogHookResult } from '../types/IChaynsReact';
1
+ import { DialogHookResult } from '../types/IChaynsReact';
2
2
  /**
3
3
  * @category Hooks
4
4
  */
@@ -6,4 +6,4 @@ export declare const useDialogState: () => DialogHookResult;
6
6
  /**
7
7
  * @category Hooks
8
8
  */
9
- export declare const useDialogData: () => DialogDataHookResult;
9
+ export declare const useDialogData: <T extends unknown>() => T;
@@ -96,12 +96,14 @@ export interface DialogModule<T extends any = object> {
96
96
  };
97
97
  dialogInput?: T;
98
98
  backgroundColor?: string;
99
+ allowAnonymousUser?: boolean;
99
100
  }
100
101
  export interface DialogIFrame<T extends any = object> {
101
102
  type: DialogType.IFRAME;
102
103
  url: string;
103
104
  dialogInput?: T;
104
105
  backgroundColor?: string;
106
+ allowAnonymousUser?: boolean;
105
107
  }
106
108
  export declare enum DialogInputType {
107
109
  NUMBER = "number",
@@ -224,9 +226,6 @@ export type DialogHookResult = {
224
226
  sendData: ChaynsReactFunctions["dispatchEventToDialogHost"];
225
227
  addDataListener: ChaynsReactFunctions["addDialogHostEventListener"];
226
228
  };
227
- export type DialogDataHookResult = {
228
- [key: string | symbol]: object;
229
- };
230
229
  /**
231
230
  * @ignore
232
231
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",