mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
refactor(core): merge @uppy/provider-views into core (#6358)
see #6351 for more details
This commit is contained in:
commit
0b3bbf019e
115 changed files with 102 additions and 830 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { getAllowedHosts, Provider, tokenStorage } from '@uppy/companion-client'
|
||||
import { UIPlugin } from '@uppy/core'
|
||||
import { ProviderViews } from '@uppy/provider-views'
|
||||
import { ProviderViews } from '@uppy/core/provider-views'
|
||||
|
||||
const defaultOptions = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
"@uppy/core": "workspace:*",
|
||||
"@uppy/dashboard": "workspace:*",
|
||||
"@uppy/google-drive": "workspace:*",
|
||||
"@uppy/provider-views": "workspace:*",
|
||||
"@uppy/tus": "workspace:*",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import {
|
|||
Provider,
|
||||
tokenStorage,
|
||||
} from '@uppy/core/companion-client'
|
||||
import { ProviderViews } from '@uppy/core/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
import { ProviderViews } from '@uppy/provider-views'
|
||||
// biome-ignore lint/style/useImportType: h is not a type
|
||||
import { type ComponentChild, h } from 'preact'
|
||||
import packageJson from '../package.json' with { type: 'json' }
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type {
|
|||
UnknownProviderPluginState,
|
||||
UppyEventMap,
|
||||
} from '@uppy/core'
|
||||
import type { ProviderViews } from '@uppy/provider-views'
|
||||
import type { ProviderViews } from '@uppy/core/provider-views'
|
||||
import { dequal } from 'dequal/lite'
|
||||
import { Subscribers } from './utils.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && sass --load-path=../../ src/provider-views/style.scss dist/provider-views.css && postcss dist/style.css -u cssnano -o dist/style.min.css && postcss dist/provider-views.css -u cssnano -o dist/provider-views.min.css",
|
||||
"typecheck": "tsc --build",
|
||||
"test": "vitest run --environment=jsdom --silent='passed-only'"
|
||||
},
|
||||
|
|
@ -41,19 +41,28 @@
|
|||
"./store-default": "./lib/store/index.js",
|
||||
"./utils": "./lib/utils/index.js",
|
||||
"./companion-client": "./lib/companion-client/index.js",
|
||||
"./provider-views": "./lib/provider-views/index.js",
|
||||
"./provider-views/css/style.min.css": "./dist/provider-views.min.css",
|
||||
"./provider-views/css/style.css": "./dist/provider-views.css",
|
||||
"./provider-views/css/style.scss": "./src/provider-views/style.scss",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@transloadit/prettier-bytes": "^1.1.0",
|
||||
"classnames": "^2.5.1",
|
||||
"lodash": "^4.18.1",
|
||||
"mime-match": "^1.0.2",
|
||||
"namespace-emitter": "^2.0.1",
|
||||
"nanoid": "^5.1.11",
|
||||
"p-queue": "^9.3.0",
|
||||
"p-retry": "^6.1.0",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/deep-freeze": "^0",
|
||||
"@types/gapi": "^0.0.47",
|
||||
"@types/google.accounts": "^0.0.14",
|
||||
"@types/google.picker": "^0.0.42",
|
||||
"@types/lodash": "^4.14.199",
|
||||
"@types/node": "^20.19.0",
|
||||
"cssnano": "^8.0.1",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { Body, Meta, PartialTreeFolder } from '@uppy/core'
|
||||
import { Fragment, type h } from 'preact'
|
||||
import type { Body, Meta, PartialTreeFolder } from '../index.js'
|
||||
import type ProviderView from './ProviderView/index.js'
|
||||
|
||||
type BreadcrumbsProps<M extends Meta, B extends Body> = {
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
import { useEffect, useState } from 'preact/hooks'
|
||||
import type {
|
||||
Body,
|
||||
Meta,
|
||||
PartialTreeFile,
|
||||
PartialTreeFolderNode,
|
||||
} from '@uppy/core'
|
||||
import type { I18n } from '@uppy/core/utils'
|
||||
import { VirtualList } from '@uppy/core/utils'
|
||||
import { useEffect, useState } from 'preact/hooks'
|
||||
} from '../index.js'
|
||||
import type { I18n } from '../utils/index.js'
|
||||
import { VirtualList } from '../utils/index.js'
|
||||
import Item from './Item/index.js'
|
||||
import type ProviderView from './ProviderView/ProviderView.js'
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import type { I18n } from '@uppy/core/utils'
|
||||
import type { I18n } from '../utils/index.js'
|
||||
import { useSearchForm } from './useSearchForm.js'
|
||||
|
||||
interface FilterInputProps {
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import type { Body, Meta, PartialTree } from '@uppy/core'
|
||||
import type { I18n } from '@uppy/core/utils'
|
||||
import classNames from 'classnames'
|
||||
import { useMemo } from 'preact/hooks'
|
||||
import type { Body, Meta, PartialTree } from '../index.js'
|
||||
import type { I18n } from '../utils/index.js'
|
||||
import type ProviderView from './ProviderView/ProviderView.js'
|
||||
import getNumberOfSelectedFiles from './utils/PartialTreeUtils/getNumberOfSelectedFiles.js'
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import type { AsyncStore, Uppy } from '@uppy/core'
|
||||
import type { I18n } from '@uppy/core/utils'
|
||||
import { useCallback, useEffect, useRef, useState } from 'preact/hooks'
|
||||
import type { AsyncStore, Uppy } from '../../index.js'
|
||||
import type { I18n } from '../../utils/index.js'
|
||||
import AuthView from '../ProviderView/AuthView.js'
|
||||
import {
|
||||
authorize,
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import type { PartialTreeFile, PartialTreeFolderNode } from '@uppy/core'
|
||||
import type { h } from 'preact'
|
||||
import type { PartialTreeFile, PartialTreeFolderNode } from '../../../index.js'
|
||||
import ItemIcon from './ItemIcon.js'
|
||||
|
||||
type GridItemProps = {
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
import type { h } from 'preact'
|
||||
import type {
|
||||
PartialTreeFile,
|
||||
PartialTreeFolderNode,
|
||||
PartialTreeId,
|
||||
} from '@uppy/core'
|
||||
import type { h } from 'preact'
|
||||
} from '../../../index.js'
|
||||
import ItemIcon from './ItemIcon.js'
|
||||
|
||||
// if folder:
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PartialTreeFile, PartialTreeFolderNode } from '@uppy/core'
|
||||
import type { I18n } from '@uppy/core/utils'
|
||||
import classNames from 'classnames'
|
||||
import type { PartialTreeFile, PartialTreeFolderNode } from '../../../index.js'
|
||||
import type { I18n } from '../../../utils/index.js'
|
||||
import type ProviderView from '../../ProviderView/ProviderView.js'
|
||||
import ItemIcon from './ItemIcon.js'
|
||||
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
import classNames from 'classnames'
|
||||
import type { h } from 'preact'
|
||||
import type {
|
||||
PartialTreeFile,
|
||||
PartialTreeFolderNode,
|
||||
PartialTreeId,
|
||||
} from '@uppy/core'
|
||||
import type { I18n } from '@uppy/core/utils'
|
||||
import classNames from 'classnames'
|
||||
import type { h } from 'preact'
|
||||
} from '../../index.js'
|
||||
import type { I18n } from '../../utils/index.js'
|
||||
import GridItem from './components/GridItem.js'
|
||||
import ListItem from './components/ListItem.js'
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import type { Body, Meta } from '@uppy/core'
|
||||
import type { I18n } from '@uppy/core/utils'
|
||||
import type { h } from 'preact'
|
||||
import { useCallback } from 'preact/hooks'
|
||||
import type { Body, Meta } from '../../index.js'
|
||||
import type { I18n } from '../../utils/index.js'
|
||||
import type ProviderViews from './ProviderView.js'
|
||||
import type { Opts } from './ProviderView.js'
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import type { PartialTreeFile, PartialTreeFolderNode } from '@uppy/core'
|
||||
import type { I18n } from '@uppy/core/utils'
|
||||
import type { PartialTreeFile, PartialTreeFolderNode } from '../../index.js'
|
||||
import type { I18n } from '../../utils/index.js'
|
||||
import SearchResultItem from '../Item/components/SearchResultItem.js'
|
||||
import type ProviderView from './ProviderView.js'
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import type { Body, Meta, PartialTreeFolder } from '@uppy/core'
|
||||
import type { I18n } from '@uppy/core/utils'
|
||||
import classNames from 'classnames'
|
||||
import type { h } from 'preact'
|
||||
import type { Body, Meta, PartialTreeFolder } from '../../index.js'
|
||||
import type { I18n } from '../../utils/index.js'
|
||||
import Breadcrumbs from '../Breadcrumbs.js'
|
||||
import type ProviderView from './ProviderView.js'
|
||||
import User from './User.js'
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
import classNames from 'classnames'
|
||||
import debounce from 'lodash/debounce.js'
|
||||
import type { h } from 'preact'
|
||||
import packageJson from '../../../package.json' with { type: 'json' }
|
||||
import type {
|
||||
Body,
|
||||
Meta,
|
||||
|
|
@ -9,13 +13,9 @@ import type {
|
|||
UnknownProviderPlugin,
|
||||
UnknownProviderPluginState,
|
||||
ValidateableFile,
|
||||
} from '@uppy/core'
|
||||
import type { CompanionFile, I18n } from '@uppy/core/utils'
|
||||
import { remoteFileObjToLocal } from '@uppy/core/utils'
|
||||
import classNames from 'classnames'
|
||||
import debounce from 'lodash/debounce.js'
|
||||
import type { h } from 'preact'
|
||||
import packageJson from '../../package.json' with { type: 'json' }
|
||||
} from '../../index.js'
|
||||
import type { CompanionFile, I18n } from '../../utils/index.js'
|
||||
import { remoteFileObjToLocal } from '../../utils/index.js'
|
||||
import Browser from '../Browser.js'
|
||||
import FilterInput from '../FilterInput.js'
|
||||
import FooterActions from '../FooterActions.js'
|
||||
|
|
@ -1,3 +1,6 @@
|
|||
import classNames from 'classnames'
|
||||
import type { h } from 'preact'
|
||||
import packageJson from '../../../package.json' with { type: 'json' }
|
||||
import type {
|
||||
Body,
|
||||
DefinePluginOpts,
|
||||
|
|
@ -9,12 +12,9 @@ import type {
|
|||
UnknownSearchProviderPlugin,
|
||||
UnknownSearchProviderPluginState,
|
||||
ValidateableFile,
|
||||
} from '@uppy/core'
|
||||
import type { CompanionFile } from '@uppy/core/utils'
|
||||
import { remoteFileObjToLocal } from '@uppy/core/utils'
|
||||
import classNames from 'classnames'
|
||||
import type { h } from 'preact'
|
||||
import packageJson from '../../package.json' with { type: 'json' }
|
||||
} from '../../index.js'
|
||||
import type { CompanionFile } from '../../utils/index.js'
|
||||
import { remoteFileObjToLocal } from '../../utils/index.js'
|
||||
import Browser from '../Browser.js'
|
||||
import FilterInput from '../FilterInput.js'
|
||||
import FooterActions from '../FooterActions.js'
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
// p-queue does not have a `"main"` field in its `package.json`, and that makes `import/no-unresolved` freak out.
|
||||
// We can safely ignore it because bundlers will happily use the `"exports"` field instead.
|
||||
import PQueue from 'p-queue'
|
||||
import type {
|
||||
PartialTree,
|
||||
PartialTreeFile,
|
||||
PartialTreeFolderNode,
|
||||
PartialTreeId,
|
||||
} from '@uppy/core'
|
||||
import type { CompanionFile } from '@uppy/core/utils'
|
||||
// p-queue does not have a `"main"` field in its `package.json`, and that makes `import/no-unresolved` freak out.
|
||||
// We can safely ignore it because bundlers will happily use the `"exports"` field instead.
|
||||
import PQueue from 'p-queue'
|
||||
} from '../../../index.js'
|
||||
import type { CompanionFile } from '../../../utils/index.js'
|
||||
import shallowClone from './shallowClone.js'
|
||||
|
||||
export type ApiList = (directory: PartialTreeId) => Promise<{
|
||||
|
|
@ -3,8 +3,8 @@ import type {
|
|||
PartialTreeFile,
|
||||
PartialTreeFolder,
|
||||
PartialTreeFolderNode,
|
||||
} from '@uppy/core'
|
||||
import type { CompanionFile } from '@uppy/core/utils'
|
||||
} from '../../../index.js'
|
||||
import type { CompanionFile } from '../../../utils/index.js'
|
||||
|
||||
const afterOpenFolder = (
|
||||
oldPartialTree: PartialTree,
|
||||
|
|
@ -4,8 +4,8 @@ import type {
|
|||
PartialTreeFolder,
|
||||
PartialTreeFolderNode,
|
||||
PartialTreeId,
|
||||
} from '@uppy/core'
|
||||
import type { CompanionFile } from '@uppy/core/utils'
|
||||
} from '../../../index.js'
|
||||
import type { CompanionFile } from '../../../utils/index.js'
|
||||
|
||||
const afterScrollFolder = (
|
||||
oldPartialTree: PartialTree,
|
||||
|
|
@ -4,7 +4,7 @@ import type {
|
|||
PartialTreeFolder,
|
||||
PartialTreeFolderNode,
|
||||
PartialTreeId,
|
||||
} from '@uppy/core'
|
||||
} from '../../../index.js'
|
||||
import shallowClone from './shallowClone.js'
|
||||
|
||||
/*
|
||||
|
|
@ -3,7 +3,7 @@ import type {
|
|||
PartialTreeFolder,
|
||||
PartialTreeFolderNode,
|
||||
PartialTreeId,
|
||||
} from '@uppy/core'
|
||||
} from '../../../index.js'
|
||||
|
||||
const getBreadcrumbs = (
|
||||
partialTree: PartialTree,
|
||||
|
|
@ -3,8 +3,8 @@ import type {
|
|||
PartialTreeFile,
|
||||
PartialTreeFolderNode,
|
||||
PartialTreeId,
|
||||
} from '@uppy/core'
|
||||
import type { CompanionFile } from '@uppy/core/utils'
|
||||
} from '../../../index.js'
|
||||
import type { CompanionFile } from '../../../utils/index.js'
|
||||
|
||||
export interface Cache {
|
||||
[key: string]: (PartialTreeFile | PartialTreeFolderNode)[]
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import type { PartialTree } from '@uppy/core'
|
||||
import type { PartialTree } from '../../../index.js'
|
||||
|
||||
/**
|
||||
* We're interested in all 'checked' leaves of this tree,
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
import { describe, expect, it, vi } from 'vitest'
|
||||
import type {
|
||||
PartialTree,
|
||||
PartialTreeFile,
|
||||
PartialTreeFolderNode,
|
||||
PartialTreeFolderRoot,
|
||||
PartialTreeId,
|
||||
} from '@uppy/core'
|
||||
import type { CompanionFile } from '@uppy/core/utils'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
} from '../../../index.js'
|
||||
import type { CompanionFile } from '../../../utils/index.js'
|
||||
import afterFill from './afterFill.js'
|
||||
import afterOpenFolder from './afterOpenFolder.js'
|
||||
import afterScrollFolder from './afterScrollFolder.js'
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import type { PartialTree } from '@uppy/core'
|
||||
import type { PartialTree } from '../../../index.js'
|
||||
|
||||
/**
|
||||
* One-level copying is sufficient as mutations within our `partialTree` are limited to properties
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import type { UnknownPlugin } from '@uppy/core'
|
||||
import type { UnknownPlugin } from '../../index.js'
|
||||
import type {
|
||||
Body,
|
||||
CompanionClientProvider,
|
||||
|
|
@ -6,8 +6,8 @@ import type {
|
|||
CompanionFile,
|
||||
Meta,
|
||||
UppyFileNonGhost,
|
||||
} from '@uppy/core/utils'
|
||||
import { getSafeFileId } from '@uppy/core/utils'
|
||||
} from '../../utils/index.js'
|
||||
import { getSafeFileId } from '../../utils/index.js'
|
||||
import companionFileToUppyFile from './companionFileToUppyFile.js'
|
||||
|
||||
const addFiles = <M extends Meta, B extends Body>(
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import type { UnknownPlugin } from '@uppy/core'
|
||||
import type { UnknownPlugin } from '../../index.js'
|
||||
import type {
|
||||
Body,
|
||||
CompanionClientProvider,
|
||||
|
|
@ -6,7 +6,7 @@ import type {
|
|||
CompanionFile,
|
||||
Meta,
|
||||
RemoteUppyFile,
|
||||
} from '@uppy/core/utils'
|
||||
} from '../../utils/index.js'
|
||||
|
||||
const companionFileToUppyFile = <M extends Meta, B extends Body>(
|
||||
file: CompanionFile,
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import type { PartialTreeFile, PartialTreeFolderNode } from '@uppy/core'
|
||||
import type { PartialTreeFile, PartialTreeFolderNode } from '../../index.js'
|
||||
|
||||
// Shift-clicking selects a single consecutive list of items
|
||||
// starting at the previous click.
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import type Uppy from '@uppy/core'
|
||||
import type Uppy from '../../index.js'
|
||||
|
||||
const handleError =
|
||||
(uppy: Uppy<any, any>) =>
|
||||
|
|
@ -2,7 +2,8 @@
|
|||
"extends": "../../../tsconfig.shared",
|
||||
"compilerOptions": {
|
||||
"outDir": "./lib",
|
||||
"rootDir": "./src"
|
||||
"rootDir": "./src",
|
||||
"types": ["preact", "google.accounts", "google.picker", "gapi"]
|
||||
},
|
||||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"compilerOptions": {
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true,
|
||||
"types": ["preact", "node"]
|
||||
"types": ["preact", "node", "google.accounts", "google.picker", "gapi"]
|
||||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": []
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@transloadit/prettier-bytes": "^1.1.0",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
"@uppy/thumbnail-generator": "workspace:^",
|
||||
"classnames": "^2.5.1",
|
||||
"lodash": "^4.18.1",
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ import type {
|
|||
UppyFile,
|
||||
} from '@uppy/core'
|
||||
import { UIPlugin } from '@uppy/core'
|
||||
import { defaultPickerIcon } from '@uppy/core/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
import { findAllDOMElements, getDroppedFiles, toArray } from '@uppy/core/utils'
|
||||
import { defaultPickerIcon } from '@uppy/provider-views'
|
||||
import ThumbnailGenerator from '@uppy/thumbnail-generator'
|
||||
import { nanoid } from 'nanoid/non-secure'
|
||||
import type { ComponentChild, h, VNode } from 'preact'
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import Uppy from '@uppy/core'
|
||||
import { ProviderViews } from '@uppy/core/provider-views'
|
||||
import Dashboard from '@uppy/dashboard'
|
||||
import Dropbox from '@uppy/dropbox'
|
||||
import GoogleDrive from '@uppy/google-drive'
|
||||
import { ProviderViews } from '@uppy/provider-views'
|
||||
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest'
|
||||
import { page, userEvent } from 'vitest/browser'
|
||||
import { worker } from './setup.js'
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
@use "sass:color";
|
||||
@use '@uppy/core/src/_utils.scss';
|
||||
@use '@uppy/core/src/_variables.scss';
|
||||
@use '@uppy/provider-views/src/style.scss' as style3;
|
||||
@use '@uppy/core/src/provider-views/style.scss' as style3;
|
||||
|
||||
// Component-specific css imports
|
||||
@use 'components/FileItem/index.scss';
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../thumbnail-generator/tsconfig.build.json"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../thumbnail-generator/tsconfig.build.json"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import {
|
|||
Provider,
|
||||
tokenStorage,
|
||||
} from '@uppy/core/companion-client'
|
||||
import { ProviderViews } from '@uppy/core/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
import { ProviderViews } from '@uppy/provider-views'
|
||||
// biome-ignore lint/style/useImportType: h is not a type
|
||||
import { type ComponentChild, h } from 'preact'
|
||||
import packageJson from '../package.json' with { type: 'json' }
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import {
|
|||
Provider,
|
||||
tokenStorage,
|
||||
} from '@uppy/core/companion-client'
|
||||
import { ProviderViews } from '@uppy/core/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
import { ProviderViews } from '@uppy/provider-views'
|
||||
// biome-ignore lint/style/useImportType: h is not a type
|
||||
import { type ComponentChild, h } from 'preact'
|
||||
import packageJson from '../package.json' with { type: 'json' }
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@ import {
|
|||
RequestClient,
|
||||
tokenStorage,
|
||||
} from '@uppy/core/companion-client'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
import {
|
||||
GoogleDriveIcon,
|
||||
GooglePickerView,
|
||||
type PickedItem,
|
||||
} from '@uppy/provider-views'
|
||||
} from '@uppy/core/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
|
||||
import packageJson from '../package.json' with { type: 'json' }
|
||||
import locale from './locale.js'
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@
|
|||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type {
|
|||
PartialTreeFile,
|
||||
PartialTreeFolderNode,
|
||||
} from '@uppy/core'
|
||||
import { ProviderViews } from '@uppy/provider-views'
|
||||
import { ProviderViews } from '@uppy/core/provider-views'
|
||||
|
||||
export default class DriveProviderViews<
|
||||
M extends Meta,
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import {
|
|||
Provider,
|
||||
tokenStorage,
|
||||
} from '@uppy/core/companion-client'
|
||||
import type { ProviderViews } from '@uppy/core/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
import type { ProviderViews } from '@uppy/provider-views'
|
||||
// biome-ignore lint/style/useImportType: h is not a type
|
||||
import { type ComponentChild, h } from 'preact'
|
||||
import packageJson from '../package.json' with { type: 'json' }
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@ import {
|
|||
RequestClient,
|
||||
tokenStorage,
|
||||
} from '@uppy/core/companion-client'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
import {
|
||||
GooglePhotosIcon,
|
||||
GooglePickerView,
|
||||
type PickedItem,
|
||||
} from '@uppy/provider-views'
|
||||
} from '@uppy/core/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
|
||||
import packageJson from '../package.json' with { type: 'json' }
|
||||
import locale from './locale.js'
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@
|
|||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@
|
|||
"typecheck": "tsc --build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
"@uppy/transloadit": "workspace:^",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { Body, Meta, MinimalRequiredUppyFile, Uppy } from '@uppy/core'
|
||||
import { UIPlugin, type UIPluginOptions } from '@uppy/core'
|
||||
import { FilterInput, SearchView } from '@uppy/core/provider-views'
|
||||
import { RateLimitedQueue } from '@uppy/core/utils'
|
||||
import { FilterInput, SearchView } from '@uppy/provider-views'
|
||||
import {
|
||||
Assembly,
|
||||
type AssemblyResult,
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@
|
|||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../transloadit/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import {
|
|||
Provider,
|
||||
tokenStorage,
|
||||
} from '@uppy/core/companion-client'
|
||||
import { ProviderViews } from '@uppy/core/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
import { ProviderViews } from '@uppy/provider-views'
|
||||
// biome-ignore lint/style/useImportType: h is not a type
|
||||
import { type ComponentChild, h } from 'preact'
|
||||
import packageJson from '../package.json' with { type: 'json' }
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
tsconfig.*
|
||||
|
|
@ -1,437 +0,0 @@
|
|||
# @uppy/provider-views
|
||||
|
||||
## 5.2.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 50e2420: Improve Google Drive Picker folder picking: Resolve also folders inside shared drives (but not symlinks to folders)
|
||||
- Updated dependencies [648f245]
|
||||
- @uppy/utils@7.1.5
|
||||
|
||||
## 5.2.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 5684efa: Refactor internal components
|
||||
|
||||
## 5.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- e661348: Allow selecting folders with Google Drive Picker. They will be recursively resolved.
|
||||
- 79e6460: - Add PluginTypeRegistry and typed getPlugin overload in @uppy/core
|
||||
- Register plugin ids across packages so uppy.getPlugin('Dashboard' | 'Webcam') returns the concrete plugin type and removes the need to pass generics in getPlugin()
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4817585: added icon to webdav provider, add css to truncate large file names
|
||||
- Updated dependencies [79e6460]
|
||||
- Updated dependencies [ac12f35]
|
||||
- Updated dependencies [4817585]
|
||||
- @uppy/core@5.2.0
|
||||
- @uppy/utils@7.1.4
|
||||
|
||||
## 5.1.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 46e339a: Add missing lodash dependency
|
||||
|
||||
## 5.1.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 0c16fe4: - Rename `getTagFile` to `companionFileToUppyFile`
|
||||
- Updated dependencies [0c16fe4]
|
||||
- @uppy/core@5.1.1
|
||||
- @uppy/utils@7.1.1
|
||||
|
||||
## 5.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 5ba2c1c: Introduce the concept of server-side search and add support for it for the Dropbox provider. Previously, only client-side filtering in the currently viewed folder was possible, which was limiting. Now users using Companion with Dropbox can perform a search across their entire account.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [5ba2c1c]
|
||||
- @uppy/utils@7.1.0
|
||||
- @uppy/core@5.1.0
|
||||
|
||||
## 5.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 975317d: Removed "main" from package.json, since export maps serve as the contract for the public API.
|
||||
- Updated dependencies [4b6a76c]
|
||||
- Updated dependencies [975317d]
|
||||
- Updated dependencies [9bac4c8]
|
||||
- @uppy/core@5.0.2
|
||||
- @uppy/utils@7.0.2
|
||||
|
||||
## 5.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 49522ec: Remove preact/compat imports in favor of preact, preventing JSX type issues in certain setups.
|
||||
- Updated dependencies [49522ec]
|
||||
- @uppy/utils@7.0.1
|
||||
- @uppy/core@5.0.1
|
||||
|
||||
## 5.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- c5b51f6: ### Export maps for all packages
|
||||
|
||||
All packages now have export maps. This is a breaking change in two cases:
|
||||
|
||||
1. The css imports have changed from `@uppy[package]/dist/styles.min.css` to `@uppy[package]/css/styles.min.css`
|
||||
2. You were importing something that wasn't exported from the root, for instance `@uppy/core/lib/foo.js`. You can now only import things we explicitly exported.
|
||||
|
||||
#### Changed imports for `@uppy/react`, `@uppy/vue`, and `@uppy/svelte`
|
||||
|
||||
Some components, like Dashboard, require a peer dependency to work but since all components were exported from a single file you were forced to install all peer dependencies. Even if you never imported, for instance, the status bar component.
|
||||
|
||||
Every component that requires a peer dependency has now been moved to a subpath, such as `@uppy/react/dashboard`, so you only need to install the peer dependencies you need.
|
||||
|
||||
**Example for `@uppy/react`:**
|
||||
|
||||
**Before:**
|
||||
|
||||
```javascript
|
||||
import { Dashboard, StatusBar } from "@uppy/react";
|
||||
```
|
||||
|
||||
**Now:**
|
||||
|
||||
```javascript
|
||||
import Dashboard from "@uppy/react/dashboard";
|
||||
import StatusBar from "@uppy/react/status-bar";
|
||||
```
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [d301c01]
|
||||
- Updated dependencies [c5b51f6]
|
||||
- @uppy/utils@7.0.0
|
||||
- @uppy/core@5.0.0
|
||||
|
||||
## 4.5.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 2f62f40: VirtualList now virtualises rows in the file list, as was intented. This means better performance when scrolling thousands for files.
|
||||
- Updated dependencies [eee05db]
|
||||
- @uppy/core@4.5.3
|
||||
|
||||
## 4.5.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 1b1a9e3: Define "files" in package.json
|
||||
- c66fd85: Fix package.json import
|
||||
- Updated dependencies [1b1a9e3]
|
||||
- @uppy/utils@6.2.2
|
||||
- @uppy/core@4.5.2
|
||||
|
||||
## 4.5.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 0c24c5a: Use TypeScript compiler instead of Babel
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [0c24c5a]
|
||||
- Updated dependencies [0c24c5a]
|
||||
- @uppy/core@4.5.0
|
||||
- @uppy/utils@6.2.0
|
||||
|
||||
## 4.4.5
|
||||
|
||||
Released: 2025-06-30
|
||||
Included in: Uppy v4.18.0
|
||||
|
||||
- @uppy/provider-views: improve metadata handling in Google Photos Picker (ben rosenbaum / #5769)
|
||||
|
||||
## 4.4.4
|
||||
|
||||
Released: 2025-06-02
|
||||
Included in: Uppy v4.17.0
|
||||
|
||||
- @uppy/provider-views: fix: handle pagination for Google Photos picker (fixes #5765) (ben rosenbaum / #5768)
|
||||
|
||||
## 4.4.3
|
||||
|
||||
Released: 2025-04-14
|
||||
Included in: Uppy v4.15.0
|
||||
|
||||
- @uppy/provider-views: Fix google photos picker (Mikael Finstad / #5717)
|
||||
|
||||
## 4.4.2
|
||||
|
||||
Released: 2025-02-03
|
||||
Included in: Uppy v4.13.2
|
||||
|
||||
- @uppy/provider-views: fix google photos picker videos (Mikael Finstad / #5635)
|
||||
- @uppy/core,@uppy/google-drive-picker,@uppy/google-photos-picker,@uppy/provider-views:
|
||||
|
||||
## 4.4.1
|
||||
|
||||
Released: 2025-01-09
|
||||
Included in: Uppy v4.12.2
|
||||
|
||||
- @uppy/provider-views: Import types consistently from @uppy/core (Merlijn Vos / #5589)
|
||||
- @uppy/provider-views: fix incorrect import (Merlijn Vos / #5588)
|
||||
|
||||
## 4.4.0
|
||||
|
||||
Released: 2025-01-08
|
||||
Included in: Uppy v4.12.0
|
||||
|
||||
- @uppy/unsplash,@uppy/provider-views: add utmSource option (Merlijn Vos / #5580)
|
||||
|
||||
## 4.3.0
|
||||
|
||||
Released: 2025-01-06
|
||||
Included in: Uppy v4.11.0
|
||||
|
||||
- @uppy/angular,@uppy/audio,@uppy/aws-s3,@uppy/box,@uppy/companion-client,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/drag-drop,@uppy/drop-target,@uppy/dropbox,@uppy/facebook,@uppy/file-input,@uppy/form,@uppy/golden-retriever,@uppy/google-drive-picker,@uppy/google-drive,@uppy/google-photos-picker,@uppy/google-photos,@uppy/image-editor,@uppy/informer,@uppy/instagram,@uppy/locales,@uppy/onedrive,@uppy/progress-bar,@uppy/provider-views,@uppy/react,@uppy/remote-sources,@uppy/screen-capture,@uppy/status-bar,@uppy/thumbnail-generator,@uppy/transloadit,@uppy/tus,@uppy/unsplash,@uppy/url,@uppy/vue,@uppy/webcam,@uppy/webdav,@uppy/xhr-upload,@uppy/zoom: Remove "paths" from all tsconfig's (Merlijn Vos / #5572)
|
||||
|
||||
## 4.2.1
|
||||
|
||||
Released: 2025-01-06
|
||||
Included in: Uppy v4.10.0
|
||||
|
||||
- @uppy/core,@uppy/dashboard,@uppy/provider-views,@uppy/store-redux,@uppy/url: build(deps): bump nanoid from 5.0.7 to 5.0.9 (dependabot[bot] / #5544)
|
||||
|
||||
## 4.1.0
|
||||
|
||||
Released: 2024-12-05
|
||||
Included in: Uppy v4.8.0
|
||||
|
||||
- @uppy/provider-views: Google picker scope (Mikael Finstad / #5535)
|
||||
- @uppy/core,@uppy/provider-views: move useStore out of core (Mikael Finstad / #5533)
|
||||
- @uppy/audio,@uppy/aws-s3,@uppy/box,@uppy/companion-client,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/drag-drop,@uppy/drop-target,@uppy/dropbox,@uppy/facebook,@uppy/file-input,@uppy/form,@uppy/golden-retriever,@uppy/google-drive,@uppy/google-photos,@uppy/image-editor,@uppy/informer,@uppy/instagram,@uppy/locales,@uppy/onedrive,@uppy/progress-bar,@uppy/provider-views,@uppy/react,@uppy/remote-sources,@uppy/screen-capture,@uppy/status-bar,@uppy/store-default,@uppy/thumbnail-generator,@uppy/transloadit,@uppy/tus,@uppy/unsplash,@uppy/url,@uppy/utils,@uppy/vue,@uppy/webcam,@uppy/xhr-upload,@uppy/zoom: cleanup tsconfig (Mikael Finstad / #5520)
|
||||
|
||||
## 4.0.2
|
||||
|
||||
Released: 2024-10-31
|
||||
Included in: Uppy v4.6.0
|
||||
|
||||
- @uppy/aws-s3,@uppy/box,@uppy/companion-client,@uppy/core,@uppy/dashboard,@uppy/drag-drop,@uppy/dropbox,@uppy/facebook,@uppy/file-input,@uppy/form,@uppy/golden-retriever,@uppy/google-drive,@uppy/google-photos,@uppy/image-editor,@uppy/informer,@uppy/instagram,@uppy/locales,@uppy/onedrive,@uppy/progress-bar,@uppy/provider-views,@uppy/react-native,@uppy/react,@uppy/redux-dev-tools,@uppy/screen-capture,@uppy/status-bar,@uppy/store-default,@uppy/store-redux,@uppy/svelte,@uppy/thumbnail-generator,@uppy/transloadit,@uppy/tus,@uppy/unsplash,@uppy/url,@uppy/utils,@uppy/vue,@uppy/webcam,@uppy/xhr-upload,@uppy/zoom: Fix links (Anthony Veaudry / #5492)
|
||||
|
||||
## 4.0.0
|
||||
|
||||
Released: 2024-07-10
|
||||
Included in: Uppy v4.0.0
|
||||
|
||||
- @uppy/provider-views: `.openFolder()` - return progress indication (Evgenia Karunus / #5306)
|
||||
|
||||
## 4.0.0-beta.11
|
||||
|
||||
Released: 2024-07-02
|
||||
Included in: Uppy v4.0.0-beta.14
|
||||
|
||||
- @uppy/provider-views: `afterFill()` - add loading progress (Evgenia Karunus / #5288)
|
||||
|
||||
## 4.0.0-beta.10
|
||||
|
||||
Released: 2024-06-27
|
||||
Included in: Uppy v4.0.0-beta.13
|
||||
|
||||
- @uppy/provider-views: `Loader.tsx` - delete the file (Evgenia Karunus / #5284)
|
||||
- @uppy/provider-views: Provider views rewrite (.files, .folders => .partialTree) (Evgenia Karunus / #5050)
|
||||
|
||||
## 4.0.0-beta.9
|
||||
|
||||
Released: 2024-06-18
|
||||
Included in: Uppy v4.0.0-beta.12
|
||||
|
||||
- @uppy/provider-views: Renames & `eslint-disable react/require-default-props` removal (Evgenia Karunus / #5251)
|
||||
- examples,@uppy/locales,@uppy/provider-views,@uppy/transloadit: Release: uppy@3.26.1 (github-actions[bot] / #5242)
|
||||
- @uppy/provider-views: fix wrong font for files (Merlijn Vos / #5234)
|
||||
|
||||
## 4.0.0-beta.7
|
||||
|
||||
Released: 2024-06-04
|
||||
Included in: Uppy v4.0.0-beta.10
|
||||
|
||||
- @uppy/provider-views: PartialTree - get rid of `.onFirstRender()` (Evgenia Karunus / #5187)
|
||||
|
||||
## 4.0.0-beta.4
|
||||
|
||||
Released: 2024-04-29
|
||||
Included in: Uppy v4.0.0-beta.4
|
||||
|
||||
- @uppy/dashboard,@uppy/provider-views: Remove JSX global type everywhere (Merlijn Vos / #5117)
|
||||
- @uppy/provider-views: bring back "loaded X files..." (Mikael Finstad / #5097)
|
||||
|
||||
## 4.0.0-beta.1
|
||||
|
||||
Released: 2024-03-28
|
||||
Included in: Uppy v4.0.0-beta.1
|
||||
|
||||
- @uppy/companion-client,@uppy/provider-views,@uppy/status-bar: fix type imports (Antoine du Hamel / #5038)
|
||||
- @uppy/provider-views: fix `super.toggleCheckbox` bug (Mikael Finstad / #5004)
|
||||
- @uppy/core,@uppy/provider-views: Fix breadcrumbs (Evgenia Karunus / #4986)
|
||||
|
||||
## 3.12.1
|
||||
|
||||
Released: 2024-06-11
|
||||
Included in: Uppy v3.26.1
|
||||
|
||||
- @uppy/provider-views: fix wrong font for files (Merlijn Vos / #5234)
|
||||
|
||||
## 3.12.0
|
||||
|
||||
Released: 2024-04-29
|
||||
Included in: Uppy v3.25.0
|
||||
|
||||
- @uppy/dashboard,@uppy/provider-views: Remove JSX global type everywhere (Merlijn Vos / #5117)
|
||||
- @uppy/provider-views: bring back "loaded X files..." (Mikael Finstad / #5097)
|
||||
|
||||
## 3.11.0
|
||||
|
||||
Released: 2024-03-27
|
||||
Included in: Uppy v3.24.0
|
||||
|
||||
- @uppy/box,@uppy/companion-client,@uppy/provider-views,@uppy/status-bar: fix type imports (Antoine du Hamel / #5038)
|
||||
- @uppy/provider-views: fix `super.toggleCheckbox` bug (Mikael Finstad / #5004)
|
||||
- @uppy/core,@uppy/provider-views: Fix breadcrumbs (Evgenia Karunus / #4986)
|
||||
|
||||
## 3.10.0
|
||||
|
||||
Released: 2024-02-28
|
||||
Included in: Uppy v3.23.0
|
||||
|
||||
- @uppy/provider-views: migrate to TS (Merlijn Vos / #4919)
|
||||
|
||||
## 3.9.0
|
||||
|
||||
Released: 2024-02-19
|
||||
Included in: Uppy v3.22.0
|
||||
|
||||
- @uppy/provider-views: update uppy-providerbrowser-viewtype--list.scss (aditya patadia / #4913)
|
||||
- @uppy/provider-views: add referrerpolicy to images (merlijn vos / #4853)
|
||||
|
||||
## 3.8.0
|
||||
|
||||
Released: 2023-12-12
|
||||
Included in: Uppy v3.21.0
|
||||
|
||||
- @uppy/provider-views: fix uploadRemoteFile undefined (Mikael Finstad / #4814)
|
||||
|
||||
## 3.5.0
|
||||
|
||||
Released: 2023-08-15
|
||||
Included in: Uppy v3.14.0
|
||||
|
||||
- @uppy/companion-client,@uppy/provider-views: make authentication optional (Dominik Schmidt / #4556)
|
||||
- @uppy/provider-views: fix ProviderView error on empty plugin.icon (Dominik Schmidt / #4553)
|
||||
|
||||
## 3.4.1
|
||||
|
||||
Released: 2023-07-20
|
||||
Included in: Uppy v3.13.0
|
||||
|
||||
- @uppy/provider-views: Add VirtualList to ProviderView (Merlijn Vos / #4566)
|
||||
- @uppy/provider-views: fix race conditions with folder loading (Mikael Finstad / #4578)
|
||||
- @uppy/provider-views: fix infinite folder loading (Mikael Finstad / #4590)
|
||||
|
||||
## 3.4.0
|
||||
|
||||
Released: 2023-07-13
|
||||
Included in: Uppy v3.12.0
|
||||
|
||||
- @uppy/provider-views: add support for remote file paths (Mikael Finstad / #4537)
|
||||
- @uppy/box,@uppy/companion,@uppy/dropbox,@uppy/google-drive,@uppy/onedrive,@uppy/provider-views: Load Google Drive / OneDrive lists 5-10x faster & always load all files (Merlijn Vos / #4513)
|
||||
|
||||
## 3.3.1
|
||||
|
||||
Released: 2023-06-19
|
||||
Included in: Uppy v3.10.0
|
||||
|
||||
- @uppy/provider-views: Fix range selection not resetting and computing correctly (Terence C / #4415)
|
||||
|
||||
## 3.3.0
|
||||
|
||||
Released: 2023-04-18
|
||||
Included in: Uppy v3.8.0
|
||||
|
||||
- @uppy/provider-views: Concurrent file listing (Mikael Finstad / #4401)
|
||||
- @uppy/core,@uppy/locales,@uppy/provider-views: User feedback adding recursive folders take 2 (Mikael Finstad / #4399)
|
||||
|
||||
## 3.2.0
|
||||
|
||||
Released: 2023-04-04
|
||||
Included in: Uppy v3.7.0
|
||||
|
||||
- @uppy/provider-views: fix race condition when adding folders (Mikael Finstad / #4384)
|
||||
- @uppy/provider-views: UI: Use form attribite with a form in doc root to prevent outer form submit (Artur Paikin / #4283)
|
||||
|
||||
## 3.0.2
|
||||
|
||||
Released: 2022-10-24
|
||||
Included in: Uppy v3.2.2
|
||||
|
||||
- @uppy/provider-views: Fix button and input inconsistent font and style (Artur Paikin / #4162)
|
||||
|
||||
## 3.0.1
|
||||
|
||||
Released: 2022-09-25
|
||||
Included in: Uppy v3.1.0
|
||||
|
||||
- @uppy/audio,@uppy/aws-s3-multipart,@uppy/aws-s3,@uppy/box,@uppy/companion-client,@uppy/companion,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/drag-drop,@uppy/drop-target,@uppy/dropbox,@uppy/facebook,@uppy/file-input,@uppy/form,@uppy/golden-retriever,@uppy/google-drive,@uppy/image-editor,@uppy/informer,@uppy/instagram,@uppy/locales,@uppy/onedrive,@uppy/progress-bar,@uppy/provider-views,@uppy/react,@uppy/redux-dev-tools,@uppy/remote-sources,@uppy/screen-capture,@uppy/status-bar,@uppy/store-default,@uppy/store-redux,@uppy/svelte,@uppy/thumbnail-generator,@uppy/transloadit,@uppy/tus,@uppy/unsplash,@uppy/url,@uppy/utils,@uppy/vue,@uppy/webcam,@uppy/xhr-upload,@uppy/zoom: add missing entries to changelog for individual packages (Antoine du Hamel / #4092)
|
||||
|
||||
## 3.0.0-beta.3
|
||||
|
||||
Released: 2022-08-16
|
||||
Included in: Uppy v3.0.0-beta.5
|
||||
|
||||
- @uppy/provider-views: Reset filter input correctly in provider views (Merlijn Vos / #3978)
|
||||
- @uppy/provider-views: core validateRestrictions: return error directly vs the result/reason obj (Artur Paikin / #3951)
|
||||
|
||||
## 2.1.2
|
||||
|
||||
Released: 2022-07-06
|
||||
Included in: Uppy v2.12.2
|
||||
|
||||
- @uppy/provider-views: improve logging (Mikael Finstad / #3638)
|
||||
|
||||
## 2.1.1
|
||||
|
||||
Released: 2022-05-30
|
||||
Included in: Uppy v2.11.0
|
||||
|
||||
- @uppy/provider-views: Add onKeyPress event handler to capture e.shiftKey, unavailable in onChange (Artur Paikin / #3768)
|
||||
|
||||
## 2.1.0
|
||||
|
||||
Released: 2022-05-14
|
||||
Included in: Uppy v2.10.0
|
||||
|
||||
- @uppy/provider-views: refactor to ESM (Antoine du Hamel / #3715)
|
||||
|
||||
## 2.0.8
|
||||
|
||||
Released: 2022-03-16
|
||||
Included in: Uppy v2.8.0
|
||||
|
||||
- @uppy/provider-views: provider-view: fix breadcrumbs (Artur Paikin / #3535)
|
||||
|
||||
## 2.0.7
|
||||
|
||||
Released: 2022-02-14
|
||||
Included in: Uppy v2.5.0
|
||||
|
||||
- @uppy/companion-client,@uppy/companion,@uppy/provider-views,@uppy/robodog: Finishing touches on Companion dynamic Oauth (Renée Kooi / #2802)
|
||||
- @uppy/provider-views: Unsplash: UI improvements (Artur Paikin / #3438)
|
||||
|
||||
## 3.0.0
|
||||
|
||||
Released: 2022-08-22
|
||||
Included in: Uppy v3.0.0
|
||||
|
||||
- Switch to ESM
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Transloadit
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
# @uppy/provider-views
|
||||
|
||||
<img src="https://uppy.io/img/logo.svg" width="120" alt="Uppy logo: a smiling puppy above a pink upwards arrow" align="right">
|
||||
|
||||
[](https://www.npmjs.com/package/@uppy/provider-views)
|
||||

|
||||

|
||||

|
||||
|
||||
View library for Uppy remote provider plugins.
|
||||
|
||||
Uppy is being developed by the folks at [Transloadit](https://transloadit.com),
|
||||
a versatile file encoding service.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
import Plugin from '@uppy/core/lib/plugin'
|
||||
import { ProviderViews } from '@uppy/provider-views'
|
||||
|
||||
class GoogleDrive extends UIPlugin {
|
||||
install() {
|
||||
this.view = new ProviderViews(this)
|
||||
// snip
|
||||
}
|
||||
|
||||
render(state) {
|
||||
return this.view.render(state)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
> Unless you are creating a custom provider plugin, you do not need to install
|
||||
> this.
|
||||
|
||||
```bash
|
||||
$ npm install @uppy/provider-views
|
||||
```
|
||||
|
||||
<!-- Undocumented currently
|
||||
## Documentation
|
||||
|
||||
Documentation for this plugin can be found on the [Uppy website](https://uppy.io/docs/DOC_PAGE_HERE).
|
||||
-->
|
||||
|
||||
## License
|
||||
|
||||
[The MIT License](./LICENSE).
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
{
|
||||
"name": "@uppy/provider-views",
|
||||
"description": "View library for Uppy remote provider plugins.",
|
||||
"version": "5.2.2",
|
||||
"license": "MIT",
|
||||
"style": "dist/style.min.css",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
||||
"typecheck": "tsc --build",
|
||||
"test": "vitest run --environment=jsdom --silent='passed-only'"
|
||||
},
|
||||
"keywords": [
|
||||
"file uploader",
|
||||
"uppy"
|
||||
],
|
||||
"homepage": "https://uppy.io",
|
||||
"bugs": {
|
||||
"url": "https://github.com/transloadit/uppy/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
"lib",
|
||||
"dist",
|
||||
"CHANGELOG.md"
|
||||
],
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.min.css": "./dist/style.min.css",
|
||||
"./css/style.css": "./dist/style.css",
|
||||
"./css/style.scss": "./src/style.scss",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"classnames": "^2.5.1",
|
||||
"lodash": "^4.18.1",
|
||||
"nanoid": "^5.1.11",
|
||||
"p-queue": "^9.3.0",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/gapi": "^0.0.47",
|
||||
"@types/google.accounts": "^0.0.14",
|
||||
"@types/google.picker": "^0.0.42",
|
||||
"cssnano": "^8.0.1",
|
||||
"jsdom": "^29.1.1",
|
||||
"postcss": "^8.5.15",
|
||||
"postcss-cli": "^11.0.1",
|
||||
"sass": "^1.89.2",
|
||||
"typescript": "^5.8.3",
|
||||
"vitest": "^4.1.6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@uppy/core": "workspace:^"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.shared",
|
||||
"compilerOptions": {
|
||||
"outDir": "./lib",
|
||||
"rootDir": "./src",
|
||||
"types": ["google.accounts", "google.picker", "gapi"]
|
||||
},
|
||||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.shared",
|
||||
"compilerOptions": {
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true,
|
||||
"types": ["google.accounts", "google.picker", "gapi"]
|
||||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"extends": ["//"],
|
||||
"tasks": {
|
||||
"build": {
|
||||
"dependsOn": ["^build", "@uppy/core#build"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,9 +7,6 @@
|
|||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../tus/tsconfig.build.json"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
},
|
||||
"include": ["./package.json", "./src/**/*.*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../tus/tsconfig.build.json"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
"preact": "^10.29.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import {
|
|||
SearchProvider,
|
||||
tokenStorage,
|
||||
} from '@uppy/core/companion-client'
|
||||
import { SearchProviderViews } from '@uppy/core/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/core/utils'
|
||||
import { SearchProviderViews } from '@uppy/provider-views'
|
||||
// biome-ignore lint/style/useImportType: h is not a type
|
||||
import { type ComponentChild, h } from 'preact'
|
||||
import packageJson from '../package.json' with { type: 'json' }
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
"include": ["./src/**/*.*"],
|
||||
"exclude": ["./src/**/*.test.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../provider-views/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../core/tsconfig.build.json"
|
||||
}
|
||||
|
|
|
|||
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