@careevolution/mydatahelps-ui 2.10.1-InboxAndAsthmaUI.2 → 2.10.1-InboxAndAsthmaUI.21

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 (26) hide show
  1. package/dist/cjs/index.js +8 -8
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/asthma/components/AsthmaActionPlan/AsthmaActionPlan.d.ts +0 -1
  4. package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.d.ts +1 -0
  5. package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +1 -1
  6. package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.stories.d.ts +18 -14
  7. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +1 -1
  8. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +7 -12
  9. package/dist/cjs/types/components/asthma/components/AsthmaDataSummary/AsthmaDataSummary.stories.d.ts +7 -0
  10. package/dist/cjs/types/components/asthma/helpers/asthma-data.d.ts +1 -1
  11. package/dist/cjs/types/components/asthma/model/types.d.ts +4 -1
  12. package/dist/cjs/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.d.ts +0 -1
  13. package/dist/esm/index.js +9 -9
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/types/components/asthma/components/AsthmaActionPlan/AsthmaActionPlan.d.ts +0 -1
  16. package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.d.ts +1 -0
  17. package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +1 -1
  18. package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.stories.d.ts +18 -14
  19. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +1 -1
  20. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +7 -12
  21. package/dist/esm/types/components/asthma/components/AsthmaDataSummary/AsthmaDataSummary.stories.d.ts +7 -0
  22. package/dist/esm/types/components/asthma/helpers/asthma-data.d.ts +1 -1
  23. package/dist/esm/types/components/asthma/model/types.d.ts +4 -1
  24. package/dist/esm/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.d.ts +0 -1
  25. package/dist/index.d.ts +8 -6
  26. package/package.json +1 -1
@@ -4,7 +4,6 @@ export interface AsthmaActionPlanProps {
4
4
  previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
5
5
  learnMoreUrl: string;
6
6
  editActionPlanSurveyName: string;
7
- createActionPlanUrl: (id: string) => string;
8
7
  innerRef?: React.Ref<HTMLDivElement>;
9
8
  }
10
9
  export default function (props: AsthmaActionPlanProps): React.JSX.Element;
@@ -3,6 +3,7 @@ import './AsthmaAirQualities.css';
3
3
  import { AsthmaAirQualitiesPreviewState } from './AsthmaAirQualities.previewData';
