@layers-app/editor 0.7.94 → 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.Dl1Wx9FX.js → layers.-g7uNd7M.js} +2 -2
- package/dist/{layers.CRWLh_yw.js → layers.-pQVK1r1.js} +1 -1
- package/dist/{layers.DlHAVU5n.js → layers.0M89REzq.js} +1 -1
- package/dist/{layers.UwSWIWP4.js → layers.172Wbi61.js} +1 -1
- package/dist/{layers.B48K3AE2.js → layers.1GN3IXqz.js} +3 -3
- package/dist/{layers.BeS3PtsD.js → layers.1SQWVglr.js} +1 -1
- package/dist/{layers.Cf1cfS_i.js → layers.3nPhoXKI.js} +1 -1
- package/dist/{layers.VXDR9PIz.js → layers.3uDgSyXI.js} +1 -1
- package/dist/{layers.BPLRV40d.js → layers.4YdQEBKi.js} +1 -1
- package/dist/{layers.BiqyvvR9.js → layers.4bbyJ4Vc.js} +1 -1
- package/dist/{layers.CCVF69iT.js → layers.4w6TaBq1.js} +1 -1
- package/dist/{layers.BgjUs1jF.js → layers.4yakxeiR.js} +3 -3
- package/dist/{layers.DSQS44dK.js → layers.56A1F1-s.js} +4 -4
- package/dist/{layers.Di-b5rnA.js → layers.76l1mjCN.js} +1 -1
- package/dist/{layers.D3mGufeb.js → layers.79mr9QCD.js} +1 -1
- package/dist/{layers.Dx3PqPY0.js → layers.86R4uPiG.js} +1 -1
- package/dist/{layers.DBdwd7TZ.js → layers.8ml6fc54.js} +1 -1
- package/dist/{layers.CN-UX7Fm.js → layers.A2jAwths.js} +1 -1
- package/dist/{layers.BnJjQcWj.js → layers.A9824OJT.js} +2 -2
- package/dist/{layers.ce8ytukt.js → layers.AJesQfn4.js} +1 -1
- package/dist/{layers.BEGVP5H5.js → layers.AbQtiWrN.js} +2 -2
- package/dist/{layers.D_Mv6gfq.js → layers.B-lSYmly.js} +1 -1
- package/dist/{layers.uCjmcjnb.js → layers.B0xgvAcr.js} +1 -1
- package/dist/{layers.Bl4DHC7D.js → layers.B1W2Vzf9.js} +2 -2
- package/dist/{layers.BbOH_FNC.js → layers.B2pDIssY.js} +2 -2
- package/dist/{layers.DtW6XnAE.js → layers.B4A2yWw6.js} +1 -1
- package/dist/layers.B4xiiM7g.js +1 -0
- package/dist/{layers.BV2_XShA.js → layers.B5QtFq-Y.js} +1 -1
- package/dist/{layers.DttmtG7W.js → layers.B6Y1d0hZ.js} +1 -1
- package/dist/{layers.CtzsJ_Qz.js → layers.B6zoccbm.js} +1 -1
- package/dist/{layers.C1hY4S0L.js → layers.B8SVgHR9.js} +1 -1
- package/dist/{layers.DDEnQpEn.js → layers.BA9YgAbj.js} +1 -1
- package/dist/{layers.Bg238NQZ.js → layers.BCOC7xJt.js} +1 -1
- package/dist/{layers.CBd4b_-g.js → layers.BCXXvz7G.js} +39308 -44966
- package/dist/{layers.DMj5AHSo.js → layers.BEJe_rWx.js} +1 -1
- package/dist/{layers.C-_OViOU.js → layers.BGcXTqva.js} +1 -1
- package/dist/{layers.Cq7cNKQI.js → layers.BH8S66mC.js} +1 -1
- package/dist/{layers.DtkxfHEW.js → layers.BJE015iJ.js} +1 -1
- package/dist/{layers.Cvt4L11X.js → layers.BJHOdAzy.js} +1 -1
- package/dist/{layers.Bz348g-F.js → layers.BJfI9xHh.js} +6 -6
- package/dist/{layers.DdXYC_K_.js → layers.BKOBZyMI.js} +1 -1
- package/dist/{layers.PPWNGasf.js → layers.BL-7xEvj.js} +1 -1
- package/dist/{layers.a6X49GwZ.js → layers.BLVPAx3X.js} +1 -1
- package/dist/{layers.BHzIAItY.js → layers.BNAyV97E.js} +1 -1
- package/dist/{layers._QYCBpoM.js → layers.BNjCIUGh.js} +1 -1
- package/dist/{layers.BpLMN9gb.js → layers.BNlcPgk-.js} +1 -1
- package/dist/{layers.C7yRYYMj.js → layers.BO3a_hC-.js} +1 -1
- package/dist/{layers.BJOiGxCQ.js → layers.BP_eA-4_.js} +1 -1
- package/dist/{layers.0zto2iHQ.js → layers.BQKGUso9.js} +1 -1
- package/dist/{layers.B0FUlxmg.js → layers.BQU4SnRP.js} +1 -1
- package/dist/{layers.D_4fiBYz.js → layers.BQqs2eVb.js} +1 -1
- package/dist/{layers.CLwE2B2y.js → layers.BRMrA2Ub.js} +1 -1
- package/dist/{layers.DSwDTe9Z.js → layers.BW8UTyKL.js} +1 -1
- package/dist/layers.BWYi9A2p.js +1 -0
- package/dist/{layers.BrS1J4vJ.js → layers.BYofSd52.js} +1 -1
- package/dist/{layers.BsilZJVZ.js → layers.BYs8uPB4.js} +1 -1
- package/dist/{layers.D3MNgET7.js → layers.B_9GBAfN.js} +1 -1
- package/dist/{layers.kHmxS0Hb.js → layers.B_S3C4DG.js} +3 -3
- package/dist/{layers.NJcYAT1C.js → layers.B__yemFX.js} +1 -1
- package/dist/{layers.BP-1XTdK.js → layers.BbQ88dYL.js} +1 -1
- package/dist/{layers.Cxqe2t_R.js → layers.BfrGvhnj.js} +1 -1
- package/dist/{layers.wNNm0OR_.js → layers.Bh6R4aTS.js} +1 -1
- package/dist/{layers.B8KixoLp.js → layers.BhXltzPN.js} +1 -1
- package/dist/{layers.CYvsrAsT.js → layers.Bid82dra.js} +1 -1
- package/dist/{layers.B6i7W6CZ.js → layers.BjTUzUPL.js} +1 -1
- package/dist/{layers.IrklSkrg.js → layers.BlYGbAr0.js} +1 -1
- package/dist/{layers.Cvq6n0af.js → layers.BomQfc62.js} +1 -1
- package/dist/{layers.hyrgMf8D.js → layers.BpYACVpe.js} +4 -4
- package/dist/{layers.Bdmc_OD6.js → layers.Bph7Ya7r.js} +4 -4
- package/dist/{layers.CNuUCqVd.js → layers.BrgxMSh1.js} +2 -2
- package/dist/{layers._4FKy5MF.js → layers.BsDg01CU.js} +1 -1
- package/dist/{layers.CnwPr2_m.js → layers.Bsf69xiU.js} +1 -1
- package/dist/layers.BsoRcVww.js +8 -0
- package/dist/{layers.CdjisxUB.js → layers.BtQfqte_.js} +4 -4
- package/dist/layers.BuEQHVRn.js +585 -0
- package/dist/{layers.NQ1Aikwn.js → layers.BvvkbP82.js} +1 -1
- package/dist/{layers.CIfvFXmc.js → layers.BxLTmqIg.js} +1 -1
- package/dist/{layers.BJL0EBPa.js → layers.BxzLgCx7.js} +1 -1
- package/dist/layers.C087BbSN.js +1 -0
- package/dist/{layers.CydmsCJ6.js → layers.C1G5XjDq.js} +1 -1
- package/dist/{layers.C_ySCaah.js → layers.C2Crxoln.js} +1 -1
- package/dist/{layers.CzvOzOWn.js → layers.C2H8RbfP.js} +3 -3
- package/dist/{layers.C0wsv0al.js → layers.C7nW2TfS.js} +1 -1
- package/dist/{layers.BrQYLhBE.js → layers.C82M5g3Y.js} +1 -1
- package/dist/{layers.DKJ2WU82.js → layers.CAQaTno7.js} +1 -1
- package/dist/{layers.C-sZ8JPk.js → layers.CAfWmj8Q.js} +3 -3
- package/dist/{layers.CJwda6Ie.js → layers.CB6DYx3P.js} +1 -1
- package/dist/{layers.DAsilv3R.js → layers.CBdVIhaC.js} +1 -1
- package/dist/{layers.BUGbfqCF.js → layers.CDpX4wCh.js} +1 -1
- package/dist/{layers.uYVJCiej.js → layers.CFAU3aYo.js} +1 -1
- package/dist/{layers.BCBsVC-u.js → layers.CGLg-QXF.js} +1 -1
- package/dist/{layers.CfAz8jRQ.js → layers.CGNQx09_.js} +1 -1
- package/dist/{layers.Bgg8ra_F.js → layers.CLjkIRsj.js} +1 -1
- package/dist/{layers.CuWBVZVE.js → layers.CLxXLHn0.js} +1 -1
- package/dist/{layers.Bal9D_3l.js → layers.CMJleN2N.js} +1 -1
- package/dist/layers.CMv-MGOo.js +539 -0
- package/dist/{layers.Bq0FGir_.js → layers.CNX3Y13v.js} +7 -7
- package/dist/{layers._tF8WTcw.js → layers.CNa0oe2M.js} +1 -1
- package/dist/{layers.CBMyh3tg.js → layers.CNkZ32Ss.js} +1 -1
- package/dist/{layers.B5aMO3c8.js → layers.CR-q81fL.js} +24 -24
- package/dist/{layers.CdzEQ0r1.js → layers.CSVKd1FP.js} +1 -1
- package/dist/{layers.DEnZyvIx.js → layers.CTxdvFPq.js} +1 -1
- package/dist/{layers.BcWyCmWd.js → layers.CUki-tZj.js} +1 -1
- package/dist/{layers.MxwwvtSA.js → layers.CV0V6r-0.js} +1 -1
- package/dist/{layers.VAJVLjZN.js → layers.CVEiAGOh.js} +1 -1
- package/dist/{layers.5uzSx96y.js → layers.CXCxIEL2.js} +1 -1
- package/dist/{layers.DJDxjtB3.js → layers.Cb6Q1pdl.js} +1 -1
- package/dist/{layers.IUcKI4IG.js → layers.CbRDb66r.js} +1 -1
- package/dist/{layers.4Ksq__pH.js → layers.Chd_QFzk.js} +3 -3
- package/dist/{layers.BXjG9UK4.js → layers.CkVpUUdk.js} +1 -1
- package/dist/{layers.C8JZixrP.js → layers.Cm20abCV.js} +1 -1
- package/dist/{layers.CUWMwxBO.js → layers.CoojhKEQ.js} +1 -1
- package/dist/{layers.CRjfwp1e.js → layers.CqZ_SmxS.js} +1 -1
- package/dist/{layers.B3Bs8kNy.js → layers.Cr8cieQc.js} +1 -1
- package/dist/{layers.LkFaqKJi.js → layers.Crp4PjDd.js} +1 -1
- package/dist/{layers.GjBrbIMu.js → layers.CwvUhpqa.js} +1 -1
- package/dist/{layers.DKPRD01N.js → layers.Cy6tKZRE.js} +178 -167
- package/dist/{layers.Dc7Pvwn0.js → layers.D-3e1bqL.js} +1 -1
- package/dist/{layers.Ch4ChAuy.js → layers.D2H0ue2X.js} +3 -3
- package/dist/{layers.eOVFoPB6.js → layers.D2Qy6sM9.js} +3 -3
- package/dist/{layers.CPDT_Dw7.js → layers.D2wXSTG7.js} +4 -4
- package/dist/{layers.BP2Y3nmD.js → layers.D5esPWTY.js} +1 -1
- package/dist/{layers.BKiHObFL.js → layers.D6tjfoCc.js} +4 -4
- package/dist/{layers.BxeCbx-6.js → layers.DB5FC83E.js} +1 -1
- package/dist/{layers.ChmMJLJH.js → layers.DCzFhP-8.js} +4 -4
- package/dist/{layers.DL1-UT1O.js → layers.DDx-SMCl.js} +1 -1
- package/dist/{layers.BZfzujdb.js → layers.DEAJVFxk.js} +1 -1
- package/dist/{layers.GIL4vDl3.js → layers.DGPzsNmI.js} +1 -1
- package/dist/{layers.DrYDPEw4.js → layers.DHw29VaG.js} +1 -1
- package/dist/{layers.BT7KTLga.js → layers.DI2iL4Tn.js} +1 -1
- package/dist/{layers.DzkkzOI1.js → layers.DIilVF_M.js} +1 -1
- package/dist/{layers.Bs7NHk-D.js → layers.DJZSw7_Z.js} +1 -1
- package/dist/{layers.jjUX4oi2.js → layers.DLQ6SBa2.js} +1 -1
- package/dist/{layers.D-fSEr1I.js → layers.DLR83xiF.js} +1 -1
- package/dist/{layers.KBaHkWu2.js → layers.DLwTOFrT.js} +1 -1
- package/dist/{layers.BfOoqcmT.js → layers.DNGfDbtN.js} +1 -1
- package/dist/{layers.Ch3sBjxG.js → layers.DOuETTDt.js} +1 -1
- package/dist/{layers.R-v4gNx5.js → layers.DQhXyNBG.js} +1 -1
- package/dist/{layers.CriBy1WL.js → layers.DScpmk0U.js} +1 -1
- package/dist/{layers.SJr4oMpe.js → layers.DUjgzxSn.js} +1 -1
- package/dist/{layers.tcIOYaEM.js → layers.DW6kniIq.js} +1 -1
- package/dist/{layers.W4AlOGgf.js → layers.DXudULR-.js} +1 -1
- package/dist/{layers.PsoKQAJt.js → layers.DYJfly4I.js} +1 -1
- package/dist/{layers.ClL8l0tb.js → layers.DYi-68tU.js} +5 -5
- package/dist/{layers.qz3R7qFS.js → layers.DZ9aQzzh.js} +1 -1
- package/dist/{layers.bOjyWNMD.js → layers.D_BTjOpO.js} +8 -8
- package/dist/layers.D_DCnlm4.js +1 -0
- package/dist/{layers.BzxndRXa.js → layers.Dctz1-Be.js} +1 -1
- package/dist/{layers.BQr6h_rZ.js → layers.DdgU7Wxt.js} +1 -1
- package/dist/{layers.4t4ris2c.js → layers.DfgFW_fZ.js} +1 -1
- package/dist/layers.DikU4t0M.js +6 -0
- package/dist/{layers.DgnF9ACQ.js → layers.DkNt8L2T.js} +1 -1
- package/dist/{layers.C_cLfJzM.js → layers.Dkq7fr__.js} +1 -1
- package/dist/{layers.ukcAaUuY.js → layers.DlHJe0eH.js} +1 -1
- package/dist/{layers.BBeeJXeW.js → layers.DoW-ZBfZ.js} +1 -1
- package/dist/{layers.yLjsrlcl.js → layers.DqQiUrEW.js} +1 -1
- package/dist/{layers.B3G1fUZs.js → layers.DqTbmk_s.js} +3 -3
- package/dist/{layers.nNQp4NGW.js → layers.DudkVylr.js} +1 -1
- package/dist/{layers.CHAiYk68.js → layers.Dv5eFafD.js} +1 -1
- package/dist/{layers.CEG5rDDR.js → layers.DvL-XSvD.js} +1 -1
- package/dist/{layers.BtbDCem_.js → layers.DxWM3PwA.js} +1 -1
- package/dist/{layers.BStfa7Ec.js → layers.Dz50RMu3.js} +1 -1
- package/dist/{layers.BDZny-FL.js → layers.FZD8ymtL.js} +1 -1
- package/dist/{layers.BVm12Snl.js → layers.Gnhel6bO.js} +1 -1
- package/dist/{layers.Dv2NVib3.js → layers.Iv2OYybX.js} +1 -1
- package/dist/{layers.zkSG6BJe.js → layers.JNUaRnwq.js} +1 -1
- package/dist/{layers.DEX89APB.js → layers.N1zRNyjd.js} +1 -1
- package/dist/{layers.4TP6L1o1.js → layers.NGi_ungC.js} +1 -1
- package/dist/{layers.CoBkDvD9.js → layers.NQIPCUeA.js} +1 -1
- package/dist/{layers.DXJuHUsP.js → layers.PbePXAaO.js} +1 -1
- package/dist/{layers.BB7KMib0.js → layers.Pr3SAbdJ.js} +1 -1
- package/dist/{layers.CovfX0qy.js → layers.QyLKnikd.js} +5 -5
- package/dist/{layers.C0MFIWD0.js → layers.RWD55B8I.js} +3 -3
- package/dist/{layers.DLGlC4vJ.js → layers.SVdqNH63.js} +1 -1
- package/dist/{layers.zHn0MlgM.js → layers.UBBwGTJL.js} +1 -1
- package/dist/{layers.BBDOQ7yE.js → layers.VKrCpmtA.js} +1 -1
- package/dist/{layers.CL41IL9l.js → layers.VQnb33oI.js} +1 -1
- package/dist/{layers.ANi-fKvt.js → layers.VVbBvmUb.js} +4 -4
- package/dist/{layers.CMB7qHSe.js → layers.YNuLYTuu.js} +1 -1
- package/dist/{layers.DT-IC93y.js → layers.YpjXAo6o.js} +1 -1
- package/dist/{layers.CrDI7BOy.js → layers.aTewiNrv.js} +1 -1
- package/dist/{layers.D8LHv5Wk.js → layers.aWrDfA3G.js} +1 -1
- package/dist/{layers.C_lggeez.js → layers.aYR8ZkKI.js} +4 -4
- package/dist/{layers.uxy_pIya.js → layers.an2vviU-.js} +3 -3
- package/dist/{layers.CsY2PEaf.js → layers.ccYEo0zL.js} +1 -1
- package/dist/{layers.Bob_UXUE.js → layers.d1J8xasZ.js} +1 -1
- package/dist/{layers.CPtqyUQW.js → layers.dD16n4wC.js} +1 -1
- package/dist/{layers.iikl0VeP.js → layers.dIolMNur.js} +1 -1
- package/dist/{layers.CCVNugk5.js → layers.dhMjlsvZ.js} +1 -1
- package/dist/{layers.C_ncOnbF.js → layers.i_EhsGoq.js} +1 -1
- package/dist/{layers.CoN_biX_.js → layers.j_fu-1he.js} +1 -1
- package/dist/{layers.B_GfugcR.js → layers.kVunnuXH.js} +1 -1
- package/dist/{layers.4O7NP2hG.js → layers.l4zNs6ys.js} +1 -1
- package/dist/{layers.D0XXdyU0.js → layers.oqrEyCZw.js} +1 -1
- package/dist/{layers.CMHJlCdH.js → layers.qeIA-o6A.js} +1 -1
- package/dist/{layers.CN6jCCLu.js → layers.rPt8nHhw.js} +1 -1
- package/dist/{layers.qlG64X88.js → layers.tbzuOSk6.js} +1 -1
- package/dist/{layers.Dzf8tAtZ.js → layers.tiZH4Hp1.js} +1 -1
- package/dist/{layers.Bpf4TPHn.js → layers.w3nbwofn.js} +1 -1
- package/dist/{layers.BSBUCRxL.js → layers.x8s7fn3P.js} +1 -1
- package/dist/{layers.BdpB4FQH.js → layers.y8izWV3a.js} +1 -1
- package/dist/{layers.Dvgz32kE.js → layers.z2WtNyKR.js} +1 -1
- package/package.json +16 -128
- package/README.md +0 -831
- package/dist/layers.B184Fepz.js +0 -1
- package/dist/layers.BRYleyNj.js +0 -1
- package/dist/layers.Be2REn5S.js +0 -1
- package/dist/layers.Bu5dgBb_.js +0 -310
- package/dist/layers.C4LsiUri.js +0 -8
- package/dist/layers.CyynMWyN.js +0 -6
- package/dist/layers.QjBxi8wH.js +0 -533
- package/dist/layers.hMoxHZrO.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 { }
|