@aarsteinmedia/dotlottie-player 4.0.14 → 5.0.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/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as Lottie from 'lottie-web/build/player/lottie.js';
2
2
  import { AnimationDirection, RendererType, AnimationSegment } from 'lottie-web';
3
- import { RefObject, CSSProperties } from 'react';
4
3
 
5
4
  declare function renderPlayer(this: DotLottiePlayer): void;
6
5
 
@@ -128,17 +127,33 @@ type Autoplay = boolean | '' | 'autoplay' | null;
128
127
  type Controls = boolean | '' | 'controls' | null;
129
128
  type Loop = boolean | '' | 'loop' | null;
130
129
  type Subframe = boolean | '' | null;
131
- type JSXLottiePlayer = Omit<Partial<DotLottiePlayer>, 'style'> & {
132
- class?: string;
133
- ref?: RefObject<unknown>;
134
- style?: CSSProperties;
135
- src: string;
136
- };
137
130
  declare global {
138
131
  interface HTMLElementTagNameMap {
139
132
  'dotlottie-player': DotLottiePlayer;
140
133
  }
141
134
  function dotLottiePlayer(): DotLottiePlayer;
135
+ }
136
+ type JSXLottiePlayer = Omit<Partial<DotLottiePlayer>, 'style'> & {
137
+ class?: string;
138
+ ref?: React.RefObject<unknown>;
139
+ style?: React.CSSProperties;
140
+ src: string;
141
+ };
142
+ declare module 'react' {
143
+ namespace JSX {
144
+ interface IntrinsicElements {
145
+ 'dotlottie-player': JSXLottiePlayer;
146
+ }
147
+ }
148
+ }
149
+ declare module 'react/jsx-runtime' {
150
+ namespace JSX {
151
+ interface IntrinsicElements {
152
+ 'dotlottie-player': JSXLottiePlayer;
153
+ }
154
+ }
155
+ }
156
+ declare module 'react/jsx-dev-runtime' {
142
157
  namespace JSX {
143
158
  interface IntrinsicElements {
144
159
  'dotlottie-player': JSXLottiePlayer;