File tree Expand file tree Collapse file tree 2 files changed +26
-25
lines changed
Expand file tree Collapse file tree 2 files changed +26
-25
lines changed Original file line number Diff line number Diff line change 66 ContextParams ,
77 Devices ,
88 EditingInfoBase ,
9+ EditorActions ,
910 ExternalSchemaProp ,
1011 ExternalTypeDefinition ,
1112 FieldPortal ,
@@ -134,31 +135,6 @@ export type InternalComponentDefinitions = {
134135 components : InternalRenderableComponentDefinition < string , any , any > [ ] ;
135136} ;
136137
137- export type EditorActions = {
138- notify : ( message : string ) => void ;
139- openComponentPicker : ( config : {
140- path : string ;
141- componentTypes ?: string [ ] ;
142- } ) => Promise < NoCodeComponentEntry | undefined > ;
143- moveItems : (
144- fieldNames : Array < string > ,
145- direction : "top" | "right" | "bottom" | "left"
146- ) => void ;
147- replaceItems : ( paths : Array < string > , newConfig : NoCodeComponentEntry ) => void ;
148- removeItems : ( fieldNames : Array < string > ) => void ;
149- insertItem : ( insertItemProps : {
150- name : string ;
151- index : number ;
152- block : NoCodeComponentEntry ;
153- } ) => void ;
154- duplicateItems : ( fieldNames : Array < string > ) => void ;
155- pasteItems : ( items : Array < NoCodeComponentEntry > ) => void ;
156- runChange : < Callback extends ( ) => Array < string > | void > (
157- configChangeCallback : Callback
158- ) => void ;
159- logSelectedItems : ( ) => void ;
160- } ;
161-
162138export type EditorContextType = CompilationContextType & {
163139 breakpointIndex : string ;
164140 locales : Locale [ ] ;
Original file line number Diff line number Diff line change @@ -1002,3 +1002,28 @@ export type TokenValue<T = any> = {
10021002export type AnyContextWithDefinitions = {
10031003 definitions : InternalComponentDefinitions ;
10041004} ;
1005+
1006+ export type EditorActions = {
1007+ notify : ( message : string ) => void ;
1008+ openComponentPicker : ( config : {
1009+ path : string ;
1010+ componentTypes ?: string [ ] ;
1011+ } ) => Promise < NoCodeComponentEntry | undefined > ;
1012+ moveItems : (
1013+ fieldNames : Array < string > ,
1014+ direction : "top" | "right" | "bottom" | "left"
1015+ ) => void ;
1016+ replaceItems : ( paths : Array < string > , newConfig : NoCodeComponentEntry ) => void ;
1017+ removeItems : ( fieldNames : Array < string > ) => void ;
1018+ insertItem : ( insertItemProps : {
1019+ name : string ;
1020+ index : number ;
1021+ block : NoCodeComponentEntry ;
1022+ } ) => void ;
1023+ duplicateItems : ( fieldNames : Array < string > ) => void ;
1024+ pasteItems : ( items : Array < NoCodeComponentEntry > ) => void ;
1025+ runChange : < Callback extends ( ) => Array < string > | void > (
1026+ configChangeCallback : Callback
1027+ ) => void ;
1028+ logSelectedItems : ( ) => void ;
1029+ } ;
You can’t perform that action at this time.
0 commit comments