New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lrnwebcomponents/fullscreen-behaviors

Package Overview
Dependencies
Maintainers
4
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lrnwebcomponents/fullscreen-behaviors - npm Package Compare versions

Comparing version 2.7.10 to 2.8.0

2

fullscreen-behaviors.umd.js

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("lit-element/lit-element.js"),require("@lrnwebcomponents/es-global-bridge/es-global-bridge.js")):"function"==typeof define&&define.amd?define(["exports","lit-element/lit-element.js","@lrnwebcomponents/es-global-bridge/es-global-bridge.js"],n):n((e=e||self).FullscreenBehaviors={},e.litElement_js)}(this,function(e,n){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function l(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,n,t){return n&&l(e.prototype,n),t&&l(e,t),e}function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&c(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,n){return(c=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var t,r,l,o=u(e);if(n){var i=u(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return r=this,!(l=t)||"object"!=typeof l&&"function"!=typeof l?s(r):l}}function f(e,n,t){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,n,t){var r=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=u(e)););return e}(e,n);if(r){var l=Object.getOwnPropertyDescriptor(r,n);return l.get?l.get.call(t):l.value}})(e,n,t||e)}var d=function(e){i(c,n.LitElement);var l=a(c);function c(){var e;if(r(this,c),(e=l.call(this)).__callbacks=[],e.__loaded=!1,e.__fullscreen=!1,"object"===("undefined"==typeof screenfull?"undefined":t(screenfull)))e._setLoaded();else{var n=e.pathFromUrl(decodeURIComponent("undefined"==typeof document?new(require("url").URL)("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("fullscreen-behaviors.umd.js",document.baseURI).href)),o="".concat(n,"screenfull/dist/screenfull.js");window.ESGlobalBridge.requestAvailability(),window.ESGlobalBridge.instance.load("screenfullLib",o),window.addEventListener("es-bridge-screenfullLib-loaded",e._setLoaded.bind(s(e)))}return e}return o(c,null,[{key:"tag",get:function(){return"fullscreen-behaviors-manager"}},{key:"properties",get:function(){return{__loaded:{type:Boolean},__callbacks:{type:Array},__fullscreen:{type:Boolean}}}}]),o(c,[{key:"pathFromUrl",value:function(e){return e.substring(0,e.lastIndexOf("/")+1)}},{key:"disconnectedCallback",value:function(){window.removeEventListener("es-bridge-screenfullLib-loaded",this._setLoaded.bind(this)),f(u(c.prototype),"disconnectedCallback",this).call(this)}},{key:"_setLoaded",value:function(e){this.__loaded=!0,(this.__callbacks||[]).forEach(function(e){return e()})}},{key:"enabled",get:function(){var e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return"object"===("undefined"==typeof screenfull?"undefined":t(screenfull))&&screenfull.isEnabled&&!e}},{key:"fullscreen",get:function(){return this.__fullscreen}}]),c}();function b(){var e,n,t=(e=[" <slot></slot> "],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return b=function(){return t},t}window.customElements.define(d.tag,d),window.FullscreenBehaviorsManager=window.FullscreenBehaviorsManager||{},window.FullscreenBehaviorsManager.requestAvailability=function(){return window.FullscreenBehaviorsManager.instance||(window.FullscreenBehaviorsManager.instance=document.createElement("fullscreen-behaviors-manager"),document.body.appendChild(window.FullscreenBehaviorsManager.instance)),window.FullscreenBehaviorsManager.instance};var p=function(e){return function(t){i(c,e);var l=a(c);function c(){var e;if(r(this,c),(e=l.call(this)).__fullscreen=!1,e.__fullscreenEnabled=!1,e.fullscreenManager.__loaded)e._updateEnabled();else{window.addEventListener("es-bridge-screenfullLib-loaded",function n(){e._updateEnabled(),window.removeEventListener("es-bridge-screenfullLib-loaded",n.bind(s(e)))}.bind(s(e)))}return e}return o(c,[{key:"render",value:function(){return n.html(b())}}],[{key:"properties",get:function(){return{__fullscreen:{type:Boolean,attribute:"fullscreen"},__fullscreenEnabled:{type:Boolean,attribute:"fullscreen-enabled"}}}}]),o(c,[{key:"disconnectedCallback",value:function(){screenfull.off("change",this._updateFullscreen.bind(this)),f(u(c.prototype),"disconnectedCallback",this).call(this)}},{key:"_updateFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:screenfull&&screenfull.isFullscreen;this.__fullscreen=e}},{key:"_updateEnabled",value:function(){var e=this;this.__fullscreenEnabled=this.fullscreenManager&&this.fullscreenManager.enabled,screenfull&&screenfull.isEnabled&&screenfull.on("change",function(){e._updateFullscreen()})}},{key:"toggleFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!screenfull.isFullscreen;this.fullscreenEnabled&&screenfull&&(e?screenfull.request(this.fullscreenTarget):screenfull.exit(this.fullscreenTarget),this._updateFullscreen(e))}},{key:"fullscreenManager",get:function(){return window.FullscreenBehaviorsManager.requestAvailability()}},{key:"fullscreenTarget",get:function(){return this}},{key:"fullscreenEnabled",get:function(){return this.__fullscreenEnabled}}],[{key:"tag",get:function(){return"fullscreen-behaviors"}}]),c}()},y=function(e){i(l,p(n.LitElement));var t=a(l);function l(){return r(this,l),t.apply(this,arguments)}return l}();window.customElements.define(y.tag,y),e.FullscreenBehaviors=p,e.FullscreenBehaviorsEl=y,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("lit-element/lit-element.js"),require("@lrnwebcomponents/es-global-bridge/es-global-bridge.js")):"function"==typeof define&&define.amd?define(["exports","lit-element/lit-element.js","@lrnwebcomponents/es-global-bridge/es-global-bridge.js"],n):n((e=e||self).FullscreenBehaviors={},e.litElement_js)}(this,function(e,n){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function l(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,n,t){return n&&l(e.prototype,n),t&&l(e,t),e}function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&c(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,n){return(c=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var t,r,l,o=u(e);if(n){var i=u(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return r=this,!(l=t)||"object"!=typeof l&&"function"!=typeof l?s(r):l}}function f(e,n,t){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,n,t){var r=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=u(e)););return e}(e,n);if(r){var l=Object.getOwnPropertyDescriptor(r,n);return l.get?l.get.call(t):l.value}})(e,n,t||e)}var d=function(e){i(c,n.LitElement);var l=a(c);function c(){var e;if(r(this,c),(e=l.call(this)).__callbacks=[],e.__loaded=!1,e.__fullscreen=!1,"object"===("undefined"==typeof screenfull?"undefined":t(screenfull)))e._setLoaded();else{var n=e.pathFromUrl(decodeURIComponent("undefined"==typeof document?new(require("url").URL)("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("fullscreen-behaviors.umd.js",document.baseURI).href)),o="".concat(n,"screenfull/dist/screenfull.js");window.ESGlobalBridge.requestAvailability(),window.ESGlobalBridge.instance.load("screenfullLib",o),window.addEventListener("es-bridge-screenfullLib-loaded",e._setLoaded.bind(s(e)))}return e}return o(c,null,[{key:"tag",get:function(){return"fullscreen-behaviors-manager"}},{key:"properties",get:function(){return{__loaded:{type:Boolean},__callbacks:{type:Array},__fullscreen:{type:Boolean}}}}]),o(c,[{key:"pathFromUrl",value:function(e){return e.substring(0,e.lastIndexOf("/")+1)}},{key:"disconnectedCallback",value:function(){window.removeEventListener("es-bridge-screenfullLib-loaded",this._setLoaded.bind(this)),f(u(c.prototype),"disconnectedCallback",this).call(this)}},{key:"_setLoaded",value:function(e){this.__loaded=!0,(this.__callbacks||[]).forEach(function(e){return e()})}},{key:"enabled",get:function(){var e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return"object"===("undefined"==typeof screenfull?"undefined":t(screenfull))&&screenfull.isEnabled&&!e}},{key:"fullscreen",get:function(){return this.__fullscreen}}]),c}();function b(){var e,n,t=(e=[" <slot></slot> "],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return b=function(){return t},t}window.customElements.define(d.tag,d),window.FullscreenBehaviorsManager=window.FullscreenBehaviorsManager||{},window.FullscreenBehaviorsManager.requestAvailability=function(){return window.FullscreenBehaviorsManager.instance||(window.FullscreenBehaviorsManager.instance=document.createElement("fullscreen-behaviors-manager"),document.body.appendChild(window.FullscreenBehaviorsManager.instance)),window.FullscreenBehaviorsManager.instance};var p=function(e){return function(t){i(c,e);var l=a(c);function c(){var e;if(r(this,c),(e=l.call(this)).__fullscreen=!1,e.__fullscreenEnabled=!1,e.fullscreenManager.__loaded)e._updateEnabled();else{window.addEventListener("es-bridge-screenfullLib-loaded",function n(){e._updateEnabled(),window.removeEventListener("es-bridge-screenfullLib-loaded",n.bind(s(e)))}.bind(s(e)))}return e}return o(c,[{key:"render",value:function(){return n.html(b())}}],[{key:"properties",get:function(){return{__fullscreen:{type:Boolean,attribute:"fullscreen"},__fullscreenEnabled:{type:Boolean,attribute:"fullscreen-enabled"}}}}]),o(c,[{key:"disconnectedCallback",value:function(){screenfull.off("change",this._updateFullscreen.bind(this)),f(u(c.prototype),"disconnectedCallback",this).call(this)}},{key:"_updateFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:screenfull&&screenfull.isFullscreen;this.__fullscreen=e}},{key:"_updateEnabled",value:function(){this.__fullscreenEnabled=this.fullscreenManager&&this.fullscreenManager.enabled,screenfull&&screenfull.isEnabled&&screenfull.on("change",this._updateFullscreen.bind(this))}},{key:"toggleFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!screenfull.isFullscreen;this.fullscreenEnabled&&screenfull&&(e?screenfull.request(this.fullscreenTarget):screenfull.exit(this.fullscreenTarget),this._updateFullscreen(e))}},{key:"fullscreenManager",get:function(){return window.FullscreenBehaviorsManager.requestAvailability()}},{key:"fullscreenTarget",get:function(){return this}},{key:"fullscreenEnabled",get:function(){return this.__fullscreenEnabled}}],[{key:"tag",get:function(){return"fullscreen-behaviors"}}]),c}()},y=function(e){i(l,p(n.LitElement));var t=a(l);function l(){return r(this,l),t.apply(this,arguments)}return l}();window.customElements.define(y.tag,y),e.FullscreenBehaviors=p,e.FullscreenBehaviorsEl=y,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -15,3 +15,3 @@ {

},
"version": "2.7.10",
"version": "2.8.0",
"description": "Provides state management when only one child can be selected at a time.",

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

"dependencies": {
"@lrnwebcomponents/es-global-bridge": "^2.7.10",
"@lrnwebcomponents/es-global-bridge": "^2.8.0",
"@polymer/polymer": "^3.3.1",

@@ -47,4 +47,4 @@ "lit-element": "2.4.0"

"@lrnwebcomponents/deduping-fix": "^2.7.7",
"@lrnwebcomponents/simple-modal": "^2.7.10",
"@lrnwebcomponents/storybook-utilities": "^2.7.10",
"@lrnwebcomponents/simple-modal": "^2.8.0",
"@lrnwebcomponents/storybook-utilities": "^2.8.0",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",

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

],
"gitHead": "5b8d225cec2bf64160b4f4cab0630b187fdcd2d8"
"gitHead": "3d847eff4969998e9c52c0246a81453e99749f66"
}
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