@next-bricks/ai-portal 0.20.1 → 0.20.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.
Files changed (28) hide show
  1. package/dist/bricks.json +15 -15
  2. package/dist/chunks/4979.ceeb6132.js +2 -0
  3. package/dist/chunks/4979.ceeb6132.js.map +1 -0
  4. package/dist/chunks/{8230.5f592f25.js → 8230.48b75640.js} +3 -3
  5. package/dist/chunks/8230.48b75640.js.map +1 -0
  6. package/dist/chunks/{cruise-canvas.d1626520.js → cruise-canvas.409d213c.js} +2 -2
  7. package/dist/chunks/{cruise-canvas.d1626520.js.map → cruise-canvas.409d213c.js.map} +1 -1
  8. package/dist/chunks/{elevo-sidebar.2433b425.js → elevo-sidebar.0eea9917.js} +3 -3
  9. package/dist/chunks/elevo-sidebar.0eea9917.js.map +1 -0
  10. package/dist/chunks/{main.4e2a6954.js → main.816463d3.js} +2 -2
  11. package/dist/chunks/{main.4e2a6954.js.map → main.816463d3.js.map} +1 -1
  12. package/dist/examples.json +13 -13
  13. package/dist/{index.4183ea1c.js → index.4c4cbbca.js} +2 -2
  14. package/dist/{index.4183ea1c.js.map → index.4c4cbbca.js.map} +1 -1
  15. package/dist/manifest.json +126 -126
  16. package/dist/types.json +157 -157
  17. package/dist-types/cruise-canvas/CmdbInstanceDetail/CmdbInstanceDetail.d.ts +1 -1
  18. package/dist-types/cruise-canvas/bricks.d.ts +0 -2
  19. package/dist-types/cruise-canvas/interfaces.d.ts +1 -1
  20. package/docs/cruise-canvas.md +77 -0
  21. package/package.json +2 -2
  22. package/dist/chunks/7417.424470b3.js +0 -2
  23. package/dist/chunks/7417.424470b3.js.map +0 -1
  24. package/dist/chunks/8230.5f592f25.js.map +0 -1
  25. package/dist/chunks/elevo-sidebar.2433b425.js.map +0 -1
  26. package/dist-types/cruise-canvas/utils/converters/isExpression.d.ts +0 -1
  27. /package/dist/chunks/{8230.5f592f25.js.LICENSE.txt → 8230.48b75640.js.LICENSE.txt} +0 -0
  28. /package/dist/chunks/{elevo-sidebar.2433b425.js.LICENSE.txt → elevo-sidebar.0eea9917.js.LICENSE.txt} +0 -0
@@ -3,6 +3,44 @@
3
3
  "package": "@next-bricks/ai-portal",
4
4
  "name": "ai-portal",
