@yoopta/editor 4.9.9 → 6.0.0-beta.10
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 +13 -5
- package/dist/components/Block/Block.d.ts +3 -4
- package/dist/components/Block/Block.d.ts.map +1 -1
- package/dist/components/Block/hooks.d.ts +3 -1706
- package/dist/components/Block/hooks.d.ts.map +1 -1
- package/dist/components/Editor/render-blocks.d.ts +13 -0
- package/dist/components/Editor/render-blocks.d.ts.map +1 -0
- package/dist/components/Editor/render-editor.d.ts +13 -0
- package/dist/components/Editor/render-editor.d.ts.map +1 -0
- package/dist/components/Editor/selection.d.ts +1 -1
- package/dist/components/Editor/selection.d.ts.map +1 -1
- package/dist/components/Editor/utils.d.ts +1 -1
- package/dist/components/Editor/utils.d.ts.map +1 -1
- package/dist/components/{TextLeaf/TextLeaf.d.ts → text-leaf/text-leaf.d.ts} +2 -2
- package/dist/components/text-leaf/text-leaf.d.ts.map +1 -0
- package/dist/contexts/YooptaContext/YooptaContext.d.ts +3 -3
- package/dist/contexts/YooptaContext/YooptaContext.d.ts.map +1 -1
- package/dist/editor/blocks/buildBlockData.d.ts +1 -1
- package/dist/editor/blocks/buildBlockData.d.ts.map +1 -1
- package/dist/editor/blocks/decreaseBlockDepth.d.ts +2 -2
- package/dist/editor/blocks/decreaseBlockDepth.d.ts.map +1 -1
- package/dist/editor/blocks/deleteBlock.d.ts +46 -15
- package/dist/editor/blocks/deleteBlock.d.ts.map +1 -1
- package/dist/editor/blocks/deleteBlock.test.d.ts +2 -0
- package/dist/editor/blocks/deleteBlock.test.d.ts.map +1 -0
- package/dist/editor/blocks/duplicateBlock.d.ts +45 -10
- package/dist/editor/blocks/duplicateBlock.d.ts.map +1 -1
- package/dist/editor/blocks/duplicateBlock.test.d.ts +2 -0
- package/dist/editor/blocks/duplicateBlock.test.d.ts.map +1 -0
- package/dist/editor/blocks/focusBlock.d.ts +1 -1
- package/dist/editor/blocks/focusBlock.d.ts.map +1 -1
- package/dist/editor/blocks/getBlock.d.ts +2 -2
- package/dist/editor/blocks/getBlock.d.ts.map +1 -1
- package/dist/editor/blocks/getBlockSlate.d.ts +2 -2
- package/dist/editor/blocks/getBlockSlate.d.ts.map +1 -1
- package/dist/editor/blocks/increaseBlockDepth.d.ts +1 -1
- package/dist/editor/blocks/increaseBlockDepth.d.ts.map +1 -1
- package/dist/editor/blocks/index.d.ts +9 -9
- package/dist/editor/blocks/index.d.ts.map +1 -1
- package/dist/editor/blocks/insertBlock.d.ts +28 -1
- package/dist/editor/blocks/insertBlock.d.ts.map +1 -1
- package/dist/editor/blocks/mergeBlock.d.ts +48 -2
- package/dist/editor/blocks/mergeBlock.d.ts.map +1 -1
- package/dist/editor/blocks/mergeBlock.test.d.ts +2 -0
- package/dist/editor/blocks/mergeBlock.test.d.ts.map +1 -0
- package/dist/editor/blocks/moveBlock.d.ts +1 -1
- package/dist/editor/blocks/moveBlock.d.ts.map +1 -1
- package/dist/editor/blocks/splitBlock.d.ts +51 -3
- package/dist/editor/blocks/splitBlock.d.ts.map +1 -1
- package/dist/editor/blocks/splitBlock.test.d.ts +2 -0
- package/dist/editor/blocks/splitBlock.test.d.ts.map +1 -0
- package/dist/editor/blocks/toggleBlock.d.ts +51 -5
- package/dist/editor/blocks/toggleBlock.d.ts.map +1 -1
- package/dist/editor/blocks/toggleBlock.test.d.ts +2 -0
- package/dist/editor/blocks/toggleBlock.test.d.ts.map +1 -0
- package/dist/editor/blocks/updateBlock.d.ts +1 -1
- package/dist/editor/blocks/updateBlock.d.ts.map +1 -1
- package/dist/editor/core/applyTransforms.d.ts +2 -2
- package/dist/editor/core/applyTransforms.d.ts.map +1 -1
- package/dist/editor/core/batchOperations.d.ts +1 -1
- package/dist/editor/core/batchOperations.d.ts.map +1 -1
- package/dist/editor/core/blur.d.ts +1 -1
- package/dist/editor/core/blur.d.ts.map +1 -1
- package/dist/editor/core/focus.d.ts +1 -1
- package/dist/editor/core/focus.d.ts.map +1 -1
- package/dist/editor/core/getEditorValue.d.ts +1 -1
- package/dist/editor/core/getEditorValue.d.ts.map +1 -1
- package/dist/editor/core/history.d.ts +4 -4
- package/dist/editor/core/history.d.ts.map +1 -1
- package/dist/editor/core/isEmpty.d.ts +1 -1
- package/dist/editor/core/isEmpty.d.ts.map +1 -1
- package/dist/editor/core/isFocused.d.ts +1 -1
- package/dist/editor/core/isFocused.d.ts.map +1 -1
- package/dist/editor/core/setEditorValue.d.ts +1 -1
- package/dist/editor/core/setEditorValue.d.ts.map +1 -1
- package/dist/editor/elements/create-element-structure.d.ts +150 -0
- package/dist/editor/elements/create-element-structure.d.ts.map +1 -0
- package/dist/editor/elements/create-element-structure.test.d.ts +2 -0
- package/dist/editor/elements/create-element-structure.test.d.ts.map +1 -0
- package/dist/editor/elements/deleteElement.d.ts +78 -7
- package/dist/editor/elements/deleteElement.d.ts.map +1 -1
- package/dist/editor/elements/getElement.d.ts +26 -4
- package/dist/editor/elements/getElement.d.ts.map +1 -1
- package/dist/editor/elements/getElement.test.d.ts +2 -0
- package/dist/editor/elements/getElement.test.d.ts.map +1 -0
- package/dist/editor/elements/getElementChildren.d.ts +20 -4
- package/dist/editor/elements/getElementChildren.d.ts.map +1 -1
- package/dist/editor/elements/getElementChildren.test.d.ts +2 -0
- package/dist/editor/elements/getElementChildren.test.d.ts.map +1 -0
- package/dist/editor/elements/getElementEntry.d.ts +26 -7
- package/dist/editor/elements/getElementEntry.d.ts.map +1 -1
- package/dist/editor/elements/getElementEntry.test.d.ts +2 -0
- package/dist/editor/elements/getElementEntry.test.d.ts.map +1 -0
- package/dist/editor/elements/getElementPath.d.ts +20 -3
- package/dist/editor/elements/getElementPath.d.ts.map +1 -1
- package/dist/editor/elements/getElementPath.test.d.ts +2 -0
- package/dist/editor/elements/getElementPath.test.d.ts.map +1 -0
- package/dist/editor/elements/getElementRect.d.ts +28 -0
- package/dist/editor/elements/getElementRect.d.ts.map +1 -0
- package/dist/editor/elements/getElements.d.ts +26 -0
- package/dist/editor/elements/getElements.d.ts.map +1 -0
- package/dist/editor/elements/getElements.test.d.ts +2 -0
- package/dist/editor/elements/getElements.test.d.ts.map +1 -0
- package/dist/editor/elements/getParentElementPath.d.ts +20 -3
- package/dist/editor/elements/getParentElementPath.d.ts.map +1 -1
- package/dist/editor/elements/getParentElementPath.test.d.ts +2 -0
- package/dist/editor/elements/getParentElementPath.test.d.ts.map +1 -0
- package/dist/editor/elements/htmlElToSlateNode.d.ts +4 -0
- package/dist/editor/elements/htmlElToSlateNode.d.ts.map +1 -0
- package/dist/editor/elements/index.d.ts +12 -9
- package/dist/editor/elements/index.d.ts.map +1 -1
- package/dist/editor/elements/insertElement.d.ts +22 -0
- package/dist/editor/elements/insertElement.d.ts.map +1 -0
- package/dist/editor/elements/insertElement.test.d.ts +2 -0
- package/dist/editor/elements/insertElement.test.d.ts.map +1 -0
- package/dist/editor/elements/isElementEmpty.d.ts +20 -7
- package/dist/editor/elements/isElementEmpty.d.ts.map +1 -1
- package/dist/editor/elements/isElementEmpty.test.d.ts +2 -0
- package/dist/editor/elements/isElementEmpty.test.d.ts.map +1 -0
- package/dist/editor/elements/types.d.ts +73 -0
- package/dist/editor/elements/types.d.ts.map +1 -0
- package/dist/editor/elements/updateElement.d.ts +69 -7
- package/dist/editor/elements/updateElement.d.ts.map +1 -1
- package/dist/editor/index.d.ts +11 -3
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/paths/getBlockOrder.d.ts +3 -0
- package/dist/editor/paths/getBlockOrder.d.ts.map +1 -0
- package/dist/editor/paths/getNextBlockOrder.d.ts +3 -0
- package/dist/editor/paths/getNextBlockOrder.d.ts.map +1 -0
- package/dist/editor/paths/getPreviousBlockOrder.d.ts +3 -0
- package/dist/editor/paths/getPreviousBlockOrder.d.ts.map +1 -0
- package/dist/editor/paths/getSelectedPaths.d.ts +1 -1
- package/dist/editor/paths/getSelectedPaths.d.ts.map +1 -1
- package/dist/editor/paths/index.d.ts +10 -8
- package/dist/editor/paths/index.d.ts.map +1 -1
- package/dist/editor/paths/isBlockSelected.d.ts +1 -1
- package/dist/editor/paths/isBlockSelected.d.ts.map +1 -1
- package/dist/editor/paths/isPathEmpty.d.ts +1 -1
- package/dist/editor/paths/isPathEmpty.d.ts.map +1 -1
- package/dist/editor/paths/setPath.d.ts +1 -1
- package/dist/editor/paths/setPath.d.ts.map +1 -1
- package/dist/editor/selection/getAnchor.d.ts +20 -0
- package/dist/editor/selection/getAnchor.d.ts.map +1 -0
- package/dist/editor/selection/getCurrent.d.ts +20 -0
- package/dist/editor/selection/getCurrent.d.ts.map +1 -0
- package/dist/editor/selection/getEnd.d.ts +20 -0
- package/dist/editor/selection/getEnd.d.ts.map +1 -0
- package/dist/editor/selection/getFirstPoint.d.ts +23 -0
- package/dist/editor/selection/getFirstPoint.d.ts.map +1 -0
- package/dist/editor/selection/getFocus.d.ts +20 -0
- package/dist/editor/selection/getFocus.d.ts.map +1 -0
- package/dist/editor/selection/getLastPoint.d.ts +23 -0
- package/dist/editor/selection/getLastPoint.d.ts.map +1 -0
- package/dist/editor/selection/getNext.d.ts +20 -0
- package/dist/editor/selection/getNext.d.ts.map +1 -0
- package/dist/editor/selection/getPrevious.d.ts +20 -0
- package/dist/editor/selection/getPrevious.d.ts.map +1 -0
- package/dist/editor/selection/getRange.d.ts +21 -0
- package/dist/editor/selection/getRange.d.ts.map +1 -0
- package/dist/editor/selection/getSelected.d.ts +20 -0
- package/dist/editor/selection/getSelected.d.ts.map +1 -0
- package/dist/editor/selection/getSlateSelection.d.ts +23 -0
- package/dist/editor/selection/getSlateSelection.d.ts.map +1 -0
- package/dist/editor/selection/getStart.d.ts +20 -0
- package/dist/editor/selection/getStart.d.ts.map +1 -0
- package/dist/editor/selection/index.d.ts +43 -0
- package/dist/editor/selection/index.d.ts.map +1 -0
- package/dist/editor/selection/isBlockSelected.d.ts +23 -0
- package/dist/editor/selection/isBlockSelected.d.ts.map +1 -0
- package/dist/editor/selection/isCollapsed.d.ts +20 -0
- package/dist/editor/selection/isCollapsed.d.ts.map +1 -0
- package/dist/editor/selection/isEmpty.d.ts +14 -0
- package/dist/editor/selection/isEmpty.d.ts.map +1 -0
- package/dist/editor/selection/isExpanded.d.ts +20 -0
- package/dist/editor/selection/isExpanded.d.ts.map +1 -0
- package/dist/editor/selection/setCurrent.d.ts +22 -0
- package/dist/editor/selection/setCurrent.d.ts.map +1 -0
- package/dist/editor/selection/setSelected.d.ts +25 -0
- package/dist/editor/selection/setSelected.d.ts.map +1 -0
- package/dist/editor/selection/setSlateSelection.d.ts +24 -0
- package/dist/editor/selection/setSlateSelection.d.ts.map +1 -0
- package/dist/editor/selection/types.d.ts +128 -0
- package/dist/editor/selection/types.d.ts.map +1 -0
- package/dist/editor/textFormats/addMark.d.ts +33 -0
- package/dist/editor/textFormats/addMark.d.ts.map +1 -0
- package/dist/editor/textFormats/clearMarks.d.ts +27 -0
- package/dist/editor/textFormats/clearMarks.d.ts.map +1 -0
- package/dist/editor/textFormats/getMarks.d.ts +20 -0
- package/dist/editor/textFormats/getMarks.d.ts.map +1 -0
- package/dist/editor/textFormats/getValue.d.ts +22 -2
- package/dist/editor/textFormats/getValue.d.ts.map +1 -1
- package/dist/editor/textFormats/index.d.ts +21 -0
- package/dist/editor/textFormats/index.d.ts.map +1 -0
- package/dist/editor/textFormats/isActive.d.ts +22 -2
- package/dist/editor/textFormats/isActive.d.ts.map +1 -1
- package/dist/editor/textFormats/removeMark.d.ts +28 -0
- package/dist/editor/textFormats/removeMark.d.ts.map +1 -0
- package/dist/editor/textFormats/toggle.d.ts +33 -2
- package/dist/editor/textFormats/toggle.d.ts.map +1 -1
- package/dist/editor/textFormats/types.d.ts +177 -0
- package/dist/editor/textFormats/types.d.ts.map +1 -0
- package/dist/editor/textFormats/update.d.ts +32 -2
- package/dist/editor/textFormats/update.d.ts.map +1 -1
- package/dist/editor/types.d.ts +60 -31
- package/dist/editor/types.d.ts.map +1 -1
- package/dist/extensions/shortcuts.d.ts +6 -2
- package/dist/extensions/shortcuts.d.ts.map +1 -1
- package/dist/handlers/index.d.ts +1 -1
- package/dist/handlers/index.d.ts.map +1 -1
- package/dist/handlers/onKeyDown.d.ts +1 -2
- package/dist/handlers/onKeyDown.d.ts.map +1 -1
- package/dist/index.d.ts +16 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -6
- package/dist/marks/index.d.ts +1 -1
- package/dist/marks/index.d.ts.map +1 -1
- package/dist/parsers/deserializeHTML.d.ts +10 -2
- package/dist/parsers/deserializeHTML.d.ts.map +1 -1
- package/dist/parsers/deserializeHTML.test.d.ts +2 -0
- package/dist/parsers/deserializeHTML.test.d.ts.map +1 -0
- package/dist/parsers/deserializeTextNodes.d.ts +2 -2
- package/dist/parsers/deserializeTextNodes.d.ts.map +1 -1
- package/dist/parsers/deserializeYooptaJSON.d.ts +16 -0
- package/dist/parsers/deserializeYooptaJSON.d.ts.map +1 -0
- package/dist/parsers/getEmail.d.ts +2 -4
- package/dist/parsers/getEmail.d.ts.map +1 -1
- package/dist/parsers/getHTML.d.ts +1 -1
- package/dist/parsers/getHTML.d.ts.map +1 -1
- package/dist/parsers/getMarkdown.d.ts +1 -1
- package/dist/parsers/getMarkdown.d.ts.map +1 -1
- package/dist/parsers/getPlainText.d.ts +1 -1
- package/dist/parsers/getPlainText.d.ts.map +1 -1
- package/dist/parsers/getYooptaJSON.d.ts +20 -0
- package/dist/parsers/getYooptaJSON.d.ts.map +1 -0
- package/dist/plugins/build-plugin-elements.d.ts +13 -0
- package/dist/plugins/build-plugin-elements.d.ts.map +1 -0
- package/dist/plugins/build-plugin-elements.test.d.ts +2 -0
- package/dist/plugins/build-plugin-elements.test.d.ts.map +1 -0
- package/dist/plugins/create-yoopta-plugin.d.ts +32 -0
- package/dist/plugins/create-yoopta-plugin.d.ts.map +1 -0
- package/dist/plugins/create-yoopta-plugin.test.d.ts +2 -0
- package/dist/plugins/create-yoopta-plugin.test.d.ts.map +1 -0
- package/dist/plugins/extenstions/{withInlines.d.ts → with-inlines.d.ts} +2 -2
- package/dist/plugins/extenstions/with-inlines.d.ts.map +1 -0
- package/dist/plugins/hooks.d.ts +4 -4
- package/dist/plugins/hooks.d.ts.map +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/slate-editor-component.d.ts +12 -0
- package/dist/plugins/slate-editor-component.d.ts.map +1 -0
- package/dist/plugins/types.d.ts +32 -21
- package/dist/plugins/types.d.ts.map +1 -1
- package/dist/utils/{blockElements.d.ts → block-elements.d.ts} +16 -7
- package/dist/utils/block-elements.d.ts.map +1 -0
- package/dist/utils/build-slate.d.ts +4 -0
- package/dist/utils/build-slate.d.ts.map +1 -0
- package/dist/utils/editor-builders.d.ts +7 -0
- package/dist/utils/editor-builders.d.ts.map +1 -0
- package/dist/utils/editor-builders.test.d.ts +2 -0
- package/dist/utils/editor-builders.test.d.ts.map +1 -0
- package/dist/utils/enter-action.d.ts +40 -0
- package/dist/utils/enter-action.d.ts.map +1 -0
- package/dist/utils/enter-action.test.d.ts +2 -0
- package/dist/utils/enter-action.test.d.ts.map +1 -0
- package/dist/utils/execute-backspace-action.d.ts +29 -0
- package/dist/utils/execute-backspace-action.d.ts.map +1 -0
- package/dist/utils/execute-backspace-action.test.d.ts +2 -0
- package/dist/utils/execute-backspace-action.test.d.ts.map +1 -0
- package/dist/utils/findSlateBySelectionPath.d.ts +1 -1
- package/dist/utils/findSlateBySelectionPath.d.ts.map +1 -1
- package/dist/utils/generateId.d.ts.map +1 -1
- package/dist/utils/get-block-plugins.d.ts +4 -0
- package/dist/utils/get-block-plugins.d.ts.map +1 -0
- package/dist/utils/get-block-plugins.test.d.ts +2 -0
- package/dist/utils/get-block-plugins.test.d.ts.map +1 -0
- package/dist/utils/get-next-hierarchical-selection.d.ts +20 -0
- package/dist/utils/get-next-hierarchical-selection.d.ts.map +1 -0
- package/dist/utils/get-next-hierarchical-selection.test.d.ts +2 -0
- package/dist/utils/get-next-hierarchical-selection.test.d.ts.map +1 -0
- package/dist/utils/get-node-points.d.ts +5 -0
- package/dist/utils/get-node-points.d.ts.map +1 -0
- package/dist/utils/get-node-points.test.d.ts +2 -0
- package/dist/utils/get-node-points.test.d.ts.map +1 -0
- package/dist/utils/getMaxOffsetInElement.d.ts.map +1 -1
- package/dist/utils/invariant.d.ts +2 -0
- package/dist/utils/invariant.d.ts.map +1 -0
- package/dist/utils/types.d.ts.map +1 -1
- package/dist/utils/validations.d.ts +3 -0
- package/dist/utils/validations.d.ts.map +1 -0
- package/dist/utils/weakMaps.d.ts +1 -2
- package/dist/utils/weakMaps.d.ts.map +1 -1
- package/dist/yoopta-editor.d.ts +27 -0
- package/dist/yoopta-editor.d.ts.map +1 -0
- package/package.json +11 -11
- package/dist/UI/BlockOptions/BlockOptions.d.ts +0 -25
- package/dist/UI/BlockOptions/BlockOptions.d.ts.map +0 -1
- package/dist/UI/BlockOptions/utils.d.ts +0 -33
- package/dist/UI/BlockOptions/utils.d.ts.map +0 -1
- package/dist/UI/ExtendedBlockActions/ExtendedBlockActions.d.ts +0 -11
- package/dist/UI/ExtendedBlockActions/ExtendedBlockActions.d.ts.map +0 -1
- package/dist/UI/Overlay/Overlay.d.ts +0 -12
- package/dist/UI/Overlay/Overlay.d.ts.map +0 -1
- package/dist/UI/Portal/Portal.d.ts +0 -8
- package/dist/UI/Portal/Portal.d.ts.map +0 -1
- package/dist/UI/index.d.ts +0 -38
- package/dist/UI/index.d.ts.map +0 -1
- package/dist/YooptaEditor.d.ts +0 -30
- package/dist/YooptaEditor.d.ts.map +0 -1
- package/dist/components/Block/FloatingBlockActions.d.ts +0 -14
- package/dist/components/Block/FloatingBlockActions.d.ts.map +0 -1
- package/dist/components/Editor/Editor.d.ts +0 -15
- package/dist/components/Editor/Editor.d.ts.map +0 -1
- package/dist/components/Editor/RenderBlocks.d.ts +0 -10
- package/dist/components/Editor/RenderBlocks.d.ts.map +0 -1
- package/dist/components/Editor/dnd.d.ts +0 -10
- package/dist/components/Editor/dnd.d.ts.map +0 -1
- package/dist/components/SelectionBox/SelectionBox.d.ts +0 -19
- package/dist/components/SelectionBox/SelectionBox.d.ts.map +0 -1
- package/dist/components/SelectionBox/hooks.d.ts +0 -7
- package/dist/components/SelectionBox/hooks.d.ts.map +0 -1
- package/dist/components/TextLeaf/TextLeaf.d.ts.map +0 -1
- package/dist/contexts/YooptaContext/ToolsContext.d.ts +0 -23
- package/dist/contexts/YooptaContext/ToolsContext.d.ts.map +0 -1
- package/dist/editor/elements/createElement.d.ts +0 -13
- package/dist/editor/elements/createElement.d.ts.map +0 -1
- package/dist/editor/elements/insertElementText.d.ts +0 -7
- package/dist/editor/elements/insertElementText.d.ts.map +0 -1
- package/dist/editor/paths/getNextPath.d.ts +0 -3
- package/dist/editor/paths/getNextPath.d.ts.map +0 -1
- package/dist/editor/paths/getPath.d.ts +0 -3
- package/dist/editor/paths/getPath.d.ts.map +0 -1
- package/dist/editor/paths/getPreviousPath.d.ts +0 -3
- package/dist/editor/paths/getPreviousPath.d.ts.map +0 -1
- package/dist/marks/FakeSelectionMark.d.ts +0 -5
- package/dist/marks/FakeSelectionMark.d.ts.map +0 -1
- package/dist/plugins/SlateEditorComponent.d.ts +0 -13
- package/dist/plugins/SlateEditorComponent.d.ts.map +0 -1
- package/dist/plugins/createYooptaPlugin.d.ts +0 -25
- package/dist/plugins/createYooptaPlugin.d.ts.map +0 -1
- package/dist/plugins/extenstions/withInlines.d.ts.map +0 -1
- package/dist/utils/blockElements.d.ts.map +0 -1
- package/dist/utils/buildSlate.d.ts +0 -3
- package/dist/utils/buildSlate.d.ts.map +0 -1
- package/dist/utils/deepClone.d.ts +0 -2
- package/dist/utils/deepClone.d.ts.map +0 -1
- package/dist/utils/editorBuilders.d.ts +0 -10
- package/dist/utils/editorBuilders.d.ts.map +0 -1
- package/dist/utils/findPluginBlockByPath.d.ts +0 -5
- package/dist/utils/findPluginBlockByPath.d.ts.map +0 -1
- package/dist/utils/getLastNodePoint.d.ts +0 -9
- package/dist/utils/getLastNodePoint.d.ts.map +0 -1
- package/dist/utils/throttle.d.ts +0 -8
- package/dist/utils/throttle.d.ts.map +0 -1
- package/dist/utils/validateYooptaValue.d.ts +0 -2
- package/dist/utils/validateYooptaValue.d.ts.map +0 -1
- package/dist/utils/validators.d.ts +0 -2
- package/dist/utils/validators.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-backspace-action.test.d.ts","sourceRoot":"","sources":["../../src/utils/execute-backspace-action.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlateEditor, YooEditor, YooptaPathIndex } from '../editor/types';
|
|
1
|
+
import type { SlateEditor, YooEditor, YooptaPathIndex } from '../editor/types';
|
|
2
2
|
export declare function findSlateBySelectionPath(editor: YooEditor, options?: {
|
|
3
3
|
at: YooptaPathIndex;
|
|
4
4
|
}): SlateEditor | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findSlateBySelectionPath.d.ts","sourceRoot":"","sources":["../../src/utils/findSlateBySelectionPath.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"findSlateBySelectionPath.d.ts","sourceRoot":"","sources":["../../src/utils/findSlateBySelectionPath.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE/E,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;IAAE,EAAE,EAAE,eAAe,CAAA;CAAE,GAChC,WAAW,GAAG,SAAS,CAWzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateId.d.ts","sourceRoot":"","sources":["../../src/utils/generateId.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generateId.d.ts","sourceRoot":"","sources":["../../src/utils/generateId.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU,QAAO,MAK7B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SlateElement, YooEditor } from '../editor/types';
|
|
2
|
+
import type { Plugin } from '../plugins/types';
|
|
3
|
+
export declare function getBlockPlugins(editor: YooEditor): Record<string, Plugin<Record<string, SlateElement>>>;
|
|
4
|
+
//# sourceMappingURL=get-block-plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-block-plugins.d.ts","sourceRoot":"","sources":["../../src/utils/get-block-plugins.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,wBAAgB,eAAe,CAC7B,MAAM,EAAE,SAAS,GAChB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CActD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-block-plugins.test.d.ts","sourceRoot":"","sources":["../../src/utils/get-block-plugins.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Editor, Path, Range } from 'slate';
|
|
2
|
+
import type { YooEditor } from '../editor/types';
|
|
3
|
+
type HierarchicalSelectResult = {
|
|
4
|
+
action: 'select-path';
|
|
5
|
+
path: Path;
|
|
6
|
+
} | {
|
|
7
|
+
action: 'select-range';
|
|
8
|
+
range: Range;
|
|
9
|
+
} | {
|
|
10
|
+
action: 'select-block';
|
|
11
|
+
blockOrder: number;
|
|
12
|
+
} | {
|
|
13
|
+
action: 'select-all-blocks';
|
|
14
|
+
blockOrders: number[];
|
|
15
|
+
} | {
|
|
16
|
+
action: 'none';
|
|
17
|
+
};
|
|
18
|
+
export declare function getNextHierarchicalSelection(editor: YooEditor, slate: Editor): HierarchicalSelectResult;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=get-next-hierarchical-selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-next-hierarchical-selection.d.ts","sourceRoot":"","sources":["../../src/utils/get-next-hierarchical-selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,IAAI,EAAS,KAAK,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE/D,KAAK,wBAAwB,GACzB;IAAE,MAAM,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAE,GACrC;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,GACxC;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAC9C;IAAE,MAAM,EAAE,mBAAmB,CAAC;IAAC,WAAW,EAAE,MAAM,EAAE,CAAA;CAAE,GACtD;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AA0CvB,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,SAAS,EACjB,KAAK,EAAE,MAAM,GACZ,wBAAwB,CA0F1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-next-hierarchical-selection.test.d.ts","sourceRoot":"","sources":["../../src/utils/get-next-hierarchical-selection.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Point } from 'slate';
|
|
2
|
+
import type { SlateEditor } from '../editor/types';
|
|
3
|
+
export declare function getLastNodePoint(slate: SlateEditor): Point;
|
|
4
|
+
export declare function getFirstNodePoint(slate: SlateEditor): Point;
|
|
5
|
+
//# sourceMappingURL=get-node-points.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-node-points.d.ts","sourceRoot":"","sources":["../../src/utils/get-node-points.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAGnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,KAAK,CAuB1D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,KAAK,CA2B3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-node-points.test.d.ts","sourceRoot":"","sources":["../../src/utils/get-node-points.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMaxOffsetInElement.d.ts","sourceRoot":"","sources":["../../src/utils/getMaxOffsetInElement.ts"],"names":[],"mappings":"AAEA,wBAAgB,qBAAqB,CAAC,MAAM,KAAA,EAAE,WAAW,KAAA,
|
|
1
|
+
{"version":3,"file":"getMaxOffsetInElement.d.ts","sourceRoot":"","sources":["../../src/utils/getMaxOffsetInElement.ts"],"names":[],"mappings":"AAEA,wBAAgB,qBAAqB,CAAC,MAAM,KAAA,EAAE,WAAW,KAAA,UAYxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invariant.d.ts","sourceRoot":"","sources":["../../src/utils/invariant.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,SAAS,EAAE,GAAG,EACd,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAChC,OAAO,CAAC,SAAS,CAYnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,GAC5E,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,GACjB,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validations.d.ts","sourceRoot":"","sources":["../../src/utils/validations.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAMvD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAEjD"}
|
package/dist/utils/weakMaps.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weakMaps.d.ts","sourceRoot":"","sources":["../../src/utils/weakMaps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"weakMaps.d.ts","sourceRoot":"","sources":["../../src/utils/weakMaps.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,2DAAoC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import type { YooptaOperation } from './editor/core/applyTransforms';
|
|
3
|
+
import type { YooEditor, YooptaBlockData, YooptaContentValue, YooptaPath } from './editor/types';
|
|
4
|
+
export type YooptaOnChangeOptions = {
|
|
5
|
+
operations: YooptaOperation[];
|
|
6
|
+
};
|
|
7
|
+
export type RenderBlockProps = {
|
|
8
|
+
block: YooptaBlockData;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
blockId: string;
|
|
11
|
+
index: number;
|
|
12
|
+
};
|
|
13
|
+
export type YooptaEditorProps = {
|
|
14
|
+
editor: YooEditor;
|
|
15
|
+
onChange?: (value: YooptaContentValue, options: YooptaOnChangeOptions) => void;
|
|
16
|
+
onPathChange?: (path: YooptaPath) => void;
|
|
17
|
+
autoFocus?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
/** Custom render wrapper for each block. Useful for drag-and-drop integration. */
|
|
23
|
+
renderBlock?: (props: RenderBlockProps) => ReactNode;
|
|
24
|
+
};
|
|
25
|
+
declare const YooptaEditor: ({ editor, autoFocus, className, children, placeholder, style, onChange, onPathChange, renderBlock, }: YooptaEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export { YooptaEditor };
|
|
27
|
+
//# sourceMappingURL=yoopta-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yoopta-editor.d.ts","sourceRoot":"","sources":["../src/yoopta-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjG,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC/E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,kFAAkF;IAClF,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,SAAS,CAAC;CACtD,CAAC;AAOF,QAAA,MAAM,YAAY,yGAUf,iBAAiB,4CAiDnB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoopta/editor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,11 +11,6 @@
|
|
|
11
11
|
"dist/"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@dnd-kit/core": "^6.1.0",
|
|
15
|
-
"@dnd-kit/sortable": "^8.0.0",
|
|
16
|
-
"@floating-ui/react": "^0.26.9",
|
|
17
|
-
"@radix-ui/react-icons": "^1.3.0",
|
|
18
|
-
"copy-to-clipboard": "^3.3.3",
|
|
19
14
|
"eventemitter3": "^5.0.1",
|
|
20
15
|
"immer": "^10.0.3",
|
|
21
16
|
"is-hotkey": "^0.2.0",
|
|
@@ -23,10 +18,11 @@
|
|
|
23
18
|
"validator": "^13.12.0"
|
|
24
19
|
},
|
|
25
20
|
"peerDependencies": {
|
|
26
|
-
"react": ">=
|
|
27
|
-
"react-dom": ">=
|
|
28
|
-
"slate": "^0.
|
|
29
|
-
"slate-
|
|
21
|
+
"react": ">=18.2.0",
|
|
22
|
+
"react-dom": ">=18.2.0",
|
|
23
|
+
"slate": "^0.120.0",
|
|
24
|
+
"slate-dom": "^0.119.0",
|
|
25
|
+
"slate-react": "^0.120.0"
|
|
30
26
|
},
|
|
31
27
|
"scripts": {
|
|
32
28
|
"start": "rollup --config rollup.config.js --watch --bundleConfigAsCjs --environment NODE_ENV:development",
|
|
@@ -68,5 +64,9 @@
|
|
|
68
64
|
"url": "https://github.com/Darginec05/Yoopta-Editor/issues"
|
|
69
65
|
},
|
|
70
66
|
"homepage": "https://github.com/Darginec05/Yoopta-Editor#readme",
|
|
71
|
-
"
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"registry": "https://registry.npmjs.org",
|
|
69
|
+
"access": "public"
|
|
70
|
+
},
|
|
71
|
+
"gitHead": "cab1b9a3d5f104c46da98df464f1806d968b12fd"
|
|
72
72
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
declare const BlockOptionsMenuGroup: ({ children }: {
|
|
3
|
-
children: any;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare const BlockOptionsMenuContent: ({ children }: {
|
|
6
|
-
children: any;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const BlockOptionsMenuItem: ({ children }: {
|
|
9
|
-
children: any;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
type BlockOptionsSeparatorProps = {
|
|
12
|
-
className?: string;
|
|
13
|
-
};
|
|
14
|
-
declare const BlockOptionsSeparator: ({ className }: BlockOptionsSeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export type BlockOptionsProps = {
|
|
16
|
-
isOpen: boolean;
|
|
17
|
-
onClose: () => void;
|
|
18
|
-
refs: any;
|
|
19
|
-
style: CSSProperties;
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
actions?: ['delete', 'duplicate', 'turnInto', 'copy'] | null;
|
|
22
|
-
};
|
|
23
|
-
declare const BlockOptions: ({ isOpen, onClose, refs, style, actions, children }: BlockOptionsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
-
export { BlockOptions, BlockOptionsMenuContent, BlockOptionsMenuGroup, BlockOptionsMenuItem, BlockOptionsSeparator };
|
|
25
|
-
//# sourceMappingURL=BlockOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockOptions.d.ts","sourceRoot":"","sources":["../../../src/UI/BlockOptions/BlockOptions.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAUhD,QAAA,MAAM,qBAAqB;;6CAAiF,CAAC;AAE7G,QAAA,MAAM,uBAAuB;;6CAO5B,CAAC;AAEF,QAAA,MAAM,oBAAoB;;6CAAgF,CAAC;AAE3G,KAAK,0BAA0B,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,qBAAqB,kBAAwB,0BAA0B,4CAE5E,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC9D,CAAC;AAIF,QAAA,MAAM,YAAY,wDAA2E,iBAAiB,mDAuH7G,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { YooEditor } from '../../editor/types';
|
|
2
|
-
type Params = {
|
|
3
|
-
editor: YooEditor;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
empty?: boolean;
|
|
6
|
-
withVoids?: boolean;
|
|
7
|
-
view?: 'small' | 'default';
|
|
8
|
-
mode?: 'toggle' | 'create';
|
|
9
|
-
};
|
|
10
|
-
export declare function buildActionMenuRenderProps({ editor, view, onClose, mode }: Params): {
|
|
11
|
-
actions: {
|
|
12
|
-
type: string;
|
|
13
|
-
title: any;
|
|
14
|
-
description: any;
|
|
15
|
-
icon: any;
|
|
16
|
-
}[];
|
|
17
|
-
onClose: () => void;
|
|
18
|
-
empty: boolean;
|
|
19
|
-
getItemProps: (type: any) => {
|
|
20
|
-
onMouseEnter: () => undefined;
|
|
21
|
-
'data-action-menu-item': boolean;
|
|
22
|
-
'data-action-menu-item-type': any;
|
|
23
|
-
'aria-selected': boolean;
|
|
24
|
-
onClick: () => void;
|
|
25
|
-
};
|
|
26
|
-
getRootProps: () => {
|
|
27
|
-
'data-action-menu-list': boolean;
|
|
28
|
-
};
|
|
29
|
-
editor: YooEditor;
|
|
30
|
-
view: "small" | "default" | undefined;
|
|
31
|
-
};
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/UI/BlockOptions/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,KAAK,MAAM,GAAG;IACZ,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC5B,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAe,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;EAkD5F"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
id?: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
};
|
|
9
|
-
declare const ExtendedBlockActions: ({ id, className, style, onClick, children }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
export { ExtendedBlockActions };
|
|
11
|
-
//# sourceMappingURL=ExtendedBlockActions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendedBlockActions.d.ts","sourceRoot":"","sources":["../../../src/UI/ExtendedBlockActions/ExtendedBlockActions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAI5C,KAAK,KAAK,GAAG;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,oBAAoB,gDAAiD,KAAK,mDAqD/E,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
lockScroll?: boolean;
|
|
5
|
-
className?: string;
|
|
6
|
-
onClick?: (e: MouseEvent) => void;
|
|
7
|
-
onMouseDown?: (e: MouseEvent) => void;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
};
|
|
10
|
-
declare const Overlay: ({ className, children, lockScroll, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { Overlay };
|
|
12
|
-
//# sourceMappingURL=Overlay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../../src/UI/Overlay/Overlay.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAE1D,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,OAAO,kDAA0D,KAAK,4CAsB3E,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Portal.d.ts","sourceRoot":"","sources":["../../../src/UI/Portal/Portal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,SAAS,EAA+B,MAAM,OAAO,CAAC;AAGjF,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,QAAA,MAAM,MAAM,UAAW,KAAK,mDAgC3B,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/dist/UI/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as BlockOptionsUI from './BlockOptions/BlockOptions';
|
|
3
|
-
export { type BlockOptionsProps } from './BlockOptions/BlockOptions';
|
|
4
|
-
export declare const UI: {
|
|
5
|
-
ExtendedBlockActions: ({ id, className, style, onClick, children }: {
|
|
6
|
-
id?: string | undefined;
|
|
7
|
-
className?: string | undefined;
|
|
8
|
-
style?: import("react").CSSProperties | undefined;
|
|
9
|
-
onClick?: (() => void) | undefined;
|
|
10
|
-
children: import("react").ReactNode;
|
|
11
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
-
Portal: (props: {
|
|
13
|
-
children: import("react").ReactNode;
|
|
14
|
-
id: string;
|
|
15
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
-
Overlay: ({ className, children, lockScroll, ...props }: {
|
|
17
|
-
children: import("react").ReactNode;
|
|
18
|
-
lockScroll?: boolean | undefined;
|
|
19
|
-
className?: string | undefined;
|
|
20
|
-
onClick?: ((e: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
21
|
-
onMouseDown?: ((e: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
22
|
-
style?: import("react").CSSProperties | undefined;
|
|
23
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
BlockOptions: ({ isOpen, onClose, refs, style, actions, children }: BlockOptionsUI.BlockOptionsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
-
BlockOptionsMenuContent: ({ children }: {
|
|
26
|
-
children: any;
|
|
27
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
BlockOptionsMenuGroup: ({ children }: {
|
|
29
|
-
children: any;
|
|
30
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
BlockOptionsMenuItem: ({ children }: {
|
|
32
|
-
children: any;
|
|
33
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
BlockOptionsSeparator: ({ className }: {
|
|
35
|
-
className?: string | undefined;
|
|
36
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/UI/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/UI/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,cAAc,MAAM,6BAA6B,CAAC;AAK9D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKd,CAAC"}
|
package/dist/YooptaEditor.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { SlateElement, YooEditor, YooptaPath, YooptaContentValue } from './editor/types';
|
|
3
|
-
import { Tools } from './contexts/YooptaContext/ToolsContext';
|
|
4
|
-
import { YooptaPlugin } from './plugins';
|
|
5
|
-
import { YooptaMark } from './marks';
|
|
6
|
-
import { YooptaOperation } from './editor/core/applyTransforms';
|
|
7
|
-
export type YooptaOnChangeOptions = {
|
|
8
|
-
operations: YooptaOperation[];
|
|
9
|
-
};
|
|
10
|
-
export type YooptaEditorProps = {
|
|
11
|
-
id?: string;
|
|
12
|
-
editor: YooEditor;
|
|
13
|
-
plugins: Readonly<YooptaPlugin<Record<string, SlateElement>>[]>;
|
|
14
|
-
marks?: YooptaMark<any>[];
|
|
15
|
-
value?: YooptaContentValue;
|
|
16
|
-
onChange?: (value: YooptaContentValue, options: YooptaOnChangeOptions) => void;
|
|
17
|
-
onPathChange?: (path: YooptaPath) => void;
|
|
18
|
-
autoFocus?: boolean;
|
|
19
|
-
className?: string;
|
|
20
|
-
selectionBoxRoot?: HTMLElement | React.MutableRefObject<HTMLElement | null> | false;
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
tools?: Partial<Tools>;
|
|
23
|
-
placeholder?: string;
|
|
24
|
-
readOnly?: boolean;
|
|
25
|
-
width?: number | string;
|
|
26
|
-
style?: CSSProperties;
|
|
27
|
-
};
|
|
28
|
-
declare const YooptaEditor: ({ id, editor, value, marks: marksProps, plugins: pluginsProps, autoFocus, className, tools, selectionBoxRoot, children, placeholder, readOnly, width, style, onChange, onPathChange, }: YooptaEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export { YooptaEditor };
|
|
30
|
-
//# sourceMappingURL=YooptaEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"YooptaEditor.d.ts","sourceRoot":"","sources":["../src/YooptaEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAA6C,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzF,OAAO,EAAE,KAAK,EAAiB,MAAM,uCAAuC,CAAC;AAS7E,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC;IAChE,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC/E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC;IACpF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAOF,QAAA,MAAM,YAAY,2LAiBf,iBAAiB,4CAyFnB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { YooEditor } from '../../editor/types';
|
|
3
|
-
type dragHandleProps = {
|
|
4
|
-
attributes: any;
|
|
5
|
-
listeners: any;
|
|
6
|
-
setActivatorNodeRef: any;
|
|
7
|
-
};
|
|
8
|
-
type FloatingBlockActionsProps = {
|
|
9
|
-
editor: YooEditor;
|
|
10
|
-
dragHandleProps: dragHandleProps | null;
|
|
11
|
-
};
|
|
12
|
-
export declare const FloatingBlockActions: import("react").MemoExoticComponent<({ editor, dragHandleProps }: FloatingBlockActionsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=FloatingBlockActions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingBlockActions.d.ts","sourceRoot":"","sources":["../../../src/components/Block/FloatingBlockActions.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAmB,MAAM,oBAAoB,CAAC;AAehE,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,GAAG,CAAC;IAChB,SAAS,EAAE,GAAG,CAAC;IACf,mBAAmB,EAAE,GAAG,CAAC;CAC1B,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,MAAM,EAAE,SAAS,CAAC;IAClB,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;CACzC,CAAC;AAoBF,eAAO,MAAM,oBAAoB,oEAAsC,yBAAyB,6CAwL9F,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { YooptaMark } from '../../marks';
|
|
3
|
-
type Props = {
|
|
4
|
-
marks?: YooptaMark<any>[];
|
|
5
|
-
selectionBoxRoot?: HTMLElement | React.MutableRefObject<HTMLElement | null> | false;
|
|
6
|
-
autoFocus?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
width?: number | string;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
style?: CSSProperties;
|
|
12
|
-
};
|
|
13
|
-
declare const Editor: ({ placeholder, marks, className, selectionBoxRoot, width, style, children, autoFocus, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export { Editor };
|
|
15
|
-
//# sourceMappingURL=Editor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,aAAa,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAG5E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAczC,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC;IACpF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAQF,QAAA,MAAM,MAAM,4FAST,KAAK,4CAwSP,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { YooEditor } from '../../editor/types';
|
|
2
|
-
import { YooptaMark } from '../../marks';
|
|
3
|
-
type Props = {
|
|
4
|
-
editor: YooEditor;
|
|
5
|
-
marks?: YooptaMark<any>[];
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
};
|
|
8
|
-
declare const RenderBlocks: ({ editor, marks, placeholder }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { RenderBlocks };
|
|
10
|
-
//# sourceMappingURL=RenderBlocks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RenderBlocks.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/RenderBlocks.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQzC,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,YAAY,mCAAoC,KAAK,4CAiE1D,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { YooEditor } from '../../editor/types';
|
|
2
|
-
import { DragEndEvent, DragStartEvent } from '@dnd-kit/core';
|
|
3
|
-
export declare const useYooptaDragDrop: ({ editor }: {
|
|
4
|
-
editor: YooEditor;
|
|
5
|
-
}) => {
|
|
6
|
-
sensors: import("@dnd-kit/core").SensorDescriptor<import("@dnd-kit/core").SensorOptions>[];
|
|
7
|
-
handleDragEnd: (event: DragEndEvent) => void;
|
|
8
|
-
handleDragStart: (event: DragStartEvent) => void;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=dnd.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dnd.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/dnd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAwD,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAInH,eAAO,MAAM,iBAAiB;YAA0B,SAAS;;;2BAYrB,YAAY;6BAUV,cAAc;CAK3D,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { YooEditor } from '../../editor/types';
|
|
3
|
-
export type RectangeSelectionProps = {
|
|
4
|
-
editor: YooEditor;
|
|
5
|
-
root?: HTMLElement | React.MutableRefObject<HTMLElement | null> | false;
|
|
6
|
-
};
|
|
7
|
-
export type RectangeSelectionState = {
|
|
8
|
-
origin: [number, number];
|
|
9
|
-
coords: [number, number];
|
|
10
|
-
selection: boolean;
|
|
11
|
-
};
|
|
12
|
-
export type SelectionBoxProps = {
|
|
13
|
-
origin: RectangeSelectionState['origin'];
|
|
14
|
-
coords: RectangeSelectionState['coords'];
|
|
15
|
-
isOpen: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare const SelectionBox: ({ origin, coords, isOpen }: SelectionBoxProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
-
export { SelectionBox };
|
|
19
|
-
//# sourceMappingURL=SelectionBox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionBox.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionBox/SelectionBox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC;CACzE,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,YAAY,+BAAgC,iBAAiB,mDAyBlE,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RectangeSelectionProps, RectangeSelectionState } from './SelectionBox';
|
|
2
|
-
type RectangeSelectionReturn = RectangeSelectionState & {
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
};
|
|
5
|
-
export declare const useRectangeSelectionBox: ({ editor, root }: RectangeSelectionProps) => RectangeSelectionReturn;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionBox/hooks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAgChF,KAAK,uBAAuB,GAAG,sBAAsB,GAAG;IACtD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAIF,eAAO,MAAM,uBAAuB,qBAAsB,sBAAsB,KAAG,uBA+FlF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextLeaf.d.ts","sourceRoot":"","sources":["../../../src/components/TextLeaf/TextLeaf.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,KAAK,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC,GAAG;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,QAAQ,0CAA2C,KAAK,4CAa7D,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type ToolProps<RenderProps = any, ToolProps = any> = {
|
|
3
|
-
render: React.ComponentType<RenderProps>;
|
|
4
|
-
tool: React.ComponentType<ToolProps>;
|
|
5
|
-
props?: Record<string, unknown>;
|
|
6
|
-
};
|
|
7
|
-
export type Tools = {
|
|
8
|
-
ActionMenu: ToolProps;
|
|
9
|
-
Toolbar: ToolProps;
|
|
10
|
-
LinkTool: ToolProps;
|
|
11
|
-
[key: string]: ToolProps;
|
|
12
|
-
};
|
|
13
|
-
export type ToolsContextType = {
|
|
14
|
-
[key: string]: ToolProps['render'];
|
|
15
|
-
};
|
|
16
|
-
type Props = {
|
|
17
|
-
tools?: Partial<Tools>;
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
};
|
|
20
|
-
export declare const ToolsProvider: ({ children, tools }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export declare const useYooptaTools: () => ToolsContextType;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=ToolsContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToolsContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/YooptaContext/ToolsContext.tsx"],"names":[],"mappings":";AAGA,MAAM,MAAM,SAAS,CAAC,WAAW,GAAG,GAAG,EAAE,SAAS,GAAG,GAAG,IAAI;IAC1D,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IACzC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,UAAU,EAAE,SAAS,CAAC;IACtB,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;CACpC,CAAC;AAIF,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,aAAa,wBAAyB,KAAK,4CAmCvD,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,gBAOjC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Path, Span } from 'slate';
|
|
2
|
-
import { YooEditor } from '../types';
|
|
3
|
-
export type CreateBlockElementOptions = {
|
|
4
|
-
path?: 'next' | 'prev' | Path | Span;
|
|
5
|
-
focus?: boolean;
|
|
6
|
-
split?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type CreateElement<TElementKeys, TElementProps> = {
|
|
9
|
-
type: TElementKeys;
|
|
10
|
-
props?: TElementProps;
|
|
11
|
-
};
|
|
12
|
-
export declare function createElement<TElementKeys extends string, TElementProps>(editor: YooEditor, blockId: string, element: CreateElement<TElementKeys, TElementProps>, options?: CreateBlockElementOptions): void;
|
|
13
|
-
//# sourceMappingURL=createElement.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createElement.d.ts","sourceRoot":"","sources":["../../../src/editor/elements/createElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,IAAI,EAAE,IAAI,EAAc,MAAM,OAAO,CAAC;AAGvD,OAAO,EAAgB,SAAS,EAAE,MAAM,UAAU,CAAC;AAGnD,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,YAAY,EAAE,aAAa,IAAI;IACvD,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAEF,wBAAgB,aAAa,CAAC,YAAY,SAAS,MAAM,EAAE,aAAa,EACtE,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,aAAa,CAAC,YAAY,EAAE,aAAa,CAAC,EACnD,OAAO,CAAC,EAAE,yBAAyB,QAyEpC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { YooEditor } from '../types';
|
|
2
|
-
export type UpdateElementTextOptions = {
|
|
3
|
-
focus?: boolean;
|
|
4
|
-
blockId?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function insertElementText<TElementKeys extends string, TElementProps>(editor: YooEditor, text: string, options?: UpdateElementTextOptions): void;
|
|
7
|
-
//# sourceMappingURL=insertElementText.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"insertElementText.d.ts","sourceRoot":"","sources":["../../../src/editor/elements/insertElementText.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,YAAY,SAAS,MAAM,EAAE,aAAa,EAC1E,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,wBAAwB,QAuCnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNextPath.d.ts","sourceRoot":"","sources":["../../../src/editor/paths/getNextPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAKpE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPath.d.ts","sourceRoot":"","sources":["../../../src/editor/paths/getPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAgB,OAAO,CAAC,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAEhE"}
|