Skip to content

Commit e9eec9f

Browse files
author
Nicify
committed
refactor: update hostconfig
1 parent f60d82c commit e9eec9f

File tree

2 files changed

+55
-4
lines changed

2 files changed

+55
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-jsbox",
3-
"version": "1.2.8",
3+
"version": "1.2.9",
44
"description": "A custom React renderer for writing JSBox apps in React.",
55
"keywords": [
66
"React",
@@ -25,10 +25,10 @@
2525
"author": "Eva1ent",
2626
"repository": "github:Nicify/react-jsbox",
2727
"dependencies": {
28-
"react-reconciler": "^0.26.1"
28+
"react-reconciler": "0.25.1"
2929
},
3030
"peerDependencies": {
31-
"react": "^17.0.1"
31+
"react": "16.14.0"
3232
},
3333
"devDependencies": {
3434
"@babel/core": "7.12.3",
@@ -46,7 +46,7 @@
4646
"eslint-plugin-react-hooks": "4.2.0",
4747
"prettier": "2.1.2",
4848
"react": "17.0.1",
49-
"rollup": "2.32.1",
49+
"rollup": "2.33.0",
5050
"rollup-plugin-babel": "4.4.0",
5151
"rollup-plugin-cleanup": "3.2.1",
5252
"rollup-plugin-commonjs": "10.1.0",

src/hostconfig.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,57 @@ const hostConfig = {
128128

129129
unhideTextInstance(instance, props) {
130130
// noop
131+
},
132+
133+
getFundamentalComponentInstance(fundamentalInstance) {
134+
throw new Error('Not yet implemented.')
135+
},
136+
137+
mountFundamentalComponent(fundamentalInstance) {
138+
throw new Error('Not yet implemented.')
139+
},
140+
141+
shouldUpdateFundamentalComponent(fundamentalInstance) {
142+
console.warn('Not yet implemented.')
143+
return false
144+
},
145+
146+
updateFundamentalComponent(fundamentalInstance) {
147+
throw new Error('Not yet implemented.')
148+
},
149+
150+
unmountFundamentalComponent(fundamentalInstance) {
151+
throw new Error('Not yet implemented.')
152+
},
153+
154+
cloneFundamentalInstance(fundamentalInstance) {
155+
throw new Error('Not yet implemented.')
156+
},
157+
158+
clearContainer(container) {
159+
container?.views?.forEach(view => view?.remove())
160+
},
161+
162+
getInstanceFromNode() {
163+
throw new Error('Not yet implemented.')
164+
},
165+
166+
beforeActiveInstanceBlur() {
167+
// noop
168+
},
169+
170+
afterActiveInstanceBlur() {
171+
// noop
172+
},
173+
174+
preparePortalMount() {
175+
// noop
176+
},
177+
178+
prepareScopeUpdate() {},
179+
180+
getInstanceFromScope() {
181+
throw new Error('Not yet implemented.')
131182
}
132183
}
133184

0 commit comments

Comments
 (0)