@cloudtower/eagle 0.28.0 → 0.29.0

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 { Actions, KitRootState } from "../../store";
1
+ import { Actions, IModalProps, KitRootState, ModalType } from "../../store";
2
2
  import React, { PropsWithChildren } from "react";
3
3
  interface IProps {
4
4
  }
@@ -6,3 +6,6 @@ declare const KitStoreProvider: (props: PropsWithChildren<IProps>) => React.JSX.
6
6
  export default KitStoreProvider;
7
7
  export declare const useKitDispatch: () => import("redux").Dispatch<Actions>;
8
8
  export declare const useKitSelector: <Selected extends unknown>(selector: (state: KitRootState) => Selected, equalityFn?: ((previous: Selected, next: Selected) => boolean) | undefined) => Selected;
9
+ export declare const usePushModal: () => <K extends string | number>(modal: ModalType<IModalProps[K]>) => void;
10
+ export declare const useCloseModal: () => (id: number) => void;
11
+ export declare const usePopModal: () => () => void;
@@ -17,8 +17,20 @@ export declare const UIKitStore: import("redux").Store<import("redux").EmptyObje
17
17
  chart: ChartState;
18
18
  modal: ModalState;
19
19
  }, Actions>;
20
+ /**
21
+ *
22
+ * @deprecated
23
+ */
20
24
  export declare function pushModal<K extends keyof IModalProps>(modal: ModalType<IModalProps[K]>): void;
25
+ /**
26
+ *
27
+ * @deprecated
28
+ */
21
29
  export declare function popModal(): void;
30
+ /**
31
+ *
32
+ * @deprecated
33
+ */
22
34
  export declare function closeModal(id: number): void;
23
35
  export type GetModalProps<K extends keyof IModalProps> = IModalProps[K] & CloseCb;
24
36
  export * from "./chart";