- 2c48dbf: refactor: abstract common functionality between
DotLottieReact
andDotLottieReactWorker
to reduce bundle size - 003e7b1: feat: React v19 upgrade
- 2c48dbf: fix: dotLottie instance instantiation and cleanup in React
StrictMode
for bothDotLottieReact
andDotLottieReactWorker
components
- Updated dependencies [fa72f98]
- @lottiefiles/dotlottie-web@0.38.2
- fb3ba0f: chore(react): update JSX transform to "react-jsx" and drop React 16 support
- Updated dependencies [898084e]
- Updated dependencies [de079cc]
- Updated dependencies [30ff412]
- @lottiefiles/dotlottie-web@0.38.1
- Updated dependencies [4be7253]
- Updated dependencies [4be7253]
- Updated dependencies [4be7253]
- @lottiefiles/dotlottie-web@0.38.0
-
0d65643: feat: updated dotLottie-rs wasm bindings to v0.1.33 which includes the new v2 dotLottiespecs and theming support. feat: Added
setSlots
methods toDotLottie
class to set lottie slots in runtime. feat: AddedthemeId
prop to theDotLottie
class config to initially load a .lottie with a specific theme. feat: AddedresetTheme
method to theDotLottie
class to reset the theme to the default one.BREAKING CHANGE:
- DotLottie's
loadTheme
method is no longer supported, usesetTheme
instead. - DotLottie's
setThemeData
method is no longer supported, usesetThemeData
instead.
- DotLottie's
- Updated dependencies [0d65643]
- @lottiefiles/dotlottie-web@0.37.0
- Updated dependencies [9ed1a99]
- @lottiefiles/dotlottie-web@0.37.0-beta.9
- Updated dependencies [c0927ea]
- @lottiefiles/dotlottie-web@0.37.0-beta.8
- Updated dependencies [989a447]
- @lottiefiles/dotlottie-web@0.37.0-beta.7
- Updated dependencies [6a6db41]
- @lottiefiles/dotlottie-web@0.37.0-beta.6
- Updated dependencies [5192b23]
- @lottiefiles/dotlottie-web@0.37.0-beta.5
- Updated dependencies [7ef3025]
- @lottiefiles/dotlottie-web@0.37.0-beta.4
- Updated dependencies [0dcc26c]
- @lottiefiles/dotlottie-web@0.37.0-beta.3
- 10670ee: added provenance to all packages
- Updated dependencies [10670ee]
- @lottiefiles/dotlottie-web@0.36.1
- Updated dependencies [26f4be4]
- @lottiefiles/dotlottie-web@0.36.0
- Updated dependencies [f0e751d]
- @lottiefiles/dotlottie-web@0.35.0
- 40b19ef: chore: update build target from ES2020 to ES2015
- Updated dependencies [40b19ef]
- @lottiefiles/dotlottie-web@0.34.0
- Updated dependencies [8540831]
- @lottiefiles/dotlottie-web@0.33.0
- Updated dependencies [1900885]
- Updated dependencies [b7148b9]
- @lottiefiles/dotlottie-web@0.32.0
- Updated dependencies [dd70edf]
- @lottiefiles/dotlottie-web@0.31.1
- Updated dependencies [03311db]
- Updated dependencies [e34ac54]
- Updated dependencies [8e6f572]
- @lottiefiles/dotlottie-web@0.31.0
- Updated dependencies [04fc781]
- @lottiefiles/dotlottie-web@0.30.3
- 18f8015: fix(react): 🐛 "Worker is not defined" error in Next.js SSR
- Updated dependencies [8419a48]
- @lottiefiles/dotlottie-web@0.30.2
- Updated dependencies [78bb656]
- @lottiefiles/dotlottie-web@0.30.1
- Updated dependencies [77a56bc]
- @lottiefiles/dotlottie-web@0.30.0
- b4c4c6b: fix: 🐛 temporarily disable unstable partial canvas rendering optimization in dotLottie-web wrappers
- Updated dependencies [d942dd2]
- @lottiefiles/dotlottie-web@0.29.2
- Updated dependencies [dc66e8e]
- @lottiefiles/dotlottie-web@0.29.1
- eebb307: feat(react): 🎸 add DotLottieWorkerReact component
- Updated dependencies [400c333]
- Updated dependencies [ca7bb5a]
- @lottiefiles/dotlottie-web@0.29.0
- Updated dependencies [1d26a93]
- @lottiefiles/dotlottie-web@0.28.0
- e7a7829: fix: 🐛 remove the unncessary intersection observer debounce
- 8cdff81: fix(react): 🐛 container gap at the bottom
- Updated dependencies [6e15246]
- @lottiefiles/dotlottie-web@0.27.0
-
f0226ec: Feature Update: 🎸 Add optional
animationId
,themeId
, andthemeData
props toDotLottieReact
componentWe are excited to introduce new optional props to the
DotLottieReact
component:animationId
,themeId
, andthemeData
.New Features:
animationId
: Allows you to specify and render a particular animation from a.lottie
file containing multiple animations.themeId
: Enables the application of a particular theme from the loaded.lottie
file to the currently active animation.themeData
: Allows you to pass custom theme data to the currently active animation.
Usage Example:
import { DotLottieReact } from '@lottiefiles/dotlottie-react'; import React, { useState, useEffect } from 'react'; const App = () => { const [dotLottie, setDotLottie] = useState(null); const [animations, setAnimations] = useState([]); const [themes, setThemes] = useState([]); const [currentThemeId, setCurrentThemeId] = useState(''); const [currentAnimationId, setCurrentAnimationId] = useState(''); useEffect(() => { const onLoad = () => { if (dotLottie) { setAnimations(dotLottie.manifest.animations || []); setThemes(dotLottie.manifest.themes || []); setCurrentAnimationId(dotLottie.activeAnimationId); setCurrentThemeId(dotLottie.activeThemeId); } }; dotLottie?.addEventListener('load', onLoad); return () => { dotLottie?.removeEventListener('load', onLoad); }; }, [dotLottie]); return ( <div> <DotLottieReact dotLottieRefCallback={setDotLottie} animationId={currentAnimationId} /> <label>Theme:</label> {currentThemeId && ( <select value={currentThemeId} onChange={(e) => setCurrentThemeId(e.target.value)}> {themes.map((theme) => ( <option key={theme.id} value={theme.id}> {theme.id} </option> ))} </select> )} <label>Animation:</label> {currentAnimationId && ( <select value={currentAnimationId} onChange={(e) => setCurrentAnimationId(e.target.value)}> {animations.map((animation) => ( <option key={animation.id} value={animation.id}> {animation.id} </option> ))} </select> )} </div> ); };
-
a564ff0: perf(react): ⚡️ render only visible canvas area
This update optimizes the rendering performance by ensuring that only the visible portion of the canvas is rendered, utilizing the dotlottie-web
setViewport
API.Note: No changes are required for existing usage. The optimization is applied internally within the
DotLottieReact
component.
- Updated dependencies [ba46fd1]
- Updated dependencies [d7c2c20]
- @lottiefiles/dotlottie-web@0.26.0
- Updated dependencies [5b942aa]
- @lottiefiles/dotlottie-web@0.25.0
- a79c540: fix(react): 🐛 dotlottieRefCallback null instance in strict mode
- Updated dependencies [663fab2]
- Updated dependencies [b72a4d7]
- @lottiefiles/dotlottie-web@0.24.0
- Updated dependencies [6bb8561]
- @lottiefiles/dotlottie-web@0.23.2
- Updated dependencies [91be7a1]
- @lottiefiles/dotlottie-web@0.23.1
- 2913555: fix(react): 🐛 avoid creating browser-specific objects in SSR environment
- Updated dependencies [6d7673a]
- Updated dependencies [274868e]
- Updated dependencies [64214f7]
- Updated dependencies [274868e]
- @lottiefiles/dotlottie-web@0.23.0
- e739e6e: feat: 🎸 enable self-hosting of WASM in dotlottie-web wrappers
- f879652: feat(react): 🎸 optimize animation playback based on initial visibility
- Updated dependencies [80fe2f1]
- @lottiefiles/dotlottie-web@0.22.0
- Updated dependencies [6b394ca]
- @lottiefiles/dotlottie-web@0.21.1
- Updated dependencies [fe68ad3]
- @lottiefiles/dotlottie-web@0.21.0
- Updated dependencies [9e7a046]
- @lottiefiles/dotlottie-web@0.20.2
- f91a4d6: chore: 🤖 remove node version check from package.json
- Updated dependencies [f91a4d6]
- @lottiefiles/dotlottie-web@0.20.1
- Updated dependencies [aa102b0]
- Updated dependencies [aa102b0]
- @lottiefiles/dotlottie-web@0.20.0
- Updated dependencies [0672481]
- @lottiefiles/dotlottie-web@0.19.0
- Updated dependencies [bcd014b]
- @lottiefiles/dotlottie-web@0.18.1
- Updated dependencies [65c0b29]
- @lottiefiles/dotlottie-web@0.18.0
- 27174c5: feat: 🎸 add
marker
prop
- 51ff0e9: refactor: 💡 rename
segments
tosegment
- Updated dependencies [51ff0e9]
- Updated dependencies [51ff0e9]
- @lottiefiles/dotlottie-web@0.17.0
- Updated dependencies [0e521aa]
- Updated dependencies [0e521aa]
- Updated dependencies [0e521aa]
- @lottiefiles/dotlottie-web@0.16.0
- Updated dependencies [7f659f7]
- @lottiefiles/dotlottie-web@0.15.0
- 5d4f3ea: feat: 🎸 Added
autoResizeCanvas
prop to enable control over the canvas resizing behavior
- Updated dependencies [b5463d5]
- @lottiefiles/dotlottie-web@0.14.1
- Updated dependencies [7e0890a]
- Updated dependencies [7e0890a]
- @lottiefiles/dotlottie-web@0.14.0
- Updated dependencies [e2da7cf]
- Updated dependencies [e2da7cf]
- Updated dependencies [e2da7cf]
- @lottiefiles/dotlottie-web@0.13.0
- Updated dependencies [e9fdc3a]
- @lottiefiles/dotlottie-web@0.13.0-beta.1
- Updated dependencies [09116cb]
- @lottiefiles/dotlottie-web@0.12.4
- Updated dependencies [4810361]
- Updated dependencies [4810361]
- @lottiefiles/dotlottie-web@0.13.0-beta.0
- Updated dependencies [cd3292e]
- @lottiefiles/dotlottie-web@0.12.3
- Updated dependencies [7b2b596]
- @lottiefiles/dotlottie-web@0.12.2
- Updated dependencies [1ed6c7c]
- Updated dependencies [b0ca50e]
- @lottiefiles/dotlottie-web@0.12.1
- 121474d: feat: add
playOnHover
prop - 121474d: feat: reactivity of DotLottieReact component props
- 121474d: chore: bundle the esm build artifacts to work with webpack
- 121474d: fix: debounce resize&intersection observers callbacks
- 121474d: fix: stability of dotLottieRefCallback prop using useStableCallback hooks
- Updated dependencies [121474d]
- Updated dependencies [121474d]
- Updated dependencies [121474d]
- Updated dependencies [121474d]
- @lottiefiles/dotlottie-web@0.12.0
- Updated dependencies [63333c5]
- Updated dependencies [c135278]
- Updated dependencies [11c7ae5]
- Updated dependencies [fb3eeeb]
- @lottiefiles/dotlottie-web@0.11.1
- Updated dependencies [495a3d5]
- Updated dependencies [13a5217]
- Updated dependencies [495a3d5]
- Updated dependencies [495a3d5]
- @lottiefiles/dotlottie-web@0.11.0
- a255b96: * feat: 🎸 freeze animation when hidden
- feat: 🎸 automatically resize the canvas drawing surface when the canvas element is resized
- Updated dependencies [e57fbac]
- Updated dependencies [8732113]
- @lottiefiles/dotlottie-web@0.10.0