gradio/package.json
pngwn 2f68c9d988
Refactor and redesign ImageEditor component (#10635)
* thanks o3

* add changeset

* more

* make events work

* moreeeeeee

* prettier

* nb

* add changeset

* Update utils.py (#10773)

### Description

This pull request updates the `get_node_path` function in the `gradio/utils.py` file to handle scenarios where the `which` command is missing. The function has been improved by splitting the error handling into two separate `try` blocks for better granularity and robustness.

### Changes Made

- Split the `try` block into two separate `try` blocks for handling Windows and Unix-like systems.
- Added error handling for `FileNotFoundError` in addition to `subprocess.CalledProcessError`.

### Rationale

The original implementation did not properly handle the case when the `which` command is missing. This update ensures the function gracefully handles such scenarios and continues to check other possible locations for the `node` executable.

* fix: latex rendering of markdown (#10765)

* fix: latex rendering of markdown

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* more

* Tweak Image Editor UI (#10779)

* tweak layers ui

* upload alignment and text colour

* change check icon

* zoom tweaks

* tweak layers panel

* changes

* more

* fix image inputs

* more fix

* fix

* fix loading layer via events

* fix loading layer via events

* allow developers to control layers more granularly

* disable pan button when at min zoom

* Update image_editor.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* show visual indicator for outpainting region

* ensure initial image values work

* fix cropped image placement

* fix crop intiialisation options

* demos and fix brush opacity options

* fix layer_options updates and add demo

* more

* fix webcam

* fix

* fix

* improve color swatches

* fix canvas resizing

* simplify crop

* fix crop yet again

* rework controls

* scripts

* tweaks

* tweaks

* fix things

* Add two more demos for `gr.ImageEditor` (#10946)

* changes

* sketchpad

* changes

* various fixed

* generate notebooks

* update changes

* lockfile

* format code

* notebooks

* tweaks

* fix test

* fix notebooks

* changes

* fix storybook

* changes

* interface

* remove redo/undo story

* fix pytest

* changes

* push

* fiiiiiix

* tweaks

* fix

* fix thingy

* tweaks

* changeset

* add changeset

* fix

* fix

* website build issue

* add changeset

* add layeroptions to docs

* formatting

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Pablo Speciale <pablospe@users.noreply.github.com>
Co-authored-by: Col0ring <47329987+Col0ring@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2025-04-08 22:02:04 +01:00

182 lines
6.9 KiB
JSON

{
"name": "gradio-ui",
"version": "0.0.1",
"description": "Gradio UI packages",
"scripts": {
"dev": "pnpm css && pnpm --filter @gradio/preview build && pnpm --filter @self/app dev",
"dev:lite": " pnpm --filter @gradio/lite dev",
"css": "pnpm --filter @gradio/theme generate",
"build": "pnpm css && pnpm --filter @self/app build --emptyOutDir && pnpm --filter @self/spa build --emptyOutDir && pnpm --filter @gradio/preview build",
"build:lite": "pnpm --filter @gradio/lite build",
"format:check": "prettier --ignore-path .config/.prettierignore --check --config .config/.prettierrc.json --plugin prettier-plugin-svelte .",
"format:write": "prettier --ignore-path .config/.prettierignore --write --config .config/.prettierrc.json --plugin prettier-plugin-svelte .",
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c .config/eslint.config.js js client/js",
"ts:check": "svelte-check --tsconfig tsconfig.json --threshold error",
"test": "pnpm --filter @gradio/client build && vitest dev --config .config/vitest.config.ts",
"test:run": "pnpm --filter @gradio/client build && vitest run --config .config/vitest.config.ts --reporter=verbose",
"test:client": "pnpm --filter=@gradio/client test",
"test:browser": "pnpm --filter @self/spa test:browser",
"test:browser:reload": "CUSTOM_TEST=1 pnpm --filter @self/spa test:browser:reload",
"test:browser:full": "run-s build test:browser",
"test:browser:verbose": "pnpm test:browser",
"test:browser:dev": "pnpm --filter @self/spa test:browser:dev",
"storybook": "storybook dev -p 6006 --config-dir js/storybook",
"build-storybook": "storybook build --config-dir js/storybook --webpack-stats-json",
"ci:version": "changeset version && pnpm i --lockfile-only && node ./.changeset/fix_changelogs.cjs",
"ci:publish": "pnpm changeset tag && git push origin --tags && pnpm publish --no-git-checks --access public -r --filter=@gradio/*",
"chromatic": "chromatic",
"test:ct": "playwright test -c ./.config/playwright-ct.config.ts",
"website": "pnpm --filter @gradio/website build",
"package": "pnpm --filter @gradio/* --filter=!@gradio/wasm --filter=!@gradio/lite --filter=!@gradio/client --filter=!@gradio/preview exec svelte-package --input=. --cwd=../../.config/"
},
"type": "module",
"author": "",
"license": "ISC",
"private": true,
"dependencies": {
"@babylonjs/viewer": "^7.54.0",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@changesets/get-github-info": "^0.6.0",
"@csstools/postcss-global-data": "^2.1.1",
"@gradio/client": "workspace:^",
"@manypkg/get-packages": "^2.2.1",
"@playwright/experimental-ct-svelte": "^1.51.1",
"@playwright/test": "^1.51.1",
"@self/build": "workspace:^",
"@self/tootils": "workspace:^",
"@sveltejs/package": "^2.3.4",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"@tailwindcss/forms": "^0.5.7",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6.4.2",
"@types/node": "^20.12.8",
"@types/testing-library__jest-dom": "^5.14.9",
"@types/wavesurfer.js": "^6.0.12",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"autoprefixer": "^10.4.19",
"esbuild": "^0.21.0",
"eslint": "^9.1.1",
"eslint-plugin-svelte": "^2.38.0",
"globals": "^15.1.0",
"happy-dom": "^14.7.1",
"jsdom": "^24.0.0",
"kleur": "^4.1.5",
"msw": "^2.2.14",
"node-html-parser": "^6.1.13",
"npm-run-all2": "^6.1.2",
"playwright": "^1.51.1",
"plotly.js-dist-min": "^2.32.0",
"polka": "1.0.0-next.25",
"pollen-css": "^4.6.2",
"postcss": "^8.4.38",
"postcss-custom-media": "^10.0.4",
"postcss-nested": "^5.0.6",
"postcss-prefix-selector": "^1.16.1",
"prettier": "^3.2.5",
"prettier-plugin-css-order": "^2.1.2",
"prettier-plugin-svelte": "^3.2.3",
"sirv": "^2.0.4",
"sirv-cli": "^2.0.2",
"svelte": "^4.2.15",
"svelte-check": "^4.0.5",
"svelte-eslint-parser": "^0.36.0",
"svelte-i18n": "^4.0.0",
"svelte-preprocess": "^6.0.3",
"tailwindcss": "^3.4.3",
"tinyspy": "^3.0.0",
"typescript": "^5.5.4",
"typescript-svelte-plugin": "^0.3.42",
"vite": "^5.2.11",
"vite-plugin-turbosnap": "1.0.3",
"vitest": "^1.5.3"
},
"devDependencies": {
"@chromatic-com/storybook": "^1",
"@gradio/accordion": "workspace:^",
"@gradio/annotatedimage": "workspace:^",
"@gradio/audio": "workspace:^",
"@gradio/box": "workspace:^",
"@gradio/browserstate": "workspace:^",
"@gradio/button": "workspace:^",
"@gradio/chatbot": "workspace:^",
"@gradio/checkbox": "workspace:^",
"@gradio/checkboxgroup": "workspace:^",
"@gradio/code": "workspace:^",
"@gradio/colorpicker": "workspace:^",
"@gradio/column": "workspace:^",
"@gradio/core": "workspace:^",
"@gradio/dataframe": "workspace:^",
"@gradio/dataset": "workspace:^",
"@gradio/datetime": "workspace:^",
"@gradio/downloadbutton": "workspace:^",
"@gradio/dropdown": "workspace:^",
"@gradio/fallback": "workspace:^",
"@gradio/file": "workspace:^",
"@gradio/fileexplorer": "workspace:^",
"@gradio/form": "workspace:^",
"@gradio/gallery": "workspace:^",
"@gradio/group": "workspace:^",
"@gradio/highlightedtext": "workspace:^",
"@gradio/html": "workspace:^",
"@gradio/image": "workspace:^",
"@gradio/imageeditor": "workspace:^",
"@gradio/json": "workspace:^",
"@gradio/label": "workspace:^",
"@gradio/markdown": "workspace:^",
"@gradio/model3d": "workspace:^",
"@gradio/multimodaltextbox": "workspace:^",
"@gradio/nativeplot": "workspace:^",
"@gradio/number": "workspace:^",
"@gradio/paramviewer": "workspace:^",
"@gradio/plot": "workspace:^",
"@gradio/radio": "workspace:^",
"@gradio/row": "workspace:^",
"@gradio/sidebar": "workspace:^",
"@gradio/simpledropdown": "workspace:^",
"@gradio/simpleimage": "workspace:^",
"@gradio/simpletextbox": "workspace:^",
"@gradio/sketchbox": "workspace:^",
"@gradio/slider": "workspace:^",
"@gradio/state": "workspace:^",
"@gradio/statustracker": "workspace:^",
"@gradio/tabitem": "workspace:^",
"@gradio/tabs": "workspace:^",
"@gradio/textbox": "workspace:^",
"@gradio/timer": "workspace:^",
"@gradio/upload": "workspace:^",
"@gradio/uploadbutton": "workspace:^",
"@gradio/video": "workspace:^",
"@storybook/addon-a11y": "^8.3.6",
"@storybook/addon-essentials": "^8.3.6",
"@storybook/addon-interactions": "^8.3.6",
"@storybook/addon-links": "^8.3.6",
"@storybook/addon-svelte-csf": "^4.1.7",
"@storybook/blocks": "^8.3.6",
"@storybook/manager-api": "^8.3.6",
"@storybook/svelte": "^8.3.6",
"@storybook/svelte-vite": "^8.3.6",
"@storybook/test": "^8.3.6",
"@storybook/theming": "^8.3.6",
"@testing-library/user-event": "^14.5.2",
"chromatic": "^11.3.0",
"eslint-plugin-jsdoc": "^48.2.3",
"storybook": "^8.3.6",
"wikidata-lang": "^4.1.2"
},
"engines": {
"node": ">=18.0.0",
"pnpm": "^9"
},
"pnpm": {
"patchedDependencies": {
"@sveltejs/package@2.3.4": "patches/@sveltejs__package@2.3.4.patch",
"@ffmpeg/util@0.12.1": "patches/@ffmpeg__util@0.12.1.patch"
},
"overrides": {
"svelte-preprocess": "^6.0.3"
}
}
}