@hedia/recommendation-screen 3.11.1 → 3.11.4

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 (38) hide show
  1. package/lib/commonjs/Recommendation.js +3 -3
  2. package/lib/commonjs/Recommendation.js.map +1 -1
  3. package/lib/commonjs/assets/lottie/background_editing.json +137 -1
  4. package/lib/commonjs/assets/lottie/background_recommendation.json +205 -1
  5. package/lib/commonjs/components/AttentionMessages.js +10 -15
  6. package/lib/commonjs/components/AttentionMessages.js.map +1 -1
  7. package/lib/commonjs/components/ExpandableContainer/ExpandableContainer.js +3 -3
  8. package/lib/commonjs/components/ExpandableContainer/ExpandableContainer.js.map +1 -1
  9. package/lib/commonjs/components/Header.js +6 -5
  10. package/lib/commonjs/components/Header.js.map +1 -1
  11. package/lib/commonjs/components/Modals/BackdropCheckmark.js +1 -1
  12. package/lib/commonjs/components/Modals/BackdropCheckmark.js.map +1 -1
  13. package/lib/commonjs/components/WheelPicker/WheelPicker.js +38 -9
  14. package/lib/commonjs/components/WheelPicker/WheelPicker.js.map +1 -1
  15. package/lib/commonjs/components/WheelPicker/WheelPickerItem.js +16 -3
  16. package/lib/commonjs/components/WheelPicker/WheelPickerItem.js.map +1 -1
  17. package/lib/commonjs/components/WheelPicker/WheelPickerModal.js +49 -8
  18. package/lib/commonjs/components/WheelPicker/WheelPickerModal.js.map +1 -1
  19. package/lib/typescript/src/components/AttentionMessages.d.ts +2 -2
  20. package/lib/typescript/src/components/AttentionMessages.d.ts.map +1 -1
  21. package/lib/typescript/src/components/CarbsRecommendationDisplay.d.ts +1 -1
  22. package/lib/typescript/src/components/CarbsRecommendationDisplay.d.ts.map +1 -1
  23. package/lib/typescript/src/components/ExpandableContainer/ExpandableContainer.d.ts +1 -1
  24. package/lib/typescript/src/components/ExpandableContainer/ExpandableContainer.d.ts.map +1 -1
  25. package/lib/typescript/src/components/Header.d.ts.map +1 -1
  26. package/lib/typescript/src/components/ScrollHintButton.d.ts +1 -1
  27. package/lib/typescript/src/components/ScrollHintButton.d.ts.map +1 -1
  28. package/lib/typescript/src/components/WheelPicker/WheelPicker.d.ts.map +1 -1
  29. package/lib/typescript/src/components/WheelPicker/WheelPickerItem.d.ts +1 -1
  30. package/lib/typescript/src/components/WheelPicker/WheelPickerItem.d.ts.map +1 -1
  31. package/lib/typescript/src/providers/language.d.ts +1 -2
  32. package/lib/typescript/src/providers/language.d.ts.map +1 -1
  33. package/lib/typescript/src/validations/index.d.ts +6 -6
  34. package/package.json +11 -11
  35. package/lib/commonjs/components/WheelPicker/WheelPicker.styles.js +0 -89
  36. package/lib/commonjs/components/WheelPicker/WheelPicker.styles.js.map +0 -1
  37. package/lib/typescript/src/components/WheelPicker/WheelPicker.styles.d.ts +0 -82
  38. package/lib/typescript/src/components/WheelPicker/WheelPicker.styles.d.ts.map +0 -1
@@ -346,6 +346,7 @@ export declare const calculatorParamsSchema: z.ZodObject<{
346
346
  activityDate: Date;
347
347
  }>>;
