From fb4db4b64d999f325eda70c823901a459108da54 Mon Sep 17 00:00:00 2001 From: samuelOsborne Date: Mon, 7 Aug 2023 09:52:23 +0200 Subject: [PATCH] chore: moved actions to XState class --- .changeset/pre.json | 1 + .changeset/quick-emus-occur.md | 5 +++++ packages/dotlottie-js/CHANGELOG.md | 6 ++++++ packages/dotlottie-js/package.json | 2 +- packages/dotlottie-js/src/common/dotlottie-state.ts | 2 +- 5 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .changeset/quick-emus-occur.md diff --git a/.changeset/pre.json b/.changeset/pre.json index 72cefc4..761911a 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -14,6 +14,7 @@ "old-ghosts-explain", "orange-bobcats-allow", "proud-goats-turn", + "quick-emus-occur", "shy-laws-taste", "silent-rabbits-dress", "tasty-hotels-look", diff --git a/.changeset/quick-emus-occur.md b/.changeset/quick-emus-occur.md new file mode 100644 index 0000000..156eab9 --- /dev/null +++ b/.changeset/quick-emus-occur.md @@ -0,0 +1,5 @@ +--- +"@dotlottie/dotlottie-js": patch +--- + +added actions to XState class diff --git a/packages/dotlottie-js/CHANGELOG.md b/packages/dotlottie-js/CHANGELOG.md index a4de328..3bde8f3 100644 --- a/packages/dotlottie-js/CHANGELOG.md +++ b/packages/dotlottie-js/CHANGELOG.md @@ -1,5 +1,11 @@ # @dotlottie/dotlottie-js +## 0.4.0-beta.13 + +### Patch Changes + +- added actions to XState class + ## 0.4.0-beta.12 ### Patch Changes diff --git a/packages/dotlottie-js/package.json b/packages/dotlottie-js/package.json index e8b2a54..e2fb64a 100644 --- a/packages/dotlottie-js/package.json +++ b/packages/dotlottie-js/package.json @@ -1,6 +1,6 @@ { "name": "@dotlottie/dotlottie-js", - "version": "0.4.0-beta.12", + "version": "0.4.0-beta.13", "type": "module", "description": "This library helps in creating and modifying .lottie files.", "repository": { diff --git a/packages/dotlottie-js/src/common/dotlottie-state.ts b/packages/dotlottie-js/src/common/dotlottie-state.ts index 0b3c8ac..3f9ad31 100644 --- a/packages/dotlottie-js/src/common/dotlottie-state.ts +++ b/packages/dotlottie-js/src/common/dotlottie-state.ts @@ -73,6 +73,7 @@ export interface XStateTargetEvent { } export interface XState { + actions: Record; after: Record; context: Record; entry?: () => void; @@ -82,7 +83,6 @@ export interface XState { } export interface XStateMachine { - actions: Record; id: string; initial: string; states: Record;