@enact/core 4.7.6 → 4.7.8

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,14 @@
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
+ ## [4.7.8] - 2023-11-17
6
+
7
+ No significant changes.
8
+
9
+ ## [4.7.7] - 2023-11-09
10
+
11
+ No significant changes.
12
+
5
13
  ## [4.7.6] - 2023-09-20
6
14
 
7
15
  No significant changes.
@@ -17,5 +17,5 @@ export function off(name: string, fn: Function, target: React.ReactNode): void;
17
17
  export function once(
18
18
  name: string,
19
19
  fn: Function,
20
- target?: React.ReactNode
20
+ target?: React.ReactNode,
21
21
  ): Function;
@@ -16,7 +16,7 @@ export interface HandlerFunction {
16
16
  (
17
17
  event: any,
18
18
  props: { [key: string]: any },
19
- context: { [key: string]: any }
19
+ context: { [key: string]: any },
20
20
  ): void;
21
21
  }
22
22
  /**
@@ -26,7 +26,7 @@ export interface EventAdapter {
26
26
  (
27
27
  event: any,
28
28
  props: { [key: string]: any },
29
- context: { [key: string]: any }
29
+ context: { [key: string]: any },
30
30
  ): any;
31
31
  }
32
32
  /**
@@ -118,7 +118,7 @@ const logWhenXEqualsZero = handle(
118
118
  ```
119
119
  */
120
120
  export function forEventProp(
121
- prop: string
121
+ prop: string,
122
122
  ): (value: any) => (ev: object) => boolean;
123
123
  /**
124
124
  * Allows handling to continue if the value of `prop` on the event strictly equals `value`
@@ -315,7 +315,7 @@ export function forProp(
315
315
  prop: string,
316
316
  value: any,
317
317
  ev: object,
318
- props: object
318
+ props: object,
319
319
  ): boolean;
320
320
  /**
321
321
  * Allows handling to continue if the value of `prop` on the props strictly equals `value` .
@@ -331,7 +331,7 @@ const logWhenChecked = handle(
331
331
  ```
332
332
  */
333
333
  export function forProp(
334
- prop: string
334
+ prop: string,
335
335
  ): (value: any, ev: object, props: object) => boolean;
336
336
  /**
337
337
  * Allows handling to continue if the value of `prop` on the props strictly equals `value` .
@@ -347,7 +347,7 @@ const logWhenChecked = handle(
347
347
  ```
348
348
  */
349
349
  export function forProp(
350
- prop: string
350
+ prop: string,
351
351
  ): (value: any) => (ev: object, props: object) => boolean;
352
352
  /**
353
353
  * Allows handling to continue if the value of `prop` on the props strictly equals `value` .
@@ -363,7 +363,7 @@ const logWhenChecked = handle(
363
363
  ```
364
364
  */
365
365
  export function forProp(
366
- prop: string
366
+ prop: string,
367
367
  ): (value: any) => (ev: object) => (props: object) => boolean;
368
368
  /**
369
369
  * Allows handling to continue if the value of `prop` on the props strictly equals `value` .
@@ -379,7 +379,7 @@ const logWhenChecked = handle(
379
379
  ```
380
380
  */
381
381
  export function forProp(
382
- prop: string
382
+ prop: string,
383
383
  ): (value: any, ev: object) => (props: object) => boolean;
384
384
  /**
385
385
  * Allows handling to continue if the value of `prop` on the props strictly equals `value` .
@@ -396,7 +396,7 @@ const logWhenChecked = handle(
396
396
  */
397
397
  export function forProp(
398
398
  prop: string,
399
- value: any
399
+ value: any,
400
400
  ): (ev: object, props: object) => boolean;
401
401
  /**
402
402
  * Allows handling to continue if the value of `prop` on the props strictly equals `value` .
@@ -413,7 +413,7 @@ const logWhenChecked = handle(
413
413
  */
414
414
  export function forProp(
415
415
  prop: string,
416
- value: any
416
+ value: any,
417
417
  ): (ev: object) => (props: object) => boolean;
418
418
  /**
419
419
  * Allows handling to continue if the value of `prop` on the props strictly equals `value` .
@@ -431,7 +431,7 @@ const logWhenChecked = handle(
431
431
  export function forProp(
432
432
  prop: string,
433
433
  value: any,
434
- ev: object
434
+ ev: object,
435
435
  ): (props: object) => boolean;
436
436
  /**
437
437
  * Logs the event, props, and context optionally preceded by a custom message. Will only log in
@@ -547,7 +547,7 @@ const incrementAndChange = adaptEvent(
547
547
  */
548
548
  export function adaptEvent(
549
549
  adapter: EventAdapter,
550
- handler: HandlerFunction
550
+ handler: HandlerFunction,
551
551
  ): HandlerFunction;
552
552
  /**
553
553
  * Adapts an event with `adapter` before calling `handler` .
@@ -571,7 +571,7 @@ const incrementAndChange = adaptEvent(
571
571
  ```
572
572
  */
573
573
  export function adaptEvent(
574
- adapter: EventAdapter
574
+ adapter: EventAdapter,
575
575
  ): (handler: HandlerFunction) => HandlerFunction;
