@sprucelabs/heartwood-view-controllers 121.2.21 → 121.2.22

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.
@@ -3,11 +3,12 @@ import { MercuryClient, MercuryClientFactory } from '@sprucelabs/mercury-client'
3
3
  import { MercuryEventEmitter, PermissionContractId, PermissionId, SpruceSchemas } from '@sprucelabs/mercury-types';
4
4
  import { AddressFieldValue, FieldDefinitions, FieldError, Schema, SchemaFieldNames, SchemaPartialValues, SchemaValues } from '@sprucelabs/schema';
5
5
  import { Log } from '@sprucelabs/spruce-skill-utils';
6
- import { BarChartViewController, CalendarEventOptions, PagerViewController } from '..';
7
6
  import { fancyIcons, lineIcons } from '../constants';
8
7
  import mapUtil from '../maps/map.utility';
9
8
  import LockScreenSkillViewController, { LockScreenSkillViewControllerOptions } from '../skillViewControllers/LockScreen.svc';
10
9
  import { UniversalViewOptionFields } from '../utilities/removeUniversalViewOptions';
10
+ import { CalendarEventOptions } from '../viewControllers/AbstractCalendarEvent.vc';
11
+ import AbstractController from '../viewControllers/AbstractController';
11
12
  import ActiveRecordCardViewController, { ActiveRecordCardViewControllerOptions } from '../viewControllers/activeRecord/ActiveRecordCard.vc';
12
13
  import ActiveRecordListViewController, { ActiveRecordListViewControllerOptions } from '../viewControllers/activeRecord/ActiveRecordList.vc';
13
14
  import BigFormViewControllerImpl, { BigFormViewControllerOptions } from '../viewControllers/BigForm.vc';
@@ -16,7 +17,7 @@ import ButtonGroupViewController, { ButtonGroupViewControllerOptions } from '../
16
17
  import CalendarViewController, { CalendarViewControllerOptions } from '../viewControllers/Calendar.vc';
17
18
  import CalendarEventViewController from '../viewControllers/CalendarEvent.vc';
18
19
  import CardViewControllerImpl, { CardViewControllerOptions } from '../viewControllers/card/Card.vc';
19
- import { BarChartViewControllerOptions } from '../viewControllers/charts/BarChart.vc';
20
+ import BarChartViewController, { BarChartViewControllerOptions } from '../viewControllers/charts/BarChart.vc';
20
21
  import LineGraphViewController, { LineGraphViewControllerOptions } from '../viewControllers/charts/LineGraph.vc';
21
22
  import ConfirmViewController, { ConfirmViewControllerOptions } from '../viewControllers/Confirm.vc';
22
23
  import CountdownTimerViewController, { CountdownTimerViewControllerOptions } from '../viewControllers/countdownTimer/CountdownTimer.vc';
@@ -30,7 +31,7 @@ import ListRowViewController from '../viewControllers/list/ListRow.vc';
30
31
  import LoginCardViewController, { LoginCardViewControllerOptions } from '../viewControllers/LoginCard.vc';
31
32
  import MapViewController, { MapViewControllerOptions } from '../viewControllers/Map.vc';
32
33
  import NavigationViewController from '../viewControllers/navigation/Navigation.vc';
33
- import { PagerViewControllerOptions } from '../viewControllers/pagers/Pager.vc';
34
+ import PagerViewController, { PagerViewControllerOptions } from '../viewControllers/pagers/Pager.vc';
34
35
  import PolarAreaViewController, { PolarAreaViewControllerOptions } from '../viewControllers/PolarAreaViewController.vc';
35
36
  import ProgressNavigatorViewController, { ProgressNavigatorViewControllerOptions } from '../viewControllers/progressNavigator/ProgressNavigator.vc';
36
37
  import RatingsViewController, { RatingsViewControllerOptions } from '../viewControllers/Ratings.vc';
@@ -400,7 +401,8 @@ export type SkillViewControllerArgs<N extends SkillViewControllerId, O extends S
400
401
  export interface OnRenderHandler {
401
402
  onRender?(): void;
402
403
  }
403
- export type RenderInDialogHandler = (options: DialogViewControllerOptions) => void;
404
+ export type RenderInDialogHandler = (options: DialogViewControllerOptions) => DialogViewController;
405
+ export type AlertHandler = AbstractController['alert'];
404
406
  export type RenderLockScreenHandler = (options: LockScreen) => void;
405
407
  export interface ConfirmOptions {
406
408
  title?: string;
@@ -54,7 +54,9 @@ export default class ViewControllerFactory {
54
54
  toastHandler: toastHandler !== null && toastHandler !== void 0 ? toastHandler : (() => { }),
55
55
  confirmHandler: confirmHandler !== null && confirmHandler !== void 0 ? confirmHandler : (() => __awaiter(this, void 0, void 0, function* () { return false; })),
56
56
  voteHandler: voteHandler !== null && voteHandler !== void 0 ? voteHandler : (() => __awaiter(this, void 0, void 0, function* () { })),
57
- renderInDialogHandler: renderInDialogHandler !== null && renderInDialogHandler !== void 0 ? renderInDialogHandler : (() => { }),
57
+ renderInDialogHandler: renderInDialogHandler !== null && renderInDialogHandler !== void 0 ? renderInDialogHandler : (() => {
58
+ return {};
59
+ }),
58
60
  renderLockScreenHandler: renderLockScreenHandler !== null && renderLockScreenHandler !== void 0 ? renderLockScreenHandler : (() => { }),
59
61
  });
