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

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.47+70bc15c4e",
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.47+70bc15c4e",
27
+ "@instructure/ui-test-utils": "8.12.1-snapshot.47+70bc15c4e"
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.47+70bc15c4e",
32
+ "@instructure/shared-types": "8.12.1-snapshot.47+70bc15c4e"
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": "70bc15c4e8d89589a1372954f7a230ddde5ef71b"
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)
@@ -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"}