/* esm.sh - @milkdown/plugin-history@7.22.3 */
import{commandsCtx as d}from"../../../core@7.22.3/X-ZEBtaWxrZG93bi9jdHhANy4yMi4zLEBtaWxrZG93bi9wcm9zZUA3LjIyLjMscHJvc2VtaXJyb3ItbW9kZWxAMS4yNS4xMg/es2022/core.mjs";import{history as y,redo as c,undo as h}from"../../../prose@7.22.3/X-ZHByb3NlbWlycm9yLW1vZGVsQDEuMjUuMTI/es2022/history.mjs";import{$command as s,$ctx as p,$prose as l,$useKeymap as u}from"../../../utils@7.22.3/X-ZEBtaWxrZG93bi9jb3JlQDcuMjIuMyxAbWlsa2Rvd24vY3R4QDcuMjIuMyxAbWlsa2Rvd24vcHJvc2VANy4yMi4zLHByb3NlbWlycm9yLW1vZGVsQDEuMjUuMTI/es2022/utils.mjs";function r(o,t){return Object.assign(o,{meta:{package:"@milkdown/plugin-history",...t}}),o}var a=s("Undo",()=>()=>h);r(a,{displayName:"Command<undo>"});var m=s("Redo",()=>()=>c);r(m,{displayName:"Command<redo>"});var e=p({},"historyProviderConfig");r(e,{displayName:"Ctx<historyProviderConfig>"});var n=l(o=>y(o.get(e.key)));r(n,{displayName:"Ctx<historyProviderPlugin>"});var i=u("historyKeymap",{Undo:{shortcuts:"Mod-z",command:o=>{let t=o.get(d);return()=>t.call(a.key)}},Redo:{shortcuts:["Mod-y","Shift-Mod-z"],command:o=>{let t=o.get(d);return()=>t.call(m.key)}}});r(i.ctx,{displayName:"KeymapCtx<history>"});r(i.shortcuts,{displayName:"Keymap<history>"});var f=[e,n,i,a,m].flat();export{f as history,i as historyKeymap,e as historyProviderConfig,n as historyProviderPlugin,m as redoCommand,a as undoCommand};
//# sourceMappingURL=plugin-history.mjs.map