@layers-app/editor 0.7.93 → 1.0.0
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 +14 -94
- package/dist/index.js +12 -13
- package/dist/{layers.D6sxU8A2.js → layers.-g7uNd7M.js} +2 -2
- package/dist/{layers.DYnnh-09.js → layers.-pQVK1r1.js} +1 -1
- package/dist/{layers.BDiPbruK.js → layers.0M89REzq.js} +1 -1
- package/dist/{layers.VBselTAE.js → layers.172Wbi61.js} +1 -1
- package/dist/{layers.DFmhjbPv.js → layers.1GN3IXqz.js} +3 -3
- package/dist/{layers.DWAnuPjJ.js → layers.1SQWVglr.js} +1 -1
- package/dist/{layers.DuqUo0oU.js → layers.3nPhoXKI.js} +1 -1
- package/dist/{layers.Chx21Noj.js → layers.3uDgSyXI.js} +1 -1
- package/dist/{layers.CjgXNJBg.js → layers.4YdQEBKi.js} +1 -1
- package/dist/{layers.DGh8drOs.js → layers.4bbyJ4Vc.js} +1 -1
- package/dist/{layers.gCS_1NW6.js → layers.4w6TaBq1.js} +1 -1
- package/dist/{layers.Dzvv_LWT.js → layers.4yakxeiR.js} +3 -3
- package/dist/{layers.BoOiKUQt.js → layers.56A1F1-s.js} +4 -4
- package/dist/{layers.CNcMdVwf.js → layers.76l1mjCN.js} +1 -1
- package/dist/{layers.CBaBV2iZ.js → layers.79mr9QCD.js} +1 -1
- package/dist/{layers.Fp2xKhlB.js → layers.86R4uPiG.js} +1 -1
- package/dist/{layers.XxXB7ixR.js → layers.8ml6fc54.js} +1 -1
- package/dist/{layers.CjvUFr5W.js → layers.A2jAwths.js} +1 -1
- package/dist/{layers.CF7penQ9.js → layers.A9824OJT.js} +2 -2
- package/dist/{layers.CZ4Y6y3c.js → layers.AJesQfn4.js} +1 -1
- package/dist/{layers.Bcb3CJTF.js → layers.AbQtiWrN.js} +2 -2
- package/dist/{layers.C8DpC6Mn.js → layers.B-lSYmly.js} +1 -1
- package/dist/{layers.DM5FQGwH.js → layers.B0xgvAcr.js} +1 -1
- package/dist/{layers.yFxcgyah.js → layers.B1W2Vzf9.js} +2 -2
- package/dist/{layers.BPni5cr6.js → layers.B2pDIssY.js} +2 -2
- package/dist/{layers.CfocA5Re.js → layers.B4A2yWw6.js} +1 -1
- package/dist/layers.B4xiiM7g.js +1 -0
- package/dist/{layers.CfDwsZU0.js → layers.B5QtFq-Y.js} +1 -1
- package/dist/{layers.l9IaJ8Na.js → layers.B6Y1d0hZ.js} +1 -1
- package/dist/{layers.D_CVQ8_U.js → layers.B6zoccbm.js} +1 -1
- package/dist/{layers.ve-b1iUI.js → layers.B8SVgHR9.js} +1 -1
- package/dist/{layers.BkHV48yv.js → layers.BA9YgAbj.js} +1 -1
- package/dist/{layers.CmNwAjIw.js → layers.BCOC7xJt.js} +1 -1
- package/dist/{layers.C8scOXtX.js → layers.BCXXvz7G.js} +39461 -45139
- package/dist/{layers.BEGCfKQE.js → layers.BEJe_rWx.js} +1 -1
- package/dist/{layers.DhR_eZa8.js → layers.BGcXTqva.js} +1 -1
- package/dist/{layers.D1UqHxFG.js → layers.BH8S66mC.js} +1 -1
- package/dist/{layers.DRGSxBgi.js → layers.BJE015iJ.js} +1 -1
- package/dist/{layers.B5LuOdoA.js → layers.BJHOdAzy.js} +1 -1
- package/dist/{layers.igq8-CrV.js → layers.BJfI9xHh.js} +6 -6
- package/dist/{layers.BV-g-xzT.js → layers.BKOBZyMI.js} +1 -1
- package/dist/{layers.Y7kZzQzI.js → layers.BL-7xEvj.js} +1 -1
- package/dist/{layers.CM5hqLt_.js → layers.BLVPAx3X.js} +1 -1
- package/dist/{layers.CG4NZuoY.js → layers.BNAyV97E.js} +1 -1
- package/dist/{layers.Stx3Iboc.js → layers.BNjCIUGh.js} +1 -1
- package/dist/{layers.DxYNx_WJ.js → layers.BNlcPgk-.js} +1 -1
- package/dist/{layers.DOTdJgPv.js → layers.BO3a_hC-.js} +1 -1
- package/dist/{layers.CFML777f.js → layers.BP_eA-4_.js} +1 -1
- package/dist/{layers.cYc9Mkkl.js → layers.BQKGUso9.js} +1 -1
- package/dist/{layers.D4QdQ1B8.js → layers.BQU4SnRP.js} +1 -1
- package/dist/{layers.mRg6Wxq7.js → layers.BQqs2eVb.js} +1 -1
- package/dist/{layers.DTCgqxVH.js → layers.BRMrA2Ub.js} +1 -1
- package/dist/{layers.CpvsNStS.js → layers.BW8UTyKL.js} +1 -1
- package/dist/layers.BWYi9A2p.js +1 -0
- package/dist/{layers.zE2Ag_LD.js → layers.BYofSd52.js} +1 -1
- package/dist/{layers.DcVK6qgi.js → layers.BYs8uPB4.js} +1 -1
- package/dist/{layers.QnTzffzI.js → layers.B_9GBAfN.js} +1 -1
- package/dist/{layers.OFbtrZYp.js → layers.B_S3C4DG.js} +3 -3
- package/dist/{layers.811TSpOY.js → layers.B__yemFX.js} +1 -1
- package/dist/{layers.Dybb-MrJ.js → layers.BbQ88dYL.js} +1 -1
- package/dist/{layers.BLpNviKk.js → layers.BfrGvhnj.js} +1 -1
- package/dist/{layers.Brrg4jj_.js → layers.Bh6R4aTS.js} +1 -1
- package/dist/{layers.MqC_9V6k.js → layers.BhXltzPN.js} +1 -1
- package/dist/{layers.BcCelUDj.js → layers.Bid82dra.js} +1 -1
- package/dist/{layers.C-Q16oCj.js → layers.BjTUzUPL.js} +1 -1
- package/dist/{layers.D_gH0Is5.js → layers.BlYGbAr0.js} +1 -1
- package/dist/{layers.DzZ61AN4.js → layers.BomQfc62.js} +1 -1
- package/dist/{layers.CXoinSNf.js → layers.BpYACVpe.js} +4 -4
- package/dist/{layers.msmp08Xf.js → layers.Bph7Ya7r.js} +4 -4
- package/dist/{layers.-tiwgsIy.js → layers.BrgxMSh1.js} +2 -2
- package/dist/{layers.DSzKKGJF.js → layers.BsDg01CU.js} +1 -1
- package/dist/{layers._ram0v-H.js → layers.Bsf69xiU.js} +1 -1
- package/dist/layers.BsoRcVww.js +8 -0
- package/dist/{layers.DDQgSWZM.js → layers.BtQfqte_.js} +4 -4
- package/dist/layers.BuEQHVRn.js +585 -0
- package/dist/{layers.D4BL-_g4.js → layers.BvvkbP82.js} +1 -1
- package/dist/{layers.4vqpsuc3.js → layers.BxLTmqIg.js} +1 -1
- package/dist/{layers.CmFR2uKv.js → layers.BxzLgCx7.js} +1 -1
- package/dist/layers.C087BbSN.js +1 -0
- package/dist/{layers.FuV5aVfW.js → layers.C1G5XjDq.js} +1 -1
- package/dist/{layers.LQ0WKJCL.js → layers.C2Crxoln.js} +1 -1
- package/dist/{layers.BUFOBCMy.js → layers.C2H8RbfP.js} +3 -3
- package/dist/{layers.DDZzHO2e.js → layers.C7nW2TfS.js} +1 -1
- package/dist/{layers.C2fhjYrc.js → layers.C82M5g3Y.js} +1 -1
- package/dist/{layers.ChEJ2zyQ.js → layers.CAQaTno7.js} +1 -1
- package/dist/{layers.Daizjhsk.js → layers.CAfWmj8Q.js} +3 -3
- package/dist/{layers.Dhtl9hTt.js → layers.CB6DYx3P.js} +1 -1
- package/dist/{layers.BUhQr1my.js → layers.CBdVIhaC.js} +1 -1
- package/dist/{layers.DwFHPFXW.js → layers.CDpX4wCh.js} +1 -1
- package/dist/{layers.yasiEV95.js → layers.CFAU3aYo.js} +1 -1
- package/dist/{layers.DkwDMTq9.js → layers.CGLg-QXF.js} +1 -1
- package/dist/{layers.DFuWTxaW.js → layers.CGNQx09_.js} +1 -1
- package/dist/{layers.C94ZEZX8.js → layers.CLjkIRsj.js} +1 -1
- package/dist/{layers.BaDwWFkk.js → layers.CLxXLHn0.js} +1 -1
- package/dist/{layers.mCNNRzMK.js → layers.CMJleN2N.js} +1 -1
- package/dist/layers.CMv-MGOo.js +539 -0
- package/dist/{layers.CLVPhrnI.js → layers.CNX3Y13v.js} +7 -7
- package/dist/{layers.UWbJSE_q.js → layers.CNa0oe2M.js} +1 -1
- package/dist/{layers.B6rOc-Ti.js → layers.CNkZ32Ss.js} +1 -1
- package/dist/{layers.CC44ZlQZ.js → layers.CR-q81fL.js} +24 -24
- package/dist/{layers.D9BOJQ5y.js → layers.CSVKd1FP.js} +1 -1
- package/dist/{layers.7jwh_MfI.js → layers.CTxdvFPq.js} +1 -1
- package/dist/{layers.B0R-ifEH.js → layers.CUki-tZj.js} +1 -1
- package/dist/{layers.orgRZ2V9.js → layers.CV0V6r-0.js} +1 -1
- package/dist/{layers.M4h6tkxO.js → layers.CVEiAGOh.js} +1 -1
- package/dist/{layers.IkYeHNd-.js → layers.CXCxIEL2.js} +1 -1
- package/dist/{layers.BnBIaczk.js → layers.Cb6Q1pdl.js} +1 -1
- package/dist/{layers.VjAp6vpG.js → layers.CbRDb66r.js} +1 -1
- package/dist/{layers.sFmfgHo4.js → layers.Chd_QFzk.js} +3 -3
- package/dist/{layers.BHnL_Uok.js → layers.CkVpUUdk.js} +1 -1
- package/dist/{layers.CN2AORSh.js → layers.Cm20abCV.js} +1 -1
- package/dist/{layers.DEkU827U.js → layers.CoojhKEQ.js} +1 -1
- package/dist/{layers.Bk7jKmXI.js → layers.CqZ_SmxS.js} +1 -1
- package/dist/{layers.D0l4OEP1.js → layers.Cr8cieQc.js} +1 -1
- package/dist/{layers.5usI25Xs.js → layers.Crp4PjDd.js} +1 -1
- package/dist/{layers.9iTOFkOz.js → layers.CwvUhpqa.js} +1 -1
- package/dist/{layers.Dh7vm0BH.js → layers.Cy6tKZRE.js} +178 -167
- package/dist/{layers.-qD_IlHz.js → layers.D-3e1bqL.js} +1 -1
- package/dist/{layers.D_m-25Ic.js → layers.D2H0ue2X.js} +3 -3
- package/dist/{layers.DTUuZqOa.js → layers.D2Qy6sM9.js} +3 -3
- package/dist/{layers.nltEsUBo.js → layers.D2wXSTG7.js} +4 -4
- package/dist/{layers.BGJFkxfG.js → layers.D5esPWTY.js} +1 -1
- package/dist/{layers.CDOF7D2m.js → layers.D6tjfoCc.js} +4 -4
- package/dist/{layers.I1SLD0UK.js → layers.DB5FC83E.js} +1 -1
- package/dist/{layers.aZyt0ZhK.js → layers.DCzFhP-8.js} +4 -4
- package/dist/{layers.DhwgnsWZ.js → layers.DDx-SMCl.js} +1 -1
- package/dist/{layers.DXe2VR26.js → layers.DEAJVFxk.js} +1 -1
- package/dist/{layers.BEKTKoir.js → layers.DGPzsNmI.js} +1 -1
- package/dist/{layers.Lm3yzugI.js → layers.DHw29VaG.js} +1 -1
- package/dist/{layers.DHzGmamJ.js → layers.DI2iL4Tn.js} +1 -1
- package/dist/{layers.BufejxmY.js → layers.DIilVF_M.js} +1 -1
- package/dist/{layers.CRgtKhyz.js → layers.DJZSw7_Z.js} +1 -1
- package/dist/{layers.CWTCSE0f.js → layers.DLQ6SBa2.js} +1 -1
- package/dist/{layers.DGYg3grQ.js → layers.DLR83xiF.js} +1 -1
- package/dist/{layers.SWM1KY20.js → layers.DLwTOFrT.js} +1 -1
- package/dist/{layers.iYPrW38K.js → layers.DNGfDbtN.js} +1 -1
- package/dist/{layers.GVr5uU5W.js → layers.DOuETTDt.js} +1 -1
- package/dist/{layers.D5ldRac_.js → layers.DQhXyNBG.js} +1 -1
- package/dist/{layers.C_ZG_NmP.js → layers.DScpmk0U.js} +1 -1
- package/dist/{layers.Qr2h1-VC.js → layers.DUjgzxSn.js} +1 -1
- package/dist/{layers._LRYHSJ0.js → layers.DW6kniIq.js} +1 -1
- package/dist/{layers.DTBSutEB.js → layers.DXudULR-.js} +1 -1
- package/dist/{layers.CsqTB_b0.js → layers.DYJfly4I.js} +1 -1
- package/dist/{layers.CGwmNznF.js → layers.DYi-68tU.js} +5 -5
- package/dist/{layers.DNoj8uH2.js → layers.DZ9aQzzh.js} +1 -1
- package/dist/{layers.GsD0_GxX.js → layers.D_BTjOpO.js} +8 -8
- package/dist/layers.D_DCnlm4.js +1 -0
- package/dist/{layers.czDrchz1.js → layers.Dctz1-Be.js} +1 -1
- package/dist/{layers.mCqe-cvO.js → layers.DdgU7Wxt.js} +1 -1
- package/dist/{layers.CKJZJ_ts.js → layers.DfgFW_fZ.js} +1 -1
- package/dist/layers.DikU4t0M.js +6 -0
- package/dist/{layers.Dyd9_aH-.js → layers.DkNt8L2T.js} +1 -1
- package/dist/{layers.CNUJb-Qd.js → layers.Dkq7fr__.js} +1 -1
- package/dist/{layers.PvxtC1eC.js → layers.DlHJe0eH.js} +1 -1
- package/dist/{layers.BfyTGtGq.js → layers.DoW-ZBfZ.js} +1 -1
- package/dist/{layers.vvoHMkog.js → layers.DqQiUrEW.js} +1 -1
- package/dist/{layers.BRP3PhII.js → layers.DqTbmk_s.js} +3 -3
- package/dist/{layers.Bksq8_Qt.js → layers.DudkVylr.js} +1 -1
- package/dist/{layers.JabcC5VX.js → layers.Dv5eFafD.js} +1 -1
- package/dist/{layers.CxiX7XmH.js → layers.DvL-XSvD.js} +1 -1
- package/dist/{layers.D_1KCN2L.js → layers.DxWM3PwA.js} +1 -1
- package/dist/{layers.zW7UNB56.js → layers.Dz50RMu3.js} +1 -1
- package/dist/{layers.CeI3w2iY.js → layers.FZD8ymtL.js} +1 -1
- package/dist/{layers.CTGsC808.js → layers.Gnhel6bO.js} +1 -1
- package/dist/{layers.qRe_lZMu.js → layers.Iv2OYybX.js} +1 -1
- package/dist/{layers.DFmZFu4s.js → layers.JNUaRnwq.js} +1 -1
- package/dist/{layers.iCGkfdqe.js → layers.N1zRNyjd.js} +1 -1
- package/dist/{layers.vU738QAp.js → layers.NGi_ungC.js} +1 -1
- package/dist/{layers.CV9JMOd0.js → layers.NQIPCUeA.js} +1 -1
- package/dist/{layers._TXR7_BW.js → layers.PbePXAaO.js} +1 -1
- package/dist/{layers.DryQJgTf.js → layers.Pr3SAbdJ.js} +1 -1
- package/dist/{layers.DTkHkrLG.js → layers.QyLKnikd.js} +5 -5
- package/dist/{layers.B7ml1wOj.js → layers.RWD55B8I.js} +3 -3
- package/dist/{layers.BKTJE34P.js → layers.SVdqNH63.js} +1 -1
- package/dist/{layers.DVTq8SE9.js → layers.UBBwGTJL.js} +1 -1
- package/dist/{layers.CWjT_Kbq.js → layers.VKrCpmtA.js} +1 -1
- package/dist/{layers.268NfhIX.js → layers.VQnb33oI.js} +1 -1
- package/dist/{layers.DmvODDQ0.js → layers.VVbBvmUb.js} +4 -4
- package/dist/{layers.BLCWQ59V.js → layers.YNuLYTuu.js} +1 -1
- package/dist/{layers.Bzd_kEIv.js → layers.YpjXAo6o.js} +1 -1
- package/dist/{layers.CWuSuPfS.js → layers.aTewiNrv.js} +1 -1
- package/dist/{layers.jI-GVlXe.js → layers.aWrDfA3G.js} +1 -1
- package/dist/{layers.DAvGftUZ.js → layers.aYR8ZkKI.js} +4 -4
- package/dist/{layers.CFZqbydb.js → layers.an2vviU-.js} +3 -3
- package/dist/{layers.BpnHi2Sm.js → layers.ccYEo0zL.js} +1 -1
- package/dist/{layers.Csi-9lrm.js → layers.d1J8xasZ.js} +1 -1
- package/dist/{layers.DUlvtU8P.js → layers.dD16n4wC.js} +1 -1
- package/dist/{layers.fsKnbvfV.js → layers.dIolMNur.js} +1 -1
- package/dist/{layers.V9lJ9Ccb.js → layers.dhMjlsvZ.js} +1 -1
- package/dist/{layers.DH0uo8fs.js → layers.i_EhsGoq.js} +1 -1
- package/dist/{layers.Cz_0Xe5w.js → layers.j_fu-1he.js} +1 -1
- package/dist/{layers.C01LyZL_.js → layers.kVunnuXH.js} +1 -1
- package/dist/{layers.DqwY2YKL.js → layers.l4zNs6ys.js} +1 -1
- package/dist/{layers.BZp78mT0.js → layers.oqrEyCZw.js} +1 -1
- package/dist/{layers.kpBucBt1.js → layers.qeIA-o6A.js} +1 -1
- package/dist/{layers.hmEL7VCj.js → layers.rPt8nHhw.js} +1 -1
- package/dist/{layers.rulLZ93L.js → layers.tbzuOSk6.js} +1 -1
- package/dist/{layers.BalFy4Pd.js → layers.tiZH4Hp1.js} +1 -1
- package/dist/{layers.BtJnQ0mI.js → layers.w3nbwofn.js} +1 -1
- package/dist/{layers.CRV0BKlE.js → layers.x8s7fn3P.js} +1 -1
- package/dist/{layers.BzoSDIc-.js → layers.y8izWV3a.js} +1 -1
- package/dist/{layers.BeIbAvhr.js → layers.z2WtNyKR.js} +1 -1
- package/package.json +16 -128
- package/README.md +0 -831
- package/dist/layers.BF5czbZm.js +0 -310
- package/dist/layers.Brbunzgb.js +0 -1
- package/dist/layers.CNASfKEr.js +0 -1
- package/dist/layers.Ce5d3c4K.js +0 -1
- package/dist/layers.CnCND_tm.js +0 -533
- package/dist/layers.DBe4vr1J.js +0 -6
- package/dist/layers.UyyKG0j1.js +0 -8
- package/dist/layers.vgzUgI4K.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { NodeAlignmentMenu as AlignmentImage } from '@layers-app/editor-core';
|
|
2
|
+
import { AlignmentMenu } from '@layers-app/editor-core';
|
|
1
3
|
import { CLEAR_EDITOR_COMMAND } from 'lexical';
|
|
4
|
+
import { deleteNode } from '@layers-app/editor-core';
|
|
2
5
|
import { DOMExportOutput } from 'lexical';
|
|
3
6
|
import { Dropzone } from '@mantine/dropzone';
|
|
4
7
|
import { EditorConfig } from 'lexical';
|
|
@@ -8,22 +11,22 @@ import { FC } from 'react';
|
|
|
8
11
|
import { FOCUS_COMMAND } from 'lexical';
|
|
9
12
|
import { IconProps } from '../../../../@tabler/icons-react/dist/esm/icons/index.mjs';
|
|
10
13
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
11
|
-
import { Klass } from 'lexical';
|
|
12
14
|
import { LexicalCommand } from 'lexical';
|
|
13
15
|
import { LexicalNode } from 'lexical';
|
|
14
16
|
import { MarkNode } from '@lexical/mark';
|
|
15
17
|
import { MouseEventHandler } from 'react';
|
|
16
18
|
import { NodeKey } from 'lexical';
|
|
17
19
|
import { ParagraphNode } from 'lexical';
|
|
18
|
-
import {
|
|
20
|
+
import { PluginConfig } from '@layers-app/editor-core';
|
|
19
21
|
import { RangeSelection } from 'lexical';
|
|
20
|
-
import {
|
|
22
|
+
import { ResizableContainer } from '@layers-app/editor-core';
|
|
21
23
|
import { RootNode } from 'lexical';
|
|
22
24
|
import { SerializedEditorState } from 'lexical';
|
|
23
25
|
import { SerializedElementNode } from 'lexical';
|
|
24
26
|
import { SerializedLexicalNode } from 'lexical';
|
|
27
|
+
import { SlashMenuConfig } from '@layers-app/editor-core';
|
|
25
28
|
import { Spread } from 'lexical';
|
|
26
|
-
import {
|
|
29
|
+
import { UploadData } from '@layers-app/editor-core';
|
|
27
30
|
|
|
28
31
|
export declare const $createNewParagraph: (editor: EditorType) => void;
|
|
29
32
|
|
|
@@ -31,26 +34,9 @@ export declare type ActiveUserProfile<DATA extends object> = EditorUser<DATA> &
|
|
|
31
34
|
id: string;
|
|
32
35
|
};
|
|
33
36
|
|
|
34
|
-
export
|
|
35
|
-
editor: EditorType;
|
|
36
|
-
nodeKey?: string;
|
|
37
|
-
t: TFunction;
|
|
38
|
-
opened: boolean;
|
|
39
|
-
setOpened: (value: boolean) => void;
|
|
40
|
-
setShown?: (value: boolean) => void;
|
|
41
|
-
flexBorder?: boolean;
|
|
42
|
-
}) => JSX_2.Element;
|
|
43
|
-
|
|
44
|
-
export declare const AlignmentMenu: FC<AlignmentMenuProps>;
|
|
37
|
+
export { AlignmentImage }
|
|
45
38
|
|
|
46
|
-
|
|
47
|
-
currentAlignment: AlignValue;
|
|
48
|
-
onAlign: (value: AlignValue) => void;
|
|
49
|
-
className?: string;
|
|
50
|
-
targetLabel?: ReactNode;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
declare type AlignValue = 'left' | 'center' | 'right';
|
|
39
|
+
export { AlignmentMenu }
|
|
54
40
|
|
|
55
41
|
export { CLEAR_EDITOR_COMMAND }
|
|
56
42
|
|
|
@@ -95,7 +81,7 @@ export declare const CREATE_TEMPLATE: LexicalCommand<unknown>;
|
|
|
95
81
|
|
|
96
82
|
export declare const createMediaComponent: (imageNode: LexicalNode) => true | undefined;
|
|
97
83
|
|
|
98
|
-
export
|
|
84
|
+
export { deleteNode }
|
|
99
85
|
|
|
100
86
|
export { Dropzone }
|
|
101
87
|
|
|
@@ -264,43 +250,11 @@ declare interface Pages {
|
|
|
264
250
|
|
|
265
251
|
export { ParagraphNode }
|
|
266
252
|
|
|
267
|
-
export
|
|
268
|
-
key: string;
|
|
269
|
-
node: Klass<LexicalNode>;
|
|
270
|
-
Plugin: React.ComponentType;
|
|
271
|
-
Provider: React.ComponentType<{
|
|
272
|
-
children: ReactNode;
|
|
273
|
-
imperativeHandleRef?: React.RefObject<Record<string, unknown>>;
|
|
274
|
-
}>;
|
|
275
|
-
slashMenu: SlashMenuConfig;
|
|
276
|
-
modes?: PluginModeConfig;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
declare interface PluginModeConfig {
|
|
280
|
-
comment: boolean;
|
|
281
|
-
default: boolean;
|
|
282
|
-
editor: boolean;
|
|
283
|
-
}
|
|
253
|
+
export { PluginConfig }
|
|
284
254
|
|
|
285
255
|
export { RangeSelection }
|
|
286
256
|
|
|
287
|
-
export
|
|
288
|
-
|
|
289
|
-
declare type ResizableContainerProps = {
|
|
290
|
-
editor: EditorType;
|
|
291
|
-
width: number | string | 'inherit';
|
|
292
|
-
height: number | string | 'inherit';
|
|
293
|
-
isIcon: boolean;
|
|
294
|
-
initialHeight?: number | string;
|
|
295
|
-
initialWidth?: number | string;
|
|
296
|
-
type?: 'video';
|
|
297
|
-
onResizeEnd: (width: 'inherit' | number | string, height: 'inherit' | number | string) => void;
|
|
298
|
-
onResizeStart?: () => void;
|
|
299
|
-
isEmbed?: boolean;
|
|
300
|
-
alignment?: string;
|
|
301
|
-
disableInteractions?: boolean;
|
|
302
|
-
children: ReactNode;
|
|
303
|
-
};
|
|
257
|
+
export { ResizableContainer }
|
|
304
258
|
|
|
305
259
|
export declare type Root = SerializedEditorState<SerializedLexicalNode>;
|
|
306
260
|
|
|
@@ -310,16 +264,7 @@ declare type SerializedMarkNode = Spread<{
|
|
|
310
264
|
ids: Array<string>;
|
|
311
265
|
}, SerializedElementNode>;
|
|
312
266
|
|
|
313
|
-
export
|
|
314
|
-
parentKey: string;
|
|
315
|
-
name: string;
|
|
316
|
-
description: string;
|
|
317
|
-
hint?: string;
|
|
318
|
-
keywords: string[];
|
|
319
|
-
icon: ReactNode;
|
|
320
|
-
command: LexicalCommand<string>;
|
|
321
|
-
commandPayload: string;
|
|
322
|
-
}
|
|
267
|
+
export { SlashMenuConfig }
|
|
323
268
|
|
|
324
269
|
export declare const StylesProvider: ({ children }: {
|
|
325
270
|
children: React.ReactNode;
|
|
@@ -329,31 +274,6 @@ export declare type SuccessDeleteImage = () => void;
|
|
|
329
274
|
|
|
330
275
|
export declare type SuccessUploadImage = (url: string, id: string, data?: UploadData) => void;
|
|
331
276
|
|
|
332
|
-
export
|
|
333
|
-
contentType: string;
|
|
334
|
-
fileSize: string;
|
|
335
|
-
originalFileName: string;
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
declare interface VideoApiError {
|
|
339
|
-
status: number;
|
|
340
|
-
statusText: string;
|
|
341
|
-
message: string;
|
|
342
|
-
data?: unknown;
|
|
343
|
-
source: VideoApiErrorSource;
|
|
344
|
-
videoId?: string;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
declare type VideoApiErrorSource = 'init' | 'upload' | 'status' | 'cover' | 'subtitles' | 'chapters' | 'retry' | 'unknown';
|
|
348
|
-
|
|
349
|
-
export declare function videoPlugin(config: VideoPluginConfig): PluginConfig;
|
|
350
|
-
|
|
351
|
-
declare interface VideoPluginConfig {
|
|
352
|
-
pageId?: string;
|
|
353
|
-
maxFileSize?: number;
|
|
354
|
-
onUploadStateChange?: (isUploading: boolean, uploadingCount: number) => void;
|
|
355
|
-
onError?: (error: VideoApiError) => void;
|
|
356
|
-
onTrack?: (event: string, params?: Record<string, unknown>) => void;
|
|
357
|
-
}
|
|
277
|
+
export { UploadData }
|
|
358
278
|
|
|
359
279
|
export { }
|