@next-bricks/ai-portal 0.26.1 → 0.26.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.
package/dist/types.json CHANGED
@@ -103,6 +103,11 @@
103
103
  "events": [],
104
104
  "methods": []
105
105
  },
106
+ "ai-portal.home-container": {
107
+ "properties": [],
108
+ "events": [],
109
+ "methods": []
110
+ },
106
111
  "ai-portal.elevo-logo": {
107
112
  "properties": [],
108
113
  "events": [],
@@ -171,11 +176,6 @@
171
176
  }
172
177
  ]
173
178
  },
174
- "ai-portal.home-container": {
175
- "properties": [],
176
- "events": [],
177
- "methods": []
178
- },
179
179
  "ai-portal.chat-history": {
180
180
  "properties": [
181
181
  {
@@ -358,6 +358,95 @@
358
358
  }
359
359
  ]
360
360
  },
361
+ "ai-portal.chat-box": {
362
+ "properties": [
363
+ {
364
+ "name": "disabled",
365
+ "annotation": {
366
+ "type": "keyword",
367
+ "value": "boolean"
368
+ }
369
+ },
370
+ {
371
+ "name": "placeholder",
372
+ "annotation": {
373
+ "type": "keyword",
374
+ "value": "string"
375
+ }
376
+ },
377
+ {
378
+ "name": "autoFocus",
379
+ "annotation": {
380
+ "type": "keyword",
381
+ "value": "boolean"
382
+ }
383
+ },
384
+ {
385
+ "name": "suggestions",
386
+ "annotation": {
387
+ "type": "array",
388
+ "elementType": {
389
+ "type": "reference",
390
+ "typeName": {
391
+ "type": "identifier",
392
+ "name": "Suggestion"
393
+ }
394
+ }
395
+ }
396
+ },
397
+ {
398
+ "name": "suggestionsLabel",
399
+ "annotation": {
400
+ "type": "keyword",
401
+ "value": "string"
402
+ }
403
+ }
404
+ ],
405
+ "events": [
406
+ {
407
+ "name": "message.submit",
408
+ "detail": {
409
+ "annotation": {
410
+ "type": "keyword",
411
+ "value": "string"
412
+ }
413
+ }
414
+ }
415
+ ],
416
+ "methods": [],
417
+ "types": [
418
+ {
419
+ "type": "interface",
420
+ "name": "Suggestion",
421
+ "body": [
422
+ {
423
+ "type": "propertySignature",
424
+ "key": {
425
+ "type": "identifier",
426
+ "name": "title"
427
+ },
428
+ "annotation": {
429
+ "type": "keyword",
430
+ "value": "string"
431
+ },
432
+ "computed": false
433
+ },
434
+ {
435
+ "type": "propertySignature",
436
+ "key": {
437
+ "type": "identifier",
438
+ "name": "content"
439
+ },
440
+ "annotation": {
441
+ "type": "keyword",
442
+ "value": "string"
443
+ },
444
+ "computed": false
445
+ }
446
+ ]
447
+ }
448
+ ]
449
+ },
361
450
  "ai-portal.show-cases": {
362
451
  "properties": [
363
452
  {
@@ -577,91 +666,6 @@
577
666
  }
578
667
  ]
579
668
  },
580
- "ai-portal.ai-employees": {
581
- "properties": [
582
- {
583
- "name": "list",
584
- "annotation": {
585
- "type": "array",
586
- "elementType": {
587
- "type": "reference",
588
- "typeName": {
589
- "type": "identifier",
590
- "name": "Employee"
591
- }
592
- }
593
- }
594
- },
595
- {
596
- "name": "industries",
597
- "annotation": {
598
- "type": "array",
599
- "elementType": {
600
- "type": "keyword",
601
- "value": "string"
602
- }
603
- }
604
- }
605
- ],
606
- "events": [],
607
- "methods": [],
608
- "types": [
609
- {
610
- "type": "interface",
611
- "name": "Employee",
612
- "body": [
613
- {
614
- "type": "propertySignature",
615
- "key": {
616
- "type": "identifier",
617
- "name": "name"
618
- },
619
- "annotation": {
620
- "type": "keyword",
621
- "value": "string"
622
- },
623
- "computed": false
624
- },
625
- {
626
- "type": "propertySignature",
627
- "key": {
628
- "type": "identifier",
629
- "name": "industry"
630
- },
631
- "annotation": {
632
- "type": "keyword",
633
- "value": "string"
634
- },
635
- "computed": false
636
- },
637
- {
638
- "type": "propertySignature",
639
- "key": {
640
- "type": "identifier",
641
- "name": "role"
642
- },
643
- "annotation": {
644
- "type": "keyword",
645
- "value": "string"
646
- },
647
- "computed": false
648
- },
649
- {
650
- "type": "propertySignature",
651
- "key": {
652
- "type": "identifier",
653
- "name": "description"
654
- },
655
- "annotation": {
656
- "type": "keyword",
657
- "value": "string"
658
- },
659
- "computed": false
660
- }
661
- ]
662
- }
663
- ]
664
- },
665
669
  "ai-portal.ai-agents": {
666
670
  "properties": [
667
671
  {
@@ -745,72 +749,44 @@
745
749
  }
746
750
  ]
747
751
  },
