@ctzhian/tiptap 2.1.8 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor/demo.js +1 -1
- package/dist/EditorMarkdown/UploadProgress.js +0 -1
- package/dist/asset/css/index.css +5 -0
- package/dist/extension/component/Flow/index.js +4 -8
- package/dist/extension/component/Iframe/index.js +2 -4
- package/dist/extension/component/Image/index.js +4 -8
- package/dist/extension/component/TableHandle/TableHandleAddButton.js +7 -24
- package/dist/extension/component/TableHandle/TableHandleMenu.js +26 -0
- package/dist/extension/component/TableSelectionOverlay/index.js +2 -4
- package/dist/extension/component/Video/index.js +4 -8
- package/dist/extension/node/FileHandler.d.ts +1 -1
- package/dist/index.css +23 -13
- package/package.json +1 -1
package/dist/Editor/demo.js
CHANGED
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import "../index.css";
|
|
9
9
|
var EDITABLE = true;
|
|
10
10
|
var DEFAULT_CONTENT_TYPE = 'html';
|
|
11
|
-
var DEFAULT_HTML_CONTENT = "<p></p>\n<pre data-title=\"\u5B89\u88C5\u76EE\u5F55\"><code>var a = 1;</code></pre>\n<p><img src=\"https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg\" width=\"100\"></p>\n<p><img src=\"https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg\" width=\"100\"></p>\n<h6 id=\"4b8d8c4e-29dc-4674-928b-b9ded0e363ae\" data-toc-id=\"4b8d8c4e-29dc-4674-928b-b9ded0e363ae\"><span data-name=\"watch\" data-type=\"emoji\">\u231A</span> \u8868\u683C\u64CD\u4F5C</h6>\n<table><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" colwidth=\"361\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u94FE\u63A5</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u590D\u6742\u6587\u672C</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u56FE\u7247</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u9644\u4EF6</p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" colwidth=\"361\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><a target=\"_blank\" class=\"MuiBox-root css-1ivg9gg\" type=\"icon\" rel=\"noopener noreferrer\" title=\"\u70B9\u51FB\u6B64\u5904\u8DF3\u8F6C\" href=\"http://localhost:8000/components/editor\">\u70B9\u51FB\u6B64\u5904\u8DF3\u8F6C</a></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><code>\u77E5</code><span style=\"background-color: rgb(255, 204, 188); color: rgb(90, 141, 218);\">\u529B</span><span style=\"color: rgb(90, 141, 218);\">\u4F9B</span><sup>\u5386</sup><sub>\u53F2</sub><u>\u52A8</u><s>\u5927</s><span style=\"background-color: rgb(172, 84, 84);\">\u501F</span><mark>\u7B54</mark></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><img src=\"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg\" width=\"100\"></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA.txt\" data-size=\"18.27 KB\"></span></p></td></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" colwidth=\"361\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" controls=\"true\" width=\"75%\"></video></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p><audio src=\"http://vjs.zencdn.net/v/oceans.mp4\" controls=\"true\"></audio></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p></td></tr></tbody></table>\n<p><img src=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" width=\"100\"></p>\n<h6 id=\"a025f782-910f-4f17-9d0b-8f31f9cde175\" data-toc-id=\"a025f782-910f-4f17-9d0b-8f31f9cde175\"><span data-name=\"page_facing_up\" data-type=\"emoji\">\uD83D\uDCC4</span> \u6587\u672C\u5904\u7406</h6>\n<p>PandaWiki \u662F\u4E00\u6B3E AI \u5927\u6A21<code>\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D</code>\u5EFA\u7CFB\u7EDF\uFF0CF<strong>AQ \u3001 \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI </strong>\u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u501F<span style=\"color: rgb(90, 141, 218);\">\u52A9\u5927\u6A21\u578B\u7684</span><span style=\"background-color: rgb(255, 204, 188); color: rgb(90, 141, 218);\">\u529B\u91CF\u4E3A\u4F60\u63D0</span><span style=\"color: rgb(90, 141, 218);\">\u4F9B AI \u521B</span>\u4F5C\u80FD\u529B\u3002PandaWiki \u662F<u>\u4E00\u6B3E AI \u5927\u6A21\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D\u5EFA\u7CFB\u7EDF\uFF0C\u5E2E</u>\u52A9\u4F60\u5FEB\u901F\u6784\u5EFA\u667A\u80FD\u5316\u7684 <s><u>\u4EA7\u54C1\u6587\u6863\u3001\u6280\u672F</u></s>\u6587\u6863\u3001FAQ \u3001<s> \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684</s>\u529B\u91CF\u7CFB\u7EDF \uFF0C<span style=\"background-color: rgb(172, 84, 84);\">\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE</span>\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u7684\u529B\u91CF\u4E3A<mark>\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001</mark> AI \u641C\u7D22\u3002</p>\n<a target=\"_blank\" type=\"block\" href=\"http://localhost:8000/components/editor\" title=\"\u770B\u98CE\u666F\">\u770B\u98CE\u666F</a>\n<h6>\uD83D\uDCCE \u9644\u4EF6</h6>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA\uFF1F\u8C01\u662F\u6211\u4EEC\u7684\u670B\u53CB\uFF1F\u8FD9\u4E2A\u95EE\u9898\u662F\u9769\u547D\u7684\u9996\u8981\u95EE\u9898\u3002\u4E2D\u56FD\u8FC7\u53BB\u4E00\u5207\u9769\u547D\u6597\u4E89\u6210.txt\" data-size=\"18.27 KB\"></div>\n<p>\u884C\u5185\u9644\u4EF6\uFF1A<span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"font_4856251_qynqqohzdp.js\" data-size=\"412.34 KB\"></span><span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u96F7\u6C60\u9879\u76EE\u8BBE\u8BA1\u65B9\u6848.docx\" data-size=\"635.74 KB\"></span></p>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"b0f4a3e0-639f-4c09-ab33-ea9417939f87.tiff\" data-size=\"3.03 MB\"></div>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u957F\u4EAD\u79D1\u6280\u516C\u53F8\u4ECB\u7ECDPPT-25.07.007_\u526F\u672C.pptx\" data-size=\"40.18 MB\"></div>\n<h6><span data-name=\"loudspeaker\" data-type=\"emoji\">\uD83D\uDCE2</span> \u97F3\u9891</h6>\n<audio src=\"http://vjs.zencdn.net/v/oceans.mp4\" controls=\"true\"></audio>\n<h6 id=\"1739ed5e-f03c-4c2f-b763-37505601c935\" data-toc-id=\"1739ed5e-f03c-4c2f-b763-37505601c935\"><span data-name=\"video_camera\" data-type=\"emoji\">\uD83D\uDCF9</span> \u89C6\u9891</h6>\n<video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" controls=\"true\" width=\"400\" data-align=\"center\"></video>\n<h6 id=\"746ea233-0e30-44a6-849a-090202217299\" data-toc-id=\"746ea233-0e30-44a6-849a-090202217299\">\u26A0\uFE0F \u8B66\u544A\u5757</h6>\n<div data-id=\"alert_5ysakwbhvqv\" data-variant=\"warning\" data-type=\"icon\" data-node=\"alert\"><p>\u6B64\u65F6\u8FD9\u662F\u4E00\u4E2A\u8B66\u544A\u5757\u3002</p></div>\n<h6 id=\"ebb64062-9efb-4de8-887f-7f8b7f9e54ca\" data-toc-id=\"ebb64062-9efb-4de8-887f-7f8b7f9e54ca\"><span data-name=\"bar_chart\" data-type=\"emoji\">\uD83D\uDCCA</span> \u6D41\u7A0B\u56FE\u64CD\u4F5C</h6>\n<div data-type=\"flow\" data-code=\"mindmap\n root((mindmap))\n Origins\n Long history\n ::icon(fa fa-book)\n Popularisation\n British popular psychology author Tony Buzan\n Research\n On effectiveness<br/>and features\n On Automatic creation\n Uses\n Creative techniques\n Strategic planning\n Argument mapping\n Tools\n Pen and paper\n Mermaid\" data-width=\"246px\"></div>\n";
|
|
11
|
+
var DEFAULT_HTML_CONTENT = "<p></p>\n<ol class=\"ordered-list\" data-type=\"orderedList\"><li><p>\u653E\u5047\u6740\u4EBA\u7684\u65B9\u5F0F\u963F\u51E1\u8FBE</p></li><li><p>\u53D1\u70E7\u5927\u6DA6\u53D1\u770B\u89C1</p><ol class=\"ordered-list\" data-type=\"orderedList\"><li><p>\u53D1\u5C31\u7B97\u4E86\u5FEB\u9012\u8D39</p><ol class=\"ordered-list\" data-type=\"orderedList\"><li><p>\u653E\u5047\u554A\u4F46\u662F\u4F60\u770B\u653E\u5047\u554A\u867D\u7136\u653E</p></li></ol></li></ol></li></ol>\n<ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u53D1\u5BB6\u53F2\u4F60\u7684\u770B\u6CD5</p></li><li><p>\u53D1\u751F\u7684\u6FC0\u70C8\u53CD\u6297\u5565\u7684\u5C31\u53D1\u7684\u662F\u653E\u5047\u4E86</p><ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u53D1\u70E7\u7684\u798F\u5229\u80AF\u5B9A\u6492\u9152\u75AF\u90A3\u53EF\u662F\u6253\u98DE\u673A\u554A\u662F\u4F60\u7684\u5BA2\u670D\u5C31\u662F\u5927\u6DA6\u53D1</p></li><li><p>\u53D1\u751F\u7684\u6D6A\u8D39\u7A7A\u95F4\u5565\u7684\u5357\u65B9\u5DE8\u517D\u9F99\u7684\u770B\u6CD5\u9759\u5B89\u5BFA\u5E97\u7406\u53D1\u5E08\u89E3\u653E\u4E1C\u8DEF</p><ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u53D1\u751F\u7684\u53D1\u53D1\u987A\u4E30\u90A3\u53EF\u662F\u6253\u98DE\u673A\u554A\u867D\u7136\u5BA2\u670D</p></li></ul></li></ul></li></ul>\n<ul data-type=\"taskList\"><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"false\"><label><input type=\"checkbox\"><span></span></label><div><p>\u53D1\u5565\u7684</p></div></li><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"true\"><label><input type=\"checkbox\" checked=\"checked\"><span></span></label><div><p>\u53D1\u5565\u5446\u4F60</p><ul data-type=\"taskList\"><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"false\"><label><input type=\"checkbox\"><span></span></label><div><p>\u53D1\u5927\u4E86</p><ul data-type=\"taskList\"><li class=\"task-item\" data-type=\"taskItem\" data-checked=\"false\"><label><input type=\"checkbox\"><span></span></label><div><p>\u53D1\u7684\u65F6\u95F4\u6765\u770B</p></div></li></ul></div></li></ul></div></li></ul>\n<div class=\"tableWrapper\"><div class=\"table-container\"><table style=\"min-width: 500px;\"><colgroup><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"><col style=\"min-width: 100px;\"></colgroup><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p>1</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p>2</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p>3</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p>a</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" style=\"\"><p>B</p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" style=\"\"><p>4</p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p>5</p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p>6</p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p>C</p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p>D</p></td></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" style=\"\"><p>7</p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p>8</p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p>9</p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p>E</p></td><td colspan=\"1\" rowspan=\"1\" style=\"\"><p>F</p></td></tr></tbody></table></div><div class=\"table-controls\"></div><div class=\"table-selection-overlay-container\"></div></div>\n<pre data-title=\"\u5B89\u88C5\u76EE\u5F55\"><code>var a = 1;</code></pre>\n<p><img src=\"https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg\" width=\"100\"></p>\n<p><img src=\"https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg\" width=\"100\"></p>\n<h6 id=\"4b8d8c4e-29dc-4674-928b-b9ded0e363ae\" data-toc-id=\"4b8d8c4e-29dc-4674-928b-b9ded0e363ae\"><span data-name=\"watch\" data-type=\"emoji\">\u231A</span> \u8868\u683C\u64CD\u4F5C</h6>\n<table><tbody><tr class=\"table-row\"><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" colwidth=\"361\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u94FE\u63A5</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u590D\u6742\u6587\u672C</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u56FE\u7247</p></th><th class=\"table-header\" colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p>\u9644\u4EF6</p></th></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" colwidth=\"361\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><a target=\"_blank\" class=\"MuiBox-root css-1ivg9gg\" type=\"icon\" rel=\"noopener noreferrer\" title=\"\u70B9\u51FB\u6B64\u5904\u8DF3\u8F6C\" href=\"http://localhost:8000/components/editor\">\u70B9\u51FB\u6B64\u5904\u8DF3\u8F6C</a></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><code>\u77E5</code><span style=\"background-color: rgb(255, 204, 188); color: rgb(90, 141, 218);\">\u529B</span><span style=\"color: rgb(90, 141, 218);\">\u4F9B</span><sup>\u5386</sup><sub>\u53F2</sub><u>\u52A8</u><s>\u5927</s><span style=\"background-color: rgb(172, 84, 84);\">\u501F</span><mark>\u7B54</mark></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><img src=\"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg\" width=\"100\"></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" data-vertical-align=\"middle\" style=\"text-align: center; vertical-align: middle;\"><p><span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA.txt\" data-size=\"18.27 KB\"></span></p></td></tr><tr class=\"table-row\"><td colspan=\"1\" rowspan=\"1\" colwidth=\"361\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" controls=\"true\" width=\"75%\"></video></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p><audio src=\"http://vjs.zencdn.net/v/oceans.mp4\" controls=\"true\"></audio></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p></td><td colspan=\"1\" rowspan=\"1\" data-background-color=\"\" data-text-align=\"center\" style=\"text-align: center;\"><p></p></td></tr></tbody></table>\n<p><img src=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" width=\"100\"></p>\n<h6 id=\"a025f782-910f-4f17-9d0b-8f31f9cde175\" data-toc-id=\"a025f782-910f-4f17-9d0b-8f31f9cde175\"><span data-name=\"page_facing_up\" data-type=\"emoji\">\uD83D\uDCC4</span> \u6587\u672C\u5904\u7406</h6>\n<p>PandaWiki \u662F\u4E00\u6B3E AI \u5927\u6A21<code>\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D</code>\u5EFA\u7CFB\u7EDF\uFF0CF<strong>AQ \u3001 \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI </strong>\u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u501F<span style=\"color: rgb(90, 141, 218);\">\u52A9\u5927\u6A21\u578B\u7684</span><span style=\"background-color: rgb(255, 204, 188); color: rgb(90, 141, 218);\">\u529B\u91CF\u4E3A\u4F60\u63D0</span><span style=\"color: rgb(90, 141, 218);\">\u4F9B AI \u521B</span>\u4F5C\u80FD\u529B\u3002PandaWiki \u662F<u>\u4E00\u6B3E AI \u5927\u6A21\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D\u5EFA\u7CFB\u7EDF\uFF0C\u5E2E</u>\u52A9\u4F60\u5FEB\u901F\u6784\u5EFA\u667A\u80FD\u5316\u7684 <s><u>\u4EA7\u54C1\u6587\u6863\u3001\u6280\u672F</u></s>\u6587\u6863\u3001FAQ \u3001<s> \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684</s>\u529B\u91CF\u7CFB\u7EDF \uFF0C<span style=\"background-color: rgb(172, 84, 84);\">\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE</span>\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u7684\u529B\u91CF\u4E3A<mark>\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001</mark> AI \u641C\u7D22\u3002</p>\n<a target=\"_blank\" type=\"block\" href=\"http://localhost:8000/components/editor\" title=\"\u770B\u98CE\u666F\">\u770B\u98CE\u666F</a>\n<h6>\uD83D\uDCCE \u9644\u4EF6</h6>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA\uFF1F\u8C01\u662F\u6211\u4EEC\u7684\u670B\u53CB\uFF1F\u8FD9\u4E2A\u95EE\u9898\u662F\u9769\u547D\u7684\u9996\u8981\u95EE\u9898\u3002\u4E2D\u56FD\u8FC7\u53BB\u4E00\u5207\u9769\u547D\u6597\u4E89\u6210.txt\" data-size=\"18.27 KB\"></div>\n<p>\u884C\u5185\u9644\u4EF6\uFF1A<span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"font_4856251_qynqqohzdp.js\" data-size=\"412.34 KB\"></span><span data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u96F7\u6C60\u9879\u76EE\u8BBE\u8BA1\u65B9\u6848.docx\" data-size=\"635.74 KB\"></span></p>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"b0f4a3e0-639f-4c09-ab33-ea9417939f87.tiff\" data-size=\"3.03 MB\"></div>\n<div data-tag=\"attachment\" url=\"\" title=\"\" size=\"0\" data-url=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" data-title=\"\u957F\u4EAD\u79D1\u6280\u516C\u53F8\u4ECB\u7ECDPPT-25.07.007_\u526F\u672C.pptx\" data-size=\"40.18 MB\"></div>\n<h6><span data-name=\"loudspeaker\" data-type=\"emoji\">\uD83D\uDCE2</span> \u97F3\u9891</h6>\n<audio src=\"http://vjs.zencdn.net/v/oceans.mp4\" controls=\"true\"></audio>\n<h6 id=\"1739ed5e-f03c-4c2f-b763-37505601c935\" data-toc-id=\"1739ed5e-f03c-4c2f-b763-37505601c935\"><span data-name=\"video_camera\" data-type=\"emoji\">\uD83D\uDCF9</span> \u89C6\u9891</h6>\n<video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" controls=\"true\" width=\"400\" data-align=\"center\"></video>\n<h6 id=\"746ea233-0e30-44a6-849a-090202217299\" data-toc-id=\"746ea233-0e30-44a6-849a-090202217299\">\u26A0\uFE0F \u8B66\u544A\u5757</h6>\n<div data-id=\"alert_5ysakwbhvqv\" data-variant=\"warning\" data-type=\"icon\" data-node=\"alert\"><p>\u6B64\u65F6\u8FD9\u662F\u4E00\u4E2A\u8B66\u544A\u5757\u3002</p></div>\n<h6 id=\"ebb64062-9efb-4de8-887f-7f8b7f9e54ca\" data-toc-id=\"ebb64062-9efb-4de8-887f-7f8b7f9e54ca\"><span data-name=\"bar_chart\" data-type=\"emoji\">\uD83D\uDCCA</span> \u6D41\u7A0B\u56FE\u64CD\u4F5C</h6>\n<div data-type=\"flow\" data-code=\"mindmap\n root((mindmap))\n Origins\n Long history\n ::icon(fa fa-book)\n Popularisation\n British popular psychology author Tony Buzan\n Research\n On effectiveness<br/>and features\n On Automatic creation\n Uses\n Creative techniques\n Strategic planning\n Argument mapping\n Tools\n Pen and paper\n Mermaid\" data-width=\"246px\"></div>\n";
|
|
12
12
|
var DEFAULT_MARKDOWN_CONTENT = "###### :page_facing_up: \u6587\u672C\u5904\u7406\n\nPandaWiki \u662F\u4E00\u6B3E AI \u5927\u6A21`\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D`\u5EFA\u7CFB\u7EDF\uFF0CF**AQ \u3001 \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI **\u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI \u521B\u4F5C\u80FD\u529B\u3002PandaWiki \u662F++\u4E00\u6B3E AI \u5927\u6A21\u578B\u9A71\u52A8\u7684\u5F00\u6E90\u77E5\u8BC6\u5E93\u642D\u5EFA\u7CFB\u7EDF\uFF0C\u5E2E++\u52A9\u4F60\u5FEB\u901F\u6784\u5EFA\u667A\u80FD\u5316\u7684 ++~~\u4EA7\u54C1\u6587\u6863\u3001\u6280\u672F~~++\u6587\u6863\u3001FAQ \u3001~~ \u535A\u5BA2\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684~~\u529B\u91CF\u7CFB\u7EDF \uFF0C\u501F\u52A9\u5927\u6A21\u578B\u7684\u529B\u91CF\u4E3A\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001 AI \u641C\u7D22 \u7B49\u80FD\u529B\u3002\u7684\u529B\u91CF\u4E3A==\u4F60\u63D0\u4F9B AI \u521B\u4F5C \u3001 AI \u95EE\u7B54 \u3001== AI \u641C\u7D22\u3002\n\n###### :video_camera: \u89C6\u9891\n\n<video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" width=\"400\" controls ></video>\n\n###### \u26A0\uFE0F \u8B66\u544A\u5757\n\n:::alert {#alert_5ysakwbhvqv indent=\"0\" variant=\"warning\" type=\"icon\"}\n\n\u6B64\u65F6\u8FD9\u662F\u4E00\u4E2A\u8B66\u544A\u5757\u3002\n\n:::\n\n###### :bar_chart: \u6D41\u7A0B\u56FE\u64CD\u4F5C\n\n```mermaid\nmindmap\n root((mindmap))\n Origins\n Long history\n ::icon(fa fa-book)\n Popularisation\n British popular psychology author Tony Buzan\n Research\n On effectiveness<br/>and features\n On Automatic creation\n Uses\n Creative techniques\n Strategic planning\n Argument mapping\n Tools\n Pen and paper\n Mermaid\n```\n\n###### :watch: \u8868\u683C\u64CD\u4F5C\n\n\n| \u94FE\u63A5 | \u590D\u6742\u6587\u672C | \u56FE\u7247 | \u9644\u4EF6 |\n| ------------------------------------------------------------------------------------------- | --------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |\n| [\u70B9\u51FB\u6B64\u5904\u8DF3\u8F6C](http://localhost:8000/components/editor) | `\u77E5`\u529B\u4F9B^\u5386^~\u53F2~++\u52A8++~~\u5927~~\u501F==\u7B54== |  | <a href=\"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg\" target=\"_blank\" download=\"\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA.txt\">\u8C01\u662F\u6211\u4EEC\u7684\u654C\u4EBA.txt</a> |\n| <video src=\"https://media.w3.org/2010/05/sintel/trailer.mp4\" width=\"75%\" controls ></video> | \x1F | | |\n\n\n";
|
|
13
13
|
var Reader = function Reader() {
|
|
14
14
|
// @ts-ignore
|
|
@@ -14,7 +14,6 @@ var UploadProgress = function UploadProgress(_ref) {
|
|
|
14
14
|
py: 1,
|
|
15
15
|
transform: 'translateX(-50%)',
|
|
16
16
|
bgcolor: 'background.default',
|
|
17
|
-
zIndex: 10,
|
|
18
17
|
fontSize: 12,
|
|
19
18
|
color: 'text.disabled',
|
|
20
19
|
boxShadow: "0px 4px 20px ".concat(alpha(theme.palette.info.main, 0.25), ", 0px 0px 10px ").concat(alpha(theme.palette.info.main, 0.15)),
|
package/dist/asset/css/index.css
CHANGED
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
border-color: var(--mui-palette-text-disabled);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
.tiptap.ProseMirror .react-renderer.node-flow {
|
|
95
|
+
line-height: normal;
|
|
96
|
+
}
|
|
97
|
+
|
|
94
98
|
.tiptap.ProseMirror .react-renderer.node-image,
|
|
95
99
|
.tiptap.ProseMirror .react-renderer.node-inlineLink,
|
|
96
100
|
.tiptap.ProseMirror .react-renderer.node-inlineAttachment,
|
|
@@ -104,6 +108,7 @@
|
|
|
104
108
|
user-select: none;
|
|
105
109
|
}
|
|
106
110
|
|
|
111
|
+
.tiptap.ProseMirror .react-renderer.node-alert,
|
|
107
112
|
.tiptap.ProseMirror .react-renderer.node-codeBlock,
|
|
108
113
|
.tiptap.ProseMirror .react-renderer.node-blockLink,
|
|
109
114
|
.tiptap.ProseMirror .react-renderer.node-blockAttachment {
|
|
@@ -228,8 +228,7 @@ var FlowViewWrapper = function FlowViewWrapper(_ref) {
|
|
|
228
228
|
'&:hover': {
|
|
229
229
|
borderColor: 'primary.main'
|
|
230
230
|
},
|
|
231
|
-
transition: 'background-color 0.2s ease'
|
|
232
|
-
zIndex: 10
|
|
231
|
+
transition: 'background-color 0.2s ease'
|
|
233
232
|
}
|
|
234
233
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
235
234
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -249,8 +248,7 @@ var FlowViewWrapper = function FlowViewWrapper(_ref) {
|
|
|
249
248
|
'&:hover': {
|
|
250
249
|
borderColor: 'primary.main'
|
|
251
250
|
},
|
|
252
|
-
transition: 'background-color 0.2s ease'
|
|
253
|
-
zIndex: 10
|
|
251
|
+
transition: 'background-color 0.2s ease'
|
|
254
252
|
}
|
|
255
253
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
256
254
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -270,8 +268,7 @@ var FlowViewWrapper = function FlowViewWrapper(_ref) {
|
|
|
270
268
|
'&:hover': {
|
|
271
269
|
borderColor: 'primary.main'
|
|
272
270
|
},
|
|
273
|
-
transition: 'background-color 0.2s ease'
|
|
274
|
-
zIndex: 10
|
|
271
|
+
transition: 'background-color 0.2s ease'
|
|
275
272
|
}
|
|
276
273
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
277
274
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -291,8 +288,7 @@ var FlowViewWrapper = function FlowViewWrapper(_ref) {
|
|
|
291
288
|
'&:hover': {
|
|
292
289
|
borderColor: 'primary.main'
|
|
293
290
|
},
|
|
294
|
-
transition: 'background-color 0.2s ease'
|
|
295
|
-
zIndex: 10
|
|
291
|
+
transition: 'background-color 0.2s ease'
|
|
296
292
|
}
|
|
297
293
|
}))))), isEditing && /*#__PURE__*/React.createElement(EditFlow, {
|
|
298
294
|
anchorEl: editButtonRef.current,
|
|
@@ -223,8 +223,7 @@ var IframeViewWrapper = function IframeViewWrapper(_ref) {
|
|
|
223
223
|
'&:hover': {
|
|
224
224
|
bgcolor: 'primary.main'
|
|
225
225
|
},
|
|
226
|
-
transition: 'background-color 0.2s ease'
|
|
227
|
-
zIndex: 10
|
|
226
|
+
transition: 'background-color 0.2s ease'
|
|
228
227
|
}
|
|
229
228
|
}), (isHovering || isDraggingHeight) && /*#__PURE__*/React.createElement(Box, {
|
|
230
229
|
onMouseDown: handleMouseDownHeight,
|
|
@@ -241,8 +240,7 @@ var IframeViewWrapper = function IframeViewWrapper(_ref) {
|
|
|
241
240
|
'&:hover': {
|
|
242
241
|
bgcolor: 'primary.main'
|
|
243
242
|
},
|
|
244
|
-
transition: 'background-color 0.2s ease'
|
|
245
|
-
zIndex: 10
|
|
243
|
+
transition: 'background-color 0.2s ease'
|
|
246
244
|
}
|
|
247
245
|
}), (isHovering || !!anchorEl) && /*#__PURE__*/React.createElement(Box, {
|
|
248
246
|
className: "iframe-controls",
|
|
@@ -444,8 +444,7 @@ var ImageViewWrapper = function ImageViewWrapper(_ref) {
|
|
|
444
444
|
'&:hover': {
|
|
445
445
|
borderColor: 'primary.main'
|
|
446
446
|
},
|
|
447
|
-
transition: 'background-color 0.2s ease'
|
|
448
|
-
zIndex: 10
|
|
447
|
+
transition: 'background-color 0.2s ease'
|
|
449
448
|
}
|
|
450
449
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
451
450
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -465,8 +464,7 @@ var ImageViewWrapper = function ImageViewWrapper(_ref) {
|
|
|
465
464
|
'&:hover': {
|
|
466
465
|
borderColor: 'primary.main'
|
|
467
466
|
},
|
|
468
|
-
transition: 'background-color 0.2s ease'
|
|
469
|
-
zIndex: 10
|
|
467
|
+
transition: 'background-color 0.2s ease'
|
|
470
468
|
}
|
|
471
469
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
472
470
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -486,8 +484,7 @@ var ImageViewWrapper = function ImageViewWrapper(_ref) {
|
|
|
486
484
|
'&:hover': {
|
|
487
485
|
borderColor: 'primary.main'
|
|
488
486
|
},
|
|
489
|
-
transition: 'background-color 0.2s ease'
|
|
490
|
-
zIndex: 10
|
|
487
|
+
transition: 'background-color 0.2s ease'
|
|
491
488
|
}
|
|
492
489
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
493
490
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -507,8 +504,7 @@ var ImageViewWrapper = function ImageViewWrapper(_ref) {
|
|
|
507
504
|
'&:hover': {
|
|
508
505
|
borderColor: 'primary.main'
|
|
509
506
|
},
|
|
510
|
-
transition: 'background-color 0.2s ease'
|
|
511
|
-
zIndex: 10
|
|
507
|
+
transition: 'background-color 0.2s ease'
|
|
512
508
|
}
|
|
513
509
|
}))), attrs.title && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Box, {
|
|
514
510
|
component: "span",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SkipDownIcon, SkipLeftIcon, SkipRightIcon, SkipUpIcon } from "../../../component/Icons";
|
|
2
2
|
import { Box } from '@mui/material';
|
|
3
|
-
import { TableMap } from '@tiptap/pm/tables';
|
|
4
3
|
import React, { useCallback } from 'react';
|
|
5
4
|
import { selectCellsByCoords } from "../../../util/table-utils";
|
|
6
5
|
export var TableHandleAddButton = function TableHandleAddButton(_ref) {
|
|
@@ -15,32 +14,17 @@ export var TableHandleAddButton = function TableHandleAddButton(_ref) {
|
|
|
15
14
|
return;
|
|
16
15
|
}
|
|
17
16
|
try {
|
|
18
|
-
|
|
19
|
-
var _TableMap$get = TableMap.get(tableNode),
|
|
20
|
-
width = _TableMap$get.width,
|
|
21
|
-
height = _TableMap$get.height;
|
|
22
|
-
var start = orientation === 'row' ? {
|
|
17
|
+
var cellCoord = orientation === 'row' ? {
|
|
23
18
|
row: index,
|
|
24
19
|
col: 0
|
|
25
20
|
} : {
|
|
26
21
|
row: 0,
|
|
27
22
|
col: index
|
|
28
23
|
};
|
|
29
|
-
|
|
30
|
-
row: index,
|
|
31
|
-
col: width - 1
|
|
32
|
-
} : {
|
|
33
|
-
row: height - 1,
|
|
34
|
-
col: index
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
// 选中行/列
|
|
38
|
-
selectCellsByCoords(editor, tablePos, [start, end], {
|
|
24
|
+
selectCellsByCoords(editor, tablePos, [cellCoord], {
|
|
39
25
|
mode: 'dispatch',
|
|
40
26
|
dispatch: editor.view.dispatch.bind(editor.view)
|
|
41
27
|
});
|
|
42
|
-
|
|
43
|
-
// 执行插入操作
|
|
44
28
|
if (orientation === 'row') {
|
|
45
29
|
editor.chain().focus()[direction === 'before' ? 'addRowBefore' : 'addRowAfter']().run();
|
|
46
30
|
} else {
|
|
@@ -51,11 +35,6 @@ export var TableHandleAddButton = function TableHandleAddButton(_ref) {
|
|
|
51
35
|
}
|
|
52
36
|
}, [editor, orientation, index, tableNode, tablePos, direction]);
|
|
53
37
|
if (!(editor !== null && editor !== void 0 && editor.isEditable)) return null;
|
|
54
|
-
var iconStyle = {
|
|
55
|
-
width: '0.75rem',
|
|
56
|
-
height: '0.75rem',
|
|
57
|
-
flexShrink: 0
|
|
58
|
-
};
|
|
59
38
|
var Icon = orientation === 'row' ? direction === 'before' ? SkipUpIcon : SkipDownIcon : direction === 'before' ? SkipLeftIcon : SkipRightIcon;
|
|
60
39
|
var ariaLabel = orientation === 'row' ? direction === 'before' ? '上方插入行' : '下方插入行' : direction === 'before' ? '左侧插入列' : '右侧插入列';
|
|
61
40
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -82,6 +61,10 @@ export var TableHandleAddButton = function TableHandleAddButton(_ref) {
|
|
|
82
61
|
},
|
|
83
62
|
"aria-label": ariaLabel
|
|
84
63
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
85
|
-
sx:
|
|
64
|
+
sx: {
|
|
65
|
+
width: '0.75rem',
|
|
66
|
+
height: '0.75rem',
|
|
67
|
+
flexShrink: 0
|
|
68
|
+
}
|
|
86
69
|
}));
|
|
87
70
|
};
|
|
@@ -207,6 +207,19 @@ export var TableHandleMenu = function TableHandleMenu(_ref) {
|
|
|
207
207
|
}
|
|
208
208
|
}),
|
|
209
209
|
onClick: function onClick() {
|
|
210
|
+
if (typeof index === 'number' && typeof tablePos === 'number') {
|
|
211
|
+
var cellCoord = orientation === 'row' ? {
|
|
212
|
+
row: index,
|
|
213
|
+
col: 0
|
|
214
|
+
} : {
|
|
215
|
+
row: 0,
|
|
216
|
+
col: index
|
|
217
|
+
};
|
|
218
|
+
selectCellsByCoords(editor, tablePos, [cellCoord], {
|
|
219
|
+
mode: 'dispatch',
|
|
220
|
+
dispatch: editor.view.dispatch.bind(editor.view)
|
|
221
|
+
});
|
|
222
|
+
}
|
|
210
223
|
if (orientation === 'row') {
|
|
211
224
|
editor.chain().focus().addRowBefore().run();
|
|
212
225
|
} else {
|
|
@@ -226,6 +239,19 @@ export var TableHandleMenu = function TableHandleMenu(_ref) {
|
|
|
226
239
|
}
|
|
227
240
|
}),
|
|
228
241
|
onClick: function onClick() {
|
|
242
|
+
if (typeof index === 'number' && typeof tablePos === 'number') {
|
|
243
|
+
var cellCoord = orientation === 'row' ? {
|
|
244
|
+
row: index,
|
|
245
|
+
col: 0
|
|
246
|
+
} : {
|
|
247
|
+
row: 0,
|
|
248
|
+
col: index
|
|
249
|
+
};
|
|
250
|
+
selectCellsByCoords(editor, tablePos, [cellCoord], {
|
|
251
|
+
mode: 'dispatch',
|
|
252
|
+
dispatch: editor.view.dispatch.bind(editor.view)
|
|
253
|
+
});
|
|
254
|
+
}
|
|
229
255
|
if (orientation === 'row') {
|
|
230
256
|
editor.chain().focus().addRowAfter().run();
|
|
231
257
|
} else {
|
|
@@ -130,8 +130,7 @@ var createHandleStyles = function createHandleStyles() {
|
|
|
130
130
|
alignItems: 'center',
|
|
131
131
|
justifyContent: 'center',
|
|
132
132
|
background: 'transparent',
|
|
133
|
-
pointerEvents: 'auto'
|
|
134
|
-
zIndex: 10
|
|
133
|
+
pointerEvents: 'auto'
|
|
135
134
|
};
|
|
136
135
|
};
|
|
137
136
|
var createCornerHandleStyles = function createCornerHandleStyles(position, isActiveHandle) {
|
|
@@ -409,8 +408,7 @@ export var TableSelectionOverlay = function TableSelectionOverlay(_ref2) {
|
|
|
409
408
|
}, /*#__PURE__*/React.createElement("div", {
|
|
410
409
|
ref: refs.setFloating,
|
|
411
410
|
style: _objectSpread(_objectSpread({}, floatingStyles), {}, {
|
|
412
|
-
pointerEvents: 'none'
|
|
413
|
-
zIndex: 10
|
|
411
|
+
pointerEvents: 'none'
|
|
414
412
|
})
|
|
415
413
|
}, /*#__PURE__*/React.createElement("div", {
|
|
416
414
|
className: "tiptap-table-selection-overlay"
|
|
@@ -444,8 +444,7 @@ var VideoViewWrapper = function VideoViewWrapper(_ref) {
|
|
|
444
444
|
'&:hover': {
|
|
445
445
|
borderColor: 'primary.main'
|
|
446
446
|
},
|
|
447
|
-
transition: 'background-color 0.2s ease'
|
|
448
|
-
zIndex: 10
|
|
447
|
+
transition: 'background-color 0.2s ease'
|
|
449
448
|
}
|
|
450
449
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
451
450
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -465,8 +464,7 @@ var VideoViewWrapper = function VideoViewWrapper(_ref) {
|
|
|
465
464
|
'&:hover': {
|
|
466
465
|
borderColor: 'primary.main'
|
|
467
466
|
},
|
|
468
|
-
transition: 'background-color 0.2s ease'
|
|
469
|
-
zIndex: 10
|
|
467
|
+
transition: 'background-color 0.2s ease'
|
|
470
468
|
}
|
|
471
469
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
472
470
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -486,8 +484,7 @@ var VideoViewWrapper = function VideoViewWrapper(_ref) {
|
|
|
486
484
|
'&:hover': {
|
|
487
485
|
borderColor: 'primary.main'
|
|
488
486
|
},
|
|
489
|
-
transition: 'background-color 0.2s ease'
|
|
490
|
-
zIndex: 10
|
|
487
|
+
transition: 'background-color 0.2s ease'
|
|
491
488
|
}
|
|
492
489
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
493
490
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -507,8 +504,7 @@ var VideoViewWrapper = function VideoViewWrapper(_ref) {
|
|
|
507
504
|
'&:hover': {
|
|
508
505
|
borderColor: 'primary.main'
|
|
509
506
|
},
|
|
510
|
-
transition: 'background-color 0.2s ease'
|
|
511
|
-
zIndex: 10
|
|
507
|
+
transition: 'background-color 0.2s ease'
|
|
512
508
|
}
|
|
513
509
|
}))))), /*#__PURE__*/React.createElement(FloatingPopover, {
|
|
514
510
|
open: Boolean(anchorEl),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { UploadFunction } from "../../type";
|
|
2
2
|
export declare const FileHandlerExtension: (props: {
|
|
3
3
|
onUpload?: UploadFunction;
|
|
4
|
-
}) => import("@tiptap/core").Extension<Omit<import("@tiptap/extension-file-handler").FileHandlePluginOptions, "
|
|
4
|
+
}) => import("@tiptap/core").Extension<Omit<import("@tiptap/extension-file-handler").FileHandlePluginOptions, "editor" | "key">, any>;
|
package/dist/index.css
CHANGED
|
@@ -137,12 +137,15 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.tiptap.ProseMirror ul:not([data-type='taskList']) li::before {
|
|
140
|
-
content: '
|
|
140
|
+
content: '' !important;
|
|
141
|
+
display: inline-block;
|
|
142
|
+
width: 8px;
|
|
143
|
+
height: 8px !important;
|
|
141
144
|
position: absolute;
|
|
142
|
-
top: 0;
|
|
145
|
+
top: 0.5rem;
|
|
143
146
|
left: -24px;
|
|
144
|
-
|
|
145
|
-
|
|
147
|
+
background: var(--mui-palette-primary-main);
|
|
148
|
+
border-radius: 50%;
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
.tiptap.ProseMirror ul:not([data-type='taskList']) ul {
|
|
@@ -150,18 +153,27 @@
|
|
|
150
153
|
}
|
|
151
154
|
|
|
152
155
|
.tiptap.ProseMirror ul:not([data-type='taskList']) ul li::before {
|
|
153
|
-
|
|
154
|
-
|
|
156
|
+
width: 5px;
|
|
157
|
+
height: 5px !important;
|
|
158
|
+
background: transparent;
|
|
159
|
+
border: 1.5px solid var(--mui-palette-primary-main);
|
|
160
|
+
border-radius: 50%;
|
|
155
161
|
}
|
|
156
162
|
|
|
157
163
|
.tiptap.ProseMirror ul:not([data-type='taskList']) ul ul li::before {
|
|
158
|
-
|
|
159
|
-
|
|
164
|
+
width: 4px;
|
|
165
|
+
height: 4px !important;
|
|
166
|
+
background: var(--mui-palette-primary-main);
|
|
167
|
+
border-radius: 0;
|
|
160
168
|
}
|
|
161
169
|
|
|
162
170
|
.tiptap.ProseMirror ul:not([data-type='taskList']) ul ul ul li::before {
|
|
163
|
-
|
|
164
|
-
|
|
171
|
+
width: 4px;
|
|
172
|
+
height: 4px !important;
|
|
173
|
+
background: transparent;
|
|
174
|
+
border: 1.5px solid var(--mui-palette-primary-main);
|
|
175
|
+
border-radius: 0;
|
|
176
|
+
transform: rotate(45deg);
|
|
165
177
|
}
|
|
166
178
|
|
|
167
179
|
.tiptap.ProseMirror ul[data-type='taskList'] {
|
|
@@ -190,7 +202,7 @@
|
|
|
190
202
|
flex-grow: 1;
|
|
191
203
|
}
|
|
192
204
|
|
|
193
|
-
.tiptap.ProseMirror ul[data-type='taskList'] li[data-checked='true']>div {
|
|
205
|
+
.tiptap.ProseMirror ul[data-type='taskList'] li[data-checked='true']>div>*:not(ul) {
|
|
194
206
|
color: var(--mui-palette-text-tertiary);
|
|
195
207
|
opacity: 0.7;
|
|
196
208
|
text-decoration: line-through;
|
|
@@ -448,7 +460,6 @@
|
|
|
448
460
|
position: relative;
|
|
449
461
|
overflow: visible;
|
|
450
462
|
pointer-events: none;
|
|
451
|
-
z-index: 10;
|
|
452
463
|
}
|
|
453
464
|
|
|
454
465
|
.tiptap.ProseMirror .table-controls>* {
|
|
@@ -459,7 +470,6 @@
|
|
|
459
470
|
position: relative;
|
|
460
471
|
overflow: visible;
|
|
461
472
|
pointer-events: none;
|
|
462
|
-
z-index: 10;
|
|
463
473
|
}
|
|
464
474
|
|
|
465
475
|
.tiptap.ProseMirror .table-selection-overlay-container>* {
|