@hedia/recommendation-screen 3.0.2 → 3.0.3-alpha.0

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 (44) hide show
  1. package/lib/commonjs/Recommendation.js +20 -6
  2. package/lib/commonjs/Recommendation.js.map +1 -1
  3. package/lib/commonjs/components/AttentionMessages.js +34 -35
  4. package/lib/commonjs/components/AttentionMessages.js.map +1 -1
  5. package/lib/commonjs/components/ExpandableContainer/ExpandableContainer.js +40 -20
  6. package/lib/commonjs/components/ExpandableContainer/ExpandableContainer.js.map +1 -1
  7. package/lib/commonjs/components/ExpandableContainer/ExpandableStyles.js +2 -1
  8. package/lib/commonjs/components/ExpandableContainer/ExpandableStyles.js.map +1 -1
  9. package/lib/commonjs/components/Footer.js +5 -2
  10. package/lib/commonjs/components/Footer.js.map +1 -1
  11. package/lib/commonjs/components/Header.js +6 -3
  12. package/lib/commonjs/components/Header.js.map +1 -1
  13. package/lib/commonjs/components/Modals/DeleteModal.js +7 -4
  14. package/lib/commonjs/components/Modals/DeleteModal.js.map +1 -1
  15. package/lib/commonjs/components/Modals/LimitationMessageModal.js +20 -31
  16. package/lib/commonjs/components/Modals/LimitationMessageModal.js.map +1 -1
  17. package/lib/commonjs/components/Modals/TimeoutModal.js +7 -4
  18. package/lib/commonjs/components/Modals/TimeoutModal.js.map +1 -1
  19. package/lib/commonjs/components/RecommendationDisplay.js +5 -2
  20. package/lib/commonjs/components/RecommendationDisplay.js.map +1 -1
  21. package/lib/commonjs/components/WheelPicker/WheelPicker.styles.js +2 -1
  22. package/lib/commonjs/components/WheelPicker/WheelPicker.styles.js.map +1 -1
  23. package/lib/commonjs/locales/translate.js +37 -41
  24. package/lib/commonjs/locales/translate.js.map +1 -1
  25. package/lib/typescript/Recommendation.d.ts.map +1 -1
  26. package/lib/typescript/components/AttentionMessages.d.ts +0 -2
  27. package/lib/typescript/components/AttentionMessages.d.ts.map +1 -1
  28. package/lib/typescript/components/ExpandableContainer/ExpandableContainer.d.ts +10 -5
  29. package/lib/typescript/components/ExpandableContainer/ExpandableContainer.d.ts.map +1 -1
  30. package/lib/typescript/components/ExpandableContainer/ExpandableStyles.d.ts +1 -0
  31. package/lib/typescript/components/ExpandableContainer/ExpandableStyles.d.ts.map +1 -1
  32. package/lib/typescript/components/Footer.d.ts.map +1 -1
  33. package/lib/typescript/components/Header.d.ts.map +1 -1
  34. package/lib/typescript/components/Modals/DeleteModal.d.ts.map +1 -1
  35. package/lib/typescript/components/Modals/LimitationMessageModal.d.ts +1 -15
  36. package/lib/typescript/components/Modals/LimitationMessageModal.d.ts.map +1 -1
  37. package/lib/typescript/components/Modals/TimeoutModal.d.ts.map +1 -1
  38. package/lib/typescript/components/RecommendationDisplay.d.ts.map +1 -1
  39. package/lib/typescript/components/WheelPicker/WheelPicker.styles.d.ts +2 -1
  40. package/lib/typescript/components/WheelPicker/WheelPicker.styles.d.ts.map +1 -1
  41. package/lib/typescript/locales/translate.d.ts +5 -16
  42. package/lib/typescript/locales/translate.d.ts.map +1 -1
  43. package/lib/typescript/validations/index.d.ts +44 -44
  44. package/package.json +1 -1
@@ -117,8 +117,8 @@ export declare const activitySchema: z.ZodNullable<z.ZodObject<{
117
117
  }>;
118
118
  activityDate: z.ZodDate;
