@seafile/seafile-editor 0.3.99 → 0.3.100

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.
Files changed (90) hide show
  1. package/dist/_i18n/index.js +20 -0
  2. package/dist/assets/css/comment-dialog.css +50 -0
  3. package/dist/{css → assets/css}/diff-viewer.css +0 -0
  4. package/dist/{css/richeditor → assets/css}/formula.css +0 -0
  5. package/dist/{css → assets/css}/history-viewer.css +0 -0
  6. package/dist/{css/richeditor → assets/css}/image.css +0 -0
  7. package/dist/{index.css → assets/css/index.css} +0 -0
  8. package/dist/assets/css/issue-card.css +43 -0
  9. package/dist/{css → assets/css}/keyboard-shortcuts.css +0 -0
  10. package/dist/{css/richeditor → assets/css}/link.css +0 -0
  11. package/dist/{css/plaineditor → assets/css}/markdown-editor.css +0 -0
  12. package/dist/{css → assets/css}/markdown-viewer.css +0 -0
  13. package/dist/{css/richeditor → assets/css}/navbar-imgbutton.css +0 -0
  14. package/dist/assets/css/outline.css +29 -0
  15. package/dist/{css/richeditor → assets/css}/table.css +0 -0
  16. package/dist/{css/richeditor → assets/css}/textlink-hovermenu.css +0 -0
  17. package/dist/{css → assets/css}/topbar.css +19 -33
  18. package/dist/{css/richeditor → assets/css}/tree-view.css +0 -0
  19. package/dist/{css/richeditor/right-panel.css → assets/css/user-help.css} +9 -9
  20. package/dist/assets/editor/plain-editor.css +30 -0
  21. package/dist/assets/editor/rich-editor.css +104 -0
  22. package/dist/assets/editor/simple-editor.css +77 -0
  23. package/dist/{css/richeditor → assets/rich-editor}/document-info.css +0 -0
  24. package/dist/components/add-formula-dialog.js +6 -4
  25. package/dist/components/add-image-dialog.js +3 -1
  26. package/dist/components/add-link-dialog.js +4 -3
  27. package/dist/components/comment-dialog.js +12 -6
  28. package/dist/components/markdown-lint.js +1 -0
  29. package/dist/components/outline/index.js +97 -0
  30. package/dist/components/outline/outline-item.js +70 -0
  31. package/dist/components/shortcut-dialog.js +1 -1
  32. package/dist/components/{topbar-component → toolbar}/header-list.js +0 -0
  33. package/dist/components/toolbar/help-group.js +40 -0
  34. package/dist/components/toolbar/index.js +4 -0
  35. package/dist/components/{topbar-component/upload-img.js → toolbar/insert-image.js} +18 -15
  36. package/dist/components/toolbar/insert-table.js +155 -0
  37. package/dist/components/toolbar/table-group.js +82 -0
  38. package/dist/components/{toolbar.js → toolbar/toolbar.js} +102 -64
  39. package/dist/components/{topbar-component → toolbar/widgets}/button-group.js +0 -0
  40. package/dist/components/toolbar/widgets/button-item.js +144 -0
  41. package/dist/components/toolbar/widgets/drop-list.js +101 -0
  42. package/dist/components/user-help.js +16 -10
  43. package/dist/editor/controller/block-element-controller.js +6 -2
  44. package/dist/editor/controller/inline-element-controller.js +6 -2
  45. package/dist/editor/editor-builder.js +107 -0
  46. package/dist/editor/editor-component/formula.js +4 -2
  47. package/dist/editor/editor-component/image.js +10 -6
  48. package/dist/editor/editor-component/table.js +1 -1
  49. package/dist/editor/editor-plugin.js +3 -1
  50. package/dist/editor/editor.js +1 -32
  51. package/dist/editor/index.js +97 -0
  52. package/dist/editor/markdown-editor.js +323 -0
  53. package/dist/editor/plain-markdown-editor.js +5 -4
  54. package/dist/editor/rich-markdown-editor.js +70 -149
  55. package/dist/editor/simple-editor.js +44 -78
  56. package/dist/{css/richeditor → example/assets/css}/comments-list.css +0 -45
  57. package/dist/{css/richeditor → example/assets/css}/detail-list-view.css +0 -0
  58. package/dist/{css/richeditor → example/assets/css}/participants-list.css +0 -0
  59. package/dist/{css → example/assets/css}/react-mentions-default-style.js +0 -0
  60. package/dist/example/assets/css/seafile-editor-main.css +125 -0
  61. package/dist/example/assets/css/seafile-editor-side.css +89 -0
  62. package/dist/example/assets/css/side-panel.css +81 -0
  63. package/dist/{components → example/components}/comment-panel.js +12 -6
  64. package/dist/{components → example/components}/detail-list-view.js +1 -1
  65. package/dist/{components → example/components}/participants-list.js +1 -1
  66. package/dist/{components → example/components}/side-panel.js +5 -7
  67. package/dist/example/seafile-editor.js +137 -0
  68. package/dist/index.js +9 -0
  69. package/dist/index.local.js +58 -0
  70. package/dist/pages/seafile-editor/index.js +38 -0
  71. package/dist/{editor → pages/seafile-editor}/seafile-editor.js +19 -35
  72. package/dist/{seafile-editor-chooser.js → pages/seafile-editor-chooser.js} +0 -0
  73. package/dist/{seafile-markdown-editor.js → pages/seafile-markdown-editor.js} +5 -5
  74. package/dist/{seafile-markdown-viewer.js → pages/seafile-markdown-viewer.js} +3 -3
  75. package/dist/{seafile-simple-editor.js → pages/seafile-simple-editor.js} +5 -2
  76. package/dist/viewer/diff-viewer.js +1 -1
  77. package/dist/viewer/markdown-viewer.js +14 -15
  78. package/dist/viewer/slate-viewer.js +9 -24
  79. package/dist/viewer/viewer-formula.js +1 -1
  80. package/package.json +5 -13
  81. package/dist/components/generate-share-link.js +0 -412
  82. package/dist/components/internal-link-dialog.js +0 -96
  83. package/dist/components/outline.js +0 -130
  84. package/dist/components/topbar-component/icon-button.js +0 -99
  85. package/dist/components/topbar-component/insert-file.js +0 -67
  86. package/dist/components/topbar-component/table-toolbar.js +0 -175
  87. package/dist/css/layout.css +0 -111
  88. package/dist/css/markdown-viewer-slate/file-tags-list.css +0 -76
  89. package/dist/css/richeditor/rich-editor-main.css +0 -32
  90. package/dist/css/richeditor/side-panel.css +0 -183
