@next-bricks/visual-builder 1.12.0 → 1.13.1
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 +13 -13
- package/dist/chunks/{2154.ac02446d.js → 2154.142671d1.js} +3 -3
- package/dist/chunks/2154.142671d1.js.map +1 -0
- package/dist/chunks/{2252.b9ed6aa7.js → 2252.d5b6e180.js} +3 -3
- package/dist/chunks/{2252.b9ed6aa7.js.map → 2252.d5b6e180.js.map} +1 -1
- package/dist/chunks/{2652.a4face90.js → 2652.8b225b3b.js} +2 -2
- package/dist/chunks/{2652.a4face90.js.map → 2652.8b225b3b.js.map} +1 -1
- package/dist/chunks/{2980.92b686dc.js → 2980.17f0a298.js} +2 -2
- package/dist/chunks/{2980.92b686dc.js.map → 2980.17f0a298.js.map} +1 -1
- package/dist/chunks/{3171.c9fc1c8e.js → 3171.e940cbee.js} +2 -2
- package/dist/chunks/{3171.c9fc1c8e.js.map → 3171.e940cbee.js.map} +1 -1
- package/dist/chunks/{3933.a710c6ad.js → 3933.ebc8e8f2.js} +2 -2
- package/dist/chunks/{3933.a710c6ad.js.map → 3933.ebc8e8f2.js.map} +1 -1
- package/dist/chunks/{5552.83fe9bea.js → 5552.a2515c4d.js} +2 -2
- package/dist/chunks/{5552.83fe9bea.js.map → 5552.a2515c4d.js.map} +1 -1
- package/dist/chunks/{6314.807d5f10.js → 6314.b4d1e3d8.js} +2 -2
- package/dist/chunks/{6314.807d5f10.js.map → 6314.b4d1e3d8.js.map} +1 -1
- package/dist/chunks/{7115.fe57c671.js → 7115.ae98e709.js} +2 -2
- package/dist/chunks/{7115.fe57c671.js.map → 7115.ae98e709.js.map} +1 -1
- package/dist/chunks/{790.fe33a295.js → 790.3507adfd.js} +2 -2
- package/dist/chunks/{790.fe33a295.js.map → 790.3507adfd.js.map} +1 -1
- package/dist/chunks/871.d122779d.js +2 -0
- package/dist/chunks/871.d122779d.js.map +1 -0
- package/dist/chunks/{9027.07b0de15.js → 9027.cff50414.js} +2 -2
- package/dist/chunks/{9027.07b0de15.js.map → 9027.cff50414.js.map} +1 -1
- package/dist/chunks/{9496.9cb3a6aa.js → 9496.1ec84446.js} +2 -2
- package/dist/chunks/{9496.9cb3a6aa.js.map → 9496.1ec84446.js.map} +1 -1
- package/dist/chunks/chat-preview.f53383e4.js +3 -0
- package/dist/chunks/chat-preview.f53383e4.js.LICENSE.txt +5 -0
- package/dist/chunks/chat-preview.f53383e4.js.map +1 -0
- package/dist/chunks/{inject-chat-preview-agent.fb9168ba.js → inject-chat-preview-agent.da30e6ca.js} +2 -2
- package/dist/chunks/{inject-chat-preview-agent.fb9168ba.js.map → inject-chat-preview-agent.da30e6ca.js.map} +1 -1
- package/dist/chunks/{inject-preview-agent.68252d0a.js → inject-preview-agent.ef222436.js} +2 -2
- package/dist/chunks/{inject-preview-agent.68252d0a.js.map → inject-preview-agent.ef222436.js.map} +1 -1
- package/dist/chunks/{main.9c3156f3.js → main.8fa72e42.js} +2 -2
- package/dist/chunks/{main.9c3156f3.js.map → main.8fa72e42.js.map} +1 -1
- package/dist/chunks/{workbench-action-list.4a1aa8df.js → workbench-action-list.384f5582.js} +2 -2
- package/dist/chunks/{workbench-action-list.4a1aa8df.js.map → workbench-action-list.384f5582.js.map} +1 -1
- package/dist/chunks/{workbench-history-action.dd048a97.js → workbench-history-action.881387c9.js} +3 -3
- package/dist/chunks/{workbench-history-action.dd048a97.js.map → workbench-history-action.881387c9.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/index.7872073f.js +2 -0
- package/dist/{index.e7ddac9f.js.map → index.7872073f.js.map} +1 -1
- package/dist/manifest.json +78 -70
- package/dist/types.json +112 -95
- package/dist-types/chat-preview/index.d.ts +6 -2
- package/package.json +2 -2
- package/dist/chunks/2154.ac02446d.js.map +0 -1
- package/dist/chunks/871.bf085405.js +0 -2
- package/dist/chunks/871.bf085405.js.map +0 -1
- package/dist/chunks/chat-preview.6733a6b3.js +0 -2
- package/dist/chunks/chat-preview.6733a6b3.js.map +0 -1
- package/dist/index.e7ddac9f.js +0 -2
- /package/dist/chunks/{2154.ac02446d.js.LICENSE.txt → 2154.142671d1.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{2252.b9ed6aa7.js.LICENSE.txt → 2252.d5b6e180.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.dd048a97.js.LICENSE.txt → workbench-history-action.881387c9.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -45,6 +45,19 @@
|
|
|
45
45
|
],
|
|
46
46
|
"methods": []
|
|
47
47
|
},
|
|
48
|
+
"visual-builder.workbench-sidebar": {
|
|
49
|
+
"properties": [
|
|
50
|
+
{
|
|
51
|
+
"name": "titleLabel",
|
|
52
|
+
"annotation": {
|
|
53
|
+
"type": "keyword",
|
|
54
|
+
"value": "string"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"events": [],
|
|
59
|
+
"methods": []
|
|
60
|
+
},
|
|
48
61
|
"visual-builder.workbench-action": {
|
|
49
62
|
"properties": [
|
|
50
63
|
{
|
|
@@ -366,19 +379,6 @@
|
|
|
366
379
|
}
|
|
367
380
|
]
|
|
368
381
|
},
|
|
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
|
-
},
|
|
382
382
|
"visual-builder.workbench-action-list": {
|
|
383
383
|
"properties": [
|
|
384
384
|
{
|
|
@@ -618,88 +618,6 @@
|
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
},
|
|
621
|
-
"visual-builder.contract-select": {
|
|
622
|
-
"properties": [
|
|
623
|
-
{
|
|
624
|
-
"name": "name",
|
|
625
|
-
"annotation": {
|
|
626
|
-
"type": "keyword",
|
|
627
|
-
"value": "string"
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
"name": "required",
|
|
632
|
-
"annotation": {
|
|
633
|
-
"type": "keyword",
|
|
634
|
-
"value": "boolean"
|
|
635
|
-
}
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
"name": "label",
|
|
639
|
-
"annotation": {
|
|
640
|
-
"type": "keyword",
|
|
641
|
-
"value": "string"
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"name": "value",
|
|
646
|
-
"annotation": {
|
|
647
|
-
"type": "keyword",
|
|
648
|
-
"value": "any"
|
|
649
|
-
}
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
"name": "suffix",
|
|
653
|
-
"annotation": {
|
|
654
|
-
"type": "typeLiteral",
|
|
655
|
-
"members": [
|
|
656
|
-
{
|
|
657
|
-
"type": "propertySignature",
|
|
658
|
-
"key": {
|
|
659
|
-
"type": "identifier",
|
|
660
|
-
"name": "useBrick"
|
|
661
|
-
},
|
|
662
|
-
"annotation": {
|
|
663
|
-
"type": "union",
|
|
664
|
-
"types": [
|
|
665
|
-
{
|
|
666
|
-
"type": "reference",
|
|
667
|
-
"typeName": {
|
|
668
|
-
"type": "identifier",
|
|
669
|
-
"name": "UseSingleBrickConf"
|
|
670
|
-
}
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
"type": "array",
|
|
674
|
-
"elementType": {
|
|
675
|
-
"type": "reference",
|
|
676
|
-
"typeName": {
|
|
677
|
-
"type": "identifier",
|
|
678
|
-
"name": "UseSingleBrickConf"
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
]
|
|
683
|
-
},
|
|
684
|
-
"computed": false
|
|
685
|
-
}
|
|
686
|
-
]
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
],
|
|
690
|
-
"events": [
|
|
691
|
-
{
|
|
692
|
-
"name": "change",
|
|
693
|
-
"detail": {
|
|
694
|
-
"annotation": {
|
|
695
|
-
"type": "keyword",
|
|
696
|
-
"value": "string"
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
],
|
|
701
|
-
"methods": []
|
|
702
|
-
},
|
|
703
621
|
"visual-builder.workbench-history-action": {
|
|
704
622
|
"properties": [
|
|
705
623
|
{
|
|
@@ -840,6 +758,88 @@
|
|
|
840
758
|
}
|
|
841
759
|
]
|
|
842
760
|
},
|
|
761
|
+
"visual-builder.contract-select": {
|
|
762
|
+
"properties": [
|
|
763
|
+
{
|
|
764
|
+
"name": "name",
|
|
765
|
+
"annotation": {
|
|
766
|
+
"type": "keyword",
|
|
767
|
+
"value": "string"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"name": "required",
|
|
772
|
+
"annotation": {
|
|
773
|
+
"type": "keyword",
|
|
774
|
+
"value": "boolean"
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"name": "label",
|
|
779
|
+
"annotation": {
|
|
780
|
+
"type": "keyword",
|
|
781
|
+
"value": "string"
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"name": "value",
|
|
786
|
+
"annotation": {
|
|
787
|
+
"type": "keyword",
|
|
788
|
+
"value": "any"
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"name": "suffix",
|
|
793
|
+
"annotation": {
|
|
794
|
+
"type": "typeLiteral",
|
|
795
|
+
"members": [
|
|
796
|
+
{
|
|
797
|
+
"type": "propertySignature",
|
|
798
|
+
"key": {
|
|
799
|
+
"type": "identifier",
|
|
800
|
+
"name": "useBrick"
|
|
801
|
+
},
|
|
802
|
+
"annotation": {
|
|
803
|
+
"type": "union",
|
|
804
|
+
"types": [
|
|
805
|
+
{
|
|
806
|
+
"type": "reference",
|
|
807
|
+
"typeName": {
|
|
808
|
+
"type": "identifier",
|
|
809
|
+
"name": "UseSingleBrickConf"
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"type": "array",
|
|
814
|
+
"elementType": {
|
|
815
|
+
"type": "reference",
|
|
816
|
+
"typeName": {
|
|
817
|
+
"type": "identifier",
|
|
818
|
+
"name": "UseSingleBrickConf"
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
]
|
|
823
|
+
},
|
|
824
|
+
"computed": false
|
|
825
|
+
}
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
],
|
|
830
|
+
"events": [
|
|
831
|
+
{
|
|
832
|
+
"name": "change",
|
|
833
|
+
"detail": {
|
|
834
|
+
"annotation": {
|
|
835
|
+
"type": "keyword",
|
|
836
|
+
"value": "string"
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
"methods": []
|
|
842
|
+
},
|
|
843
843
|
"visual-builder.chat-preview": {
|
|
844
844
|
"properties": [
|
|
845
845
|
{
|
|
@@ -874,6 +874,23 @@
|
|
|
874
874
|
"value": "string"
|
|
875
875
|
}
|
|
876
876
|
},
|
|
877
|
+
{
|
|
878
|
+
"name": "uiVersion",
|
|
879
|
+
"annotation": {
|
|
880
|
+
"type": "keyword",
|
|
881
|
+
"value": "string"
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"name": "app",
|
|
886
|
+
"annotation": {
|
|
887
|
+
"type": "reference",
|
|
888
|
+
"typeName": {
|
|
889
|
+
"type": "identifier",
|
|
890
|
+
"name": "MicroApp"
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
},
|
|
877
894
|
{
|
|
878
895
|
"name": "inspecting",
|
|
879
896
|
"annotation": {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
|
-
import type { BrickConf } from "@next-core/types";
|
|
4
|
+
import type { BrickConf, MicroApp } from "@next-core/types";
|
|
5
5
|
import type { InspectSelector } from "../data-providers/chat-preview/interfaces";
|
|
6
6
|
export interface ChatPreviewProps {
|
|
7
7
|
storyboard?: BrickConf | BrickConf[];
|
|
8
8
|
theme?: string;
|
|
9
|
+
uiVersion?: string;
|
|
10
|
+
app?: MicroApp;
|
|
9
11
|
inspecting?: boolean;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
@@ -15,6 +17,8 @@ export declare class ChatPreview extends ReactNextElement {
|
|
|
15
17
|
#private;
|
|
16
18
|
accessor storyboard: BrickConf | BrickConf[] | undefined;
|
|
17
19
|
accessor theme: string | undefined;
|
|
20
|
+
accessor uiVersion: string | undefined;
|
|
21
|
+
accessor app: MicroApp | undefined;
|
|
18
22
|
accessor inspecting: boolean | undefined;
|
|
19
23
|
select(payload: InspectSelector): void;
|
|
20
24
|
render(): React.JSX.Element;
|
|
@@ -22,4 +26,4 @@ export declare class ChatPreview extends ReactNextElement {
|
|
|
22
26
|
export interface ChatPreviewComponentProps extends ChatPreviewProps {
|
|
23
27
|
onActiveTargetChange?(target: InspectSelector | undefined): void;
|
|
24
28
|
}
|
|
25
|
-
export declare function ChatPreviewComponent({ storyboard, theme, inspecting, onActiveTargetChange, }: ChatPreviewComponentProps): React.JSX.Element;
|
|
29
|
+
export declare function ChatPreviewComponent({ storyboard, theme, uiVersion, app, inspecting, onActiveTargetChange, }: ChatPreviewComponentProps): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/visual-builder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.1",
|
|
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": "
|
|
45
|
+
"gitHead": "5eb7b76a27f0f60068247d4dfbd00a088f5abe59"
|
|
46
46
|
}
|