@karmo-co/drift-kit-public 25.3.2 → 25.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components.js CHANGED
@@ -7770,8 +7770,16 @@
7770
7770
  if (root !== document && root.matches && root.matches('.dk-component-feedback-badge'))
7771
7771
  render(root);
7772
7772
  }
7773
+ function play(el, state) {
7774
+ if (el.getAttribute('data-animation') === state) {
7775
+ el.removeAttribute('data-animation');
7776
+ void el.offsetWidth;
7777
+ }
7778
+ el.setAttribute('data-animation', state);
7779
+ }
7773
7780
  api.init = init;
7774
7781
  api.render = render;
7782
+ api.play = play;
7775
7783
  document.addEventListener('DOMContentLoaded', function () {
7776
7784
  init(document);
7777
7785
  if (typeof MutationObserver === 'undefined')