identity-admin-ui 1.8.12 → 1.8.13

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.
@@ -1,2 +1,2 @@
1
1
  export * from './types';
2
- export { default } from './editor';
2
+ export { default } from './Editor';
@@ -9,6 +9,9 @@ export default interface IResource {
9
9
  listProperties: IProperty[];
10
10
  showProperties: IProperty[];
11
11
  properties: IMainProperty;
12
+ permissions?: {
13
+ [permissionKey: string]: boolean;
14
+ };
12
15
  }
13
16
  export interface IOptionalResource {
14
17
  filterProperties?: string[];
@@ -0,0 +1,3 @@
1
+ import IResource from '../../context/Resource';
2
+ import { PermissionDefaultKeys } from './keys';
3
+ export declare function checkPermission(resource: IResource, permissionPrefixKey: PermissionDefaultKeys): boolean;
@@ -0,0 +1,6 @@
1
+ export declare enum PermissionDefaultKeys {
2
+ VIEW = "view",
3
+ CREATE = "create",
4
+ EDIT = "edit",
5
+ DELETE = "delete"
6
+ }
@@ -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
+ }[];
@@ -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
+ };
package/lib/index.d.ts CHANGED
@@ -126,6 +126,9 @@ interface IResource {
126
126
  listProperties: IProperty[];
127
127
  showProperties: IProperty[];
128
128
  properties: IMainProperty;
129
+ permissions?: {
130
+ [permissionKey: string]: boolean;
131
+ };
129
132
  }