119
119
  }, "strip", z.ZodTypeAny, {
120
- activityDuration: number;
121
120
  activityIntensity: Activity.Enums.ActivityIntensity;
121
+ activityDuration: number;
122
122
  activitySettings: {
123
123
  light: {
124
124
  fromZero: number;
@@ -144,8 +144,8 @@ export declare const activitySchema: z.ZodNullable<z.ZodObject<{
144
144
  };
145
145
  activityDate: Date;
146
146
  }, {
147
- activityDuration: number;
148
147
  activityIntensity: Activity.Enums.ActivityIntensity;
148
+ activityDuration: number;
149
149
  activitySettings: {
150
150
  light: {
151
151
  fromZero: number;
@@ -291,8 +291,8 @@ export declare const calculatorParamsSchema: z.ZodObject<{
291
291
  }>;
292
292
  activityDate: z.ZodDate;
293
293
  }, "strip", z.ZodTypeAny, {
294
- activityDuration: number;
295
294
  activityIntensity: Activity.Enums.ActivityIntensity;
295
+ activityDuration: number;
296
296
  activitySettings: {
297
297
  light: {
298
298
  fromZero: number;
@@ -318,8 +318,8 @@ export declare const calculatorParamsSchema: z.ZodObject<{
318
318
  };
319
319
  activityDate: Date;
320
320
  }, {
321
- activityDuration: number;
322
321
  activityIntensity: Activity.Enums.ActivityIntensity;
322
+ activityDuration: number;
323
323
  activitySettings: {
324
324
  light: {
325
325
  fromZero: number;
@@ -346,18 +346,9 @@ export declare const calculatorParamsSchema: z.ZodObject<{
346
346
  activityDate: Date;
347
347
  }>>;
348
348
  }, "strip", z.ZodTypeAny, {
349
- carbohydrates: number;
350
- currentBGL: number | null;
351
- targetBGL: number;
352
- insulinSensitivity: number;
353
- carbohydrateRatio: number;
354
- recentBoluses: {
355
- secondsPassed: number;
356
- insulinDose: number;
357
- }[];
358
349
  activity: {
359
- activityDuration: number;
360
350
  activityIntensity: Activity.Enums.ActivityIntensity;
351
+ activityDuration: number;
361
352
  activitySettings: {
362
353
  light: {
363
354
  fromZero: number;
@@ -383,7 +374,6 @@ export declare const calculatorParamsSchema: z.ZodObject<{
383
374
  };
384
375
  activityDate: Date;
385
376
  } | null;
386
- }, {
387
377
  carbohydrates: number;
388
378
  currentBGL: number | null;
389
379
  targetBGL: number;
@@ -393,9 +383,10 @@ export declare const calculatorParamsSchema: z.ZodObject<{
393
383
  secondsPassed: number;
394
384
  insulinDose: number;
395
385
  }[];
386
+ }, {
396
387
  activity: {
397
- activityDuration: number;
398
388
  activityIntensity: Activity.Enums.ActivityIntensity;
389
+ activityDuration: number;
399
390
  activitySettings: {
400
391
  light: {
401
392
  fromZero: number;
@@ -421,6 +412,15 @@ export declare const calculatorParamsSchema: z.ZodObject<{
421
412
  };
422
413
  activityDate: Date;
423
414
  } | null;
415
+ carbohydrates: number;
416
+ currentBGL: number | null;
417
+ targetBGL: number;
418
+ insulinSensitivity: number;
419
+ carbohydrateRatio: number;
420
+ recentBoluses: {
421
+ secondsPassed: number;
422
+ insulinDose: number;
423
+ }[];
424
424
  }>;
425
425
  export declare const recommendationPropsSchema: z.ZodObject<{
426
426
  bloodGlucoseUnit: z.ZodNativeEnum<typeof BloodGlucoseUnit>;
@@ -546,8 +546,8 @@ export declare const recommendationPropsSchema: z.ZodObject<{
546
546
  }>;
547
547
  activityDate: z.ZodDate;
548
548
  }, "strip", z.ZodTypeAny, {
549
- activityDuration: number;
550
549
  activityIntensity: Activity.Enums.ActivityIntensity;
550
+ activityDuration: number;
551
551
  activitySettings: {
552
552
  light: {
553
553
  fromZero: number;
@@ -573,8 +573,8 @@ export declare const recommendationPropsSchema: z.ZodObject<{
573
573
  };
574
574
  activityDate: Date;
575
575
  }, {
576
- activityDuration: number;
577
576
  activityIntensity: Activity.Enums.ActivityIntensity;
577
+ activityDuration: number;
578
578
  activitySettings: {
579
579
  light: {
580
580
  fromZero: number;
@@ -601,18 +601,9 @@ export declare const recommendationPropsSchema: z.ZodObject<{
601
601
  activityDate: Date;
602
602
  }>>;
603
603
  }, "strip", z.ZodTypeAny, {
604
- carbohydrates: number;
605
- currentBGL: number | null;
606
- targetBGL: number;
607
- insulinSensitivity: number;
608
- carbohydrateRatio: number;
609
- recentBoluses: {
610
- secondsPassed: number;
611
- insulinDose: number;
612
- }[];
613
604
  activity: {
614
- activityDuration: number;
615
605
  activityIntensity: Activity.Enums.ActivityIntensity;
606
+ activityDuration: number;
616
607
  activitySettings: {
617
608
  light: {
618
609
  fromZero: number;
@@ -638,7 +629,6 @@ export declare const recommendationPropsSchema: z.ZodObject<{
638
629
  };
639
630
  activityDate: Date;
640
631
  } | null;
641
- }, {
642
632
  carbohydrates: number;
643
633
  currentBGL: number | null;
644
634
  targetBGL: number;
@@ -648,9 +638,10 @@ export declare const recommendationPropsSchema: z.ZodObject<{
648
638
  secondsPassed: number;
649
639
  insulinDose: number;
650
640
  }[];
641
+ }, {
651
642
  activity: {
652
- activityDuration: number;
653
643
  activityIntensity: Activity.Enums.ActivityIntensity;
644
+ activityDuration: number;
654
645
  activitySettings: {
655
646
  light: {
656
647
  fromZero: number;
@@ -676,12 +667,6 @@ export declare const recommendationPropsSchema: z.ZodObject<{
676
667
  };
677
668
  activityDate: Date;
678
669
  } | null;
679
- }>;
680
- }, "strip", z.ZodTypeAny, {
681
- bloodGlucoseUnit: BloodGlucoseUnit;
682
- injectionMethod: UserSettings.Enums.InjectionMethod;
683
- language: string;
684
- calculatorParams: {
685
670
  carbohydrates: number;
686
671
  currentBGL: number | null;
687
672
  targetBGL: number;
@@ -691,9 +676,15 @@ export declare const recommendationPropsSchema: z.ZodObject<{
691
676
  secondsPassed: number;
692
677
  insulinDose: number;
693
678
  }[];
679
+ }>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ language: string;
682
+ bloodGlucoseUnit: BloodGlucoseUnit;
683
+ injectionMethod: UserSettings.Enums.InjectionMethod;
684
+ calculatorParams: {
694
685
  activity: {
695
- activityDuration: number;
696
686
  activityIntensity: Activity.Enums.ActivityIntensity;
687
+ activityDuration: number;
697
688
  activitySettings: {
698
689
  light: {
699
690
  fromZero: number;
@@ -719,12 +710,6 @@ export declare const recommendationPropsSchema: z.ZodObject<{
719
710
  };
720
711
  activityDate: Date;
721
712
  } | null;
722
- };
723
- }, {
724
- bloodGlucoseUnit: BloodGlucoseUnit;
725
- injectionMethod: UserSettings.Enums.InjectionMethod;
726
- language: string;
727
- calculatorParams: {
728
713
  carbohydrates: number;
729
714
  currentBGL: number | null;
730
715
  targetBGL: number;
@@ -734,9 +719,15 @@ export declare const recommendationPropsSchema: z.ZodObject<{
734
719
  secondsPassed: number;
735
720
  insulinDose: number;
736
721
  }[];
722
+ };
723
+ }, {
724
+ language: string;
725
+ bloodGlucoseUnit: BloodGlucoseUnit;
726
+ injectionMethod: UserSettings.Enums.InjectionMethod;
727
+ calculatorParams: {
737
728
  activity: {
738
- activityDuration: number;
739
729
  activityIntensity: Activity.Enums.ActivityIntensity;
730
+ activityDuration: number;
740
731
  activitySettings: {
741
732
  light: {
742
733
  fromZero: number;
@@ -762,6 +753,15 @@ export declare const recommendationPropsSchema: z.ZodObject<{
762
753
  };
763
754
  activityDate: Date;
764
755
  } | null;
756
+ carbohydrates: number;
757
+ currentBGL: number | null;
758
+ targetBGL: number;
759
+ insulinSensitivity: number;
760
+ carbohydrateRatio: number;
761
+ recentBoluses: {
762
+ secondsPassed: number;
763
+ insulinDose: number;
764
+ }[];
765
765
  };
766
766
  }>;
767
767
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/recommendation-screen",
3
- "version": "3.0.2",
3
+ "version": "3.0.3-alpha.0",
4
4
  "description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "types": "lib/typescript/index.d.ts",