gantri-components 2.149.1-beta.3 → 2.149.1

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.
@@ -75,8 +75,7 @@ export interface SelectedFileDetails {
75
75
  /** If invalid, return the error message to display. */
76
76
  export type ValidateFile = (file: SelectedFileDetails) => Promise<string | undefined | void> | string | undefined | void;
77
77
  export type HandleFileSelected = (validFile: SelectedFileDetails) => Promise<any>;
78
- export type FileUploaderCustomContent = (props: FileUploaderCustomContentPropsDef) => JSX.Element;
79
- export interface FileUploaderCustomContentPropsDef {
78
+ export type FileUploaderCustomContent = (props: {
80
79
  IconCopyUrl: () => JSX.Element;
81
80
  IconDelete: () => JSX.Element;
82
81
  IconDrag: () => JSX.Element;
@@ -88,7 +87,7 @@ export interface FileUploaderCustomContentPropsDef {
88
87
  isDisabled: boolean | undefined;
89
88
  isDraggingOver: boolean;
90
89
  processing: boolean;
91
- }
90
+ }) => JSX.Element;
92
91
  export type OnFileUploaderError = (props: {
93
92
  error: unknown;
94
93
  fallbackMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "2.149.1-beta.3",
3
+ "version": "2.149.1",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { IconRecoverFilePropsDef } from './icon-recover.types';
3
- export declare const IconRecoverFile: (props: IconRecoverFilePropsDef) => React.JSX.Element;
@@ -1,7 +0,0 @@
1
- export type HandleRecoverFileDef = (fileUrl: string) => Promise<void>;
2
- export interface IconRecoverFilePropsDef {
3
- fileUrl: string | undefined;
4
- handleRecoverFile: HandleRecoverFileDef | undefined;
5
- isDisabled: boolean | undefined;
6
- thumbnailUrl: string | undefined;
7
- }
@@ -1 +0,0 @@
1
- export * from './icon-recover';