Socket
Socket
Sign inDemoInstall

@github/tab-container-element

Package Overview
Dependencies
Maintainers
14
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/tab-container-element - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

7

dist/index.esm.js

@@ -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 @@

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc