@hedia/recommendation-screen 2.1.22 → 2.1.23-alpha.1

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 (72) hide show
  1. package/.flowconfig +65 -0
  2. package/android/app/build.gradle +20 -18
  3. package/android/app/src/debug/AndroidManifest.xml +7 -2
  4. package/android/app/src/main/AndroidManifest.xml +0 -2
  5. package/android/app/src/main/res/values/styles.xml +1 -2
  6. package/android/build.gradle +8 -8
  7. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  8. package/android/gradle.properties +1 -1
  9. package/android/gradlew +14 -17
  10. package/android/gradlew.bat +7 -18
  11. package/coverage/clover.xml +716 -0
  12. package/coverage/coverage-final.json +28 -0
  13. package/coverage/lcov-report/base.css +224 -0
  14. package/coverage/lcov-report/block-navigation.js +79 -0
  15. package/coverage/lcov-report/favicon.png +0 -0
  16. package/coverage/lcov-report/index.html +201 -0
  17. package/coverage/lcov-report/prettify.css +1 -0
  18. package/coverage/lcov-report/prettify.js +2 -0
  19. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  20. package/coverage/lcov-report/sorter.js +170 -0
  21. package/coverage/lcov-report/src/RecommendationScreen.tsx.html +2501 -0
  22. package/coverage/lcov-report/src/__tests__/index.html +111 -0
  23. package/coverage/lcov-report/src/__tests__/utils.tsx.html +533 -0
  24. package/coverage/lcov-report/src/components/Header.tsx.html +356 -0
  25. package/coverage/lcov-report/src/components/InfoBars.tsx.html +518 -0
  26. package/coverage/lcov-report/src/components/InvisibleNumberInput.tsx.html +566 -0
  27. package/coverage/lcov-report/src/components/LimitationMessage.tsx.html +209 -0
  28. package/coverage/lcov-report/src/components/LineSeparator.tsx.html +161 -0
  29. package/coverage/lcov-report/src/components/RecentInsulin.tsx.html +410 -0
  30. package/coverage/lcov-report/src/components/RecommendationModal.tsx.html +923 -0
  31. package/coverage/lcov-report/src/components/RecommendedCarbs.tsx.html +1061 -0
  32. package/coverage/lcov-report/src/components/RecommendedInsulin.tsx.html +779 -0
  33. package/coverage/lcov-report/src/components/Remeasure.tsx.html +551 -0
  34. package/coverage/lcov-report/src/components/TransferToLogbook.tsx.html +443 -0
  35. package/coverage/lcov-report/src/components/TwoOptionModal.tsx.html +665 -0
  36. package/coverage/lcov-report/src/components/activity/Activity.tsx.html +371 -0
  37. package/coverage/lcov-report/src/components/activity/ActivityIcon.tsx.html +281 -0
  38. package/coverage/lcov-report/src/components/activity/ActivityIntensity.tsx.html +281 -0
  39. package/coverage/lcov-report/src/components/activity/index.html +141 -0
  40. package/coverage/lcov-report/src/components/index.html +276 -0
  41. package/coverage/lcov-report/src/components/mood/Emotion.tsx.html +353 -0
  42. package/coverage/lcov-report/src/components/mood/MoodIcon.tsx.html +335 -0
  43. package/coverage/lcov-report/src/components/mood/index.html +126 -0
  44. package/coverage/lcov-report/src/index.html +111 -0
  45. package/coverage/lcov-report/src/locale/i18nUtils.ts.html +206 -0
  46. package/coverage/lcov-report/src/locale/index.html +111 -0
  47. package/coverage/lcov-report/src/utils/AttentionMessages.tsx.html +554 -0
  48. package/coverage/lcov-report/src/utils/Constants.ts.html +248 -0
  49. package/coverage/lcov-report/src/utils/RecommendationError.tsx.html +620 -0
  50. package/coverage/lcov-report/src/utils/RecommendationUtils.ts.html +764 -0
  51. package/coverage/lcov-report/src/utils/Translations.ts.html +131 -0
  52. package/coverage/lcov-report/src/utils/Utils.ts.html +545 -0
  53. package/coverage/lcov-report/src/utils/Validations.ts.html +1544 -0
  54. package/coverage/lcov-report/src/utils/index.html +201 -0
  55. package/coverage/lcov.info +1611 -0
  56. package/ios/HediaRecommendationScreen/AppDelegate.m +7 -4
  57. package/ios/HediaRecommendationScreen/Info.plist +0 -2
  58. package/ios/HediaRecommendationScreen/LaunchScreen.storyboard +47 -0
  59. package/ios/HediaRecommendationScreen.xcodeproj/project.pbxproj +192 -549
  60. package/ios/HediaRecommendationScreen.xcodeproj/xcshareddata/xcschemes/HediaRecommendationScreen.xcscheme +1 -1
  61. package/ios/Podfile +13 -87
  62. package/ios/Podfile.lock +353 -283
  63. package/jest.config.js +3 -3
  64. package/jest.mock.js +1 -1
  65. package/metro.config.js +1 -1
  66. package/package.json +10 -9
  67. package/src/RecommendationScreen.d.ts +6 -1
  68. package/src/RecommendationScreen.js +5 -5
  69. package/src/__tests__/RecommendationScreen.test.js +4 -6
  70. package/ios/HediaRecommendationScreen/Base.lproj/LaunchScreen.xib +0 -42
  71. package/ios/HediaRecommendationScreen-tvOS/Info.plist +0 -53
  72. package/ios/HediaRecommendationScreen-tvOSTests/Info.plist +0 -24
