@contember/react-client
Advanced tools
Comparing version 1.3.0-alpha.19 to 1.3.0-alpha.20
@@ -7,3 +7,3 @@ export * from './useFileUpload'; | ||
export type { FileWithMetadata } from './FileWithMetadata'; | ||
export type { SingleFileUploadState } from './SingleFileUploadState'; | ||
export * from './SingleFileUploadState'; | ||
//# sourceMappingURL=index.d.ts.map |
import type { FileUploader, FileUploadError } from '@contember/client'; | ||
export type SingleFileUploadState<Result = unknown, Metadata = undefined> = { | ||
export type SingleFileUploadInitializingState = { | ||
readyState: 'initializing'; | ||
@@ -7,3 +7,4 @@ abortController: AbortController; | ||
previewUrl: string; | ||
} | { | ||
}; | ||
export type SingleFileUploadUploadingState<Metadata = undefined> = { | ||
readyState: 'uploading'; | ||
@@ -16,3 +17,4 @@ abortController: AbortController; | ||
uploader: FileUploader; | ||
} | { | ||
}; | ||
export type SingleFileUploadSuccessState<Metadata = undefined, Result = unknown> = { | ||
readyState: 'success'; | ||
@@ -24,3 +26,4 @@ file: File; | ||
uploader: FileUploader; | ||
} | { | ||
}; | ||
export type SingleFileUploadErrorState<Metadata = undefined> = { | ||
readyState: 'error'; | ||
@@ -34,2 +37,3 @@ errors: FileUploadError[] | undefined; | ||
}; | ||
export type SingleFileUploadState<Result = unknown, Metadata = undefined> = SingleFileUploadInitializingState | SingleFileUploadUploadingState<Metadata> | SingleFileUploadSuccessState<Metadata, Result> | SingleFileUploadErrorState<Metadata>; | ||
//# sourceMappingURL=SingleFileUploadState.d.ts.map |
{ | ||
"name": "@contember/react-client", | ||
"license": "Apache-2.0", | ||
"version": "1.3.0-alpha.19", | ||
"version": "1.3.0-alpha.20", | ||
"type": "module", | ||
@@ -37,5 +37,5 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@contember/client": "1.3.0-alpha.19", | ||
"@contember/react-richtext-renderer": "1.3.0-alpha.19", | ||
"@contember/utilities": "1.3.0-alpha.19" | ||
"@contember/client": "1.3.0-alpha.20", | ||
"@contember/react-richtext-renderer": "1.3.0-alpha.20", | ||
"@contember/utilities": "1.3.0-alpha.20" | ||
}, | ||
@@ -42,0 +42,0 @@ "peerDependencies": { |
@@ -15,2 +15,2 @@ export * from './useFileUpload' | ||
export type { FileWithMetadata } from './FileWithMetadata' | ||
export type { SingleFileUploadState } from './SingleFileUploadState' | ||
export * from './SingleFileUploadState' |
import type { FileUploader, FileUploadError } from '@contember/client' | ||
export type SingleFileUploadInitializingState = { | ||
readyState: 'initializing' | ||
abortController: AbortController | ||
file: File | ||
previewUrl: string | ||
} | ||
export type SingleFileUploadUploadingState<Metadata = undefined> = { | ||
readyState: 'uploading' | ||
abortController: AbortController | ||
file: File | ||
metadata: Metadata | ||
previewUrl: string | ||
progress: number | undefined | ||
uploader: FileUploader | ||
} | ||
export type SingleFileUploadSuccessState<Metadata = undefined, Result = unknown> = { | ||
readyState: 'success' | ||
file: File | ||
metadata: Metadata | ||
previewUrl: string | ||
result: Result | ||
uploader: FileUploader | ||
} | ||
export type SingleFileUploadErrorState<Metadata = undefined> = { | ||
readyState: 'error' | ||
errors: FileUploadError[] | undefined | ||
rawError: any | ||
file: File | ||
metadata: Metadata | undefined | ||
previewUrl: string | ||
uploader: FileUploader | undefined | ||
} | ||
export type SingleFileUploadState<Result = unknown, Metadata = undefined> = | ||
| { | ||
readyState: 'initializing' | ||
abortController: AbortController | ||
file: File | ||
previewUrl: string | ||
} | ||
| { | ||
readyState: 'uploading' | ||
abortController: AbortController | ||
file: File | ||
metadata: Metadata | ||
previewUrl: string | ||
progress: number | undefined | ||
uploader: FileUploader | ||
} | ||
| { | ||
readyState: 'success' | ||
file: File | ||
metadata: Metadata | ||
previewUrl: string | ||
result: Result | ||
uploader: FileUploader | ||
} | ||
| { | ||
readyState: 'error' | ||
errors: FileUploadError[] | undefined | ||
rawError: any | ||
file: File | ||
metadata: Metadata | undefined | ||
previewUrl: string | ||
uploader: FileUploader | undefined | ||
} | ||
| SingleFileUploadInitializingState | ||
| SingleFileUploadUploadingState<Metadata> | ||
| SingleFileUploadSuccessState<Metadata, Result> | ||
| SingleFileUploadErrorState<Metadata> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
377982
3911
+ Added@contember/client@1.3.0-alpha.20(transitive)
+ Added@contember/client-content@1.3.0-alpha.20(transitive)
+ Added@contember/graphql-builder@1.3.0-alpha.20(transitive)
+ Added@contember/graphql-client@1.3.0-alpha.20(transitive)
+ Added@contember/react-richtext-renderer@1.3.0-alpha.20(transitive)
+ Added@contember/utilities@1.3.0-alpha.20(transitive)
- Removed@contember/client@1.3.0-alpha.19(transitive)
- Removed@contember/client-content@1.3.0-alpha.19(transitive)
- Removed@contember/graphql-builder@1.3.0-alpha.19(transitive)
- Removed@contember/graphql-client@1.3.0-alpha.19(transitive)
- Removed@contember/react-richtext-renderer@1.3.0-alpha.19(transitive)
- Removed@contember/utilities@1.3.0-alpha.19(transitive)