xstate-viz
xstate-viz copied to clipboard
Added an embed mode which works via the URL, not any data in our db
Comment pasted here for ease:
/**
* Displays a view-only page which can render a machine
* to the canvas from the URL
*
* Use this example URL: http://localhost:3000/viz/view-only?machine=N4IglgdmAuYIYBsQC4QHcD2aQBoQGdo5oBTfFUTbZYAXzwhOrttqA
*
* This is for loading OG images quickly, and for many other applications
* such as embedding comments in PR's parsed using xstate-parser
*
* To create the machine hash, use the lzString.compressToEncodedURIComponent
* function on a JSON.stringified machine config.
*
* You can also use the typical embed controls
*/
⚠️ No Changeset found
Latest commit: 317bb3e5409f55bb66623e84c05f456a5a41d874
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/statelyai/xstate-viz/EM7RPr5eG5k4TECRfFG1LR1hvvqV
✅ Preview: https://xstate-viz-git-matt-added-an-embed-mode-which-b61eb7-statelyai.vercel.app