@redseed/redseed-ui-vue3 2.9.1 → 2.9.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "2.9.1",
3
+ "version": "2.9.3",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,4 @@
1
1
  import { ref, watchEffect } from 'vue'
2
- import * as Lottie from 'lottie-web'
3
2
 
4
3
  export function useLottie(elementRef, animationData = null) {
5
4
 
@@ -15,13 +14,14 @@ export function useLottie(elementRef, animationData = null) {
15
14
  function loadLottie() {
16
15
  if (!elementRef.value) return
17
16
  if (!animationData) return
17
+ if (!window.lottie) return
18
18
 
19
19
  if (lottieAnimation.value) {
20
20
  lottieAnimation.value.destroy()
21
21
  lottieAnimation.value = null
22
22
  }
23
23
 
24
- lottieAnimation.value = Lottie.loadAnimation({
24
+ lottieAnimation.value = window.lottie.loadAnimation({
25
25
  container: elementRef.value,
26
26
  renderer: 'svg',
27
27
  loop: true,