Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuke-components

Package Overview
Dependencies
Maintainers
4
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-components - npm Package Compare versions

Comparing version 0.1.29 to 0.1.30

lib/Image.js

34

lib/recycler-view.js

@@ -11,3 +11,3 @@ 'use strict';

var _rax = require('rax');
var _weexRx = require('weex-rx');

@@ -51,5 +51,5 @@ var _nukeEnv = require('nuke-env');

if (_nukeEnv.isWeex && this.context.isInARecyclerView) {
return (0, _rax.createElement)('cell', _extends({}, this.props, { append: 'tree' }));
return (0, _weexRx.createElement)('cell', _extends({}, this.props, { append: 'tree' }));
} else {
return (0, _rax.createElement)(_view2.default, this.props);
return (0, _weexRx.createElement)(_view2.default, this.props);
}

@@ -60,6 +60,6 @@ }

return Cell;
}(_rax.PureComponent);
}(_weexRx.PureComponent);
Cell.contextTypes = {
isInARecyclerView: _rax.PropTypes.bool
isInARecyclerView: _weexRx.PropTypes.bool
};

@@ -80,5 +80,5 @@

if (_nukeEnv.isWeex && this.context.isInARecyclerView) {
return (0, _rax.createElement)('header', _extends({}, this.props, { append: 'tree' }));
return (0, _weexRx.createElement)('header', _extends({}, this.props, { append: 'tree' }));
} else {
return (0, _rax.createElement)(_view2.default, this.props);
return (0, _weexRx.createElement)(_view2.default, this.props);
}

@@ -89,6 +89,6 @@ }

return Header;
}(_rax.PureComponent);
}(_weexRx.PureComponent);
Header.contextTypes = {
isInARecyclerView: _rax.PropTypes.bool
isInARecyclerView: _weexRx.PropTypes.bool
};

@@ -117,3 +117,3 @@

