@sprucelabs/heartwood-view-controllers 118.2.6 → 118.2.8
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.
|
@@ -18,6 +18,8 @@ declare const navigationAssert: {
|
|
|
18
18
|
skillViewDoesNotRenderNavigation(vc: Pick<SkillViewController, "renderNavigation">): void;
|
|
19
19
|
buttonRequiresViewPermissions(vc: ViewController<Navigation>, button: string, permissionContractId: PermissionContractId): void;
|
|
20
20
|
hasAdditionalValidRoutes(vc: ViewController<Navigation>, routes: NavigationRoute[]): void;
|
|
21
|
+
isHidden(vc: ViewController<Navigation>): void;
|
|
22
|
+
isVisible(vc: ViewController<Navigation>): void;
|
|
21
23
|
};
|
|
22
24
|
export default navigationAssert;
|
|
23
25
|
export declare function getButtonFromNav(vc: ViewController<Navigation>, id: string): any;
|
|
@@ -57,6 +57,17 @@ const navigationAssert = {
|
|
|
57
57
|
const model = renderUtil.render(vc);
|
|
58
58
|
assert.isEqualDeep(model.additionalValidRoutes, routes, `I did not find the valid routes I expected. Make sure you set 'additionalValidRoutes' in your navigation's view model (constructor options).`);
|
|
59
59
|
},
|
|
60
|
+
isHidden(vc) {
|
|
61
|
+
assertOptions({ vc }, ['vc']);
|
|
62
|
+
const model = renderUtil.render(vc);
|
|
63
|
+
assert.isFalse(model.isVisible, `Your navigation should be hidden! Try calling 'this.navigationVc.hide()'.`);
|
|
64
|
+
},
|
|
65
|
+
isVisible(vc) {
|
|
66
|
+
assertOptions({ vc }, ['vc']);
|
|
67
|
+
const model = renderUtil.render(vc);
|
|
68
|
+
const isVisible = typeof model.isVisible === 'undefined' || model.isVisible;
|
|
69
|
+
assert.isTruthy(isVisible, `Your navigation should be visible! Try calling 'this.navigationVc.show()'.`);
|
|
70
|
+
},
|
|
60
71
|
};
|
|
61
72
|
export default navigationAssert;
|
|
62
73
|
export function getButtonFromNav(vc, id) {
|
|
@@ -18,6 +18,8 @@ declare const navigationAssert: {
|
|
|
18
18
|
skillViewDoesNotRenderNavigation(vc: Pick<SkillViewController, "renderNavigation">): void;
|
|
19
19
|
buttonRequiresViewPermissions(vc: ViewController<Navigation>, button: string, permissionContractId: PermissionContractId): void;
|
|
20
20
|
hasAdditionalValidRoutes(vc: ViewController<Navigation>, routes: NavigationRoute[]): void;
|
|
21
|
+
isHidden(vc: ViewController<Navigation>): void;
|
|
22
|
+
isVisible(vc: ViewController<Navigation>): void;
|
|
21
23
|
};
|
|
22
24
|
export default navigationAssert;
|
|
23
25
|
export declare function getButtonFromNav(vc: ViewController<Navigation>, id: string): any;
|
|
@@ -59,6 +59,17 @@ const navigationAssert = {
|
|
|
59
59
|
const model = render_utility_1.default.render(vc);
|
|
60
60
|
test_utils_1.assert.isEqualDeep(model.additionalValidRoutes, routes, `I did not find the valid routes I expected. Make sure you set 'additionalValidRoutes' in your navigation's view model (constructor options).`);
|
|
61
61
|
},
|
|
62
|
+
isHidden(vc) {
|
|
63
|
+
(0, schema_1.assertOptions)({ vc }, ['vc']);
|
|
64
|
+
const model = render_utility_1.default.render(vc);
|
|
65
|
+
test_utils_1.assert.isFalse(model.isVisible, `Your navigation should be hidden! Try calling 'this.navigationVc.hide()'.`);
|
|
66
|
+
},
|
|
67
|
+
isVisible(vc) {
|
|
68
|
+
(0, schema_1.assertOptions)({ vc }, ['vc']);
|
|
69
|
+
const model = render_utility_1.default.render(vc);
|
|
70
|
+
const isVisible = typeof model.isVisible === 'undefined' || model.isVisible;
|
|
71
|
+
test_utils_1.assert.isTruthy(isVisible, `Your navigation should be visible! Try calling 'this.navigationVc.show()'.`);
|
|
72
|
+
},
|
|
62
73
|
};
|
|
63
74
|
exports.default = navigationAssert;
|
|
64
75
|
function getButtonFromNav(vc, id) {
|
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": "118.2.
|
|
16
|
+
"version": "118.2.8",
|
|
17
17
|
"skill": {
|
|
18
18
|
"namespace": "HeartwoodViewControllers",
|
|
19
19
|
"commandOverrides": {
|
|
@@ -77,16 +77,16 @@
|
|
|
77
77
|
"@babel/plugin-transform-runtime": "^7.26.10",
|
|
78
78
|
"@babel/preset-env": "^7.26.9",
|
|
79
79
|
"@babel/preset-typescript": "^7.27.0",
|
|
80
|
-
"@sprucelabs/calendar-utils": "^42.0.
|
|
81
|
-
"@sprucelabs/error": "^6.0.
|
|
80
|
+
"@sprucelabs/calendar-utils": "^42.0.671",
|
|
81
|
+
"@sprucelabs/error": "^6.0.592",
|
|
82
82
|
"@sprucelabs/globby": "^2.0.502",
|
|
83
|
-
"@sprucelabs/mercury-core-events": "^26.0.
|
|
84
|
-
"@sprucelabs/mercury-types": "^47.2.
|
|
85
|
-
"@sprucelabs/schema": "^31.0.
|
|
86
|
-
"@sprucelabs/spruce-core-schemas": "^40.1.
|
|
87
|
-
"@sprucelabs/spruce-event-utils": "^40.2.
|
|
88
|
-
"@sprucelabs/spruce-skill-utils": "^31.2.
|
|
89
|
-
"@sprucelabs/test-utils": "^5.5.
|
|
83
|
+
"@sprucelabs/mercury-core-events": "^26.0.54",
|
|
84
|
+
"@sprucelabs/mercury-types": "^47.2.64",
|
|
85
|
+
"@sprucelabs/schema": "^31.0.76",
|
|
86
|
+
"@sprucelabs/spruce-core-schemas": "^40.1.668",
|
|
87
|
+
"@sprucelabs/spruce-event-utils": "^40.2.72",
|
|
88
|
+
"@sprucelabs/spruce-skill-utils": "^31.2.83",
|
|
89
|
+
"@sprucelabs/test-utils": "^5.5.35",
|
|
90
90
|
"@swc/core": "1.2.103",
|
|
91
91
|
"babel-loader": "^10.0.0",
|
|
92
92
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
@@ -99,14 +99,14 @@
|
|
|
99
99
|
"webpack": "5.70.0"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@sprucelabs/esm-postbuild": "^6.0.
|
|
103
|
-
"@sprucelabs/jest-json-reporter": "^8.0.
|
|
104
|
-
"@sprucelabs/mercury-client": "^42.0.
|
|
105
|
-
"@sprucelabs/mercury-event-emitter": "^42.0.
|
|
102
|
+
"@sprucelabs/esm-postbuild": "^6.0.558",
|
|
103
|
+
"@sprucelabs/jest-json-reporter": "^8.0.593",
|
|
104
|
+
"@sprucelabs/mercury-client": "^42.0.772",
|
|
105
|
+
"@sprucelabs/mercury-event-emitter": "^42.0.772",
|
|
106
106
|
"@sprucelabs/resolve-path-aliases": "^2.0.538",
|
|
107
107
|
"@sprucelabs/semantic-release": "^5.0.2",
|
|
108
108
|
"@sprucelabs/test": "^9.0.77",
|
|
109
|
-
"@types/node": "^22.
|
|
109
|
+
"@types/node": "^22.14.0",
|
|
110
110
|
"@types/terser-webpack-plugin": "^5.2.0",
|
|
111
111
|
"chokidar-cli": "^3.0.0",
|
|
112
112
|
"eslint": "^9.23.0",
|