@spectrum-web-components/toast
Advanced tools
Comparing version 0.3.5-alpha.6 to 0.3.5-alpha.38
@@ -21,20 +21,27 @@ { | ||
], | ||
"version": "0.3.5-alpha.6+07ae41d1", | ||
"version": "0.3.5-alpha.38+3926abb2", | ||
"description": "", | ||
"main": "lib/index.js", | ||
"module": "lib/index.js", | ||
"main": "src/index.js", | ||
"module": "src/index.js", | ||
"type": "module", | ||
"exports": { | ||
"./src/": "./src/", | ||
"./custom-elements.json": "./custom-elements.json", | ||
"./package.json": "./package.json", | ||
"./sp-toast": "./sp-toast.js", | ||
"./sp-toast.js": "./sp-toast.js" | ||
}, | ||
"files": [ | ||
"/lib/", | ||
"custom-elements.json", | ||
"*.d.ts", | ||
"*.js", | ||
"*.js.map", | ||
"/src/" | ||
], | ||
"sideEffects": [ | ||
"./lib/index.js", | ||
"./src/index.ts" | ||
"./sp-toast.js", | ||
"./sp-toast.ts" | ||
], | ||
"author": "", | ||
"license": "Apache-2.0", | ||
"peerDependencies": { | ||
"lit-element": "^2.1.0", | ||
"lit-html": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -44,8 +51,10 @@ "@spectrum-css/toast": "^2.0.2" | ||
"dependencies": { | ||
"@spectrum-web-components/button": "^0.7.1-alpha.6+07ae41d1", | ||
"@spectrum-web-components/icon": "^0.4.8", | ||
"@spectrum-web-components/icons-ui": "^0.1.2", | ||
"@spectrum-web-components/button": "^0.7.1-alpha.38+3926abb2", | ||
"@spectrum-web-components/icon": "^0.4.9-alpha.38+3926abb2", | ||
"@spectrum-web-components/icons-ui": "^0.1.3-alpha.38+3926abb2", | ||
"lit-element": "^2.1.0", | ||
"lit-html": "^1.0.0", | ||
"tslib": "^2.0.0" | ||
}, | ||
"gitHead": "07ae41d1915488ddd523d0a83731664d2136dc40" | ||
"gitHead": "3926abb2769a9bab28762bf3b3e1fab7c5f03589" | ||
} |
@@ -5,3 +5,3 @@ ## Description | ||
### Installation | ||
### Usage | ||
@@ -12,9 +12,17 @@ [![See it on NPM!](https://img.shields.io/npm/v/@spectrum-web-components/toast?style=for-the-badge)](https://www.npmjs.com/package/@spectrum-web-components/toast) | ||
``` | ||
npm install @spectrum-web-components/toast | ||
yarn add @spectrum-web-components/toast | ||
``` | ||
# or | ||
Import the side effectful registration of `<sp-toast>` via: | ||
yarn add @spectrum-web-components/toast | ||
``` | ||
import '@spectrum-web-components/toast/sp-toast.js'; | ||
``` | ||
When looking to leverage the `Toast` base class as a type and/or for extension purposes, do so via: | ||
``` | ||
import { Toast } from '@spectrum-web-components/toast'; | ||
``` | ||
## Example | ||
@@ -21,0 +29,0 @@ |
@@ -12,15 +12,2 @@ /* | ||
*/ | ||
export * from './toast.js'; | ||
import { Toast } from './toast.js'; | ||
/* istanbul ignore else */ | ||
if (!customElements.get('sp-toast')) { | ||
customElements.define('sp-toast', Toast); | ||
} | ||
declare global { | ||
interface HTMLElementTagNameMap { | ||
'sp-toast': Toast; | ||
} | ||
} | ||
export * from './Toast.js'; |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 4 instances 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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 3 instances in 1 package
87827
28
83
Yes
4
891
2
+ Addedlit-element@^2.1.0
+ Addedlit-html@^1.0.0
- Removed@spectrum-web-components/icon@0.4.8(transitive)
- Removed@spectrum-web-components/icons-ui@0.1.2(transitive)
- Removed@spectrum-web-components/iconset@0.1.11(transitive)
Updated@spectrum-web-components/button@^0.7.1-alpha.38+3926abb2
Updated@spectrum-web-components/icon@^0.4.9-alpha.38+3926abb2
Updated@spectrum-web-components/icons-ui@^0.1.3-alpha.38+3926abb2