slate-dev-environment
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -147,3 +147,3 @@ (function (global, factory) { | ||
var FEATURE_RULES = [['inputeventslevel1', function (window) { | ||
var event = window.InputEvent ? new InputEvent('input') : {}; | ||
var event = window.InputEvent ? new window.InputEvent('input') : {}; | ||
var support = 'inputType' in event; | ||
@@ -150,0 +150,0 @@ return support; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.SlateDevEnvironment={})}(this,function(e){"use strict";var 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},n="object"===("undefined"==typeof window?"undefined":t(window))&&"object"===("undefined"==typeof document?"undefined":t(document))&&9===document.nodeType,r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,f=e[Symbol.iterator]();!(r=(a=f.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&f.return&&f.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=void 0;if(n){var i=!0,a=!1,f=void 0;try{for(var d,u=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]][Symbol.iterator]();!(i=(d=u.next()).done);i=!0){var l=r(d.value,2),s=l[0];if(l[1].test(window.navigator.userAgent)){o=s;break}}}catch(e){a=!0,f=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw f}}}var c=void 0;if(n){var y=!0,v=!1,p=void 0;try{for(var m,S=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]][Symbol.iterator]();!(y=(m=S.next()).done);y=!0){var _=r(m.value,2),b=_[0];if(_[1].test(window.navigator.userAgent)){c=b;break}}}catch(e){v=!0,p=e}finally{try{!y&&S.return&&S.return()}finally{if(v)throw p}}}var w=[["inputeventslevel1",function(e){return"inputType"in(e.InputEvent?new InputEvent("input"):{})}],["inputeventslevel2",function(e){var t=e.document.createElement("div");return t.contentEditable=!0,"onbeforeinput"in t}]],E=[];if(n){var I=!0,h=!1,x=void 0;try{for(var A,O=w[Symbol.iterator]();!(I=(A=O.next()).done);I=!0){var T=r(A.value,2),g=T[0];(0,T[1])(window)&&E.push(g)}}catch(e){h=!0,x=e}finally{try{!I&&O.return&&O.return()}finally{if(h)throw x}}}var R="chrome"===o,N="opera"===o,P="firefox"===o,$="safari"===o,j="ie"===o,D="edge"===o,M="android"===c,V="ios"===c,k="macos"===c,C="windows"===c,F=E.includes("inputeventslevel1"),L=E.includes("inputeventslevel2");e.IS_CHROME=R,e.IS_OPERA=N,e.IS_FIREFOX=P,e.IS_SAFARI=$,e.IS_IE=j,e.IS_EDGE=D,e.IS_ANDROID=M,e.IS_IOS=V,e.IS_MAC=k,e.IS_WINDOWS=C,e.HAS_INPUT_EVENTS_LEVEL_1=F,e.HAS_INPUT_EVENTS_LEVEL_2=L,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.SlateDevEnvironment={})}(this,function(e){"use strict";var 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},n="object"===("undefined"==typeof window?"undefined":t(window))&&"object"===("undefined"==typeof document?"undefined":t(document))&&9===document.nodeType,r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,f=e[Symbol.iterator]();!(r=(a=f.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&f.return&&f.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=void 0;if(n){var i=!0,a=!1,f=void 0;try{for(var d,u=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]][Symbol.iterator]();!(i=(d=u.next()).done);i=!0){var l=r(d.value,2),s=l[0];if(l[1].test(window.navigator.userAgent)){o=s;break}}}catch(e){a=!0,f=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw f}}}var c=void 0;if(n){var y=!0,v=!1,p=void 0;try{for(var m,S=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]][Symbol.iterator]();!(y=(m=S.next()).done);y=!0){var _=r(m.value,2),b=_[0];if(_[1].test(window.navigator.userAgent)){c=b;break}}}catch(e){v=!0,p=e}finally{try{!y&&S.return&&S.return()}finally{if(v)throw p}}}var w=[];if(n){var E=!0,I=!1,h=void 0;try{for(var x,A=[["inputeventslevel1",function(e){return"inputType"in(e.InputEvent?new e.InputEvent("input"):{})}],["inputeventslevel2",function(e){var t=e.document.createElement("div");return t.contentEditable=!0,"onbeforeinput"in t}]][Symbol.iterator]();!(E=(x=A.next()).done);E=!0){var O=r(x.value,2),T=O[0];(0,O[1])(window)&&w.push(T)}}catch(e){I=!0,h=e}finally{try{!E&&A.return&&A.return()}finally{if(I)throw h}}}var g="chrome"===o,R="opera"===o,N="firefox"===o,P="safari"===o,$="ie"===o,j="edge"===o,D="android"===c,M="ios"===c,V="macos"===c,k="windows"===c,C=w.includes("inputeventslevel1"),F=w.includes("inputeventslevel2");e.IS_CHROME=g,e.IS_OPERA=R,e.IS_FIREFOX=N,e.IS_SAFARI=P,e.IS_IE=$,e.IS_EDGE=j,e.IS_ANDROID=D,e.IS_IOS=M,e.IS_MAC=V,e.IS_WINDOWS=k,e.HAS_INPUT_EVENTS_LEVEL_1=C,e.HAS_INPUT_EVENTS_LEVEL_2=F,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -139,3 +139,3 @@ import isBrowser from 'is-in-browser'; | ||
var FEATURE_RULES = [['inputeventslevel1', function (window) { | ||
var event = window.InputEvent ? new InputEvent('input') : {}; | ||
var event = window.InputEvent ? new window.InputEvent('input') : {}; | ||
var support = 'inputType' in event; | ||
@@ -142,0 +142,0 @@ return support; |
@@ -145,3 +145,3 @@ 'use strict'; | ||
var FEATURE_RULES = [['inputeventslevel1', function (window) { | ||
var event = window.InputEvent ? new InputEvent('input') : {}; | ||
var event = window.InputEvent ? new window.InputEvent('input') : {}; | ||
var support = 'inputType' in event; | ||
@@ -148,0 +148,0 @@ return support; |
{ | ||
"name": "slate-dev-environment", | ||
"description": "INTERNAL: A set of environment-related constants for Slate's core.", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/ianstormtaylor/slate.git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
31623