diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-13 00:18:47 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-13 00:18:47 +0200 |
commit | ba56801352359e606e261b1fc066af4e394c47c9 (patch) | |
tree | 20c26cfd18f30858baf7527f3720e9011e3b6f57 /packages/gitbook-core | |
parent | 48ee0e35b0a9f77cfc66b2ec35a45e487020c847 (diff) | |
download | gitbook-ba56801352359e606e261b1fc066af4e394c47c9.zip gitbook-ba56801352359e606e261b1fc066af4e394c47c9.tar.gz gitbook-ba56801352359e606e261b1fc066af4e394c47c9.tar.bz2 |
Add base for new fontsettings plugin
Diffstat (limited to 'packages/gitbook-core')
-rw-r--r-- | packages/gitbook-core/package.json | 94 | ||||
-rw-r--r-- | packages/gitbook-core/src/components/InjectedComponent.js | 2 |
2 files changed, 48 insertions, 48 deletions
diff --git a/packages/gitbook-core/package.json b/packages/gitbook-core/package.json index 8e25548..b5b2d3f 100644 --- a/packages/gitbook-core/package.json +++ b/packages/gitbook-core/package.json @@ -1,49 +1,49 @@ { - "name": "gitbook-core", - "version": "4.0.0", - "description": "Core for GitBook plugins API", - "main": "./lib/index.js", - "dependencies": { - "bluebird": "^3.4.6", - "classnames": "^2.2.5", - "entities": "^1.1.1", - "history": "^4.3.0", - "html-tags": "^1.1.1", - "immutable": "^3.8.1", - "react": "^15.3.1", - "react-dom": "^15.3.1", - "react-helmet": "^3.1.0", - "react-immutable-proptypes": "^2.1.0", - "react-intl": "^2.1.5", - "react-redux": "^4.4.5", - "react-safe-html": "0.4.0", - "redux": "^3.5.2", - "redux-thunk": "^2.1.0", - "reflexbox": "^2.2.2", - "whatwg-fetch": "^1.0.0" - }, - "devDependencies": { - "babel-cli": "^6.14.0", - "babel-preset-es2015": "^6.14.0", - "babel-preset-react": "^6.11.1", - "babel-preset-stage-2": "^6.13.0", - "browserify": "^13.1.0", - "envify": "^3.4.1", - "uglify-js": "^2.7.3" - }, - "scripts": { - "dist-lib": "rm -rf lib/ && babel -d lib/ src/", - "dist-standalone": "mkdir -p dist && browserify -r ./lib/index.js:gitbook-core -r react -r react-dom ./lib/index.js | uglifyjs -c > ./dist/gitbook.core.min.js", - "dist": "npm run dist-lib && npm run dist-standalone", - "prepublish": "npm run dist" - }, - "repository": { - "type": "git", - "url": "https://github.com/GitbookIO/gitbook.git" - }, - "author": "GitBook Inc. <contact@gitbook.com>", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/GitbookIO/gitbook/issues" - } + "name": "gitbook-core", + "version": "4.0.0", + "description": "Core for GitBook plugins API", + "main": "./lib/index.js", + "dependencies": { + "bluebird": "^3.4.6", + "classnames": "^2.2.5", + "entities": "^1.1.1", + "history": "^4.3.0", + "html-tags": "^1.1.1", + "immutable": "^3.8.1", + "react": "^15.3.1", + "react-dom": "^15.3.1", + "react-helmet": "^3.1.0", + "react-immutable-proptypes": "^2.1.0", + "react-intl": "^2.1.5", + "react-redux": "^4.4.5", + "react-safe-html": "0.4.0", + "redux": "^3.5.2", + "redux-thunk": "^2.1.0", + "reflexbox": "^2.2.2", + "whatwg-fetch": "^1.0.0" + }, + "devDependencies": { + "babel-cli": "^6.14.0", + "babel-preset-es2015": "^6.14.0", + "babel-preset-react": "^6.11.1", + "babel-preset-stage-2": "^6.13.0", + "browserify": "^13.1.0", + "envify": "^3.4.1", + "uglify-js": "^2.7.3" + }, + "scripts": { + "dist-lib": "rm -rf lib/ && babel -d lib/ src/", + "dist-standalone": "mkdir -p dist && browserify -r ./lib/index.js:gitbook-core -r react -r react-dom ./lib/index.js | uglifyjs -c > ./dist/gitbook.core.min.js", + "dist": "npm run dist-lib && npm run dist-standalone", + "prepublish": "npm run dist" + }, + "repository": { + "type": "git", + "url": "https://github.com/GitbookIO/gitbook.git" + }, + "author": "GitBook Inc. <contact@gitbook.com>", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/GitbookIO/gitbook/issues" + } }
\ No newline at end of file diff --git a/packages/gitbook-core/src/components/InjectedComponent.js b/packages/gitbook-core/src/components/InjectedComponent.js index ca6e0b0..f02516c 100644 --- a/packages/gitbook-core/src/components/InjectedComponent.js +++ b/packages/gitbook-core/src/components/InjectedComponent.js @@ -54,7 +54,7 @@ const InjectedComponentSet = React.createClass({ render() { const { components, props, ...divProps } = this.props; - const inner = components.map(Comp => <Injection key={Comp.displayName} component={Comp} props={props} />); + const inner = components.map((Comp, i) => <Injection key={i} component={Comp} props={props} />); return ( <div {...divProps}> |