@thebase/ui
Version:
CDN-installable Owl and Bootstrap 5 UI component library.
2 lines (1 loc) • 615 B
JavaScript
import{p as s,t as f}from"./chunk-R43NMSZO.js";import{P as c,R as d}from"./chunk-XNCXGIZE.js";function p(n,e){let{doc:o,selection:t}=n;if(!o||!t||!(t instanceof c||t instanceof d))return n;let{to:r}=t,i=e.type==="space"?Array(e.size).fill(" ").join(""):" ";return n.insertText(i,r)}var a=f({type:"space",size:2},"indentConfig");a.meta={package:"@milkdown/plugin-indent",displayName:"Ctx<indentConfig>"};var l=s(n=>({Tab:(e,o)=>{let t=n.get(a.key),{tr:r}=e,i=p(r,t);return i.docChanged?(o?.(i),!0):!1}}));l.meta={package:"@milkdown/plugin-indent",displayName:"Shortcut<indent>"};var m=[a,l];export{a,l as b,m as c};