@ecomcx/ecomweb-editor 1.23.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/package.json +5 -36
- package/src/index.ts +1 -32
- package/src/locales/en/v2.ts +7 -1
- package/src/locales/vi/v2.ts +7 -1
- package/src/shared/block-defs.ts +5 -4
- package/src/shared/panel-store.ts +3 -3
- package/src/shared/types.ts +0 -21
- package/src/v2/blocks/compat.tsx +3 -0
- package/src/v2/blocks/layout.tsx +35 -30
- package/src/v2/blocks/media.tsx +9 -7
- package/src/v2/blocks/text.tsx +21 -7
- package/src/v2/blocks/theme.tsx +51 -9
- package/src/v2/canvas/block-list.tsx +9 -3
- package/src/v2/canvas/canvas-css.ts +20 -3
- package/src/v2/canvas/canvas.tsx +21 -4
- package/src/v2/canvas/document-attrs.ts +41 -0
- package/src/v2/canvas/server-block.tsx +51 -0
- package/src/v2/canvas/server-html.ts +28 -0
- package/src/v2/canvas/wrapper-props.ts +42 -0
- package/src/v2/core/host.ts +19 -1
- package/src/v2/core/registry.ts +9 -1
- package/src/v2/editor.tsx +15 -5
- package/src/v2/index.ts +8 -0
- package/src/v2/text/rich-schema.ts +2 -1
- package/src/v2/ui/inserter.tsx +3 -3
- package/node_modules/@floating-ui/core/LICENSE +0 -20
- package/node_modules/@floating-ui/core/README.md +0 -4
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +0 -1
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +0 -1164
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +0 -535
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +0 -535
- package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +0 -1038
- package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -1038
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +0 -1183
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +0 -1
- package/node_modules/@floating-ui/core/package.json +0 -63
- package/node_modules/@floating-ui/dom/LICENSE +0 -20
- package/node_modules/@floating-ui/dom/README.md +0 -4
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +0 -1
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +0 -964
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +0 -362
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +0 -362
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +0 -789
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -789
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +0 -983
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +0 -1
- package/node_modules/@floating-ui/dom/package.json +0 -72
- package/node_modules/@floating-ui/utils/LICENSE +0 -20
- package/node_modules/@floating-ui/utils/README.md +0 -4
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +0 -105
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +0 -105
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +0 -47
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +0 -47
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +0 -165
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -165
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +0 -192
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +0 -1
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +0 -136
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -136
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +0 -167
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +0 -1
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +0 -47
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +0 -165
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +0 -192
- package/node_modules/@floating-ui/utils/dom/package.json +0 -6
- package/node_modules/@floating-ui/utils/package.json +0 -70
- package/node_modules/@tiptap/core/LICENSE.md +0 -21
- package/node_modules/@tiptap/core/README.md +0 -18
- package/node_modules/@tiptap/core/dist/index.cjs +0 -8463
- package/node_modules/@tiptap/core/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/core/dist/index.d.cts +0 -5798
- package/node_modules/@tiptap/core/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/core/dist/index.d.ts +0 -5797
- package/node_modules/@tiptap/core/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/core/dist/index.js +0 -8288
- package/node_modules/@tiptap/core/dist/index.js.map +0 -1
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +0 -70
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs.map +0 -1
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.cts +0 -28
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.cts.map +0 -1
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.ts +0 -28
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.ts.map +0 -1
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -64
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +0 -1
- package/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +0 -13
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.cjs +0 -1
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.cts +0 -1
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.ts +0 -1
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.js +0 -1
- package/node_modules/@tiptap/core/jsx-runtime/index.cjs +0 -1
- package/node_modules/@tiptap/core/jsx-runtime/index.d.cts +0 -1
- package/node_modules/@tiptap/core/jsx-runtime/index.d.ts +0 -1
- package/node_modules/@tiptap/core/jsx-runtime/index.js +0 -1
- package/node_modules/@tiptap/core/package.json +0 -74
- package/node_modules/@tiptap/core/src/CommandManager.test.ts +0 -220
- package/node_modules/@tiptap/core/src/CommandManager.ts +0 -208
- package/node_modules/@tiptap/core/src/Editor.test.ts +0 -756
- package/node_modules/@tiptap/core/src/Editor.ts +0 -908
- package/node_modules/@tiptap/core/src/EventEmitter.ts +0 -71
- package/node_modules/@tiptap/core/src/Extendable.test.ts +0 -764
- package/node_modules/@tiptap/core/src/Extendable.ts +0 -668
- package/node_modules/@tiptap/core/src/Extension.ts +0 -59
- package/node_modules/@tiptap/core/src/ExtensionManager.test.ts +0 -852
- package/node_modules/@tiptap/core/src/ExtensionManager.ts +0 -589
- package/node_modules/@tiptap/core/src/InputRule.test.ts +0 -113
- package/node_modules/@tiptap/core/src/InputRule.ts +0 -373
- package/node_modules/@tiptap/core/src/Mark.ts +0 -231
- package/node_modules/@tiptap/core/src/MarkView.test.ts +0 -53
- package/node_modules/@tiptap/core/src/MarkView.ts +0 -132
- package/node_modules/@tiptap/core/src/Node.ts +0 -390
- package/node_modules/@tiptap/core/src/NodePos.test.ts +0 -722
- package/node_modules/@tiptap/core/src/NodePos.ts +0 -270
- package/node_modules/@tiptap/core/src/NodeView.test.ts +0 -157
- package/node_modules/@tiptap/core/src/NodeView.ts +0 -367
- package/node_modules/@tiptap/core/src/PasteRule.ts +0 -396
- package/node_modules/@tiptap/core/src/Tracker.ts +0 -38
- package/node_modules/@tiptap/core/src/commands/blur.ts +0 -29
- package/node_modules/@tiptap/core/src/commands/canJoinItemsAt.ts +0 -13
- package/node_modules/@tiptap/core/src/commands/clearContent.ts +0 -25
- package/node_modules/@tiptap/core/src/commands/clearNodes.ts +0 -57
- package/node_modules/@tiptap/core/src/commands/command.ts +0 -22
- package/node_modules/@tiptap/core/src/commands/createParagraphNear.ts +0 -21
- package/node_modules/@tiptap/core/src/commands/cut.test.ts +0 -38
- package/node_modules/@tiptap/core/src/commands/cut.ts +0 -36
- package/node_modules/@tiptap/core/src/commands/deleteCurrentNode.ts +0 -44
- package/node_modules/@tiptap/core/src/commands/deleteNode.ts +0 -41
- package/node_modules/@tiptap/core/src/commands/deleteRange.ts +0 -26
- package/node_modules/@tiptap/core/src/commands/deleteSelection.test.ts +0 -125
- package/node_modules/@tiptap/core/src/commands/deleteSelection.ts +0 -109
- package/node_modules/@tiptap/core/src/commands/enter.ts +0 -19
- package/node_modules/@tiptap/core/src/commands/exitCode.ts +0 -21
- package/node_modules/@tiptap/core/src/commands/extendMarkRange.test.ts +0 -455
- package/node_modules/@tiptap/core/src/commands/extendMarkRange.ts +0 -52
- package/node_modules/@tiptap/core/src/commands/first.ts +0 -26
- package/node_modules/@tiptap/core/src/commands/focus.ts +0 -108
- package/node_modules/@tiptap/core/src/commands/forEach.ts +0 -24
- package/node_modules/@tiptap/core/src/commands/index.ts +0 -59
- package/node_modules/@tiptap/core/src/commands/insertContent.test.ts +0 -197
- package/node_modules/@tiptap/core/src/commands/insertContent.ts +0 -50
- package/node_modules/@tiptap/core/src/commands/insertContentAt.test.ts +0 -133
- package/node_modules/@tiptap/core/src/commands/insertContentAt.ts +0 -208
- package/node_modules/@tiptap/core/src/commands/insertDefaultBlock.test.ts +0 -178
- package/node_modules/@tiptap/core/src/commands/insertDefaultBlock.ts +0 -97
- package/node_modules/@tiptap/core/src/commands/join.ts +0 -69
- package/node_modules/@tiptap/core/src/commands/joinItemBackward.ts +0 -42
- package/node_modules/@tiptap/core/src/commands/joinItemForward.test.ts +0 -138
- package/node_modules/@tiptap/core/src/commands/joinItemForward.ts +0 -42
- package/node_modules/@tiptap/core/src/commands/joinTextblockBackward.ts +0 -20
- package/node_modules/@tiptap/core/src/commands/joinTextblockForward.ts +0 -20
- package/node_modules/@tiptap/core/src/commands/keyboardShortcut.ts +0 -100
- package/node_modules/@tiptap/core/src/commands/lift.ts +0 -34
- package/node_modules/@tiptap/core/src/commands/liftEmptyBlock.ts +0 -21
- package/node_modules/@tiptap/core/src/commands/liftListItem.ts +0 -26
- package/node_modules/@tiptap/core/src/commands/newlineInCode.ts +0 -21
- package/node_modules/@tiptap/core/src/commands/resetAttributes.ts +0 -80
- package/node_modules/@tiptap/core/src/commands/scrollIntoView.ts +0 -23
- package/node_modules/@tiptap/core/src/commands/selectAll.ts +0 -27
- package/node_modules/@tiptap/core/src/commands/selectNodeBackward.ts +0 -21
- package/node_modules/@tiptap/core/src/commands/selectNodeForward.ts +0 -21
- package/node_modules/@tiptap/core/src/commands/selectParentNode.ts +0 -21
- package/node_modules/@tiptap/core/src/commands/selectTextblockEnd.ts +0 -23
- package/node_modules/@tiptap/core/src/commands/selectTextblockStart.ts +0 -23
- package/node_modules/@tiptap/core/src/commands/setContent.test.ts +0 -177
- package/node_modules/@tiptap/core/src/commands/setContent.ts +0 -79
- package/node_modules/@tiptap/core/src/commands/setMark.ts +0 -122
- package/node_modules/@tiptap/core/src/commands/setMeta.ts +0 -25
- package/node_modules/@tiptap/core/src/commands/setNode.ts +0 -57
- package/node_modules/@tiptap/core/src/commands/setNodeSelection.ts +0 -31
- package/node_modules/@tiptap/core/src/commands/setTextDirection.ts +0 -51
- package/node_modules/@tiptap/core/src/commands/setTextSelection.ts +0 -36
- package/node_modules/@tiptap/core/src/commands/sinkListItem.ts +0 -26
- package/node_modules/@tiptap/core/src/commands/splitBlock.test.ts +0 -107
- package/node_modules/@tiptap/core/src/commands/splitBlock.ts +0 -136
- package/node_modules/@tiptap/core/src/commands/splitListItem.ts +0 -166
- package/node_modules/@tiptap/core/src/commands/toggleList.ts +0 -308
- package/node_modules/@tiptap/core/src/commands/toggleMark.ts +0 -51
- package/node_modules/@tiptap/core/src/commands/toggleNode.ts +0 -47
- package/node_modules/@tiptap/core/src/commands/toggleWrap.ts +0 -32
- package/node_modules/@tiptap/core/src/commands/undoInputRule.ts +0 -49
- package/node_modules/@tiptap/core/src/commands/unsetAllMarks.test.ts +0 -109
- package/node_modules/@tiptap/core/src/commands/unsetAllMarks.ts +0 -44
- package/node_modules/@tiptap/core/src/commands/unsetMark.ts +0 -65
- package/node_modules/@tiptap/core/src/commands/unsetTextDirection.ts +0 -51
- package/node_modules/@tiptap/core/src/commands/updateAttributes.ts +0 -150
- package/node_modules/@tiptap/core/src/commands/updateDecorations.ts +0 -28
- package/node_modules/@tiptap/core/src/commands/utils/appendContentNode.ts +0 -25
- package/node_modules/@tiptap/core/src/commands/utils/appendNestedList.test.ts +0 -35
- package/node_modules/@tiptap/core/src/commands/utils/appendNestedList.ts +0 -43
- package/node_modules/@tiptap/core/src/commands/utils/convertListItem.ts +0 -32
- package/node_modules/@tiptap/core/src/commands/utils/convertListItems.ts +0 -24
- package/node_modules/@tiptap/core/src/commands/utils/createNode.ts +0 -18
- package/node_modules/@tiptap/core/src/commands/utils/findNodePosition.ts +0 -18
- package/node_modules/@tiptap/core/src/commands/utils/flushPendingContent.ts +0 -23
- package/node_modules/@tiptap/core/src/commands/utils/listConversionTypes.ts +0 -17
- package/node_modules/@tiptap/core/src/commands/wrapIn.ts +0 -27
- package/node_modules/@tiptap/core/src/commands/wrapInList.ts +0 -27
- package/node_modules/@tiptap/core/src/decorations/Decoration.test.ts +0 -40
- package/node_modules/@tiptap/core/src/decorations/Decoration.ts +0 -177
- package/node_modules/@tiptap/core/src/decorations/DecorationManager.test.ts +0 -821
- package/node_modules/@tiptap/core/src/decorations/DecorationManager.ts +0 -440
- package/node_modules/@tiptap/core/src/decorations/constants.ts +0 -7
- package/node_modules/@tiptap/core/src/decorations/createWidgetDecoration.test.ts +0 -224
- package/node_modules/@tiptap/core/src/decorations/createWidgetDecoration.ts +0 -221
- package/node_modules/@tiptap/core/src/decorations/decorationApplyScope.test.ts +0 -50
- package/node_modules/@tiptap/core/src/decorations/decorationApplyScope.ts +0 -45
- package/node_modules/@tiptap/core/src/decorations/helpers/buildDecorationSet.ts +0 -25
- package/node_modules/@tiptap/core/src/decorations/helpers/decorationsToPMDecorations.ts +0 -36
- package/node_modules/@tiptap/core/src/decorations/helpers/filterOutOfRangeDecorations.ts +0 -52
- package/node_modules/@tiptap/core/src/decorations/helpers/findDuplicateWidgetKeys.ts +0 -37
- package/node_modules/@tiptap/core/src/decorations/helpers/getRebuildRanges.test.ts +0 -147
- package/node_modules/@tiptap/core/src/decorations/helpers/getRebuildRanges.ts +0 -96
- package/node_modules/@tiptap/core/src/decorations/helpers/hasResolvableChangedRange.ts +0 -24
- package/node_modules/@tiptap/core/src/decorations/helpers/isAttrStep.ts +0 -21
- package/node_modules/@tiptap/core/src/decorations/helpers/mapDecorationSet.ts +0 -31
- package/node_modules/@tiptap/core/src/decorations/helpers/mapDecorations.ts +0 -26
- package/node_modules/@tiptap/core/src/decorations/helpers/mergeDecorationSets.ts +0 -16
- package/node_modules/@tiptap/core/src/decorations/helpers/rangeOwnsPosition.ts +0 -38
- package/node_modules/@tiptap/core/src/decorations/helpers/shouldRecomputeDecoration.ts +0 -24
- package/node_modules/@tiptap/core/src/decorations/helpers/unionWidgetKeys.ts +0 -15
- package/node_modules/@tiptap/core/src/decorations/helpers/validateDecorationSpec.ts +0 -49
- package/node_modules/@tiptap/core/src/decorations/helpers/widgetKeyOf.ts +0 -11
- package/node_modules/@tiptap/core/src/decorations/index.ts +0 -28
- package/node_modules/@tiptap/core/src/decorations/types.ts +0 -87
- package/node_modules/@tiptap/core/src/extensions/clipboardTextSerializer.test.ts +0 -68
- package/node_modules/@tiptap/core/src/extensions/clipboardTextSerializer.ts +0 -53
- package/node_modules/@tiptap/core/src/extensions/commands.ts +0 -14
- package/node_modules/@tiptap/core/src/extensions/delete.test.ts +0 -49
- package/node_modules/@tiptap/core/src/extensions/delete.ts +0 -101
- package/node_modules/@tiptap/core/src/extensions/drop.ts +0 -26
- package/node_modules/@tiptap/core/src/extensions/editable.ts +0 -18
- package/node_modules/@tiptap/core/src/extensions/focusEvents.ts +0 -45
- package/node_modules/@tiptap/core/src/extensions/index.ts +0 -10
- package/node_modules/@tiptap/core/src/extensions/keymap.ts +0 -165
- package/node_modules/@tiptap/core/src/extensions/paste.ts +0 -25
- package/node_modules/@tiptap/core/src/extensions/tabindex.test.ts +0 -75
- package/node_modules/@tiptap/core/src/extensions/tabindex.ts +0 -58
- package/node_modules/@tiptap/core/src/extensions/textDirection.ts +0 -88
- package/node_modules/@tiptap/core/src/helpers/MappablePosition.ts +0 -69
- package/node_modules/@tiptap/core/src/helpers/combineTransactionSteps.ts +0 -24
- package/node_modules/@tiptap/core/src/helpers/createChainableState.ts +0 -42
- package/node_modules/@tiptap/core/src/helpers/createDocument.ts +0 -24
- package/node_modules/@tiptap/core/src/helpers/createNodeFromContent.test.ts +0 -332
- package/node_modules/@tiptap/core/src/helpers/createNodeFromContent.ts +0 -128
- package/node_modules/@tiptap/core/src/helpers/defaultBlockAt.ts +0 -18
- package/node_modules/@tiptap/core/src/helpers/findChildren.ts +0 -24
- package/node_modules/@tiptap/core/src/helpers/findChildrenInRange.ts +0 -40
- package/node_modules/@tiptap/core/src/helpers/findParentNode.ts +0 -18
- package/node_modules/@tiptap/core/src/helpers/findParentNodeClosestToPos.ts +0 -37
- package/node_modules/@tiptap/core/src/helpers/flattenExtensions.ts +0 -34
- package/node_modules/@tiptap/core/src/helpers/generateHTML.test.ts +0 -29
- package/node_modules/@tiptap/core/src/helpers/generateHTML.ts +0 -18
- package/node_modules/@tiptap/core/src/helpers/generateJSON.test.ts +0 -31
- package/node_modules/@tiptap/core/src/helpers/generateJSON.ts +0 -18
- package/node_modules/@tiptap/core/src/helpers/generateText.test.ts +0 -71
- package/node_modules/@tiptap/core/src/helpers/generateText.ts +0 -34
- package/node_modules/@tiptap/core/src/helpers/getAttributes.ts +0 -32
- package/node_modules/@tiptap/core/src/helpers/getAttributesFromExtensions.test.ts +0 -473
- package/node_modules/@tiptap/core/src/helpers/getAttributesFromExtensions.ts +0 -120
- package/node_modules/@tiptap/core/src/helpers/getChangedRanges.test.ts +0 -48
- package/node_modules/@tiptap/core/src/helpers/getChangedRanges.ts +0 -85
- package/node_modules/@tiptap/core/src/helpers/getDebugJSON.ts +0 -54
- package/node_modules/@tiptap/core/src/helpers/getExtensionField.ts +0 -32
- package/node_modules/@tiptap/core/src/helpers/getHTMLFromFragment.ts +0 -13
- package/node_modules/@tiptap/core/src/helpers/getMarkAttributes.ts +0 -33
- package/node_modules/@tiptap/core/src/helpers/getMarkRange.test.ts +0 -237
- package/node_modules/@tiptap/core/src/helpers/getMarkRange.ts +0 -105
- package/node_modules/@tiptap/core/src/helpers/getMarkType.ts +0 -15
- package/node_modules/@tiptap/core/src/helpers/getMarksBetween.ts +0 -44
- package/node_modules/@tiptap/core/src/helpers/getNodeAtPosition.ts +0 -34
- package/node_modules/@tiptap/core/src/helpers/getNodeAttributes.ts +0 -25
- package/node_modules/@tiptap/core/src/helpers/getNodeType.ts +0 -15
- package/node_modules/@tiptap/core/src/helpers/getPreviousBlockSibling.test.ts +0 -111
- package/node_modules/@tiptap/core/src/helpers/getPreviousBlockSibling.ts +0 -36
- package/node_modules/@tiptap/core/src/helpers/getRenderedAttributes.ts +0 -23
- package/node_modules/@tiptap/core/src/helpers/getSchema.ts +0 -12
- package/node_modules/@tiptap/core/src/helpers/getSchemaByResolvedExtensions.test.ts +0 -171
- package/node_modules/@tiptap/core/src/helpers/getSchemaByResolvedExtensions.ts +0 -41
- package/node_modules/@tiptap/core/src/helpers/getSchemaSpecByResolvedExtensions.test.ts +0 -101
- package/node_modules/@tiptap/core/src/helpers/getSchemaSpecByResolvedExtensions.ts +0 -240
- package/node_modules/@tiptap/core/src/helpers/getSchemaTypeByName.ts +0 -11
- package/node_modules/@tiptap/core/src/helpers/getSchemaTypeNameByName.ts +0 -19
- package/node_modules/@tiptap/core/src/helpers/getSplittedAttributes.ts +0 -28
- package/node_modules/@tiptap/core/src/helpers/getText.ts +0 -28
- package/node_modules/@tiptap/core/src/helpers/getTextBetween.ts +0 -52
- package/node_modules/@tiptap/core/src/helpers/getTextContentFromNodes.test.ts +0 -40
- package/node_modules/@tiptap/core/src/helpers/getTextContentFromNodes.ts +0 -34
- package/node_modules/@tiptap/core/src/helpers/getTextSerializersFromSchema.ts +0 -16
- package/node_modules/@tiptap/core/src/helpers/index.ts +0 -71
- package/node_modules/@tiptap/core/src/helpers/injectExtensionAttributesToParseRule.ts +0 -47
- package/node_modules/@tiptap/core/src/helpers/isActive.test.ts +0 -106
- package/node_modules/@tiptap/core/src/helpers/isActive.ts +0 -27
- package/node_modules/@tiptap/core/src/helpers/isAtEndOfNode.ts +0 -29
- package/node_modules/@tiptap/core/src/helpers/isAtStartOfNode.ts +0 -11
- package/node_modules/@tiptap/core/src/helpers/isExtensionRulesEnabled.ts +0 -13
- package/node_modules/@tiptap/core/src/helpers/isFragment.ts +0 -14
- package/node_modules/@tiptap/core/src/helpers/isList.ts +0 -27
- package/node_modules/@tiptap/core/src/helpers/isMarkActive.ts +0 -94
- package/node_modules/@tiptap/core/src/helpers/isNodeActive.ts +0 -51
- package/node_modules/@tiptap/core/src/helpers/isNodeEmpty.test.ts +0 -250
- package/node_modules/@tiptap/core/src/helpers/isNodeEmpty.ts +0 -62
- package/node_modules/@tiptap/core/src/helpers/isNodeSelection.ts +0 -5
- package/node_modules/@tiptap/core/src/helpers/isNodeViewSelected.test.ts +0 -218
- package/node_modules/@tiptap/core/src/helpers/isNodeViewSelected.ts +0 -42
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorAddMarkStep.test.ts +0 -19
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorAddMarkStep.ts +0 -31
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorAddNodeMarkStep.test.ts +0 -19
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorAddNodeMarkStep.ts +0 -31
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorAttrStep.test.ts +0 -17
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorAttrStep.ts +0 -31
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorCellSelection.test.ts +0 -17
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorCellSelection.ts +0 -18
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorContent.ts +0 -14
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorDocAttrStep.test.ts +0 -17
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorDocAttrStep.ts +0 -31
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorFragment.test.ts +0 -27
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorFragment.ts +0 -34
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorNodeSelection.test.ts +0 -35
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorNodeSelection.ts +0 -18
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorRemoveMarkStep.test.ts +0 -19
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorRemoveMarkStep.ts +0 -31
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorRemoveNodeMarkStep.test.ts +0 -19
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorRemoveNodeMarkStep.ts +0 -31
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorReplaceAroundStep.test.ts +0 -19
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorReplaceAroundStep.ts +0 -31
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorReplaceStep.test.ts +0 -17
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorReplaceStep.ts +0 -31
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorSlice.test.ts +0 -16
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorSlice.ts +0 -43
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorStep.test.ts +0 -30
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorStep.ts +0 -30
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorStepResult.test.ts +0 -17
- package/node_modules/@tiptap/core/src/helpers/isProseMirrorStepResult.ts +0 -26
- package/node_modules/@tiptap/core/src/helpers/isTextSelection.ts +0 -5
- package/node_modules/@tiptap/core/src/helpers/posToDOMRect.ts +0 -35
- package/node_modules/@tiptap/core/src/helpers/resolveExtensions.ts +0 -25
- package/node_modules/@tiptap/core/src/helpers/resolveFocusPosition.ts +0 -42
- package/node_modules/@tiptap/core/src/helpers/rewriteUnknownContent.test.ts +0 -51
- package/node_modules/@tiptap/core/src/helpers/rewriteUnknownContent.ts +0 -158
- package/node_modules/@tiptap/core/src/helpers/selectionToInsertionEnd.ts +0 -29
- package/node_modules/@tiptap/core/src/helpers/sortExtensions.ts +0 -26
- package/node_modules/@tiptap/core/src/helpers/splitExtensions.ts +0 -18
- package/node_modules/@tiptap/core/src/helpers/warnOnDuplicatedProseMirrorModel.test.ts +0 -23
- package/node_modules/@tiptap/core/src/helpers/warnOnDuplicatedProseMirrorModel.ts +0 -47
- package/node_modules/@tiptap/core/src/index.ts +0 -23
- package/node_modules/@tiptap/core/src/inputRules/index.ts +0 -5
- package/node_modules/@tiptap/core/src/inputRules/markInputRule.ts +0 -72
- package/node_modules/@tiptap/core/src/inputRules/nodeInputRule.ts +0 -80
- package/node_modules/@tiptap/core/src/inputRules/textInputRule.ts +0 -39
- package/node_modules/@tiptap/core/src/inputRules/textblockTypeInputRule.ts +0 -41
- package/node_modules/@tiptap/core/src/inputRules/wrappingInputRule.ts +0 -88
- package/node_modules/@tiptap/core/src/jsx-runtime.test.ts +0 -349
- package/node_modules/@tiptap/core/src/jsx-runtime.ts +0 -145
- package/node_modules/@tiptap/core/src/lib/ResizableNodeView.test.ts +0 -121
- package/node_modules/@tiptap/core/src/lib/ResizableNodeView.ts +0 -1079
- package/node_modules/@tiptap/core/src/lib/index.ts +0 -1
- package/node_modules/@tiptap/core/src/pasteRules/index.ts +0 -3
- package/node_modules/@tiptap/core/src/pasteRules/markPasteRule.test.ts +0 -91
- package/node_modules/@tiptap/core/src/pasteRules/markPasteRule.ts +0 -82
- package/node_modules/@tiptap/core/src/pasteRules/nodePasteRule.ts +0 -44
- package/node_modules/@tiptap/core/src/pasteRules/textPasteRule.ts +0 -34
- package/node_modules/@tiptap/core/src/schema/getSchemaAttributes.ts +0 -45
- package/node_modules/@tiptap/core/src/schema/mergeSchemaSpec.ts +0 -83
- package/node_modules/@tiptap/core/src/schema/schemaSpecFields.ts +0 -24
- package/node_modules/@tiptap/core/src/style.ts +0 -71
- package/node_modules/@tiptap/core/src/types.ts +0 -1114
- package/node_modules/@tiptap/core/src/utilities/attrsEqual.test.ts +0 -54
- package/node_modules/@tiptap/core/src/utilities/attrsEqual.ts +0 -27
- package/node_modules/@tiptap/core/src/utilities/callOrReturn.ts +0 -25
- package/node_modules/@tiptap/core/src/utilities/canInsertNode.ts +0 -30
- package/node_modules/@tiptap/core/src/utilities/createStyleTag.ts +0 -21
- package/node_modules/@tiptap/core/src/utilities/deleteProps.ts +0 -19
- package/node_modules/@tiptap/core/src/utilities/elementFromString.ts +0 -29
- package/node_modules/@tiptap/core/src/utilities/escapeForRegEx.ts +0 -4
- package/node_modules/@tiptap/core/src/utilities/findDuplicates.ts +0 -8
- package/node_modules/@tiptap/core/src/utilities/fromString.test.ts +0 -53
- package/node_modules/@tiptap/core/src/utilities/fromString.ts +0 -19
- package/node_modules/@tiptap/core/src/utilities/getStyleProperty.test.ts +0 -53
- package/node_modules/@tiptap/core/src/utilities/getStyleProperty.ts +0 -52
- package/node_modules/@tiptap/core/src/utilities/htmlEntities.test.ts +0 -159
- package/node_modules/@tiptap/core/src/utilities/htmlEntities.ts +0 -74
- package/node_modules/@tiptap/core/src/utilities/index.ts +0 -31
- package/node_modules/@tiptap/core/src/utilities/isAndroid.test.ts +0 -28
- package/node_modules/@tiptap/core/src/utilities/isAndroid.ts +0 -3
- package/node_modules/@tiptap/core/src/utilities/isDev.ts +0 -12
- package/node_modules/@tiptap/core/src/utilities/isEmptyObject.ts +0 -3
- package/node_modules/@tiptap/core/src/utilities/isFirefox.ts +0 -11
- package/node_modules/@tiptap/core/src/utilities/isFunction.ts +0 -4
- package/node_modules/@tiptap/core/src/utilities/isMacOS.ts +0 -3
- package/node_modules/@tiptap/core/src/utilities/isNumber.ts +0 -3
- package/node_modules/@tiptap/core/src/utilities/isPlainObject.ts +0 -13
- package/node_modules/@tiptap/core/src/utilities/isRegExp.ts +0 -3
- package/node_modules/@tiptap/core/src/utilities/isSafari.ts +0 -13
- package/node_modules/@tiptap/core/src/utilities/isString.ts +0 -3
- package/node_modules/@tiptap/core/src/utilities/isValidCSSStyleValue.test.ts +0 -22
- package/node_modules/@tiptap/core/src/utilities/isValidCSSStyleValue.ts +0 -8
- package/node_modules/@tiptap/core/src/utilities/isiOS.ts +0 -9
- package/node_modules/@tiptap/core/src/utilities/markdown/createAtomBlockMarkdownSpec.ts +0 -138
- package/node_modules/@tiptap/core/src/utilities/markdown/createBlockMarkdownSpec.ts +0 -229
- package/node_modules/@tiptap/core/src/utilities/markdown/createInlineMarkdownSpec.ts +0 -262
- package/node_modules/@tiptap/core/src/utilities/markdown/index.ts +0 -14
- package/node_modules/@tiptap/core/src/utilities/markdown/parseAttributes.test.ts +0 -70
- package/node_modules/@tiptap/core/src/utilities/markdown/parseAttributes.ts +0 -48
- package/node_modules/@tiptap/core/src/utilities/markdown/parseIndentedBlocks.ts +0 -194
- package/node_modules/@tiptap/core/src/utilities/markdown/parseShortcodeAttributes.ts +0 -13
- package/node_modules/@tiptap/core/src/utilities/markdown/renderNestedMarkdownContent.test.ts +0 -51
- package/node_modules/@tiptap/core/src/utilities/markdown/renderNestedMarkdownContent.ts +0 -136
- package/node_modules/@tiptap/core/src/utilities/markdown/serializeAttributes.ts +0 -42
- package/node_modules/@tiptap/core/src/utilities/markdown/tokenizeAttributes.ts +0 -163
- package/node_modules/@tiptap/core/src/utilities/marksEqual.test.ts +0 -101
- package/node_modules/@tiptap/core/src/utilities/marksEqual.ts +0 -44
- package/node_modules/@tiptap/core/src/utilities/mergeAttributes.test.ts +0 -194
- package/node_modules/@tiptap/core/src/utilities/mergeAttributes.ts +0 -128
- package/node_modules/@tiptap/core/src/utilities/mergeDeep.test.ts +0 -98
- package/node_modules/@tiptap/core/src/utilities/mergeDeep.ts +0 -20
- package/node_modules/@tiptap/core/src/utilities/minMax.ts +0 -3
- package/node_modules/@tiptap/core/src/utilities/objectIncludes.ts +0 -30
- package/node_modules/@tiptap/core/src/utilities/removeDuplicates.ts +0 -13
- package/node_modules/@tiptap/extension-blockquote/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-blockquote/README.md +0 -18
- package/node_modules/@tiptap/extension-blockquote/dist/index.cjs +0 -132
- package/node_modules/@tiptap/extension-blockquote/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.cts +0 -40
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.ts +0 -40
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -126
- package/node_modules/@tiptap/extension-blockquote/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-blockquote/package.json +0 -52
- package/node_modules/@tiptap/extension-blockquote/src/blockquote.tsx +0 -143
- package/node_modules/@tiptap/extension-blockquote/src/handleBackspace.test.ts +0 -45
- package/node_modules/@tiptap/extension-blockquote/src/handleBackspace.ts +0 -75
- package/node_modules/@tiptap/extension-blockquote/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-bold/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-bold/README.md +0 -18
- package/node_modules/@tiptap/extension-bold/dist/index.cjs +0 -117
- package/node_modules/@tiptap/extension-bold/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-bold/dist/index.d.cts +0 -52
- package/node_modules/@tiptap/extension-bold/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-bold/dist/index.d.ts +0 -52
- package/node_modules/@tiptap/extension-bold/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-bold/dist/index.js +0 -108
- package/node_modules/@tiptap/extension-bold/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-bold/package.json +0 -50
- package/node_modules/@tiptap/extension-bold/src/bold.test.ts +0 -25
- package/node_modules/@tiptap/extension-bold/src/bold.tsx +0 -163
- package/node_modules/@tiptap/extension-bold/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-bubble-menu/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-bubble-menu/README.md +0 -18
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +0 -333
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.cts +0 -170
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.ts +0 -170
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.js +0 -326
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-bubble-menu/package.json +0 -56
- package/node_modules/@tiptap/extension-bubble-menu/src/bubble-menu-plugin.test.ts +0 -289
- package/node_modules/@tiptap/extension-bubble-menu/src/bubble-menu-plugin.ts +0 -710
- package/node_modules/@tiptap/extension-bubble-menu/src/bubble-menu.ts +0 -50
- package/node_modules/@tiptap/extension-bubble-menu/src/index.ts +0 -6
- package/node_modules/@tiptap/extension-bullet-list/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-bullet-list/README.md +0 -18
- package/node_modules/@tiptap/extension-bullet-list/dist/index.cjs +0 -17
- package/node_modules/@tiptap/extension-bullet-list/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-bullet-list/dist/index.d.cts +0 -2
- package/node_modules/@tiptap/extension-bullet-list/dist/index.d.ts +0 -2
- package/node_modules/@tiptap/extension-bullet-list/dist/index.js +0 -7
- package/node_modules/@tiptap/extension-bullet-list/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-bullet-list/package.json +0 -50
- package/node_modules/@tiptap/extension-bullet-list/src/index.ts +0 -6
- package/node_modules/@tiptap/extension-code/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-code/README.md +0 -18
- package/node_modules/@tiptap/extension-code/dist/index.cjs +0 -136
- package/node_modules/@tiptap/extension-code/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-code/dist/index.d.cts +0 -60
- package/node_modules/@tiptap/extension-code/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-code/dist/index.d.ts +0 -60
- package/node_modules/@tiptap/extension-code/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-code/dist/index.js +0 -127
- package/node_modules/@tiptap/extension-code/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-code/package.json +0 -50
- package/node_modules/@tiptap/extension-code/src/code.test.ts +0 -122
- package/node_modules/@tiptap/extension-code/src/code.ts +0 -200
- package/node_modules/@tiptap/extension-code/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-code-block/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-code-block/README.md +0 -18
- package/node_modules/@tiptap/extension-code-block/dist/index.cjs +0 -255
- package/node_modules/@tiptap/extension-code-block/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-code-block/dist/index.d.cts +0 -84
- package/node_modules/@tiptap/extension-code-block/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-code-block/dist/index.d.ts +0 -84
- package/node_modules/@tiptap/extension-code-block/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-code-block/dist/index.js +0 -248
- package/node_modules/@tiptap/extension-code-block/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-code-block/package.json +0 -52
- package/node_modules/@tiptap/extension-code-block/src/code-block.test.ts +0 -97
- package/node_modules/@tiptap/extension-code-block/src/code-block.ts +0 -514
- package/node_modules/@tiptap/extension-code-block/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-document/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-document/README.md +0 -18
- package/node_modules/@tiptap/extension-document/dist/index.cjs +0 -26
- package/node_modules/@tiptap/extension-document/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-document/dist/index.d.cts +0 -10
- package/node_modules/@tiptap/extension-document/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-document/dist/index.d.ts +0 -10
- package/node_modules/@tiptap/extension-document/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-document/dist/index.js +0 -22
- package/node_modules/@tiptap/extension-document/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-document/package.json +0 -50
- package/node_modules/@tiptap/extension-document/src/document.ts +0 -19
- package/node_modules/@tiptap/extension-document/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-dropcursor/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-dropcursor/README.md +0 -18
- package/node_modules/@tiptap/extension-dropcursor/dist/index.cjs +0 -17
- package/node_modules/@tiptap/extension-dropcursor/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-dropcursor/dist/index.d.cts +0 -2
- package/node_modules/@tiptap/extension-dropcursor/dist/index.d.ts +0 -2
- package/node_modules/@tiptap/extension-dropcursor/dist/index.js +0 -7
- package/node_modules/@tiptap/extension-dropcursor/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-dropcursor/package.json +0 -50
- package/node_modules/@tiptap/extension-dropcursor/src/index.ts +0 -6
- package/node_modules/@tiptap/extension-floating-menu/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-floating-menu/README.md +0 -18
- package/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +0 -272
- package/node_modules/@tiptap/extension-floating-menu/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.cts +0 -180
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.ts +0 -180
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-floating-menu/dist/index.js +0 -265
- package/node_modules/@tiptap/extension-floating-menu/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-floating-menu/package.json +0 -55
- package/node_modules/@tiptap/extension-floating-menu/src/floating-menu-plugin.test.ts +0 -250
- package/node_modules/@tiptap/extension-floating-menu/src/floating-menu-plugin.ts +0 -580
- package/node_modules/@tiptap/extension-floating-menu/src/floating-menu.ts +0 -77
- package/node_modules/@tiptap/extension-floating-menu/src/index.ts +0 -6
- package/node_modules/@tiptap/extension-gapcursor/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-gapcursor/README.md +0 -18
- package/node_modules/@tiptap/extension-gapcursor/dist/index.cjs +0 -17
- package/node_modules/@tiptap/extension-gapcursor/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-gapcursor/dist/index.d.cts +0 -2
- package/node_modules/@tiptap/extension-gapcursor/dist/index.d.ts +0 -2
- package/node_modules/@tiptap/extension-gapcursor/dist/index.js +0 -7
- package/node_modules/@tiptap/extension-gapcursor/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-gapcursor/package.json +0 -50
- package/node_modules/@tiptap/extension-gapcursor/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-hard-break/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-hard-break/README.md +0 -18
- package/node_modules/@tiptap/extension-hard-break/dist/index.cjs +0 -69
- package/node_modules/@tiptap/extension-hard-break/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.cts +0 -35
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.ts +0 -35
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -64
- package/node_modules/@tiptap/extension-hard-break/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-hard-break/package.json +0 -50
- package/node_modules/@tiptap/extension-hard-break/src/hard-break.test.ts +0 -78
- package/node_modules/@tiptap/extension-hard-break/src/hard-break.ts +0 -121
- package/node_modules/@tiptap/extension-hard-break/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-heading/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-heading/README.md +0 -18
- package/node_modules/@tiptap/extension-heading/dist/index.cjs +0 -93
- package/node_modules/@tiptap/extension-heading/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-heading/dist/index.d.cts +0 -50
- package/node_modules/@tiptap/extension-heading/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-heading/dist/index.d.ts +0 -50
- package/node_modules/@tiptap/extension-heading/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-heading/dist/index.js +0 -88
- package/node_modules/@tiptap/extension-heading/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-heading/package.json +0 -50
- package/node_modules/@tiptap/extension-heading/src/heading.ts +0 -152
- package/node_modules/@tiptap/extension-heading/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-highlight/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-highlight/README.md +0 -18
- package/node_modules/@tiptap/extension-highlight/dist/index.cjs +0 -113
- package/node_modules/@tiptap/extension-highlight/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-highlight/dist/index.d.cts +0 -59
- package/node_modules/@tiptap/extension-highlight/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-highlight/dist/index.d.ts +0 -59
- package/node_modules/@tiptap/extension-highlight/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-highlight/dist/index.js +0 -106
- package/node_modules/@tiptap/extension-highlight/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-highlight/package.json +0 -50
- package/node_modules/@tiptap/extension-highlight/src/highlight.test.ts +0 -44
- package/node_modules/@tiptap/extension-highlight/src/highlight.ts +0 -190
- package/node_modules/@tiptap/extension-highlight/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-horizontal-rule/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-horizontal-rule/README.md +0 -18
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +0 -78
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.cts +0 -35
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.ts +0 -35
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -73
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-horizontal-rule/package.json +0 -52
- package/node_modules/@tiptap/extension-horizontal-rule/src/horizontal-rule.test.ts +0 -58
- package/node_modules/@tiptap/extension-horizontal-rule/src/horizontal-rule.ts +0 -136
- package/node_modules/@tiptap/extension-horizontal-rule/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-image/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-image/README.md +0 -18
- package/node_modules/@tiptap/extension-image/dist/index.cjs +0 -181
- package/node_modules/@tiptap/extension-image/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-image/dist/index.d.cts +0 -69
- package/node_modules/@tiptap/extension-image/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-image/dist/index.d.ts +0 -69
- package/node_modules/@tiptap/extension-image/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-image/dist/index.js +0 -175
- package/node_modules/@tiptap/extension-image/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-image/package.json +0 -50
- package/node_modules/@tiptap/extension-image/src/image.test.ts +0 -556
- package/node_modules/@tiptap/extension-image/src/image.ts +0 -330
- package/node_modules/@tiptap/extension-image/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-italic/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-italic/README.md +0 -18
- package/node_modules/@tiptap/extension-italic/dist/index.cjs +0 -113
- package/node_modules/@tiptap/extension-italic/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-italic/dist/index.d.cts +0 -55
- package/node_modules/@tiptap/extension-italic/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-italic/dist/index.d.ts +0 -55
- package/node_modules/@tiptap/extension-italic/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-italic/dist/index.js +0 -104
- package/node_modules/@tiptap/extension-italic/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-italic/package.json +0 -50
- package/node_modules/@tiptap/extension-italic/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-italic/src/italic.ts +0 -160
- package/node_modules/@tiptap/extension-link/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-link/README.md +0 -18
- package/node_modules/@tiptap/extension-link/dist/index.cjs +0 -560
- package/node_modules/@tiptap/extension-link/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-link/dist/index.d.cts +0 -159
- package/node_modules/@tiptap/extension-link/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-link/dist/index.d.ts +0 -159
- package/node_modules/@tiptap/extension-link/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-link/dist/index.js +0 -553
- package/node_modules/@tiptap/extension-link/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-link/package.json +0 -56
- package/node_modules/@tiptap/extension-link/src/helpers/autolink.ts +0 -211
- package/node_modules/@tiptap/extension-link/src/helpers/clickHandler.ts +0 -73
- package/node_modules/@tiptap/extension-link/src/helpers/markdownLink.ts +0 -205
- package/node_modules/@tiptap/extension-link/src/helpers/pasteHandler.ts +0 -53
- package/node_modules/@tiptap/extension-link/src/helpers/unlinkTrailingWhitespace.ts +0 -46
- package/node_modules/@tiptap/extension-link/src/helpers/whitespace.ts +0 -8
- package/node_modules/@tiptap/extension-link/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-link/src/link.ts +0 -555
- package/node_modules/@tiptap/extension-list/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-list/README.md +0 -18
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.cjs +0 -84
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.cts +0 -52
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.ts +0 -52
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.js +0 -82
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.js.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/index.cjs +0 -1570
- package/node_modules/@tiptap/extension-list/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/index.d.cts +0 -391
- package/node_modules/@tiptap/extension-list/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/index.d.ts +0 -390
- package/node_modules/@tiptap/extension-list/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/index.js +0 -1533
- package/node_modules/@tiptap/extension-list/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/item/index.cjs +0 -308
- package/node_modules/@tiptap/extension-list/dist/item/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/item/index.d.cts +0 -30
- package/node_modules/@tiptap/extension-list/dist/item/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/item/index.d.ts +0 -30
- package/node_modules/@tiptap/extension-list/dist/item/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/item/index.js +0 -307
- package/node_modules/@tiptap/extension-list/dist/item/index.js.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/keymap/index.cjs +0 -263
- package/node_modules/@tiptap/extension-list/dist/keymap/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.cts +0 -66
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.ts +0 -65
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/keymap/index.js +0 -245
- package/node_modules/@tiptap/extension-list/dist/keymap/index.js.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/keymap/rolldown-runtime-D7D4PA-g.js +0 -13
- package/node_modules/@tiptap/extension-list/dist/kit/index.cjs +0 -1487
- package/node_modules/@tiptap/extension-list/dist/kit/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.cts +0 -235
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.ts +0 -235
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/kit/index.js +0 -1486
- package/node_modules/@tiptap/extension-list/dist/kit/index.js.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.cjs +0 -671
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.cts +0 -120
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.ts +0 -120
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.js +0 -659
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.js.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/rolldown-runtime-D7D4PA-g.js +0 -13
- package/node_modules/@tiptap/extension-list/dist/task-item/index.cjs +0 -327
- package/node_modules/@tiptap/extension-list/dist/task-item/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.cts +0 -69
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.ts +0 -69
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/task-item/index.js +0 -325
- package/node_modules/@tiptap/extension-list/dist/task-item/index.js.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/task-list/index.cjs +0 -121
- package/node_modules/@tiptap/extension-list/dist/task-list/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.cts +0 -35
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.ts +0 -35
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-list/dist/task-list/index.js +0 -120
- package/node_modules/@tiptap/extension-list/dist/task-list/index.js.map +0 -1
- package/node_modules/@tiptap/extension-list/package.json +0 -108
- package/node_modules/@tiptap/extension-list/src/bullet-list/bullet-list.ts +0 -151
- package/node_modules/@tiptap/extension-list/src/bullet-list/index.ts +0 -1
- package/node_modules/@tiptap/extension-list/src/helpers/createBranchingListDeleteKeymap.ts +0 -24
- package/node_modules/@tiptap/extension-list/src/helpers/getBranchingNestedListAtCursor.ts +0 -116
- package/node_modules/@tiptap/extension-list/src/helpers/handleDeleteBranchingNestedList.ts +0 -25
- package/node_modules/@tiptap/extension-list/src/helpers/hasBranchingNestedListAfterCursor.ts +0 -30
- package/node_modules/@tiptap/extension-list/src/helpers/hoistBranchingNestedList.ts +0 -56
- package/node_modules/@tiptap/extension-list/src/index.ts +0 -7
- package/node_modules/@tiptap/extension-list/src/item/index.ts +0 -1
- package/node_modules/@tiptap/extension-list/src/item/list-item.test.ts +0 -46
- package/node_modules/@tiptap/extension-list/src/item/list-item.ts +0 -206
- package/node_modules/@tiptap/extension-list/src/keymap/index.ts +0 -2
- package/node_modules/@tiptap/extension-list/src/keymap/list-keymap.ts +0 -120
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/findListItemPos.ts +0 -30
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/getNextListDepth.ts +0 -16
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/handleBackspace.ts +0 -70
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/handleDelete.ts +0 -44
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/handleTab.ts +0 -48
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/hasListBefore.ts +0 -19
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/hasListItemAfter.ts +0 -17
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/hasListItemBefore.ts +0 -17
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/index.ts +0 -11
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/listItemHasSubList.ts +0 -21
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/nextListIsDeeper.ts +0 -19
- package/node_modules/@tiptap/extension-list/src/keymap/listHelpers/nextListIsHigher.ts +0 -19
- package/node_modules/@tiptap/extension-list/src/kit/index.ts +0 -81
- package/node_modules/@tiptap/extension-list/src/ordered-list/collectOrderedListItemsFromSource.ts +0 -58
- package/node_modules/@tiptap/extension-list/src/ordered-list/index.ts +0 -13
- package/node_modules/@tiptap/extension-list/src/ordered-list/ordered-list.ts +0 -360
- package/node_modules/@tiptap/extension-list/src/ordered-list/roman.test.ts +0 -122
- package/node_modules/@tiptap/extension-list/src/ordered-list/roman.ts +0 -295
- package/node_modules/@tiptap/extension-list/src/ordered-list/utils.test.ts +0 -105
- package/node_modules/@tiptap/extension-list/src/ordered-list/utils.ts +0 -399
- package/node_modules/@tiptap/extension-list/src/task-item/index.ts +0 -1
- package/node_modules/@tiptap/extension-list/src/task-item/task-item.test.ts +0 -1394
- package/node_modules/@tiptap/extension-list/src/task-item/task-item.ts +0 -359
- package/node_modules/@tiptap/extension-list/src/task-list/index.ts +0 -1
- package/node_modules/@tiptap/extension-list/src/task-list/task-list.ts +0 -194
- package/node_modules/@tiptap/extension-list-item/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-list-item/README.md +0 -18
- package/node_modules/@tiptap/extension-list-item/dist/index.cjs +0 -17
- package/node_modules/@tiptap/extension-list-item/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-list-item/dist/index.d.cts +0 -2
- package/node_modules/@tiptap/extension-list-item/dist/index.d.ts +0 -2
- package/node_modules/@tiptap/extension-list-item/dist/index.js +0 -7
- package/node_modules/@tiptap/extension-list-item/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-list-item/package.json +0 -50
- package/node_modules/@tiptap/extension-list-item/src/index.ts +0 -6
- package/node_modules/@tiptap/extension-list-keymap/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-list-keymap/README.md +0 -18
- package/node_modules/@tiptap/extension-list-keymap/dist/index.cjs +0 -23
- package/node_modules/@tiptap/extension-list-keymap/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-list-keymap/dist/index.d.cts +0 -2
- package/node_modules/@tiptap/extension-list-keymap/dist/index.d.ts +0 -2
- package/node_modules/@tiptap/extension-list-keymap/dist/index.js +0 -7
- package/node_modules/@tiptap/extension-list-keymap/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-list-keymap/package.json +0 -50
- package/node_modules/@tiptap/extension-list-keymap/src/index.ts +0 -6
- package/node_modules/@tiptap/extension-ordered-list/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-ordered-list/README.md +0 -18
- package/node_modules/@tiptap/extension-ordered-list/dist/index.cjs +0 -17
- package/node_modules/@tiptap/extension-ordered-list/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-ordered-list/dist/index.d.cts +0 -2
- package/node_modules/@tiptap/extension-ordered-list/dist/index.d.ts +0 -2
- package/node_modules/@tiptap/extension-ordered-list/dist/index.js +0 -7
- package/node_modules/@tiptap/extension-ordered-list/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-ordered-list/package.json +0 -50
- package/node_modules/@tiptap/extension-ordered-list/src/index.ts +0 -6
- package/node_modules/@tiptap/extension-paragraph/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-paragraph/README.md +0 -18
- package/node_modules/@tiptap/extension-paragraph/dist/index.cjs +0 -73
- package/node_modules/@tiptap/extension-paragraph/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.cts +0 -29
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.ts +0 -29
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -68
- package/node_modules/@tiptap/extension-paragraph/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-paragraph/package.json +0 -50
- package/node_modules/@tiptap/extension-paragraph/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-paragraph/src/paragraph.ts +0 -139
- package/node_modules/@tiptap/extension-strike/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-strike/README.md +0 -18
- package/node_modules/@tiptap/extension-strike/dist/index.cjs +0 -88
- package/node_modules/@tiptap/extension-strike/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-strike/dist/index.d.cts +0 -47
- package/node_modules/@tiptap/extension-strike/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-strike/dist/index.d.ts +0 -47
- package/node_modules/@tiptap/extension-strike/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-strike/dist/index.js +0 -81
- package/node_modules/@tiptap/extension-strike/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-strike/package.json +0 -50
- package/node_modules/@tiptap/extension-strike/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-strike/src/strike.ts +0 -134
- package/node_modules/@tiptap/extension-subscript/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-subscript/README.md +0 -18
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs +0 -56
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-subscript/dist/index.d.cts +0 -39
- package/node_modules/@tiptap/extension-subscript/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +0 -39
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-subscript/dist/index.js +0 -51
- package/node_modules/@tiptap/extension-subscript/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-subscript/package.json +0 -52
- package/node_modules/@tiptap/extension-subscript/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-subscript/src/subscript.test.ts +0 -48
- package/node_modules/@tiptap/extension-subscript/src/subscript.ts +0 -97
- package/node_modules/@tiptap/extension-superscript/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-superscript/README.md +0 -18
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs +0 -56
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-superscript/dist/index.d.cts +0 -39
- package/node_modules/@tiptap/extension-superscript/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +0 -39
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-superscript/dist/index.js +0 -51
- package/node_modules/@tiptap/extension-superscript/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-superscript/package.json +0 -52
- package/node_modules/@tiptap/extension-superscript/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-superscript/src/superscript.test.ts +0 -48
- package/node_modules/@tiptap/extension-superscript/src/superscript.ts +0 -97
- package/node_modules/@tiptap/extension-table/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-table/README.md +0 -18
- package/node_modules/@tiptap/extension-table/dist/cell/index.cjs +0 -142
- package/node_modules/@tiptap/extension-table/dist/cell/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.cts +0 -35
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.ts +0 -35
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/cell/index.js +0 -141
- package/node_modules/@tiptap/extension-table/dist/cell/index.js.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/header/index.cjs +0 -142
- package/node_modules/@tiptap/extension-table/dist/header/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/header/index.d.cts +0 -35
- package/node_modules/@tiptap/extension-table/dist/header/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/header/index.d.ts +0 -35
- package/node_modules/@tiptap/extension-table/dist/header/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/header/index.js +0 -141
- package/node_modules/@tiptap/extension-table/dist/header/index.js.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/index.cjs +0 -832
- package/node_modules/@tiptap/extension-table/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/index.d.cts +0 -344
- package/node_modules/@tiptap/extension-table/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/index.d.ts +0 -344
- package/node_modules/@tiptap/extension-table/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/index.js +0 -819
- package/node_modules/@tiptap/extension-table/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/kit/index.cjs +0 -817
- package/node_modules/@tiptap/extension-table/dist/kit/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.cts +0 -265
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.ts +0 -265
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/kit/index.js +0 -816
- package/node_modules/@tiptap/extension-table/dist/kit/index.js.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/row/index.cjs +0 -29
- package/node_modules/@tiptap/extension-table/dist/row/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/row/index.d.cts +0 -35
- package/node_modules/@tiptap/extension-table/dist/row/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/row/index.d.ts +0 -35
- package/node_modules/@tiptap/extension-table/dist/row/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/row/index.js +0 -28
- package/node_modules/@tiptap/extension-table/dist/row/index.js.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/table/index.cjs +0 -616
- package/node_modules/@tiptap/extension-table/dist/table/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/table/index.d.cts +0 -254
- package/node_modules/@tiptap/extension-table/dist/table/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/table/index.d.ts +0 -254
- package/node_modules/@tiptap/extension-table/dist/table/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-table/dist/table/index.js +0 -609
- package/node_modules/@tiptap/extension-table/dist/table/index.js.map +0 -1
- package/node_modules/@tiptap/extension-table/package.json +0 -92
- package/node_modules/@tiptap/extension-table/src/cell/index.ts +0 -1
- package/node_modules/@tiptap/extension-table/src/cell/table-cell.test.ts +0 -220
- package/node_modules/@tiptap/extension-table/src/cell/table-cell.ts +0 -74
- package/node_modules/@tiptap/extension-table/src/header/index.ts +0 -1
- package/node_modules/@tiptap/extension-table/src/header/table-header.test.ts +0 -193
- package/node_modules/@tiptap/extension-table/src/header/table-header.ts +0 -74
- package/node_modules/@tiptap/extension-table/src/index.ts +0 -6
- package/node_modules/@tiptap/extension-table/src/kit/index.ts +0 -64
- package/node_modules/@tiptap/extension-table/src/row/index.ts +0 -1
- package/node_modules/@tiptap/extension-table/src/row/table-row.ts +0 -38
- package/node_modules/@tiptap/extension-table/src/table/TableView.ts +0 -154
- package/node_modules/@tiptap/extension-table/src/table/index.ts +0 -4
- package/node_modules/@tiptap/extension-table/src/table/table.test.ts +0 -76
- package/node_modules/@tiptap/extension-table/src/table/table.ts +0 -648
- package/node_modules/@tiptap/extension-table/src/table/utilities/colStyle.ts +0 -12
- package/node_modules/@tiptap/extension-table/src/table/utilities/createCell.ts +0 -12
- package/node_modules/@tiptap/extension-table/src/table/utilities/createColGroup.ts +0 -69
- package/node_modules/@tiptap/extension-table/src/table/utilities/createTable.ts +0 -40
- package/node_modules/@tiptap/extension-table/src/table/utilities/deleteTableWhenAllCellsSelected.ts +0 -37
- package/node_modules/@tiptap/extension-table/src/table/utilities/getTableNodeTypes.ts +0 -21
- package/node_modules/@tiptap/extension-table/src/table/utilities/isCellSelection.ts +0 -5
- package/node_modules/@tiptap/extension-table/src/table/utilities/keepCursorInTable.ts +0 -29
- package/node_modules/@tiptap/extension-table/src/table/utilities/markdown.test.ts +0 -123
- package/node_modules/@tiptap/extension-table/src/table/utilities/markdown.ts +0 -233
- package/node_modules/@tiptap/extension-table/src/table/utilities/preserveCellSelectionOnContextMenu.test.ts +0 -166
- package/node_modules/@tiptap/extension-table/src/table/utilities/preserveCellSelectionOnContextMenu.ts +0 -69
- package/node_modules/@tiptap/extension-table/src/types.ts +0 -19
- package/node_modules/@tiptap/extension-table/src/utils/fillEmptyCellContent.ts +0 -25
- package/node_modules/@tiptap/extension-table/src/utils/omitDefaultSpanAttribute.ts +0 -15
- package/node_modules/@tiptap/extension-table/src/utils/parseAlign.ts +0 -80
- package/node_modules/@tiptap/extension-table/src/utils/parseColwidth.ts +0 -37
- package/node_modules/@tiptap/extension-text/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-text/README.md +0 -18
- package/node_modules/@tiptap/extension-text/dist/index.cjs +0 -28
- package/node_modules/@tiptap/extension-text/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-text/dist/index.d.cts +0 -10
- package/node_modules/@tiptap/extension-text/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-text/dist/index.d.ts +0 -10
- package/node_modules/@tiptap/extension-text/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-text/dist/index.js +0 -24
- package/node_modules/@tiptap/extension-text/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-text/package.json +0 -50
- package/node_modules/@tiptap/extension-text/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-text/src/text.ts +0 -20
- package/node_modules/@tiptap/extension-text-align/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-text-align/README.md +0 -18
- package/node_modules/@tiptap/extension-text-align/dist/index.cjs +0 -73
- package/node_modules/@tiptap/extension-text-align/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-text-align/dist/index.d.cts +0 -53
- package/node_modules/@tiptap/extension-text-align/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-text-align/dist/index.d.ts +0 -53
- package/node_modules/@tiptap/extension-text-align/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-text-align/dist/index.js +0 -68
- package/node_modules/@tiptap/extension-text-align/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-text-align/package.json +0 -50
- package/node_modules/@tiptap/extension-text-align/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-text-align/src/text-align.test.ts +0 -41
- package/node_modules/@tiptap/extension-text-align/src/text-align.ts +0 -140
- package/node_modules/@tiptap/extension-text-style/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-text-style/README.md +0 -18
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.cjs +0 -121
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.cts +0 -161
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.ts +0 -161
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.js +0 -116
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.js.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/color/index.cjs +0 -121
- package/node_modules/@tiptap/extension-text-style/dist/color/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.cts +0 -161
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.ts +0 -161
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/color/index.js +0 -116
- package/node_modules/@tiptap/extension-text-style/dist/color/index.js.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.cjs +0 -120
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.cts +0 -161
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.ts +0 -161
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.js +0 -115
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.js.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.cjs +0 -120
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.cts +0 -161
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.ts +0 -161
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.js +0 -115
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.js.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/index.cjs +0 -298
- package/node_modules/@tiptap/extension-text-style/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/index.d.cts +0 -275
- package/node_modules/@tiptap/extension-text-style/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/index.d.ts +0 -275
- package/node_modules/@tiptap/extension-text-style/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/index.js +0 -291
- package/node_modules/@tiptap/extension-text-style/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.cjs +0 -120
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.cts +0 -161
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.ts +0 -161
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.js +0 -115
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.js.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.cjs +0 -80
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.cts +0 -170
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.ts +0 -170
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.js +0 -79
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.js.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.cjs +0 -292
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.cts +0 -244
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.ts +0 -244
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.js +0 -291
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.js.map +0 -1
- package/node_modules/@tiptap/extension-text-style/package.json +0 -106
- package/node_modules/@tiptap/extension-text-style/src/background-color/background-color.test.ts +0 -35
- package/node_modules/@tiptap/extension-text-style/src/background-color/background-color.ts +0 -100
- package/node_modules/@tiptap/extension-text-style/src/background-color/index.ts +0 -5
- package/node_modules/@tiptap/extension-text-style/src/color/color.test.ts +0 -35
- package/node_modules/@tiptap/extension-text-style/src/color/color.ts +0 -96
- package/node_modules/@tiptap/extension-text-style/src/color/index.ts +0 -5
- package/node_modules/@tiptap/extension-text-style/src/font-family/font-family.test.ts +0 -89
- package/node_modules/@tiptap/extension-text-style/src/font-family/font-family.ts +0 -94
- package/node_modules/@tiptap/extension-text-style/src/font-family/index.ts +0 -5
- package/node_modules/@tiptap/extension-text-style/src/font-size/font-size.test.ts +0 -35
- package/node_modules/@tiptap/extension-text-style/src/font-size/font-size.ts +0 -92
- package/node_modules/@tiptap/extension-text-style/src/font-size/index.ts +0 -5
- package/node_modules/@tiptap/extension-text-style/src/index.ts +0 -14
- package/node_modules/@tiptap/extension-text-style/src/line-height/index.ts +0 -5
- package/node_modules/@tiptap/extension-text-style/src/line-height/line-height.test.ts +0 -35
- package/node_modules/@tiptap/extension-text-style/src/line-height/line-height.ts +0 -93
- package/node_modules/@tiptap/extension-text-style/src/text-style/index.ts +0 -168
- package/node_modules/@tiptap/extension-text-style/src/text-style-kit/index.ts +0 -86
- package/node_modules/@tiptap/extension-underline/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-underline/README.md +0 -18
- package/node_modules/@tiptap/extension-underline/dist/index.cjs +0 -81
- package/node_modules/@tiptap/extension-underline/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-underline/dist/index.d.cts +0 -39
- package/node_modules/@tiptap/extension-underline/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-underline/dist/index.d.ts +0 -39
- package/node_modules/@tiptap/extension-underline/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-underline/dist/index.js +0 -76
- package/node_modules/@tiptap/extension-underline/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-underline/package.json +0 -50
- package/node_modules/@tiptap/extension-underline/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-underline/src/underline.ts +0 -123
- package/node_modules/@tiptap/extension-youtube/LICENSE.md +0 -21
- package/node_modules/@tiptap/extension-youtube/README.md +0 -18
- package/node_modules/@tiptap/extension-youtube/dist/index.cjs +0 -254
- package/node_modules/@tiptap/extension-youtube/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extension-youtube/dist/index.d.cts +0 -204
- package/node_modules/@tiptap/extension-youtube/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extension-youtube/dist/index.d.ts +0 -204
- package/node_modules/@tiptap/extension-youtube/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extension-youtube/dist/index.js +0 -246
- package/node_modules/@tiptap/extension-youtube/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extension-youtube/package.json +0 -50
- package/node_modules/@tiptap/extension-youtube/src/index.ts +0 -5
- package/node_modules/@tiptap/extension-youtube/src/utils.test.ts +0 -163
- package/node_modules/@tiptap/extension-youtube/src/utils.ts +0 -234
- package/node_modules/@tiptap/extension-youtube/src/youtube.ts +0 -399
- package/node_modules/@tiptap/extensions/LICENSE.md +0 -21
- package/node_modules/@tiptap/extensions/README.md +0 -18
- package/node_modules/@tiptap/extensions/dist/character-count/index.cjs +0 -87
- package/node_modules/@tiptap/extensions/dist/character-count/index.cjs.map +0 -1
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.cts +0 -70
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.ts +0 -70
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/character-count/index.js +0 -86
- package/node_modules/@tiptap/extensions/dist/character-count/index.js.map +0 -1
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.cjs +0 -27
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.cjs.map +0 -1
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.cts +0 -32
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.ts +0 -32
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.js +0 -26
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.js.map +0 -1
- package/node_modules/@tiptap/extensions/dist/focus/index.cjs +0 -48
- package/node_modules/@tiptap/extensions/dist/focus/index.cjs.map +0 -1
- package/node_modules/@tiptap/extensions/dist/focus/index.d.cts +0 -29
- package/node_modules/@tiptap/extensions/dist/focus/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/focus/index.d.ts +0 -29
- package/node_modules/@tiptap/extensions/dist/focus/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/focus/index.js +0 -47
- package/node_modules/@tiptap/extensions/dist/focus/index.js.map +0 -1
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.cjs +0 -29
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.cjs.map +0 -1
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.cts +0 -26
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.ts +0 -26
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.js +0 -28
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.js.map +0 -1
- package/node_modules/@tiptap/extensions/dist/index.cjs +0 -711
- package/node_modules/@tiptap/extensions/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/extensions/dist/index.d.cts +0 -321
- package/node_modules/@tiptap/extensions/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/index.d.ts +0 -321
- package/node_modules/@tiptap/extensions/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/index.js +0 -699
- package/node_modules/@tiptap/extensions/dist/index.js.map +0 -1
- package/node_modules/@tiptap/extensions/dist/placeholder/index.cjs +0 -372
- package/node_modules/@tiptap/extensions/dist/placeholder/index.cjs.map +0 -1
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.cts +0 -91
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.ts +0 -91
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/placeholder/index.js +0 -368
- package/node_modules/@tiptap/extensions/dist/placeholder/index.js.map +0 -1
- package/node_modules/@tiptap/extensions/dist/selection/index.cjs +0 -72
- package/node_modules/@tiptap/extensions/dist/selection/index.cjs.map +0 -1
- package/node_modules/@tiptap/extensions/dist/selection/index.d.cts +0 -20
- package/node_modules/@tiptap/extensions/dist/selection/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/selection/index.d.ts +0 -20
- package/node_modules/@tiptap/extensions/dist/selection/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/selection/index.js +0 -71
- package/node_modules/@tiptap/extensions/dist/selection/index.js.map +0 -1
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.cjs +0 -62
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.cjs.map +0 -1
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.cts +0 -30
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.ts +0 -30
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.js +0 -60
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.js.map +0 -1
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.cjs +0 -48
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.cjs.map +0 -1
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.cts +0 -45
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.cts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.ts +0 -45
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.ts.map +0 -1
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.js +0 -47
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.js.map +0 -1
- package/node_modules/@tiptap/extensions/package.json +0 -116
- package/node_modules/@tiptap/extensions/src/character-count/character-count.ts +0 -203
- package/node_modules/@tiptap/extensions/src/character-count/index.ts +0 -1
- package/node_modules/@tiptap/extensions/src/drop-cursor/drop-cursor.ts +0 -47
- package/node_modules/@tiptap/extensions/src/drop-cursor/index.ts +0 -1
- package/node_modules/@tiptap/extensions/src/focus/focus.ts +0 -110
- package/node_modules/@tiptap/extensions/src/focus/index.ts +0 -1
- package/node_modules/@tiptap/extensions/src/gap-cursor/gap-cursor.ts +0 -47
- package/node_modules/@tiptap/extensions/src/gap-cursor/index.ts +0 -1
- package/node_modules/@tiptap/extensions/src/index.ts +0 -8
- package/node_modules/@tiptap/extensions/src/placeholder/constants.ts +0 -8
- package/node_modules/@tiptap/extensions/src/placeholder/index.ts +0 -4
- package/node_modules/@tiptap/extensions/src/placeholder/placeholder.ts +0 -30
- package/node_modules/@tiptap/extensions/src/placeholder/plugins/PlaceholderPlugin.ts +0 -49
- package/node_modules/@tiptap/extensions/src/placeholder/types.ts +0 -74
- package/node_modules/@tiptap/extensions/src/placeholder/utils/buildPlaceholderDecorations.ts +0 -164
- package/node_modules/@tiptap/extensions/src/placeholder/utils/createPlaceholderDecoration.ts +0 -61
- package/node_modules/@tiptap/extensions/src/placeholder/utils/index.ts +0 -3
- package/node_modules/@tiptap/extensions/src/placeholder/utils/placeholderStateField.ts +0 -204
- package/node_modules/@tiptap/extensions/src/placeholder/utils/preparePlaceholderAttribute.ts +0 -21
- package/node_modules/@tiptap/extensions/src/placeholder/utils/resolveTopLevelRange.test.ts +0 -78
- package/node_modules/@tiptap/extensions/src/placeholder/utils/resolveTopLevelRange.ts +0 -93
- package/node_modules/@tiptap/extensions/src/selection/index.ts +0 -1
- package/node_modules/@tiptap/extensions/src/selection/selection.test.ts +0 -97
- package/node_modules/@tiptap/extensions/src/selection/selection.ts +0 -106
- package/node_modules/@tiptap/extensions/src/trailing-node/index.ts +0 -1
- package/node_modules/@tiptap/extensions/src/trailing-node/trailing-node.test.ts +0 -90
- package/node_modules/@tiptap/extensions/src/trailing-node/trailing-node.ts +0 -107
- package/node_modules/@tiptap/extensions/src/undo-redo/index.ts +0 -1
- package/node_modules/@tiptap/extensions/src/undo-redo/undo-redo.ts +0 -86
- package/node_modules/@tiptap/pm/LICENSE +0 -21
- package/node_modules/@tiptap/pm/README.md +0 -22
- package/node_modules/@tiptap/pm/THIRD_PARTY_LICENSES.md +0 -47
- package/node_modules/@tiptap/pm/changeset/index.ts +0 -1
- package/node_modules/@tiptap/pm/commands/index.ts +0 -1
- package/node_modules/@tiptap/pm/dist/changeset/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/changeset/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/changeset/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/changeset/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/commands/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/commands/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/commands/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/commands/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/dropcursor/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/dropcursor/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/dropcursor/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/dropcursor/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/gapcursor/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/gapcursor/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/gapcursor/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/gapcursor/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/history/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/history/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/history/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/history/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/inputrules/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/inputrules/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/inputrules/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/inputrules/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/keymap/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/keymap/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/keymap/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/keymap/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/model/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/model/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/model/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/model/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/schema-list/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/schema-list/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/schema-list/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/schema-list/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/state/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/state/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/state/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/state/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/tables/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/tables/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/tables/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/tables/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/transform/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/transform/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/transform/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/transform/index.js +0 -2
- package/node_modules/@tiptap/pm/dist/view/index.cjs +0 -9
- package/node_modules/@tiptap/pm/dist/view/index.d.cts +0 -1
- package/node_modules/@tiptap/pm/dist/view/index.d.ts +0 -1
- package/node_modules/@tiptap/pm/dist/view/index.js +0 -2
- package/node_modules/@tiptap/pm/dropcursor/index.ts +0 -1
- package/node_modules/@tiptap/pm/gapcursor/index.ts +0 -1
- package/node_modules/@tiptap/pm/history/index.ts +0 -1
- package/node_modules/@tiptap/pm/inputrules/index.ts +0 -1
- package/node_modules/@tiptap/pm/keymap/index.ts +0 -1
- package/node_modules/@tiptap/pm/model/index.ts +0 -1
- package/node_modules/@tiptap/pm/package.json +0 -166
- package/node_modules/@tiptap/pm/schema-list/index.ts +0 -1
- package/node_modules/@tiptap/pm/state/index.ts +0 -1
- package/node_modules/@tiptap/pm/tables/index.ts +0 -1
- package/node_modules/@tiptap/pm/transform/index.ts +0 -1
- package/node_modules/@tiptap/pm/view/index.ts +0 -1
- package/node_modules/@tiptap/react/LICENSE.md +0 -21
- package/node_modules/@tiptap/react/README.md +0 -18
- package/node_modules/@tiptap/react/dist/index.cjs +0 -1396
- package/node_modules/@tiptap/react/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/react/dist/index.d.cts +0 -632
- package/node_modules/@tiptap/react/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/react/dist/index.d.ts +0 -632
- package/node_modules/@tiptap/react/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/react/dist/index.js +0 -1337
- package/node_modules/@tiptap/react/dist/index.js.map +0 -1
- package/node_modules/@tiptap/react/dist/menus/index.cjs +0 -469
- package/node_modules/@tiptap/react/dist/menus/index.cjs.map +0 -1
- package/node_modules/@tiptap/react/dist/menus/index.d.cts +0 -21
- package/node_modules/@tiptap/react/dist/menus/index.d.cts.map +0 -1
- package/node_modules/@tiptap/react/dist/menus/index.d.ts +0 -21
- package/node_modules/@tiptap/react/dist/menus/index.d.ts.map +0 -1
- package/node_modules/@tiptap/react/dist/menus/index.js +0 -444
- package/node_modules/@tiptap/react/dist/menus/index.js.map +0 -1
- package/node_modules/@tiptap/react/package.json +0 -80
- package/node_modules/@tiptap/react/src/Context.tsx +0 -62
- package/node_modules/@tiptap/react/src/Editor.ts +0 -16
- package/node_modules/@tiptap/react/src/EditorContent.test.ts +0 -39
- package/node_modules/@tiptap/react/src/EditorContent.tsx +0 -230
- package/node_modules/@tiptap/react/src/NodeViewContent.tsx +0 -30
- package/node_modules/@tiptap/react/src/NodeViewWrapper.tsx +0 -27
- package/node_modules/@tiptap/react/src/ReactMarkViewRenderer.tsx +0 -114
- package/node_modules/@tiptap/react/src/ReactNodeViewRenderer.test.ts +0 -566
- package/node_modules/@tiptap/react/src/ReactNodeViewRenderer.tsx +0 -465
- package/node_modules/@tiptap/react/src/ReactNodeViewSelectionTracker.ts +0 -113
- package/node_modules/@tiptap/react/src/ReactRenderer.tsx +0 -304
- package/node_modules/@tiptap/react/src/ReactWidgetRenderer.test.ts +0 -448
- package/node_modules/@tiptap/react/src/ReactWidgetRenderer.tsx +0 -97
- package/node_modules/@tiptap/react/src/Tiptap.tsx +0 -232
- package/node_modules/@tiptap/react/src/captureDOMSelection.test.ts +0 -76
- package/node_modules/@tiptap/react/src/captureDOMSelection.ts +0 -35
- package/node_modules/@tiptap/react/src/handleMobileEnter.test.ts +0 -218
- package/node_modules/@tiptap/react/src/handleMobileEnter.ts +0 -60
- package/node_modules/@tiptap/react/src/index.ts +0 -16
- package/node_modules/@tiptap/react/src/lib/utils/getTextSelectionAncestorPositions.ts +0 -27
- package/node_modules/@tiptap/react/src/menus/BubbleMenu.test.ts +0 -178
- package/node_modules/@tiptap/react/src/menus/BubbleMenu.tsx +0 -160
- package/node_modules/@tiptap/react/src/menus/FloatingMenu.test.ts +0 -168
- package/node_modules/@tiptap/react/src/menus/FloatingMenu.tsx +0 -161
- package/node_modules/@tiptap/react/src/menus/getAutoPluginKey.ts +0 -5
- package/node_modules/@tiptap/react/src/menus/index.ts +0 -4
- package/node_modules/@tiptap/react/src/menus/useMenuElementProps.ts +0 -369
- package/node_modules/@tiptap/react/src/types.ts +0 -8
- package/node_modules/@tiptap/react/src/useEditor.ts +0 -379
- package/node_modules/@tiptap/react/src/useEditorState.test.ts +0 -160
- package/node_modules/@tiptap/react/src/useEditorState.ts +0 -187
- package/node_modules/@tiptap/react/src/useReactNodeView.ts +0 -38
- package/node_modules/@tiptap/starter-kit/LICENSE.md +0 -21
- package/node_modules/@tiptap/starter-kit/README.md +0 -18
- package/node_modules/@tiptap/starter-kit/dist/index.cjs +0 -76
- package/node_modules/@tiptap/starter-kit/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/starter-kit/dist/index.d.cts +0 -137
- package/node_modules/@tiptap/starter-kit/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/starter-kit/dist/index.d.ts +0 -137
- package/node_modules/@tiptap/starter-kit/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/starter-kit/dist/index.js +0 -71
- package/node_modules/@tiptap/starter-kit/dist/index.js.map +0 -1
- package/node_modules/@tiptap/starter-kit/package.json +0 -70
- package/node_modules/@tiptap/starter-kit/src/index.ts +0 -6
- package/node_modules/@tiptap/starter-kit/src/starter-kit.ts +0 -273
- package/node_modules/@tiptap/suggestion/LICENSE.md +0 -21
- package/node_modules/@tiptap/suggestion/README.md +0 -18
- package/node_modules/@tiptap/suggestion/dist/index.cjs +0 -665
- package/node_modules/@tiptap/suggestion/dist/index.cjs.map +0 -1
- package/node_modules/@tiptap/suggestion/dist/index.d.cts +0 -419
- package/node_modules/@tiptap/suggestion/dist/index.d.cts.map +0 -1
- package/node_modules/@tiptap/suggestion/dist/index.d.ts +0 -419
- package/node_modules/@tiptap/suggestion/dist/index.d.ts.map +0 -1
- package/node_modules/@tiptap/suggestion/dist/index.js +0 -657
- package/node_modules/@tiptap/suggestion/dist/index.js.map +0 -1
- package/node_modules/@tiptap/suggestion/package.json +0 -54
- package/node_modules/@tiptap/suggestion/src/findSuggestionMatch.ts +0 -86
- package/node_modules/@tiptap/suggestion/src/helpers.ts +0 -129
- package/node_modules/@tiptap/suggestion/src/index.ts +0 -8
- package/node_modules/@tiptap/suggestion/src/plugin/async.ts +0 -89
- package/node_modules/@tiptap/suggestion/src/plugin/floating-ui.ts +0 -204
- package/node_modules/@tiptap/suggestion/src/plugin/props.ts +0 -94
- package/node_modules/@tiptap/suggestion/src/plugin/state.ts +0 -182
- package/node_modules/@tiptap/suggestion/src/plugin/view.ts +0 -236
- package/node_modules/@tiptap/suggestion/src/suggestion.ts +0 -151
- package/node_modules/@tiptap/suggestion/src/types.ts +0 -439
- package/node_modules/@types/use-sync-external-store/LICENSE +0 -21
- package/node_modules/@types/use-sync-external-store/README.md +0 -15
- package/node_modules/@types/use-sync-external-store/index.d.ts +0 -5
- package/node_modules/@types/use-sync-external-store/package.json +0 -30
- package/node_modules/@types/use-sync-external-store/shim/index.d.ts +0 -1
- package/node_modules/@types/use-sync-external-store/shim/with-selector.d.ts +0 -1
- package/node_modules/@types/use-sync-external-store/with-selector.d.ts +0 -7
- package/node_modules/fast-equals/LICENSE +0 -21
- package/node_modules/fast-equals/README.md +0 -479
- package/node_modules/fast-equals/dist/cjs/index.cjs +0 -796
- package/node_modules/fast-equals/dist/cjs/index.cjs.map +0 -1
- package/node_modules/fast-equals/dist/cjs/index.d.cts +0 -211
- package/node_modules/fast-equals/dist/es/index.d.mts +0 -211
- package/node_modules/fast-equals/dist/es/index.mjs +0 -785
- package/node_modules/fast-equals/dist/es/index.mjs.map +0 -1
- package/node_modules/fast-equals/dist/umd/index.d.ts +0 -211
- package/node_modules/fast-equals/dist/umd/index.js +0 -802
- package/node_modules/fast-equals/dist/umd/index.js.map +0 -1
- package/node_modules/fast-equals/index.d.ts +0 -211
- package/node_modules/fast-equals/package.json +0 -120
- package/node_modules/linkifyjs/LICENSE +0 -19
- package/node_modules/linkifyjs/README.md +0 -47
- package/node_modules/linkifyjs/dist/linkify.cjs +0 -1854
- package/node_modules/linkifyjs/dist/linkify.d.cts +0 -637
- package/node_modules/linkifyjs/dist/linkify.d.mts +0 -637
- package/node_modules/linkifyjs/dist/linkify.js +0 -1859
- package/node_modules/linkifyjs/dist/linkify.min.js +0 -1
- package/node_modules/linkifyjs/dist/linkify.mjs +0 -1836
- package/node_modules/linkifyjs/package.json +0 -38
- package/node_modules/orderedmap/LICENSE +0 -19
- package/node_modules/orderedmap/README.md +0 -69
- package/node_modules/orderedmap/dist/index.cjs +0 -139
- package/node_modules/orderedmap/dist/index.d.cts +0 -33
- package/node_modules/orderedmap/dist/index.d.ts +0 -33
- package/node_modules/orderedmap/dist/index.js +0 -137
- package/node_modules/orderedmap/package.json +0 -39
- package/node_modules/prosemirror-changeset/CHANGELOG.md +0 -171
- package/node_modules/prosemirror-changeset/LICENSE +0 -19
- package/node_modules/prosemirror-changeset/README.md +0 -175
- package/node_modules/prosemirror-changeset/dist/index.cjs +0 -588
- package/node_modules/prosemirror-changeset/dist/index.d.cts +0 -187
- package/node_modules/prosemirror-changeset/dist/index.d.ts +0 -187
- package/node_modules/prosemirror-changeset/dist/index.js +0 -722
- package/node_modules/prosemirror-changeset/package.json +0 -40
- package/node_modules/prosemirror-changeset/src/README.md +0 -32
- package/node_modules/prosemirror-changeset/src/change.ts +0 -189
- package/node_modules/prosemirror-changeset/src/changeset.ts +0 -212
- package/node_modules/prosemirror-changeset/src/diff.ts +0 -158
- package/node_modules/prosemirror-changeset/src/simplify.ts +0 -132
- package/node_modules/prosemirror-changeset/test/test-changed-range.ts +0 -48
- package/node_modules/prosemirror-changeset/test/test-changes.ts +0 -211
- package/node_modules/prosemirror-changeset/test/test-diff.ts +0 -77
- package/node_modules/prosemirror-changeset/test/test-merge.ts +0 -56
- package/node_modules/prosemirror-changeset/test/test-simplify.ts +0 -74
- package/node_modules/prosemirror-commands/.tern-project +0 -8
- package/node_modules/prosemirror-commands/CHANGELOG.md +0 -328
- package/node_modules/prosemirror-commands/CONTRIBUTING.md +0 -104
- package/node_modules/prosemirror-commands/LICENSE +0 -19
- package/node_modules/prosemirror-commands/README.md +0 -28
- package/node_modules/prosemirror-commands/dist/index.cjs +0 -688
- package/node_modules/prosemirror-commands/dist/index.d.cts +0 -215
- package/node_modules/prosemirror-commands/dist/index.d.ts +0 -215
- package/node_modules/prosemirror-commands/dist/index.js +0 -852
- package/node_modules/prosemirror-commands/package.json +0 -39
- package/node_modules/prosemirror-commands/src/README.md +0 -40
- package/node_modules/prosemirror-commands/src/commands.ts +0 -786
- package/node_modules/prosemirror-dropcursor/CHANGELOG.md +0 -149
- package/node_modules/prosemirror-dropcursor/CONTRIBUTING.md +0 -104
- package/node_modules/prosemirror-dropcursor/LICENSE +0 -19
- package/node_modules/prosemirror-dropcursor/README.md +0 -50
- package/node_modules/prosemirror-dropcursor/dist/index.cjs +0 -200
- package/node_modules/prosemirror-dropcursor/dist/index.d.cts +0 -38
- package/node_modules/prosemirror-dropcursor/dist/index.d.ts +0 -38
- package/node_modules/prosemirror-dropcursor/dist/index.js +0 -163
- package/node_modules/prosemirror-dropcursor/package.json +0 -38
- package/node_modules/prosemirror-dropcursor/src/dropcursor.ts +0 -186
- package/node_modules/prosemirror-gapcursor/CHANGELOG.md +0 -122
- package/node_modules/prosemirror-gapcursor/CONTRIBUTING.md +0 -104
- package/node_modules/prosemirror-gapcursor/LICENSE +0 -19
- package/node_modules/prosemirror-gapcursor/README.md +0 -31
- package/node_modules/prosemirror-gapcursor/dist/index.cjs +0 -239
- package/node_modules/prosemirror-gapcursor/dist/index.d.cts +0 -31
- package/node_modules/prosemirror-gapcursor/dist/index.d.ts +0 -31
- package/node_modules/prosemirror-gapcursor/dist/index.js +0 -239
- package/node_modules/prosemirror-gapcursor/package.json +0 -43
- package/node_modules/prosemirror-gapcursor/src/README.md +0 -21
- package/node_modules/prosemirror-gapcursor/src/gapcursor.ts +0 -141
- package/node_modules/prosemirror-gapcursor/src/index.ts +0 -91
- package/node_modules/prosemirror-gapcursor/style/gapcursor.css +0 -25
- package/node_modules/prosemirror-history/.tern-project +0 -8
- package/node_modules/prosemirror-history/CHANGELOG.md +0 -176
- package/node_modules/prosemirror-history/CONTRIBUTING.md +0 -104
- package/node_modules/prosemirror-history/LICENSE +0 -19
- package/node_modules/prosemirror-history/README.md +0 -27
- package/node_modules/prosemirror-history/dist/index.cjs +0 -383
- package/node_modules/prosemirror-history/dist/index.d.cts +0 -64
- package/node_modules/prosemirror-history/dist/index.d.ts +0 -64
- package/node_modules/prosemirror-history/dist/index.js +0 -454
- package/node_modules/prosemirror-history/package.json +0 -40
- package/node_modules/prosemirror-history/src/README.md +0 -23
- package/node_modules/prosemirror-history/src/history.ts +0 -466
- package/node_modules/prosemirror-inputrules/.tern-project +0 -8
- package/node_modules/prosemirror-inputrules/CHANGELOG.md +0 -127
- package/node_modules/prosemirror-inputrules/CONTRIBUTING.md +0 -104
- package/node_modules/prosemirror-inputrules/LICENSE +0 -19
- package/node_modules/prosemirror-inputrules/README.md +0 -29
- package/node_modules/prosemirror-inputrules/dist/index.cjs +0 -194
- package/node_modules/prosemirror-inputrules/dist/index.d.cts +0 -131
- package/node_modules/prosemirror-inputrules/dist/index.d.ts +0 -131
- package/node_modules/prosemirror-inputrules/dist/index.js +0 -239
- package/node_modules/prosemirror-inputrules/package.json +0 -36
- package/node_modules/prosemirror-inputrules/src/README.md +0 -23
- package/node_modules/prosemirror-inputrules/src/index.ts +0 -4
- package/node_modules/prosemirror-inputrules/src/inputrules.ts +0 -167
- package/node_modules/prosemirror-inputrules/src/rulebuilders.ts +0 -59
- package/node_modules/prosemirror-inputrules/src/rules.ts +0 -17
- package/node_modules/prosemirror-keymap/.tern-project +0 -8
- package/node_modules/prosemirror-keymap/CHANGELOG.md +0 -104
- package/node_modules/prosemirror-keymap/CONTRIBUTING.md +0 -104
- package/node_modules/prosemirror-keymap/LICENSE +0 -19
- package/node_modules/prosemirror-keymap/README.md +0 -27
- package/node_modules/prosemirror-keymap/dist/index.cjs +0 -65
- package/node_modules/prosemirror-keymap/dist/index.d.cts +0 -47
- package/node_modules/prosemirror-keymap/dist/index.d.ts +0 -47
- package/node_modules/prosemirror-keymap/dist/index.js +0 -128
- package/node_modules/prosemirror-keymap/package.json +0 -38
- package/node_modules/prosemirror-keymap/src/README.md +0 -5
- package/node_modules/prosemirror-keymap/src/keymap.ts +0 -105
- package/node_modules/prosemirror-model/.tern-project +0 -8
- package/node_modules/prosemirror-model/CHANGELOG.md +0 -782
- package/node_modules/prosemirror-model/CONTRIBUTING.md +0 -104
- package/node_modules/prosemirror-model/LICENSE +0 -19
- package/node_modules/prosemirror-model/README.md +0 -29
- package/node_modules/prosemirror-model/dist/index.cjs +0 -2911
- package/node_modules/prosemirror-model/dist/index.d.cts +0 -1683
- package/node_modules/prosemirror-model/dist/index.d.ts +0 -1683
- package/node_modules/prosemirror-model/dist/index.js +0 -3463
- package/node_modules/prosemirror-model/package.json +0 -38
- package/node_modules/prosemirror-model/src/README.md +0 -62
- package/node_modules/prosemirror-model/src/comparedeep.ts +0 -15
- package/node_modules/prosemirror-model/src/content.ts +0 -413
- package/node_modules/prosemirror-model/src/diff.ts +0 -57
- package/node_modules/prosemirror-model/src/dom.ts +0 -1
- package/node_modules/prosemirror-model/src/fragment.ts +0 -268
- package/node_modules/prosemirror-model/src/from_dom.ts +0 -851
- package/node_modules/prosemirror-model/src/index.ts +0 -11
- package/node_modules/prosemirror-model/src/mark.ts +0 -110
- package/node_modules/prosemirror-model/src/node.ts +0 -410
- package/node_modules/prosemirror-model/src/replace.ts +0 -217
- package/node_modules/prosemirror-model/src/resolvedpos.ts +0 -289
- package/node_modules/prosemirror-model/src/schema.ts +0 -691
- package/node_modules/prosemirror-model/src/to_dom.ts +0 -242
- package/node_modules/prosemirror-schema-list/.tern-project +0 -8
- package/node_modules/prosemirror-schema-list/CHANGELOG.md +0 -140
- package/node_modules/prosemirror-schema-list/CONTRIBUTING.md +0 -100
- package/node_modules/prosemirror-schema-list/LICENSE +0 -19
- package/node_modules/prosemirror-schema-list/README.md +0 -28
- package/node_modules/prosemirror-schema-list/dist/index.cjs +0 -253
- package/node_modules/prosemirror-schema-list/dist/index.d.cts +0 -71
- package/node_modules/prosemirror-schema-list/dist/index.d.ts +0 -71
- package/node_modules/prosemirror-schema-list/dist/index.js +0 -289
- package/node_modules/prosemirror-schema-list/package.json +0 -40
- package/node_modules/prosemirror-schema-list/src/README.md +0 -29
- package/node_modules/prosemirror-schema-list/src/schema-list.ts +0 -267
- package/node_modules/prosemirror-state/.tern-project +0 -8
- package/node_modules/prosemirror-state/CHANGELOG.md +0 -296
- package/node_modules/prosemirror-state/CONTRIBUTING.md +0 -104
- package/node_modules/prosemirror-state/LICENSE +0 -19
- package/node_modules/prosemirror-state/README.md +0 -28
- package/node_modules/prosemirror-state/dist/index.cjs +0 -884
- package/node_modules/prosemirror-state/dist/index.d.cts +0 -709
- package/node_modules/prosemirror-state/dist/index.d.ts +0 -709
- package/node_modules/prosemirror-state/dist/index.js +0 -1002
- package/node_modules/prosemirror-state/package.json +0 -39
- package/node_modules/prosemirror-state/src/README.md +0 -42
- package/node_modules/prosemirror-state/src/index.ts +0 -7
- package/node_modules/prosemirror-state/src/plugin.ts +0 -142
- package/node_modules/prosemirror-state/src/selection.ts +0 -462
- package/node_modules/prosemirror-state/src/state.ts +0 -266
- package/node_modules/prosemirror-state/src/transaction.ts +0 -215
- package/node_modules/prosemirror-tables/LICENSE +0 -19
- package/node_modules/prosemirror-tables/README.md +0 -254
- package/node_modules/prosemirror-tables/dist/index.cjs +0 -2683
- package/node_modules/prosemirror-tables/dist/index.d.cts +0 -751
- package/node_modules/prosemirror-tables/dist/index.d.cts.map +0 -1
- package/node_modules/prosemirror-tables/dist/index.d.ts +0 -751
- package/node_modules/prosemirror-tables/dist/index.d.ts.map +0 -1
- package/node_modules/prosemirror-tables/dist/index.js +0 -2626
- package/node_modules/prosemirror-tables/dist/index.js.map +0 -1
- package/node_modules/prosemirror-tables/package.json +0 -80
- package/node_modules/prosemirror-tables/style/tables.css +0 -48
- package/node_modules/prosemirror-transform/.tern-project +0 -8
- package/node_modules/prosemirror-transform/CHANGELOG.md +0 -530
- package/node_modules/prosemirror-transform/CONTRIBUTING.md +0 -104
- package/node_modules/prosemirror-transform/LICENSE +0 -19
- package/node_modules/prosemirror-transform/README.md +0 -29
- package/node_modules/prosemirror-transform/dist/index.cjs +0 -2014
- package/node_modules/prosemirror-transform/dist/index.d.cts +0 -857
- package/node_modules/prosemirror-transform/dist/index.d.ts +0 -857
- package/node_modules/prosemirror-transform/dist/index.js +0 -2272
- package/node_modules/prosemirror-transform/package.json +0 -37
- package/node_modules/prosemirror-transform/src/README.md +0 -59
- package/node_modules/prosemirror-transform/src/attr_step.ts +0 -98
- package/node_modules/prosemirror-transform/src/index.ts +0 -11
- package/node_modules/prosemirror-transform/src/map.ts +0 -287
- package/node_modules/prosemirror-transform/src/mark.ts +0 -90
- package/node_modules/prosemirror-transform/src/mark_step.ts +0 -287
- package/node_modules/prosemirror-transform/src/replace.ts +0 -483
- package/node_modules/prosemirror-transform/src/replace_step.ts +0 -187
- package/node_modules/prosemirror-transform/src/step.ts +0 -97
- package/node_modules/prosemirror-transform/src/structure.ts +0 -349
- package/node_modules/prosemirror-transform/src/transform.ts +0 -271
- package/node_modules/prosemirror-view/.tern-project +0 -8
- package/node_modules/prosemirror-view/CHANGELOG.md +0 -2543
- package/node_modules/prosemirror-view/CONTRIBUTING.md +0 -104
- package/node_modules/prosemirror-view/LICENSE +0 -19
- package/node_modules/prosemirror-view/README.md +0 -28
- package/node_modules/prosemirror-view/dist/index.cjs +0 -5549
- package/node_modules/prosemirror-view/dist/index.d.cts +0 -913
- package/node_modules/prosemirror-view/dist/index.d.ts +0 -913
- package/node_modules/prosemirror-view/dist/index.js +0 -6053
- package/node_modules/prosemirror-view/package.json +0 -43
- package/node_modules/prosemirror-view/src/README.md +0 -38
- package/node_modules/prosemirror-view/src/browser.ts +0 -24
- package/node_modules/prosemirror-view/src/capturekeys.ts +0 -344
- package/node_modules/prosemirror-view/src/clipboard.ts +0 -282
- package/node_modules/prosemirror-view/src/decoration.ts +0 -817
- package/node_modules/prosemirror-view/src/dom.ts +0 -166
- package/node_modules/prosemirror-view/src/domchange.ts +0 -383
- package/node_modules/prosemirror-view/src/domcoords.ts +0 -517
- package/node_modules/prosemirror-view/src/domobserver.ts +0 -397
- package/node_modules/prosemirror-view/src/index.ts +0 -826
- package/node_modules/prosemirror-view/src/input.ts +0 -885
- package/node_modules/prosemirror-view/src/selection.ts +0 -229
- package/node_modules/prosemirror-view/src/viewdesc.ts +0 -1624
- package/node_modules/prosemirror-view/style/prosemirror.css +0 -54
- package/node_modules/rope-sequence/LICENSE +0 -19
- package/node_modules/rope-sequence/README.md +0 -63
- package/node_modules/rope-sequence/dist/index.cjs +0 -209
- package/node_modules/rope-sequence/dist/index.d.cts +0 -11
- package/node_modules/rope-sequence/dist/index.d.ts +0 -11
- package/node_modules/rope-sequence/dist/index.js +0 -207
- package/node_modules/rope-sequence/index.js +0 -190
- package/node_modules/rope-sequence/package.json +0 -34
- package/node_modules/rope-sequence/test.js +0 -78
- package/node_modules/use-sync-external-store/LICENSE +0 -21
- package/node_modules/use-sync-external-store/README.md +0 -5
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -97
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -85
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -95
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js +0 -88
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.js +0 -59
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -66
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -96
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -84
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js +0 -27
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js +0 -13
- package/node_modules/use-sync-external-store/index.js +0 -7
- package/node_modules/use-sync-external-store/package.json +0 -43
- package/node_modules/use-sync-external-store/shim/index.js +0 -7
- package/node_modules/use-sync-external-store/shim/index.native.js +0 -7
- package/node_modules/use-sync-external-store/shim/with-selector.js +0 -7
- package/node_modules/use-sync-external-store/with-selector.js +0 -7
- package/node_modules/w3c-keyname/.tern-port +0 -1
- package/node_modules/w3c-keyname/LICENSE +0 -19
- package/node_modules/w3c-keyname/README.md +0 -18
- package/node_modules/w3c-keyname/index.cjs +0 -127
- package/node_modules/w3c-keyname/index.d.cts +0 -5
- package/node_modules/w3c-keyname/index.d.ts +0 -5
- package/node_modules/w3c-keyname/index.js +0 -119
- package/node_modules/w3c-keyname/package.json +0 -37
- package/src/legacy/ask.tsx +0 -154
- package/src/legacy/basic.tsx +0 -127
- package/src/legacy/block-meta.ts +0 -42
- package/src/legacy/block-ops.ts +0 -179
- package/src/legacy/blocks.tsx +0 -165
- package/src/legacy/boundary.tsx +0 -17
- package/src/legacy/content.ts +0 -22
- package/src/legacy/drag-handle.tsx +0 -188
- package/src/legacy/dynamic.tsx +0 -145
- package/src/legacy/editor.css +0 -356
- package/src/legacy/editor.tsx +0 -425
- package/src/legacy/extensions.ts +0 -78
- package/src/legacy/insert-pattern.ts +0 -13
- package/src/legacy/insert.ts +0 -9
- package/src/legacy/inserter.tsx +0 -164
- package/src/legacy/inspector.tsx +0 -237
- package/src/legacy/layout-ui.tsx +0 -227
- package/src/legacy/layout.tsx +0 -174
- package/src/legacy/media.ts +0 -31
- package/src/legacy/nodes.tsx +0 -107
- package/src/legacy/outline.tsx +0 -124
- package/src/legacy/panels.ts +0 -22
- package/src/legacy/rank.ts +0 -22
- package/src/legacy/registry.ts +0 -20
- package/src/legacy/resize-handles.tsx +0 -149
- package/src/legacy/style-attr.ts +0 -69
- package/src/legacy/synced.tsx +0 -128
- package/src/legacy/toolbar.tsx +0 -238
- package/src/legacy/unknown.tsx +0 -74
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["ListItemName","TextStyleName","Node","mergeAttributes","wrappingInputRule","Fragment","Extension","Node","mergeAttributes","renderNestedMarkdownContent","getNodeType","getNodeAtPosition","isNodeActive","isAtStartOfNode","isNodeActive","isAtEndOfNode","isNodeActive","getPreviousBlockSibling","Fragment","TextSelection","Extension","Node","mergeAttributes","Plugin","wrappingInputRule","Node","mergeAttributes","renderNestedMarkdownContent","getRenderedAttributes","wrappingInputRule","Node","mergeAttributes","parseIndentedBlocks","Extension"],"sources":["../../src/bullet-list/bullet-list.ts","../../src/helpers/getBranchingNestedListAtCursor.ts","../../src/helpers/hoistBranchingNestedList.ts","../../src/helpers/handleDeleteBranchingNestedList.ts","../../src/helpers/createBranchingListDeleteKeymap.ts","../../src/ordered-list/roman.ts","../../src/item/list-item.ts","../../src/keymap/listHelpers/findListItemPos.ts","../../src/keymap/listHelpers/getNextListDepth.ts","../../src/keymap/listHelpers/hasListBefore.ts","../../src/keymap/listHelpers/handleBackspace.ts","../../src/keymap/listHelpers/nextListIsDeeper.ts","../../src/keymap/listHelpers/nextListIsHigher.ts","../../src/keymap/listHelpers/handleDelete.ts","../../src/keymap/listHelpers/handleTab.ts","../../src/keymap/list-keymap.ts","../../src/ordered-list/utils.ts","../../src/ordered-list/collectOrderedListItemsFromSource.ts","../../src/ordered-list/ordered-list.ts","../../src/task-item/task-item.ts","../../src/task-list/task-list.ts","../../src/kit/index.ts"],"sourcesContent":["import { mergeAttributes, Node, wrappingInputRule } from '@tiptap/core'\n\nconst ListItemName = 'listItem'\nconst TextStyleName = 'textStyle'\n\nexport interface BulletListOptions {\n /**\n * The node name for the list items\n * @default 'listItem'\n * @example 'paragraph'\n */\n itemTypeName: string\n\n /**\n * HTML attributes to add to the bullet list element\n * @default {}\n * @example { class: 'foo' }\n */\n HTMLAttributes: Record<string, any>\n\n /**\n * Keep the marks when splitting the list\n * @default false\n * @example true\n */\n keepMarks: boolean\n\n /**\n * Keep the attributes when splitting the list\n * @default false\n * @example true\n */\n keepAttributes: boolean\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n bulletList: {\n /**\n * Toggle a bullet list\n */\n toggleBulletList: () => ReturnType\n }\n }\n}\n\n/**\n * Matches a bullet list to a dash or asterisk.\n */\nexport const bulletListInputRegex = /^\\s*([-+*])\\s$/\n\n/**\n * This extension allows you to create bullet lists.\n * This requires the ListItem extension\n * @see https://tiptap.dev/api/nodes/bullet-list\n * @see https://tiptap.dev/api/nodes/list-item.\n */\nexport const BulletList = Node.create<BulletListOptions>({\n name: 'bulletList',\n\n addOptions() {\n return {\n itemTypeName: 'listItem',\n HTMLAttributes: {},\n keepMarks: false,\n keepAttributes: false,\n }\n },\n\n group: 'block list',\n\n content() {\n return `${this.options.itemTypeName}+`\n },\n\n parseHTML() {\n return [{ tag: 'ul' }]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n markdownTokenName: 'list',\n\n parseMarkdown: (token, helpers) => {\n if (token.type !== 'list' || (token as any).ordered) {\n return []\n }\n\n return {\n type: 'bulletList',\n content: token.items ? helpers.parseChildren(token.items) : [],\n }\n },\n\n renderMarkdown: (node, h) => {\n if (!node.content) {\n return ''\n }\n\n return h.renderChildren(node.content, '\\n')\n },\n\n markdownOptions: {\n indentsContent: true,\n },\n\n addCommands() {\n return {\n toggleBulletList:\n () =>\n ({ commands, chain }) => {\n if (this.options.keepAttributes) {\n return chain()\n .toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)\n .updateAttributes(ListItemName, this.editor.getAttributes(TextStyleName))\n .run()\n }\n return commands.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-8': () => this.editor.commands.toggleBulletList(),\n }\n },\n\n addInputRules() {\n let inputRule = wrappingInputRule({\n find: bulletListInputRegex,\n type: this.type,\n })\n\n if (this.options.keepMarks || this.options.keepAttributes) {\n inputRule = wrappingInputRule({\n find: bulletListInputRegex,\n type: this.type,\n keepMarks: this.options.keepMarks,\n keepAttributes: this.options.keepAttributes,\n getAttributes: () => {\n return this.editor.getAttributes(TextStyleName)\n },\n editor: this.editor,\n })\n }\n return [inputRule]\n },\n})\n","import type { Node } from '@tiptap/pm/model'\nimport type { EditorState } from '@tiptap/pm/state'\n\nexport type BranchingNestedListAtCursor = {\n listItemDepth: number\n nestedList: Node\n nestedListPos: number\n insertPos: number\n items: Node[]\n}\n\n/**\n * Resolves a branching nested list immediately after the cursor when the selection is\n * collapsed at the end of a textblock inside a list item.\n *\n * @param state - The editor state to inspect.\n * @param itemName - The list item node name (for example `listItem` or `taskItem`).\n * @param wrapperNames - List wrapper node names (for example `bulletList` and `orderedList`).\n * @returns Resolved positions and nodes for hoisting, or `null` when not applicable.\n *\n * @example\n * ```ts\n * const context = getBranchingNestedListAtCursor(editor.state, 'listItem', [\n * 'bulletList',\n * 'orderedList',\n * ])\n *\n * if (context) {\n * // cursor is at the end of Item 1 before a branching nested sublist\n * }\n * ```\n */\nexport const getBranchingNestedListAtCursor = (\n state: EditorState,\n itemName: string,\n wrapperNames: string[],\n): BranchingNestedListAtCursor | null => {\n const { selection } = state\n\n if (!selection.empty) {\n return null\n }\n\n const { $from } = selection\n\n if (!$from.parent.isTextblock) {\n return null\n }\n\n if ($from.parentOffset !== $from.parent.content.size) {\n return null\n }\n\n let listItemDepth = -1\n\n for (let depth = $from.depth; depth > 0; depth -= 1) {\n if ($from.node(depth).type.name === itemName) {\n listItemDepth = depth\n break\n }\n }\n\n if (listItemDepth < 0) {\n return null\n }\n\n const listItem = $from.node(listItemDepth)\n const indexInListItem = $from.index(listItemDepth)\n\n if (indexInListItem + 1 >= listItem.childCount) {\n return null\n }\n\n const nextChild = listItem.child(indexInListItem + 1)\n\n if (!wrapperNames.includes(nextChild.type.name)) {\n return null\n }\n\n const itemType = state.schema.nodes[itemName]\n let hasBranching = false\n\n nextChild.forEach(child => {\n if (child.type === itemType && child.childCount > 1) {\n hasBranching = true\n }\n })\n\n if (!hasBranching) {\n return null\n }\n\n const nodeAfter = state.doc.resolve($from.after()).nodeAfter\n\n if (!nodeAfter || !wrapperNames.includes(nodeAfter.type.name)) {\n return null\n }\n\n const items: Node[] = []\n\n nodeAfter.forEach(child => {\n items.push(child)\n })\n\n if (items.length === 0) {\n return null\n }\n\n return {\n listItemDepth,\n nestedList: nodeAfter,\n nestedListPos: $from.after(),\n insertPos: $from.after(listItemDepth),\n items,\n }\n}\n","import { Fragment } from '@tiptap/pm/model'\nimport type { EditorState, Transaction } from '@tiptap/pm/state'\n\nimport { getBranchingNestedListAtCursor } from './getBranchingNestedListAtCursor.js'\n\n/**\n * Hoists all list items from a branching nested list after the cursor into the parent list.\n *\n * Use this when `joinForward` cannot restructure a nested list that contains list items\n * with sublists (see issue #6906).\n *\n * @param state - The editor state to transform.\n * @param dispatch - Optional dispatch function for the transaction.\n * @param itemName - The list item node name (for example `listItem` or `taskItem`).\n * @param wrapperNames - List wrapper node names (for example `bulletList` and `orderedList`).\n * @returns `true` when the nested list was hoisted, otherwise `false`.\n *\n * @example\n * ```ts\n * // Cursor at the end of \"Item 1\" before a nested list with branching items.\n * hoistBranchingNestedList(editor.state, editor.view.dispatch, 'listItem', [\n * 'bulletList',\n * 'orderedList',\n * ])\n * ```\n */\nexport const hoistBranchingNestedList = (\n state: EditorState,\n dispatch: ((tr: Transaction) => void) | undefined,\n itemName: string,\n wrapperNames: string[],\n) => {\n const context = getBranchingNestedListAtCursor(state, itemName, wrapperNames)\n\n if (!context) {\n return false\n }\n\n const { selection } = state\n const { nestedList, nestedListPos, insertPos, items } = context\n const tr = state.tr\n\n tr.delete(nestedListPos, nestedListPos + nestedList.nodeSize)\n\n const mappedInsertPos = tr.mapping.map(insertPos)\n\n tr.insert(mappedInsertPos, Fragment.from(items))\n\n tr.setSelection(selection.map(tr.doc, tr.mapping))\n\n if (dispatch) {\n dispatch(tr)\n }\n\n return true\n}\n","import type { Editor } from '@tiptap/core'\n\nimport { hoistBranchingNestedList } from './hoistBranchingNestedList.js'\n\n/**\n * Handles Delete for a list item when a branching nested sublist follows the cursor.\n *\n * @param editor - The editor instance whose state should be updated.\n * @param itemName - The list item node name (for example `listItem` or `taskItem`).\n * @param wrapperNames - List wrapper node names (for example `bulletList` and `orderedList`).\n * @returns `true` when the nested list was hoisted, otherwise `false`.\n *\n * @example\n * ```ts\n * Delete: () =>\n * handleDeleteBranchingNestedList(editor, 'listItem', ['bulletList', 'orderedList']),\n * ```\n */\nexport const handleDeleteBranchingNestedList = (\n editor: Editor,\n itemName: string,\n wrapperNames: string[],\n) => {\n return hoistBranchingNestedList(editor.state, editor.view.dispatch, itemName, wrapperNames)\n}\n","import { Extension } from '@tiptap/core'\n\nimport { handleDeleteBranchingNestedList } from './handleDeleteBranchingNestedList.js'\n\n/**\n * Creates a high-priority keymap extension that handles Delete for branching nested lists.\n * Kept separate from the list item node so Enter/Tab shortcuts keep their default priority.\n */\nexport const createBranchingListDeleteKeymap = (itemName: string, wrapperNames: string[]) => {\n return Extension.create({\n name: `${itemName}BranchingDeleteKeymap`,\n priority: 101,\n\n addKeyboardShortcuts() {\n const handleDelete = () =>\n handleDeleteBranchingNestedList(this.editor, itemName, wrapperNames)\n\n return {\n Delete: handleDelete,\n 'Mod-Delete': handleDelete,\n }\n },\n })\n}\n","const ROMAN_NUMERALS: [number, string][] = [\n [1000, 'm'],\n [900, 'cm'],\n [500, 'd'],\n [400, 'cd'],\n [100, 'c'],\n [90, 'xc'],\n [50, 'l'],\n [40, 'xl'],\n [10, 'x'],\n [9, 'ix'],\n [5, 'v'],\n [4, 'iv'],\n [1, 'i'],\n]\n\nconst ALPHA_NUMERALS = 'abcdefghijklmnopqrstuvwxyz'\n\n/** Alpha list markers support at most 2 letters (a–z, aa–zz), matching {@link fromAlpha}. */\nexport const ORDERED_LIST_ALPHA_MARKER_PATTERN = '[a-zA-Z]{1,2}'\n\n/**\n * Marker segment for ordered list lines: numeric, roman, or 1–2 letter alpha.\n * Roman is matched before alpha so \"iii\" is roman; invalid romans like \"aa\" fall through to alpha.\n */\nexport const ORDERED_LIST_MARKER_PATTERN = String.raw`\\d+|[ivxlcdmIVXLCDM]+|${ORDERED_LIST_ALPHA_MARKER_PATTERN}`\n\n/**\n * Convert a number to lowercase roman numerals.\n * @example toRoman(1) // 'i'\n * @example toRoman(4) // 'iv'\n */\nexport function toRoman(num: number): string {\n let remaining = num\n let result = ''\n\n for (const [value, numeral] of ROMAN_NUMERALS) {\n while (remaining >= value) {\n result += numeral\n remaining -= value\n }\n }\n\n return result\n}\n\n/**\n * Convert a number to uppercase roman numerals.\n * @example toRomanUpper(1) // 'I'\n * @example toRomanUpper(4) // 'IV'\n */\nexport function toRomanUpper(num: number): string {\n return toRoman(num).toUpperCase()\n}\n\nfunction fromRoman(roman: string): number {\n const lower = roman.toLowerCase()\n let index = 0\n let result = 0\n\n while (index < lower.length) {\n let matched = false\n\n for (const [value, numeral] of ROMAN_NUMERALS) {\n if (lower.startsWith(numeral, index)) {\n result += value\n index += numeral.length\n matched = true\n break\n }\n }\n\n if (!matched) {\n return 0\n }\n }\n\n return result\n}\n\nfunction isValidRoman(marker: string): boolean {\n if (!/^[ivxlcdmIVXLCDM]+$/.test(marker)) {\n return false\n }\n\n const value = fromRoman(marker)\n\n if (value <= 0) {\n return false\n }\n\n const expected = marker === marker.toLowerCase() ? toRoman(value) : toRomanUpper(value)\n\n return expected === marker\n}\n\nfunction fromAlpha(marker: string): number {\n const lower = marker.toLowerCase()\n\n if (lower.length === 1) {\n return lower.charCodeAt(0) - 'a'.charCodeAt(0) + 1\n }\n\n if (lower.length === 2) {\n const first = lower.charCodeAt(0) - 'a'.charCodeAt(0)\n const second = lower.charCodeAt(1) - 'a'.charCodeAt(0)\n\n return (first + 1) * 26 + second + 1\n }\n\n return 0\n}\n\nfunction toRomanAlpha(num: number): string {\n if (num <= 26) {\n return ALPHA_NUMERALS[num - 1]\n }\n\n const first = Math.floor((num - 1) / 26) - 1\n const second = (num - 1) % 26\n\n if (first < 0) {\n return ALPHA_NUMERALS[second]\n }\n\n return ALPHA_NUMERALS[first] + ALPHA_NUMERALS[second]\n}\n\n/**\n * Extract the list marker type from a marker string.\n * Supports \"1\", \"a\", \"A\", \"i\", \"I\" marker styles.\n *\n * @param marker The text content of the list marker (e.g. \"a\", \"1\", \"iii\", \"b\")\n * @returns The normalized type string, or undefined for default numeric type\n */\nexport function detectMarkerType(marker: string): string | undefined {\n if (!marker || /^\\d+$/.test(marker)) {\n return undefined\n }\n\n if (isValidRoman(marker)) {\n return marker === marker.toLowerCase() ? 'i' : 'I'\n }\n\n if (/^[a-z]{1,2}$/.test(marker)) {\n return 'a'\n }\n\n if (/^[A-Z]{1,2}$/.test(marker)) {\n return 'A'\n }\n\n return undefined\n}\n\n/**\n * Convert a list marker string to its numeric start position.\n *\n * @param marker The text content of the list marker (e.g. \"3\", \"b\", \"II\")\n * @returns The 1-based start value for the ordered list\n */\nexport function markerToStart(marker: string): number {\n if (/^\\d+$/.test(marker)) {\n return parseInt(marker, 10)\n }\n\n const type = detectMarkerType(marker)\n\n if (type === 'i' || type === 'I') {\n return fromRoman(marker)\n }\n\n if (type === 'a' || type === 'A') {\n const start = fromAlpha(marker)\n\n return start > 0 ? start : 1\n }\n\n const parsed = parseInt(marker, 10)\n\n return Number.isNaN(parsed) ? 1 : parsed\n}\n\nfunction startToMarker(type: string, start: number): string {\n if (type === 'numeric') {\n return String(start)\n }\n\n switch (type) {\n case 'a':\n return toRomanAlpha(start)\n case 'A':\n return toRomanAlpha(start).toUpperCase()\n case 'i':\n return toRoman(start)\n case 'I':\n return toRomanUpper(start)\n default:\n return String(start)\n }\n}\n\n/**\n * Returns true when all markers share the same style and increment by 1.\n * Style is inferred from the first marker so ambiguous letters (e.g. \"c\", \"i\")\n * are not re-classified differently on later lines.\n */\nexport function areOrderedListMarkersSequential(markers: string[]): boolean {\n if (markers.length === 0) {\n return false\n }\n\n const firstType = detectMarkerType(markers[0]) ?? 'numeric'\n const firstStart = markerToStart(markers[0])\n\n if (firstStart < 1) {\n return false\n }\n\n for (let i = 0; i < markers.length; i++) {\n const expected = startToMarker(firstType, firstStart + i)\n\n if (markers[i] !== expected) {\n return false\n }\n }\n\n return true\n}\n\nexport interface ParsedListMarker {\n type?: string\n start: number\n}\n\n/**\n * Parse a list marker into HTML ordered-list attrs (type + start).\n */\nexport function parseListMarker(marker: string): ParsedListMarker {\n return {\n type: detectMarkerType(marker),\n start: markerToStart(marker),\n }\n}\n\n/**\n * Build orderedList node attrs from the first list item marker.\n */\nexport function buildOrderedListAttrsFromMarker(marker: string): Record<string, string | number> {\n const { type, start } = parseListMarker(marker)\n const attrs: Record<string, string | number> = {}\n\n if (type) {\n attrs.type = type\n }\n\n if (start !== 1) {\n attrs.start = start\n }\n\n return attrs\n}\n\n/**\n * Returns the list marker prefix for a given item at a given index.\n *\n * @param type The list type attribute (e.g. \"a\", \"A\", \"i\", \"I\", null/undefined for default)\n * @param index The zero-based index of the list item\n * @param separator The separator to use (default: \". \")\n * @returns The marker string (e.g. \"a. \", \"I. \", \"1. \")\n */\nexport function getListMarker(\n type: string | null | undefined,\n index: number,\n separator = '. ',\n): string {\n const position = index + 1\n\n if (!type || type === '1') {\n return `${position}${separator}`\n }\n\n switch (type) {\n case 'a':\n return `${toRomanAlpha(position)}${separator}`\n case 'A':\n return `${toRomanAlpha(position).toUpperCase()}${separator}`\n case 'i':\n return `${toRoman(position)}${separator}`\n case 'I':\n return `${toRomanUpper(position)}${separator}`\n default:\n return `${position}${separator}`\n }\n}\n","import type { JSONContent, MarkdownParseHelpers, MarkdownToken } from '@tiptap/core'\nimport { mergeAttributes, Node, renderNestedMarkdownContent } from '@tiptap/core'\n\nimport { createBranchingListDeleteKeymap } from '../helpers/createBranchingListDeleteKeymap.js'\n\nimport { getListMarker } from '../ordered-list/roman.js'\n\nexport interface ListItemOptions {\n /**\n * The HTML attributes for a list item node.\n * @default {}\n * @example { class: 'foo' }\n */\n HTMLAttributes: Record<string, any>\n\n /**\n * The node type for bulletList nodes\n * @default 'bulletList'\n * @example 'myCustomBulletList'\n */\n bulletListTypeName: string\n\n /**\n * The node type for orderedList nodes\n * @default 'orderedList'\n * @example 'myCustomOrderedList'\n */\n orderedListTypeName: string\n}\n\nfunction isSameLineOrderedListToken(token: MarkdownToken): boolean {\n const nestedToken = token.tokens?.[0]\n\n return Boolean(\n token.text &&\n token.tokens?.length === 1 &&\n nestedToken?.type === 'list' &&\n nestedToken.ordered &&\n nestedToken.raw === token.text,\n )\n}\n\nfunction parseSameLineOrderedListText(text: string, helpers: MarkdownParseHelpers): JSONContent[] {\n if (helpers.tokenizeInline) {\n return helpers.parseInline(helpers.tokenizeInline(text))\n }\n\n return helpers.parseInline([\n {\n type: 'text',\n raw: text,\n text,\n },\n ])\n}\n\n/**\n * This extension allows you to create list items.\n * @see https://www.tiptap.dev/api/nodes/list-item\n */\nexport const ListItem = Node.create<ListItemOptions>({\n name: 'listItem',\n\n addOptions() {\n return {\n HTMLAttributes: {},\n bulletListTypeName: 'bulletList',\n orderedListTypeName: 'orderedList',\n }\n },\n\n content: 'paragraph block*',\n\n defining: true,\n\n parseHTML() {\n return [\n {\n tag: 'li',\n },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['li', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n markdownTokenName: 'list_item',\n\n parseMarkdown: (token, helpers) => {\n if (token.type !== 'list_item') {\n return []\n }\n\n const parseBlockChildren = helpers.parseBlockChildren ?? helpers.parseChildren\n let content: any[] = []\n\n if (token.tokens && token.tokens.length > 0) {\n if (isSameLineOrderedListToken(token)) {\n return {\n type: 'listItem',\n content: [\n {\n type: 'paragraph',\n content: parseSameLineOrderedListText(token.text || '', helpers),\n },\n ],\n }\n }\n\n // Check if we have paragraph tokens (complex list items)\n const hasParagraphTokens = token.tokens.some(t => t.type === 'paragraph')\n\n if (hasParagraphTokens) {\n // If we have paragraph tokens, parse them as block elements\n content = parseBlockChildren(token.tokens)\n } else {\n // Check if the first token is a text token with nested inline tokens\n const firstToken = token.tokens[0]\n\n if (\n firstToken &&\n firstToken.type === 'text' &&\n firstToken.tokens &&\n firstToken.tokens.length > 0\n ) {\n // Parse the inline content from the text token\n const inlineContent = helpers.parseInline(firstToken.tokens)\n\n // Start with the paragraph containing the inline content\n content = [\n {\n type: 'paragraph',\n content: inlineContent,\n },\n ]\n\n // If there are additional tokens after the first text token (like nested lists),\n // parse them as block elements and add them\n if (token.tokens.length > 1) {\n const remainingTokens = token.tokens.slice(1)\n const additionalContent = parseBlockChildren(remainingTokens)\n content.push(...additionalContent)\n }\n } else {\n // Fallback: parse all tokens as block elements\n content = parseBlockChildren(token.tokens)\n }\n }\n }\n\n // Ensure we always have at least an empty paragraph\n if (content.length === 0) {\n content = [\n {\n type: 'paragraph',\n content: [],\n },\n ]\n }\n\n return {\n type: 'listItem',\n content,\n }\n },\n\n renderMarkdown: (node, h, ctx) => {\n return renderNestedMarkdownContent(\n node,\n h,\n (context: any) => {\n if (context.parentType === 'bulletList') {\n return '- '\n }\n if (context.parentType === 'orderedList') {\n const start = context.meta?.parentAttrs?.start || 1\n const type = context.meta?.parentAttrs?.type as string | undefined\n const index = start - 1 + (context.index || 0)\n return getListMarker(type, index, '. ')\n }\n // Fallback to bullet list for unknown parent types\n return '- '\n },\n ctx,\n { alignNestedToPrefix: ctx?.parentType === 'orderedList' },\n )\n },\n\n addExtensions() {\n return [\n createBranchingListDeleteKeymap(this.name, [\n this.options.bulletListTypeName,\n this.options.orderedListTypeName,\n ]),\n ]\n },\n\n addKeyboardShortcuts() {\n return {\n Enter: () => this.editor.commands.splitListItem(this.name),\n Tab: () => this.editor.commands.sinkListItem(this.name),\n 'Shift-Tab': () => this.editor.commands.liftListItem(this.name),\n }\n },\n})\n","import { getNodeType } from '@tiptap/core'\nimport type { NodeType } from '@tiptap/pm/model'\nimport type { EditorState } from '@tiptap/pm/state'\n\nexport const findListItemPos = (typeOrName: string | NodeType, state: EditorState) => {\n const { $from } = state.selection\n const nodeType = getNodeType(typeOrName, state.schema)\n\n let currentNode = null\n let currentDepth = $from.depth\n let currentPos = $from.pos\n let targetDepth: number | null = null\n\n while (currentDepth > 0 && targetDepth === null) {\n currentNode = $from.node(currentDepth)\n\n if (currentNode.type === nodeType) {\n targetDepth = currentDepth\n } else {\n currentDepth -= 1\n currentPos -= 1\n }\n }\n\n if (targetDepth === null) {\n return null\n }\n\n return { $pos: state.doc.resolve(currentPos), depth: targetDepth }\n}\n","import { getNodeAtPosition } from '@tiptap/core'\nimport type { EditorState } from '@tiptap/pm/state'\n\nimport { findListItemPos } from './findListItemPos.js'\n\nexport const getNextListDepth = (typeOrName: string, state: EditorState) => {\n const listItemPos = findListItemPos(typeOrName, state)\n\n if (!listItemPos) {\n return false\n }\n\n const [, depth] = getNodeAtPosition(state, typeOrName, listItemPos.$pos.pos + 4)\n\n return depth\n}\n","import type { EditorState } from '@tiptap/pm/state'\n\nexport const hasListBefore = (\n editorState: EditorState,\n name: string,\n parentListTypes: string[],\n) => {\n const { $anchor } = editorState.selection\n\n const previousNodePos = Math.max(0, $anchor.pos - 2)\n\n const previousNode = editorState.doc.resolve(previousNodePos).node()\n\n if (!previousNode || !parentListTypes.includes(previousNode.type.name)) {\n return false\n }\n\n return true\n}\n","import type { Editor } from '@tiptap/core'\nimport { isAtStartOfNode, isNodeActive } from '@tiptap/core'\nimport type { Node } from '@tiptap/pm/model'\n\nimport { hasListBefore } from './hasListBefore.js'\n\nexport const handleBackspace = (editor: Editor, name: string, parentListTypes: string[]) => {\n // this is required to still handle the undo handling\n if (editor.commands.undoInputRule()) {\n return true\n }\n\n // if the selection is not collapsed\n // we can rely on the default backspace behavior\n if (editor.state.selection.from !== editor.state.selection.to) {\n return false\n }\n\n // if the current item is NOT inside a list item &\n // the previous item is a list (orderedList or bulletList)\n // move the cursor into the list and delete the current item\n if (!isNodeActive(editor.state, name) && hasListBefore(editor.state, name, parentListTypes)) {\n const { $anchor } = editor.state.selection\n\n const $listPos = editor.state.doc.resolve($anchor.before() - 1)\n\n const listDescendants: Array<{ node: Node; pos: number }> = []\n\n $listPos.node().descendants((node, pos) => {\n if (node.type.name === name) {\n listDescendants.push({ node, pos })\n }\n })\n\n const lastItem = listDescendants.at(-1)\n\n if (!lastItem) {\n return false\n }\n\n const $lastItemPos = editor.state.doc.resolve($listPos.start() + lastItem.pos + 1)\n\n return editor\n .chain()\n .cut({ from: $anchor.start() - 1, to: $anchor.end() + 1 }, $lastItemPos.end())\n .joinForward()\n .run()\n }\n\n // if the cursor is not inside the current node type\n // do nothing and proceed\n if (!isNodeActive(editor.state, name)) {\n return false\n }\n\n // if the cursor is not at the start of a node\n // do nothing and proceed\n if (!isAtStartOfNode(editor.state)) {\n return false\n }\n\n // only intercept at the start of the list item's first child\n const { $from } = editor.state.selection\n const itemDepth = $from.depth - 1\n if ($from.node(itemDepth).type !== editor.schema.nodes[name] || $from.index(itemDepth) !== 0) {\n return false\n }\n\n return editor.chain().liftListItem(name).run()\n}\n","import type { EditorState } from '@tiptap/pm/state'\n\nimport { findListItemPos } from './findListItemPos.js'\nimport { getNextListDepth } from './getNextListDepth.js'\n\nexport const nextListIsDeeper = (typeOrName: string, state: EditorState) => {\n const listDepth = getNextListDepth(typeOrName, state)\n const listItemPos = findListItemPos(typeOrName, state)\n\n if (!listItemPos || !listDepth) {\n return false\n }\n\n if (listDepth > listItemPos.depth) {\n return true\n }\n\n return false\n}\n","import type { EditorState } from '@tiptap/pm/state'\n\nimport { findListItemPos } from './findListItemPos.js'\nimport { getNextListDepth } from './getNextListDepth.js'\n\nexport const nextListIsHigher = (typeOrName: string, state: EditorState) => {\n const listDepth = getNextListDepth(typeOrName, state)\n const listItemPos = findListItemPos(typeOrName, state)\n\n if (!listItemPos || !listDepth) {\n return false\n }\n\n if (listDepth < listItemPos.depth) {\n return true\n }\n\n return false\n}\n","import type { Editor } from '@tiptap/core'\nimport { isAtEndOfNode, isNodeActive } from '@tiptap/core'\n\nimport { nextListIsDeeper } from './nextListIsDeeper.js'\nimport { nextListIsHigher } from './nextListIsHigher.js'\n\nexport const handleDelete = (editor: Editor, name: string) => {\n // if the cursor is not inside the current node type\n // do nothing and proceed\n if (!isNodeActive(editor.state, name)) {\n return false\n }\n\n // if the cursor is not at the end of a node\n // do nothing and proceed\n if (!isAtEndOfNode(editor.state, name)) {\n return false\n }\n\n // if the selection is not collapsed, or not within a single node\n // do nothing and proceed\n const { selection } = editor.state\n const { $from, $to } = selection\n\n if (!selection.empty && $from.sameParent($to)) {\n return false\n }\n\n // check if the next node is a list with a deeper depth\n if (nextListIsDeeper(name, editor.state)) {\n return editor\n .chain()\n .focus(editor.state.selection.from + 4)\n .lift(name)\n .joinBackward()\n .run()\n }\n\n if (nextListIsHigher(name, editor.state)) {\n return editor.chain().joinForward().joinBackward().run()\n }\n\n return editor.commands.joinItemForward()\n}\n","import type { Editor } from '@tiptap/core'\nimport { getPreviousBlockSibling, isNodeActive } from '@tiptap/core'\nimport { Fragment } from '@tiptap/pm/model'\nimport { TextSelection } from '@tiptap/pm/state'\n\nexport const handleTab = (editor: Editor, name: string, parentListTypes: string[]) => {\n const { state } = editor\n const { selection } = state\n if (!selection.empty) return false\n\n const { $from } = selection\n if ($from.parentOffset !== 0) return false\n\n // gap cursors satisfy both checks above but resolve outside a textblock\n if (!$from.parent.isTextblock) return false\n\n // Tab inside a list item belongs to sinkListItem\n if (isNodeActive(state, name)) return false\n\n const previous = getPreviousBlockSibling($from)\n if (!previous || !parentListTypes.includes(previous.type.name)) return false\n\n const lastItem = previous.lastChild\n if (!lastItem || lastItem.type.name !== name) return false\n\n const block = $from.parent\n\n if (!lastItem.canReplace(lastItem.childCount, lastItem.childCount, Fragment.from(block))) {\n return false\n }\n\n const blockStart = $from.before()\n const blockEnd = $from.after()\n\n // step back over the closing tokens of the list and its last item\n const insideLastItemEnd = blockStart - 2\n\n return editor.commands.command(({ tr, dispatch }) => {\n if (dispatch) {\n tr.delete(blockStart, blockEnd).insert(insideLastItemEnd, Fragment.from(block))\n // place the cursor at the start of the inserted block\n tr.setSelection(TextSelection.create(tr.doc, insideLastItemEnd + 1))\n tr.scrollIntoView()\n }\n\n return true\n })\n}\n","import { Extension } from '@tiptap/core'\n\nimport { handleBackspace, handleDelete, handleTab } from './listHelpers/index.js'\n\nexport type ListKeymapOptions = {\n /**\n * An array of list types. This is used for item and wrapper list matching.\n * @default []\n * @example [{ itemName: 'listItem', wrapperNames: ['bulletList', 'orderedList'] }]\n */\n listTypes: Array<{\n itemName: string\n wrapperNames: string[]\n }>\n}\n\n/**\n * This extension registers custom keymaps to change the behaviour of the backspace and delete keys.\n * By default Prosemirror keyhandling will always lift or sink items so paragraphs are joined into\n * the adjacent or previous list item. This extension will prevent this behaviour and instead will\n * try to join paragraphs from two list items into a single list item.\n * @see https://www.tiptap.dev/api/extensions/list-keymap\n */\nexport const ListKeymap = Extension.create<ListKeymapOptions>({\n name: 'listKeymap',\n\n addOptions() {\n return {\n listTypes: [\n {\n itemName: 'listItem',\n wrapperNames: ['bulletList', 'orderedList'],\n },\n {\n itemName: 'taskItem',\n wrapperNames: ['taskList'],\n },\n ],\n }\n },\n\n addKeyboardShortcuts() {\n return {\n Delete: ({ editor }) => {\n let handled = false\n\n this.options.listTypes.forEach(({ itemName }) => {\n if (editor.state.schema.nodes[itemName] === undefined) {\n return\n }\n\n if (handleDelete(editor, itemName)) {\n handled = true\n }\n })\n\n return handled\n },\n 'Mod-Delete': ({ editor }) => {\n let handled = false\n\n this.options.listTypes.forEach(({ itemName }) => {\n if (editor.state.schema.nodes[itemName] === undefined) {\n return\n }\n\n if (handleDelete(editor, itemName)) {\n handled = true\n }\n })\n\n return handled\n },\n Backspace: ({ editor }) => {\n let handled = false\n\n this.options.listTypes.forEach(({ itemName, wrapperNames }) => {\n if (editor.state.schema.nodes[itemName] === undefined) {\n return\n }\n\n if (handleBackspace(editor, itemName, wrapperNames)) {\n handled = true\n }\n })\n\n return handled\n },\n 'Mod-Backspace': ({ editor }) => {\n let handled = false\n\n this.options.listTypes.forEach(({ itemName, wrapperNames }) => {\n if (editor.state.schema.nodes[itemName] === undefined) {\n return\n }\n\n if (handleBackspace(editor, itemName, wrapperNames)) {\n handled = true\n }\n })\n\n return handled\n },\n Tab: ({ editor }) => {\n // stop at the first handled list type so a single Tab cannot sink the block twice\n for (const { itemName, wrapperNames } of this.options.listTypes) {\n if (editor.state.schema.nodes[itemName] === undefined) {\n continue\n }\n\n if (handleTab(editor, itemName, wrapperNames)) {\n return true\n }\n }\n\n return false\n },\n }\n },\n})\n","import type {\n JSONContent,\n MarkdownLexerConfiguration,\n MarkdownParseHelpers,\n MarkdownToken,\n} from '@tiptap/core'\n\nimport {\n areOrderedListMarkersSequential,\n buildOrderedListAttrsFromMarker,\n detectMarkerType,\n markerToStart,\n ORDERED_LIST_MARKER_PATTERN,\n} from './roman.js'\n\nexport { ORDERED_LIST_MARKER_PATTERN }\n\n/**\n * Matches an ordered list item line with optional leading whitespace.\n * Captures: (1) indentation spaces, (2) item marker (number, letter, or roman numeral),\n * (3) separator (. or )), (4) content after marker\n *\n * Examples: \"1. Item\", \" a) Nested item\", \" I. Roman item\", \"iii. Another\", \"aa. Item 27\"\n */\nexport const ORDERED_LIST_ITEM_REGEX = new RegExp(\n `^(\\\\s*)(${ORDERED_LIST_MARKER_PATTERN})([.)])\\\\s+(.*)$`,\n)\n\n/**\n * Matches any line that starts with whitespace (indented content).\n * Used to identify continuation content that belongs to a list item.\n */\nconst INDENTED_LINE_REGEX = /^\\s/\n\n/**\n * This are blocks that can interrupt a paragraph, so a line starting with one of\n * them can never be lazy continuation text of a list item\n */\nconst PARAGRAPH_INTERRUPTERS = {\n heading: /^#{1,6}(?:\\s|$)/,\n bulletItem: /^[-+*]\\s+/,\n codeFence: /^(?:```|~~~)/,\n blockMath: /^\\$\\$/,\n thematicBreak: /^(?:(?:-[ \\t]*){3,}|(?:_[ \\t]*){3,}|(?:\\*[ \\t]*){3,})$/,\n}\n\n/**\n * Represents a parsed ordered list item with indentation information\n */\nexport interface OrderedListItem {\n indent: number\n number: number\n type?: string\n content: string\n contentLines: string[]\n raw: string\n}\n\nfunction isOrderedListMarkerLine(line: string): boolean {\n return ORDERED_LIST_ITEM_REGEX.test(line.trimStart())\n}\n\nfunction isBlockContentLine(line: string): boolean {\n const trimmedLine = line.trimStart()\n\n return (\n PARAGRAPH_INTERRUPTERS.bulletItem.test(trimmedLine) ||\n isOrderedListMarkerLine(trimmedLine) ||\n PARAGRAPH_INTERRUPTERS.heading.test(trimmedLine) ||\n // dash breaks are excluded: \"---\" directly below paragraph text is a\n // setext heading underline, not a thematic break\n (PARAGRAPH_INTERRUPTERS.thematicBreak.test(trimmedLine) && !trimmedLine.startsWith('-')) ||\n // oxlint-disable-next-line prefer-string-starts-ends-with\n /^>\\s?/.test(trimmedLine) ||\n PARAGRAPH_INTERRUPTERS.codeFence.test(trimmedLine) ||\n PARAGRAPH_INTERRUPTERS.blockMath.test(trimmedLine)\n )\n}\n\nfunction interruptsLazyContinuation(line: string): boolean {\n return Object.values(PARAGRAPH_INTERRUPTERS).some(pattern => pattern.test(line))\n}\n\nfunction splitItemContent(contentLines: string[]): {\n paragraphLines: string[]\n blockLines: string[]\n} {\n const paragraphLines: string[] = []\n const blockLines: string[] = []\n let reachedBlockBoundary = false\n\n contentLines.forEach(line => {\n if (reachedBlockBoundary) {\n blockLines.push(line)\n return\n }\n\n if (line.trim() === '') {\n reachedBlockBoundary = true\n blockLines.push(line)\n return\n }\n\n if (paragraphLines.length > 0 && isBlockContentLine(line)) {\n reachedBlockBoundary = true\n blockLines.push(line)\n return\n }\n\n paragraphLines.push(line)\n })\n\n return {\n paragraphLines,\n blockLines,\n }\n}\n\n/**\n * Collects all ordered list items from lines, parsing them into a flat array\n * with indentation information. Stops collecting continuation content when\n * encountering nested list items, allowing them to be processed separately.\n *\n * @param lines - Array of source lines to parse\n * @returns Tuple of [listItems array, number of lines consumed]\n */\nexport function collectOrderedListItems(lines: string[]): [OrderedListItem[], number] {\n const listItems: OrderedListItem[] = []\n let currentLineIndex = 0\n let consumed = 0\n\n while (currentLineIndex < lines.length) {\n const line = lines[currentLineIndex]\n const match = line.match(ORDERED_LIST_ITEM_REGEX)\n\n if (!match) {\n break\n }\n\n const [, indent, marker, _separator, content] = match\n const indentLevel = indent.length\n const number = parseInt(marker, 10)\n\n const markerType = isNaN(number) ? detectMarkerType(marker) : undefined\n const itemNumber = isNaN(number) ? markerToStart(marker) : number\n\n const itemContentLines = [content]\n let nextLineIndex = currentLineIndex + 1\n const itemLines = [line]\n let sawBlankLine = false\n\n // Collect continuation lines for this item (but NOT nested list items)\n while (nextLineIndex < lines.length) {\n const nextLine = lines[nextLineIndex]\n const nextMatch = nextLine.match(ORDERED_LIST_ITEM_REGEX)\n\n // If it's another list item (nested or not), stop collecting\n if (nextMatch) {\n break\n }\n\n // Check for continuation content (non-list content)\n if (nextLine.trim() === '') {\n // Empty line\n itemLines.push(nextLine)\n itemContentLines.push('')\n sawBlankLine = true\n nextLineIndex += 1\n } else if (nextLine.match(INDENTED_LINE_REGEX)) {\n // Indented content - part of this item (but not a list item).\n // Strip the indentation only up to the whitespace that is actually present,\n // so an under-indented line (e.g. a single leading space) keeps its first character.\n const leadingWhitespace = nextLine.length - nextLine.trimStart().length\n const contentIndent = indentLevel + marker.length + 1\n itemLines.push(nextLine)\n itemContentLines.push(nextLine.slice(Math.min(leadingWhitespace, contentIndent)))\n nextLineIndex += 1\n } else {\n if (sawBlankLine || interruptsLazyContinuation(nextLine)) {\n break\n }\n\n itemLines.push(nextLine)\n itemContentLines.push(nextLine)\n nextLineIndex += 1\n }\n }\n\n listItems.push({\n indent: indentLevel,\n number: itemNumber,\n type: markerType,\n content: itemContentLines.join('\\n').trim(),\n contentLines: itemContentLines,\n raw: itemLines.join('\\n'),\n })\n\n consumed = nextLineIndex\n currentLineIndex = nextLineIndex\n }\n\n return [listItems, consumed]\n}\n\nconst PLAIN_TEXT_ORDERED_LIST_LINE_REGEX = new RegExp(\n `^(${ORDERED_LIST_MARKER_PATTERN})([.)])\\\\s+(.+)$`,\n)\n\n/**\n * Parse plain-text pasted ordered list lines into JSONContent, or null if not a typed list.\n */\nexport function parsePlainTextOrderedListPaste(text: string): JSONContent | null {\n const lines = text.split('\\n').filter(l => l.trim().length > 0)\n\n if (lines.length === 0) {\n return null\n }\n\n const parsedItems: Array<{ marker: string; content: string }> = []\n\n for (const line of lines) {\n const match = line.trim().match(PLAIN_TEXT_ORDERED_LIST_LINE_REGEX)\n\n if (!match) {\n return null\n }\n\n parsedItems.push({\n marker: match[1],\n content: match[3],\n })\n }\n\n const markers = parsedItems.map(item => item.marker)\n\n if (!areOrderedListMarkersSequential(markers)) {\n return null\n }\n\n const attrs = buildOrderedListAttrsFromMarker(parsedItems[0].marker)\n\n return {\n type: 'orderedList',\n attrs,\n content: parsedItems.map(item => ({\n type: 'listItem',\n content: [\n {\n type: 'paragraph',\n content: [{ type: 'text', text: item.content }],\n },\n ],\n })),\n }\n}\n\n/**\n * Recursively builds a nested structure from a flat array of list items\n * based on their indentation levels. Creates proper markdown tokens with\n * nested lists where appropriate.\n *\n * @param items - Flat array of list items with indentation info\n * @param baseIndent - The indentation level to process at this recursion level\n * @param lexer - Markdown lexer for parsing inline and block content\n * @returns Array of list_item tokens with proper nesting\n */\nexport function buildNestedStructure(\n items: OrderedListItem[],\n baseIndent: number,\n lexer: MarkdownLexerConfiguration,\n): unknown[] {\n const result: unknown[] = []\n let currentIndex = 0\n\n while (currentIndex < items.length) {\n const item = items[currentIndex]\n\n if (item.indent === baseIndent) {\n // This item belongs at the current level\n const { paragraphLines, blockLines } = splitItemContent(item.contentLines)\n const mainText = paragraphLines.join('\\n').trim()\n\n const tokens = []\n\n // Always wrap the main text in a paragraph token\n if (mainText) {\n tokens.push({\n type: 'paragraph',\n raw: mainText,\n tokens: lexer.inlineTokens(mainText),\n })\n }\n\n const additionalContent = blockLines.join('\\n').trim()\n if (additionalContent) {\n const blockTokens = lexer.blockTokens(additionalContent)\n tokens.push(...blockTokens)\n }\n\n // Look ahead to find nested items at deeper indent levels\n let lookAheadIndex = currentIndex + 1\n const nestedItems = []\n\n while (lookAheadIndex < items.length && items[lookAheadIndex].indent > baseIndent) {\n nestedItems.push(items[lookAheadIndex])\n lookAheadIndex += 1\n }\n\n // If we have nested items, recursively build their structure\n if (nestedItems.length > 0) {\n // Find the next indent level (immediate children)\n const nextIndent = Math.min(...nestedItems.map(nestedItem => nestedItem.indent))\n\n // Build the nested list recursively with all nested items\n // The recursive call will handle further nesting\n const nestedListItems = buildNestedStructure(nestedItems, nextIndent, lexer)\n\n // Create a nested list token\n tokens.push({\n type: 'list',\n ordered: true,\n start: nestedItems[0].number,\n typeMarker: nestedItems[0].type,\n items: nestedListItems,\n raw: nestedItems.map(nestedItem => nestedItem.raw).join('\\n'),\n })\n }\n\n result.push({\n type: 'list_item',\n raw: item.raw,\n tokens,\n })\n\n // Skip the nested items we just processed\n currentIndex = lookAheadIndex\n } else {\n // This item has deeper indent than we're currently processing\n // It should be handled by a recursive call\n currentIndex += 1\n }\n }\n\n return result\n}\n\n/**\n * Parses markdown list item tokens into Tiptap JSONContent structure,\n * ensuring text content is properly wrapped in paragraph nodes.\n *\n * @param items - Array of markdown tokens representing list items\n * @param helpers - Markdown parse helpers for recursive parsing\n * @returns Array of listItem JSONContent nodes\n */\nexport function parseListItems(\n items: MarkdownToken[],\n helpers: MarkdownParseHelpers,\n): JSONContent[] {\n return items.map(item => {\n if (item.type !== 'list_item') {\n return helpers.parseChildren([item])[0]\n }\n\n // Parse the tokens within the list item\n const content: JSONContent[] = []\n\n if (item.tokens && item.tokens.length > 0) {\n item.tokens.forEach(itemToken => {\n // If it's already a proper block node (paragraph, list, etc.), parse it directly\n if (\n itemToken.type === 'paragraph' ||\n itemToken.type === 'list' ||\n itemToken.type === 'blockquote' ||\n itemToken.type === 'code'\n ) {\n content.push(...helpers.parseChildren([itemToken]))\n } else if (itemToken.type === 'text' && itemToken.tokens) {\n // If it's inline text tokens, wrap them in a paragraph\n const inlineContent = helpers.parseChildren([itemToken])\n content.push({\n type: 'paragraph',\n content: inlineContent,\n })\n } else {\n // For any other content, try to parse it\n const parsed = helpers.parseChildren([itemToken])\n if (parsed.length > 0) {\n content.push(...parsed)\n }\n }\n })\n }\n\n return {\n type: 'listItem',\n content,\n }\n })\n}\n","import type { OrderedListItem } from './utils.js'\nimport { collectOrderedListItems, ORDERED_LIST_ITEM_REGEX } from './utils.js'\n\nconst ORDERED_LIST_SCAN_WINDOW = 64\n\n// Fewer than `max` lines means `source` ended.\nfunction takeLines(source: string, max: number): string[] {\n const lines: string[] = []\n let start = 0\n\n while (lines.length < max) {\n const lineEnd = source.indexOf('\\n', start)\n\n if (lineEnd === -1) {\n lines.push(source.slice(start))\n return lines\n }\n\n lines.push(source.slice(start, lineEnd))\n start = lineEnd + 1\n }\n\n return lines\n}\n\n/**\n * Collect ordered list items from the start of `source`, reading only the lines the list needs.\n *\n * @param source Markdown beginning at a block boundary.\n * @returns The items, how many lines they consumed, and the lines that were read.\n * @example\n * collectOrderedListItemsFromSource('1. one\\n2. two\\n\\nAfter')\n * // → [[item, item], 3, ['1. one', '2. two', '', 'After']]\n */\nexport function collectOrderedListItemsFromSource(\n source: string,\n): [OrderedListItem[], number, string[]] {\n const firstLineEnd = source.indexOf('\\n')\n const firstLine = firstLineEnd === -1 ? source : source.slice(0, firstLineEnd)\n\n // Every block start is offered here, so reject non-lists before reading further.\n if (!ORDERED_LIST_ITEM_REGEX.test(firstLine)) {\n return [[], 0, []]\n }\n\n let windowSize = ORDERED_LIST_SCAN_WINDOW\n let lines = takeLines(source, windowSize)\n let collected = collectOrderedListItems(lines)\n\n // Consuming the whole window means the list may continue past it.\n while (collected[1] === lines.length && lines.length === windowSize) {\n windowSize *= 2\n lines = takeLines(source, windowSize)\n collected = collectOrderedListItems(lines)\n }\n\n return [collected[0], collected[1], lines]\n}\n","import type { Node as ProseMirrorNode } from '@tiptap/pm/model'\nimport { Plugin } from '@tiptap/pm/state'\n\nimport { mergeAttributes, Node, wrappingInputRule } from '@tiptap/core'\n\nimport { collectOrderedListItemsFromSource } from './collectOrderedListItemsFromSource.js'\nimport { buildNestedStructure, parseListItems, parsePlainTextOrderedListPaste } from './utils.js'\n\nconst ListItemName = 'listItem'\nconst TextStyleName = 'textStyle'\n\nexport interface OrderedListOptions {\n /**\n * The node type name for list items.\n * @default 'listItem'\n * @example 'myListItem'\n */\n itemTypeName: string\n\n /**\n * The HTML attributes for an ordered list node.\n * @default {}\n * @example { class: 'foo' }\n */\n HTMLAttributes: Record<string, any>\n\n /**\n * Keep the marks when splitting a list item.\n * @default false\n * @example true\n */\n keepMarks: boolean\n\n /**\n * Keep the attributes when splitting a list item.\n * @default false\n * @example true\n */\n keepAttributes: boolean\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n orderedList: {\n /**\n * Toggle an ordered list\n * @example editor.commands.toggleOrderedList()\n */\n toggleOrderedList: () => ReturnType\n }\n }\n}\n\n/**\n * Matches an ordered list to a 1. on input (or any number followed by a dot).\n */\nexport const orderedListInputRegex = /^(\\d+)\\.\\s$/\n\n/**\n * Maps CSS list-style-type values to HTML type attribute values.\n * Google Docs and Word often use CSS instead of the HTML type attribute.\n */\nfunction cssListStyleTypeToHtmlType(style: string): string | null {\n const match = style.match(/list-style-type\\s*:\\s*([^;]+)/i)\n if (!match) {\n return null\n }\n\n const cssValue = match[1].trim().toLowerCase()\n\n switch (cssValue) {\n case 'upper-roman':\n return 'I'\n case 'lower-roman':\n return 'i'\n case 'upper-alpha':\n case 'upper-latin':\n return 'A'\n case 'lower-alpha':\n case 'lower-latin':\n return 'a'\n default:\n return null\n }\n}\n\n/**\n * This extension allows you to create ordered lists.\n * This requires the ListItem extension\n * @see https://www.tiptap.dev/api/nodes/ordered-list\n * @see https://www.tiptap.dev/api/nodes/list-item\n */\nexport const OrderedList = Node.create<OrderedListOptions>({\n name: 'orderedList',\n\n addOptions() {\n return {\n itemTypeName: 'listItem',\n HTMLAttributes: {},\n keepMarks: false,\n keepAttributes: false,\n }\n },\n\n group: 'block list',\n\n content() {\n return `${this.options.itemTypeName}+`\n },\n\n addAttributes() {\n return {\n start: {\n default: 1,\n parseHTML: element => {\n return element.hasAttribute('start')\n ? parseInt(element.getAttribute('start') || '', 10)\n : 1\n },\n },\n type: {\n default: null,\n parseHTML: element => {\n // 1. Check the HTML type attribute on <ol>\n const htmlType = element.getAttribute('type')\n if (htmlType) {\n return htmlType\n }\n\n // 2. Check CSS list-style-type on the <ol> element's style attribute\n const style = element.getAttribute('style')\n if (style) {\n const mappedFromOl = cssListStyleTypeToHtmlType(style)\n if (mappedFromOl) {\n return mappedFromOl\n }\n }\n\n // 3. Check the first <li> child for list-style-type (Google Docs pattern)\n const firstLi = element.querySelector('li')\n if (firstLi) {\n const liStyle = firstLi.getAttribute('style')\n if (liStyle) {\n const mappedFromLi = cssListStyleTypeToHtmlType(liStyle)\n if (mappedFromLi) {\n return mappedFromLi\n }\n }\n }\n\n return null\n },\n },\n }\n },\n\n parseHTML() {\n return [\n {\n tag: 'ol',\n },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n const { start, type, ...attributesWithoutType } = HTMLAttributes\n\n const attrs = mergeAttributes(this.options.HTMLAttributes, attributesWithoutType)\n\n if (start !== 1) {\n attrs.start = start\n }\n\n if (type && type !== '1') {\n attrs.type = type\n }\n\n return ['ol', attrs, 0]\n },\n\n markdownTokenName: 'list',\n\n parseMarkdown: (token, helpers) => {\n if (token.type !== 'list' || !token.ordered) {\n return []\n }\n\n const startValue = token.start || 1\n const typeValue = token.typeMarker as string | undefined\n const content = token.items ? parseListItems(token.items, helpers) : []\n\n // Build attrs only when they differ from defaults\n const attrs: Record<string, unknown> = {}\n\n if (startValue !== 1) {\n attrs.start = startValue\n }\n\n if (typeValue) {\n attrs.type = typeValue\n }\n\n if (Object.keys(attrs).length > 0) {\n return {\n type: 'orderedList',\n attrs,\n content,\n }\n }\n\n return {\n type: 'orderedList',\n content,\n }\n },\n\n renderMarkdown: (node, h) => {\n if (!node.content) {\n return ''\n }\n\n return h.renderChildren(node.content, '\\n')\n },\n\n markdownTokenizer: {\n name: 'orderedList',\n level: 'block',\n // marked already breaks paragraphs before a start-of-line list marker. It\n // probes this with `src.slice(1)`, so any marker it surfaces here is\n // mid-line (like the \"216)\" in \"(216) 555-1234\") and must not start a list.\n // We still define the callback so marked does not fall back to probing\n // `tokenize`, which would re-introduce the mid-line split.\n start: () => -1,\n tokenize: (src: string, _tokens, lexer) => {\n const [listItems, consumed, lines] = collectOrderedListItemsFromSource(src)\n\n if (listItems.length === 0) {\n return undefined\n }\n\n // buildNestedStructure() only includes an item when item.indent matches\n // the base indent it's given, so the base must be this list's own\n // indentation level (that of its first collected item, e.g. 1 for a\n // line with a single leading space) rather than always 0 — a nested\n // list is not necessarily flush with the start of the line.\n const items = buildNestedStructure(listItems, listItems[0].indent, lexer)\n\n if (items.length === 0) {\n return undefined\n }\n\n const startValue = listItems[0]?.number || 1\n const typeMarker = listItems[0]?.type\n\n return {\n type: 'list',\n ordered: true,\n start: startValue,\n typeMarker,\n items,\n raw: lines.slice(0, consumed).join('\\n'),\n } as unknown as object\n },\n },\n\n markdownOptions: {\n indentsContent: true,\n },\n\n addCommands() {\n return {\n toggleOrderedList:\n () =>\n ({ commands, chain }) => {\n if (this.options.keepAttributes) {\n return chain()\n .toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)\n .updateAttributes(ListItemName, this.editor.getAttributes(TextStyleName))\n .run()\n }\n return commands.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-7': () => this.editor.commands.toggleOrderedList(),\n }\n },\n\n addProseMirrorPlugins() {\n return [\n new Plugin({\n props: {\n handlePaste: (view, event) => {\n const html = event.clipboardData?.getData('text/html')\n\n if (html?.trim()) {\n return false\n }\n\n const text = event.clipboardData?.getData('text/plain')\n\n if (!text) {\n return false\n }\n\n const orderedListContent = parsePlainTextOrderedListPaste(text)\n\n if (!orderedListContent) {\n return false\n }\n\n try {\n const orderedListNode = view.state.schema.nodeFromJSON(orderedListContent)\n const tr = view.state.tr.replaceSelectionWith(orderedListNode)\n\n view.dispatch(tr)\n\n return true\n } catch {\n return false\n }\n },\n },\n }),\n ]\n },\n\n addInputRules() {\n const joinPredicate = (match: RegExpMatchArray, node: ProseMirrorNode) => {\n // Only join if the existing list has a default type\n // (not a typed list like \"a\" or \"i\" which should stay separate)\n const hasDefaultType = !node.attrs.type || node.attrs.type === '1'\n\n return hasDefaultType && node.childCount + node.attrs.start === +match[1]\n }\n\n let inputRule = wrappingInputRule({\n find: orderedListInputRegex,\n type: this.type,\n getAttributes: match => ({ start: +match[1] }),\n joinPredicate,\n })\n\n if (this.options.keepMarks || this.options.keepAttributes) {\n inputRule = wrappingInputRule({\n find: orderedListInputRegex,\n type: this.type,\n keepMarks: this.options.keepMarks,\n keepAttributes: this.options.keepAttributes,\n getAttributes: match => ({ start: +match[1], ...this.editor.getAttributes(TextStyleName) }),\n joinPredicate,\n editor: this.editor,\n })\n }\n return [inputRule]\n },\n})\n","import type { KeyboardShortcutCommand } from '@tiptap/core'\nimport {\n getRenderedAttributes,\n mergeAttributes,\n Node,\n renderNestedMarkdownContent,\n wrappingInputRule,\n} from '@tiptap/core'\nimport type { Node as ProseMirrorNode } from '@tiptap/pm/model'\n\nimport { createBranchingListDeleteKeymap } from '../helpers/createBranchingListDeleteKeymap.js'\n\nexport interface TaskItemOptions {\n /**\n * A callback function that is called when the checkbox is clicked while the editor is in readonly mode.\n * @param node The prosemirror node of the task item\n * @param checked The new checked state\n * @returns boolean\n */\n onReadOnlyChecked?: (node: ProseMirrorNode, checked: boolean) => boolean\n\n /**\n * Controls whether the task items can be nested or not.\n * @default false\n * @example true\n */\n nested: boolean\n\n /**\n * HTML attributes to add to the task item element.\n * @default {}\n * @example { class: 'foo' }\n */\n HTMLAttributes: Record<string, any>\n\n /**\n * The node type for taskList nodes\n * @default 'taskList'\n * @example 'myCustomTaskList'\n */\n taskListTypeName: string\n\n /**\n * Accessibility options for the task item.\n * @default {}\n * @example\n * ```js\n * {\n * checkboxLabel: (node) => `Task item: ${node.textContent || 'empty task item'}`\n * }\n */\n a11y?: {\n /**\n * The accessible label for the checkbox. Used as the aria-label on the input and as the\n * (visually hidden) text of the wrapping label element.\n * @param node The prosemirror node of the task item\n * @param checked The new checked state\n * @returns The accessible label for the checkbox\n * @example\n * ```js\n * TaskItem.configure({\n * a11y: {\n * checkboxLabel: node => `Task item: ${node.textContent || 'empty task item'}`,\n * },\n * })\n * ```\n */\n checkboxLabel?: (node: ProseMirrorNode, checked: boolean) => string\n }\n}\n\n/**\n * Matches a task item to a - [ ] on input.\n */\nexport const inputRegex = /^\\s*(\\[([( |x])?\\])\\s$/\n\n/**\n * Hides the checkbox label visually while keeping it in the accessibility tree.\n */\nconst visuallyHiddenStyle =\n 'position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0'\n\nconst getCheckboxLabel = (node: ProseMirrorNode, checked: boolean, a11y: TaskItemOptions['a11y']) =>\n a11y?.checkboxLabel?.(node, checked) ||\n `Task item checkbox for ${node.textContent || 'empty task item'}`\n\n/**\n * This extension allows you to create task items.\n * @see https://www.tiptap.dev/api/nodes/task-item\n */\nexport const TaskItem = Node.create<TaskItemOptions>({\n name: 'taskItem',\n\n addOptions() {\n return {\n nested: false,\n HTMLAttributes: {},\n taskListTypeName: 'taskList',\n a11y: undefined,\n }\n },\n\n content() {\n return this.options.nested ? 'paragraph block*' : 'paragraph+'\n },\n\n defining: true,\n\n addAttributes() {\n return {\n checked: {\n default: false,\n keepOnSplit: false,\n parseHTML: element => {\n const dataChecked = element.getAttribute('data-checked')\n\n return dataChecked === '' || dataChecked === 'true'\n },\n renderHTML: attributes => ({\n 'data-checked': attributes.checked,\n }),\n },\n }\n },\n\n parseHTML() {\n return [\n {\n tag: `li[data-type=\"${this.name}\"]`,\n priority: 51,\n contentElement: element => element.querySelector('div') ?? element,\n },\n ]\n },\n\n renderHTML({ node, HTMLAttributes }) {\n return [\n 'li',\n mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {\n 'data-type': this.name,\n }),\n [\n 'label',\n [\n 'input',\n {\n type: 'checkbox',\n checked: node.attrs.checked ? 'checked' : null,\n },\n ],\n ['span'],\n ],\n ['div', 0],\n ]\n },\n\n parseMarkdown: (token, h) => {\n // Parse the task item's text content into paragraph content\n const content = []\n\n // First, add the main paragraph content\n if (token.tokens && token.tokens.length > 0) {\n // If we have tokens, create a paragraph with the inline content\n content.push(h.createNode('paragraph', {}, h.parseInline(token.tokens)))\n } else if (token.text) {\n // If we have raw text, create a paragraph with text node\n content.push(h.createNode('paragraph', {}, [h.createNode('text', { text: token.text })]))\n } else {\n // Fallback: empty paragraph\n content.push(h.createNode('paragraph', {}, []))\n }\n\n // Then, add any nested content (like nested task lists)\n if (token.nestedTokens && token.nestedTokens.length > 0) {\n const nestedContent = h.parseChildren(token.nestedTokens)\n content.push(...nestedContent)\n }\n\n return h.createNode('taskItem', { checked: token.checked || false }, content)\n },\n\n renderMarkdown: (node, h) => {\n const checkedChar = node.attrs?.checked ? 'x' : ' '\n const prefix = `- [${checkedChar}] `\n\n return renderNestedMarkdownContent(node, h, prefix)\n },\n\n addExtensions() {\n if (!this.options.nested) {\n return []\n }\n\n return [createBranchingListDeleteKeymap(this.name, [this.options.taskListTypeName])]\n },\n\n addKeyboardShortcuts() {\n const shortcuts: {\n [key: string]: KeyboardShortcutCommand\n } = {\n Enter: () => this.editor.commands.splitListItem(this.name),\n 'Shift-Tab': () => this.editor.commands.liftListItem(this.name),\n }\n\n if (!this.options.nested) {\n return shortcuts\n }\n\n return {\n ...shortcuts,\n Tab: () => this.editor.commands.sinkListItem(this.name),\n }\n },\n\n addNodeView() {\n return ({ node, HTMLAttributes, getPos, editor }) => {\n const listItem = document.createElement('li')\n const checkboxWrapper = document.createElement('label')\n const checkboxStyler = document.createElement('span')\n const checkbox = document.createElement('input')\n const content = document.createElement('div')\n\n checkboxStyler.style.cssText = visuallyHiddenStyle\n\n const updateA11Y = (currentNode: ProseMirrorNode) => {\n const label = getCheckboxLabel(currentNode, currentNode.attrs.checked, this.options.a11y)\n\n checkbox.setAttribute('aria-label', label)\n checkboxStyler.textContent = label\n }\n\n updateA11Y(node)\n\n checkboxWrapper.contentEditable = 'false'\n checkbox.type = 'checkbox'\n checkbox.addEventListener('mousedown', event => event.preventDefault())\n checkbox.addEventListener('change', event => {\n // if the editor isn’t editable and we don't have a handler for\n // readonly checks we have to undo the latest change\n if (!editor.isEditable && !this.options.onReadOnlyChecked) {\n checkbox.checked = !checkbox.checked\n\n return\n }\n\n const { checked } = event.target as any\n\n if (editor.isEditable && typeof getPos === 'function') {\n editor\n .chain()\n .focus(undefined, { scrollIntoView: false })\n .command(({ tr }) => {\n const position = getPos()\n\n if (typeof position !== 'number') {\n return false\n }\n const currentNode = tr.doc.nodeAt(position)\n\n tr.setNodeMarkup(position, undefined, {\n ...currentNode?.attrs,\n checked,\n })\n\n return true\n })\n .run()\n }\n if (!editor.isEditable && this.options.onReadOnlyChecked) {\n // Reset state if onReadOnlyChecked returns false\n if (!this.options.onReadOnlyChecked(node, checked)) {\n checkbox.checked = !checkbox.checked\n }\n }\n })\n\n Object.entries(this.options.HTMLAttributes).forEach(([key, value]) => {\n listItem.setAttribute(key, value)\n })\n\n listItem.dataset.checked = node.attrs.checked\n checkbox.checked = node.attrs.checked\n\n checkboxWrapper.append(checkbox, checkboxStyler)\n listItem.append(checkboxWrapper, content)\n\n Object.entries(HTMLAttributes).forEach(([key, value]) => {\n listItem.setAttribute(key, value)\n })\n\n // Track the keys of previously rendered HTML attributes for proper removal\n let prevRenderedAttributeKeys = new Set(Object.keys(HTMLAttributes))\n\n return {\n dom: listItem,\n contentDOM: content,\n update: updatedNode => {\n if (updatedNode.type !== this.type) {\n return false\n }\n\n listItem.dataset.checked = updatedNode.attrs.checked\n checkbox.checked = updatedNode.attrs.checked\n updateA11Y(updatedNode)\n\n // Sync all HTML attributes from the updated node\n const extensionAttributes = editor.extensionManager.attributes\n const newHTMLAttributes = getRenderedAttributes(updatedNode, extensionAttributes)\n const newKeys = new Set(Object.keys(newHTMLAttributes))\n\n // Remove attributes that were previously rendered but are no longer present\n // If the attribute exists in static options, restore it instead of removing\n const staticAttrs = this.options.HTMLAttributes\n\n prevRenderedAttributeKeys.forEach(key => {\n if (!newKeys.has(key)) {\n if (key in staticAttrs) {\n listItem.setAttribute(key, staticAttrs[key])\n } else {\n listItem.removeAttribute(key)\n }\n }\n })\n\n // Update or add new attributes\n Object.entries(newHTMLAttributes).forEach(([key, value]) => {\n if (value === null || value === undefined) {\n // If the attribute exists in static options, restore it instead of removing\n if (key in staticAttrs) {\n listItem.setAttribute(key, staticAttrs[key])\n } else {\n listItem.removeAttribute(key)\n }\n } else {\n listItem.setAttribute(key, value)\n }\n })\n\n // Update the tracked keys for next update\n prevRenderedAttributeKeys = newKeys\n\n return true\n },\n }\n }\n },\n\n addInputRules() {\n return [\n wrappingInputRule({\n find: inputRegex,\n type: this.type,\n getAttributes: match => ({\n checked: match[match.length - 1] === 'x',\n }),\n }),\n ]\n },\n})\n","import { mergeAttributes, Node, parseIndentedBlocks } from '@tiptap/core'\n\nexport interface TaskListOptions {\n /**\n * The node type name for a task item.\n * @default 'taskItem'\n * @example 'myCustomTaskItem'\n */\n itemTypeName: string\n\n /**\n * The HTML attributes for a task list node.\n * @default {}\n * @example { class: 'foo' }\n */\n HTMLAttributes: Record<string, any>\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n taskList: {\n /**\n * Toggle a task list\n * @example editor.commands.toggleTaskList()\n */\n toggleTaskList: () => ReturnType\n }\n }\n}\n\n/**\n * This extension allows you to create task lists.\n * @see https://www.tiptap.dev/api/nodes/task-list\n */\nexport const TaskList = Node.create<TaskListOptions>({\n name: 'taskList',\n\n addOptions() {\n return {\n itemTypeName: 'taskItem',\n HTMLAttributes: {},\n }\n },\n\n group: 'block list',\n\n content() {\n return `${this.options.itemTypeName}+`\n },\n\n parseHTML() {\n return [\n {\n tag: `ul[data-type=\"${this.name}\"]`,\n priority: 51,\n },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return [\n 'ul',\n mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, { 'data-type': this.name }),\n 0,\n ]\n },\n\n parseMarkdown: (token, h) => {\n return h.createNode('taskList', {}, h.parseChildren(token.items || []))\n },\n\n renderMarkdown: (node, h) => {\n if (!node.content) {\n return ''\n }\n\n return h.renderChildren(node.content, '\\n')\n },\n\n markdownTokenizer: {\n name: 'taskList',\n level: 'block',\n start(src) {\n // Look for the start of a task list item\n const index = src.match(/^\\s*[-+*]\\s+\\[([ xX])\\]\\s+/)?.index\n return index !== undefined ? index : -1\n },\n tokenize(src, tokens, lexer) {\n // Helper function to recursively parse task lists\n const parseTaskListContent = (content: string): any[] | undefined => {\n const nestedResult = parseIndentedBlocks(\n content,\n {\n itemPattern: /^(\\s*)([-+*])\\s+\\[([ xX])\\]\\s+(.*)$/,\n extractItemData: match => ({\n indentLevel: match[1].length,\n mainContent: match[4],\n checked: match[3].toLowerCase() === 'x',\n }),\n createToken: (data, nestedTokens) => ({\n type: 'taskItem',\n raw: '',\n mainContent: data.mainContent,\n indentLevel: data.indentLevel,\n checked: data.checked,\n text: data.mainContent,\n tokens: lexer.inlineTokens(data.mainContent),\n nestedTokens,\n }),\n // Allow recursive nesting\n customNestedParser: parseTaskListContent,\n },\n lexer,\n )\n\n if (nestedResult) {\n const taskListToken = {\n type: 'taskList',\n raw: nestedResult.raw,\n items: nestedResult.items,\n }\n\n // parseIndentedBlocks only consumes checkbox items.\n // Parse any remaining indented content, such as plain bullets,\n // and keep it as sibling tokens.\n const remainder = content.slice(nestedResult.raw.length)\n if (remainder.trim()) {\n return [taskListToken, ...lexer.blockTokens(remainder)]\n }\n\n return [taskListToken]\n }\n\n // Fall back to regular markdown parsing if not a task list\n return lexer.blockTokens(content)\n }\n\n const result = parseIndentedBlocks(\n src,\n {\n itemPattern: /^(\\s*)([-+*])\\s+\\[([ xX])\\]\\s+(.*)$/,\n extractItemData: match => ({\n indentLevel: match[1].length,\n mainContent: match[4],\n checked: match[3].toLowerCase() === 'x',\n }),\n createToken: (data, nestedTokens) => ({\n type: 'taskItem',\n raw: '',\n mainContent: data.mainContent,\n indentLevel: data.indentLevel,\n checked: data.checked,\n text: data.mainContent,\n tokens: lexer.inlineTokens(data.mainContent),\n nestedTokens,\n }),\n // Use the recursive parser for nested content\n customNestedParser: parseTaskListContent,\n },\n lexer,\n )\n\n if (!result) {\n return undefined\n }\n\n return {\n type: 'taskList',\n raw: result.raw,\n items: result.items,\n }\n },\n },\n\n markdownOptions: {\n indentsContent: true,\n },\n\n addCommands() {\n return {\n toggleTaskList:\n () =>\n ({ commands }) => {\n return commands.toggleList(this.name, this.options.itemTypeName)\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-9': () => this.editor.commands.toggleTaskList(),\n }\n },\n})\n","import { Extension } from '@tiptap/core'\n\nimport type { BulletListOptions } from '../bullet-list/index.js'\nimport { BulletList } from '../bullet-list/index.js'\nimport type { ListItemOptions } from '../item/index.js'\nimport { ListItem } from '../item/index.js'\nimport type { ListKeymapOptions } from '../keymap/index.js'\nimport { ListKeymap } from '../keymap/index.js'\nimport type { OrderedListOptions } from '../ordered-list/index.js'\nimport { OrderedList } from '../ordered-list/index.js'\nimport type { TaskItemOptions } from '../task-item/index.js'\nimport { TaskItem } from '../task-item/index.js'\nimport type { TaskListOptions } from '../task-list/index.js'\nimport { TaskList } from '../task-list/index.js'\n\nexport interface ListKitOptions {\n /**\n * If set to false, the bulletList extension will not be registered\n * @example table: false\n */\n bulletList: Partial<BulletListOptions> | false\n /**\n * If set to false, the listItem extension will not be registered\n */\n listItem: Partial<ListItemOptions> | false\n /**\n * If set to false, the listKeymap extension will not be registered\n */\n listKeymap: Partial<ListKeymapOptions> | false\n /**\n * If set to false, the orderedList extension will not be registered\n */\n orderedList: Partial<OrderedListOptions> | false\n /**\n * If set to false, the taskItem extension will not be registered\n */\n taskItem: Partial<TaskItemOptions> | false\n /**\n * If set to false, the taskList extension will not be registered\n */\n taskList: Partial<TaskListOptions> | false\n}\n\n/**\n * The table kit is a collection of table editor extensions.\n *\n * It’s a good starting point for building your own table in Tiptap.\n */\nexport const ListKit = Extension.create<ListKitOptions>({\n name: 'listKit',\n\n addExtensions() {\n const extensions = []\n\n if (this.options.bulletList !== false) {\n extensions.push(BulletList.configure(this.options.bulletList))\n }\n\n if (this.options.listItem !== false) {\n extensions.push(ListItem.configure(this.options.listItem))\n }\n\n if (this.options.listKeymap !== false) {\n extensions.push(ListKeymap.configure(this.options.listKeymap))\n }\n\n if (this.options.orderedList !== false) {\n extensions.push(OrderedList.configure(this.options.orderedList))\n }\n\n if (this.options.taskItem !== false) {\n extensions.push(TaskItem.configure(this.options.taskItem))\n }\n\n if (this.options.taskList !== false) {\n extensions.push(TaskList.configure(this.options.taskList))\n }\n\n return extensions\n },\n})\n"],"mappings":";;;;;AAEA,MAAMA,iBAAe;AACrB,MAAMC,kBAAgB;;;;AA8CtB,MAAa,uBAAuB;;;;;;;AAQpC,MAAa,aAAaC,aAAAA,KAAK,OAA0B;CACvD,MAAM;CAEN,aAAa;EACX,OAAO;GACL,cAAc;GACd,gBAAgB,CAAC;GACjB,WAAW;GACX,gBAAgB;EAClB;CACF;CAEA,OAAO;CAEP,UAAU;EACR,OAAO,GAAG,KAAK,QAAQ,aAAa;CACtC;CAEA,YAAY;EACV,OAAO,CAAC,EAAE,KAAK,KAAK,CAAC;CACvB;CAEA,WAAW,EAAE,kBAAkB;EAC7B,OAAO;GAAC;IAAMC,GAAAA,aAAAA,gBAAAA,CAAgB,KAAK,QAAQ,gBAAgB,cAAc;GAAG;EAAC;CAC/E;CAEA,mBAAmB;CAEnB,gBAAgB,OAAO,YAAY;EACjC,IAAI,MAAM,SAAS,UAAW,MAAc,SAC1C,OAAO,CAAC;EAGV,OAAO;GACL,MAAM;GACN,SAAS,MAAM,QAAQ,QAAQ,cAAc,MAAM,KAAK,IAAI,CAAC;EAC/D;CACF;CAEA,iBAAiB,MAAM,MAAM;EAC3B,IAAI,CAAC,KAAK,SACR,OAAO;EAGT,OAAO,EAAE,eAAe,KAAK,SAAS,IAAI;CAC5C;CAEA,iBAAiB,EACf,gBAAg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,SAAS,UAAU,KAAK,QAAQ,QAAQ,CAAC;EAG3D,OAAO;CACT;AACF,CAAC"}
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import { Extension } from "@tiptap/core";
|
|
2
|
-
import { Node } from "@tiptap/pm/model";
|
|
3
|
-
import "@tiptap/pm/state";
|
|
4
|
-
//#region src/bullet-list/bullet-list.d.ts
|
|
5
|
-
interface BulletListOptions {
|
|
6
|
-
/**
|
|
7
|
-
* The node name for the list items
|
|
8
|
-
* @default 'listItem'
|
|
9
|
-
* @example 'paragraph'
|
|
10
|
-
*/
|
|
11
|
-
itemTypeName: string;
|
|
12
|
-
/**
|
|
13
|
-
* HTML attributes to add to the bullet list element
|
|
14
|
-
* @default {}
|
|
15
|
-
* @example { class: 'foo' }
|
|
16
|
-
*/
|
|
17
|
-
HTMLAttributes: Record<string, any>;
|
|
18
|
-
/**
|
|
19
|
-
* Keep the marks when splitting the list
|
|
20
|
-
* @default false
|
|
21
|
-
* @example true
|
|
22
|
-
*/
|
|
23
|
-
keepMarks: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Keep the attributes when splitting the list
|
|
26
|
-
* @default false
|
|
27
|
-
* @example true
|
|
28
|
-
*/
|
|
29
|
-
keepAttributes: boolean;
|
|
30
|
-
}
|
|
31
|
-
declare module '@tiptap/core' {
|
|
32
|
-
interface Commands<ReturnType> {
|
|
33
|
-
bulletList: {
|
|
34
|
-
/**
|
|
35
|
-
* Toggle a bullet list
|
|
36
|
-
*/
|
|
37
|
-
toggleBulletList: () => ReturnType;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/item/list-item.d.ts
|
|
43
|
-
interface ListItemOptions {
|
|
44
|
-
/**
|
|
45
|
-
* The HTML attributes for a list item node.
|
|
46
|
-
* @default {}
|
|
47
|
-
* @example { class: 'foo' }
|
|
48
|
-
*/
|
|
49
|
-
HTMLAttributes: Record<string, any>;
|
|
50
|
-
/**
|
|
51
|
-
* The node type for bulletList nodes
|
|
52
|
-
* @default 'bulletList'
|
|
53
|
-
* @example 'myCustomBulletList'
|
|
54
|
-
*/
|
|
55
|
-
bulletListTypeName: string;
|
|
56
|
-
/**
|
|
57
|
-
* The node type for orderedList nodes
|
|
58
|
-
* @default 'orderedList'
|
|
59
|
-
* @example 'myCustomOrderedList'
|
|
60
|
-
*/
|
|
61
|
-
orderedListTypeName: string;
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/keymap/list-keymap.d.ts
|
|
65
|
-
type ListKeymapOptions = {
|
|
66
|
-
/**
|
|
67
|
-
* An array of list types. This is used for item and wrapper list matching.
|
|
68
|
-
* @default []
|
|
69
|
-
* @example [{ itemName: 'listItem', wrapperNames: ['bulletList', 'orderedList'] }]
|
|
70
|
-
*/
|
|
71
|
-
listTypes: Array<{
|
|
72
|
-
itemName: string;
|
|
73
|
-
wrapperNames: string[];
|
|
74
|
-
}>;
|
|
75
|
-
};
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/ordered-list/ordered-list.d.ts
|
|
78
|
-
interface OrderedListOptions {
|
|
79
|
-
/**
|
|
80
|
-
* The node type name for list items.
|
|
81
|
-
* @default 'listItem'
|
|
82
|
-
* @example 'myListItem'
|
|
83
|
-
*/
|
|
84
|
-
itemTypeName: string;
|
|
85
|
-
/**
|
|
86
|
-
* The HTML attributes for an ordered list node.
|
|
87
|
-
* @default {}
|
|
88
|
-
* @example { class: 'foo' }
|
|
89
|
-
*/
|
|
90
|
-
HTMLAttributes: Record<string, any>;
|
|
91
|
-
/**
|
|
92
|
-
* Keep the marks when splitting a list item.
|
|
93
|
-
* @default false
|
|
94
|
-
* @example true
|
|
95
|
-
*/
|
|
96
|
-
keepMarks: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Keep the attributes when splitting a list item.
|
|
99
|
-
* @default false
|
|
100
|
-
* @example true
|
|
101
|
-
*/
|
|
102
|
-
keepAttributes: boolean;
|
|
103
|
-
}
|
|
104
|
-
declare module '@tiptap/core' {
|
|
105
|
-
interface Commands<ReturnType> {
|
|
106
|
-
orderedList: {
|
|
107
|
-
/**
|
|
108
|
-
* Toggle an ordered list
|
|
109
|
-
* @example editor.commands.toggleOrderedList()
|
|
110
|
-
*/
|
|
111
|
-
toggleOrderedList: () => ReturnType;
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region src/task-item/task-item.d.ts
|
|
117
|
-
interface TaskItemOptions {
|
|
118
|
-
/**
|
|
119
|
-
* A callback function that is called when the checkbox is clicked while the editor is in readonly mode.
|
|
120
|
-
* @param node The prosemirror node of the task item
|
|
121
|
-
* @param checked The new checked state
|
|
122
|
-
* @returns boolean
|
|
123
|
-
*/
|
|
124
|
-
onReadOnlyChecked?: (node: Node, checked: boolean) => boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Controls whether the task items can be nested or not.
|
|
127
|
-
* @default false
|
|
128
|
-
* @example true
|
|
129
|
-
*/
|
|
130
|
-
nested: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* HTML attributes to add to the task item element.
|
|
133
|
-
* @default {}
|
|
134
|
-
* @example { class: 'foo' }
|
|
135
|
-
*/
|
|
136
|
-
HTMLAttributes: Record<string, any>;
|
|
137
|
-
/**
|
|
138
|
-
* The node type for taskList nodes
|
|
139
|
-
* @default 'taskList'
|
|
140
|
-
* @example 'myCustomTaskList'
|
|
141
|
-
*/
|
|
142
|
-
taskListTypeName: string;
|
|
143
|
-
/**
|
|
144
|
-
* Accessibility options for the task item.
|
|
145
|
-
* @default {}
|
|
146
|
-
* @example
|
|
147
|
-
* ```js
|
|
148
|
-
* {
|
|
149
|
-
* checkboxLabel: (node) => `Task item: ${node.textContent || 'empty task item'}`
|
|
150
|
-
* }
|
|
151
|
-
*/
|
|
152
|
-
a11y?: {
|
|
153
|
-
/**
|
|
154
|
-
* The accessible label for the checkbox. Used as the aria-label on the input and as the
|
|
155
|
-
* (visually hidden) text of the wrapping label element.
|
|
156
|
-
* @param node The prosemirror node of the task item
|
|
157
|
-
* @param checked The new checked state
|
|
158
|
-
* @returns The accessible label for the checkbox
|
|
159
|
-
* @example
|
|
160
|
-
* ```js
|
|
161
|
-
* TaskItem.configure({
|
|
162
|
-
* a11y: {
|
|
163
|
-
* checkboxLabel: node => `Task item: ${node.textContent || 'empty task item'}`,
|
|
164
|
-
* },
|
|
165
|
-
* })
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
|
-
checkboxLabel?: (node: Node, checked: boolean) => string;
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
//#endregion
|
|
172
|
-
//#region src/task-list/task-list.d.ts
|
|
173
|
-
interface TaskListOptions {
|
|
174
|
-
/**
|
|
175
|
-
* The node type name for a task item.
|
|
176
|
-
* @default 'taskItem'
|
|
177
|
-
* @example 'myCustomTaskItem'
|
|
178
|
-
*/
|
|
179
|
-
itemTypeName: string;
|
|
180
|
-
/**
|
|
181
|
-
* The HTML attributes for a task list node.
|
|
182
|
-
* @default {}
|
|
183
|
-
* @example { class: 'foo' }
|
|
184
|
-
*/
|
|
185
|
-
HTMLAttributes: Record<string, any>;
|
|
186
|
-
}
|
|
187
|
-
declare module '@tiptap/core' {
|
|
188
|
-
interface Commands<ReturnType> {
|
|
189
|
-
taskList: {
|
|
190
|
-
/**
|
|
191
|
-
* Toggle a task list
|
|
192
|
-
* @example editor.commands.toggleTaskList()
|
|
193
|
-
*/
|
|
194
|
-
toggleTaskList: () => ReturnType;
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region src/kit/index.d.ts
|
|
200
|
-
interface ListKitOptions {
|
|
201
|
-
/**
|
|
202
|
-
* If set to false, the bulletList extension will not be registered
|
|
203
|
-
* @example table: false
|
|
204
|
-
*/
|
|
205
|
-
bulletList: Partial<BulletListOptions> | false;
|
|
206
|
-
/**
|
|
207
|
-
* If set to false, the listItem extension will not be registered
|
|
208
|
-
*/
|
|
209
|
-
listItem: Partial<ListItemOptions> | false;
|
|
210
|
-
/**
|
|
211
|
-
* If set to false, the listKeymap extension will not be registered
|
|
212
|
-
*/
|
|
213
|
-
listKeymap: Partial<ListKeymapOptions> | false;
|
|
214
|
-
/**
|
|
215
|
-
* If set to false, the orderedList extension will not be registered
|
|
216
|
-
*/
|
|
217
|
-
orderedList: Partial<OrderedListOptions> | false;
|
|
218
|
-
/**
|
|
219
|
-
* If set to false, the taskItem extension will not be registered
|
|
220
|
-
*/
|
|
221
|
-
taskItem: Partial<TaskItemOptions> | false;
|
|
222
|
-
/**
|
|
223
|
-
* If set to false, the taskList extension will not be registered
|
|
224
|
-
*/
|
|
225
|
-
taskList: Partial<TaskListOptions> | false;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* The table kit is a collection of table editor extensions.
|
|
229
|
-
*
|
|
230
|
-
* It’s a good starting point for building your own table in Tiptap.
|
|
231
|
-
*/
|
|
232
|
-
declare const ListKit: Extension<ListKitOptions, any>;
|
|
233
|
-
//#endregion
|
|
234
|
-
export { ListKit, ListKitOptions };
|
|
235
|
-
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/bullet-list/bullet-list.ts","../../src/item/list-item.ts","../../src/keymap/list-keymap.ts","../../src/ordered-list/ordered-list.ts","../../src/task-item/task-item.ts","../../src/task-list/task-list.ts","../../src/kit/index.ts"],"mappings":";;;;UAKiB;;;;;;EAMf;;;;;;EAOA,gBAAgB;;;;;;EAOhB;;;;;;EAOA;;;YAIU,SAAS;IACjB;;;;MAIE,wBAAwB;;;;;;UClCb;;;;;;EAMf,gBAAgB;;;;;;EAOhB;;;;;;EAOA;;;;KCvBU;;;;;;EAMV,WAAW;IACT;IACA;;;;;UCDa;;;;;;EAMf;;;;;;EAOA,gBAAgB;;;;;;EAOhB;;;;;;EAOA;;;YAIU,SAAS;IACjB;;;;;MAKE,yBAAyB;;;;;;UCpCd;;;;;;;EAOf,qBAAqB,MAAM,MAAiB;;;;;;EAO5C;;;;;;EAOA,gBAAgB;;;;;;EAOhB;;;;;;;;;;EAWA;;;;;;;;;;;;;;;;IAgBE,iBAAiB,MAAM,MAAiB;;;;;UCjE3B;;;;;;EAMf;;;;;;EAOA,gBAAgB;;;YAIN,SAAS;IACjB;;;;;MAKE,sBAAsB;;;;;;UCVX;;;;;EAKf,YAAY,QAAQ;;;;EAIpB,UAAU,QAAQ;;;;EAIlB,YAAY,QAAQ;;;;EAIpB,aAAa,QAAQ;;;;EAIrB,UAAU,QAAQ;;;;EAIlB,UAAU,QAAQ;;;;;;;cAQP,SAAO,UAAA"}
|