@careevolution/mydatahelps-ui 2.10.1-InboxAndAsthmaUI.13 → 2.10.1-InboxAndAsthmaUI.15

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 (20) hide show
  1. package/dist/cjs/index.js +4 -4
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +1 -3
  4. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +1 -1
  5. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +7 -12
  6. package/dist/cjs/types/components/asthma/components/AsthmaDataSummary/AsthmaDataSummary.d.ts +0 -1
  7. package/dist/cjs/types/components/asthma/helpers/asthma-data.d.ts +1 -1
  8. package/dist/cjs/types/components/asthma/model/types.d.ts +1 -1
  9. package/dist/cjs/types/components/asthma/views/AsthmaDayView/AsthmaDayView.d.ts +1 -0
  10. package/dist/esm/index.js +4 -4
  11. package/dist/esm/index.js.map +1 -1
  12. package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +1 -3
  13. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +1 -1
  14. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +7 -12
  15. package/dist/esm/types/components/asthma/components/AsthmaDataSummary/AsthmaDataSummary.d.ts +0 -1
  16. package/dist/esm/types/components/asthma/helpers/asthma-data.d.ts +1 -1
  17. package/dist/esm/types/components/asthma/model/types.d.ts +1 -1
  18. package/dist/esm/types/components/asthma/views/AsthmaDayView/AsthmaDayView.d.ts +1 -0
  19. package/dist/index.d.ts +5 -5
  20. package/package.json +1 -1
@@ -1,9 +1,7 @@
1
1
  import { AsthmaAirQuality } from '../../model';
2
- export type AsthmaAirQualitiesPreviewState = 'not configured' | 'some configured' | 'no data' | 'some data' | 'all data';
2
+ export type AsthmaAirQualitiesPreviewState = 'neither configured' | 'one configured' | 'no data (control)' | 'no data (date)' | 'some data (control)' | 'some data (date)' | 'all data';
3
3
  export interface AsthmaAirQualitiesPreviewData {
4
- homeAirQualityZipCode?: string;
5
4
  homeAirQuality: AsthmaAirQuality;
6
- workAirQualityZipCode?: string;
7
5
  workAirQuality: AsthmaAirQuality;
8
6
  }
9
7
  export declare const previewData: Record<AsthmaAirQualitiesPreviewState, AsthmaAirQualitiesPreviewData>;
@@ -1,5 +1,5 @@
1
1
  import { AsthmaBiometric } from '../../model';
2
- export type AsthmaBiometricsPreviewState = 'no-data' | 'some-data' | 'all-data';
2
+ export type AsthmaBiometricsPreviewState = 'no data' | 'some data' | 'all data';
3
3
  export interface AsthmaBiometricsPreviewData {
4
4
  daytimeRestingHeartRate: AsthmaBiometric;
5
5
  nighttimeRestingHeartRate: AsthmaBiometric;
@@ -8,21 +8,16 @@ declare const _default: {
8
8
  };
9
9
  };
10
10
  export default _default;
