Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contember/react-client

Package Overview
Dependencies
Maintainers
5
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/react-client - npm Package Compare versions

Comparing version 1.3.0-alpha.19 to 1.3.0-alpha.20

2

dist/types/upload/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc