@bifold/core 2.10.1 → 2.10.2
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/animated-components.js +2 -0
- package/lib/commonjs/animated-components.js.map +1 -1
- package/lib/commonjs/components/animated/ButtonLoading.js +6 -32
- package/lib/commonjs/components/animated/ButtonLoading.js.map +1 -1
- package/lib/commonjs/components/animated/LoadingSpinner.js +44 -0
- package/lib/commonjs/components/animated/LoadingSpinner.js.map +1 -0
- package/lib/commonjs/components/inputs/PINInput.js +15 -8
- package/lib/commonjs/components/inputs/PINInput.js.map +1 -1
- package/lib/commonjs/components/modals/ConfirmPINModal.js +4 -3
- package/lib/commonjs/components/modals/ConfirmPINModal.js.map +1 -1
- package/lib/commonjs/localization/en/en.json +10 -0
- package/lib/commonjs/localization/fr/fr.json +9 -0
- package/lib/commonjs/localization/pt-br/pt-br.json +9 -0
- package/lib/commonjs/modules/openid/components/OpenIDUnsatisfiedProofRequest.js +71 -0
- package/lib/commonjs/modules/openid/components/OpenIDUnsatisfiedProofRequest.js.map +1 -0
- package/lib/commonjs/modules/openid/screens/OpenIDProofPresentation.js +25 -7
- package/lib/commonjs/modules/openid/screens/OpenIDProofPresentation.js.map +1 -1
- package/lib/commonjs/screens/PINCreate.js +5 -1
- package/lib/commonjs/screens/PINCreate.js.map +1 -1
- package/lib/commonjs/screens/PINEnter.js +5 -3
- package/lib/commonjs/screens/PINEnter.js.map +1 -1
- package/lib/commonjs/screens/PINVerify.js +12 -1
- package/lib/commonjs/screens/PINVerify.js.map +1 -1
- package/lib/module/animated-components.js +2 -0
- package/lib/module/animated-components.js.map +1 -1
- package/lib/module/components/animated/ButtonLoading.js +6 -31
- package/lib/module/components/animated/ButtonLoading.js.map +1 -1
- package/lib/module/components/animated/LoadingSpinner.js +36 -0
- package/lib/module/components/animated/LoadingSpinner.js.map +1 -0
- package/lib/module/components/inputs/PINInput.js +16 -9
- package/lib/module/components/inputs/PINInput.js.map +1 -1
- package/lib/module/components/modals/ConfirmPINModal.js +4 -3
- package/lib/module/components/modals/ConfirmPINModal.js.map +1 -1
- package/lib/module/localization/en/en.json +10 -0
- package/lib/module/localization/fr/fr.json +9 -0
- package/lib/module/localization/pt-br/pt-br.json +9 -0
- package/lib/module/modules/openid/components/OpenIDUnsatisfiedProofRequest.js +63 -0
- package/lib/module/modules/openid/components/OpenIDUnsatisfiedProofRequest.js.map +1 -0
- package/lib/module/modules/openid/screens/OpenIDProofPresentation.js +25 -7
- package/lib/module/modules/openid/screens/OpenIDProofPresentation.js.map +1 -1
- package/lib/module/screens/PINCreate.js +5 -1
- package/lib/module/screens/PINCreate.js.map +1 -1
- package/lib/module/screens/PINEnter.js +5 -3
- package/lib/module/screens/PINEnter.js.map +1 -1
- package/lib/module/screens/PINVerify.js +12 -1
- package/lib/module/screens/PINVerify.js.map +1 -1
- package/lib/typescript/src/animated-components.d.ts +3 -2
- package/lib/typescript/src/animated-components.d.ts.map +1 -1
- package/lib/typescript/src/components/animated/ButtonLoading.d.ts +1 -4
- package/lib/typescript/src/components/animated/ButtonLoading.d.ts.map +1 -1
- package/lib/typescript/src/components/animated/LoadingSpinner.d.ts +8 -0
- package/lib/typescript/src/components/animated/LoadingSpinner.d.ts.map +1 -0
- package/lib/typescript/src/components/inputs/PINInput.d.ts.map +1 -1
- package/lib/typescript/src/modules/openid/components/OpenIDUnsatisfiedProofRequest.d.ts +9 -0
- package/lib/typescript/src/modules/openid/components/OpenIDUnsatisfiedProofRequest.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/screens/OpenIDProofPresentation.d.ts.map +1 -1
- package/lib/typescript/src/screens/PINCreate.d.ts.map +1 -1
- package/lib/typescript/src/screens/PINVerify.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -9,6 +9,7 @@ var _ConnectionLoading = _interopRequireDefault(require("./components/animated/C
|
|
|
9
9
|
var _CredentialAdded = _interopRequireDefault(require("./components/animated/CredentialAdded"));
|
|
10
10
|
var _CredentialPending = _interopRequireDefault(require("./components/animated/CredentialPending"));
|
|
11
11
|
var _LoadingIndicator = _interopRequireDefault(require("./components/animated/LoadingIndicator"));
|
|
12
|
+
var _LoadingSpinner = _interopRequireDefault(require("./components/animated/LoadingSpinner"));
|
|
12
13
|
var _RecordLoading = _interopRequireDefault(require("./components/animated/RecordLoading"));
|
|
13
14
|
var _SendingProof = _interopRequireDefault(require("./components/animated/SendingProof"));
|
|
14
15
|
var _SentProof = _interopRequireDefault(require("./components/animated/SentProof"));
|
|
@@ -19,6 +20,7 @@ const animatedComponents = exports.animatedComponents = {
|
|
|
19
20
|
CredentialAdded: _CredentialAdded.default,
|
|
20
21
|
CredentialPending: _CredentialPending.default,
|
|
21
22
|
LoadingIndicator: _LoadingIndicator.default,
|
|
23
|
+
LoadingSpinner: _LoadingSpinner.default,
|
|
22
24
|
RecordLoading: _RecordLoading.default,
|
|
23
25
|
SendingProof: _SendingProof.default,
|
|
24
26
|
SentProof: _SentProof.default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_ButtonLoading","_interopRequireDefault","require","_ConnectionLoading","_CredentialAdded","_CredentialPending","_LoadingIndicator","_RecordLoading","_SendingProof","_SentProof","e","__esModule","default","animatedComponents","exports","ButtonLoading","ConnectionLoading","CredentialAdded","CredentialPending","LoadingIndicator","RecordLoading","SendingProof","SentProof"],"sourceRoot":"../../src","sources":["animated-components.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,gBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,kBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,iBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,
|
|
1
|
+
{"version":3,"names":["_ButtonLoading","_interopRequireDefault","require","_ConnectionLoading","_CredentialAdded","_CredentialPending","_LoadingIndicator","_LoadingSpinner","_RecordLoading","_SendingProof","_SentProof","e","__esModule","default","animatedComponents","exports","ButtonLoading","ConnectionLoading","CredentialAdded","CredentialPending","LoadingIndicator","LoadingSpinner","RecordLoading","SendingProof","SentProof"],"sourceRoot":"../../src","sources":["animated-components.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,gBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,kBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,iBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,eAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,cAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,aAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,UAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAuD,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAchD,MAAMG,kBAAsC,GAAAC,OAAA,CAAAD,kBAAA,GAAG;EACpDE,aAAa,EAAEA,sBAAa;EAC5BC,iBAAiB,EAAEA,0BAAiB;EACpCC,eAAe,EAAEA,wBAAe;EAChCC,iBAAiB,EAAEA,0BAAiB;EACpCC,gBAAgB,EAAEA,yBAAgB;EAClCC,cAAc,EAAEA,uBAAc;EAC9BC,aAAa,EAAEA,sBAAa;EAC5BC,YAAY,EAAEA,qBAAY;EAC1BC,SAAS,EAAEA;AACb,CAAC","ignoreList":[]}
|
|
@@ -4,44 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
8
|
-
var
|
|
9
|
-
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _LoadingSpinner = _interopRequireDefault(require("./LoadingSpinner"));
|
|
10
9
|
var _theme = require("../../contexts/theme");
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
const timing = {
|
|
14
|
-
toValue: 1,
|
|
15
|
-
duration: 2000,
|
|
16
|
-
useNativeDriver: true
|
|
17
|
-
};
|
|
18
|
-
const ButtonLoading = ({
|
|
19
|
-
size = 25
|
|
20
|
-
}) => {
|
|
11
|
+
const ButtonLoading = () => {
|
|
21
12
|
const {
|
|
22
13
|
ColorPalette
|
|
23
14
|
} = (0, _theme.useTheme)();
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
outputRange: ['0deg', '360deg']
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_LoadingSpinner.default, {
|
|
16
|
+
size: 25,
|
|
17
|
+
color: ColorPalette.brand.icon
|
|
28
18
|
});
|
|
29
|
-
(0, _react.useEffect)(() => {
|
|
30
|
-
_reactNative.Animated.loop(_reactNative.Animated.timing(rotationAnim.current, timing)).start();
|
|
31
|
-
}, []);
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
33
|
-
style: {
|
|
34
|
-
transform: [{
|
|
35
|
-
rotate: rotation
|
|
36
|
-
}]
|
|
37
|
-
}
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
39
|
-
style: {
|
|
40
|
-
color: ColorPalette.brand.icon
|
|
41
|
-
},
|
|
42
|
-
size: size,
|
|
43
|
-
name: "refresh"
|
|
44
|
-
}));
|
|
45
19
|
};
|
|
46
20
|
var _default = exports.default = ButtonLoading;
|
|
47
21
|
//# sourceMappingURL=ButtonLoading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_LoadingSpinner","_theme","e","__esModule","default","ButtonLoading","ColorPalette","useTheme","createElement","size","color","brand","icon","_default","exports"],"sourceRoot":"../../../../src","sources":["components/animated/ButtonLoading.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAA+C,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/C,MAAMG,aAAuB,GAAGA,CAAA,KAAM;EACpC,MAAM;IAAEC;EAAa,CAAC,GAAG,IAAAC,eAAQ,EAAC,CAAC;EAEnC,oBACEV,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAACR,eAAA,CAAAI,OAAc;IAACK,IAAI,EAAE,EAAG;IAACC,KAAK,EAAEJ,YAAY,CAACK,KAAK,CAACC;EAAK,CAAE,CAAC;AAEhE,CAAC;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAV,OAAA,GAEcC,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
+
const timing = {
|
|
13
|
+
toValue: 1,
|
|
14
|
+
duration: 2000,
|
|
15
|
+
useNativeDriver: true
|
|
16
|
+
};
|
|
17
|
+
const LoadingSpinner = ({
|
|
18
|
+
size = 25,
|
|
19
|
+
color
|
|
20
|
+
}) => {
|
|
21
|
+
const rotationAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0));
|
|
22
|
+
const rotation = rotationAnim.current.interpolate({
|
|
23
|
+
inputRange: [0, 1],
|
|
24
|
+
outputRange: ['0deg', '360deg']
|
|
25
|
+
});
|
|
26
|
+
(0, _react.useEffect)(() => {
|
|
27
|
+
_reactNative.Animated.loop(_reactNative.Animated.timing(rotationAnim.current, timing)).start();
|
|
28
|
+
}, []);
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
30
|
+
style: {
|
|
31
|
+
transform: [{
|
|
32
|
+
rotate: rotation
|
|
33
|
+
}]
|
|
34
|
+
}
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
36
|
+
style: {
|
|
37
|
+
color
|
|
38
|
+
},
|
|
39
|
+
size: size,
|
|
40
|
+
name: "refresh"
|
|
41
|
+
}));
|
|
42
|
+
};
|
|
43
|
+
var _default = exports.default = LoadingSpinner;
|
|
44
|
+
//# sourceMappingURL=LoadingSpinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_MaterialIcons","_interopRequireDefault","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","timing","toValue","duration","useNativeDriver","LoadingSpinner","size","color","rotationAnim","useRef","Animated","Value","rotation","current","interpolate","inputRange","outputRange","useEffect","loop","start","createElement","View","style","transform","rotate","name","_default","exports"],"sourceRoot":"../../../../src","sources":["components/animated/LoadingSpinner.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAC,sBAAA,CAAAH,OAAA;AAA0D,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAK,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CAAA,gBAAAN,CAAA,IAAAH,CAAA,gBAAAG,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAG,CAAA,OAAAK,CAAA,IAAAD,CAAA,GAAAS,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAG,CAAA,OAAAK,CAAA,CAAAI,GAAA,IAAAJ,CAAA,CAAAK,GAAA,IAAAN,CAAA,CAA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]}
|
|
@@ -51,15 +51,12 @@ const PINInputComponent = ({
|
|
|
51
51
|
// filling with bullets when masked to prevent screen reader from reading the actual PIN
|
|
52
52
|
// and to have the proper appearance when the PIN is masked
|
|
53
53
|
const displayValue = (0, _react.useMemo)(() => {
|
|
54
|
-
const trailingPINLength = PIN.length === 0 ? 0 : PIN.length - 1;
|
|
55
54
|
if (showPIN) {
|
|
56
|
-
return
|
|
55
|
+
return PIN.split('').join(' ');
|
|
57
56
|
} else {
|
|
58
|
-
return
|
|
57
|
+
return '●'.repeat(PIN.length).split('').join(' ');
|
|
59
58
|
}
|
|
60
|
-
}, [PIN, showPIN
|
|
61
|
-
//
|
|
62
|
-
|
|
59
|
+
}, [PIN, showPIN]);
|
|
63
60
|
const onChangeText = (0, _react.useCallback)(value => {
|
|
64
61
|
const cleanValue = value.replaceAll(' ', '');
|
|
65
62
|
// typed new characters
|
|
@@ -114,7 +111,7 @@ const PINInputComponent = ({
|
|
|
114
111
|
accessibilityLabel: allyLabel,
|
|
115
112
|
accessibilityRole: 'text',
|
|
116
113
|
accessible: true,
|
|
117
|
-
value: displayValue,
|
|
114
|
+
value: PINScreensConfig.useNewPINDesign ? PIN : displayValue,
|
|
118
115
|
rootStyle: theme.codeFieldRoot,
|
|
119
116
|
onChangeText: onChangeText,
|
|
120
117
|
cellCount: PINScreensConfig.useNewPINDesign ? separatedPINCellCount : cellCount,
|
|
@@ -128,7 +125,17 @@ const PINInputComponent = ({
|
|
|
128
125
|
let child = '';
|
|
129
126
|
// skip spaces
|
|
130
127
|
if (symbol && symbol !== ' ') {
|
|
131
|
-
|
|
128
|
+
if (PINScreensConfig.useNewPINDesign) {
|
|
129
|
+
child = showPIN ? symbol : /*#__PURE__*/_react.default.createElement(_reactNativeConfirmationCodeField.MaskSymbol, {
|
|
130
|
+
maskSymbol: "\u25CF",
|
|
131
|
+
isLastFilledCell: (0, _reactNativeConfirmationCodeField.isLastFilledCell)({
|
|
132
|
+
index,
|
|
133
|
+
value: displayValue
|
|
134
|
+
})
|
|
135
|
+
}, symbol);
|
|
136
|
+
} else {
|
|
137
|
+
child = symbol;
|
|
138
|
+
}
|
|
132
139
|
} else if (isFocused) {
|
|
133
140
|
child = /*#__PURE__*/_react.default.createElement(_reactNativeConfirmationCodeField.Cursor, null);
|
|
134
141
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactI18next","_reactNative","_reactNativeConfirmationCodeField","_MaterialIcons","_interopRequireDefault","_constants","_containerApi","_theme","_error","_testable","_ThemedText","_InlineErrorText","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","cellCount","minPINLength","separatedPINCellCount","PINInputComponent","label","onPINChanged","testID","accessibilityLabel","autoFocus","inlineMessage","onSubmitEditing","ref","PINScreensConfig","useServices","TOKENS","CONFIG","PINInputTheme","SeparatedPINInputTheme","ColorPalette","useTheme","theme","useNewPINDesign","PIN","setPIN","useState","showPIN","setShowPIN","useTranslation","cellHeight","displayValue","useMemo","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactI18next","_reactNative","_reactNativeConfirmationCodeField","_MaterialIcons","_interopRequireDefault","_constants","_containerApi","_theme","_error","_testable","_ThemedText","_InlineErrorText","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","cellCount","minPINLength","separatedPINCellCount","PINInputComponent","label","onPINChanged","testID","accessibilityLabel","autoFocus","inlineMessage","onSubmitEditing","ref","PINScreensConfig","useServices","TOKENS","CONFIG","PINInputTheme","SeparatedPINInputTheme","ColorPalette","useTheme","theme","useNewPINDesign","PIN","setPIN","useState","showPIN","setShowPIN","useTranslation","cellHeight","displayValue","useMemo","split","join","repeat","onChangeText","useCallback","value","cleanValue","replaceAll","newChars","slice","newPIN","replace","props","getCellOnLayoutHandler","useClearByFocusCell","setValue","allyLabel","style","StyleSheet","create","container","flexDirection","marginBottom","codeFieldContainer","flex","cell","borderColor","semantic","error","cellText","color","textAlign","lineHeight","hideIcon","paddingLeft","content","createElement","View","labelAndFieldContainer","CodeField","accessibilityRole","accessible","rootStyle","codeFieldRoot","keyboardType","textContentType","renderCell","index","symbol","isFocused","child","MaskSymbol","maskSymbol","isLastFilledCell","Cursor","key","onLayout","ThemedText","variant","maxFontSizeMultiplier","_e$nativeEvent","nativeEvent","text","TouchableOpacity","testIdWithKey","onPress","hitSlop","left","icon","name","size","config","position","InlineErrorPosition","Above","message","inlineType","Below","PINInput","forwardRef","_default","exports"],"sourceRoot":"../../../../src","sources":["components/inputs/PINInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,iCAAA,GAAAH,OAAA;AAOA,IAAAI,cAAA,GAAAC,sBAAA,CAAAL,OAAA;AAEA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AACA,IAAAW,WAAA,GAAAX,OAAA;AACA,IAAAY,gBAAA,GAAAP,sBAAA,CAAAL,OAAA;AAAuE,SAAAK,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAd,wBAAAc,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAlB,uBAAA,YAAAA,CAAAc,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,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,CAACC,KAAK,gBAC3DjJ,MAAA,CAAAiB,OAAA,CAAA0F,aAAA,CAAC7F,gBAAA,CAAAG,OAAe;IACdiI,OAAO,EAAEjG,aAAa,CAACiG,OAAQ;IAC/BC,UAAU,EAAElG,aAAa,CAACkG,UAAW;IACrCL,MAAM,EAAE7F,aAAa,CAAC6F;EAAO,CAC9B,CAAC,GACA,IAAI,EACPpC,OAAO,CAAC,CAAC,EACT,CAAAzD,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAE6F,MAAM,CAACC,QAAQ,MAAKC,0BAAmB,CAACI,KAAK,gBAC3DpJ,MAAA,CAAAiB,OAAA,CAAA0F,aAAA,CAAC7F,gBAAA,CAAAG,OAAe;IACdiI,OAAO,EAAEjG,aAAa,CAACiG,OAAQ;IAC/BC,UAAU,EAAElG,aAAa,CAACkG,UAAW;IACrCL,MAAM,EAAE7F,aAAa,CAAC6F;EAAO,CAC9B,CAAC,GACA,IACA,CAAC;AAEX,CAAC;AAED,MAAMO,QAAQ,gBAAG,IAAAC,iBAAU,EAA2B3G,iBAAiB,CAAC;AAAA,IAAA4G,QAAA,GAAAC,OAAA,CAAAvI,OAAA,GAEzDoI,QAAQ","ignoreList":[]}
|
|
@@ -53,7 +53,7 @@ const ConfirmPINModal = ({
|
|
|
53
53
|
modalState
|
|
54
54
|
} = (0, _usePINValidation.usePINValidation)(PINOne, PINTwo);
|
|
55
55
|
const {
|
|
56
|
-
|
|
56
|
+
LoadingSpinner
|
|
57
57
|
} = (0, _animatedComponents.useAnimatedComponents)();
|
|
58
58
|
const style = _reactNative.StyleSheet.create({
|
|
59
59
|
container: {
|
|
@@ -107,8 +107,9 @@ const ConfirmPINModal = ({
|
|
|
107
107
|
inlineMessage: errorMessage
|
|
108
108
|
}), isLoading && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
109
109
|
style: style.loadingContainer
|
|
110
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
111
|
-
size: 50
|
|
110
|
+
}, /*#__PURE__*/_react.default.createElement(LoadingSpinner, {
|
|
111
|
+
size: 50,
|
|
112
|
+
color: ColorPalette.brand.primary
|
|
112
113
|
})), modalState.visible && /*#__PURE__*/_react.default.createElement(_AlertModal.default, {
|
|
113
114
|
title: modalState.title,
|
|
114
115
|
message: modalState.message,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeSafeAreaContext","_reactI18next","_KeyboardView","_interopRequireDefault","_FauxHeader","_SafeAreaModal","_AlertModal","_PINScreenTitleText","_PINInput","_screenCapture","_animatedComponents","_usePINValidation","_theme","_containerApi","_testable","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ConfirmPINModalUsage","exports","ConfirmPINModal","errorMessage","modalUsage","PIN_CREATE","onBackPressed","onConfirmPIN","PINOne","title","visible","isLoading","ColorPalette","NavigationTheme","useTheme","PINTwo","setPINTwo","useState","useTranslation","PINHeader","preventScreenCapture","useServices","TOKENS","COMPONENT_PIN_HEADER","CONFIG","usePreventScreenCapture","modalState","usePINValidation","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeSafeAreaContext","_reactI18next","_KeyboardView","_interopRequireDefault","_FauxHeader","_SafeAreaModal","_AlertModal","_PINScreenTitleText","_PINInput","_screenCapture","_animatedComponents","_usePINValidation","_theme","_containerApi","_testable","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ConfirmPINModalUsage","exports","ConfirmPINModal","errorMessage","modalUsage","PIN_CREATE","onBackPressed","onConfirmPIN","PINOne","title","visible","isLoading","ColorPalette","NavigationTheme","useTheme","PINTwo","setPINTwo","useState","useTranslation","PINHeader","preventScreenCapture","useServices","TOKENS","COMPONENT_PIN_HEADER","CONFIG","usePreventScreenCapture","modalState","usePINValidation","LoadingSpinner","useAnimatedComponents","style","StyleSheet","create","container","flex","padding","backgroundColor","brand","primaryBackground","loadingContainer","justifyContent","alignItems","createElement","transparent","animationType","presentationStyle","statusBarTranslucent","SafeAreaView","edges","colors","primary","showBackButton","keyboardAvoiding","View","header","subheader","label","onPINChanged","userPinInput","length","Keyboard","dismiss","testID","testIdWithKey","accessibilityLabel","autoFocus","inlineMessage","size","color","message","submit","onModalDismiss","_default"],"sourceRoot":"../../../../src","sources":["components/modals/ConfirmPINModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,2BAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAEA,IAAAI,aAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,WAAA,GAAAD,sBAAA,CAAAL,OAAA;AACA,IAAAO,cAAA,GAAAF,sBAAA,CAAAL,OAAA;AACA,IAAAQ,WAAA,GAAAH,sBAAA,CAAAL,OAAA;AACA,IAAAS,mBAAA,GAAAJ,sBAAA,CAAAL,OAAA;AAEA,IAAAU,SAAA,GAAAL,sBAAA,CAAAL,OAAA;AACA,IAAAW,cAAA,GAAAN,sBAAA,CAAAL,OAAA;AACA,IAAAY,mBAAA,GAAAZ,OAAA;AACA,IAAAa,iBAAA,GAAAb,OAAA;AACA,IAAAc,MAAA,GAAAd,OAAA;AACA,IAAAe,aAAA,GAAAf,OAAA;AACA,IAAAgB,SAAA,GAAAhB,OAAA;AAAoD,SAAAK,uBAAAY,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAlB,wBAAAkB,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAtB,uBAAA,YAAAA,CAAAkB,CAAA,EAAAG,CAAA,SAAAA,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AoB,CAAE;IAC5CiF,SAAS,EAAE,KAAM;IACjBC,aAAa,EAAE/D;EAAa,CAC7B,CAAC,EACDQ,SAAS,iBACRjD,MAAA,CAAAqB,OAAA,CAAA2D,aAAA,CAAC7E,YAAA,CAAAwF,IAAI;IAACvB,KAAK,EAAEA,KAAK,CAACS;EAAiB,gBAClC7E,MAAA,CAAAqB,OAAA,CAAA2D,aAAA,CAACd,cAAc;IAACuC,IAAI,EAAE,EAAG;IAACC,KAAK,EAAExD,YAAY,CAACyB,KAAK,CAACa;EAAQ,CAAC,CACzD,CACP,EACAxB,UAAU,CAAChB,OAAO,iBACjBhD,MAAA,CAAAqB,OAAA,CAAA2D,aAAA,CAACtE,WAAA,CAAAW,OAAU;IAAC0B,KAAK,EAAEiB,UAAU,CAACjB,KAAM;IAAC4D,OAAO,EAAE3C,UAAU,CAAC2C,OAAQ;IAACC,MAAM,EAAE5C,UAAU,CAAC6C;EAAe,CAAE,CAEpG,CACM,CACD,CAAC;AAEpB,CAAC;AAAA,IAAAC,QAAA,GAAAvE,OAAA,CAAAlB,OAAA,GAEcmB,eAAe","ignoreList":[]}
|
|
@@ -750,6 +750,15 @@
|
|
|
750
750
|
"ProofRequestErrorMessage": "Something went wrong with the proof request.",
|
|
751
751
|
"PleaseAddress": " Please address them before continuing."
|
|
752
752
|
},
|
|
753
|
+
"UnsatisfiedProofRequest": {
|
|
754
|
+
"Title": "Information Request",
|
|
755
|
+
"InfoBox": {
|
|
756
|
+
"Title": "You do not have a card for this request",
|
|
757
|
+
"Subtitle": "Check with {{verifierName}} for accepted cards."
|
|
758
|
+
},
|
|
759
|
+
"VerifierDetail": "Received an information request from: ",
|
|
760
|
+
"RequestPurpose": " • {{requestPurpose}}"
|
|
761
|
+
},
|
|
753
762
|
"Settings": {
|
|
754
763
|
"Version": "Version",
|
|
755
764
|
"VersionString": "0.0.0-0",
|
|
@@ -829,6 +838,7 @@
|
|
|
829
838
|
"CredentialOffer": "Credential Offer",
|
|
830
839
|
"ProofChangeCredential": "Choose a credential",
|
|
831
840
|
"ProofRequest": "Proof Request",
|
|
841
|
+
"UnsatisfiedProofRequest": "Unsatisfied Proof Request",
|
|
832
842
|
"ChangeCard": "Change Card",
|
|
833
843
|
"ProofRequestDetails": "Proof Request Details",
|
|
834
844
|
"ProofRequestAttributeDetails": "Proof Request Attribute Details",
|
|
@@ -746,6 +746,15 @@
|
|
|
746
746
|
"ProofRequestErrorMessage": "Something went wrong with the proof request. (FR)",
|
|
747
747
|
"PleaseAddress": " Please address them before continuing. (FR)"
|
|
748
748
|
},
|
|
749
|
+
"UnsatisfiedProofRequest": {
|
|
750
|
+
"Title": "Information Request (FR)",
|
|
751
|
+
"InfoBox": {
|
|
752
|
+
"Title": "You do not have a card for this request (FR)",
|
|
753
|
+
"Subtitle": "Check with {{verifierName}} for accepted cards. (FR)"
|
|
754
|
+
},
|
|
755
|
+
"VerifierDetail": "Received an information request from: (FR)",
|
|
756
|
+
"RequestPurpose": " • {{requestPurpose}} (FR)"
|
|
757
|
+
},
|
|
749
758
|
"Settings": {
|
|
750
759
|
"Version": "Version",
|
|
751
760
|
"VersionString": "0.0.0-0",
|
|
@@ -723,6 +723,15 @@
|
|
|
723
723
|
"ProofRequestErrorMessage": "Something went wrong with the proof request. (PT-BR)",
|
|
724
724
|
"PleaseAddress": " Please address them before continuing. (PT-BR)"
|
|
725
725
|
},
|
|
726
|
+
"UnsatisfiedProofRequest": {
|
|
727
|
+
"Title": "Information Request (PT-BR)",
|
|
728
|
+
"InfoBox": {
|
|
729
|
+
"Title": "You do not have a card for this request (PT-BR)",
|
|
730
|
+
"Subtitle": "Check with {{verifierName}} for accepted cards. (PT-BR)"
|
|
731
|
+
},
|
|
732
|
+
"VerifierDetail": "Received an information request from: (PT-BR)",
|
|
733
|
+
"RequestPurpose": " • {{requestPurpose}} (PT-BR)"
|
|
734
|
+
},
|
|
726
735
|
"Settings": {
|
|
727
736
|
"Version": "Versão",
|
|
728
737
|
"VersionString": "0.0.0-0",
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactI18next = require("react-i18next");
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _InfoBox = _interopRequireWildcard(require("../../../components/misc/InfoBox"));
|
|
11
|
+
var _ThemedText = require("../../../components/texts/ThemedText");
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
const OpenIDUnsatisfiedProofRequest = ({
|
|
15
|
+
verifierName,
|
|
16
|
+
credentialName,
|
|
17
|
+
requestPurpose
|
|
18
|
+
}) => {
|
|
19
|
+
const {
|
|
20
|
+
t
|
|
21
|
+
} = (0, _reactI18next.useTranslation)();
|
|
22
|
+
const styles = _reactNative.StyleSheet.create({
|
|
23
|
+
container: {
|
|
24
|
+
flex: 1,
|
|
25
|
+
justifyContent: 'space-between',
|
|
26
|
+
paddingTop: 30,
|
|
27
|
+
paddingHorizontal: 16
|
|
28
|
+
},
|
|
29
|
+
textContainer: {
|
|
30
|
+
flex: 1,
|
|
31
|
+
paddingHorizontal: 8
|
|
32
|
+
},
|
|
33
|
+
verifierDetailsText: {
|
|
34
|
+
marginTop: 30
|
|
35
|
+
},
|
|
36
|
+
verifierNameText: {
|
|
37
|
+
marginTop: 8,
|
|
38
|
+
marginBottom: 30
|
|
39
|
+
},
|
|
40
|
+
credentialDetailsText: {
|
|
41
|
+
marginTop: 8
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
45
|
+
style: styles.container
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement(_InfoBox.default, {
|
|
47
|
+
title: t('UnsatisfiedProofRequest.InfoBox.Title'),
|
|
48
|
+
message: t('UnsatisfiedProofRequest.InfoBox.Subtitle', {
|
|
49
|
+
verifierName
|
|
50
|
+
}),
|
|
51
|
+
notificationType: _InfoBox.InfoBoxType.Error,
|
|
52
|
+
renderShowDetails: true
|
|
53
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
54
|
+
style: styles.textContainer
|
|
55
|
+
}, /*#__PURE__*/_react.default.createElement(_ThemedText.ThemedText, {
|
|
56
|
+
variant: "normal",
|
|
57
|
+
style: styles.verifierDetailsText
|
|
58
|
+
}, t("UnsatisfiedProofRequest.VerifierDetail")), /*#__PURE__*/_react.default.createElement(_ThemedText.ThemedText, {
|
|
59
|
+
variant: "bold",
|
|
60
|
+
style: styles.verifierNameText
|
|
61
|
+
}, verifierName), /*#__PURE__*/_react.default.createElement(_ThemedText.ThemedText, {
|
|
62
|
+
variant: "bold"
|
|
63
|
+
}, credentialName), /*#__PURE__*/_react.default.createElement(_ThemedText.ThemedText, {
|
|
64
|
+
variant: "normal",
|
|
65
|
+
style: styles.credentialDetailsText
|
|
66
|
+
}, t("UnsatisfiedProofRequest.RequestPurpose", {
|
|
67
|
+
requestPurpose
|
|
68
|
+
}))));
|
|
69
|
+
};
|
|
70
|
+
var _default = exports.default = OpenIDUnsatisfiedProofRequest;
|
|
71
|
+
//# sourceMappingURL=OpenIDUnsatisfiedProofRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactI18next","_reactNative","_InfoBox","_interopRequireWildcard","_ThemedText","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OpenIDUnsatisfiedProofRequest","verifierName","credentialName","requestPurpose","useTranslation","styles","StyleSheet","create","container","flex","justifyContent","paddingTop","paddingHorizontal","textContainer","verifierDetailsText","marginTop","verifierNameText","marginBottom","credentialDetailsText","createElement","View","style","title","message","notificationType","InfoBoxType","Error","renderShowDetails","ThemedText","variant","_default","exports"],"sourceRoot":"../../../../../src","sources":["modules/openid/components/OpenIDUnsatisfiedProofRequest.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAC,uBAAA,CAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAAiE,SAAAI,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa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A,CAAAa,OAAO;IACN+B,KAAK,EAAExC,CAAC,CAAC,uCAAuC,CAAE;IAClDyC,OAAO,EAAEzC,CAAC,CAAC,0CAA0C,EAAE;MAAEmB;IAAa,CAAC,CAAE;IACzEuB,gBAAgB,EAAEC,oBAAW,CAACC,KAAM;IACpCC,iBAAiB;EAAA,CAClB,CAAC,eACFtD,MAAA,CAAAkB,OAAA,CAAA4B,aAAA,CAAC1C,YAAA,CAAA2C,IAAI;IAACC,KAAK,EAAEhB,MAAM,CAACQ;EAAc,gBAChCxC,MAAA,CAAAkB,OAAA,CAAA4B,aAAA,CAACvC,WAAA,CAAAgD,UAAU;IAACC,OAAO,EAAC,QAAQ;IAACR,KAAK,EAAEhB,MAAM,CAACS;EAAoB,GAC5DhC,CAAC,CAAC,wCAAwC,CACjC,CAAC,eACbT,MAAA,CAAAkB,OAAA,CAAA4B,aAAA,CAACvC,WAAA,CAAAgD,UAAU;IAACC,OAAO,EAAC,MAAM;IAACR,KAAK,EAAEhB,MAAM,CAACW;EAAiB,GACvDf,YACS,CAAC,eACb5B,MAAA,CAAAkB,OAAA,CAAA4B,aAAA,CAACvC,WAAA,CAAAgD,UAAU;IAACC,OAAO,EAAC;EAAM,GACvB3B,cACS,CAAC,eACb7B,MAAA,CAAAkB,OAAA,CAAA4B,aAAA,CAACvC,WAAA,CAAAgD,UAAU;IAACC,OAAO,EAAC,QAAQ;IAACR,KAAK,EAAEhB,MAAM,CAACa;EAAsB,GAC9DpC,CAAC,CAAC,wCAAwC,EAAE;IAAEqB;EAAe,CAAC,CACrD,CACR,CACF,CAAC;AAEX,CAAC;AAAA,IAAA2B,QAAA,GAAAC,OAAA,CAAAxC,OAAA,GAEcS,6BAA6B","ignoreList":[]}
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _reactI18next = require("react-i18next");
|
|
10
10
|
var _reactNative = require("react-native");
|
|
11
11
|
var _Button = _interopRequireWildcard(require("../../../components/buttons/Button"));
|
|
12
|
+
var _OpenIDUnsatisfiedProofRequest = _interopRequireDefault(require("../components/OpenIDUnsatisfiedProofRequest"));
|
|
12
13
|
var _misc = require("../../../components/misc");
|
|
13
14
|
var _CommonRemoveModal = _interopRequireDefault(require("../../../components/modals/CommonRemoveModal"));
|
|
14
15
|
var _constants = require("../../../constants");
|
|
@@ -75,7 +76,7 @@ const OpenIDProofPresentation = ({
|
|
|
75
76
|
flexShrink: 1
|
|
76
77
|
},
|
|
77
78
|
footerButton: {
|
|
78
|
-
|
|
79
|
+
paddingVertical: 10
|
|
79
80
|
},
|
|
80
81
|
cardContainer: {
|
|
81
82
|
paddingHorizontal: 25,
|
|
@@ -146,9 +147,10 @@ const OpenIDProofPresentation = ({
|
|
|
146
147
|
(0, _react.useEffect)(() => {
|
|
147
148
|
if (!satistfiedCredentialsSubmission || (credentialsRequested === null || credentialsRequested === void 0 ? void 0 : credentialsRequested.length) <= 0) return;
|
|
148
149
|
const creds = Object.entries(satistfiedCredentialsSubmission).reduce((acc, [inputDescriptorId, credentials]) => {
|
|
150
|
+
var _credentials$, _credentials$2;
|
|
149
151
|
acc[inputDescriptorId] = {
|
|
150
|
-
id: credentials[0]
|
|
151
|
-
claimFormat: credentials[0].claimFormat
|
|
152
|
+
id: (_credentials$ = credentials[0]) === null || _credentials$ === void 0 ? void 0 : _credentials$.id,
|
|
153
|
+
claimFormat: credentials === null || credentials === void 0 || (_credentials$2 = credentials[0]) === null || _credentials$2 === void 0 ? void 0 : _credentials$2.claimFormat
|
|
152
154
|
};
|
|
153
155
|
return acc;
|
|
154
156
|
}, {});
|
|
@@ -224,6 +226,7 @@ const OpenIDProofPresentation = ({
|
|
|
224
226
|
});
|
|
225
227
|
}, [submission, navigation]);
|
|
226
228
|
const renderHeader = () => {
|
|
229
|
+
if (!selectedCredentialsSubmission) return;
|
|
227
230
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
228
231
|
style: styles.headerTextContainer
|
|
229
232
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
@@ -253,7 +256,14 @@ const OpenIDProofPresentation = ({
|
|
|
253
256
|
});
|
|
254
257
|
};
|
|
255
258
|
const renderBody = () => {
|
|
256
|
-
if (
|
|
259
|
+
if (submission && !submission.areAllSatisfied) {
|
|
260
|
+
return /*#__PURE__*/_react.default.createElement(_OpenIDUnsatisfiedProofRequest.default, {
|
|
261
|
+
credentialName: submission === null || submission === void 0 ? void 0 : submission.name,
|
|
262
|
+
requestPurpose: submission === null || submission === void 0 ? void 0 : submission.purpose,
|
|
263
|
+
verifierName: verifierName
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
if (!selectedCredentialsSubmission || !submission) return;
|
|
257
267
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
258
268
|
style: styles.credentialsList
|
|
259
269
|
}, Object.entries(selectedCredentialsSubmission).map(([inputDescriptorId, credentialSimplified], i) => {
|
|
@@ -282,9 +292,7 @@ const OpenIDProofPresentation = ({
|
|
|
282
292
|
style: TextTheme.bold
|
|
283
293
|
}, name), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
284
294
|
style: TextTheme.labelTitle
|
|
285
|
-
}, purpose)), isSatisfied && requestedAttributes ? renderCard(correspondingSubmission, credentialSubmittion, correspondingSubmission.credentials.length > 1) :
|
|
286
|
-
style: TextTheme.normal
|
|
287
|
-
}, t('ProofRequest.CredentialNotInWallet')))));
|
|
295
|
+
}, purpose)), isSatisfied && requestedAttributes ? renderCard(correspondingSubmission, credentialSubmittion, correspondingSubmission.credentials.length > 1) : null)));
|
|
288
296
|
}));
|
|
289
297
|
};
|
|
290
298
|
const footerButton = (title, buttonPress, buttonType, testID, accessibilityLabel) => {
|
|
@@ -300,6 +308,16 @@ const OpenIDProofPresentation = ({
|
|
|
300
308
|
}));
|
|
301
309
|
};
|
|
302
310
|
const footer = () => {
|
|
311
|
+
if (submission && !submission.areAllSatisfied) {
|
|
312
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
313
|
+
style: {
|
|
314
|
+
paddingHorizontal: 25,
|
|
315
|
+
paddingVertical: 16,
|
|
316
|
+
paddingBottom: 26,
|
|
317
|
+
backgroundColor: ColorPalette.brand.secondaryBackground
|
|
318
|
+
}
|
|
319
|
+
}, footerButton(t('Global.Dismiss'), handleDismiss, _Button.ButtonType.Primary, (0, _testable.testIdWithKey)('DismissCredentialOffer'), t('Global.Dismiss')));
|
|
320
|
+
}
|
|
303
321
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
304
322
|
style: {
|
|
305
323
|
paddingHorizontal: 25,
|