@veramo-community/react-components
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var n=e(require("react")),t=function(e){var t=e.credential;return n.createElement("div",{className:"message-embed"},n.createElement("div",{className:"embed-content"},n.createElement("div",{className:"embed-title description"},"🏆 Kudos to ",n.createElement("a",{href:t.credentialSubject.id},t.credentialSubject.name)),n.createElement("div",{className:"embed-description description"},t.credentialSubject.kudos),n.createElement("div",{className:"embed-footer"},n.createElement("img",{className:"footer-icon",src:t.credentialSubject.authorAvatar,alt:""}),n.createElement("a",{href:t.credentialSubject.authorId},t.credentialSubject.authorName),n.createElement("span",{className:"divider"},"•"),n.createElement("a",{href:"https://discord.com/channels/".concat(t.credentialSubject.guildId,"/").concat(t.credentialSubject.channelId,"/").concat(t.id)},t.credentialSubject.channelName),n.createElement("span",{className:"divider"},"•"),n.createElement("a",{href:"https://discord.com/channels/".concat(t.credentialSubject.guildId,"/").concat(t.credentialSubject.channelId,"/").concat(t.id)},t.credentialSubject.guildName))),n.createElement("div",{className:"embed-thumbnail"},n.createElement("div",{className:"avatar-large"}," ",n.createElement("img",{src:t.credentialSubject.avatar})," ")))},a=function(e){var t=e.credential;return n.createElement("div",{className:"message-embed"},n.createElement("div",{className:"embed-content"},n.createElement("div",{className:"embed-title description"},t.type.join(", ")),n.createElement("div",{className:"embed-fields"},Object.entries(t.credentialSubject).map((function(e){var t=e[0],a=e[1];return n.createElement("div",{className:"embed-field",key:t},n.createElement("div",{className:"embed-field-name"},t),n.createElement("div",{className:"embed-field-value"},"object"==typeof a||Array.isArray(a)?JSON.stringify(a):a))})))))};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}('\n.avatar-large img, .avatar-large svg {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n display:block\n}\n\n.hidden {\n display:none !important\n}\n\n.message-embed {\n font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n padding: 16px;\n border-radius: 4px;\n background: #36393f;\n color: #fff;\n box-shadow: 0px 4px 8px rgba(0, 0, 0, .3);\n border-left: 4px solid #73C394;\n display: flex;\n align-items: flex-start;\n margin-top:8px\n}\n\n.embed-title {\n font-weight: 500;\n word-break:break-word\n}\n\n.embed-description {\n margin-top: 16px;\n color: #ddd;\n font-size: 14px;\n word-break:break-word\n}\n\na[href] {\n color:#1eb1f1\n}\n\n.embed-footer a[href] {\n color:#fff;\n text-decoration: none;\n}\n.embed-fields .embed-field {\n margin-top: 16px;\n font-size:14px\n}\n\n.embed-fields .embed-field .embed-field-name {\n font-weight:500\n}\n\n.embed-fields .embed-field .embed-field-value {\n margin-top: 4px;\n word-break:break-word\n}\n\n.embed-fields .embed-field.inline {\n display: inline-block;\n margin-right:16px\n}\n\n.embed-thumbnail {\n margin-left: auto;\n padding-left:16px\n}\n\n.embed-author {\n display: flex;\n align-items: center;\n font-size:14px\n}\n\n.embed-author a[href] {\n color:#fff\n}\n\n.embed-author .author-image {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n margin-right: 8px;\n object-fit:cover\n}\n\n.embed-footer {\n display: flex;\n align-items: center;\n margin-top: 8px;\n font-size:10px\n}\n\n.embed-footer .footer-icon {\n width: 16px;\n height: 16px;\n border-radius: 50%;\n display: inline-block;\n margin-right: 8px;\n flex-shrink: 0;\n object-fit:cover\n}\n\n.embed-footer .divider {\n margin:0 8px\n}\n\n.avatar-large {\n width: 64px;\n height: 64px;\n overflow: hidden;\n border-radius: 4px;\n flex-shrink:0\n}');exports.VerifiableCredential=function(e){var r,i=e.credential;return(null===(r=i.type)||void 0===r?void 0:r.includes("Kudos"))?n.createElement(t,{credential:i}):n.createElement(a,{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"},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 r,n=e.credential;return(null===(r=n.type)||void 0===r?void 0:r.includes("Kudos"))?t.createElement(a,{credential:n}):t.createElement(c,{credential:n})}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import*as e from"react";var n=function(n){var t=n.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:t.credentialSubject.id},t.credentialSubject.name)),e.createElement("div",{className:"embed-description description"},t.credentialSubject.kudos),e.createElement("div",{className:"embed-footer"},e.createElement("img",{className:"footer-icon",src:t.credentialSubject.authorAvatar,alt:""}),e.createElement("a",{href:t.credentialSubject.authorId},t.credentialSubject.authorName),e.createElement("span",{className:"divider"},"•"),e.createElement("a",{href:"https://discord.com/channels/".concat(t.credentialSubject.guildId,"/").concat(t.credentialSubject.channelId,"/").concat(t.id)},t.credentialSubject.channelName),e.createElement("span",{className:"divider"},"•"),e.createElement("a",{href:"https://discord.com/channels/".concat(t.credentialSubject.guildId,"/").concat(t.credentialSubject.channelId,"/").concat(t.id)},t.credentialSubject.guildName))),e.createElement("div",{className:"embed-thumbnail"},e.createElement("div",{className:"avatar-large"}," ",e.createElement("img",{src:t.credentialSubject.avatar})," ")))},t=function(n){var t=n.credential;return e.createElement("div",{className:"message-embed"},e.createElement("div",{className:"embed-content"},e.createElement("div",{className:"embed-title description"},t.type.join(", ")),e.createElement("div",{className:"embed-fields"},Object.entries(t.credentialSubject).map((function(n){var t=n[0],a=n[1];return e.createElement("div",{className:"embed-field",key:t},e.createElement("div",{className:"embed-field-name"},t),e.createElement("div",{className:"embed-field-value"},"object"==typeof a||Array.isArray(a)?JSON.stringify(a):a))})))))};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}('\n.avatar-large img, .avatar-large svg {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n display:block\n}\n\n.hidden {\n display:none !important\n}\n\n.message-embed {\n font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n padding: 16px;\n border-radius: 4px;\n background: #36393f;\n color: #fff;\n box-shadow: 0px 4px 8px rgba(0, 0, 0, .3);\n border-left: 4px solid #73C394;\n display: flex;\n align-items: flex-start;\n margin-top:8px\n}\n\n.embed-title {\n font-weight: 500;\n word-break:break-word\n}\n\n.embed-description {\n margin-top: 16px;\n color: #ddd;\n font-size: 14px;\n word-break:break-word\n}\n\na[href] {\n color:#1eb1f1\n}\n\n.embed-footer a[href] {\n color:#fff;\n text-decoration: none;\n}\n.embed-fields .embed-field {\n margin-top: 16px;\n font-size:14px\n}\n\n.embed-fields .embed-field .embed-field-name {\n font-weight:500\n}\n\n.embed-fields .embed-field .embed-field-value {\n margin-top: 4px;\n word-break:break-word\n}\n\n.embed-fields .embed-field.inline {\n display: inline-block;\n margin-right:16px\n}\n\n.embed-thumbnail {\n margin-left: auto;\n padding-left:16px\n}\n\n.embed-author {\n display: flex;\n align-items: center;\n font-size:14px\n}\n\n.embed-author a[href] {\n color:#fff\n}\n\n.embed-author .author-image {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n margin-right: 8px;\n object-fit:cover\n}\n\n.embed-footer {\n display: flex;\n align-items: center;\n margin-top: 8px;\n font-size:10px\n}\n\n.embed-footer .footer-icon {\n width: 16px;\n height: 16px;\n border-radius: 50%;\n display: inline-block;\n margin-right: 8px;\n flex-shrink: 0;\n object-fit:cover\n}\n\n.embed-footer .divider {\n margin:0 8px\n}\n\n.avatar-large {\n width: 64px;\n height: 64px;\n overflow: hidden;\n border-radius: 4px;\n flex-shrink:0\n}');var a=function(a){var r,i=a.credential;return(null===(r=i.type)||void 0===r?void 0:r.includes("Kudos"))?e.createElement(n,{credential:i}):e.createElement(t,{credential:i})};export{a 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"},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))})))))},c=function(c){var n,r=c.credential;return(null===(n=r.type)||void 0===n?void 0:n.includes("Kudos"))?e.createElement(t,{credential:r}):e.createElement(a,{credential:r})};export{c as VerifiableCredential}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@veramo-community/react-components", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "React components for rendering verifiable credentials and other related data", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
29
377
1
21489