demio-ui 5.4.3 → 5.4.4

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,11 @@
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>;
@@ -0,0 +1,3 @@
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>;
@@ -0,0 +1,7 @@
1
+ export declare const getPagesData: ({ currentPage, pageCount, }: {
2
+ currentPage: number;
3
+ pageCount: number;
4
+ }) => {
5
+ pages: number[];
6
+ latestPage: number;
7
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { UploadProps, UploadRef } from '../Upload/Upload';
3
+ declare const UploadLazy: React.ForwardRefExoticComponent<UploadProps & React.RefAttributes<UploadRef>>;
4
+ export default UploadLazy;
@@ -0,0 +1,4 @@
1
+ import { Area } from 'react-easy-crop';
2
+ export declare const useCroppedImage: (image: string, croppedArea: Area | null) => {
3
+ croppedImageURL: string;
4
+ };
@@ -0,0 +1,5 @@
1
+ export interface CSSVariable {
2
+ name: string;
3
+ value: string;
4
+ }
5
+ export declare const getCSSVariables: (prefix: string) => CSSVariable[];
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "5.4.3",
3
+ "version": "5.4.4",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git@gitlab.com:banzai_io/demio/demio-ui.git"
8
8
  },
9
9
  "license": "ISC",
10
+ "engines": {
11
+ "node": ">=24",
12
+ "npm": ">=11.0.0"
13
+ },
10
14
  "author": "Demio",
11
15
  "main": "dist/cjs/index.js",
12
16
  "module": "dist/esm/index.js",
@@ -40,7 +44,9 @@
40
44
  "format": "prettier --write \"src/**/*.{ts, tsx, css}\"",
41
45
  "lint": "eslint ./src/",
42
46
  "lint:fix": "eslint ./src/ --fix",
47
+ "lint:lockfile": "lockfile-lint --path package-lock.json --type npm --allowed-hosts npm --validate-https",
43
48
  "patch-release": "npm version patch -m 'Upgrade to version %s'",
49
+ "audit:ci": "npm audit --omit=dev --audit-level=high || true",
44
50
  "prepare": "husky install && npm run build",
45
51
  "prepublishOnly": "npm test && npm run lint-all",
46
52
  "storybook": "storybook dev -p 6006",
@@ -85,7 +91,8 @@
85
91
  "@radix-ui/react-tooltip": "^1.2.8",
86
92
  "classnames": "^2.5.1",
87
93
  "react-easy-crop": "^5.5.7",
88
- "react-select": "^5.10.2"
94
+ "react-select": "^5.10.2",
95
+ "lockfile-lint": "^4.14.1"
89
96
  },
90
97
  "devDependencies": {
91
98
  "@babel/core": "^7.29.0",
@@ -1,12 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default } from './UploadPreview';
@@ -1,12 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default } from './UploadPreview';