@sphereon/ui-components.credential-branding 0.4.1-unstable.78 → 0.4.1-unstable.80

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.
@@ -216,14 +216,15 @@ var toCredentialDetailsRow = function (args) { return __awaiter(void 0, void 0,
216
216
  }); };
217
217
  exports.toCredentialDetailsRow = toCredentialDetailsRow;
218
218
  var toNonPersistedCredentialSummary = function (args) {
219
- var verifiableCredential = args.verifiableCredential, credentialRole = args.credentialRole, branding = args.branding, issuer = args.issuer, subject = args.subject;
219
+ var verifiableCredential = args.verifiableCredential, credentialRole = args.credentialRole, branding = args.branding, issuer = args.issuer, subject = args.subject, linkedVp = args.linkedVp;
220
220
  return (0, exports.toCredentialSummary)({
221
221
  verifiableCredential: verifiableCredential,
222
222
  hash: (0, utils_1.computeEntryHash)(verifiableCredential),
223
223
  credentialRole: credentialRole,
224
224
  branding: branding,
225
225
  issuer: issuer,
226
- subject: subject
226
+ subject: subject,
227
+ linkedVp: linkedVp
227
228
  });
228
229
  };
229
230
  exports.toNonPersistedCredentialSummary = toNonPersistedCredentialSummary;
@@ -291,12 +292,12 @@ var getTermsOfUse = function (args) {
291
292
  });
292
293
  };
293
294
  var toCredentialSummary = function (args) { return __awaiter(void 0, void 0, void 0, function () {
294
- var verifiableCredential, hash, credentialRole, branding, issuer, subject, expirationDate, issueDate, localeBranding, credentialStatus, title, properties, logo, url, _a, issuerName, issuerAlias, termsOfUse;
295
+ var verifiableCredential, hash, credentialRole, branding, issuer, subject, linkedVp, expirationDate, issueDate, localeBranding, credentialStatus, title, properties, logo, url, _a, issuerName, issuerAlias, termsOfUse;
295
296
  var _b, _c;
296
297
  return __generator(this, function (_d) {
297
298
  switch (_d.label) {
298
299
  case 0:
299
- verifiableCredential = args.verifiableCredential, hash = args.hash, credentialRole = args.credentialRole, branding = args.branding, issuer = args.issuer, subject = args.subject;
300
+ verifiableCredential = args.verifiableCredential, hash = args.hash, credentialRole = args.credentialRole, branding = args.branding, issuer = args.issuer, subject = args.subject, linkedVp = args.linkedVp;
300
301
  expirationDate = (_b = (0, exports.getDate)(verifiableCredential.expirationDate, verifiableCredential.validTo, verifiableCredential.exp)) !== null && _b !== void 0 ? _b : 0;
301
302
  issueDate = (0, exports.getDate)(verifiableCredential.issuanceDate, verifiableCredential.validFrom, verifiableCredential.nbf, verifiableCredential.iat);
302
303
  return [4, (0, exports.selectAppLocaleBranding)({ localeBranding: branding })];
@@ -332,7 +333,8 @@ var toCredentialSummary = function (args) { return __awaiter(void 0, void 0, voi
332
333
  alias: issuerAlias ? (issuerAlias.length > 50 ? "".concat(issuerAlias.substring(0, 50), "...") : issuerAlias) : '',
333
334
  image: logo,
334
335
  url: url
335
- }
336
+ },
337
+ linkedVp: linkedVp
336
338
  }];
337
339
  }
338
340
  });
@@ -17,6 +17,7 @@ export type CredentialSummary = {
17
17
  type?: string;
18
18
  }>;
19
19
  branding?: IBasicCredentialLocaleBranding;
20
+ linkedVp?: LinkedVP;
20
21
  };
21
22
  export type IssuerSummary = {
22
23
  name: string;
@@ -50,6 +51,7 @@ export type ToNonPersistedCredentialSummaryArgs = {
50
51
  branding?: Array<IBasicCredentialLocaleBranding>;
51
52
  issuer?: Party;
52
53
  subject?: Party;
54
+ linkedVp?: LinkedVP;
53
55
  };
54
56
  export type GetCredentialDisplayNameArgs = {
55
57
  verifiableCredential: VerifiableCredential;
@@ -69,4 +71,10 @@ export type ToCredentialSummaryArgs = {
69
71
  branding?: Array<IBasicCredentialLocaleBranding>;
70
72
  issuer?: Party;
71
73
  subject?: Party;
74
+ linkedVp?: LinkedVP;
75
+ };
76
+ export type LinkedVP = {
77
+ linkedVpId: string;
78
+ linkedVpFrom: Date;
79
+ linkedVpUntil?: Date;
72
80
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.credential-branding",
3
3
  "private": false,
4
- "version": "0.4.1-unstable.78+9aeab96",
4
+ "version": "0.4.1-unstable.80+7fa5673",
5
5
  "description": "SSI UI components credential branding",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -31,7 +31,7 @@
31
31
  "@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.45.94",
32
32
  "@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.45.94",
33
33
  "@sphereon/ssi-types": "0.34.1-feature.SSISDK.45.94",
34
- "@sphereon/ui-components.core": "0.4.1-unstable.78+9aeab96",
34
+ "@sphereon/ui-components.core": "0.4.1-unstable.80+7fa5673",
35
35
  "@veramo/core": "4.2.0",
36
36
  "@veramo/utils": "4.2.0",
37
37
  "i18n-js": "^3.8.0",
@@ -51,5 +51,5 @@
51
51
  "peerDependencies": {
52
52
  "react": ">= 18.2"
53
53
  },
54
- "gitHead": "9aeab9661e1817da60b8b80723ff6523aad2fec1"
54
+ "gitHead": "7fa5673d05d42697ba423263a67a3b40cbb98e5e"
55
55
  }