mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
@uppy/utils: update export maps (#5900)
- cleanup `@uppy/utils ` removed unused / redundant modules . - migrated modules and tests from `.js` to `.ts` - removed all the nested export paths - updated `@uppy/utils` import paths for all packages - `@uppy/angular` is still failing while running`yarn build` , I'm looking into it. --------- Co-authored-by: Merlijn Vos <merlijn@soverin.net>
This commit is contained in:
parent
e8692434d6
commit
d301c01d6a
156 changed files with 471 additions and 451 deletions
70
.changeset/legal-yaks-decide.md
Normal file
70
.changeset/legal-yaks-decide.md
Normal file
|
|
@ -0,0 +1,70 @@
|
||||||
|
---
|
||||||
|
"@uppy/utils": major
|
||||||
|
"@uppy/angular": patch
|
||||||
|
"@uppy/google-photos-picker": patch
|
||||||
|
"example-companion-custom-provider": patch
|
||||||
|
"@uppy/google-drive-picker": patch
|
||||||
|
"@uppy/thumbnail-generator": patch
|
||||||
|
"@uppy/companion-client": patch
|
||||||
|
"@uppy/golden-retriever": patch
|
||||||
|
"@uppy/provider-views": patch
|
||||||
|
"@uppy/remote-sources": patch
|
||||||
|
"@uppy/screen-capture": patch
|
||||||
|
"@uppy/store-default": patch
|
||||||
|
"@uppy/google-drive": patch
|
||||||
|
"@uppy/image-editor": patch
|
||||||
|
"@uppy/react-native": patch
|
||||||
|
"@uppy/drop-target": patch
|
||||||
|
"@uppy/transloadit": patch
|
||||||
|
"@uppy/components": patch
|
||||||
|
"@uppy/compressor": patch
|
||||||
|
"@uppy/xhr-upload": patch
|
||||||
|
"@uppy/companion": patch
|
||||||
|
"@uppy/dashboard": patch
|
||||||
|
"@uppy/instagram": patch
|
||||||
|
"@uppy/facebook": patch
|
||||||
|
"@uppy/onedrive": patch
|
||||||
|
"@uppy/unsplash": patch
|
||||||
|
"angular": patch
|
||||||
|
"@uppy/dropbox": patch
|
||||||
|
"@uppy/locales": patch
|
||||||
|
"@uppy/aws-s3": patch
|
||||||
|
"@uppy/svelte": patch
|
||||||
|
"@uppy/webcam": patch
|
||||||
|
"@uppy/webdav": patch
|
||||||
|
"example-transloadit": patch
|
||||||
|
"@uppy/audio": patch
|
||||||
|
"@uppy/react": patch
|
||||||
|
"example-xhr-bundle": patch
|
||||||
|
"@uppy/core": patch
|
||||||
|
"@uppy/form": patch
|
||||||
|
"@uppy/zoom": patch
|
||||||
|
"example-sveltekit": patch
|
||||||
|
"@uppy/box": patch
|
||||||
|
"@uppy/tus": patch
|
||||||
|
"@uppy/url": patch
|
||||||
|
"@uppy/vue": patch
|
||||||
|
"example-angular": patch
|
||||||
|
"uppy": patch
|
||||||
|
"example-vue": patch
|
||||||
|
"@uppy-dev/dev": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Updated export maps for @uppy/utils: removed nested subpath exports; all utilities are now exported from the root index.js.
|
||||||
|
|
||||||
|
|
||||||
|
**Before :**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
|
||||||
|
import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
**After :**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
|
||||||
|
import { getFileTypeExtension } from '@uppy/utils'
|
||||||
|
|
||||||
|
```
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { ChangeDetectionStrategy, Component } from "@angular/core";
|
import { ChangeDetectionStrategy, Component } from "@angular/core";
|
||||||
import { Uppy } from "@uppy/core";
|
import { Uppy } from "@uppy/core";
|
||||||
import type * as Dashboard from "@uppy/dashboard";
|
import type * as Dashboard from "@uppy/dashboard";
|
||||||
import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
|
import type { Body, Meta } from "@uppy/utils";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "uppy-dashboard-demo",
|
selector: "uppy-dashboard-demo",
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {
|
||||||
import { Uppy } from "@uppy/core";
|
import { Uppy } from "@uppy/core";
|
||||||
import type { DashboardOptions } from "@uppy/dashboard";
|
import type { DashboardOptions } from "@uppy/dashboard";
|
||||||
import Dashboard from "@uppy/dashboard";
|
import Dashboard from "@uppy/dashboard";
|
||||||
import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
|
import type { Body, Meta } from "@uppy/utils";
|
||||||
import { UppyAngularWrapper } from "../../utils/wrapper";
|
import { UppyAngularWrapper } from "../../utils/wrapper";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { ChangeDetectionStrategy, Component } from "@angular/core";
|
import { ChangeDetectionStrategy, Component } from "@angular/core";
|
||||||
import { Uppy } from "@uppy/core";
|
import { Uppy } from "@uppy/core";
|
||||||
import type * as Dashboard from "@uppy/dashboard";
|
import type * as Dashboard from "@uppy/dashboard";
|
||||||
import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
|
import type { Body, Meta } from "@uppy/utils";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "uppy-dashboard-demo",
|
selector: "uppy-dashboard-demo",
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {
|
||||||
import { Uppy } from "@uppy/core";
|
import { Uppy } from "@uppy/core";
|
||||||
import type { DashboardOptions } from "@uppy/dashboard";
|
import type { DashboardOptions } from "@uppy/dashboard";
|
||||||
import Dashboard from "@uppy/dashboard";
|
import Dashboard from "@uppy/dashboard";
|
||||||
import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
|
import type { Body, Meta } from "@uppy/utils";
|
||||||
import { UppyAngularWrapper } from "../../utils/wrapper";
|
import { UppyAngularWrapper } from "../../utils/wrapper";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import type { ElementRef, SimpleChanges } from "@angular/core";
|
import type { ElementRef, SimpleChanges } from "@angular/core";
|
||||||
import type { UIPlugin, UIPluginOptions, Uppy } from "@uppy/core";
|
import type { UIPlugin, UIPluginOptions, Uppy } from "@uppy/core";
|
||||||
import type { DashboardOptions } from "@uppy/dashboard";
|
import type { DashboardOptions } from "@uppy/dashboard";
|
||||||
import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
|
import type { Body, Meta } from "@uppy/utils";
|
||||||
|
|
||||||
export abstract class UppyAngularWrapper<
|
export abstract class UppyAngularWrapper<
|
||||||
M extends Meta,
|
M extends Meta,
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,8 @@ import type {
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
|
|
||||||
import { UIPlugin } from '@uppy/core'
|
import { UIPlugin } from '@uppy/core'
|
||||||
import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
|
import type { LocaleStrings } from '@uppy/utils'
|
||||||
|
import { getFileTypeExtension } from '@uppy/utils'
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
import locale from './locale.js'
|
import locale from './locale.js'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
|
|
||||||
interface DiscardButtonProps {
|
interface DiscardButtonProps {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
|
|
||||||
interface PermissionsScreenProps {
|
interface PermissionsScreenProps {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
|
|
||||||
interface RecordButtonProps {
|
interface RecordButtonProps {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
import { useEffect, useRef } from 'preact/hooks'
|
import { useEffect, useRef } from 'preact/hooks'
|
||||||
import AudioSourceSelect, {
|
import AudioSourceSelect, {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
|
|
||||||
interface SubmitButtonProps {
|
interface SubmitButtonProps {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
import type { Body, Meta, UppyFile } from '@uppy/core'
|
import type { Body, Meta, UppyFile } from '@uppy/core'
|
||||||
import type {
|
import type { RateLimitedQueue, WrapPromiseFunctionType } from '@uppy/utils'
|
||||||
RateLimitedQueue,
|
|
||||||
WrapPromiseFunctionType,
|
|
||||||
} from '@uppy/utils/lib/RateLimitedQueue'
|
|
||||||
import type AwsS3Multipart from './index.js'
|
import type AwsS3Multipart from './index.js'
|
||||||
import type {
|
import type {
|
||||||
AwsS3MultipartOptions,
|
AwsS3MultipartOptions,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import type { Uppy } from '@uppy/core'
|
import type { Uppy } from '@uppy/core'
|
||||||
import { AbortController } from '@uppy/utils/lib/AbortController'
|
import type { Body, Meta, UppyFile } from '@uppy/utils'
|
||||||
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
|
import { AbortController } from '@uppy/utils'
|
||||||
import type { HTTPCommunicationQueue } from './HTTPCommunicationQueue.js'
|
import type { HTTPCommunicationQueue } from './HTTPCommunicationQueue.js'
|
||||||
|
|
||||||
const MB = 1024 * 1024
|
const MB = 1024 * 1024
|
||||||
|
|
|
||||||
|
|
@ -6,15 +6,14 @@ import {
|
||||||
type PluginOpts,
|
type PluginOpts,
|
||||||
type Uppy,
|
type Uppy,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
import { createAbortError } from '@uppy/utils/lib/AbortController'
|
import type { Body, Meta, RequestOptions, UppyFile } from '@uppy/utils'
|
||||||
import type { RequestOptions } from '@uppy/utils/lib/CompanionClientProvider'
|
|
||||||
import {
|
import {
|
||||||
|
createAbortError,
|
||||||
filterFilesToEmitUploadStarted,
|
filterFilesToEmitUploadStarted,
|
||||||
filterNonFailedFiles,
|
filterNonFailedFiles,
|
||||||
} from '@uppy/utils/lib/fileFilters'
|
getAllowedMetaFields,
|
||||||
import getAllowedMetaFields from '@uppy/utils/lib/getAllowedMetaFields'
|
RateLimitedQueue,
|
||||||
import { RateLimitedQueue } from '@uppy/utils/lib/RateLimitedQueue'
|
} from '@uppy/utils'
|
||||||
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
|
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
import createSignedURL from './createSignedURL.js'
|
import createSignedURL from './createSignedURL.js'
|
||||||
import { HTTPCommunicationQueue } from './HTTPCommunicationQueue.js'
|
import { HTTPCommunicationQueue } from './HTTPCommunicationQueue.js'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { createAbortError } from '@uppy/utils/lib/AbortController'
|
import type { Body } from '@uppy/utils'
|
||||||
import type { Body } from '@uppy/utils/lib/UppyFile'
|
import { createAbortError } from '@uppy/utils'
|
||||||
|
|
||||||
import type { AwsS3Part } from './index.js'
|
import type { AwsS3Part } from './index.js'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import type {
|
||||||
import { UIPlugin, type Uppy } from '@uppy/core'
|
import { UIPlugin, type Uppy } from '@uppy/core'
|
||||||
import { ProviderViews } from '@uppy/provider-views'
|
import { ProviderViews } from '@uppy/provider-views'
|
||||||
|
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { LocaleStrings } from '@uppy/utils'
|
||||||
// biome-ignore lint/style/useImportType: h is not a type
|
// biome-ignore lint/style/useImportType: h is not a type
|
||||||
import { type ComponentChild, h } from 'preact'
|
import { type ComponentChild, h } from 'preact'
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,7 @@ import type {
|
||||||
UnknownProviderPlugin,
|
UnknownProviderPlugin,
|
||||||
Uppy,
|
Uppy,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
import type {
|
import type { CompanionClientProvider, RequestOptions } from '@uppy/utils'
|
||||||
CompanionClientProvider,
|
|
||||||
RequestOptions,
|
|
||||||
} from '@uppy/utils/lib/CompanionClientProvider'
|
|
||||||
import { isOriginAllowed } from './getAllowedHosts.js'
|
import { isOriginAllowed } from './getAllowedHosts.js'
|
||||||
import type { CompanionPluginOptions } from './index.js'
|
import type { CompanionPluginOptions } from './index.js'
|
||||||
import RequestClient, { authErrorStatusCode } from './RequestClient.js'
|
import RequestClient, { authErrorStatusCode } from './RequestClient.js'
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
import type Uppy from '@uppy/core'
|
import type Uppy from '@uppy/core'
|
||||||
import type { RequestOptions } from '@uppy/utils/lib/CompanionClientProvider'
|
import type { Body, Meta, RequestOptions, UppyFile } from '@uppy/utils'
|
||||||
import ErrorWithCause from '@uppy/utils/lib/ErrorWithCause'
|
import {
|
||||||
import fetchWithNetworkError from '@uppy/utils/lib/fetchWithNetworkError'
|
ErrorWithCause,
|
||||||
import getSocketHost from '@uppy/utils/lib/getSocketHost'
|
fetchWithNetworkError,
|
||||||
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
|
getSocketHost,
|
||||||
import UserFacingApiError from '@uppy/utils/lib/UserFacingApiError'
|
UserFacingApiError,
|
||||||
|
} from '@uppy/utils'
|
||||||
import pRetry, { AbortError } from 'p-retry'
|
import pRetry, { AbortError } from 'p-retry'
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
import AuthError from './AuthError.js'
|
import AuthError from './AuthError.js'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import type { Body, Meta, Uppy } from '@uppy/core'
|
import type { Body, Meta, Uppy } from '@uppy/core'
|
||||||
import type { CompanionClientSearchProvider } from '@uppy/utils/lib/CompanionClientProvider'
|
import type { CompanionClientSearchProvider } from '@uppy/utils'
|
||||||
import RequestClient, { type Opts } from './RequestClient.js'
|
import RequestClient, { type Opts } from './RequestClient.js'
|
||||||
|
|
||||||
const getName = (id: string): string => {
|
const getName = (id: string): string => {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import fs from 'node:fs'
|
import fs from 'node:fs'
|
||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import Core from '@uppy/core'
|
import Core from '@uppy/core'
|
||||||
import getFileNameAndExtension from '@uppy/utils/lib/getFileNameAndExtension'
|
import { getFileNameAndExtension } from '@uppy/utils'
|
||||||
import { describe, expect, it } from 'vitest'
|
import { describe, expect, it } from 'vitest'
|
||||||
import CompressorPlugin from './index.js'
|
import CompressorPlugin from './index.js'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
import prettierBytes from '@transloadit/prettier-bytes'
|
import prettierBytes from '@transloadit/prettier-bytes'
|
||||||
import type { DefinePluginOpts, PluginOpts } from '@uppy/core'
|
import type { DefinePluginOpts, PluginOpts } from '@uppy/core'
|
||||||
import { BasePlugin, type Uppy } from '@uppy/core'
|
import { BasePlugin, type Uppy } from '@uppy/core'
|
||||||
import getFileNameAndExtension from '@uppy/utils/lib/getFileNameAndExtension'
|
import type { Body, Meta, UppyFile } from '@uppy/utils'
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { RateLimitedQueue } from '@uppy/utils/lib/RateLimitedQueue'
|
import { getFileNameAndExtension, RateLimitedQueue } from '@uppy/utils'
|
||||||
|
|
||||||
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
|
|
||||||
import CompressorJS from 'compressorjs'
|
import CompressorJS from 'compressorjs'
|
||||||
|
|
||||||
import locale from './locale.js'
|
import locale from './locale.js'
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,8 @@
|
||||||
* See `Plugin` for the extended version with Preact rendering for interfaces.
|
* See `Plugin` for the extended version with Preact rendering for interfaces.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { I18n, OptionalPluralizeLocale } from '@uppy/utils/lib/Translator'
|
import type { Body, I18n, Meta, OptionalPluralizeLocale } from '@uppy/utils'
|
||||||
import Translator from '@uppy/utils/lib/Translator'
|
import { Translator } from '@uppy/utils'
|
||||||
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
|
|
||||||
import type { State, UnknownPlugin, Uppy } from './Uppy.js'
|
import type { State, UnknownPlugin, Uppy } from './Uppy.js'
|
||||||
|
|
||||||
export type PluginOpts = {
|
export type PluginOpts = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
|
import type { Body, Meta, UppyFile } from '@uppy/utils'
|
||||||
import type { _UppyEventMap, Uppy, UppyEventMap } from './Uppy.js'
|
import type { _UppyEventMap, Uppy, UppyEventMap } from './Uppy.js'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import prettierBytes from '@transloadit/prettier-bytes'
|
import prettierBytes from '@transloadit/prettier-bytes'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { Body, I18n, Meta, UppyFile } from '@uppy/utils'
|
||||||
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
|
|
||||||
// @ts-ignore untyped
|
// @ts-ignore untyped
|
||||||
import match from 'mime-match'
|
import match from 'mime-match'
|
||||||
import type { NonNullableUppyOptions, State } from './Uppy.js'
|
import type { NonNullableUppyOptions, State } from './Uppy.js'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import findDOMElement from '@uppy/utils/lib/findDOMElement'
|
import type { Body, Meta } from '@uppy/utils'
|
||||||
import getTextDirection from '@uppy/utils/lib/getTextDirection'
|
import { findDOMElement, getTextDirection } from '@uppy/utils'
|
||||||
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
|
|
||||||
import { render } from 'preact/compat'
|
import { render } from 'preact/compat'
|
||||||
import type { PluginOpts } from './BasePlugin.js'
|
import type { PluginOpts } from './BasePlugin.js'
|
||||||
import BasePlugin from './BasePlugin.js'
|
import BasePlugin from './BasePlugin.js'
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import fs from 'node:fs'
|
||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import prettierBytes from '@transloadit/prettier-bytes'
|
import prettierBytes from '@transloadit/prettier-bytes'
|
||||||
import type { Body, Meta } from '@uppy/core'
|
import type { Body, Meta } from '@uppy/core'
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||||
import BasePlugin, {
|
import BasePlugin, {
|
||||||
type DefinePluginOpts,
|
type DefinePluginOpts,
|
||||||
|
|
|
||||||
|
|
@ -2,29 +2,25 @@
|
||||||
|
|
||||||
import DefaultStore, { type Store } from '@uppy/store-default'
|
import DefaultStore, { type Store } from '@uppy/store-default'
|
||||||
import type {
|
import type {
|
||||||
|
Body,
|
||||||
CompanionClientProvider,
|
CompanionClientProvider,
|
||||||
CompanionClientSearchProvider,
|
CompanionClientSearchProvider,
|
||||||
} from '@uppy/utils/lib/CompanionClientProvider'
|
CompanionFile,
|
||||||
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
|
|
||||||
import type {
|
|
||||||
FileProgressNotStarted,
|
FileProgressNotStarted,
|
||||||
FileProgressStarted,
|
FileProgressStarted,
|
||||||
} from '@uppy/utils/lib/FileProgress'
|
|
||||||
import { getSafeFileId } from '@uppy/utils/lib/generateFileID'
|
|
||||||
import getFileNameAndExtension from '@uppy/utils/lib/getFileNameAndExtension'
|
|
||||||
import getFileType from '@uppy/utils/lib/getFileType'
|
|
||||||
import type {
|
|
||||||
I18n,
|
I18n,
|
||||||
Locale,
|
Locale,
|
||||||
OptionalPluralizeLocale,
|
|
||||||
} from '@uppy/utils/lib/Translator'
|
|
||||||
import Translator from '@uppy/utils/lib/Translator'
|
|
||||||
import type {
|
|
||||||
Body,
|
|
||||||
Meta,
|
Meta,
|
||||||
MinimalRequiredUppyFile,
|
MinimalRequiredUppyFile,
|
||||||
|
OptionalPluralizeLocale,
|
||||||
UppyFile,
|
UppyFile,
|
||||||
} from '@uppy/utils/lib/UppyFile'
|
} from '@uppy/utils'
|
||||||
|
import {
|
||||||
|
getFileNameAndExtension,
|
||||||
|
getFileType,
|
||||||
|
getSafeFileId,
|
||||||
|
Translator,
|
||||||
|
} from '@uppy/utils'
|
||||||
import throttle from 'lodash/throttle.js'
|
import throttle from 'lodash/throttle.js'
|
||||||
// @ts-ignore untyped
|
// @ts-ignore untyped
|
||||||
import ee from 'namespace-emitter'
|
import ee from 'namespace-emitter'
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ export type {
|
||||||
Meta,
|
Meta,
|
||||||
MinimalRequiredUppyFile,
|
MinimalRequiredUppyFile,
|
||||||
UppyFile,
|
UppyFile,
|
||||||
} from '@uppy/utils/lib/UppyFile'
|
} from '@uppy/utils'
|
||||||
export type { DefinePluginOpts, PluginOpts } from './BasePlugin.js'
|
export type { DefinePluginOpts, PluginOpts } from './BasePlugin.js'
|
||||||
export { default as BasePlugin } from './BasePlugin.js'
|
export { default as BasePlugin } from './BasePlugin.js'
|
||||||
export { default as EventManager } from './EventManager.js'
|
export { default as EventManager } from './EventManager.js'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import getTimeStamp from '@uppy/utils/lib/getTimeStamp'
|
import { getTimeStamp } from '@uppy/utils'
|
||||||
|
|
||||||
// Swallow all logs, except errors.
|
// Swallow all logs, except errors.
|
||||||
// default if logger is not set or debug: false
|
// default if logger is not set or debug: false
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { Body, InternalMetadata, LocaleStrings, Meta } from '@uppy/utils'
|
||||||
|
|
||||||
import type { Body, InternalMetadata, Meta } from '@uppy/utils/lib/UppyFile'
|
|
||||||
import { expectTypeOf, test } from 'vitest'
|
import { expectTypeOf, test } from 'vitest'
|
||||||
import UIPlugin, { type UIPluginOptions } from './UIPlugin.js'
|
import UIPlugin, { type UIPluginOptions } from './UIPlugin.js'
|
||||||
import Uppy, { type UnknownPlugin } from './Uppy.js'
|
import Uppy, { type UnknownPlugin } from './Uppy.js'
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,8 @@ import type {
|
||||||
import { UIPlugin } from '@uppy/core'
|
import { UIPlugin } from '@uppy/core'
|
||||||
import { defaultPickerIcon } from '@uppy/provider-views'
|
import { defaultPickerIcon } from '@uppy/provider-views'
|
||||||
import ThumbnailGenerator from '@uppy/thumbnail-generator'
|
import ThumbnailGenerator from '@uppy/thumbnail-generator'
|
||||||
import findAllDOMElements from '@uppy/utils/lib/findAllDOMElements'
|
import type { LocaleStrings } from '@uppy/utils'
|
||||||
import getDroppedFiles from '@uppy/utils/lib/getDroppedFiles'
|
import { findAllDOMElements, getDroppedFiles, toArray } from '@uppy/utils'
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
|
||||||
import toArray from '@uppy/utils/lib/toArray'
|
|
||||||
import { nanoid } from 'nanoid/non-secure'
|
import { nanoid } from 'nanoid/non-secure'
|
||||||
import type { ComponentChild, VNode } from 'preact'
|
import type { ComponentChild, VNode } from 'preact'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import type Translator from '@uppy/utils/lib/Translator'
|
import type { I18n, Translator } from '@uppy/utils'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
|
||||||
import { Component, type ComponentChild, Fragment, h } from 'preact'
|
import { Component, type ComponentChild, Fragment, h } from 'preact'
|
||||||
import type { TargetedEvent } from 'preact/compat'
|
import type { TargetedEvent } from 'preact/compat'
|
||||||
import type { DashboardState, TargetWithRender } from '../Dashboard.js'
|
import type { DashboardState, TargetWithRender } from '../Dashboard.js'
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,8 @@ import type {
|
||||||
Uppy,
|
Uppy,
|
||||||
UppyFile,
|
UppyFile,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
import isDragDropSupported from '@uppy/utils/lib/isDragDropSupported'
|
import type { I18n, Translator } from '@uppy/utils'
|
||||||
import type Translator from '@uppy/utils/lib/Translator'
|
import { isDragDropSupported } from '@uppy/utils'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
|
||||||
import classNames from 'classnames'
|
import classNames from 'classnames'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
import type { TargetedEvent } from 'preact/compat'
|
import type { TargetedEvent } from 'preact/compat'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import type Uppy from '@uppy/core'
|
import type Uppy from '@uppy/core'
|
||||||
import type { Body, Meta, UppyFile } from '@uppy/core'
|
import type { Body, Meta, UppyFile } from '@uppy/core'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
import type { DashboardState } from '../../../Dashboard.js'
|
import type { DashboardState } from '../../../Dashboard.js'
|
||||||
import copyToClipboard from '../../../utils/copyToClipboard.js'
|
import copyToClipboard from '../../../utils/copyToClipboard.js'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import prettierBytes from '@transloadit/prettier-bytes'
|
import prettierBytes from '@transloadit/prettier-bytes'
|
||||||
import type { UppyFile } from '@uppy/core'
|
import type { UppyFile } from '@uppy/core'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import truncateString from '@uppy/utils/lib/truncateString'
|
import { truncateString } from '@uppy/utils'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
import type { DashboardState } from '../../../Dashboard.js'
|
import type { DashboardState } from '../../../Dashboard.js'
|
||||||
import MetaErrorMessage from '../MetaErrorMessage.js'
|
import MetaErrorMessage from '../MetaErrorMessage.js'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import type { Body, Meta, State, Uppy, UppyFile } from '@uppy/core'
|
import type { Body, Meta, State, Uppy, UppyFile } from '@uppy/core'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import { type ComponentChild, h } from 'preact'
|
import { type ComponentChild, h } from 'preact'
|
||||||
|
|
||||||
interface Props<M extends Meta, B extends Body> {
|
interface Props<M extends Meta, B extends Body> {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import type Uppy from '@uppy/core'
|
import type Uppy from '@uppy/core'
|
||||||
import type { Body, Meta, State, UppyFile } from '@uppy/core'
|
import type { Body, Meta, State, UppyFile } from '@uppy/core'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import classNames from 'classnames'
|
import classNames from 'classnames'
|
||||||
// biome-ignore lint/style/useImportType: h is not a type
|
// biome-ignore lint/style/useImportType: h is not a type
|
||||||
import { Component, type ComponentChild, h } from 'preact'
|
import { Component, type ComponentChild, h } from 'preact'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import type { Body, Meta, State, Uppy, UppyFile } from '@uppy/core'
|
import type { Body, Meta, State, Uppy, UppyFile } from '@uppy/core'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
// @ts-ignore untyped
|
// @ts-ignore untyped
|
||||||
import VirtualList from '@uppy/utils/lib/VirtualList'
|
import { VirtualList } from '@uppy/utils'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
import { useMemo } from 'preact/hooks'
|
import { useMemo } from 'preact/hooks'
|
||||||
import type { DashboardState } from '../Dashboard.js'
|
import type { DashboardState } from '../Dashboard.js'
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
import prettierBytes from '@transloadit/prettier-bytes'
|
import prettierBytes from '@transloadit/prettier-bytes'
|
||||||
import type { Body, Meta, State, Uppy } from '@uppy/core'
|
import type { Body, Meta, State, Uppy } from '@uppy/core'
|
||||||
import type { FileProcessingInfo } from '@uppy/utils/lib/FileProgress'
|
import type { FileProcessingInfo, I18n } from '@uppy/utils'
|
||||||
import prettyETA from '@uppy/utils/lib/prettyETA'
|
import { prettyETA } from '@uppy/utils'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
|
||||||
import classNames from 'classnames'
|
import classNames from 'classnames'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import type { Body, Meta, Uppy, UppyFile } from '@uppy/core'
|
import type { Body, Meta, Uppy, UppyFile } from '@uppy/core'
|
||||||
import emaFilter from '@uppy/utils/lib/emaFilter'
|
import type { I18n } from '@uppy/utils'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import { emaFilter } from '@uppy/utils'
|
||||||
import type { ComponentChild } from 'preact'
|
import type { ComponentChild } from 'preact'
|
||||||
import { Component, h } from 'preact'
|
import { Component, h } from 'preact'
|
||||||
import type { StatusBarOptions } from './StatusBarOptions.js'
|
import type { StatusBarOptions } from './StatusBarOptions.js'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import type { Body, Meta, State, Uppy, UppyFile } from '@uppy/core'
|
import type { Body, Meta, State, Uppy, UppyFile } from '@uppy/core'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import classNames from 'classnames'
|
import classNames from 'classnames'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import type { FileProcessingInfo } from '@uppy/utils/lib/FileProgress'
|
import type { FileProcessingInfo, UppyFile } from '@uppy/utils'
|
||||||
import type { UppyFile } from '@uppy/utils/lib/UppyFile'
|
|
||||||
|
|
||||||
export default function calculateProcessingProgress(
|
export default function calculateProcessingProgress(
|
||||||
files: Record<string, UppyFile<any, any>>,
|
files: Record<string, UppyFile<any, any>>,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// @ts-ignore untyped
|
// @ts-ignore untyped
|
||||||
import FOCUSABLE_ELEMENTS from '@uppy/utils/lib/FOCUSABLE_ELEMENTS'
|
import { FOCUSABLE_ELEMENTS } from '@uppy/utils'
|
||||||
import debounce from 'lodash/debounce.js'
|
import debounce from 'lodash/debounce.js'
|
||||||
import getActiveOverlayEl from './getActiveOverlayEl.js'
|
import getActiveOverlayEl from './getActiveOverlayEl.js'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
// @ts-ignore untyped
|
// @ts-ignore untyped
|
||||||
import FOCUSABLE_ELEMENTS from '@uppy/utils/lib/FOCUSABLE_ELEMENTS'
|
import { FOCUSABLE_ELEMENTS, toArray } from '@uppy/utils'
|
||||||
import toArray from '@uppy/utils/lib/toArray'
|
|
||||||
import getActiveOverlayEl from './getActiveOverlayEl.js'
|
import getActiveOverlayEl from './getActiveOverlayEl.js'
|
||||||
|
|
||||||
type $TSFixMe = any
|
type $TSFixMe = any
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import type { Body, DefinePluginOpts, Meta, PluginOpts, Uppy } from '@uppy/core'
|
import type { Body, DefinePluginOpts, Meta, PluginOpts, Uppy } from '@uppy/core'
|
||||||
import { BasePlugin } from '@uppy/core'
|
import { BasePlugin } from '@uppy/core'
|
||||||
import getDroppedFiles from '@uppy/utils/lib/getDroppedFiles'
|
import { getDroppedFiles, toArray } from '@uppy/utils'
|
||||||
import toArray from '@uppy/utils/lib/toArray'
|
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
|
|
||||||
export interface DropTargetOptions extends PluginOpts {
|
export interface DropTargetOptions extends PluginOpts {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import type {
|
||||||
import { UIPlugin, type Uppy } from '@uppy/core'
|
import { UIPlugin, type Uppy } from '@uppy/core'
|
||||||
import { ProviderViews } from '@uppy/provider-views'
|
import { ProviderViews } from '@uppy/provider-views'
|
||||||
|
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { LocaleStrings } from '@uppy/utils'
|
||||||
// biome-ignore lint/style/useImportType: h is not a type
|
// biome-ignore lint/style/useImportType: h is not a type
|
||||||
import { type ComponentChild, h } from 'preact'
|
import { type ComponentChild, h } from 'preact'
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import type {
|
||||||
import { UIPlugin, type Uppy } from '@uppy/core'
|
import { UIPlugin, type Uppy } from '@uppy/core'
|
||||||
import { ProviderViews } from '@uppy/provider-views'
|
import { ProviderViews } from '@uppy/provider-views'
|
||||||
|
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { LocaleStrings } from '@uppy/utils'
|
||||||
// biome-ignore lint/style/useImportType: h is not a type
|
// biome-ignore lint/style/useImportType: h is not a type
|
||||||
import { type ComponentChild, h } from 'preact'
|
import { type ComponentChild, h } from 'preact'
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,7 @@ import type {
|
||||||
UppyEventMap,
|
UppyEventMap,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
import { BasePlugin } from '@uppy/core'
|
import { BasePlugin } from '@uppy/core'
|
||||||
import findDOMElement from '@uppy/utils/lib/findDOMElement'
|
import { findDOMElement, toArray } from '@uppy/utils'
|
||||||
import toArray from '@uppy/utils/lib/toArray'
|
|
||||||
|
|
||||||
// @ts-ignore untyped
|
// @ts-ignore untyped
|
||||||
import getFormData from 'get-form-data'
|
import getFormData from 'get-form-data'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { UppyFile } from '@uppy/utils/lib/UppyFile'
|
import type { UppyFile } from '@uppy/utils'
|
||||||
|
|
||||||
const indexedDB =
|
const indexedDB =
|
||||||
typeof window !== 'undefined' &&
|
typeof window !== 'undefined' &&
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
|
import type { Body, Meta, UppyFile } from '@uppy/utils'
|
||||||
|
|
||||||
const isSupported =
|
const isSupported =
|
||||||
typeof navigator !== 'undefined' && 'serviceWorker' in navigator
|
typeof navigator !== 'undefined' && 'serviceWorker' in navigator
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import {
|
||||||
GooglePickerView,
|
GooglePickerView,
|
||||||
type PickedItem,
|
type PickedItem,
|
||||||
} from '@uppy/provider-views'
|
} from '@uppy/provider-views'
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { LocaleStrings } from '@uppy/utils'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
|
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import type {
|
||||||
import { UIPlugin, type Uppy } from '@uppy/core'
|
import { UIPlugin, type Uppy } from '@uppy/core'
|
||||||
import type { ProviderViews } from '@uppy/provider-views'
|
import type { ProviderViews } from '@uppy/provider-views'
|
||||||
|
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { LocaleStrings } from '@uppy/utils'
|
||||||
// biome-ignore lint/style/useImportType: h is not a type
|
// biome-ignore lint/style/useImportType: h is not a type
|
||||||
import { type ComponentChild, h } from 'preact'
|
import { type ComponentChild, h } from 'preact'
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import {
|
||||||
GooglePickerView,
|
GooglePickerView,
|
||||||
type PickedItem,
|
type PickedItem,
|
||||||
} from '@uppy/provider-views'
|
} from '@uppy/provider-views'
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { LocaleStrings } from '@uppy/utils'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
|
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import type { Body, Meta, UppyFile } from '@uppy/core'
|
import type { Body, Meta, UppyFile } from '@uppy/core'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils'
|
||||||
import Cropper from 'cropperjs'
|
import Cropper from 'cropperjs'
|
||||||
import { Component, h } from 'preact'
|
import { Component, h } from 'preact'
|
||||||
import type ImageEditor from './ImageEditor.js'
|
import type ImageEditor from './ImageEditor.js'
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import type {
|
||||||
UppyFile,
|
UppyFile,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
import { UIPlugin } from '@uppy/core'
|
import { UIPlugin } from '@uppy/core'
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { LocaleStrings } from '@uppy/utils'
|
||||||
import type Cropper from 'cropperjs'
|
import type Cropper from 'cropperjs'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import type {
|
||||||
import { UIPlugin, type Uppy } from '@uppy/core'
|
import { UIPlugin, type Uppy } from '@uppy/core'
|
||||||
import { ProviderViews } from '@uppy/provider-views'
|
import { ProviderViews } from '@uppy/provider-views'
|
||||||
|
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { LocaleStrings } from '@uppy/utils'
|
||||||
// biome-ignore lint/style/useImportType: h is not a type
|
// biome-ignore lint/style/useImportType: h is not a type
|
||||||
import { type ComponentChild, h } from 'preact'
|
import { type ComponentChild, h } from 'preact'
|
||||||
import packageJson from '../package.json' with { type: 'json' }
|
import packageJson from '../package.json' with { type: 'json' }
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const ar_SA: Locale<0 | 1> = {
|
const ar_SA: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const bg_BG: Locale<0 | 1> = {
|
const bg_BG: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const ca_ES: Locale<0 | 1> = {
|
const ca_ES: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const cs_CZ: Locale<0 | 1 | 2> = {
|
const cs_CZ: Locale<0 | 1 | 2> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const da_DK: Locale<0 | 1> = {
|
const da_DK: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const de_DE: Locale<0 | 1> = {
|
const de_DE: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const el_GR: Locale<0 | 1> = {
|
const el_GR: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const en_US: Locale<0 | 1> = {
|
const en_US: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
@ -39,7 +39,7 @@ en_US.strings = {
|
||||||
authenticateWithTitle:
|
authenticateWithTitle:
|
||||||
'Please authenticate with %{pluginName} to select files',
|
'Please authenticate with %{pluginName} to select files',
|
||||||
back: 'Back',
|
back: 'Back',
|
||||||
browse: 'browse',
|
browse: 'Browse',
|
||||||
browseFiles: 'browse files',
|
browseFiles: 'browse files',
|
||||||
browseFolders: 'browse folders',
|
browseFolders: 'browse folders',
|
||||||
cancel: 'Cancel',
|
cancel: 'Cancel',
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const es_ES: Locale<0 | 1> = {
|
const es_ES: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const es_MX: Locale<0 | 1> = {
|
const es_MX: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const fa_IR: Locale<0 | 1> = {
|
const fa_IR: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const fi_FI: Locale<0 | 1> = {
|
const fi_FI: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const fr_FR: Locale<0 | 1> = {
|
const fr_FR: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const gl_ES: Locale<0 | 1> = {
|
const gl_ES: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const he_IL: Locale<0 | 1> = {
|
const he_IL: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const hi_IN: Locale<0 | 1> = {
|
const hi_IN: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const hr_HR: Locale<0 | 1> = {
|
const hr_HR: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const hu_HU: Locale<0> = {
|
const hu_HU: Locale<0> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const id_ID: Locale<0 | 1> = {
|
const id_ID: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const is_IS: Locale<0 | 1> = {
|
const is_IS: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const it_IT: Locale<0 | 1> = {
|
const it_IT: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const ja_JP: Locale<0 | 1> = {
|
const ja_JP: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const ko_KR: Locale<0> = {
|
const ko_KR: Locale<0> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const ms_MY: Locale<0 | 1> = {
|
const ms_MY: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const nb_NO: Locale<0 | 1> = {
|
const nb_NO: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const nl_NL: Locale<0 | 1> = {
|
const nl_NL: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const pl_PL: Locale<0 | 1> = {
|
const pl_PL: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const pt_BR: Locale<0 | 1> = {
|
const pt_BR: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const pt_PT: Locale<0 | 1> = {
|
const pt_PT: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const ro_RO: Locale<0 | 1> = {
|
const ro_RO: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const ru_RU: Locale<0 | 1 | 2> = {
|
const ru_RU: Locale<0 | 1 | 2> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const sk_SK: Locale<0 | 1> = {
|
const sk_SK: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const sr_RS_Cyrillic: Locale<0 | 1> = {
|
const sr_RS_Cyrillic: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const sr_RS_Latin: Locale<0 | 1> = {
|
const sr_RS_Latin: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const sv_SE: Locale<0 | 1> = {
|
const sv_SE: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const th_TH: Locale<0 | 1> = {
|
const th_TH: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const tr_TR: Locale<0 | 1> = {
|
const tr_TR: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const uk_UA: Locale<0 | 1 | 2> = {
|
const uk_UA: Locale<0 | 1 | 2> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const uz_UZ: Locale<0 | 1> = {
|
const uz_UZ: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const vi_VN: Locale<0 | 1> = {
|
const vi_VN: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const zh_CN: Locale<0> = {
|
const zh_CN: Locale<0> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const zh_TW: Locale<0> = {
|
const zh_TW: Locale<0> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Locale } from '@uppy/utils/lib/Translator'
|
import type { Locale } from '@uppy/utils'
|
||||||
|
|
||||||
const en_US: Locale<0 | 1> = {
|
const en_US: Locale<0 | 1> = {
|
||||||
strings: {},
|
strings: {},
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue