@velocitycareerlabs/vc-renderer-sample 1.25.0-dev-build.17fb1a6ff → 1.25.0-dev-build.1b4dd5564

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vc-renderer-sample",
3
- "version": "1.25.0-dev-build.17fb1a6ff",
3
+ "version": "1.25.0-dev-build.1b4dd5564",
4
4
  "description": "VC Renderer Sample",
5
5
  "repository": "https://github.com/velocitycareerlabs/packages",
6
6
  "publishConfig": {
@@ -20,7 +20,7 @@
20
20
  "@types/node": "^16.18.119",
21
21
  "@types/react": "18.3.20",
22
22
  "@types/react-dom": "18.3.5",
23
- "@velocitycareerlabs/vc-renderer": "1.25.0-dev-build.17fb1a6ff",
23
+ "@velocitycareerlabs/vc-renderer": "1.25.0-dev-build.1b4dd5564",
24
24
  "react": "18.3.1",
25
25
  "react-dom": "^18.3.1",
26
26
  "react-scripts": "5.0.1",
@@ -58,5 +58,5 @@
58
58
  "last 1 safari version"
59
59
  ]
60
60
  },
61
- "gitHead": "881f014237f98053f94daccb590448a16679c041"
61
+ "gitHead": "6e550d18b8322774d3ae1009a573ee99d87b507a"
62
62
  }
