@ethberry/mui-lexical 1.0.27 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/index.d.ts.map +1 -0
- package/dist/common/hooks/index.js +1 -17
- package/dist/common/hooks/index.js.map +1 -1
- package/dist/common/hooks/useModal.d.ts +2 -1
- package/dist/common/hooks/useModal.d.ts.map +1 -0
- package/dist/common/hooks/useModal.js +9 -13
- package/dist/common/hooks/useModal.js.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +2 -18
- package/dist/common/index.js.map +1 -1
- package/dist/common/types/index.d.ts +1 -0
- package/dist/common/types/index.d.ts.map +1 -0
- package/dist/common/types/index.js +1 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +1 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/ui/Modal/index.d.ts +2 -1
- package/dist/components/ui/Modal/index.d.ts.map +1 -0
- package/dist/components/ui/Modal/index.js +5 -9
- package/dist/components/ui/Modal/index.js.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +1 -17
- package/dist/components/ui/index.js.map +1 -1
- package/dist/config/lexicalEditorConfig.d.ts +1 -0
- package/dist/config/lexicalEditorConfig.d.ts.map +1 -0
- package/dist/config/lexicalEditorConfig.js +15 -21
- package/dist/config/lexicalEditorConfig.js.map +1 -1
- package/dist/config/lexicalEditorTheme.d.ts +1 -0
- package/dist/config/lexicalEditorTheme.d.ts.map +1 -0
- package/dist/config/lexicalEditorTheme.js +1 -3
- package/dist/config/lexicalEditorTheme.js.map +1 -1
- package/dist/display/index.d.ts +3 -1
- package/dist/display/index.d.ts.map +1 -0
- package/dist/display/index.js +17 -21
- package/dist/display/index.js.map +1 -1
- package/dist/display/styled.d.ts +1 -0
- package/dist/display/styled.d.ts.map +1 -0
- package/dist/display/styled.js +4 -7
- package/dist/display/styled.js.map +1 -1
- package/dist/editor/Editor.d.ts +2 -1
- package/dist/editor/Editor.d.ts.map +1 -0
- package/dist/editor/Editor.js +37 -41
- package/dist/editor/Editor.js.map +1 -1
- package/dist/editor/commands/index.d.ts +1 -0
- package/dist/editor/commands/index.d.ts.map +1 -0
- package/dist/editor/commands/index.js +2 -5
- package/dist/editor/commands/index.js.map +1 -1
- package/dist/editor/constants/index.d.ts +1 -0
- package/dist/editor/constants/index.d.ts.map +1 -0
- package/dist/editor/constants/index.js +1 -4
- package/dist/editor/constants/index.js.map +1 -1
- package/dist/editor/context/SharedHistoryContext.d.ts +1 -0
- package/dist/editor/context/SharedHistoryContext.d.ts.map +1 -0
- package/dist/editor/context/SharedHistoryContext.js +9 -14
- package/dist/editor/context/SharedHistoryContext.js.map +1 -1
- package/dist/editor/context/ToolbarContext.d.ts +1 -0
- package/dist/editor/context/ToolbarContext.d.ts.map +1 -0
- package/dist/editor/context/ToolbarContext.js +13 -18
- package/dist/editor/context/ToolbarContext.js.map +1 -1
- package/dist/editor/context/index.d.ts +1 -0
- package/dist/editor/context/index.d.ts.map +1 -0
- package/dist/editor/context/index.js +2 -18
- package/dist/editor/context/index.js.map +1 -1
- package/dist/editor/editorStyles.d.ts +1 -0
- package/dist/editor/editorStyles.d.ts.map +1 -0
- package/dist/editor/editorStyles.js +72 -7
- package/dist/editor/editorStyles.js.map +1 -1
- package/dist/editor/hooks/index.d.ts +1 -0
- package/dist/editor/hooks/index.d.ts.map +1 -0
- package/dist/editor/hooks/index.js +1 -17
- package/dist/editor/hooks/index.js.map +1 -1
- package/dist/editor/hooks/useModal.d.ts +1 -0
- package/dist/editor/hooks/useModal.d.ts.map +1 -0
- package/dist/editor/hooks/useModal.js +9 -13
- package/dist/editor/hooks/useModal.js.map +1 -1
- package/dist/editor/images/icons/3-columns.d.ts +3 -1
- package/dist/editor/images/icons/3-columns.d.ts.map +1 -0
- package/dist/editor/images/icons/3-columns.js +3 -7
- package/dist/editor/images/icons/3-columns.js.map +1 -1
- package/dist/editor/images/icons/add-sign.d.ts +3 -1
- package/dist/editor/images/icons/add-sign.d.ts.map +1 -0
- package/dist/editor/images/icons/add-sign.js +3 -7
- package/dist/editor/images/icons/add-sign.js.map +1 -1
- package/dist/editor/images/icons/arrow-clockwise.d.ts +3 -1
- package/dist/editor/images/icons/arrow-clockwise.d.ts.map +1 -0
- package/dist/editor/images/icons/arrow-clockwise.js +3 -7
- package/dist/editor/images/icons/arrow-clockwise.js.map +1 -1
- package/dist/editor/images/icons/arrow-counterclockwise.d.ts +3 -1
- package/dist/editor/images/icons/arrow-counterclockwise.d.ts.map +1 -0
- package/dist/editor/images/icons/arrow-counterclockwise.js +3 -7
- package/dist/editor/images/icons/arrow-counterclockwise.js.map +1 -1
- package/dist/editor/images/icons/bg-color.d.ts +3 -1
- package/dist/editor/images/icons/bg-color.d.ts.map +1 -0
- package/dist/editor/images/icons/bg-color.js +3 -7
- package/dist/editor/images/icons/bg-color.js.map +1 -1
- package/dist/editor/images/icons/camera.d.ts +3 -1
- package/dist/editor/images/icons/camera.d.ts.map +1 -0
- package/dist/editor/images/icons/camera.js +3 -7
- package/dist/editor/images/icons/camera.js.map +1 -1
- package/dist/editor/images/icons/card-checklist.d.ts +3 -1
- package/dist/editor/images/icons/card-checklist.d.ts.map +1 -0
- package/dist/editor/images/icons/card-checklist.js +3 -7
- package/dist/editor/images/icons/card-checklist.js.map +1 -1
- package/dist/editor/images/icons/caret-right-fill.d.ts +3 -1
- package/dist/editor/images/icons/caret-right-fill.d.ts.map +1 -0
- package/dist/editor/images/icons/caret-right-fill.js +3 -7
- package/dist/editor/images/icons/caret-right-fill.js.map +1 -1
- package/dist/editor/images/icons/chat-left-text.d.ts +3 -1
- package/dist/editor/images/icons/chat-left-text.d.ts.map +1 -0
- package/dist/editor/images/icons/chat-left-text.js +3 -7
- package/dist/editor/images/icons/chat-left-text.js.map +1 -1
- package/dist/editor/images/icons/chat-right-dots.d.ts +3 -1
- package/dist/editor/images/icons/chat-right-dots.d.ts.map +1 -0
- package/dist/editor/images/icons/chat-right-dots.js +3 -7
- package/dist/editor/images/icons/chat-right-dots.js.map +1 -1
- package/dist/editor/images/icons/chat-right-text.d.ts +3 -1
- package/dist/editor/images/icons/chat-right-text.d.ts.map +1 -0
- package/dist/editor/images/icons/chat-right-text.js +3 -7
- package/dist/editor/images/icons/chat-right-text.js.map +1 -1
- package/dist/editor/images/icons/chat-right.d.ts +3 -1
- package/dist/editor/images/icons/chat-right.d.ts.map +1 -0
- package/dist/editor/images/icons/chat-right.js +3 -7
- package/dist/editor/images/icons/chat-right.js.map +1 -1
- package/dist/editor/images/icons/chat-square-quote.d.ts +3 -1
- package/dist/editor/images/icons/chat-square-quote.d.ts.map +1 -0
- package/dist/editor/images/icons/chat-square-quote.js +3 -7
- package/dist/editor/images/icons/chat-square-quote.js.map +1 -1
- package/dist/editor/images/icons/chevron-down.d.ts +3 -1
- package/dist/editor/images/icons/chevron-down.d.ts.map +1 -0
- package/dist/editor/images/icons/chevron-down.js +3 -7
- package/dist/editor/images/icons/chevron-down.js.map +1 -1
- package/dist/editor/images/icons/clipboard.d.ts +3 -1
- package/dist/editor/images/icons/clipboard.d.ts.map +1 -0
- package/dist/editor/images/icons/clipboard.js +3 -7
- package/dist/editor/images/icons/clipboard.js.map +1 -1
- package/dist/editor/images/icons/close.d.ts +3 -1
- package/dist/editor/images/icons/close.d.ts.map +1 -0
- package/dist/editor/images/icons/close.js +3 -7
- package/dist/editor/images/icons/close.js.map +1 -1
- package/dist/editor/images/icons/code.d.ts +3 -1
- package/dist/editor/images/icons/code.d.ts.map +1 -0
- package/dist/editor/images/icons/code.js +3 -7
- package/dist/editor/images/icons/code.js.map +1 -1
- package/dist/editor/images/icons/comments.d.ts +3 -1
- package/dist/editor/images/icons/comments.d.ts.map +1 -0
- package/dist/editor/images/icons/comments.js +3 -7
- package/dist/editor/images/icons/comments.js.map +1 -1
- package/dist/editor/images/icons/copy.d.ts +3 -1
- package/dist/editor/images/icons/copy.d.ts.map +1 -0
- package/dist/editor/images/icons/copy.js +3 -7
- package/dist/editor/images/icons/copy.js.map +1 -1
- package/dist/editor/images/icons/diagram-2.d.ts +3 -1
- package/dist/editor/images/icons/diagram-2.d.ts.map +1 -0
- package/dist/editor/images/icons/diagram-2.js +3 -7
- package/dist/editor/images/icons/diagram-2.js.map +1 -1
- package/dist/editor/images/icons/download.d.ts +3 -1
- package/dist/editor/images/icons/download.d.ts.map +1 -0
- package/dist/editor/images/icons/download.js +3 -7
- package/dist/editor/images/icons/download.js.map +1 -1
- package/dist/editor/images/icons/draggable-block-menu.d.ts +3 -1
- package/dist/editor/images/icons/draggable-block-menu.d.ts.map +1 -0
- package/dist/editor/images/icons/draggable-block-menu.js +3 -7
- package/dist/editor/images/icons/draggable-block-menu.js.map +1 -1
- package/dist/editor/images/icons/dropdown-more.d.ts +3 -1
- package/dist/editor/images/icons/dropdown-more.d.ts.map +1 -0
- package/dist/editor/images/icons/dropdown-more.js +3 -7
- package/dist/editor/images/icons/dropdown-more.js.map +1 -1
- package/dist/editor/images/icons/figma.d.ts +3 -1
- package/dist/editor/images/icons/figma.d.ts.map +1 -0
- package/dist/editor/images/icons/figma.js +3 -7
- package/dist/editor/images/icons/figma.js.map +1 -1
- package/dist/editor/images/icons/file-earmark-text.d.ts +3 -1
- package/dist/editor/images/icons/file-earmark-text.d.ts.map +1 -0
- package/dist/editor/images/icons/file-earmark-text.js +3 -7
- package/dist/editor/images/icons/file-earmark-text.js.map +1 -1
- package/dist/editor/images/icons/file-image.d.ts +3 -1
- package/dist/editor/images/icons/file-image.d.ts.map +1 -0
- package/dist/editor/images/icons/file-image.js +3 -7
- package/dist/editor/images/icons/file-image.js.map +1 -1
- package/dist/editor/images/icons/filetype-gif.d.ts +3 -1
- package/dist/editor/images/icons/filetype-gif.d.ts.map +1 -0
- package/dist/editor/images/icons/filetype-gif.js +3 -7
- package/dist/editor/images/icons/filetype-gif.js.map +1 -1
- package/dist/editor/images/icons/font-color.d.ts +3 -1
- package/dist/editor/images/icons/font-color.d.ts.map +1 -0
- package/dist/editor/images/icons/font-color.js +3 -7
- package/dist/editor/images/icons/font-color.js.map +1 -1
- package/dist/editor/images/icons/font-family.d.ts +3 -1
- package/dist/editor/images/icons/font-family.d.ts.map +1 -0
- package/dist/editor/images/icons/font-family.js +3 -7
- package/dist/editor/images/icons/font-family.js.map +1 -1
- package/dist/editor/images/icons/format-clear.d.ts +3 -1
- package/dist/editor/images/icons/format-clear.d.ts.map +1 -0
- package/dist/editor/images/icons/format-clear.js +3 -7
- package/dist/editor/images/icons/format-clear.js.map +1 -1
- package/dist/editor/images/icons/highlighter.d.ts +3 -1
- package/dist/editor/images/icons/highlighter.d.ts.map +1 -0
- package/dist/editor/images/icons/highlighter.js +3 -7
- package/dist/editor/images/icons/highlighter.js.map +1 -1
- package/dist/editor/images/icons/horizontal-rule.d.ts +3 -1
- package/dist/editor/images/icons/horizontal-rule.d.ts.map +1 -0
- package/dist/editor/images/icons/horizontal-rule.js +3 -7
- package/dist/editor/images/icons/horizontal-rule.js.map +1 -1
- package/dist/editor/images/icons/indent.d.ts +3 -1
- package/dist/editor/images/icons/indent.d.ts.map +1 -0
- package/dist/editor/images/icons/indent.js +3 -7
- package/dist/editor/images/icons/indent.js.map +1 -1
- package/dist/editor/images/icons/index.d.ts +1 -0
- package/dist/editor/images/icons/index.d.ts.map +1 -0
- package/dist/editor/images/icons/index.js +88 -104
- package/dist/editor/images/icons/index.js.map +1 -1
- package/dist/editor/images/icons/journal-text.d.ts +3 -1
- package/dist/editor/images/icons/journal-text.d.ts.map +1 -0
- package/dist/editor/images/icons/journal-text.js +3 -7
- package/dist/editor/images/icons/journal-text.js.map +1 -1
- package/dist/editor/images/icons/justify.d.ts +3 -1
- package/dist/editor/images/icons/justify.d.ts.map +1 -0
- package/dist/editor/images/icons/justify.js +3 -7
- package/dist/editor/images/icons/justify.js.map +1 -1
- package/dist/editor/images/icons/link.d.ts +3 -1
- package/dist/editor/images/icons/link.d.ts.map +1 -0
- package/dist/editor/images/icons/link.js +3 -7
- package/dist/editor/images/icons/link.js.map +1 -1
- package/dist/editor/images/icons/list-ol.d.ts +3 -1
- package/dist/editor/images/icons/list-ol.d.ts.map +1 -0
- package/dist/editor/images/icons/list-ol.js +3 -7
- package/dist/editor/images/icons/list-ol.js.map +1 -1
- package/dist/editor/images/icons/list-ul.d.ts +3 -1
- package/dist/editor/images/icons/list-ul.d.ts.map +1 -0
- package/dist/editor/images/icons/list-ul.js +3 -7
- package/dist/editor/images/icons/list-ul.js.map +1 -1
- package/dist/editor/images/icons/lock-fill.d.ts +3 -1
- package/dist/editor/images/icons/lock-fill.d.ts.map +1 -0
- package/dist/editor/images/icons/lock-fill.js +3 -7
- package/dist/editor/images/icons/lock-fill.js.map +1 -1
- package/dist/editor/images/icons/lock.d.ts +3 -1
- package/dist/editor/images/icons/lock.d.ts.map +1 -0
- package/dist/editor/images/icons/lock.js +3 -7
- package/dist/editor/images/icons/lock.js.map +1 -1
- package/dist/editor/images/icons/markdown.d.ts +3 -1
- package/dist/editor/images/icons/markdown.d.ts.map +1 -0
- package/dist/editor/images/icons/markdown.js +3 -7
- package/dist/editor/images/icons/markdown.js.map +1 -1
- package/dist/editor/images/icons/mic.d.ts +3 -1
- package/dist/editor/images/icons/mic.d.ts.map +1 -0
- package/dist/editor/images/icons/mic.js +3 -7
- package/dist/editor/images/icons/mic.js.map +1 -1
- package/dist/editor/images/icons/minus-sign.d.ts +3 -1
- package/dist/editor/images/icons/minus-sign.d.ts.map +1 -0
- package/dist/editor/images/icons/minus-sign.js +3 -7
- package/dist/editor/images/icons/minus-sign.js.map +1 -1
- package/dist/editor/images/icons/outdent.d.ts +3 -1
- package/dist/editor/images/icons/outdent.d.ts.map +1 -0
- package/dist/editor/images/icons/outdent.js +3 -7
- package/dist/editor/images/icons/outdent.js.map +1 -1
- package/dist/editor/images/icons/paint-bucket.d.ts +3 -1
- package/dist/editor/images/icons/paint-bucket.d.ts.map +1 -0
- package/dist/editor/images/icons/paint-bucket.js +3 -7
- package/dist/editor/images/icons/paint-bucket.js.map +1 -1
- package/dist/editor/images/icons/palette.d.ts +3 -1
- package/dist/editor/images/icons/palette.d.ts.map +1 -0
- package/dist/editor/images/icons/palette.js +3 -7
- package/dist/editor/images/icons/palette.js.map +1 -1
- package/dist/editor/images/icons/pencil-fill.d.ts +3 -1
- package/dist/editor/images/icons/pencil-fill.d.ts.map +1 -0
- package/dist/editor/images/icons/pencil-fill.js +3 -7
- package/dist/editor/images/icons/pencil-fill.js.map +1 -1
- package/dist/editor/images/icons/plug-fill.d.ts +3 -1
- package/dist/editor/images/icons/plug-fill.d.ts.map +1 -0
- package/dist/editor/images/icons/plug-fill.js +3 -7
- package/dist/editor/images/icons/plug-fill.js.map +1 -1
- package/dist/editor/images/icons/plug.d.ts +3 -1
- package/dist/editor/images/icons/plug.d.ts.map +1 -0
- package/dist/editor/images/icons/plug.js +3 -7
- package/dist/editor/images/icons/plug.js.map +1 -1
- package/dist/editor/images/icons/plus-slash-minus.d.ts +3 -1
- package/dist/editor/images/icons/plus-slash-minus.d.ts.map +1 -0
- package/dist/editor/images/icons/plus-slash-minus.js +3 -7
- package/dist/editor/images/icons/plus-slash-minus.js.map +1 -1
- package/dist/editor/images/icons/plus.d.ts +3 -1
- package/dist/editor/images/icons/plus.d.ts.map +1 -0
- package/dist/editor/images/icons/plus.js +3 -7
- package/dist/editor/images/icons/plus.js.map +1 -1
- package/dist/editor/images/icons/prettier-error.d.ts +3 -1
- package/dist/editor/images/icons/prettier-error.d.ts.map +1 -0
- package/dist/editor/images/icons/prettier-error.js +3 -7
- package/dist/editor/images/icons/prettier-error.js.map +1 -1
- package/dist/editor/images/icons/prettier.d.ts +3 -1
- package/dist/editor/images/icons/prettier.d.ts.map +1 -0
- package/dist/editor/images/icons/prettier.js +3 -7
- package/dist/editor/images/icons/prettier.js.map +1 -1
- package/dist/editor/images/icons/scissors.d.ts +3 -1
- package/dist/editor/images/icons/scissors.d.ts.map +1 -0
- package/dist/editor/images/icons/scissors.js +3 -7
- package/dist/editor/images/icons/scissors.js.map +1 -1
- package/dist/editor/images/icons/send.d.ts +3 -1
- package/dist/editor/images/icons/send.d.ts.map +1 -0
- package/dist/editor/images/icons/send.js +3 -7
- package/dist/editor/images/icons/send.js.map +1 -1
- package/dist/editor/images/icons/square-check.d.ts +3 -1
- package/dist/editor/images/icons/square-check.d.ts.map +1 -0
- package/dist/editor/images/icons/square-check.js +3 -7
- package/dist/editor/images/icons/square-check.js.map +1 -1
- package/dist/editor/images/icons/sticky.d.ts +3 -1
- package/dist/editor/images/icons/sticky.d.ts.map +1 -0
- package/dist/editor/images/icons/sticky.js +3 -7
- package/dist/editor/images/icons/sticky.js.map +1 -1
- package/dist/editor/images/icons/success-alt.d.ts +3 -1
- package/dist/editor/images/icons/success-alt.d.ts.map +1 -0
- package/dist/editor/images/icons/success-alt.js +3 -7
- package/dist/editor/images/icons/success-alt.js.map +1 -1
- package/dist/editor/images/icons/success.d.ts +3 -1
- package/dist/editor/images/icons/success.d.ts.map +1 -0
- package/dist/editor/images/icons/success.js +3 -7
- package/dist/editor/images/icons/success.js.map +1 -1
- package/dist/editor/images/icons/table.d.ts +3 -1
- package/dist/editor/images/icons/table.d.ts.map +1 -0
- package/dist/editor/images/icons/table.js +3 -7
- package/dist/editor/images/icons/table.js.map +1 -1
- package/dist/editor/images/icons/text-center.d.ts +3 -1
- package/dist/editor/images/icons/text-center.d.ts.map +1 -0
- package/dist/editor/images/icons/text-center.js +3 -7
- package/dist/editor/images/icons/text-center.js.map +1 -1
- package/dist/editor/images/icons/text-left.d.ts +3 -1
- package/dist/editor/images/icons/text-left.d.ts.map +1 -0
- package/dist/editor/images/icons/text-left.js +3 -7
- package/dist/editor/images/icons/text-left.js.map +1 -1
- package/dist/editor/images/icons/text-paragraph.d.ts +3 -1
- package/dist/editor/images/icons/text-paragraph.d.ts.map +1 -0
- package/dist/editor/images/icons/text-paragraph.js +3 -7
- package/dist/editor/images/icons/text-paragraph.js.map +1 -1
- package/dist/editor/images/icons/text-right.d.ts +3 -1
- package/dist/editor/images/icons/text-right.d.ts.map +1 -0
- package/dist/editor/images/icons/text-right.js +3 -7
- package/dist/editor/images/icons/text-right.js.map +1 -1
- package/dist/editor/images/icons/trash.d.ts +3 -1
- package/dist/editor/images/icons/trash.d.ts.map +1 -0
- package/dist/editor/images/icons/trash.js +3 -7
- package/dist/editor/images/icons/trash.js.map +1 -1
- package/dist/editor/images/icons/trash3.d.ts +3 -1
- package/dist/editor/images/icons/trash3.d.ts.map +1 -0
- package/dist/editor/images/icons/trash3.js +3 -7
- package/dist/editor/images/icons/trash3.js.map +1 -1
- package/dist/editor/images/icons/type-bold.d.ts +3 -1
- package/dist/editor/images/icons/type-bold.d.ts.map +1 -0
- package/dist/editor/images/icons/type-bold.js +3 -7
- package/dist/editor/images/icons/type-bold.js.map +1 -1
- package/dist/editor/images/icons/type-capitalize.d.ts +3 -1
- package/dist/editor/images/icons/type-capitalize.d.ts.map +1 -0
- package/dist/editor/images/icons/type-capitalize.js +3 -7
- package/dist/editor/images/icons/type-capitalize.js.map +1 -1
- package/dist/editor/images/icons/type-h1.d.ts +3 -1
- package/dist/editor/images/icons/type-h1.d.ts.map +1 -0
- package/dist/editor/images/icons/type-h1.js +3 -7
- package/dist/editor/images/icons/type-h1.js.map +1 -1
- package/dist/editor/images/icons/type-h2.d.ts +3 -1
- package/dist/editor/images/icons/type-h2.d.ts.map +1 -0
- package/dist/editor/images/icons/type-h2.js +3 -7
- package/dist/editor/images/icons/type-h2.js.map +1 -1
- package/dist/editor/images/icons/type-h3.d.ts +3 -1
- package/dist/editor/images/icons/type-h3.d.ts.map +1 -0
- package/dist/editor/images/icons/type-h3.js +3 -7
- package/dist/editor/images/icons/type-h3.js.map +1 -1
- package/dist/editor/images/icons/type-h4.d.ts +3 -1
- package/dist/editor/images/icons/type-h4.d.ts.map +1 -0
- package/dist/editor/images/icons/type-h4.js +3 -7
- package/dist/editor/images/icons/type-h4.js.map +1 -1
- package/dist/editor/images/icons/type-h5.d.ts +3 -1
- package/dist/editor/images/icons/type-h5.d.ts.map +1 -0
- package/dist/editor/images/icons/type-h5.js +3 -7
- package/dist/editor/images/icons/type-h5.js.map +1 -1
- package/dist/editor/images/icons/type-h6.d.ts +3 -1
- package/dist/editor/images/icons/type-h6.d.ts.map +1 -0
- package/dist/editor/images/icons/type-h6.js +3 -7
- package/dist/editor/images/icons/type-h6.js.map +1 -1
- package/dist/editor/images/icons/type-italic.d.ts +3 -1
- package/dist/editor/images/icons/type-italic.d.ts.map +1 -0
- package/dist/editor/images/icons/type-italic.js +3 -7
- package/dist/editor/images/icons/type-italic.js.map +1 -1
- package/dist/editor/images/icons/type-lowercase.d.ts +3 -1
- package/dist/editor/images/icons/type-lowercase.d.ts.map +1 -0
- package/dist/editor/images/icons/type-lowercase.js +3 -7
- package/dist/editor/images/icons/type-lowercase.js.map +1 -1
- package/dist/editor/images/icons/type-strikethrough.d.ts +3 -1
- package/dist/editor/images/icons/type-strikethrough.d.ts.map +1 -0
- package/dist/editor/images/icons/type-strikethrough.js +3 -7
- package/dist/editor/images/icons/type-strikethrough.js.map +1 -1
- package/dist/editor/images/icons/type-subscript.d.ts +3 -1
- package/dist/editor/images/icons/type-subscript.d.ts.map +1 -0
- package/dist/editor/images/icons/type-subscript.js +3 -7
- package/dist/editor/images/icons/type-subscript.js.map +1 -1
- package/dist/editor/images/icons/type-superscript.d.ts +3 -1
- package/dist/editor/images/icons/type-superscript.d.ts.map +1 -0
- package/dist/editor/images/icons/type-superscript.js +3 -7
- package/dist/editor/images/icons/type-superscript.js.map +1 -1
- package/dist/editor/images/icons/type-underline.d.ts +3 -1
- package/dist/editor/images/icons/type-underline.d.ts.map +1 -0
- package/dist/editor/images/icons/type-underline.js +3 -7
- package/dist/editor/images/icons/type-underline.js.map +1 -1
- package/dist/editor/images/icons/type-uppercase.d.ts +3 -1
- package/dist/editor/images/icons/type-uppercase.d.ts.map +1 -0
- package/dist/editor/images/icons/type-uppercase.js +3 -7
- package/dist/editor/images/icons/type-uppercase.js.map +1 -1
- package/dist/editor/images/icons/upload.d.ts +3 -1
- package/dist/editor/images/icons/upload.d.ts.map +1 -0
- package/dist/editor/images/icons/upload.js +3 -7
- package/dist/editor/images/icons/upload.js.map +1 -1
- package/dist/editor/images/icons/user.d.ts +3 -1
- package/dist/editor/images/icons/user.d.ts.map +1 -0
- package/dist/editor/images/icons/user.js +3 -7
- package/dist/editor/images/icons/user.js.map +1 -1
- package/dist/editor/images/icons/vertical-bottom.d.ts +3 -1
- package/dist/editor/images/icons/vertical-bottom.d.ts.map +1 -0
- package/dist/editor/images/icons/vertical-bottom.js +3 -7
- package/dist/editor/images/icons/vertical-bottom.js.map +1 -1
- package/dist/editor/images/icons/vertical-middle.d.ts +3 -1
- package/dist/editor/images/icons/vertical-middle.d.ts.map +1 -0
- package/dist/editor/images/icons/vertical-middle.js +3 -7
- package/dist/editor/images/icons/vertical-middle.js.map +1 -1
- package/dist/editor/images/icons/vertical-top.d.ts +3 -1
- package/dist/editor/images/icons/vertical-top.d.ts.map +1 -0
- package/dist/editor/images/icons/vertical-top.js +3 -7
- package/dist/editor/images/icons/vertical-top.js.map +1 -1
- package/dist/editor/images/icons/x.d.ts +3 -1
- package/dist/editor/images/icons/x.d.ts.map +1 -0
- package/dist/editor/images/icons/x.js +3 -7
- package/dist/editor/images/icons/x.js.map +1 -1
- package/dist/editor/images/icons/youtube.d.ts +3 -1
- package/dist/editor/images/icons/youtube.d.ts.map +1 -0
- package/dist/editor/images/icons/youtube.js +3 -7
- package/dist/editor/images/icons/youtube.js.map +1 -1
- package/dist/editor/images/image-broken.d.ts +3 -1
- package/dist/editor/images/image-broken.d.ts.map +1 -0
- package/dist/editor/images/image-broken.js +3 -7
- package/dist/editor/images/image-broken.js.map +1 -1
- package/dist/editor/index.d.ts +1 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/editor/index.js +2 -10
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/nodes/Image/ImageComponent.d.ts +1 -0
- package/dist/editor/nodes/Image/ImageComponent.d.ts.map +1 -0
- package/dist/editor/nodes/Image/ImageComponent.js +59 -61
- package/dist/editor/nodes/Image/ImageComponent.js.map +1 -1
- package/dist/editor/nodes/Image/ImageNode.d.ts +1 -0
- package/dist/editor/nodes/Image/ImageNode.d.ts.map +1 -0
- package/dist/editor/nodes/Image/ImageNode.js +12 -18
- package/dist/editor/nodes/Image/ImageNode.js.map +1 -1
- package/dist/editor/nodes/Image/imageNodeStyles.d.ts +1 -0
- package/dist/editor/nodes/Image/imageNodeStyles.d.ts.map +1 -0
- package/dist/editor/nodes/Image/imageNodeStyles.js +2 -5
- package/dist/editor/nodes/Image/imageNodeStyles.js.map +1 -1
- package/dist/editor/nodes/Image/index.d.ts +1 -0
- package/dist/editor/nodes/Image/index.d.ts.map +1 -0
- package/dist/editor/nodes/Image/index.js +3 -9
- package/dist/editor/nodes/Image/index.js.map +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageComponent.d.ts +1 -0
- package/dist/editor/nodes/InlineImage/InlineImageComponent.d.ts.map +1 -0
- package/dist/editor/nodes/InlineImage/InlineImageComponent.js +53 -56
- package/dist/editor/nodes/InlineImage/InlineImageComponent.js.map +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageNode.d.ts +1 -0
- package/dist/editor/nodes/InlineImage/InlineImageNode.d.ts.map +1 -0
- package/dist/editor/nodes/InlineImage/InlineImageNode.js +14 -20
- package/dist/editor/nodes/InlineImage/InlineImageNode.js.map +1 -1
- package/dist/editor/nodes/InlineImage/index.d.ts +1 -0
- package/dist/editor/nodes/InlineImage/index.d.ts.map +1 -0
- package/dist/editor/nodes/InlineImage/index.js +3 -9
- package/dist/editor/nodes/InlineImage/index.js.map +1 -1
- package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.d.ts +1 -0
- package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.d.ts.map +1 -0
- package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.js +2 -5
- package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.js.map +1 -1
- package/dist/editor/nodes/MuiLexicalNodes.d.ts +1 -0
- package/dist/editor/nodes/MuiLexicalNodes.d.ts.map +1 -0
- package/dist/editor/nodes/MuiLexicalNodes.js +27 -30
- package/dist/editor/nodes/MuiLexicalNodes.js.map +1 -1
- package/dist/editor/nodes/Video/VideoComponent.d.ts +2 -1
- package/dist/editor/nodes/Video/VideoComponent.d.ts.map +1 -0
- package/dist/editor/nodes/Video/VideoComponent.js +3 -7
- package/dist/editor/nodes/Video/VideoComponent.js.map +1 -1
- package/dist/editor/nodes/Video/VideoNode.d.ts +1 -0
- package/dist/editor/nodes/Video/VideoNode.d.ts.map +1 -0
- package/dist/editor/nodes/Video/VideoNode.js +10 -16
- package/dist/editor/nodes/Video/VideoNode.js.map +1 -1
- package/dist/editor/nodes/Video/index.d.ts +1 -0
- package/dist/editor/nodes/Video/index.d.ts.map +1 -0
- package/dist/editor/nodes/Video/index.js +3 -9
- package/dist/editor/nodes/Video/index.js.map +1 -1
- package/dist/editor/nodes/Video/videoNodeStyles.d.ts +1 -0
- package/dist/editor/nodes/Video/videoNodeStyles.d.ts.map +1 -0
- package/dist/editor/nodes/Video/videoNodeStyles.js +2 -5
- package/dist/editor/nodes/Video/videoNodeStyles.js.map +1 -1
- package/dist/editor/nodes/index.d.ts +1 -0
- package/dist/editor/nodes/index.d.ts.map +1 -0
- package/dist/editor/nodes/index.js +4 -20
- package/dist/editor/nodes/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.d.ts +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.d.ts.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.js +2 -5
- package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +2 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +16 -18
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +2 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +15 -18
- package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.d.ts +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.d.ts.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.js +2 -18
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/index.js +28 -33
- package/dist/editor/plugins/CodeActionMenuPlugin/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/utils.d.ts.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/utils.js +5 -8
- package/dist/editor/plugins/CodeActionMenuPlugin/utils.js.map +1 -1
- package/dist/editor/plugins/CodeHighlightPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/CodeHighlightPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/CodeHighlightPlugin/index.js +7 -11
- package/dist/editor/plugins/CodeHighlightPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ComponentPickerPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/ComponentPickerPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/ComponentPickerPlugin/index.js +60 -97
- package/dist/editor/plugins/ComponentPickerPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ContextMenuPlugin/index.d.ts +3 -10
- package/dist/editor/plugins/ContextMenuPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/ContextMenuPlugin/index.js +92 -179
- package/dist/editor/plugins/ContextMenuPlugin/index.js.map +1 -1
- package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.d.ts +1 -0
- package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.d.ts.map +1 -0
- package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.js +2 -5
- package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.js.map +1 -1
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.js +75 -80
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.js.map +1 -1
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.d.ts +1 -0
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.d.ts.map +1 -0
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.js +2 -5
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.js.map +1 -1
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.js +63 -68
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ImagesPlugin/index.d.ts +2 -1
- package/dist/editor/plugins/ImagesPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/ImagesPlugin/index.js +58 -50
- package/dist/editor/plugins/ImagesPlugin/index.js.map +1 -1
- package/dist/editor/plugins/LinkPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/LinkPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/LinkPlugin/index.js +5 -9
- package/dist/editor/plugins/LinkPlugin/index.js.map +1 -1
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.js +5 -9
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.js.map +1 -1
- package/dist/editor/plugins/MarkdownTransformers/index.d.ts +1 -0
- package/dist/editor/plugins/MarkdownTransformers/index.d.ts.map +1 -0
- package/dist/editor/plugins/MarkdownTransformers/index.js +41 -44
- package/dist/editor/plugins/MarkdownTransformers/index.js.map +1 -1
- package/dist/editor/plugins/MaxLengthPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/MaxLengthPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/MaxLengthPlugin/index.js +13 -17
- package/dist/editor/plugins/MaxLengthPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ShortcutsPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/ShortcutsPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/ShortcutsPlugin/index.js +46 -50
- package/dist/editor/plugins/ShortcutsPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ShortcutsPlugin/shortcuts.d.ts +1 -0
- package/dist/editor/plugins/ShortcutsPlugin/shortcuts.d.ts.map +1 -0
- package/dist/editor/plugins/ShortcutsPlugin/shortcuts.js +57 -80
- package/dist/editor/plugins/ShortcutsPlugin/shortcuts.js.map +1 -1
- package/dist/editor/plugins/TabFocusPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/TabFocusPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/TabFocusPlugin/index.js +10 -14
- package/dist/editor/plugins/TabFocusPlugin/index.js.map +1 -1
- package/dist/editor/plugins/TableActionMenuPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/TableActionMenuPlugin/index.js +91 -96
- package/dist/editor/plugins/TableActionMenuPlugin/index.js.map +1 -1
- package/dist/editor/plugins/TableCellResizer/index.d.ts +1 -0
- package/dist/editor/plugins/TableCellResizer/index.d.ts.map +1 -0
- package/dist/editor/plugins/TableCellResizer/index.js +48 -53
- package/dist/editor/plugins/TableCellResizer/index.js.map +1 -1
- package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.d.ts +1 -0
- package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.d.ts.map +1 -0
- package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.js +2 -5
- package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.js.map +1 -1
- package/dist/editor/plugins/TableHoverActionsPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/TableHoverActionsPlugin/index.js +43 -47
- package/dist/editor/plugins/TableHoverActionsPlugin/index.js.map +1 -1
- package/dist/editor/plugins/TablePlugin.d.ts +2 -1
- package/dist/editor/plugins/TablePlugin.d.ts.map +1 -0
- package/dist/editor/plugins/TablePlugin.js +24 -30
- package/dist/editor/plugins/TablePlugin.js.map +1 -1
- package/dist/editor/plugins/ToolbarPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/ToolbarPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/ToolbarPlugin/index.js +82 -86
- package/dist/editor/plugins/ToolbarPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ToolbarPlugin/utils.d.ts +1 -0
- package/dist/editor/plugins/ToolbarPlugin/utils.d.ts.map +1 -0
- package/dist/editor/plugins/ToolbarPlugin/utils.js +55 -68
- package/dist/editor/plugins/ToolbarPlugin/utils.js.map +1 -1
- package/dist/editor/plugins/VideoPlugin/index.d.ts +1 -0
- package/dist/editor/plugins/VideoPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/VideoPlugin/index.js +28 -33
- package/dist/editor/plugins/VideoPlugin/index.js.map +1 -1
- package/dist/editor/plugins/index.d.ts +1 -0
- package/dist/editor/plugins/index.d.ts.map +1 -0
- package/dist/editor/plugins/index.js +19 -35
- package/dist/editor/plugins/index.js.map +1 -1
- package/dist/editor/themes/index.d.ts +1 -0
- package/dist/editor/themes/index.d.ts.map +1 -0
- package/dist/editor/themes/index.js +1 -5
- package/dist/editor/themes/index.js.map +1 -1
- package/dist/editor/themes/playgroundEditorTheme.d.ts +1 -0
- package/dist/editor/themes/playgroundEditorTheme.d.ts.map +1 -0
- package/dist/editor/themes/playgroundEditorTheme.js +1 -4
- package/dist/editor/themes/playgroundEditorTheme.js.map +1 -1
- package/dist/editor/themes/playgroundEditorThemeStyles.d.ts +1 -0
- package/dist/editor/themes/playgroundEditorThemeStyles.d.ts.map +1 -0
- package/dist/editor/themes/playgroundEditorThemeStyles.js +2 -5
- package/dist/editor/themes/playgroundEditorThemeStyles.js.map +1 -1
- package/dist/editor/types/index.d.ts +1 -0
- package/dist/editor/types/index.d.ts.map +1 -0
- package/dist/editor/types/index.js +1 -2
- package/dist/editor/ui/BlockFormatDropdown/index.d.ts +1 -0
- package/dist/editor/ui/BlockFormatDropdown/index.d.ts.map +1 -0
- package/dist/editor/ui/BlockFormatDropdown/index.js +48 -52
- package/dist/editor/ui/BlockFormatDropdown/index.js.map +1 -1
- package/dist/editor/ui/BoldButton/index.d.ts +1 -0
- package/dist/editor/ui/BoldButton/index.d.ts.map +1 -0
- package/dist/editor/ui/BoldButton/index.js +8 -12
- package/dist/editor/ui/BoldButton/index.js.map +1 -1
- package/dist/editor/ui/Button.d.ts +1 -0
- package/dist/editor/ui/Button.d.ts.map +1 -0
- package/dist/editor/ui/Button.js +6 -10
- package/dist/editor/ui/Button.js.map +1 -1
- package/dist/editor/ui/CenterAlignButton/index.d.ts +1 -0
- package/dist/editor/ui/CenterAlignButton/index.d.ts.map +1 -0
- package/dist/editor/ui/CenterAlignButton/index.js +8 -12
- package/dist/editor/ui/CenterAlignButton/index.js.map +1 -1
- package/dist/editor/ui/ClearEditorButton/index.d.ts +1 -0
- package/dist/editor/ui/ClearEditorButton/index.d.ts.map +1 -0
- package/dist/editor/ui/ClearEditorButton/index.js +4 -8
- package/dist/editor/ui/ClearEditorButton/index.js.map +1 -1
- package/dist/editor/ui/ClearFormattingButton/index.d.ts +1 -0
- package/dist/editor/ui/ClearFormattingButton/index.d.ts.map +1 -0
- package/dist/editor/ui/ClearFormattingButton/index.js +4 -8
- package/dist/editor/ui/ClearFormattingButton/index.js.map +1 -1
- package/dist/editor/ui/CodeButton/index.d.ts +1 -0
- package/dist/editor/ui/CodeButton/index.d.ts.map +1 -0
- package/dist/editor/ui/CodeButton/index.js +8 -12
- package/dist/editor/ui/CodeButton/index.js.map +1 -1
- package/dist/editor/ui/CodeLanguageDropdown/index.d.ts +3 -1
- package/dist/editor/ui/CodeLanguageDropdown/index.d.ts.map +1 -0
- package/dist/editor/ui/CodeLanguageDropdown/index.js +8 -12
- package/dist/editor/ui/CodeLanguageDropdown/index.js.map +1 -1
- package/dist/editor/ui/ContentEditable.d.ts +1 -0
- package/dist/editor/ui/ContentEditable.d.ts.map +1 -0
- package/dist/editor/ui/ContentEditable.js +6 -10
- package/dist/editor/ui/ContentEditable.js.map +1 -1
- package/dist/editor/ui/Dialog.d.ts +1 -0
- package/dist/editor/ui/Dialog.d.ts.map +1 -0
- package/dist/editor/ui/Dialog.js +7 -12
- package/dist/editor/ui/Dialog.js.map +1 -1
- package/dist/editor/ui/Divider/index.d.ts +1 -0
- package/dist/editor/ui/Divider/index.d.ts.map +1 -0
- package/dist/editor/ui/Divider/index.js +3 -7
- package/dist/editor/ui/Divider/index.js.map +1 -1
- package/dist/editor/ui/DropDown.d.ts +2 -1
- package/dist/editor/ui/DropDown.d.ts.map +1 -0
- package/dist/editor/ui/DropDown.js +26 -31
- package/dist/editor/ui/DropDown.js.map +1 -1
- package/dist/editor/ui/FlashMessage.d.ts +1 -0
- package/dist/editor/ui/FlashMessage.d.ts.map +1 -0
- package/dist/editor/ui/FlashMessage.js +6 -10
- package/dist/editor/ui/FlashMessage.js.map +1 -1
- package/dist/editor/ui/HorizontalRuleButton/index.d.ts +1 -0
- package/dist/editor/ui/HorizontalRuleButton/index.d.ts.map +1 -0
- package/dist/editor/ui/HorizontalRuleButton/index.js +7 -11
- package/dist/editor/ui/HorizontalRuleButton/index.js.map +1 -1
- package/dist/editor/ui/ImageButton/index.d.ts +1 -0
- package/dist/editor/ui/ImageButton/index.d.ts.map +1 -0
- package/dist/editor/ui/ImageButton/index.js +7 -11
- package/dist/editor/ui/ImageButton/index.js.map +1 -1
- package/dist/editor/ui/ImageResizer.d.ts +1 -0
- package/dist/editor/ui/ImageResizer.d.ts.map +1 -0
- package/dist/editor/ui/ImageResizer.js +18 -22
- package/dist/editor/ui/ImageResizer.js.map +1 -1
- package/dist/editor/ui/ItalicButton/index.d.ts +1 -0
- package/dist/editor/ui/ItalicButton/index.d.ts.map +1 -0
- package/dist/editor/ui/ItalicButton/index.js +8 -12
- package/dist/editor/ui/ItalicButton/index.js.map +1 -1
- package/dist/editor/ui/LeftAlignButton/index.d.ts +1 -0
- package/dist/editor/ui/LeftAlignButton/index.d.ts.map +1 -0
- package/dist/editor/ui/LeftAlignButton/index.js +8 -12
- package/dist/editor/ui/LeftAlignButton/index.js.map +1 -1
- package/dist/editor/ui/LinkButton/index.d.ts +1 -0
- package/dist/editor/ui/LinkButton/index.d.ts.map +1 -0
- package/dist/editor/ui/LinkButton/index.js +5 -9
- package/dist/editor/ui/LinkButton/index.js.map +1 -1
- package/dist/editor/ui/Modal.d.ts +1 -0
- package/dist/editor/ui/Modal.d.ts.map +1 -0
- package/dist/editor/ui/Modal.js +13 -17
- package/dist/editor/ui/Modal.js.map +1 -1
- package/dist/editor/ui/RedoButton/index.d.ts +1 -0
- package/dist/editor/ui/RedoButton/index.d.ts.map +1 -0
- package/dist/editor/ui/RedoButton/index.js +8 -12
- package/dist/editor/ui/RedoButton/index.js.map +1 -1
- package/dist/editor/ui/RightAlignButton/index.d.ts +1 -0
- package/dist/editor/ui/RightAlignButton/index.d.ts.map +1 -0
- package/dist/editor/ui/RightAlignButton/index.js +8 -12
- package/dist/editor/ui/RightAlignButton/index.js.map +1 -1
- package/dist/editor/ui/Select.d.ts +1 -0
- package/dist/editor/ui/Select.d.ts.map +1 -0
- package/dist/editor/ui/Select.js +5 -9
- package/dist/editor/ui/Select.js.map +1 -1
- package/dist/editor/ui/StrikethroughButton/index.d.ts +1 -0
- package/dist/editor/ui/StrikethroughButton/index.d.ts.map +1 -0
- package/dist/editor/ui/StrikethroughButton/index.js +8 -12
- package/dist/editor/ui/StrikethroughButton/index.js.map +1 -1
- package/dist/editor/ui/TableButton/index.d.ts +1 -0
- package/dist/editor/ui/TableButton/index.d.ts.map +1 -0
- package/dist/editor/ui/TableButton/index.js +7 -11
- package/dist/editor/ui/TableButton/index.js.map +1 -1
- package/dist/editor/ui/TextInput.d.ts +1 -0
- package/dist/editor/ui/TextInput.d.ts.map +1 -0
- package/dist/editor/ui/TextInput.js +5 -9
- package/dist/editor/ui/TextInput.js.map +1 -1
- package/dist/editor/ui/UnderlineButton/index.d.ts +1 -0
- package/dist/editor/ui/UnderlineButton/index.d.ts.map +1 -0
- package/dist/editor/ui/UnderlineButton/index.js +8 -12
- package/dist/editor/ui/UnderlineButton/index.js.map +1 -1
- package/dist/editor/ui/UndoButton/index.d.ts +1 -0
- package/dist/editor/ui/UndoButton/index.d.ts.map +1 -0
- package/dist/editor/ui/UndoButton/index.js +8 -12
- package/dist/editor/ui/UndoButton/index.js.map +1 -1
- package/dist/editor/ui/VideoButton/index.d.ts +1 -0
- package/dist/editor/ui/VideoButton/index.d.ts.map +1 -0
- package/dist/editor/ui/VideoButton/index.js +7 -11
- package/dist/editor/ui/VideoButton/index.js.map +1 -1
- package/dist/editor/ui/index.d.ts +1 -0
- package/dist/editor/ui/index.d.ts.map +1 -0
- package/dist/editor/ui/index.js +44 -72
- package/dist/editor/ui/index.js.map +1 -1
- package/dist/editor/utils/dropDownActiveClass.d.ts +1 -0
- package/dist/editor/utils/dropDownActiveClass.d.ts.map +1 -0
- package/dist/editor/utils/dropDownActiveClass.js +1 -4
- package/dist/editor/utils/dropDownActiveClass.js.map +1 -1
- package/dist/editor/utils/getDOMRangeRect.d.ts +1 -0
- package/dist/editor/utils/getDOMRangeRect.d.ts.map +1 -0
- package/dist/editor/utils/getDOMRangeRect.js +1 -4
- package/dist/editor/utils/getDOMRangeRect.js.map +1 -1
- package/dist/editor/utils/getSelectedNode.d.ts +1 -0
- package/dist/editor/utils/getSelectedNode.d.ts.map +1 -0
- package/dist/editor/utils/getSelectedNode.js +4 -7
- package/dist/editor/utils/getSelectedNode.js.map +1 -1
- package/dist/editor/utils/getThemeSelector.d.ts +1 -0
- package/dist/editor/utils/getThemeSelector.d.ts.map +1 -0
- package/dist/editor/utils/getThemeSelector.js +1 -4
- package/dist/editor/utils/getThemeSelector.js.map +1 -1
- package/dist/editor/utils/index.d.ts +1 -0
- package/dist/editor/utils/index.d.ts.map +1 -0
- package/dist/editor/utils/index.js +9 -25
- package/dist/editor/utils/index.js.map +1 -1
- package/dist/editor/utils/joinClasses.d.ts +1 -0
- package/dist/editor/utils/joinClasses.d.ts.map +1 -0
- package/dist/editor/utils/joinClasses.js +1 -5
- package/dist/editor/utils/joinClasses.js.map +1 -1
- package/dist/editor/utils/parseVideoUrl.d.ts +1 -0
- package/dist/editor/utils/parseVideoUrl.d.ts.map +1 -0
- package/dist/editor/utils/parseVideoUrl.js +1 -4
- package/dist/editor/utils/parseVideoUrl.js.map +1 -1
- package/dist/editor/utils/setFloatingElemPosition.d.ts +1 -0
- package/dist/editor/utils/setFloatingElemPosition.d.ts.map +1 -0
- package/dist/editor/utils/setFloatingElemPosition.js +1 -4
- package/dist/editor/utils/setFloatingElemPosition.js.map +1 -1
- package/dist/editor/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
- package/dist/editor/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -0
- package/dist/editor/utils/setFloatingElemPositionForLinkEditor.js +1 -4
- package/dist/editor/utils/setFloatingElemPositionForLinkEditor.js.map +1 -1
- package/dist/editor/utils/url.d.ts +1 -0
- package/dist/editor/utils/url.d.ts.map +1 -0
- package/dist/editor/utils/url.js +2 -6
- package/dist/editor/utils/url.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -35
- package/dist/index.js.map +1 -1
- package/eslint.config.mjs +4 -1
- package/jest.config.json +39 -0
- package/jest.setup.cjs +31 -0
- package/package.json +51 -36
- package/tsconfig.jest.json +11 -0
- package/dist/editor/Editor.stories.d.ts +0 -13
- package/dist/editor/Editor.stories.js +0 -135
- package/dist/editor/Editor.stories.js.map +0 -1
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const lexical_1 = require("lexical");
|
|
12
|
-
const context_1 = require("../../context");
|
|
13
|
-
var UpdateFontSizeType;
|
|
1
|
+
import { $createCodeNode } from "@lexical/code";
|
|
2
|
+
import { INSERT_CHECK_LIST_COMMAND, INSERT_ORDERED_LIST_COMMAND, INSERT_UNORDERED_LIST_COMMAND } from "@lexical/list";
|
|
3
|
+
import { $isDecoratorBlockNode } from "@lexical/react/LexicalDecoratorBlockNode";
|
|
4
|
+
import { $createHeadingNode, $createQuoteNode, $isHeadingNode, $isQuoteNode } from "@lexical/rich-text";
|
|
5
|
+
import { $setBlocksType } from "@lexical/selection";
|
|
6
|
+
import { $isTableSelection } from "@lexical/table";
|
|
7
|
+
import { $getNearestBlockElementAncestorOrThrow } from "@lexical/utils";
|
|
8
|
+
import { $createParagraphNode, $getRoot, $getSelection, $isRangeSelection, $isTextNode } from "lexical";
|
|
9
|
+
import { MAX_ALLOWED_FONT_SIZE, MIN_ALLOWED_FONT_SIZE } from "../../context";
|
|
10
|
+
export var UpdateFontSizeType;
|
|
14
11
|
(function (UpdateFontSizeType) {
|
|
15
12
|
UpdateFontSizeType[UpdateFontSizeType["increment"] = 1] = "increment";
|
|
16
13
|
UpdateFontSizeType[UpdateFontSizeType["decrement"] = 2] = "decrement";
|
|
17
|
-
})(UpdateFontSizeType || (
|
|
14
|
+
})(UpdateFontSizeType || (UpdateFontSizeType = {}));
|
|
18
15
|
/**
|
|
19
16
|
* Calculates the new font size based on the update type.
|
|
20
17
|
* @param currentFontSize - The current font size
|
|
21
18
|
* @param updateType - The type of change, either increment or decrement
|
|
22
19
|
* @returns the next font size
|
|
23
20
|
*/
|
|
24
|
-
const calculateNextFontSize = (currentFontSize, updateType) => {
|
|
21
|
+
export const calculateNextFontSize = (currentFontSize, updateType) => {
|
|
25
22
|
if (!updateType) {
|
|
26
23
|
return currentFontSize;
|
|
27
24
|
}
|
|
@@ -29,8 +26,8 @@ const calculateNextFontSize = (currentFontSize, updateType) => {
|
|
|
29
26
|
switch (updateType) {
|
|
30
27
|
case UpdateFontSizeType.decrement:
|
|
31
28
|
switch (true) {
|
|
32
|
-
case currentFontSize >
|
|
33
|
-
updatedFontSize =
|
|
29
|
+
case currentFontSize > MAX_ALLOWED_FONT_SIZE:
|
|
30
|
+
updatedFontSize = MAX_ALLOWED_FONT_SIZE;
|
|
34
31
|
break;
|
|
35
32
|
case currentFontSize >= 48:
|
|
36
33
|
updatedFontSize -= 12;
|
|
@@ -45,14 +42,14 @@ const calculateNextFontSize = (currentFontSize, updateType) => {
|
|
|
45
42
|
updatedFontSize -= 1;
|
|
46
43
|
break;
|
|
47
44
|
default:
|
|
48
|
-
updatedFontSize =
|
|
45
|
+
updatedFontSize = MIN_ALLOWED_FONT_SIZE;
|
|
49
46
|
break;
|
|
50
47
|
}
|
|
51
48
|
break;
|
|
52
49
|
case UpdateFontSizeType.increment:
|
|
53
50
|
switch (true) {
|
|
54
|
-
case currentFontSize <
|
|
55
|
-
updatedFontSize =
|
|
51
|
+
case currentFontSize < MIN_ALLOWED_FONT_SIZE:
|
|
52
|
+
updatedFontSize = MIN_ALLOWED_FONT_SIZE;
|
|
56
53
|
break;
|
|
57
54
|
case currentFontSize < 12:
|
|
58
55
|
updatedFontSize += 1;
|
|
@@ -67,7 +64,7 @@ const calculateNextFontSize = (currentFontSize, updateType) => {
|
|
|
67
64
|
updatedFontSize += 12;
|
|
68
65
|
break;
|
|
69
66
|
default:
|
|
70
|
-
updatedFontSize =
|
|
67
|
+
updatedFontSize = MAX_ALLOWED_FONT_SIZE;
|
|
71
68
|
break;
|
|
72
69
|
}
|
|
73
70
|
break;
|
|
@@ -76,94 +73,85 @@ const calculateNextFontSize = (currentFontSize, updateType) => {
|
|
|
76
73
|
}
|
|
77
74
|
return updatedFontSize;
|
|
78
75
|
};
|
|
79
|
-
|
|
80
|
-
const formatParagraph = (editor) => {
|
|
76
|
+
export const formatParagraph = (editor) => {
|
|
81
77
|
editor.update(() => {
|
|
82
|
-
const selection =
|
|
83
|
-
|
|
78
|
+
const selection = $getSelection();
|
|
79
|
+
$setBlocksType(selection, () => $createParagraphNode());
|
|
84
80
|
});
|
|
85
81
|
};
|
|
86
|
-
|
|
87
|
-
const formatHeading = (editor, blockType, headingSize) => {
|
|
82
|
+
export const formatHeading = (editor, blockType, headingSize) => {
|
|
88
83
|
if (blockType !== headingSize) {
|
|
89
84
|
editor.update(() => {
|
|
90
|
-
const selection =
|
|
91
|
-
|
|
85
|
+
const selection = $getSelection();
|
|
86
|
+
$setBlocksType(selection, () => $createHeadingNode(headingSize));
|
|
92
87
|
});
|
|
93
88
|
}
|
|
94
89
|
};
|
|
95
|
-
|
|
96
|
-
const formatBulletList = (editor, blockType) => {
|
|
90
|
+
export const formatBulletList = (editor, blockType) => {
|
|
97
91
|
if (blockType !== "bullet") {
|
|
98
|
-
editor.dispatchCommand(
|
|
92
|
+
editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, undefined);
|
|
99
93
|
}
|
|
100
94
|
else {
|
|
101
|
-
|
|
95
|
+
formatParagraph(editor);
|
|
102
96
|
}
|
|
103
97
|
};
|
|
104
|
-
|
|
105
|
-
const formatCheckList = (editor, blockType) => {
|
|
98
|
+
export const formatCheckList = (editor, blockType) => {
|
|
106
99
|
if (blockType !== "check") {
|
|
107
|
-
editor.dispatchCommand(
|
|
100
|
+
editor.dispatchCommand(INSERT_CHECK_LIST_COMMAND, undefined);
|
|
108
101
|
}
|
|
109
102
|
else {
|
|
110
|
-
|
|
103
|
+
formatParagraph(editor);
|
|
111
104
|
}
|
|
112
105
|
};
|
|
113
|
-
|
|
114
|
-
const formatNumberedList = (editor, blockType) => {
|
|
106
|
+
export const formatNumberedList = (editor, blockType) => {
|
|
115
107
|
if (blockType !== "number") {
|
|
116
|
-
editor.dispatchCommand(
|
|
108
|
+
editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, undefined);
|
|
117
109
|
}
|
|
118
110
|
else {
|
|
119
|
-
|
|
111
|
+
formatParagraph(editor);
|
|
120
112
|
}
|
|
121
113
|
};
|
|
122
|
-
|
|
123
|
-
const formatQuote = (editor, blockType) => {
|
|
114
|
+
export const formatQuote = (editor, blockType) => {
|
|
124
115
|
if (blockType !== "quote") {
|
|
125
116
|
editor.update(() => {
|
|
126
|
-
const selection =
|
|
127
|
-
|
|
117
|
+
const selection = $getSelection();
|
|
118
|
+
$setBlocksType(selection, () => $createQuoteNode());
|
|
128
119
|
});
|
|
129
120
|
}
|
|
130
121
|
};
|
|
131
|
-
|
|
132
|
-
const formatCode = (editor, blockType) => {
|
|
122
|
+
export const formatCode = (editor, blockType) => {
|
|
133
123
|
if (blockType !== "code") {
|
|
134
124
|
editor.update(() => {
|
|
135
|
-
let selection =
|
|
125
|
+
let selection = $getSelection();
|
|
136
126
|
if (!selection) {
|
|
137
127
|
return;
|
|
138
128
|
}
|
|
139
|
-
if (
|
|
140
|
-
|
|
129
|
+
if (!$isRangeSelection(selection) || selection.isCollapsed()) {
|
|
130
|
+
$setBlocksType(selection, () => $createCodeNode());
|
|
141
131
|
}
|
|
142
132
|
else {
|
|
143
133
|
const textContent = selection.getTextContent();
|
|
144
|
-
const codeNode =
|
|
134
|
+
const codeNode = $createCodeNode();
|
|
145
135
|
selection.insertNodes([codeNode]);
|
|
146
|
-
selection =
|
|
147
|
-
if (
|
|
136
|
+
selection = $getSelection();
|
|
137
|
+
if ($isRangeSelection(selection)) {
|
|
148
138
|
selection.insertRawText(textContent);
|
|
149
139
|
}
|
|
150
140
|
}
|
|
151
141
|
});
|
|
152
142
|
}
|
|
153
143
|
};
|
|
154
|
-
|
|
155
|
-
const clearEditor = (editor) => {
|
|
144
|
+
export const clearEditor = (editor) => {
|
|
156
145
|
editor.update(() => {
|
|
157
|
-
const root =
|
|
146
|
+
const root = $getRoot();
|
|
158
147
|
root.clear();
|
|
159
|
-
root.append(
|
|
148
|
+
root.append($createParagraphNode());
|
|
160
149
|
});
|
|
161
150
|
};
|
|
162
|
-
|
|
163
|
-
const clearFormatting = (editor) => {
|
|
151
|
+
export const clearFormatting = (editor) => {
|
|
164
152
|
editor.update(() => {
|
|
165
|
-
const selection =
|
|
166
|
-
if (
|
|
153
|
+
const selection = $getSelection();
|
|
154
|
+
if ($isRangeSelection(selection) || $isTableSelection(selection)) {
|
|
167
155
|
const anchor = selection.anchor;
|
|
168
156
|
const focus = selection.focus;
|
|
169
157
|
const nodes = selection.getNodes();
|
|
@@ -174,7 +162,7 @@ const clearFormatting = (editor) => {
|
|
|
174
162
|
nodes.forEach((node, idx) => {
|
|
175
163
|
// We split the first and last node by the selection
|
|
176
164
|
// So that we don't format unselected text inside those nodes
|
|
177
|
-
if (
|
|
165
|
+
if ($isTextNode(node)) {
|
|
178
166
|
// Use a separate variable to ensure TS does not lose the refinement
|
|
179
167
|
let textNode = node;
|
|
180
168
|
if (idx === 0 && anchor.offset !== 0) {
|
|
@@ -192,7 +180,7 @@ const clearFormatting = (editor) => {
|
|
|
192
180
|
*/
|
|
193
181
|
// We need this in case the selected text only has one format
|
|
194
182
|
const extractedTextNode = extractedNodes[0];
|
|
195
|
-
if (nodes.length === 1 &&
|
|
183
|
+
if (nodes.length === 1 && $isTextNode(extractedTextNode)) {
|
|
196
184
|
textNode = extractedTextNode;
|
|
197
185
|
}
|
|
198
186
|
if (textNode.__style !== "") {
|
|
@@ -201,7 +189,7 @@ const clearFormatting = (editor) => {
|
|
|
201
189
|
if (textNode.__format !== 0) {
|
|
202
190
|
textNode.setFormat(0);
|
|
203
191
|
}
|
|
204
|
-
const nearestBlockElement =
|
|
192
|
+
const nearestBlockElement = $getNearestBlockElementAncestorOrThrow(textNode);
|
|
205
193
|
if (nearestBlockElement.__format !== 0) {
|
|
206
194
|
nearestBlockElement.setFormat("");
|
|
207
195
|
}
|
|
@@ -210,15 +198,14 @@ const clearFormatting = (editor) => {
|
|
|
210
198
|
}
|
|
211
199
|
node = textNode;
|
|
212
200
|
}
|
|
213
|
-
else if (
|
|
214
|
-
node.replace(
|
|
201
|
+
else if ($isHeadingNode(node) || $isQuoteNode(node)) {
|
|
202
|
+
node.replace($createParagraphNode(), true);
|
|
215
203
|
}
|
|
216
|
-
else if (
|
|
204
|
+
else if ($isDecoratorBlockNode(node)) {
|
|
217
205
|
node.setFormat("");
|
|
218
206
|
}
|
|
219
207
|
});
|
|
220
208
|
}
|
|
221
209
|
});
|
|
222
210
|
};
|
|
223
|
-
exports.clearFormatting = clearFormatting;
|
|
224
211
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/editor/plugins/ToolbarPlugin/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/editor/plugins/ToolbarPlugin/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AACtH,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAkB,MAAM,oBAAoB,CAAC;AACxH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,sCAAsC,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,WAAW,EAAiB,MAAM,SAAS,CAAC;AAEvH,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE7E,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,qEAAa,CAAA;IACb,qEAAS,CAAA;AACX,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,eAAuB,EAAE,UAAqC,EAAE,EAAE;IACtG,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,IAAI,eAAe,GAAW,eAAe,CAAC;IAC9C,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,kBAAkB,CAAC,SAAS;YAC/B,QAAQ,IAAI,EAAE,CAAC;gBACb,KAAK,eAAe,GAAG,qBAAqB;oBAC1C,eAAe,GA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ACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/plugins/VideoPlugin/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,GAAG,EAAuB,MAAM,OAAO,CAAC;AACtD,OAAO,EAKL,aAAa,EAEd,MAAM,SAAS,CAAC;AASjB,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,OAAO,GACR,EAAE;IACD,YAAY,EAAE,aAAa,CAAC;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,GAAG,GAAG,CAAC,OAAO,CA4Bd;AAED,eAAO,MAAM,WAAW,YAgDvB,CAAC"}
|
|
@@ -1,54 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
const Button_1 = require("../../ui/Button");
|
|
14
|
-
const TextInput_1 = require("../../ui/TextInput");
|
|
15
|
-
function InsertVideoDialog({ activeEditor, onClose, }) {
|
|
16
|
-
const [url, setUrl] = (0, react_1.useState)("");
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
import { $getSelection, $insertNodes, COMMAND_PRIORITY_EDITOR, COMMAND_PRIORITY_LOW, PASTE_COMMAND, } from "lexical";
|
|
5
|
+
import { INSERT_VIDEO_COMMAND } from "../../commands";
|
|
6
|
+
import { parseVideoUrl } from "../../utils/parseVideoUrl";
|
|
7
|
+
import { $createVideoNode } from "../../nodes/Video/VideoNode";
|
|
8
|
+
import { DialogActions } from "../../ui/Dialog";
|
|
9
|
+
import { Button } from "../../ui/Button";
|
|
10
|
+
import { TextInput } from "../../ui/TextInput";
|
|
11
|
+
export function InsertVideoDialog({ activeEditor, onClose, }) {
|
|
12
|
+
const [url, setUrl] = useState("");
|
|
17
13
|
const isDisabled = url === "";
|
|
18
|
-
return ((
|
|
19
|
-
activeEditor.dispatchCommand(
|
|
14
|
+
return (_jsxs(_Fragment, { children: [_jsx(TextInput, { label: "Video URL", placeholder: "i.e. https://www.youtube.com", onChange: setUrl, value: url, "data-test-id": "video-modal-url-input" }), _jsx(DialogActions, { children: _jsx(Button, { "data-test-id": "video-modal-confirm-btn", disabled: isDisabled, onClick: () => {
|
|
15
|
+
activeEditor.dispatchCommand(INSERT_VIDEO_COMMAND, { url });
|
|
20
16
|
onClose();
|
|
21
17
|
}, children: "Confirm" }) })] }));
|
|
22
18
|
}
|
|
23
|
-
const VideoPlugin = () => {
|
|
24
|
-
const [editor] =
|
|
25
|
-
|
|
26
|
-
const removeInsert = editor.registerCommand(
|
|
27
|
-
const parsed =
|
|
19
|
+
export const VideoPlugin = () => {
|
|
20
|
+
const [editor] = useLexicalComposerContext();
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
const removeInsert = editor.registerCommand(INSERT_VIDEO_COMMAND, ({ url }) => {
|
|
23
|
+
const parsed = parseVideoUrl(url);
|
|
28
24
|
if (!parsed)
|
|
29
25
|
return false;
|
|
30
26
|
editor.update(() => {
|
|
31
|
-
const node =
|
|
32
|
-
const selection =
|
|
27
|
+
const node = $createVideoNode(parsed);
|
|
28
|
+
const selection = $getSelection();
|
|
33
29
|
void selection;
|
|
34
|
-
|
|
30
|
+
$insertNodes([node]);
|
|
35
31
|
});
|
|
36
32
|
return true;
|
|
37
|
-
},
|
|
38
|
-
const removePaste = editor.registerCommand(
|
|
33
|
+
}, COMMAND_PRIORITY_EDITOR);
|
|
34
|
+
const removePaste = editor.registerCommand(PASTE_COMMAND, (event) => {
|
|
39
35
|
const text = event.clipboardData?.getData("text/plain");
|
|
40
36
|
if (!text)
|
|
41
37
|
return false;
|
|
42
|
-
const parsed =
|
|
38
|
+
const parsed = parseVideoUrl(text);
|
|
43
39
|
if (!parsed)
|
|
44
40
|
return false;
|
|
45
41
|
event.preventDefault();
|
|
46
42
|
editor.update(() => {
|
|
47
|
-
const node =
|
|
48
|
-
|
|
43
|
+
const node = $createVideoNode(parsed);
|
|
44
|
+
$insertNodes([node]);
|
|
49
45
|
});
|
|
50
46
|
return true;
|
|
51
|
-
},
|
|
47
|
+
}, COMMAND_PRIORITY_LOW);
|
|
52
48
|
return () => {
|
|
53
49
|
removeInsert();
|
|
54
50
|
removePaste();
|
|
@@ -56,5 +52,4 @@ const VideoPlugin = () => {
|
|
|
56
52
|
}, [editor]);
|
|
57
53
|
return null;
|
|
58
54
|
};
|
|
59
|
-
exports.VideoPlugin = VideoPlugin;
|
|
60
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/plugins/VideoPlugin/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/plugins/VideoPlugin/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAY,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EACL,aAAa,EACb,YAAY,EACZ,uBAAuB,EACvB,oBAAoB,EAEpB,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,O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c,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -1,36 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
__exportStar(require("./ContextMenuPlugin"), exports);
|
|
21
|
-
__exportStar(require("./FloatingLinkEditorPlugin"), exports);
|
|
22
|
-
__exportStar(require("./FloatingTextFormatToolbarPlugin"), exports);
|
|
23
|
-
__exportStar(require("./ImagesPlugin"), exports);
|
|
24
|
-
__exportStar(require("./LinkPlugin"), exports);
|
|
25
|
-
__exportStar(require("./MarkdownShortcutPlugin"), exports);
|
|
26
|
-
__exportStar(require("./MarkdownTransformers"), exports);
|
|
27
|
-
__exportStar(require("./MaxLengthPlugin"), exports);
|
|
28
|
-
__exportStar(require("./ShortcutsPlugin"), exports);
|
|
29
|
-
__exportStar(require("./TabFocusPlugin"), exports);
|
|
30
|
-
__exportStar(require("./TableActionMenuPlugin"), exports);
|
|
31
|
-
__exportStar(require("./TableCellResizer"), exports);
|
|
32
|
-
__exportStar(require("./TableHoverActionsPlugin"), exports);
|
|
33
|
-
__exportStar(require("./TablePlugin"), exports);
|
|
34
|
-
__exportStar(require("./ToolbarPlugin"), exports);
|
|
35
|
-
__exportStar(require("./VideoPlugin"), exports);
|
|
1
|
+
export * from "./CodeActionMenuPlugin";
|
|
2
|
+
export * from "./CodeHighlightPlugin";
|
|
3
|
+
export * from "./ComponentPickerPlugin";
|
|
4
|
+
export * from "./ContextMenuPlugin";
|
|
5
|
+
export * from "./FloatingLinkEditorPlugin";
|
|
6
|
+
export * from "./FloatingTextFormatToolbarPlugin";
|
|
7
|
+
export * from "./ImagesPlugin";
|
|
8
|
+
export * from "./LinkPlugin";
|
|
9
|
+
export * from "./MarkdownShortcutPlugin";
|
|
10
|
+
export * from "./MarkdownTransformers";
|
|
11
|
+
export * from "./MaxLengthPlugin";
|
|
12
|
+
export * from "./ShortcutsPlugin";
|
|
13
|
+
export * from "./TabFocusPlugin";
|
|
14
|
+
export * from "./TableActionMenuPlugin";
|
|
15
|
+
export * from "./TableCellResizer";
|
|
16
|
+
export * from "./TableHoverActionsPlugin";
|
|
17
|
+
export * from "./TablePlugin";
|
|
18
|
+
export * from "./ToolbarPlugin";
|
|
19
|
+
export * from "./VideoPlugin";
|
|
36
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/plugins/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.playgroundEditorThemeStyles = void 0;
|
|
4
|
-
var playgroundEditorThemeStyles_1 = require("./playgroundEditorThemeStyles");
|
|
5
|
-
Object.defineProperty(exports, "playgroundEditorThemeStyles", { enumerable: true, get: function () { return playgroundEditorThemeStyles_1.playgroundEditorThemeStyles; } });
|
|
1
|
+
export { playgroundEditorThemeStyles } from "./playgroundEditorThemeStyles";
|
|
6
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/themes/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playgroundEditorTheme.d.ts","sourceRoot":"","sources":["../../../src/editor/themes/playgroundEditorTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,qBAAqB,EAAE,kBA+GnC,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.playgroundEditorTheme = void 0;
|
|
4
|
-
exports.playgroundEditorTheme = {
|
|
1
|
+
export const playgroundEditorTheme = {
|
|
5
2
|
autocomplete: "PlaygroundEditorTheme__autocomplete",
|
|
6
3
|
blockCursor: "PlaygroundEditorTheme__blockCursor",
|
|
7
4
|
code: "PlaygroundEditorTheme__code",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playgroundEditorTheme.js","sourceRoot":"","sources":["../../../src/editor/themes/playgroundEditorTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playgroundEditorTheme.js","sourceRoot":"","sources":["../../../src/editor/themes/playgroundEditorTheme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAuB;IACvD,YAAY,EAAE,qCAAqC;IACnD,WAAW,EAAE,oCAAoC;IACjD,IAAI,EAAE,6BAA6B;IACnC,aAAa,EAAE;QACb,MAAM,EAAE,kCAAkC;QAC1C,IAAI,EAAE,kCAAkC;QACxC,OAAO,EAAE,sCAAsC;QAC/C,OAAO,EAAE,sCAAsC;QAC/C,KAAK,EAAE,qCAAqC;QAC5C,IAAI,EAAE,sCAAsC;QAC5C,KAAK,EAAE,sCAAsC;QAC7C,YAAY,EAAE,sCAAsC;QACpD,OAAO,EAAE,qCAAqC;QAC9C,QAAQ,EAAE,sCAAsC;QAChD,OAAO,EAAE,sCAAsC;QAC/C,OAAO,EAAE,qCAAqC;QAC9C,MAAM,EAAE,sCAAsC;QAC9C,QAAQ,EAAE,sCAAsC;QAChD,SAAS,EAAE,sCAAsC;QACjD,QAAQ,EAAE,sCAAsC;QAChD,OAAO,EAAE,kCAAkC;QAC3C,SAAS,EAAE,sCAAsC;QACjD,MAAM,EAAE,sCAAsC;QAC9C,QAAQ,EAAE,sCAAsC;QAChD,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EAAE,sCAAsC;QAChD,WAAW,EAAE,yCAAyC;QACtD,KAAK,EAAE,sCAAsC;QAC7C,QAAQ,EAAE,sCAAsC;QAChD,MAAM,EAAE,sCAAsC;QAC9C,MAAM,EAAE,sCAAsC;QAC9C,GAAG,EAAE,sCAAsC;QAC3C,GAAG,EAAE,sCAAsC;QAC3C,QAAQ,E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,8BAA8B,EAAE,uDAAuD;IACvF,eAAe,EAAE,wCAAwC;IACzD,gBAAgB,EAAE,yCAAyC;IAC3D,iBAAiB,EAAE,0CAA0C;IAC7D,iBAAiB,EAAE,0CAA0C;IAC7D,cAAc,EAAE,uCAAuC;IACvD,gBAAgB,EAAE,yCAAyC;IAC3D,sBAAsB,EAAE,+CAA+C;IACvE,aAAa,EAAE,sCAAsC;IACrD,cAAc,EAAE,uCAAuC;IACvD,IAAI,EAAE;QACJ,IAAI,EAAE,iCAAiC;QACvC,IAAI,EAAE,iCAAiC;QACvC,SAAS,EAAE,sCAAsC;QACjD,MAAM,EAAE,mCAAmC;QAC3C,aAAa,EAAE,0CAA0C;QACzD,SAAS,EAAE,sCAAsC;QACjD,WAAW,EAAE,wCAAwC;QACrD,SAAS,EAAE,sCAAsC;QACjD,sBAAsB,EAAE,mDAAmD;KAC5E;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playgroundEditorThemeStyles.d.ts","sourceRoot":"","sources":["../../../src/editor/themes/playgroundEditorThemeStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,2CAwrBvC,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.playgroundEditorThemeStyles = void 0;
|
|
4
|
-
const material_1 = require("@mui/material");
|
|
5
|
-
exports.playgroundEditorThemeStyles = (0, material_1.css) `
|
|
1
|
+
import { css } from "@mui/material";
|
|
2
|
+
export const playgroundEditorThemeStyles = css `
|
|
6
3
|
.PlaygroundEditorTheme__ltr {
|
|
7
4
|
text-align: left;
|
|
8
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playgroundEditorThemeStyles.js","sourceRoot":"","sources":["../../../src/editor/themes/playgroundEditorThemeStyles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playgroundEditorThemeStyles.js","sourceRoot":"","sources":["../../../src/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