@next-bricks/ai-portal 0.51.0 → 0.52.0

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 (123) hide show
  1. package/dist/bricks.json +29 -28
  2. package/dist/chunks/2084.0e9751e7.js +3 -0
  3. package/dist/chunks/2084.0e9751e7.js.map +1 -0
  4. package/dist/chunks/{2142.c02a98d9.js → 2142.0599aecd.js} +2 -2
  5. package/dist/chunks/{2142.c02a98d9.js.map → 2142.0599aecd.js.map} +1 -1
  6. package/dist/chunks/3020.acf9607e.js +2 -0
  7. package/dist/chunks/3020.acf9607e.js.map +1 -0
  8. package/dist/chunks/{3171.a4a34e43.js → 3171.a0251432.js} +2 -2
  9. package/dist/chunks/{3171.a4a34e43.js.map → 3171.a0251432.js.map} +1 -1
  10. package/dist/chunks/{7146.6cc7fa79.js → 4765.e2813cac.js} +2 -2
  11. package/dist/chunks/{4765.f5f33140.js.map → 4765.e2813cac.js.map} +1 -1
  12. package/dist/chunks/{4837.488c5888.js → 4837.c7f9a784.js} +2 -2
  13. package/dist/chunks/{9599.f127b5a1.js.map → 4837.c7f9a784.js.map} +1 -1
  14. package/dist/chunks/{5552.39ed2457.js → 5552.84bdc597.js} +2 -2
  15. package/dist/chunks/{5552.39ed2457.js.map → 5552.84bdc597.js.map} +1 -1
  16. package/dist/chunks/{6201.993201cb.js → 6201.58eeb93e.js} +2 -2
  17. package/dist/chunks/{6201.993201cb.js.map → 6201.58eeb93e.js.map} +1 -1
  18. package/dist/chunks/{6593.f25cfd6b.js → 6593.1afe9a04.js} +2 -2
  19. package/dist/chunks/{6593.f25cfd6b.js.map → 6593.1afe9a04.js.map} +1 -1
  20. package/dist/chunks/{4317.d0f5904b.js → 6947.1cec7258.js} +3 -3
  21. package/dist/chunks/6947.1cec7258.js.map +1 -0
  22. package/dist/chunks/{4765.f5f33140.js → 7146.1af0c62e.js} +2 -2
  23. package/dist/chunks/{7146.6cc7fa79.js.map → 7146.1af0c62e.js.map} +1 -1
  24. package/dist/chunks/{8717.fc81dec5.js → 8717.1e5ad2b1.js} +2 -2
  25. package/dist/chunks/{8717.fc81dec5.js.map → 8717.1e5ad2b1.js.map} +1 -1
  26. package/dist/chunks/943.7073ef6f.js +2 -0
  27. package/dist/chunks/943.7073ef6f.js.map +1 -0
  28. package/dist/chunks/948.d125d58c.js +3 -0
  29. package/dist/chunks/948.d125d58c.js.map +1 -0
  30. package/dist/chunks/{9599.f127b5a1.js → 9599.1f04dd1f.js} +2 -2
  31. package/dist/chunks/{4837.488c5888.js.map → 9599.1f04dd1f.js.map} +1 -1
  32. package/dist/chunks/{action-buttons.44ddca46.js → action-buttons.989fd1c9.js} +2 -2
  33. package/dist/chunks/{action-buttons.44ddca46.js.map → action-buttons.989fd1c9.js.map} +1 -1
  34. package/dist/chunks/activity-timeline.60adaa84.js +2 -0
  35. package/dist/chunks/activity-timeline.60adaa84.js.map +1 -0
  36. package/dist/chunks/{ai-agents.d47947e5.js → ai-agents.92ed0274.js} +3 -3
  37. package/dist/chunks/{ai-agents.d47947e5.js.map → ai-agents.92ed0274.js.map} +1 -1
  38. package/dist/chunks/{ai-employees.6d586b8d.js → ai-employees.12986d4b.js} +3 -3
  39. package/dist/chunks/{ai-employees.6d586b8d.js.map → ai-employees.12986d4b.js.map} +1 -1
  40. package/dist/chunks/blank-state.ad3eee7a.js +2 -0
  41. package/dist/chunks/blank-state.ad3eee7a.js.map +1 -0
  42. package/dist/chunks/{call-tool.28aa1c47.js → call-tool.89a848e0.js} +2 -2
  43. package/dist/chunks/{call-tool.28aa1c47.js.map → call-tool.89a848e0.js.map} +1 -1
  44. package/dist/chunks/chat-box.59ab1b62.js +2 -0
  45. package/dist/chunks/chat-box.59ab1b62.js.map +1 -0
  46. package/dist/chunks/chat-input.b09e4ba0.js +3 -0
  47. package/dist/chunks/chat-input.b09e4ba0.js.map +1 -0
  48. package/dist/chunks/{chat-stream.052c4869.js → chat-stream.11c6ade7.js} +2 -2
  49. package/dist/chunks/{chat-stream.052c4869.js.map → chat-stream.11c6ade7.js.map} +1 -1
  50. package/dist/chunks/{cruise-canvas.3600fc3c.js → cruise-canvas.60fa24a3.js} +2 -2
  51. package/dist/chunks/{cruise-canvas.3600fc3c.js.map → cruise-canvas.60fa24a3.js.map} +1 -1
  52. package/dist/chunks/{dropdown-select.11c89c58.js → dropdown-select.1140bf2b.js} +2 -2
  53. package/dist/chunks/{dropdown-select.11c89c58.js.map → dropdown-select.1140bf2b.js.map} +1 -1
  54. package/dist/chunks/{elevo-sidebar.402d464e.js → elevo-sidebar.bfad7500.js} +3 -3
  55. package/dist/chunks/{elevo-sidebar.402d464e.js.map → elevo-sidebar.bfad7500.js.map} +1 -1
  56. package/dist/chunks/flow-tabs.ba72493e.js +3 -0
  57. package/dist/chunks/flow-tabs.ba72493e.js.map +1 -0
  58. package/dist/chunks/{goal-card-list.11057103.js → goal-card-list.44c21cf2.js} +3 -3
  59. package/dist/chunks/{goal-card-list.11057103.js.map → goal-card-list.44c21cf2.js.map} +1 -1
  60. package/dist/chunks/{load-request-store.843b9a8c.js → load-request-store.b4cf045b.js} +2 -2
  61. package/dist/chunks/{load-request-store.843b9a8c.js.map → load-request-store.b4cf045b.js.map} +1 -1
  62. package/dist/chunks/main.4cb00675.js +2 -0
  63. package/dist/chunks/{main.5dcdeb69.js.map → main.4cb00675.js.map} +1 -1
  64. package/dist/chunks/{mcp-tools.16acda69.js → mcp-tools.0acb474a.js} +2 -2
  65. package/dist/chunks/{mcp-tools.16acda69.js.map → mcp-tools.0acb474a.js.map} +1 -1
  66. package/dist/chunks/{page-container.e59d6a94.js → page-container.97947b50.js} +2 -2
  67. package/dist/chunks/page-container.97947b50.js.map +1 -0
  68. package/dist/chunks/{preview-container.6b29ee97.js → preview-container.19631a7b.js} +2 -2
  69. package/dist/chunks/{preview-container.6b29ee97.js.map → preview-container.19631a7b.js.map} +1 -1
  70. package/dist/chunks/{project-conversations.9bd710bf.js → project-conversations.3f559e57.js} +3 -3
  71. package/dist/chunks/{project-conversations.9bd710bf.js.map → project-conversations.3f559e57.js.map} +1 -1
  72. package/dist/chunks/{project-knowledges.14b07366.js → project-knowledges.24611263.js} +3 -3
  73. package/dist/chunks/project-knowledges.24611263.js.LICENSE.txt +5 -0
  74. package/dist/chunks/{project-knowledges.14b07366.js.map → project-knowledges.24611263.js.map} +1 -1
  75. package/dist/chunks/{show-case.be5d82fd.js → show-case.7bc5fc9e.js} +2 -2
  76. package/dist/chunks/{show-case.be5d82fd.js.map → show-case.7bc5fc9e.js.map} +1 -1
  77. package/dist/chunks/{show-cases.e3d47e29.js → show-cases.85fe99d4.js} +2 -2
  78. package/dist/chunks/{show-cases.e3d47e29.js.map → show-cases.85fe99d4.js.map} +1 -1
  79. package/dist/examples.json +19 -16
  80. package/dist/images/c19e3f37.png +0 -0
  81. package/dist/index.fede9e49.js +2 -0
  82. package/dist/index.fede9e49.js.map +1 -0
  83. package/dist/manifest.json +193 -166
  84. package/dist/types.json +258 -179
  85. package/dist-types/blank-state/index.d.ts +1 -1
  86. package/dist-types/bootstrap.d.ts +1 -0
  87. package/dist-types/flow-tabs/drawBg.d.ts +1 -0
  88. package/dist-types/flow-tabs/index.d.ts +20 -0
  89. package/dist-types/flow-tabs/index.spec.d.ts +1 -0
  90. package/dist-types/page-container/index.d.ts +2 -2
  91. package/docs/flow-tabs.md +21 -0
  92. package/package.json +2 -2
  93. package/dist/chunks/2084.37e19e93.js +0 -3
  94. package/dist/chunks/2084.37e19e93.js.map +0 -1
  95. package/dist/chunks/3506.da6e43af.js +0 -2
  96. package/dist/chunks/3506.da6e43af.js.map +0 -1
  97. package/dist/chunks/4317.d0f5904b.js.map +0 -1
  98. package/dist/chunks/6206.874a68ab.js +0 -2
  99. package/dist/chunks/6206.874a68ab.js.map +0 -1
  100. package/dist/chunks/948.85b663ec.js +0 -3
  101. package/dist/chunks/948.85b663ec.js.map +0 -1
  102. package/dist/chunks/activity-timeline.60e516fd.js +0 -2
  103. package/dist/chunks/activity-timeline.60e516fd.js.map +0 -1
  104. package/dist/chunks/blank-state.2b55f2c6.js +0 -2
  105. package/dist/chunks/blank-state.2b55f2c6.js.map +0 -1
  106. package/dist/chunks/chat-box.6156ad59.js +0 -2
  107. package/dist/chunks/chat-box.6156ad59.js.map +0 -1
  108. package/dist/chunks/chat-input.720e6130.js +0 -3
  109. package/dist/chunks/chat-input.720e6130.js.map +0 -1
  110. package/dist/chunks/main.5dcdeb69.js +0 -2
  111. package/dist/chunks/page-container.e59d6a94.js.map +0 -1
  112. package/dist/index.28d7dd85.js +0 -2
  113. package/dist/index.28d7dd85.js.map +0 -1
  114. /package/dist/chunks/{2084.37e19e93.js.LICENSE.txt → 2084.0e9751e7.js.LICENSE.txt} +0 -0
  115. /package/dist/chunks/{4317.d0f5904b.js.LICENSE.txt → 6947.1cec7258.js.LICENSE.txt} +0 -0
  116. /package/dist/chunks/{948.85b663ec.js.LICENSE.txt → 948.d125d58c.js.LICENSE.txt} +0 -0
  117. /package/dist/chunks/{ai-agents.d47947e5.js.LICENSE.txt → ai-agents.92ed0274.js.LICENSE.txt} +0 -0
  118. /package/dist/chunks/{ai-employees.6d586b8d.js.LICENSE.txt → ai-employees.12986d4b.js.LICENSE.txt} +0 -0
  119. /package/dist/chunks/{chat-input.720e6130.js.LICENSE.txt → chat-input.b09e4ba0.js.LICENSE.txt} +0 -0
  120. /package/dist/chunks/{elevo-sidebar.402d464e.js.LICENSE.txt → elevo-sidebar.bfad7500.js.LICENSE.txt} +0 -0
  121. /package/dist/chunks/{goal-card-list.11057103.js.LICENSE.txt → flow-tabs.ba72493e.js.LICENSE.txt} +0 -0
  122. /package/dist/chunks/{project-conversations.9bd710bf.js.LICENSE.txt → goal-card-list.44c21cf2.js.LICENSE.txt} +0 -0
  123. /package/dist/chunks/{project-knowledges.14b07366.js.LICENSE.txt → project-conversations.3f559e57.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -1,4 +1,17 @@
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
+ },
2
15
  "ai-portal.stat-with-mini-chart": {
3
16
  "properties": [
4
17
  {
@@ -103,19 +116,6 @@
103
116
  "events": [],
104
117
  "methods": []
105
118
  },
106
- "ai-portal.home-container": {
107
- "properties": [
108
- {
109
- "name": "sticky",
110
- "annotation": {
111
- "type": "keyword",
112
- "value": "boolean"
113
- }
114
- }
115
- ],
116
- "events": [],
117
- "methods": []
118
- },
119
119
  "ai-portal.icon-button": {
120
120
  "properties": [
121
121
  {
@@ -367,77 +367,6 @@
367
367
  }
368
368
  }
369
369
  },
370
- "ai-portal.tab-list": {
371
- "properties": [
372
- {
373
- "name": "tabs",
374
- "annotation": {
375
- "type": "array",
376
- "elementType": {
377
- "type": "reference",
378
- "typeName": {
379
- "type": "identifier",
380
- "name": "Tab"
381
- }
382
- }
383
- }
384
- },
385
- {
386
- "name": "activeTab",
387
- "annotation": {
388
- "type": "keyword",
389
- "value": "string"
390
- }
391
- }
392
- ],
393
- "events": [
394
- {
395
- "name": "tab.click",
396
- "detail": {
397
- "annotation": {
398
- "type": "reference",
399
- "typeName": {
400
- "type": "identifier",
401
- "name": "Tab"
402
- }
403
- }
404
- }
405
- }
406
- ],
407
- "methods": [],
408
- "types": [
409
- {
410
- "type": "interface",
411
- "name": "Tab",
412
- "body": [
413
- {
414
- "type": "propertySignature",
415
- "key": {
416
- "type": "identifier",
417
- "name": "id"
418
- },
419
- "annotation": {
420
- "type": "keyword",
421
- "value": "string"
422
- },
423
- "computed": false
424
- },
425
- {
426
- "type": "propertySignature",
427
- "key": {
428
- "type": "identifier",
429
- "name": "label"
430
- },
431
- "annotation": {
432
- "type": "keyword",
433
- "value": "string"
434
- },
435
- "computed": false
436
- }
437
- ]
438
- }
439
- ]
440
- },
441
370
  "ai-portal.page-container": {
442
371
  "properties": [
443
372
  {
@@ -472,6 +401,10 @@
472
401
  {
473
402
  "type": "jsLiteral",
474
403
  "value": "small"
404
+ },
405
+ {
406
+ "type": "jsLiteral",
407
+ "value": "full"
475
408
  }
476
409
  ]
477
410
  }
@@ -542,6 +475,77 @@
542
475
  }
543
476
  ]
544
477
  },
