@khorsheed/dsh-reader 0.2.0

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 (58) hide show
  1. package/README.en.md +90 -0
  2. package/README.i18n.yaml +6 -0
  3. package/README.md +90 -0
  4. package/cordis.patch.yml +13 -0
  5. package/lib/client.js +15119 -0
  6. package/lib/index.js +3660 -0
  7. package/lib/invariant.js +38 -0
  8. package/lib/typert.host.d.ts +3 -0
  9. package/lib/typert.host.js +1738 -0
  10. package/lib/typert.remote-client.d.ts +82 -0
  11. package/lib/typert.remote-client.js +1115 -0
  12. package/lib/types/arxiv.d.ts +47 -0
  13. package/lib/types/arxiv.js +76 -0
  14. package/lib/types/client/ReaderPane.d.ts +71 -0
  15. package/lib/types/client/ReaderPane.js +3135 -0
  16. package/lib/types/client/contract.d.ts +254 -0
  17. package/lib/types/client/contract.js +1 -0
  18. package/lib/types/client/definition.d.ts +27 -0
  19. package/lib/types/client/definition.js +32 -0
  20. package/lib/types/client/extract-article.d.ts +102 -0
  21. package/lib/types/client/extract-article.js +1024 -0
  22. package/lib/types/client/icons.d.ts +27 -0
  23. package/lib/types/client/icons.js +11 -0
  24. package/lib/types/client/index.d.ts +34 -0
  25. package/lib/types/client/index.js +222 -0
  26. package/lib/types/client/locales.d.ts +391 -0
  27. package/lib/types/client/locales.js +382 -0
  28. package/lib/types/client/parse-rss.d.ts +69 -0
  29. package/lib/types/client/parse-rss.js +656 -0
  30. package/lib/types/client/quote.d.ts +89 -0
  31. package/lib/types/client/quote.js +119 -0
  32. package/lib/types/client/selectors.d.ts +167 -0
  33. package/lib/types/client/selectors.js +413 -0
  34. package/lib/types/client/session.d.ts +171 -0
  35. package/lib/types/client/session.js +223 -0
  36. package/lib/types/client/store.d.ts +181 -0
  37. package/lib/types/client/store.js +226 -0
  38. package/lib/types/client/translate.d.ts +379 -0
  39. package/lib/types/client/translate.js +873 -0
  40. package/lib/types/index.d.ts +48 -0
  41. package/lib/types/index.js +25 -0
  42. package/lib/types/invariant.d.ts +29 -0
  43. package/lib/types/invariant.js +38 -0
  44. package/lib/types/link-resolvers.d.ts +107 -0
  45. package/lib/types/link-resolvers.js +299 -0
  46. package/lib/types/remote.d.ts +224 -0
  47. package/lib/types/remote.js +275 -0
  48. package/lib/types/schedule.d.ts +78 -0
  49. package/lib/types/schedule.js +114 -0
  50. package/lib/types/service.d.ts +633 -0
  51. package/lib/types/service.js +1697 -0
  52. package/lib/types/store.d.ts +224 -0
  53. package/lib/types/store.js +916 -0
  54. package/lib/types/types.d.ts +710 -0
  55. package/lib/types/types.js +182 -0
  56. package/locale/en.json +6 -0
  57. package/locale/zh.json +6 -0
  58. package/package.json +128 -0
