terra-responsive-element
Advanced tools
Comparing version 5.39.0 to 5.40.0
@@ -5,2 +5,7 @@ # Changelog | ||
## 5.40.0 - (February 15, 2024) | ||
* Changed | ||
* Minor dependency version bump. | ||
## 5.39.0 - (November 13, 2023) | ||
@@ -7,0 +12,0 @@ |
@@ -18,11 +18,11 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } | ||
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } | ||
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
var DependentViewport = exports.DependentViewport = { | ||
@@ -79,7 +79,6 @@ WINDOW: 'window', | ||
_inherits(ResponsiveElement, _React$Component); | ||
var _super = _createSuper(ResponsiveElement); | ||
function ResponsiveElement() { | ||
var _this; | ||
_classCallCheck(this, ResponsiveElement); | ||
_this = _super.call(this); | ||
_this = _callSuper(this, ResponsiveElement); | ||
_this.state = { | ||
@@ -86,0 +85,0 @@ element: null |
{ | ||
"name": "terra-responsive-element", | ||
"version": "5.39.0", | ||
"version": "5.40.0", | ||
"description": "The terra-responsive-element conditionally renders components based on viewport size", | ||
@@ -25,7 +25,7 @@ "author": "Cerner Corporation", | ||
"dependencies": { | ||
"@cerner/terra-docs": "^1.10.0", | ||
"@cerner/terra-docs": "^1.11.0", | ||
"classnames": "^2.2.5", | ||
"prop-types": "^15.5.8", | ||
"resize-observer-polyfill": "^1.4.1", | ||
"terra-breakpoints": "^2.39.0" | ||
"terra-breakpoints": "^2.40.0" | ||
}, | ||
@@ -49,3 +49,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "1be8c98fe2eeec64ef7a7fa457dd708da88e5170" | ||
"gitHead": "31ec38baf909fed741b41a204f7fa28884ab327e" | ||
} |
@@ -5,4 +5,4 @@ import React from 'react'; | ||
it('should render the component defined for tiny', () => { | ||
const responsiveElement = mount(<ResponsiveElement tiny={<div>Tiny</div>} />); | ||
const responsiveElement = enzyme.mount(<ResponsiveElement tiny={<div>Tiny</div>} />); | ||
expect(responsiveElement).toMatchSnapshot(); | ||
}); |
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
43016
399
Updated@cerner/terra-docs@^1.11.0
Updatedterra-breakpoints@^2.40.0