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

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,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,7 +1,9 @@
1
1
  import { AsthmaAirQuality } from '../../model';
2
- export type AsthmaAirQualitiesPreviewState = 'no-data' | 'some-data' | 'all-data';
2
+ export type AsthmaAirQualitiesPreviewState = 'not configured' | 'some configured' | 'no data' | 'some data' | 'all data';
3
3
  export interface AsthmaAirQualitiesPreviewData {
4
+ homeAirQualityZipCode?: string;
4
5
  homeAirQuality: AsthmaAirQuality;
6
+ workAirQualityZipCode?: string;
5
7
  workAirQuality: AsthmaAirQuality;
6
8
  }
7
9
  export declare const previewData: Record<AsthmaAirQualitiesPreviewState, AsthmaAirQualitiesPreviewData>;
@@ -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: 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;
15
+ argTypes: {
16
+ previewState: {
17
+ name: string;
18
+ control: string;
19
+ options: string[];
20
+ };
26
21
  };
27
22
  render: (args: AsthmaAirQualitiesProps) => React.JSX.Element;
28
23
  };
@@ -3,6 +3,7 @@ import './AsthmaDataSummary.css';
3
3
  import { AsthmaDataStatus } from '../../model';
4
4
  export interface AsthmaDataSummaryProps {
5
5
  label: string;
6
+ requiresSetup?: boolean;
6
7
  status: AsthmaDataStatus;
7
8
  statusText?: string;
8
9
  value?: number;
@@ -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,6 +5,8 @@ export declare class AsthmaParticipant {
5
5
  getFirstName(): string;
6
6
  hasPairedDevice(): boolean;
7
7
  hasEstablishedBaseline(): boolean;
8
+ getHomeAirQualityZipCode(): string;
9
+ getWorkAirQualityZipCode(): string;
8
10
  hasRequestedWithdrawal(): boolean;
9
11
  private hasEstablishedBaselineByType;
10
12
  private getCustomFieldValue;
package/dist/index.d.ts CHANGED
@@ -18,6 +18,8 @@ declare class AsthmaParticipant {
18
18
  getFirstName(): string;
19
19
  hasPairedDevice(): boolean;
20
20
  hasEstablishedBaseline(): boolean;
21
+ getHomeAirQualityZipCode(): string;
22
+ getWorkAirQualityZipCode(): string;
21
23
  hasRequestedWithdrawal(): boolean;
22
24
  private hasEstablishedBaselineByType;
23
25
  private getCustomFieldValue;
@@ -61,10 +63,11 @@ interface AsthmaLogEntry {
61
63
  triggers: string[];
62
64
  }
63
65
 
64
- type AsthmaAirQualitiesPreviewState = 'no-data' | 'some-data' | 'all-data';
66
+ type AsthmaAirQualitiesPreviewState = 'not configured' | 'some configured' | 'no data' | 'some data' | 'all data';
65
67
 
66
68
  interface AsthmaAirQualitiesProps {
67
69
  previewState?: AsthmaAirQualitiesPreviewState;
70
+ editZipCodesSurveyName: string;
68
71
  airQualityUrl: string;
69
72
  date?: Date;
70
73
  innerRef?: React.Ref<HTMLDivElement>;
@@ -125,6 +128,7 @@ declare function export_default$25(props: AsthmaControlStatusHeaderProps): React
125
128
 
126
129
  interface AsthmaDataSummaryProps {
127
130
  label: string;
131
+ requiresSetup?: boolean;
128
132
  status: AsthmaDataStatus;
129
133
  statusText?: string;
130
134
  value?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careevolution/mydatahelps-ui",
3
- "version": "2.10.1-InboxAndAsthmaUI.11",
3
+ "version": "2.10.1-InboxAndAsthmaUI.13",
4
4
  "description": "MyDataHelps UI Library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",