textbrowser 0.41.0 → 0.41.1

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.
@@ -2,6 +2,16 @@
2
2
  "$schema": "http://json-schema.org/schema#",
3
3
  "type": "array",
4
4
  "items": {
5
- "type": "array"
5
+ "type": "array",
6
+ "items": {
7
+ "anyOf": [
8
+ {
9
+ "type": "integer"
10
+ },
11
+ {
12
+ "type": "string"
13
+ }
14
+ ]
15
+ }
6
16
  }
7
17
  }
@@ -21,7 +21,35 @@
21
21
  "properties": {
22
22
  "type": {"$ref": "#/definitions/typeArray"},
23
23
  "items": {
24
- "type": "array"
24
+ "type": "array",
25
+ "items": {
26
+ "type": "object",
27
+ "properties": {
28
+ "type": {
29
+ "type": "string",
30
+ "enum": ["string", "integer"]
31
+ },
32
+ "enum": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "format": {
39
+ "type": "string",
40
+ "enum": ["html"]
41
+ },
42
+ "title": {
43
+ "type": "string"
44
+ },
45
+ "minimum": {
46
+ "type": "integer"
47
+ },
48
+ "maximum": {
49
+ "type": "integer"
50
+ }
51
+ }
52
+ }
25
53
  }
26
54
  }
27
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "textbrowser",
3
- "version": "0.41.0",
3
+ "version": "0.41.1",
4
4
  "description": "Multilinear text browser",
5
5
  "main": "dist/index-umd.min.js",
6
6
  "module": "resources/index.js",
@@ -39,10 +39,10 @@
39
39
  "text"
40
40
  ],
41
41
  "dependencies": {
42
- "@babel/core": "^7.16.7",
43
- "@babel/register": "^7.16.9",
42
+ "@babel/core": "^7.17.2",
43
+ "@babel/register": "^7.17.0",
44
44
  "@brettz9/node-static": "^0.1.1",
45
- "command-line-args": "^5.2.0",
45
+ "command-line-args": "^5.2.1",
46
46
  "dialog-polyfill": "^0.5.6",
47
47
  "dom-parser": "^0.1.6",
48
48
  "form-serialization": "^0.11.0",
@@ -59,28 +59,28 @@
59
59
  "url-search-params-polyfill": "^8.1.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@babel/eslint-parser": "^7.16.5",
62
+ "@babel/eslint-parser": "^7.17.0",
63
63
  "@babel/plugin-proposal-object-rest-spread": "^7.16.7",
64
64
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
65
- "@babel/preset-env": "^7.16.8",
65
+ "@babel/preset-env": "^7.16.11",
66
66
  "@brettz9/eslint-plugin": "^1.0.4",
67
67
  "@rollup/plugin-babel": "^5.3.0",
68
68
  "@rollup/plugin-commonjs": "^21.0.1",
69
69
  "@rollup/plugin-json": "^4.1.0",
70
70
  "@rollup/plugin-node-resolve": "^13.1.3",
71
71
  "@stadtlandnetz/rollup-plugin-postprocess": "1.1.0",
72
- "ajv": "8.8.2",
72
+ "ajv": "8.10.0",
73
73
  "babel-plugin-dynamic-import-node": "^2.3.3",
74
- "chai": "^4.3.4",
75
- "eslint": "^8.6.0",
74
+ "chai": "^4.3.6",
75
+ "eslint": "^8.9.0",
76
76
  "eslint-config-ash-nazg": "^32.3.0",
77
77
  "eslint-config-standard": "^16.0.3",
78
78
  "eslint-plugin-array-func": "^3.1.7",
79
- "eslint-plugin-compat": "^4.0.1",
79
+ "eslint-plugin-compat": "^4.0.2",
80
80
  "eslint-plugin-eslint-comments": "^3.2.0",
81
81
  "eslint-plugin-html": "^6.2.0",
82
82
  "eslint-plugin-import": "^2.25.4",
83
- "eslint-plugin-jsdoc": "^37.6.1",
83
+ "eslint-plugin-jsdoc": "^37.9.1",
84
84
  "eslint-plugin-markdown": "^2.2.1",
85
85
  "eslint-plugin-no-unsanitized": "^4.0.1",
86
86
  "eslint-plugin-no-use-extend-native": "^0.5.0",
@@ -88,13 +88,13 @@
88
88
  "eslint-plugin-promise": "^6.0.0",
89
89
  "eslint-plugin-sonarjs": "^0.11.0",
90
90
  "eslint-plugin-standard": "^4.1.0",
91
- "eslint-plugin-unicorn": "^40.0.0",
91
+ "eslint-plugin-unicorn": "^40.1.0",
92
92
  "fast-json-patch": "3.1.0",
93
93
  "json-metaschema": "1.3.0",
94
- "mocha": "^9.1.3",
94
+ "mocha": "^9.2.0",
95
95
  "npm-run-all": "^4.1.5",
96
96
  "open-cli": "^7.0.1",
97
- "rollup": "2.63.0",
97
+ "rollup": "2.67.2",
98
98
  "rollup-plugin-re": "^1.0.7",
99
99
  "rollup-plugin-terser": "^7.0.2"
100
100
  }
