Skip to content

Commit

Permalink
chore: moved actions to XState class
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelOsborne committed Aug 7, 2023
1 parent 8a384c0 commit fb4db4b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/quick-emus-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@dotlottie/dotlottie-js": patch
---

added actions to XState class
6 changes: 6 additions & 0 deletions packages/dotlottie-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/dotlottie-js/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/dotlottie-js/src/common/dotlottie-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export interface XStateTargetEvent {
}

export interface XState {
actions: Record<string, unknown>;
after: Record<number, XStateTargetEvent>;
context: Record<string, unknown>;
entry?: () => void;
Expand All @@ -82,7 +83,6 @@ export interface XState {
}

export interface XStateMachine {
actions: Record<string, unknown>;
id: string;
initial: string;
states: Record<string, XState>;
Expand Down

0 comments on commit fb4db4b

Please sign in to comment.