identity-admin-ui 1.10.4 → 1.10.5

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.
@@ -12,3 +12,7 @@ export declare enum FileTypes {
12
12
  POWER_POINT = "POWER_POINT",
13
13
  AUDIO = "AUDIO"
14
14
  }
15
+ export declare enum ImageOptimizingCategories {
16
+ NORMAL = "NORMAL",
17
+ BANNERS = "BANNERS"
18
+ }
@@ -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
+ };
@@ -1,6 +1,6 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
2
  import { ImageItem } from '../../components/mediaUploader/ImageSelector';
3
- import { FileTypes } from '../../helpers/Types';
3
+ import { FileTypes, ImageOptimizingCategories } from '../../helpers/Types';
4
4
  export interface IImageProps {
5
5
  image: {
6
6
  [key: string]: ImageItem | ImageItem[] | undefined;
@@ -15,6 +15,7 @@ export interface IImageProps {
15
15
  fileType: FileTypes;
16
16
  handleRemoveImage: (key: string) => void;
17
17
  handleEditImage: (key: string) => void;
18
+ imageOptimizingCategory?: ImageOptimizingCategories;
18
19
  setImageDialogState: React.Dispatch<React.SetStateAction<{
19
20
  [key: string]: boolean;
20
21
  }>>;
@@ -37,4 +38,4 @@ export interface IImageProps {
37
38
  shouldTouch: boolean;
38
39
  }> | undefined) => void;
39
40
  }
40
- export default function ImageCard({ image, keyValue, isEnglish, imageDialogState, label, multiple, fileType, dismissDialogState, setImages, handleEditImage, handleRemoveImage, setImageDialogState, setImage, setValue, }: IImageProps): import("react/jsx-runtime").JSX.Element;
41
+ export default function ImageCard({ image, keyValue, isEnglish, imageDialogState, imageOptimizingCategory, label, multiple, fileType, dismissDialogState, setImages, handleEditImage, handleRemoveImage, setImageDialogState, setImage, setValue, }: IImageProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { FileTypes } from '../helpers/Types';
2
- export declare const uploadFile: (file: any, isImage: boolean, callBack: (link: string) => void) => Promise<unknown>;
1
+ import { FileTypes, ImageOptimizingCategories } from '../helpers/Types';
2
+ export declare const uploadFile: (file: any, isImage: boolean, imageOptimizingCategory: ImageOptimizingCategories, callBack: (link: string) => void) => Promise<unknown>;
3
3
  export declare const uploadFiles: (files: File[], fileType: FileTypes) => Promise<(string | undefined)[]>;
package/package.json CHANGED
@@ -1,88 +1,88 @@
1
- {
2
- "name": "identity-admin-ui",
3
- "version": "1.10.4",
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/react-lazyload": "^3.2.3",
44
- "@types/stylis": "^4.2.0",
45
- "autosuggest-highlight": "^3.3.4",
46
- "aws-amplify": "^5.3.8",
47
- "axios": "^1.4.0",
48
- "compressorjs": "^1.2.1",
49
- "date-fns": "^2.30.0",
50
- "dayjs": "^1.11.9",
51
- "framer-motion": "^10.15.0",
52
- "highlight.js": "^11.8.0",
53
- "material-ui-phone-number": "^3.0.0",
54
- "moment": "^2.29.4",
55
- "notistack": "^3.0.1",
56
- "nprogress": "^0.2.0",
57
- "numeral": "^2.0.6",
58
- "pluralize": "^8.0.0",
59
- "react": "^18.2.0",
60
- "react-beautiful-dnd": "^13.1.1",
61
- "react-dropzone": "^14.2.3",
62
- "react-helmet-async": "^1.3.0",
63
- "react-hook-form": "^7.45.4",
64
- "react-lazy-load-image-component": "^1.6.0",
65
- "react-router-dom": "^6.14.2",
66
- "rollup": "^3.27.0",
67
- "rollup-plugin-css-bundle": "^1.0.4",
68
- "rollup-plugin-dts": "^5.3.1",
69
- "rollup-plugin-peer-deps-external": "^2.2.4",
70
- "rollup-plugin-postcss": "^4.0.2",
71
- "rollup-plugin-postcss-modules": "^2.1.1",
72
- "rollup-plugin-preserve-directives": "^0.2.0",
73
- "rollup-plugin-terser": "^7.0.2",
74
- "simplebar-react": "^3.2.4",
75
- "stylis": "^4.3.0",
76
- "stylis-plugin-rtl": "^2.1.1",
77
- "tslib": "^2.6.1",
78
- "typescript": "^5.1.6",
79
- "yup": "^1.2.0"
80
- },
81
- "dependencies": {
82
- "draftjs-to-html": "^0.9.1",
83
- "html-to-draftjs": "^1.5.0",
84
- "react-draft-wysiwyg": "^1.15.0",
85
- "react-lazyload": "^3.2.1",
86
- "react-quill": "^2.0.0"
87
- }
88
- }
1
+ {
2
+ "name": "identity-admin-ui",
3
+ "version": "1.10.5",
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/react-lazyload": "^3.2.3",
44
+ "@types/stylis": "^4.2.0",
45
+ "autosuggest-highlight": "^3.3.4",
46
+ "aws-amplify": "^5.3.8",
47
+ "axios": "^1.4.0",
48
+ "compressorjs": "^1.2.1",
49
+ "date-fns": "^2.30.0",
50
+ "dayjs": "^1.11.9",
51
+ "framer-motion": "^10.15.0",
52
+ "highlight.js": "^11.8.0",
53
+ "material-ui-phone-number": "^3.0.0",
54
+ "moment": "^2.29.4",
55
+ "notistack": "^3.0.1",
56
+ "nprogress": "^0.2.0",
57
+ "numeral": "^2.0.6",
58
+ "pluralize": "^8.0.0",
59
+ "react": "^18.2.0",
60
+ "react-beautiful-dnd": "^13.1.1",
61
+ "react-dropzone": "^14.2.3",
62
+ "react-helmet-async": "^1.3.0",
63
+ "react-hook-form": "^7.45.4",
64
+ "react-lazy-load-image-component": "^1.6.0",
65
+ "react-router-dom": "^6.14.2",
66
+ "rollup": "^3.27.0",
67
+ "rollup-plugin-css-bundle": "^1.0.4",
68
+ "rollup-plugin-dts": "^5.3.1",
69
+ "rollup-plugin-peer-deps-external": "^2.2.4",
70
+ "rollup-plugin-postcss": "^4.0.2",
71
+ "rollup-plugin-postcss-modules": "^2.1.1",
72
+ "rollup-plugin-preserve-directives": "^0.2.0",
73
+ "rollup-plugin-terser": "^7.0.2",
74
+ "simplebar-react": "^3.2.4",
75
+ "stylis": "^4.3.0",
76
+ "stylis-plugin-rtl": "^2.1.1",
77
+ "tslib": "^2.6.1",
78
+ "typescript": "^5.1.6",
79
+ "yup": "^1.2.0"
80
+ },
81
+ "dependencies": {
82
+ "draftjs-to-html": "^0.9.1",
83
+ "html-to-draftjs": "^1.5.0",
84
+ "react-draft-wysiwyg": "^1.15.0",
85
+ "react-lazyload": "^3.2.1",
86
+ "react-quill": "^2.0.0"
87
+ }
88
+ }