478
+ "ai-portal.tab-list": {
479
+ "properties": [
480
+ {
481
+ "name": "tabs",
482
+ "annotation": {
483
+ "type": "array",
484
+ "elementType": {
485
+ "type": "reference",
486
+ "typeName": {
487
+ "type": "identifier",
488
+ "name": "Tab"
489
+ }
490
+ }
491
+ }
492
+ },
493
+ {
494
+ "name": "activeTab",
495
+ "annotation": {
496
+ "type": "keyword",
497
+ "value": "string"
498
+ }
499
+ }
500
+ ],
501
+ "events": [
502
+ {
503
+ "name": "tab.click",
504
+ "detail": {
505
+ "annotation": {
506
+ "type": "reference",
507
+ "typeName": {
508
+ "type": "identifier",
509
+ "name": "Tab"
510
+ }
511
+ }
512
+ }
513
+ }
514
+ ],
515
+ "methods": [],
516
+ "types": [
517
+ {
518
+ "type": "interface",
519
+ "name": "Tab",
520
+ "body": [
521
+ {
522
+ "type": "propertySignature",
523
+ "key": {
524
+ "type": "identifier",
525
+ "name": "id"
526
+ },
527
+ "annotation": {
528
+ "type": "keyword",
529
+ "value": "string"
530
+ },
531
+ "computed": false
532
+ },
533
+ {
534
+ "type": "propertySignature",
535
+ "key": {
536
+ "type": "identifier",
537
+ "name": "label"
538
+ },
539
+ "annotation": {
540
+ "type": "keyword",
541
+ "value": "string"
542
+ },
543
+ "computed": false
544
+ }
545
+ ]
546
+ }
547
+ ]
548
+ },
545
549
  "ai-portal.elevo-logo": {
546
550
  "properties": [],
547
551
  "events": [],
@@ -587,6 +591,10 @@
587
591
  {
588
592
  "type": "jsLiteral",
589
593
  "value": "collaboration-spaces"
594
+ },
595
+ {
596
+ "type": "jsLiteral",
597
+ "value": "serviceflows"
590
598
  }
591
599
  ]
