Skip to content

Commit 5a81740

Browse files
committed
chore: yarn.lock
2 parents c96bf78 + 4a2a29b commit 5a81740

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@
4545
"react": "^17.0.2"
4646
},
4747
"peerDependencies": {
48-
"react": "^16.8.0"
48+
"react": ">=16.8.0"
4949
}
5050
}

packages/core/src/utils/createNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ export function createNode(
128128
};
129129

130130
Object.keys(userComponentConfig.related).forEach((comp) => {
131-
node.related[comp] = () =>
131+
node.related[comp] = (props) =>
132132
React.createElement(
133133
NodeProvider,
134134
relatedNodeContext,
135-
React.createElement(userComponentConfig.related[comp])
135+
React.createElement(userComponentConfig.related[comp], props)
136136
);
137137
});
138138
}

packages/layers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"peerDependencies": {
4242
"@craftjs/core": "^0.1.0-alpha.1",
43-
"react": "^16.8.0",
43+
"react": ">=16.8.0",
4444
"styled-components": ">= 4"
4545
}
4646
}

packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"immer/**"
2727
],
2828
"peerDependencies": {
29-
"react": "^16.8.0"
29+
"react": ">=16.8.0"
3030
}
3131
}

site/docs/guides/save-load.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export default function App() {
218218
<Topbar />
219219
<Grid container spacing={5} style={{paddingTop: "10px"}}>
220220
<Grid item xs>
221-
<Frame json={json}>
221+
<Frame data={json}>
222222
<Element is={Container} padding={5} background="#eeeeee">
223223
...
224224
</Element>
@@ -237,4 +237,4 @@ export default function App() {
237237
## All set! 💖
238238
Now, play with the editor and press the `Copy Current State` button when you are done. Refresh the page so the editor returns to its default state, then press the `Load State` button and paste the copied output - you should see the editor displaying the elements in the state from the time you copied.
239239

240-
<Image img="tutorial/save-and-load.gif" />
240+
<Image img="tutorial/save-and-load.gif" />

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3018,7 +3018,7 @@ __metadata:
30183018
react: ^17.0.2
30193019
tiny-invariant: ^1.0.6
30203020
peerDependencies:
3021-
react: ^16.8.0
3021+
react: ">=16.8.0"
30223022
languageName: unknown
30233023
linkType: soft
30243024

@@ -3032,7 +3032,7 @@ __metadata:
30323032
styled-components: ^4.2.1
30333033
peerDependencies:
30343034
"@craftjs/core": ^0.1.0-alpha.1
3035-
react: ^16.8.0
3035+
react: ">=16.8.0"
30363036
styled-components: ">= 4"
30373037
languageName: unknown
30383038
linkType: soft
@@ -3048,7 +3048,7 @@ __metadata:
30483048
shallowequal: ^1.1.0
30493049
tiny-invariant: ^1.0.6
30503050
peerDependencies:
3051-
react: ^16.8.0
3051+
react: ">=16.8.0"
30523052
languageName: unknown
30533053
linkType: soft
30543054

0 commit comments

Comments
 (0)