@learncard/react 2.10.2 → 2.10.4
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/README.md +10 -10
- package/dist/base.css +1 -1
- package/dist/base.js +1 -1
- package/dist/cjs/{BoostGenericCard-52b35509.js → BoostGenericCard-5a07339f.js} +2 -2
- package/dist/cjs/{BoostGenericCard-52b35509.js.map → BoostGenericCard-5a07339f.js.map} +1 -1
- package/dist/cjs/{CertificateDisplayCard-2c6f5a4b.js → CertificateDisplayCard-a7940558.js} +4 -4
- package/dist/cjs/{CertificateDisplayCard-2c6f5a4b.js.map → CertificateDisplayCard-a7940558.js.map} +1 -1
- package/dist/cjs/CircleIcon-f0fa68c7.js.map +1 -1
- package/dist/cjs/{LearnCardCreditCardFrontFace-aca1b7bc.js → LearnCardCreditCardFrontFace-75fb4e44.js} +2 -2
- package/dist/cjs/{LearnCardCreditCardFrontFace-aca1b7bc.js.map → LearnCardCreditCardFrontFace-75fb4e44.js.map} +1 -1
- package/dist/cjs/{MeritBadgeDisplayCard-62ac8ad6.js → MeritBadgeDisplayCard-1c614da9.js} +4 -4
- package/dist/cjs/{MeritBadgeDisplayCard-62ac8ad6.js.map → MeritBadgeDisplayCard-1c614da9.js.map} +1 -1
- package/dist/cjs/{MeritBadgeSkillsCount-65786c6c.js → MeritBadgeSkillsCount-4dabf982.js} +2 -2
- package/dist/cjs/{MeritBadgeSkillsCount-65786c6c.js.map → MeritBadgeSkillsCount-4dabf982.js.map} +1 -1
- package/dist/cjs/{QRCodeCard-f0079bd9.js → QRCodeCard-2378411e.js} +2 -2
- package/dist/cjs/{QRCodeCard-f0079bd9.js.map → QRCodeCard-2378411e.js.map} +1 -1
- package/dist/cjs/{SchoolIDCard-dddb3b1d.js → SchoolIDCard-2d3cbb2c.js} +12 -7
- package/dist/cjs/SchoolIDCard-2d3cbb2c.js.map +1 -0
- package/dist/cjs/{VCCard-46e4212e.js → VCCard-5bb95d29.js} +3 -3
- package/dist/cjs/{VCCard-46e4212e.js.map → VCCard-5bb95d29.js.map} +1 -1
- package/dist/cjs/{VCDisplayBackFace-bcaeae1c.js → VCDisplayBackFace-864c35d5.js} +3 -3
- package/dist/cjs/{VCDisplayBackFace-bcaeae1c.js.map → VCDisplayBackFace-864c35d5.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard-ce16bd9e.js → VCDisplayCard-15af27c6.js} +3 -3
- package/dist/cjs/{VCDisplayCard-ce16bd9e.js.map → VCDisplayCard-15af27c6.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard2-e8e84f7e.js → VCDisplayCard2-f3f5c6c4.js} +28 -23
- package/dist/cjs/VCDisplayCard2-f3f5c6c4.js.map +1 -0
- package/dist/cjs/{VCVerificationPill-40c09268.js → VCVerificationPill-20ed4d3c.js} +2 -2
- package/dist/cjs/{VCVerificationPill-40c09268.js.map → VCVerificationPill-20ed4d3c.js.map} +1 -1
- package/dist/cjs/{VerifierStateBadgeAndText-db7a1881.js → VerifierStateBadgeAndText-de5bd85f.js} +4771 -2863
- package/dist/cjs/VerifierStateBadgeAndText-de5bd85f.js.map +1 -0
- package/dist/cjs/{credential.helpers-62edac8a.js → credential.helpers-b4d27c8a.js} +3 -3
- package/dist/cjs/credential.helpers-b4d27c8a.js.map +1 -0
- package/dist/cjs/{index-ec1d26f1.js → index-330dcb9c.js} +1 -1
- package/dist/cjs/index-330dcb9c.js.map +1 -0
- package/dist/cjs/{index-838fa72c.js → index-47efbf5b.js} +1 -1
- package/dist/cjs/index-47efbf5b.js.map +1 -0
- package/dist/cjs/{index-0cac2c5b.js → index-da255c9a.js} +1 -1
- package/dist/cjs/index-da255c9a.js.map +1 -0
- package/dist/cjs/index.js +18 -18
- package/dist/cjs/index14.js +18 -18
- package/dist/cjs/index18.js +2 -2
- package/dist/cjs/index22.js +6 -6
- package/dist/cjs/index28.js +2 -2
- package/dist/cjs/index31.js +2 -2
- package/dist/cjs/index39.js +12 -12
- package/dist/cjs/index4.js +4 -4
- package/dist/cjs/index40.js +5 -5
- package/dist/cjs/index41.js +6 -6
- package/dist/cjs/index42.js +8 -8
- package/dist/cjs/index43.js +2 -2
- package/dist/cjs/index46.js +2 -2
- package/dist/cjs/index7.js +5 -5
- package/dist/cjs/{types.esm-60d3a9fc.js → types.esm-40b77196.js} +3833 -375
- package/dist/cjs/types.esm-40b77196.js.map +1 -0
- package/dist/esm/{BoostGenericCard-18e140ec.js → BoostGenericCard-997af0f5.js} +2 -2
- package/dist/esm/{BoostGenericCard-18e140ec.js.map → BoostGenericCard-997af0f5.js.map} +1 -1
- package/dist/esm/{CertificateDisplayCard-d49f9c9c.js → CertificateDisplayCard-d764151e.js} +4 -4
- package/dist/esm/{CertificateDisplayCard-d49f9c9c.js.map → CertificateDisplayCard-d764151e.js.map} +1 -1
- package/dist/esm/CircleIcon-abd5ff06.js.map +1 -1
- package/dist/esm/{LearnCardCreditCardFrontFace-b7c917f5.js → LearnCardCreditCardFrontFace-13d29504.js} +2 -2
- package/dist/esm/{LearnCardCreditCardFrontFace-b7c917f5.js.map → LearnCardCreditCardFrontFace-13d29504.js.map} +1 -1
- package/dist/esm/{MeritBadgeDisplayCard-f72efa12.js → MeritBadgeDisplayCard-907627ed.js} +4 -4
- package/dist/esm/{MeritBadgeDisplayCard-f72efa12.js.map → MeritBadgeDisplayCard-907627ed.js.map} +1 -1
- package/dist/esm/{MeritBadgeSkillsCount-395deb31.js → MeritBadgeSkillsCount-9474bd51.js} +2 -2
- package/dist/esm/{MeritBadgeSkillsCount-395deb31.js.map → MeritBadgeSkillsCount-9474bd51.js.map} +1 -1
- package/dist/esm/{QRCodeCard-8f29c3c7.js → QRCodeCard-3abf9f33.js} +2 -2
- package/dist/esm/{QRCodeCard-8f29c3c7.js.map → QRCodeCard-3abf9f33.js.map} +1 -1
- package/dist/esm/{SchoolIDCard-4e51671c.js → SchoolIDCard-fbd1cf6c.js} +12 -7
- package/dist/esm/SchoolIDCard-fbd1cf6c.js.map +1 -0
- package/dist/esm/{VCCard-5153f069.js → VCCard-ce4b451d.js} +3 -3
- package/dist/esm/{VCCard-5153f069.js.map → VCCard-ce4b451d.js.map} +1 -1
- package/dist/esm/{VCDisplayBackFace-986b439b.js → VCDisplayBackFace-e347145c.js} +3 -3
- package/dist/esm/{VCDisplayBackFace-986b439b.js.map → VCDisplayBackFace-e347145c.js.map} +1 -1
- package/dist/esm/{VCDisplayCard-eaa782c4.js → VCDisplayCard-3002776b.js} +3 -3
- package/dist/esm/{VCDisplayCard-eaa782c4.js.map → VCDisplayCard-3002776b.js.map} +1 -1
- package/dist/esm/{VCDisplayCard2-006e7a8c.js → VCDisplayCard2-db880bbb.js} +28 -23
- package/dist/esm/VCDisplayCard2-db880bbb.js.map +1 -0
- package/dist/esm/{VCVerificationPill-80c774e2.js → VCVerificationPill-5a05423b.js} +2 -2
- package/dist/esm/{VCVerificationPill-80c774e2.js.map → VCVerificationPill-5a05423b.js.map} +1 -1
- package/dist/esm/{VerifierStateBadgeAndText-a1bd5f0c.js → VerifierStateBadgeAndText-bd1b0131.js} +4771 -2863
- package/dist/esm/VerifierStateBadgeAndText-bd1b0131.js.map +1 -0
- package/dist/esm/{credential.helpers-b6acd108.js → credential.helpers-26e1a359.js} +3 -3
- package/dist/esm/credential.helpers-26e1a359.js.map +1 -0
- package/dist/esm/{index-2ef835bd.js → index-bc6b8b0b.js} +1 -1
- package/dist/{cjs/index-ec1d26f1.js.map → esm/index-bc6b8b0b.js.map} +1 -1
- package/dist/esm/{index-eae3ca64.js → index-cb3a593b.js} +1 -1
- package/dist/esm/index-cb3a593b.js.map +1 -0
- package/dist/esm/{index-4fa491c1.js → index-cbd2e9db.js} +1 -1
- package/dist/esm/index-cbd2e9db.js.map +1 -0
- package/dist/esm/index.js +18 -18
- package/dist/esm/index14.js +18 -18
- package/dist/esm/index18.js +2 -2
- package/dist/esm/index22.js +6 -6
- package/dist/esm/index28.js +2 -2
- package/dist/esm/index31.js +2 -2
- package/dist/esm/index39.js +12 -12
- package/dist/esm/index4.js +4 -4
- package/dist/esm/index40.js +5 -5
- package/dist/esm/index41.js +6 -6
- package/dist/esm/index42.js +8 -8
- package/dist/esm/index43.js +2 -2
- package/dist/esm/index46.js +2 -2
- package/dist/esm/index7.js +5 -5
- package/dist/esm/{types.esm-59c23f9b.js → types.esm-13bb929b.js} +3833 -375
- package/dist/esm/types.esm-13bb929b.js.map +1 -0
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +102 -87
- package/src/assets/icons/accommodationsIcon.svg +5 -0
- package/src/assets/icons/accomplishmentsIcon.svg +4 -0
- package/src/assets/icons/achievementsIcon.svg +7 -0
- package/src/assets/icons/coursesIcon.svg +5 -0
- package/src/assets/icons/eventsIcon.svg +6 -0
- package/src/assets/icons/experiencesIcon.svg +4 -0
- package/src/assets/icons/goalsIcon.svg +5 -0
- package/src/assets/icons/idIcon.svg +4 -0
- package/src/assets/icons/membershipsIcon.svg +4 -0
- package/src/assets/icons/relationshipsIcon.svg +6 -0
- package/src/assets/icons/skillsIcon.svg +3 -0
- package/src/assets/icons/socialBadgesIcon.svg +7 -0
- package/src/assets/images/Accommodation-Hands.png +0 -0
- package/src/assets/images/ArrowArcLeft.svg +4 -0
- package/src/assets/images/ArrowArcRight.svg +4 -0
- package/src/assets/images/CaretRight.svg +3 -0
- package/src/assets/images/CaretRightFilled.svg +3 -0
- package/src/assets/images/DotsThreeOutline.svg +5 -0
- package/src/assets/images/GreenCheckCircle.svg +4 -0
- package/src/assets/images/RedXCircle.svg +5 -0
- package/src/assets/images/X.svg +4 -0
- package/src/assets/images/YellowWarningCircle.svg +4 -0
- package/src/assets/images/addawardlight.svg +8 -0
- package/src/assets/images/agriculture.png +0 -0
- package/src/assets/images/apple.png +0 -0
- package/src/assets/images/athletics.png +0 -0
- package/src/assets/images/award.svg +3 -0
- package/src/assets/images/backpack.png +0 -0
- package/src/assets/images/badge.png +0 -0
- package/src/assets/images/briefcase.svg +6 -0
- package/src/assets/images/business.png +0 -0
- package/src/assets/images/card-chip.svg +26 -0
- package/src/assets/images/check.svg +17 -0
- package/src/assets/images/coins.svg +3 -0
- package/src/assets/images/contactless-symbol.svg +3 -0
- package/src/assets/images/creative.png +0 -0
- package/src/assets/images/digital.png +0 -0
- package/src/assets/images/durable.png +0 -0
- package/src/assets/images/emptystate-death.png +0 -0
- package/src/assets/images/emptystate-dinocandle.png +0 -0
- package/src/assets/images/emptystate-ghost1.png +0 -0
- package/src/assets/images/eventsGraphic.png +0 -0
- package/src/assets/images/experience-mountain.png +0 -0
- package/src/assets/images/goals-target.png +0 -0
- package/src/assets/images/gradcaplight.svg +3 -0
- package/src/assets/images/graduation.svg +3 -0
- package/src/assets/images/icon.green.fat-arrow.png +0 -0
- package/src/assets/images/id-purple.png +0 -0
- package/src/assets/images/id-sleeve.png +0 -0
- package/src/assets/images/key-icon.svg +4 -0
- package/src/assets/images/lhplaceholder.png +0 -0
- package/src/assets/images/lightbulb.svg +3 -0
- package/src/assets/images/loveyou-icon.svg +5 -0
- package/src/assets/images/master-card-logo.svg +20 -0
- package/src/assets/images/medical.png +0 -0
- package/src/assets/images/membership-graphic.png +0 -0
- package/src/assets/images/membership-key.svg +9 -0
- package/src/assets/images/minigradcapcolored.svg +3 -0
- package/src/assets/images/minijob.svg +5 -0
- package/src/assets/images/minipuzzle.svg +3 -0
- package/src/assets/images/minipuzzlecolored.svg +3 -0
- package/src/assets/images/minitrophy.svg +3 -0
- package/src/assets/images/minitrophycolored.svg +3 -0
- package/src/assets/images/motlow-buckcard-bg.svg +32 -0
- package/src/assets/images/mountains-icon.svg +4 -0
- package/src/assets/images/photoplaceholder.png +0 -0
- package/src/assets/images/puzzle-icon.svg +3 -0
- package/src/assets/images/relationships-cats.png +0 -0
- package/src/assets/images/sample-badge.png +0 -0
- package/src/assets/images/skillgraph.svg +29 -0
- package/src/assets/images/skillplaceholder.png +0 -0
- package/src/assets/images/social-badge-2.png +0 -0
- package/src/assets/images/social-badge.png +0 -0
- package/src/assets/images/social-icon.svg +7 -0
- package/src/assets/images/social.png +0 -0
- package/src/assets/images/stem.png +0 -0
- package/src/assets/images/target-icon.svg +5 -0
- package/src/assets/images/trade.png +0 -0
- package/src/assets/images/trophy.svg +3 -0
- package/src/assets/images/user.svg +4 -0
- package/src/assets/images/users-icon.svg +6 -0
- package/src/assets/images/vc.check.svg +10 -0
- package/src/assets/images/verified-check.png +0 -0
- package/src/assets/images/walletTrophy.png +0 -0
- package/src/assets/images/walletcurrency.webp +0 -0
- package/src/assets/images/walletids.webp +0 -0
- package/src/assets/images/walletjobhistory.webp +0 -0
- package/src/assets/images/walletskills.webp +0 -0
- package/src/assets/styles/base.css +2 -0
- package/src/assets/styles/main.css +475 -0
- package/src/components/AchievementCard/AchievementCard.stories.tsx +31 -0
- package/src/components/AchievementCard/AchievementCard.tsx +88 -0
- package/src/components/AchievementCard/index.ts +5 -0
- package/src/components/BadgeThumbnailImg/BadgeThumbnailImg.test.tsx +47 -0
- package/src/components/BadgeThumbnailImg/BadgeThumbnailImg.tsx +72 -0
- package/src/components/BadgeThumbnailImg/index.ts +5 -0
- package/src/components/BoostGenericCard/AlignmentSkillsCount.tsx +54 -0
- package/src/components/BoostGenericCard/BoostGenericCard.stories.tsx +39 -0
- package/src/components/BoostGenericCard/BoostGenericCard.tsx +177 -0
- package/src/components/BoostGenericCard/index.ts +6 -0
- package/src/components/BoostSmallCard/BoostSmallCard.stories.tsx +57 -0
- package/src/components/BoostSmallCard/BoostSmallCard.tsx +178 -0
- package/src/components/BoostSmallCard/index.ts +5 -0
- package/src/components/Button/Button.stories.tsx +20 -0
- package/src/components/Button/Button.test.tsx +15 -0
- package/src/components/Button/Button.tsx +21 -0
- package/src/components/Button/index.ts +5 -0
- package/src/components/CertificateDisplayCard/AlignmentRow.tsx +26 -0
- package/src/components/CertificateDisplayCard/AlignmentsBox.tsx +70 -0
- package/src/components/CertificateDisplayCard/CertDisplayCardSkillsCount.tsx +66 -0
- package/src/components/CertificateDisplayCard/CertificateBackFace.tsx +130 -0
- package/src/components/CertificateDisplayCard/CertificateCornerIcon.tsx +48 -0
- package/src/components/CertificateDisplayCard/CertificateDisplayCard.stories.tsx +21 -0
- package/src/components/CertificateDisplayCard/CertificateDisplayCard.tsx +180 -0
- package/src/components/CertificateDisplayCard/CertificateFrontFace.tsx +308 -0
- package/src/components/CertificateDisplayCard/CertificateImageDisplay.test.tsx +43 -0
- package/src/components/CertificateDisplayCard/CertificateImageDisplay.tsx +68 -0
- package/src/components/CertificateDisplayCard/CertificateProfileImageDisplay.test.tsx +66 -0
- package/src/components/CertificateDisplayCard/CertificateProfileImageDisplay.tsx +64 -0
- package/src/components/CertificateDisplayCard/CertificateRibbon.tsx +43 -0
- package/src/components/CertificateDisplayCard/InfoBox.tsx +30 -0
- package/src/components/CertificateDisplayCard/MediaAttachmentsBox.tsx +347 -0
- package/src/components/CertificateDisplayCard/TruncateTextBox.tsx +73 -0
- package/src/components/CertificateDisplayCard/VerificationRow.tsx +67 -0
- package/src/components/CertificateDisplayCard/VerificationsBox.tsx +44 -0
- package/src/components/CertificateDisplayCard/VerifierStateBadgeAndText.tsx +100 -0
- package/src/components/CertificateDisplayCard/index.ts +20 -0
- package/src/components/CircleCheckButton/CircleCheckButton.stories.tsx +21 -0
- package/src/components/CircleCheckButton/CircleCheckButton.tsx +28 -0
- package/src/components/CircleCheckButton/index.ts +5 -0
- package/src/components/CircleIcon/CircleIcon.tsx +90 -0
- package/src/components/CircleIcon/__tests__/CircleIcon.test.tsx +38 -0
- package/src/components/CircleIcon/ci new +0 -0
- package/src/components/CircleIcon/index.ts +5 -0
- package/src/components/CourseCard/CourseCard.stories.tsx +23 -0
- package/src/components/CourseCard/CourseCard.tsx +94 -0
- package/src/components/CourseCard/index.ts +5 -0
- package/src/components/CourseVerticalCard/CourseVerticalCard.stories.tsx +31 -0
- package/src/components/CourseVerticalCard/CourseVerticalCard.tsx +118 -0
- package/src/components/CourseVerticalCard/index.ts +5 -0
- package/src/components/FlippyCard/FlippyCard.tsx +34 -0
- package/src/components/FlippyCard/__tests__/FlippyCard.test.tsx +41 -0
- package/src/components/FlippyCard/index.ts +5 -0
- package/src/components/GenericCard/GenericCard.stories.tsx +22 -0
- package/src/components/GenericCard/GenericCard.tsx +72 -0
- package/src/components/GenericCard/index.ts +5 -0
- package/src/components/JobHistoryCard/JobHistoryCard.stories.tsx +26 -0
- package/src/components/JobHistoryCard/JobHistoryCard.tsx +44 -0
- package/src/components/JobHistoryCard/index.ts +5 -0
- package/src/components/JobListCard/JobListCard.stories.tsx +54 -0
- package/src/components/JobListCard/JobListCard.tsx +162 -0
- package/src/components/JobListCard/index.ts +5 -0
- package/src/components/LearnCardCreditCardBackFace/LearnCardCreditCardBackFace.stories.tsx +31 -0
- package/src/components/LearnCardCreditCardBackFace/LearnCardCreditCardBackFace.tsx +104 -0
- package/src/components/LearnCardCreditCardBackFace/__tests__/LearnCardCreditCardBackFace.test.tsx +64 -0
- package/src/components/LearnCardCreditCardBackFace/index.ts +6 -0
- package/src/components/LearnCardCreditCardBackFace/types.ts +45 -0
- package/src/components/LearnCardCreditCardFrontFace/LearnCardCreditCardFrontFace.stories.tsx +28 -0
- package/src/components/LearnCardCreditCardFrontFace/LearnCardCreditCardFrontFace.tsx +102 -0
- package/src/components/LearnCardCreditCardFrontFace/__tests__/LearnCardCreditCardFrontFace.test.tsx +48 -0
- package/src/components/LearnCardCreditCardFrontFace/index.ts +6 -0
- package/src/components/LearnCardCreditCardFrontFace/types.ts +42 -0
- package/src/components/LearnPill/LearnPill.stories.tsx +20 -0
- package/src/components/LearnPill/LearnPill.tsx +35 -0
- package/src/components/LearnPill/index.ts +5 -0
- package/src/components/Lightbox/Lightbox.tsx +133 -0
- package/src/components/Lightbox/index.ts +5 -0
- package/src/components/Loading/CircleSpinner.tsx +52 -0
- package/src/components/Loading/index.ts +5 -0
- package/src/components/MeritBadgeDisplayCard/AlignmentRow.tsx +26 -0
- package/src/components/MeritBadgeDisplayCard/AlignmentsBox.tsx +70 -0
- package/src/components/MeritBadgeDisplayCard/InfoBox.tsx +30 -0
- package/src/components/MeritBadgeDisplayCard/MediaAttachmentsBox.tsx +347 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeBackFace.tsx +130 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeCornerIcon.tsx +46 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeDisplayCard.tsx +177 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeFrontFace.tsx +292 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeImageDisplay.tsx +22 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeProfileImageDisplay.test.tsx +70 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeProfileImageDisplay.tsx +66 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeRibbon.tsx +185 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeSkillsCount.tsx +47 -0
- package/src/components/MeritBadgeDisplayCard/TruncateTextBox.tsx +73 -0
- package/src/components/MeritBadgeDisplayCard/VerificationRow.tsx +67 -0
- package/src/components/MeritBadgeDisplayCard/VerificationsBox.tsx +44 -0
- package/src/components/MeritBadgeDisplayCard/VerifierStateBadgeAndText.tsx +57 -0
- package/src/components/MeritBadgeDisplayCard/index.ts +20 -0
- package/src/components/MiniVCThumbnail/ MiniVCThumbnail.css +18 -0
- package/src/components/MiniVCThumbnail/ MiniVCThumbnail.stories.tsx +24 -0
- package/src/components/MiniVCThumbnail/MiniVCThumbnail.tsx +83 -0
- package/src/components/MiniVCThumbnail/__tests__/MiniVCThumbnail.test.tsx +59 -0
- package/src/components/MiniVCThumbnail/index.ts +6 -0
- package/src/components/MiniVCThumbnail/types.ts +32 -0
- package/src/components/Notification/Notification.stories.tsx +25 -0
- package/src/components/Notification/Notification.tsx +115 -0
- package/src/components/Notification/__tests__/Notification.test.tsx +111 -0
- package/src/components/Notification/index.ts +6 -0
- package/src/components/Notification/types.ts +97 -0
- package/src/components/NotificationBoostCard/NotificationBoostCard.stories.tsx +54 -0
- package/src/components/NotificationBoostCard/NotificationBoostCard.tsx +153 -0
- package/src/components/NotificationBoostCard/index.ts +6 -0
- package/src/components/NotificationBoostCard/types.ts +25 -0
- package/src/components/NotificationUserAcceptedBoostCard/NotificationUserAcceptedBoostCard.stories.tsx +28 -0
- package/src/components/NotificationUserAcceptedBoostCard/NotificationUserAcceptedBoostCard.tsx +96 -0
- package/src/components/NotificationUserAcceptedBoostCard/index.ts +6 -0
- package/src/components/NotificationUserAcceptedBoostCard/types.ts +13 -0
- package/src/components/NotificationUserCard/NotificationUserCard.stories.tsx +26 -0
- package/src/components/NotificationUserCard/NotificationUserCard.tsx +121 -0
- package/src/components/NotificationUserCard/index.ts +6 -0
- package/src/components/NotificationUserCard/types.ts +43 -0
- package/src/components/QRCodeCard/QRCodeCard.stories.tsx +26 -0
- package/src/components/QRCodeCard/QRCodeCard.tsx +54 -0
- package/src/components/QRCodeCard/__tests__/QRCodeCard.test.tsx +31 -0
- package/src/components/QRCodeCard/index.ts +6 -0
- package/src/components/QRCodeCard/types.ts +22 -0
- package/src/components/RoundedPill/RoundedPill.stories.tsx +21 -0
- package/src/components/RoundedPill/RoundedPill.tsx +137 -0
- package/src/components/RoundedPill/index.ts +5 -0
- package/src/components/RoundedSquare/RoundedSquare.stories.tsx +28 -0
- package/src/components/RoundedSquare/RoundedSquare.tsx +69 -0
- package/src/components/RoundedSquare/__tests__/RoundedSquare.test.tsx +35 -0
- package/src/components/RoundedSquare/constants.ts +63 -0
- package/src/components/RoundedSquare/index.ts +6 -0
- package/src/components/RoundedSquare/roudnedquarenew +0 -0
- package/src/components/SchoolIdCard/SchoolIDCard.stories.tsx +30 -0
- package/src/components/SchoolIdCard/SchoolIDCard.tsx +81 -0
- package/src/components/SchoolIdCard/index.ts +6 -0
- package/src/components/SchoolIdCard/types.ts +42 -0
- package/src/components/SkillTabCard/SkillTabCard.stories.tsx +25 -0
- package/src/components/SkillTabCard/SkillTabCard.tsx +44 -0
- package/src/components/SkillTabCard/index.ts +5 -0
- package/src/components/SkillVerticalCard/SkillVerticalCard.stories.tsx +20 -0
- package/src/components/SkillVerticalCard/SkillVerticalCard.tsx +32 -0
- package/src/components/SkillVerticalCard/index.ts +5 -0
- package/src/components/SkillsCard/SkillsCard.stories.tsx +24 -0
- package/src/components/SkillsCard/SkillsCard.tsx +68 -0
- package/src/components/SkillsCard/index.ts +5 -0
- package/src/components/SkillsStatsCard/SkillsStatsCard.stories.tsx +63 -0
- package/src/components/SkillsStatsCard/SkillsStatsCard.tsx +92 -0
- package/src/components/SkillsStatsCard/index.ts +5 -0
- package/src/components/SmallAchievementCard/SmallAchievementCard.stories.tsx +23 -0
- package/src/components/SmallAchievementCard/SmallAchievementCard.tsx +50 -0
- package/src/components/SmallAchievementCard/index.ts +5 -0
- package/src/components/UserProfilePicture/UserProfilePicture.test.tsx +44 -0
- package/src/components/UserProfilePicture/UserProfilePicture.tsx +119 -0
- package/src/components/UserProfilePicture/index.ts +5 -0
- package/src/components/VCCard/VCCard.stories.tsx +64 -0
- package/src/components/VCCard/VCCard.tsx +84 -0
- package/src/components/VCCard/index.ts +5 -0
- package/src/components/VCDisplayBackFace/VCDisplayBackFace.tsx +112 -0
- package/src/components/VCDisplayBackFace/index.ts +5 -0
- package/src/components/VCDisplayCard/VCDisplayCard.stories.tsx +167 -0
- package/src/components/VCDisplayCard/VCDisplayCard.tsx +98 -0
- package/src/components/VCDisplayCard/index.ts +5 -0
- package/src/components/VCDisplayCard2/FitText.tsx +85 -0
- package/src/components/VCDisplayCard2/InfoBox.tsx +30 -0
- package/src/components/VCDisplayCard2/IssueHistoryBox.tsx +50 -0
- package/src/components/VCDisplayCard2/MediaAttachmentsBox.tsx +306 -0
- package/src/components/VCDisplayCard2/RibbonEnd.tsx +67 -0
- package/src/components/VCDisplayCard2/SelectedSkills.tsx +70 -0
- package/src/components/VCDisplayCard2/SkillsBox.tsx +53 -0
- package/src/components/VCDisplayCard2/Subskill.tsx +50 -0
- package/src/components/VCDisplayCard2/TopLevelSkill.tsx +63 -0
- package/src/components/VCDisplayCard2/TruncateTextBox.tsx +89 -0
- package/src/components/VCDisplayCard2/VC2BackFace.tsx +185 -0
- package/src/components/VCDisplayCard2/VC2FrontFaceInfo.tsx +279 -0
- package/src/components/VCDisplayCard2/VCDisplayCard2.stories.tsx +191 -0
- package/src/components/VCDisplayCard2/VCDisplayCard2.tsx +526 -0
- package/src/components/VCDisplayCard2/VCDisplayCard2AvatarFallbacks.stories.tsx +312 -0
- package/src/components/VCDisplayCard2/VCDisplayCardCategoryType.tsx +19 -0
- package/src/components/VCDisplayCard2/VCDisplayCardSkillsCount.tsx +46 -0
- package/src/components/VCDisplayCard2/VCIDDIsplayCard.tsx +159 -0
- package/src/components/VCDisplayCard2/VCIDDisplayFrontFace.tsx +213 -0
- package/src/components/VCDisplayCard2/VerificationRow.tsx +69 -0
- package/src/components/VCDisplayCard2/VerificationsBox.tsx +44 -0
- package/src/components/VCDisplayCard2/__tests__/VC2FrontFaceInfo.test.tsx +134 -0
- package/src/components/VCDisplayCard2/index.ts +23 -0
- package/src/components/VCDisplayFrontFace/VCDisplayFrontFace.tsx +143 -0
- package/src/components/VCDisplayFrontFace/index.ts +5 -0
- package/src/components/VCThumbnail/VCThumbnail.stories.tsx +32 -0
- package/src/components/VCThumbnail/VCThumbnail.tsx +182 -0
- package/src/components/VCThumbnail/__tests__/VCThumbnail.test.tsx +114 -0
- package/src/components/VCThumbnail/index.ts +6 -0
- package/src/components/VCThumbnail/types.ts +46 -0
- package/src/components/VCVerificationCheck/VCVerificationCheck.tsx +89 -0
- package/src/components/VCVerificationCheck/index.ts +5 -0
- package/src/components/VCVerificationPill/VCVerificationPill.tsx +85 -0
- package/src/components/VCVerificationPill/index.ts +5 -0
- package/src/components/index.ts +48 -0
- package/src/components/svgs/AccommodationsIcon.tsx +38 -0
- package/src/components/svgs/AccomplishmentsIcon.tsx +34 -0
- package/src/components/svgs/AchievementWithTitle.tsx +137 -0
- package/src/components/svgs/AcuteCheckmark.tsx +25 -0
- package/src/components/svgs/AwardDisplayIcon.tsx +37 -0
- package/src/components/svgs/AwardRibbon.tsx +29 -0
- package/src/components/svgs/BadgeDisplayIcon.tsx +31 -0
- package/src/components/svgs/Briefcase.tsx +48 -0
- package/src/components/svgs/Camera.tsx +25 -0
- package/src/components/svgs/CertificateDisplayIcon.tsx +56 -0
- package/src/components/svgs/Checkmark.tsx +59 -0
- package/src/components/svgs/CircleWithText.tsx +36 -0
- package/src/components/svgs/Coins.tsx +14 -0
- package/src/components/svgs/CourseDisplayIcon.tsx +43 -0
- package/src/components/svgs/DownRightArrow.tsx +29 -0
- package/src/components/svgs/ExclamationPoint.tsx +25 -0
- package/src/components/svgs/ExperienceIcon.tsx +34 -0
- package/src/components/svgs/FatArrow.tsx +44 -0
- package/src/components/svgs/GenericArrow.tsx +29 -0
- package/src/components/svgs/GenericDocumentIcon.tsx +26 -0
- package/src/components/svgs/Graduation.tsx +24 -0
- package/src/components/svgs/IDDisplayIcon.tsx +63 -0
- package/src/components/svgs/IDIcon.tsx +59 -0
- package/src/components/svgs/IDSleeve.tsx +21 -0
- package/src/components/svgs/InfoIcon.tsx +26 -0
- package/src/components/svgs/IssuerSeal.tsx +26 -0
- package/src/components/svgs/KeyIcon.tsx +31 -0
- package/src/components/svgs/LeftArrow.tsx +27 -0
- package/src/components/svgs/Lightbulb.tsx +14 -0
- package/src/components/svgs/Line.tsx +22 -0
- package/src/components/svgs/LinkIcon.tsx +35 -0
- package/src/components/svgs/PdfIcon.tsx +38 -0
- package/src/components/svgs/PersonBadge.tsx +55 -0
- package/src/components/svgs/PuzzlePiece.tsx +89 -0
- package/src/components/svgs/QRCodeIcon.tsx +21 -0
- package/src/components/svgs/RedFlag.tsx +41 -0
- package/src/components/svgs/RoundedCorner.tsx +28 -0
- package/src/components/svgs/RoundedX.tsx +35 -0
- package/src/components/svgs/ScoutsLogo.tsx +41 -0
- package/src/components/svgs/ScoutsPledge.tsx +33 -0
- package/src/components/svgs/ShieldChevron.tsx +24 -0
- package/src/components/svgs/Smiley.tsx +43 -0
- package/src/components/svgs/SocialBadgesIcon.tsx +43 -0
- package/src/components/svgs/ThreeDotVertical.tsx +41 -0
- package/src/components/svgs/Trophy.tsx +25 -0
- package/src/components/svgs/UnknownVerifierBadge.tsx +25 -0
- package/src/components/svgs/User.tsx +34 -0
- package/src/components/svgs/VerifiedBadge.tsx +37 -0
- package/src/components/svgs/VideoIcon.tsx +28 -0
- package/src/components/svgs/X.tsx +35 -0
- package/src/components/svgs/index.ts +54 -0
- package/src/constants/icons.ts +87 -0
- package/src/constants/index.ts +109 -0
- package/src/constants/notifications.ts +14 -0
- package/src/constants/skills.ts +2202 -0
- package/src/declaration.d.ts +21 -0
- package/src/helpers/__tests__/credentialFormat.helpers.test.ts +100 -0
- package/src/helpers/color.helpers.ts +35 -0
- package/src/helpers/credential.helpers.test.ts +108 -0
- package/src/helpers/credential.helpers.tsx +249 -0
- package/src/helpers/credentialFormat.helpers.ts +68 -0
- package/src/helpers/did-display.helpers.ts +230 -0
- package/src/helpers/display.helpers.ts +53 -0
- package/src/helpers/string.helpers.ts +7 -0
- package/src/helpers/test.helpers.ts +680 -0
- package/src/helpers/url.helpers.ts +3 -0
- package/src/helpers/useHorizontalPages.ts +130 -0
- package/src/helpers/useOnMomentumScrollEnd.ts +28 -0
- package/src/helpers/useScrollBorders.ts +59 -0
- package/src/helpers/video.helpers.ts +125 -0
- package/src/hooks/useCredentialFormat.tsx +23 -0
- package/src/hooks/useParsedSdJwtVc.tsx +64 -0
- package/src/index.ts +16 -0
- package/src/types/index.ts +390 -0
- package/LICENSE +0 -21
- package/dist/cjs/SchoolIDCard-dddb3b1d.js.map +0 -1
- package/dist/cjs/VCDisplayCard2-e8e84f7e.js.map +0 -1
- package/dist/cjs/VerifierStateBadgeAndText-db7a1881.js.map +0 -1
- package/dist/cjs/credential.helpers-62edac8a.js.map +0 -1
- package/dist/cjs/index-0cac2c5b.js.map +0 -1
- package/dist/cjs/index-838fa72c.js.map +0 -1
- package/dist/cjs/types.esm-60d3a9fc.js.map +0 -1
- package/dist/esm/SchoolIDCard-4e51671c.js.map +0 -1
- package/dist/esm/VCDisplayCard2-006e7a8c.js.map +0 -1
- package/dist/esm/VerifierStateBadgeAndText-a1bd5f0c.js.map +0 -1
- package/dist/esm/credential.helpers-b6acd108.js.map +0 -1
- package/dist/esm/index-2ef835bd.js.map +0 -1
- package/dist/esm/index-4fa491c1.js.map +0 -1
- package/dist/esm/index-eae3ca64.js.map +0 -1
- package/dist/esm/types.esm-59c23f9b.js.map +0 -1
|
@@ -0,0 +1,680 @@
|
|
|
1
|
+
import { VerificationStatusEnum } from '@learncard/types';
|
|
2
|
+
|
|
3
|
+
// See https://w3c-ccg.github.io/vc-ed/plugfest-1-2022/
|
|
4
|
+
// For example data structure for plugfest
|
|
5
|
+
export const JffCredential = {
|
|
6
|
+
'@context': [
|
|
7
|
+
'https://www.w3.org/2018/credentials/v1',
|
|
8
|
+
'https://w3c-ccg.github.io/vc-ed/plugfest-1-2022/jff-vc-edu-plugfest-1-context.json',
|
|
9
|
+
],
|
|
10
|
+
type: ['VerifiableCredential', 'OpenBadgeCredential'],
|
|
11
|
+
issuer: {
|
|
12
|
+
type: 'Profile',
|
|
13
|
+
id: 'did:key:z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo',
|
|
14
|
+
name: 'Jobs for the Future (JFF)',
|
|
15
|
+
url: 'https://www.jff.org/',
|
|
16
|
+
image: 'https://kayaelle.github.io/vc-ed/plugfest-1-2022/images/JFF_LogoLockup.png',
|
|
17
|
+
},
|
|
18
|
+
issuanceDate: '2022-07-27T19:57:31.512Z',
|
|
19
|
+
credentialSubject: {
|
|
20
|
+
type: 'AchievementSubject',
|
|
21
|
+
id: 'did:key:z6Mkqk4j3VnaRf4XHEoU6eT343VTfdfZG23CK6zaf5g5KKju',
|
|
22
|
+
achievement: {
|
|
23
|
+
type: 'Achievement',
|
|
24
|
+
name: 'Our Wallet Passed JFF Plugfest #1 2022',
|
|
25
|
+
description: 'This wallet can display this Open Badge 3.0',
|
|
26
|
+
criteria: {
|
|
27
|
+
type: 'Criteria',
|
|
28
|
+
narrative:
|
|
29
|
+
'The first cohort of the JFF Plugfest 1 in May/June of 2021 collaborated to push interoperability of VCs in education forward.',
|
|
30
|
+
},
|
|
31
|
+
image: 'https://w3c-ccg.github.io/vc-ed/plugfest-1-2022/images/plugfest-1-badge-image.png',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const SuperSkillsOprahCredential = {
|
|
37
|
+
'@context': [
|
|
38
|
+
'https://www.w3.org/2018/credentials/v1',
|
|
39
|
+
'https://purl.imsglobal.org/spec/ob/v3p0/context.json',
|
|
40
|
+
],
|
|
41
|
+
id: 'http://example.com/credentials/3527',
|
|
42
|
+
type: ['VerifiableCredential', 'OpenBadgeCredential'],
|
|
43
|
+
issuer: 'did:key:z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo',
|
|
44
|
+
issuanceDate: '2022-12-15T01:40:50.794Z',
|
|
45
|
+
credentialSubject: {
|
|
46
|
+
id: 'did:key:z6Mkqk4j3VnaRf4XHEoU6eT343VTfdfZG23CK6zaf5g5KKju',
|
|
47
|
+
type: ['AchievementSubject'],
|
|
48
|
+
achievement: {
|
|
49
|
+
id: 'https://example.com/achievements/21st-century-skills/teamwork',
|
|
50
|
+
tag: ['Emotional', 'Emotional Subskill 1'],
|
|
51
|
+
name: 'The Oprah',
|
|
52
|
+
type: ['Achievement'],
|
|
53
|
+
image: 'https://cdn.filestackcontent.com/04DxNAaQ66aphkQvbT9W',
|
|
54
|
+
description:
|
|
55
|
+
'You get a badge! You get a badge! You get a badge! You get a badge! You get a badge! You get a badge! EVERYBODY GETS A BADGE!!!',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
proof: {
|
|
59
|
+
type: 'Ed25519Signature2020',
|
|
60
|
+
created: '2022-12-15T01:40:50.798Z',
|
|
61
|
+
proofPurpose: 'assertionMethod',
|
|
62
|
+
verificationMethod:
|
|
63
|
+
'did:key:z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo#z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo',
|
|
64
|
+
'@context': ['https://w3id.org/security/suites/ed25519-2020/v1'],
|
|
65
|
+
proofValue:
|
|
66
|
+
'z5R86gecRsBh1xmPJqdfqoNppxy4hbMZWtjZZNdaqGYtwBcPHNzXwAtHdqhTWQVprQn6B8xfQvqqvQo3ZjaTjt3tW',
|
|
67
|
+
},
|
|
68
|
+
name: 'The Oprah',
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const testTags = [
|
|
72
|
+
'Skill A',
|
|
73
|
+
'Subskill A 1',
|
|
74
|
+
'Subskill A 2',
|
|
75
|
+
'Skill B',
|
|
76
|
+
'Skill C',
|
|
77
|
+
'Subskill C',
|
|
78
|
+
];
|
|
79
|
+
|
|
80
|
+
export const AllFieldsCredential = {
|
|
81
|
+
name: 'Verbose Credential',
|
|
82
|
+
'@context': [
|
|
83
|
+
'https://www.w3.org/2018/credentials/v1',
|
|
84
|
+
'https://purl.imsglobal.org/spec/ob/v3p0/context.json',
|
|
85
|
+
],
|
|
86
|
+
id: 'http://example.com/credentials/3527',
|
|
87
|
+
type: ['VerifiableCredential', 'OpenBadgeCredential'],
|
|
88
|
+
issuer: 'did:key:z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo',
|
|
89
|
+
issuanceDate: '2022-12-15T01:40:50.794Z',
|
|
90
|
+
credentialSubject: {
|
|
91
|
+
id: 'did:key:z6Mkqk4j3VnaRf4XHEoU6eT343VTfdfZG23CK6zaf5g5KKju',
|
|
92
|
+
type: ['AchievementSubject'],
|
|
93
|
+
achievement: {
|
|
94
|
+
id: 'https://example.com/achievements/21st-century-skills/teamwork',
|
|
95
|
+
tag: testTags,
|
|
96
|
+
name: 'Verbose Credentialing',
|
|
97
|
+
type: ['Achievement'],
|
|
98
|
+
image: 'https://cdn.filestackcontent.com/04DxNAaQ66aphkQvbT9W',
|
|
99
|
+
description:
|
|
100
|
+
"You made a test credential with ALL the possible fields! Woah! That's great! There are so many fields on this credential! Let's make this even longer so that it gets truncated",
|
|
101
|
+
criteria: {
|
|
102
|
+
type: 'Criteria',
|
|
103
|
+
narrative:
|
|
104
|
+
'You really know your crednetials! Pretty rad. Being able to find and handle all of these fields is incredible! This narrative is going to be pretty long so that we can see if you can handle long blocks of text too. This should probably be truncated off by now or something.',
|
|
105
|
+
},
|
|
106
|
+
alignment: [
|
|
107
|
+
{
|
|
108
|
+
targetName: 'Alignment 1',
|
|
109
|
+
targetDescription: 'Target Description for Alignment 1',
|
|
110
|
+
targetFramework: 'Target Framework 1',
|
|
111
|
+
targetUrl: 'https://example.com/alignment1',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
targetName: 'Alignment 2',
|
|
115
|
+
targetDescription: 'Target Description for Alignment 2',
|
|
116
|
+
targetFramework: 'Target Framework 2',
|
|
117
|
+
targetUrl: 'https://example.com/alignment2',
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
proof: {
|
|
123
|
+
type: 'Ed25519Signature2020',
|
|
124
|
+
created: '2022-12-15T01:40:50.798Z',
|
|
125
|
+
proofPurpose: 'assertionMethod',
|
|
126
|
+
verificationMethod:
|
|
127
|
+
'did:key:z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo#z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo',
|
|
128
|
+
'@context': ['https://w3id.org/security/suites/ed25519-2020/v1'],
|
|
129
|
+
proofValue:
|
|
130
|
+
'z5R86gecRsBh1xmPJqdfqoNppxy4hbMZWtjZZNdaqGYtwBcPHNzXwAtHdqhTWQVprQn6B8xfQvqqvQo3ZjaTjt3tW',
|
|
131
|
+
},
|
|
132
|
+
display: { backgroundImage: 'https://images.unsplash.com/photo-1518199266791-5375a83190b7' },
|
|
133
|
+
attachments: [
|
|
134
|
+
{
|
|
135
|
+
type: 'document',
|
|
136
|
+
title: 'Custom PDF title',
|
|
137
|
+
url: 'https://cdn.filestackcontent.com/4LN0x2LQXSjIH3c5bfBr',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
type: 'link',
|
|
141
|
+
title: 'Mooji',
|
|
142
|
+
url: 'https://www.moojisanghavibe.org',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: 'document',
|
|
146
|
+
title: 'This is a text file with a super long name that goes to two lines',
|
|
147
|
+
url: 'https://cdn.filestackcontent.com/BqqfmVEbQFmRaqwvqTMA',
|
|
148
|
+
},
|
|
149
|
+
{ type: 'photo', url: 'https://cdn.filestackcontent.com/XuMpArLAQ3qam5OdArih' },
|
|
150
|
+
{ type: 'video', url: 'https://www.youtube.com/watch?v=fV7mWuCdkpY' },
|
|
151
|
+
{ type: 'photo', url: 'https://cdn.filestackcontent.com/PNb6lViSaqGoKyRyXyyp' },
|
|
152
|
+
{ type: 'photo', url: 'https://images.unsplash.com/photo-1607419145932-ed1fc8c034d8' },
|
|
153
|
+
{
|
|
154
|
+
type: 'link',
|
|
155
|
+
title: 'Metta Meditation',
|
|
156
|
+
url: 'https://unveilingtiamat.com/wp-content/uploads/2022/02/Radiant-Threefold-Path-Lovingkindness-Meditation-1.pdf?vgo_ee=KR53S3mb9fY4az4OUTbOR0zkASpiHornD%2Fz2wZTd1jg%3D&fbclid=IwAR1yXamIvuEs-PEJeXvbZp20NvlyvC2SQ-5QLATCepopuqIypO6Pfeb_6iM',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
type: 'video',
|
|
160
|
+
title: 'Herbie Highlights 2022',
|
|
161
|
+
url: 'https://www.youtube.com/watch?v=8Mt4YAileOo',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
type: 'video',
|
|
165
|
+
title: 'Ram Dass - Be Here Now',
|
|
166
|
+
url: 'https://vimeo.com/406283337',
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
skills: [
|
|
170
|
+
{
|
|
171
|
+
category: 'digital',
|
|
172
|
+
skill: 'softwareProficiency',
|
|
173
|
+
subskills: ['productivitySuites', 'specializedSoftware', 'designSoftware'],
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
category: 'stem',
|
|
177
|
+
skill: 'technology',
|
|
178
|
+
subskills: ['coding', 'softwareDevelopment', 'dataAnalysis'],
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export const AllFieldsBackgroundColorCredential = {
|
|
184
|
+
...AllFieldsCredential,
|
|
185
|
+
display: { backgroundColor: 'lightblue' },
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export const LongTitleCredential = {
|
|
189
|
+
name: 'This is a super long credential name because we want to test the ribbon with a long name',
|
|
190
|
+
'@context': [
|
|
191
|
+
'https://www.w3.org/2018/credentials/v1',
|
|
192
|
+
'https://purl.imsglobal.org/spec/ob/v3p0/context.json',
|
|
193
|
+
],
|
|
194
|
+
id: 'http://example.com/credentials/3527',
|
|
195
|
+
type: ['VerifiableCredential', 'OpenBadgeCredential'],
|
|
196
|
+
issuer: 'did:key:z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo',
|
|
197
|
+
issuanceDate: '2022-12-15T01:40:50.794Z',
|
|
198
|
+
credentialSubject: {
|
|
199
|
+
id: 'did:key:z6Mkqk4j3VnaRf4XHEoU6eT343VTfdfZG23CK6zaf5g5KKju',
|
|
200
|
+
type: ['AchievementSubject'],
|
|
201
|
+
achievement: {
|
|
202
|
+
id: 'https://example.com/achievements/21st-century-skills/teamwork',
|
|
203
|
+
tag: testTags,
|
|
204
|
+
name: 'This is a super long credential name because we want to test the ribbon with a long name',
|
|
205
|
+
type: ['Achievement'],
|
|
206
|
+
image: 'https://cdn.filestackcontent.com/04DxNAaQ66aphkQvbT9W',
|
|
207
|
+
description:
|
|
208
|
+
"You made a test credential with ALL the possible fields! Woah! That's great! There are so many fields on this credential! Let's make this even longer so that it gets truncated",
|
|
209
|
+
criteria: {
|
|
210
|
+
type: 'Criteria',
|
|
211
|
+
narrative:
|
|
212
|
+
'You really know your crednetials! Pretty rad. Being able to find and handle all of these fields is incredible! This narrative is going to be pretty long so that we can see if you can handle long blocks of text too. This should probably be truncated off by now or something.',
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
proof: {
|
|
217
|
+
type: 'Ed25519Signature2020',
|
|
218
|
+
created: '2022-12-15T01:40:50.798Z',
|
|
219
|
+
proofPurpose: 'assertionMethod',
|
|
220
|
+
verificationMethod:
|
|
221
|
+
'did:key:z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo#z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo',
|
|
222
|
+
'@context': ['https://w3id.org/security/suites/ed25519-2020/v1'],
|
|
223
|
+
proofValue:
|
|
224
|
+
'z5R86gecRsBh1xmPJqdfqoNppxy4hbMZWtjZZNdaqGYtwBcPHNzXwAtHdqhTWQVprQn6B8xfQvqqvQo3ZjaTjt3tW',
|
|
225
|
+
},
|
|
226
|
+
display: { backgroundImage: 'https://images.unsplash.com/photo-1518199266791-5375a83190b7' },
|
|
227
|
+
attachments: [
|
|
228
|
+
{
|
|
229
|
+
type: 'document',
|
|
230
|
+
title: 'Custom PDF title',
|
|
231
|
+
url: 'https://cdn.filestackcontent.com/4LN0x2LQXSjIH3c5bfBr',
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
type: 'link',
|
|
235
|
+
title: 'Mooji',
|
|
236
|
+
url: 'https://www.moojisanghavibe.org',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
type: 'document',
|
|
240
|
+
title: 'This is a text file with a super long name that goes to two lines',
|
|
241
|
+
url: 'https://cdn.filestackcontent.com/BqqfmVEbQFmRaqwvqTMA',
|
|
242
|
+
},
|
|
243
|
+
{ type: 'photo', url: 'https://cdn.filestackcontent.com/XuMpArLAQ3qam5OdArih' },
|
|
244
|
+
{ type: 'video', url: 'https://www.youtube.com/watch?v=fV7mWuCdkpY' },
|
|
245
|
+
{ type: 'photo', url: 'https://cdn.filestackcontent.com/PNb6lViSaqGoKyRyXyyp' },
|
|
246
|
+
{ type: 'photo', url: 'https://images.unsplash.com/photo-1607419145932-ed1fc8c034d8' },
|
|
247
|
+
{
|
|
248
|
+
type: 'link',
|
|
249
|
+
title: 'Metta Meditation',
|
|
250
|
+
url: 'https://unveilingtiamat.com/wp-content/uploads/2022/02/Radiant-Threefold-Path-Lovingkindness-Meditation-1.pdf?vgo_ee=KR53S3mb9fY4az4OUTbOR0zkASpiHornD%2Fz2wZTd1jg%3D&fbclid=IwAR1yXamIvuEs-PEJeXvbZp20NvlyvC2SQ-5QLATCepopuqIypO6Pfeb_6iM',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
type: 'video',
|
|
254
|
+
title: 'Herbie Highlights 2022',
|
|
255
|
+
url: 'https://www.youtube.com/watch?v=8Mt4YAileOo',
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
type: 'video',
|
|
259
|
+
title: 'Ram Dass - Be Here Now',
|
|
260
|
+
url: 'https://vimeo.com/406283337',
|
|
261
|
+
},
|
|
262
|
+
],
|
|
263
|
+
skills: [
|
|
264
|
+
{
|
|
265
|
+
category: 'digital',
|
|
266
|
+
skill: 'softwareProficiency',
|
|
267
|
+
subskills: ['productivitySuites', 'specializedSoftware', 'designSoftware'],
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
category: 'stem',
|
|
271
|
+
skill: 'technology',
|
|
272
|
+
subskills: ['coding', 'softwareDevelopment', 'dataAnalysis'],
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
export const BoostCredential = {
|
|
278
|
+
'@context': [
|
|
279
|
+
'https://www.w3.org/2018/credentials/v1',
|
|
280
|
+
'https://purl.imsglobal.org/spec/ob/v3p0/context.json',
|
|
281
|
+
{
|
|
282
|
+
type: '@type',
|
|
283
|
+
xsd: 'https://www.w3.org/2001/XMLSchema#',
|
|
284
|
+
BoostCredential: {
|
|
285
|
+
'@context': {
|
|
286
|
+
attachments: {
|
|
287
|
+
'@container': '@set',
|
|
288
|
+
'@context': {
|
|
289
|
+
title: {
|
|
290
|
+
'@id': 'https://www.example.org/attachmentTitle',
|
|
291
|
+
'@type': 'xsd:string',
|
|
292
|
+
},
|
|
293
|
+
type: {
|
|
294
|
+
'@id': 'https://www.example.org/attachmentType',
|
|
295
|
+
'@type': 'xsd:string',
|
|
296
|
+
},
|
|
297
|
+
url: {
|
|
298
|
+
'@id': 'https://www.example.org/attachmentUrl',
|
|
299
|
+
'@type': 'xsd:string',
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
'@id': 'https://www.example.org/boost-attachments',
|
|
303
|
+
},
|
|
304
|
+
display: {
|
|
305
|
+
'@context': {
|
|
306
|
+
backgroundColor: {
|
|
307
|
+
'@id': 'https://www.example.org/backgroundColor',
|
|
308
|
+
'@type': 'xsd:string',
|
|
309
|
+
},
|
|
310
|
+
backgroundImage: {
|
|
311
|
+
'@id': 'https://www.example.org/backgroundImage',
|
|
312
|
+
'@type': 'xsd:string',
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
'@id': 'https://www.example.org/boost-display',
|
|
316
|
+
},
|
|
317
|
+
image: {
|
|
318
|
+
'@id': 'https://www.example.org/boost-image',
|
|
319
|
+
'@type': 'xsd:string',
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
'@id': 'https://www.example.org/boost-credential',
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
type: ['VerifiableCredential', 'OpenBadgeCredential', 'BoostCredential'],
|
|
327
|
+
credentialSubject: {
|
|
328
|
+
id: 'did:web:network.learncard.com:users:donny',
|
|
329
|
+
type: ['AchievementSubject'],
|
|
330
|
+
achievement: {
|
|
331
|
+
achievementType: 'Achievement',
|
|
332
|
+
criteria: {
|
|
333
|
+
narrative: 'test criteria',
|
|
334
|
+
},
|
|
335
|
+
description: 'test description',
|
|
336
|
+
id: 'https://example.com/achievements/21st-century-skills/teamwork',
|
|
337
|
+
image: 'https://cdn.filestackcontent.com/WfRYzfG3S4SAhAkRRv8a',
|
|
338
|
+
name: 'test achievement vc',
|
|
339
|
+
type: ['Achievement'],
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
issuer: 'did:web:network.learncard.com:users:donny',
|
|
343
|
+
issuanceDate: '2023-02-14T19:29:49.790Z',
|
|
344
|
+
proof: {
|
|
345
|
+
'@context': ['https://w3id.org/security/suites/ed25519-2020/v1'],
|
|
346
|
+
type: 'Ed25519Signature2020',
|
|
347
|
+
proofPurpose: 'assertionMethod',
|
|
348
|
+
proofValue:
|
|
349
|
+
'z4A7jdUKhfHzA8LwRVR6XGbMxiRMLo5fBAcGiC7LZe1DcnVVMVL3dmhrWmDrrfsquycqcXmfTephheEpw33UTEqnL',
|
|
350
|
+
verificationMethod: 'did:web:network.learncard.com:users:donny#owner',
|
|
351
|
+
created: '2023-02-14T19:29:50.805Z',
|
|
352
|
+
},
|
|
353
|
+
expirationDate: '2023-02-28T19:24:00Z',
|
|
354
|
+
image: 'https://cdn.filestackcontent.com/WfRYzfG3S4SAhAkRRv8a',
|
|
355
|
+
display: {
|
|
356
|
+
backgroundColor: '#4e4e',
|
|
357
|
+
backgroundImage: 'https://cdn.filestackcontent.com/wYXbETSCSOSThnZOFJLQ',
|
|
358
|
+
displayType: 'certificate',
|
|
359
|
+
},
|
|
360
|
+
name: 'test achievement vc',
|
|
361
|
+
skills: [
|
|
362
|
+
{
|
|
363
|
+
category: 'digital',
|
|
364
|
+
skill: 'softwareProficiency',
|
|
365
|
+
subskills: ['productivitySuites', 'specializedSoftware', 'designSoftware'],
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
category: 'stem',
|
|
369
|
+
skill: 'technology',
|
|
370
|
+
subskills: ['coding', 'softwareDevelopment', 'dataAnalysis'],
|
|
371
|
+
},
|
|
372
|
+
],
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
// VC 2.0 Credentials using validFrom instead of issuanceDate
|
|
376
|
+
export const VC2CredentialWithValidFrom = {
|
|
377
|
+
'@context': [
|
|
378
|
+
'https://www.w3.org/2018/credentials/v1',
|
|
379
|
+
'https://purl.imsglobal.org/spec/ob/v3p0/context.json',
|
|
380
|
+
],
|
|
381
|
+
type: ['VerifiableCredential', 'OpenBadgeCredential'],
|
|
382
|
+
issuer: {
|
|
383
|
+
type: 'Profile',
|
|
384
|
+
id: 'did:key:z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo',
|
|
385
|
+
name: 'Modern Skills Institute',
|
|
386
|
+
url: 'https://www.modernskills.org/',
|
|
387
|
+
image: 'https://picsum.photos/200',
|
|
388
|
+
},
|
|
389
|
+
validFrom: '2024-01-15T14:30:00.000Z',
|
|
390
|
+
validUntil: '2025-01-15T14:30:00.000Z',
|
|
391
|
+
credentialSubject: {
|
|
392
|
+
type: 'AchievementSubject',
|
|
393
|
+
id: 'did:key:z6Mkqk4j3VnaRf4XHEoU6eT343VTfdfZG23CK6zaf5g5KKju',
|
|
394
|
+
achievement: {
|
|
395
|
+
type: 'Achievement',
|
|
396
|
+
name: 'Advanced TypeScript Development',
|
|
397
|
+
description: 'Demonstrates mastery of advanced TypeScript concepts and patterns',
|
|
398
|
+
criteria: {
|
|
399
|
+
type: 'Criteria',
|
|
400
|
+
narrative:
|
|
401
|
+
'Successfully completed advanced TypeScript certification with practical projects.',
|
|
402
|
+
},
|
|
403
|
+
image: 'https://picsum.photos/201',
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
export const VC2CredentialNoDate = {
|
|
409
|
+
'@context': [
|
|
410
|
+
'https://www.w3.org/2018/credentials/v1',
|
|
411
|
+
'https://purl.imsglobal.org/spec/ob/v3p0/context.json',
|
|
412
|
+
],
|
|
413
|
+
type: ['VerifiableCredential', 'OpenBadgeCredential'],
|
|
414
|
+
issuer: {
|
|
415
|
+
type: 'Profile',
|
|
416
|
+
id: 'did:key:z6MksNj6FwQ7t7ejgJVXCNyaX655uHJ8mPJ8xLtxrqQDV2Bo',
|
|
417
|
+
name: 'Future Learning Academy',
|
|
418
|
+
url: 'https://www.futurelearning.edu/',
|
|
419
|
+
image: 'https://picsum.photos/202',
|
|
420
|
+
},
|
|
421
|
+
// No validFrom or issuanceDate - should handle gracefully
|
|
422
|
+
credentialSubject: {
|
|
423
|
+
type: 'AchievementSubject',
|
|
424
|
+
id: 'did:key:z6Mkqk4j3VnaRf4XHEoU6eT343VTfdfZG23CK6zaf5g5KKju',
|
|
425
|
+
achievement: {
|
|
426
|
+
type: 'Achievement',
|
|
427
|
+
name: 'Lifetime Learning Award',
|
|
428
|
+
description: 'Recognition for continuous professional development',
|
|
429
|
+
criteria: {
|
|
430
|
+
type: 'Criteria',
|
|
431
|
+
narrative: 'Demonstrated commitment to lifelong learning and growth.',
|
|
432
|
+
},
|
|
433
|
+
image: 'https://picsum.photos/203',
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
export const TestVerificationItems = {
|
|
439
|
+
// Real verification items returned by validation
|
|
440
|
+
SUCCESS: {
|
|
441
|
+
NO_EXPIRATION: {
|
|
442
|
+
status: 'Success',
|
|
443
|
+
check: 'expiration',
|
|
444
|
+
message: 'Does Not Expire',
|
|
445
|
+
},
|
|
446
|
+
PROOF: {
|
|
447
|
+
status: 'Success',
|
|
448
|
+
check: 'proof',
|
|
449
|
+
message: 'Valid',
|
|
450
|
+
},
|
|
451
|
+
NOT_EXPIRED: {
|
|
452
|
+
status: 'Success',
|
|
453
|
+
check: 'expiration',
|
|
454
|
+
message: 'Expires 28 FEB 2023',
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
FAILED: {
|
|
458
|
+
// expirationDate in the past
|
|
459
|
+
EXPIRED: {
|
|
460
|
+
status: 'Failed',
|
|
461
|
+
check: 'expiration',
|
|
462
|
+
details: 'Expired 28 JAN 2023',
|
|
463
|
+
},
|
|
464
|
+
// missing proof object or verificationMethod has bad data
|
|
465
|
+
APPLICABLE_PROOF: {
|
|
466
|
+
status: 'Failed',
|
|
467
|
+
check: 'No applicable proof',
|
|
468
|
+
details: 'No applicable proof',
|
|
469
|
+
},
|
|
470
|
+
// invalid proofValue or created
|
|
471
|
+
SIGNATURE: {
|
|
472
|
+
status: 'Failed',
|
|
473
|
+
check: 'signature',
|
|
474
|
+
details: 'signature error: Verification equation was not satisfied',
|
|
475
|
+
},
|
|
476
|
+
// invalid proof.type
|
|
477
|
+
PROOF_TYPE: {
|
|
478
|
+
status: 'Failed',
|
|
479
|
+
check: 'Linked Data Proof type not implemented',
|
|
480
|
+
details: 'Linked Data Proof type not implemented',
|
|
481
|
+
},
|
|
482
|
+
// invalid context url(s)
|
|
483
|
+
CONTEXT: {
|
|
484
|
+
status: 'Failed',
|
|
485
|
+
check: 'loading remote context failed',
|
|
486
|
+
details: 'loading remote context failed',
|
|
487
|
+
},
|
|
488
|
+
},
|
|
489
|
+
|
|
490
|
+
// If you need to fudge a verification item, put it here
|
|
491
|
+
TEST: {
|
|
492
|
+
ISSUED_TO: {
|
|
493
|
+
check: 'proof',
|
|
494
|
+
status: VerificationStatusEnum.Success,
|
|
495
|
+
message: 'Issued to Example Person',
|
|
496
|
+
},
|
|
497
|
+
ISSUED_BY: {
|
|
498
|
+
check: 'proof',
|
|
499
|
+
status: VerificationStatusEnum.Error,
|
|
500
|
+
message: 'Issued by Some Random Did',
|
|
501
|
+
},
|
|
502
|
+
EXPIRED: {
|
|
503
|
+
check: 'proof',
|
|
504
|
+
status: VerificationStatusEnum.Failed,
|
|
505
|
+
message: 'Expired on 17 Nov 2022',
|
|
506
|
+
},
|
|
507
|
+
ACTIVE: {
|
|
508
|
+
check: 'proof',
|
|
509
|
+
status: VerificationStatusEnum.Success,
|
|
510
|
+
message: 'Status: Active',
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
export const issueeOverride = {
|
|
516
|
+
name: 'Test Person',
|
|
517
|
+
image: 'https://cdn.filestackcontent.com/rotate=deg:exif/auto_image/A2tGEP67TWeC59SmR4vP',
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
export const superSkillsIssueeOverride = {
|
|
521
|
+
name: 'Caped Crusader',
|
|
522
|
+
image: 'https://cdn.filestackcontent.com/rotate=deg:exif/auto_image/fqOymtprRYILmseudPyG',
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
export const issuerOverride = {
|
|
526
|
+
name: 'Dilbert Charles',
|
|
527
|
+
image: 'https://cdn.filestackcontent.com/rotate=deg:exif/auto_image/pQgXEF77R0GJKdQBdClb',
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
export const simpleConvertTagsToSkills = (tags: string[]) => {
|
|
531
|
+
let lastSkill: string;
|
|
532
|
+
const skillsObj: { [skill: string]: string[] } = {};
|
|
533
|
+
|
|
534
|
+
tags.forEach(tag => {
|
|
535
|
+
const isSubskill = tag.includes('Subskill');
|
|
536
|
+
|
|
537
|
+
if (!isSubskill) {
|
|
538
|
+
skillsObj[tag] = [];
|
|
539
|
+
lastSkill = tag;
|
|
540
|
+
} else {
|
|
541
|
+
skillsObj[lastSkill].push(tag);
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
|
|
545
|
+
return skillsObj;
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
export const superSkillsConvertTags = (tags: string[]) => {
|
|
549
|
+
const SKILL = {
|
|
550
|
+
CREATIVE: 'Creative',
|
|
551
|
+
EMOTIONAL: 'Emotional',
|
|
552
|
+
SOCIAL: 'Social',
|
|
553
|
+
COGNITIVE: 'Cognitive',
|
|
554
|
+
PHYSICAL: 'Physical',
|
|
555
|
+
};
|
|
556
|
+
const SKILL_SUBTYPE = {
|
|
557
|
+
Creative: [
|
|
558
|
+
'Creative Process',
|
|
559
|
+
'Generate Diverse Ideas',
|
|
560
|
+
'Evaluate and Improve',
|
|
561
|
+
'Generate Original Ideas',
|
|
562
|
+
'Recognize and Transfer',
|
|
563
|
+
],
|
|
564
|
+
Emotional: ['Emotional Subskill 1', 'Emotional Subskill 2', 'Emotional Subskill 3'],
|
|
565
|
+
Social: ['Social Subskill 1', 'Social Subskill 2', 'Social Subskill 3'],
|
|
566
|
+
Cognitive: ['Cognitive Subskill 1', 'Cognitive Subskill 2', 'Cognitive Subskill 3'],
|
|
567
|
+
Physical: ['Physical Subskill 1', 'Physical Subskill 2', 'Physical Subskill 3'],
|
|
568
|
+
};
|
|
569
|
+
const isSkill = (maybeSkill: string) => {
|
|
570
|
+
return Object.values(SKILL).includes(maybeSkill);
|
|
571
|
+
};
|
|
572
|
+
|
|
573
|
+
const skillsToSubskills: { [skill: string]: string[] } = {};
|
|
574
|
+
tags.forEach(tag => {
|
|
575
|
+
if (isSkill(tag)) {
|
|
576
|
+
const subskillOptions = SKILL_SUBTYPE[tag];
|
|
577
|
+
skillsToSubskills[tag] = tags.filter(t => subskillOptions.includes(t));
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
|
|
581
|
+
return skillsToSubskills;
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
export const ShortFieldsCredential = {
|
|
585
|
+
'@context': [
|
|
586
|
+
'https://www.w3.org/2018/credentials/v1',
|
|
587
|
+
'https://purl.imsglobal.org/spec/ob/v3p0/context.json',
|
|
588
|
+
{
|
|
589
|
+
type: '@type',
|
|
590
|
+
xsd: 'https://www.w3.org/2001/XMLSchema#',
|
|
591
|
+
BoostCredential: {
|
|
592
|
+
'@context': {
|
|
593
|
+
attachments: {
|
|
594
|
+
'@container': '@set',
|
|
595
|
+
'@context': {
|
|
596
|
+
title: {
|
|
597
|
+
'@id': 'https://www.example.org/attachmentTitle',
|
|
598
|
+
'@type': 'xsd:string',
|
|
599
|
+
},
|
|
600
|
+
type: {
|
|
601
|
+
'@id': 'https://www.example.org/attachmentType',
|
|
602
|
+
'@type': 'xsd:string',
|
|
603
|
+
},
|
|
604
|
+
url: {
|
|
605
|
+
'@id': 'https://www.example.org/attachmentUrl',
|
|
606
|
+
'@type': 'xsd:string',
|
|
607
|
+
},
|
|
608
|
+
},
|
|
609
|
+
'@id': 'https://www.example.org/boost-attachments',
|
|
610
|
+
},
|
|
611
|
+
display: {
|
|
612
|
+
'@context': {
|
|
613
|
+
backgroundColor: {
|
|
614
|
+
'@id': 'https://www.example.org/backgroundColor',
|
|
615
|
+
'@type': 'xsd:string',
|
|
616
|
+
},
|
|
617
|
+
backgroundImage: {
|
|
618
|
+
'@id': 'https://www.example.org/backgroundImage',
|
|
619
|
+
'@type': 'xsd:string',
|
|
620
|
+
},
|
|
621
|
+
},
|
|
622
|
+
'@id': 'https://www.example.org/boost-display',
|
|
623
|
+
},
|
|
624
|
+
image: {
|
|
625
|
+
'@id': 'https://www.example.org/boost-image',
|
|
626
|
+
'@type': 'xsd:string',
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
'@id': 'https://www.example.org/boost-credential',
|
|
630
|
+
},
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
type: ['VerifiableCredential', 'OpenBadgeCredential', 'BoostCredential'],
|
|
634
|
+
credentialSubject: {
|
|
635
|
+
id: 'me',
|
|
636
|
+
type: ['AchievementSubject'],
|
|
637
|
+
achievement: {
|
|
638
|
+
achievementType: 'Achievement',
|
|
639
|
+
criteria: {
|
|
640
|
+
narrative: 'test criteria',
|
|
641
|
+
},
|
|
642
|
+
description: 'test description',
|
|
643
|
+
id: 'https://example.com/achievements/21st-century-skills/teamwork',
|
|
644
|
+
image: 'https://cdn.filestackcontent.com/WfRYzfG3S4SAhAkRRv8a',
|
|
645
|
+
name: 'Short',
|
|
646
|
+
type: ['Achievement'],
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
issuer: 'you',
|
|
650
|
+
issuanceDate: '2023-02-14T19:29:49.790Z',
|
|
651
|
+
proof: {
|
|
652
|
+
'@context': ['https://w3id.org/security/suites/ed25519-2020/v1'],
|
|
653
|
+
type: 'Ed25519Signature2020',
|
|
654
|
+
proofPurpose: 'assertionMethod',
|
|
655
|
+
proofValue:
|
|
656
|
+
'z4A7jdUKhfHzA8LwRVR6XGbMxiRMLo5fBAcGiC7LZe1DcnVVMVL3dmhrWmDrrfsquycqcXmfTephheEpw33UTEqnL',
|
|
657
|
+
verificationMethod: 'did:web:network.learncard.com:users:donny#owner',
|
|
658
|
+
created: '2023-02-14T19:29:50.805Z',
|
|
659
|
+
},
|
|
660
|
+
expirationDate: '2023-02-28T19:24:00Z',
|
|
661
|
+
image: 'https://cdn.filestackcontent.com/WfRYzfG3S4SAhAkRRv8a',
|
|
662
|
+
display: {
|
|
663
|
+
backgroundColor: '#4e4e',
|
|
664
|
+
backgroundImage: 'https://cdn.filestackcontent.com/wYXbETSCSOSThnZOFJLQ',
|
|
665
|
+
displayType: 'certificate',
|
|
666
|
+
},
|
|
667
|
+
name: 'test achievement vc',
|
|
668
|
+
skills: [
|
|
669
|
+
{
|
|
670
|
+
category: 'digital',
|
|
671
|
+
skill: 'softwareProficiency',
|
|
672
|
+
subskills: ['productivitySuites', 'specializedSoftware', 'designSoftware'],
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
category: 'stem',
|
|
676
|
+
skill: 'technology',
|
|
677
|
+
subskills: ['coding', 'softwareDevelopment', 'dataAnalysis'],
|
|
678
|
+
},
|
|
679
|
+
],
|
|
680
|
+
};
|