identity-admin-ui 1.12.24 → 1.12.26

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.
@@ -4,4 +4,6 @@ export { default as MotionLazyContainer } from './MotionLazyContainer';
4
4
  export { default as SvgIconStyle } from './SvgIconStyle';
5
5
  export { default as ThemeSettings } from './settings/index';
6
6
  export { default as LocalizationStringForm } from './LocalizedStringForm';
7
+ export { default as JSONRichText } from './hook-form/RHFRichText/JSONRichText';
8
+ export * from './DashboardShowFields/Sections/RichText/JSONRichTextShow';
7
9
  export * from './Dialog/ActionDialog';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ResourcePaths } from "../../../context/PathsContext";
2
3
  /**
3
4
  * Props for the IdentityShow component, providing information
@@ -22,4 +23,10 @@ export interface IdentityShowProps {
22
23
  * The path to the specific resource being shown.
23
24
  */
24
25
  path: any;
26
+ /**
27
+ * Fields map for custom fields view;
28
+ */
29
+ fieldsMap?: Record<string, (props: {
30
+ record: any;
31
+ }) => JSX.Element>;
25
32
  }
@@ -69,4 +69,8 @@ export interface ShowRecordProps extends INextpreviousExtras {
69
69
  * An optional flag to disable fetching the record.
70
70
  */
71
71
  disableFetchRecord?: boolean;
72
+ /**
73
+ * Fields map for custom fields view;
74
+ */
75
+ fieldsMap?: Record<string, (record: any) => JSX.Element>;
72
76
  }
@@ -1,4 +1,4 @@
1
- export declare function useNavData(): {
2
- subheader: string;
3
- items: any;
4
- }[];
1
+ export declare function useNavData(): {
2
+ subheader: string;
3
+ items: any;
4
+ }[];
@@ -23,5 +23,9 @@ export interface ICreateEdit extends INextpreviousExtras {
23
23
  defaultFilters?: string | undefined;
24
24
  showFilterChips?: boolean;
25
25
  hideHeaderBreadcrumbs?: boolean;
26
+ fieldsMap?: Record<string, (props: {
27
+ name: string;
28
+ record?: any;
29
+ }) => JSX.Element>;
26
30
  }
27
31
  export default function CreateEdit(props: ICreateEdit): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
