@statelyai/sdk 0.29.1 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +15 -0
  2. package/dist/assetStorage.d.mts +1 -1
  3. package/dist/auth.d.mts +1 -1
  4. package/dist/{statelyPragma-p1vu8PmH.mjs → dist-wbhkeGh6.mjs} +468 -204
  5. package/dist/{editor-sync-types-DB1N6QUK.d.mts → editor-sync-types-CPpzTSnT.d.mts} +4 -0
  6. package/dist/{editorHostSession-vSt07IJV.d.mts → editorHostSession-Bo-YhDEG.d.mts} +105 -6
  7. package/dist/{editorHostSession-DNpXPNAc.mjs → editorHostSession-CT8y0yzG.mjs} +380 -20
  8. package/dist/editorHostSession.d.mts +2 -2
  9. package/dist/editorHostSession.mjs +3 -2
  10. package/dist/embed.d.mts +3 -4
  11. package/dist/embed.mjs +5 -2
  12. package/dist/{graph-C8E1Exad.d.mts → graph-CR_g-mOq.d.mts} +1 -1
  13. package/dist/graph.d.mts +1 -1
  14. package/dist/{index-D4pdeDpT.d.mts → index-DlOZxzrW.d.mts} +92 -2
  15. package/dist/index.d.mts +8 -9
  16. package/dist/index.mjs +6 -5
  17. package/dist/{inspect-D61HS-t7.d.mts → inspect-BoWXrB-V.d.mts} +3 -2
  18. package/dist/{inspect-dmCvrIl1.mjs → inspect-DoDj7iWa.mjs} +25 -1
  19. package/dist/inspect.d.mts +2 -2
  20. package/dist/inspect.mjs +2 -2
  21. package/dist/patchTypes.d.mts +1 -1
  22. package/dist/protocol-2cvzJtGN.d.mts +846 -0
  23. package/dist/protocol.d.mts +2 -821
  24. package/dist/relay.d.mts +1 -1
  25. package/dist/statelyPragma-D46lczJR.mjs +102 -0
  26. package/dist/{studio-D-yqFd0u.d.mts → studio-DV5IIGhV.d.mts} +2 -2
  27. package/dist/studio.d.mts +1 -1
  28. package/dist/sync.d.mts +2 -2
  29. package/dist/sync.mjs +411 -30
  30. package/dist/{version-DC3yW9Dk.mjs → version-B6OHpDiz.mjs} +1 -1
  31. package/package.json +3 -3
  32. package/schemas/statelyai.schema.json +6 -0
  33. package/dist/embedPanel-Bpbq4sfJ.d.mts +0 -13
  34. /package/dist/{auth-BPyCCHYo.d.mts → auth-Dg7prjeL.d.mts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statelyai/sdk",
3
- "version": "0.29.1",
3
+ "version": "0.31.1",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "stately-sdk": "./dist/bin.mjs"
@@ -93,8 +93,8 @@
93
93
  "jsdom": "^27.4.0",
94
94
  "tsdown": "0.21.0-beta.2",
95
95
  "vitest": "^3.2.4",
96
- "@statelyai/graph-tools": "0.7.2",
97
- "@statelyai/api-contract": "0.4.3"
96
+ "@statelyai/api-contract": "0.4.7",
97
+ "@statelyai/graph-tools": "0.8.3"
98
98
  },
99
99
  "engines": {
100
100
  "node": ">=22.4"
@@ -34,6 +34,12 @@
34
34
  "default": 5,
35
35
  "description": "Default XState major version for sources that do not override it. Only XState 5+ is supported."
36
36
  },
37
+ "sourceUpdateStrategy": {
38
+ "type": "string",
39
+ "enum": ["preserve", "rewrite"],
40
+ "default": "preserve",
41
+ "description": "Controls whether visual edits preserve existing source formatting or rewrite the selected machine."
42
+ },
37
43
  "include": {
38
44
  "type": "array",
39
45
  "items": {
@@ -1,13 +0,0 @@
1
- //#region src/embedPanel.d.ts
2
- type EmbedPanelPosition = 'left' | 'right' | 'bottom';
3
- interface EmbedPanelConfig {
4
- id: string;
5
- /** Restrict the panel to one side. Omit to allow any side. */
6
- position?: EmbedPanelPosition;
7
- /** Keep a one-click tab visible on its positioned or preferred side. */
8
- tab?: boolean;
9
- /** Open the panel when the embed is initialized. */
10
- initiallyOpen?: boolean;
11
- }
12
- //#endregion
13
- export { EmbedPanelPosition as n, EmbedPanelConfig as t };