textbrowser 0.48.0 → 0.48.2
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/.eslintrc.cjs +3 -1
- package/CHANGES.md +11 -0
- package/README.md +2 -6
- package/dist/WorkInfo-es.js +972 -344
- package/dist/activateCallback-es.js +2 -2
- package/dist/index-es.js +2713 -1105
- package/dist/index-es.min.js +4 -4
- package/dist/sw-helper.js +10 -6
- package/index.html +2 -0
- package/package.json +33 -33
- package/resources/activateCallback.js +2 -2
- package/resources/index.js +4 -4
- package/resources/resultsDisplay.js +44 -39
- package/resources/templates/languageSelect.js +3 -3
- package/resources/templates/resultsDisplayServerOrClient.js +76 -65
- package/resources/templates/workDisplay.js +123 -103
- package/resources/templates/workSelect.js +4 -4
- package/resources/utils/IntlURLSearchParams.js +1 -1
- package/resources/utils/Languages.js +3 -1
- package/resources/utils/Metadata.js +22 -21
- package/resources/utils/Plugin.js +4 -4
- package/resources/utils/ServiceWorker.js +7 -11
- package/resources/utils/WorkInfo.js +4 -4
- package/resources/utils/dialogs.js +2 -1
- package/resources/utils/getLocaleFallbackResults.js +3 -3
- package/resources/utils/sanitize.js +3 -3
- package/resources/workDisplay.js +13 -14
- package/resources/workSelect.js +3 -2
- package/server/main.js +6 -4
- package/dist/index-umd.js +0 -18864
- package/dist/index-umd.min.js +0 -19
- /package/dist/assets/{index-c987c995.css → index-_11XnUty.css} +0 -0
- /package/dist/assets/{languages-fcf1c836.json → languages-1sAACTKG.json} +0 -0
package/.eslintrc.cjs
CHANGED
|
@@ -13,6 +13,7 @@ module.exports = {
|
|
|
13
13
|
polyfills: [
|
|
14
14
|
'Array.isArray',
|
|
15
15
|
'Blob',
|
|
16
|
+
'caches',
|
|
16
17
|
'console',
|
|
17
18
|
'Date.now',
|
|
18
19
|
'document.dir',
|
|
@@ -25,6 +26,7 @@ module.exports = {
|
|
|
25
26
|
'history',
|
|
26
27
|
'history.replaceState',
|
|
27
28
|
'IDBKeyRange',
|
|
29
|
+
'indexedDB',
|
|
28
30
|
'JSON',
|
|
29
31
|
'location.hash',
|
|
30
32
|
'location.href',
|
|
@@ -85,7 +87,7 @@ module.exports = {
|
|
|
85
87
|
'array-bracket-newline': 0,
|
|
86
88
|
'no-console': 0,
|
|
87
89
|
'require-unicode-regexp': 0,
|
|
88
|
-
'max-len': 0,
|
|
90
|
+
'@stylistic/max-len': 0,
|
|
89
91
|
'no-shadow': 0,
|
|
90
92
|
'implicit-arrow-linebreak': 0,
|
|
91
93
|
'function-paren-newline': 0,
|
package/CHANGES.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# CHANGES to `textbrowser`
|
|
2
2
|
|
|
3
|
+
## 0.48.2
|
|
4
|
+
|
|
5
|
+
- fix: offline files issue
|
|
6
|
+
|
|
7
|
+
## 0.48.1
|
|
8
|
+
|
|
9
|
+
- fix: add to offline files
|
|
10
|
+
- refactor: drop unused files
|
|
11
|
+
- refactor: use `intl-locale-textinfo-polyfill` over `rtl-detect`
|
|
12
|
+
- chore: update deps., devDeps. and lint
|
|
13
|
+
|
|
3
14
|
## 0.48.0
|
|
4
15
|
|
|
5
16
|
- feat: service worker helper
|
package/README.md
CHANGED
|
@@ -420,9 +420,8 @@ methods.
|
|
|
420
420
|
- `applicableFieldIdx` - The `fieldInfo` item whose `field` property is equal to `applicableField`.
|
|
421
421
|
- `applicableFieldText` - Equivalent to `tr[applicableFieldIdx]`
|
|
422
422
|
- `fieldLang` - The `fieldLang` property of `fieldInfo[j]`
|
|
423
|
-
- `getLangDir` - A method
|
|
424
|
-
|
|
425
|
-
for determining directionality ("rtl" or "ltr") for a given
|
|
423
|
+
- `getLangDir` - A method for determining directionality
|
|
424
|
+
("rtl" or "ltr") for a given
|
|
426
425
|
language code. May be useful with
|
|
427
426
|
`fieldInfo[applicableFieldIdx].fieldLang`
|
|
428
427
|
- `escapeColumn` - Boolean (defaults to `true`). If set to `false`, will avoid
|
|
@@ -635,9 +634,6 @@ it supports the following arguments:
|
|
|
635
634
|
1. Drop unused fields in URL by default
|
|
636
635
|
1. Ensure works with `pnpm` in all environments (didn't work when deployed,
|
|
637
636
|
but would need to recall the problem and resolve)
|
|
638
|
-
1. Waiting: Avoid `rtl-detect` if
|
|
639
|
-
[intl-locale-info proposal](https://github.com/tc39/proposal-intl-locale-info)
|
|
640
|
-
gets implemented)
|
|
641
637
|
1. [`navigator.storage.estimate`](https://developers.google.com/web/updates/2017/08/estimating-available-storage-space)
|
|
642
638
|
1. Consider using `Intl.DisplayNames` (`type: 'language'`) with plugins so
|
|
643
639
|
can, e.g., show language visibly into which a targeted content language
|