clientnode 4.0.1441 → 4.0.1443

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 (142) hide show
  1. package/dist/Lock.d.ts +39 -0
  2. package/dist/Lock.js +69 -83
  3. package/dist/Logger.d.ts +102 -0
  4. package/dist/Logger.js +756 -163
  5. package/dist/Semaphore.d.ts +29 -0
  6. package/dist/Semaphore.js +56 -46
  7. package/dist/array.d.ts +150 -0
  8. package/dist/array.js +661 -337
  9. package/dist/bundle/Lock.js +86 -0
  10. package/dist/bundle/Logger.js +778 -0
  11. package/dist/bundle/Semaphore.js +75 -0
  12. package/dist/bundle/array.js +776 -0
  13. package/dist/bundle/cli.js +59 -0
  14. package/dist/bundle/constants.js +214 -0
  15. package/dist/bundle/context.js +280 -0
  16. package/dist/bundle/cookie.js +301 -0
  17. package/dist/bundle/data-transfer.js +825 -0
  18. package/dist/bundle/datetime.js +1148 -0
  19. package/dist/bundle/domNode.js +549 -0
  20. package/dist/bundle/expression/evaluators.js +1228 -0
  21. package/dist/bundle/expression/helper.js +117 -0
  22. package/dist/bundle/expression/index.js +1357 -0
  23. package/dist/bundle/expression/indicator-functions.js +332 -0
  24. package/dist/bundle/expression/type.js +16 -0
  25. package/dist/bundle/filesystem.js +436 -0
  26. package/dist/bundle/function.js +117 -0
  27. package/dist/bundle/index.js +3249 -0
  28. package/dist/bundle/indicators.js +565 -0
  29. package/dist/bundle/module.js +213 -0
  30. package/dist/bundle/number.js +527 -0
  31. package/dist/bundle/object.js +1104 -0
  32. package/dist/bundle/process.js +291 -0
  33. package/dist/bundle/property-types.js +36 -0
  34. package/dist/bundle/scope.js +2121 -0
  35. package/dist/bundle/string.js +1213 -0
  36. package/dist/bundle/test-helper.js +802 -0
  37. package/dist/bundle/type.js +16 -0
  38. package/dist/bundle/utility.js +420 -0
  39. package/dist/cli.d.ts +31 -0
  40. package/dist/cli.js +45 -37
  41. package/dist/compatible/Lock.js +86 -0
  42. package/dist/compatible/Logger.js +778 -0
  43. package/dist/compatible/Semaphore.js +75 -0
  44. package/dist/compatible/array.js +776 -0
  45. package/dist/compatible/cli.js +59 -0
  46. package/dist/compatible/constants.js +214 -0
  47. package/dist/compatible/context.js +280 -0
  48. package/dist/compatible/cookie.js +301 -0
  49. package/dist/compatible/data-transfer.js +825 -0
  50. package/dist/compatible/datetime.js +1148 -0
  51. package/dist/compatible/domNode.js +549 -0
  52. package/dist/compatible/expression/evaluators.js +1228 -0
  53. package/dist/compatible/expression/helper.js +117 -0
  54. package/dist/compatible/expression/index.js +1357 -0
  55. package/dist/compatible/expression/indicator-functions.js +332 -0
  56. package/dist/compatible/expression/type.js +16 -0
  57. package/dist/compatible/filesystem.js +436 -0
  58. package/dist/compatible/function.js +117 -0
  59. package/dist/compatible/index.js +3249 -0
  60. package/dist/compatible/indicators.js +565 -0
  61. package/dist/compatible/module.js +213 -0
  62. package/dist/compatible/number.js +527 -0
  63. package/dist/compatible/object.js +1104 -0
  64. package/dist/compatible/process.js +291 -0
  65. package/dist/compatible/property-types.js +36 -0
  66. package/dist/compatible/scope.js +2121 -0
  67. package/dist/compatible/string.js +1213 -0
  68. package/dist/compatible/test-helper.js +802 -0
  69. package/dist/compatible/type.js +16 -0
  70. package/dist/compatible/utility.js +420 -0
  71. package/dist/constants.d.ts +99 -0
  72. package/dist/constants.js +198 -110
  73. package/dist/context.d.ts +8 -0
  74. package/dist/context.js +265 -25
  75. package/dist/cookie.d.ts +31 -0
  76. package/dist/cookie.js +265 -48
  77. package/dist/data-transfer.d.ts +45 -0
  78. package/dist/data-transfer.js +775 -166
  79. package/dist/datetime.d.ts +37 -0
  80. package/dist/datetime.js +1107 -241
  81. package/dist/domNode.d.ts +82 -0
  82. package/dist/domNode.js +495 -277
  83. package/dist/expression/evaluators.d.ts +55 -0
  84. package/dist/expression/evaluators.js +1189 -234
  85. package/dist/expression/helper.d.ts +4 -0
  86. package/dist/expression/helper.js +102 -82
  87. package/dist/expression/index.d.ts +7 -0
  88. package/dist/expression/index.js +1341 -10
  89. package/dist/expression/indicator-functions.d.ts +14 -0
  90. package/dist/expression/indicator-functions.js +316 -21
  91. package/dist/expression/type.d.ts +70 -0
  92. package/dist/expression/type.js +1 -5
  93. package/dist/filesystem.d.ts +143 -0
  94. package/dist/filesystem.js +349 -323
  95. package/dist/function.d.ts +20 -0
  96. package/dist/function.js +93 -51
  97. package/dist/index.d.ts +23 -0
  98. package/dist/index.js +3232 -26
  99. package/dist/indicators.d.ts +68 -0
  100. package/dist/indicators.js +512 -68
  101. package/dist/module.d.ts +8 -0
  102. package/dist/module.js +197 -99
  103. package/dist/number.d.ts +35 -0
  104. package/dist/number.js +491 -25
  105. package/dist/object.d.ts +231 -0
  106. package/dist/object.js +917 -775
  107. package/dist/process.d.ts +22 -0
  108. package/dist/process.js +261 -38
  109. package/dist/property-types.d.ts +460 -0
  110. package/dist/property-types.js +17 -96
  111. package/dist/scope.d.ts +44 -0
  112. package/dist/scope.js +2092 -56
  113. package/dist/string.d.ts +312 -0
  114. package/dist/string.js +991 -603
  115. package/dist/test/Lock.d.ts +1 -0
  116. package/dist/test/Logger.d.ts +1 -0
  117. package/dist/test/Semaphore.d.ts +1 -0
  118. package/dist/test/array.d.ts +1 -0
  119. package/dist/test/cookie.d.ts +1 -0
  120. package/dist/test/data-transfer.d.ts +1 -0
  121. package/dist/test/datetime.d.ts +1 -0
  122. package/dist/test/domNode.d.ts +1 -0
  123. package/dist/test/expression/evaluators.d.ts +1 -0
  124. package/dist/test/expression/helper.d.ts +1 -0
  125. package/dist/test/expression/indicator-functions.d.ts +1 -0
  126. package/dist/test/filesystem.d.ts +1 -0
  127. package/dist/test/function.d.ts +1 -0
  128. package/dist/test/indicators.d.ts +1 -0
  129. package/dist/test/number.d.ts +1 -0
  130. package/dist/test/object.d.ts +1 -0
  131. package/dist/test/process.d.ts +1 -0
  132. package/dist/test/property-types.d.ts +1 -0
  133. package/dist/test/scope.d.ts +1 -0
  134. package/dist/test/string.d.ts +1 -0
  135. package/dist/test/utility.d.ts +1 -0
  136. package/dist/test-helper.d.ts +143 -0
  137. package/dist/test-helper.js +633 -171
  138. package/dist/type.d.ts +230 -0
  139. package/dist/type.js +4 -9
  140. package/dist/utility.d.ts +44 -0
  141. package/dist/utility.js +372 -91
  142. package/package.json +3 -3
