@bifold/core 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/index.js +39 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/openid/features/OpenIDProofPresentation/OpenIDProofRequestDisplay.js +5 -4
- package/lib/commonjs/modules/openid/features/OpenIDProofPresentation/OpenIDProofRequestDisplay.js.map +1 -1
- package/lib/commonjs/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestBody.js +12 -11
- package/lib/commonjs/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestBody.js.map +1 -1
- package/lib/commonjs/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestFooter.js +10 -8
- package/lib/commonjs/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestFooter.js.map +1 -1
- package/lib/commonjs/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestHeader.js +7 -5
- package/lib/commonjs/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestHeader.js.map +1 -1
- package/lib/commonjs/wallet/map-to-card.js +19 -6
- package/lib/commonjs/wallet/map-to-card.js.map +1 -1
- package/lib/module/index.js +6 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/openid/features/OpenIDProofPresentation/OpenIDProofRequestDisplay.js +1 -0
- package/lib/module/modules/openid/features/OpenIDProofPresentation/OpenIDProofRequestDisplay.js.map +1 -1
- package/lib/module/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestBody.js +1 -0
- package/lib/module/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestBody.js.map +1 -1
- package/lib/module/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestFooter.js +1 -0
- package/lib/module/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestFooter.js.map +1 -1
- package/lib/module/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestHeader.js +1 -0
- package/lib/module/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestHeader.js.map +1 -1
- package/lib/module/wallet/map-to-card.js +19 -6
- package/lib/module/wallet/map-to-card.js.map +1 -1
- package/lib/typescript/src/index.d.ts +6 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/modules/openid/features/OpenIDProofPresentation/OpenIDProofRequestDisplay.d.ts +1 -0
- package/lib/typescript/src/modules/openid/features/OpenIDProofPresentation/OpenIDProofRequestDisplay.d.ts.map +1 -1
- package/lib/typescript/src/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestBody.d.ts +1 -0
- package/lib/typescript/src/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestBody.d.ts.map +1 -1
- package/lib/typescript/src/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestFooter.d.ts +1 -0
- package/lib/typescript/src/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestFooter.d.ts.map +1 -1
- package/lib/typescript/src/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestHeader.d.ts +1 -0
- package/lib/typescript/src/modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestHeader.d.ts.map +1 -1
- package/lib/typescript/src/wallet/map-to-card.d.ts +1 -1
- package/lib/typescript/src/wallet/map-to-card.d.ts.map +1 -1
- package/package.json +5 -5
package/lib/commonjs/index.js
CHANGED
|
@@ -86,6 +86,7 @@ var _exportNames = {
|
|
|
86
86
|
Scan: true,
|
|
87
87
|
Splash: true,
|
|
88
88
|
Terms: true,
|
|
89
|
+
RenameWallet: true,
|
|
89
90
|
UpdateAvailable: true,
|
|
90
91
|
AbstractBifoldLogger: true,
|
|
91
92
|
bifoldLoggerInstance: true,
|
|
@@ -128,7 +129,9 @@ var _exportNames = {
|
|
|
128
129
|
getAgentModules: true,
|
|
129
130
|
getCredentialIdentifiers: true,
|
|
130
131
|
isValidAnonCredsCredential: true,
|
|
132
|
+
parsedSchema: true,
|
|
131
133
|
connectFromScanOrDeepLink: true,
|
|
134
|
+
createConnectionInvitation: true,
|
|
132
135
|
formatTime: true,
|
|
133
136
|
getConnectionName: true,
|
|
134
137
|
removeExistingInvitationsById: true,
|
|
@@ -143,6 +146,8 @@ var _exportNames = {
|
|
|
143
146
|
buildFieldsFromAnonCredsCredential: true,
|
|
144
147
|
testIdForAccessabilityLabel: true,
|
|
145
148
|
testIdWithKey: true,
|
|
149
|
+
CredentialDetails: true,
|
|
150
|
+
OpenIDCredentialDetails: true,
|
|
146
151
|
BasicMessageMetadata: true,
|
|
147
152
|
CredentialMetadata: true,
|
|
148
153
|
BaseTourID: true,
|
|
@@ -292,6 +297,12 @@ Object.defineProperty(exports, "ContentGradient", {
|
|
|
292
297
|
return _ContentGradient.default;
|
|
293
298
|
}
|
|
294
299
|
});
|
|
300
|
+
Object.defineProperty(exports, "CredentialDetails", {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function () {
|
|
303
|
+
return _CredentialDetails.default;
|
|
304
|
+
}
|
|
305
|
+
});
|
|
295
306
|
Object.defineProperty(exports, "CredentialMetadata", {
|
|
296
307
|
enumerable: true,
|
|
297
308
|
get: function () {
|
|
@@ -490,6 +501,12 @@ Object.defineProperty(exports, "OnboardingPages", {
|
|
|
490
501
|
return _OnboardingPages.default;
|
|
491
502
|
}
|
|
492
503
|
});
|
|
504
|
+
Object.defineProperty(exports, "OpenIDCredentialDetails", {
|
|
505
|
+
enumerable: true,
|
|
506
|
+
get: function () {
|
|
507
|
+
return _OpenIDCredentialDetails.default;
|
|
508
|
+
}
|
|
509
|
+
});
|
|
493
510
|
Object.defineProperty(exports, "OpenIDCredentialRecordProvider", {
|
|
494
511
|
enumerable: true,
|
|
495
512
|
get: function () {
|
|
@@ -544,6 +561,12 @@ Object.defineProperty(exports, "RefreshOrchestrator", {
|
|
|
544
561
|
return _refreshOrchestrator.RefreshOrchestrator;
|
|
545
562
|
}
|
|
546
563
|
});
|
|
564
|
+
Object.defineProperty(exports, "RenameWallet", {
|
|
565
|
+
enumerable: true,
|
|
566
|
+
get: function () {
|
|
567
|
+
return _RenameWallet.default;
|
|
568
|
+
}
|
|
569
|
+
});
|
|
547
570
|
Object.defineProperty(exports, "SVGOverlay", {
|
|
548
571
|
enumerable: true,
|
|
549
572
|
get: function () {
|
|
@@ -720,6 +743,12 @@ Object.defineProperty(exports, "createApp", {
|
|
|
720
743
|
return _App.default;
|
|
721
744
|
}
|
|
722
745
|
});
|
|
746
|
+
Object.defineProperty(exports, "createConnectionInvitation", {
|
|
747
|
+
enumerable: true,
|
|
748
|
+
get: function () {
|
|
749
|
+
return _helpers.createConnectionInvitation;
|
|
750
|
+
}
|
|
751
|
+
});
|
|
723
752
|
Object.defineProperty(exports, "createLinkSecretIfRequired", {
|
|
724
753
|
enumerable: true,
|
|
725
754
|
get: function () {
|
|
@@ -840,6 +869,12 @@ Object.defineProperty(exports, "migrateToAskar", {
|
|
|
840
869
|
return _migration.migrateToAskar;
|
|
841
870
|
}
|
|
842
871
|
});
|
|
872
|
+
Object.defineProperty(exports, "parsedSchema", {
|
|
873
|
+
enumerable: true,
|
|
874
|
+
get: function () {
|
|
875
|
+
return _schema.parsedSchema;
|
|
876
|
+
}
|
|
877
|
+
});
|
|
843
878
|
Object.defineProperty(exports, "proofRequestTourSteps", {
|
|
844
879
|
enumerable: true,
|
|
845
880
|
get: function () {
|
|
@@ -1056,6 +1091,7 @@ var _Preface = _interopRequireDefault(require("./screens/Preface"));
|
|
|
1056
1091
|
var _Scan = _interopRequireDefault(require("./screens/Scan"));
|
|
1057
1092
|
var _Splash = _interopRequireDefault(require("./screens/Splash"));
|
|
1058
1093
|
var _Terms = _interopRequireDefault(require("./screens/Terms"));
|
|
1094
|
+
var _RenameWallet = _interopRequireDefault(require("./screens/RenameWallet"));
|
|
1059
1095
|
var _UpdateAvailable = _interopRequireDefault(require("./screens/UpdateAvailable"));
|
|
1060
1096
|
var _AbstractBifoldLogger = require("./services/AbstractBifoldLogger");
|
|
1061
1097
|
var _bifoldLogger = require("./services/bifoldLogger");
|
|
@@ -1127,12 +1163,15 @@ Object.keys(_versionCheck).forEach(function (key) {
|
|
|
1127
1163
|
});
|
|
1128
1164
|
var _agent = require("./utils/agent");
|
|
1129
1165
|
var _credential = require("./utils/credential");
|
|
1166
|
+
var _schema = require("./utils/schema");
|
|
1130
1167
|
var _helpers = require("./utils/helpers");
|
|
1131
1168
|
var _ledger = require("./utils/ledger");
|
|
1132
1169
|
var _luminance = require("./utils/luminance");
|
|
1133
1170
|
var _migration = require("./utils/migration");
|
|
1134
1171
|
var _oca = require("./utils/oca");
|
|
1135
1172
|
var _testable = require("./utils/testable");
|
|
1173
|
+
var _CredentialDetails = _interopRequireDefault(require("./screens/CredentialDetails"));
|
|
1174
|
+
var _OpenIDCredentialDetails = _interopRequireDefault(require("./modules/openid/screens/OpenIDCredentialDetails"));
|
|
1136
1175
|
var _metadata = require("./types/metadata");
|
|
1137
1176
|
var _containerApi = require("./container-api");
|
|
1138
1177
|
Object.keys(_containerApi).forEach(function (key) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_core","require","_reactHooks","_interopRequireDefault","_App","components","_interopRequireWildcard","exports","_Button","_IconButton","_BulletPoint","_CheckBoxRow","_LimitedTextInput","_NotificationListItem","_ContentGradient","_ErrorBoundary","_FauxHeader","_InfoBox","_QRRenderer","_QRScannerTorch","_ScanCamera","_SVGOverlay","_DeveloperModal","_DismissiblePopupModal","_ErrorModal","_SafeAreaModal","_Record","_InfoTextBox","_Link","_Text","_ThemedText","_BaseToast","_ToastConfig","_AttachTourStep","_CredentialOfferTourSteps","_CredentialsTourSteps","_HomeTourSteps","_ProofRequestTourSteps","_TourBox","_Banner","_HomeFooterView","_KeyboardView","_ScreenWrapper","_constants","_containerImpl","contexts","_activity","_auth","_navigation","_network","_tourContext","_tourProvider","_developerMode","_screenCapture","_useBifoldAgentSetup","_OpenIDCredentialRecordProvider","_defaultLayoutOptions","_defaultStackOptions","_AttemptLockout","_Biometry","_Developer","_Onboarding","_OnboardingPages","_Preface","_Scan","_Splash","_Terms","_UpdateAvailable","_AbstractBifoldLogger","_bifoldLogger","_keychain","_logger","_MockLogger","_themeBuilder","types","_error","_refreshOrchestrator","_AgentBridge","_animatedComponents","_animatedComponents2","_store","_store2","_theme","_deepLinks","_localization","_navigators","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","defineProperty","enumerable","get","_storage","_theme2","_attestation","_navigators2","_versionCheck","_agent","_credential","_helpers","_ledger","_luminance","_migration","_oca","_testable","_metadata","_containerApi","_tour","_types2","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","set","getOwnPropertyDescriptor"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_core","require","_reactHooks","_interopRequireDefault","_App","components","_interopRequireWildcard","exports","_Button","_IconButton","_BulletPoint","_CheckBoxRow","_LimitedTextInput","_NotificationListItem","_ContentGradient","_ErrorBoundary","_FauxHeader","_InfoBox","_QRRenderer","_QRScannerTorch","_ScanCamera","_SVGOverlay","_DeveloperModal","_DismissiblePopupModal","_ErrorModal","_SafeAreaModal","_Record","_InfoTextBox","_Link","_Text","_ThemedText","_BaseToast","_ToastConfig","_AttachTourStep","_CredentialOfferTourSteps","_CredentialsTourSteps","_HomeTourSteps","_ProofRequestTourSteps","_TourBox","_Banner","_HomeFooterView","_KeyboardView","_ScreenWrapper","_constants","_containerImpl","contexts","_activity","_auth","_navigation","_network","_tourContext","_tourProvider","_developerMode","_screenCapture","_useBifoldAgentSetup","_OpenIDCredentialRecordProvider","_defaultLayoutOptions","_defaultStackOptions","_AttemptLockout","_Biometry","_Developer","_Onboarding","_OnboardingPages","_Preface","_Scan","_Splash","_Terms","_RenameWallet","_UpdateAvailable","_AbstractBifoldLogger","_bifoldLogger","_keychain","_logger","_MockLogger","_themeBuilder","types","_error","_refreshOrchestrator","_AgentBridge","_animatedComponents","_animatedComponents2","_store","_store2","_theme","_deepLinks","_localization","_navigators","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","defineProperty","enumerable","get","_storage","_theme2","_attestation","_navigators2","_versionCheck","_agent","_credential","_schema","_helpers","_ledger","_luminance","_migration","_oca","_testable","_CredentialDetails","_OpenIDCredentialDetails","_metadata","_containerApi","_tour","_types2","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","set","getOwnPropertyDescriptor"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AA,CAAA4C,wBAAA,CAAAb,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAA5B,GAAA,IAAA4B,CAAA,CAAAK,GAAA,IAAAN,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAAA,SAAApH,uBAAAmH,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAK,UAAA,GAAAL,CAAA,KAAAU,OAAA,EAAAV,CAAA","ignoreList":[]}
|
package/lib/commonjs/modules/openid/features/OpenIDProofPresentation/OpenIDProofRequestDisplay.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
8
|
var _reactNative = require("react-native");
|
|
8
9
|
var _OpenIDProofRequestFooter = _interopRequireDefault(require("./components/OpenIDProofRequestFooter"));
|
|
9
10
|
var _OpenIDProofRequestHeader = _interopRequireDefault(require("./components/OpenIDProofRequestHeader"));
|
|
@@ -30,19 +31,19 @@ const OpenIdProofRequestDisplay = ({
|
|
|
30
31
|
if (!credential) {
|
|
31
32
|
return null;
|
|
32
33
|
}
|
|
33
|
-
return /*#__PURE__*/
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
34
35
|
style: styles.container
|
|
35
|
-
}, /*#__PURE__*/
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_OpenIDProofRequestHeader.default, {
|
|
36
37
|
selectedCredentialsSubmission: selectedCredentialsSubmission,
|
|
37
38
|
verifierName: verifierName,
|
|
38
39
|
reason: (submission === null || submission === void 0 ? void 0 : submission.purpose) ?? ''
|
|
39
|
-
}), /*#__PURE__*/
|
|
40
|
+
}), /*#__PURE__*/_react.default.createElement(_OpenIDProofRequestBody.default, {
|
|
40
41
|
credentialsRequested: credentialsRequested,
|
|
41
42
|
onPressAltCredChange: onPressAltCredChange,
|
|
42
43
|
selectedCredentialsSubmission: selectedCredentialsSubmission,
|
|
43
44
|
submission: submission,
|
|
44
45
|
verifierName: verifierName
|
|
45
|
-
}))), /*#__PURE__*/
|
|
46
|
+
}))), /*#__PURE__*/_react.default.createElement(_OpenIDProofRequestFooter.default, {
|
|
46
47
|
buttonsVisible: buttonsVisible,
|
|
47
48
|
credential: credential,
|
|
48
49
|
onPressAccept: onPressAccept,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_OpenIDProofRequestFooter","_OpenIDProofRequestHeader","_OpenIDProofRequestBody","e","__esModule","default","OpenIdProofRequestDisplay","buttonsVisible","credential","credentialsRequested","onPressAltCredChange","onPressAccept","onPressDecline","onPressDismiss","selectedCredentialsSubmission","submission","verifierName","styles","StyleSheet","create","container","flexGrow","justifyContent","createElement","Fragment","ScrollView","View","style","reason","purpose","_default","exports"],"sourceRoot":"../../../../../../src","sources":["modules/openid/features/OpenIDProofPresentation/OpenIDProofRequestDisplay.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,yBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,yBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,uBAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAwE,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAuBxE,MAAMG,yBAAmE,GAAGA,CAAC;EAC3EC,cAAc;EACdC,UAAU;EACV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AAc,EAAEA,cAAe;IAC/BC,6BAA6B,EAAEA,6BAA8B;IAC7DC,UAAU,EAAEA;EAAW,CACxB,CACD,CAAC;AAEP,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,CAAA1B,OAAA,GAEcC,yBAAyB","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
8
|
var _reactNative = require("react-native");
|
|
8
9
|
var _reactI18next = require("react-i18next");
|
|
9
10
|
var _theme = require("../../../../../contexts/theme");
|
|
@@ -50,14 +51,14 @@ const OpenIDProofRequestBody = ({
|
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
53
|
if (submission && !submission.areAllSatisfied) {
|
|
53
|
-
return /*#__PURE__*/
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement(_OpenIDUnsatisfiedProofRequest.default, {
|
|
54
55
|
credentialName: submission === null || submission === void 0 ? void 0 : submission.name,
|
|
55
56
|
requestPurpose: submission === null || submission === void 0 ? void 0 : submission.purpose,
|
|
56
57
|
verifierName: verifierName
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
60
|
if (!selectedCredentialsSubmission || !submission) return;
|
|
60
|
-
return /*#__PURE__*/
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
61
62
|
style: styles.credentialsList
|
|
62
63
|
}, Object.entries(selectedCredentialsSubmission).map(([inputDescriptorId, credentialSimplified]) => {
|
|
63
64
|
var _submission$entries;
|
|
@@ -73,29 +74,29 @@ const OpenIDProofRequestBody = ({
|
|
|
73
74
|
}
|
|
74
75
|
const credentialDisplay = (0, _display.getCredentialForDisplay)(credential);
|
|
75
76
|
const fields = (0, _oca.buildFieldsFromW3cCredsCredential)(credentialDisplay, requestedAttributes);
|
|
76
|
-
return /*#__PURE__*/
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
77
78
|
key: credentialSimplified.id
|
|
78
|
-
}, /*#__PURE__*/
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
79
80
|
style: styles.cardContainer
|
|
80
|
-
}, isSatisfied && requestedAttributes && /*#__PURE__*/
|
|
81
|
+
}, isSatisfied && requestedAttributes && /*#__PURE__*/_react.default.createElement(_CredentialCardGen.default, {
|
|
81
82
|
credential: credential,
|
|
82
83
|
hasAltCredentials: hasMultipleCreds
|
|
83
|
-
}), hasMultipleCreds && /*#__PURE__*/
|
|
84
|
+
}), hasMultipleCreds && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
84
85
|
style: {
|
|
85
86
|
flex: 1,
|
|
86
87
|
flexDirection: 'row-reverse',
|
|
87
88
|
paddingTop: Spacing.sm
|
|
88
89
|
}
|
|
89
|
-
}, /*#__PURE__*/
|
|
90
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
90
91
|
onPress: () => onPressAltCredChange(correspondingSubmission.inputDescriptorId, credential.id)
|
|
91
|
-
}, /*#__PURE__*/
|
|
92
|
+
}, /*#__PURE__*/_react.default.createElement(_ThemedText.ThemedText, {
|
|
92
93
|
style: ListItems.recordLink
|
|
93
|
-
}, t('ProofRequest.UseDifferentCard'))))), /*#__PURE__*/
|
|
94
|
+
}, t('ProofRequest.UseDifferentCard'))))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
94
95
|
style: styles.detailContainer
|
|
95
|
-
}, /*#__PURE__*/
|
|
96
|
+
}, /*#__PURE__*/_react.default.createElement(_Record.default, {
|
|
96
97
|
fields: fields,
|
|
97
98
|
hideFieldValues: true,
|
|
98
|
-
header: () => /*#__PURE__*/
|
|
99
|
+
header: () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null),
|
|
99
100
|
scrollEnabled: false
|
|
100
101
|
})));
|
|
101
102
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactI18next","_theme","_oca","_display","_CredentialCardGen","_Record","_OpenIDUnsatisfiedProofRequest","_ThemedText","e","__esModule","default","OpenIDProofRequestBody","credentialsRequested","onPressAltCredChange","selectedCredentialsSubmission","submission","verifierName","ColorPalette","Spacing","ListItems","useTheme","t","useTranslation","styles","StyleSheet","create","cardContainer","paddingHorizontal","paddingBottom","detailContainer","paddingVertical","backgroundColor","brand","secondaryBackground","marginBottom","cardGroupHeader","padding","marginVertical","credentialsList","marginTop","justifyContent","areAllSatisfied","createElement","credentialName","name","requestPurpose","purpose","View","style","Object","entries","map","inputDescriptorId","credentialSimplified","_submission$entries","correspondingSubmission","find","s","isSatisfied","credentialSubmission","credentials","id","requestedAttributes","hasMultipleCreds","length","credential","c","credentialDisplay","getCredentialForDisplay","fields","buildFieldsFromW3cCredsCredential","key","hasAltCredentials","flex","flexDirection","paddingTop","sm","Pressable","onPress","ThemedText","recordLink","hideFieldValues","header","Fragment","scrollEnabled","_default","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestBody.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,OAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,8BAAA,GAAAT,sBAAA,CAAAC,OAAA;AAIA,IAAAS,WAAA,GAAAT,OAAA;AAAuE,SAAAD,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OA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;MAACC,aAAa,EAAE;IAAM,CAAE,CAChF,CACF,CAAC;EAEX,CAAC,CACG,CAAC;AAEX,CAAC;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAA5E,OAAA,GAEcC,sBAAsB","ignoreList":[]}
|
|
@@ -4,12 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
8
|
var _reactNative = require("react-native");
|
|
8
9
|
var _reactI18next = require("react-i18next");
|
|
9
10
|
var _theme = require("../../../../../contexts/theme");
|
|
10
11
|
var _Button = _interopRequireWildcard(require("../../../../../components/buttons/Button"));
|
|
11
12
|
var _testable = require("../../../../../utils/testable");
|
|
12
13
|
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); }
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
15
|
const OpenIDProofPresentationFooter = ({
|
|
14
16
|
buttonsVisible,
|
|
15
17
|
credential,
|
|
@@ -41,11 +43,11 @@ const OpenIDProofPresentationFooter = ({
|
|
|
41
43
|
return null;
|
|
42
44
|
}
|
|
43
45
|
if (submission && !submission.areAllSatisfied) {
|
|
44
|
-
return /*#__PURE__*/
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
45
47
|
style: styles.footerContainer
|
|
46
|
-
}, /*#__PURE__*/
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
47
49
|
style: styles.footerButton
|
|
48
|
-
}, /*#__PURE__*/
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
49
51
|
title: t('Global.Dismiss'),
|
|
50
52
|
accessibilityLabel: t('Global.Dismiss'),
|
|
51
53
|
testID: (0, _testable.testIdWithKey)('DismissCredentialOffer'),
|
|
@@ -54,27 +56,27 @@ const OpenIDProofPresentationFooter = ({
|
|
|
54
56
|
disabled: !buttonsVisible
|
|
55
57
|
})));
|
|
56
58
|
}
|
|
57
|
-
return /*#__PURE__*/
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
58
60
|
style: styles.footerContainer
|
|
59
|
-
}, selectedCredentialsSubmission && Object.keys(selectedCredentialsSubmission).length > 0 ? /*#__PURE__*/
|
|
61
|
+
}, selectedCredentialsSubmission && Object.keys(selectedCredentialsSubmission).length > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
60
62
|
style: {
|
|
61
63
|
marginBottom: Spacing.sm
|
|
62
64
|
}
|
|
63
|
-
}, /*#__PURE__*/
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
64
66
|
title: t('Global.Send'),
|
|
65
67
|
accessibilityLabel: t('Global.Send'),
|
|
66
68
|
testID: (0, _testable.testIdWithKey)('AcceptCredentialOffer'),
|
|
67
69
|
buttonType: _Button.ButtonType.Primary,
|
|
68
70
|
onPress: onPressAccept,
|
|
69
71
|
disabled: !buttonsVisible
|
|
70
|
-
})), /*#__PURE__*/
|
|
72
|
+
})), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
71
73
|
title: t('Global.Decline'),
|
|
72
74
|
accessibilityLabel: t('Global.Decline'),
|
|
73
75
|
testID: (0, _testable.testIdWithKey)('DeclineCredentialOffer'),
|
|
74
76
|
buttonType: _Button.ButtonType.Secondary,
|
|
75
77
|
onPress: onPressDecline,
|
|
76
78
|
disabled: !buttonsVisible
|
|
77
|
-
})) : /*#__PURE__*/
|
|
79
|
+
})) : /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
78
80
|
title: t('Global.Dismiss'),
|
|
79
81
|
accessibilityLabel: t('Global.Dismiss'),
|
|
80
82
|
testID: (0, _testable.testIdWithKey)('DismissCredentialOffer'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactI18next","_theme","_Button","_interopRequireWildcard","_testable","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OpenIDProofPresentationFooter","buttonsVisible","credential","onPressAccept","onPressDecline","onPressDismiss","selectedCredentialsSubmission","submission","ColorPalette","Spacing","useTheme","useTranslation","styles","StyleSheet","create","footerButton","paddingVertical","footerContainer","paddingHorizontal","paddingBottom","backgroundColor","brand","secondaryBackground","areAllSatisfied","createElement","View","style","title","accessibilityLabel","testID","testIdWithKey","buttonType","ButtonType","Primary","onPress","disabled","keys","length","Fragment","marginBottom","sm","Secondary","_default","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestFooter.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAA6D,SAAAK,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SA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B","ignoreList":[]}
|
|
@@ -4,10 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
8
|
var _reactNative = require("react-native");
|
|
8
9
|
var _reactI18next = require("react-i18next");
|
|
9
10
|
var _theme = require("../../../../../contexts/theme");
|
|
10
11
|
var _testable = require("../../../../../utils/testable");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
13
|
const OpenIDProofRequestHeader = ({
|
|
12
14
|
selectedCredentialsSubmission,
|
|
13
15
|
verifierName = '',
|
|
@@ -33,16 +35,16 @@ const OpenIDProofRequestHeader = ({
|
|
|
33
35
|
}
|
|
34
36
|
});
|
|
35
37
|
if (!selectedCredentialsSubmission) return;
|
|
36
|
-
return /*#__PURE__*/
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
37
39
|
style: styles.headerTextContainer
|
|
38
|
-
}, /*#__PURE__*/
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
39
41
|
style: styles.headerText,
|
|
40
42
|
testID: (0, _testable.testIdWithKey)('HeaderText')
|
|
41
|
-
}, /*#__PURE__*/
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
42
44
|
style: TextTheme.normal
|
|
43
|
-
}, t('ProofRequest.ReceiveProofTitle')), /*#__PURE__*/
|
|
45
|
+
}, t('ProofRequest.ReceiveProofTitle')), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
44
46
|
style: TextTheme.title
|
|
45
|
-
}, " $", verifierName)), /*#__PURE__*/
|
|
47
|
+
}, " $", verifierName)), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
46
48
|
style: TextTheme.normal
|
|
47
49
|
}, reason));
|
|
48
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactI18next","_theme","_testable","e","__esModule","default","OpenIDProofRequestHeader","selectedCredentialsSubmission","verifierName","reason","ListItems","TextTheme","Spacing","useTheme","t","useTranslation","styles","StyleSheet","create","headerTextContainer","paddingVertical","md","paddingHorizontal","sm","headerText","recordAttributeText","flexShrink","paddingBottom","createElement","View","style","Text","testID","testIdWithKey","normal","title","_default","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/openid/features/OpenIDProofPresentation/components/OpenIDProofRequestHeader.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAA6D,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAS7D,MAAMG,wBAAiE,GAAGA,CAAC;EACzEC,6BAA6B;EAC7BC,YAAY,GAAG,EAAE;EACjBC,MAAM,GAAG;AACX,CAAC,KAAK;EACJ,MAAM;IAAEC,SAAS;IAAEC,SAAS;IAAEC;EAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAC,CAAC;EACpD,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,4BAAc,EAAC,CAAC;EAE9B,MAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;IAC/BC,mBAAmB,EAAE;MACnBC,eAAe,EAAER,OAAO,CAACS,EAAE;MAC3BC,iBAAiB,EAAEV,OAAO,CAACW;IAC7B,CAAC;IACDC,UAAU,EAAE;MACV,GAAGd,SAAS,CAACe,mBAAmB;MAChCC,UAAU,EAAE,CAAC;MACbC,aAAa,EAAEf,OAAO,CAACW;IACzB;EACF,CAAC,CAAC;EAEF,IAAI,CAAChB,6BAA6B,EAAE;EAEpC,oBACEX,MAAA,CAAAS,OAAA,CAAAuB,aAAA,CAAC7B,YAAA,CAAA8B,IAAI;IAACC,KAAK,EAAEd,MAAM,CAACG;EAAoB,gBACtCvB,MAAA,CAAAS,OAAA,CAAAuB,aAAA,CAAC7B,YAAA,CAAAgC,IAAI;IAACD,KAAK,EAAEd,MAAM,CAACQ,UAAW;IAACQ,MAAM,EAAE,IAAAC,uBAAa,EAAC,YAAY;EAAE,gBAClErC,MAAA,CAAAS,OAAA,CAAAuB,aAAA,CAAC7B,YAAA,CAAAgC,IAAI;IAACD,KAAK,EAAEnB,SAAS,CAACuB;EAAO,GAAEpB,CAAC,CAAC,gCAAgC,CAAQ,CAAC,eAC3ElB,MAAA,CAAAS,OAAA,CAAAuB,aAAA,CAAC7B,YAAA,CAAAgC,IAAI;IAACD,KAAK,EAAEnB,SAAS,CAACwB;EAAM,GAAC,IAAE,EAAC3B,YAAmB,CAChD,CAAC,eACPZ,MAAA,CAAAS,OAAA,CAAAuB,aAAA,CAAC7B,YAAA,CAAAgC,IAAI;IAACD,KAAK,EAAEnB,SAAS,CAACuB;EAAO,GAAEzB,MAAa,CACzC,CAAC;AAEX,CAAC;AAAA,IAAA2B,QAAA,GAAAC,OAAA,CAAAhC,OAAA,GAEcC,wBAAwB","ignoreList":[]}
|
|
@@ -128,12 +128,17 @@ function mapAnonCredsToCard(rec, bundle, opts = {}) {
|
|
|
128
128
|
status
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
function mapW3CToCard(input, id) {
|
|
131
|
+
function mapW3CToCard(input, id, opts = {}) {
|
|
132
132
|
var _input$vc$issuer, _input$vc$issuer2, _input$vc$type;
|
|
133
|
+
const {
|
|
134
|
+
proofContext = false,
|
|
135
|
+
displayItems
|
|
136
|
+
} = opts;
|
|
137
|
+
|
|
133
138
|
// console.log(' ====> W3C Input:', input)
|
|
134
139
|
const issuerName = typeof input.vc.issuer === 'string' ? input.vc.issuer : ((_input$vc$issuer = input.vc.issuer) === null || _input$vc$issuer === void 0 ? void 0 : _input$vc$issuer.name) || ((_input$vc$issuer2 = input.vc.issuer) === null || _input$vc$issuer2 === void 0 ? void 0 : _input$vc$issuer2.id) || 'Unknown Contact';
|
|
135
140
|
const subject = input.vc.credentialSubject ?? {};
|
|
136
|
-
const items = Object.entries(subject).map(([key, raw]) => {
|
|
141
|
+
const items = proofContext && displayItems !== null && displayItems !== void 0 && displayItems.length ? displayItems.map(it => mapItemToCardAttr(it, input.labels, input.formats, input.piiKeys)) : Object.entries(subject).map(([key, raw]) => {
|
|
137
142
|
var _input$labels, _input$formats, _input$piiKeys;
|
|
138
143
|
const label = ((_input$labels = input.labels) === null || _input$labels === void 0 ? void 0 : _input$labels[key]) ?? (0, _lodash.default)(key);
|
|
139
144
|
const format = (_input$formats = input.formats) === null || _input$formats === void 0 ? void 0 : _input$formats[key];
|
|
@@ -168,7 +173,7 @@ function mapW3CToCard(input, id) {
|
|
|
168
173
|
},
|
|
169
174
|
items,
|
|
170
175
|
brandingType: input.branding.type,
|
|
171
|
-
proofContext
|
|
176
|
+
proofContext,
|
|
172
177
|
revoked: false,
|
|
173
178
|
notInWallet: false,
|
|
174
179
|
allPI,
|
|
@@ -216,10 +221,13 @@ const resolveBundleForW3CCredential = async (credential, bundleResolver) => {
|
|
|
216
221
|
};
|
|
217
222
|
return ocaBundle;
|
|
218
223
|
};
|
|
219
|
-
const mapW3CCredToCard = (w3cCred, brandingOverlay, brandingOverlayTypeString) => {
|
|
224
|
+
const mapW3CCredToCard = (w3cCred, brandingOverlay, brandingOverlayTypeString, opts = {}) => {
|
|
220
225
|
var _getAttributeField, _brandingOverlay$bran, _brandingOverlay$bran2, _brandingOverlay$bran3, _brandingOverlay$bran4, _brandingOverlay$bran5, _brandingOverlay$meta, _brandingOverlay$bund, _bundle2, _bundle3;
|
|
221
226
|
const credentialDisplay = (0, _display.getCredentialForDisplay)(w3cCred);
|
|
222
227
|
const extraAttributeValue = credentialDisplay.display.primary_overlay_attribute ? (_getAttributeField = (0, _oca2.getAttributeField)(credentialDisplay, credentialDisplay.display.primary_overlay_attribute)) === null || _getAttributeField === void 0 ? void 0 : _getAttributeField.field : undefined;
|
|
228
|
+
const resolvedBundle = brandingOverlay === null || brandingOverlay === void 0 ? void 0 : brandingOverlay.bundle;
|
|
229
|
+
const overlayBundle = (resolvedBundle === null || resolvedBundle === void 0 ? void 0 : resolvedBundle.bundle) ?? resolvedBundle;
|
|
230
|
+
const flagged = (overlayBundle === null || overlayBundle === void 0 ? void 0 : overlayBundle.flaggedAttributes) ?? (resolvedBundle === null || resolvedBundle === void 0 ? void 0 : resolvedBundle.flaggedAttributes) ?? [];
|
|
223
231
|
const input = {
|
|
224
232
|
vc: {
|
|
225
233
|
issuer: credentialDisplay.display.issuer,
|
|
@@ -238,10 +246,12 @@ const mapW3CCredToCard = (w3cCred, brandingOverlay, brandingOverlayTypeString) =
|
|
|
238
246
|
watermark: brandingOverlay === null || brandingOverlay === void 0 || (_brandingOverlay$meta = brandingOverlay.metaOverlay) === null || _brandingOverlay$meta === void 0 ? void 0 : _brandingOverlay$meta.watermark
|
|
239
247
|
},
|
|
240
248
|
labels: brandingOverlay === null || brandingOverlay === void 0 || (_brandingOverlay$bund = brandingOverlay.bundle) === null || _brandingOverlay$bund === void 0 || (_brandingOverlay$bund = _brandingOverlay$bund.labelOverlay) === null || _brandingOverlay$bund === void 0 ? void 0 : _brandingOverlay$bund.attributeLabels,
|
|
249
|
+
formats: Object.fromEntries(((overlayBundle === null || overlayBundle === void 0 ? void 0 : overlayBundle.attributes) ?? []).map(a => [a.name, a.format])),
|
|
250
|
+
piiKeys: flagged.map(a => a.name),
|
|
241
251
|
primary_overlay_attribute: extraAttributeValue,
|
|
242
252
|
helpActionUrl: (brandingOverlay === null || brandingOverlay === void 0 || (_bundle2 = brandingOverlay.bundle) === null || _bundle2 === void 0 || (_bundle2 = _bundle2.bundle) === null || _bundle2 === void 0 || (_bundle2 = _bundle2.metadata) === null || _bundle2 === void 0 || (_bundle2 = _bundle2.issuerUrl) === null || _bundle2 === void 0 ? void 0 : _bundle2.en) ?? (brandingOverlay === null || brandingOverlay === void 0 || (_bundle3 = brandingOverlay.bundle) === null || _bundle3 === void 0 || (_bundle3 = _bundle3.bundle) === null || _bundle3 === void 0 || (_bundle3 = _bundle3.metadata) === null || _bundle3 === void 0 || (_bundle3 = _bundle3.issuerUrl) === null || _bundle3 === void 0 ? void 0 : _bundle3['en-US']) ?? undefined
|
|
243
253
|
};
|
|
244
|
-
return mapW3CToCard(input, credentialDisplay.id);
|
|
254
|
+
return mapW3CToCard(input, credentialDisplay.id, opts);
|
|
245
255
|
};
|
|
246
256
|
|
|
247
257
|
/**
|
|
@@ -269,7 +279,10 @@ async function mapCredentialTypeToCard({
|
|
|
269
279
|
//W3C case
|
|
270
280
|
if (credential instanceof _core.W3cCredentialRecord || credential instanceof _core.W3cV2CredentialRecord || credential instanceof _core.SdJwtVcRecord || credential instanceof _core.MdocRecord) {
|
|
271
281
|
const bo = brandingOverlay ?? (await resolveBundleForW3CCredential(credential, bundleResolver));
|
|
272
|
-
return mapW3CCredToCard(credential, bo, brandingTypeString
|
|
282
|
+
return mapW3CCredToCard(credential, bo, brandingTypeString, {
|
|
283
|
+
proofContext: !!proof,
|
|
284
|
+
displayItems: proof ? displayItems : undefined
|
|
285
|
+
});
|
|
273
286
|
}
|
|
274
287
|
|
|
275
288
|
//Anoncreds case
|