Commit Graph
21 Commits
Author SHA1 Message Date
bendtherules 05489aad2c src/utils - Add getRootFiberNodeFromDOM helper
To find root Fiber node from overall html document or a particular element.
Ideally, this should be called with the same container element used in ReactDom.render.
2019-08-08 11:51:33 +05:30
bendtherules 67206dfe41 Fix prettier on all files 2019-08-03 20:40:07 +05:30
bendtherules ff9821329a src/utils - Add helpers for detecting react functional and class components 2019-08-03 18:48:01 +05:30
bendtherules 7b0aeb1535 traverseGenerator - Fix typedef for order 2019-08-02 13:42:21 +05:30
bendtherules 7938a4ab2c Allow customised order in traverseGenerator 2019-08-02 00:56:21 +05:30
bendtherules 3a7bf374bd Add basic traverseGenerator
Need to allow changing order
2019-08-02 00:12:21 +05:30
bendtherules fc47961602 Rename findNodeByComponentInstance to findNodeByComponentRef 2019-07-31 00:33:55 +05:30
bendtherules 7e1d813811 Merge branch 'master' of https://github.com/bendtherules/react-fiber-traverse 2019-07-25 01:10:19 +05:30
bendtherules adbb9527c9 findNode - Disable console.debug statements 2019-07-25 01:08:36 +05:30
bendtherules 7b51c96a57 Add utils - Methods to check if a node corresponds to functional or class components 2019-07-24 02:28:13 +05:30
bendtherules 99d808c9b8 Rename utils methods like isHtmlLike to isNodeHtmlLike
Also renamed isNodeNotHtmlLike
2019-07-24 02:26:54 +05:30
bendtherules 68a5080ae4 Fix isNotHtmlLike util definition 2019-07-23 15:47:59 +05:30
bendtherules ef61b17f4c Export findNode mthods from index 2019-07-23 11:13:54 +05:30
bendtherules 5897cee001 Add 3 findNode methods - by name, comp and instance
1. By Component name
2. By Component (Class Or Function) reference
3. By Component (ClassComponent) instance reference
2019-07-23 11:13:40 +05:30
bendtherules c8f09eb5a1 Refactor - Move traverse to separate file and export from index 2019-07-23 10:56:57 +05:30
bendtherules 4af377f1ba Add better type check utils for HTMLLike 2019-07-22 18:47:32 +05:30
bendtherules c239b1b6d1 Add better mock typedef for FiberNode 2019-07-22 18:46:31 +05:30
bendtherules b2c107a5f5 Refactor FiberNode typedef to separate file 2019-07-20 18:50:50 +05:30
bendtherules 2a628c608e Remove stray console.log 2019-07-20 18:50:06 +05:30
bendtherules 92444eacb8 Add basic traverse function with tests 2019-07-19 18:45:25 +05:30
bendtherules 0ad6620437 Init with yo typescript-react-lib 2019-07-19 12:49:20 +05:30