Socket
Socket
Sign inDemoInstall

@github/details-menu-element

Package Overview
Dependencies
Maintainers
14
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/details-menu-element - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

7

dist/index.esm.js

@@ -63,3 +63,4 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

details: details,
subscriptions: subscriptions
subscriptions: subscriptions,
loaded: false
});

@@ -144,2 +145,6 @@ }

if (!src) return;
var state = states.get(menu);
if (!state) return;
if (state.loaded) return;
state.loaded = true;
var loader = menu.querySelector('include-fragment');

@@ -146,0 +151,0 @@

@@ -83,3 +83,4 @@ (function (global, factory) {

details: details,
subscriptions: subscriptions
subscriptions: subscriptions,
loaded: false
});

@@ -164,2 +165,6 @@ }

if (!src) return;
var state = states.get(menu);
if (!state) return;
if (state.loaded) return;
state.loaded = true;
var loader = menu.querySelector('include-fragment');

@@ -166,0 +171,0 @@

2

package.json
{
"name": "@github/details-menu-element",
"version": "0.8.0",
"version": "0.8.1",
"description": "A menu opened with a <details> button.",

@@ -5,0 +5,0 @@ "main": "dist/index.umd.js",

@@ -20,8 +20,6 @@ # &lt;details-menu&gt; element

<summary>Robots</summary>
<details-menu>
<ul>
<li><button type="button" role="menuitem">Hubot</button></li>
<li><button type="button" role="menuitem">Bender</button></li>
<li><button type="button" role="menuitem">BB-8</button></li>
</ul>
<details-menu role="menu">
<button type="button" role="menuitem">Hubot</button>
<button type="button" role="menuitem">Bender</button>
<button type="button" role="menuitem">BB-8</button>
</details-menu>

@@ -36,8 +34,6 @@ </details>

<summary>Preferred robot: <span data-menu-button>None</span></summary>
<details-menu>
<ul>
<li><button type="button" role="menuitem" data-menu-button-text>Hubot</button></li>
<li><button type="button" role="menuitem" data-menu-button-text>Bender</button></li>
<li><button type="button" role="menuitem" data-menu-button-text>BB-8</button></li>
</ul>
<details-menu role="menu">
<button type="button" role="menuitem" data-menu-button-text>Hubot</button>
<button type="button" role="menuitem" data-menu-button-text>Bender</button>
<button type="button" role="menuitem" data-menu-button-text>BB-8</button>
</details-menu>

@@ -52,14 +48,12 @@ </details>

<summary>Preferred robot</summary>
<details-menu>
<ul>
<li><label tabindex="0" role="menuitemradio">
<input type="radio" name="robot" value="Hubot"> Hubot
</label></li>
<li><label tabindex="0" role="menuitemradio">
<input type="radio" name="robot" value="Bender"> Bender
</label></li>
<li><label tabindex="0" role="menuitemradio">
<input type="radio" name="robot" value="BB-8"> BB-8
</label></li>
</ul>
<details-menu role="menu">
<label tabindex="0" role="menuitemradio">
<input type="radio" name="robot" value="Hubot"> Hubot
</label>
<label tabindex="0" role="menuitemradio">
<input type="radio" name="robot" value="Bender"> Bender
</label>
<label tabindex="0" role="menuitemradio">
<input type="radio" name="robot" value="BB-8"> BB-8
</label>
</details-menu>

@@ -66,0 +60,0 @@ </details>

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