textbrowser 0.50.0 → 0.51.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 (104) hide show
  1. package/.ncurc.cjs +3 -0
  2. package/CHANGES.md +8 -0
  3. package/dist/WorkInfo-es.js +361 -111
  4. package/dist/activateCallback-es.js +72 -10
  5. package/dist/dist/WorkInfo-es.d.ts +331 -0
  6. package/dist/dist/WorkInfo-es.d.ts.map +1 -0
  7. package/dist/dist/activateCallback-es.d.ts +17 -0
  8. package/dist/dist/activateCallback-es.d.ts.map +1 -0
  9. package/dist/dist/index-es.d.ts +619 -0
  10. package/dist/dist/index-es.d.ts.map +1 -0
  11. package/dist/dist/sw-helper.d.ts +3 -0
  12. package/dist/dist/sw-helper.d.ts.map +1 -0
  13. package/dist/eslint.config.d.ts +126 -0
  14. package/dist/eslint.config.d.ts.map +1 -0
  15. package/dist/index-es.js +959 -195
  16. package/dist/index-es.min.js +2 -2
  17. package/dist/resources/activateCallback.d.ts +23 -0
  18. package/dist/resources/activateCallback.d.ts.map +1 -0
  19. package/dist/resources/index.d.ts +128 -0
  20. package/dist/resources/index.d.ts.map +1 -0
  21. package/dist/resources/resultsDisplay.d.ts +110 -0
  22. package/dist/resources/resultsDisplay.d.ts.map +1 -0
  23. package/dist/resources/templates/index.d.ts +59 -0
  24. package/dist/resources/templates/index.d.ts.map +1 -0
  25. package/dist/resources/templates/languageSelect.d.ts +18 -0
  26. package/dist/resources/templates/languageSelect.d.ts.map +1 -0
  27. package/dist/resources/templates/resultsDisplayClient.d.ts +26 -0
  28. package/dist/resources/templates/resultsDisplayClient.d.ts.map +1 -0
  29. package/dist/resources/templates/resultsDisplayServerOrClient.d.ts +131 -0
  30. package/dist/resources/templates/resultsDisplayServerOrClient.d.ts.map +1 -0
  31. package/dist/resources/templates/utils/dom.d.ts +15 -0
  32. package/dist/resources/templates/utils/dom.d.ts.map +1 -0
  33. package/dist/resources/templates/utils/html.d.ts +3 -0
  34. package/dist/resources/templates/utils/html.d.ts.map +1 -0
  35. package/dist/resources/templates/workDisplay.d.ts +183 -0
  36. package/dist/resources/templates/workDisplay.d.ts.map +1 -0
  37. package/dist/resources/templates/workSelect.d.ts +18 -0
  38. package/dist/resources/templates/workSelect.d.ts.map +1 -0
  39. package/dist/resources/user-sample.d.ts +2 -0
  40. package/dist/resources/user-sample.d.ts.map +1 -0
  41. package/dist/resources/user.d.ts +2 -0
  42. package/dist/resources/user.d.ts.map +1 -0
  43. package/dist/resources/utils/IntlURLSearchParams.d.ts +56 -0
  44. package/dist/resources/utils/IntlURLSearchParams.d.ts.map +1 -0
  45. package/dist/resources/utils/Languages.d.ts +81 -0
  46. package/dist/resources/utils/Languages.d.ts.map +1 -0
  47. package/dist/resources/utils/Metadata.d.ts +133 -0
  48. package/dist/resources/utils/Metadata.d.ts.map +1 -0
  49. package/dist/resources/utils/Params.d.ts +30 -0
  50. package/dist/resources/utils/Params.d.ts.map +1 -0
  51. package/dist/resources/utils/Plugin.d.ts +274 -0
  52. package/dist/resources/utils/Plugin.d.ts.map +1 -0
  53. package/dist/resources/utils/ServiceWorker.d.ts +26 -0
  54. package/dist/resources/utils/ServiceWorker.d.ts.map +1 -0
  55. package/dist/resources/utils/WorkInfo.d.ts +104 -0
  56. package/dist/resources/utils/WorkInfo.d.ts.map +1 -0
  57. package/dist/resources/utils/dialogs.d.ts +155 -0
  58. package/dist/resources/utils/dialogs.d.ts.map +1 -0
  59. package/dist/resources/utils/getLocaleFallbackResults.d.ts +19 -0
  60. package/dist/resources/utils/getLocaleFallbackResults.d.ts.map +1 -0
  61. package/dist/resources/utils/sanitize.d.ts +6 -0
  62. package/dist/resources/utils/sanitize.d.ts.map +1 -0
  63. package/dist/resources/vendor/json-refs-min.d.ts +3 -0
  64. package/dist/resources/vendor/json-refs-min.d.ts.map +1 -0
  65. package/dist/resources/workDisplay.d.ts +81 -0
  66. package/dist/resources/workDisplay.d.ts.map +1 -0
  67. package/dist/resources/workSelect.d.ts +17 -0
  68. package/dist/resources/workSelect.d.ts.map +1 -0
  69. package/dist/rollup.config.d.ts +19 -0
  70. package/dist/rollup.config.d.ts.map +1 -0
  71. package/dist/server/main.d.ts +46 -0
  72. package/dist/server/main.d.ts.map +1 -0
  73. package/dist/sw-helper.d.ts +3 -0
  74. package/dist/sw-helper.d.ts.map +1 -0
  75. package/dist/sw-helper.js +52 -12
  76. package/dist/sw-sample.d.ts +2 -0
  77. package/dist/sw-sample.d.ts.map +1 -0
  78. package/general-schemas/files.jsonschema +6 -0
  79. package/package.json +21 -8
  80. package/resources/activateCallback.js +75 -10
  81. package/resources/index.js +161 -49
  82. package/resources/resultsDisplay.js +517 -152
  83. package/resources/templates/index.js +39 -16
  84. package/resources/templates/languageSelect.js +14 -1
  85. package/resources/templates/resultsDisplayClient.js +22 -3
  86. package/resources/templates/resultsDisplayServerOrClient.js +188 -49
  87. package/resources/templates/utils/dom.js +13 -2
  88. package/resources/templates/workDisplay.js +299 -75
  89. package/resources/templates/workSelect.js +16 -3
  90. package/resources/utils/IntlURLSearchParams.js +46 -4
  91. package/resources/utils/Languages.js +71 -4
  92. package/resources/utils/Metadata.js +219 -22
  93. package/resources/utils/Params.js +70 -23
  94. package/resources/utils/Plugin.js +169 -1
  95. package/resources/utils/ServiceWorker.js +48 -19
  96. package/resources/utils/WorkInfo.js +255 -43
  97. package/resources/utils/dialogs.js +105 -7
  98. package/resources/utils/getLocaleFallbackResults.js +12 -2
  99. package/resources/utils/sanitize.js +4 -0
  100. package/resources/workDisplay.js +151 -25
  101. package/resources/workSelect.js +37 -17
  102. package/server/main.js +111 -19
  103. package/tsconfig.json +30 -0
  104. package/resources/user.js +0 -20
