@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.
- package/build/esm/tests/utilities/vcAssert.d.ts +2 -2
- package/build/esm/tests/utilities/vcAssert.js +1 -1
- package/build/esm/tests/utilities/vcAssert.utility.d.ts +1 -1
- package/build/tests/utilities/vcAssert.d.ts +2 -2
- package/build/tests/utilities/vcAssert.js +1 -1
- package/build/tests/utilities/vcAssert.utility.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
-
|
|
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
|
|
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
|
|
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>;
|
|
@@ -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
|
|
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