Skip to content

Commit

Permalink
parent 9457abf
Browse files Browse the repository at this point in the history
author Abdelrahman Ashraf <[email protected]> 1729838161 +0700
committer samuelOsborne <[email protected]> 1737367747 +0100

parent 9457abf
author Abdelrahman Ashraf <[email protected]> 1729838161 +0700
committer samuelOsborne <[email protected]> 1737367627 +0100

chore: convert to dotLottie v1/v2

refactor: Update dotLottie import paths for Node.js environment

chore: 🤖 remove unncessary setters from v2

build: Update build configuration for dotlottie-js package

build: Update @changesets/cli to version 2.27.9

chore: Remove pull_request trigger from main.yml workflow

chore: Set "private" flag to true in package.json

chore: 🤖 update versions (beta) (#91)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

chore: Update .changeset configuration

- Update the "ignore" property in the .changeset/config.json file to include "node-example", "next-example", "react-example", and "vue-example".

chore: Update dependencies in package.json files

chore: v2 filenames

chore: Remove unused CHANGELOG.md for node app

refactor: Refactor DotLottie version conversion functions

refactor: Refactor dotLottie conversion methods

chore: 🤖 update versions (beta) (#92)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

fixes: proposed fixes for the beta launch (#93)

* fixes: proposed fixes for the beta launch

* chore: changeset

Refactor changeset format in pre.json

chore: 🤖 update versions (beta) (#94)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

chore: add .changeset prettierignore

fix: dotLottie v1 <-> v2 conversion

chore: 🤖 update versions (beta) (#95)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

fix: export missing types for dotLottie v1

refactor: Remove unnecessary import in animation.ts

chore: 🤖 update versions (beta) (#96)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

refactor: remove themes & stateMachines from manifest if non available

chore: 🤖 update versions (beta) (#97)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

fix: 🐛 dotLottie manifest version format

chore: 🤖 update versions (beta) (#98)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

chore: add tests

refactor: update test configuration to use JavaScript files instead of TypeScript

fix: format

fix: add theme data schema

chore: 🤖 update versions (beta) (#99)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

refactor: update dotlottie-js exports

chore: 🤖 update versions (beta) (#100)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

fix: update dotlottie-js utils for v2 compatibility

chore: 🤖 update versions (beta) (#101)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

fix(conversion): 🐛 never build dotLottie instance before conversion

chore: update changelog

chore: 🤖 update versions (beta) (#102)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

feat: add theme & stateMachine manifest schema

refactor: update v2 manifest schema

chore: 🤖 update versions (beta) (#103)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

fix: update theme schema slotId to id

chore: 🤖 update versions (beta) (#104)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

refactor: add tests && update LottieThemeCommon toString method

chore: 🤖 update versions (beta) (#105)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

chore:  add playground.js

refactor: remove setGenerator method from DotLottieCommonV1 and DotLottieCommon classes

chore: 🤖 update versions (beta) (#106)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

refactor: changes to initial state, animationId (#109)

* chore: updated node script

* refactor: small changes to sm format

chore: workflow issues

chore: updated example node script

fix: image asset ids

chore: changeset

chore: fixtures update

fix: added additional lottieAssetId for images
  • Loading branch information
theashraf authored and samuelOsborne committed Jan 20, 2025
1 parent 9457abf commit c7749c3
Show file tree
Hide file tree
Showing 134 changed files with 12,638 additions and 6,785 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-coats-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

fix: dotLottie v1 <-> v2 conversion
5 changes: 5 additions & 0 deletions .changeset/chatty-cougars-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

fix: dotLottie manifest version format
5 changes: 5 additions & 0 deletions .changeset/clean-cycles-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

small changes to state machine format.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["node-example", "next-example", "react-example", "vue-example"]
}
5 changes: 5 additions & 0 deletions .changeset/early-worms-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

fix: export missing types for dotLottie v1
5 changes: 5 additions & 0 deletions .changeset/eighty-hats-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

fix: update theme schema slotId
5 changes: 5 additions & 0 deletions .changeset/gorgeous-worms-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

refactor: update v2 manifest schema
5 changes: 5 additions & 0 deletions .changeset/green-hairs-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

refactor: dotLottie conversion methods
5 changes: 5 additions & 0 deletions .changeset/heavy-windows-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

fix(conversion): 🐛 never build dotLottie instance before conversion
5 changes: 5 additions & 0 deletions .changeset/loud-melons-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

fix: remove themes & stateMachines from manifest if non available
5 changes: 5 additions & 0 deletions .changeset/neat-carrots-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

refactor: add tests && update LottieThemeCommon toString method
5 changes: 5 additions & 0 deletions .changeset/perfect-emus-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

image asset ids
25 changes: 23 additions & 2 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,28 @@
"mode": "pre",
"tag": "beta",
"initialVersions": {
"@dotlottie/dotlottie-js": "0.8.1"
"@dotlottie/dotlottie-js": "0.8.1",
"next-example": "0.1.0",
"node-example": "1.0.0",
"react-example": "0.0.0",
"vue-example": "0.0.0"
},
"changesets": []
"changesets": [
"angry-coats-check",
"chatty-cougars-fetch",
"early-worms-remain",
"eighty-hats-tease",
"gorgeous-worms-kneel",
"green-hairs-dream",
"heavy-windows-beg",
"loud-melons-lay",
"many-emus-cough",
"neat-carrots-judge",
"rare-dodos-travel",
"serious-queens-reply",
"serious-trains-brake",
"silly-pillows-share",
"wicked-insects-eat",
"wicked-points-flow"
]
}
5 changes: 5 additions & 0 deletions .changeset/rare-dodos-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

small fixes
5 changes: 5 additions & 0 deletions .changeset/serious-trains-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

fix: getAnimations & getImages & getAudios for v2
5 changes: 5 additions & 0 deletions .changeset/silly-pillows-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': minor
---

refactor: remove setGenerator method from DotLottieCommonV1 and DotLottieCommon classes
5 changes: 5 additions & 0 deletions .changeset/wicked-insects-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

fix: add theme data schema
5 changes: 5 additions & 0 deletions .changeset/wicked-points-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dotlottie/dotlottie-js': patch
---

fix: export missing types
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- 'main'
- 'beta'
pull_request:
# pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -46,8 +46,10 @@ jobs:
- name: 🕵️ Lint
run: pnpm lint

# - name: 🛡️ Test
# run: pnpm test
- name: 🛡️ Test
run: |
npx playwright install --with-deps
pnpm test
- name: 📏 Report bundle size
uses: andresz1/size-limit-action@v1
Expand All @@ -68,7 +70,7 @@ jobs:
- name: ⎔ Setup pnpm@9
uses: pnpm/action-setup@v2
with:
version: 8
version: 9

- name: ⎔ Setup Node@18
uses: actions/setup-node@v3
Expand All @@ -81,6 +83,7 @@ jobs:

- name: 🏗 Build
run: pnpm build
working-directory: packages/dotlottie-js

- name: 🚀 Release
uses: changesets/action@v1
Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ releases/
.next/
.nuxt/

apps/node/
apps/node/

.changeset/
4 changes: 2 additions & 2 deletions apps/next/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "next",
"name": "next-example",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -9,7 +9,7 @@
"start": "next start"
},
"dependencies": {
"@dotlottie/dotlottie-js": "workspace:^",
"@dotlottie/dotlottie-js": "workspace:*",
"@dotlottie/player-component": "1.3.2",
"@types/node": "18.0.6",
"@types/react": "18.0.37",
Expand Down
4 changes: 0 additions & 4 deletions apps/node/audio_test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import { getAnimation, getAudio, getAllAudio } from '@dotlottie/dotlottie-js/nod

// const dl = await
// dotLottie
// .setAuthor('Sam!')
// .setVersion('1.0')
// .addAnimation({
// id: 'audio',
// // url: 'https://assets10.lottiefiles.com/packages/lf20_tykuirhr.json',
Expand Down Expand Up @@ -64,8 +62,6 @@ import { getAnimation, getAudio, getAllAudio } from '@dotlottie/dotlottie-js/nod
const double = new DotLottie();

const doubleAnimation = await double
.setAuthor('Sam!')
.setVersion('1.0')
.addAnimation({
id: 'audio_0',
// url: 'https://assets10.lottiefiles.com/packages/lf20_tykuirhr.json',
Expand Down
4 changes: 0 additions & 4 deletions apps/node/lf-interactivity-page-generator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ async function createDotLottie() {
// Can't change to a different animation
// TODO: MACROS!! START_FRAME / END_FRAME
const dl = await dotLottie
.setAuthor('Sam!')
.setVersion('1.0')
.addAnimation({
id: 'segments',
url: 'https://assets2.lottiefiles.com/packages/lf20_4fET62.json',
Expand Down Expand Up @@ -608,8 +606,6 @@ async function createSingles() {
const stateSegments = new DotLottie();

await stateSegments
.setAuthor('Sam!')
.setVersion('1.0')
.addAnimation({
id: 'segments',
url: 'https://assets2.lottiefiles.com/packages/lf20_4fET62.json',
Expand Down
5 changes: 3 additions & 2 deletions apps/node/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "node",
"name": "node-example",
"private": true,
"version": "1.0.0",
"description": "",
"author": "",
Expand All @@ -8,6 +9,6 @@
"keywords": [],
"scripts": {},
"dependencies": {
"@dotlottie/dotlottie-js": "workspace:^"
"@dotlottie/dotlottie-js": "workspace:*"
}
}
Loading

0 comments on commit c7749c3

Please sign in to comment.