@learncard/core 8.5.0 → 8.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/core.cjs.development.js +158 -784
- package/dist/core.cjs.development.js.map +4 -4
- package/dist/core.cjs.production.min.js +73 -73
- package/dist/core.cjs.production.min.js.map +4 -4
- package/dist/core.esm.js +158 -784
- package/dist/core.esm.js.map +4 -4
- package/dist/wallet/plugins/vc-templates/types.d.ts +28 -0
- package/package.json +5 -5
@@ -2,6 +2,17 @@ import { UnsignedVC, VC, UnsignedVP } from '@learncard/types';
|
|
2
2
|
import { DiscriminatedUnionize } from '../../../types/helpers';
|
3
3
|
import { Plugin } from '../../../types/wallet';
|
4
4
|
/** @group VC Templates Plugin */
|
5
|
+
export type BoostAttachment = {
|
6
|
+
type?: string;
|
7
|
+
title?: string;
|
8
|
+
url?: string;
|
9
|
+
};
|
10
|
+
/** @group VC Templates Plugin */
|
11
|
+
export type BoostDisplay = {
|
12
|
+
backgroundImage?: string;
|
13
|
+
backgroundColor?: string;
|
14
|
+
};
|
15
|
+
/** @group VC Templates Plugin */
|
5
16
|
export type VcTemplates = {
|
6
17
|
basic: {
|
7
18
|
did?: string;
|
@@ -22,6 +33,23 @@ export type VcTemplates = {
|
|
22
33
|
subject?: string;
|
23
34
|
issuanceDate?: string;
|
24
35
|
};
|
36
|
+
boost: {
|
37
|
+
did?: string;
|
38
|
+
subject?: string;
|
39
|
+
issuanceDate?: string;
|
40
|
+
expirationDate?: string;
|
41
|
+
boostId?: string;
|
42
|
+
boostName?: string;
|
43
|
+
boostImage?: string;
|
44
|
+
achievementId?: string;
|
45
|
+
achievementType?: string;
|
46
|
+
achievementName?: string;
|
47
|
+
achievementDescription?: string;
|
48
|
+
achievementNarrative?: string;
|
49
|
+
achievementImage?: string;
|
50
|
+
attachments?: BoostAttachment[];
|
51
|
+
display?: BoostDisplay;
|
52
|
+
};
|
25
53
|
};
|
26
54
|
/** @group VC Templates Plugin */
|
27
55
|
export type NewCredentialFunction = (args?: DiscriminatedUnionize<VcTemplates>) => UnsignedVC;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@learncard/core",
|
3
|
-
"version": "8.5.
|
3
|
+
"version": "8.5.2",
|
4
4
|
"description": "",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/core.esm.js",
|
@@ -19,6 +19,7 @@
|
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@glazed/types": "^0.2.0",
|
22
|
+
"@learncard/types": "5.2.2",
|
22
23
|
"@types/jest": "^29.2.2",
|
23
24
|
"@types/node": "^17.0.31",
|
24
25
|
"aqu": "0.4.3",
|
@@ -33,8 +34,7 @@
|
|
33
34
|
"shx": "^0.3.4",
|
34
35
|
"ts-jest": "^29.0.3",
|
35
36
|
"tsc-alias": "^1.6.9",
|
36
|
-
"typescript": "^4.6.4"
|
37
|
-
"@learncard/types": "5.2.0"
|
37
|
+
"typescript": "^4.6.4"
|
38
38
|
},
|
39
39
|
"types": "./dist/index.d.ts",
|
40
40
|
"dependencies": {
|
@@ -45,6 +45,7 @@
|
|
45
45
|
"@digitalbazaar/vpqr": "^3.0.0",
|
46
46
|
"@glazed/did-datastore": "0.3.2",
|
47
47
|
"@glazed/tile-loader": "0.2.1",
|
48
|
+
"@learncard/helpers": "1.0.1",
|
48
49
|
"@uniswap/default-token-list": "^4.1.0",
|
49
50
|
"abort-controller": "^3.0.0",
|
50
51
|
"core-js": "^3.25.5",
|
@@ -59,8 +60,7 @@
|
|
59
60
|
"key-did-provider-ed25519": "^2.0.0",
|
60
61
|
"key-did-resolver": "2.3.0",
|
61
62
|
"web-credential-handler": "^2.0.0",
|
62
|
-
"zod": "^3.20.2"
|
63
|
-
"@learncard/helpers": "1.0.1"
|
63
|
+
"zod": "^3.20.2"
|
64
64
|
},
|
65
65
|
"scripts": {
|
66
66
|
"build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.build.json && tsc-alias",
|