@aevantec/litevue 0.6.2 → 0.6.3

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.
Files changed (68) hide show
  1. package/dist/litevue-plugins.dev.iife.js +4 -85
  2. package/dist/litevue-plugins.dev.mjs +4 -85
  3. package/dist/litevue-plugins.iife.js +1 -1
  4. package/dist/litevue-plugins.mjs +1 -1
  5. package/dist/litevue-plugins.umd.js +1 -1
  6. package/dist/litevue.dev.iife.js +2 -121
  7. package/dist/litevue.dev.mjs +2 -121
  8. package/dist/litevue.iife.js +1 -1
  9. package/dist/litevue.mjs +1 -1
  10. package/dist/litevue.umd.js +1 -1
  11. package/dist/plugins/media.dev.iife.js +2 -35
  12. package/dist/plugins/media.dev.mjs +2 -35
  13. package/dist/plugins/media.iife.js +1 -1
  14. package/dist/plugins/media.mjs +1 -1
  15. package/dist/plugins/media.umd.js +1 -1
  16. package/dist/plugins/morph.dev.iife.js +2 -42
  17. package/dist/plugins/morph.dev.mjs +2 -42
  18. package/dist/plugins/morph.iife.js +1 -1
  19. package/dist/plugins/morph.mjs +1 -1
  20. package/dist/plugins/morph.umd.js +1 -1
  21. package/dist/plugins/navigate.dev.iife.js +1 -10
  22. package/dist/plugins/navigate.dev.mjs +1 -10
  23. package/dist/plugins/persist.dev.iife.js +0 -7
  24. package/dist/plugins/persist.dev.mjs +0 -7
  25. package/dist/plugins/transition.iife.js +1 -1
  26. package/dist/plugins/transition.mjs +1 -1
  27. package/dist/plugins/transition.umd.js +1 -1
  28. package/dist/types/app.d.mts +2 -5
  29. package/dist/types/app.d.ts +2 -5
  30. package/dist/types/block.d.mts +0 -4
  31. package/dist/types/block.d.ts +0 -4
  32. package/dist/types/context.d.mts +0 -5
  33. package/dist/types/context.d.ts +0 -5
  34. package/dist/types/devtools-panel/chrome.d.mts +0 -3
  35. package/dist/types/devtools-panel/chrome.d.ts +0 -3
  36. package/dist/types/devtools-panel/menu.d.mts +0 -2
  37. package/dist/types/devtools-panel/menu.d.ts +0 -2
  38. package/dist/types/devtools-panel/plugins.d.mts +0 -4
  39. package/dist/types/devtools-panel/plugins.d.ts +0 -4
  40. package/dist/types/devtools-panel/styles.d.mts +2 -17
  41. package/dist/types/devtools-panel/styles.d.ts +2 -17
  42. package/dist/types/devtools-panel/values.d.mts +0 -25
  43. package/dist/types/devtools-panel/values.d.ts +0 -25
  44. package/dist/types/devtools.d.mts +0 -7
  45. package/dist/types/devtools.d.ts +0 -7
  46. package/dist/types/directives/on.d.mts +0 -1
  47. package/dist/types/directives/on.d.ts +0 -1
  48. package/dist/types/errors.d.mts +0 -7
  49. package/dist/types/errors.d.ts +0 -7
  50. package/dist/types/eval.d.mts +0 -3
  51. package/dist/types/eval.d.ts +0 -3
  52. package/dist/types/lazy.d.mts +0 -10
  53. package/dist/types/lazy.d.ts +0 -10
  54. package/dist/types/magics.d.mts +0 -9
  55. package/dist/types/magics.d.ts +0 -9
  56. package/dist/types/ownership.d.mts +0 -19
  57. package/dist/types/ownership.d.ts +0 -19
  58. package/dist/types/plugins/media/index.d.mts +0 -5
  59. package/dist/types/plugins/media/index.d.ts +0 -5
  60. package/dist/types/plugins/morph/index.d.mts +0 -8
  61. package/dist/types/plugins/morph/index.d.ts +0 -8
  62. package/dist/types/scheduler.d.mts +0 -5
  63. package/dist/types/scheduler.d.ts +0 -5
  64. package/dist/types/utils.d.mts +0 -5
  65. package/dist/types/utils.d.ts +0 -5
  66. package/dist/types/warn.d.mts +0 -12
  67. package/dist/types/warn.d.ts +0 -12
  68. package/package.json +1 -1
