@semcore/spin-container
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -5,2 +5,8 @@ # Changelog | ||
## [2.1.1] - 2019-09-30 | ||
### Change | ||
- Нужные зависимости перенесены в `utils`, размер должен стать меньше | ||
## [2.1.0] - 2019-06-18 | ||
@@ -7,0 +13,0 @@ |
@@ -25,4 +25,4 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; | ||
(function cssModulesFnInject() { | ||
if (typeof window !== 'undefined') { | ||
(function cssModulesFnInject(_path) { | ||
if (_path && typeof window !== 'undefined') { | ||
var head = window.document.head; | ||
@@ -32,7 +32,7 @@ var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"); | ||
prevStyle.insertAdjacentText("beforeend", "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:-webkit-box;display:flex;width:100%;height:100%;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"; | ||
style.innerHTML = "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:-webkit-box;display:flex;width:100%;height:100%;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"; | ||
head.appendChild(style); | ||
@@ -39,0 +39,0 @@ } |
@@ -32,4 +32,4 @@ 'use strict'; | ||
(function cssModulesFnInject() { | ||
if (typeof window !== 'undefined') { | ||
(function cssModulesFnInject(_path) { | ||
if (_path && typeof window !== 'undefined') { | ||
var head = window.document.head; | ||
@@ -39,7 +39,7 @@ var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"); | ||
prevStyle.insertAdjacentText("beforeend", "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:-webkit-box;display:flex;width:100%;height:100%;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"; | ||
style.innerHTML = "._spin-container_19gqw_3{display:block}._spin-container_19gqw_3,._spin-container__content_19gqw_9{z-index:0;position:relative}._spin-container__spin_19gqw_14{z-index:1;display:-webkit-box;display:flex;width:100%;height:100%;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;position:absolute;top:0;left:0;background-color:hsla(0,0%,100%,.85)}"; | ||
head.appendChild(style); | ||
@@ -46,0 +46,0 @@ } |
@@ -25,5 +25,5 @@ import React, { PureComponent } from 'react'; | ||
}; | ||
static Overlay: any; | ||
static Overlay: typeof import("@semcore/ui").Ui; | ||
render(): JSX.Element; | ||
} | ||
export default SpinContainer; |
{ | ||
"name": "@semcore/spin-container", | ||
"description": "SEMRush SpinContainer Component", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"main": "lib/index.js", | ||
@@ -12,21 +12,10 @@ "module": "lib/index.es.js", | ||
"build": "rollup --config=node:rollup-config-ts", | ||
"test": "jest --no-cache" | ||
"test": "jest" | ||
}, | ||
"dependencies": { | ||
"@semcore/spin": "^2.0.1", | ||
"@babel/runtime": "^7.4.4", | ||
"@semcore/flex-box": "^3.1.0", | ||
"@semcore/ui": "^1.0.1", | ||
"@types/react": "^16.8.18", | ||
"classnames": "^2.2.6" | ||
"@semcore/utils": "^3.1", | ||
"@semcore/spin": "^2.0", | ||
"@semcore/flex-box": "^3.1", | ||
"@semcore/ui": "^1.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=15.0.0 || >=16.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-preset-ui": "*", | ||
"jest": "*", | ||
"jest-preset-ui": "*", | ||
"react": "^16.4.0" | ||
}, | ||
"jest": { | ||
@@ -33,0 +22,0 @@ "preset": "jest-preset-ui" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
19034
4
0
290
+ Added@semcore/utils@^3.1
- Removed@babel/runtime@^7.4.4
- Removed@types/react@^16.8.18
- Removedclassnames@^2.2.6
- Removed@types/prop-types@15.7.13(transitive)
- Removed@types/react@16.14.62(transitive)
- Removed@types/scheduler@0.16.8(transitive)
- Removedclassnames@2.5.1(transitive)
Updated@semcore/flex-box@^3.1
Updated@semcore/spin@^2.0
Updated@semcore/ui@^1.0