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;