@destyler/file-upload 0.3.0 → 0.3.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.
- package/dist/index.d.mts +6 -6
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { FileError, FileMimeType } from "@destyler/file";
|
|
|
2
2
|
import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
|
|
3
3
|
import { CommonProperties, LocaleProperties, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
|
|
4
4
|
//#region src/anatomy.d.ts
|
|
5
|
-
export declare const anatomy:
|
|
5
|
+
export declare const anatomy: import("@destyler/anatomy").AnatomyInstance<"root" | "dropzone" | "item" | "itemDeleteTrigger" | "itemGroup" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "label" | "trigger" | "clearTrigger">;
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/types.d.ts
|
|
8
8
|
interface FileRejection {
|
|
@@ -238,12 +238,12 @@ interface MachineApi<T extends PropTypes> {
|
|
|
238
238
|
export declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): MachineApi<T>;
|
|
239
239
|
//#endregion
|
|
240
240
|
//#region src/machine.d.ts
|
|
241
|
-
export declare function machine(userContext: UserDefinedContext):
|
|
241
|
+
export declare function machine(userContext: UserDefinedContext): import("@destyler/xstate").Machine<MachineContext, MachineState, import("@destyler/xstate").AnyEventObject>;
|
|
242
242
|
//#endregion
|
|
243
243
|
//#region src/props.d.ts
|
|
244
|
-
export declare const props:
|
|
245
|
-
export declare const splitProps:
|
|
246
|
-
export declare const itemProps:
|
|
247
|
-
export declare const splitItemProps:
|
|
244
|
+
export declare const props: ("name" | "ids" | "translations" | "accept" | "disabled" | "required" | "allowDrop" | "maxFileSize" | "minFileSize" | "maxFiles" | "preventDocumentDrop" | "validate" | "onFileChange" | "onFileAccept" | "onFileReject" | "capture" | "directory" | "invalid" | "locale" | "dir" | "id" | "getRootNode")[];
|
|
245
|
+
export declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "name" | "ids" | "translations" | "accept" | "disabled" | "required" | "allowDrop" | "maxFileSize" | "minFileSize" | "maxFiles" | "preventDocumentDrop" | "validate" | "onFileChange" | "onFileAccept" | "onFileReject" | "capture" | "directory" | "invalid" | "locale" | "dir" | "id" | "getRootNode">];
|
|
246
|
+
export declare const itemProps: "file"[];
|
|
247
|
+
export declare const splitItemProps: <Props extends ItemProps>(props: Props) => [ItemProps, Omit<Props, "file">];
|
|
248
248
|
//#endregion
|
|
249
249
|
export type { MachineApi as Api, UserDefinedContext as Context, DropzoneProps, ElementIds, FileAcceptDetails, FileChangeDetails, FileError, FileMimeType, FileRejectDetails, FileRejection, FileValidateDetails, IntlTranslations, ItemPreviewImageProps, ItemProps, Service };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/file-upload",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"description": "a component that is used to upload multiple files.",
|
|
6
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"node": ">=22.22.3"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@destyler/anatomy": "0.3.
|
|
29
|
-
"@destyler/dom": "0.3.
|
|
30
|
-
"@destyler/file": "0.3.
|
|
31
|
-
"@destyler/i18n": "0.3.
|
|
32
|
-
"@destyler/types": "0.3.
|
|
33
|
-
"@destyler/utils": "0.3.
|
|
34
|
-
"@destyler/xstate": "0.3.
|
|
28
|
+
"@destyler/anatomy": "0.3.1",
|
|
29
|
+
"@destyler/dom": "0.3.1",
|
|
30
|
+
"@destyler/file": "0.3.1",
|
|
31
|
+
"@destyler/i18n": "0.3.1",
|
|
32
|
+
"@destyler/types": "0.3.1",
|
|
33
|
+
"@destyler/utils": "0.3.1",
|
|
34
|
+
"@destyler/xstate": "0.3.1"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|