Releases: kontent-ai/smart-link
Releases · kontent-ai/smart-link
v2.1.0
Added
Colors used in SDK can now be customized using CSS properties.
Fixed
The highlighted element now has hover effect when its edit button is hovered.
v2.0.1
Fixed
- Fixed the problem with infinite loading when data attributes required for add button were missing.
- Fixed highlights blinking when iframe communication is initialized.
v2.0.0
Added
- Smart links are now rendered using Web Components.
- Changes in smart link rendering algorithm for better performance.
- New data attributes related to add button have been added to SDK (data-kontent-add-button, data-kontent-add-button-insert-position, data-kontent-add-button-render-position).
- New data attribute to disable features (highlights) has been added to SDK (data-kontent-disable-features).
- Edit buttons now support content components and content items.
- New iframe messages added to iframe communication.
Fixed
- Better error handling (e.g. local storage access rights).
- Improve rendering algorithm for better performance.
Changed
- Setting query parameter to a falsy value (null, "") results in SDK being always enabled.
- IFrame communication is only used when inside Web Spotlight iframe.
- Configuration object has been changed:
- New debug property can be set to true to enable additional debug logs.
- Default project ID and language codename have been moved under defaultDataAttributes property.
- Default query parameter name has been changed from kontent-smart-link-enabled to ksl-enabled.
Removed
- Removed SCSS files and external CSS files that must be imported to use the SDK.
v1.3.0
Changed
- Changed default smart link styles.
v1.2.2
- Fixed first load smart link rendering
v.1.2.1
Fixed
- Fixed the positioning of the highlights inside body on pages with scrollbars by improving the rendering algorithm.
- Fixed the positioning of the highlights inside table elements by improving the rendering algorithm.
v1.2.0
Added
- A new metadata property to the element clicked iframe message which contains element rect.
v1.1.1
- Fixed the problem when big elements were not highlighted properly by improving the rendering algorithm.
v1.1.0
Added
- A new data-kontent-component-id attribute to support content components.
- A new buildComponentElementLink helper to generate Kontent smart link for a content component.
- CHANGELOG.md
Changed
- Improved data attributes parsing logic to avoid problems with some edge cases.
v1.0.0
The first public release of kontent-smart-link SDK.