@sprucelabs/heartwood-view-controllers 128.0.8 → 128.1.0

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.
Files changed (35) hide show
  1. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/video.schema.js +0 -18
  2. package/build/.spruce/schemas/schemas.types.d.ts +0 -24
  3. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/video.schema.js +0 -18
  4. package/build/esm/.spruce/schemas/schemas.types.d.ts +0 -24
  5. package/build/esm/schemas/v2021_02_11/cards/card.builder.d.ts +0 -60
  6. package/build/esm/schemas/v2021_02_11/cards/cardBody.builder.d.ts +0 -48
  7. package/build/esm/schemas/v2021_02_11/cards/cardHeader.builder.d.ts +0 -12
  8. package/build/esm/schemas/v2021_02_11/cards/cardSection.builder.d.ts +0 -48
  9. package/build/esm/schemas/v2021_02_11/dialog.builder.d.ts +0 -60
  10. package/build/esm/schemas/v2021_02_11/formSection.builder.d.ts +0 -12
  11. package/build/esm/schemas/v2021_02_11/forms/bigForm.builder.d.ts +0 -12
  12. package/build/esm/schemas/v2021_02_11/forms/form.builder.d.ts +0 -12
  13. package/build/esm/schemas/v2021_02_11/list.builder.d.ts +0 -12
  14. package/build/esm/schemas/v2021_02_11/listCell.builder.d.ts +0 -12
  15. package/build/esm/schemas/v2021_02_11/toolBelt.builder.d.ts +0 -60
  16. package/build/esm/schemas/v2021_02_11/video.builder.d.ts +0 -12
  17. package/build/esm/schemas/v2021_02_11/video.builder.js +0 -12
  18. package/build/esm/tests/utilities/toolBeltAssert.d.ts +11 -9
  19. package/build/esm/tests/utilities/toolBeltAssert.js +5 -0
  20. package/build/schemas/v2021_02_11/cards/card.builder.d.ts +0 -60
  21. package/build/schemas/v2021_02_11/cards/cardBody.builder.d.ts +0 -48
  22. package/build/schemas/v2021_02_11/cards/cardHeader.builder.d.ts +0 -12
  23. package/build/schemas/v2021_02_11/cards/cardSection.builder.d.ts +0 -48
  24. package/build/schemas/v2021_02_11/dialog.builder.d.ts +0 -60
  25. package/build/schemas/v2021_02_11/formSection.builder.d.ts +0 -12
  26. package/build/schemas/v2021_02_11/forms/bigForm.builder.d.ts +0 -12
  27. package/build/schemas/v2021_02_11/forms/form.builder.d.ts +0 -12
  28. package/build/schemas/v2021_02_11/list.builder.d.ts +0 -12
  29. package/build/schemas/v2021_02_11/listCell.builder.d.ts +0 -12
  30. package/build/schemas/v2021_02_11/toolBelt.builder.d.ts +0 -60
  31. package/build/schemas/v2021_02_11/video.builder.d.ts +0 -12
  32. package/build/schemas/v2021_02_11/video.builder.js +0 -12
  33. package/build/tests/utilities/toolBeltAssert.d.ts +11 -9
  34. package/build/tests/utilities/toolBeltAssert.js +4 -0
  35. package/package.json +1 -1
@@ -219,10 +219,6 @@ declare const _default: {
219
219
  type: "boolean";
220
220
  label: string;
221
221
  };
222
- shouldRestartOnBuffer: {
223
- type: "boolean";
224
- label: string;
225
- };
226
222
  hasControls: {
227
223
  type: "boolean";
228
224
  label: string;
@@ -233,14 +229,6 @@ declare const _default: {
233
229
  label: string;
234
230
  hint: string;
235
231
  };
236
- startTime: {
237
- type: "number";
238
- label: string;
239
- };
240
- endTime: {
241
- type: "number";
242
- label: string;
243
- };
244
232
  };
245
233
  };
246
234
  };
@@ -141,10 +141,6 @@ declare const _default: {
141
141
  type: "boolean";
142
142
  label: string;
143
143
  };
144
- shouldRestartOnBuffer: {
145
- type: "boolean";
146
- label: string;
147
- };
148
144
  hasControls: {
149
145
  type: "boolean";
150
146
  label: string;
@@ -155,14 +151,6 @@ declare const _default: {
155
151
  label: string;
156
152
  hint: string;
157
153
  };
158
- startTime: {
159
- type: "number";
160
- label: string;
161
- };
162
- endTime: {
163
- type: "number";
164
- label: string;
165
- };
166
154
  };
167
155
  };
168
156
  };
@@ -545,10 +545,6 @@ declare const _default: {
545
545
  type: "boolean";
546
546
  label: string;
547
547
  };
