@meta-1/editor 0.0.29 → 1.0.1
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/package.json +47 -66
- package/src/components/notion-like/notion-like-editor-toolbar-floating.tsx +181 -0
- package/src/components/tiptap-extension/list-normalization-extension.ts +112 -0
- package/src/components/tiptap-extension/node-alignment-extension.ts +285 -0
- package/src/components/tiptap-extension/node-background-extension.ts +150 -0
- package/src/components/tiptap-extension/ui-state-extension.ts +97 -0
- package/src/components/tiptap-icons/add-col-left-icon.tsx +30 -0
- package/src/components/tiptap-icons/add-col-right-icon.tsx +30 -0
- package/src/components/tiptap-icons/add-row-bottom-icon.tsx +30 -0
- package/src/components/tiptap-icons/add-row-top-icon.tsx +30 -0
- package/src/components/tiptap-icons/ai-sparkles-icon.tsx +32 -0
- package/src/components/tiptap-icons/align-bottom-icon.tsx +28 -0
- package/src/components/tiptap-icons/align-center-icon.tsx +38 -0
- package/src/components/tiptap-icons/align-center-vertical-icon.tsx +34 -0
- package/src/components/tiptap-icons/align-end-vertical-icon.tsx +34 -0
- package/src/components/tiptap-icons/align-justify-icon.tsx +38 -0
- package/src/components/tiptap-icons/align-left-icon.tsx +38 -0
- package/src/components/tiptap-icons/align-middle-icon.tsx +55 -0
- package/src/components/tiptap-icons/align-right-icon.tsx +38 -0
- package/src/components/tiptap-icons/align-start-vertical-icon.tsx +32 -0
- package/src/components/tiptap-icons/align-top-icon.tsx +28 -0
- package/src/components/tiptap-icons/alignment-icon.tsx +72 -0
- package/src/components/tiptap-icons/arrow-down-a-z-icon.tsx +34 -0
- package/src/components/tiptap-icons/arrow-down-icon.tsx +24 -0
- package/src/components/tiptap-icons/arrow-down-to-line-icon.tsx +28 -0
- package/src/components/tiptap-icons/arrow-down-z-a-icon.tsx +34 -0
- package/src/components/tiptap-icons/arrow-left-icon.tsx +24 -0
- package/src/components/tiptap-icons/arrow-right-icon.tsx +26 -0
- package/src/components/tiptap-icons/arrow-up-icon.tsx +26 -0
- package/src/components/tiptap-icons/at-sign-icon.tsx +26 -0
- package/src/components/tiptap-icons/ban-icon.tsx +26 -0
- package/src/components/tiptap-icons/blockquote-icon.tsx +44 -0
- package/src/components/tiptap-icons/bold-icon.tsx +26 -0
- package/src/components/tiptap-icons/check-ai-icon.tsx +32 -0
- package/src/components/tiptap-icons/check-icon.tsx +26 -0
- package/src/components/tiptap-icons/chevron-down-icon.tsx +26 -0
- package/src/components/tiptap-icons/chevron-right-icon.tsx +26 -0
- package/src/components/tiptap-icons/clipboard-icon.tsx +24 -0
- package/src/components/tiptap-icons/close-icon.tsx +24 -0
- package/src/components/tiptap-icons/code-block-icon.tsx +38 -0
- package/src/components/tiptap-icons/code2-icon.tsx +32 -0
- package/src/components/tiptap-icons/complete-sentence-icon.tsx +44 -0
- package/src/components/tiptap-icons/copy-icon.tsx +32 -0
- package/src/components/tiptap-icons/corner-down-left-icon.tsx +26 -0
- package/src/components/tiptap-icons/external-link-icon.tsx +28 -0
- package/src/components/tiptap-icons/grip-4-icon.tsx +24 -0
- package/src/components/tiptap-icons/grip-vertical-icon.tsx +44 -0
- package/src/components/tiptap-icons/heading-five-icon.tsx +28 -0
- package/src/components/tiptap-icons/heading-four-icon.tsx +28 -0
- package/src/components/tiptap-icons/heading-one-icon.tsx +28 -0
- package/src/components/tiptap-icons/heading-six-icon.tsx +30 -0
- package/src/components/tiptap-icons/heading-three-icon.tsx +36 -0
- package/src/components/tiptap-icons/heading-two-icon.tsx +28 -0
- package/src/components/tiptap-icons/highlighter-icon.tsx +26 -0
- package/src/components/tiptap-icons/image-caption-icon.tsx +38 -0
- package/src/components/tiptap-icons/image-icon.tsx +26 -0
- package/src/components/tiptap-icons/image-plus-icon.tsx +26 -0
- package/src/components/tiptap-icons/italic-icon.tsx +24 -0
- package/src/components/tiptap-icons/languages-icon.tsx +34 -0
- package/src/components/tiptap-icons/link-icon.tsx +28 -0
- package/src/components/tiptap-icons/list-icon.tsx +56 -0
- package/src/components/tiptap-icons/list-ordered-icon.tsx +56 -0
- package/src/components/tiptap-icons/list-todo-icon.tsx +50 -0
- package/src/components/tiptap-icons/message-square-icon.tsx +26 -0
- package/src/components/tiptap-icons/message-square-plus-icon.tsx +32 -0
- package/src/components/tiptap-icons/mic-ai-icon.tsx +34 -0
- package/src/components/tiptap-icons/minus-icon.tsx +26 -0
- package/src/components/tiptap-icons/moon-star-icon.tsx +30 -0
- package/src/components/tiptap-icons/more-vertical-icon.tsx +38 -0
- package/src/components/tiptap-icons/move-horizontal-icon.tsx +24 -0
- package/src/components/tiptap-icons/paint-bucket-icon.tsx +32 -0
- package/src/components/tiptap-icons/plus-icon.tsx +24 -0
- package/src/components/tiptap-icons/plus-small-icon.tsx +24 -0
- package/src/components/tiptap-icons/redo2-icon.tsx +26 -0
- package/src/components/tiptap-icons/refresh-ai-icon.tsx +34 -0
- package/src/components/tiptap-icons/refresh-ccw-icon.tsx +28 -0
- package/src/components/tiptap-icons/repeat-2-icon.tsx +26 -0
- package/src/components/tiptap-icons/rotate-ccw-icon.tsx +24 -0
- package/src/components/tiptap-icons/simplify-2-icon.tsx +24 -0
- package/src/components/tiptap-icons/smile-ai-icon.tsx +38 -0
- package/src/components/tiptap-icons/smile-plus-icon.tsx +26 -0
- package/src/components/tiptap-icons/square-x-icon.tsx +26 -0
- package/src/components/tiptap-icons/stop-circle-2-icon.tsx +26 -0
- package/src/components/tiptap-icons/strike-icon.tsx +28 -0
- package/src/components/tiptap-icons/subscript-icon.tsx +38 -0
- package/src/components/tiptap-icons/summarize-text-icon.tsx +36 -0
- package/src/components/tiptap-icons/sun-icon.tsx +58 -0
- package/src/components/tiptap-icons/superscript-icon.tsx +38 -0
- package/src/components/tiptap-icons/table-cell-merge-icon.tsx +44 -0
- package/src/components/tiptap-icons/table-cell-split-icon.tsx +44 -0
- package/src/components/tiptap-icons/table-column-icon.tsx +26 -0
- package/src/components/tiptap-icons/table-header-column-icon.tsx +28 -0
- package/src/components/tiptap-icons/table-header-row-icon.tsx +26 -0
- package/src/components/tiptap-icons/table-icon.tsx +26 -0
- package/src/components/tiptap-icons/table-row-icon.tsx +26 -0
- package/src/components/tiptap-icons/text-color-small-icon.tsx +26 -0
- package/src/components/tiptap-icons/text-extend-icon.tsx +36 -0
- package/src/components/tiptap-icons/text-reduce-icon.tsx +32 -0
- package/src/components/tiptap-icons/trash-icon.tsx +26 -0
- package/src/components/tiptap-icons/type-icon.tsx +24 -0
- package/src/components/tiptap-icons/underline-icon.tsx +26 -0
- package/src/components/tiptap-icons/undo2-icon.tsx +26 -0
- package/src/components/tiptap-icons/x-icon.tsx +24 -0
- package/src/components/tiptap-node/blockquote-node/blockquote-node.css +18 -0
- package/src/components/tiptap-node/code-block-node/code-block-node.css +24 -0
- package/src/components/tiptap-node/heading-node/heading-node.css +33 -0
- package/src/components/tiptap-node/horizontal-rule-node/horizontal-rule-node-extension.ts +11 -0
- package/src/components/tiptap-node/horizontal-rule-node/horizontal-rule-node.css +12 -0
- package/src/components/tiptap-node/image-node/image-node-extension.ts +169 -0
- package/src/components/tiptap-node/image-node/image-node-floating.tsx +41 -0
- package/src/components/tiptap-node/image-node/image-node-view.css +60 -0
- package/src/components/tiptap-node/image-node/image-node-view.tsx +316 -0
- package/src/components/tiptap-node/image-node/image-node.css +28 -0
- package/src/components/tiptap-node/image-upload-node/image-upload-node-extension.ts +155 -0
- package/src/components/tiptap-node/image-upload-node/image-upload-node.css +141 -0
- package/src/components/tiptap-node/image-upload-node/image-upload-node.tsx +513 -0
- package/src/components/tiptap-node/image-upload-node/index.tsx +1 -0
- package/src/components/tiptap-node/list-node/list-node.css +127 -0
- package/src/components/tiptap-node/paragraph-node/paragraph-node.css +198 -0
- package/src/components/tiptap-node/table-node/extensions/table-handle/helpers/create-image.ts +273 -0
- package/src/components/tiptap-node/table-node/extensions/table-handle/index.ts +2 -0
- package/src/components/tiptap-node/table-node/extensions/table-handle/table-handle-plugin.ts +718 -0
- package/src/components/tiptap-node/table-node/extensions/table-handle/table-handle.ts +48 -0
- package/src/components/tiptap-node/table-node/extensions/table-node-extension.ts +226 -0
- package/src/components/tiptap-node/table-node/hooks/use-table-handle-state.ts +66 -0
- package/src/components/tiptap-node/table-node/lib/tiptap-table-utils.ts +1289 -0
- package/src/components/tiptap-node/table-node/styles/prosemirror-table.css +35 -0
- package/src/components/tiptap-node/table-node/styles/table-node.css +158 -0
- package/src/components/tiptap-node/table-node/ui/table-add-row-column-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-add-row-column-button/table-add-row-column-button.tsx +94 -0
- package/src/components/tiptap-node/table-node/ui/table-add-row-column-button/use-table-add-row-column.ts +325 -0
- package/src/components/tiptap-node/table-node/ui/table-align-cell-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-align-cell-button/table-align-cell-button.tsx +129 -0
- package/src/components/tiptap-node/table-node/ui/table-align-cell-button/use-table-align-cell.ts +528 -0
- package/src/components/tiptap-node/table-node/ui/table-alignment-menu/index.tsx +1 -0
- package/src/components/tiptap-node/table-node/ui/table-alignment-menu/table-alignment-menu.tsx +154 -0
- package/src/components/tiptap-node/table-node/ui/table-cell-handle-menu/index.tsx +1 -0
- package/src/components/tiptap-node/table-node/ui/table-cell-handle-menu/table-cell-handle-menu.css +62 -0
- package/src/components/tiptap-node/table-node/ui/table-cell-handle-menu/table-cell-handle-menu.tsx +212 -0
- package/src/components/tiptap-node/table-node/ui/table-clear-row-column-content-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-clear-row-column-content-button/table-clear-row-column-content-button.tsx +101 -0
- package/src/components/tiptap-node/table-node/ui/table-clear-row-column-content-button/use-table-clear-row-column-content.ts +423 -0
- package/src/components/tiptap-node/table-node/ui/table-delete-row-column-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-delete-row-column-button/table-delete-row-column-button.tsx +100 -0
- package/src/components/tiptap-node/table-node/ui/table-delete-row-column-button/use-table-delete-row-column.ts +243 -0
- package/src/components/tiptap-node/table-node/ui/table-duplicate-row-column-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-duplicate-row-column-button/table-duplicate-row-column-button.tsx +92 -0
- package/src/components/tiptap-node/table-node/ui/table-duplicate-row-column-button/use-table-duplicate-row-column.ts +357 -0
- package/src/components/tiptap-node/table-node/ui/table-extend-row-column-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-extend-row-column-button/table-extend-row-column-button.css +17 -0
- package/src/components/tiptap-node/table-node/ui/table-extend-row-column-button/table-extend-row-column-button.tsx +240 -0
- package/src/components/tiptap-node/table-node/ui/table-extend-row-column-button/use-table-extend-row-column.ts +118 -0
- package/src/components/tiptap-node/table-node/ui/table-fit-to-width-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-fit-to-width-button/table-fit-to-width-button.tsx +98 -0
- package/src/components/tiptap-node/table-node/ui/table-fit-to-width-button/use-table-fit-to-width.ts +223 -0
- package/src/components/tiptap-node/table-node/ui/table-handle/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-handle/table-handle.tsx +163 -0
- package/src/components/tiptap-node/table-node/ui/table-handle/use-table-handle-positioning.ts +255 -0
- package/src/components/tiptap-node/table-node/ui/table-handle-menu/index.tsx +1 -0
- package/src/components/tiptap-node/table-node/ui/table-handle-menu/table-handle-menu.css +39 -0
- package/src/components/tiptap-node/table-node/ui/table-handle-menu/table-handle-menu.tsx +681 -0
- package/src/components/tiptap-node/table-node/ui/table-header-row-column-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-header-row-column-button/table-header-row-column-button.tsx +99 -0
- package/src/components/tiptap-node/table-node/ui/table-header-row-column-button/use-table-header-row-column.ts +227 -0
- package/src/components/tiptap-node/table-node/ui/table-merge-split-cell-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-merge-split-cell-button/table-merge-split-cell-button.tsx +125 -0
- package/src/components/tiptap-node/table-node/ui/table-merge-split-cell-button/use-table-merge-split-cell.ts +267 -0
- package/src/components/tiptap-node/table-node/ui/table-move-row-column-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-move-row-column-button/table-move-row-column-button.tsx +123 -0
- package/src/components/tiptap-node/table-node/ui/table-move-row-column-button/use-table-move-row-column.ts +431 -0
- package/src/components/tiptap-node/table-node/ui/table-selection-overlay/index.tsx +1 -0
- package/src/components/tiptap-node/table-node/ui/table-selection-overlay/table-selection-overlay.tsx +483 -0
- package/src/components/tiptap-node/table-node/ui/table-selection-overlay/use-resize-overlay.ts +78 -0
- package/src/components/tiptap-node/table-node/ui/table-sort-row-column-button/index.tsx +2 -0
- package/src/components/tiptap-node/table-node/ui/table-sort-row-column-button/table-sort-row-column-button.tsx +100 -0
- package/src/components/tiptap-node/table-node/ui/table-sort-row-column-button/use-table-sort-row-column.ts +444 -0
- package/src/components/tiptap-node/table-node/ui/table-trigger-button/index.tsx +3 -0
- package/src/components/tiptap-node/table-node/ui/table-trigger-button/table-grid-selector.css +39 -0
- package/src/components/tiptap-node/table-node/ui/table-trigger-button/table-grid-selector.tsx +219 -0
- package/src/components/tiptap-node/table-node/ui/table-trigger-button/table-trigger-button.tsx +132 -0
- package/src/components/tiptap-node/table-node/ui/table-trigger-button/use-table-trigger.ts +166 -0
- package/src/components/tiptap-ui/blockquote-button/blockquote-button.tsx +125 -0
- package/src/components/tiptap-ui/blockquote-button/index.tsx +2 -0
- package/src/components/tiptap-ui/blockquote-button/use-blockquote.ts +246 -0
- package/src/components/tiptap-ui/code-block-button/code-block-button.tsx +100 -0
- package/src/components/tiptap-ui/code-block-button/index.tsx +2 -0
- package/src/components/tiptap-ui/code-block-button/use-code-block.ts +256 -0
- package/src/components/tiptap-ui/color-highlight-button/color-highlight-button.css +32 -0
- package/src/components/tiptap-ui/color-highlight-button/color-highlight-button.tsx +171 -0
- package/src/components/tiptap-ui/color-highlight-button/index.tsx +2 -0
- package/src/components/tiptap-ui/color-highlight-button/use-color-highlight.ts +296 -0
- package/src/components/tiptap-ui/color-highlight-popover/color-highlight-popover.tsx +211 -0
- package/src/components/tiptap-ui/color-highlight-popover/index.tsx +1 -0
- package/src/components/tiptap-ui/color-menu/color-menu.tsx +178 -0
- package/src/components/tiptap-ui/color-menu/index.tsx +1 -0
- package/src/components/tiptap-ui/color-text-button/color-text-button.css +31 -0
- package/src/components/tiptap-ui/color-text-button/color-text-button.tsx +150 -0
- package/src/components/tiptap-ui/color-text-button/index.tsx +2 -0
- package/src/components/tiptap-ui/color-text-button/use-color-text.ts +251 -0
- package/src/components/tiptap-ui/color-text-popover/color-text-popover.css +25 -0
- package/src/components/tiptap-ui/color-text-popover/color-text-popover.tsx +360 -0
- package/src/components/tiptap-ui/color-text-popover/index.tsx +2 -0
- package/src/components/tiptap-ui/color-text-popover/use-color-text-popover.ts +229 -0
- package/src/components/tiptap-ui/copy-anchor-link-button/copy-anchor-link-button.tsx +118 -0
- package/src/components/tiptap-ui/copy-anchor-link-button/index.tsx +3 -0
- package/src/components/tiptap-ui/copy-anchor-link-button/use-copy-anchor-link.ts +252 -0
- package/src/components/tiptap-ui/copy-anchor-link-button/use-scroll-to-hash.ts +128 -0
- package/src/components/tiptap-ui/copy-to-clipboard-button/copy-to-clipboard-button.tsx +116 -0
- package/src/components/tiptap-ui/copy-to-clipboard-button/index.tsx +2 -0
- package/src/components/tiptap-ui/copy-to-clipboard-button/use-copy-to-clipboard.ts +234 -0
- package/src/components/tiptap-ui/delete-node-button/delete-node-button.tsx +98 -0
- package/src/components/tiptap-ui/delete-node-button/index.tsx +2 -0
- package/src/components/tiptap-ui/delete-node-button/use-delete-node.ts +236 -0
- package/src/components/tiptap-ui/drag-context-menu/drag-context-menu-types.ts +28 -0
- package/src/components/tiptap-ui/drag-context-menu/drag-context-menu.css +17 -0
- package/src/components/tiptap-ui/drag-context-menu/drag-context-menu.tsx +413 -0
- package/src/components/tiptap-ui/drag-context-menu/index.tsx +2 -0
- package/src/components/tiptap-ui/duplicate-button/duplicate-button.tsx +114 -0
- package/src/components/tiptap-ui/duplicate-button/index.tsx +2 -0
- package/src/components/tiptap-ui/duplicate-button/use-duplicate.ts +208 -0
- package/src/components/tiptap-ui/emoji-dropdown-menu/emoji-dropdown-menu.tsx +103 -0
- package/src/components/tiptap-ui/emoji-dropdown-menu/index.tsx +1 -0
- package/src/components/tiptap-ui/emoji-menu/emoji-menu-utils.ts +36 -0
- package/src/components/tiptap-ui/emoji-menu/emoji-menu.css +30 -0
- package/src/components/tiptap-ui/emoji-menu/emoji-menu.tsx +142 -0
- package/src/components/tiptap-ui/emoji-menu/index.tsx +2 -0
- package/src/components/tiptap-ui/emoji-trigger-button/emoji-trigger-button.tsx +128 -0
- package/src/components/tiptap-ui/emoji-trigger-button/index.tsx +2 -0
- package/src/components/tiptap-ui/emoji-trigger-button/use-emoji-trigger.ts +315 -0
- package/src/components/tiptap-ui/heading-button/heading-button.tsx +127 -0
- package/src/components/tiptap-ui/heading-button/index.tsx +2 -0
- package/src/components/tiptap-ui/heading-button/use-heading.ts +321 -0
- package/src/components/tiptap-ui/image-align-button/image-align-button.tsx +114 -0
- package/src/components/tiptap-ui/image-align-button/index.tsx +2 -0
- package/src/components/tiptap-ui/image-align-button/use-image-align.ts +295 -0
- package/src/components/tiptap-ui/image-caption-button/image-caption-button.tsx +77 -0
- package/src/components/tiptap-ui/image-caption-button/index.tsx +2 -0
- package/src/components/tiptap-ui/image-caption-button/use-image-caption.ts +212 -0
- package/src/components/tiptap-ui/image-download-button/image-download-button.tsx +104 -0
- package/src/components/tiptap-ui/image-download-button/index.tsx +2 -0
- package/src/components/tiptap-ui/image-download-button/use-image-download.ts +364 -0
- package/src/components/tiptap-ui/image-upload-button/image-upload-button.tsx +133 -0
- package/src/components/tiptap-ui/image-upload-button/index.tsx +2 -0
- package/src/components/tiptap-ui/image-upload-button/use-image-upload.ts +192 -0
- package/src/components/tiptap-ui/link-popover/index.tsx +2 -0
- package/src/components/tiptap-ui/link-popover/link-popover.tsx +271 -0
- package/src/components/tiptap-ui/link-popover/use-link-popover.ts +286 -0
- package/src/components/tiptap-ui/list-button/index.tsx +2 -0
- package/src/components/tiptap-ui/list-button/list-button.tsx +123 -0
- package/src/components/tiptap-ui/list-button/use-list.ts +326 -0
- package/src/components/tiptap-ui/mark-button/index.tsx +2 -0
- package/src/components/tiptap-ui/mark-button/mark-button.tsx +110 -0
- package/src/components/tiptap-ui/mark-button/use-mark.ts +195 -0
- package/src/components/tiptap-ui/mention-dropdown-menu/index.tsx +1 -0
- package/src/components/tiptap-ui/mention-dropdown-menu/mention-dropdown-menu.tsx +212 -0
- package/src/components/tiptap-ui/mention-trigger-button/index.tsx +2 -0
- package/src/components/tiptap-ui/mention-trigger-button/mention-trigger-button.tsx +122 -0
- package/src/components/tiptap-ui/mention-trigger-button/use-mention-trigger.ts +339 -0
- package/src/components/tiptap-ui/move-node-button/index.tsx +2 -0
- package/src/components/tiptap-ui/move-node-button/move-node-button.tsx +120 -0
- package/src/components/tiptap-ui/move-node-button/use-move-node.ts +207 -0
- package/src/components/tiptap-ui/reset-all-formatting-button/index.tsx +2 -0
- package/src/components/tiptap-ui/reset-all-formatting-button/reset-all-formatting-button.tsx +126 -0
- package/src/components/tiptap-ui/reset-all-formatting-button/use-reset-all-formatting.ts +250 -0
- package/src/components/tiptap-ui/slash-command-trigger-button/index.tsx +2 -0
- package/src/components/tiptap-ui/slash-command-trigger-button/slash-command-trigger-button.tsx +128 -0
- package/src/components/tiptap-ui/slash-command-trigger-button/use-slash-command-trigger.ts +255 -0
- package/src/components/tiptap-ui/slash-dropdown-menu/index.tsx +2 -0
- package/src/components/tiptap-ui/slash-dropdown-menu/slash-dropdown-menu.css +33 -0
- package/src/components/tiptap-ui/slash-dropdown-menu/slash-dropdown-menu.tsx +159 -0
- package/src/components/tiptap-ui/slash-dropdown-menu/use-slash-dropdown-menu.ts +317 -0
- package/src/components/tiptap-ui/text-align-button/index.tsx +2 -0
- package/src/components/tiptap-ui/text-align-button/text-align-button.tsx +120 -0
- package/src/components/tiptap-ui/text-align-button/use-text-align.ts +224 -0
- package/src/components/tiptap-ui/text-button/index.tsx +2 -0
- package/src/components/tiptap-ui/text-button/text-button.tsx +117 -0
- package/src/components/tiptap-ui/text-button/use-text.ts +264 -0
- package/src/components/tiptap-ui/turn-into-dropdown/index.tsx +2 -0
- package/src/components/tiptap-ui/turn-into-dropdown/turn-into-dropdown.tsx +192 -0
- package/src/components/tiptap-ui/turn-into-dropdown/use-turn-into-dropdown.ts +260 -0
- package/src/components/tiptap-ui/undo-redo-button/index.tsx +2 -0
- package/src/components/tiptap-ui/undo-redo-button/undo-redo-button.tsx +126 -0
- package/src/components/tiptap-ui/undo-redo-button/use-undo-redo.ts +184 -0
- package/src/components/tiptap-ui-primitive/avatar/avatar.css +83 -0
- package/src/components/tiptap-ui-primitive/avatar/avatar.tsx +239 -0
- package/src/components/tiptap-ui-primitive/avatar/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/badge/badge-colors.css +358 -0
- package/src/components/tiptap-ui-primitive/badge/badge-group.css +18 -0
- package/src/components/tiptap-ui-primitive/badge/badge.css +93 -0
- package/src/components/tiptap-ui-primitive/badge/badge.tsx +46 -0
- package/src/components/tiptap-ui-primitive/badge/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/button/button-colors.css +6 -0
- package/src/components/tiptap-ui-primitive/button/button-group.css +17 -0
- package/src/components/tiptap-ui-primitive/button/button.css +428 -0
- package/src/components/tiptap-ui-primitive/button/button.tsx +116 -0
- package/src/components/tiptap-ui-primitive/button/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/card/card.css +42 -0
- package/src/components/tiptap-ui-primitive/card/card.tsx +79 -0
- package/src/components/tiptap-ui-primitive/card/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/combobox/combobox.css +15 -0
- package/src/components/tiptap-ui-primitive/combobox/combobox.tsx +73 -0
- package/src/components/tiptap-ui-primitive/combobox/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.css +49 -0
- package/src/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.tsx +98 -0
- package/src/components/tiptap-ui-primitive/dropdown-menu/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/input/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/input/input.css +26 -0
- package/src/components/tiptap-ui-primitive/input/input.tsx +24 -0
- package/src/components/tiptap-ui-primitive/label/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/label/label.css +9 -0
- package/src/components/tiptap-ui-primitive/label/label.tsx +42 -0
- package/src/components/tiptap-ui-primitive/menu/index.tsx +5 -0
- package/src/components/tiptap-ui-primitive/menu/menu-context.ts +19 -0
- package/src/components/tiptap-ui-primitive/menu/menu-hooks.ts +102 -0
- package/src/components/tiptap-ui-primitive/menu/menu-types.ts +56 -0
- package/src/components/tiptap-ui-primitive/menu/menu-utils.ts +64 -0
- package/src/components/tiptap-ui-primitive/menu/menu.css +49 -0
- package/src/components/tiptap-ui-primitive/menu/menu.tsx +235 -0
- package/src/components/tiptap-ui-primitive/popover/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/popover/popover.css +49 -0
- package/src/components/tiptap-ui-primitive/popover/popover.tsx +37 -0
- package/src/components/tiptap-ui-primitive/separator/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/separator/separator.css +19 -0
- package/src/components/tiptap-ui-primitive/separator/separator.tsx +33 -0
- package/src/components/tiptap-ui-primitive/sidebar/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/sidebar/sidebar.css +140 -0
- package/src/components/tiptap-ui-primitive/sidebar/sidebar.tsx +299 -0
- package/src/components/tiptap-ui-primitive/spacer/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/spacer/spacer.tsx +26 -0
- package/src/components/tiptap-ui-primitive/textarea-autosize/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/textarea-autosize/textarea-autosize.tsx +18 -0
- package/src/components/tiptap-ui-primitive/toolbar/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/toolbar/toolbar.css +65 -0
- package/src/components/tiptap-ui-primitive/toolbar/toolbar.tsx +123 -0
- package/src/components/tiptap-ui-primitive/tooltip/index.tsx +1 -0
- package/src/components/tiptap-ui-primitive/tooltip/tooltip.css +21 -0
- package/src/components/tiptap-ui-primitive/tooltip/tooltip.tsx +237 -0
- package/src/components/tiptap-ui-utils/floating-element/floating-element-utils.ts +23 -0
- package/src/components/tiptap-ui-utils/floating-element/floating-element.tsx +343 -0
- package/src/components/tiptap-ui-utils/floating-element/index.tsx +2 -0
- package/src/components/tiptap-ui-utils/suggestion-menu/index.tsx +3 -0
- package/src/components/tiptap-ui-utils/suggestion-menu/suggestion-menu-types.ts +91 -0
- package/src/components/tiptap-ui-utils/suggestion-menu/suggestion-menu-utils.ts +87 -0
- package/src/components/tiptap-ui-utils/suggestion-menu/suggestion-menu.tsx +240 -0
- package/src/content/index.tsx +27 -0
- package/src/content/style.css +12 -0
- package/src/contexts/ai-context.tsx +65 -0
- package/src/contexts/app-context.tsx +159 -0
- package/src/contexts/user-context.tsx +138 -0
- package/src/editor/collaboration/index.tsx +64 -0
- package/src/editor/index.tsx +144 -42
- package/src/hooks/use-composed-ref.ts +47 -0
- package/src/hooks/use-cursor-visibility.ts +69 -0
- package/src/hooks/use-editor.ts +237 -0
- package/src/hooks/use-element-rect.ts +165 -0
- package/src/hooks/use-floating-element.ts +101 -0
- package/src/hooks/use-floating-toolbar-visibility.ts +123 -0
- package/src/hooks/use-is-breakpoint.ts +37 -0
- package/src/hooks/use-isomorphic-layout-effect.ts +11 -0
- package/src/hooks/use-menu-navigation.ts +182 -0
- package/src/hooks/use-on-click-outside.ts +135 -0
- package/src/hooks/use-scrolling.ts +75 -0
- package/src/hooks/use-throttled-callback.ts +48 -0
- package/src/hooks/use-tiptap-editor.ts +49 -0
- package/src/hooks/use-ui-editor-state.ts +29 -0
- package/src/hooks/use-unmount.ts +21 -0
- package/src/hooks/use-window-size.ts +88 -0
- package/src/index.ts +4 -7
- package/src/lib/tiptap-advanced-utils.ts +362 -0
- package/src/lib/tiptap-collab-utils.ts +289 -0
- package/src/lib/tiptap-utils.ts +612 -0
- package/src/locales/en.json +123 -0
- package/src/locales/zh-CN.json +123 -0
- package/src/locales/zh-TW.json +123 -0
- package/src/styles/variables.css +92 -0
- package/README.md +0 -458
- package/src/editor/constants.tsx +0 -66
- package/src/editor/container.css +0 -46
- package/src/editor/control/character-count/index.tsx +0 -39
- package/src/editor/control/drag-handle/index.tsx +0 -85
- package/src/editor/control/drag-handle/use.content.actions.ts +0 -71
- package/src/editor/control/drag-handle/use.data.ts +0 -29
- package/src/editor/control/drag-handle/use.handle.id.ts +0 -6
- package/src/editor/control/index.tsx +0 -35
- package/src/editor/editor.css +0 -626
- package/src/editor/extension/block-quote-figure/BlockquoteFigure.ts +0 -73
- package/src/editor/extension/block-quote-figure/Quote/Quote.ts +0 -31
- package/src/editor/extension/block-quote-figure/Quote/index.ts +0 -1
- package/src/editor/extension/block-quote-figure/QuoteCaption/QuoteCaption.ts +0 -54
- package/src/editor/extension/block-quote-figure/QuoteCaption/index.ts +0 -1
- package/src/editor/extension/block-quote-figure/index.ts +0 -1
- package/src/editor/extension/document/index.ts +0 -5
- package/src/editor/extension/figcaption/Figcaption.ts +0 -90
- package/src/editor/extension/figcaption/index.ts +0 -1
- package/src/editor/extension/figure/Figure.ts +0 -62
- package/src/editor/extension/figure/index.ts +0 -1
- package/src/editor/extension/font-size/FontSize.ts +0 -64
- package/src/editor/extension/font-size/index.ts +0 -1
- package/src/editor/extension/global-drag-handle/clipboard-serializer.ts +0 -28
- package/src/editor/extension/global-drag-handle/index.ts +0 -377
- package/src/editor/extension/heading/index.ts +0 -13
- package/src/editor/extension/horizontal-rule/HorizontalRule.ts +0 -10
- package/src/editor/extension/horizontal-rule/index.ts +0 -1
- package/src/editor/extension/image/index.ts +0 -5
- package/src/editor/extension/image-block/ImageBlock.ts +0 -103
- package/src/editor/extension/image-block/components/ImageBlockMenu.tsx +0 -100
- package/src/editor/extension/image-block/components/ImageBlockView.tsx +0 -47
- package/src/editor/extension/image-block/components/ImageBlockWidth.tsx +0 -40
- package/src/editor/extension/image-block/index.ts +0 -1
- package/src/editor/extension/image-upload/ImageUpload.ts +0 -58
- package/src/editor/extension/image-upload/index.ts +0 -1
- package/src/editor/extension/image-upload/view/ImageUpload.tsx +0 -27
- package/src/editor/extension/image-upload/view/ImageUploader.tsx +0 -64
- package/src/editor/extension/image-upload/view/hooks.ts +0 -109
- package/src/editor/extension/image-upload/view/index.tsx +0 -1
- package/src/editor/extension/index.ts +0 -30
- package/src/editor/extension/link/Link.ts +0 -39
- package/src/editor/extension/link/index.ts +0 -1
- package/src/editor/extension/multi-column/Column.ts +0 -33
- package/src/editor/extension/multi-column/Columns.ts +0 -65
- package/src/editor/extension/multi-column/index.ts +0 -2
- package/src/editor/extension/multi-column/menus/ColumnsMenu.tsx +0 -82
- package/src/editor/extension/multi-column/menus/index.ts +0 -1
- package/src/editor/extension/selection/Selection.ts +0 -36
- package/src/editor/extension/selection/index.ts +0 -1
- package/src/editor/extension/slash-command/MenuList.tsx +0 -145
- package/src/editor/extension/slash-command/groups.ts +0 -153
- package/src/editor/extension/slash-command/index.ts +0 -277
- package/src/editor/extension/slash-command/types.ts +0 -25
- package/src/editor/extension/table/Cell.ts +0 -126
- package/src/editor/extension/table/Header.ts +0 -89
- package/src/editor/extension/table/Row.ts +0 -8
- package/src/editor/extension/table/Table.ts +0 -9
- package/src/editor/extension/table/index.ts +0 -4
- package/src/editor/extension/table/menus/TableColumn/index.tsx +0 -73
- package/src/editor/extension/table/menus/TableColumn/utils.ts +0 -38
- package/src/editor/extension/table/menus/TableRow/index.tsx +0 -74
- package/src/editor/extension/table/menus/TableRow/utils.ts +0 -38
- package/src/editor/extension/table/menus/index.tsx +0 -2
- package/src/editor/extension/table/utils.ts +0 -258
- package/src/editor/extension/task-item/index.ts +0 -1
- package/src/editor/extension/task-item/task-item.ts +0 -225
- package/src/editor/extension/task-list/index.ts +0 -1
- package/src/editor/extension/task-list/task-list.ts +0 -81
- package/src/editor/extension/trailing-node/index.ts +0 -1
- package/src/editor/extension/trailing-node/trailing-node.ts +0 -70
- package/src/editor/extension/unique-id/index.ts +0 -1
- package/src/editor/extension/unique-id/uniqueId.ts +0 -123
- package/src/editor/hooks.ts +0 -264
- package/src/editor/menus/LinkMenu/LinkMenu.tsx +0 -75
- package/src/editor/menus/LinkMenu/index.tsx +0 -1
- package/src/editor/menus/TextMenu/TextMenu.tsx +0 -193
- package/src/editor/menus/TextMenu/components/AIDropdown.tsx +0 -140
- package/src/editor/menus/TextMenu/components/ContentTypePicker.tsx +0 -76
- package/src/editor/menus/TextMenu/components/EditLinkPopover.tsx +0 -25
- package/src/editor/menus/TextMenu/components/FontFamilyPicker.tsx +0 -84
- package/src/editor/menus/TextMenu/components/FontSizePicker.tsx +0 -56
- package/src/editor/menus/TextMenu/hooks/useTextmenuCommands.ts +0 -96
- package/src/editor/menus/TextMenu/hooks/useTextmenuContentTypes.ts +0 -86
- package/src/editor/menus/TextMenu/hooks/useTextmenuStates.ts +0 -50
- package/src/editor/menus/TextMenu/index.tsx +0 -2
- package/src/editor/menus/types.ts +0 -21
- package/src/editor/panels/Colorpicker/ColorButton.tsx +0 -35
- package/src/editor/panels/Colorpicker/Colorpicker.tsx +0 -67
- package/src/editor/panels/Colorpicker/index.tsx +0 -2
- package/src/editor/panels/LinkEditorPanel/LinkEditorPanel.tsx +0 -76
- package/src/editor/panels/LinkEditorPanel/index.tsx +0 -1
- package/src/editor/panels/LinkPreviewPanel/LinkPreviewPanel.tsx +0 -32
- package/src/editor/panels/LinkPreviewPanel/index.tsx +0 -1
- package/src/editor/panels/index.tsx +0 -3
- package/src/editor/types.tsx +0 -38
- package/src/editor/ui/Button/Button.tsx +0 -70
- package/src/editor/ui/Button/index.tsx +0 -2
- package/src/editor/ui/Dropdown/Dropdown.tsx +0 -39
- package/src/editor/ui/Dropdown/index.tsx +0 -1
- package/src/editor/ui/Icon.tsx +0 -21
- package/src/editor/ui/Loader/Loader.tsx +0 -39
- package/src/editor/ui/Loader/index.ts +0 -1
- package/src/editor/ui/Loader/types.ts +0 -7
- package/src/editor/ui/Panel/index.tsx +0 -109
- package/src/editor/ui/PopoverMenu.tsx +0 -127
- package/src/editor/ui/Spinner/Spinner.tsx +0 -10
- package/src/editor/ui/Spinner/index.tsx +0 -1
- package/src/editor/ui/Surface.tsx +0 -27
- package/src/editor/ui/Textarea/Textarea.tsx +0 -20
- package/src/editor/ui/Textarea/index.tsx +0 -1
- package/src/editor/ui/Toggle/Toggle.tsx +0 -39
- package/src/editor/ui/Toggle/index.tsx +0 -1
- package/src/editor/ui/Toolbar.tsx +0 -107
- package/src/editor/ui/Tooltip/index.tsx +0 -77
- package/src/editor/ui/Tooltip/types.ts +0 -17
- package/src/editor/utils/cssVar.ts +0 -14
- package/src/editor/utils/getRenderContainer.ts +0 -39
- package/src/editor/utils/index.ts +0 -16
- package/src/editor/utils/isCustomNodeSelected.ts +0 -47
- package/src/editor/utils/isTextSelected.ts +0 -25
- package/src/editor/utils/locale.ts +0 -5
- package/src/editor/viewer/index.tsx +0 -26
- package/src/globals.css +0 -1
- package/src/locales/en-us.ts +0 -133
- package/src/locales/zh-cn.ts +0 -133
- package/src/locales/zh-tw.ts +0 -133
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"点击查看选项": "Click for options",
|
|
3
|
+
"按住拖动": "Hold for drag",
|
|
4
|
+
"插入块": "Insert block",
|
|
5
|
+
"转换为": "Turn into",
|
|
6
|
+
"正文": "Text",
|
|
7
|
+
"一级标题": "Heading 1",
|
|
8
|
+
"二级标题": "Heading 2",
|
|
9
|
+
"三级标题": "Heading 3",
|
|
10
|
+
"无序列表": "Bulleted list",
|
|
11
|
+
"有序列表": "Numbered list",
|
|
12
|
+
"任务列表": "To-do list",
|
|
13
|
+
"引用": "Blockquote",
|
|
14
|
+
"代码块": "Code block",
|
|
15
|
+
"Bold": "Bold",
|
|
16
|
+
"Italic": "Italic",
|
|
17
|
+
"Underline": "Underline",
|
|
18
|
+
"Strike": "Strike",
|
|
19
|
+
"Code": "Code",
|
|
20
|
+
"Superscript": "Superscript",
|
|
21
|
+
"Subscript": "Subscript",
|
|
22
|
+
"Image align left": "Image align left",
|
|
23
|
+
"Image align center": "Image align center",
|
|
24
|
+
"Image align right": "Image align right",
|
|
25
|
+
"Caption": "Caption",
|
|
26
|
+
"添加标题...": "Add a caption...",
|
|
27
|
+
"Download image": "Download image",
|
|
28
|
+
"Replace": "Replace",
|
|
29
|
+
"Delete": "Delete",
|
|
30
|
+
"链接": "Link",
|
|
31
|
+
"粘贴链接...": "Paste a link...",
|
|
32
|
+
"应用链接": "Apply link",
|
|
33
|
+
"在新窗口打开": "Open in new window",
|
|
34
|
+
"删除链接": "Remove link",
|
|
35
|
+
"文本颜色": "Text color",
|
|
36
|
+
"高亮颜色": "Highlight color",
|
|
37
|
+
"最近使用": "Recently used",
|
|
38
|
+
"Default text": "Default text",
|
|
39
|
+
"Gray text": "Gray text",
|
|
40
|
+
"Brown text": "Brown text",
|
|
41
|
+
"Orange text": "Orange text",
|
|
42
|
+
"Yellow text": "Yellow text",
|
|
43
|
+
"Green text": "Green text",
|
|
44
|
+
"Blue text": "Blue text",
|
|
45
|
+
"Purple text": "Purple text",
|
|
46
|
+
"Pink text": "Pink text",
|
|
47
|
+
"Red text": "Red text",
|
|
48
|
+
"Default background": "Default background",
|
|
49
|
+
"Gray background": "Gray background",
|
|
50
|
+
"Brown background": "Brown background",
|
|
51
|
+
"Orange background": "Orange background",
|
|
52
|
+
"Yellow background": "Yellow background",
|
|
53
|
+
"Green background": "Green background",
|
|
54
|
+
"Blue background": "Blue background",
|
|
55
|
+
"Purple background": "Purple background",
|
|
56
|
+
"Pink background": "Pink background",
|
|
57
|
+
"Red background": "Red background",
|
|
58
|
+
"更多选项": "More options",
|
|
59
|
+
"Align left": "Align left",
|
|
60
|
+
"Align center": "Align center",
|
|
61
|
+
"Align right": "Align right",
|
|
62
|
+
"Align justify": "Align justify",
|
|
63
|
+
"Text": "Text",
|
|
64
|
+
"Heading": "Heading",
|
|
65
|
+
"bulletlist": "Bullet list",
|
|
66
|
+
"orderedlist": "Ordered list",
|
|
67
|
+
"tasklist": "Task list",
|
|
68
|
+
"Blockquote": "Blockquote",
|
|
69
|
+
"Code Block": "Code block",
|
|
70
|
+
"Table": "Table",
|
|
71
|
+
"image": "Image",
|
|
72
|
+
"Color": "Color",
|
|
73
|
+
"对齐": "Align",
|
|
74
|
+
"Align top": "Align top",
|
|
75
|
+
"Align middle": "Align middle",
|
|
76
|
+
"Align bottom": "Align bottom",
|
|
77
|
+
"适应宽度": "Fit to width",
|
|
78
|
+
"清空所有内容": "Clear all contents",
|
|
79
|
+
"重置格式": "Reset format",
|
|
80
|
+
"Heading 1": "Heading 1",
|
|
81
|
+
"Heading 2": "Heading 2",
|
|
82
|
+
"Heading 3": "Heading 3",
|
|
83
|
+
"Bullet List": "Bullet List",
|
|
84
|
+
"Ordered List": "Ordered List",
|
|
85
|
+
"Task List": "Task List",
|
|
86
|
+
"复制": "Copy",
|
|
87
|
+
"复制到剪贴板": "Copy to clipboard",
|
|
88
|
+
"复制锚点链接": "Copy anchor link",
|
|
89
|
+
"过滤...": "Filter...",
|
|
90
|
+
"Numbered List": "Numbered List",
|
|
91
|
+
"To-do list": "To-do list",
|
|
92
|
+
"Mention": "Mention",
|
|
93
|
+
"Image": "Image",
|
|
94
|
+
"Style": "Style",
|
|
95
|
+
"Insert": "Insert",
|
|
96
|
+
"Click to upload": "Click to upload",
|
|
97
|
+
"or drag and drop": "or drag and drop",
|
|
98
|
+
"Maximum {{limit}} file, {{maxSize}}MB each.": "Maximum {{limit}} file, {{maxSize}}MB each.",
|
|
99
|
+
"Maximum {{limit}} files, {{maxSize}}MB each.": "Maximum {{limit}} files, {{maxSize}}MB each.",
|
|
100
|
+
"Move row up": "Move row up",
|
|
101
|
+
"Move row down": "Move row down",
|
|
102
|
+
"Move column left": "Move column left",
|
|
103
|
+
"Move column right": "Move column right",
|
|
104
|
+
"Header row": "Header row",
|
|
105
|
+
"Header column": "Header column",
|
|
106
|
+
"Insert row above": "Insert row above",
|
|
107
|
+
"Insert row below": "Insert row below",
|
|
108
|
+
"Insert column left": "Insert column left",
|
|
109
|
+
"Insert column right": "Insert column right",
|
|
110
|
+
"Sort row A-Z": "Sort row A-Z",
|
|
111
|
+
"Sort row Z-A": "Sort row Z-A",
|
|
112
|
+
"Sort column A-Z": "Sort column A-Z",
|
|
113
|
+
"Sort column Z-A": "Sort column Z-A",
|
|
114
|
+
"Clear row contents": "Clear row contents",
|
|
115
|
+
"Clear column contents": "Clear column contents",
|
|
116
|
+
"Clear contents": "Clear contents",
|
|
117
|
+
"Merge cells": "Merge cells",
|
|
118
|
+
"Split cell": "Split cell",
|
|
119
|
+
"Duplicate row": "Duplicate row",
|
|
120
|
+
"Duplicate column": "Duplicate column",
|
|
121
|
+
"Delete row": "Delete row",
|
|
122
|
+
"Delete column": "Delete column"
|
|
123
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"点击查看选项": "点击查看选项",
|
|
3
|
+
"按住拖动": "按住拖动",
|
|
4
|
+
"插入块": "插入块",
|
|
5
|
+
"转换为": "转换为",
|
|
6
|
+
"正文": "正文",
|
|
7
|
+
"一级标题": "一级标题",
|
|
8
|
+
"二级标题": "二级标题",
|
|
9
|
+
"三级标题": "三级标题",
|
|
10
|
+
"无序列表": "无序列表",
|
|
11
|
+
"有序列表": "有序列表",
|
|
12
|
+
"任务列表": "任务列表",
|
|
13
|
+
"引用": "引用",
|
|
14
|
+
"代码块": "代码块",
|
|
15
|
+
"Bold": "加粗",
|
|
16
|
+
"Italic": "斜体",
|
|
17
|
+
"Underline": "下划线",
|
|
18
|
+
"Strike": "删除线",
|
|
19
|
+
"Code": "代码",
|
|
20
|
+
"Superscript": "上标",
|
|
21
|
+
"Subscript": "下标",
|
|
22
|
+
"Image align left": "左对齐",
|
|
23
|
+
"Image align center": "居中对齐",
|
|
24
|
+
"Image align right": "右对齐",
|
|
25
|
+
"Caption": "标题",
|
|
26
|
+
"添加标题...": "添加标题...",
|
|
27
|
+
"Download image": "下载图片",
|
|
28
|
+
"Replace": "替换",
|
|
29
|
+
"Delete": "删除",
|
|
30
|
+
"链接": "链接",
|
|
31
|
+
"粘贴链接...": "粘贴链接...",
|
|
32
|
+
"应用链接": "应用链接",
|
|
33
|
+
"在新窗口打开": "在新窗口打开",
|
|
34
|
+
"删除链接": "删除链接",
|
|
35
|
+
"文本颜色": "文本颜色",
|
|
36
|
+
"高亮颜色": "高亮颜色",
|
|
37
|
+
"最近使用": "最近使用",
|
|
38
|
+
"Default text": "默认文本",
|
|
39
|
+
"Gray text": "灰色文本",
|
|
40
|
+
"Brown text": "棕色文本",
|
|
41
|
+
"Orange text": "橙色文本",
|
|
42
|
+
"Yellow text": "黄色文本",
|
|
43
|
+
"Green text": "绿色文本",
|
|
44
|
+
"Blue text": "蓝色文本",
|
|
45
|
+
"Purple text": "紫色文本",
|
|
46
|
+
"Pink text": "粉色文本",
|
|
47
|
+
"Red text": "红色文本",
|
|
48
|
+
"Default background": "默认背景",
|
|
49
|
+
"Gray background": "灰色背景",
|
|
50
|
+
"Brown background": "棕色背景",
|
|
51
|
+
"Orange background": "橙色背景",
|
|
52
|
+
"Yellow background": "黄色背景",
|
|
53
|
+
"Green background": "绿色背景",
|
|
54
|
+
"Blue background": "蓝色背景",
|
|
55
|
+
"Purple background": "紫色背景",
|
|
56
|
+
"Pink background": "粉色背景",
|
|
57
|
+
"Red background": "红色背景",
|
|
58
|
+
"更多选项": "更多选项",
|
|
59
|
+
"Align left": "左对齐",
|
|
60
|
+
"Align center": "居中对齐",
|
|
61
|
+
"Align right": "右对齐",
|
|
62
|
+
"Align justify": "两端对齐",
|
|
63
|
+
"Text": "正文",
|
|
64
|
+
"Heading": "标题",
|
|
65
|
+
"bulletlist": "无序列表",
|
|
66
|
+
"orderedlist": "有序列表",
|
|
67
|
+
"tasklist": "任务列表",
|
|
68
|
+
"Blockquote": "引用",
|
|
69
|
+
"Code Block": "代码块",
|
|
70
|
+
"Table": "表格",
|
|
71
|
+
"image": "图片",
|
|
72
|
+
"Color": "颜色",
|
|
73
|
+
"对齐": "对齐",
|
|
74
|
+
"Align top": "顶部对齐",
|
|
75
|
+
"Align middle": "中间对齐",
|
|
76
|
+
"Align bottom": "底部对齐",
|
|
77
|
+
"适应宽度": "适应宽度",
|
|
78
|
+
"清空所有内容": "清空所有内容",
|
|
79
|
+
"重置格式": "重置格式",
|
|
80
|
+
"Heading 1": "一级标题",
|
|
81
|
+
"Heading 2": "二级标题",
|
|
82
|
+
"Heading 3": "三级标题",
|
|
83
|
+
"Bullet List": "无序列表",
|
|
84
|
+
"Ordered List": "有序列表",
|
|
85
|
+
"Task List": "任务列表",
|
|
86
|
+
"复制": "复制",
|
|
87
|
+
"复制到剪贴板": "复制到剪贴板",
|
|
88
|
+
"复制锚点链接": "复制锚点链接",
|
|
89
|
+
"过滤...": "过滤...",
|
|
90
|
+
"Numbered List": "有序列表",
|
|
91
|
+
"To-do list": "任务列表",
|
|
92
|
+
"Mention": "提及",
|
|
93
|
+
"Image": "图片",
|
|
94
|
+
"Style": "样式",
|
|
95
|
+
"Insert": "插入",
|
|
96
|
+
"Click to upload": "点击上传",
|
|
97
|
+
"or drag and drop": "或拖放",
|
|
98
|
+
"Maximum {{limit}} file, {{maxSize}}MB each.": "最多 {{limit}} 个文件,每个 {{maxSize}}MB",
|
|
99
|
+
"Maximum {{limit}} files, {{maxSize}}MB each.": "最多 {{limit}} 个文件,每个 {{maxSize}}MB",
|
|
100
|
+
"Move row up": "上移行",
|
|
101
|
+
"Move row down": "下移行",
|
|
102
|
+
"Move column left": "左移列",
|
|
103
|
+
"Move column right": "右移列",
|
|
104
|
+
"Header row": "表头行",
|
|
105
|
+
"Header column": "表头列",
|
|
106
|
+
"Insert row above": "插入行上方",
|
|
107
|
+
"Insert row below": "插入行下方",
|
|
108
|
+
"Insert column left": "插入列左侧",
|
|
109
|
+
"Insert column right": "插入列右侧",
|
|
110
|
+
"Sort row A-Z": "排序行 A-Z",
|
|
111
|
+
"Sort row Z-A": "排序行 Z-A",
|
|
112
|
+
"Sort column A-Z": "排序列 A-Z",
|
|
113
|
+
"Sort column Z-A": "排序列 Z-A",
|
|
114
|
+
"Clear row contents": "清空行内容",
|
|
115
|
+
"Clear column contents": "清空列内容",
|
|
116
|
+
"Clear contents": "清空内容",
|
|
117
|
+
"Merge cells": "合并单元格",
|
|
118
|
+
"Split cell": "拆分单元格",
|
|
119
|
+
"Duplicate row": "复制行",
|
|
120
|
+
"Duplicate column": "复制列",
|
|
121
|
+
"Delete row": "删除行",
|
|
122
|
+
"Delete column": "删除列"
|
|
123
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"点击查看选项": "點擊查看選項",
|
|
3
|
+
"按住拖动": "按住拖動",
|
|
4
|
+
"插入块": "插入塊",
|
|
5
|
+
"转换为": "轉換為",
|
|
6
|
+
"正文": "正文",
|
|
7
|
+
"一级标题": "一級標題",
|
|
8
|
+
"二级标题": "二級標題",
|
|
9
|
+
"三级标题": "三級標題",
|
|
10
|
+
"无序列表": "無序列表",
|
|
11
|
+
"有序列表": "有序列表",
|
|
12
|
+
"任务列表": "任務列表",
|
|
13
|
+
"引用": "引用",
|
|
14
|
+
"代码块": "代碼塊",
|
|
15
|
+
"Bold": "加粗",
|
|
16
|
+
"Italic": "斜體",
|
|
17
|
+
"Underline": "下劃線",
|
|
18
|
+
"Strike": "刪除線",
|
|
19
|
+
"Code": "代碼",
|
|
20
|
+
"Superscript": "上標",
|
|
21
|
+
"Subscript": "下標",
|
|
22
|
+
"Image align left": "左對齊",
|
|
23
|
+
"Image align center": "居中對齊",
|
|
24
|
+
"Image align right": "右對齊",
|
|
25
|
+
"Caption": "標題",
|
|
26
|
+
"添加标题...": "添加標題...",
|
|
27
|
+
"Download image": "下載圖片",
|
|
28
|
+
"Replace": "替換",
|
|
29
|
+
"Delete": "刪除",
|
|
30
|
+
"链接": "鏈接",
|
|
31
|
+
"粘贴链接...": "粘貼鏈接...",
|
|
32
|
+
"应用链接": "應用鏈接",
|
|
33
|
+
"在新窗口打开": "在新窗口打開",
|
|
34
|
+
"删除链接": "刪除鏈接",
|
|
35
|
+
"文本颜色": "文本顏色",
|
|
36
|
+
"高亮颜色": "高亮顏色",
|
|
37
|
+
"最近使用": "最近使用",
|
|
38
|
+
"Default text": "預設文字",
|
|
39
|
+
"Gray text": "灰色文字",
|
|
40
|
+
"Brown text": "棕色文字",
|
|
41
|
+
"Orange text": "橙色文字",
|
|
42
|
+
"Yellow text": "黃色文字",
|
|
43
|
+
"Green text": "綠色文字",
|
|
44
|
+
"Blue text": "藍色文字",
|
|
45
|
+
"Purple text": "紫色文字",
|
|
46
|
+
"Pink text": "粉色文字",
|
|
47
|
+
"Red text": "紅色文字",
|
|
48
|
+
"Default background": "預設背景",
|
|
49
|
+
"Gray background": "灰色背景",
|
|
50
|
+
"Brown background": "棕色背景",
|
|
51
|
+
"Orange background": "橙色背景",
|
|
52
|
+
"Yellow background": "黃色背景",
|
|
53
|
+
"Green background": "綠色背景",
|
|
54
|
+
"Blue background": "藍色背景",
|
|
55
|
+
"Purple background": "紫色背景",
|
|
56
|
+
"Pink background": "粉色背景",
|
|
57
|
+
"Red background": "紅色背景",
|
|
58
|
+
"更多选项": "更多選項",
|
|
59
|
+
"Align left": "左對齊",
|
|
60
|
+
"Align center": "居中對齊",
|
|
61
|
+
"Align right": "右對齊",
|
|
62
|
+
"Align justify": "兩端對齊",
|
|
63
|
+
"Text": "正文",
|
|
64
|
+
"Heading": "標題",
|
|
65
|
+
"bulletlist": "無序列表",
|
|
66
|
+
"orderedlist": "有序列表",
|
|
67
|
+
"tasklist": "任務列表",
|
|
68
|
+
"Blockquote": "引用",
|
|
69
|
+
"Code Block": "代碼塊",
|
|
70
|
+
"Table": "表格",
|
|
71
|
+
"image": "圖片",
|
|
72
|
+
"Color": "顏色",
|
|
73
|
+
"对齐": "對齊",
|
|
74
|
+
"Align top": "頂部對齊",
|
|
75
|
+
"Align middle": "中間對齊",
|
|
76
|
+
"Align bottom": "底部對齊",
|
|
77
|
+
"适应宽度": "適應寬度",
|
|
78
|
+
"清空所有内容": "清空所有內容",
|
|
79
|
+
"重置格式": "重置格式",
|
|
80
|
+
"Heading 1": "一級標題",
|
|
81
|
+
"Heading 2": "二級標題",
|
|
82
|
+
"Heading 3": "三級標題",
|
|
83
|
+
"Bullet List": "無序列表",
|
|
84
|
+
"Ordered List": "有序列表",
|
|
85
|
+
"Task List": "任務列表",
|
|
86
|
+
"复制": "複製",
|
|
87
|
+
"复制到剪贴板": "複製到剪貼板",
|
|
88
|
+
"复制锚点链接": "複製錨點鏈接",
|
|
89
|
+
"过滤...": "過濾...",
|
|
90
|
+
"Numbered List": "有序列表",
|
|
91
|
+
"To-do list": "任務列表",
|
|
92
|
+
"Mention": "提及",
|
|
93
|
+
"Image": "圖片",
|
|
94
|
+
"Style": "樣式",
|
|
95
|
+
"Insert": "插入",
|
|
96
|
+
"Click to upload": "點擊上傳",
|
|
97
|
+
"or drag and drop": "或拖放",
|
|
98
|
+
"Maximum {{limit}} file, {{maxSize}}MB each.": "最多 {{limit}} 個檔案,每個 {{maxSize}}MB",
|
|
99
|
+
"Maximum {{limit}} files, {{maxSize}}MB each.": "最多 {{limit}} 個檔案,每個 {{maxSize}}MB",
|
|
100
|
+
"Move row up": "上移行",
|
|
101
|
+
"Move row down": "下移行",
|
|
102
|
+
"Move column left": "左移列",
|
|
103
|
+
"Move column right": "右移列",
|
|
104
|
+
"Header row": "表頭行",
|
|
105
|
+
"Header column": "表頭列",
|
|
106
|
+
"Insert row above": "插入行上方",
|
|
107
|
+
"Insert row below": "插入行下方",
|
|
108
|
+
"Insert column left": "插入列左侧",
|
|
109
|
+
"Insert column right": "插入列右侧",
|
|
110
|
+
"Sort row A-Z": "排序行 A-Z",
|
|
111
|
+
"Sort row Z-A": "排序行 Z-A",
|
|
112
|
+
"Sort column A-Z": "排序列 A-Z",
|
|
113
|
+
"Sort column Z-A": "排序列 Z-A",
|
|
114
|
+
"Clear row contents": "清空行內容",
|
|
115
|
+
"Clear column contents": "清空列內容",
|
|
116
|
+
"Clear contents": "清空內容",
|
|
117
|
+
"Merge cells": "合并單元格",
|
|
118
|
+
"Split cell": "拆分單元格",
|
|
119
|
+
"Duplicate row": "複製行",
|
|
120
|
+
"Duplicate column": "複製列",
|
|
121
|
+
"Delete row": "刪除行",
|
|
122
|
+
"Delete column": "刪除列"
|
|
123
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Text colors - Light mode */
|
|
3
|
+
--tt-color-text: hsl(0, 0%, 20%);
|
|
4
|
+
--tt-color-text-gray: hsl(45, 2%, 46%);
|
|
5
|
+
--tt-color-text-brown: hsl(19, 31%, 47%);
|
|
6
|
+
--tt-color-text-orange: hsl(30, 89%, 45%);
|
|
7
|
+
--tt-color-text-yellow: hsl(38, 62%, 49%);
|
|
8
|
+
--tt-color-text-green: hsl(148, 32%, 39%);
|
|
9
|
+
--tt-color-text-blue: hsl(202, 54%, 43%);
|
|
10
|
+
--tt-color-text-purple: hsl(274, 32%, 54%);
|
|
11
|
+
--tt-color-text-pink: hsl(328, 49%, 53%);
|
|
12
|
+
--tt-color-text-red: hsl(2, 62%, 55%);
|
|
13
|
+
|
|
14
|
+
--tt-color-text-contrast: hsla(0, 0%, 0%, 0.1);
|
|
15
|
+
--tt-color-text-gray-contrast: hsla(39, 26%, 26%, 0.15);
|
|
16
|
+
--tt-color-text-brown-contrast: hsla(18, 43%, 69%, 0.35);
|
|
17
|
+
--tt-color-text-orange-contrast: hsla(24, 73%, 55%, 0.27);
|
|
18
|
+
--tt-color-text-yellow-contrast: hsla(44, 82%, 59%, 0.39);
|
|
19
|
+
--tt-color-text-green-contrast: hsla(126, 29%, 60%, 0.27);
|
|
20
|
+
--tt-color-text-blue-contrast: hsla(202, 54%, 59%, 0.27);
|
|
21
|
+
--tt-color-text-purple-contrast: hsla(274, 37%, 64%, 0.27);
|
|
22
|
+
--tt-color-text-pink-contrast: hsla(331, 60%, 71%, 0.27);
|
|
23
|
+
--tt-color-text-red-contrast: hsla(8, 79%, 79%, 0.4);
|
|
24
|
+
|
|
25
|
+
/* Highlight colors - Light mode */
|
|
26
|
+
--tt-color-highlight-gray: rgb(248, 248, 247);
|
|
27
|
+
--tt-color-highlight-brown: rgb(244, 238, 238);
|
|
28
|
+
--tt-color-highlight-orange: rgb(251, 236, 221);
|
|
29
|
+
--tt-color-highlight-yellow: #fef9c3;
|
|
30
|
+
--tt-color-highlight-green: #dcfce7;
|
|
31
|
+
--tt-color-highlight-blue: #e0f2fe;
|
|
32
|
+
--tt-color-highlight-purple: #f3e8ff;
|
|
33
|
+
--tt-color-highlight-pink: rgb(252, 241, 246);
|
|
34
|
+
--tt-color-highlight-red: #ffe4e6;
|
|
35
|
+
|
|
36
|
+
--tt-color-highlight-gray-contrast: rgba(84, 72, 49, 0.15);
|
|
37
|
+
--tt-color-highlight-brown-contrast: rgba(210, 162, 141, 0.35);
|
|
38
|
+
--tt-color-highlight-orange-contrast: rgba(224, 124, 57, 0.27);
|
|
39
|
+
--tt-color-highlight-yellow-contrast: #fbe604;
|
|
40
|
+
--tt-color-highlight-green-contrast: #c7fad8;
|
|
41
|
+
--tt-color-highlight-blue-contrast: #ceeafd;
|
|
42
|
+
--tt-color-highlight-purple-contrast: #e4ccff;
|
|
43
|
+
--tt-color-highlight-pink-contrast: rgba(225, 136, 179, 0.27);
|
|
44
|
+
--tt-color-highlight-red-contrast: #ffccd0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Dark mode */
|
|
48
|
+
.dark {
|
|
49
|
+
/* Text colors - Dark mode */
|
|
50
|
+
--tt-color-text: hsl(0, 0%, 85%);
|
|
51
|
+
--tt-color-text-gray: hsl(0, 0%, 61%);
|
|
52
|
+
--tt-color-text-brown: hsl(18, 35%, 58%);
|
|
53
|
+
--tt-color-text-orange: hsl(25, 53%, 53%);
|
|
54
|
+
--tt-color-text-yellow: hsl(36, 54%, 55%);
|
|
55
|
+
--tt-color-text-green: hsl(145, 32%, 47%);
|
|
56
|
+
--tt-color-text-blue: hsl(202, 64%, 52%);
|
|
57
|
+
--tt-color-text-purple: hsl(270, 55%, 62%);
|
|
58
|
+
--tt-color-text-pink: hsl(329, 57%, 58%);
|
|
59
|
+
--tt-color-text-red: hsl(1, 69%, 60%);
|
|
60
|
+
|
|
61
|
+
--tt-color-text-contrast: hsla(0, 0%, 100%, 0.09);
|
|
62
|
+
--tt-color-text-gray-contrast: hsla(0, 0%, 100%, 0.09);
|
|
63
|
+
--tt-color-text-brown-contrast: hsla(17, 45%, 50%, 0.25);
|
|
64
|
+
--tt-color-text-orange-contrast: hsla(27, 82%, 53%, 0.2);
|
|
65
|
+
--tt-color-text-yellow-contrast: hsla(35, 49%, 47%, 0.2);
|
|
66
|
+
--tt-color-text-green-contrast: hsla(151, 55%, 39%, 0.2);
|
|
67
|
+
--tt-color-text-blue-contrast: hsla(202, 54%, 43%, 0.2);
|
|
68
|
+
--tt-color-text-purple-contrast: hsla(271, 56%, 60%, 0.18);
|
|
69
|
+
--tt-color-text-pink-contrast: hsla(331, 67%, 58%, 0.22);
|
|
70
|
+
--tt-color-text-red-contrast: hsla(0, 67%, 60%, 0.25);
|
|
71
|
+
|
|
72
|
+
/* Highlight colors - Dark mode */
|
|
73
|
+
--tt-color-highlight-gray: rgb(47, 47, 47);
|
|
74
|
+
--tt-color-highlight-brown: rgb(74, 50, 40);
|
|
75
|
+
--tt-color-highlight-orange: rgb(92, 59, 35);
|
|
76
|
+
--tt-color-highlight-yellow: #6b6524;
|
|
77
|
+
--tt-color-highlight-green: #509568;
|
|
78
|
+
--tt-color-highlight-blue: #6e92aa;
|
|
79
|
+
--tt-color-highlight-purple: #583e74;
|
|
80
|
+
--tt-color-highlight-pink: rgb(78, 44, 60);
|
|
81
|
+
--tt-color-highlight-red: #743e42;
|
|
82
|
+
|
|
83
|
+
--tt-color-highlight-gray-contrast: rgba(255, 255, 255, 0.094);
|
|
84
|
+
--tt-color-highlight-brown-contrast: rgba(184, 101, 69, 0.25);
|
|
85
|
+
--tt-color-highlight-orange-contrast: rgba(233, 126, 37, 0.2);
|
|
86
|
+
--tt-color-highlight-yellow-contrast: #58531e;
|
|
87
|
+
--tt-color-highlight-green-contrast: #47855d;
|
|
88
|
+
--tt-color-highlight-blue-contrast: #5e86a1;
|
|
89
|
+
--tt-color-highlight-purple-contrast: #4c3564;
|
|
90
|
+
--tt-color-highlight-pink-contrast: rgba(220, 76, 145, 0.22);
|
|
91
|
+
--tt-color-highlight-red-contrast: #643539;
|
|
92
|
+
}
|