facebook / draft-js
File Age

File age measurements show the distribution of file ages (days since the first commit) and the recency of file updates (days since the latest commit).

Summary
  • Number of files: 192
  • Daily file updates (only one update per file and date counted): 603
  • First update: 2016-02-22
  • Latest update: 2022-03-31
  • Days between first and latest update: 2229 (318 weeks, estimated 1590 working days)
  • Active days (at least one file change): 623
  • Data:
File Change History Overall
File Age Distribution Overall
Days since first update
  • There are 192 files with 12,837 lines of code in files.
    • 192 files that are 366+ days old (12,837 lines of code)
    • 0 files that are 181-365 days old (0 lines of code)
    • 0 files that are 91-180 days old (0 lines of code)
    • 0 files that are 31-90 days old (0 lines of code)
    • 0 files that are 1-30 days old (0 lines of code)
100% | 0% | 0% | 0% | 0%
Legend:
366+
181-365
91-180
31-90
1-30

explore: zoomable circles
Latest Change Distribution Overall
Days since last update
  • There are 192 files with 12,837 lines of code in files.
    • 109 files have been last changed 366+ days ago (4,307 lines of code)
    • 31 files have been last changed 181-365 days ago (4,423 lines of code)
    • 6 files have been last changed 91-180 days ago (541 lines of code)
    • 30 files have been last changed 31-90 days ago (1,952 lines of code)
    • 16 files have been last changed 1-30 days ago (1,614 lines of code)
33% | 34% | 4% | 15% | 12%
Legend:
366+
181-365
91-180
31-90
1-30

