├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .prettierrc ├── .releaserc.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── demo ├── css │ ├── demo.css │ └── prism.css ├── demo.tsx └── index.html ├── package-config.ts ├── package.json ├── src ├── Refractor.tsx ├── addMarkers.ts ├── index.ts ├── mapChildren.ts └── types.ts ├── test ├── .eslintrc ├── Refractor.test.ts ├── __snapshots__ │ ├── Refractor.test.ts.snap │ └── addMarkers.test.ts.snap ├── addMarkers.test.ts └── fixtures │ └── ast.ts ├── tsconfig.json └── vite.config.ts /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/.prettierrc -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/.releaserc.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/README.md -------------------------------------------------------------------------------- /demo/css/demo.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/demo/css/demo.css -------------------------------------------------------------------------------- /demo/css/prism.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/demo/css/prism.css -------------------------------------------------------------------------------- /demo/demo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/demo/demo.tsx -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/demo/index.html -------------------------------------------------------------------------------- /package-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/package-config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/package.json -------------------------------------------------------------------------------- /src/Refractor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/src/Refractor.tsx -------------------------------------------------------------------------------- /src/addMarkers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/src/addMarkers.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/mapChildren.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/src/mapChildren.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/src/types.ts -------------------------------------------------------------------------------- /test/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/test/.eslintrc -------------------------------------------------------------------------------- /test/Refractor.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/test/Refractor.test.ts -------------------------------------------------------------------------------- /test/__snapshots__/Refractor.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/test/__snapshots__/Refractor.test.ts.snap -------------------------------------------------------------------------------- /test/__snapshots__/addMarkers.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/test/__snapshots__/addMarkers.test.ts.snap -------------------------------------------------------------------------------- /test/addMarkers.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/test/addMarkers.test.ts -------------------------------------------------------------------------------- /test/fixtures/ast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/test/fixtures/ast.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rexxars/react-refractor/HEAD/vite.config.ts --------------------------------------------------------------------------------