548
- shouldRestartOnBuffer: {
549
- type: "boolean";
550
- label: string;
551
- };
552
548
  hasControls: {
553
549
  type: "boolean";
554
550
  label: string;
@@ -559,14 +555,6 @@ declare const _default: {
559
555
  label: string;
560
556
  hint: string;
561
557
  };
562
- startTime: {
563
- type: "number";
564
- label: string;
565
- };
566
- endTime: {
567
- type: "number";
568
- label: string;
569
- };
570
558
  };
571
559
  };
572
560
  };
@@ -7484,10 +7472,6 @@ declare const _default: {
7484
7472
  type: "boolean";
7485
7473
  label: string;
7486
7474
  };
7487
- shouldRestartOnBuffer: {
7488
- type: "boolean";
7489
- label: string;
7490
- };
7491
7475
  hasControls: {
7492
7476
  type: "boolean";
7493
7477
  label: string;
@@ -7498,14 +7482,6 @@ declare const _default: {
7498
7482
  label: string;
7499
7483
  hint: string;
7500
7484
  };
7501
- startTime: {
7502
- type: "number";
7503
- label: string;
7504
- };
7505
- endTime: {
7506
- type: "number";
7507
- label: string;
7508
- };
7509
7485
  };
7510
7486
  };
7511
7487
  };
@@ -7917,10 +7893,6 @@ declare const _default: {
7917
7893
  type: "boolean";
7918
7894
  label: string;
7919
7895
  };
7920
- shouldRestartOnBuffer: {
7921
- type: "boolean";
7922
- label: string;
7923
- };
7924
7896
  hasControls: {
7925
7897
  type: "boolean";
7926
7898
  label: string;
@@ -7931,14 +7903,6 @@ declare const _default: {
7931
7903
  label: string;
7932
7904
  hint: string;
7933
7905
  };
7934
- startTime: {
7935
- type: "number";
7936
- label: string;
7937
- };
7938
- endTime: {
7939
- type: "number";
7940
- label: string;
7941
- };
7942
7906
  };
7943
7907
  };
7944
7908
  };
@@ -15177,10 +15141,6 @@ declare const _default: {
15177
15141
  type: "boolean";
15178
15142
  label: string;
15179
15143
  };
15180
- shouldRestartOnBuffer: {
15181
- type: "boolean";
15182
- label: string;
15183
- };
15184
15144
  hasControls: {
15185
15145
  type: "boolean";
15186
15146
  label: string;
@@ -15191,14 +15151,6 @@ declare const _default: {
15191
15151
  label: string;
15192
15152
  hint: string;
15193
15153
  };
15194
- startTime: {
15195
- type: "number";
15196
- label: string;
15197
- };
15198
- endTime: {
15199
- type: "number";
15200
- label: string;
15201
- };
15202
15154
  };
15203
15155
  };
15204
15156
  };
@@ -22399,10 +22351,6 @@ declare const _default: {
22399
22351
  type: "boolean";
22400
22352
  label: string;
22401
22353
  };
22402
- shouldRestartOnBuffer: {
22403
- type: "boolean";
22404
- label: string;
22405
- };
22406
22354
  hasControls: {
22407
22355
  type: "boolean";
22408
22356
  label: string;
@@ -22413,14 +22361,6 @@ declare const _default: {
22413
22361
  label: string;
22414
22362
  hint: string;
22415
22363
  };
22416
- startTime: {
22417
- type: "number";
22418
- label: string;
22419
- };
22420
- endTime: {
22421
- type: "number";
22422
- label: string;
22423
- };
22424
22364
  };
22425
22365
  };
22426
22366
  };
@@ -38,10 +38,6 @@ declare const _default: {
38
38
  type: "boolean";
39
39
  label: string;
40
40
  };
41
- shouldRestartOnBuffer: {
42
- type: "boolean";
43
- label: string;
44
- };
45
41
  hasControls: {
46
42
  type: "boolean";
47
43
  label: string;
@@ -52,14 +48,6 @@ declare const _default: {
52
48
  label: string;
53
49
  hint: string;
54
50
  };
55
- startTime: {
56
- type: "number";
57
- label: string;
58
- };
59
- endTime: {
60
- type: "number";
61
- label: string;
62
- };
63
51
  };
64
52
  };
65
53
  export default _default;
@@ -42,10 +42,6 @@ exports.default = (0, schema_1.buildSchema)({
42
42
  type: 'boolean',
43
43
  label: 'Loop video',
44
44
  },
45
- shouldRestartOnBuffer: {
46
- type: 'boolean',
47
- label: 'Restart on buffer (non-standard)',
48
- },
49
45
  hasControls: {
50
46
  type: 'boolean',
51
47
  label: 'Show controls',
@@ -56,13 +52,5 @@ exports.default = (0, schema_1.buildSchema)({
56
52
  label: 'Play inline',
57
53
  hint: 'Use inline playback on mobile (playsInline)',
58
54
  },
59
- startTime: {
60
- type: 'number',
61
- label: 'Start time (s)',
62
- },
63
- endTime: {
64
- type: 'number',
65
- label: 'End time (s)',
66
- },
67
55
  },
68
56
  });
