Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

terra-responsive-element

Package Overview
Dependencies
Maintainers
5
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-responsive-element - npm Package Compare versions

Comparing version 5.35.0 to 5.35.1

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Changelog

## 5.35.1 - (February 24, 2022)
* Added
* Migrate docs to terra-core-docs.
## 5.35.0 - (October 8, 2021)

@@ -7,0 +12,0 @@

6

lib/ResponsiveElement.js
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

@@ -28,5 +28,5 @@ Object.defineProperty(exports, "__esModule", {

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
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 _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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
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); }

@@ -33,0 +33,0 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

{
"name": "terra-responsive-element",
"main": "lib/ResponsiveElement.js",
"version": "5.35.0",
"version": "5.35.1",
"description": "The terra-responsive-element conditionally renders components based on viewport size",

@@ -29,3 +29,3 @@ "repository": {

"dependencies": {
"@cerner/terra-docs": "^1.6.0",
"@cerner/terra-docs": "^1.7.0",
"classnames": "^2.2.5",

@@ -49,3 +49,3 @@ "prop-types": "^15.5.8",

},
"gitHead": "8d2b713658fe162dbebfb2b874fcba5ac3c001fe"
"gitHead": "dc9a5fb21ca05338e25e08b7b1ae524d1a422901"
}
Terra.describeViewports('ResponsiveElement', ['tiny', 'small', 'medium', 'large', 'huge', 'enormous'], () => {
it('should display controlled ResponsiveElement', () => {
browser.url('/raw/tests/terra-responsive-element/responsive-element/controlled');
browser.url('/raw/tests/cerner-terra-core-docs/responsive-element/controlled');

@@ -9,3 +9,3 @@ Terra.validates.element('controlled');

it('should display uncontrolled ResponsiveElement', () => {
browser.url('/raw/tests/terra-responsive-element/responsive-element/uncontrolled');
browser.url('/raw/tests/cerner-terra-core-docs/responsive-element/uncontrolled');

@@ -16,3 +16,3 @@ Terra.validates.element('uncontrolled');

it('should display ResponsiveElement with fixed size', () => {
browser.url('/raw/tests/terra-responsive-element/responsive-element/fixed-size');
browser.url('/raw/tests/cerner-terra-core-docs/responsive-element/fixed-size');

@@ -24,3 +24,3 @@ // A selector is required here because the test component overflows the viewport.

it('should display tiny and medium ResponsiveElement', () => {
browser.url('/raw/tests/terra-responsive-element/responsive-element/tiny-and-medium');
browser.url('/raw/tests/cerner-terra-core-docs/responsive-element/tiny-and-medium');

@@ -27,0 +27,0 @@ Terra.validates.element('tiny and medium');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc