first commit
This commit is contained in:
21
node_modules/@lottiefiles/lottie-player/LICENSE
generated
vendored
Normal file
21
node_modules/@lottiefiles/lottie-player/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 LottieFiles.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
348
node_modules/@lottiefiles/lottie-player/README.md
generated
vendored
Normal file
348
node_modules/@lottiefiles/lottie-player/README.md
generated
vendored
Normal file
@@ -0,0 +1,348 @@
|
||||
## lottie-player Web Component
|
||||
|
||||
This is a Web Component for easily embedding and playing Lottie animations and the Lottie-based Telegram Sticker (tgs) animations in websites.
|
||||
|
||||
[](https://www.npmjs.com/package/@lottiefiles/lottie-player)
|
||||
[](https://www.webcomponents.org/element/@lottiefiles/lottie-player)
|
||||
|
||||
## Demo
|
||||
|
||||

|
||||
|
||||
[Basic usage examples](https://codesandbox.io/s/y2nxyvomyj)
|
||||
|
||||
## Documentation
|
||||
|
||||
For full documentation, visit [docs.lottiefiles.com/lottie-player](https://docs.lottiefiles.com/lottie-player/)
|
||||
|
||||
## Installation
|
||||
|
||||
#### In HTML, import from CDN or from the local Installation:
|
||||
|
||||
##### Lottie Player:
|
||||
|
||||
- Import from CDN.
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
|
||||
```
|
||||
|
||||
- Import from local node_modules directory.
|
||||
|
||||
```html
|
||||
<script src="/node_modules/@lottiefiles/lottie-player/dist/lottie-player.js"></script>
|
||||
```
|
||||
|
||||
##### Telegram Sticker (TGS) Player:
|
||||
|
||||
- Import from CDN.
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/tgs-player.js"></script>
|
||||
```
|
||||
|
||||
- Import from local node_modules directory.
|
||||
|
||||
```html
|
||||
<script src="/node_modules/@lottiefiles/lottie-player/dist/tgs-player.js"></script>
|
||||
```
|
||||
|
||||
#### In Javascript or TypeScript:
|
||||
|
||||
1. Install package using npm or yarn.
|
||||
|
||||
```shell
|
||||
npm install --save @lottiefiles/lottie-player
|
||||
```
|
||||
|
||||
2. Import package in your code.
|
||||
|
||||
```javascript
|
||||
import "@lottiefiles/lottie-player";
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Lottie-Player
|
||||
|
||||
Add the element `lottie-player` and set the `src` property to a URL pointing to a valid Bodymovin JSON.
|
||||
|
||||
```html
|
||||
<lottie-player
|
||||
autoplay
|
||||
controls
|
||||
loop
|
||||
mode="normal"
|
||||
src="https://assets3.lottiefiles.com/packages/lf20_UJNc2t.json"
|
||||
style="width: 320px"
|
||||
>
|
||||
</lottie-player>
|
||||
```
|
||||
|
||||
You may set and load animations programatically as well.
|
||||
|
||||
```html
|
||||
<lottie-player autoplay controls loop mode="normal" style="width: 320px">
|
||||
</lottie-player>
|
||||
```
|
||||
|
||||
```js
|
||||
const player = document.querySelector("lottie-player");
|
||||
player.addEventListener("rendered", (e) => {
|
||||
//Load via URL
|
||||
player.load("https://assets3.lottiefiles.com/packages/lf20_UJNc2t.json");
|
||||
// or load via a Bodymovin JSON string/object
|
||||
player.load(
|
||||
'{"v":"5.3.4","fr":30,"ip":0,"op":38,"w":315,"h":600,"nm":"new", ... }'
|
||||
);
|
||||
});
|
||||
```
|
||||
|
||||
### TGS-Player
|
||||
|
||||
Add the element `tgs-player` and set the `src` property to a URL pointing to a valid TGS JSON.
|
||||
|
||||
```html
|
||||
<tgs-player autoplay loop mode="normal" src="https//domain/example.tgs">
|
||||
</tgs-player>
|
||||
```
|
||||
|
||||
### ReactJS & VueJS
|
||||
|
||||
Import the player either as
|
||||
|
||||
```js
|
||||
import * as LottiePlayer from "@lottiefiles/lottie-player";
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```js
|
||||
require("@lottiefiles/lottie-player");
|
||||
```
|
||||
|
||||
Use as follows
|
||||
|
||||
```html
|
||||
<lottie-player
|
||||
autoplay
|
||||
controls
|
||||
loop
|
||||
mode="normal"
|
||||
src="https://assets3.lottiefiles.com/packages/lf20_UJNc2t.json"
|
||||
style="width: 320px"
|
||||
></lottie-player>
|
||||
```
|
||||
|
||||
### Typescript ReactJS
|
||||
|
||||
Import the player either as
|
||||
|
||||
```js
|
||||
import * as LottiePlayer from "@lottiefiles/lottie-player";
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```js
|
||||
require("@lottiefiles/lottie-player");
|
||||
```
|
||||
|
||||
Use as follows
|
||||
|
||||
```html
|
||||
<lottie-player
|
||||
autoplay
|
||||
controls
|
||||
loop
|
||||
mode="normal"
|
||||
src="https://assets3.lottiefiles.com/packages/lf20_UJNc2t.json"
|
||||
style="width: 320px"
|
||||
></lottie-player>
|
||||
```
|
||||
|
||||
For typescript projects an added step is required. The component must be declared as a JSX intrinsic element. Create a file 'declarations.d.ts' in the root of your project and add the code below to the file.
|
||||
|
||||
```js
|
||||
declare namespace JSX {
|
||||
interface IntrinsicElements {
|
||||
"lottie-player": any;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Nuxt 2
|
||||
|
||||
Create a `lottie-player.js` file inside the `/plugins` folder and add the below code to the file:
|
||||
|
||||
```js
|
||||
import * as LottiePlayer from "@lottiefiles/lottie-player";
|
||||
```
|
||||
\
|
||||
Open `nuxt.config.js` file and add the following entry to register the newly created plugin:
|
||||
|
||||
```js
|
||||
export default {
|
||||
plugins: [{ src: "~/plugins/lottie-player.js", mode: "client" }]
|
||||
}
|
||||
```
|
||||
|
||||
This is because the player script needs to be rendered on the browser/client side and we must configure Nuxt to load the script on the client side only.
|
||||
\
|
||||
You would then be able to use the player as follows inside any component:
|
||||
|
||||
```html
|
||||
<lottie-player
|
||||
autoplay
|
||||
controls
|
||||
loop
|
||||
style="width:400px"
|
||||
src="https://assets3.lottiefiles.com/packages/lf20_RItkEz.json"
|
||||
speed="1"
|
||||
debug
|
||||
/>
|
||||
```
|
||||
|
||||
### Nuxt 3
|
||||
|
||||
The process for Nuxt 3 is slightly different.
|
||||
Create a `lottie-player.client.ts` file inside the `/plugins` folder and add the below code to the file:
|
||||
|
||||
```js
|
||||
import * as LottiePlayer from "@lottiefiles/lottie-player";
|
||||
|
||||
export default defineNuxtPlugin(() => LottiePlayer);
|
||||
```
|
||||
\
|
||||
Your plugin will be automatically available throughout your Nuxt application thanks to the [plugin auto-registration](https://v3.nuxtjs.org/guide/directory-structure/plugins). Note the `client` suffix in the name of the plugin - this tells Nuxt to load it only on the client side, as the Lottie Player script can only be rendered in the browser.
|
||||
|
||||
You would then be able to use the player as follows inside any component:
|
||||
|
||||
```html
|
||||
<lottie-player
|
||||
autoplay
|
||||
controls
|
||||
loop
|
||||
style="width:400px"
|
||||
src="https://assets3.lottiefiles.com/packages/lf20_RItkEz.json"
|
||||
speed="1"
|
||||
debug
|
||||
/>
|
||||
```
|
||||
|
||||
### NextJS
|
||||
|
||||
The process to import in NextJS is similar to Nuxt in the sense that on SSR mode, the library must be declared as a client side module. To do this, import the library within a react useEffect hook.
|
||||
|
||||
```javascript
|
||||
import React, { useRef } from "react";
|
||||
|
||||
export default function Home() {
|
||||
const ref = useRef(null);
|
||||
React.useEffect(() => {
|
||||
import("@lottiefiles/lottie-player");
|
||||
});
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<main className={styles.main}>
|
||||
<lottie-player
|
||||
id="firstLottie"
|
||||
ref={ref}
|
||||
autoplay
|
||||
controls
|
||||
loop
|
||||
mode="normal"
|
||||
src="https://assets4.lottiefiles.com/packages/lf20_gb5bmwlm.json"
|
||||
style={{ width: "300px", height: "300px" }}
|
||||
></lottie-player>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
Do add a declaration file named declaration.d.ts to the root of the project as well
|
||||
|
||||
```javascript
|
||||
declare namespace JSX {
|
||||
interface IntrinsicElements {
|
||||
"lottie-player": any;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Full documentation on player properties, methods, events and styling for the Lottie-player are available [here](https://docs.lottiefiles.com/lottie-player).
|
||||
|
||||
## Community & Support
|
||||
|
||||
- [Github issues.](https://github.com/LottieFiles/lottie-player/issues) For bugs and errors you encounter using this player.
|
||||
- [Discord.](https://lottiefiles.com/discord) For hanging out with the community and sharing your awesome Lottie animations!
|
||||
|
||||
## Our other Lottie related libraries
|
||||
|
||||
<table style="table-layout:fixed; white-space: nowrap;">
|
||||
<tr>
|
||||
<th>Project</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
<!-- TEMPLATE FOR NEW ROW -->
|
||||
<!-- START ROW
|
||||
<tr>
|
||||
<td>lang</td>
|
||||
<td><a href="" target="_blank" rel="noopener noreferrer">supabase-lang</a></td>
|
||||
</tr>
|
||||
END ROW -->
|
||||
<tr>
|
||||
<td><a href="https://github.com/LottieFiles/lottie-react" target="_blank" rel="noopener noreferrer">lottie-react</a></td>
|
||||
<td>
|
||||
A React component for the Lottie Web player.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://github.com/LottieFiles/lottie-vue" target="_blank" rel="noopener noreferrer">lottie-vue</a></td>
|
||||
<td>
|
||||
A Vue component for the Lottie player.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://github.com/LottieFiles/svelte-lottie-player" target="_blank" rel="noopener noreferrer">svelte-lottie-player</a></td>
|
||||
<td>
|
||||
Lottie player component for use with Svelte.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://github.com/LottieFiles/jlottie" target="_blank" rel="noopener noreferrer">jLottie</a></td>
|
||||
<td>
|
||||
jLottie is suitable as a general purpose lottie player, though implements a subset of the features in the core player - this approach leads to a tiny footprint and great performance.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://github.com/LottieFiles/lottie-interactivity" target="_blank" rel="noopener noreferrer">lottie-interactivity</a></td>
|
||||
<td>
|
||||
This is a small library to add scrolling, cursor interactivity and interaction chaining to your Lottie Animations.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://github.com/orgs/dotlottie/repositories" target="_blank" rel="noopener noreferrer">dotLottie</a></td>
|
||||
<td>
|
||||
dotLottie is an open-source file format that aggregates one or more Lottie files and their associated resources into a single file. They are ZIP archives compressed with the Deflate compression method and carry the file extension of ".lottie".
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://github.com/LottieFiles/lottie-js" target="_blank" rel="noopener noreferrer">lottie-js</a></td>
|
||||
<td>
|
||||
The library consists of methods to map the Lottie JSON to the object model and interact with properties as well as manipulate them.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://github.com/LottieFiles/lottie-theming" target="_blank" rel="noopener noreferrer">lottie-theming</a></td>
|
||||
<td>
|
||||
A library to extract themable properties and apply different themes to a given Lottie
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
## License
|
||||
|
||||
MIT License © LottieFiles.com
|
233
node_modules/@lottiefiles/lottie-player/dist/lottie-player.d.ts
generated
vendored
Normal file
233
node_modules/@lottiefiles/lottie-player/dist/lottie-player.d.ts
generated
vendored
Normal file
@@ -0,0 +1,233 @@
|
||||
import { LitElement } from "lit";
|
||||
import { TemplateResult } from "lit/html.js";
|
||||
export declare enum PlayerState {
|
||||
Destroyed = "destroyed",
|
||||
Error = "error",
|
||||
Frozen = "frozen",
|
||||
Loading = "loading",
|
||||
Paused = "paused",
|
||||
Playing = "playing",
|
||||
Stopped = "stopped"
|
||||
}
|
||||
export declare enum PlayMode {
|
||||
Bounce = "bounce",
|
||||
Normal = "normal"
|
||||
}
|
||||
export declare enum PlayerEvents {
|
||||
Complete = "complete",
|
||||
Destroyed = "destroyed",
|
||||
Error = "error",
|
||||
Frame = "frame",
|
||||
Freeze = "freeze",
|
||||
Load = "load",
|
||||
Loop = "loop",
|
||||
Pause = "pause",
|
||||
Play = "play",
|
||||
Ready = "ready",
|
||||
Rendered = "rendered",
|
||||
Stop = "stop"
|
||||
}
|
||||
export interface Versions {
|
||||
lottiePlayerVersion: string;
|
||||
lottieWebVersion: string;
|
||||
}
|
||||
/**
|
||||
* Parse a resource into a JSON object or a URL string
|
||||
*/
|
||||
export declare function parseSrc(src: string | object): string | object;
|
||||
/**
|
||||
* LottiePlayer web component class
|
||||
*
|
||||
* @export
|
||||
* @class LottiePlayer
|
||||
* @extends {LitElement}
|
||||
*/
|
||||
export declare class LottiePlayer extends LitElement {
|
||||
/**
|
||||
* Autoplay animation on load.
|
||||
*/
|
||||
autoplay: boolean;
|
||||
/**
|
||||
* Background color.
|
||||
*/
|
||||
background?: string;
|
||||
/**
|
||||
* Show controls.
|
||||
*/
|
||||
controls: boolean;
|
||||
/**
|
||||
* Number of times to loop animation.
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* Player state.
|
||||
*/
|
||||
currentState: PlayerState;
|
||||
/**
|
||||
* Animation description for screen readers.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Direction of animation.
|
||||
*/
|
||||
direction: number;
|
||||
/**
|
||||
* Disable checking if the Lottie is valid before loading
|
||||
*/
|
||||
disableCheck?: boolean;
|
||||
/**
|
||||
* Disable using shadow dom as the root
|
||||
*/
|
||||
disableShadowDOM: boolean;
|
||||
/**
|
||||
* Whether to play on mouse hover
|
||||
*/
|
||||
hover: boolean;
|
||||
/**
|
||||
* Intermission
|
||||
*/
|
||||
intermission: number;
|
||||
/**
|
||||
* Whether to loop animation.
|
||||
*/
|
||||
loop: boolean;
|
||||
/**
|
||||
* Play mode.
|
||||
*/
|
||||
mode: PlayMode;
|
||||
/**
|
||||
* Aspect ratio to pass to lottie-web.
|
||||
*/
|
||||
preserveAspectRatio: string;
|
||||
/**
|
||||
* Renderer to use.
|
||||
*/
|
||||
renderer: "svg";
|
||||
/**
|
||||
* Viewbox size for renderer settings
|
||||
*/
|
||||
viewBoxSize?: string;
|
||||
/**
|
||||
* seeker
|
||||
*/
|
||||
seeker: any;
|
||||
/**
|
||||
* Animation speed.
|
||||
*/
|
||||
speed: number;
|
||||
/**
|
||||
* Bodymovin JSON data or URL to JSON.
|
||||
*/
|
||||
src?: string;
|
||||
/**
|
||||
* Enable web workers
|
||||
*/
|
||||
webworkers?: boolean;
|
||||
/**
|
||||
* Animation container.
|
||||
*/
|
||||
protected container: HTMLElement;
|
||||
private _io;
|
||||
private _lottie?;
|
||||
private _prevState?;
|
||||
private _counter;
|
||||
/**
|
||||
* Configure and initialize lottie-web player instance.
|
||||
*/
|
||||
load(src: string | object): Promise<void>;
|
||||
/**
|
||||
* Returns the lottie-web instance used in the component.
|
||||
*/
|
||||
getLottie(): any;
|
||||
/**
|
||||
* Returns the lottie-web version and this player's version
|
||||
*/
|
||||
getVersions(): Versions;
|
||||
/**
|
||||
* Start playing animation.
|
||||
*/
|
||||
play(): void;
|
||||
/**
|
||||
* Pause animation play.
|
||||
*/
|
||||
pause(): void;
|
||||
/**
|
||||
* Stops animation play.
|
||||
*/
|
||||
stop(): void;
|
||||
/**
|
||||
* Destroy animation and lottie-player element.
|
||||
*/
|
||||
destroy(): void;
|
||||
/**
|
||||
* Seek to a given frame.
|
||||
*/
|
||||
seek(value: number | string): void;
|
||||
/**
|
||||
* Snapshot the current frame as SVG.
|
||||
*
|
||||
* If 'download' argument is boolean true, then a download is triggered in browser.
|
||||
*/
|
||||
snapshot(download?: boolean): string | void;
|
||||
/**
|
||||
* Sets animation play speed.
|
||||
*
|
||||
* @param value Playback speed.
|
||||
*/
|
||||
setSpeed(value?: number): void;
|
||||
/**
|
||||
* Animation play direction.
|
||||
*
|
||||
* @param value Direction values.
|
||||
*/
|
||||
setDirection(value: number): void;
|
||||
/**
|
||||
* Sets the looping of the animation.
|
||||
*
|
||||
* @param value Whether to enable looping. Boolean true enables looping.
|
||||
*/
|
||||
setLooping(value: boolean): void;
|
||||
/**
|
||||
* Toggle playing state.
|
||||
*/
|
||||
togglePlay(): void;
|
||||
/**
|
||||
* Toggles animation looping.
|
||||
*/
|
||||
toggleLooping(): void;
|
||||
/**
|
||||
* Resize animation.
|
||||
*/
|
||||
resize(): void;
|
||||
/**
|
||||
* Returns the styles for the component.
|
||||
*/
|
||||
static get styles(): import("lit").CSSResult;
|
||||
/**
|
||||
* Cleanup on component destroy.
|
||||
*/
|
||||
disconnectedCallback(): void;
|
||||
render(): TemplateResult | void;
|
||||
protected createRenderRoot(): Element | ShadowRoot;
|
||||
/**
|
||||
* Initialize everything on component first render.
|
||||
*/
|
||||
protected firstUpdated(): void;
|
||||
protected renderControls(): TemplateResult;
|
||||
/**
|
||||
* Handle visibility change events.
|
||||
*/
|
||||
private readonly _onVisibilityChange;
|
||||
/**
|
||||
* Handles click and drag actions on the progress track.
|
||||
*/
|
||||
private _handleSeekChange;
|
||||
private _attachEventListeners;
|
||||
/**
|
||||
* Freeze animation play.
|
||||
* This internal state pauses animation and is used to differentiate between
|
||||
* user requested pauses and component instigated pauses.
|
||||
*/
|
||||
private freeze;
|
||||
}
|
||||
//# sourceMappingURL=lottie-player.d.ts.map
|
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.d.ts.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"lottie-player.d.ts","sourceRoot":"","sources":["../src/lottie-player.ts"],"names":[],"mappings":"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"}
|
77
node_modules/@lottiefiles/lottie-player/dist/lottie-player.esm.js
generated
vendored
Normal file
77
node_modules/@lottiefiles/lottie-player/dist/lottie-player.esm.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.esm.js.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.esm.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
77
node_modules/@lottiefiles/lottie-player/dist/lottie-player.js
generated
vendored
Normal file
77
node_modules/@lottiefiles/lottie-player/dist/lottie-player.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.js.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
node_modules/@lottiefiles/lottie-player/dist/lottie-player.styles.d.ts
generated
vendored
Normal file
6
node_modules/@lottiefiles/lottie-player/dist/lottie-player.styles.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Copyright 2021 Design Barn Inc.
|
||||
*/
|
||||
declare const _default: import("lit").CSSResult;
|
||||
export default _default;
|
||||
//# sourceMappingURL=lottie-player.styles.d.ts.map
|
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.styles.d.ts.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.styles.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"lottie-player.styles.d.ts","sourceRoot":"","sources":["../src/lottie-player.styles.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAIH,wBA6JE"}
|
29
node_modules/@lottiefiles/lottie-player/dist/tgs-player.d.ts
generated
vendored
Normal file
29
node_modules/@lottiefiles/lottie-player/dist/tgs-player.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Copyright 2022 Design Barn Inc.
|
||||
*/
|
||||
import { LottiePlayer } from "./lottie-player";
|
||||
/**
|
||||
* TGSPlayer web component class
|
||||
*
|
||||
* @export
|
||||
* @class TGSPlayer
|
||||
* @extends {LottiePlayer}
|
||||
*/
|
||||
export declare class TGSPlayer extends LottiePlayer {
|
||||
/**
|
||||
* Strict format checks for TGS.
|
||||
*/
|
||||
strict: boolean;
|
||||
/**
|
||||
* Configure and initialize lottie-web player instance.
|
||||
*/
|
||||
load(src: string | object): Promise<void>;
|
||||
/**
|
||||
* Returns the styles for the component.
|
||||
*/
|
||||
static get styles(): import("lit").CSSResult;
|
||||
protected formatCheck(data: any): string[];
|
||||
private checkLayer;
|
||||
private checkItems;
|
||||
}
|
||||
//# sourceMappingURL=tgs-player.d.ts.map
|
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.d.ts.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"tgs-player.d.ts","sourceRoot":"","sources":["../src/tgs-player.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAE,YAAY,EAA0B,MAAM,iBAAiB,CAAC;AAyCvE;;;;;;GAMG;AACH,qBACa,SAAU,SAAQ,YAAY;IACzC;;OAEG;IAEI,MAAM,UAAQ;IAErB;;OAEG;IACU,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA4BtD;;OAEG;IACH,MAAM,KAAK,MAAM,4BAEhB;IAED,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,EAAE;IAoC1C,OAAO,CAAC,UAAU;IAgDlB,OAAO,CAAC,UAAU;CA6BnB"}
|
54
node_modules/@lottiefiles/lottie-player/dist/tgs-player.esm.js
generated
vendored
Normal file
54
node_modules/@lottiefiles/lottie-player/dist/tgs-player.esm.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.esm.js.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.esm.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
54
node_modules/@lottiefiles/lottie-player/dist/tgs-player.js
generated
vendored
Normal file
54
node_modules/@lottiefiles/lottie-player/dist/tgs-player.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.js.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
node_modules/@lottiefiles/lottie-player/dist/tgs-player.styles.d.ts
generated
vendored
Normal file
6
node_modules/@lottiefiles/lottie-player/dist/tgs-player.styles.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Copyright 2022 Design Barn Inc.
|
||||
*/
|
||||
declare const _default: import("lit-element").CSSResult;
|
||||
export default _default;
|
||||
//# sourceMappingURL=tgs-player.styles.d.ts.map
|
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.styles.d.ts.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.styles.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"tgs-player.styles.d.ts","sourceRoot":"","sources":["../src/tgs-player.styles.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAMH,wBAOE"}
|
125
node_modules/@lottiefiles/lottie-player/package.json
generated
vendored
Normal file
125
node_modules/@lottiefiles/lottie-player/package.json
generated
vendored
Normal file
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"name": "@lottiefiles/lottie-player",
|
||||
"version": "2.0.12",
|
||||
"description": "Lottie animation and Telegram Sticker player web components.",
|
||||
"main": "dist/lottie-player.js",
|
||||
"module": "dist/lottie-player.esm.js",
|
||||
"types": "dist/lottie-player.d.ts",
|
||||
"homepage": "https://lottiefiles.com/web-player",
|
||||
"repository": "https://github.com/LottieFiles/lottie-player.git",
|
||||
"bugs": "https://github.com/LottieFiles/lottie-player/issues",
|
||||
"author": "Jawish Hameed <jawish@lottiefiles.com>",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"start": "npm run cleanup && rollup -c --watch",
|
||||
"build": "npm run cleanup && npm run build-lottie && npm run build-tgs",
|
||||
"build-with-coverage": "npm run cleanup && CODE_COVERAGE=true npm run build-lottie && CODE_COVERAGE=true npm run build-tgs",
|
||||
"build-lottie": "rollup -c ",
|
||||
"build-tgs": "rollup -c rollup-tgs.config.js",
|
||||
"watch-lottie": "npm run cleanup && rollup -c --watch",
|
||||
"watch-tgs": "npm run cleanup && rollup -c rollup-tgs.config.js --watch",
|
||||
"cleanup": "shx rm -rf dist && shx mkdir dist",
|
||||
"release": "semantic-release",
|
||||
"lint": "eslint . --ext .ts,.tsx,.js",
|
||||
"lint:fix": "eslint . --ext .ts,.tsx,.js --fix",
|
||||
"serve": "node ./cypress/pages/server.js -p 8000 &",
|
||||
"start-cypress": "yarn run cypress run && npx nyc report --reporter=text-summary",
|
||||
"run-tests": "yarn run build-with-coverage && yarn run serve && yarn run start-cypress",
|
||||
"postrun-tests": "kill $(lsof -t -i:8000)"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/pako": "^1.0.1",
|
||||
"lit": "^2.1.2",
|
||||
"lottie-web": "^5.12.2",
|
||||
"pako": "^2.0.4",
|
||||
"resize-observer-polyfill": "^1.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.11.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
||||
"@babel/plugin-proposal-decorators": "^7.10.5",
|
||||
"@babel/preset-env": "^7.11.0",
|
||||
"@babel/preset-typescript": "^7.10.4",
|
||||
"@commitlint/cli": "^16.1.0",
|
||||
"@commitlint/config-conventional": "^16.0.0",
|
||||
"@cypress/code-coverage": "^3.9.12",
|
||||
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
||||
"@rollup/plugin-babel": "^5.1.0",
|
||||
"@rollup/plugin-commonjs": "^21.0.1",
|
||||
"@rollup/plugin-json": "^6.1.0",
|
||||
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||
"@semantic-release/changelog": "^6.0.1",
|
||||
"@semantic-release/commit-analyzer": "^9.0.2",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"@semantic-release/github": "^8.0.2",
|
||||
"@semantic-release/npm": "^9.0.0",
|
||||
"@semantic-release/release-notes-generator": "^10.0.3",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"babel-plugin-istanbul": "^6.1.1",
|
||||
"cypress": "^9.2.1",
|
||||
"cypress-real-events": "^1.6.0",
|
||||
"eslint": "^7.27.0",
|
||||
"eslint-plugin-only-warn": "^1.0.2",
|
||||
"fastify": "^3.25.3",
|
||||
"fastify-static": "^4.5.0",
|
||||
"husky": ">=4",
|
||||
"lerna": "^4.0.0",
|
||||
"lint-staged": "^12.3.2",
|
||||
"parcel-bundler": "^1.12.4",
|
||||
"prettier": "^2.3.0",
|
||||
"rollup": "^2.23.0",
|
||||
"rollup-plugin-copy": "^3.3.0",
|
||||
"rollup-plugin-filesize": "^9.0.2",
|
||||
"rollup-plugin-serve": "^1.0.3",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"rollup-plugin-typescript2": "^0.31.1",
|
||||
"rollup-plugin-uglify": "^6.0.4",
|
||||
"rollup-plugin-visualizer": "^5.5.4",
|
||||
"semantic-release": "^19.0.2",
|
||||
"shx": "^0.3.4",
|
||||
"source-map-support": "^0.5.21",
|
||||
"ts-node": "^10.4.0",
|
||||
"typescript": "^4.5.5",
|
||||
"unicode-canonical-property-names-ecmascript": "^2.0.0"
|
||||
},
|
||||
"files": [
|
||||
"dist/"
|
||||
],
|
||||
"keywords": [
|
||||
"lottie",
|
||||
"animation",
|
||||
"lottiefiles",
|
||||
"web component",
|
||||
"component",
|
||||
"lit-element",
|
||||
"player",
|
||||
"telegram sticker",
|
||||
"tgs"
|
||||
],
|
||||
"browserslist": [
|
||||
"> 3%"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"provenance": true
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"src/**/*.{css,scss,md}": [
|
||||
"prettier --write"
|
||||
],
|
||||
"src/**/*.{js,jsx,ts,tsx,json}": [
|
||||
"eslint . --ext .ts,.tsx,.js --fix"
|
||||
]
|
||||
},
|
||||
"nyc": {
|
||||
"extends": "@istanbuljs/nyc-config-typescript",
|
||||
"all": true
|
||||
},
|
||||
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
|
||||
}
|
Reference in New Issue
Block a user