@xmachines/docs 1.0.0-beta.52 → 1.0.0-beta.54

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 (442) hide show
  1. package/README.md +1 -1
  2. package/api/@xmachines/play/classes/NonNullableError.md +7 -7
  3. package/api/@xmachines/play/classes/PlayError.md +7 -7
  4. package/api/@xmachines/play/functions/assertNonNullable.md +1 -1
  5. package/api/@xmachines/play/type-aliases/PlayEvent.md +2 -2
  6. package/api/@xmachines/play-actor/README.md +2 -0
  7. package/api/@xmachines/play-actor/classes/AbstractActor.md +14 -14
  8. package/api/@xmachines/play-actor/functions/attachRenderErrorHandler.md +40 -0
  9. package/api/@xmachines/play-actor/functions/toAtomState.md +33 -0
  10. package/api/@xmachines/play-actor/functions/typedSpec.md +1 -1
  11. package/api/@xmachines/play-actor/interfaces/BaseActorProviderProps.md +5 -5
  12. package/api/@xmachines/play-actor/interfaces/BaseViewContextValue.md +5 -5
  13. package/api/@xmachines/play-actor/interfaces/PlaySpec.md +2 -2
  14. package/api/@xmachines/play-actor/interfaces/Routable.md +3 -3
  15. package/api/@xmachines/play-actor/interfaces/Viewable.md +2 -2
  16. package/api/@xmachines/play-dom/README.md +2 -0
  17. package/api/@xmachines/play-dom/classes/PlayRenderer.md +28 -4
  18. package/api/@xmachines/play-dom/functions/createPlayUI.md +1 -1
  19. package/api/@xmachines/play-dom/functions/createRenderer.md +1 -1
  20. package/api/@xmachines/play-dom/functions/defineRegistry.md +1 -1
  21. package/api/@xmachines/play-dom/functions/renderSpec.md +12 -30
  22. package/api/@xmachines/play-dom/interfaces/ComponentContext.md +7 -7
  23. package/api/@xmachines/play-dom/interfaces/CreatePlayUIOptions.md +7 -6
  24. package/api/@xmachines/play-dom/interfaces/DefineRegistryResult.md +4 -4
  25. package/api/@xmachines/play-dom/interfaces/DomRenderContext.md +16 -15
  26. package/api/@xmachines/play-dom/interfaces/EventHandle.md +4 -4
  27. package/api/@xmachines/play-dom/interfaces/MountOptions.md +3 -3
  28. package/api/@xmachines/play-dom/interfaces/PlayDomOptions.md +9 -8
  29. package/api/@xmachines/play-dom/interfaces/RenderSpecOptions.md +28 -0
  30. package/api/@xmachines/play-dom/interfaces/UIProviderOptions.md +6 -5
  31. package/api/@xmachines/play-dom/type-aliases/ActionFn.md +1 -1
  32. package/api/@xmachines/play-dom/type-aliases/Actions.md +1 -1
  33. package/api/@xmachines/play-dom/type-aliases/BaseComponentProps.md +7 -7
  34. package/api/@xmachines/play-dom/type-aliases/CatalogHasActions.md +1 -1
  35. package/api/@xmachines/play-dom/type-aliases/ComponentFn.md +1 -1
  36. package/api/@xmachines/play-dom/type-aliases/ComponentRegistry.md +1 -1
  37. package/api/@xmachines/play-dom/type-aliases/ConfirmHandler.md +44 -0
  38. package/api/@xmachines/play-dom/type-aliases/DefineRegistryOptions.md +2 -2
  39. package/api/@xmachines/play-dom/type-aliases/DomComponentRenderer.md +1 -1
  40. package/api/@xmachines/play-dom/type-aliases/DomRegistry.md +1 -1
  41. package/api/@xmachines/play-dom/type-aliases/DomSchema.md +1 -1
  42. package/api/@xmachines/play-dom/type-aliases/MountFn.md +1 -1
  43. package/api/@xmachines/play-dom/type-aliases/RenderErrorHandler.md +1 -1
  44. package/api/@xmachines/play-dom/type-aliases/SetState.md +1 -1
  45. package/api/@xmachines/play-dom/variables/schema.md +1 -1
  46. package/api/@xmachines/play-dom-router/functions/connectRouter.md +1 -1
  47. package/api/@xmachines/play-dom-router/functions/createBrowserHistory.md +1 -1
  48. package/api/@xmachines/play-dom-router/functions/createRouteMap.md +1 -1
  49. package/api/@xmachines/play-dom-router/functions/createRouter.md +1 -1
  50. package/api/@xmachines/play-dom-router/interfaces/BrowserHistory.md +14 -14
  51. package/api/@xmachines/play-dom-router/interfaces/BrowserWindow.md +14 -14
  52. package/api/@xmachines/play-dom-router/interfaces/ConnectRouterOptions.md +4 -4
  53. package/api/@xmachines/play-dom-router/interfaces/PlayRouteEvent.md +16 -6
  54. package/api/@xmachines/play-dom-router/interfaces/RoutableActor.md +4 -4
  55. package/api/@xmachines/play-dom-router/interfaces/RouteLookupContract.md +7 -3
  56. package/api/@xmachines/play-dom-router/interfaces/RouteMap.md +16 -4
  57. package/api/@xmachines/play-dom-router/interfaces/RouteMapOptions.md +2 -2
  58. package/api/@xmachines/play-dom-router/interfaces/RouteMapping.md +3 -3
  59. package/api/@xmachines/play-dom-router/interfaces/RouterBridge.md +6 -6
  60. package/api/@xmachines/play-dom-router/interfaces/VanillaRouter.md +4 -4
  61. package/api/@xmachines/play-react/README.md +6 -6
  62. package/api/@xmachines/play-react/classes/PlayErrorBoundary.md +18 -18
  63. package/api/@xmachines/play-react/functions/ActionProvider.md +1 -1
  64. package/api/@xmachines/play-react/functions/JSONUIProvider.md +1 -1
  65. package/api/@xmachines/play-react/functions/Renderer.md +1 -1
  66. package/api/@xmachines/play-react/functions/StateProvider.md +1 -1
  67. package/api/@xmachines/play-react/functions/ValidationProvider.md +1 -1
  68. package/api/@xmachines/play-react/functions/VisibilityProvider.md +1 -1
  69. package/api/@xmachines/play-react/functions/defineRegistry.md +1 -1
  70. package/api/@xmachines/play-react/functions/useActor.md +1 -1
  71. package/api/@xmachines/play-react/functions/useBoundProp.md +1 -1
  72. package/api/@xmachines/play-react/functions/usePlayView.md +1 -1
  73. package/api/@xmachines/play-react/functions/useSignalEffect.md +28 -26
  74. package/api/@xmachines/play-react/interfaces/ActionProviderProps.md +1 -1
  75. package/api/@xmachines/play-react/interfaces/ActorProviderProps.md +8 -8
  76. package/api/@xmachines/play-react/interfaces/ComponentContext.md +1 -1
  77. package/api/@xmachines/play-react/interfaces/JSONUIProviderProps.md +1 -1
  78. package/api/@xmachines/play-react/interfaces/PlayErrorBoundaryProps.md +4 -4
  79. package/api/@xmachines/play-react/interfaces/PlayErrorBoundaryState.md +3 -3
  80. package/api/@xmachines/play-react/interfaces/PlayUIProviderProps.md +8 -8
  81. package/api/@xmachines/play-react/interfaces/RendererProps.md +1 -1
  82. package/api/@xmachines/play-react/interfaces/StateProviderProps.md +1 -1
  83. package/api/@xmachines/play-react/interfaces/ValidationProviderProps.md +1 -1
  84. package/api/@xmachines/play-react/interfaces/ViewContextValue.md +5 -5
  85. package/api/@xmachines/play-react/interfaces/VisibilityProviderProps.md +1 -1
  86. package/api/@xmachines/play-react/type-aliases/AnyPlayActor.md +1 -1
  87. package/api/@xmachines/play-react/type-aliases/ComponentFn.md +1 -1
  88. package/api/@xmachines/play-react/type-aliases/RenderErrorHandler.md +1 -1
  89. package/api/@xmachines/play-react/variables/ActorProvider.md +1 -1
  90. package/api/@xmachines/play-react/variables/PlayRenderer.md +1 -1
  91. package/api/@xmachines/play-react/variables/PlayUIProvider.md +1 -1
  92. package/api/@xmachines/play-react-router/README.md +10 -1
  93. package/api/@xmachines/play-react-router/classes/ReactRouterBridge.md +45 -32
  94. package/api/@xmachines/play-react-router/classes/RouteMap.md +17 -5
  95. package/api/@xmachines/play-react-router/functions/createPlayRouterProvider.md +45 -0
  96. package/api/@xmachines/play-react-router/functions/createRouteMap.md +1 -1
  97. package/api/@xmachines/play-react-router/functions/createRouteMapFromTree.md +2 -2
  98. package/api/@xmachines/play-react-router/interfaces/PlayActor.md +7 -7
  99. package/api/@xmachines/play-react-router/interfaces/PlayRouteEvent.md +16 -6
  100. package/api/@xmachines/play-react-router/interfaces/PlayRouterProviderBaseProps.md +32 -0
  101. package/api/@xmachines/play-react-router/interfaces/PlayRouterProviderProps.md +17 -7
  102. package/api/@xmachines/play-react-router/interfaces/RouteMapOptions.md +2 -2
  103. package/api/@xmachines/play-react-router/interfaces/RouteMapping.md +3 -3
  104. package/api/@xmachines/play-react-router/interfaces/RouterBridge.md +6 -6
  105. package/api/@xmachines/play-react-router/type-aliases/PlayRouterBridgeConstructor.md +30 -0
  106. package/api/@xmachines/play-react-router/{functions → variables}/PlayRouterProvider.md +6 -6
  107. package/api/@xmachines/play-router/README.md +6 -8
  108. package/api/@xmachines/play-router/classes/RouteMap.md +17 -5
  109. package/api/@xmachines/play-router/classes/RouterBridgeBase.md +50 -37
  110. package/api/@xmachines/play-router/functions/buildPlayRouteEvent.md +1 -1
  111. package/api/@xmachines/play-router/functions/buildRouteTree.md +11 -1
  112. package/api/@xmachines/play-router/functions/createRouteMap.md +1 -1
  113. package/api/@xmachines/play-router/functions/createRouteMapFromTree.md +2 -2
  114. package/api/@xmachines/play-router/functions/detectDuplicateRoutes.md +13 -6
  115. package/api/@xmachines/play-router/functions/extractMachineRoutes.md +1 -1
  116. package/api/@xmachines/play-router/functions/extractQuery.md +1 -1
  117. package/api/@xmachines/play-router/functions/extractRouteParams.md +9 -1
  118. package/api/@xmachines/play-router/functions/findRouteById.md +1 -1
  119. package/api/@xmachines/play-router/functions/findRouteByPath.md +1 -1
  120. package/api/@xmachines/play-router/functions/getNavigableRoutes.md +1 -1
  121. package/api/@xmachines/play-router/functions/getRoutableRoutes.md +1 -1
  122. package/api/@xmachines/play-router/functions/getTransitionReachableRoutes.md +7 -2
  123. package/api/@xmachines/play-router/functions/isRouteReachable.md +1 -1
  124. package/api/@xmachines/play-router/functions/machineToGraph.md +1 -1
  125. package/api/@xmachines/play-router/functions/routeExists.md +1 -1
  126. package/api/@xmachines/play-router/functions/sanitizePathname.md +1 -1
  127. package/api/@xmachines/play-router/functions/validateRouteFormat.md +1 -1
  128. package/api/@xmachines/play-router/functions/validateStateExists.md +1 -1
  129. package/api/@xmachines/play-router/interfaces/BuildPlayRouteEventOptions.md +4 -4
  130. package/api/@xmachines/play-router/interfaces/LocationLike.md +3 -3
  131. package/api/@xmachines/play-router/interfaces/MachineEdgeData.md +3 -3
  132. package/api/@xmachines/play-router/interfaces/MachineNodeData.md +5 -5
  133. package/api/@xmachines/play-router/interfaces/PlayActor.md +7 -7
  134. package/api/@xmachines/play-router/interfaces/PlayRouteEvent.md +16 -6
  135. package/api/@xmachines/play-router/interfaces/RoutableActor.md +4 -4
  136. package/api/@xmachines/play-router/interfaces/RouteInfo.md +8 -8
  137. package/api/@xmachines/play-router/interfaces/RouteMapOptions.md +2 -2
  138. package/api/@xmachines/play-router/interfaces/RouteMapping.md +3 -3
  139. package/api/@xmachines/play-router/interfaces/RouteMatch.md +3 -3
  140. package/api/@xmachines/play-router/interfaces/RouteNode.md +10 -10
  141. package/api/@xmachines/play-router/interfaces/RouteObject.md +2 -2
  142. package/api/@xmachines/play-router/interfaces/RouteTree.md +5 -5
  143. package/api/@xmachines/play-router/interfaces/RouteWatcherHandle.md +3 -3
  144. package/api/@xmachines/play-router/interfaces/RouterBridge.md +6 -6
  145. package/api/@xmachines/play-router/interfaces/WindowLike.md +3 -3
  146. package/api/@xmachines/play-router/type-aliases/MachineGraph.md +1 -1
  147. package/api/@xmachines/play-router/type-aliases/RouteMetadata.md +1 -1
  148. package/api/@xmachines/play-signals/functions/watchSignal.md +1 -1
  149. package/api/@xmachines/play-signals/interfaces/ComputedOptions.md +4 -2
  150. package/api/@xmachines/play-signals/interfaces/SignalComputed.md +2 -2
  151. package/api/@xmachines/play-signals/interfaces/SignalOptions.md +4 -2
  152. package/api/@xmachines/play-signals/interfaces/SignalState.md +3 -3
  153. package/api/@xmachines/play-signals/interfaces/SignalWatcher.md +4 -4
  154. package/api/@xmachines/play-signals/namespaces/Signal/classes/Computed.md +3 -3
  155. package/api/@xmachines/play-signals/namespaces/Signal/classes/State.md +4 -4
  156. package/api/@xmachines/play-signals/namespaces/Signal/interfaces/Options.md +1 -1
  157. package/api/@xmachines/play-signals/namespaces/Signal/namespaces/subtle/classes/Watcher.md +5 -5
  158. package/api/@xmachines/play-signals/namespaces/Signal/namespaces/subtle/functions/currentComputed.md +1 -1
  159. package/api/@xmachines/play-signals/namespaces/Signal/namespaces/subtle/functions/hasSinks.md +1 -1
  160. package/api/@xmachines/play-signals/namespaces/Signal/namespaces/subtle/functions/hasSources.md +1 -1
  161. package/api/@xmachines/play-signals/namespaces/Signal/namespaces/subtle/functions/introspectSinks.md +1 -1
  162. package/api/@xmachines/play-signals/namespaces/Signal/namespaces/subtle/functions/introspectSources.md +1 -1
  163. package/api/@xmachines/play-signals/namespaces/Signal/namespaces/subtle/functions/untrack.md +1 -1
  164. package/api/@xmachines/play-signals/namespaces/Signal/namespaces/subtle/variables/unwatched.md +1 -1
  165. package/api/@xmachines/play-signals/namespaces/Signal/namespaces/subtle/variables/watched.md +1 -1
  166. package/api/@xmachines/play-signals/namespaces/Signal/variables/isComputed.md +1 -1
  167. package/api/@xmachines/play-signals/namespaces/Signal/variables/isState.md +1 -1
  168. package/api/@xmachines/play-signals/namespaces/Signal/variables/isWatcher.md +1 -1
  169. package/api/@xmachines/play-signals/type-aliases/WatcherNotify.md +1 -1
  170. package/api/@xmachines/play-solid/functions/ActionProvider.md +1 -1
  171. package/api/@xmachines/play-solid/functions/JSONUIProvider.md +1 -1
  172. package/api/@xmachines/play-solid/functions/Renderer.md +1 -1
  173. package/api/@xmachines/play-solid/functions/StateProvider.md +1 -1
  174. package/api/@xmachines/play-solid/functions/ValidationProvider.md +1 -1
  175. package/api/@xmachines/play-solid/functions/VisibilityProvider.md +1 -1
  176. package/api/@xmachines/play-solid/functions/defineRegistry.md +1 -1
  177. package/api/@xmachines/play-solid/functions/useAction.md +1 -1
  178. package/api/@xmachines/play-solid/functions/useActions.md +1 -1
  179. package/api/@xmachines/play-solid/functions/useActor.md +1 -1
  180. package/api/@xmachines/play-solid/functions/useBoundProp.md +1 -1
  181. package/api/@xmachines/play-solid/functions/useFieldValidation.md +1 -1
  182. package/api/@xmachines/play-solid/functions/useIsVisible.md +1 -1
  183. package/api/@xmachines/play-solid/functions/useOptionalValidation.md +1 -1
  184. package/api/@xmachines/play-solid/functions/usePlayView.md +1 -1
  185. package/api/@xmachines/play-solid/functions/useStateBinding.md +1 -1
  186. package/api/@xmachines/play-solid/functions/useStateStore.md +1 -1
  187. package/api/@xmachines/play-solid/functions/useStateValue.md +1 -1
  188. package/api/@xmachines/play-solid/functions/useVisibility.md +1 -1
  189. package/api/@xmachines/play-solid/interfaces/ActionProviderProps.md +1 -1
  190. package/api/@xmachines/play-solid/interfaces/ActorProviderProps.md +8 -8
  191. package/api/@xmachines/play-solid/interfaces/ComponentContext.md +1 -1
  192. package/api/@xmachines/play-solid/interfaces/DefineRegistryResult.md +1 -1
  193. package/api/@xmachines/play-solid/interfaces/JSONUIProviderProps.md +1 -1
  194. package/api/@xmachines/play-solid/interfaces/PlayUIProviderProps.md +8 -8
  195. package/api/@xmachines/play-solid/interfaces/RendererProps.md +1 -1
  196. package/api/@xmachines/play-solid/interfaces/StateProviderProps.md +1 -1
  197. package/api/@xmachines/play-solid/interfaces/ValidationProviderProps.md +1 -1
  198. package/api/@xmachines/play-solid/interfaces/ViewContextValue.md +5 -5
  199. package/api/@xmachines/play-solid/type-aliases/AnyPlayActor.md +1 -1
  200. package/api/@xmachines/play-solid/type-aliases/ComponentFn.md +1 -1
  201. package/api/@xmachines/play-solid/type-aliases/ComponentRegistry.md +1 -1
  202. package/api/@xmachines/play-solid/type-aliases/RenderErrorHandler.md +1 -1
  203. package/api/@xmachines/play-solid/type-aliases/SetState.md +1 -1
  204. package/api/@xmachines/play-solid/type-aliases/VisibilityProviderProps.md +1 -1
  205. package/api/@xmachines/play-solid/variables/ActorContext.md +1 -1
  206. package/api/@xmachines/play-solid/variables/ActorProvider.md +1 -1
  207. package/api/@xmachines/play-solid/variables/PlayRenderer.md +1 -1
  208. package/api/@xmachines/play-solid/variables/PlayUIProvider.md +1 -1
  209. package/api/@xmachines/play-solid-router/README.md +7 -1
  210. package/api/@xmachines/play-solid-router/classes/RouteMap.md +17 -5
  211. package/api/@xmachines/play-solid-router/classes/SolidRouterBridge.md +40 -33
  212. package/api/@xmachines/play-solid-router/functions/createPlayRouterProvider.md +44 -0
  213. package/api/@xmachines/play-solid-router/functions/createRouteMap.md +1 -1
  214. package/api/@xmachines/play-solid-router/interfaces/AbstractActor.md +13 -13
  215. package/api/@xmachines/play-solid-router/interfaces/PlayActor.md +7 -7
  216. package/api/@xmachines/play-solid-router/interfaces/PlayRouteEvent.md +16 -6
  217. package/api/@xmachines/play-solid-router/interfaces/PlayRouterProviderBaseProps.md +30 -0
  218. package/api/@xmachines/play-solid-router/interfaces/PlayRouterProviderProps.md +17 -7
  219. package/api/@xmachines/play-solid-router/interfaces/RouteMapOptions.md +2 -2
  220. package/api/@xmachines/play-solid-router/interfaces/RouteMapping.md +3 -3
  221. package/api/@xmachines/play-solid-router/interfaces/RouterBridge.md +6 -6
  222. package/api/@xmachines/play-solid-router/type-aliases/PlayRouterBridgeConstructor.md +34 -0
  223. package/api/@xmachines/play-solid-router/type-aliases/RoutableActor.md +1 -1
  224. package/api/@xmachines/play-solid-router/type-aliases/SolidRouterHooks.md +4 -4
  225. package/api/@xmachines/play-solid-router/{functions → variables}/PlayRouterProvider.md +6 -6
  226. package/api/@xmachines/play-svelte/functions/defineRegistry.md +1 -1
  227. package/api/@xmachines/play-svelte/functions/getActorContext.md +1 -1
  228. package/api/@xmachines/play-svelte/functions/getPlayViewContext.md +1 -1
  229. package/api/@xmachines/play-svelte/functions/setActorContext.md +1 -1
  230. package/api/@xmachines/play-svelte/interfaces/ActorProviderProps.md +8 -8
  231. package/api/@xmachines/play-svelte/interfaces/BaseComponentProps.md +1 -1
  232. package/api/@xmachines/play-svelte/interfaces/ComponentContext.md +1 -1
  233. package/api/@xmachines/play-svelte/interfaces/DefineRegistryOptions.md +6 -6
  234. package/api/@xmachines/play-svelte/interfaces/PlayUIProviderProps.md +11 -11
  235. package/api/@xmachines/play-svelte/interfaces/ViewContextValue.md +5 -5
  236. package/api/@xmachines/play-svelte/type-aliases/ActionFn.md +1 -1
  237. package/api/@xmachines/play-svelte/type-aliases/Actions.md +1 -1
  238. package/api/@xmachines/play-svelte/type-aliases/AnyPlayActor.md +1 -1
  239. package/api/@xmachines/play-svelte/type-aliases/ComponentFn.md +1 -1
  240. package/api/@xmachines/play-svelte/type-aliases/PlayRenderer.md +1 -1
  241. package/api/@xmachines/play-svelte/type-aliases/SetState.md +1 -1
  242. package/api/@xmachines/play-svelte/variables/PlayRenderer.md +1 -1
  243. package/api/@xmachines/play-svelte-spa-router/classes/RouteMap.md +17 -5
  244. package/api/@xmachines/play-svelte-spa-router/functions/connectRouter.md +1 -1
  245. package/api/@xmachines/play-svelte-spa-router/functions/createRouteMap.md +1 -1
  246. package/api/@xmachines/play-svelte-spa-router/interfaces/ConnectRouterOptions.md +6 -6
  247. package/api/@xmachines/play-svelte-spa-router/interfaces/PlayRouteEvent.md +16 -6
  248. package/api/@xmachines/play-svelte-spa-router/interfaces/RouteMapOptions.md +2 -2
  249. package/api/@xmachines/play-svelte-spa-router/interfaces/RouteMapping.md +3 -3
  250. package/api/@xmachines/play-svelte-spa-router/interfaces/RouterBridge.md +6 -6
  251. package/api/@xmachines/play-svelte-spa-router/interfaces/WindowLike.md +3 -3
  252. package/api/@xmachines/play-svelte-spa-router/type-aliases/RoutableActor.md +1 -1
  253. package/api/@xmachines/play-sveltekit-router/classes/RouteMap.md +17 -5
  254. package/api/@xmachines/play-sveltekit-router/functions/connectRouter.md +1 -1
  255. package/api/@xmachines/play-sveltekit-router/functions/createRouteMap.md +1 -1
  256. package/api/@xmachines/play-sveltekit-router/interfaces/ConnectRouterOptions.md +4 -4
  257. package/api/@xmachines/play-sveltekit-router/interfaces/LocationLike.md +3 -3
  258. package/api/@xmachines/play-sveltekit-router/interfaces/PlayRouteEvent.md +16 -6
  259. package/api/@xmachines/play-sveltekit-router/interfaces/RouteMapOptions.md +2 -2
  260. package/api/@xmachines/play-sveltekit-router/interfaces/RouteMapping.md +3 -3
  261. package/api/@xmachines/play-sveltekit-router/interfaces/RouterBridge.md +6 -6
  262. package/api/@xmachines/play-sveltekit-router/type-aliases/RoutableActor.md +1 -1
  263. package/api/@xmachines/play-tanstack-react-router/README.md +7 -1
  264. package/api/@xmachines/play-tanstack-react-router/classes/RouteMap.md +17 -5
  265. package/api/@xmachines/play-tanstack-react-router/classes/TanStackReactRouterBridge.md +69 -52
  266. package/api/@xmachines/play-tanstack-react-router/functions/createPlayRouterProvider.md +45 -0
  267. package/api/@xmachines/play-tanstack-react-router/functions/createRouteMap.md +1 -1
  268. package/api/@xmachines/play-tanstack-react-router/functions/createRouteMapFromTree.md +2 -2
  269. package/api/@xmachines/play-tanstack-react-router/functions/extractMachineRoutes.md +1 -1
  270. package/api/@xmachines/play-tanstack-react-router/interfaces/PlayActor.md +7 -7
  271. package/api/@xmachines/play-tanstack-react-router/interfaces/PlayRouteEvent.md +16 -6
  272. package/api/@xmachines/play-tanstack-react-router/interfaces/PlayRouterProviderBaseProps.md +32 -0
  273. package/api/@xmachines/play-tanstack-react-router/interfaces/PlayRouterProviderProps.md +17 -7
  274. package/api/@xmachines/play-tanstack-react-router/interfaces/RouteMapOptions.md +2 -2
  275. package/api/@xmachines/play-tanstack-react-router/interfaces/RouteMapping.md +3 -3
  276. package/api/@xmachines/play-tanstack-react-router/interfaces/RouteNavigateEvent.md +3 -3
  277. package/api/@xmachines/play-tanstack-react-router/interfaces/RouterBridge.md +6 -6
  278. package/api/@xmachines/play-tanstack-react-router/type-aliases/PlayRouterBridgeConstructor.md +30 -0
  279. package/api/@xmachines/play-tanstack-react-router/type-aliases/TanStackRouterInstance.md +1 -1
  280. package/api/@xmachines/play-tanstack-react-router/type-aliases/TanStackRouterLike.md +12 -4
  281. package/api/@xmachines/play-tanstack-react-router/{functions → variables}/PlayRouterProvider.md +8 -6
  282. package/api/@xmachines/play-tanstack-router/README.md +58 -0
  283. package/api/@xmachines/play-tanstack-router/classes/TanStackRouterBridgeBase.md +511 -0
  284. package/api/@xmachines/play-tanstack-router/type-aliases/TanStackRouteMapLike.md +57 -0
  285. package/api/@xmachines/play-tanstack-router/type-aliases/TanStackRouterLike.md +100 -0
  286. package/api/@xmachines/play-tanstack-solid-router/README.md +7 -1
  287. package/api/@xmachines/play-tanstack-solid-router/classes/RouteMap.md +17 -5
  288. package/api/@xmachines/play-tanstack-solid-router/classes/TanStackSolidRouterBridge.md +106 -79
  289. package/api/@xmachines/play-tanstack-solid-router/functions/createPlayRouterProvider.md +44 -0
  290. package/api/@xmachines/play-tanstack-solid-router/functions/createRouteMap.md +1 -1
  291. package/api/@xmachines/play-tanstack-solid-router/interfaces/PlayActor.md +7 -7
  292. package/api/@xmachines/play-tanstack-solid-router/interfaces/PlayRouteEvent.md +16 -6
  293. package/api/@xmachines/play-tanstack-solid-router/interfaces/PlayRouterProviderBaseProps.md +31 -0
  294. package/api/@xmachines/play-tanstack-solid-router/interfaces/PlayRouterProviderProps.md +15 -7
  295. package/api/@xmachines/play-tanstack-solid-router/interfaces/RouteMapOptions.md +2 -2
  296. package/api/@xmachines/play-tanstack-solid-router/interfaces/RouteMapping.md +3 -3
  297. package/api/@xmachines/play-tanstack-solid-router/interfaces/RouterBridge.md +6 -6
  298. package/api/@xmachines/play-tanstack-solid-router/type-aliases/PlayRouterBridgeConstructor.md +30 -0
  299. package/api/@xmachines/play-tanstack-solid-router/type-aliases/RoutableActor.md +1 -1
  300. package/api/@xmachines/play-tanstack-solid-router/type-aliases/TanStackRouterInstance.md +1 -1
  301. package/api/@xmachines/play-tanstack-solid-router/type-aliases/TanStackRouterLike.md +30 -7
  302. package/api/@xmachines/play-tanstack-solid-router/variables/PlayRouterProvider.md +33 -0
  303. package/api/@xmachines/play-vue/functions/defineRegistry.md +1 -1
  304. package/api/@xmachines/play-vue/functions/getPlayViewContext.md +1 -1
  305. package/api/@xmachines/play-vue/functions/useActor.md +1 -1
  306. package/api/@xmachines/play-vue/functions/useBoundProp.md +1 -1
  307. package/api/@xmachines/play-vue/interfaces/ActionProviderProps.md +1 -1
  308. package/api/@xmachines/play-vue/interfaces/ActorProviderProps.md +5 -5
  309. package/api/@xmachines/play-vue/interfaces/ComponentContext.md +1 -1
  310. package/api/@xmachines/play-vue/interfaces/DefineRegistryResult.md +1 -1
  311. package/api/@xmachines/play-vue/interfaces/JSONUIProviderProps.md +1 -1
  312. package/api/@xmachines/play-vue/interfaces/PlayUIProviderProps.md +8 -8
  313. package/api/@xmachines/play-vue/interfaces/RendererProps.md +1 -1
  314. package/api/@xmachines/play-vue/interfaces/StateProviderProps.md +1 -1
  315. package/api/@xmachines/play-vue/interfaces/ValidationProviderProps.md +1 -1
  316. package/api/@xmachines/play-vue/interfaces/ViewContextValue.md +5 -5
  317. package/api/@xmachines/play-vue/interfaces/VisibilityProviderProps.md +1 -1
  318. package/api/@xmachines/play-vue/type-aliases/AnyPlayActor.md +1 -1
  319. package/api/@xmachines/play-vue/type-aliases/ComponentEntry.md +1 -1
  320. package/api/@xmachines/play-vue/type-aliases/ComponentFn.md +1 -1
  321. package/api/@xmachines/play-vue/type-aliases/ComponentsMap.md +1 -1
  322. package/api/@xmachines/play-vue/type-aliases/DefineRegistryOptions.md +2 -2
  323. package/api/@xmachines/play-vue/type-aliases/RenderErrorHandler.md +1 -1
  324. package/api/@xmachines/play-vue/variables/ActionProvider.md +1 -1
  325. package/api/@xmachines/play-vue/variables/JSONUIProvider.md +1 -1
  326. package/api/@xmachines/play-vue/variables/PlayRenderer.md +1 -1
  327. package/api/@xmachines/play-vue/variables/Renderer.md +1 -1
  328. package/api/@xmachines/play-vue/variables/StateProvider.md +1 -1
  329. package/api/@xmachines/play-vue/variables/ValidationProvider.md +1 -1
  330. package/api/@xmachines/play-vue/variables/VisibilityProvider.md +1 -1
  331. package/api/@xmachines/play-vue-router/classes/RouteMap.md +17 -5
  332. package/api/@xmachines/play-vue-router/classes/VueRouterBridge.md +74 -63
  333. package/api/@xmachines/play-vue-router/functions/createRouteMap.md +1 -1
  334. package/api/@xmachines/play-vue-router/interfaces/PlayActor.md +7 -7
  335. package/api/@xmachines/play-vue-router/interfaces/PlayRouteEvent.md +16 -6
  336. package/api/@xmachines/play-vue-router/interfaces/RouteMapOptions.md +2 -2
  337. package/api/@xmachines/play-vue-router/interfaces/RouteMapping.md +3 -3
  338. package/api/@xmachines/play-vue-router/interfaces/RouterBridge.md +6 -6
  339. package/api/@xmachines/play-vue-router/type-aliases/RoutableActor.md +1 -1
  340. package/api/@xmachines/play-vue-router/variables/PlayRouterProvider.md +3 -3
  341. package/api/@xmachines/play-xstate/classes/PlayerActor.md +72 -169
  342. package/api/@xmachines/play-xstate/functions/buildRouteUrl.md +1 -1
  343. package/api/@xmachines/play-xstate/functions/composeGuards.md +1 -1
  344. package/api/@xmachines/play-xstate/functions/composeGuardsOr.md +1 -1
  345. package/api/@xmachines/play-xstate/functions/contextFieldMatches.md +1 -1
  346. package/api/@xmachines/play-xstate/functions/definePlayer.md +1 -1
  347. package/api/@xmachines/play-xstate/functions/deriveRoute.md +1 -1
  348. package/api/@xmachines/play-xstate/functions/eventMatches.md +1 -1
  349. package/api/@xmachines/play-xstate/functions/formatPlayRouteTransitions.md +1 -1
  350. package/api/@xmachines/play-xstate/functions/hasContext.md +1 -1
  351. package/api/@xmachines/play-xstate/functions/isAbsoluteRoute.md +1 -1
  352. package/api/@xmachines/play-xstate/functions/negateGuard.md +1 -1
  353. package/api/@xmachines/play-xstate/interfaces/PlayerConfig.md +3 -3
  354. package/api/@xmachines/play-xstate/interfaces/PlayerFactoryResumeOptions.md +2 -2
  355. package/api/@xmachines/play-xstate/interfaces/PlayerOptions.md +6 -6
  356. package/api/@xmachines/play-xstate/interfaces/RouteContext.md +5 -5
  357. package/api/@xmachines/play-xstate/interfaces/RouteObject.md +2 -2
  358. package/api/@xmachines/play-xstate/type-aliases/ComposedGuard.md +1 -1
  359. package/api/@xmachines/play-xstate/type-aliases/Guard.md +1 -1
  360. package/api/@xmachines/play-xstate/type-aliases/GuardArray.md +1 -1
  361. package/api/@xmachines/play-xstate/type-aliases/PlayerFactory.md +1 -1
  362. package/api/@xmachines/play-xstate/type-aliases/RouteMachineConfig.md +4 -4
  363. package/api/@xmachines/play-xstate/type-aliases/RouteMetadata.md +1 -1
  364. package/api/@xmachines/play-xstate/type-aliases/RouteStateNode.md +4 -4
  365. package/api/@xmachines/shared/vite-aliases/README.md +1 -0
  366. package/api/@xmachines/shared/vite-aliases/functions/xmAliases.md +7 -3
  367. package/api/@xmachines/shared/vite-aliases/functions/xmCacheDir.md +1 -1
  368. package/api/@xmachines/shared/vite-aliases/functions/xmOptimizeDeps.md +1 -1
  369. package/api/@xmachines/shared/vite-aliases/functions/xmResolve.md +6 -5
  370. package/api/@xmachines/shared/vite-aliases/functions/xmSvelteRunes.md +33 -0
  371. package/api/@xmachines/shared/vitest/README.md +5 -0
  372. package/api/@xmachines/shared/vitest/functions/defineXmBrowserConfig.md +42 -0
  373. package/api/@xmachines/shared/vitest/functions/defineXmVitestConfig.md +1 -1
  374. package/api/@xmachines/shared/vitest/interfaces/XmBrowserConfigOptions.md +16 -0
  375. package/api/README.md +1 -0
  376. package/api/llms.txt +4 -3
  377. package/contributing/architecture.md +74 -74
  378. package/contributing/configuration.md +2 -17
  379. package/contributing/deployment.md +8 -8
  380. package/contributing/development.md +2 -2
  381. package/examples/@xmachines/play-dom-demo/functions/createNavBar.md +1 -1
  382. package/examples/@xmachines/play-dom-demo/functions/initShell.md +1 -1
  383. package/examples/@xmachines/play-dom-demo/type-aliases/AuthCatalog.md +1 -1
  384. package/examples/@xmachines/play-dom-demo/variables/About.md +1 -1
  385. package/examples/@xmachines/play-dom-demo/variables/Contact.md +1 -1
  386. package/examples/@xmachines/play-dom-demo/variables/Dashboard.md +1 -1
  387. package/examples/@xmachines/play-dom-demo/variables/Home.md +1 -1
  388. package/examples/@xmachines/play-dom-demo/variables/Login.md +1 -1
  389. package/examples/@xmachines/play-dom-demo/variables/NavBarView.md +1 -1
  390. package/examples/@xmachines/play-dom-demo/variables/Navigation.md +1 -1
  391. package/examples/@xmachines/play-dom-demo/variables/Overview.md +1 -1
  392. package/examples/@xmachines/play-dom-demo/variables/Profile.md +1 -1
  393. package/examples/@xmachines/play-dom-demo/variables/Settings.md +1 -1
  394. package/examples/@xmachines/play-dom-demo/variables/Stats.md +1 -1
  395. package/examples/@xmachines/play-dom-demo/variables/authCatalog.md +1 -1
  396. package/examples/@xmachines/play-react-demo/functions/App.md +1 -1
  397. package/examples/@xmachines/play-react-demo/type-aliases/AuthCatalog.md +1 -1
  398. package/examples/@xmachines/play-react-demo/variables/About.md +1 -1
  399. package/examples/@xmachines/play-react-demo/variables/Contact.md +1 -1
  400. package/examples/@xmachines/play-react-demo/variables/Dashboard.md +1 -1
  401. package/examples/@xmachines/play-react-demo/variables/DebugPanel.md +1 -1
  402. package/examples/@xmachines/play-react-demo/variables/Home.md +1 -1
  403. package/examples/@xmachines/play-react-demo/variables/Login.md +1 -1
  404. package/examples/@xmachines/play-react-demo/variables/NavBar.md +1 -1
  405. package/examples/@xmachines/play-react-demo/variables/NavBarView.md +1 -1
  406. package/examples/@xmachines/play-react-demo/variables/Navigation.md +1 -1
  407. package/examples/@xmachines/play-react-demo/variables/Overview.md +1 -1
  408. package/examples/@xmachines/play-react-demo/variables/Profile.md +1 -1
  409. package/examples/@xmachines/play-react-demo/variables/Settings.md +1 -1
  410. package/examples/@xmachines/play-react-demo/variables/Shell.md +1 -1
  411. package/examples/@xmachines/play-react-demo/variables/Stats.md +1 -1
  412. package/examples/@xmachines/play-react-demo/variables/authCatalog.md +1 -1
  413. package/examples/@xmachines/play-solid-demo/functions/App.md +1 -1
  414. package/examples/@xmachines/play-solid-demo/type-aliases/AuthCatalog.md +1 -1
  415. package/examples/@xmachines/play-solid-demo/variables/About.md +1 -1
  416. package/examples/@xmachines/play-solid-demo/variables/Contact.md +1 -1
  417. package/examples/@xmachines/play-solid-demo/variables/Dashboard.md +1 -1
  418. package/examples/@xmachines/play-solid-demo/variables/DebugPanel.md +1 -1
  419. package/examples/@xmachines/play-solid-demo/variables/Home.md +1 -1
  420. package/examples/@xmachines/play-solid-demo/variables/Login.md +1 -1
  421. package/examples/@xmachines/play-solid-demo/variables/NavBar.md +1 -1
  422. package/examples/@xmachines/play-solid-demo/variables/NavBarView.md +1 -1
  423. package/examples/@xmachines/play-solid-demo/variables/Navigation.md +1 -1
  424. package/examples/@xmachines/play-solid-demo/variables/Overview.md +1 -1
  425. package/examples/@xmachines/play-solid-demo/variables/Profile.md +1 -1
  426. package/examples/@xmachines/play-solid-demo/variables/Settings.md +1 -1
  427. package/examples/@xmachines/play-solid-demo/variables/Shell.md +1 -1
  428. package/examples/@xmachines/play-solid-demo/variables/Stats.md +1 -1
  429. package/examples/@xmachines/play-solid-demo/variables/authCatalog.md +1 -1
  430. package/examples/@xmachines/play-svelte-demo/type-aliases/App.md +1 -1
  431. package/examples/@xmachines/play-svelte-demo/type-aliases/AuthCatalog.md +1 -1
  432. package/examples/@xmachines/play-svelte-demo/variables/App.md +1 -1
  433. package/examples/@xmachines/play-svelte-demo/variables/authCatalog.md +1 -1
  434. package/examples/@xmachines/play-vue-demo/type-aliases/AuthCatalog.md +1 -1
  435. package/examples/@xmachines/play-vue-demo/variables/App.md +1 -1
  436. package/examples/@xmachines/play-vue-demo/variables/authCatalog.md +1 -1
  437. package/guides/README.md +6 -44
  438. package/guides/getting-started.md +37 -37
  439. package/package.json +6 -3
  440. package/api/@xmachines/play-router/functions/createRouteMatcher.md +0 -53
  441. package/api/@xmachines/play-router/interfaces/RouteMatcher.md +0 -56
  442. package/api/@xmachines/play-tanstack-solid-router/functions/PlayRouterProvider.md +0 -33
