@github/tab-container-element
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -57,3 +57,8 @@ class TabContainerElement extends HTMLElement { | ||
panel.hidden = false; | ||
panel.dispatchEvent(new CustomEvent('tabcontainer:tabchange')); | ||
this.dispatchEvent(new CustomEvent('tab-container-change', { | ||
bubbles: true, | ||
detail: { | ||
relatedTarget: panel | ||
} | ||
})); | ||
} | ||
@@ -60,0 +65,0 @@ |
@@ -72,3 +72,8 @@ (function (global, factory) { | ||
panel.hidden = false; | ||
panel.dispatchEvent(new CustomEvent('tabcontainer:tabchange')); | ||
this.dispatchEvent(new CustomEvent('tab-container-change', { | ||
bubbles: true, | ||
detail: { | ||
relatedTarget: panel | ||
} | ||
})); | ||
} | ||
@@ -75,0 +80,0 @@ |
{ | ||
"name": "@github/tab-container-element", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Tab container element", | ||
@@ -8,3 +8,3 @@ "main": "dist/index.umd.js", | ||
"license": "MIT", | ||
"repository": "github/tab-container-boilerplate", | ||
"repository": "github/tab-container-element", | ||
"files": [ | ||
@@ -11,0 +11,0 @@ "dist" |
@@ -36,2 +36,6 @@ # <tab-container> element | ||
### Events | ||
- `tab-container-change` (bubbles): fired on `<tab-container>` after a new tab is selected and visibility is updated. `event.detail.relatedTarget` is the newly visible tab panel. | ||
## Browser support | ||
@@ -38,0 +42,0 @@ |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the 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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
8739
141
62