@xmachines/docs 1.0.0-beta.29 → 1.0.0-beta.30
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.
- package/api/@xmachines/play/classes/PlayError.md +4 -4
- package/api/@xmachines/play/type-aliases/PlayEvent.md +2 -2
- package/api/@xmachines/play-actor/classes/AbstractActor.md +3 -3
- package/api/@xmachines/play-actor/functions/typedSpec.md +1 -1
- package/api/@xmachines/play-actor/interfaces/PlaySpec.md +2 -2
- package/api/@xmachines/play-actor/interfaces/Routable.md +3 -3
- package/api/@xmachines/play-actor/interfaces/ViewMetadata.md +3 -3
- package/api/@xmachines/play-actor/interfaces/Viewable.md +2 -2
- package/api/@xmachines/play-dom/classes/PlayRenderer.md +4 -4
- package/api/@xmachines/play-dom/functions/connectRenderer.md +1 -1
- package/api/@xmachines/play-dom/functions/defineRegistry.md +1 -1
- package/api/@xmachines/play-dom/functions/renderSpec.md +1 -1
- package/api/@xmachines/play-dom/interfaces/ComponentContext.md +7 -7
- package/api/@xmachines/play-dom/interfaces/ConnectRendererOptions.md +7 -7
- package/api/@xmachines/play-dom/interfaces/DefineRegistryOptions.md +3 -3
- package/api/@xmachines/play-dom/interfaces/DefineRegistryResult.md +3 -3
- package/api/@xmachines/play-dom/interfaces/DomRenderContext.md +7 -7
- package/api/@xmachines/play-dom/interfaces/EventHandle.md +4 -4
- package/api/@xmachines/play-dom/interfaces/PlayDomOptions.md +3 -3
- package/api/@xmachines/play-dom/type-aliases/ComponentFn.md +1 -1
- package/api/@xmachines/play-dom/type-aliases/ComponentRegistry.md +1 -1
- package/api/@xmachines/play-dom/type-aliases/DomComponentRenderer.md +1 -1
- package/api/@xmachines/play-dom/type-aliases/DomRegistry.md +1 -1
- package/api/@xmachines/play-dom-router/functions/connectRouter.md +1 -1
- package/api/@xmachines/play-dom-router/functions/createBrowserHistory.md +1 -1
- package/api/@xmachines/play-dom-router/functions/createRouteMap.md +1 -1
- package/api/@xmachines/play-dom-router/functions/createRouter.md +1 -1
- package/api/@xmachines/play-dom-router/interfaces/BrowserHistory.md +14 -14
- package/api/@xmachines/play-dom-router/interfaces/BrowserWindow.md +14 -14
- package/api/@xmachines/play-dom-router/interfaces/ConnectRouterOptions.md +4 -4
- package/api/@xmachines/play-dom-router/interfaces/PlayRouteEvent.md +6 -6
- package/api/@xmachines/play-dom-router/interfaces/RouteMap.md +3 -3
- package/api/@xmachines/play-dom-router/interfaces/RouteMapLike.md +3 -3
- package/api/@xmachines/play-dom-router/interfaces/RouteMapping.md +3 -3
- package/api/@xmachines/play-dom-router/interfaces/RouterBridge.md +3 -3
- package/api/@xmachines/play-dom-router/interfaces/VanillaRouter.md +4 -4
- package/api/@xmachines/play-dom-router/type-aliases/RoutableActor.md +1 -1
- package/api/@xmachines/play-react/classes/PlayErrorBoundary.md +5 -5
- package/api/@xmachines/play-react/functions/useActor.md +1 -1
- package/api/@xmachines/play-react/functions/useSignalEffect.md +1 -1
- package/api/@xmachines/play-react/interfaces/PlayErrorBoundaryProps.md +4 -4
- package/api/@xmachines/play-react/interfaces/PlayErrorBoundaryState.md +3 -3
- package/api/@xmachines/play-react/interfaces/PlayRendererProps.md +7 -7
- package/api/@xmachines/play-react/type-aliases/PlayActor.md +1 -1
- package/api/@xmachines/play-react/variables/PlayRenderer.md +1 -1
- package/api/@xmachines/play-react-router/classes/ReactRouterBridge.md +23 -23
- package/api/@xmachines/play-react-router/classes/RouteMap.md +4 -4
- package/api/@xmachines/play-react-router/functions/PlayRouterProvider.md +1 -1
- package/api/@xmachines/play-react-router/functions/createRouteMapFromTree.md +1 -1
- package/api/@xmachines/play-react-router/interfaces/PlayRouteEvent.md +6 -6
- package/api/@xmachines/play-react-router/interfaces/PlayRouterProviderProps.md +5 -5
- package/api/@xmachines/play-react-router/interfaces/RouteMapping.md +3 -3
- package/api/@xmachines/play-react-router/interfaces/RouterBridge.md +3 -3
- package/api/@xmachines/play-router/classes/BaseRouteMap.md +4 -4
- package/api/@xmachines/play-router/classes/RouterBridgeBase.md +23 -23
- package/api/@xmachines/play-router/functions/buildPlayRouteEvent.md +1 -1
- package/api/@xmachines/play-router/functions/buildRouteTree.md +1 -1
- package/api/@xmachines/play-router/functions/createRouteMap.md +1 -1
- package/api/@xmachines/play-router/functions/createRouteMapFromMachine.md +1 -1
- package/api/@xmachines/play-router/functions/createRouteMapFromTree.md +1 -1
- package/api/@xmachines/play-router/functions/detectDuplicateRoutes.md +1 -1
- package/api/@xmachines/play-router/functions/extractMachineRoutes.md +1 -1
- package/api/@xmachines/play-router/functions/extractQuery.md +1 -1
- package/api/@xmachines/play-router/functions/extractRouteParams.md +1 -1
- package/api/@xmachines/play-router/functions/findRouteById.md +1 -1
- package/api/@xmachines/play-router/functions/findRouteByPath.md +1 -1
- package/api/@xmachines/play-router/functions/getNavigableRoutes.md +1 -1
- package/api/@xmachines/play-router/functions/getRoutableRoutes.md +1 -1
- package/api/@xmachines/play-router/functions/getTransitionReachableRoutes.md +1 -1
- package/api/@xmachines/play-router/functions/isRouteReachable.md +1 -1
- package/api/@xmachines/play-router/functions/machineToGraph.md +1 -1
- package/api/@xmachines/play-router/functions/routeExists.md +1 -1
- package/api/@xmachines/play-router/functions/sanitizePathname.md +1 -1
- package/api/@xmachines/play-router/functions/validateRouteFormat.md +1 -1
- package/api/@xmachines/play-router/functions/validateStateExists.md +1 -1
- package/api/@xmachines/play-router/interfaces/BuildPlayRouteEventOptions.md +4 -4
- package/api/@xmachines/play-router/interfaces/LocationLike.md +3 -3
- package/api/@xmachines/play-router/interfaces/MachineEdgeData.md +3 -3
- package/api/@xmachines/play-router/interfaces/MachineNodeData.md +5 -5
- package/api/@xmachines/play-router/interfaces/PlayRouteEvent.md +6 -6
- package/api/@xmachines/play-router/interfaces/RouteInfo.md +8 -8
- package/api/@xmachines/play-router/interfaces/RouteMap.md +4 -4
- package/api/@xmachines/play-router/interfaces/RouteMapping.md +3 -3
- package/api/@xmachines/play-router/interfaces/RouteMatch.md +3 -3
- package/api/@xmachines/play-router/interfaces/RouteNode.md +10 -10
- package/api/@xmachines/play-router/interfaces/RouteObject.md +2 -2
- package/api/@xmachines/play-router/interfaces/RouteTree.md +5 -5
- package/api/@xmachines/play-router/interfaces/RouteWatcherHandle.md +3 -3
- package/api/@xmachines/play-router/interfaces/RouterBridge.md +3 -3
- package/api/@xmachines/play-router/interfaces/WindowLike.md +3 -3
- package/api/@xmachines/play-router/type-aliases/MachineGraph.md +1 -1
- package/api/@xmachines/play-router/type-aliases/RouteMetadata.md +1 -1
- package/api/@xmachines/play-signals/functions/watchSignal.md +1 -1
- package/api/@xmachines/play-signals/interfaces/ComputedOptions.md +2 -2
- package/api/@xmachines/play-signals/interfaces/SignalComputed.md +2 -2
- package/api/@xmachines/play-signals/interfaces/SignalOptions.md +2 -2
- package/api/@xmachines/play-signals/interfaces/SignalState.md +3 -3
- package/api/@xmachines/play-signals/interfaces/SignalWatcher.md +4 -4
- package/api/@xmachines/play-signals/type-aliases/WatcherNotify.md +1 -1
- package/api/@xmachines/play-solid/functions/useActor.md +1 -1
- package/api/@xmachines/play-solid/interfaces/PlayRendererProps.md +7 -7
- package/api/@xmachines/play-solid/type-aliases/PlayActor.md +1 -1
- package/api/@xmachines/play-solid/variables/PlayRenderer.md +1 -1
- package/api/@xmachines/play-solid-router/classes/RouteMap.md +4 -4
- package/api/@xmachines/play-solid-router/classes/SolidRouterBridge.md +24 -24
- package/api/@xmachines/play-solid-router/functions/PlayRouterProvider.md +1 -1
- package/api/@xmachines/play-solid-router/functions/createRouteMap.md +1 -1
- package/api/@xmachines/play-solid-router/interfaces/AbstractActor.md +3 -3
- package/api/@xmachines/play-solid-router/interfaces/PlayRouteEvent.md +6 -6
- package/api/@xmachines/play-solid-router/interfaces/PlayRouterProviderProps.md +5 -5
- package/api/@xmachines/play-solid-router/interfaces/RouteMapping.md +3 -3
- package/api/@xmachines/play-solid-router/interfaces/RouterBridge.md +3 -3
- package/api/@xmachines/play-solid-router/type-aliases/RoutableActor.md +1 -1
- package/api/@xmachines/play-solid-router/type-aliases/SolidRouterHooks.md +4 -4
- package/api/@xmachines/play-svelte/interfaces/PlayRendererProps.md +7 -7
- package/api/@xmachines/play-svelte-spa-router/classes/RouteMap.md +4 -4
- package/api/@xmachines/play-svelte-spa-router/functions/connectRouter.md +1 -1
- package/api/@xmachines/play-svelte-spa-router/functions/createRouteMap.md +1 -1
- package/api/@xmachines/play-svelte-spa-router/interfaces/ConnectRouterOptions.md +4 -4
- package/api/@xmachines/play-svelte-spa-router/interfaces/PlayRouteEvent.md +6 -6
- package/api/@xmachines/play-svelte-spa-router/interfaces/RouteMapping.md +3 -3
- package/api/@xmachines/play-svelte-spa-router/interfaces/RouterBridge.md +3 -3
- package/api/@xmachines/play-svelte-spa-router/interfaces/WindowLike.md +3 -3
- package/api/@xmachines/play-svelte-spa-router/type-aliases/RoutableActor.md +1 -1
- package/api/@xmachines/play-sveltekit-router/classes/RouteMap.md +4 -4
- package/api/@xmachines/play-sveltekit-router/functions/connectRouter.md +1 -1
- package/api/@xmachines/play-sveltekit-router/functions/createRouteMap.md +1 -1
- package/api/@xmachines/play-sveltekit-router/interfaces/ConnectRouterOptions.md +4 -4
- package/api/@xmachines/play-sveltekit-router/interfaces/LocationLike.md +3 -3
- package/api/@xmachines/play-sveltekit-router/interfaces/PlayRouteEvent.md +6 -6
- package/api/@xmachines/play-sveltekit-router/interfaces/RouteMapping.md +3 -3
- package/api/@xmachines/play-sveltekit-router/interfaces/RouterBridge.md +3 -3
- package/api/@xmachines/play-sveltekit-router/type-aliases/RoutableActor.md +1 -1
- package/api/@xmachines/play-tanstack-react-router/classes/RouteMap.md +4 -4
- package/api/@xmachines/play-tanstack-react-router/classes/TanStackReactRouterBridge.md +23 -23
- package/api/@xmachines/play-tanstack-react-router/functions/PlayRouterProvider.md +1 -1
- package/api/@xmachines/play-tanstack-react-router/functions/createRouteMap.md +1 -1
- package/api/@xmachines/play-tanstack-react-router/functions/createRouteMapFromTree.md +1 -1
- package/api/@xmachines/play-tanstack-react-router/functions/extractMachineRoutes.md +1 -1
- package/api/@xmachines/play-tanstack-react-router/interfaces/PlayRouteEvent.md +6 -6
- package/api/@xmachines/play-tanstack-react-router/interfaces/PlayRouterProviderProps.md +5 -5
- package/api/@xmachines/play-tanstack-react-router/interfaces/RouteMapping.md +3 -3
- package/api/@xmachines/play-tanstack-react-router/interfaces/RouteNavigateEvent.md +3 -3
- package/api/@xmachines/play-tanstack-react-router/interfaces/RouterBridge.md +3 -3
- package/api/@xmachines/play-tanstack-react-router/type-aliases/TanStackRouterInstance.md +1 -1
- package/api/@xmachines/play-tanstack-react-router/type-aliases/TanStackRouterLike.md +4 -4
- package/api/@xmachines/play-tanstack-solid-router/classes/RouteMap.md +4 -4
- package/api/@xmachines/play-tanstack-solid-router/classes/SolidRouterBridge.md +24 -24
- package/api/@xmachines/play-tanstack-solid-router/functions/PlayRouterProvider.md +1 -1
- package/api/@xmachines/play-tanstack-solid-router/functions/createRouteMap.md +1 -1
- package/api/@xmachines/play-tanstack-solid-router/interfaces/PlayRouteEvent.md +6 -6
- package/api/@xmachines/play-tanstack-solid-router/interfaces/PlayRouterProviderProps.md +5 -5
- package/api/@xmachines/play-tanstack-solid-router/interfaces/RouteMapping.md +3 -3
- package/api/@xmachines/play-tanstack-solid-router/interfaces/RouterBridge.md +3 -3
- package/api/@xmachines/play-tanstack-solid-router/type-aliases/RoutableActor.md +1 -1
- package/api/@xmachines/play-tanstack-solid-router/type-aliases/TanStackRouterInstance.md +1 -1
- package/api/@xmachines/play-tanstack-solid-router/type-aliases/TanStackRouterLike.md +3 -3
- package/api/@xmachines/play-vue/functions/defineRegistry.md +1 -1
- package/api/@xmachines/play-vue/functions/useActor.md +1 -1
- package/api/@xmachines/play-vue/interfaces/PlayRendererProps.md +5 -5
- package/api/@xmachines/play-vue/type-aliases/ComponentEntry.md +1 -1
- package/api/@xmachines/play-vue/type-aliases/ComponentsMap.md +1 -1
- package/api/@xmachines/play-vue/type-aliases/DefineRegistryOptions.md +2 -2
- package/api/@xmachines/play-vue/type-aliases/PlayActor.md +1 -1
- package/api/@xmachines/play-vue/variables/PlayRenderer.md +1 -1
- package/api/@xmachines/play-vue-router/classes/RouteMap.md +4 -4
- package/api/@xmachines/play-vue-router/classes/VueBaseRouteMap.md +4 -4
- package/api/@xmachines/play-vue-router/classes/VueRouterBridge.md +24 -24
- package/api/@xmachines/play-vue-router/functions/createRouteMap.md +1 -1
- package/api/@xmachines/play-vue-router/interfaces/PlayRouteEvent.md +6 -6
- package/api/@xmachines/play-vue-router/interfaces/RouteMapping.md +3 -3
- package/api/@xmachines/play-vue-router/interfaces/RouterBridge.md +3 -3
- package/api/@xmachines/play-vue-router/type-aliases/RoutableActor.md +1 -1
- package/api/@xmachines/play-vue-router/variables/PlayRouterProvider.md +1 -1
- package/api/@xmachines/play-xstate/classes/PlayerActor.md +11 -11
- package/api/@xmachines/play-xstate/functions/buildRouteUrl.md +1 -1
- package/api/@xmachines/play-xstate/functions/composeGuards.md +1 -1
- package/api/@xmachines/play-xstate/functions/composeGuardsOr.md +1 -1
- package/api/@xmachines/play-xstate/functions/contextFieldMatches.md +1 -1
- package/api/@xmachines/play-xstate/functions/definePlayer.md +1 -1
- package/api/@xmachines/play-xstate/functions/deriveRoute.md +1 -1
- package/api/@xmachines/play-xstate/functions/eventMatches.md +1 -1
- package/api/@xmachines/play-xstate/functions/formatPlayRouteTransitions.md +1 -1
- package/api/@xmachines/play-xstate/functions/hasContext.md +1 -1
- package/api/@xmachines/play-xstate/functions/isAbsoluteRoute.md +1 -1
- package/api/@xmachines/play-xstate/functions/negateGuard.md +1 -1
- package/api/@xmachines/play-xstate/interfaces/PlayerConfig.md +3 -3
- package/api/@xmachines/play-xstate/interfaces/PlayerFactoryResumeOptions.md +2 -2
- package/api/@xmachines/play-xstate/interfaces/PlayerOptions.md +6 -6
- package/api/@xmachines/play-xstate/interfaces/RouteContext.md +5 -5
- package/api/@xmachines/play-xstate/type-aliases/ComposedGuard.md +1 -1
- package/api/@xmachines/play-xstate/type-aliases/Guard.md +1 -1
- package/api/@xmachines/play-xstate/type-aliases/GuardArray.md +1 -1
- package/api/@xmachines/play-xstate/type-aliases/PlayerFactory.md +1 -1
- package/api/@xmachines/play-xstate/type-aliases/RouteMachineConfig.md +4 -4
- package/api/@xmachines/play-xstate/type-aliases/RouteStateNode.md +4 -4
- package/api/@xmachines/shared/functions/defineXmVitestConfig.md +1 -1
- package/api/@xmachines/shared/functions/xmAliases.md +1 -1
- package/examples/@xmachines/play-dom-demo/functions/initShell.md +5 -5
- package/examples/@xmachines/play-dom-demo/variables/About.md +1 -1
- package/examples/@xmachines/play-dom-demo/variables/Contact.md +1 -1
- package/examples/@xmachines/play-dom-demo/variables/Dashboard.md +1 -1
- package/examples/@xmachines/play-dom-demo/variables/Home.md +1 -1
- package/examples/@xmachines/play-dom-demo/variables/Login.md +1 -1
- package/examples/@xmachines/play-dom-demo/variables/Navigation.md +1 -1
- package/examples/@xmachines/play-dom-demo/variables/Overview.md +1 -1
- package/examples/@xmachines/play-dom-demo/variables/Profile.md +1 -1
- package/examples/@xmachines/play-dom-demo/variables/Settings.md +1 -1
- package/examples/@xmachines/play-dom-demo/variables/Stats.md +1 -1
- package/examples/@xmachines/play-react-demo/functions/App.md +1 -1
- package/examples/@xmachines/play-react-demo/functions/DebugPanel.md +5 -5
- package/examples/@xmachines/play-react-demo/functions/HeaderNav.md +5 -5
- package/examples/@xmachines/play-react-demo/functions/Shell.md +7 -7
- package/examples/@xmachines/play-react-demo/variables/About.md +1 -1
- package/examples/@xmachines/play-react-demo/variables/Contact.md +1 -1
- package/examples/@xmachines/play-react-demo/variables/Dashboard.md +1 -1
- package/examples/@xmachines/play-react-demo/variables/Home.md +1 -1
- package/examples/@xmachines/play-react-demo/variables/Login.md +1 -1
- package/examples/@xmachines/play-react-demo/variables/Navigation.md +1 -1
- package/examples/@xmachines/play-react-demo/variables/Overview.md +1 -1
- package/examples/@xmachines/play-react-demo/variables/Profile.md +1 -1
- package/examples/@xmachines/play-react-demo/variables/Settings.md +1 -1
- package/examples/@xmachines/play-react-demo/variables/Stats.md +1 -1
- package/examples/@xmachines/play-solid-demo/functions/App.md +1 -1
- package/examples/@xmachines/play-solid-demo/functions/DebugPanel.md +5 -5
- package/examples/@xmachines/play-solid-demo/functions/HeaderNav.md +5 -5
- package/examples/@xmachines/play-solid-demo/functions/Shell.md +7 -7
- package/examples/@xmachines/play-solid-demo/variables/About.md +1 -1
- package/examples/@xmachines/play-solid-demo/variables/Contact.md +1 -1
- package/examples/@xmachines/play-solid-demo/variables/Dashboard.md +1 -1
- package/examples/@xmachines/play-solid-demo/variables/Home.md +1 -1
- package/examples/@xmachines/play-solid-demo/variables/Login.md +1 -1
- package/examples/@xmachines/play-solid-demo/variables/Navigation.md +1 -1
- package/examples/@xmachines/play-solid-demo/variables/Overview.md +1 -1
- package/examples/@xmachines/play-solid-demo/variables/Profile.md +1 -1
- package/examples/@xmachines/play-solid-demo/variables/Settings.md +1 -1
- package/examples/@xmachines/play-solid-demo/variables/Stats.md +1 -1
- package/examples/README.md +0 -8
- package/package.json +2 -2
- package/examples/@xmachines/play-actor-shared/README.md +0 -155
- package/examples/@xmachines/play-actor-shared/interfaces/AuthContext.md +0 -14
- package/examples/@xmachines/play-actor-shared/type-aliases/AuthActor.md +0 -27
- package/examples/@xmachines/play-actor-shared/type-aliases/AuthCatalog.md +0 -16
- package/examples/@xmachines/play-actor-shared/type-aliases/AuthEvents.md +0 -17
- package/examples/@xmachines/play-actor-shared/type-aliases/AuthInput.md +0 -9
- package/examples/@xmachines/play-actor-shared/type-aliases/AuthSnapshot.md +0 -11
- package/examples/@xmachines/play-actor-shared/type-aliases/CatalogProps.md +0 -187
- package/examples/@xmachines/play-actor-shared/type-aliases/InferProps.md +0 -17
- package/examples/@xmachines/play-actor-shared/variables/authCatalog.md +0 -173
- package/examples/@xmachines/play-actor-shared/variables/authMachine.md +0 -189
- package/examples/@xmachines/play-actor-shared/variables/authSetup.md +0 -22
- package/examples/@xmachines/play-router-shared/README.md +0 -111
- package/examples/@xmachines/play-router-shared/test/auth-machine-routing.test.ts/README.md +0 -3
- package/examples/@xmachines/play-router-shared/test/demo-browser-suite.ts/README.md +0 -11
- package/examples/@xmachines/play-router-shared/test/demo-browser-suite.ts/functions/defineSharedDemoBrowserSuite.md +0 -19
- package/examples/@xmachines/play-router-shared/test/demo-browser-suite.ts/variables/defineRouterDemoBrowserSuite.md +0 -19
- package/examples/@xmachines/play-router-shared/test/env.d.ts/README.md +0 -8
- package/examples/@xmachines/play-router-shared/test/env.d.ts/interfaces/ImportMeta.md +0 -63
- package/examples/@xmachines/play-router-shared/test/env.d.ts/interfaces/ImportMetaEnv.md +0 -32
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
const Overview: ComponentFn<AuthCatalog, "Overview">;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [components/Overview.tsx:4](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.
|
|
9
|
+
Defined in: [components/Overview.tsx:4](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.30/packages/play-solid/examples/demo/src/components/Overview.tsx#L4)
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
const Profile: ComponentFn<AuthCatalog, "Profile">;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [components/Profile.tsx:4](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.
|
|
9
|
+
Defined in: [components/Profile.tsx:4](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.30/packages/play-solid/examples/demo/src/components/Profile.tsx#L4)
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
const Settings: ComponentFn<AuthCatalog, "Settings">;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [components/Settings.tsx:4](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.
|
|
9
|
+
Defined in: [components/Settings.tsx:4](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.30/packages/play-solid/examples/demo/src/components/Settings.tsx#L4)
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
const Stats: ComponentFn<AuthCatalog, "Stats">;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [components/Stats.tsx:4](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.
|
|
9
|
+
Defined in: [components/Stats.tsx:4](https://gitlab.com/xmachin-es/xmachines-js/-/blob/v1.0.0-beta.30/packages/play-solid/examples/demo/src/components/Stats.tsx#L4)
|
package/examples/README.md
CHANGED
|
@@ -50,14 +50,6 @@ Complete working implementations of actor-authoritative routing with all archite
|
|
|
50
50
|
- [@xmachines/play-vue-router-demo](@xmachines/play-vue-router-demo/README.md)
|
|
51
51
|
<!-- typedoc:router-demos:end -->
|
|
52
52
|
|
|
53
|
-
### Shared Fixtures
|
|
54
|
-
|
|
55
|
-
<!-- typedoc:shared-fixtures:start -->
|
|
56
|
-
|
|
57
|
-
- [@xmachines/play-actor-shared](@xmachines/play-actor-shared/README.md)
|
|
58
|
-
- [@xmachines/play-router-shared](@xmachines/play-router-shared/README.md)
|
|
59
|
-
<!-- typedoc:shared-fixtures:end -->
|
|
60
|
-
|
|
61
53
|
## Running the Code Examples
|
|
62
54
|
|
|
63
55
|
The conceptual examples in this directory are TypeScript snippets. To run them:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmachines/docs",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.30",
|
|
4
4
|
"description": "Documentation for XMachines",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documentation",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"test": "vitest run"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@xmachines/shared": "1.0.0-beta.
|
|
52
|
+
"@xmachines/shared": "1.0.0-beta.30",
|
|
53
53
|
"oxfmt": "^0.43.0",
|
|
54
54
|
"oxlint": "^1.57.0",
|
|
55
55
|
"typedoc": "^0.28.18",
|
|
@@ -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) |
|