@uppy/status-bar
Advanced tools
Comparing version 4.0.0-beta.3 to 4.0.0-beta.4
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'; | ||
@@ -6,2 +5,3 @@ import type { State, Uppy } from '@uppy/core/lib/Uppy'; | ||
import type { I18n } from '@uppy/utils/lib/Translator'; | ||
import { h } from 'preact'; | ||
interface UploadBtnProps<M extends Meta, B extends Body> { | ||
@@ -16,3 +16,3 @@ newFiles: number; | ||
} | ||
declare function UploadBtn<M extends Meta, B extends Body>(props: UploadBtnProps<M, B>): JSX.Element; | ||
declare function UploadBtn<M extends Meta, B extends Body>(props: UploadBtnProps<M, B>): h.JSX.Element; | ||
interface RetryBtnProps<M extends Meta, B extends Body> { | ||
@@ -22,3 +22,3 @@ i18n: I18n; | ||
} | ||
declare function RetryBtn<M extends Meta, B extends Body>(props: RetryBtnProps<M, B>): JSX.Element; | ||
declare function RetryBtn<M extends Meta, B extends Body>(props: RetryBtnProps<M, B>): h.JSX.Element; | ||
interface CancelBtnProps<M extends Meta, B extends Body> { | ||
@@ -28,3 +28,3 @@ i18n: I18n; | ||
} | ||
declare function CancelBtn<M extends Meta, B extends Body>(props: CancelBtnProps<M, B>): JSX.Element; | ||
declare function CancelBtn<M extends Meta, B extends Body>(props: CancelBtnProps<M, B>): h.JSX.Element; | ||
interface PauseResumeButtonProps<M extends Meta, B extends Body> { | ||
@@ -37,3 +37,3 @@ i18n: I18n; | ||
} | ||
declare function PauseResumeButton<M extends Meta, B extends Body>(props: PauseResumeButtonProps<M, B>): JSX.Element; | ||
declare function PauseResumeButton<M extends Meta, B extends Body>(props: PauseResumeButtonProps<M, B>): h.JSX.Element; | ||
interface DoneBtnProps { | ||
@@ -43,8 +43,8 @@ i18n: I18n; | ||
} | ||
declare function DoneBtn(props: DoneBtnProps): JSX.Element; | ||
declare function LoadingSpinner(): JSX.Element; | ||
declare function DoneBtn(props: DoneBtnProps): h.JSX.Element; | ||
declare function LoadingSpinner(): h.JSX.Element; | ||
interface ProgressBarProcessingProps { | ||
progress: FileProcessingInfo; | ||
} | ||
declare function ProgressBarProcessing(props: ProgressBarProcessingProps): JSX.Element; | ||
declare function ProgressBarProcessing(props: ProgressBarProcessingProps): h.JSX.Element; | ||
interface ProgressDetailsProps { | ||
@@ -58,3 +58,3 @@ i18n: I18n; | ||
} | ||
declare function ProgressDetails(props: ProgressDetailsProps): JSX.Element; | ||
declare function ProgressDetails(props: ProgressDetailsProps): h.JSX.Element; | ||
interface ProgressBarUploadingProps { | ||
@@ -76,7 +76,7 @@ i18n: I18n; | ||
} | ||
declare function ProgressBarUploading(props: ProgressBarUploadingProps): JSX.Element | null; | ||
declare function ProgressBarUploading(props: ProgressBarUploadingProps): h.JSX.Element | null; | ||
interface ProgressBarCompleteProps { | ||
i18n: I18n; | ||
} | ||
declare function ProgressBarComplete(props: ProgressBarCompleteProps): JSX.Element; | ||
declare function ProgressBarComplete(props: ProgressBarCompleteProps): h.JSX.Element; | ||
interface ProgressBarErrorProps { | ||
@@ -88,4 +88,4 @@ i18n: I18n; | ||
} | ||
declare function ProgressBarError(props: ProgressBarErrorProps): JSX.Element; | ||
declare function ProgressBarError(props: ProgressBarErrorProps): h.JSX.Element; | ||
export { UploadBtn, RetryBtn, CancelBtn, PauseResumeButton, DoneBtn, LoadingSpinner, ProgressDetails, ProgressBarProcessing, ProgressBarError, ProgressBarUploading, ProgressBarComplete, }; | ||
//# sourceMappingURL=Components.d.ts.map |
@@ -6,3 +6,3 @@ import type { ComponentChild } from 'preact'; | ||
import { UIPlugin } from '@uppy/core'; | ||
import type { StatusBarOptions } from './StatusBarOptions.ts'; | ||
import type { StatusBarOptions } from './StatusBarOptions.js'; | ||
declare const defaultOptions: { | ||
@@ -9,0 +9,0 @@ hideUploadButton: false; |
@@ -12,3 +12,3 @@ function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
const packageJson = { | ||
"version": "4.0.0-beta.3" | ||
"version": "4.0.0-beta.4" | ||
}; | ||
@@ -15,0 +15,0 @@ import locale from "./locale.js"; |
import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin'; | ||
import type StatusBarLocale from './locale.ts'; | ||
import type StatusBarLocale from './locale.js'; | ||
export interface StatusBarOptions extends UIPluginOptions { | ||
@@ -4,0 +4,0 @@ showProgressDetails?: boolean; |
@@ -1,5 +0,5 @@ | ||
/// <reference types="react" /> | ||
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'; | ||
import type { I18n } from '@uppy/utils/lib/Translator'; | ||
import type { Uppy, State } from '@uppy/core/lib/Uppy'; | ||
import { h } from 'preact'; | ||
import statusBarStates from './StatusBarStates.ts'; | ||
@@ -37,3 +37,3 @@ export interface StatusBarUIProps<M extends Meta, B extends Body> { | ||
} | ||
declare function StatusBar<M extends Meta, B extends Body>(props: StatusBarUIProps<M, B>): JSX.Element; | ||
declare function StatusBar<M extends Meta, B extends Body>(props: StatusBarUIProps<M, B>): h.JSX.Element; | ||
declare namespace StatusBar { | ||
@@ -40,0 +40,0 @@ var defaultProps: { |
{ | ||
"name": "@uppy/status-bar", | ||
"description": "A progress bar for Uppy, with many bells and whistles.", | ||
"version": "4.0.0-beta.3", | ||
"version": "4.0.0-beta.4", | ||
"license": "MIT", | ||
@@ -30,3 +30,3 @@ "main": "lib/index.js", | ||
"@transloadit/prettier-bytes": "^0.3.0", | ||
"@uppy/utils": "^6.0.0-beta.3", | ||
"@uppy/utils": "^6.0.0-beta.4", | ||
"classnames": "^2.2.6", | ||
@@ -36,5 +36,5 @@ "preact": "^10.5.13" | ||
"peerDependencies": { | ||
"@uppy/core": "^4.0.0-beta.3" | ||
"@uppy/core": "^4.0.0-beta.4" | ||
}, | ||
"stableVersion": "3.3.1" | ||
} |
import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin' | ||
import type StatusBarLocale from './locale.ts' | ||
import type StatusBarLocale from './locale.js' | ||
@@ -4,0 +4,0 @@ export interface StatusBarOptions extends UIPluginOptions { |
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
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
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
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
194292
2903
Updated@uppy/utils@^6.0.0-beta.4