@veramo-community/react-components
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,c.get?c:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var t=e(require("react")),a=function(e){var a=e.credential;return t.createElement("div",{className:"message-embed"},t.createElement("div",{className:"embed-content"},t.createElement("div",{className:"embed-title description"},"🏆 Kudos to ",t.createElement("a",{href:a.credentialSubject.id},a.credentialSubject.name)),t.createElement("div",{className:"embed-description description"},a.credentialSubject.kudos),t.createElement("div",{className:"embed-footer"},t.createElement("img",{className:"footer-icon",src:a.credentialSubject.authorAvatar,alt:""}),t.createElement("a",{href:a.credentialSubject.authorId},a.credentialSubject.authorName),t.createElement("span",{className:"divider"},"•"),t.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.guildId,"/").concat(a.credentialSubject.channelId,"/").concat(a.id)},a.credentialSubject.channelName),t.createElement("span",{className:"divider"},"•"),t.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.guildId,"/").concat(a.credentialSubject.channelId,"/").concat(a.id)},a.credentialSubject.guildName))),t.createElement("div",{className:"embed-thumbnail"},t.createElement("div",{className:"avatar-large ".concat(a.credentialSubject.avatar&&""!==a.credentialSubject.avatar?"":"hidden")}," ",t.createElement("img",{src:a.credentialSubject.avatar})," ")))},c=function(e){var a=e.credential;return t.createElement("div",{className:"message-embed"},t.createElement("div",{className:"embed-content"},t.createElement("div",{className:"embed-title description"},"🏆 Kudos to ",t.createElement("a",{href:a.credentialSubject.discordUserId},a.credentialSubject.discordUserName)),t.createElement("div",{className:"embed-description description"},a.credentialSubject.kudos),t.createElement("div",{className:"embed-footer"},t.createElement("img",{className:"footer-icon",src:a.credentialSubject.discordAuthorAvatar,alt:""}),t.createElement("a",{href:a.credentialSubject.discordAuthorId},a.credentialSubject.discordAuthorName),t.createElement("span",{className:"divider"},"•"),t.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.discordGuildId,"/").concat(a.credentialSubject.discordChannelId,"/").concat(a.id)},a.credentialSubject.discordChannelName),t.createElement("span",{className:"divider"},"•"),t.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.discordGuildId,"/").concat(a.credentialSubject.discordChannelId,"/").concat(a.id)},a.credentialSubject.discordGuildName))),t.createElement("div",{className:"embed-thumbnail"},t.createElement("div",{className:"avatar-large ".concat(a.credentialSubject.discordUserAvatar&&""!==a.credentialSubject.discordUserAvatar?"":"hidden")}," ",t.createElement("img",{src:a.credentialSubject.discordUserAvatar})," ")))},r=function(e){var a=e.credential;return t.createElement("div",{className:"message-embed"},t.createElement("div",{className:"embed-content"},t.createElement("div",{className:"embed-title description"},a.type.join(", ")),t.createElement("div",{className:"embed-fields"},Object.entries(a.credentialSubject).map((function(e){var a=e[0],c=e[1];return t.createElement("div",{className:"embed-field",key:a},t.createElement("div",{className:"embed-field-name"},a),t.createElement("div",{className:"embed-field-value"},"object"==typeof c||Array.isArray(c)?JSON.stringify(c):c))})))))};exports.VerifiableCredential=function(e){var d,n,i=e.credential;return(null===(d=i.type)||void 0===d?void 0:d.includes("Kudos"))?t.createElement(a,{credential:i}):(null===(n=i.type)||void 0===n?void 0:n.includes("DiscordKudos"))?t.createElement(c,{credential:i}):t.createElement(r,{credential:i})}; | ||
"use strict";function e(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,c.get?c:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var t=e(require("react")),a=function(e){var a=e.credential;return t.createElement("div",{className:"message-embed"},t.createElement("div",{className:"embed-content"},t.createElement("div",{className:"embed-title description"},"🏆 Kudos to ",t.createElement("a",{href:a.credentialSubject.id},a.credentialSubject.name)),t.createElement("div",{className:"embed-description description"},a.credentialSubject.kudos),t.createElement("div",{className:"embed-footer"},t.createElement("img",{className:"footer-icon",src:a.credentialSubject.authorAvatar,alt:""}),t.createElement("a",{href:a.credentialSubject.authorId},a.credentialSubject.authorName),t.createElement("span",{className:"divider"},"•"),t.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.guildId,"/").concat(a.credentialSubject.channelId,"/").concat(a.id)},a.credentialSubject.channelName),t.createElement("span",{className:"divider"},"•"),t.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.guildId,"/").concat(a.credentialSubject.channelId,"/").concat(a.id)},a.credentialSubject.guildName))),t.createElement("div",{className:"embed-thumbnail"},t.createElement("div",{className:"avatar-large ".concat(a.credentialSubject.avatar&&""!==a.credentialSubject.avatar?"":"hidden")}," ",t.createElement("img",{src:a.credentialSubject.avatar})," ")))},c=function(e){var a=e.credential;return t.createElement("div",{className:"message-embed"},t.createElement("div",{className:"embed-content"},t.createElement("div",{className:"embed-title description"},"🏆 Kudos to ",t.createElement("a",{href:a.credentialSubject.discordUserId},a.credentialSubject.discordUserName)),t.createElement("div",{className:"embed-description description"},a.credentialSubject.kudos),t.createElement("div",{className:"embed-footer"},t.createElement("img",{className:"footer-icon",src:a.credentialSubject.discordAuthorAvatar,alt:""}),t.createElement("a",{href:a.credentialSubject.discordAuthorId},a.credentialSubject.discordAuthorName),t.createElement("span",{className:"divider"},"•"),t.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.discordGuildId,"/").concat(a.credentialSubject.discordChannelId,"/").concat(a.id)},a.credentialSubject.discordChannelName),t.createElement("span",{className:"divider"},"•"),t.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.discordGuildId,"/").concat(a.credentialSubject.discordChannelId,"/").concat(a.id)},a.credentialSubject.discordGuildName))),t.createElement("div",{className:"embed-thumbnail"},t.createElement("div",{className:"avatar-large ".concat(a.credentialSubject.discordUserAvatar&&""!==a.credentialSubject.discordUserAvatar?"":"hidden")}," ",t.createElement("img",{src:a.credentialSubject.discordUserAvatar})," ")))},r=function(e){var a=e.credential;return t.createElement("div",{className:"message-embed"},t.createElement("div",{className:"embed-content"},t.createElement("div",{className:"embed-title description"},a.type.join(", ")),t.createElement("div",{className:"embed-fields"},Object.entries(a.credentialSubject).map((function(e){var a=e[0],c=e[1];return t.createElement("div",{className:"embed-field",key:a},t.createElement("div",{className:"embed-field-name"},a),t.createElement("div",{className:"embed-field-value"},"object"==typeof c||Array.isArray(c)?JSON.stringify(c):c))})))))},d=function(e){var a=e.credential;return t.createElement("div",{className:"message-embed"},t.createElement("div",{className:"embed-content"},t.createElement("div",{className:"embed-fields"},Object.entries(a.credentialSubject).map((function(e){var a=e[0],c=e[1];return"picture"===a||"id"===a?null:t.createElement("div",{className:"embed-field",key:a},t.createElement("div",{className:"embed-field-name"},a),t.createElement("div",{className:"embed-field-value"},"object"==typeof c||Array.isArray(c)?JSON.stringify(c):c))})))),t.createElement("div",{className:"embed-thumbnail"},t.createElement("div",{className:"avatar-large ".concat(a.credentialSubject.picture&&""!==a.credentialSubject.picture?"":"hidden")}," ",t.createElement("img",{src:a.credentialSubject.picture})," ")))};exports.VerifiableCredential=function(e){var n,i,l,s=e.credential;return(null===(n=s.type)||void 0===n?void 0:n.includes("Kudos"))?t.createElement(a,{credential:s}):(null===(i=s.type)||void 0===i?void 0:i.includes("Profile"))?t.createElement(d,{credential:s}):(null===(l=s.type)||void 0===l?void 0:l.includes("DiscordKudos"))?t.createElement(c,{credential:s}):t.createElement(r,{credential:s})}; | ||
//# sourceMappingURL=index.js.map |
declare const _default: { | ||
credentialSubject: { | ||
name: string; | ||
email: string; | ||
bio: string; | ||
github: string; | ||
twitter: string; | ||
picture: string; | ||
id: string; | ||
@@ -10,3 +15,3 @@ }; | ||
type: string[]; | ||
'@context': string[]; | ||
"@context": string[]; | ||
issuanceDate: string; | ||
@@ -13,0 +18,0 @@ proof: { |
@@ -1,2 +0,2 @@ | ||
import*as e from"react";var t=function(t){var a=t.credential;return e.createElement("div",{className:"message-embed"},e.createElement("div",{className:"embed-content"},e.createElement("div",{className:"embed-title description"},"🏆 Kudos to ",e.createElement("a",{href:a.credentialSubject.id},a.credentialSubject.name)),e.createElement("div",{className:"embed-description description"},a.credentialSubject.kudos),e.createElement("div",{className:"embed-footer"},e.createElement("img",{className:"footer-icon",src:a.credentialSubject.authorAvatar,alt:""}),e.createElement("a",{href:a.credentialSubject.authorId},a.credentialSubject.authorName),e.createElement("span",{className:"divider"},"•"),e.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.guildId,"/").concat(a.credentialSubject.channelId,"/").concat(a.id)},a.credentialSubject.channelName),e.createElement("span",{className:"divider"},"•"),e.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.guildId,"/").concat(a.credentialSubject.channelId,"/").concat(a.id)},a.credentialSubject.guildName))),e.createElement("div",{className:"embed-thumbnail"},e.createElement("div",{className:"avatar-large ".concat(a.credentialSubject.avatar&&""!==a.credentialSubject.avatar?"":"hidden")}," ",e.createElement("img",{src:a.credentialSubject.avatar})," ")))},a=function(t){var a=t.credential;return e.createElement("div",{className:"message-embed"},e.createElement("div",{className:"embed-content"},e.createElement("div",{className:"embed-title description"},"🏆 Kudos to ",e.createElement("a",{href:a.credentialSubject.discordUserId},a.credentialSubject.discordUserName)),e.createElement("div",{className:"embed-description description"},a.credentialSubject.kudos),e.createElement("div",{className:"embed-footer"},e.createElement("img",{className:"footer-icon",src:a.credentialSubject.discordAuthorAvatar,alt:""}),e.createElement("a",{href:a.credentialSubject.discordAuthorId},a.credentialSubject.discordAuthorName),e.createElement("span",{className:"divider"},"•"),e.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.discordGuildId,"/").concat(a.credentialSubject.discordChannelId,"/").concat(a.id)},a.credentialSubject.discordChannelName),e.createElement("span",{className:"divider"},"•"),e.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.discordGuildId,"/").concat(a.credentialSubject.discordChannelId,"/").concat(a.id)},a.credentialSubject.discordGuildName))),e.createElement("div",{className:"embed-thumbnail"},e.createElement("div",{className:"avatar-large ".concat(a.credentialSubject.discordUserAvatar&&""!==a.credentialSubject.discordUserAvatar?"":"hidden")}," ",e.createElement("img",{src:a.credentialSubject.discordUserAvatar})," ")))},c=function(t){var a=t.credential;return e.createElement("div",{className:"message-embed"},e.createElement("div",{className:"embed-content"},e.createElement("div",{className:"embed-title description"},a.type.join(", ")),e.createElement("div",{className:"embed-fields"},Object.entries(a.credentialSubject).map((function(t){var a=t[0],c=t[1];return e.createElement("div",{className:"embed-field",key:a},e.createElement("div",{className:"embed-field-name"},a),e.createElement("div",{className:"embed-field-value"},"object"==typeof c||Array.isArray(c)?JSON.stringify(c):c))})))))},r=function(r){var d,n,i=r.credential;return(null===(d=i.type)||void 0===d?void 0:d.includes("Kudos"))?e.createElement(t,{credential:i}):(null===(n=i.type)||void 0===n?void 0:n.includes("DiscordKudos"))?e.createElement(a,{credential:i}):e.createElement(c,{credential:i})};export{r as VerifiableCredential}; | ||
import*as e from"react";var t=function(t){var a=t.credential;return e.createElement("div",{className:"message-embed"},e.createElement("div",{className:"embed-content"},e.createElement("div",{className:"embed-title description"},"🏆 Kudos to ",e.createElement("a",{href:a.credentialSubject.id},a.credentialSubject.name)),e.createElement("div",{className:"embed-description description"},a.credentialSubject.kudos),e.createElement("div",{className:"embed-footer"},e.createElement("img",{className:"footer-icon",src:a.credentialSubject.authorAvatar,alt:""}),e.createElement("a",{href:a.credentialSubject.authorId},a.credentialSubject.authorName),e.createElement("span",{className:"divider"},"•"),e.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.guildId,"/").concat(a.credentialSubject.channelId,"/").concat(a.id)},a.credentialSubject.channelName),e.createElement("span",{className:"divider"},"•"),e.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.guildId,"/").concat(a.credentialSubject.channelId,"/").concat(a.id)},a.credentialSubject.guildName))),e.createElement("div",{className:"embed-thumbnail"},e.createElement("div",{className:"avatar-large ".concat(a.credentialSubject.avatar&&""!==a.credentialSubject.avatar?"":"hidden")}," ",e.createElement("img",{src:a.credentialSubject.avatar})," ")))},a=function(t){var a=t.credential;return e.createElement("div",{className:"message-embed"},e.createElement("div",{className:"embed-content"},e.createElement("div",{className:"embed-title description"},"🏆 Kudos to ",e.createElement("a",{href:a.credentialSubject.discordUserId},a.credentialSubject.discordUserName)),e.createElement("div",{className:"embed-description description"},a.credentialSubject.kudos),e.createElement("div",{className:"embed-footer"},e.createElement("img",{className:"footer-icon",src:a.credentialSubject.discordAuthorAvatar,alt:""}),e.createElement("a",{href:a.credentialSubject.discordAuthorId},a.credentialSubject.discordAuthorName),e.createElement("span",{className:"divider"},"•"),e.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.discordGuildId,"/").concat(a.credentialSubject.discordChannelId,"/").concat(a.id)},a.credentialSubject.discordChannelName),e.createElement("span",{className:"divider"},"•"),e.createElement("a",{href:"https://discord.com/channels/".concat(a.credentialSubject.discordGuildId,"/").concat(a.credentialSubject.discordChannelId,"/").concat(a.id)},a.credentialSubject.discordGuildName))),e.createElement("div",{className:"embed-thumbnail"},e.createElement("div",{className:"avatar-large ".concat(a.credentialSubject.discordUserAvatar&&""!==a.credentialSubject.discordUserAvatar?"":"hidden")}," ",e.createElement("img",{src:a.credentialSubject.discordUserAvatar})," ")))},c=function(t){var a=t.credential;return e.createElement("div",{className:"message-embed"},e.createElement("div",{className:"embed-content"},e.createElement("div",{className:"embed-title description"},a.type.join(", ")),e.createElement("div",{className:"embed-fields"},Object.entries(a.credentialSubject).map((function(t){var a=t[0],c=t[1];return e.createElement("div",{className:"embed-field",key:a},e.createElement("div",{className:"embed-field-name"},a),e.createElement("div",{className:"embed-field-value"},"object"==typeof c||Array.isArray(c)?JSON.stringify(c):c))})))))},r=function(t){var a=t.credential;return e.createElement("div",{className:"message-embed"},e.createElement("div",{className:"embed-content"},e.createElement("div",{className:"embed-fields"},Object.entries(a.credentialSubject).map((function(t){var a=t[0],c=t[1];return"picture"===a||"id"===a?null:e.createElement("div",{className:"embed-field",key:a},e.createElement("div",{className:"embed-field-name"},a),e.createElement("div",{className:"embed-field-value"},"object"==typeof c||Array.isArray(c)?JSON.stringify(c):c))})))),e.createElement("div",{className:"embed-thumbnail"},e.createElement("div",{className:"avatar-large ".concat(a.credentialSubject.picture&&""!==a.credentialSubject.picture?"":"hidden")}," ",e.createElement("img",{src:a.credentialSubject.picture})," ")))},d=function(d){var n,i,l,s=d.credential;return(null===(n=s.type)||void 0===n?void 0:n.includes("Kudos"))?e.createElement(t,{credential:s}):(null===(i=s.type)||void 0===i?void 0:i.includes("Profile"))?e.createElement(r,{credential:s}):(null===(l=s.type)||void 0===l?void 0:l.includes("DiscordKudos"))?e.createElement(a,{credential:s}):e.createElement(c,{credential:s})};export{d as VerifiableCredential}; | ||
//# sourceMappingURL=index.js.map |
declare const _default: { | ||
credentialSubject: { | ||
name: string; | ||
email: string; | ||
bio: string; | ||
github: string; | ||
twitter: string; | ||
picture: string; | ||
id: string; | ||
@@ -10,3 +15,3 @@ }; | ||
type: string[]; | ||
'@context': string[]; | ||
"@context": string[]; | ||
issuanceDate: string; | ||
@@ -13,0 +18,0 @@ proof: { |
{ | ||
"name": "@veramo-community/react-components", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "React components for rendering verifiable credentials and other related data", | ||
@@ -56,3 +56,3 @@ "publishConfig": { | ||
"@types/react": "^18.0.28", | ||
"@veramo/core": "^4.3.0", | ||
"@veramo/core": "^5.4.1", | ||
"babel-jest": "^29.5.0", | ||
@@ -59,0 +59,0 @@ "babel-loader": "^8.3.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33755
35
491