@justeattakeaway/pie-lottie-player 0.2.4 → 0.2.6
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/custom-elements.json +6 -44
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/react.d.ts +4 -4
- package/package.json +5 -5
package/custom-elements.json
CHANGED
|
@@ -140,39 +140,30 @@
|
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"kind": "field",
|
|
143
|
-
"name": "animationSrc"
|
|
144
|
-
"attribute": "animationSrc",
|
|
145
|
-
"reflects": true
|
|
143
|
+
"name": "animationSrc"
|
|
146
144
|
},
|
|
147
145
|
{
|
|
148
146
|
"kind": "field",
|
|
149
|
-
"name": "animationData"
|
|
150
|
-
"attribute": "animationData"
|
|
147
|
+
"name": "animationData"
|
|
151
148
|
},
|
|
152
149
|
{
|
|
153
150
|
"kind": "field",
|
|
154
|
-
"name": "autoPlayDisabled"
|
|
155
|
-
"attribute": "autoPlayDisabled"
|
|
151
|
+
"name": "autoPlayDisabled"
|
|
156
152
|
},
|
|
157
153
|
{
|
|
158
154
|
"kind": "field",
|
|
159
|
-
"name": "loopDisabled"
|
|
160
|
-
"attribute": "loopDisabled"
|
|
155
|
+
"name": "loopDisabled"
|
|
161
156
|
},
|
|
162
157
|
{
|
|
163
158
|
"kind": "field",
|
|
164
|
-
"name": "speed"
|
|
165
|
-
"attribute": "speed",
|
|
166
|
-
"reflects": true
|
|
159
|
+
"name": "speed"
|
|
167
160
|
},
|
|
168
161
|
{
|
|
169
162
|
"kind": "field",
|
|
170
163
|
"name": "direction",
|
|
171
164
|
"type": {
|
|
172
165
|
"text": "LottiePlayerProps['direction']"
|
|
173
|
-
}
|
|
174
|
-
"attribute": "direction",
|
|
175
|
-
"reflects": true
|
|
166
|
+
}
|
|
176
167
|
},
|
|
177
168
|
{
|
|
178
169
|
"kind": "method",
|
|
@@ -202,35 +193,6 @@
|
|
|
202
193
|
"description": "Stops the animation"
|
|
203
194
|
}
|
|
204
195
|
],
|
|
205
|
-
"attributes": [
|
|
206
|
-
{
|
|
207
|
-
"name": "animationSrc",
|
|
208
|
-
"fieldName": "animationSrc"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"name": "animationData",
|
|
212
|
-
"fieldName": "animationData"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"name": "autoPlayDisabled",
|
|
216
|
-
"fieldName": "autoPlayDisabled"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"name": "loopDisabled",
|
|
220
|
-
"fieldName": "loopDisabled"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"name": "speed",
|
|
224
|
-
"fieldName": "speed"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"name": "direction",
|
|
228
|
-
"type": {
|
|
229
|
-
"text": "LottiePlayerProps['direction']"
|
|
230
|
-
},
|
|
231
|
-
"fieldName": "direction"
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
196
|
"superclass": {
|
|
235
197
|
"name": "PieElement",
|
|
236
198
|
"package": "@justeattakeaway/pie-webc-core/src/internals/PieElement"
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
|
-
import
|
|
2
|
+
import { CSSResult } from 'lit';
|
|
3
3
|
import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
|
|
4
|
-
import
|
|
4
|
+
import { TemplateResult } from 'lit-html';
|
|
5
5
|
|
|
6
6
|
export declare type AnimationDirection = typeof directions[number];
|
|
7
7
|
|
|
@@ -69,7 +69,7 @@ export declare class PieLottiePlayer extends PieElement implements LottiePlayerP
|
|
|
69
69
|
get speed(): number;
|
|
70
70
|
set speed(value: number);
|
|
71
71
|
get direction(): LottiePlayerProps['direction'];
|
|
72
|
-
set direction(value: LottiePlayerProps[
|
|
72
|
+
set direction(value: LottiePlayerProps["direction"]);
|
|
73
73
|
private _updateDirection;
|
|
74
74
|
/**
|
|
75
75
|
* Plays the animation from the beginning
|
package/dist/index.js
CHANGED
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
|
-
import
|
|
2
|
+
import { CSSResult } from 'lit';
|
|
3
3
|
import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
|
|
4
4
|
import * as React_2 from 'react';
|
|
5
|
-
import
|
|
5
|
+
import { TemplateResult } from 'lit-html';
|
|
6
6
|
|
|
7
7
|
export declare type AnimationDirection = typeof directions[number];
|
|
8
8
|
|
|
@@ -42,7 +42,7 @@ export declare interface LottiePlayerProps {
|
|
|
42
42
|
direction?: AnimationDirection;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export declare const PieLottiePlayer: React_2.ForwardRefExoticComponent<LottiePlayerProps & React_2.RefAttributes<PieLottiePlayer_2> & ReactBaseType>;
|
|
45
|
+
export declare const PieLottiePlayer: React_2.ForwardRefExoticComponent<React_2.PropsWithoutRef<LottiePlayerProps> & React_2.RefAttributes<PieLottiePlayer_2> & ReactBaseType>;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* @tagname pie-lottie-player
|
|
@@ -72,7 +72,7 @@ declare class PieLottiePlayer_2 extends PieElement implements LottiePlayerProps
|
|
|
72
72
|
get speed(): number;
|
|
73
73
|
set speed(value: number);
|
|
74
74
|
get direction(): LottiePlayerProps['direction'];
|
|
75
|
-
set direction(value: LottiePlayerProps[
|
|
75
|
+
set direction(value: LottiePlayerProps["direction"]);
|
|
76
76
|
private _updateDirection;
|
|
77
77
|
/**
|
|
78
78
|
* Plays the animation from the beginning
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-lottie-player",
|
|
3
3
|
"description": "PIE Design System Lottie Player built using Web Components",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.6",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"license": "Apache-2.0",
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
40
|
-
"@justeattakeaway/pie-components-config": "0.
|
|
41
|
-
"@justeattakeaway/pie-css": "0.
|
|
42
|
-
"@justeattakeaway/pie-monorepo-utils": "0.
|
|
40
|
+
"@justeattakeaway/pie-components-config": "0.21.0",
|
|
41
|
+
"@justeattakeaway/pie-css": "0.22.0",
|
|
42
|
+
"@justeattakeaway/pie-monorepo-utils": "0.7.0",
|
|
43
43
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@justeattakeaway/pie-webc-core": "
|
|
46
|
+
"@justeattakeaway/pie-webc-core": "2.0.0",
|
|
47
47
|
"lottie-web": "5.12.2"
|
|
48
48
|
},
|
|
49
49
|
"volta": {
|