├── .eslintrc ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── babel.config.js ├── example ├── ToolbarButton.js ├── blockStyles.html ├── inlineStyles.html ├── link.html ├── mention.html ├── token.html └── tray.html ├── package.json ├── rollup.config.js ├── src ├── components │ ├── Editor.js │ ├── KeyCommandController.js │ ├── OverlayWrapper.js │ ├── Toolbar.js │ └── withDraftExtendContext.js ├── index.js ├── plugins │ ├── accumulatePluginOptions.js │ ├── createPlugin.js │ └── utils.js ├── style │ └── draft-extend.css └── util │ ├── accumulateFunction.js │ ├── buildTag.js │ ├── compose.js │ ├── memoize.js │ └── middlewareAdapter.js └── yarn.lock /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "hubspot" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist/ 3 | lib/ 4 | esm/ 5 | npm-debug.log 6 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/babel.config.js -------------------------------------------------------------------------------- /example/ToolbarButton.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/example/ToolbarButton.js -------------------------------------------------------------------------------- /example/blockStyles.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/example/blockStyles.html -------------------------------------------------------------------------------- /example/inlineStyles.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/example/inlineStyles.html -------------------------------------------------------------------------------- /example/link.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/example/link.html -------------------------------------------------------------------------------- /example/mention.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/example/mention.html -------------------------------------------------------------------------------- /example/token.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/example/token.html -------------------------------------------------------------------------------- /example/tray.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/example/tray.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/components/Editor.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/components/Editor.js -------------------------------------------------------------------------------- /src/components/KeyCommandController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/components/KeyCommandController.js -------------------------------------------------------------------------------- /src/components/OverlayWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/components/OverlayWrapper.js -------------------------------------------------------------------------------- /src/components/Toolbar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/components/Toolbar.js -------------------------------------------------------------------------------- /src/components/withDraftExtendContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/components/withDraftExtendContext.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/index.js -------------------------------------------------------------------------------- /src/plugins/accumulatePluginOptions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/plugins/accumulatePluginOptions.js -------------------------------------------------------------------------------- /src/plugins/createPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/plugins/createPlugin.js -------------------------------------------------------------------------------- /src/plugins/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/plugins/utils.js -------------------------------------------------------------------------------- /src/style/draft-extend.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/style/draft-extend.css -------------------------------------------------------------------------------- /src/util/accumulateFunction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/util/accumulateFunction.js -------------------------------------------------------------------------------- /src/util/buildTag.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/util/buildTag.js -------------------------------------------------------------------------------- /src/util/compose.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/util/compose.js -------------------------------------------------------------------------------- /src/util/memoize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/util/memoize.js -------------------------------------------------------------------------------- /src/util/middlewareAdapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/src/util/middlewareAdapter.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/draft-extend/HEAD/yarn.lock --------------------------------------------------------------------------------