@layers-app/editor 0.7.23 → 0.7.24
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.d.ts +7 -79
- package/dist/index.js +9 -15
- package/dist/{layers.DrEc52LK.js → layers.-58OrB2h.js} +1 -1
- package/dist/{layers.RWijwG9P.js → layers.-qmjZJBI.js} +1 -1
- package/dist/layers.1s4BbICk.js +1 -0
- package/dist/{layers.-cpLB214.js → layers.53hChJFF.js} +6 -6
- package/dist/{layers.DnEkqLVp.js → layers.5R_vfSOI.js} +1 -1
- package/dist/{layers.DJw2J7bw.js → layers.5U6DsNQ8.js} +6 -9
- package/dist/{layers.CMYe7bYN.js → layers.6Og6_hox.js} +1 -1
- package/dist/{layers.BazhlVmO.js → layers.8HXImnXe.js} +7 -7
- package/dist/{layers.B9UnUe7h.js → layers.90LiGxII.js} +5 -8
- package/dist/{layers.NrGhQL7i.js → layers.A6MvZ2Sd.js} +4 -4
- package/dist/{layers.DYzee1AM.js → layers.Aw65tqqV.js} +1 -1
- package/dist/{layers.gaS1bI-f.js → layers.B-Ftwt7z.js} +1 -1
- package/dist/{layers.DT2omWm7.js → layers.B0gBsd1G.js} +15 -18
- package/dist/{layers.DXJdiDQR.js → layers.B1l2IEoW.js} +1 -1
- package/dist/{layers.BOn89qn9.js → layers.B2SmhxzW.js} +1 -1
- package/dist/{layers.CM1N26Bn.js → layers.B2nS5rBS.js} +1 -1
- package/dist/{layers.CQ_qc_P4.js → layers.B4ZRP4dv.js} +1 -1
- package/dist/{layers.CE4cvR9M.js → layers.B5V9R6dS.js} +89 -92
- package/dist/{layers.D7NU7knG.js → layers.B6C5kDa3.js} +1 -1
- package/dist/{layers.Pdfj-rps.js → layers.B8qo87mf.js} +1 -1
- package/dist/{layers.DWi6TS6_.js → layers.BB-2khdc.js} +4 -4
- package/dist/{layers.CZhCCCF4.js → layers.BBgqB-dj.js} +1 -1
- package/dist/{layers.Dk79hkeN.js → layers.BCDRxkn5.js} +84 -86
- package/dist/{layers.D15hEfXi.js → layers.BDuP7QP1.js} +7 -7
- package/dist/{layers.Dlx8_WlO.js → layers.BE_-JA1T.js} +1 -1
- package/dist/{layers.D_ElsD-x.js → layers.BFDXAxa6.js} +1 -1
- package/dist/{layers.CJuRPa36.js → layers.BFclfxlH.js} +3 -3
- package/dist/{layers.DgSp_qNb.js → layers.BG9jBVsg.js} +1 -1
- package/dist/{layers.D60upjIB.js → layers.BGGuOo27.js} +1 -1
- package/dist/{layers.I6dVKb2e.js → layers.BI0TTMdG.js} +1 -1
- package/dist/{layers.D8mfmXuz.js → layers.BJOmz-8E.js} +1 -1
- package/dist/{layers.CNaC0uOJ.js → layers.BKOg8e2U.js} +1 -1
- package/dist/{layers.CD5MZRoU.js → layers.BKWiI_4a.js} +1 -1
- package/dist/{layers.CHgOkwRS.js → layers.BLERpK_S.js} +1 -1
- package/dist/layers.BLvWGmxZ.js +304 -0
- package/dist/{layers.CaaLILN3.js → layers.BNxa_eCc.js} +1 -1
- package/dist/{layers.Bk57FuHz.js → layers.BOWoLhye.js} +3 -3
- package/dist/layers.BPXa6Xko.js +8 -0
- package/dist/{layers.CY50u5GH.js → layers.BSwRsFvu.js} +7 -7
- package/dist/layers.BUT_cQlY.js +1 -0
- package/dist/{layers.YI-YTy5V.js → layers.BV2fpDYI.js} +1 -1
- package/dist/{layers.CiInvjHq.js → layers.BVHCv5uJ.js} +4 -7
- package/dist/{layers.BMiwXEvW.js → layers.BVSO7aWV.js} +1 -1
- package/dist/{layers.CPa8seQC.js → layers.BW593_YD.js} +1 -1
- package/dist/{layers.Bhsf0xTD.js → layers.BY9o3NTY.js} +1 -1
- package/dist/layers.BZMHF27f.js +6 -0
- package/dist/{layers.BUGfxwRr.js → layers.BZv7cxTR.js} +89 -92
- package/dist/{layers.BO79CD9P.js → layers.BbDBKF7d.js} +1 -1
- package/dist/{layers.DxlYXQXW.js → layers.BdiCSpJ4.js} +1 -1
- package/dist/{layers.BGdjq9k4.js → layers.Bdzg4UkM.js} +1 -1
- package/dist/{layers.CGjdGBZm.js → layers.BfK7Zksy.js} +1 -1
- package/dist/layers.Bfcc7TOH.js +1 -0
- package/dist/{layers.DK3yoXNH.js → layers.BhOCkx36.js} +1 -1
- package/dist/{layers.29-Qh75h.js → layers.Bi8uSmnl.js} +1 -1
- package/dist/{layers.COELVm2I.js → layers.BiD-9uwr.js} +1 -1
- package/dist/layers.BjtEPALX.js +19 -0
- package/dist/layers.BlT1aHiA.js +1 -0
- package/dist/{layers.D_LRJFEv.js → layers.Bq3WRO3x.js} +1 -1
- package/dist/{layers.bc_jaTfK.js → layers.BqikkqHY.js} +1 -1
- package/dist/{layers.uRZ4uGOB.js → layers.BqkB6bfG.js} +1 -1
- package/dist/{layers.Bm6lNIVW.js → layers.BqxiZwrm.js} +1 -1
- package/dist/layers.Br5DTynl.js +74 -0
- package/dist/{layers.Dv6WAMwH.js → layers.BrUMsy26.js} +1 -1
- package/dist/{layers.D1jHpzKw.js → layers.BsV8AKqE.js} +6 -9
- package/dist/{layers.BvzZuQYi.js → layers.BuGAznjj.js} +4 -4
- package/dist/{layers.BZETNwke.js → layers.Bv1xDmd0.js} +1 -1
- package/dist/{layers.B2KFTJGl.js → layers.Bvra5UGQ.js} +1 -1
- package/dist/{layers.73y0cSdc.js → layers.BwHEZWKu.js} +1 -1
- package/dist/{layers.BCqWj4Xz.js → layers.BwtMeyCj.js} +3 -3
- package/dist/{layers.DjfEK9cQ.js → layers.BxX_THjw.js} +1 -1
- package/dist/{layers.BiqSW2by.js → layers.Bzrkz_Q7.js} +1 -1
- package/dist/{layers.ij555eO_.js → layers.C-UCCxZT.js} +1 -1
- package/dist/{layers.DPnWbB6j.js → layers.C0BLZbdT.js} +1 -1
- package/dist/{layers.Cw-HPQf-.js → layers.C2-P7-v8.js} +1 -1
- package/dist/{layers.Z4nbVM_-.js → layers.C20Qi890.js} +1 -1
- package/dist/{layers.tfwszVHU.js → layers.C47JbXwl.js} +1 -1
- package/dist/{layers.BIG9YKzs.js → layers.C5JgdF76.js} +1 -1
- package/dist/{layers.BffDLyKk.js → layers.CA5feGxW.js} +1 -1
- package/dist/{layers.BDD1KfeR.js → layers.CCqe9zp9.js} +1 -1
- package/dist/{layers.TYxUe44n.js → layers.CDPIcOqa.js} +1 -1
- package/dist/{layers.BSfmVK7z.js → layers.CDexQZa_.js} +5 -8
- package/dist/{layers.C0OvS3X2.js → layers.CFSfvSsm.js} +1 -1
- package/dist/{layers.CcDkFL6P.js → layers.CH4plVEu.js} +3 -3
- package/dist/{layers.DBMV9sVv.js → layers.CHa9lFoT.js} +1 -1
- package/dist/{layers.CXDrUFaD.js → layers.CLT1Xhw2.js} +1 -1
- package/dist/{layers.2g3p410y.js → layers.CP3EufOe.js} +1 -1
- package/dist/{layers.Jso1Rtcd.js → layers.CPIxu6GO.js} +5 -8
- package/dist/{layers.D3HS9TbW.js → layers.CQMssu5A.js} +1 -1
- package/dist/layers.CQR0Nl7I.js +1 -0
- package/dist/{layers.35jlOcdS.js → layers.CR8SQeln.js} +224 -227
- package/dist/{layers.CJdUktnw.js → layers.CRKCl3-s.js} +1 -1
- package/dist/{layers.CHZLcfzW.js → layers.CSi2XRJ2.js} +1 -1
- package/dist/{layers.CxxIH2di.js → layers.CUV1fBKt.js} +12 -15
- package/dist/{layers.C2uP3dSX.js → layers.CV3PBAi0.js} +1 -1
- package/dist/{layers.BqRK5hcw.js → layers.CXPJGJnh.js} +1 -1
- package/dist/{layers.hgaybOo2.js → layers.CXp0yiA_.js} +1 -1
- package/dist/{layers.zxBrRE1P.js → layers.CYMmJIgK.js} +4 -7
- package/dist/{layers.D6MKuxHB.js → layers.Ca_hxCzh.js} +1 -1
- package/dist/{layers.CvQemHpn.js → layers.CadrukAB.js} +1 -1
- package/dist/{layers.Cz08SEjI.js → layers.Cc1VRWwn.js} +1 -1
- package/dist/{layers.pU2_Gt2w.js → layers.CeuPBpSS.js} +1 -1
- package/dist/{layers.DxJkl90c.js → layers.Cf85CE4j.js} +1 -1
- package/dist/{layers.CsMF9Mcc.js → layers.CfJUJqdv.js} +1 -1
- package/dist/layers.CgDb5aPr.js +2 -0
- package/dist/{layers.Bk6_Os8z.js → layers.CiFtNCp_.js} +1 -1
- package/dist/{layers.CA6t_Bjs.js → layers.CkEhuwys.js} +8 -11
- package/dist/{layers.BVKQ1q-V.js → layers.CmWWurhR.js} +1 -1
- package/dist/layers.CmxZ8EKk.js +1 -0
- package/dist/{layers.Q_PS-tRN.js → layers.Co1X8jDP.js} +1 -1
- package/dist/{layers.B2HAS3jD.js → layers.CoCdUjOH.js} +1 -1
- package/dist/layers.Cp63Ydn2.js +50707 -0
- package/dist/{layers.C4B4dvWx.js → layers.CqggRfmv.js} +1 -1
- package/dist/layers.CtCTIWni.js +1 -0
- package/dist/layers.Ctzw3Xb5.js +1 -0
- package/dist/{layers.DTuGifBE.js → layers.CvU_g0Ek.js} +1 -1
- package/dist/layers.Cw5bBQfp.js +118 -0
- package/dist/{layers.CP2XIdh_.js → layers.Cynva3D_.js} +1 -1
- package/dist/{layers.KlKmfsBA.js → layers.Czdt779o.js} +1 -1
- package/dist/{layers.-Tff0gbg.js → layers.D-iLQKYz.js} +1 -1
- package/dist/layers.D0GEGoV_.js +373 -0
- package/dist/{layers.uzQ-2V7t.js → layers.D0ptqEmo.js} +1 -1
- package/dist/{layers.CwqZ78CF.js → layers.D33lu-eC.js} +1 -1
- package/dist/{layers.CIBX4kN6.js → layers.D4VJ5B0e.js} +1 -1
- package/dist/layers.D5DNThwz.js +208 -0
- package/dist/{layers.Bu85fkOP.js → layers.D6XgZ8Az.js} +1 -1
- package/dist/layers.D71D_04V.js +1359 -0
- package/dist/{layers.D2f2ApIk.js → layers.D8vSQAh0.js} +8 -8
- package/dist/{layers.CnjADqOy.js → layers.D9yXBIuK.js} +1 -1
- package/dist/{layers.Cnqb7wKB.js → layers.DAF65Eyh.js} +1 -1
- package/dist/{layers.C4mOUFRJ.js → layers.DD5DttRP.js} +1 -1
- package/dist/{layers.C24-EacD.js → layers.DH-cj5fE.js} +2 -2
- package/dist/{layers.B-kCa5Od.js → layers.DJ7ZL_sW.js} +6 -9
- package/dist/layers.DJnnhy8m.js +96 -0
- package/dist/{layers.CMxdtuyk.js → layers.DM9hpazD.js} +1 -1
- package/dist/{layers.CSqoVmKS.js → layers.DNJEfwiQ.js} +1 -1
- package/dist/{layers.CupTWZsA.js → layers.DNOD_LF5.js} +1 -1
- package/dist/{layers.BLzus7b8.js → layers.DO1NcRAM.js} +1 -1
- package/dist/{layers.DbhnKU2H.js → layers.DPP6_cbD.js} +6 -9
- package/dist/{layers.C7SPnzuD.js → layers.DQIT2lCm.js} +1 -1
- package/dist/{layers.V47hYk_p.js → layers.DRZylWPP.js} +1 -1
- package/dist/{layers.uaIfPWsI.js → layers.DU7EZINs.js} +1 -1
- package/dist/{layers.4pgTRQX0.js → layers.DXyBsBF5.js} +1 -1
- package/dist/{layers.BJzTny2j.js → layers.D_XM1OQx.js} +3 -3
- package/dist/{layers.CJAH6bhp.js → layers.DcKjvxHE.js} +1 -1
- package/dist/{layers.BhTu7lKR.js → layers.DenZLHkn.js} +1 -1
- package/dist/{layers.BsHOozaJ.js → layers.Df79MJjN.js} +3 -3
- package/dist/{layers.DV77DVIT.js → layers.DfgtWeVl.js} +1 -1
- package/dist/layers.DgCaJXYg.js +257 -0
- package/dist/{layers.BOMJfSmk.js → layers.DjGdrDC1.js} +1 -1
- package/dist/{layers.Ba0U3m_a.js → layers.DmEW632Y.js} +2 -2
- package/dist/{layers.CG2UCtoJ.js → layers.DnvUnO-4.js} +1 -1
- package/dist/{layers.CfE7zjUC.js → layers.DpAWXloN.js} +7 -10
- package/dist/{layers.2nKKnihc.js → layers.Dq9b1xqh.js} +1 -1
- package/dist/{layers.CO_gtBDp.js → layers.DrZAE5o5.js} +1 -1
- package/dist/{layers.DDIAJqfF.js → layers.DrprvZC4.js} +1 -1
- package/dist/{layers.HUBCzsU0.js → layers.DvNvJZss.js} +1 -1
- package/dist/layers.Dvl1mlTI.js +1 -0
- package/dist/{layers.CbbuOQ3N.js → layers.DyvnTlHi.js} +1 -1
- package/dist/layers.DzDR_oG4.js +8 -0
- package/dist/{layers.Cf41PJM_.js → layers.DzghPRf3.js} +3813 -3230
- package/dist/{layers._pWN5IRm.js → layers.EXQpfQWq.js} +1 -1
- package/dist/{layers.y9K1nFwM.js → layers.FBzg3C04.js} +50 -50
- package/dist/{layers.DHXWA0Q_.js → layers.FlOgidCp.js} +1 -1
- package/dist/{layers.CyXyFV7h.js → layers.I85BW5o2.js} +1 -1
- package/dist/{layers.DYQ3Thdf.js → layers.IPxhkSfj.js} +1 -1
- package/dist/{layers.CPCRYtsi.js → layers.Lc29kAuz.js} +1 -1
- package/dist/{layers.DdfRdbPy.js → layers.MHEFRzDP.js} +5 -8
- package/dist/{layers.Cbgf19EI.js → layers.MNW-ShKu.js} +11 -14
- package/dist/{layers.CtKHNDRt.js → layers.Me9S-22r.js} +7 -10
- package/dist/{layers.u5kr3hHk.js → layers.Q-xFVVwC.js} +1 -1
- package/dist/layers.Qn6nodoY.js +2 -0
- package/dist/layers.R8mPlCA0.js +261 -0
- package/dist/{layers.BO4uJmfR.js → layers.RpoUh8kq.js} +1 -1
- package/dist/{layers.8ytQIYJn.js → layers.SsSYgMGG.js} +1 -1
- package/dist/{layers.BwTGqVnK.js → layers.V-9Fvifr.js} +1 -1
- package/dist/{layers.SlCB94vp.js → layers.W66NF2U9.js} +1 -1
- package/dist/{layers.CkH00BH2.js → layers.WwL-1p8w.js} +1 -1
- package/dist/{layers.CJc3FMhy.js → layers.X0J3BhYy.js} +4 -7
- package/dist/{layers.B9y931t5.js → layers.XS2AIvBG.js} +1 -1
- package/dist/{layers.CGId_znN.js → layers.XZft6Ook.js} +1 -1
- package/dist/{layers.BTZO4D1M.js → layers.adnwY8ML.js} +1 -1
- package/dist/layers.b9B2NY7n.js +11690 -0
- package/dist/{layers.7RM-Rgpr.js → layers.cf3uaysm.js} +1 -1
- package/dist/{layers.B2lIQaKn.js → layers.d9OooXQC.js} +1 -1
- package/dist/{layers.RDvNC_8V.js → layers.eNGl-u4H.js} +1 -1
- package/dist/{layers.SgNVpv0G.js → layers.eaKLR5Q2.js} +1 -1
- package/dist/{layers.BqssQgQi.js → layers.edPrT81i.js} +1 -1
- package/dist/{layers.C2gSNxMr.js → layers.ekCtLRbA.js} +1 -1
- package/dist/{layers.CiWApQBX.js → layers.fiMaf-_a.js} +3 -3
- package/dist/{layers.CnYkQAte.js → layers.gnAUWHV-.js} +1 -1
- package/dist/{layers.CnwMf9I0.js → layers.h4L4Mc41.js} +1 -1
- package/dist/{layers.C92eHUWa.js → layers.iyoop3cH.js} +3 -3
- package/dist/{layers.CrJ6Ln86.js → layers.jTaJiZzk.js} +1 -1
- package/dist/{layers.Dx6XWGBv.js → layers.jZvrWKJt.js} +1 -1
- package/dist/{layers.BNduWBRP.js → layers.l-ywSwa2.js} +1 -1
- package/dist/{layers.CuHedZYG.js → layers.lG7Mase1.js} +1 -1
- package/dist/{layers.B-9SWmBm.js → layers.mgh4Cwfx.js} +1 -1
- package/dist/{layers.ovBuAp5w.js → layers.mnoq184J.js} +1 -1
- package/dist/{layers.bHAHcDTt.js → layers.nFMauJSN.js} +1 -1
- package/dist/{layers.BuwjUr0U.js → layers.nNlLwZ_E.js} +1 -1
- package/dist/{layers.nVkvDfax.js → layers.oJ61CNkw.js} +1 -1
- package/dist/{layers.D3iO0BYj.js → layers.rzToPUAK.js} +1 -1
- package/dist/{layers.CdbUVvAx.js → layers.soJefnD3.js} +1 -1
- package/dist/{layers.mLGxc7Zs.js → layers.waYEJRmN.js} +1 -1
- package/dist/{layers.PUiCNtZG.js → layers.y0ia1Vp6.js} +1 -1
- package/dist/{layers.3URzBh7V.js → layers.zDfwTCmT.js} +1 -1
- package/package.json +1 -1
- package/dist/layers.BORw_DXM.js +0 -1
- package/dist/layers.BPXfA_Bi.js +0 -389
- package/dist/layers.Bn96IwAe.js +0 -96
- package/dist/layers.C5Ndiwef.js +0 -8
- package/dist/layers.C7XeME1v.js +0 -6
- package/dist/layers.C9iwVv2g.js +0 -1
- package/dist/layers.CCjwwvUf.js +0 -1
- package/dist/layers.CCsKL6P-.js +0 -1
- package/dist/layers.CTq-VHKd.js +0 -8
- package/dist/layers.D0BbR-kO.js +0 -76
- package/dist/layers.D1-NVvB4.js +0 -2
- package/dist/layers.D3ej58GE.js +0 -118
- package/dist/layers.D3kEalRl.js +0 -1
- package/dist/layers.DNR3bB9r.js +0 -2
- package/dist/layers.DVRVApG_.js +0 -22
- package/dist/layers.DzXJQPQT.js +0 -257
- package/dist/layers.GYLtRKCK.js +0 -1
- package/dist/layers.KJwFQi9T.js +0 -1
- package/dist/layers.RUMhBCMz.js +0 -1
- package/dist/layers.TF5UbhSz.js +0 -39287
- package/dist/layers.WIHPbs6I.js +0 -1225
- package/dist/layers.XvSvPUQo.js +0 -213
- package/dist/layers._fDrpnXx.js +0 -1
- package/dist/layers.fQ35NBL8.js +0 -271
package/dist/index.d.ts
CHANGED
|
@@ -4,27 +4,19 @@ import { Dropzone } from '@mantine/dropzone';
|
|
|
4
4
|
import { EditorConfig } from 'lexical';
|
|
5
5
|
import { LexicalEditor as EditorType } from 'lexical';
|
|
6
6
|
import { ElementNode } from 'lexical';
|
|
7
|
-
import { FC } from 'react';
|
|
8
7
|
import { FOCUS_COMMAND } from 'lexical';
|
|
9
|
-
import { IconProps } from '../../../../@tabler/icons-react/dist/esm/icons/index.mjs';
|
|
10
8
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
11
|
-
import { Klass } from 'lexical';
|
|
12
9
|
import { LexicalCommand } from 'lexical';
|
|
13
|
-
import { LexicalNode } from 'lexical';
|
|
14
10
|
import { MarkNode } from '@lexical/mark';
|
|
15
11
|
import { MouseEventHandler } from 'react';
|
|
16
12
|
import { NodeKey } from 'lexical';
|
|
17
13
|
import { ParagraphNode } from 'lexical';
|
|
18
|
-
import { PropsWithChildren } from 'react';
|
|
19
14
|
import { RangeSelection } from 'lexical';
|
|
20
|
-
import { ReactElement } from 'react';
|
|
21
|
-
import { ReactNode } from 'react';
|
|
22
15
|
import { RootNode } from 'lexical';
|
|
23
16
|
import { SerializedEditorState } from 'lexical';
|
|
24
17
|
import { SerializedElementNode } from 'lexical';
|
|
25
18
|
import { SerializedLexicalNode } from 'lexical';
|
|
26
19
|
import { Spread } from 'lexical';
|
|
27
|
-
import { TFunction } from 'i18next';
|
|
28
20
|
|
|
29
21
|
export declare const $createNewParagraph: (editor: EditorType) => void;
|
|
30
22
|
|
|
@@ -32,16 +24,6 @@ export declare type ActiveUserProfile<DATA extends object> = EditorUser<DATA> &
|
|
|
32
24
|
id: string;
|
|
33
25
|
};
|
|
34
26
|
|
|
35
|
-
export declare const AlignmentImage: ({ editor, nodeKey, opened, setOpened, t, setShown, isShown, }: {
|
|
36
|
-
editor: EditorType;
|
|
37
|
-
nodeKey?: string;
|
|
38
|
-
t: TFunction;
|
|
39
|
-
opened: boolean;
|
|
40
|
-
setOpened: (value: boolean) => void;
|
|
41
|
-
setShown?: (value: boolean) => void;
|
|
42
|
-
isShown?: boolean;
|
|
43
|
-
}) => JSX_2.Element;
|
|
44
|
-
|
|
45
27
|
export { CLEAR_EDITOR_COMMAND }
|
|
46
28
|
|
|
47
29
|
declare interface CommentActions {
|
|
@@ -68,9 +50,9 @@ declare interface CommentAttachment {
|
|
|
68
50
|
declare interface CommentController {
|
|
69
51
|
activeCommentId: {
|
|
70
52
|
id: string | null;
|
|
71
|
-
source:
|
|
53
|
+
source: 'editor' | 'panel' | null;
|
|
72
54
|
};
|
|
73
|
-
onHighlight?: (id: string | null, source:
|
|
55
|
+
onHighlight?: (id: string | null, source: 'editor' | 'panel') => void;
|
|
74
56
|
actions: CommentActions;
|
|
75
57
|
editorComments: Map<string, {
|
|
76
58
|
id: string;
|
|
@@ -83,13 +65,9 @@ declare type CommentResolve = 'ACCEPTED' | 'REJECTED' | null | 'NONE';
|
|
|
83
65
|
|
|
84
66
|
export declare const CREATE_TEMPLATE: LexicalCommand<unknown>;
|
|
85
67
|
|
|
86
|
-
export declare const createMediaComponent: (imageNode: LexicalNode) => true | undefined;
|
|
87
|
-
|
|
88
|
-
export declare const deleteNode: (editor: EditorType, nodeElement: string | LexicalNode | null) => void;
|
|
89
|
-
|
|
90
68
|
export { Dropzone }
|
|
91
69
|
|
|
92
|
-
export declare const Editor: <USER_DATA extends object, CHILD_PAGE extends PageData>({ initialContent, onChange, outputFormat, mode, maxHeight, onBlur, onFocus, fetchUploadMedia, fetchPromptResult, fetchDeleteMedia, fetchRestoreMedia, pageId, commentController, maxFileSize, contentModalUploadImage, maxImageSizeError, debounce: debounceMs, disable, ws, excludeNodes, imagePickerSettings, childPages, language, shiftEnterInsertNewLine, editorRef, placeholder,
|
|
70
|
+
export declare const Editor: <USER_DATA extends object, CHILD_PAGE extends PageData>({ initialContent, onChange, outputFormat, mode, maxHeight, onBlur, onFocus, fetchUploadMedia, fetchPromptResult, fetchSmartPastePrompt, fetchSmartPasteStreamPrompt, fetchDeleteMedia, fetchRestoreMedia, pageId, commentController, maxFileSize, contentModalUploadImage, maxImageSizeError, debounce: debounceMs, disable, ws, excludeNodes, imagePickerSettings, childPages, language, shiftEnterInsertNewLine, editorRef, placeholder, }: EditorProps<USER_DATA, CHILD_PAGE>) => JSX_2.Element;
|
|
93
71
|
|
|
94
72
|
declare interface EditorProps<USER_DATA extends object = object, PAGE_DATA extends PageData = PageData> {
|
|
95
73
|
initialContent: Root | string;
|
|
@@ -101,6 +79,8 @@ declare interface EditorProps<USER_DATA extends object = object, PAGE_DATA exten
|
|
|
101
79
|
maxHeight?: number;
|
|
102
80
|
fetchUploadMedia?: fetchUploadMedia;
|
|
103
81
|
fetchPromptResult?: fetchPromptResult;
|
|
82
|
+
fetchSmartPastePrompt?: fetchPromptResult;
|
|
83
|
+
fetchSmartPasteStreamPrompt?: fetchPromptStreamResult;
|
|
104
84
|
fetchDeleteMedia?: fetchDeleteRestoreMedia;
|
|
105
85
|
fetchRestoreMedia?: fetchDeleteRestoreMedia;
|
|
106
86
|
maxFileSize?: number;
|
|
@@ -123,7 +103,6 @@ declare interface EditorProps<USER_DATA extends object = object, PAGE_DATA exten
|
|
|
123
103
|
current: EditorType | null;
|
|
124
104
|
};
|
|
125
105
|
placeholder?: string;
|
|
126
|
-
plugins?: PluginConfig[];
|
|
127
106
|
}
|
|
128
107
|
|
|
129
108
|
export { EditorType }
|
|
@@ -166,19 +145,14 @@ declare type fetchDeleteRestoreMedia = (id: string, success: SuccessDeleteImage,
|
|
|
166
145
|
|
|
167
146
|
declare type fetchPromptResult = (prompt: string, success: (data: string) => void, error?: () => void) => void;
|
|
168
147
|
|
|
148
|
+
declare type fetchPromptStreamResult = (prompt: string, onBlock: (block: string) => void, onDone: () => void, onError?: () => void) => void;
|
|
149
|
+
|
|
169
150
|
declare type fetchUploadMedia = (file: File, success: SuccessUploadImage, error?: ErrorDeleteImage, signal?: AbortSignal, onProgress?: (percent: number) => void) => void;
|
|
170
151
|
|
|
171
152
|
export { FOCUS_COMMAND }
|
|
172
153
|
|
|
173
154
|
export declare function focusEditor(editor: EditorType, atStart?: boolean): void;
|
|
174
155
|
|
|
175
|
-
export declare const Icon: ({ name, iconStyle, ...rest }: {
|
|
176
|
-
name: keyof typeof iconsBlockTypeToBlockName;
|
|
177
|
-
[key: string]: any;
|
|
178
|
-
}) => JSX_2.Element;
|
|
179
|
-
|
|
180
|
-
declare const iconsBlockTypeToBlockName: Record<string, FC<IconProps>>;
|
|
181
|
-
|
|
182
156
|
declare type ImagePickerSettings = {
|
|
183
157
|
maxUploadFiles?: number;
|
|
184
158
|
unsplashClientId?: string;
|
|
@@ -203,43 +177,8 @@ declare interface PageData {
|
|
|
203
177
|
|
|
204
178
|
export { ParagraphNode }
|
|
205
179
|
|
|
206
|
-
export declare interface PluginConfig {
|
|
207
|
-
key: string;
|
|
208
|
-
node: Klass<LexicalNode>;
|
|
209
|
-
Plugin: React.ComponentType;
|
|
210
|
-
Provider: React.ComponentType<{
|
|
211
|
-
children: ReactNode;
|
|
212
|
-
}>;
|
|
213
|
-
slashMenu: SlashMenuConfig;
|
|
214
|
-
modes?: PluginModeConfig;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
declare interface PluginModeConfig {
|
|
218
|
-
comment: boolean;
|
|
219
|
-
default: boolean;
|
|
220
|
-
editor: boolean;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
180
|
export { RangeSelection }
|
|
224
181
|
|
|
225
|
-
export declare const ResizableContainer: FC<PropsWithChildren<ResizableContainerProps>>;
|
|
226
|
-
|
|
227
|
-
declare type ResizableContainerProps = {
|
|
228
|
-
editor: EditorType;
|
|
229
|
-
width: number | string | 'inherit';
|
|
230
|
-
height: number | string | 'inherit';
|
|
231
|
-
isIcon: boolean;
|
|
232
|
-
initialHeight?: number | string;
|
|
233
|
-
initialWidth?: number | string;
|
|
234
|
-
type?: 'video';
|
|
235
|
-
onResizeEnd: (width: 'inherit' | number | string, height: 'inherit' | number | string) => void;
|
|
236
|
-
onResizeStart?: () => void;
|
|
237
|
-
isEmbed?: boolean;
|
|
238
|
-
alignment?: string;
|
|
239
|
-
disableInteractions?: boolean;
|
|
240
|
-
children: ReactElement;
|
|
241
|
-
};
|
|
242
|
-
|
|
243
182
|
export declare type Root = SerializedEditorState<SerializedLexicalNode>;
|
|
244
183
|
|
|
245
184
|
export { RootNode }
|
|
@@ -248,17 +187,6 @@ declare type SerializedMarkNode = Spread<{
|
|
|
248
187
|
ids: Array<string>;
|
|
249
188
|
}, SerializedElementNode>;
|
|
250
189
|
|
|
251
|
-
export declare interface SlashMenuConfig {
|
|
252
|
-
parentKey: string;
|
|
253
|
-
name: string;
|
|
254
|
-
description: string;
|
|
255
|
-
hint?: string;
|
|
256
|
-
keywords: string[];
|
|
257
|
-
icon: ReactNode;
|
|
258
|
-
command: LexicalCommand<string>;
|
|
259
|
-
commandPayload: string;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
190
|
export declare const StylesProvider: ({ children }: {
|
|
263
191
|
children: React.ReactNode;
|
|
264
192
|
}) => JSX_2.Element;
|