11
- export declare const NoData: {
11
+ export declare const Default: {
12
12
  args: {
13
13
  previewState: string;
14
14
  };
15
- render: (args: AsthmaBiometricsProps) => React.JSX.Element;
16
- };
17
- export declare const SomeData: {
18
- args: {
19
- previewState: string;
20
- };
21
- render: (args: AsthmaBiometricsProps) => React.JSX.Element;
22
- };
23
- export declare const AllData: {
24
- args: {
25
- previewState: string;
15
+ argTypes: {
16
+ previewState: {
17
+ name: string;
18
+ control: string;
19
+ options: string[];
20
+ };
26
21
  };
27
22
  render: (args: AsthmaBiometricsProps) => React.JSX.Element;
28
23
  };
@@ -3,7 +3,6 @@ import './AsthmaDataSummary.css';
3
3
  import { AsthmaDataStatus } from '../../model';
4
4
  export interface AsthmaDataSummaryProps {
5
5
  label: string;
6
- requiresSetup?: boolean;
7
6
  status: AsthmaDataStatus;
8
7
  statusText?: string;
9
8
  value?: number;
@@ -5,7 +5,7 @@ export interface AsthmaDataService {
5
5
  loadLogEntries(fromDate?: Date, toDate?: Date): Promise<AsthmaLogEntry[]>;
6
6
  loadBiometricsForControlStatus(): Promise<AsthmaBiometric[]>;
7
7
  loadBiometricsForDate(date: Date): Promise<AsthmaBiometric[]>;
8
- loadAirQualitiesForControlStatus(): Promise<AsthmaAirQuality[]>;
8
+ loadAirQualitiesForControlStatus(homeAirQualityZipCode: string, workAirQualityZipCode: string): Promise<AsthmaAirQuality[]>;
9
9
  loadAirQualitiesForDate(date: Date): Promise<AsthmaAirQuality[]>;
10
10
  saveLogEntry(logEntry: AsthmaLogEntry): Promise<void>;
11
11
  loadAndClearAlertTakeover(): Promise<string | undefined>;
@@ -27,7 +27,7 @@ export interface AsthmaControlState {
27
27
  limitedActivityDaysPast7?: number;
28
28
  inhalerUseDaysPast7?: number;
29
29
  }
30
- export type AsthmaDataStatus = 'establishing' | 'offline' | 'in-range' | 'out-of-range';
30
+ export type AsthmaDataStatus = 'not-configured' | 'not-found' | 'establishing' | 'offline' | 'in-range' | 'out-of-range';
31
31
  export type AsthmaBiometricType = 'daytime-resting-heart-rate' | 'nighttime-resting-heart-rate' | 'respiratory-rate' | 'steps' | 'sleep-disturbances' | 'daytime-blood-oxygen-level' | 'nighttime-blood-oxygen-level';
32
32
  export interface AsthmaBiometric {
33
33
  type: AsthmaBiometricType;
@@ -15,6 +15,7 @@ export interface AsthmaDayViewProps {
15
15
  heartAndLungsUrl: string;
16
16
  activityUrl: string;
17
17
  sleepUrl: string;
18
+ editZipCodesSurveyName: string;
18
19
  airQualityUrl: string;
19
20
  }
20
21
  export default function (props: AsthmaDayViewProps): React.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -40,7 +40,7 @@ interface AsthmaControlState {
40
40
  limitedActivityDaysPast7?: number;
41
41
  inhalerUseDaysPast7?: number;
42
42
  }
43
- type AsthmaDataStatus = 'establishing' | 'offline' | 'in-range' | 'out-of-range';
43
+ type AsthmaDataStatus = 'not-configured' | 'not-found' | 'establishing' | 'offline' | 'in-range' | 'out-of-range';
44
44
  type AsthmaBiometricType = 'daytime-resting-heart-rate' | 'nighttime-resting-heart-rate' | 'respiratory-rate' | 'steps' | 'sleep-disturbances' | 'daytime-blood-oxygen-level' | 'nighttime-blood-oxygen-level';
45
45
  interface AsthmaBiometric {
46
46
  type: AsthmaBiometricType;
@@ -63,7 +63,7 @@ interface AsthmaLogEntry {
63
63
  triggers: string[];
64
64
  }
65
65
 
66
- type AsthmaAirQualitiesPreviewState = 'not configured' | 'some configured' | 'no data' | 'some data' | 'all data';
66
+ type AsthmaAirQualitiesPreviewState = 'neither configured' | 'one configured' | 'no data (control)' | 'no data (date)' | 'some data (control)' | 'some data (date)' | 'all data';
67
67
 
68
68
  interface AsthmaAirQualitiesProps {
69
69
  previewState?: AsthmaAirQualitiesPreviewState;
@@ -93,7 +93,7 @@ interface AsthmaAlertTakeoverTriggerProps {
93
93
  }
94
94
  declare function export_default$28(props: AsthmaAlertTakeoverTriggerProps): null;
95
95
 
96
- type AsthmaBiometricsPreviewState = 'no-data' | 'some-data' | 'all-data';
96
+ type AsthmaBiometricsPreviewState = 'no data' | 'some data' | 'all data';
97
97
 
98
98
  interface AsthmaBiometricsProps {
99
99
  previewState?: AsthmaBiometricsPreviewState;
@@ -128,7 +128,6 @@ declare function export_default$25(props: AsthmaControlStatusHeaderProps): React
128
128
 
129
129
  interface AsthmaDataSummaryProps {
130
130
  label: string;
131
- requiresSetup?: boolean;
132
131
  status: AsthmaDataStatus;
133
132
  statusText?: string;
134
133
  value?: number;
@@ -188,7 +187,7 @@ interface AsthmaDataService {
188
187
  loadLogEntries(fromDate?: Date, toDate?: Date): Promise<AsthmaLogEntry[]>;
189
188
  loadBiometricsForControlStatus(): Promise<AsthmaBiometric[]>;
190
189
  loadBiometricsForDate(date: Date): Promise<AsthmaBiometric[]>;
191
- loadAirQualitiesForControlStatus(): Promise<AsthmaAirQuality[]>;
190
+ loadAirQualitiesForControlStatus(homeAirQualityZipCode: string, workAirQualityZipCode: string): Promise<AsthmaAirQuality[]>;
192
191
  loadAirQualitiesForDate(date: Date): Promise<AsthmaAirQuality[]>;
193
192
  saveLogEntry(logEntry: AsthmaLogEntry): Promise<void>;
194
193
  loadAndClearAlertTakeover(): Promise<string | undefined>;
@@ -248,6 +247,7 @@ interface AsthmaDayViewProps {
248
247
  heartAndLungsUrl: string;
249
248
  activityUrl: string;
250
249
  sleepUrl: string;
250
+ editZipCodesSurveyName: string;
251
251
  airQualityUrl: string;
252
252
  }
253
253
  declare function export_default$1W(props: AsthmaDayViewProps): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careevolution/mydatahelps-ui",
3
- "version": "2.10.1-InboxAndAsthmaUI.13",
3
+ "version": "2.10.1-InboxAndAsthmaUI.15",
4
4
  "description": "MyDataHelps UI Library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",