@next-bricks/ai-portal 0.50.2 → 0.50.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 (70) hide show
  1. package/dist/bricks.json +31 -31
  2. package/dist/chunks/1334.aae33a33.js +2 -0
  3. package/dist/chunks/1334.aae33a33.js.map +1 -0
  4. package/dist/chunks/3199.0220cf6e.js +3 -0
  5. package/dist/chunks/3199.0220cf6e.js.map +1 -0
  6. package/dist/chunks/3735.8c1d82e7.js +15 -0
  7. package/dist/chunks/3735.8c1d82e7.js.LICENSE.txt +5 -0
  8. package/dist/chunks/3735.8c1d82e7.js.map +1 -0
  9. package/dist/chunks/4317.d0f5904b.js +3 -0
  10. package/dist/chunks/{3151.d1fdecfb.js.LICENSE.txt → 4317.d0f5904b.js.LICENSE.txt} +8 -0
  11. package/dist/chunks/4317.d0f5904b.js.map +1 -0
  12. package/dist/chunks/6201.993201cb.js +2 -0
  13. package/dist/chunks/6201.993201cb.js.map +1 -0
  14. package/dist/chunks/6593.f25cfd6b.js +2 -0
  15. package/dist/chunks/6593.f25cfd6b.js.map +1 -0
  16. package/dist/chunks/8135.3255c5ba.js +2 -0
  17. package/dist/chunks/8135.3255c5ba.js.map +1 -0
  18. package/dist/chunks/8717.feabd75d.js +2 -0
  19. package/dist/chunks/8717.feabd75d.js.map +1 -0
  20. package/dist/chunks/8889.bcfc6cab.js +3 -0
  21. package/dist/chunks/8889.bcfc6cab.js.map +1 -0
  22. package/dist/chunks/{ai-employees.941aaa1b.js → ai-employees.b8e937d4.js} +3 -3
  23. package/dist/chunks/{ai-employees.941aaa1b.js.map → ai-employees.b8e937d4.js.map} +1 -1
  24. package/dist/chunks/elevo-sidebar.e53ce03a.js +3 -0
  25. package/dist/chunks/elevo-sidebar.e53ce03a.js.map +1 -0
  26. package/dist/chunks/{main.bd40fdc0.js → main.c5d23a2b.js} +2 -2
  27. package/dist/chunks/{main.bd40fdc0.js.map → main.c5d23a2b.js.map} +1 -1
  28. package/dist/chunks/page-container.bfb9337e.js +2 -0
  29. package/dist/chunks/page-container.bfb9337e.js.map +1 -0
  30. package/dist/chunks/preview-container.6b29ee97.js +2 -0
  31. package/dist/chunks/preview-container.6b29ee97.js.map +1 -0
  32. package/dist/examples.json +9 -9
  33. package/dist/index.e0156b47.js +2 -0
  34. package/dist/index.e0156b47.js.map +1 -0
  35. package/dist/manifest.json +247 -247
  36. package/dist/types.json +153 -144
  37. package/dist-types/elevo-sidebar/index.d.ts +0 -2
  38. package/dist-types/page-container/index.d.ts +2 -0
  39. package/dist-types/shared/interfaces.d.ts +2 -2
  40. package/dist-types/shared/workers/tsxParser.d.ts +2 -2
  41. package/package.json +2 -2
  42. package/dist/chunks/3151.d1fdecfb.js +0 -3
  43. package/dist/chunks/3151.d1fdecfb.js.map +0 -1
  44. package/dist/chunks/3735.0389cba2.js +0 -15
  45. package/dist/chunks/3735.0389cba2.js.map +0 -1
  46. package/dist/chunks/3832.9b48b5f5.js +0 -2
  47. package/dist/chunks/3832.9b48b5f5.js.map +0 -1
  48. package/dist/chunks/6201.01557568.js +0 -2
  49. package/dist/chunks/6201.01557568.js.map +0 -1
  50. package/dist/chunks/7580.5dca4f97.js +0 -3
  51. package/dist/chunks/7580.5dca4f97.js.LICENSE.txt +0 -9
  52. package/dist/chunks/7580.5dca4f97.js.map +0 -1
  53. package/dist/chunks/8414.8b8390cb.js +0 -2
  54. package/dist/chunks/8414.8b8390cb.js.map +0 -1
  55. package/dist/chunks/8717.4f49d4f6.js +0 -2
  56. package/dist/chunks/8717.4f49d4f6.js.map +0 -1
  57. package/dist/chunks/8889.746f8129.js +0 -3
  58. package/dist/chunks/8889.746f8129.js.map +0 -1
  59. package/dist/chunks/elevo-sidebar.cbec3024.js +0 -3
  60. package/dist/chunks/elevo-sidebar.cbec3024.js.map +0 -1
  61. package/dist/chunks/page-container.e187d00a.js +0 -2
  62. package/dist/chunks/page-container.e187d00a.js.map +0 -1
  63. package/dist/chunks/preview-container.631389f7.js +0 -2
  64. package/dist/chunks/preview-container.631389f7.js.map +0 -1
  65. package/dist/index.546d6b1e.js +0 -2
  66. package/dist/index.546d6b1e.js.map +0 -1
  67. /package/dist/chunks/{3735.0389cba2.js.LICENSE.txt → 3199.0220cf6e.js.LICENSE.txt} +0 -0
  68. /package/dist/chunks/{8889.746f8129.js.LICENSE.txt → 8889.bcfc6cab.js.LICENSE.txt} +0 -0
  69. /package/dist/chunks/{ai-employees.941aaa1b.js.LICENSE.txt → ai-employees.b8e937d4.js.LICENSE.txt} +0 -0
  70. /package/dist/chunks/{elevo-sidebar.cbec3024.js.LICENSE.txt → elevo-sidebar.e53ce03a.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -1,121 +1,4 @@
1
1
  {
2
- "ai-portal.home-container": {
3
- "properties": [
4
- {
5
- "name": "sticky",
6
- "annotation": {
7
- "type": "keyword",
8
- "value": "boolean"
9
- }
10
- }
11
- ],
12
- "events": [],
13
- "methods": []
14
- },
15
- "ai-portal.stat-with-mini-chart": {
16
- "properties": [
17
- {
18
- "name": "label",
19
- "annotation": {
20
- "type": "keyword",
21
- "value": "string"
22
- }
23
- },
24
- {
25
- "name": "value",
26
- "annotation": {
27
- "type": "keyword",
28
- "value": "string"
29
- }
30
- },
31
- {
32
- "name": "size",
33
- "annotation": {
34
- "type": "union",
35
- "types": [
36
- {
37
- "type": "jsLiteral",
38
- "value": "medium"
39
- },
40
- {
41
- "type": "jsLiteral",
42
- "value": "small"
43
- }
44
- ]
45
- }
46
- },
47
- {
48
- "name": "lineColor",
49
- "annotation": {
50
- "type": "keyword",
51
- "value": "string"
52
- }
53
- },
54
- {
55
- "name": "showArea",
56
- "annotation": {
57
- "type": "keyword",
58
- "value": "boolean"
59
- }
60
- },
61
- {
62
- "name": "min",
63
- "annotation": {
64
- "type": "keyword",
65
- "value": "number"
66
- }
67
- },
68
- {
69
- "name": "max",
70
- "annotation": {
71
- "type": "keyword",
72
- "value": "number"
73
- }
74
- },
75
- {
76
- "name": "xField",
77
- "annotation": {
78
- "type": "keyword",
79
- "value": "string"
80
- }
81
- },
82
- {
83
- "name": "yField",
84
- "annotation": {
85
- "type": "keyword",
86
- "value": "string"
87
- }
88
- },
89
- {
90
- "name": "data",
91
- "annotation": {
92
- "type": "array",
93
- "elementType": {
94
- "type": "reference",
95
- "typeName": {
96
- "type": "identifier",
97
- "name": "Record"
98
- },
99
- "typeParameters": {
100
- "type": "typeParameterInstantiation",
101
- "params": [
102
- {
103
- "type": "keyword",
104
- "value": "string"
105
- },
106
- {
107
- "type": "keyword",
108
- "value": "number"
109
- }
110
- ]
111
- }
112
- }
113
- }
114
- }
115
- ],
116
- "events": [],
117
- "methods": []
118
- },
119
2
  "ai-portal.icon-button": {
120
3
  "properties": [
121
4
  {
@@ -398,6 +281,22 @@
398
281
  ]
399
282
  }
400
283
  },
284
+ {
285
+ "name": "variant",
286
+ "annotation": {
287
+ "type": "union",
288
+ "types": [
289
+ {
290
+ "type": "jsLiteral",
291
+ "value": "default"
292
+ },
293
+ {
294
+ "type": "jsLiteral",
295
+ "value": "form"
296
+ }
297
+ ]
298
+ }
299
+ },
401
300
  {
402
301
  "name": "sticky",
403
302
  "annotation": {
@@ -519,11 +418,128 @@
519
418
  }
520
419
  ]
521
420
  },
421
+ "ai-portal.home-container": {
422
+ "properties": [
423
+ {
424
+ "name": "sticky",
425
+ "annotation": {
426
+ "type": "keyword",
427
+ "value": "boolean"
428
+ }
429
+ }
430
+ ],
431
+ "events": [],
432
+ "methods": []
433
+ },
522
434
  "ai-portal.elevo-logo": {
523
435
  "properties": [],
524
436
  "events": [],
525
437
  "methods": []
526
438
  },
439
+ "ai-portal.stat-with-mini-chart": {
440
+ "properties": [
441
+ {
442
+ "name": "label",
443
+ "annotation": {
444
+ "type": "keyword",
445
+ "value": "string"
446
+ }
447
+ },
448
+ {
449
+ "name": "value",
450
+ "annotation": {
451
+ "type": "keyword",
452
+ "value": "string"
453
+ }
454
+ },
455
+ {
456
+ "name": "size",
457
+ "annotation": {
458
+ "type": "union",
459
+ "types": [
460
+ {
461
+ "type": "jsLiteral",
462
+ "value": "medium"
463
+ },
464
+ {
465
+ "type": "jsLiteral",
466
+ "value": "small"
467
+ }
468
+ ]
469
+ }
470
+ },
471
+ {
472
+ "name": "lineColor",
473
+ "annotation": {
474
+ "type": "keyword",
475
+ "value": "string"
476
+ }
477
+ },
478
+ {
479
+ "name": "showArea",
480
+ "annotation": {
481
+ "type": "keyword",
482
+ "value": "boolean"
483
+ }
484
+ },
485
+ {
486
+ "name": "min",
487
+ "annotation": {
488
+ "type": "keyword",
489
+ "value": "number"
490
+ }
491
+ },
492
+ {
493
+ "name": "max",
494
+ "annotation": {
495
+ "type": "keyword",
496
+ "value": "number"
497
+ }
498
+ },
499
+ {
500
+ "name": "xField",
501
+ "annotation": {
502
+ "type": "keyword",
503
+ "value": "string"
504
+ }
505
+ },
506
+ {
507
+ "name": "yField",
508
+ "annotation": {
509
+ "type": "keyword",
510
+ "value": "string"
511
+ }
512
+ },
513
+ {
514
+ "name": "data",
515
+ "annotation": {
516
+ "type": "array",
517
+ "elementType": {
518
+ "type": "reference",
519
+ "typeName": {
520
+ "type": "identifier",
521
+ "name": "Record"
522
+ },
523
+ "typeParameters": {
524
+ "type": "typeParameterInstantiation",
525
+ "params": [
526
+ {
527
+ "type": "keyword",
528
+ "value": "string"
529
+ },
530
+ {
531
+ "type": "keyword",
532
+ "value": "number"
533
+ }
534
+ ]
535
+ }
536
+ }
537
+ }
538
+ }
539
+ ],
540
+ "events": [],
541
+ "methods": []
542
+ },
527
543
  "ai-portal.blank-state": {
528
544
  "properties": [
529
545
  {
@@ -1509,26 +1525,6 @@
1509
1525
  }
1510
1526
  ]
1511
1527
  },
1512
- "ai-portal.preview-container": {
1513
- "properties": [
1514
- {
1515
- "name": "source",
1516
- "annotation": {
1517
- "type": "keyword",
1518
- "value": "string"
1519
- }
1520
- },
1521
- {
1522
- "name": "url",
1523
- "annotation": {
1524
- "type": "keyword",
1525
- "value": "string"
1526
- }
1527
- }
1528
- ],
1529
- "events": [],
1530
- "methods": []
1531
- },
1532
1528
  "ai-portal.action-buttons": {
1533
1529
  "properties": [
1534
1530
  {
@@ -2847,6 +2843,26 @@
2847
2843
  }
2848
2844
  ]
2849
2845
  },
2846
+ "ai-portal.preview-container": {
2847
+ "properties": [
2848
+ {
2849
+ "name": "source",
2850
+ "annotation": {
2851
+ "type": "keyword",
2852
+ "value": "string"
2853
+ }
2854
+ },
2855
+ {
2856
+ "name": "url",
2857
+ "annotation": {
2858
+ "type": "keyword",
2859
+ "value": "string"
2860
+ }
2861
+ }
2862
+ ],
2863
+ "events": [],
2864
+ "methods": []
2865
+ },
2850
2866
  "ai-portal.chat-input": {
2851
2867
  "properties": [
2852
2868
  {
@@ -2959,13 +2975,6 @@
2959
2975
  ]
2960
2976
  }
2961
2977
  },
2962
- {
2963
- "name": "bordered",
2964
- "annotation": {
2965
- "type": "keyword",
2966
- "value": "boolean"
2967
- }
2968
- },
2969
2978
  {
2970
2979
  "name": "logoUrl",
2971
2980
  "annotation": {
@@ -7,7 +7,6 @@ import { type Project } from "./ChatHistory.js";
7
7
  export interface ElevoSidebarProps {
8
8
  userInstanceId?: string;
9
9
  behavior?: "default" | "drawer";
10
- bordered?: boolean;
11
10
  logoUrl?: string;
12
11
  newChatUrl?: string;
13
12
  newChatLinkWhenCollapsed?: boolean;
@@ -32,7 +31,6 @@ export declare class ElevoSidebar extends ReactNextElement implements ElevoSideb
32
31
  #private;
33
32
  accessor userInstanceId: string | undefined;
34
33
  accessor behavior: "default" | "drawer" | undefined;
35
- accessor bordered: boolean | undefined;
36
34
  accessor logoUrl: string | undefined;
37
35
  accessor newChatUrl: string | undefined;
38
36
  accessor newChatLinkWhenCollapsed: boolean | undefined;
@@ -5,6 +5,7 @@ export interface PageContainerProps {
5
5
  pageTitle?: string;
6
6
  breadcrumbs?: Breadcrumb[];
7
7
  size?: "medium" | "small";
8
+ variant?: "default" | "form";
8
9
  sticky?: boolean;
9
10
  }
10
11
  export interface Breadcrumb {
@@ -21,6 +22,7 @@ export declare class PageContainer extends ReactNextElement implements PageConta
21
22
  accessor pageTitle: string | undefined;
22
23
  accessor breadcrumbs: Breadcrumb[] | undefined;
23
24
  accessor size: "medium" | "small" | undefined;
25
+ accessor variant: "default" | "form" | undefined;
24
26
  accessor sticky: boolean | undefined;
25
27
  render(): React.JSX.Element;
26
28
  }
@@ -1,4 +1,4 @@
1
- import type { ParseResult } from "@next-shared/tsx-parser";
1
+ import type { ParsedApp } from "@next-shared/tsx-parser";
2
2
  export interface Conversation {
3
3
  id: string;
4
4
  title: string;
@@ -113,7 +113,7 @@ export interface GeneratedView {
113
113
  withContexts?: Record<string, unknown>;
114
114
  asyncConstructedView?: Promise<ParsedView | null>;
115
115
  }
116
- export interface ParsedView extends ParseResult {
116
+ export interface ParsedView extends ParsedApp {
117
117
  viewId: string;
118
118
  withContexts?: Record<string, unknown>;
119
119
  }
@@ -1,5 +1,5 @@
1
- import type { ParseResult, ParseOptions } from "@next-shared/tsx-parser";
1
+ import type { ParsedApp, ParseOptions } from "@next-shared/tsx-parser";
2
2
  export interface RemoteTsxParserWorker {
3
- parse(source: string, options?: ParseOptions): Promise<ParseResult>;
3
+ parseView(source: string, options?: ParseOptions): Promise<ParsedApp>;
4
4
  }
5
5
  export declare function getRemoteTsxParserWorker(): Promise<RemoteTsxParserWorker>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.50.2",
3
+ "version": "0.50.3",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,5 +47,5 @@
47
47
  "@next-bricks/presentational": "*",
48
48
  "@next-bricks/vs": "*"
49
49
  },
50
- "gitHead": "a2783362462647b17c21eeb1f70d9965d7e0a270"
50
+ "gitHead": "a4e612650287a0aa026ce5de9a1873184b16d276"
51
51
  }