@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:
Prakash 2025-08-19 15:55:27 +05:30 committed by GitHub
parent e8692434d6
commit d301c01d6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
156 changed files with 471 additions and 451 deletions

View 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'
```

View file

@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Component } from "@angular/core";
import { Uppy } from "@uppy/core";
import type * as Dashboard from "@uppy/dashboard";
import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
import type { Body, Meta } from "@uppy/utils";
@Component({
selector: "uppy-dashboard-demo",

View file

@ -11,7 +11,7 @@ import {
import { Uppy } from "@uppy/core";
import type { DashboardOptions } 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";
@Component({

View file

@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Component } from "@angular/core";
import { Uppy } from "@uppy/core";
import type * as Dashboard from "@uppy/dashboard";
import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
import type { Body, Meta } from "@uppy/utils";
@Component({
selector: "uppy-dashboard-demo",

View file

@ -11,7 +11,7 @@ import {
import { Uppy } from "@uppy/core";
import type { DashboardOptions } 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";
@Component({

View file

@ -1,7 +1,7 @@
import type { ElementRef, SimpleChanges } from "@angular/core";
import type { UIPlugin, UIPluginOptions, Uppy } from "@uppy/core";
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<
M extends Meta,

View file

@ -7,9 +7,8 @@ import type {
} from '@uppy/core'
import { UIPlugin } from '@uppy/core'
import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
import type { LocaleStrings } from '@uppy/utils'
import { getFileTypeExtension } from '@uppy/utils'
import { h } from 'preact'
import packageJson from '../package.json' with { type: 'json' }
import locale from './locale.js'

View file

@ -1,4 +1,4 @@
import type { I18n } from '@uppy/utils/lib/Translator'
import type { I18n } from '@uppy/utils'
import { h } from 'preact'
interface DiscardButtonProps {

View file

@ -1,4 +1,4 @@
import type { I18n } from '@uppy/utils/lib/Translator'
import type { I18n } from '@uppy/utils'
import { h } from 'preact'
interface PermissionsScreenProps {

View file

@ -1,4 +1,4 @@
import type { I18n } from '@uppy/utils/lib/Translator'
import type { I18n } from '@uppy/utils'
import { h } from 'preact'
interface RecordButtonProps {

View file

@ -1,4 +1,4 @@
import type { I18n } from '@uppy/utils/lib/Translator'
import type { I18n } from '@uppy/utils'
import { h } from 'preact'
import { useEffect, useRef } from 'preact/hooks'
import AudioSourceSelect, {

View file

@ -1,4 +1,4 @@
import type { I18n } from '@uppy/utils/lib/Translator'
import type { I18n } from '@uppy/utils'
import { h } from 'preact'
interface SubmitButtonProps {

View file

@ -1,8 +1,5 @@
import type { Body, Meta, UppyFile } from '@uppy/core'
import type {
RateLimitedQueue,
WrapPromiseFunctionType,
} from '@uppy/utils/lib/RateLimitedQueue'
import type { RateLimitedQueue, WrapPromiseFunctionType } from '@uppy/utils'
import type AwsS3Multipart from './index.js'
import type {
AwsS3MultipartOptions,

View file

@ -1,6 +1,6 @@
import type { Uppy } from '@uppy/core'
import { AbortController } from '@uppy/utils/lib/AbortController'
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import type { Body, Meta, UppyFile } from '@uppy/utils'
import { AbortController } from '@uppy/utils'
import type { HTTPCommunicationQueue } from './HTTPCommunicationQueue.js'
const MB = 1024 * 1024

View file

@ -6,15 +6,14 @@ import {
type PluginOpts,
type Uppy,
} from '@uppy/core'
import { createAbortError } from '@uppy/utils/lib/AbortController'
import type { RequestOptions } from '@uppy/utils/lib/CompanionClientProvider'
import type { Body, Meta, RequestOptions, UppyFile } from '@uppy/utils'
import {
createAbortError,
filterFilesToEmitUploadStarted,
filterNonFailedFiles,
} from '@uppy/utils/lib/fileFilters'
import getAllowedMetaFields from '@uppy/utils/lib/getAllowedMetaFields'
import { RateLimitedQueue } from '@uppy/utils/lib/RateLimitedQueue'
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
getAllowedMetaFields,
RateLimitedQueue,
} from '@uppy/utils'
import packageJson from '../package.json' with { type: 'json' }
import createSignedURL from './createSignedURL.js'
import { HTTPCommunicationQueue } from './HTTPCommunicationQueue.js'

View file

@ -1,5 +1,5 @@
import { createAbortError } from '@uppy/utils/lib/AbortController'
import type { Body } from '@uppy/utils/lib/UppyFile'
import type { Body } from '@uppy/utils'
import { createAbortError } from '@uppy/utils'
import type { AwsS3Part } from './index.js'

View file

@ -15,7 +15,7 @@ import type {
import { UIPlugin, type Uppy } from '@uppy/core'
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
import { type ComponentChild, h } from 'preact'
import packageJson from '../package.json' with { type: 'json' }

View file

@ -5,10 +5,7 @@ import type {
UnknownProviderPlugin,
Uppy,
} from '@uppy/core'
import type {
CompanionClientProvider,
RequestOptions,
} from '@uppy/utils/lib/CompanionClientProvider'
import type { CompanionClientProvider, RequestOptions } from '@uppy/utils'
import { isOriginAllowed } from './getAllowedHosts.js'
import type { CompanionPluginOptions } from './index.js'
import RequestClient, { authErrorStatusCode } from './RequestClient.js'

View file

@ -1,10 +1,11 @@
import type Uppy from '@uppy/core'
import type { RequestOptions } from '@uppy/utils/lib/CompanionClientProvider'
import ErrorWithCause from '@uppy/utils/lib/ErrorWithCause'
import fetchWithNetworkError from '@uppy/utils/lib/fetchWithNetworkError'
import getSocketHost from '@uppy/utils/lib/getSocketHost'
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import UserFacingApiError from '@uppy/utils/lib/UserFacingApiError'
import type { Body, Meta, RequestOptions, UppyFile } from '@uppy/utils'
import {
ErrorWithCause,
fetchWithNetworkError,
getSocketHost,
UserFacingApiError,
} from '@uppy/utils'
import pRetry, { AbortError } from 'p-retry'
import packageJson from '../package.json' with { type: 'json' }
import AuthError from './AuthError.js'

View file

@ -1,5 +1,5 @@
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'
const getName = (id: string): string => {

View file

@ -1,7 +1,7 @@
import fs from 'node:fs'
import path from 'node:path'
import Core from '@uppy/core'
import getFileNameAndExtension from '@uppy/utils/lib/getFileNameAndExtension'
import { getFileNameAndExtension } from '@uppy/utils'
import { describe, expect, it } from 'vitest'
import CompressorPlugin from './index.js'

View file

@ -1,11 +1,9 @@
import prettierBytes from '@transloadit/prettier-bytes'
import type { DefinePluginOpts, PluginOpts } 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
import { RateLimitedQueue } from '@uppy/utils/lib/RateLimitedQueue'
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import { getFileNameAndExtension, RateLimitedQueue } from '@uppy/utils'
import CompressorJS from 'compressorjs'
import locale from './locale.js'

View file

@ -7,9 +7,8 @@
* See `Plugin` for the extended version with Preact rendering for interfaces.
*/
import type { I18n, OptionalPluralizeLocale } from '@uppy/utils/lib/Translator'
import Translator from '@uppy/utils/lib/Translator'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { Body, I18n, Meta, OptionalPluralizeLocale } from '@uppy/utils'
import { Translator } from '@uppy/utils'
import type { State, UnknownPlugin, Uppy } from './Uppy.js'
export type PluginOpts = {

View file

@ -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'
/**

View file

@ -1,6 +1,5 @@
import prettierBytes from '@transloadit/prettier-bytes'
import type { I18n } from '@uppy/utils/lib/Translator'
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import type { Body, I18n, Meta, UppyFile } from '@uppy/utils'
// @ts-ignore untyped
import match from 'mime-match'
import type { NonNullableUppyOptions, State } from './Uppy.js'

View file

@ -1,6 +1,5 @@
import findDOMElement from '@uppy/utils/lib/findDOMElement'
import getTextDirection from '@uppy/utils/lib/getTextDirection'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { Body, Meta } from '@uppy/utils'
import { findDOMElement, getTextDirection } from '@uppy/utils'
import { render } from 'preact/compat'
import type { PluginOpts } from './BasePlugin.js'
import BasePlugin from './BasePlugin.js'

View file

@ -3,7 +3,7 @@ import fs from 'node:fs'
import path from 'node:path'
import prettierBytes from '@transloadit/prettier-bytes'
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 BasePlugin, {
type DefinePluginOpts,

View file

@ -2,29 +2,25 @@
import DefaultStore, { type Store } from '@uppy/store-default'
import type {
Body,
CompanionClientProvider,
CompanionClientSearchProvider,
} from '@uppy/utils/lib/CompanionClientProvider'
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
import type {
CompanionFile,
FileProgressNotStarted,
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,
Locale,
OptionalPluralizeLocale,
} from '@uppy/utils/lib/Translator'
import Translator from '@uppy/utils/lib/Translator'
import type {
Body,
Meta,
MinimalRequiredUppyFile,
OptionalPluralizeLocale,
UppyFile,
} from '@uppy/utils/lib/UppyFile'
} from '@uppy/utils'
import {
getFileNameAndExtension,
getFileType,
getSafeFileId,
Translator,
} from '@uppy/utils'
import throttle from 'lodash/throttle.js'
// @ts-ignore untyped
import ee from 'namespace-emitter'

View file

@ -4,7 +4,7 @@ export type {
Meta,
MinimalRequiredUppyFile,
UppyFile,
} from '@uppy/utils/lib/UppyFile'
} from '@uppy/utils'
export type { DefinePluginOpts, PluginOpts } from './BasePlugin.js'
export { default as BasePlugin } from './BasePlugin.js'
export { default as EventManager } from './EventManager.js'

View file

@ -1,4 +1,4 @@
import getTimeStamp from '@uppy/utils/lib/getTimeStamp'
import { getTimeStamp } from '@uppy/utils'
// Swallow all logs, except errors.
// default if logger is not set or debug: false

View file

@ -1,6 +1,4 @@
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
import type { Body, InternalMetadata, Meta } from '@uppy/utils/lib/UppyFile'
import type { Body, InternalMetadata, LocaleStrings, Meta } from '@uppy/utils'
import { expectTypeOf, test } from 'vitest'
import UIPlugin, { type UIPluginOptions } from './UIPlugin.js'
import Uppy, { type UnknownPlugin } from './Uppy.js'

View file

@ -12,10 +12,8 @@ import type {
import { UIPlugin } from '@uppy/core'
import { defaultPickerIcon } from '@uppy/provider-views'
import ThumbnailGenerator from '@uppy/thumbnail-generator'
import findAllDOMElements from '@uppy/utils/lib/findAllDOMElements'
import getDroppedFiles from '@uppy/utils/lib/getDroppedFiles'
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
import toArray from '@uppy/utils/lib/toArray'
import type { LocaleStrings } from '@uppy/utils'
import { findAllDOMElements, getDroppedFiles, toArray } from '@uppy/utils'
import { nanoid } from 'nanoid/non-secure'
import type { ComponentChild, VNode } from 'preact'
import { h } from 'preact'

View file

@ -1,5 +1,4 @@
import type Translator from '@uppy/utils/lib/Translator'
import type { I18n } from '@uppy/utils/lib/Translator'
import type { I18n, Translator } from '@uppy/utils'
import { Component, type ComponentChild, Fragment, h } from 'preact'
import type { TargetedEvent } from 'preact/compat'
import type { DashboardState, TargetWithRender } from '../Dashboard.js'

View file

@ -7,9 +7,8 @@ import type {
Uppy,
UppyFile,
} from '@uppy/core'
import isDragDropSupported from '@uppy/utils/lib/isDragDropSupported'
import type Translator from '@uppy/utils/lib/Translator'
import type { I18n } from '@uppy/utils/lib/Translator'
import type { I18n, Translator } from '@uppy/utils'
import { isDragDropSupported } from '@uppy/utils'
import classNames from 'classnames'
import { h } from 'preact'
import type { TargetedEvent } from 'preact/compat'

View file

@ -1,6 +1,6 @@
import type Uppy 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 type { DashboardState } from '../../../Dashboard.js'
import copyToClipboard from '../../../utils/copyToClipboard.js'

View file

@ -1,7 +1,7 @@
import prettierBytes from '@transloadit/prettier-bytes'
import type { UppyFile } from '@uppy/core'
import type { I18n } from '@uppy/utils/lib/Translator'
import truncateString from '@uppy/utils/lib/truncateString'
import type { I18n } from '@uppy/utils'
import { truncateString } from '@uppy/utils'
import { h } from 'preact'
import type { DashboardState } from '../../../Dashboard.js'
import MetaErrorMessage from '../MetaErrorMessage.js'

View file

@ -1,5 +1,5 @@
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'
interface Props<M extends Meta, B extends Body> {

View file

@ -1,6 +1,6 @@
import type Uppy 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'
// biome-ignore lint/style/useImportType: h is not a type
import { Component, type ComponentChild, h } from 'preact'

View file

@ -1,7 +1,7 @@
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
import VirtualList from '@uppy/utils/lib/VirtualList'
import { VirtualList } from '@uppy/utils'
import { h } from 'preact'
import { useMemo } from 'preact/hooks'
import type { DashboardState } from '../Dashboard.js'

View file

@ -1,8 +1,7 @@
import prettierBytes from '@transloadit/prettier-bytes'
import type { Body, Meta, State, Uppy } from '@uppy/core'
import type { FileProcessingInfo } from '@uppy/utils/lib/FileProgress'
import prettyETA from '@uppy/utils/lib/prettyETA'
import type { I18n } from '@uppy/utils/lib/Translator'
import type { FileProcessingInfo, I18n } from '@uppy/utils'
import { prettyETA } from '@uppy/utils'
import classNames from 'classnames'
import { h } from 'preact'

View file

@ -1,6 +1,6 @@
import type { Body, Meta, Uppy, UppyFile } from '@uppy/core'
import emaFilter from '@uppy/utils/lib/emaFilter'
import type { I18n } from '@uppy/utils/lib/Translator'
import type { I18n } from '@uppy/utils'
import { emaFilter } from '@uppy/utils'
import type { ComponentChild } from 'preact'
import { Component, h } from 'preact'
import type { StatusBarOptions } from './StatusBarOptions.js'

View file

@ -1,5 +1,5 @@
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 { h } from 'preact'
import {

View file

@ -1,5 +1,4 @@
import type { FileProcessingInfo } from '@uppy/utils/lib/FileProgress'
import type { UppyFile } from '@uppy/utils/lib/UppyFile'
import type { FileProcessingInfo, UppyFile } from '@uppy/utils'
export default function calculateProcessingProgress(
files: Record<string, UppyFile<any, any>>,

View file

@ -1,5 +1,5 @@
// @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 getActiveOverlayEl from './getActiveOverlayEl.js'

View file

@ -1,6 +1,5 @@
// @ts-ignore untyped
import FOCUSABLE_ELEMENTS from '@uppy/utils/lib/FOCUSABLE_ELEMENTS'
import toArray from '@uppy/utils/lib/toArray'
import { FOCUSABLE_ELEMENTS, toArray } from '@uppy/utils'
import getActiveOverlayEl from './getActiveOverlayEl.js'
type $TSFixMe = any

View file

@ -1,7 +1,6 @@
import type { Body, DefinePluginOpts, Meta, PluginOpts, Uppy } from '@uppy/core'
import { BasePlugin } from '@uppy/core'
import getDroppedFiles from '@uppy/utils/lib/getDroppedFiles'
import toArray from '@uppy/utils/lib/toArray'
import { getDroppedFiles, toArray } from '@uppy/utils'
import packageJson from '../package.json' with { type: 'json' }
export interface DropTargetOptions extends PluginOpts {

View file

@ -15,7 +15,7 @@ import type {
import { UIPlugin, type Uppy } from '@uppy/core'
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
import { type ComponentChild, h } from 'preact'
import packageJson from '../package.json' with { type: 'json' }

View file

@ -15,7 +15,7 @@ import type {
import { UIPlugin, type Uppy } from '@uppy/core'
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
import { type ComponentChild, h } from 'preact'
import packageJson from '../package.json' with { type: 'json' }

View file

@ -7,8 +7,7 @@ import type {
UppyEventMap,
} from '@uppy/core'
import { BasePlugin } from '@uppy/core'
import findDOMElement from '@uppy/utils/lib/findDOMElement'
import toArray from '@uppy/utils/lib/toArray'
import { findDOMElement, toArray } from '@uppy/utils'
// @ts-ignore untyped
import getFormData from 'get-form-data'

View file

@ -1,4 +1,4 @@
import type { UppyFile } from '@uppy/utils/lib/UppyFile'
import type { UppyFile } from '@uppy/utils'
const indexedDB =
typeof window !== 'undefined' &&

View file

@ -1,4 +1,4 @@
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import type { Body, Meta, UppyFile } from '@uppy/utils'
const isSupported =
typeof navigator !== 'undefined' && 'serviceWorker' in navigator

View file

@ -10,7 +10,7 @@ import {
GooglePickerView,
type PickedItem,
} from '@uppy/provider-views'
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
import type { LocaleStrings } from '@uppy/utils'
import { h } from 'preact'
import packageJson from '../package.json' with { type: 'json' }

View file

@ -15,7 +15,7 @@ import type {
import { UIPlugin, type Uppy } from '@uppy/core'
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
import { type ComponentChild, h } from 'preact'
import packageJson from '../package.json' with { type: 'json' }

View file

@ -10,7 +10,7 @@ import {
GooglePickerView,
type PickedItem,
} from '@uppy/provider-views'
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
import type { LocaleStrings } from '@uppy/utils'
import { h } from 'preact'
import packageJson from '../package.json' with { type: 'json' }

View file

@ -1,5 +1,5 @@
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 { Component, h } from 'preact'
import type ImageEditor from './ImageEditor.js'

View file

@ -7,7 +7,7 @@ import type {
UppyFile,
} 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 { h } from 'preact'
import packageJson from '../package.json' with { type: 'json' }

View file

@ -15,7 +15,7 @@ import type {
import { UIPlugin, type Uppy } from '@uppy/core'
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
import { type ComponentChild, h } from 'preact'
import packageJson from '../package.json' with { type: 'json' }

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const ar_SA: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const bg_BG: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const ca_ES: Locale<0 | 1> = {
strings: {},

View file

@ -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> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const da_DK: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const de_DE: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const el_GR: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const en_US: Locale<0 | 1> = {
strings: {},
@ -39,7 +39,7 @@ en_US.strings = {
authenticateWithTitle:
'Please authenticate with %{pluginName} to select files',
back: 'Back',
browse: 'browse',
browse: 'Browse',
browseFiles: 'browse files',
browseFolders: 'browse folders',
cancel: 'Cancel',

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const es_ES: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const es_MX: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const fa_IR: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const fi_FI: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const fr_FR: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const gl_ES: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const he_IL: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const hi_IN: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const hr_HR: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const hu_HU: Locale<0> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const id_ID: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const is_IS: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const it_IT: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const ja_JP: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const ko_KR: Locale<0> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const ms_MY: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const nb_NO: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const nl_NL: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const pl_PL: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const pt_BR: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const pt_PT: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const ro_RO: Locale<0 | 1> = {
strings: {},

View file

@ -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> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const sk_SK: Locale<0 | 1> = {
strings: {},

View file

@ -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> = {
strings: {},

View file

@ -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> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const sv_SE: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const th_TH: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const tr_TR: Locale<0 | 1> = {
strings: {},

View file

@ -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> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const uz_UZ: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const vi_VN: Locale<0 | 1> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const zh_CN: Locale<0> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const zh_TW: Locale<0> = {
strings: {},

View file

@ -1,4 +1,4 @@
import type { Locale } from '@uppy/utils/lib/Translator'
import type { Locale } from '@uppy/utils'
const en_US: Locale<0 | 1> = {
strings: {},

Some files were not shown because too many files have changed in this diff Show more