@contactstudio/mindbeui
Advanced tools
Comparing version 0.0.98 to 0.0.99
# Changelog | ||
## vv0.0.98 | ||
## vv0.0.99 | ||
[compare changes](https://github.com/mindbe/mindbeui/compare/v0.0.98...vv0.0.98) | ||
[compare changes](https://github.com/mindbe/mindbeui/compare/v0.0.98...vv0.0.99) | ||
### 🚀 Enhancements | ||
- ✨ adjusts scripts ([d377203](https://github.com/mindbe/mindbeui/commit/d377203)) | ||
### ❤️ Contributors | ||
- Christopher Gonçalves ([@chrissgon](http://github.com/chrissgon)) | ||
## v0.0.97 | ||
@@ -9,0 +18,0 @@ |
@@ -1,1 +0,1 @@ | ||
(function(r){typeof define=="function"&&define.amd?define(r):r()})(function(){"use strict";const p={name:"@contactstudio/mindbeui",displayName:"Mindbe UI",version:"v0.0.98",type:"module",main:"dist/mindbeui.js",scripts:{dev:"vite",build:"vite build",preview:"vite preview",release:"changelogen --release --no-commit --no-tag -r $VERSION && npm run build && npm publish && git push --follow-tags"},devDependencies:{sass:"^1.58.0",vite:"^4.1.0",changelogen:"^0.5.3"}};console.log(`🎨 ${p.displayName} - ${p.version}`);function g(){const t=document.querySelectorAll(".alert");for(const e of t)e.onclick=()=>{e.classList.contains("visible")&&e.classList.remove("visible")}}function v(){const t=document.querySelectorAll("[tooltip]");for(const e of t)e.onmouseenter=({target:o})=>{const{top:n,left:u}=document.body.getBoundingClientRect(),{top:m,left:c}=e.getBoundingClientRect(),i=document.createElement("div");i.innerHTML=o.getAttribute("tooltip"),i.classList.add("tooltip"),document.body.append(i);const f=c-u;i.style.setProperty("left",`${f}px`);const a=i.offsetHeight,l=m-n-a-5;i.style.setProperty("top",`${l}px`)},e.onmouseleave=()=>{document.querySelector("div.tooltip").remove()}}function y(){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 b(){const t=document.querySelectorAll("*[dropdown-trigger]");for(const e of t){const o=document.querySelector(`.dropdown[dropdown="${e.getAttribute("dropdown-trigger")}"]`);L({trigger:e,dropdown:o})}}function L({trigger:t,dropdown:e}){t.onclick=()=>{S({dropdown:e}),$({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}),k({trigger:t,dropdown:e})}}function S({dropdown:t}){const e=document.querySelectorAll("*[dropdown]");for(const o of e)t!==o&&d({dropdown:o})}function $({dropdown:t}){t.classList.toggle("visible"),t.classList.contains("visible")||h()}function k({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:m}=t.getBoundingClientRect(),{width:c,height:i}=e.getBoundingClientRect(),{width:f,height:a,top:l,left:A}=document.body.getBoundingClientRect(),T=m-A,x=u-A,w=n-l,R=o-l,D=T+c>f,E=w+i>a;E||e.style.setProperty("top",`${w}px`),E&&e.style.setProperty("top",`${R-i}px`),D||e.style.setProperty("left",`${x}px`),D&&e.style.setProperty("left",`${T-c}px`)}function d({dropdown:t}){t.classList.remove("visible"),h()}function h(){window.onresize=()=>{},document.onscroll=()=>{}}(function(){if(window&&document){let e=!1;const o=()=>e=!0,n=()=>e=!1;document.addEventListener("mousemove",()=>{e||(o(),setTimeout(n,2e3),v(),y(),b(),g())}),document.addEventListener("click",()=>{v(),y(),b(),g()})}})();const O=""}); | ||
(function(r){typeof define=="function"&&define.amd?define(r):r()})(function(){"use strict";const p={name:"@contactstudio/mindbeui",displayName:"Mindbe UI",version:"v0.0.99",type:"module",main:"dist/mindbeui.js",scripts:{dev:"vite",build:"vite build",preview:"vite preview",release:"changelogen --release -r $VERSION && npm run build && npm publish && git push --follow-tags"},devDependencies:{sass:"^1.58.0",vite:"^4.1.0",changelogen:"^0.5.3"}};console.log(`🎨 ${p.displayName} - ${p.version}`);function g(){const t=document.querySelectorAll(".alert");for(const e of t)e.onclick=()=>{e.classList.contains("visible")&&e.classList.remove("visible")}}function v(){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 a=i.offsetHeight,l=f-n-a-5;i.style.setProperty("top",`${l}px`)},e.onmouseleave=()=>{document.querySelector("div.tooltip").remove()}}function y(){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 b(){const t=document.querySelectorAll("*[dropdown-trigger]");for(const e of t){const o=document.querySelector(`.dropdown[dropdown="${e.getAttribute("dropdown-trigger")}"]`);L({trigger:e,dropdown:o})}}function L({trigger:t,dropdown:e}){t.onclick=()=>{S({dropdown:e}),$({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}),k({trigger:t,dropdown:e})}}function S({dropdown:t}){const e=document.querySelectorAll("*[dropdown]");for(const o of e)t!==o&&d({dropdown:o})}function $({dropdown:t}){t.classList.toggle("visible"),t.classList.contains("visible")||h()}function k({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:a,top:l,left:A}=document.body.getBoundingClientRect(),T=f-A,x=u-A,w=n-l,R=o-l,D=T+c>m,E=w+i>a;E||e.style.setProperty("top",`${w}px`),E&&e.style.setProperty("top",`${R-i}px`),D||e.style.setProperty("left",`${x}px`),D&&e.style.setProperty("left",`${T-c}px`)}function d({dropdown:t}){t.classList.remove("visible"),h()}function h(){window.onresize=()=>{},document.onscroll=()=>{}}(function(){if(window&&document){let e=!1;const o=()=>e=!0,n=()=>e=!1;document.addEventListener("mousemove",()=>{e||(o(),setTimeout(n,2e3),v(),y(),b(),g())}),document.addEventListener("click",()=>{v(),y(),b(),g()})}})();const O=""}); |
{ | ||
"name": "@contactstudio/mindbeui", | ||
"displayName": "Mindbe UI", | ||
"version": "v0.0.98", | ||
"version": "v0.0.99", | ||
"type": "module", | ||
@@ -11,3 +11,3 @@ "main": "dist/mindbeui.js", | ||
"preview": "vite preview", | ||
"release": "changelogen --release --no-commit --no-tag -r $VERSION && npm run build && npm publish && git push --follow-tags" | ||
"release": "changelogen --release -r $VERSION && npm run build && npm publish && git push --follow-tags" | ||
}, | ||
@@ -14,0 +14,0 @@ "devDependencies": { |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
53130
279