@next-bricks/ai-portal 0.26.1 → 0.26.2
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/bricks.json +7 -7
- package/dist/chunks/3624.fa6c9a8b.js +2 -0
- package/dist/chunks/3624.fa6c9a8b.js.map +1 -0
- package/dist/chunks/3800.8a37614f.js +2 -0
- package/dist/chunks/3800.8a37614f.js.map +1 -0
- package/dist/chunks/main.25b9de22.js +2 -0
- package/dist/chunks/main.25b9de22.js.map +1 -0
- package/dist/examples.json +6 -6
- package/dist/index.80bf5579.js +2 -0
- package/dist/index.80bf5579.js.map +1 -0
- package/dist/manifest.json +47 -47
- package/dist/types.json +93 -93
- package/dist-types/cruise-canvas/utils/jsx-converters/convertFormItem.d.ts +1 -52
- package/dist-types/cruise-canvas/utils/jsx-converters/convertText.d.ts +3 -0
- package/package.json +2 -2
- package/dist/chunks/3624.6e77e49c.js +0 -2
- package/dist/chunks/3624.6e77e49c.js.map +0 -1
- package/dist/chunks/3800.3dccb1f9.js +0 -2
- package/dist/chunks/3800.3dccb1f9.js.map +0 -1
- package/dist/chunks/main.b7095cdd.js +0 -2
- package/dist/chunks/main.b7095cdd.js.map +0 -1
- package/dist/index.fc03ce86.js +0 -2
- package/dist/index.fc03ce86.js.map +0 -1
package/dist/types.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"ai-portal.home-container": {
|
|
3
|
+
"properties": [],
|
|
4
|
+
"events": [],
|
|
5
|
+
"methods": []
|
|
6
|
+
},
|
|
2
7
|
"ai-portal.stat-with-mini-chart": {
|
|
3
8
|
"properties": [
|
|
4
9
|
{
|
|
@@ -171,10 +176,94 @@
|
|
|
171
176
|
}
|
|
172
177
|
]
|
|
173
178
|
},
|
|
174
|
-
"ai-portal.
|
|
175
|
-
"properties": [
|
|
176
|
-
|
|
177
|
-
|
|
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
|
+
]
|
|
178
267
|
},
|
|
179
268
|
"ai-portal.chat-history": {
|
|
180
269
|
"properties": [
|
|
@@ -745,95 +834,6 @@
|
|
|
745
834
|
}
|
|
746
835
|
]
|
|
747
836
|
},
|
|
748
|
-
"ai-portal.chat-box": {
|
|
749
|
-
"properties": [
|
|
750
|
-
{
|
|
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",
|
|
773
|
-
"annotation": {
|
|
774
|
-
"type": "array",
|
|
775
|
-
"elementType": {
|
|
776
|
-
"type": "reference",
|
|
777
|
-
"typeName": {
|
|
778
|
-
"type": "identifier",
|
|
779
|
-
"name": "Suggestion"
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
"name": "suggestionsLabel",
|
|
786
|
-
"annotation": {
|
|
787
|
-
"type": "keyword",
|
|
788
|
-
"value": "string"
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
],
|
|
792
|
-
"events": [
|
|
793
|
-
{
|
|
794
|
-
"name": "message.submit",
|
|
795
|
-
"detail": {
|
|
796
|
-
"annotation": {
|
|
797
|
-
"type": "keyword",
|
|
798
|
-
"value": "string"
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
],
|
|
803
|
-
"methods": [],
|
|
804
|
-
"types": [
|
|
805
|
-
{
|
|
806
|
-
"type": "interface",
|
|
807
|
-
"name": "Suggestion",
|
|
808
|
-
"body": [
|
|
809
|
-
{
|
|
810
|
-
"type": "propertySignature",
|
|
811
|
-
"key": {
|
|
812
|
-
"type": "identifier",
|
|
813
|
-
"name": "title"
|
|
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": "content"
|
|
826
|
-
},
|
|
827
|
-
"annotation": {
|
|
828
|
-
"type": "keyword",
|
|
829
|
-
"value": "string"
|
|
830
|
-
},
|
|
831
|
-
"computed": false
|
|
832
|
-
}
|
|
833
|
-
]
|
|
834
|
-
}
|
|
835
|
-
]
|
|
836
|
-
},
|
|
837
837
|
"ai-portal.elevo-sidebar": {
|
|
838
838
|
"properties": [
|
|
839
839
|
{
|
|
@@ -1,54 +1,3 @@
|
|
|
1
1
|
import type { BrickConf } from "@next-core/types";
|
|
2
2
|
import type { Component } from "@next-shared/jsx-storyboard";
|
|
3
|
-
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/ai-portal",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
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": "
|
|
49
|
+
"gitHead": "efe57b8d5ea6affa50c0b6d2a3755c271fa489dc"
|
|
50
50
|
}
|