@gradio/imageeditor 0.5.0 → 0.6.0

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,49 @@
1
1
  # @gradio/imageeditor
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Highlights
6
+
7
+ #### Setting File Upload Limits ([#7909](https://github.com/gradio-app/gradio/pull/7909) [`2afca65`](https://github.com/gradio-app/gradio/commit/2afca6541912b37dc84f447c7ad4af21607d7c72))
8
+
9
+ We have added a `max_file_size` size parameter to `launch()` that limits to size of files uploaded to the server. This limit applies to each individual file. This parameter can be specified as a string or an integer (corresponding to the size in bytes).
10
+
11
+ The following code snippet sets a max file size of 5 megabytes.
12
+
13
+ ```python
14
+ import gradio as gr
15
+
16
+ demo = gr.Interface(lambda x: x, "image", "image")
17
+
18
+ demo.launch(max_file_size="5mb")
19
+ # or
20
+ demo.launch(max_file_size=5 * gr.FileSize.MB)
21
+ ```
22
+
23
+ ![max_file_size_upload](https://github.com/gradio-app/gradio/assets/41651716/7547330c-a082-4901-a291-3f150a197e45)
24
+
25
+
26
+ #### Error states can now be cleared
27
+
28
+ When a component encounters an error, the error state shown in the UI can now be cleared by clicking on the `x` icon in the top right of the component. This applies to all types of errors, whether it's raised in the UI or the server.
29
+
30
+ ![error_modal_calculator](https://github.com/gradio-app/gradio/assets/41651716/16cb071c-accd-45a6-9c18-0dea27d4bd98)
31
+
32
+ Thanks @freddyaboulton!
33
+
34
+ ### Fixes
35
+
36
+ - [#8066](https://github.com/gradio-app/gradio/pull/8066) [`624f9b9`](https://github.com/gradio-app/gradio/commit/624f9b9477f74a581a6c14119234f9efdfcda398) - make gradio dev tools a local dependency rather than bundling. Thanks @pngwn!
37
+
38
+ ### Dependency updates
39
+
40
+ - @gradio/atoms@0.7.1
41
+ - @gradio/client@0.17.0
42
+ - @gradio/image@0.10.0
43
+ - @gradio/statustracker@0.5.0
44
+ - @gradio/upload@0.9.0
45
+ - @gradio/utils@0.4.0
46
+
3
47
  ## 0.5.0
4
48
 
5
49
  ### Features
package/Index.svelte CHANGED
@@ -66,6 +66,7 @@
66
66
  clear: never;
67
67
  select: SelectData;
68
68
  share: ShareData;
69
+ clear_status: LoadingStatus;
69
70
  }>;
70
71
 
71
72
  let editor_instance: InteractiveImageEditor;
@@ -136,6 +137,7 @@
136
137
  autoscroll={gradio.autoscroll}
137
138
  i18n={gradio.i18n}
138
139
  {...loading_status}
140
+ on:clear_status={() => gradio.dispatch("clear_status", loading_status)}
139
141
  />
140
142
  <StaticImage
141
143
  on:select={({ detail }) => gradio.dispatch("select", detail)}
@@ -169,6 +171,7 @@
169
171
  autoscroll={gradio.autoscroll}
170
172
  i18n={gradio.i18n}
171
173
  {...loading_status}
174
+ on:clear_status={() => gradio.dispatch("clear_status", loading_status)}
172
175
  />
173
176
 
174
177
  <InteractiveImageEditor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/imageeditor",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -10,14 +10,17 @@
10
10
  "@types/tinycolor2": "^1.4.6",
11
11
  "pixi.js": "^7.3.2",
12
12
  "tinycolor2": "^1.6.0",
13
- "@gradio/atoms": "^0.7.0",
14
- "@gradio/client": "^0.16.0",
13
+ "@gradio/atoms": "^0.7.1",
14
+ "@gradio/client": "^0.17.0",
15
15
  "@gradio/icons": "^0.4.0",
16
- "@gradio/image": "^0.9.12",
17
- "@gradio/statustracker": "^0.4.12",
18
- "@gradio/upload": "^0.8.5",
19
- "@gradio/utils": "^0.3.2",
20
- "@gradio/wasm": "^0.10.0"
16
+ "@gradio/statustracker": "^0.5.0",
17
+ "@gradio/image": "^0.10.0",
18
+ "@gradio/upload": "^0.9.0",
19
+ "@gradio/wasm": "^0.10.0",
20
+ "@gradio/utils": "^0.4.0"
21
+ },
22
+ "devDependencies": {
23
+ "@gradio/preview": "^0.8.0"
21
24
  },
22
25
  "main_changeset": true,
23
26
  "main": "./Index.svelte",