@@ -1 +1 @@
1
- var e=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||e.__marker||!!t.preserve?.(e)),t="[v-scope\\.visible],[v-scope\\.idle],[v-scope\\.interaction]",n=/^(?:v-|:|@)/,o=/^(?::|v-bind:)/,i=/^v-(?!scope|on:)/,r=["id","data-key","data-id"],s=e=>{for(const t of r){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},a=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},l=e=>e.__ctx||[...e.children||[]].map(l).find(Boolean),d=(e,t)=>(t||l(e))?.dispose?.(e),c=e=>{const t=/* @__PURE__ */new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)if(o.test(n)){const e=n.replace(o,"").split(".")[0];t.add(/\.camel\b/.test(n)?e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()):e)}else/^v-model\b/.test(n)?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):i.test(n)&&(t.add("style"),"v-popover"==n&&t.add("popover"));return t},u=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),f=["Value","Checked","Selected"],p=(e,t,o)=>{const i=c(t);e.__anchor&&i.add("style"),o&&((e,t,n)=>{const o=c(t.closest("select")||t);if(!(n.has("*")||o.has("*")||o.has("value")||"output"==e.type||"textarea"==e.type&&t.value.includes("{{")))for(const i of f){const o=i.toLowerCase(),r="default"+i,s="Selected"==i?r:o;!n.has(o)&&r in e&&e[o]!==t[s]&&(e[o]=t[s])}})(e,t,i);const r=Object(e.__bound);for(const{name:s,value:a}of t.attributes)n.test(s)||i.has(s)||s in r||e.getAttribute(s)!==a&&e.setAttribute(s,a);for(const{name:n}of[...e.attributes])i.has("*")||i.has(n)||t.hasAttribute(n)||e.removeAttribute(n)},h=(e,n,o,i)=>{if(e.nodeType!==n.nodeType)return m(e,n,o,i);if(3===e.nodeType||8===e.nodeType){const t=n.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(t,o)&&"SCRIPT"!=e.parentNode?.nodeName)return;return e.data?void(e.data!==t&&(e.data=t)):m(e,n,o,i)}if(1!==e.nodeType)return;const r=e,s=n;if(r.tagName!==s.tagName)return m(e,n,o,i);if(!i.skip?.(r,s)&&!r.hasAttribute("data-morph-skip")){if(r.matches(t))return r.isEqualNode(s)?void 0:m(e,n,o,i);p(r,s,i.values),"TEMPLATE"!=r.tagName||r.content.isEqualNode(s.content)||(r.innerHTML=s.innerHTML),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||u(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(u(t))return!0;return!1})(s)||Object.getOwnPropertyDescriptor(Object(r.__ctx?.scope),"$template")||v(r,s,r.__ctx||o,i)}},m=(t,n,o,i)=>{if(e(t,i))return;const r=n.cloneNode(!0);return!1!==i.beforeNodeAdded?.(r)?(d(t,o),t.parentNode.replaceChild(r,t),i.afterNodeRemoved?.(t),b(r,o),r):void 0},b=(e,n)=>{if(e.parentElement?.closest(t))return;const o=n||a(e.parentNode);o?.walk?.(e,o)},v=(t,n,o,i)=>{const r=i.key||s,a=/* @__PURE__ */new Map;for(let e=t.firstChild;e;e=e.nextSibling)if(1===e.nodeType){const t=r(e);if(null==t)continue;a.set(t,e)}const l=e=>e&&1===e.nodeType?r(e):null,c=/* @__PURE__ */new Set;for(let e=n.firstChild;e;e=e.nextSibling)c.add(l(e));const u=n=>{e(n,i)||(d(n,o),t.removeChild(n),i.afterNodeRemoved?.(n))};let f=t.firstChild,p=n.firstChild;const m=e=>{const n=e.cloneNode(!0);!1!==i.beforeNodeAdded?.(n)&&(t.insertBefore(n,f),b(n,o))};for(;p;){const n=p.nextSibling,r=l(p);if(""===f?.data&&p.hasAttribute?.("v-teleport"))f=f.nextSibling;else if(null!=r){const e=a.get(r);e?(e===f?f=f.nextSibling:t.insertBefore(e,f),a.delete(r),h(e,p,o,i)):m(p)}else if(f&&null==l(f)){if(e(f,i)&&!e(p,i)){f=f.nextSibling;continue}const t=f.nextSibling;h(f,p,o,i),f=t}else{if(f&&!c.has(l(f))){const e=f.nextSibling;u(f),f=e;continue}m(p)}p=n}for(;f;){const e=f.nextSibling;u(f),f=e}},g=(e,t,n={})=>{let o;if("string"==typeof t){const n=document.createElement("template"),i=e instanceof SVGElement;n.innerHTML=i?`<svg>${t.trim()}</svg>`:t.trim();const r=i?n.content.firstChild:n.content;o=1===r.childNodes.length&&r.firstElementChild?r.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.append(...r.childNodes),t})()}else o=t;if(o){const t=()=>{const t=y();e=h(e,o,a(e.parentNode),n)||e,t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},y=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,o=null;try{n=t.selectionStart,o=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,o)}catch{}}},A=e=>{e.scope.$morph=g};export{g as morph,A as morphPlugin};
1
+ var e=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||e.__marker||!!t.preserve?.(e)),t="[v-scope\\.visible],[v-scope\\.idle],[v-scope\\.interaction]",n=/^(?:v-|:|@)/,o=/^(?::|v-bind:)/,r=/^v-(?!scope|on:)/,i=["id","data-key","data-id"],s=e=>{for(const t of i){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},a=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},d=e=>e.__ctx||[...e.children||[]].map(d).find(Boolean),l=(e,t)=>(t||d(e))?.dispose?.(e),c=e=>{const t=/* @__PURE__ */new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)if(o.test(n)){const e=n.replace(o,"").split(".")[0];t.add(/\.camel\b/.test(n)?e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()):e)}else/^v-model\b/.test(n)?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):r.test(n)&&(t.add("style"),"v-popover"==n&&t.add("popover"));return t},u=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),f=["Value","Checked","Selected"],p=(e,t,o)=>{const r=c(t);e.__anchor&&r.add("style");for(const n of e.constructor.morphOwnedAttributes||[])r.add(n);o&&((e,t,n)=>{const o=c(t.closest("select")||t);if(!(n.has("*")||o.has("*")||o.has("value")||"output"==e.type||"textarea"==e.type&&t.value.includes("{{")))for(const r of f){const o=r.toLowerCase(),i="default"+r,s="Selected"==r?i:o;!n.has(o)&&i in e&&e[o]!==t[s]&&(e[o]=t[s])}})(e,t,r);const i=Object(e.__bound);for(const{name:s,value:a}of t.attributes)n.test(s)||r.has(s)||s in i||e.getAttribute(s)!==a&&e.setAttribute(s,a);for(const{name:n}of[...e.attributes])r.has("*")||r.has(n)||t.hasAttribute(n)||e.removeAttribute(n)},h=(e,n,o,r)=>{if(e.nodeType!==n.nodeType)return m(e,n,o,r);if(3===e.nodeType||8===e.nodeType){const t=n.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(t,o)&&"SCRIPT"!=e.parentNode?.nodeName)return;return e.data?void(e.data!==t&&(e.data=t)):m(e,n,o,r)}if(1!==e.nodeType)return;const i=e,s=n;if(i.tagName!==s.tagName)return m(e,n,o,r);if(!r.skip?.(i,s)&&!i.hasAttribute("data-morph-skip")){if(i.matches(t))return i.isEqualNode(s)?void 0:m(e,n,o,r);p(i,s,r.values),"TEMPLATE"!=i.tagName||i.content.isEqualNode(s.content)||(i.innerHTML=s.innerHTML),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||u(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(u(t))return!0;return!1})(s)||Object.getOwnPropertyDescriptor(Object(i.__ctx?.scope),"$template")||v(i,s,i.__ctx||o,r)}},m=(t,n,o,r)=>{if(e(t,r))return;const i=n.cloneNode(!0);return!1!==r.beforeNodeAdded?.(i)?(l(t,o),t.parentNode.replaceChild(i,t),r.afterNodeRemoved?.(t),b(i,o),i):void 0},b=(e,n)=>{if(e.parentElement?.closest(t))return;const o=n||a(e.parentNode);o?.walk?.(e,o)},v=(t,n,o,r)=>{const i=r.key||s,a=/* @__PURE__ */new Map;for(let e=t.firstChild;e;e=e.nextSibling)if(1===e.nodeType){const t=i(e);if(null==t)continue;a.set(t,e)}const d=e=>e&&1===e.nodeType?i(e):null,c=/* @__PURE__ */new Set;for(let e=n.firstChild;e;e=e.nextSibling)c.add(d(e));const u=n=>{e(n,r)||(l(n,o),t.removeChild(n),r.afterNodeRemoved?.(n))};let f=t.firstChild,p=n.firstChild;const m=e=>{const n=e.cloneNode(!0);!1!==r.beforeNodeAdded?.(n)&&(t.insertBefore(n,f),b(n,o))};for(;p;){const n=p.nextSibling,i=d(p);if(""===f?.data&&p.hasAttribute?.("v-teleport"))f=f.nextSibling;else if(null!=i){const e=a.get(i);e?(e===f?f=f.nextSibling:t.insertBefore(e,f),a.delete(i),h(e,p,o,r)):m(p)}else if(f&&(null==d(f)||!c.has(d(f))&&f.tagName===p.tagName)){if(e(f,r)&&!e(p,r)){f=f.nextSibling;continue}const t=f.nextSibling;h(f,p,o,r),f=t}else{if(f&&!c.has(d(f))){const e=f.nextSibling;u(f),f=e;continue}m(p)}p=n}for(;f;){const e=f.nextSibling;u(f),f=e}},g=(e,t,n={})=>{let o;if("string"==typeof t){const n=document.createElement("template"),r=e instanceof SVGElement;n.innerHTML=r?`<svg>${t.trim()}</svg>`:t.trim();const i=r?n.content.firstChild:n.content;o=1===i.childNodes.length&&i.firstElementChild?i.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.append(...i.childNodes),t})()}else o=t;if(o){const t=()=>{const t=N();e=h(e,o,a(e.parentNode),n)||e,t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},N=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,o=null;try{n=t.selectionStart,o=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,o)}catch{}}},A=e=>{e.scope.$morph=g};export{g as morph,A as morphPlugin};
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueMorph={})}(this,function(e){var t=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||e.__marker||!!t.preserve?.(e)),n="[v-scope\\.visible],[v-scope\\.idle],[v-scope\\.interaction]",o=/^(?:v-|:|@)/,i=/^(?::|v-bind:)/,r=/^v-(?!scope|on:)/,s=["id","data-key","data-id"],a=e=>{for(const t of s){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},l=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},d=e=>e.__ctx||[...e.children||[]].map(d).find(Boolean),c=(e,t)=>(t||d(e))?.dispose?.(e),u=e=>{const t=new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)if(i.test(n)){const e=n.replace(i,"").split(".")[0];t.add(/\.camel\b/.test(n)?e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()):e)}else/^v-model\b/.test(n)?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):r.test(n)&&(t.add("style"),"v-popover"==n&&t.add("popover"));return t},f=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),p=["Value","Checked","Selected"],h=(e,t,n)=>{const i=u(t);e.__anchor&&i.add("style"),n&&((e,t,n)=>{const o=u(t.closest("select")||t);if(!(n.has("*")||o.has("*")||o.has("value")||"output"==e.type||"textarea"==e.type&&t.value.includes("{{")))for(const i of p){const o=i.toLowerCase(),r="default"+i,s="Selected"==i?r:o;!n.has(o)&&r in e&&e[o]!==t[s]&&(e[o]=t[s])}})(e,t,i);const r=Object(e.__bound);for(const{name:s,value:a}of t.attributes)o.test(s)||i.has(s)||s in r||e.getAttribute(s)!==a&&e.setAttribute(s,a);for(const{name:o}of[...e.attributes])i.has("*")||i.has(o)||t.hasAttribute(o)||e.removeAttribute(o)},m=(e,t,o,i)=>{if(e.nodeType!==t.nodeType)return b(e,t,o,i);if(3===e.nodeType||8===e.nodeType){const n=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(n,o)&&"SCRIPT"!=e.parentNode?.nodeName)return;return e.data?void(e.data!==n&&(e.data=n)):b(e,t,o,i)}if(1!==e.nodeType)return;const r=e,s=t;if(r.tagName!==s.tagName)return b(e,t,o,i);if(!i.skip?.(r,s)&&!r.hasAttribute("data-morph-skip")){if(r.matches(n))return r.isEqualNode(s)?void 0:b(e,t,o,i);h(r,s,i.values),"TEMPLATE"!=r.tagName||r.content.isEqualNode(s.content)||(r.innerHTML=s.innerHTML),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||f(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(f(t))return!0;return!1})(s)||Object.getOwnPropertyDescriptor(Object(r.__ctx?.scope),"$template")||g(r,s,r.__ctx||o,i)}},b=(e,n,o,i)=>{if(t(e,i))return;const r=n.cloneNode(!0);return!1!==i.beforeNodeAdded?.(r)?(c(e,o),e.parentNode.replaceChild(r,e),i.afterNodeRemoved?.(e),v(r,o),r):void 0},v=(e,t)=>{if(e.parentElement?.closest(n))return;const o=t||l(e.parentNode);o?.walk?.(e,o)},g=(e,n,o,i)=>{const r=i.key||a,s=new Map;for(let t=e.firstChild;t;t=t.nextSibling)if(1===t.nodeType){const e=r(t);if(null==e)continue;s.set(e,t)}const l=e=>e&&1===e.nodeType?r(e):null,d=new Set;for(let t=n.firstChild;t;t=t.nextSibling)d.add(l(t));const u=n=>{t(n,i)||(c(n,o),e.removeChild(n),i.afterNodeRemoved?.(n))};let f=e.firstChild,p=n.firstChild;const h=t=>{const n=t.cloneNode(!0);!1!==i.beforeNodeAdded?.(n)&&(e.insertBefore(n,f),v(n,o))};for(;p;){const n=p.nextSibling,r=l(p);if(""===f?.data&&p.hasAttribute?.("v-teleport"))f=f.nextSibling;else if(null!=r){const t=s.get(r);t?(t===f?f=f.nextSibling:e.insertBefore(t,f),s.delete(r),m(t,p,o,i)):h(p)}else if(f&&null==l(f)){if(t(f,i)&&!t(p,i)){f=f.nextSibling;continue}const e=f.nextSibling;m(f,p,o,i),f=e}else{if(f&&!d.has(l(f))){const e=f.nextSibling;u(f),f=e;continue}h(p)}p=n}for(;f;){const e=f.nextSibling;u(f),f=e}},y=(e,t,n={})=>{let o;if("string"==typeof t){const n=document.createElement("template"),i=e instanceof SVGElement;n.innerHTML=i?`<svg>${t.trim()}</svg>`:t.trim();const r=i?n.content.firstChild:n.content;o=1===r.childNodes.length&&r.firstElementChild?r.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.append(...r.childNodes),t})()}else o=t;if(o){const t=()=>{const t=x();e=m(e,o,l(e.parentNode),n)||e,t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},x=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,o=null;try{n=t.selectionStart,o=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,o)}catch{}}};e.morph=y,e.morphPlugin=e=>{e.scope.$morph=y}});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueMorph={})}(this,function(e){var t=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||e.__marker||!!t.preserve?.(e)),n="[v-scope\\.visible],[v-scope\\.idle],[v-scope\\.interaction]",o=/^(?:v-|:|@)/,i=/^(?::|v-bind:)/,r=/^v-(?!scope|on:)/,s=["id","data-key","data-id"],a=e=>{for(const t of s){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},d=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},l=e=>e.__ctx||[...e.children||[]].map(l).find(Boolean),c=(e,t)=>(t||l(e))?.dispose?.(e),u=e=>{const t=new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)if(i.test(n)){const e=n.replace(i,"").split(".")[0];t.add(/\.camel\b/.test(n)?e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()):e)}else/^v-model\b/.test(n)?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):r.test(n)&&(t.add("style"),"v-popover"==n&&t.add("popover"));return t},f=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),p=["Value","Checked","Selected"],h=(e,t,n)=>{const i=u(t);e.__anchor&&i.add("style");for(const o of e.constructor.morphOwnedAttributes||[])i.add(o);n&&((e,t,n)=>{const o=u(t.closest("select")||t);if(!(n.has("*")||o.has("*")||o.has("value")||"output"==e.type||"textarea"==e.type&&t.value.includes("{{")))for(const i of p){const o=i.toLowerCase(),r="default"+i,s="Selected"==i?r:o;!n.has(o)&&r in e&&e[o]!==t[s]&&(e[o]=t[s])}})(e,t,i);const r=Object(e.__bound);for(const{name:s,value:a}of t.attributes)o.test(s)||i.has(s)||s in r||e.getAttribute(s)!==a&&e.setAttribute(s,a);for(const{name:o}of[...e.attributes])i.has("*")||i.has(o)||t.hasAttribute(o)||e.removeAttribute(o)},m=(e,t,o,i)=>{if(e.nodeType!==t.nodeType)return b(e,t,o,i);if(3===e.nodeType||8===e.nodeType){const n=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(n,o)&&"SCRIPT"!=e.parentNode?.nodeName)return;return e.data?void(e.data!==n&&(e.data=n)):b(e,t,o,i)}if(1!==e.nodeType)return;const r=e,s=t;if(r.tagName!==s.tagName)return b(e,t,o,i);if(!i.skip?.(r,s)&&!r.hasAttribute("data-morph-skip")){if(r.matches(n))return r.isEqualNode(s)?void 0:b(e,t,o,i);h(r,s,i.values),"TEMPLATE"!=r.tagName||r.content.isEqualNode(s.content)||(r.innerHTML=s.innerHTML),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||f(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(f(t))return!0;return!1})(s)||Object.getOwnPropertyDescriptor(Object(r.__ctx?.scope),"$template")||g(r,s,r.__ctx||o,i)}},b=(e,n,o,i)=>{if(t(e,i))return;const r=n.cloneNode(!0);return!1!==i.beforeNodeAdded?.(r)?(c(e,o),e.parentNode.replaceChild(r,e),i.afterNodeRemoved?.(e),v(r,o),r):void 0},v=(e,t)=>{if(e.parentElement?.closest(n))return;const o=t||d(e.parentNode);o?.walk?.(e,o)},g=(e,n,o,i)=>{const r=i.key||a,s=new Map;for(let t=e.firstChild;t;t=t.nextSibling)if(1===t.nodeType){const e=r(t);if(null==e)continue;s.set(e,t)}const d=e=>e&&1===e.nodeType?r(e):null,l=new Set;for(let t=n.firstChild;t;t=t.nextSibling)l.add(d(t));const u=n=>{t(n,i)||(c(n,o),e.removeChild(n),i.afterNodeRemoved?.(n))};let f=e.firstChild,p=n.firstChild;const h=t=>{const n=t.cloneNode(!0);!1!==i.beforeNodeAdded?.(n)&&(e.insertBefore(n,f),v(n,o))};for(;p;){const n=p.nextSibling,r=d(p);if(""===f?.data&&p.hasAttribute?.("v-teleport"))f=f.nextSibling;else if(null!=r){const t=s.get(r);t?(t===f?f=f.nextSibling:e.insertBefore(t,f),s.delete(r),m(t,p,o,i)):h(p)}else if(f&&(null==d(f)||!l.has(d(f))&&f.tagName===p.tagName)){if(t(f,i)&&!t(p,i)){f=f.nextSibling;continue}const e=f.nextSibling;m(f,p,o,i),f=e}else{if(f&&!l.has(d(f))){const e=f.nextSibling;u(f),f=e;continue}h(p)}p=n}for(;f;){const e=f.nextSibling;u(f),f=e}},y=(e,t,n={})=>{let o;if("string"==typeof t){const n=document.createElement("template"),i=e instanceof SVGElement;n.innerHTML=i?`<svg>${t.trim()}</svg>`:t.trim();const r=i?n.content.firstChild:n.content;o=1===r.childNodes.length&&r.firstElementChild?r.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.append(...r.childNodes),t})()}else o=t;if(o){const t=()=>{const t=N();e=m(e,o,d(e.parentNode),n)||e,t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},N=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,o=null;try{n=t.selectionStart,o=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,o)}catch{}}};e.morph=y,e.morphPlugin=e=>{e.scope.$morph=y}});
@@ -1,5 +1,4 @@
1
1
  var LiteVueNavigate = (function(exports) {
2
- /** Selector matching every scope root, deferred or not. */
3
2
  var SCOPE_SELECTOR = ["[v-scope]", ...[
4
3
  "visible",
5
4
  "idle",
@@ -31,10 +30,8 @@ var LiteVueNavigate = (function(exports) {
31
30
  }));
32
31
  var assets = (doc) => [...doc.head.querySelectorAll("[data-navigate-track]")].map((el) => el.getAttribute("src") || el.getAttribute("href")).sort().join();
33
32
  /**
34
- * Adds the next page's head elements and returns a function dropping the
35
- * current page's, run after the swap so the old styles hold until then.
36
33
  * Scripts are left out both ways: fetched ones never run, and removing a
37
- * script does not unload it. New stylesheets load before the swap.
34
+ * script does not unload it.
38
35
  */
39
36
  var mergeHead = async (doc) => {
40
37
  const sel = "link,style,meta";
@@ -72,11 +69,6 @@ var LiteVueNavigate = (function(exports) {
72
69
  for (; el; el = el.parentElement) if (el.__ctx) return true;
73
70
  return false;
74
71
  };
75
- /**
76
- * Morph with the app's roots kept in step. Morph releases the roots it
77
- * removes; at page level there is no scope to bind what it adds, so roots
78
- * the page adds are mounted here.
79
- */
80
72
  var render = (app, patch, from, to, values) => {
81
73
  const added = [];
82
74
  patch(from, to, {
@@ -172,7 +164,6 @@ var LiteVueNavigate = (function(exports) {
172
164
  else if (res?.redirected) location.assign(res.url);
173
165
  }
174
166
  };
175
- /** The URL a link leads to, when navigate would take it over. */
176
167
  const linkTo = (e) => {
177
168
  const a = e.target.closest?.("a[href]");
178
169
  if (!(a instanceof HTMLAnchorElement)) return;
@@ -1,4 +1,3 @@
1
- /** Selector matching every scope root, deferred or not. */
2
1
  var SCOPE_SELECTOR = ["[v-scope]", ...[
3
2
  "visible",
4
3
  "idle",
@@ -30,10 +29,8 @@ var emit = (name, detail, cancelable = false) => document.dispatchEvent(new Cust
30
29
  }));
31
30
  var assets = (doc) => [...doc.head.querySelectorAll("[data-navigate-track]")].map((el) => el.getAttribute("src") || el.getAttribute("href")).sort().join();
32
31
  /**
33
- * Adds the next page's head elements and returns a function dropping the
34
- * current page's, run after the swap so the old styles hold until then.
35
32
  * Scripts are left out both ways: fetched ones never run, and removing a
36
- * script does not unload it. New stylesheets load before the swap.
33
+ * script does not unload it.
37
34
  */
38
35
  var mergeHead = async (doc) => {
39
36
  const sel = "link,style,meta";
@@ -71,11 +68,6 @@ var hasCtxAbove = (el) => {
71
68
  for (; el; el = el.parentElement) if (el.__ctx) return true;
72
69
  return false;
73
70
  };
74
- /**
75
- * Morph with the app's roots kept in step. Morph releases the roots it
76
- * removes; at page level there is no scope to bind what it adds, so roots
77
- * the page adds are mounted here.
78
- */
79
71
  var render = (app, patch, from, to, values) => {
80
72
  const added = [];
81
73
  patch(from, to, {
@@ -171,7 +163,6 @@ var navigate = (app, options = {}) => {
171
163
  else if (res?.redirected) location.assign(res.url);
172
164
  }
173
165
  };
174
- /** The URL a link leads to, when navigate would take it over. */
175
166
  const linkTo = (e) => {
176
167
  const a = e.target.closest?.("a[href]");
177
168
  if (!(a instanceof HTMLAnchorElement)) return;
@@ -1,7 +1,6 @@
1
1
  var LiteVuePersist = (function(exports, _aevantec_litevue) {
2
2
  // src/plugins/persist/index.ts
3
3
  var PREFIX = "litevue:";
4
- /** Custom storages registered by name, usable as a directive modifier. */
5
4
  var registry = Object.create(null);
6
5
  var defaultStorage = "local";
7
6
  var builtin = (name) => {
@@ -35,11 +34,6 @@ var LiteVuePersist = (function(exports, _aevantec_litevue) {
35
34
  var setDefaultStorage = (storage) => {
36
35
  defaultStorage = storage;
37
36
  };
38
- /**
39
- * Which own properties of `target` can round-trip through storage. Methods are
40
- * behavior, not state; getter-only properties are derived and would throw on
41
- * restore. An explicit list is filtered too, so naming a getter is a no-op.
42
- */
43
37
  var persistable = (target, keys) => (keys ?? Object.keys(target)).filter((k) => {
44
38
  if (k[0] === "$") return false;
45
39
  const desc = Object.getOwnPropertyDescriptor(target, k);
@@ -48,7 +42,6 @@ var LiteVuePersist = (function(exports, _aevantec_litevue) {
48
42
  if (raw && raw.__v_isRef === true && raw.__v_isReadonly === true) return false;
49
43
  return typeof target[k] !== "function";
50
44
  });
51
- /** Restore saved values, then keep storage in sync with every change. */
52
45
  var sync = (target, key, keys, storage, run) => {
53
46
  if (!storage) return run(() => {});
54
47
  const fields = persistable(target, keys);
@@ -1,7 +1,6 @@
1
1
  import { store, watchEffect } from "@aevantec/litevue";
2
2
  // src/plugins/persist/index.ts
3
3
  var PREFIX = "litevue:";
4
- /** Custom storages registered by name, usable as a directive modifier. */
5
4
  var registry = Object.create(null);
6
5
  var defaultStorage = "local";
7
6
  var builtin = (name) => {
@@ -35,11 +34,6 @@ var registerStorage = (name, storage) => {
35
34
  var setDefaultStorage = (storage) => {
36
35
  defaultStorage = storage;
37
36
  };
38
- /**
39
- * Which own properties of `target` can round-trip through storage. Methods are
40
- * behavior, not state; getter-only properties are derived and would throw on
41
- * restore. An explicit list is filtered too, so naming a getter is a no-op.
42
- */
43
37
  var persistable = (target, keys) => (keys ?? Object.keys(target)).filter((k) => {
44
38
  if (k[0] === "$") return false;
45
39
  const desc = Object.getOwnPropertyDescriptor(target, k);
@@ -48,7 +42,6 @@ var persistable = (target, keys) => (keys ?? Object.keys(target)).filter((k) =>
48
42
  if (raw && raw.__v_isRef === true && raw.__v_isReadonly === true) return false;
49
43
  return typeof target[k] !== "function";
50
44
  });
51
- /** Restore saved values, then keep storage in sync with every change. */
52
45
  var sync = (target, key, keys, storage, run) => {
53
46
  if (!storage) return run(() => {});
54
47
  const fields = persistable(target, keys);
@@ -1 +1 @@
1
- var LiteVueTransition=function(e){var t=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),n=(e,n)=>{const a=e.split(","),i=n.split(",");let s=0;for(let l=0;l<a.length;l++)s=Math.max(s,t(a[l])+t(i[l%i.length]));return s};return e.transition=e=>{e.directive("transition",({el:e,get:t,effect:a,arg:i,modifiers:s,exp:l})=>{const r=e,o=i||"v",c=e=>`${o}-${e}`;let m,v=0;const u=()=>{r.classList.remove(c("enter-from"),c("enter-active"),c("enter-to"),c("leave-from"),c("leave-active"),c("leave-to"))},d=(e,t)=>{const a=++v;u(),r.classList.add(c(e+"-from"),c(e+"-active")),r.offsetWidth,r.classList.remove(c(e+"-from")),r.classList.add(c(e+"-to")),clearTimeout(m),m=setTimeout(()=>{a===v&&(u(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(n(t.transitionDuration,t.transitionDelay),n(t.animationDuration,t.animationDelay))})(r))};if(!l){let e=!0;return Promise.resolve().then(()=>{e&&d("enter")}),r.__leave=()=>(e=!1,r.__leaving=1,new Promise(e=>d("leave",e))),()=>{e=!1,clearTimeout(m),u(),delete r.__leave}}const y="none"==r.style.display?"":r.style.display;let f;return a(()=>{const e=!!t();if(e===f)return;const n=null!=f;f=e,e?(r.style.display=y,(n||s?.appear)&&d("enter")):n?d("leave",()=>{r.style.display="none"}):r.style.display="none"}),()=>{clearTimeout(m),u(),!1===f&&(r.style.display="none")}})},e}({});
1
+ var LiteVueTransition=function(e){var t=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),n=(e,n)=>{const a=e.split(","),s=n.split(",");let i=0;for(let l=0;l<a.length;l++)i=Math.max(i,t(a[l])+t(s[l%s.length]));return i};return e.transition=e=>{e.directive("transition",({el:e,get:t,effect:a,arg:s,modifiers:i,exp:l})=>{const r=e,o=s||"v",c=e=>`${o}-${e}`;let m,u=0;const v=()=>{r.classList.remove(c("enter-from"),c("enter-active"),c("enter-to"),c("leave-from"),c("leave-active"),c("leave-to"))},d=(e,t)=>{const a=++u;v(),r.classList.add(c(e+"-from"),c(e+"-active")),r.offsetWidth,r.classList.remove(c(e+"-from")),r.classList.add(c(e+"-to")),clearTimeout(m),m=setTimeout(()=>{a===u&&(v(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(n(t.transitionDuration,t.transitionDelay),n(t.animationDuration,t.animationDelay))})(r))};if(!l){let e=!0;return Promise.resolve().then(()=>{e&&d("enter")}),r.__leave=()=>(e=!1,new Promise(e=>d("leave",e))),()=>{e=!1,clearTimeout(m),v(),delete r.__leave}}const y="none"==r.style.display?"":r.style.display;let f;return a(()=>{const e=!!t();if(e===f)return;const n=null!=f;f=e,e?(r.style.display=y,(n||i?.appear)&&d("enter")):n?d("leave",()=>{r.style.display="none"}):r.style.display="none"}),()=>{clearTimeout(m),v(),!1===f&&(r.style.display="none")}})},e}({});
@@ -1 +1 @@
1
- var e=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),t=(t,a)=>{const l=t.split(","),s=a.split(",");let n=0;for(let i=0;i<l.length;i++)n=Math.max(n,e(l[i])+e(s[i%s.length]));return n},a=e=>{e.directive("transition",({el:e,get:a,effect:l,arg:s,modifiers:n,exp:i})=>{const o=e,r=s||"v",c=e=>`${r}-${e}`;let m,v=0;const d=()=>{o.classList.remove(c("enter-from"),c("enter-active"),c("enter-to"),c("leave-from"),c("leave-active"),c("leave-to"))},y=(e,a)=>{const l=++v;d(),o.classList.add(c(e+"-from"),c(e+"-active")),o.offsetWidth,o.classList.remove(c(e+"-from")),o.classList.add(c(e+"-to")),clearTimeout(m),m=setTimeout(()=>{l===v&&(d(),a&&a())},(e=>{const a=getComputedStyle(e);return Math.max(t(a.transitionDuration,a.transitionDelay),t(a.animationDuration,a.animationDelay))})(o))};if(!i){let e=!0;return Promise.resolve().then(()=>{e&&y("enter")}),o.__leave=()=>(e=!1,o.__leaving=1,new Promise(e=>y("leave",e))),()=>{e=!1,clearTimeout(m),d(),delete o.__leave}}const p="none"==o.style.display?"":o.style.display;let u;return l(()=>{const e=!!a();if(e===u)return;const t=null!=u;u=e,e?(o.style.display=p,(t||n?.appear)&&y("enter")):t?y("leave",()=>{o.style.display="none"}):o.style.display="none"}),()=>{clearTimeout(m),d(),!1===u&&(o.style.display="none")}})};export{a as transition};
1
+ var e=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),t=(t,a)=>{const s=t.split(","),l=a.split(",");let n=0;for(let i=0;i<s.length;i++)n=Math.max(n,e(s[i])+e(l[i%l.length]));return n},a=e=>{e.directive("transition",({el:e,get:a,effect:s,arg:l,modifiers:n,exp:i})=>{const o=e,r=l||"v",c=e=>`${r}-${e}`;let m,d=0;const v=()=>{o.classList.remove(c("enter-from"),c("enter-active"),c("enter-to"),c("leave-from"),c("leave-active"),c("leave-to"))},y=(e,a)=>{const s=++d;v(),o.classList.add(c(e+"-from"),c(e+"-active")),o.offsetWidth,o.classList.remove(c(e+"-from")),o.classList.add(c(e+"-to")),clearTimeout(m),m=setTimeout(()=>{s===d&&(v(),a&&a())},(e=>{const a=getComputedStyle(e);return Math.max(t(a.transitionDuration,a.transitionDelay),t(a.animationDuration,a.animationDelay))})(o))};if(!i){let e=!0;return Promise.resolve().then(()=>{e&&y("enter")}),o.__leave=()=>(e=!1,new Promise(e=>y("leave",e))),()=>{e=!1,clearTimeout(m),v(),delete o.__leave}}const p="none"==o.style.display?"":o.style.display;let u;return s(()=>{const e=!!a();if(e===u)return;const t=null!=u;u=e,e?(o.style.display=p,(t||n?.appear)&&y("enter")):t?y("leave",()=>{o.style.display="none"}):o.style.display="none"}),()=>{clearTimeout(m),v(),!1===u&&(o.style.display="none")}})};export{a as transition};
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueTransition={})}(this,function(e){var t=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),n=(e,n)=>{const i=e.split(","),o=n.split(",");let s=0;for(let a=0;a<i.length;a++)s=Math.max(s,t(i[a])+t(o[a%o.length]));return s};e.transition=e=>{e.directive("transition",({el:e,get:t,effect:i,arg:o,modifiers:s,exp:a})=>{const l=e,r=o||"v",c=e=>`${r}-${e}`;let d,f=0;const m=()=>{l.classList.remove(c("enter-from"),c("enter-active"),c("enter-to"),c("leave-from"),c("leave-active"),c("leave-to"))},u=(e,t)=>{const i=++f;m(),l.classList.add(c(e+"-from"),c(e+"-active")),l.offsetWidth,l.classList.remove(c(e+"-from")),l.classList.add(c(e+"-to")),clearTimeout(d),d=setTimeout(()=>{i===f&&(m(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(n(t.transitionDuration,t.transitionDelay),n(t.animationDuration,t.animationDelay))})(l))};if(!a){let e=!0;return Promise.resolve().then(()=>{e&&u("enter")}),l.__leave=()=>(e=!1,l.__leaving=1,new Promise(e=>u("leave",e))),()=>{e=!1,clearTimeout(d),m(),delete l.__leave}}const p="none"==l.style.display?"":l.style.display;let y;return i(()=>{const e=!!t();if(e===y)return;const n=null!=y;y=e,e?(l.style.display=p,(n||s?.appear)&&u("enter")):n?u("leave",()=>{l.style.display="none"}):l.style.display="none"}),()=>{clearTimeout(d),m(),!1===y&&(l.style.display="none")}})}});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueTransition={})}(this,function(e){var t=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),n=(e,n)=>{const i=e.split(","),o=n.split(",");let s=0;for(let a=0;a<i.length;a++)s=Math.max(s,t(i[a])+t(o[a%o.length]));return s};e.transition=e=>{e.directive("transition",({el:e,get:t,effect:i,arg:o,modifiers:s,exp:a})=>{const l=e,r=o||"v",c=e=>`${r}-${e}`;let d,f=0;const m=()=>{l.classList.remove(c("enter-from"),c("enter-active"),c("enter-to"),c("leave-from"),c("leave-active"),c("leave-to"))},u=(e,t)=>{const i=++f;m(),l.classList.add(c(e+"-from"),c(e+"-active")),l.offsetWidth,l.classList.remove(c(e+"-from")),l.classList.add(c(e+"-to")),clearTimeout(d),d=setTimeout(()=>{i===f&&(m(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(n(t.transitionDuration,t.transitionDelay),n(t.animationDuration,t.animationDelay))})(l))};if(!a){let e=!0;return Promise.resolve().then(()=>{e&&u("enter")}),l.__leave=()=>(e=!1,new Promise(e=>u("leave",e))),()=>{e=!1,clearTimeout(d),m(),delete l.__leave}}const p="none"==l.style.display?"":l.style.display;let y;return i(()=>{const e=!!t();if(e===y)return;const n=null!=y;y=e,e?(l.style.display=p,(n||s?.appear)&&u("enter")):n?u("leave",()=>{l.style.display="none"}):l.style.display="none"}),()=>{clearTimeout(d),m(),!1===y&&(l.style.display="none")}})}});
@@ -9,8 +9,7 @@ export interface App {
9
9
  directive(name: string, def?: Directive): any;
10
10
  /**
11
11
  * Register a component — a function returning a scope object, used from
12
- * `v-scope="Name()"` — or retrieve one by name. Gives components a named
13
- * home, so a plugin can contribute one without reaching into `app.scope`.
12
+ * `v-scope="Name()"` — or retrieve one by name.
14
13
  */
15
14
  component(name: string, factory?: ComponentFactory): any;
16
15
  /**
@@ -36,9 +35,7 @@ export interface App {
36
35
  }
37
36
  /**
38
37
  * A plugin may return a teardown function, run on full unmount; returning
39
- * nothing stays valid. Mirrors directives, which already return their cleanup.
40
- * Without it, page-wide resources — observers, listeners, matchMedia — could
41
- * never be given back.
38
+ * nothing stays valid.
42
39
  */
43
40
  export type PluginTeardown = () => void;
44
41
  /**
@@ -9,8 +9,7 @@ export interface App {
9
9
  directive(name: string, def?: Directive): any;
10
10
  /**
11
11
  * Register a component — a function returning a scope object, used from
12
- * `v-scope="Name()"` — or retrieve one by name. Gives components a named
13
- * home, so a plugin can contribute one without reaching into `app.scope`.
12
+ * `v-scope="Name()"` — or retrieve one by name.
14
13
  */
15
14
  component(name: string, factory?: ComponentFactory): any;
16
15
  /**
@@ -36,9 +35,7 @@ export interface App {
36
35
  }
37
36
  /**
38
37
  * A plugin may return a teardown function, run on full unmount; returning
39
- * nothing stays valid. Mirrors directives, which already return their cleanup.
40
- * Without it, page-wide resources — observers, listeners, matchMedia — could
41
- * never be given back.
38
+ * nothing stays valid.
42
39
  */
43
40
  export type PluginTeardown = () => void;
44
41
  /**
@@ -12,10 +12,6 @@ export declare class Block {
12
12
  constructor(template: Element, parentCtx: Context, isRoot?: boolean);
13
13
  insert(parent: Element, anchor?: Node | null): void;
14
14
  remove(): void;
15
- /**
16
- * The bookkeeping half of `remove()`, for a block whose nodes are already
17
- * gone — `remove()`'s `removeChild` calls would throw on them.
18
- */
19
15
  discard(): void;
20
16
  teardown(): void;
21
17
  }
@@ -12,10 +12,6 @@ export declare class Block {
12
12
  constructor(template: Element, parentCtx: Context, isRoot?: boolean);
13
13
  insert(parent: Element, anchor?: Node | null): void;
14
14
  remove(): void;
15
- /**
16
- * The bookkeeping half of `remove()`, for a block whose nodes are already
17
- * gone — `remove()`'s `removeChild` calls would throw on them.
18
- */
19
15
  discard(): void;
20
16
  teardown(): void;
21
17
  }
@@ -23,11 +23,6 @@ export interface Context {
23
23
  dispose?: (node: Node) => void;
24
24
  }
25
25
  export declare const createContext: (parent?: Context) => Context;
26
- /**
27
- * Framework-provided, so non-enumerable: `Object.assign`-ing one scope onto
28
- * another must copy the user's data and leave these alone. v-for does exactly
29
- * that on every update, which reset each row's $id and wiped its $refs.
30
- */
31
26
  export declare const hide: (scope: any, key: string, value: any) => any;
32
27
  export declare const createScopedContext: (ctx: Context, data?: {}, isRow?: boolean) => Context;
33
28
  export declare const bindContextMethods: (scope: Record<string, any>, raw?: Record<string, any>) => void;
@@ -23,11 +23,6 @@ export interface Context {
23
23
  dispose?: (node: Node) => void;
24
24
  }
25
25
  export declare const createContext: (parent?: Context) => Context;
26
- /**
27
- * Framework-provided, so non-enumerable: `Object.assign`-ing one scope onto
28
- * another must copy the user's data and leave these alone. v-for does exactly
29
- * that on every update, which reset each row's $id and wiped its $refs.
30
- */
31
26
  export declare const hide: (scope: any, key: string, value: any) => any;
32
27
  export declare const createScopedContext: (ctx: Context, data?: {}, isRow?: boolean) => Context;
33
28
  export declare const bindContextMethods: (scope: Record<string, any>, raw?: Record<string, any>) => void;
@@ -8,7 +8,6 @@ export interface UiState {
8
8
  bottom?: number;
9
9
  w?: number;
10
10
  h?: number;
11
- /** dock-bottom height and dock-left / dock-right widths, remembered separately */
12
11
  bh?: number;
13
12
  lw?: number;
14
13
  rw?: number;
@@ -19,8 +18,6 @@ export declare const loadTheme: () => ThemeMode;
19
18
  export declare const saveTheme: (theme: ThemeMode) => void;
20
19
  export declare const saveUi: (patch: UiState) => void;
21
20
  export declare const themeIcons: Record<ThemeMode, string>;
22
- /** Dock icons: an outlined viewport with the docked region filled, per browser
23
- * devtools convention. Floating shows a detached window. */
24
21
  export declare const dockIcons: Record<Dock, string>;
25
22
  export declare const dockOptions: MenuOption<Dock>[];
26
23
  export declare const themeOptions: MenuOption<ThemeMode>[];
@@ -8,7 +8,6 @@ export interface UiState {
8
8
  bottom?: number;
9
9
  w?: number;
10
10
  h?: number;
11
- /** dock-bottom height and dock-left / dock-right widths, remembered separately */
12
11
  bh?: number;
13
12
  lw?: number;
14
13
  rw?: number;
@@ -19,8 +18,6 @@ export declare const loadTheme: () => ThemeMode;
19
18
  export declare const saveTheme: (theme: ThemeMode) => void;
20
19
  export declare const saveUi: (patch: UiState) => void;
21
20
  export declare const themeIcons: Record<ThemeMode, string>;
22
- /** Dock icons: an outlined viewport with the docked region filled, per browser
23
- * devtools convention. Floating shows a detached window. */
24
21
  export declare const dockIcons: Record<Dock, string>;
25
22
  export declare const dockOptions: MenuOption<Dock>[];
26
23
  export declare const themeOptions: MenuOption<ThemeMode>[];
@@ -4,9 +4,7 @@ export interface MenuOption<T extends string> {
4
4
  icon: string;
5
5
  }
6
6
  export interface Menu<T extends string> {
7
- /** The wrapper to place in the header. */
8
7
  el: HTMLElement;
9
- /** Shows `value` as current, without calling `onSelect`. */
10
8
  set: (value: T) => void;
11
9
  }
12
10
  export declare const createMenu: <T extends string>(name: string, options: MenuOption<T>[], onSelect: (value: T) => void) => Menu<T>;
@@ -4,9 +4,7 @@ export interface MenuOption<T extends string> {
4
4
  icon: string;
5
5
  }
6
6
  export interface Menu<T extends string> {
7
- /** The wrapper to place in the header. */
8
7
  el: HTMLElement;
9
- /** Shows `value` as current, without calling `onSelect`. */
10
8
  set: (value: T) => void;
11
9
  }
12
10
  export declare const createMenu: <T extends string>(name: string, options: MenuOption<T>[], onSelect: (value: T) => void) => Menu<T>;
@@ -1,8 +1,4 @@
1
1
  import type { LiteVueDevtools } from '../devtools.mjs';
2
- /**
3
- * Plugins describe the app, not a scope, so the view opens from the panel bar
4
- * and takes the whole body rather than a third sidebar tab.
5
- */
6
2
  export declare const createPluginsView: (devtools: LiteVueDevtools) => {
7
3
  btn: HTMLElement;
8
4
  el: HTMLElement;
@@ -1,8 +1,4 @@
1
1
  import type { LiteVueDevtools } from '../devtools';
2
- /**
3
- * Plugins describe the app, not a scope, so the view opens from the panel bar
4
- * and takes the whole body rather than a third sidebar tab.
5
- */
6
2
  export declare const createPluginsView: (devtools: LiteVueDevtools) => {
7
3
  btn: HTMLElement;
8
4
  el: HTMLElement;
@@ -1,23 +1,8 @@
1
1
  /**
2
- * Panel stylesheet. Note the template below is a *string* — comments inside it
3
- * ship verbatim, so explanations belong out here where terser strips them.
4
- *
5
2
  * `[hidden]` is forced with `!important` because an author `display`, such as
6
- * `.side`'s flex, beats the UA rule, and the plugins view hides by `hidden`.
7
- *
8
- * Docked layouts (`.dock-left` / `.dock-bottom` / `.dock-right`) give the tree a full viewport
9
- * edge, as browser devtools do; only the cross-axis stays resizable, since the
10
- * other would fight the dock.
11
- *
12
- * `min-height` is 320px, not 200: against the fixed chrome (34px header, 28px
13
- * tabs, 23px filter) 200 left about five rows of tree, too few to read. 320
14
- * keeps roughly eleven.
3
+ * `.side`'s flex, beats the UA rule.
15
4
  *
16
5
  * Sizing uses an explicit `.grip` rather than CSS `resize`, whose handle is
17
- * always bottom-right — the wrong corner once docked, where dragging down would
18
- * grow the panel upward. Each mode gets a handle on the edge that moves.
19
- *
20
- * `.menu` is absolute inside the header's `.menu-wrap`; the panel clips its
21
- * overflow, which its 320px minimum height leaves room for.
6
+ * always bottom-right.
22
7
  */
23
8
  export declare const css = "\n:host {\n all: initial;\n --bg: #1e1e1e;\n --bg2: #252526;\n --hover: #2a2d2e;\n --border: #3c3c3c;\n --fg: #d4d4d4;\n --muted: #808080;\n --accent: #42b883;\n --sel: #094771;\n --key: #9cdcfe;\n --val: #ce9178;\n --exp: #6a9955;\n}\n:host(.light) {\n --bg: #ffffff;\n --bg2: #f3f3f3;\n --hover: #ececec;\n --border: #d0d0d0;\n --fg: #383a42;\n --muted: #8e8e90;\n --sel: #d2e5f5;\n --key: #0451a5;\n --val: #a31515;\n --exp: #22863a;\n}\n* {\n box-sizing: border-box;\n}\n.pill, .panel {\n position: fixed;\n right: 12px;\n bottom: 12px;\n z-index: 2147483646;\n font: 11px/1.5 ui-monospace, Menlo, Consolas, monospace;\n color: var(--fg);\n}\n.pill {\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 999px;\n padding: 4px 10px;\n cursor: pointer;\n user-select: none;\n}\n.pill:hover {\n border-color: var(--accent);\n}\n.panel {\n display: flex;\n flex-direction: column;\n width: 760px;\n max-width: calc(100vw - 24px);\n height: 450px;\n max-height: calc(100vh - 24px);\n min-width: 320px;\n min-height: 320px;\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 6px;\n overflow: hidden;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);\n}\n.panel.dock-bottom {\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n max-width: none;\n border-radius: 0;\n border-left: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-left,\n.panel.dock-right {\n top: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n max-height: none;\n border-radius: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-left {\n right: auto;\n left: 0;\n border-left: 0;\n border-right: 1px solid var(--border);\n}\n.panel.dock-left .header,\n.panel.dock-bottom .header,\n.panel.dock-right .header {\n cursor: default;\n}\n.grip {\n position: absolute;\n z-index: 1;\n touch-action: none;\n right: 0;\n bottom: 0;\n width: 14px;\n height: 14px;\n cursor: nwse-resize;\n background: linear-gradient(135deg, transparent 50%, var(--border) 50%);\n}\n.panel.dock-bottom .grip {\n top: 0;\n left: 0;\n width: auto;\n height: 5px;\n cursor: ns-resize;\n background: none;\n}\n.panel.dock-left .grip,\n.panel.dock-right .grip {\n top: 0;\n left: 0;\n width: 5px;\n height: auto;\n cursor: ew-resize;\n background: none;\n}\n.panel.dock-left .grip {\n left: auto;\n}\n.panel.dock-left .grip:hover,\n.panel.dock-left .grip.active,\n.panel.dock-bottom .grip:hover,\n.panel.dock-bottom .grip.active,\n.panel.dock-right .grip:hover,\n.panel.dock-right .grip.active {\n background: var(--accent);\n}\n.header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 8px;\n background: var(--bg2);\n border-bottom: 1px solid var(--border);\n user-select: none;\n cursor: move;\n}\n.title {\n color: var(--accent);\n font-weight: bold;\n margin-right: auto;\n}\n.btn {\n display: flex;\n align-items: center;\n background: none;\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 3px 7px;\n cursor: pointer;\n}\n.btn svg {\n display: block;\n}\n.btn:hover {\n border-color: var(--accent);\n}\n.btn.active {\n background: var(--accent);\n border-color: var(--accent);\n color: var(--bg);\n}\n.btn svg + svg {\n margin-left: 4px;\n opacity: 0.7;\n}\n.menu-wrap {\n position: relative;\n}\n.menu {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 2;\n display: flex;\n flex-direction: column;\n min-width: 140px;\n padding: 3px;\n background: var(--bg2);\n border: 1px solid var(--border);\n border-radius: 4px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);\n cursor: default;\n}\n.item {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 8px;\n background: none;\n border: 0;\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n text-align: left;\n white-space: nowrap;\n cursor: pointer;\n}\n.item:hover,\n.item:focus-visible {\n background: var(--hover);\n outline: none;\n}\n.item[aria-checked='true'] {\n color: var(--accent);\n}\n.body {\n display: flex;\n flex: 1;\n min-height: 0;\n}\n[hidden] {\n display: none !important;\n}\n.plugins {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.plugin {\n display: flex;\n gap: 8px;\n padding: 3px 10px;\n align-items: baseline;\n}\n.plugin .name {\n min-width: 120px;\n}\n.plugin .gave {\n flex: 1;\n color: var(--muted);\n word-break: break-word;\n}\n.plugin .flag {\n color: var(--muted);\n opacity: 0.7;\n}\n.side {\n display: flex;\n flex-direction: column;\n width: 40%;\n min-width: 0;\n border-right: 1px solid var(--border);\n}\n.tabs {\n display: flex;\n border-bottom: 1px solid var(--border);\n user-select: none;\n}\n.tab {\n flex: 1;\n padding: 4px 0;\n text-align: center;\n color: var(--muted);\n border-bottom: 2px solid transparent;\n cursor: pointer;\n}\n.tab:hover {\n color: var(--fg);\n}\n.tab.active {\n color: var(--fg);\n border-bottom-color: var(--accent);\n}\n.filter {\n margin: 6px 6px 2px;\n background: var(--bg2);\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 2px 6px;\n outline: none;\n}\n.filter:focus {\n border-color: var(--accent);\n}\n.filter::placeholder {\n color: var(--muted);\n}\n.tree {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.state {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.row {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 2px 8px;\n white-space: nowrap;\n overflow: hidden;\n cursor: pointer;\n}\n.row .label {\n flex-shrink: 0;\n}\n.row .arrow {\n cursor: pointer;\n padding: 3px 4px;\n margin: -3px -4px;\n box-sizing: content-box;\n}\n.row .arrow:hover {\n color: var(--key);\n}\n.row .hit {\n color: var(--exp);\n opacity: 0.75;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.row:hover {\n background: var(--hover);\n}\n.row.sel {\n background: var(--sel);\n}\n.row .name {\n color: var(--key);\n}\n.row .punct {\n color: var(--muted);\n}\n.row .exp {\n color: var(--exp);\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.prop {\n display: flex;\n gap: 6px;\n padding: 2px 8px;\n align-items: center;\n}\n.prop .key {\n color: var(--key);\n flex-shrink: 0;\n}\n.arrow {\n width: 12px;\n flex-shrink: 0;\n color: var(--muted);\n font-size: 9px;\n transition: transform 0.1s;\n}\n.arrow.open {\n transform: rotate(90deg);\n}\n.spacer {\n width: 12px;\n flex-shrink: 0;\n}\n.prop.toggle {\n cursor: pointer;\n user-select: none;\n}\n.prop.toggle:hover {\n background: var(--hover);\n}\n.preview {\n flex: 1;\n min-width: 0;\n color: var(--muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.muted {\n color: var(--muted);\n padding: 2px 8px;\n}\n.check {\n margin: 0;\n flex-shrink: 0;\n accent-color: var(--accent);\n cursor: pointer;\n}\n.del {\n visibility: hidden;\n flex-shrink: 0;\n background: none;\n border: none;\n padding: 0 2px;\n color: var(--muted);\n font: inherit;\n cursor: pointer;\n}\n.prop:hover .del {\n visibility: visible;\n}\n.del:hover {\n color: #e5534b;\n}\n.adder .key-in {\n flex: 0 0 30%;\n color: var(--key);\n}\n.adder input::placeholder {\n color: var(--muted);\n}\n.adder input {\n border-color: var(--border);\n}\n.bool {\n color: var(--val);\n}\n.prop.inherited .key {\n color: var(--muted);\n}\n.prop .val {\n flex: 1;\n min-width: 0;\n background: none;\n border: 1px solid transparent;\n border-radius: 3px;\n color: var(--val);\n font: inherit;\n padding: 0 3px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\ninput.val:hover, input.val:focus {\n border-color: var(--border);\n outline: none;\n background: var(--bg2);\n}\n.divider {\n padding: 4px 8px 1px;\n color: var(--muted);\n font-size: 10px;\n text-transform: uppercase;\n user-select: none;\n}\n.empty {\n padding: 8px;\n color: var(--muted);\n}\n.highlight {\n position: fixed;\n z-index: 2147483645;\n background: rgba(66, 184, 131, 0.25);\n border: 1px solid var(--accent);\n pointer-events: none;\n display: none;\n}\n";
@@ -1,23 +1,8 @@
1
1
  /**
2
- * Panel stylesheet. Note the template below is a *string* — comments inside it
3
- * ship verbatim, so explanations belong out here where terser strips them.
4
- *
5
2
  * `[hidden]` is forced with `!important` because an author `display`, such as
6
- * `.side`'s flex, beats the UA rule, and the plugins view hides by `hidden`.
7
- *
8
- * Docked layouts (`.dock-left` / `.dock-bottom` / `.dock-right`) give the tree a full viewport
9
- * edge, as browser devtools do; only the cross-axis stays resizable, since the
10
- * other would fight the dock.
11
- *
12
- * `min-height` is 320px, not 200: against the fixed chrome (34px header, 28px
13
- * tabs, 23px filter) 200 left about five rows of tree, too few to read. 320
14
- * keeps roughly eleven.
3
+ * `.side`'s flex, beats the UA rule.
15
4
  *
16
5
  * Sizing uses an explicit `.grip` rather than CSS `resize`, whose handle is
17
- * always bottom-right — the wrong corner once docked, where dragging down would
18
- * grow the panel upward. Each mode gets a handle on the edge that moves.
19
- *
20
- * `.menu` is absolute inside the header's `.menu-wrap`; the panel clips its
21
- * overflow, which its 320px minimum height leaves room for.
6
+ * always bottom-right.
22
7
  */
23
8
  export declare const css = "\n:host {\n all: initial;\n --bg: #1e1e1e;\n --bg2: #252526;\n --hover: #2a2d2e;\n --border: #3c3c3c;\n --fg: #d4d4d4;\n --muted: #808080;\n --accent: #42b883;\n --sel: #094771;\n --key: #9cdcfe;\n --val: #ce9178;\n --exp: #6a9955;\n}\n:host(.light) {\n --bg: #ffffff;\n --bg2: #f3f3f3;\n --hover: #ececec;\n --border: #d0d0d0;\n --fg: #383a42;\n --muted: #8e8e90;\n --sel: #d2e5f5;\n --key: #0451a5;\n --val: #a31515;\n --exp: #22863a;\n}\n* {\n box-sizing: border-box;\n}\n.pill, .panel {\n position: fixed;\n right: 12px;\n bottom: 12px;\n z-index: 2147483646;\n font: 11px/1.5 ui-monospace, Menlo, Consolas, monospace;\n color: var(--fg);\n}\n.pill {\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 999px;\n padding: 4px 10px;\n cursor: pointer;\n user-select: none;\n}\n.pill:hover {\n border-color: var(--accent);\n}\n.panel {\n display: flex;\n flex-direction: column;\n width: 760px;\n max-width: calc(100vw - 24px);\n height: 450px;\n max-height: calc(100vh - 24px);\n min-width: 320px;\n min-height: 320px;\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 6px;\n overflow: hidden;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);\n}\n.panel.dock-bottom {\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n max-width: none;\n border-radius: 0;\n border-left: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-left,\n.panel.dock-right {\n top: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n max-height: none;\n border-radius: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-left {\n right: auto;\n left: 0;\n border-left: 0;\n border-right: 1px solid var(--border);\n}\n.panel.dock-left .header,\n.panel.dock-bottom .header,\n.panel.dock-right .header {\n cursor: default;\n}\n.grip {\n position: absolute;\n z-index: 1;\n touch-action: none;\n right: 0;\n bottom: 0;\n width: 14px;\n height: 14px;\n cursor: nwse-resize;\n background: linear-gradient(135deg, transparent 50%, var(--border) 50%);\n}\n.panel.dock-bottom .grip {\n top: 0;\n left: 0;\n width: auto;\n height: 5px;\n cursor: ns-resize;\n background: none;\n}\n.panel.dock-left .grip,\n.panel.dock-right .grip {\n top: 0;\n left: 0;\n width: 5px;\n height: auto;\n cursor: ew-resize;\n background: none;\n}\n.panel.dock-left .grip {\n left: auto;\n}\n.panel.dock-left .grip:hover,\n.panel.dock-left .grip.active,\n.panel.dock-bottom .grip:hover,\n.panel.dock-bottom .grip.active,\n.panel.dock-right .grip:hover,\n.panel.dock-right .grip.active {\n background: var(--accent);\n}\n.header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 8px;\n background: var(--bg2);\n border-bottom: 1px solid var(--border);\n user-select: none;\n cursor: move;\n}\n.title {\n color: var(--accent);\n font-weight: bold;\n margin-right: auto;\n}\n.btn {\n display: flex;\n align-items: center;\n background: none;\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 3px 7px;\n cursor: pointer;\n}\n.btn svg {\n display: block;\n}\n.btn:hover {\n border-color: var(--accent);\n}\n.btn.active {\n background: var(--accent);\n border-color: var(--accent);\n color: var(--bg);\n}\n.btn svg + svg {\n margin-left: 4px;\n opacity: 0.7;\n}\n.menu-wrap {\n position: relative;\n}\n.menu {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 2;\n display: flex;\n flex-direction: column;\n min-width: 140px;\n padding: 3px;\n background: var(--bg2);\n border: 1px solid var(--border);\n border-radius: 4px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);\n cursor: default;\n}\n.item {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 8px;\n background: none;\n border: 0;\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n text-align: left;\n white-space: nowrap;\n cursor: pointer;\n}\n.item:hover,\n.item:focus-visible {\n background: var(--hover);\n outline: none;\n}\n.item[aria-checked='true'] {\n color: var(--accent);\n}\n.body {\n display: flex;\n flex: 1;\n min-height: 0;\n}\n[hidden] {\n display: none !important;\n}\n.plugins {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.plugin {\n display: flex;\n gap: 8px;\n padding: 3px 10px;\n align-items: baseline;\n}\n.plugin .name {\n min-width: 120px;\n}\n.plugin .gave {\n flex: 1;\n color: var(--muted);\n word-break: break-word;\n}\n.plugin .flag {\n color: var(--muted);\n opacity: 0.7;\n}\n.side {\n display: flex;\n flex-direction: column;\n width: 40%;\n min-width: 0;\n border-right: 1px solid var(--border);\n}\n.tabs {\n display: flex;\n border-bottom: 1px solid var(--border);\n user-select: none;\n}\n.tab {\n flex: 1;\n padding: 4px 0;\n text-align: center;\n color: var(--muted);\n border-bottom: 2px solid transparent;\n cursor: pointer;\n}\n.tab:hover {\n color: var(--fg);\n}\n.tab.active {\n color: var(--fg);\n border-bottom-color: var(--accent);\n}\n.filter {\n margin: 6px 6px 2px;\n background: var(--bg2);\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 2px 6px;\n outline: none;\n}\n.filter:focus {\n border-color: var(--accent);\n}\n.filter::placeholder {\n color: var(--muted);\n}\n.tree {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.state {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.row {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 2px 8px;\n white-space: nowrap;\n overflow: hidden;\n cursor: pointer;\n}\n.row .label {\n flex-shrink: 0;\n}\n.row .arrow {\n cursor: pointer;\n padding: 3px 4px;\n margin: -3px -4px;\n box-sizing: content-box;\n}\n.row .arrow:hover {\n color: var(--key);\n}\n.row .hit {\n color: var(--exp);\n opacity: 0.75;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.row:hover {\n background: var(--hover);\n}\n.row.sel {\n background: var(--sel);\n}\n.row .name {\n color: var(--key);\n}\n.row .punct {\n color: var(--muted);\n}\n.row .exp {\n color: var(--exp);\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.prop {\n display: flex;\n gap: 6px;\n padding: 2px 8px;\n align-items: center;\n}\n.prop .key {\n color: var(--key);\n flex-shrink: 0;\n}\n.arrow {\n width: 12px;\n flex-shrink: 0;\n color: var(--muted);\n font-size: 9px;\n transition: transform 0.1s;\n}\n.arrow.open {\n transform: rotate(90deg);\n}\n.spacer {\n width: 12px;\n flex-shrink: 0;\n}\n.prop.toggle {\n cursor: pointer;\n user-select: none;\n}\n.prop.toggle:hover {\n background: var(--hover);\n}\n.preview {\n flex: 1;\n min-width: 0;\n color: var(--muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.muted {\n color: var(--muted);\n padding: 2px 8px;\n}\n.check {\n margin: 0;\n flex-shrink: 0;\n accent-color: var(--accent);\n cursor: pointer;\n}\n.del {\n visibility: hidden;\n flex-shrink: 0;\n background: none;\n border: none;\n padding: 0 2px;\n color: var(--muted);\n font: inherit;\n cursor: pointer;\n}\n.prop:hover .del {\n visibility: visible;\n}\n.del:hover {\n color: #e5534b;\n}\n.adder .key-in {\n flex: 0 0 30%;\n color: var(--key);\n}\n.adder input::placeholder {\n color: var(--muted);\n}\n.adder input {\n border-color: var(--border);\n}\n.bool {\n color: var(--val);\n}\n.prop.inherited .key {\n color: var(--muted);\n}\n.prop .val {\n flex: 1;\n min-width: 0;\n background: none;\n border: 1px solid transparent;\n border-radius: 3px;\n color: var(--val);\n font: inherit;\n padding: 0 3px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\ninput.val:hover, input.val:focus {\n border-color: var(--border);\n outline: none;\n background: var(--bg2);\n}\n.divider {\n padding: 4px 8px 1px;\n color: var(--muted);\n font-size: 10px;\n text-transform: uppercase;\n user-select: none;\n}\n.empty {\n padding: 8px;\n color: var(--muted);\n}\n.highlight {\n position: fixed;\n z-index: 2147483645;\n background: rgba(66, 184, 131, 0.25);\n border: 1px solid var(--accent);\n pointer-events: none;\n display: none;\n}\n";
@@ -1,34 +1,9 @@
1
1
  export declare const h: (tag: string, className: string, text?: string) => HTMLElement;
2
- /**
3
- * Finds `term` among a scope's property names and values, returning the first
4
- * hit's path so the tree can show why a scope matched.
5
- *
6
- * Bounded on purpose: it runs on every keystroke over every mounted scope and
7
- * state is arbitrary. Depth is capped, functions and `$` magics are skipped,
8
- * and visited objects are remembered so cycles terminate.
9
- */
10
2
  export declare const findInState: (scope: any, term: string) => string | undefined;
11
3
  export declare const isCollection: (v: unknown) => v is Map<any, any> | Set<any>;
12
- /**
13
- * JSON-style preview, cut at 60 characters. Built entry by entry and stopped
14
- * at the limit, since it runs on every flush and a 20,000-row array would
15
- * otherwise be serialised whole. The length cap also ends a cycle.
16
- */
17
4
  export declare const fmt: (v: unknown) => string;
18
- /**
19
- * The edited text as a value of the field's type. Text that is not a number
20
- * returns `old`, so a number or BigInt field is never written as a string;
21
- * blank is not 0 and '12abc' is not 12.
22
- */
23
5
  export declare const coerce: (raw: string, old: unknown) => string | number | bigint;
24
6
  export declare const descriptorOf: (o: any, key: string) => PropertyDescriptor | undefined;
25
- /**
26
- * True for values with no editor: setter-less accessors, non-writable (frozen)
27
- * properties and getter-only `computed()` refs. A computed is only
28
- * recognizable from the raw descriptor, since reading through the proxy has
29
- * already unwrapped it. The reactivity flags are read directly to keep
30
- * @vue/reactivity out of this bundle.
31
- */
32
7
  export declare const isReadOnly: (desc?: PropertyDescriptor) => boolean;
33
8
  export declare const collectProps: (scope: Record<string, any>) => {
34
9
  own: string[];
@@ -1,34 +1,9 @@
1
1
  export declare const h: (tag: string, className: string, text?: string) => HTMLElement;
2
- /**
3
- * Finds `term` among a scope's property names and values, returning the first
4
- * hit's path so the tree can show why a scope matched.
5
- *
6
- * Bounded on purpose: it runs on every keystroke over every mounted scope and
7
- * state is arbitrary. Depth is capped, functions and `$` magics are skipped,
8
- * and visited objects are remembered so cycles terminate.
9
- */
10
2
  export declare const findInState: (scope: any, term: string) => string | undefined;
11
3
  export declare const isCollection: (v: unknown) => v is Map<any, any> | Set<any>;
12
- /**
13
- * JSON-style preview, cut at 60 characters. Built entry by entry and stopped
14
- * at the limit, since it runs on every flush and a 20,000-row array would
15
- * otherwise be serialised whole. The length cap also ends a cycle.
16
- */
17
4
  export declare const fmt: (v: unknown) => string;
18
- /**
19
- * The edited text as a value of the field's type. Text that is not a number
20
- * returns `old`, so a number or BigInt field is never written as a string;
21
- * blank is not 0 and '12abc' is not 12.
22
- */
23
5
  export declare const coerce: (raw: string, old: unknown) => string | number | bigint;
24
6
  export declare const descriptorOf: (o: any, key: string) => PropertyDescriptor | undefined;
25
- /**
26
- * True for values with no editor: setter-less accessors, non-writable (frozen)
27
- * properties and getter-only `computed()` refs. A computed is only
28
- * recognizable from the raw descriptor, since reading through the proxy has
29
- * already unwrapped it. The reactivity flags are read directly to keep
30
- * @vue/reactivity out of this bundle.
31
- */
32
7
  export declare const isReadOnly: (desc?: PropertyDescriptor) => boolean;
33
8
  export declare const collectProps: (scope: Record<string, any>) => {
34
9
  own: string[];
@@ -2,11 +2,6 @@ export type DevtoolsEvent = 'scope:mount' | 'scope:unmount' | 'store:register' |
2
2
  type Listener = (...args: any[]) => void;
3
3
  /**
4
4
  * What one `app.use()` contributed.
5
- *
6
- * `directives` and `magics` carry the weight, not `name`: minifiers rename
7
- * plugin functions, so `Function.name` is an empty string in every production
8
- * build — the builds an inspector is actually pointed at. What a plugin added
9
- * survives minification and is what someone debugging wants anyway.
10
5
  */
11
6
  export interface PluginInfo {
12
7
  /** The plugin function's name where a build kept it, else `plugin <n>`. */
@@ -74,9 +69,7 @@ export interface LiteVueDevtools {
74
69
  export declare const registerScope: (el: Element, scope: Record<string, any>, exp?: string, name?: string) => (() => void);
75
70
  export declare const registerStore: (name: string, store: Record<string, any>) => void;
76
71
  export declare const registerComponent: (name: string) => void;
77
- /** Registers a plugin and returns a deregister, as registerScope does. */
78
72
  export declare const registerPlugin: (info: PluginInfo) => (() => void) | undefined;
79
- /** True when something is listening, so app.use() can skip the diff. */
80
73
  export declare const pluginsWatched: () => boolean;
81
74
  export declare const emitFlush: () => void;
82
75
  export declare const devtools: LiteVueDevtools;
@@ -2,11 +2,6 @@ export type DevtoolsEvent = 'scope:mount' | 'scope:unmount' | 'store:register' |
2
2
  type Listener = (...args: any[]) => void;
3
3
  /**
4
4
  * What one `app.use()` contributed.
5
- *
6
- * `directives` and `magics` carry the weight, not `name`: minifiers rename
7
- * plugin functions, so `Function.name` is an empty string in every production
8
- * build — the builds an inspector is actually pointed at. What a plugin added
9
- * survives minification and is what someone debugging wants anyway.
10
5
  */
11
6
  export interface PluginInfo {
12
7
  /** The plugin function's name where a build kept it, else `plugin <n>`. */
@@ -74,9 +69,7 @@ export interface LiteVueDevtools {
74
69
  export declare const registerScope: (el: Element, scope: Record<string, any>, exp?: string, name?: string) => (() => void);
75
70
  export declare const registerStore: (name: string, store: Record<string, any>) => void;
76
71
  export declare const registerComponent: (name: string) => void;
77
- /** Registers a plugin and returns a deregister, as registerScope does. */
78
72
  export declare const registerPlugin: (info: PluginInfo) => (() => void) | undefined;
79
- /** True when something is listening, so app.use() can skip the diff. */
80
73
  export declare const pluginsWatched: () => boolean;
81
74
  export declare const emitFlush: () => void;
82
75
  export declare const devtools: LiteVueDevtools;
@@ -1,4 +1,3 @@
1
1
  import { Directive } from './index.mjs';
2
- /** For tests: how many handler expressions are memoised. */
3
2
  export declare const expressionCacheSize: () => number;
4
3
  export declare const on: Directive;
@@ -1,4 +1,3 @@
1
1
  import { Directive } from '.';
2
- /** For tests: how many handler expressions are memoised. */
3
2
  export declare const expressionCacheSize: () => number;
4
3
  export declare const on: Directive;