diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 778b35e68..04127f910 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -33,9 +33,7 @@ jobs: node-version: lts/* cache: yarn - name: Install dependencies - # List all projects that use a custom ESLint config: run: - corepack yarn workspaces focus @uppy/angular @uppy-example/angular - @uppy-example/react-native-expo @uppy/react-native @uppy-dev/build + corepack yarn workspaces focus @uppy-dev/build - name: Run linter run: corepack yarn run check:ci diff --git a/examples/angular-example/tsconfig.spec.json b/examples/angular-example/tsconfig.spec.json deleted file mode 100644 index 47e3dd755..000000000 --- a/examples/angular-example/tsconfig.spec.json +++ /dev/null @@ -1,9 +0,0 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./out-tsc/spec", - "types": ["jasmine"] - }, - "include": ["src/**/*.spec.ts", "src/**/*.d.ts"] -} diff --git a/examples/angular-example/.editorconfig b/examples/angular/.editorconfig similarity index 100% rename from examples/angular-example/.editorconfig rename to examples/angular/.editorconfig diff --git a/examples/angular-example/.eslintrc.json b/examples/angular/.eslintrc.json similarity index 100% rename from examples/angular-example/.eslintrc.json rename to examples/angular/.eslintrc.json diff --git a/examples/angular-example/.gitignore b/examples/angular/.gitignore similarity index 100% rename from examples/angular-example/.gitignore rename to examples/angular/.gitignore diff --git a/examples/angular-example/.vscode/extensions.json b/examples/angular/.vscode/extensions.json similarity index 100% rename from examples/angular-example/.vscode/extensions.json rename to examples/angular/.vscode/extensions.json diff --git a/examples/angular-example/.vscode/launch.json b/examples/angular/.vscode/launch.json similarity index 100% rename from examples/angular-example/.vscode/launch.json rename to examples/angular/.vscode/launch.json diff --git a/examples/angular-example/.vscode/tasks.json b/examples/angular/.vscode/tasks.json similarity index 100% rename from examples/angular-example/.vscode/tasks.json rename to examples/angular/.vscode/tasks.json diff --git a/examples/angular-example/README.md b/examples/angular/README.md similarity index 100% rename from examples/angular-example/README.md rename to examples/angular/README.md diff --git a/examples/angular-example/angular.json b/examples/angular/angular.json similarity index 100% rename from examples/angular-example/angular.json rename to examples/angular/angular.json diff --git a/examples/angular-example/package.json b/examples/angular/package.json similarity index 61% rename from examples/angular-example/package.json rename to examples/angular/package.json index 97ba1ea8c..b43265f11 100644 --- a/examples/angular-example/package.json +++ b/examples/angular/package.json @@ -1,13 +1,11 @@ { - "name": "@uppy-example/angular", + "name": "example-angular", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", - "watch": "ng build --watch --configuration development", - "test": "ng test", - "lint": "ng lint" + "watch": "ng build --watch --configuration development" }, "private": true, "dependencies": { @@ -32,20 +30,8 @@ }, "devDependencies": { "@angular-devkit/build-angular": "^18.0.2", - "@angular-eslint/eslint-plugin": "18.0.1", - "@angular-eslint/eslint-plugin-template": "18.0.1", "@angular/cli": "^18.0.2", "@angular/compiler-cli": "^18.0.0", - "@types/jasmine": "~5.1.0", - "@typescript-eslint/eslint-plugin": "^7.2.0", - "@typescript-eslint/parser": "^7.2.0", - "eslint": "^8.57.0", - "jasmine-core": "~5.1.0", - "karma": "~6.4.0", - "karma-chrome-launcher": "~3.2.0", - "karma-coverage": "~2.2.0", - "karma-jasmine": "~5.1.0", - "karma-jasmine-html-reporter": "~2.1.0", "typescript": "~5.4" } } diff --git a/examples/angular-example/src/app/app.component.css b/examples/angular/src/app/app.component.css similarity index 100% rename from examples/angular-example/src/app/app.component.css rename to examples/angular/src/app/app.component.css diff --git a/examples/angular-example/src/app/app.component.html b/examples/angular/src/app/app.component.html similarity index 100% rename from examples/angular-example/src/app/app.component.html rename to examples/angular/src/app/app.component.html diff --git a/examples/angular-example/src/app/app.component.ts b/examples/angular/src/app/app.component.ts similarity index 100% rename from examples/angular-example/src/app/app.component.ts rename to examples/angular/src/app/app.component.ts diff --git a/examples/angular-example/src/app/app.module.ts b/examples/angular/src/app/app.module.ts similarity index 100% rename from examples/angular-example/src/app/app.module.ts rename to examples/angular/src/app/app.module.ts diff --git a/examples/angular-example/src/assets/.gitkeep b/examples/angular/src/assets/.gitkeep similarity index 100% rename from examples/angular-example/src/assets/.gitkeep rename to examples/angular/src/assets/.gitkeep diff --git a/examples/angular-example/src/favicon.ico b/examples/angular/src/favicon.ico similarity index 100% rename from examples/angular-example/src/favicon.ico rename to examples/angular/src/favicon.ico diff --git a/examples/angular-example/src/index.html b/examples/angular/src/index.html similarity index 100% rename from examples/angular-example/src/index.html rename to examples/angular/src/index.html diff --git a/examples/angular-example/src/main.ts b/examples/angular/src/main.ts similarity index 100% rename from examples/angular-example/src/main.ts rename to examples/angular/src/main.ts diff --git a/examples/angular-example/src/styles.css b/examples/angular/src/styles.css similarity index 100% rename from examples/angular-example/src/styles.css rename to examples/angular/src/styles.css diff --git a/examples/angular-example/tsconfig.app.json b/examples/angular/tsconfig.app.json similarity index 100% rename from examples/angular-example/tsconfig.app.json rename to examples/angular/tsconfig.app.json diff --git a/examples/angular-example/tsconfig.json b/examples/angular/tsconfig.json similarity index 100% rename from examples/angular-example/tsconfig.json rename to examples/angular/tsconfig.json diff --git a/examples/aws-companion/package.json b/examples/aws-companion/package.json index f75eae1be..619aa7c00 100644 --- a/examples/aws-companion/package.json +++ b/examples/aws-companion/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/aws-companion", + "name": "example-aws-companion", "version": "0.0.0", "type": "module", "dependencies": { diff --git a/examples/aws-nodejs/package.json b/examples/aws-nodejs/package.json index 7cf824ef9..27eda12df 100644 --- a/examples/aws-nodejs/package.json +++ b/examples/aws-nodejs/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/aws-nodejs", + "name": "example-aws-nodejs", "version": "1.0.0", "description": "Uppy for AWS S3 with a custom Node.js backend for signing URLs", "main": "index.js", diff --git a/examples/aws-php/package.json b/examples/aws-php/package.json index bf28bb25e..5d8d275a3 100644 --- a/examples/aws-php/package.json +++ b/examples/aws-php/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/aws-php", + "name": "example-aws-php", "version": "0.0.0", "dependencies": { "@uppy/aws-s3": "workspace:*", diff --git a/examples/bundled/index.html b/examples/bundled/index.html deleted file mode 100644 index 492cabe65..000000000 --- a/examples/bundled/index.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - uppy - - - -
-

Uppy

