identity-admin-ui 1.8.1 → 1.8.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.
@@ -0,0 +1,10 @@
1
+ import { IInputFieldProps } from './IFieldProps';
2
+ export declare enum RichTextType {
3
+ TYPE_ONE = 0,
4
+ TYPE_TWO = 1
5
+ }
6
+ interface IRichTextProps extends IInputFieldProps {
7
+ type: RichTextType;
8
+ }
9
+ export declare function RichTextInputField(props: IRichTextProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import { IShowField } from '../IShowField';
2
+ export declare function RichTextIIField(props: IShowField): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { ResourceResponse } from "../../context/ResourcesContext";
2
2
  import { ResourcePaths } from "../../context/PathsContext";
3
3
  import { ISchemaObject } from "../../context/Resource";
4
+ import { FieldTypes } from "../../helpers";
4
5
  export interface IShowField {
5
6
  title: string;
6
7
  fieldkey: string;
@@ -12,4 +13,5 @@ export interface IShowField {
12
13
  };
13
14
  path?: string;
14
15
  props?: any;
16
+ type?: FieldTypes;
15
17
  }
@@ -0,0 +1,22 @@
1
+ import { Control, FieldValues } from 'react-hook-form';
2
+ import { TextFieldProps } from '@mui/material';
3
+ type IProps = {
4
+ name: string;
5
+ options?: Option[];
6
+ loading: boolean;
7
+ multiple?: boolean;
8
+ onOptionChange?: (value: Option | Option[] | null) => void;
9
+ onOpenChanged: (isOpend: boolean, page: number, filter?: string) => void;
10
+ hasNext: boolean;
11
+ control?: Control<FieldValues, any>;
12
+ loadMoreText?: string;
13
+ };
14
+ type Props = IProps & TextFieldProps;
15
+ export interface Option {
16
+ _id: string;
17
+ title?: string;
18
+ name?: string;
19
+ image?: string;
20
+ }
21
+ export default function PaginatedRHFLazySelect({ name, options, loading, multiple, onOptionChange, onOpenChanged, hasNext, loadMoreText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,7 @@
1
+ import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
2
+ import './styles.css';
3
+ export interface IRichText {
4
+ name: string;
5
+ disabled?: boolean;
6
+ }
7
+ export default function RHFRichText({ name, disabled }: IRichText): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,25 @@
1
+ export interface IReferenceValue {
2
+ data: any[];
3
+ page: number;
4
+ hasNext: boolean;
5
+ filter?: string;
6
+ }
7
+ export interface IPaginatedReference {
8
+ [key: string]: IReferenceValue;
9
+ }
10
+ export interface IPaginatedReferenceValueProps {
11
+ referencedValues: IPaginatedReference;
12
+ key: string;
13
+ fullKey: string;
14
+ value: any;
15
+ loading: any;
16
+ apiRoute: string;
17
+ schema: any;
18
+ pathRoute: string;
19
+ resources: any;
20
+ extraKey?: string;
21
+ setLoading: (value: any) => void;
22
+ setReferencedValues: (value: any) => void;
23
+ page: number;
24
+ filter?: string;
25
+ }
@@ -0,0 +1,2 @@
1
+ import { IPaginatedReferenceValueProps } from './IPaginatedReference';
2
+ export declare function getPaginatedReferenceValues({ referencedValues, value, loading, extraKey, fullKey, key, apiRoute, resources, pathRoute, schema, setLoading, setReferencedValues, page, filter, }: IPaginatedReferenceValueProps): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin-ui",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "description": "Identity solutions UI package using for identity-admin dashboard",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",
@@ -30,11 +30,13 @@
30
30
  "@rollup/plugin-typescript": "^11.1.2",
31
31
  "@types/autosuggest-highlight": "^3.2.0",
32
32
  "@types/axios": "^0.14.0",
33
+ "@types/draftjs-to-html": "^0.8.2",
33
34
  "@types/moment": "^2.13.0",
34
35
  "@types/nprogress": "^0.2.0",
35
36
  "@types/numeral": "^2.0.2",
36
37
  "@types/react": "^18.2.20",
37
38
  "@types/react-beautiful-dnd": "^13.1.4",
39
+ "@types/react-draft-wysiwyg": "^1.13.5",
38
40
  "@types/react-helmet-async": "^1.0.3",
39
41
  "@types/react-lazy-load-image-component": "^1.5.3",
40
42
  "@types/stylis": "^4.2.0",
@@ -75,6 +77,8 @@
75
77
  "yup": "^1.2.0"
76
78
  },
77
79
  "dependencies": {
80
+ "draftjs-to-html": "^0.9.1",
81
+ "react-draft-wysiwyg": "^1.15.0",
78
82
  "react-quill": "^2.0.0"
79
83
  }
80
84
  }