@next-bricks/visual-builder 1.14.0 → 1.14.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.
Files changed (68) hide show
  1. package/dist/bricks.json +9 -9
  2. package/dist/chunks/{2252.0c3cb8ac.js → 2252.49deac2a.js} +3 -3
  3. package/dist/chunks/{2252.0c3cb8ac.js.map → 2252.49deac2a.js.map} +1 -1
  4. package/dist/chunks/{2652.f0b2f28c.js → 2652.81816881.js} +2 -2
  5. package/dist/chunks/2652.81816881.js.map +1 -0
  6. package/dist/chunks/{2980.86396d3b.js → 2980.bb2d0952.js} +2 -2
  7. package/dist/chunks/{2980.86396d3b.js.map → 2980.bb2d0952.js.map} +1 -1
  8. package/dist/chunks/3144.6ad0f014.js +3 -0
  9. package/dist/chunks/{3144.c6a8a081.js.map → 3144.6ad0f014.js.map} +1 -1
  10. package/dist/chunks/{3171.b08430df.js → 3171.3759a7bc.js} +2 -2
  11. package/dist/chunks/{3171.b08430df.js.map → 3171.3759a7bc.js.map} +1 -1
  12. package/dist/chunks/{3933.e03c2b23.js → 3933.5a4cdee4.js} +2 -2
  13. package/dist/chunks/{3933.e03c2b23.js.map → 3933.5a4cdee4.js.map} +1 -1
  14. package/dist/chunks/{5552.c7215ea8.js → 5552.cce0f361.js} +2 -2
  15. package/dist/chunks/{5552.c7215ea8.js.map → 5552.cce0f361.js.map} +1 -1
  16. package/dist/chunks/{6314.6b069355.js → 6314.05fdaa81.js} +2 -2
  17. package/dist/chunks/{6314.6b069355.js.map → 6314.05fdaa81.js.map} +1 -1
  18. package/dist/chunks/{7115.06a979c3.js → 7115.5e22b22a.js} +2 -2
  19. package/dist/chunks/{7115.06a979c3.js.map → 7115.5e22b22a.js.map} +1 -1
  20. package/dist/chunks/{790.751cea2b.js → 790.998c811a.js} +2 -2
  21. package/dist/chunks/{790.751cea2b.js.map → 790.998c811a.js.map} +1 -1
  22. package/dist/chunks/{8708.1ea15d61.js → 8708.bcb05db3.js} +3 -3
  23. package/dist/chunks/8708.bcb05db3.js.map +1 -0
  24. package/dist/chunks/{871.d122779d.js → 871.9516e890.js} +2 -2
  25. package/dist/chunks/871.9516e890.js.map +1 -0
  26. package/dist/chunks/{9027.901c70c3.js → 9027.a7e4a11b.js} +2 -2
  27. package/dist/chunks/{9027.901c70c3.js.map → 9027.a7e4a11b.js.map} +1 -1
  28. package/dist/chunks/{9496.a22edebd.js → 9496.cfc9137c.js} +2 -2
  29. package/dist/chunks/{9496.a22edebd.js.map → 9496.cfc9137c.js.map} +1 -1
  30. package/dist/chunks/chat-conversation.0825ab19.js +2 -0
  31. package/dist/chunks/chat-conversation.0825ab19.js.map +1 -0
  32. package/dist/chunks/{chat-preview.93091ff7.js → chat-preview.31ddc0bf.js} +3 -3
  33. package/dist/chunks/{chat-preview.93091ff7.js.map → chat-preview.31ddc0bf.js.map} +1 -1
  34. package/dist/chunks/{contract-select.f1ab9ac5.js → contract-select.ba5fcdb2.js} +3 -3
  35. package/dist/chunks/{contract-select.f1ab9ac5.js.map → contract-select.ba5fcdb2.js.map} +1 -1
  36. package/dist/chunks/{inject-chat-preview-agent.fa33d2da.js → inject-chat-preview-agent.895e7805.js} +2 -2
  37. package/dist/chunks/{inject-chat-preview-agent.fa33d2da.js.map → inject-chat-preview-agent.895e7805.js.map} +1 -1
  38. package/dist/chunks/{inject-preview-agent.f5b2e43f.js → inject-preview-agent.805cc41f.js} +2 -2
  39. package/dist/chunks/{inject-preview-agent.f5b2e43f.js.map → inject-preview-agent.805cc41f.js.map} +1 -1
  40. package/dist/chunks/{main.dc3cb140.js → main.2eba6c3c.js} +2 -2
  41. package/dist/chunks/{main.dc3cb140.js.map → main.2eba6c3c.js.map} +1 -1
  42. package/dist/chunks/{pre-generated-container.a4753ca8.js → pre-generated-container.1901c212.js} +2 -2
  43. package/dist/chunks/{pre-generated-container.a4753ca8.js.map → pre-generated-container.1901c212.js.map} +1 -1
  44. package/dist/chunks/{pre-generated-preview.3f7df187.js → pre-generated-preview.a4f882ee.js} +3 -3
  45. package/dist/chunks/{pre-generated-preview.3f7df187.js.map → pre-generated-preview.a4f882ee.js.map} +1 -1
  46. package/dist/chunks/{workbench-action-list.92325154.js → workbench-action-list.4c70e5af.js} +2 -2
  47. package/dist/chunks/{workbench-action-list.92325154.js.map → workbench-action-list.4c70e5af.js.map} +1 -1
  48. package/dist/chunks/{workbench-history-action.2c7308db.js → workbench-history-action.a3c68650.js} +3 -3
  49. package/dist/chunks/{workbench-history-action.2c7308db.js.map → workbench-history-action.a3c68650.js.map} +1 -1
  50. package/dist/{index.86992f43.js → index.5c998163.js} +2 -2
  51. package/dist/{index.86992f43.js.map → index.5c998163.js.map} +1 -1
  52. package/dist/manifest.json +51 -47
  53. package/dist/types.json +86 -79
  54. package/dist-types/chat-conversation/index.d.ts +3 -1
  55. package/package.json +2 -2
  56. package/dist/chunks/2652.f0b2f28c.js.map +0 -1
  57. package/dist/chunks/3144.c6a8a081.js +0 -3
  58. package/dist/chunks/8708.1ea15d61.js.map +0 -1
  59. package/dist/chunks/871.d122779d.js.map +0 -1
  60. package/dist/chunks/chat-conversation.16169845.js +0 -2
  61. package/dist/chunks/chat-conversation.16169845.js.map +0 -1
  62. /package/dist/chunks/{2252.0c3cb8ac.js.LICENSE.txt → 2252.49deac2a.js.LICENSE.txt} +0 -0
  63. /package/dist/chunks/{3144.c6a8a081.js.LICENSE.txt → 3144.6ad0f014.js.LICENSE.txt} +0 -0
  64. /package/dist/chunks/{8708.1ea15d61.js.LICENSE.txt → 8708.bcb05db3.js.LICENSE.txt} +0 -0
  65. /package/dist/chunks/{chat-preview.93091ff7.js.LICENSE.txt → chat-preview.31ddc0bf.js.LICENSE.txt} +0 -0
  66. /package/dist/chunks/{contract-select.f1ab9ac5.js.LICENSE.txt → contract-select.ba5fcdb2.js.LICENSE.txt} +0 -0
  67. /package/dist/chunks/{pre-generated-preview.3f7df187.js.LICENSE.txt → pre-generated-preview.a4f882ee.js.LICENSE.txt} +0 -0
  68. /package/dist/chunks/{workbench-history-action.2c7308db.js.LICENSE.txt → workbench-history-action.a3c68650.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -45,6 +45,50 @@
45
45
  ],
