gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
32.41k stars 2.42k forks source link

chore(deps): update dependency iframe-resizer to v5 #8432

Closed renovate[bot] closed 3 months ago

renovate[bot] commented 3 months ago

Mend Renovate

This PR contains the following updates:

Package Update Change
iframe-resizer major 4.3.1 -> 5.0.2

Release Notes

davidjbradshaw/iframe-resizer (iframe-resizer) ### [`v5.0.2`](https://togithub.com/davidjbradshaw/iframe-resizer/releases/tag/v5.0.2) [Compare Source](https://togithub.com/davidjbradshaw/iframe-resizer/compare/v5.0.1...v5.0.2) #### What's Changed - Add: [@​iframe-resizer/vue](https://togithub.com/iframe-resizer/vue) [https://github.com/davidjbradshaw/iframe-resizer/pull/1258](https://togithub.com/davidjbradshaw/iframe-resizer/pull/1258) - Fixed: TS2613: Module "[@​iframe-resizer/parent](https://togithub.com/iframe-resizer/parent)" has no default ex… by [@​pompep](https://togithub.com/pompep) in [https://github.com/davidjbradshaw/iframe-resizer/pull/1263](https://togithub.com/davidjbradshaw/iframe-resizer/pull/1263) #### New Contributors - [@​pompep](https://togithub.com/pompep) made their first contribution in [https://github.com/davidjbradshaw/iframe-resizer/pull/1263](https://togithub.com/davidjbradshaw/iframe-resizer/pull/1263) **Full Changelog**: https://github.com/davidjbradshaw/iframe-resizer/compare/v5.0.1...v5.0.2 ### [`v5.0.1`](https://togithub.com/davidjbradshaw/iframe-resizer/releases/tag/v5.0.1) [Compare Source](https://togithub.com/davidjbradshaw/iframe-resizer/compare/5.0.0...v5.0.1) #### What's Changed - Fix: Add throttling to call from ResizeObserver events to address issue in Safari when iframe contains animations. ### [`v5.0.0`](https://togithub.com/davidjbradshaw/iframe-resizer/releases/tag/5.0.0) [Compare Source](https://togithub.com/davidjbradshaw/iframe-resizer/compare/v4.3.11...5.0.0) ##### New documentation site - https://iframe-resizer.com ##### Upgrade For the most part version 5 will be a drop in replacement. The following guide explains how the API has been simplified in the new version. - https://iframe-resizer.com/upgrade ##### New features - Added automatic selection of best page size calculation method - Added check for html elements overflowing document body with console warning to advise on how to optimise the performance of page size calculation in this this situation - Added `getParentProperties()` function that returns the following information from the parent page: - iFrame [boundingClientRect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect) details - Position and size of scrollable page area - Inner size of the bowser window - Added `offset` option to adjust values returned from iframe - [#​1030](https://togithub.com/davidjbradshaw/iframe-resizer/issues/1030) - Added `direction` option - Added `postMessageTarget` option to better support GAS iframes - Log element used to calculate *lowest/rightmost/tagged* element - [#​400](https://togithub.com/davidjbradshaw/iframe-resizer/issues/400) - Added visibility checks to disable resizing when either the page or the iframe is hidden - Added direct message passing for same domain iframes, this gives much improved performance over `postMessage()` - Added CSS animation to examples - Added width resizing to the examples - Added WordPress guide to docs ##### Changes - Changed default height calculation method to `auto` - Improved performance optimisation of element based page size calculation methods - Replaced user interaction and browser event detection with the newish `ResizeObserver` API, by adding it to all non-static page elements. This provides improved detection of CSS `:hover`, CSS Animation, `