Skip to content

Releases: kontent-ai/smart-link

v2.1.0

01 Jul 09:31
Compare
Choose a tag to compare

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

17 Jun 07:56
Compare
Choose a tag to compare

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

02 Jun 10:49
Compare
Choose a tag to compare

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

30 Mar 09:05
Compare
Choose a tag to compare

Changed

  • Changed default smart link styles.

v1.2.2

26 Jan 10:38
Compare
Choose a tag to compare
  • Fixed first load smart link rendering

v.1.2.1

26 Oct 10:11
Compare
Choose a tag to compare

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

07 Oct 06:47
Compare
Choose a tag to compare

Added

  • A new metadata property to the element clicked iframe message which contains element rect.

v1.1.1

01 Oct 10:03
Compare
Choose a tag to compare
  • Fixed the problem when big elements were not highlighted properly by improving the rendering algorithm.

v1.1.0

01 Sep 12:58
Compare
Choose a tag to compare

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

01 Sep 10:54
72279e5
Compare
Choose a tag to compare

The first public release of kontent-smart-link SDK.