@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.
@@ -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;
@@ -1,4 +1,5 @@
1
1
  import { AppViewController, ViewControllerOptions } from '../types/heartwood.types';
2
2
  export default abstract class AbstractAppViewController implements AppViewController {
3
+ static id: string;
3
4
  constructor(_options: ViewControllerOptions);
4
5
  }
@@ -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;
@@ -1,4 +1,5 @@
1
1
  import { AppViewController, ViewControllerOptions } from '../types/heartwood.types';
2
2
  export default abstract class AbstractAppViewController implements AppViewController {
3
+ static id: string;
3
4
  constructor(_options: ViewControllerOptions);
4
5
  }
@@ -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
@@ -13,7 +13,7 @@
13
13
  "sideEffects": false,
14
14
  "license": "MIT",
15
15
  "description": "All the power of Heartwood in one, convenient package.",
16
- "version": "111.1.30",
16
+ "version": "111.1.31",
17
17
  "skill": {
18
18
  "namespace": "HeartwoodViewControllers",
19
19
  "commandOverrides": {