[Side Editor] Data loss when switching tabs without any warning
### Node Version

v20.18.1

### NPM/Yarn/PNPM Version

npm

### Strapi Version

v0.0.0-experimental.e12978dcee698470990e9c5c63384faf2c307443

### Operating System

MacOS

### Database

SQLite

### Javascript or Typescript

Javascript

### Reproduction URL

_No response_

### Bug Description

When you switch tabs in Editor from draft to published, then go back to draft, all your updates have disappeared without any warnings. 

### Steps to Reproduce

1. Open a preview in draft tab
2. Make updates
3. Switch to published tab
4. Check your updates : gone !

### Expected Behavior

A warning message should pop up when clicking on Published tab, to avoid data loss

### Logs

```shell

```

### Code Snippets

_No response_

### Media

https://github.com/user-attachments/assets/cc172060-777c-4b33-afd4-947b5e10bd0b

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).