@sprucelabs/heartwood-view-controllers 121.3.3 → 121.3.5
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/index.d.ts
CHANGED
|
@@ -210,6 +210,7 @@ export { default as mapInteractor } from './tests/utilities/mapInteractor';
|
|
|
210
210
|
export { default as listUtil } from './viewControllers/list/list.utility';
|
|
211
211
|
export { default as splitCardsIntoLayouts } from './utilities/splitCardsIntoLayouts';
|
|
212
212
|
export { default as buildSkillViewLayout } from './utilities/buildSkillViewLayout';
|
|
213
|
+
export * from './utilities/buildSkillViewLayout';
|
|
213
214
|
export { default as removeUniversalViewOptions } from './utilities/removeUniversalViewOptions';
|
|
214
215
|
export { default as ToolBeltStateMachine } from './toolBelts/ToolBeltStateMachine';
|
|
215
216
|
export { default as navigationSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigation.schema';
|
package/build/esm/index.js
CHANGED
|
@@ -209,6 +209,7 @@ export { default as mapInteractor } from './tests/utilities/mapInteractor.js';
|
|
|
209
209
|
export { default as listUtil } from './viewControllers/list/list.utility.js';
|
|
210
210
|
export { default as splitCardsIntoLayouts } from './utilities/splitCardsIntoLayouts.js';
|
|
211
211
|
export { default as buildSkillViewLayout } from './utilities/buildSkillViewLayout.js';
|
|
212
|
+
export * from './utilities/buildSkillViewLayout.js';
|
|
212
213
|
export { default as removeUniversalViewOptions } from './utilities/removeUniversalViewOptions.js';
|
|
213
214
|
export { default as ToolBeltStateMachine } from './toolBelts/ToolBeltStateMachine.js';
|
|
214
215
|
export { default as navigationSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigation.schema.js';
|
|
@@ -1,16 +1,38 @@
|
|
|
1
1
|
import { Card, LayoutStyle } from '../types/heartwood.types';
|
|
2
|
-
export default function buildSkillViewLayout(layout:
|
|
2
|
+
export default function buildSkillViewLayout<L extends LayoutStyle>(layout: L, cards: SkillViewLayoutMap[L]): {
|
|
3
|
+
layout: L;
|
|
4
|
+
} & SkillViewLayoutMap[L];
|
|
5
|
+
export interface SkillViewLayoutMap {
|
|
6
|
+
['big-left']: BigLeftLayout;
|
|
7
|
+
['big-right']: BigRightLayout;
|
|
8
|
+
['big-top']: BigTopLayout;
|
|
9
|
+
['big-top-left']: BigTopLeftLayout;
|
|
10
|
+
['grid']: GridLayout;
|
|
11
|
+
}
|
|
12
|
+
export interface SkillViewLayoutCards {
|
|
3
13
|
leftCards?: Card[];
|
|
4
14
|
rightCards?: Card[];
|
|
5
15
|
topCards?: Card[];
|
|
6
16
|
cards?: Card[];
|
|
7
17
|
bottomCards?: Card[];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
}
|
|
19
|
+
export interface BigLeftLayout {
|
|
20
|
+
leftCards: Card[];
|
|
21
|
+
rightCards?: Card[];
|
|
22
|
+
}
|
|
23
|
+
export interface BigRightLayout {
|
|
11
24
|
leftCards?: Card[];
|
|
25
|
+
rightCards: Card[];
|
|
26
|
+
}
|
|
27
|
+
export interface BigTopLayout {
|
|
28
|
+
topCards: Card[];
|
|
29
|
+
bottomCards?: Card[];
|
|
30
|
+
}
|
|
31
|
+
export interface BigTopLeftLayout {
|
|
32
|
+
leftCards: Card[];
|
|
12
33
|
rightCards?: Card[];
|
|
13
|
-
topCards?: Card[];
|
|
14
|
-
cards?: Card[];
|
|
15
34
|
bottomCards?: Card[];
|
|
16
35
|
}
|
|
36
|
+
export interface GridLayout {
|
|
37
|
+
cards: Card[];
|
|
38
|
+
}
|
package/build/index.d.ts
CHANGED
|
@@ -210,6 +210,7 @@ export { default as mapInteractor } from './tests/utilities/mapInteractor';
|
|
|
210
210
|
export { default as listUtil } from './viewControllers/list/list.utility';
|
|
211
211
|
export { default as splitCardsIntoLayouts } from './utilities/splitCardsIntoLayouts';
|
|
212
212
|
export { default as buildSkillViewLayout } from './utilities/buildSkillViewLayout';
|
|
213
|
+
export * from './utilities/buildSkillViewLayout';
|
|
213
214
|
export { default as removeUniversalViewOptions } from './utilities/removeUniversalViewOptions';
|
|
214
215
|
export { default as ToolBeltStateMachine } from './toolBelts/ToolBeltStateMachine';
|
|
215
216
|
export { default as navigationSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigation.schema';
|
package/build/index.js
CHANGED
|
@@ -418,6 +418,7 @@ var splitCardsIntoLayouts_1 = require("./utilities/splitCardsIntoLayouts");
|
|
|
418
418
|
Object.defineProperty(exports, "splitCardsIntoLayouts", { enumerable: true, get: function () { return __importDefault(splitCardsIntoLayouts_1).default; } });
|
|
419
419
|
var buildSkillViewLayout_1 = require("./utilities/buildSkillViewLayout");
|
|
420
420
|
Object.defineProperty(exports, "buildSkillViewLayout", { enumerable: true, get: function () { return __importDefault(buildSkillViewLayout_1).default; } });
|
|
421
|
+
__exportStar(require("./utilities/buildSkillViewLayout"), exports);
|
|
421
422
|
var removeUniversalViewOptions_1 = require("./utilities/removeUniversalViewOptions");
|
|
422
423
|
Object.defineProperty(exports, "removeUniversalViewOptions", { enumerable: true, get: function () { return __importDefault(removeUniversalViewOptions_1).default; } });
|
|
423
424
|
var ToolBeltStateMachine_1 = require("./toolBelts/ToolBeltStateMachine");
|
|
@@ -1,16 +1,38 @@
|
|
|
1
1
|
import { Card, LayoutStyle } from '../types/heartwood.types';
|
|
2
|
-
export default function buildSkillViewLayout(layout:
|
|
2
|
+
export default function buildSkillViewLayout<L extends LayoutStyle>(layout: L, cards: SkillViewLayoutMap[L]): {
|
|
3
|
+
layout: L;
|
|
4
|
+
} & SkillViewLayoutMap[L];
|
|
5
|
+
export interface SkillViewLayoutMap {
|
|
6
|
+
['big-left']: BigLeftLayout;
|
|
7
|
+
['big-right']: BigRightLayout;
|
|
8
|
+
['big-top']: BigTopLayout;
|
|
9
|
+
['big-top-left']: BigTopLeftLayout;
|
|
10
|
+
['grid']: GridLayout;
|
|
11
|
+
}
|
|
12
|
+
export interface SkillViewLayoutCards {
|
|
3
13
|
leftCards?: Card[];
|
|
4
14
|
rightCards?: Card[];
|
|
5
15
|
topCards?: Card[];
|
|
6
16
|
cards?: Card[];
|
|
7
17
|
bottomCards?: Card[];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
}
|
|
19
|
+
export interface BigLeftLayout {
|
|
20
|
+
leftCards: Card[];
|
|
21
|
+
rightCards?: Card[];
|
|
22
|
+
}
|
|
23
|
+
export interface BigRightLayout {
|
|
11
24
|
leftCards?: Card[];
|
|
25
|
+
rightCards: Card[];
|
|
26
|
+
}
|
|
27
|
+
export interface BigTopLayout {
|
|
28
|
+
topCards: Card[];
|
|
29
|
+
bottomCards?: Card[];
|
|
30
|
+
}
|
|
31
|
+
export interface BigTopLeftLayout {
|
|
32
|
+
leftCards: Card[];
|
|
12
33
|
rightCards?: Card[];
|
|
13
|
-
topCards?: Card[];
|
|
14
|
-
cards?: Card[];
|
|
15
34
|
bottomCards?: Card[];
|
|
16
35
|
}
|
|
36
|
+
export interface GridLayout {
|
|
37
|
+
cards: Card[];
|
|
38
|
+
}
|
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": "121.3.
|
|
16
|
+
"version": "121.3.5",
|
|
17
17
|
"skill": {
|
|
18
18
|
"namespace": "HeartwoodViewControllers",
|
|
19
19
|
"commandOverrides": {
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
"lint.tsc": "tsc -p . --noEmit"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@babel/core": "^7.27.
|
|
71
|
+
"@babel/core": "^7.27.7",
|
|
72
72
|
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
73
73
|
"@babel/plugin-transform-runtime": "^7.27.4",
|
|
74
74
|
"@babel/preset-env": "^7.27.2",
|
|
75
75
|
"@babel/preset-typescript": "^7.27.1",
|
|
76
76
|
"@babel/runtime": "^7.27.6",
|
|
77
|
-
"@sprucelabs/calendar-utils": "^43.0.
|
|
77
|
+
"@sprucelabs/calendar-utils": "^43.0.29",
|
|
78
78
|
"@sprucelabs/error": "^7.0.15",
|
|
79
79
|
"@sprucelabs/globby": "^2.0.505",
|
|
80
80
|
"@sprucelabs/mercury-core-events": "^27.0.23",
|