demio-ui 2.5.92 → 2.5.94

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.
package/README.md CHANGED
@@ -164,5 +164,3 @@ Try to follow [Semantic Versioning](https://semver.org/) rules and [Conventional
164
164
  ## Git hooks
165
165
 
166
166
  We use pre-commit and pre-push git hooks to run tests and linting before committing and pushing code. This ensures we don't commit code that doesn't pass tests or linting. Hooks are managed by [husky](https://typicode.github.io/husky/#/) and [lint-staged](https://github.com/okonet/lint-staged).
167
-
168
- test
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { UploadMenuItem } from '../UploadMenu/UploadMenu';
3
+ export interface UploadPreviewProps {
4
+ className?: string;
5
+ fileName?: string;
6
+ fileInfo?: string;
7
+ imageSrc?: string;
8
+ imageTitle?: string;
9
+ menu?: UploadMenuItem[];
10
+ }
11
+ declare const UploadPreview: FC<UploadPreviewProps>;
12
+ export default UploadPreview;
@@ -0,0 +1 @@
1
+ export { default } from './UploadPreview';
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { UploadMenuItem } from '../UploadMenu/UploadMenu';
3
+ export interface UploadPreviewProps {
4
+ className?: string;
5
+ fileName?: string;
6
+ fileInfo?: string;
7
+ imageSrc?: string;
8
+ imageTitle?: string;
9
+ menu?: UploadMenuItem[];
10
+ }
11
+ declare const UploadPreview: FC<UploadPreviewProps>;
12
+ export default UploadPreview;
@@ -0,0 +1 @@
1
+ export { default } from './UploadPreview';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "2.5.92",
3
+ "version": "2.5.94",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,11 +0,0 @@
1
- import { Area } from 'react-easy-crop';
2
- export declare const createImage: (url: string) => Promise<HTMLImageElement>;
3
- export declare const getRadianAngle: (degreeValue?: number) => number;
4
- export declare const rotateSize: (width: number, height: number, rotation: number) => {
5
- width: number;
6
- height: number;
7
- };
8
- export declare const getCroppedImageURL: (imageSrc: string, pixelCrop: Area, rotation?: number, flip?: {
9
- horizontal: boolean;
10
- vertical: boolean;
11
- }) => Promise<string | null>;
@@ -1,3 +0,0 @@
1
- export declare const isValidFileType: (file?: File | null, acceptableTypePattern?: string) => boolean;
2
- export declare const isValidFileSize: (file?: File | null, fileSizeMbLimit?: number) => boolean;
3
- export declare const isValidFileDimension: (file?: File | null, minWidth?: number, minHeight?: number) => Promise<boolean>;
@@ -1,7 +0,0 @@
1
- export declare const getPagesData: ({ currentPage, pageCount, }: {
2
- currentPage: number;
3
- pageCount: number;
4
- }) => {
5
- pages: number[];
6
- latestPage: number;
7
- };
@@ -1,4 +0,0 @@
1
- import { Area } from 'react-easy-crop';
2
- export declare const useCroppedImage: (image: string, croppedArea: Area | null) => {
3
- croppedImageURL: string;
4
- };
@@ -1,11 +0,0 @@
1
- import { Area } from 'react-easy-crop';
2
- export declare const createImage: (url: string) => Promise<HTMLImageElement>;
3
- export declare const getRadianAngle: (degreeValue?: number) => number;
4
- export declare const rotateSize: (width: number, height: number, rotation: number) => {
5
- width: number;
6
- height: number;
7
- };
8
- export declare const getCroppedImageURL: (imageSrc: string, pixelCrop: Area, rotation?: number, flip?: {
9
- horizontal: boolean;
10
- vertical: boolean;
11
- }) => Promise<string | null>;
@@ -1,3 +0,0 @@
1
- export declare const isValidFileType: (file?: File | null, acceptableTypePattern?: string) => boolean;
2
- export declare const isValidFileSize: (file?: File | null, fileSizeMbLimit?: number) => boolean;
3
- export declare const isValidFileDimension: (file?: File | null, minWidth?: number, minHeight?: number) => Promise<boolean>;
@@ -1,7 +0,0 @@
1
- export declare const getPagesData: ({ currentPage, pageCount, }: {
2
- currentPage: number;
3
- pageCount: number;
4
- }) => {
5
- pages: number[];
6
- latestPage: number;
7
- };
@@ -1,4 +0,0 @@
1
- import { Area } from 'react-easy-crop';
2
- export declare const useCroppedImage: (image: string, croppedArea: Area | null) => {
3
- croppedImageURL: string;
4
- };