melody-idom
Advanced tools
Comparing version 1.2.0-42f95e8.8 to 1.2.0-5474acb.9
@@ -169,2 +169,3 @@ /** | ||
data.key = key; | ||
data.staticsApplied = false; | ||
// but we'll need to update the parent element | ||
@@ -171,0 +172,0 @@ var parentKeys = currentParent && getData(currentParent).keyMap; |
@@ -744,2 +744,3 @@ import _debounce from 'lodash/debounce'; | ||
data.key = key; | ||
data.staticsApplied = false; | ||
// but we'll need to update the parent element | ||
@@ -746,0 +747,0 @@ var parentKeys = currentParent && getData(currentParent).keyMap; |
@@ -1,1 +0,1 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var n=e(require("lodash/debounce")),s={},t=new WeakMap,r=new WeakMap;function a(e,n){r.set(n,e),i(e).push(n)}function o(e){t.delete(e),r.delete(e)}function i(e){var n=t.get(e);return n||(n=[],t.set(e,n)),n}function u(e){return r.get(e)}function l(e){t.set(e,[])}function c(){}c.prototype=Object.create(null);var f=function(){return new c},p=function e(n){i(n).forEach(e),o(n),we(n);var t=n.el?n.el.__incrementalDOMData:null;s.beforeUnmount&&s.beforeUnmount(n),pe.has(n)&&(n.componentWillUnmount(),pe.delete(n)),t&&t.componentInstance&&(t.componentInstance=null),n.el=null},d=null;function m(e){return d||(d=document.createRange()).selectNode(document.body),d.createContextualFragment(e.trim()).childNodes}function v(e,n){this.attrs=f(),this.attrsArr=[],this.newAttrs=f(),this.key=n,this.keyMap=f(),this.keyMapValid=!0,this.staticsApplied=!1,this.focused=!1,this.nodeName=e,this.text=null,this.componentInstance=null,this.childLength=0}var h,x,g,y=function(e,n,t){var r=new v(n,t);return e.__incrementalDOMData=r},b=function(e){return w(e),e.__incrementalDOMData},w=function(e){for(var n=[e];n.length;){var t=n.pop();if(!t.__incrementalDOMData){var r=t instanceof Element,o=r?t.localName:t.nodeName,i=r?t.getAttribute("key"):null,a=y(t,o,i);if(i){var u=t.parentNode&&t.parentNode.__incrementalDOMData;u&&(u.keyMap[i]=t)}if(r){for(var l=t.attributes,c=a.attrs,f=a.newAttrs,s=a.attrsArr,p=0;p<l.length;p+=1){var d=l[p],m=d.name,v=d.value;c[m]=v,f[m]=void 0,s.push(m),s.push(v)}for(var h=t.firstChild;h;h=h.nextSibling)n.push(h)}else 3===t.nodeType&&(a.text=t.data)}}},k=function(e,n){return"svg"===e?"http://www.w3.org/2000/svg":"foreignObject"===b(n).nodeName?null:n.namespaceURI},S=function(e,n,t,r){var o,i=k(t,n);return o=i?e.createElementNS(i,t):e.createElement(t),y(o,t,r),o},N=function(e){var n=e.createTextNode("");return y(n,"#text",null),n},M=function(e,n){var t=m(n);if(!t.length){var r=document.createElement("div");r.appendChild(e.createTextNode("")),t=r.childNodes}var o=y(t[0],"#raw",null);return o.text=n,o.childLength=t.length,t},D=function(e){return e instanceof Document||e instanceof DocumentFragment},C=function(e,n){for(var t=[],r=e;r!==n;)t.push(r),r=r.parentNode;return t},_=function(e){for(var n=e,t=n;n;)n=(t=n).parentNode;return t},A=function(e){var n=_(e);return D(n)?n.activeElement:null},E=function(e,n){if(e.contains)return e.contains(n);for(;n&&n!==e;)n=n.parentNode;return n===e},I=function(e,n){var t=A(e);return t&&E(e,t)?C(t,n):[]},O=function(e,n,t){for(var r=n.nextSibling,o=t;o&&o!==n;){var i=o.nextSibling;e.insertBefore(o,r),o=i}},L=null,R=null,T=null,V=function(e,n){for(var t=0;t<e.length;t+=1)b(e[t]).focused=n},j=function(p){return function(e,n,t){var r=T,o=g,i=h,a=x,u=R;T=[],g=e.ownerDocument,x=e.parentNode;var l,c,f,s=I(e,x);for(V(s,!0),l=p(e,n,t),V(s,!1),c=0,f=T.length;c<f;c++)q(T[c]);return T=r,g=o,h=i,x=a,R=u,l}};function q(e){var n=b(e);n.attrs.ref&&n.attrs.ref.disposer&&(n.attrs.ref.disposer.unsubscribe(),n.attrs.ref=null),n.componentInstance&&p(n.componentInstance);for(var t=e.firstChild;t;)q(t),t=t.nextSibling}var B=j(function(e,n,t){return h=e,z(),n(t),X(),e}),F=j(function(e,n,t){var r={nextSibling:e};return h=r,n(t),e!==h&&e.parentNode&&W(x,e,b(x).keyMap),r===h?null:h}),P=function(e,n,t){var r=b(e);if(n===r.nodeName){if(t==r.key)return!0;if(!r.key){r.key=t;var o=x&&b(x).keyMap;return o&&(o[t]=e),!0}}return!1},U=function(e,n){if(!h||!P(h,e,n)){var t,r=b(x),o=h&&b(h),i=r.keyMap,a=!1,u=null;if(n){var l=i[n];if(l)if(P(l,e,n))a=!0,t=l;else if(l===h){var c=b(l);c.componentInstance?(u=c.componentInstance,c.componentInstance=null):T.push(l)}else W(x,l,i);else h&&3===h.nodeType&&""===h.data.trim()&&h.nextSibling&&P(h.nextSibling,e,n)&&(t=h.nextSibling)}t||(t="#text"===e?N(g):S(g,x,e,n),n&&(i[n]=t)),u&&((b(t).componentInstance=u).el=t),b(t).focused?O(x,t,h):a&&!t.parentNode||!o||!o.key||o.focused?h&&h.nextSibling===t&&3===h.nodeType&&""===h.data.trim()?x.removeChild(h):x.insertBefore(t,h):(x.replaceChild(t,h),r.keyMapValid=!1),h=t}},W=function(e,n,t){e.removeChild(n),T.push(n);var r=b(n).key;r&&delete t[r]},H=function(){var e,n=x,t=b(n),r=t.keyMap,o=t.keyMapValid,i=n.lastChild;if(i!==h||!o){for(;i&&i!==h;)W(n,i,r),i=n.lastChild;if(!o){for(e in r)(i=r[e]).parentNode!==n&&(T.push(i),delete r[e]);t.keyMapValid=!0}}},z=function(){x=h,h=null},G=function(){h=Q()},Q=function(){return h?h.nextSibling:x.firstChild},X=function(){H(),x=(h=x).parentNode},$=function(e){var n=b(e.el),t=R;L=n.key,l(e),(R=e).render(),R=t},J=function(e,n,t,r){var o;if(r){var i=b(r);(o=i.componentInstance)||((o="function"==typeof e?new e:e).el=r,i.componentInstance=o),ee(i.nodeName,n),oe(),ne()}else o="function"==typeof e?new e:e,ee("m-placeholder",n),oe(),o.el=ne(),b(o.el).componentInstance=o;return R&&a(R,o),o.apply(t)},K=function(e,n,t){var r=b(x).keyMap[n];return J(e,n,t,r)},Y=function(){return R},Z=function(e,n,t){var r=b(e),o=r&&r.key,i=r.componentInstance;return!i||"function"!=typeof n||i instanceof n||p(i),J(n,o,t,e)},ee=function(e,n){return G(),U(e,L||n),L=null,z(),x},ne=function(){return X(),h},te=function(){return G(),U("#text",null),h},re=function(){return x},oe=function(){h=x.lastChild},ie=G,ae=function(e){for(var n=M(g,e),t=g.createDocumentFragment(),r=n[n.length-1];n.length;)t.appendChild(n[0]);x.insertBefore(t,h),h=r},ue=function(e){if(G(),h&&P(h,"#raw",null)){var n=b(h),t=n.childLength-1;if(n.text!==e){if(ae(e),1<n.childLength)for(;t--;)x.removeChild(h.nextSibling)}else if(t)for(;t--;)h=h.nextSibling}else ae(e);return h},le=!1;document.createElement("div").addEventListener("test",function(){},{get passive(){return!(le=!0)}});var ce=3,fe=30,se="__melodyPrioritize_"+Math.random().toString(36).slice(2),pe=new WeakSet,de=fe,me=!1,ve=!1,he=!!s.experimentalSyncDeepRendering,xe={component:null,next:null},ge=xe;function ye(){return ge===xe}function be(e){if(ge!==xe)for(var n=ge;n!==xe;n=n.next){if(n.component===e)return;if("streaming"!==e.type){if(u(e)===n.component)return;if(u(n.component)===e)return void(n.component=e)}if(n.next===xe){n.next={component:e,next:xe};break}}else ge={component:e,next:xe}}function we(e){if(ge!==xe){ge.component===e&&(ge=ge.next);for(var n=ge,t=ge.next;t&&t!==xe;t=t.next){var r=t.component;do{if(r===e){n.next=t.next,t=n;break}r=u(r)}while(r);n=t}}}function ke(e){if(!e.component.el)return-1;var n=window.innerHeight||document.documentElement.clientHeight,t=e.component.el.getBoundingClientRect(),r=t.top,o=t.bottom;return 0<r&&o<n||r<0&&n<o?0:r<0&&0<o&&o<n?1:0<r&&r<n?2:3}function Se(e){for(var n=new Array(4),t=e;t!==xe;t=t.next){var r=ke(t);if(!(r<0)){var o={component:t.component,next:xe};n[r]?(n[r].last.next=o,n[r].last=o):n[r]={first:o,last:o}}}return n.reduceRight(Ne,xe)}function Ne(e,n){var t=n.first,r=n.last,o=Me(r,e);return o===r?t:o}function Me(e,n){if(e===xe)return n;for(var t=e;t.next!==xe;){if(n===xe)return e;if(n.component===t.component)n=n.next;else for(var r=n,o=n.next;o&&o!==xe;o=o.next){if(o.component===t.component){r.next=o.next;break}r=o}t=t.next}return t.next=n,e}function De(){if(ye())return null;var e=ge;return ge=ge.next,e}var Ce=!1;function _e(n){Ce||(Ce=!0,requestAnimationFrame(function(){var e=Date.now();n({didTimeout:!1,timeRemaining:function(){return Math.max(0,de-(Date.now()-e))}})}))}function Ae(){for(var n=De(),e=[];n;)n.component.el&&(F(n.component.el,function(e){return $(n.component)},{}),e.push(n.component)),n=De();return e}function Ee(e){for(var n,t=De(),r=!1,o=new Set;t;){if(n=ge,ge=xe,t.component.el){var i="m-placeholder"===t.component.el.localName;if(F(t.component.el,function(e){return $(t.component)},{}),o.add(t.component),i&&ge!==xe){for(var a=Ae(),u=0;u<a.length;u++)o.add(a[u]);ge=xe}}ge!==xe&&(r=!0),ge=Me(ge,n),t=s.experimentalSyncDeepRendering?De():0<e.timeRemaining()?De():null}for(var l=o.values(),c=l.next();!c.done;c=l.next()){var f=c.value;f.el&&(pe.add(f),f.notify())}Ce=!1,ye()||(he||ve||!r||(ve=!0,window.postMessage(se,"*")),_e(Ee))}function Ie(){throw new Error("Clearing the queue is only allowed within a test environment.")}function Oe(e){if(e.source===this&&e.data===se){ve=!1;var n=Date.now();ge=Se(ge),10<(n=Date.now()-n)&&(he=!0)}}function Le(e){le&&!me&&Te(),be(e),_e(Ee)}window.addEventListener("message",Oe,!1);var Re=n(function(){de=fe},300);function Te(){me=!0,de=fe,document.addEventListener("scroll",function(){de=ce,Re()},{passive:!0})}var Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je=function(e){return 0===e.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===e.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":void 0},qe=function(e,n,t){if(null==t)e.removeAttribute(n);else{var r=je(n);r?e.setAttributeNS(r,n,t):e.setAttribute(n,t)}};function Be(e,n,t){var r=void 0===t?"undefined":Ve(t);"object"===r||"function"===r?Fe(e,n,t):qe(e,n,t)}function Fe(e,n,t){try{e[n]=t}catch(e){}}function Pe(e){return this._listeners[e.type](e)}var Ue=function(e,n,t){var r=b(e).attrs;if(r[n]!==t){if("style"===n){var o=r.style;if(t&&"string"!=typeof t){if("string"==typeof o)e.style.cssText="";else for(var i in o)i in t||(e.style[i]="");for(var i in t)0<=i.indexOf("-")?e.style.setProperty(i,t[i]):e.style[i]=t[i]}else e.style.cssText=t||""}else{if("ref"===n){if((o=r.ref)&&o.disposer){if(o.creator===t)return;o.disposer.unsubscribe()}return t?void(r.ref={creator:t,disposer:t(e)}):void(r.ref=null)}if("o"===n[0]&&"n"===n[1])if("string"==typeof t)Be(e,n,t);else{var a=n.replace(/Capture$/,""),u=n!==a;a=a.toLowerCase().substring(2),t?r[n]||e.addEventListener(a,Pe,u):"string"==typeof r[n]?e.removeAttribute(n):e.removeEventListener(a,Pe,u),(e._listeners||(e._listeners={}))[a]=t}else"list"!==n&&"type"!==n&&"draggable"!==n&&!e.ownerSVGElement&&"svg"!==e.localName&&n in e?(Fe(e,n,null==t?"":t),null!=t&&!1!==t||e.removeAttribute(n)):Be(e,n,t)}r[n]=t}},We=3,He=[],ze=function(e,n,t,r){var o=ee(e,n),i=b(o),a=i.attrsArr,u=i.newAttrs,l=!a.length,c=We,f=0;if(!i.staticsApplied){if(t)for(var s=0;s<t.length;s+=2){var p=t[s],d=t[s+1];void 0===u[p]&&delete u[p],Ue(o,p,d)}i.staticsApplied=!0}for(;c<arguments.length;c+=2,f+=2){var m=arguments[c];if(l)u[a[f]=m]=void 0;else if(a[f]!==m)break;d=arguments[c+1];(l||a[f+1]!==d)&&(a[f+1]=d,Ue(o,m,d))}if(c<arguments.length||f<a.length){for(;c<arguments.length;c+=1,f+=1)a[f]=arguments[c];for(f<a.length&&(a.length=f),c=0;c<a.length;c+=2)u[a[c]]=a[c+1];for(var v in u)Ue(o,v,u[v]),u[v]=void 0}return o},Ge=function(e,n,t,r){He[0]=e,He[1]=n,He[2]=t;for(var o=We;o<arguments.length;o++)He[o]=arguments[o]},Qe=function(e,n){He.push(e,n)},Xe=function(){var e=ze.apply(null,He);return He.length=0,e},$e=function(e){return ne()},Je=function(e,n,t,r){return ze.apply(null,arguments),oe(),$e(e)},Ke=function(t){return function(e){var n=Y();return n.refs[t]=e,{unsubscribe:function(){n&&(n=null)}}}},Ye=function(e){this.value=e};Ye.prototype.toString=function(){return this.value};var Ze=function(e){return e instanceof Ye?e:new Ye(e)},en=function(e,n){if(e instanceof Ye)return nn(e.value);var t=te(),r=b(t);if(r.text!==e){for(var o=r.text=e,i=1;i<arguments.length;i+=1){o=(0,arguments[i])(o)}t.data=o}return t},nn=function(e){return ue(e)};exports.options=s,exports.flush=Ee,exports.clearQueue=Ie,exports.getParent=u,exports.link=a,exports.patch=B,exports.patchInner=B,exports.patchOuter=F,exports.currentElement=re,exports.skip=oe,exports.skipNode=ie,exports.mount=Z,exports.component=K,exports.enqueueComponent=Le,exports.elementVoid=Je,exports.elementOpenStart=Ge,exports.elementOpenEnd=Xe,exports.elementOpen=ze,exports.elementClose=$e,exports.text=en,exports.attr=Qe,exports.raw=nn,exports.rawString=Ze,exports.ref=Ke,exports.getNodeData=b,exports.unmountComponent=p; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var n=e(require("lodash/debounce")),s={},t=new WeakMap,r=new WeakMap;function a(e,n){r.set(n,e),i(e).push(n)}function o(e){t.delete(e),r.delete(e)}function i(e){var n=t.get(e);return n||(n=[],t.set(e,n)),n}function u(e){return r.get(e)}function l(e){t.set(e,[])}function c(){}c.prototype=Object.create(null);var f=function(){return new c},p=function e(n){i(n).forEach(e),o(n),we(n);var t=n.el?n.el.__incrementalDOMData:null;s.beforeUnmount&&s.beforeUnmount(n),pe.has(n)&&(n.componentWillUnmount(),pe.delete(n)),t&&t.componentInstance&&(t.componentInstance=null),n.el=null},d=null;function m(e){return d||(d=document.createRange()).selectNode(document.body),d.createContextualFragment(e.trim()).childNodes}function v(e,n){this.attrs=f(),this.attrsArr=[],this.newAttrs=f(),this.key=n,this.keyMap=f(),this.keyMapValid=!0,this.staticsApplied=!1,this.focused=!1,this.nodeName=e,this.text=null,this.componentInstance=null,this.childLength=0}var h,x,g,y=function(e,n,t){var r=new v(n,t);return e.__incrementalDOMData=r},b=function(e){return w(e),e.__incrementalDOMData},w=function(e){for(var n=[e];n.length;){var t=n.pop();if(!t.__incrementalDOMData){var r=t instanceof Element,o=r?t.localName:t.nodeName,i=r?t.getAttribute("key"):null,a=y(t,o,i);if(i){var u=t.parentNode&&t.parentNode.__incrementalDOMData;u&&(u.keyMap[i]=t)}if(r){for(var l=t.attributes,c=a.attrs,f=a.newAttrs,s=a.attrsArr,p=0;p<l.length;p+=1){var d=l[p],m=d.name,v=d.value;c[m]=v,f[m]=void 0,s.push(m),s.push(v)}for(var h=t.firstChild;h;h=h.nextSibling)n.push(h)}else 3===t.nodeType&&(a.text=t.data)}}},k=function(e,n){return"svg"===e?"http://www.w3.org/2000/svg":"foreignObject"===b(n).nodeName?null:n.namespaceURI},S=function(e,n,t,r){var o,i=k(t,n);return o=i?e.createElementNS(i,t):e.createElement(t),y(o,t,r),o},N=function(e){var n=e.createTextNode("");return y(n,"#text",null),n},M=function(e,n){var t=m(n);if(!t.length){var r=document.createElement("div");r.appendChild(e.createTextNode("")),t=r.childNodes}var o=y(t[0],"#raw",null);return o.text=n,o.childLength=t.length,t},D=function(e){return e instanceof Document||e instanceof DocumentFragment},C=function(e,n){for(var t=[],r=e;r!==n;)t.push(r),r=r.parentNode;return t},A=function(e){for(var n=e,t=n;n;)n=(t=n).parentNode;return t},_=function(e){var n=A(e);return D(n)?n.activeElement:null},E=function(e,n){if(e.contains)return e.contains(n);for(;n&&n!==e;)n=n.parentNode;return n===e},I=function(e,n){var t=_(e);return t&&E(e,t)?C(t,n):[]},O=function(e,n,t){for(var r=n.nextSibling,o=t;o&&o!==n;){var i=o.nextSibling;e.insertBefore(o,r),o=i}},L=null,R=null,T=null,V=function(e,n){for(var t=0;t<e.length;t+=1)b(e[t]).focused=n},j=function(p){return function(e,n,t){var r=T,o=g,i=h,a=x,u=R;T=[],g=e.ownerDocument,x=e.parentNode;var l,c,f,s=I(e,x);for(V(s,!0),l=p(e,n,t),V(s,!1),c=0,f=T.length;c<f;c++)q(T[c]);return T=r,g=o,h=i,x=a,R=u,l}};function q(e){var n=b(e);n.attrs.ref&&n.attrs.ref.disposer&&(n.attrs.ref.disposer.unsubscribe(),n.attrs.ref=null),n.componentInstance&&p(n.componentInstance);for(var t=e.firstChild;t;)q(t),t=t.nextSibling}var B=j(function(e,n,t){return h=e,z(),n(t),X(),e}),F=j(function(e,n,t){var r={nextSibling:e};return h=r,n(t),e!==h&&e.parentNode&&W(x,e,b(x).keyMap),r===h?null:h}),P=function(e,n,t){var r=b(e);if(n===r.nodeName){if(t==r.key)return!0;if(!r.key){r.key=t,r.staticsApplied=!1;var o=x&&b(x).keyMap;return o&&(o[t]=e),!0}}return!1},U=function(e,n){if(!h||!P(h,e,n)){var t,r=b(x),o=h&&b(h),i=r.keyMap,a=!1,u=null;if(n){var l=i[n];if(l)if(P(l,e,n))a=!0,t=l;else if(l===h){var c=b(l);c.componentInstance?(u=c.componentInstance,c.componentInstance=null):T.push(l)}else W(x,l,i);else h&&3===h.nodeType&&""===h.data.trim()&&h.nextSibling&&P(h.nextSibling,e,n)&&(t=h.nextSibling)}t||(t="#text"===e?N(g):S(g,x,e,n),n&&(i[n]=t)),u&&((b(t).componentInstance=u).el=t),b(t).focused?O(x,t,h):a&&!t.parentNode||!o||!o.key||o.focused?h&&h.nextSibling===t&&3===h.nodeType&&""===h.data.trim()?x.removeChild(h):x.insertBefore(t,h):(x.replaceChild(t,h),r.keyMapValid=!1),h=t}},W=function(e,n,t){e.removeChild(n),T.push(n);var r=b(n).key;r&&delete t[r]},H=function(){var e,n=x,t=b(n),r=t.keyMap,o=t.keyMapValid,i=n.lastChild;if(i!==h||!o){for(;i&&i!==h;)W(n,i,r),i=n.lastChild;if(!o){for(e in r)(i=r[e]).parentNode!==n&&(T.push(i),delete r[e]);t.keyMapValid=!0}}},z=function(){x=h,h=null},G=function(){h=Q()},Q=function(){return h?h.nextSibling:x.firstChild},X=function(){H(),x=(h=x).parentNode},$=function(e){var n=b(e.el),t=R;L=n.key,l(e),(R=e).render(),R=t},J=function(e,n,t,r){var o;if(r){var i=b(r);(o=i.componentInstance)||((o="function"==typeof e?new e:e).el=r,i.componentInstance=o),ee(i.nodeName,n),oe(),ne()}else o="function"==typeof e?new e:e,ee("m-placeholder",n),oe(),o.el=ne(),b(o.el).componentInstance=o;return R&&a(R,o),o.apply(t)},K=function(e,n,t){var r=b(x).keyMap[n];return J(e,n,t,r)},Y=function(){return R},Z=function(e,n,t){var r=b(e),o=r&&r.key,i=r.componentInstance;return!i||"function"!=typeof n||i instanceof n||p(i),J(n,o,t,e)},ee=function(e,n){return G(),U(e,L||n),L=null,z(),x},ne=function(){return X(),h},te=function(){return G(),U("#text",null),h},re=function(){return x},oe=function(){h=x.lastChild},ie=G,ae=function(e){for(var n=M(g,e),t=g.createDocumentFragment(),r=n[n.length-1];n.length;)t.appendChild(n[0]);x.insertBefore(t,h),h=r},ue=function(e){if(G(),h&&P(h,"#raw",null)){var n=b(h),t=n.childLength-1;if(n.text!==e){if(ae(e),1<n.childLength)for(;t--;)x.removeChild(h.nextSibling)}else if(t)for(;t--;)h=h.nextSibling}else ae(e);return h},le=!1;document.createElement("div").addEventListener("test",function(){},{get passive(){return!(le=!0)}});var ce=3,fe=30,se="__melodyPrioritize_"+Math.random().toString(36).slice(2),pe=new WeakSet,de=fe,me=!1,ve=!1,he=!!s.experimentalSyncDeepRendering,xe={component:null,next:null},ge=xe;function ye(){return ge===xe}function be(e){if(ge!==xe)for(var n=ge;n!==xe;n=n.next){if(n.component===e)return;if("streaming"!==e.type){if(u(e)===n.component)return;if(u(n.component)===e)return void(n.component=e)}if(n.next===xe){n.next={component:e,next:xe};break}}else ge={component:e,next:xe}}function we(e){if(ge!==xe){ge.component===e&&(ge=ge.next);for(var n=ge,t=ge.next;t&&t!==xe;t=t.next){var r=t.component;do{if(r===e){n.next=t.next,t=n;break}r=u(r)}while(r);n=t}}}function ke(e){if(!e.component.el)return-1;var n=window.innerHeight||document.documentElement.clientHeight,t=e.component.el.getBoundingClientRect(),r=t.top,o=t.bottom;return 0<r&&o<n||r<0&&n<o?0:r<0&&0<o&&o<n?1:0<r&&r<n?2:3}function Se(e){for(var n=new Array(4),t=e;t!==xe;t=t.next){var r=ke(t);if(!(r<0)){var o={component:t.component,next:xe};n[r]?(n[r].last.next=o,n[r].last=o):n[r]={first:o,last:o}}}return n.reduceRight(Ne,xe)}function Ne(e,n){var t=n.first,r=n.last,o=Me(r,e);return o===r?t:o}function Me(e,n){if(e===xe)return n;for(var t=e;t.next!==xe;){if(n===xe)return e;if(n.component===t.component)n=n.next;else for(var r=n,o=n.next;o&&o!==xe;o=o.next){if(o.component===t.component){r.next=o.next;break}r=o}t=t.next}return t.next=n,e}function De(){if(ye())return null;var e=ge;return ge=ge.next,e}var Ce=!1;function Ae(n){Ce||(Ce=!0,requestAnimationFrame(function(){var e=Date.now();n({didTimeout:!1,timeRemaining:function(){return Math.max(0,de-(Date.now()-e))}})}))}function _e(){for(var n=De(),e=[];n;)n.component.el&&(F(n.component.el,function(e){return $(n.component)},{}),e.push(n.component)),n=De();return e}function Ee(e){for(var n,t=De(),r=!1,o=new Set;t;){if(n=ge,ge=xe,t.component.el){var i="m-placeholder"===t.component.el.localName;if(F(t.component.el,function(e){return $(t.component)},{}),o.add(t.component),i&&ge!==xe){for(var a=_e(),u=0;u<a.length;u++)o.add(a[u]);ge=xe}}ge!==xe&&(r=!0),ge=Me(ge,n),t=s.experimentalSyncDeepRendering?De():0<e.timeRemaining()?De():null}for(var l=o.values(),c=l.next();!c.done;c=l.next()){var f=c.value;f.el&&(pe.add(f),f.notify())}Ce=!1,ye()||(he||ve||!r||(ve=!0,window.postMessage(se,"*")),Ae(Ee))}function Ie(){throw new Error("Clearing the queue is only allowed within a test environment.")}function Oe(e){if(e.source===this&&e.data===se){ve=!1;var n=Date.now();ge=Se(ge),10<(n=Date.now()-n)&&(he=!0)}}function Le(e){le&&!me&&Te(),be(e),Ae(Ee)}window.addEventListener("message",Oe,!1);var Re=n(function(){de=fe},300);function Te(){me=!0,de=fe,document.addEventListener("scroll",function(){de=ce,Re()},{passive:!0})}var Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je=function(e){return 0===e.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===e.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":void 0},qe=function(e,n,t){if(null==t)e.removeAttribute(n);else{var r=je(n);r?e.setAttributeNS(r,n,t):e.setAttribute(n,t)}};function Be(e,n,t){var r=void 0===t?"undefined":Ve(t);"object"===r||"function"===r?Fe(e,n,t):qe(e,n,t)}function Fe(e,n,t){try{e[n]=t}catch(e){}}function Pe(e){return this._listeners[e.type](e)}var Ue=function(e,n,t){var r=b(e).attrs;if(r[n]!==t){if("style"===n){var o=r.style;if(t&&"string"!=typeof t){if("string"==typeof o)e.style.cssText="";else for(var i in o)i in t||(e.style[i]="");for(var i in t)0<=i.indexOf("-")?e.style.setProperty(i,t[i]):e.style[i]=t[i]}else e.style.cssText=t||""}else{if("ref"===n){if((o=r.ref)&&o.disposer){if(o.creator===t)return;o.disposer.unsubscribe()}return t?void(r.ref={creator:t,disposer:t(e)}):void(r.ref=null)}if("o"===n[0]&&"n"===n[1])if("string"==typeof t)Be(e,n,t);else{var a=n.replace(/Capture$/,""),u=n!==a;a=a.toLowerCase().substring(2),t?r[n]||e.addEventListener(a,Pe,u):"string"==typeof r[n]?e.removeAttribute(n):e.removeEventListener(a,Pe,u),(e._listeners||(e._listeners={}))[a]=t}else"list"!==n&&"type"!==n&&"draggable"!==n&&!e.ownerSVGElement&&"svg"!==e.localName&&n in e?(Fe(e,n,null==t?"":t),null!=t&&!1!==t||e.removeAttribute(n)):Be(e,n,t)}r[n]=t}},We=3,He=[],ze=function(e,n,t,r){var o=ee(e,n),i=b(o),a=i.attrsArr,u=i.newAttrs,l=!a.length,c=We,f=0;if(!i.staticsApplied){if(t)for(var s=0;s<t.length;s+=2){var p=t[s],d=t[s+1];void 0===u[p]&&delete u[p],Ue(o,p,d)}i.staticsApplied=!0}for(;c<arguments.length;c+=2,f+=2){var m=arguments[c];if(l)u[a[f]=m]=void 0;else if(a[f]!==m)break;d=arguments[c+1];(l||a[f+1]!==d)&&(a[f+1]=d,Ue(o,m,d))}if(c<arguments.length||f<a.length){for(;c<arguments.length;c+=1,f+=1)a[f]=arguments[c];for(f<a.length&&(a.length=f),c=0;c<a.length;c+=2)u[a[c]]=a[c+1];for(var v in u)Ue(o,v,u[v]),u[v]=void 0}return o},Ge=function(e,n,t,r){He[0]=e,He[1]=n,He[2]=t;for(var o=We;o<arguments.length;o++)He[o]=arguments[o]},Qe=function(e,n){He.push(e,n)},Xe=function(){var e=ze.apply(null,He);return He.length=0,e},$e=function(e){return ne()},Je=function(e,n,t,r){return ze.apply(null,arguments),oe(),$e(e)},Ke=function(t){return function(e){var n=Y();return n.refs[t]=e,{unsubscribe:function(){n&&(n=null)}}}},Ye=function(e){this.value=e};Ye.prototype.toString=function(){return this.value};var Ze=function(e){return e instanceof Ye?e:new Ye(e)},en=function(e,n){if(e instanceof Ye)return nn(e.value);var t=te(),r=b(t);if(r.text!==e){for(var o=r.text=e,i=1;i<arguments.length;i+=1){o=(0,arguments[i])(o)}t.data=o}return t},nn=function(e){return ue(e)};exports.options=s,exports.flush=Ee,exports.clearQueue=Ie,exports.getParent=u,exports.link=a,exports.patch=B,exports.patchInner=B,exports.patchOuter=F,exports.currentElement=re,exports.skip=oe,exports.skipNode=ie,exports.mount=Z,exports.component=K,exports.enqueueComponent=Le,exports.elementVoid=Je,exports.elementOpenStart=Ge,exports.elementOpenEnd=Xe,exports.elementOpen=ze,exports.elementClose=$e,exports.text=en,exports.attr=Qe,exports.raw=nn,exports.rawString=Ze,exports.ref=Ke,exports.getNodeData=b,exports.unmountComponent=p; |
{ | ||
"name": "melody-idom", | ||
"version": "1.2.0-42f95e8.8+42f95e8", | ||
"version": "1.2.0-5474acb.9+5474acb", | ||
"description": "", | ||
@@ -17,3 +17,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "42f95e8a9d2eb19120722cede9c9b395e4e81c17" | ||
"gitHead": "5474acb9b842a4761a243cd8235f5d574b921e8c" | ||
} |
@@ -228,2 +228,3 @@ /** | ||
data.key = key; | ||
data.staticsApplied = false; | ||
// but we'll need to update the parent element | ||
@@ -230,0 +231,0 @@ const parentKeys = currentParent && getData(currentParent).keyMap; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
235187
6436