From c5ea13bdf7363224863760e53fbcdbed81754628 Mon Sep 17 00:00:00 2001 From: pngwn Date: Mon, 20 Nov 2023 21:45:52 +0000 Subject: [PATCH 1/8] chore: update versions (#6481) Co-authored-by: github-actions[bot] --- .changeset/bumpy-rockets-rush.md | 5 -- .changeset/few-tips-appear.md | 57 --------------------- .changeset/whole-buckets-add.md | 6 --- CHANGELOG.md | 55 ++++++++++++++++++++ gradio/CHANGELOG.md | 55 ++++++++++++++++++++ gradio/package.json | 2 +- js/_website/CHANGELOG.md | 21 +++++--- js/_website/package.json | 4 +- js/accordion/CHANGELOG.md | 8 +++ js/accordion/package.json | 2 +- js/annotatedimage/CHANGELOG.md | 10 ++++ js/annotatedimage/package.json | 2 +- js/app/CHANGELOG.md | 50 +++++++++++++++++++ js/app/package.json | 2 +- js/atoms/CHANGELOG.md | 50 +++++++++++++++++++ js/atoms/package.json | 2 +- js/audio/CHANGELOG.md | 29 +++++++---- js/audio/package.json | 2 +- js/box/CHANGELOG.md | 7 +++ js/box/package.json | 2 +- js/button/CHANGELOG.md | 7 +++ js/button/package.json | 2 +- js/chatbot/CHANGELOG.md | 11 ++++ js/chatbot/package.json | 2 +- js/checkbox/CHANGELOG.md | 8 +++ js/checkbox/package.json | 2 +- js/checkboxgroup/CHANGELOG.md | 8 +++ js/checkboxgroup/package.json | 2 +- js/code/CHANGELOG.md | 10 ++++ js/code/package.json | 2 +- js/colorpicker/CHANGELOG.md | 8 +++ js/colorpicker/package.json | 2 +- js/dataframe/CHANGELOG.md | 11 ++++ js/dataframe/package.json | 2 +- js/dataset/CHANGELOG.md | 8 +++ js/dataset/package.json | 2 +- js/dropdown/CHANGELOG.md | 13 ++++- js/dropdown/package.json | 2 +- js/fallback/CHANGELOG.md | 8 +++ js/fallback/package.json | 2 +- js/file/CHANGELOG.md | 10 ++++ js/file/package.json | 2 +- js/fileexplorer/CHANGELOG.md | 12 +++++ js/fileexplorer/package.json | 2 +- js/form/CHANGELOG.md | 8 +++ js/form/package.json | 2 +- js/gallery/CHANGELOG.md | 11 ++++ js/gallery/package.json | 2 +- js/highlightedtext/CHANGELOG.md | 9 ++++ js/highlightedtext/package.json | 2 +- js/html/CHANGELOG.md | 8 +++ js/html/package.json | 2 +- js/icons/CHANGELOG.md | 50 +++++++++++++++++++ js/icons/package.json | 2 +- js/image/CHANGELOG.md | 50 +++++++++++++++++++ js/image/package.json | 2 +- js/imageeditor/CHANGELOG.md | 58 +++++++++++++++++++++- js/imageeditor/package.json | 2 +- js/json/CHANGELOG.md | 9 ++++ js/json/package.json | 2 +- js/label/CHANGELOG.md | 9 ++++ js/label/package.json | 2 +- js/markdown/CHANGELOG.md | 8 +++ js/markdown/package.json | 2 +- js/model3D/CHANGELOG.md | 10 ++++ js/model3D/package.json | 2 +- js/number/CHANGELOG.md | 8 +++ js/number/package.json | 2 +- js/plot/CHANGELOG.md | 9 ++++ js/plot/package.json | 2 +- js/preview/CHANGELOG.md | 50 +++++++++++++++++++ js/preview/package.json | 2 +- js/preview/test/test/frontend/CHANGELOG.md | 8 +++ js/preview/test/test/frontend/package.json | 6 +-- js/radio/CHANGELOG.md | 8 +++ js/radio/package.json | 2 +- js/simpledropdown/CHANGELOG.md | 9 ++++ js/simpledropdown/package.json | 2 +- js/simpletextbox/CHANGELOG.md | 9 ++++ js/simpletextbox/package.json | 2 +- js/slider/CHANGELOG.md | 8 +++ js/slider/package.json | 2 +- js/statustracker/CHANGELOG.md | 52 ++++++++++++++++++- js/statustracker/package.json | 2 +- js/textbox/CHANGELOG.md | 9 ++++ js/textbox/package.json | 2 +- js/tootils/CHANGELOG.md | 7 +++ js/tootils/package.json | 2 +- js/upload/CHANGELOG.md | 50 +++++++++++++++++++ js/upload/package.json | 2 +- js/uploadbutton/CHANGELOG.md | 12 ++++- js/uploadbutton/package.json | 2 +- js/video/CHANGELOG.md | 11 ++++ js/video/package.json | 2 +- pnpm-lock.yaml | 11 ++-- 95 files changed, 912 insertions(+), 142 deletions(-) delete mode 100644 .changeset/bumpy-rockets-rush.md delete mode 100644 .changeset/few-tips-appear.md delete mode 100644 .changeset/whole-buckets-add.md diff --git a/.changeset/bumpy-rockets-rush.md b/.changeset/bumpy-rockets-rush.md deleted file mode 100644 index 746e8c735222c..0000000000000 --- a/.changeset/bumpy-rockets-rush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": patch ---- - -fix:Fix SourceFileReloader to watch the module with a qualified name to avoid importing a module with the same name from a different path diff --git a/.changeset/few-tips-appear.md b/.changeset/few-tips-appear.md deleted file mode 100644 index e3d876c173c28..0000000000000 --- a/.changeset/few-tips-appear.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -"@gradio/app": minor -"@gradio/atoms": minor -"@gradio/icons": minor -"@gradio/image": minor -"@gradio/imageeditor": minor -"@gradio/preview": minor -"@gradio/statustracker": minor -"@gradio/upload": minor -"gradio": minor ---- - -highlight: - -#### New `ImageEditor` component - -A brand new component, completely separate from `Image` that provides simple editing capabilities. - -- Set background images from file uploads, webcam, or just paste! -- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) -- Paint on top of any image (or no image) and erase any mistakes! -- The ImageEditor supports layers, confining draw and erase actions to that layer. -- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. -- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. - - - -```py - -def fn(im): - im["composite"] # the full canvas - im["background"] # the background image - im["layers"] # a list of individual layers - - -im = gr.ImageEditor( - # decide which sources you'd like to accept - sources=["upload", "webcam", "clipboard"], - # set a cropsize constraint, can either be a ratio or a concrete [width, height] - crop_size="1:1", - # enable crop (or disable it) - transforms=["crop"], - # customise the brush - brush=Brush( - default_size="25", # or leave it as 'auto' - color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it - default_color="hotpink", # html names are supported - colors=[ - "rgba(0, 150, 150, 1)", # rgb(a) - "#fff", # hex rgb - "hsl(360, 120, 120)" # in fact any valid colorstring - ] - ), - brush=Eraser(default_size="25") -) - -``` diff --git a/.changeset/whole-buckets-add.md b/.changeset/whole-buckets-add.md deleted file mode 100644 index 929cbe9fa7cbf..0000000000000 --- a/.changeset/whole-buckets-add.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/imageeditor": patch -"gradio": patch ---- - -fix:Ensure image editor crop and draw cursor works as expected when the scroll position changes diff --git a/CHANGELOG.md b/CHANGELOG.md index fb523c19f495c..cde9513752c98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,60 @@ # gradio +## 4.5.0 + +### Highlights + +#### New `ImageEditor` component ([#6169](https://github.com/gradio-app/gradio/pull/6169) [`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)) + +A brand new component, completely separate from `Image` that provides simple editing capabilities. + +- Set background images from file uploads, webcam, or just paste! +- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) +- Paint on top of any image (or no image) and erase any mistakes! +- The ImageEditor supports layers, confining draw and erase actions to that layer. +- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. +- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. + + + +```py + +def fn(im): + im["composite"] # the full canvas + im["background"] # the background image + im["layers"] # a list of individual layers + + +im = gr.ImageEditor( + # decide which sources you'd like to accept + sources=["upload", "webcam", "clipboard"], + # set a cropsize constraint, can either be a ratio or a concrete [width, height] + crop_size="1:1", + # enable crop (or disable it) + transforms=["crop"], + # customise the brush + brush=Brush( + default_size="25", # or leave it as 'auto' + color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it + default_color="hotpink", # html names are supported + colors=[ + "rgba(0, 150, 150, 1)", # rgb(a) + "#fff", # hex rgb + "hsl(360, 120, 120)" # in fact any valid colorstring + ] + ), + brush=Eraser(default_size="25") +) + +``` + + Thanks [@pngwn](https://github.com/pngwn)! + +### Fixes + +- [#6497](https://github.com/gradio-app/gradio/pull/6497) [`1baed201b`](https://github.com/gradio-app/gradio/commit/1baed201b12ecb5791146aed9a86b576c3595130) - Fix SourceFileReloader to watch the module with a qualified name to avoid importing a module with the same name from a different path. Thanks [@whitphx](https://github.com/whitphx)! +- [#6502](https://github.com/gradio-app/gradio/pull/6502) [`070f71c93`](https://github.com/gradio-app/gradio/commit/070f71c933d846ce8e2fe11cdd9bc0f3f897f29f) - Ensure image editor crop and draw cursor works as expected when the scroll position changes. Thanks [@pngwn](https://github.com/pngwn)! + ## 4.4.1 ### Features diff --git a/gradio/CHANGELOG.md b/gradio/CHANGELOG.md index fb523c19f495c..cde9513752c98 100644 --- a/gradio/CHANGELOG.md +++ b/gradio/CHANGELOG.md @@ -1,5 +1,60 @@ # gradio +## 4.5.0 + +### Highlights + +#### New `ImageEditor` component ([#6169](https://github.com/gradio-app/gradio/pull/6169) [`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)) + +A brand new component, completely separate from `Image` that provides simple editing capabilities. + +- Set background images from file uploads, webcam, or just paste! +- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) +- Paint on top of any image (or no image) and erase any mistakes! +- The ImageEditor supports layers, confining draw and erase actions to that layer. +- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. +- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. + + + +```py + +def fn(im): + im["composite"] # the full canvas + im["background"] # the background image + im["layers"] # a list of individual layers + + +im = gr.ImageEditor( + # decide which sources you'd like to accept + sources=["upload", "webcam", "clipboard"], + # set a cropsize constraint, can either be a ratio or a concrete [width, height] + crop_size="1:1", + # enable crop (or disable it) + transforms=["crop"], + # customise the brush + brush=Brush( + default_size="25", # or leave it as 'auto' + color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it + default_color="hotpink", # html names are supported + colors=[ + "rgba(0, 150, 150, 1)", # rgb(a) + "#fff", # hex rgb + "hsl(360, 120, 120)" # in fact any valid colorstring + ] + ), + brush=Eraser(default_size="25") +) + +``` + + Thanks [@pngwn](https://github.com/pngwn)! + +### Fixes + +- [#6497](https://github.com/gradio-app/gradio/pull/6497) [`1baed201b`](https://github.com/gradio-app/gradio/commit/1baed201b12ecb5791146aed9a86b576c3595130) - Fix SourceFileReloader to watch the module with a qualified name to avoid importing a module with the same name from a different path. Thanks [@whitphx](https://github.com/whitphx)! +- [#6502](https://github.com/gradio-app/gradio/pull/6502) [`070f71c93`](https://github.com/gradio-app/gradio/commit/070f71c933d846ce8e2fe11cdd9bc0f3f897f29f) - Ensure image editor crop and draw cursor works as expected when the scroll position changes. Thanks [@pngwn](https://github.com/pngwn)! + ## 4.4.1 ### Features diff --git a/gradio/package.json b/gradio/package.json index 5e4162e02bdea..d9a53717643d0 100644 --- a/gradio/package.json +++ b/gradio/package.json @@ -1,6 +1,6 @@ { "name": "gradio", - "version": "4.4.1", + "version": "4.5.0", "description": "", "python": "true" } diff --git a/js/_website/CHANGELOG.md b/js/_website/CHANGELOG.md index 5424f280d7fa6..335d1c0b21e29 100644 --- a/js/_website/CHANGELOG.md +++ b/js/_website/CHANGELOG.md @@ -1,30 +1,37 @@ # website +## 0.16.1 + +### Patch Changes + +- Updated dependencies []: + - @gradio/code@0.2.7 + ## 0.16.0 ### Features -- [#6460](https://github.com/gradio-app/gradio/pull/6460) [`e01b67f96`](https://github.com/gradio-app/gradio/commit/e01b67f96f054b4d96cd72ce9b713bab9992c6cc) - Custom Component Guide Redirects. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! +- [#6460](https://github.com/gradio-app/gradio/pull/6460) [`e01b67f96`](https://github.com/gradio-app/gradio/commit/e01b67f96f054b4d96cd72ce9b713bab9992c6cc) - Custom Component Guide Redirects. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! ## 0.15.0 ### Features -- [#6436](https://github.com/gradio-app/gradio/pull/6436) [`58e3ca826`](https://github.com/gradio-app/gradio/commit/58e3ca8260a6635e10e7a7f141221c4f746e9386) - Custom Component CLI Improvements. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! -- [#6427](https://github.com/gradio-app/gradio/pull/6427) [`e0fc14659`](https://github.com/gradio-app/gradio/commit/e0fc146598ba9b081bc5fa9616d0a41c2aba2427) - Allow google analytics to work on Spaces (and other iframe situations). Thanks [@abidlabs](https://github.com/abidlabs)! +- [#6436](https://github.com/gradio-app/gradio/pull/6436) [`58e3ca826`](https://github.com/gradio-app/gradio/commit/58e3ca8260a6635e10e7a7f141221c4f746e9386) - Custom Component CLI Improvements. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! +- [#6427](https://github.com/gradio-app/gradio/pull/6427) [`e0fc14659`](https://github.com/gradio-app/gradio/commit/e0fc146598ba9b081bc5fa9616d0a41c2aba2427) - Allow google analytics to work on Spaces (and other iframe situations). Thanks [@abidlabs](https://github.com/abidlabs)! ## 0.14.0 ### Features -- [#6387](https://github.com/gradio-app/gradio/pull/6387) [`9d6d72f44`](https://github.com/gradio-app/gradio/commit/9d6d72f44370c45d9e213421a5586c25c5789278) - Tiny fix to indent on landing page demo. Thanks [@aliabd](https://github.com/aliabd)! -- [#6344](https://github.com/gradio-app/gradio/pull/6344) [`747197089`](https://github.com/gradio-app/gradio/commit/7471970894e999f335126766549552184231e8ea) - PDF component custom component guide. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! +- [#6387](https://github.com/gradio-app/gradio/pull/6387) [`9d6d72f44`](https://github.com/gradio-app/gradio/commit/9d6d72f44370c45d9e213421a5586c25c5789278) - Tiny fix to indent on landing page demo. Thanks [@aliabd](https://github.com/aliabd)! +- [#6344](https://github.com/gradio-app/gradio/pull/6344) [`747197089`](https://github.com/gradio-app/gradio/commit/7471970894e999f335126766549552184231e8ea) - PDF component custom component guide. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! ## 0.13.0 ### Features -- [#6351](https://github.com/gradio-app/gradio/pull/6351) [`294414d9f`](https://github.com/gradio-app/gradio/commit/294414d9f7b53da1a870d2d96e62a75242b40849) - Add sharing to playground. Thanks [@aliabd](https://github.com/aliabd)! +- [#6351](https://github.com/gradio-app/gradio/pull/6351) [`294414d9f`](https://github.com/gradio-app/gradio/commit/294414d9f7b53da1a870d2d96e62a75242b40849) - Add sharing to playground. Thanks [@aliabd](https://github.com/aliabd)! ## 0.12.1 @@ -201,4 +208,4 @@ Thanks [@pngwn](https://github.com/pngwn)! ### Fixes -- [#5007](https://github.com/gradio-app/gradio/pull/5007) [`71c90394`](https://github.com/gradio-app/gradio/commit/71c90394012a9cfe10eae312b437a6deff52da3a) - Make sure tags aren't rendered inside a guide. Thanks [@aliabd](https://github.com/aliabd)! \ No newline at end of file +- [#5007](https://github.com/gradio-app/gradio/pull/5007) [`71c90394`](https://github.com/gradio-app/gradio/commit/71c90394012a9cfe10eae312b437a6deff52da3a) - Make sure tags aren't rendered inside a guide. Thanks [@aliabd](https://github.com/aliabd)! diff --git a/js/_website/package.json b/js/_website/package.json index f27bc0b7fac52..d4789ca4a3221 100644 --- a/js/_website/package.json +++ b/js/_website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "0.16.0", + "version": "0.16.1", "private": true, "scripts": { "dev": "python generate_jsons/generate.py && vite dev", @@ -27,7 +27,7 @@ }, "type": "module", "dependencies": { - "@gradio/code": "0.2.6", + "@gradio/code": "0.2.7", "@sindresorhus/slugify": "^2.2.0", "@sveltejs/adapter-vercel": "^3.0.3", "hast-util-to-string": "^3.0.0", diff --git a/js/accordion/CHANGELOG.md b/js/accordion/CHANGELOG.md index 78e380b9ac89d..f5f9445e81e8b 100644 --- a/js/accordion/CHANGELOG.md +++ b/js/accordion/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/accordion +## 0.2.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.2.2 ### Patch Changes diff --git a/js/accordion/package.json b/js/accordion/package.json index 68514727b051a..ac806fa0feff1 100644 --- a/js/accordion/package.json +++ b/js/accordion/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/accordion", - "version": "0.2.2", + "version": "0.2.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/annotatedimage/CHANGELOG.md b/js/annotatedimage/CHANGELOG.md index 6bd81caa8a843..b521b8007f799 100644 --- a/js/annotatedimage/CHANGELOG.md +++ b/js/annotatedimage/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/annotatedimage +## 0.3.7 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + - @gradio/upload@0.5.0 + ## 0.3.6 ### Patch Changes diff --git a/js/annotatedimage/package.json b/js/annotatedimage/package.json index ee5824a69b80a..ae00206ee8140 100644 --- a/js/annotatedimage/package.json +++ b/js/annotatedimage/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/annotatedimage", - "version": "0.3.6", + "version": "0.3.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/app/CHANGELOG.md b/js/app/CHANGELOG.md index d9e2ca7e9dbc5..0396ecd3302b6 100644 --- a/js/app/CHANGELOG.md +++ b/js/app/CHANGELOG.md @@ -1,5 +1,55 @@ # @gradio/app +## 1.13.0 + +### Highlights + +#### New `ImageEditor` component ([#6169](https://github.com/gradio-app/gradio/pull/6169) [`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)) + +A brand new component, completely separate from `Image` that provides simple editing capabilities. + +- Set background images from file uploads, webcam, or just paste! +- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) +- Paint on top of any image (or no image) and erase any mistakes! +- The ImageEditor supports layers, confining draw and erase actions to that layer. +- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. +- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. + + + +```py + +def fn(im): + im["composite"] # the full canvas + im["background"] # the background image + im["layers"] # a list of individual layers + + +im = gr.ImageEditor( + # decide which sources you'd like to accept + sources=["upload", "webcam", "clipboard"], + # set a cropsize constraint, can either be a ratio or a concrete [width, height] + crop_size="1:1", + # enable crop (or disable it) + transforms=["crop"], + # customise the brush + brush=Brush( + default_size="25", # or leave it as 'auto' + color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it + default_color="hotpink", # html names are supported + colors=[ + "rgba(0, 150, 150, 1)", # rgb(a) + "#fff", # hex rgb + "hsl(360, 120, 120)" # in fact any valid colorstring + ] + ), + brush=Eraser(default_size="25") +) + +``` + + Thanks [@pngwn](https://github.com/pngwn)! + ## 1.12.0 ### Features diff --git a/js/app/package.json b/js/app/package.json index 7954a57d0c11e..496489190267f 100644 --- a/js/app/package.json +++ b/js/app/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/app", - "version": "1.12.0", + "version": "1.13.0", "private": true, "type": "module", "scripts": { diff --git a/js/atoms/CHANGELOG.md b/js/atoms/CHANGELOG.md index 2e722032d75e5..66d5250508b73 100644 --- a/js/atoms/CHANGELOG.md +++ b/js/atoms/CHANGELOG.md @@ -1,5 +1,55 @@ # @gradio/atoms +## 0.3.0 + +### Highlights + +#### New `ImageEditor` component ([#6169](https://github.com/gradio-app/gradio/pull/6169) [`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)) + +A brand new component, completely separate from `Image` that provides simple editing capabilities. + +- Set background images from file uploads, webcam, or just paste! +- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) +- Paint on top of any image (or no image) and erase any mistakes! +- The ImageEditor supports layers, confining draw and erase actions to that layer. +- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. +- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. + + + +```py + +def fn(im): + im["composite"] # the full canvas + im["background"] # the background image + im["layers"] # a list of individual layers + + +im = gr.ImageEditor( + # decide which sources you'd like to accept + sources=["upload", "webcam", "clipboard"], + # set a cropsize constraint, can either be a ratio or a concrete [width, height] + crop_size="1:1", + # enable crop (or disable it) + transforms=["crop"], + # customise the brush + brush=Brush( + default_size="25", # or leave it as 'auto' + color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it + default_color="hotpink", # html names are supported + colors=[ + "rgba(0, 150, 150, 1)", # rgb(a) + "#fff", # hex rgb + "hsl(360, 120, 120)" # in fact any valid colorstring + ] + ), + brush=Eraser(default_size="25") +) + +``` + + Thanks [@pngwn](https://github.com/pngwn)! + ## 0.2.2 ### Fixes diff --git a/js/atoms/package.json b/js/atoms/package.json index bb97bb0ec3d18..dd8fdcc129416 100644 --- a/js/atoms/package.json +++ b/js/atoms/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/atoms", - "version": "0.2.2", + "version": "0.3.0", "description": "Gradio UI packages", "type": "module", "main": "src/index.ts", diff --git a/js/audio/CHANGELOG.md b/js/audio/CHANGELOG.md index 18646798d255c..3969e9933561e 100644 --- a/js/audio/CHANGELOG.md +++ b/js/audio/CHANGELOG.md @@ -1,40 +1,51 @@ # @gradio/audio +## 0.5.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + - @gradio/upload@0.5.0 + - @gradio/button@0.2.7 + ## 0.5.2 ### Features -- [#6419](https://github.com/gradio-app/gradio/pull/6419) [`1959471a8`](https://github.com/gradio-app/gradio/commit/1959471a8d939275c7b9184913a5a6f92e567604) - Add download tests for audio/video. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! +- [#6419](https://github.com/gradio-app/gradio/pull/6419) [`1959471a8`](https://github.com/gradio-app/gradio/commit/1959471a8d939275c7b9184913a5a6f92e567604) - Add download tests for audio/video. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! ### Fixes -- [#6454](https://github.com/gradio-app/gradio/pull/6454) [`2777f326e`](https://github.com/gradio-app/gradio/commit/2777f326e595541fbec8ce14f56340b9e740f1da) - Ensure Audio ouput events are dispatched. Thanks [@hannahblair](https://github.com/hannahblair)! -- [#6254](https://github.com/gradio-app/gradio/pull/6254) [`f816136a0`](https://github.com/gradio-app/gradio/commit/f816136a039fa6011be9c4fb14f573e4050a681a) - Add volume control to Audio. Thanks [@hannahblair](https://github.com/hannahblair)! +- [#6454](https://github.com/gradio-app/gradio/pull/6454) [`2777f326e`](https://github.com/gradio-app/gradio/commit/2777f326e595541fbec8ce14f56340b9e740f1da) - Ensure Audio ouput events are dispatched. Thanks [@hannahblair](https://github.com/hannahblair)! +- [#6254](https://github.com/gradio-app/gradio/pull/6254) [`f816136a0`](https://github.com/gradio-app/gradio/commit/f816136a039fa6011be9c4fb14f573e4050a681a) - Add volume control to Audio. Thanks [@hannahblair](https://github.com/hannahblair)! ## 0.5.1 ### Fixes -- [#6382](https://github.com/gradio-app/gradio/pull/6382) [`2090aad73`](https://github.com/gradio-app/gradio/commit/2090aad731b186ef0a3f63ec2b4d1a6e3acb1754) - Move wavesurfer dep to js/audio. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! +- [#6382](https://github.com/gradio-app/gradio/pull/6382) [`2090aad73`](https://github.com/gradio-app/gradio/commit/2090aad731b186ef0a3f63ec2b4d1a6e3acb1754) - Move wavesurfer dep to js/audio. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! ## 0.5.0 ### Features -- [#6343](https://github.com/gradio-app/gradio/pull/6343) [`37dd335e5`](https://github.com/gradio-app/gradio/commit/37dd335e5f04a8e689dd7f23ae24ad1934ea08d8) - Fix audio streaming output issues in 4.0. Thanks [@aliabid94](https://github.com/aliabid94)! +- [#6343](https://github.com/gradio-app/gradio/pull/6343) [`37dd335e5`](https://github.com/gradio-app/gradio/commit/37dd335e5f04a8e689dd7f23ae24ad1934ea08d8) - Fix audio streaming output issues in 4.0. Thanks [@aliabid94](https://github.com/aliabid94)! ## 0.4.3 ### Fixes -- [#6317](https://github.com/gradio-app/gradio/pull/6317) [`19af2806a`](https://github.com/gradio-app/gradio/commit/19af2806a58419cc551d2d1d6d8987df0db91ccb) - Add autoplay to `waveform_settings`. Thanks [@hannahblair](https://github.com/hannahblair)! -- [#6279](https://github.com/gradio-app/gradio/pull/6279) [`3cdeabc68`](https://github.com/gradio-app/gradio/commit/3cdeabc6843000310e1a9e1d17190ecbf3bbc780) - Ensure source selection does not get hidden in overflow. Thanks [@hannahblair](https://github.com/hannahblair)! +- [#6317](https://github.com/gradio-app/gradio/pull/6317) [`19af2806a`](https://github.com/gradio-app/gradio/commit/19af2806a58419cc551d2d1d6d8987df0db91ccb) - Add autoplay to `waveform_settings`. Thanks [@hannahblair](https://github.com/hannahblair)! +- [#6279](https://github.com/gradio-app/gradio/pull/6279) [`3cdeabc68`](https://github.com/gradio-app/gradio/commit/3cdeabc6843000310e1a9e1d17190ecbf3bbc780) - Ensure source selection does not get hidden in overflow. Thanks [@hannahblair](https://github.com/hannahblair)! ## 0.4.2 ### Fixes -- [#6234](https://github.com/gradio-app/gradio/pull/6234) [`aaa55ce85`](https://github.com/gradio-app/gradio/commit/aaa55ce85e12f95aba9299445e9c5e59824da18e) - Video/Audio fixes. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! +- [#6234](https://github.com/gradio-app/gradio/pull/6234) [`aaa55ce85`](https://github.com/gradio-app/gradio/commit/aaa55ce85e12f95aba9299445e9c5e59824da18e) - Video/Audio fixes. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! ## 0.4.1 @@ -194,4 +205,4 @@ Thanks [@pngwn](https://github.com/pngwn)! ### Features -- [#4993](https://github.com/gradio-app/gradio/pull/4993) [`dc07a9f9`](https://github.com/gradio-app/gradio/commit/dc07a9f947de44b419d8384987a02dcf94977851) - Bringing back the "Add download button for audio" PR by [@leuryr](https://github.com/leuryr). Thanks [@abidlabs](https://github.com/abidlabs)! \ No newline at end of file +- [#4993](https://github.com/gradio-app/gradio/pull/4993) [`dc07a9f9`](https://github.com/gradio-app/gradio/commit/dc07a9f947de44b419d8384987a02dcf94977851) - Bringing back the "Add download button for audio" PR by [@leuryr](https://github.com/leuryr). Thanks [@abidlabs](https://github.com/abidlabs)! diff --git a/js/audio/package.json b/js/audio/package.json index 7a5949be39c35..7c8a442cf3945 100644 --- a/js/audio/package.json +++ b/js/audio/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/audio", - "version": "0.5.2", + "version": "0.5.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/box/CHANGELOG.md b/js/box/CHANGELOG.md index 153aa4fcb6a64..6ce6b93e893f6 100644 --- a/js/box/CHANGELOG.md +++ b/js/box/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/box +## 0.1.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + ## 0.1.2 ### Patch Changes diff --git a/js/box/package.json b/js/box/package.json index 306dc6be43ba6..c31e2c05bb5b9 100644 --- a/js/box/package.json +++ b/js/box/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/box", - "version": "0.1.2", + "version": "0.1.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/button/CHANGELOG.md b/js/button/CHANGELOG.md index c38a3d1ffd620..daa86b3507b23 100644 --- a/js/button/CHANGELOG.md +++ b/js/button/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/button +## 0.2.7 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/upload@0.5.0 + ## 0.2.6 ### Patch Changes diff --git a/js/button/package.json b/js/button/package.json index 9bc61075b0f6f..4c65529ea822b 100644 --- a/js/button/package.json +++ b/js/button/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/button", - "version": "0.2.6", + "version": "0.2.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/chatbot/CHANGELOG.md b/js/chatbot/CHANGELOG.md index 5242328cc653a..6d29f383b245a 100644 --- a/js/chatbot/CHANGELOG.md +++ b/js/chatbot/CHANGELOG.md @@ -1,5 +1,16 @@ # @gradio/chatbot +## 0.4.7 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + - @gradio/upload@0.5.0 + - @gradio/markdown@0.3.3 + ## 0.4.6 ### Patch Changes diff --git a/js/chatbot/package.json b/js/chatbot/package.json index 2fdb17f261cbd..b0db5436c0b19 100644 --- a/js/chatbot/package.json +++ b/js/chatbot/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/chatbot", - "version": "0.4.6", + "version": "0.4.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/checkbox/CHANGELOG.md b/js/checkbox/CHANGELOG.md index d96366ea18452..48c57be4a99dc 100644 --- a/js/checkbox/CHANGELOG.md +++ b/js/checkbox/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/checkbox +## 0.2.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.2.2 ### Patch Changes diff --git a/js/checkbox/package.json b/js/checkbox/package.json index a34b1829459f3..2def1bf12ed08 100644 --- a/js/checkbox/package.json +++ b/js/checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/checkbox", - "version": "0.2.2", + "version": "0.2.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/checkboxgroup/CHANGELOG.md b/js/checkboxgroup/CHANGELOG.md index 92612211ac967..e167218e90cce 100644 --- a/js/checkboxgroup/CHANGELOG.md +++ b/js/checkboxgroup/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/checkboxgroup +## 0.3.4 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.3.3 ### Patch Changes diff --git a/js/checkboxgroup/package.json b/js/checkboxgroup/package.json index ee3431bf398e2..21e8d71257a53 100644 --- a/js/checkboxgroup/package.json +++ b/js/checkboxgroup/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/checkboxgroup", - "version": "0.3.3", + "version": "0.3.4", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/code/CHANGELOG.md b/js/code/CHANGELOG.md index 5250e2a273d24..c88fc6a9a67a3 100644 --- a/js/code/CHANGELOG.md +++ b/js/code/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/code +## 0.2.7 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + - @gradio/upload@0.5.0 + ## 0.2.6 ### Patch Changes diff --git a/js/code/package.json b/js/code/package.json index 2839e4f014c55..397fbd9de7747 100644 --- a/js/code/package.json +++ b/js/code/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/code", - "version": "0.2.6", + "version": "0.2.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/colorpicker/CHANGELOG.md b/js/colorpicker/CHANGELOG.md index 2cf79b656cd9b..b1cd57f159776 100644 --- a/js/colorpicker/CHANGELOG.md +++ b/js/colorpicker/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/colorpicker +## 0.2.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.2.2 ### Patch Changes diff --git a/js/colorpicker/package.json b/js/colorpicker/package.json index dc1bb978672fe..98d506388e1bf 100644 --- a/js/colorpicker/package.json +++ b/js/colorpicker/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/colorpicker", - "version": "0.2.2", + "version": "0.2.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/dataframe/CHANGELOG.md b/js/dataframe/CHANGELOG.md index 18b09fb7372d7..24bc042cfb82c 100644 --- a/js/dataframe/CHANGELOG.md +++ b/js/dataframe/CHANGELOG.md @@ -1,5 +1,16 @@ # @gradio/dataframe +## 0.3.8 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + - @gradio/upload@0.5.0 + - @gradio/markdown@0.3.3 + - @gradio/button@0.2.7 + ## 0.3.7 ### Patch Changes diff --git a/js/dataframe/package.json b/js/dataframe/package.json index e8930a878a1e2..d4338b2dec81d 100644 --- a/js/dataframe/package.json +++ b/js/dataframe/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/dataframe", - "version": "0.3.7", + "version": "0.3.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/dataset/CHANGELOG.md b/js/dataset/CHANGELOG.md index f86840821aa2f..178b3f7c7e190 100644 --- a/js/dataset/CHANGELOG.md +++ b/js/dataset/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/dataset +## 0.1.7 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/upload@0.5.0 + ## 0.1.6 ### Patch Changes diff --git a/js/dataset/package.json b/js/dataset/package.json index 22c6be2ec9ecc..00d199618c94e 100644 --- a/js/dataset/package.json +++ b/js/dataset/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/dataset", - "version": "0.1.6", + "version": "0.1.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/dropdown/CHANGELOG.md b/js/dropdown/CHANGELOG.md index 05b34f5d1340b..e409bc4f0c97b 100644 --- a/js/dropdown/CHANGELOG.md +++ b/js/dropdown/CHANGELOG.md @@ -1,10 +1,19 @@ # @gradio/dropdown +## 0.3.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.3.2 ### Fixes -- [#6425](https://github.com/gradio-app/gradio/pull/6425) [`b3ba17dd1`](https://github.com/gradio-app/gradio/commit/b3ba17dd1167d254756d93f1fb01e8be071819b6) - Update the selected indices in `Dropdown` when value changes programmatically. Thanks [@abidlabs](https://github.com/abidlabs)! +- [#6425](https://github.com/gradio-app/gradio/pull/6425) [`b3ba17dd1`](https://github.com/gradio-app/gradio/commit/b3ba17dd1167d254756d93f1fb01e8be071819b6) - Update the selected indices in `Dropdown` when value changes programmatically. Thanks [@abidlabs](https://github.com/abidlabs)! ## 0.3.1 @@ -153,4 +162,4 @@ Thanks [@pngwn](https://github.com/pngwn)! ### Fixes - [#5062](https://github.com/gradio-app/gradio/pull/5062) [`7d897165`](https://github.com/gradio-app/gradio/commit/7d89716519d0751072792c9bbda668ffeb597296) - `gr.Dropdown` now has correct behavior in static mode as well as when an option is selected. Thanks [@abidlabs](https://github.com/abidlabs)! -- [#5039](https://github.com/gradio-app/gradio/pull/5039) [`620e4645`](https://github.com/gradio-app/gradio/commit/620e46452729d6d4877b3fab84a65daf2f2b7bc6) - `gr.Dropdown()` now supports values with arbitrary characters and doesn't clear value when re-focused. Thanks [@abidlabs](https://github.com/abidlabs)! \ No newline at end of file +- [#5039](https://github.com/gradio-app/gradio/pull/5039) [`620e4645`](https://github.com/gradio-app/gradio/commit/620e46452729d6d4877b3fab84a65daf2f2b7bc6) - `gr.Dropdown()` now supports values with arbitrary characters and doesn't clear value when re-focused. Thanks [@abidlabs](https://github.com/abidlabs)! diff --git a/js/dropdown/package.json b/js/dropdown/package.json index 02c1a9cecd294..f0781e1986991 100644 --- a/js/dropdown/package.json +++ b/js/dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/dropdown", - "version": "0.3.2", + "version": "0.3.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/fallback/CHANGELOG.md b/js/fallback/CHANGELOG.md index a7720d8cd5072..2ac3dd18a0ec7 100644 --- a/js/fallback/CHANGELOG.md +++ b/js/fallback/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/fallback +## 0.2.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.2.2 ### Patch Changes diff --git a/js/fallback/package.json b/js/fallback/package.json index 7e488369ac2e1..2684d7cec05ae 100644 --- a/js/fallback/package.json +++ b/js/fallback/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/fallback", - "version": "0.2.2", + "version": "0.2.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/file/CHANGELOG.md b/js/file/CHANGELOG.md index bcb46010f0124..ea9a953a93bbb 100644 --- a/js/file/CHANGELOG.md +++ b/js/file/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/file +## 0.2.7 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + - @gradio/upload@0.5.0 + ## 0.2.6 ### Patch Changes diff --git a/js/file/package.json b/js/file/package.json index 4967d169b8ead..bcb19bbd2614e 100644 --- a/js/file/package.json +++ b/js/file/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/file", - "version": "0.2.6", + "version": "0.2.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/fileexplorer/CHANGELOG.md b/js/fileexplorer/CHANGELOG.md index 2278b14cde728..6e6f67b45dc75 100644 --- a/js/fileexplorer/CHANGELOG.md +++ b/js/fileexplorer/CHANGELOG.md @@ -1,5 +1,17 @@ # @gradio/fileexplorer +## 0.3.7 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + - @gradio/upload@0.5.0 + - @gradio/checkbox@0.2.3 + - @gradio/file@0.2.7 + ## 0.3.6 ### Patch Changes diff --git a/js/fileexplorer/package.json b/js/fileexplorer/package.json index ea59bb78dccd8..b122697b51a1f 100644 --- a/js/fileexplorer/package.json +++ b/js/fileexplorer/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/fileexplorer", - "version": "0.3.6", + "version": "0.3.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/form/CHANGELOG.md b/js/form/CHANGELOG.md index e25c82f60b48f..398009ac74e41 100644 --- a/js/form/CHANGELOG.md +++ b/js/form/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/form +## 0.1.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + ## 0.1.2 ### Patch Changes diff --git a/js/form/package.json b/js/form/package.json index e0de060f7b612..a701c3c86197c 100644 --- a/js/form/package.json +++ b/js/form/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/form", - "version": "0.1.2", + "version": "0.1.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/gallery/CHANGELOG.md b/js/gallery/CHANGELOG.md index df62d092b22ab..7de8cf513b7ca 100644 --- a/js/gallery/CHANGELOG.md +++ b/js/gallery/CHANGELOG.md @@ -1,5 +1,16 @@ # @gradio/gallery +## 0.4.8 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/image@0.4.0 + - @gradio/statustracker@0.4.0 + - @gradio/upload@0.5.0 + ## 0.4.7 ### Patch Changes diff --git a/js/gallery/package.json b/js/gallery/package.json index 212a8fffde9e8..ae53ba827f0d4 100644 --- a/js/gallery/package.json +++ b/js/gallery/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/gallery", - "version": "0.4.7", + "version": "0.4.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/highlightedtext/CHANGELOG.md b/js/highlightedtext/CHANGELOG.md index a7b015df9867e..9a3b264f4140a 100644 --- a/js/highlightedtext/CHANGELOG.md +++ b/js/highlightedtext/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/highlightedtext +## 0.4.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.4.2 ### Patch Changes diff --git a/js/highlightedtext/package.json b/js/highlightedtext/package.json index 79bfbe48ef52c..4b0c03aa0c2f7 100644 --- a/js/highlightedtext/package.json +++ b/js/highlightedtext/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/highlightedtext", - "version": "0.4.2", + "version": "0.4.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/html/CHANGELOG.md b/js/html/CHANGELOG.md index c7d969af0b44b..3e71b1afc8e34 100644 --- a/js/html/CHANGELOG.md +++ b/js/html/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/html +## 0.1.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.1.2 ### Patch Changes diff --git a/js/html/package.json b/js/html/package.json index 5e6d7cd9c69ff..c9c4d2aceaeb1 100644 --- a/js/html/package.json +++ b/js/html/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/html", - "version": "0.1.2", + "version": "0.1.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/icons/CHANGELOG.md b/js/icons/CHANGELOG.md index 2fe6fee102b24..c1cb7520a1aaf 100644 --- a/js/icons/CHANGELOG.md +++ b/js/icons/CHANGELOG.md @@ -1,5 +1,55 @@ # @gradio/icons +## 0.3.0 + +### Highlights + +#### New `ImageEditor` component ([#6169](https://github.com/gradio-app/gradio/pull/6169) [`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)) + +A brand new component, completely separate from `Image` that provides simple editing capabilities. + +- Set background images from file uploads, webcam, or just paste! +- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) +- Paint on top of any image (or no image) and erase any mistakes! +- The ImageEditor supports layers, confining draw and erase actions to that layer. +- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. +- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. + + + +```py + +def fn(im): + im["composite"] # the full canvas + im["background"] # the background image + im["layers"] # a list of individual layers + + +im = gr.ImageEditor( + # decide which sources you'd like to accept + sources=["upload", "webcam", "clipboard"], + # set a cropsize constraint, can either be a ratio or a concrete [width, height] + crop_size="1:1", + # enable crop (or disable it) + transforms=["crop"], + # customise the brush + brush=Brush( + default_size="25", # or leave it as 'auto' + color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it + default_color="hotpink", # html names are supported + colors=[ + "rgba(0, 150, 150, 1)", # rgb(a) + "#fff", # hex rgb + "hsl(360, 120, 120)" # in fact any valid colorstring + ] + ), + brush=Eraser(default_size="25") +) + +``` + + Thanks [@pngwn](https://github.com/pngwn)! + ## 0.2.1 ### Fixes diff --git a/js/icons/package.json b/js/icons/package.json index a582d12ea1f5e..ba76e4371d1f4 100644 --- a/js/icons/package.json +++ b/js/icons/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/icons", - "version": "0.2.1", + "version": "0.3.0", "description": "Gradio UI packages", "type": "module", "main": "src/index.ts", diff --git a/js/image/CHANGELOG.md b/js/image/CHANGELOG.md index 699a5cf7ba0f2..3944e7f7b1491 100644 --- a/js/image/CHANGELOG.md +++ b/js/image/CHANGELOG.md @@ -1,5 +1,55 @@ # @gradio/image +## 0.4.0 + +### Highlights + +#### New `ImageEditor` component ([#6169](https://github.com/gradio-app/gradio/pull/6169) [`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)) + +A brand new component, completely separate from `Image` that provides simple editing capabilities. + +- Set background images from file uploads, webcam, or just paste! +- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) +- Paint on top of any image (or no image) and erase any mistakes! +- The ImageEditor supports layers, confining draw and erase actions to that layer. +- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. +- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. + + + +```py + +def fn(im): + im["composite"] # the full canvas + im["background"] # the background image + im["layers"] # a list of individual layers + + +im = gr.ImageEditor( + # decide which sources you'd like to accept + sources=["upload", "webcam", "clipboard"], + # set a cropsize constraint, can either be a ratio or a concrete [width, height] + crop_size="1:1", + # enable crop (or disable it) + transforms=["crop"], + # customise the brush + brush=Brush( + default_size="25", # or leave it as 'auto' + color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it + default_color="hotpink", # html names are supported + colors=[ + "rgba(0, 150, 150, 1)", # rgb(a) + "#fff", # hex rgb + "hsl(360, 120, 120)" # in fact any valid colorstring + ] + ), + brush=Eraser(default_size="25") +) + +``` + + Thanks [@pngwn](https://github.com/pngwn)! + ## 0.3.6 ### Fixes diff --git a/js/image/package.json b/js/image/package.json index e60ac0d4e82ef..56a3ae2359ccf 100644 --- a/js/image/package.json +++ b/js/image/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/image", - "version": "0.3.6", + "version": "0.4.0", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/imageeditor/CHANGELOG.md b/js/imageeditor/CHANGELOG.md index ddfaa012b5d46..54b2b0fad48a4 100644 --- a/js/imageeditor/CHANGELOG.md +++ b/js/imageeditor/CHANGELOG.md @@ -1 +1,57 @@ -# @gradio/image +# @gradio/imageeditor + +## 0.1.0 + +### Highlights + +#### New `ImageEditor` component ([#6169](https://github.com/gradio-app/gradio/pull/6169) [`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)) + +A brand new component, completely separate from `Image` that provides simple editing capabilities. + +- Set background images from file uploads, webcam, or just paste! +- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) +- Paint on top of any image (or no image) and erase any mistakes! +- The ImageEditor supports layers, confining draw and erase actions to that layer. +- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. +- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. + + + +```py + +def fn(im): + im["composite"] # the full canvas + im["background"] # the background image + im["layers"] # a list of individual layers + + +im = gr.ImageEditor( + # decide which sources you'd like to accept + sources=["upload", "webcam", "clipboard"], + # set a cropsize constraint, can either be a ratio or a concrete [width, height] + crop_size="1:1", + # enable crop (or disable it) + transforms=["crop"], + # customise the brush + brush=Brush( + default_size="25", # or leave it as 'auto' + color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it + default_color="hotpink", # html names are supported + colors=[ + "rgba(0, 150, 150, 1)", # rgb(a) + "#fff", # hex rgb + "hsl(360, 120, 120)" # in fact any valid colorstring + ] + ), + brush=Eraser(default_size="25") +) + +``` + + Thanks [@pngwn](https://github.com/pngwn)! + +### Fixes + +- [#6502](https://github.com/gradio-app/gradio/pull/6502) [`070f71c93`](https://github.com/gradio-app/gradio/commit/070f71c933d846ce8e2fe11cdd9bc0f3f897f29f) - Ensure image editor crop and draw cursor works as expected when the scroll position changes. Thanks [@pngwn](https://github.com/pngwn)! + +# @gradio/image \ No newline at end of file diff --git a/js/imageeditor/package.json b/js/imageeditor/package.json index efd1eea668cd5..bd494a326ecfd 100644 --- a/js/imageeditor/package.json +++ b/js/imageeditor/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/imageeditor", - "version": "0.0.1", + "version": "0.1.0", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/json/CHANGELOG.md b/js/json/CHANGELOG.md index 643b7b548db74..c70542a5d478a 100644 --- a/js/json/CHANGELOG.md +++ b/js/json/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/json +## 0.1.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.1.2 ### Patch Changes diff --git a/js/json/package.json b/js/json/package.json index 324b0240634c4..e76048c212284 100644 --- a/js/json/package.json +++ b/js/json/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/json", - "version": "0.1.2", + "version": "0.1.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/label/CHANGELOG.md b/js/label/CHANGELOG.md index 0241ba0c7b495..9dfb1a6f4c0ef 100644 --- a/js/label/CHANGELOG.md +++ b/js/label/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/label +## 0.2.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.2.2 ### Patch Changes diff --git a/js/label/package.json b/js/label/package.json index c3df32fc12d0a..f875cdd973240 100644 --- a/js/label/package.json +++ b/js/label/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/label", - "version": "0.2.2", + "version": "0.2.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/markdown/CHANGELOG.md b/js/markdown/CHANGELOG.md index 792482a75a998..fa1c450447055 100644 --- a/js/markdown/CHANGELOG.md +++ b/js/markdown/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/markdown +## 0.3.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.3.2 ### Patch Changes diff --git a/js/markdown/package.json b/js/markdown/package.json index 621a9d284293d..e6aa10c5582db 100644 --- a/js/markdown/package.json +++ b/js/markdown/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/markdown", - "version": "0.3.2", + "version": "0.3.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/model3D/CHANGELOG.md b/js/model3D/CHANGELOG.md index 5babce12aa8ae..1ad20025e3408 100644 --- a/js/model3D/CHANGELOG.md +++ b/js/model3D/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/model3d +## 0.4.5 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + - @gradio/upload@0.5.0 + ## 0.4.4 ### Patch Changes diff --git a/js/model3D/package.json b/js/model3D/package.json index 93ceca2eacacc..d4e185d0a1069 100644 --- a/js/model3D/package.json +++ b/js/model3D/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/model3d", - "version": "0.4.4", + "version": "0.4.5", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/number/CHANGELOG.md b/js/number/CHANGELOG.md index d2ac81d7cb3f8..b45033b1b441a 100644 --- a/js/number/CHANGELOG.md +++ b/js/number/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/number +## 0.3.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.3.2 ### Patch Changes diff --git a/js/number/package.json b/js/number/package.json index 88c828355fb78..e5381ac1e2e72 100644 --- a/js/number/package.json +++ b/js/number/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/number", - "version": "0.3.2", + "version": "0.3.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/plot/CHANGELOG.md b/js/plot/CHANGELOG.md index c1796952d345b..0228ed118a1aa 100644 --- a/js/plot/CHANGELOG.md +++ b/js/plot/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/plot +## 0.2.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.2.2 ### Patch Changes diff --git a/js/plot/package.json b/js/plot/package.json index 6539c91058ff3..8e435f54fdfe0 100644 --- a/js/plot/package.json +++ b/js/plot/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/plot", - "version": "0.2.2", + "version": "0.2.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/preview/CHANGELOG.md b/js/preview/CHANGELOG.md index 8e98544131154..bbdc6e9a4f15e 100644 --- a/js/preview/CHANGELOG.md +++ b/js/preview/CHANGELOG.md @@ -1,5 +1,55 @@ # @gradio/preview +## 0.3.0 + +### Highlights + +#### New `ImageEditor` component ([#6169](https://github.com/gradio-app/gradio/pull/6169) [`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)) + +A brand new component, completely separate from `Image` that provides simple editing capabilities. + +- Set background images from file uploads, webcam, or just paste! +- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) +- Paint on top of any image (or no image) and erase any mistakes! +- The ImageEditor supports layers, confining draw and erase actions to that layer. +- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. +- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. + + + +```py + +def fn(im): + im["composite"] # the full canvas + im["background"] # the background image + im["layers"] # a list of individual layers + + +im = gr.ImageEditor( + # decide which sources you'd like to accept + sources=["upload", "webcam", "clipboard"], + # set a cropsize constraint, can either be a ratio or a concrete [width, height] + crop_size="1:1", + # enable crop (or disable it) + transforms=["crop"], + # customise the brush + brush=Brush( + default_size="25", # or leave it as 'auto' + color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it + default_color="hotpink", # html names are supported + colors=[ + "rgba(0, 150, 150, 1)", # rgb(a) + "#fff", # hex rgb + "hsl(360, 120, 120)" # in fact any valid colorstring + ] + ), + brush=Eraser(default_size="25") +) + +``` + + Thanks [@pngwn](https://github.com/pngwn)! + ## 0.2.2 ### Features diff --git a/js/preview/package.json b/js/preview/package.json index 903e792a8ab9f..406492386798d 100644 --- a/js/preview/package.json +++ b/js/preview/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/preview", - "version": "0.2.2", + "version": "0.3.0", "description": "Gradio UI packages", "type": "module", "main": "src/index.ts", diff --git a/js/preview/test/test/frontend/CHANGELOG.md b/js/preview/test/test/frontend/CHANGELOG.md index 91861bdc4dc5d..3d97c75385319 100644 --- a/js/preview/test/test/frontend/CHANGELOG.md +++ b/js/preview/test/test/frontend/CHANGELOG.md @@ -1,5 +1,13 @@ # gradio_test +## 0.2.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.2.2 ### Patch Changes diff --git a/js/preview/test/test/frontend/package.json b/js/preview/test/test/frontend/package.json index 0524713eee2e8..bec4d915072fa 100644 --- a/js/preview/test/test/frontend/package.json +++ b/js/preview/test/test/frontend/package.json @@ -1,6 +1,6 @@ { "name": "gradio_test", - "version": "0.2.2", + "version": "0.2.3", "description": "Gradio UI packages", "type": "module", "author": "", @@ -13,8 +13,8 @@ "./package.json": "./package.json" }, "dependencies": { - "@gradio/atoms": "0.2.2", - "@gradio/statustracker": "0.3.2", + "@gradio/atoms": "0.3.0", + "@gradio/statustracker": "0.4.0", "@gradio/utils": "0.2.0", "@zerodevx/svelte-json-view": "^1.0.7" } diff --git a/js/radio/CHANGELOG.md b/js/radio/CHANGELOG.md index e1443c956f330..cf6c167752e26 100644 --- a/js/radio/CHANGELOG.md +++ b/js/radio/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/radio +## 0.3.4 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.3.3 ### Patch Changes diff --git a/js/radio/package.json b/js/radio/package.json index ce1fedf64949b..a06fe62008fc6 100644 --- a/js/radio/package.json +++ b/js/radio/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/radio", - "version": "0.3.3", + "version": "0.3.4", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/simpledropdown/CHANGELOG.md b/js/simpledropdown/CHANGELOG.md index 6a7c470ed03f5..14087f628cfac 100644 --- a/js/simpledropdown/CHANGELOG.md +++ b/js/simpledropdown/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/simpledropdown +## 0.1.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.1.2 ### Patch Changes diff --git a/js/simpledropdown/package.json b/js/simpledropdown/package.json index 0812ab498740f..200801da8daa0 100644 --- a/js/simpledropdown/package.json +++ b/js/simpledropdown/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/simpledropdown", - "version": "0.1.2", + "version": "0.1.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/simpletextbox/CHANGELOG.md b/js/simpletextbox/CHANGELOG.md index a52cdaec9f245..f8695bbc49281 100644 --- a/js/simpletextbox/CHANGELOG.md +++ b/js/simpletextbox/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/simpletextbox +## 0.1.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.1.2 ### Patch Changes diff --git a/js/simpletextbox/package.json b/js/simpletextbox/package.json index b4bb1ea650303..36f270c189b1e 100644 --- a/js/simpletextbox/package.json +++ b/js/simpletextbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/simpletextbox", - "version": "0.1.2", + "version": "0.1.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/slider/CHANGELOG.md b/js/slider/CHANGELOG.md index c822c4e52e196..73b1f5614be89 100644 --- a/js/slider/CHANGELOG.md +++ b/js/slider/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/slider +## 0.2.3 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.2.2 ### Patch Changes diff --git a/js/slider/package.json b/js/slider/package.json index d251ccbbd2973..0acd690f005fe 100644 --- a/js/slider/package.json +++ b/js/slider/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/slider", - "version": "0.2.2", + "version": "0.2.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/statustracker/CHANGELOG.md b/js/statustracker/CHANGELOG.md index cc16ca85cbe79..d56548c8887f5 100644 --- a/js/statustracker/CHANGELOG.md +++ b/js/statustracker/CHANGELOG.md @@ -1,5 +1,55 @@ # @gradio/statustracker +## 0.4.0 + +### Highlights + +#### New `ImageEditor` component ([#6169](https://github.com/gradio-app/gradio/pull/6169) [`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)) + +A brand new component, completely separate from `Image` that provides simple editing capabilities. + +- Set background images from file uploads, webcam, or just paste! +- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) +- Paint on top of any image (or no image) and erase any mistakes! +- The ImageEditor supports layers, confining draw and erase actions to that layer. +- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. +- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. + + + +```py + +def fn(im): + im["composite"] # the full canvas + im["background"] # the background image + im["layers"] # a list of individual layers + + +im = gr.ImageEditor( + # decide which sources you'd like to accept + sources=["upload", "webcam", "clipboard"], + # set a cropsize constraint, can either be a ratio or a concrete [width, height] + crop_size="1:1", + # enable crop (or disable it) + transforms=["crop"], + # customise the brush + brush=Brush( + default_size="25", # or leave it as 'auto' + color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it + default_color="hotpink", # html names are supported + colors=[ + "rgba(0, 150, 150, 1)", # rgb(a) + "#fff", # hex rgb + "hsl(360, 120, 120)" # in fact any valid colorstring + ] + ), + brush=Eraser(default_size="25") +) + +``` + + Thanks [@pngwn](https://github.com/pngwn)! + ## 0.3.2 ### Patch Changes @@ -84,4 +134,4 @@ ### Features - [#5215](https://github.com/gradio-app/gradio/pull/5215) [`fbdad78a`](https://github.com/gradio-app/gradio/commit/fbdad78af4c47454cbb570f88cc14bf4479bbceb) - Lazy load interactive or static variants of a component individually, rather than loading both variants regardless. This change will improve performance for many applications. Thanks [@pngwn](https://github.com/pngwn)! -- [#5216](https://github.com/gradio-app/gradio/pull/5216) [`4b58ea6d`](https://github.com/gradio-app/gradio/commit/4b58ea6d98e7a43b3f30d8a4cb6f379bc2eca6a8) - Update i18n tokens and locale files. Thanks [@hannahblair](https://github.com/hannahblair)! +- [#5216](https://github.com/gradio-app/gradio/pull/5216) [`4b58ea6d`](https://github.com/gradio-app/gradio/commit/4b58ea6d98e7a43b3f30d8a4cb6f379bc2eca6a8) - Update i18n tokens and locale files. Thanks [@hannahblair](https://github.com/hannahblair)! \ No newline at end of file diff --git a/js/statustracker/package.json b/js/statustracker/package.json index e5e1e35a1a440..b29125898b14f 100644 --- a/js/statustracker/package.json +++ b/js/statustracker/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/statustracker", - "version": "0.3.2", + "version": "0.4.0", "description": "Gradio UI packages", "type": "module", "main": "./index.ts", diff --git a/js/textbox/CHANGELOG.md b/js/textbox/CHANGELOG.md index 83731eb2b7221..5fc0addbf21ce 100644 --- a/js/textbox/CHANGELOG.md +++ b/js/textbox/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/textbox +## 0.4.4 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/statustracker@0.4.0 + ## 0.4.3 ### Patch Changes diff --git a/js/textbox/package.json b/js/textbox/package.json index 3d88b9f3cc53e..ef46f139a2746 100644 --- a/js/textbox/package.json +++ b/js/textbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/textbox", - "version": "0.4.3", + "version": "0.4.4", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/tootils/CHANGELOG.md b/js/tootils/CHANGELOG.md index 770c8020f8e96..8ca9517034315 100644 --- a/js/tootils/CHANGELOG.md +++ b/js/tootils/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/tootils +## 0.1.4 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/statustracker@0.4.0 + ## 0.1.3 ### Patch Changes diff --git a/js/tootils/package.json b/js/tootils/package.json index d1b0d061fc0e1..a55a60ca5b40e 100644 --- a/js/tootils/package.json +++ b/js/tootils/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/tootils", - "version": "0.1.3", + "version": "0.1.4", "description": "Internal test utilities", "type": "module", "main": "src/index.ts", diff --git a/js/upload/CHANGELOG.md b/js/upload/CHANGELOG.md index 4fcc90d4c4235..abb324d30090c 100644 --- a/js/upload/CHANGELOG.md +++ b/js/upload/CHANGELOG.md @@ -1,5 +1,55 @@ # @gradio/upload +## 0.5.0 + +### Highlights + +#### New `ImageEditor` component ([#6169](https://github.com/gradio-app/gradio/pull/6169) [`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)) + +A brand new component, completely separate from `Image` that provides simple editing capabilities. + +- Set background images from file uploads, webcam, or just paste! +- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (`1:1`, etc) +- Paint on top of any image (or no image) and erase any mistakes! +- The ImageEditor supports layers, confining draw and erase actions to that layer. +- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images. +- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised. + + + +```py + +def fn(im): + im["composite"] # the full canvas + im["background"] # the background image + im["layers"] # a list of individual layers + + +im = gr.ImageEditor( + # decide which sources you'd like to accept + sources=["upload", "webcam", "clipboard"], + # set a cropsize constraint, can either be a ratio or a concrete [width, height] + crop_size="1:1", + # enable crop (or disable it) + transforms=["crop"], + # customise the brush + brush=Brush( + default_size="25", # or leave it as 'auto' + color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it + default_color="hotpink", # html names are supported + colors=[ + "rgba(0, 150, 150, 1)", # rgb(a) + "#fff", # hex rgb + "hsl(360, 120, 120)" # in fact any valid colorstring + ] + ), + brush=Eraser(default_size="25") +) + +``` + + Thanks [@pngwn](https://github.com/pngwn)! + ## 0.4.2 ### Fixes diff --git a/js/upload/package.json b/js/upload/package.json index 97f3f5410a09a..9a4d988a6975c 100644 --- a/js/upload/package.json +++ b/js/upload/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/upload", - "version": "0.4.2", + "version": "0.5.0", "description": "Gradio UI packages", "type": "module", "main": "src/index.ts", diff --git a/js/uploadbutton/CHANGELOG.md b/js/uploadbutton/CHANGELOG.md index 2e2e7c9a0088b..22a2fc9af083b 100644 --- a/js/uploadbutton/CHANGELOG.md +++ b/js/uploadbutton/CHANGELOG.md @@ -1,10 +1,18 @@ # @gradio/uploadbutton +## 0.2.1 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/upload@0.5.0 + - @gradio/button@0.2.7 + ## 0.2.0 ### Features -- [#6461](https://github.com/gradio-app/gradio/pull/6461) [`6b53330a5`](https://github.com/gradio-app/gradio/commit/6b53330a5be53579d9128aea4858713082ce302d) - UploadButton tests. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! +- [#6461](https://github.com/gradio-app/gradio/pull/6461) [`6b53330a5`](https://github.com/gradio-app/gradio/commit/6b53330a5be53579d9128aea4858713082ce302d) - UploadButton tests. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! ## 0.1.5 @@ -184,4 +192,4 @@ Thanks [@pngwn](https://github.com/pngwn)! - Updated dependencies [[`61129052`](https://github.com/gradio-app/gradio/commit/61129052ed1391a75c825c891d57fa0ad6c09fc8), [`667875b2`](https://github.com/gradio-app/gradio/commit/667875b2441753e74d25bd9d3c8adedd8ede11cd), [`67265a58`](https://github.com/gradio-app/gradio/commit/67265a58027ef1f9e4c0eb849a532f72eaebde48), [`8b4eb8ca`](https://github.com/gradio-app/gradio/commit/8b4eb8cac9ea07bde31b44e2006ca2b7b5f4de36), [`37caa2e0`](https://github.com/gradio-app/gradio/commit/37caa2e0fe95d6cab8beb174580fb557904f137f)]: - @gradio/client@0.2.0 - @gradio/upload@0.0.3 - - @gradio/button@0.1.0 \ No newline at end of file + - @gradio/button@0.1.0 diff --git a/js/uploadbutton/package.json b/js/uploadbutton/package.json index f5be05bf758e6..2b41094693b47 100644 --- a/js/uploadbutton/package.json +++ b/js/uploadbutton/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/uploadbutton", - "version": "0.2.0", + "version": "0.2.1", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/video/CHANGELOG.md b/js/video/CHANGELOG.md index 6241ebe82a89b..cd964e72d9da7 100644 --- a/js/video/CHANGELOG.md +++ b/js/video/CHANGELOG.md @@ -1,5 +1,16 @@ # @gradio/video +## 0.1.7 + +### Patch Changes + +- Updated dependencies [[`9caddc17b`](https://github.com/gradio-app/gradio/commit/9caddc17b1dea8da1af8ba724c6a5eab04ce0ed8)]: + - @gradio/atoms@0.3.0 + - @gradio/icons@0.3.0 + - @gradio/image@0.4.0 + - @gradio/statustracker@0.4.0 + - @gradio/upload@0.5.0 + ## 0.1.6 ### Patch Changes diff --git a/js/video/package.json b/js/video/package.json index 41dbd2d509c9b..caee041e59597 100644 --- a/js/video/package.json +++ b/js/video/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/video", - "version": "0.1.6", + "version": "0.1.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 44d2fb0c31660..e4270a7820097 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -279,7 +279,7 @@ importers: js/_website: dependencies: '@gradio/code': - specifier: 0.2.6 + specifier: 0.2.7 version: link:../code '@sindresorhus/slugify': specifier: ^2.2.0 @@ -1274,10 +1274,10 @@ importers: js/preview/test/test/frontend: dependencies: '@gradio/atoms': - specifier: 0.2.2 + specifier: 0.3.0 version: link:../../../../atoms '@gradio/statustracker': - specifier: 0.3.2 + specifier: 0.4.0 version: link:../../../../statustracker '@gradio/utils': specifier: 0.2.0 @@ -6739,7 +6739,7 @@ packages: peerDependencies: '@sveltejs/kit': ^1.0.0 dependencies: - '@sveltejs/kit': 1.26.0(svelte@3.59.2)(vite@4.5.0) + '@sveltejs/kit': 1.26.0(svelte@4.2.3)(vite@4.5.0) import-meta-resolve: 2.2.2 dev: true @@ -9133,6 +9133,7 @@ packages: /debug@3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} + requiresBuild: true peerDependencies: supports-color: '*' peerDependenciesMeta: @@ -13407,6 +13408,7 @@ packages: /prr@1.0.1: resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} + requiresBuild: true optional: true /pseudomap@1.0.2: @@ -14127,6 +14129,7 @@ packages: /sax@1.3.0: resolution: {integrity: sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==} + requiresBuild: true optional: true /saxes@6.0.0: From 7c1baf954fc29ea98771f431f3c15843c5a0a45d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 23:48:36 -0800 Subject: [PATCH 2/8] Update actions/setup-node action to v4 (#6269) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Abubakar Abid --- .github/actions/install-frontend-deps/action.yml | 2 +- .github/workflows/backend.yml | 4 ++-- .github/workflows/build-pr.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/install-frontend-deps/action.yml b/.github/actions/install-frontend-deps/action.yml index 41ebbb839fae1..18efe010ce1ad 100644 --- a/.github/actions/install-frontend-deps/action.yml +++ b/.github/actions/install-frontend-deps/action.yml @@ -29,7 +29,7 @@ runs: uses: pnpm/action-setup@v2 with: version: 8.9 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 cache: pnpm diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 0b89033da999d..ea2feb2a04868 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -88,7 +88,7 @@ jobs: uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 if: steps.frontend-cache.outputs.cache-hit != 'true' with: node-version: 18 @@ -183,7 +183,7 @@ jobs: uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 if: steps.frontend-cache.outputs.cache-hit != 'true' with: node-version: 18 diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index d048dd52989c0..f4f7481ccdbf5 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -26,7 +26,7 @@ jobs: uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 cache: pnpm From 46f13f4968c8177e318c9d75f2eed1ed55c2c042 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 21 Nov 2023 00:06:02 -0800 Subject: [PATCH 3/8] chore(deps): update all non-major dependencies (#6296) * chore(deps): update all non-major dependencies * add changeset --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: gradio-pr-bot Co-authored-by: Hannah Co-authored-by: Abubakar Abid --- .changeset/great-camels-ring.md | 8 ++ js/chatbot/package.json | 2 +- js/markdown/package.json | 2 +- js/preview/package.json | 2 +- pnpm-lock.yaml | 182 ++++++++------------------------ 5 files changed, 54 insertions(+), 142 deletions(-) create mode 100644 .changeset/great-camels-ring.md diff --git a/.changeset/great-camels-ring.md b/.changeset/great-camels-ring.md new file mode 100644 index 0000000000000..b3e8cd5bd78b4 --- /dev/null +++ b/.changeset/great-camels-ring.md @@ -0,0 +1,8 @@ +--- +"@gradio/chatbot": patch +"@gradio/markdown": patch +"@gradio/preview": patch +"gradio": patch +--- + +feat:chore(deps): update all non-major dependencies diff --git a/js/chatbot/package.json b/js/chatbot/package.json index b0db5436c0b19..dd2aae0618b12 100644 --- a/js/chatbot/package.json +++ b/js/chatbot/package.json @@ -17,7 +17,7 @@ "@gradio/utils": "workspace:^", "@types/dompurify": "^3.0.2", "@types/katex": "^0.16.0", - "@types/prismjs": "1.26.1", + "@types/prismjs": "1.26.2", "dequal": "^2.0.2" }, "main_changeset": true, diff --git a/js/markdown/package.json b/js/markdown/package.json index e6aa10c5582db..0165f14911ace 100644 --- a/js/markdown/package.json +++ b/js/markdown/package.json @@ -19,7 +19,7 @@ "@gradio/utils": "workspace:^", "@types/dompurify": "^3.0.2", "@types/katex": "^0.16.0", - "@types/prismjs": "1.26.1", + "@types/prismjs": "1.26.2", "dompurify": "^3.0.3", "katex": "^0.16.7", "marked": "^7.0.0", diff --git a/js/preview/package.json b/js/preview/package.json index 406492386798d..456ba95810960 100644 --- a/js/preview/package.json +++ b/js/preview/package.json @@ -30,7 +30,7 @@ "pug": "^3.0.2", "rollup-plugin-ignore": "^1.0.10", "sass": "^1.66.1", - "stylus": "^0.60.0", + "stylus": "^0.61.0", "sucrase": "^3.34.0", "sugarss": "^4.0.1", "which": "4.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e4270a7820097..c133dbc1f71e5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' settings: autoInstallPeers: true @@ -262,16 +262,16 @@ importers: version: 2.0.0(@sveltejs/kit@1.26.0) '@sveltejs/kit': specifier: ^1.5.0 - version: 1.26.0(svelte@4.2.3)(vite@4.5.0) + version: 1.26.0(svelte@4.2.2)(vite@4.5.0) prettier: specifier: ^3.0.0 version: 3.0.0 prettier-plugin-svelte: specifier: ^3.0.0 - version: 3.0.0(prettier@3.0.0)(svelte@4.2.3) + version: 3.0.0(prettier@3.0.0)(svelte@4.2.2) svelte-check: specifier: ^3.0.1 - version: 3.4.4(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@4.2.3) + version: 3.4.4(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@4.2.2) typescript: specifier: ^5.0.0 version: 5.0.2 @@ -643,8 +643,8 @@ importers: specifier: ^0.16.0 version: 0.16.0 '@types/prismjs': - specifier: 1.26.1 - version: 1.26.1 + specifier: 1.26.2 + version: 1.26.2 dequal: specifier: ^2.0.2 version: 2.0.2 @@ -1108,8 +1108,8 @@ importers: specifier: ^0.16.0 version: 0.16.0 '@types/prismjs': - specifier: 1.26.1 - version: 1.26.1 + specifier: 1.26.2 + version: 1.26.2 dompurify: specifier: ^3.0.3 version: 3.0.3 @@ -1237,8 +1237,8 @@ importers: specifier: ^1.66.1 version: 1.66.1 stylus: - specifier: ^0.60.0 - version: 0.60.0 + specifier: ^0.61.0 + version: 0.61.0 sucrase: specifier: ^3.34.0 version: 3.34.0 @@ -1509,12 +1509,8 @@ packages: resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} engines: {node: '>=0.10.0'} - /@adobe/css-tools@4.2.0: - resolution: {integrity: sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==} - /@adobe/css-tools@4.3.1: resolution: {integrity: sha512-/62yikz7NLScCGAAST5SHdnjaDJQBDq0M2muyRTpf2VQhw6StBg2ALiu73zSJQ4fMVLA+0uBhBHAle7Wg+2kSg==} - dev: false /@ampproject/remapping@2.2.1: resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} @@ -4872,7 +4868,7 @@ packages: dependencies: playwright: 1.39.0 playwright-core: 1.39.0 - vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1) + vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1) transitivePeerDependencies: - '@types/node' - less @@ -6739,7 +6735,7 @@ packages: peerDependencies: '@sveltejs/kit': ^1.0.0 dependencies: - '@sveltejs/kit': 1.26.0(svelte@4.2.3)(vite@4.5.0) + '@sveltejs/kit': 1.26.0(svelte@3.59.2)(vite@4.5.0) import-meta-resolve: 2.2.2 dev: true @@ -6787,11 +6783,11 @@ packages: svelte: 3.59.2 tiny-glob: 0.2.9 undici: 5.26.5 - vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1) + vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1) transitivePeerDependencies: - supports-color - /@sveltejs/kit@1.26.0(svelte@4.2.3)(vite@4.5.0): + /@sveltejs/kit@1.26.0(svelte@4.2.2)(vite@4.5.0): resolution: {integrity: sha512-CV/AlTziC05yrz7UjVqEd0pH6+2dnrbmcnHGr2d3jXtmOgzNnlDkXtX8g3BfJ6nntsPD+0jtS2PzhvRHblRz4A==} engines: {node: ^16.14 || >=18} hasBin: true @@ -6800,7 +6796,7 @@ packages: svelte: ^3.54.0 || ^4.0.0-next.0 vite: ^4.0.0 dependencies: - '@sveltejs/vite-plugin-svelte': 2.5.2(svelte@4.2.3)(vite@4.5.0) + '@sveltejs/vite-plugin-svelte': 2.5.2(svelte@4.2.2)(vite@4.5.0) '@types/cookie': 0.5.4 cookie: 0.5.0 devalue: 4.3.2 @@ -6811,10 +6807,10 @@ packages: sade: 1.8.1 set-cookie-parser: 2.6.0 sirv: 2.0.3 - svelte: 4.2.3 + svelte: 4.2.2 tiny-glob: 0.2.9 undici: 5.26.5 - vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1) + vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1) transitivePeerDependencies: - supports-color dev: true @@ -6845,7 +6841,7 @@ packages: '@sveltejs/vite-plugin-svelte': 2.4.6(svelte@4.2.3)(vite@4.5.0) debug: 4.3.4 svelte: 4.2.3 - vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1) + vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1) transitivePeerDependencies: - supports-color dev: false @@ -6861,11 +6857,11 @@ packages: '@sveltejs/vite-plugin-svelte': 2.5.2(svelte@3.59.2)(vite@4.5.0) debug: 4.3.4 svelte: 3.59.2 - vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1) + vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1) transitivePeerDependencies: - supports-color - /@sveltejs/vite-plugin-svelte-inspector@1.0.4(@sveltejs/vite-plugin-svelte@2.5.2)(svelte@4.2.3)(vite@4.5.0): + /@sveltejs/vite-plugin-svelte-inspector@1.0.4(@sveltejs/vite-plugin-svelte@2.5.2)(svelte@4.2.2)(vite@4.5.0): resolution: {integrity: sha512-zjiuZ3yydBtwpF3bj0kQNV0YXe+iKE545QGZVTaylW3eAzFr+pJ/cwK8lZEaRp4JtaJXhD5DyWAV4AxLh6DgaQ==} engines: {node: ^14.18.0 || >= 16} peerDependencies: @@ -6873,10 +6869,10 @@ packages: svelte: ^3.54.0 || ^4.0.0 vite: ^4.0.0 dependencies: - '@sveltejs/vite-plugin-svelte': 2.5.2(svelte@4.2.3)(vite@4.5.0) + '@sveltejs/vite-plugin-svelte': 2.5.2(svelte@4.2.2)(vite@4.5.0) debug: 4.3.4 - svelte: 4.2.3 - vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1) + svelte: 4.2.2 + vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1) transitivePeerDependencies: - supports-color dev: true @@ -6914,7 +6910,7 @@ packages: magic-string: 0.30.5 svelte: 4.2.3 svelte-hmr: 0.15.3(svelte@4.2.3) - vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1) + vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1) vitefu: 0.2.5(vite@4.5.0) transitivePeerDependencies: - supports-color @@ -6934,26 +6930,26 @@ packages: magic-string: 0.30.5 svelte: 3.59.2 svelte-hmr: 0.15.3(svelte@3.59.2) - vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1) + vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1) vitefu: 0.2.5(vite@4.5.0) transitivePeerDependencies: - supports-color - /@sveltejs/vite-plugin-svelte@2.5.2(svelte@4.2.3)(vite@4.5.0): + /@sveltejs/vite-plugin-svelte@2.5.2(svelte@4.2.2)(vite@4.5.0): resolution: {integrity: sha512-Dfy0Rbl+IctOVfJvWGxrX/3m6vxPLH8o0x+8FA5QEyMUQMo4kGOVIojjryU7YomBAexOTAuYf1RT7809yDziaA==} engines: {node: ^14.18.0 || >= 16} peerDependencies: svelte: ^3.54.0 || ^4.0.0 || ^5.0.0-next.0 vite: ^4.0.0 dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 1.0.4(@sveltejs/vite-plugin-svelte@2.5.2)(svelte@4.2.3)(vite@4.5.0) + '@sveltejs/vite-plugin-svelte-inspector': 1.0.4(@sveltejs/vite-plugin-svelte@2.5.2)(svelte@4.2.2)(vite@4.5.0) debug: 4.3.4 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.5 - svelte: 4.2.3 - svelte-hmr: 0.15.3(svelte@4.2.3) - vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1) + svelte: 4.2.2 + svelte-hmr: 0.15.3(svelte@4.2.2) + vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1) vitefu: 0.2.5(vite@4.5.0) transitivePeerDependencies: - supports-color @@ -7321,6 +7317,11 @@ packages: /@types/prismjs@1.26.1: resolution: {integrity: sha512-Q7jDsRbzcNHIQje15CS/piKhu6lMLb9jwjxSfEIi4KcFKXW23GoJMkwQiJ8VObyfx+VmUaDcJxXaWN+cTCjVog==} + dev: true + + /@types/prismjs@1.26.2: + resolution: {integrity: sha512-/r7Cp7iUIk7gts26mHXD66geUC+2Fo26TZYjQK6Nr4LDfi6lmdRmMqM0oPwfiMhUwoBAOFe8GstKi2pf6hZvwA==} + dev: false /@types/prop-types@15.7.10: resolution: {integrity: sha512-mxSnDQxPqsZxmeShFH+uwQ4kO4gcJcGahjjMFeLbKE95IAZiiZyiEepGZjtXJ7hN/yfu0bu9xN2ajcU0JcxX6A==} @@ -8741,7 +8742,7 @@ packages: dev: true /concat-map@0.0.1: - resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} /concat-stream@1.6.2: resolution: {integrity: sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==} @@ -9133,7 +9134,6 @@ packages: /debug@3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} - requiresBuild: true peerDependencies: supports-color: '*' peerDependenciesMeta: @@ -13306,17 +13306,6 @@ packages: dependencies: prettier: 3.0.0 svelte: 4.2.2 - dev: false - - /prettier-plugin-svelte@3.0.0(prettier@3.0.0)(svelte@4.2.3): - resolution: {integrity: sha512-l3RQcPty2UBCoRh3yb9c5XCAmxkrc4BptAnbd5acO1gmSJtChOWkiEjnOvh7hvmtT4V80S8gXCOKAq8RNeIzSw==} - peerDependencies: - prettier: ^3.0.0 - svelte: ^3.2.0 || ^4.0.0-next.0 - dependencies: - prettier: 3.0.0 - svelte: 4.2.3 - dev: true /prettier@2.8.8: resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} @@ -13408,7 +13397,6 @@ packages: /prr@1.0.1: resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} - requiresBuild: true optional: true /pseudomap@1.0.2: @@ -14124,13 +14112,8 @@ packages: immutable: 4.3.4 source-map-js: 1.0.2 - /sax@1.2.4: - resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==} - /sax@1.3.0: resolution: {integrity: sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==} - requiresBuild: true - optional: true /saxes@6.0.0: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} @@ -14585,14 +14568,14 @@ packages: resolution: {integrity: sha512-Ca5ib8HrFn+f+0n4N4ScTIA9iTOQ7MaGS1ylHcoVqW9J7w2w8PzN6g9gKmTYgGEBH8e120+RCmhpje6jC5uGWA==} dev: false - /stylus@0.60.0: - resolution: {integrity: sha512-j2pBgEwzCu05yCuY4cmyp0FtPQQFBBAGB7TY7QaNl7eztiHwkxzwvIp5vjZJND/a1JNOka+ZW9ewVPFZpI3pcA==} + /stylus@0.61.0: + resolution: {integrity: sha512-oaV9T4sRBiQfChXE0av9SrLD+ovEdQiWzPJ5kwIeYvMhjUDJnZtdubAG6lSSbaR4sCnoT6sw411IOl5Akcht4Q==} hasBin: true dependencies: - '@adobe/css-tools': 4.2.0 + '@adobe/css-tools': 4.3.1 debug: 4.3.4 glob: 7.2.3 - sax: 1.2.4 + sax: 1.3.0 source-map: 0.7.4 transitivePeerDependencies: - supports-color @@ -14702,34 +14685,6 @@ packages: - sass - stylus - sugarss - dev: false - - /svelte-check@3.4.4(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@4.2.3): - resolution: {integrity: sha512-Uys9+R65cj8TmP8f5UpS7B2xKpNLYNxEWJsA5ZoKcWq/uwvABFF7xS6iPQGLoa7hxz0DS6xU60YFpmq06E4JxA==} - hasBin: true - peerDependencies: - svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0 - dependencies: - '@jridgewell/trace-mapping': 0.3.20 - chokidar: 3.5.3 - fast-glob: 3.3.2 - import-fresh: 3.3.0 - picocolors: 1.0.0 - sade: 1.8.1 - svelte: 4.2.3 - svelte-preprocess: 5.1.0(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@4.2.3)(typescript@5.2.2) - typescript: 5.2.2 - transitivePeerDependencies: - - '@babel/core' - - coffeescript - - less - - postcss - - postcss-load-config - - pug - - sass - - stylus - - sugarss - dev: true /svelte-eslint-parser@0.32.2(svelte@4.2.2): resolution: {integrity: sha512-Ok9D3A4b23iLQsONrjqtXtYDu5ZZ/826Blaw2LeFZVTg1pwofKDG4mz3/GYTax8fQ0plRGHI6j+d9VQYy5Lo/A==} @@ -14901,7 +14856,6 @@ packages: strip-indent: 3.0.0 svelte: 4.2.2 typescript: 5.2.2 - dev: false /svelte-preprocess@5.1.0(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@3.59.2)(typescript@5.2.2): resolution: {integrity: sha512-EkErPiDzHAc0k2MF5m6vBNmRUh338h2myhinUw/xaqsLs7/ZvsgREiLGj03VrSzbY/TB5ZXgBOsKraFee5yceA==} @@ -14953,56 +14907,6 @@ packages: typescript: 5.2.2 dev: true - /svelte-preprocess@5.1.0(@babel/core@7.23.3)(less@4.2.0)(postcss@8.4.27)(svelte@4.2.3)(typescript@5.2.2): - resolution: {integrity: sha512-EkErPiDzHAc0k2MF5m6vBNmRUh338h2myhinUw/xaqsLs7/ZvsgREiLGj03VrSzbY/TB5ZXgBOsKraFee5yceA==} - engines: {node: '>= 14.10.0'} - requiresBuild: true - peerDependencies: - '@babel/core': ^7.10.2 - coffeescript: ^2.5.1 - less: ^3.11.3 || ^4.0.0 - postcss: ^7 || ^8 - postcss-load-config: ^2.1.0 || ^3.0.0 || ^4.0.0 - pug: ^3.0.0 - sass: ^1.26.8 - stylus: ^0.55.0 - sugarss: ^2.0.0 || ^3.0.0 || ^4.0.0 - svelte: ^3.23.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0 - typescript: '>=3.9.5 || ^4.0.0 || ^5.0.0' - peerDependenciesMeta: - '@babel/core': - optional: true - coffeescript: - optional: true - less: - optional: true - postcss: - optional: true - postcss-load-config: - optional: true - pug: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - typescript: - optional: true - dependencies: - '@babel/core': 7.23.3 - '@types/pug': 2.0.9 - detect-indent: 6.1.0 - less: 4.2.0 - magic-string: 0.27.0 - postcss: 8.4.27 - sorcery: 0.11.0 - strip-indent: 3.0.0 - svelte: 4.2.3 - typescript: 5.2.2 - dev: true - /svelte-range-slider-pips@2.0.1: resolution: {integrity: sha512-sCHvcTgi0ZYE4c/mwSsdALRsfuqEmpwTsSUdL+PUrumZ8u2gv1GKwZ3GohcAcTB6gfmqRBkyn6ujRXrOIga1gw==} dev: false @@ -16254,7 +16158,7 @@ packages: optionalDependencies: fsevents: 2.3.3 - /vite@4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1): + /vite@4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1): resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -16289,7 +16193,7 @@ packages: postcss: 8.4.31 rollup: 3.29.4 sass: 1.66.1 - stylus: 0.60.0 + stylus: 0.61.0 sugarss: 4.0.1(postcss@8.4.31) optionalDependencies: fsevents: 2.3.3 @@ -16349,7 +16253,7 @@ packages: vite: optional: true dependencies: - vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.60.0)(sugarss@4.0.1) + vite: 4.5.0(@types/node@20.3.2)(less@4.2.0)(lightningcss@1.21.7)(sass@1.66.1)(stylus@0.61.0)(sugarss@4.0.1) /vitest@0.34.6(jsdom@22.1.0)(less@4.2.0)(playwright@1.39.0): resolution: {integrity: sha512-+5CALsOvbNKnS+ZHMXtuUC7nL8/7F1F2DnHGjSsszX8zCjWSSviphCb/NuS9Nzf4Q03KyyDRBAXhF/8lffME4Q==} From 71f1a1f9931489d465c2c1302a5c8d768a3cd23a Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Tue, 21 Nov 2023 17:07:24 +0900 Subject: [PATCH 4/8] Mark `FileData.orig_name` optional on the frontend aligning the type definition on the Python side (#6511) * Mark `FileData.orig_name` optional on the frontend aligning the type definition on the Python side * Replace `var` with `const` and rename a variable * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot Co-authored-by: Abubakar Abid --- .changeset/cruel-pandas-design.md | 7 +++++++ client/js/src/upload.ts | 4 ++-- js/file/shared/utils.ts | 13 ++++++------- 3 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 .changeset/cruel-pandas-design.md diff --git a/.changeset/cruel-pandas-design.md b/.changeset/cruel-pandas-design.md new file mode 100644 index 0000000000000..1255b96b996be --- /dev/null +++ b/.changeset/cruel-pandas-design.md @@ -0,0 +1,7 @@ +--- +"@gradio/client": patch +"@gradio/file": patch +"gradio": patch +--- + +feat:Mark `FileData.orig_name` optional on the frontend aligning the type definition on the Python side diff --git a/client/js/src/upload.ts b/client/js/src/upload.ts index 0b36bbca38637..f5011710ae69b 100644 --- a/client/js/src/upload.ts +++ b/client/js/src/upload.ts @@ -136,7 +136,7 @@ export async function prepare_files( export class FileData { path: string; url?: string; - orig_name: string; + orig_name?: string; size?: number; blob?: File; is_stream?: boolean; @@ -155,7 +155,7 @@ export class FileData { }: { path: string; url?: string; - orig_name: string; + orig_name?: string; size?: number; blob?: File; is_stream?: boolean; diff --git a/js/file/shared/utils.ts b/js/file/shared/utils.ts index 5606c12ee4c4d..163d626191654 100644 --- a/js/file/shared/utils.ts +++ b/js/file/shared/utils.ts @@ -12,20 +12,19 @@ export const prettyBytes = (bytes: number): string => { }; export const display_file_name = (value: FileData): string => { - var str: string; - str = value.orig_name; + const orig_name: string = value.orig_name ?? ""; const max_length = 30; - if (str.length > max_length) { - const truncated_name = str.substring(0, max_length); - const file_extension_index = str.lastIndexOf("."); + if (orig_name.length > max_length) { + const truncated_name = orig_name.substring(0, max_length); + const file_extension_index = orig_name.lastIndexOf("."); if (file_extension_index !== -1) { - const file_extension = str.slice(file_extension_index); + const file_extension = orig_name.slice(file_extension_index); return `${truncated_name}..${file_extension}`; } return truncated_name; } - return str; + return orig_name; }; export const display_file_size = (value: FileData | FileData[]): string => { From 63f466882104453b56a7f52c6bea5b5d497ec698 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Wed, 22 Nov 2023 00:18:47 +0900 Subject: [PATCH 5/8] Fix typo in base.py (#6523) * Fix typo in base.py overriden -> overridden * add changeset --------- Co-authored-by: gradio-pr-bot --- .changeset/easy-beds-switch.md | 5 +++++ gradio/components/base.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/easy-beds-switch.md diff --git a/.changeset/easy-beds-switch.md b/.changeset/easy-beds-switch.md new file mode 100644 index 0000000000000..dc20161dcefe7 --- /dev/null +++ b/.changeset/easy-beds-switch.md @@ -0,0 +1,5 @@ +--- +"gradio": minor +--- + +feat:Fix typo in base.py diff --git a/gradio/components/base.py b/gradio/components/base.py index 780a59a2f7a31..35ebc55157a76 100644 --- a/gradio/components/base.py +++ b/gradio/components/base.py @@ -160,7 +160,7 @@ def __init__( if not elem_classes: elem_classes = [] - # This gets overriden when `select` is called + # This gets overridden when `select` is called self._selectable = False if not hasattr(self, "data_model"): self.data_model: type[GradioDataModel] | None = None From f94db6b7319be902428887867500311a6a32a165 Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Wed, 22 Nov 2023 00:46:37 +0900 Subject: [PATCH 6/8] File table style with accessible file name texts (#6520) * File table style with accessible file name texts * Fix for lint * add changeset * Remove unnecessary style --------- Co-authored-by: gradio-pr-bot --- .changeset/stupid-knives-fold.md | 6 +++ js/file/shared/FilePreview.svelte | 65 +++++++++++++++++++++++-------- js/file/shared/utils.ts | 28 ------------- 3 files changed, 54 insertions(+), 45 deletions(-) create mode 100644 .changeset/stupid-knives-fold.md diff --git a/.changeset/stupid-knives-fold.md b/.changeset/stupid-knives-fold.md new file mode 100644 index 0000000000000..1ce945407d715 --- /dev/null +++ b/.changeset/stupid-knives-fold.md @@ -0,0 +1,6 @@ +--- +"@gradio/file": minor +"gradio": minor +--- + +feat:File table style with accessible file name texts diff --git a/js/file/shared/FilePreview.svelte b/js/file/shared/FilePreview.svelte index 1e78139095224..47c7428e03130 100644 --- a/js/file/shared/FilePreview.svelte +++ b/js/file/shared/FilePreview.svelte @@ -1,6 +1,6 @@
- {#each Array.isArray(value) ? value : [value] as file, i} + {#each normalized_files as file, i} -
- {display_file_name(file)} + + {file.filename_stem} + {file.filename_ext} @@ -40,7 +58,9 @@ target="_blank" download={window.__is_colab__ ? null : file.orig_name} > - {@html display_file_size(file)} ⇣ + {@html file.size != null + ? prettyBytes(file.size) + : "(size unknown)"} ⇣ {:else} {i18n("file.uploading")} @@ -53,26 +73,17 @@