@fiduswriter/frontend 0.1.46 → 0.1.49

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 (78) hide show
  1. package/README.md +1 -1
  2. package/css/colors.css +0 -12
  3. package/dist/admin_console/index.d.ts.map +1 -1
  4. package/dist/app/index.d.ts.map +1 -1
  5. package/dist/app/index.js.map +1 -1
  6. package/dist/common/templates.d.ts.map +1 -1
  7. package/dist/common/user_util.d.ts.map +1 -1
  8. package/dist/css/colors.css +0 -12
  9. package/dist/css/manifest.json +1 -2
  10. package/dist/document_templates/actions.d.ts.map +1 -1
  11. package/dist/document_templates/editor.d.ts.map +1 -1
  12. package/dist/document_templates/overview.d.ts.map +1 -1
  13. package/dist/document_templates/overview.js.map +1 -1
  14. package/dist/documents/importer/docx/import.d.ts.map +1 -1
  15. package/dist/documents/importer/docx/import.js.map +1 -1
  16. package/dist/documents/importer/native/file.d.ts.map +1 -1
  17. package/dist/documents/importer/native/file.js.map +1 -1
  18. package/dist/documents/importer/native/import.d.ts +1 -1
  19. package/dist/documents/importer/native/import.d.ts.map +1 -1
  20. package/dist/documents/importer/native/import.js.map +1 -1
  21. package/dist/documents/importer/odt/import.d.ts.map +1 -1
  22. package/dist/documents/importer/odt/import.js.map +1 -1
  23. package/dist/documents/importer/pandoc/import.d.ts.map +1 -1
  24. package/dist/documents/importer/pandoc/import.js.map +1 -1
  25. package/dist/documents/overview/actions.d.ts.map +1 -1
  26. package/dist/documents/overview/index.d.ts.map +1 -1
  27. package/dist/documents/overview/index.js.map +1 -1
  28. package/dist/documents/overview/templates.d.ts.map +1 -1
  29. package/dist/documents/revisions/index.d.ts.map +1 -1
  30. package/dist/documents/revisions/index.js +1 -1
  31. package/dist/documents/revisions/index.js.map +1 -1
  32. package/dist/documents/revisions/templates.d.ts.map +1 -1
  33. package/dist/documents/tools.d.ts.map +1 -1
  34. package/dist/error_hook/index.d.ts.map +1 -1
  35. package/dist/error_hook/index.js.map +1 -1
  36. package/dist/feedback/index.d.ts.map +1 -1
  37. package/dist/indexed_db/index.d.ts.map +1 -1
  38. package/dist/indexed_db/index.js.map +1 -1
  39. package/dist/maintenance/index.d.ts.map +1 -1
  40. package/dist/maintenance/index.js +1 -1
  41. package/dist/maintenance/index.js.map +1 -1
  42. package/dist/menu/index.d.ts.map +1 -1
  43. package/dist/menu/index.js.map +1 -1
  44. package/dist/menu/templates.d.ts.map +1 -1
  45. package/dist/pages/404.d.ts.map +1 -1
  46. package/dist/pages/flatpage.d.ts.map +1 -1
  47. package/dist/pages/offline.d.ts.map +1 -1
  48. package/dist/pages/setup.d.ts.map +1 -1
  49. package/dist/prelogin/index.d.ts.map +1 -1
  50. package/dist/prelogin/templates.d.ts.map +1 -1
  51. package/dist/user/auth/email_confirm.d.ts.map +1 -1
  52. package/dist/user/auth/email_confirm_templates.d.ts.map +1 -1
  53. package/dist/user/auth/login.d.ts.map +1 -1
  54. package/dist/user/auth/password_reset_change.d.ts.map +1 -1
  55. package/dist/user/auth/password_reset_request.d.ts.map +1 -1
  56. package/dist/user/auth/signup.d.ts.map +1 -1
  57. package/dist/user/auth/two_factor.d.ts.map +1 -1
  58. package/dist/user/contacts/add_dialog.d.ts.map +1 -1
  59. package/dist/user/contacts/delete_dialog.d.ts.map +1 -1
  60. package/dist/user/contacts/index.d.ts.map +1 -1
  61. package/dist/user/contacts/index.js.map +1 -1
  62. package/dist/user/contacts/invite.d.ts.map +1 -1
  63. package/dist/user/contacts/respond_invite.d.ts.map +1 -1
  64. package/dist/user/contacts/respond_invite.js.map +1 -1
  65. package/dist/user/contacts/templates.d.ts.map +1 -1
  66. package/dist/user/profile/delete_user.d.ts.map +1 -1
  67. package/dist/user/profile/dialogs.d.ts.map +1 -1
  68. package/dist/user/profile/index.d.ts.map +1 -1
  69. package/dist/user/profile/templates.d.ts.map +1 -1
  70. package/dist/user/profile/templates.js.map +1 -1
  71. package/dist/workers/adjust_doc_to_template.d.ts.map +1 -1
  72. package/package.json +14 -15
  73. package/scripts/aggregate-assets.js +2 -5
  74. package/scripts/split-translations.js +4 -4
  75. package/src/documents/revisions/index.ts +1 -1
  76. package/src/maintenance/index.ts +1 -1
  77. package/css/forms.css +0 -309
  78. package/css/text.css +0 -38
@@ -174,11 +174,8 @@ manifest.reset.push("fwtoolkit/css/reset.css")
174
174
  // Layer 1: Tokens (fwtoolkit colors base)
175
175
  manifest.tokens.push("fwtoolkit/css/colors.css")
176
176
 
177
- // Layer 2: Typography (frontend fonts/text)
178
- manifest.typography.push(
179
- "@fiduswriter/frontend/css/fonts.css",
180
- "@fiduswriter/frontend/css/text.css"
181
- )
177
+ // Layer 2: Typography (frontend fonts)
178
+ manifest.typography.push("@fiduswriter/frontend/css/fonts.css")
182
179
 
183
180
  // Layer 3: All fwtoolkit component CSS (used by the full SPA)
184
181
  const allFwtCss = readdirSync(join(root, "node_modules", "fwtoolkit", "css")).filter(
@@ -260,16 +260,16 @@ for (const lang of languages) {
260
260
  pkgDir = join(root, "locale")
261
261
  break
262
262
  case "@fiduswriter/editor":
263
- pkgDir = join(root, "..", "fiduswriter-editor-js", "locale")
263
+ pkgDir = join(root, "..", "fiduswriter-editor-ts", "locale")
264
264
  break
265
265
  case "@fiduswriter/bibliography-manager":
266
- pkgDir = join(root, "..", "fiduswriter-bibliography-manager-js", "locale")
266
+ pkgDir = join(root, "..", "fiduswriter-bibliography-manager-ts", "locale")
267
267
  break
268
268
  case "@fiduswriter/image-manager":
269
- pkgDir = join(root, "..", "fiduswriter-image-manager-js", "locale")
269
+ pkgDir = join(root, "..", "fiduswriter-image-manager-ts", "locale")
270
270
  break
271
271
  case "@fiduswriter/document-template-editor":
272
- pkgDir = join(root, "..", "fiduswriter-document-template-editor-js", "locale")
272
+ pkgDir = join(root, "..", "fiduswriter-document-template-editor-ts", "locale")
273
273
  break
274
274
  default:
275
275
  console.log(` ${lang}/${pkgName}: unknown package, skipping`)
@@ -122,7 +122,7 @@ export class DocumentRevisionsDialog {
122
122
 
123
123
  download(id: number, filename: string): void {
124
124
  this.apiConnectors.revision.getRevisionBlob(id)
125
- .then(blob => download(blob, filename, "application/fidus+zip"))
125
+ .then(blob => download(blob, filename, "application/vnd.fiduswriter+zip"))
126
126
  }
127
127
 
128
128
  delete(id: number): Promise<any> {
@@ -237,7 +237,7 @@ export class DocMaintenance {
237
237
 
238
238
  saveRevision(id: number, zipfs: JSZip): void {
239
239
  zipfs
240
- .generateAsync({type: "blob", mimeType: "application/fidus+zip"})
240
+ .generateAsync({type: "blob", mimeType: "application/vnd.fiduswriter+zip"})
241
241
  .then((blob: Blob) => {
242
242
  this.app.apiConnectors.maintenance.updateRevision(id, blob).then(() => {
243
243
  addAlert(
package/css/forms.css DELETED
@@ -1,309 +0,0 @@
1
- /*
2
- * SPA-wide form overrides — load after fwtoolkit/css/forms.css.
3
- * Does NOT duplicate fwtoolkit's base form rules; only adds or overrides
4
- * rules used by the Fidus Writer application shell.
5
- */
6
-
7
- /* -----------------------------------------------------------------
8
- * Override: remove fwtoolkit's default border-bottom on form inputs
9
- * ----------------------------------------------------------------- */
10
- input[type="text"]:not(.fw-inline),
11
- input[type="password"]:not(.fw-inline),
12
- input[type="search"]:not(.fw-inline),
13
- input[type="email"]:not(.fw-inline),
14
- input[type="number"]:not(.fw-inline),
15
- textarea {
16
- border-bottom: 0 none;
17
- }
18
-
19
- /* -----------------------------------------------------------------
20
- * Category form — narrow inline input next to an add button
21
- * ----------------------------------------------------------------- */
22
- input[type="text"].category-form {
23
- width: calc(100% - 38px);
24
- display: inline-block;
25
- vertical-align: middle;
26
- }
27
-
28
- /* -----------------------------------------------------------------
29
- * Focus states — extend fwtoolkit's with :focus-within support
30
- * ----------------------------------------------------------------- */
31
- input[type="text"]:focus,
32
- input[type="number"]:focus,
33
- input[type="password"]:focus,
34
- input[type="search"]:focus,
35
- input[type="email"]:focus,
36
- div.fw-input:focus-within,
37
- textarea:focus {
38
- background-color: var(--input-focus-background-color);
39
- }
40
-
41
- /* -----------------------------------------------------------------
42
- * Select containers
43
- * ----------------------------------------------------------------- */
44
- .fw-select-container select {
45
- display: inline-block;
46
- width: calc(100% - 22px);
47
- appearance: none;
48
- cursor: pointer;
49
- }
50
-
51
- .fw-select-container select option.fw-placeholder {
52
- display: none;
53
- }
54
-
55
- .fw-select-container {
56
- margin-bottom: 18px;
57
- position: relative;
58
- }
59
-
60
- .fw-select-container .fw-select-arrow {
61
- position: absolute;
62
- top: 14px;
63
- right: 16px;
64
- pointer-events: none;
65
- }
66
-
67
- /* -----------------------------------------------------------------
68
- * Entry field widths (ProseMirror inputs, selects)
69
- * ----------------------------------------------------------------- */
70
- .fw-entry-field .ProseMirror,
71
- .fw-entry-field input[type="text"],
72
- .fw-entry-field input[type="number"] {
73
- width: 686px;
74
- max-width: 80vw;
75
- }
76
-
77
- .fw-entry-field select {
78
- padding: 0 3px 0 13px;
79
- border: 0 none;
80
- color: var(--cs-light-text);
81
- background-color: var(--input-background-color);
82
- height: 38px;
83
- width: 561px;
84
- appearance: none;
85
- cursor: pointer;
86
- display: inline-block;
87
- }
88
-
89
- .fw-entry-field select.fw-large {
90
- width: 664px;
91
- }
92
-
93
- /* -----------------------------------------------------------------
94
- * Form label
95
- * ----------------------------------------------------------------- */
96
- .form-label {
97
- font-size: 11px;
98
- font-weight: bold;
99
- margin-bottom: 5px;
100
- }
101
-
102
- /* -----------------------------------------------------------------
103
- * Name input fields (first name / last name pairs)
104
- * ----------------------------------------------------------------- */
105
- .fw-name-input {
106
- width: 226px;
107
- }
108
-
109
- .fw-name-input.fw-first {
110
- margin-right: 23px;
111
- }
112
-
113
- /* -----------------------------------------------------------------
114
- * Checkable table rows (app-specific positioning; base styles in
115
- * fwtoolkit/css/checkable_list.css)
116
- * ----------------------------------------------------------------- */
117
- .fw-checkable-td,
118
- .fw-checkable > td {
119
- position: relative;
120
- }
121
-
122
- .fw-checkable-td.fw-checked::after,
123
- tr.fw-checkable.fw-checked > td:last-child::after {
124
- top: 17px;
125
- }
126
-
127
- /* -----------------------------------------------------------------
128
- * Addable input list
129
- * ----------------------------------------------------------------- */
130
- .fw-add-input {
131
- cursor: pointer;
132
- margin-left: 14px;
133
- }
134
-
135
- .fw-add-input::before {
136
- width: 0.7em;
137
- }
138
-
139
- .fw-list-input {
140
- margin-top: 7px;
141
- }
142
-
143
- .fw-list-input:first-child {
144
- margin-top: 0;
145
- }
146
-
147
- /* -----------------------------------------------------------------
148
- * Form error
149
- * ----------------------------------------------------------------- */
150
- .fw-fomt-error {
151
- color: #ff0000;
152
- }
153
-
154
- /* -----------------------------------------------------------------
155
- * AJAX file uploader
156
- * ----------------------------------------------------------------- */
157
- .ajax-upload input[type="file"] {
158
- display: none;
159
- }
160
-
161
- .ajax-upload-label {
162
- margin-left: 10px;
163
- }
164
-
165
- /* -----------------------------------------------------------------
166
- * Checkbox inside a fw-button
167
- * ----------------------------------------------------------------- */
168
- .fw-button input[type="checkbox"] {
169
- margin-right: 3px;
170
- }
171
-
172
- /* -----------------------------------------------------------------
173
- * Radio buttons
174
- * ----------------------------------------------------------------- */
175
- .fw-radio input[type="radio"] {
176
- display: inline-block;
177
- width: 40px;
178
- margin-bottom: 20px;
179
- }
180
-
181
- /* -----------------------------------------------------------------
182
- * Type-switch field-part sizing overrides
183
- * (Base type-switch styles are in fwtoolkit/css/type_switch.css)
184
- * ----------------------------------------------------------------- */
185
- .fw-type-switch-input-inner .field-part {
186
- display: inline-block;
187
- margin-right: 5px;
188
- }
189
-
190
- .fw-type-switch-input-inner .field-part:last-child {
191
- margin-right: 0;
192
- }
193
-
194
- .field-part-short .ProseMirror {
195
- width: 64px;
196
- }
197
-
198
- .fw-type-switch-input-inner .field-part-huge input,
199
- .fw-type-switch-input-inner .field-part-huge .ProseMirror {
200
- width: 250px;
201
- }
202
-
203
- .fw-type-switch-input-inner .field-part-long input,
204
- .fw-type-switch-input-inner .field-part-long .ProseMirror {
205
- width: 130px;
206
- }
207
-
208
- .fw-type-switch-input-inner .field-part-single {
209
- width: 100% !important;
210
- }
211
-
212
- .fw-type-switch-input-inner .field-part-single .ProseMirror {
213
- width: 100%;
214
- }
215
-
216
- /* -----------------------------------------------------------------
217
- * Dialog table header cell sizing
218
- * ----------------------------------------------------------------- */
219
- .fw-dialog-table th {
220
- vertical-align: top;
221
- padding: 0 6px 0 8px;
222
- width: 164px;
223
- }
224
-
225
- /* -----------------------------------------------------------------
226
- * List input wrapper — add/remove buttons
227
- * ----------------------------------------------------------------- */
228
- .list-input-wrapper .add-remove-list {
229
- display: inline-block;
230
- cursor: pointer;
231
- margin-left: 14px;
232
- }
233
-
234
- .list-input-wrapper .add-remove-list::before {
235
- content: "\2796";
236
- width: 0.7em;
237
- }
238
-
239
- .list-input-wrapper:last-child .add-remove-list::before {
240
- content: "\2795";
241
- }
242
-
243
- /* -----------------------------------------------------------------
244
- * Responsive breakpoints
245
- * ----------------------------------------------------------------- */
246
- @media screen and (width <= 740px) {
247
- .fw-entry-field .ProseMirror,
248
- .fw-entry-field input[type="text"],
249
- .fw-entry-field input[type="number"] {
250
- max-width: 70vw;
251
- }
252
-
253
- .fw-type-switch-input-wrapper {
254
- max-width: 70vw;
255
- }
256
-
257
- .tokenfield {
258
- max-width: 70vw;
259
- }
260
- }
261
-
262
- @media screen and (width <= 560px) {
263
- .fw-entry-field .ProseMirror,
264
- .fw-entry-field input[type="text"],
265
- .fw-entry-field input[type="number"] {
266
- max-width: 50vw;
267
- }
268
-
269
- .fw-type-switch-input-wrapper {
270
- max-width: 50vw;
271
- }
272
-
273
- .tokenfield {
274
- max-width: 50vw;
275
- }
276
-
277
- .fw-type-switch {
278
- display: block;
279
- margin-bottom: 5px;
280
- }
281
-
282
- .fw-type-switch-input-inner {
283
- width: auto;
284
- }
285
- }
286
-
287
- @media screen and (width <= 460px) {
288
- .fw-entry-field .ProseMirror,
289
- .fw-entry-field input[type="text"],
290
- .fw-entry-field input[type="number"] {
291
- max-width: 40vw;
292
- }
293
-
294
- .fw-type-switch-input-wrapper {
295
- max-width: 40vw;
296
- }
297
-
298
- .tokenfield {
299
- max-width: 40vw;
300
- }
301
-
302
- .fw-dialog-table th {
303
- width: 140px;
304
- }
305
-
306
- .fw-tabs-panel {
307
- overflow-x: hidden;
308
- }
309
- }
package/css/text.css DELETED
@@ -1,38 +0,0 @@
1
- .fw-basic-text {
2
- font-family: Lato, sans-serif;
3
- font-size: 13px;
4
- line-height: 1.33em;
5
- color: var(--cs-1-hover);
6
- font-weight: 400;
7
- }
8
-
9
- a,
10
- .fw-link-text {
11
- cursor: pointer;
12
- color: var(--cs-1-text);
13
- }
14
-
15
- a:hover,
16
- .fw-link-text:hover {
17
- cursor: pointer;
18
- color: var(--cs-1-hover);
19
- }
20
-
21
- .fw-header-text {
22
- color: var(--cs-5-text);
23
- font-size: 14px;
24
- }
25
-
26
- .fw-header-navigation-text {
27
- color: var(--cs-5-text);
28
- font-weight: 400;
29
- letter-spacing: 0.6px;
30
- text-transform: uppercase;
31
- font-size: 15px;
32
- }
33
-
34
- .fw-green-title {
35
- font-size: 14px;
36
- font-weight: 700;
37
- color: var(--cs-4-text);
38
- }