@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.
@@ -30,6 +30,7 @@ const getGroups = (navigation) => {
30
30
  ...nav,
31
31
  };
32
32
  if (nav.section) {
33
+ // @ts-expect-error
33
34
  item.section = sec === '__undefined__' ? [] : [sec];
34
35
  }
35
36
  groups[sec].push(item);
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().items(Joi.string().min(1)).single(),
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(),
@@ -238,7 +238,7 @@ export interface TNavigationItem {
238
238
  };
239
239
  private?: boolean;
240
240
  role?: string[];
241
- section?: string[];
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?: string[];
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-20251021-070951-25e3083c",
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-20251021-070951-25e3083c",
30
- "@abtnode/db-cache": "1.16.54-beta-20251021-070951-25e3083c",
31
- "@abtnode/docker-utils": "1.16.54-beta-20251021-070951-25e3083c",
32
- "@arcblock/did": "^1.26.2",
33
- "@arcblock/did-ext": "^1.26.2",
34
- "@arcblock/did-util": "^1.26.2",
35
- "@arcblock/jwt": "^1.26.2",
36
- "@blocklet/constant": "1.16.54-beta-20251021-070951-25e3083c",
37
- "@ocap/asset": "^1.26.2",
38
- "@ocap/mcrypto": "^1.26.2",
39
- "@ocap/types": "^1.26.2",
40
- "@ocap/util": "^1.26.2",
41
- "@ocap/wallet": "^1.26.2",
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": "db517e9013dbad744e38883f56e4eba1fa1615c1"
87
+ "gitHead": "73e5a3a80b82a2a7c62d42fdc08207b28e67633e"
88
88
  }