@enact/core 3.2.6 → 3.2.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  The following is a curated list of changes in the Enact core module, newest changes on the top.
4
4
 
5
+ ## [3.2.7] - 2022-01-17
6
+
7
+ No significant changes.
8
+
5
9
  ## [3.2.6] - 2020-03-26
6
10
 
7
11
  No significant changes.
@@ -3,6 +3,12 @@
3
3
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
4
4
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
5
5
 
6
+ /**
7
+ * The signature for event handlers
8
+ */
9
+ export interface EventHandler {
10
+ (event: any): void;
11
+ }
6
12
  /**
7
13
  * The signature for event handling functions supported by `handle` and related functions
8
14
  */
@@ -23,12 +29,6 @@ export interface EventAdapter {
23
29
  context: { [key: string]: any }
24
30
  ): any;
25
31
  }
26
- /**
27
- * The signature for event handlers
28
- */
29
- export interface EventHandler {
30
- (event: any): void;
31
- }
32
32
  /**
33
33
  * Allows generating event handlers by chaining input functions to filter or short-circuit the
34
34
  handling flow. Any input function that returns a falsy value will stop the chain.
package/hoc/hoc.d.ts CHANGED
@@ -9,7 +9,8 @@ a factory method that accepts instance configuration parameters and a component
9
9
  returned function can accept:
10
10
  * * an instance config and a component constructor to wrap and return a renderable component, or
11
11
  * * an instance config only and return a decorator function expecting a component constructor
12
- (like the next bullet), or
12
+ *
13
+ * (like the next bullet), or
13
14
  * * a component constructor and return a renderable component
14
15
  *
15
16
  * Example:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/core",
3
- "version": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "description": "Enact is an open source JavaScript framework containing everything you need to create a fast, scalable mobile or web application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,9 +16,11 @@ and is executed in order once the window is available.
16
16
  *
17
17
  * _Important Notes_
18
18
  * * The callback should not alter the initial HTML state. If it does, it will invalidate the
19
- pre-render state and interfere with React rehydration.
19
+ *
20
+ * pre-render state and interfere with React rehydration.
20
21
  * * The callback should be limited to module-scoped actions and not component instance actions. If
21
- the action is tied to a component, it should be invoked from within the component's lifecycle
22
+ *
23
+ * the action is tied to a component, it should be invoked from within the component's lifecycle
22
24
  methods.
23
25
  */
24
26
  export function onWindowReady(callback: Function): void;
package/util/util.d.ts CHANGED
@@ -8,10 +8,10 @@ type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
8
8
  */
9
9
 
10
10
  export declare class Job {
11
- constructor(
12
- /**
13
- * Function to execute as the requested job.
14
- */
11
+ constructor
12
+ /**
13
+ * Function to execute as the requested job.
14
+ */(
15
15
  fn: Function
16
16
  /**
17
17
  * The number of milliseconds to wait before starting the job.