diff --git a/.config/JSX.d.ts b/.config/JSX.d.ts deleted file mode 100644 index 90dfd97629..0000000000 --- a/.config/JSX.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare namespace svelte.JSX { - interface DOMAttributes { - theme?: string; - "item-type"?: string; - webkitdirectory?: boolean | string; - mozdirectory?: boolean | string; - } -} diff --git a/.config/globals.d.ts b/.config/globals.d.ts deleted file mode 100644 index 91528f02ba..0000000000 --- a/.config/globals.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -declare global { - interface Window { - __gradio_mode__: "app" | "website"; - launchGradio: Function; - launchGradioFromSpaces: Function; - gradio_config: Config; - scoped_css_attach: (link: HTMLLinkElement) => void; - __is_colab__: boolean; - } -} - -export {}; diff --git a/CHANGELOG.md b/CHANGELOG.md index a950455ea8..2ed114121d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - The `plot` parameter deprecation warnings should now only be emitted for `Image` components by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 4709](https://github.com/gradio-app/gradio/pull/4709) - Removed uncessessary `type` deprecation warning by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 4709](https://github.com/gradio-app/gradio/pull/4709) - Ensure Audio autoplays works when `autoplay=True` and the video source is dynamically updated [@pngwn](https://github.com/pngwn) in [PR 4705](https://github.com/gradio-app/gradio/pull/4705) +- When an error modal is shown in spaces, ensure we scroll to the top so it can be seen by [@pngwn](https://github.com/pngwn) in [PR 4712](https://github.com/gradio-app/gradio/pull/4712) - Update depedencies by [@pngwn](https://github.com/pngwn) in [PR 4675](https://github.com/gradio-app/gradio/pull/4675) - Fixes `gr.Dropdown` being cutoff at the bottom by [@abidlabs](https://github.com/abidlabs) in [PR 4691](https://github.com/gradio-app/gradio/pull/4691). diff --git a/globals.d.ts b/globals.d.ts index 9abbf7664f..f80cbb47f7 100644 --- a/globals.d.ts +++ b/globals.d.ts @@ -6,6 +6,9 @@ declare global { gradio_config: Config; scoped_css_attach: (link: HTMLLinkElement) => void; __is_colab__: boolean; + parentIFrame?: { + scrollTo: (x: number, y: number) => void; + }; } } diff --git a/js/app/src/components/StatusTracker/Toast.svelte b/js/app/src/components/StatusTracker/Toast.svelte index 87fff8a66c..8406efb207 100644 --- a/js/app/src/components/StatusTracker/Toast.svelte +++ b/js/app/src/components/StatusTracker/Toast.svelte @@ -1,17 +1,27 @@
{#each messages as { type, message, id } (id)}
- -
{/each}