@sphereon/ui-components.credential-branding 0.4.1-unstable.171 → 0.4.1-unstable.178

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.
@@ -122,11 +122,26 @@ const toCredentialDetailsRow = async (args) => {
122
122
  depth,
123
123
  });
124
124
  }
125
+ else if (items.length > 0) {
126
+ rows.push({
127
+ id: (0, uuid_1.v4)(),
128
+ label,
129
+ value: undefined,
130
+ depth,
131
+ });
132
+ }
125
133
  for (const item of objectItems) {
126
- rows = rows.concat(await (0, exports.toCredentialDetailsRow)({ object: item, subject, issuer, branding, parentKey: parentKey ? `${parentKey}.${key}` : key, depth: depth + 1 }));
134
+ rows = rows.concat(await (0, exports.toCredentialDetailsRow)({
135
+ object: item,
136
+ subject,
137
+ issuer,
138
+ branding,
139
+ parentKey: parentKey ? `${parentKey}.${key}` : key,
140
+ depth: depth + 1,
141
+ }));
127
142
  }
128
143
  }
129
- else if (typeof value === 'object' && value !== null && value !== undefined) {
144
+ else if (typeof value === 'object' && value !== null) {
130
145
  const label = (_d = (_c = branding === null || branding === void 0 ? void 0 : branding.find(claim => claim.key === (parentKey ? `${parentKey}.${key}` : key))) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : key;
131
146
  rows.push({
132
147
  id: (0, uuid_1.v4)(),
@@ -134,7 +149,14 @@ const toCredentialDetailsRow = async (args) => {
134
149
  value: undefined,
135
150
  depth,
136
151
  });
137
- rows = rows.concat(await (0, exports.toCredentialDetailsRow)({ object: value, subject, issuer, branding, parentKey: parentKey ? `${parentKey}.${key}` : key, depth: depth + 1 }));
152
+ rows = rows.concat(await (0, exports.toCredentialDetailsRow)({
153
+ object: value,
154
+ subject,
155
+ issuer,
156
+ branding,
157
+ parentKey: parentKey ? `${parentKey}.${key}` : key,
158
+ depth: depth + 1,
159
+ }));
138
160
  }
139
161
  else {
140
162
  if (key === '0' || value === undefined || value === null) {
@@ -170,7 +192,7 @@ const toNonPersistedCredentialSummary = (args) => {
170
192
  branding,
171
193
  issuer,
172
194
  subject,
173
- linkedVp
195
+ linkedVp,
174
196
  });
175
197
  };
176
198
  exports.toNonPersistedCredentialSummary = toNonPersistedCredentialSummary;
@@ -267,7 +289,7 @@ const toCredentialSummary = async (args) => {
267
289
  image: logo,
268
290
  url,
269
291
  },
270
- linkedVp
292
+ linkedVp,
271
293
  };
272
294
  };
273
295
  exports.toCredentialSummary = toCredentialSummary;
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.171+f7cbb44",
4
+ "version": "0.4.1-unstable.178+c26430d",
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.36.1-next.159",
32
32
  "@sphereon/ssi-sdk.data-store-types": "0.36.1-next.159",
33
33
  "@sphereon/ssi-types": "0.36.1-next.159",
34
- "@sphereon/ui-components.core": "0.4.1-unstable.171+f7cbb44",
34
+ "@sphereon/ui-components.core": "0.4.1-unstable.178+c26430d",
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": "f7cbb440c40f1dcb7fe3e28b3888a403cefd9900"
54
+ "gitHead": "c26430d263889658635fd63f668816d9ef51413c"
55
55
  }