592
600
  }
@@ -867,101 +875,6 @@
867
875
  }
868
876
  ]
869
877
  },
870
- "ai-portal.show-cases": {
871
- "properties": [
872
- {
873
- "name": "list",
874
- "annotation": {
875
- "type": "array",
876
- "elementType": {
877
- "type": "reference",
878
- "typeName": {
879
- "type": "identifier",
880
- "name": "ShowCaseType"
881
- }
882
- }
883
- }
884
- },
885
- {
886
- "name": "limit",
887
- "annotation": {
888
- "type": "keyword",
889
- "value": "number"
890
- }
891
- }
892
- ],
893
- "events": [],
894
- "methods": [],
895
- "types": [
896
- {
897
- "type": "interface",
898
- "name": "ShowCaseType",
899
- "body": [
900
- {
901
- "type": "propertySignature",
902
- "key": {
903
- "type": "identifier",
904
- "name": "conversationId"
905
- },
906
- "annotation": {
907
- "type": "keyword",
908
- "value": "string"
909
- },
910
- "computed": false
911
- },
912
- {
913
- "type": "propertySignature",
914
- "key": {
915
- "type": "identifier",
916
- "name": "title"
917
- },
918
- "annotation": {
919
- "type": "keyword",
920
- "value": "string"
921
- },
922
- "computed": false
923
- },
924
- {
925
- "type": "propertySignature",
926
- "key": {
927
- "type": "identifier",
928
- "name": "summary"
929
- },
930
- "annotation": {
931
- "type": "keyword",
932
- "value": "string"
933
- },
934
- "computed": false
935
- },
936
- {
937
- "type": "propertySignature",
938
- "key": {
939
- "type": "identifier",
940
- "name": "scenario"
941
- },
942
- "annotation": {
943
- "type": "keyword",
944
- "value": "string"
945
- },
946
- "computed": false
947
- },
948
- {
949
- "type": "propertySignature",
950
- "key": {
951
- "type": "identifier",
952
- "name": "url"
953
- },
954
- "annotation": {
955
- "type": "keyword",
956
- "value": "string"
957
- },
958
- "optional": true,
959
- "computed": false
960
- }
961
- ]
962
- }
963
- ]
964
- },
965
878
  "ai-portal.chat-box": {
966
879
  "properties": [
967
880
  {
@@ -1169,6 +1082,101 @@
1169
1082
  }
1170
1083
  ]
1171
1084
  },
