react-jsbox
Advanced tools
Comparing version 0.0.52 to 0.0.53-beta
const ReactJSBox = require('./lib/react-jsbox') | ||
module.exports = ReactJSBox | ||
module.exports = ReactJSBox |
{ | ||
"name": "react-jsbox", | ||
"version": "0.0.52", | ||
"version": "0.0.53-beta", | ||
"description": "A Custom React Renderer for writing JSBox apps in React.", | ||
@@ -27,22 +27,22 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/core": "^7.5.5", | ||
"@babel/core": "^7.6.0", | ||
"@babel/plugin-proposal-class-properties": "^7.5.5", | ||
"@babel/plugin-proposal-decorators": "^7.4.4", | ||
"@babel/plugin-transform-runtime": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"@babel/plugin-proposal-decorators": "^7.6.0", | ||
"@babel/plugin-transform-runtime": "^7.6.0", | ||
"@babel/preset-env": "^7.6.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"@babel/runtime": "^7.5.5", | ||
"babel-eslint": "^10.0.2", | ||
"@babel/runtime": "^7.6.0", | ||
"babel-eslint": "^10.0.3", | ||
"babel-plugin-annotate-pure-calls": "^0.4.0", | ||
"babel-preset-minify": "^0.5.1", | ||
"eslint": "^6.2.0", | ||
"eslint": "^6.3.0", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jsbox": "^0.1.1", | ||
"eslint-plugin-react-hooks": "^1.7.0", | ||
"eslint-plugin-react-hooks": "^2.0.1", | ||
"react": "16.9.0", | ||
"rollup": "1.19.4", | ||
"rollup": "1.21.0", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-cleanup": "^3.1.1", | ||
"rollup-plugin-commonjs": "^10.0.2", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-modify": "^3.0.0", | ||
@@ -49,0 +49,0 @@ "rollup-plugin-node-resolve": "^5.2.0", |
@@ -54,5 +54,6 @@ const DEBUG = !!global.__REACT_JSBOX_DEBUG__ | ||
}) | ||
return val | ||
} | ||
return val | ||
} | ||
if (descriptor.get) { | ||
@@ -59,0 +60,0 @@ const originalGet = descriptor.get.bind(target) |
@@ -44,3 +44,10 @@ import View from './Components/view' | ||
appendInitialChild(parentInstance, child) { | ||
parentInstance.appendChild(child) | ||
switch (parentInstance.element.ocValue().__clsName) { | ||
case "BBStackView": | ||
const stack = parentInstance.element.stack | ||
stack.insert(child.element, stack.views.length) | ||
break | ||
default: | ||
parentInstance.appendChild(child) | ||
} | ||
} | ||
@@ -75,3 +82,9 @@ | ||
const parent = parentInstance.element || parentInstance | ||
parent.ocValue().$addSubview(child.element) | ||
switch (parent.ocValue().__clsName) { | ||
case "BBStackView": | ||
parent.stack.insert(child.element, parent.stack.views.length) | ||
break | ||
default: | ||
parent.ocValue().$addSubview(child.element) | ||
} | ||
} | ||
@@ -106,3 +119,10 @@ | ||
removeChildFromContainer(parentInstance, child) { | ||
child.element.remove() | ||
const parent = parentInstance.element || parentInstance | ||
switch (parent.ocValue().__clsName) { | ||
case "BBStackView": | ||
parent.stack.remove(child.element) | ||
break | ||
default: | ||
child.element.remove() | ||
} | ||
} | ||
@@ -109,0 +129,0 @@ |
Sorry, the diff of this file is too big to display
107464
769