The core SDK serves as a reusable platform for embedding a Changes changelog into any website.
The core SDK is used by the Sidebar SDK and the Widget SDK.
# npm
npm install changelog-core
# yarn
yarn add changelog-core
import CoreSDK from 'changelog-core';
// Instantiate the CoreSDK
let sdk = new CoreSDK({
id: '5Web2XRF',
key: 'IK-X2zvTYjp-NCg-3q2Rj'
});
// Delete the CoreSDK iframe
sdk.remove();
// Refresh the CoreSDK iframe
sdk.update();
// Access the iframe
sdk.iframe;
sdk.on('init', ...);
sdk.on('remove', ...);
sdk.on('update', ...);
sdk.on('loaded', ...);
Create a new instance of a changelog-embed.
Type:
{
id: string;
mode?: string;
options?: {
embedHost?: string;
}
}
Destruct a changelog-iframe.
Update the changelog-embed-iframe's contents.
Listen to internal events.
Access the changelog-embed-iframe.