lucmartens / xstate-plantuml

Visualize a xstate or react-automata statechart as a plantuml state diagram
MIT License
71 stars 10 forks source link

fix: Handle actions that are objects #42

Closed karfau closed 3 years ago

karfau commented 4 years ago

With the following machine config:

{
  "initial": "initial",
  "states": {
    "initial": {
      "on": {
        "T": {
          "target": "final",
          "actions": [{ "type": "myAction" }]
        }
      }
    },
    "final": {
      "entry": [{ "type": "finalAction" }],
      "final": true
    }
  }
}

the actions are not part of the output. Those kind of objects are created by latest XState when just passing a string.

karfau commented 3 years ago

FYI: since there was no response in this repo since I created the issue and PRs, I have now decided to focus on maintaining my fork. This leads to the fact that the branches are starting to contain more things then makes sense in this repository.