@instructure/ui-dom-utils 8.12.1-snapshot.3 → 8.12.1-snapshot.32
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/es/index.js +0 -1
- package/lib/index.js +0 -8
- package/package.json +6 -6
- package/src/addEventListener.ts +1 -1
- package/src/contains.ts +1 -12
- package/src/index.ts +0 -1
- package/types/addEventListener.d.ts +1 -1
- package/types/addEventListener.d.ts.map +1 -1
- package/types/contains.d.ts +2 -15
- package/types/contains.d.ts.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/es/getFrameDocumentSafe.js +0 -29
- package/lib/getFrameDocumentSafe.js +0 -37
- package/src/getFrameDocumentSafe.ts +0 -30
- package/types/getFrameDocumentSafe.d.ts +0 -4
- package/types/getFrameDocumentSafe.d.ts.map +0 -1
package/es/index.js
CHANGED
|
@@ -39,7 +39,6 @@ export { getBoundingClientRect } from './getBoundingClientRect';
|
|
|
39
39
|
export { getClassList } from './getClassList';
|
|
40
40
|
export { getComputedStyle } from './getComputedStyle';
|
|
41
41
|
export { getFontSize } from './getFontSize';
|
|
42
|
-
export { getFrameDocumentSafe } from './getFrameDocumentSafe';
|
|
43
42
|
export { getOffsetParents } from './getOffsetParents';
|
|
44
43
|
export { getScrollParents } from './getScrollParents';
|
|
45
44
|
export { handleMouseOverOut } from './handleMouseOverOut';
|
package/lib/index.js
CHANGED
|
@@ -99,12 +99,6 @@ Object.defineProperty(exports, "getFontSize", {
|
|
|
99
99
|
return _getFontSize.getFontSize;
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
Object.defineProperty(exports, "getFrameDocumentSafe", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function () {
|
|
105
|
-
return _getFrameDocumentSafe.getFrameDocumentSafe;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
102
|
Object.defineProperty(exports, "getOffsetParents", {
|
|
109
103
|
enumerable: true,
|
|
110
104
|
get: function () {
|
|
@@ -198,8 +192,6 @@ var _getComputedStyle = require("./getComputedStyle");
|
|
|
198
192
|
|
|
199
193
|
var _getFontSize = require("./getFontSize");
|
|
200
194
|
|
|
201
|
-
var _getFrameDocumentSafe = require("./getFrameDocumentSafe");
|
|
202
|
-
|
|
203
195
|
var _getOffsetParents = require("./getOffsetParents");
|
|
204
196
|
|
|
205
197
|
var _getScrollParents = require("./getScrollParents");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-dom-utils",
|
|
3
|
-
"version": "8.12.1-snapshot.
|
|
3
|
+
"version": "8.12.1-snapshot.32+ee1eeeb96",
|
|
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.
|
|
27
|
-
"@instructure/ui-test-utils": "8.12.1-snapshot.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.32+ee1eeeb96",
|
|
27
|
+
"@instructure/ui-test-utils": "8.12.1-snapshot.32+ee1eeeb96"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.13.10",
|
|
31
|
-
"@instructure/console": "8.12.1-snapshot.
|
|
32
|
-
"@instructure/shared-types": "8.12.1-snapshot.
|
|
31
|
+
"@instructure/console": "8.12.1-snapshot.32+ee1eeeb96",
|
|
32
|
+
"@instructure/shared-types": "8.12.1-snapshot.32+ee1eeeb96"
|
|
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": "
|
|
42
|
+
"gitHead": "ee1eeeb96b9dd03d5fd1c3301e5d4df12ff5cce4"
|
|
43
43
|
}
|
package/src/addEventListener.ts
CHANGED
package/src/contains.ts
CHANGED
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
|
|
25
25
|
import { findDOMNode } from './findDOMNode'
|
|
26
26
|
import { canUseDOM } from './canUseDOM'
|
|
27
|
-
import React from 'react'
|
|
28
27
|
import { UIElement } from '@instructure/shared-types'
|
|
29
28
|
|
|
30
29
|
/**
|
|
@@ -41,7 +40,6 @@ import { UIElement } from '@instructure/shared-types'
|
|
|
41
40
|
function containsWithDOM(context: UIElement, el: UIElement) {
|
|
42
41
|
const container = context && findDOMNode(context)
|
|
43
42
|
const node = el && findDOMNode(el)
|
|
44
|
-
|
|
45
43
|
if (!container || !node) {
|
|
46
44
|
return false
|
|
47
45
|
} else if (!(container instanceof Window) && !(node instanceof Window)) {
|
|
@@ -52,15 +50,7 @@ function containsWithDOM(context: UIElement, el: UIElement) {
|
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
/* istanbul ignore next */
|
|
55
|
-
function containsFallback(
|
|
56
|
-
context:
|
|
57
|
-
| Node
|
|
58
|
-
| Window
|
|
59
|
-
| React.ReactElement
|
|
60
|
-
| ((...args: any[]) => any)
|
|
61
|
-
| null,
|
|
62
|
-
el: Node | Window | React.ReactElement | ((...args: any[]) => any) | null
|
|
63
|
-
) {
|
|
53
|
+
function containsFallback(context: UIElement, el: UIElement) {
|
|
64
54
|
let node = el
|
|
65
55
|
|
|
66
56
|
while (node) {
|
|
@@ -69,7 +59,6 @@ function containsFallback(
|
|
|
69
59
|
}
|
|
70
60
|
node = (node as Node).parentNode
|
|
71
61
|
}
|
|
72
|
-
|
|
73
62
|
return false
|
|
74
63
|
}
|
|
75
64
|
|
package/src/index.ts
CHANGED
|
@@ -41,7 +41,6 @@ export type { RectType } from './getBoundingClientRect'
|
|
|
41
41
|
export { getClassList } from './getClassList'
|
|
42
42
|
export { getComputedStyle } from './getComputedStyle'
|
|
43
43
|
export { getFontSize } from './getFontSize'
|
|
44
|
-
export { getFrameDocumentSafe } from './getFrameDocumentSafe'
|
|
45
44
|
export { getOffsetParents } from './getOffsetParents'
|
|
46
45
|
export { getScrollParents } from './getScrollParents'
|
|
47
46
|
export { handleMouseOverOut } from './handleMouseOverOut'
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @param { boolean } capture - should the event be executed in the capturing or bubbling phase
|
|
11
11
|
* @returns {{ remove(): void }} a method to remove the event listener
|
|
12
12
|
*/
|
|
13
|
-
declare function addEventListener(el: Node | Window, event:
|
|
13
|
+
declare function addEventListener(el: Node | Window, event: keyof WindowEventMap, handler: EventListenerOrEventListenerObject, capture?: boolean): {
|
|
14
14
|
remove(): void;
|
|
15
15
|
};
|
|
16
16
|
export default addEventListener;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addEventListener.d.ts","sourceRoot":"","sources":["../src/addEventListener.ts"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,iBAAS,gBAAgB,CACvB,EAAE,EAAE,IAAI,GAAG,MAAM,EACjB,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"addEventListener.d.ts","sourceRoot":"","sources":["../src/addEventListener.ts"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,iBAAS,gBAAgB,CACvB,EAAE,EAAE,IAAI,GAAG,MAAM,EACjB,KAAK,EAAE,MAAM,cAAc,EAC3B,OAAO,EAAE,kCAAkC,EAC3C,OAAO,CAAC,EAAE,OAAO;;EAUlB;AAED,eAAe,gBAAgB,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
package/types/contains.d.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { UIElement } from '@instructure/shared-types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* category: utilities/DOM
|
|
6
|
-
* ---
|
|
7
|
-
*
|
|
8
|
-
* Determine if an element contains another DOM node
|
|
9
|
-
* @module containsWithDOM
|
|
10
|
-
* @param { Node | Window | React.ReactElement | function | null } context - component or DOM node
|
|
11
|
-
* @param { Node | Window | React.ReactElement | function | null } el - component or DOM node which we want to determine if contained within the context
|
|
12
|
-
* @returns { boolean } if the element is contained within the context
|
|
13
|
-
*/
|
|
14
|
-
declare function containsWithDOM(context: UIElement, el: UIElement): boolean;
|
|
15
|
-
declare function containsFallback(context: Node | Window | React.ReactElement | ((...args: any[]) => any) | null, el: Node | Window | React.ReactElement | ((...args: any[]) => any) | null): boolean;
|
|
16
|
-
declare const contains: typeof containsFallback | typeof containsWithDOM;
|
|
2
|
+
declare function containsFallback(context: UIElement, el: UIElement): boolean;
|
|
3
|
+
declare const contains: typeof containsFallback;
|
|
17
4
|
export default contains;
|
|
18
5
|
export { contains };
|
|
19
6
|
//# sourceMappingURL=contains.d.ts.map
|
package/types/contains.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contains.d.ts","sourceRoot":"","sources":["../src/contains.ts"],"names":[],"mappings":"AA0BA,OAAO,
|
|
1
|
+
{"version":3,"file":"contains.d.ts","sourceRoot":"","sources":["../src/contains.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AA0BrD,iBAAS,gBAAgB,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,WAU1D;AAED,QAAA,MAAM,QAAQ,yBAAiD,CAAA;AAC/D,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
package/types/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export type { RectType } from './getBoundingClientRect';
|
|
|
16
16
|
export { getClassList } from './getClassList';
|
|
17
17
|
export { getComputedStyle } from './getComputedStyle';
|
|
18
18
|
export { getFontSize } from './getFontSize';
|
|
19
|
-
export { getFrameDocumentSafe } from './getFrameDocumentSafe';
|
|
20
19
|
export { getOffsetParents } from './getOffsetParents';
|
|
21
20
|
export { getScrollParents } from './getScrollParents';
|
|
22
21
|
export { handleMouseOverOut } from './handleMouseOverOut';
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,YAAY,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,YAAY,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,YAAY,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,YAAY,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,YAAY,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* The MIT License (MIT)
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2015 - present Instructure, Inc.
|
|
5
|
-
*
|
|
6
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
* in the Software without restriction, including without limitation the rights
|
|
9
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
12
|
-
*
|
|
13
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
* copies or substantial portions of the Software.
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
function getFrameDocumentSafe(el) {
|
|
25
|
-
return el.contentDocument || null;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default getFrameDocumentSafe;
|
|
29
|
-
export { getFrameDocumentSafe };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getFrameDocumentSafe = getFrameDocumentSafe;
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* The MIT License (MIT)
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) 2015 - present Instructure, Inc.
|
|
13
|
-
*
|
|
14
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
16
|
-
* in the Software without restriction, including without limitation the rights
|
|
17
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
19
|
-
* furnished to do so, subject to the following conditions:
|
|
20
|
-
*
|
|
21
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
22
|
-
* copies or substantial portions of the Software.
|
|
23
|
-
*
|
|
24
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
-
* SOFTWARE.
|
|
31
|
-
*/
|
|
32
|
-
function getFrameDocumentSafe(el) {
|
|
33
|
-
return el.contentDocument || null;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
var _default = getFrameDocumentSafe;
|
|
37
|
-
exports.default = _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* The MIT License (MIT)
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2015 - present Instructure, Inc.
|
|
5
|
-
*
|
|
6
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
* in the Software without restriction, including without limitation the rights
|
|
9
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
12
|
-
*
|
|
13
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
* copies or substantial portions of the Software.
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
function getFrameDocumentSafe(el: HTMLIFrameElement) {
|
|
26
|
-
return el.contentDocument || null
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default getFrameDocumentSafe
|
|
30
|
-
export { getFrameDocumentSafe }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFrameDocumentSafe.d.ts","sourceRoot":"","sources":["../src/getFrameDocumentSafe.ts"],"names":[],"mappings":"AAwBA,iBAAS,oBAAoB,CAAC,EAAE,EAAE,iBAAiB,mBAElD;AAED,eAAe,oBAAoB,CAAA;AACnC,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
|