130
133
  interface IOptionalResource {
131
134
  filterProperties?: string[];
package/package.json CHANGED
@@ -1,86 +1,86 @@
1
- {
2
- "name": "identity-admin-ui",
3
- "version": "1.8.12",
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-typescript": "^11.1.2",
31
- "@types/autosuggest-highlight": "^3.2.0",
32
- "@types/axios": "^0.14.0",
33
- "@types/draftjs-to-html": "^0.8.2",
34
- "@types/html-to-draftjs": "^1.4.1",
35
- "@types/moment": "^2.13.0",
36
- "@types/nprogress": "^0.2.0",
37
- "@types/numeral": "^2.0.2",
38
- "@types/react": "^18.2.20",
39
- "@types/react-beautiful-dnd": "^13.1.4",
40
- "@types/react-draft-wysiwyg": "^1.13.5",
41
- "@types/react-helmet-async": "^1.0.3",
42
- "@types/react-lazy-load-image-component": "^1.5.3",
43
- "@types/stylis": "^4.2.0",
44
- "autosuggest-highlight": "^3.3.4",
45
- "aws-amplify": "^5.3.8",
46
- "axios": "^1.4.0",
47
- "compressorjs": "^1.2.1",
48
- "date-fns": "^2.30.0",
49
- "dayjs": "^1.11.9",
50
- "framer-motion": "^10.15.0",
51
- "highlight.js": "^11.8.0",
52
- "material-ui-phone-number": "^3.0.0",
53
- "moment": "^2.29.4",
54
- "notistack": "^3.0.1",
55
- "nprogress": "^0.2.0",
56
- "numeral": "^2.0.6",
57
- "pluralize": "^8.0.0",
58
- "react": "^18.2.0",
59
- "react-beautiful-dnd": "^13.1.1",
60
- "react-dropzone": "^14.2.3",
61
- "react-helmet-async": "^1.3.0",
62
- "react-hook-form": "^7.45.4",
63
- "react-lazy-load-image-component": "^1.6.0",
64
- "react-router-dom": "^6.14.2",
65
- "rollup": "^3.27.0",
66
- "rollup-plugin-css-bundle": "^1.0.4",
67
- "rollup-plugin-dts": "^5.3.1",
68
- "rollup-plugin-peer-deps-external": "^2.2.4",
69
- "rollup-plugin-postcss": "^4.0.2",
70
- "rollup-plugin-postcss-modules": "^2.1.1",
71
- "rollup-plugin-preserve-directives": "^0.2.0",
72
- "rollup-plugin-terser": "^7.0.2",
73
- "simplebar-react": "^3.2.4",
74
- "stylis": "^4.3.0",
75
- "stylis-plugin-rtl": "^2.1.1",
76
- "tslib": "^2.6.1",
77
- "typescript": "^5.1.6",
78
- "yup": "^1.2.0"
79
- },
80
- "dependencies": {
81
- "draftjs-to-html": "^0.9.1",
82
- "html-to-draftjs": "^1.5.0",
83
- "react-draft-wysiwyg": "^1.15.0",
84
- "react-quill": "^2.0.0"
85
- }
86
- }
1
+ {
2
+ "name": "identity-admin-ui",
3
+ "version": "1.8.13",
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-typescript": "^11.1.2",
31
+ "@types/autosuggest-highlight": "^3.2.0",
32
+ "@types/axios": "^0.14.0",
33
+ "@types/draftjs-to-html": "^0.8.2",
34
+ "@types/html-to-draftjs": "^1.4.1",
35
+ "@types/moment": "^2.13.0",
36
+ "@types/nprogress": "^0.2.0",
37
+ "@types/numeral": "^2.0.2",
38
+ "@types/react": "^18.2.20",
39
+ "@types/react-beautiful-dnd": "^13.1.4",
40
+ "@types/react-draft-wysiwyg": "^1.13.5",
41
+ "@types/react-helmet-async": "^1.0.3",
42
+ "@types/react-lazy-load-image-component": "^1.5.3",
43
+ "@types/stylis": "^4.2.0",
44
+ "autosuggest-highlight": "^3.3.4",
45
+ "aws-amplify": "^5.3.8",
46
+ "axios": "^1.4.0",
47
+ "compressorjs": "^1.2.1",
48
+ "date-fns": "^2.30.0",
49
+ "dayjs": "^1.11.9",
50
+ "framer-motion": "^10.15.0",
51
+ "highlight.js": "^11.8.0",
52
+ "material-ui-phone-number": "^3.0.0",
53
+ "moment": "^2.29.4",
54
+ "notistack": "^3.0.1",
55
+ "nprogress": "^0.2.0",
56
+ "numeral": "^2.0.6",
57
+ "pluralize": "^8.0.0",
58
+ "react": "^18.2.0",
59
+ "react-beautiful-dnd": "^13.1.1",
60
+ "react-dropzone": "^14.2.3",
61
+ "react-helmet-async": "^1.3.0",
62
+ "react-hook-form": "^7.45.4",
63
+ "react-lazy-load-image-component": "^1.6.0",
64
+ "react-router-dom": "^6.14.2",
65
+ "rollup": "^3.27.0",
66
+ "rollup-plugin-css-bundle": "^1.0.4",
67
+ "rollup-plugin-dts": "^5.3.1",
68
+ "rollup-plugin-peer-deps-external": "^2.2.4",
69
+ "rollup-plugin-postcss": "^4.0.2",
70
+ "rollup-plugin-postcss-modules": "^2.1.1",
71
+ "rollup-plugin-preserve-directives": "^0.2.0",
72
+ "rollup-plugin-terser": "^7.0.2",
73
+ "simplebar-react": "^3.2.4",
74
+ "stylis": "^4.3.0",
75
+ "stylis-plugin-rtl": "^2.1.1",
76
+ "tslib": "^2.6.1",
77
+ "typescript": "^5.1.6",
78
+ "yup": "^1.2.0"
79
+ },
80
+ "dependencies": {
81
+ "draftjs-to-html": "^0.9.1",
82
+ "html-to-draftjs": "^1.5.0",
83
+ "react-draft-wysiwyg": "^1.15.0",
84
+ "react-quill": "^2.0.0"
85
+ }
86
+ }