├── .eslintrc ├── .gitignore ├── .npmignore ├── .prettierignore ├── .prettierrc ├── .travis.yml ├── LICENSE ├── README.md ├── babel.config.js ├── example.png ├── hooks ├── post-commit └── pre-commit ├── jest.config.js ├── package.json ├── src ├── components │ ├── decoration │ │ ├── index.tsx │ │ ├── styles.ts │ │ └── unified_decoration.tsx │ ├── diff │ │ ├── __snapshots__ │ │ │ └── test.tsx.snap │ │ ├── index.tsx │ │ └── test.tsx │ └── hunk │ │ ├── __snapshots__ │ │ └── test.tsx.snap │ │ ├── code_cell.tsx │ │ ├── index.tsx │ │ ├── styles.ts │ │ ├── test.tsx │ │ ├── unified_hunk │ │ ├── index.tsx │ │ ├── unified_change.tsx │ │ └── unified_widget.tsx │ │ └── utils.tsx ├── context │ └── index.ts ├── fixtures.ts ├── gitdiff-parser.d.ts ├── index.ts ├── tokenize │ ├── __snapshots__ │ │ └── test.ts.snap │ ├── back_to_tree.ts │ ├── index.ts │ ├── mark_edits.ts │ ├── mark_word.ts │ ├── normalize_to_lines.ts │ ├── pick_ranges.ts │ ├── test.ts │ ├── to_token_trees.ts │ └── utils.ts ├── types.ts └── utils │ ├── classnames │ └── index.ts │ ├── diff │ ├── __snapshots__ │ │ └── test.ts.snap │ ├── expand_collapsed_block_by.ts │ ├── factory.ts │ ├── get_change_key.ts │ ├── index.ts │ ├── insert_hunk.ts │ ├── test.ts │ └── util.ts │ ├── index.ts │ └── parse │ ├── __snapshots__ │ └── test.ts.snap │ ├── index.ts │ └── test.ts └── tsconfig.json /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | tsconfig.json 2 | 3 | .jest/ 4 | test.* 5 | 6 | hooks/ 7 | src/ 8 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/.prettierrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/babel.config.js -------------------------------------------------------------------------------- /example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/example.png -------------------------------------------------------------------------------- /hooks/post-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | git update-index -g 3 | -------------------------------------------------------------------------------- /hooks/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/hooks/pre-commit -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/package.json -------------------------------------------------------------------------------- /src/components/decoration/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/decoration/index.tsx -------------------------------------------------------------------------------- /src/components/decoration/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/decoration/styles.ts -------------------------------------------------------------------------------- /src/components/decoration/unified_decoration.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/decoration/unified_decoration.tsx -------------------------------------------------------------------------------- /src/components/diff/__snapshots__/test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/diff/__snapshots__/test.tsx.snap -------------------------------------------------------------------------------- /src/components/diff/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/diff/index.tsx -------------------------------------------------------------------------------- /src/components/diff/test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/diff/test.tsx -------------------------------------------------------------------------------- /src/components/hunk/__snapshots__/test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/hunk/__snapshots__/test.tsx.snap -------------------------------------------------------------------------------- /src/components/hunk/code_cell.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/hunk/code_cell.tsx -------------------------------------------------------------------------------- /src/components/hunk/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/hunk/index.tsx -------------------------------------------------------------------------------- /src/components/hunk/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/hunk/styles.ts -------------------------------------------------------------------------------- /src/components/hunk/test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/hunk/test.tsx -------------------------------------------------------------------------------- /src/components/hunk/unified_hunk/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/hunk/unified_hunk/index.tsx -------------------------------------------------------------------------------- /src/components/hunk/unified_hunk/unified_change.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/hunk/unified_hunk/unified_change.tsx -------------------------------------------------------------------------------- /src/components/hunk/unified_hunk/unified_widget.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/hunk/unified_hunk/unified_widget.tsx -------------------------------------------------------------------------------- /src/components/hunk/utils.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/components/hunk/utils.tsx -------------------------------------------------------------------------------- /src/context/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/context/index.ts -------------------------------------------------------------------------------- /src/fixtures.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/fixtures.ts -------------------------------------------------------------------------------- /src/gitdiff-parser.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/gitdiff-parser.d.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/tokenize/__snapshots__/test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/tokenize/__snapshots__/test.ts.snap -------------------------------------------------------------------------------- /src/tokenize/back_to_tree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/tokenize/back_to_tree.ts -------------------------------------------------------------------------------- /src/tokenize/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/tokenize/index.ts -------------------------------------------------------------------------------- /src/tokenize/mark_edits.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/tokenize/mark_edits.ts -------------------------------------------------------------------------------- /src/tokenize/mark_word.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/tokenize/mark_word.ts -------------------------------------------------------------------------------- /src/tokenize/normalize_to_lines.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/tokenize/normalize_to_lines.ts -------------------------------------------------------------------------------- /src/tokenize/pick_ranges.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/tokenize/pick_ranges.ts -------------------------------------------------------------------------------- /src/tokenize/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/tokenize/test.ts -------------------------------------------------------------------------------- /src/tokenize/to_token_trees.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/tokenize/to_token_trees.ts -------------------------------------------------------------------------------- /src/tokenize/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/tokenize/utils.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils/classnames/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/classnames/index.ts -------------------------------------------------------------------------------- /src/utils/diff/__snapshots__/test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/diff/__snapshots__/test.ts.snap -------------------------------------------------------------------------------- /src/utils/diff/expand_collapsed_block_by.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/diff/expand_collapsed_block_by.ts -------------------------------------------------------------------------------- /src/utils/diff/factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/diff/factory.ts -------------------------------------------------------------------------------- /src/utils/diff/get_change_key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/diff/get_change_key.ts -------------------------------------------------------------------------------- /src/utils/diff/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/diff/index.ts -------------------------------------------------------------------------------- /src/utils/diff/insert_hunk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/diff/insert_hunk.ts -------------------------------------------------------------------------------- /src/utils/diff/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/diff/test.ts -------------------------------------------------------------------------------- /src/utils/diff/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/diff/util.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/parse/__snapshots__/test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/parse/__snapshots__/test.ts.snap -------------------------------------------------------------------------------- /src/utils/parse/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/parse/index.ts -------------------------------------------------------------------------------- /src/utils/parse/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/src/utils/parse/test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakemmarsh/react-native-diff-view/HEAD/tsconfig.json --------------------------------------------------------------------------------