@@ -0,0 +1,619 @@
1
+ export { TextBrowser as default };
2
+ export type getJSONCallback = (jsonURL: string | string[], cb: SimpleJSONCallback, errBack: SimpleJSONErrback) => Promise<JSON>;
3
+ export type PromiseChainErrback = (value: any) => Promise<any> | any;
4
+ export type KeyCheckerConverterCallback = (key: string | string[], messageStyle: "plain" | "plainNested" | "rich" | "richNested" | any) => any;
5
+ export type Sort = any;
6
+ export type SortList = any;
7
+ export type List = any;
8
+ export type I18NCallback = any;
9
+ export type Integer = number;
10
+ /**
11
+ * :FormSerialization.Serializer
12
+ */
13
+ export type module = (result: PlainObject | string | any, key: string, value: string) => PlainObject | string | any;
14
+ export type ResultArray = GenericArray;
15
+ export type ChildrenToJMLCallback = (childNodeJML: JamilihArray | JamilihChildType | string, i: Integer) => void;
16
+ /**
17
+ * Keep this in sync with `JamilihArray`'s first argument (minus `Document`).
18
+ */
19
+ export type JamilihFirstArg = JamilihDoc | JamilihDoctype | JamilihTextNode | JamilihAttributeNode | JamilihOptions | ElementName | HTMLElement | JamilihDocumentFragment;
20
+ export type JamilihAppender = (childJML: JamilihArray | JamilihFirstArg | Node | TextNodeString) => void;
21
+ export type appender = (childJML: JamilihArray | JamilihFirstArg | Node | TextNodeString) => void;
22
+ export type JamilihReturn = HTMLElement | DocumentFragment | Comment | Attr | Text | Document | DocumentType | ProcessingInstruction | CDATASection;
23
+ /**
24
+ * Can either be an array of:
25
+ * 1. JamilihAttributes followed by an array of JamilihArrays or Elements.
26
+ * (Cannot be multiple single JamilihArrays despite TS type).
27
+ * 2. Any number of JamilihArrays.
28
+ */
29
+ export type TemplateJamilihArray = [(JamilihAttributes | JamilihArray | JamilihArray[] | HTMLElement), ...(JamilihArray | JamilihArray[] | HTMLElement)[]];
30
+ export type ShadowRootJamilihArrayContainer = (JamilihArray | HTMLElement)[];
31
+ export type JamilihShadowRootObject = {
32
+ open?: boolean | ShadowRootJamilihArrayContainer;
33
+ closed?: boolean | ShadowRootJamilihArrayContainer;
34
+ template?: string | HTMLTemplateElement | TemplateJamilihArray;
35
+ content?: ShadowRootJamilihArrayContainer | DocumentFragment;
36
+ };
37
+ export type XmlnsAttributeObject = {
38
+ [key: string]: string;
39
+ };
40
+ export type XmlnsAttributeValue = null | XmlnsAttributeObject;
41
+ export type DatasetAttributeObject = {
42
+ [key: string]: string | number | null | undefined | DatasetAttributeObject;
43
+ };
44
+ export type StyleAttributeValue = string | undefined | {
45
+ [key: string]: string | null;
46
+ };
47
+ export type EventHandler = (this: HTMLElement, event: Event & {
48
+ target: HTMLElement;
49
+ }) => void;
50
+ export type OnAttributeObject = {
51
+ [key: string]: EventHandler | [EventHandler, boolean];
52
+ };
53
+ export type OnAttribute = {
54
+ $on?: OnAttributeObject | null;
55
+ };
56
+ export type BooleanAttribute = boolean;
57
+ export type HandlerAttributeValue = ((this: HTMLElement, event?: Event) => void);
58
+ export type OnHandlerObject = {
59
+ [key: string]: HandlerAttributeValue;
60
+ };
61
+ export type StringifiableNumber = number;
62
+ export type JamilihDocumentType = {
63
+ name: string;
64
+ systemId?: string;
65
+ publicId?: string;
66
+ };
67
+ export type DefineOptions = string | {
68
+ extends?: string;
69
+ };
70
+ export type DefineMixin = {
71
+ [key: string]: string | number | boolean | ((this: DefineMixin, ...args: any[]) => any);
72
+ };
73
+ export type DefineConstructor = {
74
+ new (): HTMLElement;
75
+ prototype: HTMLElement & {
76
+ [key: string]: any;
77
+ };
78
+ };
79
+ export type DefineUserConstructor = (this: HTMLElement) => void;
80
+ export type DefineObjectArray = [DefineConstructor | DefineUserConstructor | DefineMixin, DefineOptions?] | [DefineConstructor | DefineUserConstructor, DefineMixin?, DefineOptions?];
81
+ export type DefineObject = DefineObjectArray | DefineConstructor | DefineMixin | DefineUserConstructor;
82
+ export type SymbolObject = {
83
+ elem?: HTMLElement;
84
+ [key: string]: any;
85
+ };
86
+ export type SymbolArray = [symbol | string, ((this: HTMLElement, ...args: any[]) => any) | SymbolObject];
87
+ export type NullableAttributeValue = null | undefined;
88
+ export type PluginValue = [string, object] | string | {
89
+ [key: string]: any;
90
+ };
91
+ export type JamilihAttValue = (string | NullableAttributeValue | BooleanAttribute | JamilihArray | JamilihShadowRootObject | StringifiableNumber | JamilihDocumentType | JamilihDocument | XmlnsAttributeValue | OnAttributeObject | HandlerAttributeValue | DefineObject | SymbolArray | PluginReference | PluginValue);
92
+ export type DataAttributeObject = {
93
+ [key: string]: string | number | ((this: HTMLElement, ...args: any[]) => any);
94
+ };
95
+ export type DataAttribute = {
96
+ $data?: true | string[] | Map<any, any> | WeakMap<any, any> | DataAttributeObject | [undefined, DataAttributeObject] | [Map<any, any> | WeakMap<any, any> | undefined, DataAttributeObject];
97
+ };
98
+ export type DatasetAttribute = {
99
+ dataset?: DatasetAttributeObject;
100
+ };
101
+ export type StyleAttribute = {
102
+ style?: StyleAttributeValue;
103
+ };
104
+ export type JamilihShadowRootAttribute = {
105
+ $shadow?: JamilihShadowRootObject;
106
+ };
107
+ export type DefineAttribute = {
108
+ is?: string | null;
109
+ $define?: DefineObject;
110
+ };
111
+ export type CustomAttribute = {
112
+ $custom?: {
113
+ [key: string]: any;
114
+ };
115
+ };
116
+ export type SymbolAttribute = {
117
+ $symbol?: SymbolArray;
118
+ };
119
+ export type XmlnsAttribute = {
120
+ xmlns?: string | null | XmlnsAttributeObject;
121
+ };
122
+ /**
123
+ * `OnHandlerObject &` wasn't working, so added `HandlerAttributeValue`.
124
+ */
125
+ export type JamilihAttributes = DataAttribute & StyleAttribute & JamilihShadowRootAttribute & DefineAttribute & DatasetAttribute & CustomAttribute & SymbolAttribute & OnAttribute & XmlnsAttribute & Partial<JamilihAttributeNode> & Partial<JamilihTextNode> & Partial<JamilihDoc> & Partial<JamilihDoctype> & {
126
+ [key: string]: JamilihAttValue | HandlerAttributeValue;
127
+ };
128
+ export type JamilihDocument = {
129
+ title?: string;
130
+ childNodes?: JamilihChildType[];
131
+ $DOCTYPE?: JamilihDocumentType;
132
+ head?: JamilihChildren;
133
+ body?: JamilihChildren;
134
+ };
135
+ export type JamilihDoc = {
136
+ $document: JamilihDocument;
137
+ };
138
+ export type JamilihDoctype = {
139
+ $DOCTYPE: JamilihDocumentType;
140
+ };
141
+ export type JamilihDocumentFragmentContent = JamilihArray | TextNodeString | HTMLElement;
142
+ export type JamilihDocumentFragment = {
143
+ "#": JamilihDocumentFragmentContent[];
144
+ };
145
+ export type ElementName = string;
146
+ export type TextNodeString = string | number;
147
+ export type PluginReference = {
148
+ [key: string]: string;
149
+ };
150
+ export type JamilihChildren = (JamilihArray | TextNodeString | HTMLElement | Comment | ProcessingInstruction | Text | DocumentFragment | JamilihProcessingInstruction | JamilihDocumentFragment | PluginReference)[];
151
+ export type JamilihFirstArgument = Document | ElementName | HTMLElement | DocumentFragment | JamilihDocumentFragment | JamilihDoc | JamilihDoctype | JamilihTextNode | JamilihAttributeNode;
152
+ /**
153
+ * This would be clearer with overrides, but using as typedef.
154
+ *
155
+ * The optional 0th argument is an Jamilih options object or fragment.
156
+ *
157
+ * The first argument is the element to create (by lower-case name) or DOM element.
158
+ *
159
+ * The second optional argument are attributes to add with the key as the
160
+ * attribute name and value as the attribute value.
161
+ * The third optional argument are an array of children for this element
162
+ * (but raw DOM elements are required to be specified within arrays since
163
+ * could not otherwise be distinguished from siblings being added).
164
+ * The fourth optional argument are a sequence of sibling Elements, represented
165
+ * as DOM elements, or string/attributes/children sequences.
166
+ * The fifth optional argument is the parent to which to attach the element
167
+ * (always the last unless followed by null, in which case it is the
168
+ * second-to-last).
169
+ * The sixth last optional argument is null, used to indicate an array of elements
170
+ * should be returned.
171
+ */
172
+ export type JamilihArray = [JamilihOptions | JamilihFirstArgument, (JamilihFirstArgument | JamilihAttributes | JamilihChildren | HTMLElement | ShadowRoot | null)?, (JamilihAttributes | JamilihChildren | HTMLElement | ShadowRoot | ElementName | null)?, ...(JamilihAttributes | JamilihChildren | HTMLElement | ShadowRoot | ElementName | null)[]];
173
+ export type JamilihArrayPostOptions = [(string | HTMLElement | ShadowRoot), (JamilihArray[] | JamilihAttributes | HTMLElement | ShadowRoot | null)?, ...(JamilihArray[] | HTMLElement | JamilihAttributes | ShadowRoot | null)[]];
174
+ export type MapWithRoot = {
175
+ root: [Map<HTMLElement, any> | WeakMap<HTMLElement, any>, any];
176
+ [key: string]: [Map<HTMLElement, any> | WeakMap<HTMLElement, any>, any];
177
+ };
178
+ export type TraversalState = "root" | "attributeValue" | "element" | "fragment" | "children" | "fragmentChildren";
179
+ export type JamilihOptions = {
180
+ $state?: TraversalState | undefined;
181
+ $plugins?: JamilihPlugin[] | undefined;
182
+ $map?: [Map<HTMLElement, any> | WeakMap<HTMLElement, any>, any] | MapWithRoot | undefined;
183
+ };
184
+ export type Langs = PlainObject;
185
+ export type JSON6 = any;
186
+ export type AnyValue = any;
187
+ export type BetweenMatches = (str: string) => void;
188
+ export type AfterMatch = (str: string) => void;
189
+ export type EscapeAtOne = (str: string) => void;
190
+ export type Fetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
191
+ /**
192
+ * Callback to give replacement text based on a substitution value.
193
+ *
194
+ * `value` - contains the value returned by the individual substitution.
195
+ * `arg` - See `cfg.arg` of {@link SubstitutionCallback}.
196
+ * `key` - The substitution key Not currently in use
197
+ * `locale` - The locale.
198
+ */
199
+ export type AllSubstitutionCallback = (info: {
200
+ value: any;
201
+ arg?: string;
202
+ key?: string;
203
+ locale?: string;
204
+ }) => string | Node;
205
+ /**
206
+ * `arg` - By default, accepts the third portion of the
207
+ * `formattingRegex` within `insertNodes`, i.e., to allow the locale to
208
+ * supply arguments back to the calling script.
209
+ * `key` - The substitution key.
210
+ */
211
+ export type SubstitutionCallback = (cfg: {
212
+ arg: string;
213
+ key: string;
214
+ }) => string | Element;
215
+ /**
216
+ * May have additional properties if supplying options to an underlying
217
+ * formatter.
218
+ * The first value is the main value.
219
+ * The second are the options related to the main value.
220
+ * The third are any additional options.
221
+ */
222
+ export type ValueArray = [string | number | Date, object?, object?];
223
+ export type ListValueArray = [string[], (((item: string, i: Integer) => Element) | object)?, object?, object?];
224
+ export type DateRangeValueArray = [Date | number, Date | number, Intl.DateTimeFormatOptions | undefined];
225
+ export type RelativeValueArray = [number, Intl.RelativeTimeFormatUnit, object?];
226
+ export type RelativeTimeInfo = {
227
+ relative: RelativeValueArray;
228
+ };
229
+ export type ListInfo = {
230
+ list: ListValueArray;
231
+ };
232
+ export type NumberInfo = {
233
+ number: ValueArray | number;
234
+ };
235
+ export type DateInfo = {
236
+ date: ValueArray;
237
+ };
238
+ export type DateTimeInfo = {
239
+ datetime: ValueArray;
240
+ };
241
+ export type DateRangeInfo = {
242
+ dateRange: DateRangeValueArray;
243
+ };
244
+ export type DatetimeRangeInfo = {
245
+ datetimeRange: DateRangeValueArray;
246
+ };
247
+ export type RegionInfo = {
248
+ region: ValueArray;
249
+ };
250
+ export type LanguageInfo = {
251
+ language: ValueArray;
252
+ };
253
+ export type ScriptInfo = {
254
+ script: ValueArray;
255
+ };
256
+ export type CurrencyInfo = {
257
+ currency: ValueArray;
258
+ };
259
+ export type PluralInfo = {
260
+ plural: ValueArray;
261
+ };
262
+ export type PlainLocaleStringBodyObject = {
263
+ [key: string]: string;
264
+ };
265
+ export type PlainNestedLocaleStringBodyObject = {
266
+ [key: string]: string | PlainNestedLocaleStringBodyObject;
267
+ };
268
+ export type SwitchCaseInfo = {
269
+ /**
270
+ * Whether this conditional is the default
271
+ */
272
+ default?: boolean | undefined;
273
+ };
274
+ /**
275
+ * Contains the type, the message, and optional info about the switch case.
276
+ */
277
+ export type SwitchCaseArray = [string, string, SwitchCaseInfo?];
278
+ export type SwitchArray = {
279
+ [x: string]: SwitchCaseArray;
280
+ };
281
+ export type SwitchArrays = {
282
+ [x: string]: SwitchArray;
283
+ };
284
+ export type SwitchCase = {
285
+ /**
286
+ * The locale message with any formatting
287
+ * place-holders; defaults to use of any single conditional
288
+ */
289
+ message: string;
290
+ /**
291
+ * A description to add for translators
292
+ */
293
+ description?: string | undefined;
294
+ };
295
+ export type Switch = {
296
+ [x: string]: SwitchCase;
297
+ };
298
+ export type Switches = {
299
+ [x: string]: Switch;
300
+ };
301
+ export type RichLocaleStringSubObject = {
302
+ /**
303
+ * The locale message with any formatting
304
+ * place-holders; defaults to use of any single conditional
305
+ */
306
+ message: string;
307
+ /**
308
+ * A description to add for translators
309
+ */
310
+ description?: string | undefined;
311
+ /**
312
+ * Conditionals
313
+ */
314
+ switches?: {
315
+ [x: string]: {
316
+ [x: string]: SwitchCase;
317
+ };
318
+ } | undefined;
319
+ };
320
+ export type RichLocaleStringBodyObject = {
321
+ [key: string]: RichLocaleStringSubObject;
322
+ };
323
+ export type RichNestedLocaleStringBodyObject = {
324
+ [key: string]: RichLocaleStringSubObject | RichNestedLocaleStringBodyObject;
325
+ };
326
+ /**
327
+ * Takes a base path and locale and gives a URL.
328
+ */
329
+ export type LocaleResolver = (localesBasePath: string, locale: string) => string | false;
330
+ export type DateRange = [Date | number, Date | number, (Intl.DateTimeFormatOptions | undefined)?];
331
+ export type SubstitutionObjectValue = string | string[] | number | Date | DateRange | Element | Node | SubstitutionCallback | NumberInfo | PluralInfo | CurrencyInfo | LanguageInfo | ScriptInfo | DatetimeRangeInfo | DateRangeInfo | RegionInfo | DateTimeInfo | DateInfo | ListInfo | RelativeTimeInfo;
332
+ export type SubstitutionObject = {
333
+ [key: string]: SubstitutionObjectValue;
334
+ };
335
+ export type Replace = (cfg: {
336
+ str: string;
337
+ substs?: any;
338
+ formatter?: any | any | any;
339
+ }) => string;
340
+ export type ProcessSubstitutions = (cfg: {
341
+ str: string;
342
+ substs?: any;
343
+ formatter?: any | any | any;
344
+ }) => (string | Node)[];
345
+ /**
346
+ * Callback to return a string or array of nodes and strings based on
347
+ * a localized string, substitutions object, and other metadata.
348
+ *
349
+ * `string` - The localized string.
350
+ * `dom` - If substitutions known to contain DOM, can be set
351
+ * to `true` to optimize.
352
+ * `usedKeys` - Array for tracking which keys have been used. Defaults
353
+ * to empty array.
354
+ * `substitutions` - The formatting substitutions object.
355
+ * `allSubstitutions` - The
356
+ * callback or array composed thereof for applying to each substitution.
357
+ * `locale` - The successfully resolved locale
358
+ * `locals` - The local section.
359
+ * `switches` - The switch section.
360
+ * `maximumLocalNestingDepth` - Depth of local variable resolution to
361
+ * check before reporting a recursion error. Defaults to 3.
362
+ * `missingSuppliedFormatters` - Callback
363
+ * supplied key to throw if the supplied key is present (if
364
+ * `throwOnMissingSuppliedFormatters` is enabled). Defaults to no-op.
365
+ * `checkExtraSuppliedFormatters` - No
366
+ * argument callback to check if any formatters are not present in `string`
367
+ * (if `throwOnExtraSuppliedFormatters` is enabled). Defaults to no-op.
368
+ */
369
+ export type InsertNodesCallback = (cfg: {
370
+ string: string;
371
+ dom?: boolean;
372
+ usedKeys: string[];
373
+ substitutions: any;
374
+ allSubstitutions?: (any | any[]) | null;
375
+ locale: string | undefined;
376
+ locals?: any | undefined;
377
+ switches: any | undefined;
378
+ maximumLocalNestingDepth?: Integer;
379
+ missingSuppliedFormatters: any;
380
+ checkExtraSuppliedFormatters: any;
381
+ }) => string | (Node | string)[];
382
+ export type LocalObject = LocaleBody;
383
+ /**
384
+ * May also contain language code and direction, translator name and
385
+ * contact, etc., but no defaults currently apply besides reserving `locals`
386
+ */
387
+ export type LocaleHead = {
388
+ locals?: LocalObject;
389
+ switches?: any;
390
+ };
391
+ export type LocaleBody = any | any | any | any | object;
392
+ export type LocaleObject = {
393
+ head?: LocaleHead | undefined;
394
+ body: LocaleBody;
395
+ };
396
+ export type MessageStyleCallbackResult = {
397
+ /**
398
+ * Regardless of message style, will contain
399
+ * the string result
400
+ */
401
+ value: string;
402
+ /**
403
+ * Full info on the localized item
404
+ * (for rich message styles only)
405
+ */
406
+ info?: any;
407
+ };
408
+ export type MessageStyleCallback = (obj: LocaleObject, key: string) => false | MessageStyleCallbackResult;
409
+ export type CheckExtraSuppliedFormattersCallback = (substs: any | {
410
+ substitutions: import("./defaultLocaleResolver.js").SubstitutionObject;
411
+ }) => any;
412
+ export type MissingSuppliedFormattersCallback = (cfg: {
413
+ key: string;
414
+ formatter: any | any | any;
415
+ }) => boolean;
416
+ export type LocaleObjectInfo = {
417
+ /**
418
+ * The successfully retrieved locale strings
419
+ */
420
+ strings: any;
421
+ /**
422
+ * The successfully resolved locale
423
+ */
424
+ locale: string;
425
+ };
426
+ export type LocaleStringArgs = {
427
+ locales?: string[];
428
+ defaultLocales?: string[];
429
+ localesBasePath?: string;
430
+ localeResolver?: any;
431
+ localeMatcher?: "lookup" | LocaleMatcher;
432
+ };
433
+ /**
434
+ * `locales` - BCP-47 language strings. Defaults to `navigator.languages`.
435
+ * `defaultLocales` - Defaults to ["en-US"].
436
+ * `localesBasePath` - Defaults to `.`.
437
+ * `localeResolver` - Defaults to `defaultLocaleResolver`.
438
+ */
439
+ export type LocaleStringFinder = (cfg?: LocaleStringArgs) => Promise<LocaleObjectInfo>;
440
+ export type HTMLWindow = Window & {
441
+ DocumentFragment: any;
442
+ };
443
+ export type ArbitraryValue = any;
444
+ export type PluginSettings = {
445
+ element: Document | HTMLElement | DocumentFragment;
446
+ attribute: {
447
+ name: string | null;
448
+ value: JamilihAttValue;
449
+ };
450
+ opts: JamilihOptions;
451
+ };
452
+ export type JamilihPlugin = {
453
+ name: string;
454
+ set: (opts: PluginSettings) => string | Promise<void>;
455
+ };
456
+ export type ValueOf<T> = T[keyof T];
457
+ /**
458
+ * Configuration object.
459
+ */
460
+ export type ToJmlConfig = {
461
+ /**
462
+ * Whether to output the Jamilih object as a string.
463
+ */
464
+ stringOutput?: boolean | undefined;
465
+ /**
466
+ * If true (the default), will report invalid state errors
467
+ */
468
+ reportInvalidState?: boolean | undefined;
469
+ /**
470
+ * Strip whitespace for text nodes
471
+ */
472
+ stripWhitespace?: boolean | undefined;
473
+ };
474
+ export type JamilihAttributeNodeValue = [namespace: string | null, name: string, value?: string];
475
+ export type JamilihAttributeNode = {
476
+ $attribute: JamilihAttributeNodeValue;
477
+ };
478
+ export type JamilihTextNode = {
479
+ $text: string;
480
+ };
481
+ export type JamilihCDATANode = ["![", string];
482
+ export type JamilihEntityReference = ["&", string];
483
+ export type JamilihProcessingInstruction = [code: "?", target: string, value: string];
484
+ export type JamilihComment = [code: "!", value: string];
485
+ export type Entity = {
486
+ nodeType: number;
487
+ nodeName: string;
488
+ };
489
+ export type JamilihChildType = JamilihArray | JamilihDoctype | JamilihCDATANode | JamilihEntityReference | JamilihProcessingInstruction | JamilihComment | JamilihDocumentFragment;
490
+ export type JamilihType = JamilihDoc | JamilihAttributeNode | JamilihChildType;
491
+ export type MapAndElementArray = [JamilihWeakMap | JamilihMap, HTMLElement];
492
+ export type MapCommand = ((elem: HTMLElement, ...args: any[]) => void) | {
493
+ [key: string]: (elem: HTMLElement, ...args: any[]) => void;
494
+ };
495
+ declare class TextBrowser {
496
+ constructor(options: any);
497
+ site: any;
498
+ stylesheets: any;
499
+ allowPlugins: any;
500
+ dynamicBasePath: any;
501
+ trustFormatHTML: any;
502
+ requestPersistentStorage: any;
503
+ localizeParamNames: any;
504
+ hideFormattingSection: boolean;
505
+ preferencesPlugin: any;
506
+ interlinearSeparator: any;
507
+ showEmptyInterlinear: any;
508
+ showTitleOnSingleInterlinear: any;
509
+ noDynamic: any;
510
+ skipIndexedDB: any;
511
+ init(): Promise<void>;
512
+ _stylesheetElements: HTMLLinkElement[] | undefined;
513
+ langData: any;
514
+ siteData: any;
515
+ getWorkData(opts: any): Promise<{
516
+ fileData: undefined;
517
+ workI18n: any;
518
+ getFieldAliasOrName: (field: any) => any;
519
+ metadataObj: any;
520
+ schemaObj: any;
521
+ schemaItems: any;
522
+ fieldInfo: any;
523
+ pluginsForWork: PluginsForWork;
524
+ groupsToWorks: any;
525
+ metadata: Metadata;
526
+ }> | undefined;
527
+ getDirectionForLanguageCode(code: any): any;
528
+ getFieldNameAndValueAliases(args: any): {
529
+ aliases: null;
530
+ fieldValueAliasMap: null;
531
+ rawFieldValueAliasMap: null;
532
+ fieldName: any;
533
+ fieldSchema: any;
534
+ fieldSchemaIndex: any;
535
+ preferAlias: any;
536
+ lang: any;
537
+ };
538
+ getBrowseFieldData(args: any): void;
539
+ paramChange(): Promise<void>;
540
+ $p: IntlURLSearchParams | undefined;
541
+ lang: any[] | undefined;
542
+ l10n: any;
543
+ workDisplay: typeof workDisplay;
544
+ resultsDisplayClient: (args: any) => Promise<void>;
545
+ }
546
+ /**
547
+ * Element-aware wrapper for `WeakMap`.
548
+ * @extends {WeakMap<any>}
549
+ */
550
+ declare class JamilihWeakMap extends WeakMap<any, any> {
551
+ constructor(entries?: readonly (readonly [any, any])[] | null | undefined);
552
+ constructor(iterable: Iterable<readonly [any, any]>);
553
+ /**
554
+ * @param {HTMLElement} element
555
+ * @param {ArbitraryValue} value
556
+ * @returns {ArbitraryValue}
557
+ */
558
+ set(element: HTMLElement, value: ArbitraryValue): ArbitraryValue;
559
+ /**
560
+ * @param {string|HTMLElement} element
561
+ * @param {string} methodName
562
+ * @param {...ArbitraryValue} args
563
+ * @returns {ArbitraryValue}
564
+ */
565
+ invoke(element: string | HTMLElement, methodName: string, ...args: ArbitraryValue[]): ArbitraryValue;
566
+ }
567
+ /**
568
+ * Element-aware wrapper for `Map`.
569
+ */
570
+ declare class JamilihMap extends Map<any, any> {
571
+ constructor();
572
+ constructor(entries?: readonly (readonly [any, any])[] | null | undefined);
573
+ constructor();
574
+ constructor(iterable?: Iterable<readonly [any, any]> | null | undefined);
575
+ /**
576
+ * @param {string|HTMLElement} element
577
+ * @param {ArbitraryValue} value
578
+ * @returns {ArbitraryValue}
579
+ */
580
+ set(element: string | HTMLElement, value: ArbitraryValue): ArbitraryValue;
581
+ /**
582
+ * @param {string|HTMLElement} element
583
+ * @param {string} methodName
584
+ * @param {...ArbitraryValue} args
585
+ * @returns {ArbitraryValue}
586
+ */
587
+ invoke(element: string | HTMLElement, methodName: string, ...args: ArbitraryValue[]): ArbitraryValue;
588
+ }
589
+ declare class PluginsForWork {
590
+ constructor(_ref2: any);
591
+ pluginsInWork: any;
592
+ pluginFieldMappings: any;
593
+ pluginObjects: any;
594
+ getPluginObject(pluginName: any): any;
595
+ iterateMappings(cb: any): void;
596
+ processTargetLanguages(applicableFields: any, cb: any): boolean;
597
+ isPluginField(_ref6: any): any;
598
+ getPluginFieldParts(_ref7: any): any[];
599
+ }
600
+ declare class Metadata {
601
+ constructor(_ref4: any);
602
+ metadataObj: any;
603
+ getFieldLang(field: any): any;
604
+ getFieldMatchesLocale(_ref5: any): (field: any) => any;
605
+ }
606
+ declare class IntlURLSearchParams {
607
+ constructor(...args: any[]);
608
+ l10n: any;
609
+ params: any;
610
+ get(param: any, skip: any): any;
611
+ getAll(param: any, skip: any): any;
612
+ has(param: any, skip: any): any;
613
+ delete(param: any, skip: any): any;
614
+ set(param: any, value: any, skip: any): any;
615
+ append(param: any, value: any, skip: any): any;
616
+ toString(): any;
617
+ }
618
+ declare function workDisplay(_ref: any): Promise<void>;
619
+ //# sourceMappingURL=index-es.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-es.d.ts","sourceRoot":"","sources":["../index-es.js"],"names":[],"mappings":";wCAIW,MAAM,GAAC,MAAM,EAAE,MACf,kBAAkB,WAClB,iBAAiB,KACf,OAAO,CAAC,IAAI,CAAC;kCAu7Cb,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,GAAC,GAAG;gDAy0BlC,MAAM,GAAC,MAAM,EAAE,gBAEf,OAAO,GAAC,aAAa,GAAC,MAAM,GACtC,YAAgB,GAChB,GAA+D;mBAykBnD,GAAyB;uBAGzB,GAA6B;mBAG7B,GAAyB;2BAIzB,GAAiC;sBAqCjC,MAAM;;;;8BAyaR,WAAW,GAAC,MAAM,GAAC,GAAG,OACtB,MAAM,SACN,MAAM,KACJ,WAAW,GAAC,MAAM,GAAC,GAAG;0BA4IvB,YAAY;mDAohBb,YAAY,GAAC,gBAAgB,GAAC,MAAM,KACpC,OAAO,KACL,IAAI;;;;8BAmBJ,UAAU,GAAC,cAAc,GAAC,eAAe,GAClD,oBAAoB,GAAC,cAAc,GAAC,WAAW,GAAC,WAAW,GAC3D,uBAAuB;yCAMjB,YAAY,GAAC,eAAe,GAAC,IAAI,GAAC,cAAc,KAC9C,IAAI;kCA0BN,YAAY,GAAC,eAAe,GAAC,IAAI,GAAC,cAAc,KAC9C,IAAI;4BAqCJ,WAAW,GAAC,gBAAgB,G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hE,cAAwB;IACxB,cAAwB;IAa5B;;;;;;;;;;;mBAWC;IAKD,4CAQC;IACD;;;;;;;;;MAKC;IACD,oCAKC;IACD,6BAyUC;IArUY,oCAEmB;IAyB9B,wBAAgB;IAuPd,UAAa;IAuDnB,gCAAiC;IACjC,mDAA0C;CAJzC;AA17ZD;;;GAGG;AACH;;;IAYE;;;;OAIG;IACH,aAJW,WAAW,SACX,cAAc,GACZ,cAAc,CAQ1B;IACD;;;;;OAKG;IACH,gBALW,MAAM,GAAC,WAAW,cAClB,MAAM,WACH,cAAc,EAAA,GACf,cAAc,CAQ1B;CACF;AA1ED;;GAEG;AACH;;;;;IASE;;;;OAIG;IACH,aAJW,MAAM,GAAC,WAAW,SAClB,cAAc,GACZ,cAAc,CAK1B;IACD;;;;;OAKG;IACH,gBALW,MAAM,GAAC,WAAW,cAClB,MAAM,WACH,cAAc,EAAA,GACf,cAAc,CAK1B;CACF;AA26QD;IACE,wBASC;IAHC,mBAAkC;IAClC,yBAA8C;IAC9C,mBAAkC;IAEpC,sCAOC;IACD,+BA4BC;IACD,gEA6BC;IACD,+BAMC;IACD,uCAaC;CACF;AAlLD;IACE,wBAKC;IADC,iBAA8B;IAEhC,8BAMC;IACD,uDAyCC;CACF;AAitED;IACE,4BAaC;IARC,UAAgB;IAOhB,YAAoB;IAEtB,gCAEC;IACD,mCAEC;IACD,gCAEC;IACD,mCAEC;IACD,4CAEC;IACD,+CAEC;IACD,gBAEC;CACF;AAgND,uDA6MC"}
@@ -0,0 +1,3 @@
1
+ export default swHelper;
2
+ declare function swHelper(self: any): void;
3
+ //# sourceMappingURL=sw-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sw-helper.d.ts","sourceRoot":"","sources":["../sw-helper.js"],"names":[],"mappings":";AAiBA,2CAuSC"}