1.0.0-beta.23 (@scion/workbench-client)
github-actions
released this
22 May 05:10
·
109 commits
to master
since this release
1.0.0-beta.23 (2024-05-21)
Features
BREAKING CHANGES
-
workbench-client/message-box: The signature of the
WorkbenchMessageBoxService.open
method has changed.To migrate:
- To display a text message, pass the message as the first argument, not via the
content
property in the options. - To display a custom message box, pass the qualifier as the first argument and options, if any, as the second argument.
Example migration to display a text message
// Before Migration inject(WorkbenchMessageBoxService).open({ content: 'Do you want to continue?', actions: {yes: 'Yes', no: 'No'}, }); // After Migration inject(WorkbenchMessageBoxService).open('Do you want to continue?', { actions: {yes: 'Yes', no: 'No'}, });
Example migration to open a custom message box capability
// Before Migration inject(WorkbenchMessageBoxService).open({ title: 'Unsaved Changes', params: {changes: ['change 1', 'change 2']}, actions: {yes: 'Yes', no: 'No'}, }, {confirmation: 'unsaved-changes'}, ); // After Migration inject(WorkbenchMessageBoxService).open({confirmation: 'unsaved-changes'}, { title: 'Unsaved Changes', params: {changes: ['change 1', 'change 2']}, actions: {yes: 'Yes', no: 'No'}, });
- To display a text message, pass the message as the first argument, not via the