- -
- - -
-
- - - - diff --git a/examples/bundled/index.js b/examples/bundled/index.js deleted file mode 100644 index 59518791f..000000000 --- a/examples/bundled/index.js +++ /dev/null @@ -1,72 +0,0 @@ -import Uppy from '@uppy/core' -import Dashboard from '@uppy/dashboard' -import GoogleDrive from '@uppy/google-drive' -import Instagram from '@uppy/instagram' -import Tus from '@uppy/tus' -import Url from '@uppy/url' -import Webcam from '@uppy/webcam' - -import '@uppy/core/dist/style.css' -import '@uppy/dashboard/dist/style.css' -import '@uppy/url/dist/style.css' -import '@uppy/webcam/dist/style.css' - -const TUS_ENDPOINT = 'https://tusd.tusdemo.net/files/' - -const uppy = new Uppy({ - debug: true, - meta: { - username: 'John', - license: 'Creative Commons', - }, -}) - .use(Dashboard, { - trigger: '#pick-files', - target: '#upload-form', - inline: true, - metaFields: [ - { id: 'license', name: 'License', placeholder: 'specify license' }, - { id: 'caption', name: 'Caption', placeholder: 'add caption' }, - ], - showProgressDetails: true, - proudlyDisplayPoweredByUppy: true, - note: '2 files, images and video only', - restrictions: { requiredMetaFields: ['caption'] }, - }) - .use(GoogleDrive, { - target: Dashboard, - companionUrl: 'http://localhost:3020', - }) - .use(Instagram, { target: Dashboard, companionUrl: 'http://localhost:3020' }) - .use(Url, { target: Dashboard, companionUrl: 'http://localhost:3020' }) - .use(Webcam, { target: Dashboard }) - .use(Tus, { endpoint: TUS_ENDPOINT }) - -// You can optinally enable the Golden Retriever plugin — it will -// restore files after a browser crash / accidental closed window -// see more at https://uppy.io/docs/golden-retriever/ -// -// .use(GoldenRetriever, { serviceWorker: true }) - -uppy.on('complete', (result) => { - if (result.failed.length === 0) { - console.log('Upload successful 😀') - } else { - console.warn('Upload failed 😞') - } - console.log('successful files:', result.successful) - console.log('failed files:', result.failed) -}) - -// uncomment if you enable Golden Retriever -// -// if ('serviceWorker' in navigator) { -// navigator.serviceWorker -// .register('/sw.js') -// .then((registration) => { -// console.log('ServiceWorker registration successful with scope: ', registration.scope) -// }) -// .catch((error) => { -// console.log('Registration failed with ' + error) -// }) -// } diff --git a/examples/bundled/package.json b/examples/bundled/package.json deleted file mode 100644 index 5c7d1b3c4..000000000 --- a/examples/bundled/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "@uppy-example/bundled", - "version": "0.0.0", - "dependencies": { - "@uppy/core": "workspace:*", - "@uppy/dashboard": "workspace:*", - "@uppy/google-drive": "workspace:*", - "@uppy/instagram": "workspace:*", - "@uppy/tus": "workspace:*", - "@uppy/url": "workspace:*", - "@uppy/webcam": "workspace:*" - }, - "devDependencies": { - "parcel": "^2.0.0" - }, - "private": true, - "type": "module", - "scripts": { - "build": "parcel build index.html", - "dev": "parcel index.html" - } -} diff --git a/examples/bundled/sw.js b/examples/bundled/sw.js deleted file mode 100644 index 85f1830ea..000000000 --- a/examples/bundled/sw.js +++ /dev/null @@ -1,67 +0,0 @@ -// This service worker is needed for Golden Retriever plugin, -// only include if you’ve enabled it -// https://uppy.io/docs/golden-retriever/ - -/* globals clients */ - -const fileCache = Object.create(null) - -function getCache(name) { - if (!fileCache[name]) { - fileCache[name] = Object.create(null) - } - return fileCache[name] -} - -self.addEventListener('install', (event) => { - console.log('Installing Uppy Service Worker...') - - event.waitUntil(Promise.resolve().then(() => self.skipWaiting())) -}) - -self.addEventListener('activate', (event) => { - event.waitUntil(self.clients.claim()) -}) - -function sendMessageToAllClients(msg) { - clients.matchAll().then((clients) => { - clients.forEach((client) => { - client.postMessage(msg) - }) - }) -} - -function addFile(store, file) { - getCache(store)[file.id] = file.data - console.log('Added file blob to service worker cache:', file.data) -} - -function removeFile(store, fileID) { - delete getCache(store)[fileID] - console.log('Removed file blob from service worker cache:', fileID) -} - -function getFiles(store) { - sendMessageToAllClients({ - type: 'uppy/ALL_FILES', - store, - files: getCache(store), - }) -} - -self.addEventListener('message', (event) => { - switch (event.data.type) { - case 'uppy/ADD_FILE': - addFile(event.data.store, event.data.file) - break - case 'uppy/REMOVE_FILE': - removeFile(event.data.store, event.data.fileID) - break - case 'uppy/GET_FILES': - getFiles(event.data.store) - break - - default: - throw new Error('unreachable') - } -}) diff --git a/examples/cdn-example/README.md b/examples/cdn/README.md similarity index 100% rename from examples/cdn-example/README.md rename to examples/cdn/README.md diff --git a/examples/cdn-example/index.html b/examples/cdn/index.html similarity index 100% rename from examples/cdn-example/index.html rename to examples/cdn/index.html diff --git a/examples/cdn-example/package.json b/examples/cdn/package.json similarity index 86% rename from examples/cdn-example/package.json rename to examples/cdn/package.json index c785e5676..84ca87ec1 100644 --- a/examples/cdn-example/package.json +++ b/examples/cdn/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/cdn", + "name": "example-cdn", "version": "0.0.0", "private": true, "scripts": { diff --git a/examples/custom-provider/README.md b/examples/companion-custom-provider/README.md similarity index 100% rename from examples/custom-provider/README.md rename to examples/companion-custom-provider/README.md diff --git a/examples/custom-provider/client/MyCustomProvider.jsx b/examples/companion-custom-provider/client/MyCustomProvider.jsx similarity index 100% rename from examples/custom-provider/client/MyCustomProvider.jsx rename to examples/companion-custom-provider/client/MyCustomProvider.jsx diff --git a/examples/custom-provider/client/main.js b/examples/companion-custom-provider/client/main.js similarity index 100% rename from examples/custom-provider/client/main.js rename to examples/companion-custom-provider/client/main.js diff --git a/examples/custom-provider/index.html b/examples/companion-custom-provider/index.html similarity index 100% rename from examples/custom-provider/index.html rename to examples/companion-custom-provider/index.html diff --git a/examples/custom-provider/package.json b/examples/companion-custom-provider/package.json similarity index 94% rename from examples/custom-provider/package.json rename to examples/companion-custom-provider/package.json index 7bf043694..74412f5cb 100644 --- a/examples/custom-provider/package.json +++ b/examples/companion-custom-provider/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/custom-provider", + "name": "example-companion-custom-provider", "version": "0.0.0", "type": "module", "dependencies": { diff --git a/examples/custom-provider/server/CustomProvider.cjs b/examples/companion-custom-provider/server/CustomProvider.cjs similarity index 100% rename from examples/custom-provider/server/CustomProvider.cjs rename to examples/companion-custom-provider/server/CustomProvider.cjs diff --git a/examples/custom-provider/server/index.cjs b/examples/companion-custom-provider/server/index.cjs similarity index 100% rename from examples/custom-provider/server/index.cjs rename to examples/companion-custom-provider/server/index.cjs diff --git a/examples/digitalocean-spaces/.gitignore b/examples/companion-digitalocean-spaces/.gitignore similarity index 100% rename from examples/digitalocean-spaces/.gitignore rename to examples/companion-digitalocean-spaces/.gitignore diff --git a/examples/digitalocean-spaces/README.md b/examples/companion-digitalocean-spaces/README.md similarity index 100% rename from examples/digitalocean-spaces/README.md rename to examples/companion-digitalocean-spaces/README.md diff --git a/examples/digitalocean-spaces/index.html b/examples/companion-digitalocean-spaces/index.html similarity index 100% rename from examples/digitalocean-spaces/index.html rename to examples/companion-digitalocean-spaces/index.html diff --git a/examples/digitalocean-spaces/main.js b/examples/companion-digitalocean-spaces/main.js similarity index 100% rename from examples/digitalocean-spaces/main.js rename to examples/companion-digitalocean-spaces/main.js diff --git a/examples/digitalocean-spaces/package.json b/examples/companion-digitalocean-spaces/package.json similarity index 88% rename from examples/digitalocean-spaces/package.json rename to examples/companion-digitalocean-spaces/package.json index 72b321faf..4126a6216 100644 --- a/examples/digitalocean-spaces/package.json +++ b/examples/companion-digitalocean-spaces/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/digitalocean-spaces", + "name": "example-companion-digitalocean-spaces", "version": "0.0.0", "type": "module", "dependencies": { diff --git a/examples/digitalocean-spaces/server.cjs b/examples/companion-digitalocean-spaces/server.cjs similarity index 100% rename from examples/digitalocean-spaces/server.cjs rename to examples/companion-digitalocean-spaces/server.cjs diff --git a/examples/digitalocean-spaces/setcors.xml b/examples/companion-digitalocean-spaces/setcors.xml similarity index 100% rename from examples/digitalocean-spaces/setcors.xml rename to examples/companion-digitalocean-spaces/setcors.xml diff --git a/examples/uppy-with-companion/.gitignore b/examples/companion/.gitignore similarity index 100% rename from examples/uppy-with-companion/.gitignore rename to examples/companion/.gitignore diff --git a/examples/uppy-with-companion/README.md b/examples/companion/README.md similarity index 100% rename from examples/uppy-with-companion/README.md rename to examples/companion/README.md diff --git a/examples/uppy-with-companion/client/index.html b/examples/companion/client/index.html similarity index 100% rename from examples/uppy-with-companion/client/index.html rename to examples/companion/client/index.html diff --git a/examples/uppy-with-companion/output/.empty b/examples/companion/output/.empty similarity index 100% rename from examples/uppy-with-companion/output/.empty rename to examples/companion/output/.empty diff --git a/examples/uppy-with-companion/package.json b/examples/companion/package.json similarity index 91% rename from examples/uppy-with-companion/package.json rename to examples/companion/package.json index 20ddd5351..880f47f18 100644 --- a/examples/uppy-with-companion/package.json +++ b/examples/companion/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/uppy-with-companion", + "name": "example-companion", "version": "0.0.0", "dependencies": { "@uppy/companion": "workspace:*", diff --git a/examples/uppy-with-companion/server/index.js b/examples/companion/server/index.js similarity index 100% rename from examples/uppy-with-companion/server/index.js rename to examples/companion/server/index.js diff --git a/examples/multiple-instances/README.md b/examples/multiple-instances/README.md deleted file mode 100644 index ca6a469b5..000000000 --- a/examples/multiple-instances/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# Multiple Instances - -This example uses Uppy with the `@uppy/golden-retriever` plugin. It has two -instances on the same page, side-by-side, but with different `id`s so their -stored files don't interfere with each other. - -## Run it - -To run this example, make sure you've correctly installed the **repository -root**: - -```bash -corepack yarn install -corepack yarn build -``` - -That will also install the dependencies for this example. - -Then, again in the **repository root**, start this example by doing: - -```bash -corepack yarn workspace @uppy-example/multiple-instances start -``` diff --git a/examples/multiple-instances/index.html b/examples/multiple-instances/index.html deleted file mode 100644 index 7f23f4115..000000000 --- a/examples/multiple-instances/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Uppy example: Multiple instances - - - -
-
-