60
62
  }
@@ -3,11 +3,12 @@ import { MercuryClient, MercuryClientFactory } from '@sprucelabs/mercury-client'
3
3
  import { MercuryEventEmitter, PermissionContractId, PermissionId, SpruceSchemas } from '@sprucelabs/mercury-types';
4
4
  import { AddressFieldValue, FieldDefinitions, FieldError, Schema, SchemaFieldNames, SchemaPartialValues, SchemaValues } from '@sprucelabs/schema';
5
5
  import { Log } from '@sprucelabs/spruce-skill-utils';
6
- import { BarChartViewController, CalendarEventOptions, PagerViewController } from '..';
7
6
  import { fancyIcons, lineIcons } from '../constants';
8
7
  import mapUtil from '../maps/map.utility';
9
8
  import LockScreenSkillViewController, { LockScreenSkillViewControllerOptions } from '../skillViewControllers/LockScreen.svc';
10
9
  import { UniversalViewOptionFields } from '../utilities/removeUniversalViewOptions';
10
+ import { CalendarEventOptions } from '../viewControllers/AbstractCalendarEvent.vc';
11
+ import AbstractController from '../viewControllers/AbstractController';
11
12
  import ActiveRecordCardViewController, { ActiveRecordCardViewControllerOptions } from '../viewControllers/activeRecord/ActiveRecordCard.vc';
12
13
  import ActiveRecordListViewController, { ActiveRecordListViewControllerOptions } from '../viewControllers/activeRecord/ActiveRecordList.vc';
13
14
  import BigFormViewControllerImpl, { BigFormViewControllerOptions } from '../viewControllers/BigForm.vc';
@@ -16,7 +17,7 @@ import ButtonGroupViewController, { ButtonGroupViewControllerOptions } from '../
16
17
  import CalendarViewController, { CalendarViewControllerOptions } from '../viewControllers/Calendar.vc';
17
18
  import CalendarEventViewController from '../viewControllers/CalendarEvent.vc';
18
19
  import CardViewControllerImpl, { CardViewControllerOptions } from '../viewControllers/card/Card.vc';
19
- import { BarChartViewControllerOptions } from '../viewControllers/charts/BarChart.vc';
20
+ import BarChartViewController, { BarChartViewControllerOptions } from '../viewControllers/charts/BarChart.vc';
20
21
  import LineGraphViewController, { LineGraphViewControllerOptions } from '../viewControllers/charts/LineGraph.vc';
21
22
  import ConfirmViewController, { ConfirmViewControllerOptions } from '../viewControllers/Confirm.vc';
22
23
  import CountdownTimerViewController, { CountdownTimerViewControllerOptions } from '../viewControllers/countdownTimer/CountdownTimer.vc';
@@ -30,7 +31,7 @@ import ListRowViewController from '../viewControllers/list/ListRow.vc';
30
31
  import LoginCardViewController, { LoginCardViewControllerOptions } from '../viewControllers/LoginCard.vc';
31
32
  import MapViewController, { MapViewControllerOptions } from '../viewControllers/Map.vc';
32
33
  import NavigationViewController from '../viewControllers/navigation/Navigation.vc';
33
- import { PagerViewControllerOptions } from '../viewControllers/pagers/Pager.vc';
34
+ import PagerViewController, { PagerViewControllerOptions } from '../viewControllers/pagers/Pager.vc';
34
35
  import PolarAreaViewController, { PolarAreaViewControllerOptions } from '../viewControllers/PolarAreaViewController.vc';
35
36
  import ProgressNavigatorViewController, { ProgressNavigatorViewControllerOptions } from '../viewControllers/progressNavigator/ProgressNavigator.vc';
36
37
  import RatingsViewController, { RatingsViewControllerOptions } from '../viewControllers/Ratings.vc';
@@ -400,7 +401,8 @@ export type SkillViewControllerArgs<N extends SkillViewControllerId, O extends S
400
401
  export interface OnRenderHandler {
401
402
  onRender?(): void;
402
403
  }
403
- export type RenderInDialogHandler = (options: DialogViewControllerOptions) => void;
404
+ export type RenderInDialogHandler = (options: DialogViewControllerOptions) => DialogViewController;
405
+ export type AlertHandler = AbstractController['alert'];
404
406
  export type RenderLockScreenHandler = (options: LockScreen) => void;
405
407
  export interface ConfirmOptions {
406
408
  title?: string;
@@ -49,7 +49,10 @@ class ViewControllerFactory {
49
49
  toastHandler: toastHandler ?? (() => { }),
50
50
  confirmHandler: confirmHandler ?? (async () => false),
51
51
  voteHandler: voteHandler ?? (async () => { }),
52
- renderInDialogHandler: renderInDialogHandler ?? (() => { }),
52
+ renderInDialogHandler: renderInDialogHandler ??
53
+ (() => {
54
+ return {};
55
+ }),
53
56
  renderLockScreenHandler: renderLockScreenHandler ?? (() => { }),
54
57
  });
55
58
  }
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.2.21",
16
+ "version": "121.2.22",
17
17
  "skill": {
18
18
  "namespace": "HeartwoodViewControllers",
19
19
  "commandOverrides": {