@payloadcms/richtext-lexical 3.73.0-canary.3 → 3.73.0-canary.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,4 +9,4 @@ var rt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.cre
9
9
  `)},regExp:Yt,replace:(n,t,e,o)=>{if(o){let c=n.getPreviousSibling();if(Pt(c)){c.splice(c.getChildrenSize(),0,[On(),...t]),c.select(0,0),n.remove();return}}let r=Nn();r.append(...t),n.replace(r),r.select(0,0)}},jt={type:"element",dependencies:[tt,J],export:(n,t)=>k(n)?U(n,t,0):null,regExp:zt,replace:et("bullet")},Pn={type:"element",dependencies:[tt,J],export:(n,t)=>k(n)?U(n,t,0):null,regExp:Xt,replace:et("check")},Vt={type:"element",dependencies:[tt,J],export:(n,t)=>k(n)?U(n,t,0):null,regExp:Gt,replace:et("number")},Zt={type:"text-format",format:["code"],tag:"`"},Jt={type:"text-format",format:["highlight"],tag:"=="},te={type:"text-format",format:["bold","italic"],tag:"***"},ee={type:"text-format",format:["bold","italic"],intraword:!1,tag:"___"},ne={type:"text-format",format:["bold"],tag:"**"},oe={type:"text-format",format:["bold"],intraword:!1,tag:"__"},re={type:"text-format",format:["strikethrough"],tag:"~~"},ie={type:"text-format",format:["italic"],tag:"*"},se={type:"text-format",format:["italic"],intraword:!1,tag:"_"};function ce(n,t){let e=n.split(`
10
10
  `),o=!1,r=[],c=0;for(let s=0;s<e.length;s++){let i=e[s],a=r[r.length-1];if(Mn.test(i)){r.push(i);continue}if(Ht.test(i)){c===0&&(o=!0),c===1&&(o=!1),c>0&&c--,r.push(i);continue}if(kn.test(i)){o=!0,c++,r.push(i);continue}if(o){r.push(i);continue}vt.test(i)||vt.test(a)||!a||Z.test(a)||Z.test(i)||Yt.test(i)||Gt.test(i)||zt.test(i)||Xt.test(i)||Ln.test(i)||$n.test(i)||!t||Kt.test(i)||Ut.test(i)||Kt.test(a)||Ut.test(a)||Ht.test(a)?r.push(i):r[r.length-1]=a+" "+i.trim()}return r.join(`
11
11
  `)}var vn=[qt,Qt,jt,Vt],Hn=[],Kn=[Zt,te,ee,ne,oe,Jt,ie,se,re],Un=[],K=[...vn,...Hn,...Kn,...Un];function Tr(n,t=K,e,o=!1,r=!0){let c=o?n:ce(n,r);return Mt(t,o)(c,e)}function Sr(n=K,t,e=!1){return Nt(n,e)(t)}export{ur as a,Tr as b,Sr as c,rt as d,Wn as e,z as f,it as g,lo as h,Ge as i,fo as j,St as k,po as l};
12
- //# sourceMappingURL=chunk-AFXLIYGL.js.map
12
+ //# sourceMappingURL=chunk-EZX4YW7S.js.map