@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
@@ -515,10 +515,6 @@ declare const _default: {
515
515
  type: "boolean";
516
516
  label: string;
517
517
  };
518
- shouldRestartOnBuffer: {
519
- type: "boolean";
520
- label: string;
521
- };
522
518
  hasControls: {
523
519
  type: "boolean";
524
520
  label: string;
@@ -529,14 +525,6 @@ declare const _default: {
529
525
  label: string;
530
526
  hint: string;
531
527
  };
532
- startTime: {
533
- type: "number";
534
- label: string;
535
- };
536
- endTime: {
537
- type: "number";
538
- label: string;
539
- };
540
528
  };
541
529
  };
542
530
  };
@@ -7454,10 +7442,6 @@ declare const _default: {
7454
7442
  type: "boolean";
7455
7443
  label: string;
7456
7444
  };
7457
- shouldRestartOnBuffer: {
7458
- type: "boolean";
7459
- label: string;
7460
- };
7461
7445
  hasControls: {
7462
7446
  type: "boolean";
7463
7447
  label: string;
@@ -7468,14 +7452,6 @@ declare const _default: {
7468
7452
  label: string;
7469
7453
  hint: string;
7470
7454
  };
7471
- startTime: {
7472
- type: "number";
7473
- label: string;
7474
- };
7475
- endTime: {
7476
- type: "number";
7477
- label: string;
7478
- };
7479
7455
  };
7480
7456
  };
7481
7457
  };
@@ -7887,10 +7863,6 @@ declare const _default: {
7887
7863
  type: "boolean";
7888
7864
  label: string;
7889
7865
  };
7890
- shouldRestartOnBuffer: {
7891
- type: "boolean";
7892
- label: string;
7893
- };
7894
7866
  hasControls: {
7895
7867
  type: "boolean";
7896
7868
  label: string;
@@ -7901,14 +7873,6 @@ declare const _default: {
7901
7873
  label: string;
7902
7874
  hint: string;
7903
7875
  };
7904
- startTime: {
7905
- type: "number";
7906
- label: string;
7907
- };
7908
- endTime: {
7909
- type: "number";
7910
- label: string;
7911
- };
7912
7876
  };
7913
7877
  };
7914
7878
  };
@@ -15147,10 +15111,6 @@ declare const _default: {
15147
15111
  type: "boolean";
15148
15112
  label: string;
15149
15113
  };
15150
- shouldRestartOnBuffer: {
15151
- type: "boolean";
15152
- label: string;
15153
- };
15154
15114
  hasControls: {
15155
15115
  type: "boolean";
15156
15116
  label: string;
@@ -15161,14 +15121,6 @@ declare const _default: {
15161
15121
  label: string;
15162
15122
  hint: string;
15163
15123
  };
15164
- startTime: {
15165
- type: "number";
15166
- label: string;
15167
- };
15168
- endTime: {
15169
- type: "number";
15170
- label: string;
15171
- };
15172
15124
  };
15173
15125
  };
15174
15126
  };
@@ -22369,10 +22321,6 @@ declare const _default: {
22369
22321
  type: "boolean";
22370
22322
  label: string;
22371
22323
  };
22372
- shouldRestartOnBuffer: {
22373
- type: "boolean";
22374
- label: string;
22375
- };
22376
22324
  hasControls: {
22377
22325
  type: "boolean";
22378
22326
  label: string;
@@ -22383,14 +22331,6 @@ declare const _default: {
22383
22331
  label: string;
22384
22332
  hint: string;
22385
22333
  };
22386
- startTime: {
22387
- type: "number";
22388
- label: string;
22389
- };
22390
- endTime: {
22391
- type: "number";
22392
- label: string;
22393
- };
22394
22334
  };
22395
22335
  };
22396
22336
  };
@@ -280,10 +280,6 @@ declare const _default: {
280
280
  type: "boolean";
281
281
  label: string;
282
282
  };
283
- shouldRestartOnBuffer: {
284
- type: "boolean";
285
- label: string;
286
- };
287
283
  hasControls: {
288
284
  type: "boolean";
289
285
  label: string;
@@ -294,14 +290,6 @@ declare const _default: {
294
290
  label: string;
295
291
  hint: string;
296
292
  };
297
- startTime: {
298
- type: "number";
299
- label: string;
300
- };
301
- endTime: {
302
- type: "number";
303
- label: string;
304
- };
305
293
  };
306
294
  };
307
295
  };
@@ -471,10 +471,6 @@ declare const _default: {
471
471
  type: "boolean";
472
472
  label: string;
473
473
  };
474
- shouldRestartOnBuffer: {
475
- type: "boolean";
476
- label: string;
477
- };
478
474
  hasControls: {
479
475
  type: "boolean";
480
476
  label: string;
@@ -485,14 +481,6 @@ declare const _default: {
485
481
  label: string;
486
482
  hint: string;
487
483
  };
488
- startTime: {
489
- type: "number";
490
- label: string;
491
- };
492
- endTime: {
493
- type: "number";
494
- label: string;
495
- };
496
484
  };
497
485
  };
498
486
  };
@@ -396,10 +396,6 @@ declare const _default: {
396
396
  type: "boolean";
397
397
  label: string;
398
398
  };
399
- shouldRestartOnBuffer: {
400
- type: "boolean";
401
- label: string;
402
- };
403
399
  hasControls: {
404
400
  type: "boolean";
405
401
  label: string;
@@ -410,14 +406,6 @@ declare const _default: {
410
406
  label: string;
411
407
  hint: string;
412
408
  };
413
- startTime: {
414
- type: "number";
415
- label: string;
416
- };
417
- endTime: {
418
- type: "number";
419
- label: string;
420
- };
421
409
  };
422
410
  };
423
411
  };
@@ -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;
@@ -40,10 +40,6 @@ export default buildSchema({
40
40
  type: 'boolean',
41
41
  label: 'Loop video',
42
42
  },
43
- shouldRestartOnBuffer: {
44
- type: 'boolean',
45
- label: 'Restart on buffer (non-standard)',
46
- },
47
43
  hasControls: {
48
44
  type: 'boolean',
49
45
  label: 'Show controls',
@@ -54,13 +50,5 @@ export default buildSchema({
54
50
  label: 'Play inline',
55
51
  hint: 'Use inline playback on mobile (playsInline)',
56
52
  },
57
- startTime: {
58
- type: 'number',
59
- label: 'Start time (s)',
60
- },
61
- endTime: {
62
- type: 'number',
63
- label: 'End time (s)',
64
- },
65
53
  },
66
54
  });
@@ -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;
@@ -139,5 +139,10 @@ const toolBeltAssert = {
139
139
  }
140
140
  assert.fail(`Your skill view should not be rendering a toolbelt with tools`);
141
141
  },
142
+ hidesToolBelt(svc) {
143
+ var _a;
144
+ const toolBelt = (_a = svc.renderToolBelt) === null || _a === void 0 ? void 0 : _a.call(svc);
145
+ assert.isNull(toolBelt, `I expected renderToolbelt() to return null, but it did not.`);
146
+ },
142
147
  };
143
148
  export default toolBeltAssert;