package/src/App.tsx CHANGED
@@ -92,7 +92,7 @@ const App = () => {
92
92
  <CredentialsSummaryRenderer
93
93
  onClick={(id?: string) => alert(`credential id: ${id}`)}
94
94
  credentialsData={{
95
- vcs: CREDENTIALS,
95
+ credentials: CREDENTIALS,
96
96
  descriptors: DESCRIPTORS,
97
97
  issuers: ISSUERS,
98
98
  }}
@@ -105,7 +105,7 @@ const App = () => {
105
105
  <CredentialsSummaryRenderer
106
106
  onClick={(id?: string) => alert(`credential id: ${id}`)}
107
107
  credentialsData={{
108
- vcs: CREDENTIALS,
108
+ credentials: CREDENTIALS,
109
109
  descriptors: {},
110
110
  issuers: ISSUERS,
111
111
  }}
@@ -118,7 +118,7 @@ const App = () => {
118
118
  <CredentialsSummaryRenderer
119
119
  onClick={(id?: string) => alert(`credential id: ${id}`)}
120
120
  credentialsData={{
121
- vcs: CREDENTIALS,
121
+ credentials: CREDENTIALS,
122
122
  descriptors: DESCRIPTORS,
123
123
  issuers: {},
124
124
  }}
@@ -140,7 +140,7 @@ const App = () => {
140
140
  <CredentialDetailsRenderer
141
141
  categoryTitle="Assessments"
142
142
  credentialData={{
143
- vc: CREDENTIALS[0],
143
+ credential: CREDENTIALS[0],
144
144
  descriptor: DESCRIPTORS['AssessmentV1.1'],
145
145
  issuer:
146
146
  ISSUERS['did:ion:EiBMsw27IKRYIdwUOfDeBd0LnWVeG2fPxxJi9L1fvjM20g'],
@@ -155,7 +155,7 @@ const App = () => {
155
155
  <CredentialDetailsRenderer
156
156
  categoryTitle="Assessments"
157
157
  credentialData={{
158
- vc: CREDENTIALS[1],
158
+ credential: CREDENTIALS[1],
159
159
  descriptor: DESCRIPTORS['AssessmentV1.1'],
160
160
  issuer:
161
161
  ISSUERS['did:ion:EiBMsw27IKRYIdwUOfDeBd0LnWVeG2fPxxJi9L1fvjM20g'],
@@ -199,7 +199,7 @@ const App = () => {
199
199
  <CredentialDetailsRenderer
200
200
  categoryTitle="Contacts"
201
201
  credentialData={{
202
- vc: CREDENTIALS[8],
202
+ credential: CREDENTIALS[8],
203
203
  descriptor: DESCRIPTORS['EmailV1.0'],
204
204
  issuer:
205
205
  ISSUERS['did:ion:EiAehWmpX5mHBuc93SIhPXF8bsEx68G6mPcdIaLNGbozPA'],
@@ -214,7 +214,7 @@ const App = () => {
214
214
  <CredentialDetailsRenderer
215
215
  categoryTitle="Contacts"
216
216
  credentialData={{
217
- vc: CREDENTIALS[8],
217
+ credential: CREDENTIALS[8],
218
218
  descriptor: DESCRIPTORS['EmailV1.0'],
219
219
  issuer:
220
220
  ISSUERS['did:ion:EiAehWmpX5mHBuc93SIhPXF8bsEx68G6mPcdIaLNGbozPA'],
@@ -229,7 +229,7 @@ const App = () => {
229
229
  <CredentialDetailsRenderer
230
230
  categoryTitle="Badges & Achievements"
231
231
  credentialData={{
232
- vc: CREDENTIALS[3],
232
+ credential: CREDENTIALS[3],
233
233
  descriptor: DESCRIPTORS.OpenBadgeCredential,
234
234
  issuer:
235
235
  ISSUERS['did:ion:EiBMsw27IKRYIdwUOfDeBd0LnWVeG2fPxxJi9L1fvjM20g'],
@@ -244,7 +244,7 @@ const App = () => {
244
244
  <CredentialDetailsRenderer
245
245
  categoryTitle="Badges & Achievements"
246
246
  credentialData={{
247
- vc: CREDENTIALS[3],
247
+ credential: CREDENTIALS[3],
248
248
  descriptor: DESCRIPTORS.OpenBadgeCredential,
249
249
  issuer:
250
250
  ISSUERS['did:ion:EiBMsw27IKRYIdwUOfDeBd0LnWVeG2fPxxJi9L1fvjM20g'],
@@ -259,7 +259,7 @@ const App = () => {
259
259
  <CredentialDetailsRenderer
260
260
  categoryTitle="Badges & Achievements"
261
261
  credentialData={{
262
- vc: CREDENTIALS[3],
262
+ credential: CREDENTIALS[3],
263
263
  descriptor: {},
264
264
  issuer:
265
265
  ISSUERS['did:ion:EiBMsw27IKRYIdwUOfDeBd0LnWVeG2fPxxJi9L1fvjM20g'],
@@ -272,7 +272,7 @@ const App = () => {
272
272
  <CredentialDetailsRenderer
273
273
  categoryTitle="Badges & Achievements"
274
274
  credentialData={{
275
- vc: CREDENTIALS[3],
275
+ credential: CREDENTIALS[3],
276
276
  descriptor: DESCRIPTORS.OpenBadgeCredential,
277
277
  issuer:
278
278
  ISSUERS['did:ion:EiAehWmpX5mHBuc93SIhPXF8bsEx68G6mPcdIaLNGbozPA'],
@@ -56,16 +56,16 @@ export const PdfPreparedCredentials = () => {
56
56
  };
57
57
  const credentialsStatus = CREDENTIALS_MAPPED.reduce<{
58
58
  [key: string]: string;
59
- }>((acc, vc) => {
60
- const { id } = vc.summary;
59
+ }>((acc, credential) => {
60
+ const { id } = credential.summary;
61
61
  acc[id] = 'Verified';
62
62
  return acc;
63
63
  }, {});
64
64
 
65
65
  const sidebarItemsMapped = CREDENTIALS_MAPPED.reduce<{
66
66
  [key: string]: React.ReactNode[];
67
- }>((acc, vc) => {
68
- const { id } = vc.summary;
67
+ }>((acc, credential) => {
68
+ const { id } = credential.summary;
69
69
  acc[id] = sidebarItems;
70
70
  return acc;
71
71
  }, {});
@@ -90,7 +90,7 @@ export const PdfRawCredential = () => {
90
90
  <Document>
91
91
  <CredentialRendererPDF
92
92
  credentialsData={{
93
- vcs: [CREDENTIALS[0]],
93
+ credentials: [CREDENTIALS[0]],
94
94
  descriptors: DESCRIPTORS,
95
95
  issuers: ISSUERS,
96
96
  }}
@@ -116,8 +116,8 @@ export const PdfRawCredentials = () => {
116
116
  [CREDENTIALS[0].id]: 'Assessments',
117
117
  };
118
118
  const credentialsStatus = CREDENTIALS.reduce<{ [key: string]: string }>(
119
- (acc, vc) => {
120
- const { id } = vc;
119
+ (acc, credential) => {
120
+ const { id } = credential;
121
121
  acc[id] = 'Verified';
122
122
  return acc;
123
123
  },
@@ -126,8 +126,8 @@ export const PdfRawCredentials = () => {
126
126
 
127
127
  const sidebarItemsMapped = CREDENTIALS.reduce<{
128
128
  [key: string]: React.ReactNode[];
129
- }>((acc, vc) => {
130
- const { id } = vc;
129
+ }>((acc, credential) => {
130
+ const { id } = credential;
131
131
  acc[id] = sidebarItems;
132
132
  return acc;
133
133
  }, {});
@@ -135,7 +135,7 @@ export const PdfRawCredentials = () => {
135
135
  <Document>
136
136
  <CredentialRendererPDF
137
137
  credentialsData={{
138
- vcs: CREDENTIALS,
138
+ credentials: CREDENTIALS,
139
139
  descriptors: DESCRIPTORS,
140
140
  issuers: ISSUERS,
141
141
  }}
@@ -177,16 +177,16 @@ export const PdfPreparedCredentialsMissingData = () => {
177
177
  };
178
178
  const credentialsStatus = [CREDENTIALS_MAPPED[1]].reduce<{
179
179
  [key: string]: string;
180
- }>((acc, vc) => {
181
- const { id } = vc.summary;
180
+ }>((acc, credential) => {
181
+ const { id } = credential.summary;
182
182
  acc[id] = 'Verified';
183
183
  return acc;
184
184
  }, {});
185
185
 
186
186
  const sidebarItemsMapped = [CREDENTIALS_MAPPED[1]].reduce<{
187
187
  [key: string]: React.ReactNode[];
188
- }>((acc, vc) => {
189
- const { id } = vc.summary;
188
+ }>((acc, credential) => {
189
+ const { id } = credential.summary;
190
190
  acc[id] = sidebarItems;
191
191
  return acc;
192
192
  }, {});
@@ -215,8 +215,8 @@ export const PdfRawCredentialsMissingData = () => {
215
215
  [CREDENTIALS[1].id]: 'Contacts',
216
216
  };
217
217
  const credentialsStatus = [CREDENTIALS[1]].reduce<{ [key: string]: string }>(
218
- (acc, vc) => {
219
- const { id } = vc;
218
+ (acc, credential) => {
219
+ const { id } = credential;
220
220
  acc[id] = 'Verified';
221
221
  return acc;
222
222
  },
@@ -225,8 +225,8 @@ export const PdfRawCredentialsMissingData = () => {
225
225
 
226
226
  const sidebarItemsMapped = [CREDENTIALS[1]].reduce<{
227
227
  [key: string]: React.ReactNode[];
228
- }>((acc, vc) => {
229
- const { id } = vc;
228
+ }>((acc, credential) => {
229
+ const { id } = credential;
230
230
  acc[id] = sidebarItems;
231
231
  return acc;
232
232
  }, {});
@@ -236,7 +236,7 @@ export const PdfRawCredentialsMissingData = () => {
236
236
  <Document>
237
237
  <CredentialRendererPDF
238
238
  credentialsData={{
239
- vcs: CREDENTIALS,
239
+ credentials: CREDENTIALS,
240
240
  descriptors: DESCRIPTORS,
241
241
  issuers: oneIssuer,
242
242
  }}
@@ -420,7 +420,7 @@ export const CREDENTIALS = [
420
420
  ],
421
421
  },
422
422
  {
423
- id: '66fa996429ae2f0cca02ea36',
423
+ id: '66fa996429ae2f0cca02ea37',
424
424
  type: [
425
425
  'OpenBadgeCredential',
426
426
  'VelocityNetworkLayer1Credential',
@@ -527,7 +527,7 @@ export const CREDENTIALS = [
527
527
  ],
528
528
  },
529
529
  {
530
- id: '66fa996429ae2f0cca02ea36',
530
+ id: '66fa996429ae2f0cca02ea38',
531
531
  type: [
532
532
  'OpenBadgeCredential',
533
533
  'VelocityNetworkLayer1Credential',
@@ -633,7 +633,7 @@ export const CREDENTIALS = [
633
633
  ],
634
634
  },
635
635
  {
636
- id: '66fa996429ae2f0cca02ea36',
636
+ id: '66fa996429ae2f0cca02ea39',
637
637
  type: [
638
638
  'OpenBadgeCredential',
639
639
  'VelocityNetworkLayer1Credential',
@@ -28,7 +28,7 @@ export const ISSUERS: Issuers = {
28
28
  },
29
29
  linkedInProfile: 'https://xxxx.xxx',
30
30
  verifiableCredentialJwt:
31
- 'https://devregistrar.velocitynetwork.foundation/api/v0.6/organizations/did:ion:EiBMsw27IKRYIdwUOfDeBd0LnWVeG2fPxxJi9L1fvjM20g/resolve-vc/9c5d85e4-1930-4821-bcfb-e0b02e9bf8d8',
31
+ 'https://devregistrar.velocitynetwork.foundation/api/v0.6/organizations/did:ion:EiBMsw27IKRYIdwUOfDeBd0LnWVeG2fPxxJi9L1fvjM20g/resolve-credential/9c5d85e4-1930-4821-bcfb-e0b02e9bf8d8',
32
32
  supportsSecureMessages: false,
33
33
  createdAt: '2023-07-12T13:52:57.099Z',
34
34
  updatedAt: '2023-07-13T10:47:22.460Z',
@@ -61,7 +61,7 @@ export const ISSUERS: Issuers = {
61
61
  },
62
62
  linkedInProfile: 'https://xxxx.xxx',
63
63
  verifiableCredentialJwt:
64
- 'https://devregistrar.velocitynetwork.foundation/api/v0.6/organizations/did:ion:EiAehWmpX5mHBuc93SIhPXF8bsEx68G6mPcdIaLNGbozPA/resolve-vc/d7ef4a99-69dd-43cb-82a0-a05dfcfae2e3',
64
+ 'https://devregistrar.velocitynetwork.foundation/api/v0.6/organizations/did:ion:EiAehWmpX5mHBuc93SIhPXF8bsEx68G6mPcdIaLNGbozPA/resolve-credential/d7ef4a99-69dd-43cb-82a0-a05dfcfae2e3',
65
65
  supportsSecureMessages: false,
66
66
  createdAt: '2022-01-31T12:31:15.493Z',
67
67
  updatedAt: '2023-02-13T13:43:59.317Z',
@@ -2,6 +2,9 @@ export const STATUS = {
2
2
  '6703a5192f771a68797aceb1': 'Verified' as any,
3
3
  '6703a4af2f771a68797aceb0': 'Verified' as any,
4
4
  '66fa996429ae2f0cca02ea36': 'Verified' as any,
5
+ '66fa996429ae2f0cca02ea37': 'Verified' as any,
6
+ '66fa996429ae2f0cca02ea38': 'Verified' as any,
7
+ '66fa996429ae2f0cca02ea39': 'Verified' as any,
5
8
  '66f91232b94d2ad224f6dcc5': 'Revoked' as any,
6
9
  '66f91232b94d2ad224f6dcc4': 'Expired' as any,
7
10
  '66f91232b94d2ad224f6dcc3': 'Replaced' as any,