@hpcc-js/preact-shim
Advanced tools
Comparing version 2.0.5 to 2.1.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [2.1.0](https://github.com/hpcc-systems/Visualization/compare/@hpcc-js/preact-shim@2.0.5...@hpcc-js/preact-shim@2.1.0) (2019-03-21) | ||
### Features | ||
* **loader:** Improved loader to manage specific versions ([cfcdfac](https://github.com/hpcc-systems/Visualization/commit/cfcdfac)) | ||
## [2.0.5](https://github.com/hpcc-systems/Visualization/compare/@hpcc-js/preact-shim@2.0.4...@hpcc-js/preact-shim@2.0.5) (2019-02-19) | ||
@@ -8,0 +20,0 @@ |
@@ -0,1 +1,5 @@ | ||
var PKG_NAME = "@hpcc-js/preact-shim"; | ||
var PKG_VERSION = "2.1.0"; | ||
var BUILD_VERSION = "2.3.0"; | ||
/** Virtual DOM Node */ | ||
@@ -940,3 +944,3 @@ function VNode() {} | ||
export { h, Component, render }; | ||
export { h, Component, render, PKG_NAME, PKG_VERSION, BUILD_VERSION }; | ||
//# sourceMappingURL=index.es6.js.map |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(factory((global['@hpcc-js/preact-shim'] = {}))); | ||
}(this, (function (exports) { 'use strict'; | ||
(global = global || self, factory(global['@hpcc-js/preact-shim'] = {})); | ||
}(this, function (exports) { 'use strict'; | ||
var PKG_NAME = "@hpcc-js/preact-shim"; | ||
var PKG_VERSION = "2.1.0"; | ||
var BUILD_VERSION = "2.3.0"; | ||
/** Virtual DOM Node */ | ||
@@ -949,6 +953,9 @@ function VNode() {} | ||
exports.render = render; | ||
exports.PKG_NAME = PKG_NAME; | ||
exports.PKG_VERSION = PKG_VERSION; | ||
exports.BUILD_VERSION = BUILD_VERSION; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); | ||
})); | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e["@hpcc-js/preact-shim"]={})}(this,function(e){"use strict";function p(){}var i={},s=[],c=[];function w(e,t){for(var n in t)e[n]=t[n];return e}var t="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,n=[];function l(e){!e._dirty&&(e._dirty=!0)&&1==n.push(e)&&t(o)}function o(){var e,t=n;for(n=[];e=t.pop();)e._dirty&&E(e)}function S(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function L(e){var t=w({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function P(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n,o,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),o&&o(e);else if("class"!==t||r)if("style"===t){if(o&&"string"!=typeof o&&"string"!=typeof n||(e.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof n)for(var i in n)i in o||(e.style[i]="");for(var i in o)e.style[i]="number"==typeof o[i]&&!1===u.test(i)?o[i]+"px":o[i]}}else if("dangerouslySetInnerHTML"===t)o&&(e.innerHTML=o.__html||"");else if("o"==t[0]&&"n"==t[1]){var l=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),o?n||e.addEventListener(t,f,l):e.removeEventListener(t,f,l),(e._listeners||(e._listeners={}))[t]=o}else if("list"!==t&&"type"!==t&&!r&&t in e)!function(e,t,n){try{e[t]=n}catch(e){}}(e,t,null==o?"":o),null!=o&&!1!==o||e.removeAttribute(t);else{var a=r&&t!==(t=t.replace(/^xlink\:?/,""));null==o||!1===o?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof o&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o):e.setAttribute(t,o))}else e.className=o||""}function f(e){return this._listeners[e.type](e)}var T=[],B=0,m=!1,h=!1;function U(){for(var e;e=T.pop();)e.componentDidMount&&e.componentDidMount()}function M(e,t,n,o,r,i){B++||(m=null!=r&&void 0!==r.ownerSVGElement,h=null!=e&&!("__preactattr_"in e));var l=W(e,t,n,o,i);return r&&l.parentNode!==r&&r.appendChild(l),--B||(h=!1,i||U()),l}function W(e,t,n,o,r){var i=e,l=m;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),V(e,!0))),i.__preactattr_=!0,i;var a,p,s=t.nodeName;if("function"==typeof s)return function(e,t,n,o){var r=e&&e._component,i=r,l=e,a=r&&e._componentConstructor===t.nodeName,p=a,s=L(t);for(;r&&!p&&(r=r._parentComponent);)p=r.constructor===t.nodeName;r&&p&&(!o||r._component)?(A(r,s,3,n,o),e=r.base):(i&&!a&&(D(i),e=l=null),r=j(t.nodeName,s,n),e&&!r.nextBase&&(r.nextBase=e,l=null),A(r,s,1,n,o),e=r.base,l&&e!==l&&(l._component=null,V(l,!1)));return e}(e,t,n,o);if(m="svg"===s||"foreignObject"!==s&&m,s=String(s),(!e||!S(e,s))&&(a=s,(p=m?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,i=p,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),V(e,!0)}var c=i.firstChild,u=i.__preactattr_,f=t.children;if(null==u){u=i.__preactattr_={};for(var d=i.attributes,_=d.length;_--;)u[d[_].name]=d[_].value}return!h&&f&&1===f.length&&"string"==typeof f[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=f[0]&&(c.nodeValue=f[0]):(f&&f.length||null!=c)&&function(e,t,n,o,r){var i,l,a,p,s,c=e.childNodes,u=[],f={},d=0,_=0,v=c.length,m=0,h=t?t.length:0;if(0!==v)for(var y=0;y<v;y++){var b=c[y],C=b.__preactattr_,x=h&&C?b._component?b._component.__key:C.key:null;null!=x?(d++,f[x]=b):(C||(void 0!==b.splitText?!r||b.nodeValue.trim():r))&&(u[m++]=b)}if(0!==h)for(var y=0;y<h;y++){p=t[y],s=null;var x=p.key;if(null!=x)d&&void 0!==f[x]&&(s=f[x],f[x]=void 0,d--);else if(!s&&_<m)for(i=_;i<m;i++)if(void 0!==u[i]&&(g=l=u[i],k=r,"string"==typeof(N=p)||"number"==typeof N?void 0!==g.splitText:"string"==typeof N.nodeName?!g._componentConstructor&&S(g,N.nodeName):k||g._componentConstructor===N.nodeName)){s=l,u[i]=void 0,i===m-1&&m--,i===_&&_++;break}s=W(s,p,n,o),a=c[y],s&&s!==e&&s!==a&&(null==a?e.appendChild(s):s===a.nextSibling?P(a):e.insertBefore(s,a))}var g,N,k;if(d)for(var y in f)void 0!==f[y]&&V(f[y],!1);for(;_<=m;)void 0!==(s=u[m--])&&V(s,!1)}(i,f,n,o,h||null!=u.dangerouslySetInnerHTML),function(e,t,n){var o;for(o in n)t&&null!=t[o]||null==n[o]||v(e,o,n[o],n[o]=void 0,m);for(o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||v(e,o,n[o],n[o]=t[o],m)}(i,t.attributes,u),m=l,i}function V(e,t){var n=e._component;n?D(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||P(e),a(e))}function a(e){for(e=e.lastChild;e;){var t=e.previousSibling;V(e,!0),e=t}}var d={};function j(e,t,n){var o,r=d[e.name];if(e.prototype&&e.prototype.render?(o=new e(t,n),y.call(o,t,n)):((o=new y(t,n)).constructor=e,o.render=_),r)for(var i=r.length;i--;)if(r[i].constructor===e){o.nextBase=r[i].nextBase,r.splice(i,1);break}return o}function _(e,t,n){return this.constructor(e,n)}function A(e,t,n,o,r){e._disable||(e._disable=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,o),o&&o!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=o),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===i.syncComponentUpdates&&e.base?l(e):E(e,1,r)),e.__ref&&e.__ref(e))}function E(e,t,n,o){if(!e._disable){var r,i,l,a=e.props,p=e.state,s=e.context,c=e.prevProps||a,u=e.prevState||p,f=e.prevContext||s,d=e.base,_=e.nextBase,v=d||_,m=e._component,h=!1;if(d&&(e.props=c,e.state=u,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(a,p,s)?h=!0:e.componentWillUpdate&&e.componentWillUpdate(a,p,s),e.props=a,e.state=p,e.context=s),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!h){r=e.render(a,p,s),e.getChildContext&&(s=w(w({},s),e.getChildContext()));var y,b,C=r&&r.nodeName;if("function"==typeof C){var x=L(r);(i=m)&&i.constructor===C&&x.key==i.__key?A(i,x,1,s,!1):(y=i,e._component=i=j(C,x,s),i.nextBase=i.nextBase||_,i._parentComponent=e,A(i,x,0,s,!1),E(i,1,n,!0)),b=i.base}else l=v,(y=m)&&(l=e._component=null),(v||1===t)&&(l&&(l._component=null),b=M(l,r,s,n||!d,v&&v.parentNode,!0));if(v&&b!==v&&i!==m){var g=v.parentNode;g&&b!==g&&(g.replaceChild(b,v),y||(v._component=null,V(v,!1)))}if(y&&D(y),(e.base=b)&&!o){for(var N=e,k=e;k=k._parentComponent;)(N=k).base=b;b._component=N,b._componentConstructor=N.constructor}}if(!d||n?T.unshift(e):h||e.componentDidUpdate&&e.componentDidUpdate(c,u,f),null!=e._renderCallbacks)for(;e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);B||o||U()}}function D(e){var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n,o,r=e._component;r?D(r):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),P(e.nextBase=t),o=(n=e).constructor.name,(d[o]||(d[o]=[])).push(n),a(t)),e.__ref&&e.__ref(null)}function y(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{}}w(y.prototype,{setState:function(e,t){var n=this.state;this.prevState||(this.prevState=w({},n)),w(n,"function"==typeof e?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),l(this)},forceUpdate:function(e){e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),E(this,2)},render:function(){}}),e.h=function(e,t){var n,o,r,i,l=c;for(i=arguments.length;2<i--;)s.push(arguments[i]);for(t&&null!=t.children&&(s.length||s.push(t.children),delete t.children);s.length;)if((o=s.pop())&&void 0!==o.pop)for(i=o.length;i--;)s.push(o[i]);else"boolean"==typeof o&&(o=null),(r="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(r=!1)),r&&n?l[l.length-1]+=o:l===c?l=[o]:l.push(o),n=r;var a=new p;return a.nodeName=e,a.children=l,a.attributes=null==t?void 0:t,a.key=null==t?void 0:t.key,a},e.Component=y,e.render=function(e,t,n){return M(n,e,{},!1,t,!1)},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self)["@hpcc-js/preact-shim"]={})}(this,function(e){"use strict";function t(){}var n={},o=[],r=[];function i(e,t){for(var n in t)e[n]=t[n];return e}var l="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,a=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,p=[];function s(e){!e._dirty&&(e._dirty=!0)&&1==p.push(e)&&l(c)}function c(){var e,t=p;for(p=[];e=t.pop();)e._dirty&&B(e)}function u(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function f(e){var t=i({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n,o,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),o&&o(e);else if("class"!==t||r)if("style"===t){if(o&&"string"!=typeof o&&"string"!=typeof n||(e.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof n)for(var i in n)i in o||(e.style[i]="");for(var i in o)e.style[i]="number"==typeof o[i]&&!1===a.test(i)?o[i]+"px":o[i]}}else if("dangerouslySetInnerHTML"===t)o&&(e.innerHTML=o.__html||"");else if("o"==t[0]&&"n"==t[1]){var l=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),o?n||e.addEventListener(t,v,l):e.removeEventListener(t,v,l),(e._listeners||(e._listeners={}))[t]=o}else if("list"!==t&&"type"!==t&&!r&&t in e)!function(e,t,n){try{e[t]=n}catch(e){}}(e,t,null==o?"":o),null!=o&&!1!==o||e.removeAttribute(t);else{var p=r&&t!==(t=t.replace(/^xlink\:?/,""));null==o||!1===o?p?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof o&&(p?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o):e.setAttribute(t,o))}else e.className=o||""}function v(e){return this._listeners[e.type](e)}var m=[],h=0,y=!1,b=!1;function C(){for(var e;e=m.pop();)e.componentDidMount&&e.componentDidMount()}function x(e,t,n,o,r,i){h++||(y=null!=r&&void 0!==r.ownerSVGElement,b=null!=e&&!("__preactattr_"in e));var l=g(e,t,n,o,i);return r&&l.parentNode!==r&&r.appendChild(l),--h||(b=!1,i||C()),l}function g(e,t,n,o,r){var i=e,l=y;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),N(e,!0))),i.__preactattr_=!0,i;var a,p,s=t.nodeName;if("function"==typeof s)return function(e,t,n,o){var r=e&&e._component,i=r,l=e,a=r&&e._componentConstructor===t.nodeName,p=a,s=f(t);for(;r&&!p&&(r=r._parentComponent);)p=r.constructor===t.nodeName;r&&p&&(!o||r._component)?(L(r,s,3,n,o),e=r.base):(i&&!a&&(T(i),e=l=null),r=S(t.nodeName,s,n),e&&!r.nextBase&&(r.nextBase=e,l=null),L(r,s,1,n,o),e=r.base,l&&e!==l&&(l._component=null,N(l,!1)));return e}(e,t,n,o);if(y="svg"===s||"foreignObject"!==s&&y,s=String(s),(!e||!u(e,s))&&(a=s,(p=y?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,i=p,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),N(e,!0)}var c=i.firstChild,v=i.__preactattr_,m=t.children;if(null==v){v=i.__preactattr_={};for(var h=i.attributes,C=h.length;C--;)v[h[C].name]=h[C].value}return!b&&m&&1===m.length&&"string"==typeof m[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=m[0]&&(c.nodeValue=m[0]):(m&&m.length||null!=c)&&function(e,t,n,o,r){var i,l,a,p,s,c=e.childNodes,f=[],_={},v=0,m=0,h=c.length,y=0,b=t?t.length:0;if(0!==h)for(var C=0;C<h;C++){var x=c[C],k=x.__preactattr_,w=b&&k?x._component?x._component.__key:k.key:null;null!=w?(v++,_[w]=x):(k||(void 0!==x.splitText?!r||x.nodeValue.trim():r))&&(f[y++]=x)}if(0!==b)for(var C=0;C<b;C++){p=t[C],s=null;var w=p.key;if(null!=w)v&&void 0!==_[w]&&(s=_[w],_[w]=void 0,v--);else if(!s&&m<y)for(i=m;i<y;i++)if(void 0!==f[i]&&(S=l=f[i],L=r,"string"==typeof(P=p)||"number"==typeof P?void 0!==S.splitText:"string"==typeof P.nodeName?!S._componentConstructor&&u(S,P.nodeName):L||S._componentConstructor===P.nodeName)){s=l,f[i]=void 0,i===y-1&&y--,i===m&&m++;break}s=g(s,p,n,o),a=c[C],s&&s!==e&&s!==a&&(null==a?e.appendChild(s):s===a.nextSibling?d(a):e.insertBefore(s,a))}var S,P,L;if(v)for(var C in _)void 0!==_[C]&&N(_[C],!1);for(;m<=y;)void 0!==(s=f[y--])&&N(s,!1)}(i,m,n,o,b||null!=v.dangerouslySetInnerHTML),function(e,t,n){var o;for(o in n)t&&null!=t[o]||null==n[o]||_(e,o,n[o],n[o]=void 0,y);for(o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||_(e,o,n[o],n[o]=t[o],y)}(i,t.attributes,v),y=l,i}function N(e,t){var n=e._component;n?T(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||d(e),k(e))}function k(e){for(e=e.lastChild;e;){var t=e.previousSibling;N(e,!0),e=t}}var w={};function S(e,t,n){var o,r=w[e.name];if(e.prototype&&e.prototype.render?(o=new e(t,n),U.call(o,t,n)):((o=new U(t,n)).constructor=e,o.render=P),r)for(var i=r.length;i--;)if(r[i].constructor===e){o.nextBase=r[i].nextBase,r.splice(i,1);break}return o}function P(e,t,n){return this.constructor(e,n)}function L(e,t,o,r,i){e._disable||(e._disable=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==o&&(1!==o&&!1===n.syncComponentUpdates&&e.base?s(e):B(e,1,i)),e.__ref&&e.__ref(e))}function B(e,t,n,o){if(!e._disable){var r,l,a,p=e.props,s=e.state,c=e.context,u=e.prevProps||p,d=e.prevState||s,_=e.prevContext||c,v=e.base,y=e.nextBase,b=v||y,g=e._component,k=!1;if(v&&(e.props=u,e.state=d,e.context=_,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(p,s,c)?k=!0:e.componentWillUpdate&&e.componentWillUpdate(p,s,c),e.props=p,e.state=s,e.context=c),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!k){r=e.render(p,s,c),e.getChildContext&&(c=i(i({},c),e.getChildContext()));var w,P,U=r&&r.nodeName;if("function"==typeof U){var M=f(r);(l=g)&&l.constructor===U&&M.key==l.__key?L(l,M,1,c,!1):(w=l,e._component=l=S(U,M,c),l.nextBase=l.nextBase||y,l._parentComponent=e,L(l,M,0,c,!1),B(l,1,n,!0)),P=l.base}else a=b,(w=g)&&(a=e._component=null),(b||1===t)&&(a&&(a._component=null),P=x(a,r,c,n||!v,b&&b.parentNode,!0));if(b&&P!==b&&l!==g){var E=b.parentNode;E&&P!==E&&(E.replaceChild(P,b),w||(b._component=null,N(b,!1)))}if(w&&T(w),e.base=P,P&&!o){for(var V=e,W=e;W=W._parentComponent;)(V=W).base=P;P._component=V,P._componentConstructor=V.constructor}}if(!v||n?m.unshift(e):k||e.componentDidUpdate&&e.componentDidUpdate(u,d,_),null!=e._renderCallbacks)for(;e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);h||o||C()}}function T(e){var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?T(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.nextBase=t,d(t),function(e){var t=e.constructor.name;(w[t]||(w[t]=[])).push(e)}(e),k(t)),e.__ref&&e.__ref(null)}function U(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{}}i(U.prototype,{setState:function(e,t){var n=this.state;this.prevState||(this.prevState=i({},n)),i(n,"function"==typeof e?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),s(this)},forceUpdate:function(e){e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),B(this,2)},render:function(){}}),e.h=function(e,n){var i,l,a,p,s=r;for(p=arguments.length;p-- >2;)o.push(arguments[p]);for(n&&null!=n.children&&(o.length||o.push(n.children),delete n.children);o.length;)if((l=o.pop())&&void 0!==l.pop)for(p=l.length;p--;)o.push(l[p]);else"boolean"==typeof l&&(l=null),(a="function"!=typeof e)&&(null==l?l="":"number"==typeof l?l=String(l):"string"!=typeof l&&(a=!1)),a&&i?s[s.length-1]+=l:s===r?s=[l]:s.push(l),i=a;var c=new t;return c.nodeName=e,c.children=s,c.attributes=null==n?void 0:n,c.key=null==n?void 0:n.key,c},e.Component=U,e.render=function(e,t,n){return x(n,e,{},!1,t,!1)},e.PKG_NAME="@hpcc-js/preact-shim",e.PKG_VERSION="2.1.0",e.BUILD_VERSION="2.3.0",Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "@hpcc-js/preact-shim", | ||
"version": "2.0.5", | ||
"version": "2.1.0", | ||
"description": "hpcc-js - preact shim", | ||
@@ -21,5 +21,6 @@ "main": "dist/index.js", | ||
"bundle-watch": "npm run bundle -- -w", | ||
"minimize": "uglifyjs dist/index.js -c -m --source-map -o dist/index.min.js", | ||
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js", | ||
"build": "npm run compile-es6 && npm run bundle", | ||
"watch": "run-p compile-es6-watch bundle-watch", | ||
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js", | ||
"lint": "tslint --project . src/**/*.ts", | ||
@@ -32,13 +33,13 @@ "docs": "typedoc --options tdoptions.json ." | ||
"devDependencies": { | ||
"@hpcc-js/bundle": "^0.0.45", | ||
"rimraf": "2.6.2", | ||
"rollup": "0.63.5", | ||
"rollup-plugin-alias": "1.4.0", | ||
"rollup-plugin-commonjs": "9.1.4", | ||
"rollup-plugin-node-resolve": "3.3.0", | ||
"rollup-plugin-postcss": "1.6.2", | ||
"@hpcc-js/bundle": "^2.1.0", | ||
"rimraf": "2.6.3", | ||
"rollup": "1.6.0", | ||
"rollup-plugin-alias": "1.5.1", | ||
"rollup-plugin-commonjs": "9.2.1", | ||
"rollup-plugin-node-resolve": "4.0.1", | ||
"rollup-plugin-postcss": "2.0.3", | ||
"rollup-plugin-sourcemaps": "0.4.2", | ||
"tslint": "5.11.0", | ||
"typescript": "3.3.3", | ||
"uglify-js": "3.4.9" | ||
"terser": "3.17.0", | ||
"tslint": "5.14.0", | ||
"typescript": "3.3.3" | ||
}, | ||
@@ -56,3 +57,3 @@ "repository": { | ||
"homepage": "https://github.com/hpcc-systems/Visualization", | ||
"gitHead": "0e8fe38042c3a4e79d1ade2217fa1f9c506ddf01" | ||
"gitHead": "5e7a03de2a9c7a09731a942de3d20fe7319400da" | ||
} |
@@ -0,2 +1,3 @@ | ||
export * from "./__package__"; | ||
export { h, Component, render } from "preact"; | ||
//# sourceMappingURL=index.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
204755
13
1627