348
348
  }, "strip", z.ZodTypeAny, {
349
+ currentBGL: number | null;
349
350
  activity: {
350
351
  activityDuration: number;
351
352
  activityIntensity: ActivityIntensity | null;
@@ -374,7 +375,6 @@ export declare const calculatorParamsSchema: z.ZodObject<{
374
375
  };
375
376
  activityDate: Date;
376
377
  } | null;
377
- currentBGL: number | null;
378
378
  targetBGL: number;
379
379
  insulinSensitivity: number;
380
380
  carbohydrates: number;
@@ -384,6 +384,7 @@ export declare const calculatorParamsSchema: z.ZodObject<{
384
384
  insulinDose: number;
385
385
  }[];
386
386
  }, {
387
+ currentBGL: number | null;
387
388
  activity: {
388
389
  activityDuration: number;
389
390
  activityIntensity: ActivityIntensity | null;
@@ -412,7 +413,6 @@ export declare const calculatorParamsSchema: z.ZodObject<{
412
413
  };
413
414
  activityDate: Date;
414
415
  } | null;
415
- currentBGL: number | null;
416
416
  targetBGL: number;
417
417
  insulinSensitivity: number;
418
418
  carbohydrates: number;
@@ -601,6 +601,7 @@ export declare const recommendationPropsSchema: z.ZodObject<{
601
601
  activityDate: Date;
602
602
  }>>;
603
603
  }, "strip", z.ZodTypeAny, {
604
+ currentBGL: number | null;
604
605
  activity: {
605
606
  activityDuration: number;
606
607
  activityIntensity: ActivityIntensity | null;
@@ -629,7 +630,6 @@ export declare const recommendationPropsSchema: z.ZodObject<{
629
630
  };
630
631
  activityDate: Date;
631
632
  } | null;
632
- currentBGL: number | null;
633
633
  targetBGL: number;
634
634
  insulinSensitivity: number;
635
635
  carbohydrates: number;
@@ -639,6 +639,7 @@ export declare const recommendationPropsSchema: z.ZodObject<{
639
639
  insulinDose: number;
640
640
  }[];
641
641
  }, {
642
+ currentBGL: number | null;
642
643
  activity: {
643
644
  activityDuration: number;
644
645
  activityIntensity: ActivityIntensity | null;
@@ -667,7 +668,6 @@ export declare const recommendationPropsSchema: z.ZodObject<{
667
668
  };
668
669
  activityDate: Date;
669
670
  } | null;
670
- currentBGL: number | null;
671
671
  targetBGL: number;
672
672
  insulinSensitivity: number;
673
673
  carbohydrates: number;
@@ -682,6 +682,7 @@ export declare const recommendationPropsSchema: z.ZodObject<{
682
682
  bloodGlucoseUnit: BloodGlucoseUnit;
683
683
  injectionMethod: InjectionMethod;
684
684
  calculatorParams: {
685
+ currentBGL: number | null;
685
686
  activity: {
686
687
  activityDuration: number;
687
688
  activityIntensity: ActivityIntensity | null;
@@ -710,7 +711,6 @@ export declare const recommendationPropsSchema: z.ZodObject<{
710
711
  };
711
712
  activityDate: Date;
712
713
  } | null;
713
- currentBGL: number | null;
714
714
  targetBGL: number;
715
715
  insulinSensitivity: number;
716
716
  carbohydrates: number;
@@ -725,6 +725,7 @@ export declare const recommendationPropsSchema: z.ZodObject<{
725
725
  bloodGlucoseUnit: BloodGlucoseUnit;
726
726
  injectionMethod: InjectionMethod;
727
727
  calculatorParams: {
728
+ currentBGL: number | null;
728
729
  activity: {
729
730
  activityDuration: number;
730
731
  activityIntensity: ActivityIntensity | null;
@@ -753,7 +754,6 @@ export declare const recommendationPropsSchema: z.ZodObject<{
753
754
  };
754
755
  activityDate: Date;
755
756
  } | null;
756
- currentBGL: number | null;
757
757
  targetBGL: number;
758
758
  insulinSensitivity: number;
759
759
  carbohydrates: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/recommendation-screen",
3
- "version": "3.11.1",
3
+ "version": "3.11.4",
4
4
  "description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "types": "lib/typescript/src/index.d.ts",
@@ -16,10 +16,10 @@
16
16
  "android": "npx react-native run-android --active-arch-only",
17
17
  "test": "jest --coverage --detectOpenHandles",
18
18
  "tsc": "tsc --noEmit",
19
- "eslint": "eslint \"./src/**/**.{ts,tsx}\"",
20
- "eslint:fix": "yarn eslint -- --fix",
21
- "prettier": "prettier --check \"src/**/*.{ts,tsx}\"",
22
- "prettier:fix": "prettier --write \"src/**/*.{ts,tsx}\"",
19
+ "eslint": "eslint src",
20
+ "eslint:fix": "eslint src --fix",
21
+ "prettier": "prettier --check src",
22
+ "prettier:fix": "prettier --write src",
23
23
  "pkg-json-lint": "npmPkgJsonLint .",
24
24
  "package-audit": "yarn npm audit --severity critical",
25
25
  "validate": "yarn tsc && yarn eslint && yarn pkg-json-lint && yarn prettier && yarn package-audit && yarn test",
@@ -40,8 +40,8 @@
40
40
  "peerDependencies": {
41
41
  "@gorhom/bottom-sheet": "*",
42
42
  "@hedia/hedia-app-translations": "1.4.1",
43
- "@hedia/recommendation-calculator": "2.1.1",
44
- "@hedia/types": "2.7.2",
43
+ "@hedia/recommendation-calculator": "2.1.2",
44
+ "@hedia/types": "2.7.4",
45
45
  "react": "*",
46
46
  "react-native": "*",
47
47
  "react-native-gesture-handler": "*",
@@ -59,9 +59,9 @@
59
59
  "@hedia/hedia-app-translations": "1.4.1",
60
60
  "@hedia/npm-audit-pipeline": "0.5.0",
61
61
  "@hedia/prettier-config": "1.2.3",
62
- "@hedia/recommendation-calculator": "2.1.1",
62
+ "@hedia/recommendation-calculator": "2.1.2",
63
63
  "@hedia/tsconfig": "2.1.3",
64
- "@hedia/types": "2.7.2",
64
+ "@hedia/types": "2.7.4",
65
65
  "@lottiefiles/react-lottie-player": "3.6.0",
66
66
  "@react-native-community/cli": "15.0.1",
67
67
  "@react-native-community/cli-platform-android": "15.0.1",
@@ -93,8 +93,8 @@
93
93
  "react-native-safe-area-context": "5.1.0",
94
94
  "react-native-svg": "15.10.1",
95
95
  "react-test-renderer": "18.3.1",
96
- "typedoc": "0.25.7",
97
- "typedoc-plugin-rename-defaults": "0.7.0",
96
+ "typedoc": "0.28.0",
97
+ "typedoc-plugin-rename-defaults": "0.7.3",
98
98
  "typescript": "5.3.3",
99
99
  "zod": "3.24.1"
100
100
  },
@@ -1,89 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _reactNative = require("react-native");
8
- var _styles = require("../../styles");
9
- var _default = exports.default = _reactNative.StyleSheet.create({
10
- buttonContainer: {
11
- gap: 8
12
- },
13
- backgroundStyle: {
14
- backgroundColor: "transparent"
15
- },
16
- containerStyle: {
17
- backgroundColor: _styles.COLORS.backdropBackground
18
- },
19
- containerPicker: {
20
- borderTopLeftRadius: 13,
21
- borderTopRightRadius: 13,
22
- backgroundColor: _styles.COLORS.black
23
- },
24
- contentContainerModal: {
25
- paddingHorizontal: 16,
26
- backgroundColor: "transparent"
27
- },
28
- selectedIndicator: {
29
- position: "absolute",
30
- width: _reactNative.Dimensions.get("window").width - 32 - 20,
31
- backgroundColor: "#7676803D",
32
- borderRadius: 7,
33
- top: "50%",
34
- alignSelf: "center"
35
- },
36
- scrollView: {
37
- overflow: "hidden",
38
- flex: 1,
39
- borderTopLeftRadius: 13,
40
- borderTopRightRadius: 13
41
- },
42
- option: {
43
- alignItems: "center",
44
- justifyContent: "center",
45
- zIndex: 100
46
- },
47
- itemTextStyle: {
48
- fontSize: 22,
49
- lineHeight: 26,
50
- fontWeight: "400",
51
- color: _styles.COLORS.white
52
- },
53
- buttonText: {
54
- fontSize: 17,
55
- lineHeight: 22,
56
- fontWeight: "400",
57
- paddingHorizontal: 16,
58
- paddingVertical: 14,
59
- textAlign: "center",
60
- color: "#0A84FF"
61
- },
62
- cancelButton: {
63
- backgroundColor: _styles.COLORS.black,
64
- borderRadius: 13
65
- },
66
- cancelText: {
67
- fontSize: 17,
68
- lineHeight: 22,
69
- fontWeight: "600",
70
- paddingHorizontal: 16,
71
- paddingVertical: 14,
72
- textAlign: "center",
73
- color: "#0A84FF"
74
- },
75
- confirmButton: {
76
- borderTopColor: _styles.COLORS.divider10,
77
- borderTopWidth: 0.5,
78
- backgroundColor: _styles.COLORS.black,
79
- borderBottomLeftRadius: 13,
80
- borderBottomRightRadius: 13
81
- },
82
- mask: {
83
- position: "absolute",
84
- left: 0,
85
- right: 0,
86
- pointerEvents: "none"
87
- }
88
- });
89
- //# sourceMappingURL=WheelPicker.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_styles","_default","exports","default","StyleSheet","create","buttonContainer","gap","backgroundStyle","backgroundColor","containerStyle","COLORS","backdropBackground","containerPicker","borderTopLeftRadius","borderTopRightRadius","black","contentContainerModal","paddingHorizontal","selectedIndicator","position","width","Dimensions","get","borderRadius","top","alignSelf","scrollView","overflow","flex","option","alignItems","justifyContent","zIndex","itemTextStyle","fontSize","lineHeight","fontWeight","color","white","buttonText","paddingVertical","textAlign","cancelButton","cancelText","confirmButton","borderTopColor","divider10","borderTopWidth","borderBottomLeftRadius","borderBottomRightRadius","mask","left","right","pointerEvents"],"sourceRoot":"../../../../src","sources":["components/WheelPicker/WheelPicker.styles.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAAsC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEvBC,uBAAU,CAACC,MAAM,CAAC;EAChCC,e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BQ,YAAY,EAAE;EACf,CAAC;EACDoB,UAAU,EAAE;IACXT,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE,KAAK;IACjBnB,iBAAiB,EAAE,EAAE;IACrBuB,eAAe,EAAE,EAAE;IACnBC,SAAS,EAAE,QAAQ;IACnBJ,KAAK,EAAE;EACR,CAAC;EACDO,aAAa,EAAE;IACdC,cAAc,EAAEnC,cAAM,CAACoC,SAAS;IAChCC,cAAc,EAAE,GAAG;IACnBvC,eAAe,EAAEE,cAAM,CAACK,KAAK;IAC7BiC,sBAAsB,EAAE,EAAE;IAC1BC,uBAAuB,EAAE;EAC1B,CAAC;EACDC,IAAI,EAAE;IACL/B,QAAQ,EAAE,UAAU;IACpBgC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,aAAa,EAAE;EAChB;AACD,CAAC,CAAC","ignoreList":[]}
@@ -1,82 +0,0 @@
1
- declare const _default: {
2
- buttonContainer: {
3
- gap: number;
4
- };
5
- backgroundStyle: {
6
- backgroundColor: string;
7
- };
8
- containerStyle: {
9
- backgroundColor: string;
10
- };
11
- containerPicker: {
12
- borderTopLeftRadius: number;
13
- borderTopRightRadius: number;
14
- backgroundColor: string;
15
- };
16
- contentContainerModal: {
17
- paddingHorizontal: number;
18
- backgroundColor: string;
19
- };
20
- selectedIndicator: {
21
- position: "absolute";
22
- width: number;
23
- backgroundColor: string;
24
- borderRadius: number;
25
- top: "50%";
26
- alignSelf: "center";
27
- };
28
- scrollView: {
29
- overflow: "hidden";
30
- flex: number;
31
- borderTopLeftRadius: number;
32
- borderTopRightRadius: number;
33
- };
34
- option: {
35
- alignItems: "center";
36
- justifyContent: "center";
37
- zIndex: number;
38
- };
39
- itemTextStyle: {
40
- fontSize: number;
41
- lineHeight: number;
42
- fontWeight: "400";
43
- color: string;
44
- };
45
- buttonText: {
46
- fontSize: number;
47
- lineHeight: number;
48
- fontWeight: "400";
49
- paddingHorizontal: number;
50
- paddingVertical: number;
51
- textAlign: "center";
52
- color: string;
53
- };
54
- cancelButton: {
55
- backgroundColor: string;
56
- borderRadius: number;
57
- };
58
- cancelText: {
59
- fontSize: number;
60
- lineHeight: number;
61
- fontWeight: "600";
62
- paddingHorizontal: number;
63
- paddingVertical: number;
64
- textAlign: "center";
65
- color: string;
66
- };
67
- confirmButton: {
68
- borderTopColor: string;
69
- borderTopWidth: number;
70
- backgroundColor: string;
71
- borderBottomLeftRadius: number;
72
- borderBottomRightRadius: number;
73
- };
74
- mask: {
75
- position: "absolute";
76
- left: number;
77
- right: number;
78
- pointerEvents: "none";
79
- };
80
- };
81
- export default _default;
82
- //# sourceMappingURL=WheelPicker.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WheelPicker.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/WheelPicker/WheelPicker.styles.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBA+EG"}