@layers-app/editor 0.7.26 → 0.7.27
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.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/{layers.BB8EnLVz.js → layers.-7vH2Dq8.js} +1 -1
- package/dist/layers.2dkyMPoe.js +1 -0
- package/dist/{layers.BGC5ykCP.js → layers.4lQ7ioK1.js} +4 -4
- package/dist/{layers.B33gaZah.js → layers.4lXufYUT.js} +1 -1
- package/dist/{layers.CqUEj4Gr.js → layers.66ASn_cp.js} +1 -1
- package/dist/{layers.DQ7Ue1Fv.js → layers.8M6HvgST.js} +4 -4
- package/dist/{layers.CcZVMGJ2.js → layers.9MD6rrz4.js} +1 -1
- package/dist/{layers.iFeAlI6H.js → layers.9kggbPmB.js} +1 -1
- package/dist/{layers.6w8B4hFk.js → layers.9nczZO3Y.js} +1 -1
- package/dist/{layers.BV21urwt.js → layers.ApaoW-TB.js} +1 -1
- package/dist/{layers.RIwhwY8U.js → layers.B-HigphI.js} +2 -2
- package/dist/{layers.DElPAzG2.js → layers.B-MDc1x6.js} +1 -1
- package/dist/{layers.vJOgspvU.js → layers.B08hCWyk.js} +24 -24
- package/dist/{layers.8VJeG9rG.js → layers.B0ZcRcmQ.js} +1 -1
- package/dist/{layers.ylvIcl1z.js → layers.B3OEuKtt.js} +3 -3
- package/dist/{layers.BaVjgFII.js → layers.B3mxghoA.js} +1 -1
- package/dist/{layers.hoCWKOtV.js → layers.B6P_VcL-.js} +1 -1
- package/dist/{layers.IAIKoo0h.js → layers.B6WSnCDJ.js} +4 -4
- package/dist/{layers.DrAry1Kf.js → layers.B89EEhm_.js} +1 -1
- package/dist/{layers.Cx_nY6Y7.js → layers.BA2gMVMl.js} +1 -1
- package/dist/{layers.C1tEKsbt.js → layers.BBB4SCju.js} +1 -1
- package/dist/{layers.8RkOJVIE.js → layers.BHhc-FPY.js} +1 -1
- package/dist/{layers.CaPlf6cQ.js → layers.BIAslP-Z.js} +1 -1
- package/dist/{layers.DiSdECjm.js → layers.BIaVF2AJ.js} +3 -3
- package/dist/{layers.gGLUL8Z7.js → layers.BIz34SA4.js} +1 -1
- package/dist/{layers.C34ZNIfL.js → layers.BKiXDrdy.js} +1 -1
- package/dist/{layers.BTCB0JpX.js → layers.BKrtsOeu.js} +1 -1
- package/dist/{layers.O1t5sl2z.js → layers.BL7YXNsq.js} +1 -1
- package/dist/{layers.BiSuaFI7.js → layers.BMM4fVCl.js} +1 -1
- package/dist/{layers.DT1Fui5R.js → layers.BMgo9tt7.js} +1 -1
- package/dist/{layers.1bJ3Mbz9.js → layers.BPJsJUhF.js} +4 -4
- package/dist/{layers.bf7CMgrh.js → layers.BPY9j60B.js} +1 -1
- package/dist/{layers.lel7gNeu.js → layers.BQL8MS7X.js} +1 -1
- package/dist/{layers.-wjKgffX.js → layers.BR-uMaby.js} +5 -5
- package/dist/{layers.BXpw5pIX.js → layers.BSP1NebL.js} +1 -1
- package/dist/{layers.DOQpvHnX.js → layers.BStOyyRa.js} +1 -1
- package/dist/{layers.DfDXn4TD.js → layers.BTA3mdDK.js} +1 -1
- package/dist/layers.BUEIcznC.js +1 -0
- package/dist/{layers.W7ATjiDf.js → layers.BUaggEDz.js} +1 -1
- package/dist/{layers.DQ5ZJRxN.js → layers.BUy65Iie.js} +1 -1
- package/dist/{layers.d30Rgcib.js → layers.BVdYovts.js} +1 -1
- package/dist/{layers.B7edFg4K.js → layers.BWrklAzC.js} +1 -1
- package/dist/{layers.Bc3f0bzg.js → layers.BX8islIn.js} +1 -1
- package/dist/{layers.CHGPKVlh.js → layers.BZqssNNA.js} +1 -1
- package/dist/{layers.Bq8p214x.js → layers.B_rZAIt9.js} +1 -1
- package/dist/{layers.BO9n3EnR.js → layers.BcIbLb3Q.js} +1 -1
- package/dist/{layers.B4bWwT6u.js → layers.BcPqfnft.js} +3 -3
- package/dist/{layers.D_ZvKS4q.js → layers.BcYCH-Ob.js} +1 -1
- package/dist/{layers.DQ87eVFA.js → layers.Bdc4LvOw.js} +1 -1
- package/dist/{layers.D4aYlLPZ.js → layers.Bde5-BrW.js} +1 -1
- package/dist/{layers.C7AUSLfi.js → layers.Be_pcSi9.js} +1 -1
- package/dist/{layers.ClfyzbH1.js → layers.BfFwXqa-.js} +1 -1
- package/dist/{layers.BG--DwYt.js → layers.BffLvEjH.js} +1 -1
- package/dist/{layers.ClGUwzhg.js → layers.Bh0IhBuQ.js} +1 -1
- package/dist/{layers.em6rytD5.js → layers.Bi7kV663.js} +1 -1
- package/dist/{layers.DKm1mN2X.js → layers.BidgxAEk.js} +1 -1
- package/dist/{layers.CsPg2KjG.js → layers.BlS_ReEd.js} +1 -1
- package/dist/{layers.BPcVGKN8.js → layers.Bm--XL6d.js} +1 -1
- package/dist/{layers.BFEVByrk.js → layers.BnMy2cvT.js} +1 -1
- package/dist/{layers.Ds_tgW-V.js → layers.BnOMCS0H.js} +1 -1
- package/dist/{layers.DpvmCmKj.js → layers.Bod71q6a.js} +1 -1
- package/dist/{layers.BaT04AWS.js → layers.BplK2Fma.js} +1 -1
- package/dist/{layers.AAIYJoWX.js → layers.BsOLTsVp.js} +1 -1
- package/dist/{layers.jfJgHirm.js → layers.BsxOilUF.js} +1 -1
- package/dist/{layers.BFc73oZr.js → layers.C2r-ZY5W.js} +1 -1
- package/dist/{layers.BsEw_gIa.js → layers.C58aS7fz.js} +1 -1
- package/dist/{layers.Cv6S_9I-.js → layers.C6y78FJU.js} +1 -1
- package/dist/{layers.DkHHkcwB.js → layers.C70qyvzk.js} +1 -1
- package/dist/{layers.DIlNlcqo.js → layers.CATfNXhi.js} +1 -1
- package/dist/{layers.CgywpxNj.js → layers.CA_zUL9W.js} +1 -1
- package/dist/{layers.COGWYVIo.js → layers.CAgJA6Qa.js} +3 -3
- package/dist/{layers.DEpxDMdS.js → layers.CCAIDpNW.js} +1 -1
- package/dist/{layers.DBfOwxPO.js → layers.CDv5Yjph.js} +1 -1
- package/dist/{layers.BztYpZSr.js → layers.CEiVqjWg.js} +1 -1
- package/dist/{layers.BTuPozoV.js → layers.CErSQmJO.js} +1 -1
- package/dist/{layers.B7mfWigl.js → layers.CFGrrkg4.js} +1 -1
- package/dist/{layers.B2YKwjXz.js → layers.CFPLOa9Z.js} +2 -2
- package/dist/{layers.C8N13X_Z.js → layers.CGOoE6VM.js} +1 -1
- package/dist/{layers.BbPfMVtY.js → layers.CKL_6_rt.js} +1 -1
- package/dist/{layers.B2qAOIlo.js → layers.CMECNN1T.js} +1 -1
- package/dist/{layers.CVUrxvM-.js → layers.COb-XdJm.js} +3 -3
- package/dist/{layers.D8wPyzG6.js → layers.CQ00TZDt.js} +1 -1
- package/dist/{layers.DLV3QO1y.js → layers.CR3oIT7G.js} +2 -2
- package/dist/{layers.CxWefKHI.js → layers.CShbDCIv.js} +4 -4
- package/dist/{layers.D0KthgS6.js → layers.CYAbUVp0.js} +1 -1
- package/dist/{layers.Ddc-JH2d.js → layers.CYn2pT0K.js} +1 -1
- package/dist/{layers.CtQWlaO1.js → layers.CZCGJ8Ni.js} +1 -1
- package/dist/{layers.C7mlmYdC.js → layers.CZKUe0t6.js} +13 -13
- package/dist/{layers.DujvWPQs.js → layers.CZOnWo0o.js} +4 -4
- package/dist/{layers.BYSykmoC.js → layers.Cc6RhU0I.js} +1 -1
- package/dist/{layers.DFF50PT4.js → layers.Ceym3BhB.js} +1 -1
- package/dist/{layers.B_o3asJK.js → layers.Cf5TUHw8.js} +1 -1
- package/dist/{layers.DzhNjcrw.js → layers.CfmiKr53.js} +1 -1
- package/dist/{layers.CanJemCn.js → layers.CgyH4o8I.js} +1 -1
- package/dist/{layers.pWVdZ1OI.js → layers.ChUA19Br.js} +3 -3
- package/dist/{layers.NZf4E-Wg.js → layers.Cij9sWQj.js} +1 -1
- package/dist/{layers.NDz-9Ggu.js → layers.CjnQUjYf.js} +1 -1
- package/dist/{layers.Bd6kH7xt.js → layers.Ck29jSK2.js} +1 -1
- package/dist/{layers.obwBR-PL.js → layers.ClBNXWpQ.js} +1 -1
- package/dist/{layers.Be7W7XL8.js → layers.Cn-YFE78.js} +1 -1
- package/dist/{layers.BIEejIsW.js → layers.CokhXzue.js} +1 -1
- package/dist/{layers.ByrUhAUL.js → layers.Cqs6KjKk.js} +1 -1
- package/dist/{layers.D5OBgP7h.js → layers.Cr-D1l03.js} +3 -3
- package/dist/{layers.CkYHBZT_.js → layers.Cr_L4BRe.js} +1 -1
- package/dist/{layers.qT-9akPN.js → layers.CrunTjli.js} +1 -1
- package/dist/{layers.CYkqJ9mA.js → layers.Csg8R2Z8.js} +1 -1
- package/dist/{layers.GQBWZE5I.js → layers.CtR968jO.js} +3 -3
- package/dist/{layers.C2k_QfG3.js → layers.Ctt0PqRs.js} +2 -2
- package/dist/{layers.BuslMnX9.js → layers.Ctvt1hbD.js} +1 -1
- package/dist/{layers.DfsVAKCW.js → layers.CvARZAx0.js} +1 -1
- package/dist/{layers.CqVF0OGH.js → layers.CxY3L7sE.js} +1 -1
- package/dist/{layers.BqdhwtFO.js → layers.Czl2IhVO.js} +1 -1
- package/dist/{layers.CY5BDIai.js → layers.CzmQ6o1E.js} +1 -1
- package/dist/{layers.BY_J4jYD.js → layers.D-1zyyAO.js} +1 -1
- package/dist/{layers.Cn5BBMoQ.js → layers.D0IrWvZE.js} +1 -1
- package/dist/{layers.BKpRcWnp.js → layers.D1VMqj5i.js} +1 -1
- package/dist/{layers.BtjJdW-J.js → layers.D1ytTWfg.js} +5 -5
- package/dist/{layers.B6c3HMGt.js → layers.D3H72gll.js} +1 -1
- package/dist/{layers.C0Ws-fCa.js → layers.D5OCtQug.js} +1 -1
- package/dist/{layers.C4MSW5Y5.js → layers.D8C2L99i.js} +1 -1
- package/dist/{layers.mGvgS9vW.js → layers.D8mES5mx.js} +1 -1
- package/dist/{layers.BjOHqBbv.js → layers.DADHpBim.js} +1 -1
- package/dist/{layers.DptMIwKT.js → layers.DB0bcOlh.js} +1 -1
- package/dist/{layers.D9_JSxkr.js → layers.DC5TvL5J.js} +1 -1
- package/dist/{layers.My9kZFhO.js → layers.DCyQaF1b.js} +4 -4
- package/dist/{layers.Bd3FesAt.js → layers.DFHENyX0.js} +1 -1
- package/dist/{layers.CfOpBTNW.js → layers.DGoBWhCw.js} +1 -1
- package/dist/{layers.BMNubRvf.js → layers.DHB9lVV9.js} +1 -1
- package/dist/{layers.Bh3bOLvQ.js → layers.DHxim7-U.js} +3 -3
- package/dist/layers.DK1t9dPx.js +6 -0
- package/dist/{layers.B4ck5N3X.js → layers.DMrOUhcR.js} +1 -1
- package/dist/{layers.BN9FdsoO.js → layers.DO0GDFK9.js} +1 -1
- package/dist/{layers.DAxsOQEh.js → layers.DOiUCdKX.js} +1 -1
- package/dist/{layers.DIPoQibL.js → layers.DPCSMOF3.js} +1 -1
- package/dist/{layers.C92GKFB8.js → layers.DPP1FZia.js} +1 -1
- package/dist/{layers.ChP80TqX.js → layers.DRxBoxS7.js} +1 -1
- package/dist/{layers.BwDyCg1e.js → layers.DT-AfTbU.js} +1 -1
- package/dist/{layers.DagwUHWb.js → layers.DT54J0EG.js} +1 -1
- package/dist/{layers.Df5vGs9k.js → layers.DVC9G5XA.js} +4 -4
- package/dist/{layers.mBB8ss0I.js → layers.DVDu2Hy-.js} +1 -1
- package/dist/{layers.BjMl2wQQ.js → layers.DVKgjX3S.js} +1 -1
- package/dist/{layers.s4n1roZI.js → layers.DWe6w0CQ.js} +1 -1
- package/dist/{layers.DosSADRb.js → layers.DXhtXiMk.js} +3 -3
- package/dist/{layers.BbH61zxx.js → layers.D_twbwQ7.js} +1 -1
- package/dist/{layers.DeTIo1zr.js → layers.DbtLfb3K.js} +1 -1
- package/dist/{layers.D5g62wy8.js → layers.Dcvt7f40.js} +1 -1
- package/dist/{layers.Bze40RCj.js → layers.Dd95Iz16.js} +1 -1
- package/dist/{layers.Bw8iToJZ.js → layers.De_bV_fV.js} +1 -1
- package/dist/{layers.BTzUbI88.js → layers.DfAyC2uT.js} +1 -1
- package/dist/{layers.kZlGqXlo.js → layers.DfOOqh5T.js} +1 -1
- package/dist/{layers.DmSHn1Q-.js → layers.Dg5dryzS.js} +1 -1
- package/dist/{layers.DTagsNpb.js → layers.DisKklEr.js} +1 -1
- package/dist/{layers.CMFoKFfW.js → layers.DkUJYnRy.js} +219 -216
- package/dist/{layers.BiyAv8aG.js → layers.Dkph4c7h.js} +1 -1
- package/dist/{layers.Bi_FdRT_.js → layers.DmF7N3pi.js} +1 -1
- package/dist/{layers.D6CpOfiQ.js → layers.DpsZUQ80.js} +1 -1
- package/dist/{layers.BcdMFEfM.js → layers.Ds69AnCb.js} +1 -1
- package/dist/{layers.B_VEfl-c.js → layers.DsZkvwsU.js} +1 -1
- package/dist/{layers.BTeJHhdu.js → layers.Dt-S75Ox.js} +1 -1
- package/dist/{layers.zi2jGsFZ.js → layers.DtsF_nCW.js} +1 -1
- package/dist/{layers.DxqWMo04.js → layers.DucL0RCr.js} +1 -1
- package/dist/{layers.BlEI10xV.js → layers.DuoNdp9y.js} +1 -1
- package/dist/{layers.D9Tic5tu.js → layers.DuxTOG9t.js} +1 -1
- package/dist/{layers.C8d3D9Lb.js → layers.Dvm-J984.js} +1 -1
- package/dist/{layers.BNk35KKQ.js → layers.DxU_jeNq.js} +1 -1
- package/dist/{layers.Bsoxckn8.js → layers.DxWCY8SM.js} +2 -2
- package/dist/{layers.BtVBENDV.js → layers.Dyf-DYhQ.js} +2 -2
- package/dist/{layers.C2FJqDkI.js → layers.Dz4PxOgQ.js} +1 -1
- package/dist/{layers.EtcHUsqn.js → layers.EahmzLfG.js} +1 -1
- package/dist/{layers.LvEP7msO.js → layers.F0HBs33e.js} +6 -6
- package/dist/{layers.BIHazuDa.js → layers.N_e5sfVP.js} +3 -3
- package/dist/{layers.CJF69bGz.js → layers.Q-5uyiDW.js} +1 -1
- package/dist/{layers.DlaPU6IV.js → layers.QWMGnHxc.js} +1 -1
- package/dist/{layers.C_X4Kdn2.js → layers.QqQBhKZO.js} +1 -1
- package/dist/{layers.nFOcuDzr.js → layers.RKfu4wkV.js} +1 -1
- package/dist/{layers.DS_qYTUu.js → layers.RRSw8GnB.js} +1 -1
- package/dist/{layers.Bwkdf-_V.js → layers.Rn3w3hMt.js} +1 -1
- package/dist/{layers.2T1xhom9.js → layers.TyHWCvSy.js} +1 -1
- package/dist/{layers.DOZaSqiR.js → layers.UQOxK0EH.js} +1 -1
- package/dist/{layers.Cnp_kKHs.js → layers.VSPO-uCN.js} +1 -1
- package/dist/{layers.B2yHR68Q.js → layers.Y8Bih-oD.js} +1 -1
- package/dist/{layers.DMqa4UuA.js → layers.ZIrE1xHK.js} +3 -3
- package/dist/{layers.D01DTzLv.js → layers._NygEX5H.js} +1 -1
- package/dist/{layers.Bex4q159.js → layers._m34yMTS.js} +1 -1
- package/dist/{layers.C8ZWzhQl.js → layers._wfjBd-I.js} +1 -1
- package/dist/{layers.C3DvXqUP.js → layers.aMwoWE-r.js} +1 -1
- package/dist/{layers.BRzgC6KB.js → layers.eC26Stw_.js} +1 -1
- package/dist/{layers.XMCRkU_N.js → layers.eQyQ9vDK.js} +1 -1
- package/dist/{layers.CmxS83Nk.js → layers.fzLrCTIG.js} +4 -4
- package/dist/{layers.D1wXYOhT.js → layers.gbPaWq3Q.js} +2 -2
- package/dist/{layers.D3nu7CUH.js → layers.ircVZs2L.js} +1 -1
- package/dist/{layers.Dx95JHIq.js → layers.l47frdIZ.js} +1 -1
- package/dist/{layers.dyig4B3u.js → layers.lEgkbKyf.js} +7 -7
- package/dist/{layers.B3I1RQ68.js → layers.nMTQ2qM5.js} +8 -8
- package/dist/{layers.DxYMwPJD.js → layers.nVGlwQnk.js} +1 -1
- package/dist/{layers.D5VfbQu6.js → layers.nWPTxqR8.js} +1 -1
- package/dist/{layers.Bxp23eQH.js → layers.rVfizlFK.js} +1 -1
- package/dist/{layers.B6rDUX-b.js → layers.uD1x941k.js} +1 -1
- package/dist/{layers.B3z0mDcg.js → layers.uKAohr9e.js} +1 -1
- package/dist/{layers.DtdLS6Dk.js → layers.wGjual7g.js} +1 -1
- package/dist/{layers.CickKalz.js → layers.yixGMdd_.js} +1 -1
- package/dist/layers.ykIGeAlw.js +8 -0
- package/dist/{layers.6sikPcq3.js → layers.zgRMCG_9.js} +1 -1
- package/dist/{layers.Caliy2g7.js → layers.zu7OeNvZ.js} +1 -1
- package/package.json +1 -1
- package/dist/layers.CQJnLKvH.js +0 -8
- package/dist/layers.DEjsgTOR.js +0 -6
- package/dist/layers.DWkC7jVJ.js +0 -1
- package/dist/layers.X8-JMNQm.js +0 -1
|
@@ -4,14 +4,14 @@ var le = (e, n, t) => Jk(e, typeof n != "symbol" ? n + "" : n, t);
|
|
|
4
4
|
import "@mantine/dropzone";
|
|
5
5
|
import { $getNodeByKey as qe, $isTextNode as $r, $isTabNode as CA, $createTabNode as Xk, $applyNodeReplacement as rr, $createLineBreakNode as vm, ElementNode as An, $getSelection as oe, $isRangeSelection as de, $isRootOrShadowRoot as ys, $isElementNode as Fe, $isLeafNode as wA, $createParagraphNode as De, $isParagraphNode as Nn, $createTextNode as oo, TextNode as Ti, createCommand as ht, COMMAND_PRIORITY_LOW as Le, INSERT_PARAGRAPH_COMMAND as Us, $isLineBreakNode as Vk, $createRangeSelection as El, $setSelection as Nt, $getRoot as Et, $createNodeSelection as _k, $getNearestNodeFromDOMNode as Oe, TEXT_TYPE_TO_FORMAT as qk, $normalizeSelection__EXPERIMENTAL as $k, isCurrentlyReadOnlyMode as eT, $createPoint as Sm, $getEditor as yA, SELECTION_CHANGE_COMMAND as Xr, KEY_ARROW_DOWN_COMMAND as Pd, COMMAND_PRIORITY_HIGH as Gr, KEY_ARROW_UP_COMMAND as Fd, KEY_ARROW_LEFT_COMMAND as vA, KEY_ARROW_RIGHT_COMMAND as SA, DELETE_WORD_COMMAND as tT, DELETE_LINE_COMMAND as Em, DELETE_CHARACTER_COMMAND as zd, COMMAND_PRIORITY_CRITICAL as cn, KEY_BACKSPACE_COMMAND as kl, KEY_DELETE_COMMAND as Ud, CUT_COMMAND as EA, FORMAT_TEXT_COMMAND as Ht, FORMAT_ELEMENT_COMMAND as Si, CONTROLLED_TEXT_INSERTION_COMMAND as kA, KEY_TAB_COMMAND as TA, FOCUS_COMMAND as Ks, SELECTION_INSERT_CLIPBOARD_NODES_COMMAND as nT, $getPreviousSelection as rT, $createRangeSelectionFromDom as oT, $isDecoratorNode as iT, setDOMUnmanaged as sT, DecoratorNode as zi, CLICK_COMMAND as Tl, COMMAND_PRIORITY_NORMAL as br, createEditor as xA, $isNodeSelection as xl, $copyNode as km, $isRootNode as Hu, ParagraphNode as Kd, UNDO_COMMAND as MA, REDO_COMMAND as Wd, CLEAR_HISTORY_COMMAND as aT, COMMAND_PRIORITY_EDITOR as Ir, HISTORIC_TAG as lT, COLLABORATION_TAG as cT, CLEAR_EDITOR_COMMAND as uT, getNearestEditorFromDOMNode as LA, COPY_COMMAND as Hd, DRAGOVER_COMMAND as dT, KEY_DOWN_COMMAND as Ui, $selectAll as fT, INDENT_CONTENT_COMMAND as Yd, RootNode as hT, KEY_ESCAPE_COMMAND as DA, isModifierMatch as xt, OUTDENT_CONTENT_COMMAND as IA, PASTE_COMMAND as jd, CAN_UNDO_COMMAND as gT, CAN_REDO_COMMAND as mT, KEY_MODIFIER_COMMAND as pT, HISTORY_MERGE_TAG as NA, KEY_SPACE_COMMAND as AT, INSERT_LINE_BREAK_COMMAND as bT, BLUR_COMMAND as BA, $insertNodes as Zd, KEY_ENTER_COMMAND as CT, DROP_COMMAND as wT } from "lexical";
|
|
6
6
|
import { jsxs as Z, jsx as h, Fragment as Qe } from "react/jsx-runtime";
|
|
7
|
-
import RA, { useRef as Te, useCallback as Ke, useState as J, useEffect as _, forwardRef as OA, createElement as Yu, useMemo as kt, useContext as
|
|
7
|
+
import RA, { useRef as Te, useCallback as Ke, useState as J, useEffect as _, forwardRef as OA, createElement as Yu, useMemo as kt, useContext as et, createContext as $o, memo as yT, lazy as Ml, Suspense as Ll, PureComponent as vT } from "react";
|
|
8
8
|
import { initReactI18next as ST, useTranslation as lt, I18nextProvider as ET } from "react-i18next";
|
|
9
9
|
import { $generateHtmlFromNodes as Tm, $generateNodesFromDOM as Gd } from "@lexical/html";
|
|
10
10
|
import { LexicalCollaboration as kT } from "@lexical/react/LexicalCollaborationContext";
|
|
11
11
|
import { CollaborationPlugin as TT } from "@lexical/react/LexicalCollaborationPlugin";
|
|
12
12
|
import { LexicalComposer as xT } from "@lexical/react/LexicalComposer";
|
|
13
13
|
import { createEmptyHistoryState as MT, HistoryPlugin as PA } from "@lexical/react/LexicalHistoryPlugin";
|
|
14
|
-
import { useCombobox as LT, Combobox as zo, InputBase as DT, Group as Me, ActionIcon as It, Menu as me, Button as hr, Text as He, Tooltip as
|
|
14
|
+
import { useCombobox as LT, Combobox as zo, InputBase as DT, Group as Me, ActionIcon as It, Menu as me, Button as hr, Text as He, Tooltip as ut, Flex as ei, UnstyledButton as IT, Loader as FA, Progress as NT, Box as Kn, Anchor as Qd, Image as Ao, Popover as Vr, Stack as Ni, TextInput as BT, Center as RT, alpha as zA, Modal as OT, Table as $n, Checkbox as Er, Divider as Jd, List as St, Title as PT, Portal as Xd, HoverCard as mu, rem as Qt, Transition as yi, Paper as FT, CopyButton as zT, Input as Vd, LoadingOverlay as UT } from "@mantine/core";
|
|
15
15
|
import * as _d from "yjs";
|
|
16
16
|
import { Doc as KT } from "yjs";
|
|
17
17
|
import WT from "i18next";
|
|
@@ -713,7 +713,7 @@ class Pb extends Nb {
|
|
|
713
713
|
this.shouldConnect = !0, !this.wsconnected && this.ws === null && (Ob(this), this.connectBc());
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
const SL = "0.7.
|
|
716
|
+
const SL = "0.7.28", EL = {
|
|
717
717
|
version: SL
|
|
718
718
|
}, kL = /* @__PURE__ */ JSON.parse(`{"placeholder":"Write something, or press '/' for commands...","heading":{"h1":"Heading 1","h2":"Heading 2","h3":"Heading 3","name":"Heading"},"close":"Close","upload":"Upload","unsavedChanges":{"title":"Unsaved changes","message":"Are you sure you want to close the page? All unsaved data will be lost.","cancel":"Cancel","closeWithoutSaving":"Close without saving"},"menu":{"heading":{"title":"Headings","hintShowCase":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","h1":{"subtitle":"Large Heading","hintDescription":"H1 is used to create the main heading of a page or section, which sets the overall theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header1":"header1","headerOne":"headerone","h1":"h1"}},"h2":{"subtitle":"Medium Heading","hintDescription":"H2 is used to create a secondary heading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header2":"header2","headerTwo":"headertwo","h2":"h2"}},"h3":{"subtitle":"Small Heading","hintDescription":"H3 is used to create a subheading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header3":"header3","headerThree":"headerthree","h3":"h3"}}},"lists":{"title":"Lists","numberList":{"name":"Numbered List","subtitle":"A simple numbered list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically numbered when new rows are added."}},"bulletList":{"name":"Bulleted List","subtitle":"Automatically marked list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically marked with bullets when new rows are added."}},"checkList":{"name":"Checklist","subtitle":"Easy task management","hint":{"indeterminate":"Indeterminate","unchecked":"Unchecked","checked":"Checked","description":"Creates a task list with the ability to mark completed items and sub-items."}}},"main":{"title":"Basics","paragraph":{"name":"Paragraph","subtitle":"Simply start typing regular text","hint":{"text":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A few lines of text, left-aligned, imitating a text block."}},"quote":{"name":"Quote","subtitle":"Write down a quote","hint":{"text":"/quote Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster. Stay focused, stay aligned, and achieve more with Layers.","description":"Used to insert quotes or highlight important text blocks. It is visually separated from the main text."}},"collapse":{"name":"Collapsible","subtitle":"Hide block content","hint":{"firstItemEmpty":"First item is empty","secondItem":"Second item","firstSubItemEmpty":"First sub-item is empty","secondSubItem":"Second sub-item","firstSubSubItemEmpty":"First sub-sub-item is empty","secondSubSubItem":"Second sub-sub-item","description":"Used to create blocks with content that can be hidden or shown when clicked. Almost any other block can be placed inside such a list."}},"horizontal-rule":{"name":"Divider","subtitle":"Visualizes block dividers","hint":{"topText":"Pressed the slash. Then entered something...","bottomText":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","description":"Used to visually separate sections or blocks of text on a page."}},"table":{"name":"Table","subtitle":"Add a simple table to your page","hint":{"firstRow":"First cell filled with text","secondRow":"And another cell with text","description":"A tool for creating tables with multiple rows and columns to organize data."}},"grid":{"name":"Grid","subtitle":"Up to 4 columns of blocks","hint":{"firstColumn":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","secondColumn":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A tool for dividing a document into multiple columns, into which any blocks can be placed."}},"code":{"name":"Code","subtitle":"Write a code snippet","copy":"Copy code","exitCommandText":"Shift + Enter to exit code block","languageSearchPlaceholder":"Search for a language...","collapsible":{"hidden":"Collapse code","expand":"Expand code"},"hint":{"description":"A tool for inserting code snippets with syntax highlighting."}},"callout":{"name":"Callout","subtitle":"Make writing stand out","hint":{"description":"-."}}},"callout":{"title":"Callout","default":{"name":"Default","hint":{"description":"A few lines of text aligned to the left, simulating a text block.","body":"/callout Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster."},"keywords":{"callout":"callout","type":"default"},"subtitle":"Default callout"},"success":{"name":"Success","subtitle":"Successful notification","keywords":{"callout":"callout","type":"success"}},"warning":{"name":"Warning","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"warning"},"subtitle":"Important notification"},"alert":{"name":"Alert","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"alert"},"subtitle":"Critical notification"}},"media":{"title":"Media","photo":{"name":"Image","hint":{"description":"A tool for adding an image to a page."},"subtitle":"Upload and place via link"},"form":{"name":"Form","subtitle":"Add a form"},"video":{"name":"Video","hint":{"description":"A tool for embedding video on a page."},"subtitle":"Add a video"},"file":{"name":"File","hint":{"description":"Upload any files up to 500 MB in size, and they will be available for download to anyone you share the link to this page with."},"subtitle":"Add a file"},"audio":{"name":"Audio","hint":{"description":"Upload any audio files up to 5 MB in size, and they will be available for download and listening to anyone you share the link to this page with."},"subtitle":"Add a audio"},"excalidraw":{"name":"Paint","hint":{"description":"Draw any scheme or kind landscape. Free creativity where everything is in your hands."},"keywords":{"video":"draw"},"subtitle":"Work with vector graphics","tools":{"frameTool":"Frame tool","webEmbed":"Web Embed","generate":"Generate"}}},"other":{"title":"Other","documents":{"empty":"You have no nested documents","loading":"Loading documents...","name":"Nested Documents","subtitle":"Displays a list of nested documents"},"emoji":{"name":"Emoji","subtitle":"Add emoji"}},"integrations":{"title":"Integrations"}},"toolbar":{"turnInto":"Turn into","bold":"Bold","italic":"Italic","underline":"Underline","strike":"Strikethrough","superscript":"Superscript","subscript":"Subscript","align":"Alignment","left":"Align Left","center":"Align Center","right":"Align Right","justify":"Justify","indent":"Indent","outdent":"Outdent","color":"Color","code":"Code","link":"Add Link","clear":"Clear Formatting","comment":"Comment"},"link":{"linkName":"Link name","link":"Link","name":"Name","save":"Save","remove":"Remove","edit":"Edit","copy":"Copy","type":{"web":"Web link","phone":"Phone number","email":"Email address","sms":"SMS message"}},"contextMenu":{"copy":"Copy","cut":"Cut","paste":"Paste","delete":"Delete","add":"Add","selectAll":"Select All","duplicate":"Duplicate","appearance":"Appearance"},"colors":{"lastTimeUsed":"Last Used","color":"Color","background":"Background","theme":"Theme","colors":{"standard":"Standard","gray":"Gray","brown":"Brown","orange":"Orange","yellow":"Yellow","green":"Green","blue":"Blue","purple":"Purple","pink":"Pink","red":"Red"},"callout":{"success":"Success","alert":"Alert","warning":"Warning"}},"video":{"insert":"Embed","apply":"Apply","worksWith":"Works with","add_video":"Add Video","source":{"embedLink":"Embed link","uploadVideo":"Upload video"},"link":{"placeholder":"Paste the video link...","save":"Save","invalid":"Enter a valid video link."},"upload":{"title":"Upload video","processed":"Video uploaded. {{percent}}% processed.","dragDrop":"Drag & drop a video or","chooseFile":"choose a file","toUpload":"to upload","maxSize":"Maximum file size: {{size}}. Supported formats: MP4, WebM, OGG.","otherFormats":"(Other formats will be converted automatically)"},"actions":{"pause":"Pause","resume":"Resume","cancel":"Cancel","retry":"Retry","selectAnotherFile":"Select another file"},"errors":{"uploadFailed":"Upload failed","sizeLimit":"Your file surpasses the size limit of {{size}}","format":"This video format isn't supported and can't be converted.","formatHint":"Please upload a video in MP4, WebM, or OGG format.","interrupted":"Upload interrupted. Check your connection.","offsetMismatch":"Upload synchronization error. The upload will be retried automatically.","stall":"Upload appears to be stalled. Please check your connection and try again.","unknown":"An error occurred during upload."},"transcoding":{"title":"Transcoding video","analysis":"Analysis","conversion":"Conversion"},"player":{"play":"Play","pause":"Pause","mute":"Mute","unmute":"Unmute","volume":"Volume","settings":"Settings","pictureInPicture":"Picture in picture","enterFullscreen":"Enter fullscreen","exitFullscreen":"Exit fullscreen","playbackError":"Playback error: code {{code}}. Try refreshing the page."},"settings":{"subtitlesCc":"Subtitles/CC","speed":"Speed","quality":"Quality","normal":"Normal","auto":"Auto","off":"Off"},"settingsModal":{"title":"Video settings","cover":"Cover","uploadFile":"Upload file","cropCoverImage":"Crop cover image","subtitles":"Subtitles","enableAutoSubtitles":"Enable auto-generated subtitles","uploadSubtitlesManually":"Upload subtitles manually","subtitlesFormatHint":"Upload subtitles in .SRT or .VTT format.","successfullyLoaded":"Successfully loaded","addSubtitleTrack":"Add a subtitle track","selectLanguage":"Select language","defaultLabel":"Default","setDefaultSubtitle":"Set as default","downloadVtt":"Download VTT","deleteSubtitle":"Delete","uploadError":"Upload failed","chapters":"Chapters","disableChapters":"Disable chapters","enableAutoChapters":"Enable auto-generated chapters","chaptersPlaceholder":"00:00 Intro\\n01:23 Demo\\n05:10 Summary","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Chapter name","chaptersInvalidTimeRange":"Invalid chapter time range","addChapter":"Add chapter","deleteChapter":"Delete","saveChapters":"Save chapters","suggestChapters":"Suggest auto","refreshChapters":"Refresh","emptyChapters":"No chapters yet","chaptersError":"Failed to load chapters","transcript":"Transcript","enableAutoTranscript":"Enable auto-generated transcript","uploadTranscriptManually":"Upload transcript manually","setCover":"Set as cover","emptyCovers":"No cover previews yet","loadError":"Failed to load cover previews","retry":"Retry","cancel":"Cancel","save":"Save"},"delete":"Delete"},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Add Swagger"},"image":{"add_photo":"Add Image","preview":"Preview"},"file":{"add_file":"Add File"},"audio":{"add_audio":"Add Audio"},"mention":{"mark":"Mark someone"},"validation":{"link":"Invalid Link","shouldNotExceed":"File size should not exceed {{maxSize}} MB.","doNotUploadMoreThanSingleFile":"Please upload no more than one file.","swaggerUnavailable":"Swagger documentation is unavailable. Please make sure the URL is correct and the server is responding."},"table":{"background_one":"Cell Background Color","background_other":"Cells background color","settings":"Settings","menu":{"addColAfter":"Add Column Right","addColBefore":"Add Column Left","addRowAbove":"Add Row Above","addRowBelow":"Add Row Below","deleteCol":"Delete Column","deleteRow":"Delete Row","mergeCells":"Merge Cells","disconnectCells":"Disconnect Cells","splitCell":"Split Cell","deleteTable":"Delete Table","insertRow_one":"Insert row","insertRow_other":"Insert {{count}} rows","deleteRow_one":"Delete row","deleteRow_other":"Delete {{count}} rows","insertCol_one":"Insert column","insertCol_other":"Insert {{count}} columns","deleteCol_one":"Delete column","deleteCol_other":"Delete {{count}} columns","headTable_col":"{{value}} row column","headTable_row":"{{value}} row header","below":"Below","above":"Above","left":"Left","right":"Right","row":"Row","rows":"Rows","column":"Column","columns":"Columns"}},"column":{"name":"Insert Grid","insert":"Insert","columns":"Columns","addRight":"Add a column to the right","addLeft":"Add a column to the left","moveLeft":"Move a column to the left","changeColor":"Change the column color","moveRight":"Move a column to the right","deleteColumn":"Delete a column"},"hoverOptions":{"addNewBlockBelow":"Add block below","addNewBlockAbove":"Add block above","drag":"Drag","click":"Click","clickAction":"To open the menu","dragAction":"To move"},"embed":{"placeholder":"Enter a valid embed URL","insert":"Embed","addEmbed":"Add Embed"},"content":"Content","emoji":{"emojis":"Emoji","icons":"Icons","search":"Search","searchResults":"Search result","searchNoResults":"Emoji not found","remove":"Remove","emojiCategory":{"frequent":"Frequently used","people":"Emotions and people","nature":"Animals and nature","foods":"Food and drinks","activity":"Activities","places":"Travel and Places","objects":"Items","symbols":"Symbols","flags":"Flags"}},"form":{"url":"Enter a valid URL."},"noTitle":"No title","gallery":{"download":"Download","close":"Close","errorFile":"Failed to download file"},"emptyPageOptions":{"heading":"A Heading that will automatically generate an interactive table of contents","grid":"The grid will help structure the page horizontally","template":"Create from Template","list":"Numbered list, for easy outlining of the meeting","code":"Code block with syntax support","callout":"Callout for highlighting","table":"Table, to find dependencies in the data","integrations":"Many integrations from third-party services"},"composer":{"discardCommentTitle":"Close without saving?","discardCommentDescription":"Your entered content will be lost.","discardConfirm":"Close","cancel":"Continue","replaceComment":{"title":"Comment already exists","description":"You have selected text that already contains a comment.\\nThe previous comment will be removed.","confirm":"Replace","cancel":"Cancel"},"uploadErrors":{"fileTooLarge":"The file is too large — the maximum size is 5 MB.","tooManyFiles":"You cannot upload more than 10 files."},"placeholder":"Add comment"},"ai":{"placeholder":"Custom prompt","copied":"copied","copy":"copy","back":"Back","menu":{"style":{"professional":"Professional","straightforward":"Straightforward","passiveAggressive":"Passive-aggressive","friendly":"Friendly","poetic":"Poetic","passive_aggressive":"Passive aggressive","pirate":"Pirate"},"main":{"modifySelection":"Modify selection","improveWriting":"Improve writing","fixMistakes":"Fix mistakes","simplify":"Simplify","addMoreDetail":"Add more detail","generate":"Generate","summarise":"Summarise","translate":"Translate into...","changeStyle":"Change style to...","explain":"Explain"},"answer":{"replaceSelection":"Replace selection","addTextInline":"Add text inline","addBelowParagraph":"Add below paragraph","modifyFurther":"Modify further","continueWriting":"Continue writing","regenerate":"Regenerate","otherOptions":"Other options","discard":"Discard"},"languages":{"arabic":"Arabic","bengali":"Bengali","chinese":"Chinese","dutch":"Dutch","english":"English","french":"French","german":"German","hindi":"Hindi","japanese":"Japanese","korean":"Korean","nepali":"Nepali","portuguese":"Portuguese","spanish":"Spanish"}}},"actions":{"delete":"Delete","align":"Alignment"},"cancel":"Cancel"}`), TL = {
|
|
719
719
|
editor: kL
|
|
@@ -1172,7 +1172,7 @@ const ms = {
|
|
|
1172
1172
|
...vx
|
|
1173
1173
|
};
|
|
1174
1174
|
function QL({ editor: e, headerKey: n }) {
|
|
1175
|
-
const { t } = lt(), { disable: r } =
|
|
1175
|
+
const { t } = lt(), { disable: r } = et(ct), [o, s] = J(!1), [l, c] = J(""), [d, f] = J(!1), g = Object.entries(
|
|
1176
1176
|
ms
|
|
1177
1177
|
).map(([b, k]) => ({ value: b, label: k })), m = () => {
|
|
1178
1178
|
const b = qe(n);
|
|
@@ -1272,9 +1272,9 @@ function QL({ editor: e, headerKey: n }) {
|
|
|
1272
1272
|
),
|
|
1273
1273
|
!r && /* @__PURE__ */ Z("div", { className: "code-block-header-menu__main", children: [
|
|
1274
1274
|
/* @__PURE__ */ Z("div", { className: "code-block-header-menu__actions", children: [
|
|
1275
|
-
/* @__PURE__ */ h(
|
|
1275
|
+
/* @__PURE__ */ h(ut, { label: t("editor.menu.main.code.exitCommandText"), children: /* @__PURE__ */ h(He, { size: "xs", c: "dimmed", children: "(Shift+Enter)" }) }),
|
|
1276
1276
|
d && /* @__PURE__ */ h(
|
|
1277
|
-
|
|
1277
|
+
ut,
|
|
1278
1278
|
{
|
|
1279
1279
|
label: t(o ? "editor.menu.main.code.collapsible.expand" : "editor.menu.main.code.collapsible.hidden"),
|
|
1280
1280
|
children: /* @__PURE__ */ h(
|
|
@@ -1298,8 +1298,8 @@ function QL({ editor: e, headerKey: n }) {
|
|
|
1298
1298
|
)
|
|
1299
1299
|
}
|
|
1300
1300
|
),
|
|
1301
|
-
/* @__PURE__ */ h(
|
|
1302
|
-
/* @__PURE__ */ h(
|
|
1301
|
+
/* @__PURE__ */ h(ut, { label: t("editor.menu.main.code.copy"), children: /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(ZL, { copyToClipboard: y }) }) }),
|
|
1302
|
+
/* @__PURE__ */ h(ut, { label: t("editor.actions.delete"), children: /* @__PURE__ */ h(
|
|
1303
1303
|
It,
|
|
1304
1304
|
{
|
|
1305
1305
|
variant: "default",
|
|
@@ -1573,7 +1573,7 @@ const qu = (e = "plain") => () => {
|
|
|
1573
1573
|
function $u(e) {
|
|
1574
1574
|
let n = 1, t = e.getParent();
|
|
1575
1575
|
for (; t != null; ) {
|
|
1576
|
-
if (
|
|
1576
|
+
if (rt(t)) {
|
|
1577
1577
|
const r = t.getParent();
|
|
1578
1578
|
if (Pe(r)) {
|
|
1579
1579
|
n++, t = r.getParent();
|
|
@@ -1595,7 +1595,7 @@ function ed(e) {
|
|
|
1595
1595
|
}
|
|
1596
1596
|
function Yb(e) {
|
|
1597
1597
|
let n = [];
|
|
1598
|
-
const t = e.getChildren().filter(
|
|
1598
|
+
const t = e.getChildren().filter(rt);
|
|
1599
1599
|
for (let r = 0; r < t.length; r++) {
|
|
1600
1600
|
const o = t[r], s = o.getFirstChild();
|
|
1601
1601
|
Pe(s) ? n = n.concat(Yb(s)) : n.push(o);
|
|
@@ -1603,13 +1603,13 @@ function Yb(e) {
|
|
|
1603
1603
|
return n;
|
|
1604
1604
|
}
|
|
1605
1605
|
function Mr(e) {
|
|
1606
|
-
return
|
|
1606
|
+
return rt(e) && Pe(e.getFirstChild());
|
|
1607
1607
|
}
|
|
1608
1608
|
function qL(e) {
|
|
1609
1609
|
let n = e;
|
|
1610
1610
|
for (; n.getNextSibling() == null && n.getPreviousSibling() == null; ) {
|
|
1611
1611
|
const t = n.getParent();
|
|
1612
|
-
if (t == null || !(
|
|
1612
|
+
if (t == null || !(rt(n) || Pe(n)))
|
|
1613
1613
|
break;
|
|
1614
1614
|
n = t;
|
|
1615
1615
|
}
|
|
@@ -1619,7 +1619,7 @@ function Zm(e) {
|
|
|
1619
1619
|
return bn().append(e);
|
|
1620
1620
|
}
|
|
1621
1621
|
function jb(e, n) {
|
|
1622
|
-
return
|
|
1622
|
+
return rt(e) && (n.length === 0 || n.length === 1 && e.is(n[0]) && e.getChildrenSize() === 0);
|
|
1623
1623
|
}
|
|
1624
1624
|
function td(e, n) {
|
|
1625
1625
|
e.update(() => {
|
|
@@ -1639,7 +1639,7 @@ function td(e, n) {
|
|
|
1639
1639
|
c.replace(f);
|
|
1640
1640
|
const g = bn();
|
|
1641
1641
|
Fe(c) && (g.setFormat(c.getFormatType()), g.setIndent(c.getIndent())), f.append(g);
|
|
1642
|
-
} else if (
|
|
1642
|
+
} else if (rt(c)) {
|
|
1643
1643
|
const g = c.getParentOrThrow();
|
|
1644
1644
|
Xo(f, g.getChildren()), g.replace(f);
|
|
1645
1645
|
}
|
|
@@ -1649,7 +1649,7 @@ function td(e, n) {
|
|
|
1649
1649
|
const o = /* @__PURE__ */ new Set();
|
|
1650
1650
|
for (let s = 0; s < r.length; s++) {
|
|
1651
1651
|
const l = r[s];
|
|
1652
|
-
if (Fe(l) && l.isEmpty() && !
|
|
1652
|
+
if (Fe(l) && l.isEmpty() && !rt(l) && !o.has(l.getKey())) {
|
|
1653
1653
|
Gm(l, n);
|
|
1654
1654
|
continue;
|
|
1655
1655
|
}
|
|
@@ -1745,7 +1745,7 @@ function tD(e) {
|
|
|
1745
1745
|
const n = e.getListType() !== "check";
|
|
1746
1746
|
let t = e.getStart();
|
|
1747
1747
|
for (const r of e.getChildren())
|
|
1748
|
-
|
|
1748
|
+
rt(r) && (r.getValue() !== t && r.setValue(t), n && r.getLatest().__checked != null && r.setChecked(void 0), Pe(r.getFirstChild()) || t++);
|
|
1749
1749
|
}
|
|
1750
1750
|
function nD(e) {
|
|
1751
1751
|
const n = e.getNextSibling();
|
|
@@ -1784,7 +1784,7 @@ function oD(e) {
|
|
|
1784
1784
|
if (Mr(e))
|
|
1785
1785
|
return;
|
|
1786
1786
|
const n = e.getParent(), t = n ? n.getParent() : void 0, r = t ? t.getParent() : void 0;
|
|
1787
|
-
if (Pe(r) &&
|
|
1787
|
+
if (Pe(r) && rt(t) && Pe(n)) {
|
|
1788
1788
|
const o = n ? n.getFirstChild() : void 0, s = n ? n.getLastChild() : void 0;
|
|
1789
1789
|
if (e.is(o))
|
|
1790
1790
|
t.insertBefore(e), n.isEmpty() && t.remove();
|
|
@@ -1803,7 +1803,7 @@ function iD() {
|
|
|
1803
1803
|
if (!de(e) || !e.isCollapsed())
|
|
1804
1804
|
return !1;
|
|
1805
1805
|
const n = e.anchor.getNode();
|
|
1806
|
-
if (!
|
|
1806
|
+
if (!rt(n) || n.getChildrenSize() !== 0)
|
|
1807
1807
|
return !1;
|
|
1808
1808
|
const t = ed(n), r = n.getParent();
|
|
1809
1809
|
ke(
|
|
@@ -1814,7 +1814,7 @@ function iD() {
|
|
|
1814
1814
|
let s;
|
|
1815
1815
|
if (ys(o))
|
|
1816
1816
|
s = De(), t.insertAfter(s);
|
|
1817
|
-
else if (
|
|
1817
|
+
else if (rt(o))
|
|
1818
1818
|
s = bn(), o.insertAfter(s);
|
|
1819
1819
|
else
|
|
1820
1820
|
return !1;
|
|
@@ -1869,7 +1869,7 @@ class en extends An {
|
|
|
1869
1869
|
}
|
|
1870
1870
|
static transform() {
|
|
1871
1871
|
return (t) => {
|
|
1872
|
-
if (ke(
|
|
1872
|
+
if (ke(rt(t), "node is not a ListItemNode"), t.__checked == null)
|
|
1873
1873
|
return;
|
|
1874
1874
|
const r = t.getParent();
|
|
1875
1875
|
Pe(r) && r.getListType() !== "check" && t.getChecked() != null && t.setChecked(void 0);
|
|
@@ -1920,7 +1920,7 @@ class en extends An {
|
|
|
1920
1920
|
return this;
|
|
1921
1921
|
}
|
|
1922
1922
|
replace(t, r) {
|
|
1923
|
-
if (
|
|
1923
|
+
if (rt(t))
|
|
1924
1924
|
return super.replace(t);
|
|
1925
1925
|
this.setIndent(0);
|
|
1926
1926
|
const o = this.getParentOrThrow();
|
|
@@ -1951,7 +1951,7 @@ class en extends An {
|
|
|
1951
1951
|
if (Pe(o) || ke(
|
|
1952
1952
|
!1,
|
|
1953
1953
|
"insertAfter: list node is not parent of list item node"
|
|
1954
|
-
),
|
|
1954
|
+
), rt(t))
|
|
1955
1955
|
return super.insertAfter(t, r);
|
|
1956
1956
|
const s = this.getNextSiblings();
|
|
1957
1957
|
if (o.insertAfter(t, r), s.length !== 0) {
|
|
@@ -1973,7 +1973,7 @@ class en extends An {
|
|
|
1973
1973
|
collapseAtStart(t) {
|
|
1974
1974
|
const r = De();
|
|
1975
1975
|
this.getChildren().forEach((d) => r.append(d));
|
|
1976
|
-
const s = this.getParentOrThrow(), l = s.getParentOrThrow(), c =
|
|
1976
|
+
const s = this.getParentOrThrow(), l = s.getParentOrThrow(), c = rt(l);
|
|
1977
1977
|
if (s.getChildrenSize() === 1)
|
|
1978
1978
|
if (c)
|
|
1979
1979
|
s.remove(), l.select();
|
|
@@ -2029,7 +2029,7 @@ class en extends An {
|
|
|
2029
2029
|
if (t === null)
|
|
2030
2030
|
return this.getLatest().__indent;
|
|
2031
2031
|
let r = t.getParentOrThrow(), o = 0;
|
|
2032
|
-
for (;
|
|
2032
|
+
for (; rt(r); )
|
|
2033
2033
|
r = r.getParentOrThrow().getParentOrThrow(), o++;
|
|
2034
2034
|
return o;
|
|
2035
2035
|
}
|
|
@@ -2042,14 +2042,14 @@ class en extends An {
|
|
|
2042
2042
|
}
|
|
2043
2043
|
/** @deprecated @internal */
|
|
2044
2044
|
canInsertAfter(t) {
|
|
2045
|
-
return
|
|
2045
|
+
return rt(t);
|
|
2046
2046
|
}
|
|
2047
2047
|
/** @deprecated @internal */
|
|
2048
2048
|
canReplaceWith(t) {
|
|
2049
|
-
return
|
|
2049
|
+
return rt(t);
|
|
2050
2050
|
}
|
|
2051
2051
|
canMergeWith(t) {
|
|
2052
|
-
return Nn(t) ||
|
|
2052
|
+
return Nn(t) || rt(t);
|
|
2053
2053
|
}
|
|
2054
2054
|
extractWithChild(t, r) {
|
|
2055
2055
|
if (!de(r))
|
|
@@ -2111,7 +2111,7 @@ function bn(e, n, t) {
|
|
|
2111
2111
|
new en(void 0, e, n, t)
|
|
2112
2112
|
);
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function rt(e) {
|
|
2115
2115
|
return e instanceof en;
|
|
2116
2116
|
}
|
|
2117
2117
|
class eo extends Ti {
|
|
@@ -2309,7 +2309,7 @@ class Yn extends An {
|
|
|
2309
2309
|
append(...t) {
|
|
2310
2310
|
for (let r = 0; r < t.length; r++) {
|
|
2311
2311
|
const o = t[r];
|
|
2312
|
-
if (
|
|
2312
|
+
if (rt(o))
|
|
2313
2313
|
super.append(o);
|
|
2314
2314
|
else {
|
|
2315
2315
|
const s = bn();
|
|
@@ -2328,7 +2328,7 @@ class Yn extends An {
|
|
|
2328
2328
|
return this;
|
|
2329
2329
|
}
|
|
2330
2330
|
extractWithChild(t) {
|
|
2331
|
-
return
|
|
2331
|
+
return rt(t);
|
|
2332
2332
|
}
|
|
2333
2333
|
}
|
|
2334
2334
|
function Xm(e, n, t) {
|
|
@@ -2353,7 +2353,7 @@ function lD(e) {
|
|
|
2353
2353
|
const n = [];
|
|
2354
2354
|
for (let t = 0; t < e.length; t++) {
|
|
2355
2355
|
const r = e[t];
|
|
2356
|
-
if (
|
|
2356
|
+
if (rt(r)) {
|
|
2357
2357
|
n.push(r);
|
|
2358
2358
|
const o = r.getChildren();
|
|
2359
2359
|
o.length > 1 && o.forEach((s) => {
|
|
@@ -2946,8 +2946,8 @@ function Qb(e) {
|
|
|
2946
2946
|
throw new Error("Expected table cell to be inside of table row.");
|
|
2947
2947
|
}
|
|
2948
2948
|
function Co(e) {
|
|
2949
|
-
const n = xe(e, (t) =>
|
|
2950
|
-
if (
|
|
2949
|
+
const n = xe(e, (t) => dt(t));
|
|
2950
|
+
if (dt(n))
|
|
2951
2951
|
return n;
|
|
2952
2952
|
throw new Error("Expected table cell to be inside of table.");
|
|
2953
2953
|
}
|
|
@@ -3318,7 +3318,7 @@ function un(e) {
|
|
|
3318
3318
|
);
|
|
3319
3319
|
const r = t.getParent();
|
|
3320
3320
|
return ke(
|
|
3321
|
-
|
|
3321
|
+
dt(r),
|
|
3322
3322
|
"Expected TableRowNode to have a parent TableNode"
|
|
3323
3323
|
), [n, t, r];
|
|
3324
3324
|
}
|
|
@@ -3479,7 +3479,7 @@ class Wl {
|
|
|
3479
3479
|
);
|
|
3480
3480
|
const c = l.getParent();
|
|
3481
3481
|
ke(
|
|
3482
|
-
|
|
3482
|
+
dt(c),
|
|
3483
3483
|
"Expected tableNode to have a parent TableNode"
|
|
3484
3484
|
);
|
|
3485
3485
|
const d = s.getParents()[1];
|
|
@@ -3592,7 +3592,7 @@ function MD(e) {
|
|
|
3592
3592
|
function Xb(e, n = yA()) {
|
|
3593
3593
|
const t = qe(e);
|
|
3594
3594
|
ke(
|
|
3595
|
-
|
|
3595
|
+
dt(t),
|
|
3596
3596
|
"TableObserver: Expected tableNodeKey %s to be a TableNode",
|
|
3597
3597
|
e
|
|
3598
3598
|
);
|
|
@@ -3788,7 +3788,7 @@ class LD {
|
|
|
3788
3788
|
const n = this.editor;
|
|
3789
3789
|
n.update(() => {
|
|
3790
3790
|
const t = qe(this.tableNodeKey);
|
|
3791
|
-
if (!
|
|
3791
|
+
if (!dt(t))
|
|
3792
3792
|
throw new Error("Expected TableNode.");
|
|
3793
3793
|
const r = oe();
|
|
3794
3794
|
at(r) || ke(!1, "Expected grid selection");
|
|
@@ -4047,7 +4047,7 @@ function ID(e, n, t, r) {
|
|
|
4047
4047
|
if (k && t.update(() => {
|
|
4048
4048
|
const I = De(), B = to(w);
|
|
4049
4049
|
I.append(B), b.forEach((D) => {
|
|
4050
|
-
if (!
|
|
4050
|
+
if (!dt(D)) return;
|
|
4051
4051
|
const M = D.getPreviousSibling(), L = D.getNextSibling();
|
|
4052
4052
|
M ? M.insertAfter(I, !0) : L && L.insertBefore(I).selectEnd(), D.remove();
|
|
4053
4053
|
}), x && (S.clear(), y.insertText(w));
|
|
@@ -4415,8 +4415,8 @@ function Fa(e) {
|
|
|
4415
4415
|
return ve(n) ? n : null;
|
|
4416
4416
|
}
|
|
4417
4417
|
function Ei(e) {
|
|
4418
|
-
const n = xe(e,
|
|
4419
|
-
return
|
|
4418
|
+
const n = xe(e, dt);
|
|
4419
|
+
return dt(n) ? n : null;
|
|
4420
4420
|
}
|
|
4421
4421
|
function ls(e, n, t, r, o) {
|
|
4422
4422
|
if ((t === "up" || t === "down") && PD(e))
|
|
@@ -4438,17 +4438,17 @@ function ls(e, n, t, r, o) {
|
|
|
4438
4438
|
if (!f)
|
|
4439
4439
|
return !1;
|
|
4440
4440
|
const g = f.getPreviousSibling();
|
|
4441
|
-
return !g || !
|
|
4441
|
+
return !g || !dt(g) ? !1 : (Qr(n), g.selectEnd(), !0);
|
|
4442
4442
|
} else if (n.shiftKey && (t === "up" || t === "down")) {
|
|
4443
4443
|
const l = s.focus.getNode();
|
|
4444
4444
|
if (!s.isCollapsed() && (t === "up" && !s.isBackward() || t === "down" && s.isBackward())) {
|
|
4445
4445
|
let d = xe(
|
|
4446
4446
|
l,
|
|
4447
|
-
(C) =>
|
|
4447
|
+
(C) => dt(C)
|
|
4448
4448
|
);
|
|
4449
4449
|
if (ve(d) && (d = xe(
|
|
4450
4450
|
d,
|
|
4451
|
-
|
|
4451
|
+
dt
|
|
4452
4452
|
)), d !== r || !d)
|
|
4453
4453
|
return !1;
|
|
4454
4454
|
const f = t === "down" ? d.getNextSibling() : d.getPreviousSibling();
|
|
@@ -4504,11 +4504,11 @@ function ls(e, n, t, r, o) {
|
|
|
4504
4504
|
);
|
|
4505
4505
|
if (ve(d) && (d = xe(
|
|
4506
4506
|
d,
|
|
4507
|
-
|
|
4507
|
+
dt
|
|
4508
4508
|
)), !d)
|
|
4509
4509
|
return !1;
|
|
4510
4510
|
const f = t === "down" ? d.getNextSibling() : d.getPreviousSibling();
|
|
4511
|
-
if (
|
|
4511
|
+
if (dt(f) && o.tableNodeKey === f.getKey()) {
|
|
4512
4512
|
const g = f.getFirstDescendant(), m = f.getLastDescendant();
|
|
4513
4513
|
if (!g || !m)
|
|
4514
4514
|
return !1;
|
|
@@ -4607,14 +4607,14 @@ function ls(e, n, t, r, o) {
|
|
|
4607
4607
|
ve
|
|
4608
4608
|
), [g] = s.getNodes();
|
|
4609
4609
|
ke(
|
|
4610
|
-
|
|
4610
|
+
dt(g),
|
|
4611
4611
|
"$handleArrowKey: TableSelection.getNodes()[0] expected to be TableNode"
|
|
4612
4612
|
);
|
|
4613
4613
|
const m = Vo(
|
|
4614
4614
|
g,
|
|
4615
4615
|
e.getElementByKey(g.getKey())
|
|
4616
4616
|
);
|
|
4617
|
-
if (!ve(d) || !ve(f) || !
|
|
4617
|
+
if (!ve(d) || !ve(f) || !dt(g) || m == null)
|
|
4618
4618
|
return !1;
|
|
4619
4619
|
o.updateTableTableSelection(s);
|
|
4620
4620
|
const A = ps(g, m), C = r.getCordsFromCellNode(d, A), w = r.getDOMCellFromCordsOrThrow(
|
|
@@ -4669,7 +4669,7 @@ function KD(e, n, t, r) {
|
|
|
4669
4669
|
if (!WD(s, l, r))
|
|
4670
4670
|
return !1;
|
|
4671
4671
|
const c = HD(n, r, t);
|
|
4672
|
-
return !c ||
|
|
4672
|
+
return !c || dt(c) ? !1 : (Qr(e), r === "backward" ? c.selectEnd() : c.selectStart(), !0);
|
|
4673
4673
|
}
|
|
4674
4674
|
function WD(e, n, t) {
|
|
4675
4675
|
const r = e[0][0], o = e[e.length - 1][e[0].length - 1], { startColumn: s, startRow: l } = n;
|
|
@@ -4683,7 +4683,7 @@ function HD(e, n, t) {
|
|
|
4683
4683
|
if (!r)
|
|
4684
4684
|
return;
|
|
4685
4685
|
const o = n === "backward" ? r.getPreviousSibling() : r.getNextSibling();
|
|
4686
|
-
return o &&
|
|
4686
|
+
return o && dt(o) ? o : n === "backward" ? t.getPreviousSibling() : t.getNextSibling();
|
|
4687
4687
|
}
|
|
4688
4688
|
function op(e, n, t) {
|
|
4689
4689
|
const r = De();
|
|
@@ -4710,9 +4710,9 @@ function ip(e, n, t) {
|
|
|
4710
4710
|
return;
|
|
4711
4711
|
const f = xe(
|
|
4712
4712
|
d,
|
|
4713
|
-
(S) =>
|
|
4713
|
+
(S) => dt(S)
|
|
4714
4714
|
);
|
|
4715
|
-
if (!
|
|
4715
|
+
if (!dt(f) || !f.is(t))
|
|
4716
4716
|
return;
|
|
4717
4717
|
const [g, m] = tr(
|
|
4718
4718
|
t,
|
|
@@ -4928,7 +4928,7 @@ function jD(e) {
|
|
|
4928
4928
|
function vf() {
|
|
4929
4929
|
return rr(new pr());
|
|
4930
4930
|
}
|
|
4931
|
-
function
|
|
4931
|
+
function dt(e) {
|
|
4932
4932
|
return e instanceof pr;
|
|
4933
4933
|
}
|
|
4934
4934
|
function ZD(e) {
|
|
@@ -5152,7 +5152,7 @@ const tC = $o([
|
|
|
5152
5152
|
}, []);
|
|
5153
5153
|
return /* @__PURE__ */ h(tC.Provider, { value: n, children: e });
|
|
5154
5154
|
}, qD = () => {
|
|
5155
|
-
const [e, n] =
|
|
5155
|
+
const [e, n] = et(tC), [t, r] = J(null);
|
|
5156
5156
|
return _(() => e((o) => {
|
|
5157
5157
|
r(o);
|
|
5158
5158
|
}), [e]), [t, n];
|
|
@@ -5262,7 +5262,7 @@ const Br = {
|
|
|
5262
5262
|
keyNode: n,
|
|
5263
5263
|
emoji: t
|
|
5264
5264
|
}) => {
|
|
5265
|
-
const { t: r } = lt(), { disable: o } =
|
|
5265
|
+
const { t: r } = lt(), { disable: o } = et(ct), s = Te(null);
|
|
5266
5266
|
return _(() => {
|
|
5267
5267
|
e.update(() => {
|
|
5268
5268
|
var d, f;
|
|
@@ -5572,7 +5572,7 @@ const cp = {
|
|
|
5572
5572
|
onAfterCancel: l,
|
|
5573
5573
|
...c
|
|
5574
5574
|
}) => {
|
|
5575
|
-
const [d] = ze(), { t: f } = lt(), { fetchUploadMedia: g, disable: m } =
|
|
5575
|
+
const [d] = ze(), { t: f } = lt(), { fetchUploadMedia: g, disable: m } = et(ct), A = o ? ((g == null ? void 0 : g.length) ?? 0) >= 5 : !1, C = () => {
|
|
5576
5576
|
d.update(() => {
|
|
5577
5577
|
const y = qe(s);
|
|
5578
5578
|
y && y.remove();
|
|
@@ -5651,11 +5651,11 @@ const cp = {
|
|
|
5651
5651
|
fallback: /* @__PURE__ */ h(ks, { size: "1em" })
|
|
5652
5652
|
}
|
|
5653
5653
|
) : /* @__PURE__ */ h(ZT, { item: { ...e, type: "PAGE" } }) }),
|
|
5654
|
-
/* @__PURE__ */ h(
|
|
5654
|
+
/* @__PURE__ */ h(ut, { label: e.title, disabled: !e.title, openDelay: 400, children: /* @__PURE__ */ h(He, { truncate: !0, className: Su.title, "data-empty": !e.title, children: e.title || n("editor.noTitle") }) })
|
|
5655
5655
|
] });
|
|
5656
5656
|
}, uI = yT, dI = uI(cI), fI = ({ page: e }) => /* @__PURE__ */ h("div", { className: "docs-item", children: /* @__PURE__ */ h(dI, { page: e }) });
|
|
5657
5657
|
function hI({ nodeKey: e }) {
|
|
5658
|
-
const { pages: n, childPagesLoading: t } =
|
|
5658
|
+
const { pages: n, childPagesLoading: t } = et(ct), { t: r } = lt();
|
|
5659
5659
|
return n.length === 0 ? /* @__PURE__ */ h("p", { style: { margin: 0 }, children: /* @__PURE__ */ h(
|
|
5660
5660
|
Gl,
|
|
5661
5661
|
{
|
|
@@ -5795,7 +5795,7 @@ const yI = ({
|
|
|
5795
5795
|
type: m,
|
|
5796
5796
|
disableInteractions: A = !1
|
|
5797
5797
|
}) => {
|
|
5798
|
-
const [C, w] = J({ x: -1e3, y: -1e3 }), [y, b] = J(30), [k, S] = J("default"), [x, I] = J(!1), { imperativeHandleRef: B, disable: D } =
|
|
5798
|
+
const [C, w] = J({ x: -1e3, y: -1e3 }), [y, b] = J(30), [k, S] = J("default"), [x, I] = J(!1), { imperativeHandleRef: B, disable: D } = et(ct), M = A || !!D, [L, R] = J(
|
|
5799
5799
|
null
|
|
5800
5800
|
), P = kt(
|
|
5801
5801
|
() => mI(f) || ["e-resize"],
|
|
@@ -5855,11 +5855,11 @@ const yI = ({
|
|
|
5855
5855
|
if (!se || V.button === 2 || !(ce != null && ce.isResizing)) return;
|
|
5856
5856
|
const Ve = se.getBoundingClientRect(), st = V.clientX - Ve.left, Ue = V.clientY - Ve.top;
|
|
5857
5857
|
pe(Ve, st, Ue);
|
|
5858
|
-
const mt = 0.17, pt = f === "right", Se = f === "center", _e = ce.isLeft,
|
|
5858
|
+
const mt = 0.17, pt = f === "right", Se = f === "center", _e = ce.isLeft, tt = ce.isTop, wt = ce.isBottom, Gt = ce.direction === "y", fn = ce.isRight, ge = Math.floor(
|
|
5859
5859
|
pt ? Ve.right - V.clientX - (Ve.right - ce.startX) : V.clientX - ce.startX
|
|
5860
5860
|
), Ye = Math.floor(V.clientY - ce.startY);
|
|
5861
5861
|
let Ze = 0;
|
|
5862
|
-
_e || fn ? Ze = ge / Ce * 100 : (
|
|
5862
|
+
_e || fn ? Ze = ge / Ce * 100 : (tt || wt || Se) && (Ze = Ye * mt), (_e || tt) && (!pt || Gt && !_e) && (!wt || Se) && (Ze = -Ze), (tt && fn || wt && fn) && (Ze = ge / Ce * 100), Ze = Math.max(-100, Math.min(100, Ze));
|
|
5863
5863
|
const Ct = ce.startWidthPercent + Ze, yt = ce.startHeightPercent + Ze;
|
|
5864
5864
|
ce.currentWidthPercent = he(
|
|
5865
5865
|
Math.max($, Ct),
|
|
@@ -5905,11 +5905,11 @@ const yI = ({
|
|
|
5905
5905
|
};
|
|
5906
5906
|
U.current = En, document.addEventListener("mousedown", En, !0), document.addEventListener("pointerdown", En, !0), document.addEventListener("click", En, !0);
|
|
5907
5907
|
}
|
|
5908
|
-
const { width: st, height: Ue, top: mt, left: pt } = ce, Se = V.clientX - pt, _e = V.clientY - mt,
|
|
5908
|
+
const { width: st, height: Ue, top: mt, left: pt } = ce, Se = V.clientX - pt, _e = V.clientY - mt, tt = _e <= za, wt = _e >= Ue - za, Gt = Se <= za, fn = Se >= st - za, ge = ie.current, Ye = window.getComputedStyle(ne), Ze = parseFloat(Ye.paddingTop), Ct = parseFloat(Ye.paddingBottom), yt = parseFloat(Ye.paddingLeft), ot = parseFloat(Ye.paddingRight);
|
|
5909
5909
|
ge.rootHeight = Ce.height - Ze - Ct || 0, ge.rootWidth = Ce.width - yt - ot || 0, ge.ratio = st / Ue, ge.currentWidth = ge.currentWidth || st, ge.currentWidthPercent = +O.current.style.width.replace(
|
|
5910
5910
|
"%",
|
|
5911
5911
|
""
|
|
5912
|
-
), ge.currentHeight = ge.currentHeight || Ue, ge.currentHeightPercent = +O.current.style.height.replace("%", ""), ge.startX = V.clientX, ge.startY = V.clientY, ge.startWidth = ge.currentWidth || st, ge.startWidthPercent = ge.currentWidthPercent, ge.startHeight = ge.currentHeight || Ue, ge.startHeightPercent = ge.currentHeightPercent, ge.isResizing = !0, ge.isTop =
|
|
5912
|
+
), ge.currentHeight = ge.currentHeight || Ue, ge.currentHeightPercent = +O.current.style.height.replace("%", ""), ge.startX = V.clientX, ge.startY = V.clientY, ge.startWidth = ge.currentWidth || st, ge.startWidthPercent = ge.currentWidthPercent, ge.startHeight = ge.currentHeight || Ue, ge.startHeightPercent = ge.currentHeightPercent, ge.isResizing = !0, ge.isTop = tt, ge.isBottom = wt, ge.isLeft = Gt, ge.isRight = fn, ge.direction = wt || tt ? "y" : "x", l && l(), O.current.setPointerCapture(V.pointerId);
|
|
5913
5913
|
const Cn = ((jn = O.current.parentElement) == null ? void 0 : jn.offsetWidth) ?? ge.rootWidth, { maxWidthPercent: Lt, minResizePercent: Sn } = wI(Cn);
|
|
5914
5914
|
document.addEventListener(
|
|
5915
5915
|
"pointermove",
|
|
@@ -7131,7 +7131,7 @@ function Mf(e, n, t, r, o, s) {
|
|
|
7131
7131
|
function Eu(e) {
|
|
7132
7132
|
return e instanceof ji;
|
|
7133
7133
|
}
|
|
7134
|
-
const up = Ml(() => import("./layers.
|
|
7134
|
+
const up = Ml(() => import("./layers.B-HigphI.js"));
|
|
7135
7135
|
function gN(e) {
|
|
7136
7136
|
const n = e.getAttribute("data-lexical-excalidraw-json"), t = e.firstChild.style.height || "0", r = e.firstChild.style.width || "0", o = e.style.justifyContent || "left", s = t === "inherit" ? "inherit" : parseInt(t, 10), l = r === "inherit" ? "inherit" : parseInt(r, 10);
|
|
7137
7137
|
return n ? {
|
|
@@ -7273,7 +7273,7 @@ function pN({
|
|
|
7273
7273
|
format: n,
|
|
7274
7274
|
nodeKey: r,
|
|
7275
7275
|
children: [
|
|
7276
|
-
/* @__PURE__ */ h(
|
|
7276
|
+
/* @__PURE__ */ h(ut, { label: "Удалить", children: /* @__PURE__ */ h(
|
|
7277
7277
|
It,
|
|
7278
7278
|
{
|
|
7279
7279
|
color: "gray",
|
|
@@ -7375,7 +7375,7 @@ class Ys extends To {
|
|
|
7375
7375
|
function Lf(e) {
|
|
7376
7376
|
return new Ys(e);
|
|
7377
7377
|
}
|
|
7378
|
-
const bN = Ml(() => import("./layers.
|
|
7378
|
+
const bN = Ml(() => import("./layers.BnMy2cvT.js"));
|
|
7379
7379
|
function CN(e) {
|
|
7380
7380
|
const n = e;
|
|
7381
7381
|
if (n.src.startsWith("file:///"))
|
|
@@ -7583,7 +7583,7 @@ function Ql({
|
|
|
7583
7583
|
function Bs(e) {
|
|
7584
7584
|
return e instanceof Mo;
|
|
7585
7585
|
}
|
|
7586
|
-
const wN = Ml(() => import("./layers.
|
|
7586
|
+
const wN = Ml(() => import("./layers.eQyQ9vDK.js"));
|
|
7587
7587
|
function yN(e) {
|
|
7588
7588
|
if (e instanceof HTMLImageElement) {
|
|
7589
7589
|
const { alt: n, src: t, width: r, height: o } = e;
|
|
@@ -8012,7 +8012,7 @@ const dd = ht(
|
|
|
8012
8012
|
"INSERT_MUSIC_COMMAND"
|
|
8013
8013
|
), cC = ht("UPLOAD_MUSIC_COMMAND");
|
|
8014
8014
|
function LN() {
|
|
8015
|
-
const [e] = ze(), { t: n } = lt(), { imperativeHandleRef: t, maxFileSize: r } =
|
|
8015
|
+
const [e] = ze(), { t: n } = lt(), { imperativeHandleRef: t, maxFileSize: r } = et(ct);
|
|
8016
8016
|
return _(() => {
|
|
8017
8017
|
if (!e.hasNodes([Zi]))
|
|
8018
8018
|
throw new Error("MusicPlugin: MusicNode not registered on editor");
|
|
@@ -8054,7 +8054,7 @@ function DN({
|
|
|
8054
8054
|
nodeKey: o,
|
|
8055
8055
|
create: s
|
|
8056
8056
|
}) {
|
|
8057
|
-
const { t: l } = lt(), { t: c } = lt("ui"), [d, f] = J(!1), [g, m] = J(!1), { start: A, cancel: C } = Fb(), [w, y] = J(0), { fetchUploadMedia: b, maxFileSize: k } =
|
|
8057
|
+
const { t: l } = lt(), { t: c } = lt("ui"), [d, f] = J(!1), [g, m] = J(!1), { start: A, cancel: C } = Fb(), [w, y] = J(0), { fetchUploadMedia: b, maxFileSize: k } = et(ct);
|
|
8058
8058
|
_(() => {
|
|
8059
8059
|
s && m(!0);
|
|
8060
8060
|
}, [s]), _(() => {
|
|
@@ -8546,7 +8546,7 @@ const ml = (e) => {
|
|
|
8546
8546
|
});
|
|
8547
8547
|
}, pl = ht("INSERT_IMAGE_COMMAND"), WN = ht("UPLOAD_IMAGE_COMMAND");
|
|
8548
8548
|
function HN() {
|
|
8549
|
-
const [e] = ze(), { t: n } = lt(), { imperativeHandleRef: t } =
|
|
8549
|
+
const [e] = ze(), { t: n } = lt(), { imperativeHandleRef: t } = et(ct), { maxFileSize: r } = et(ct);
|
|
8550
8550
|
return _(() => {
|
|
8551
8551
|
if (!e.hasNodes([Mo]))
|
|
8552
8552
|
throw new Error("ImageOlugin: FileNode not registered on editor");
|
|
@@ -8600,7 +8600,7 @@ const Nf = (e) => {
|
|
|
8600
8600
|
"INSERT_FILE_COMMAND"
|
|
8601
8601
|
), fC = ht("UPLOAD_FILE_COMMAND");
|
|
8602
8602
|
function YN() {
|
|
8603
|
-
const [e] = ze(), { t: n } = lt(), { imperativeHandleRef: t, maxFileSize: r } =
|
|
8603
|
+
const [e] = ze(), { t: n } = lt(), { imperativeHandleRef: t, maxFileSize: r } = et(ct);
|
|
8604
8604
|
return _(() => {
|
|
8605
8605
|
if (!e.hasNodes([ri]))
|
|
8606
8606
|
throw new Error("FilePlugin: FileNode not registered on editor");
|
|
@@ -8655,7 +8655,7 @@ function ZN({
|
|
|
8655
8655
|
nodeKey: o,
|
|
8656
8656
|
create: s
|
|
8657
8657
|
}) {
|
|
8658
|
-
const { t: l } = lt(), { t: c } = lt("ui"), [d, f] = J(!1), [g, m] = J(!1), [A, C] = J(0), w = Te(null), { fetchUploadMedia: y, maxFileSize: b, disable: k } =
|
|
8658
|
+
const { t: l } = lt(), { t: c } = lt("ui"), [d, f] = J(!1), [g, m] = J(!1), [A, C] = J(0), w = Te(null), { fetchUploadMedia: y, maxFileSize: b, disable: k } = et(ct), { startLoading: S, stopLoading: x } = IL(), { start: I, cancel: B } = Fb();
|
|
8659
8659
|
_(() => {
|
|
8660
8660
|
r.update(() => {
|
|
8661
8661
|
var U, ie;
|
|
@@ -8935,7 +8935,7 @@ function hp(e, n, t) {
|
|
|
8935
8935
|
}
|
|
8936
8936
|
const cr = /* @__PURE__ */ new Map();
|
|
8937
8937
|
function QN({ editor: e }) {
|
|
8938
|
-
const { fetchDeleteMedia: n, fetchRestoreMedia: t, pageId: r } =
|
|
8938
|
+
const { fetchDeleteMedia: n, fetchRestoreMedia: t, pageId: r } = et(ct);
|
|
8939
8939
|
return _(() => () => {
|
|
8940
8940
|
cr.clear();
|
|
8941
8941
|
}, [r]), _(() => {
|
|
@@ -9061,7 +9061,7 @@ const $N = ({
|
|
|
9061
9061
|
})), Rs[s] === l ? Ap(s, null) : Ap(s, l);
|
|
9062
9062
|
}, []), o = kt(() => ({ setOption: r, settings: n }), [r, n]);
|
|
9063
9063
|
return /* @__PURE__ */ h(hC.Provider, { value: o, children: e });
|
|
9064
|
-
}, gC = () =>
|
|
9064
|
+
}, gC = () => et(hC);
|
|
9065
9065
|
function Ap(e, n) {
|
|
9066
9066
|
const t = new URL(window.location.href), r = new URLSearchParams(t.search);
|
|
9067
9067
|
n !== null ? r.has(e) ? r.set(e, String(n)) : r.append(e, String(n)) : r.has(e) && r.delete(e), t.search = r.toString(), window.history.pushState(null, "", t.toString());
|
|
@@ -9074,7 +9074,7 @@ const mC = $o({}), eB = ({
|
|
|
9074
9074
|
[]
|
|
9075
9075
|
);
|
|
9076
9076
|
return /* @__PURE__ */ h(mC.Provider, { value: n, children: e });
|
|
9077
|
-
}, pC = () =>
|
|
9077
|
+
}, pC = () => et(mC);
|
|
9078
9078
|
function ql(e, n, t) {
|
|
9079
9079
|
const r = Te(null);
|
|
9080
9080
|
return r.current = e, kt(
|
|
@@ -9126,7 +9126,7 @@ const nB = ({
|
|
|
9126
9126
|
onChange: r,
|
|
9127
9127
|
transitionProps: Br,
|
|
9128
9128
|
children: [
|
|
9129
|
-
/* @__PURE__ */ h(me.Target, { children: /* @__PURE__ */ h(
|
|
9129
|
+
/* @__PURE__ */ h(me.Target, { children: /* @__PURE__ */ h(ut, { label: o("editor.toolbar.align"), disabled: l, children: /* @__PURE__ */ h(
|
|
9130
9130
|
It,
|
|
9131
9131
|
{
|
|
9132
9132
|
size: 24,
|
|
@@ -9205,7 +9205,7 @@ const nB = ({
|
|
|
9205
9205
|
attachments: d
|
|
9206
9206
|
}
|
|
9207
9207
|
),
|
|
9208
|
-
/* @__PURE__ */ h(
|
|
9208
|
+
/* @__PURE__ */ h(ut, { disabled: !t, label: e("editor.image.preview"), children: /* @__PURE__ */ h(
|
|
9209
9209
|
It,
|
|
9210
9210
|
{
|
|
9211
9211
|
onClick: () => {
|
|
@@ -9301,7 +9301,7 @@ const nB = ({
|
|
|
9301
9301
|
id: (y = d.current) == null ? void 0 : y.getAttribute("data-id")
|
|
9302
9302
|
}
|
|
9303
9303
|
),
|
|
9304
|
-
/* @__PURE__ */ h(
|
|
9304
|
+
/* @__PURE__ */ h(ut, { disabled: !o, label: m("editor.contextMenu.delete"), children: /* @__PURE__ */ h(
|
|
9305
9305
|
It,
|
|
9306
9306
|
{
|
|
9307
9307
|
color: "gray",
|
|
@@ -9351,7 +9351,7 @@ const nB = ({
|
|
|
9351
9351
|
function iB({
|
|
9352
9352
|
anchorElem: e
|
|
9353
9353
|
}) {
|
|
9354
|
-
const [n] = ze(), { t } = lt(), { disable: r } =
|
|
9354
|
+
const [n] = ze(), { t } = lt(), { disable: r } = et(ct), [o, s] = J(!1), [l, c] = J(
|
|
9355
9355
|
null
|
|
9356
9356
|
), [d, f] = J({
|
|
9357
9357
|
right: "0",
|
|
@@ -9506,7 +9506,7 @@ const wC = $o(void 0), ku = {}, lB = 1e3, cB = ({
|
|
|
9506
9506
|
n.message && /* @__PURE__ */ h(aB, { children: n.message })
|
|
9507
9507
|
] });
|
|
9508
9508
|
}, uB = () => {
|
|
9509
|
-
const e =
|
|
9509
|
+
const e = et(wC);
|
|
9510
9510
|
if (!e)
|
|
9511
9511
|
throw new Error("Missing FlashMessageContext");
|
|
9512
9512
|
return e;
|
|
@@ -9675,7 +9675,7 @@ const SC = (e) => (n, t, r) => {
|
|
|
9675
9675
|
const r = [], o = e.getChildren();
|
|
9676
9676
|
let s = 0;
|
|
9677
9677
|
for (const l of o)
|
|
9678
|
-
if (
|
|
9678
|
+
if (rt(l)) {
|
|
9679
9679
|
if (l.getChildrenSize() === 1) {
|
|
9680
9680
|
const g = l.getFirstChild();
|
|
9681
9681
|
if (Pe(g)) {
|
|
@@ -10140,7 +10140,7 @@ function TC(e, n, t = !1) {
|
|
|
10140
10140
|
const d = LA(s);
|
|
10141
10141
|
d != null && d.update(() => {
|
|
10142
10142
|
const f = Oe(s);
|
|
10143
|
-
|
|
10143
|
+
rt(f) && f.toggleOpen();
|
|
10144
10144
|
});
|
|
10145
10145
|
}
|
|
10146
10146
|
}
|
|
@@ -10152,7 +10152,7 @@ function yp(e) {
|
|
|
10152
10152
|
const n = e.target, t = LA(n);
|
|
10153
10153
|
t != null && t.isEditable() && (t.update(() => {
|
|
10154
10154
|
const r = Oe(n);
|
|
10155
|
-
if (
|
|
10155
|
+
if (rt(r) && (r.selectEnd(), r.toggleChecked()), n.getAttribute("data-list") && n.getAttribute("aria-checked") === "false" && n.nextElementSibling) {
|
|
10156
10156
|
Array.from(
|
|
10157
10157
|
n.nextElementSibling.querySelectorAll("[aria-checked]")
|
|
10158
10158
|
).forEach((o) => {
|
|
@@ -10753,7 +10753,7 @@ const zf = ht(
|
|
|
10753
10753
|
);
|
|
10754
10754
|
function iR() {
|
|
10755
10755
|
var B;
|
|
10756
|
-
const [e] = ze(), [n, t] = J([]), [r, o] = J(!1), s = Te(/* @__PURE__ */ new Map()), { t: l } = lt(), c = (B =
|
|
10756
|
+
const [e] = ze(), [n, t] = J([]), [r, o] = J(!1), s = Te(/* @__PURE__ */ new Map()), { t: l } = lt(), c = (B = et(ct)) == null ? void 0 : B.commentController, {
|
|
10757
10757
|
onHighlight: d,
|
|
10758
10758
|
activeCommentId: f,
|
|
10759
10759
|
actions: g,
|
|
@@ -12460,7 +12460,7 @@ function PC({
|
|
|
12460
12460
|
key: "excalidraw",
|
|
12461
12461
|
hide: n || t.excalidraw,
|
|
12462
12462
|
onSelect: () => {
|
|
12463
|
-
t.excalidraw || import("./layers.
|
|
12463
|
+
t.excalidraw || import("./layers.CR3oIT7G.js").then(({ INSERT_EXCALIDRAW_COMMAND: S }) => {
|
|
12464
12464
|
ln(
|
|
12465
12465
|
e,
|
|
12466
12466
|
() => {
|
|
@@ -12592,7 +12592,7 @@ const PR = (e, n, t) => {
|
|
|
12592
12592
|
show: !0,
|
|
12593
12593
|
key: n.__key,
|
|
12594
12594
|
isCheck: !0
|
|
12595
|
-
}), n && t.current.show && t.current.isCheck && (xe(n, Zo) || xe(n,
|
|
12595
|
+
}), n && t.current.show && t.current.isCheck && (xe(n, Zo) || xe(n, dt) || ((r = xe(n, rt)) == null ? void 0 : r.__checked) !== void 0) && (t.current = {
|
|
12596
12596
|
show: !1,
|
|
12597
12597
|
key: n.__key,
|
|
12598
12598
|
isCheck: !1
|
|
@@ -12768,7 +12768,7 @@ function KR({
|
|
|
12768
12768
|
show: !0,
|
|
12769
12769
|
key: "",
|
|
12770
12770
|
isCheck: !0
|
|
12771
|
-
}), [s, l] = J(null), [c, d] = J(0), { t: f } = lt(), g = (c === 100).toString(), { fetchUploadMedia: m, excludeNodes: A, plugins: C } =
|
|
12771
|
+
}), [s, l] = J(null), [c, d] = J(0), { t: f } = lt(), g = (c === 100).toString(), { fetchUploadMedia: m, excludeNodes: A, plugins: C } = et(ct), w = dM("/", {
|
|
12772
12772
|
minLength: 0
|
|
12773
12773
|
}), { options: y, groupOptions: b, groupedInitialOptions: k } = kt(() => {
|
|
12774
12774
|
const { groupedOptions: D, baseOptions: M } = UR({
|
|
@@ -12932,7 +12932,7 @@ function KR({
|
|
|
12932
12932
|
function WR({
|
|
12933
12933
|
isLoading: e
|
|
12934
12934
|
}) {
|
|
12935
|
-
const [n] = ze(), { disable: t } =
|
|
12935
|
+
const [n] = ze(), { disable: t } = et(ct);
|
|
12936
12936
|
return _(() => {
|
|
12937
12937
|
t || n.update(() => {
|
|
12938
12938
|
Et().getFirstChild() && setTimeout(() => {
|
|
@@ -12977,7 +12977,7 @@ const HR = (e) => e.getEditorState().read(() => Et().getChildrenKeys()).map((t)
|
|
|
12977
12977
|
}
|
|
12978
12978
|
}
|
|
12979
12979
|
}
|
|
12980
|
-
const o = xe(e,
|
|
12980
|
+
const o = xe(e, dt), s = xe(
|
|
12981
12981
|
e,
|
|
12982
12982
|
Zo
|
|
12983
12983
|
);
|
|
@@ -13016,7 +13016,7 @@ const YR = (e) => e instanceof HTMLHeadingElement, jR = ({
|
|
|
13016
13016
|
de(r) && jR({ selection: r, editor: e, t: n, customPlaceholder: t });
|
|
13017
13017
|
});
|
|
13018
13018
|
}, GR = () => {
|
|
13019
|
-
const [e] = ze(), { t: n } = lt(), { placeholder: t, disable: r } =
|
|
13019
|
+
const [e] = ze(), { t: n } = lt(), { placeholder: t, disable: r } = et(ct);
|
|
13020
13020
|
return _(() => {
|
|
13021
13021
|
if (!r)
|
|
13022
13022
|
return e.read(() => {
|
|
@@ -13088,7 +13088,7 @@ const QR = ({
|
|
|
13088
13088
|
r("both");
|
|
13089
13089
|
},
|
|
13090
13090
|
children: /* @__PURE__ */ h(
|
|
13091
|
-
|
|
13091
|
+
ut,
|
|
13092
13092
|
{
|
|
13093
13093
|
openDelay: 300,
|
|
13094
13094
|
label: c("editor.hoverOptions.addNewBlockAbove"),
|
|
@@ -13137,7 +13137,7 @@ const QR = ({
|
|
|
13137
13137
|
r("both");
|
|
13138
13138
|
},
|
|
13139
13139
|
children: /* @__PURE__ */ h(
|
|
13140
|
-
|
|
13140
|
+
ut,
|
|
13141
13141
|
{
|
|
13142
13142
|
disabled: o.current || !e,
|
|
13143
13143
|
openDelay: 300,
|
|
@@ -13233,7 +13233,7 @@ function WC({
|
|
|
13233
13233
|
transitionProps: Br,
|
|
13234
13234
|
...c,
|
|
13235
13235
|
children: [
|
|
13236
|
-
/* @__PURE__ */ h(me.Target, { children: l || /* @__PURE__ */ h(
|
|
13236
|
+
/* @__PURE__ */ h(me.Target, { children: l || /* @__PURE__ */ h(ut, { label: A("editor.toolbar.turnInto"), children: /* @__PURE__ */ Z(
|
|
13237
13237
|
"button",
|
|
13238
13238
|
{
|
|
13239
13239
|
disabled: t,
|
|
@@ -13367,7 +13367,7 @@ const Bp = (e, n, t, r) => {
|
|
|
13367
13367
|
isDisabledAddColumnButton: s,
|
|
13368
13368
|
disabledMoveColumnButtons: l
|
|
13369
13369
|
}) => {
|
|
13370
|
-
const { fetchUploadMedia: c, excludeNodes: d } =
|
|
13370
|
+
const { fetchUploadMedia: c, excludeNodes: d } = et(ct), [f, g] = J("inherit"), [m, A] = J("inherit"), [C, w] = J("inherit"), [y, b] = J("");
|
|
13371
13371
|
_(() => {
|
|
13372
13372
|
const I = t == null ? void 0 : t.__type;
|
|
13373
13373
|
e.read(() => {
|
|
@@ -13679,7 +13679,7 @@ function tO() {
|
|
|
13679
13679
|
["partial", B],
|
|
13680
13680
|
["partialRight", D],
|
|
13681
13681
|
["rearg", L]
|
|
13682
|
-
], ue = "[object Arguments]", V = "[object Array]", $ = "[object AsyncFunction]", ne = "[object Boolean]", Ce = "[object Date]", se = "[object DOMException]", ce = "[object Error]", Ve = "[object Function]", st = "[object GeneratorFunction]", Ue = "[object Map]", mt = "[object Number]", pt = "[object Null]", Se = "[object Object]", _e = "[object Promise]",
|
|
13682
|
+
], ue = "[object Arguments]", V = "[object Array]", $ = "[object AsyncFunction]", ne = "[object Boolean]", Ce = "[object Date]", se = "[object DOMException]", ce = "[object Error]", Ve = "[object Function]", st = "[object GeneratorFunction]", Ue = "[object Map]", mt = "[object Number]", pt = "[object Null]", Se = "[object Object]", _e = "[object Promise]", tt = "[object Proxy]", wt = "[object RegExp]", Gt = "[object Set]", fn = "[object String]", ge = "[object Symbol]", Ye = "[object Undefined]", Ze = "[object WeakMap]", Ct = "[object WeakSet]", yt = "[object ArrayBuffer]", ot = "[object DataView]", Cn = "[object Float32Array]", Lt = "[object Float64Array]", Sn = "[object Int8Array]", nn = "[object Int16Array]", jn = "[object Int32Array]", En = "[object Uint8Array]", or = "[object Uint8ClampedArray]", on = "[object Uint16Array]", io = "[object Uint32Array]", g0 = /\b__p \+= '';/g, m0 = /\b(__p \+=) '' \+/g, p0 = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Qf = /&(?:amp|lt|gt|quot|#39);/g, Jf = /[&<>"']/g, A0 = RegExp(Qf.source), b0 = RegExp(Jf.source), C0 = /<%-([\s\S]+?)%>/g, w0 = /<%([\s\S]+?)%>/g, Xf = /<%=([\s\S]+?)%>/g, y0 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, v0 = /^\w*$/, S0 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, rc = /[\\^$.*+?()[\]{}|]/g, E0 = RegExp(rc.source), oc = /^\s+/, k0 = /\s/, T0 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, x0 = /\{\n\/\* \[wrapped with (.+)\] \*/, M0 = /,? & /, L0 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, D0 = /[()=,{}\[\]\/\s]/, I0 = /\\(\\)?/g, N0 = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Vf = /\w*$/, B0 = /^[-+]0x[0-9a-f]+$/i, R0 = /^0b[01]+$/i, O0 = /^\[object .+?Constructor\]$/, P0 = /^0o[0-7]+$/i, F0 = /^(?:0|[1-9]\d*)$/, z0 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Qs = /($^)/, U0 = /['\n\r\u2028\u2029\\]/g, Js = "\\ud800-\\udfff", K0 = "\\u0300-\\u036f", W0 = "\\ufe20-\\ufe2f", H0 = "\\u20d0-\\u20ff", _f = K0 + W0 + H0, qf = "\\u2700-\\u27bf", $f = "a-z\\xdf-\\xf6\\xf8-\\xff", Y0 = "\\xac\\xb1\\xd7\\xf7", j0 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Z0 = "\\u2000-\\u206f", G0 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", eh = "A-Z\\xc0-\\xd6\\xd8-\\xde", th = "\\ufe0e\\ufe0f", nh = Y0 + j0 + Z0 + G0, ic = "['’]", Q0 = "[" + Js + "]", rh = "[" + nh + "]", Xs = "[" + _f + "]", oh = "\\d+", J0 = "[" + qf + "]", ih = "[" + $f + "]", sh = "[^" + Js + nh + oh + qf + $f + eh + "]", sc = "\\ud83c[\\udffb-\\udfff]", X0 = "(?:" + Xs + "|" + sc + ")", ah = "[^" + Js + "]", ac = "(?:\\ud83c[\\udde6-\\uddff]){2}", lc = "[\\ud800-\\udbff][\\udc00-\\udfff]", ii = "[" + eh + "]", lh = "\\u200d", ch = "(?:" + ih + "|" + sh + ")", V0 = "(?:" + ii + "|" + sh + ")", uh = "(?:" + ic + "(?:d|ll|m|re|s|t|ve))?", dh = "(?:" + ic + "(?:D|LL|M|RE|S|T|VE))?", fh = X0 + "?", hh = "[" + th + "]?", _0 = "(?:" + lh + "(?:" + [ah, ac, lc].join("|") + ")" + hh + fh + ")*", q0 = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", $0 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gh = hh + fh + _0, ew = "(?:" + [J0, ac, lc].join("|") + ")" + gh, tw = "(?:" + [ah + Xs + "?", Xs, ac, lc, Q0].join("|") + ")", nw = RegExp(ic, "g"), rw = RegExp(Xs, "g"), cc = RegExp(sc + "(?=" + sc + ")|" + tw + gh, "g"), ow = RegExp([
|
|
13683
13683
|
ii + "?" + ih + "+" + uh + "(?=" + [rh, ii, "$"].join("|") + ")",
|
|
13684
13684
|
V0 + "+" + dh + "(?=" + [rh, ii + ch, "$"].join("|") + ")",
|
|
13685
13685
|
ii + "?" + ch + "+" + uh,
|
|
@@ -14226,7 +14226,7 @@ function tO() {
|
|
|
14226
14226
|
}
|
|
14227
14227
|
})(), Gw = q.clearTimeout !== sn.clearTimeout && q.clearTimeout, Qw = we && we.now !== sn.Date.now && we.now, Jw = q.setTimeout !== sn.setTimeout && q.setTimeout, la = qt.ceil, ca = qt.floor, vc = vt.getOwnPropertySymbols, Xw = ra ? ra.isBuffer : t, zh = q.isFinite, Vw = $s.join, _w = Ih(vt.keys, vt), $t = qt.max, hn = qt.min, qw = we.now, $w = q.parseInt, Uh = qt.random, ey = $s.reverse, Sc = Oo(q, "DataView"), Ji = Oo(q, "Map"), Ec = Oo(q, "Promise"), di = Oo(q, "Set"), Xi = Oo(q, "WeakMap"), Vi = Oo(vt, "create"), ua = Xi && new Xi(), fi = {}, ty = Po(Sc), ny = Po(Ji), ry = Po(Ec), oy = Po(di), iy = Po(Xi), da = co ? co.prototype : t, _i = da ? da.valueOf : t, Kh = da ? da.toString : t;
|
|
14228
14228
|
function E(i) {
|
|
14229
|
-
if (Pt(i) && !je(i) && !(i instanceof
|
|
14229
|
+
if (Pt(i) && !je(i) && !(i instanceof nt)) {
|
|
14230
14230
|
if (i instanceof Jn)
|
|
14231
14231
|
return i;
|
|
14232
14232
|
if (At.call(i, "__wrapped__"))
|
|
@@ -14297,16 +14297,16 @@ function tO() {
|
|
|
14297
14297
|
_: E
|
|
14298
14298
|
}
|
|
14299
14299
|
}, E.prototype = fa.prototype, E.prototype.constructor = E, Jn.prototype = hi(fa.prototype), Jn.prototype.constructor = Jn;
|
|
14300
|
-
function
|
|
14300
|
+
function nt(i) {
|
|
14301
14301
|
this.__wrapped__ = i, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = X, this.__views__ = [];
|
|
14302
14302
|
}
|
|
14303
14303
|
function sy() {
|
|
14304
|
-
var i = new
|
|
14304
|
+
var i = new nt(this.__wrapped__);
|
|
14305
14305
|
return i.__actions__ = kn(this.__actions__), i.__dir__ = this.__dir__, i.__filtered__ = this.__filtered__, i.__iteratees__ = kn(this.__iteratees__), i.__takeCount__ = this.__takeCount__, i.__views__ = kn(this.__views__), i;
|
|
14306
14306
|
}
|
|
14307
14307
|
function ay() {
|
|
14308
14308
|
if (this.__filtered__) {
|
|
14309
|
-
var i = new
|
|
14309
|
+
var i = new nt(this);
|
|
14310
14310
|
i.__dir__ = -1, i.__filtered__ = !0;
|
|
14311
14311
|
} else
|
|
14312
14312
|
i = this.clone(), i.__dir__ *= -1;
|
|
@@ -14334,7 +14334,7 @@ function tO() {
|
|
|
14334
14334
|
}
|
|
14335
14335
|
return Ne;
|
|
14336
14336
|
}
|
|
14337
|
-
|
|
14337
|
+
nt.prototype = hi(fa.prototype), nt.prototype.constructor = nt;
|
|
14338
14338
|
function Io(i) {
|
|
14339
14339
|
var a = -1, u = i == null ? 0 : i.length;
|
|
14340
14340
|
for (this.clear(); ++a < u; ) {
|
|
@@ -15053,7 +15053,7 @@ function tO() {
|
|
|
15053
15053
|
}
|
|
15054
15054
|
function ug(i, a) {
|
|
15055
15055
|
var u = i;
|
|
15056
|
-
return u instanceof
|
|
15056
|
+
return u instanceof nt && (u = u.value()), hc(a, function(p, v) {
|
|
15057
15057
|
return v.func.apply(v.thisArg, ao([p], v.args));
|
|
15058
15058
|
}, u);
|
|
15059
15059
|
}
|
|
@@ -15762,7 +15762,7 @@ function tO() {
|
|
|
15762
15762
|
}
|
|
15763
15763
|
function _c(i) {
|
|
15764
15764
|
var a = Ea(i), u = E[a];
|
|
15765
|
-
if (typeof u != "function" || !(a in
|
|
15765
|
+
if (typeof u != "function" || !(a in nt.prototype))
|
|
15766
15766
|
return !1;
|
|
15767
15767
|
if (i === u)
|
|
15768
15768
|
return !0;
|
|
@@ -15896,7 +15896,7 @@ function tO() {
|
|
|
15896
15896
|
}), i.sort();
|
|
15897
15897
|
}
|
|
15898
15898
|
function Wg(i) {
|
|
15899
|
-
if (i instanceof
|
|
15899
|
+
if (i instanceof nt)
|
|
15900
15900
|
return i.clone();
|
|
15901
15901
|
var a = new Jn(i.__wrapped__, i.__chain__);
|
|
15902
15902
|
return a.__actions__ = kn(i.__actions__), a.__index__ = i.__index__, a.__values__ = i.__values__, a;
|
|
@@ -16185,7 +16185,7 @@ function tO() {
|
|
|
16185
16185
|
var a = i.length, u = a ? i[0] : 0, p = this.__wrapped__, v = function(T) {
|
|
16186
16186
|
return Tc(T, i);
|
|
16187
16187
|
};
|
|
16188
|
-
return a > 1 || this.__actions__.length || !(p instanceof
|
|
16188
|
+
return a > 1 || this.__actions__.length || !(p instanceof nt) || !Ur(u) ? this.thru(v) : (p = p.slice(u, +u + (a ? 1 : 0)), p.__actions__.push({
|
|
16189
16189
|
func: xa,
|
|
16190
16190
|
args: [v],
|
|
16191
16191
|
thisArg: t
|
|
@@ -16218,9 +16218,9 @@ function tO() {
|
|
|
16218
16218
|
}
|
|
16219
16219
|
function Yv() {
|
|
16220
16220
|
var i = this.__wrapped__;
|
|
16221
|
-
if (i instanceof
|
|
16221
|
+
if (i instanceof nt) {
|
|
16222
16222
|
var a = i;
|
|
16223
|
-
return this.__actions__.length && (a = new
|
|
16223
|
+
return this.__actions__.length && (a = new nt(this)), a = a.reverse(), a.__actions__.push({
|
|
16224
16224
|
func: xa,
|
|
16225
16225
|
args: [eu],
|
|
16226
16226
|
thisArg: t
|
|
@@ -16592,7 +16592,7 @@ function tO() {
|
|
|
16592
16592
|
if (!Ot(i))
|
|
16593
16593
|
return !1;
|
|
16594
16594
|
var a = wn(i);
|
|
16595
|
-
return a == Ve || a == st || a == $ || a ==
|
|
16595
|
+
return a == Ve || a == st || a == $ || a == tt;
|
|
16596
16596
|
}
|
|
16597
16597
|
function om(i) {
|
|
16598
16598
|
return typeof i == "number" && i == Ge(i);
|
|
@@ -17237,19 +17237,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
17237
17237
|
})(), { chain: !1 }), E.VERSION = r, Gn(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(i) {
|
|
17238
17238
|
E[i].placeholder = E;
|
|
17239
17239
|
}), Gn(["drop", "take"], function(i, a) {
|
|
17240
|
-
|
|
17240
|
+
nt.prototype[i] = function(u) {
|
|
17241
17241
|
u = u === t ? 1 : $t(Ge(u), 0);
|
|
17242
|
-
var p = this.__filtered__ && !a ? new
|
|
17242
|
+
var p = this.__filtered__ && !a ? new nt(this) : this.clone();
|
|
17243
17243
|
return p.__filtered__ ? p.__takeCount__ = hn(u, p.__takeCount__) : p.__views__.push({
|
|
17244
17244
|
size: hn(u, X),
|
|
17245
17245
|
type: i + (p.__dir__ < 0 ? "Right" : "")
|
|
17246
17246
|
}), p;
|
|
17247
|
-
},
|
|
17247
|
+
}, nt.prototype[i + "Right"] = function(u) {
|
|
17248
17248
|
return this.reverse()[i](u).reverse();
|
|
17249
17249
|
};
|
|
17250
17250
|
}), Gn(["filter", "map", "takeWhile"], function(i, a) {
|
|
17251
17251
|
var u = a + 1, p = u == U || u == he;
|
|
17252
|
-
|
|
17252
|
+
nt.prototype[i] = function(v) {
|
|
17253
17253
|
var T = this.clone();
|
|
17254
17254
|
return T.__iteratees__.push({
|
|
17255
17255
|
iteratee: Ie(v, 3),
|
|
@@ -17258,45 +17258,45 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
17258
17258
|
};
|
|
17259
17259
|
}), Gn(["head", "last"], function(i, a) {
|
|
17260
17260
|
var u = "take" + (a ? "Right" : "");
|
|
17261
|
-
|
|
17261
|
+
nt.prototype[i] = function() {
|
|
17262
17262
|
return this[u](1).value()[0];
|
|
17263
17263
|
};
|
|
17264
17264
|
}), Gn(["initial", "tail"], function(i, a) {
|
|
17265
17265
|
var u = "drop" + (a ? "" : "Right");
|
|
17266
|
-
|
|
17267
|
-
return this.__filtered__ ? new
|
|
17266
|
+
nt.prototype[i] = function() {
|
|
17267
|
+
return this.__filtered__ ? new nt(this) : this[u](1);
|
|
17268
17268
|
};
|
|
17269
|
-
}),
|
|
17269
|
+
}), nt.prototype.compact = function() {
|
|
17270
17270
|
return this.filter(Mn);
|
|
17271
|
-
},
|
|
17271
|
+
}, nt.prototype.find = function(i) {
|
|
17272
17272
|
return this.filter(i).head();
|
|
17273
|
-
},
|
|
17273
|
+
}, nt.prototype.findLast = function(i) {
|
|
17274
17274
|
return this.reverse().find(i);
|
|
17275
|
-
},
|
|
17276
|
-
return typeof i == "function" ? new
|
|
17275
|
+
}, nt.prototype.invokeMap = Xe(function(i, a) {
|
|
17276
|
+
return typeof i == "function" ? new nt(this) : this.map(function(u) {
|
|
17277
17277
|
return es(u, i, a);
|
|
17278
17278
|
});
|
|
17279
|
-
}),
|
|
17279
|
+
}), nt.prototype.reject = function(i) {
|
|
17280
17280
|
return this.filter(Ia(Ie(i)));
|
|
17281
|
-
},
|
|
17281
|
+
}, nt.prototype.slice = function(i, a) {
|
|
17282
17282
|
i = Ge(i);
|
|
17283
17283
|
var u = this;
|
|
17284
|
-
return u.__filtered__ && (i > 0 || a < 0) ? new
|
|
17285
|
-
},
|
|
17284
|
+
return u.__filtered__ && (i > 0 || a < 0) ? new nt(u) : (i < 0 ? u = u.takeRight(-i) : i && (u = u.drop(i)), a !== t && (a = Ge(a), u = a < 0 ? u.dropRight(-a) : u.take(a - i)), u);
|
|
17285
|
+
}, nt.prototype.takeRightWhile = function(i) {
|
|
17286
17286
|
return this.reverse().takeWhile(i).reverse();
|
|
17287
|
-
},
|
|
17287
|
+
}, nt.prototype.toArray = function() {
|
|
17288
17288
|
return this.take(X);
|
|
17289
|
-
}, yr(
|
|
17289
|
+
}, yr(nt.prototype, function(i, a) {
|
|
17290
17290
|
var u = /^(?:filter|find|map|reject)|While$/.test(a), p = /^(?:head|last)$/.test(a), v = E[p ? "take" + (a == "last" ? "Right" : "") : a], T = p || /^find/.test(a);
|
|
17291
17291
|
v && (E.prototype[a] = function() {
|
|
17292
|
-
var N = this.__wrapped__, F = p ? [1] : arguments, K = N instanceof
|
|
17292
|
+
var N = this.__wrapped__, F = p ? [1] : arguments, K = N instanceof nt, ee = F[0], te = K || je(N), ae = function($e) {
|
|
17293
17293
|
var it = v.apply(E, ao([$e], F));
|
|
17294
17294
|
return p && Ae ? it[0] : it;
|
|
17295
17295
|
};
|
|
17296
17296
|
te && u && typeof ee == "function" && ee.length != 1 && (K = te = !1);
|
|
17297
17297
|
var Ae = this.__chain__, Ee = !!this.__actions__.length, Ne = T && !Ae, Je = K && !Ee;
|
|
17298
17298
|
if (!T && te) {
|
|
17299
|
-
N = Je ? N : new
|
|
17299
|
+
N = Je ? N : new nt(this);
|
|
17300
17300
|
var Be = i.apply(N, F);
|
|
17301
17301
|
return Be.__actions__.push({ func: xa, args: [ae], thisArg: t }), new Jn(Be, Ae);
|
|
17302
17302
|
}
|
|
@@ -17314,7 +17314,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
17314
17314
|
return a.apply(je(N) ? N : [], v);
|
|
17315
17315
|
});
|
|
17316
17316
|
};
|
|
17317
|
-
}), yr(
|
|
17317
|
+
}), yr(nt.prototype, function(i, a) {
|
|
17318
17318
|
var u = E[a];
|
|
17319
17319
|
if (u) {
|
|
17320
17320
|
var p = u.name + "";
|
|
@@ -17323,7 +17323,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
17323
17323
|
}), fi[wa(t, k).name] = [{
|
|
17324
17324
|
name: "wrapper",
|
|
17325
17325
|
func: t
|
|
17326
|
-
}],
|
|
17326
|
+
}], nt.prototype.clone = sy, nt.prototype.reverse = ay, nt.prototype.value = ly, E.prototype.at = Fv, E.prototype.chain = zv, E.prototype.commit = Uv, E.prototype.next = Kv, E.prototype.plant = Hv, E.prototype.reverse = Yv, E.prototype.toJSON = E.prototype.valueOf = E.prototype.value = jv, E.prototype.first = E.prototype.head, Qi && (E.prototype[Qi] = Wv), E;
|
|
17327
17327
|
}), ci = Uw();
|
|
17328
17328
|
Lo ? ((Lo.exports = ci)._ = ci, uc._ = ci) : sn._ = ci;
|
|
17329
17329
|
}).call(eO);
|
|
@@ -17373,7 +17373,7 @@ function aO(e, n, t) {
|
|
|
17373
17373
|
htmlElement: null,
|
|
17374
17374
|
lexicalNode: null,
|
|
17375
17375
|
isBottom: !1
|
|
17376
|
-
}), d = Te(null), [f, g] = J(null), { disable: m } =
|
|
17376
|
+
}), d = Te(null), [f, g] = J(null), { disable: m } = et(ct), [A, C] = J(!1), [w, y] = J({ opened: !1 }), [b, k] = J(""), [S, x] = J(null), [I, B] = J(!1), [D, M] = J({
|
|
17377
17377
|
left: !1,
|
|
17378
17378
|
right: !1
|
|
17379
17379
|
}), [L, R] = J(null), { t: P } = lt(), W = ql(
|
|
@@ -17448,8 +17448,8 @@ function aO(e, n, t) {
|
|
|
17448
17448
|
LC(e, se);
|
|
17449
17449
|
}
|
|
17450
17450
|
if (se.getParent() instanceof Hn && ((_e = se.getParent()) == null ? void 0 : _e.getChildren().length) === 2) {
|
|
17451
|
-
const
|
|
17452
|
-
Fi(e,
|
|
17451
|
+
const tt = se.getParent(), wt = tt.getParent();
|
|
17452
|
+
Fi(e, tt, wt);
|
|
17453
17453
|
}
|
|
17454
17454
|
if (ce != null && ce.classList.contains("selected-block"))
|
|
17455
17455
|
return;
|
|
@@ -17459,8 +17459,8 @@ function aO(e, n, t) {
|
|
|
17459
17459
|
Se.querySelectorAll(".selected-block")
|
|
17460
17460
|
).reverse() : pt = Array.from(
|
|
17461
17461
|
Se.querySelectorAll(".selected-block")
|
|
17462
|
-
), pt.length ? pt.forEach((
|
|
17463
|
-
let wt = Oe(
|
|
17462
|
+
), pt.length ? pt.forEach((tt) => {
|
|
17463
|
+
let wt = Oe(tt);
|
|
17464
17464
|
st ? Ue == null || Ue.insertAfter(wt) : Ue == null || Ue.insertBefore(wt);
|
|
17465
17465
|
}) : st ? Ue.insertAfter(se) : Ue.insertBefore(se), g(null);
|
|
17466
17466
|
});
|
|
@@ -17651,9 +17651,9 @@ function aO(e, n, t) {
|
|
|
17651
17651
|
});
|
|
17652
17652
|
});
|
|
17653
17653
|
const mt = Array.from(st ? Ve.children : document.querySelectorAll(".selected-block")).reduce((Se, _e) => {
|
|
17654
|
-
const
|
|
17655
|
-
return
|
|
17656
|
-
}, []), pt = mt.length > 0 && mt.every((Se) => Dr(Se) ||
|
|
17654
|
+
const tt = Oe(_e);
|
|
17655
|
+
return tt && Se.push(tt), Se;
|
|
17656
|
+
}, []), pt = mt.length > 0 && mt.every((Se) => Dr(Se) || dt(Se) || Wn(Se) ? !1 : Fe(Se) || $r(Se));
|
|
17657
17657
|
k(pt ? "text" : "block");
|
|
17658
17658
|
}), UC();
|
|
17659
17659
|
const V = Number(j == null ? void 0 : j.y) + 240 > window.innerHeight ? Number(j == null ? void 0 : j.y) - 200 : j == null ? void 0 : j.y;
|
|
@@ -17755,7 +17755,7 @@ function aO(e, n, t) {
|
|
|
17755
17755
|
onDragStart: O,
|
|
17756
17756
|
onDragEnd: H,
|
|
17757
17757
|
children: /* @__PURE__ */ h(
|
|
17758
|
-
|
|
17758
|
+
ut,
|
|
17759
17759
|
{
|
|
17760
17760
|
openDelay: 300,
|
|
17761
17761
|
multiline: !0,
|
|
@@ -18368,7 +18368,7 @@ function wO({
|
|
|
18368
18368
|
);
|
|
18369
18369
|
}
|
|
18370
18370
|
function yO(e, n, t) {
|
|
18371
|
-
const [r, o] = J(!1), [s, l] = J(!1), [c, d] = J(!1), [f, g] = J(!1), [m, A] = J(!1), [C, w] = J(!1), [y, b] = J(!1), [k, S] = J(!1), [x, I] = J(!1), B = Wf(), { disable: D } =
|
|
18371
|
+
const [r, o] = J(!1), [s, l] = J(!1), [c, d] = J(!1), [f, g] = J(!1), [m, A] = J(!1), [C, w] = J(!1), [y, b] = J(!1), [k, S] = J(!1), [x, I] = J(!1), B = Wf(), { disable: D } = et(ct), M = Ke(() => {
|
|
18372
18372
|
e.getEditorState().read(() => {
|
|
18373
18373
|
var he, ye, pe;
|
|
18374
18374
|
if (e.isComposing())
|
|
@@ -18390,7 +18390,7 @@ function yO(e, n, t) {
|
|
|
18390
18390
|
"Collapsible__title"
|
|
18391
18391
|
);
|
|
18392
18392
|
!H && L.getTextContent() !== "" && !U ? o(
|
|
18393
|
-
dn(W) || Nn(W) || Ts(W) || xs(W) ||
|
|
18393
|
+
dn(W) || Nn(W) || Ts(W) || xs(W) || rt(W)
|
|
18394
18394
|
) : o(!1);
|
|
18395
18395
|
const ie = L.getTextContent().replace(/\n/g, "");
|
|
18396
18396
|
if (!L.isCollapsed() && ie === "") {
|
|
@@ -18484,14 +18484,14 @@ function MO(e) {
|
|
|
18484
18484
|
if (!de(n))
|
|
18485
18485
|
return !1;
|
|
18486
18486
|
const t = n.focus.getNode();
|
|
18487
|
-
if (!(Pe(t) ||
|
|
18487
|
+
if (!(Pe(t) || rt(t) || rt(t.getParent())))
|
|
18488
18488
|
return n.insertText(TO), !1;
|
|
18489
18489
|
const o = xO(n);
|
|
18490
18490
|
let s = 0;
|
|
18491
18491
|
for (const l of o)
|
|
18492
18492
|
if (Pe(l))
|
|
18493
18493
|
s = Math.max($u(l) + 1, s);
|
|
18494
|
-
else if (
|
|
18494
|
+
else if (rt(l)) {
|
|
18495
18495
|
const c = l.getParent();
|
|
18496
18496
|
if (!Pe(c))
|
|
18497
18497
|
throw new Error(
|
|
@@ -18545,7 +18545,7 @@ function BO({ maxLength: e }) {
|
|
|
18545
18545
|
}, [n, e]), null;
|
|
18546
18546
|
}
|
|
18547
18547
|
function RO() {
|
|
18548
|
-
const [e] = ze(), { maxHeight: n } =
|
|
18548
|
+
const [e] = ze(), { maxHeight: n } = et(ct), t = () => {
|
|
18549
18549
|
KN(e);
|
|
18550
18550
|
};
|
|
18551
18551
|
return n ? null : /* @__PURE__ */ h("div", { className: "new-paragraph", onClick: t });
|
|
@@ -21164,7 +21164,7 @@ var eA = n0.map(function(e) {
|
|
|
21164
21164
|
}, a4([lP(r4)], n.prototype, "selecto", void 0), n;
|
|
21165
21165
|
})(vT);
|
|
21166
21166
|
const c4 = ({ editor: e }) => {
|
|
21167
|
-
const { disable: n } =
|
|
21167
|
+
const { disable: n } = et(ct), t = Te(null), [r, o] = J({
|
|
21168
21168
|
depth: 0,
|
|
21169
21169
|
targets: nd
|
|
21170
21170
|
});
|
|
@@ -21352,7 +21352,7 @@ const c4 = ({ editor: e }) => {
|
|
|
21352
21352
|
}), [n, o]);
|
|
21353
21353
|
return /* @__PURE__ */ h(r0.Provider, { value: s, children: e });
|
|
21354
21354
|
}, f4 = () => {
|
|
21355
|
-
const e =
|
|
21355
|
+
const e = et(r0);
|
|
21356
21356
|
if (e === void 0)
|
|
21357
21357
|
throw new Error("useToolbarState must be used within a ToolbarProvider");
|
|
21358
21358
|
return e;
|
|
@@ -22533,13 +22533,13 @@ function h8({
|
|
|
22533
22533
|
}), P.current = ne, ve(ne))) {
|
|
22534
22534
|
const mt = xe(
|
|
22535
22535
|
ne,
|
|
22536
|
-
(pt) =>
|
|
22536
|
+
(pt) => dt(pt)
|
|
22537
22537
|
);
|
|
22538
|
-
if (!
|
|
22538
|
+
if (!dt(mt))
|
|
22539
22539
|
return;
|
|
22540
22540
|
if ($ = r.getElementByKey(mt == null ? void 0 : mt.getKey()), $) {
|
|
22541
|
-
const pt = mt.getChildrenSize(), Se = (ce = mt.getChildAtIndex(0)) == null ? void 0 : ce.getChildrenSize(), _e = Ul(ne),
|
|
22542
|
-
L.current = (Ve = $.firstChild) == null ? void 0 : Ve.childNodes[_e + 1].firstChild, R.current = (Ue = (st = $.firstChild) == null ? void 0 : st.childNodes[1]) == null ? void 0 : Ue.childNodes[
|
|
22541
|
+
const pt = mt.getChildrenSize(), Se = (ce = mt.getChildAtIndex(0)) == null ? void 0 : ce.getChildrenSize(), _e = Ul(ne), tt = Kl(ne);
|
|
22542
|
+
L.current = (Ve = $.firstChild) == null ? void 0 : Ve.childNodes[_e + 1].firstChild, R.current = (Ue = (st = $.firstChild) == null ? void 0 : st.childNodes[1]) == null ? void 0 : Ue.childNodes[tt], setTimeout(() => {
|
|
22543
22543
|
Ce === "bottom" ? (ue = ne, P.current = null, k({
|
|
22544
22544
|
top: !1,
|
|
22545
22545
|
bottom: !1,
|
|
@@ -22556,7 +22556,7 @@ function h8({
|
|
|
22556
22556
|
column: !0,
|
|
22557
22557
|
row: !1,
|
|
22558
22558
|
options: !1
|
|
22559
|
-
})) : _e === pt - 1 &&
|
|
22559
|
+
})) : _e === pt - 1 && tt === Se - 1 ? (ue = ne, V = ne, k({
|
|
22560
22560
|
top: !1,
|
|
22561
22561
|
bottom: !1,
|
|
22562
22562
|
left: !1,
|
|
@@ -22564,7 +22564,7 @@ function h8({
|
|
|
22564
22564
|
column: !0,
|
|
22565
22565
|
row: !0,
|
|
22566
22566
|
options: !0
|
|
22567
|
-
})) : !_e && !
|
|
22567
|
+
})) : !_e && !tt ? k({
|
|
22568
22568
|
top: !1,
|
|
22569
22569
|
bottom: !0,
|
|
22570
22570
|
left: !1,
|
|
@@ -22572,7 +22572,7 @@ function h8({
|
|
|
22572
22572
|
column: !1,
|
|
22573
22573
|
row: !1,
|
|
22574
22574
|
options: !0
|
|
22575
|
-
}) :
|
|
22575
|
+
}) : tt && !_e && tt !== Se - 1 ? k({
|
|
22576
22576
|
top: !1,
|
|
22577
22577
|
bottom: !1,
|
|
22578
22578
|
left: !0,
|
|
@@ -22580,7 +22580,7 @@ function h8({
|
|
|
22580
22580
|
column: !1,
|
|
22581
22581
|
row: !1,
|
|
22582
22582
|
options: !0
|
|
22583
|
-
}) : !
|
|
22583
|
+
}) : !tt && _e && _e !== pt - 1 ? k({
|
|
22584
22584
|
top: !0,
|
|
22585
22585
|
bottom: !0,
|
|
22586
22586
|
left: !1,
|
|
@@ -22588,7 +22588,7 @@ function h8({
|
|
|
22588
22588
|
column: !1,
|
|
22589
22589
|
row: !1,
|
|
22590
22590
|
options: !0
|
|
22591
|
-
}) : !
|
|
22591
|
+
}) : !tt && _e === pt - 1 ? (ue = ne, k({
|
|
22592
22592
|
top: !0,
|
|
22593
22593
|
bottom: !1,
|
|
22594
22594
|
left: !1,
|
|
@@ -22596,7 +22596,7 @@ function h8({
|
|
|
22596
22596
|
column: !1,
|
|
22597
22597
|
row: !0,
|
|
22598
22598
|
options: !0
|
|
22599
|
-
})) : !_e &&
|
|
22599
|
+
})) : !_e && tt === Se - 1 ? (V = ne, k({
|
|
22600
22600
|
top: !1,
|
|
22601
22601
|
bottom: !1,
|
|
22602
22602
|
left: !0,
|
|
@@ -22604,7 +22604,7 @@ function h8({
|
|
|
22604
22604
|
column: !0,
|
|
22605
22605
|
row: !1,
|
|
22606
22606
|
options: !0
|
|
22607
|
-
})) : !
|
|
22607
|
+
})) : !tt && _e && _e !== pt - 1 ? k({
|
|
22608
22608
|
top: !0,
|
|
22609
22609
|
bottom: !0,
|
|
22610
22610
|
left: !1,
|
|
@@ -22620,7 +22620,7 @@ function h8({
|
|
|
22620
22620
|
column: !1,
|
|
22621
22621
|
row: !0,
|
|
22622
22622
|
options: !0
|
|
22623
|
-
})) :
|
|
22623
|
+
})) : tt === Se - 1 ? (V = ne, k({
|
|
22624
22624
|
top: !1,
|
|
22625
22625
|
bottom: !1,
|
|
22626
22626
|
left: !1,
|
|
@@ -22650,13 +22650,13 @@ function h8({
|
|
|
22650
22650
|
right: pt,
|
|
22651
22651
|
bottom: Se,
|
|
22652
22652
|
height: _e
|
|
22653
|
-
} = $.getBoundingClientRect(), { y:
|
|
22653
|
+
} = $.getBoundingClientRect(), { y: tt, left: wt } = e.getBoundingClientRect();
|
|
22654
22654
|
if (P.current) {
|
|
22655
22655
|
const Ye = r.getElementByKey(
|
|
22656
22656
|
P.current.getKey()
|
|
22657
22657
|
);
|
|
22658
22658
|
if (Ye != null) {
|
|
22659
|
-
const Ze = Ye.getBoundingClientRect(), yt = $.getBoundingClientRect().left + $.clientWidth, ot = Ze.top -
|
|
22659
|
+
const Ze = Ye.getBoundingClientRect(), yt = $.getBoundingClientRect().left + $.clientWidth, ot = Ze.top - tt + 6;
|
|
22660
22660
|
let Cn = Ze.right - wt - 20;
|
|
22661
22661
|
Cn > yt - wt && (Cn = yt - wt - 20), S || y({
|
|
22662
22662
|
top: ot,
|
|
@@ -22670,7 +22670,7 @@ function h8({
|
|
|
22670
22670
|
width: Ze,
|
|
22671
22671
|
left: Ct,
|
|
22672
22672
|
right: yt
|
|
22673
|
-
} = R.current.getBoundingClientRect(), ot = Yr, Cn = Ct - wt - ot / 2, Lt = Ye -
|
|
22673
|
+
} = R.current.getBoundingClientRect(), ot = Yr, Cn = Ct - wt - ot / 2, Lt = Ye - tt - ot / 2;
|
|
22674
22674
|
let Sn = Ze + ot + 2;
|
|
22675
22675
|
yt > pt && (Sn = Sn - (yt - pt)), m({
|
|
22676
22676
|
width: Sn,
|
|
@@ -22680,7 +22680,7 @@ function h8({
|
|
|
22680
22680
|
});
|
|
22681
22681
|
}
|
|
22682
22682
|
if (L.current) {
|
|
22683
|
-
const { top: Ye, height: Ze } = L.current.getBoundingClientRect(), Ct = Yr, yt = mt - wt - Ct / 2, ot = Ye -
|
|
22683
|
+
const { top: Ye, height: Ze } = L.current.getBoundingClientRect(), Ct = Yr, yt = mt - wt - Ct / 2, ot = Ye - tt - Ct / 2;
|
|
22684
22684
|
C({
|
|
22685
22685
|
height: Ze + Ct + 2,
|
|
22686
22686
|
top: ot,
|
|
@@ -22693,7 +22693,7 @@ function h8({
|
|
|
22693
22693
|
"data-mantine-color-scheme"
|
|
22694
22694
|
) === "light" ? "rgba(173, 181, 189, 0.7)" : "";
|
|
22695
22695
|
if (ue) {
|
|
22696
|
-
const Ye = Se -
|
|
22696
|
+
const Ye = Se - tt + 3, Ze = ((Ce = $.firstElementChild) == null ? void 0 : Ce.clientWidth) || 0;
|
|
22697
22697
|
c({
|
|
22698
22698
|
left: mt - wt,
|
|
22699
22699
|
top: Ye,
|
|
@@ -22709,7 +22709,7 @@ function h8({
|
|
|
22709
22709
|
), f({
|
|
22710
22710
|
height: _e,
|
|
22711
22711
|
left: ge - wt + 3,
|
|
22712
|
-
top: Ue -
|
|
22712
|
+
top: Ue - tt,
|
|
22713
22713
|
padding: 0,
|
|
22714
22714
|
backgroundColor: Gt
|
|
22715
22715
|
}));
|
|
@@ -22817,7 +22817,7 @@ function h8({
|
|
|
22817
22817
|
cellMerge: t,
|
|
22818
22818
|
setIsMenuOpen: x,
|
|
22819
22819
|
tableDom: D.current,
|
|
22820
|
-
children: /* @__PURE__ */ h(
|
|
22820
|
+
children: /* @__PURE__ */ h(ut, { label: W("editor.table.settings"), children: /* @__PURE__ */ h(
|
|
22821
22821
|
It,
|
|
22822
22822
|
{
|
|
22823
22823
|
tabIndex: -1,
|
|
@@ -22848,7 +22848,7 @@ function h8({
|
|
|
22848
22848
|
transition: "fade",
|
|
22849
22849
|
duration: 300,
|
|
22850
22850
|
timingFunction: "ease",
|
|
22851
|
-
children: (X) => /* @__PURE__ */ h(
|
|
22851
|
+
children: (X) => /* @__PURE__ */ h(ut, { label: W("editor.table.menu.addRowBelow"), position: "bottom", children: /* @__PURE__ */ h(
|
|
22852
22852
|
hr,
|
|
22853
22853
|
{
|
|
22854
22854
|
className: "dsd__theme__tableAddRows",
|
|
@@ -22878,7 +22878,7 @@ function h8({
|
|
|
22878
22878
|
transition: "fade",
|
|
22879
22879
|
duration: 300,
|
|
22880
22880
|
timingFunction: "ease",
|
|
22881
|
-
children: (X) => /* @__PURE__ */ h(
|
|
22881
|
+
children: (X) => /* @__PURE__ */ h(ut, { label: W("editor.table.menu.addColAfter"), position: "right", children: /* @__PURE__ */ h(
|
|
22882
22882
|
hr,
|
|
22883
22883
|
{
|
|
22884
22884
|
className: "dsd__theme__tableAddColumns",
|
|
@@ -22915,7 +22915,7 @@ function h8({
|
|
|
22915
22915
|
className: "table-row-add-container",
|
|
22916
22916
|
style: { ...X, ...A },
|
|
22917
22917
|
children: L.current && /* @__PURE__ */ Z(Ni, { align: "stretch", justify: "space-between", h: "100%", children: [
|
|
22918
|
-
/* @__PURE__ */ h(
|
|
22918
|
+
/* @__PURE__ */ h(ut, { label: W("editor.table.menu.addRowAbove"), children: /* @__PURE__ */ h(
|
|
22919
22919
|
It,
|
|
22920
22920
|
{
|
|
22921
22921
|
onClick: () => he(!1),
|
|
@@ -22931,7 +22931,7 @@ function h8({
|
|
|
22931
22931
|
children: /* @__PURE__ */ h(jr, { size: 10, stroke: 1 })
|
|
22932
22932
|
}
|
|
22933
22933
|
) }),
|
|
22934
|
-
/* @__PURE__ */ h(
|
|
22934
|
+
/* @__PURE__ */ h(ut, { label: W("editor.table.menu.addRowBelow"), children: /* @__PURE__ */ h(
|
|
22935
22935
|
It,
|
|
22936
22936
|
{
|
|
22937
22937
|
onClick: () => he(!0),
|
|
@@ -22966,7 +22966,7 @@ function h8({
|
|
|
22966
22966
|
className: "table-cell-add-container",
|
|
22967
22967
|
style: { ...X, ...g },
|
|
22968
22968
|
children: /* @__PURE__ */ Z(Me, { justify: b.left ? "space-between" : "flex-end", children: [
|
|
22969
|
-
/* @__PURE__ */ h(Qe, { children: b.left && /* @__PURE__ */ h(
|
|
22969
|
+
/* @__PURE__ */ h(Qe, { children: b.left && /* @__PURE__ */ h(ut, { label: W("editor.table.menu.addColBefore"), children: /* @__PURE__ */ h(
|
|
22970
22970
|
It,
|
|
22971
22971
|
{
|
|
22972
22972
|
onClick: () => ye(!1),
|
|
@@ -22978,7 +22978,7 @@ function h8({
|
|
|
22978
22978
|
children: /* @__PURE__ */ h(jr, { size: 10, stroke: 1 })
|
|
22979
22979
|
}
|
|
22980
22980
|
) }) }),
|
|
22981
|
-
/* @__PURE__ */ h(Qe, { children: b.right && /* @__PURE__ */ h(
|
|
22981
|
+
/* @__PURE__ */ h(Qe, { children: b.right && /* @__PURE__ */ h(ut, { label: W("editor.table.menu.addColAfter"), children: /* @__PURE__ */ h(
|
|
22982
22982
|
It,
|
|
22983
22983
|
{
|
|
22984
22984
|
onClick: () => ye(!0),
|
|
@@ -23005,7 +23005,7 @@ function g8(e, n, t) {
|
|
|
23005
23005
|
);
|
|
23006
23006
|
if (n.read(() => {
|
|
23007
23007
|
const l = Et().getLastChild();
|
|
23008
|
-
|
|
23008
|
+
dt(l) && !t && s && (o = "editor", s.style.visibility = "hidden");
|
|
23009
23009
|
}), r && (r instanceof HTMLElement || r instanceof SVGElement)) {
|
|
23010
23010
|
const l = "td.dsd__theme__tableCell, th.dsd__theme__tableCell";
|
|
23011
23011
|
let c = r.closest(l);
|
|
@@ -23319,7 +23319,7 @@ function sA(e) {
|
|
|
23319
23319
|
const w8 = (e) => {
|
|
23320
23320
|
const n = oe();
|
|
23321
23321
|
if (de(n) && n.isCollapsed()) {
|
|
23322
|
-
const t = n.anchor.getNode(), r = xe(t,
|
|
23322
|
+
const t = n.anchor.getNode(), r = xe(t, dt), o = xe(
|
|
23323
23323
|
t,
|
|
23324
23324
|
ve
|
|
23325
23325
|
);
|
|
@@ -23332,7 +23332,7 @@ const w8 = (e) => {
|
|
|
23332
23332
|
return !0;
|
|
23333
23333
|
};
|
|
23334
23334
|
function y8(e) {
|
|
23335
|
-
const { floatingAnchorElem: n, isSmallWidthViewport: t } = e, [r] = ze(), { disable: o } =
|
|
23335
|
+
const { floatingAnchorElem: n, isSmallWidthViewport: t } = e, [r] = ze(), { disable: o } = et(ct), {
|
|
23336
23336
|
settings: { tableCellMerge: s, showTableOfContents: l, tableCellBackgroundColor: c }
|
|
23337
23337
|
} = gC();
|
|
23338
23338
|
return _(() => Bt(
|
|
@@ -23360,7 +23360,7 @@ function y8(e) {
|
|
|
23360
23360
|
jt
|
|
23361
23361
|
), D = xe(
|
|
23362
23362
|
x,
|
|
23363
|
-
|
|
23363
|
+
dt
|
|
23364
23364
|
);
|
|
23365
23365
|
if (!D || !B || !I)
|
|
23366
23366
|
return !1;
|
|
@@ -23400,7 +23400,7 @@ function y8(e) {
|
|
|
23400
23400
|
const f = oe(), g = f == null ? void 0 : f.getNodes();
|
|
23401
23401
|
return (g == null ? void 0 : g.length) > 1 && ve(g[1]) && r.update(() => {
|
|
23402
23402
|
g.forEach((w) => {
|
|
23403
|
-
|
|
23403
|
+
dt(w) && w.remove();
|
|
23404
23404
|
});
|
|
23405
23405
|
}), !1;
|
|
23406
23406
|
},
|
|
@@ -23481,7 +23481,7 @@ function S8({
|
|
|
23481
23481
|
shadow: "md",
|
|
23482
23482
|
styles: { dropdown: { zIndex: 1e3 } },
|
|
23483
23483
|
children: [
|
|
23484
|
-
/* @__PURE__ */ h(me.Target, { children: /* @__PURE__ */ h(
|
|
23484
|
+
/* @__PURE__ */ h(me.Target, { children: /* @__PURE__ */ h(ut, { label: o("editor.toolbar.align"), children: /* @__PURE__ */ Z(
|
|
23485
23485
|
"button",
|
|
23486
23486
|
{
|
|
23487
23487
|
disabled: t,
|
|
@@ -23853,7 +23853,7 @@ const F8 = () => {
|
|
|
23853
23853
|
const [e, n] = J({
|
|
23854
23854
|
top: "0px",
|
|
23855
23855
|
bottom: "auto"
|
|
23856
|
-
}), [t, r] = J(!1), [o, s] = J(!1), [l] = ze(), [c, d] = J("main"), [f, g] = J(""), [m, A] = J(""), [C, w] = J(""), [y, b] = J(null), [k, S] = J(!1), { fetchPromptResult: x } =
|
|
23856
|
+
}), [t, r] = J(!1), [o, s] = J(!1), [l] = ze(), [c, d] = J("main"), [f, g] = J(""), [m, A] = J(""), [C, w] = J(""), [y, b] = J(null), [k, S] = J(!1), { fetchPromptResult: x } = et(ct), { t: I } = lt(), [B, D] = Gx(), M = () => {
|
|
23857
23857
|
r(!1), s(!1), w(""), d("main"), setTimeout(() => {
|
|
23858
23858
|
n({ top: "0px", bottom: "auto" });
|
|
23859
23859
|
}, 200);
|
|
@@ -23975,7 +23975,7 @@ const F8 = () => {
|
|
|
23975
23975
|
}
|
|
23976
23976
|
),
|
|
23977
23977
|
/* @__PURE__ */ h(Kn, { w: "auto", mt: "xs", children: /* @__PURE__ */ h(zT, { value: C, timeout: 2e3, children: ({ copied: U, copy: ie }) => /* @__PURE__ */ h(
|
|
23978
|
-
|
|
23978
|
+
ut,
|
|
23979
23979
|
{
|
|
23980
23980
|
label: U ? "Copied" : "Copy",
|
|
23981
23981
|
withArrow: !0,
|
|
@@ -24103,7 +24103,7 @@ const F8 = () => {
|
|
|
24103
24103
|
children: e,
|
|
24104
24104
|
...n
|
|
24105
24105
|
}) => {
|
|
24106
|
-
const { imagePickerSettings: t, maxFileSize: r } =
|
|
24106
|
+
const { imagePickerSettings: t, maxFileSize: r } = et(ct), { t: o } = lt("ui"), { giphyToken: s, unsplashClientId: l, link: c, download: d, maxUploadFiles: f } = t, g = kt(() => [
|
|
24107
24107
|
{ key: "gallery", enabled: !0 },
|
|
24108
24108
|
{ key: "giphy", enabled: s },
|
|
24109
24109
|
{
|
|
@@ -24138,7 +24138,7 @@ const F8 = () => {
|
|
|
24138
24138
|
isEditable: n,
|
|
24139
24139
|
t
|
|
24140
24140
|
}) => {
|
|
24141
|
-
const { fetchUploadMedia: r, imperativeHandleRef: o } =
|
|
24141
|
+
const { fetchUploadMedia: r, imperativeHandleRef: o } = et(ct), [s, l] = J(!1);
|
|
24142
24142
|
return r ? /* @__PURE__ */ h(
|
|
24143
24143
|
z8,
|
|
24144
24144
|
{
|
|
@@ -24157,7 +24157,7 @@ const F8 = () => {
|
|
|
24157
24157
|
src: c
|
|
24158
24158
|
}), l(!1);
|
|
24159
24159
|
},
|
|
24160
|
-
children: /* @__PURE__ */ h(
|
|
24160
|
+
children: /* @__PURE__ */ h(ut, { label: t("editor.image.add_photo"), children: /* @__PURE__ */ h(
|
|
24161
24161
|
"button",
|
|
24162
24162
|
{
|
|
24163
24163
|
disabled: !n,
|
|
@@ -24193,7 +24193,7 @@ function aA({
|
|
|
24193
24193
|
}) {
|
|
24194
24194
|
const [t] = ze(), [r, o] = J(t), [s, l] = J("paragraph"), [c, d] = J("root"), [f, g] = J(
|
|
24195
24195
|
null
|
|
24196
|
-
), [m, A] = J("#000"), [C, w] = J("#fff"), [y, b] = J("left"), [k, S] = J(!1), [x, I] = J(!1), [B, D] = J(!1), [M, L] = J(!1), [R, P] = J(!1), [W, O] = J(!1), [H, U] = J(!1), [ie, he] = J(!1), [ye, pe] = J(!1), [Q, fe] = J(!1), [X] = Of(), [j, Y] = J(!1), [re, ue] = J(!0), [V, $] = J(!0), [ne, Ce] = J(0), [se, ce] = J(() => t.isEditable()), Ve = e || "default", { excludeNodes: st, fetchUploadMedia: Ue, fetchPromptResult: mt, commentController: pt } =
|
|
24196
|
+
), [m, A] = J("#000"), [C, w] = J("#fff"), [y, b] = J("left"), [k, S] = J(!1), [x, I] = J(!1), [B, D] = J(!1), [M, L] = J(!1), [R, P] = J(!1), [W, O] = J(!1), [H, U] = J(!1), [ie, he] = J(!1), [ye, pe] = J(!1), [Q, fe] = J(!1), [X] = Of(), [j, Y] = J(!1), [re, ue] = J(!0), [V, $] = J(!0), [ne, Ce] = J(0), [se, ce] = J(() => t.isEditable()), Ve = e || "default", { excludeNodes: st, fetchUploadMedia: Ue, fetchPromptResult: mt, commentController: pt } = et(ct), { t: Se } = lt(), _e = Ke(() => {
|
|
24197
24197
|
const ge = oe();
|
|
24198
24198
|
if (de(ge)) {
|
|
24199
24199
|
const Ye = ge.anchor.getNode(), Ze = ge.focus.getNode(), Ct = Hu(Ye) ? null : Ye.getTopLevelElementOrThrow(), yt = Hu(Ze) ? null : Ze.getTopLevelElementOrThrow();
|
|
@@ -24223,8 +24223,8 @@ function aA({
|
|
|
24223
24223
|
)), b(
|
|
24224
24224
|
Fe(En) ? En.getFormatType() : Fe(nn) ? nn.getFormatType() : (jn == null ? void 0 : jn.getFormatType()) || "left"
|
|
24225
24225
|
);
|
|
24226
|
-
const or = xe(nn,
|
|
24227
|
-
if (
|
|
24226
|
+
const or = xe(nn, dt);
|
|
24227
|
+
if (dt(or) ? d("table") : d("root"), Sn !== null && (Ct == null ? void 0 : Ct.getKey()) === (yt == null ? void 0 : yt.getKey()))
|
|
24228
24228
|
if (g(Lt), Pe(ot)) {
|
|
24229
24229
|
const on = ef(
|
|
24230
24230
|
Ye,
|
|
@@ -24281,7 +24281,7 @@ function aA({
|
|
|
24281
24281
|
() => {
|
|
24282
24282
|
const ge = oe();
|
|
24283
24283
|
if (de(ge)) {
|
|
24284
|
-
const Ye = ge.getNodes(), Ze = Ye.length > 0 && Ye.every((Ct) => Dr(Ct) ||
|
|
24284
|
+
const Ye = ge.getNodes(), Ze = Ye.length > 0 && Ye.every((Ct) => Dr(Ct) || dt(Ct) || Wn(Ct) ? !1 : Fe(Ct) || $r(Ct));
|
|
24285
24285
|
$(!Ze);
|
|
24286
24286
|
}
|
|
24287
24287
|
return !1;
|
|
@@ -24300,7 +24300,7 @@ function aA({
|
|
|
24300
24300
|
},
|
|
24301
24301
|
[r]
|
|
24302
24302
|
);
|
|
24303
|
-
const
|
|
24303
|
+
const tt = Ke(() => {
|
|
24304
24304
|
setTimeout(() => {
|
|
24305
24305
|
r.dispatchCommand(Ht, "");
|
|
24306
24306
|
}), r.update(() => {
|
|
@@ -24354,7 +24354,7 @@ function aA({
|
|
|
24354
24354
|
/* @__PURE__ */ h(qa, {})
|
|
24355
24355
|
] }),
|
|
24356
24356
|
/* @__PURE__ */ Z(Qe, { children: [
|
|
24357
|
-
/* @__PURE__ */ h(
|
|
24357
|
+
/* @__PURE__ */ h(ut, { label: Se("editor.toolbar.bold"), children: /* @__PURE__ */ h(
|
|
24358
24358
|
"button",
|
|
24359
24359
|
{
|
|
24360
24360
|
disabled: !se,
|
|
@@ -24367,7 +24367,7 @@ function aA({
|
|
|
24367
24367
|
children: /* @__PURE__ */ h(be, { name: "bold" })
|
|
24368
24368
|
}
|
|
24369
24369
|
) }),
|
|
24370
|
-
/* @__PURE__ */ h(
|
|
24370
|
+
/* @__PURE__ */ h(ut, { label: Se("editor.toolbar.italic"), children: /* @__PURE__ */ h(
|
|
24371
24371
|
"button",
|
|
24372
24372
|
{
|
|
24373
24373
|
disabled: !se,
|
|
@@ -24380,7 +24380,7 @@ function aA({
|
|
|
24380
24380
|
children: /* @__PURE__ */ h(be, { name: "italic" })
|
|
24381
24381
|
}
|
|
24382
24382
|
) }),
|
|
24383
|
-
/* @__PURE__ */ h(
|
|
24383
|
+
/* @__PURE__ */ h(ut, { label: Se("editor.toolbar.underline"), children: /* @__PURE__ */ h(
|
|
24384
24384
|
"button",
|
|
24385
24385
|
{
|
|
24386
24386
|
disabled: !se,
|
|
@@ -24393,7 +24393,7 @@ function aA({
|
|
|
24393
24393
|
children: /* @__PURE__ */ h(be, { name: "underline" })
|
|
24394
24394
|
}
|
|
24395
24395
|
) }),
|
|
24396
|
-
/* @__PURE__ */ h(
|
|
24396
|
+
/* @__PURE__ */ h(ut, { label: Se("editor.toolbar.strike"), children: /* @__PURE__ */ h(
|
|
24397
24397
|
"button",
|
|
24398
24398
|
{
|
|
24399
24399
|
disabled: !se,
|
|
@@ -24408,7 +24408,7 @@ function aA({
|
|
|
24408
24408
|
children: /* @__PURE__ */ h(be, { name: "strikethrough" })
|
|
24409
24409
|
}
|
|
24410
24410
|
) }),
|
|
24411
|
-
/* @__PURE__ */ h(
|
|
24411
|
+
/* @__PURE__ */ h(ut, { label: Se("editor.toolbar.code"), children: /* @__PURE__ */ h(
|
|
24412
24412
|
"button",
|
|
24413
24413
|
{
|
|
24414
24414
|
disabled: !se,
|
|
@@ -24421,17 +24421,17 @@ function aA({
|
|
|
24421
24421
|
children: /* @__PURE__ */ h(be, { name: "code" })
|
|
24422
24422
|
}
|
|
24423
24423
|
) }),
|
|
24424
|
-
/* @__PURE__ */ h(
|
|
24424
|
+
/* @__PURE__ */ h(ut, { label: Se("editor.toolbar.clear"), children: /* @__PURE__ */ h(
|
|
24425
24425
|
"button",
|
|
24426
24426
|
{
|
|
24427
24427
|
disabled: !se,
|
|
24428
24428
|
className: "toolbar-item",
|
|
24429
|
-
onClick:
|
|
24429
|
+
onClick: tt,
|
|
24430
24430
|
"data-test-id": "toolbar-clear-format",
|
|
24431
24431
|
children: /* @__PURE__ */ h(be, { name: "сlear-format" })
|
|
24432
24432
|
}
|
|
24433
24433
|
) }),
|
|
24434
|
-
/* @__PURE__ */ h(
|
|
24434
|
+
/* @__PURE__ */ h(ut, { disabled: !se, label: Se("editor.toolbar.link"), children: /* @__PURE__ */ h(
|
|
24435
24435
|
"button",
|
|
24436
24436
|
{
|
|
24437
24437
|
onClick: Gt,
|
|
@@ -24444,7 +24444,7 @@ function aA({
|
|
|
24444
24444
|
children: /* @__PURE__ */ h(be, { name: "link" })
|
|
24445
24445
|
}
|
|
24446
24446
|
) }),
|
|
24447
|
-
pt && e === "editor" && /* @__PURE__ */ h(
|
|
24447
|
+
pt && e === "editor" && /* @__PURE__ */ h(ut, { label: Se("editor.toolbar.comment"), children: /* @__PURE__ */ h(
|
|
24448
24448
|
"button",
|
|
24449
24449
|
{
|
|
24450
24450
|
onClick: fn,
|
|
@@ -24654,9 +24654,9 @@ function W8() {
|
|
|
24654
24654
|
function H8(e, n) {
|
|
24655
24655
|
for (let t = 0; t < n.length; t++) {
|
|
24656
24656
|
const r = n[t];
|
|
24657
|
-
if (
|
|
24657
|
+
if (rt(r)) {
|
|
24658
24658
|
const o = r.getParent(), s = Pe(o) ? o.getListType() : "bullet", l = Yt(s);
|
|
24659
|
-
for (; t < n.length &&
|
|
24659
|
+
for (; t < n.length && rt(n[t]); )
|
|
24660
24660
|
l.append(n[t]), t++;
|
|
24661
24661
|
e.append(l), t--;
|
|
24662
24662
|
} else
|
|
@@ -24678,7 +24678,7 @@ function Y8(e, n) {
|
|
|
24678
24678
|
r + 1
|
|
24679
24679
|
), s = e.getParent(), l = e.getNextSibling();
|
|
24680
24680
|
if (n.remove(), e.getChildrenSize() === 0) {
|
|
24681
|
-
if (s &&
|
|
24681
|
+
if (s && rt(s)) {
|
|
24682
24682
|
const c = s.getParent();
|
|
24683
24683
|
if (c && Pe(c)) {
|
|
24684
24684
|
const d = c.getChildren().findIndex((f) => f.getKey() === s.getKey());
|
|
@@ -24766,7 +24766,7 @@ function Uu(e, n) {
|
|
|
24766
24766
|
for (; t; ) {
|
|
24767
24767
|
if (Fe(t)) {
|
|
24768
24768
|
const r = t.getParent();
|
|
24769
|
-
if (
|
|
24769
|
+
if (rt(t) || (r == null ? void 0 : r.getKey()) === n.getKey()) return t;
|
|
24770
24770
|
}
|
|
24771
24771
|
t = t.getParent();
|
|
24772
24772
|
}
|
|
@@ -24778,7 +24778,7 @@ function G8(e) {
|
|
|
24778
24778
|
if (Pe(r))
|
|
24779
24779
|
for (const o of r.getChildren())
|
|
24780
24780
|
t(o);
|
|
24781
|
-
else if (
|
|
24781
|
+
else if (rt(r)) {
|
|
24782
24782
|
n.push(r);
|
|
24783
24783
|
for (const o of r.getChildren())
|
|
24784
24784
|
t(o);
|
|
@@ -24848,7 +24848,7 @@ const V8 = (e, n) => {
|
|
|
24848
24848
|
o.append(l);
|
|
24849
24849
|
};
|
|
24850
24850
|
function _8() {
|
|
24851
|
-
const [e] = ze(), { imperativeHandleRef: n } =
|
|
24851
|
+
const [e] = ze(), { imperativeHandleRef: n } = et(ct), t = Ke(() => {
|
|
24852
24852
|
const r = Rt(), { lexicalNode: o } = Pi(r, e, {
|
|
24853
24853
|
"callout-wrapper": !0
|
|
24854
24854
|
});
|
|
@@ -25475,7 +25475,7 @@ function A5({
|
|
|
25475
25475
|
return /* @__PURE__ */ Z(Ni, { gap: 0, children: [
|
|
25476
25476
|
/* @__PURE__ */ Z(Me, { wrap: "nowrap", pl: "sm", gap: "xs", children: [
|
|
25477
25477
|
/* @__PURE__ */ h(be, { name: "link" }),
|
|
25478
|
-
/* @__PURE__ */ h(
|
|
25478
|
+
/* @__PURE__ */ h(ut, { label: e, zIndex: 1e3, openDelay: 500, children: /* @__PURE__ */ h(
|
|
25479
25479
|
Qd,
|
|
25480
25480
|
{
|
|
25481
25481
|
href: n,
|
|
@@ -25705,20 +25705,23 @@ function C5({
|
|
|
25705
25705
|
) });
|
|
25706
25706
|
}
|
|
25707
25707
|
function w5(e) {
|
|
25708
|
-
const [n] = ze(), t =
|
|
25708
|
+
const [n] = ze(), { disable: t } = et(ct);
|
|
25709
|
+
if (t)
|
|
25710
|
+
return null;
|
|
25711
|
+
const r = Te({
|
|
25709
25712
|
updateLinkEditor: () => {
|
|
25710
25713
|
}
|
|
25711
|
-
}),
|
|
25714
|
+
}), o = jo(() => {
|
|
25712
25715
|
n.update(() => {
|
|
25713
|
-
|
|
25716
|
+
r.current.updateLinkEditor();
|
|
25714
25717
|
});
|
|
25715
25718
|
}, 200);
|
|
25716
25719
|
return /* @__PURE__ */ Z(Qe, { children: [
|
|
25717
25720
|
/* @__PURE__ */ h(
|
|
25718
25721
|
t5,
|
|
25719
25722
|
{
|
|
25720
|
-
onChange: (...
|
|
25721
|
-
|
|
25723
|
+
onChange: (...s) => {
|
|
25724
|
+
s[1] === "paste" && o();
|
|
25722
25725
|
}
|
|
25723
25726
|
}
|
|
25724
25727
|
),
|
|
@@ -25727,7 +25730,7 @@ function w5(e) {
|
|
|
25727
25730
|
C5,
|
|
25728
25731
|
{
|
|
25729
25732
|
showTextToolbar: e,
|
|
25730
|
-
updateLink:
|
|
25733
|
+
updateLink: r
|
|
25731
25734
|
}
|
|
25732
25735
|
),
|
|
25733
25736
|
document.body
|
|
@@ -25856,7 +25859,7 @@ const E5 = "_listContainer_1d88b_1", k5 = "_list_1d88b_1", T5 = "_text_1d88b_28"
|
|
|
25856
25859
|
text: T5
|
|
25857
25860
|
}, x5 = ({ editor: e }) => {
|
|
25858
25861
|
var f;
|
|
25859
|
-
const [n, t] = J(!1), { t: r, i18n: o } = lt(), { excludeNodes: s } =
|
|
25862
|
+
const [n, t] = J(!1), { t: r, i18n: o } = lt(), { excludeNodes: s } = et(ct), l = (g) => {
|
|
25860
25863
|
const m = document.querySelector(".editor-container");
|
|
25861
25864
|
if (g) {
|
|
25862
25865
|
m.classList.add("empty-editor");
|
|
@@ -25931,7 +25934,7 @@ const E5 = "_listContainer_1d88b_1", k5 = "_list_1d88b_1", T5 = "_text_1d88b_28"
|
|
|
25931
25934
|
title: r("editor.menu.media.excalidraw.hint.description"),
|
|
25932
25935
|
icon: /* @__PURE__ */ h(HA, { stroke: 2, size: 18 }),
|
|
25933
25936
|
onSelect: () => {
|
|
25934
|
-
import("./layers.
|
|
25937
|
+
import("./layers.CR3oIT7G.js").then(
|
|
25935
25938
|
({ INSERT_EXCALIDRAW_COMMAND: g }) => {
|
|
25936
25939
|
c(e, () => {
|
|
25937
25940
|
e.dispatchCommand(g, void 0);
|
|
@@ -26198,7 +26201,7 @@ function D5(e, n, t, r) {
|
|
|
26198
26201
|
/* @__PURE__ */ h(Qe, { children: e })
|
|
26199
26202
|
);
|
|
26200
26203
|
}
|
|
26201
|
-
const mA = Ml(() => import("./layers.
|
|
26204
|
+
const mA = Ml(() => import("./layers.CR3oIT7G.js"));
|
|
26202
26205
|
function Re(e, n) {
|
|
26203
26206
|
const t = L5[e];
|
|
26204
26207
|
return t ? t[n] : !0;
|
|
@@ -26218,7 +26221,7 @@ function I5(e) {
|
|
|
26218
26221
|
onChange: m,
|
|
26219
26222
|
outputFormat: A,
|
|
26220
26223
|
debounceMs: C
|
|
26221
|
-
} = e, w = l === "editor", y = l === "comment", [b, k] = J(!1), { excludeNodes: S, plugins: x } =
|
|
26224
|
+
} = e, w = l === "editor", y = l === "comment", [b, k] = J(!1), { excludeNodes: S, plugins: x } = et(ct), {
|
|
26222
26225
|
settings: { isRichText: I, showTreeView: B, isMaxLength: D }
|
|
26223
26226
|
} = gC(), { historyState: M } = pC(), { triggerOnChangeCommand: L, onChangeValue: R, onBlurValue: P } = M5({
|
|
26224
26227
|
editor: d,
|
|
@@ -26398,7 +26401,7 @@ const P5 = (e, n, t) => {
|
|
|
26398
26401
|
else {
|
|
26399
26402
|
if (Lr(o))
|
|
26400
26403
|
return lR(e);
|
|
26401
|
-
if (
|
|
26404
|
+
if (rt(o))
|
|
26402
26405
|
return R5(n);
|
|
26403
26406
|
if (Bi(o))
|
|
26404
26407
|
return gR(e);
|
|
@@ -26471,7 +26474,7 @@ function W5(e) {
|
|
|
26471
26474
|
onChange: m,
|
|
26472
26475
|
outputFormat: A,
|
|
26473
26476
|
debounceMs: C
|
|
26474
|
-
} = e, [w, y] = J(null), [b, k] = J(!1), S = Te(!1), [x, ...I] = ze(), { shiftEnterInsertNewLine: B } =
|
|
26477
|
+
} = e, [w, y] = J(null), [b, k] = J(!1), S = Te(!1), [x, ...I] = ze(), { shiftEnterInsertNewLine: B } = et(ct);
|
|
26475
26478
|
QN({
|
|
26476
26479
|
editor: x
|
|
26477
26480
|
}), _(() => {
|
|
@@ -26750,7 +26753,7 @@ function J5(e, n) {
|
|
|
26750
26753
|
let t = n.get(e);
|
|
26751
26754
|
return t === void 0 ? (t = new KT(), n.set(e, t)) : t.load(), t;
|
|
26752
26755
|
}
|
|
26753
|
-
const X5 = id ? "" : "os-windows", V5 = ({ children: e }) => /* @__PURE__ */ h("div", { className: `doc-space-styles-provider ${X5}`, children: e }),
|
|
26756
|
+
const X5 = id ? "" : "os-windows", V5 = ({ children: e }) => /* @__PURE__ */ h("div", { className: `doc-space-styles-provider ${X5}`, children: e }), ct = $o({
|
|
26754
26757
|
maxFileSize: 5,
|
|
26755
26758
|
disable: !1,
|
|
26756
26759
|
excludeNodes: {},
|
|
@@ -26881,7 +26884,7 @@ const X5 = id ? "" : "os-windows", V5 = ({ children: e }) => /* @__PURE__ */ h("
|
|
|
26881
26884
|
plugins: P
|
|
26882
26885
|
};
|
|
26883
26886
|
}, [B, m, A, R, P]);
|
|
26884
|
-
return /* @__PURE__ */ h(
|
|
26887
|
+
return /* @__PURE__ */ h(ct.Provider, { value: $, children: /* @__PURE__ */ h(ET, { i18n: _u, children: /* @__PURE__ */ h(V5, { children: /* @__PURE__ */ Z(cB, { children: [
|
|
26885
26888
|
/* @__PURE__ */ h("div", { ref: he }),
|
|
26886
26889
|
/* @__PURE__ */ Z("div", { className: `doc-space-editor-wrapper ${W}${k ? " disabled" : ""}`, children: [
|
|
26887
26890
|
/* @__PURE__ */ h(
|
|
@@ -26938,7 +26941,7 @@ export {
|
|
|
26938
26941
|
Bs as $,
|
|
26939
26942
|
nB as A,
|
|
26940
26943
|
Cp as B,
|
|
26941
|
-
|
|
26944
|
+
ct as C,
|
|
26942
26945
|
Gl as E,
|
|
26943
26946
|
Fp as F,
|
|
26944
26947
|
z8 as I,
|