Dan Abramov
b6a55989f5
Assert empty maps when there are no roots
2019-04-26 17:47:00 +01:00
Brian Vaughn
c28acc5d47
Changed owners back button label to say 'Up to <...>'
2019-04-26 09:38:25 -07:00
Dominic Gannaway
c4d1dcb533
React Events: core API documentation followup ( #15506 )
2019-04-26 15:47:28 +01:00
Dan Nate
41ef1961c1
Update TopLevelEventTypes.js ( #15511 )
...
Fix grammar of code comment.
2019-04-26 14:58:32 +02:00
Dominic Gannaway
7a482af5d8
Event API: Fix bug where Press root events were not being cleared ( #15507 )
2019-04-26 10:30:38 +01:00
Ivan Babak
281616f462
Support highlighting of all DOM elements of Fragments, not just first
...
Fixes https://github.com/bvaughn/react-devtools-experimental/issues/131
Uses the new function `findAllCurrentHostFibers`.
Removes dependency on React's `renderer.findHostInstanceByFiber` function
which used to highlight only the first DOM element of a Fragment.
Reworked `src/backend/views/Overlay` to support highlighting
more than one element rectangle annotated with one tooltip.
Fixed minor issues with the tooltip position calculation.
2019-04-26 01:22:49 -07:00
Nicolas Gallagher
a14e24efab
React Events: core API documentation ( #15505 )
2019-04-26 08:11:40 +01:00
Dominic Gannaway
8658611b6c
Event API: ensure event keys are unique + add validation ( #15501 )
2019-04-26 08:00:57 +01:00
Brian Vaughn
707b44834f
Merge pull request #213 from wldcordeiro/fix-firefox-perms
...
fix: correct permissions for Firefox
2019-04-25 19:11:39 -07:00
Nicolas Gallagher
d9839740ef
React events: remove unused types ( #15503 )
2019-04-25 15:11:53 -07:00
Brian Vaughn
043b73e0a8
Merge pull request #223 from bvaughn/owners-list-intermediate-components
...
Owners list view should drill through intermediate components
2019-04-25 15:10:08 -07:00
Brian Vaughn
09029acf00
Refactored owners list to use cached metadata (and added more tests)
2019-04-25 15:06:24 -07:00
Brian Vaughn
15eacae02c
Moved owners list calculations into the store and added tests
...
This is being done to fix a drill-through bug, although the initial fix is perhaps not the most performant one. At least we have test coverage now and a temporary fix.
2019-04-25 15:06:24 -07:00
Brian Vaughn
b6d617ac7f
Added 'back to owner' button when owners stack is collapsed
2019-04-25 15:05:39 -07:00
Brian Vaughn
e88819a22e
Reverse direction of menu items within drop-down owners list
2019-04-25 14:10:51 -07:00
Nicolas Gallagher
0b34311705
React events: fix press end event dispatching ( #15500 )
...
This patch fixes an issue related to determining whether the end event occurs
within the responder region. Previously we only checked if the event target was
within the responder region for moves, otherwise we checked if the target was
within the event component. Since the dimensions of the child element can
change after activation, we need to recalculate the responder region before
deactivation as well if the target is not within the event component.
2019-04-25 13:00:22 -07:00
Dominic Gannaway
d1f667acc0
Event API: follow up fixes for FocusScope + context changes ( #15496 )
2019-04-25 20:10:33 +01:00
Dan Abramov
a0b1fb37fb
Merge pull request #227 from gaearon/string-table
...
Transfer strings in a string table
2019-04-25 17:54:11 +01:00
Dan Abramov
1bea469db0
Remove unneeded variable
2019-04-25 17:46:48 +01:00
Dan Abramov
af2d1374c4
Let -> const
2019-04-25 17:39:13 +01:00
Dan Abramov
3920ebd0a1
Clarify encoding in overview
2019-04-25 17:32:46 +01:00
Dan Abramov
c8f8943c9a
Transfer strings in a string table
2019-04-25 17:11:24 +01:00
Kunuk Nykjær
c530639dd2
Minor code structure adjustments to the bundles.js file ( #15079 )
...
* simplify
* fix error
* use deepFreeze
* move comments
2019-04-25 16:24:01 +01:00
Dan Abramov
c1363b7e17
Merge pull request #226 from gaearon/mutate-children
...
Improve performance by mutating the children array
2019-04-25 15:27:36 +01:00
Dan Abramov
2e423c21b0
Merge pull request #221 from gaearon/heuristic
...
Use a heuristic for locating roots
2019-04-25 15:22:34 +01:00
Dan Abramov
e1383c666d
Allow to set tracked path multiple times
...
Fixes #225 . This happens when you close and reopen DevTools while on the same page.
2019-04-25 14:57:39 +01:00
Dan Abramov
2993b168e5
Mutate the children array
2019-04-25 14:47:05 +01:00
Dan Abramov
d5319566a1
Fix broken start:prod command
2019-04-25 14:21:58 +01:00
Alec Larson
ed36df46c6
add --watch mode to "yarn build" ( #15116 )
...
* wip: add --watch mode to "yarn build"
* fix: handle error events
2019-04-25 12:55:44 +01:00
Redmond Tran
793ef9b855
test(eslint-plugin-react-hooks): add coverage for unused custom hook ( #15130 )
2019-04-25 12:15:29 +01:00
Jeffrey Berry
d61da93878
test(accumulate): add test suite for accumulate function ( #15159 )
...
* refactor(typo): remove typo 'be'
* test(accumulate): add test suite for accumulate function
2019-04-25 12:12:25 +01:00
Adam Comella
a187e9b5e4
React Native: Allow Views to be nested inside of Text ( #15464 )
...
This feature is now supported on both iOS and Android. The Android feature was merged a couple of weeks ago: https://github.com/facebook/react-native/pull/23195 .
2019-04-25 12:06:39 +01:00
Radu-Sebastian Amarie
f85aadefc0
ADD: disablePictureInPicture attribute for HTML5 videos ( #15334 )
...
* ADD: disablePictureInPicture attribute for HTML5 videos
* ADD: disablePictureInPicture as DOMProperty and attribute
* Update: Replace camelCase with lowercase and vice-versa
* FIX: Missing comma on attribute (prettier)
2019-04-25 12:02:27 +01:00
FUJI Goro
1eb2b892df
give canUseDOM with a possibility to be a constant ( #14194 )
...
https://webpack.js.org/plugins/define-plugin/
Webpack's DefinePlugin has the ability to replace `typeof expr` to a constant in compile-time, which should lead to better dead-code-elimination.
2019-04-25 11:28:53 +01:00
shubham
de26d6dd36
typo fix ( #15493 )
...
changed ReactResponderContext.dispatchEvent otpions keys to options.
2019-04-25 09:37:35 +01:00
Dominic Gannaway
64e3da286f
Event API: Add FocusScope surface ( #15487 )
2019-04-25 02:01:09 +01:00
Dan Abramov
80597a2377
Use a heuristic for locating roots
2019-04-24 23:02:41 +01:00
Dan Abramov
942f67c936
Merge pull request #220 from gaearon/removed-ids
...
Select parent node if selection is removed
2019-04-24 19:25:05 +01:00
Dominic Gannaway
3f058debc2
Event API: various bug fixes ( #15485 )
2019-04-24 17:56:21 +01:00
Brian Vaughn
7bae48f00c
Fixed minor CSS overflow issue
2019-04-24 09:07:53 -07:00
Brian Vaughn
c855a862c3
Merge pull request #218 from gaearon/bump-react
...
Bump React versions
2019-04-24 08:45:16 -07:00
Dan Abramov
949384f4ca
Select parent node if selection is removed
2019-04-24 16:29:23 +01:00
Dan Abramov
52deada495
Bump React versions
2019-04-24 15:57:43 +01:00
Dan Abramov
54aecf487e
Merge pull request #215 from bvaughn/persist-selection
...
Try to restore selection between reloads
2019-04-24 15:50:29 +01:00
Dan Abramov
f123763fe1
Read index off the Fiber
2019-04-24 15:05:33 +01:00
Dan Abramov
5d2d4213ec
Delete stale paths
2019-04-24 15:05:21 +01:00
Dan Abramov
e050529c7d
Read renderer ID from operations
2019-04-24 15:00:46 +01:00
Dan Abramov
26162988aa
Fix tests
2019-04-24 14:37:46 +01:00
Dan Abramov
7eb7c5a350
Match Fibers to saved selection as they mount
...
This implements matching Fibers against the tracked selection path.
The algorithm is optimized to do as little checks as possible:
* When not trying to restore selection, we don't do anything
* When restoring selection, we only check .return pointers of new mounts
* Only when .return pointers match our current deepest match, we compare the frames
2019-04-24 14:37:46 +01:00
Dan Abramov
3bb837b683
Implement getPathForElement to serialize the selected path
...
Note this doesn't restore the selection yet.
2019-04-24 14:37:46 +01:00