@notectl/core 1.7.3 → 2.0.1
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/LICENSE +21 -0
- package/README.md +56 -31
- package/custom-elements.json +350 -6
- package/dist/chunks/AttrRegistry-Ckj9eCHj.mjs +2 -0
- package/dist/chunks/AttrRegistry-Ckj9eCHj.mjs.map +1 -0
- package/dist/chunks/AttributedMarkCommands-x7h4Xy7V.mjs +2 -0
- package/dist/chunks/AttributedMarkCommands-x7h4Xy7V.mjs.map +1 -0
- package/dist/chunks/BlockInsertion-zPxm6oa_.mjs +2 -0
- package/dist/chunks/BlockInsertion-zPxm6oa_.mjs.map +1 -0
- package/dist/chunks/BlockTypePickerRegistry-DcSE6IXB.mjs +2 -0
- package/dist/chunks/BlockTypePickerRegistry-DcSE6IXB.mjs.map +1 -0
- package/dist/chunks/ColorGrid-CpkbKfXg.mjs +2 -0
- package/dist/chunks/ColorGrid-CpkbKfXg.mjs.map +1 -0
- package/dist/chunks/ColorPickerPopup-CDUvkgcK.mjs +2 -0
- package/dist/chunks/ColorPickerPopup-CDUvkgcK.mjs.map +1 -0
- package/dist/chunks/ColorValidation-DCSKq9B2.mjs +2 -0
- package/dist/chunks/{ColorValidation-CV4f1wu6.mjs.map → ColorValidation-DCSKq9B2.mjs.map} +1 -1
- package/dist/chunks/Commands-DwXBBVGR.mjs +2 -0
- package/dist/chunks/Commands-DwXBBVGR.mjs.map +1 -0
- package/dist/chunks/Decoration-D49mFXrH.mjs +2 -0
- package/dist/chunks/Decoration-D49mFXrH.mjs.map +1 -0
- package/dist/chunks/Document-HC8s50qJ.mjs +2 -0
- package/dist/chunks/Document-HC8s50qJ.mjs.map +1 -0
- package/dist/chunks/DocumentParser-w70-Axud.mjs +2 -0
- package/dist/chunks/DocumentParser-w70-Axud.mjs.map +1 -0
- package/dist/chunks/DomUtils-CznMAZZg.mjs +2 -0
- package/dist/chunks/DomUtils-CznMAZZg.mjs.map +1 -0
- package/dist/chunks/HTMLUtils-Cxy99Ak2.mjs +2 -0
- package/dist/chunks/HTMLUtils-Cxy99Ak2.mjs.map +1 -0
- package/dist/chunks/HeadingPlugin-B-LF-AMM.mjs +2 -0
- package/dist/chunks/HeadingPlugin-B-LF-AMM.mjs.map +1 -0
- package/dist/chunks/KeyboardNav-DsYhKKuV.mjs +2 -0
- package/dist/chunks/KeyboardNav-DsYhKKuV.mjs.map +1 -0
- package/dist/chunks/MarkCommands-CTuVDqnn.mjs +2 -0
- package/dist/chunks/MarkCommands-CTuVDqnn.mjs.map +1 -0
- package/dist/chunks/NavigationQueries-DCOv4Ca5.mjs +2 -0
- package/dist/chunks/NavigationQueries-DCOv4Ca5.mjs.map +1 -0
- package/dist/chunks/NotectlEditor-DBBJkPCW.mjs +3 -0
- package/dist/chunks/NotectlEditor-DBBJkPCW.mjs.map +1 -0
- package/dist/chunks/Platform-CU6itXZo.mjs +2 -0
- package/dist/chunks/Platform-CU6itXZo.mjs.map +1 -0
- package/dist/chunks/PluginHelpers-CdPR0MuT.mjs +2 -0
- package/dist/chunks/PluginHelpers-CdPR0MuT.mjs.map +1 -0
- package/dist/chunks/PopupManager-Du3dYnsJ.mjs +2 -0
- package/dist/chunks/PopupManager-Du3dYnsJ.mjs.map +1 -0
- package/dist/chunks/PopupPositioning-DtvqMSop.mjs +2 -0
- package/dist/chunks/PopupPositioning-DtvqMSop.mjs.map +1 -0
- package/dist/chunks/PrintTypes-DukwDSWS.mjs +2 -0
- package/dist/chunks/PrintTypes-DukwDSWS.mjs.map +1 -0
- package/dist/chunks/RangeIterator-CprUbOWv.mjs +2 -0
- package/dist/chunks/{RangeIterator-Bh4Vl_6D.mjs.map → RangeIterator-CprUbOWv.mjs.map} +1 -1
- package/dist/chunks/Selection-DhbizDM4.mjs +2 -0
- package/dist/chunks/{Selection-BRTab5hO.mjs.map → Selection-DhbizDM4.mjs.map} +1 -1
- package/dist/chunks/SelectionTransactions-DB3YDIEa.mjs +2 -0
- package/dist/chunks/SelectionTransactions-DB3YDIEa.mjs.map +1 -0
- package/dist/chunks/ShortcutFormatting-BLKS0Gys.mjs +2 -0
- package/dist/chunks/ShortcutFormatting-BLKS0Gys.mjs.map +1 -0
- package/dist/chunks/StyleRuntime-BmsLoEa8.mjs +2 -0
- package/dist/chunks/{StyleRuntime-CP4NCwKT.mjs.map → StyleRuntime-BmsLoEa8.mjs.map} +1 -1
- package/dist/chunks/TextDirectionLocale-BraFI9JF.mjs +2 -0
- package/dist/chunks/TextDirectionLocale-BraFI9JF.mjs.map +1 -0
- package/dist/chunks/TypeBrands-Bp_Z_o5Y.mjs +2 -0
- package/dist/chunks/{TypeBrands-C09nE2qO.mjs.map → TypeBrands-Bp_Z_o5Y.mjs.map} +1 -1
- package/dist/chunks/XmlPatterns-DxQXGjP8.mjs +2 -0
- package/dist/chunks/XmlPatterns-DxQXGjP8.mjs.map +1 -0
- package/dist/chunks/ar-B93SPJT7.mjs +2 -0
- package/dist/chunks/ar-B93SPJT7.mjs.map +1 -0
- package/dist/chunks/ar-BAmGa08u.mjs +2 -0
- package/dist/chunks/ar-BAmGa08u.mjs.map +1 -0
- package/dist/chunks/ar-BYNFEVLc.mjs +2 -0
- package/dist/chunks/ar-BYNFEVLc.mjs.map +1 -0
- package/dist/chunks/ar-Bnc7y8BP.mjs +2 -0
- package/dist/chunks/ar-Bnc7y8BP.mjs.map +1 -0
- package/dist/chunks/ar-Bp3rDZky.mjs +2 -0
- package/dist/chunks/ar-Bp3rDZky.mjs.map +1 -0
- package/dist/chunks/ar-BtOQ7lro.mjs +2 -0
- package/dist/chunks/ar-BtOQ7lro.mjs.map +1 -0
- package/dist/chunks/ar-C5JEHhw9.mjs +2 -0
- package/dist/chunks/ar-C5JEHhw9.mjs.map +1 -0
- package/dist/chunks/ar-CL3QL0tw.mjs +2 -0
- package/dist/chunks/ar-CL3QL0tw.mjs.map +1 -0
- package/dist/chunks/ar-CYtG-XlN.mjs +2 -0
- package/dist/chunks/ar-CYtG-XlN.mjs.map +1 -0
- package/dist/chunks/ar-CzVj8p__.mjs +2 -0
- package/dist/chunks/ar-CzVj8p__.mjs.map +1 -0
- package/dist/chunks/ar-D7PS3e2g.mjs +2 -0
- package/dist/chunks/ar-D7PS3e2g.mjs.map +1 -0
- package/dist/chunks/ar-D8adM2Uy.mjs +2 -0
- package/dist/chunks/ar-D8adM2Uy.mjs.map +1 -0
- package/dist/chunks/ar-D9jyShaB.mjs +2 -0
- package/dist/chunks/ar-D9jyShaB.mjs.map +1 -0
- package/dist/chunks/ar-DR6OA3ZO.mjs +2 -0
- package/dist/chunks/ar-DR6OA3ZO.mjs.map +1 -0
- package/dist/chunks/ar-Deibepjm.mjs +2 -0
- package/dist/chunks/ar-Deibepjm.mjs.map +1 -0
- package/dist/chunks/ar-Dlb5riUN.mjs +2 -0
- package/dist/chunks/ar-Dlb5riUN.mjs.map +1 -0
- package/dist/chunks/ar-DmmxE2W7.mjs +2 -0
- package/dist/chunks/ar-DmmxE2W7.mjs.map +1 -0
- package/dist/chunks/ar-Ds6Z2Gzf.mjs +2 -0
- package/dist/chunks/ar-Ds6Z2Gzf.mjs.map +1 -0
- package/dist/chunks/ar-DtIHQ8nU.mjs +2 -0
- package/dist/chunks/ar-DtIHQ8nU.mjs.map +1 -0
- package/dist/chunks/ar-J8B-on-0.mjs +2 -0
- package/dist/chunks/ar-J8B-on-0.mjs.map +1 -0
- package/dist/chunks/ar-b6VdnxAs.mjs +2 -0
- package/dist/chunks/ar-b6VdnxAs.mjs.map +1 -0
- package/dist/chunks/ar-iU02mRe5.mjs +2 -0
- package/dist/chunks/ar-iU02mRe5.mjs.map +1 -0
- package/dist/chunks/ar-mSCYQYnL.mjs +2 -0
- package/dist/chunks/ar-mSCYQYnL.mjs.map +1 -0
- package/dist/chunks/color-picker-Byjl_xr9.mjs +2 -0
- package/dist/chunks/color-picker-Byjl_xr9.mjs.map +1 -0
- package/dist/chunks/de-8aCC5jBM.mjs +2 -0
- package/dist/chunks/de-8aCC5jBM.mjs.map +1 -0
- package/dist/chunks/de-B4y4ndUw.mjs +2 -0
- package/dist/chunks/de-B4y4ndUw.mjs.map +1 -0
- package/dist/chunks/de-B5fcZ0FQ.mjs +2 -0
- package/dist/chunks/de-B5fcZ0FQ.mjs.map +1 -0
- package/dist/chunks/de-BT9VmwoJ.mjs +2 -0
- package/dist/chunks/de-BT9VmwoJ.mjs.map +1 -0
- package/dist/chunks/de-BZWSyJTG.mjs +2 -0
- package/dist/chunks/de-BZWSyJTG.mjs.map +1 -0
- package/dist/chunks/de-CFD_Wgik.mjs +2 -0
- package/dist/chunks/de-CFD_Wgik.mjs.map +1 -0
- package/dist/chunks/de-CLYtb6kD.mjs +2 -0
- package/dist/chunks/de-CLYtb6kD.mjs.map +1 -0
- package/dist/chunks/de-CP5v-98M.mjs +2 -0
- package/dist/chunks/de-CP5v-98M.mjs.map +1 -0
- package/dist/chunks/de-CYJ6uWno.mjs +2 -0
- package/dist/chunks/de-CYJ6uWno.mjs.map +1 -0
- package/dist/chunks/de-ChcKkF7A.mjs +2 -0
- package/dist/chunks/de-ChcKkF7A.mjs.map +1 -0
- package/dist/chunks/de-CicoU066.mjs +2 -0
- package/dist/chunks/de-CicoU066.mjs.map +1 -0
- package/dist/chunks/de-CjLAdBt2.mjs +2 -0
- package/dist/chunks/de-CjLAdBt2.mjs.map +1 -0
- package/dist/chunks/de-CtFvAXwF.mjs +2 -0
- package/dist/chunks/de-CtFvAXwF.mjs.map +1 -0
- package/dist/chunks/de-D1OAXtxJ.mjs +2 -0
- package/dist/chunks/de-D1OAXtxJ.mjs.map +1 -0
- package/dist/chunks/de-DBbzCQrm.mjs +2 -0
- package/dist/chunks/de-DBbzCQrm.mjs.map +1 -0
- package/dist/chunks/de-DOLwx_M7.mjs +2 -0
- package/dist/chunks/de-DOLwx_M7.mjs.map +1 -0
- package/dist/chunks/de-De2miMxo.mjs +2 -0
- package/dist/chunks/de-De2miMxo.mjs.map +1 -0
- package/dist/chunks/de-OTfhhinm.mjs +2 -0
- package/dist/chunks/de-OTfhhinm.mjs.map +1 -0
- package/dist/chunks/de-PZ9-LlBp.mjs +2 -0
- package/dist/chunks/de-PZ9-LlBp.mjs.map +1 -0
- package/dist/chunks/de-UREymH-5.mjs +2 -0
- package/dist/chunks/de-UREymH-5.mjs.map +1 -0
- package/dist/chunks/de-chYdoK9q.mjs +2 -0
- package/dist/chunks/de-chYdoK9q.mjs.map +1 -0
- package/dist/chunks/de-fXvs5vQT.mjs +2 -0
- package/dist/chunks/de-fXvs5vQT.mjs.map +1 -0
- package/dist/chunks/de-xJh5C_pk.mjs +2 -0
- package/dist/chunks/de-xJh5C_pk.mjs.map +1 -0
- package/dist/chunks/es-B9UhsaEI.mjs +2 -0
- package/dist/chunks/es-B9UhsaEI.mjs.map +1 -0
- package/dist/chunks/es-BHGwPgrP.mjs +2 -0
- package/dist/chunks/es-BHGwPgrP.mjs.map +1 -0
- package/dist/chunks/es-BTqy_aQ4.mjs +2 -0
- package/dist/chunks/es-BTqy_aQ4.mjs.map +1 -0
- package/dist/chunks/es-BbGOZGS_.mjs +2 -0
- package/dist/chunks/es-BbGOZGS_.mjs.map +1 -0
- package/dist/chunks/es-BjPsub0k.mjs +2 -0
- package/dist/chunks/es-BjPsub0k.mjs.map +1 -0
- package/dist/chunks/es-Bk0bRDFE.mjs +2 -0
- package/dist/chunks/es-Bk0bRDFE.mjs.map +1 -0
- package/dist/chunks/es-BkS6DsrM.mjs +2 -0
- package/dist/chunks/es-BkS6DsrM.mjs.map +1 -0
- package/dist/chunks/es-BzEpr4Bk.mjs +2 -0
- package/dist/chunks/es-BzEpr4Bk.mjs.map +1 -0
- package/dist/chunks/es-C2lnWyA0.mjs +2 -0
- package/dist/chunks/es-C2lnWyA0.mjs.map +1 -0
- package/dist/chunks/es-C7e35Muh.mjs +2 -0
- package/dist/chunks/es-C7e35Muh.mjs.map +1 -0
- package/dist/chunks/es-CBk43isB.mjs +2 -0
- package/dist/chunks/es-CBk43isB.mjs.map +1 -0
- package/dist/chunks/es-CE8t9fuM.mjs +2 -0
- package/dist/chunks/es-CE8t9fuM.mjs.map +1 -0
- package/dist/chunks/es-CFjzqIbS.mjs +2 -0
- package/dist/chunks/es-CFjzqIbS.mjs.map +1 -0
- package/dist/chunks/es-Ce-AEYxc.mjs +2 -0
- package/dist/chunks/es-Ce-AEYxc.mjs.map +1 -0
- package/dist/chunks/es-Co4AJr8Y.mjs +2 -0
- package/dist/chunks/es-Co4AJr8Y.mjs.map +1 -0
- package/dist/chunks/es-Cu5_OA4X.mjs +2 -0
- package/dist/chunks/es-Cu5_OA4X.mjs.map +1 -0
- package/dist/chunks/es-Cud6JXHf.mjs +2 -0
- package/dist/chunks/es-Cud6JXHf.mjs.map +1 -0
- package/dist/chunks/es-D-II7LZC.mjs +2 -0
- package/dist/chunks/es-D-II7LZC.mjs.map +1 -0
- package/dist/chunks/es-DBBSeOaD.mjs +2 -0
- package/dist/chunks/es-DBBSeOaD.mjs.map +1 -0
- package/dist/chunks/es-DCwjeUUu.mjs +2 -0
- package/dist/chunks/es-DCwjeUUu.mjs.map +1 -0
- package/dist/chunks/es-DvgH3-WZ.mjs +2 -0
- package/dist/chunks/es-DvgH3-WZ.mjs.map +1 -0
- package/dist/chunks/es-MgguVgIs.mjs +2 -0
- package/dist/chunks/es-MgguVgIs.mjs.map +1 -0
- package/dist/chunks/es-yXjjcxgb.mjs +2 -0
- package/dist/chunks/es-yXjjcxgb.mjs.map +1 -0
- package/dist/chunks/fr-B-_yKIAY.mjs +2 -0
- package/dist/chunks/fr-B-_yKIAY.mjs.map +1 -0
- package/dist/chunks/fr-BGyF2ym0.mjs +2 -0
- package/dist/chunks/fr-BGyF2ym0.mjs.map +1 -0
- package/dist/chunks/fr-BoRJ3B2-.mjs +2 -0
- package/dist/chunks/fr-BoRJ3B2-.mjs.map +1 -0
- package/dist/chunks/fr-BrKk4SPg.mjs +2 -0
- package/dist/chunks/fr-BrKk4SPg.mjs.map +1 -0
- package/dist/chunks/fr-C-y09LKg.mjs +2 -0
- package/dist/chunks/fr-C-y09LKg.mjs.map +1 -0
- package/dist/chunks/fr-C1W7jyd6.mjs +2 -0
- package/dist/chunks/fr-C1W7jyd6.mjs.map +1 -0
- package/dist/chunks/fr-C8CtmWBj.mjs +2 -0
- package/dist/chunks/fr-C8CtmWBj.mjs.map +1 -0
- package/dist/chunks/fr-C9oiPW0k.mjs +2 -0
- package/dist/chunks/fr-C9oiPW0k.mjs.map +1 -0
- package/dist/chunks/fr-CEkk4UyZ.mjs +2 -0
- package/dist/chunks/fr-CEkk4UyZ.mjs.map +1 -0
- package/dist/chunks/fr-Ccaetiwi.mjs +2 -0
- package/dist/chunks/fr-Ccaetiwi.mjs.map +1 -0
- package/dist/chunks/fr-Ccku5KzA.mjs +2 -0
- package/dist/chunks/fr-Ccku5KzA.mjs.map +1 -0
- package/dist/chunks/fr-CfUg1FxU.mjs +2 -0
- package/dist/chunks/fr-CfUg1FxU.mjs.map +1 -0
- package/dist/chunks/fr-DDkBcjmO.mjs +2 -0
- package/dist/chunks/fr-DDkBcjmO.mjs.map +1 -0
- package/dist/chunks/fr-DNwLChcm.mjs +2 -0
- package/dist/chunks/fr-DNwLChcm.mjs.map +1 -0
- package/dist/chunks/fr-DvneSjCf.mjs +2 -0
- package/dist/chunks/fr-DvneSjCf.mjs.map +1 -0
- package/dist/chunks/fr-Dx4Qqimj.mjs +2 -0
- package/dist/chunks/fr-Dx4Qqimj.mjs.map +1 -0
- package/dist/chunks/fr-RHXmueoO.mjs +2 -0
- package/dist/chunks/fr-RHXmueoO.mjs.map +1 -0
- package/dist/chunks/fr-VdiCNF4J.mjs +2 -0
- package/dist/chunks/fr-VdiCNF4J.mjs.map +1 -0
- package/dist/chunks/fr-Wiobfk5s.mjs +2 -0
- package/dist/chunks/fr-Wiobfk5s.mjs.map +1 -0
- package/dist/chunks/fr-YMiDtWuG.mjs +2 -0
- package/dist/chunks/fr-YMiDtWuG.mjs.map +1 -0
- package/dist/chunks/fr-_Oxf0k66.mjs +2 -0
- package/dist/chunks/fr-_Oxf0k66.mjs.map +1 -0
- package/dist/chunks/fr-gurfH-7T.mjs +2 -0
- package/dist/chunks/fr-gurfH-7T.mjs.map +1 -0
- package/dist/chunks/fr-zP7EjxDL.mjs +2 -0
- package/dist/chunks/fr-zP7EjxDL.mjs.map +1 -0
- package/dist/chunks/hi-B2W8pFqK.mjs +2 -0
- package/dist/chunks/hi-B2W8pFqK.mjs.map +1 -0
- package/dist/chunks/hi-B2m69ZCq.mjs +2 -0
- package/dist/chunks/hi-B2m69ZCq.mjs.map +1 -0
- package/dist/chunks/hi-BMIt3y_-.mjs +2 -0
- package/dist/chunks/hi-BMIt3y_-.mjs.map +1 -0
- package/dist/chunks/hi-BdtVhAzs.mjs +2 -0
- package/dist/chunks/hi-BdtVhAzs.mjs.map +1 -0
- package/dist/chunks/hi-BmkfaZpg.mjs +2 -0
- package/dist/chunks/hi-BmkfaZpg.mjs.map +1 -0
- package/dist/chunks/hi-C-l_R2SO.mjs +2 -0
- package/dist/chunks/hi-C-l_R2SO.mjs.map +1 -0
- package/dist/chunks/hi-C1LhM-oY.mjs +2 -0
- package/dist/chunks/hi-C1LhM-oY.mjs.map +1 -0
- package/dist/chunks/hi-CGEbGI1l.mjs +2 -0
- package/dist/chunks/hi-CGEbGI1l.mjs.map +1 -0
- package/dist/chunks/hi-CPuhj7IA.mjs +2 -0
- package/dist/chunks/hi-CPuhj7IA.mjs.map +1 -0
- package/dist/chunks/hi-CT5WERqi.mjs +2 -0
- package/dist/chunks/hi-CT5WERqi.mjs.map +1 -0
- package/dist/chunks/hi-CbLPPQ0b.mjs +2 -0
- package/dist/chunks/hi-CbLPPQ0b.mjs.map +1 -0
- package/dist/chunks/hi-ClvEtEKe.mjs +2 -0
- package/dist/chunks/hi-ClvEtEKe.mjs.map +1 -0
- package/dist/chunks/hi-CpBWHmYH.mjs +2 -0
- package/dist/chunks/hi-CpBWHmYH.mjs.map +1 -0
- package/dist/chunks/hi-DAfl8nU_.mjs +2 -0
- package/dist/chunks/hi-DAfl8nU_.mjs.map +1 -0
- package/dist/chunks/hi-DVof3w0y.mjs +2 -0
- package/dist/chunks/hi-DVof3w0y.mjs.map +1 -0
- package/dist/chunks/hi-DtlvSQkD.mjs +2 -0
- package/dist/chunks/hi-DtlvSQkD.mjs.map +1 -0
- package/dist/chunks/hi-FH3CAJuR.mjs +2 -0
- package/dist/chunks/hi-FH3CAJuR.mjs.map +1 -0
- package/dist/chunks/hi-Ga9h9a_1.mjs +2 -0
- package/dist/chunks/hi-Ga9h9a_1.mjs.map +1 -0
- package/dist/chunks/hi-Zc17M1T-.mjs +2 -0
- package/dist/chunks/hi-Zc17M1T-.mjs.map +1 -0
- package/dist/chunks/hi-g7i0bmig.mjs +2 -0
- package/dist/chunks/hi-g7i0bmig.mjs.map +1 -0
- package/dist/chunks/hi-js2P6byR.mjs +2 -0
- package/dist/chunks/hi-js2P6byR.mjs.map +1 -0
- package/dist/chunks/hi-ntUsOspQ.mjs +2 -0
- package/dist/chunks/hi-ntUsOspQ.mjs.map +1 -0
- package/dist/chunks/hi-yxAcR3w6.mjs +2 -0
- package/dist/chunks/hi-yxAcR3w6.mjs.map +1 -0
- package/dist/chunks/index-CVwf0cdH.mjs +2 -0
- package/dist/chunks/index-CVwf0cdH.mjs.map +1 -0
- package/dist/chunks/index-D3BZFsAD.mjs +2 -0
- package/dist/chunks/index-D3BZFsAD.mjs.map +1 -0
- package/dist/chunks/pt--IiroJQw.mjs +2 -0
- package/dist/chunks/pt--IiroJQw.mjs.map +1 -0
- package/dist/chunks/pt-BF72W8M5.mjs +2 -0
- package/dist/chunks/pt-BF72W8M5.mjs.map +1 -0
- package/dist/chunks/pt-BX_t4luI.mjs +2 -0
- package/dist/chunks/pt-BX_t4luI.mjs.map +1 -0
- package/dist/chunks/pt-B_XJ2s9X.mjs +2 -0
- package/dist/chunks/pt-B_XJ2s9X.mjs.map +1 -0
- package/dist/chunks/pt-C-Vp7Rxj.mjs +2 -0
- package/dist/chunks/pt-C-Vp7Rxj.mjs.map +1 -0
- package/dist/chunks/pt-CD2aCZXf.mjs +2 -0
- package/dist/chunks/pt-CD2aCZXf.mjs.map +1 -0
- package/dist/chunks/pt-CFjzqIbS.mjs +2 -0
- package/dist/chunks/pt-CFjzqIbS.mjs.map +1 -0
- package/dist/chunks/pt-CHjmBegF.mjs +2 -0
- package/dist/chunks/pt-CHjmBegF.mjs.map +1 -0
- package/dist/chunks/pt-CQRzEocL.mjs +2 -0
- package/dist/chunks/pt-CQRzEocL.mjs.map +1 -0
- package/dist/chunks/pt-Cem2WxUk.mjs +2 -0
- package/dist/chunks/pt-Cem2WxUk.mjs.map +1 -0
- package/dist/chunks/pt-D6kdF3fH.mjs +2 -0
- package/dist/chunks/pt-D6kdF3fH.mjs.map +1 -0
- package/dist/chunks/pt-DJfJVeY8.mjs +2 -0
- package/dist/chunks/pt-DJfJVeY8.mjs.map +1 -0
- package/dist/chunks/pt-DfB-IaYi.mjs +2 -0
- package/dist/chunks/pt-DfB-IaYi.mjs.map +1 -0
- package/dist/chunks/pt-DlNdH9pu.mjs +2 -0
- package/dist/chunks/pt-DlNdH9pu.mjs.map +1 -0
- package/dist/chunks/pt-DrJ0-8Yo.mjs +2 -0
- package/dist/chunks/pt-DrJ0-8Yo.mjs.map +1 -0
- package/dist/chunks/pt-DsBJpgpe.mjs +2 -0
- package/dist/chunks/pt-DsBJpgpe.mjs.map +1 -0
- package/dist/chunks/pt-DwdSYJzC.mjs +2 -0
- package/dist/chunks/pt-DwdSYJzC.mjs.map +1 -0
- package/dist/chunks/pt-Dx9UkZ3j.mjs +2 -0
- package/dist/chunks/pt-Dx9UkZ3j.mjs.map +1 -0
- package/dist/chunks/pt-K0BUlM9X.mjs +2 -0
- package/dist/chunks/pt-K0BUlM9X.mjs.map +1 -0
- package/dist/chunks/pt-TuA3_GDM.mjs +2 -0
- package/dist/chunks/pt-TuA3_GDM.mjs.map +1 -0
- package/dist/chunks/pt-cN6r-f7f.mjs +2 -0
- package/dist/chunks/pt-cN6r-f7f.mjs.map +1 -0
- package/dist/chunks/pt-uNGpVM3D.mjs +2 -0
- package/dist/chunks/pt-uNGpVM3D.mjs.map +1 -0
- package/dist/chunks/pt-v1E9u-Jx.mjs +2 -0
- package/dist/chunks/pt-v1E9u-Jx.mjs.map +1 -0
- package/dist/chunks/ru-0h51zrqE.mjs +2 -0
- package/dist/chunks/ru-0h51zrqE.mjs.map +1 -0
- package/dist/chunks/ru-4S8w6UN_.mjs +2 -0
- package/dist/chunks/ru-4S8w6UN_.mjs.map +1 -0
- package/dist/chunks/ru-B0cRw90L.mjs +2 -0
- package/dist/chunks/ru-B0cRw90L.mjs.map +1 -0
- package/dist/chunks/ru-B3O7WXNM.mjs +2 -0
- package/dist/chunks/ru-B3O7WXNM.mjs.map +1 -0
- package/dist/chunks/ru-B6zVAzvI.mjs +2 -0
- package/dist/chunks/ru-B6zVAzvI.mjs.map +1 -0
- package/dist/chunks/ru-B8teJin_.mjs +2 -0
- package/dist/chunks/ru-B8teJin_.mjs.map +1 -0
- package/dist/chunks/ru-BCriPw-8.mjs +2 -0
- package/dist/chunks/ru-BCriPw-8.mjs.map +1 -0
- package/dist/chunks/ru-BNOU16E5.mjs +2 -0
- package/dist/chunks/ru-BNOU16E5.mjs.map +1 -0
- package/dist/chunks/ru-BO6BIS5W.mjs +2 -0
- package/dist/chunks/ru-BO6BIS5W.mjs.map +1 -0
- package/dist/chunks/ru-Bdy1lLuc.mjs +2 -0
- package/dist/chunks/ru-Bdy1lLuc.mjs.map +1 -0
- package/dist/chunks/ru-BgBctNVm.mjs +2 -0
- package/dist/chunks/ru-BgBctNVm.mjs.map +1 -0
- package/dist/chunks/ru-CNLx7T3O.mjs +2 -0
- package/dist/chunks/ru-CNLx7T3O.mjs.map +1 -0
- package/dist/chunks/ru-CVSCT776.mjs +2 -0
- package/dist/chunks/ru-CVSCT776.mjs.map +1 -0
- package/dist/chunks/ru-CZvkdGnf.mjs +2 -0
- package/dist/chunks/ru-CZvkdGnf.mjs.map +1 -0
- package/dist/chunks/ru-CegMPuML.mjs +2 -0
- package/dist/chunks/ru-CegMPuML.mjs.map +1 -0
- package/dist/chunks/ru-CiLrD2Nz.mjs +2 -0
- package/dist/chunks/ru-CiLrD2Nz.mjs.map +1 -0
- package/dist/chunks/ru-ClEM6OKY.mjs +2 -0
- package/dist/chunks/ru-ClEM6OKY.mjs.map +1 -0
- package/dist/chunks/ru-CrbxCeQf.mjs +2 -0
- package/dist/chunks/ru-CrbxCeQf.mjs.map +1 -0
- package/dist/chunks/ru-D3j2x2xu.mjs +2 -0
- package/dist/chunks/ru-D3j2x2xu.mjs.map +1 -0
- package/dist/chunks/ru-DdHqb4Mh.mjs +2 -0
- package/dist/chunks/ru-DdHqb4Mh.mjs.map +1 -0
- package/dist/chunks/ru-DjgNdOdJ.mjs +2 -0
- package/dist/chunks/ru-DjgNdOdJ.mjs.map +1 -0
- package/dist/chunks/ru-Tzd5N37W.mjs +2 -0
- package/dist/chunks/ru-Tzd5N37W.mjs.map +1 -0
- package/dist/chunks/ru-XKNCzkR2.mjs +2 -0
- package/dist/chunks/ru-XKNCzkR2.mjs.map +1 -0
- package/dist/chunks/zh--oNSMazK.mjs +2 -0
- package/dist/chunks/zh--oNSMazK.mjs.map +1 -0
- package/dist/chunks/zh-BfeWdPIz.mjs +2 -0
- package/dist/chunks/zh-BfeWdPIz.mjs.map +1 -0
- package/dist/chunks/zh-BnOxGKxF.mjs +2 -0
- package/dist/chunks/zh-BnOxGKxF.mjs.map +1 -0
- package/dist/chunks/zh-BqMtE-jN.mjs +2 -0
- package/dist/chunks/zh-BqMtE-jN.mjs.map +1 -0
- package/dist/chunks/zh-C3aI7A2o.mjs +2 -0
- package/dist/chunks/zh-C3aI7A2o.mjs.map +1 -0
- package/dist/chunks/zh-C6YALJZt.mjs +2 -0
- package/dist/chunks/zh-C6YALJZt.mjs.map +1 -0
- package/dist/chunks/zh-CWdTbUOP.mjs +2 -0
- package/dist/chunks/zh-CWdTbUOP.mjs.map +1 -0
- package/dist/chunks/zh-CY01pMD4.mjs +2 -0
- package/dist/chunks/zh-CY01pMD4.mjs.map +1 -0
- package/dist/chunks/zh-Cmt7n9FY.mjs +2 -0
- package/dist/chunks/zh-Cmt7n9FY.mjs.map +1 -0
- package/dist/chunks/zh-CpP2kee3.mjs +2 -0
- package/dist/chunks/zh-CpP2kee3.mjs.map +1 -0
- package/dist/chunks/zh-Cpbg4evx.mjs +2 -0
- package/dist/chunks/zh-Cpbg4evx.mjs.map +1 -0
- package/dist/chunks/zh-Cqb55JWa.mjs +2 -0
- package/dist/chunks/zh-Cqb55JWa.mjs.map +1 -0
- package/dist/chunks/zh-DCQZ6gss.mjs +2 -0
- package/dist/chunks/zh-DCQZ6gss.mjs.map +1 -0
- package/dist/chunks/zh-DG2CNTUU.mjs +2 -0
- package/dist/chunks/zh-DG2CNTUU.mjs.map +1 -0
- package/dist/chunks/zh-DTiTJbzz.mjs +2 -0
- package/dist/chunks/zh-DTiTJbzz.mjs.map +1 -0
- package/dist/chunks/zh-Da1z6qbB.mjs +2 -0
- package/dist/chunks/zh-Da1z6qbB.mjs.map +1 -0
- package/dist/chunks/zh-Di3WqY4_.mjs +2 -0
- package/dist/chunks/zh-Di3WqY4_.mjs.map +1 -0
- package/dist/chunks/zh-DlBt06Pr.mjs +2 -0
- package/dist/chunks/zh-DlBt06Pr.mjs.map +1 -0
- package/dist/chunks/zh-Dt-wVrNr.mjs +2 -0
- package/dist/chunks/zh-Dt-wVrNr.mjs.map +1 -0
- package/dist/chunks/zh-ND6vW2M-.mjs +2 -0
- package/dist/chunks/zh-ND6vW2M-.mjs.map +1 -0
- package/dist/chunks/zh-Yd3GNsa0.mjs +2 -0
- package/dist/chunks/zh-Yd3GNsa0.mjs.map +1 -0
- package/dist/chunks/zh-lhynyH6Q.mjs +2 -0
- package/dist/chunks/zh-lhynyH6Q.mjs.map +1 -0
- package/dist/chunks/zh-v9NmlEIN.mjs +2 -0
- package/dist/chunks/zh-v9NmlEIN.mjs.map +1 -0
- package/dist/commands/BlockInsertion.d.ts +64 -0
- package/dist/commands/BlockInsertion.d.ts.map +1 -0
- package/dist/commands/CommandHelpers.d.ts +4 -0
- package/dist/commands/CommandHelpers.d.ts.map +1 -1
- package/dist/commands/Commands.d.ts +9 -3
- package/dist/commands/Commands.d.ts.map +1 -1
- package/dist/commands/GapCursorCommands.d.ts.map +1 -1
- package/dist/commands/MovementCommands.d.ts +1 -4
- package/dist/commands/MovementCommands.d.ts.map +1 -1
- package/dist/commands/NodeSelectionCommands.d.ts +3 -1
- package/dist/commands/NodeSelectionCommands.d.ts.map +1 -1
- package/dist/commands/PasteCommand.d.ts.map +1 -1
- package/dist/commands/WordBoundary.d.ts +4 -9
- package/dist/commands/WordBoundary.d.ts.map +1 -1
- package/dist/editor/Announcer.d.ts +1 -2
- package/dist/editor/Announcer.d.ts.map +1 -1
- package/dist/{model → editor}/BuiltinSpecs.d.ts +1 -1
- package/dist/editor/BuiltinSpecs.d.ts.map +1 -0
- package/dist/editor/ContentSerializer.d.ts +24 -0
- package/dist/editor/ContentSerializer.d.ts.map +1 -0
- package/dist/editor/EditorConfigController.d.ts +38 -0
- package/dist/editor/EditorConfigController.d.ts.map +1 -0
- package/dist/editor/EditorDOM.d.ts +3 -4
- package/dist/editor/EditorDOM.d.ts.map +1 -1
- package/dist/editor/EditorEventEmitter.d.ts +30 -0
- package/dist/editor/EditorEventEmitter.d.ts.map +1 -0
- package/dist/editor/EditorLifecycleCoordinator.d.ts +24 -0
- package/dist/editor/EditorLifecycleCoordinator.d.ts.map +1 -0
- package/dist/editor/EditorLocale.d.ts +9 -0
- package/dist/editor/EditorLocale.d.ts.map +1 -0
- package/dist/editor/EditorStyleCoordinator.d.ts +9 -0
- package/dist/editor/EditorStyleCoordinator.d.ts.map +1 -0
- package/dist/editor/EditorThemeController.d.ts.map +1 -1
- package/dist/editor/NotectlEditor.d.ts +20 -54
- package/dist/editor/NotectlEditor.d.ts.map +1 -1
- package/dist/editor/PaperLayoutController.d.ts +1 -1
- package/dist/editor/PaperLayoutController.d.ts.map +1 -1
- package/dist/editor/PluginBootstrapper.d.ts +18 -0
- package/dist/editor/PluginBootstrapper.d.ts.map +1 -0
- package/dist/editor/locales/ar.d.ts +4 -0
- package/dist/editor/locales/ar.d.ts.map +1 -0
- package/dist/editor/locales/de.d.ts +4 -0
- package/dist/editor/locales/de.d.ts.map +1 -0
- package/dist/editor/locales/es.d.ts +4 -0
- package/dist/editor/locales/es.d.ts.map +1 -0
- package/dist/editor/locales/fr.d.ts +4 -0
- package/dist/editor/locales/fr.d.ts.map +1 -0
- package/dist/editor/locales/hi.d.ts +4 -0
- package/dist/editor/locales/hi.d.ts.map +1 -0
- package/dist/editor/locales/pt.d.ts +4 -0
- package/dist/editor/locales/pt.d.ts.map +1 -0
- package/dist/editor/locales/ru.d.ts +4 -0
- package/dist/editor/locales/ru.d.ts.map +1 -0
- package/dist/editor/locales/zh.d.ts +4 -0
- package/dist/editor/locales/zh.d.ts.map +1 -0
- package/dist/editor/styles/base.d.ts +1 -1
- package/dist/editor/styles/base.d.ts.map +1 -1
- package/dist/editor/styles/code-block.d.ts +1 -1
- package/dist/editor/styles/code-block.d.ts.map +1 -1
- package/dist/editor/styles/font-select.d.ts +1 -1
- package/dist/editor/styles/font-select.d.ts.map +1 -1
- package/dist/editor/styles/font-size-select.d.ts +1 -1
- package/dist/editor/styles/font-size-select.d.ts.map +1 -1
- package/dist/editor/styles/heading-select.d.ts +1 -1
- package/dist/editor/styles/heading-select.d.ts.map +1 -1
- package/dist/editor/styles/image.d.ts +1 -1
- package/dist/editor/styles/image.d.ts.map +1 -1
- package/dist/editor/styles/list.d.ts +1 -1
- package/dist/editor/styles/list.d.ts.map +1 -1
- package/dist/editor/styles/table.d.ts +1 -1
- package/dist/editor/styles/table.d.ts.map +1 -1
- package/dist/editor/styles/toolbar.d.ts +1 -1
- package/dist/editor/styles/toolbar.d.ts.map +1 -1
- package/dist/editor/theme/ThemeEngine.d.ts.map +1 -1
- package/dist/editor/theme/ThemeTokens.d.ts +17 -1
- package/dist/editor/theme/ThemeTokens.d.ts.map +1 -1
- package/dist/fonts.mjs +1 -6
- package/dist/fonts.mjs.map +1 -1
- package/dist/full.d.ts +46 -0
- package/dist/full.d.ts.map +1 -0
- package/dist/full.mjs +2 -0
- package/dist/full.mjs.map +1 -0
- package/dist/html.d.ts +16 -0
- package/dist/html.d.ts.map +1 -0
- package/dist/html.mjs +2 -0
- package/dist/html.mjs.map +1 -0
- package/dist/i18n/Locale.d.ts +1 -0
- package/dist/i18n/Locale.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +0 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/index.d.ts +30 -94
- package/dist/index.d.ts.map +1 -1
- package/dist/input/ClipboardHandler.d.ts +22 -0
- package/dist/input/ClipboardHandler.d.ts.map +1 -1
- package/dist/input/CompositionTracker.d.ts +2 -1
- package/dist/input/CompositionTracker.d.ts.map +1 -1
- package/dist/{model → input}/HTMLParser.d.ts +3 -3
- package/dist/input/HTMLParser.d.ts.map +1 -0
- package/dist/input/InputHandler.d.ts +1 -1
- package/dist/input/InputHandler.d.ts.map +1 -1
- package/dist/input/InputManager.d.ts +37 -0
- package/dist/input/InputManager.d.ts.map +1 -0
- package/dist/input/InternalClipboard.d.ts +3 -13
- package/dist/input/InternalClipboard.d.ts.map +1 -1
- package/dist/input/KeyboardHandler.d.ts +12 -1
- package/dist/input/KeyboardHandler.d.ts.map +1 -1
- package/dist/input/PasteHandler.d.ts +28 -17
- package/dist/input/PasteHandler.d.ts.map +1 -1
- package/dist/model/AttrRegistry.d.ts +1 -1
- package/dist/model/AttrRegistry.d.ts.map +1 -1
- package/dist/model/BlockAlignment.d.ts +8 -0
- package/dist/model/BlockAlignment.d.ts.map +1 -0
- package/dist/model/BlockTypeLabels.d.ts +7 -0
- package/dist/model/BlockTypeLabels.d.ts.map +1 -0
- package/dist/model/CompositionState.d.ts +8 -0
- package/dist/model/CompositionState.d.ts.map +1 -0
- package/dist/model/Document.d.ts.map +1 -1
- package/dist/{input → model}/FileHandlerRegistry.d.ts +1 -1
- package/dist/{input → model}/FileHandlerRegistry.d.ts.map +1 -1
- package/dist/model/HTMLUtils.d.ts +8 -0
- package/dist/model/HTMLUtils.d.ts.map +1 -1
- package/dist/{input → model}/InputRule.d.ts.map +1 -1
- package/dist/{input → model}/InputRuleRegistry.d.ts.map +1 -1
- package/dist/{input → model}/Keymap.d.ts.map +1 -1
- package/dist/{input → model}/KeymapRegistry.d.ts.map +1 -1
- package/dist/model/MarkSpec.d.ts +2 -2
- package/dist/model/MarkSpec.d.ts.map +1 -1
- package/dist/model/NodeSpec.d.ts +0 -3
- package/dist/model/NodeSpec.d.ts.map +1 -1
- package/dist/model/PaperSize.d.ts.map +1 -0
- package/dist/model/PasteInterceptor.d.ts +21 -0
- package/dist/model/PasteInterceptor.d.ts.map +1 -0
- package/dist/model/RichBlockData.d.ts +24 -0
- package/dist/model/RichBlockData.d.ts.map +1 -0
- package/dist/model/SchemaRegistry.d.ts +2 -0
- package/dist/model/SchemaRegistry.d.ts.map +1 -1
- package/dist/model/WordBoundary.d.ts +12 -0
- package/dist/model/WordBoundary.d.ts.map +1 -0
- package/dist/notectl-core.mjs +1 -3888
- package/dist/notectl-core.mjs.map +1 -1
- package/dist/notectl-core.umd.js +1 -9523
- package/dist/notectl-core.umd.js.map +1 -1
- package/dist/{view → platform}/Platform.d.ts +2 -0
- package/dist/platform/Platform.d.ts.map +1 -0
- package/dist/plugins/Plugin.d.ts +8 -5
- package/dist/plugins/Plugin.d.ts.map +1 -1
- package/dist/plugins/PluginManager.d.ts +10 -3
- package/dist/plugins/PluginManager.d.ts.map +1 -1
- package/dist/plugins/alignment/AlignmentLocale.d.ts +3 -10
- package/dist/plugins/alignment/AlignmentLocale.d.ts.map +1 -1
- package/dist/plugins/alignment/AlignmentPlugin.d.ts +3 -13
- package/dist/plugins/alignment/AlignmentPlugin.d.ts.map +1 -1
- package/dist/plugins/alignment/index.d.ts +3 -1
- package/dist/plugins/alignment/index.d.ts.map +1 -1
- package/dist/plugins/alignment/locales/ar.d.ts +4 -0
- package/dist/plugins/alignment/locales/ar.d.ts.map +1 -0
- package/dist/plugins/alignment/locales/de.d.ts +4 -0
- package/dist/plugins/alignment/locales/de.d.ts.map +1 -0
- package/dist/plugins/alignment/locales/es.d.ts +4 -0
- package/dist/plugins/alignment/locales/es.d.ts.map +1 -0
- package/dist/plugins/alignment/locales/fr.d.ts +4 -0
- package/dist/plugins/alignment/locales/fr.d.ts.map +1 -0
- package/dist/plugins/alignment/locales/hi.d.ts +4 -0
- package/dist/plugins/alignment/locales/hi.d.ts.map +1 -0
- package/dist/plugins/alignment/locales/pt.d.ts +4 -0
- package/dist/plugins/alignment/locales/pt.d.ts.map +1 -0
- package/dist/plugins/alignment/locales/ru.d.ts +4 -0
- package/dist/plugins/alignment/locales/ru.d.ts.map +1 -0
- package/dist/plugins/alignment/locales/zh.d.ts +4 -0
- package/dist/plugins/alignment/locales/zh.d.ts.map +1 -0
- package/dist/plugins/alignment.mjs +1 -5
- package/dist/plugins/alignment.mjs.map +1 -1
- package/dist/plugins/blockquote/BlockquoteKeyboardHandlers.d.ts +4 -0
- package/dist/plugins/blockquote/BlockquoteKeyboardHandlers.d.ts.map +1 -0
- package/dist/plugins/blockquote/BlockquoteLocale.d.ts +1 -8
- package/dist/plugins/blockquote/BlockquoteLocale.d.ts.map +1 -1
- package/dist/plugins/blockquote/BlockquotePlugin.d.ts +1 -3
- package/dist/plugins/blockquote/BlockquotePlugin.d.ts.map +1 -1
- package/dist/plugins/blockquote/BlockquoteStyles.d.ts +3 -0
- package/dist/plugins/blockquote/BlockquoteStyles.d.ts.map +1 -0
- package/dist/plugins/blockquote/index.d.ts +2 -0
- package/dist/plugins/blockquote/index.d.ts.map +1 -1
- package/dist/plugins/blockquote/locales/ar.d.ts +4 -0
- package/dist/plugins/blockquote/locales/ar.d.ts.map +1 -0
- package/dist/plugins/blockquote/locales/de.d.ts +4 -0
- package/dist/plugins/blockquote/locales/de.d.ts.map +1 -0
- package/dist/plugins/blockquote/locales/es.d.ts +4 -0
- package/dist/plugins/blockquote/locales/es.d.ts.map +1 -0
- package/dist/plugins/blockquote/locales/fr.d.ts +4 -0
- package/dist/plugins/blockquote/locales/fr.d.ts.map +1 -0
- package/dist/plugins/blockquote/locales/hi.d.ts +4 -0
- package/dist/plugins/blockquote/locales/hi.d.ts.map +1 -0
- package/dist/plugins/blockquote/locales/pt.d.ts +4 -0
- package/dist/plugins/blockquote/locales/pt.d.ts.map +1 -0
- package/dist/plugins/blockquote/locales/ru.d.ts +4 -0
- package/dist/plugins/blockquote/locales/ru.d.ts.map +1 -0
- package/dist/plugins/blockquote/locales/zh.d.ts +4 -0
- package/dist/plugins/blockquote/locales/zh.d.ts.map +1 -0
- package/dist/plugins/blockquote.mjs +1 -4
- package/dist/plugins/blockquote.mjs.map +1 -1
- package/dist/plugins/caret-navigation/CaretNavigationLocale.d.ts +21 -0
- package/dist/plugins/caret-navigation/CaretNavigationLocale.d.ts.map +1 -0
- package/dist/plugins/caret-navigation/CaretNavigationPlugin.d.ts +2 -1
- package/dist/plugins/caret-navigation/CaretNavigationPlugin.d.ts.map +1 -1
- package/dist/plugins/caret-navigation/index.d.ts +2 -0
- package/dist/plugins/caret-navigation/index.d.ts.map +1 -1
- package/dist/plugins/caret-navigation/locales/ar.d.ts +4 -0
- package/dist/plugins/caret-navigation/locales/ar.d.ts.map +1 -0
- package/dist/plugins/caret-navigation/locales/de.d.ts +4 -0
- package/dist/plugins/caret-navigation/locales/de.d.ts.map +1 -0
- package/dist/plugins/caret-navigation/locales/es.d.ts +4 -0
- package/dist/plugins/caret-navigation/locales/es.d.ts.map +1 -0
- package/dist/plugins/caret-navigation/locales/fr.d.ts +4 -0
- package/dist/plugins/caret-navigation/locales/fr.d.ts.map +1 -0
- package/dist/plugins/caret-navigation/locales/hi.d.ts +4 -0
- package/dist/plugins/caret-navigation/locales/hi.d.ts.map +1 -0
- package/dist/plugins/caret-navigation/locales/pt.d.ts +4 -0
- package/dist/plugins/caret-navigation/locales/pt.d.ts.map +1 -0
- package/dist/plugins/caret-navigation/locales/ru.d.ts +4 -0
- package/dist/plugins/caret-navigation/locales/ru.d.ts.map +1 -0
- package/dist/plugins/caret-navigation/locales/zh.d.ts +4 -0
- package/dist/plugins/caret-navigation/locales/zh.d.ts.map +1 -0
- package/dist/plugins/caret-navigation.mjs +1 -4
- package/dist/plugins/caret-navigation.mjs.map +1 -1
- package/dist/plugins/code-block/CodeBlockKeyboardHandlers.d.ts.map +1 -1
- package/dist/plugins/code-block/CodeBlockLocale.d.ts +5 -8
- package/dist/plugins/code-block/CodeBlockLocale.d.ts.map +1 -1
- package/dist/plugins/code-block/CodeBlockNodeView.d.ts +2 -1
- package/dist/plugins/code-block/CodeBlockNodeView.d.ts.map +1 -1
- package/dist/plugins/code-block/CodeBlockPlugin.d.ts +7 -2
- package/dist/plugins/code-block/CodeBlockPlugin.d.ts.map +1 -1
- package/dist/plugins/code-block/CodeBlockService.d.ts.map +1 -1
- package/dist/plugins/code-block/CodeBlockTypes.d.ts +7 -1
- package/dist/plugins/code-block/CodeBlockTypes.d.ts.map +1 -1
- package/dist/plugins/code-block/highlighter/RegexTokenizer.d.ts +14 -0
- package/dist/plugins/code-block/highlighter/RegexTokenizer.d.ts.map +1 -0
- package/dist/plugins/code-block/highlighter/TokenizerTypes.d.ts +15 -0
- package/dist/plugins/code-block/highlighter/TokenizerTypes.d.ts.map +1 -0
- package/dist/plugins/code-block/highlighter/languages/index.d.ts +3 -0
- package/dist/plugins/code-block/highlighter/languages/index.d.ts.map +1 -0
- package/dist/plugins/code-block/highlighter/languages/json.d.ts +3 -0
- package/dist/plugins/code-block/highlighter/languages/json.d.ts.map +1 -0
- package/dist/plugins/code-block/highlighter/languages/xml.d.ts +3 -0
- package/dist/plugins/code-block/highlighter/languages/xml.d.ts.map +1 -0
- package/dist/plugins/code-block/index.d.ts +7 -1
- package/dist/plugins/code-block/index.d.ts.map +1 -1
- package/dist/plugins/code-block/locales/ar.d.ts +4 -0
- package/dist/plugins/code-block/locales/ar.d.ts.map +1 -0
- package/dist/plugins/code-block/locales/de.d.ts +4 -0
- package/dist/plugins/code-block/locales/de.d.ts.map +1 -0
- package/dist/plugins/code-block/locales/es.d.ts +4 -0
- package/dist/plugins/code-block/locales/es.d.ts.map +1 -0
- package/dist/plugins/code-block/locales/fr.d.ts +4 -0
- package/dist/plugins/code-block/locales/fr.d.ts.map +1 -0
- package/dist/plugins/code-block/locales/hi.d.ts +4 -0
- package/dist/plugins/code-block/locales/hi.d.ts.map +1 -0
- package/dist/plugins/code-block/locales/pt.d.ts +4 -0
- package/dist/plugins/code-block/locales/pt.d.ts.map +1 -0
- package/dist/plugins/code-block/locales/ru.d.ts +4 -0
- package/dist/plugins/code-block/locales/ru.d.ts.map +1 -0
- package/dist/plugins/code-block/locales/zh.d.ts +4 -0
- package/dist/plugins/code-block/locales/zh.d.ts.map +1 -0
- package/dist/plugins/code-block.mjs +1 -5
- package/dist/plugins/code-block.mjs.map +1 -1
- package/dist/plugins/font/FontLocale.d.ts +1 -8
- package/dist/plugins/font/FontLocale.d.ts.map +1 -1
- package/dist/plugins/font/FontPlugin.d.ts +1 -3
- package/dist/plugins/font/FontPlugin.d.ts.map +1 -1
- package/dist/plugins/font/index.d.ts +2 -0
- package/dist/plugins/font/index.d.ts.map +1 -1
- package/dist/plugins/font/locales/ar.d.ts +4 -0
- package/dist/plugins/font/locales/ar.d.ts.map +1 -0
- package/dist/plugins/font/locales/de.d.ts +4 -0
- package/dist/plugins/font/locales/de.d.ts.map +1 -0
- package/dist/plugins/font/locales/es.d.ts +4 -0
- package/dist/plugins/font/locales/es.d.ts.map +1 -0
- package/dist/plugins/font/locales/fr.d.ts +4 -0
- package/dist/plugins/font/locales/fr.d.ts.map +1 -0
- package/dist/plugins/font/locales/hi.d.ts +4 -0
- package/dist/plugins/font/locales/hi.d.ts.map +1 -0
- package/dist/plugins/font/locales/pt.d.ts +4 -0
- package/dist/plugins/font/locales/pt.d.ts.map +1 -0
- package/dist/plugins/font/locales/ru.d.ts +4 -0
- package/dist/plugins/font/locales/ru.d.ts.map +1 -0
- package/dist/plugins/font/locales/zh.d.ts +4 -0
- package/dist/plugins/font/locales/zh.d.ts.map +1 -0
- package/dist/plugins/font-size/FontSizeLocale.d.ts +1 -8
- package/dist/plugins/font-size/FontSizeLocale.d.ts.map +1 -1
- package/dist/plugins/font-size/FontSizePlugin.d.ts +1 -3
- package/dist/plugins/font-size/FontSizePlugin.d.ts.map +1 -1
- package/dist/plugins/font-size/FontSizePopup.d.ts +1 -1
- package/dist/plugins/font-size/FontSizePopup.d.ts.map +1 -1
- package/dist/plugins/font-size/index.d.ts +2 -0
- package/dist/plugins/font-size/index.d.ts.map +1 -1
- package/dist/plugins/font-size/locales/ar.d.ts +4 -0
- package/dist/plugins/font-size/locales/ar.d.ts.map +1 -0
- package/dist/plugins/font-size/locales/de.d.ts +4 -0
- package/dist/plugins/font-size/locales/de.d.ts.map +1 -0
- package/dist/plugins/font-size/locales/es.d.ts +4 -0
- package/dist/plugins/font-size/locales/es.d.ts.map +1 -0
- package/dist/plugins/font-size/locales/fr.d.ts +4 -0
- package/dist/plugins/font-size/locales/fr.d.ts.map +1 -0
- package/dist/plugins/font-size/locales/hi.d.ts +4 -0
- package/dist/plugins/font-size/locales/hi.d.ts.map +1 -0
- package/dist/plugins/font-size/locales/pt.d.ts +4 -0
- package/dist/plugins/font-size/locales/pt.d.ts.map +1 -0
- package/dist/plugins/font-size/locales/ru.d.ts +4 -0
- package/dist/plugins/font-size/locales/ru.d.ts.map +1 -0
- package/dist/plugins/font-size/locales/zh.d.ts +4 -0
- package/dist/plugins/font-size/locales/zh.d.ts.map +1 -0
- package/dist/plugins/font-size.mjs +1 -4
- package/dist/plugins/font-size.mjs.map +1 -1
- package/dist/plugins/font.mjs +1 -4
- package/dist/plugins/font.mjs.map +1 -1
- package/dist/plugins/gap-cursor/GapCursorLocale.d.ts +7 -0
- package/dist/plugins/gap-cursor/GapCursorLocale.d.ts.map +1 -0
- package/dist/plugins/gap-cursor/GapCursorPlugin.d.ts +7 -3
- package/dist/plugins/gap-cursor/GapCursorPlugin.d.ts.map +1 -1
- package/dist/plugins/gap-cursor/locales/ar.d.ts +4 -0
- package/dist/plugins/gap-cursor/locales/ar.d.ts.map +1 -0
- package/dist/plugins/gap-cursor/locales/de.d.ts +4 -0
- package/dist/plugins/gap-cursor/locales/de.d.ts.map +1 -0
- package/dist/plugins/gap-cursor/locales/es.d.ts +4 -0
- package/dist/plugins/gap-cursor/locales/es.d.ts.map +1 -0
- package/dist/plugins/gap-cursor/locales/fr.d.ts +4 -0
- package/dist/plugins/gap-cursor/locales/fr.d.ts.map +1 -0
- package/dist/plugins/gap-cursor/locales/hi.d.ts +4 -0
- package/dist/plugins/gap-cursor/locales/hi.d.ts.map +1 -0
- package/dist/plugins/gap-cursor/locales/pt.d.ts +4 -0
- package/dist/plugins/gap-cursor/locales/pt.d.ts.map +1 -0
- package/dist/plugins/gap-cursor/locales/ru.d.ts +4 -0
- package/dist/plugins/gap-cursor/locales/ru.d.ts.map +1 -0
- package/dist/plugins/gap-cursor/locales/zh.d.ts +4 -0
- package/dist/plugins/gap-cursor/locales/zh.d.ts.map +1 -0
- package/dist/plugins/gap-cursor.mjs +1 -64
- package/dist/plugins/gap-cursor.mjs.map +1 -1
- package/dist/plugins/hard-break.mjs +1 -4
- package/dist/plugins/hard-break.mjs.map +1 -1
- package/dist/plugins/heading/HeadingBlockTypePicker.d.ts +1 -1
- package/dist/plugins/heading/HeadingBlockTypePicker.d.ts.map +1 -1
- package/dist/plugins/heading/HeadingInputRules.d.ts.map +1 -1
- package/dist/plugins/heading/HeadingKeyboardHandlers.d.ts.map +1 -1
- package/dist/plugins/heading/HeadingLocale.d.ts +1 -8
- package/dist/plugins/heading/HeadingLocale.d.ts.map +1 -1
- package/dist/plugins/heading/HeadingPlugin.d.ts +2 -4
- package/dist/plugins/heading/HeadingPlugin.d.ts.map +1 -1
- package/dist/plugins/heading/index.d.ts +3 -0
- package/dist/plugins/heading/index.d.ts.map +1 -1
- package/dist/plugins/heading/locales/ar.d.ts +4 -0
- package/dist/plugins/heading/locales/ar.d.ts.map +1 -0
- package/dist/plugins/heading/locales/de.d.ts +4 -0
- package/dist/plugins/heading/locales/de.d.ts.map +1 -0
- package/dist/plugins/heading/locales/es.d.ts +4 -0
- package/dist/plugins/heading/locales/es.d.ts.map +1 -0
- package/dist/plugins/heading/locales/fr.d.ts +4 -0
- package/dist/plugins/heading/locales/fr.d.ts.map +1 -0
- package/dist/plugins/heading/locales/hi.d.ts +4 -0
- package/dist/plugins/heading/locales/hi.d.ts.map +1 -0
- package/dist/plugins/heading/locales/pt.d.ts +4 -0
- package/dist/plugins/heading/locales/pt.d.ts.map +1 -0
- package/dist/plugins/heading/locales/ru.d.ts +4 -0
- package/dist/plugins/heading/locales/ru.d.ts.map +1 -0
- package/dist/plugins/heading/locales/zh.d.ts +4 -0
- package/dist/plugins/heading/locales/zh.d.ts.map +1 -0
- package/dist/plugins/heading.mjs +1 -4
- package/dist/plugins/heading.mjs.map +1 -1
- package/dist/plugins/highlight/HighlightLocale.d.ts +1 -8
- package/dist/plugins/highlight/HighlightLocale.d.ts.map +1 -1
- package/dist/plugins/highlight/HighlightPlugin.d.ts +1 -3
- package/dist/plugins/highlight/HighlightPlugin.d.ts.map +1 -1
- package/dist/plugins/highlight/index.d.ts +2 -0
- package/dist/plugins/highlight/index.d.ts.map +1 -1
- package/dist/plugins/highlight/locales/ar.d.ts +4 -0
- package/dist/plugins/highlight/locales/ar.d.ts.map +1 -0
- package/dist/plugins/highlight/locales/de.d.ts +4 -0
- package/dist/plugins/highlight/locales/de.d.ts.map +1 -0
- package/dist/plugins/highlight/locales/es.d.ts +4 -0
- package/dist/plugins/highlight/locales/es.d.ts.map +1 -0
- package/dist/plugins/highlight/locales/fr.d.ts +4 -0
- package/dist/plugins/highlight/locales/fr.d.ts.map +1 -0
- package/dist/plugins/highlight/locales/hi.d.ts +4 -0
- package/dist/plugins/highlight/locales/hi.d.ts.map +1 -0
- package/dist/plugins/highlight/locales/pt.d.ts +4 -0
- package/dist/plugins/highlight/locales/pt.d.ts.map +1 -0
- package/dist/plugins/highlight/locales/ru.d.ts +4 -0
- package/dist/plugins/highlight/locales/ru.d.ts.map +1 -0
- package/dist/plugins/highlight/locales/zh.d.ts +4 -0
- package/dist/plugins/highlight/locales/zh.d.ts.map +1 -0
- package/dist/plugins/highlight.mjs +1 -4
- package/dist/plugins/highlight.mjs.map +1 -1
- package/dist/plugins/horizontal-rule/HorizontalRuleLocale.d.ts +1 -8
- package/dist/plugins/horizontal-rule/HorizontalRuleLocale.d.ts.map +1 -1
- package/dist/plugins/horizontal-rule/HorizontalRulePlugin.d.ts +1 -3
- package/dist/plugins/horizontal-rule/HorizontalRulePlugin.d.ts.map +1 -1
- package/dist/plugins/horizontal-rule/index.d.ts +2 -0
- package/dist/plugins/horizontal-rule/index.d.ts.map +1 -1
- package/dist/plugins/horizontal-rule/locales/ar.d.ts +4 -0
- package/dist/plugins/horizontal-rule/locales/ar.d.ts.map +1 -0
- package/dist/plugins/horizontal-rule/locales/de.d.ts +4 -0
- package/dist/plugins/horizontal-rule/locales/de.d.ts.map +1 -0
- package/dist/plugins/horizontal-rule/locales/es.d.ts +4 -0
- package/dist/plugins/horizontal-rule/locales/es.d.ts.map +1 -0
- package/dist/plugins/horizontal-rule/locales/fr.d.ts +4 -0
- package/dist/plugins/horizontal-rule/locales/fr.d.ts.map +1 -0
- package/dist/plugins/horizontal-rule/locales/hi.d.ts +4 -0
- package/dist/plugins/horizontal-rule/locales/hi.d.ts.map +1 -0
- package/dist/plugins/horizontal-rule/locales/pt.d.ts +4 -0
- package/dist/plugins/horizontal-rule/locales/pt.d.ts.map +1 -0
- package/dist/plugins/horizontal-rule/locales/ru.d.ts +4 -0
- package/dist/plugins/horizontal-rule/locales/ru.d.ts.map +1 -0
- package/dist/plugins/horizontal-rule/locales/zh.d.ts +4 -0
- package/dist/plugins/horizontal-rule/locales/zh.d.ts.map +1 -0
- package/dist/plugins/horizontal-rule.mjs +1 -4
- package/dist/plugins/horizontal-rule.mjs.map +1 -1
- package/dist/plugins/image/ImageLocale.d.ts +9 -8
- package/dist/plugins/image/ImageLocale.d.ts.map +1 -1
- package/dist/plugins/image/ImageNodeView.d.ts +8 -1
- package/dist/plugins/image/ImageNodeView.d.ts.map +1 -1
- package/dist/plugins/image/ImagePlugin.d.ts +2 -3
- package/dist/plugins/image/ImagePlugin.d.ts.map +1 -1
- package/dist/plugins/image/ImagePopup.d.ts +11 -0
- package/dist/plugins/image/ImagePopup.d.ts.map +1 -0
- package/dist/plugins/image/ImageUpload.d.ts +1 -2
- package/dist/plugins/image/ImageUpload.d.ts.map +1 -1
- package/dist/plugins/image/index.d.ts +2 -0
- package/dist/plugins/image/index.d.ts.map +1 -1
- package/dist/plugins/image/locales/ar.d.ts +4 -0
- package/dist/plugins/image/locales/ar.d.ts.map +1 -0
- package/dist/plugins/image/locales/de.d.ts +4 -0
- package/dist/plugins/image/locales/de.d.ts.map +1 -0
- package/dist/plugins/image/locales/es.d.ts +4 -0
- package/dist/plugins/image/locales/es.d.ts.map +1 -0
- package/dist/plugins/image/locales/fr.d.ts +4 -0
- package/dist/plugins/image/locales/fr.d.ts.map +1 -0
- package/dist/plugins/image/locales/hi.d.ts +4 -0
- package/dist/plugins/image/locales/hi.d.ts.map +1 -0
- package/dist/plugins/image/locales/pt.d.ts +4 -0
- package/dist/plugins/image/locales/pt.d.ts.map +1 -0
- package/dist/plugins/image/locales/ru.d.ts +4 -0
- package/dist/plugins/image/locales/ru.d.ts.map +1 -0
- package/dist/plugins/image/locales/zh.d.ts +4 -0
- package/dist/plugins/image/locales/zh.d.ts.map +1 -0
- package/dist/plugins/image.mjs +1 -6
- package/dist/plugins/image.mjs.map +1 -1
- package/dist/plugins/link/LinkLocale.d.ts +1 -8
- package/dist/plugins/link/LinkLocale.d.ts.map +1 -1
- package/dist/plugins/link/LinkPlugin.d.ts +1 -3
- package/dist/plugins/link/LinkPlugin.d.ts.map +1 -1
- package/dist/plugins/link/index.d.ts +2 -0
- package/dist/plugins/link/index.d.ts.map +1 -1
- package/dist/plugins/link/locales/ar.d.ts +4 -0
- package/dist/plugins/link/locales/ar.d.ts.map +1 -0
- package/dist/plugins/link/locales/de.d.ts +4 -0
- package/dist/plugins/link/locales/de.d.ts.map +1 -0
- package/dist/plugins/link/locales/es.d.ts +4 -0
- package/dist/plugins/link/locales/es.d.ts.map +1 -0
- package/dist/plugins/link/locales/fr.d.ts +4 -0
- package/dist/plugins/link/locales/fr.d.ts.map +1 -0
- package/dist/plugins/link/locales/hi.d.ts +4 -0
- package/dist/plugins/link/locales/hi.d.ts.map +1 -0
- package/dist/plugins/link/locales/pt.d.ts +4 -0
- package/dist/plugins/link/locales/pt.d.ts.map +1 -0
- package/dist/plugins/link/locales/ru.d.ts +4 -0
- package/dist/plugins/link/locales/ru.d.ts.map +1 -0
- package/dist/plugins/link/locales/zh.d.ts +4 -0
- package/dist/plugins/link/locales/zh.d.ts.map +1 -0
- package/dist/plugins/link.mjs +1 -4
- package/dist/plugins/link.mjs.map +1 -1
- package/dist/plugins/list/ListLocale.d.ts +1 -8
- package/dist/plugins/list/ListLocale.d.ts.map +1 -1
- package/dist/plugins/list/ListPlugin.d.ts +1 -3
- package/dist/plugins/list/ListPlugin.d.ts.map +1 -1
- package/dist/plugins/list/index.d.ts +2 -0
- package/dist/plugins/list/index.d.ts.map +1 -1
- package/dist/plugins/list/locales/ar.d.ts +4 -0
- package/dist/plugins/list/locales/ar.d.ts.map +1 -0
- package/dist/plugins/list/locales/de.d.ts +4 -0
- package/dist/plugins/list/locales/de.d.ts.map +1 -0
- package/dist/plugins/list/locales/es.d.ts +4 -0
- package/dist/plugins/list/locales/es.d.ts.map +1 -0
- package/dist/plugins/list/locales/fr.d.ts +4 -0
- package/dist/plugins/list/locales/fr.d.ts.map +1 -0
- package/dist/plugins/list/locales/hi.d.ts +4 -0
- package/dist/plugins/list/locales/hi.d.ts.map +1 -0
- package/dist/plugins/list/locales/pt.d.ts +4 -0
- package/dist/plugins/list/locales/pt.d.ts.map +1 -0
- package/dist/plugins/list/locales/ru.d.ts +4 -0
- package/dist/plugins/list/locales/ru.d.ts.map +1 -0
- package/dist/plugins/list/locales/zh.d.ts +4 -0
- package/dist/plugins/list/locales/zh.d.ts.map +1 -0
- package/dist/plugins/list.mjs +1 -4
- package/dist/plugins/list.mjs.map +1 -1
- package/dist/plugins/print/PrintLocale.d.ts +1 -8
- package/dist/plugins/print/PrintLocale.d.ts.map +1 -1
- package/dist/plugins/print/PrintPlugin.d.ts +1 -1
- package/dist/plugins/print/PrintPlugin.d.ts.map +1 -1
- package/dist/plugins/print/PrintServiceImpl.d.ts.map +1 -1
- package/dist/plugins/print/PrintStyleCollector.d.ts.map +1 -1
- package/dist/plugins/print/PrintTypes.d.ts +1 -1
- package/dist/plugins/print/PrintTypes.d.ts.map +1 -1
- package/dist/plugins/print/index.d.ts +5 -0
- package/dist/plugins/print/index.d.ts.map +1 -0
- package/dist/plugins/print/locales/ar.d.ts +4 -0
- package/dist/plugins/print/locales/ar.d.ts.map +1 -0
- package/dist/plugins/print/locales/de.d.ts +4 -0
- package/dist/plugins/print/locales/de.d.ts.map +1 -0
- package/dist/plugins/print/locales/es.d.ts +4 -0
- package/dist/plugins/print/locales/es.d.ts.map +1 -0
- package/dist/plugins/print/locales/fr.d.ts +4 -0
- package/dist/plugins/print/locales/fr.d.ts.map +1 -0
- package/dist/plugins/print/locales/hi.d.ts +4 -0
- package/dist/plugins/print/locales/hi.d.ts.map +1 -0
- package/dist/plugins/print/locales/pt.d.ts +4 -0
- package/dist/plugins/print/locales/pt.d.ts.map +1 -0
- package/dist/plugins/print/locales/ru.d.ts +4 -0
- package/dist/plugins/print/locales/ru.d.ts.map +1 -0
- package/dist/plugins/print/locales/zh.d.ts +4 -0
- package/dist/plugins/print/locales/zh.d.ts.map +1 -0
- package/dist/plugins/print.mjs +2 -0
- package/dist/plugins/print.mjs.map +1 -0
- package/dist/plugins/shared/ColorGrid.d.ts.map +1 -1
- package/dist/plugins/shared/ColorMarkOperations.d.ts +1 -2
- package/dist/plugins/shared/ColorMarkOperations.d.ts.map +1 -1
- package/dist/plugins/shared/ColorPickerPopup.d.ts +1 -8
- package/dist/plugins/shared/ColorPickerPopup.d.ts.map +1 -1
- package/dist/plugins/shared/KeyboardNav.d.ts +17 -0
- package/dist/plugins/shared/KeyboardNav.d.ts.map +1 -0
- package/dist/plugins/shared/PluginHelpers.d.ts +18 -0
- package/dist/plugins/shared/PluginHelpers.d.ts.map +1 -0
- package/dist/plugins/shared/PopupKeyboardPatterns.d.ts +1 -1
- package/dist/plugins/shared/PopupKeyboardPatterns.d.ts.map +1 -1
- package/dist/plugins/shared/PopupManager.d.ts +2 -0
- package/dist/plugins/shared/PopupManager.d.ts.map +1 -1
- package/dist/plugins/shared/PopupPositioning.d.ts +1 -0
- package/dist/plugins/shared/PopupPositioning.d.ts.map +1 -1
- package/dist/plugins/shared/ShortcutFormatting.d.ts +9 -0
- package/dist/plugins/shared/ShortcutFormatting.d.ts.map +1 -0
- package/dist/plugins/shared/XmlPatterns.d.ts +10 -0
- package/dist/plugins/shared/XmlPatterns.d.ts.map +1 -0
- package/dist/plugins/shared/index.d.ts +13 -0
- package/dist/plugins/shared/index.d.ts.map +1 -0
- package/dist/plugins/shared.mjs +2 -0
- package/dist/plugins/shared.mjs.map +1 -0
- package/dist/plugins/smart-paste/SmartPasteLocale.d.ts +7 -0
- package/dist/plugins/smart-paste/SmartPasteLocale.d.ts.map +1 -0
- package/dist/plugins/smart-paste/SmartPastePlugin.d.ts +19 -0
- package/dist/plugins/smart-paste/SmartPastePlugin.d.ts.map +1 -0
- package/dist/plugins/smart-paste/SmartPasteTypes.d.ts +24 -0
- package/dist/plugins/smart-paste/SmartPasteTypes.d.ts.map +1 -0
- package/dist/plugins/smart-paste/detectors/JsonDetector.d.ts +6 -0
- package/dist/plugins/smart-paste/detectors/JsonDetector.d.ts.map +1 -0
- package/dist/plugins/smart-paste/detectors/XmlDetector.d.ts +26 -0
- package/dist/plugins/smart-paste/detectors/XmlDetector.d.ts.map +1 -0
- package/dist/plugins/smart-paste/index.d.ts +7 -0
- package/dist/plugins/smart-paste/index.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/ar.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/ar.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/de.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/de.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/es.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/es.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/fr.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/fr.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/hi.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/hi.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/pt.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/pt.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/ru.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/ru.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/zh.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/zh.d.ts.map +1 -0
- package/dist/plugins/smart-paste.mjs +2 -0
- package/dist/plugins/smart-paste.mjs.map +1 -0
- package/dist/plugins/strikethrough/StrikethroughLocale.d.ts +1 -8
- package/dist/plugins/strikethrough/StrikethroughLocale.d.ts.map +1 -1
- package/dist/plugins/strikethrough/StrikethroughPlugin.d.ts +1 -3
- package/dist/plugins/strikethrough/StrikethroughPlugin.d.ts.map +1 -1
- package/dist/plugins/strikethrough/index.d.ts +2 -0
- package/dist/plugins/strikethrough/index.d.ts.map +1 -1
- package/dist/plugins/strikethrough/locales/ar.d.ts +4 -0
- package/dist/plugins/strikethrough/locales/ar.d.ts.map +1 -0
- package/dist/plugins/strikethrough/locales/de.d.ts +4 -0
- package/dist/plugins/strikethrough/locales/de.d.ts.map +1 -0
- package/dist/plugins/strikethrough/locales/es.d.ts +4 -0
- package/dist/plugins/strikethrough/locales/es.d.ts.map +1 -0
- package/dist/plugins/strikethrough/locales/fr.d.ts +4 -0
- package/dist/plugins/strikethrough/locales/fr.d.ts.map +1 -0
- package/dist/plugins/strikethrough/locales/hi.d.ts +4 -0
- package/dist/plugins/strikethrough/locales/hi.d.ts.map +1 -0
- package/dist/plugins/strikethrough/locales/pt.d.ts +4 -0
- package/dist/plugins/strikethrough/locales/pt.d.ts.map +1 -0
- package/dist/plugins/strikethrough/locales/ru.d.ts +4 -0
- package/dist/plugins/strikethrough/locales/ru.d.ts.map +1 -0
- package/dist/plugins/strikethrough/locales/zh.d.ts +4 -0
- package/dist/plugins/strikethrough/locales/zh.d.ts.map +1 -0
- package/dist/plugins/strikethrough.mjs +1 -4
- package/dist/plugins/strikethrough.mjs.map +1 -1
- package/dist/plugins/super-sub/SuperSubLocale.d.ts +1 -8
- package/dist/plugins/super-sub/SuperSubLocale.d.ts.map +1 -1
- package/dist/plugins/super-sub/SuperSubPlugin.d.ts +1 -3
- package/dist/plugins/super-sub/SuperSubPlugin.d.ts.map +1 -1
- package/dist/plugins/super-sub/index.d.ts +2 -0
- package/dist/plugins/super-sub/index.d.ts.map +1 -1
- package/dist/plugins/super-sub/locales/ar.d.ts +4 -0
- package/dist/plugins/super-sub/locales/ar.d.ts.map +1 -0
- package/dist/plugins/super-sub/locales/de.d.ts +4 -0
- package/dist/plugins/super-sub/locales/de.d.ts.map +1 -0
- package/dist/plugins/super-sub/locales/es.d.ts +4 -0
- package/dist/plugins/super-sub/locales/es.d.ts.map +1 -0
- package/dist/plugins/super-sub/locales/fr.d.ts +4 -0
- package/dist/plugins/super-sub/locales/fr.d.ts.map +1 -0
- package/dist/plugins/super-sub/locales/hi.d.ts +4 -0
- package/dist/plugins/super-sub/locales/hi.d.ts.map +1 -0
- package/dist/plugins/super-sub/locales/pt.d.ts +4 -0
- package/dist/plugins/super-sub/locales/pt.d.ts.map +1 -0
- package/dist/plugins/super-sub/locales/ru.d.ts +4 -0
- package/dist/plugins/super-sub/locales/ru.d.ts.map +1 -0
- package/dist/plugins/super-sub/locales/zh.d.ts +4 -0
- package/dist/plugins/super-sub/locales/zh.d.ts.map +1 -0
- package/dist/plugins/super-sub.mjs +1 -4
- package/dist/plugins/super-sub.mjs.map +1 -1
- package/dist/plugins/table/TableCommands.d.ts +8 -8
- package/dist/plugins/table/TableCommands.d.ts.map +1 -1
- package/dist/plugins/table/TableContextMenu.d.ts.map +1 -1
- package/dist/plugins/table/TableControlsDOM.d.ts +4 -4
- package/dist/plugins/table/TableControlsDOM.d.ts.map +1 -1
- package/dist/plugins/table/TableLocale.d.ts +1 -8
- package/dist/plugins/table/TableLocale.d.ts.map +1 -1
- package/dist/plugins/table/TableNavigation.d.ts +1 -1
- package/dist/plugins/table/TableNavigation.d.ts.map +1 -1
- package/dist/plugins/table/TablePlugin.d.ts +3 -5
- package/dist/plugins/table/TablePlugin.d.ts.map +1 -1
- package/dist/plugins/table/TableSelection.d.ts +2 -0
- package/dist/plugins/table/TableSelection.d.ts.map +1 -1
- package/dist/plugins/table/index.d.ts +1 -5
- package/dist/plugins/table/index.d.ts.map +1 -1
- package/dist/plugins/table/locales/ar.d.ts +4 -0
- package/dist/plugins/table/locales/ar.d.ts.map +1 -0
- package/dist/plugins/table/locales/de.d.ts +4 -0
- package/dist/plugins/table/locales/de.d.ts.map +1 -0
- package/dist/plugins/table/locales/es.d.ts +4 -0
- package/dist/plugins/table/locales/es.d.ts.map +1 -0
- package/dist/plugins/table/locales/fr.d.ts +4 -0
- package/dist/plugins/table/locales/fr.d.ts.map +1 -0
- package/dist/plugins/table/locales/hi.d.ts +4 -0
- package/dist/plugins/table/locales/hi.d.ts.map +1 -0
- package/dist/plugins/table/locales/pt.d.ts +4 -0
- package/dist/plugins/table/locales/pt.d.ts.map +1 -0
- package/dist/plugins/table/locales/ru.d.ts +4 -0
- package/dist/plugins/table/locales/ru.d.ts.map +1 -0
- package/dist/plugins/table/locales/zh.d.ts +4 -0
- package/dist/plugins/table/locales/zh.d.ts.map +1 -0
- package/dist/plugins/table.mjs +1 -20
- package/dist/plugins/table.mjs.map +1 -1
- package/dist/plugins/text-color/TextColorLocale.d.ts +1 -8
- package/dist/plugins/text-color/TextColorLocale.d.ts.map +1 -1
- package/dist/plugins/text-color/TextColorPlugin.d.ts +1 -3
- package/dist/plugins/text-color/TextColorPlugin.d.ts.map +1 -1
- package/dist/plugins/text-color/index.d.ts +2 -0
- package/dist/plugins/text-color/index.d.ts.map +1 -1
- package/dist/plugins/text-color/locales/ar.d.ts +4 -0
- package/dist/plugins/text-color/locales/ar.d.ts.map +1 -0
- package/dist/plugins/text-color/locales/de.d.ts +4 -0
- package/dist/plugins/text-color/locales/de.d.ts.map +1 -0
- package/dist/plugins/text-color/locales/es.d.ts +4 -0
- package/dist/plugins/text-color/locales/es.d.ts.map +1 -0
- package/dist/plugins/text-color/locales/fr.d.ts +4 -0
- package/dist/plugins/text-color/locales/fr.d.ts.map +1 -0
- package/dist/plugins/text-color/locales/hi.d.ts +4 -0
- package/dist/plugins/text-color/locales/hi.d.ts.map +1 -0
- package/dist/plugins/text-color/locales/pt.d.ts +4 -0
- package/dist/plugins/text-color/locales/pt.d.ts.map +1 -0
- package/dist/plugins/text-color/locales/ru.d.ts +4 -0
- package/dist/plugins/text-color/locales/ru.d.ts.map +1 -0
- package/dist/plugins/text-color/locales/zh.d.ts +4 -0
- package/dist/plugins/text-color/locales/zh.d.ts.map +1 -0
- package/dist/plugins/text-color.mjs +1 -4
- package/dist/plugins/text-color.mjs.map +1 -1
- package/dist/plugins/text-direction/DirectionDetection.d.ts +17 -0
- package/dist/plugins/text-direction/DirectionDetection.d.ts.map +1 -0
- package/dist/plugins/text-direction/ShiftDirectionHandler.d.ts +12 -0
- package/dist/plugins/text-direction/ShiftDirectionHandler.d.ts.map +1 -0
- package/dist/plugins/text-direction/TextDirectionCorePlugin.d.ts +35 -0
- package/dist/plugins/text-direction/TextDirectionCorePlugin.d.ts.map +1 -0
- package/dist/plugins/text-direction/TextDirectionLocale.d.ts +20 -0
- package/dist/plugins/text-direction/TextDirectionLocale.d.ts.map +1 -0
- package/dist/plugins/text-direction/TextDirectionMiddleware.d.ts +18 -0
- package/dist/plugins/text-direction/TextDirectionMiddleware.d.ts.map +1 -0
- package/dist/plugins/text-direction/TextDirectionPlugin.d.ts +59 -0
- package/dist/plugins/text-direction/TextDirectionPlugin.d.ts.map +1 -0
- package/dist/plugins/text-direction/index.d.ts +5 -0
- package/dist/plugins/text-direction/index.d.ts.map +1 -0
- package/dist/plugins/text-direction/locales/ar.d.ts +4 -0
- package/dist/plugins/text-direction/locales/ar.d.ts.map +1 -0
- package/dist/plugins/text-direction/locales/de.d.ts +4 -0
- package/dist/plugins/text-direction/locales/de.d.ts.map +1 -0
- package/dist/plugins/text-direction/locales/es.d.ts +4 -0
- package/dist/plugins/text-direction/locales/es.d.ts.map +1 -0
- package/dist/plugins/text-direction/locales/fr.d.ts +4 -0
- package/dist/plugins/text-direction/locales/fr.d.ts.map +1 -0
- package/dist/plugins/text-direction/locales/hi.d.ts +4 -0
- package/dist/plugins/text-direction/locales/hi.d.ts.map +1 -0
- package/dist/plugins/text-direction/locales/pt.d.ts +4 -0
- package/dist/plugins/text-direction/locales/pt.d.ts.map +1 -0
- package/dist/plugins/text-direction/locales/ru.d.ts +4 -0
- package/dist/plugins/text-direction/locales/ru.d.ts.map +1 -0
- package/dist/plugins/text-direction/locales/zh.d.ts +4 -0
- package/dist/plugins/text-direction/locales/zh.d.ts.map +1 -0
- package/dist/plugins/text-direction-advanced/index.d.ts +5 -0
- package/dist/plugins/text-direction-advanced/index.d.ts.map +1 -0
- package/dist/plugins/text-direction-advanced.mjs +2 -0
- package/dist/plugins/text-direction-advanced.mjs.map +1 -0
- package/dist/plugins/text-direction.mjs +2 -0
- package/dist/plugins/text-direction.mjs.map +1 -0
- package/dist/plugins/text-formatting/TextFormattingLocale.d.ts +1 -8
- package/dist/plugins/text-formatting/TextFormattingLocale.d.ts.map +1 -1
- package/dist/plugins/text-formatting/TextFormattingPlugin.d.ts +1 -3
- package/dist/plugins/text-formatting/TextFormattingPlugin.d.ts.map +1 -1
- package/dist/plugins/text-formatting/index.d.ts +2 -0
- package/dist/plugins/text-formatting/index.d.ts.map +1 -1
- package/dist/plugins/text-formatting/locales/ar.d.ts +4 -0
- package/dist/plugins/text-formatting/locales/ar.d.ts.map +1 -0
- package/dist/plugins/text-formatting/locales/de.d.ts +4 -0
- package/dist/plugins/text-formatting/locales/de.d.ts.map +1 -0
- package/dist/plugins/text-formatting/locales/es.d.ts +4 -0
- package/dist/plugins/text-formatting/locales/es.d.ts.map +1 -0
- package/dist/plugins/text-formatting/locales/fr.d.ts +4 -0
- package/dist/plugins/text-formatting/locales/fr.d.ts.map +1 -0
- package/dist/plugins/text-formatting/locales/hi.d.ts +4 -0
- package/dist/plugins/text-formatting/locales/hi.d.ts.map +1 -0
- package/dist/plugins/text-formatting/locales/pt.d.ts +4 -0
- package/dist/plugins/text-formatting/locales/pt.d.ts.map +1 -0
- package/dist/plugins/text-formatting/locales/ru.d.ts +4 -0
- package/dist/plugins/text-formatting/locales/ru.d.ts.map +1 -0
- package/dist/plugins/text-formatting/locales/zh.d.ts +4 -0
- package/dist/plugins/text-formatting/locales/zh.d.ts.map +1 -0
- package/dist/plugins/text-formatting.mjs +1 -4
- package/dist/plugins/text-formatting.mjs.map +1 -1
- package/dist/plugins/toolbar/ToolbarItem.d.ts +2 -18
- package/dist/plugins/toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/plugins/toolbar/ToolbarKeyboardNav.d.ts +5 -11
- package/dist/plugins/toolbar/ToolbarKeyboardNav.d.ts.map +1 -1
- package/dist/plugins/toolbar/ToolbarLocale.d.ts +2 -8
- package/dist/plugins/toolbar/ToolbarLocale.d.ts.map +1 -1
- package/dist/plugins/toolbar/ToolbarOverflowController.d.ts.map +1 -1
- package/dist/plugins/toolbar/ToolbarPlugin.d.ts +2 -2
- package/dist/plugins/toolbar/ToolbarPlugin.d.ts.map +1 -1
- package/dist/plugins/toolbar/ToolbarPopupController.d.ts +3 -1
- package/dist/plugins/toolbar/ToolbarPopupController.d.ts.map +1 -1
- package/dist/plugins/toolbar/ToolbarRenderers.d.ts +2 -1
- package/dist/plugins/toolbar/ToolbarRenderers.d.ts.map +1 -1
- package/dist/plugins/toolbar/index.d.ts +4 -1
- package/dist/plugins/toolbar/index.d.ts.map +1 -1
- package/dist/plugins/toolbar/locales/ar.d.ts +4 -0
- package/dist/plugins/toolbar/locales/ar.d.ts.map +1 -0
- package/dist/plugins/toolbar/locales/de.d.ts +4 -0
- package/dist/plugins/toolbar/locales/de.d.ts.map +1 -0
- package/dist/plugins/toolbar/locales/es.d.ts +4 -0
- package/dist/plugins/toolbar/locales/es.d.ts.map +1 -0
- package/dist/plugins/toolbar/locales/fr.d.ts +4 -0
- package/dist/plugins/toolbar/locales/fr.d.ts.map +1 -0
- package/dist/plugins/toolbar/locales/hi.d.ts +4 -0
- package/dist/plugins/toolbar/locales/hi.d.ts.map +1 -0
- package/dist/plugins/toolbar/locales/pt.d.ts +4 -0
- package/dist/plugins/toolbar/locales/pt.d.ts.map +1 -0
- package/dist/plugins/toolbar/locales/ru.d.ts +4 -0
- package/dist/plugins/toolbar/locales/ru.d.ts.map +1 -0
- package/dist/plugins/toolbar/locales/zh.d.ts +4 -0
- package/dist/plugins/toolbar/locales/zh.d.ts.map +1 -0
- package/dist/plugins/toolbar.mjs +1 -7
- package/dist/plugins/toolbar.mjs.map +1 -1
- package/dist/presets/FullPreset.d.ts +4 -1
- package/dist/presets/FullPreset.d.ts.map +1 -1
- package/dist/presets/MinimalPreset.d.ts +3 -0
- package/dist/presets/MinimalPreset.d.ts.map +1 -1
- package/dist/presets/PresetTypes.d.ts +4 -0
- package/dist/presets/PresetTypes.d.ts.map +1 -1
- package/dist/presets/full.d.ts +17 -0
- package/dist/presets/full.d.ts.map +1 -0
- package/dist/presets/full.mjs +2 -0
- package/dist/presets/full.mjs.map +1 -0
- package/dist/presets/minimal.d.ts +17 -0
- package/dist/presets/minimal.d.ts.map +1 -0
- package/dist/presets/minimal.mjs +2 -0
- package/dist/presets/minimal.mjs.map +1 -0
- package/dist/presets.d.ts +20 -0
- package/dist/presets.d.ts.map +1 -0
- package/dist/presets.mjs +2 -0
- package/dist/presets.mjs.map +1 -0
- package/dist/serialization/CSSClassCollector.d.ts.map +1 -0
- package/dist/serialization/ContentHTMLTypes.d.ts.map +1 -0
- package/dist/serialization/DocumentParser.d.ts.map +1 -0
- package/dist/{editor → serialization}/DocumentSerializer.d.ts +2 -0
- package/dist/serialization/DocumentSerializer.d.ts.map +1 -0
- package/dist/{editor → serialization}/MarkSerializer.d.ts +3 -2
- package/dist/serialization/MarkSerializer.d.ts.map +1 -0
- package/dist/serialization/index.d.ts +12 -0
- package/dist/serialization/index.d.ts.map +1 -0
- package/dist/state/BlockBoundaryMovement.d.ts +7 -0
- package/dist/state/BlockBoundaryMovement.d.ts.map +1 -0
- package/dist/state/InlineContentOps.d.ts.map +1 -1
- package/dist/{model/NavigationUtils.d.ts → state/NavigationQueries.d.ts} +3 -3
- package/dist/state/NavigationQueries.d.ts.map +1 -0
- package/dist/state/StepInversion.d.ts +7 -0
- package/dist/state/StepInversion.d.ts.map +1 -0
- package/dist/state/Steps.d.ts +108 -0
- package/dist/state/Steps.d.ts.map +1 -0
- package/dist/state/Transaction.d.ts +5 -174
- package/dist/state/Transaction.d.ts.map +1 -1
- package/dist/state/TransactionBuilder.d.ts +69 -0
- package/dist/state/TransactionBuilder.d.ts.map +1 -0
- package/dist/test/PluginTestUtils.d.ts +0 -2
- package/dist/test/PluginTestUtils.d.ts.map +1 -1
- package/dist/test/TestUtils.d.ts +2 -2
- package/dist/test/TestUtils.d.ts.map +1 -1
- package/dist/view/BlockRendering.d.ts +10 -0
- package/dist/view/BlockRendering.d.ts.map +1 -0
- package/dist/view/BlockWrapperManagement.d.ts +27 -0
- package/dist/view/BlockWrapperManagement.d.ts.map +1 -0
- package/dist/view/CaretNavigation.d.ts +1 -8
- package/dist/view/CaretNavigation.d.ts.map +1 -1
- package/dist/view/CursorWrapper.d.ts.map +1 -1
- package/dist/view/DecorationRendering.d.ts +17 -0
- package/dist/view/DecorationRendering.d.ts.map +1 -0
- package/dist/view/DomUtils.d.ts +13 -0
- package/dist/view/DomUtils.d.ts.map +1 -0
- package/dist/view/EditorView.d.ts +9 -12
- package/dist/view/EditorView.d.ts.map +1 -1
- package/dist/view/GapCursorNavigation.d.ts +12 -0
- package/dist/view/GapCursorNavigation.d.ts.map +1 -0
- package/dist/view/InlineRendering.d.ts +11 -0
- package/dist/view/InlineRendering.d.ts.map +1 -0
- package/dist/view/MarkRendering.d.ts +5 -0
- package/dist/view/MarkRendering.d.ts.map +1 -1
- package/dist/view/Reconciler.d.ts +2 -6
- package/dist/view/Reconciler.d.ts.map +1 -1
- package/dist/view/SelectionSync.d.ts +41 -2
- package/dist/view/SelectionSync.d.ts.map +1 -1
- package/dist/view/ViewMovementCommands.d.ts.map +1 -1
- package/package.json +218 -8
- package/dist/chunks/AttrRegistry-D9Jx_RVb.mjs +0 -16
- package/dist/chunks/AttrRegistry-D9Jx_RVb.mjs.map +0 -1
- package/dist/chunks/AttributedMarkCommands-BtLea72z.mjs +0 -80
- package/dist/chunks/AttributedMarkCommands-BtLea72z.mjs.map +0 -1
- package/dist/chunks/CaretNavigation-7JYpIKbs.mjs +0 -311
- package/dist/chunks/CaretNavigation-7JYpIKbs.mjs.map +0 -1
- package/dist/chunks/ColorGrid--lBQ7jCK.mjs +0 -81
- package/dist/chunks/ColorGrid--lBQ7jCK.mjs.map +0 -1
- package/dist/chunks/ColorPickerPopup-TpIRlXc8.mjs +0 -37
- package/dist/chunks/ColorPickerPopup-TpIRlXc8.mjs.map +0 -1
- package/dist/chunks/ColorValidation-CV4f1wu6.mjs +0 -39
- package/dist/chunks/Document-Brtw2jL1.mjs +0 -190
- package/dist/chunks/Document-Brtw2jL1.mjs.map +0 -1
- package/dist/chunks/HTMLUtils-DTqQzcKR.mjs +0 -35
- package/dist/chunks/HTMLUtils-DTqQzcKR.mjs.map +0 -1
- package/dist/chunks/MarkCommands-6RUJ4L3r.mjs +0 -94
- package/dist/chunks/MarkCommands-6RUJ4L3r.mjs.map +0 -1
- package/dist/chunks/NavigationUtils-Cspt2ZrK.mjs +0 -47
- package/dist/chunks/NavigationUtils-Cspt2ZrK.mjs.map +0 -1
- package/dist/chunks/NodeResolver-C2XYkeOi.mjs +0 -81
- package/dist/chunks/NodeResolver-C2XYkeOi.mjs.map +0 -1
- package/dist/chunks/NodeSpec-NZVvcCuH.mjs +0 -8
- package/dist/chunks/NodeSpec-NZVvcCuH.mjs.map +0 -1
- package/dist/chunks/Platform-S_xqIqcM.mjs +0 -26
- package/dist/chunks/Platform-S_xqIqcM.mjs.map +0 -1
- package/dist/chunks/PopupPositioning-CgjgAKjp.mjs +0 -34
- package/dist/chunks/PopupPositioning-CgjgAKjp.mjs.map +0 -1
- package/dist/chunks/RangeIterator-Bh4Vl_6D.mjs +0 -16
- package/dist/chunks/Selection-BRTab5hO.mjs +0 -52
- package/dist/chunks/StyleRuntime-CP4NCwKT.mjs +0 -235
- package/dist/chunks/ToolbarItem-BpZggUGo.mjs +0 -8
- package/dist/chunks/ToolbarItem-BpZggUGo.mjs.map +0 -1
- package/dist/chunks/ToolbarKeyboardNav-DhpL8zNV.mjs +0 -46
- package/dist/chunks/ToolbarKeyboardNav-DhpL8zNV.mjs.map +0 -1
- package/dist/chunks/TypeBrands-C09nE2qO.mjs +0 -27
- package/dist/chunks/index--7pBhSF4.mjs +0 -542
- package/dist/chunks/index--7pBhSF4.mjs.map +0 -1
- package/dist/chunks/index-BXCkjDax.mjs +0 -161
- package/dist/chunks/index-BXCkjDax.mjs.map +0 -1
- package/dist/chunks/index-BXtw5PNN.mjs +0 -39
- package/dist/chunks/index-BXtw5PNN.mjs.map +0 -1
- package/dist/chunks/index-BcDRT4K2.mjs +0 -1019
- package/dist/chunks/index-BcDRT4K2.mjs.map +0 -1
- package/dist/chunks/index-BjFBWBOC.mjs +0 -168
- package/dist/chunks/index-BjFBWBOC.mjs.map +0 -1
- package/dist/chunks/index-C1opJocO.mjs +0 -92
- package/dist/chunks/index-C1opJocO.mjs.map +0 -1
- package/dist/chunks/index-CCyqQ0Dz.mjs +0 -228
- package/dist/chunks/index-CCyqQ0Dz.mjs.map +0 -1
- package/dist/chunks/index-Cd3uJLP3.mjs +0 -73
- package/dist/chunks/index-Cd3uJLP3.mjs.map +0 -1
- package/dist/chunks/index-DSAuGP4n.mjs +0 -410
- package/dist/chunks/index-DSAuGP4n.mjs.map +0 -1
- package/dist/chunks/index-DtRfqsq5.mjs +0 -924
- package/dist/chunks/index-DtRfqsq5.mjs.map +0 -1
- package/dist/chunks/index-Dum8yE_t.mjs +0 -62
- package/dist/chunks/index-Dum8yE_t.mjs.map +0 -1
- package/dist/chunks/index-DxbQirny.mjs +0 -63
- package/dist/chunks/index-DxbQirny.mjs.map +0 -1
- package/dist/chunks/index-ErZ5_a1o.mjs +0 -296
- package/dist/chunks/index-ErZ5_a1o.mjs.map +0 -1
- package/dist/chunks/index-WpbK_s_H.mjs +0 -119
- package/dist/chunks/index-WpbK_s_H.mjs.map +0 -1
- package/dist/chunks/index-WrqH1wG8.mjs +0 -50
- package/dist/chunks/index-WrqH1wG8.mjs.map +0 -1
- package/dist/chunks/index-fsVJLutn.mjs +0 -118
- package/dist/chunks/index-fsVJLutn.mjs.map +0 -1
- package/dist/chunks/index-fx3KIap3.mjs +0 -50
- package/dist/chunks/index-fx3KIap3.mjs.map +0 -1
- package/dist/chunks/index-oOJo-ywB.mjs +0 -467
- package/dist/chunks/index-oOJo-ywB.mjs.map +0 -1
- package/dist/chunks/index-toj88jtL.mjs +0 -101
- package/dist/chunks/index-toj88jtL.mjs.map +0 -1
- package/dist/chunks/resolvePluginLocale-B4w1OkPy.mjs +0 -34
- package/dist/chunks/resolvePluginLocale-B4w1OkPy.mjs.map +0 -1
- package/dist/editor/CSSClassCollector.d.ts.map +0 -1
- package/dist/editor/ContentHTMLTypes.d.ts.map +0 -1
- package/dist/editor/DocumentParser.d.ts.map +0 -1
- package/dist/editor/DocumentSerializer.d.ts.map +0 -1
- package/dist/editor/MarkSerializer.d.ts.map +0 -1
- package/dist/editor/PaperSize.d.ts.map +0 -1
- package/dist/i18n/resolvePluginLocale.d.ts +0 -3
- package/dist/i18n/resolvePluginLocale.d.ts.map +0 -1
- package/dist/model/BuiltinSpecs.d.ts.map +0 -1
- package/dist/model/HTMLParser.d.ts.map +0 -1
- package/dist/model/NavigationUtils.d.ts.map +0 -1
- package/dist/view/Platform.d.ts.map +0 -1
- /package/dist/{input → model}/InputRule.d.ts +0 -0
- /package/dist/{input → model}/InputRuleRegistry.d.ts +0 -0
- /package/dist/{input → model}/Keymap.d.ts +0 -0
- /package/dist/{input → model}/KeymapRegistry.d.ts +0 -0
- /package/dist/{editor → model}/PaperSize.d.ts +0 -0
- /package/dist/{editor → serialization}/CSSClassCollector.d.ts +0 -0
- /package/dist/{editor → serialization}/ContentHTMLTypes.d.ts +0 -0
- /package/dist/{editor → serialization}/DocumentParser.d.ts +0 -0
|
@@ -1,924 +0,0 @@
|
|
|
1
|
-
import { S as t, r as e } from "./resolvePluginLocale-B4w1OkPy.mjs";
|
|
2
|
-
import { e as n } from "./HTMLUtils-DTqQzcKR.mjs";
|
|
3
|
-
import { i as o, a as r, d as l, e as i, b as a } from "./Selection-BRTab5hO.mjs";
|
|
4
|
-
import { a as s } from "./ColorValidation-CV4f1wu6.mjs";
|
|
5
|
-
import { g as c, r as d } from "./ColorGrid--lBQ7jCK.mjs";
|
|
6
|
-
import { q as u, u as b, k as h, f as p, c as f } from "./Document-Brtw2jL1.mjs";
|
|
7
|
-
import { n as m } from "./TypeBrands-C09nE2qO.mjs";
|
|
8
|
-
import { a as g, s as w, e as v } from "./StyleRuntime-CP4NCwKT.mjs";
|
|
9
|
-
import { p as x } from "./PopupPositioning-CgjgAKjp.mjs";
|
|
10
|
-
import { a as C } from "./ToolbarKeyboardNav-DhpL8zNV.mjs";
|
|
11
|
-
function I() {
|
|
12
|
-
const t2 = h(m("paragraph"), [p("")], b());
|
|
13
|
-
return h(m("table_cell"), [t2], b());
|
|
14
|
-
}
|
|
15
|
-
function R(t2, e2) {
|
|
16
|
-
const n2 = t2.getNodePath(e2);
|
|
17
|
-
if (!n2) return null;
|
|
18
|
-
let o2 = null, r2 = null, l2 = null, i2 = null;
|
|
19
|
-
for (const e3 of n2) {
|
|
20
|
-
const n3 = t2.getBlock(e3);
|
|
21
|
-
n3 && ("table" === n3.type ? (o2 = e3, r2 = n3) : "table_row" === n3.type ? l2 = e3 : "table_cell" === n3.type && (i2 = e3));
|
|
22
|
-
}
|
|
23
|
-
const a2 = t2.getBlock(e2);
|
|
24
|
-
if ("table_cell" === a2?.type && (i2 = e2), !(o2 && r2 && i2 && l2)) return null;
|
|
25
|
-
const s2 = t2.doc.children.findIndex((t3) => t3.id === o2), c2 = u(r2), d2 = c2.findIndex((t3) => t3.id === l2);
|
|
26
|
-
if (-1 === d2) return null;
|
|
27
|
-
const b2 = c2[d2];
|
|
28
|
-
if (!b2) return null;
|
|
29
|
-
const h2 = u(b2), p2 = h2.findIndex((t3) => t3.id === i2);
|
|
30
|
-
if (-1 === p2) return null;
|
|
31
|
-
const f2 = h2.length, m2 = c2.length;
|
|
32
|
-
return { tableId: o2, tableIndex: s2, rowId: l2, rowIndex: d2, cellId: i2, colIndex: p2, totalRows: m2, totalCols: f2 };
|
|
33
|
-
}
|
|
34
|
-
function y(t2, e2, n2, o2) {
|
|
35
|
-
const r2 = t2.getBlock(e2);
|
|
36
|
-
if (!r2) return null;
|
|
37
|
-
const l2 = u(r2)[n2];
|
|
38
|
-
if (!l2) return null;
|
|
39
|
-
const i2 = u(l2)[o2];
|
|
40
|
-
return i2?.id ?? null;
|
|
41
|
-
}
|
|
42
|
-
function k(t2, e2) {
|
|
43
|
-
const n2 = t2.getBlock(e2);
|
|
44
|
-
if (!n2) return e2;
|
|
45
|
-
const o2 = u(n2)[0];
|
|
46
|
-
if (!o2) return e2;
|
|
47
|
-
let r2 = o2;
|
|
48
|
-
for (; ; ) {
|
|
49
|
-
const t3 = u(r2)[0];
|
|
50
|
-
if (!t3) return r2.id;
|
|
51
|
-
r2 = t3;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function S(t2, e2) {
|
|
55
|
-
const n2 = t2.getBlock(e2);
|
|
56
|
-
if (!n2) return e2;
|
|
57
|
-
const o2 = u(n2), r2 = o2[o2.length - 1];
|
|
58
|
-
if (!r2) return e2;
|
|
59
|
-
let l2 = r2;
|
|
60
|
-
for (; ; ) {
|
|
61
|
-
const t3 = u(l2), e3 = t3[t3.length - 1];
|
|
62
|
-
if (!e3) return l2.id;
|
|
63
|
-
l2 = e3;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
function A(t2, e2) {
|
|
67
|
-
const n2 = t2.getNodePath(e2);
|
|
68
|
-
if (!n2) return false;
|
|
69
|
-
for (const e3 of n2) {
|
|
70
|
-
const n3 = t2.getBlock(e3);
|
|
71
|
-
if ("table" === n3?.type) return true;
|
|
72
|
-
}
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
const B = { insertRowAbove: "Insert Row Above", insertRowBelow: "Insert Row Below", insertColumnLeft: "Insert Column Left", insertColumnRight: "Insert Column Right", deleteRow: "Delete Row", deleteColumn: "Delete Column", borderColorLabel: "Border Color...", deleteTable: "Delete Table", tableActions: "Table actions", menuKeyboardHint: "↑↓ Navigate · Enter Select · Esc Close", insertRow: "Insert row", insertColumn: "Insert column", addRow: "Add row", addColumn: "Add column", tableActionsHint: "Table actions (Right-click or Shift+F10)", contextMenuHint: "Right-click or Shift+F10 for table actions", borderColor: "Border color", defaultColor: "Default", noBorders: "No borders", borderColorPicker: "Border color picker", announceBorderColorSet: (t2) => `Table border color set to ${t2}`, announceBorderReset: "Table borders reset to default", borderSwatchLabel: (t2) => `Border ${t2}`, announceRowInsertedAbove: "Row inserted above", announceRowInsertedBelow: "Row inserted below", announceColumnInserted: (t2) => `Column inserted ${t2}`, announceRowDeleted: "Row deleted", announceColumnDeleted: "Column deleted", announceTableDeleted: "Table deleted", insertTable: "Insert Table", tableAriaLabel: (t2, e2) => `Table with ${t2} rows and ${e2} columns`, tableAriaDescription: "Right-click or press Shift+F10 for table actions" }, L = { insertRowAbove: "Zeile oberhalb einfügen", insertRowBelow: "Zeile unterhalb einfügen", insertColumnLeft: "Spalte links einfügen", insertColumnRight: "Spalte rechts einfügen", deleteRow: "Zeile löschen", deleteColumn: "Spalte löschen", borderColorLabel: "Rahmenfarbe…", deleteTable: "Tabelle löschen", tableActions: "Tabellenaktionen", menuKeyboardHint: "↑↓ Navigieren · Eingabe Auswählen · Esc Schließen", insertRow: "Zeile einfügen", insertColumn: "Spalte einfügen", addRow: "Zeile hinzufügen", addColumn: "Spalte hinzufügen", tableActionsHint: "Tabellenaktionen (Rechtsklick oder Umschalt+F10)", contextMenuHint: "Rechtsklick oder Umschalt+F10 für Tabellenaktionen", borderColor: "Rahmenfarbe", defaultColor: "Standard", noBorders: "Keine Rahmen", borderColorPicker: "Rahmenfarbe auswählen", announceBorderColorSet: (t2) => `Tabellenrahmenfarbe auf ${t2} gesetzt`, announceBorderReset: "Tabellenrahmen auf Standard zurückgesetzt", borderSwatchLabel: (t2) => `Rahmen ${t2}`, announceRowInsertedAbove: "Zeile oberhalb eingefügt", announceRowInsertedBelow: "Zeile unterhalb eingefügt", announceColumnInserted: (t2) => `Spalte ${t2} eingefügt`, announceRowDeleted: "Zeile gelöscht", announceColumnDeleted: "Spalte gelöscht", announceTableDeleted: "Tabelle gelöscht", insertTable: "Tabelle einfügen", tableAriaLabel: (t2, e2) => `Tabelle mit ${t2} Zeilen und ${e2} Spalten`, tableAriaDescription: "Rechtsklick oder Umschalt+F10 für Tabellenaktionen" }, T = { insertRowAbove: "Insertar fila arriba", insertRowBelow: "Insertar fila abajo", insertColumnLeft: "Insertar columna a la izquierda", insertColumnRight: "Insertar columna a la derecha", deleteRow: "Eliminar fila", deleteColumn: "Eliminar columna", borderColorLabel: "Color del borde…", deleteTable: "Eliminar tabla", tableActions: "Acciones de tabla", menuKeyboardHint: "↑↓ Navegar · Enter Seleccionar · Esc Cerrar", insertRow: "Insertar fila", insertColumn: "Insertar columna", addRow: "Añadir fila", addColumn: "Añadir columna", tableActionsHint: "Acciones de tabla (clic derecho o Mayús+F10)", contextMenuHint: "Clic derecho o Mayús+F10 para acciones de tabla", borderColor: "Color del borde", defaultColor: "Predeterminado", noBorders: "Sin bordes", borderColorPicker: "Selector de color de borde", announceBorderColorSet: (t2) => `Color del borde de tabla establecido en ${t2}`, announceBorderReset: "Bordes de tabla restablecidos a predeterminado", borderSwatchLabel: (t2) => `Borde ${t2}`, announceRowInsertedAbove: "Fila insertada arriba", announceRowInsertedBelow: "Fila insertada abajo", announceColumnInserted: (t2) => `Columna insertada ${t2}`, announceRowDeleted: "Fila eliminada", announceColumnDeleted: "Columna eliminada", announceTableDeleted: "Tabla eliminada", insertTable: "Insertar tabla", tableAriaLabel: (t2, e2) => `Tabla con ${t2} filas y ${e2} columnas`, tableAriaDescription: "Clic derecho o Mayús+F10 para acciones de tabla" }, E = { insertRowAbove: "Insérer une ligne au-dessus", insertRowBelow: "Insérer une ligne en dessous", insertColumnLeft: "Insérer une colonne à gauche", insertColumnRight: "Insérer une colonne à droite", deleteRow: "Supprimer la ligne", deleteColumn: "Supprimer la colonne", borderColorLabel: "Couleur de bordure…", deleteTable: "Supprimer le tableau", tableActions: "Actions du tableau", menuKeyboardHint: "↑↓ Naviguer · Entrée Sélectionner · Échap Fermer", insertRow: "Insérer une ligne", insertColumn: "Insérer une colonne", addRow: "Ajouter une ligne", addColumn: "Ajouter une colonne", tableActionsHint: "Actions du tableau (clic droit ou Maj+F10)", contextMenuHint: "Clic droit ou Maj+F10 pour les actions du tableau", borderColor: "Couleur de bordure", defaultColor: "Par défaut", noBorders: "Sans bordure", borderColorPicker: "Sélecteur de couleur de bordure", announceBorderColorSet: (t2) => `Couleur de bordure du tableau définie sur ${t2}`, announceBorderReset: "Bordures du tableau réinitialisées par défaut", borderSwatchLabel: (t2) => `Bordure ${t2}`, announceRowInsertedAbove: "Ligne insérée au-dessus", announceRowInsertedBelow: "Ligne insérée en dessous", announceColumnInserted: (t2) => `Colonne insérée à ${t2}`, announceRowDeleted: "Ligne supprimée", announceColumnDeleted: "Colonne supprimée", announceTableDeleted: "Tableau supprimé", insertTable: "Insérer un tableau", tableAriaLabel: (t2, e2) => `Tableau avec ${t2} lignes et ${e2} colonnes`, tableAriaDescription: "Clic droit ou Maj+F10 pour les actions du tableau" }, D = { insertRowAbove: "在上方插入行", insertRowBelow: "在下方插入行", insertColumnLeft: "在左侧插入列", insertColumnRight: "在右侧插入列", deleteRow: "删除行", deleteColumn: "删除列", borderColorLabel: "边框颜色…", deleteTable: "删除表格", tableActions: "表格操作", menuKeyboardHint: "↑↓ 导航 · Enter 选择 · Esc 关闭", insertRow: "插入行", insertColumn: "插入列", addRow: "添加行", addColumn: "添加列", tableActionsHint: "表格操作(右键或 Shift+F10)", contextMenuHint: "右键或 Shift+F10 打开表格操作", borderColor: "边框颜色", defaultColor: "默认", noBorders: "无边框", borderColorPicker: "边框颜色选择器", announceBorderColorSet: (t2) => `表格边框颜色已设置为${t2}`, announceBorderReset: "表格边框已重置为默认", borderSwatchLabel: (t2) => `边框 ${t2}`, announceRowInsertedAbove: "已在上方插入行", announceRowInsertedBelow: "已在下方插入行", announceColumnInserted: (t2) => `已插入列到${t2}`, announceRowDeleted: "行已删除", announceColumnDeleted: "列已删除", announceTableDeleted: "表格已删除", insertTable: "插入表格", tableAriaLabel: (t2, e2) => `表格,${t2} 行 ${e2} 列`, tableAriaDescription: "右键或 Shift+F10 打开表格操作" }, M = { insertRowAbove: "Вставить строку сверху", insertRowBelow: "Вставить строку снизу", insertColumnLeft: "Вставить столбец слева", insertColumnRight: "Вставить столбец справа", deleteRow: "Удалить строку", deleteColumn: "Удалить столбец", borderColorLabel: "Цвет границы…", deleteTable: "Удалить таблицу", tableActions: "Действия с таблицей", menuKeyboardHint: "↑↓ Навигация · Enter Выбрать · Esc Закрыть", insertRow: "Вставить строку", insertColumn: "Вставить столбец", addRow: "Добавить строку", addColumn: "Добавить столбец", tableActionsHint: "Действия с таблицей (ПКМ или Shift+F10)", contextMenuHint: "ПКМ или Shift+F10 для действий с таблицей", borderColor: "Цвет границы", defaultColor: "По умолчанию", noBorders: "Без границ", borderColorPicker: "Выбор цвета границы", announceBorderColorSet: (t2) => `Цвет границы таблицы установлен на ${t2}`, announceBorderReset: "Границы таблицы сброшены по умолчанию", borderSwatchLabel: (t2) => `Граница ${t2}`, announceRowInsertedAbove: "Строка вставлена сверху", announceRowInsertedBelow: "Строка вставлена снизу", announceColumnInserted: (t2) => `Столбец вставлен ${t2}`, announceRowDeleted: "Строка удалена", announceColumnDeleted: "Столбец удален", announceTableDeleted: "Таблица удалена", insertTable: "Вставить таблицу", tableAriaLabel: (t2, e2) => `Таблица: ${t2} строк, ${e2} столбцов`, tableAriaDescription: "ПКМ или Shift+F10 для действий с таблицей" }, H = { insertRowAbove: "إدراج صف أعلى", insertRowBelow: "إدراج صف أسفل", insertColumnLeft: "إدراج عمود على اليسار", insertColumnRight: "إدراج عمود على اليمين", deleteRow: "حذف الصف", deleteColumn: "حذف العمود", borderColorLabel: "لون الحدود…", deleteTable: "حذف الجدول", tableActions: "إجراءات الجدول", menuKeyboardHint: "↑↓ تنقل · Enter تحديد · Esc إغلاق", insertRow: "إدراج صف", insertColumn: "إدراج عمود", addRow: "إضافة صف", addColumn: "إضافة عمود", tableActionsHint: "إجراءات الجدول (انقر بزر الماوس الأيمن أو Shift+F10)", contextMenuHint: "انقر بزر الماوس الأيمن أو Shift+F10 لإجراءات الجدول", borderColor: "لون الحدود", defaultColor: "افتراضي", noBorders: "بدون حدود", borderColorPicker: "منتقي لون الحدود", announceBorderColorSet: (t2) => `تم تعيين لون حدود الجدول إلى ${t2}`, announceBorderReset: "تم إعادة تعيين حدود الجدول إلى الافتراضي", borderSwatchLabel: (t2) => `حدود ${t2}`, announceRowInsertedAbove: "تم إدراج صف أعلى", announceRowInsertedBelow: "تم إدراج صف أسفل", announceColumnInserted: (t2) => `تم إدراج عمود ${t2}`, announceRowDeleted: "تم حذف الصف", announceColumnDeleted: "تم حذف العمود", announceTableDeleted: "تم حذف الجدول", insertTable: "إدراج جدول", tableAriaLabel: (t2, e2) => `جدول من ${t2} صفوف و ${e2} أعمدة`, tableAriaDescription: "انقر بزر الماوس الأيمن أو Shift+F10 لإجراءات الجدول" }, $ = { insertRowAbove: "ऊपर पंक्ति डालें", insertRowBelow: "नीचे पंक्ति डालें", insertColumnLeft: "बाएं स्तंभ डालें", insertColumnRight: "दाएं स्तंभ डालें", deleteRow: "पंक्ति हटाएं", deleteColumn: "स्तंभ हटाएं", borderColorLabel: "बॉर्डर रंग…", deleteTable: "तालिका हटाएं", tableActions: "तालिका क्रियाएं", menuKeyboardHint: "↑↓ नेविगेशन · Enter चुनें · Esc बंद करें", insertRow: "पंक्ति डालें", insertColumn: "स्तंभ डालें", addRow: "पंक्ति जोड़ें", addColumn: "स्तंभ जोड़ें", tableActionsHint: "तालिका क्रियाएं (राइट-क्लिक या Shift+F10)", contextMenuHint: "तालिका क्रियाओं के लिए राइट-क्लिक या Shift+F10", borderColor: "बॉर्डर रंग", defaultColor: "डिफ़ॉल्ट", noBorders: "कोई बॉर्डर नहीं", borderColorPicker: "बॉर्डर रंग चुनें", announceBorderColorSet: (t2) => `तालिका बॉर्डर रंग ${t2} पर सेट किया गया`, announceBorderReset: "तालिका बॉर्डर डिफ़ॉल्ट पर रीसेट किया गया", borderSwatchLabel: (t2) => `बॉर्डर ${t2}`, announceRowInsertedAbove: "ऊपर पंक्ति डाली गई", announceRowInsertedBelow: "नीचे पंक्ति डाली गई", announceColumnInserted: (t2) => `स्तंभ ${t2} डाला गया`, announceRowDeleted: "पंक्ति हटाई गई", announceColumnDeleted: "स्तंभ हटाया गया", announceTableDeleted: "तालिका हटाई गई", insertTable: "तालिका डालें", tableAriaLabel: (t2, e2) => `तालिका: ${t2} पंक्तियां और ${e2} स्तंभ`, tableAriaDescription: "तालिका क्रियाओं के लिए राइट-क्लिक या Shift+F10" }, N = { en: B, de: L, es: T, fr: E, zh: D, ru: M, ar: H, hi: $ }, P = ["#000000", "#434343", "#666666", "#999999", "#b7b7b7", "#cccccc", "#d9d9d9", "#efefef", "#980000", "#cc0000", "#e69138", "#f1c232", "#6aa84f", "#45818e", "#3c78d8", "#3d85c6", "#674ea7", "#a64d79", "#0b5394", "#38761d"];
|
|
76
|
-
function z(t2, e2, n2) {
|
|
77
|
-
const o2 = t2.getBlock(e2);
|
|
78
|
-
if (!o2 || "table" !== o2.type) return null;
|
|
79
|
-
const r2 = t2.getNodePath(e2);
|
|
80
|
-
if (!r2) return null;
|
|
81
|
-
if (void 0 === n2) {
|
|
82
|
-
const { borderColor: e3, ...n3 } = o2.attrs ?? {}, l3 = n3;
|
|
83
|
-
return t2.transaction("command").setNodeAttr(r2, l3).setSelection(t2.selection).build();
|
|
84
|
-
}
|
|
85
|
-
const l2 = { ...o2.attrs, borderColor: n2 };
|
|
86
|
-
return t2.transaction("command").setNodeAttr(r2, l2).setSelection(t2.selection).build();
|
|
87
|
-
}
|
|
88
|
-
function F(t2, e2, n2 = B) {
|
|
89
|
-
const l2 = t2.getState();
|
|
90
|
-
if (o(l2.selection) || r(l2.selection)) return false;
|
|
91
|
-
const i2 = R(l2, l2.selection.anchor.blockId);
|
|
92
|
-
if (!i2) return false;
|
|
93
|
-
const a2 = z(l2, i2.tableId, e2);
|
|
94
|
-
if (!a2) return false;
|
|
95
|
-
t2.dispatch(a2);
|
|
96
|
-
const s2 = "none" === e2 ? "none" : c(e2);
|
|
97
|
-
return t2.announce(n2.announceBorderColorSet(s2)), true;
|
|
98
|
-
}
|
|
99
|
-
function j(t2, e2 = B) {
|
|
100
|
-
const n2 = t2.getState();
|
|
101
|
-
if (o(n2.selection) || r(n2.selection)) return false;
|
|
102
|
-
const l2 = R(n2, n2.selection.anchor.blockId);
|
|
103
|
-
if (!l2) return false;
|
|
104
|
-
const i2 = z(n2, l2.tableId, void 0);
|
|
105
|
-
return !!i2 && (t2.dispatch(i2), t2.announce(e2.announceBorderReset), true);
|
|
106
|
-
}
|
|
107
|
-
function _(t2, e2) {
|
|
108
|
-
const n2 = t2.getBlock(e2);
|
|
109
|
-
if (n2) return n2.attrs?.borderColor;
|
|
110
|
-
}
|
|
111
|
-
function V(t2, e2, n2, o2, r2 = B) {
|
|
112
|
-
t2.classList.add("notectl-color-picker");
|
|
113
|
-
const l2 = _(e2.getState(), n2), i2 = document.createElement("button");
|
|
114
|
-
i2.type = "button", i2.className = "notectl-color-picker__default", i2.textContent = r2.defaultColor, i2.addEventListener("mousedown", (t3) => {
|
|
115
|
-
t3.preventDefault(), t3.stopPropagation(), j(e2, r2), o2();
|
|
116
|
-
}), i2.addEventListener("keydown", (t3) => {
|
|
117
|
-
"Escape" === t3.key && (t3.preventDefault(), o2());
|
|
118
|
-
}), t2.appendChild(i2);
|
|
119
|
-
const a2 = document.createElement("button");
|
|
120
|
-
a2.type = "button", a2.className = "notectl-color-picker__default", a2.textContent = r2.noBorders, a2.addEventListener("mousedown", (t3) => {
|
|
121
|
-
t3.preventDefault(), t3.stopPropagation(), F(e2, "none", r2), o2();
|
|
122
|
-
}), a2.addEventListener("keydown", (t3) => {
|
|
123
|
-
"Escape" === t3.key && (t3.preventDefault(), o2());
|
|
124
|
-
}), t2.appendChild(a2), d(t2, { colors: P, columns: 5, ariaLabel: r2.borderColorPicker, ariaLabelPrefix: "", activeColor: l2 ?? null, swatchLabel: r2.borderSwatchLabel, titleAsName: true, onSelect: (t3) => {
|
|
125
|
-
F(e2, t3, r2), o2();
|
|
126
|
-
}, onClose: o2 });
|
|
127
|
-
}
|
|
128
|
-
function Z(t2, e2, n2) {
|
|
129
|
-
const o2 = t2.getBlock(e2);
|
|
130
|
-
if (!o2) return null;
|
|
131
|
-
const r2 = u(o2), i2 = r2[0] ? u(r2[0]).length : 0;
|
|
132
|
-
if (0 === i2) return null;
|
|
133
|
-
const a2 = (function(t3) {
|
|
134
|
-
const e3 = [];
|
|
135
|
-
for (let n3 = 0; n3 < t3; n3++) e3.push(I());
|
|
136
|
-
return h(m("table_row"), e3, b());
|
|
137
|
-
})(i2), s2 = t2.transaction("command").insertNode([e2], n2, a2), c2 = u(a2)[0], d2 = c2 ? u(c2)[0] : void 0;
|
|
138
|
-
return d2 ? s2.setSelection(l(d2.id, 0)) : c2 && s2.setSelection(l(c2.id, 0)), s2.build();
|
|
139
|
-
}
|
|
140
|
-
function q(t2, e2, n2) {
|
|
141
|
-
const o2 = t2.getBlock(e2);
|
|
142
|
-
if (!o2) return null;
|
|
143
|
-
const r2 = u(o2), l2 = t2.transaction("command");
|
|
144
|
-
for (const t3 of r2) {
|
|
145
|
-
const o3 = I();
|
|
146
|
-
l2.insertNode([e2, t3.id], n2, o3);
|
|
147
|
-
}
|
|
148
|
-
return l2.setSelection(t2.selection), l2.build();
|
|
149
|
-
}
|
|
150
|
-
function O(t2, e2, n2, o2 = 0) {
|
|
151
|
-
const r2 = t2.getBlock(e2);
|
|
152
|
-
if (!r2) return null;
|
|
153
|
-
if (u(r2).length <= 1) return Y(t2, e2);
|
|
154
|
-
const i2 = t2.transaction("command").removeNode([e2], n2), a2 = y(t2, e2, n2 > 0 ? n2 - 1 : 1, o2);
|
|
155
|
-
if (a2) {
|
|
156
|
-
const e3 = k(t2, a2);
|
|
157
|
-
i2.setSelection(l(e3, 0));
|
|
158
|
-
}
|
|
159
|
-
return i2.build();
|
|
160
|
-
}
|
|
161
|
-
function K(t2, e2, n2, o2 = 0) {
|
|
162
|
-
const r2 = t2.getBlock(e2);
|
|
163
|
-
if (!r2) return null;
|
|
164
|
-
const i2 = u(r2);
|
|
165
|
-
if ((i2[0] ? u(i2[0]).length : 0) <= 1) return Y(t2, e2);
|
|
166
|
-
const a2 = t2.transaction("command");
|
|
167
|
-
for (let t3 = i2.length - 1; t3 >= 0; t3--) {
|
|
168
|
-
const o3 = i2[t3];
|
|
169
|
-
o3 && a2.removeNode([e2, o3.id], n2);
|
|
170
|
-
}
|
|
171
|
-
const s2 = y(t2, e2, o2, n2 > 0 ? n2 - 1 : 1);
|
|
172
|
-
if (s2) {
|
|
173
|
-
const e3 = k(t2, s2);
|
|
174
|
-
a2.setSelection(l(e3, 0));
|
|
175
|
-
}
|
|
176
|
-
return a2.build();
|
|
177
|
-
}
|
|
178
|
-
function Y(t2, e2) {
|
|
179
|
-
const n2 = t2.doc.children.findIndex((t3) => t3.id === e2);
|
|
180
|
-
if (-1 === n2) return null;
|
|
181
|
-
const o2 = t2.transaction("command").removeNode([], n2), r2 = t2.doc.children[n2 + 1];
|
|
182
|
-
if (r2) return o2.setSelection(l(r2.id, 0)), o2.build();
|
|
183
|
-
const i2 = t2.doc.children[n2 - 1];
|
|
184
|
-
return i2 && o2.setSelection(l(i2.id, 0)), o2.build();
|
|
185
|
-
}
|
|
186
|
-
function U(t2, e2, n2) {
|
|
187
|
-
const i2 = t2.getState(), a2 = i2.selection;
|
|
188
|
-
if (o(a2) || r(a2)) return false;
|
|
189
|
-
const s2 = a2.anchor.blockId;
|
|
190
|
-
let c2 = -1;
|
|
191
|
-
for (let t3 = 0; t3 < i2.doc.children.length; t3++) {
|
|
192
|
-
const e3 = i2.doc.children[t3];
|
|
193
|
-
if (!e3) continue;
|
|
194
|
-
if (e3.id === s2) {
|
|
195
|
-
c2 = t3;
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
const n3 = i2.getNodePath(s2);
|
|
199
|
-
if (n3 && n3[0] === e3.id) {
|
|
200
|
-
c2 = t3;
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
-1 === c2 && (c2 = i2.doc.children.length - 1);
|
|
205
|
-
const d2 = (function(t3, e3) {
|
|
206
|
-
const n3 = b(), o2 = [];
|
|
207
|
-
for (let n4 = 0; n4 < t3; n4++) {
|
|
208
|
-
const t4 = [];
|
|
209
|
-
for (let n5 = 0; n5 < e3; n5++) t4.push(I());
|
|
210
|
-
o2.push(h(m("table_row"), t4, b()));
|
|
211
|
-
}
|
|
212
|
-
return h(m("table"), o2, n3);
|
|
213
|
-
})(e2, n2), p2 = h(m("paragraph")), f2 = c2 + 1, g2 = i2.transaction("command").insertNode([], f2, d2).insertNode([], f2 + 1, p2), w2 = u(d2)[0], v2 = w2 ? u(w2)[0] : void 0, x2 = v2 ? u(v2)[0] : void 0;
|
|
214
|
-
return x2 ? g2.setSelection(l(x2.id, 0)) : v2 && g2.setSelection(l(v2.id, 0)), t2.dispatch(g2.build()), true;
|
|
215
|
-
}
|
|
216
|
-
function W(t2, e2) {
|
|
217
|
-
const n2 = t2.getState();
|
|
218
|
-
if (o(n2.selection) || r(n2.selection)) return false;
|
|
219
|
-
const l2 = R(n2, n2.selection.anchor.blockId);
|
|
220
|
-
if (!l2) return false;
|
|
221
|
-
const i2 = Z(n2, l2.tableId, l2.rowIndex + 1);
|
|
222
|
-
return !!i2 && (t2.dispatch(i2), t2.announce(e2?.announceRowInsertedBelow ?? "Row inserted below"), true);
|
|
223
|
-
}
|
|
224
|
-
function X(t2, e2, n2) {
|
|
225
|
-
const l2 = t2.getState();
|
|
226
|
-
if (o(l2.selection) || r(l2.selection)) return false;
|
|
227
|
-
const i2 = R(l2, l2.selection.anchor.blockId);
|
|
228
|
-
if (!i2) return false;
|
|
229
|
-
const a2 = "left" === e2 ? i2.colIndex : i2.colIndex + 1, s2 = q(l2, i2.tableId, a2);
|
|
230
|
-
return !!s2 && (t2.dispatch(s2), t2.announce(n2?.announceColumnInserted(e2) ?? `Column inserted ${e2}`), true);
|
|
231
|
-
}
|
|
232
|
-
function G(t2, e2) {
|
|
233
|
-
t2.registerCommand("insertTable", () => U(t2, 3, 3)), t2.registerCommand("addRowAbove", () => (function(t3, e3) {
|
|
234
|
-
const n2 = t3.getState();
|
|
235
|
-
if (o(n2.selection) || r(n2.selection)) return false;
|
|
236
|
-
const l2 = R(n2, n2.selection.anchor.blockId);
|
|
237
|
-
if (!l2) return false;
|
|
238
|
-
const i2 = Z(n2, l2.tableId, l2.rowIndex);
|
|
239
|
-
return !!i2 && (t3.dispatch(i2), t3.announce(e3?.announceRowInsertedAbove ?? "Row inserted above"), true);
|
|
240
|
-
})(t2, e2)), t2.registerCommand("addRowBelow", () => W(t2, e2)), t2.registerCommand("addColumnLeft", () => (function(t3, e3) {
|
|
241
|
-
return X(t3, "left", e3);
|
|
242
|
-
})(t2, e2)), t2.registerCommand("addColumnRight", () => (function(t3, e3) {
|
|
243
|
-
return X(t3, "right", e3);
|
|
244
|
-
})(t2, e2)), t2.registerCommand("deleteRow", () => (function(t3, e3) {
|
|
245
|
-
const n2 = t3.getState();
|
|
246
|
-
if (o(n2.selection) || r(n2.selection)) return false;
|
|
247
|
-
const l2 = R(n2, n2.selection.anchor.blockId);
|
|
248
|
-
if (!l2) return false;
|
|
249
|
-
const i2 = O(n2, l2.tableId, l2.rowIndex, l2.colIndex);
|
|
250
|
-
return !!i2 && (t3.dispatch(i2), t3.announce(e3?.announceRowDeleted ?? "Row deleted"), true);
|
|
251
|
-
})(t2, e2)), t2.registerCommand("deleteColumn", () => (function(t3, e3) {
|
|
252
|
-
const n2 = t3.getState();
|
|
253
|
-
if (o(n2.selection) || r(n2.selection)) return false;
|
|
254
|
-
const l2 = R(n2, n2.selection.anchor.blockId);
|
|
255
|
-
if (!l2) return false;
|
|
256
|
-
const i2 = K(n2, l2.tableId, l2.colIndex, l2.rowIndex);
|
|
257
|
-
return !!i2 && (t3.dispatch(i2), t3.announce(e3?.announceColumnDeleted ?? "Column deleted"), true);
|
|
258
|
-
})(t2, e2)), t2.registerCommand("selectTable", () => (function(t3) {
|
|
259
|
-
const e3 = t3.getState(), n2 = e3.selection;
|
|
260
|
-
if (o(n2)) {
|
|
261
|
-
const t4 = e3.getBlock(n2.nodeId);
|
|
262
|
-
return "table" === t4?.type;
|
|
263
|
-
}
|
|
264
|
-
if (r(n2)) return false;
|
|
265
|
-
const l2 = R(e3, n2.anchor.blockId);
|
|
266
|
-
if (!l2) return false;
|
|
267
|
-
const a2 = e3.getNodePath(l2.tableId);
|
|
268
|
-
if (!a2) return false;
|
|
269
|
-
const s2 = e3.transaction("command").setSelection(i(l2.tableId, a2)).build();
|
|
270
|
-
return t3.dispatch(s2), true;
|
|
271
|
-
})(t2)), t2.registerCommand("deleteTable", () => (function(t3, e3) {
|
|
272
|
-
const n2 = t3.getState(), l2 = (function(t4) {
|
|
273
|
-
if (o(t4.selection)) {
|
|
274
|
-
const e5 = t4.getBlock(t4.selection.nodeId);
|
|
275
|
-
return "table" !== e5?.type ? null : { tableId: e5.id };
|
|
276
|
-
}
|
|
277
|
-
if (r(t4.selection)) return null;
|
|
278
|
-
const e4 = R(t4, t4.selection.anchor.blockId);
|
|
279
|
-
return e4 ? { tableId: e4.tableId } : null;
|
|
280
|
-
})(n2);
|
|
281
|
-
if (!l2) return false;
|
|
282
|
-
const i2 = Y(n2, l2.tableId);
|
|
283
|
-
return !!i2 && (t3.dispatch(i2), t3.announce(e3?.announceTableDeleted ?? "Table deleted"), true);
|
|
284
|
-
})(t2, e2));
|
|
285
|
-
}
|
|
286
|
-
function J(t2, e2, n2, o2, r2, l2 = B, i2) {
|
|
287
|
-
let a2 = true, s2 = null, c2 = null;
|
|
288
|
-
const d2 = document.createElement("div");
|
|
289
|
-
d2.className = "notectl-table-context-menu", d2.setAttribute("role", "menu"), d2.setAttribute("aria-label", l2.tableActions), d2.setAttribute("contenteditable", "false");
|
|
290
|
-
const u2 = [];
|
|
291
|
-
let b2 = 0;
|
|
292
|
-
const h2 = (function(t3) {
|
|
293
|
-
return [{ type: "item", label: t3.insertRowAbove, command: "addRowAbove" }, { type: "item", label: t3.insertRowBelow, command: "addRowBelow" }, { type: "separator" }, { type: "item", label: t3.insertColumnLeft, command: "addColumnLeft" }, { type: "item", label: t3.insertColumnRight, command: "addColumnRight" }, { type: "separator" }, { type: "item", label: t3.deleteRow, command: "deleteRow" }, { type: "item", label: t3.deleteColumn, command: "deleteColumn" }, { type: "separator" }, { type: "submenu", label: t3.borderColorLabel, id: "borderColor" }, { type: "separator" }, { type: "item", label: t3.deleteTable, command: "deleteTable" }];
|
|
294
|
-
})(l2);
|
|
295
|
-
for (const t3 of h2) {
|
|
296
|
-
if ("separator" === t3.type) {
|
|
297
|
-
const t4 = document.createElement("div");
|
|
298
|
-
t4.setAttribute("role", "separator"), d2.appendChild(t4);
|
|
299
|
-
continue;
|
|
300
|
-
}
|
|
301
|
-
const n3 = document.createElement("button");
|
|
302
|
-
n3.type = "button", n3.setAttribute("role", "menuitem"), n3.textContent = t3.label, "submenu" === t3.type && (n3.dataset.submenu = t3.id, n3.setAttribute("aria-haspopup", "true"), n3.setAttribute("aria-expanded", "false")), "item" === t3.type && (n3.dataset.command = t3.command), n3.addEventListener("mousedown", (t4) => {
|
|
303
|
-
t4.preventDefault(), t4.stopPropagation();
|
|
304
|
-
}), n3.addEventListener("click", (o3) => {
|
|
305
|
-
o3.stopPropagation(), "item" === t3.type ? (e2.executeCommand(t3.command), R2()) : "submenu" === t3.type && f2(n3);
|
|
306
|
-
}), u2.push(n3), d2.appendChild(n3);
|
|
307
|
-
}
|
|
308
|
-
const p2 = document.createElement("div");
|
|
309
|
-
function f2(o3) {
|
|
310
|
-
if (m2(), o3.setAttribute("aria-expanded", "true"), i2) {
|
|
311
|
-
const t3 = { close: () => R2(), getElement: () => d2 };
|
|
312
|
-
c2 = i2.open({ anchor: o3, position: "right", referenceNode: d2, parent: t3, onClose: () => {
|
|
313
|
-
c2 = null, s2 = null, v2();
|
|
314
|
-
}, content: (t4, r3) => {
|
|
315
|
-
t4.className = "notectl-table-context-menu", t4.setAttribute("contenteditable", "false"), s2 = t4, t4.addEventListener("keydown", (t5) => {
|
|
316
|
-
t5.stopPropagation(), "ArrowLeft" === t5.key && (t5.preventDefault(), r3(), o3.focus());
|
|
317
|
-
}), V(t4, e2, n2, () => R2(), l2);
|
|
318
|
-
} });
|
|
319
|
-
} else {
|
|
320
|
-
s2 = document.createElement("div"), s2.className = "notectl-table-context-menu", g(s2, "position", "fixed"), s2.setAttribute("contenteditable", "false"), s2.addEventListener("keydown", (t3) => {
|
|
321
|
-
t3.stopPropagation(), "ArrowLeft" === t3.key && (t3.preventDefault(), m2(), o3.focus());
|
|
322
|
-
}), V(s2, e2, n2, () => R2(), l2), t2.appendChild(s2);
|
|
323
|
-
const r3 = o3.getBoundingClientRect(), i3 = d2.getBoundingClientRect();
|
|
324
|
-
let a3 = i3.right + 2, c3 = r3.top;
|
|
325
|
-
const u3 = window.innerWidth, b3 = window.innerHeight;
|
|
326
|
-
a3 + 200 > u3 && (a3 = i3.left - 200 - 2), c3 + 200 > b3 && (c3 = b3 - 200), w(s2, { left: `${a3}px`, top: `${c3}px` }), requestAnimationFrame(() => {
|
|
327
|
-
const t3 = s2?.querySelector("button");
|
|
328
|
-
t3?.focus();
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
function m2() {
|
|
333
|
-
c2 ? (c2.close(), c2 = null, s2 = null) : s2 && (s2.remove(), s2 = null), v2();
|
|
334
|
-
}
|
|
335
|
-
function v2() {
|
|
336
|
-
for (const t3 of u2) t3.dataset.submenu && t3.setAttribute("aria-expanded", "false");
|
|
337
|
-
}
|
|
338
|
-
p2.className = "notectl-table-context-menu__hint", p2.setAttribute("aria-hidden", "true"), p2.textContent = l2.menuKeyboardHint, d2.appendChild(p2), C(u2, b2), d2.addEventListener("keydown", (t3) => {
|
|
339
|
-
switch (t3.stopPropagation(), t3.key) {
|
|
340
|
-
case "Escape":
|
|
341
|
-
return t3.preventDefault(), void R2();
|
|
342
|
-
case "ArrowDown":
|
|
343
|
-
return t3.preventDefault(), b2 = (b2 + 1) % u2.length, C(u2, b2), void u2[b2]?.focus();
|
|
344
|
-
case "ArrowUp":
|
|
345
|
-
return t3.preventDefault(), b2 = (b2 - 1 + u2.length) % u2.length, C(u2, b2), void u2[b2]?.focus();
|
|
346
|
-
case "ArrowRight": {
|
|
347
|
-
t3.preventDefault();
|
|
348
|
-
const e3 = u2[b2];
|
|
349
|
-
return void (e3?.dataset.submenu && f2(e3));
|
|
350
|
-
}
|
|
351
|
-
case "ArrowLeft":
|
|
352
|
-
return t3.preventDefault(), m2(), void u2[b2]?.focus();
|
|
353
|
-
case "Enter":
|
|
354
|
-
case " ": {
|
|
355
|
-
t3.preventDefault();
|
|
356
|
-
const n3 = u2[b2];
|
|
357
|
-
if (!n3) return;
|
|
358
|
-
return void (n3.dataset.submenu ? f2(n3) : n3.dataset.command && (e2.executeCommand(n3.dataset.command), R2()));
|
|
359
|
-
}
|
|
360
|
-
case "Home":
|
|
361
|
-
return t3.preventDefault(), b2 = 0, C(u2, b2), void u2[b2]?.focus();
|
|
362
|
-
case "End":
|
|
363
|
-
return t3.preventDefault(), b2 = u2.length - 1, C(u2, b2), void u2[b2]?.focus();
|
|
364
|
-
}
|
|
365
|
-
}), x(d2, o2, { position: "below-start" }), t2.appendChild(d2), u2[0]?.focus(), requestAnimationFrame(() => {
|
|
366
|
-
a2 && u2[0] && u2[0].focus();
|
|
367
|
-
});
|
|
368
|
-
const I2 = (t3) => {
|
|
369
|
-
const e3 = t3.composedPath();
|
|
370
|
-
e3.includes(d2) || s2 && e3.includes(s2) || R2();
|
|
371
|
-
};
|
|
372
|
-
function R2() {
|
|
373
|
-
a2 && (a2 = false, m2(), d2.remove(), document.removeEventListener("mousedown", I2, true), r2?.());
|
|
374
|
-
}
|
|
375
|
-
return setTimeout(() => {
|
|
376
|
-
document.addEventListener("mousedown", I2, true);
|
|
377
|
-
}, 0), { isOpen: () => a2, close: R2, destroy: R2 };
|
|
378
|
-
}
|
|
379
|
-
function Q(t2, e2) {
|
|
380
|
-
const n2 = t2.getState();
|
|
381
|
-
if (o(n2.selection) || r(n2.selection)) return false;
|
|
382
|
-
const l2 = n2.selection, i2 = R(n2, l2.anchor.blockId);
|
|
383
|
-
return !!i2 && e2(n2, l2, i2);
|
|
384
|
-
}
|
|
385
|
-
function tt(t2) {
|
|
386
|
-
return Q(t2, (e2, n2, o2) => {
|
|
387
|
-
const r2 = o2.tableIndex + 1;
|
|
388
|
-
if (r2 >= e2.doc.children.length) return false;
|
|
389
|
-
const i2 = e2.doc.children[r2];
|
|
390
|
-
if (!i2) return false;
|
|
391
|
-
const a2 = e2.transaction("command").setSelection(l(i2.id, 0)).build();
|
|
392
|
-
return t2.dispatch(a2), true;
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
let et = null;
|
|
396
|
-
function nt(t2, e2, n2, o2) {
|
|
397
|
-
const r2 = t2.getState(), i2 = y(r2, e2, n2, o2);
|
|
398
|
-
if (!i2) return false;
|
|
399
|
-
const a2 = k(r2, i2), s2 = r2.transaction("command").setSelection(l(a2, 0)).build();
|
|
400
|
-
return t2.dispatch(s2), true;
|
|
401
|
-
}
|
|
402
|
-
function ot(t2, e2, n2, o2) {
|
|
403
|
-
const r2 = t2.getState(), i2 = y(r2, e2, n2, o2);
|
|
404
|
-
if (!i2) return false;
|
|
405
|
-
const a2 = S(r2, i2), s2 = r2.getBlock(a2);
|
|
406
|
-
if (!s2) return false;
|
|
407
|
-
const c2 = f(s2), d2 = r2.transaction("command").setSelection(l(a2, c2)).build();
|
|
408
|
-
return t2.dispatch(d2), true;
|
|
409
|
-
}
|
|
410
|
-
function rt(t2, e2) {
|
|
411
|
-
const n2 = t2.getState(), o2 = n2.getNodePath(e2);
|
|
412
|
-
if (!o2) return false;
|
|
413
|
-
const r2 = n2.transaction("input").setSelection(i(e2, o2)).build();
|
|
414
|
-
return t2.dispatch(r2), true;
|
|
415
|
-
}
|
|
416
|
-
const lt = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M6 1v10M1 6h10" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>';
|
|
417
|
-
function it(t2, e2, n2) {
|
|
418
|
-
const o2 = document.createElement("button");
|
|
419
|
-
return o2.className = t2, o2.innerHTML = e2, o2.title = n2, o2.type = "button", o2.setAttribute("aria-label", n2), o2.setAttribute("contenteditable", "false"), o2.addEventListener("mousedown", (t3) => {
|
|
420
|
-
t3.preventDefault(), t3.stopPropagation();
|
|
421
|
-
}), o2;
|
|
422
|
-
}
|
|
423
|
-
function at(t2, e2) {
|
|
424
|
-
const n2 = document.createElement("div");
|
|
425
|
-
n2.className = `ntbl-insert-line ntbl-insert-line--${t2}`, n2.setAttribute("contenteditable", "false"), n2.setAttribute("data-notectl-no-print", "");
|
|
426
|
-
const o2 = it("ntbl-insert-btn", lt, e2 ?? ("horizontal" === t2 ? "Insert row" : "Insert column"));
|
|
427
|
-
return n2.appendChild(o2), n2;
|
|
428
|
-
}
|
|
429
|
-
function st(t2, e2) {
|
|
430
|
-
const n2 = document.createElement("button");
|
|
431
|
-
n2.className = `ntbl-add-zone ${t2}`, n2.type = "button", n2.setAttribute("contenteditable", "false"), n2.setAttribute("aria-label", e2), n2.setAttribute("data-notectl-no-print", ""), n2.title = e2;
|
|
432
|
-
const o2 = document.createElement("span");
|
|
433
|
-
return o2.className = "ntbl-add-icon", o2.innerHTML = lt, n2.appendChild(o2), n2.addEventListener("mousedown", (t3) => {
|
|
434
|
-
t3.preventDefault(), t3.stopPropagation();
|
|
435
|
-
}), n2;
|
|
436
|
-
}
|
|
437
|
-
function ct(t2) {
|
|
438
|
-
const e2 = document.createElement("div");
|
|
439
|
-
return e2.className = t2, e2.setAttribute("contenteditable", "false"), e2.setAttribute("data-notectl-no-print", ""), e2;
|
|
440
|
-
}
|
|
441
|
-
function dt(t2, e2) {
|
|
442
|
-
w(t2, "none" === e2 ? { backgroundColor: "transparent", border: "1px dashed rgba(128,128,128,0.4)" } : e2 ? { backgroundColor: e2, border: "1px solid rgba(0,0,0,0.15)" } : { backgroundColor: "var(--notectl-border)", border: "1px solid rgba(0,0,0,0.15)" });
|
|
443
|
-
}
|
|
444
|
-
function ut(t2, e2, n2, o2) {
|
|
445
|
-
const r2 = document.createElement("div");
|
|
446
|
-
r2.className = `ntbl-handle ${t2}`, r2.dataset.index = String(e2);
|
|
447
|
-
const l2 = it("ntbl-handle-delete", '<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none"><path d="M2 2l6 6M8 2l-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>', n2);
|
|
448
|
-
return l2.addEventListener("click", (t3) => {
|
|
449
|
-
t3.preventDefault(), t3.stopPropagation(), o2(e2);
|
|
450
|
-
}), r2.appendChild(l2), r2;
|
|
451
|
-
}
|
|
452
|
-
function bt(t2, e2) {
|
|
453
|
-
let n2 = 0, o2 = 0, r2 = t2;
|
|
454
|
-
for (; r2 && r2 !== e2; ) n2 += r2.offsetTop, o2 += r2.offsetLeft, r2 = r2.offsetParent;
|
|
455
|
-
return { top: n2, left: o2 };
|
|
456
|
-
}
|
|
457
|
-
class ht {
|
|
458
|
-
tableId;
|
|
459
|
-
numRows;
|
|
460
|
-
numCols;
|
|
461
|
-
activeRowIndex = -1;
|
|
462
|
-
activeColIndex = -1;
|
|
463
|
-
colBar;
|
|
464
|
-
rowBar;
|
|
465
|
-
insertLineH;
|
|
466
|
-
insertLineV;
|
|
467
|
-
addRowZone;
|
|
468
|
-
addColZone;
|
|
469
|
-
deleteTableBtn;
|
|
470
|
-
borderColorBtn;
|
|
471
|
-
actionsBtn;
|
|
472
|
-
contextHint;
|
|
473
|
-
observer;
|
|
474
|
-
borderColorPopup = null;
|
|
475
|
-
activeContextMenu = null;
|
|
476
|
-
container;
|
|
477
|
-
tableEl;
|
|
478
|
-
getState;
|
|
479
|
-
dispatchFn;
|
|
480
|
-
pluginContext;
|
|
481
|
-
locale;
|
|
482
|
-
onMouseMove = (t2) => {
|
|
483
|
-
const e2 = this.tableEl.getBoundingClientRect(), n2 = t2.clientX - e2.left, o2 = t2.clientY - e2.top;
|
|
484
|
-
if (!(n2 >= -10 && n2 <= e2.width + 10 && o2 >= -10 && o2 <= e2.height + 10)) return void this.hideInsertLines();
|
|
485
|
-
const r2 = (function(t3, e3, n3, o3) {
|
|
486
|
-
let r3 = Number.POSITIVE_INFINITY, l2 = null;
|
|
487
|
-
for (const t4 of n3) {
|
|
488
|
-
const n4 = Math.abs(e3 - t4.position);
|
|
489
|
-
n4 < r3 && n4 < 10 && (r3 = n4, l2 = t4);
|
|
490
|
-
}
|
|
491
|
-
let i2 = Number.POSITIVE_INFINITY, a2 = null;
|
|
492
|
-
for (const e4 of o3) {
|
|
493
|
-
const n4 = Math.abs(t3 - e4.position);
|
|
494
|
-
n4 < i2 && n4 < 10 && (i2 = n4, a2 = e4);
|
|
495
|
-
}
|
|
496
|
-
return l2 && (!a2 || r3 <= i2) ? { type: "row", border: l2 } : a2 ? { type: "col", border: a2 } : { type: "none", border: null };
|
|
497
|
-
})(n2, o2, (function(t3) {
|
|
498
|
-
const e3 = t3.querySelectorAll(":scope > tbody > tr"), n3 = t3.offsetTop, o3 = [];
|
|
499
|
-
for (let t4 = 1; t4 < e3.length; t4++) {
|
|
500
|
-
const r3 = e3[t4];
|
|
501
|
-
r3 && o3.push({ position: r3.offsetTop - n3, index: t4 });
|
|
502
|
-
}
|
|
503
|
-
return o3;
|
|
504
|
-
})(this.tableEl), (function(t3, e3) {
|
|
505
|
-
if (e3 <= 1) return [];
|
|
506
|
-
const n3 = t3 / e3, o3 = [];
|
|
507
|
-
for (let t4 = 1; t4 < e3; t4++) o3.push({ position: Math.round(n3 * t4), index: t4 });
|
|
508
|
-
return o3;
|
|
509
|
-
})(this.tableEl.offsetWidth, this.numCols));
|
|
510
|
-
"row" === r2.type && r2.border ? (this.showHorizontalLine(r2.border), this.hideVerticalLine()) : "col" === r2.type && r2.border ? (this.showVerticalLine(r2.border), this.hideHorizontalLine()) : this.hideInsertLines();
|
|
511
|
-
};
|
|
512
|
-
onMouseLeave = () => {
|
|
513
|
-
this.hideInsertLines();
|
|
514
|
-
};
|
|
515
|
-
constructor(t2, e2, n2, o2, r2, l2, i2 = B) {
|
|
516
|
-
if (this.container = t2, this.tableEl = e2, this.getState = o2, this.dispatchFn = r2, this.pluginContext = l2 ?? null, this.locale = i2, this.tableId = n2.id, this.numRows = u(n2).length, this.numCols = this.countCols(n2), this.colBar = ct("ntbl-col-bar"), this.rowBar = ct("ntbl-row-bar"), this.insertLineH = at("horizontal", i2.insertRow), this.insertLineV = at("vertical", i2.insertColumn), this.addRowZone = st("ntbl-add-row", i2.addRow), this.addColZone = st("ntbl-add-col", i2.addColumn), this.deleteTableBtn = it("ntbl-delete-table-btn", '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none"><path d="M9 3h6m-9 4h12M10 11v6m4-6v6m-9 3h14l-1-13H6L5 20z" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg>', i2.deleteTable), this.deleteTableBtn.setAttribute("data-notectl-no-print", ""), l2) {
|
|
517
|
-
const t3 = _(o2(), this.tableId);
|
|
518
|
-
this.borderColorBtn = (function(t4) {
|
|
519
|
-
const e3 = it("ntbl-border-color-btn", '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none"><path d="M3 3h18v18H3V3zm0 6h18M3 15h18M9 3v18M15 3v18" stroke="currentColor" stroke-width="1.5"/></svg>', "Border color");
|
|
520
|
-
e3.setAttribute("data-notectl-no-print", "");
|
|
521
|
-
const n3 = document.createElement("span");
|
|
522
|
-
return n3.className = "ntbl-border-color-swatch", dt(n3, t4), e3.appendChild(n3), e3;
|
|
523
|
-
})(t3), this.actionsBtn = (function(t4) {
|
|
524
|
-
const e3 = it("ntbl-actions-btn", '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="5" r="2"/><circle cx="12" cy="12" r="2"/><circle cx="12" cy="19" r="2"/></svg>', t4 ?? "Table actions (Right-click or Shift+F10)");
|
|
525
|
-
return e3.setAttribute("data-notectl-no-print", ""), e3;
|
|
526
|
-
})(i2.tableActionsHint);
|
|
527
|
-
} else this.borderColorBtn = null, this.actionsBtn = null;
|
|
528
|
-
t2.append(this.colBar, this.rowBar, this.insertLineH, this.insertLineV, this.addRowZone, this.addColZone, this.deleteTableBtn), this.borderColorBtn && t2.appendChild(this.borderColorBtn), this.actionsBtn && t2.appendChild(this.actionsBtn), this.contextHint = (function(t3) {
|
|
529
|
-
const e3 = document.createElement("div");
|
|
530
|
-
return e3.className = "ntbl-context-hint", e3.setAttribute("aria-hidden", "true"), e3.setAttribute("contenteditable", "false"), e3.setAttribute("data-notectl-no-print", ""), e3.textContent = t3 ?? "Right-click or Shift+F10 for table actions", e3;
|
|
531
|
-
})(i2.contextMenuHint), t2.appendChild(this.contextHint), this.rebuildColHandles(), this.rebuildRowHandles(), this.bindEventListeners(), this.observer = new ResizeObserver(() => {
|
|
532
|
-
this.positionControls();
|
|
533
|
-
}), this.observer.observe(e2), requestAnimationFrame(() => this.positionControls());
|
|
534
|
-
}
|
|
535
|
-
update(t2) {
|
|
536
|
-
this.tableId = t2.id;
|
|
537
|
-
const e2 = u(t2).length, n2 = this.countCols(t2);
|
|
538
|
-
if (e2 === this.numRows && n2 === this.numCols || (this.numRows = e2, this.numCols = n2, this.rebuildColHandles(), this.rebuildRowHandles()), this.borderColorBtn) {
|
|
539
|
-
const e3 = this.borderColorBtn.querySelector(".ntbl-border-color-swatch");
|
|
540
|
-
if (e3) {
|
|
541
|
-
const n3 = t2.attrs?.borderColor;
|
|
542
|
-
dt(e3, n3);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
requestAnimationFrame(() => this.positionControls());
|
|
546
|
-
}
|
|
547
|
-
destroy() {
|
|
548
|
-
this.activeContextMenu?.destroy(), this.closeBorderColorPopup(), this.observer.disconnect(), this.container.removeEventListener("mousemove", this.onMouseMove), this.container.removeEventListener("mouseleave", this.onMouseLeave), this.colBar.remove(), this.rowBar.remove(), this.insertLineH.remove(), this.insertLineV.remove(), this.addRowZone.remove(), this.addColZone.remove(), this.deleteTableBtn.remove(), this.borderColorBtn?.remove(), this.actionsBtn?.remove(), this.contextHint.remove();
|
|
549
|
-
}
|
|
550
|
-
bindEventListeners() {
|
|
551
|
-
const t2 = this.insertLineH.querySelector(".ntbl-insert-btn"), e2 = this.insertLineV.querySelector(".ntbl-insert-btn");
|
|
552
|
-
if (t2.addEventListener("click", () => {
|
|
553
|
-
this.activeRowIndex >= 0 && this.dispatchTransaction(Z(this.getState(), this.tableId, this.activeRowIndex));
|
|
554
|
-
}), e2.addEventListener("click", () => {
|
|
555
|
-
this.activeColIndex >= 0 && this.dispatchTransaction(q(this.getState(), this.tableId, this.activeColIndex));
|
|
556
|
-
}), this.addRowZone.addEventListener("click", () => {
|
|
557
|
-
this.dispatchTransaction(Z(this.getState(), this.tableId, this.numRows));
|
|
558
|
-
}), this.addColZone.addEventListener("click", () => {
|
|
559
|
-
this.dispatchTransaction(q(this.getState(), this.tableId, this.numCols));
|
|
560
|
-
}), this.deleteTableBtn.addEventListener("click", () => {
|
|
561
|
-
this.dispatchTransaction(Y(this.getState(), this.tableId));
|
|
562
|
-
}), this.borderColorBtn && this.pluginContext) {
|
|
563
|
-
const t3 = this.pluginContext;
|
|
564
|
-
this.borderColorBtn.addEventListener("click", () => {
|
|
565
|
-
this.toggleBorderColorPopup(t3);
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
if (this.actionsBtn && this.pluginContext) {
|
|
569
|
-
const t3 = this.pluginContext;
|
|
570
|
-
this.actionsBtn.addEventListener("click", () => {
|
|
571
|
-
this.openActionsMenu(t3);
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
this.container.addEventListener("mousemove", this.onMouseMove), this.container.addEventListener("mouseleave", this.onMouseLeave);
|
|
575
|
-
}
|
|
576
|
-
openActionsMenu(t2) {
|
|
577
|
-
if (this.activeContextMenu?.isOpen()) return this.activeContextMenu.close(), void (this.activeContextMenu = null);
|
|
578
|
-
if (!this.actionsBtn) return;
|
|
579
|
-
const e2 = this.actionsBtn.getBoundingClientRect(), n2 = new DOMRect(e2.left, e2.bottom + 4, 0, 0);
|
|
580
|
-
this.activeContextMenu = J(this.container, t2, this.tableId, n2, () => {
|
|
581
|
-
this.activeContextMenu = null;
|
|
582
|
-
}, this.locale);
|
|
583
|
-
}
|
|
584
|
-
toggleBorderColorPopup(t2) {
|
|
585
|
-
this.borderColorPopup ? this.closeBorderColorPopup() : (this.borderColorPopup = document.createElement("div"), this.borderColorPopup.className = "notectl-table-context-menu", w(this.borderColorPopup, { position: "absolute", top: "24px", left: "24px", zIndex: "10000" }), this.borderColorPopup.setAttribute("contenteditable", "false"), V(this.borderColorPopup, t2, this.tableId, () => {
|
|
586
|
-
this.closeBorderColorPopup();
|
|
587
|
-
}, this.locale), this.container.appendChild(this.borderColorPopup));
|
|
588
|
-
}
|
|
589
|
-
closeBorderColorPopup() {
|
|
590
|
-
this.borderColorPopup && (this.borderColorPopup.remove(), this.borderColorPopup = null);
|
|
591
|
-
}
|
|
592
|
-
dispatchTransaction(t2) {
|
|
593
|
-
t2 && this.dispatchFn(t2);
|
|
594
|
-
}
|
|
595
|
-
countCols(t2) {
|
|
596
|
-
const e2 = u(t2);
|
|
597
|
-
return e2[0] ? u(e2[0]).length : 0;
|
|
598
|
-
}
|
|
599
|
-
positionControls() {
|
|
600
|
-
!(function(t2, e2, n2) {
|
|
601
|
-
const o2 = t2.children;
|
|
602
|
-
if (0 === o2.length) return;
|
|
603
|
-
const r2 = e2 / n2;
|
|
604
|
-
for (let t3 = 0; t3 < o2.length; t3++) {
|
|
605
|
-
const e3 = o2[t3];
|
|
606
|
-
w(e3, { left: `${Math.round(r2 * t3)}px`, width: `${Math.round(r2)}px` });
|
|
607
|
-
}
|
|
608
|
-
g(t2, "width", `${e2}px`);
|
|
609
|
-
})(this.colBar, this.tableEl.offsetWidth, this.numCols), (function(t2, e2) {
|
|
610
|
-
const n2 = t2.children;
|
|
611
|
-
if (0 === n2.length) return;
|
|
612
|
-
const o2 = e2.querySelectorAll(":scope > tbody > tr"), r2 = e2.offsetTop;
|
|
613
|
-
let l2 = 0;
|
|
614
|
-
for (let t3 = 0; t3 < n2.length; t3++) {
|
|
615
|
-
const e3 = n2[t3], i2 = o2[t3];
|
|
616
|
-
if (i2) {
|
|
617
|
-
const t4 = i2.offsetTop - r2, n3 = i2.offsetHeight;
|
|
618
|
-
w(e3, { top: `${t4}px`, height: `${n3}px` }), l2 = t4 + n3;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
g(t2, "height", `${l2}px`);
|
|
622
|
-
})(this.rowBar, this.tableEl), (function(t2, e2, n2, o2) {
|
|
623
|
-
const r2 = bt(n2, o2), l2 = n2.offsetHeight, i2 = n2.offsetWidth;
|
|
624
|
-
w(t2, { width: `${i2}px`, left: `${r2.left}px` }), w(e2, { height: `${l2}px`, top: `${r2.top}px` });
|
|
625
|
-
})(this.addRowZone, this.addColZone, this.tableEl, this.container);
|
|
626
|
-
}
|
|
627
|
-
showHorizontalLine(t2) {
|
|
628
|
-
this.activeRowIndex = t2.index;
|
|
629
|
-
const e2 = bt(this.tableEl, this.container);
|
|
630
|
-
w(this.insertLineH, { top: e2.top + t2.position - 1 + "px", left: `${e2.left}px`, width: `${this.tableEl.offsetWidth}px` }), this.insertLineH.classList.add("ntbl-insert-line--visible");
|
|
631
|
-
}
|
|
632
|
-
showVerticalLine(t2) {
|
|
633
|
-
this.activeColIndex = t2.index;
|
|
634
|
-
const e2 = bt(this.tableEl, this.container);
|
|
635
|
-
w(this.insertLineV, { left: e2.left + t2.position - 1 + "px", top: `${e2.top}px`, height: `${this.tableEl.offsetHeight}px` }), this.insertLineV.classList.add("ntbl-insert-line--visible");
|
|
636
|
-
}
|
|
637
|
-
hideInsertLines() {
|
|
638
|
-
this.hideHorizontalLine(), this.hideVerticalLine();
|
|
639
|
-
}
|
|
640
|
-
hideHorizontalLine() {
|
|
641
|
-
this.insertLineH.classList.remove("ntbl-insert-line--visible"), this.activeRowIndex = -1;
|
|
642
|
-
}
|
|
643
|
-
hideVerticalLine() {
|
|
644
|
-
this.insertLineV.classList.remove("ntbl-insert-line--visible"), this.activeColIndex = -1;
|
|
645
|
-
}
|
|
646
|
-
rebuildColHandles() {
|
|
647
|
-
this.colBar.innerHTML = "";
|
|
648
|
-
for (let t2 = 0; t2 < this.numCols; t2++) {
|
|
649
|
-
const e2 = ut("ntbl-col-handle", t2, "Delete column", (t3) => {
|
|
650
|
-
this.dispatchTransaction(K(this.getState(), this.tableId, t3));
|
|
651
|
-
});
|
|
652
|
-
this.colBar.appendChild(e2);
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
rebuildRowHandles() {
|
|
656
|
-
this.rowBar.innerHTML = "";
|
|
657
|
-
for (let t2 = 0; t2 < this.numRows; t2++) {
|
|
658
|
-
const e2 = ut("ntbl-row-handle", t2, "Delete row", (t3) => {
|
|
659
|
-
this.dispatchTransaction(O(this.getState(), this.tableId, t3));
|
|
660
|
-
});
|
|
661
|
-
this.rowBar.appendChild(e2);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
function pt(t2, e2) {
|
|
666
|
-
"none" === e2 ? (g(t2, "--ntbl-border-color", "transparent"), t2.classList.add("notectl-table--borderless")) : e2 ? (g(t2, "--ntbl-border-color", e2), t2.classList.remove("notectl-table--borderless")) : (v(t2, "--ntbl-border-color"), t2.classList.remove("notectl-table--borderless"));
|
|
667
|
-
}
|
|
668
|
-
const ft = new t("tableSelection");
|
|
669
|
-
const mt = { maxPickerRows: 8, maxPickerCols: 8 }, gt = "border-collapse: collapse; width: 100%; table-layout: fixed", wt = "border: 1px solid var(--ntbl-bc, #d0d0d0); padding: 8px 12px; vertical-align: top";
|
|
670
|
-
class vt {
|
|
671
|
-
id = "table";
|
|
672
|
-
name = "Table";
|
|
673
|
-
priority = 40;
|
|
674
|
-
config;
|
|
675
|
-
locale;
|
|
676
|
-
selectionService = null;
|
|
677
|
-
cleanupMouseSelection = null;
|
|
678
|
-
context = null;
|
|
679
|
-
constructor(t2) {
|
|
680
|
-
this.config = { ...mt, ...t2 };
|
|
681
|
-
}
|
|
682
|
-
init(t2) {
|
|
683
|
-
this.locale = e(N, t2, this.config.locale), t2.registerStyleSheet('\n/* Table */\n.notectl-table-wrapper {\n margin: 8px 0;\n overflow-x: auto;\n position: relative;\n}\n\n.notectl-table {\n width: 100%;\n border-collapse: collapse;\n table-layout: fixed;\n}\n\n.notectl-table td {\n border: 1px solid var(--ntbl-border-color, var(--notectl-border));\n padding: 8px 12px;\n min-width: 60px;\n vertical-align: top;\n min-height: 1.6em;\n}\n\n.notectl-table--borderless td {\n border: 1px dashed rgba(128, 128, 128, 0.15);\n}\n\n@media print {\n .notectl-table--borderless td {\n border: none;\n }\n}\n\n.notectl-table td:focus-within {\n outline: 2px solid var(--notectl-primary);\n outline-offset: -2px;\n}\n\n.notectl-table-cell--selected {\n background: var(--notectl-primary-muted);\n}\n\n/* Table Context Menu */\n.notectl-table-context-menu {\n position: fixed;\n background: var(--notectl-surface-overlay);\n border: 1px solid var(--notectl-border);\n border-radius: 6px;\n box-shadow: 0 4px 12px var(--notectl-shadow);\n padding: 4px 0;\n min-width: 180px;\n z-index: 10000;\n}\n\n.notectl-table-context-menu button {\n display: block;\n width: 100%;\n padding: 8px 12px;\n text-align: left;\n border: none;\n background: none;\n cursor: pointer;\n font-size: 14px;\n color: var(--notectl-fg);\n font-family: inherit;\n}\n\n.notectl-table-context-menu button:hover {\n background: var(--notectl-hover-bg);\n}\n\n.notectl-table-context-menu hr {\n border: none;\n border-top: 1px solid var(--notectl-border);\n margin: 4px 0;\n}\n\n/* === Table Controls === */\n\n/* Outer container for table + controls */\n.ntbl-container {\n position: relative;\n margin: 8px 0;\n padding: 24px 0 0 24px;\n}\n\n.ntbl-container .notectl-table-wrapper {\n margin: 0;\n}\n\n.ntbl-container.notectl-table--selected .notectl-table-wrapper {\n outline: 2px solid var(--notectl-primary-fg);\n outline-offset: 2px;\n border-radius: 6px;\n}\n\n/* --- Column Handle Bar --- */\n.ntbl-col-bar {\n position: absolute;\n top: 0;\n left: 24px;\n height: 20px;\n display: flex;\n opacity: 0;\n transition: opacity 0.2s ease;\n z-index: 3;\n pointer-events: none;\n}\n\n.ntbl-container:hover .ntbl-col-bar,\n.ntbl-container:focus-within .ntbl-col-bar {\n opacity: 1;\n pointer-events: auto;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-col-bar {\n opacity: 1;\n pointer-events: auto;\n}\n\n/* --- Row Handle Bar --- */\n.ntbl-row-bar {\n position: absolute;\n top: 24px;\n left: 0;\n width: 20px;\n display: flex;\n flex-direction: column;\n opacity: 0;\n transition: opacity 0.2s ease;\n z-index: 3;\n pointer-events: none;\n}\n\n.ntbl-container:hover .ntbl-row-bar,\n.ntbl-container:focus-within .ntbl-row-bar {\n opacity: 1;\n pointer-events: auto;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-row-bar {\n opacity: 1;\n pointer-events: auto;\n}\n\n/* --- Handle (shared base) --- */\n.ntbl-handle {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: background 0.15s ease;\n border-radius: 3px;\n}\n\n.ntbl-col-handle {\n height: 100%;\n background: var(--notectl-hover-bg);\n border-radius: 4px 4px 0 0;\n}\n\n.ntbl-col-handle:hover {\n background: var(--notectl-border);\n}\n\n.ntbl-row-handle {\n width: 100%;\n background: var(--notectl-hover-bg);\n border-radius: 4px 0 0 4px;\n}\n\n.ntbl-row-handle:hover {\n background: var(--notectl-border);\n}\n\n/* --- Handle Delete Button --- */\n.ntbl-handle-delete {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: none;\n background: transparent;\n color: var(--notectl-fg-muted);\n cursor: pointer;\n border-radius: 3px;\n padding: 0;\n opacity: 0;\n transform: scale(0.7);\n transition: opacity 0.15s, transform 0.15s,\n background 0.15s, color 0.15s;\n}\n\n.ntbl-handle:hover .ntbl-handle-delete,\n.ntbl-handle:focus-within .ntbl-handle-delete {\n opacity: 1;\n transform: scale(1);\n}\n\n.ntbl-handle-delete:hover,\n.ntbl-handle-delete:focus-visible {\n background: var(--notectl-danger-muted);\n color: var(--notectl-danger);\n}\n\n.ntbl-handle-delete:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Insert Lines --- */\n.ntbl-insert-line {\n position: absolute;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.15s ease;\n z-index: 6;\n}\n\n.ntbl-insert-line--visible {\n opacity: 1;\n pointer-events: auto;\n}\n\n.ntbl-insert-line--horizontal {\n height: 2px;\n background: linear-gradient(\n 90deg,\n transparent,\n var(--notectl-primary) 8%,\n var(--notectl-primary) 92%,\n transparent\n );\n box-shadow: 0 0 6px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-line--vertical {\n width: 2px;\n background: linear-gradient(\n 180deg,\n transparent,\n var(--notectl-primary) 8%,\n var(--notectl-primary) 92%,\n transparent\n );\n box-shadow: 0 0 6px var(--notectl-focus-ring);\n}\n\n/* --- Insert Button on Line --- */\n.ntbl-insert-btn {\n position: absolute;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background: var(--notectl-bg);\n border: 2px solid var(--notectl-primary);\n color: var(--notectl-primary);\n cursor: pointer;\n pointer-events: all;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n box-shadow: 0 2px 8px var(--notectl-focus-ring);\n transition: background 0.15s, color 0.15s,\n transform 0.15s, box-shadow 0.15s;\n}\n\n.ntbl-insert-line--horizontal .ntbl-insert-btn {\n left: 50%;\n top: -9px;\n transform: translateX(-50%);\n}\n\n.ntbl-insert-line--vertical .ntbl-insert-btn {\n top: 50%;\n left: -9px;\n transform: translateY(-50%);\n}\n\n.ntbl-insert-btn:hover,\n.ntbl-insert-btn:focus-visible {\n background: var(--notectl-primary);\n color: var(--notectl-bg);\n box-shadow: 0 2px 12px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-btn:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-line--horizontal .ntbl-insert-btn:hover {\n transform: translateX(-50%) scale(1.2);\n}\n\n.ntbl-insert-line--vertical .ntbl-insert-btn:hover {\n transform: translateY(-50%) scale(1.2);\n}\n\n/* --- Add Row / Add Column Zones --- */\n.ntbl-add-zone {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n user-select: none;\n opacity: 0;\n transition: opacity 0.2s ease, background 0.2s ease,\n border-color 0.2s ease;\n}\n\n.ntbl-container:hover .ntbl-add-zone,\n.ntbl-container:focus-within .ntbl-add-zone {\n opacity: 1;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-add-zone {\n opacity: 1;\n}\n\n.ntbl-delete-table-btn {\n position: absolute;\n top: 0;\n left: 0;\n width: 20px;\n height: 20px;\n border: 1px solid var(--notectl-danger);\n border-radius: 4px;\n background: var(--notectl-bg);\n color: var(--notectl-danger);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n z-index: 7;\n}\n\n.ntbl-container:hover .ntbl-delete-table-btn,\n.ntbl-container:focus-within .ntbl-delete-table-btn,\n.ntbl-container.notectl-table--selected .ntbl-delete-table-btn {\n opacity: 1;\n}\n\n.ntbl-delete-table-btn:hover,\n.ntbl-delete-table-btn:focus-visible {\n background: var(--notectl-danger-muted);\n border-color: var(--notectl-danger);\n}\n\n.ntbl-delete-table-btn:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Context Menu Discovery Hint --- */\n.ntbl-context-hint {\n position: absolute;\n top: 4px;\n right: 0;\n font-size: 11px;\n color: var(--notectl-fg-muted);\n padding: 2px 8px;\n border-radius: 4px;\n opacity: 0;\n transition: opacity 0.2s ease;\n pointer-events: none;\n white-space: nowrap;\n z-index: 5;\n}\n\n.ntbl-container:hover .ntbl-context-hint,\n.ntbl-container:focus-within .ntbl-context-hint,\n.ntbl-container.notectl-table--selected .ntbl-context-hint {\n opacity: 1;\n}\n\n/* --- Table Actions Button --- */\n.ntbl-actions-btn {\n position: absolute;\n top: 0;\n left: 48px;\n width: 20px;\n height: 20px;\n border: 1px solid var(--notectl-border);\n border-radius: 4px;\n background: var(--notectl-bg);\n color: var(--notectl-fg-muted);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n z-index: 7;\n cursor: pointer;\n padding: 0;\n}\n\n.ntbl-container:hover .ntbl-actions-btn,\n.ntbl-container:focus-within .ntbl-actions-btn,\n.ntbl-container.notectl-table--selected .ntbl-actions-btn {\n opacity: 1;\n}\n\n.ntbl-actions-btn:hover,\n.ntbl-actions-btn:focus-visible {\n background: var(--notectl-hover-bg);\n border-color: var(--notectl-primary);\n}\n\n.ntbl-actions-btn:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Border Color Button --- */\n.ntbl-border-color-btn {\n position: absolute;\n top: 0;\n left: 24px;\n width: 20px;\n height: 20px;\n border: 1px solid var(--notectl-border);\n border-radius: 4px;\n background: var(--notectl-bg);\n color: var(--notectl-fg-muted);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n z-index: 7;\n cursor: pointer;\n padding: 0;\n}\n\n.ntbl-container:hover .ntbl-border-color-btn,\n.ntbl-container:focus-within .ntbl-border-color-btn,\n.ntbl-container.notectl-table--selected .ntbl-border-color-btn {\n opacity: 1;\n}\n\n.ntbl-border-color-btn:hover,\n.ntbl-border-color-btn:focus-visible {\n background: var(--notectl-hover-bg);\n border-color: var(--notectl-primary);\n}\n\n.ntbl-border-color-btn:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-border-color-swatch {\n width: 10px;\n height: 10px;\n border-radius: 2px;\n border: 1px solid rgba(0, 0, 0, 0.15);\n}\n\n/* --- Context Menu Keyboard Hint --- */\n.notectl-table-context-menu__hint {\n padding: 4px 12px 6px;\n font-size: 11px;\n color: var(--notectl-fg-muted);\n border-top: 1px solid var(--notectl-border);\n margin-top: 4px;\n text-align: center;\n user-select: none;\n}\n\n/* --- Context Menu Focus --- */\n.notectl-table-context-menu button:focus-visible {\n outline: none;\n background: var(--notectl-primary-muted);\n box-shadow: inset 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.notectl-table-context-menu [role="separator"] {\n border: none;\n border-top: 1px solid var(--notectl-border);\n margin: 4px 0;\n height: 0;\n}\n\n.ntbl-add-row {\n bottom: 0;\n height: 24px;\n border: 1px dashed var(--notectl-border);\n border-radius: 0 0 6px 6px;\n border-top: none;\n color: var(--notectl-fg-muted);\n transform: translateY(100%);\n}\n\n.ntbl-add-row:hover,\n.ntbl-add-row:focus-visible {\n background: var(--notectl-primary-muted);\n border-color: var(--notectl-primary);\n color: var(--notectl-primary);\n}\n\n.ntbl-add-row:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-add-col {\n right: 0;\n top: 24px;\n width: 24px;\n border: 1px dashed var(--notectl-border);\n border-radius: 0 6px 6px 0;\n border-left: none;\n color: var(--notectl-fg-muted);\n transform: translateX(100%);\n}\n\n.ntbl-add-col:hover,\n.ntbl-add-col:focus-visible {\n background: var(--notectl-primary-muted);\n border-color: var(--notectl-primary);\n color: var(--notectl-primary);\n}\n\n.ntbl-add-col:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-add-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.2s ease;\n}\n\n.ntbl-add-zone:hover .ntbl-add-icon {\n transform: scale(1.15);\n}\n'), this.context = t2, this.registerNodeSpecs(t2), this.registerNodeViews(t2), G(t2, this.locale), t2.registerCommand("resetTableBorderColor", () => j(t2, this.locale)), (function(t3, e2) {
|
|
684
|
-
const n2 = { Tab: () => (function(t4, e3) {
|
|
685
|
-
return Q(t4, (n3, o2, r2) => r2.colIndex < r2.totalCols - 1 ? nt(t4, r2.tableId, r2.rowIndex, r2.colIndex + 1) : r2.rowIndex < r2.totalRows - 1 ? nt(t4, r2.tableId, r2.rowIndex + 1, 0) : (W(t4, e3), true));
|
|
686
|
-
})(t3, e2), "Shift-Tab": () => (function(t4) {
|
|
687
|
-
return Q(t4, (e3, n3, o2) => o2.colIndex > 0 ? nt(t4, o2.tableId, o2.rowIndex, o2.colIndex - 1) : !(o2.rowIndex > 0) || nt(t4, o2.tableId, o2.rowIndex - 1, o2.totalCols - 1));
|
|
688
|
-
})(t3), Enter: () => (function(t4) {
|
|
689
|
-
const e3 = t4.getState();
|
|
690
|
-
if (o(e3.selection) || r(e3.selection)) return false;
|
|
691
|
-
const n3 = e3.getBlock(e3.selection.anchor.blockId);
|
|
692
|
-
if (n3 && "paragraph" !== n3.type) return false;
|
|
693
|
-
const l2 = R(e3, e3.selection.anchor.blockId);
|
|
694
|
-
return !!l2 && (!(l2.rowIndex < l2.totalRows - 1) || nt(t4, l2.tableId, l2.rowIndex + 1, l2.colIndex));
|
|
695
|
-
})(t3), Backspace: () => (function(t4) {
|
|
696
|
-
return Q(t4, (e3, n3, o2) => {
|
|
697
|
-
if (!a(n3)) return false;
|
|
698
|
-
if (0 !== n3.anchor.offset) return false;
|
|
699
|
-
if (0 !== o2.rowIndex || 0 !== o2.colIndex) return false;
|
|
700
|
-
const r2 = k(e3, o2.cellId);
|
|
701
|
-
return n3.anchor.blockId === r2 && rt(t4, o2.tableId);
|
|
702
|
-
});
|
|
703
|
-
})(t3), Delete: () => (function(t4) {
|
|
704
|
-
return Q(t4, (e3, n3, o2) => {
|
|
705
|
-
if (!a(n3)) return false;
|
|
706
|
-
const r2 = e3.getBlock(n3.anchor.blockId);
|
|
707
|
-
if (!r2) return false;
|
|
708
|
-
const l2 = f(r2);
|
|
709
|
-
if (n3.anchor.offset !== l2) return false;
|
|
710
|
-
if (o2.rowIndex !== o2.totalRows - 1 || o2.colIndex !== o2.totalCols - 1) return false;
|
|
711
|
-
const i2 = S(e3, o2.cellId);
|
|
712
|
-
return n3.anchor.blockId === i2 && rt(t4, o2.tableId);
|
|
713
|
-
});
|
|
714
|
-
})(t3), ArrowDown: () => (function(t4) {
|
|
715
|
-
return Q(t4, (e3, n3, o2) => {
|
|
716
|
-
const r2 = S(e3, o2.cellId);
|
|
717
|
-
return n3.anchor.blockId === r2 && (o2.rowIndex >= o2.totalRows - 1 ? tt(t4) : nt(t4, o2.tableId, o2.rowIndex + 1, o2.colIndex));
|
|
718
|
-
});
|
|
719
|
-
})(t3), ArrowUp: () => (function(t4) {
|
|
720
|
-
return Q(t4, (e3, n3, o2) => {
|
|
721
|
-
const r2 = k(e3, o2.cellId);
|
|
722
|
-
return n3.anchor.blockId === r2 && !(o2.rowIndex <= 0) && nt(t4, o2.tableId, o2.rowIndex - 1, o2.colIndex);
|
|
723
|
-
});
|
|
724
|
-
})(t3), ArrowRight: () => (function(t4) {
|
|
725
|
-
return Q(t4, (e3, n3, o2) => {
|
|
726
|
-
if (!a(n3)) return false;
|
|
727
|
-
const r2 = e3.getBlock(n3.anchor.blockId);
|
|
728
|
-
if (!r2) return false;
|
|
729
|
-
const l2 = f(r2);
|
|
730
|
-
if (n3.anchor.offset !== l2) return false;
|
|
731
|
-
const i2 = S(e3, o2.cellId);
|
|
732
|
-
return n3.anchor.blockId === i2 && (o2.colIndex < o2.totalCols - 1 ? nt(t4, o2.tableId, o2.rowIndex, o2.colIndex + 1) : !(o2.rowIndex < o2.totalRows - 1) || nt(t4, o2.tableId, o2.rowIndex + 1, 0));
|
|
733
|
-
});
|
|
734
|
-
})(t3), ArrowLeft: () => (function(t4) {
|
|
735
|
-
return Q(t4, (e3, n3, o2) => {
|
|
736
|
-
if (!a(n3)) return false;
|
|
737
|
-
if (0 !== n3.anchor.offset) return false;
|
|
738
|
-
const r2 = k(e3, o2.cellId);
|
|
739
|
-
return n3.anchor.blockId === r2 && (o2.colIndex > 0 ? ot(t4, o2.tableId, o2.rowIndex, o2.colIndex - 1) : !(o2.rowIndex > 0) || ot(t4, o2.tableId, o2.rowIndex - 1, o2.totalCols - 1));
|
|
740
|
-
});
|
|
741
|
-
})(t3), Escape: () => tt(t3), "Shift-F10": () => (function(t4) {
|
|
742
|
-
return Q(t4, (e3, n3, o2) => {
|
|
743
|
-
const r2 = t4.getContainer(), l2 = r2.querySelector(`[data-block-id="${o2.cellId}"]`);
|
|
744
|
-
if (!l2) return false;
|
|
745
|
-
const i2 = l2.getBoundingClientRect(), a2 = new DOMRect(i2.left + i2.width / 2, i2.bottom, 0, 0), s2 = r2.querySelector(`[data-block-id="${o2.tableId}"].ntbl-container`) ?? r2;
|
|
746
|
-
return et?.close(), et = J(s2, t4, o2.tableId, a2, () => {
|
|
747
|
-
et = null;
|
|
748
|
-
}), true;
|
|
749
|
-
});
|
|
750
|
-
})(t3) };
|
|
751
|
-
t3.registerKeymap(n2, { priority: "context" });
|
|
752
|
-
})(t2, this.locale), this.registerToolbarItem(t2), this.selectionService = (function(t3) {
|
|
753
|
-
let e2 = null, n2 = [], o2 = /* @__PURE__ */ new Set();
|
|
754
|
-
const r2 = { getSelectedRange: () => e2, setSelectedRange(r3) {
|
|
755
|
-
e2 = r3, (function() {
|
|
756
|
-
if (!e2) return n2 = [], void (o2 = /* @__PURE__ */ new Set());
|
|
757
|
-
const r4 = t3.getState(), l2 = [], i2 = Math.min(e2.fromRow, e2.toRow), a2 = Math.max(e2.fromRow, e2.toRow), s2 = Math.min(e2.fromCol, e2.toCol), c2 = Math.max(e2.fromCol, e2.toCol);
|
|
758
|
-
for (let t4 = i2; t4 <= a2; t4++) for (let n3 = s2; n3 <= c2; n3++) {
|
|
759
|
-
const o3 = y(r4, e2.tableId, t4, n3);
|
|
760
|
-
o3 && l2.push(o3);
|
|
761
|
-
}
|
|
762
|
-
n2 = l2, o2 = new Set(l2);
|
|
763
|
-
})(), (function(t4, e3) {
|
|
764
|
-
const n3 = t4.getContainer().querySelectorAll("td[data-block-id]");
|
|
765
|
-
for (const t5 of n3) {
|
|
766
|
-
const n4 = t5.getAttribute("data-block-id");
|
|
767
|
-
e3.has(n4) ? t5.classList.add("notectl-table-cell--selected") : t5.classList.remove("notectl-table-cell--selected");
|
|
768
|
-
}
|
|
769
|
-
})(t3, o2);
|
|
770
|
-
}, getSelectedCellIds: () => n2, isSelected: (t4) => o2.has(t4) };
|
|
771
|
-
return t3.registerService(ft, r2), r2;
|
|
772
|
-
})(t2);
|
|
773
|
-
}
|
|
774
|
-
onReady() {
|
|
775
|
-
this.context && this.selectionService && (this.cleanupMouseSelection = (function(t2, e2) {
|
|
776
|
-
const n2 = t2.getContainer();
|
|
777
|
-
let o2 = null, r2 = false;
|
|
778
|
-
function l2(n3) {
|
|
779
|
-
const l3 = n3.target.closest("td[data-block-id]");
|
|
780
|
-
if (l3) if (n3.shiftKey) {
|
|
781
|
-
if (o2) {
|
|
782
|
-
const r3 = R(t2.getState(), l3.getAttribute("data-block-id"));
|
|
783
|
-
if (!r3 || r3.tableId !== o2.tableId) return;
|
|
784
|
-
n3.preventDefault(), e2.setSelectedRange({ tableId: o2.tableId, fromRow: o2.row, fromCol: o2.col, toRow: r3.rowIndex, toCol: r3.colIndex });
|
|
785
|
-
}
|
|
786
|
-
} else {
|
|
787
|
-
e2.setSelectedRange(null);
|
|
788
|
-
const n4 = R(t2.getState(), l3.getAttribute("data-block-id"));
|
|
789
|
-
if (!n4) return;
|
|
790
|
-
o2 = { tableId: n4.tableId, row: n4.rowIndex, col: n4.colIndex }, r2 = true;
|
|
791
|
-
}
|
|
792
|
-
else e2.setSelectedRange(null);
|
|
793
|
-
}
|
|
794
|
-
function i2(n3) {
|
|
795
|
-
if (!r2 || !o2) return;
|
|
796
|
-
const l3 = n3.target.closest("td[data-block-id]");
|
|
797
|
-
if (!l3) return;
|
|
798
|
-
const i3 = R(t2.getState(), l3.getAttribute("data-block-id"));
|
|
799
|
-
i3 && i3.tableId === o2.tableId && (i3.rowIndex === o2.row && i3.colIndex === o2.col || (n3.preventDefault(), e2.setSelectedRange({ tableId: o2.tableId, fromRow: o2.row, fromCol: o2.col, toRow: i3.rowIndex, toCol: i3.colIndex })));
|
|
800
|
-
}
|
|
801
|
-
function a2() {
|
|
802
|
-
r2 = false;
|
|
803
|
-
}
|
|
804
|
-
return n2.addEventListener("mousedown", l2), n2.addEventListener("mousemove", i2), document.addEventListener("mouseup", a2), () => {
|
|
805
|
-
n2.removeEventListener("mousedown", l2), n2.removeEventListener("mousemove", i2), document.removeEventListener("mouseup", a2);
|
|
806
|
-
};
|
|
807
|
-
})(this.context, this.selectionService));
|
|
808
|
-
}
|
|
809
|
-
destroy() {
|
|
810
|
-
this.cleanupMouseSelection?.(), this.cleanupMouseSelection = null, this.selectionService = null, this.context = null;
|
|
811
|
-
}
|
|
812
|
-
onStateChange(t2, e2, n2) {
|
|
813
|
-
if (this.selectionService?.getSelectedRange()) {
|
|
814
|
-
const t3 = e2.selection;
|
|
815
|
-
(o(t3) || r(t3) || !A(e2, t3.anchor.blockId)) && this.selectionService.setSelectedRange(null);
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
registerNodeSpecs(t2) {
|
|
819
|
-
t2.registerNodeSpec({ type: "table", group: "block", content: { allow: ["table_row"], min: 1 }, isolating: true, selectable: true, toDOM(t3) {
|
|
820
|
-
const e2 = document.createElement("div");
|
|
821
|
-
return e2.className = "notectl-table-wrapper", e2.setAttribute("data-block-id", t3.id), e2;
|
|
822
|
-
}, toHTML(t3, e2, o2) {
|
|
823
|
-
const r2 = t3.attrs?.borderColor, l2 = (function(t4) {
|
|
824
|
-
return t4 ? "none" === t4 ? `${gt}; --ntbl-bc: transparent` : s(t4) ? `${gt}; --ntbl-bc: ${n(t4)}` : gt : gt;
|
|
825
|
-
})(r2);
|
|
826
|
-
return `<table${o2?.styleAttr(l2) ?? ` style="${l2}"`}>${e2}</table>`;
|
|
827
|
-
}, sanitize: { tags: ["table", "tbody"] } }), t2.registerNodeSpec({ type: "table_row", group: "table_content", content: { allow: ["table_cell"], min: 1 }, toDOM(t3) {
|
|
828
|
-
const e2 = document.createElement("tr");
|
|
829
|
-
return e2.setAttribute("data-block-id", t3.id), e2.setAttribute("role", "row"), e2;
|
|
830
|
-
}, toHTML: (t3, e2) => `<tr>${e2}</tr>`, sanitize: { tags: ["tr"] } }), t2.registerNodeSpec({ type: "table_cell", group: "table_content", content: { allow: ["paragraph", "list_item", "heading", "blockquote", "image", "horizontal_rule"] }, isolating: true, toDOM(t3) {
|
|
831
|
-
const e2 = document.createElement("td");
|
|
832
|
-
return e2.setAttribute("data-block-id", t3.id), e2.setAttribute("role", "cell"), e2;
|
|
833
|
-
}, toHTML(t3, e2, n2) {
|
|
834
|
-
const o2 = t3.attrs?.colspan ?? 1, r2 = t3.attrs?.rowspan ?? 1, l2 = [n2?.styleAttr(wt) ?? ` style="${wt}"`];
|
|
835
|
-
return o2 > 1 && l2.push(` colspan="${o2}"`), r2 > 1 && l2.push(` rowspan="${r2}"`), `<td${l2.join("")}>${e2}</td>`;
|
|
836
|
-
}, sanitize: { tags: ["td"], attrs: ["colspan", "rowspan"] } });
|
|
837
|
-
}
|
|
838
|
-
registerNodeViews(t2) {
|
|
839
|
-
t2.getSchemaRegistry(), t2.registerNodeView("table", /* @__PURE__ */ (function(t3, e2, n2 = B) {
|
|
840
|
-
return (t4, o2, r2) => {
|
|
841
|
-
const l2 = document.createElement("div");
|
|
842
|
-
l2.className = "ntbl-container", l2.setAttribute("data-block-id", t4.id), l2.setAttribute("data-selectable", "true");
|
|
843
|
-
const i2 = document.createElement("div");
|
|
844
|
-
i2.className = "notectl-table-wrapper";
|
|
845
|
-
const a2 = document.createElement("table");
|
|
846
|
-
a2.className = "notectl-table", a2.setAttribute("role", "table");
|
|
847
|
-
const s2 = u(t4), c2 = s2.length, d2 = s2[0] ? u(s2[0]).length : 0;
|
|
848
|
-
a2.setAttribute("aria-label", n2.tableAriaLabel(c2, d2)), a2.setAttribute("aria-description", n2.tableAriaDescription);
|
|
849
|
-
const b2 = document.createElement("tbody");
|
|
850
|
-
a2.appendChild(b2), i2.appendChild(a2), l2.appendChild(i2), pt(a2, t4.attrs?.borderColor);
|
|
851
|
-
const h2 = document.createElement("div");
|
|
852
|
-
h2.className = "notectl-sr-only", h2.setAttribute("aria-live", "polite"), h2.setAttribute("aria-atomic", "true"), l2.appendChild(h2);
|
|
853
|
-
const p2 = (function(t5, e3, n3, o3, r3, l3, i3) {
|
|
854
|
-
return new ht(t5, e3, n3, o3, r3, l3, i3);
|
|
855
|
-
})(l2, a2, t4, o2, r2, e2, n2);
|
|
856
|
-
let f2 = null, m2 = t4.id;
|
|
857
|
-
const g2 = (t5) => {
|
|
858
|
-
if (!e2) return;
|
|
859
|
-
t5.preventDefault(), t5.stopPropagation(), f2?.close();
|
|
860
|
-
const o3 = new DOMRect(t5.clientX, t5.clientY, 0, 0);
|
|
861
|
-
f2 = J(l2, e2, m2, o3, () => {
|
|
862
|
-
f2 = null;
|
|
863
|
-
}, n2);
|
|
864
|
-
};
|
|
865
|
-
return a2.addEventListener("contextmenu", g2), { dom: l2, contentDOM: b2, update(t5) {
|
|
866
|
-
if ("table" !== t5.type) return false;
|
|
867
|
-
m2 = t5.id, l2.setAttribute("data-block-id", t5.id), l2.setAttribute("data-selectable", "true");
|
|
868
|
-
const e3 = u(t5), o3 = e3.length, r3 = e3[0] ? u(e3[0]).length : 0;
|
|
869
|
-
return a2.setAttribute("aria-label", n2.tableAriaLabel(o3, r3)), pt(a2, t5.attrs?.borderColor), p2.update(t5), false;
|
|
870
|
-
}, destroy() {
|
|
871
|
-
f2?.destroy(), a2.removeEventListener("contextmenu", g2), p2.destroy();
|
|
872
|
-
}, selectNode() {
|
|
873
|
-
l2.classList.add("notectl-table--selected");
|
|
874
|
-
}, deselectNode() {
|
|
875
|
-
l2.classList.remove("notectl-table--selected");
|
|
876
|
-
} };
|
|
877
|
-
};
|
|
878
|
-
})(0, t2, this.locale)), t2.registerNodeView("table_row", (t3, e2, n2) => {
|
|
879
|
-
const o2 = document.createElement("tr");
|
|
880
|
-
return o2.setAttribute("data-block-id", t3.id), o2.setAttribute("role", "row"), { dom: o2, contentDOM: o2, update: (t4) => ("table_row" !== t4.type || o2.setAttribute("data-block-id", t4.id), false), destroy() {
|
|
881
|
-
} };
|
|
882
|
-
}), t2.registerNodeView("table_cell", (t3, e2, n2) => {
|
|
883
|
-
const o2 = document.createElement("td");
|
|
884
|
-
o2.setAttribute("data-block-id", t3.id), o2.setAttribute("role", "cell");
|
|
885
|
-
const r2 = t3.attrs?.colspan ?? 1, l2 = t3.attrs?.rowspan ?? 1;
|
|
886
|
-
r2 > 1 && (o2.colSpan = r2), l2 > 1 && (o2.rowSpan = l2);
|
|
887
|
-
const i2 = t3.attrs?.align;
|
|
888
|
-
return i2 && "left" !== i2 && g(o2, "textAlign", i2), { dom: o2, contentDOM: o2, update(t4) {
|
|
889
|
-
if ("table_cell" !== t4.type) return false;
|
|
890
|
-
o2.setAttribute("data-block-id", t4.id);
|
|
891
|
-
const e3 = t4.attrs?.colspan ?? 1, n3 = t4.attrs?.rowspan ?? 1;
|
|
892
|
-
return e3 > 1 ? o2.colSpan = e3 : o2.removeAttribute("colspan"), n3 > 1 ? o2.rowSpan = n3 : o2.removeAttribute("rowspan"), false;
|
|
893
|
-
}, destroy() {
|
|
894
|
-
} };
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
registerToolbarItem(t2) {
|
|
898
|
-
const e2 = this.config.maxPickerRows ?? 8, n2 = this.config.maxPickerCols ?? 8;
|
|
899
|
-
t2.registerToolbarItem({ id: "table", group: "insert", icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 3h18v18H3V3zm2 2v4h6V5H5zm8 0v4h6V5h-6zm-8 6v4h6v-4H5zm8 0v4h6v-4h-6zm-8 6v4h6v-4H5zm8 0v4h6v-4h-6z"/></svg>', label: this.locale.insertTable, tooltip: this.locale.insertTable, command: "insertTable", priority: 80, separatorAfter: this.config.separatorAfter, popupType: "gridPicker", popupConfig: { maxRows: e2, maxCols: n2, onSelect: (e3, n3) => {
|
|
900
|
-
U(t2, e3, n3);
|
|
901
|
-
} }, isActive: (t3) => !o(t3.selection) && !r(t3.selection) && A(t3, t3.selection.anchor.blockId) });
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
export {
|
|
905
|
-
P as B,
|
|
906
|
-
vt as T,
|
|
907
|
-
N as a,
|
|
908
|
-
H as b,
|
|
909
|
-
L as c,
|
|
910
|
-
B as d,
|
|
911
|
-
T as e,
|
|
912
|
-
E as f,
|
|
913
|
-
$ as g,
|
|
914
|
-
M as h,
|
|
915
|
-
D as i,
|
|
916
|
-
ft as j,
|
|
917
|
-
R as k,
|
|
918
|
-
A as l,
|
|
919
|
-
J as m,
|
|
920
|
-
_ as n,
|
|
921
|
-
j as r,
|
|
922
|
-
F as s
|
|
923
|
-
};
|
|
924
|
-
//# sourceMappingURL=index-DtRfqsq5.mjs.map
|