1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.wrapsIntrinsicElement = wrapsIntrinsicElement;
|
7 | exports.default = findOutermostIntrinsic;
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | function wrapsIntrinsicElement(reactWrapper) {
|
16 | return typeof reactWrapper.type() === 'string';
|
17 | }
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | function findOutermostIntrinsic(reactWrapper) {
|
27 | return reactWrapper.findWhere(function (n) {
|
28 | return n.exists() && wrapsIntrinsicElement(n);
|
29 | }).first();
|
30 | } |
\ | No newline at end of file |