Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.73 KB

CHANGELOG_WORKBENCH_CLIENT_LATEST.md

File metadata and controls

51 lines (37 loc) · 1.73 KB

1.0.0-beta.23 (2024-05-21)

Features

  • workbench-client/message-box: enable microfrontend display in a message box (3e9d88d), closes #488

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'},
    });