var dom = require('@weex-module/dom');
var firstCell = (0, _rax.findDOMNode)(_this3.refs.cell0);
var firstCell = (0, _weexRx.findDOMNode)(_this3.refs.cell0);
dom.scrollToElement(firstCell.ref, {

@@ -152,3 +152,3 @@ offset: x || y || 0

if (props._autoWrapCell && child.type != _refreshControl2.default) {
if (child.key) return (0, _rax.createElement)(
if (child.key) return (0, _weexRx.createElement)(
Cell,

@@ -158,3 +158,3 @@ { ref: ref, key: child.key },

);else {
return (0, _rax.createElement)(
return (0, _weexRx.createElement)(
Cell,

@@ -166,3 +166,3 @@ { ref: ref },

} else {
return (0, _rax.cloneElement)(child, { ref: ref });
return (0, _weexRx.cloneElement)(child, { ref: ref });
}

@@ -174,3 +174,3 @@ } else {

return (0, _rax.createElement)(
return (0, _weexRx.createElement)(
'list',

@@ -188,3 +188,3 @@ {

} else {
return (0, _rax.createElement)(_scrollView2.default, _extends({}, props, { ref: 'scrollview' }));
return (0, _weexRx.createElement)(_scrollView2.default, _extends({}, props, { ref: 'scrollview' }));
}

@@ -195,3 +195,3 @@ }

return RecyclerView;
}(_rax.Component);
}(_weexRx.Component);

@@ -202,3 +202,3 @@ RecyclerView.defaultProps = {

RecyclerView.childContextTypes = {
isInARecyclerView: _rax.PropTypes.bool
isInARecyclerView: _weexRx.PropTypes.bool
};

@@ -205,0 +205,0 @@

@@ -9,3 +9,3 @@ 'use strict';

var _rax = require('rax');
var _weexRx = require('weex-rx');

@@ -35,3 +35,3 @@ var _nukeEnv = require('nuke-env');

var displayRefresh = this.props.refreshing ? 'show' : 'hide';
return (0, _rax.createElement)(
return (0, _weexRx.createElement)(
'refresh',

@@ -48,5 +48,5 @@ { id: this.props.id, style: this.props.style, display: displayRefresh, onRefresh: this.props.onRefresh },

return RefreshControl;
}(_rax.Component);
}(_weexRx.Component);
exports.default = RefreshControl;
module.exports = exports['default'];

@@ -11,3 +11,3 @@ 'use strict';

var _rax = require('rax');
var _weexRx = require('weex-rx');

@@ -56,4 +56,4 @@ var _nukeEnv = require('nuke-env');

if (!_this.scrollerNode) {
_this.scrollerNode = (0, _rax.findDOMNode)(_this.refs.scroller);
_this.scrollerContentNode = (0, _rax.findDOMNode)(_this.refs.contentContainer);
_this.scrollerNode = (0, _weexRx.findDOMNode)(_this.refs.scroller);
_this.scrollerContentNode = (0, _weexRx.findDOMNode)(_this.refs.contentContainer);
_this.scrollerNodeSize = _this.props.horizontal ? _this.scrollerNode.offsetWidth : _this.scrollerNode.offsetHeight;

@@ -90,3 +90,3 @@ }

var dom = require('@weex-module/dom');
var contentContainer = (0, _rax.findDOMNode)(_this.refs.contentContainer);
var contentContainer = (0, _weexRx.findDOMNode)(_this.refs.contentContainer);
dom.scrollToElement(contentContainer.ref, {

@@ -99,7 +99,7 @@ offset: x || y || 0

if (x >= 0) {
(0, _rax.findDOMNode)(_this.refs.scroller).scrollLeft = pixelRatio * x;
(0, _weexRx.findDOMNode)(_this.refs.scroller).scrollLeft = pixelRatio * x;
}
if (y >= 0) {
(0, _rax.findDOMNode)(_this.refs.scroller).scrollTop = pixelRatio * y;
(0, _weexRx.findDOMNode)(_this.refs.scroller).scrollTop = pixelRatio * y;
}

@@ -146,3 +146,3 @@ }

var contentContainer = (0, _rax.createElement)(
var contentContainer = (0, _weexRx.createElement)(
_view2.default,

@@ -163,3 +163,3 @@ {

return (0, _rax.createElement)(
return (0, _weexRx.createElement)(
'scroller',

@@ -193,3 +193,3 @@ {

return (0, _rax.createElement)(
return (0, _weexRx.createElement)(
_view2.default,

@@ -204,3 +204,3 @@ _extends({}, this.props, { ref: 'scroller', style: scrollerStyle, onScroll: handleScroll }),

return ScrollView;
}(_rax.Component);
}(_weexRx.Component);

@@ -207,0 +207,0 @@ ScrollView.defaultProps = {

@@ -13,3 +13,3 @@ /* @jsx createElement */

var _rax = require('rax');
var _weexRx = require('weex-rx');

@@ -151,6 +151,6 @@ var _nukeEnv = require('nuke-env');

if (multiline) {
return (0, _rax.createElement)('textarea', _extends({}, propsCommon, { rows: 20, disabled: propsCommon.readOnly }));
return (0, _weexRx.createElement)('textarea', _extends({}, propsCommon, { rows: 20, disabled: propsCommon.readOnly }));
} else {
// https://github.com/alibaba/weex/blob/dev/doc/components/input.md
return (0, _rax.createElement)('input', _extends({}, propsCommon, { type: type, disabled: propsCommon.readOnly }));
return (0, _weexRx.createElement)('input', _extends({}, propsCommon, { type: type, disabled: propsCommon.readOnly }));
}

@@ -166,3 +166,3 @@ } else {

input = (0, _rax.createElement)(
input = (0, _weexRx.createElement)(
'textarea',

@@ -173,3 +173,3 @@ _extends({}, propsCommon, propsMultiline, others),

} else {
input = (0, _rax.createElement)('input', _extends({}, propsCommon, others, { type: type }));
input = (0, _weexRx.createElement)('input', _extends({}, propsCommon, others, { type: type }));
}

@@ -183,3 +183,3 @@

return TextInput;
}(_rax.Component);
}(_weexRx.Component);

@@ -186,0 +186,0 @@ var styles = {

@@ -13,3 +13,3 @@ /* @jsx createElement */

var _rax = require('rax');
var _weexRx = require('weex-rx');

@@ -49,3 +49,3 @@ var _nukeEnv = require('nuke-env');

return (0, _rax.createElement)(_view2.default, props);
return (0, _weexRx.createElement)(_view2.default, props);
}

@@ -55,3 +55,3 @@ }]);

return TouchableHighlight;
}(_rax.Component);
}(_weexRx.Component);

@@ -58,0 +58,0 @@ var styles = {

{
"name": "nuke-components",
"version": "0.1.29",
"version": "0.1.30",
"description": "nuke原件库",

@@ -5,0 +5,0 @@ "main": "lib/index",

/* @jsx createElement */
import {PureComponent, Component, createElement, cloneElement, findDOMNode, PropTypes} from 'rax';
import {PureComponent, Component, createElement, cloneElement, findDOMNode, PropTypes} from 'weex-rx';
import {isWeex} from 'nuke-env';

@@ -5,0 +5,0 @@ import View from './view';

/* @jsx createElement */
import {Component, createElement, PropTypes} from 'rax';
import {Component, createElement, PropTypes} from 'weex-rx';
import {isWeex} from 'nuke-env';

@@ -4,0 +4,0 @@

/* @jsx createElement */
import {Component, createElement, findDOMNode} from 'rax';
import {Component, createElement, findDOMNode} from 'weex-rx';
import {isWeex,isWeb} from 'nuke-env';

@@ -5,0 +5,0 @@ import View from './view';

@@ -5,3 +5,3 @@ /* @jsx createElement */

import {Component, createElement} from 'rax';
import {Component, createElement} from 'weex-rx';
import {isWeex} from 'nuke-env';

@@ -8,0 +8,0 @@

@@ -5,3 +5,3 @@ /* @jsx createElement */

import {createElement, Component} from 'rax';
import {createElement, Component} from 'weex-rx';
import {isWeex} from 'nuke-env';

@@ -8,0 +8,0 @@ import View from './view';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc