@enact/spotlight 5.0.0-alpha.2 → 5.0.0-alpha.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,6 +2,18 @@
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
+ ## [5.0.0-alpha.3] - 2024-12-02
6
+
7
+ No significant changes.
8
+
9
+ ## [4.9.4] - 2024-11-19
10
+
11
+ No significant changes.
12
+
13
+ ## [4.9.3] - 2024-10-29
14
+
15
+ No significant changes.
16
+
5
17
  ## [5.0.0-alpha.2] - 2024-10-08
6
18
 
7
19
  ### Fixed
@@ -66,10 +66,10 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
66
66
  *
67
67
  * @typedef {Object} useSpotlightContainerInterface
68
68
  * @memberof spotlight/SpotlightContainerDecorator
69
- * @property {Function} onBlurCapture Callback to notify hook when an node was blurred within the
69
+ * @property {Function} onBlurCapture Callback to notify hook when a node was blurred within the
70
70
  * container. Must be called during the capture phase of the
71
71
  * event flow.
72
- * @property {Function} onFocusCapture Callback to notify hook when an node was focused within the
72
+ * @property {Function} onFocusCapture Callback to notify hook when a node was focused within the
73
73
  * container. Must be called during the capture phase of the
74
74
  * event flow.
75
75
  * @property {String} attributes An object of DOM attributes of representing the current
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/spotlight",
3
- "version": "5.0.0-alpha.2",
3
+ "version": "5.0.0-alpha.3",
4
4
  "description": "A focus management library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@enact/core": "^5.0.0-alpha.2",
28
+ "@enact/core": "^5.0.0-alpha.3",
29
29
  "classnames": "^2.5.1",
30
30
  "prop-types": "^15.8.1",
31
31
  "ramda": "^0.30.1",
@@ -272,7 +272,7 @@ describe('container', function () {
272
272
 
273
273
  // FIXME: This is testing a previously supported feature (setting a node as defaultElement)
274
274
  // which was never documented and should be removed in a future release.
275
- test('should return the default spottable element when enterTo is "default-element" and defaultElement contains an array of selectors wiht a node reference', (0, _utils.testScenario)(scenarios.containerWithDefaultAndLastFocused, function (root) {
275
+ test('should return the default spottable element when enterTo is "default-element" and defaultElement contains an array of selectors with a node reference', (0, _utils.testScenario)(scenarios.containerWithDefaultAndLastFocused, function (root) {
276
276
  (0, _container19.configureContainer)('container', {
277
277
  enterTo: 'default-element',
278
278
  defaultElement: [root.querySelector('#lastFocused'), '.spottable-default']
@@ -589,7 +589,7 @@ describe('container', function () {
589
589
  describe('#getAllContainerIds', function () {
590
590
  beforeEach(setupContainers);
591
591
  afterEach(teardownContainers);
592
- test('should not include inacive containers', (0, _utils.testScenario)(scenarios.onlyContainers, function (root) {
592
+ test('should not include inactive containers', (0, _utils.testScenario)(scenarios.onlyContainers, function (root) {
593
593
  var containerId = root.querySelector('[data-spotlight-id]').dataset.containerId;
594
594
  (0, _container19.addContainer)(containerId);
595
595
  (0, _container19.unmountContainer)(containerId);
@@ -82,7 +82,7 @@ describe('pointer', function () {
82
82
  var actual = (0, _pointer.getLastPointerPosition)().y;
83
83
  expect(actual).toBe(expected);
84
84
  });
85
- test('should enable pointer mode if the pointer positionchanges', function () {
85
+ test('should enable pointer mode if the pointer position changes', function () {
86
86
  (0, _pointer.setPointerMode)(false);
87
87
  (0, _pointer.notifyPointerMove)(null, null, 5, 5);
88
88
  var expected = true;
package/src/utils.js CHANGED
@@ -200,7 +200,7 @@ function isStandardFocusable(element) {
200
200
  // If the element is actually disabled, it is not focusable
201
201
  return false;
202
202
  } else if (element.tagName === 'A' && element.getAttribute('href') !== null) {
203
- // Anchor element that has an href attribute is focusable
203
+ // Anchor element that has a href attribute is focusable
204
204
  return true;
205
205
  } else if (element.tagName === 'INPUT' && element.type !== 'hidden') {
206
206
  // Input element whose type attribute is not hidden is focusable