@@ -176,7 +176,7 @@ class TextBrowser {
176
176
  builtinIndex,
177
177
  1,
178
178
  new URL('index.css', moduleURL).href,
179
- new URL('../../dialog-polyfill/dist/dialog-polyfill.css', moduleURL).href
179
+ new URL('node_modules/textbrowser/node_modules/dialog-polyfill/dist/dialog-polyfill.css', location).href
180
180
  );
181
181
  }
182
182
  this.stylesheets = stylesheets;
package/site.json CHANGED
@@ -75,6 +75,9 @@
75
75
  "fa": {
76
76
  "browser-title": "برازر اثار و الواح",
77
77
  "removecookies": "زبان دیگری را انتخاب فرمایید"
78
+ },
79
+ "ru": {
80
+ "browser-title": "Sacred Writings Browser"
78
81
  }
79
82
  }
80
83
  }
package/sw-sample.js CHANGED
@@ -9,6 +9,8 @@ const CURRENT_CACHES = {
9
9
  };
10
10
  const minutes = 60 * 1000;
11
11
 
12
+ // Changeable text to trigger worker change: 1
13
+
12
14
  // Utilities
13
15
 
14
16
  /**
@@ -134,7 +136,7 @@ const defaultUserStaticFiles = [
134
136
  // get these as reliable full paths without hard-coding or needing to
135
137
  // actually be in `node_modules/textbrowser`; see `resources/index.js`
136
138
  const textbrowserStaticResourceFiles = [
137
- 'node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js',
139
+ 'node_modules/textbrowser/node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js',
138
140
 
139
141
  'node_modules/textbrowser/appdata/languages.json',
140
142
 
@@ -147,14 +149,6 @@ const textbrowserStaticResourceFiles = [
147
149
  'node_modules/textbrowser/general-schemas/table.jsonschema', // Not currently using for validation or meta-data
148
150
  */
149
151
 
150
- // Todo: Ought to make these locales only conditionally required and
151
- // then only show those specified in languages menu or go directly
152
- // to work selection
153
- 'node_modules/textbrowser/locales/ar.json',
154
- 'node_modules/textbrowser/locales/en-US.json',
155
- 'node_modules/textbrowser/locales/fa.json',
156
- 'node_modules/textbrowser/locales/ru.json',
157
-
158
152
  'node_modules/textbrowser/dist/index-es.js'
159
153
  ];
160
154
 
@@ -197,6 +191,10 @@ async function install (time) {
197
191
  log('Install: Retrieved dependency values');
198
192
 
199
193
  const langPathParts = languages.split('/');
194
+
195
+ // Todo: Ought to make these locales only conditionally required and
196
+ // then only show those specified in languages menu or go directly
197
+ // to work selection
200
198
  // Todo: We might give option to only download
201
199
  // one locale and avoid language splash page
202
200
  const localeFiles = langs.map(