@bifold/core 2.2.1 → 2.3.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 (164) hide show
  1. package/lib/commonjs/components/misc/CredentialCard11.js +31 -10
  2. package/lib/commonjs/components/misc/CredentialCard11.js.map +1 -1
  3. package/lib/commonjs/contexts/reducers/store.js +0 -14
  4. package/lib/commonjs/contexts/reducers/store.js.map +1 -1
  5. package/lib/commonjs/contexts/store.js +1 -2
  6. package/lib/commonjs/contexts/store.js.map +1 -1
  7. package/lib/commonjs/localization/fr/fr.json +0 -1
  8. package/lib/commonjs/localization/pt-br/pt-br.json +1 -2
  9. package/lib/commonjs/modules/history/ui/HistorySettings.js.map +1 -1
  10. package/lib/commonjs/modules/openid/screens/OpenIDProofChangeCredential.js +1 -1
  11. package/lib/commonjs/modules/openid/screens/OpenIDProofChangeCredential.js.map +1 -1
  12. package/lib/commonjs/navigators/ContactStack.js +0 -16
  13. package/lib/commonjs/navigators/ContactStack.js.map +1 -1
  14. package/lib/commonjs/navigators/DeliveryStack.js +0 -16
  15. package/lib/commonjs/navigators/DeliveryStack.js.map +1 -1
  16. package/lib/commonjs/navigators/MainStack.js.map +1 -1
  17. package/lib/commonjs/navigators/NotificationStack.js +0 -16
  18. package/lib/commonjs/navigators/NotificationStack.js.map +1 -1
  19. package/lib/commonjs/navigators/OnboardingScreens.js.map +1 -1
  20. package/lib/commonjs/screens/Chat.js +1 -1
  21. package/lib/commonjs/screens/Chat.js.map +1 -1
  22. package/lib/commonjs/screens/CredentialDetails.js.map +1 -1
  23. package/lib/commonjs/screens/PINChange.js +0 -2
  24. package/lib/commonjs/screens/PINChange.js.map +1 -1
  25. package/lib/commonjs/screens/PINEnter.js +2 -6
  26. package/lib/commonjs/screens/PINEnter.js.map +1 -1
  27. package/lib/commonjs/screens/Terms.js +1 -19
  28. package/lib/commonjs/screens/Terms.js.map +1 -1
  29. package/lib/commonjs/services/logger.js +32 -8
  30. package/lib/commonjs/services/logger.js.map +1 -1
  31. package/lib/module/components/misc/CredentialCard11.js +31 -10
  32. package/lib/module/components/misc/CredentialCard11.js.map +1 -1
  33. package/lib/module/contexts/reducers/store.js +0 -14
  34. package/lib/module/contexts/reducers/store.js.map +1 -1
  35. package/lib/module/contexts/store.js +1 -2
  36. package/lib/module/contexts/store.js.map +1 -1
  37. package/lib/module/localization/fr/fr.json +0 -1
  38. package/lib/module/localization/pt-br/pt-br.json +1 -2
  39. package/lib/module/modules/history/ui/HistorySettings.js.map +1 -1
  40. package/lib/module/modules/openid/screens/OpenIDProofChangeCredential.js +1 -1
  41. package/lib/module/modules/openid/screens/OpenIDProofChangeCredential.js.map +1 -1
  42. package/lib/module/navigators/ContactStack.js +0 -16
  43. package/lib/module/navigators/ContactStack.js.map +1 -1
  44. package/lib/module/navigators/DeliveryStack.js +0 -16
  45. package/lib/module/navigators/DeliveryStack.js.map +1 -1
  46. package/lib/module/navigators/MainStack.js.map +1 -1
  47. package/lib/module/navigators/NotificationStack.js +0 -16
  48. package/lib/module/navigators/NotificationStack.js.map +1 -1
  49. package/lib/module/navigators/OnboardingScreens.js.map +1 -1
  50. package/lib/module/screens/Chat.js +2 -2
  51. package/lib/module/screens/Chat.js.map +1 -1
  52. package/lib/module/screens/CredentialDetails.js.map +1 -1
  53. package/lib/module/screens/PINChange.js +0 -2
  54. package/lib/module/screens/PINChange.js.map +1 -1
  55. package/lib/module/screens/PINEnter.js +2 -6
  56. package/lib/module/screens/PINEnter.js.map +1 -1
  57. package/lib/module/screens/Terms.js +1 -19
  58. package/lib/module/screens/Terms.js.map +1 -1
  59. package/lib/module/services/logger.js +32 -8
  60. package/lib/module/services/logger.js.map +1 -1
  61. package/lib/typescript/src/App.d.ts.map +1 -1
  62. package/lib/typescript/src/components/chat/ChatActions.d.ts.map +1 -1
  63. package/lib/typescript/src/components/chat/ChatBubble.d.ts.map +1 -1
  64. package/lib/typescript/src/components/chat/MessageInput.d.ts.map +1 -1
  65. package/lib/typescript/src/components/listItems/ContactCredentialListItem.d.ts.map +1 -1
  66. package/lib/typescript/src/components/misc/CredentialCard11.d.ts.map +1 -1
  67. package/lib/typescript/src/components/misc/CredentialCard11ActionFooter.d.ts.map +1 -1
  68. package/lib/typescript/src/components/misc/PINHeader.d.ts.map +1 -1
  69. package/lib/typescript/src/components/tour/TourOverlay.d.ts.map +1 -1
  70. package/lib/typescript/src/container-api.d.ts.map +1 -1
  71. package/lib/typescript/src/contexts/navigation.d.ts.map +1 -1
  72. package/lib/typescript/src/contexts/network.d.ts.map +1 -1
  73. package/lib/typescript/src/contexts/reducers/store.d.ts +1 -3
  74. package/lib/typescript/src/contexts/reducers/store.d.ts.map +1 -1
  75. package/lib/typescript/src/contexts/store.d.ts.map +1 -1
  76. package/lib/typescript/src/contexts/theme.d.ts.map +1 -1
  77. package/lib/typescript/src/hooks/chat-messages.d.ts.map +1 -1
  78. package/lib/typescript/src/hooks/connections.d.ts.map +1 -1
  79. package/lib/typescript/src/hooks/credential-card-styles.d.ts +2 -2
  80. package/lib/typescript/src/hooks/credential-card-styles.d.ts.map +1 -1
  81. package/lib/typescript/src/hooks/credentials.d.ts.map +1 -1
  82. package/lib/typescript/src/hooks/developer-mode.d.ts.map +1 -1
  83. package/lib/typescript/src/hooks/notifications.d.ts.map +1 -1
  84. package/lib/typescript/src/hooks/oob.d.ts.map +1 -1
  85. package/lib/typescript/src/hooks/proof-request-templates.d.ts.map +1 -1
  86. package/lib/typescript/src/hooks/proofs.d.ts.map +1 -1
  87. package/lib/typescript/src/hooks/screen-capture.d.ts.map +1 -1
  88. package/lib/typescript/src/hooks/useOnboardingState.d.ts.map +1 -1
  89. package/lib/typescript/src/hooks/usePINValidation.d.ts.map +1 -1
  90. package/lib/typescript/src/localization/index.d.ts.map +1 -1
  91. package/lib/typescript/src/modules/history/ui/HistorySettings.d.ts +2 -3
  92. package/lib/typescript/src/modules/history/ui/HistorySettings.d.ts.map +1 -1
  93. package/lib/typescript/src/modules/openid/hooks/openid.d.ts.map +1 -1
  94. package/lib/typescript/src/modules/openid/offerResolve.d.ts.map +1 -1
  95. package/lib/typescript/src/modules/openid/resolverProof.d.ts.map +1 -1
  96. package/lib/typescript/src/modules/openid/utils/utils.d.ts.map +1 -1
  97. package/lib/typescript/src/navigators/ContactStack.d.ts.map +1 -1
  98. package/lib/typescript/src/navigators/DeliveryStack.d.ts.map +1 -1
  99. package/lib/typescript/src/navigators/NotificationStack.d.ts.map +1 -1
  100. package/lib/typescript/src/navigators/OnboardingScreens.d.ts +10 -10
  101. package/lib/typescript/src/navigators/OnboardingScreens.d.ts.map +1 -1
  102. package/lib/typescript/src/onboarding.d.ts.map +1 -1
  103. package/lib/typescript/src/screens/Chat.d.ts.map +1 -1
  104. package/lib/typescript/src/screens/ConfigureMediator.d.ts.map +1 -1
  105. package/lib/typescript/src/screens/CredentialDetails.d.ts +2 -2
  106. package/lib/typescript/src/screens/CredentialDetails.d.ts.map +1 -1
  107. package/lib/typescript/src/screens/JSONDetails.d.ts.map +1 -1
  108. package/lib/typescript/src/screens/OnboardingPages.d.ts.map +1 -1
  109. package/lib/typescript/src/screens/PINChange.d.ts +2 -3
  110. package/lib/typescript/src/screens/PINChange.d.ts.map +1 -1
  111. package/lib/typescript/src/screens/PINEnter.d.ts.map +1 -1
  112. package/lib/typescript/src/screens/Terms.d.ts.map +1 -1
  113. package/lib/typescript/src/services/keychain.d.ts.map +1 -1
  114. package/lib/typescript/src/services/storage.d.ts.map +1 -1
  115. package/lib/typescript/src/types/navigators.d.ts +1 -0
  116. package/lib/typescript/src/types/navigators.d.ts.map +1 -1
  117. package/lib/typescript/src/types/state.d.ts +1 -2
  118. package/lib/typescript/src/types/state.d.ts.map +1 -1
  119. package/lib/typescript/src/utils/PINValidation.d.ts.map +1 -1
  120. package/lib/typescript/src/utils/agent.d.ts.map +1 -1
  121. package/lib/typescript/src/utils/anonCredsProofRequestMapper.d.ts.map +1 -1
  122. package/lib/typescript/src/utils/contacts.d.ts.map +1 -1
  123. package/lib/typescript/src/utils/credential.d.ts.map +1 -1
  124. package/lib/typescript/src/utils/crypto.d.ts.map +1 -1
  125. package/lib/typescript/src/utils/fileCache.d.ts.map +1 -1
  126. package/lib/typescript/src/utils/helpers.d.ts +1 -3
  127. package/lib/typescript/src/utils/helpers.d.ts.map +1 -1
  128. package/lib/typescript/src/utils/luminance.d.ts.map +1 -1
  129. package/lib/typescript/src/utils/mediatorhelpers.d.ts.map +1 -1
  130. package/lib/typescript/src/utils/migration.d.ts.map +1 -1
  131. package/lib/typescript/src/utils/network.d.ts.map +1 -1
  132. package/lib/typescript/src/utils/oca.d.ts.map +1 -1
  133. package/lib/typescript/src/utils/parsers.d.ts.map +1 -1
  134. package/lib/typescript/src/utils/proofBundle.d.ts.map +1 -1
  135. package/lib/typescript/src/utils/testable.d.ts.map +1 -1
  136. package/package.json +147 -148
  137. package/src/components/buttons/Button.tsx +24 -24
  138. package/src/components/misc/CredentialCard11.tsx +35 -11
  139. package/src/contexts/reducers/store.ts +0 -13
  140. package/src/contexts/store.tsx +0 -1
  141. package/src/localization/fr/fr.json +0 -1
  142. package/src/localization/pt-br/pt-br.json +1 -2
  143. package/src/modules/history/ui/HistorySettings.tsx +2 -3
  144. package/src/modules/openid/screens/OpenIDProofChangeCredential.tsx +1 -1
  145. package/src/navigators/ContactStack.tsx +0 -15
  146. package/src/navigators/DeliveryStack.tsx +0 -18
  147. package/src/navigators/MainStack.tsx +2 -2
  148. package/src/navigators/NotificationStack.tsx +0 -18
  149. package/src/navigators/OnboardingScreens.ts +10 -10
  150. package/src/screens/Chat.tsx +6 -2
  151. package/src/screens/CredentialDetails.tsx +5 -2
  152. package/src/screens/PINChange.tsx +3 -4
  153. package/src/screens/PINEnter.tsx +1 -6
  154. package/src/screens/Terms.tsx +3 -13
  155. package/src/services/logger.ts +8 -8
  156. package/src/types/navigators.ts +1 -0
  157. package/src/types/state.ts +1 -2
  158. package/lib/commonjs/hooks/onboarding.js +0 -23
  159. package/lib/commonjs/hooks/onboarding.js.map +0 -1
  160. package/lib/module/hooks/onboarding.js +0 -16
  161. package/lib/module/hooks/onboarding.js.map +0 -1
  162. package/lib/typescript/src/hooks/onboarding.d.ts +0 -2
  163. package/lib/typescript/src/hooks/onboarding.d.ts.map +0 -1
  164. package/src/hooks/onboarding.ts +0 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifold/core",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "module": "lib/module/index.js",
6
6
  "react-native": "src/index.ts",
@@ -31,117 +31,116 @@
31
31
  "typecheck": "tsc --noEmit"
32
32
  },
33
33
  "devDependencies": {
34
- "@babel/core": "^7.20.0",
35
- "@babel/runtime": "^7.20.0",
36
- "@bifold/oca": "2.2.1",
37
- "@bifold/verifier": "2.2.1",
38
- "@commitlint/cli": "^11.0.0",
34
+ "@babel/core": "~7.22.20",
35
+ "@babel/runtime": "~7.23.9",
36
+ "@bifold/oca": "2.3.0",
37
+ "@bifold/verifier": "2.3.0",
38
+ "@commitlint/cli": "~11.0.0",
39
39
  "@credo-ts/anoncreds": "0.5.13",
40
40
  "@credo-ts/askar": "0.5.13",
41
41
  "@credo-ts/core": "0.5.13",
42
42
  "@credo-ts/indy-sdk-to-askar-migration": "0.5.13",
43
43
  "@credo-ts/indy-vdr": "0.5.13",
44
44
  "@credo-ts/openid4vc": "0.5.13",
45
- "@credo-ts/push-notifications": "^0.7.0",
45
+ "@credo-ts/push-notifications": "0.7.0",
46
46
  "@credo-ts/question-answer": "0.5.13",
47
47
  "@credo-ts/react-hooks": "0.6.0",
48
48
  "@credo-ts/react-native": "0.5.13",
49
- "@formatjs/intl-datetimeformat": "4.2.4",
50
- "@formatjs/intl-displaynames": "5.2.4",
51
- "@formatjs/intl-getcanonicallocales": "1.7.3",
52
- "@formatjs/intl-listformat": "6.3.4",
53
- "@formatjs/intl-locale": "2.4.38",
54
- "@formatjs/intl-numberformat": "7.2.4",
55
- "@formatjs/intl-pluralrules": "4.1.4",
56
- "@formatjs/intl-relativetimeformat": "9.3.1",
49
+ "@formatjs/intl-datetimeformat": "~4.2.6",
50
+ "@formatjs/intl-displaynames": "~5.2.6",
51
+ "@formatjs/intl-getcanonicallocales": "~1.7.3",
52
+ "@formatjs/intl-listformat": "~6.3.6",
53
+ "@formatjs/intl-locale": "~2.4.47",
54
+ "@formatjs/intl-numberformat": "~7.2.6",
55
+ "@formatjs/intl-pluralrules": "~4.1.6",
56
+ "@formatjs/intl-relativetimeformat": "~9.3.3",
57
57
  "@hyperledger/anoncreds-react-native": "0.2.4",
58
58
  "@hyperledger/aries-askar-react-native": "0.2.3",
59
59
  "@hyperledger/indy-vdr-react-native": "0.2.2",
60
60
  "@hyperledger/indy-vdr-shared": "0.2.2",
61
- "@react-native-async-storage/async-storage": "^1.22.0",
62
- "@react-native-clipboard/clipboard": "^1.16.2",
63
- "@react-native-community/netinfo": "^11.3.0",
64
- "@react-native-masked-view/masked-view": "^0.3.0",
65
- "@react-native/babel-preset": "^0.73.0",
66
- "@react-native/eslint-config": "^0.73.2",
67
- "@react-native/eslint-plugin": "^0.73.1",
68
- "@react-navigation/bottom-tabs": "6.0.9",
69
- "@react-navigation/core": "6.1.0",
70
- "@react-navigation/devtools": "^6.0.8",
71
- "@react-navigation/native": "^6.0.8",
72
- "@react-navigation/stack": "^6.3.21",
73
- "@testing-library/jest-native": "^5.4.3",
74
- "@testing-library/react-native": "^12.3.0",
75
- "@types/jest": "^29.5.5",
76
- "@types/lodash.flatten": "^4.4.6",
77
- "@types/lodash.startcase": "^4.4.7",
78
- "@types/react": "^18.2.6",
79
- "@types/react-native-vector-icons": "^6.4.6",
80
- "@types/react-test-renderer": "^18.0.1",
81
- "@typescript-eslint/eslint-plugin": "^6.6.0",
82
- "@typescript-eslint/parser": "^6.6.0",
83
- "axios": "^1.4.0",
84
- "babel-jest": "^27.5.1",
85
- "babel-plugin-module-resolver": "^5.0.0",
86
- "base-64": "^1.0.0",
87
- "commitlint": "^17.7.1",
88
- "eslint": "^8.48.0",
89
- "eslint-import-resolver-typescript": "^2.5.0",
90
- "eslint-plugin-import": "^2.28.1",
91
- "eslint-plugin-prettier": "^4.0.0",
61
+ "@react-native-async-storage/async-storage": "~1.22.3",
62
+ "@react-native-clipboard/clipboard": "~1.16.3",
63
+ "@react-native-community/netinfo": "~11.3.3",
64
+ "@react-native-masked-view/masked-view": "~0.3.2",
65
+ "@react-native/babel-preset": "~0.73.21",
66
+ "@react-native/eslint-config": "~0.73.2",
67
+ "@react-native/eslint-plugin": "~0.73.1",
68
+ "@react-navigation/bottom-tabs": "~6.0.9",
69
+ "@react-navigation/core": "~6.1.1",
70
+ "@react-navigation/devtools": "~6.0.27",
71
+ "@react-navigation/native": "~6.0.16",
72
+ "@react-navigation/stack": "~6.3.29",
73
+ "@testing-library/jest-native": "~5.4.3",
74
+ "@testing-library/react-native": "~12.3.3",
75
+ "@types/jest": "~29.5.14",
76
+ "@types/lodash.flatten": "~4.4.9",
77
+ "@types/lodash.startcase": "~4.4.9",
78
+ "@types/react": "~18.2.79",
79
+ "@types/react-native-vector-icons": "~6.4.18",
80
+ "@types/react-test-renderer": "~18.0.7",
81
+ "@typescript-eslint/eslint-plugin": "~7.18.0",
82
+ "@typescript-eslint/parser": "~7.18.0",
83
+ "axios": "~1.4.0",
84
+ "babel-jest": "~27.5.1",
85
+ "babel-plugin-module-resolver": "~5.0.2",
86
+ "base-64": "~1.0.0",
87
+ "commitlint": "~17.7.2",
88
+ "eslint": "~8.57.1",
89
+ "eslint-import-resolver-typescript": "~3.6.3",
90
+ "eslint-plugin-import": "~2.29.1",
91
+ "eslint-plugin-prettier": "~5.2.6",
92
92
  "expo": "*",
93
93
  "expo-secure-store": "*",
94
- "husky": "^7.0.0",
95
- "i18next": "^21.4.0",
96
- "install-peerdeps": "^3.0.3",
97
- "jest": "^29.6.4",
98
- "lodash.flatten": "^4.4.0",
99
- "lodash.startcase": "^4.4.0",
100
- "mockdate": "^3.0.5",
101
- "moment": "^2.29.4",
102
- "node-notifier": "^10.0.1",
103
- "patch-package": "^6.4.4",
104
- "prettier": "^2.8.8",
105
- "query-string": "^7.0.1",
94
+ "husky": "~7.0.4",
95
+ "i18next": "~21.6.16",
96
+ "install-peerdeps": "~3.0.7",
97
+ "jest": "~29.6.4",
98
+ "lodash.flatten": "~4.4.0",
99
+ "lodash.startcase": "~4.4.0",
100
+ "mockdate": "~3.0.5",
101
+ "moment": "~2.29.4",
102
+ "node-notifier": "~10.0.1",
103
+ "prettier": "~2.8.8",
104
+ "query-string": "~7.1.3",
106
105
  "react": "*",
107
- "react-i18next": "11.13.0",
108
- "react-native": "^0.73.6",
109
- "react-native-animated-pagination-dots": "^0.1.72",
110
- "react-native-argon2": "^2.0.1",
111
- "react-native-bouncy-checkbox": "^3.0.5",
112
- "react-native-builder-bob": "^0.21.3",
113
- "react-native-collapsible": "^1.6.1",
114
- "react-native-config": "^1.4.2",
115
- "react-native-confirmation-code-field": "^7.3.0",
116
- "react-native-device-info": "^8.4.9",
117
- "react-native-encrypted-storage": "^4.0.2",
118
- "react-native-fs": "^2.18.0",
119
- "react-native-gesture-handler": "^2.14.0",
120
- "react-native-get-random-values": "^1.7.0",
121
- "react-native-gifted-chat": "2.4.0",
122
- "react-native-keychain": "^8.1.3",
123
- "react-native-localize": "^2.2.4",
106
+ "react-i18next": "~11.17.1",
107
+ "react-native": "0.73.11",
108
+ "react-native-animated-pagination-dots": "~0.1.73",
109
+ "react-native-argon2": "~2.0.1",
110
+ "react-native-bouncy-checkbox": "~3.0.7",
111
+ "react-native-builder-bob": "~0.21.3",
112
+ "react-native-collapsible": "~1.6.2",
113
+ "react-native-config": "~1.5.5",
114
+ "react-native-confirmation-code-field": "~7.3.2",
115
+ "react-native-device-info": "~8.7.1",
116
+ "react-native-encrypted-storage": "~4.0.3",
117
+ "react-native-fs": "~2.20.0",
118
+ "react-native-gesture-handler": "~2.18.1",
119
+ "react-native-get-random-values": "~1.8.0",
120
+ "react-native-gifted-chat": "~2.4.1",
121
+ "react-native-keychain": "~8.1.3",
122
+ "react-native-localize": "~2.2.6",
124
123
  "react-native-logs": "~5.1.0",
125
- "react-native-orientation-locker": "^1.6.0",
126
- "react-native-permissions": "^5.4.0",
127
- "react-native-qrcode-svg": "6.2.0",
128
- "react-native-safe-area-context": "^4.8.2",
129
- "react-native-scalable-image": "^1.1.0",
130
- "react-native-screenguard": "^1.0.8-beta3",
131
- "react-native-screens": "^3.29.0",
132
- "react-native-splash-screen": "^3.3.0",
133
- "react-native-svg": "^15.0.0",
134
- "react-native-svg-transformer": "^0.14.3",
135
- "react-native-tcp-socket": "^6.0.6",
136
- "react-native-toast-message": "^2.1.6",
137
- "react-native-uuid": "^2.0.1",
138
- "react-native-vector-icons": "^10.0.0",
139
- "react-native-vision-camera": "4.3.1",
140
- "react-test-renderer": "^18.2.0",
141
- "rimraf": "^5.0.0",
142
- "tsyringe": "^4.7.0",
143
- "typescript": "^5.0.4",
144
- "uuid": "^9.0.0"
124
+ "react-native-orientation-locker": "~1.6.0",
125
+ "react-native-permissions": "~5.4.1",
126
+ "react-native-qrcode-svg": "~6.2.0",
127
+ "react-native-safe-area-context": "~4.8.2",
128
+ "react-native-scalable-image": "~1.1.0",
129
+ "react-native-screenguard": "~1.1.0",
130
+ "react-native-screens": "~4.4.0",
131
+ "react-native-splash-screen": "~3.3.0",
132
+ "react-native-svg": "~15.0.0",
133
+ "react-native-svg-transformer": "~0.14.3",
134
+ "react-native-tcp-socket": "~6.0.6",
135
+ "react-native-toast-message": "~2.1.10",
136
+ "react-native-uuid": "~2.0.3",
137
+ "react-native-vector-icons": "~10.0.3",
138
+ "react-native-vision-camera": "~4.3.2",
139
+ "react-test-renderer": "~18.2.0",
140
+ "rimraf": "~5.0.10",
141
+ "tsyringe": "~4.8.0",
142
+ "typescript": "~5.5.4",
143
+ "uuid": "~9.0.1"
145
144
  },
