bendtherules
c71b9ad531
Doc - Add doc for traverseGenerator with example
2019-09-11 08:55:13 +05:30
bendtherules
215153c516
Docs - Add doc for traverse.traverse method
2019-09-09 18:41:13 +05:30
bendtherules
6cffc96d60
Docs - In findNode, move exmaples above note section
2019-09-09 18:19:30 +05:30
bendtherules
5a2e7f1375
Docs - In findNode, fix example tag code blocks
2019-09-09 18:16:04 +05:30
bendtherules
21231fcb11
Docs - Added for findNode methods
2019-09-09 17:41:58 +05:30
bendtherules
a1204cfc1b
lib - export utils from main export
2019-08-27 22:58:47 +05:30
bendtherules
5a33b3272e
utils - export doesElementContainRootFiberNode
2019-08-10 13:01:07 +05:30
bendtherules
9ebc534cc3
Modify isConstructorFunctionComponent - Check type is function
2019-08-10 12:54:30 +05:30
bendtherules
d7276eff9e
Modify utils.isConstructor* - Allow null type as input
2019-08-10 11:26:39 +05:30
bendtherules
e64d51a3e6
Modify util.isConstructorHtmlLike - Allow null typeas input
2019-08-10 10:46:42 +05:30
bendtherules
887f4b95d1
Modify utils - doesElementContainRootFiberNode also checks for _internalRoot now
2019-08-10 10:37:12 +05:30
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