@@ -4,7 +4,7 @@
4
4
  #import <React/RCTBundleURLProvider.h>
5
5
  #import <React/RCTRootView.h>
6
6
 
7
- #if DEBUG
7
+ #ifdef FB_SONARKIT_ENABLED
8
8
  #import <FlipperKit/FlipperClient.h>
9
9
  #import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
10
10
  #import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
@@ -27,7 +27,7 @@ static void InitializeFlipper(UIApplication *application) {
27
27
 
28
28
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
29
29
  {
30
- #if DEBUG
30
+ #ifdef FB_SONARKIT_ENABLED
31
31
  InitializeFlipper(application);
32
32
  #endif
33
33
 
@@ -36,8 +36,11 @@ static void InitializeFlipper(UIApplication *application) {
36
36
  moduleName:@"HediaRecommendationScreen"
37
37
  initialProperties:nil];
38
38
 
39
- rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
40
-
39
+ if (@available(iOS 13.0, *)) {
40
+ rootView.backgroundColor = [UIColor systemBackgroundColor];
41
+ } else {
42
+ rootView.backgroundColor = [UIColor whiteColor];
43
+ }
41
44
  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
42
45
  UIViewController *rootViewController = [UIViewController new];
43
46
  rootViewController.view = rootView;
@@ -26,8 +26,6 @@
26
26
  <true/>
27
27
  <key>NSAppTransportSecurity</key>
28
28
  <dict>
29
- <key>NSAllowsArbitraryLoads</key>
30
- <true/>
31
29
  <key>NSExceptionDomains</key>
32
30
  <dict>
33
31
  <key>localhost</key>
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+ <device id="retina4_7" orientation="portrait" appearance="light"/>
4
+ <dependencies>
5
+ <deployment identifier="iOS"/>
6
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
7
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
+ </dependencies>
10
+ <scenes>
11
+ <!--View Controller-->
12
+ <scene sceneID="EHf-IW-A2E">
13
+ <objects>
14
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
15
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
+ <subviews>
19
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="HediaRecommendationScreen" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
20
+ <rect key="frame" x="0.0" y="202" width="375" height="43"/>
21
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
22
+ <nil key="highlightedColor"/>
23
+ </label>
24
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
25
+ <rect key="frame" x="0.0" y="626" width="375" height="21"/>
26
+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
27
+ <nil key="highlightedColor"/>
28
+ </label>
29
+ </subviews>
30
+ <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
31
+ <constraints>
32
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu" secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
33
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
34
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="akx-eg-2ui"/>
35
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="i1E-0Y-4RG"/>
36
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
37
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
38
+ </constraints>
39
+ <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
40
+ </view>
41
+ </viewController>
42
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
43
+ </objects>
44
+ <point key="canvasLocation" x="52.173913043478265" y="375"/>
45
+ </scene>
46
+ </scenes>
47
+ </document>