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.92 to 0.0.94

4

CHANGELOG.md
# Changelog
## v0.0.94
[compare changes](https://github.com/mindbe/mindbeui/compare/v0.0.93...v0.0.94)
## v0.0.92

@@ -5,0 +9,0 @@

2

dist/mindbeui.js

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

(function(c){typeof define=="function"&&define.amd?define(c):c()})(function(){"use strict";console.log("Mindbe UI");function c(){const e=document.querySelectorAll("[tooltip]");for(const t of e)t.onmouseenter=({target:o})=>{const{top:n,left:u}=document.body.getBoundingClientRect(),{top:f,left:r}=t.getBoundingClientRect(),i=document.createElement("div");i.innerHTML=o.getAttribute("tooltip"),i.classList.add("tooltip"),document.body.append(i);const g=r-u;i.style.setProperty("left",`${g}px`);const m=i.offsetHeight,l=f-n-m-5;i.style.setProperty("top",`${l}px`)},t.onmouseleave=()=>{document.querySelector("div.tooltip").remove()}}function p(){const e=document.querySelectorAll(".accordion .item");for(const t of e)t.onclick=()=>{if(!t)return;const o=t.parentElement.querySelectorAll(".item");for(const n of o)n!==t&&n.removeAttribute("open")}}function a(){const e=document.querySelectorAll("*[dropdown-trigger]");for(const t of e){const o=document.querySelector(`.dropdown[dropdown="${t.getAttribute("dropdown-trigger")}"]`);w({trigger:t,dropdown:o})}}function w({trigger:e,dropdown:t}){e.onclick=()=>{D({dropdown:t}),E({dropdown:t}),s({trigger:e,dropdown:t}),window.onresize=()=>{s({trigger:e,dropdown:t})},document.onscroll=()=>{s({trigger:e,dropdown:t})},x({trigger:e,dropdown:t}),L({trigger:e,dropdown:t})}}function D({dropdown:e}){const t=document.querySelectorAll("*[dropdown]");for(const o of t)e!==o&&d({dropdown:o})}function E({dropdown:e}){e.classList.toggle("visible"),e.classList.contains("visible")||y()}function L({trigger:e,dropdown:t}){document.onclick=o=>{!e.contains(o.target)&&!t.contains(o.target)&&d({dropdown:t})}}function x({trigger:e,dropdown:t}){const o=t.querySelectorAll(".item");for(const n of o)n.onclick=()=>{if(t.hasAttribute("static")){setTimeout(()=>{s({trigger:e,dropdown:t})},0);return}d({dropdown:t})}}function s({trigger:e,dropdown:t}){const{top:o,bottom:n,left:u,right:f}=e.getBoundingClientRect(),{width:r,height:i}=t.getBoundingClientRect(),{width:g,height:m,top:l,left:h}=document.body.getBoundingClientRect(),b=f-h,q=u-h,v=n-l,C=o-l,T=b+r>g,A=v+i>m;A||t.style.setProperty("top",`${v}px`),A&&t.style.setProperty("top",`${C-i}px`),T||t.style.setProperty("left",`${q}px`),T&&t.style.setProperty("left",`${b-r}px`)}function d({dropdown:e}){e.classList.remove("visible"),y()}function y(){window.onresize=()=>{},document.onscroll=()=>{}}(function(){window&&document&&(document.addEventListener("DOMContentLoaded",()=>{c(),p(),a()}),document.addEventListener("click",()=>{c(),p(),a()}))})();const S=""});
(function(r){typeof define=="function"&&define.amd?define(r):r()})(function(){"use strict";const a={name:"@contactstudio/mindbeui",displayName:"Mindbe UI",version:"0.0.93",type:"module",main:"dist/mindbeui.js",scripts:{dev:"vite",build:"vite build",preview:"vite preview",release:"npm run build && changelogen --release && npm publish && git push --follow-tags"},devDependencies:{sass:"^1.58.0",vite:"^4.1.0",changelogen:"^0.5.3"}};console.log(`🎨 ${a.displayName} - ${a.version}`);function w(){const t=document.querySelectorAll("[tooltip]");for(const e of t)e.onmouseenter=({target:o})=>{const{top:n,left:u}=document.body.getBoundingClientRect(),{top:f,left:c}=e.getBoundingClientRect(),i=document.createElement("div");i.innerHTML=o.getAttribute("tooltip"),i.classList.add("tooltip"),document.body.append(i);const m=c-u;i.style.setProperty("left",`${m}px`);const p=i.offsetHeight,l=f-n-p-5;i.style.setProperty("top",`${l}px`)},e.onmouseleave=()=>{document.querySelector("div.tooltip").remove()}}function A(){const t=document.querySelectorAll(".accordion .item");for(const e of t)e.onclick=()=>{if(!e)return;const o=e.parentElement.querySelectorAll(".item");for(const n of o)n!==e&&n.removeAttribute("open")}}function D(){const t=document.querySelectorAll("*[dropdown-trigger]");for(const e of t){const o=document.querySelector(`.dropdown[dropdown="${e.getAttribute("dropdown-trigger")}"]`);E({trigger:e,dropdown:o})}}function E({trigger:t,dropdown:e}){t.onclick=()=>{x({dropdown:e}),L({dropdown:e}),s({trigger:t,dropdown:e}),window.onresize=()=>{s({trigger:t,dropdown:e})},document.onscroll=()=>{s({trigger:t,dropdown:e})},q({trigger:t,dropdown:e}),$({trigger:t,dropdown:e})}}function x({dropdown:t}){const e=document.querySelectorAll("*[dropdown]");for(const o of e)t!==o&&d({dropdown:o})}function L({dropdown:t}){t.classList.toggle("visible"),t.classList.contains("visible")||g()}function $({trigger:t,dropdown:e}){document.onclick=o=>{!t.contains(o.target)&&!e.contains(o.target)&&d({dropdown:e})}}function q({trigger:t,dropdown:e}){const o=e.querySelectorAll(".item");for(const n of o)n.onclick=()=>{if(e.hasAttribute("static")){setTimeout(()=>{s({trigger:t,dropdown:e})},0);return}d({dropdown:e})}}function s({trigger:t,dropdown:e}){const{top:o,bottom:n,left:u,right:f}=t.getBoundingClientRect(),{width:c,height:i}=e.getBoundingClientRect(),{width:m,height:p,top:l,left:y}=document.body.getBoundingClientRect(),v=f-y,S=u-y,b=n-l,k=o-l,h=v+c>m,T=b+i>p;T||e.style.setProperty("top",`${b}px`),T&&e.style.setProperty("top",`${k-i}px`),h||e.style.setProperty("left",`${S}px`),h&&e.style.setProperty("left",`${v-c}px`)}function d({dropdown:t}){t.classList.remove("visible"),g()}function g(){window.onresize=()=>{},document.onscroll=()=>{}}(function(){if(window&&document){let e=!1;const o=()=>e=!0,n=()=>e=!1;document.body.addEventListener("mousemove",()=>{e||(o(),setTimeout(n,2e3),w(),A(),D())})}})();const W=""});
{
"name": "@contactstudio/mindbeui",
"displayName": "Mindbe UI",
"version": "0.0.92",
"version": "0.0.94",
"type": "module",

@@ -11,3 +11,3 @@ "main": "dist/mindbeui.js",

"preview": "vite preview",
"release": "changelogen --release && npm publish && git push --follow-tags"
"release": "npm run build && changelogen --release && npm publish && git push --follow-tags"
},

@@ -14,0 +14,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

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