identity-admin-ui 1.7.1 → 1.7.3
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/lib/cjs/index.js +9 -9
- package/lib/cjs/types/context/DialogContext.d.ts +14 -0
- package/lib/cjs/types/context/index.d.ts +1 -0
- package/lib/cjs/types/hooks/index.d.ts +1 -0
- package/lib/cjs/types/hooks/useDialog.d.ts +4 -0
- package/lib/esm/index.js +2 -2
- package/lib/esm/types/context/DialogContext.d.ts +14 -0
- package/lib/esm/types/context/index.d.ts +1 -0
- package/lib/esm/types/hooks/index.d.ts +1 -0
- package/lib/esm/types/hooks/useDialog.d.ts +4 -0
- package/lib/index.d.ts +18 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface IDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onDismiss: () => void;
|
|
5
|
+
data: any;
|
|
6
|
+
}
|
|
7
|
+
declare const DialogContext: import("react").Context<{
|
|
8
|
+
openDialog: (dialogComponent: (data: IDialogProps) => JSX.Element, data?: any) => void;
|
|
9
|
+
}>;
|
|
10
|
+
type DialogProviderProps = {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
declare function DialogContextProvider({ children }: DialogProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { DialogContext, DialogContextProvider };
|
package/lib/index.d.ts
CHANGED
|
@@ -466,6 +466,19 @@ type SnackAlertProviderProps = {
|
|
|
466
466
|
};
|
|
467
467
|
declare function SnackAlertProvider({ children }: SnackAlertProviderProps): react_jsx_runtime.JSX.Element;
|
|
468
468
|
|
|
469
|
+
interface IDialogProps {
|
|
470
|
+
open: boolean;
|
|
471
|
+
onDismiss: () => void;
|
|
472
|
+
data: any;
|
|
473
|
+
}
|
|
474
|
+
declare const DialogContext: react.Context<{
|
|
475
|
+
openDialog: (dialogComponent: (data: IDialogProps) => JSX.Element, data?: any) => void;
|
|
476
|
+
}>;
|
|
477
|
+
type DialogProviderProps = {
|
|
478
|
+
children: ReactNode;
|
|
479
|
+
};
|
|
480
|
+
declare function DialogContextProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
|
|
481
|
+
|
|
469
482
|
declare const useResources: () => {
|
|
470
483
|
resources: ResourceResponse;
|
|
471
484
|
getResources: () => void;
|
|
@@ -488,6 +501,10 @@ declare const usePaths: () => {
|
|
|
488
501
|
home: string;
|
|
489
502
|
};
|
|
490
503
|
|
|
504
|
+
declare const useDialogs: () => {
|
|
505
|
+
openDialog: (dialogComponent: (data: IDialogProps) => JSX.Element, data?: any) => void;
|
|
506
|
+
};
|
|
507
|
+
|
|
491
508
|
declare const IdentityClient: axios.AxiosInstance;
|
|
492
509
|
declare module 'axios' {
|
|
493
510
|
interface AxiosRequestConfig {
|
|
@@ -533,4 +550,4 @@ declare function DashBoardRouter(props: any): {
|
|
|
533
550
|
}[];
|
|
534
551
|
};
|
|
535
552
|
|
|
536
|
-
export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, IAction, IActionMin, IExtarAction, IExtras, IFilter, IMainProperty, IParent, IProperty, ISchemaObject, ISnackMessageProps, IState, IdentityModelConfigurationPage as IdenityModelConfiguration, IdentityClient, CreateEdit as IdentityEdit, ListRecords as IdentityList, IdentityPage, IdentityPageProps, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, NextPreviousButtons, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, SnackAlertContext, SnackAlertProvider, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useAppConfigurations, useCredentials, useNavData, usePaths, useResources, useSnackAlert };
|
|
553
|
+
export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, DialogContext, DialogContextProvider, IAction, IActionMin, IDialogProps, IExtarAction, IExtras, IFilter, IMainProperty, IParent, IProperty, ISchemaObject, ISnackMessageProps, IState, IdentityModelConfigurationPage as IdenityModelConfiguration, IdentityClient, CreateEdit as IdentityEdit, ListRecords as IdentityList, IdentityPage, IdentityPageProps, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, NextPreviousButtons, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, SnackAlertContext, SnackAlertProvider, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useAppConfigurations, useCredentials, useDialogs, useNavData, usePaths, useResources, useSnackAlert };
|