@sprucelabs/spruce-heartwood-utils 21.3.0 → 21.3.2
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.
|
@@ -24,7 +24,7 @@ export default class RemoteViewControllerFactoryImpl implements RemoteViewContro
|
|
|
24
24
|
}
|
|
25
25
|
type Theme = SkillTheme;
|
|
26
26
|
type ConnectToApi = () => Promise<MercuryClient>;
|
|
27
|
-
export type VcFactoryForRemoteFactory = Pick<ViewControllerFactory, 'setController' | 'hasController' | 'getController' | 'Controller' | 'importControllers'>;
|
|
27
|
+
export type VcFactoryForRemoteFactory = Pick<ViewControllerFactory, 'setController' | 'hasController' | 'getController' | 'Controller' | 'importControllers' | 'setAppController'>;
|
|
28
28
|
export interface RemoteFactoryOptions {
|
|
29
29
|
connectToApi: ConnectToApi;
|
|
30
30
|
vcFactory: VcFactoryForRemoteFactory;
|
|
@@ -68,9 +68,11 @@ class RemoteViewControllerFactoryImpl {
|
|
|
68
68
|
sv.id = `${namespace}.${sv.id}`;
|
|
69
69
|
});
|
|
70
70
|
if (App) {
|
|
71
|
+
//@ts-ignore
|
|
71
72
|
App.id = namespace;
|
|
73
|
+
this.vcFactory.setAppController(App);
|
|
72
74
|
}
|
|
73
|
-
this.vcFactory.importControllers(skillViews, plugins
|
|
75
|
+
this.vcFactory.importControllers(skillViews, plugins);
|
|
74
76
|
if (theme) {
|
|
75
77
|
this.themesByNamespace[namespace] = Object.assign(Object.assign({}, theme), { slug: namespace, name: namespace });
|
|
76
78
|
}
|
|
@@ -24,7 +24,7 @@ export default class RemoteViewControllerFactoryImpl implements RemoteViewContro
|
|
|
24
24
|
}
|
|
25
25
|
type Theme = SkillTheme;
|
|
26
26
|
type ConnectToApi = () => Promise<MercuryClient>;
|
|
27
|
-
export type VcFactoryForRemoteFactory = Pick<ViewControllerFactory, 'setController' | 'hasController' | 'getController' | 'Controller' | 'importControllers'>;
|
|
27
|
+
export type VcFactoryForRemoteFactory = Pick<ViewControllerFactory, 'setController' | 'hasController' | 'getController' | 'Controller' | 'importControllers' | 'setAppController'>;
|
|
28
28
|
export interface RemoteFactoryOptions {
|
|
29
29
|
connectToApi: ConnectToApi;
|
|
30
30
|
vcFactory: VcFactoryForRemoteFactory;
|
|
@@ -59,9 +59,11 @@ class RemoteViewControllerFactoryImpl {
|
|
|
59
59
|
sv.id = `${namespace}.${sv.id}`;
|
|
60
60
|
});
|
|
61
61
|
if (App) {
|
|
62
|
+
//@ts-ignore
|
|
62
63
|
App.id = namespace;
|
|
64
|
+
this.vcFactory.setAppController(App);
|
|
63
65
|
}
|
|
64
|
-
this.vcFactory.importControllers(skillViews, plugins
|
|
66
|
+
this.vcFactory.importControllers(skillViews, plugins);
|
|
65
67
|
if (theme) {
|
|
66
68
|
this.themesByNamespace[namespace] = Object.assign(Object.assign({}, theme), { slug: namespace, name: namespace });
|
|
67
69
|
}
|