@blocklet/meta 1.16.40-beta-20250311-152346-f596c9a6 → 1.16.40-beta-20250313-033531-8d70107e

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.
@@ -39,6 +39,7 @@ interface NavigationItem {
39
39
  role?: string;
40
40
  section?: SectionType;
41
41
  title?: string;
42
+ description?: string;
42
43
  link?: string;
43
44
  items?: NavigationItem[];
44
45
  component?: string;
@@ -85,6 +85,9 @@ function normalizeNavigationList(navigationList) {
85
85
  if (tempData.title) {
86
86
  tempData.title = tryParseItem(tempData.title);
87
87
  }
88
+ if (tempData.description) {
89
+ tempData.description = tryParseItem(tempData.description);
90
+ }
88
91
  if (tempData.link) {
89
92
  tempData.link = tryParseItem(tempData.link);
90
93
  }
@@ -49,6 +49,9 @@ const doParseNavigation = (navigation, blocklet, prefix = '/', _level = 1) => {
49
49
  title: nav.title,
50
50
  id: undefined,
51
51
  };
52
+ if (nav.description) {
53
+ item.description = nav.description;
54
+ }
52
55
  if (nav.section) {
53
56
  item.section = nav.section;
54
57
  }
package/lib/schema.js CHANGED
@@ -300,6 +300,7 @@ const interfaceSchema = Joi.object({
300
300
  services: Joi.array().items(serviceSchema).unique('name'),
301
301
  endpoints: Joi.array().items(endpointSchema).unique('type'),
302
302
  pageGroups: Joi.array().items(Joi.string().min(1).max(255).trim()).unique(),
303
+ proxyBehavior: Joi.string().valid('service', 'direct').default('service').optional(),
303
304
  }).meta({
304
305
  className: 'TInterface',
305
306
  unknownType: 'any',
@@ -425,6 +426,9 @@ const navigationItemProps = {
425
426
  .min(1)
426
427
  .pattern(Joi.string().valid(...localeList), Joi.string().min(1).max(constant_2.MAX_TITLE_LENGTH)))
427
428
  .required(),
429
+ description: Joi.alternatives().try(Joi.string().min(1).max(constant_2.MAX_DESCRIPTION_LENGTH), Joi.object()
430
+ .min(1)
431
+ .pattern(Joi.string().valid(...localeList), Joi.string().min(1).max(constant_2.MAX_DESCRIPTION_LENGTH))),
428
432
  link: Joi.alternatives().try(Joi.string().custom(checkLinkHelper), Joi.object()
429
433
  .min(1)
430
434
  .pattern(Joi.string().valid(...localeList), Joi.string().custom(checkLinkHelper))),
@@ -200,6 +200,7 @@ export interface TInterface {
200
200
  };
201
201
  prefix?: string;
202
202
  protocol?: 'tcp' | 'udp' | 'http';
203
+ proxyBehavior?: 'service' | 'direct';
203
204
  services?: TService[];
204
205
  type: 'web' | 'service' | 'wellknown' | 'docker';
205
206
  }
@@ -208,10 +209,22 @@ export type TMountPoint = string;
208
209
  export type TNavigation = TNavigationItem[];
209
210
  export interface TNavigationItem {
210
211
  component?: string;
212
+ description?: string | {
213
+ /**
214
+ * Unknown Property
215
+ */
216
+ [x: string]: string;
217
+ };
211
218
  icon?: string;
212
219
  id?: string;
213
220
  items?: ({
214
221
  component?: string;
222
+ description?: string | {
223
+ /**
224
+ * Unknown Property
225
+ */
226
+ [x: string]: string;
227
+ };
215
228
  icon?: string;
216
229
  id?: string;
217
230
  link?: string | {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.40-beta-20250311-152346-f596c9a6",
6
+ "version": "1.16.40-beta-20250313-033531-8d70107e",
7
7
  "description": "Library to parse/validate/fix blocklet meta",
8
8
  "main": "./lib/index.js",
9
9
  "typings": "./lib/index.d.ts",
@@ -25,13 +25,13 @@
25
25
  "author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@abtnode/constant": "1.16.40-beta-20250311-152346-f596c9a6",
29
- "@abtnode/docker-utils": "1.16.40-beta-20250311-152346-f596c9a6",
28
+ "@abtnode/constant": "1.16.40-beta-20250313-033531-8d70107e",
29
+ "@abtnode/docker-utils": "1.16.40-beta-20250313-033531-8d70107e",
30
30
  "@arcblock/did": "1.19.15",
31
31
  "@arcblock/did-ext": "1.19.15",
32
32
  "@arcblock/did-util": "1.19.15",
33
33
  "@arcblock/jwt": "1.19.15",
34
- "@blocklet/constant": "1.16.40-beta-20250311-152346-f596c9a6",
34
+ "@blocklet/constant": "1.16.40-beta-20250313-033531-8d70107e",
35
35
  "@ocap/asset": "1.19.15",
36
36
  "@ocap/mcrypto": "1.19.15",
37
37
  "@ocap/types": "1.19.15",
@@ -80,5 +80,5 @@
80
80
  "ts-node": "^10.9.1",
81
81
  "typescript": "^5.6.3"
82
82
  },
83
- "gitHead": "72d6d70e60ca33208bde56cf11d6387ddba249c7"
83
+ "gitHead": "34bdd932f825070562a2124557d7198f4a3a9b91"
84
84
  }