@@ -0,0 +1,391 @@
1
+ /**
2
+ * The inspiration space's dictionaries. Keys are referenced as translation ids
3
+ * from the pane and the tab definition, so adding a key here is what makes it
4
+ * usable.
5
+ *
6
+ * The namespace stays `reader`: the package name, the tab kind and the Remote
7
+ * namespace are stable identifiers, and renaming them would change a deployed
8
+ * loader row and the on-disk state root for a copy change. What the reader
9
+ * SEES is 「灵感空间」, which is what the surface became once saved links
10
+ * joined subscriptions — a wall of things you chose to keep.
11
+ *
12
+ * @module @khorsheed/dsh-reader/client/locales
13
+ */
14
+ export declare const NS = "reader";
15
+ /** The inspiration space's dictionary key set (the source of truth for both locales). */
16
+ export type ReaderKey = 'tab.label' | 'tab.subtitle' | 'guide.description' | 'filter.today' | 'filter.all' | 'filter.unreadOnly' | 'filter.unreadOn' | 'filter.readState' | 'filter.bySource' | 'filter.byTag' | 'action.filter' | 'filter.searchSource' | 'filter.noSourceMatch' | 'filter.byKind' | 'filter.deleteTag' | 'filter.hideDupes' | 'dedupe.badge' | 'dedupe.title' | 'action.translate' | 'translate.view' | 'translate.onlyTranslation' | 'translate.bilingual' | 'translate.onlyOriginal' | 'translate.retry' | 'translate.tip' | 'translate.preparing' | 'translate.working' | 'translate.local' | 'translate.failed' | 'translate.dismiss' | 'translate.nothing' | 'translate.failedAll' | 'translate.unsupported' | 'action.fetchBody' | 'detail.bodyStale' | 'action.more' | 'action.addTag' | 'tag.title' | 'tag.placeholder' | 'tag.hint' | 'tag.create' | 'tag.empty' | 'search.placeholder' | 'sort.title' | 'sort.newest' | 'sort.oldest' | 'sort.source' | 'action.refresh' | 'action.refreshOne' | 'action.add' | 'action.back' | 'action.copyLink' | 'action.openExternal' | 'action.quote' | 'action.manage' | 'action.recent' | 'recent.title' | 'recent.help' | 'recent.empty' | 'recent.clearTitle' | 'recent.sourceGone' | 'action.remove' | 'action.submit' | 'action.done' | 'action.cancel' | 'action.clearSearch' | 'add.title' | 'add.help' | 'add.placeholder' | 'verdict.subscribed' | 'verdict.savedLink' | 'verdict.savedLinkNoPreview' | 'verdict.duplicate' | 'verdict.invalidUrl' | 'verdict.unsupportedContent' | 'verdict.fetchFailed' | 'preview.blocked' | 'preview.login' | 'preview.unsupportedType' | 'preview.redirected' | 'preview.empty' | 'preview.unreachable' | 'preview.http' | 'preview.unreadable' | 'detail.linkOnlyBadge' | 'detail.removeLink' | 'detail.fetchingBody' | 'detail.refetch' | 'detail.refetching' | 'detail.refetchTitle' | 'state.loading' | 'state.emptyTitle' | 'state.emptyBody' | 'state.noMatch' | 'state.fetching' | 'state.incomplete' | 'state.error' | 'state.stale' | 'state.emptyWall' | 'state.incompleteReason' | 'state.matches' | 'detail.scriptFigures' | 'fetch.none' | 'fetch.fetching' | 'fetch.raw' | 'fetch.ready' | 'fetch.failed' | 'fetch.noneTitle' | 'fetch.readyTitle' | 'fetch.failedTitle' | 'fetch.failedOpenTitle' | 'fetch.failedFinalTitle' | 'detail.renderFetch' | 'detail.rendering' | 'sources.title' | 'sources.count' | 'sources.empty' | 'sources.help' | 'sources.enabled' | 'sources.disabled' | 'sources.time' | 'sources.timeHelp' | 'sources.failed' | 'sources.items' | 'sources.never' | 'sources.cardHint' | 'sources.name' | 'sources.url' | 'sources.cache' | 'sources.cacheHelp' | 'sources.cacheHours' | 'sources.cacheForever' | 'sources.blocked' | 'sources.storageBodies' | 'sources.storageBodiesUsage' | 'sources.storageBodiesHelp' | 'sources.storageTranslations' | 'sources.storageTranslationsUsage' | 'sources.storageTranslationsHelp' | 'sources.translationBudget' | 'sources.translationBudgetHelp' | 'sources.clearTranslations' | 'sources.clearTranslationsConfirm' | 'sources.unreachable' | 'sources.httpError' | 'detail.fetchFailed' | 'sources.kindRss' | 'sources.kindLink' | 'sources.kindFilter' | 'sources.noMatch' | 'sources.sortAdded' | 'sources.sortName' | 'sources.sortFetched' | 'state.backfilling' | 'detail.filledIn' | 'detail.filledInBadge' | 'action.pause' | 'action.resume' | 'detail.incomplete' | 'detail.readOriginal' | 'detail.extractFailed' | 'detail.summaryOnly' | 'detail.resolvedFrom' | 'detail.alsoFrom' | 'detail.composerLabel' | 'detail.composerEmpty' | 'foot.refreshedAt' | 'foot.scheduled' | 'foot.never' | 'foot.unread' | 'foot.refreshing' | 'foot.deduped' | 'quote.copied' | 'quote.copyFailed' | 'quote.quoted' | 'quote.toSideChat' | 'quote.sideChatUnavailable' | 'when.justNow' | 'when.minutes' | 'when.hours' | 'when.yesterday' | 'when.days';
17
+ export declare const en: {
18
+ 'tab.label': string;
19
+ 'tab.subtitle': string;
20
+ 'guide.description': string;
21
+ 'filter.today': string;
22
+ 'filter.all': string;
23
+ 'filter.unreadOnly': string;
24
+ 'filter.unreadOn': string;
25
+ 'filter.readState': string;
26
+ 'filter.bySource': string;
27
+ 'action.filter': string;
28
+ 'action.fetchBody': string;
29
+ 'action.more': string;
30
+ 'action.addTag': string;
31
+ 'action.translate': string;
32
+ 'translate.view': string;
33
+ 'translate.onlyTranslation': string;
34
+ 'translate.bilingual': string;
35
+ 'translate.onlyOriginal': string;
36
+ 'translate.retry': string;
37
+ 'translate.tip': string;
38
+ 'translate.preparing': string;
39
+ 'translate.working': string;
40
+ 'translate.local': string;
41
+ 'translate.failed': string;
42
+ 'translate.failedAll': string;
43
+ 'translate.nothing': string;
44
+ 'translate.unsupported': string;
45
+ 'translate.dismiss': string;
46
+ 'detail.bodyStale': string;
47
+ 'tag.title': string;
48
+ 'tag.placeholder': string;
49
+ 'tag.hint': string;
50
+ 'tag.create': string;
51
+ 'tag.empty': string;
52
+ 'filter.byTag': string;
53
+ 'filter.byKind': string;
54
+ 'filter.deleteTag': string;
55
+ 'filter.hideDupes': string;
56
+ 'dedupe.badge': string;
57
+ 'dedupe.title': string;
58
+ 'filter.searchSource': string;
59
+ 'filter.noSourceMatch': string;
60
+ 'search.placeholder': string;
61
+ 'sort.title': string;
62
+ 'sort.newest': string;
63
+ 'sort.oldest': string;
64
+ 'sort.source': string;
65
+ 'action.refresh': string;
66
+ 'action.refreshOne': string;
67
+ 'action.add': string;
68
+ 'action.back': string;
69
+ 'action.copyLink': string;
70
+ 'action.openExternal': string;
71
+ 'action.quote': string;
72
+ 'action.manage': string;
73
+ 'action.recent': string;
74
+ 'recent.title': string;
75
+ 'recent.help': string;
76
+ 'recent.empty': string;
77
+ 'recent.clearTitle': string;
78
+ 'recent.sourceGone': string;
79
+ 'action.remove': string;
80
+ 'action.pause': string;
81
+ 'action.resume': string;
82
+ 'action.submit': string;
83
+ 'action.done': string;
84
+ 'action.cancel': string;
85
+ 'action.clearSearch': string;
86
+ 'add.title': string;
87
+ 'add.help': string;
88
+ 'add.placeholder': string;
89
+ 'verdict.subscribed': string;
90
+ 'verdict.savedLink': string;
91
+ 'verdict.savedLinkNoPreview': string;
92
+ 'verdict.duplicate': string;
93
+ 'verdict.invalidUrl': string;
94
+ 'verdict.unsupportedContent': string;
95
+ 'verdict.fetchFailed': string;
96
+ 'preview.blocked': string;
97
+ 'preview.login': string;
98
+ 'preview.unsupportedType': string;
99
+ 'preview.redirected': string;
100
+ 'preview.empty': string;
101
+ 'preview.unreachable': string;
102
+ 'preview.http': string;
103
+ 'preview.unreadable': string;
104
+ 'detail.linkOnlyBadge': string;
105
+ 'detail.fetchingBody': string;
106
+ 'detail.refetch': string;
107
+ 'detail.refetching': string;
108
+ 'detail.refetchTitle': string;
109
+ 'detail.removeLink': string;
110
+ 'state.loading': string;
111
+ 'state.emptyTitle': string;
112
+ 'state.emptyBody': string;
113
+ 'state.noMatch': string;
114
+ 'state.fetching': string;
115
+ 'state.incomplete': string;
116
+ 'state.error': string;
117
+ 'state.stale': string;
118
+ 'state.emptyWall': string;
119
+ 'state.incompleteReason': string;
120
+ 'state.matches': string;
121
+ 'sources.title': string;
122
+ 'sources.count': string;
123
+ 'sources.empty': string;
124
+ 'sources.help': string;
125
+ 'sources.enabled': string;
126
+ 'sources.disabled': string;
127
+ 'sources.time': string;
128
+ 'sources.timeHelp': string;
129
+ 'sources.failed': string;
130
+ 'sources.items': string;
131
+ 'sources.never': string;
132
+ 'sources.cardHint': string;
133
+ 'sources.name': string;
134
+ 'sources.cache': string;
135
+ 'sources.cacheHelp': string;
136
+ 'sources.cacheHours': string;
137
+ 'sources.cacheForever': string;
138
+ 'sources.storageBodies': string;
139
+ 'sources.storageBodiesUsage': string;
140
+ 'sources.storageBodiesHelp': string;
141
+ 'sources.storageTranslations': string;
142
+ 'sources.storageTranslationsUsage': string;
143
+ 'sources.storageTranslationsHelp': string;
144
+ 'sources.translationBudget': string;
145
+ 'sources.translationBudgetHelp': string;
146
+ 'sources.clearTranslations': string;
147
+ 'sources.clearTranslationsConfirm': string;
148
+ 'sources.blocked': string;
149
+ 'sources.unreachable': string;
150
+ 'sources.httpError': string;
151
+ 'sources.kindRss': string;
152
+ 'sources.kindLink': string;
153
+ 'sources.kindFilter': string;
154
+ 'sources.noMatch': string;
155
+ 'sources.sortAdded': string;
156
+ 'sources.sortName': string;
157
+ 'sources.sortFetched': string;
158
+ 'detail.fetchFailed': string;
159
+ 'sources.url': string;
160
+ 'detail.incomplete': string;
161
+ 'detail.readOriginal': string;
162
+ 'detail.extractFailed': string;
163
+ 'detail.summaryOnly': string;
164
+ 'detail.resolvedFrom': string;
165
+ 'detail.alsoFrom': string;
166
+ 'detail.composerLabel': string;
167
+ 'detail.composerEmpty': string;
168
+ 'foot.refreshedAt': string;
169
+ 'foot.scheduled': string;
170
+ 'foot.never': string;
171
+ 'foot.unread': string;
172
+ 'foot.refreshing': string;
173
+ 'foot.deduped': string;
174
+ 'state.backfilling': string;
175
+ 'detail.filledIn': string;
176
+ 'detail.filledInBadge': string;
177
+ 'detail.scriptFigures': string;
178
+ 'fetch.none': string;
179
+ 'fetch.fetching': string;
180
+ 'fetch.raw': string;
181
+ 'fetch.ready': string;
182
+ 'fetch.failed': string;
183
+ 'fetch.noneTitle': string;
184
+ 'fetch.readyTitle': string;
185
+ 'fetch.failedTitle': string;
186
+ 'fetch.failedOpenTitle': string;
187
+ 'fetch.failedFinalTitle': string;
188
+ 'detail.renderFetch': string;
189
+ 'detail.rendering': string;
190
+ 'quote.copied': string;
191
+ 'quote.copyFailed': string;
192
+ 'quote.quoted': string;
193
+ 'quote.toSideChat': string;
194
+ 'quote.sideChatUnavailable': string;
195
+ 'when.justNow': string;
196
+ 'when.minutes': string;
197
+ 'when.hours': string;
198
+ 'when.yesterday': string;
199
+ 'when.days': string;
200
+ };
201
+ export declare const zh: {
202
+ 'tab.label': string;
203
+ 'tab.subtitle': string;
204
+ 'guide.description': string;
205
+ 'filter.today': string;
206
+ 'filter.all': string;
207
+ 'filter.unreadOnly': string;
208
+ 'filter.unreadOn': string;
209
+ 'filter.readState': string;
210
+ 'filter.bySource': string;
211
+ 'action.filter': string;
212
+ 'action.fetchBody': string;
213
+ 'action.more': string;
214
+ 'action.addTag': string;
215
+ 'action.translate': string;
216
+ 'translate.view': string;
217
+ 'translate.onlyTranslation': string;
218
+ 'translate.bilingual': string;
219
+ 'translate.onlyOriginal': string;
220
+ 'translate.retry': string;
221
+ 'translate.tip': string;
222
+ 'translate.preparing': string;
223
+ 'translate.working': string;
224
+ 'translate.local': string;
225
+ 'translate.failed': string;
226
+ 'translate.failedAll': string;
227
+ 'translate.nothing': string;
228
+ 'translate.unsupported': string;
229
+ 'translate.dismiss': string;
230
+ 'detail.bodyStale': string;
231
+ 'tag.title': string;
232
+ 'tag.placeholder': string;
233
+ 'tag.hint': string;
234
+ 'tag.create': string;
235
+ 'tag.empty': string;
236
+ 'filter.byTag': string;
237
+ 'filter.byKind': string;
238
+ 'filter.deleteTag': string;
239
+ 'filter.hideDupes': string;
240
+ 'dedupe.badge': string;
241
+ 'dedupe.title': string;
242
+ 'filter.searchSource': string;
243
+ 'filter.noSourceMatch': string;
244
+ 'search.placeholder': string;
245
+ 'sort.title': string;
246
+ 'sort.newest': string;
247
+ 'sort.oldest': string;
248
+ 'sort.source': string;
249
+ 'action.refresh': string;
250
+ 'action.refreshOne': string;
251
+ 'action.add': string;
252
+ 'action.back': string;
253
+ 'action.copyLink': string;
254
+ 'action.openExternal': string;
255
+ 'action.quote': string;
256
+ 'action.manage': string;
257
+ 'action.recent': string;
258
+ 'recent.title': string;
259
+ 'recent.help': string;
260
+ 'recent.empty': string;
261
+ 'recent.clearTitle': string;
262
+ 'recent.sourceGone': string;
263
+ 'action.remove': string;
264
+ 'action.pause': string;
265
+ 'action.resume': string;
266
+ 'action.submit': string;
267
+ 'action.done': string;
268
+ 'action.cancel': string;
269
+ 'action.clearSearch': string;
270
+ 'add.title': string;
271
+ 'add.help': string;
272
+ 'add.placeholder': string;
273
+ 'verdict.subscribed': string;
274
+ 'verdict.savedLink': string;
275
+ 'verdict.savedLinkNoPreview': string;
276
+ 'verdict.duplicate': string;
277
+ 'verdict.invalidUrl': string;
278
+ 'verdict.unsupportedContent': string;
279
+ 'verdict.fetchFailed': string;
280
+ 'preview.blocked': string;
281
+ 'preview.login': string;
282
+ 'preview.unsupportedType': string;
283
+ 'preview.redirected': string;
284
+ 'preview.empty': string;
285
+ 'preview.unreachable': string;
286
+ 'preview.http': string;
287
+ 'preview.unreadable': string;
288
+ 'detail.linkOnlyBadge': string;
289
+ 'detail.fetchingBody': string;
290
+ 'detail.refetch': string;
291
+ 'detail.refetching': string;
292
+ 'detail.refetchTitle': string;
293
+ 'detail.removeLink': string;
294
+ 'state.loading': string;
295
+ 'state.emptyTitle': string;
296
+ 'state.emptyBody': string;
297
+ 'state.noMatch': string;
298
+ 'state.fetching': string;
299
+ 'state.incomplete': string;
300
+ 'state.error': string;
301
+ 'state.stale': string;
302
+ 'state.emptyWall': string;
303
+ 'state.incompleteReason': string;
304
+ 'state.matches': string;
305
+ 'sources.title': string;
306
+ 'sources.count': string;
307
+ 'sources.empty': string;
308
+ 'sources.help': string;
309
+ 'sources.enabled': string;
310
+ 'sources.disabled': string;
311
+ 'sources.time': string;
312
+ 'sources.timeHelp': string;
313
+ 'sources.failed': string;
314
+ 'sources.items': string;
315
+ 'sources.never': string;
316
+ 'sources.cardHint': string;
317
+ 'sources.name': string;
318
+ 'sources.cache': string;
319
+ 'sources.cacheHelp': string;
320
+ 'sources.cacheHours': string;
321
+ 'sources.cacheForever': string;
322
+ 'sources.storageBodies': string;
323
+ 'sources.storageBodiesUsage': string;
324
+ 'sources.storageBodiesHelp': string;
325
+ 'sources.storageTranslations': string;
326
+ 'sources.storageTranslationsUsage': string;
327
+ 'sources.storageTranslationsHelp': string;
328
+ 'sources.translationBudget': string;
329
+ 'sources.translationBudgetHelp': string;
330
+ 'sources.clearTranslations': string;
331
+ 'sources.clearTranslationsConfirm': string;
332
+ 'sources.blocked': string;
333
+ 'sources.unreachable': string;
334
+ 'sources.httpError': string;
335
+ 'sources.kindRss': string;
336
+ 'sources.kindLink': string;
337
+ 'sources.kindFilter': string;
338
+ 'sources.noMatch': string;
339
+ 'sources.sortAdded': string;
340
+ 'sources.sortName': string;
341
+ 'sources.sortFetched': string;
342
+ 'detail.fetchFailed': string;
343
+ 'sources.url': string;
344
+ 'detail.incomplete': string;
345
+ 'detail.readOriginal': string;
346
+ 'detail.extractFailed': string;
347
+ 'detail.summaryOnly': string;
348
+ 'detail.resolvedFrom': string;
349
+ 'detail.alsoFrom': string;
350
+ 'detail.composerLabel': string;
351
+ 'detail.composerEmpty': string;
352
+ 'foot.refreshedAt': string;
353
+ 'foot.scheduled': string;
354
+ 'foot.never': string;
355
+ 'foot.unread': string;
356
+ 'foot.refreshing': string;
357
+ 'foot.deduped': string;
358
+ 'state.backfilling': string;
359
+ 'detail.filledIn': string;
360
+ 'detail.filledInBadge': string;
361
+ 'detail.scriptFigures': string;
362
+ 'fetch.none': string;
363
+ 'fetch.fetching': string;
364
+ 'fetch.raw': string;
365
+ 'fetch.ready': string;
366
+ 'fetch.failed': string;
367
+ 'fetch.noneTitle': string;
368
+ 'fetch.readyTitle': string;
369
+ 'fetch.failedTitle': string;
370
+ 'fetch.failedOpenTitle': string;
371
+ 'fetch.failedFinalTitle': string;
372
+ 'detail.renderFetch': string;
373
+ 'detail.rendering': string;
374
+ 'quote.copied': string;
375
+ 'quote.copyFailed': string;
376
+ 'quote.quoted': string;
377
+ 'quote.toSideChat': string;
378
+ 'quote.sideChatUnavailable': string;
379
+ 'when.justNow': string;
380
+ 'when.minutes': string;
381
+ 'when.hours': string;
382
+ 'when.yesterday': string;
383
+ 'when.days': string;
384
+ };
385
+ declare module '@deepseek-ai/dsh-client-ui-slots' {
386
+ interface LocaleNamespaceMap {
387
+ /** The inspiration space's copy. */
388
+ 'reader': ReaderKey;
389
+ }
390
+ }
391
+ //# sourceMappingURL=locales.d.ts.map