@@ -1,12 +1,12 @@
1
- import { Card, SkillViewController, StickyToolPosition, ViewController } from '../../types/heartwood.types';
1
+ import { AppController, Card, SkillViewController, StickyToolPosition, ViewController } from '../../types/heartwood.types';
2
2
  import ToolBeltViewController, { OpenToolBeltOptions } from '../../viewControllers/ToolBelt.vc';
3
3
  declare const toolBeltAssert: {
4
- actionFocusesTool(svcOrToolBelt: SkillViewController | ToolBeltViewController, toolId: string, action: () => Promise<any> | any): Promise<void>;
5
- actionOpensToolBelt(svcOrToolBelt: SkillViewController | ToolBeltViewController, action: () => Promise<any> | any, options?: OpenToolBeltOptions): Promise<void>;
6
- actionDoesNotOpenToolBelt(svcOrToolBelt: SkillViewController | ToolBeltViewController, action: () => Promise<any> | any): Promise<void>;
7
- actionClosesToolBelt(svcOrToolBelt: SkillViewController | ToolBeltViewController, action: () => Promise<any> | any): Promise<void>;
8
- actionDoesNotCloseToolBelt(svcOrToolBelt: SkillViewController | ToolBeltViewController, action: () => Promise<any> | any): Promise<void>;
9
- rendersToolBelt(svcOrToolBelt: SkillViewController | ToolBeltViewController, assertHasAtLeast1Tool?: boolean): ToolBeltViewController;
4
+ actionFocusesTool(svcOrToolBelt: Controller | ToolBeltViewController, toolId: string, action: () => Promise<any> | any): Promise<void>;
5
+ actionOpensToolBelt(svcOrToolBelt: Controller | ToolBeltViewController, action: () => Promise<any> | any, options?: OpenToolBeltOptions): Promise<void>;
6
+ actionDoesNotOpenToolBelt(svcOrToolBelt: Controller | ToolBeltViewController, action: () => Promise<any> | any): Promise<void>;
7
+ actionClosesToolBelt(svcOrToolBelt: Controller | ToolBeltViewController, action: () => Promise<any> | any): Promise<void>;
8
+ actionDoesNotCloseToolBelt(svcOrToolBelt: Controller | ToolBeltViewController, action: () => Promise<any> | any): Promise<void>;
9
+ rendersToolBelt(svcOrToolBelt: Controller | ToolBeltViewController, assertHasAtLeast1Tool?: boolean): ToolBeltViewController;
10
10
  toolBeltDoesNotRenderStickyTools(svcOrToolBelt: SkillViewController | ToolBeltViewController): void;
11
11
  toolInstanceOf(svcOrToolBelt: SkillViewController | ToolBeltViewController, toolId: string, Class: any): ViewController<any>;
12
12
  toolBeltDoesNotRenderTool(svc: SkillViewController | ToolBeltViewController, toolId: string): void;
@@ -15,7 +15,9 @@ declare const toolBeltAssert: {
15
15
  position: StickyToolPosition;
16
16
  Class: any;
17
17
  }): ViewController<any>;
18
- toolBeltRendersTool(svcOrToolBelt: SkillViewController | ToolBeltViewController, toolId: string): ViewController<Card>;
19
- doesNotRenderToolBelt(svc: SkillViewController): void;
18
+ toolBeltRendersTool(svcOrToolBelt: Controller | ToolBeltViewController, toolId: string): ViewController<Card>;
19
+ doesNotRenderToolBelt(svc: Controller): void;
20
+ hidesToolBelt(svc: Controller): void;
20
21
  };
21
22
  export default toolBeltAssert;
23
+ type Controller = SkillViewController | AppController;
@@ -123,5 +123,9 @@ const toolBeltAssert = {
123
123
  }
124
124
  test_utils_1.assert.fail(`Your skill view should not be rendering a toolbelt with tools`);
125
125
  },
126
+ hidesToolBelt(svc) {
127
+ const toolBelt = svc.renderToolBelt?.();
128
+ test_utils_1.assert.isNull(toolBelt, `I expected renderToolbelt() to return null, but it did not.`);
129
+ },
126
130
  };
127
131
  exports.default = toolBeltAssert;
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "sideEffects": false,
13
13
  "license": "MIT",
14
14
  "description": "All the power of Heartwood in one, convenient package.",
15
- "version": "128.0.8",
15
+ "version": "128.1.0",
16
16
  "skill": {
17
17
  "namespace": "HeartwoodViewControllers",
18
18
  "commandOverrides": {