import { mermaidNodeType } from "./MermaidSpecs/const.js";
export const addMermaid = {
    isEnable(state) {
        return state.selection.empty;
    },
    run(state, dispatch, _view) {
        dispatch(state.tr.insert(state.selection.from, mermaidNodeType(state.schema).create({
            content: [
                'sequenceDiagram',
                '\tAlice->>Bob: Hi Bob',
                '\tBob->>Alice: Hi Alice',
            ].join('\n'),
            newCreated: true,
        })));
    },
};
//# sourceMappingURL=actions.js.map