explore: zoomable circles
File Change History per File Extension
js, md, snap, css, html, json, gitignore, babelrc, yml, svg, txt, eslintignore
File Age Distribution per Extension
Days since first update
366+
181-365
91-180
31-90
1-30
js100% | 0% | 0% | 0% | 0%
css100% | 0% | 0% | 0% | 0%
Latest Change Distribution per Extension
Days since last update
366+
181-365
91-180
31-90
1-30
js32% | 35% | 4% | 15% | 12%
css76% | 12% | 0% | 10% | 0%
File Change History per Logical Decomposition
primary
primary (file age distribution)
Days since first update
366+
181-365
91-180
31-90
1-30
src/model/modifier100% | 0% | 0% | 0% | 0%
src/component/handlers100% | 0% | 0% | 0% | 0%
src/model/immutable100% | 0% | 0% | 0% | 0%
src/model/transaction100% | 0% | 0% | 0% | 0%
src/component/contents100% | 0% | 0% | 0% | 0%
src/model/encoding100% | 0% | 0% | 0% | 0%
src/component/selection100% | 0% | 0% | 0% | 0%
src/component/base100% | 0% | 0% | 0% | 0%
src/component/utils100% | 0% | 0% | 0% | 0%
website/src/components100% | 0% | 0% | 0% | 0%
ROOT100% | 0% | 0% | 0% | 0%
src/model/entity100% | 0% | 0% | 0% | 0%
website/src/pages100% | 0% | 0% | 0% | 0%
website100% | 0% | 0% | 0% | 0%
src/model/decorators100% | 0% | 0% | 0% | 0%
scripts/jest100% | 0% | 0% | 0% | 0%
src/model/paste100% | 0% | 0% | 0% | 0%
src100% | 0% | 0% | 0% | 0%
src/model/constants100% | 0% | 0% | 0% | 0%
src/stubs100% | 0% | 0% | 0% | 0%
src/model/keys100% | 0% | 0% | 0% | 0%
src/util100% | 0% | 0% | 0% | 0%
website/src/css100% | 0% | 0% | 0% | 0%
scripts100% | 0% | 0% | 0% | 0%
src/flowlib100% | 0% | 0% | 0% | 0%
primary (latest change distribution)
Days since last update
366+
181-365
91-180
31-90
1-30
src/component/handlers38% | 25% | 0% | 27% | 7%
src/component/selection56% | 13% | 0% | 30% | 0%
src/component/contents48% | 39% | 0% | 11% | 0%
src/component/utils79% | 0% | 2% | 18% | 0%
src/model/modifier23% | 76% | 0% | 0% | 0%
website/src/components100% | 0% | 0% | 0% | 0%
src/model/immutable17% | 45% | 0% | 36% | 0%
ROOT100% | 0% | 0% | 0% | 0%
src/model/encoding13% | 86% | 0% | 0% | 0%
src/model/decorators100% | 0% | 0% | 0% | 0%
scripts/jest98% | 0% | 1% | 0% | 0%
src/model/entity45% | 54% | 0% | 0% | 0%
src/model/paste76% | 23% | 0% | 0% | 0%
website37% | 0% | 0% | 62% | 0%
src61% | 0% | 38% | 0% | 0%
src/stubs100% | 0% | 0% | 0% | 0%
src/component/base2% | 29% | 67% | 0% | 0%
website/src/css100% | 0% | 0% | 0% | 0%
scripts100% | 0% | 0% | 0% | 0%
src/model/keys33% | 66% | 0% | 0% | 0%
src/flowlib100% | 0% | 0% | 0% | 0%
src/util0% | 0% | 100% | 0% | 0%
website/src/pages0% | 0% | 0% | 100% | 0%
src/model/constants0% | 0% | 0% | 100% | 0%
src/model/transaction0% | 0% | 0% | 2% | 97%
Oldest Files (Top 50)
File# lines# unitslast modified
(days ago)
created
(days ago)
# changes# contributors
Draft.js
in src
52 - 406 2244 22 14
222 2 578 2242 24 13
DraftStyleDefault.css
in src/component/utils
114 - 1197 2242 7 6
DraftEditor.css
in src/component/base
45 - 206 2242 13 8
DraftEditorPlaceholder.css
in src/component/base
12 - 714 2242 9 6
DraftEditor.react.js
in src/component/base
479 5 91 2241 103 60
RichTextEditorUtil.js
in src/model/modifier
286 - 182 2241 33 26
7 - 1197 2241 6 5
DraftEditorProps.js
in src/component/base
107 1 301 2240 50 43
DraftEditorLeaf.react.js
in src/component/contents
104 - 182 2239 34 24
preprocessor.js
in scripts/jest
51 1 821 2239 7 5
DraftBlockType.js
in src/model/constants
19 - 65 2239 13 8
ContentState.js
in src/model/immutable
238 6 239 2238 42 25
DraftPasteProcessor.js
in src/model/paste
66 1 820 2236 25 14
getVisibleSelectionRect.js
in src/component/selection
17 1 877 2236 11 7
insertFragmentIntoContentState.js
in src/model/transaction
272 1 15 2235 22 14
convertFromRawToDraftState.js
in src/model/encoding
240 3 226 2235 26 16
splitBlockInContentState.js
in src/model/transaction
126 1 15 2235 15 11
getContentStateFragment.js
in src/model/transaction
49 - 15 2235 13 9
generateRandomKey.js
in src/model/keys
12 1 226 2235 10 7
DraftEditorBlock.react.js
in src/component/contents
196 - 401 2234 39 25
DraftEditorDragHandler.js
in src/component/handlers/drag
131 4 15 2234 26 18
DraftDragType.js
in src/model/constants
2 - 65 2234 9 7
556 7 182 2227 69 35
editOnPaste.js
in src/component/handlers/edit
189 4 182 2227 31 21
encodeInlineStyleRanges.js
in src/model/encoding
48 2 323 2220 14 10
EditorState.js
in src/model/immutable
561 29 35 2213 41 26
getDefaultKeyBinding.js
in src/component/utils
83 5 521 2209 19 14
DraftEditorTextNode.react.js
in src/component/contents
62 4 401 2208 21 13
DraftEditorPlaceholder.react.js
in src/component/base
51 - 301 2208 22 16
getSampleStateForTesting.js
in src/model/transaction
84 - 15 2205 17 11
editOnKeyDown.js
in src/component/handlers/edit
158 3 877 2200 22 17
AtomicBlockUtils.js
in src/model/modifier
151 3 353 2200 18 12
KeyBindingUtil.js
in src/component/utils
22 - 569 2200 15 10
getRangeBoundingClientRect.js
in src/component/selection
42 1 569 2191 15 9
EditorChangeType.js
in src/model/immutable
17 - 569 2186 11 9
keyCommandBackspaceToStartOfLine.js
in src/component/handlers/edit/commands
40 1 65 2180 15 10
editOnInput.js
in src/component/handlers/edit
123 2 182 2179 31 16
applyEntityToContentState.js
in src/model/transaction
32 1 15 2175 14 9
DefaultDraftBlockRenderMap.js
in src/model/immutable
13 - 401 2175 13 7
DraftBlockRenderConfig.js
in src/model/immutable
7 - 403 2175 18 12
DraftBlockRenderMap.js
in src/model/immutable
4 - 1197 2175 8 4
getDraftEditorSelectionWithNodes.js
in src/component/selection
151 9 569 2159 20 11
findAncestorOffsetKey.js
in src/component/selection
18 1 35 2159 13 7
CharacterMetadata.js
in src/model/immutable
87 5 323 2156 23 16
EditorBidiService.js
in src/model/immutable
29 - 569 2156 14 8
getSelectionOffsetKeyForNode.js
in src/component/selection
21 1 877 2125 12 6
SelectionState.js
in src/model/immutable
110 1 647 2120 16 12
BlockTree.js
in src/model/immutable
108 3 309 2120 25 17
ContentBlock.js
in src/model/immutable
97 5 295 2120 18 11
Files Not Recently Changed (Top 50)
File# lines# unitslast modified
(days ago)
created
(days ago)
# changes# contributors
DraftTextAlignment.js
in src/component/base
2 - 1197 1631 7 5
DraftInlineStyle.js
in src/model/immutable
3 - 1197 1631 7 5
EntityMap.js
in src/model/immutable
3 - 1197 2039 9 7
BlockNodeRecord.js
in src/model/immutable
4 - 1197 1619 7 5
BlockMap.js
in src/model/immutable
4 - 1197 1631 8 5
DraftBlockRenderMap.js
in src/model/immutable
4 - 1197 2175 8 4
5 - 1197 1819 5 4
DraftEffects.js
in src/stubs
5 2 1197 1330 3 2
sanitizeDraftText.js
in src/model/encoding
6 1 1197 1631 8 5
splitTextIntoTextBlocks.js
in src/component/utils
6 1 1197 1631 8 5
6 - 1197 1606 4 4
editOnDragStart.js
in src/component/handlers/edit
7 1 1197 1963 8 6
editOnDragOver.js
in src/component/handlers/edit
7 1 1197 1963 10 8
DraftEditorModes.js
in src/component/handlers
7 - 1197 1631 7 5
7 - 1197 2241 6 5
getTextAfterNearestEntity.js
in src/model/entity
13 1 1197 1841 11 6
editOnCopy.js
in src/component/handlers/edit
13 1 1197 2006 12 8
editOnCompositionStart.js
in src/component/handlers/edit
14 1 1197 2006 14 9
getFragmentFromSelection.js
in src/component/handlers/edit
15 1 1197 2103 12 8
SampleDraftInlineStyle.js
in src/model/immutable
18 - 1197 1631 12 9
getRangesForDraftEntity.js
in src/model/modifier
19 1 1197 1841 12 7
DefaultDraftInlineStyle.js
in src/model/immutable
19 - 1197 1631 7 5
editOnFocus.js
in src/component/handlers/edit
19 1 1197 2006 13 9
DraftEntityInstance.js
in src/model/entity
22 - 1197 1737 11 8
findRangesImmutable.js
in src/model/immutable
24 1 1197 2109 11 7
_DraftTestHelper.js
in src/component/utils
24 - 1197 1611 8 6
encodeEntityRanges.js
in src/model/encoding
26 1 1197 1841 11 6
isSelectionAtLeafStart.js
in src/component/selection
28 1 1197 2103 11 6
hasteImpl.js
in scripts/jest
43 1 1197 1449 3 2
getSampleSelectionMocksForTesting.js
in src/component/selection
112 - 1197 1597 8 4
DraftStyleDefault.css
in src/component/utils
114 - 1197 2242 7 6
createCharacterList.js
in src/model/encoding
16 1 1087 1841 12 7
editOnSelect.js
in src/component/handlers/edit
44 1 1072 2006 18 12
isEventHandled.js
in src/component/utils
6 1 1008 2067 10 7
isSoftNewlineEvent.js
in src/component/utils
11 1 1008 1702 11 7
draftKeyUtils.js
in src/component/utils
7 1 966 966 1 1
decodeInlineStyleRanges.js
in src/model/encoding
25 1 961 1841 12 7
DraftTreeAdapter.js
in src/component/utils/exploration
120 1 884 1607 12 6
getCorrectDocumentFromNode.js
in src/component/utils
7 1 877 877 1 1
isHTMLAnchorElement.js
in src/component/utils
8 1 877 877 1 1
isHTMLImageElement.js
in src/component/utils
8 1 877 877 1 1
getVisibleSelectionRect.js
in src/component/selection
17 1 877 2236 11 7
getSelectionOffsetKeyForNode.js
in src/component/selection
21 1 877 2125 12 6
editOnCut.js
in src/component/handlers/edit
39 2 877 2006 15 9
expandRangeToStartOfLine.js
in src/component/selection
118 4 877 1893 13 7
editOnKeyDown.js
in src/component/handlers/edit
158 3 877 2200 22 17
rich-editor.css
in website/src/components/DraftEditorExample/css
54 - 863 863 1 1
example.css
in website/src/components/DraftEditorExample/css
76 - 863 863 1 1
isElement.js
in src/component/utils
7 1 862 877 2 2
isHTMLBRElement.js
in src/component/utils
8 1 862 877 2 2
Most Recently Created Files (Top 50)
File# lines# unitslast modified
(days ago)
created
(days ago)
# changes# contributors
window.js
in src/flowlib
1 - 499 499 1 1
sidebars.js
in website
57 - 543 547 2 1
uuid.js
in src/util
8 1 92 724 5 4
7 1 92 724 6 5
DraftDOMTypes.js
in src/component/utils
14 - 137 732 5 2
ContentStateRawType.js
in src/model/immutable
9 - 739 739 1 1
mockUUID.js
in src/model/keys
6 1 739 739 1 1
DraftEditorFlushControlled.js
in src/component/base
4 - 755 795 3 4
index.js
in website/src/components/DraftEditorExample
176 5 808 863 2 2
index.js
in website/src/pages
125 2 50 863 5 5
97 - 42 863 3 3
example.css
in website/src/components/DraftEditorExample/css
76 - 863 863 1 1
rich-editor.css
in website/src/components/DraftEditorExample/css
54 - 863 863 1 1
styles.module.css
in website/src/pages
38 - 42 863 4 3
custom.css
in website/src/css
13 - 633 863 4 4
isInstanceOfNode.js
in src/component/utils
16 1 829 877 2 2
isHTMLElement.js
in src/component/utils
13 1 807 877 2 2
isHTMLImageElement.js
in src/component/utils
8 1 877 877 1 1
isHTMLBRElement.js
in src/component/utils
8 1 862 877 2 2
isHTMLAnchorElement.js
in src/component/utils
8 1 877 877 1 1
getWindowForNode.js
in src/component/utils
7 1 499 877 2 2
getCorrectDocumentFromNode.js
in src/component/utils
7 1 877 877 1 1
isElement.js
in src/component/utils
7 1 862 877 2 2
draftKeyUtils.js
in src/component/utils
7 1 966 966 1 1
32 - 133 975 3 3
DOMObserver.js
in src/component/handlers/composition
107 2 499 1072 7 7
getContentEditableContainer.js
in src/component/utils
15 1 813 1072 3 3
DraftTreeOperations.js
in src/model/modifier/exploration
394 1 226 1323 9 3
DraftEffects.js
in src/stubs
5 2 1197 1330 3 2
DraftTreeInvariants.js
in src/component/utils/exploration
121 - 35 1345 6 3
NestedRichTextEditorUtil.js
in src/model/modifier/exploration
449 1 182 1348 13 9
RichTextUtils.js
in src/model/modifier
39 - 605 1348 6 5
hasteImpl.js
in scripts/jest
43 1 1197 1449 3 2
gkx.js
in src/stubs
7 1 393 1540 7 6
shims.js
in scripts/jest
1 - 95 1581 4 3
getNextDelimiterBlockKey.js
in src/model/transaction/exploration
38 1 35 1582 7 5
randomizeBlockMapKeys.js
in src/model/transaction
94 - 15 1596 10 6
getSampleSelectionMocksForTesting.js
in src/component/selection
112 - 1197 1597 8 4
107 - 226 1597 9 5
DraftEditorContents-core.react.js
in src/component/contents
221 1 401 1606 23 16
6 - 1197 1606 4 4
DraftTreeAdapter.js
in src/component/utils/exploration
120 1 884 1607 12 6
DraftEditorBlockNode.react.js
in src/component/contents/exploration
303 - 263 1611 16 11
DraftEditorContentsExperimental.react.js
in src/component/contents/exploration
141 - 35 1611 13 9
DraftEditorNode.react.js
in src/component/contents/exploration
101 - 401 1611 8 6
DraftEditorDecoratedLeaves.react.js
in src/component/contents/exploration
61 - 231 1611 9 7
_DraftTestHelper.js
in src/component/utils
24 - 1197 1611 8 6
BlockNodeRecord.js
in src/model/immutable
4 - 1197 1619 7 5
ContentBlockNode.js
in src/model/immutable
120 4 182 1621 15 8
BlockNode.js
in src/model/immutable
45 - 324 1621 10 9
Most Recently Changed Files (Top 50)
File# lines# unitslast modified
(days ago)
created
(days ago)
# changes# contributors
removeRangeFromContentState.js
in src/model/transaction
323 13 15 1841 13 9
insertFragmentIntoContentState.js
in src/model/transaction
272 1 15 2235 22 14
moveBlockInContentState.js
in src/model/transaction
189 2 15 1932 18 10
DraftEditorDragHandler.js
in src/component/handlers/drag
131 4 15 2234 26 18
splitBlockInContentState.js
in src/model/transaction
126 1 15 2235 15 11
randomizeBlockMapKeys.js
in src/model/transaction
94 - 15 1596 10 6
removeEntitiesAtEdges.js
in src/model/transaction
91 3 15 2039 19 12
getSampleStateForTesting.js
in src/model/transaction
84 - 15 2205 17 11
ContentStateInlineStyle.js
in src/model/transaction
67 1 15 1841 15 9
insertTextIntoContentState.js
in src/model/transaction
51 2 15 1841 13 8
getContentStateFragment.js
in src/model/transaction
49 - 15 2235 13 9
adjustBlockDepthForContentState.js
in src/model/transaction
33 1 15 1841 13 9
applyEntityToContentState.js
in src/model/transaction
32 1 15 2175 14 9
modifyBlockForContentState.js
in src/model/transaction
27 1 15 2114 13 8
insertIntoList.js
in src/model/transaction
24 1 15 1841 10 7
applyEntityToContentBlock.js
in src/model/transaction
21 1 15 1841 13 8
EditorState.js
in src/model/immutable
561 29 35 2213 41 26
setDraftEditorSelection.js
in src/component/selection
270 10 35 1841 23 13
DraftEditorContentsExperimental.react.js
in src/component/contents/exploration
141 - 35 1611 13 9
DraftTreeInvariants.js
in src/component/utils/exploration
121 - 35 1345 6 3
getNextDelimiterBlockKey.js
in src/model/transaction/exploration
38 1 35 1582 7 5
getRangeClientRects.js
in src/component/selection
37 2 35 2103 17 12
moveSelectionForward.js
in src/component/handlers/edit/commands
28 1 35 1841 13 10
findAncestorOffsetKey.js
in src/component/selection
18 1 35 2159 13 7
97 - 42 863 3 3
styles.module.css
in website/src/pages
38 - 42 863 4 3
index.js
in website/src/pages
125 2 50 863 5 5
removeTextWithStrategy.js
in src/component/handlers/edit/commands
55 1 65 1841 12 9
keyCommandTransposeCharacters.js
in src/component/handlers/edit/commands
54 1 65 1841 10 7
SecondaryClipboard.js
in src/component/handlers/edit/commands
53 - 65 1841 15 11
keyCommandBackspaceToStartOfLine.js
in src/component/handlers/edit/commands
40 1 65 2180 15 10
moveSelectionBackward.js
in src/component/handlers/edit/commands
37 1 65 1841 12 9
keyCommandPlainBackspace.js
in src/component/handlers/edit/commands
32 1 65 1841 11 8
keyCommandPlainDelete.js
in src/component/handlers/edit/commands
32 1 65 1841 11 8
keyCommandBackspaceWord.js
in src/component/handlers/edit/commands
28 1 65 1841 11 8
keyCommandDeleteWord.js
in src/component/handlers/edit/commands
25 1 65 1841 11 8
keyCommandUndo.js
in src/component/handlers/edit/commands
24 1 65 1841 11 8
keyCommandMoveSelectionToEndOfBlock.js
in src/component/handlers/edit/commands
21 1 65 1841 10 7
DraftEditorCommand.js
in src/model/constants
20 - 65 1631 10 7
keyCommandMoveSelectionToStartOfBlock.js
in src/component/handlers/edit/commands
19 1 65 1841 10 7
DraftBlockType.js
in src/model/constants
19 - 65 2239 13 8
keyCommandInsertNewline.js
in src/component/handlers/edit/commands
11 1 65 1841 10 7
DraftRemovalDirection.js
in src/model/constants
2 - 65 1631 9 6
DraftDragType.js
in src/model/constants
2 - 65 2234 9 7
DraftHandleValue.js
in src/model/constants
2 - 65 2067 11 8
DraftInsertionType.js
in src/model/constants
2 - 65 1932 9 7
DraftEditor.react.js
in src/component/base
479 5 91 2241 103 60
uuid.js
in src/util
8 1 92 724 5 4
7 1 92 724 6 5
shims.js
in scripts/jest
1 - 95 1581 4 3