diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f69bbeb..1964c307 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## 1.0.12 (2020-09-02) + +* Add CODEOWNERS ([57ccf2f](http://github.paypal.com/paypal/paypal-checkout/commit/57ccf2f)) +* Fix registry ([7b431d5](http://github.paypal.com/paypal/paypal-checkout/commit/7b431d5)) +* Type fixes ([605c51a](http://github.paypal.com/paypal/paypal-checkout/commit/605c51a)) +* Update CODEOWNERS ([69a3012](http://github.paypal.com/paypal/paypal-checkout/commit/69a3012)) + + + ## 1.0.11 (2020-08-03) * Configure Renovate (#3) ([b314284](http://github.paypal.com/paypal/paypal-checkout/commit/b314284)), closes [#3](http://github.paypal.com/paypal/paypal-checkout/issues/3) diff --git a/dist/ui.js b/dist/ui.js index 4888680d..1b4659d9 100644 --- a/dist/ui.js +++ b/dist/ui.js @@ -81,9 +81,9 @@ module.exports = function(modules) { this.children = void 0; this.onRender = void 0; this.name = name; - this.props = props; + this.props = props || {}; this.children = children; - var onRender = props.onRender; + var onRender = this.props.onRender; if ("function" == typeof onRender) { this.onRender = onRender; delete props.onRender; @@ -129,8 +129,9 @@ module.exports = function(modules) { this.props = void 0; this.children = void 0; this.component = component; - this.props = props; + this.props = props || {}; this.children = children; + this.props.children = children; } var _proto4 = ComponentNode.prototype; _proto4.renderComponent = function(renderer) { @@ -152,7 +153,7 @@ module.exports = function(modules) { var result = []; for (var _i6 = 0; _i6 < children.length; _i6++) { var child = children[_i6]; - if (child) if ("string" == typeof child || "number" == typeof child) result.push(new node_TextNode("" + child)); else { + if (child) if ("string" == typeof child || "number" == typeof child) result.push(new node_TextNode(child.toString())); else { if ("boolean" == typeof child) continue; if (Array.isArray(child)) for (var _i8 = 0, _normalizeChildren2 = normalizeChildren(child); _i8 < _normalizeChildren2.length; _i8++) result.push(_normalizeChildren2[_i8]); else { if (!child || "element" !== child.type && "text" !== child.type && "component" !== child.type) throw new TypeError("Unrecognized node type: " + typeof child); @@ -164,7 +165,6 @@ module.exports = function(modules) { } var node_node = function(element, props) { for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) children[_key - 2] = arguments[_key]; - props = props || {}; children = normalizeChildren(children); if ("string" == typeof element) return new node_ElementNode(element, props, children); if ("function" == typeof element) return new node_ComponentNode(element, props, children); diff --git a/dist/ui.min.js b/dist/ui.min.js index 44422f56..51aacbfd 100644 --- a/dist/ui.min.js +++ b/dist/ui.min.js @@ -1 +1 @@ -module.exports=function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return{}.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){"use strict";function r(n,e){for(var t=[],r=0;r1?new i(e):void 0}(this.component(this.props,this.children));if(e)return e.render(n)},e.render=function(n){return n(this)},e.renderChildren=function(n){return r(this.children,n)},n}();function l(n){for(var e=[],t=0;t2?t-2:0),i=2;i1?new i(e):void 0}(this.component(this.props,this.children));if(e)return e.render(n)},e.render=function(n){return n(this)},e.renderChildren=function(n){return r(this.children,n)},n}();function l(n){for(var e=[],t=0;t2?t-2:0),i=2;i