@telia-ace/widget-core 1.0.21-experimental.9 → 1.0.21-next.0
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/dist/component-resolver.d.ts +3 -4
- package/dist/index.js +408 -372
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Logger } from '@telia-ace/widget-utilities';
|
|
2
2
|
import { Container, EventManager, EventSubscriptionCancellation } from '@webprovisions/platform';
|
|
3
|
-
export type ComponentDefinition = any | null;
|
|
4
3
|
export type ReactComponent = any | null;
|
|
5
4
|
export default class ComponentResolver {
|
|
6
5
|
aliases: Map<string, string>;
|
|
@@ -8,8 +7,8 @@ export default class ComponentResolver {
|
|
|
8
7
|
events: EventManager;
|
|
9
8
|
logger: Logger;
|
|
10
9
|
constructor(container: Container);
|
|
11
|
-
getComponent(key: string):
|
|
12
|
-
registerComponent(key: string, component:
|
|
13
|
-
registerResolver(key: string, fn: (component:
|
|
10
|
+
getComponent(key: string): ReactComponent;
|
|
11
|
+
registerComponent(key: string, component: ReactComponent): EventSubscriptionCancellation;
|
|
12
|
+
registerResolver(key: string, fn: (component: ReactComponent) => void): EventSubscriptionCancellation;
|
|
14
13
|
registerAlias(alias: string, key: string): EventSubscriptionCancellation;
|
|
15
14
|
}
|