1085
+ "ai-portal.show-cases": {
1086
+ "properties": [
1087
+ {
1088
+ "name": "list",
1089
+ "annotation": {
1090
+ "type": "array",
1091
+ "elementType": {
1092
+ "type": "reference",
1093
+ "typeName": {
1094
+ "type": "identifier",
1095
+ "name": "ShowCaseType"
1096
+ }
1097
+ }
1098
+ }
1099
+ },
1100
+ {
1101
+ "name": "limit",
1102
+ "annotation": {
1103
+ "type": "keyword",
1104
+ "value": "number"
1105
+ }
1106
+ }
1107
+ ],
1108
+ "events": [],
1109
+ "methods": [],
1110
+ "types": [
1111
+ {
1112
+ "type": "interface",
1113
+ "name": "ShowCaseType",
1114
+ "body": [
1115
+ {
1116
+ "type": "propertySignature",
1117
+ "key": {
1118
+ "type": "identifier",
1119
+ "name": "conversationId"
1120
+ },
1121
+ "annotation": {
1122
+ "type": "keyword",
1123
+ "value": "string"
1124
+ },
1125
+ "computed": false
1126
+ },
1127
+ {
1128
+ "type": "propertySignature",
1129
+ "key": {
1130
+ "type": "identifier",
1131
+ "name": "title"
1132
+ },
1133
+ "annotation": {
1134
+ "type": "keyword",
1135
+ "value": "string"
1136
+ },
1137
+ "computed": false
1138
+ },
1139
+ {
1140
+ "type": "propertySignature",
1141
+ "key": {
1142
+ "type": "identifier",
1143
+ "name": "summary"
1144
+ },
1145
+ "annotation": {
1146
+ "type": "keyword",
1147
+ "value": "string"
1148
+ },
1149
+ "computed": false
1150
+ },
1151
+ {
1152
+ "type": "propertySignature",
1153
+ "key": {
1154
+ "type": "identifier",
1155
+ "name": "scenario"
1156
+ },
1157
+ "annotation": {
1158
+ "type": "keyword",
1159
+ "value": "string"
1160
+ },
1161
+ "computed": false
1162
+ },
1163
+ {
1164
+ "type": "propertySignature",
1165
+ "key": {
1166
+ "type": "identifier",
1167
+ "name": "url"
1168
+ },
1169
+ "annotation": {
1170
+ "type": "keyword",
1171
+ "value": "string"
1172
+ },
1173
+ "optional": true,
1174
+ "computed": false
1175
+ }
1176
+ ]
1177
+ }
1178
+ ]
1179
+ },
1172
1180
  "ai-portal.mcp-tools": {
1173
1181
  "properties": [
1174
1182
  {
@@ -3103,6 +3111,77 @@
3103
3111
  "events": [],
3104
3112
  "methods": []
3105
3113
  },
3114
+ "ai-portal.flow-tabs": {
3115
+ "properties": [
3116
+ {
3117
+ "name": "tabs",
3118
+ "annotation": {
3119
+ "type": "array",
3120
+ "elementType": {
3121
+ "type": "reference",
3122
+ "typeName": {
3123
+ "type": "identifier",
3124
+ "name": "Tab"
3125
+ }
3126
+ }
3127
+ }
3128
+ },
3129
+ {
3130
+ "name": "activeTab",
3131
+ "annotation": {
3132
+ "type": "keyword",
3133
+ "value": "string"
3134
+ }
3135
+ }
3136
+ ],
3137
+ "events": [
3138
+ {
3139
+ "name": "tab.click",
3140
+ "detail": {
3141
+ "annotation": {
3142
+ "type": "reference",
3143
+ "typeName": {
3144
+ "type": "identifier",
3145
+ "name": "Tab"
3146
+ }
3147
+ }
3148
+ }
3149
+ }
3150
+ ],
3151
+ "methods": [],
3152
+ "types": [
3153
+ {
3154
+ "type": "interface",
3155
+ "name": "Tab",
3156
+ "body": [
3157
+ {
3158
+ "type": "propertySignature",
3159
+ "key": {
3160
+ "type": "identifier",
3161
+ "name": "id"
3162
+ },
3163
+ "annotation": {
3164
+ "type": "keyword",
3165
+ "value": "string"
3166
+ },
3167
+ "computed": false
3168
+ },
3169
+ {
3170
+ "type": "propertySignature",
3171
+ "key": {
3172
+ "type": "identifier",
3173
+ "name": "label"
3174
+ },
3175
+ "annotation": {
3176
+ "type": "keyword",
3177
+ "value": "string"
3178
+ },
3179
+ "computed": false
3180
+ }
3181
+ ]
3182
+ }
3183
+ ]
3184
+ },
3106
3185
  "ai-portal.elevo-sidebar": {
3107
3186
  "properties": [
3108
3187
  {
@@ -5,7 +5,7 @@ export interface BlankStateProps {
5
5
  illustration?: BlankStateIllustration;
6
6
  description?: string;
7
7
  }
8
- export type BlankStateIllustration = "goals" | "activities" | "collaboration-spaces";
8
+ export type BlankStateIllustration = "goals" | "activities" | "collaboration-spaces" | "serviceflows";
9
9
  /**
10
10
  * 构件 `ai-portal.blank-state`
11
11
  */
@@ -26,3 +26,4 @@ import "./data-providers/call-tool.js";
26
26
  import "./blank-state/index.js";
27
27
  import "./sticky-container/index.js";
28
28
  import "./elevo-card/index.js";
29
+ import "./flow-tabs/index.js";
@@ -0,0 +1 @@
1
+ export default function drawBg(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, width: number, height: number, isFirstTab: boolean, tabOffset: number, tabWidth: number): void;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ export interface FlowTabsProps {
5
+ tabs?: Tab[];
6
+ activeTab?: string;
7
+ }
8
+ export interface Tab {
9
+ id: string;
10
+ label: string;
11
+ }
12
+ /**
13
+ * 构件 `ai-portal.flow-tabs`
14
+ */
15
+ export declare class FlowTabs extends ReactNextElement implements FlowTabsProps {
16
+ #private;
17
+ accessor tabs: Tab[] | undefined;
18
+ accessor activeTab: string | undefined;
19
+ render(): React.JSX.Element;
20
+ }
@@ -0,0 +1 @@
1
+ import "./";
@@ -4,7 +4,7 @@ import "@next-core/theme";
4
4
  export interface PageContainerProps {
5
5
  pageTitle?: string;
6
6
  breadcrumbs?: Breadcrumb[];
7
- size?: "medium" | "small";
7
+ size?: "medium" | "small" | "full";
8
8
  variant?: "default" | "form";
9
9
  sticky?: boolean;
10
10
  }
@@ -21,7 +21,7 @@ export interface Breadcrumb {
21
21
  export declare class PageContainer extends ReactNextElement implements PageContainerProps {
22
22
  accessor pageTitle: string | undefined;
23
23
  accessor breadcrumbs: Breadcrumb[] | undefined;
24
- accessor size: "medium" | "small" | undefined;
24
+ accessor size: "medium" | "small" | "full" | undefined;
25
25
  accessor variant: "default" | "form" | undefined;
26
26
  accessor sticky: boolean | undefined;
27
27
  render(): React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ 构件 `ai-portal.flow-tabs`
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ brick: ai-portal.home-container
9
+ children:
10
+ - brick: ai-portal.flow-tabs
11
+ properties:
12
+ textContent: Hello world
13
+ tabs:
14
+ - id: foo
15
+ label: Fooooo
16
+ - id: bar
17
+ label: Baaaaar
18
+ - id: baz
19
+ label: Baaaaaz
20
+ activeTab: foo
21
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
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": "ad8088670e3a3d6f21cd7a31e83ab149d362c160"
50
+ "gitHead": "92d114b51e52f53f6ee4acc8322ad2caebbb3667"
51
51
  }
@@ -1,3 +0,0 @@
1
- /*! For license information please see 2084.37e19e93.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[2084],{5813:(e,t,i)=>{i.d(t,{I:()=>s,K:()=>o,NS:()=>l,t:()=>c});var n=i(68443);let o=function(e){return e.NEW_CHAT="NEW_CHAT",e.LOGOUT="LOGOUT",e.TODAY="TODAY",e.YESTERDAY="YESTERDAY",e.PREVIOUS_7_DAYS="PREVIOUS_7_DAYS",e.PREVIOUS_30_DAYS="PREVIOUS_30_DAYS",e.SWITCH_LANGUAGE="SWITCH_LANGUAGE",e.MY="MY",e.PROJECTS="PROJECTS",e.HISTORY="HISTORY",e.CREATE_PROJECT="CREATE_PROJECT",e.MOVE_TO_PROJECT="MOVE_TO_PROJECT",e.UNTITLED="UNTITLED",e.UNNAMED="UNNAMED",e}({});const r={[o.NEW_CHAT]:"New chat",[o.LOGOUT]:"Logout",[o.TODAY]:"Today",[o.YESTERDAY]:"Yesterday",[o.PREVIOUS_7_DAYS]:"Previous 7 days",[o.PREVIOUS_30_DAYS]:"Previous 30 days",[o.SWITCH_LANGUAGE]:"中文",[o.MY]:"My",[o.PROJECTS]:"Projects",[o.HISTORY]:"Chats",[o.CREATE_PROJECT]:"Create project",[o.MOVE_TO_PROJECT]:"Move to project",[o.UNTITLED]:"Untitled",[o.UNNAMED]:"Unnamed"},a={[o.NEW_CHAT]:"新对话",[o.LOGOUT]:"登出",[o.TODAY]:"今天",[o.YESTERDAY]:"昨天",[o.PREVIOUS_7_DAYS]:"过去7天",[o.PREVIOUS_30_DAYS]:"过去30天",[o.SWITCH_LANGUAGE]:"English",[o.MY]:"我的",[o.PROJECTS]:"项目",[o.HISTORY]:"对话",[o.CREATE_PROJECT]:"创建项目",[o.MOVE_TO_PROJECT]:"移动到项目",[o.UNTITLED]:"无标题",[o.UNNAMED]:"未命名"},l="bricks/ai-portal/elevo-sidebar",s={en:r,zh:a},c=n.i18n.getFixedT(null,l)},61408:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(36758),o=i.n(n),r=i(40935),a=i.n(r)()(o());a.push([e.id,':host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.sidebar{position:relative;z-index:2;width:260px;height:100%;background:rgba(246,247,249,0.5);border:1px solid rgba(255,255,255,0.3);border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:23px 11px 0;display:flex;flex-direction:column;transition:transform 0.3s ease-in-out}.logo-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;margin-left:4px}.logo-link::part(link){display:block}.logo{vertical-align:middle}.new-chat::part(link){display:flex;gap:0;align-items:center;color:var(--elevo-color-brand);font-size:14px;text-align:left;cursor:pointer}.sidebar .new-chat::part(link){background:#f0f4ff;border-radius:8px;border:1px solid #c9d7ff;padding:9px 13px;font-weight:500;margin-bottom:16px}.sidebar .new-chat::part(link):hover{background:rgba(201,215,255,0.5)}.new-chat-icon{font-size:16px;margin-right:5px}.footer{border-top:1px solid rgba(0,0,0,0.04);padding:9px 12px;margin:0 -12px}.dropdown{display:block}.account{background:none;border:none;border-radius:8px;padding:6px 10px;display:block;width:100%;text-align:left;cursor:pointer}.account:hover{background:rgba(0,0,0,0.04)}.alternative{position:fixed;top:8px;left:8px;padding:6px 10px 6px 8px;display:flex;align-items:center;opacity:0;z-index:2;transition:opacity 0.2s ease-in-out;background:rgba(255,255,255,0);border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.alternative .new-chat::part(link){padding:4px;margin-left:16px;font-size:12px}.alternative .new-chat::part(link):hover{color:#7891ff}.alternative .new-chat::part(link):active{color:#0911b3}.container{width:270px;padding:10px 0 10px 10px;height:100%;transition:width 0.3s ease-in-out,padding 0.3s ease-in-out}.container.collapsed{width:0;padding:10px 0;overflow:visible}.container.collapsed .sidebar{transform:translateX(-100%)}.container.collapsed .alternative{opacity:1}:host([behavior="drawer"]){z-index:2;width:0}:host(:not([behavior="drawer"])) .alternative .new-chat{display:none}.mask{position:fixed;top:0;right:0;bottom:0;left:0}.links{border-bottom:1px solid rgba(0,0,0,0.06);padding-bottom:16px;margin-bottom:16px}.link{display:block}.link + .link{margin-top:4px}.link::part(link){display:flex;gap:0;align-items:center;padding:7px 10px;border-radius:8px;color:#000}.link.active::part(link),.link::part(link):hover{background:rgba(0,0,0,0.04)}.link .icon{font-size:16px;margin-right:10px}.link .title{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.history{flex:1;min-height:0;overflow-y:auto;margin:0 -12px;padding:0 12px}.history ul{list-style:none;margin:0;padding:0}.history .section + .section{margin-top:14px}.history .section-title{display:flex;align-items:center;justify-content:space-between;height:30px;margin-bottom:6px;padding:0 8px;position:sticky;top:0}.history .section-title.sticky::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgb(229,228,234);border-radius:8px;z-index:-1}.history .section-label{display:flex;align-items:center;height:24px;padding:0 8px;margin-left:-8px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;font-size:12px;color:#8c8c8c;border-radius:8px}.history .section-label eo-icon{vertical-align:middle;margin-left:6px;transition:transform 0.2s ease-in-out}.history .section-label:hover{background:rgba(0,0,0,0.04)}.history .collapsed > ul{display:none}.history .collapsed .section-label eo-icon{transform:rotate(-90deg)}.history .error,.history .loading{display:flex;align-items:center;height:36px;padding:0 8px}.history .loading{justify-content:center}.history .error{color:var(--color-error)}.history .group + .group{margin-top:15px}.history .group-title{font-weight:500;font-size:12px;color:#000;padding:8px;height:36px;line-height:20px}.history .item{display:block}.history .item::part(link){display:flex;align-items:center;padding:0 8px;height:36px;border-radius:8px;color:#000}.history .item.active::part(link){background:rgba(0,0,0,0.06)}.history .item.actions-active::part(link),.history .item::part(link):hover{background:rgba(0,0,0,0.04)}.history .item-title{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.history .actions{cursor:auto}.history .item:not(:hover):not(.actions-active) .actions{display:none}.history .working{width:8px;height:8px;border-radius:8px;background:var(--elevo-color-brand);margin:0 7px}.history .item.actions-active .working,.history .item:hover .working,.history .item.active .working{display:none}.history .load-more{display:flex;justify-content:center;align-items:center;height:36px}.button{display:flex}',""]);const l=a.toString()},70579:(e,t,i)=>{i.d(t,{Bj:()=>o,EM:()=>r,JQ:()=>l,Py:()=>c,qb:()=>a,qu:()=>s});var n=i(30981);const o=(0,n.wrapBrick)("eo-icon"),r=(0,n.wrapBrick)("eo-link"),a=(0,n.wrapBrick)("eo-dropdown-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),l=(0,n.wrapBrick)("eo-easyops-avatar"),s=(0,n.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),c=(0,n.wrapBrick)("ai-portal.icon-button")},75197:(e,t,i)=>{i.d(t,{D:()=>b});var n=i(89575),o=i(18769),r=i.n(o),a=i(53373),l=i.n(a),s=i(22919);const c=async(e,t)=>(await s.http.get("api/gateway/logic.llm.aiops_service/api/v1/elevo/conversations",{...t,params:e})).data;var d=i(41030),p=i(5813),u=i(70579),m=i(40177),g=i(65549),h=i(94504);const E={lib:"fa",icon:"plus"},b=(0,o.forwardRef)(x);function x(e,t){let{historyActions:i,historyUrlTemplate:a,projectUrlTemplate:b,projectActions:x,canAddProject:v,myLinks:k,onActionClick:y,onHistoryClick:T,onProjectActionClick:w,onAddProject:O}=e;const A=(0,o.useRef)(null),[C,S]=(0,o.useState)(!1),[_,N]=(0,o.useState)(null),[R,I]=(0,o.useState)(!1),[P,U]=(0,o.useState)(!1),[Y,D]=(0,o.useState)(null),[j,M]=(0,o.useState)(!1),[L,V]=(0,o.useState)(),[H,B]=(0,o.useState)(),[J,z]=(0,o.useState)(!1),G=(0,o.useRef)(!0),[q,K]=(0,o.useState)([]),W=(0,o.useMemo)((()=>[...null!=i?i:[],{isDropdown:!0,text:(0,p.t)(p.K.MOVE_TO_PROJECT),disabled:!(null!=_&&_.length),items:null==_?void 0:_.map((e=>({event:"move",key:e.instanceId,text:e.name,project:e})))}]),[i,_]);(0,o.useEffect)((()=>{(async()=>{try{const e=await(async()=>(await s.http.get("api/gateway/logic.llm.aiops_service/api/v1/elevo/projects",{params:{page:1,page_size:3e3}})).data)();N(e.list)}catch(e){console.error("Error loading projects:",e),U(!0),N([])}})()}),[]),(0,o.useEffect)((()=>{Promise.all([c({token:H,limit:30,onlyOwner:!0,onlyUnrelatedProject:!0},{interceptorParams:{ignoreLoadingBar:!0}}),...G.current?[]:[new Promise((e=>setTimeout(e,500)))]]).then((e=>{let[t]=e;G.current=!1,D((e=>[...null!=e?e:[],...t.conversations])),V(t.nextToken)})).catch((e=>{console.error("Error loading chat history:",e),D([]),z(!0)}))}),[H]);const[Q,F]=(0,o.useState)(null),X=(0,o.useRef)(null);(0,o.useEffect)((()=>{const e=X.current,t=A.current;if(!e||!L||!t||j)return;const i=new IntersectionObserver((e=>{for(const t of e)t.isIntersecting&&B(L)}),{root:t});return i.observe(e),()=>{i.disconnect()}}),[L,j]);const Z=(0,o.useRef)(0),$=(0,o.useCallback)((async()=>{try{const e=++Z.current,t=await c({limit:30,onlyOwner:!0,onlyUnrelatedProject:!0},{interceptorParams:{ignoreLoadingBar:!0}});if(e!==Z.current)return;D((e=>{const i=null!=e?e:[],n=t.conversations,o=new Set(n.map((e=>e.conversationId))),r=new Map(n.map((e=>[e.conversationId,e])));let a=!1,l=!1,s=!0;for(const e of i){const t=r.get(e.conversationId);if(!t)break;if(a=!0,l=s&&t!==n[0]||!(0,d.isEqual)(t,e),l)break;s=!1}return a?l?[...n,...i.filter((e=>!o.has(e.conversationId)))]:e:(V(t.nextToken),n)}))}catch(e){console.error("Error pulling chat history:",e)}}),[]);(0,o.useImperativeHandle)(t,(()=>({pull:$,removeProject:e=>{N((t=>t?t.filter((t=>t.instanceId!==e)):t))},addProject:e=>{N((t=>t?[...t,e]:[e]))},moveConversation:e=>{K((t=>[...t,e]))}})),[$]);const ee=(0,o.useMemo)((()=>Y&&Y.length?Y.filter((e=>!q.includes(e.conversationId))):Y),[Y,q]);return r().createElement("div",{className:"history",ref:A},null!=k&&k.length?r().createElement("div",{className:l()("section",{collapsed:C})},r().createElement(f,{rootRef:A,title:(0,p.t)(p.K.MY),onToggle:()=>S((e=>!e))}),r().createElement("ul",{className:"items"},k.map(((e,t)=>r().createElement("li",{key:t},r().createElement(h.k,{url:e.url,activeIncludes:e.activeIncludes,render:t=>{let{active:i}=t;return r().createElement(u.EM,{className:l()("item",{active:i}),url:e.url},r().createElement("div",{className:"item-title"},e.title))}})))))):null,r().createElement("div",{className:l()("section",{collapsed:R})},r().createElement(f,{rootRef:A,title:(0,p.t)(p.K.PROJECTS),onToggle:()=>I((e=>!e))},v&&r().createElement(u.Py,{icon:E,variant:"mini-light",tooltip:(0,p.t)(p.K.CREATE_PROJECT),tooltipHoist:!0,className:"button",onClick:O})),r().createElement("ul",{className:"items"},P?r().createElement("li",{className:"error"},"Failed to load project"):_?_.map((e=>{const t=b?(0,g.Q)(b,e):void 0;return r().createElement("li",{key:e.instanceId},r().createElement(h.k,{url:t,render:i=>{let{active:o}=i;return r().createElement(u.EM,(0,n.A)({className:l()("item",{"actions-active":e.instanceId===Q,active:o}),onClick:T},t?{url:t}:null),r().createElement("div",{className:"item-title",title:e.name},e.name||(0,p.t)(p.K.UNNAMED)),r().createElement(u.qu,{className:"actions",actions:x,themeVariant:"elevo",onActionClick:t=>{w({action:t.detail,project:e})},onVisibleChange:t=>{F(t.detail?e.instanceId:null)}}))}}))})):r().createElement("li",{className:"loading"},r().createElement(u.Bj,{lib:"antd",theme:"outlined",icon:"loading-3-quarters",spinning:!0})))),r().createElement("div",{className:l()("section",{collapsed:j})},r().createElement(f,{rootRef:A,title:(0,p.t)(p.K.HISTORY),onToggle:()=>M((e=>!e))}),r().createElement("ul",{className:"items"},ee?ee.map((e=>{const t=a?(0,g.Q)(a,e):void 0;return r().createElement("li",{key:e.conversationId},r().createElement(h.k,{url:t,render:t=>{let{active:i}=t;return r().createElement(u.EM,(0,n.A)({className:l()("item",{"actions-active":e.conversationId===Q,active:i}),onClick:T},a?{url:(0,g.Q)(a,e)}:null),r().createElement("div",{className:"item-title",title:e.title},e.title||(0,p.t)(p.K.UNTITLED)),r().createElement(u.qu,{className:"actions",actions:W,onActionClick:t=>{y({action:t.detail,item:e})},onVisibleChange:t=>{F(t.detail?e.conversationId:null)}}),!m.QB.includes(e.state)&&r().createElement("div",{className:"working"}))}}))})):r().createElement("li",{className:"loading"},r().createElement(u.Bj,{lib:"antd",theme:"outlined",icon:"loading-3-quarters",spinning:!0})),J?r().createElement("li",{className:"error"},"Failed to load chat history"):null),!j&&L&&r().createElement("div",{className:"load-more",ref:X},r().createElement(u.Bj,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))))}function f(e){let{rootRef:t,title:i,children:n,onToggle:a}=e;const s=(0,o.useRef)(null),[c,p]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const e=t.current,i=s.current,n=null==i?void 0:i.nextElementSibling;if(!e||!i||!n)return;const o=(0,d.throttle)((()=>{const e=i.getBoundingClientRect(),t=n.getBoundingClientRect().top-e.top-e.height;p(t<1)}),100);return e.addEventListener("scroll",o),()=>{e.removeEventListener("scroll",o)}}),[t]),r().createElement("div",{className:l()("section-title",{sticky:c}),ref:s},r().createElement("div",{className:"section-label",onClick:a},i,r().createElement(u.Bj,{lib:"fa",icon:"angle-down"})),n)}},94504:(e,t,i)=>{i.d(t,{k:()=>r});var n=i(18769),o=i(51921);function r(e){let{url:t,activeIncludes:i,render:r}=e;const[a,l]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{function e(e){if(t){for(const n of[t,...null!=i?i:[]])if((0,o.matchPath)(e.pathname,{path:n,exact:!1}))return void l(!0);l(!1)}else l(!1)}const n=(0,o.getHistory)();return e(n.location),n.listen(e)}),[t,i]),r({active:a})}}}]);
3
- //# sourceMappingURL=2084.37e19e93.js.map