2022-02-01-changelog

Changelog notifying updates to the Miro Web SDK 2.0 as of February 1st, 2022.

Summary

❗️

Breaking change

Affects:

What has changed

To simplify naming, and to keep consistency across the Miro Web SDK 2.0 properties, we renamed the following properties:

FromTo
pageUrlurl
maxWidthwidth
maxHeightheight

This is a breaking change that affects the openModal and the openPanel methods.
If you are using these Miro Web SDK 2.0 methods in your code, make sure you refactor them to implement the updated names for these properties.

Examples

// openModal method using renamed properties
await miro.board.ui.openModal({
-  pageUrl: 'example.html',
-  maxHeight: 250,
-  maxWidth: 320, 
+  url: 'example.html', 
+  height: 250,
+  width: 320,
  });
// openPanel method using renamed properties
// Note: the panel has a fixed width of 368 px, no padding
await miro.board.ui.openPanel({
-  pageUrl: 'example.html',
-  maxWidth: 250,
+  url: 'example.html', 
+  height: 250,
  });

Did this page help you?