@ethberry/mui-lexical 1.0.7
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/LICENSE +16 -0
- package/README.md +1 -0
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/index.js +18 -0
- package/dist/common/hooks/index.js.map +1 -0
- package/dist/common/hooks/useModal.d.ts +2 -0
- package/dist/common/hooks/useModal.js +28 -0
- package/dist/common/hooks/useModal.js.map +1 -0
- package/dist/common/index.d.ts +2 -0
- package/dist/common/index.js +19 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/types/index.d.ts +5 -0
- package/dist/common/types/index.js +3 -0
- package/dist/common/types/index.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +18 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/ui/Modal/index.d.ts +6 -0
- package/dist/components/ui/Modal/index.js +18 -0
- package/dist/components/ui/Modal/index.js.map +1 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +18 -0
- package/dist/components/ui/index.js.map +1 -0
- package/dist/config/lexicalEditorConfig.d.ts +78 -0
- package/dist/config/lexicalEditorConfig.js +33 -0
- package/dist/config/lexicalEditorConfig.js.map +1 -0
- package/dist/config/lexicalEditorTheme.d.ts +68 -0
- package/dist/config/lexicalEditorTheme.js +71 -0
- package/dist/config/lexicalEditorTheme.js.map +1 -0
- package/dist/display/index.d.ts +6 -0
- package/dist/display/index.js +47 -0
- package/dist/display/index.js.map +1 -0
- package/dist/display/styled.d.ts +1 -0
- package/dist/display/styled.js +67 -0
- package/dist/display/styled.js.map +1 -0
- package/dist/editor/Editor.d.ts +16 -0
- package/dist/editor/Editor.js +95 -0
- package/dist/editor/Editor.js.map +1 -0
- package/dist/editor/Editor.stories.d.ts +13 -0
- package/dist/editor/Editor.stories.js +135 -0
- package/dist/editor/Editor.stories.js.map +1 -0
- package/dist/editor/commands/index.d.ts +4 -0
- package/dist/editor/commands/index.js +6 -0
- package/dist/editor/commands/index.js.map +1 -0
- package/dist/editor/constants/index.d.ts +2 -0
- package/dist/editor/constants/index.js +40 -0
- package/dist/editor/constants/index.js.map +1 -0
- package/dist/editor/context/SharedHistoryContext.d.ts +11 -0
- package/dist/editor/context/SharedHistoryContext.js +17 -0
- package/dist/editor/context/SharedHistoryContext.js.map +1 -0
- package/dist/editor/context/ToolbarContext.d.ts +56 -0
- package/dist/editor/context/ToolbarContext.js +67 -0
- package/dist/editor/context/ToolbarContext.js.map +1 -0
- package/dist/editor/context/index.d.ts +2 -0
- package/dist/editor/context/index.js +19 -0
- package/dist/editor/context/index.js.map +1 -0
- package/dist/editor/editorStyles.d.ts +1 -0
- package/dist/editor/editorStyles.js +1273 -0
- package/dist/editor/editorStyles.js.map +1 -0
- package/dist/editor/hooks/index.d.ts +1 -0
- package/dist/editor/hooks/index.js +18 -0
- package/dist/editor/hooks/index.js.map +1 -0
- package/dist/editor/hooks/useModal.d.ts +2 -0
- package/dist/editor/hooks/useModal.js +29 -0
- package/dist/editor/hooks/useModal.js.map +1 -0
- package/dist/editor/images/icons/3-columns.d.ts +1 -0
- package/dist/editor/images/icons/3-columns.js +9 -0
- package/dist/editor/images/icons/3-columns.js.map +1 -0
- package/dist/editor/images/icons/add-sign.d.ts +1 -0
- package/dist/editor/images/icons/add-sign.js +9 -0
- package/dist/editor/images/icons/add-sign.js.map +1 -0
- package/dist/editor/images/icons/arrow-clockwise.d.ts +1 -0
- package/dist/editor/images/icons/arrow-clockwise.js +9 -0
- package/dist/editor/images/icons/arrow-clockwise.js.map +1 -0
- package/dist/editor/images/icons/arrow-counterclockwise.d.ts +1 -0
- package/dist/editor/images/icons/arrow-counterclockwise.js +9 -0
- package/dist/editor/images/icons/arrow-counterclockwise.js.map +1 -0
- package/dist/editor/images/icons/bg-color.d.ts +1 -0
- package/dist/editor/images/icons/bg-color.js +9 -0
- package/dist/editor/images/icons/bg-color.js.map +1 -0
- package/dist/editor/images/icons/camera.d.ts +1 -0
- package/dist/editor/images/icons/camera.js +9 -0
- package/dist/editor/images/icons/camera.js.map +1 -0
- package/dist/editor/images/icons/card-checklist.d.ts +1 -0
- package/dist/editor/images/icons/card-checklist.js +9 -0
- package/dist/editor/images/icons/card-checklist.js.map +1 -0
- package/dist/editor/images/icons/caret-right-fill.d.ts +1 -0
- package/dist/editor/images/icons/caret-right-fill.js +9 -0
- package/dist/editor/images/icons/caret-right-fill.js.map +1 -0
- package/dist/editor/images/icons/chat-left-text.d.ts +1 -0
- package/dist/editor/images/icons/chat-left-text.js +9 -0
- package/dist/editor/images/icons/chat-left-text.js.map +1 -0
- package/dist/editor/images/icons/chat-right-dots.d.ts +1 -0
- package/dist/editor/images/icons/chat-right-dots.js +9 -0
- package/dist/editor/images/icons/chat-right-dots.js.map +1 -0
- package/dist/editor/images/icons/chat-right-text.d.ts +1 -0
- package/dist/editor/images/icons/chat-right-text.js +9 -0
- package/dist/editor/images/icons/chat-right-text.js.map +1 -0
- package/dist/editor/images/icons/chat-right.d.ts +1 -0
- package/dist/editor/images/icons/chat-right.js +9 -0
- package/dist/editor/images/icons/chat-right.js.map +1 -0
- package/dist/editor/images/icons/chat-square-quote.d.ts +1 -0
- package/dist/editor/images/icons/chat-square-quote.js +9 -0
- package/dist/editor/images/icons/chat-square-quote.js.map +1 -0
- package/dist/editor/images/icons/chevron-down.d.ts +1 -0
- package/dist/editor/images/icons/chevron-down.js +9 -0
- package/dist/editor/images/icons/chevron-down.js.map +1 -0
- package/dist/editor/images/icons/clipboard.d.ts +1 -0
- package/dist/editor/images/icons/clipboard.js +9 -0
- package/dist/editor/images/icons/clipboard.js.map +1 -0
- package/dist/editor/images/icons/close.d.ts +1 -0
- package/dist/editor/images/icons/close.js +9 -0
- package/dist/editor/images/icons/close.js.map +1 -0
- package/dist/editor/images/icons/code.d.ts +1 -0
- package/dist/editor/images/icons/code.js +9 -0
- package/dist/editor/images/icons/code.js.map +1 -0
- package/dist/editor/images/icons/comments.d.ts +1 -0
- package/dist/editor/images/icons/comments.js +9 -0
- package/dist/editor/images/icons/comments.js.map +1 -0
- package/dist/editor/images/icons/copy.d.ts +1 -0
- package/dist/editor/images/icons/copy.js +9 -0
- package/dist/editor/images/icons/copy.js.map +1 -0
- package/dist/editor/images/icons/diagram-2.d.ts +1 -0
- package/dist/editor/images/icons/diagram-2.js +9 -0
- package/dist/editor/images/icons/diagram-2.js.map +1 -0
- package/dist/editor/images/icons/download.d.ts +1 -0
- package/dist/editor/images/icons/download.js +9 -0
- package/dist/editor/images/icons/download.js.map +1 -0
- package/dist/editor/images/icons/draggable-block-menu.d.ts +1 -0
- package/dist/editor/images/icons/draggable-block-menu.js +9 -0
- package/dist/editor/images/icons/draggable-block-menu.js.map +1 -0
- package/dist/editor/images/icons/dropdown-more.d.ts +1 -0
- package/dist/editor/images/icons/dropdown-more.js +9 -0
- package/dist/editor/images/icons/dropdown-more.js.map +1 -0
- package/dist/editor/images/icons/figma.d.ts +1 -0
- package/dist/editor/images/icons/figma.js +9 -0
- package/dist/editor/images/icons/figma.js.map +1 -0
- package/dist/editor/images/icons/file-earmark-text.d.ts +1 -0
- package/dist/editor/images/icons/file-earmark-text.js +9 -0
- package/dist/editor/images/icons/file-earmark-text.js.map +1 -0
- package/dist/editor/images/icons/file-image.d.ts +1 -0
- package/dist/editor/images/icons/file-image.js +9 -0
- package/dist/editor/images/icons/file-image.js.map +1 -0
- package/dist/editor/images/icons/filetype-gif.d.ts +1 -0
- package/dist/editor/images/icons/filetype-gif.js +9 -0
- package/dist/editor/images/icons/filetype-gif.js.map +1 -0
- package/dist/editor/images/icons/font-color.d.ts +1 -0
- package/dist/editor/images/icons/font-color.js +9 -0
- package/dist/editor/images/icons/font-color.js.map +1 -0
- package/dist/editor/images/icons/font-family.d.ts +1 -0
- package/dist/editor/images/icons/font-family.js +9 -0
- package/dist/editor/images/icons/font-family.js.map +1 -0
- package/dist/editor/images/icons/format-clear.d.ts +1 -0
- package/dist/editor/images/icons/format-clear.js +9 -0
- package/dist/editor/images/icons/format-clear.js.map +1 -0
- package/dist/editor/images/icons/highlighter.d.ts +1 -0
- package/dist/editor/images/icons/highlighter.js +9 -0
- package/dist/editor/images/icons/highlighter.js.map +1 -0
- package/dist/editor/images/icons/horizontal-rule.d.ts +1 -0
- package/dist/editor/images/icons/horizontal-rule.js +9 -0
- package/dist/editor/images/icons/horizontal-rule.js.map +1 -0
- package/dist/editor/images/icons/indent.d.ts +1 -0
- package/dist/editor/images/icons/indent.js +9 -0
- package/dist/editor/images/icons/indent.js.map +1 -0
- package/dist/editor/images/icons/index.d.ts +88 -0
- package/dist/editor/images/icons/index.js +105 -0
- package/dist/editor/images/icons/index.js.map +1 -0
- package/dist/editor/images/icons/journal-text.d.ts +1 -0
- package/dist/editor/images/icons/journal-text.js +9 -0
- package/dist/editor/images/icons/journal-text.js.map +1 -0
- package/dist/editor/images/icons/justify.d.ts +1 -0
- package/dist/editor/images/icons/justify.js +9 -0
- package/dist/editor/images/icons/justify.js.map +1 -0
- package/dist/editor/images/icons/link.d.ts +1 -0
- package/dist/editor/images/icons/link.js +9 -0
- package/dist/editor/images/icons/link.js.map +1 -0
- package/dist/editor/images/icons/list-ol.d.ts +1 -0
- package/dist/editor/images/icons/list-ol.js +9 -0
- package/dist/editor/images/icons/list-ol.js.map +1 -0
- package/dist/editor/images/icons/list-ul.d.ts +1 -0
- package/dist/editor/images/icons/list-ul.js +9 -0
- package/dist/editor/images/icons/list-ul.js.map +1 -0
- package/dist/editor/images/icons/lock-fill.d.ts +1 -0
- package/dist/editor/images/icons/lock-fill.js +9 -0
- package/dist/editor/images/icons/lock-fill.js.map +1 -0
- package/dist/editor/images/icons/lock.d.ts +1 -0
- package/dist/editor/images/icons/lock.js +9 -0
- package/dist/editor/images/icons/lock.js.map +1 -0
- package/dist/editor/images/icons/markdown.d.ts +1 -0
- package/dist/editor/images/icons/markdown.js +9 -0
- package/dist/editor/images/icons/markdown.js.map +1 -0
- package/dist/editor/images/icons/mic.d.ts +1 -0
- package/dist/editor/images/icons/mic.js +9 -0
- package/dist/editor/images/icons/mic.js.map +1 -0
- package/dist/editor/images/icons/minus-sign.d.ts +1 -0
- package/dist/editor/images/icons/minus-sign.js +9 -0
- package/dist/editor/images/icons/minus-sign.js.map +1 -0
- package/dist/editor/images/icons/outdent.d.ts +1 -0
- package/dist/editor/images/icons/outdent.js +9 -0
- package/dist/editor/images/icons/outdent.js.map +1 -0
- package/dist/editor/images/icons/paint-bucket.d.ts +1 -0
- package/dist/editor/images/icons/paint-bucket.js +9 -0
- package/dist/editor/images/icons/paint-bucket.js.map +1 -0
- package/dist/editor/images/icons/palette.d.ts +1 -0
- package/dist/editor/images/icons/palette.js +9 -0
- package/dist/editor/images/icons/palette.js.map +1 -0
- package/dist/editor/images/icons/pencil-fill.d.ts +1 -0
- package/dist/editor/images/icons/pencil-fill.js +9 -0
- package/dist/editor/images/icons/pencil-fill.js.map +1 -0
- package/dist/editor/images/icons/plug-fill.d.ts +1 -0
- package/dist/editor/images/icons/plug-fill.js +9 -0
- package/dist/editor/images/icons/plug-fill.js.map +1 -0
- package/dist/editor/images/icons/plug.d.ts +1 -0
- package/dist/editor/images/icons/plug.js +9 -0
- package/dist/editor/images/icons/plug.js.map +1 -0
- package/dist/editor/images/icons/plus-slash-minus.d.ts +1 -0
- package/dist/editor/images/icons/plus-slash-minus.js +9 -0
- package/dist/editor/images/icons/plus-slash-minus.js.map +1 -0
- package/dist/editor/images/icons/plus.d.ts +1 -0
- package/dist/editor/images/icons/plus.js +9 -0
- package/dist/editor/images/icons/plus.js.map +1 -0
- package/dist/editor/images/icons/prettier-error.d.ts +1 -0
- package/dist/editor/images/icons/prettier-error.js +9 -0
- package/dist/editor/images/icons/prettier-error.js.map +1 -0
- package/dist/editor/images/icons/prettier.d.ts +1 -0
- package/dist/editor/images/icons/prettier.js +9 -0
- package/dist/editor/images/icons/prettier.js.map +1 -0
- package/dist/editor/images/icons/scissors.d.ts +1 -0
- package/dist/editor/images/icons/scissors.js +9 -0
- package/dist/editor/images/icons/scissors.js.map +1 -0
- package/dist/editor/images/icons/send.d.ts +1 -0
- package/dist/editor/images/icons/send.js +9 -0
- package/dist/editor/images/icons/send.js.map +1 -0
- package/dist/editor/images/icons/square-check.d.ts +1 -0
- package/dist/editor/images/icons/square-check.js +9 -0
- package/dist/editor/images/icons/square-check.js.map +1 -0
- package/dist/editor/images/icons/sticky.d.ts +1 -0
- package/dist/editor/images/icons/sticky.js +9 -0
- package/dist/editor/images/icons/sticky.js.map +1 -0
- package/dist/editor/images/icons/success-alt.d.ts +1 -0
- package/dist/editor/images/icons/success-alt.js +9 -0
- package/dist/editor/images/icons/success-alt.js.map +1 -0
- package/dist/editor/images/icons/success.d.ts +1 -0
- package/dist/editor/images/icons/success.js +9 -0
- package/dist/editor/images/icons/success.js.map +1 -0
- package/dist/editor/images/icons/table.d.ts +1 -0
- package/dist/editor/images/icons/table.js +9 -0
- package/dist/editor/images/icons/table.js.map +1 -0
- package/dist/editor/images/icons/text-center.d.ts +1 -0
- package/dist/editor/images/icons/text-center.js +9 -0
- package/dist/editor/images/icons/text-center.js.map +1 -0
- package/dist/editor/images/icons/text-left.d.ts +1 -0
- package/dist/editor/images/icons/text-left.js +9 -0
- package/dist/editor/images/icons/text-left.js.map +1 -0
- package/dist/editor/images/icons/text-paragraph.d.ts +1 -0
- package/dist/editor/images/icons/text-paragraph.js +9 -0
- package/dist/editor/images/icons/text-paragraph.js.map +1 -0
- package/dist/editor/images/icons/text-right.d.ts +1 -0
- package/dist/editor/images/icons/text-right.js +9 -0
- package/dist/editor/images/icons/text-right.js.map +1 -0
- package/dist/editor/images/icons/trash.d.ts +1 -0
- package/dist/editor/images/icons/trash.js +9 -0
- package/dist/editor/images/icons/trash.js.map +1 -0
- package/dist/editor/images/icons/trash3.d.ts +1 -0
- package/dist/editor/images/icons/trash3.js +9 -0
- package/dist/editor/images/icons/trash3.js.map +1 -0
- package/dist/editor/images/icons/type-bold.d.ts +1 -0
- package/dist/editor/images/icons/type-bold.js +9 -0
- package/dist/editor/images/icons/type-bold.js.map +1 -0
- package/dist/editor/images/icons/type-capitalize.d.ts +1 -0
- package/dist/editor/images/icons/type-capitalize.js +9 -0
- package/dist/editor/images/icons/type-capitalize.js.map +1 -0
- package/dist/editor/images/icons/type-h1.d.ts +1 -0
- package/dist/editor/images/icons/type-h1.js +9 -0
- package/dist/editor/images/icons/type-h1.js.map +1 -0
- package/dist/editor/images/icons/type-h2.d.ts +1 -0
- package/dist/editor/images/icons/type-h2.js +9 -0
- package/dist/editor/images/icons/type-h2.js.map +1 -0
- package/dist/editor/images/icons/type-h3.d.ts +1 -0
- package/dist/editor/images/icons/type-h3.js +9 -0
- package/dist/editor/images/icons/type-h3.js.map +1 -0
- package/dist/editor/images/icons/type-h4.d.ts +1 -0
- package/dist/editor/images/icons/type-h4.js +9 -0
- package/dist/editor/images/icons/type-h4.js.map +1 -0
- package/dist/editor/images/icons/type-h5.d.ts +1 -0
- package/dist/editor/images/icons/type-h5.js +9 -0
- package/dist/editor/images/icons/type-h5.js.map +1 -0
- package/dist/editor/images/icons/type-h6.d.ts +1 -0
- package/dist/editor/images/icons/type-h6.js +9 -0
- package/dist/editor/images/icons/type-h6.js.map +1 -0
- package/dist/editor/images/icons/type-italic.d.ts +1 -0
- package/dist/editor/images/icons/type-italic.js +9 -0
- package/dist/editor/images/icons/type-italic.js.map +1 -0
- package/dist/editor/images/icons/type-lowercase.d.ts +1 -0
- package/dist/editor/images/icons/type-lowercase.js +9 -0
- package/dist/editor/images/icons/type-lowercase.js.map +1 -0
- package/dist/editor/images/icons/type-strikethrough.d.ts +1 -0
- package/dist/editor/images/icons/type-strikethrough.js +9 -0
- package/dist/editor/images/icons/type-strikethrough.js.map +1 -0
- package/dist/editor/images/icons/type-subscript.d.ts +1 -0
- package/dist/editor/images/icons/type-subscript.js +9 -0
- package/dist/editor/images/icons/type-subscript.js.map +1 -0
- package/dist/editor/images/icons/type-superscript.d.ts +1 -0
- package/dist/editor/images/icons/type-superscript.js +9 -0
- package/dist/editor/images/icons/type-superscript.js.map +1 -0
- package/dist/editor/images/icons/type-underline.d.ts +1 -0
- package/dist/editor/images/icons/type-underline.js +9 -0
- package/dist/editor/images/icons/type-underline.js.map +1 -0
- package/dist/editor/images/icons/type-uppercase.d.ts +1 -0
- package/dist/editor/images/icons/type-uppercase.js +9 -0
- package/dist/editor/images/icons/type-uppercase.js.map +1 -0
- package/dist/editor/images/icons/upload.d.ts +1 -0
- package/dist/editor/images/icons/upload.js +9 -0
- package/dist/editor/images/icons/upload.js.map +1 -0
- package/dist/editor/images/icons/user.d.ts +1 -0
- package/dist/editor/images/icons/user.js +9 -0
- package/dist/editor/images/icons/user.js.map +1 -0
- package/dist/editor/images/icons/vertical-bottom.d.ts +1 -0
- package/dist/editor/images/icons/vertical-bottom.js +9 -0
- package/dist/editor/images/icons/vertical-bottom.js.map +1 -0
- package/dist/editor/images/icons/vertical-middle.d.ts +1 -0
- package/dist/editor/images/icons/vertical-middle.js +9 -0
- package/dist/editor/images/icons/vertical-middle.js.map +1 -0
- package/dist/editor/images/icons/vertical-top.d.ts +1 -0
- package/dist/editor/images/icons/vertical-top.js +9 -0
- package/dist/editor/images/icons/vertical-top.js.map +1 -0
- package/dist/editor/images/icons/x.d.ts +1 -0
- package/dist/editor/images/icons/x.js +9 -0
- package/dist/editor/images/icons/x.js.map +1 -0
- package/dist/editor/images/icons/youtube.d.ts +1 -0
- package/dist/editor/images/icons/youtube.js +9 -0
- package/dist/editor/images/icons/youtube.js.map +1 -0
- package/dist/editor/index.d.ts +1 -0
- package/dist/editor/index.js +6 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/editor/nodes/Image/ImageComponent.d.ts +15 -0
- package/dist/editor/nodes/Image/ImageComponent.js +248 -0
- package/dist/editor/nodes/Image/ImageComponent.js.map +1 -0
- package/dist/editor/nodes/Image/ImageNode.d.ts +50 -0
- package/dist/editor/nodes/Image/ImageNode.js +128 -0
- package/dist/editor/nodes/Image/ImageNode.js.map +1 -0
- package/dist/editor/nodes/Image/imageNodeStyles.d.ts +1 -0
- package/dist/editor/nodes/Image/imageNodeStyles.js +41 -0
- package/dist/editor/nodes/Image/imageNodeStyles.js.map +1 -0
- package/dist/editor/nodes/Image/index.d.ts +3 -0
- package/dist/editor/nodes/Image/index.js +10 -0
- package/dist/editor/nodes/Image/index.js.map +1 -0
- package/dist/editor/nodes/InlineImage/InlineImageComponent.d.ts +18 -0
- package/dist/editor/nodes/InlineImage/InlineImageComponent.js +160 -0
- package/dist/editor/nodes/InlineImage/InlineImageComponent.js.map +1 -0
- package/dist/editor/nodes/InlineImage/InlineImageNode.d.ts +59 -0
- package/dist/editor/nodes/InlineImage/InlineImageNode.js +149 -0
- package/dist/editor/nodes/InlineImage/InlineImageNode.js.map +1 -0
- package/dist/editor/nodes/InlineImage/index.d.ts +3 -0
- package/dist/editor/nodes/InlineImage/index.js +10 -0
- package/dist/editor/nodes/InlineImage/index.js.map +1 -0
- package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.d.ts +1 -0
- package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.js +90 -0
- package/dist/editor/nodes/InlineImage/inlineImageNodeStyles.js.map +1 -0
- package/dist/editor/nodes/PlaygroundNodes.d.ts +2 -0
- package/dist/editor/nodes/PlaygroundNodes.js +32 -0
- package/dist/editor/nodes/PlaygroundNodes.js.map +1 -0
- package/dist/editor/nodes/Video/VideoComponent.d.ts +9 -0
- package/dist/editor/nodes/Video/VideoComponent.js +15 -0
- package/dist/editor/nodes/Video/VideoComponent.js.map +1 -0
- package/dist/editor/nodes/Video/VideoNode.d.ts +34 -0
- package/dist/editor/nodes/Video/VideoNode.js +129 -0
- package/dist/editor/nodes/Video/VideoNode.js.map +1 -0
- package/dist/editor/nodes/Video/index.d.ts +3 -0
- package/dist/editor/nodes/Video/index.js +10 -0
- package/dist/editor/nodes/Video/index.js.map +1 -0
- package/dist/editor/nodes/Video/videoNodeStyles.d.ts +1 -0
- package/dist/editor/nodes/Video/videoNodeStyles.js +44 -0
- package/dist/editor/nodes/Video/videoNodeStyles.js.map +1 -0
- package/dist/editor/nodes/index.d.ts +4 -0
- package/dist/editor/nodes/index.js +21 -0
- package/dist/editor/nodes/index.js.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.d.ts +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.js +68 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/codeActionMenuPluginStyles.js.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +7 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +48 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +9 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +136 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.d.ts +2 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.js +19 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.js.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/index.d.ts +12 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/index.js +118 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/index.js.map +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/utils.js +15 -0
- package/dist/editor/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
- package/dist/editor/plugins/CodeHighlightPlugin/index.d.ts +2 -0
- package/dist/editor/plugins/CodeHighlightPlugin/index.js +15 -0
- package/dist/editor/plugins/CodeHighlightPlugin/index.js.map +1 -0
- package/dist/editor/plugins/ComponentPickerPlugin/index.d.ts +9 -0
- package/dist/editor/plugins/ComponentPickerPlugin/index.js +217 -0
- package/dist/editor/plugins/ComponentPickerPlugin/index.js.map +1 -0
- package/dist/editor/plugins/ContextMenuPlugin/index.d.ts +18 -0
- package/dist/editor/plugins/ContextMenuPlugin/index.js +190 -0
- package/dist/editor/plugins/ContextMenuPlugin/index.js.map +1 -0
- package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.d.ts +1 -0
- package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.js +48 -0
- package/dist/editor/plugins/FloatingLinkEditorPlugin/floatLinkEditorPluginStyles.js.map +1 -0
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.d.ts +14 -0
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.js +275 -0
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.d.ts +1 -0
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.js +141 -0
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/floatTextFormatToolbarPluginStyles.js.map +1 -0
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +15 -0
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.js +214 -0
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
- package/dist/editor/plugins/ImagesPlugin/index.d.ts +28 -0
- package/dist/editor/plugins/ImagesPlugin/index.js +175 -0
- package/dist/editor/plugins/ImagesPlugin/index.js.map +1 -0
- package/dist/editor/plugins/LinkPlugin/index.d.ts +9 -0
- package/dist/editor/plugins/LinkPlugin/index.js +14 -0
- package/dist/editor/plugins/LinkPlugin/index.js.map +1 -0
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.d.ts +9 -0
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.js +11 -0
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
- package/dist/editor/plugins/MarkdownTransformers/index.d.ts +5 -0
- package/dist/editor/plugins/MarkdownTransformers/index.js +181 -0
- package/dist/editor/plugins/MarkdownTransformers/index.js.map +1 -0
- package/dist/editor/plugins/MaxLengthPlugin/index.d.ts +10 -0
- package/dist/editor/plugins/MaxLengthPlugin/index.js +48 -0
- package/dist/editor/plugins/MaxLengthPlugin/index.js.map +1 -0
- package/dist/editor/plugins/ShortcutsPlugin/index.d.ts +13 -0
- package/dist/editor/plugins/ShortcutsPlugin/index.js +102 -0
- package/dist/editor/plugins/ShortcutsPlugin/index.js.map +1 -0
- package/dist/editor/plugins/ShortcutsPlugin/shortcuts.d.ts +56 -0
- package/dist/editor/plugins/ShortcutsPlugin/shortcuts.js +145 -0
- package/dist/editor/plugins/ShortcutsPlugin/shortcuts.js.map +1 -0
- package/dist/editor/plugins/TabFocusPlugin/index.d.ts +8 -0
- package/dist/editor/plugins/TabFocusPlugin/index.js +46 -0
- package/dist/editor/plugins/TabFocusPlugin/index.js.map +1 -0
- package/dist/editor/plugins/TableActionMenuPlugin/index.d.ts +12 -0
- package/dist/editor/plugins/TableActionMenuPlugin/index.js +371 -0
- package/dist/editor/plugins/TableActionMenuPlugin/index.js.map +1 -0
- package/dist/editor/plugins/TableCellResizer/index.d.ts +3 -0
- package/dist/editor/plugins/TableCellResizer/index.js +301 -0
- package/dist/editor/plugins/TableCellResizer/index.js.map +1 -0
- package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.d.ts +1 -0
- package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.js +18 -0
- package/dist/editor/plugins/TableCellResizer/tableCellResizerPluginStyles.js.map +1 -0
- package/dist/editor/plugins/TableHoverActionsPlugin/index.d.ts +11 -0
- package/dist/editor/plugins/TableHoverActionsPlugin/index.js +193 -0
- package/dist/editor/plugins/TableHoverActionsPlugin/index.js.map +1 -0
- package/dist/editor/plugins/TablePlugin.d.ts +38 -0
- package/dist/editor/plugins/TablePlugin.js +77 -0
- package/dist/editor/plugins/TablePlugin.js.map +1 -0
- package/dist/editor/plugins/ToolbarPlugin/index.d.ts +19 -0
- package/dist/editor/plugins/ToolbarPlugin/index.js +199 -0
- package/dist/editor/plugins/ToolbarPlugin/index.js.map +1 -0
- package/dist/editor/plugins/ToolbarPlugin/utils.d.ts +22 -0
- package/dist/editor/plugins/ToolbarPlugin/utils.js +224 -0
- package/dist/editor/plugins/ToolbarPlugin/utils.js.map +1 -0
- package/dist/editor/plugins/VideoPlugin/index.d.ts +7 -0
- package/dist/editor/plugins/VideoPlugin/index.js +61 -0
- package/dist/editor/plugins/VideoPlugin/index.js.map +1 -0
- package/dist/editor/plugins/index.d.ts +19 -0
- package/dist/editor/plugins/index.js +36 -0
- package/dist/editor/plugins/index.js.map +1 -0
- package/dist/editor/themes/index.d.ts +1 -0
- package/dist/editor/themes/index.js +6 -0
- package/dist/editor/themes/index.js.map +1 -0
- package/dist/editor/themes/playgroundEditorTheme.d.ts +2 -0
- package/dist/editor/themes/playgroundEditorTheme.js +116 -0
- package/dist/editor/themes/playgroundEditorTheme.js.map +1 -0
- package/dist/editor/themes/playgroundEditorThemeStyles.d.ts +1 -0
- package/dist/editor/themes/playgroundEditorThemeStyles.js +702 -0
- package/dist/editor/themes/playgroundEditorThemeStyles.js.map +1 -0
- package/dist/editor/types/index.d.ts +19 -0
- package/dist/editor/types/index.js +3 -0
- package/dist/editor/types/index.js.map +1 -0
- package/dist/editor/ui/BlockFormatDropdown/index.d.ts +18 -0
- package/dist/editor/ui/BlockFormatDropdown/index.js +73 -0
- package/dist/editor/ui/BlockFormatDropdown/index.js.map +1 -0
- package/dist/editor/ui/BoldButton/index.d.ts +7 -0
- package/dist/editor/ui/BoldButton/index.js +14 -0
- package/dist/editor/ui/BoldButton/index.js.map +1 -0
- package/dist/editor/ui/Button.d.ts +12 -0
- package/dist/editor/ui/Button.js +38 -0
- package/dist/editor/ui/Button.js.map +1 -0
- package/dist/editor/ui/CenterAlignButton/index.d.ts +7 -0
- package/dist/editor/ui/CenterAlignButton/index.js +14 -0
- package/dist/editor/ui/CenterAlignButton/index.js.map +1 -0
- package/dist/editor/ui/ClearEditorButton/index.d.ts +7 -0
- package/dist/editor/ui/ClearEditorButton/index.js +10 -0
- package/dist/editor/ui/ClearEditorButton/index.js.map +1 -0
- package/dist/editor/ui/ClearFormattingButton/index.d.ts +7 -0
- package/dist/editor/ui/ClearFormattingButton/index.js +10 -0
- package/dist/editor/ui/ClearFormattingButton/index.js.map +1 -0
- package/dist/editor/ui/CodeButton/index.d.ts +7 -0
- package/dist/editor/ui/CodeButton/index.js +14 -0
- package/dist/editor/ui/CodeButton/index.js.map +1 -0
- package/dist/editor/ui/CodeLanguageDropdown/index.d.ts +10 -0
- package/dist/editor/ui/CodeLanguageDropdown/index.js +26 -0
- package/dist/editor/ui/CodeLanguageDropdown/index.js.map +1 -0
- package/dist/editor/ui/ContentEditable.d.ts +9 -0
- package/dist/editor/ui/ContentEditable.js +63 -0
- package/dist/editor/ui/ContentEditable.js.map +1 -0
- package/dist/editor/ui/Dialog.d.ts +10 -0
- package/dist/editor/ui/Dialog.js +33 -0
- package/dist/editor/ui/Dialog.js.map +1 -0
- package/dist/editor/ui/Divider/index.d.ts +2 -0
- package/dist/editor/ui/Divider/index.js +9 -0
- package/dist/editor/ui/Divider/index.js.map +1 -0
- package/dist/editor/ui/DropDown.d.ts +16 -0
- package/dist/editor/ui/DropDown.js +141 -0
- package/dist/editor/ui/DropDown.js.map +1 -0
- package/dist/editor/ui/FlashMessage.d.ts +6 -0
- package/dist/editor/ui/FlashMessage.js +32 -0
- package/dist/editor/ui/FlashMessage.js.map +1 -0
- package/dist/editor/ui/HorizontalRuleButton/index.d.ts +3 -0
- package/dist/editor/ui/HorizontalRuleButton/index.js +13 -0
- package/dist/editor/ui/HorizontalRuleButton/index.js.map +1 -0
- package/dist/editor/ui/ImageButton/index.d.ts +8 -0
- package/dist/editor/ui/ImageButton/index.js +13 -0
- package/dist/editor/ui/ImageButton/index.js.map +1 -0
- package/dist/editor/ui/ImageResizer.d.ts +17 -0
- package/dist/editor/ui/ImageResizer.js +174 -0
- package/dist/editor/ui/ImageResizer.js.map +1 -0
- package/dist/editor/ui/ItalicButton/index.d.ts +7 -0
- package/dist/editor/ui/ItalicButton/index.js +14 -0
- package/dist/editor/ui/ItalicButton/index.js.map +1 -0
- package/dist/editor/ui/LeftAlignButton/index.d.ts +7 -0
- package/dist/editor/ui/LeftAlignButton/index.js +14 -0
- package/dist/editor/ui/LeftAlignButton/index.js.map +1 -0
- package/dist/editor/ui/LinkButton/index.d.ts +8 -0
- package/dist/editor/ui/LinkButton/index.js +11 -0
- package/dist/editor/ui/LinkButton/index.js.map +1 -0
- package/dist/editor/ui/Modal.d.ts +9 -0
- package/dist/editor/ui/Modal.js +110 -0
- package/dist/editor/ui/Modal.js.map +1 -0
- package/dist/editor/ui/RedoButton/index.d.ts +3 -0
- package/dist/editor/ui/RedoButton/index.js +14 -0
- package/dist/editor/ui/RedoButton/index.js.map +1 -0
- package/dist/editor/ui/RightAlignButton/index.d.ts +7 -0
- package/dist/editor/ui/RightAlignButton/index.js +14 -0
- package/dist/editor/ui/RightAlignButton/index.js.map +1 -0
- package/dist/editor/ui/Select.d.ts +8 -0
- package/dist/editor/ui/Select.js +52 -0
- package/dist/editor/ui/Select.js.map +1 -0
- package/dist/editor/ui/StrikethroughButton/index.d.ts +7 -0
- package/dist/editor/ui/StrikethroughButton/index.js +14 -0
- package/dist/editor/ui/StrikethroughButton/index.js.map +1 -0
- package/dist/editor/ui/TableButton/index.d.ts +8 -0
- package/dist/editor/ui/TableButton/index.js +13 -0
- package/dist/editor/ui/TableButton/index.js.map +1 -0
- package/dist/editor/ui/TextInput.d.ts +13 -0
- package/dist/editor/ui/TextInput.js +36 -0
- package/dist/editor/ui/TextInput.js.map +1 -0
- package/dist/editor/ui/UnderlineButton/index.d.ts +7 -0
- package/dist/editor/ui/UnderlineButton/index.js +14 -0
- package/dist/editor/ui/UnderlineButton/index.js.map +1 -0
- package/dist/editor/ui/UndoButton/index.d.ts +3 -0
- package/dist/editor/ui/UndoButton/index.js +14 -0
- package/dist/editor/ui/UndoButton/index.js.map +1 -0
- package/dist/editor/ui/VideoButton/index.d.ts +8 -0
- package/dist/editor/ui/VideoButton/index.js +13 -0
- package/dist/editor/ui/VideoButton/index.js.map +1 -0
- package/dist/editor/ui/index.d.ts +30 -0
- package/dist/editor/ui/index.js +74 -0
- package/dist/editor/ui/index.js.map +1 -0
- package/dist/editor/utils/dropDownActiveClass.d.ts +1 -0
- package/dist/editor/utils/dropDownActiveClass.js +12 -0
- package/dist/editor/utils/dropDownActiveClass.js.map +1 -0
- package/dist/editor/utils/getDOMRangeRect.d.ts +1 -0
- package/dist/editor/utils/getDOMRangeRect.js +19 -0
- package/dist/editor/utils/getDOMRangeRect.js.map +1 -0
- package/dist/editor/utils/getSelectedNode.d.ts +2 -0
- package/dist/editor/utils/getSelectedNode.js +21 -0
- package/dist/editor/utils/getSelectedNode.js.map +1 -0
- package/dist/editor/utils/getThemeSelector.d.ts +2 -0
- package/dist/editor/utils/getThemeSelector.js +15 -0
- package/dist/editor/utils/getThemeSelector.js.map +1 -0
- package/dist/editor/utils/index.d.ts +9 -0
- package/dist/editor/utils/index.js +26 -0
- package/dist/editor/utils/index.js.map +1 -0
- package/dist/editor/utils/joinClasses.d.ts +1 -0
- package/dist/editor/utils/joinClasses.js +8 -0
- package/dist/editor/utils/joinClasses.js.map +1 -0
- package/dist/editor/utils/parseVideoUrl.d.ts +15 -0
- package/dist/editor/utils/parseVideoUrl.js +115 -0
- package/dist/editor/utils/parseVideoUrl.js.map +1 -0
- package/dist/editor/utils/setFloatingElemPosition.d.ts +1 -0
- package/dist/editor/utils/setFloatingElemPosition.js +47 -0
- package/dist/editor/utils/setFloatingElemPosition.js.map +1 -0
- package/dist/editor/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
- package/dist/editor/utils/setFloatingElemPositionForLinkEditor.js +29 -0
- package/dist/editor/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
- package/dist/editor/utils/url.d.ts +2 -0
- package/dist/editor/utils/url.js +25 -0
- package/dist/editor/utils/url.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -0
- package/eslint.config.mjs +27 -0
- package/package.json +110 -0
- package/tsconfig.eslint.json +10 -0
|
@@ -0,0 +1,702 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.playgroundEditorThemeStyles = void 0;
|
|
4
|
+
const material_1 = require("@mui/material");
|
|
5
|
+
exports.playgroundEditorThemeStyles = (0, material_1.css) `
|
|
6
|
+
.PlaygroundEditorTheme__ltr {
|
|
7
|
+
text-align: left;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.PlaygroundEditorTheme__rtl {
|
|
11
|
+
text-align: right;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.PlaygroundEditorTheme__paragraph {
|
|
15
|
+
margin: 0;
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.PlaygroundEditorTheme__quote {
|
|
20
|
+
margin: 0;
|
|
21
|
+
margin-left: 20px;
|
|
22
|
+
margin-bottom: 10px;
|
|
23
|
+
font-size: 15px;
|
|
24
|
+
color: rgb(101, 103, 107);
|
|
25
|
+
border-left-color: rgb(206, 208, 212);
|
|
26
|
+
border-left-width: 4px;
|
|
27
|
+
border-left-style: solid;
|
|
28
|
+
padding-left: 16px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.PlaygroundEditorTheme__h1 {
|
|
32
|
+
font-size: 24px;
|
|
33
|
+
color: rgb(5, 5, 5);
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.PlaygroundEditorTheme__h2 {
|
|
39
|
+
font-size: 15px;
|
|
40
|
+
color: rgb(101, 103, 107);
|
|
41
|
+
font-weight: 700;
|
|
42
|
+
margin: 0;
|
|
43
|
+
text-transform: uppercase;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.PlaygroundEditorTheme__h3 {
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
margin: 0;
|
|
49
|
+
text-transform: uppercase;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.PlaygroundEditorTheme__indent {
|
|
53
|
+
--lexical-indent-base-value: 40px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.PlaygroundEditorTheme__textBold {
|
|
57
|
+
font-weight: bold;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.PlaygroundEditorTheme__paragraph mark {
|
|
61
|
+
background-color: unset;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.PlaygroundEditorTheme__textHighlight {
|
|
65
|
+
background: rgba(255, 212, 0, 0.14);
|
|
66
|
+
border-bottom: 2px solid rgba(255, 212, 0, 0.3);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.PlaygroundEditorTheme__textItalic {
|
|
70
|
+
font-style: italic;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.PlaygroundEditorTheme__textUnderline {
|
|
74
|
+
text-decoration: underline;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.PlaygroundEditorTheme__textStrikethrough {
|
|
78
|
+
text-decoration: line-through;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.PlaygroundEditorTheme__textUnderlineStrikethrough {
|
|
82
|
+
text-decoration: underline line-through;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.PlaygroundEditorTheme__tabNode {
|
|
86
|
+
position: relative;
|
|
87
|
+
text-decoration: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.PlaygroundEditorTheme__tabNode.PlaygroundEditorTheme__textUnderline::after {
|
|
91
|
+
content: "";
|
|
92
|
+
position: absolute;
|
|
93
|
+
left: 0;
|
|
94
|
+
right: 0;
|
|
95
|
+
bottom: 0.15em;
|
|
96
|
+
border-bottom: 0.1em solid currentColor;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.PlaygroundEditorTheme__tabNode.PlaygroundEditorTheme__textStrikethrough::before {
|
|
100
|
+
content: "";
|
|
101
|
+
position: absolute;
|
|
102
|
+
left: 0;
|
|
103
|
+
right: 0;
|
|
104
|
+
top: 0.69em;
|
|
105
|
+
border-top: 0.1em solid currentColor;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.PlaygroundEditorTheme__tabNode.PlaygroundEditorTheme__textUnderlineStrikethrough::before,
|
|
109
|
+
.PlaygroundEditorTheme__tabNode.PlaygroundEditorTheme__textUnderlineStrikethrough::after {
|
|
110
|
+
content: "";
|
|
111
|
+
position: absolute;
|
|
112
|
+
left: 0;
|
|
113
|
+
right: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.PlaygroundEditorTheme__tabNode.PlaygroundEditorTheme__textUnderlineStrikethrough::before {
|
|
117
|
+
top: 0.69em;
|
|
118
|
+
border-top: 0.1em solid currentColor;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.PlaygroundEditorTheme__tabNode.PlaygroundEditorTheme__textUnderlineStrikethrough::after {
|
|
122
|
+
bottom: 0.05em;
|
|
123
|
+
border-bottom: 0.1em solid currentColor;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.PlaygroundEditorTheme__textSubscript {
|
|
127
|
+
font-size: 0.8em;
|
|
128
|
+
vertical-align: sub !important;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.PlaygroundEditorTheme__textSuperscript {
|
|
132
|
+
font-size: 0.8em;
|
|
133
|
+
vertical-align: super;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.PlaygroundEditorTheme__textCode {
|
|
137
|
+
background-color: rgb(240, 242, 245);
|
|
138
|
+
padding: 1px 0.25rem;
|
|
139
|
+
font-family: Menlo, Consolas, Monaco, monospace;
|
|
140
|
+
font-size: 94%;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.PlaygroundEditorTheme__textLowercase {
|
|
144
|
+
text-transform: lowercase;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.PlaygroundEditorTheme__textUppercase {
|
|
148
|
+
text-transform: uppercase;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.PlaygroundEditorTheme__textCapitalize {
|
|
152
|
+
text-transform: capitalize;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.PlaygroundEditorTheme__hashtag {
|
|
156
|
+
background-color: rgba(88, 144, 255, 0.15);
|
|
157
|
+
border-bottom: 1px solid rgba(88, 144, 255, 0.3);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.PlaygroundEditorTheme__link {
|
|
161
|
+
color: rgb(33, 111, 219);
|
|
162
|
+
text-decoration: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.PlaygroundEditorTheme__link:hover {
|
|
166
|
+
text-decoration: underline;
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.PlaygroundEditorTheme__blockCursor {
|
|
171
|
+
display: block;
|
|
172
|
+
pointer-events: none;
|
|
173
|
+
position: absolute;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.PlaygroundEditorTheme__blockCursor:after {
|
|
177
|
+
content: "";
|
|
178
|
+
display: block;
|
|
179
|
+
position: absolute;
|
|
180
|
+
top: -2px;
|
|
181
|
+
width: 20px;
|
|
182
|
+
border-top: 1px solid black;
|
|
183
|
+
animation: CursorBlink 1.1s steps(2, start) infinite;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@keyframes CursorBlink {
|
|
187
|
+
to {
|
|
188
|
+
visibility: hidden;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.PlaygroundEditorTheme__code {
|
|
193
|
+
background-color: rgb(240, 242, 245);
|
|
194
|
+
font-family: Menlo, Consolas, Monaco, monospace;
|
|
195
|
+
display: block;
|
|
196
|
+
padding: 8px 8px 8px 52px;
|
|
197
|
+
line-height: 1.53;
|
|
198
|
+
font-size: 13px;
|
|
199
|
+
margin: 0;
|
|
200
|
+
margin-top: 8px;
|
|
201
|
+
margin-bottom: 8px;
|
|
202
|
+
overflow-x: auto;
|
|
203
|
+
position: relative;
|
|
204
|
+
tab-size: 2;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.PlaygroundEditorTheme__code:before {
|
|
208
|
+
content: attr(data-gutter);
|
|
209
|
+
position: absolute;
|
|
210
|
+
background-color: #eee;
|
|
211
|
+
left: 0;
|
|
212
|
+
top: 0;
|
|
213
|
+
border-right: 1px solid #ccc;
|
|
214
|
+
padding: 8px;
|
|
215
|
+
color: #777;
|
|
216
|
+
white-space: pre-wrap;
|
|
217
|
+
text-align: right;
|
|
218
|
+
min-width: 25px;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.PlaygroundEditorTheme__tableScrollableWrapper {
|
|
222
|
+
overflow-x: auto;
|
|
223
|
+
margin: 0px 25px 30px 0px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.PlaygroundEditorTheme__tableScrollableWrapper > .PlaygroundEditorTheme__table {
|
|
227
|
+
/* Remove the table's vertical margin and put it on the wrapper */
|
|
228
|
+
margin-top: 0;
|
|
229
|
+
margin-bottom: 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.PlaygroundEditorTheme__tableAlignmentCenter {
|
|
233
|
+
margin-left: auto;
|
|
234
|
+
margin-right: auto;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.PlaygroundEditorTheme__tableAlignmentRight {
|
|
238
|
+
margin-left: auto;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.PlaygroundEditorTheme__table {
|
|
242
|
+
border-collapse: collapse;
|
|
243
|
+
border-spacing: 0;
|
|
244
|
+
overflow-y: scroll;
|
|
245
|
+
overflow-x: scroll;
|
|
246
|
+
table-layout: fixed;
|
|
247
|
+
width: fit-content;
|
|
248
|
+
margin-top: 25px;
|
|
249
|
+
margin-bottom: 30px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.PlaygroundEditorTheme__tableScrollableWrapper.PlaygroundEditorTheme__tableFrozenRow {
|
|
253
|
+
/* position:sticky needs overflow:clip or visible
|
|
254
|
+
https://github.com/w3c/csswg-drafts/issues/865#issuecomment-350585274 */
|
|
255
|
+
overflow-x: clip;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.PlaygroundEditorTheme__tableFrozenRow tr:nth-of-type(1) > td {
|
|
259
|
+
overflow: clip;
|
|
260
|
+
background-color: #ffffff;
|
|
261
|
+
position: sticky;
|
|
262
|
+
z-index: 2;
|
|
263
|
+
top: 44px;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.PlaygroundEditorTheme__tableFrozenRow tr:nth-of-type(1) > th {
|
|
267
|
+
overflow: clip;
|
|
268
|
+
background-color: #f2f3f5;
|
|
269
|
+
position: sticky;
|
|
270
|
+
z-index: 2;
|
|
271
|
+
top: 44px;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.PlaygroundEditorTheme__tableFrozenRow tr:nth-of-type(1) > th:after,
|
|
275
|
+
.PlaygroundEditorTheme__tableFrozenRow tr:nth-of-type(1) > td:after {
|
|
276
|
+
content: "";
|
|
277
|
+
position: absolute;
|
|
278
|
+
left: 0;
|
|
279
|
+
bottom: 0;
|
|
280
|
+
width: 100%;
|
|
281
|
+
border-bottom: 1px solid #bbb;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.PlaygroundEditorTheme__tableFrozenColumn tr > td:first-child {
|
|
285
|
+
background-color: #ffffff;
|
|
286
|
+
position: sticky;
|
|
287
|
+
z-index: 2;
|
|
288
|
+
left: 0;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.PlaygroundEditorTheme__tableFrozenColumn tr > th:first-child {
|
|
292
|
+
background-color: #f2f3f5;
|
|
293
|
+
position: sticky;
|
|
294
|
+
z-index: 2;
|
|
295
|
+
left: 0;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.PlaygroundEditorTheme__tableFrozenColumn tr > :first-child::after {
|
|
299
|
+
content: "";
|
|
300
|
+
position: absolute;
|
|
301
|
+
left: 0;
|
|
302
|
+
top: 0;
|
|
303
|
+
right: 0;
|
|
304
|
+
height: 100%;
|
|
305
|
+
border-right: 1px solid #bbb;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.PlaygroundEditorTheme__tableRowStriping tr:nth-child(even) {
|
|
309
|
+
background-color: #f2f5fb;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.PlaygroundEditorTheme__tableSelection *::selection {
|
|
313
|
+
background-color: transparent;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.PlaygroundEditorTheme__tableSelected {
|
|
317
|
+
outline: 2px solid rgb(60, 132, 244);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.PlaygroundEditorTheme__tableCell {
|
|
321
|
+
border: 1px solid #bbb;
|
|
322
|
+
width: 75px;
|
|
323
|
+
vertical-align: top;
|
|
324
|
+
text-align: start;
|
|
325
|
+
padding: 6px 8px;
|
|
326
|
+
position: relative;
|
|
327
|
+
outline: none;
|
|
328
|
+
overflow: auto;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/*
|
|
332
|
+
A firefox workaround to allow scrolling of overflowing table cell
|
|
333
|
+
ref: https://bugzilla.mozilla.org/show_bug.cgi?id=1904159
|
|
334
|
+
*/
|
|
335
|
+
.PlaygroundEditorTheme__tableCell > * {
|
|
336
|
+
overflow: inherit;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.PlaygroundEditorTheme__tableCellResizer {
|
|
340
|
+
position: absolute;
|
|
341
|
+
right: -4px;
|
|
342
|
+
height: 100%;
|
|
343
|
+
width: 8px;
|
|
344
|
+
cursor: ew-resize;
|
|
345
|
+
z-index: 10;
|
|
346
|
+
top: 0;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.PlaygroundEditorTheme__tableCellHeader {
|
|
350
|
+
background-color: #f2f3f5;
|
|
351
|
+
text-align: start;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.PlaygroundEditorTheme__tableCellSelected {
|
|
355
|
+
caret-color: transparent;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.PlaygroundEditorTheme__tableCellSelected::after {
|
|
359
|
+
position: absolute;
|
|
360
|
+
left: 0;
|
|
361
|
+
right: 0;
|
|
362
|
+
bottom: 0;
|
|
363
|
+
top: 0;
|
|
364
|
+
background-color: highlight;
|
|
365
|
+
mix-blend-mode: multiply;
|
|
366
|
+
content: "";
|
|
367
|
+
pointer-events: none;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.PlaygroundEditorTheme__tableAddColumns {
|
|
371
|
+
position: absolute;
|
|
372
|
+
background-color: #eee;
|
|
373
|
+
height: 100%;
|
|
374
|
+
animation: table-controls 0.2s ease;
|
|
375
|
+
border: 0;
|
|
376
|
+
cursor: pointer;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.PlaygroundEditorTheme__tableAddColumns:after {
|
|
380
|
+
background-image: url(../images/icons/plus.svg);
|
|
381
|
+
background-size: contain;
|
|
382
|
+
background-position: center;
|
|
383
|
+
background-repeat: no-repeat;
|
|
384
|
+
display: block;
|
|
385
|
+
content: " ";
|
|
386
|
+
position: absolute;
|
|
387
|
+
top: 0;
|
|
388
|
+
left: 0;
|
|
389
|
+
width: 100%;
|
|
390
|
+
height: 100%;
|
|
391
|
+
opacity: 0.4;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.PlaygroundEditorTheme__tableAddColumns:hover,
|
|
395
|
+
.PlaygroundEditorTheme__tableAddRows:hover {
|
|
396
|
+
background-color: #c9dbf0;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.PlaygroundEditorTheme__tableAddRows {
|
|
400
|
+
position: absolute;
|
|
401
|
+
width: calc(100% - 25px);
|
|
402
|
+
background-color: #eee;
|
|
403
|
+
animation: table-controls 0.2s ease;
|
|
404
|
+
border: 0;
|
|
405
|
+
cursor: pointer;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.PlaygroundEditorTheme__tableAddRows:after {
|
|
409
|
+
background-image: url(../images/icons/plus.svg);
|
|
410
|
+
background-size: contain;
|
|
411
|
+
background-position: center;
|
|
412
|
+
background-repeat: no-repeat;
|
|
413
|
+
display: block;
|
|
414
|
+
content: " ";
|
|
415
|
+
position: absolute;
|
|
416
|
+
top: 0;
|
|
417
|
+
left: 0;
|
|
418
|
+
width: 100%;
|
|
419
|
+
height: 100%;
|
|
420
|
+
opacity: 0.4;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
@keyframes table-controls {
|
|
424
|
+
0% {
|
|
425
|
+
opacity: 0;
|
|
426
|
+
}
|
|
427
|
+
100% {
|
|
428
|
+
opacity: 1;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.PlaygroundEditorTheme__tableCellResizeRuler {
|
|
433
|
+
display: block;
|
|
434
|
+
position: absolute;
|
|
435
|
+
width: 1px;
|
|
436
|
+
background-color: rgb(60, 132, 244);
|
|
437
|
+
height: 100%;
|
|
438
|
+
top: 0;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.PlaygroundEditorTheme__tableCellActionButtonContainer {
|
|
442
|
+
display: block;
|
|
443
|
+
right: 5px;
|
|
444
|
+
top: 6px;
|
|
445
|
+
position: absolute;
|
|
446
|
+
z-index: 4;
|
|
447
|
+
width: 20px;
|
|
448
|
+
height: 20px;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.PlaygroundEditorTheme__tableCellActionButton {
|
|
452
|
+
background-color: #eee;
|
|
453
|
+
display: block;
|
|
454
|
+
border: 0;
|
|
455
|
+
border-radius: 20px;
|
|
456
|
+
width: 20px;
|
|
457
|
+
height: 20px;
|
|
458
|
+
color: #222;
|
|
459
|
+
cursor: pointer;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.PlaygroundEditorTheme__tableCellActionButton:hover {
|
|
463
|
+
background-color: #ddd;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.PlaygroundEditorTheme__characterLimit {
|
|
467
|
+
display: inline;
|
|
468
|
+
background-color: #ffbbbb !important;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.PlaygroundEditorTheme__ol1 {
|
|
472
|
+
padding: 0;
|
|
473
|
+
margin: 0;
|
|
474
|
+
list-style-position: outside;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.PlaygroundEditorTheme__ol2 {
|
|
478
|
+
padding: 0;
|
|
479
|
+
margin: 0;
|
|
480
|
+
list-style-type: upper-alpha;
|
|
481
|
+
list-style-position: outside;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.PlaygroundEditorTheme__ol3 {
|
|
485
|
+
padding: 0;
|
|
486
|
+
margin: 0;
|
|
487
|
+
list-style-type: lower-alpha;
|
|
488
|
+
list-style-position: outside;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.PlaygroundEditorTheme__ol4 {
|
|
492
|
+
padding: 0;
|
|
493
|
+
margin: 0;
|
|
494
|
+
list-style-type: upper-roman;
|
|
495
|
+
list-style-position: outside;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.PlaygroundEditorTheme__ol5 {
|
|
499
|
+
padding: 0;
|
|
500
|
+
margin: 0;
|
|
501
|
+
list-style-type: lower-roman;
|
|
502
|
+
list-style-position: outside;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.PlaygroundEditorTheme__ul {
|
|
506
|
+
padding: 0;
|
|
507
|
+
margin: 0;
|
|
508
|
+
list-style-position: outside;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.PlaygroundEditorTheme__listItem {
|
|
512
|
+
margin: 0 32px;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.PlaygroundEditorTheme__listItem::marker {
|
|
516
|
+
color: var(--listitem-marker-color);
|
|
517
|
+
background-color: var(--listitem-marker-background-color);
|
|
518
|
+
font-family: var(--listitem-marker-font-family);
|
|
519
|
+
font-size: var(--listitem-marker-font-size);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.PlaygroundEditorTheme__listItemChecked,
|
|
523
|
+
.PlaygroundEditorTheme__listItemUnchecked {
|
|
524
|
+
position: relative;
|
|
525
|
+
margin-left: 8px;
|
|
526
|
+
margin-right: 8px;
|
|
527
|
+
padding-left: 24px;
|
|
528
|
+
padding-right: 24px;
|
|
529
|
+
list-style-type: none;
|
|
530
|
+
outline: none;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.PlaygroundEditorTheme__listItemChecked {
|
|
534
|
+
text-decoration: line-through;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.PlaygroundEditorTheme__listItemUnchecked:before,
|
|
538
|
+
.PlaygroundEditorTheme__listItemChecked:before {
|
|
539
|
+
content: "";
|
|
540
|
+
width: 16px;
|
|
541
|
+
height: 16px;
|
|
542
|
+
top: 2px;
|
|
543
|
+
left: 0;
|
|
544
|
+
cursor: pointer;
|
|
545
|
+
display: block;
|
|
546
|
+
background-size: cover;
|
|
547
|
+
position: absolute;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.PlaygroundEditorTheme__listItemUnchecked[dir="rtl"]:before,
|
|
551
|
+
.PlaygroundEditorTheme__listItemChecked[dir="rtl"]:before {
|
|
552
|
+
left: auto;
|
|
553
|
+
right: 0;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.PlaygroundEditorTheme__listItemUnchecked:focus:before,
|
|
557
|
+
.PlaygroundEditorTheme__listItemChecked:focus:before {
|
|
558
|
+
box-shadow: 0 0 0 2px #a6cdfe;
|
|
559
|
+
border-radius: 2px;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.PlaygroundEditorTheme__listItemUnchecked:before {
|
|
563
|
+
border: 1px solid #999;
|
|
564
|
+
border-radius: 2px;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.PlaygroundEditorTheme__listItemChecked:before {
|
|
568
|
+
border: 1px solid rgb(61, 135, 245);
|
|
569
|
+
border-radius: 2px;
|
|
570
|
+
background-color: #3d87f5;
|
|
571
|
+
background-repeat: no-repeat;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.PlaygroundEditorTheme__listItemChecked:after {
|
|
575
|
+
content: "";
|
|
576
|
+
cursor: pointer;
|
|
577
|
+
border-color: #fff;
|
|
578
|
+
border-style: solid;
|
|
579
|
+
position: absolute;
|
|
580
|
+
display: block;
|
|
581
|
+
top: 6px;
|
|
582
|
+
width: 3px;
|
|
583
|
+
left: 7px;
|
|
584
|
+
right: 7px;
|
|
585
|
+
height: 6px;
|
|
586
|
+
transform: rotate(45deg);
|
|
587
|
+
border-width: 0 2px 2px 0;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.PlaygroundEditorTheme__nestedListItem {
|
|
591
|
+
list-style-type: none;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.PlaygroundEditorTheme__nestedListItem:before,
|
|
595
|
+
.PlaygroundEditorTheme__nestedListItem:after {
|
|
596
|
+
display: none;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.PlaygroundEditorTheme__tokenComment {
|
|
600
|
+
color: slategray;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.PlaygroundEditorTheme__tokenPunctuation {
|
|
604
|
+
color: #999;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.PlaygroundEditorTheme__tokenProperty {
|
|
608
|
+
color: #905;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.PlaygroundEditorTheme__tokenSelector {
|
|
612
|
+
color: #690;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.PlaygroundEditorTheme__tokenOperator {
|
|
616
|
+
color: #9a6e3a;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.PlaygroundEditorTheme__tokenAttr {
|
|
620
|
+
color: #07a;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.PlaygroundEditorTheme__tokenVariable {
|
|
624
|
+
color: #e90;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.PlaygroundEditorTheme__tokenFunction {
|
|
628
|
+
color: #dd4a68;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.PlaygroundEditorTheme__mark {
|
|
632
|
+
background: rgba(255, 212, 0, 0.14);
|
|
633
|
+
border-bottom: 2px solid rgba(255, 212, 0, 0.3);
|
|
634
|
+
padding-bottom: 2px;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.PlaygroundEditorTheme__markOverlap {
|
|
638
|
+
background: rgba(255, 212, 0, 0.3);
|
|
639
|
+
border-bottom: 2px solid rgba(255, 212, 0, 0.7);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.PlaygroundEditorTheme__mark.selected {
|
|
643
|
+
background: rgba(255, 212, 0, 0.5);
|
|
644
|
+
border-bottom: 2px solid rgba(255, 212, 0, 1);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.PlaygroundEditorTheme__markOverlap.selected {
|
|
648
|
+
background: rgba(255, 212, 0, 0.7);
|
|
649
|
+
border-bottom: 2px solid rgba(255, 212, 0, 0.7);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.PlaygroundEditorTheme__embedBlock {
|
|
653
|
+
user-select: none;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.PlaygroundEditorTheme__embedBlockFocus {
|
|
657
|
+
outline: 2px solid rgb(60, 132, 244);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.PlaygroundEditorTheme__layoutContainer {
|
|
661
|
+
display: grid;
|
|
662
|
+
gap: 10px;
|
|
663
|
+
margin: 10px 0;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.PlaygroundEditorTheme__layoutItem {
|
|
667
|
+
border: 1px dashed #ddd;
|
|
668
|
+
padding: 8px 16px;
|
|
669
|
+
min-width: 0;
|
|
670
|
+
max-width: 100%;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.PlaygroundEditorTheme__autocomplete {
|
|
674
|
+
color: #ccc;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.PlaygroundEditorTheme__hr {
|
|
678
|
+
padding: 2px 2px;
|
|
679
|
+
border: none;
|
|
680
|
+
margin: 1em 0;
|
|
681
|
+
cursor: pointer;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.PlaygroundEditorTheme__hr:after {
|
|
685
|
+
content: "";
|
|
686
|
+
display: block;
|
|
687
|
+
height: 2px;
|
|
688
|
+
background-color: #ccc;
|
|
689
|
+
line-height: 2px;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.PlaygroundEditorTheme__hr.PlaygroundEditorTheme__hrSelected {
|
|
693
|
+
outline: 2px solid rgb(60, 132, 244);
|
|
694
|
+
user-select: none;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.PlaygroundEditorTheme__specialText {
|
|
698
|
+
background-color: yellow;
|
|
699
|
+
font-weight: bold;
|
|
700
|
+
}
|
|
701
|
+
`;
|
|
702
|
+
//# sourceMappingURL=playgroundEditorThemeStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playgroundEditorThemeStyles.js","sourceRoot":"","sources":["../../../src/editor/themes/playgroundEditorThemeStyles.ts"],"names":[],"mappings":";;;AAAA,4CAAoC;AAEvB,QAAA,2BAA2B,GAAG,IAAA,cAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwrB7C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { CODE_LANGUAGE_FRIENDLY_NAME_MAP } from "@lexical/code";
|
|
3
|
+
import { blockTypeToBlockName } from "../context";
|
|
4
|
+
export type TToolbarHistoryControl = "undo" | "redo";
|
|
5
|
+
export type TToolbarTextFormatControl = "bold" | "italic" | "underline" | "strikethrough" | "code" | "link" | "leftAlign" | "centerAlign" | "rightAlign";
|
|
6
|
+
export type TToolbarViewFormatControl = "horizontal" | "image" | "video" | "table";
|
|
7
|
+
export type TToolbarClearControl = "formatting" | "editor";
|
|
8
|
+
export type TToolbarBlockFormatControl = keyof typeof blockTypeToBlockName;
|
|
9
|
+
export type TToolbarCodeLanguagesControl = keyof typeof CODE_LANGUAGE_FRIENDLY_NAME_MAP;
|
|
10
|
+
export type TToolbarControl = TToolbarHistoryControl | TToolbarTextFormatControl | TToolbarViewFormatControl | TToolbarClearControl | "blockFormat" | "codeLanguages";
|
|
11
|
+
export interface IToolbarControls {
|
|
12
|
+
history?: Array<TToolbarHistoryControl>;
|
|
13
|
+
textFormat?: Array<TToolbarTextFormatControl>;
|
|
14
|
+
blockFormat?: Array<TToolbarBlockFormatControl>;
|
|
15
|
+
viewFormat?: Array<TToolbarViewFormatControl>;
|
|
16
|
+
codeLanguages?: Array<TToolbarCodeLanguagesControl>;
|
|
17
|
+
clear?: Array<TToolbarClearControl>;
|
|
18
|
+
}
|
|
19
|
+
export type IControlsMap = Record<TToolbarControl, ReactElement>;
|