TINY-12087: add migration guide URL (#10352)

Related Ticket: TINY-12087

Description of Changes:
* Added migration URL for ToggleToolbarDrawer deprecation message
* Created a constant for the migration guide URL
* Updated the skipFocus deprecation message to use the new URL constant

Pre-checks:
* [x] ~~Changelog entry added~~
* [x] ~~Tests have been added (if applicable)~~
* [x] Branch prefixed with `feature/`, `hotfix/` or `spike/`

Review:
* [x] Milestone set
* [x] ~~Docs ticket created (if applicable)~~

GitHub issues (if applicable):
This commit is contained in:
Zuzanna Tomaszyk
2025-05-15 11:33:45 +02:00
committed by GitHub
parent 7fdd5c0770
commit 6c0e38a616

View File

@ -1,6 +1,7 @@
// TODO: add migration URL in ToggleToolbarDrawer message #TINY-12087
const migrationFrom7x = 'https://www.tiny.cloud/docs/tinymce/latest/migration-from-7x/';
const deprecatedFeatures = {
skipFocus: 'ToggleToolbarDrawer skipFocus is deprecated see migration guide: ....',
skipFocus: `ToggleToolbarDrawer skipFocus is deprecated see migration guide: ${migrationFrom7x}`,
};
const logFeatureDeprecationWarning = (feature: keyof typeof deprecatedFeatures): void => {