@enact/spotlight 4.7.2 → 4.7.3

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,12 +2,22 @@
2
2
 
3
3
  The following is a curated list of changes in the Enact spotlight module, newest changes on the top.
4
4
 
5
+ ## [4.7.3] - 2023-08-10
6
+
7
+ ### Added
8
+
9
+ - `spotlight/SpotlightContainerDecorator` config option `leaveFor` to direct which element receives focus when the focus is leaving
10
+
5
11
  ## [4.7.2] - 2023-07-14
6
12
 
7
13
  ### Fixed
8
14
 
9
15
  - `spotlight` to not show the focus effect when pointer mode is changed to `false` by touch while an app is loading
10
16
 
17
+ ## [4.5.4] - 2023-06-07
18
+
19
+ No significant changes.
20
+
11
21
  ## [4.7.1] - 2023-06-02
12
22
 
13
23
  No significant changes.
@@ -26,6 +26,13 @@ container will focus the last focused item; if the container has never had focus
26
26
  element will receive focus. If `null` , the default 5-way behavior will be applied.
27
27
  */
28
28
  enterTo?: string;
29
+ /**
30
+ * Directs which element receives focus when the focus is leaving from the current container using 5-way direction keys.
31
+ If `{down: '#left'}` , the focus moves to the DOM element whose id value is `left` when pressing the 5-way down.
32
+ If `{left: '', right: ''}` , the focus cannot leave the current container with 5-way left and right.
33
+ If `null` , the default 5-way behavior will be applied.
34
+ */
35
+ leaveFor?: object;
29
36
  /**
30
37
  * Filter the navigable elements.
31
38
  */
@@ -106,6 +106,18 @@ var defaultConfig = {
106
106
  * @public
107
107
  */
108
108
  enterTo: null,
109
+ /**
110
+ * Directs which element receives focus when the focus is leaving from the current container using 5-way direction keys.
111
+ * If `{down: '#left'}`, the focus moves to the DOM element whose id value is `left` when pressing the 5-way down.
112
+ * If `{left: '', right: ''}`, the focus cannot leave the current container with 5-way left and right.
113
+ * If `null`, the default 5-way behavior will be applied.
114
+ *
115
+ * @type {Object}
116
+ * @default null
117
+ * @memberof spotlight/SpotlightContainerDecorator.SpotlightContainerDecorator.defaultConfig
118
+ * @public
119
+ */
120
+ leaveFor: null,
109
121
  /**
110
122
  * Filter the navigable elements.
111
123
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/spotlight",
3
- "version": "4.7.2",
3
+ "version": "4.7.3",
4
4
  "description": "A focus management library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@enact/core": "^4.7.2",
27
+ "@enact/core": "^4.7.3",
28
28
  "classnames": "^2.3.2",
29
29
  "prop-types": "^15.8.1",
30
30
  "ramda": "^0.29.0",