diff --git a/ts_web/appstate.ts b/ts_web/appstate.ts index d4bfa99..4e8f4b1 100644 --- a/ts_web/appstate.ts +++ b/ts_web/appstate.ts @@ -1,4 +1,9 @@ -import { domtools } from '@design.estate/dees-element'; +import * as plugins from './plugins.js'; -const appState = new domtools.plugins.smartstate.Smartstate(); +const appState = new plugins.deesElement.domtools.plugins.smartstate.Smartstate(); +export interface IDcRouterState {} +export const loginStatePart: plugins.deesElement.domtools.plugins.smartstate.StatePart< + unknown, + IDcRouterState +> = await appState.getStatePart('login', { identity: null }, 'persistent'); diff --git a/ts_web/plugins.ts b/ts_web/plugins.ts index d2059dc..d0bc30d 100644 --- a/ts_web/plugins.ts +++ b/ts_web/plugins.ts @@ -1,7 +1,8 @@ +// @design.estate scope import * as deesElement from '@design.estate/dees-element'; import * as deesCatalog from '@design.estate/dees-catalog'; export { deesElement, deesCatalog -} \ No newline at end of file +}