@instructure/ui-portal
Advanced tools
Comparing version 8.56.5-pr-snapshot-1728655013879 to 8.56.5-pr-snapshot-1729507712924
@@ -6,3 +6,3 @@ # Change Log | ||
## [8.56.5-pr-snapshot-1728655013879](https://github.com/instructure/instructure-ui/compare/v8.56.4...v8.56.5-pr-snapshot-1728655013879) (2024-10-11) | ||
## [8.56.5-pr-snapshot-1729507712924](https://github.com/instructure/instructure-ui/compare/v8.56.4...v8.56.5-pr-snapshot-1729507712924) (2024-10-21) | ||
@@ -9,0 +9,0 @@ **Note:** Version bump only for package @instructure/ui-portal |
@@ -12,5 +12,5 @@ "use strict"; | ||
var _reactDom = _interopRequireDefault(require("react-dom")); | ||
var _uiReactUtils = require("@instructure/ui-react-utils"); | ||
var _uiI18n = require("@instructure/ui-i18n"); | ||
var _uiDomUtils = require("@instructure/ui-dom-utils"); | ||
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js"); | ||
var _textDirectionContextConsumer = require("@instructure/ui-i18n/lib/textDirectionContextConsumer.js"); | ||
var _canUseDOM = require("@instructure/ui-dom-utils/lib/canUseDOM.js"); | ||
var _props = require("./props"); | ||
@@ -48,3 +48,3 @@ const _excluded = ["open", "insertAt", "onOpen", "onClose", "mountNode", "children", "elementRef", "dir"]; | ||
**/ | ||
let Portal = exports.Portal = (_dec = (0, _uiI18n.textDirectionContextConsumer)(), _dec(_class = (_class2 = class Portal extends _react.Component { | ||
let Portal = exports.Portal = (_dec = (0, _textDirectionContextConsumer.textDirectionContextConsumer)(), _dec(_class = (_class2 = class Portal extends _react.Component { | ||
constructor(props) { | ||
@@ -62,3 +62,3 @@ super(props); | ||
}; | ||
if (!_uiDomUtils.canUseDOM) { | ||
if (!_canUseDOM.canUseDOM) { | ||
return; | ||
@@ -71,3 +71,3 @@ } | ||
componentDidMount() { | ||
if (!_uiDomUtils.canUseDOM) { | ||
if (!_canUseDOM.canUseDOM) { | ||
return; | ||
@@ -86,3 +86,3 @@ } | ||
componentDidUpdate(prevProps) { | ||
if (!_uiDomUtils.canUseDOM) { | ||
if (!_canUseDOM.canUseDOM) { | ||
return; | ||
@@ -109,3 +109,3 @@ } | ||
componentWillUnmount() { | ||
if (!_uiDomUtils.canUseDOM) { | ||
if (!_canUseDOM.canUseDOM) { | ||
return; | ||
@@ -142,3 +142,3 @@ } | ||
const attributes = { | ||
...(0, _uiReactUtils.passthroughProps)(props), | ||
...(0, _passthroughProps.passthroughProps)(props), | ||
dir | ||
@@ -181,3 +181,3 @@ }; | ||
open = _this$props2.open; | ||
if (!_uiDomUtils.canUseDOM && open) { | ||
if (!_canUseDOM.canUseDOM && open) { | ||
return children; | ||
@@ -184,0 +184,0 @@ } |
@@ -9,4 +9,4 @@ "use strict"; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _uiPropTypes = require("@instructure/ui-prop-types"); | ||
var _uiI18n = require("@instructure/ui-i18n"); | ||
var _element = require("@instructure/ui-prop-types/lib/element.js"); | ||
var _textDirectionContextConsumer = require("@instructure/ui-i18n/lib/textDirectionContextConsumer.js"); | ||
/* | ||
@@ -44,8 +44,8 @@ * The MIT License (MIT) | ||
onClose: _propTypes.default.func, | ||
mountNode: _propTypes.default.oneOfType([_uiPropTypes.element, _propTypes.default.func]), | ||
mountNode: _propTypes.default.oneOfType([_element.element, _propTypes.default.func]), | ||
insertAt: _propTypes.default.oneOf(['bottom', 'top']), | ||
children: _propTypes.default.node, | ||
elementRef: _propTypes.default.func, | ||
dir: _propTypes.default.oneOf(Object.values(_uiI18n.textDirectionContextConsumer.DIRECTION)) | ||
dir: _propTypes.default.oneOf(Object.values(_textDirectionContextConsumer.textDirectionContextConsumer.DIRECTION)) | ||
}; | ||
const allowedProps = exports.allowedProps = ['open', 'onOpen', 'onClose', 'mountNode', 'insertAt', 'children', 'elementRef', 'dir']; |
{ | ||
"name": "@instructure/ui-portal", | ||
"version": "8.56.5-pr-snapshot-1728655013879", | ||
"version": "8.56.5-pr-snapshot-1729507712924", | ||
"description": "A UI component library made by Instructure Inc.", | ||
@@ -26,12 +26,12 @@ "author": "Instructure, Inc. Engineering and Product Design", | ||
"devDependencies": { | ||
"@instructure/ui-babel-preset": "8.56.5-pr-snapshot-1728655013879", | ||
"@instructure/ui-test-utils": "8.56.5-pr-snapshot-1728655013879" | ||
"@instructure/ui-babel-preset": "8.56.5-pr-snapshot-1729507712924", | ||
"@instructure/ui-test-utils": "8.56.5-pr-snapshot-1729507712924" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.23.2", | ||
"@instructure/shared-types": "8.56.5-pr-snapshot-1728655013879", | ||
"@instructure/ui-dom-utils": "8.56.5-pr-snapshot-1728655013879", | ||
"@instructure/ui-i18n": "8.56.5-pr-snapshot-1728655013879", | ||
"@instructure/ui-prop-types": "8.56.5-pr-snapshot-1728655013879", | ||
"@instructure/ui-react-utils": "8.56.5-pr-snapshot-1728655013879", | ||
"@instructure/shared-types": "8.56.5-pr-snapshot-1729507712924", | ||
"@instructure/ui-dom-utils": "8.56.5-pr-snapshot-1729507712924", | ||
"@instructure/ui-i18n": "8.56.5-pr-snapshot-1729507712924", | ||
"@instructure/ui-prop-types": "8.56.5-pr-snapshot-1729507712924", | ||
"@instructure/ui-react-utils": "8.56.5-pr-snapshot-1729507712924", | ||
"prop-types": "^15.8.1" | ||
@@ -38,0 +38,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178282
+ Added@instructure/console@8.56.5-pr-snapshot-1729507712924(transitive)
+ Added@instructure/shared-types@8.56.5-pr-snapshot-1729507712924(transitive)
+ Added@instructure/ui-decorator@8.56.5-pr-snapshot-1729507712924(transitive)
+ Added@instructure/ui-dom-utils@8.56.5-pr-snapshot-1729507712924(transitive)
+ Added@instructure/ui-i18n@8.56.5-pr-snapshot-1729507712924(transitive)
+ Added@instructure/ui-prop-types@8.56.5-pr-snapshot-1729507712924(transitive)
+ Added@instructure/ui-react-utils@8.56.5-pr-snapshot-1729507712924(transitive)
+ Added@instructure/ui-utils@8.56.5-pr-snapshot-1729507712924(transitive)
- Removed@instructure/console@8.56.5-pr-snapshot-1728655013879(transitive)
- Removed@instructure/shared-types@8.56.5-pr-snapshot-1728655013879(transitive)
- Removed@instructure/ui-decorator@8.56.5-pr-snapshot-1728655013879(transitive)
- Removed@instructure/ui-dom-utils@8.56.5-pr-snapshot-1728655013879(transitive)
- Removed@instructure/ui-i18n@8.56.5-pr-snapshot-1728655013879(transitive)
- Removed@instructure/ui-prop-types@8.56.5-pr-snapshot-1728655013879(transitive)
- Removed@instructure/ui-react-utils@8.56.5-pr-snapshot-1728655013879(transitive)
- Removed@instructure/ui-utils@8.56.5-pr-snapshot-1728655013879(transitive)
Updated@instructure/shared-types@8.56.5-pr-snapshot-1729507712924
Updated@instructure/ui-dom-utils@8.56.5-pr-snapshot-1729507712924
Updated@instructure/ui-i18n@8.56.5-pr-snapshot-1729507712924
Updated@instructure/ui-prop-types@8.56.5-pr-snapshot-1729507712924
Updated@instructure/ui-react-utils@8.56.5-pr-snapshot-1729507712924