Appearance
v9 ... v10
Breaking changes
Removed injecting css as side effect
Until version v9 css was implicitly handled. Css was injected when anything was imported from @deepdesk/deepdesk-sdk
.
From v10 onwards, css has to be explicitly added to the document.
There are two ways to add DeepdeskSDK's styling to the document:
import the css file exposed via the package:
css/* my-platform-styles.css */ @import '@deepdesk/deepdesk-sdk/styles.css';
import a javascript file that will inject css into the document as a side effect:
js/* index.js */ import '@deepdesk/deepdesk-sdk/styles';
Removed applyTextChange and applyHtmlChange
applyTextChange
has been replaced by updateTextArea
.
applyHtmlChange
has been replaced by updateContentEditable
.