@@ -1,183 +0,0 @@
1
- .seafile-editor-module .side-panel {
2
- user-select: none;
3
- height:100%;
4
- background-color: #f5f5f5;
5
- }
6
- .seafile-editor-module .side-panel .nav {
7
- border-bottom: 1px solid #eee;
8
- padding-top: 10px;
9
- padding-bottom: 10px;
10
- min-width: 125px;
11
- height: 36px;
12
- flex-wrap: nowrap;
13
- }
14
- .seafile-editor-module .side-panel .nav .nav-item {
15
- padding: 0 0.75rem;
16
- }
17
- .seafile-editor-module .side-panel .nav .nav-link {
18
- padding: 0 0.75rem;
19
- transition: 0.3s color;
20
- margin-right: 0;
21
- }
22
- .seafile-editor-module .side-panel .nav-link {
23
- color: #888;
24
- }
25
- .seafile-editor-module .side-panel .nav .nav-link.active {
26
- color: #f19645;
27
- border-bottom: 0;
28
- }
29
- .seafile-editor-module .side-panel .nav .iconfont {
30
- font-weight: 700;
31
- font-size: 0.875rem;
32
- }
33
- .seafile-editor-module .side-panel-content {
34
- font-size: 0.937rem;
35
- overflow: hidden;
36
- }
37
-
38
- .seafile-editor-module .side-panel-content:hover {
39
- overflow: auto;
40
- }
41
-
42
- .seafile-editor-module .side-panel .issue-container {
43
- width: 100%;
44
- padding: 0 10px 10px 10px;
45
- margin-top: -10px;
46
- }
47
-
48
- .issue-card {
49
- background-color: #fff;
50
- border: 1px solid rgba(0, 40, 100, 0.12);
51
- border-radius: 5px;
52
- padding-left: 5px;
53
- margin-top: 10px;
54
- position: relative;
55
- word-break: break-word;
56
- box-shadow: 0 5px 5px -2px rgba(200,200,200, 0.5);
57
- }
58
-
59
- .issue-card:before {
60
- position: absolute;
61
- left: 0;
62
- top: 0;
63
- bottom: 0;
64
- width: 3px;
65
- content: '';
66
- background-color: rgb(217, 130, 43);
67
- border-radius: 3px 0 0 3px;
68
- }
69
- .issue-card-title {
70
- font-size: 16px;
71
- padding: 5px 10px 3px 10px;
72
- }
73
-
74
- .issue-card-description {
75
- padding: 0 10px 5px 10px;
76
- color: #aaa;
77
- }
78
-
79
- .size-panel-no-content {
80
- width: 100%;
81
- text-align: center;
82
- color: #9a9a9a;
83
- padding-top: 10px;
84
- }
85
-
86
- .image-view {
87
- width: 200px;
88
- height: 150px;
89
- position: absolute;
90
- background-color: #fff;
91
- z-index: 1004;
92
- box-shadow: 0 0 10px #aaa;
93
- border-radius: 3px;
94
- line-height: 150px;
95
- overflow: hidden;
96
- font-size: 0;
97
- text-align: center;
98
- }
99
-
100
- .image-view img {
101
- max-width: 100%;
102
- max-height: 100%;
103
- }
104
-
105
- .image-view i {
106
- width: 100%;
107
- height: 100%;
108
- text-align: center;
109
- line-height: 150px;
110
- font-size: 30px;
111
- color: #eb8205;
112
- -moz-animation: rotate 1.5s ease infinite;
113
- -webkit-animation: rotate 1.5s ease infinite;
114
- animation: rotate 1.5s ease infinite;
115
- }
116
-
117
- @keyframes rotate {
118
- 0% {
119
- transform: rotate(0deg);
120
- }
121
-
122
- 100% {
123
- transform: rotate(360deg);
124
- }
125
- }
126
-
127
- .outline-h2, .outline-h3 {
128
- white-space: nowrap;
129
- overflow: hidden;
130
- text-overflow: ellipsis;
131
- }
132
-
133
- .outline-h2 {
134
- margin-left: 20px;
135
- line-height: 2.5;
136
- color:#364149;
137
- white-space: nowrap;
138
- cursor:pointer;
139
- }
140
- .outline-h2:hover {
141
- color: #eb8205;
142
- }
143
- .outline-h3 {
144
- margin-left: 40px;
145
- line-height: 2.5;
146
- color:#364149;
147
- white-space: nowrap;
148
- cursor:pointer;
149
- }
150
- .outline-h3:hover {
151
- color: #eb8205;
152
- }
153
-
154
- .seafile-editor-all-panel .editor-container .article {
155
- margin: 20px auto;
156
- max-width: 950px;
157
- }
158
-
159
- @media (max-width: 991.8px) {
160
- .seafile-editor {
161
- min-width: calc(100% - 40px);
162
- }
163
- .seafile-editor-main-panel {
164
- width: calc(100% - 200px);
165
- }
166
- .seafile-editor-side-panel {
167
- min-width: 200px;
168
- }
169
- .editor-container {
170
- width: 100%;
171
- }
172
- .editor-container .editor {
173
- margin: 20px !important;
174
- padding: 20px 30px;
175
- }
176
- }
177
- @media (max-width: 768px) {
178
- .editor-container .editor {
179
- margin: 0 !important;
180
- padding: 10px 15px;
181
- border: 0;
182
- }
183
- }