@instructure/ui-dom-utils 8.17.1-snapshot.82 → 8.18.1-snapshot.1

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
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.18.0](https://github.com/instructure/instructure-ui/compare/v8.17.0...v8.18.0) (2022-02-23)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-dom-utils
9
+
6
10
  # [8.17.0](https://github.com/instructure/instructure-ui/compare/v8.16.0...v8.17.0) (2022-02-07)
7
11
 
8
12
  ### Bug Fixes
@@ -36,9 +36,11 @@ class InputModeListenerImpl {
36
36
  this._mode = MODES.keyboard;
37
37
 
38
38
  this.onInitialPointerMove = event => {
39
+ var _event$target, _event$target$nodeNam;
40
+
39
41
  // Work around a Safari quirk that fires a mousemove on <html> whenever the
40
42
  // window blurs, even if you're tabbing out of the page. ¯\_(ツ)_/¯
41
- if (event?.target?.nodeName?.toLowerCase() === 'html') {
43
+ if ((event === null || event === void 0 ? void 0 : (_event$target = event.target) === null || _event$target === void 0 ? void 0 : (_event$target$nodeNam = _event$target.nodeName) === null || _event$target$nodeNam === void 0 ? void 0 : _event$target$nodeNam.toLowerCase()) === 'html') {
42
44
  return;
43
45
  }
44
46
 
@@ -37,10 +37,10 @@ import { findDOMNode } from './findDOMNode';
37
37
  */
38
38
  function addEventListener(el, event, handler, capture) {
39
39
  const node = el === window || el === document ? el : findDOMNode(el);
40
- node?.addEventListener(event, handler, capture);
40
+ node === null || node === void 0 ? void 0 : node.addEventListener(event, handler, capture);
41
41
  return {
42
42
  remove() {
43
- node?.removeEventListener(event, handler, capture);
43
+ node === null || node === void 0 ? void 0 : node.removeEventListener(event, handler, capture);
44
44
  }
45
45
 
46
46
  };
@@ -47,9 +47,11 @@ class InputModeListenerImpl {
47
47
  this._mode = MODES.keyboard;
48
48
 
49
49
  this.onInitialPointerMove = event => {
50
+ var _event$target, _event$target$nodeNam;
51
+
50
52
  // Work around a Safari quirk that fires a mousemove on <html> whenever the
51
53
  // window blurs, even if you're tabbing out of the page. ¯\_(ツ)_/¯
52
- if (event?.target?.nodeName?.toLowerCase() === 'html') {
54
+ if ((event === null || event === void 0 ? void 0 : (_event$target = event.target) === null || _event$target === void 0 ? void 0 : (_event$target$nodeNam = _event$target.nodeName) === null || _event$target$nodeNam === void 0 ? void 0 : _event$target$nodeNam.toLowerCase()) === 'html') {
53
55
  return;
54
56
  }
55
57
 
@@ -46,10 +46,10 @@ var _findDOMNode = require("./findDOMNode");
46
46
  */
47
47
  function addEventListener(el, event, handler, capture) {
48
48
  const node = el === window || el === document ? el : (0, _findDOMNode.findDOMNode)(el);
49
- node?.addEventListener(event, handler, capture);
49
+ node === null || node === void 0 ? void 0 : node.addEventListener(event, handler, capture);
50
50
  return {
51
51
  remove() {
52
- node?.removeEventListener(event, handler, capture);
52
+ node === null || node === void 0 ? void 0 : node.removeEventListener(event, handler, capture);
53
53
  }
54
54
 
55
55
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-dom-utils",
3
- "version": "8.17.1-snapshot.82+96244a097",
3
+ "version": "8.18.1-snapshot.1+669aa5892",
4
4
  "description": "A DOM utility library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "devDependencies": {
25
- "@instructure/ui-babel-preset": "8.17.1-snapshot.82+96244a097",
26
- "@instructure/ui-test-utils": "8.17.1-snapshot.82+96244a097"
25
+ "@instructure/ui-babel-preset": "8.18.1-snapshot.1+669aa5892",
26
+ "@instructure/ui-test-utils": "8.18.1-snapshot.1+669aa5892"
27
27
  },
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.13.10",
30
- "@instructure/console": "8.17.1-snapshot.82+96244a097",
31
- "@instructure/shared-types": "8.17.1-snapshot.82+96244a097"
30
+ "@instructure/console": "8.18.1-snapshot.1+669aa5892",
31
+ "@instructure/shared-types": "8.18.1-snapshot.1+669aa5892"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=16.8 <=17",
@@ -38,5 +38,5 @@
38
38
  "access": "public"
39
39
  },
40
40
  "sideEffects": false,
41
- "gitHead": "96244a097dffef5f10bbe7979c580581c787083e"
41
+ "gitHead": "669aa58926b123028bcb9e39427d36910b78b0d1"
42
42
  }