Files
payloadcms/packages/richtext-lexical/src/field/features/upload/drawer/commands.ts
Alessio Gravili 7880fb402a chore: playwright support (#5262)
* working playwright

* chore: use zipped, local build of playwright instead of patching it

* chore: remove bloat

* chore: get playwright and lexical to work by fixing imports from cjs modules
2024-03-08 10:56:13 -05:00

10 lines
297 B
TypeScript

'use client'
import type { LexicalCommand } from 'lexical'
import lexicalImport from 'lexical'
const { createCommand } = lexicalImport
export const INSERT_UPLOAD_WITH_DRAWER_COMMAND: LexicalCommand<{
replace: { nodeKey: string } | false
}> = createCommand('INSERT_UPLOAD_WITH_DRAWER_COMMAND')