File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ export type {
2727 EditorContextType ,
2828 InternalComponentDefinition ,
2929 InternalRenderableComponentDefinition ,
30- EditorActions ,
3130} from "./compiler/types" ;
3231export {
3332 EasyblocksMetadataProvider ,
Original file line number Diff line number Diff line change 11import { ComponentType , ReactElement } from "react" ;
22import { PartialDeep } from "type-fest" ;
33import { Locale } from "./locales" ;
4- import { InternalComponentDefinitions } from "./_internals " ;
4+ import { InternalComponentDefinitions } from "./compiler/types " ;
55
66export type ScalarOrCollection < T > = T | Array < T > ;
77
Original file line number Diff line number Diff line change @@ -915,6 +915,8 @@ const EditorContent = ({
915915 }
916916
917917 if ( event . data . type === "@easyblocks-editor/paste-items" ) {
918+ console . log ( focussedField ) ;
919+
918920 actions . pasteItems ( event . data . payload . configs ) ;
919921 }
920922
@@ -1059,7 +1061,7 @@ const EditorContent = ({
10591061 window . addEventListener ( "message" , handleEditorEvents ) ;
10601062
10611063 return ( ) => window . removeEventListener ( "message" , handleEditorEvents ) ;
1062- } , [ ] ) ;
1064+ } , [ focussedField ] ) ;
10631065
10641066 const shopstoryCanvasIframe = useRef < HTMLIFrameElement | null > ( null ) ;
10651067
You can’t perform that action at this time.
0 commit comments