@@ -29,7 +29,7 @@ import { TrackingPluginActions } from '../Tracking';
29
29
30
30
export function getWithEmbeddedBlockEvents (
31
31
nodeType : BLOCKS . EMBEDDED_ENTRY | BLOCKS . EMBEDDED_ASSET | BLOCKS . EMBEDDED_RESOURCE ,
32
- sdk : FieldAppSDK
32
+ sdk : FieldAppSDK ,
33
33
) : KeyboardHandler < HotkeyPlugin > {
34
34
return ( editor , { options : { hotkey } } ) =>
35
35
( event ) => {
@@ -61,7 +61,7 @@ export async function selectEntityAndInsert(
61
61
nodeType ,
62
62
sdk ,
63
63
editor ,
64
- logAction : TrackingPluginActions [ 'onToolbarAction' ] | TrackingPluginActions [ 'onShortcutAction' ]
64
+ logAction : TrackingPluginActions [ 'onToolbarAction' ] | TrackingPluginActions [ 'onShortcutAction' ] ,
65
65
) {
66
66
logAction ( 'openCreateEmbedDialog' , { nodeType } ) ;
67
67
@@ -83,7 +83,7 @@ export async function selectEntityAndInsert(
83
83
select ( editor , selection ) ;
84
84
insertBlock ( editor , nodeType , entity ) ;
85
85
ensureFollowingParagraph ( editor , [ BLOCKS . EMBEDDED_ASSET , BLOCKS . EMBEDDED_ENTRY ] ) ;
86
- logAction ( 'insert' , { nodeType } ) ;
86
+ logAction ( 'insert' , { nodeType, entity } ) ;
87
87
}
88
88
// If user chose to create a new entity, this might open slide-in to edit the
89
89
// entity. In this case, no point in focusing RTE which is now in the slide below.
@@ -96,7 +96,7 @@ export async function selectEntityAndInsert(
96
96
export async function selectResourceEntityAndInsert (
97
97
sdk ,
98
98
editor ,
99
- logAction : TrackingPluginActions [ 'onToolbarAction' ] | TrackingPluginActions [ 'onShortcutAction' ]
99
+ logAction : TrackingPluginActions [ 'onToolbarAction' ] | TrackingPluginActions [ 'onShortcutAction' ] ,
100
100
) {
101
101
logAction ( 'openCreateEmbedDialog' , { nodeType : BLOCKS . EMBEDDED_RESOURCE } ) ;
102
102
@@ -135,7 +135,7 @@ function ensureFollowingParagraph(editor: PlateEditor, nodeTypes: BLOCKS[]) {
135
135
const lastNode = getLastNodeByLevel ( editor , level ) ;
136
136
137
137
const isTextContainer = ( TEXT_CONTAINERS as string [ ] ) . includes (
138
- ( lastNode ?. [ 0 ] . type ?? '' ) as string
138
+ ( lastNode ?. [ 0 ] . type ?? '' ) as string ,
139
139
) ;
140
140
141
141
// If the new block isn't followed by a sibling text container (e.g. paragraph)
0 commit comments