clientnode 4.0.1393 → 4.0.1395

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/dist/domNode.d.ts CHANGED
@@ -14,9 +14,9 @@ export declare const getText: (root: Node, recursive?: boolean) => Array<string>
14
14
  /**
15
15
  * Checks whether given html or text strings are equal.
16
16
  * @param first - First html, selector to dom node or text to compare.
17
- * @param second - Second html, selector to dom node or text to compare.
17
+ * @param second - Second html, selector to dom node or text to compare.
18
18
  * @param forceHTMLString - Indicates whether given contents are
19
- * interpreted as html string (otherwise an automatic detection will be
19
+ * interpreted as html string (otherwise automatic detection will be
20
20
  * triggered).
21
21
  * @returns Returns true if both dom representations are equivalent.
22
22
  */
@@ -34,7 +34,7 @@ export declare const isEquivalent: (first: Node | string, second: Node | string,
34
34
  export declare const isHidden: (domNode: HTMLElement) => boolean;
35
35
  export declare const onDocumentReady: (callback?: () => void) => Promise<void>;
36
36
  /**
37
- * Replaces given dom node with given nodes.
37
+ * Replaces a given dom node with given nodes.
38
38
  * @param domNodeToReplace - Node to replace its children.
39
39
  * @param replacementDomNodes - Node or array of nodes to use as replacement.
40
40
  * @param skipEmptyTextNodes - Configures whether to trim text.
@@ -42,7 +42,8 @@ export declare const onDocumentReady: (callback?: () => void) => Promise<void>;
42
42
  export declare const replace: (domNodeToReplace: HTMLElement, replacementDomNodes: Array<Node> | Node, skipEmptyTextNodes?: boolean) => void;
43
43
  export declare const wrap: (domNodes: Node | NodeListOf<Node>, wrapper: HTMLElement) => void;
44
44
  /**
45
- * Moves content of given dom node one level up and removes given node.
45
+ * Moves the content of a given dom node one level up and removes the given
46
+ * node.
46
47
  * @param domNode - Node to unwrap.
47
48
  * @returns List of unwrapped nodes.
48
49
  */
package/dist/string.d.ts CHANGED
@@ -6,7 +6,7 @@ export declare const ALLOWED_VARIABLE_SYMBOLS = "0-9a-zA-Z_$";
6
6
  export declare const ALLOWED_STARTING_VARIABLE_SYMBOLS = "a-zA-Z_$";
7
7
  export declare const FIX_ENCODING_ERROR_MAPPING: readonly [readonly ["Ã\\x84", "Ä"], readonly ["Ã\\x96", "Ö"], readonly ["Ã\\x9c", "Ü"], readonly ["ä", "ä"], readonly ["ö", "ö"], readonly ["ü", "ü"], readonly ["\\x96", "-"], readonly ["é", "é"], readonly ["è", "e"], readonly ["ô", "o"], readonly ["à ", "á"], readonly ["ø", "ø"], readonly ["Ã\\x9f", "ß"], readonly ["Ã", "ß"]];
8
8
  /**
9
- * Translates given string into the regular expression validated
9
+ * Translates a given string into the regular expression validated
10
10
  * representation.
11
11
  * @param value - String to convert.
12
12
  * @param excludeSymbols - Symbols not to escape.
@@ -14,13 +14,13 @@ export declare const FIX_ENCODING_ERROR_MAPPING: readonly [readonly ["Ã\\x84",
14
14
  */
15
15
  export declare const escapeRegularExpressions: (value: string, excludeSymbols?: Array<string>) => string;
16
16
  /**
17
- * Translates given name into a valid javaScript one.
17
+ * Translates a given name into a valid JavaScript one.
18
18
  * @param name - Name to convert.
19
19
  * @returns Converted name is returned.
20
20
  */
21
21
  export declare const convertToValidVariableName: (name: string) => string;
22
22
  /**
23
- * This method is intended for encoding *key* or *value* parts of query
23
+ * This method is intended for encoding *key* or *value* parts of a query
24
24
  * component. We need a custom method because "encodeURIComponent()" is too
25
25
  * aggressive and encodes stuff that doesn't have to be encoded per
26
26
  * "http://tools.ietf.org/html/rfc3986:".
@@ -33,22 +33,22 @@ export declare const encodeURIComponentExtended: (url: string, encodeSpaces?: bo
33
33
  /**
34
34
  * Appends a path selector to the given path if there isn't one yet.
35
35
  * @param path - The path for appending a selector.
36
- * @param pathSeparator - The selector for appending to path.
36
+ * @param pathSeparator - The selector for appending to a path.
37
37
  * @returns The appended path.
38
38
  */
39
39
  export declare const addSeparatorToPath: (path: string, pathSeparator?: string) => string;
40
40
  /**
41
- * Checks if given path has given path prefix.
41
+ * Checks if a given path has given path prefix.
42
42
  * @param prefix - Path prefix to search for.
43
43
  * @param path - Path to search in.
44
- * @param separator - Delimiter to use in path (default is the posix
44
+ * @param separator - Delimiter to use in a path (default is the posix
45
45
  * conform slash).
46
- * @returns Value "true" if given prefix occur and "false" otherwise.
46
+ * @returns Value "true" if given prefix occurs and "false" otherwise.
47
47
  */
48
48
  export declare const hasPathPrefix: (prefix?: unknown, path?: string, separator?: string) => boolean;
49
49
  /**
50
50
  * Extracts domain name from given url. If no explicit domain name given
51
- * current domain name will be assumed. If no parameter given current
51
+ * current domain name will be assumed. If no parameter is given, the current
52
52
  * domain name will be determined.
53
53
  * @param url - The url to extract domain from.
54
54
  * @param fallback - The fallback host name if no one exits in given url
@@ -57,20 +57,20 @@ export declare const hasPathPrefix: (prefix?: unknown, path?: string, separator?
57
57
  */
58
58
  export declare const getDomainName: (url?: string, fallback?: string) => string;
59
59
  /**
60
- * Extracts port number from given url. If no explicit port number given
61
- * and no fallback is defined current port number will be assumed for local
60
+ * Extracts port number from given url. If no explicit port number is given
61
+ * and no fallback is defined, the current port number will be assumed for local
62
62
  * links. For external links 80 will be assumed for http protocols and 443
63
63
  * for https protocols.
64
64
  * @param url - The url to extract port from.
65
65
  * @param fallback - Fallback port number if no explicit one was found.
66
- * Default is derived from current protocol name.
66
+ * Default is derived from the current protocol name.
67
67
  * @returns Extracted port number.
68
68
  */
69
69
  export declare const getPortNumber: (url?: string, fallback?: null | number) => null | number;
70
70
  /**
71
71
  * Extracts protocol name from given url. If no explicit url is given,
72
- * current protocol will be assumed. If no parameter given current protocol
73
- * number will be determined.
72
+ * the current protocol will be assumed. If no parameter is given, the current
73
+ * protocol number will be determined.
74
74
  * @param url - The url to extract protocol from.
75
75
  * @param fallback - Fallback port to use if no protocol exists in given
76
76
  * url (default is current protocol).
@@ -80,33 +80,33 @@ export declare const getProtocolName: (url?: string, fallback?: string) => strin
80
80
  /**
81
81
  * Read a page's GET URL variables and return them as an associative array
82
82
  * and preserves ordering.
83
- * @param keyToGet - If provided the corresponding value for given key is
83
+ * @param keyToGet - If provided the corresponding value for a given key is
84
84
  * returned or full object otherwise.
85
85
  * @param allowDuplicates - Indicates whether to return arrays of values or
86
86
  * single values. If set to "false" (default) last values will overwrite
87
87
  * preceding values.
88
88
  * @param givenInput - An alternative input to the url search parameter. If
89
- * "#" is given the complete current hashtag will be interpreted as url and
90
- * search parameter will be extracted from there. If "&" is given classical
91
- * search parameter and hash parameter will be taken in account. If a search
92
- * string is given this will be analyzed. The default is to take given search
93
- * part into account.
89
+ * "#" is given, the complete current hashtag will be interpreted as url and
90
+ * search parameter will be extracted from there. If "&" is given a classical
91
+ * search parameter, and hash parameter will be taken in an account. If a
92
+ * search string is given, this will be analyzed. The default is to take a
93
+ * given search part into account.
94
94
  * @param subDelimiter - Defines which sequence indicates the start of
95
95
  * parameter in a hash part of the url.
96
96
  * @param hashedPathIndicator - If defined and given hash starts with this
97
- * indicator given hash will be interpreted as path containing search and
97
+ * indicator, given hash will be interpreted as a path containing search and
98
98
  * hash parts.
99
99
  * @param givenSearch - Search part to take into account defaults to
100
100
  * current url search part.
101
101
  * @param givenHash - Hash part to take into account defaults to current
102
102
  * url hash part.
103
- * @returns Returns the current get array or requested value. If requested
104
- * key doesn't exist "undefined" is returned.
103
+ * @returns Returns the current get array or requested value. If the requested
104
+ * key doesn't exist, "undefined" is returned.
105
105
  */
106
106
  export declare const getURLParameter: (keyToGet?: null | string, allowDuplicates?: boolean, givenInput?: null | string, subDelimiter?: string, hashedPathIndicator?: string, givenSearch?: null | string, givenHash?: null | string) => Array<string> | null | QueryParameters | string;
107
107
  /**
108
- * Checks if given url points to another "service" than second given url.
109
- * If no second given url provided current url will be assumed.
108
+ * Checks if given url points to another "service" than the second given url.
109
+ * If no second given url is provided, the current url will be assumed.
110
110
  * @param url - URL to check against second url.
111
111
  * @param referenceURL - URL to check against first url.
112
112
  * @returns Returns "true" if given first url has same domain as given
@@ -126,7 +126,7 @@ export declare const normalizeURL: (givenURL: unknown) => string;
126
126
  */
127
127
  export declare const representURL: (url: unknown) => string;
128
128
  /**
129
- * Converts a camel cased string to its delimited string version.
129
+ * Converts a camel-cased string to its delimited string version.
130
130
  * @param value - The string to format.
131
131
  * @param delimiter - Defines delimiter string.
132
132
  * @param abbreviations - Collection of shortcut words to represent uppercased.
@@ -134,7 +134,7 @@ export declare const representURL: (url: unknown) => string;
134
134
  */
135
135
  export declare const camelCaseToDelimited: (value: string, delimiter?: string, abbreviations?: Array<string> | null) => string;
136
136
  /**
137
- * Converts a string to its capitalize representation.
137
+ * Converts a string to its capitalized representation.
138
138
  * @param string - The string to format.
139
139
  * @returns The formatted string.
140
140
  */
@@ -146,7 +146,7 @@ export declare const capitalize: (string: string) => string;
146
146
  */
147
147
  export declare const compressStyleValue: (styleValue: string) => string;
148
148
  /**
149
- * Decodes all html symbols in text nodes in given html string.
149
+ * Decodes all html symbols in text nodes in a given html string.
150
150
  * @param htmlString - HTML string to decode.
151
151
  * @returns Decoded html string.
152
152
  */
@@ -164,7 +164,7 @@ export declare const decodeHTMLEntities: (htmlString: string) => null | string;
164
164
  */
165
165
  export declare const delimitedToCamelCase: (value: string, delimiter?: string, abbreviations?: Array<string> | null, preserveWrongFormattedAbbreviations?: boolean, removeMultipleDelimiter?: boolean) => string;
166
166
  /**
167
- * Compiles a given string as expression with given scope names.
167
+ * Compiles a given string as an expression with given scope names.
168
168
  * @param expression - The string to interpret.
169
169
  * @param scope - Scope to extract names from.
170
170
  * @param execute - Indicates whether to execute or evaluate.
@@ -176,25 +176,25 @@ export declare const delimitedToCamelCase: (value: string, delimiter?: string, a
176
176
  */
177
177
  export declare const compile: <T = string, N extends Array<string> = Array<string>>(expression: string, scope?: Mapping<unknown> | N | N[number] | string, execute?: boolean, removeGlobalScope?: boolean, binding?: unknown) => CompilationResult<T, N>;
178
178
  /**
179
- * Evaluates a given string as expression against given scope.
179
+ * Evaluates a given string as an expression against a given scope.
180
180
  * @param expression - The string to interpret.
181
181
  * @param scope - Scope to render against.
182
182
  * @param execute - Indicates whether to execute or evaluate.
183
183
  * @param removeGlobalScope - Indicates whether to shadow global variables via
184
184
  * "undefined".
185
185
  * @param binding - Object to apply as "this" in evaluation scope.
186
- * @returns Object with error message during parsing / running or result.
186
+ * @returns Object with an error message during parsing / running or result.
187
187
  */
188
188
  export declare const evaluate: <T = string, S extends object = object>(expression: string, scope?: S, execute?: boolean, removeGlobalScope?: boolean, binding?: unknown) => EvaluationResult<T>;
189
189
  /**
190
- * Finds the string match of given query in given target text by applying given
191
- * normalisation function to target and query.
190
+ * Finds the string match of a given query in a given target text by applying a
191
+ * given normalization function to target and query.
192
192
  * @param target - Target to search in.
193
193
  * @param query - Search string to search for.
194
- * @param normalizer - Function to use as normalisation for queries and search
194
+ * @param normalizer - Function to use as normalization for queries and search
195
195
  * targets.
196
- * @param skipTagDelimitedParts - Indicates whether to for example ignore html
197
- * tags via "['<', '>']" (the default).
196
+ * @param skipTagDelimitedParts - Indicates whether to, for example, ignore
197
+ * html tags via "['<', '>']" (the default).
198
198
  * @returns Start and end index of matching range.
199
199
  */
200
200
  export declare const findNormalizedMatchRange: (target: unknown, query: unknown, normalizer?: (value: unknown) => string, skipTagDelimitedParts?: null | [string, string]) => Array<number> | null;
@@ -234,20 +234,20 @@ export declare const maskForRegularExpression: (value: string) => string;
234
234
  */
235
235
  export declare const lowerCase: (string: string) => string;
236
236
  /**
237
- * Wraps given mark strings in given target with given marker.
237
+ * Wraps given mark strings in a given target with a given marker.
238
238
  * @param target - String to search for marker.
239
239
  * @param givenWords - String or array of strings to search in target for.
240
240
  * @param givenOptions - Defines highlighting behavior.
241
241
  * @param givenOptions.marker - HTML template string to mark.
242
- * @param givenOptions.normalizer - Pure normalisation function to use before
242
+ * @param givenOptions.normalizer - Pure normalization function to use before
243
243
  * searching for matches.
244
- * @param givenOptions.skipTagDelimitedParts - Indicates whether to for example
245
- * ignore html tags via "['<', '>']" (the default).
244
+ * @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
245
+ * example, ignore html tags via "['<', '>']" (the default).
246
246
  * @returns Processed result.
247
247
  */
248
248
  export declare const mark: (target: unknown, givenWords?: Array<string> | string, givenOptions?: Partial<StringMarkOptions>) => unknown;
249
249
  /**
250
- * Normalizes given phone number for automatic dialing or comparison.
250
+ * Normalizes a given phone number for automatic dialing or comparison.
251
251
  * @param value - Number to normalize.
252
252
  * @param dialable - Indicates whether the result should be dialed or
253
253
  * represented as lossless data.
@@ -255,14 +255,14 @@ export declare const mark: (target: unknown, givenWords?: Array<string> | string
255
255
  */
256
256
  export declare const normalizePhoneNumber: (value: unknown, dialable?: boolean) => string;
257
257
  /**
258
- * Normalizes given zip code for automatic address processing.
258
+ * Normalizes a given zip code for automatic address processing.
259
259
  * @param value - Number to normalize.
260
260
  * @returns Normalized number.
261
261
  */
262
262
  export declare const normalizeZipCode: (value: unknown) => string;
263
263
  /**
264
- * Converts given serialized, base64 encoded or file path given object into a
265
- * native javaScript one if possible.
264
+ * Converts a given serialized, base64 encoded or file path given object into a
265
+ * native JavaScript one if possible.
266
266
  * @param serializedObject - Object as string.
267
267
  * @param scope - An optional scope which will be used to evaluate given object
268
268
  * in.
@@ -271,7 +271,7 @@ export declare const normalizeZipCode: (value: unknown) => string;
271
271
  */
272
272
  export declare const parseEncodedObject: <T = PlainObject>(serializedObject: string, scope?: Mapping<unknown>, name?: string) => null | T;
273
273
  /**
274
- * Represents given phone number. NOTE: Currently only support german phone
274
+ * Represents a given phone number. NOTE: Currently only support German phone
275
275
  * numbers.
276
276
  * @param value - Number to format.
277
277
  * @returns Formatted number.
@@ -291,7 +291,7 @@ export declare const sliceAllExceptNumberAndLastSeparator: (value: string) => st
291
291
  */
292
292
  export declare const normalizeDomNodeSelector: (selector: string, selectorPrefix?: string) => string;
293
293
  /**
294
- * Abbreviates given string if it excesses a given limit.
294
+ * Abbreviates a given string if it excesses a given limit.
295
295
  * @param value - String to abbreviate.
296
296
  * @param limit - Maximum length of processed string.
297
297
  * @returns Abbreviated given string.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clientnode",
3
- "version": "4.0.1393",
3
+ "version": "4.0.1395",
4
4
  "description": "upgrade to object orientated rock solid plugins",
5
5
  "keywords": [
6
6
  "client",
@@ -96,7 +96,7 @@
96
96
  "prop-types": "^15.8.1",
97
97
  "rimraf": "^6.1.3",
98
98
  "typescript-eslint": "^8.59.2",
99
- "web-documentation": "^1.0.6",
99
+ "web-documentation": "^1.0.8",
100
100
  "weboptimizer": "^3.0.22",
101
101
  "webpack-dev-server": "^5.2.3"
102
102
  },