@xmachines/docs 1.0.0-beta.29 → 1.0.0-beta.31

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 (292) hide show
  1. package/api/@xmachines/play/classes/PlayError.md +4 -4
  2. package/api/@xmachines/play/type-aliases/PlayEvent.md +2 -2
  3. package/api/@xmachines/play-actor/classes/AbstractActor.md +3 -3
  4. package/api/@xmachines/play-actor/functions/typedSpec.md +1 -1
  5. package/api/@xmachines/play-actor/interfaces/PlaySpec.md +2 -2
  6. package/api/@xmachines/play-actor/interfaces/Routable.md +3 -3
  7. package/api/@xmachines/play-actor/interfaces/ViewMetadata.md +3 -3
  8. package/api/@xmachines/play-actor/interfaces/Viewable.md +2 -2
  9. package/api/@xmachines/play-dom/README.md +40 -10
  10. package/api/@xmachines/play-dom/classes/PlayRenderer.md +20 -12
  11. package/api/@xmachines/play-dom/functions/connectRenderer.md +1 -1
  12. package/api/@xmachines/play-dom/functions/defineRegistry.md +8 -21
  13. package/api/@xmachines/play-dom/functions/renderSpec.md +15 -13
  14. package/api/@xmachines/play-dom/interfaces/ComponentContext.md +9 -48
  15. package/api/@xmachines/play-dom/interfaces/ConnectRendererOptions.md +7 -7
  16. package/api/@xmachines/play-dom/interfaces/DefineRegistryOptions.md +7 -9
  17. package/api/@xmachines/play-dom/interfaces/DefineRegistryResult.md +7 -8
  18. package/api/@xmachines/play-dom/interfaces/DomRenderContext.md +9 -12
  19. package/api/@xmachines/play-dom/interfaces/EventHandle.md +6 -20
  20. package/api/@xmachines/play-dom/interfaces/PlayDomOptions.md +5 -5
  21. package/api/@xmachines/play-dom/type-aliases/ActionFn.md +30 -0
  22. package/api/@xmachines/play-dom/type-aliases/Actions.md +18 -0
  23. package/api/@xmachines/play-dom/type-aliases/ComponentFn.md +1 -28
  24. package/api/@xmachines/play-dom/type-aliases/ComponentRegistry.md +1 -7
  25. package/api/@xmachines/play-dom/type-aliases/DomComponentRenderer.md +1 -17
  26. package/api/@xmachines/play-dom/type-aliases/DomRegistry.md +1 -6
  27. package/api/@xmachines/play-dom/type-aliases/DomSchema.md +9 -0
  28. package/api/@xmachines/play-dom/variables/schema.md +56 -0
  29. package/api/@xmachines/play-dom-router/functions/connectRouter.md +1 -1
  30. package/api/@xmachines/play-dom-router/functions/createBrowserHistory.md +1 -1
  31. package/api/@xmachines/play-dom-router/functions/createRouteMap.md +1 -1
  32. package/api/@xmachines/play-dom-router/functions/createRouter.md +1 -1
  33. package/api/@xmachines/play-dom-router/interfaces/BrowserHistory.md +14 -14
  34. package/api/@xmachines/play-dom-router/interfaces/BrowserWindow.md +14 -14
  35. package/api/@xmachines/play-dom-router/interfaces/ConnectRouterOptions.md +4 -4
  36. package/api/@xmachines/play-dom-router/interfaces/PlayRouteEvent.md +6 -6
  37. package/api/@xmachines/play-dom-router/interfaces/RouteMap.md +3 -3
  38. package/api/@xmachines/play-dom-router/interfaces/RouteMapLike.md +3 -3
  39. package/api/@xmachines/play-dom-router/interfaces/RouteMapping.md +3 -3
  40. package/api/@xmachines/play-dom-router/interfaces/RouterBridge.md +3 -3
  41. package/api/@xmachines/play-dom-router/interfaces/VanillaRouter.md +4 -4
  42. package/api/@xmachines/play-dom-router/type-aliases/RoutableActor.md +1 -1
  43. package/api/@xmachines/play-react/README.md +29 -32
  44. package/api/@xmachines/play-react/classes/PlayErrorBoundary.md +5 -5
  45. package/api/@xmachines/play-react/functions/useActor.md +1 -1
  46. package/api/@xmachines/play-react/functions/useSignalEffect.md +1 -1
  47. package/api/@xmachines/play-react/interfaces/PlayErrorBoundaryProps.md +4 -4
  48. package/api/@xmachines/play-react/interfaces/PlayErrorBoundaryState.md +3 -3
  49. package/api/@xmachines/play-react/interfaces/PlayRendererProps.md +11 -12
  50. package/api/@xmachines/play-react/type-aliases/PlayActor.md +1 -1
  51. package/api/@xmachines/play-react/variables/PlayRenderer.md +12 -5
  52. package/api/@xmachines/play-react-router/classes/ReactRouterBridge.md +23 -23
  53. package/api/@xmachines/play-react-router/classes/RouteMap.md +4 -4
  54. package/api/@xmachines/play-react-router/functions/PlayRouterProvider.md +1 -1
  55. package/api/@xmachines/play-react-router/functions/createRouteMapFromTree.md +1 -1
  56. package/api/@xmachines/play-react-router/interfaces/PlayRouteEvent.md +6 -6
  57. package/api/@xmachines/play-react-router/interfaces/PlayRouterProviderProps.md +5 -5
  58. package/api/@xmachines/play-react-router/interfaces/RouteMapping.md +3 -3
  59. package/api/@xmachines/play-react-router/interfaces/RouterBridge.md +3 -3
  60. package/api/@xmachines/play-router/classes/BaseRouteMap.md +4 -4
  61. package/api/@xmachines/play-router/classes/RouterBridgeBase.md +23 -23
  62. package/api/@xmachines/play-router/functions/buildPlayRouteEvent.md +1 -1
  63. package/api/@xmachines/play-router/functions/buildRouteTree.md +1 -1
  64. package/api/@xmachines/play-router/functions/createRouteMap.md +1 -1
  65. package/api/@xmachines/play-router/functions/createRouteMapFromMachine.md +1 -1
  66. package/api/@xmachines/play-router/functions/createRouteMapFromTree.md +1 -1
  67. package/api/@xmachines/play-router/functions/detectDuplicateRoutes.md +1 -1
  68. package/api/@xmachines/play-router/functions/extractMachineRoutes.md +1 -1
  69. package/api/@xmachines/play-router/functions/extractQuery.md +1 -1
  70. package/api/@xmachines/play-router/functions/extractRouteParams.md +1 -1
  71. package/api/@xmachines/play-router/functions/findRouteById.md +1 -1
  72. package/api/@xmachines/play-router/functions/findRouteByPath.md +1 -1
  73. package/api/@xmachines/play-router/functions/getNavigableRoutes.md +1 -1
  74. package/api/@xmachines/play-router/functions/getRoutableRoutes.md +1 -1
  75. package/api/@xmachines/play-router/functions/getTransitionReachableRoutes.md +1 -1
  76. package/api/@xmachines/play-router/functions/isRouteReachable.md +1 -1
  77. package/api/@xmachines/play-router/functions/machineToGraph.md +1 -1
  78. package/api/@xmachines/play-router/functions/routeExists.md +1 -1
  79. package/api/@xmachines/play-router/functions/sanitizePathname.md +1 -1
  80. package/api/@xmachines/play-router/functions/validateRouteFormat.md +1 -1
  81. package/api/@xmachines/play-router/functions/validateStateExists.md +1 -1
  82. package/api/@xmachines/play-router/interfaces/BuildPlayRouteEventOptions.md +4 -4
  83. package/api/@xmachines/play-router/interfaces/LocationLike.md +3 -3
  84. package/api/@xmachines/play-router/interfaces/MachineEdgeData.md +3 -3
  85. package/api/@xmachines/play-router/interfaces/MachineNodeData.md +5 -5
  86. package/api/@xmachines/play-router/interfaces/PlayRouteEvent.md +6 -6
  87. package/api/@xmachines/play-router/interfaces/RouteInfo.md +8 -8
  88. package/api/@xmachines/play-router/interfaces/RouteMap.md +4 -4
  89. package/api/@xmachines/play-router/interfaces/RouteMapping.md +3 -3
  90. package/api/@xmachines/play-router/interfaces/RouteMatch.md +3 -3
  91. package/api/@xmachines/play-router/interfaces/RouteNode.md +10 -10
  92. package/api/@xmachines/play-router/interfaces/RouteObject.md +2 -2
  93. package/api/@xmachines/play-router/interfaces/RouteTree.md +5 -5
  94. package/api/@xmachines/play-router/interfaces/RouteWatcherHandle.md +3 -3
  95. package/api/@xmachines/play-router/interfaces/RouterBridge.md +3 -3
  96. package/api/@xmachines/play-router/interfaces/WindowLike.md +3 -3
  97. package/api/@xmachines/play-router/type-aliases/MachineGraph.md +1 -1
  98. package/api/@xmachines/play-router/type-aliases/RouteMetadata.md +1 -1
  99. package/api/@xmachines/play-signals/functions/watchSignal.md +1 -1
  100. package/api/@xmachines/play-signals/interfaces/ComputedOptions.md +2 -2
  101. package/api/@xmachines/play-signals/interfaces/SignalComputed.md +2 -2
  102. package/api/@xmachines/play-signals/interfaces/SignalOptions.md +2 -2
  103. package/api/@xmachines/play-signals/interfaces/SignalState.md +3 -3
  104. package/api/@xmachines/play-signals/interfaces/SignalWatcher.md +4 -4
  105. package/api/@xmachines/play-signals/type-aliases/WatcherNotify.md +1 -1
  106. package/api/@xmachines/play-solid/README.md +28 -29
  107. package/api/@xmachines/play-solid/functions/useActor.md +1 -1
  108. package/api/@xmachines/play-solid/functions/useBoundProp.md +45 -0
  109. package/api/@xmachines/play-solid/interfaces/PlayRendererProps.md +11 -12
  110. package/api/@xmachines/play-solid/type-aliases/PlayActor.md +1 -1
  111. package/api/@xmachines/play-solid/variables/PlayRenderer.md +4 -25
  112. package/api/@xmachines/play-solid-router/classes/RouteMap.md +4 -4
  113. package/api/@xmachines/play-solid-router/classes/SolidRouterBridge.md +24 -24
  114. package/api/@xmachines/play-solid-router/functions/PlayRouterProvider.md +1 -1
  115. package/api/@xmachines/play-solid-router/functions/createRouteMap.md +1 -1
  116. package/api/@xmachines/play-solid-router/interfaces/AbstractActor.md +3 -3
  117. package/api/@xmachines/play-solid-router/interfaces/PlayRouteEvent.md +6 -6
  118. package/api/@xmachines/play-solid-router/interfaces/PlayRouterProviderProps.md +5 -5
  119. package/api/@xmachines/play-solid-router/interfaces/RouteMapping.md +3 -3
  120. package/api/@xmachines/play-solid-router/interfaces/RouterBridge.md +3 -3
  121. package/api/@xmachines/play-solid-router/type-aliases/RoutableActor.md +1 -1
  122. package/api/@xmachines/play-solid-router/type-aliases/SolidRouterHooks.md +4 -4
  123. package/api/@xmachines/play-svelte/README.md +15 -4
  124. package/api/@xmachines/play-svelte/interfaces/PlayRendererProps.md +8 -9
  125. package/api/@xmachines/play-svelte-spa-router/classes/RouteMap.md +4 -4
  126. package/api/@xmachines/play-svelte-spa-router/functions/connectRouter.md +1 -1
  127. package/api/@xmachines/play-svelte-spa-router/functions/createRouteMap.md +1 -1
  128. package/api/@xmachines/play-svelte-spa-router/interfaces/ConnectRouterOptions.md +4 -4
  129. package/api/@xmachines/play-svelte-spa-router/interfaces/PlayRouteEvent.md +6 -6
  130. package/api/@xmachines/play-svelte-spa-router/interfaces/RouteMapping.md +3 -3
  131. package/api/@xmachines/play-svelte-spa-router/interfaces/RouterBridge.md +3 -3
  132. package/api/@xmachines/play-svelte-spa-router/interfaces/WindowLike.md +3 -3
  133. package/api/@xmachines/play-svelte-spa-router/type-aliases/RoutableActor.md +1 -1
  134. package/api/@xmachines/play-sveltekit-router/classes/RouteMap.md +4 -4
  135. package/api/@xmachines/play-sveltekit-router/functions/connectRouter.md +1 -1
  136. package/api/@xmachines/play-sveltekit-router/functions/createRouteMap.md +1 -1
  137. package/api/@xmachines/play-sveltekit-router/interfaces/ConnectRouterOptions.md +4 -4
  138. package/api/@xmachines/play-sveltekit-router/interfaces/LocationLike.md +3 -3
  139. package/api/@xmachines/play-sveltekit-router/interfaces/PlayRouteEvent.md +6 -6
  140. package/api/@xmachines/play-sveltekit-router/interfaces/RouteMapping.md +3 -3
  141. package/api/@xmachines/play-sveltekit-router/interfaces/RouterBridge.md +3 -3
  142. package/api/@xmachines/play-sveltekit-router/type-aliases/RoutableActor.md +1 -1
  143. package/api/@xmachines/play-tanstack-react-router/classes/RouteMap.md +4 -4
  144. package/api/@xmachines/play-tanstack-react-router/classes/TanStackReactRouterBridge.md +23 -23
  145. package/api/@xmachines/play-tanstack-react-router/functions/PlayRouterProvider.md +1 -1
  146. package/api/@xmachines/play-tanstack-react-router/functions/createRouteMap.md +1 -1
  147. package/api/@xmachines/play-tanstack-react-router/functions/createRouteMapFromTree.md +1 -1
  148. package/api/@xmachines/play-tanstack-react-router/functions/extractMachineRoutes.md +1 -1
  149. package/api/@xmachines/play-tanstack-react-router/interfaces/PlayRouteEvent.md +6 -6
  150. package/api/@xmachines/play-tanstack-react-router/interfaces/PlayRouterProviderProps.md +5 -5
  151. package/api/@xmachines/play-tanstack-react-router/interfaces/RouteMapping.md +3 -3
  152. package/api/@xmachines/play-tanstack-react-router/interfaces/RouteNavigateEvent.md +3 -3
  153. package/api/@xmachines/play-tanstack-react-router/interfaces/RouterBridge.md +3 -3
  154. package/api/@xmachines/play-tanstack-react-router/type-aliases/TanStackRouterInstance.md +1 -1
  155. package/api/@xmachines/play-tanstack-react-router/type-aliases/TanStackRouterLike.md +4 -4
  156. package/api/@xmachines/play-tanstack-solid-router/classes/RouteMap.md +4 -4
  157. package/api/@xmachines/play-tanstack-solid-router/classes/SolidRouterBridge.md +24 -24
  158. package/api/@xmachines/play-tanstack-solid-router/functions/PlayRouterProvider.md +1 -1
  159. package/api/@xmachines/play-tanstack-solid-router/functions/createRouteMap.md +1 -1
  160. package/api/@xmachines/play-tanstack-solid-router/interfaces/PlayRouteEvent.md +6 -6
  161. package/api/@xmachines/play-tanstack-solid-router/interfaces/PlayRouterProviderProps.md +5 -5
  162. package/api/@xmachines/play-tanstack-solid-router/interfaces/RouteMapping.md +3 -3
  163. package/api/@xmachines/play-tanstack-solid-router/interfaces/RouterBridge.md +3 -3
  164. package/api/@xmachines/play-tanstack-solid-router/type-aliases/RoutableActor.md +1 -1
  165. package/api/@xmachines/play-tanstack-solid-router/type-aliases/TanStackRouterInstance.md +1 -1
  166. package/api/@xmachines/play-tanstack-solid-router/type-aliases/TanStackRouterLike.md +3 -3
  167. package/api/@xmachines/play-vue/README.md +33 -33
  168. package/api/@xmachines/play-vue/functions/defineRegistry.md +1 -1
  169. package/api/@xmachines/play-vue/functions/useActor.md +1 -1
  170. package/api/@xmachines/play-vue/functions/useBoundProp.md +45 -0
  171. package/api/@xmachines/play-vue/interfaces/PlayRendererProps.md +9 -10
  172. package/api/@xmachines/play-vue/type-aliases/ComponentEntry.md +1 -1
  173. package/api/@xmachines/play-vue/type-aliases/ComponentsMap.md +1 -1
  174. package/api/@xmachines/play-vue/type-aliases/DefineRegistryOptions.md +2 -2
  175. package/api/@xmachines/play-vue/type-aliases/PlayActor.md +1 -1
  176. package/api/@xmachines/play-vue/variables/PlayRenderer.md +1 -1
  177. package/api/@xmachines/play-vue-router/classes/RouteMap.md +4 -4
  178. package/api/@xmachines/play-vue-router/classes/VueBaseRouteMap.md +4 -4
  179. package/api/@xmachines/play-vue-router/classes/VueRouterBridge.md +24 -24
  180. package/api/@xmachines/play-vue-router/functions/createRouteMap.md +1 -1
  181. package/api/@xmachines/play-vue-router/interfaces/PlayRouteEvent.md +6 -6
  182. package/api/@xmachines/play-vue-router/interfaces/RouteMapping.md +3 -3
  183. package/api/@xmachines/play-vue-router/interfaces/RouterBridge.md +3 -3
  184. package/api/@xmachines/play-vue-router/type-aliases/RoutableActor.md +1 -1
  185. package/api/@xmachines/play-vue-router/variables/PlayRouterProvider.md +1 -1
  186. package/api/@xmachines/play-xstate/README.md +1 -0
  187. package/api/@xmachines/play-xstate/classes/PlayerActor.md +54 -23
  188. package/api/@xmachines/play-xstate/functions/buildRouteUrl.md +1 -1
  189. package/api/@xmachines/play-xstate/functions/composeGuards.md +1 -1
  190. package/api/@xmachines/play-xstate/functions/composeGuardsOr.md +1 -1
  191. package/api/@xmachines/play-xstate/functions/contextFieldMatches.md +1 -1
  192. package/api/@xmachines/play-xstate/functions/definePlayer.md +1 -1
  193. package/api/@xmachines/play-xstate/functions/deriveRoute.md +1 -1
  194. package/api/@xmachines/play-xstate/functions/eventMatches.md +1 -1
  195. package/api/@xmachines/play-xstate/functions/formatPlayRouteTransitions.md +1 -1
  196. package/api/@xmachines/play-xstate/functions/hasContext.md +1 -1
  197. package/api/@xmachines/play-xstate/functions/isAbsoluteRoute.md +1 -1
  198. package/api/@xmachines/play-xstate/functions/negateGuard.md +1 -1
  199. package/api/@xmachines/play-xstate/interfaces/PlayerConfig.md +3 -3
  200. package/api/@xmachines/play-xstate/interfaces/PlayerFactoryResumeOptions.md +2 -2
  201. package/api/@xmachines/play-xstate/interfaces/PlayerOptions.md +6 -6
  202. package/api/@xmachines/play-xstate/interfaces/RouteContext.md +5 -5
  203. package/api/@xmachines/play-xstate/type-aliases/ComposedGuard.md +1 -1
  204. package/api/@xmachines/play-xstate/type-aliases/Guard.md +1 -1
  205. package/api/@xmachines/play-xstate/type-aliases/GuardArray.md +1 -1
  206. package/api/@xmachines/play-xstate/type-aliases/PlayerFactory.md +1 -1
  207. package/api/@xmachines/play-xstate/type-aliases/RouteMachineConfig.md +4 -4
  208. package/api/@xmachines/play-xstate/type-aliases/RouteStateNode.md +4 -4
  209. package/api/@xmachines/shared/functions/defineXmVitestConfig.md +1 -1
  210. package/api/@xmachines/shared/functions/xmAliases.md +1 -1
  211. package/examples/@xmachines/play-dom-demo/README.md +7 -0
  212. package/examples/@xmachines/play-dom-demo/functions/createNavBar.md +23 -0
  213. package/examples/@xmachines/play-dom-demo/functions/initShell.md +5 -5
  214. package/examples/@xmachines/play-dom-demo/type-aliases/AuthCatalog.md +9 -0
  215. package/examples/@xmachines/play-dom-demo/variables/About.md +1 -1
  216. package/examples/@xmachines/play-dom-demo/variables/Contact.md +1 -1
  217. package/examples/@xmachines/play-dom-demo/variables/Dashboard.md +1 -1
  218. package/examples/@xmachines/play-dom-demo/variables/Home.md +1 -1
  219. package/examples/@xmachines/play-dom-demo/variables/Login.md +1 -1
  220. package/examples/@xmachines/play-dom-demo/variables/NavBarView.md +9 -0
  221. package/examples/@xmachines/play-dom-demo/variables/Navigation.md +1 -1
  222. package/examples/@xmachines/play-dom-demo/variables/Overview.md +1 -1
  223. package/examples/@xmachines/play-dom-demo/variables/Profile.md +1 -1
  224. package/examples/@xmachines/play-dom-demo/variables/Settings.md +1 -1
  225. package/examples/@xmachines/play-dom-demo/variables/Stats.md +1 -1
  226. package/examples/@xmachines/{play-actor-shared → play-dom-demo}/variables/authCatalog.md +23 -24
  227. package/examples/@xmachines/play-react-demo/README.md +9 -3
  228. package/examples/@xmachines/play-react-demo/functions/App.md +1 -1
  229. package/examples/@xmachines/play-react-demo/functions/DebugPanel.md +5 -5
  230. package/examples/@xmachines/play-react-demo/functions/HeaderNav.md +5 -5
  231. package/examples/@xmachines/play-react-demo/functions/Shell.md +7 -7
  232. package/examples/@xmachines/play-react-demo/type-aliases/AuthCatalog.md +9 -0
  233. package/examples/@xmachines/play-react-demo/variables/About.md +1 -1
  234. package/examples/@xmachines/play-react-demo/variables/Contact.md +1 -1
  235. package/examples/@xmachines/play-react-demo/variables/Dashboard.md +1 -1
  236. package/examples/@xmachines/play-react-demo/variables/DebugPanel.md +11 -0
  237. package/examples/@xmachines/play-react-demo/variables/Home.md +1 -1
  238. package/examples/@xmachines/play-react-demo/variables/Login.md +1 -1
  239. package/examples/@xmachines/play-react-demo/variables/NavBar.md +11 -0
  240. package/examples/@xmachines/play-react-demo/variables/NavBarView.md +9 -0
  241. package/examples/@xmachines/play-react-demo/variables/Navigation.md +1 -1
  242. package/examples/@xmachines/play-react-demo/variables/Overview.md +1 -1
  243. package/examples/@xmachines/play-react-demo/variables/Profile.md +1 -1
  244. package/examples/@xmachines/play-react-demo/variables/Settings.md +1 -1
  245. package/examples/@xmachines/play-react-demo/variables/Shell.md +13 -0
  246. package/examples/@xmachines/play-react-demo/variables/Stats.md +1 -1
  247. package/examples/@xmachines/play-react-demo/variables/authCatalog.md +172 -0
  248. package/examples/@xmachines/play-solid-demo/README.md +9 -3
  249. package/examples/@xmachines/play-solid-demo/functions/App.md +1 -1
  250. package/examples/@xmachines/play-solid-demo/functions/DebugPanel.md +5 -5
  251. package/examples/@xmachines/play-solid-demo/functions/HeaderNav.md +5 -5
  252. package/examples/@xmachines/play-solid-demo/functions/Shell.md +7 -7
  253. package/examples/@xmachines/play-solid-demo/type-aliases/AuthCatalog.md +9 -0
  254. package/examples/@xmachines/play-solid-demo/variables/About.md +1 -1
  255. package/examples/@xmachines/play-solid-demo/variables/Contact.md +1 -1
  256. package/examples/@xmachines/play-solid-demo/variables/Dashboard.md +1 -1
  257. package/examples/@xmachines/play-solid-demo/variables/DebugPanel.md +11 -0
  258. package/examples/@xmachines/play-solid-demo/variables/Home.md +1 -1
  259. package/examples/@xmachines/play-solid-demo/variables/Login.md +1 -1
  260. package/examples/@xmachines/play-solid-demo/variables/NavBar.md +11 -0
  261. package/examples/@xmachines/play-solid-demo/variables/NavBarView.md +12 -0
  262. package/examples/@xmachines/play-solid-demo/variables/Navigation.md +1 -1
  263. package/examples/@xmachines/play-solid-demo/variables/Overview.md +1 -1
  264. package/examples/@xmachines/play-solid-demo/variables/Profile.md +1 -1
  265. package/examples/@xmachines/play-solid-demo/variables/Settings.md +1 -1
  266. package/examples/@xmachines/play-solid-demo/variables/Shell.md +13 -0
  267. package/examples/@xmachines/play-solid-demo/variables/Stats.md +1 -1
  268. package/examples/@xmachines/play-solid-demo/variables/authCatalog.md +172 -0
  269. package/examples/README.md +0 -8
  270. package/package.json +2 -2
  271. package/api/@xmachines/play-react/functions/useStateBinding.md +0 -34
  272. package/api/@xmachines/play-solid/functions/useStateBinding.md +0 -25
  273. package/api/@xmachines/play-vue/functions/useStateBinding.md +0 -32
  274. package/examples/@xmachines/play-actor-shared/README.md +0 -155
  275. package/examples/@xmachines/play-actor-shared/interfaces/AuthContext.md +0 -14
  276. package/examples/@xmachines/play-actor-shared/type-aliases/AuthActor.md +0 -27
  277. package/examples/@xmachines/play-actor-shared/type-aliases/AuthCatalog.md +0 -16
  278. package/examples/@xmachines/play-actor-shared/type-aliases/AuthEvents.md +0 -17
  279. package/examples/@xmachines/play-actor-shared/type-aliases/AuthInput.md +0 -9
  280. package/examples/@xmachines/play-actor-shared/type-aliases/AuthSnapshot.md +0 -11
  281. package/examples/@xmachines/play-actor-shared/type-aliases/CatalogProps.md +0 -187
  282. package/examples/@xmachines/play-actor-shared/type-aliases/InferProps.md +0 -17
  283. package/examples/@xmachines/play-actor-shared/variables/authMachine.md +0 -189
  284. package/examples/@xmachines/play-actor-shared/variables/authSetup.md +0 -22
  285. package/examples/@xmachines/play-router-shared/README.md +0 -111
  286. package/examples/@xmachines/play-router-shared/test/auth-machine-routing.test.ts/README.md +0 -3
  287. package/examples/@xmachines/play-router-shared/test/demo-browser-suite.ts/README.md +0 -11
  288. package/examples/@xmachines/play-router-shared/test/demo-browser-suite.ts/functions/defineSharedDemoBrowserSuite.md +0 -19
  289. package/examples/@xmachines/play-router-shared/test/demo-browser-suite.ts/variables/defineRouterDemoBrowserSuite.md +0 -19
  290. package/examples/@xmachines/play-router-shared/test/env.d.ts/README.md +0 -8
  291. package/examples/@xmachines/play-router-shared/test/env.d.ts/interfaces/ImportMeta.md +0 -63
  292. package/examples/@xmachines/play-router-shared/test/env.d.ts/interfaces/ImportMetaEnv.md +0 -32
