chayns-api 1.0.32 → 1.0.33

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.
@@ -42,7 +42,7 @@ const HostIframe = ({
42
42
 
43
43
  const setHeight = value => {
44
44
  if (ref.current) {
45
- ref.current.height = `${value}px`;
45
+ ref.current.style.height = `${value}px`;
46
46
  }
47
47
  };
48
48
 
@@ -34,7 +34,7 @@ const HostIframe = _ref => {
34
34
 
35
35
  const setHeight = value => {
36
36
  if (ref.current) {
37
- ref.current.height = `${value}px`;
37
+ ref.current.style.height = `${value}px`;
38
38
  }
39
39
  };
40
40
 
@@ -39,12 +39,18 @@ export interface DialogToast {
39
39
  showCloseIcon?: boolean;
40
40
  toastType?: ToastType;
41
41
  }
42
+ export interface DialogConfirm {
43
+ type: DialogType.CONFIRM;
44
+ }
45
+ export interface DialogAlert {
46
+ type: DialogType.ALERT;
47
+ }
42
48
  export interface BaseDialog {
43
49
  text?: string;
44
50
  buttons?: DialogButton[];
45
51
  dialogId: number;
46
52
  }
47
- export type Dialog = BaseDialog & (DialogInput | DialogModule | DialogIFrame | DialogSelect | DialogDate | DialogToast);
53
+ export type Dialog = BaseDialog & (DialogAlert | DialogConfirm | DialogInput | DialogModule | DialogIFrame | DialogSelect | DialogDate | DialogToast);
48
54
  export interface DialogModule {
49
55
  type: DialogType.MODULE;
50
56
  system: {
@@ -156,9 +162,7 @@ export type DialogHookResult = {
156
162
  addDataListener: ChaynsReactFunctions["addDialogHostEventListener"];
157
163
  };
158
164
  export type DialogDataHookResult = {
159
- inputData: {
160
- [key: string | symbol]: object;
161
- };
165
+ [key: string | symbol]: object;
162
166
  };
163
167
  /**
164
168
  * @ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",