@@ -0,0 +1,82 @@
1
+ import type { GivenInterruptableScrollToOptions, KnownEventName } from './type';
2
+ export declare const createDomNodes: <Type extends Node = Node>(html: string) => Type;
3
+ export declare const fade: (domNode: HTMLElement, intervalInMilliseconds?: number, out?: boolean) => Promise<void> & {
4
+ clear: () => void;
5
+ resetStyles: () => void;
6
+ };
7
+ export declare const fadeIn: (domNode: HTMLElement, intervalInMilliseconds?: number) => Promise<void> & {
8
+ clear: () => void;
9
+ resetStyles: () => void;
10
+ };
11
+ export declare const fadeOut: (domNode: HTMLElement, intervalInMilliseconds?: number) => Promise<void> & {
12
+ clear: () => void;
13
+ resetStyles: () => void;
14
+ };
15
+ export declare const STOP_AUTO_SCROLLING: {
16
+ value: import("./type").AnyFunction;
17
+ };
18
+ export declare const MANUAL_SCROLL_EVENT_NAMES: Array<KnownEventName>;
19
+ export declare const SCROLL_EVENT_NAMES: Array<KnownEventName>;
20
+ /**
21
+ * Smoothly scrolls both horizontally and vertically to a target DOM node.
22
+ * Cancels instantly if the user interacts with the mouse, touch, or keys.
23
+ * @param givenOptions - Configuration options.
24
+ * @param givenOptions.targetDomNode - The DOM node you want to scroll to.
25
+ * @param givenOptions.containerDomNode - The scrollable parent.
26
+ * @param givenOptions.durationInMilliseconds - Animation duration in
27
+ * milliseconds.
28
+ * @param givenOptions.interruptOnManualScroll - Whether to stop the animation
29
+ * if the user starts to scroll manually.
30
+ * @param givenOptions.offset - Pixel offsets.
31
+ * @param givenOptions.offset.top - Vertical offset in pixels.
32
+ * @param givenOptions.offset.left - Horizontal offset in pixels.
33
+ */
34
+ export declare const interruptableScrollTo: (givenOptions?: GivenInterruptableScrollToOptions) => void;
35
+ /**
36
+ * Scrolls to the given DomNode's location or tio of the page.
37
+ * @param targetDomNode - DomNode to scroll to. If not given, scrolls to the
38
+ * top of the page.
39
+ * @param behavior - Scroll behavior to use.
40
+ */
41
+ export declare const scrollTo: (targetDomNode?: Node | null, behavior?: ScrollToOptions["behavior"]) => void;
42
+ export declare const getAll: (root: Node) => Node[];
43
+ export declare const closest: (node: Node, selector: string, startWithParent?: boolean) => Element | null;
44
+ export declare const getParents: (node: Node) => Array<Node>;
45
+ export declare const getText: (root: Node, recursive?: boolean) => Array<string>;
46
+ /**
47
+ * Checks whether given html or text strings are equal.
48
+ * @param first - First html, selector to dom node or text to compare.
49
+ * @param second - Second html, selector to dom node or text to compare.
50
+ * @param forceHTMLString - Indicates whether given contents are
51
+ * interpreted as html string (otherwise automatic detection will be
52
+ * triggered).
53
+ * @returns Returns true if both dom representations are equivalent.
54
+ */
55
+ export declare const isEquivalent: (first: Node | string, second: Node | string, forceHTMLString?: boolean) => boolean;
56
+ /**
57
+ * Checks whether the given dom node is visible or takes space in the document
58
+ * flow.
59
+ * Elements with visibility: hidden or opacity: 0 are considered to be visible,
60
+ * since they still consume space in the layout. During animations that hide an
61
+ * element, the element is considered to be visible until the end of the
62
+ * animation.
63
+ * @param domNode - To inspect.
64
+ * @returns A boolean indicating the visibility.
65
+ */
66
+ export declare const isHidden: (domNode: HTMLElement) => boolean;
67
+ export declare const onDocumentReady: (callback?: () => void) => Promise<void>;
68
+ /**
69
+ * Replaces a given dom node with given nodes.
70
+ * @param domNodeToReplace - Node to replace its children.
71
+ * @param replacementDomNodes - Node or array of nodes to use as replacement.
72
+ * @param skipEmptyTextNodes - Configures whether to trim text.
73
+ */
74
+ export declare const replace: (domNodeToReplace: HTMLElement, replacementDomNodes: Array<Node> | Node, skipEmptyTextNodes?: boolean) => void;
75
+ export declare const wrap: (domNodes: Node | NodeListOf<Node>, wrapper: HTMLElement) => void;
76
+ /**
77
+ * Moves the content of a given dom node one level up and removes the given
78
+ * node.
79
+ * @param domNode - Node to unwrap.
80
+ * @returns List of unwrapped nodes.
81
+ */
82
+ export declare const unwrap: (domNode: HTMLElement) => Array<ChildNode>;