@@ -1,25 +0,0 @@
1
- [Documentation](../../../README.md) / [@xmachines/play-solid](../README.md) / useStateBinding
2
-
3
- # Function: useStateBinding()
4
-
5
- ```ts
6
- function useStateBinding<T>(path): [Accessor<T | undefined>, (value) => void];
7
- ```
8
-
9
- Defined in: `@json-render/solid`
10
-
11
- ## Type Parameters
12
-
13
- | Type Parameter |
14
- | -------------- |
15
- | `T` |
16
-
17
- ## Parameters
18
-
19
- | Parameter | Type |
20
- | --------- | -------- |
21
- | `path` | `string` |
22
-
23
- ## Returns
24
-
25
- \[`Accessor`\<`T` \| `undefined`\>, (`value`) => `void`\]
@@ -1,32 +0,0 @@
1
- [Documentation](../../../README.md) / [@xmachines/play-vue](../README.md) / useStateBinding
2
-
3
- # Function: useStateBinding()
4
-
5
- ```ts
6
- function useStateBinding<T>(path): [ComputedRef<T | undefined>, (value) => void];
7
- ```
8
-
9
- Defined in: `@json-render/vue`
10
-
11
- Composable to get and set a value from the state model by path.
12
-
13
- This is the path-based variant for use in arbitrary composables. For
14
- registry components that receive `bindings` from the renderer, prefer
15
- `useBoundProp` which reads the already-resolved prop value and writes back
16
- to the bound path.
17
-
18
- ## Type Parameters
19
-
20
- | Type Parameter |
21
- | -------------- |
22
- | `T` |
23
-
24
- ## Parameters
25
-
26
- | Parameter | Type |
27
- | --------- | -------- |
28
- | `path` | `string` |
29
-
30
- ## Returns
31
-
32
- \[`ComputedRef`\<`T` \| `undefined`\>, (`value`) => `void`\]
@@ -1,155 +0,0 @@
1
- [Documentation](../../README.md) / @xmachines/play-actor-shared
2
-
3
- # play-actor Shared Demo Package
4
-
5
- Shared auth machine, catalog, and browser test fixtures consumed by all `@xmachines` renderer and router adapter demos.
6
-
7
- ## What This Demonstrates
8
-
9
- - A single `authMachine` reused across every framework demo without modification
10
- - Framework-agnostic `authCatalog` defining typed component prop shapes and action param schemas
11
- - Shared browser test suite (`renderer-demo-browser-suite.ts`) importable by any renderer demo
12
- - State machine invariants: public routes, protected routes with auth guards, and nested sub-states
13
-
14
- ## Running the Demo
15
-
16
- This is a shared fixture package — it has no standalone dev server. Run its tests from the repository root:
17
-
18
- ```bash
19
- npm install
20
- npm run test -w @xmachines/play-actor-shared
21
- ```
22
-
23
- ## Step-by-Step Code Flow
24
-
25
- Use this order to understand the package structure:
26
-
27
- 1. `src/auth-machine.ts` defines the `authMachine` using XState `setup()` with `formatPlayRouteTransitions` — all states include `meta.route` and `meta.view` for router and renderer integration.
28
- 2. `src/catalog.ts` defines `authCatalog` using `defineCatalog` from `@json-render/core` — typed component prop schemas (via Zod) and action param schemas for `login`, `logout`, and all `route*` actions.
29
- 3. `src/index.ts` re-exports `authMachine`, `authCatalog`, and all associated TypeScript types (`AuthActor`, `AuthContext`, `AuthEvents`, `AuthSnapshot`, `AuthCatalog`).
30
- 4. `test/shared-package.test.ts` verifies machine invariants: starts at home, unauthenticated; `auth.login` transitions to `dashboard.overview`; `auth.logout` returns to `home`.
31
- 5. `test/renderer-demo-browser-suite.ts` exports `defineNoRouterDemoBrowserSuite` — a portable browser test helper used by renderer demos that mount `<App />` and assert DOM state.
32
-
33
- ```ts
34
- // src/auth-machine.ts (shape)
35
- export const authMachine = authSetup.createMachine(
36
- formatPlayRouteTransitions({
37
- id: "auth",
38
- initial: "home",
39
- on: {
40
- "auth.login": { target: ".dashboard", guard: ({ context }) => !context.isAuthenticated },
41
- "auth.logout": { target: ".home", guard: ({ context }) => context.isAuthenticated },
42
- },
43
- states: {
44
- home: { meta: { route: "/", view: { component: "Home", spec: { ... } } } },
45
- login: { meta: { route: "/login", view: { component: "Login", spec: { ... } } } },
46
- dashboard: {
47
- meta: { route: "/dashboard" },
48
- initial: "overview",
49
- always: { guard: ({ context }) => !context.isAuthenticated, target: "login" },
50
- states: {
51
- overview: { meta: { route: "overview", view: { component: "Overview", spec: { ... } } } },
52
- stats: { meta: { route: "stats", view: { component: "Stats", spec: { ... } } } },
53
- },
54
- },
55
- profile: { meta: { route: "/profile/:username", view: { component: "Profile", spec: { ... } } } },
56
- settings: { meta: { route: "/settings/:section?", view: { component: "Settings", spec: { ... } } } },
57
- },
58
- }),
59
- );
60
- ```
61
-
62
- ```ts
63
- // src/catalog.ts (shape)
64
- export const authCatalog = defineCatalog(schema, {
65
- components: {
66
- Home: { props: z.object({ title: z.string() }) },
67
- Login: { props: z.object({ title: z.string() }) },
68
- Dashboard: { props: z.object({ welcome: z.boolean(), username: z.string() }) },
69
- Profile: { props: z.object({ username: z.string() }) },
70
- // ... more components
71
- },
72
- actions: {
73
- login: { params: z.object({ username: z.string() }), description: "Login with username" },
74
- logout: { description: "Logout and return to home" },
75
- // ... more actions
76
- },
77
- });
78
- ```
79
-
80
- ## Key Files
81
-
82
- - `src/auth-machine.ts` - XState auth machine with route metadata, guards, and nested dashboard states
83
- - `src/catalog.ts` - `authCatalog` with typed component and action schemas
84
- - `src/index.ts` - public re-exports: `authMachine`, `authCatalog`, all types
85
- - `src/index.css` - shared demo stylesheet imported by all renderer demos
86
- - `test/shared-package.test.ts` - machine invariant tests (start state, login, logout)
87
- - `test/renderer-demo-browser-suite.ts` - portable browser test helper for renderer demos
88
-
89
- ## State Machine & Architecture Details
90
-
91
- The auth machine embodies XMachines architectural invariants:
92
-
93
- 1. **Actor Authority:** All navigation uses `play.route` events — the machine evaluates each route transition against its current state and guard conditions. Framework adapters never bypass this.
94
- 2. **Passive Infrastructure:** `meta.route` on each state is metadata for the router adapter to read, not a command. The actor drives the URL, not the other way around.
95
- 3. **Signal-Only Reactivity:** The machine exposes `actor.currentView` and `actor.currentRoute` as TC39 Signals. Framework renderers and router adapters observe these signals — they never poll or subscribe to snapshots directly.
96
-
97
- ## Watcher Lifecycle and Cleanup Contract
98
-
99
- The shared machine itself does not manage watchers — that responsibility belongs to each framework adapter. However, the machine's signal-based architecture requires adapters to follow the canonical lifecycle:
100
-
101
- 1. `notify`
102
- 2. `queueMicrotask`
103
- 3. `getPending()`
104
- 4. Read actor signals and project framework-local state
105
- 5. Re-arm with `watch()`/`watch(...signals)`
106
-
107
- The `test/renderer-demo-browser-suite.ts` exports `defineNoRouterDemoBrowserSuite`, which each renderer demo uses to assert startup rendering and debug panel state without coupling to framework internals.
108
-
109
- ## Adapter Boundaries
110
-
111
- This package is pure shared infrastructure: no framework imports, no DOM dependencies. It defines the contract (machine + catalog) that all framework adapters implement against. The `AuthActor` type exported here is the preferred import for components across all framework demos — it decouples component implementations from the concrete machine type.
112
-
113
- ## Available Scripts
114
-
115
- These commands are defined in `package.json`:
116
-
117
- | Command | Description |
118
- | ------------------------------------------------------ | -------------------------------- |
119
- | `npm run test -w @xmachines/play-actor-shared` | Run Vitest test suite |
120
- | `npm run test:browser -w @xmachines/play-actor-shared` | Run browser-focused Vitest suite |
121
- | `npm run build -w @xmachines/play-actor-shared` | Build TypeScript declarations |
122
-
123
- ## Verification
124
-
125
- Use these checks to validate the shared package invariants:
126
-
127
- ```bash
128
- npm run test -w @xmachines/play-actor-shared
129
- ```
130
-
131
- Expected result: machine exports, start state, login, and logout invariants all pass.
132
-
133
- ## Learn More
134
-
135
- - [play-actor package README](../../README.md)
136
-
137
- ## Interfaces
138
-
139
- - [AuthContext](interfaces/AuthContext.md)
140
-
141
- ## Type Aliases
142
-
143
- - [AuthActor](type-aliases/AuthActor.md)
144
- - [AuthCatalog](type-aliases/AuthCatalog.md)
145
- - [AuthEvents](type-aliases/AuthEvents.md)
146
- - [AuthInput](type-aliases/AuthInput.md)
147
- - [AuthSnapshot](type-aliases/AuthSnapshot.md)
148
- - [CatalogProps](type-aliases/CatalogProps.md)
149
- - [InferProps](type-aliases/InferProps.md)
150
-
151
- ## Variables
152
-
153
- - [authCatalog](variables/authCatalog.md)
154
- - [authMachine](variables/authMachine.md)
155
- - [authSetup](variables/authSetup.md)
@@ -1,14 +0,0 @@
1
- [Documentation](../../../README.md) / [@xmachines/play-actor-shared](../README.md) / AuthContext
2
-
3
- # Interface: AuthContext
4
-
5
- Defined in: [packages/play-actor/examples/shared/src/auth-machine.ts:27](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/auth-machine.ts#L27)
6
-
7
- ## Properties
8
-
9
- | Property | Type | Defined in |
10
- | ------------------------------------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
11
- | <a id="property-isauthenticated"></a> `isAuthenticated` | `boolean` | [packages/play-actor/examples/shared/src/auth-machine.ts:28](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/auth-machine.ts#L28) |
12
- | <a id="property-params"></a> `params` | `Record`\<`string`, `string`\> | [packages/play-actor/examples/shared/src/auth-machine.ts:30](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/auth-machine.ts#L30) |
13
- | <a id="property-query"></a> `query` | `Record`\<`string`, `string`\> | [packages/play-actor/examples/shared/src/auth-machine.ts:31](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/auth-machine.ts#L31) |
14
- | <a id="property-username"></a> `username` | `string` \| `null` | [packages/play-actor/examples/shared/src/auth-machine.ts:29](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/auth-machine.ts#L29) |
@@ -1,27 +0,0 @@
1
- [Documentation](../../../README.md) / [@xmachines/play-actor-shared](../README.md) / AuthActor
2
-
3
- # Type Alias: AuthActor
4
-
5
- ```ts
6
- type AuthActor = PlayerActor<typeof authMachine>;
7
- ```
8
-
9
- Defined in: [packages/play-actor/examples/shared/src/auth-machine.ts:293](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/auth-machine.ts#L293)
10
-
11
- The actor type for the auth machine.
12
-
13
- Import this in components and router adapters instead of `typeof authMachine`.
14
- Components declare their dependency on the capability contract (AuthContext +
15
- AuthEvents + routing/view signals) without coupling to the concrete machine
16
- implementation.
17
-
18
- ## Example
19
-
20
- ```ts
21
- import type { AuthActor } from "@xmachines/play-actor-shared";
22
-
23
- function HeaderNav({ actor }: { actor: AuthActor }) {
24
- const snap = actor.getSnapshot();
25
- snap.context.username; // typed as string | null — no cast needed
26
- }
27
- ```
@@ -1,16 +0,0 @@
1
- [Documentation](../../../README.md) / [@xmachines/play-actor-shared](../README.md) / AuthCatalog
2
-
3
- # Type Alias: AuthCatalog
4
-
5
- ```ts
6
- type AuthCatalog = typeof authCatalog;
7
- ```
8
-
9
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:69](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L69)
10
-
11
- The type of the auth catalog — use as the `C` type param in `ComponentFn<AuthCatalog, "X">`,
12
- `ComponentContext<AuthCatalog, "X">`, and `defineRegistry(authCatalog, ...)`.
13
-
14
- Prefer this over `typeof authCatalog` at every call site: it's more readable,
15
- follows the PascalCase convention for types, and insulates components from
16
- the catalog's runtime representation.
@@ -1,17 +0,0 @@
1
- [Documentation](../../../README.md) / [@xmachines/play-actor-shared](../README.md) / AuthEvents
2
-
3
- # Type Alias: AuthEvents
4
-
5
- ```ts
6
- type AuthEvents =
7
- | PlayRouteEvent
8
- | {
9
- type: "auth.login";
10
- username: string;
11
- }
12
- | {
13
- type: "auth.logout";
14
- };
15
- ```
16
-
17
- Defined in: [packages/play-actor/examples/shared/src/auth-machine.ts:36](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/auth-machine.ts#L36)
@@ -1,9 +0,0 @@
1
- [Documentation](../../../README.md) / [@xmachines/play-actor-shared](../README.md) / AuthInput
2
-
3
- # Type Alias: AuthInput
4
-
5
- ```ts
6
- type AuthInput = Partial<AuthContext> | undefined;
7
- ```
8
-
9
- Defined in: [packages/play-actor/examples/shared/src/auth-machine.ts:34](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/auth-machine.ts#L34)
@@ -1,11 +0,0 @@
1
- [Documentation](../../../README.md) / [@xmachines/play-actor-shared](../README.md) / AuthSnapshot
2
-
3
- # Type Alias: AuthSnapshot
4
-
5
- ```ts
6
- type AuthSnapshot = SnapshotFrom<typeof authMachine>;
7
- ```
8
-
9
- Defined in: [packages/play-actor/examples/shared/src/auth-machine.ts:273](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/auth-machine.ts#L273)
10
-
11
- Snapshot type for the auth machine — use for typed `matches()` calls.
@@ -1,187 +0,0 @@
1
- [Documentation](../../../README.md) / [@xmachines/play-actor-shared](../README.md) / CatalogProps
2
-
3
- # Type Alias: CatalogProps
4
-
5
- ```ts
6
- type CatalogProps = object;
7
- ```
8
-
9
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:48](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L48)
10
-
11
- ## Properties
12
-
13
- ### About
14
-
15
- ```ts
16
- About: object;
17
- ```
18
-
19
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:50](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L50)
20
-
21
- #### title
22
-
23
- ```ts
24
- title: string;
25
- ```
26
-
27
- ---
28
-
29
- ### Contact
30
-
31
- ```ts
32
- Contact: object;
33
- ```
34
-
35
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:51](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L51)
36
-
37
- #### title
38
-
39
- ```ts
40
- title: string;
41
- ```
42
-
43
- ---
44
-
45
- ### Dashboard
46
-
47
- ```ts
48
- Dashboard: object;
49
- ```
50
-
51
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:53](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L53)
52
-
53
- #### username
54
-
55
- ```ts
56
- username: string;
57
- ```
58
-
59
- #### welcome
60
-
61
- ```ts
62
- welcome: boolean;
63
- ```
64
-
65
- ---
66
-
67
- ### Home
68
-
69
- ```ts
70
- Home: object;
71
- ```
72
-
73
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:49](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L49)
74
-
75
- #### title
76
-
77
- ```ts
78
- title: string;
79
- ```
80
-
81
- ---
82
-
83
- ### Login
84
-
85
- ```ts
86
- Login: object;
87
- ```
88
-
89
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:52](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L52)
90
-
91
- #### title
92
-
93
- ```ts
94
- title: string;
95
- ```
96
-
97
- ---
98
-
99
- ### Navigation
100
-
101
- ```ts
102
- Navigation: object;
103
- ```
104
-
105
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:56](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L56)
106
-
107
- #### currentPath
108
-
109
- ```ts
110
- currentPath: string;
111
- ```
112
-
113
- #### isAuthenticated
114
-
115
- ```ts
116
- isAuthenticated: boolean;
117
- ```
118
-
119
- ---
120
-
121
- ### Overview
122
-
123
- ```ts
124
- Overview: object;
125
- ```
126
-
127
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:57](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L57)
128
-
129
- #### title
130
-
131
- ```ts
132
- title: string;
133
- ```
134
-
135
- ---
136
-
137
- ### Profile
138
-
139
- ```ts
140
- Profile: object;
141
- ```
142
-
143
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:54](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L54)
144
-
145
- #### username
146
-
147
- ```ts
148
- username: string;
149
- ```
150
-
151
- ---
152
-
153
- ### Settings
154
-
155
- ```ts
156
- Settings: object;
157
- ```
158
-
159
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:55](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L55)
160
-
161
- #### section?
162
-
163
- ```ts
164
- optional section?: string;
165
- ```
166
-
167
- #### username
168
-
169
- ```ts
170
- username: string;
171
- ```
172
-
173
- ---
174
-
175
- ### Stats
176
-
177
- ```ts
178
- Stats: object;
179
- ```
180
-
181
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:58](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L58)
182
-
183
- #### title
184
-
185
- ```ts
186
- title: string;
187
- ```
@@ -1,17 +0,0 @@
1
- [Documentation](../../../README.md) / [@xmachines/play-actor-shared](../README.md) / InferProps
2
-
3
- # Type Alias: InferProps\<K\>
4
-
5
- ```ts
6
- type InferProps<K> = CatalogProps[K];
7
- ```
8
-
9
- Defined in: [packages/play-actor/examples/shared/src/catalog.ts:74](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.29/packages/play-actor/examples/shared/src/catalog.ts#L74)
10
-
11
- Infer props for a named component from the catalog type
12
-
13
- ## Type Parameters
14
-
15
- | Type Parameter |
16
- | ----------------------------------------------------- |
17
- | `K` _extends_ keyof [`CatalogProps`](CatalogProps.md) |