@blocklet/meta 1.16.54-beta-20251021-070951-25e3083c → 1.16.54-beta-20251024-030947-6f2889bf
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/lib/parse-navigation.js +1 -0
- package/lib/schema.js +3 -1
- package/lib/types/schema.d.ts +2 -2
- package/lib/util.js +1 -1
- package/package.json +15 -15
package/lib/parse-navigation.js
CHANGED
package/lib/schema.js
CHANGED
|
@@ -400,7 +400,9 @@ const navigationItemProps = {
|
|
|
400
400
|
.min(1)
|
|
401
401
|
.pattern(Joi.string().valid(...localeList), Joi.string().custom(checkLinkHelper))),
|
|
402
402
|
component: Joi.string().min(1),
|
|
403
|
-
section: Joi.array()
|
|
403
|
+
section: Joi.array()
|
|
404
|
+
.items(Joi.string().valid('header', 'footer', 'bottom', 'social', 'dashboard', 'sessionManager', 'userCenter', 'bottomNavigation'))
|
|
405
|
+
.single(),
|
|
404
406
|
role: Joi.array().items(Joi.string().min(1)).single(),
|
|
405
407
|
icon: Joi.string().min(1),
|
|
406
408
|
visible: Joi.boolean(),
|
package/lib/types/schema.d.ts
CHANGED
|
@@ -238,7 +238,7 @@ export interface TNavigationItem {
|
|
|
238
238
|
};
|
|
239
239
|
private?: boolean;
|
|
240
240
|
role?: string[];
|
|
241
|
-
section?:
|
|
241
|
+
section?: ('header' | 'footer' | 'bottom' | 'social' | 'dashboard' | 'sessionManager' | 'userCenter' | 'bottomNavigation')[];
|
|
242
242
|
title: string | {
|
|
243
243
|
/**
|
|
244
244
|
* Unknown Property
|
|
@@ -255,7 +255,7 @@ export interface TNavigationItem {
|
|
|
255
255
|
};
|
|
256
256
|
private?: boolean;
|
|
257
257
|
role?: string[];
|
|
258
|
-
section?:
|
|
258
|
+
section?: ('header' | 'footer' | 'bottom' | 'social' | 'dashboard' | 'sessionManager' | 'userCenter' | 'bottomNavigation')[];
|
|
259
259
|
title: string | {
|
|
260
260
|
/**
|
|
261
261
|
* Unknown Property
|
package/lib/util.js
CHANGED
|
@@ -766,7 +766,7 @@ const getMountPoints = (blocklet) => {
|
|
|
766
766
|
name: component.meta?.bundleName || '',
|
|
767
767
|
did: component.meta?.bundleDid || '',
|
|
768
768
|
version: component.meta?.version || '',
|
|
769
|
-
status: (0, constant_2.fromBlockletStatus)(component.status),
|
|
769
|
+
status: (0, constant_2.fromBlockletStatus)(component.greenStatus) === 'running' ? 'running' : (0, constant_2.fromBlockletStatus)(component.status),
|
|
770
770
|
mountPoint: (0, ufo_1.joinURL)('/', component.mountPoint || ''),
|
|
771
771
|
components: arr,
|
|
772
772
|
capabilities: component.meta?.capabilities || {},
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.54-beta-
|
|
6
|
+
"version": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
8
|
"homepage": "https://www.arcblock.io/docs/blocklet-spec",
|
|
9
9
|
"main": "./lib/index.js",
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@abtnode/constant": "1.16.54-beta-
|
|
30
|
-
"@abtnode/db-cache": "1.16.54-beta-
|
|
31
|
-
"@abtnode/docker-utils": "1.16.54-beta-
|
|
32
|
-
"@arcblock/did": "^1.26.
|
|
33
|
-
"@arcblock/did-ext": "^1.26.
|
|
34
|
-
"@arcblock/did-util": "^1.26.
|
|
35
|
-
"@arcblock/jwt": "^1.26.
|
|
36
|
-
"@blocklet/constant": "1.16.54-beta-
|
|
37
|
-
"@ocap/asset": "^1.26.
|
|
38
|
-
"@ocap/mcrypto": "^1.26.
|
|
39
|
-
"@ocap/types": "^1.26.
|
|
40
|
-
"@ocap/util": "^1.26.
|
|
41
|
-
"@ocap/wallet": "^1.26.
|
|
29
|
+
"@abtnode/constant": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
30
|
+
"@abtnode/db-cache": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
31
|
+
"@abtnode/docker-utils": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
32
|
+
"@arcblock/did": "^1.26.3",
|
|
33
|
+
"@arcblock/did-ext": "^1.26.3",
|
|
34
|
+
"@arcblock/did-util": "^1.26.3",
|
|
35
|
+
"@arcblock/jwt": "^1.26.3",
|
|
36
|
+
"@blocklet/constant": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
37
|
+
"@ocap/asset": "^1.26.3",
|
|
38
|
+
"@ocap/mcrypto": "^1.26.3",
|
|
39
|
+
"@ocap/types": "^1.26.3",
|
|
40
|
+
"@ocap/util": "^1.26.3",
|
|
41
|
+
"@ocap/wallet": "^1.26.3",
|
|
42
42
|
"ajv": "^8.11.0",
|
|
43
43
|
"axios": "^1.7.9",
|
|
44
44
|
"cjk-length": "^1.0.0",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"ts-node": "^10.9.1",
|
|
85
85
|
"typescript": "^5.6.3"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "73e5a3a80b82a2a7c62d42fdc08207b28e67633e"
|
|
88
88
|
}
|