@gradio/button 0.2.0-beta.7 → 0.2.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 +9 -0
- package/Index.svelte +2 -2
- package/package.json +4 -4
- package/shared/Button.svelte +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# @gradio/button
|
2
2
|
|
3
|
+
## 0.2.0
|
4
|
+
|
5
|
+
### Features
|
6
|
+
|
7
|
+
- [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - fix circular dependency with client + upload. Thanks [@pngwn](https://github.com/pngwn)!
|
8
|
+
- [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - Clean root url. Thanks [@pngwn](https://github.com/pngwn)!
|
9
|
+
- [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - Publish all components to npm. Thanks [@pngwn](https://github.com/pngwn)!
|
10
|
+
- [#5498](https://github.com/gradio-app/gradio/pull/5498) [`287fe6782`](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7) - Custom components. Thanks [@pngwn](https://github.com/pngwn)!
|
11
|
+
|
3
12
|
## 0.2.0-beta.7
|
4
13
|
|
5
14
|
### Features
|
package/Index.svelte
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
click: never;
|
23
23
|
}>;
|
24
24
|
export let root = "";
|
25
|
-
export let
|
25
|
+
export let proxy_url: null | string = null;
|
26
26
|
</script>
|
27
27
|
|
28
28
|
<Button
|
@@ -37,7 +37,7 @@
|
|
37
37
|
{min_width}
|
38
38
|
{visible}
|
39
39
|
{root}
|
40
|
-
{
|
40
|
+
{proxy_url}
|
41
41
|
disabled={!interactive}
|
42
42
|
on:click={() => gradio.dispatch("click")}
|
43
43
|
>
|
package/package.json
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/button",
|
3
|
-
"version": "0.2.0
|
3
|
+
"version": "0.2.0",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"author": "",
|
7
7
|
"license": "ISC",
|
8
8
|
"private": false,
|
9
9
|
"dependencies": {
|
10
|
-
"@gradio/client": "^0.7.0
|
11
|
-
"@gradio/upload": "^0.3.0
|
12
|
-
"@gradio/utils": "^0.2.0
|
10
|
+
"@gradio/client": "^0.7.0",
|
11
|
+
"@gradio/upload": "^0.3.0",
|
12
|
+
"@gradio/utils": "^0.2.0"
|
13
13
|
},
|
14
14
|
"main": "./Index.svelte",
|
15
15
|
"main_changeset": true,
|
package/shared/Button.svelte
CHANGED
@@ -13,8 +13,8 @@
|
|
13
13
|
export let scale: number | null = null;
|
14
14
|
export let min_width: number | undefined = undefined;
|
15
15
|
export let root = "";
|
16
|
-
export let
|
17
|
-
$: icon_path = get_fetchable_url_or_file(icon, root,
|
16
|
+
export let proxy_url: string | null = null;
|
17
|
+
$: icon_path = get_fetchable_url_or_file(icon, root, proxy_url);
|
18
18
|
</script>
|
19
19
|
|
20
20
|
{#if link && link.length > 0}
|