Instance A

-
-
-
-

Instance B

-
-
-
- - - - - diff --git a/examples/multiple-instances/main.js b/examples/multiple-instances/main.js deleted file mode 100644 index 973432237..000000000 --- a/examples/multiple-instances/main.js +++ /dev/null @@ -1,33 +0,0 @@ -import Uppy from '@uppy/core' -import Dashboard from '@uppy/dashboard' -import GoldenRetriever from '@uppy/golden-retriever' - -import '@uppy/core/dist/style.css' -import '@uppy/dashboard/dist/style.css' - -// Initialise two Uppy instances with the GoldenRetriever plugin, -// but with different `id`s. -const a = new Uppy({ - id: 'a', - debug: true, -}) - .use(Dashboard, { - target: '#a', - inline: true, - width: 400, - }) - .use(GoldenRetriever, { serviceWorker: false }) - -const b = new Uppy({ - id: 'b', - debug: true, -}) - .use(Dashboard, { - target: '#b', - inline: true, - width: 400, - }) - .use(GoldenRetriever, { serviceWorker: false }) - -window.a = a -window.b = b diff --git a/examples/multiple-instances/package.json b/examples/multiple-instances/package.json deleted file mode 100644 index 678066c1f..000000000 --- a/examples/multiple-instances/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "@uppy-example/multiple-instances", - "version": "0.0.0", - "type": "module", - "dependencies": { - "@uppy/core": "workspace:*", - "@uppy/dashboard": "workspace:*", - "@uppy/golden-retriever": "workspace:*" - }, - "devDependencies": { - "vite": "^5.4.17" - }, - "private": true, - "scripts": { - "start": "vite" - } -} diff --git a/examples/react-native-expo/package.json b/examples/react-native-expo/package.json index 2a7bcb5d1..a39f02bf0 100644 --- a/examples/react-native-expo/package.json +++ b/examples/react-native-expo/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/react-native-expo", + "name": "example-react-native-expo", "version": "1.0.0", "main": "index.js", "scripts": { diff --git a/examples/react/package.json b/examples/react/package.json index 7214dacbd..2d616e5ad 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/react", + "name": "example-react", "private": true, "type": "module", "scripts": { diff --git a/examples/redux/package.json b/examples/redux/package.json index 97b4ccb52..6550bf432 100644 --- a/examples/redux/package.json +++ b/examples/redux/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/redux", + "name": "example-redux", "version": "0.0.0", "type": "module", "dependencies": { diff --git a/examples/sveltekit/package.json b/examples/sveltekit/package.json index 126584ee4..5414d59ab 100644 --- a/examples/sveltekit/package.json +++ b/examples/sveltekit/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/sveltekit", + "name": "example-sveltekit", "private": true, "version": "0.0.1", "type": "module", diff --git a/examples/transloadit-markdown-bin/README.md b/examples/transloadit-markdown-bin/README.md deleted file mode 100644 index 5a8f2f878..000000000 --- a/examples/transloadit-markdown-bin/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Uppy Markdown Editor - -This example uses Uppy to handle images in a markdown editor. - -## Run it - -To run this example, make sure you've correctly installed the **repository -root**: - -```sh -corepack yarn install -corepack yarn build -``` - -That will also install the dependencies for this example. - -Then, again in the **repository root**, start this example by doing: - -```sh -corepack yarn workspace @uppy-example/transloadit-markdown-bin start -``` diff --git a/examples/transloadit-markdown-bin/index.html b/examples/transloadit-markdown-bin/index.html deleted file mode 100644 index 3868967f2..000000000 --- a/examples/transloadit-markdown-bin/index.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - -
-

Markdown Bin

-
-
-

- Markdown Bin is a demo app that works a bit like Github Gists or - pastebin. You can add markdown snippets, and add file attachments to - each snippet by clicking "Upload an attachment" or by dragging files - onto the text area. Transloadit generates an inline preview image for - images, videos, and audio files. - » View the Assembly Template here. -

- -

- ⚠️ For this demo, snippets are stored locally in your browser. - Attachments are stored in Transloadit's temporary storage and expire - after about 24 hours. In a real app, you can easily export files to a - permanent storage solution like Amazon S3 or Google Cloud. - » Learn more -

- -
-

Create a new snippet

- - -

- -

-
- -

Previous snippets