@@ -0,0 +1,511 @@
1
+ [API](../../../README.md) / [@xmachines/play-tanstack-router](../README.md) / TanStackRouterBridgeBase
2
+
3
+ # Class: TanStackRouterBridgeBase
4
+
5
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:102](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L102)
6
+
7
+ Shared TanStack Router adapter implementing RouterBridge protocol via RouterBridgeBase
8
+
9
+ ## Remarks
10
+
11
+ Extends RouterBridgeBase to handle all common lifecycle and sync logic; adds
12
+ the TanStack-specific navigation and subscription methods shared by the React
13
+ and Solid adapters.
14
+
15
+ Subscribes to router.history (not router.subscribe("onBeforeLoad")) so that
16
+ back/forward browser navigation (popstate events) are also captured. The
17
+ router.subscribe("onBeforeLoad") approach only works when TanStack's
18
+ Transitioner component is mounted (i.e. inside a full <RouterProvider>).
19
+ Since this bridge is used without <RouterProvider>, we must subscribe to
20
+ the underlying history object directly — which is exactly what Transitioner
21
+ does internally: `router.history.subscribe(router.load)`.
22
+
23
+ Architectural Invariants:
24
+
25
+ - INV-02 (Passive Infrastructure): Router reflects actor state, never decides
26
+ - Actor validates all navigation via guards before URL changes
27
+
28
+ The class is concrete — it can be instantiated directly. The framework
29
+ packages re-export or subclass it purely to bind the public adapter name
30
+ (and, for Solid, to add the `dispose()` alias).
31
+
32
+ ## Example
33
+
34
+ ```typescript
35
+ const bridge = new TanStackRouterBridgeBase(router, actor, routeMap);
36
+ bridge.connect();
37
+ return () => bridge.disconnect();
38
+ ```
39
+
40
+ ## Extends
41
+
42
+ - [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md)
43
+
44
+ ## Extended by
45
+
46
+ - [`TanStackSolidRouterBridge`](../../play-tanstack-solid-router/classes/TanStackSolidRouterBridge.md)
47
+
48
+ ## Constructors
49
+
50
+ ### Constructor
51
+
52
+ ```ts
53
+ new TanStackRouterBridgeBase(
54
+ router,
55
+ actor,
56
+ routeMap): TanStackRouterBridgeBase;
57
+ ```
58
+
59
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:112](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L112)
60
+
61
+ Create a TanStack Router bridge
62
+
63
+ #### Parameters
64
+
65
+ | Parameter | Type | Description |
66
+ | ---------- | -------------------------------------------------------------------- | ------------------------------------------------- |
67
+ | `router` | [`TanStackRouterLike`](../type-aliases/TanStackRouterLike.md) | TanStack Router instance (from `createRouter`) |
68
+ | `actor` | [`RoutableActor`](../../play-dom-router/interfaces/RoutableActor.md) | XMachines actor instance |
69
+ | `routeMap` | [`TanStackRouteMapLike`](../type-aliases/TanStackRouteMapLike.md) | Bidirectional mapping between state IDs and paths |
70
+
71
+ #### Returns
72
+
73
+ `TanStackRouterBridgeBase`
74
+
75
+ #### Overrides
76
+
77
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`constructor`](../../play-router/classes/RouterBridgeBase.md#constructor)
78
+
79
+ ## Properties
80
+
81
+ | Property | Modifier | Type | Description | Inherited from | Defined in |
82
+ | --------------------------------------------------------------------- | ----------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
83
+ | <a id="property-actor"></a> `actor` | `readonly` | [`RoutableActor`](../../play-dom-router/interfaces/RoutableActor.md) | A `RoutableActor` exposing `currentRoute`, `initialRoute`, and `send`. | [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`actor`](../../play-router/classes/RouterBridgeBase.md#property-actor) | play-router/dist/router-bridge-base.d.ts:73 |
84
+ | <a id="property-hasconnectedonce"></a> `hasConnectedOnce` | `protected` | `boolean` | - | [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`hasConnectedOnce`](../../play-router/classes/RouterBridgeBase.md#property-hasconnectedonce) | play-router/dist/router-bridge-base.d.ts:79 |
85
+ | <a id="property-isconnected"></a> `isConnected` | `protected` | `boolean` | - | [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`isConnected`](../../play-router/classes/RouterBridgeBase.md#property-isconnected) | play-router/dist/router-bridge-base.d.ts:78 |
86
+ | <a id="property-isprocessingnavigation"></a> `isProcessingNavigation` | `protected` | `boolean` | Guards `syncActorFromRouter` against re-entrant calls triggered by the actor's own guard redirects (router→actor send → signal fires → actor→router push → another syncActorFromRouter before the first one returns). NOT used for actor→router echo suppression — that is handled exclusively by `lastSyncedPath`, which is updated before `navigateRouter()` is called so any router callback for the same path short-circuits at the `sanitized === lastSyncedPath` check in `syncActorFromRouter`. | [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`isProcessingNavigation`](../../play-router/classes/RouterBridgeBase.md#property-isprocessingnavigation) | play-router/dist/router-bridge-base.d.ts:91 |
87
+ | <a id="property-lastsyncedpath"></a> `lastSyncedPath` | `protected` | `string` \| `null` | - | [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`lastSyncedPath`](../../play-router/classes/RouterBridgeBase.md#property-lastsyncedpath) | play-router/dist/router-bridge-base.d.ts:80 |
88
+ | <a id="property-routemap"></a> `routeMap` | `readonly` | `object` | Bidirectional route map for `stateId ↔ path` resolution. Provide `getStateIdByPath` and `getPathByStateId`. Framework adapters typically wrap the result of `createRouteMap(machine)` or an equivalent. `getPathByStateId` may be keyed on either the `"#stateId"` or the bare `"stateId"` form — both forms are tried automatically by the bridge, so custom implementations (e.g. plain test objects) need only handle one. | [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`routeMap`](../../play-router/classes/RouterBridgeBase.md#property-routemap) | play-router/dist/router-bridge-base.d.ts:74 |
89
+ | `routeMap.getPathByStateId` | `public` | `string` \| `null` \| `undefined` | - | - | play-router/dist/router-bridge-base.d.ts:76 |
90
+ | `routeMap.getStateIdByPath` | `public` | `string` \| `null` \| `undefined` | - | - | play-router/dist/router-bridge-base.d.ts:75 |
91
+ | <a id="property-router"></a> `router` | `readonly` | [`TanStackRouterLike`](../type-aliases/TanStackRouterLike.md) | TanStack Router instance (from `createRouter`) | - | [play-tanstack-router/src/tanstack-router-bridge-base.ts:113](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L113) |
92
+ | <a id="property-routewatcher"></a> `routeWatcher` | `protected` | \| [`RouteWatcherHandle`](../../play-router/interfaces/RouteWatcherHandle.md) \| `null` | - | [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`routeWatcher`](../../play-router/classes/RouterBridgeBase.md#property-routewatcher) | play-router/dist/router-bridge-base.d.ts:92 |
93
+
94
+ ## Methods
95
+
96
+ ### connect()
97
+
98
+ ```ts
99
+ connect(): void;
100
+ ```
101
+
102
+ Defined in: play-router/dist/router-bridge-base.d.ts:120
103
+
104
+ Connect the router bridge to the Actor.
105
+
106
+ Sets up the TC39 Signal watcher for actor → router direction and
107
+ starts watching router changes (framework-specific).
108
+
109
+ Ordering here is part of the bridge contract:
110
+
111
+ - `lastSyncedPath` is seeded in the constructor from `actor.currentRoute`
112
+ - the actor watcher is installed before adapter router subscriptions
113
+ - initial sync then resolves deep-link vs restore using `actor.initialRoute`
114
+
115
+ Adapters that need custom initial-sync behavior should override
116
+ `getInitialRouterPath()` rather than reordering `connect()` steps.
117
+
118
+ #### Returns
119
+
120
+ `void`
121
+
122
+ #### Inherited from
123
+
124
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`connect`](../../play-router/classes/RouterBridgeBase.md#connect)
125
+
126
+ ---
127
+
128
+ ### disconnect()
129
+
130
+ ```ts
131
+ disconnect(): void;
132
+ ```
133
+
134
+ Defined in: play-router/dist/router-bridge-base.d.ts:126
135
+
136
+ Disconnect the router bridge from the Actor.
137
+
138
+ Stops signal watching and unregisters framework-specific router listener.
139
+
140
+ #### Returns
141
+
142
+ `void`
143
+
144
+ #### Inherited from
145
+
146
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`disconnect`](../../play-router/classes/RouterBridgeBase.md#disconnect)
147
+
148
+ ---
149
+
150
+ ### extractParams()
151
+
152
+ ```ts
153
+ protected extractParams(pathname, stateId): Record<string, string>;
154
+ ```
155
+
156
+ Defined in: play-router/dist/router-bridge-base.d.ts:192
157
+
158
+ Extract path parameters from URL using the URLPattern API.
159
+
160
+ Accesses `globalThis.URLPattern` at runtime — no polyfill is imported by this
161
+ library. If `URLPattern` is unavailable and the matched route has parameterized
162
+ segments, a `URLPatternUnavailableError` is thrown — callers must provide a polyfill
163
+ for environments without native URLPattern support (Node.js < 24, older browsers).
164
+
165
+ #### Parameters
166
+
167
+ | Parameter | Type | Description |
168
+ | ---------- | -------- | ----------------------------------------------------- |
169
+ | `pathname` | `string` | The actual URL path (e.g., '/profile/john') |
170
+ | `stateId` | `string` | The matched state ID for looking up the route pattern |
171
+
172
+ #### Returns
173
+
174
+ `Record`\<`string`, `string`\>
175
+
176
+ Extracted path parameters, or empty object if no match
177
+
178
+ #### Throws
179
+
180
+ When URLPattern is absent and the route is parameterized
181
+
182
+ #### Inherited from
183
+
184
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`extractParams`](../../play-router/classes/RouterBridgeBase.md#extractparams)
185
+
186
+ ---
187
+
188
+ ### extractQuery()
189
+
190
+ ```ts
191
+ protected extractQuery(search): Record<string, string>;
192
+ ```
193
+
194
+ Defined in: play-router/dist/router-bridge-base.d.ts:232
195
+
196
+ Extract query parameters from URL search string.
197
+
198
+ #### Parameters
199
+
200
+ | Parameter | Type | Description |
201
+ | --------- | -------- | ------------------------------------------------ |
202
+ | `search` | `string` | URL search string (e.g., '?tab=security&page=1') |
203
+
204
+ #### Returns
205
+
206
+ `Record`\<`string`, `string`\>
207
+
208
+ Extracted query parameters or empty object
209
+
210
+ #### Inherited from
211
+
212
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`extractQuery`](../../play-router/classes/RouterBridgeBase.md#extractquery)
213
+
214
+ ---
215
+
216
+ ### getInitialRouterPath()
217
+
218
+ ```ts
219
+ protected getInitialRouterPath(): string | null;
220
+ ```
221
+
222
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:153](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L153)
223
+
224
+ Read the router's current pathname for initial sync.
225
+
226
+ Called once in connect() to handle cold-load / deep-link scenarios where
227
+ the URL differs from the actor's initial state (e.g. user pastes /dashboard
228
+ while logged out — the actor must be redirected to /login before rendering).
229
+
230
+ Uses `router.history.location.pathname` — reflects `window.location` immediately,
231
+ before the router has been loaded or a `<RouterProvider>` mounted.
232
+ `router.state.location` is only populated after `router.load()` which may not
233
+ have run yet when the bridge first connects in a component effect.
234
+
235
+ The base class `connect()` uses `actor.initialRoute` to distinguish:
236
+
237
+ - **Deep-link:** router URL differs from machine's initial route → router wins.
238
+ - **Restore:** router at machine's initial route, actor at a different restored
239
+ route → actor wins, bridge pushes actor's restored route to the router.
240
+
241
+ #### Returns
242
+
243
+ `string` \| `null`
244
+
245
+ #### Overrides
246
+
247
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`getInitialRouterPath`](../../play-router/classes/RouterBridgeBase.md#getinitialrouterpath)
248
+
249
+ ---
250
+
251
+ ### getInitialRouterSearch()
252
+
253
+ ```ts
254
+ protected getInitialRouterSearch(): string | undefined;
255
+ ```
256
+
257
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:169](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L169)
258
+
259
+ Return the initial URL search string for query-param forwarding on `connect()`.
260
+
261
+ Reads `router.history.location.search` — the same source used by
262
+ `getInitialRouterPath()`, which reflects `window.location` immediately before
263
+ `router.load()` or `<RouterProvider>` mounts. An empty string returns `undefined`
264
+ so `syncActorFromRouter` produces `query: {}` rather than parsing an empty string.
265
+
266
+ #### Returns
267
+
268
+ `string` \| `undefined`
269
+
270
+ #### Overrides
271
+
272
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`getInitialRouterSearch`](../../play-router/classes/RouterBridgeBase.md#getinitialroutersearch)
273
+
274
+ ---
275
+
276
+ ### navigateRouter()
277
+
278
+ ```ts
279
+ protected navigateRouter(path): void;
280
+ ```
281
+
282
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:131](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L131)
283
+
284
+ Navigate TanStack Router to the given path.
285
+
286
+ Calls `router.load()` (fire-and-forget) after `navigate` so TanStack re-runs
287
+ route matching and loaders — `navigate` alone does not when no
288
+ `<RouterProvider>` (Transitioner) is mounted.
289
+
290
+ #### Parameters
291
+
292
+ | Parameter | Type |
293
+ | --------- | -------- |
294
+ | `path` | `string` |
295
+
296
+ #### Returns
297
+
298
+ `void`
299
+
300
+ #### Overrides
301
+
302
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`navigateRouter`](../../play-router/classes/RouterBridgeBase.md#navigaterouter)
303
+
304
+ ---
305
+
306
+ ### resolveNavigationPath()
307
+
308
+ ```ts
309
+ protected resolveNavigationPath(route): string | null;
310
+ ```
311
+
312
+ Defined in: play-router/dist/router-bridge-base.d.ts:211
313
+
314
+ Resolve an actor route value to a concrete URL path for navigation.
315
+
316
+ Bridges that receive raw `actor.currentRoute` values in `navigateRouter`
317
+ can call this to normalize stateIds (with or without `#` prefix) to paths.
318
+ Returns `null` when navigation is not possible:
319
+
320
+ - unknown stateId with no route map entry
321
+ - parameterized or wildcard pattern (e.g. `/profile/:id`, `/docs/*`) — no
322
+ concrete values available to build a real URL
323
+ - non-path string that isn't a known stateId
324
+
325
+ StateId lookups try both the `"#stateId"` and bare `"stateId"` forms
326
+ automatically (via `lookupPathByStateId`), so custom route maps keyed on
327
+ only one form still resolve.
328
+
329
+ #### Parameters
330
+
331
+ | Parameter | Type | Description |
332
+ | --------- | -------- | -------------------------------------------------------------- |
333
+ | `route` | `string` | Raw actor route value (stateId, `#`-stateId, or concrete path) |
334
+
335
+ #### Returns
336
+
337
+ `string` \| `null`
338
+
339
+ Concrete URL path, or `null` if navigation should be skipped
340
+
341
+ #### Inherited from
342
+
343
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`resolveNavigationPath`](../../play-router/classes/RouterBridgeBase.md#resolvenavigationpath)
344
+
345
+ ---
346
+
347
+ ### sanitizePath()
348
+
349
+ ```ts
350
+ protected sanitizePath(pathname): string | null;
351
+ ```
352
+
353
+ Defined in: play-router/dist/router-bridge-base.d.ts:259
354
+
355
+ Sanitize and validate a raw URL pathname received from the router.
356
+
357
+ Applies the path-length cap (2048 chars), strips query strings and fragments
358
+ that may have been included in the pathname segment, and normalises
359
+ consecutive slashes.
360
+
361
+ Implementations that bypass `syncActorFromRouter()` (e.g. when using
362
+ framework-native reactive watchers that receive pre-parsed route objects)
363
+ MUST call this method before passing the path to any route-map lookup.
364
+ `syncActorFromRouter()` calls this internally, so bridges that delegate
365
+ to it do not need to call `sanitizePath` themselves.
366
+
367
+ #### Parameters
368
+
369
+ | Parameter | Type | Description |
370
+ | ---------- | -------- | ------------------------------------------- |
371
+ | `pathname` | `string` | Raw URL pathname from the framework router. |
372
+
373
+ #### Returns
374
+
375
+ `string` \| `null`
376
+
377
+ Sanitized pathname, or `null` if the path is invalid / too long.
378
+
379
+ #### Inherited from
380
+
381
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`sanitizePath`](../../play-router/classes/RouterBridgeBase.md#sanitizepath)
382
+
383
+ ---
384
+
385
+ ### syncActorFromRouter()
386
+
387
+ ```ts
388
+ protected syncActorFromRouter(pathname, search?): void;
389
+ ```
390
+
391
+ Defined in: play-router/dist/router-bridge-base.d.ts:178
392
+
393
+ Sync actor state when router location changes.
394
+
395
+ **Known path:** sends a `play.route` event to the actor with the matched
396
+ stateId, params, and query. Prevents circular updates via the
397
+ `isProcessingNavigation` flag.
398
+
399
+ **Unknown/unmapped path:** does NOT send a `play.route` event (actor state
400
+ is unchanged). Instead, actively corrects the browser URL by calling
401
+ `navigateRouter(actor.currentRoute.get())` — keeping the URL in sync with
402
+ actor state even when the user types an invalid path into the address bar
403
+ or pushes one programmatically mid-session. `lastSyncedPath` is set to the
404
+ resolved concrete path before calling `navigateRouter` so the router's own
405
+ callback for that navigation short-circuits the echo-suppression guard and
406
+ sends no spurious event.
407
+
408
+ #### Parameters
409
+
410
+ | Parameter | Type |
411
+ | ---------- | -------- |
412
+ | `pathname` | `string` |
413
+ | `search?` | `string` |
414
+
415
+ #### Returns
416
+
417
+ `void`
418
+
419
+ #### Inherited from
420
+
421
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`syncActorFromRouter`](../../play-router/classes/RouterBridgeBase.md#syncactorfromrouter)
422
+
423
+ ---
424
+
425
+ ### syncRouterFromActor()
426
+
427
+ ```ts
428
+ protected syncRouterFromActor(route): void;
429
+ ```
430
+
431
+ Defined in: play-router/dist/router-bridge-base.d.ts:146
432
+
433
+ Sync router location when actor route signal changes.
434
+
435
+ Resolves the actor route to a concrete URL path and calls navigateRouter()
436
+ for framework-specific navigation. When the route cannot be resolved
437
+ (unknown stateId, parameterized pattern with no concrete values) the push
438
+ is skipped entirely — `navigateRouter` is never called with a raw stateId
439
+ or pattern.
440
+
441
+ Echo suppression — preventing the router's own callback from re-driving the
442
+ actor — is handled entirely by `lastSyncedPath`: it is set to the resolved
443
+ path before `navigateRouter()` is called, so any `syncActorFromRouter`
444
+ invocation for the same path short-circuits at the
445
+ `sanitized === lastSyncedPath` check and sends no event regardless of
446
+ whether the callback fires synchronously or asynchronously.
447
+
448
+ `isProcessingNavigation` is NOT set here — it is only used inside
449
+ `syncActorFromRouter` to guard against re-entrant guard-redirect loops.
450
+
451
+ #### Parameters
452
+
453
+ | Parameter | Type |
454
+ | --------- | --------- |
455
+ | `route` | `unknown` |
456
+
457
+ #### Returns
458
+
459
+ `void`
460
+
461
+ #### Inherited from
462
+
463
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`syncRouterFromActor`](../../play-router/classes/RouterBridgeBase.md#syncrouterfromactor)
464
+
465
+ ---
466
+
467
+ ### unwatchRouterChanges()
468
+
469
+ ```ts
470
+ protected unwatchRouterChanges(): void;
471
+ ```
472
+
473
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:196](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L196)
474
+
475
+ Stop watching TanStack Router changes.
476
+
477
+ #### Returns
478
+
479
+ `void`
480
+
481
+ #### Overrides
482
+
483
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`unwatchRouterChanges`](../../play-router/classes/RouterBridgeBase.md#unwatchrouterchanges)
484
+
485
+ ---
486
+
487
+ ### watchRouterChanges()
488
+
489
+ ```ts
490
+ protected watchRouterChanges(): void;
491
+ ```
492
+
493
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:184](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L184)
494
+
495
+ Subscribe to ALL navigation events via router.history.
496
+
497
+ router.history.subscribe fires for PUSH, POP, BACK, FORWARD, REPLACE, and GO —
498
+ covering both link clicks and browser back/forward button presses.
499
+
500
+ The subscriber callback receives { location, action } where location is the
501
+ new history location with pathname and search already updated. It calls
502
+ `router.load()` (fire-and-forget) so TanStack re-runs matching/loaders for the
503
+ new location, mirroring what Transitioner does when `<RouterProvider>` is mounted.
504
+
505
+ #### Returns
506
+
507
+ `void`
508
+
509
+ #### Overrides
510
+
511
+ [`RouterBridgeBase`](../../play-router/classes/RouterBridgeBase.md).[`watchRouterChanges`](../../play-router/classes/RouterBridgeBase.md#watchrouterchanges)
@@ -0,0 +1,57 @@
1
+ [API](../../../README.md) / [@xmachines/play-tanstack-router](../README.md) / TanStackRouteMapLike
2
+
3
+ # Type Alias: TanStackRouteMapLike
4
+
5
+ ```ts
6
+ type TanStackRouteMapLike = object;
7
+ ```
8
+
9
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:66](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L66)
10
+
11
+ Narrow route-map surface required by `TanStackRouterBridgeBase`.
12
+ `RouteMap` from `@xmachines/play-router` satisfies it (null returns are
13
+ adapted to undefined internally).
14
+
15
+ `getPathByStateId` may receive the stateId in either `"#stateId"` or bare
16
+ `"stateId"` form — the bridge tries both forms automatically, so custom
17
+ implementations keyed on a single form still resolve.
18
+
19
+ ## Methods
20
+
21
+ ### getPathByStateId()
22
+
23
+ ```ts
24
+ getPathByStateId(id): string | null | undefined;
25
+ ```
26
+
27
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:68](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L68)
28
+
29
+ #### Parameters
30
+
31
+ | Parameter | Type |
32
+ | --------- | -------- |
33
+ | `id` | `string` |
34
+
35
+ #### Returns
36
+
37
+ `string` \| `null` \| `undefined`
38
+
39
+ ---
40
+
41
+ ### getStateIdByPath()
42
+
43
+ ```ts
44
+ getStateIdByPath(path): string | null | undefined;
45
+ ```
46
+
47
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:67](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L67)
48
+
49
+ #### Parameters
50
+
51
+ | Parameter | Type |
52
+ | --------- | -------- |
53
+ | `path` | `string` |
54
+
55
+ #### Returns
56
+
57
+ `string` \| `null` \| `undefined`
@@ -0,0 +1,100 @@
1
+ [API](../../../README.md) / [@xmachines/play-tanstack-router](../README.md) / TanStackRouterLike
2
+
3
+ # Type Alias: TanStackRouterLike
4
+
5
+ ```ts
6
+ type TanStackRouterLike = object;
7
+ ```
8
+
9
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:36](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L36)
10
+
11
+ Structural (type-only) interface for the TanStack Router surface used by
12
+ `TanStackRouterBridgeBase`. Both `@tanstack/react-router` and
13
+ `@tanstack/solid-router` instances satisfy it.
14
+
15
+ ## Properties
16
+
17
+ ### history
18
+
19
+ ```ts
20
+ history: object;
21
+ ```
22
+
23
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:44](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L44)
24
+
25
+ #### location
26
+
27
+ ```ts
28
+ location: object;
29
+ ```
30
+
31
+ Current location — populated from `window.location` when `createRouter()` runs,
32
+ before `router.load()`. Always available in the browser.
33
+ `router.state.location` is only populated after `router.load()` and may be stale.
34
+
35
+ ##### location.pathname
36
+
37
+ ```ts
38
+ pathname: string;
39
+ ```
40
+
41
+ ##### location.search?
42
+
43
+ ```ts
44
+ optional search?: string;
45
+ ```
46
+
47
+ #### subscribe()
48
+
49
+ ```ts
50
+ subscribe(handler): () => void;
51
+ ```
52
+
53
+ ##### Parameters
54
+
55
+ | Parameter | Type |
56
+ | --------- | ------------------- |
57
+ | `handler` | (`event`) => `void` |
58
+
59
+ ##### Returns
60
+
61
+ () => `void`
62
+
63
+ ## Methods
64
+
65
+ ### load()?
66
+
67
+ ```ts
68
+ optional load(): void | Promise<void>;
69
+ ```
70
+
71
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:43](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L43)
72
+
73
+ Re-runs TanStack route matching and loaders for the current location.
74
+ Optional: the bridge calls it (fire-and-forget) after every navigation so
75
+ matching/loaders stay in sync even without a mounted `<RouterProvider>`.
76
+
77
+ #### Returns
78
+
79
+ `void` \| `Promise`\<`void`\>
80
+
81
+ ---
82
+
83
+ ### navigate()
84
+
85
+ ```ts
86
+ navigate(args): void;
87
+ ```
88
+
89
+ Defined in: [play-tanstack-router/src/tanstack-router-bridge-base.ts:37](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.54/packages/play-tanstack-router/src/tanstack-router-bridge-base.ts#L37)
90
+
91
+ #### Parameters
92
+
93
+ | Parameter | Type |
94
+ | --------- | --------------------- |
95
+ | `args` | \{ `to`: `string`; \} |
96
+ | `args.to` | `string` |
97
+
98
+ #### Returns
99
+
100
+ `void`