mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-24 10:54:04 +08:00
Fix published package exports (#9163)
* rename * save patch * fix everything * format * rm file * fix stuff * tweaks * tweaks * tweaks * tweaks * tweaks * asd * asd * asd * asd * asd * asd * asd * fix * Fix scripts/run_lite.sh and scripts/build_lite.sh (#9170) * fixes * fixes * asd * asd * asd * review comments * fiux types * fiux types * make fileexpolorer public * format * lint * lint --------- Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
This commit is contained in:
parent
c725c04b4e
commit
2b6cbf2590
@ -7,5 +7,5 @@
|
||||
"access": "public",
|
||||
"baseBranch": "main",
|
||||
"updateInternalDependencies": "patch",
|
||||
"ignore": ["@gradio/spaces-test", "@gradio/cdn-test"]
|
||||
"ignore": ["@self/spaces-test", "@self/cdn-test"]
|
||||
}
|
||||
|
71
.changeset/plenty-cycles-chew.md
Normal file
71
.changeset/plenty-cycles-chew.md
Normal file
@ -0,0 +1,71 @@
|
||||
---
|
||||
"@gradio/multimodaltextbox": patch
|
||||
"@gradio/highlightedtext": patch
|
||||
"@gradio/annotatedimage": patch
|
||||
"@self/component-test": patch
|
||||
"@gradio/downloadbutton": patch
|
||||
"@gradio/simpledropdown": patch
|
||||
"@gradio/checkboxgroup": patch
|
||||
"@gradio/simpletextbox": patch
|
||||
"@gradio/statustracker": patch
|
||||
"@gradio/fileexplorer": patch
|
||||
"@gradio/uploadbutton": patch
|
||||
"@gradio/colorpicker": patch
|
||||
"@gradio/imageeditor": patch
|
||||
"@gradio/paramviewer": patch
|
||||
"@gradio/simpleimage": patch
|
||||
"@gradio/nativeplot": patch
|
||||
"@gradio/accordion": patch
|
||||
"@gradio/dataframe": patch
|
||||
"@self/storybook": patch
|
||||
"website": patch
|
||||
"@gradio/checkbox": patch
|
||||
"@gradio/datetime": patch
|
||||
"@gradio/dropdown": patch
|
||||
"@gradio/fallback": patch
|
||||
"@gradio/markdown": patch
|
||||
"@gradio/chatbot": patch
|
||||
"@gradio/dataset": patch
|
||||
"@gradio/gallery": patch
|
||||
"@gradio/model3d": patch
|
||||
"@gradio/preview": patch
|
||||
"@gradio/tabitem": patch
|
||||
"@gradio/textbox": patch
|
||||
"@gradio/tooltip": patch
|
||||
"@self/tootils": patch
|
||||
"@gradio/client": patch
|
||||
"@gradio/button": patch
|
||||
"@gradio/column": patch
|
||||
"@gradio/number": patch
|
||||
"@gradio/slider": patch
|
||||
"@gradio/upload": patch
|
||||
"@gradio/atoms": patch
|
||||
"@gradio/audio": patch
|
||||
"@self/build": patch
|
||||
"@gradio/group": patch
|
||||
"@gradio/icons": patch
|
||||
"@gradio/image": patch
|
||||
"@gradio/label": patch
|
||||
"@gradio/radio": patch
|
||||
"@gradio/state": patch
|
||||
"@gradio/theme": patch
|
||||
"@gradio/timer": patch
|
||||
"@gradio/utils": patch
|
||||
"@gradio/video": patch
|
||||
"@gradio/code": patch
|
||||
"@gradio/core": patch
|
||||
"@gradio/file": patch
|
||||
"@gradio/form": patch
|
||||
"@gradio/html": patch
|
||||
"@gradio/json": patch
|
||||
"@gradio/lite": patch
|
||||
"@gradio/plot": patch
|
||||
"@gradio/tabs": patch
|
||||
"@gradio/wasm": patch
|
||||
"@self/app": patch
|
||||
"@gradio/box": patch
|
||||
"@gradio/row": patch
|
||||
"@self/spa": patch
|
||||
---
|
||||
|
||||
fix:fix exports and generate types
|
@ -5,7 +5,7 @@
|
||||
**/js/wasm/dist/**
|
||||
**/js/preview/dist/**
|
||||
**/client/js/dist/**
|
||||
**/js/lite/dist/**
|
||||
**/js/*/dist/**
|
||||
**/pnpm-lock.yaml
|
||||
**/js/plot/src/Plot.svelte
|
||||
**/.svelte-kit/**
|
||||
|
@ -63,7 +63,7 @@ const { browser, es2021, node } = globals;
|
||||
export default [
|
||||
{
|
||||
ignores: [
|
||||
".svelte-kit/**/*",
|
||||
"**/.svelte-kit/**/*",
|
||||
"**/node_modules/**",
|
||||
"**/dist/**",
|
||||
"**/.config/*",
|
||||
@ -75,7 +75,8 @@ export default [
|
||||
"**/_website/**/*",
|
||||
"**/_spaces-test/**/*",
|
||||
"**/preview/test/**/*",
|
||||
"**/component-test/**/*"
|
||||
"**/component-test/**/*",
|
||||
"**/js/wasm/src/webworker/**/*"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
5
.config/svelte.config.js
Normal file
5
.config/svelte.config.js
Normal file
@ -0,0 +1,5 @@
|
||||
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
|
||||
|
||||
export default {
|
||||
preprocess: vitePreprocess()
|
||||
};
|
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@ -30,6 +30,7 @@ jobs:
|
||||
. venv/bin/activate
|
||||
pip install -U build hatch packaging>=23.2 # packaging>=23.2 is needed to build Lite due to https://github.com/pypa/hatch/issues/1381
|
||||
pnpm --filter @gradio/client --filter @gradio/lite --filter @gradio/preview build
|
||||
|
||||
- name: create and publish versions
|
||||
id: changesets
|
||||
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # @v1
|
||||
|
@ -309,7 +309,7 @@ Verify that you've used the correct filename of your gradio app, and that you're
|
||||
|
||||
---
|
||||
|
||||
```ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @gradio/spa@1.0.0 build:local: vite build --mode production:local --emptyOutDir "--emptyOutDir"```
|
||||
```ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @self/spa@1.0.0 build:local: vite build --mode production:local --emptyOutDir "--emptyOutDir"```
|
||||
|
||||
Delete `/node_modules` and `pnpm-lock.yaml`:
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
"license": "ISC",
|
||||
"exports": {
|
||||
".": {
|
||||
"gradio": "./src/index.ts",
|
||||
"import": "./dist/index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
|
@ -302,7 +302,7 @@ class TestColorPicker(unittest.TestCase):
|
||||
|
||||
```typescript
|
||||
import { test, describe, assert, afterEach } from "vitest";
|
||||
import { cleanup, render } from "@gradio/tootils";
|
||||
import { cleanup, render } from "@self/tootils";
|
||||
|
||||
import ColorPicker from "./ColorPicker.svelte";
|
||||
import type { LoadingStatus } from "../StatusTracker/types";
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@gradio/cdn-test",
|
||||
"name": "@self/cdn-test",
|
||||
"private": true,
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
|
@ -1,4 +1,4 @@
|
||||
# @gradio/spaces-test
|
||||
# @self/spaces-test
|
||||
|
||||
## 0.0.1
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@gradio/spaces-test",
|
||||
"name": "@self/spaces-test",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
@ -1,8 +1,11 @@
|
||||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import { defineConfig } from "vite";
|
||||
import { inject_component_loader } from "../build/dist/index.js";
|
||||
import { inject_component_loader } from "../build/out/index.js";
|
||||
|
||||
//@ts-ignore
|
||||
export default defineConfig(({ mode }) => ({
|
||||
plugins: [sveltekit(), inject_component_loader({ mode })]
|
||||
plugins: [sveltekit(), inject_component_loader({ mode })],
|
||||
resolve: {
|
||||
conditions: ["gradio"]
|
||||
}
|
||||
}));
|
||||
|
@ -5,7 +5,6 @@
|
||||
"type": "module",
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"private": true,
|
||||
"main_changeset": true,
|
||||
"dependencies": {
|
||||
"@gradio/atoms": "workspace:^",
|
||||
@ -13,11 +12,18 @@
|
||||
"@gradio/statustracker": "workspace:^",
|
||||
"@gradio/utils": "workspace:0.6.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"repository": {
|
||||
|
@ -5,15 +5,22 @@
|
||||
"type": "module",
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@gradio/atoms": "workspace:^",
|
||||
"@gradio/icons": "workspace:^",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# @gradio/app
|
||||
# @self/app
|
||||
|
||||
## 1.40.0
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@gradio/app",
|
||||
"name": "@self/app",
|
||||
"version": "1.40.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
@ -7,13 +7,27 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@gradio/utils": "workspace:^",
|
||||
"@gradio/icons": "workspace:^"
|
||||
"@gradio/icons": "workspace:^",
|
||||
"@gradio/utils": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"gradio": "./src/index.ts",
|
||||
"svelte": "./dist/src/index.js",
|
||||
"types": "./dist/src/index.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"main_changeset": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
"directory": "js/atoms"
|
||||
},
|
||||
"scripts": {
|
||||
"sv-pkg": "svelte-package --input=. --cwd=../../.config/"
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { test, describe, assert, afterEach } from "vitest";
|
||||
import { cleanup, render } from "@gradio/tootils";
|
||||
import { cleanup, render } from "@self/tootils";
|
||||
import Audio from "./";
|
||||
import type { LoadingStatus } from "@gradio/statustracker";
|
||||
import { setupi18n } from "../core/src/i18n";
|
||||
|
@ -28,11 +28,30 @@
|
||||
"main_changeset": true,
|
||||
"main": "index.ts",
|
||||
"exports": {
|
||||
".": "./index.ts",
|
||||
"./example": "./Example.svelte",
|
||||
"./shared": "./shared/index.ts",
|
||||
"./base": "./static/StaticAudio.svelte",
|
||||
"./package.json": "./package.json"
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"gradio": "./index.ts",
|
||||
"svelte": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./shared": {
|
||||
"gradio": "./shared/index.ts",
|
||||
"svelte": "./dist/shared/index.js",
|
||||
"types": "./dist/shared/index.d.ts"
|
||||
},
|
||||
"./base": {
|
||||
"gradio": "./static/StaticAudio.svelte",
|
||||
"svelte": "./dist/static/StaticAudio.svelte",
|
||||
"types": "./dist/static/StaticAudio.svelte.d.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -8,12 +8,19 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@gradio/atoms": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# @gradio/build
|
||||
# @self/build
|
||||
|
||||
## 0.0.2
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
# `@gradio/build`
|
||||
# `@self/build`
|
||||
|
||||
Build utilities for the gradio frontend + lite.
|
||||
|
@ -124,9 +124,10 @@ function handle_ce_css() {
|
||||
var __filename = url.fileURLToPath(import.meta.url);
|
||||
var __dirname = url.fileURLToPath(new URL(".", import.meta.url));
|
||||
function get_export_path(path, root, pkg_json) {
|
||||
if (!pkg_json.exports) return void 0;
|
||||
if (!pkg_json.exports) return false;
|
||||
if (typeof pkg_json.exports[`${path}`] === "object") return true;
|
||||
const _path = join(root, "..", `${pkg_json.exports[`${path}`]}`);
|
||||
return existsSync(_path) ? _path : void 0;
|
||||
return existsSync(_path);
|
||||
}
|
||||
var ignore_list = [
|
||||
"tootils",
|
@ -1,20 +1,23 @@
|
||||
{
|
||||
"name": "@gradio/build",
|
||||
"name": "@self/build",
|
||||
"version": "0.0.2",
|
||||
"description": "Gradio UI packages",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"main": "out/index.js",
|
||||
"private": "true",
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"scripts": {
|
||||
"build": "esbuild src/index.ts --platform=node --format=esm --target=node18 --bundle --packages=external --outfile=dist/index.js"
|
||||
"build": "esbuild src/index.ts --platform=node --format=esm --target=node18 --bundle --packages=external --outfile=out/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@gradio/theme": "workspace:^",
|
||||
"esbuild": "^0.21.0",
|
||||
"svelte-i18n": "^3.6.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"main_changeset": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -183,11 +183,12 @@ function get_export_path(
|
||||
path: string,
|
||||
root: string,
|
||||
pkg_json: Record<string, any>
|
||||
): string | undefined {
|
||||
if (!pkg_json.exports) return undefined;
|
||||
): boolean {
|
||||
if (!pkg_json.exports) return false;
|
||||
if ( typeof pkg_json.exports[`${path}`] === "object") return true;
|
||||
const _path = join(root, "..", `${pkg_json.exports[`${path}`]}`);
|
||||
|
||||
return existsSync(_path) ? _path : undefined;
|
||||
return existsSync(_path);
|
||||
}
|
||||
|
||||
const ignore_list = [
|
||||
|
@ -17,8 +17,15 @@
|
||||
"main": "./Index.svelte",
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./package.json": "./package.json"
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { test, describe, assert, afterEach, vi } from "vitest";
|
||||
import { cleanup, render, fireEvent } from "@gradio/tootils";
|
||||
import { cleanup, render, fireEvent } from "@self/tootils";
|
||||
import Chatbot from "./Index.svelte";
|
||||
import type { LoadingStatus } from "@gradio/statustracker";
|
||||
import type { FileData } from "@gradio/client";
|
||||
|
@ -32,8 +32,15 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./package.json": "./package.json"
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -9,9 +9,17 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
"./package.json": "./package.json"
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@gradio/atoms": "workspace:^",
|
||||
@ -21,6 +29,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { test, describe, assert, afterEach, vi } from "vitest";
|
||||
import { cleanup, render } from "@gradio/tootils";
|
||||
import { cleanup, render } from "@self/tootils";
|
||||
import event from "@testing-library/user-event";
|
||||
import { setupi18n } from "../core/src/i18n";
|
||||
|
||||
|
@ -9,8 +9,16 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -21,6 +29,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -37,13 +37,24 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -9,8 +9,16 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -21,6 +29,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -9,7 +9,11 @@
|
||||
"private": false,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -17,6 +21,9 @@
|
||||
"@gradio/statustracker": "workspace:^",
|
||||
"@gradio/utils": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# @gradio/component-test
|
||||
# @self/component-test
|
||||
|
||||
## 0.1.0
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@gradio/component-test",
|
||||
"name": "@self/component-test",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
@ -9,7 +9,7 @@
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gradio/build": "workspace:^",
|
||||
"@self/build": "workspace:^",
|
||||
"@sveltejs/adapter-auto": "^3.0.0",
|
||||
"@sveltejs/kit": "^2.0.0"
|
||||
},
|
||||
|
@ -1,6 +1,14 @@
|
||||
<script>
|
||||
import Header from "./Header.svelte";
|
||||
import "../app.css";
|
||||
import "../theme.css";
|
||||
|
||||
import "../../../theme/src/reset.css";
|
||||
import "../../../theme/src/global.css";
|
||||
|
||||
import "../../../theme/src/pollen.css";
|
||||
// import "../theme/src/tokens.css";
|
||||
import "../../../theme/src/typography.css";
|
||||
</script>
|
||||
|
||||
<div class="app">
|
||||
|
@ -1,75 +1,40 @@
|
||||
import config from "$lib/component_json";
|
||||
|
||||
// @ts-ignore
|
||||
const comps = {
|
||||
// @ts-ignore
|
||||
accordion: () => import("@gradio/accordion"),
|
||||
audio: () => import("@gradio/audio"),
|
||||
// @ts-ignore
|
||||
button: () => import("@gradio/button"),
|
||||
// @ts-ignore
|
||||
chatbot: () => import("@gradio/chatbot"),
|
||||
// @ts-ignore
|
||||
checkbox: () => import("@gradio/checkbox"),
|
||||
// @ts-ignore
|
||||
checkboxgroup: () => import("@gradio/checkboxgroup"),
|
||||
// @ts-ignore
|
||||
code: () => import("@gradio/code"),
|
||||
// @ts-ignore
|
||||
colorpicker: () => import("@gradio/colorpicker"),
|
||||
// @ts-ignore
|
||||
dataframe: () => import("@gradio/dataframe"),
|
||||
// @ts-ignore
|
||||
dataset: () => import("@gradio/dataset"),
|
||||
// @ts-ignore
|
||||
datetime: () => import("@gradio/datetime"),
|
||||
// @ts-ignore
|
||||
downloadbutton: () => import("@gradio/downloadbutton"),
|
||||
// @ts-ignore
|
||||
dropdown: () => import("@gradio/dropdown"),
|
||||
// @ts-ignore
|
||||
file: () => import("@gradio/file"),
|
||||
// @ts-ignore
|
||||
gallery: () => import("@gradio/gallery"),
|
||||
// @ts-ignore
|
||||
highlightedtext: () => import("@gradio/highlightedtext"),
|
||||
// @ts-ignore
|
||||
html: () => import("@gradio/html"),
|
||||
// @ts-ignore
|
||||
image: () => import("@gradio/image"),
|
||||
// @ts-ignore
|
||||
imageeditor: () => import("@gradio/imageeditor"),
|
||||
// @ts-ignore
|
||||
json: () => import("@gradio/json"),
|
||||
// @ts-ignore
|
||||
label: () => import("@gradio/label"),
|
||||
// @ts-ignore
|
||||
markdown: () => import("@gradio/markdown"),
|
||||
// @ts-ignore
|
||||
model3d: () => import("@gradio/model3d"),
|
||||
// @ts-ignore
|
||||
multimodaltextbox: () => import("@gradio/multimodaltextbox"),
|
||||
// @ts-ignore
|
||||
number: () => import("@gradio/number"),
|
||||
// @ts-ignore
|
||||
paramviewer: () => import("@gradio/paramviewer"),
|
||||
// @ts-ignore
|
||||
plot: () => import("@gradio/plot"),
|
||||
// @ts-ignore
|
||||
radio: () => import("@gradio/radio"),
|
||||
// @ts-ignore
|
||||
simpleimage: () => import("@gradio/simpleimage"),
|
||||
// @ts-ignore
|
||||
slider: () => import("@gradio/slider"),
|
||||
// @ts-ignore
|
||||
state: () => import("@gradio/state"),
|
||||
// @ts-ignore
|
||||
textbox: () => import("@gradio/textbox"),
|
||||
// @ts-ignore
|
||||
timer: () => import("@gradio/timer"),
|
||||
// @ts-ignore
|
||||
uploadbutton: () => import("@gradio/uploadbutton"),
|
||||
// @ts-ignore
|
||||
video: () => import("@gradio/video")
|
||||
};
|
||||
|
||||
@ -86,10 +51,8 @@ export const load: PageLoad = async ({ url }) => {
|
||||
|
||||
const comp =
|
||||
route_name in comps
|
||||
? // @ts-ignore
|
||||
await comps[route_name]()
|
||||
: // @ts-ignore
|
||||
await import("@gradio/label");
|
||||
? await comps[route_name]()
|
||||
: await import("@gradio/label");
|
||||
|
||||
return {
|
||||
component: comp,
|
||||
|
@ -8,8 +8,11 @@ import {
|
||||
inject_ejs,
|
||||
mock_modules,
|
||||
resolve_svelte
|
||||
} from "@gradio/build";
|
||||
} from "@self/build";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit(), inject_component_loader({ mode: "development" })]
|
||||
plugins: [sveltekit()],
|
||||
resolve: {
|
||||
conditions: ["gradio"]
|
||||
}
|
||||
});
|
||||
|
@ -66,13 +66,24 @@
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
"./blocks": {
|
||||
"svelte": "./src/Blocks.svelte"
|
||||
"gradio": "./src/Blocks.svelte",
|
||||
"svelte": "./dist/src/Blocks.svelte",
|
||||
"types": "./dist/src/Blocks.svelte.d.ts"
|
||||
},
|
||||
"./login": {
|
||||
"svelte": "./src/Login.svelte"
|
||||
"gradio": "./src/Login.svelte",
|
||||
"svelte": "./dist/src/Login.svelte",
|
||||
"types": "./dist/src/Login.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json",
|
||||
".": "./index.ts"
|
||||
".": {
|
||||
"gradio": "./index.ts",
|
||||
"import": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"main": "./index.ts",
|
||||
"repository": {
|
||||
|
@ -4,6 +4,7 @@
|
||||
import type { ComponentMeta, ThemeMode } from "./types";
|
||||
import type { Client } from "@gradio/client";
|
||||
import RenderComponent from "./RenderComponent.svelte";
|
||||
import { load_component } from "virtual:component-loader";
|
||||
|
||||
export let root: string;
|
||||
|
||||
@ -66,7 +67,8 @@
|
||||
autoscroll,
|
||||
max_file_size,
|
||||
formatter,
|
||||
client
|
||||
client,
|
||||
load_component
|
||||
);
|
||||
</script>
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
import type { Payload } from "../types";
|
||||
|
||||
import ApiBanner from "./ApiBanner.svelte";
|
||||
import Button from "../../../button/shared/Button.svelte";
|
||||
import { BaseButton as Button } from "@gradio/button";
|
||||
import ParametersSnippet from "./ParametersSnippet.svelte";
|
||||
import InstallSnippet from "./InstallSnippet.svelte";
|
||||
import CodeSnippet from "./CodeSnippet.svelte";
|
||||
|
@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import type { Payload, Dependency } from "../types";
|
||||
import Button from "../../../button/shared/Button.svelte";
|
||||
import { BaseButton as Button } from "@gradio/button";
|
||||
|
||||
export let api_calls: Payload[] = [];
|
||||
export let dependencies: Dependency[];
|
||||
|
@ -26,10 +26,21 @@
|
||||
"marked": "^12.0.0"
|
||||
},
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
|
@ -8,7 +8,11 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -21,6 +25,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -9,8 +9,16 @@
|
||||
"main_changeset": true,
|
||||
"main": "Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -19,6 +27,9 @@
|
||||
"@gradio/statustracker": "workspace:^",
|
||||
"@gradio/utils": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
|
@ -17,9 +17,16 @@
|
||||
"main": "./Index.svelte",
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { test, describe, assert, afterEach, vi } from "vitest";
|
||||
import { cleanup, render } from "@gradio/tootils";
|
||||
import { cleanup, render } from "@self/tootils";
|
||||
import event from "@testing-library/user-event";
|
||||
import { setupi18n } from "../core/src/i18n";
|
||||
|
||||
|
@ -8,8 +8,16 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -21,6 +29,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -8,8 +8,16 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -21,6 +29,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -21,10 +21,21 @@
|
||||
"main": "./Index.svelte",
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -5,7 +5,6 @@
|
||||
"type": "module",
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@gradio/atoms": "workspace:^",
|
||||
"@gradio/checkbox": "workspace:^",
|
||||
@ -22,10 +21,21 @@
|
||||
},
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -17,9 +17,16 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { test, describe, assert, afterEach, vi } from "vitest";
|
||||
import { cleanup, render } from "@gradio/tootils";
|
||||
import { cleanup, render } from "@self/tootils";
|
||||
import { setupi18n } from "../core/src/i18n";
|
||||
|
||||
import Gallery from "./Index.svelte";
|
||||
|
@ -23,9 +23,20 @@
|
||||
"main": "./Index.svelte",
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json",
|
||||
"./base": "./shared/Gallery.svelte"
|
||||
"./base": {
|
||||
"gradio": "./shared/Gallery.svelte",
|
||||
"svelte": "./dist/shared/Gallery.svelte",
|
||||
"types": "./dist/shared/Gallery.svelte.d.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { test, describe, assert, afterEach, vi } from "vitest";
|
||||
import { cleanup, render } from "@gradio/tootils";
|
||||
import { cleanup, render } from "@self/tootils";
|
||||
|
||||
import Group from "./Index.svelte";
|
||||
|
||||
|
@ -8,12 +8,19 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { test, describe, assert, afterEach } from "vitest";
|
||||
import { cleanup, fireEvent, render } from "@gradio/tootils";
|
||||
import { cleanup, fireEvent, render } from "@self/tootils";
|
||||
import { setupi18n } from "../core/src/i18n";
|
||||
|
||||
import HighlightedText from "./Index.svelte";
|
||||
|
@ -19,9 +19,16 @@
|
||||
},
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -17,10 +17,25 @@
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./base": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
"./package.json": "./package.json"
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./base": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -12,5 +12,16 @@
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
"directory": "js/icons"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"gradio": "./src/index.ts",
|
||||
"svelte": "./dist/src/index.js",
|
||||
"types": "./dist/src/index.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ import {
|
||||
beforeAll,
|
||||
beforeEach
|
||||
} from "vitest";
|
||||
import { cleanup, render } from "@gradio/tootils";
|
||||
import { cleanup, render } from "@self/tootils";
|
||||
import { setupi18n } from "../core/src/i18n";
|
||||
|
||||
import Image from "./Index.svelte";
|
||||
|
@ -24,11 +24,30 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./shared": "./shared/index.ts",
|
||||
"./example": "./Example.svelte",
|
||||
"./base": "./shared/ImagePreview.svelte",
|
||||
"./package.json": "./package.json"
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./base": {
|
||||
"gradio": "./shared/ImagePreview.svelte",
|
||||
"svelte": "./dist/shared/ImagePreview.svelte",
|
||||
"types": "./dist/shared/ImagePreview.svelte.d.ts"
|
||||
},
|
||||
"./shared": {
|
||||
"gradio": "./shared/index.ts",
|
||||
"svelte": "./dist/shared/index.js",
|
||||
"types": "./dist/shared/index.d.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -25,10 +25,21 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -11,7 +11,6 @@ import {
|
||||
} from "pixi.js";
|
||||
|
||||
import { type LayerScene } from "../layers/utils";
|
||||
import { background } from "@storybook/theming";
|
||||
|
||||
/**
|
||||
* interface holding references to pixi app components
|
||||
|
@ -18,9 +18,16 @@
|
||||
"main": "./Index.svelte",
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
3
js/jsx.d.ts
vendored
3
js/jsx.d.ts
vendored
@ -4,3 +4,6 @@ declare namespace svelteHTML {
|
||||
mozdirectory?: boolean | string;
|
||||
}
|
||||
}
|
||||
declare module "@lezer/highlight";
|
||||
declare module "dequal/lite";
|
||||
declare module "dequal";
|
||||
|
@ -18,9 +18,16 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -19,15 +19,15 @@
|
||||
"dev": "run-p dev:*",
|
||||
"dev:self": "vite --port 9876 --mode development",
|
||||
"dev:worker": "pnpm --filter @gradio/wasm dev",
|
||||
"test:browser": "GRADIO_E2E_TEST_LITE=1 pnpm --filter @gradio/spa test:browser",
|
||||
"test:browser:dev": "GRADIO_E2E_TEST_LITE=1 pnpm --filter @gradio/spa test:browser:dev"
|
||||
"test:browser": "GRADIO_E2E_TEST_LITE=1 pnpm --filter @self/spa test:browser",
|
||||
"test:browser:dev": "GRADIO_E2E_TEST_LITE=1 pnpm --filter @self/spa test:browser:dev"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gradio": "workspace:^",
|
||||
"@gradio/atoms": "workspace:^",
|
||||
"@gradio/build": "workspace:^",
|
||||
"@self/build": "workspace:^",
|
||||
"@gradio/core": "workspace:^",
|
||||
"@gradio/spa": "workspace:^",
|
||||
"@self/spa": "workspace:^",
|
||||
"@gradio/theme": "workspace:^",
|
||||
"@gradio/wasm": "workspace:^"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
<script lang="ts">
|
||||
import "@gradio/theme/src/reset.css";
|
||||
import "@gradio/theme/src/global.css";
|
||||
import "@gradio/theme/src/pollen.css";
|
||||
import "@gradio/theme/src/typography.css";
|
||||
import "@gradio/theme/reset.css";
|
||||
import "@gradio/theme/global.css";
|
||||
import "@gradio/theme/pollen.css";
|
||||
import "@gradio/theme/typography.css";
|
||||
|
||||
import { onDestroy, SvelteComponent } from "svelte";
|
||||
import Index from "@gradio/spa";
|
||||
import Index from "@self/spa";
|
||||
import Playground from "./Playground.svelte";
|
||||
import ErrorDisplay from "./ErrorDisplay.svelte";
|
||||
import type { ThemeMode } from "@gradio/core";
|
||||
|
@ -51,7 +51,7 @@ import {
|
||||
handle_ce_css,
|
||||
inject_component_loader,
|
||||
mock_modules
|
||||
} from "@gradio/build";
|
||||
} from "@self/build";
|
||||
|
||||
const GRADIO_VERSION = version_raw || "asd_stub_asd";
|
||||
const CDN_BASE = "https://gradio.s3-us-west-2.amazonaws.com";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { test, describe, assert, afterEach } from "vitest";
|
||||
import { cleanup, render } from "@gradio/tootils";
|
||||
import { cleanup, render } from "@self/tootils";
|
||||
|
||||
import Markdown from "./Index.svelte";
|
||||
import type { LoadingStatus } from "@gradio/statustracker";
|
||||
|
@ -9,8 +9,16 @@
|
||||
"main_changeset": true,
|
||||
"main": "Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -32,6 +40,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -26,10 +26,21 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { test, describe, assert, afterEach } from "vitest";
|
||||
import { spy } from "tinyspy";
|
||||
import { cleanup, fireEvent, render, get_text, wait } from "@gradio/tootils";
|
||||
import { cleanup, render } from "@self/tootils";
|
||||
import event from "@testing-library/user-event";
|
||||
|
||||
import MultimodalTextbox from "./Index.svelte";
|
||||
|
@ -9,8 +9,16 @@
|
||||
"main_changeset": true,
|
||||
"main": "Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -26,6 +34,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -8,8 +8,16 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -25,6 +33,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -8,8 +8,16 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -20,6 +28,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -8,8 +8,16 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -22,6 +30,9 @@
|
||||
"@types/prismjs": "^1.26.3",
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -24,9 +24,20 @@
|
||||
"main": "./Index.svelte",
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./package.json": "./package.json",
|
||||
"./base": "./shared/Plot.svelte"
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./base": {
|
||||
"gradio": "./shared/Plot.svelte",
|
||||
"svelte": "./dist/shared/Plot.svelte",
|
||||
"types": "./dist/shared/Plot.svelte.d.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -37,5 +37,16 @@
|
||||
"vite": "^5.2.9",
|
||||
"which": "4.0.0",
|
||||
"yootils": "^0.3.1"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"gradio": "./src/index.ts",
|
||||
"svelte": "./dist/src/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
}
|
||||
}
|
||||
|
@ -72,6 +72,9 @@ export async function make_build({
|
||||
...plugins(component_config),
|
||||
make_gradio_plugin({ mode: "build", svelte_dir })
|
||||
],
|
||||
resolve: {
|
||||
conditions: ["gradio"]
|
||||
},
|
||||
build: {
|
||||
target: component_config.build.target,
|
||||
emptyOutDir: true,
|
||||
|
@ -57,6 +57,9 @@ export async function create_server({
|
||||
allow: [root_dir, component_dir]
|
||||
}
|
||||
},
|
||||
resolve: {
|
||||
conditions: ["gradio"]
|
||||
},
|
||||
build: {
|
||||
target: config.build.target
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { test, describe, assert, afterEach } from "vitest";
|
||||
|
||||
import { cleanup, render } from "@gradio/tootils";
|
||||
import { cleanup, render } from "@self/tootils";
|
||||
import event from "@testing-library/user-event";
|
||||
|
||||
import Radio from "./Index.svelte";
|
||||
|
@ -9,8 +9,16 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -21,6 +29,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -13,9 +13,16 @@
|
||||
"@gradio/utils": "workspace:^"
|
||||
},
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -8,8 +8,16 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -21,6 +29,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -24,10 +24,25 @@
|
||||
"main_changeset": true,
|
||||
"main": "./Index.svelte",
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
"./base": "./shared/ImagePreview.svelte",
|
||||
"./package.json": "./package.json"
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./base": {
|
||||
"gradio": "./shared/ImagePreview.svelte",
|
||||
"svelte": "./dist/shared/ImagePreview.svelte",
|
||||
"types": "./dist/shared/ImagePreview.svelte.d.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -8,8 +8,16 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -21,6 +29,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -8,8 +8,16 @@
|
||||
"private": false,
|
||||
"main_changeset": true,
|
||||
"exports": {
|
||||
".": "./Index.svelte",
|
||||
"./example": "./Example.svelte",
|
||||
".": {
|
||||
"gradio": "./Index.svelte",
|
||||
"svelte": "./dist/Index.svelte",
|
||||
"types": "./dist/Index.svelte.d.ts"
|
||||
},
|
||||
"./example": {
|
||||
"gradio": "./Example.svelte",
|
||||
"svelte": "./dist/Example.svelte",
|
||||
"types": "./dist/Example.svelte.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -20,6 +28,9 @@
|
||||
"devDependencies": {
|
||||
"@gradio/preview": "workspace:^"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gradio-app/gradio.git",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# @gradio/spa
|
||||
# @self/spa
|
||||
|
||||
## 0.0.2
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@gradio/spa",
|
||||
"name": "@self/spa",
|
||||
"version": "0.0.2",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
@ -24,7 +24,7 @@
|
||||
"build:css": "pollen -c pollen.config.cjs -o src/pollen-dev.css"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gradio/build": "workspace:^",
|
||||
"@self/build": "workspace:^",
|
||||
"@gradio/client": "workspace:^",
|
||||
"@gradio/core": "workspace:^",
|
||||
"@gradio/theme": "workspace:^",
|
||||
@ -36,6 +36,9 @@
|
||||
"msw": {
|
||||
"workerDirectory": "public"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^4.0.0"
|
||||
},
|
||||
"main_changeset": true,
|
||||
"main": "./src/Index.svelte",
|
||||
"repository": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import "@gradio/theme/src/reset.css";
|
||||
import "@gradio/theme/src/global.css";
|
||||
import "@gradio/theme/src/pollen.css";
|
||||
import "@gradio/theme/src/typography.css";
|
||||
import "@gradio/theme/reset.css";
|
||||
import "@gradio/theme/global.css";
|
||||
import "@gradio/theme/pollen.css";
|
||||
import "@gradio/theme/typography.css";
|
||||
import { Client } from "@gradio/client";
|
||||
import { mount_css } from "@gradio/core";
|
||||
import type Index from "./Index.svelte";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { test, expect, drag_and_drop_file } from "@gradio/tootils";
|
||||
import { test, expect, drag_and_drop_file } from "@self/tootils";
|
||||
import { chromium } from "playwright";
|
||||
|
||||
test("Audio events are dispatched correctly. File downloading works and file has correct name.", async ({
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { test, expect } from "@gradio/tootils";
|
||||
import { test, expect } from "@self/tootils";
|
||||
import { chromium } from "playwright";
|
||||
// we cannot currently test the waveform canvas with playwright (https://github.com/microsoft/playwright/issues/23964)
|
||||
// so this test covers the interactive elements around the waveform canvas
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { test, expect } from "@gradio/tootils";
|
||||
import { test, expect } from "@self/tootils";
|
||||
|
||||
test(".success should not run if function fails", async ({ page }) => {
|
||||
const textbox = page.getByLabel("Result");
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { test, expect } from "@gradio/tootils";
|
||||
import { test, expect } from "@self/tootils";
|
||||
|
||||
test("updates frontend correctly", async ({ page }) => {
|
||||
const short_btn = await page.getByLabel("short");
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { test, expect } from "@gradio/tootils";
|
||||
import { test, expect } from "@self/tootils";
|
||||
|
||||
test("shows the results tab when results > 0", async ({ page }) => {
|
||||
await page.getByRole("button", { name: "Start Practice" }).click();
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user