@contentstack/studio-message-types
v1.1.4
Published
Shared message types for communication between Studio platform and SDKs
Downloads
406
Readme
studio-message-types
This package contains all message types that are used to communicate between the Studio platform and the iframe webpage.
How is this package organized?
Package have 2 types of folders:
- version folder: Version folders like base, v2, v3, etc. Will have message types of old and new versions. SDKs will always use the latest version. New versions will extend base version and modify it to add new fields.
- studio folder: Studio folder will have message type union of all versions type. Since Studio should know how to communicate with all versions of SDKs.
How to use this package?
For SDKs
SDK will always use the latest version of the message types.
import {} from '@contentstack/studio-message-types/latest_version'For Studio
Studio will use the union of all versions of the message types.
import {} from '@contentstack/studio-message-types/studio'