46
46
  "methods": []
47
47
  },
48
+ "visual-builder.workbench-action": {
49
+ "properties": [
50
+ {
51
+ "name": "icon",
52
+ "annotation": {
53
+ "type": "reference",
54
+ "typeName": {
55
+ "type": "identifier",
56
+ "name": "GeneralIconProps"
57
+ }
58
+ }
59
+ },
60
+ {
61
+ "name": "to",
62
+ "annotation": {
63
+ "type": "keyword",
64
+ "value": "string"
65
+ }
66
+ },
67
+ {
68
+ "name": "active",
69
+ "annotation": {
70
+ "type": "keyword",
71
+ "value": "boolean"
72
+ }
73
+ },
74
+ {
75
+ "name": "href",
76
+ "annotation": {
77
+ "type": "keyword",
78
+ "value": "string"
79
+ }
80
+ },
81
+ {
82
+ "name": "target",
83
+ "annotation": {
84
+ "type": "keyword",
85
+ "value": "string"
86
+ }
87
+ }
88
+ ],
89
+ "events": [],
90
+ "methods": []
91
+ },
48
92
  "visual-builder.page-arch-node": {
49
93
  "properties": [
50
94
  {
@@ -322,6 +366,19 @@
322
366
  }
323
367
  ]
324
368
  },
