Commit 6093732
Fix tex and universal examples crash because of different React versions (#1756) (#1931)
Summary:
**Summary**
Fixes #1756, and #1930. The tex and universal examples have their own dependencies, and relied on a different version of `react`/`react-dom` from the one defined for Draft.js. This caused a JS error when running the examples.
I have also added the missing lockfile for the universal example.
**Test Plan**
- Make a clean copy of the project
- For both examples, go through the instructions to install their dependencies and build them.
- Open the examples in a browser, and attempt to type in the editor(s)
Pull Request resolved: facebookarchive/draft-js#1931
Differential Revision: D13019619
fbshipit-source-id: 3451737816a5ba9fe283cb65b285fd5fb5e5532a1 parent bb3cdf5 commit 6093732
File tree
4 files changed
+2726
-31
lines changed- examples/draft-0-10-0
- tex
- universal
4 files changed
+2726
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | 1063 | | |
1072 | 1064 | | |
1073 | 1065 | | |
| |||
1172 | 1164 | | |
1173 | 1165 | | |
1174 | 1166 | | |
1175 | | - | |
| 1167 | + | |
1176 | 1168 | | |
1177 | 1169 | | |
1178 | 1170 | | |
| |||
1331 | 1323 | | |
1332 | 1324 | | |
1333 | 1325 | | |
1334 | | - | |
| 1326 | + | |
1335 | 1327 | | |
1336 | 1328 | | |
1337 | 1329 | | |
| |||
2257 | 2249 | | |
2258 | 2250 | | |
2259 | 2251 | | |
2260 | | - | |
2261 | | - | |
2262 | | - | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
2263 | 2255 | | |
2264 | | - | |
2265 | 2256 | | |
2266 | 2257 | | |
2267 | 2258 | | |
| |||
2341 | 2332 | | |
2342 | 2333 | | |
2343 | 2334 | | |
2344 | | - | |
2345 | | - | |
2346 | | - | |
| 2335 | + | |
| 2336 | + | |
2347 | 2337 | | |
2348 | | - | |
| 2338 | + | |
2349 | 2339 | | |
2350 | | - | |
2351 | | - | |
| 2340 | + | |
| 2341 | + | |
2352 | 2342 | | |
2353 | | - | |
2354 | | - | |
2355 | | - | |
| 2343 | + | |
| 2344 | + | |
2356 | 2345 | | |
2357 | | - | |
2358 | | - | |
| 2346 | + | |
2359 | 2347 | | |
2360 | | - | |
2361 | | - | |
| 2348 | + | |
| 2349 | + | |
2362 | 2350 | | |
2363 | 2351 | | |
2364 | 2352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments