fix(appstate): update import statement to use plugins module for Smartstate initialization
This commit is contained in:
@ -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<IDcRouterState>('login', { identity: null }, 'persistent');
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
// @design.estate scope
|
||||||
import * as deesElement from '@design.estate/dees-element';
|
import * as deesElement from '@design.estate/dees-element';
|
||||||
import * as deesCatalog from '@design.estate/dees-catalog';
|
import * as deesCatalog from '@design.estate/dees-catalog';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
deesElement,
|
deesElement,
|
||||||
deesCatalog
|
deesCatalog
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user