@fiduswriter/editor 0.1.52 → 0.1.53
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/css/access_rights_dialog.css +75 -0
- package/css/carets.css +17 -0
- package/css/chat.css +70 -0
- package/css/citation_dialog.css +71 -0
- package/css/colors.css +97 -0
- package/css/contributors.css +13 -0
- package/css/document.css +286 -0
- package/css/dot_menu.css +42 -0
- package/css/e2ee.css +331 -0
- package/css/editor.css +1484 -0
- package/css/footnotes.css +81 -0
- package/css/margin_boxes.css +514 -0
- package/css/merge.css +197 -0
- package/css/review.css +7 -0
- package/css/table.css +13 -0
- package/css/tags.css +36 -0
- package/css/tracking.css +63 -0
- package/package.json +56 -10
- package/static/fonts/document/Cardo-Bold.woff +0 -0
- package/static/fonts/document/Cardo-Italic.woff +0 -0
- package/static/fonts/document/Cardo-Regular.woff +0 -0
- package/static/fonts/document/CrimsonText-Bold.woff +0 -0
- package/static/fonts/document/CrimsonText-BoldItalic.woff +0 -0
- package/static/fonts/document/CrimsonText-Italic.woff +0 -0
- package/static/fonts/document/CrimsonText-Roman.woff +0 -0
- package/static/fonts/document/Lobster-1.4.woff +0 -0
- package/static/fonts/document/NoticiaText-Bold.woff +0 -0
- package/static/fonts/document/NoticiaText-BoldItalic.woff +0 -0
- package/static/fonts/document/NoticiaText-Italic.woff +0 -0
- package/static/fonts/document/NoticiaText-Regular.woff +0 -0
- package/static/fonts/document/OpenSans-Bold.woff +0 -0
- package/static/fonts/document/OpenSans-Regular.woff +0 -0
- package/static/fonts/document/SourceSansPro-Bold.woff +0 -0
- package/static/img/accept_change.avif +0 -0
- package/static/img/fidus_face.avif +0 -0
- package/static/ogg/chat_notification.ogg +0 -0
package/css/merge.css
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/* Styles for showing diff changes */
|
|
2
|
+
span[data-diff="offline-inserted"],
|
|
3
|
+
span[data-diff="online-inserted"] {
|
|
4
|
+
background-color: lightgreen;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.selected-dec {
|
|
8
|
+
background: yellow !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.offline-inserted,
|
|
12
|
+
.online-inserted {
|
|
13
|
+
background: #e1f5e1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
span.offline-deleted,
|
|
17
|
+
span.online-deleted {
|
|
18
|
+
text-decoration: line-through;
|
|
19
|
+
text-decoration-color: red;
|
|
20
|
+
background: #efc8c8;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.offline-deleted,
|
|
24
|
+
.online-deleted {
|
|
25
|
+
background: #efc8c8;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
hr.online-inserted,
|
|
29
|
+
hr.offline-inserted {
|
|
30
|
+
border: 3px solid lightgreen;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
hr.online-deleted,
|
|
34
|
+
hr.offline-deleted {
|
|
35
|
+
border: 3px solid lightcoral;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
hr.selected-dec {
|
|
39
|
+
background: yellow !important;
|
|
40
|
+
border: 3px solid yellow;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Styles for the dialog box */
|
|
44
|
+
.offline-heading,
|
|
45
|
+
.merged-heading,
|
|
46
|
+
.online-heading {
|
|
47
|
+
width: 33%;
|
|
48
|
+
padding: 15px;
|
|
49
|
+
text-align: center;
|
|
50
|
+
font-weight: bold;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.merged-view {
|
|
54
|
+
border: 2px solid black;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#editor-diff-offline,
|
|
58
|
+
#editor-diff-common,
|
|
59
|
+
#editor-diff-online {
|
|
60
|
+
width: 33%;
|
|
61
|
+
counter-reset: prosemirror-footnote cat-figure cat-equation cat-photo
|
|
62
|
+
cat-table;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
#editor-merge-view figure figcaption span.label::after,
|
|
66
|
+
#editor-merge-view table[data-category="table"] caption span.label::after {
|
|
67
|
+
content: none !important;
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Footnote Node View Related CSS */
|
|
72
|
+
span.footnote-change {
|
|
73
|
+
background: rgb(140 191 250);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
div.footnote-view {
|
|
77
|
+
display: inline-block;
|
|
78
|
+
position: relative;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
div.footnote-view::after {
|
|
83
|
+
content: counter(prosemirror-footnote);
|
|
84
|
+
vertical-align: super;
|
|
85
|
+
font-size: 75%;
|
|
86
|
+
counter-increment: prosemirror-footnote;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ProseMirror-hideselection .footnote-tooltip *::selection {
|
|
90
|
+
background-color: transparent;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.footnote-tooltip {
|
|
94
|
+
cursor: auto;
|
|
95
|
+
position: absolute;
|
|
96
|
+
left: -30px;
|
|
97
|
+
top: calc(100% + 10px);
|
|
98
|
+
background: rgb(140 191 250);
|
|
99
|
+
padding: 3px;
|
|
100
|
+
border-radius: 2px;
|
|
101
|
+
width: auto;
|
|
102
|
+
min-width: 250px;
|
|
103
|
+
z-index: 100;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.footnote-tooltip.render-arrow::before {
|
|
107
|
+
border: 5px solid silver;
|
|
108
|
+
border-top-width: 0;
|
|
109
|
+
border-left-color: transparent;
|
|
110
|
+
border-right-color: transparent;
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: -5px;
|
|
113
|
+
left: 27px;
|
|
114
|
+
content: " ";
|
|
115
|
+
height: 0;
|
|
116
|
+
width: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
div.footnote-view div.footnote-tooltip p {
|
|
120
|
+
margin-bottom: 0 !important;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.footnote-tooltip .footnote-container {
|
|
124
|
+
margin-top: 0 !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Citation Related CSS */
|
|
128
|
+
#editor-diff-offline .citation,
|
|
129
|
+
#editor-diff-common .citation,
|
|
130
|
+
#editor-diff-online .citation {
|
|
131
|
+
background-color: lightgray;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
#editor-diff-offline .offline-inserted .citation,
|
|
135
|
+
#editor-diff-online .online-inserted .citation {
|
|
136
|
+
padding-left: 5px;
|
|
137
|
+
background-color: lightgreen;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
#editor-diff-common .citation::before,
|
|
141
|
+
#editor-diff-offline .citation::before,
|
|
142
|
+
#editor-diff-online .citation::before {
|
|
143
|
+
content: "\f02d";
|
|
144
|
+
font-family: FontAwesome; /* stylelint-disable-line */
|
|
145
|
+
font-style: normal;
|
|
146
|
+
font-weight: normal;
|
|
147
|
+
text-decoration: inherit;
|
|
148
|
+
color: #000000;
|
|
149
|
+
font-size: 18px;
|
|
150
|
+
padding-left: 5px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
#editor-diff .online-deleted .citation,
|
|
154
|
+
#editor-diff .offline-deleted .citation {
|
|
155
|
+
padding-left: 5px;
|
|
156
|
+
background-color: lightcoral;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Help Related CSS */
|
|
160
|
+
|
|
161
|
+
.merge-img {
|
|
162
|
+
padding: 5px;
|
|
163
|
+
float: none;
|
|
164
|
+
display: block;
|
|
165
|
+
margin: 5px auto;
|
|
166
|
+
align-content: center;
|
|
167
|
+
border: 1px solid black;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* For making span elements look like anchor tags */
|
|
171
|
+
span[href] {
|
|
172
|
+
color: var(--cs-1-text);
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
outline: none;
|
|
175
|
+
text-decoration: underline;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* For link tooltip in merge window */
|
|
179
|
+
.link-drop-up-inner {
|
|
180
|
+
position: relative;
|
|
181
|
+
z-index: 1;
|
|
182
|
+
left: 10px;
|
|
183
|
+
padding: 10px;
|
|
184
|
+
background-color: var(--cs-dark-background);
|
|
185
|
+
color: var(--cs-dark-text);
|
|
186
|
+
font-family: Lato, sans-serif;
|
|
187
|
+
font-size: 13px;
|
|
188
|
+
font-weight: 400;
|
|
189
|
+
line-height: 18px;
|
|
190
|
+
letter-spacing: 0.13px;
|
|
191
|
+
cursor: auto;
|
|
192
|
+
border-radius: 5px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.link-drop-up-outer {
|
|
196
|
+
position: absolute;
|
|
197
|
+
}
|
package/css/review.css
ADDED
package/css/table.css
ADDED
package/css/tags.css
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Tags */
|
|
2
|
+
|
|
3
|
+
.tag-input {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-width: 200px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tag-input input {
|
|
9
|
+
border: 0;
|
|
10
|
+
background-color: white;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.tag-input input:focus {
|
|
14
|
+
background-color: white;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.tag-input .ProseMirror:focus {
|
|
18
|
+
outline-width: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.tags-inner br,
|
|
22
|
+
.contributors-inner br {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tag {
|
|
27
|
+
margin-right: 5px;
|
|
28
|
+
margin-bottom: 5px;
|
|
29
|
+
padding: 0 5px;
|
|
30
|
+
border-radius: 3px;
|
|
31
|
+
line-height: 2em;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
color: var(--cs-6-text);
|
|
34
|
+
background: var(--cs-6-background);
|
|
35
|
+
border: 1px solid var(--cs-6-border);
|
|
36
|
+
}
|
package/css/tracking.css
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
span.deletion {
|
|
2
|
+
text-decoration: line-through;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.selected-insertion,
|
|
6
|
+
.selected-deletion,
|
|
7
|
+
.selected-format_change,
|
|
8
|
+
.selected-block_change {
|
|
9
|
+
background-color: var(--editor-active-track-background-color);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.tag.selected-insertion,
|
|
13
|
+
.contributor.selected-insertion,
|
|
14
|
+
.tag.selected-deletion,
|
|
15
|
+
.contributor.selected-deletion {
|
|
16
|
+
background-color: var(--editor-active-track-background-color);
|
|
17
|
+
color: var(--cs-white-text);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.margin-box.track > div {
|
|
21
|
+
padding: 10px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.margin-box .track-title {
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.margin-box .format-change-info {
|
|
29
|
+
margin-bottom: 9px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.margin-box .format-change-info b {
|
|
33
|
+
font-weight: 700;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-track] {
|
|
37
|
+
position: relative;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-track]::before {
|
|
41
|
+
content: "";
|
|
42
|
+
position: absolute;
|
|
43
|
+
border-left: 1px solid black;
|
|
44
|
+
left: -10px;
|
|
45
|
+
height: 22px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
li[data-track]::before {
|
|
49
|
+
content: inherit;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
li[data-track]::before,
|
|
53
|
+
li [data-track]::before {
|
|
54
|
+
left: -5px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.track-ctas {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.track.fw-active .track-ctas {
|
|
62
|
+
display: block;
|
|
63
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiduswriter/editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.53",
|
|
4
4
|
"description": "Fidus Writer browser editor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -50,10 +50,12 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
|
+
"css/",
|
|
53
54
|
"dist/",
|
|
54
55
|
"src/",
|
|
55
|
-
"
|
|
56
|
+
"static/",
|
|
56
57
|
"LICENSE",
|
|
58
|
+
"README.md",
|
|
57
59
|
"logo.svg"
|
|
58
60
|
],
|
|
59
61
|
"scripts": {
|
|
@@ -66,12 +68,13 @@
|
|
|
66
68
|
"format": "prettier --write .",
|
|
67
69
|
"format:check": "prettier --check .",
|
|
68
70
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.js",
|
|
69
|
-
"install-hooks": "husky"
|
|
71
|
+
"install-hooks": "husky",
|
|
72
|
+
"demo": "echo 'Open demo/standalone/index.html in a browser or run: npx http-server demo/standalone -p 8080 -c-1'"
|
|
70
73
|
},
|
|
71
74
|
"dependencies": {
|
|
72
|
-
"@fiduswriter/bibliography-manager": "^0.1.
|
|
73
|
-
"@fiduswriter/document": "^0.2.
|
|
74
|
-
"@fiduswriter/image-manager": "^0.1.
|
|
75
|
+
"@fiduswriter/bibliography-manager": "^0.1.24",
|
|
76
|
+
"@fiduswriter/document": "^0.2.31",
|
|
77
|
+
"@fiduswriter/image-manager": "^0.1.17",
|
|
75
78
|
"cropperjs": "^1.6.2",
|
|
76
79
|
"diff": "^5.0.0",
|
|
77
80
|
"diff-dom": "^5.2.1",
|
|
@@ -79,7 +82,7 @@
|
|
|
79
82
|
"fast-xml-parser": "^4.5.0",
|
|
80
83
|
"fastdom": "^1.0.11",
|
|
81
84
|
"fix-utf8": "^2.0.1",
|
|
82
|
-
"fwtoolkit": "^0.2.
|
|
85
|
+
"fwtoolkit": "^0.2.3",
|
|
83
86
|
"jszip": "^3.10.1",
|
|
84
87
|
"mathml-to-latex": "^1.4.3",
|
|
85
88
|
"mathml2omml": "^0.5.0",
|
|
@@ -110,16 +113,59 @@
|
|
|
110
113
|
"@types/jest": "^30.0.0",
|
|
111
114
|
"@types/node": "^26.0.1",
|
|
112
115
|
"eslint": "^10.6.0",
|
|
116
|
+
"gettext-parser": "^9.1.1",
|
|
113
117
|
"globals": "^15.15.0",
|
|
114
118
|
"happy-dom": "^20.10.6",
|
|
119
|
+
"husky": "^9.1.7",
|
|
115
120
|
"jest": "^30.4.2",
|
|
121
|
+
"lint-staged": "^17.0.8",
|
|
116
122
|
"prettier": "^3.5.3",
|
|
117
123
|
"ts-jest": "^29.4.11",
|
|
118
124
|
"ts-jest-resolver": "^2.0.1",
|
|
119
125
|
"typescript": "^6.0.3",
|
|
120
|
-
"typescript-eslint": "^8.62.0"
|
|
121
|
-
|
|
122
|
-
|
|
126
|
+
"typescript-eslint": "^8.62.0"
|
|
127
|
+
},
|
|
128
|
+
"fiduswriter": {
|
|
129
|
+
"css": {
|
|
130
|
+
"fwtoolkit": [
|
|
131
|
+
"colors.css",
|
|
132
|
+
"forms.css",
|
|
133
|
+
"buttons.css",
|
|
134
|
+
"dialog.css",
|
|
135
|
+
"loader.css",
|
|
136
|
+
"alerts.css",
|
|
137
|
+
"pulldown.css",
|
|
138
|
+
"data_table.css",
|
|
139
|
+
"content_menu.css",
|
|
140
|
+
"dialog_table.css",
|
|
141
|
+
"common.css",
|
|
142
|
+
"inline_tools.css",
|
|
143
|
+
"add_remove_dialog.css"
|
|
144
|
+
],
|
|
145
|
+
"own": {
|
|
146
|
+
"additive": [
|
|
147
|
+
"colors.css"
|
|
148
|
+
],
|
|
149
|
+
"component": [
|
|
150
|
+
"editor.css",
|
|
151
|
+
"document.css",
|
|
152
|
+
"access_rights_dialog.css",
|
|
153
|
+
"carets.css",
|
|
154
|
+
"chat.css",
|
|
155
|
+
"citation_dialog.css",
|
|
156
|
+
"contributors.css",
|
|
157
|
+
"dot_menu.css",
|
|
158
|
+
"e2ee.css",
|
|
159
|
+
"footnotes.css",
|
|
160
|
+
"margin_boxes.css",
|
|
161
|
+
"merge.css",
|
|
162
|
+
"review.css",
|
|
163
|
+
"table.css",
|
|
164
|
+
"tags.css",
|
|
165
|
+
"tracking.css"
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
}
|
|
123
169
|
},
|
|
124
170
|
"lint-staged": {
|
|
125
171
|
"*.{ts,js,mjs,css,md,json,html}": [
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|