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/esm/index.css CHANGED
@@ -1,3 +1,23 @@
1
+ .editor {
2
+ padding-left: 20px;
3
+ padding-right: 20px;
4
+ min-height: 120px;
5
+ max-height: 350px;
6
+ overflow: auto;
7
+ }
8
+ .toolBar {
9
+ border-style: solid;
10
+ border-width: 0.1px;
11
+ border-radius: 10px;
12
+ border-color: lightgray;
13
+ }
14
+ .wrapper {
15
+ border-style: solid;
16
+ border-width: 0.1px;
17
+ border-radius: 10px;
18
+ border-color: lightgray;
19
+ }
20
+
1
21
  /*!
2
22
  Theme: Tomorrow Night
3
23
  Author: Chris Kempson (http://chriskempson.com)
@@ -5,26 +25,6 @@
5
25
  Maintainer: @highlightjs/core-team
6
26
  Version: 2021.09.0
7
27
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#ccc;background:#2d2d2d}.hljs ::selection,.hljs::selection{background-color:#515151;color:#ccc}.hljs-comment{color:#999}.hljs-tag{color:#b4b7b4}.hljs-operator,.hljs-punctuation,.hljs-subst{color:#ccc}.hljs-operator{opacity:.7}.hljs-bullet,.hljs-deletion,.hljs-name,.hljs-selector-tag,.hljs-template-variable,.hljs-variable{color:#f2777a}.hljs-attr,.hljs-link,.hljs-literal,.hljs-number,.hljs-symbol,.hljs-variable.constant_{color:#f99157}.hljs-class .hljs-title,.hljs-title,.hljs-title.class_{color:#fc6}.hljs-strong{font-weight:700;color:#fc6}.hljs-addition,.hljs-code,.hljs-string,.hljs-title.class_.inherited__{color:#9c9}.hljs-built_in,.hljs-doctag,.hljs-keyword.hljs-atrule,.hljs-quote,.hljs-regexp{color:#6cc}.hljs-attribute,.hljs-function .hljs-title,.hljs-section,.hljs-title.function_,.ruby .hljs-property{color:#69c}.diff .hljs-meta,.hljs-keyword,.hljs-template-tag,.hljs-type{color:#c9c}.hljs-emphasis{color:#c9c;font-style:italic}.hljs-meta,.hljs-meta .hljs-keyword,.hljs-meta .hljs-string{color:#a3685a}.hljs-meta .hljs-keyword,.hljs-meta-keyword{font-weight:700}
8
- .editor {
9
- padding-left: 20px;
10
- padding-right: 20px;
11
- min-height: 120px;
12
- max-height: 350px;
13
- overflow: auto;
14
- }
15
- .toolBar {
16
- border-style: solid;
17
- border-width: 0.1px;
18
- border-radius: 10px;
19
- border-color: lightgray;
20
- }
21
- .wrapper {
22
- border-style: solid;
23
- border-width: 0.1px;
24
- border-radius: 10px;
25
- border-color: lightgray;
26
- }
27
-
28
28
  /*!
29
29
  * Quill Editor v1.3.7
30
30
  * https://quilljs.com/