@enact/spotlight 4.9.0-alpha.3 → 4.9.0

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,16 @@
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.9.0] - 2024-07-17
6
+
7
+ ### Fixed
8
+
9
+ - `spotlight/Spotlight.disableSelector` to properly update the `selectorDisabled` container config
10
+
11
+ ## [4.9.0-beta.1] - 2024-06-17
12
+
13
+ No significant changes.
14
+
5
15
  ## [4.9.0-alpha.3] - 2024-06-05
6
16
 
7
17
  ### Changed
@@ -135,7 +145,7 @@ No significant changes.
135
145
  ### Fixed
136
146
 
137
147
  - `spotlight` to not leave the restrict container after returning from another app
138
-
148
+
139
149
  ## [4.5.0-rc.1] - 2022-06-23
140
150
 
141
151
  No significant changes.
@@ -145,7 +155,7 @@ No significant changes.
145
155
  ### Added
146
156
 
147
157
  - `spotlight` an optional `containerOption.toOuterContainer` parameter to `focus` function to search target recursively to outer container
148
-
158
+
149
159
  ## [4.5.0-alpha.2] - 2022-05-09
150
160
 
151
161
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/spotlight",
3
- "version": "4.9.0-alpha.3",
3
+ "version": "4.9.0",
4
4
  "description": "A focus management library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,10 +25,10 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@enact/core": "^4.9.0-alpha.3",
28
+ "@enact/core": "^4.9.0",
29
29
  "classnames": "^2.5.1",
30
30
  "prop-types": "^15.8.1",
31
- "ramda": "^0.29.1",
31
+ "ramda": "^0.30.1",
32
32
  "react": "^18.3.1",
33
33
  "react-dom": "^18.3.1",
34
34
  "warning": "^4.0.3"
package/src/spotlight.js CHANGED
@@ -559,7 +559,7 @@ var Spotlight = exports.Spotlight = function () {
559
559
  disableSelector: function disableSelector(containerId) {
560
560
  if ((0, _container.isContainer)(containerId)) {
561
561
  (0, _container.configureContainer)(containerId, {
562
- selectorDisabled: false
562
+ selectorDisabled: true
563
563
  });
564
564
  return true;
565
565
  }
package/src/utils.js CHANGED
@@ -22,7 +22,7 @@ var elementMatchesSelector = function elementMatchesSelector(selector) {
22
22
  return [].slice.call(matchedNodes).indexOf(this) >= 0;
23
23
  };
24
24
  if (typeof window === 'object') {
25
- elementMatchesSelector = window.Element.prototype.matches || window.Element.prototype.matchesSelector || window.Element.prototype.mozMatchesSelector || window.Element.prototype.webkitMatchesSelector || window.Element.prototype.msMatchesSelector || window.Element.prototype.oMatchesSelector || elementMatchesSelector;
25
+ elementMatchesSelector = window.Element.prototype.matches || elementMatchesSelector;
26
26
  }
27
27
  var matchSelector = exports.matchSelector = (0, _curry["default"])(function (selector, elem) {
28
28
  if (typeof selector === 'string') {