@vtbag/inspection-chamber 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,29 +7,27 @@ Put your view transitions through their paces in the Inspection Chamber!
7
7
  ![Build Status](https://github.com/vtbag/inspection-chamber/actions/workflows/run-tests.yml/badge.svg)
8
8
  [![NPM Downloads](https://img.shields.io/npm/dw/@vtbag/inspection-chamber)](https://www.npmjs.com/package/@vtbag/inspection-chamber)
9
9
 
10
- The @vtbag website can be found at https://vtbag.pages.dev/
10
+ The @vtbag website can be found at https://vtbag.dev/
11
11
 
12
12
  ## !!! News !!!
13
13
 
14
- Now compatible with the View Transition API Level 2 signature for `startViewTransition({types:..., update:...})`!
14
+ The items of the name panel escaped their scrollable list during view transitions. Fixed that. Read more about the root cause at https://vtbag.dev/basics/hide-and-seek/.
15
+
16
+ Better support for short pages.
15
17
 
16
18
  For latest changes, see the [CHANGELOG](https://github.com/vtbag/inspection-chamber/blob/main/CHANGELOG.md)
17
19
 
18
20
  ## What happened so far:
19
21
 
20
- > In addition to CSS animations of pseudo-elements, the Chamber can now also handle animations of pseudo-elements started using the Web Animation API.
22
+ > Now compatible with the View Transition API Level 2 signature for `startViewTransition({types:..., update:...})`!
21
23
 
22
- > Improved error handling
24
+ > In addition to CSS animations of pseudo-elements, the Chamber can now also handle animations of pseudo-elements started using the Web Animation API.
23
25
 
24
26
  > Names in the Animation Groups panel are now shown in the order in which the transition groups appear as children of the `::view-transition` pseudo-element. This makes it easier to understand how the individual groups overlap during the transition.
25
27
 
28
+ Also:
26
29
  * Observe in real-time how CSS properties are updated by animations
27
30
  * Ability to switch single animations on and off
28
- * Improved error reporting for missing animations or corrupted keyframe definitions.
29
- * Improved opening the Chamber on mobiles.
30
- * Explicit close button to the inner panel and fixes some styling issues.
31
- * Better integration into same-document and cross-document transitions.
32
- * Further optimizations for identifying transition elements on the screen.
33
31
 
34
32
  ## What is it?
35
33
 
@@ -37,5 +35,5 @@ The Inspection Chamber is your ultimate playground for experimenting with the Vi
37
35
 
38
36
  With a comprehensive set of controls at your fingertips, you can interactively test and fine-tune your view transitions to perfection. Dive in and explore all the features the Inspection Chamber offers to elevate your web development projects!
39
37
 
40
- Find the documentation of the Inspection Chamber at [https://vtbag.pages.dev/tools/inspection-chamber/](https://vtbag.pages.dev/tools/inspection-chamber/)!
38
+ Find the documentation of the Inspection Chamber at [https://vtbag.dev/tools/inspection-chamber/](https://vtbag.dev/tools/inspection-chamber/)!
41
39
 
package/lib/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  <title></title>
7
7
  <meta name="astro-view-transitions-enabled" content="true" />
8
8
  </head>
9
- <body>
9
+ <body style="margin: 0; min-height:100dvh">
10
10
  <div style="display: none" id="vtbot-loading-indicator"></div>
11
11
  <iframe id="vtbag-main-frame" src="/"></iframe>
12
12
  <div id="divider" class="divider"></div>
@@ -899,7 +899,7 @@
899
899
  [data-vtbag-transition-name] {
900
900
  cursor: help;
901
901
  }
902
- `)}function It(){vt(),pt()}function pt(){let t=1/Math.max(1e-6,parseFloat(top.document.querySelector("#vtbag-ui-tsf")?.innerText??"1.0"));top.__vtbag.inspectionChamber.animations?.forEach(e=>{e.playbackRate=t,e.playState==="paused"&&e.play()})}function At(){let t=top.document.querySelector("#vtbag-ui-slo-mo"),e=top.document.querySelector("#vtbag-ui-tsf");t.addEventListener("input",n=>{if(n.target instanceof HTMLInputElement){let o=(Math.exp(parseInt(n.target.value,10)/100)-100)/100+1-.14;e.innerText=`${o.toFixed(1)}`,pt()}})}function vt(){let t=top.__vtbag.inspectionChamber,e=t.longestAnimation;e&&(top.document.querySelector("#vtbag-ui-slo-mo-progress").innerText=` ${~~(e.currentTime??0)} / ${t.animationEndTime} ms`,b()&&top.setTimeout(vt,20))}var bt=[],ie=["top","left","right","bottom"];var Ct;function Mt(t){Ct??=oe();let e=[];return e.push("inset"),bt.forEach(n=>{t.getPropertyValue(n)!==Ct[n]&&e.push(n)}),e.filter(n=>!(n.startsWith("inset-")||n.startsWith("animation-")||ie.includes(n)))}function oe(){let t=top.document.createElement("div");top.document.body.appendChild(t);let e=top.getComputedStyle(t),n={};for(let o=0;o<e.length;o++){let i=e.item(o);bt.push(i),n[i]=e.getPropertyValue(i)}return top.document.body.removeChild(t),n}function yt(t,e,n,o,i){let a=e.createElement("vtbag-pseudo-twin");m(a,t,"::view-transition","");let g=top.__vtbag.inspectionChamber.twin=a.firstElementChild;n.forEach(u=>{let s=m(g,t,"group",u),l=m(s,t,"image-pair",u);m(l,t,"old",u)&&o.add(u),m(l,t,"new",u)&&i.add(u)}),e.body.insertAdjacentElement("beforeend",g);function m(u,s,l,c){if(!u){console.error("[inspection chamber] Works not as expected ;-)");return}let d=top.__vtbag.inspectionChamber,r=u.ownerDocument,A=s.defaultView,p=c?`::view-transition-${l}(${c})`:l,v=A.getComputedStyle(s.documentElement,p);if(!v.height.endsWith("px"))return;d?.styleMap.set(c?`${l}-${c}`:l,v);let C=r.createElement("vtbag-pseudo-twin");return C.id=ae(c,l),C.dataset.vtbagTransitionName=c,C.dataset.vtbagTransitionPseudo=l,u.insertAdjacentElement("beforeend",C),ft(v,C.style),C.style.visibility="hidden",C}}function ae(t,e){return t?`vtbag-twin--view-transition-${e}-${t}`:"vtbag-twin--view-transition"}async function ht(t){top.document.documentElement.classList.add("vtbag-twin-sync");let e=top.__vtbag.inspectionChamber,n=e.frameDocument.documentElement;for(let o of[...e.twin.children]){let i=o.dataset.vtbagTransitionName;t.has(i)||(W(o,i),W(o.children[0],i),W(o.children[0].children[0],i),W(o.children[0].children[1],i),await new Promise(a=>self.setTimeout(a)))}top.document.documentElement.classList.remove("vtbag-twin-sync")}function W(t,e){if(!t)return;let n=t.dataset.vtbagTransitionPseudo,o=top.__vtbag.inspectionChamber.styleMap.get(`${n}-${e}`),i=t.style;ft(o,i)}function ft(t,e){e.position=t.position,e.inset=t.inset,e.height=t.height,e.width=t.width,e.transform=t.transform,e.zIndex=t.zIndex,e.transformOrigin=t.transformOrigin,e.perspective=t.perspective}function Lt(t){if(b()){let e,n=1/0;top.__vtbag.inspectionChamber.twin.querySelectorAll("vtbag-pseudo-twin > vtbag-pseudo-twin > vtbag-pseudo-twin > vtbag-pseudo-twin").forEach(o=>{let{clientX:i,clientY:a}=t,{top:g,bottom:m,left:u,right:s,width:l,height:c}=o.getBoundingClientRect(),d=o.dataset.vtbagTransitionName,r=o.dataset.vtbagTransitionPseudo;if(l&&c&&l*c<n&&g<=a&&a<=m&&u<=i&&i<=s){let A=!0,p;window.top.document.querySelectorAll("#vtbag-ui-names li").forEach(v=>{v.innerText===d&&(p=v,v.classList.contains(`${r}-hidden`)&&(A=!1))}),A&&(n=l*c,e=p)}}),e?.click()}}function O(){top.document.querySelector('#vtbag-ui-filter input[type="text"]').value="",top.document.querySelector("#vtbag-ui-filter ul input").click(),Y()}function wt(){top.document.querySelectorAll("#vtbag-ui-names li").forEach(t=>t.classList.remove("selected","old-hidden","new-hidden")),x(),St(),V()}function Tt(){top.document.querySelector("#vtbag-ui-filter ul").addEventListener("change",Y),top.document.querySelector('#vtbag-ui-filter input[type="text"]').addEventListener("input",Y),top.document.querySelector("#vtbag-ui-filter button").addEventListener("click",O)}var Dt=500;function H(t,e,n){return h(()=>{top.document.querySelector("#vtbag-ui-info").innerHTML="",top.document.querySelectorAll("#vtbag-ui-names li").forEach(i=>i.remove()),top.document.querySelector("#vtbag-ui-names h4").innerText=e?"Animation Groups":"Elements w/ View Transition Names",top.document.querySelector("#vtbag-ui-names div").style.display=e?"flex":"none";let o=top.document.querySelector("#vtbag-ui-names > ol");(e?n:[...t].sort()).forEach((i,a)=>{let g=top.document.createElement("li");g.innerText=i,e&&t.has(i)&&g.classList.add("old"),e?.has(i)&&g.classList.add("new"),g.style.viewTransitionName=`vtbag-name-${a}`,o.appendChild(g)}),top.document.querySelector("#vtbag-ui-filter ul").style.display=e?"block":"none",Y()},"update names"),n}function Y(){let t=top.document.querySelectorAll("#vtbag-ui-names li"),e=top.document.querySelector("#vtbag-ui-filter ul input:checked").id.replace("vtbag-c-",""),n=top.document.querySelector('#vtbag-ui-filter input[type="text"]').value;h(()=>{t.forEach(o=>{let i=o.style,a=o.classList,g=o.innerText;i.display=(n===""||g.includes(n))&&(e==="all"||e==="both"&&a.contains("new")&&a.contains("old")||e==="old-only"&&a.contains("old")&&!a.contains("new")||e==="new-only"&&a.contains("new")&&!a.contains("old")||e==="old"&&a.contains("old")||e==="new"&&a.contains("new"))?"list-item":"none"})},"refresh names")}async function B(){if(!b())return;let e=top.__vtbag.inspectionChamber.twin.ownerDocument,n=top.document,o=top.getComputedStyle(n.documentElement),i=n.documentElement.classList.contains("vtbag-ui-column"),a=i?parseFloat(o.getPropertyValue("--vtbag-panel-width")||"0"):0,g=i?0:parseFloat(o.getPropertyValue("--vtbag-panel-height")||"0"),m=n.querySelectorAll("#vtbag-ui-names li"),u=new Set;m.forEach(s=>{s.classList.contains("old-hidden")&&s.classList.contains("new-hidden")&&u.add(s.innerText)}),await ht(u),m.forEach(s=>{let l=s.innerText,c=s.classList;c[c.contains("old")&&xt(e.querySelector(`#vtbag-twin--view-transition-old-${l}`),a,g)===!1?"add":"remove"]("old-invisible"),c[c.contains("new")&&xt(e.querySelector(`#vtbag-twin--view-transition-new-${l}`),a,g)===!1?"add":"remove"]("new-invisible"),c[(!c.contains("old")||c.contains("old-invisible"))&&(!c.contains("new")||c.contains("new-invisible"))?"add":"remove"]("invisible")})}function xt(t,e=0,n=0){if(!t)return;let{top:o,right:i,bottom:a,left:g,width:m,height:u}=t.getBoundingClientRect();return!1,m>0&&u>0&&o<window.top.innerHeight-n&&a>0&&g<window.top.innerWidth-e&&i>0}function x(){let t=[];top.document.querySelectorAll("#vtbag-ui-names li").forEach(e=>{let n=e.innerText,o=e.classList,i=!1;o.contains("old-hidden")&&(i=!0,t.push(`::view-transition-old(${n}) { visibility: hidden; }`)),o.contains("new-hidden")&&(t.push(`::view-transition-new(${n}) { visibility: hidden; }`),i&&t.push(`::view-transition-group(${n}) { visibility: hidden; }`))}),L(t.join(`
902
+ `)}function It(){vt(),pt()}function pt(){let t=1/Math.max(1e-6,parseFloat(top.document.querySelector("#vtbag-ui-tsf")?.innerText??"1.0"));top.__vtbag.inspectionChamber.animations?.forEach(e=>{e.playbackRate=t,e.playState==="paused"&&e.play()})}function At(){let t=top.document.querySelector("#vtbag-ui-slo-mo"),e=top.document.querySelector("#vtbag-ui-tsf");t.addEventListener("input",n=>{if(n.target instanceof HTMLInputElement){let o=(Math.exp(parseInt(n.target.value,10)/100)-100)/100+1-.14;e.innerText=`${o.toFixed(1)}`,pt()}})}function vt(){let t=top.__vtbag.inspectionChamber,e=t.longestAnimation;e&&(top.document.querySelector("#vtbag-ui-slo-mo-progress").innerText=` ${~~(e.currentTime??0)} / ${t.animationEndTime} ms`,b()&&top.setTimeout(vt,20))}var bt=[],ie=["top","left","right","bottom"];var Ct;function Mt(t){Ct??=oe();let e=[];return e.push("inset"),bt.forEach(n=>{t.getPropertyValue(n)!==Ct[n]&&e.push(n)}),e.filter(n=>!(n.startsWith("inset-")||n.startsWith("animation-")||ie.includes(n)))}function oe(){let t=top.document.createElement("div");top.document.body.appendChild(t);let e=top.getComputedStyle(t),n={};for(let o=0;o<e.length;o++){let i=e.item(o);bt.push(i),n[i]=e.getPropertyValue(i)}return top.document.body.removeChild(t),n}function yt(t,e,n,o,i){let a=e.createElement("vtbag-pseudo-twin");m(a,t,"::view-transition","");let g=top.__vtbag.inspectionChamber.twin=a.firstElementChild;n.forEach(u=>{let s=m(g,t,"group",u),l=m(s,t,"image-pair",u);m(l,t,"old",u)&&o.add(u),m(l,t,"new",u)&&i.add(u)}),e.body.insertAdjacentElement("beforeend",g);function m(u,s,l,c){if(!u){console.error("[inspection chamber] Works not as expected ;-)");return}let d=top.__vtbag.inspectionChamber,r=u.ownerDocument,A=s.defaultView,p=c?`::view-transition-${l}(${c})`:l,v=A.getComputedStyle(s.documentElement,p);if(!v.height.endsWith("px"))return;d?.styleMap.set(c?`${l}-${c}`:l,v);let C=r.createElement("vtbag-pseudo-twin");return C.id=ae(c,l),C.dataset.vtbagTransitionName=c,C.dataset.vtbagTransitionPseudo=l,u.insertAdjacentElement("beforeend",C),ft(v,C.style),C.style.visibility="hidden",C}}function ae(t,e){return t?`vtbag-twin--view-transition-${e}-${t}`:"vtbag-twin--view-transition"}async function ht(t){top.document.documentElement.classList.add("vtbag-twin-sync");let e=top.__vtbag.inspectionChamber,n=e.frameDocument.documentElement;for(let o of[...e.twin.children]){let i=o.dataset.vtbagTransitionName;t.has(i)||(W(o,i),W(o.children[0],i),W(o.children[0].children[0],i),W(o.children[0].children[1],i),await new Promise(a=>self.setTimeout(a)))}top.document.documentElement.classList.remove("vtbag-twin-sync")}function W(t,e){if(!t)return;let n=t.dataset.vtbagTransitionPseudo,o=top.__vtbag.inspectionChamber.styleMap.get(`${n}-${e}`),i=t.style;ft(o,i)}function ft(t,e){e.position=t.position,e.inset=t.inset,e.height=t.height,e.width=t.width,e.transform=t.transform,e.zIndex=t.zIndex,e.transformOrigin=t.transformOrigin,e.perspective=t.perspective}function Lt(t){if(b()){let e,n=1/0;top.__vtbag.inspectionChamber.twin.querySelectorAll("vtbag-pseudo-twin > vtbag-pseudo-twin > vtbag-pseudo-twin > vtbag-pseudo-twin").forEach(o=>{let{clientX:i,clientY:a}=t,{top:g,bottom:m,left:u,right:s,width:l,height:c}=o.getBoundingClientRect(),d=o.dataset.vtbagTransitionName,r=o.dataset.vtbagTransitionPseudo;if(l&&c&&l*c<n&&g<=a&&a<=m&&u<=i&&i<=s){let A=!0,p;window.top.document.querySelectorAll("#vtbag-ui-names li").forEach(v=>{v.innerText===d&&(p=v,v.classList.contains(`${r}-hidden`)&&(A=!1))}),A&&(n=l*c,e=p)}}),e?.click()}}function O(){top.document.querySelector('#vtbag-ui-filter input[type="text"]').value="",top.document.querySelector("#vtbag-ui-filter ul input").click(),Y()}function wt(){top.document.querySelectorAll("#vtbag-ui-names li").forEach(t=>t.classList.remove("selected","old-hidden","new-hidden")),x(),St(),V()}function Tt(){top.document.querySelector("#vtbag-ui-filter ul").addEventListener("change",Y),top.document.querySelector('#vtbag-ui-filter input[type="text"]').addEventListener("input",Y),top.document.querySelector("#vtbag-ui-filter button").addEventListener("click",O)}var Dt=500;function H(t,e,n){return h(()=>{top.document.querySelector("#vtbag-ui-info").innerHTML="",top.document.querySelectorAll("#vtbag-ui-names li").forEach(i=>i.remove()),top.document.querySelector("#vtbag-ui-names h4").innerText=e?"Animation Groups":"Elements w/ View Transition Names",top.document.querySelector("#vtbag-ui-names div").style.display=e?"flex":"none";let o=top.document.querySelector("#vtbag-ui-names > ol");(e?n:[...t].sort()).forEach((i,a)=>{let g=top.document.createElement("li");g.innerText=i,e&&t.has(i)&&g.classList.add("old"),e?.has(i)&&g.classList.add("new"),o.appendChild(g)}),top.document.querySelector("#vtbag-ui-filter ul").style.display=e?"block":"none",Y()},"update names"),n}function Y(){let t=top.document.querySelectorAll("#vtbag-ui-names li"),e=top.document.querySelector("#vtbag-ui-filter ul input:checked").id.replace("vtbag-c-",""),n=top.document.querySelector('#vtbag-ui-filter input[type="text"]').value;h(()=>{t.forEach(o=>{let i=o.style,a=o.classList,g=o.innerText;i.display=(n===""||g.includes(n))&&(e==="all"||e==="both"&&a.contains("new")&&a.contains("old")||e==="old-only"&&a.contains("old")&&!a.contains("new")||e==="new-only"&&a.contains("new")&&!a.contains("old")||e==="old"&&a.contains("old")||e==="new"&&a.contains("new"))?"list-item":"none"})},"refresh names")}async function B(){if(!b())return;let e=top.__vtbag.inspectionChamber.twin.ownerDocument,n=top.document,o=top.getComputedStyle(n.documentElement),i=n.documentElement.classList.contains("vtbag-ui-column"),a=i?parseFloat(o.getPropertyValue("--vtbag-panel-width")||"0"):0,g=i?0:parseFloat(o.getPropertyValue("--vtbag-panel-height")||"0"),m=n.querySelectorAll("#vtbag-ui-names li"),u=new Set;m.forEach(s=>{s.classList.contains("old-hidden")&&s.classList.contains("new-hidden")&&u.add(s.innerText)}),await ht(u),m.forEach(s=>{let l=s.innerText,c=s.classList;c[c.contains("old")&&xt(e.querySelector(`#vtbag-twin--view-transition-old-${l}`),a,g)===!1?"add":"remove"]("old-invisible"),c[c.contains("new")&&xt(e.querySelector(`#vtbag-twin--view-transition-new-${l}`),a,g)===!1?"add":"remove"]("new-invisible"),c[(!c.contains("old")||c.contains("old-invisible"))&&(!c.contains("new")||c.contains("new-invisible"))?"add":"remove"]("invisible")})}function xt(t,e=0,n=0){if(!t)return;let{top:o,right:i,bottom:a,left:g,width:m,height:u}=t.getBoundingClientRect();return!1,m>0&&u>0&&o<window.top.innerHeight-n&&a>0&&g<window.top.innerWidth-e&&i>0}function x(){let t=[];top.document.querySelectorAll("#vtbag-ui-names li").forEach(e=>{let n=e.innerText,o=e.classList,i=!1;o.contains("old-hidden")&&(i=!0,t.push(`::view-transition-old(${n}) { visibility: hidden; }`)),o.contains("new-hidden")&&(t.push(`::view-transition-new(${n}) { visibility: hidden; }`),i&&t.push(`::view-transition-group(${n}) { visibility: hidden; }`))}),L(t.join(`
903
903
  `),"image-visibility"),f()}function re(t){let e=y()==="full-control"&&b(),n=top.document.querySelectorAll("#vtbag-ui-names li"),o,i=top.document.querySelector("#vtbag-ui-controller"),a=top.document.querySelector("#vtbag-ui-progress"),g=top.document.querySelector("#vtbag-ui-controller2"),m=top.document.querySelector("#vtbag-ui-progress2");n.forEach(u=>{u.innerText===t?(u.classList.contains("selected")?(g.value=i.value,m.innerText=a.innerText):(i.value=g.value,a.innerText=m.innerText),u.classList[e?"toggle":"add"]("selected"),o=u,u.style.display==="none"&&O()):e||u.classList.remove("selected")}),o&&o.scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"})}function ge(t){let e=top.document.querySelector("#vtbag-ui-info");if(t&&!b())navigator.clipboard.writeText(`inspect(top.document.querySelector("#vtbag-main-frame").contentDocument.querySelector("${Et(t)}"))`),e.innerHTML=`<h4>Info</h4>
904
904
  <p>DevTools selector '<b><code>${Et(t)}</code></b>' copied to clipboard. Paste to DevTools console to further inspect the element.</p>`;else{navigator.clipboard.writeText('inspect(top.document.querySelector("#vtbag-main-frame").contentDocument.querySelector(":root"))');let n=t&&t.dataset.vtbagTransitionName;e.innerHTML=`<h4>Info</h4>
905
905
  <p>DevTools selector '<b><code>:root</code></b>' copied to clipboard. Paste to DevTools console, then expand the <code>&lt;html></code> element and its <code>::view-transition</code> pseudo element.</p>${n&&"<p>Look for the <code>::view-transition-group("+n+")</code> pseudo element and its children.</p>"}`}S(e)}function Et(t,e=!0){let n=[];for(;t&&t.nodeType===Node.ELEMENT_NODE;){let o=t.nodeName.toLowerCase();if(e&&t.id){o="#"+t.id,n.unshift(o);break}else{let i=t,a=1;for(;i=i.previousElementSibling;)i.nodeName.toLowerCase()===o&&a++;a!==1&&(o+=":nth-of-type("+a+")")}n.unshift(o),t=t.parentNode}return n.join(" > ")}function jt(){let t=e=>{let n=e+"-hidden",i=[...top.document.querySelectorAll("#vtbag-ui-names li")].filter(g=>g.classList.contains(e)),a=i.length>0&&i[0].classList.contains(n)?"remove":"add";i.forEach(g=>g.classList[a](n)),x()};top.document.querySelector("#vtbag-ui-names button").addEventListener("click",()=>wt()),top.document.querySelector("#vtbag-ui-names-old").addEventListener("click",()=>t("old")),top.document.querySelector("#vtbag-ui-names-new").addEventListener("click",()=>t("new")),top.document.querySelector("#vtbag-ui-names ol").addEventListener("click",e=>{let n=!e.isTrusted;if(e.target instanceof HTMLElement){let o=e.target.closest("li");if(o&&e instanceof PointerEvent){o.style.display==="none"&&O();let i=y();h(()=>{let{left:a,width:g}=o.getBoundingClientRect(),m=e.clientX-a,u=!n&&m>=0&&m<=20,s=!n&&m>=g-20&&m<=g,l=o.classList;if(u&&l.contains("old")){l.toggle("old-hidden"),x();return}if(s&&l.contains("new")){l.toggle("new-hidden"),x();return}let c=o.innerText;!n&&le(c),re(c);let d=window.top.__vtbag.inspectionChamber?.frameDocument.querySelector(`[data-vtbag-transition-name="${c}"]`);i&&i!=="bypass"&&ge(d),b()&&q(c)},"names",!0)}}V()})}var Nt=[{boxShadow:"inset 0 0 50px darkslateblue"},{boxShadow:"inset 0 0 0px darkslateblue"},{boxShadow:"0 0 50px darkslateblue"},{boxShadow:"0 0 100px darkslateblue",display:"inline-block",minWidth:"20px",minHeight:"20px",backgroundColor:"darkslateblue",opacity:"0.5"},{boxShadow:"0 0 50px darkslateblue"},{boxShadow:"0 0 0px darkslateblue"},{boxShadow:"inset 0 0 50px darkslateblue"}];function le(t){if(b())se(t);else{let e=top.__vtbag.inspectionChamber,n=e.frameDocument.querySelector(`[data-vtbag-transition-name="${t}"]`);if(n){n.scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"});let o=self.getComputedStyle(n).display;Nt[3].display=o.includes("block")?o:"inline-block",e.glow=n.animate(Nt,{duration:500,iterations:1}),self.setTimeout(()=>e.glow=void 0,500)}}}function se(t){L(`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtbag/inspection-chamber",
3
3
  "type": "module",
4
- "version": "1.0.17",
4
+ "version": "1.0.18",
5
5
  "main": "lib/index.js",
6
6
  "description": "The Inspection Chamber is an in-browser development tool that gives you all the knobs and dials to interactively put your view transitions through their paces.",
7
7
  "files": [
@@ -34,20 +34,20 @@
34
34
  "bugs": {
35
35
  "url": "https://github.com/vtbag/inspection-chamber/issues"
36
36
  },
37
- "homepage": "https://vtbag.pages.dev",
37
+ "homepage": "https://vtbag.dev",
38
38
  "funding": {
39
39
  "type": "github",
40
40
  "url": "https://github.com/sponsors/martrapp"
41
41
  },
42
42
  "devDependencies": {
43
- "@changesets/cli": "^2.27.9",
44
- "@eslint/js": "^9.13.0",
43
+ "@changesets/cli": "^2.27.10",
44
+ "@eslint/js": "^9.16.0",
45
45
  "@types/dom-view-transitions": "^1.0.5",
46
46
  "esbuild": "^0.24.0",
47
- "prettier": "^3.3.3",
48
- "typescript": "^5.6.3"
47
+ "prettier": "^3.4.2",
48
+ "typescript": "^5.7.2"
49
49
  },
50
50
  "dependencies": {
51
- "eruda": "^3.4.0"
51
+ "eruda": "^3.4.1"
52
52
  }
53
53
  }