369
+ "visual-builder.workbench-sidebar": {
370
+ "properties": [
371
+ {
372
+ "name": "titleLabel",
373
+ "annotation": {
374
+ "type": "keyword",
375
+ "value": "string"
376
+ }
377
+ }
378
+ ],
379
+ "events": [],
380
+ "methods": []
381
+ },
325
382
  "visual-builder.pre-generated-preview": {
326
383
  "properties": [
327
384
  {
@@ -576,63 +633,6 @@
576
633
  "events": [],
577
634
  "methods": []
578
635
  },
579
- "visual-builder.workbench-sidebar": {
580
- "properties": [
581
- {
582
- "name": "titleLabel",
583
- "annotation": {
584
- "type": "keyword",
585
- "value": "string"
586
- }
587
- }
588
- ],
589
- "events": [],
590
- "methods": []
591
- },
592
- "visual-builder.workbench-action": {
593
- "properties": [
594
- {
595
- "name": "icon",
596
- "annotation": {
597
- "type": "reference",
598
- "typeName": {
599
- "type": "identifier",
600
- "name": "GeneralIconProps"
601
- }
602
- }
603
- },
604
- {
605
- "name": "to",
606
- "annotation": {
607
- "type": "keyword",
608
- "value": "string"
609
- }
610
- },
611
- {
612
- "name": "active",
613
- "annotation": {
614
- "type": "keyword",
615
- "value": "boolean"
616
- }
617
- },
618
- {
619
- "name": "href",
620
- "annotation": {
621
- "type": "keyword",
622
- "value": "string"
623
- }
624
- },
625
- {
626
- "name": "target",
627
- "annotation": {
628
- "type": "keyword",
629
- "value": "string"
630
- }
631
- }
632
- ],
633
- "events": [],
634
- "methods": []
635
- },
636
636
  "visual-builder.workbench-action-list": {
637
637
  "properties": [
638
638
  {
@@ -750,6 +750,13 @@
750
750
  }
751
751
  }
752
752
  }
753
+ },
754
+ {
755
+ "name": "errorBoundary",
756
+ "annotation": {
757
+ "type": "keyword",
758
+ "value": "boolean"
759
+ }
753
760
  }
754
761
  ],
755
762
  "events": [
@@ -850,28 +857,6 @@
850
857
  }
851
858
  ]
852
859
  },
853
- "visual-builder.inject-chat-preview-agent": {
854
- "type": "provider",
855
- "params": [],
856
- "returns": {
857
- "annotation": {
858
- "type": "reference",
859
- "typeName": {
860
- "type": "identifier",
861
- "name": "Promise"
862
- },
863
- "typeParameters": {
864
- "type": "typeParameterInstantiation",
865
- "params": [
866
- {
867
- "type": "keyword",
868
- "value": "unknown"
869
- }
870
- ]
871
- }
872
- }
873
- }
874
- },
875
860
  "visual-builder.workbench-history-action": {
876
861
  "properties": [
877
862
  {
@@ -1094,6 +1079,28 @@
1094
1079
  ],
1095
1080
  "methods": []
1096
1081
  },
1082
+ "visual-builder.inject-chat-preview-agent": {
1083
+ "type": "provider",
1084
+ "params": [],
1085
+ "returns": {
1086
+ "annotation": {
1087
+ "type": "reference",
1088
+ "typeName": {
1089
+ "type": "identifier",
1090
+ "name": "Promise"
1091
+ },
1092
+ "typeParameters": {
1093
+ "type": "typeParameterInstantiation",
1094
+ "params": [
1095
+ {
1096
+ "type": "keyword",
1097
+ "value": "unknown"
1098
+ }
1099
+ ]
1100
+ }
1101
+ }
1102
+ }
1103
+ },
1097
1104
  "visual-builder.chat-preview": {
1098
1105
  "properties": [
1099
1106
  {
@@ -11,6 +11,7 @@ export interface Message {
11
11
  }
12
12
  export interface ChatConversationProps {
13
13
  messages?: Message[];
14
+ errorBoundary?: boolean;
14
15
  }
15
16
  /**
16
17
  * 用于 Visual Builder 的智能聊天对话列表
@@ -18,10 +19,11 @@ export interface ChatConversationProps {
18
19
  export declare class ChatConversation extends ReactNextElement implements ChatConversationProps {
19
20
  #private;
20
21
  accessor messages: Message[] | undefined;
22
+ accessor errorBoundary: boolean | undefined;
21
23
  render(): React.JSX.Element;
22
24
  }
23
25
  export interface ChatConversationComponentProps extends ChatConversationProps {
24
26
  host: Element;
25
27
  onStoryboardUpdate?: (storyboard: BrickConf[]) => void;
26
28
  }
27
- export declare function ChatConversationComponent({ messages, host, onStoryboardUpdate, }: ChatConversationComponentProps): React.JSX.Element;
29
+ export declare function ChatConversationComponent({ messages, host, errorBoundary, onStoryboardUpdate, }: ChatConversationComponentProps): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/visual-builder",
3
- "version": "1.14.0",
3
+ "version": "1.14.2",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/visual-builder",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,5 +42,5 @@
42
42
  "@next-bricks/form": "*",
43
43
  "@next-bricks/icons": "*"
44
44
  },
45
- "gitHead": "f0b4f8320d268b3c38f7b38a4a44951698862965"
45
+ "gitHead": "9db4257d71174e9ff0adb9483ce294d915948d01"
46
46
  }