glints-aries 4.0.217 → 4.0.218
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/es/@next/Alert/AlertContext.d.ts +1 -1
- package/es/@next/Alert/AlertContext.js +1 -1
- package/es/@next/Alert/useAlert.d.ts +1 -1
- package/es/@next/Modal/ModalContext.d.ts +1 -1
- package/es/@next/Modal/ModalContext.js +1 -1
- package/es/@next/Modal/useModal.d.ts +1 -1
- package/lib/@next/Alert/AlertContext.d.ts +1 -1
- package/lib/@next/Alert/AlertContext.js +1 -1
- package/lib/@next/Alert/useAlert.d.ts +1 -1
- package/lib/@next/Modal/ModalContext.d.ts +1 -1
- package/lib/@next/Modal/ModalContext.js +1 -1
- package/lib/@next/Modal/useModal.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,4 +3,4 @@ import { ComponentWithProviderProps } from '../../types/componentWithProvider';
|
|
|
3
3
|
import { AlertProps } from './Alert';
|
|
4
4
|
export declare type ShowAlertProps = Omit<AlertProps, 'show'>;
|
|
5
5
|
export declare type AlertContextProps = AlertProps & ComponentWithProviderProps<ShowAlertProps>;
|
|
6
|
-
export declare const AlertContext: import("react").Context<AlertContextProps
|
|
6
|
+
export declare const AlertContext: import("react").Context<AlertContextProps | Record<string, never>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createContext } from 'react';
|
|
2
|
-
export var AlertContext = /*#__PURE__*/createContext(
|
|
2
|
+
export var AlertContext = /*#__PURE__*/createContext({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useAlert: () => import("./AlertContext").AlertContextProps
|
|
1
|
+
export declare const useAlert: () => import("./AlertContext").AlertContextProps | Record<string, never>;
|
|
@@ -3,4 +3,4 @@ import { ComponentWithProviderProps } from '../../types/componentWithProvider';
|
|
|
3
3
|
import { ModalProps } from './Modal';
|
|
4
4
|
export declare type ShowModalProps = Omit<ModalProps, 'isOpen'>;
|
|
5
5
|
export declare type ModalContextProps = ModalProps & ComponentWithProviderProps<ShowModalProps>;
|
|
6
|
-
export declare const ModalContext: import("react").Context<ModalContextProps>;
|
|
6
|
+
export declare const ModalContext: import("react").Context<Record<string, never> | ModalContextProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createContext } from 'react';
|
|
2
|
-
export var ModalContext = /*#__PURE__*/createContext(
|
|
2
|
+
export var ModalContext = /*#__PURE__*/createContext({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useModal: () => import("./ModalContext").ModalContextProps;
|
|
1
|
+
export declare const useModal: () => Record<string, never> | import("./ModalContext").ModalContextProps;
|
|
@@ -3,4 +3,4 @@ import { ComponentWithProviderProps } from '../../types/componentWithProvider';
|
|
|
3
3
|
import { AlertProps } from './Alert';
|
|
4
4
|
export declare type ShowAlertProps = Omit<AlertProps, 'show'>;
|
|
5
5
|
export declare type AlertContextProps = AlertProps & ComponentWithProviderProps<ShowAlertProps>;
|
|
6
|
-
export declare const AlertContext: import("react").Context<AlertContextProps
|
|
6
|
+
export declare const AlertContext: import("react").Context<AlertContextProps | Record<string, never>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useAlert: () => import("./AlertContext").AlertContextProps
|
|
1
|
+
export declare const useAlert: () => import("./AlertContext").AlertContextProps | Record<string, never>;
|
|
@@ -3,4 +3,4 @@ import { ComponentWithProviderProps } from '../../types/componentWithProvider';
|
|
|
3
3
|
import { ModalProps } from './Modal';
|
|
4
4
|
export declare type ShowModalProps = Omit<ModalProps, 'isOpen'>;
|
|
5
5
|
export declare type ModalContextProps = ModalProps & ComponentWithProviderProps<ShowModalProps>;
|
|
6
|
-
export declare const ModalContext: import("react").Context<ModalContextProps>;
|
|
6
|
+
export declare const ModalContext: import("react").Context<Record<string, never> | ModalContextProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useModal: () => import("./ModalContext").ModalContextProps;
|
|
1
|
+
export declare const useModal: () => Record<string, never> | import("./ModalContext").ModalContextProps;
|