@careevolution/mydatahelps-ui 2.9.1-AsthmaUI.82 → 2.9.1-AsthmaUI.84
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/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/asthma/components/AsthmaActionPlanManager/AsthmaActionPlanManager.d.ts +0 -2
- package/dist/cjs/types/components/asthma/components/AsthmaBarChart/AsthmaBarChart.d.ts +2 -2
- package/dist/cjs/types/components/asthma/helpers/asthma-data.d.ts +2 -1
- package/dist/cjs/types/components/asthma/model/types.d.ts +0 -4
- package/dist/cjs/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.d.ts +0 -2
- package/dist/cjs/types/components/container/DailyDataChart/DailyDataChart.d.ts +0 -3
- package/dist/cjs/types/components/presentational/Section/Section.d.ts +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/asthma/components/AsthmaActionPlanManager/AsthmaActionPlanManager.d.ts +0 -2
- package/dist/esm/types/components/asthma/components/AsthmaBarChart/AsthmaBarChart.d.ts +2 -2
- package/dist/esm/types/components/asthma/helpers/asthma-data.d.ts +2 -1
- package/dist/esm/types/components/asthma/model/types.d.ts +0 -4
- package/dist/esm/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.d.ts +0 -2
- package/dist/esm/types/components/container/DailyDataChart/DailyDataChart.d.ts +0 -3
- package/dist/esm/types/components/presentational/Section/Section.d.ts +1 -0
- package/dist/index.d.ts +17 -23
- package/package.json +1 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './AsthmaActionPlanManager.css';
|
|
3
|
-
import { AsthmaActionPlan } from '../../model';
|
|
4
3
|
export interface AsthmaActionPlanManagerProps {
|
|
5
4
|
previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
|
|
6
5
|
learnMoreUrl: string;
|
|
7
|
-
onViewActionPlan: (actionPlan: AsthmaActionPlan) => void;
|
|
8
6
|
editActionPlanSurveyName: string;
|
|
9
7
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
10
8
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { DailyDataProvider } from '../../../../helpers/query-daily-data';
|
|
3
3
|
import { AxisDomain } from 'recharts/types/util/types';
|
|
4
4
|
import './AsthmaBarChart.css';
|
|
5
|
-
export interface
|
|
5
|
+
export interface AsthmaBarChartProps {
|
|
6
6
|
previewState?: 'default';
|
|
7
7
|
title: string;
|
|
8
8
|
dailyDataType: string;
|
|
@@ -14,4 +14,4 @@ export interface AsthmaDailyDataChartProps {
|
|
|
14
14
|
previewDataProvider?: DailyDataProvider;
|
|
15
15
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
16
16
|
}
|
|
17
|
-
export default function (props:
|
|
17
|
+
export default function (props: AsthmaBarChartProps): React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { SurveyAnswer } from '@careevolution/mydatahelps-js';
|
|
1
|
+
import { DeviceInfo, SurveyAnswer } from '@careevolution/mydatahelps-js';
|
|
2
2
|
import { AsthmaActionPlan, AsthmaAirQuality, AsthmaBiometric, AsthmaLogEntry, AsthmaParticipant } from '../model';
|
|
3
3
|
export interface AsthmaDataService {
|
|
4
4
|
loadParticipant(): Promise<AsthmaParticipant>;
|
|
5
|
+
loadDeviceInfo(): Promise<DeviceInfo>;
|
|
5
6
|
loadLogEntries(fromDate?: Date, toDate?: Date): Promise<AsthmaLogEntry[]>;
|
|
6
7
|
loadBiometricsForControlStatus(): Promise<AsthmaBiometric[]>;
|
|
7
8
|
loadBiometricsForDate(date: Date): Promise<AsthmaBiometric[]>;
|
package/dist/esm/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AsthmaActionPlan } from '../../model';
|
|
3
2
|
export interface AsthmaActionPlanViewProps {
|
|
4
3
|
colorScheme?: 'light' | 'dark' | 'auto';
|
|
5
4
|
previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
|
|
6
5
|
learnMoreUrl: string;
|
|
7
|
-
onViewActionPlan: (actionPlan: AsthmaActionPlan) => void;
|
|
8
6
|
editActionPlanSurveyName: string;
|
|
9
7
|
}
|
|
10
8
|
export default function (props: AsthmaActionPlanViewProps): React.JSX.Element;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DailyDataProvider } from '../../../helpers/query-daily-data';
|
|
3
3
|
import "./DailyDataChart.css";
|
|
4
|
-
import { AxisDomain } from 'recharts/types/util/types';
|
|
5
4
|
import { WeekStartsOn } from '../../../helpers/get-interval-start';
|
|
6
5
|
export interface DailyDataChartProps {
|
|
7
6
|
title?: string;
|
|
8
|
-
subtitle?: string;
|
|
9
7
|
intervalType?: "Week" | "Month";
|
|
10
8
|
weekStartsOn?: WeekStartsOn;
|
|
11
9
|
dailyDataType: string;
|
|
@@ -23,7 +21,6 @@ export interface LineChartOptions {
|
|
|
23
21
|
}
|
|
24
22
|
export interface BarChartOptions {
|
|
25
23
|
barColor?: string;
|
|
26
|
-
domain?: AxisDomain;
|
|
27
24
|
}
|
|
28
25
|
export interface AreaChartOptions {
|
|
29
26
|
lineColor?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import React, { ReactElement, CSSProperties, MouseEventHandler, ReactNode, DependencyList } from 'react';
|
|
2
|
-
import { ParticipantInfo, DeviceDataNamespace, StatusBarStyle, ExternalAccount, Notification, SurveyTask, InboxMessage, InboxResource, InboxSurvey, SurveyAnswer, ExternalAccountStatus, NotificationType, ExternalAccountProvider, SurveyTaskStatus, InboxItemType, InboxItemStatus, SortOrder, InboxItemSortColumn, InboxItem, EventName } from '@careevolution/mydatahelps-js';
|
|
2
|
+
import { ParticipantInfo, DeviceDataNamespace, StatusBarStyle, ExternalAccount, Notification, SurveyTask, InboxMessage, InboxResource, InboxSurvey, DeviceInfo, SurveyAnswer, ExternalAccountStatus, NotificationType, ExternalAccountProvider, SurveyTaskStatus, InboxItemType, InboxItemStatus, SortOrder, InboxItemSortColumn, InboxItem, EventName } from '@careevolution/mydatahelps-js';
|
|
3
3
|
import { AxisDomain } from 'recharts/types/util/types';
|
|
4
4
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
5
5
|
import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-common-types';
|
|
6
6
|
|
|
7
|
+
interface AsthmaActionPlanManagerProps {
|
|
8
|
+
previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
|
|
9
|
+
learnMoreUrl: string;
|
|
10
|
+
editActionPlanSurveyName: string;
|
|
11
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
12
|
+
}
|
|
13
|
+
declare function export_default$2c(props: AsthmaActionPlanManagerProps): React.JSX.Element;
|
|
14
|
+
|
|
7
15
|
declare class AsthmaParticipant {
|
|
8
16
|
participantInfo: ParticipantInfo;
|
|
9
17
|
constructor(participantInfo: ParticipantInfo);
|
|
@@ -65,30 +73,17 @@ interface AsthmaLogEntry {
|
|
|
65
73
|
impacts: AsthmaImpact[];
|
|
66
74
|
triggers: AsthmaTrigger[];
|
|
67
75
|
}
|
|
68
|
-
interface AsthmaLibraryArticle {
|
|
69
|
-
title: string;
|
|
70
|
-
subTitle?: string;
|
|
71
|
-
url: string;
|
|
72
|
-
imageUrl?: string;
|
|
73
|
-
}
|
|
74
76
|
interface AsthmaActionPlan {
|
|
75
77
|
id: string;
|
|
76
78
|
url: string;
|
|
77
79
|
}
|
|
78
|
-
interface
|
|
79
|
-
|
|
80
|
+
interface AsthmaLibraryArticle {
|
|
81
|
+
title: string;
|
|
82
|
+
subTitle?: string;
|
|
80
83
|
url: string;
|
|
84
|
+
imageUrl?: string;
|
|
81
85
|
}
|
|
82
86
|
|
|
83
|
-
interface AsthmaActionPlanManagerProps {
|
|
84
|
-
previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
|
|
85
|
-
learnMoreUrl: string;
|
|
86
|
-
onViewActionPlan: (actionPlan: AsthmaActionPlan) => void;
|
|
87
|
-
editActionPlanSurveyName: string;
|
|
88
|
-
innerRef?: React.Ref<HTMLDivElement>;
|
|
89
|
-
}
|
|
90
|
-
declare function export_default$2c(props: AsthmaActionPlanManagerProps): React.JSX.Element;
|
|
91
|
-
|
|
92
87
|
type AsthmaAirQualitiesPreviewState = 'neither configured' | 'one configured' | 'no data (control)' | 'no data (date)' | 'some data (control)' | 'some data (date)' | 'all data';
|
|
93
88
|
|
|
94
89
|
interface AsthmaAirQualitiesProps {
|
|
@@ -189,7 +184,7 @@ declare enum DailyDataType {
|
|
|
189
184
|
RestingHeartRate = "RestingHeartRate"
|
|
190
185
|
}
|
|
191
186
|
|
|
192
|
-
interface
|
|
187
|
+
interface AsthmaBarChartProps {
|
|
193
188
|
previewState?: 'default';
|
|
194
189
|
title: string;
|
|
195
190
|
dailyDataType: string;
|
|
@@ -201,7 +196,7 @@ interface AsthmaDailyDataChartProps {
|
|
|
201
196
|
previewDataProvider?: DailyDataProvider;
|
|
202
197
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
203
198
|
}
|
|
204
|
-
declare function export_default$28(props:
|
|
199
|
+
declare function export_default$28(props: AsthmaBarChartProps): React.JSX.Element;
|
|
205
200
|
|
|
206
201
|
type AsthmaBiometricsPreviewState = 'no data' | 'some data' | 'all data';
|
|
207
202
|
|
|
@@ -544,6 +539,7 @@ interface SectionProps {
|
|
|
544
539
|
children?: React.ReactNode;
|
|
545
540
|
className?: string;
|
|
546
541
|
noTopMargin?: boolean;
|
|
542
|
+
noBottomMargin?: boolean;
|
|
547
543
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
548
544
|
backgroundColor?: ColorDefinition;
|
|
549
545
|
style?: React.CSSProperties;
|
|
@@ -794,6 +790,7 @@ declare function export_default$1r(props: AsthmaPostEnrollmentSurveyTriggerProps
|
|
|
794
790
|
|
|
795
791
|
interface AsthmaDataService {
|
|
796
792
|
loadParticipant(): Promise<AsthmaParticipant>;
|
|
793
|
+
loadDeviceInfo(): Promise<DeviceInfo>;
|
|
797
794
|
loadLogEntries(fromDate?: Date, toDate?: Date): Promise<AsthmaLogEntry[]>;
|
|
798
795
|
loadBiometricsForControlStatus(): Promise<AsthmaBiometric[]>;
|
|
799
796
|
loadBiometricsForDate(date: Date): Promise<AsthmaBiometric[]>;
|
|
@@ -829,7 +826,6 @@ interface AsthmaActionPlanViewProps {
|
|
|
829
826
|
colorScheme?: 'light' | 'dark' | 'auto';
|
|
830
827
|
previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
|
|
831
828
|
learnMoreUrl: string;
|
|
832
|
-
onViewActionPlan: (actionPlan: AsthmaActionPlan) => void;
|
|
833
829
|
editActionPlanSurveyName: string;
|
|
834
830
|
}
|
|
835
831
|
declare function export_default$1q(props: AsthmaActionPlanViewProps): React.JSX.Element;
|
|
@@ -1009,7 +1005,6 @@ declare function export_default$19(props: ConnectGarminProps): React.JSX.Element
|
|
|
1009
1005
|
|
|
1010
1006
|
interface DailyDataChartProps {
|
|
1011
1007
|
title?: string;
|
|
1012
|
-
subtitle?: string;
|
|
1013
1008
|
intervalType?: "Week" | "Month";
|
|
1014
1009
|
weekStartsOn?: WeekStartsOn;
|
|
1015
1010
|
dailyDataType: string;
|
|
@@ -1027,7 +1022,6 @@ interface LineChartOptions {
|
|
|
1027
1022
|
}
|
|
1028
1023
|
interface BarChartOptions {
|
|
1029
1024
|
barColor?: string;
|
|
1030
|
-
domain?: AxisDomain;
|
|
1031
1025
|
}
|
|
1032
1026
|
interface AreaChartOptions {
|
|
1033
1027
|
lineColor?: string;
|