@material/animation
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -6,4 +6,4 @@ # Change Log | ||
# [3.0.0](https://github.com/material-components/material-components-web/compare/v2.3.1...v3.0.0) (2019-06-25) | ||
# [3.1.0](https://github.com/material-components/material-components-web/compare/v3.0.0...v3.1.0) (2019-07-22) | ||
**Note:** Version bump only for package @material/animation |
@@ -9,136 +9,253 @@ /** | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if (typeof exports === "object" && typeof module === "object") module.exports = factory(); else if (typeof define === "function" && define.amd) define([], factory); else if (typeof exports === "object") exports["animation"] = factory(); else root["mdc"] = root["mdc"] || {}, | ||
root["mdc"]["animation"] = factory(); | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
else if(typeof exports === 'object') | ||
exports["animation"] = factory(); | ||
else | ||
root["mdc"] = root["mdc"] || {}, root["mdc"]["animation"] = factory(); | ||
})(this, function() { | ||
return function(modules) { | ||
var installedModules = {}; | ||
function __webpack_require__(moduleId) { | ||
if (installedModules[moduleId]) { | ||
return installedModules[moduleId].exports; | ||
} | ||
var module = installedModules[moduleId] = { | ||
i: moduleId, | ||
l: false, | ||
exports: {} | ||
}; | ||
modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | ||
module.l = true; | ||
return module.exports; | ||
} | ||
__webpack_require__.m = modules; | ||
__webpack_require__.c = installedModules; | ||
__webpack_require__.d = function(exports, name, getter) { | ||
if (!__webpack_require__.o(exports, name)) { | ||
Object.defineProperty(exports, name, { | ||
configurable: false, | ||
enumerable: true, | ||
get: getter | ||
}); | ||
} | ||
}; | ||
__webpack_require__.n = function(module) { | ||
var getter = module && module.__esModule ? function getDefault() { | ||
return module["default"]; | ||
} : function getModuleExports() { | ||
return module; | ||
}; | ||
__webpack_require__.d(getter, "a", getter); | ||
return getter; | ||
}; | ||
__webpack_require__.o = function(object, property) { | ||
return Object.prototype.hasOwnProperty.call(object, property); | ||
}; | ||
__webpack_require__.p = ""; | ||
return __webpack_require__(__webpack_require__.s = 102); | ||
}({ | ||
102: function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) { | ||
if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
} | ||
var __importStar = this && this.__importStar || function(mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) { | ||
if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
} | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var util = __importStar(__webpack_require__(15)); | ||
exports.util = util; | ||
__export(__webpack_require__(15)); | ||
}, | ||
15: function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var cssPropertyNameMap = { | ||
animation: { | ||
prefixed: "-webkit-animation", | ||
standard: "animation" | ||
}, | ||
transform: { | ||
prefixed: "-webkit-transform", | ||
standard: "transform" | ||
}, | ||
transition: { | ||
prefixed: "-webkit-transition", | ||
standard: "transition" | ||
} | ||
}; | ||
var jsEventTypeMap = { | ||
animationend: { | ||
cssProperty: "animation", | ||
prefixed: "webkitAnimationEnd", | ||
standard: "animationend" | ||
}, | ||
animationiteration: { | ||
cssProperty: "animation", | ||
prefixed: "webkitAnimationIteration", | ||
standard: "animationiteration" | ||
}, | ||
animationstart: { | ||
cssProperty: "animation", | ||
prefixed: "webkitAnimationStart", | ||
standard: "animationstart" | ||
}, | ||
transitionend: { | ||
cssProperty: "transition", | ||
prefixed: "webkitTransitionEnd", | ||
standard: "transitionend" | ||
} | ||
}; | ||
function isWindow(windowObj) { | ||
return Boolean(windowObj.document) && typeof windowObj.document.createElement === "function"; | ||
} | ||
function getCorrectPropertyName(windowObj, cssProperty) { | ||
if (isWindow(windowObj) && cssProperty in cssPropertyNameMap) { | ||
var el = windowObj.document.createElement("div"); | ||
var _a = cssPropertyNameMap[cssProperty], standard = _a.standard, prefixed = _a.prefixed; | ||
var isStandard = standard in el.style; | ||
return isStandard ? standard : prefixed; | ||
} | ||
return cssProperty; | ||
} | ||
exports.getCorrectPropertyName = getCorrectPropertyName; | ||
function getCorrectEventName(windowObj, eventType) { | ||
if (isWindow(windowObj) && eventType in jsEventTypeMap) { | ||
var el = windowObj.document.createElement("div"); | ||
var _a = jsEventTypeMap[eventType], standard = _a.standard, prefixed = _a.prefixed, cssProperty = _a.cssProperty; | ||
var isStandard = cssProperty in el.style; | ||
return isStandard ? standard : prefixed; | ||
} | ||
return eventType; | ||
} | ||
exports.getCorrectEventName = getCorrectEventName; | ||
} | ||
}); | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
/******/ var installedModules = {}; | ||
/******/ | ||
/******/ // The require function | ||
/******/ function __webpack_require__(moduleId) { | ||
/******/ | ||
/******/ // Check if module is in cache | ||
/******/ if(installedModules[moduleId]) { | ||
/******/ return installedModules[moduleId].exports; | ||
/******/ } | ||
/******/ // Create a new module (and put it into the cache) | ||
/******/ var module = installedModules[moduleId] = { | ||
/******/ i: moduleId, | ||
/******/ l: false, | ||
/******/ exports: {} | ||
/******/ }; | ||
/******/ | ||
/******/ // Execute the module function | ||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | ||
/******/ | ||
/******/ // Flag the module as loaded | ||
/******/ module.l = true; | ||
/******/ | ||
/******/ // Return the exports of the module | ||
/******/ return module.exports; | ||
/******/ } | ||
/******/ | ||
/******/ | ||
/******/ // expose the modules object (__webpack_modules__) | ||
/******/ __webpack_require__.m = modules; | ||
/******/ | ||
/******/ // expose the module cache | ||
/******/ __webpack_require__.c = installedModules; | ||
/******/ | ||
/******/ // define getter function for harmony exports | ||
/******/ __webpack_require__.d = function(exports, name, getter) { | ||
/******/ if(!__webpack_require__.o(exports, name)) { | ||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | ||
/******/ } | ||
/******/ }; | ||
/******/ | ||
/******/ // define __esModule on exports | ||
/******/ __webpack_require__.r = function(exports) { | ||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | ||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
/******/ } | ||
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/******/ }; | ||
/******/ | ||
/******/ // create a fake namespace object | ||
/******/ // mode & 1: value is a module id, require it | ||
/******/ // mode & 2: merge all properties of value into the ns | ||
/******/ // mode & 4: return value when already ns object | ||
/******/ // mode & 8|1: behave like require | ||
/******/ __webpack_require__.t = function(value, mode) { | ||
/******/ if(mode & 1) value = __webpack_require__(value); | ||
/******/ if(mode & 8) return value; | ||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | ||
/******/ var ns = Object.create(null); | ||
/******/ __webpack_require__.r(ns); | ||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | ||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | ||
/******/ return ns; | ||
/******/ }; | ||
/******/ | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
/******/ __webpack_require__.n = function(module) { | ||
/******/ var getter = module && module.__esModule ? | ||
/******/ function getDefault() { return module['default']; } : | ||
/******/ function getModuleExports() { return module; }; | ||
/******/ __webpack_require__.d(getter, 'a', getter); | ||
/******/ return getter; | ||
/******/ }; | ||
/******/ | ||
/******/ // Object.prototype.hasOwnProperty.call | ||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; | ||
/******/ | ||
/******/ // __webpack_public_path__ | ||
/******/ __webpack_require__.p = ""; | ||
/******/ | ||
/******/ | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = "./packages/mdc-animation/index.ts"); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ({ | ||
/***/ "./packages/mdc-animation/index.ts": | ||
/*!*****************************************!*\ | ||
!*** ./packages/mdc-animation/index.ts ***! | ||
\*****************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
/** | ||
* @license | ||
* Copyright 2019 Google Inc. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
function __export(m) { | ||
for (var p in m) { | ||
if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
} | ||
var __importStar = this && this.__importStar || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) { | ||
if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
}result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var util = __importStar(__webpack_require__(/*! ./util */ "./packages/mdc-animation/util.ts")); | ||
exports.util = util; | ||
__export(__webpack_require__(/*! ./util */ "./packages/mdc-animation/util.ts")); // Old namespace for backward compatibility | ||
/***/ }), | ||
/***/ "./packages/mdc-animation/util.ts": | ||
/*!****************************************!*\ | ||
!*** ./packages/mdc-animation/util.ts ***! | ||
\****************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
/** | ||
* @license | ||
* Copyright 2016 Google Inc. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var cssPropertyNameMap = { | ||
animation: { | ||
prefixed: '-webkit-animation', | ||
standard: 'animation' | ||
}, | ||
transform: { | ||
prefixed: '-webkit-transform', | ||
standard: 'transform' | ||
}, | ||
transition: { | ||
prefixed: '-webkit-transition', | ||
standard: 'transition' | ||
} | ||
}; | ||
var jsEventTypeMap = { | ||
animationend: { | ||
cssProperty: 'animation', | ||
prefixed: 'webkitAnimationEnd', | ||
standard: 'animationend' | ||
}, | ||
animationiteration: { | ||
cssProperty: 'animation', | ||
prefixed: 'webkitAnimationIteration', | ||
standard: 'animationiteration' | ||
}, | ||
animationstart: { | ||
cssProperty: 'animation', | ||
prefixed: 'webkitAnimationStart', | ||
standard: 'animationstart' | ||
}, | ||
transitionend: { | ||
cssProperty: 'transition', | ||
prefixed: 'webkitTransitionEnd', | ||
standard: 'transitionend' | ||
} | ||
}; | ||
function isWindow(windowObj) { | ||
return Boolean(windowObj.document) && typeof windowObj.document.createElement === 'function'; | ||
} | ||
function getCorrectPropertyName(windowObj, cssProperty) { | ||
if (isWindow(windowObj) && cssProperty in cssPropertyNameMap) { | ||
var el = windowObj.document.createElement('div'); | ||
var _a = cssPropertyNameMap[cssProperty], | ||
standard = _a.standard, | ||
prefixed = _a.prefixed; | ||
var isStandard = standard in el.style; | ||
return isStandard ? standard : prefixed; | ||
} | ||
return cssProperty; | ||
} | ||
exports.getCorrectPropertyName = getCorrectPropertyName; | ||
function getCorrectEventName(windowObj, eventType) { | ||
if (isWindow(windowObj) && eventType in jsEventTypeMap) { | ||
var el = windowObj.document.createElement('div'); | ||
var _a = jsEventTypeMap[eventType], | ||
standard = _a.standard, | ||
prefixed = _a.prefixed, | ||
cssProperty = _a.cssProperty; | ||
var isStandard = cssProperty in el.style; | ||
return isStandard ? standard : prefixed; | ||
} | ||
return eventType; | ||
} | ||
exports.getCorrectEventName = getCorrectEventName; | ||
/***/ }) | ||
/******/ }); | ||
}); | ||
//# sourceMappingURL=mdc.animation.js.map |
@@ -1,9 +0,1 @@ | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE | ||
*/ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.animation=n():(t.mdc=t.mdc||{},t.mdc.animation=n())}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=102)}({102:function(t,n,e){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(15));n.util=i,function(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}(e(15))},15:function(t,n,e){"use strict";function r(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}function i(t,n){if(r(t)&&n in a){var e=t.document.createElement("div"),i=a[n],o=i.standard,d=i.prefixed;return o in e.style?o:d}return n}function o(t,n){if(r(t)&&n in d){var e=t.document.createElement("div"),i=d[n],o=i.standard,a=i.prefixed;return i.cssProperty in e.style?o:a}return n}Object.defineProperty(n,"__esModule",{value:!0});var a={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},d={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};n.getCorrectPropertyName=i,n.getCorrectEventName=o}})}); | ||
//# sourceMappingURL=mdc.animation.min.js.map | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.animation=e():(t.mdc=t.mdc||{},t.mdc.animation=e())}(this,function(){return r={},i.m=n={105:function(t,n,e){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(12));n.util=i,function(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}(e(12))},12:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},d={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function u(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(u(t)&&e in a){var n=t.document.createElement("div"),r=a[e],i=r.standard,o=r.prefixed;return i in n.style?i:o}return e},e.getCorrectEventName=function(t,e){if(u(t)&&e in d){var n=t.document.createElement("div"),r=d[e],i=r.standard,o=r.prefixed;return r.cssProperty in n.style?i:o}return e}}},i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=105);function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,r}); |
{ | ||
"name": "@material/animation", | ||
"description": "Animation Variables and Mixins used by Material Components for the web", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"license": "MIT", | ||
@@ -17,3 +17,4 @@ "keywords": [ | ||
"type": "git", | ||
"url": "https://github.com/material-components/material-components-web.git" | ||
"url": "https://github.com/material-components/material-components-web.git", | ||
"directory": "packages/mdc-animation" | ||
}, | ||
@@ -23,3 +24,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "747f6ed544e3a3bb3fde71ceaa51359f2212bfb9" | ||
"gitHead": "6b7e616da1a1ca53df2253f6207642739e13b5dc" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
565
48698
19