@ethberry/mui-lexical 1.0.28 → 1.0.31
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 +2 -5
- 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 +2 -5
- 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 +57 -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 +51 -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 +15 -19
- 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 +14 -19
- 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 +1 -0
- package/dist/editor/plugins/ContextMenuPlugin/index.d.ts.map +1 -0
- package/dist/editor/plugins/ContextMenuPlugin/index.js +27 -33
- 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 +41 -47
- 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 +90 -94
- 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/jest.config.json +28 -10
- package/package.json +40 -32
- package/tsconfig.jest.json +2 -3
- 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,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const ui_1 = require("../../ui");
|
|
19
|
-
const ImageNode_1 = require("./ImageNode");
|
|
20
|
-
const image_broken_1 = require("../../images/image-broken");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { $getNodeByKey, $getSelection, $isNodeSelection, $isRangeSelection, $setSelection, CLICK_COMMAND, COMMAND_PRIORITY_LOW, createCommand, DRAGSTART_COMMAND, KEY_ENTER_COMMAND, KEY_ESCAPE_COMMAND, SELECTION_CHANGE_COMMAND, } from "lexical";
|
|
3
|
+
import { Suspense, useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
+
import { AutoFocusPlugin } from "@lexical/react/LexicalAutoFocusPlugin";
|
|
5
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
6
|
+
import { LexicalErrorBoundary } from "@lexical/react/LexicalErrorBoundary";
|
|
7
|
+
import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin";
|
|
8
|
+
import { LexicalNestedComposer } from "@lexical/react/LexicalNestedComposer";
|
|
9
|
+
import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
|
|
10
|
+
import { useLexicalEditable } from "@lexical/react/useLexicalEditable";
|
|
11
|
+
import { useLexicalNodeSelection } from "@lexical/react/useLexicalNodeSelection";
|
|
12
|
+
import { mergeRegister } from "@lexical/utils";
|
|
13
|
+
import { useSharedHistoryContext } from "../../context";
|
|
14
|
+
import { LinkPlugin } from "../../plugins";
|
|
15
|
+
import { LexicalContentEditable as ContentEditable, ImageResizer } from "../../ui";
|
|
16
|
+
import { $isImageNode } from "./ImageNode";
|
|
17
|
+
import { ImageBrokenIcon } from "../../images/image-broken";
|
|
21
18
|
const imageCache = new Set();
|
|
22
|
-
|
|
19
|
+
export const RIGHT_CLICK_IMAGE_COMMAND = createCommand("RIGHT_CLICK_IMAGE_COMMAND");
|
|
23
20
|
const useSuspenseImage = (src) => {
|
|
24
21
|
if (!imageCache.has(src)) {
|
|
25
22
|
// React Suspense: throw a pending Promise until the image loads.
|
|
@@ -42,10 +39,10 @@ const isSVG = (src) => {
|
|
|
42
39
|
};
|
|
43
40
|
const LazyImage = ({ altText, className, imageRef, src, width, height, maxWidth, onError, }) => {
|
|
44
41
|
useSuspenseImage(src);
|
|
45
|
-
const [dimensions, setDimensions] =
|
|
42
|
+
const [dimensions, setDimensions] = useState(null);
|
|
46
43
|
const isSVGImage = isSVG(src);
|
|
47
44
|
// Set initial dimensions for SVG images
|
|
48
|
-
|
|
45
|
+
useEffect(() => {
|
|
49
46
|
if (imageRef.current && isSVGImage) {
|
|
50
47
|
const { naturalWidth, naturalHeight } = imageRef.current;
|
|
51
48
|
setDimensions({
|
|
@@ -88,7 +85,7 @@ const LazyImage = ({ altText, className, imageRef, src, width, height, maxWidth,
|
|
|
88
85
|
};
|
|
89
86
|
};
|
|
90
87
|
const imageStyle = calculateDimensions();
|
|
91
|
-
return ((
|
|
88
|
+
return (_jsx("img", { className: className || undefined, src: src, alt: altText, ref: imageRef, style: imageStyle, onError: onError, draggable: "false", onLoad: e => {
|
|
92
89
|
if (isSVGImage) {
|
|
93
90
|
const img = e.currentTarget;
|
|
94
91
|
setDimensions({
|
|
@@ -99,25 +96,25 @@ const LazyImage = ({ altText, className, imageRef, src, width, height, maxWidth,
|
|
|
99
96
|
} }));
|
|
100
97
|
};
|
|
101
98
|
const BrokenImage = () => {
|
|
102
|
-
return (
|
|
99
|
+
return _jsx(ImageBrokenIcon, {});
|
|
103
100
|
};
|
|
104
|
-
const ImageComponent = ({ src, altText, nodeKey, width, height, maxWidth, resizable, showCaption, caption, captionsEnabled, }) => {
|
|
105
|
-
const imageRef =
|
|
106
|
-
const buttonRef =
|
|
107
|
-
const [isSelected, setSelected, clearSelection] =
|
|
108
|
-
const [isResizing, setIsResizing] =
|
|
109
|
-
const [editor] =
|
|
110
|
-
const [selection, setSelection] =
|
|
111
|
-
const activeEditorRef =
|
|
112
|
-
const [isLoadError, setIsLoadError] =
|
|
113
|
-
const isEditable =
|
|
114
|
-
const $onEnter =
|
|
115
|
-
const latestSelection =
|
|
101
|
+
export const ImageComponent = ({ src, altText, nodeKey, width, height, maxWidth, resizable, showCaption, caption, captionsEnabled, }) => {
|
|
102
|
+
const imageRef = useRef(null);
|
|
103
|
+
const buttonRef = useRef(null);
|
|
104
|
+
const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey);
|
|
105
|
+
const [isResizing, setIsResizing] = useState(false);
|
|
106
|
+
const [editor] = useLexicalComposerContext();
|
|
107
|
+
const [selection, setSelection] = useState(null);
|
|
108
|
+
const activeEditorRef = useRef(null);
|
|
109
|
+
const [isLoadError, setIsLoadError] = useState(false);
|
|
110
|
+
const isEditable = useLexicalEditable();
|
|
111
|
+
const $onEnter = useCallback((event) => {
|
|
112
|
+
const latestSelection = $getSelection();
|
|
116
113
|
const buttonElem = buttonRef.current;
|
|
117
|
-
if (isSelected &&
|
|
114
|
+
if (isSelected && $isNodeSelection(latestSelection) && latestSelection.getNodes().length === 1) {
|
|
118
115
|
if (showCaption) {
|
|
119
116
|
// Move focus into nested editor
|
|
120
|
-
|
|
117
|
+
$setSelection(null);
|
|
121
118
|
event.preventDefault();
|
|
122
119
|
caption.focus();
|
|
123
120
|
return true;
|
|
@@ -130,9 +127,9 @@ const ImageComponent = ({ src, altText, nodeKey, width, height, maxWidth, resiza
|
|
|
130
127
|
}
|
|
131
128
|
return false;
|
|
132
129
|
}, [caption, isSelected, showCaption]);
|
|
133
|
-
const $onEscape =
|
|
130
|
+
const $onEscape = useCallback((event) => {
|
|
134
131
|
if (activeEditorRef.current === caption || buttonRef.current === event.target) {
|
|
135
|
-
|
|
132
|
+
$setSelection(null);
|
|
136
133
|
editor.update(() => {
|
|
137
134
|
setSelected(true);
|
|
138
135
|
const parentRootElement = editor.getRootElement();
|
|
@@ -144,7 +141,7 @@ const ImageComponent = ({ src, altText, nodeKey, width, height, maxWidth, resiza
|
|
|
144
141
|
}
|
|
145
142
|
return false;
|
|
146
143
|
}, [caption, editor, setSelected]);
|
|
147
|
-
const onClick =
|
|
144
|
+
const onClick = useCallback((payload) => {
|
|
148
145
|
const event = payload;
|
|
149
146
|
if (isResizing) {
|
|
150
147
|
return true;
|
|
@@ -161,31 +158,31 @@ const ImageComponent = ({ src, altText, nodeKey, width, height, maxWidth, resiza
|
|
|
161
158
|
}
|
|
162
159
|
return false;
|
|
163
160
|
}, [isResizing, isSelected, setSelected, clearSelection]);
|
|
164
|
-
const onRightClick =
|
|
161
|
+
const onRightClick = useCallback((event) => {
|
|
165
162
|
editor.getEditorState().read(() => {
|
|
166
|
-
const latestSelection =
|
|
163
|
+
const latestSelection = $getSelection();
|
|
167
164
|
const domElement = event.target;
|
|
168
165
|
if (domElement.tagName === "IMG" &&
|
|
169
|
-
|
|
166
|
+
$isRangeSelection(latestSelection) &&
|
|
170
167
|
latestSelection.getNodes().length === 1) {
|
|
171
|
-
editor.dispatchCommand(
|
|
168
|
+
editor.dispatchCommand(RIGHT_CLICK_IMAGE_COMMAND, event);
|
|
172
169
|
}
|
|
173
170
|
});
|
|
174
171
|
}, [editor]);
|
|
175
|
-
|
|
172
|
+
useEffect(() => {
|
|
176
173
|
const rootElement = editor.getRootElement();
|
|
177
|
-
const unregister =
|
|
178
|
-
const updatedSelection = editorState.read(() =>
|
|
179
|
-
if (
|
|
174
|
+
const unregister = mergeRegister(editor.registerUpdateListener(({ editorState }) => {
|
|
175
|
+
const updatedSelection = editorState.read(() => $getSelection());
|
|
176
|
+
if ($isNodeSelection(updatedSelection)) {
|
|
180
177
|
setSelection(updatedSelection);
|
|
181
178
|
}
|
|
182
179
|
else {
|
|
183
180
|
setSelection(null);
|
|
184
181
|
}
|
|
185
|
-
}), editor.registerCommand(
|
|
182
|
+
}), editor.registerCommand(SELECTION_CHANGE_COMMAND, (_, activeEditor) => {
|
|
186
183
|
activeEditorRef.current = activeEditor;
|
|
187
184
|
return false;
|
|
188
|
-
},
|
|
185
|
+
}, COMMAND_PRIORITY_LOW), editor.registerCommand(CLICK_COMMAND, onClick, COMMAND_PRIORITY_LOW), editor.registerCommand(RIGHT_CLICK_IMAGE_COMMAND, onClick, COMMAND_PRIORITY_LOW), editor.registerCommand(DRAGSTART_COMMAND, event => {
|
|
189
186
|
if (event.target === imageRef.current) {
|
|
190
187
|
// TODO This is just a temporary workaround for FF to behave like other browsers.
|
|
191
188
|
// Ideally, this handles drag & drop too (and all browsers).
|
|
@@ -193,7 +190,7 @@ const ImageComponent = ({ src, altText, nodeKey, width, height, maxWidth, resiza
|
|
|
193
190
|
return true;
|
|
194
191
|
}
|
|
195
192
|
return false;
|
|
196
|
-
},
|
|
193
|
+
}, COMMAND_PRIORITY_LOW), editor.registerCommand(KEY_ENTER_COMMAND, $onEnter, COMMAND_PRIORITY_LOW), editor.registerCommand(KEY_ESCAPE_COMMAND, $onEscape, COMMAND_PRIORITY_LOW));
|
|
197
194
|
rootElement?.addEventListener("contextmenu", onRightClick);
|
|
198
195
|
return () => {
|
|
199
196
|
unregister();
|
|
@@ -213,8 +210,8 @@ const ImageComponent = ({ src, altText, nodeKey, width, height, maxWidth, resiza
|
|
|
213
210
|
]);
|
|
214
211
|
const setShowCaption = () => {
|
|
215
212
|
editor.update(() => {
|
|
216
|
-
const node =
|
|
217
|
-
if (
|
|
213
|
+
const node = $getNodeByKey(nodeKey);
|
|
214
|
+
if ($isImageNode(node)) {
|
|
218
215
|
node.setShowCaption(true);
|
|
219
216
|
}
|
|
220
217
|
});
|
|
@@ -225,8 +222,8 @@ const ImageComponent = ({ src, altText, nodeKey, width, height, maxWidth, resiza
|
|
|
225
222
|
setIsResizing(false);
|
|
226
223
|
}, 200);
|
|
227
224
|
editor.update(() => {
|
|
228
|
-
const node =
|
|
229
|
-
if (
|
|
225
|
+
const node = $getNodeByKey(nodeKey);
|
|
226
|
+
if ($isImageNode(node)) {
|
|
230
227
|
node.setWidthAndHeight(nextWidth, nextHeight);
|
|
231
228
|
}
|
|
232
229
|
});
|
|
@@ -234,10 +231,9 @@ const ImageComponent = ({ src, altText, nodeKey, width, height, maxWidth, resiza
|
|
|
234
231
|
const onResizeStart = () => {
|
|
235
232
|
setIsResizing(true);
|
|
236
233
|
};
|
|
237
|
-
const { historyState } =
|
|
238
|
-
const draggable = isSelected &&
|
|
234
|
+
const { historyState } = useSharedHistoryContext();
|
|
235
|
+
const draggable = isSelected && $isNodeSelection(selection) && !isResizing;
|
|
239
236
|
const isFocused = (isSelected || isResizing) && isEditable;
|
|
240
|
-
return ((
|
|
237
|
+
return (_jsx(Suspense, { fallback: null, children: _jsxs(_Fragment, { children: [_jsx("div", { draggable: draggable, children: isLoadError ? (_jsx(BrokenImage, {})) : (_jsx(LazyImage, { className: isFocused ? `focused ${$isNodeSelection(selection) ? "draggable" : ""}` : null, src: src, altText: altText, imageRef: imageRef, width: width, height: height, maxWidth: maxWidth, onError: () => setIsLoadError(true) })) }), showCaption && (_jsx("div", { className: "image-caption-container", children: _jsxs(LexicalNestedComposer, { initialEditor: caption, children: [_jsx(AutoFocusPlugin, {}), _jsx(LinkPlugin, {}), _jsx(HistoryPlugin, { externalHistoryState: historyState }), _jsx(RichTextPlugin, { contentEditable: _jsx(ContentEditable, { placeholder: "Enter a caption...", placeholderClassName: "ImageNode__placeholder", className: "ImageNode__contentEditable" }), ErrorBoundary: LexicalErrorBoundary })] }) })), resizable && $isNodeSelection(selection) && isFocused && (_jsx(ImageResizer, { showCaption: showCaption, setShowCaption: setShowCaption, editor: editor, buttonRef: buttonRef, imageRef: imageRef, maxWidth: maxWidth, onResizeStart: onResizeStart, onResizeEnd: onResizeEnd, captionsEnabled: !isLoadError && captionsEnabled }))] }) }));
|
|
241
238
|
};
|
|
242
|
-
exports.ImageComponent = ImageComponent;
|
|
243
239
|
//# sourceMappingURL=ImageComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageComponent.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/ImageComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageComponent.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/ImageComponent.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,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R,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EACzF,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,GACnC,CACH,GACG,EAEL,WAAW,IAAI,CACd,cAAK,SAAS,EAAC,yBAAyB,YACtC,MAAC,qBAAqB,IAAC,aAAa,EAAE,OAAO,aAC3C,KAAC,eAAe,KAAG,EACnB,KAAC,UAAU,KAAG,EACd,KAAC,aAAa,IAAC,oBAAoB,EAAE,YAAY,GAAI,EACrD,KAAC,cAAc,IACb,eAAe,EACb,KAAC,eAAe,IACd,WAAW,EAAC,oBAAoB,EAChC,oBAAoB,EAAC,wBAAwB,EAC7C,SAAS,EAAC,4BAA4B,GACtC,EAEJ,aAAa,EAAE,oBAAoB,GACnC,IACoB,GACpB,CACP,EACA,SAAS,IAAI,gBAAgB,CAAC,SAAS,CAAC,IAAI,SAAS,IAAI,CACxD,KAAC,YAAY,IACX,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,CAAC,WAAW,IAAI,eAAe,GAChD,CACH,IACA,GACM,CACZ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -48,3 +48,4 @@ export declare class ImageNode extends DecoratorNode<JSX.Element> {
|
|
|
48
48
|
}
|
|
49
49
|
export declare function $createImageNode({ altText, height, maxWidth, captionsEnabled, src, width, showCaption, caption, key, }: IImagePayload): ImageNode;
|
|
50
50
|
export declare function $isImageNode(node: LexicalNode | null | undefined): node is ImageNode;
|
|
51
|
+
//# sourceMappingURL=ImageNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageNode.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/ImageNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAEhB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,gBAAgB,EAChB,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAGL,aAAa,EAKd,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAMjC,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAqBD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CACtC;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,EACD,qBAAqB,CACtB,CAAC;AAEF,qBAAa,SAAU,SAAQ,aAAa,CAAC,GAAG,CAAC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AgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,MAAM,EACN,QAAc,EACd,eAAe,EACf,GAAG,EACH,KAAK,EACL,WAAW,EACX,OAAO,EACP,GAAG,GACJ,EAAE,aAAa,GAAG,SAAS,CAI3B;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,SAAS,CAEpF"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const lexical_1 = require("lexical");
|
|
8
|
-
const hashtag_1 = require("@lexical/hashtag");
|
|
9
|
-
const link_1 = require("@lexical/link");
|
|
10
|
-
const ImageComponent_1 = require("./ImageComponent");
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { $applyNodeReplacement, createEditor, DecoratorNode, LineBreakNode, ParagraphNode, RootNode, TextNode, } from "lexical";
|
|
3
|
+
import { HashtagNode } from "@lexical/hashtag";
|
|
4
|
+
import { LinkNode } from "@lexical/link";
|
|
5
|
+
import { ImageComponent } from "./ImageComponent";
|
|
11
6
|
function isGoogleDocCheckboxImg(img) {
|
|
12
7
|
return (img.parentElement != null &&
|
|
13
8
|
img.parentElement.tagName === "LI" &&
|
|
@@ -23,7 +18,7 @@ function $convertImageElement(domNode) {
|
|
|
23
18
|
const node = $createImageNode({ altText, height, src, width });
|
|
24
19
|
return { node };
|
|
25
20
|
}
|
|
26
|
-
class ImageNode extends
|
|
21
|
+
export class ImageNode extends DecoratorNode {
|
|
27
22
|
__src;
|
|
28
23
|
__altText;
|
|
29
24
|
__width;
|
|
@@ -43,9 +38,9 @@ class ImageNode extends lexical_1.DecoratorNode {
|
|
|
43
38
|
this.__showCaption = showCaption || false;
|
|
44
39
|
this.__caption =
|
|
45
40
|
caption ||
|
|
46
|
-
|
|
41
|
+
createEditor({
|
|
47
42
|
namespace: "Playground/ImageNodeCaption",
|
|
48
|
-
nodes: [
|
|
43
|
+
nodes: [RootNode, TextNode, LineBreakNode, ParagraphNode, LinkNode, HashtagNode],
|
|
49
44
|
});
|
|
50
45
|
this.__captionsEnabled = captionsEnabled || captionsEnabled === undefined;
|
|
51
46
|
}
|
|
@@ -133,14 +128,13 @@ class ImageNode extends lexical_1.DecoratorNode {
|
|
|
133
128
|
return this.__altText;
|
|
134
129
|
}
|
|
135
130
|
decorate() {
|
|
136
|
-
return ((
|
|
131
|
+
return (_jsx(ImageComponent, { src: this.__src, altText: this.__altText, width: this.__width, height: this.__height, maxWidth: this.__maxWidth, nodeKey: this.getKey(), showCaption: this.__showCaption, caption: this.__caption, captionsEnabled: this.__captionsEnabled, resizable: true }));
|
|
137
132
|
}
|
|
138
133
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return (0, lexical_1.$applyNodeReplacement)(new ImageNode(src, altText, maxWidth, width, height, showCaption, caption, captionsEnabled, key));
|
|
134
|
+
export function $createImageNode({ altText, height, maxWidth = 500, captionsEnabled, src, width, showCaption, caption, key, }) {
|
|
135
|
+
return $applyNodeReplacement(new ImageNode(src, altText, maxWidth, width, height, showCaption, caption, captionsEnabled, key));
|
|
142
136
|
}
|
|
143
|
-
function $isImageNode(node) {
|
|
137
|
+
export function $isImageNode(node) {
|
|
144
138
|
return node instanceof ImageNode;
|
|
145
139
|
}
|
|
146
140
|
//# sourceMappingURL=ImageNode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageNode.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/ImageNode.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageNode.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/ImageNode.tsx"],"names":[],"mappings":";AAaA,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAa,EACb,QAAQ,EACR,QAAQ,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I,CAAC,KAAK,EACf,OAAO,EAAE,IAAI,CAAC,SAAS,EACvB,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,MAAM,EAAE,IAAI,CAAC,QAAQ,EACrB,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,EACtB,WAAW,EAAE,IAAI,CAAC,aAAa,EAC/B,OAAO,EAAE,IAAI,CAAC,SAAS,EACvB,eAAe,EAAE,IAAI,CAAC,iBAAiB,EACvC,SAAS,EAAE,IAAI,GACf,CACH,CAAC;IACJ,CAAC;CACF;AAED,MAAM,UAAU,gBAAgB,CAAC,EAC/B,OAAO,EACP,MAAM,EACN,QAAQ,GAAG,GAAG,EACd,eAAe,EACf,GAAG,EACH,KAAK,EACL,WAAW,EACX,OAAO,EACP,GAAG,GACW;IACd,OAAO,qBAAqB,CAC1B,IAAI,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,CAAC,CACjG,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAoC;IAC/D,OAAO,IAAI,YAAY,SAAS,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageNodeStyles.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/imageNodeStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,2CAmC3B,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.imageNodeStyles = void 0;
|
|
4
|
-
const material_1 = require("@mui/material");
|
|
5
|
-
exports.imageNodeStyles = (0, material_1.css) `
|
|
1
|
+
import { css } from "@mui/material";
|
|
2
|
+
export const imageNodeStyles = css `
|
|
6
3
|
.ImageNode__contentEditable {
|
|
7
4
|
min-height: 20px;
|
|
8
5
|
border: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imageNodeStyles.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/imageNodeStyles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"imageNodeStyles.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/imageNodeStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var ImageComponent_1 = require("./ImageComponent");
|
|
5
|
-
Object.defineProperty(exports, "ImageComponent", { enumerable: true, get: function () { return ImageComponent_1.ImageComponent; } });
|
|
6
|
-
var ImageNode_1 = require("./ImageNode");
|
|
7
|
-
Object.defineProperty(exports, "ImageNode", { enumerable: true, get: function () { return ImageNode_1.ImageNode; } });
|
|
8
|
-
var imageNodeStyles_1 = require("./imageNodeStyles");
|
|
9
|
-
Object.defineProperty(exports, "imageNodeStyles", { enumerable: true, get: function () { return imageNodeStyles_1.imageNodeStyles; } });
|
|
1
|
+
export { ImageComponent } from "./ImageComponent";
|
|
2
|
+
export { ImageNode } from "./ImageNode";
|
|
3
|
+
export { imageNodeStyles } from "./imageNodeStyles";
|
|
10
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineImageComponent.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/InlineImageComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,aAAa,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAarE,OAAO,KAAK,EAAE,GAAG,EAAe,MAAM,OAAO,CAAC;AAW9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AA0DlD,eAAO,MAAM,uBAAuB,GAAI,qCAIrC;IACD,YAAY,EAAE,aAAa,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,KAAG,GAAG,CAAC,OA2EP,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,2EASlC;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,QAAQ,EAAE,QAAQ,CAAC;CACpB,KAAG,GAAG,CAAC,OA6JP,CAAC"}
|