@sphereon/ui-components.credential-branding 0.4.1-unstable.65 → 0.4.1-unstable.66

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,16 @@ 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, linkedVpId = args.linkedVpId, linkedVpFrom = args.linkedVpFrom;
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
+ linkedVpId: linkedVpId,
228
+ linkedVpFrom: linkedVpFrom
227
229
  });
228
230
  };
229
231
  exports.toNonPersistedCredentialSummary = toNonPersistedCredentialSummary;
@@ -291,12 +293,12 @@ var getTermsOfUse = function (args) {
291
293
  });
292
294
  };
293
295
  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;
296
+ var verifiableCredential, hash, credentialRole, branding, issuer, subject, linkedVpId, linkedVpFrom, expirationDate, issueDate, localeBranding, credentialStatus, title, properties, logo, url, _a, issuerName, issuerAlias, termsOfUse;
295
297
  var _b, _c;
296
298
  return __generator(this, function (_d) {
297
299
  switch (_d.label) {
298
300
  case 0:
299
- verifiableCredential = args.verifiableCredential, hash = args.hash, credentialRole = args.credentialRole, branding = args.branding, issuer = args.issuer, subject = args.subject;
301
+ verifiableCredential = args.verifiableCredential, hash = args.hash, credentialRole = args.credentialRole, branding = args.branding, issuer = args.issuer, subject = args.subject, linkedVpId = args.linkedVpId, linkedVpFrom = args.linkedVpFrom;
300
302
  expirationDate = (_b = (0, exports.getDate)(verifiableCredential.expirationDate, verifiableCredential.validTo, verifiableCredential.exp)) !== null && _b !== void 0 ? _b : 0;
301
303
  issueDate = (0, exports.getDate)(verifiableCredential.issuanceDate, verifiableCredential.validFrom, verifiableCredential.nbf, verifiableCredential.iat);
302
304
  return [4, (0, exports.selectAppLocaleBranding)({ localeBranding: branding })];
@@ -332,7 +334,9 @@ var toCredentialSummary = function (args) { return __awaiter(void 0, void 0, voi
332
334
  alias: issuerAlias ? (issuerAlias.length > 50 ? "".concat(issuerAlias.substring(0, 50), "...") : issuerAlias) : '',
333
335
  image: logo,
334
336
  url: url
335
- }
337
+ },
338
+ linkedVpId: linkedVpId,
339
+ linkedVpFrom: linkedVpFrom
336
340
  }];
337
341
  }
338
342
  });
@@ -17,6 +17,8 @@ export type CredentialSummary = {
17
17
  type?: string;
18
18
  }>;
19
19
  branding?: IBasicCredentialLocaleBranding;
20
+ linkedVpId?: string;
21
+ linkedVpFrom?: Date;
20
22
  };
21
23
  export type IssuerSummary = {
22
24
  name: string;
@@ -50,6 +52,8 @@ export type ToNonPersistedCredentialSummaryArgs = {
50
52
  branding?: Array<IBasicCredentialLocaleBranding>;
51
53
  issuer?: Party;
52
54
  subject?: Party;
55
+ linkedVpId?: string;
56
+ linkedVpFrom?: Date;
53
57
  };
54
58
  export type GetCredentialDisplayNameArgs = {
55
59
  verifiableCredential: VerifiableCredential;
@@ -69,4 +73,6 @@ export type ToCredentialSummaryArgs = {
69
73
  branding?: Array<IBasicCredentialLocaleBranding>;
70
74
  issuer?: Party;
71
75
  subject?: Party;
76
+ linkedVpId?: string;
77
+ linkedVpFrom?: Date;
72
78
  };
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.65+dcd820e",
4
+ "version": "0.4.1-unstable.66+7db9466",
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.65+dcd820e",
34
+ "@sphereon/ui-components.core": "0.4.1-unstable.66+7db9466",
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": "dcd820eb985d5f34747dc784678d7d5739a87fe9"
54
+ "gitHead": "7db9466d614dee14766ed7f13793f885c770f694"
55
55
  }