@sprucelabs/heartwood-view-controllers 121.3.2 → 121.3.4

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.
@@ -70,6 +70,7 @@ export * from './auth/Authenticator';
70
70
  export { default as buildBigForm } from './builders/buildBigForm';
71
71
  export { default as buildForm } from './builders/buildForm';
72
72
  export { default as buildSkillView } from './builders/buildSkillView';
73
+ export * from './builders/buildSkillView';
73
74
  export { WebRtcStreamer, default as WebRtcStreamerImpl, } from './webRtcStreaming/WebRtcStreamer';
74
75
  export { default as MockRtcPeerConnection } from './tests/MockRtcPeerConnection';
75
76
  export { default as WebRtcConnectionImpl } from './webRtcStreaming/WebRtcConnection';
@@ -69,6 +69,7 @@ export * from './auth/Authenticator.js';
69
69
  export { default as buildBigForm } from './builders/buildBigForm.js';
70
70
  export { default as buildForm } from './builders/buildForm.js';
71
71
  export { default as buildSkillView } from './builders/buildSkillView.js';
72
+ export * from './builders/buildSkillView.js';
72
73
  export { default as WebRtcStreamerImpl, } from './webRtcStreaming/WebRtcStreamer.js';
73
74
  export { default as MockRtcPeerConnection } from './tests/MockRtcPeerConnection.js';
74
75
  export { default as WebRtcConnectionImpl } from './webRtcStreaming/WebRtcConnection.js';
@@ -1,16 +1,38 @@
1
1
  import { Card, LayoutStyle } from '../types/heartwood.types';
2
- export default function buildSkillViewLayout(layout: LayoutStyle, cards: SkillViewLayoutCards): {
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
- layout: LayoutStyle;
9
- };
10
- export interface SkillViewLayoutCards {
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
@@ -70,6 +70,7 @@ export * from './auth/Authenticator';
70
70
  export { default as buildBigForm } from './builders/buildBigForm';
71
71
  export { default as buildForm } from './builders/buildForm';
72
72
  export { default as buildSkillView } from './builders/buildSkillView';
73
+ export * from './builders/buildSkillView';
73
74
  export { WebRtcStreamer, default as WebRtcStreamerImpl, } from './webRtcStreaming/WebRtcStreamer';
74
75
  export { default as MockRtcPeerConnection } from './tests/MockRtcPeerConnection';
75
76
  export { default as WebRtcConnectionImpl } from './webRtcStreaming/WebRtcConnection';
package/build/index.js CHANGED
@@ -141,6 +141,7 @@ var buildForm_1 = require("./builders/buildForm");
141
141
  Object.defineProperty(exports, "buildForm", { enumerable: true, get: function () { return __importDefault(buildForm_1).default; } });
142
142
  var buildSkillView_1 = require("./builders/buildSkillView");
143
143
  Object.defineProperty(exports, "buildSkillView", { enumerable: true, get: function () { return __importDefault(buildSkillView_1).default; } });
144
+ __exportStar(require("./builders/buildSkillView"), exports);
144
145
  var WebRtcStreamer_1 = require("./webRtcStreaming/WebRtcStreamer");
145
146
  Object.defineProperty(exports, "WebRtcStreamerImpl", { enumerable: true, get: function () { return __importDefault(WebRtcStreamer_1).default; } });
146
147
  var MockRtcPeerConnection_1 = require("./tests/MockRtcPeerConnection");
@@ -1,16 +1,38 @@
1
1
  import { Card, LayoutStyle } from '../types/heartwood.types';
2
- export default function buildSkillViewLayout(layout: LayoutStyle, cards: SkillViewLayoutCards): {
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
- layout: LayoutStyle;
9
- };
10
- export interface SkillViewLayoutCards {
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.2",
16
+ "version": "121.3.4",
17
17
  "skill": {
18
18
  "namespace": "HeartwoodViewControllers",
19
19
  "commandOverrides": {
@@ -74,16 +74,16 @@
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.27",
77
+ "@sprucelabs/calendar-utils": "^43.0.28",
78
78
  "@sprucelabs/error": "^7.0.15",
79
79
  "@sprucelabs/globby": "^2.0.505",
80
- "@sprucelabs/mercury-core-events": "^27.0.22",
81
- "@sprucelabs/mercury-types": "^48.0.23",
82
- "@sprucelabs/schema": "^32.0.22",
83
- "@sprucelabs/spruce-core-schemas": "^41.0.22",
84
- "@sprucelabs/spruce-event-utils": "^41.0.25",
85
- "@sprucelabs/spruce-skill-utils": "^32.0.22",
86
- "@sprucelabs/test-utils": "^6.0.21",
80
+ "@sprucelabs/mercury-core-events": "^27.0.23",
81
+ "@sprucelabs/mercury-types": "^48.0.24",
82
+ "@sprucelabs/schema": "^32.0.23",
83
+ "@sprucelabs/spruce-core-schemas": "^41.0.23",
84
+ "@sprucelabs/spruce-event-utils": "^41.0.26",
85
+ "@sprucelabs/spruce-skill-utils": "^32.0.23",
86
+ "@sprucelabs/test-utils": "^6.0.22",
87
87
  "babel-loader": "^10.0.0",
88
88
  "babel-plugin-module-resolver": "^5.0.2",
89
89
  "dot-prop": "^9.0.0",
@@ -97,8 +97,8 @@
97
97
  "devDependencies": {
98
98
  "@sprucelabs/esm-postbuild": "^7.0.9",
99
99
  "@sprucelabs/jest-json-reporter": "^9.0.16",
100
- "@sprucelabs/mercury-client": "^43.0.29",
101
- "@sprucelabs/mercury-event-emitter": "^43.0.29",
100
+ "@sprucelabs/mercury-client": "^43.0.30",
101
+ "@sprucelabs/mercury-event-emitter": "^43.0.30",
102
102
  "@sprucelabs/resolve-path-aliases": "^3.0.9",
103
103
  "@sprucelabs/semantic-release": "^5.0.2",
104
104
  "@sprucelabs/test": "^10.0.7",