Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: LottieFiles/dotlottie-web
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @lottiefiles/[email protected]
Choose a base ref
...
head repository: LottieFiles/dotlottie-web
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Nov 20, 2024

  1. Copy the full SHA
    0d65643 View commit details
  2. chore: 🤖 update versions (#405)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Nov 20, 2024
    Copy the full SHA
    5c46ed5 View commit details
  3. Copy the full SHA
    ae0fbe7 View commit details

Commits on Nov 22, 2024

  1. Copy the full SHA
    66f7ef4 View commit details

Commits on Nov 26, 2024

  1. chore: update dotlottie-rs wasm bindings and prevent unnecessary mult…

    …iple WASM module fetches (#412)
    theashraf authored Nov 26, 2024
    Copy the full SHA
    4be7253 View commit details

Commits on Nov 27, 2024

  1. chore: update versions (#413)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Nov 27, 2024
    Copy the full SHA
    806a488 View commit details

Commits on Nov 28, 2024

  1. Copy the full SHA
    30ff412 View commit details

Commits on Nov 29, 2024

  1. Copy the full SHA
    898084e View commit details
  2. Copy the full SHA
    fb3ba0f View commit details

Commits on Dec 2, 2024

  1. Copy the full SHA
    de079cc View commit details
  2. chore: 🤖 update versions (#415)

    * chore: 🤖 update versions
    
    * run ci
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    3 people authored Dec 2, 2024
    Copy the full SHA
    9f8973d View commit details
  3. refactor(solid): remove preset and simplify tsup configuration (#373)

    ---------
    
    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    moonlitgrace and theashraf authored Dec 2, 2024
    Copy the full SHA
    7c8dfe3 View commit details

Commits on Dec 6, 2024

  1. feat(wc): add dotlottie-worker-wc component (#418)

    * feat(wc):  dotlottie-worker-wc component
    theashraf authored Dec 6, 2024
    Copy the full SHA
    5df9a6e View commit details
  2. chore: 🤖 update versions (#422)

    * chore: 🤖 update versions
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    3 people authored Dec 6, 2024
    Copy the full SHA
    8fe0256 View commit details

Commits on Dec 9, 2024

  1. Copy the full SHA
    fa72f98 View commit details

Commits on Dec 10, 2024

  1. chore: 🤖 update versions (#425)

    * chore: 🤖 update versions
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    3 people authored Dec 10, 2024
    Copy the full SHA
    0a985a0 View commit details

Commits on Dec 12, 2024

  1. Copy the full SHA
    003e7b1 View commit details

Commits on Dec 16, 2024

  1. Copy the full SHA
    2c48dbf View commit details

Commits on Dec 17, 2024

  1. feat(viewer): add a checkbox for enabling/disabling dotLottie frame i…

    …nterpolation in perf-test page (#430)
    theashraf authored Dec 17, 2024
    Copy the full SHA
    ed7f0f7 View commit details
  2. chore: 🤖 update versions (#428)

    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    github-actions[bot] and theashraf authored Dec 17, 2024
    Copy the full SHA
    fad1e71 View commit details

Commits on Dec 18, 2024

  1. Copy the full SHA
    c388ed6 View commit details

Commits on Jan 2, 2025

  1. Fix wrong description of autoResizeCanvas in README (#436)

    Fixes #435
    
    Update the description of `autoResizeCanvas` in `packages/react/README.md` to reflect its move to `renderConfig.autoResize`.
    
    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    davidarny and theashraf authored Jan 2, 2025
    Copy the full SHA
    49b1bf5 View commit details

Commits on Jan 3, 2025

  1. Copy the full SHA
    8ef9888 View commit details
  2. Copy the full SHA
    1ee4ce9 View commit details
  3. chore: 🤖 update versions (#437)

    * chore: 🤖 update versions
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    3 people authored Jan 3, 2025
    Copy the full SHA
    5cc6246 View commit details

Commits on Jan 20, 2025

  1. Copy the full SHA
    9d67d22 View commit details

Commits on Jan 24, 2025

  1. Copy the full SHA
    a68c984 View commit details
  2. chore: 🤖 update versions (#446)

    * chore: 🤖 update versions
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    3 people authored Jan 24, 2025
    Copy the full SHA
    7e67a20 View commit details

Commits on Jan 27, 2025

  1. fix(web): 🐛 fail to resize when canvas element is hidden (#454)

    * fix(web): 🐛 fail to resize when canvas element is hidden
    theashraf authored Jan 27, 2025
    Copy the full SHA
    5b6ec2f View commit details
  2. chore: update versions (#455)

    * chore: update versions
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    3 people authored Jan 27, 2025
    Copy the full SHA
    84f313d View commit details

Commits on Feb 7, 2025

  1. Copy the full SHA
    1c925ce View commit details

Commits on Feb 10, 2025

  1. chore: 🤖 update versions (#470)

    * chore: 🤖 update versions
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    3 people authored Feb 10, 2025
    Copy the full SHA
    c05e075 View commit details

Commits on Mar 5, 2025

  1. fix: 🐛 resolve loop event regression and ensure proper triggering in …

    …DotLottie and DotLottieWorker (#487)
    theashraf authored Mar 5, 2025
    Copy the full SHA
    7e6b460 View commit details

Commits on Mar 7, 2025

  1. chore: update versions (#489)

    * chore: update versions
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Abdelrahman Ashraf <a.theashraf@gmail.com>
    3 people authored Mar 7, 2025
    Copy the full SHA
    0d1bc17 View commit details
  2. Copy the full SHA
    956eedb View commit details

Commits on Mar 8, 2025

  1. chore: 🤖 update versions (#491)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Mar 8, 2025
    Copy the full SHA
    cd189d4 View commit details
Showing with 13,700 additions and 6,421 deletions.
  1. +71 −33 .github/workflows/main.yml
  2. +55 −11 apps/dotlottie-next-example/src/pages/index.tsx
  3. +1 −2 apps/dotlottie-react-example/src/App.tsx
  4. BIN apps/dotlottie-viewer/public/lf_interactivity_page.lottie
  5. BIN apps/dotlottie-viewer/public/marker-example.lottie
  6. BIN apps/dotlottie-viewer/public/theming_example.lottie
  7. +7 −3 apps/dotlottie-viewer/src/components/animation-list.tsx
  8. +0 −14 apps/dotlottie-viewer/src/components/dotlottie-new.tsx
  9. +1 −10 apps/dotlottie-viewer/src/components/load-time.tsx
  10. +49 −94 apps/dotlottie-viewer/src/components/players.tsx
  11. +1 −1 apps/dotlottie-viewer/src/pages/home.tsx
  12. +37 −2 apps/dotlottie-viewer/src/pages/perf.tsx
  13. +9 −8 apps/dotlottie-wc-example/src/main.ts
  14. BIN apps/dotlottie-web-example/public/multi_themes.lottie
  15. BIN apps/dotlottie-web-example/public/theming_example.lottie
  16. +22 −20 apps/dotlottie-web-example/src/main.ts
  17. +3 −2 package.json
  18. +156 −0 packages/react/CHANGELOG.md
  19. +1 −1 packages/react/README.md
  20. +17 −9 packages/react/package.json
  21. +8 −0 packages/react/setup-file.ts
  22. +254 −0 packages/react/src/base-dotlottie-react.tsx
  23. +8 −62 packages/react/src/dotlottie-worker.tsx
  24. +9 −59 packages/react/src/dotlottie.tsx
  25. +2 −2 packages/react/src/index.ts
  26. +0 −264 packages/react/src/use-dotlottie-worker.tsx
  27. +0 −263 packages/react/src/use-dotlottie.tsx
  28. +0 −20 packages/react/src/use-stable-callback.tsx
  29. +3,263 −0 packages/react/tests/__fixtures__/test.json
  30. BIN packages/react/tests/__fixtures__/test.lottie
  31. +25 −0 packages/react/tests/__snapshots__/dotlottie-react.spec.tsx.snap
  32. +770 −0 packages/react/tests/dotlottie-react.spec.tsx
  33. +1 −1 packages/react/tsconfig.build.json
  34. +1 −1 packages/react/tsconfig.json
  35. +17 −7 packages/react/tsup.config.cjs
  36. +29 −0 packages/react/vitest.config.ts
  37. +137 −0 packages/solid/CHANGELOG.md
  38. +3 −10 packages/solid/package.json
  39. +2 −2 packages/solid/src/use-dotlottie.tsx
  40. +10 −0 packages/solid/tsconfig.build.json
  41. +10 −28 packages/solid/tsup.config.ts
  42. +131 −0 packages/svelte/CHANGELOG.md
  43. +1 −1 packages/svelte/package.json
  44. +2 −2 packages/svelte/src/lib/Dotlottie.svelte
  45. +131 −0 packages/vue/CHANGELOG.md
  46. +1 −1 packages/vue/package.json
  47. +2 −2 packages/vue/src/dotlottie.ts
  48. +144 −0 packages/wc/CHANGELOG.md
  49. +3,263 −0 packages/wc/__tests__/__fixtures__/test.json
  50. BIN packages/wc/__tests__/__fixtures__/test.lottie
  51. +501 −0 packages/wc/__tests__/dotlottie-wc.spec.ts
  52. +6 −1 packages/wc/example.html
  53. +11 −4 packages/wc/package.json
  54. +206 −0 packages/wc/src/abstract-dotlottie-wc.ts
  55. +7 −112 packages/wc/src/dotlottie-wc.ts
  56. +13 −0 packages/wc/src/dotlottie-worker-wc.ts
  57. +9 −0 packages/wc/src/index.ts
  58. +2 −1 packages/wc/tsconfig.build.json
  59. +2 −1 packages/wc/tsconfig.json
  60. +24 −0 packages/wc/vitest.config.ts
  61. +122 −0 packages/web/CHANGELOG.md
  62. +1 −1 packages/web/README.md
  63. +1 −1 packages/web/download_wasm_bindings.sh
  64. +4 −4 packages/web/package.json
  65. +609 −670 packages/web/src/core/dotlottie-player.js
  66. +7 −3 packages/web/src/core/dotlottie-player.types.ts
  67. BIN packages/web/src/core/dotlottie-player.wasm
  68. +2 −0 packages/web/src/core/dotlottie-wasm-loader.ts
  69. +55 −30 packages/web/src/dotlottie.ts
  70. +8 −19 packages/web/src/types.ts
  71. +32 −12 packages/web/src/worker/dotlottie.ts
  72. +5 −4 packages/web/src/worker/dotlottie.worker.ts
  73. +10 −10 packages/web/src/worker/types.ts
  74. BIN packages/web/tests/__fixtures__/test.lottie
  75. +0 −2,145 packages/web/tests/dotlottie-worker.test.ts
  76. +1,604 −1,535 packages/web/tests/dotlottie.test.ts
  77. +4 −4 packages/web/vitest.config.ts
  78. +1,801 −929 pnpm-lock.yaml
104 changes: 71 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -2,16 +2,17 @@ name: main
on:
push:
branches:
- 'main'
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.0

- name: ⬇️ Checkout repo
uses: actions/checkout@v4

@@ -21,6 +22,7 @@ jobs:
- name: ⎔ Setup Node@v20
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 20

- name: 📥 Download deps
@@ -40,18 +42,33 @@ jobs:

- name: 🛡️ Test
run: |
npx playwright install --with-deps
npx playwright install --with-deps chromium
pnpm test:coverage
working-directory: packages/web
- name: 📏 Report coverage
- name: 📏 Report coverage (web)
if: always() && github.event_name == 'pull_request'
uses: davelosert/vitest-coverage-report-action@v2.1.1
uses: davelosert/vitest-coverage-report-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: packages/web
name: '@lottiefiles/dotlottie-web'

- name: 📏 Report coverage (react)
if: always() && github.event_name == 'pull_request'
uses: davelosert/vitest-coverage-report-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: packages/react
name: '@lottiefiles/dotlottie-react'

- name: 📏 Report coverage (wc)
if: always() && github.event_name == 'pull_request'
uses: davelosert/vitest-coverage-report-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: packages/wc
name: '@lottiefiles/dotlottie-wc'

- name: 📏 Report bundle size
if: github.event_name == 'pull_request'
uses: andresz1/size-limit-action@v1
@@ -66,9 +83,15 @@ jobs:
if: ${{ github.repository == 'LottieFiles/dotlottie-web' && github.event_name == 'push' }}

permissions:
contents: read
id-token: write # Required for provenance
packages: write # Required for publishing
# Allow creating a release in the repository
contents: write

# Required for provenance
id-token: write
packages: write

# Required for creating a release PR
pull-requests: write

steps:
- name: ⬇️ Checkout repo
@@ -84,19 +107,14 @@ jobs:
- name: ⎔ Setup Node@v20
uses: actions/setup-node@v4
with:
cache: 'pnpm'
cache: pnpm
node-version: 20
registry-url: 'https://registry.npmjs.org'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}

- name: ⎔ Setup .npmrc (NPM)
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPMJS_TOKEN }}" >> ~/.npmrc
registry-url: https://registry.npmjs.org

- name: 📥 Install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}

- name: 🚀 Release to NPM
uses: changesets/action@v1
@@ -105,10 +123,10 @@ jobs:
title: 'chore: 🤖 update versions'
publish: pnpm release:publish
version: pnpm release:version
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GPR_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}

- name: Remove existing NPM .npmrc
run: rm -f "$HOME/.npmrc"
@@ -119,6 +137,17 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.repository == 'LottieFiles/dotlottie-web' && github.event_name == 'push' }}

permissions:
# Allow creating a release in the repository
contents: write

# Required for provenance
id-token: write
packages: write

# Required for creating a release PR
pull-requests: write

steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
@@ -131,14 +160,14 @@ jobs:
- name: ⎔ Setup Node@v20
uses: actions/setup-node@v4
with:
cache: 'pnpm'
cache: pnpm
node-version: 20
registry-url: 'https://npm.pkg.github.com/'
registry-url: https://npm.pkg.github.com/

- name: 📥 Install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 🚀 Release to Github Packages
uses: changesets/action@v1
@@ -147,10 +176,10 @@ jobs:
title: 'chore: update versions'
publish: pnpm release:publish
version: pnpm release:version
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets. NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jsr-release:
name: jsr-release
@@ -189,7 +218,14 @@ jobs:
name: publish-viewer
needs: validate
runs-on: ubuntu-latest
if: ${{ github.repository == 'LottieFiles/dotlottie-web' && github.event_name == 'push' }}
if:
${{ github.repository == 'LottieFiles/dotlottie-web' && github.event_name == 'push' && github.ref ==
'refs/heads/main' }}

permissions:
contents: write
pages: write

steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
@@ -202,21 +238,23 @@ jobs:
- name: ⎔ Setup Node@v20
uses: actions/setup-node@v4
with:
cache: 'pnpm'
cache: pnpm
node-version: 20
registry-url: 'https://npm.pkg.github.com/'
registry-url: https://npm.pkg.github.com/

- name: 📥 Install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 🏗 Build
run: pnpm build
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 🌐Publish
- name: 🌐 Publish
if: success()
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/dotlottie-viewer/dist
66 changes: 55 additions & 11 deletions apps/dotlottie-next-example/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { DotLottie, DotLottieWorker } from '@lottiefiles/dotlottie-react';
import { DotLottieReact } from '@lottiefiles/dotlottie-react';
import { Inter } from 'next/font/google';
import Head from 'next/head';
import { useState } from 'react';

import styles from '@/styles/Home.module.css';

@@ -9,6 +11,9 @@ const inter = Inter({ subsets: ['latin'] });
const src = 'https://lottie.host/e641272e-039b-4612-96de-138acfbede6e/bc0sW78EeR.lottie';

export default function Home(): JSX.Element {
const [dotLottie, setDotLottie] = useState<DotLottie | DotLottieWorker | null>(null);
const [showDotLottie, setShowDotLottie] = useState(false);

return (
<>
<Head>
@@ -18,17 +23,56 @@ export default function Home(): JSX.Element {
<link rel="icon" href="/favicon.ico" />
</Head>
<main className={`${styles.main} ${inter.className}`}>
<DotLottieReact
style={{
minWidth: '100px',
}}
src={src}
loop
autoplay
renderConfig={{
autoResize: true,
}}
/>
{showDotLottie && (
<DotLottieReact
dotLottieRefCallback={setDotLottie}
style={{
minWidth: '100px',
}}
src={src}
loop
autoplay
renderConfig={{
autoResize: true,
}}
/>
)}
<div>
<button
onClick={(): void => {
setShowDotLottie(!showDotLottie);
}}
>
{showDotLottie ? 'Hide' : 'Show'}
</button>
<button
onClick={(): void => {
if (dotLottie) {
dotLottie.play();
}
}}
>
Play
</button>
<button
onClick={(): void => {
if (dotLottie) {
dotLottie.pause();
}
}}
>
Pause
</button>
<button
onClick={(): void => {
if (dotLottie) {
dotLottie.stop();
}
}}
>
Stop
</button>
</div>
</main>
</>
);
3 changes: 1 addition & 2 deletions apps/dotlottie-react-example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// import { DotLottieReact, DotLottie, setWasmUrl } from '@lottiefiles/dotlottie-react';
import { DotLottieWorkerReact, DotLottieWorker, setWasmUrl } from '@lottiefiles/dotlottie-react';
import wasmUrl from '../../../packages/web/src/core/dotlottie-player.wasm?url';
import React, { useState } from 'react';

const animations = [
@@ -11,7 +10,7 @@ const animations = [
'./dragon.json',
];

setWasmUrl(wasmUrl);
setWasmUrl(new URL('../../../packages/web/src/core/dotlottie-player.wasm', import.meta.url).href);

function App() {
const [dotLottie, setDotLottie] = useState<DotLottieWorker | null>(null);
Binary file not shown.
Binary file removed apps/dotlottie-viewer/public/marker-example.lottie
Binary file not shown.
Binary file removed apps/dotlottie-viewer/public/theming_example.lottie
Binary file not shown.
10 changes: 7 additions & 3 deletions apps/dotlottie-viewer/src/components/animation-list.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { useAppDispatch } from '../store/hooks';
import { setSrc } from '../store/viewer-slice';
import { DotLottiePlayer } from '@dotlottie/react-player';
import { DotLottieWorkerReact } from '@lottiefiles/dotlottie-react';

interface ListItemProps {
name: string;
url: string;
}

function ListItem(props: ListItemProps) {
const dispatch = useAppDispatch();
return (
@@ -16,7 +17,7 @@ function ListItem(props: ListItemProps) {
className="rounded-lg bg-white border border-transparent hover:border-lottie"
>
<div>
<DotLottiePlayer style={{ height: '120px' }} src={props.url} autoplay loop />
<DotLottieWorkerReact style={{ height: '120px' }} src={props.url} autoplay loop />
</div>
<div className="text-xs py-1 bg-strong rounded-b-lg">{props.name}</div>
</button>
@@ -33,7 +34,10 @@ const AnimationList: React.FC<AnimationListProps> = ({ className = '', ...props
name="multi-animations"
url="https://lottie.host/294b684d-d6b4-4116-ab35-85ef566d4379/VkGHcqcMUI.lottie"
/>
<ListItem name="theming example" url={`${import.meta.env.BASE_URL}theming_example.lottie`} />
<ListItem
name="theming example"
url="https://lottie.host/884c11a9-e648-4b2f-9906-2c77279710b1/PalAqPKzRZ.lottie"
/>
<ListItem
name="marker example"
url={`https://lottie.host/a04c548c-307f-420b-9ba8-e90a4a2efea4/MT9OsNynSw.lottie`}
14 changes: 0 additions & 14 deletions apps/dotlottie-viewer/src/components/dotlottie-new.tsx

This file was deleted.

11 changes: 1 addition & 10 deletions apps/dotlottie-viewer/src/components/load-time.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
interface LoadTimeProps extends React.HTMLAttributes<HTMLDivElement> {
className?: string;
loadTime: number;
title: string;
rendererVersion: string;
version: string;
}

const LoadTime: React.FC<LoadTimeProps> = ({ className = '', title, version, rendererVersion, loadTime, ...props }) => {
const LoadTime: React.FC<LoadTimeProps> = ({ className = '', title, version, ...props }) => {
return (
<div className={`flex flex-col items-center ${className}`} {...props}>
<div className="flex items-start">
<h6 className="text-xl font-bold mb-0">{title}</h6>
<span className="ml-1 text-xs text-secondary bg-strong p-0.5 px-1 rounded-lg">{version}</span>
</div>
<span className="p-1 rounded text-xs mb-1 text-secondary">
<strong>Renderer: </strong>
{rendererVersion}
</span>
<p className="text-xs px-2 py-1 bg-strong rounded-full flex justify-center items-center">
Load Time: {loadTime}ms
</p>
</div>
);
};
Loading