From 6c9c41b15d1a8b3f29d61b6bf172b6fc3a918ab2 Mon Sep 17 00:00:00 2001
From: pngwn
Date: Fri, 3 Mar 2023 16:52:38 +0000
Subject: [PATCH] support domains (#3367)
* support domains
* changelog
* format
* handle invalid source/host/space
* format
* version
---------
Co-authored-by: Abubakar Abid
---
CHANGELOG.md | 1 +
gradio/version.txt | 2 +-
ui/packages/_cdn-test/index.html | 125 ++++++++++++++++---------------
ui/packages/app/src/Index.svelte | 100 +++++++++++++++++--------
ui/packages/app/src/Login.svelte | 1 -
ui/packages/app/src/main.ts | 4 +-
6 files changed, 138 insertions(+), 95 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 024febf50b..0108046f9c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -60,6 +60,7 @@ By [@freddyaboulton](https://github.com/freddyaboulton) in [PR 3297](https://git
- Ensure that the initial empty value for `gr.Dropdown(Multiselect=True)` is an empty list and the initial value for `gr.Dropdown(Multiselect=False)` is an empty string by [@pngwn](https://github.com/pngwn) in [PR 3338](https://github.com/gradio-app/gradio/pull/3338)
- Ensure uploaded images respect the shape property when the canvas is also enabled by [@pngwn](https://github.com/pngwn) in [PR 3351](https://github.com/gradio-app/gradio/pull/3351)
- Ensure that Google Analytics works correctly when gradio apps are created with `analytics_enabled=True` by [@abidlabs](https://github.com/abidlabs) in [PR 3349](https://github.com/gradio-app/gradio/pull/3349)
+- Support new embeds for huggingface spaces subdomains by [@pngwn](https://github.com/pngwn) in [PR 3367](https://github.com/gradio-app/gradio/pull/3367)
## Documentation Changes:
- Added the `types` field to the dependency field in the config by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 3315](https://github.com/gradio-app/gradio/pull/3315)
diff --git a/gradio/version.txt b/gradio/version.txt
index 4f6817bc5c..78c6e856bb 100644
--- a/gradio/version.txt
+++ b/gradio/version.txt
@@ -1 +1 @@
-3.19.1
+3.20.0b2
diff --git a/ui/packages/_cdn-test/index.html b/ui/packages/_cdn-test/index.html
index f7dd33ddfa..ff8f6c1338 100644
--- a/ui/packages/_cdn-test/index.html
+++ b/ui/packages/_cdn-test/index.html
@@ -159,26 +159,21 @@
Hello text. Hello text.
-
+ >
-
-
+ >
+ no src
+ no host
+
+ no space
+
+
+ invalid src
+
+ invalid host
+
+ invalid space
+
+
+
+ Error: runtime error
-
-
-
-
-
-
-
-
-
-
-
-
+ Error: no app file
-
+ Error: no app file
+
+ Error: build error
+ Error: build error
+
-
-
+ space="gradio/live_with_vars"
+ initial_height="200px"
+ control_page_title="true"
+ >