@instructure/ui-dom-utils 8.12.1-snapshot.46 → 8.12.1-snapshot.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-dom-utils",
3
- "version": "8.12.1-snapshot.46+51e6aff75",
3
+ "version": "8.12.1-snapshot.52+07b0037b0",
4
4
  "description": "A DOM utility library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.12.1-snapshot.46+51e6aff75",
27
- "@instructure/ui-test-utils": "8.12.1-snapshot.46+51e6aff75"
26
+ "@instructure/ui-babel-preset": "8.12.1-snapshot.52+07b0037b0",
27
+ "@instructure/ui-test-utils": "8.12.1-snapshot.52+07b0037b0"
28
28
  },
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.13.10",
31
- "@instructure/console": "8.12.1-snapshot.46+51e6aff75",
32
- "@instructure/shared-types": "8.12.1-snapshot.46+51e6aff75"
31
+ "@instructure/console": "8.12.1-snapshot.52+07b0037b0",
32
+ "@instructure/shared-types": "8.12.1-snapshot.52+07b0037b0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": ">=16.8 <=17",
@@ -39,5 +39,5 @@
39
39
  "access": "public"
40
40
  },
41
41
  "sideEffects": false,
42
- "gitHead": "51e6aff7502e7b0b22b107c9d39c2a8dc2c267f4"
42
+ "gitHead": "07b0037b0ddaf6d4f19cca140fc82fc9a2f1efc9"
43
43
  }
@@ -39,7 +39,7 @@ import { UIElement } from '@instructure/shared-types'
39
39
  * @param { Node | Window | React.ReactElement | React.Component | function } el - component or DOM node
40
40
  * @returns { Object } object containing css properties and values for the element
41
41
  */
42
- function getComputedStyle(el: UIElement) {
42
+ function getComputedStyle(el?: UIElement) {
43
43
  let style = {}
44
44
  if (canUseDOM) {
45
45
  const node = el && findDOMNode(el)
@@ -40,7 +40,10 @@ import { contains } from './contains'
40
40
  */
41
41
  function handleMouseOverOut(
42
42
  handler: (...args: any[]) => any,
43
- event: Event & { relatedTarget: EventTarget | null }
43
+ event: {
44
+ currentTarget: EventTarget | null
45
+ relatedTarget?: EventTarget | null
46
+ }
44
47
  ) {
45
48
  const target = event.currentTarget
46
49
  const related = event.relatedTarget
@@ -11,7 +11,7 @@ import { UIElement } from '@instructure/shared-types';
11
11
  * @param { Node | Window | React.ReactElement | React.Component | function } el - component or DOM node
12
12
  * @returns { Object } object containing css properties and values for the element
13
13
  */
14
- declare function getComputedStyle(el: UIElement): CSSStyleDeclaration;
14
+ declare function getComputedStyle(el?: UIElement): CSSStyleDeclaration;
15
15
  export default getComputedStyle;
16
16
  export { getComputedStyle };
17
17
  //# sourceMappingURL=getComputedStyle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getComputedStyle.d.ts","sourceRoot":"","sources":["../src/getComputedStyle.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD;;;;;;;;;;;GAWG;AACH,iBAAS,gBAAgB,CAAC,EAAE,EAAE,SAAS,uBAUtC;AAED,eAAe,gBAAgB,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
1
+ {"version":3,"file":"getComputedStyle.d.ts","sourceRoot":"","sources":["../src/getComputedStyle.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD;;;;;;;;;;;GAWG;AACH,iBAAS,gBAAgB,CAAC,EAAE,CAAC,EAAE,SAAS,uBAUvC;AAED,eAAe,gBAAgB,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -12,8 +12,9 @@
12
12
  * @param handler {function} Callback function for handling the event
13
13
  * @param event {Event} The DOM Event that was fired
14
14
  */
15
- declare function handleMouseOverOut(handler: (...args: any[]) => any, event: Event & {
16
- relatedTarget: EventTarget | null;
15
+ declare function handleMouseOverOut(handler: (...args: any[]) => any, event: {
16
+ currentTarget: EventTarget | null;
17
+ relatedTarget?: EventTarget | null;
17
18
  }): void;
18
19
  export default handleMouseOverOut;
19
20
  export { handleMouseOverOut };
@@ -1 +1 @@
1
- {"version":3,"file":"handleMouseOverOut.d.ts","sourceRoot":"","sources":["../src/handleMouseOverOut.ts"],"names":[],"mappings":"AA0BA;;;;;;;;;;;;;GAaG;AACH,iBAAS,kBAAkB,CACzB,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAChC,KAAK,EAAE,KAAK,GAAG;IAAE,aAAa,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,QAYrD;AAED,eAAe,kBAAkB,CAAA;AACjC,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
1
+ {"version":3,"file":"handleMouseOverOut.d.ts","sourceRoot":"","sources":["../src/handleMouseOverOut.ts"],"names":[],"mappings":"AA0BA;;;;;;;;;;;;;GAaG;AACH,iBAAS,kBAAkB,CACzB,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAChC,KAAK,EAAE;IACL,aAAa,EAAE,WAAW,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;CACnC,QAYF;AAED,eAAe,kBAAkB,CAAA;AACjC,OAAO,EAAE,kBAAkB,EAAE,CAAA"}