@sprucelabs/heartwood-view-controllers 119.2.0 → 119.2.1

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.
@@ -1,4 +1,4 @@
1
- import { LineIcon, SkillViewController, ViewController, CardViewController, ScopedBy, Card, StickyToolPosition, ScopeFlag, Button, List, RowStyle, AlertOptions } from '../../types/heartwood.types';
1
+ import { LineIcon, SkillViewController, ViewController, CardViewController, ScopedBy, Card, StickyToolPosition, ScopeFlag, Button, List, RowStyle, AlertOptions, AppController } from '../../types/heartwood.types';
2
2
  import ButtonBarViewController from '../../viewControllers/ButtonBar.vc';
3
3
  import CalendarViewController from '../../viewControllers/Calendar.vc';
4
4
  import DialogViewController from '../../viewControllers/Dialog.vc';
@@ -23,7 +23,7 @@ declare const vcAssert: {
23
23
  assertRendersSuccessAlert(vc: ViewController<any>, action: () => any | Promise<any>): Promise<AlertViewController>;
24
24
  assertRendersAlert(vc: ViewController<any>, action: () => any | Promise<any>, style?: AlertOptions["style"]): Promise<AlertViewController>;
25
25
  assertDoesNotRenderAlert(vc: ViewController<any>, action: () => any | Promise<any>, style?: AlertOptions["style"]): Promise<void>;
26
- assertAsksForAVote(vc: ViewController<any>, action: () => Promise<any>): Promise<{
26
+ assertAsksForAVote(vc: ViewController<any> | AppController, action: () => Promise<any>): Promise<{
27
27
  castVote: () => Promise<void>;
28
28
  }>;
29
29
  assertRendersDialog(vc: ViewController<any>, action: () => any | Promise<any>, dialogHandler?: (dialogVc: DialogViewController) => any | Promise<any>): Promise<DialogViewController>;
@@ -167,7 +167,7 @@ const vcAssert = {
167
167
  const voteVc = {
168
168
  castVote: () => __awaiter(this, void 0, void 0, function* () { }),
169
169
  };
170
- let votePromise = new Promise((resolve) => {
170
+ const votePromise = new Promise((resolve) => {
171
171
  //@ts-ignores
172
172
  vc.voteHandler = () => __awaiter(this, void 0, void 0, function* () {
173
173
  wasHit = true;
@@ -12,7 +12,7 @@ declare const vcAssertUtil: {
12
12
  assertRendersSuccessAlert(vc: import("../..").ViewController<any>, action: () => any | Promise<any>): Promise<import("./vcAssert").AlertViewController>;
13
13
  assertRendersAlert(vc: import("../..").ViewController<any>, action: () => any | Promise<any>, style?: import("../..").AlertOptions["style"]): Promise<import("./vcAssert").AlertViewController>;
14
14
  assertDoesNotRenderAlert(vc: import("../..").ViewController<any>, action: () => any | Promise<any>, style?: import("../..").AlertOptions["style"]): Promise<void>;
15
- assertAsksForAVote(vc: import("../..").ViewController<any>, action: () => Promise<any>): Promise<{
15
+ assertAsksForAVote(vc: import("../..").ViewController<any> | import("../..").AppController, action: () => Promise<any>): Promise<{
16
16
  castVote: () => Promise<void>;
17
17
  }>;
18
18
  assertRendersDialog(vc: import("../..").ViewController<any>, action: () => any | Promise<any>, dialogHandler?: (dialogVc: import("../..").DialogViewController) => any | Promise<any>): Promise<import("../..").DialogViewController>;
@@ -1,4 +1,4 @@
1
- import { LineIcon, SkillViewController, ViewController, CardViewController, ScopedBy, Card, StickyToolPosition, ScopeFlag, Button, List, RowStyle, AlertOptions } from '../../types/heartwood.types';
1
+ import { LineIcon, SkillViewController, ViewController, CardViewController, ScopedBy, Card, StickyToolPosition, ScopeFlag, Button, List, RowStyle, AlertOptions, AppController } from '../../types/heartwood.types';
2
2
  import ButtonBarViewController from '../../viewControllers/ButtonBar.vc';
3
3
  import CalendarViewController from '../../viewControllers/Calendar.vc';
4
4
  import DialogViewController from '../../viewControllers/Dialog.vc';
@@ -23,7 +23,7 @@ declare const vcAssert: {
23
23
  assertRendersSuccessAlert(vc: ViewController<any>, action: () => any | Promise<any>): Promise<AlertViewController>;
24
24
  assertRendersAlert(vc: ViewController<any>, action: () => any | Promise<any>, style?: AlertOptions["style"]): Promise<AlertViewController>;
25
25
  assertDoesNotRenderAlert(vc: ViewController<any>, action: () => any | Promise<any>, style?: AlertOptions["style"]): Promise<void>;
26
- assertAsksForAVote(vc: ViewController<any>, action: () => Promise<any>): Promise<{
26
+ assertAsksForAVote(vc: ViewController<any> | AppController, action: () => Promise<any>): Promise<{
27
27
  castVote: () => Promise<void>;
28
28
  }>;
29
29
  assertRendersDialog(vc: ViewController<any>, action: () => any | Promise<any>, dialogHandler?: (dialogVc: DialogViewController) => any | Promise<any>): Promise<DialogViewController>;
@@ -150,7 +150,7 @@ const vcAssert = {
150
150
  const voteVc = {
151
151
  castVote: async () => { },
152
152
  };
153
- let votePromise = new Promise((resolve) => {
153
+ const votePromise = new Promise((resolve) => {
154
154
  //@ts-ignores
155
155
  vc.voteHandler = async () => {
156
156
  wasHit = true;
@@ -12,7 +12,7 @@ declare const vcAssertUtil: {
12
12
  assertRendersSuccessAlert(vc: import("../..").ViewController<any>, action: () => any | Promise<any>): Promise<import("./vcAssert").AlertViewController>;
13
13
  assertRendersAlert(vc: import("../..").ViewController<any>, action: () => any | Promise<any>, style?: import("../..").AlertOptions["style"]): Promise<import("./vcAssert").AlertViewController>;
14
14
  assertDoesNotRenderAlert(vc: import("../..").ViewController<any>, action: () => any | Promise<any>, style?: import("../..").AlertOptions["style"]): Promise<void>;
15
- assertAsksForAVote(vc: import("../..").ViewController<any>, action: () => Promise<any>): Promise<{
15
+ assertAsksForAVote(vc: import("../..").ViewController<any> | import("../..").AppController, action: () => Promise<any>): Promise<{
16
16
  castVote: () => Promise<void>;
17
17
  }>;
18
18
  assertRendersDialog(vc: import("../..").ViewController<any>, action: () => any | Promise<any>, dialogHandler?: (dialogVc: import("../..").DialogViewController) => any | Promise<any>): Promise<import("../..").DialogViewController>;
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": "119.2.0",
16
+ "version": "119.2.1",
17
17
  "skill": {
18
18
  "namespace": "HeartwoodViewControllers",
19
19
  "commandOverrides": {