748
- "ai-portal.chat-box": {
752
+ "ai-portal.ai-employees": {
749
753
  "properties": [
750
754
  {
751
- "name": "disabled",
752
- "annotation": {
753
- "type": "keyword",
754
- "value": "boolean"
755
- }
756
- },
757
- {
758
- "name": "placeholder",
759
- "annotation": {
760
- "type": "keyword",
761
- "value": "string"
762
- }
763
- },
764
- {
765
- "name": "autoFocus",
766
- "annotation": {
767
- "type": "keyword",
768
- "value": "boolean"
769
- }
770
- },
771
- {
772
- "name": "suggestions",
755
+ "name": "list",
773
756
  "annotation": {
774
757
  "type": "array",
775
758
  "elementType": {
776
759
  "type": "reference",
777
760
  "typeName": {
778
761
  "type": "identifier",
779
- "name": "Suggestion"
762
+ "name": "Employee"
780
763
  }
781
764
  }
782
765
  }
783
766
  },
784
767
  {
785
- "name": "suggestionsLabel",
768
+ "name": "industries",
786
769
  "annotation": {
787
- "type": "keyword",
788
- "value": "string"
789
- }
790
- }
791
- ],
792
- "events": [
793
- {
794
- "name": "message.submit",
795
- "detail": {
796
- "annotation": {
770
+ "type": "array",
771
+ "elementType": {
797
772
  "type": "keyword",
798
773
  "value": "string"
799
774
  }
800
775
  }
801
776
  }
802
777
  ],
778
+ "events": [],
803
779
  "methods": [],
804
780
  "types": [
805
781
  {
806
782
  "type": "interface",
807
- "name": "Suggestion",
783
+ "name": "Employee",
808
784
  "body": [
809
785
  {
810
786
  "type": "propertySignature",
811
787
  "key": {
812
788
  "type": "identifier",
813
- "name": "title"
789
+ "name": "name"
814
790
  },
815
791
  "annotation": {
816
792
  "type": "keyword",
@@ -822,7 +798,31 @@
822
798
  "type": "propertySignature",
823
799
  "key": {
824
800
  "type": "identifier",
825
- "name": "content"
801
+ "name": "industry"
802
+ },
803
+ "annotation": {
804
+ "type": "keyword",
805
+ "value": "string"
806
+ },
807
+ "computed": false
808
+ },
809
+ {
810
+ "type": "propertySignature",
811
+ "key": {
812
+ "type": "identifier",
813
+ "name": "role"
814
+ },
815
+ "annotation": {
816
+ "type": "keyword",
817
+ "value": "string"
818
+ },
819
+ "computed": false
820
+ },
821
+ {
822
+ "type": "propertySignature",
823
+ "key": {
824
+ "type": "identifier",
825
+ "name": "description"
826
826
  },
827
827
  "annotation": {
828
828
  "type": "keyword",
@@ -1,54 +1,3 @@
1
1
  import type { BrickConf } from "@next-core/types";
2
2
  import type { Component } from "@next-shared/jsx-storyboard";
3
- interface FormItemBase {
4
- name: string;
5
- label?: string;
6
- required?: boolean;
7
- }
8
- interface Option {
9
- label: string;
10
- value: string;
11
- }
12
- interface FormItemSearch {
13
- type: "eo-search";
14
- placeholder?: string;
15
- }
16
- interface FormItemInput extends FormItemBase {
17
- type: "eo-input";
18
- placeholder?: string;
19
- }
20
- interface FormItemNumberInput extends FormItemBase {
21
- type: "eo-number-input";
22
- min?: number;
23
- max?: number;
24
- placeholder?: string;
25
- }
26
- interface FormItemTextarea extends FormItemBase {
27
- type: "eo-textarea";
28
- placeholder?: string;
29
- }
30
- interface FormItemSelect extends FormItemBase {
31
- type: "eo-select";
32
- options: Option[];
33
- placeholder?: string;
34
- }
35
- interface FormItemRadio extends FormItemBase {
36
- type: "eo-radio";
37
- options: Option[];
38
- }
39
- interface FormItemCheckbox extends FormItemBase {
40
- type: "eo-checkbox";
41
- options: Option[];
42
- }
43
- interface FormItemSwitch extends FormItemBase {
44
- type: "eo-switch";
45
- }
46
- interface FormItemDatePicker extends FormItemBase {
47
- type: "eo-date-picker";
48
- }
49
- interface FormItemTimePicker extends FormItemBase {
50
- type: "eo-time-picker";
51
- }
52
- type FormItem = FormItemSearch | FormItemInput | FormItemNumberInput | FormItemTextarea | FormItemSelect | FormItemRadio | FormItemCheckbox | FormItemSwitch | FormItemDatePicker | FormItemTimePicker;
53
- export default function convertFormItem(component: Component, type: FormItem["type"]): BrickConf;
54
- export {};
3
+ export default function convertFormItem(component: Component, type: string): BrickConf;
@@ -0,0 +1,3 @@
1
+ import type { BrickConf } from "@next-core/types";
2
+ import type { Component } from "@next-shared/jsx-storyboard";
3
+ export default function convertText(component: Component): BrickConf;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.26.1",
3
+ "version": "0.26.3",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,5 +46,5 @@
46
46
  "@next-bricks/presentational": "*",
47
47
  "@next-bricks/vs": "*"
48
48
  },
49
- "gitHead": "af170fa7f6a35fd6ee07e0dcc41a02d4323a8d4c"
49
+ "gitHead": "18fb238a398914aa56aebb8efccd01cdb7f34a8b"
50
50
  }