- -
-
- - - - - diff --git a/examples/transloadit-markdown-bin/main.js b/examples/transloadit-markdown-bin/main.js deleted file mode 100644 index acfe8ae3f..000000000 --- a/examples/transloadit-markdown-bin/main.js +++ /dev/null @@ -1,181 +0,0 @@ -import Uppy from '@uppy/core' -import Dashboard from '@uppy/dashboard' -import DropTarget from '@uppy/drop-target' -import ImageEditor from '@uppy/image-editor' -import RemoteSources from '@uppy/remote-sources' -import Transloadit from '@uppy/transloadit' -import Webcam from '@uppy/webcam' -import { marked } from 'marked' - -import '@uppy/core/dist/style.css' -import '@uppy/dashboard/dist/style.css' -import '@uppy/image-editor/dist/style.css' - -const TRANSLOADIT_EXAMPLE_KEY = '35c1aed03f5011e982b6afe82599b6a0' -const TRANSLOADIT_EXAMPLE_TEMPLATE = '0b2ee2bc25dc43619700c2ce0a75164a' - -function matchFilesAndThumbs(results) { - const filesById = {} - const thumbsById = {} - - for (const [stepName, result] of Object.entries(results)) { - result.forEach((result) => { - if (stepName === 'thumbnails') { - thumbsById[result.original_id] = result - } else { - filesById[result.original_id] = result - } - }) - } - - return Object.keys(filesById).map((key) => ({ - file: filesById[key], - thumb: thumbsById[key], - })) -} - -/** - * A textarea for markdown text, with support for file attachments. - */ -class MarkdownTextarea { - constructor(element) { - this.element = element - this.controls = document.createElement('div') - this.controls.classList.add('mdtxt-controls') - this.uploadLine = document.createElement('button') - this.uploadLine.setAttribute('type', 'button') - this.uploadLine.classList.add('form-upload') - - this.uploadLine.appendChild( - document.createTextNode('Tap here to upload an attachment'), - ) - } - - install() { - const { element } = this - const wrapper = document.createElement('div') - wrapper.classList.add('mdtxt') - element.parentNode.replaceChild(wrapper, element) - wrapper.appendChild(this.controls) - wrapper.appendChild(element) - wrapper.appendChild(this.uploadLine) - - this.setupUppy() - } - - setupUppy = () => { - this.uppy = new Uppy({ autoProceed: true }) - .use(Transloadit, { - waitForEncoding: true, - params: { - auth: { key: TRANSLOADIT_EXAMPLE_KEY }, - template_id: TRANSLOADIT_EXAMPLE_TEMPLATE, - }, - }) - .use(DropTarget, { target: this.element }) - .use(Dashboard, { closeAfterFinish: true, trigger: '.form-upload' }) - .use(ImageEditor, { target: Dashboard }) - .use(Webcam, { target: Dashboard }) - .use(RemoteSources, { companionUrl: Transloadit.COMPANION }) - - this.uppy.on('complete', (result) => { - const { successful, failed, transloadit } = result - if (successful.length !== 0) { - this.insertAttachments(matchFilesAndThumbs(transloadit[0].results)) - } else { - failed.forEach((error) => { - console.error(error) - this.reportUploadError(error) - }) - } - this.uppy.cancelAll() - }) - } - - reportUploadError(err) { - this.uploadLine.classList.add('error') - const message = document.createElement('span') - message.appendChild(document.createTextNode(err.message)) - this.uploadLine.insertChild(message, this.uploadLine.firstChild) - } - - unreportUploadError() { - this.uploadLine.classList.remove('error') - const message = this.uploadLine.querySelector('message') - if (message) { - this.uploadLine.removeChild(message) - } - } - - insertAttachments(attachments) { - attachments.forEach((attachment) => { - const { file, thumb } = attachment - const link = `\n[LABEL](${file.ssl_url})\n` - const labelText = `View File ${file.basename}` - if (thumb) { - this.element.value += link.replace( - 'LABEL', - `![${labelText}](${thumb.ssl_url})`, - ) - } else { - this.element.value += link.replace('LABEL', labelText) - } - }) - } - - uploadFiles = (files) => { - const filesForUppy = files.map((file) => { - return { - data: file, - type: file.type, - name: file.name, - meta: file.meta || {}, - } - }) - this.uppy.addFiles(filesForUppy) - } -} - -const textarea = new MarkdownTextarea(document.querySelector('#new textarea')) -textarea.install() - -function renderSnippet(title, text) { - const template = document.querySelector('#snippet') - const newSnippet = document.importNode(template.content, true) - const titleEl = newSnippet.querySelector('.snippet-title') - const contentEl = newSnippet.querySelector('.snippet-content') - - titleEl.appendChild(document.createTextNode(title)) - contentEl.innerHTML = marked.parse(text) - - const list = document.querySelector('#snippets') - list.insertBefore(newSnippet, list.firstChild) -} - -function saveSnippet(title, text) { - const id = parseInt(localStorage.numSnippets || 0, 10) - localStorage[`snippet_${id}`] = JSON.stringify({ title, text }) - localStorage.numSnippets = id + 1 -} - -function loadSnippets() { - for (let id = 0; localStorage[`snippet_${id}`] != null; id += 1) { - const { title, text } = JSON.parse(localStorage[`snippet_${id}`]) - renderSnippet(title, text) - } -} - -document.querySelector('#new').addEventListener('submit', (event) => { - event.preventDefault() - - const title = event.target.elements.title.value || 'Unnamed Snippet' - const text = textarea.element.value - - saveSnippet(title, text) - renderSnippet(title, text) - - event.target.querySelector('input').value = '' - event.target.querySelector('textarea').value = '' -}) - -window.addEventListener('DOMContentLoaded', loadSnippets, { once: true }) diff --git a/examples/transloadit-markdown-bin/package.json b/examples/transloadit-markdown-bin/package.json deleted file mode 100644 index d94a80dc2..000000000 --- a/examples/transloadit-markdown-bin/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "@uppy-example/transloadit-markdown-bin", - "version": "0.0.0", - "type": "module", - "dependencies": { - "@uppy/core": "workspace:*", - "@uppy/dashboard": "workspace:*", - "@uppy/drop-target": "workspace:*", - "@uppy/image-editor": "workspace:*", - "@uppy/remote-sources": "workspace:*", - "@uppy/transloadit": "workspace:*", - "@uppy/webcam": "workspace:*", - "marked": "^12.0.0" - }, - "devDependencies": { - "vite": "^5.4.17" - }, - "private": true, - "scripts": { - "start": "vite" - } -} diff --git a/examples/transloadit/package.json b/examples/transloadit/package.json index ee53a5896..8567bcc85 100644 --- a/examples/transloadit/package.json +++ b/examples/transloadit/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/transloadit", + "name": "example-transloadit", "version": "0.0.0", "type": "module", "devDependencies": { diff --git a/examples/vue3/.gitignore b/examples/vue/.gitignore similarity index 100% rename from examples/vue3/.gitignore rename to examples/vue/.gitignore diff --git a/examples/vue3/README.md b/examples/vue/README.md similarity index 100% rename from examples/vue3/README.md rename to examples/vue/README.md diff --git a/examples/vue3/index.html b/examples/vue/index.html similarity index 100% rename from examples/vue3/index.html rename to examples/vue/index.html diff --git a/examples/vue3/package.json b/examples/vue/package.json similarity index 95% rename from examples/vue3/package.json rename to examples/vue/package.json index ff2902918..f916a077f 100644 --- a/examples/vue3/package.json +++ b/examples/vue/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/vue3", + "name": "example-vue", "version": "0.0.0", "private": true, "type": "module", diff --git a/examples/vue3/public/favicon.ico b/examples/vue/public/favicon.ico similarity index 100% rename from examples/vue3/public/favicon.ico rename to examples/vue/public/favicon.ico diff --git a/examples/vue3/src/App.vue b/examples/vue/src/App.vue similarity index 100% rename from examples/vue3/src/App.vue rename to examples/vue/src/App.vue diff --git a/examples/vue3/src/Dropzone.vue b/examples/vue/src/Dropzone.vue similarity index 100% rename from examples/vue3/src/Dropzone.vue rename to examples/vue/src/Dropzone.vue diff --git a/examples/vue3/src/MediaCapture.vue b/examples/vue/src/MediaCapture.vue similarity index 100% rename from examples/vue3/src/MediaCapture.vue rename to examples/vue/src/MediaCapture.vue diff --git a/examples/vue3/src/RemoteSource.vue b/examples/vue/src/RemoteSource.vue similarity index 100% rename from examples/vue3/src/RemoteSource.vue rename to examples/vue/src/RemoteSource.vue diff --git a/examples/vue3/src/ScreenCapture.vue b/examples/vue/src/ScreenCapture.vue similarity index 100% rename from examples/vue3/src/ScreenCapture.vue rename to examples/vue/src/ScreenCapture.vue diff --git a/examples/vue3/src/Webcam.vue b/examples/vue/src/Webcam.vue similarity index 100% rename from examples/vue3/src/Webcam.vue rename to examples/vue/src/Webcam.vue diff --git a/examples/vue3/src/app.css b/examples/vue/src/app.css similarity index 100% rename from examples/vue3/src/app.css rename to examples/vue/src/app.css diff --git a/examples/vue3/src/assets/logo.png b/examples/vue/src/assets/logo.png similarity index 100% rename from examples/vue3/src/assets/logo.png rename to examples/vue/src/assets/logo.png diff --git a/examples/vue3/src/main.js b/examples/vue/src/main.js similarity index 100% rename from examples/vue3/src/main.js rename to examples/vue/src/main.js diff --git a/examples/vue3/vite.config.js b/examples/vue/vite.config.js similarity index 100% rename from examples/vue3/vite.config.js rename to examples/vue/vite.config.js diff --git a/examples/xhr-bundle/package.json b/examples/xhr-bundle/package.json index 8892c63de..6e4c2e037 100644 --- a/examples/xhr-bundle/package.json +++ b/examples/xhr-bundle/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/xhr-bundle", + "name": "example-xhr-bundle", "version": "0.0.0", "dependencies": { "@uppy/core": "workspace:*", diff --git a/examples/node-xhr/.gitignore b/examples/xhr-node/.gitignore similarity index 100% rename from examples/node-xhr/.gitignore rename to examples/xhr-node/.gitignore diff --git a/examples/node-xhr/README.md b/examples/xhr-node/README.md similarity index 100% rename from examples/node-xhr/README.md rename to examples/xhr-node/README.md diff --git a/examples/node-xhr/index.html b/examples/xhr-node/index.html similarity index 100% rename from examples/node-xhr/index.html rename to examples/xhr-node/index.html diff --git a/examples/node-xhr/main.js b/examples/xhr-node/main.js similarity index 100% rename from examples/node-xhr/main.js rename to examples/xhr-node/main.js diff --git a/examples/node-xhr/package.json b/examples/xhr-node/package.json similarity index 93% rename from examples/node-xhr/package.json rename to examples/xhr-node/package.json index 2a75338ea..42a6b5255 100644 --- a/examples/node-xhr/package.json +++ b/examples/xhr-node/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/node-xhr", + "name": "example-xhr-node", "version": "0.0.0", "type": "module", "dependencies": { diff --git a/examples/node-xhr/server.js b/examples/xhr-node/server.js similarity index 100% rename from examples/node-xhr/server.js rename to examples/xhr-node/server.js diff --git a/examples/php-xhr/.gitignore b/examples/xhr-php/.gitignore similarity index 100% rename from examples/php-xhr/.gitignore rename to examples/xhr-php/.gitignore diff --git a/examples/php-xhr/README.md b/examples/xhr-php/README.md similarity index 100% rename from examples/php-xhr/README.md rename to examples/xhr-php/README.md diff --git a/examples/php-xhr/index.html b/examples/xhr-php/index.html similarity index 100% rename from examples/php-xhr/index.html rename to examples/xhr-php/index.html diff --git a/examples/php-xhr/main.js b/examples/xhr-php/main.js similarity index 100% rename from examples/php-xhr/main.js rename to examples/xhr-php/main.js diff --git a/examples/php-xhr/package.json b/examples/xhr-php/package.json similarity index 93% rename from examples/php-xhr/package.json rename to examples/xhr-php/package.json index dd2f54529..1c097ef01 100644 --- a/examples/php-xhr/package.json +++ b/examples/xhr-php/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/php-xhr", + "name": "example-xhr-php", "version": "0.0.0", "type": "module", "dependencies": { diff --git a/examples/php-xhr/server.php b/examples/xhr-php/server.php similarity index 100% rename from examples/php-xhr/server.php rename to examples/xhr-php/server.php diff --git a/examples/python-xhr/.gitignore b/examples/xhr-python/.gitignore similarity index 100% rename from examples/python-xhr/.gitignore rename to examples/xhr-python/.gitignore diff --git a/examples/python-xhr/README.md b/examples/xhr-python/README.md similarity index 100% rename from examples/python-xhr/README.md rename to examples/xhr-python/README.md diff --git a/examples/python-xhr/index.html b/examples/xhr-python/index.html similarity index 100% rename from examples/python-xhr/index.html rename to examples/xhr-python/index.html diff --git a/examples/python-xhr/main.js b/examples/xhr-python/main.js similarity index 100% rename from examples/python-xhr/main.js rename to examples/xhr-python/main.js diff --git a/examples/python-xhr/package.json b/examples/xhr-python/package.json similarity index 93% rename from examples/python-xhr/package.json rename to examples/xhr-python/package.json index 912a5fe95..0d4c67222 100644 --- a/examples/python-xhr/package.json +++ b/examples/xhr-python/package.json @@ -1,5 +1,5 @@ { - "name": "@uppy-example/python-xhr", + "name": "example-xhr-python", "version": "0.0.0", "type": "module", "dependencies": { diff --git a/examples/python-xhr/requirements.txt b/examples/xhr-python/requirements.txt similarity index 100% rename from examples/python-xhr/requirements.txt rename to examples/xhr-python/requirements.txt diff --git a/examples/python-xhr/server.py b/examples/xhr-python/server.py similarity index 100% rename from examples/python-xhr/server.py rename to examples/xhr-python/server.py diff --git a/yarn.lock b/yarn.lock index 338025e73..608bd4c8b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -352,13 +352,6 @@ __metadata: languageName: node linkType: hard -"@angular-eslint/bundled-angular-compiler@npm:18.0.1": - version: 18.0.1 - resolution: "@angular-eslint/bundled-angular-compiler@npm:18.0.1" - checksum: 10/102e465aaffc9ebf69ee4cefdf6ecff3925a42518b008cc37ab46a340a37a402140ccecf611687c6109c6cf64c4e98e492f7627f7702ff1f594b31a788cb8010 - languageName: node - linkType: hard - "@angular-eslint/bundled-angular-compiler@npm:18.4.3": version: 18.4.3 resolution: "@angular-eslint/bundled-angular-compiler@npm:18.4.3" @@ -366,22 +359,6 @@ __metadata: languageName: node linkType: hard -"@angular-eslint/eslint-plugin-template@npm:18.0.1": - version: 18.0.1 - resolution: "@angular-eslint/eslint-plugin-template@npm:18.0.1" - dependencies: - "@angular-eslint/bundled-angular-compiler": "npm:18.0.1" - "@angular-eslint/utils": "npm:18.0.1" - aria-query: "npm:5.3.0" - axobject-query: "npm:4.0.0" - peerDependencies: - "@typescript-eslint/utils": ^7.11.0 || ^8.0.0-alpha.20 - eslint: ^8.57.0 || ^9.0.0 - typescript: "*" - checksum: 10/bb321fcff83fd82f135b7b6a781f050d0e44a3bec37dcadd9187598adcee91c63a09625632140a03e0f6ab48f3c345fd1192cee96f4b8c7c158dc3efcd03d51b - languageName: node - linkType: hard - "@angular-eslint/eslint-plugin-template@npm:^18.0.1": version: 18.4.3 resolution: "@angular-eslint/eslint-plugin-template@npm:18.4.3" @@ -399,20 +376,6 @@ __metadata: languageName: node linkType: hard -"@angular-eslint/eslint-plugin@npm:18.0.1": - version: 18.0.1 - resolution: "@angular-eslint/eslint-plugin@npm:18.0.1" - dependencies: - "@angular-eslint/bundled-angular-compiler": "npm:18.0.1" - "@angular-eslint/utils": "npm:18.0.1" - peerDependencies: - "@typescript-eslint/utils": ^7.11.0 || ^8.0.0-alpha.20 - eslint: ^8.57.0 || ^9.0.0 - typescript: "*" - checksum: 10/e22d10be1d56c73a85f0e8435483280d7f09e34ede938069fd54d66757d287b4d0f0390910f7f9f4390a555e1da63d3b491a827a251e4de7a27527baef20f597 - languageName: node - linkType: hard - "@angular-eslint/eslint-plugin@npm:^18.0.1": version: 18.4.3 resolution: "@angular-eslint/eslint-plugin@npm:18.4.3" @@ -427,19 +390,6 @@ __metadata: languageName: node linkType: hard -"@angular-eslint/utils@npm:18.0.1": - version: 18.0.1 - resolution: "@angular-eslint/utils@npm:18.0.1" - dependencies: - "@angular-eslint/bundled-angular-compiler": "npm:18.0.1" - peerDependencies: - "@typescript-eslint/utils": ^7.11.0 || ^8.0.0-alpha.20 - eslint: ^8.57.0 || ^9.0.0 - typescript: "*" - checksum: 10/a593ffc610dc8023d914cbf9a8aefa8e99fa8dd42f65bd727fc76021bb4893c8a7d5b737ff668124ba31f6d4cd9667e994696201c50e93a8ae09a00b427cd3ea - languageName: node - linkType: hard - "@angular-eslint/utils@npm:18.4.3": version: 18.4.3 resolution: "@angular-eslint/utils@npm:18.4.3" @@ -11255,372 +11205,6 @@ __metadata: languageName: unknown linkType: soft -"@uppy-example/angular@workspace:examples/angular-example": - version: 0.0.0-use.local - resolution: "@uppy-example/angular@workspace:examples/angular-example" - dependencies: - "@angular-devkit/build-angular": "npm:^18.0.2" - "@angular-eslint/eslint-plugin": "npm:18.0.1" - "@angular-eslint/eslint-plugin-template": "npm:18.0.1" - "@angular/animations": "npm:^18.0.0" - "@angular/cli": "npm:^18.0.2" - "@angular/common": "npm:^18.0.0" - "@angular/compiler": "npm:^18.0.0" - "@angular/compiler-cli": "npm:^18.0.0" - "@angular/core": "npm:^18.0.0" - "@angular/forms": "npm:^18.0.0" - "@angular/platform-browser": "npm:^18.0.0" - "@angular/platform-browser-dynamic": "npm:^18.0.0" - "@angular/router": "npm:^18.0.0" - "@types/jasmine": "npm:~5.1.0" - "@typescript-eslint/eslint-plugin": "npm:^7.2.0" - "@typescript-eslint/parser": "npm:^7.2.0" - "@uppy/angular": "workspace:*" - "@uppy/core": "workspace:*" - "@uppy/drag-drop": "workspace:*" - "@uppy/google-drive": "workspace:*" - "@uppy/progress-bar": "workspace:*" - "@uppy/tus": "workspace:*" - "@uppy/webcam": "workspace:*" - eslint: "npm:^8.57.0" - jasmine-core: "npm:~5.1.0" - karma: "npm:~6.4.0" - karma-chrome-launcher: "npm:~3.2.0" - karma-coverage: "npm:~2.2.0" - karma-jasmine: "npm:~5.1.0" - karma-jasmine-html-reporter: "npm:~2.1.0" - rxjs: "npm:~7.8.0" - tslib: "npm:^2.3.0" - typescript: "npm:~5.4" - zone.js: "npm:~0.14.3" - languageName: unknown - linkType: soft - -"@uppy-example/aws-companion@workspace:examples/aws-companion": - version: 0.0.0-use.local - resolution: "@uppy-example/aws-companion@workspace:examples/aws-companion" - dependencies: - "@uppy/aws-s3": "workspace:*" - "@uppy/companion": "workspace:*" - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/google-drive": "workspace:*" - "@uppy/webcam": "workspace:*" - body-parser: "npm:^1.20.3" - cookie-parser: "npm:^1.4.6" - cors: "npm:^2.8.5" - dotenv: "npm:^16.0.1" - express: "npm:^4.19.2" - express-session: "npm:^1.17.3" - npm-run-all: "npm:^4.1.5" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - -"@uppy-example/aws-nodejs@workspace:examples/aws-nodejs": - version: 0.0.0-use.local - resolution: "@uppy-example/aws-nodejs@workspace:examples/aws-nodejs" - dependencies: - "@aws-sdk/client-s3": "npm:^3.338.0" - "@aws-sdk/client-sts": "npm:^3.338.0" - "@aws-sdk/s3-request-presigner": "npm:^3.338.0" - body-parser: "npm:^1.20.3" - dotenv: "npm:^16.0.0" - express: "npm:^4.19.2" - languageName: unknown - linkType: soft - -"@uppy-example/aws-php@workspace:examples/aws-php": - version: 0.0.0-use.local - resolution: "@uppy-example/aws-php@workspace:examples/aws-php" - dependencies: - "@uppy/aws-s3": "workspace:*" - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - esbuild: "npm:^0.25.0" - uppy: "workspace:*" - languageName: unknown - linkType: soft - -"@uppy-example/bundled@workspace:examples/bundled": - version: 0.0.0-use.local - resolution: "@uppy-example/bundled@workspace:examples/bundled" - dependencies: - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/google-drive": "workspace:*" - "@uppy/instagram": "workspace:*" - "@uppy/tus": "workspace:*" - "@uppy/url": "workspace:*" - "@uppy/webcam": "workspace:*" - parcel: "npm:^2.0.0" - languageName: unknown - linkType: soft - -"@uppy-example/cdn@workspace:examples/cdn-example": - version: 0.0.0-use.local - resolution: "@uppy-example/cdn@workspace:examples/cdn-example" - languageName: unknown - linkType: soft - -"@uppy-example/custom-provider@workspace:examples/custom-provider": - version: 0.0.0-use.local - resolution: "@uppy-example/custom-provider@workspace:examples/custom-provider" - dependencies: - "@uppy/companion": "workspace:*" - "@uppy/companion-client": "workspace:*" - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/google-drive": "workspace:*" - "@uppy/provider-views": "workspace:*" - "@uppy/tus": "workspace:*" - body-parser: "npm:^1.20.3" - dotenv: "npm:^16.0.1" - express: "npm:^4.19.2" - express-session: "npm:^1.15.6" - npm-run-all: "npm:^4.1.2" - preact: "npm:^10.5.13" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - -"@uppy-example/digitalocean-spaces@workspace:examples/digitalocean-spaces": - version: 0.0.0-use.local - resolution: "@uppy-example/digitalocean-spaces@workspace:examples/digitalocean-spaces" - dependencies: - "@uppy/aws-s3": "workspace:*" - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - body-parser: "npm:^1.20.3" - cors: "npm:^2.8.5" - dotenv: "npm:^16.0.1" - express: "npm:^4.19.2" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - -"@uppy-example/multiple-instances@workspace:examples/multiple-instances": - version: 0.0.0-use.local - resolution: "@uppy-example/multiple-instances@workspace:examples/multiple-instances" - dependencies: - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/golden-retriever": "workspace:*" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - -"@uppy-example/node-xhr@workspace:examples/node-xhr": - version: 0.0.0-use.local - resolution: "@uppy-example/node-xhr@workspace:examples/node-xhr" - dependencies: - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/webcam": "workspace:*" - "@uppy/xhr-upload": "workspace:*" - formidable: "npm:^3.2.4" - npm-run-all: "npm:^4.1.3" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - -"@uppy-example/php-xhr@workspace:examples/php-xhr": - version: 0.0.0-use.local - resolution: "@uppy-example/php-xhr@workspace:examples/php-xhr" - dependencies: - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/webcam": "workspace:*" - "@uppy/xhr-upload": "workspace:*" - npm-run-all: "npm:^4.1.3" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - -"@uppy-example/python-xhr@workspace:examples/python-xhr": - version: 0.0.0-use.local - resolution: "@uppy-example/python-xhr@workspace:examples/python-xhr" - dependencies: - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/webcam": "workspace:*" - "@uppy/xhr-upload": "workspace:*" - npm-run-all: "npm:^4.1.3" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - -"@uppy-example/react-native-expo@workspace:examples/react-native-expo": - version: 0.0.0-use.local - resolution: "@uppy-example/react-native-expo@workspace:examples/react-native-expo" - dependencies: - "@babel/core": "npm:^7.12.9" - "@react-native-async-storage/async-storage": "npm:~1.15.0" - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/instagram": "workspace:*" - "@uppy/react": "workspace:*" - "@uppy/react-native": "workspace:*" - "@uppy/tus": "workspace:*" - "@uppy/url": "workspace:*" - "@uppy/xhr-upload": "workspace:*" - base64-js: "npm:^1.3.0" - expo: "npm:~43.0.2" - expo-file-system: "npm:~13.0.3" - expo-status-bar: "npm:~1.1.0" - preact-render-to-string: "npm:^5.1.0" - react: "npm:17.0.1" - react-dom: "npm:17.0.1" - react-native: "npm:0.64.3" - react-native-web: "npm:0.17.1" - languageName: unknown - linkType: soft - -"@uppy-example/react@workspace:examples/react": - version: 0.0.0-use.local - resolution: "@uppy-example/react@workspace:examples/react" - dependencies: - "@tailwindcss/vite": "npm:^4.0.9" - "@types/react": "npm:^19.0.10" - "@types/react-dom": "npm:^19.0.4" - "@uppy/core": "workspace:*" - "@uppy/react": "workspace:*" - "@uppy/remote-sources": "workspace:*" - "@uppy/screen-capture": "workspace:*" - "@uppy/tus": "workspace:*" - "@uppy/webcam": "workspace:*" - "@vitejs/plugin-react": "npm:^4.3.4" - react: "npm:^19.0.0" - react-dom: "npm:^19.0.0" - tailwindcss: "npm:^4.0.9" - typescript: "npm:^5.7.3" - vite: "npm:^6.2.0" - languageName: unknown - linkType: soft - -"@uppy-example/redux@workspace:examples/redux": - version: 0.0.0-use.local - resolution: "@uppy-example/redux@workspace:examples/redux" - dependencies: - "@reduxjs/toolkit": "npm:^1.9.3" - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/store-redux": "workspace:*" - "@uppy/tus": "workspace:*" - redux: "npm:^4.2.1" - redux-logger: "npm:^3.0.6" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - -"@uppy-example/sveltekit@workspace:examples/sveltekit": - version: 0.0.0-use.local - resolution: "@uppy-example/sveltekit@workspace:examples/sveltekit" - dependencies: - "@sveltejs/adapter-auto": "npm:^4.0.0" - "@sveltejs/kit": "npm:^2.16.0" - "@sveltejs/vite-plugin-svelte": "npm:^5.0.0" - "@tailwindcss/vite": "npm:^4.0.0" - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/drag-drop": "workspace:*" - "@uppy/progress-bar": "workspace:*" - "@uppy/screen-capture": "workspace:*" - "@uppy/svelte": "workspace:*" - "@uppy/tus": "workspace:*" - "@uppy/webcam": "workspace:*" - svelte: "npm:^5.0.0" - svelte-check: "npm:^4.0.0" - tailwindcss: "npm:^4.0.0" - typescript: "npm:^5.0.0" - vite: "npm:^6.2.5" - languageName: unknown - linkType: soft - -"@uppy-example/transloadit-markdown-bin@workspace:examples/transloadit-markdown-bin": - version: 0.0.0-use.local - resolution: "@uppy-example/transloadit-markdown-bin@workspace:examples/transloadit-markdown-bin" - dependencies: - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/drop-target": "workspace:*" - "@uppy/image-editor": "workspace:*" - "@uppy/remote-sources": "workspace:*" - "@uppy/transloadit": "workspace:*" - "@uppy/webcam": "workspace:*" - marked: "npm:^12.0.0" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - -"@uppy-example/transloadit@workspace:examples/transloadit": - version: 0.0.0-use.local - resolution: "@uppy-example/transloadit@workspace:examples/transloadit" - dependencies: - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/drop-target": "workspace:*" - "@uppy/form": "workspace:*" - "@uppy/image-editor": "workspace:*" - "@uppy/progress-bar": "workspace:*" - "@uppy/remote-sources": "workspace:*" - "@uppy/transloadit": "workspace:*" - "@uppy/webcam": "workspace:*" - express: "npm:^4.19.2" - he: "npm:^1.2.0" - npm-run-all: "npm:^4.1.5" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - -"@uppy-example/uppy-with-companion@workspace:examples/uppy-with-companion": - version: 0.0.0-use.local - resolution: "@uppy-example/uppy-with-companion@workspace:examples/uppy-with-companion" - dependencies: - "@uppy/companion": "workspace:*" - body-parser: "npm:^1.20.3" - express: "npm:^4.19.2" - express-session: "npm:^1.15.6" - light-server: "npm:^2.4.0" - languageName: unknown - linkType: soft - -"@uppy-example/vue3@workspace:examples/vue3": - version: 0.0.0-use.local - resolution: "@uppy-example/vue3@workspace:examples/vue3" - dependencies: - "@tailwindcss/vite": "npm:^4.0.0" - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/drag-drop": "workspace:*" - "@uppy/progress-bar": "workspace:*" - "@uppy/remote-sources": "workspace:*" - "@uppy/screen-capture": "workspace:*" - "@uppy/tus": "workspace:*" - "@uppy/vue": "workspace:*" - "@uppy/webcam": "workspace:*" - "@vitejs/plugin-vue": "npm:^5.0.0" - tailwindcss: "npm:^4.0.0" - vite: "npm:^6.2.0" - vue: "npm:^3.5.14" - languageName: unknown - linkType: soft - -"@uppy-example/xhr-bundle@workspace:examples/xhr-bundle": - version: 0.0.0-use.local - resolution: "@uppy-example/xhr-bundle@workspace:examples/xhr-bundle" - dependencies: - "@uppy/core": "workspace:*" - "@uppy/dashboard": "workspace:*" - "@uppy/xhr-upload": "workspace:*" - cors: "npm:^2.8.5" - express: "npm:^4.19.2" - multer: "npm:^1.4.1" - npm-run-all: "npm:^4.1.5" - vite: "npm:^5.4.17" - languageName: unknown - linkType: soft - "@uppy/angular@workspace:*, @uppy/angular@workspace:packages/@uppy/angular/projects/uppy/angular": version: 0.0.0-use.local resolution: "@uppy/angular@workspace:packages/@uppy/angular/projects/uppy/angular" @@ -11965,7 +11549,7 @@ __metadata: languageName: unknown linkType: soft -"@uppy/golden-retriever@workspace:*, @uppy/golden-retriever@workspace:^, @uppy/golden-retriever@workspace:packages/@uppy/golden-retriever": +"@uppy/golden-retriever@workspace:^, @uppy/golden-retriever@workspace:packages/@uppy/golden-retriever": version: 0.0.0-use.local resolution: "@uppy/golden-retriever@workspace:packages/@uppy/golden-retriever" dependencies: @@ -13467,15 +13051,6 @@ __metadata: languageName: node linkType: hard -"aria-query@npm:5.3.0": - version: 5.3.0 - resolution: "aria-query@npm:5.3.0" - dependencies: - dequal: "npm:^2.0.3" - checksum: 10/c3e1ed127cc6886fea4732e97dd6d3c3938e64180803acfb9df8955517c4943760746ffaf4020ce8f7ffaa7556a3b5f85c3769a1f5ca74a1288e02d042f9ae4e - languageName: node - linkType: hard - "aria-query@npm:5.3.2, aria-query@npm:^5.0.0, aria-query@npm:^5.3.1": version: 5.3.2 resolution: "aria-query@npm:5.3.2" @@ -13870,15 +13445,6 @@ __metadata: languageName: node linkType: hard -"axobject-query@npm:4.0.0": - version: 4.0.0 - resolution: "axobject-query@npm:4.0.0" - dependencies: - dequal: "npm:^2.0.3" - checksum: 10/5b0bc6a1b1e9701811adc7682953617f40859838275a68584579b0668902111fd16aef3ec9de3855de1065d8c3c0a1af62f6edc9db25395c722cc21c91780587 - languageName: node - linkType: hard - "axobject-query@npm:4.1.0, axobject-query@npm:^4.1.0": version: 4.1.0 resolution: "axobject-query@npm:4.1.0" @@ -17948,7 +17514,7 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^8.2.0, eslint@npm:^8.57.0": +"eslint@npm:^8.2.0": version: 8.57.0 resolution: "eslint@npm:8.57.0" dependencies: @@ -18145,6 +17711,318 @@ __metadata: languageName: node linkType: hard +"example-angular@workspace:examples/angular": + version: 0.0.0-use.local + resolution: "example-angular@workspace:examples/angular" + dependencies: + "@angular-devkit/build-angular": "npm:^18.0.2" + "@angular/animations": "npm:^18.0.0" + "@angular/cli": "npm:^18.0.2" + "@angular/common": "npm:^18.0.0" + "@angular/compiler": "npm:^18.0.0" + "@angular/compiler-cli": "npm:^18.0.0" + "@angular/core": "npm:^18.0.0" + "@angular/forms": "npm:^18.0.0" + "@angular/platform-browser": "npm:^18.0.0" + "@angular/platform-browser-dynamic": "npm:^18.0.0" + "@angular/router": "npm:^18.0.0" + "@uppy/angular": "workspace:*" + "@uppy/core": "workspace:*" + "@uppy/drag-drop": "workspace:*" + "@uppy/google-drive": "workspace:*" + "@uppy/progress-bar": "workspace:*" + "@uppy/tus": "workspace:*" + "@uppy/webcam": "workspace:*" + rxjs: "npm:~7.8.0" + tslib: "npm:^2.3.0" + typescript: "npm:~5.4" + zone.js: "npm:~0.14.3" + languageName: unknown + linkType: soft + +"example-aws-companion@workspace:examples/aws-companion": + version: 0.0.0-use.local + resolution: "example-aws-companion@workspace:examples/aws-companion" + dependencies: + "@uppy/aws-s3": "workspace:*" + "@uppy/companion": "workspace:*" + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/google-drive": "workspace:*" + "@uppy/webcam": "workspace:*" + body-parser: "npm:^1.20.3" + cookie-parser: "npm:^1.4.6" + cors: "npm:^2.8.5" + dotenv: "npm:^16.0.1" + express: "npm:^4.19.2" + express-session: "npm:^1.17.3" + npm-run-all: "npm:^4.1.5" + vite: "npm:^5.4.17" + languageName: unknown + linkType: soft + +"example-aws-nodejs@workspace:examples/aws-nodejs": + version: 0.0.0-use.local + resolution: "example-aws-nodejs@workspace:examples/aws-nodejs" + dependencies: + "@aws-sdk/client-s3": "npm:^3.338.0" + "@aws-sdk/client-sts": "npm:^3.338.0" + "@aws-sdk/s3-request-presigner": "npm:^3.338.0" + body-parser: "npm:^1.20.3" + dotenv: "npm:^16.0.0" + express: "npm:^4.19.2" + languageName: unknown + linkType: soft + +"example-aws-php@workspace:examples/aws-php": + version: 0.0.0-use.local + resolution: "example-aws-php@workspace:examples/aws-php" + dependencies: + "@uppy/aws-s3": "workspace:*" + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + esbuild: "npm:^0.25.0" + uppy: "workspace:*" + languageName: unknown + linkType: soft + +"example-cdn@workspace:examples/cdn": + version: 0.0.0-use.local + resolution: "example-cdn@workspace:examples/cdn" + languageName: unknown + linkType: soft + +"example-companion-custom-provider@workspace:examples/companion-custom-provider": + version: 0.0.0-use.local + resolution: "example-companion-custom-provider@workspace:examples/companion-custom-provider" + dependencies: + "@uppy/companion": "workspace:*" + "@uppy/companion-client": "workspace:*" + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/google-drive": "workspace:*" + "@uppy/provider-views": "workspace:*" + "@uppy/tus": "workspace:*" + body-parser: "npm:^1.20.3" + dotenv: "npm:^16.0.1" + express: "npm:^4.19.2" + express-session: "npm:^1.15.6" + npm-run-all: "npm:^4.1.2" + preact: "npm:^10.5.13" + vite: "npm:^5.4.17" + languageName: unknown + linkType: soft + +"example-companion-digitalocean-spaces@workspace:examples/companion-digitalocean-spaces": + version: 0.0.0-use.local + resolution: "example-companion-digitalocean-spaces@workspace:examples/companion-digitalocean-spaces" + dependencies: + "@uppy/aws-s3": "workspace:*" + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + body-parser: "npm:^1.20.3" + cors: "npm:^2.8.5" + dotenv: "npm:^16.0.1" + express: "npm:^4.19.2" + vite: "npm:^5.4.17" + languageName: unknown + linkType: soft + +"example-companion@workspace:examples/companion": + version: 0.0.0-use.local + resolution: "example-companion@workspace:examples/companion" + dependencies: + "@uppy/companion": "workspace:*" + body-parser: "npm:^1.20.3" + express: "npm:^4.19.2" + express-session: "npm:^1.15.6" + light-server: "npm:^2.4.0" + languageName: unknown + linkType: soft + +"example-react-native-expo@workspace:examples/react-native-expo": + version: 0.0.0-use.local + resolution: "example-react-native-expo@workspace:examples/react-native-expo" + dependencies: + "@babel/core": "npm:^7.12.9" + "@react-native-async-storage/async-storage": "npm:~1.15.0" + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/instagram": "workspace:*" + "@uppy/react": "workspace:*" + "@uppy/react-native": "workspace:*" + "@uppy/tus": "workspace:*" + "@uppy/url": "workspace:*" + "@uppy/xhr-upload": "workspace:*" + base64-js: "npm:^1.3.0" + expo: "npm:~43.0.2" + expo-file-system: "npm:~13.0.3" + expo-status-bar: "npm:~1.1.0" + preact-render-to-string: "npm:^5.1.0" + react: "npm:17.0.1" + react-dom: "npm:17.0.1" + react-native: "npm:0.64.3" + react-native-web: "npm:0.17.1" + languageName: unknown + linkType: soft + +"example-react@workspace:examples/react": + version: 0.0.0-use.local + resolution: "example-react@workspace:examples/react" + dependencies: + "@tailwindcss/vite": "npm:^4.0.9" + "@types/react": "npm:^19.0.10" + "@types/react-dom": "npm:^19.0.4" + "@uppy/core": "workspace:*" + "@uppy/react": "workspace:*" + "@uppy/remote-sources": "workspace:*" + "@uppy/screen-capture": "workspace:*" + "@uppy/tus": "workspace:*" + "@uppy/webcam": "workspace:*" + "@vitejs/plugin-react": "npm:^4.3.4" + react: "npm:^19.0.0" + react-dom: "npm:^19.0.0" + tailwindcss: "npm:^4.0.9" + typescript: "npm:^5.7.3" + vite: "npm:^6.2.0" + languageName: unknown + linkType: soft + +"example-redux@workspace:examples/redux": + version: 0.0.0-use.local + resolution: "example-redux@workspace:examples/redux" + dependencies: + "@reduxjs/toolkit": "npm:^1.9.3" + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/store-redux": "workspace:*" + "@uppy/tus": "workspace:*" + redux: "npm:^4.2.1" + redux-logger: "npm:^3.0.6" + vite: "npm:^5.4.17" + languageName: unknown + linkType: soft + +"example-sveltekit@workspace:examples/sveltekit": + version: 0.0.0-use.local + resolution: "example-sveltekit@workspace:examples/sveltekit" + dependencies: + "@sveltejs/adapter-auto": "npm:^4.0.0" + "@sveltejs/kit": "npm:^2.16.0" + "@sveltejs/vite-plugin-svelte": "npm:^5.0.0" + "@tailwindcss/vite": "npm:^4.0.0" + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/drag-drop": "workspace:*" + "@uppy/progress-bar": "workspace:*" + "@uppy/screen-capture": "workspace:*" + "@uppy/svelte": "workspace:*" + "@uppy/tus": "workspace:*" + "@uppy/webcam": "workspace:*" + svelte: "npm:^5.0.0" + svelte-check: "npm:^4.0.0" + tailwindcss: "npm:^4.0.0" + typescript: "npm:^5.0.0" + vite: "npm:^6.2.5" + languageName: unknown + linkType: soft + +"example-transloadit@workspace:examples/transloadit": + version: 0.0.0-use.local + resolution: "example-transloadit@workspace:examples/transloadit" + dependencies: + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/drop-target": "workspace:*" + "@uppy/form": "workspace:*" + "@uppy/image-editor": "workspace:*" + "@uppy/progress-bar": "workspace:*" + "@uppy/remote-sources": "workspace:*" + "@uppy/transloadit": "workspace:*" + "@uppy/webcam": "workspace:*" + express: "npm:^4.19.2" + he: "npm:^1.2.0" + npm-run-all: "npm:^4.1.5" + vite: "npm:^5.4.17" + languageName: unknown + linkType: soft + +"example-vue@workspace:examples/vue": + version: 0.0.0-use.local + resolution: "example-vue@workspace:examples/vue" + dependencies: + "@tailwindcss/vite": "npm:^4.0.0" + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/drag-drop": "workspace:*" + "@uppy/progress-bar": "workspace:*" + "@uppy/remote-sources": "workspace:*" + "@uppy/screen-capture": "workspace:*" + "@uppy/tus": "workspace:*" + "@uppy/vue": "workspace:*" + "@uppy/webcam": "workspace:*" + "@vitejs/plugin-vue": "npm:^5.0.0" + tailwindcss: "npm:^4.0.0" + vite: "npm:^6.2.0" + vue: "npm:^3.5.14" + languageName: unknown + linkType: soft + +"example-xhr-bundle@workspace:examples/xhr-bundle": + version: 0.0.0-use.local + resolution: "example-xhr-bundle@workspace:examples/xhr-bundle" + dependencies: + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/xhr-upload": "workspace:*" + cors: "npm:^2.8.5" + express: "npm:^4.19.2" + multer: "npm:^1.4.1" + npm-run-all: "npm:^4.1.5" + vite: "npm:^5.4.17" + languageName: unknown + linkType: soft + +"example-xhr-node@workspace:examples/xhr-node": + version: 0.0.0-use.local + resolution: "example-xhr-node@workspace:examples/xhr-node" + dependencies: + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/webcam": "workspace:*" + "@uppy/xhr-upload": "workspace:*" + formidable: "npm:^3.2.4" + npm-run-all: "npm:^4.1.3" + vite: "npm:^5.4.17" + languageName: unknown + linkType: soft + +"example-xhr-php@workspace:examples/xhr-php": + version: 0.0.0-use.local + resolution: "example-xhr-php@workspace:examples/xhr-php" + dependencies: + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/webcam": "workspace:*" + "@uppy/xhr-upload": "workspace:*" + npm-run-all: "npm:^4.1.3" + vite: "npm:^5.4.17" + languageName: unknown + linkType: soft + +"example-xhr-python@workspace:examples/xhr-python": + version: 0.0.0-use.local + resolution: "example-xhr-python@workspace:examples/xhr-python" + dependencies: + "@uppy/core": "workspace:*" + "@uppy/dashboard": "workspace:*" + "@uppy/webcam": "workspace:*" + "@uppy/xhr-upload": "workspace:*" + npm-run-all: "npm:^4.1.3" + vite: "npm:^5.4.17" + languageName: unknown + linkType: soft + "exec-sh@npm:^0.3.2": version: 0.3.6 resolution: "exec-sh@npm:0.3.6" @@ -23825,15 +23703,6 @@ __metadata: languageName: node linkType: hard -"marked@npm:^12.0.0": - version: 12.0.2 - resolution: "marked@npm:12.0.2" - bin: - marked: bin/marked.js - checksum: 10/24d4fc58d37c1779197fa7f93c504d8c71d4df54eb69cbbc14a55ba2a8e2ad83d723801fc25452c21ce74b38a483c5863c53449f130253a597be9e9c1d3e7e2b - languageName: node - linkType: hard - "md5-file@npm:^3.2.3": version: 3.2.3 resolution: "md5-file@npm:3.2.3" @@ -26358,7 +26227,7 @@ __metadata: languageName: node linkType: hard -"parcel@npm:^2.0.0, parcel@npm:^2.9.3": +"parcel@npm:^2.9.3": version: 2.12.0 resolution: "parcel@npm:2.12.0" dependencies: