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

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 (22) hide show
  1. package/dist/cjs/index.js +3 -3
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/asthma/components/AsthmaActionPlanManager/AsthmaActionPlanManager.d.ts +11 -0
  4. package/dist/cjs/types/components/asthma/components/{AsthmaActionPlan/AsthmaActionPlan.stories.d.ts → AsthmaActionPlanManager/AsthmaActionPlanManager.stories.d.ts} +3 -3
  5. package/dist/cjs/types/components/asthma/components/AsthmaActionPlanManager/index.d.ts +1 -0
  6. package/dist/cjs/types/components/asthma/components/index.d.ts +1 -1
  7. package/dist/cjs/types/components/asthma/model/types.d.ts +4 -0
  8. package/dist/cjs/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.d.ts +2 -0
  9. package/dist/esm/index.js +3 -3
  10. package/dist/esm/index.js.map +1 -1
  11. package/dist/esm/types/components/asthma/components/AsthmaActionPlanManager/AsthmaActionPlanManager.d.ts +11 -0
  12. package/dist/esm/types/components/asthma/components/{AsthmaActionPlan/AsthmaActionPlan.stories.d.ts → AsthmaActionPlanManager/AsthmaActionPlanManager.stories.d.ts} +3 -3
  13. package/dist/esm/types/components/asthma/components/AsthmaActionPlanManager/index.d.ts +1 -0
  14. package/dist/esm/types/components/asthma/components/index.d.ts +1 -1
  15. package/dist/esm/types/components/asthma/model/types.d.ts +4 -0
  16. package/dist/esm/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.d.ts +2 -0
  17. package/dist/index.d.ts +15 -9
  18. package/package.json +1 -1
  19. package/dist/cjs/types/components/asthma/components/AsthmaActionPlan/AsthmaActionPlan.d.ts +0 -9
  20. package/dist/cjs/types/components/asthma/components/AsthmaActionPlan/index.d.ts +0 -1
  21. package/dist/esm/types/components/asthma/components/AsthmaActionPlan/AsthmaActionPlan.d.ts +0 -9
  22. package/dist/esm/types/components/asthma/components/AsthmaActionPlan/index.d.ts +0 -1
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import './AsthmaActionPlanManager.css';
3
+ import { AsthmaActionPlan } from '../../model';
4
+ export interface AsthmaActionPlanManagerProps {
5
+ previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
6
+ learnMoreUrl: string;
7
+ onViewActionPlan: (actionPlan: AsthmaActionPlan) => void;
8
+ editActionPlanSurveyName: string;
9
+ innerRef?: React.Ref<HTMLDivElement>;
10
+ }
11
+ export default function (props: AsthmaActionPlanManagerProps): React.JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import AsthmaActionPlan, { AsthmaActionPlanProps } from './AsthmaActionPlan';
2
+ import AsthmaActionPlanManager, { AsthmaActionPlanManagerProps } from './AsthmaActionPlanManager';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: typeof AsthmaActionPlan;
5
+ component: typeof AsthmaActionPlanManager;
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
@@ -19,5 +19,5 @@ export declare const Default: {
19
19
  options: string[];
20
20
  };
21
21
  };
22
- render: (args: AsthmaActionPlanProps) => React.JSX.Element;
22
+ render: (args: AsthmaActionPlanManagerProps) => React.JSX.Element;
23
23
  };
@@ -0,0 +1 @@
1
+ export { default } from './AsthmaActionPlanManager';
@@ -1,4 +1,4 @@
1
- export { default as AsthmaActionPlan } from './AsthmaActionPlan';
1
+ export { default as AsthmaActionPlanManager } from './AsthmaActionPlanManager';
2
2
  export { default as AsthmaAirQualities, AsthmaAirQualitiesPreviewState } from './AsthmaAirQualities';
3
3
  export { default as AsthmaAlertTakeoverNotice } from './AsthmaAlertTakeoverNotice';
4
4
  export { default as AsthmaAlertTakeoverTrigger } from './AsthmaAlertTakeoverTrigger';
@@ -50,3 +50,7 @@ export interface AsthmaLogEntry {
50
50
  impacts: string[];
51
51
  triggers: string[];
52
52
  }
53
+ export interface AsthmaActionPlan {
54
+ id: string;
55
+ url: string;
56
+ }
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+ import { AsthmaActionPlan } from '../../model';
2
3
  export interface AsthmaActionPlanViewProps {
3
4
  previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
4
5
  colorScheme?: 'light' | 'dark' | 'auto';
5
6
  learnMoreUrl: string;
7
+ onViewActionPlan: (actionPlan: AsthmaActionPlan) => void;
6
8
  editActionPlanSurveyName: string;
7
9
  }
8
10
  export default function (props: AsthmaActionPlanViewProps): React.JSX.Element;