@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,21 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const hooks_1 = require("../../hooks");
|
|
17
|
-
const plugins_1 = require("../../plugins");
|
|
18
|
-
const ui_1 = require("../../ui");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { $getNodeByKey, $getSelection, $isNodeSelection, $setSelection, CLICK_COMMAND, COMMAND_PRIORITY_LOW, 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 { LexicalNestedComposer } from "@lexical/react/LexicalNestedComposer";
|
|
8
|
+
import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
|
|
9
|
+
import { useLexicalEditable } from "@lexical/react/useLexicalEditable";
|
|
10
|
+
import { useLexicalNodeSelection } from "@lexical/react/useLexicalNodeSelection";
|
|
11
|
+
import { mergeRegister } from "@lexical/utils";
|
|
12
|
+
import { $isInlineImageNode } from "./InlineImageNode";
|
|
13
|
+
import { useModal } from "../../hooks";
|
|
14
|
+
import { LinkPlugin } from "../../plugins";
|
|
15
|
+
import { Button, DialogActions, Select, TextInput, LexicalContentEditable as ContentEditable } from "../../ui";
|
|
19
16
|
const imageCache = new Set();
|
|
20
17
|
function useSuspenseImage(src) {
|
|
21
18
|
if (!imageCache.has(src)) {
|
|
@@ -33,28 +30,28 @@ function useSuspenseImage(src) {
|
|
|
33
30
|
}
|
|
34
31
|
const LazyImage = ({ altText, className, imageRef, src, width, height, position, }) => {
|
|
35
32
|
useSuspenseImage(src);
|
|
36
|
-
return ((
|
|
33
|
+
return (_jsx("img", { className: className || undefined, src: src, alt: altText, ref: imageRef, "data-position": position, style: {
|
|
37
34
|
display: "block",
|
|
38
35
|
height,
|
|
39
36
|
width,
|
|
40
37
|
}, draggable: "false" }));
|
|
41
38
|
};
|
|
42
|
-
const UpdateInlineImageDialog = ({ activeEditor, nodeKey, onClose, }) => {
|
|
39
|
+
export const UpdateInlineImageDialog = ({ activeEditor, nodeKey, onClose, }) => {
|
|
43
40
|
const editorState = activeEditor.getEditorState();
|
|
44
41
|
let initialAltText = "";
|
|
45
42
|
let initialShowCaption = false;
|
|
46
43
|
let initialPosition = undefined;
|
|
47
44
|
editorState.read(() => {
|
|
48
|
-
const node =
|
|
49
|
-
if (
|
|
45
|
+
const node = $getNodeByKey(nodeKey);
|
|
46
|
+
if ($isInlineImageNode(node)) {
|
|
50
47
|
initialAltText = node.getAltText();
|
|
51
48
|
initialShowCaption = node.getShowCaption();
|
|
52
49
|
initialPosition = node.getPosition();
|
|
53
50
|
}
|
|
54
51
|
});
|
|
55
|
-
const [altText, setAltText] =
|
|
56
|
-
const [showCaption, setShowCaption] =
|
|
57
|
-
const [position, setPosition] =
|
|
52
|
+
const [altText, setAltText] = useState(initialAltText);
|
|
53
|
+
const [showCaption, setShowCaption] = useState(initialShowCaption);
|
|
54
|
+
const [position, setPosition] = useState(initialPosition);
|
|
58
55
|
const handleShowCaptionChange = (e) => {
|
|
59
56
|
setShowCaption(e.target.checked);
|
|
60
57
|
};
|
|
@@ -64,32 +61,31 @@ const UpdateInlineImageDialog = ({ activeEditor, nodeKey, onClose, }) => {
|
|
|
64
61
|
const handleOnConfirm = () => {
|
|
65
62
|
const payload = { altText, position, showCaption };
|
|
66
63
|
activeEditor.update(() => {
|
|
67
|
-
const node =
|
|
68
|
-
if (
|
|
64
|
+
const node = $getNodeByKey(nodeKey);
|
|
65
|
+
if ($isInlineImageNode(node)) {
|
|
69
66
|
node.update(payload);
|
|
70
67
|
}
|
|
71
68
|
});
|
|
72
69
|
onClose();
|
|
73
70
|
};
|
|
74
|
-
return ((
|
|
71
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { style: { marginBottom: "1em" }, children: _jsx(TextInput, { label: "Alt Text", placeholder: "Descriptive alternative text", onChange: setAltText, value: altText, "data-test-id": "image-modal-alt-text-input" }) }), _jsxs(Select, { style: { marginBottom: "1em", width: "208px" }, value: position, label: "Position", name: "position", id: "position-select", onChange: handlePositionChange, children: [_jsx("option", { value: "left", children: "Left" }), _jsx("option", { value: "right", children: "Right" }), _jsx("option", { value: "full", children: "Full Width" })] }), _jsxs("div", { className: "Input__wrapper", children: [_jsx("input", { id: "caption", type: "checkbox", checked: showCaption, onChange: handleShowCaptionChange }), _jsx("label", { htmlFor: "caption", children: "Show Caption" })] }), _jsx(DialogActions, { children: _jsx(Button, { "data-test-id": "image-modal-file-upload-btn", onClick: () => handleOnConfirm(), children: "Confirm" }) })] }));
|
|
75
72
|
};
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
const [
|
|
82
|
-
const [
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
const latestSelection = (0, lexical_1.$getSelection)();
|
|
73
|
+
export const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaption, caption, position, }) => {
|
|
74
|
+
const [modal, showModal] = useModal();
|
|
75
|
+
const imageRef = useRef(null);
|
|
76
|
+
const buttonRef = useRef(null);
|
|
77
|
+
const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey);
|
|
78
|
+
const [editor] = useLexicalComposerContext();
|
|
79
|
+
const [selection, setSelection] = useState(null);
|
|
80
|
+
const activeEditorRef = useRef(null);
|
|
81
|
+
const isEditable = useLexicalEditable();
|
|
82
|
+
const $onEnter = useCallback((event) => {
|
|
83
|
+
const latestSelection = $getSelection();
|
|
88
84
|
const buttonElem = buttonRef.current;
|
|
89
|
-
if (isSelected &&
|
|
85
|
+
if (isSelected && $isNodeSelection(latestSelection) && latestSelection.getNodes().length === 1) {
|
|
90
86
|
if (showCaption) {
|
|
91
87
|
// Move focus into nested editor
|
|
92
|
-
|
|
88
|
+
$setSelection(null);
|
|
93
89
|
event.preventDefault();
|
|
94
90
|
caption.focus();
|
|
95
91
|
return true;
|
|
@@ -102,9 +98,9 @@ const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaptio
|
|
|
102
98
|
}
|
|
103
99
|
return false;
|
|
104
100
|
}, [caption, isSelected, showCaption]);
|
|
105
|
-
const $onEscape =
|
|
101
|
+
const $onEscape = useCallback((event) => {
|
|
106
102
|
if (activeEditorRef.current === caption || buttonRef.current === event.target) {
|
|
107
|
-
|
|
103
|
+
$setSelection(null);
|
|
108
104
|
editor.update(() => {
|
|
109
105
|
setSelected(true);
|
|
110
106
|
const parentRootElement = editor.getRootElement();
|
|
@@ -116,16 +112,16 @@ const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaptio
|
|
|
116
112
|
}
|
|
117
113
|
return false;
|
|
118
114
|
}, [caption, editor, setSelected]);
|
|
119
|
-
|
|
115
|
+
useEffect(() => {
|
|
120
116
|
let isMounted = true;
|
|
121
|
-
const unregister =
|
|
117
|
+
const unregister = mergeRegister(editor.registerUpdateListener(({ editorState }) => {
|
|
122
118
|
if (isMounted) {
|
|
123
|
-
setSelection(editorState.read(() =>
|
|
119
|
+
setSelection(editorState.read(() => $getSelection()));
|
|
124
120
|
}
|
|
125
|
-
}), editor.registerCommand(
|
|
121
|
+
}), editor.registerCommand(SELECTION_CHANGE_COMMAND, (_, activeEditor) => {
|
|
126
122
|
activeEditorRef.current = activeEditor;
|
|
127
123
|
return false;
|
|
128
|
-
},
|
|
124
|
+
}, COMMAND_PRIORITY_LOW), editor.registerCommand(CLICK_COMMAND, payload => {
|
|
129
125
|
const event = payload;
|
|
130
126
|
if (event.target === imageRef.current) {
|
|
131
127
|
if (event.shiftKey) {
|
|
@@ -138,7 +134,7 @@ const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaptio
|
|
|
138
134
|
return true;
|
|
139
135
|
}
|
|
140
136
|
return false;
|
|
141
|
-
},
|
|
137
|
+
}, COMMAND_PRIORITY_LOW), editor.registerCommand(DRAGSTART_COMMAND, event => {
|
|
142
138
|
if (event.target === imageRef.current) {
|
|
143
139
|
// TODO This is just a temporary workaround for FF to behave like other browsers.
|
|
144
140
|
// Ideally, this handles drag & drop too (and all browsers).
|
|
@@ -146,17 +142,16 @@ const InlineImageComponent = ({ src, altText, nodeKey, width, height, showCaptio
|
|
|
146
142
|
return true;
|
|
147
143
|
}
|
|
148
144
|
return false;
|
|
149
|
-
},
|
|
145
|
+
}, COMMAND_PRIORITY_LOW), editor.registerCommand(KEY_ENTER_COMMAND, $onEnter, COMMAND_PRIORITY_LOW), editor.registerCommand(KEY_ESCAPE_COMMAND, $onEscape, COMMAND_PRIORITY_LOW));
|
|
150
146
|
return () => {
|
|
151
147
|
isMounted = false;
|
|
152
148
|
unregister();
|
|
153
149
|
};
|
|
154
150
|
}, [clearSelection, editor, isSelected, nodeKey, $onEnter, $onEscape, setSelected]);
|
|
155
|
-
const draggable = isSelected &&
|
|
151
|
+
const draggable = isSelected && $isNodeSelection(selection);
|
|
156
152
|
const isFocused = isSelected && isEditable;
|
|
157
|
-
return ((
|
|
158
|
-
showModal("Update Inline Image", onClose => ((
|
|
159
|
-
}, children: "Edit" })), (
|
|
153
|
+
return (_jsxs(Suspense, { fallback: null, children: [_jsxs(_Fragment, { children: [_jsxs("span", { draggable: draggable, children: [isEditable && (_jsx("button", { className: "image-edit-button", ref: buttonRef, onClick: () => {
|
|
154
|
+
showModal("Update Inline Image", onClose => (_jsx(UpdateInlineImageDialog, { activeEditor: editor, nodeKey: nodeKey, onClose: onClose })));
|
|
155
|
+
}, children: "Edit" })), _jsx(LazyImage, { className: isFocused ? `focused ${$isNodeSelection(selection) ? "draggable" : ""}` : null, src: src, altText: altText, imageRef: imageRef, width: width, height: height, position: position })] }), showCaption && (_jsx("span", { className: "image-caption-container", children: _jsxs(LexicalNestedComposer, { initialEditor: caption, children: [_jsx(AutoFocusPlugin, {}), _jsx(LinkPlugin, {}), _jsx(RichTextPlugin, { contentEditable: _jsx(ContentEditable, { placeholder: "Enter a caption...", placeholderClassName: "InlineImageNode__placeholder", className: "InlineImageNode__contentEditable" }), ErrorBoundary: LexicalErrorBoundary })] }) }))] }), modal] }));
|
|
160
156
|
};
|
|
161
|
-
exports.InlineImageComponent = InlineImageComponent;
|
|
162
157
|
//# sourceMappingURL=InlineImageComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineImageComponent.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/InlineImageComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InlineImageComponent.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/InlineImageComponent.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AAE/G,MAAM,UAAU,GAAG,IAAI,GAAG,EAAE,CAAC;AAE7B,SAAS,gBAA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,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,GAClB,IACG,EACN,WAAW,IAAI,CACd,eAAM,SAAS,EAAC,yBAAyB,YACvC,MAAC,qBAAqB,IAAC,aAAa,EAAE,OAAO,aAC3C,KAAC,eAAe,KAAG,EACnB,KAAC,UAAU,KAAG,EACd,KAAC,cAAc,IACb,eAAe,EACb,KAAC,eAAe,IACd,WAAW,EAAC,oBAAoB,EAChC,oBAAoB,EAAC,8BAA8B,EACnD,SAAS,EAAC,kCAAkC,GAC5C,EAEJ,aAAa,EAAE,oBAAoB,GACnC,IACoB,GACnB,CACR,IACA,EACF,KAAK,IACG,CACZ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -57,3 +57,4 @@ export declare class InlineImageNode extends DecoratorNode<JSX.Element> {
|
|
|
57
57
|
}
|
|
58
58
|
export declare function $createInlineImageNode({ altText, position, height, src, width, showCaption, caption, key, }: IInlineImagePayload): InlineImageNode;
|
|
59
59
|
export declare function $isInlineImageNode(node: LexicalNode | null | undefined): node is InlineImageNode;
|
|
60
|
+
//# sourceMappingURL=InlineImageNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineImageNode.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/InlineImageNode.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,CA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AC,EACrC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,GAAG,EACH,KAAK,EACL,WAAW,EACX,OAAO,EACP,GAAG,GACJ,EAAE,mBAAmB,GAAG,eAAe,CAEvC;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,eAAe,CAEhG"}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.$isInlineImageNode = $isInlineImageNode;
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const lexical_1 = require("lexical");
|
|
8
|
-
const utils_1 = require("@lexical/utils");
|
|
9
|
-
const InlineImageComponent_1 = require("./InlineImageComponent");
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { $applyNodeReplacement, createEditor, DecoratorNode, isHTMLElement } from "lexical";
|
|
3
|
+
import { addClassNamesToElement, removeClassNamesFromElement } from "@lexical/utils";
|
|
4
|
+
import { InlineImageComponent } from "./InlineImageComponent";
|
|
10
5
|
function $convertInlineImageElement(domNode) {
|
|
11
|
-
if (
|
|
6
|
+
if (isHTMLElement(domNode) && domNode.nodeName === "IMG") {
|
|
12
7
|
const { alt: altText, src, width, height } = domNode;
|
|
13
8
|
const node = $createInlineImageNode({ altText, height, src, width });
|
|
14
9
|
return { node };
|
|
@@ -18,7 +13,7 @@ function $convertInlineImageElement(domNode) {
|
|
|
18
13
|
function getPositionClass(position) {
|
|
19
14
|
return typeof position === "string" ? `position-${position}` : undefined;
|
|
20
15
|
}
|
|
21
|
-
class InlineImageNode extends
|
|
16
|
+
export class InlineImageNode extends DecoratorNode {
|
|
22
17
|
__src;
|
|
23
18
|
__altText;
|
|
24
19
|
__width;
|
|
@@ -33,7 +28,7 @@ class InlineImageNode extends lexical_1.DecoratorNode {
|
|
|
33
28
|
this.__width = width || "inherit";
|
|
34
29
|
this.__height = height || "inherit";
|
|
35
30
|
this.__showCaption = showCaption || false;
|
|
36
|
-
this.__caption = caption ||
|
|
31
|
+
this.__caption = caption || createEditor();
|
|
37
32
|
this.__position = position;
|
|
38
33
|
}
|
|
39
34
|
static getType() {
|
|
@@ -138,7 +133,7 @@ class InlineImageNode extends lexical_1.DecoratorNode {
|
|
|
138
133
|
const span = document.createElement("span");
|
|
139
134
|
for (const cls of [config.theme.inlineImage, getPositionClass(this.__position)]) {
|
|
140
135
|
if (cls) {
|
|
141
|
-
|
|
136
|
+
addClassNamesToElement(span, cls);
|
|
142
137
|
}
|
|
143
138
|
}
|
|
144
139
|
return span;
|
|
@@ -146,20 +141,19 @@ class InlineImageNode extends lexical_1.DecoratorNode {
|
|
|
146
141
|
updateDOM(prevNode, dom, _config) {
|
|
147
142
|
const position = this.__position;
|
|
148
143
|
if (position !== prevNode.__position) {
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
removeClassNamesFromElement(dom, getPositionClass(prevNode.__position));
|
|
145
|
+
addClassNamesToElement(dom, getPositionClass(position));
|
|
151
146
|
}
|
|
152
147
|
return false;
|
|
153
148
|
}
|
|
154
149
|
decorate() {
|
|
155
|
-
return ((
|
|
150
|
+
return (_jsx(InlineImageComponent, { src: this.__src, altText: this.__altText, width: this.__width, height: this.__height, nodeKey: this.getKey(), showCaption: this.__showCaption, caption: this.__caption, position: this.__position }));
|
|
156
151
|
}
|
|
157
152
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
return (0, lexical_1.$applyNodeReplacement)(new InlineImageNode(src, altText, position, width, height, showCaption, caption, key));
|
|
153
|
+
export function $createInlineImageNode({ altText, position, height, src, width, showCaption, caption, key, }) {
|
|
154
|
+
return $applyNodeReplacement(new InlineImageNode(src, altText, position, width, height, showCaption, caption, key));
|
|
161
155
|
}
|
|
162
|
-
function $isInlineImageNode(node) {
|
|
156
|
+
export function $isInlineImageNode(node) {
|
|
163
157
|
return node instanceof InlineImageNode;
|
|
164
158
|
}
|
|
165
159
|
//# sourceMappingURL=InlineImageNode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineImageNode.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/InlineImageNode.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InlineImageNode.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/InlineImageNode.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5F,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAErF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAqB9D,SAAS,0BAA0B,CAAC,OAAa;IAC/C,IAAI,aAAa,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;QACzD,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAA2B,CAAC;QACzE,MAAM,IAAI,GAAG,sBAAsB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;QACrE,OAAO,EAAE,IAAI,EAAE,CAAC;IAClB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAeD,SAAS,gBAAgB,CAAC,QAA8B;IACtD,OAAO,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC;AAED,MAAM,OAAO,eAAgB,SAAQ,aAA0B;IAC7D,KAAK,CAAS;IACd,SAAS,CAAS;IAClB,OAAO,CAAqB;IAC5B,QAAQ,CAAqB;IAC7B,aAAa,CAAU;IACvB,SAAS,CAAgB;IACzB,UAAU,CAAW;IAErB,YACE,GAAW,EACX,O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AAM,EAAE,EACtB,WAAW,EAAE,IAAI,CAAC,aAAa,EAC/B,OAAO,EAAE,IAAI,CAAC,SAAS,EACvB,QAAQ,EAAE,IAAI,CAAC,UAAU,GACzB,CACH,CAAC;IACJ,CAAC;CACF;AAED,MAAM,UAAU,sBAAsB,CAAC,EACrC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,GAAG,EACH,KAAK,EACL,WAAW,EACX,OAAO,EACP,GAAG,GACiB;IACpB,OAAO,qBAAqB,CAAC,IAAI,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;AACtH,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAoC;IACrE,OAAO,IAAI,YAAY,eAAe,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var InlineImageComponent_1 = require("./InlineImageComponent");
|
|
5
|
-
Object.defineProperty(exports, "UpdateInlineImageDialog", { enumerable: true, get: function () { return InlineImageComponent_1.UpdateInlineImageDialog; } });
|
|
6
|
-
var InlineImageNode_1 = require("./InlineImageNode");
|
|
7
|
-
Object.defineProperty(exports, "InlineImageNode", { enumerable: true, get: function () { return InlineImageNode_1.InlineImageNode; } });
|
|
8
|
-
var inlineImageNodeStyles_1 = require("./inlineImageNodeStyles");
|
|
9
|
-
Object.defineProperty(exports, "inlineImageNodeStyles", { enumerable: true, get: function () { return inlineImageNodeStyles_1.inlineImageNodeStyles; } });
|
|
1
|
+
export { UpdateInlineImageDialog } from "./InlineImageComponent";
|
|
2
|
+
export { InlineImageNode } from "./InlineImageNode";
|
|
3
|
+
export { inlineImageNodeStyles } from "./inlineImageNodeStyles";
|
|
10
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inlineImageNodeStyles.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/inlineImageNodeStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,2CAoFjC,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.inlineImageNodeStyles = void 0;
|
|
4
|
-
const material_1 = require("@mui/material");
|
|
5
|
-
exports.inlineImageNodeStyles = (0, material_1.css) `
|
|
1
|
+
import { css } from "@mui/material";
|
|
2
|
+
export const inlineImageNodeStyles = css `
|
|
6
3
|
.InlineImageNode__contentEditable {
|
|
7
4
|
min-height: 20px;
|
|
8
5
|
border: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inlineImageNodeStyles.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/inlineImageNodeStyles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inlineImageNodeStyles.js","sourceRoot":"","sources":["../../../../src/editor/nodes/InlineImage/inlineImageNodeStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MuiLexicalNodes.d.ts","sourceRoot":"","sources":["../../../src/editor/nodes/MuiLexicalNodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAalD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAiBrD,CAAC"}
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
InlineImage_1.InlineImageNode,
|
|
29
|
-
LexicalHorizontalRuleNode_1.HorizontalRuleNode,
|
|
30
|
-
Video_1.VideoNode,
|
|
1
|
+
import { CodeHighlightNode, CodeNode } from "@lexical/code";
|
|
2
|
+
import { AutoLinkNode, LinkNode } from "@lexical/link";
|
|
3
|
+
import { ListItemNode, ListNode } from "@lexical/list";
|
|
4
|
+
import { OverflowNode } from "@lexical/overflow";
|
|
5
|
+
import { HorizontalRuleNode } from "@lexical/react/LexicalHorizontalRuleNode";
|
|
6
|
+
import { HeadingNode, QuoteNode } from "@lexical/rich-text";
|
|
7
|
+
import { TableCellNode, TableNode, TableRowNode } from "@lexical/table";
|
|
8
|
+
import { ImageNode } from "./Image";
|
|
9
|
+
import { InlineImageNode } from "./InlineImage";
|
|
10
|
+
import { VideoNode } from "./Video";
|
|
11
|
+
export const MuiLexicalNodes = [
|
|
12
|
+
HeadingNode,
|
|
13
|
+
ListNode,
|
|
14
|
+
ListItemNode,
|
|
15
|
+
QuoteNode,
|
|
16
|
+
CodeNode,
|
|
17
|
+
TableNode,
|
|
18
|
+
TableCellNode,
|
|
19
|
+
TableRowNode,
|
|
20
|
+
CodeHighlightNode,
|
|
21
|
+
AutoLinkNode,
|
|
22
|
+
LinkNode,
|
|
23
|
+
OverflowNode,
|
|
24
|
+
ImageNode,
|
|
25
|
+
InlineImageNode,
|
|
26
|
+
HorizontalRuleNode,
|
|
27
|
+
VideoNode,
|
|
31
28
|
];
|
|
32
29
|
//# sourceMappingURL=MuiLexicalNodes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MuiLexicalNodes.js","sourceRoot":"","sources":["../../../src/editor/nodes/MuiLexicalNodes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MuiLexicalNodes.js","sourceRoot":"","sources":["../../../src/editor/nodes/MuiLexicalNodes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,MAAM,CAAC,MAAM,eAAe,GAA8B;IACxD,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,SAAS;IACT,aAAa;IACb,YAAY;IACZ,iBAAiB;IACjB,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,eAAe;IACf,kBAAkB;IAClB,SAAS;CACV,CAAC"}
|
|
@@ -6,4 +6,5 @@ export interface IVideoNodeProps {
|
|
|
6
6
|
startAt?: number | null;
|
|
7
7
|
originalUrl: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const VideoComponent: (props: IVideoNodeProps) => import("react
|
|
9
|
+
export declare const VideoComponent: (props: IVideoNodeProps) => import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=VideoComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoComponent.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/Video/VideoComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,aAAa,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,gCAuBpD,CAAC"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.VideoComponent = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const VideoComponent = (props) => {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export const VideoComponent = (props) => {
|
|
6
3
|
const { provider } = props;
|
|
7
4
|
const title = provider === "youtube"
|
|
8
5
|
? "YouTube video"
|
|
9
6
|
: provider === "vimeo"
|
|
10
7
|
? "Vimeo video"
|
|
11
8
|
: "Video";
|
|
12
|
-
return ((
|
|
9
|
+
return (_jsx("div", { className: "lexical-video", contentEditable: false, draggable: false, children: _jsx("div", { className: "lexical-video__inner", children: _jsx("iframe", { className: "lexical-video__iframe", src: props.embedUrl, title: title, loading: "lazy", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", allowFullScreen: true }) }) }));
|
|
13
10
|
};
|
|
14
|
-
exports.VideoComponent = VideoComponent;
|
|
15
11
|
//# sourceMappingURL=VideoComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoComponent.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Video/VideoComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VideoComponent.js","sourceRoot":"","sources":["../../../../src/editor/nodes/Video/VideoComponent.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAE,EAAE;IACvD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,KAAK,GACT,QAAQ,KAAK,SAAS;QACpB,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,QAAQ,KAAK,OAAO;YACpB,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,OAAO,CAAC;IAEhB,OAAO,CACL,cAAK,SAAS,EAAC,eAAe,EAAC,eAAe,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,YACrE,cAAK,SAAS,EAAC,sBAAsB,YACnC,iBACE,SAAS,EAAC,uBAAuB,EACjC,GAAG,EAAE,KAAK,CAAC,QAAQ,EACnB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAC,MAAM,EACd,KAAK,EAAC,qGAAqG,EAC3G,eAAe,SACf,GACE,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -32,3 +32,4 @@ export declare class VideoNode extends DecoratorNode<React.JSX.Element> {
|
|
|
32
32
|
}
|
|
33
33
|
export declare function $createVideoNode(parsed: ParsedVideo): VideoNode;
|
|
34
34
|
export declare function $isVideoNode(node: unknown): node is VideoNode;
|
|
35
|
+
//# sourceMappingURL=VideoNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoNode.d.ts","sourceRoot":"","sources":["../../../../src/editor/nodes/Video/VideoNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAEhB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,MAAM,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,WAAW,EAEX,aAAa,EACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAkB,MAAM,kBAAkB,CAAC;AAEnE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CACtC;IACE,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,aAAa,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB,EACD,qBAAqB,CACtB,CAAC;AAEF,qBAAa,SAAU,SAAQ,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAC7D,UAAU,EAAE,aAAa,CAAC;IAC1B,SAAS,EAAE,MAAM,CA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