@shiqianjiang/ceru-plugin-issuer 0.3.2 → 0.3.3
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/dist/index.js +4 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -150,7 +150,7 @@ export const MANIFEST_SCHEMA = object({
|
|
|
150
150
|
entry: id,
|
|
151
151
|
title: { type: 'string', minLength: 1, maxLength: 100 },
|
|
152
152
|
presentation: object({
|
|
153
|
-
kind: {
|
|
153
|
+
kind: { enum: ['drawer', 'modal'] },
|
|
154
154
|
placement: { enum: ['left', 'right', 'top', 'bottom'] },
|
|
155
155
|
size: { type: 'integer', minimum: 280, maximum: 1200 },
|
|
156
156
|
}, ['kind']),
|
|
@@ -206,7 +206,7 @@ export const MANIFEST_SCHEMA = object({
|
|
|
206
206
|
accountItems: {
|
|
207
207
|
type: 'array',
|
|
208
208
|
maxItems: 16,
|
|
209
|
-
items: object({ id, title: string, view: id, action: id }, ['id', 'title', 'view', 'action']),
|
|
209
|
+
items: object({ id, title: string, view: id, action: id, logoutAction: id }, ['id', 'title', 'view', 'action']),
|
|
210
210
|
},
|
|
211
211
|
homeSections: {
|
|
212
212
|
type: 'array',
|
|
@@ -407,6 +407,8 @@ export function validateManifest(value) {
|
|
|
407
407
|
ensure(manifest.modules.logic, 'Account items require a logic module');
|
|
408
408
|
ensure(views.has(account.view), 'Unknown account view: ' + account.view);
|
|
409
409
|
ensure(actions.has(account.action), 'Unknown account summary action: ' + account.action);
|
|
410
|
+
if (account.logoutAction)
|
|
411
|
+
ensure(actions.has(account.logoutAction), 'Unknown account logout action: ' + account.logoutAction);
|
|
410
412
|
}
|
|
411
413
|
const share = manifest.modules.share;
|
|
412
414
|
if (share?.guestAdapterId)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shiqianjiang/ceru-plugin-issuer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Static verification, Ed25519 signing and cached personalized issuance of Ceru single-JS plugins",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"node": ">=22.12.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@shiqianjiang/ceru-plugin-sdk": "0.3.
|
|
26
|
+
"@shiqianjiang/ceru-plugin-sdk": "0.3.3",
|
|
27
27
|
"acorn": "^8.18.0",
|
|
28
28
|
"ajv": "^8.20.0"
|
|
29
29
|
},
|