@instructure/ui-popover
Advanced tools
@@ -24,2 +24,3 @@ /* | ||
*/ | ||
export { Popover } from './Popover'; | ||
export { Popover } from './Popover'; | ||
export { PopoverLocator, PopoverTriggerLocator } from './Popover/PopoverLocator'; |
@@ -24,18 +24,5 @@ /* | ||
*/ | ||
import { locator } from '@instructure/ui-test-utils'; // eslint-disable-next-line no-restricted-imports | ||
import PositionLocator from '@instructure/ui-position/lib/Position/locator'; | ||
import { Popover } from './index'; | ||
export var PopoverTriggerLocator = locator('[data-popover-trigger]'); | ||
export var customMethods = { | ||
findContent: function findContent() { | ||
return PositionLocator.findContent.apply(PositionLocator, arguments); | ||
}, | ||
findPositionTarget: function findPositionTarget() { | ||
return PositionLocator.findTarget.apply(PositionLocator, arguments); | ||
}, | ||
findTrigger: function findTrigger() { | ||
return PopoverTriggerLocator.find.apply(PopoverTriggerLocator, arguments); | ||
} | ||
}; | ||
export default locator(Popover.selector, customMethods); | ||
import { PopoverLocator } from './PopoverLocator'; | ||
export { PopoverTriggerLocator, customMethods } from './PopoverLocator'; | ||
export { PopoverLocator }; | ||
export default PopoverLocator; |
@@ -12,3 +12,17 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "PopoverLocator", { | ||
enumerable: true, | ||
get: function get() { | ||
return _PopoverLocator.PopoverLocator; | ||
} | ||
}); | ||
Object.defineProperty(exports, "PopoverTriggerLocator", { | ||
enumerable: true, | ||
get: function get() { | ||
return _PopoverLocator.PopoverTriggerLocator; | ||
} | ||
}); | ||
var _Popover = require("./Popover"); | ||
var _Popover = require("./Popover"); | ||
var _PopoverLocator = require("./Popover/PopoverLocator"); |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = exports.customMethods = exports.PopoverTriggerLocator = void 0; | ||
Object.defineProperty(exports, "PopoverLocator", { | ||
enumerable: true, | ||
get: function get() { | ||
return _PopoverLocator.PopoverLocator; | ||
} | ||
}); | ||
Object.defineProperty(exports, "PopoverTriggerLocator", { | ||
enumerable: true, | ||
get: function get() { | ||
return _PopoverLocator.PopoverTriggerLocator; | ||
} | ||
}); | ||
Object.defineProperty(exports, "customMethods", { | ||
enumerable: true, | ||
get: function get() { | ||
return _PopoverLocator.customMethods; | ||
} | ||
}); | ||
exports.default = void 0; | ||
var _uiTestUtils = require("@instructure/ui-test-utils"); | ||
var _PopoverLocator = require("./PopoverLocator"); | ||
var _locator = _interopRequireDefault(require("@instructure/ui-position/lib/Position/locator")); | ||
var _index = require("./index"); | ||
/* | ||
@@ -39,19 +51,3 @@ * The MIT License (MIT) | ||
*/ | ||
var PopoverTriggerLocator = (0, _uiTestUtils.locator)('[data-popover-trigger]'); | ||
exports.PopoverTriggerLocator = PopoverTriggerLocator; | ||
var customMethods = { | ||
findContent: function findContent() { | ||
return _locator.default.findContent.apply(_locator.default, arguments); | ||
}, | ||
findPositionTarget: function findPositionTarget() { | ||
return _locator.default.findTarget.apply(_locator.default, arguments); | ||
}, | ||
findTrigger: function findTrigger() { | ||
return PopoverTriggerLocator.find.apply(PopoverTriggerLocator, arguments); | ||
} | ||
}; | ||
exports.customMethods = customMethods; | ||
var _default = (0, _uiTestUtils.locator)(_index.Popover.selector, customMethods); | ||
var _default = _PopoverLocator.PopoverLocator; | ||
exports.default = _default; |
{ | ||
"name": "@instructure/ui-popover", | ||
"version": "6.16.1-rc.10+b3dbe0284", | ||
"version": "6.16.1-rc.11+ae3b13199", | ||
"description": "A component for hiding or showing content based on user interaction.", | ||
@@ -25,14 +25,14 @@ "author": "Instructure, Inc. Engineering and Product Design", | ||
"@babel/runtime": "^7.5.0", | ||
"@instructure/console": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-dialog": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-dom-utils": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-i18n": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-position": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-prop-types": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-react-utils": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-testable": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-themeable": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-utils": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-view": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/uid": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/console": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-dialog": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-dom-utils": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-i18n": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-position": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-prop-types": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-react-utils": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-testable": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-themeable": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-utils": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-view": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/uid": "6.16.1-rc.11+ae3b13199", | ||
"keycode": "^2", | ||
@@ -42,5 +42,5 @@ "prop-types": "^15" | ||
"devDependencies": { | ||
"@instructure/ui-babel-preset": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-color-utils": "6.16.1-rc.10+b3dbe0284", | ||
"@instructure/ui-test-utils": "6.16.1-rc.10+b3dbe0284" | ||
"@instructure/ui-babel-preset": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-color-utils": "6.16.1-rc.11+ae3b13199", | ||
"@instructure/ui-test-utils": "6.16.1-rc.11+ae3b13199" | ||
}, | ||
@@ -54,3 +54,3 @@ "peerDependencies": { | ||
"sideEffects": false, | ||
"gitHead": "b3dbe02846d1a068c0eb3fe22a6dd5e30b12d533" | ||
"gitHead": "ae3b13199c318c4adf1bd95c2927144c4b6d8de5" | ||
} |
@@ -25,1 +25,2 @@ /* | ||
export { Popover } from './Popover' | ||
export { PopoverLocator, PopoverTriggerLocator } from './Popover/PopoverLocator' |
@@ -25,15 +25,6 @@ /* | ||
import { locator } from '@instructure/ui-test-utils' | ||
// eslint-disable-next-line no-restricted-imports | ||
import PositionLocator from '@instructure/ui-position/lib/Position/locator' | ||
import { Popover } from './index' | ||
import { PopoverLocator } from './PopoverLocator' | ||
export const PopoverTriggerLocator = locator('[data-popover-trigger]') | ||
export const customMethods = { | ||
findContent: (...args) => PositionLocator.findContent(...args), | ||
findPositionTarget: (...args) => PositionLocator.findTarget(...args), | ||
findTrigger: (...args) => PopoverTriggerLocator.find(...args) | ||
} | ||
export default locator(Popover.selector, customMethods) | ||
export { PopoverTriggerLocator, customMethods } from './PopoverLocator' | ||
export { PopoverLocator } | ||
export default PopoverLocator |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
110464
9.03%21
40%2598
8.34%