Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contactstudio/mindbeui

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contactstudio/mindbeui - npm Package Compare versions

Comparing version 0.0.43 to 0.0.44

2

dist/mindbeui.js

@@ -1,1 +0,1 @@

(function(i){typeof define=="function"&&define.amd?define(i):i()})(function(){"use strict";console.log("Mindbe UI"),function(){window&&document&&(document.addEventListener("DOMContentLoaded",()=>{i(),c()}),document.addEventListener("click",()=>{i(),c()}))}();async function i(){const e=document.querySelectorAll(".accordion .item");for(const t of e)t.onclick=()=>{const o=t.parentElement.querySelectorAll(".item:not([disabled])");for(const n of o)n!==t&&n.removeAttribute("open")}}function c(){const e=document.querySelectorAll("*[dropdown-trigger]");for(const t of e){const o=document.querySelector(`.dropdown[dropdown="${t.getAttribute("dropdown-trigger")}"]`);r({trigger:t,dropdown:o})}}function r({trigger:e,dropdown:t}){e.onclick=()=>{d(),l({dropdown:t}),console.log("trigger click"),f({trigger:e,dropdown:t}),u({trigger:e,dropdown:t})}}function l({dropdown:e}){if(e.classList.contains("visible")){e.classList.remove("visible");return}e.classList.add("visible")}function u({trigger:e,dropdown:t}){document.onclick=o=>{!e.contains(o.target)&&!t.contains(o.target)&&t.classList.remove("visible")}}function d(){const e=document.querySelectorAll("*[dropdown]");for(const t of e)t.classList.remove("visible")}function f({trigger:e,dropdown:t}){const{top:o,left:n,right:p,height:a}=e.getBoundingClientRect(),{width:g,height:y}=t.getBoundingClientRect(),m=Math.abs(document.body.getBoundingClientRect().top),s=o+m;if(t.hasAttribute("dropend")){t.style.setProperty("top",`${s}px`),t.style.setProperty("left",`${p}px`);return}if(t.hasAttribute("dropstart")){t.style.setProperty("top",`${s}px`),t.style.setProperty("left",`${n-g}px`);return}if(t.hasAttribute("dropup")){t.style.setProperty("top",`${s-y}px`),t.style.setProperty("left",`${n}px`);return}t.style.setProperty("top",`${s+a}px`),t.style.setProperty("left",`${n}px`)}const b=""});
(function(n){typeof define=="function"&&define.amd?define(n):n()})(function(){"use strict";console.log("Mindbe UI"),function(){window&&document&&(document.addEventListener("DOMContentLoaded",()=>{n(),s()}),document.addEventListener("click",()=>{n(),s()}))}();async function n(){const e=document.querySelectorAll(".accordion .item");for(const t of e)t.onclick=()=>{const i=t.parentElement.querySelectorAll(".item:not([disabled])");for(const o of i)o!==t&&o.removeAttribute("open")}}function s(){const e=document.querySelectorAll("*[dropdown-trigger]");for(const t of e){const i=document.querySelector(`.dropdown[dropdown="${t.getAttribute("dropdown-trigger")}"]`);c({trigger:t,dropdown:i})}}function c({trigger:e,dropdown:t}){e.onclick=()=>{u(),l({dropdown:t}),console.log("trigger click"),d({trigger:e,dropdown:t})}}function l({dropdown:e}){if(e.classList.contains("visible")){e.classList.remove("visible");return}e.classList.add("visible")}function u(){const e=document.querySelectorAll("*[dropdown]");for(const t of e)t.classList.remove("visible")}function d({trigger:e,dropdown:t}){const{top:i,left:o,right:f,height:p}=e.getBoundingClientRect(),{width:g,height:y}=t.getBoundingClientRect(),a=Math.abs(document.body.getBoundingClientRect().top),r=i+a;if(t.hasAttribute("dropend")){t.style.setProperty("top",`${r}px`),t.style.setProperty("left",`${f}px`);return}if(t.hasAttribute("dropstart")){t.style.setProperty("top",`${r}px`),t.style.setProperty("left",`${o-g}px`);return}if(t.hasAttribute("dropup")){t.style.setProperty("top",`${r-y}px`),t.style.setProperty("left",`${o}px`);return}t.style.setProperty("top",`${r+p}px`),t.style.setProperty("left",`${o}px`)}const m=""});
{
"name": "@contactstudio/mindbeui",
"version": "0.0.43",
"version": "0.0.44",
"type": "module",

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

@@ -54,3 +54,3 @@ console.log("Mindbe UI");

// addHideEventDropdownItems({ dropdown });
addHideEventDropdown({ trigger, dropdown });
// addHideEventDropdown({ trigger, dropdown });
};

@@ -57,0 +57,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