146
145
  "peerDependencies": {
147
146
  "@credo-ts/anoncreds": "0.5.13",
@@ -150,71 +149,71 @@
150
149
  "@credo-ts/indy-sdk-to-askar-migration": "0.5.13",
151
150
  "@credo-ts/indy-vdr": "0.5.13",
152
151
  "@credo-ts/openid4vc": "0.5.13",
153
- "@credo-ts/push-notifications": "^0.7.0",
152
+ "@credo-ts/push-notifications": "0.7.0",
154
153
  "@credo-ts/question-answer": "0.5.13",
155
154
  "@credo-ts/react-hooks": "0.6.0",
156
155
  "@credo-ts/react-native": "0.5.13",
157
- "@formatjs/intl-datetimeformat": "4.2.4",
158
- "@formatjs/intl-displaynames": "5.2.4",
159
- "@formatjs/intl-getcanonicallocales": "1.7.3",
160
- "@formatjs/intl-listformat": "6.3.4",
161
- "@formatjs/intl-locale": "2.4.38",
162
- "@formatjs/intl-numberformat": "7.2.4",
163
- "@formatjs/intl-pluralrules": "4.1.4",
164
- "@formatjs/intl-relativetimeformat": "9.3.1",
156
+ "@formatjs/intl-datetimeformat": "~4.2.6",
157
+ "@formatjs/intl-displaynames": "~5.2.6",
158
+ "@formatjs/intl-getcanonicallocales": "~1.7.3",
159
+ "@formatjs/intl-listformat": "~6.3.6",
160
+ "@formatjs/intl-locale": "~2.4.47",
161
+ "@formatjs/intl-numberformat": "~7.2.6",
162
+ "@formatjs/intl-pluralrules": "~4.1.6",
163
+ "@formatjs/intl-relativetimeformat": "~9.3.3",
165
164
  "@hyperledger/anoncreds-react-native": "0.2.4",
166
165
  "@hyperledger/aries-askar-react-native": "0.2.3",
167
166
  "@hyperledger/indy-vdr-react-native": "0.2.2",
168
167
  "@hyperledger/indy-vdr-shared": "0.2.2",
169
- "@react-native-async-storage/async-storage": "^1.22.0",
170
- "@react-native-clipboard/clipboard": "^1.16.2",
171
- "@react-native-community/netinfo": "^11.3.0",
172
- "@react-native-masked-view/masked-view": "^0.3.0",
173
- "@react-navigation/bottom-tabs": "6.0.9",
174
- "@react-navigation/core": "6.1.0",
175
- "@react-navigation/devtools": "^6.0.8",
176
- "@react-navigation/native": "^6.0.8",
177
- "@react-navigation/stack": "^6.3.21",
178
- "axios": "^1.4.0",
179
- "base-64": "^1.0.0",
180
- "i18next": "^21.4.0",
181
- "lodash.flatten": "^4.4.0",
182
- "lodash.startcase": "^4.4.0",
183
- "moment": "^2.29.4",
184
- "query-string": "^7.0.1",
185
- "react": "^18.2.0",
186
- "react-i18next": "11.13.0",
168
+ "@react-native-async-storage/async-storage": "~1.22.3",
169
+ "@react-native-clipboard/clipboard": "~1.16.3",
170
+ "@react-native-community/netinfo": "~11.3.3",
171
+ "@react-native-masked-view/masked-view": "~0.3.2",
172
+ "@react-navigation/bottom-tabs": "~6.0.9",
173
+ "@react-navigation/core": "~6.1.0",
174
+ "@react-navigation/devtools": "~6.0.27",
175
+ "@react-navigation/native": "~6.0.16",
176
+ "@react-navigation/stack": "~6.3.29",
177
+ "axios": "~1.4.0",
178
+ "base-64": "~1.0.0",
179
+ "i18next": "~21.6.16",
180
+ "lodash.flatten": "~4.4.0",
181
+ "lodash.startcase": "~4.4.0",
182
+ "moment": "~2.29.4",
183
+ "query-string": "~7.1.3",
184
+ "react": "~18.3.1",
185
+ "react-i18next": "~11.17.1",
187
186
  "react-native": "*",
188
- "react-native-animated-pagination-dots": "^0.1.72",
189
- "react-native-argon2": "^2.0.1",
190
- "react-native-bouncy-checkbox": "^3.0.5",
191
- "react-native-collapsible": "^1.6.1",
192
- "react-native-config": "^1.4.2",
193
- "react-native-confirmation-code-field": "^7.3.0",
194
- "react-native-device-info": "^8.4.9",
195
- "react-native-encrypted-storage": "^4.0.2",
196
- "react-native-fs": "^2.16.6",
197
- "react-native-gesture-handler": "^2.14.0",
198
- "react-native-get-random-values": "^1.7.0",
199
- "react-native-gifted-chat": "2.4.0",
200
- "react-native-keychain": "^8.1.3",
201
- "react-native-localize": "^2.2.4",
187
+ "react-native-animated-pagination-dots": "~0.1.73",
188
+ "react-native-argon2": "~2.0.1",
189
+ "react-native-bouncy-checkbox": "~3.0.7",
190
+ "react-native-collapsible": "~1.6.2",
191
+ "react-native-config": "~1.5.5",
192
+ "react-native-confirmation-code-field": "~7.3.2",
193
+ "react-native-device-info": "~8.7.1",
194
+ "react-native-encrypted-storage": "~4.0.3",
195
+ "react-native-fs": "~2.20.0",
196
+ "react-native-gesture-handler": "~2.18.1",
197
+ "react-native-get-random-values": "~1.8.0",
198
+ "react-native-gifted-chat": "~2.4.1",
199
+ "react-native-keychain": "~8.1.3",
200
+ "react-native-localize": "~2.2.6",
202
201
  "react-native-logs": "~5.1.0",
203
202
  "react-native-orientation-locker": "*",
204
- "react-native-permissions": "^4.0.1",
205
- "react-native-qrcode-svg": "6.2.0",
206
- "react-native-safe-area-context": "^4.8.2",
203
+ "react-native-permissions": "~5.4.1",
204
+ "react-native-qrcode-svg": "~6.2.0",
205
+ "react-native-safe-area-context": "~4.8.2",
207
206
  "react-native-screenguard": "*",
208
- "react-native-screens": "^3.24.0",
209
- "react-native-splash-screen": "^3.3.0",
210
- "react-native-svg": "^15.0.0",
211
- "react-native-tcp-socket": "^6.0.6",
212
- "react-native-toast-message": "^2.1.6",
213
- "react-native-uuid": "^2.0.1",
214
- "react-native-vector-icons": "^10.0.0",
207
+ "react-native-screens": "~4.4.0",
208
+ "react-native-splash-screen": "~3.3.0",
209
+ "react-native-svg": "~15.0.0",
210
+ "react-native-tcp-socket": "~6.0.6",
211
+ "react-native-toast-message": "~2.1.10",
212
+ "react-native-uuid": "~2.0.3",
213
+ "react-native-vector-icons": "~10.0.3",
215
214
  "react-native-vision-camera": "*",
216
- "tsyringe": "^4.7.0",
217
- "uuid": "^9.0.0"
215
+ "tsyringe": "~4.8.0",
216
+ "uuid": "~9.0.1"
218
217
  },
