@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/cjs/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;
|