Comparing version 2.2.2 to 2.2.3
@@ -1,1 +0,1 @@ | ||
{"npm/nuke-env/2.1.6/index.cmd":{"requires":[]},"npm/nuke-helper/2.1.6/index.cmd":{"requires":["npm/nuke-env/2.1.6/index.cmd"]},"npm/nuke-text/2.1.6/index.cmd":{"requires":["npm/nuke-helper/2.1.6/index.cmd"]}} | ||
{"npm/nuke-env/2.2.2/index.cmd":{"requires":[]},"npm/nuke-helper/2.2.2/index.cmd":{"requires":["npm/nuke-env/2.2.2/index.cmd"]},"npm/nuke-text/2.2.2/index.cmd":{"requires":["npm/nuke-helper/2.2.2/index.cmd"]}} |
@@ -1,1 +0,1 @@ | ||
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=1)}([function(e,t){e.exports=require("rax")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=n(2),u=function(e){return e&&e.__esModule?e:{default:e}}(n(3));var c="function"!=typeof callNative,a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+(c?"px":"wx"):e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),a=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete c.optimizeLineHeight,a=this.fixedFont?(0,l.calcTextSize)(a):a,a=this.optimizeLineHeight?this.calcLineHeight(a):a,(0,i.createElement)(u.default,r({},c,{style:a,onClick:t||n}))}}]),t}();a.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},a.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},a.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(1e-5*9.24*Math.pow(e,2)+1.492*e+2.174)}},t.default=a,e.exports=t.default},function(e,t){e.exports=require("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="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},l=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},u=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0);function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f="function"==typeof callNative,p=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=l({},e,{style:e.style||{}}),n="";if(null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText)return(0,c.createElement)("span",t,n);if(e.onPress&&(t.onClick=e.onPress),f)return e.numberOfLines&&(t.style.lines=e.numberOfLines),t.value=n,(0,c.createElement)("text",t);var o=l({},b.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=i+""),o.overflow="hidden"),(0,c.createElement)("span",l({},t,{style:o}),n)},r.renderRichText=function(){var e=r.props,t=e.children,n=l({},e,{style:e.style||{}}),o=l({},b.richtext,n.style);return f&&(t=y(t,r)),(0,c.createElement)("p",l({},n,{style:o}),t)},a(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),u(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:c.PropTypes.bool},r.childContextTypes={isInAParentText:c.PropTypes.bool},o);function s(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(s(r,t));return n}var b={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=p,e.exports=t.default}]); | ||
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=1)}([function(e,t){e.exports=require("rax")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=n(2),a=function(e){return e&&e.__esModule?e:{default:e}}(n(3));var c="function"!=typeof callNative,f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.fontFamily=n.commonConfigs&&n.commonConfigs.fontFamily,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+(c?"px":"wx"):e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),f={fontSize:"32rem",wordWrap:"break-word"};this.fontFamily&&(f.fontFamily=this.fontFamily);var u=Object.assign(f,o);return delete c.optimizeLineHeight,u=this.fixedFont?(0,l.calcTextSize)(u):u,u=this.optimizeLineHeight?this.calcLineHeight(u):u,(0,i.createElement)(a.default,r({},c,{style:u,onClick:t||n}))}}]),t}();f.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},f.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},f.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(9.24*1e-5*Math.pow(e,2)+1.492*e+2.174)}},t.default=f,e.exports=t.default},function(e,t){e.exports=require("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="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},l=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0);function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u="function"==typeof callNative,p=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=l({},e,{style:e.style||{}}),n="";if(null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText)return(0,c.createElement)("span",t,n);if(e.onPress&&(t.onClick=e.onPress),u)return e.numberOfLines&&(t.style.lines=e.numberOfLines),t.value=n,(0,c.createElement)("text",t);var o=l({},b.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=i+""),o.overflow="hidden"),(0,c.createElement)("span",l({},t,{style:o}),n)},r.renderRichText=function(){var e=r.props,t=e.children,n=l({},e,{style:e.style||{}}),o=l({},b.richtext,n.style);return u&&(t=y(t,r)),(0,c.createElement)("p",l({},n,{style:o}),t)},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),a(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:c.PropTypes.bool},r.childContextTypes={isInAParentText:c.PropTypes.bool},o);function s(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(s(r,t));return n}var b={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=p,e.exports=t.default}]); |
// {"framework" : "Rax"} | ||
define("nuke-text",["React","nuke-helper"],function(e,t,n){n.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=2)}([function(e,t){e.exports=React},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator;e.exports=n(3)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=l(n(1)),f=n(5),u=l(n(6));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"px":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,a=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),l=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete a.optimizeLineHeight,l=this.fixedFont?(0,f.calcTextSize)(l):l,l=this.optimizeLineHeight?this.calcLineHeight(l):l,(0,i.createElement)(u.default,r({},a,{style:function(e){var t=["fontSize","width","height","minWidth","minHeight","maxWidth","maxHeight","margin","padding","marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","borderWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","top","bottom","left","right"],n={};if(Array.isArray(e))for(var r=0;r<e.length;r++)Object.assign(n,e[r]);else n=e;for(var o in n)-1<t.indexOf(o)&&("fontSize"===o&&console.log("-------\x3e",n[o],"=====>",7.5),/^\d+$/.test(n[o])?n[o]=(n[o]/7.5).toFixed(6)+"vw":"string"==typeof n[o]&&-1<n[o].indexOf("rem")&&(n[o]=(n[o].replace("rem","")/7.5).toFixed(6)+"vw"));return n}(l),onClick:t||n}))}}]),t}();c.contextTypes={androidConfigs:a.default.any,commonConfigs:a.default.any},c.propTypes={optimizeLineHeight:a.default.boolean,fixedFont:a.default.boolean,style:a.default.any,onPress:a.default.func,onClick:a.default.func,lineHeightOptimizer:a.default.func},c.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(1e-5*9.24*Math.pow(e,2)+1.492*e+2.174)}},t.default=c,e.exports=t.default},function(e,t,n){"use strict";var r=n(4);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n){t.exports=e("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="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},a=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},f=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n(1));function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e){var t=["fontSize","width","height","minWidth","minHeight","maxWidth","maxHeight","margin","padding","marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","borderWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","top","bottom","left","right"],n={};if(Array.isArray(e))for(var r=0;r<e.length;r++)Object.assign(n,e[r]);else n=e;for(var o in n)-1<t.indexOf(o)&&("fontSize"===o&&console.log("-------\x3e",n[o],"=====>",7.5),/^\d+$/.test(n[o])?n[o]=(n[o]/7.5).toFixed(6)+"vw":"string"==typeof n[o]&&-1<n[o].indexOf("rem")&&(n[o]=(n[o].replace("rem","")/7.5).toFixed(6)+"vw"));return n}var s=!1,d=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),f=0;f<o;f++)i[f]=arguments[f];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=a({},e,{style:e.style||{}}),n="";if(null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText)return(0,u.createElement)("span",t,n);e.onPress&&(t.onClick=e.onPress);var o=a({},b.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=i+""),o.overflow="hidden"),(0,u.createElement)("span",a({},t,{style:p(o)}),n)},r.renderRichText=function(){var e=r.props,t=e.children,n=a({},e,{style:e.style||{}}),o=a({},b.richtext,n.style);return s&&(t=y(t,r)),(0,u.createElement)("p",a({},n,{style:p(o)}),t)},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.Component),f(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:l.default.bool},r.childContextTypes={isInAParentText:l.default.bool},o);function h(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(h(r,t));return n}var b={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=d,e.exports=t.default}])}); | ||
define("nuke-text",["React","nuke-helper"],function(e,t,n){n.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=2)}([function(e,t){e.exports=React},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator;e.exports=n(3)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=l(n(1)),f=n(5),u=l(n(6));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.fontFamily=n.commonConfigs&&n.commonConfigs.fontFamily,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"px":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,a=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),l={fontSize:"32rem",wordWrap:"break-word"};this.fontFamily&&(l.fontFamily=this.fontFamily);var c=Object.assign(l,o);return delete a.optimizeLineHeight,c=this.fixedFont?(0,f.calcTextSize)(c):c,c=this.optimizeLineHeight?this.calcLineHeight(c):c,(0,i.createElement)(u.default,r({},a,{style:function(e){var t=["fontSize","width","height","minWidth","minHeight","maxWidth","maxHeight","margin","padding","marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","borderWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","top","bottom","left","right"],n={};if(Array.isArray(e))for(var r=0;r<e.length;r++)Object.assign(n,e[r]);else n=e;for(var o in n)-1<t.indexOf(o)&&("fontSize"===o&&console.log("-------\x3e",n[o],"=====>",7.5),/^\d+$/.test(n[o])?n[o]=(n[o]/7.5).toFixed(6)+"vw":"string"==typeof n[o]&&-1<n[o].indexOf("rem")&&(n[o]=(n[o].replace("rem","")/7.5).toFixed(6)+"vw"));return n}(c),onClick:t||n}))}}]),t}();c.contextTypes={androidConfigs:a.default.any,commonConfigs:a.default.any},c.propTypes={optimizeLineHeight:a.default.boolean,fixedFont:a.default.boolean,style:a.default.any,onPress:a.default.func,onClick:a.default.func,lineHeightOptimizer:a.default.func},c.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(1e-5*9.24*Math.pow(e,2)+1.492*e+2.174)}},t.default=c,e.exports=t.default},function(e,t,n){"use strict";var r=n(4);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n){t.exports=e("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="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},a=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},f=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n(1));function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e){var t=["fontSize","width","height","minWidth","minHeight","maxWidth","maxHeight","margin","padding","marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","borderWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","top","bottom","left","right"],n={};if(Array.isArray(e))for(var r=0;r<e.length;r++)Object.assign(n,e[r]);else n=e;for(var o in n)-1<t.indexOf(o)&&("fontSize"===o&&console.log("-------\x3e",n[o],"=====>",7.5),/^\d+$/.test(n[o])?n[o]=(n[o]/7.5).toFixed(6)+"vw":"string"==typeof n[o]&&-1<n[o].indexOf("rem")&&(n[o]=(n[o].replace("rem","")/7.5).toFixed(6)+"vw"));return n}var p=!1,d=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),f=0;f<o;f++)i[f]=arguments[f];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=a({},e,{style:e.style||{}}),n="";if(null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText)return(0,u.createElement)("span",t,n);e.onPress&&(t.onClick=e.onPress);var o=a({},b.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=i+""),o.overflow="hidden"),(0,u.createElement)("span",a({},t,{style:s(o)}),n)},r.renderRichText=function(){var e=r.props,t=e.children,n=a({},e,{style:e.style||{}}),o=a({},b.richtext,n.style);return p&&(t=h(t,r)),(0,u.createElement)("p",a({},n,{style:s(o)}),t)},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.Component),f(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:l.default.bool},r.childContextTypes={isInAParentText:l.default.bool},o);function y(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=h(o,t)),i.context=t.getChildContext(),i.render()}return e}function h(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(y(r,t));return n}var b={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=d,e.exports=t.default}])}); |
// {"framework" : "Rax"} | ||
define("nuke-text",["rax","nuke-helper"],function(e,t,n){n.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=1)}([function(t,n){t.exports=e("rax")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=n(2),u=function(e){return e&&e.__esModule?e:{default:e}}(n(3));var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"px":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),p=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete c.optimizeLineHeight,p=this.fixedFont?(0,l.calcTextSize)(p):p,p=this.optimizeLineHeight?this.calcLineHeight(p):p,(0,i.createElement)(u.default,r({},c,{style:p,onClick:t||n}))}}]),t}();c.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},c.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},c.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(1e-5*9.24*Math.pow(e,2)+1.492*e+2.174)}},t.default=c,e.exports=t.default},function(t,n){t.exports=e("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="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},l=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},u=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0);function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=!1,f=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=l({},e,{style:e.style||{}}),n="";if(null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText)return(0,c.createElement)("span",t,n);e.onPress&&(t.onClick=e.onPress);var o=l({},b.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=i+""),o.overflow="hidden"),(0,c.createElement)("span",l({},t,{style:o}),n)},r.renderRichText=function(){var e=r.props,t=e.children,n=l({},e,{style:e.style||{}}),o=l({},b.richtext,n.style);return a&&(t=y(t,r)),(0,c.createElement)("p",l({},n,{style:o}),t)},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),u(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:c.PropTypes.bool},r.childContextTypes={isInAParentText:c.PropTypes.bool},o);function s(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(s(r,t));return n}var b={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=f,e.exports=t.default}])}); | ||
define("nuke-text",["rax","nuke-helper"],function(e,t,n){n.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=1)}([function(t,n){t.exports=e("rax")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=n(2),a=function(e){return e&&e.__esModule?e:{default:e}}(n(3));var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.fontFamily=n.commonConfigs&&n.commonConfigs.fontFamily,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"px":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),u={fontSize:"32rem",wordWrap:"break-word"};this.fontFamily&&(u.fontFamily=this.fontFamily);var f=Object.assign(u,o);return delete c.optimizeLineHeight,f=this.fixedFont?(0,l.calcTextSize)(f):f,f=this.optimizeLineHeight?this.calcLineHeight(f):f,(0,i.createElement)(a.default,r({},c,{style:f,onClick:t||n}))}}]),t}();c.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},c.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},c.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(9.24*1e-5*Math.pow(e,2)+1.492*e+2.174)}},t.default=c,e.exports=t.default},function(t,n){t.exports=e("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="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},l=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0);function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=!1,p=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=l({},e,{style:e.style||{}}),n="";if(null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText)return(0,c.createElement)("span",t,n);e.onPress&&(t.onClick=e.onPress);var o=l({},h.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=i+""),o.overflow="hidden"),(0,c.createElement)("span",l({},t,{style:o}),n)},r.renderRichText=function(){var e=r.props,t=e.children,n=l({},e,{style:e.style||{}}),o=l({},h.richtext,n.style);return f&&(t=y(t,r)),(0,c.createElement)("p",l({},n,{style:o}),t)},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),a(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:c.PropTypes.bool},r.childContextTypes={isInAParentText:c.PropTypes.bool},o);function s(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(s(r,t));return n}var h={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=p,e.exports=t.default}])}); |
// {"framework" : "Rax"} | ||
define("nuke-text",["rax","nuke-helper"],function(e,t,n){n.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=1)}([function(t,n){t.exports=e("rax")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),u=n(2),l=function(e){return e&&e.__esModule?e:{default:e}}(n(3));var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"wx":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),f=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete c.optimizeLineHeight,f=this.fixedFont?(0,u.calcTextSize)(f):f,f=this.optimizeLineHeight?this.calcLineHeight(f):f,(0,i.createElement)(l.default,r({},c,{style:f,onClick:t||n}))}}]),t}();c.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},c.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},c.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(1e-5*9.24*Math.pow(e,2)+1.492*e+2.174)}},t.default=c,e.exports=t.default},function(t,n){t.exports=e("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="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},u=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0);function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=!0,a=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=u({},e,{style:e.style||{}}),n="";return null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText?(0,c.createElement)("span",t,n):(e.onPress&&(t.onClick=e.onPress),e.numberOfLines&&(t.style.lines=e.numberOfLines),t.value=n,(0,c.createElement)("text",t))},r.renderRichText=function(){var e=r.props,t=e.children,n=u({},e,{style:e.style||{}}),o=u({},b.richtext,n.style);return p&&(t=y(t,r)),(0,c.createElement)("p",u({},n,{style:o}),t)},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),l(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:c.PropTypes.bool},r.childContextTypes={isInAParentText:c.PropTypes.bool},o);function s(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(s(r,t));return n}var b={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=a,e.exports=t.default}])}); | ||
define("nuke-text",["rax","nuke-helper"],function(e,t,n){n.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=1)}([function(t,n){t.exports=e("rax")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=n(2),u=function(e){return e&&e.__esModule?e:{default:e}}(n(3));var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.fontFamily=n.commonConfigs&&n.commonConfigs.fontFamily,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"wx":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),f={fontSize:"32rem",wordWrap:"break-word"};this.fontFamily&&(f.fontFamily=this.fontFamily);var a=Object.assign(f,o);return delete c.optimizeLineHeight,a=this.fixedFont?(0,l.calcTextSize)(a):a,a=this.optimizeLineHeight?this.calcLineHeight(a):a,(0,i.createElement)(u.default,r({},c,{style:a,onClick:t||n}))}}]),t}();c.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},c.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},c.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(9.24*1e-5*Math.pow(e,2)+1.492*e+2.174)}},t.default=c,e.exports=t.default},function(t,n){t.exports=e("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="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},l=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},u=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0);function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=!0,p=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=l({},e,{style:e.style||{}}),n="";return null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText?(0,c.createElement)("span",t,n):(e.onPress&&(t.onClick=e.onPress),e.numberOfLines&&(t.style.lines=e.numberOfLines),t.value=n,(0,c.createElement)("text",t))},r.renderRichText=function(){var e=r.props,t=e.children,n=l({},e,{style:e.style||{}}),o=l({},h.richtext,n.style);return a&&(t=y(t,r)),(0,c.createElement)("p",l({},n,{style:o}),t)},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),u(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:c.PropTypes.bool},r.childContextTypes={isInAParentText:c.PropTypes.bool},o);function s(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(s(r,t));return n}var h={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=p,e.exports=t.default}])}); |
@@ -6,2 +6,11 @@ # Change Log | ||
<a name="2.2.3"></a> | ||
## [2.2.3](https://gitlab.alibaba-inc.com/nuke/text/compare/v2.2.2...v2.2.3) (2018-08-24) | ||
**Note:** Version bump only for package nuke-text | ||
<a name="2.2.2"></a> | ||
@@ -8,0 +17,0 @@ ## [2.2.2](https://gitlab.alibaba-inc.com/nuke/text/compare/v2.2.1...v2.2.2) (2018-08-23) |
{ | ||
"name": "nuke-text", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "文本", | ||
@@ -45,11 +45,11 @@ "main": "lib/index", | ||
"dependencies": { | ||
"nuke-helper": "^2.2.2" | ||
"nuke-helper": "^2.2.3" | ||
}, | ||
"devDependencies": { | ||
"nuke-button": "^2.2.2", | ||
"nuke-env": "^2.2.2", | ||
"nuke-icon": "^2.2.2", | ||
"nuke-page": "^2.2.2", | ||
"nuke-theme-provider": "^2.2.2", | ||
"nuke-view": "^2.2.2" | ||
"nuke-button": "^2.2.3", | ||
"nuke-env": "^2.2.3", | ||
"nuke-icon": "^2.2.3", | ||
"nuke-page": "^2.2.3", | ||
"nuke-theme-provider": "^2.2.3", | ||
"nuke-view": "^2.2.3" | ||
}, | ||
@@ -60,3 +60,3 @@ "publishConfig": { | ||
"license": "Apache", | ||
"gitHead": "ffcb4269489cb30dfded592190c4997ff2376c18" | ||
"gitHead": "31d1903070b554e3c028a9bfac19811d557f4c0c" | ||
} |
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
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
73610
Updatednuke-helper@^2.2.3