├── .editorconfig ├── .gitignore ├── .prettierrc ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── code-of-conduct.md ├── docs └── rich2.gif ├── package.json ├── playground ├── App.tsx ├── index.css ├── index.tsx ├── server │ ├── server.ts │ └── template.html └── webpack.config.dev.js ├── src ├── RichDoc.ts ├── components │ ├── DefaultCaretFlag.tsx │ ├── DefaultRemoteCaret.tsx │ ├── DocNode.tsx │ ├── Editor.tsx │ ├── RemoteCursor.tsx │ └── RemoteSelectionRange.tsx ├── content │ ├── RichContent.ts │ ├── fromJSON.ts │ ├── fromRaw.ts │ ├── fromText.ts │ ├── getContainerByObjectId.ts │ └── voidElements.ts ├── index.ts ├── mutations │ ├── handleCharacterData.ts │ ├── handleMutation.ts │ ├── observerConfig.ts │ ├── processAttachQueue.ts │ ├── processBuildQueue.ts │ ├── processDetachQueue.ts │ ├── processMutationList.ts │ ├── simplifyCharQueue.ts │ └── simplifyQueues.ts ├── network │ └── RichConnector.ts ├── plugins │ └── strikethroughPlugin.ts ├── ranges │ ├── LocalRange.ts │ ├── PeerRanges.ts │ ├── defaultColors.ts │ ├── getIsBackward.ts │ ├── getNextColor.ts │ └── getRemoteRangeBBox.ts └── types │ ├── automerge │ ├── index.d.ts │ └── tsconfig.json │ ├── himalaya │ └── index.d.ts │ └── modules.d.ts ├── tsconfig.json ├── tslint.json ├── webpack.config.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/.prettierrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/README.md -------------------------------------------------------------------------------- /code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | don't be a dick. 4 | -------------------------------------------------------------------------------- /docs/rich2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/docs/rich2.gif -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/package.json -------------------------------------------------------------------------------- /playground/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/playground/App.tsx -------------------------------------------------------------------------------- /playground/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/playground/index.css -------------------------------------------------------------------------------- /playground/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/playground/index.tsx -------------------------------------------------------------------------------- /playground/server/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/playground/server/server.ts -------------------------------------------------------------------------------- /playground/server/template.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/playground/server/template.html -------------------------------------------------------------------------------- /playground/webpack.config.dev.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/playground/webpack.config.dev.js -------------------------------------------------------------------------------- /src/RichDoc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/RichDoc.ts -------------------------------------------------------------------------------- /src/components/DefaultCaretFlag.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/components/DefaultCaretFlag.tsx -------------------------------------------------------------------------------- /src/components/DefaultRemoteCaret.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/components/DefaultRemoteCaret.tsx -------------------------------------------------------------------------------- /src/components/DocNode.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/components/DocNode.tsx -------------------------------------------------------------------------------- /src/components/Editor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/components/Editor.tsx -------------------------------------------------------------------------------- /src/components/RemoteCursor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/components/RemoteCursor.tsx -------------------------------------------------------------------------------- /src/components/RemoteSelectionRange.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/components/RemoteSelectionRange.tsx -------------------------------------------------------------------------------- /src/content/RichContent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/content/RichContent.ts -------------------------------------------------------------------------------- /src/content/fromJSON.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/content/fromJSON.ts -------------------------------------------------------------------------------- /src/content/fromRaw.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/content/fromRaw.ts -------------------------------------------------------------------------------- /src/content/fromText.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/content/fromText.ts -------------------------------------------------------------------------------- /src/content/getContainerByObjectId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/content/getContainerByObjectId.ts -------------------------------------------------------------------------------- /src/content/voidElements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/content/voidElements.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/mutations/handleCharacterData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/mutations/handleCharacterData.ts -------------------------------------------------------------------------------- /src/mutations/handleMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/mutations/handleMutation.ts -------------------------------------------------------------------------------- /src/mutations/observerConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/mutations/observerConfig.ts -------------------------------------------------------------------------------- /src/mutations/processAttachQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/mutations/processAttachQueue.ts -------------------------------------------------------------------------------- /src/mutations/processBuildQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/mutations/processBuildQueue.ts -------------------------------------------------------------------------------- /src/mutations/processDetachQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/mutations/processDetachQueue.ts -------------------------------------------------------------------------------- /src/mutations/processMutationList.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/mutations/processMutationList.ts -------------------------------------------------------------------------------- /src/mutations/simplifyCharQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/mutations/simplifyCharQueue.ts -------------------------------------------------------------------------------- /src/mutations/simplifyQueues.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/mutations/simplifyQueues.ts -------------------------------------------------------------------------------- /src/network/RichConnector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/network/RichConnector.ts -------------------------------------------------------------------------------- /src/plugins/strikethroughPlugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/plugins/strikethroughPlugin.ts -------------------------------------------------------------------------------- /src/ranges/LocalRange.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/ranges/LocalRange.ts -------------------------------------------------------------------------------- /src/ranges/PeerRanges.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/ranges/PeerRanges.ts -------------------------------------------------------------------------------- /src/ranges/defaultColors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/ranges/defaultColors.ts -------------------------------------------------------------------------------- /src/ranges/getIsBackward.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/ranges/getIsBackward.ts -------------------------------------------------------------------------------- /src/ranges/getNextColor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/ranges/getNextColor.ts -------------------------------------------------------------------------------- /src/ranges/getRemoteRangeBBox.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/ranges/getRemoteRangeBBox.ts -------------------------------------------------------------------------------- /src/types/automerge/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/types/automerge/index.d.ts -------------------------------------------------------------------------------- /src/types/automerge/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/types/automerge/tsconfig.json -------------------------------------------------------------------------------- /src/types/himalaya/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'himalaya' { 2 | function parse (json: string): Array 3 | } 4 | -------------------------------------------------------------------------------- /src/types/modules.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/src/types/modules.d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/tslint.json -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/webpack.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkrick/rich/HEAD/yarn.lock --------------------------------------------------------------------------------