5
5
  "bricks": [
6
+ {
7
+ "name": "ai-portal.chat-box",
8
+ "properties": [
9
+ {
10
+ "name": "disabled",
11
+ "type": "boolean"
12
+ },
13
+ {
14
+ "name": "placeholder",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "autoFocus",
19
+ "type": "boolean"
20
+ },
21
+ {
22
+ "name": "suggestions",
23
+ "attribute": false,
24
+ "type": "Suggestion[]"
25
+ },
26
+ {
27
+ "name": "suggestionsLabel",
28
+ "type": "string"
29
+ }
30
+ ],
31
+ "events": [
32
+ {
33
+ "name": "message.submit",
34
+ "detail": {
35
+ "type": "string"
36
+ }
37
+ }
38
+ ],
39
+ "slots": [],
40
+ "methods": [],
41
+ "parts": [],
42
+ "description": "构件 `ai-portal.chat-box`"
43
+ },
6
44
  {
7
45
  "name": "ai-portal.cruise-canvas",
8
46
  "properties": [
@@ -73,6 +111,85 @@
73
111
  "parts": [],
74
112
  "description": "构件 `ai-portal.cruise-canvas`"
75
113
  },
114
+ {
115
+ "name": "ai-portal.home-container",
116
+ "properties": [],
117
+ "events": [],
118
+ "slots": [],
119
+ "methods": [],
120
+ "parts": [],
121
+ "description": "构件 `ai-portal.home-container`"
122
+ },
123
+ {
124
+ "name": "ai-portal.stat-with-mini-chart",
125
+ "properties": [
126
+ {
127
+ "name": "label",
128
+ "type": "string"
129
+ },
130
+ {
131
+ "name": "value",
132
+ "type": "string"
133
+ },
134
+ {
135
+ "name": "size",
136
+ "description": "",
137
+ "default": "\"medium\"",
138
+ "type": "\"medium\" | \"small\""
139
+ },
140
+ {
141
+ "name": "lineColor",
142
+ "description": "",
143
+ "default": "\"var(--color-brand)\"",
144
+ "type": "string"
145
+ },
146
+ {
147
+ "name": "showArea",
148
+ "type": "boolean"
149
+ },
150
+ {
151
+ "name": "min",
152
+ "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
153
+ "type": "number"
154
+ },
155
+ {
156
+ "name": "max",
157
+ "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
158
+ "type": "number"
159
+ },
160
+ {
161
+ "name": "xField",
162
+ "description": "",
163
+ "default": "\"0\"",
164
+ "type": "string"
165
+ },
166
+ {
167
+ "name": "yField",
168
+ "description": "",
169
+ "default": "\"1\"",
170
+ "type": "string"
171
+ },
172
+ {
173
+ "name": "data",
174
+ "attribute": false,
175
+ "type": "Record<string, number>[]"
176
+ }
177
+ ],
178
+ "events": [],
179
+ "slots": [],
180
+ "methods": [],
181
+ "parts": [],
182
+ "description": "构件 `ai-portal.stat-with-mini-chart`"
183
+ },
184
+ {
185
+ "name": "ai-portal.elevo-logo",
186
+ "properties": [],
187
+ "events": [],
188
+ "slots": [],
189
+ "methods": [],
190
+ "parts": [],
191
+ "description": "Elevo Logo"
192
+ },
76
193
  {
77
194
  "name": "ai-portal.chat-history",
78
195
  "properties": [
@@ -110,24 +227,6 @@
110
227
  "parts": [],
111
228
  "description": "构件 `ai-portal.chat-history`"
112
229
  },
113
- {
114
- "name": "ai-portal.home-container",
115
- "properties": [],
116
- "events": [],
117
- "slots": [],
118
- "methods": [],
119
- "parts": [],
120
- "description": "构件 `ai-portal.home-container`"
121
- },
122
- {
123
- "name": "ai-portal.elevo-logo",
124
- "properties": [],
125
- "events": [],
126
- "slots": [],
127
- "methods": [],
128
- "parts": [],
129
- "description": "Elevo Logo"
130
- },
131
230
  {
132
231
  "name": "ai-portal.elevo-sidebar",
133
232
  "properties": [
@@ -180,25 +279,6 @@
180
279
  "parts": [],
181
280
  "description": "构件 `ai-portal.elevo-sidebar`"
182
281
  },
183
- {
184
- "name": "ai-portal.show-cases",
185
- "properties": [
186
- {
187
- "name": "list",
188
- "attribute": false,
189
- "type": "ShowCase[]"
190
- },
191
- {
192
- "name": "taskUrlTemplate",
193
- "type": "string"
194
- }
195
- ],
196
- "events": [],
197
- "slots": [],
198
- "methods": [],
199
- "parts": [],
200
- "description": "构件 `ai-portal.show-cases`"
201
- },
202
282
  {
203
283
  "name": "ai-portal.icon-button",
204
284
  "properties": [
@@ -227,118 +307,38 @@
227
307
  "description": "构件 `ai-portal.icon-button`"
228
308
  },
229
309
  {
230
- "name": "ai-portal.mcp-tools",
310
+ "name": "ai-portal.show-cases",
231
311
  "properties": [
232
312
  {
233
313
  "name": "list",
234
314
  "attribute": false,
235
- "type": "McpTool[]"
236
- }
237
- ],
238
- "events": [],
239
- "slots": [],
240
- "methods": [],
241
- "parts": [],
242
- "description": "构件 `ai-portal.mcp-tools`"
243
- },
244
- {
245
- "name": "ai-portal.chat-box",
246
- "properties": [
247
- {
248
- "name": "disabled",
249
- "type": "boolean"
250
- },
251
- {
252
- "name": "placeholder",
253
- "type": "string"
254
- },
255
- {
256
- "name": "autoFocus",
257
- "type": "boolean"
258
- },
259
- {
260
- "name": "suggestions",
261
- "attribute": false,
262
- "type": "Suggestion[]"
315
+ "type": "ShowCase[]"
263
316
  },
264
317
  {
265
- "name": "suggestionsLabel",
318
+ "name": "taskUrlTemplate",
266
319
  "type": "string"
267
320
  }
268
321
  ],
269
- "events": [
270
- {
271
- "name": "message.submit",
272
- "detail": {
273
- "type": "string"
274
- }
275
- }
276
- ],
322
+ "events": [],
277
323
  "slots": [],
278
324
  "methods": [],
279
325
  "parts": [],
280
- "description": "构件 `ai-portal.chat-box`"
326
+ "description": "构件 `ai-portal.show-cases`"
281
327
  },
282
328
  {
283
- "name": "ai-portal.stat-with-mini-chart",
329
+ "name": "ai-portal.mcp-tools",
284
330
  "properties": [
285
331
  {
286
- "name": "label",
287
- "type": "string"
288
- },
289
- {
290
- "name": "value",
291
- "type": "string"
292
- },
293
- {
294
- "name": "size",
295
- "description": "",
296
- "default": "\"medium\"",
297
- "type": "\"medium\" | \"small\""
298
- },
299
- {
300
- "name": "lineColor",
301
- "description": "",
302
- "default": "\"var(--color-brand)\"",
303
- "type": "string"
304
- },
305
- {
306
- "name": "showArea",
307
- "type": "boolean"
308
- },
309
- {
310
- "name": "min",
311
- "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
312
- "type": "number"
313
- },
314
- {
315
- "name": "max",
316
- "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
317
- "type": "number"
318
- },
319
- {
320
- "name": "xField",
321
- "description": "",
322
- "default": "\"0\"",
323
- "type": "string"
324
- },
325
- {
326
- "name": "yField",
327
- "description": "",
328
- "default": "\"1\"",
329
- "type": "string"
330
- },
331
- {
332
- "name": "data",
332
+ "name": "list",
333
333
  "attribute": false,
334
- "type": "Record<string, number>[]"
334
+ "type": "McpTool[]"
335
335
  }
336
336
  ],
337
337
  "events": [],
338
338
  "slots": [],
339
339
  "methods": [],
340
340
  "parts": [],
341
- "description": "构件 `ai-portal.stat-with-mini-chart`"
341
+ "description": "构件 `ai-portal.mcp-tools`"
342
342
  }
343
343
  ],
344
344
  "providers": []
package/dist/types.json CHANGED
@@ -4,74 +4,6 @@
4
4
  "events": [],
5
5
  "methods": []
6
6
  },
7
- "ai-portal.elevo-logo": {
8
- "properties": [],
9
- "events": [],
10
- "methods": []
11
- },
12
- "ai-portal.icon-button": {
13
- "properties": [
14
- {
15
- "name": "icon",
16
- "annotation": {
17
- "type": "reference",
18
- "typeName": {
19
- "type": "identifier",
20
- "name": "GeneralIconProps"
21
- }
22
- }
23
- },
24
- {
25
- "name": "tooltip",
26
- "annotation": {
27
- "type": "keyword",
28
- "value": "string"
29
- }
30
- },
31
- {
32
- "name": "disabled",
33
- "annotation": {
34
- "type": "keyword",
35
- "value": "boolean"
36
- }
37
- },
38
- {
39
- "name": "variant",
40
- "annotation": {
41
- "type": "reference",
42
- "typeName": {
43
- "type": "identifier",
44
- "name": "IconButtonVariant"
45
- }
46
- }
47
- }
48
- ],
49
- "events": [],
50
- "methods": [],
51
- "types": [
52
- {
53
- "type": "typeAlias",
54
- "name": "IconButtonVariant",
55
- "annotation": {
56
- "type": "union",
57
- "types": [
58
- {
59
- "type": "jsLiteral",
60
- "value": "default"
61
- },
62
- {
63
- "type": "jsLiteral",
64
- "value": "light"
65
- },
66
- {
67
- "type": "jsLiteral",
68
- "value": "mini"
69
- }
70
- ]
71
- }
72
- }
73
- ]
74
- },
75
7
  "ai-portal.stat-with-mini-chart": {
76
8
  "properties": [
77
9
  {
@@ -176,6 +108,163 @@
176
108
  "events": [],
177
109
  "methods": []
178
110
  },
111
+ "ai-portal.elevo-logo": {
112
+ "properties": [],
113
+ "events": [],
114
+ "methods": []
115
+ },
116
+ "ai-portal.icon-button": {
117
+ "properties": [
118
+ {
119
+ "name": "icon",
120
+ "annotation": {
121
+ "type": "reference",
122
+ "typeName": {
123
+ "type": "identifier",
124
+ "name": "GeneralIconProps"
125
+ }
126
+ }
127
+ },
128
+ {
129
+ "name": "tooltip",
130
+ "annotation": {
131
+ "type": "keyword",
132
+ "value": "string"
133
+ }
134
+ },
135
+ {
136
+ "name": "disabled",
137
+ "annotation": {
138
+ "type": "keyword",
139
+ "value": "boolean"
140
+ }
141
+ },
142
+ {
143
+ "name": "variant",
144
+ "annotation": {
145
+ "type": "reference",
146
+ "typeName": {
147
+ "type": "identifier",
148
+ "name": "IconButtonVariant"
149
+ }
150
+ }
151
+ }
152
+ ],
153
+ "events": [],
154
+ "methods": [],
155
+ "types": [
156
+ {
157
+ "type": "typeAlias",
158
+ "name": "IconButtonVariant",
159
+ "annotation": {
160
+ "type": "union",
161
+ "types": [
162
+ {
163
+ "type": "jsLiteral",
164
+ "value": "default"
165
+ },
166
+ {
167
+ "type": "jsLiteral",
168
+ "value": "light"
169
+ },
170
+ {
171
+ "type": "jsLiteral",
172
+ "value": "mini"
173
+ }
174
+ ]
175
+ }
176
+ }
177
+ ]
178
+ },
179
+ "ai-portal.chat-box": {
180
+ "properties": [
181
+ {
182
+ "name": "disabled",
183
+ "annotation": {
184
+ "type": "keyword",
185
+ "value": "boolean"
186
+ }
187
+ },
188
+ {
189
+ "name": "placeholder",
190
+ "annotation": {
191
+ "type": "keyword",
192
+ "value": "string"
193
+ }
194
+ },
195
+ {
196
+ "name": "autoFocus",
197
+ "annotation": {
198
+ "type": "keyword",
199
+ "value": "boolean"
200
+ }
201
+ },
202
+ {
203
+ "name": "suggestions",
204
+ "annotation": {
205
+ "type": "array",
206
+ "elementType": {
207
+ "type": "reference",
208
+ "typeName": {
209
+ "type": "identifier",
210
+ "name": "Suggestion"
211
+ }
212
+ }
213
+ }
214
+ },
215
+ {
216
+ "name": "suggestionsLabel",
217
+ "annotation": {
218
+ "type": "keyword",
219
+ "value": "string"
220
+ }
221
+ }
222
+ ],
223
+ "events": [
224
+ {
225
+ "name": "message.submit",
226
+ "detail": {
227
+ "annotation": {
228
+ "type": "keyword",
229
+ "value": "string"
230
+ }
231
+ }
232
+ }
233
+ ],
234
+ "methods": [],
235
+ "types": [
236
+ {
237
+ "type": "interface",
238
+ "name": "Suggestion",
239
+ "body": [
240
+ {
241
+ "type": "propertySignature",
242
+ "key": {
243
+ "type": "identifier",
244
+ "name": "title"
245
+ },
246
+ "annotation": {
247
+ "type": "keyword",
248
+ "value": "string"
249
+ },
250
+ "computed": false
251
+ },
252
+ {
253
+ "type": "propertySignature",
254
+ "key": {
255
+ "type": "identifier",
256
+ "name": "content"
257
+ },
258
+ "annotation": {
259
+ "type": "keyword",
260
+ "value": "string"
261
+ },
262
+ "computed": false
263
+ }
264
+ ]
265
+ }
266
+ ]
267
+ },
179
268
  "ai-portal.chat-history": {
180
269
  "properties": [
181
270
  {
@@ -577,95 +666,6 @@
577
666
  }
578
667
  ]
579
668
  },
580
- "ai-portal.chat-box": {
581
- "properties": [
582
- {
583
- "name": "disabled",
584
- "annotation": {
585
- "type": "keyword",
586
- "value": "boolean"
587
- }
588
- },
589
- {
590
- "name": "placeholder",
591
- "annotation": {
592
- "type": "keyword",
593
- "value": "string"
594
- }
595
- },
596
- {
597
- "name": "autoFocus",
598
- "annotation": {
599
- "type": "keyword",
600
- "value": "boolean"
601
- }
602
- },
603
- {
604
- "name": "suggestions",
605
- "annotation": {
606
- "type": "array",
607
- "elementType": {
608
- "type": "reference",
609
- "typeName": {
610
- "type": "identifier",
611
- "name": "Suggestion"
612
- }
613
- }
614
- }
615
- },
616
- {
617
- "name": "suggestionsLabel",
618
- "annotation": {
619
- "type": "keyword",
620
- "value": "string"
621
- }
622
- }
623
- ],
624
- "events": [
625
- {
626
- "name": "message.submit",
627
- "detail": {
628
- "annotation": {
629
- "type": "keyword",
630
- "value": "string"
631
- }
632
- }
633
- }
634
- ],
635
- "methods": [],
636
- "types": [
637
- {
638
- "type": "interface",
639
- "name": "Suggestion",
640
- "body": [
641
- {
642
- "type": "propertySignature",
643
- "key": {
644
- "type": "identifier",
645
- "name": "title"
646
- },
647
- "annotation": {
648
- "type": "keyword",
649
- "value": "string"
650
- },
651
- "computed": false
652
- },
653
- {
654
- "type": "propertySignature",
655
- "key": {
656
- "type": "identifier",
657
- "name": "content"
658
- },
659
- "annotation": {
660
- "type": "keyword",
661
- "value": "string"
662
- },
663
- "computed": false
664
- }
665
- ]
666
- }
667
- ]
668
- },
669
669
  "ai-portal.elevo-sidebar": {
670
670
  "properties": [
671
671
  {
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import type { CmdbInstanceDetailData } from "../interfaces";
3
- export declare function CmdbInstanceDetail({ objectId, detail, outputSchema, }: CmdbInstanceDetailData): React.JSX.Element | null;
3
+ export declare function CmdbInstanceDetail({ objectId, detail, outputSchema, }: CmdbInstanceDetailData): React.JSX.Element;
@@ -6,7 +6,6 @@ import type { EoTooltip, ToolTipProps } from "@next-bricks/basic/tooltip";
6
6
  import type { Drawer, DrawerProps, DrawerEvents, DrawerMapEvents } from "@next-bricks/containers/drawer";
7
7
  import { PopoverProps, Popover } from "@next-bricks/basic/popover";
8
8
  import { EoNextTable, NextTableProps } from "@next-bricks/advanced/next-table";
9
- import { Descriptions, DescriptionsProps } from "@next-bricks/presentational/descriptions";
10
9
  import type { IconButton, IconButtonProps } from "../icon-button";
11
10
  export declare const WrappedIcon: import("@next-core/react-element").WrappedBrick<GeneralIcon, GeneralIconProps>;
12
11
  export declare const WrappedButton: import("@next-core/react-element").WrappedBrick<Button, ButtonProps>;
@@ -20,4 +19,3 @@ export declare const WrappedIconButton: import("@next-core/react-element").Wrapp
20
19
  export declare const showDialog: (options: import("@next-bricks/basic/data-providers/show-dialog/show-dialog").DialogOptions) => Promise<void>;
21
20
  export declare const copyToClipboard: (text: string) => Promise<void>;
22
21
  export declare const AsyncWrappedTable: React.LazyExoticComponent<import("@next-core/react-element").WrappedBrick<EoNextTable, NextTableProps>>;
23
- export declare const AsyncWrappedDescriptions: React.LazyExoticComponent<import("@next-core/react-element").WrappedBrick<Descriptions, DescriptionsProps>>;
@@ -163,7 +163,7 @@ export interface CmdbInstanceDetailData {
163
163
  type: "cmdb_instance_detail";
164
164
  objectId: string;
165
165
  detail: Record<string, any>;
166
- outputSchema?: JSONSchema;
166
+ outputSchema?: JSONSchema | string;
167
167
  }
168
168
  export type ZoomAction = ZoomActionLiteral | ((current: TransformLiteral) => ZoomActionLiteral | null);
169
169
  export type ZoomActionLiteral = ZoomActionTransform | ZoomActionTranslateBy;