4
4
  export interface AsthmaAirQualitiesProps {
5
5
  previewState?: AsthmaAirQualitiesPreviewState;
6
+ editZipCodesSurveyName?: string;
6
7
  airQualityUrl: string;
7
8
  date?: Date;
8
9
  innerRef?: React.Ref<HTMLDivElement>;
@@ -1,5 +1,5 @@
1
1
  import { AsthmaAirQuality } from '../../model';
2
- export type AsthmaAirQualitiesPreviewState = '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
4
  homeAirQuality: AsthmaAirQuality;
5
5
  workAirQuality: AsthmaAirQuality;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import AsthmaAirQualities, { AsthmaAirQualitiesProps } from './AsthmaAirQualities';
2
+ import AsthmaAirQualities from './AsthmaAirQualities';
3
+ import { AsthmaAirQualitiesPreviewState } from './AsthmaAirQualities.previewData';
3
4
  declare const _default: {
4
5
  title: string;
5
6
  component: typeof AsthmaAirQualities;
@@ -8,21 +9,24 @@ declare const _default: {
8
9
  };
9
10
  };
10
11
  export default _default;
11
- export declare const NoData: {
12
+ interface AsthmaAirQualitiesStoryArgs {
13
+ previewState: AsthmaAirQualitiesPreviewState;
14
+ canEditSettings: boolean;
15
+ }
16
+ export declare const Default: {
12
17
  args: {
13
18
  previewState: string;
19
+ canEditSettings: boolean;
14
20
  };
15
- render: (args: AsthmaAirQualitiesProps) => React.JSX.Element;
16
- };
17
- export declare const SomeData: {
18
- args: {
19
- previewState: string;
20
- };
21
- render: (args: AsthmaAirQualitiesProps) => React.JSX.Element;
22
- };
23
- export declare const AllData: {
24
- args: {
25
- previewState: string;
21
+ argTypes: {
22
+ previewState: {
23
+ name: string;
24
+ control: string;
25
+ options: string[];
26
+ };
27
+ canEditSettings: {
28
+ name: string;
29
+ };
26
30
  };
27
- render: (args: AsthmaAirQualitiesProps) => React.JSX.Element;
31
+ render: (args: AsthmaAirQualitiesStoryArgs) => React.JSX.Element;
28
32
  };
@@ -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
  };
@@ -8,6 +8,13 @@ declare const _default: {
8
8
  };
9
9
  };
10
10
  export default _default;
11
+ export declare const RequiresSetup: {
12
+ args: {
13
+ label: string;
14
+ requiresSetup: boolean;
15
+ };
16
+ render: (args: AsthmaDataSummaryProps) => React.JSX.Element;
17
+ };
11
18
  export declare const Establishing: {
12
19
  args: {
13
20
  label: string;
@@ -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>;
@@ -5,6 +5,9 @@ export declare class AsthmaParticipant {
5
5
  getFirstName(): string;
6
6
  hasPairedDevice(): boolean;
7
7
  hasEstablishedBaseline(): boolean;
8
+ getHomeAirQualityZipCode(): string;
9
+ getWorkAirQualityZipCode(): string;
10
+ getActionPlanTaskRunUUID(): string;
8
11
  hasRequestedWithdrawal(): boolean;
9
12
  private hasEstablishedBaselineByType;
10
13
  private getCustomFieldValue;
@@ -25,7 +28,7 @@ export interface AsthmaControlState {
25
28
  limitedActivityDaysPast7?: number;
26
29
  inhalerUseDaysPast7?: number;
27
30
  }
28
- export type AsthmaDataStatus = 'establishing' | 'offline' | 'in-range' | 'out-of-range';
31
+ export type AsthmaDataStatus = 'not-configured' | 'not-found' | 'establishing' | 'offline' | 'in-range' | 'out-of-range';
29
32
  export type AsthmaBiometricType = 'daytime-resting-heart-rate' | 'nighttime-resting-heart-rate' | 'respiratory-rate' | 'steps' | 'sleep-disturbances' | 'daytime-blood-oxygen-level' | 'nighttime-blood-oxygen-level';
30
33
  export interface AsthmaBiometric {
31
34
  type: AsthmaBiometricType;
@@ -4,6 +4,5 @@ export interface AsthmaActionPlanViewProps {
4
4
  colorScheme?: 'light' | 'dark' | 'auto';
5
5
  learnMoreUrl: string;
6
6
  editActionPlanSurveyName: string;
7
- createActionPlanUrl: (id: string) => string;
8
7
  }
9
8
  export default function (props: AsthmaActionPlanViewProps): React.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -8,7 +8,6 @@ interface AsthmaActionPlanProps {
8
8
  previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
9
9
  learnMoreUrl: string;
10
10
  editActionPlanSurveyName: string;
11
- createActionPlanUrl: (id: string) => string;
12
11
  innerRef?: React.Ref<HTMLDivElement>;
13
12
  }
14
13
  declare function export_default$2b(props: AsthmaActionPlanProps): React.JSX.Element;
@@ -19,6 +18,9 @@ declare class AsthmaParticipant {
19
18
  getFirstName(): string;
20
19
  hasPairedDevice(): boolean;
21
20
  hasEstablishedBaseline(): boolean;
21
+ getHomeAirQualityZipCode(): string;
22
+ getWorkAirQualityZipCode(): string;
23
+ getActionPlanTaskRunUUID(): string;
22
24
  hasRequestedWithdrawal(): boolean;
23
25
  private hasEstablishedBaselineByType;
24
26
  private getCustomFieldValue;
@@ -39,7 +41,7 @@ interface AsthmaControlState {
39
41
  limitedActivityDaysPast7?: number;
40
42
  inhalerUseDaysPast7?: number;
41
43
  }
42
- type AsthmaDataStatus = 'establishing' | 'offline' | 'in-range' | 'out-of-range';
44
+ type AsthmaDataStatus = 'not-configured' | 'not-found' | 'establishing' | 'offline' | 'in-range' | 'out-of-range';
43
45
  type AsthmaBiometricType = 'daytime-resting-heart-rate' | 'nighttime-resting-heart-rate' | 'respiratory-rate' | 'steps' | 'sleep-disturbances' | 'daytime-blood-oxygen-level' | 'nighttime-blood-oxygen-level';
44
46
  interface AsthmaBiometric {
45
47
  type: AsthmaBiometricType;
@@ -62,10 +64,11 @@ interface AsthmaLogEntry {
62
64
  triggers: string[];
63
65
  }
64
66
 
65
- type AsthmaAirQualitiesPreviewState = 'no-data' | 'some-data' | 'all-data';
67
+ type AsthmaAirQualitiesPreviewState = 'neither configured' | 'one configured' | 'no data (control)' | 'no data (date)' | 'some data (control)' | 'some data (date)' | 'all data';
66
68
 
67
69
  interface AsthmaAirQualitiesProps {
68
70
  previewState?: AsthmaAirQualitiesPreviewState;
71
+ editZipCodesSurveyName?: string;
69
72
  airQualityUrl: string;
70
73
  date?: Date;
71
74
  innerRef?: React.Ref<HTMLDivElement>;
@@ -91,7 +94,7 @@ interface AsthmaAlertTakeoverTriggerProps {
91
94
  }
92
95
  declare function export_default$28(props: AsthmaAlertTakeoverTriggerProps): null;
93
96
 
94
- type AsthmaBiometricsPreviewState = 'no-data' | 'some-data' | 'all-data';
97
+ type AsthmaBiometricsPreviewState = 'no data' | 'some data' | 'all data';
95
98
 
96
99
  interface AsthmaBiometricsProps {
97
100
  previewState?: AsthmaBiometricsPreviewState;
@@ -185,7 +188,7 @@ interface AsthmaDataService {
185
188
  loadLogEntries(fromDate?: Date, toDate?: Date): Promise<AsthmaLogEntry[]>;
186
189
  loadBiometricsForControlStatus(): Promise<AsthmaBiometric[]>;
187
190
  loadBiometricsForDate(date: Date): Promise<AsthmaBiometric[]>;
188
- loadAirQualitiesForControlStatus(): Promise<AsthmaAirQuality[]>;
191
+ loadAirQualitiesForControlStatus(homeAirQualityZipCode: string, workAirQualityZipCode: string): Promise<AsthmaAirQuality[]>;
189
192
  loadAirQualitiesForDate(date: Date): Promise<AsthmaAirQuality[]>;
190
193
  saveLogEntry(logEntry: AsthmaLogEntry): Promise<void>;
191
194
  loadAndClearAlertTakeover(): Promise<string | undefined>;
@@ -204,7 +207,6 @@ interface AsthmaActionPlanViewProps {
204
207
  colorScheme?: 'light' | 'dark' | 'auto';
205
208
  learnMoreUrl: string;
206
209
  editActionPlanSurveyName: string;
207
- createActionPlanUrl: (id: string) => string;
208
210
  }
209
211
  declare function export_default$1_(props: AsthmaActionPlanViewProps): React.JSX.Element;
210
212
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careevolution/mydatahelps-ui",
3
- "version": "2.10.1-InboxAndAsthmaUI.2",
3
+ "version": "2.10.1-InboxAndAsthmaUI.21",
4
4
  "description": "MyDataHelps UI Library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",