576
576
  /**
577
577
  * Creates a handler that will forward the event to a function at `name` on `props` .
@@ -597,7 +597,7 @@ const forwardChangeWithIndex = forwardCustom('onChange', (ev, {index}) => ({inde
597
597
  */
598
598
  export function forwardCustom(
599
599
  name: string,
600
- adapter?: EventAdapter
600
+ adapter?: EventAdapter,
601
601
  ): HandlerFunction;
602
602
  /**
603
603
  * Accepts a handler and returns the logical complement of the value returned from the handler.
package/kind/kind.d.ts CHANGED
@@ -13,7 +13,7 @@ export interface HandlerFunction {
13
13
  (
14
14
  event: any,
15
15
  props: { [key: string]: any },
16
- context: { [key: string]: any }
16
+ context: { [key: string]: any },
17
17
  ): void;
18
18
  }
19
19
  /**
@@ -23,8 +23,7 @@ export interface StylesBlock {
23
23
  /**
24
24
  * The CSS of the component
25
25
  */
26
- css: { [key: string]: string }
27
- /**
26
+ css: { [key: string]: string } /**
28
27
  * The className of the component
29
28
  */;
30
29
  className?: string /**
@@ -37,36 +36,29 @@ export interface KindConfig {
37
36
  /**
38
37
  * The name of the component
39
38
  */
40
- name?: string
41
- /**
39
+ name?: string /**
42
40
  * Boolean controlling whether the returned component should be a functional component
43
41
  */;
44
- functional?: boolean
45
- /**
42
+ functional?: boolean /**
46
43
  * Specifies expected props
47
44
  */;
48
- propTypes?: { [key: string]: Function }
49
- /**
45
+ propTypes?: { [key: string]: Function } /**
50
46
  * Sets the default props
51
47
  */;
52
- defaultProps?: { [key: string]: any }
53
- /**
48
+ defaultProps?: { [key: string]: any } /**
54
49
  * Specifies context type
55
50
  */;
56
- contextType?: object
57
- /**
51
+ contextType?: object /**
58
52
  * Configures styles with the static className to merge with user className
59
53
  */;
60
54
  styles?: StylesBlock /**
61
55
  * Adds event handlers that are cached between calls to prevent recreating each call.
62
56
  Any handlers are added to the props passed to `render()` . See .
63
57
  */;
64
- handlers?: { [key: string]: HandlerFunction }
65
- /**
58
+ handlers?: { [key: string]: HandlerFunction } /**
66
59
  * Adds some computed properties, these are added to props passed to `render()`
67
60
  */;
68
- computed?: { [key: string]: ComputedPropFunction }
69
- /**
61
+ computed?: { [key: string]: ComputedPropFunction } /**
70
62
  * The render function
71
63
  */;
72
64
  render: RenderFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/core",
3
- "version": "4.7.6",
3
+ "version": "4.7.8",
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
  "repository": {
6
6
  "type": "git",
@@ -7,28 +7,22 @@ export interface PlatformDescription {
7
7
  /**
8
8
  * Additional information about the detected platform
9
9
  */
10
- extra?: object
11
- /**
10
+ extra?: object /**
12
11
  * `true` if the platform has native double-finger events
13
12
  */;
14
- gesture: boolean
15
- /**
13
+ gesture: boolean /**
16
14
  * `true` only if `window` is `undefined`
17
15
  */;
18
- node: boolean
19
- /**
16
+ node: boolean /**
20
17
  * The name of the platform, if detected
21
18
  */;
22
- platformName?: string
23
- /**
19
+ platformName?: string /**
24
20
  * `true` if the platform has native single-finger events
25
21
  */;
26
- touch: boolean
27
- /**
22
+ touch: boolean /**
28
23
  * `true` if the platform has a touch screen
29
24
  */;
30
- touchscreen: boolean
31
- /**
25
+ touchscreen: boolean /**
32
26
  * `true` for any unknown system
33
27
  */;
34
28
  unknown: boolean;
package/util/util.d.ts CHANGED
@@ -8,15 +8,13 @@ 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
- /**
11
+ constructor /**
13
12
  * Function to execute as the requested job.
14
13
  */(
15
- fn: Function
16
- /**
14
+ fn: Function /**
17
15
  * The number of milliseconds to wait before starting the job.
18
16
  */,
19
- timeout: number
17
+ timeout: number,
20
18
  );
21
19
  /**
22
20
  * Starts the job.
@@ -137,7 +135,7 @@ const newMap2 = mergeClassNameMaps(baseMap2, additiveMap2, ['a', 'b']);
137
135
  export function mergeClassNameMaps(
138
136
  baseMap: object,
139
137
  additiveMap: object,
140
- allowedClassNames?: string[]
138
+ allowedClassNames?: string[],
141
139
  ): object;
142
140
  /**
143
141
  * Creates a function that memoizes the result of `fn` .
@@ -154,7 +152,7 @@ export function memoize(fn: Function): Function;
154
152
  export function mapAndFilterChildren(
155
153
  children: any,
156
154
  callback: Function,
157
- filter?: Function
155
+ filter?: Function,
158
156
  ): any;
159
157
  /**
160
158
  * Performs shallow comparison for given objects.