@gradio/imageeditor 0.18.11 → 0.18.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @gradio/imageeditor
2
2
 
3
+ ## 0.18.12
4
+
5
+ ### Fixes
6
+
7
+ - [#13379](https://github.com/gradio-app/gradio/pull/13379) [`b8e8745`](https://github.com/gradio-app/gradio/commit/b8e8745d2f4fb156dd12d57a3f4eb2e165f20216) - fix default tool logic in gr.ImageEditor. Thanks @hannahblair!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/client@2.2.1
12
+ - @gradio/upload@0.17.10
13
+
3
14
  ## 0.18.11
4
15
 
5
16
  ### Dependency updates
@@ -371,8 +371,12 @@
371
371
  ready = true;
372
372
  if (sources.length > 0) {
373
373
  handle_tool_change({ tool: "image" });
374
- } else {
374
+ } else if (brush_options) {
375
375
  handle_tool_change({ tool: "draw" });
376
+ } else if (eraser_options) {
377
+ handle_tool_change({ tool: "erase" });
378
+ } else {
379
+ handle_tool_change({ tool: "image" });
376
380
  }
377
381
  crop.set_subtool("crop");
378
382
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/imageeditor",
3
- "version": "0.18.11",
3
+ "version": "0.18.12",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -12,12 +12,12 @@
12
12
  "pixi.js": "^8.14.0",
13
13
  "tinycolor2": "^1.6.0",
14
14
  "@gradio/atoms": "^0.24.0",
15
- "@gradio/client": "^2.2.0",
16
- "@gradio/image": "^0.26.3",
15
+ "@gradio/client": "^2.2.1",
17
16
  "@gradio/icons": "^0.15.1",
17
+ "@gradio/image": "^0.26.3",
18
18
  "@gradio/statustracker": "^0.14.1",
19
- "@gradio/upload": "^0.17.9",
20
- "@gradio/utils": "^0.12.2"
19
+ "@gradio/utils": "^0.12.2",
20
+ "@gradio/upload": "^0.17.10"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@gradio/preview": "^0.16.2"
@@ -371,8 +371,12 @@
371
371
  ready = true;
372
372
  if (sources.length > 0) {
373
373
  handle_tool_change({ tool: "image" });
374
- } else {
374
+ } else if (brush_options) {
375
375
  handle_tool_change({ tool: "draw" });
376
+ } else if (eraser_options) {
377
+ handle_tool_change({ tool: "erase" });
378
+ } else {
379
+ handle_tool_change({ tool: "image" });
376
380
  }
377
381
  crop.set_subtool("crop");
378
382
  });