react-skeleton-blocks
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "react-skeleton-blocks", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "React Skeleton UI components for loading elements", | ||
@@ -8,4 +8,5 @@ "author": "stefandunn", | ||
"repository": "stefandunn/skeleton-ui", | ||
"main": "dist/index.js", | ||
"module": "dist/index.modern.js", | ||
"main": "dist/react-skeleton-blocks.js", | ||
"module": "dist/react-skeleton-blocks.modern.js", | ||
"browser": "dist/react-skeleton-blocks.umd.js", | ||
"source": "src/index.js", | ||
@@ -16,3 +17,3 @@ "engines": { | ||
"scripts": { | ||
"build": "microbundle-crl --no-compress --format modern,cjs --jsxFragment React.Fragment", | ||
"build": "microbundle-crl --compress --format modern,cjs,umd --jsxFragment React.Fragment --css-modules true --globals react=React --name ReactSkeletonBlocks", | ||
"start": "microbundle-crl watch --no-compress --format modern,cjs --jsxFragment React.Fragment", | ||
@@ -36,18 +37,19 @@ "prepare": "run-s build", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.7.0", | ||
"eslint-config-prettier": "^6.14.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-config-standard-react": "^9.2.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-react": "^7.17.0", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"eslint-plugin-react": "^7.21.5", | ||
"eslint-plugin-standard": "^4.0.2", | ||
"gh-pages": "^2.2.0", | ||
"microbundle-crl": "^0.13.10", | ||
"microbundle-crl": "^0.13.11", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.0.4", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"react-scripts": "^3.4.1" | ||
"prettier": "^2.1.2", | ||
"react": "^16.14.0", | ||
"react-dom": "^16.14.0", | ||
"react-scripts": "^4.0.0", | ||
"babel-jest": "^24.9.0" | ||
}, | ||
@@ -59,3 +61,6 @@ "files": [ | ||
"extends": "react-app" | ||
}, | ||
"dependencies": { | ||
"fsevents": "^2.1.3" | ||
} | ||
} |
@@ -234,4 +234,31 @@ # react-skeleton-blocks | ||
## UMD Distribution Usage | ||
All blocks are distributed under the ReactSkeletonBlocks scope attached to the browser's window. | ||
### Package | ||
You can point to the react-skeleton-blocks.umd.js file within a `<script>` tag: | ||
``` | ||
<script src"./dist/react-skeleton-blocks.umd.js"></script> | ||
``` | ||
### Using Blocks | ||
Very similar to the above samples, but you will need to specify the scope, `ReactSkeletonBlocks`, so for example: | ||
```javascript | ||
ReactDOM.render( | ||
<ReactSkeletonBlocks.SkeletonAvatar | ||
radius='80' | ||
src='https://source.unsplash.com/random/100x100' | ||
alt='Preloaded from Unsplash' | ||
/>, | ||
document.getElementById('root') | ||
) | ||
``` | ||
## License | ||
MIT © [stefandunn](https://github.com/stefandunn) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
88102
8
264
2
21
89
3
1
+ Addedfsevents@^2.1.3
+ Addedfsevents@2.3.3(transitive)