- import { SizeType } from '../helpers/Types';
2
- export declare var SIZE: SizeType;
3
- export default function AdminRouter(): {
4
- path: any;
5
- children: {
6
- path: string;
7
- element: import("react/jsx-runtime").JSX.Element;
8
- children: any[];
9
- }[];
10
- };
1
+ import { SizeType } from '../helpers/Types';
2
+ export declare var SIZE: SizeType;
3
+ export default function AdminRouter(): {
4
+ path: any;
5
+ children: {
6
+ path: string;
7
+ element: import("react/jsx-runtime").JSX.Element;
8
+ children: any[];
9
+ }[];
10
+ };
@@ -1,5 +1,5 @@
1
- export declare function path(root: string, sublink: string): string;
2
- export declare const ADMIN_ROOT = "/admin";
3
- export declare var ADMIN_PATH: {
4
- [key: string]: any;
5
- };
1
+ export declare function path(root: string, sublink: string): string;
2
+ export declare const ADMIN_ROOT = "/admin";
3
+ export declare var ADMIN_PATH: {
4
+ [key: string]: any;
5
+ };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface INewEditFormProps {
2
3
  isEdit: boolean;
3
4
  isDuplicate?: boolean;
@@ -13,5 +14,9 @@ export interface INewEditFormProps {
13
14
  afterCreateSnackText?: (recordName: string) => string;
14
15
  enableCreateNewButtonOnReference?: boolean;
15
16
  keepFullWidthElements?: boolean;
17
+ fieldsMap?: Record<string, (props: {
18
+ name: string;
19
+ record?: any;
20
+ }) => JSX.Element>;
16
21
  }
17
- export default function NewEditForm({ isEdit, isDuplicate, id, record, path, mediaUploaderFields, onSubmitForm, referencedMap, modelRoute, redirectPath, afterCreateSnackText, afterEditSnackText, enableCreateNewButtonOnReference, keepFullWidthElements, }: INewEditFormProps): import("react/jsx-runtime").JSX.Element;
22
+ export default function NewEditForm({ isEdit, isDuplicate, id, record, path, mediaUploaderFields, onSubmitForm, referencedMap, modelRoute, redirectPath, afterCreateSnackText, afterEditSnackText, enableCreateNewButtonOnReference, keepFullWidthElements, fieldsMap }: INewEditFormProps): import("react/jsx-runtime").JSX.Element;
@@ -12,4 +12,4 @@ import { IdentityShowProps } from '../../helpers/CrudHelper/Show/IdentityShowPro
12
12
  * <IdentityShow record={record} path="userPath" userPath="userDetails" />
13
13
  * ```
14
14
  */
15
- export default function IdentityShow({ record, path, userPath }: IdentityShowProps): import("react/jsx-runtime").JSX.Element;
15
+ export default function IdentityShow({ record, path, userPath, fieldsMap }: IdentityShowProps): import("react/jsx-runtime").JSX.Element;
package/lib/index.d.ts CHANGED
@@ -738,6 +738,10 @@ interface ShowRecordProps extends INextpreviousExtras {
738
738
  * An optional flag to disable fetching the record.
739
739
  */
740
740
  disableFetchRecord?: boolean;
741
+ /**
742
+ * Fields map for custom fields view;
743
+ */
744
+ fieldsMap?: Record<string, (record: any) => JSX.Element>;
741
745
  }
742
746
 
743
747
  /**
@@ -782,6 +786,10 @@ interface ICreateEdit extends INextpreviousExtras {
782
786
  defaultFilters?: string | undefined;
783
787
  showFilterChips?: boolean;
784
788
  hideHeaderBreadcrumbs?: boolean;
789
+ fieldsMap?: Record<string, (props: {
790
+ name: string;
791
+ record?: any;
792
+ }) => JSX.Element>;
785
793
  }
786
794
  declare function CreateEdit(props: ICreateEdit): react_jsx_runtime.JSX.Element;
787
795
 
@@ -998,6 +1006,17 @@ type Props$b = {
998
1006
  };
999
1007
  declare function LocalizedStringForm({ title, includeFrench, includeGerman, includeSpanish, includeDanish, includeNorwegian, includeSwedish, size, value, isEdit, fieldName, numberOfRows, setValue, getValues, handleChange, }: Props$b): react_jsx_runtime.JSX.Element;
1000
1008
 
1009
+ interface IRichText {
1010
+ name: string;
1011
+ disabled?: boolean;
1012
+ }
1013
+
1014
+ declare function RHFJSONRichText({ name, disabled }: IRichText): react_jsx_runtime.JSX.Element;
1015
+
1016
+ declare function JSONRichTextShow({ stringifiedJson }: {
1017
+ stringifiedJson: string;
1018
+ }): react_jsx_runtime.JSX.Element;
1019
+
1001
1020
  interface ActionDialogProps {
1002
1021
  open: boolean;
1003
1022
  /** Title to display when isSecondaryAction is false */
@@ -1048,6 +1067,12 @@ interface IdentityShowProps {
1048
1067
  * The path to the specific resource being shown.
1049
1068
  */
1050
1069
  path: any;
1070
+ /**
1071
+ * Fields map for custom fields view;
1072
+ */
1073
+ fieldsMap?: Record<string, (props: {
1074
+ record: any;
1075
+ }) => JSX.Element>;
1051
1076
  }
1052
1077
 
1053
1078
  /**
@@ -1063,7 +1088,7 @@ interface IdentityShowProps {
1063
1088
  * <IdentityShow record={record} path="userPath" userPath="userDetails" />
1064
1089
  * ```
1065
1090
  */
1066
- declare function IdentityShow({ record, path, userPath }: IdentityShowProps): react_jsx_runtime.JSX.Element;
1091
+ declare function IdentityShow({ record, path, userPath, fieldsMap }: IdentityShowProps): react_jsx_runtime.JSX.Element;
1067
1092
 
1068
1093
  /**
1069
1094
  * DumpServiceActionProps type for Dump service action
@@ -1577,4 +1602,4 @@ declare const palette: {
1577
1602
  };
1578
1603
  };
1579
1604
 
1580
- export { ActionDialog, ActionDialogProps, ActionNames, ActionTypes$1 as ActionTypes, ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, AuthProvider as AuthContextProvider, AuthReducer, CollapseDrawerContext, CollapseDrawerContextProps, CollapseDrawerProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, DialogContext, DialogContextProvider, FieldTypes, FileTypes, FormProvider, HandlerStrategy, IAction, IActionMin, IActionsProps, IDialogProps, IExtarAction, IExtras, IFilter, IListProps, IListRecordsProps, IMainProperty, IOptionalResource, IParent, IProperty, IResource as IResouce, ISchemaObject, ISnackMessageProps, IState, IdentityModelConfigurationPage as IdenityModelConfiguration, Page404 as Identity404, IdentityClient, DumpServiceAction as IdentityDumpServiceAction, CreateEdit as IdentityEdit, DataGridd as IdentityGrid, ListRecords as IdentityList, LoadingScreen as IdentityLoadingScreen, IdentityPage, IdentityPageProps, palette as IdentityPalette, Permissions as IdentityPermissionPage, AdminRouter as IdentityRouter, ShowRecord as IdentityShow, ShowMailLog as IdentityShowMailLog, ImageOptimizingCategories, LocalizedStringForm as LocalizationStringForm, MotionLazyContainer, NextPreviousButtons, NotificationContext, NotificationsPopover as NotificationPopover, NotificationsContextConfig, NotificationsContextProvider, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, PermissionDefaultKeys, RHFCheckbox, RHFCreatableSelect, RHFDatePicker, RHFEditor, RHFGooglePlaces, RHFGroupedTextFields, RHFLazySelect, RHFMultiCheckbox, RHFRadioGroup, RHFSelect, RHFTagsField, RHFTextField, RHFUploadAvatar, RHFUploadFileButton, RHFUploadFileButton2, RHFUploadImage, RHFUploadMultiFile, RHFUploadSingleFile, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsContext, SettingsProvider, Severity, IdentityShow as ShowRecord, SizeType, SnackAlertContext, SnackAlertProvider, State$1 as State, SvgIconStyle, ThemeProvider, ThemeSettings, UniqueFieldHelper, UploadRsult, checkPermission, fCurrency, fData, fNumber, fPercent, fShortenNumber, getFilterValues, getUrlFilters, orderTypes, path, useApi, useAppConfigurations, useAuth, useCredentials, useDialogs, useLocales, useNavData, useNotifications, usePaths, useResources, useSettings, useSnackAlert };
1605
+ export { ActionDialog, ActionDialogProps, ActionNames, ActionTypes$1 as ActionTypes, ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, AuthProvider as AuthContextProvider, AuthReducer, CollapseDrawerContext, CollapseDrawerContextProps, CollapseDrawerProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, DialogContext, DialogContextProvider, FieldTypes, FileTypes, FormProvider, HandlerStrategy, IAction, IActionMin, IActionsProps, IDialogProps, IExtarAction, IExtras, IFilter, IListProps, IListRecordsProps, IMainProperty, IOptionalResource, IParent, IProperty, IResource as IResouce, ISchemaObject, ISnackMessageProps, IState, IdentityModelConfigurationPage as IdenityModelConfiguration, Page404 as Identity404, IdentityClient, DumpServiceAction as IdentityDumpServiceAction, CreateEdit as IdentityEdit, DataGridd as IdentityGrid, ListRecords as IdentityList, LoadingScreen as IdentityLoadingScreen, IdentityPage, IdentityPageProps, palette as IdentityPalette, Permissions as IdentityPermissionPage, AdminRouter as IdentityRouter, ShowRecord as IdentityShow, ShowMailLog as IdentityShowMailLog, ImageOptimizingCategories, RHFJSONRichText as JSONRichText, JSONRichTextShow, LocalizedStringForm as LocalizationStringForm, MotionLazyContainer, NextPreviousButtons, NotificationContext, NotificationsPopover as NotificationPopover, NotificationsContextConfig, NotificationsContextProvider, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, PermissionDefaultKeys, RHFCheckbox, RHFCreatableSelect, RHFDatePicker, RHFEditor, RHFGooglePlaces, RHFGroupedTextFields, RHFLazySelect, RHFMultiCheckbox, RHFRadioGroup, RHFSelect, RHFTagsField, RHFTextField, RHFUploadAvatar, RHFUploadFileButton, RHFUploadFileButton2, RHFUploadImage, RHFUploadMultiFile, RHFUploadSingleFile, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsContext, SettingsProvider, Severity, IdentityShow as ShowRecord, SizeType, SnackAlertContext, SnackAlertProvider, State$1 as State, SvgIconStyle, ThemeProvider, ThemeSettings, UniqueFieldHelper, UploadRsult, checkPermission, fCurrency, fData, fNumber, fPercent, fShortenNumber, getFilterValues, getUrlFilters, orderTypes, path, useApi, useAppConfigurations, useAuth, useCredentials, useDialogs, useLocales, useNavData, useNotifications, usePaths, useResources, useSettings, useSnackAlert };
package/package.json CHANGED
@@ -1,95 +1,95 @@
1
- {
2
- "name": "identity-admin-ui",
3
- "version": "1.12.24",
4
- "description": "Identity solutions UI package using for identity-admin dashboard",
5
- "main": "lib/cjs/index.js",
6
- "module": "lib/esm/index.js",
7
- "files": [
8
- "lib/**/*"
9
- ],
10
- "types": "lib/index.d.ts",
11
- "scripts": {
12
- "build": "rollup -c --bundleConfigAsCjs",
13
- "test": "echo \"Error: no test specified\" && exit 1"
14
- },
15
- "author": "",
16
- "license": "ISC",
17
- "devDependencies": {
18
- "@emotion/cache": "^11.11.0",
19
- "@emotion/react": "^11.11.1",
20
- "@emotion/styled": "^11.11.0",
21
- "@hookform/resolvers": "^3.2.0",
22
- "@iconify/react": "^4.1.0",
23
- "@mui/icons-material": "^5.14.3",
24
- "@mui/lab": "^5.0.0-alpha.139",
25
- "@mui/material": "^5.14.5",
26
- "@mui/x-data-grid": "^6.11.1",
27
- "@mui/x-date-pickers": "^6.11.1",
28
- "@rollup/plugin-commonjs": "^25.0.3",
29
- "@rollup/plugin-node-resolve": "^15.1.0",
30
- "@rollup/plugin-replace": "^6.0.2",
31
- "@rollup/plugin-typescript": "^11.1.2",
32
- "@types/autosuggest-highlight": "^3.2.0",
33
- "@types/axios": "^0.14.0",
34
- "@types/draftjs-to-html": "^0.8.2",
35
- "@types/html-to-draftjs": "^1.4.1",
36
- "@types/moment": "^2.13.0",
37
- "@types/nprogress": "^0.2.0",
38
- "@types/numeral": "^2.0.2",
39
- "@types/react": "^18.2.20",
40
- "@types/react-beautiful-dnd": "^13.1.4",
41
- "@types/react-draft-wysiwyg": "^1.13.5",
42
- "@types/react-helmet-async": "^1.0.3",
43
- "@types/react-lazy-load-image-component": "^1.5.3",
44
- "@types/react-lazyload": "^3.2.3",
45
- "@types/stylis": "^4.2.0",
46
- "autosuggest-highlight": "^3.3.4",
47
- "aws-amplify": "^5.3.8",
48
- "axios": "^1.4.0",
49
- "compressorjs": "^1.2.1",
50
- "date-fns": "^2.30.0",
51
- "dayjs": "^1.11.9",
52
- "framer-motion": "^10.15.0",
53
- "highlight.js": "^11.8.0",
54
- "i18next": "^23.4.4",
55
- "i18next-browser-languagedetector": "^7.1.0",
56
- "i18next-http-backend": "^2.2.1",
57
- "material-ui-phone-number": "^3.0.0",
58
- "moment": "^2.29.4",
59
- "notistack": "^3.0.1",
60
- "nprogress": "^0.2.0",
61
- "numeral": "^2.0.6",
62
- "pluralize": "^8.0.0",
63
- "react": "^18.2.0",
64
- "react-beautiful-dnd": "^13.1.1",
65
- "react-dropzone": "^14.2.3",
66
- "react-helmet-async": "^1.3.0",
67
- "react-hook-form": "^7.45.4",
68
- "react-i18next": "^11.18.6",
69
- "react-lazy-load-image-component": "^1.6.0",
70
- "react-router-dom": "^6.14.2",
71
- "rollup": "^3.27.0",
72
- "rollup-plugin-css-bundle": "^1.0.4",
73
- "rollup-plugin-dts": "^5.3.1",
74
- "rollup-plugin-image": "^1.0.2",
75
- "rollup-plugin-peer-deps-external": "^2.2.4",
76
- "rollup-plugin-postcss": "^4.0.2",
77
- "rollup-plugin-postcss-modules": "^2.1.1",
78
- "rollup-plugin-preserve-directives": "^0.2.0",
79
- "rollup-plugin-terser": "^7.0.2",
80
- "simplebar-react": "^3.2.4",
81
- "stylis": "^4.3.0",
82
- "stylis-plugin-rtl": "^2.1.1",
83
- "tslib": "^2.6.1",
84
- "typescript": "^5.1.6",
85
- "yup": "^1.2.0"
86
- },
87
- "dependencies": {
88
- "@rollup/plugin-json": "^6.1.0",
89
- "draftjs-to-html": "^0.9.1",
90
- "html-to-draftjs": "^1.5.0",
91
- "react-draft-wysiwyg": "^1.15.0",
92
- "react-lazyload": "^3.2.1",
93
- "react-quill": "^2.0.0"
94
- }
95
- }
1
+ {
2
+ "name": "identity-admin-ui",
3
+ "version": "1.12.26",
4
+ "description": "Identity solutions UI package using for identity-admin dashboard",
5
+ "main": "lib/cjs/index.js",
6
+ "module": "lib/esm/index.js",
7
+ "files": [
8
+ "lib/**/*"
9
+ ],
10
+ "types": "lib/index.d.ts",
11
+ "scripts": {
12
+ "build": "rollup -c --bundleConfigAsCjs",
13
+ "test": "echo \"Error: no test specified\" && exit 1"
14
+ },
15
+ "author": "",
16
+ "license": "ISC",
17
+ "devDependencies": {
18
+ "@emotion/cache": "^11.11.0",
19
+ "@emotion/react": "^11.11.1",
20
+ "@emotion/styled": "^11.11.0",
21
+ "@hookform/resolvers": "^3.2.0",
22
+ "@iconify/react": "^4.1.0",
23
+ "@mui/icons-material": "^5.14.3",
24
+ "@mui/lab": "^5.0.0-alpha.139",
25
+ "@mui/material": "^5.14.5",
26
+ "@mui/x-data-grid": "^6.11.1",
27
+ "@mui/x-date-pickers": "^6.11.1",
28
+ "@rollup/plugin-commonjs": "^25.0.3",
29
+ "@rollup/plugin-node-resolve": "^15.1.0",
30
+ "@rollup/plugin-replace": "^6.0.2",
31
+ "@rollup/plugin-typescript": "^11.1.2",
32
+ "@types/autosuggest-highlight": "^3.2.0",
33
+ "@types/axios": "^0.14.0",
34
+ "@types/draftjs-to-html": "^0.8.2",
35
+ "@types/html-to-draftjs": "^1.4.1",
36
+ "@types/moment": "^2.13.0",
37
+ "@types/nprogress": "^0.2.0",
38
+ "@types/numeral": "^2.0.2",
39
+ "@types/react": "^18.2.20",
40
+ "@types/react-beautiful-dnd": "^13.1.4",
41
+ "@types/react-draft-wysiwyg": "^1.13.5",
42
+ "@types/react-helmet-async": "^1.0.3",
43
+ "@types/react-lazy-load-image-component": "^1.5.3",
44
+ "@types/react-lazyload": "^3.2.3",
45
+ "@types/stylis": "^4.2.0",
46
+ "autosuggest-highlight": "^3.3.4",
47
+ "aws-amplify": "^5.3.8",
48
+ "axios": "^1.4.0",
49
+ "compressorjs": "^1.2.1",
50
+ "date-fns": "^2.30.0",
51
+ "dayjs": "^1.11.9",
52
+ "framer-motion": "^10.15.0",
53
+ "highlight.js": "^11.8.0",
54
+ "i18next": "^23.4.4",
55
+ "i18next-browser-languagedetector": "^7.1.0",
56
+ "i18next-http-backend": "^2.2.1",
57
+ "material-ui-phone-number": "^3.0.0",
58
+ "moment": "^2.29.4",
59
+ "notistack": "^3.0.1",
60
+ "nprogress": "^0.2.0",
61
+ "numeral": "^2.0.6",
62
+ "pluralize": "^8.0.0",
63
+ "react": "^18.2.0",
64
+ "react-beautiful-dnd": "^13.1.1",
65
+ "react-dropzone": "^14.2.3",
66
+ "react-helmet-async": "^1.3.0",
67
+ "react-hook-form": "^7.45.4",
68
+ "react-i18next": "^11.18.6",
69
+ "react-lazy-load-image-component": "^1.6.0",
70
+ "react-router-dom": "^6.14.2",
71
+ "rollup": "^3.27.0",
72
+ "rollup-plugin-css-bundle": "^1.0.4",
73
+ "rollup-plugin-dts": "^5.3.1",
74
+ "rollup-plugin-image": "^1.0.2",
75
+ "rollup-plugin-peer-deps-external": "^2.2.4",
76
+ "rollup-plugin-postcss": "^4.0.2",
77
+ "rollup-plugin-postcss-modules": "^2.1.1",
78
+ "rollup-plugin-preserve-directives": "^0.2.0",
79
+ "rollup-plugin-terser": "^7.0.2",
80
+ "simplebar-react": "^3.2.4",
81
+ "stylis": "^4.3.0",
82
+ "stylis-plugin-rtl": "^2.1.1",
83
+ "tslib": "^2.6.1",
84
+ "typescript": "^5.1.6",
85
+ "yup": "^1.2.0"
86
+ },
87
+ "dependencies": {
88
+ "@rollup/plugin-json": "^6.1.0",
89
+ "draftjs-to-html": "^0.9.1",
90
+ "html-to-draftjs": "^1.5.0",
91
+ "react-draft-wysiwyg": "^1.15.0",
92
+ "react-lazyload": "^3.2.1",
93
+ "react-quill": "^2.0.0"
94
+ }
95
+ }