@bifold/core 2.2.0 → 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.
- package/lib/commonjs/App.js +1 -2
- package/lib/commonjs/App.js.map +1 -1
- package/lib/commonjs/assets/oca-bundles.json +4 -4
- package/lib/commonjs/components/inputs/PINInput.js +4 -2
- package/lib/commonjs/components/inputs/PINInput.js.map +1 -1
- package/lib/commonjs/components/misc/CredentialCard11.js +34 -13
- package/lib/commonjs/components/misc/CredentialCard11.js.map +1 -1
- package/lib/commonjs/components/modals/DeveloperModal.js +2 -8
- package/lib/commonjs/components/modals/DeveloperModal.js.map +1 -1
- package/lib/commonjs/components/views/Banner.js +162 -0
- package/lib/commonjs/components/views/Banner.js.map +1 -0
- package/lib/commonjs/components/views/HeaderWithBanner.js +17 -0
- package/lib/commonjs/components/views/HeaderWithBanner.js.map +1 -0
- package/lib/commonjs/components/views/KeyboardView.js +21 -8
- package/lib/commonjs/components/views/KeyboardView.js.map +1 -1
- package/lib/commonjs/container-api.js +1 -0
- package/lib/commonjs/container-api.js.map +1 -1
- package/lib/commonjs/container-impl.js +2 -0
- package/lib/commonjs/container-impl.js.map +1 -1
- package/lib/commonjs/contexts/network.js +36 -0
- package/lib/commonjs/contexts/network.js.map +1 -1
- package/lib/commonjs/contexts/reducers/store.js +30 -14
- package/lib/commonjs/contexts/reducers/store.js.map +1 -1
- package/lib/commonjs/contexts/store.js +3 -3
- package/lib/commonjs/contexts/store.js.map +1 -1
- package/lib/commonjs/index.js +0 -8
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/localization/en/en.json +3 -0
- package/lib/commonjs/localization/fr/fr.json +3 -1
- package/lib/commonjs/localization/pt-br/pt-br.json +3 -1
- package/lib/commonjs/modules/history/ui/HistorySettings.js.map +1 -1
- package/lib/commonjs/modules/openid/screens/OpenIDProofChangeCredential.js +1 -1
- package/lib/commonjs/modules/openid/screens/OpenIDProofChangeCredential.js.map +1 -1
- package/lib/commonjs/navigators/ContactStack.js +0 -16
- package/lib/commonjs/navigators/ContactStack.js.map +1 -1
- package/lib/commonjs/navigators/DeliveryStack.js +0 -16
- package/lib/commonjs/navigators/DeliveryStack.js.map +1 -1
- package/lib/commonjs/navigators/MainStack.js.map +1 -1
- package/lib/commonjs/navigators/NotificationStack.js +0 -16
- package/lib/commonjs/navigators/NotificationStack.js.map +1 -1
- package/lib/commonjs/navigators/OnboardingScreens.js.map +1 -1
- package/lib/commonjs/navigators/defaultStackOptions.js +2 -0
- package/lib/commonjs/navigators/defaultStackOptions.js.map +1 -1
- package/lib/commonjs/screens/Chat.js +11 -1
- package/lib/commonjs/screens/Chat.js.map +1 -1
- package/lib/commonjs/screens/CredentialDetails.js.map +1 -1
- package/lib/commonjs/screens/PINChange.js +9 -6
- package/lib/commonjs/screens/PINChange.js.map +1 -1
- package/lib/commonjs/screens/PINEnter.js +10 -8
- package/lib/commonjs/screens/PINEnter.js.map +1 -1
- package/lib/commonjs/screens/PINVerify.js +13 -11
- package/lib/commonjs/screens/PINVerify.js.map +1 -1
- package/lib/commonjs/screens/Terms.js +1 -19
- package/lib/commonjs/screens/Terms.js.map +1 -1
- package/lib/commonjs/screens/ToggleBiometry.js +2 -1
- package/lib/commonjs/screens/ToggleBiometry.js.map +1 -1
- package/lib/commonjs/services/logger.js +32 -8
- package/lib/commonjs/services/logger.js.map +1 -1
- package/lib/commonjs/types/state.js +4 -0
- package/lib/module/App.js +1 -2
- package/lib/module/App.js.map +1 -1
- package/lib/module/assets/oca-bundles.json +4 -4
- package/lib/module/components/inputs/PINInput.js +4 -2
- package/lib/module/components/inputs/PINInput.js.map +1 -1
- package/lib/module/components/misc/CredentialCard11.js +34 -13
- package/lib/module/components/misc/CredentialCard11.js.map +1 -1
- package/lib/module/components/modals/DeveloperModal.js +2 -8
- package/lib/module/components/modals/DeveloperModal.js.map +1 -1
- package/lib/module/components/views/Banner.js +152 -0
- package/lib/module/components/views/Banner.js.map +1 -0
- package/lib/module/components/views/HeaderWithBanner.js +10 -0
- package/lib/module/components/views/HeaderWithBanner.js.map +1 -0
- package/lib/module/components/views/KeyboardView.js +22 -9
- package/lib/module/components/views/KeyboardView.js.map +1 -1
- package/lib/module/container-api.js +1 -0
- package/lib/module/container-api.js.map +1 -1
- package/lib/module/container-impl.js +2 -0
- package/lib/module/container-impl.js.map +1 -1
- package/lib/module/contexts/network.js +37 -1
- package/lib/module/contexts/network.js.map +1 -1
- package/lib/module/contexts/reducers/store.js +30 -14
- package/lib/module/contexts/reducers/store.js.map +1 -1
- package/lib/module/contexts/store.js +3 -3
- package/lib/module/contexts/store.js.map +1 -1
- package/lib/module/index.js +1 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/localization/en/en.json +3 -0
- package/lib/module/localization/fr/fr.json +3 -1
- package/lib/module/localization/pt-br/pt-br.json +3 -1
- package/lib/module/modules/history/ui/HistorySettings.js.map +1 -1
- package/lib/module/modules/openid/screens/OpenIDProofChangeCredential.js +1 -1
- package/lib/module/modules/openid/screens/OpenIDProofChangeCredential.js.map +1 -1
- package/lib/module/navigators/ContactStack.js +0 -16
- package/lib/module/navigators/ContactStack.js.map +1 -1
- package/lib/module/navigators/DeliveryStack.js +0 -16
- package/lib/module/navigators/DeliveryStack.js.map +1 -1
- package/lib/module/navigators/MainStack.js.map +1 -1
- package/lib/module/navigators/NotificationStack.js +0 -16
- package/lib/module/navigators/NotificationStack.js.map +1 -1
- package/lib/module/navigators/OnboardingScreens.js.map +1 -1
- package/lib/module/navigators/defaultStackOptions.js +2 -0
- package/lib/module/navigators/defaultStackOptions.js.map +1 -1
- package/lib/module/screens/Chat.js +11 -1
- package/lib/module/screens/Chat.js.map +1 -1
- package/lib/module/screens/CredentialDetails.js.map +1 -1
- package/lib/module/screens/PINChange.js +9 -6
- package/lib/module/screens/PINChange.js.map +1 -1
- package/lib/module/screens/PINEnter.js +10 -8
- package/lib/module/screens/PINEnter.js.map +1 -1
- package/lib/module/screens/PINVerify.js +13 -11
- package/lib/module/screens/PINVerify.js.map +1 -1
- package/lib/module/screens/Terms.js +1 -19
- package/lib/module/screens/Terms.js.map +1 -1
- package/lib/module/screens/ToggleBiometry.js +2 -1
- package/lib/module/screens/ToggleBiometry.js.map +1 -1
- package/lib/module/services/logger.js +32 -8
- package/lib/module/services/logger.js.map +1 -1
- package/lib/module/types/state.js +1 -1
- package/lib/typescript/src/App.d.ts.map +1 -1
- package/lib/typescript/src/components/chat/ChatActions.d.ts.map +1 -1
- package/lib/typescript/src/components/chat/ChatBubble.d.ts.map +1 -1
- package/lib/typescript/src/components/chat/MessageInput.d.ts.map +1 -1
- package/lib/typescript/src/components/inputs/PINInput.d.ts +1 -0
- package/lib/typescript/src/components/inputs/PINInput.d.ts.map +1 -1
- package/lib/typescript/src/components/listItems/ContactCredentialListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/misc/CredentialCard11.d.ts.map +1 -1
- package/lib/typescript/src/components/misc/CredentialCard11ActionFooter.d.ts.map +1 -1
- package/lib/typescript/src/components/misc/PINHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/modals/DeveloperModal.d.ts.map +1 -1
- package/lib/typescript/src/components/tour/TourOverlay.d.ts.map +1 -1
- package/lib/typescript/src/components/views/Banner.d.ts +16 -0
- package/lib/typescript/src/components/views/Banner.d.ts.map +1 -0
- package/lib/typescript/src/components/views/HeaderWithBanner.d.ts +5 -0
- package/lib/typescript/src/components/views/HeaderWithBanner.d.ts.map +1 -0
- package/lib/typescript/src/components/views/KeyboardView.d.ts +1 -0
- package/lib/typescript/src/components/views/KeyboardView.d.ts.map +1 -1
- package/lib/typescript/src/container-api.d.ts +3 -0
- package/lib/typescript/src/container-api.d.ts.map +1 -1
- package/lib/typescript/src/container-impl.d.ts +1 -0
- package/lib/typescript/src/container-impl.d.ts.map +1 -1
- package/lib/typescript/src/contexts/navigation.d.ts.map +1 -1
- package/lib/typescript/src/contexts/network.d.ts.map +1 -1
- package/lib/typescript/src/contexts/reducers/store.d.ts +6 -4
- package/lib/typescript/src/contexts/reducers/store.d.ts.map +1 -1
- package/lib/typescript/src/contexts/store.d.ts.map +1 -1
- package/lib/typescript/src/contexts/theme.d.ts.map +1 -1
- package/lib/typescript/src/hooks/chat-messages.d.ts.map +1 -1
- package/lib/typescript/src/hooks/connections.d.ts.map +1 -1
- package/lib/typescript/src/hooks/credential-card-styles.d.ts +2 -2
- package/lib/typescript/src/hooks/credential-card-styles.d.ts.map +1 -1
- package/lib/typescript/src/hooks/credentials.d.ts.map +1 -1
- package/lib/typescript/src/hooks/developer-mode.d.ts.map +1 -1
- package/lib/typescript/src/hooks/notifications.d.ts.map +1 -1
- package/lib/typescript/src/hooks/oob.d.ts.map +1 -1
- package/lib/typescript/src/hooks/proof-request-templates.d.ts.map +1 -1
- package/lib/typescript/src/hooks/proofs.d.ts.map +1 -1
- package/lib/typescript/src/hooks/screen-capture.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useOnboardingState.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePINValidation.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/localization/index.d.ts.map +1 -1
- package/lib/typescript/src/modules/history/ui/HistorySettings.d.ts +2 -3
- package/lib/typescript/src/modules/history/ui/HistorySettings.d.ts.map +1 -1
- package/lib/typescript/src/modules/openid/hooks/openid.d.ts.map +1 -1
- package/lib/typescript/src/modules/openid/offerResolve.d.ts.map +1 -1
- package/lib/typescript/src/modules/openid/resolverProof.d.ts.map +1 -1
- package/lib/typescript/src/modules/openid/utils/utils.d.ts.map +1 -1
- package/lib/typescript/src/navigators/ContactStack.d.ts.map +1 -1
- package/lib/typescript/src/navigators/DeliveryStack.d.ts.map +1 -1
- package/lib/typescript/src/navigators/MainStack.d.ts.map +1 -1
- package/lib/typescript/src/navigators/NotificationStack.d.ts.map +1 -1
- package/lib/typescript/src/navigators/OnboardingScreens.d.ts +10 -10
- package/lib/typescript/src/navigators/OnboardingScreens.d.ts.map +1 -1
- package/lib/typescript/src/navigators/defaultStackOptions.d.ts.map +1 -1
- package/lib/typescript/src/onboarding.d.ts.map +1 -1
- package/lib/typescript/src/screens/Chat.d.ts.map +1 -1
- package/lib/typescript/src/screens/ConfigureMediator.d.ts.map +1 -1
- package/lib/typescript/src/screens/CredentialDetails.d.ts +2 -2
- package/lib/typescript/src/screens/CredentialDetails.d.ts.map +1 -1
- package/lib/typescript/src/screens/JSONDetails.d.ts.map +1 -1
- package/lib/typescript/src/screens/OnboardingPages.d.ts.map +1 -1
- package/lib/typescript/src/screens/PINChange.d.ts +2 -3
- package/lib/typescript/src/screens/PINChange.d.ts.map +1 -1
- package/lib/typescript/src/screens/PINEnter.d.ts.map +1 -1
- package/lib/typescript/src/screens/PINVerify.d.ts.map +1 -1
- package/lib/typescript/src/screens/Terms.d.ts.map +1 -1
- package/lib/typescript/src/screens/ToggleBiometry.d.ts.map +1 -1
- package/lib/typescript/src/services/keychain.d.ts.map +1 -1
- package/lib/typescript/src/services/storage.d.ts.map +1 -1
- package/lib/typescript/src/types/navigators.d.ts +1 -0
- package/lib/typescript/src/types/navigators.d.ts.map +1 -1
- package/lib/typescript/src/types/state.d.ts +2 -1
- package/lib/typescript/src/types/state.d.ts.map +1 -1
- package/lib/typescript/src/utils/PINValidation.d.ts.map +1 -1
- package/lib/typescript/src/utils/agent.d.ts.map +1 -1
- package/lib/typescript/src/utils/anonCredsProofRequestMapper.d.ts.map +1 -1
- package/lib/typescript/src/utils/contacts.d.ts.map +1 -1
- package/lib/typescript/src/utils/credential.d.ts.map +1 -1
- package/lib/typescript/src/utils/crypto.d.ts.map +1 -1
- package/lib/typescript/src/utils/fileCache.d.ts.map +1 -1
- package/lib/typescript/src/utils/helpers.d.ts +1 -3
- package/lib/typescript/src/utils/helpers.d.ts.map +1 -1
- package/lib/typescript/src/utils/luminance.d.ts.map +1 -1
- package/lib/typescript/src/utils/mediatorhelpers.d.ts.map +1 -1
- package/lib/typescript/src/utils/migration.d.ts.map +1 -1
- package/lib/typescript/src/utils/network.d.ts.map +1 -1
- package/lib/typescript/src/utils/oca.d.ts.map +1 -1
- package/lib/typescript/src/utils/parsers.d.ts.map +1 -1
- package/lib/typescript/src/utils/proofBundle.d.ts.map +1 -1
- package/lib/typescript/src/utils/testable.d.ts.map +1 -1
- package/package.json +147 -148
- package/src/App.tsx +0 -2
- package/src/assets/oca-bundles.json +4 -4
- package/src/components/buttons/Button.tsx +24 -24
- package/src/components/inputs/PINInput.tsx +3 -1
- package/src/components/misc/CredentialCard11.tsx +40 -16
- package/src/components/modals/DeveloperModal.tsx +1 -2
- package/src/components/views/Banner.tsx +174 -0
- package/src/components/views/HeaderWithBanner.tsx +17 -0
- package/src/components/views/KeyboardView.tsx +23 -9
- package/src/container-api.ts +2 -0
- package/src/container-impl.ts +2 -0
- package/src/contexts/network.tsx +39 -1
- package/src/contexts/reducers/store.ts +30 -13
- package/src/contexts/store.tsx +1 -1
- package/src/index.ts +0 -2
- package/src/localization/en/en.json +3 -0
- package/src/localization/fr/fr.json +3 -1
- package/src/localization/pt-br/pt-br.json +3 -1
- package/src/modules/history/ui/HistorySettings.tsx +2 -3
- package/src/modules/openid/screens/OpenIDProofChangeCredential.tsx +1 -1
- package/src/navigators/ContactStack.tsx +0 -15
- package/src/navigators/DeliveryStack.tsx +0 -18
- package/src/navigators/MainStack.tsx +6 -3
- package/src/navigators/NotificationStack.tsx +0 -18
- package/src/navigators/OnboardingScreens.ts +10 -10
- package/src/navigators/defaultStackOptions.tsx +2 -0
- package/src/screens/Chat.tsx +29 -19
- package/src/screens/CredentialDetails.tsx +5 -2
- package/src/screens/PINChange.tsx +7 -5
- package/src/screens/PINEnter.tsx +6 -7
- package/src/screens/PINVerify.tsx +34 -32
- package/src/screens/Terms.tsx +3 -13
- package/src/screens/ToggleBiometry.tsx +1 -0
- package/src/services/logger.ts +8 -8
- package/src/types/navigators.ts +1 -0
- package/src/types/state.ts +3 -1
- package/lib/commonjs/components/network/NetInfo.js +0 -43
- package/lib/commonjs/components/network/NetInfo.js.map +0 -1
- package/lib/commonjs/hooks/onboarding.js +0 -23
- package/lib/commonjs/hooks/onboarding.js.map +0 -1
- package/lib/module/components/network/NetInfo.js +0 -36
- package/lib/module/components/network/NetInfo.js.map +0 -1
- package/lib/module/hooks/onboarding.js +0 -16
- package/lib/module/hooks/onboarding.js.map +0 -1
- package/lib/typescript/src/components/network/NetInfo.d.ts +0 -3
- package/lib/typescript/src/components/network/NetInfo.d.ts.map +0 -1
- package/lib/typescript/src/hooks/onboarding.d.ts +0 -2
- package/lib/typescript/src/hooks/onboarding.d.ts.map +0 -1
- package/src/components/network/NetInfo.tsx +0 -36
- 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.
|
|
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": "
|
|
35
|
-
"@babel/runtime": "
|
|
36
|
-
"@bifold/oca": "2.
|
|
37
|
-
"@bifold/verifier": "2.
|
|
38
|
-
"@commitlint/cli": "
|
|
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": "
|
|
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.
|
|
50
|
-
"@formatjs/intl-displaynames": "5.2.
|
|
51
|
-
"@formatjs/intl-getcanonicallocales": "1.7.3",
|
|
52
|
-
"@formatjs/intl-listformat": "6.3.
|
|
53
|
-
"@formatjs/intl-locale": "2.4.
|
|
54
|
-
"@formatjs/intl-numberformat": "7.2.
|
|
55
|
-
"@formatjs/intl-pluralrules": "4.1.
|
|
56
|
-
"@formatjs/intl-relativetimeformat": "9.3.
|
|
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": "
|
|
62
|
-
"@react-native-clipboard/clipboard": "
|
|
63
|
-
"@react-native-community/netinfo": "
|
|
64
|
-
"@react-native-masked-view/masked-view": "
|
|
65
|
-
"@react-native/babel-preset": "
|
|
66
|
-
"@react-native/eslint-config": "
|
|
67
|
-
"@react-native/eslint-plugin": "
|
|
68
|
-
"@react-navigation/bottom-tabs": "6.0.9",
|
|
69
|
-
"@react-navigation/core": "6.1.
|
|
70
|
-
"@react-navigation/devtools": "
|
|
71
|
-
"@react-navigation/native": "
|
|
72
|
-
"@react-navigation/stack": "
|
|
73
|
-
"@testing-library/jest-native": "
|
|
74
|
-
"@testing-library/react-native": "
|
|
75
|
-
"@types/jest": "
|
|
76
|
-
"@types/lodash.flatten": "
|
|
77
|
-
"@types/lodash.startcase": "
|
|
78
|
-
"@types/react": "
|
|
79
|
-
"@types/react-native-vector-icons": "
|
|
80
|
-
"@types/react-test-renderer": "
|
|
81
|
-
"@typescript-eslint/eslint-plugin": "
|
|
82
|
-
"@typescript-eslint/parser": "
|
|
83
|
-
"axios": "
|
|
84
|
-
"babel-jest": "
|
|
85
|
-
"babel-plugin-module-resolver": "
|
|
86
|
-
"base-64": "
|
|
87
|
-
"commitlint": "
|
|
88
|
-
"eslint": "
|
|
89
|
-
"eslint-import-resolver-typescript": "
|
|
90
|
-
"eslint-plugin-import": "
|
|
91
|
-
"eslint-plugin-prettier": "
|
|
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": "
|
|
95
|
-
"i18next": "
|
|
96
|
-
"install-peerdeps": "
|
|
97
|
-
"jest": "
|
|
98
|
-
"lodash.flatten": "
|
|
99
|
-
"lodash.startcase": "
|
|
100
|
-
"mockdate": "
|
|
101
|
-
"moment": "
|
|
102
|
-
"node-notifier": "
|
|
103
|
-
"
|
|
104
|
-
"
|
|
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.
|
|
108
|
-
"react-native": "
|
|
109
|
-
"react-native-animated-pagination-dots": "
|
|
110
|
-
"react-native-argon2": "
|
|
111
|
-
"react-native-bouncy-checkbox": "
|
|
112
|
-
"react-native-builder-bob": "
|
|
113
|
-
"react-native-collapsible": "
|
|
114
|
-
"react-native-config": "
|
|
115
|
-
"react-native-confirmation-code-field": "
|
|
116
|
-
"react-native-device-info": "
|
|
117
|
-
"react-native-encrypted-storage": "
|
|
118
|
-
"react-native-fs": "
|
|
119
|
-
"react-native-gesture-handler": "
|
|
120
|
-
"react-native-get-random-values": "
|
|
121
|
-
"react-native-gifted-chat": "2.4.
|
|
122
|
-
"react-native-keychain": "
|
|
123
|
-
"react-native-localize": "
|
|
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": "
|
|
126
|
-
"react-native-permissions": "
|
|
127
|
-
"react-native-qrcode-svg": "6.2.0",
|
|
128
|
-
"react-native-safe-area-context": "
|
|
129
|
-
"react-native-scalable-image": "
|
|
130
|
-
"react-native-screenguard": "
|
|
131
|
-
"react-native-screens": "
|
|
132
|
-
"react-native-splash-screen": "
|
|
133
|
-
"react-native-svg": "
|
|
134
|
-
"react-native-svg-transformer": "
|
|
135
|
-
"react-native-tcp-socket": "
|
|
136
|
-
"react-native-toast-message": "
|
|
137
|
-
"react-native-uuid": "
|
|
138
|
-
"react-native-vector-icons": "
|
|
139
|
-
"react-native-vision-camera": "4.3.
|
|
140
|
-
"react-test-renderer": "
|
|
141
|
-
"rimraf": "
|
|
142
|
-
"tsyringe": "
|
|
143
|
-
"typescript": "
|
|
144
|
-
"uuid": "
|
|
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": "
|
|
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.
|
|
158
|
-
"@formatjs/intl-displaynames": "5.2.
|
|
159
|
-
"@formatjs/intl-getcanonicallocales": "1.7.3",
|
|
160
|
-
"@formatjs/intl-listformat": "6.3.
|
|
161
|
-
"@formatjs/intl-locale": "2.4.
|
|
162
|
-
"@formatjs/intl-numberformat": "7.2.
|
|
163
|
-
"@formatjs/intl-pluralrules": "4.1.
|
|
164
|
-
"@formatjs/intl-relativetimeformat": "9.3.
|
|
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": "
|
|
170
|
-
"@react-native-clipboard/clipboard": "
|
|
171
|
-
"@react-native-community/netinfo": "
|
|
172
|
-
"@react-native-masked-view/masked-view": "
|
|
173
|
-
"@react-navigation/bottom-tabs": "6.0.9",
|
|
174
|
-
"@react-navigation/core": "6.1.0",
|
|
175
|
-
"@react-navigation/devtools": "
|
|
176
|
-
"@react-navigation/native": "
|
|
177
|
-
"@react-navigation/stack": "
|
|
178
|
-
"axios": "
|
|
179
|
-
"base-64": "
|
|
180
|
-
"i18next": "
|
|
181
|
-
"lodash.flatten": "
|
|
182
|
-
"lodash.startcase": "
|
|
183
|
-
"moment": "
|
|
184
|
-
"query-string": "
|
|
185
|
-
"react": "
|
|
186
|
-
"react-i18next": "11.
|
|
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": "
|
|
189
|
-
"react-native-argon2": "
|
|
190
|
-
"react-native-bouncy-checkbox": "
|
|
191
|
-
"react-native-collapsible": "
|
|
192
|
-
"react-native-config": "
|
|
193
|
-
"react-native-confirmation-code-field": "
|
|
194
|
-
"react-native-device-info": "
|
|
195
|
-
"react-native-encrypted-storage": "
|
|
196
|
-
"react-native-fs": "
|
|
197
|
-
"react-native-gesture-handler": "
|
|
198
|
-
"react-native-get-random-values": "
|
|
199
|
-
"react-native-gifted-chat": "2.4.
|
|
200
|
-
"react-native-keychain": "
|
|
201
|
-
"react-native-localize": "
|
|
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": "
|
|
205
|
-
"react-native-qrcode-svg": "6.2.0",
|
|
206
|
-
"react-native-safe-area-context": "
|
|
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": "
|
|
209
|
-
"react-native-splash-screen": "
|
|
210
|
-
"react-native-svg": "
|
|
211
|
-
"react-native-tcp-socket": "
|
|
212
|
-
"react-native-toast-message": "
|
|
213
|
-
"react-native-uuid": "
|
|
214
|
-
"react-native-vector-icons": "
|
|
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": "
|
|
217
|
-
"uuid": "
|
|
215
|
+
"tsyringe": "~4.8.0",
|
|
216
|
+
"uuid": "~9.0.1"
|
|
218
217
|
},
|
|
219
218
|
"installConfig": {
|
|
220
219
|
"hoistingLimits": "workspaces"
|
package/src/App.tsx
CHANGED
|
@@ -8,7 +8,6 @@ import { isTablet } from 'react-native-device-info'
|
|
|
8
8
|
import Orientation from 'react-native-orientation-locker'
|
|
9
9
|
import { animatedComponents } from './animated-components'
|
|
10
10
|
import ErrorModal from './components/modals/ErrorModal'
|
|
11
|
-
import NetInfo from './components/network/NetInfo'
|
|
12
11
|
import toastConfig from './components/toast/ToastConfig'
|
|
13
12
|
import { tours } from './constants'
|
|
14
13
|
import { Container, ContainerProvider } from './container-api'
|
|
@@ -55,7 +54,6 @@ const createApp = (container: Container): React.FC => {
|
|
|
55
54
|
backgroundColor={bifoldTheme.ColorPallet.brand.primary}
|
|
56
55
|
translucent={false}
|
|
57
56
|
/>
|
|
58
|
-
<NetInfo />
|
|
59
57
|
<ErrorModal />
|
|
60
58
|
<TourProvider tours={tours} overlayColor={'gray'} overlayOpacity={0.7}>
|
|
61
59
|
<RootStack />
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"description": "",
|
|
22
22
|
"issuer": "",
|
|
23
23
|
"issuer_description": "",
|
|
24
|
-
"issuer_url": ""
|
|
24
|
+
"issuer_url": "http://example.com/issue"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"capture_base": "EfeQBz5tyC0gett-ETgkg4pkxBwwuQoeYsT-9Nt0cNsc",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"description": "",
|
|
34
34
|
"issuer": "",
|
|
35
35
|
"issuer_description": "",
|
|
36
|
-
"issuer_url": ""
|
|
36
|
+
"issuer_url": "http://example.com/issue"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"capture_base": "EfeQBz5tyC0gett-ETgkg4pkxBwwuQoeYsT-9Nt0cNsc",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"description": "",
|
|
89
89
|
"issuer": "",
|
|
90
90
|
"issuer_description": "",
|
|
91
|
-
"issuer_url": ""
|
|
91
|
+
"issuer_url": "http://example.com/issue"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"capture_base": "EfeQBz5tyC0gett-ETgkg4pkxBwwuQoeYsT-9Nt0cNsc",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"description": "",
|
|
101
101
|
"issuer": "",
|
|
102
102
|
"issuer_description": "",
|
|
103
|
-
"issuer_url": ""
|
|
103
|
+
"issuer_url": "http://example.com/issue"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"capture_base": "EfeQBz5tyC0gett-ETgkg4pkxBwwuQoeYsT-9Nt0cNsc",
|
|
@@ -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)
|
|
@@ -21,10 +21,11 @@ interface PINInputProps {
|
|
|
21
21
|
accessibilityLabel?: string
|
|
22
22
|
autoFocus?: boolean
|
|
23
23
|
inlineMessage?: InlineMessageProps
|
|
24
|
+
onSubmitEditing?: () => void
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
const PINInputComponent = (
|
|
27
|
-
{ label, onPINChanged, testID, accessibilityLabel, autoFocus = false, inlineMessage }: PINInputProps,
|
|
28
|
+
{ label, onPINChanged, testID, accessibilityLabel, autoFocus = false, inlineMessage, onSubmitEditing }: PINInputProps,
|
|
28
29
|
ref: Ref<TextInput>
|
|
29
30
|
) => {
|
|
30
31
|
const [PIN, setPIN] = useState('')
|
|
@@ -127,6 +128,7 @@ const PINInputComponent = (
|
|
|
127
128
|
}}
|
|
128
129
|
autoFocus={autoFocus}
|
|
129
130
|
ref={ref}
|
|
131
|
+
onSubmitEditing={onSubmitEditing}
|
|
130
132
|
/>
|
|
131
133
|
</View>
|
|
132
134
|
<TouchableOpacity
|
|
@@ -220,9 +220,9 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
220
220
|
bundleResolver.resolveAllBundles(params).then((bundle: any) => {
|
|
221
221
|
if (proof) {
|
|
222
222
|
setFlaggedAttributes((bundle as any).bundle.bundle.flaggedAttributes.map((attr: any) => attr.name))
|
|
223
|
-
const
|
|
224
|
-
(bundle as any).bundle.bundle.metadata.
|
|
225
|
-
Object.values((bundle as any).bundle.bundle.metadata.
|
|
223
|
+
const issuerUrl =
|
|
224
|
+
(bundle as any).bundle.bundle.metadata.issuerUrl[params.language] ??
|
|
225
|
+
Object.values((bundle as any).bundle.bundle.metadata.issuerUrl)?.[0]
|
|
226
226
|
|
|
227
227
|
// Check if there is a help action override for this credential
|
|
228
228
|
const override = credHelpActionOverrides?.find(
|
|
@@ -234,9 +234,9 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
234
234
|
setHelpAction(() => () => {
|
|
235
235
|
override.action(navigation)
|
|
236
236
|
})
|
|
237
|
-
} else if (
|
|
237
|
+
} else if (issuerUrl) {
|
|
238
238
|
setHelpAction(() => () => {
|
|
239
|
-
Linking.openURL(
|
|
239
|
+
Linking.openURL(issuerUrl)
|
|
240
240
|
})
|
|
241
241
|
}
|
|
242
242
|
}
|
|
@@ -490,30 +490,55 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
490
490
|
)
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
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()
|
|
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
|
|
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
|
{
|
|
@@ -12,7 +12,7 @@ interface DeveloperModalProps {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
const DeveloperModal: React.FC<DeveloperModalProps> = ({ onBackPressed }) => {
|
|
15
|
-
const { NavigationTheme
|
|
15
|
+
const { NavigationTheme } = useTheme()
|
|
16
16
|
const [Developer] = useServices([TOKENS.SCREEN_DEVELOPER])
|
|
17
17
|
const { t } = useTranslation()
|
|
18
18
|
|
|
@@ -25,7 +25,6 @@ const DeveloperModal: React.FC<DeveloperModalProps> = ({ onBackPressed }) => {
|
|
|
25
25
|
<FauxHeader title={t('Screens.Developer')} onBackPressed={onBackPressed} />
|
|
26
26
|
<Developer />
|
|
27
27
|
</SafeAreaView>
|
|
28
|
-
<SafeAreaView edges={['bottom']} style={{ backgroundColor: ColorPallet.brand.primaryBackground }} />
|
|
29
28
|
</SafeAreaModal>
|
|
30
29
|
)
|
|
31
30
|
}
|