@sprucelabs/heartwood-view-controllers 111.1.30 → 111.1.31
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/build/esm/types/heartwood.types.d.ts +1 -1
- package/build/esm/viewControllers/Abstract.avc.d.ts +1 -0
- package/build/esm/viewControllers/Abstract.vc.d.ts +1 -0
- package/build/types/heartwood.types.d.ts +1 -1
- package/build/viewControllers/Abstract.avc.d.ts +1 -0
- package/build/viewControllers/Abstract.vc.d.ts +1 -0
- package/package.json +1 -1
|
@@ -205,7 +205,7 @@ export interface SkillViewController<Args extends Record<string, any> = Record<s
|
|
|
205
205
|
getTitle?(): string | undefined;
|
|
206
206
|
getSubtitle?(): string | undefined;
|
|
207
207
|
}
|
|
208
|
-
export type ImportedViewController = (new () => ViewController<any> | SkillViewController) & {
|
|
208
|
+
export type ImportedViewController = (new (options: ViewControllerOptions) => ViewController<any> | SkillViewController) & {
|
|
209
209
|
id: string;
|
|
210
210
|
};
|
|
211
211
|
export type ViewControllerId = keyof ViewControllerMap;
|
|
@@ -4,6 +4,7 @@ import { Client, ViewController, ViewControllerOptions, ConfirmOptions, ViewCont
|
|
|
4
4
|
import { DialogViewControllerOptions } from './Dialog.vc';
|
|
5
5
|
import ViewControllerFactory from './ViewControllerFactory';
|
|
6
6
|
export default abstract class AbstractViewController<ViewModel extends Record<string, any>> implements ViewController<ViewModel> {
|
|
7
|
+
static id: string;
|
|
7
8
|
private vcFactory;
|
|
8
9
|
private renderInDialogHandler;
|
|
9
10
|
private confirmHandler;
|
|
@@ -205,7 +205,7 @@ export interface SkillViewController<Args extends Record<string, any> = Record<s
|
|
|
205
205
|
getTitle?(): string | undefined;
|
|
206
206
|
getSubtitle?(): string | undefined;
|
|
207
207
|
}
|
|
208
|
-
export type ImportedViewController = (new () => ViewController<any> | SkillViewController) & {
|
|
208
|
+
export type ImportedViewController = (new (options: ViewControllerOptions) => ViewController<any> | SkillViewController) & {
|
|
209
209
|
id: string;
|
|
210
210
|
};
|
|
211
211
|
export type ViewControllerId = keyof ViewControllerMap;
|
|
@@ -4,6 +4,7 @@ import { Client, ViewController, ViewControllerOptions, ConfirmOptions, ViewCont
|
|
|
4
4
|
import { DialogViewControllerOptions } from './Dialog.vc';
|
|
5
5
|
import ViewControllerFactory from './ViewControllerFactory';
|
|
6
6
|
export default abstract class AbstractViewController<ViewModel extends Record<string, any>> implements ViewController<ViewModel> {
|
|
7
|
+
static id: string;
|
|
7
8
|
private vcFactory;
|
|
8
9
|
private renderInDialogHandler;
|
|
9
10
|
private confirmHandler;
|
package/package.json
CHANGED