identity-admin-ui 1.8.12 → 1.8.14

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[];
@@ -13,6 +13,7 @@ declare const ResourcesContext: import("react").Context<{
13
13
  resources: ResourceResponse;
14
14
  getResources: () => void;
15
15
  state: RequestState;
16
+ clearResources: () => void;
16
17
  }>;
17
18
  export interface ResourcesContextConfig {
18
19
  resourcesUrl: 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
+ }
@@ -12,5 +12,6 @@ declare function useApi<T>(): {
12
12
  post: (requstConfig: RequestConfig) => void;
13
13
  patch: (requstConfig: RequestConfig) => void;
14
14
  remove: (requstConfig: RequestConfig) => void;
15
+ revertToIdle: () => void;
15
16
  };
16
17
  export { useApi };
@@ -2,4 +2,5 @@ export declare const useResources: () => {
2
2
  resources: import("../context").ResourceResponse;
3
3
  getResources: () => void;
4
4
  state: import("./RequetState").RequestState;
5
+ clearResources: () => void;
5
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/esm/index.css CHANGED
@@ -1,21 +1,3 @@
1
- .editor {
2
- padding-left: 20px;
3
- padding-right: 20px;
4
- max-height: 350px;
5
- overflow: auto;
6
- }
7
- .toolBar {
8
- border-style: solid;
9
- border-width: 0.1px;
10
- border-radius: 10px;
11
- border-color:lightgray;
12
- }
13
- .wrapper {
14
- border-style: solid;
15
- border-width: 0.1px;
16
- border-radius: 10px;
17
- border-color:lightgray;
18
- }
19
1
  /*!
20
2
  Theme: Tomorrow Night
21
3
  Author: Chris Kempson (http://chriskempson.com)
@@ -23,6 +5,24 @@
23
5
  Maintainer: @highlightjs/core-team
24
6
  Version: 2021.09.0
25
7
  */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
+ max-height: 350px;
12
+ overflow: auto;
13
+ }
14
+ .toolBar {
15
+ border-style: solid;
16
+ border-width: 0.1px;
17
+ border-radius: 10px;
18
+ border-color:lightgray;
19
+ }
20
+ .wrapper {
21
+ border-style: solid;
22
+ border-width: 0.1px;
23
+ border-radius: 10px;
24
+ border-color:lightgray;
25
+ }
26
26
  /*!
27
27
  * Quill Editor v1.3.7
28
28
  * https://quilljs.com/