AFFiNE/packages/frontend
renovate e44a9483c2
chore: bump up @marsidev/react-turnstile version to v1 (#7940)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@marsidev/react-turnstile](https://togithub.com/marsidev/react-turnstile) | [`^0.7.0` -> `^1.0.0`](https://renovatebot.com/diffs/npm/@marsidev%2freact-turnstile/0.7.2/1.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@marsidev%2freact-turnstile/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@marsidev%2freact-turnstile/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@marsidev%2freact-turnstile/0.7.2/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@marsidev%2freact-turnstile/0.7.2/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>marsidev/react-turnstile (@&#8203;marsidev/react-turnstile)</summary>

### [`v1.0.0`](https://togithub.com/marsidev/react-turnstile/releases/tag/v1.0.0)

[Compare Source](https://togithub.com/marsidev/react-turnstile/compare/v0.7.2...v1.0.0)

##### 🚨 Breaking Changes

-   Now we ship ESM-only code, this will decrease the bundle size significantly.
    If you are a CommonJS user, I suggest you to keep using the version `0.7.2` or upgrade your project to ESM.

-   Removed "auto" widget size due to is not even a valid size for Cloudflare Turnstile.
    We have been sending `undefined` when the size was "auto", so if you were using this size, then you can simply remove it.

-   Peer dependencies for `react` and `react-dom` have been updated to 17.x and above.

##### 🚀 Features

-   Added callback `onTimeout`
-   Added render options `refreshTimeout` and `feedbackEnabled` (Closes [#&#8203;82](https://togithub.com/marsidev/react-turnstile/issues/82))
-   Added new "flexible" widget size (Closes [#&#8203;82](https://togithub.com/marsidev/react-turnstile/issues/82))

##### 🐛 Fixes

-   Updated "compact" widget size to 150x140 (Closes [#&#8203;85](https://togithub.com/marsidev/react-turnstile/issues/85))

##### 🛠 Misc

##### Build

-   We migrated from [unbuild](https://togithub.com/unjs/unbuild) to [tsup](https://togithub.com/egoist/tsup)
-   The generated build is now minified, this will decrease the bundle size significantly.

##### TypeScript

-   Improved type definitions. Now we expose these types: `AppearanceMode`, `ExecutionMode`, `FailureRetryMode`, `RefreshExpiredMode`, `RefreshTimeoutMode`, `WidgetSize`. Inspired by [@&#8203;types/cloudflare-turnstile](https://www.npmjs.com/package/@&#8203;types/cloudflare-turnstile)

##### Other

-   Updated dependencies
-   Updated docs
-   Added issue templates and policies

#####     [View changes on GitHub](https://togithub.com/marsidev/react-turnstile/compare/v0.7.2...v1.0.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-08-27 02:50:53 +00:00
..
admin chore: bump up all non-major dependencies (#7953) 2024-08-23 14:42:36 +00:00
component fix: remove unused variables (#7968) 2024-08-26 14:23:56 +08:00
core chore: bump up @marsidev/react-turnstile version to v1 (#7940) 2024-08-27 02:50:53 +00:00
electron refactor(infra): remove setimmediate (#7975) 2024-08-26 11:57:24 +00:00
electron-api chore: bump up electron version to v32 (#7927) 2024-08-21 08:38:21 +00:00
graphql feat(component): mobile menu support (#7892) 2024-08-21 09:05:05 +00:00
i18n chore(core): add Display bi-directional links setting row ui (#7954) 2024-08-26 06:25:32 +00:00
mobile refactor(infra): remove setimmediate (#7975) 2024-08-26 11:57:24 +00:00
native chore: bump up all non-major dependencies (#7925) 2024-08-22 04:12:23 +00:00
templates chore: bump base version to 0.16.0 2024-08-09 18:30:07 +08:00
web refactor(infra): remove setimmediate (#7975) 2024-08-26 11:57:24 +00:00