@inceptionbg/iui 2.0.33 → 2.0.35

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.
package/dist/index.d.ts CHANGED
@@ -707,6 +707,7 @@ type BaseProps = {
707
707
  desc?: string;
708
708
  descEl?: ReactNode;
709
709
  onFormSubmit?: () => void;
710
+ onCloseCallback?: () => void;
710
711
  isLoading?: boolean;
711
712
  footer?: IDialogFooterActions;
712
713
  isKeyboardDisabled?: boolean;
@@ -720,7 +721,6 @@ type BaseProps = {
720
721
  };
721
722
  type ImperativeDialogProps = {
722
723
  control: ILocalPopupControl;
723
- onCloseCallback?: () => void;
724
724
  isOpen?: never;
725
725
  onClose?: undefined;
726
726
  };
@@ -728,7 +728,6 @@ type DeclarativeDialogProps = {
728
728
  isOpen: boolean;
729
729
  onClose: () => void;
730
730
  control?: never;
731
- onCloseCallback?: undefined;
732
731
  };
733
732
  type Props$k = BaseProps & (ImperativeDialogProps | DeclarativeDialogProps);
734
733
  declare const Dialog: FC<Props$k>;
@@ -1279,13 +1278,14 @@ declare const usePopupControl: (props?: {
1279
1278
  onCloseCallback?: () => void;
1280
1279
  }) => IPopupControl;
1281
1280
 
1281
+ interface IZendesk {
1282
+ show: () => void;
1283
+ hide: () => void;
1284
+ activate: () => void;
1285
+ setLocale: (locale: string) => void;
1286
+ }
1282
1287
  declare global {
1283
- var zE: {
1284
- show: () => void;
1285
- hide: () => void;
1286
- activate: () => void;
1287
- setLocale: (locale: string) => void;
1288
- };
1288
+ var zE: IZendesk;
1289
1289
  }
1290
1290
  declare const useHideZendesk: () => void;
1291
1291