219
218
  "installConfig": {
220
219
  "hoistingLimits": "workspaces"
@@ -22,53 +22,53 @@ const ButtonImplComponent = (
22
22
  ) => {
23
23
  const { Buttons, heavyOpacity } = useTheme()
24
24
  const buttonStyles = {
25
- [ButtonType.Critical]: {
26
- color: Buttons.critical,
25
+ [ButtonType.Critical]: {
26
+ color: Buttons.critical,
27
27
  colorDisabled: Buttons.criticalTextDisabled,
28
28
  text: Buttons.criticalText,
29
- textDisabled: Buttons.criticalTextDisabled
29
+ textDisabled: Buttons.criticalTextDisabled,
30
30
  },
31
- [ButtonType.Primary]: {
32
- color: Buttons.primary,
31
+ [ButtonType.Primary]: {
32
+ color: Buttons.primary,
33
33
  colorDisabled: Buttons.primaryDisabled,
34
34
  text: Buttons.primaryText,
35
- textDisabled: Buttons.primaryTextDisabled
35
+ textDisabled: Buttons.primaryTextDisabled,
36
36
  },
37
- [ButtonType.Secondary]: {
38
- color: Buttons.secondary,
37
+ [ButtonType.Secondary]: {
38
+ color: Buttons.secondary,
39
39
  colorDisabled: Buttons.secondaryDisabled,
40
40
  text: Buttons.secondaryText,
41
- textDisabled: Buttons.secondaryTextDisabled
41
+ textDisabled: Buttons.secondaryTextDisabled,
42
42
  },
43
- [ButtonType.Tertiary]: {
44
- color: Buttons.tertiary,
43
+ [ButtonType.Tertiary]: {
44
+ color: Buttons.tertiary,
45
45
  colorDisabled: Buttons.tertiaryDisabled,
46
46
  text: Buttons.tertiaryText,
47
- textDisabled: Buttons.tertiaryTextDisabled
47
+ textDisabled: Buttons.tertiaryTextDisabled,
48
48
  },
49
- [ButtonType.ModalCritical]: {
50
- color: Buttons.modalCritical,
49
+ [ButtonType.ModalCritical]: {
50
+ color: Buttons.modalCritical,
51
51
  colorDisabled: Buttons.modalCriticalDisabled,
52
52
  text: Buttons.modalCriticalText,
53
- textDisabled: Buttons.modalCriticalTextDisabled
53
+ textDisabled: Buttons.modalCriticalTextDisabled,
54
54
  },
55
- [ButtonType.ModalPrimary]: {
56
- color: Buttons.modalPrimary,
55
+ [ButtonType.ModalPrimary]: {
56
+ color: Buttons.modalPrimary,
57
57
  colorDisabled: Buttons.modalPrimaryDisabled,
58
58
  text: Buttons.modalPrimaryText,
59
- textDisabled: Buttons.modalPrimaryTextDisabled
59
+ textDisabled: Buttons.modalPrimaryTextDisabled,
60
60
  },
61
- [ButtonType.ModalSecondary]: {
62
- color: Buttons.modalSecondary,
61
+ [ButtonType.ModalSecondary]: {
62
+ color: Buttons.modalSecondary,
63
63
  colorDisabled: Buttons.modalSecondaryDisabled,
64
64
  text: Buttons.modalSecondaryText,
65
- textDisabled: Buttons.modalSecondaryTextDisabled
65
+ textDisabled: Buttons.modalSecondaryTextDisabled,
66
66
  },
67
- [ButtonType.ModalTertiary]: {
68
- color: Buttons.modalTertiary,
67
+ [ButtonType.ModalTertiary]: {
68
+ color: Buttons.modalTertiary,
69
69
  colorDisabled: Buttons.modalTertiaryDisabled,
70
70
  text: Buttons.modalTertiaryText,
71
- textDisabled: Buttons.modalTertiaryTextDisabled
71
+ textDisabled: Buttons.modalTertiaryTextDisabled,
72
72
  },
73
73
  }
74
74
  const [isActive, setIsActive] = useState<boolean>(false)
@@ -490,30 +490,55 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
490
490
  )
491
491
  }
492
492
 
493
- function getSliceBackgroundColor(): ColorValue | undefined {
494
- if (hideSlice) return 'transparent'
495
- return brandingOverlayType === BrandingOverlayType.Branding10
496
- ? backgroundColorIfRevoked(styles.secondaryBodyContainer.backgroundColor)
497
- : overlay.brandingOverlay?.secondaryBackgroundColor
493
+ /**
494
+ * Returns the background color for the slice of the card.
495
+ *
496
+ * @return {ColorValue} - The background color for the slice.
497
+ */
498
+ function getSliceBackgroundColor(): ColorValue {
499
+ if (overlay.brandingOverlay?.secondaryBackgroundColor) {
500
+ return overlay.brandingOverlay.secondaryBackgroundColor
501
+ }
502
+
503
+ if (styles.secondaryBodyContainer.backgroundColor) {
504
+ return styles.secondaryBodyContainer.backgroundColor
505
+ }
506
+
507
+ return 'transparent'
498
508
  }
499
509
 
500
510
  const CredentialCardSecondaryBody: React.FC = () => {
511
+ // If the slice is hidden, we return an empty view with the same styles
512
+ if (hideSlice) {
513
+ return (
514
+ <View
515
+ testID={testIdWithKey('CredentialCardSecondaryBody')}
516
+ style={[
517
+ styles.secondaryBodyContainer,
518
+ {
519
+ backgroundColor: 'transparent',
520
+ overflow: 'hidden',
521
+ },
522
+ ]}
523
+ />
524
+ )
525
+ }
526
+
501
527
  return (
502
528
  <View
503
529
  testID={testIdWithKey('CredentialCardSecondaryBody')}
504
530
  style={[
505
531
  styles.secondaryBodyContainer,
506
532
  {
507
- backgroundColor: getSliceBackgroundColor() ?? ColorPallet.brand.secondaryBackground,
533
+ backgroundColor: getSliceBackgroundColor(),
508
534
  overflow: 'hidden',
509
535
  },
510
536
  ]}
511
537
  >
512
538
  {overlay.brandingOverlay?.backgroundImageSlice &&
513
- (!displayItems || brandingOverlayType === BrandingOverlayType.Branding11) &&
514
- !hideSlice ? (
539
+ (!displayItems || brandingOverlayType === BrandingOverlayType.Branding11) ? (
515
540
  <ImageBackground
516
- source={toImageSource(overlay.brandingOverlay?.backgroundImageSlice)}
541
+ source={toImageSource(overlay.brandingOverlay.backgroundImageSlice)}
517
542
  style={{ flexGrow: 1 }}
518
543
  imageStyle={{
519
544
  borderTopLeftRadius: borderRadius,
@@ -521,8 +546,7 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
521
546
  }}
522
547
  />
523
548
  ) : (
524
- !(Boolean(credentialErrors.length) || proof || getSecondaryBackgroundColor(overlay, proof)) &&
525
- !hideSlice && (
549
+ !(Boolean(credentialErrors.length) || proof || getSecondaryBackgroundColor(overlay, proof)) && (
526
550
  <View
527
551
  style={[
528
552
  {
@@ -28,7 +28,6 @@ enum OnboardingDispatchAction {
28
28
  DID_NAME_WALLET = 'onboarding/didNameWallet',
29
29
  DID_COMPLETE_ONBOARDING = 'onboarding/didCompleteOnboarding',
30
30
  ONBOARDING_VERSION = 'onboarding/onboardingVersion',
31
- SET_POST_AUTH_SCREENS = 'onboarding/postAuthScreens',
32
31
  }
33
32
 
34
33
  enum MigrationDispatchAction {
@@ -708,18 +707,6 @@ export const reducer = <S extends State>(state: S, action: ReducerAction<Dispatc
708
707
 
709
708
  return newState
710
709
  }
711
- case OnboardingDispatchAction.SET_POST_AUTH_SCREENS: {
712
- const value = (action?.payload || []).pop()
713
- const onboarding = {
714
- ...state.onboarding,
715
- postAuthScreens: value,
716
- }
717
- const newState = {
718
- ...state,
719
- onboarding,
720
- }
721
- return newState
722
- }
723
710
  case MigrationDispatchAction.DID_MIGRATE_TO_ASKAR: {
724
711
  const migration: MigrationState = {
725
712
  ...state.migration,
@@ -25,7 +25,6 @@ export const defaultState: State = {
25
25
  didNameWallet: false,
26
26
  onboardingVersion: 0,
27
27
  didCompleteOnboarding: false,
28
- postAuthScreens: [],
29
28
  },
30
29
  authentication: {
31
30
  didAuthenticate: false,
@@ -50,7 +50,6 @@
50
50
  "Send": "Envoyer",
51
51
  "Reset": "Reset (FR)",
52
52
  "ViewJSON": "View JSON Details (FR)"
53
-
54
53
  },
55
54
  "Date": {
56
55
  "ShortFormat": "D MMM",
@@ -49,7 +49,6 @@
49
49
  "Send": "Enviar",
50
50
  "Reset": "Reset (PT-BR)",
51
51
  "ViewJSON": "View JSON Details (PT-BR)"
52
-
53
52
  },
54
53
  "Date": {
55
54
  "ShortFormat": "D MMM",
@@ -906,7 +905,7 @@
906
905
  "UpdateNow": "Update the app (PT-BR)",
907
906
  "UpdateLater": "Do this later (PT-BR)"
908
907
  },
909
- "Banner": {
908
+ "Banner": {
910
909
  "AlertsLength": "You have {{ alerts }} alerts (PT-BR)"
911
910
  }
912
911
  }
@@ -1,5 +1,4 @@
1
1
  import { useAgent } from '@credo-ts/react-hooks'
2
- import { ParamListBase } from '@react-navigation/core'
3
2
  import { StackScreenProps } from '@react-navigation/stack'
4
3
  import React, { useCallback, useEffect, useState } from 'react'
5
4
  import { useTranslation } from 'react-i18next'
@@ -11,14 +10,14 @@ import KeyboardView from '../../../components/views/KeyboardView'
11
10
  import { TOKENS, useServices } from '../../../container-api'
12
11
  import { useAnimatedComponents } from '../../../contexts/animated-components'
13
12
  import { useTheme } from '../../../contexts/theme'
14
- import { Screens } from '../../../types/navigators'
13
+ import { Screens, SettingStackParams } from '../../../types/navigators'
15
14
  import { testIdWithKey } from '../../../utils/testable'
16
15
  import { HistoryBlockSelection, IHistoryManager } from '../types'
17
16
 
18
17
  import SingleSelectBlock from './components/SingleSelectBlock'
19
18
  import { ThemedText } from '../../../components/texts/ThemedText'
20
19
 
21
- interface HistorySettingsProps extends StackScreenProps<ParamListBase, Screens.HistorySettings> {}
20
+ interface HistorySettingsProps extends StackScreenProps<SettingStackParams, Screens.HistorySettings> {}
22
21
 
23
22
  const HistorySettings: React.FC<HistorySettingsProps> = () => {
24
23
  const [continueEnabled] = useState(true)
@@ -97,7 +97,7 @@ const OpenIDProofCredentialSelect: React.FC<Props> = ({ route, navigation }: Pro
97
97
  <RecordLoading />
98
98
  </View>
99
99
  ) : (
100
- <ThemedText variant='bold'>{t('ProofRequest.AvailableCards')}</ThemedText>
100
+ <ThemedText variant={'bold'}>{t('ProofRequest.AvailableCards')}</ThemedText>
101
101
  )}
102
102
  </View>
103
103
  )
@@ -7,10 +7,8 @@ import { useTheme } from '../contexts/theme'
7
7
  import Chat from '../screens/Chat'
8
8
  import ContactDetails from '../screens/ContactDetails'
9
9
  import CredentialDetails from '../screens/CredentialDetails'
10
- import CredentialOffer from '../screens/CredentialOffer'
11
10
  import ListContacts from '../screens/ListContacts'
12
11
  import ProofDetails from '../screens/ProofDetails'
13
- import ProofRequest from '../screens/ProofRequest'
14
12
  import RenameContact from '../screens/RenameContact'
15
13
  import JSONDetails from '../screens/JSONDetails'
16
14
  import WhatAreContacts from '../screens/WhatAreContacts'
@@ -77,11 +75,6 @@ const ContactStack: React.FC = () => {
77
75
  component={CredentialDetails}
78
76
  options={{ title: t('Screens.CredentialDetails'), ...ScreenOptionsDictionary[Screens.CredentialDetails] }}
79
77
  />
80
- <Stack.Screen
81
- name={Screens.CredentialOffer}
82
- component={CredentialOffer}
83
- options={{ title: t('Screens.CredentialOffer'), ...ScreenOptionsDictionary[Screens.CredentialOffer] }}
84
- />
85
78
  <Stack.Screen
86
79
  name={Screens.ProofDetails}
87
80
  component={ProofDetails}
@@ -91,14 +84,6 @@ const ContactStack: React.FC = () => {
91
84
  ...ScreenOptionsDictionary[Screens.ProofDetails],
92
85
  })}
93
86
  />
94
- <Stack.Screen
95
- name={Screens.ProofRequest}
96
- component={ProofRequest}
97
- options={{
98
- title: t('Screens.ProofRequest'),
99
- ...ScreenOptionsDictionary[Screens.ProofRequest],
100
- }}
101
- />
102
87
  </Stack.Navigator>
103
88
  )
104
89
  }