@wcstack/intersection 4.31.0 → 4.33.0

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/dist/auto.min.js CHANGED
@@ -1,2 +1,2 @@
1
- const t={tagNames:{intersect:"wcs-intersect"}};var e="@wcstack/intersection",s="4.31.0";class n extends EventTarget{static wcBindable={protocol:"wc-bindable",version:1,properties:[{name:"entry",event:"wcs-intersect:change",semantics:"state"},{name:"intersecting",event:"wcs-intersect:change",semantics:"state",getter:t=>t.detail.isIntersecting},{name:"ratio",event:"wcs-intersect:change",semantics:"state",getter:t=>t.detail.intersectionRatio},{name:"visible",event:"wcs-intersect:visible-changed",semantics:"state"},{name:"observing",event:"wcs-intersect:observing-changed",semantics:"state"}],commands:[{name:"observe"},{name:"reobserve"},{name:"unobserve"},{name:"disconnect"},{name:"reset"}]};_target;_observer=null;_observed=null;_options={};_entry=null;_visible=!1;_observing=!1;_gen=0;_ready=Promise.resolve();constructor(t){super(),this._target=t??this}get ready(){return this._ready}get entry(){return this._entry}get intersecting(){return!!this._entry&&this._entry.isIntersecting}get ratio(){return this._entry?this._entry.intersectionRatio:0}get visible(){return this._visible}get observing(){return this._observing}_setEntry(t){this._entry=t,this._target.dispatchEvent(new CustomEvent("wcs-intersect:change",{detail:t,bubbles:!0}))}_setVisible(t){this._visible!==t&&(this._visible=t,this._target.dispatchEvent(new CustomEvent("wcs-intersect:visible-changed",{detail:t,bubbles:!0})))}_setObserving(t){this._observing!==t&&(this._observing=t,this._target.dispatchEvent(new CustomEvent("wcs-intersect:observing-changed",{detail:t,bubbles:!0})))}observe(t,e={}){if(this._observer&&this._observed===t&&this._optionsEqual(this._options,e))return this._ready;this._teardownObserver();const s=this._createObserver(e);return s?(this._observer=s,this._observed=t,this._options=e,s.observe(t),this._setObserving(!0),this._ready):(this._setObserving(!1),this._ready)}reobserve(t,e={}){this._teardownObserver(),this.observe(t,e)}unobserve(t){this._observed===t&&(this._teardownObserver(),this._setObserving(!1))}disconnect(){this._teardownObserver(),this._setObserving(!1)}reset(){this._setVisible(!1)}dispose(){this._gen++,this.disconnect()}_teardownObserver(){this._observer&&(this._observer.disconnect(),this._observer=null),this._observed=null,this._gen++}_createObserver(t){if("undefined"==typeof IntersectionObserver)return null;const e=this._gen;try{return new IntersectionObserver(t=>this._onIntersect(e,t),{root:t.root??null,rootMargin:t.rootMargin??"0px",threshold:t.threshold??0})}catch{return null}}_onIntersect(t,e){if(t===this._gen)for(const t of e){const e=this._normalizeEntry(t);this._setEntry(e),e.isIntersecting&&this._setVisible(!0)}}_normalizeEntry(t){return{isIntersecting:t.isIntersecting,intersectionRatio:t.intersectionRatio,time:t.time,boundingClientRect:this._normalizeRect(t.boundingClientRect),intersectionRect:this._normalizeRect(t.intersectionRect),rootBounds:t.rootBounds?this._normalizeRect(t.rootBounds):null,target:t.target}}_normalizeRect(t){return{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left}}_optionsEqual(t,e){return(t.root??null)===(e.root??null)&&((t.rootMargin??"0px")===(e.rootMargin??"0px")&&this._thresholdKey(t.threshold)===this._thresholdKey(e.threshold))}_thresholdKey(t){return void 0===t?"0":Array.isArray(t)?t.join(","):String(t)}}function r(t,e){let s=Object.getPrototypeOf(t);for(;null!==s;){const t=Object.getOwnPropertyDescriptor(s,e);if(void 0!==t)return"function"==typeof t.get||"function"==typeof t.set;s=Object.getPrototypeOf(s)}return!1}const i=new WeakSet;function o(t,e,s){if(i.has(t))return;i.add(t);const n=t.localName??"element";console.warn(`[wcs/input-as-attribute] <${n}> has the attribute ${e}="${s}": an object was written as an attribute, so the element did not receive it. A framework does that when the property is set before the element's definition loads (React 19), or when told to (Vue's .attr). Load the definition before rendering, or assign the property through a ref (Vue: .prop). (Said once per element.)`,t)}const a=new WeakMap;function c(t,e){let s=a.get(t);return void 0===s&&(s=new Map,a.set(t,s)),s.has(e)||s.set(e,t.getAttribute(e)),s.get(e)}function h(t,e,s){null===s?t.removeAttribute(e):t.setAttribute(e,s)}function l(t,e,s){const n=c(t,e);h(t,e,void 0===s?n:null===s?null:String(s))}function g(t,e,s){const n=c(t,e);h(t,e,void 0===s?n:s?"":null)}class d extends HTMLElement{static hasConnectedCallbackPromise=!0;static observedAttributes=["target","root","root-margin","threshold"];static wcBindable={...n.wcBindable,properties:[...n.wcBindable.properties,{name:"trigger",event:"wcs-intersect:trigger-changed",semantics:"state"}],inputs:[{name:"target",attribute:"target"},{name:"root",attribute:"root"},{name:"rootMargin",attribute:"root-margin"},{name:"threshold",attribute:"threshold"},{name:"once",attribute:"once"},{name:"manual",attribute:"manual"},{name:"trigger"}],commands:n.wcBindable.commands};_core;_trigger=!1;_connectedCallbackPromise=Promise.resolve();_internals=null;_observePending=!1;_warnedRoot=null;_warnedMargin=null;constructor(){super(),this._core=new n(this),this._internals=this._initInternals(),this._wireStates({"wcs-intersect:visible-changed":t=>({visible:!0===t}),"wcs-intersect:observing-changed":t=>({observing:!0===t}),"wcs-intersect:change":t=>({intersecting:!0===t.isIntersecting})})}get debugStates(){return this._internals?[...this._internals.states]:[]}_initInternals(){try{if("function"!=typeof this.attachInternals)return null;const t=this.attachInternals();return t.states.add("wcs-probe"),t.states.delete("wcs-probe"),t}catch{return null}}_wireStates(t){if(null===this._internals)return;const e=this._internals.states;for(const[s,n]of Object.entries(t))this.addEventListener(s,t=>{const s=this.hasAttribute("debug-states");for(const[r,i]of Object.entries(n(t.detail))){try{i?e.add(r):e.delete(r)}catch{}s&&this.toggleAttribute(`data-wcs-state-${r}`,i)}})}get connectedCallbackPromise(){return this._connectedCallbackPromise}get target(){return this.getAttribute("target")??""}set target(t){l(this,"target",t)}get root(){return this.getAttribute("root")??""}set root(t){l(this,"root",t)}get rootMargin(){const t=this.getAttribute("root-margin");return null===t||""===t.trim()?"0px":t}set rootMargin(t){l(this,"root-margin",t)}get threshold(){return this.getAttribute("threshold")??""}set threshold(t){l(this,"threshold",t)}get once(){return this.hasAttribute("once")}set once(t){g(this,"once",t)}get manual(){return this.hasAttribute("manual")}set manual(t){g(this,"manual",t)}get entry(){return this._core.entry}get intersecting(){return this._core.intersecting}get ratio(){return this._core.ratio}get visible(){return this._core.visible}get observing(){return this._core.observing}get trigger(){return this._trigger}set trigger(t){if(!!t){this._trigger=!0;try{this.observe()}finally{this._trigger=!1,this.dispatchEvent(new CustomEvent("wcs-intersect:trigger-changed",{detail:!1,bubbles:!0}))}}}observe(){const{element:t,display:e}=this._resolveTarget();this.style.display=e,t?(this._core.observe(t,this._options()),this._warnRefused()):this._core.disconnect()}reobserve(){const{element:t,display:e}=this._resolveTarget();this.style.display=e,t?(this._core.reobserve(t,this._options()),this._warnRefused()):this._core.disconnect()}_warnRefused(){if(this._core.observing||"undefined"==typeof IntersectionObserver)return;const t=this.rootMargin;if(this._warnedMargin===t)return;let e="";try{return void new IntersectionObserver(Function.prototype,{rootMargin:t}).disconnect()}catch(t){e=t.message}this._warnedMargin=t,console.warn(`[@wcstack/intersection] [wcs/root-margin-unit] <${this.localName} root-margin="${t}"> is not a margin the browser takes (${e}): write each length with px or %, as "200px 0px". Nothing is observed (observing stays false).`)}unobserve(){this._observePending=!1,this._core.disconnect()}disconnect(){this._observePending=!1,this._core.disconnect()}reset(){this._core.reset()}_resolveTarget(){const t=this.target;if("self"===t)return{element:this,display:"block"};if(""!==t){const e=this.getRootNode();return{element:this._safeQuery(e,t),display:"none"}}const e=this.firstElementChild;return e?{element:e,display:"contents"}:{element:this,display:"block"}}_resolveRoot(){const t=this.root;if(""===t)return null;const e=this.getRootNode(),s=this._safeQuery(e,t)??e.getElementById?.(t)??null;return s||this._warnedRoot===t||(this._warnedRoot=t,console.warn(`[@wcstack/intersection] [wcs/intersect-root] <${this.localName} root="${t}">: no element matches that selector, and none has it as its id, so the viewport is the root.`)),s}_safeQuery(t,e){try{return t.querySelector(e)}catch{return null}}_parseThreshold(){const t=this.threshold.trim();if(""===t)return 0;const e=t.split(",").map(t=>t.trim()).filter(t=>""!==t).map(t=>Number(t)).filter(t=>Number.isFinite(t)&&t>=0&&t<=1);return 0===e.length?0:1===e.length?e[0]:e}_options(){return{root:this._resolveRoot(),rootMargin:this.rootMargin,threshold:this._parseThreshold()}}_onChange=t=>{t.target===this&&this.once&&t.detail.isIntersecting&&this._core.disconnect()};_scheduleObserve(){this._observePending||(this._observePending=!0,queueMicrotask(()=>{this._observePending&&(this._observePending=!1,this.isConnected&&!this.manual&&this.observe())}))}connectedCallback(){!function(t){const e=t.constructor?.wcBindable,s=e?.inputs;if(void 0===s)return;const n=t.getAttribute;for(const e of s){const s=e.name,i="function"==typeof n?n.call(t,s.toLowerCase()):null;if(null!==i&&i.startsWith("[object ")&&o(t,s,i),!Object.prototype.hasOwnProperty.call(t,s))continue;if(!r(t,s))continue;const a=t,c=a[s];delete a[s],a[s]=c}}(this),this.addEventListener("wcs-intersect:change",this._onChange),this._scheduleObserve(),this._connectedCallbackPromise=this._core.ready}disconnectedCallback(){this.removeEventListener("wcs-intersect:change",this._onChange),this._core.dispose()}attributeChangedCallback(t,e,s){e!==s&&this.isConnected&&!this.manual&&this._scheduleObserve()}}const u=Symbol.for("wcstack.package"),b=new WeakSet;function _(t,e){Object.defineProperty(t,u,{value:e,configurable:!0})}function v(t,e,s,n,r){if(void 0!==n&&(s===n||s.prototype instanceof n))return;const i=s[u];if(i===r||b.has(t))return;b.add(t);const o=r.slice(0,r.lastIndexOf("@"));console.warn(`[${o}] [wcs/package-twice] <${e}> is already defined by ${i??`another copy of ${o} that does not name its version`}; this copy, ${r}, does nothing. Load each package once.`)}function m(n=customElements){!function(t,e,s){for(const[n,r]of s){const s=t.get(n);void 0===s?(_(r,e),t.define(n,r)):v(t,n,s,r,e)}}(n,`${e}@${s}`,[[t.tagNames.intersect,d]])}var f;m(f);
1
+ const t={tagNames:{intersect:"wcs-intersect"}};var e="@wcstack/intersection",s="4.33.0";class n extends EventTarget{static wcBindable={protocol:"wc-bindable",version:1,properties:[{name:"entry",event:"wcs-intersect:change",semantics:"state"},{name:"intersecting",event:"wcs-intersect:change",semantics:"state",getter:t=>t.detail.isIntersecting},{name:"ratio",event:"wcs-intersect:change",semantics:"state",getter:t=>t.detail.intersectionRatio},{name:"visible",event:"wcs-intersect:visible-changed",semantics:"state"},{name:"observing",event:"wcs-intersect:observing-changed",semantics:"state"}],commands:[{name:"observe"},{name:"reobserve"},{name:"unobserve"},{name:"disconnect"},{name:"reset"}]};_target;_observer=null;_observed=null;_options={};_entry=null;_visible=!1;_observing=!1;_gen=0;_ready=Promise.resolve();constructor(t){super(),this._target=t??this}get ready(){return this._ready}get entry(){return this._entry}get intersecting(){return!!this._entry&&this._entry.isIntersecting}get ratio(){return this._entry?this._entry.intersectionRatio:0}get visible(){return this._visible}get observing(){return this._observing}_setEntry(t){this._entry=t,this._target.dispatchEvent(new CustomEvent("wcs-intersect:change",{detail:t,bubbles:!0}))}_setVisible(t){this._visible!==t&&(this._visible=t,this._target.dispatchEvent(new CustomEvent("wcs-intersect:visible-changed",{detail:t,bubbles:!0})))}_setObserving(t){this._observing!==t&&(this._observing=t,this._target.dispatchEvent(new CustomEvent("wcs-intersect:observing-changed",{detail:t,bubbles:!0})))}observe(t,e={}){if(this._observer&&this._observed===t&&this._optionsEqual(this._options,e))return this._ready;this._teardownObserver();const s=this._createObserver(e);return s?(this._observer=s,this._observed=t,this._options=e,s.observe(t),this._setObserving(!0),this._ready):(this._setObserving(!1),this._ready)}reobserve(t,e={}){this._teardownObserver(),this.observe(t,e)}unobserve(t){this._observed===t&&(this._teardownObserver(),this._setObserving(!1))}disconnect(){this._teardownObserver(),this._setObserving(!1)}reset(){this._setVisible(!1)}dispose(){this._gen++,this.disconnect()}_teardownObserver(){this._observer&&(this._observer.disconnect(),this._observer=null),this._observed=null,this._gen++}_createObserver(t){if("undefined"==typeof IntersectionObserver)return null;const e=this._gen;try{return new IntersectionObserver(t=>this._onIntersect(e,t),{root:t.root??null,rootMargin:t.rootMargin??"0px",threshold:t.threshold??0})}catch{return null}}_onIntersect(t,e){if(t===this._gen)for(const t of e){const e=this._normalizeEntry(t);this._setEntry(e),e.isIntersecting&&this._setVisible(!0)}}_normalizeEntry(t){return{isIntersecting:t.isIntersecting,intersectionRatio:t.intersectionRatio,time:t.time,boundingClientRect:this._normalizeRect(t.boundingClientRect),intersectionRect:this._normalizeRect(t.intersectionRect),rootBounds:t.rootBounds?this._normalizeRect(t.rootBounds):null,target:t.target}}_normalizeRect(t){return{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left}}_optionsEqual(t,e){return(t.root??null)===(e.root??null)&&((t.rootMargin??"0px")===(e.rootMargin??"0px")&&this._thresholdKey(t.threshold)===this._thresholdKey(e.threshold))}_thresholdKey(t){return void 0===t?"0":Array.isArray(t)?t.join(","):String(t)}}function r(t,e){let s=Object.getPrototypeOf(t);for(;null!==s;){const t=Object.getOwnPropertyDescriptor(s,e);if(void 0!==t)return"function"==typeof t.get||"function"==typeof t.set;s=Object.getPrototypeOf(s)}return!1}const i=new WeakSet;function o(t,e,s){if(i.has(t))return;i.add(t);const n=t.localName??"element";console.warn(`[wcs/input-as-attribute] <${n}> has the attribute ${e}="${s}": an object was written as an attribute, so the element did not receive it. A framework does that when the property is set before the element's definition loads (React 19), or when told to (Vue's .attr). Load the definition before rendering, or assign the property through a ref (Vue: .prop). (Said once per element.)`,t)}const a=new WeakMap;function c(t,e){let s=a.get(t);return void 0===s&&(s=new Map,a.set(t,s)),s.has(e)||s.set(e,t.getAttribute(e)),s.get(e)}function h(t,e,s){null===s?t.removeAttribute(e):t.setAttribute(e,s)}function l(t,e,s){const n=c(t,e);h(t,e,void 0===s?n:null===s?null:String(s))}function g(t,e,s){const n=c(t,e);h(t,e,void 0===s?n:s?"":null)}class d extends HTMLElement{static hasConnectedCallbackPromise=!0;static observedAttributes=["target","root","root-margin","threshold"];static wcBindable={...n.wcBindable,properties:[...n.wcBindable.properties,{name:"trigger",event:"wcs-intersect:trigger-changed",semantics:"state"}],inputs:[{name:"target",attribute:"target"},{name:"root",attribute:"root"},{name:"rootMargin",attribute:"root-margin"},{name:"threshold",attribute:"threshold"},{name:"once",attribute:"once"},{name:"manual",attribute:"manual"},{name:"trigger"}],commands:n.wcBindable.commands};_core;_trigger=!1;_connectedCallbackPromise=Promise.resolve();_internals=null;_observePending=!1;_warnedRoot=null;_warnedMargin=null;constructor(){super(),this._core=new n(this),this._internals=this._initInternals(),this._wireStates({"wcs-intersect:visible-changed":t=>({visible:!0===t}),"wcs-intersect:observing-changed":t=>({observing:!0===t}),"wcs-intersect:change":t=>({intersecting:!0===t.isIntersecting})})}get debugStates(){return this._internals?[...this._internals.states]:[]}_initInternals(){try{if("function"!=typeof this.attachInternals)return null;const t=this.attachInternals();return t.states.add("wcs-probe"),t.states.delete("wcs-probe"),t}catch{return null}}_wireStates(t){if(null===this._internals)return;const e=this._internals.states;for(const[s,n]of Object.entries(t))this.addEventListener(s,t=>{const s=this.hasAttribute("debug-states");for(const[r,i]of Object.entries(n(t.detail))){try{i?e.add(r):e.delete(r)}catch{}s&&this.toggleAttribute(`data-wcs-state-${r}`,i)}})}get connectedCallbackPromise(){return this._connectedCallbackPromise}get target(){return this.getAttribute("target")??""}set target(t){l(this,"target",t)}get root(){return this.getAttribute("root")??""}set root(t){l(this,"root",t)}get rootMargin(){const t=this.getAttribute("root-margin");return null===t||""===t.trim()?"0px":t}set rootMargin(t){l(this,"root-margin",t)}get threshold(){return this.getAttribute("threshold")??""}set threshold(t){l(this,"threshold",t)}get once(){return this.hasAttribute("once")}set once(t){g(this,"once",t)}get manual(){return this.hasAttribute("manual")}set manual(t){g(this,"manual",t)}get entry(){return this._core.entry}get intersecting(){return this._core.intersecting}get ratio(){return this._core.ratio}get visible(){return this._core.visible}get observing(){return this._core.observing}get trigger(){return this._trigger}set trigger(t){if(!!t){this._trigger=!0;try{this.observe()}finally{this._trigger=!1,this.dispatchEvent(new CustomEvent("wcs-intersect:trigger-changed",{detail:!1,bubbles:!0}))}}}observe(){const{element:t,display:e}=this._resolveTarget();this.style.display=e,t?(this._core.observe(t,this._options()),this._warnRefused()):this._core.disconnect()}reobserve(){const{element:t,display:e}=this._resolveTarget();this.style.display=e,t?(this._core.reobserve(t,this._options()),this._warnRefused()):this._core.disconnect()}_warnRefused(){if(this._core.observing||"undefined"==typeof IntersectionObserver)return;const t=this.rootMargin;if(this._warnedMargin===t)return;let e="";try{return void new IntersectionObserver(Function.prototype,{rootMargin:t}).disconnect()}catch(t){e=t.message}this._warnedMargin=t,console.warn(`[@wcstack/intersection] [wcs/root-margin-unit] <${this.localName} root-margin="${t}"> is not a margin the browser takes (${e}): write each length with px or %, as "200px 0px". Nothing is observed (observing stays false).`)}unobserve(){this._observePending=!1,this._core.disconnect()}disconnect(){this._observePending=!1,this._core.disconnect()}reset(){this._core.reset()}_resolveTarget(){const t=this.target;if("self"===t)return{element:this,display:"block"};if(""!==t){const e=this.getRootNode();return{element:this._safeQuery(e,t),display:"none"}}const e=this.firstElementChild;return e?{element:e,display:"contents"}:{element:this,display:"block"}}_resolveRoot(){const t=this.root;if(""===t)return null;const e=this.getRootNode(),s=this._safeQuery(e,t)??e.getElementById?.(t)??null;return s||this._warnedRoot===t||(this._warnedRoot=t,console.warn(`[@wcstack/intersection] [wcs/intersect-root] <${this.localName} root="${t}">: no element matches that selector, and none has it as its id, so the viewport is the root.`)),s}_safeQuery(t,e){try{return t.querySelector(e)}catch{return null}}_parseThreshold(){const t=this.threshold.trim();if(""===t)return 0;const e=t.split(",").map(t=>t.trim()).filter(t=>""!==t).map(t=>Number(t)).filter(t=>Number.isFinite(t)&&t>=0&&t<=1);return 0===e.length?0:1===e.length?e[0]:e}_options(){return{root:this._resolveRoot(),rootMargin:this.rootMargin,threshold:this._parseThreshold()}}_onChange=t=>{t.target===this&&this.once&&t.detail.isIntersecting&&this._core.disconnect()};_scheduleObserve(){this._observePending||(this._observePending=!0,queueMicrotask(()=>{this._observePending&&(this._observePending=!1,this.isConnected&&!this.manual&&this.observe())}))}connectedCallback(){!function(t){const e=t.constructor?.wcBindable,s=e?.inputs;if(void 0===s)return;const n=t.getAttribute;for(const e of s){const s=e.name,i="function"==typeof n?n.call(t,s.toLowerCase()):null;if(null!==i&&i.startsWith("[object ")&&o(t,s,i),!Object.prototype.hasOwnProperty.call(t,s))continue;if(!r(t,s))continue;const a=t,c=a[s];delete a[s],a[s]=c}}(this),this.addEventListener("wcs-intersect:change",this._onChange),this._scheduleObserve(),this._connectedCallbackPromise=this._core.ready}disconnectedCallback(){this.removeEventListener("wcs-intersect:change",this._onChange),this._core.dispose()}attributeChangedCallback(t,e,s){e!==s&&this.isConnected&&!this.manual&&this._scheduleObserve()}}const u=Symbol.for("wcstack.package"),b=new WeakSet;function _(t,e){Object.defineProperty(t,u,{value:e,configurable:!0})}function v(t,e,s,n,r){if(void 0!==n&&(s===n||s.prototype instanceof n))return;const i=s[u];if(i===r||b.has(t))return;b.add(t);const o=r.slice(0,r.lastIndexOf("@"));console.warn(`[${o}] [wcs/package-twice] <${e}> is already defined by ${i??`another copy of ${o} that does not name its version`}; this copy, ${r}, does nothing. Load each package once.`)}function m(n=customElements){!function(t,e,s){for(const[n,r]of s){const s=t.get(n);void 0===s?(_(r,e),t.define(n,r)):v(t,n,s,r,e)}}(n,`${e}@${s}`,[[t.tagNames.intersect,d]])}var f;m(f);
2
2
  //# sourceMappingURL=auto.min.js.map
package/dist/index.esm.js CHANGED
@@ -58,7 +58,7 @@ function setConfig(partialConfig) {
58
58
  frozenConfig = null;
59
59
  }
60
60
 
61
- var pkg = {"name":"@wcstack/intersection","version":"4.31.0"};
61
+ var pkg = {"name":"@wcstack/intersection","version":"4.33.0"};
62
62
 
63
63
  /**
64
64
  * Headless visibility primitive. A thin, framework-agnostic wrapper around the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wcstack/intersection",
3
- "version": "4.31.0",
3
+ "version": "4.33.0",
4
4
  "description": "Declarative IntersectionObserver component for Web Components. Framework-agnostic visibility primitive via wc-bindable-protocol.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.esm.js",