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

@lrnwebcomponents/responsive-utility

Package Overview
Dependencies
Maintainers
4
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lrnwebcomponents/responsive-utility - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

6

gulpfile.js

@@ -36,6 +36,8 @@ const gulp = require("gulp");

}
let props = "{}";
props = fs.readFileSync(
let rawprops = "{}";
rawprops = fs.readFileSync(
path.join("./", packageJson.wcfactory.files.properties)
);
let props = `${rawprops}`;
props = props.replace(/\"type\": \"(\w+)\"/g, '"type": $1');
let cssResult = "<style>";

@@ -42,0 +44,0 @@ if (

@@ -14,3 +14,3 @@ {

},
"version": "2.1.0",
"version": "2.1.1",
"description": "Automated conversion of responsive-utility/",

@@ -43,4 +43,4 @@ "repository": {

"devDependencies": {
"@lrnwebcomponents/deduping-fix": "^2.0.9",
"@lrnwebcomponents/storybook-utilities": "^2.1.0",
"@lrnwebcomponents/deduping-fix": "^2.1.1",
"@lrnwebcomponents/storybook-utilities": "^2.1.1",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",

@@ -52,3 +52,3 @@ "@polymer/iron-demo-helpers": "^3.1.0",

"gulp-sourcemaps": "2.6.4",
"lodash": "4.17.11",
"lodash": "4.17.13",
"polymer-cli": "1.9.9",

@@ -65,3 +65,3 @@ "wct-browser-legacy": "1.0.2"

],
"gitHead": "38a0c3ad00e8447837037bde2dc1172273a3a311"
"gitHead": "377805ee041d6205232182b01f8e05a177ef3bf7"
}

@@ -1,2 +0,2 @@

define(["exports","./node_modules/@polymer/polymer/polymer-element.js","./node_modules/@polymer/polymer/lib/utils/render-status.js","./node_modules/@polymer/polymer/lib/utils/async.js","./node_modules/@polymer/iron-resizable-behavior/iron-resizable-behavior.js","./node_modules/@polymer/polymer/lib/legacy/class.js"],function(_exports,_polymerElement,_renderStatus,async,_ironResizableBehavior,_class){"use strict";Object.defineProperty(_exports,"__esModule",{value:!0});_exports.ResponsiveUtility=void 0;async=babelHelpers.interopRequireWildcard(async);function _templateObject_2296f32081c111e99e3a438c1a432fc2(){var data=babelHelpers.taggedTemplateLiteral(["\n <style>\n :host {\n display: inline;\n }\n </style>\n <slot></slot>\n "]);_templateObject_2296f32081c111e99e3a438c1a432fc2=function _templateObject_2296f32081c111e99e3a438c1a432fc2(){return data};return data}window.ResponsiveUtility={};window.ResponsiveUtility.instance=null;var ResponsiveUtility=/*#__PURE__*/function(_mixinBehaviors){babelHelpers.inherits(ResponsiveUtility,_mixinBehaviors);babelHelpers.createClass(ResponsiveUtility,[{key:"connectedCallback",value:function connectedCallback(){babelHelpers.get(babelHelpers.getPrototypeOf(ResponsiveUtility.prototype),"connectedCallback",this).call(this);(0,_renderStatus.afterNextRender)(this,function(){this.addEventListener("iron-resize",this._onIronResize.bind(this))})}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this2=this,root=this;this.removeEventListener("iron-resize",this._onIronResize.bind(this));window.removeEventListener("responsive-element",function(e){var detail={element:e.detail.element,attribute:e.detail.attribute!==void 0&&null!==e.detail.attribute?e.detail.attribute:"responsive-size",relativeToParent:e.detail.relativeToParent!==void 0&&null!==e.detail.relativeToParent?e.detail.relativeToParent:!0,sm:e.detail.sm!==void 0&&null!==e.detail.sm?e.detail.sm:900,md:e.detail.md!==void 0&&null!==e.detail.md?e.detail.md:1200,lg:e.detail.lg!==void 0&&null!==e.detail.lg?e.detail.lg:1500,xl:e.detail.xl!==void 0&&null!==e.detail.xl?e.detail.lg:1800};if("ResizeObserver"in window&&!0===detail.relativeToParent){var resize=new ResizeObserver(function(){window.ResponsiveUtility.setSize(detail)}),observable=e.detail.parentNode!==void 0&&null!==e.detail.parentNode?e.detail.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.detail.element.parentNode.host:e.detail.element.parentNode:e.detail.element;resize.observe(observable)}root.push("details",detail);window.ResponsiveUtility.setSize(detail)});/* handle element deregistration */window.removeEventListener("delete-responsive-element",function(e){for(var i=0;i<_this2.details.length;i++){if(e.detail===detail[i])root.splice("details",i,1)}});babelHelpers.get(babelHelpers.getPrototypeOf(ResponsiveUtility.prototype),"disconnectedCallback",this).call(this)}/**
define(["exports","./node_modules/@polymer/polymer/polymer-element.js","./node_modules/@polymer/polymer/lib/utils/render-status.js","./node_modules/@polymer/polymer/lib/utils/async.js","./node_modules/@polymer/iron-resizable-behavior/iron-resizable-behavior.js","./node_modules/@polymer/polymer/lib/legacy/class.js"],function(_exports,_polymerElement,_renderStatus,async,_ironResizableBehavior,_class){"use strict";Object.defineProperty(_exports,"__esModule",{value:!0});_exports.ResponsiveUtility=void 0;async=babelHelpers.interopRequireWildcard(async);function _templateObject_ebd18a50ab1211e9966f439021177317(){var data=babelHelpers.taggedTemplateLiteral(["\n <style>\n :host {\n display: inline;\n }\n </style>\n <slot></slot>\n "]);_templateObject_ebd18a50ab1211e9966f439021177317=function _templateObject_ebd18a50ab1211e9966f439021177317(){return data};return data}window.ResponsiveUtility={};window.ResponsiveUtility.instance=null;var ResponsiveUtility=/*#__PURE__*/function(_mixinBehaviors){babelHelpers.inherits(ResponsiveUtility,_mixinBehaviors);babelHelpers.createClass(ResponsiveUtility,[{key:"connectedCallback",value:function connectedCallback(){babelHelpers.get(babelHelpers.getPrototypeOf(ResponsiveUtility.prototype),"connectedCallback",this).call(this);(0,_renderStatus.afterNextRender)(this,function(){this.addEventListener("iron-resize",this._onIronResize.bind(this))})}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this2=this,root=this;this.removeEventListener("iron-resize",this._onIronResize.bind(this));window.removeEventListener("responsive-element",function(e){var detail={element:e.detail.element,attribute:e.detail.attribute!==void 0&&null!==e.detail.attribute?e.detail.attribute:"responsive-size",relativeToParent:e.detail.relativeToParent!==void 0&&null!==e.detail.relativeToParent?e.detail.relativeToParent:!0,sm:e.detail.sm!==void 0&&null!==e.detail.sm?e.detail.sm:900,md:e.detail.md!==void 0&&null!==e.detail.md?e.detail.md:1200,lg:e.detail.lg!==void 0&&null!==e.detail.lg?e.detail.lg:1500,xl:e.detail.xl!==void 0&&null!==e.detail.xl?e.detail.lg:1800};if("ResizeObserver"in window&&!0===detail.relativeToParent){var resize=new ResizeObserver(function(){window.ResponsiveUtility.setSize(detail)}),observable=e.detail.parentNode!==void 0&&null!==e.detail.parentNode?e.detail.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.detail.element.parentNode.host:e.detail.element.parentNode:e.detail.element;resize.observe(observable)}root.push("details",detail);window.ResponsiveUtility.setSize(detail)});/* handle element deregistration */window.removeEventListener("delete-responsive-element",function(e){for(var i=0;i<_this2.details.length;i++){if(e.detail===detail[i])root.splice("details",i,1)}});babelHelpers.get(babelHelpers.getPrototypeOf(ResponsiveUtility.prototype),"disconnectedCallback",this).call(this)}/**
* An array of objects. Each object is contains data about an element

@@ -20,3 +20,3 @@ * that will be updated with responsive values.

* Makes sure there is a utility ready and listening for elements.
*/}],[{key:"template",get:function get(){return(0,_polymerElement.html)(_templateObject_2296f32081c111e99e3a438c1a432fc2())}},{key:"tag",get:function get(){return"responsive-utility"}},{key:"properties",get:function get(){var props={/**
*/}],[{key:"template",get:function get(){return(0,_polymerElement.html)(_templateObject_ebd18a50ab1211e9966f439021177317())}},{key:"tag",get:function get(){return"responsive-utility"}},{key:"properties",get:function get(){var props={/**
* Stores

@@ -23,0 +23,0 @@ */details:{type:Array,value:[]}};if(babelHelpers.get(babelHelpers.getPrototypeOf(ResponsiveUtility),"properties",this)){props=Object.assign(props,babelHelpers.get(babelHelpers.getPrototypeOf(ResponsiveUtility),"properties",this))}return props}}]);function ResponsiveUtility(){var _this;babelHelpers.classCallCheck(this,ResponsiveUtility);_this=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(ResponsiveUtility).call(this));var root=babelHelpers.assertThisInitialized(_this);if(null==window.ResponsiveUtility.instance){window.ResponsiveUtility.instance=root}/* handle element registration */window.addEventListener("responsive-element",function(e){var detail={element:e.detail.element,attribute:e.detail.attribute!==void 0&&null!==e.detail.attribute?e.detail.attribute:"responsive-size",relativeToParent:e.detail.relativeToParent!==void 0&&null!==e.detail.relativeToParent?e.detail.relativeToParent:!0,sm:e.detail.sm!==void 0&&null!==e.detail.sm?e.detail.sm:900,md:e.detail.md!==void 0&&null!==e.detail.md?e.detail.md:1200,lg:e.detail.lg!==void 0&&null!==e.detail.lg?e.detail.lg:1500,xl:e.detail.xl!==void 0&&null!==e.detail.xl?e.detail.lg:1800};if("ResizeObserver"in window&&!0===detail.relativeToParent){var resize=new ResizeObserver(function(){window.ResponsiveUtility.setSize(detail)}),observable=e.detail.parentNode!==void 0&&null!==e.detail.parentNode?e.detail.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.detail.element.parentNode.host:e.detail.element.parentNode:e.detail.element;resize.observe(observable)}root.push("details",detail);window.ResponsiveUtility.setSize(detail)});/* handle element deregistration */window.addEventListener("delete-responsive-element",function(e){for(var i=0;i<_this.details.length;i++){if(e.detail===detail[i])root.splice("details",i,1)}});return _this}/**

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