2023-02-13 changelog

Miro Web SDK 2.0 supports showContent for frames; enforces max size for AppData and AppMetadata

What's new

Miro Web SDK 2.0 supports showContent for frames

Experimental

Show and hide frame content with the Web SDK.

  • The showContent property for frames enables to programmatically hide or reveal the content inside a frame.
    The functionality works like the show frame and hide frame options available on the item context menu, when the frame is selected on the board UI.

📘

Hiding and revealing the content inside frames is only available to board owners and co-owners on Consultant and Enterprise plans.

If your app attempts to toggle the visibility of content inside a frame with showContent for users who are on different subscription plans and who aren't board owners or co-owners, the operation throws an error.

Miro Web SDK 2.0 enforces max size for AppData and AppMetadata

Apps can access two objects to store metadata:

  • AppData: stores app metadata to make it available on the board that the app is running on.
  • AppMetadata: stores board item metadata to make it available on the board that the app is running on.

Both objects enforce a predefined limit to the amount of metadata that they can store:

  • AppDatacan store up to 512 bytes of data per app per board.
  • AppMetadata can store up to 256 bytes of data per app per board.

If your app attempts to exceed these limits, the Web SDK throws an error.

For more information, see setAppData and setMetadata.