From ed556230fe335afe402933b991aceb1be4f5f7a2 Mon Sep 17 00:00:00 2001 From: Pedro Nauck Date: Mon, 17 Jun 2019 21:02:56 -0300 Subject: [PATCH] chore: use theme default as theme component shadowing --- .../devServer/services/createResources.ts | 2 +- core/docz-theme-default/.babelrc | 26 - core/docz-theme-default/.eslintrc.js | 3 - core/docz-theme-default/.lintstagedrc | 3 - core/docz-theme-default/CHANGELOG.md | 1216 ----------------- core/docz-theme-default/LICENSE.md | 21 - core/docz-theme-default/README.md | 214 --- core/docz-theme-default/package.json | 54 - core/docz-theme-default/rollup.config.js | 8 - core/docz-theme-default/src/types.d.ts | 7 - core/docz-theme-default/tsconfig.json | 23 - core/gatsby-theme-docz/gatsby-config.js | 16 +- core/gatsby-theme-docz/gatsby-node.js | 1 - core/gatsby-theme-docz/package.json | 17 +- .../Layout.tpl.js => src/base/Layout.js} | 9 +- .../src/{components => base}/Link.js | 0 .../src/{components => base}/Seo.js | 0 .../src/components/Layout.js | 72 - .../docz/components/shared/Header/index.js} | 15 +- .../docz/components/shared/Header/styles.js} | 2 +- .../src/docz/components/shared/Icons/index.js | 4 + .../src/docz/components/ui/Page/index.js} | 7 +- .../src/docz/components/ui/index.js} | 0 .../src/docz/index.js} | 9 +- .../src/docz/layout.js} | 4 +- .../src/docz/styles/global.js} | 0 .../src/docz/styles/index.js} | 0 .../src/docz/theme/colors.js} | 0 .../src/docz/theme/index.js} | 0 .../src/docz/theme/modes.js} | 0 .../src/docz/utils/mixins.js} | 0 .../src/docz/utils/theme.js} | 2 +- core/gatsby-theme-docz/src/node/onPreInit.js | 35 - core/gatsby-theme-docz/templates/Link.tpl.js | 11 - core/gatsby-theme-docz/templates/Seo.tpl.js | 88 -- yarn.lock | 225 ++- 36 files changed, 231 insertions(+), 1863 deletions(-) delete mode 100644 core/docz-theme-default/.babelrc delete mode 100644 core/docz-theme-default/.eslintrc.js delete mode 100644 core/docz-theme-default/.lintstagedrc delete mode 100644 core/docz-theme-default/CHANGELOG.md delete mode 100644 core/docz-theme-default/LICENSE.md delete mode 100644 core/docz-theme-default/README.md delete mode 100644 core/docz-theme-default/package.json delete mode 100644 core/docz-theme-default/rollup.config.js delete mode 100644 core/docz-theme-default/src/types.d.ts delete mode 100644 core/docz-theme-default/tsconfig.json rename core/gatsby-theme-docz/{templates/Layout.tpl.js => src/base/Layout.js} (82%) rename core/gatsby-theme-docz/src/{components => base}/Link.js (100%) rename core/gatsby-theme-docz/src/{components => base}/Seo.js (100%) delete mode 100644 core/gatsby-theme-docz/src/components/Layout.js rename core/{docz-theme-default/src/components/shared/Header/index.tsx => gatsby-theme-docz/src/docz/components/shared/Header/index.js} (81%) rename core/{docz-theme-default/src/components/shared/Header/styles.ts => gatsby-theme-docz/src/docz/components/shared/Header/styles.js} (95%) create mode 100644 core/gatsby-theme-docz/src/docz/components/shared/Icons/index.js rename core/{docz-theme-default/src/components/ui/Page/index.tsx => gatsby-theme-docz/src/docz/components/ui/Page/index.js} (52%) rename core/{docz-theme-default/src/components/ui/index.tsx => gatsby-theme-docz/src/docz/components/ui/index.js} (100%) rename core/{docz-theme-default/src/index.tsx => gatsby-theme-docz/src/docz/index.js} (67%) rename core/{docz-theme-default/src/layout.tsx => gatsby-theme-docz/src/docz/layout.js} (84%) rename core/{docz-theme-default/src/styles/global.ts => gatsby-theme-docz/src/docz/styles/global.js} (100%) rename core/{docz-theme-default/src/styles/index.ts => gatsby-theme-docz/src/docz/styles/index.js} (100%) rename core/{docz-theme-default/src/theme/colors.ts => gatsby-theme-docz/src/docz/theme/colors.js} (100%) rename core/{docz-theme-default/src/theme/index.ts => gatsby-theme-docz/src/docz/theme/index.js} (100%) rename core/{docz-theme-default/src/theme/modes.ts => gatsby-theme-docz/src/docz/theme/modes.js} (100%) rename core/{docz-theme-default/src/utils/mixins.ts => gatsby-theme-docz/src/docz/utils/mixins.js} (100%) rename core/{docz-theme-default/src/utils/theme.ts => gatsby-theme-docz/src/docz/utils/theme.js} (54%) delete mode 100644 core/gatsby-theme-docz/src/node/onPreInit.js delete mode 100644 core/gatsby-theme-docz/templates/Link.tpl.js delete mode 100644 core/gatsby-theme-docz/templates/Seo.tpl.js diff --git a/core/docz-core/src/machines/devServer/services/createResources.ts b/core/docz-core/src/machines/devServer/services/createResources.ts index ab34e888b..406074ef6 100644 --- a/core/docz-core/src/machines/devServer/services/createResources.ts +++ b/core/docz-core/src/machines/devServer/services/createResources.ts @@ -12,7 +12,7 @@ import { outputFileFromTemplate } from '../../../utils/template' const REQUIRED_DEPS = ['react', 'react-dom'] const REQUIRED_DEV_DEPS = ['gatsby', 'gatsby-mdx', 'gatsby-plugin-typescript'] -const CORE_DEV_DEPS = ['docz', 'docz-theme-default', 'gatsby-theme-docz'] +const CORE_DEV_DEPS = ['docz', 'gatsby-theme-docz'] const LOCAL_DEV_DEPS = [ 'babel-eslint', diff --git a/core/docz-theme-default/.babelrc b/core/docz-theme-default/.babelrc deleted file mode 100644 index 3780588ed..000000000 --- a/core/docz-theme-default/.babelrc +++ /dev/null @@ -1,26 +0,0 @@ -{ - "plugins": [ - "@babel/plugin-syntax-dynamic-import", - "lodash", - [ - "module-resolver", - { - "extensions": [".ts", ".tsx"], - "root": ["./src"], - "alias": { - "~styles": "./src/styles", - "~theme": "./src/theme", - "~utils": "./src/utils" - } - } - ] - ], - "env": { - "production": { - "plugins": ["emotion"] - }, - "development": { - "plugins": [["emotion", { "sourceMap": true }]] - } - } -} diff --git a/core/docz-theme-default/.eslintrc.js b/core/docz-theme-default/.eslintrc.js deleted file mode 100644 index 28661c2bd..000000000 --- a/core/docz-theme-default/.eslintrc.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - extends: ['eslint-config-docz'], -} diff --git a/core/docz-theme-default/.lintstagedrc b/core/docz-theme-default/.lintstagedrc deleted file mode 100644 index 5cf518114..000000000 --- a/core/docz-theme-default/.lintstagedrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "*.{ts,tsx}": ["yarn fix", "git add"] -} diff --git a/core/docz-theme-default/CHANGELOG.md b/core/docz-theme-default/CHANGELOG.md deleted file mode 100644 index e48d927d6..000000000 --- a/core/docz-theme-default/CHANGELOG.md +++ /dev/null @@ -1,1216 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [1.2.0](https://github.com/pedronauck/docz/compare/v1.1.0...v1.2.0) (2019-05-08) - - -### Bug Fixes - -* **docz-theme-default:** allow use of link component in ssr ([#854](https://github.com/pedronauck/docz/issues/854)) ([90c27e0](https://github.com/pedronauck/docz/commit/90c27e0)), closes [#832](https://github.com/pedronauck/docz/issues/832) -* **docz-theme-default:** useMemo with conditional ([3b653e5](https://github.com/pedronauck/docz/commit/3b653e5)) - - - - - -# [1.1.0](https://github.com/pedronauck/docz/compare/v1.0.4...v1.1.0) (2019-05-01) - - -### Bug Fixes - -* **docz:** non latin menu headings ([#840](https://github.com/pedronauck/docz/issues/840)) ([80b186c](https://github.com/pedronauck/docz/commit/80b186c)) - - -### Features - -* **docz-theme-default:** add options to the props component ([#823](https://github.com/pedronauck/docz/issues/823)) ([9edaac8](https://github.com/pedronauck/docz/commit/9edaac8)) - - - - - -## [1.0.4](https://github.com/pedronauck/docz/compare/v1.0.3...v1.0.4) (2019-04-18) - - -### Bug Fixes - -* **docz-rollup:** fixed rollup configs to be Windows tolerant ([#812](https://github.com/pedronauck/docz/issues/812)) ([10f6bfd](https://github.com/pedronauck/docz/commit/10f6bfd)) -* **docz-theme-default:** logo link point to dynamic base ([#815](https://github.com/pedronauck/docz/issues/815)) ([f7cc750](https://github.com/pedronauck/docz/commit/f7cc750)) - - - - - -## [1.0.3](https://github.com/pedronauck/docz/compare/v1.0.2...v1.0.3) (2019-04-15) - -**Note:** Version bump only for package docz-theme-default - - - - - -## [1.0.2](https://github.com/pedronauck/docz/compare/v1.0.1...v1.0.2) (2019-04-15) - - -### Bug Fixes - -* **docz-theme-default:** overlay just for mobile resolutions ([a927389](https://github.com/pedronauck/docz/commit/a927389)) -* window check ([cfbda29](https://github.com/pedronauck/docz/commit/cfbda29)) - - - - - -## [1.0.1](https://github.com/pedronauck/docz/compare/v1.0.0...v1.0.1) (2019-04-14) - -**Note:** Version bump only for package docz-theme-default - - - - - -# [1.0.0](https://github.com/pedronauck/docz/compare/v1.0.0-rc.8...v1.0.0) (2019-04-11) - - -### Bug Fixes - -* **docz-theme-default:** styled error margin ([53104e8](https://github.com/pedronauck/docz/commit/53104e8)) -* **docz-theme-default:** table media query style ([#782](https://github.com/pedronauck/docz/issues/782)) ([205ce75](https://github.com/pedronauck/docz/commit/205ce75)) - - - - - -# [1.0.0-rc.4](https://github.com/pedronauck/docz/compare/v1.0.0-rc.3...v1.0.0-rc.4) (2019-03-29) - - -### Bug Fixes - -* **docz-theme-default:** allows hamburger menu to be opened on mobile ([#698](https://github.com/pedronauck/docz/issues/698)) ([fd06381](https://github.com/pedronauck/docz/commit/fd06381)) -* **docz-theme-default:** mobile menu following anchor clicks ([#713](https://github.com/pedronauck/docz/issues/713)) ([e3bbf1a](https://github.com/pedronauck/docz/commit/e3bbf1a)) -* **docz-theme-default:** stop nested ul from rendering flat ([#714](https://github.com/pedronauck/docz/issues/714)) ([2711e6d](https://github.com/pedronauck/docz/commit/2711e6d)) - - - - - -# [1.0.0-rc.3](https://github.com/pedronauck/docz/compare/v1.0.0-rc.2...v1.0.0-rc.3) (2019-03-21) - -**Note:** Version bump only for package docz-theme-default - - - - - -# [1.0.0-beta.0](https://github.com/pedronauck/docz/compare/v1.0.0-alpha.1...v1.0.0-beta.0) (2019-03-19) - -**Note:** Version bump only for package docz-theme-default - - - - - -# [1.0.0-alpha.0](https://github.com/pedronauck/docz/compare/v0.13.5...v1.0.0-alpha.0) (2019-03-19) - - -### Bug Fixes - -* **docz-theme-default:** add active class manually for gatsby ([c3faed3](https://github.com/pedronauck/docz/commit/c3faed3)) -* **docz-theme-default:** react live error size ([7f2e0ff](https://github.com/pedronauck/docz/commit/7f2e0ff)) -* gatsby theme fixes ([dcc5f19](https://github.com/pedronauck/docz/commit/dcc5f19)) -* **docz-theme-default:** active menu link ([5e04e0d](https://github.com/pedronauck/docz/commit/5e04e0d)) -* **docz-theme-default:** fix padding in Playground elements ([4af7376](https://github.com/pedronauck/docz/commit/4af7376)), closes [/github.com/pedronauck/docz/issues/398#issuecomment-453663552](https://github.com//github.com/pedronauck/docz/issues/398/issues/issuecomment-453663552) -* **docz-theme-default:** force codemirror to refresh ([#637](https://github.com/pedronauck/docz/issues/637)) ([#638](https://github.com/pedronauck/docz/issues/638)) ([e745c7d](https://github.com/pedronauck/docz/commit/e745c7d)) -* **docz-theme-default:** show cursor on playground editor focus ([9f99c30](https://github.com/pedronauck/docz/commit/9f99c30)) -* **docz-theme-default:** show heading anchor on hover ([3e453f5](https://github.com/pedronauck/docz/commit/3e453f5)) -* **docz-theme-default:** styles adjustments ([aca1bee](https://github.com/pedronauck/docz/commit/aca1bee)) -* **docz-theme-default:** support absolute page elements ([#683](https://github.com/pedronauck/docz/issues/683)) ([a4ced2b](https://github.com/pedronauck/docz/commit/a4ced2b)) -* **docz-theme-default:** toggle active links on location change ([#666](https://github.com/pedronauck/docz/issues/666)) ([1274b97](https://github.com/pedronauck/docz/commit/1274b97)) -* define right internal dependencies version ([30a91b4](https://github.com/pedronauck/docz/commit/30a91b4)) -* prop types parser ([a3cc319](https://github.com/pedronauck/docz/commit/a3cc319)) -* **load-cfg:** use babel register in order to require using es6 ([7ad3b64](https://github.com/pedronauck/docz/commit/7ad3b64)) -* use custom rollup config to build instead of libundler ([ee42a5a](https://github.com/pedronauck/docz/commit/ee42a5a)) -* wrapper property is ignored in ([3cda0de](https://github.com/pedronauck/docz/commit/3cda0de)) - - -### Features - -* new Props component ([80451b1](https://github.com/pedronauck/docz/commit/80451b1)) -* **gatsby-theme-docz:** add custom theme support ([fdfddcb](https://github.com/pedronauck/docz/commit/fdfddcb)) -* add initial gatsby integration ([#630](https://github.com/pedronauck/docz/issues/630)) ([70d40cc](https://github.com/pedronauck/docz/commit/70d40cc)), closes [#609](https://github.com/pedronauck/docz/issues/609) -* add playground component ([cde6511](https://github.com/pedronauck/docz/commit/cde6511)) -* use @reach/router instead of react-router ([81a4a82](https://github.com/pedronauck/docz/commit/81a4a82)) -* **docz-theme-default:** automatically render links with relative path ([624bbf0](https://github.com/pedronauck/docz/commit/624bbf0)) -* **docz-theme-default:** use styled-components instead of emotion ([19047fd](https://github.com/pedronauck/docz/commit/19047fd)) -* split router logic from theme ([a9c26e6](https://github.com/pedronauck/docz/commit/a9c26e6)) - - -### BREAKING CHANGES - -* does not wrap the component anymore before -passing it to the renderer. Instead it passes the wrapper explicitly to -the renderer, making it the renderer's duty to apply the wrapper. - - - - - -## [0.13.6](https://github.com/pedronauck/docz/compare/v0.13.5...v0.13.6) (2018-12-26) - -**Note:** Version bump only for package docz-theme-default - - - - - -## [0.13.5](https://github.com/pedronauck/docz/compare/v0.13.4...v0.13.5) (2018-12-19) - - -### Bug Fixes - -* **docz-theme-default:** add default value for rgba of polished ([dcb74af](https://github.com/pedronauck/docz/commit/dcb74af)) - - - - - -## [0.13.4](https://github.com/pedronauck/docz/compare/v0.13.3...v0.13.4) (2018-12-17) - - -### Bug Fixes - -* **docz-theme-default:** remove overflow from playground wrapper ([e007762](https://github.com/pedronauck/docz/commit/e007762)) - - - - - -## [0.13.3](https://github.com/pedronauck/docz/compare/v0.13.2...v0.13.3) (2018-12-17) - -**Note:** Version bump only for package docz-theme-default - - - - - -## [0.13.2](https://github.com/pedronauck/docz/compare/v0.13.1...v0.13.2) (2018-12-17) - -**Note:** Version bump only for package docz-theme-default - - - - - -## [0.13.1](https://github.com/pedronauck/docz/compare/v0.13.0...v0.13.1) (2018-12-17) - -**Note:** Version bump only for package docz-theme-default - - - - - -# [0.13.0](https://github.com/pedronauck/docz/compare/v0.12.17...v0.13.0) (2018-12-17) - - -### Bug Fixes - -* **docz-core:** use webpack-dev-server instead of webpack-serve ([4157e05](https://github.com/pedronauck/docz/commit/4157e05)) - - -### Features - -* **docz-theme-default:** set max lines before scroll editor ([#519](https://github.com/pedronauck/docz/issues/519)) ([698261b](https://github.com/pedronauck/docz/commit/698261b)) - - - - - -## [0.12.17](https://github.com/pedronauck/docz/compare/v0.12.16...v0.12.17) (2018-12-14) - - -### Bug Fixes - -* **docz-theme-default:** link color ([21d58fb](https://github.com/pedronauck/docz/commit/21d58fb)) -* **docz-theme-default:** some fixes on styles ([a17e914](https://github.com/pedronauck/docz/commit/a17e914)) -* **docz-theme-default:** use theme getter instead of literal obj access ([89e1d03](https://github.com/pedronauck/docz/commit/89e1d03)) - - - - - -## [0.12.16](https://github.com/pedronauck/docz/compare/v0.12.15...v0.12.16) (2018-12-13) - - -### Bug Fixes - -* **docz-theme-default:** refresh editor after it's mounted ([#406](https://github.com/pedronauck/docz/issues/406)) ([#506](https://github.com/pedronauck/docz/issues/506)) ([c67fa41](https://github.com/pedronauck/docz/commit/c67fa41)) -* edit page button is overlayed by github link ([341e03a](https://github.com/pedronauck/docz/commit/341e03a)) -* **docz-theme-default:** ts warning ([452904b](https://github.com/pedronauck/docz/commit/452904b)) - - - - - -## [0.12.15](https://github.com/pedronauck/docz/compare/v0.12.14...v0.12.15) (2018-12-04) - -**Note:** Version bump only for package docz-theme-default - - - - - -## [0.12.14](https://github.com/pedronauck/docz/compare/v0.12.13...v0.12.14) (2018-12-04) - - -### Bug Fixes - -* **docz-core:** watcher close ([caa8151](https://github.com/pedronauck/docz/commit/caa8151)) -* **docz-theme-default:** editor border-radius ([7a7d1f8](https://github.com/pedronauck/docz/commit/7a7d1f8)) -* **docz-theme-default:** overlay logic ([8b3fdc9](https://github.com/pedronauck/docz/commit/8b3fdc9)) -* **docz-theme-default:** playground relative position ([a097b5f](https://github.com/pedronauck/docz/commit/a097b5f)) - - - - - -## [0.12.13](https://github.com/pedronauck/docz/compare/v0.12.12...v0.12.13) (2018-11-23) - - -### Bug Fixes - -* **docz-theme-default:** fixes flexbox text overflow issue ([#471](https://github.com/pedronauck/docz/issues/471)) ([b37f25e](https://github.com/pedronauck/docz/commit/b37f25e)) -* **docz-theme-default:** fullscreen mode ([ac02c17](https://github.com/pedronauck/docz/commit/ac02c17)) - - - - - -## [0.12.12](https://github.com/pedronauck/docz/compare/v0.12.11...v0.12.12) (2018-11-16) - - -### Bug Fixes - -* **docz-theme-default:** add theme provider around all theme ([5596446](https://github.com/pedronauck/docz/commit/5596446)) - - - - - -## [0.12.11](https://github.com/pedronauck/docz/compare/v0.12.10...v0.12.11) (2018-11-15) - - -### Bug Fixes - -* **docz-theme-default:** adjust z-index of menu ([ea9a864](https://github.com/pedronauck/docz/commit/ea9a864)) -* **docz-theme-default:** font size of heading ([5cf6144](https://github.com/pedronauck/docz/commit/5cf6144)) - - - - - -## [0.12.10](https://github.com/pedronauck/docz/compare/v0.12.9...v0.12.10) (2018-11-15) - - -### Bug Fixes - -* **docz-theme-default:** add styles or classname on playground ([01110d4](https://github.com/pedronauck/docz/commit/01110d4)) - - -### Features - -* **docz-theme-default:** show and hide playground ([b665f81](https://github.com/pedronauck/docz/commit/b665f81)) - - - - - -## [0.12.9](https://github.com/pedronauck/docz/compare/v0.12.8...v0.12.9) (2018-11-01) - - -### Bug Fixes - -* **docz-theme-default:** table margin bottom ([36e322f](https://github.com/pedronauck/docz/commit/36e322f)) -* **docz-theme-default:** use class inside playground ([cecbea1](https://github.com/pedronauck/docz/commit/cecbea1)) - - -### Features - -* **docz-theme-default:** add style for hr component ([5b24400](https://github.com/pedronauck/docz/commit/5b24400)) -* **docz-theme-default:** hide playground editor by default ([0ccda92](https://github.com/pedronauck/docz/commit/0ccda92)) - - - - - -## [0.12.8](https://github.com/pedronauck/docz/compare/v0.12.7...v0.12.8) (2018-10-31) - -**Note:** Version bump only for package docz-theme-default - - - - - -## [0.12.7](https://github.com/pedronauck/docz/compare/v0.12.6...v0.12.7) (2018-10-30) - -**Note:** Version bump only for package docz-theme-default - - - - - -## [0.12.6](https://github.com/pedronauck/docz/compare/v0.12.5...v0.12.6) (2018-10-30) - - -### Bug Fixes - -* **docz:** conditionally description column on PropsTable ([#385](https://github.com/pedronauck/docz/issues/385)) ([829a3aa](https://github.com/pedronauck/docz/commit/829a3aa)), closes [#427](https://github.com/pedronauck/docz/issues/427) [#421](https://github.com/pedronauck/docz/issues/421) -* **docz-theme-default:** fill adjustments ([119e4a7](https://github.com/pedronauck/docz/commit/119e4a7)) -* **docz-theme-default:** rename playground container to avoid conflicts ([#429](https://github.com/pedronauck/docz/issues/429)) ([86845bf](https://github.com/pedronauck/docz/commit/86845bf)) -* **docz-theme-default:** text alignment in table thead ([#403](https://github.com/pedronauck/docz/issues/403)) ([475eb52](https://github.com/pedronauck/docz/commit/475eb52)) -* **docz-theme-default:** tooltip component ([9234b5e](https://github.com/pedronauck/docz/commit/9234b5e)) - - -### Features - -* **docz-theme-default:** add code editor toggle on playground ([#387](https://github.com/pedronauck/docz/issues/387)) ([f833eaa](https://github.com/pedronauck/docz/commit/f833eaa)) -* add support to disable codesandbox ([be94b0e](https://github.com/pedronauck/docz/commit/be94b0e)) -* **docz-theme-default:** add support to show/hide playground editor ([cacc6fb](https://github.com/pedronauck/docz/commit/cacc6fb)) - - - - - - -## [0.12.5](https://github.com/pedronauck/docz/compare/v0.12.4...v0.12.5) (2018-09-30) - - -### Bug Fixes - -* **docz-theme-default:** adjust theme colors ([eed7212](https://github.com/pedronauck/docz/commit/eed7212)) - - - - - - -## [0.12.4](https://github.com/pedronauck/docz/compare/v0.12.3...v0.12.4) (2018-09-28) - -**Note:** Version bump only for package docz-theme-default - - - - - - -## [0.12.3](https://github.com/pedronauck/docz/compare/v0.12.2...v0.12.3) (2018-09-28) - -**Note:** Version bump only for package docz-theme-default - - - - - - -## [0.11.2](https://github.com/pedronauck/docz/compare/v0.11.1...v0.11.2) (2018-09-11) - - -### Bug Fixes - -* **docz-theme-default:** scrolling and overflows performance ([a28ab79](https://github.com/pedronauck/docz/commit/a28ab79)) -* heading hash link with hash router config ([7d7f557](https://github.com/pedronauck/docz/commit/7d7f557)) - - - - - - -## [0.11.1](https://github.com/pedronauck/docz/compare/v0.11.0...v0.11.1) (2018-09-07) - - -### Bug Fixes - -* **docz-theme-default:** prevent sidebar toggle on desktop ([7a3b97d](https://github.com/pedronauck/docz/commit/7a3b97d)) -* update no documents found text ([#289](https://github.com/pedronauck/docz/issues/289)) ([cb782f9](https://github.com/pedronauck/docz/commit/cb782f9)) - - - - - - -# [0.11.0](https://github.com/pedronauck/docz/compare/v0.10.3...v0.11.0) (2018-09-02) - - -### Bug Fixes - -* **docz-theme-default:** add prop to keep codemirror last line ([5c1e813](https://github.com/pedronauck/docz/commit/5c1e813)) -* **docz-theme-default:** codemirror line end bug ([9b07d27](https://github.com/pedronauck/docz/commit/9b07d27)) -* **docz-theme-default:** remove react-breakpoints ([c8288b0](https://github.com/pedronauck/docz/commit/c8288b0)) -* **docz-theme-default:** update the empty message ([9db9231](https://github.com/pedronauck/docz/commit/9db9231)) - - -### Features - -* **docz-theme-default:** add auto close tags on playground editor ([a6e5cf7](https://github.com/pedronauck/docz/commit/a6e5cf7)) -* **docz-theme-default:** add blockquote component ([86ada87](https://github.com/pedronauck/docz/commit/86ada87)) -* **docz-theme-default:** add refresh btn on playground ([#254](https://github.com/pedronauck/docz/issues/254)) ([ebefd91](https://github.com/pedronauck/docz/commit/ebefd91)), closes [#251](https://github.com/pedronauck/docz/issues/251) -* **docz-theme-default:** add scrollbar on playground ([#279](https://github.com/pedronauck/docz/issues/279)) ([0f6ea2a](https://github.com/pedronauck/docz/commit/0f6ea2a)) - - - - - - -## [0.10.3](https://github.com/pedronauck/docz/compare/v0.9.6...v0.10.3) (2018-08-16) - - -### Bug Fixes - -* **docz-theme-default:** add playground min-height just on fullscreen ([a82903a](https://github.com/pedronauck/docz/commit/a82903a)) -* **docz-theme-default:** use padding on link instead of margin ([b15457c](https://github.com/pedronauck/docz/commit/b15457c)) - - - -## [0.10.2](https://github.com/pedronauck/docz/compare/v0.10.1...v0.10.2) (2018-08-13) - - -### Bug Fixes - -* prevent codemirror bug on build ([3d0894e](https://github.com/pedronauck/docz/commit/3d0894e)) - - - - - -## [0.10.1](https://github.com/pedronauck/docz/compare/v0.10.0...v0.10.1) (2018-08-13) - - - - -**Note:** Version bump only for package docz-theme-default - - -# [0.10.0](https://github.com/pedronauck/docz/compare/v0.9.6...v0.10.0) (2018-08-13) - - -### Bug Fixes - -* **docz-theme-default:** playground overflow on mobile ([db1eb5b](https://github.com/pedronauck/docz/commit/db1eb5b)) - - -### Features - -* add github repository link ([78a19f6](https://github.com/pedronauck/docz/commit/78a19f6)) -* allow edit code inside playground ([#205](https://github.com/pedronauck/docz/issues/205)) ([4f948f7](https://github.com/pedronauck/docz/commit/4f948f7)) - - - - - -## [0.9.6](https://github.com/pedronauck/docz/compare/v0.9.5...v0.9.6) (2018-08-06) - - -### Bug Fixes - -* **docz-theme-default:** using lodash.get to prevent classname crash ([befc643](https://github.com/pedronauck/docz/commit/befc643)) - - - - - -## [0.9.5](https://github.com/pedronauck/docz/compare/v0.9.4...v0.9.5) (2018-08-04) - - -### Bug Fixes - -* **docz-theme-default:** copy html output ([#189](https://github.com/pedronauck/docz/issues/189)) ([2cb834c](https://github.com/pedronauck/docz/commit/2cb834c)) - - - - - -## [0.9.4](https://github.com/pedronauck/docz/compare/v0.9.4-beta.1...v0.9.4) (2018-08-04) - - -### Bug Fixes - -* remove external deps ([470bdd3](https://github.com/pedronauck/docz/commit/470bdd3)) - - - - - -## [0.9.3](https://github.com/pedronauck/docz/compare/v0.9.2...v0.9.3) (2018-08-03) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.9.2](https://github.com/pedronauck/docz/compare/v0.9.1...v0.9.2) (2018-08-02) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.9.1](https://github.com/pedronauck/docz/compare/v0.9.0...v0.9.1) (2018-08-02) - - - - -**Note:** Version bump only for package docz-theme-default - - -# [0.9.0](https://github.com/pedronauck/docz/compare/v0.9.0-beta.1...v0.9.0) (2018-08-02) - - -### Bug Fixes - -* **docz:** transform and merge theme config ([999ab73](https://github.com/pedronauck/docz/commit/999ab73)) -* **docz:** using context for imports to prevent disposed hmr ([b37284c](https://github.com/pedronauck/docz/commit/b37284c)) -* **docz-theme-default:** support chinese input method ([#182](https://github.com/pedronauck/docz/issues/182)) ([94544a6](https://github.com/pedronauck/docz/commit/94544a6)) -* **docz-theme-default:** table layout adjustment ([e8e8ec8](https://github.com/pedronauck/docz/commit/e8e8ec8)) -* **docz-theme-default:** use docz link when href is internal ([00deef5](https://github.com/pedronauck/docz/commit/00deef5)) - - - - - -# [0.9.0-beta.1](https://github.com/pedronauck/docz/compare/v0.9.0-beta.0...v0.9.0-beta.1) (2018-08-01) - - - - -**Note:** Version bump only for package docz-theme-default - - -# [0.9.0-beta.0](https://github.com/pedronauck/docz/compare/v0.8.0...v0.9.0-beta.0) (2018-08-01) - - -### Bug Fixes - -* **docz-theme-default:** hot reload on fullscreen mode ([1c68e2d](https://github.com/pedronauck/docz/commit/1c68e2d)) -* **docz-theme-default:** not found typo ([#173](https://github.com/pedronauck/docz/issues/173)) ([8c9f74e](https://github.com/pedronauck/docz/commit/8c9f74e)) -* **docz-theme-default:** resolve emotion theming conflict ([659cd79](https://github.com/pedronauck/docz/commit/659cd79)) - - -### Features - -* **docz-core:** support env files to set configuration ([#171](https://github.com/pedronauck/docz/issues/171)) ([259b72d](https://github.com/pedronauck/docz/commit/259b72d)), closes [#140](https://github.com/pedronauck/docz/issues/140) -* **docz-plugin-svgr:** add initial version of plugin ([1ac1ea8](https://github.com/pedronauck/docz/commit/1ac1ea8)) -* **docz-theme-default:** add edit button for document ([#180](https://github.com/pedronauck/docz/issues/180)) ([e125a4f](https://github.com/pedronauck/docz/commit/e125a4f)) - - - - - -# [0.8.0](https://github.com/pedronauck/docz/compare/v0.7.1...v0.8.0) (2018-07-28) - - -### Bug Fixes - -* **docz-theme-default:** get fullscreen from localstorage ([0f8aa56](https://github.com/pedronauck/docz/commit/0f8aa56)) - - -### Features - -* **docz-theme-default:** add html output on playground ([be7a749](https://github.com/pedronauck/docz/commit/be7a749)) - - - - - -## [0.7.1](https://github.com/pedronauck/docz/compare/v0.7.0...v0.7.1) (2018-07-24) - - -### Bug Fixes - -* **docz:** sort algorithm off docs and menus ([dad83ce](https://github.com/pedronauck/docz/commit/dad83ce)) - - - - - -# [0.7.0](https://github.com/pedronauck/docz/compare/v0.6.2...v0.7.0) (2018-07-23) - - -### Bug Fixes - -* **docz-theme-default:** not found page ([fb1ac49](https://github.com/pedronauck/docz/commit/fb1ac49)) -* **docz-theme-default:** resize bar style ([df0ae82](https://github.com/pedronauck/docz/commit/df0ae82)) - - -### Features - -* **docz-theme-default:** add close on esc on playground fullscreen ([4ebf202](https://github.com/pedronauck/docz/commit/4ebf202)) -* **docz-theme-default:** add copy to clipboard on pre ([78149ad](https://github.com/pedronauck/docz/commit/78149ad)) -* **docz-theme-default:** add fullpage support for docs ([af88d0e](https://github.com/pedronauck/docz/commit/af88d0e)) -* **docz-theme-default:** add line numbers on Playground ([204f1bb](https://github.com/pedronauck/docz/commit/204f1bb)) -* **docz-theme-default:** add resize bar for fullscreen playground ([392009f](https://github.com/pedronauck/docz/commit/392009f)) -* **docz-theme-default:** add responsive mode for playground ([e04452e](https://github.com/pedronauck/docz/commit/e04452e)) - - - - - -## [0.6.2](https://github.com/pedronauck/docz/compare/v0.6.1...v0.6.2) (2018-07-20) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.6.1](https://github.com/pedronauck/docz/compare/v0.6.0...v0.6.1) (2018-07-19) - - -### Bug Fixes - -* **docz-theme-default:** add background and color on NotFound ([f0bd532](https://github.com/pedronauck/docz/commit/f0bd532)) - - - - - -# [0.6.0](https://github.com/pedronauck/docz/compare/v0.5.9...v0.6.0) (2018-07-19) - - -### Bug Fixes - -* **docz-theme-default:** open menu if has some link active ([8399aad](https://github.com/pedronauck/docz/commit/8399aad)) - - - - - -## [0.5.9](https://github.com/pedronauck/docz/compare/v0.5.8...v0.5.9) (2018-07-16) - - -### Bug Fixes - -* **docz-theme-default:** add overflow config on Pre component ([#146](https://github.com/pedronauck/docz/issues/146)) ([9d4ce59](https://github.com/pedronauck/docz/commit/9d4ce59)) - - - - - -## [0.5.8](https://github.com/pedronauck/docz/compare/v0.5.7...v0.5.8) (2018-07-11) - - -### Bug Fixes - -* **docz-theme-default:** config transform function ([fdb3118](https://github.com/pedronauck/docz/commit/fdb3118)) - - - - - -## [0.5.7](https://github.com/pedronauck/docz/compare/v0.5.6...v0.5.7) (2018-07-11) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.5.6](https://github.com/pedronauck/docz/compare/v0.5.5...v0.5.6) (2018-07-11) - - -### Bug Fixes - -* **docz-theme-default:** sidebar search ([8fd77ec](https://github.com/pedronauck/docz/commit/8fd77ec)) - - -### Features - -* **docz:** add classname and style props for Playground ([1b64ed3](https://github.com/pedronauck/docz/commit/1b64ed3)) - - - - - -## [0.5.5](https://github.com/pedronauck/docz/compare/v0.5.4...v0.5.5) (2018-07-07) - - -### Bug Fixes - -* **docz-theme-default:** padding on sidebar footer ([df25fa1](https://github.com/pedronauck/docz/commit/df25fa1)) - - - - - -## [0.5.4](https://github.com/pedronauck/docz/compare/v0.5.3...v0.5.4) (2018-07-07) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.5.3](https://github.com/pedronauck/docz/compare/v0.5.2...v0.5.3) (2018-07-05) - - -### Bug Fixes - -* **docz-theme-default:** link isActive logic ([205ea8d](https://github.com/pedronauck/docz/commit/205ea8d)) - - - - - -## [0.5.2](https://github.com/pedronauck/docz/compare/v0.5.1...v0.5.2) (2018-07-05) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.5.1](https://github.com/pedronauck/docz/compare/v0.3.4...v0.5.1) (2018-07-03) - - -### Bug Fixes - -* **docz-theme-default:** add overflow auto to nav ([4cdbcfd](https://github.com/pedronauck/docz/commit/4cdbcfd)) - - -### Features - -* **docz-theme-default:** add automatic table of content ([#106](https://github.com/pedronauck/docz/issues/106)) ([6ce9e84](https://github.com/pedronauck/docz/commit/6ce9e84)) -* **docz-theme-default:** add sidebar search ([7886e75](https://github.com/pedronauck/docz/commit/7886e75)) - - - - - -# [0.5.0](https://github.com/pedronauck/docz/compare/v0.3.4...v0.5.0) (2018-07-03) - - -### Bug Fixes - -* **docz-theme-default:** add overflow auto to nav ([4cdbcfd](https://github.com/pedronauck/docz/commit/4cdbcfd)) - - -### Features - -* **docz-theme-default:** add automatic table of content ([#106](https://github.com/pedronauck/docz/issues/106)) ([6ce9e84](https://github.com/pedronauck/docz/commit/6ce9e84)) -* **docz-theme-default:** add sidebar search ([8218dc1](https://github.com/pedronauck/docz/commit/8218dc1)) - - - - - -# [0.4.0](https://github.com/pedronauck/docz/compare/v0.3.4...v0.4.0) (2018-06-30) - - -### Bug Fixes - -* **docz-theme-default:** add overflow auto to nav ([4cdbcfd](https://github.com/pedronauck/docz/commit/4cdbcfd)) - - -### Features - -* **docz-theme-default:** add automatic table of content ([#106](https://github.com/pedronauck/docz/issues/106)) ([6ce9e84](https://github.com/pedronauck/docz/commit/6ce9e84)) - - - - - -## [0.3.4](https://github.com/pedronauck/docz/compare/v0.3.3...v0.3.4) (2018-06-26) - - -### Bug Fixes - -* remove color transparent on body ([#93](https://github.com/pedronauck/docz/issues/93)) ([32a7815](https://github.com/pedronauck/docz/commit/32a7815)) - - - - -# [0.3.0](https://github.com/pedronauck/docz/compare/v0.3.0-beta.0...v0.3.0) (2018-06-25) - - -### Bug Fixes - -* **docz-theme-default:** prettier format ([cb5643d](https://github.com/pedronauck/docz/commit/cb5643d)) - - - - -# [0.3.0-beta.0](https://github.com/pedronauck/docz/compare/v0.2.11...v0.3.0-beta.0) (2018-06-25) - - -### Bug Fixes - -* **docz-theme-default:** change background based on toggle ([2241f8b](https://github.com/pedronauck/docz/commit/2241f8b)) -* **docz-theme-default:** change chevronDown to burguer icon with animation ([8649938](https://github.com/pedronauck/docz/commit/8649938)) -* **docz-theme-default:** include breakpoints as const ([43490bb](https://github.com/pedronauck/docz/commit/43490bb)) -* **docz-theme-default:** lint code ([7c97a41](https://github.com/pedronauck/docz/commit/7c97a41)) -* **docz-theme-default:** made container responsive ([ddf078d](https://github.com/pedronauck/docz/commit/ddf078d)) -* **docz-theme-default:** responsive position for wrapper ([bb56449](https://github.com/pedronauck/docz/commit/bb56449)) -* **docz-theme-default:** sidebar toggle for links and sub-links ([9cd6321](https://github.com/pedronauck/docz/commit/9cd6321)) - - -### Features - -* **docz-theme-default:** add dark mode 🌚 ([#81](https://github.com/pedronauck/docz/issues/81)) ([964cf4d](https://github.com/pedronauck/docz/commit/964cf4d)) -* **docz-theme-default:** include breakpoints reactive on sidebar ([d3911b4](https://github.com/pedronauck/docz/commit/d3911b4)) -* **docz-theme-default:** include media queries facepaint ([5f78734](https://github.com/pedronauck/docz/commit/5f78734)) -* **docz-theme-default:** include toggle to sidebar ([a94e517](https://github.com/pedronauck/docz/commit/a94e517)) -* **docz-theme-default:** include ToggleBackground ([cac7ecd](https://github.com/pedronauck/docz/commit/cac7ecd)) -* **docz-theme-default:** table responsive ([0580a77](https://github.com/pedronauck/docz/commit/0580a77)) - - - - - -## [0.3.3](https://github.com/pedronauck/docz/compare/v0.3.2...v0.3.3) (2018-06-26) - - -### Bug Fixes - -* **docz-core:** copy templates files for dist ([#88](https://github.com/pedronauck/docz/issues/88)) ([5e4b98d](https://github.com/pedronauck/docz/commit/5e4b98d)) - - - - - -## [0.3.2](https://github.com/pedronauck/docz/compare/v0.3.1...v0.3.2) (2018-06-25) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.3.1](https://github.com/pedronauck/docz/compare/v0.2.11...v0.3.1) (2018-06-25) - - -### Features - -* **docz-default-theme:** dark mode and responsiveness ([#87](https://github.com/pedronauck/docz/issues/87)) ([a4db115](https://github.com/pedronauck/docz/commit/a4db115)), closes [#81](https://github.com/pedronauck/docz/issues/81) - - - - - -# [0.3.0](https://github.com/pedronauck/docz/compare/v0.3.0-beta.0...v0.3.0) (2018-06-25) - - -### Bug Fixes - -* **docz-theme-default:** prettier format ([cb5643d](https://github.com/pedronauck/docz/commit/cb5643d)) - - - - - -# [0.3.0-beta.0](https://github.com/pedronauck/docz/compare/v0.2.11...v0.3.0-beta.0) (2018-06-25) - - -### Bug Fixes - -* **docz-theme-default:** change background based on toggle ([2241f8b](https://github.com/pedronauck/docz/commit/2241f8b)) -* **docz-theme-default:** change chevronDown to burguer icon with animation ([8649938](https://github.com/pedronauck/docz/commit/8649938)) -* **docz-theme-default:** include breakpoints as const ([43490bb](https://github.com/pedronauck/docz/commit/43490bb)) -* **docz-theme-default:** lint code ([7c97a41](https://github.com/pedronauck/docz/commit/7c97a41)) -* **docz-theme-default:** made container responsive ([ddf078d](https://github.com/pedronauck/docz/commit/ddf078d)) -* **docz-theme-default:** responsive position for wrapper ([bb56449](https://github.com/pedronauck/docz/commit/bb56449)) -* **docz-theme-default:** sidebar toggle for links and sub-links ([9cd6321](https://github.com/pedronauck/docz/commit/9cd6321)) - - -### Features - -* **docz-theme-default:** add dark mode 🌚 ([#81](https://github.com/pedronauck/docz/issues/81)) ([964cf4d](https://github.com/pedronauck/docz/commit/964cf4d)) -* **docz-theme-default:** include breakpoints reactive on sidebar ([d3911b4](https://github.com/pedronauck/docz/commit/d3911b4)) -* **docz-theme-default:** include media queries facepaint ([5f78734](https://github.com/pedronauck/docz/commit/5f78734)) -* **docz-theme-default:** include toggle to sidebar ([a94e517](https://github.com/pedronauck/docz/commit/a94e517)) -* **docz-theme-default:** include ToggleBackground ([cac7ecd](https://github.com/pedronauck/docz/commit/cac7ecd)) -* **docz-theme-default:** table responsive ([0580a77](https://github.com/pedronauck/docz/commit/0580a77)) - - - - - -## [0.2.11](https://github.com/pedronauck/docz/compare/v0.2.10...v0.2.11) (2018-06-22) - - -### Bug Fixes - -* **docz-theme-default:** use webfontloader instead of css import ([5973969](https://github.com/pedronauck/docz/commit/5973969)) - - - - - -## [0.2.10](https://github.com/pedronauck/docz/compare/v0.2.9...v0.2.10) (2018-06-21) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.2.9](https://github.com/pedronauck/docz/compare/v0.2.8...v0.2.9) (2018-06-21) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.2.8](https://github.com/pedronauck/docz/compare/v0.2.7...v0.2.8) (2018-06-21) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.2.7](https://github.com/pedronauck/docz/compare/v0.2.6...v0.2.7) (2018-06-20) - - -### Bug Fixes - -* **docz-theme-default:** improve spacing on jsx attributes ([#54](https://github.com/pedronauck/docz/issues/54)) ([49fe0b8](https://github.com/pedronauck/docz/commit/49fe0b8)) - - - - - -## [0.2.6](https://github.com/pedronauck/docz/compare/v0.2.5...v0.2.6) (2018-06-17) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.2.5](https://github.com/pedronauck/docz/compare/v0.2.4...v0.2.5) (2018-06-15) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.2.4](https://github.com/pedronauck/docz/compare/v0.2.3...v0.2.4) (2018-06-13) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.2.3](https://github.com/pedronauck/docz/compare/v0.2.2...v0.2.3) (2018-06-13) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.2.2](https://github.com/pedronauck/docz/compare/v0.2.1...v0.2.2) (2018-06-12) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.2.1](https://github.com/pedronauck/docz/compare/v0.2.0...v0.2.1) (2018-06-12) - - - - -**Note:** Version bump only for package docz-theme-default - - -# [0.2.0](https://github.com/pedronauck/docz/compare/v0.2.0-beta.2...v0.2.0) (2018-06-11) - - - - -**Note:** Version bump only for package docz-theme-default - - -# [0.2.0-beta.2](https://github.com/doczjs/docz/compare/v0.2.0-beta.1...v0.2.0-beta.2) (2018-06-10) - - -### Bug Fixes - -* **docz-core:** autolink headings ([0b8369d](https://github.com/doczjs/docz/commit/0b8369d)) - - - - - -# [0.2.0-beta.1](https://github.com/doczjs/docz/compare/v0.2.0-beta.0...v0.2.0-beta.1) (2018-06-10) - - - - -**Note:** Version bump only for package docz-theme-default - - -# [0.2.0-beta.0](https://github.com/doczjs/docz/compare/v0.1.2-beta.6...v0.2.0-beta.0) (2018-06-10) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.1.2-beta.6](https://github.com/doczjs/docz/compare/v0.1.2-beta.5...v0.1.2-beta.6) (2018-06-09) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.1.2-beta.5](https://github.com/doczjs/docz/compare/v0.1.2-beta.4...v0.1.2-beta.5) (2018-06-09) - - -### Bug Fixes - -* **docz-theme-default:** loading component height ([b198075](https://github.com/doczjs/docz/commit/b198075)) - - - - - -## [0.1.2-beta.4](https://github.com/doczjs/docz/compare/v0.1.2-beta.3...v0.1.2-beta.4) (2018-06-09) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.1.2-beta.3](https://github.com/doczjs/docz/compare/v0.1.2-beta.2...v0.1.2-beta.3) (2018-06-09) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.1.2-beta.2](https://github.com/doczjs/docz/compare/v0.1.2-beta.1...v0.1.2-beta.2) (2018-06-09) - - -### Features - -* **docz-theme-default:** add custom not found component ([1773fe1](https://github.com/doczjs/docz/commit/1773fe1)) - - - - - -## [0.1.2-beta.1](https://github.com/doczjs/docz/compare/v0.1.2-beta.0...v0.1.2-beta.1) (2018-06-09) - - -### Bug Fixes - -* **docz-theme-default:** emotion typings ([270e38c](https://github.com/doczjs/docz/commit/270e38c)) - - -### Features - -* **docz-theme-default:** add Loading component for DocPreview ([97859e2](https://github.com/doczjs/docz/commit/97859e2)) - - - - - -## [0.1.2-beta.0](https://github.com/doczjs/docz/compare/v0.1.1...v0.1.2-beta.0) (2018-06-02) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.1.1-beta.6](https://github.com/doczjs/docz/compare/v0.1.1-beta.5...v0.1.1-beta.6) (2018-06-01) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.1.1-beta.5](https://github.com/doczjs/docz/compare/v0.1.1-beta.4...v0.1.1-beta.5) (2018-06-01) - - -### Bug Fixes - -* **docz:** link component ([7626982](https://github.com/doczjs/docz/commit/7626982)) - - - - - -## [0.1.1-beta.4](https://github.com/doczjs/docz/compare/v0.1.1-beta.3...v0.1.1-beta.4) (2018-05-29) - - -### Bug Fixes - -* **docz:** add isActive to Link components ([9cecc08](https://github.com/doczjs/docz/commit/9cecc08)) - - - - - -## [0.1.1-beta.3](https://github.com/doczjs/docz/compare/v0.1.1-beta.2...v0.1.1-beta.3) (2018-05-29) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.1.1-beta.2](https://github.com/doczjs/docz/compare/v0.1.1-beta.0...v0.1.1-beta.2) (2018-05-29) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.1.1-beta.1](https://github.com/doczjs/docz/compare/v0.1.1-beta.0...v0.1.1-beta.1) (2018-05-29) - - - - -**Note:** Version bump only for package docz-theme-default - - -## [0.1.1-beta.0](https://github.com/doczjs/docz/compare/v0.1.0...v0.1.1-beta.0) (2018-05-29) - - - - -**Note:** Version bump only for package docz-theme-default - - -# 0.1.0 (2018-05-29) - - -### Features - -* add component props parse feature ([987627d](https://github.com/doczjs/docz/commit/987627d)) -* add support for highlight code sections ([19bf7ea](https://github.com/doczjs/docz/commit/19bf7ea)) -* improve docz theme to use theme config ([9207ed2](https://github.com/doczjs/docz/commit/9207ed2)) -* parse doc class to object ([e7f9cf0](https://github.com/doczjs/docz/commit/e7f9cf0)) -* refac to use mdx ([04b59e5](https://github.com/doczjs/docz/commit/04b59e5)) -* use custom render method on section ([8ccf99c](https://github.com/doczjs/docz/commit/8ccf99c)) -* **docz:** add doc page wrapper as component ([1150373](https://github.com/doczjs/docz/commit/1150373)) -* **docz:** add groups feature ([9652b30](https://github.com/doczjs/docz/commit/9652b30)) -* **docz-theme-default:** add highlight code on theme ([1126e67](https://github.com/doczjs/docz/commit/1126e67)) -* **docz-theme-default:** add logo option ([435da9b](https://github.com/doczjs/docz/commit/435da9b)) -* **docz-theme-default:** add sidebar footer ([ffc4b18](https://github.com/doczjs/docz/commit/ffc4b18)) -* **docz-theme-default:** add tooltip on props ([dc3c4cd](https://github.com/doczjs/docz/commit/dc3c4cd)) diff --git a/core/docz-theme-default/LICENSE.md b/core/docz-theme-default/LICENSE.md deleted file mode 100644 index 82b4b7ddf..000000000 --- a/core/docz-theme-default/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Pedro Nauck - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/core/docz-theme-default/README.md b/core/docz-theme-default/README.md deleted file mode 100644 index eb3022e5e..000000000 --- a/core/docz-theme-default/README.md +++ /dev/null @@ -1,214 +0,0 @@ -# docz-theme-default - -Default theme for [docz](https://docz.site) - -![](https://cdn-std.dprcdn.net/files/acc_649651/xZt5zr) - -## Dark Mode - -To change your project to use a darker version of default theme, just set your `doczrc.js` like that: - -```js -// doczrc.js -export default { - themeConfig: { - mode: 'dark', - }, -} -``` - -## Changing your logo - -Use your own logo by changing the `logo` property: - -```js -// doczrc.js -export default { - themeConfig: { - logo: { - src: '/path/of/my/logo', - width: 150, - }, - }, -} -``` - -## Changing playground theme - -If you want to customize `` theme, you just need to import the css of your [codemirror theme](https://codemirror.net/theme/) and change the `codemirrorTheme` to use your theme. One of ways to import a new css without pain, is add new link on `htmlContext`: - -```js -// doczrc.js -export default { - htmlContext: { - head: { - links: [ - { - rel: 'stylesheet', - href: 'https://codemirror.net/theme/dracula.css', - }, - ], - }, - }, - themeConfig: { - codemirrorTheme: 'dracula', - }, -} -``` - -## Default `themeConfig` - -As explained on [Customizing](https://www.docz.site/introduction/customizing) section of docz website, you can customize the theme that you're using by changing `themeConfig` property on your `doczrc.js`. So, each theme has your own specific configuration and for this theme, is that the default config and what you can change: - -```js -const config = { - /** - * Mode - */ - mode: 'light', // you can use: 'dark' or 'light' - /** - * Show/hide Playground editor by default - */ - showPlaygroundEditor: true, - /** - * Set the numbers of max lines before scroll editor - */ - linesToScrollEditor: 14 - /** - * Customize codemirror theme - */ - codemirrorTheme: 'docz-light', - /** - * Logo - */ - logo: { - src: null, - width: null, - }, - /** - * Radius - */ - radii: '4px', - /** - * Colors (depends on select mode) - */ - colors: { - white: '#FFFFFF', - grayExtraLight: '#EEF1F5', - grayLight: '#CED4DE', - gray: '#7D899C', - grayDark: '#2D3747', - grayExtraDark: '#1D2330', - dark: '#13161F', - blue: '#0B5FFF', - skyBlue: '#1FB6FF', - /** properties bellow depends on mode select */ - primary: colors.blue, - text: colors.grayDark, - link: colors.blue, - footerText: colors.grayDark, - sidebarBg: colors.grayExtraLight, - sidebarText: colors.dark, - sidebarHighlight: null, - sidebarBorder: colors.grayLight, - background: colors.white, - border: colors.grayLight, - theadColor: colors.gray, - theadBg: colors.grayExtraLight, - tableColor: colors.dark, - codeBg: lighten(0.02, colors.grayExtraLight), - codeColor: colors.gray, - preBg: colors.grayExtraLight, - blockquoteBg: colors.grayExtraLight, - blockquoteBorder: colors.grayLight, - blockquoteColor: colors.gray, - }, - /** - * Styles - */ - styles: { - body: css` - font-family: ${get('fonts.ui')}; - font-size: 16px; - line-height: 1.6; - `, - h1: css` - margin: 40px 0 20px; - font-family: ${get('fonts.display')}; - font-size: 48px; - font-weight: 500; - letter-spacing: -0.02em; - `, - h2: css` - margin: 30px 0 20px; - line-height: 1.4em; - font-family: ${get('fonts.display')}; - font-weight: 500; - font-size: 28px; - letter-spacing: -0.02em; - `, - h3: css` - margin: 25px 0 10px; - font-size: 20px; - font-weight: 400; - `, - h4: css` - margin: 25px 0 10px; - font-size: 16px; - font-weight: 400; - `, - h5: css` - margin: 20px 0 10px; - font-size: 16px; - font-weight: 400; - `, - h6: css` - margin: 20px 0 10px; - font-size: 16px; - font-weight: 400; - text-transform: uppercase; - `, - ol: css` - padding: 0; - margin: 10px 0 10px; - `, - ul: css` - padding: 0; - margin: 10px 0 10px; - `, - playground: css` - padding: 40px; - `, - code: css` - margin: 0 3px; - border-radius: 3px; - font-family: ${get('fonts.mono')}; - padding: 2px 5px; - font-size: 0.8em; - border: '1px solid rgba(0, 0, 0, 0.02)'; - `, - pre: css` - font-family: ${get('fonts.mono')}; - font-size: 14px; - line-height: 1.8; - `, - paragraph: css` - margin: 10px 0 20px 0; - `, - table: css` - overflow-y: hidden; - width: 100%; - font-family: ${get('fonts.mono')}; - font-size: 14px; - overflow-x: initial; - display: block; - `, - blockquote: css` - margin: 25px 0; - padding: 20px; - font-style: italic; - font-size: 16px; - `, - } -} -``` diff --git a/core/docz-theme-default/package.json b/core/docz-theme-default/package.json deleted file mode 100644 index a93af6d4e..000000000 --- a/core/docz-theme-default/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "docz-theme-default", - "version": "1.2.0", - "description": "The default theme of docz", - "license": "MIT", - "main": "dist/index.js", - "module": "dist/index.esm.js", - "types": "dist/index.d.ts", - "files": [ - "dist/", - "package.json", - "README.md" - ], - "scripts": { - "dev": "cross-env NODE_ENV=development yarn build -w", - "build": "cross-env NODE_ENV=production rollup -c", - "fix": "yarn lint --fix", - "lint": "eslint . --ext .ts,.tsx", - "precommit": "lint-staged" - }, - "dependencies": { - "@emotion/core": "^10.0.10", - "@emotion/styled": "^10.0.12", - "@loadable/component": "^5.10.1", - "@mdx-js/react": "^1.0.20", - "@reach/router": "^1.2.1", - "copy-text-to-clipboard": "^2.1.0", - "docz": "^1.2.0", - "emotion-theming": "^10.0.10", - "hotkeys-js": "^3.6.11", - "lodash": "^4.17.11", - "prop-types": "15.7.2", - "re-resizable": "^5.0.1", - "react": "^16.8.6", - "react-dom": "^16.8.6", - "react-feather": "^1.1.6", - "react-live": "2.1.2", - "theme-ui": "^0.1.5", - "theme-ui-typography": "^0.1.3", - "typescript": "3.5.2", - "typography-theme-moraga": "^0.16.19" - }, - "peerDependencies": { - "react": "^16.8.0", - "react-dom": "^16.8.0" - }, - "devDependencies": { - "@babel/plugin-syntax-dynamic-import": "^7.2.0", - "@types/lodash": "^4.14.134", - "babel-plugin-emotion": "^10.0.13", - "babel-plugin-module-resolver": "^3.2.0", - "docz-rollup": "^1.2.0" - } -} diff --git a/core/docz-theme-default/rollup.config.js b/core/docz-theme-default/rollup.config.js deleted file mode 100644 index fa9e13f09..000000000 --- a/core/docz-theme-default/rollup.config.js +++ /dev/null @@ -1,8 +0,0 @@ -import { config } from 'docz-rollup' - -export default config({ - input: './src/index.tsx', - output: { - exports: 'named', - }, -}) diff --git a/core/docz-theme-default/src/types.d.ts b/core/docz-theme-default/src/types.d.ts deleted file mode 100644 index 71f1c13ce..000000000 --- a/core/docz-theme-default/src/types.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -declare module 'theme-ui' -declare module 'theme-ui-typography' -declare module 'typography-theme-moraga' -declare module 'react-feather/dist/icons/edit-2' -declare module 'react-feather/dist/icons/sun' -declare module 'react-feather/dist/icons/menu' -declare module 'react-feather/dist/icons/github' diff --git a/core/docz-theme-default/tsconfig.json b/core/docz-theme-default/tsconfig.json deleted file mode 100644 index b37f1a197..000000000 --- a/core/docz-theme-default/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "target": "es6", - "module": "esnext", - "jsxFactory": "jsx", - "declaration": true, - "sourceMap": false, - "baseUrl": "src", - "rootDir": "src", - "outDir": "dist", - "typeRoots": ["../../node_modules/@types", "node_modules/@types"], - "paths": { - "~styles": ["styles"], - "~styles/*": ["styles/*"], - "~theme": ["theme"], - "~theme/*": ["theme/*"], - "~utils/*": ["utils/*"] - } - }, - "include": ["src/**/*", "src/types"], - "exclude": ["node_modules/**"] -} diff --git a/core/gatsby-theme-docz/gatsby-config.js b/core/gatsby-theme-docz/gatsby-config.js index 25fa963f6..a26ac8954 100644 --- a/core/gatsby-theme-docz/gatsby-config.js +++ b/core/gatsby-theme-docz/gatsby-config.js @@ -1,5 +1,4 @@ const path = require('path') - const { getDoczConfig } = require('./src/utils/parseConfig') const getMdPlugins = () => { @@ -53,7 +52,7 @@ module.exports = opts => { ? config.hastPlugins.concat(hastPlugins) : hastPlugins, defaultLayouts: { - default: path.join(paths.app, 'components/Layout.js'), + default: path.join(__dirname, 'src/base/Layout.js'), }, }, }, @@ -64,7 +63,18 @@ module.exports = opts => { resolve: 'gatsby-plugin-root-import', }, { - resolve: 'gatsby-plugin-styled-components', + resolve: 'gatsby-plugin-emotion', + }, + { + resolve: 'gatsby-plugin-alias-imports', + options: { + alias: { + '@docz/components': path.resolve(__dirname, 'src/docz/components'), + '@docz/styles': path.resolve(__dirname, 'src/docz/styles'), + '@docz/theme': path.resolve(__dirname, 'src/docz/theme'), + '@docz/utils': path.resolve(__dirname, 'src/docz/utils'), + }, + }, }, { resolve: 'gatsby-plugin-compile-es6-packages', diff --git a/core/gatsby-theme-docz/gatsby-node.js b/core/gatsby-theme-docz/gatsby-node.js index fe07be32f..c5040de8a 100644 --- a/core/gatsby-theme-docz/gatsby-node.js +++ b/core/gatsby-theme-docz/gatsby-node.js @@ -1,4 +1,3 @@ exports.createPages = require('./src/node/createPages') exports.onCreateBabelConfig = require('./src/node/onCreateBabelConfig') -exports.onPreInit = require('./src/node/onPreInit') exports.sourceNodes = require('./src/node/sourceNodes') diff --git a/core/gatsby-theme-docz/package.json b/core/gatsby-theme-docz/package.json index 5466e88e2..732d01b05 100644 --- a/core/gatsby-theme-docz/package.json +++ b/core/gatsby-theme-docz/package.json @@ -16,33 +16,48 @@ "precommit": "lint-staged" }, "dependencies": { + "@emotion/core": "^10.0.10", + "@emotion/styled": "^10.0.12", + "@loadable/component": "^5.10.1", "@mdx-js/mdx": "^1.0.20", "@mdx-js/react": "^1.0.20", + "@reach/router": "^1.2.1", "babel-plugin-export-metadata": "^1.2.0", "change-case": "^3.1.0", "chokidar": "^3.0.1", + "copy-text-to-clipboard": "^2.1.0", "docz": "^1.2.0", "docz-core": "^1.2.0", "docz-theme-default": "^1.2.0", "docz-utils": "^1.2.0", + "emotion-theming": "^10.0.10", "fs-extra": "^8.0.1", "gatsby": "^2.9.4", "gatsby-mdx": "^0.6.3", + "gatsby-plugin-alias-imports": "^1.0.5", "gatsby-plugin-compile-es6-packages": "^1.1.0", + "gatsby-plugin-emotion": "^4.0.7", "gatsby-plugin-manifest": "^2.1.1", "gatsby-plugin-react-helmet": "^3.0.12", "gatsby-plugin-root-import": "^2.0.5", - "gatsby-plugin-styled-components": "^3.0.7", + "hotkeys-js": "^3.6.11", "lodash": "^4.17.11", "prop-types": "^15.7.2", + "re-resizable": "^5.0.1", "react": "^16.8.6", "react-dom": "^16.8.6", + "react-feather": "^1.1.6", "react-helmet": "^5.2.1", + "react-live": "2.1.2", "rehype-docz": "^1.2.0", "rehype-slug": "^2.0.3", "remark-docz": "^1.2.0", "remark-frontmatter": "^1.3.2", "styled-components": "^4.3.1", + "theme-ui": "^0.1.5", + "theme-ui-typography": "^0.1.3", + "typescript": "3.5.2", + "typography-theme-moraga": "^0.16.19", "yargs": "^13.2.4" }, "devDependencies": { diff --git a/core/gatsby-theme-docz/templates/Layout.tpl.js b/core/gatsby-theme-docz/src/base/Layout.js similarity index 82% rename from core/gatsby-theme-docz/templates/Layout.tpl.js rename to core/gatsby-theme-docz/src/base/Layout.js index f3fe7b748..3c4b8ae10 100644 --- a/core/gatsby-theme-docz/templates/Layout.tpl.js +++ b/core/gatsby-theme-docz/src/base/Layout.js @@ -4,11 +4,9 @@ import { useStaticQuery, graphql } from 'gatsby' import { AsyncRoute, useComponents } from 'docz' import { MDXProvider } from '@mdx-js/react' -import Theme from '<%- theme %>' -<% if (wrapper) {%>import Wrapper from '<%- wrapper %>'<%}%> - import { Link } from './Link' import SEO from './Seo' +import Theme from '../docz' const query = graphql` query Layout { @@ -46,12 +44,13 @@ const Layout = ({ children, ...defaultProps }) => { const { pageContext: ctx } = defaultProps const data = useStaticQuery(query) const db = parseDatabase(data) - const entry = db.entries && db.entries.find(entry => entry.filepath === ctx.filepath) + const entry = + db.entries && db.entries.find(entry => entry.filepath === ctx.filepath) return ( {entry && } - wrapper={Wrapper}<%}%>> + {children} diff --git a/core/gatsby-theme-docz/src/components/Link.js b/core/gatsby-theme-docz/src/base/Link.js similarity index 100% rename from core/gatsby-theme-docz/src/components/Link.js rename to core/gatsby-theme-docz/src/base/Link.js diff --git a/core/gatsby-theme-docz/src/components/Seo.js b/core/gatsby-theme-docz/src/base/Seo.js similarity index 100% rename from core/gatsby-theme-docz/src/components/Seo.js rename to core/gatsby-theme-docz/src/base/Seo.js diff --git a/core/gatsby-theme-docz/src/components/Layout.js b/core/gatsby-theme-docz/src/components/Layout.js deleted file mode 100644 index 140c14475..000000000 --- a/core/gatsby-theme-docz/src/components/Layout.js +++ /dev/null @@ -1,72 +0,0 @@ -import React, { Fragment } from 'react' -import PropTypes from 'prop-types' -import Theme from 'docz-theme-default' -import { StaticQuery, graphql } from 'gatsby' -import { AsyncRoute, useComponents } from 'docz' -import { MDXProvider } from '@mdx-js/react' - -import { Link } from './Link' -import SEO from './Seo' - -const query = graphql` - query Layout { - doczDb { - id - db - } - } -` - -const Route = ({ children, ...props }) => { - const components = useComponents() - const NotFound = components.NotFound - if (!props.entry) return - - return ( - - {children}} - /> - - ) -} - -const parseDatabase = data => { - try { - return JSON.parse(data.doczDb.db) - } catch (err) { - return {} - } -} - -const Layout = ({ children, ...defaultProps }) => { - const { pageContext: ctx } = defaultProps - return ( - { - const db = parseDatabase(data) - const entry = db.entries.find(entry => entry.filepath === ctx.filepath) - - return ( - - {entry && } - - - {children} - - - - ) - }} - /> - ) -} - -Layout.propTypes = { - color: PropTypes.string, - children: PropTypes.node.isRequired, -} - -export default Layout diff --git a/core/docz-theme-default/src/components/shared/Header/index.tsx b/core/gatsby-theme-docz/src/docz/components/shared/Header/index.js similarity index 81% rename from core/docz-theme-default/src/components/shared/Header/index.tsx rename to core/gatsby-theme-docz/src/docz/components/shared/Header/index.js index fb9f1cb93..989ed91c6 100644 --- a/core/docz-theme-default/src/components/shared/Header/index.tsx +++ b/core/gatsby-theme-docz/src/docz/components/shared/Header/index.js @@ -1,27 +1,24 @@ /** @jsx jsx */ -import { SFC } from 'react' import { jsx, Box, Flex, Container, useColorMode } from 'theme-ui' -import { useConfig, PageProps } from 'docz' -import Edit from 'react-feather/dist/icons/edit-2' -import Sun from 'react-feather/dist/icons/sun' -import Menu from 'react-feather/dist/icons/menu' -import Github from 'react-feather/dist/icons/github' +import { useConfig } from 'docz' import styled from '@emotion/styled' -import { themeProp } from '~utils/theme' +import { themeProp } from '@docz/utils/theme' +import { Edit, Sun, Menu, Github } from '@docz/components/shared/Icons' + import * as styles from './styles' const Wrapper = styled(Box)` border-bottom: 1px solid ${themeProp('colors.sidebar.border')}; ` -export const Header: SFC = ({ +export const Header = ({ doc: { value: { link, edit = true }, }, }) => { const config = useConfig() - const Link: any = config.linkComponent + const Link = config.linkComponent const [colorMode, setColorMode] = useColorMode() const toggleColorMode = () => { diff --git a/core/docz-theme-default/src/components/shared/Header/styles.ts b/core/gatsby-theme-docz/src/docz/components/shared/Header/styles.js similarity index 95% rename from core/docz-theme-default/src/components/shared/Header/styles.ts rename to core/gatsby-theme-docz/src/docz/components/shared/Header/styles.js index bb861638b..372196338 100644 --- a/core/docz-theme-default/src/components/shared/Header/styles.ts +++ b/core/gatsby-theme-docz/src/docz/components/shared/Header/styles.js @@ -1,5 +1,5 @@ import { css } from 'theme-ui' -import * as mixins from '~utils/mixins' +import * as mixins from '@docz/utils/mixins' export const wrapper = css({ bg: 'sidebar.bg', diff --git a/core/gatsby-theme-docz/src/docz/components/shared/Icons/index.js b/core/gatsby-theme-docz/src/docz/components/shared/Icons/index.js new file mode 100644 index 000000000..f4f4cadf3 --- /dev/null +++ b/core/gatsby-theme-docz/src/docz/components/shared/Icons/index.js @@ -0,0 +1,4 @@ +export { default as Edit } from 'react-feather/dist/icons/edit-2' +export { default as Sun } from 'react-feather/dist/icons/sun' +export { default as Menu } from 'react-feather/dist/icons/menu' +export { default as Github } from 'react-feather/dist/icons/github' diff --git a/core/docz-theme-default/src/components/ui/Page/index.tsx b/core/gatsby-theme-docz/src/docz/components/ui/Page/index.js similarity index 52% rename from core/docz-theme-default/src/components/ui/Page/index.tsx rename to core/gatsby-theme-docz/src/docz/components/ui/Page/index.js index b7f210826..440b43619 100644 --- a/core/docz-theme-default/src/components/ui/Page/index.tsx +++ b/core/gatsby-theme-docz/src/docz/components/ui/Page/index.js @@ -1,11 +1,8 @@ /** @jsx jsx */ import { jsx, Main, Container } from 'theme-ui' -import { SFC } from 'react' -import { PageProps } from 'docz' +import { Header } from '@docz/components/shared/Header' -import { Header } from 'components/shared/Header' - -export const Page: SFC = props => { +export const Page = props => { return (
diff --git a/core/docz-theme-default/src/components/ui/index.tsx b/core/gatsby-theme-docz/src/docz/components/ui/index.js similarity index 100% rename from core/docz-theme-default/src/components/ui/index.tsx rename to core/gatsby-theme-docz/src/docz/components/ui/index.js diff --git a/core/docz-theme-default/src/index.tsx b/core/gatsby-theme-docz/src/docz/index.js similarity index 67% rename from core/docz-theme-default/src/index.tsx rename to core/gatsby-theme-docz/src/docz/index.js index b4a23c530..be4d5f91e 100644 --- a/core/docz-theme-default/src/index.tsx +++ b/core/gatsby-theme-docz/src/docz/index.js @@ -1,14 +1,13 @@ /** @jsx jsx */ import { jsx } from 'theme-ui' -import { SFC } from 'react' import { theme as createTheme, ComponentsProvider } from 'docz' import { Styled } from 'theme-ui' -import theme from '~theme' -import { Layout } from './Layout' -import { componentsMap } from './components/ui' +import { componentsMap } from '@docz/components/ui' +import theme from '@docz/theme' +import { Layout } from './layout' -const Theme: SFC = ({ children }) => ( +const Theme = ({ children }) => ( {children} diff --git a/core/docz-theme-default/src/layout.tsx b/core/gatsby-theme-docz/src/docz/layout.js similarity index 84% rename from core/docz-theme-default/src/layout.tsx rename to core/gatsby-theme-docz/src/docz/layout.js index dafd41a86..6f325e680 100644 --- a/core/docz-theme-default/src/layout.tsx +++ b/core/gatsby-theme-docz/src/docz/layout.js @@ -4,9 +4,9 @@ import { jsx, css, Layout as BaseLayout } from 'theme-ui' import { ThemeProvider } from 'theme-ui' import { useConfig } from 'docz' -import global from '~styles/global' +import global from '@docz/styles/global' -export const Layout: React.SFC = props => { +export const Layout = props => { const config = useConfig() return ( diff --git a/core/docz-theme-default/src/styles/global.ts b/core/gatsby-theme-docz/src/docz/styles/global.js similarity index 100% rename from core/docz-theme-default/src/styles/global.ts rename to core/gatsby-theme-docz/src/docz/styles/global.js diff --git a/core/docz-theme-default/src/styles/index.ts b/core/gatsby-theme-docz/src/docz/styles/index.js similarity index 100% rename from core/docz-theme-default/src/styles/index.ts rename to core/gatsby-theme-docz/src/docz/styles/index.js diff --git a/core/docz-theme-default/src/theme/colors.ts b/core/gatsby-theme-docz/src/docz/theme/colors.js similarity index 100% rename from core/docz-theme-default/src/theme/colors.ts rename to core/gatsby-theme-docz/src/docz/theme/colors.js diff --git a/core/docz-theme-default/src/theme/index.ts b/core/gatsby-theme-docz/src/docz/theme/index.js similarity index 100% rename from core/docz-theme-default/src/theme/index.ts rename to core/gatsby-theme-docz/src/docz/theme/index.js diff --git a/core/docz-theme-default/src/theme/modes.ts b/core/gatsby-theme-docz/src/docz/theme/modes.js similarity index 100% rename from core/docz-theme-default/src/theme/modes.ts rename to core/gatsby-theme-docz/src/docz/theme/modes.js diff --git a/core/docz-theme-default/src/utils/mixins.ts b/core/gatsby-theme-docz/src/docz/utils/mixins.js similarity index 100% rename from core/docz-theme-default/src/utils/mixins.ts rename to core/gatsby-theme-docz/src/docz/utils/mixins.js diff --git a/core/docz-theme-default/src/utils/theme.ts b/core/gatsby-theme-docz/src/docz/utils/theme.js similarity index 54% rename from core/docz-theme-default/src/utils/theme.ts rename to core/gatsby-theme-docz/src/docz/utils/theme.js index 98c139843..041360ee3 100644 --- a/core/docz-theme-default/src/utils/theme.ts +++ b/core/gatsby-theme-docz/src/docz/utils/theme.js @@ -1,5 +1,5 @@ import { get } from 'lodash/fp' -export const themeProp = (str: string) => (props: any) => { +export const themeProp = str => props => { return get(`theme.${str}`, props) } diff --git a/core/gatsby-theme-docz/src/node/onPreInit.js b/core/gatsby-theme-docz/src/node/onPreInit.js deleted file mode 100644 index d6406ec96..000000000 --- a/core/gatsby-theme-docz/src/node/onPreInit.js +++ /dev/null @@ -1,35 +0,0 @@ -const fs = require('fs-extra') -const path = require('path') -const { touch, compiled } = require('docz-utils') -const { parseConfig } = require('../utils/parseConfig') - -const fromTemplates = filepath => - path.resolve(__dirname, '../../templates', filepath) - -const mountComponentPath = ({ paths }) => component => { - return path.resolve(paths.app, 'components', component || '') -} - -const touchTemplateWithPaths = config => async (filepath, opts) => { - const componentPath = mountComponentPath(config) - const dest = componentPath(filepath.replace('.tpl', '')) - const template = await compiled(fromTemplates(filepath), { minimize: false }) - const raw = template(opts) - await touch(dest, raw) -} - -module.exports = async (_, opts) => { - const config = await parseConfig(opts) - const componentPath = mountComponentPath(config) - const touchTemplate = touchTemplateWithPaths(config) - - await fs.ensureDir(componentPath()) - await fs.copy(fromTemplates('Seo.tpl.js'), componentPath('Seo.js')) - await fs.copy(fromTemplates('Link.tpl.js'), componentPath('Link.js')) - await touchTemplate('Layout.tpl.js', { - theme: config.theme, - wrapper: config.wrapper, - }) - - return Promise.resolve() -} diff --git a/core/gatsby-theme-docz/templates/Link.tpl.js b/core/gatsby-theme-docz/templates/Link.tpl.js deleted file mode 100644 index ba1b4e7a9..000000000 --- a/core/gatsby-theme-docz/templates/Link.tpl.js +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react' -import { Link as BaseLink } from 'gatsby' - -export const Link = props => ( - - isCurrent ? { className: `${props.className} active` } : null - } - /> -) diff --git a/core/gatsby-theme-docz/templates/Seo.tpl.js b/core/gatsby-theme-docz/templates/Seo.tpl.js deleted file mode 100644 index b97a5b5ac..000000000 --- a/core/gatsby-theme-docz/templates/Seo.tpl.js +++ /dev/null @@ -1,88 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' -import Helmet from 'react-helmet' -import { StaticQuery, graphql } from 'gatsby' - -function SEO({ description, lang, meta, keywords, title }) { - return ( - { - const db = JSON.parse(data.doczDb.db) - const metaDescription = description || db.config.title - - return ( - 0 - ? { - name: `keywords`, - content: keywords.join(`, `), - } - : [] - ) - .concat(meta)} - /> - ) - }} - /> - ) -} - -SEO.defaultProps = { - lang: `en`, - meta: [], - keywords: [], -} - -SEO.propTypes = { - description: PropTypes.string, - lang: PropTypes.string, - meta: PropTypes.array, - keywords: PropTypes.arrayOf(PropTypes.string), - title: PropTypes.string.isRequired, -} - -export default SEO - -const detailsQuery = graphql` - query DefaultSEOQuery { - doczDb { - id - db - } - } -` diff --git a/yarn.lock b/yarn.lock index 54cf4d919..c82b25c4c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -703,7 +703,7 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-jsx" "^7.2.0" -"@babel/plugin-transform-react-jsx@^7.0.0": +"@babel/plugin-transform-react-jsx@^7.0.0", "@babel/plugin-transform-react-jsx@^7.1.6": version "7.3.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.3.0.tgz#f2cab99026631c767e2745a5368b331cfe8f5290" integrity sha512-a/+aRb7R06WcKvQLOu4/TpjKOdvVEKRLWFpKcNuHhiREPgGRB4TQJxq07+EZLS8LFVYpfq1a5lDUnuMdcCpBKg== @@ -1030,7 +1030,7 @@ dependencies: regenerator-runtime "^0.13.2" -"@babel/runtime@^7.4.3": +"@babel/runtime@^7.4.3", "@babel/runtime@^7.4.5": version "7.4.5" resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.5.tgz#582bb531f5f9dc67d2fcb682979894f75e253f12" integrity sha512-TuI4qpWZP6lGOGIuGWtp9sPluqYICmbk8T/1vpSysqJxRPkudh/ofFWyqdcMsDf2s7KvDL4/YHgKyvcS3g9CJQ== @@ -1232,6 +1232,23 @@ dependencies: find-up "^2.1.0" +"@emotion/babel-plugin-jsx-pragmatic@^0.1.2": + version "0.1.2" + resolved "https://registry.npmjs.org/@emotion/babel-plugin-jsx-pragmatic/-/babel-plugin-jsx-pragmatic-0.1.2.tgz#bb98bbef8effe83418307563c34e784deae57a1a" + integrity sha512-BapTL0I1flAB+qrfOmltOdLORBtz8dvtKjcHZmYYWdiGsn+2bZxaZDra+S0jDLd1tnhvPvhHoGv3140WR8PAow== + dependencies: + "@babel/plugin-syntax-jsx" "^7.2.0" + +"@emotion/babel-preset-css-prop@^10.0.5": + version "10.0.9" + resolved "https://registry.npmjs.org/@emotion/babel-preset-css-prop/-/babel-preset-css-prop-10.0.9.tgz#70386bd88fe4d8896e1b9729364daf3a6051f726" + integrity sha512-fETOWFEe734RlJZTuq6+NeHTzl+Kge4yRm3yrQC+Y2I+KxZjYiU5XUPdbylr0EATbkSzFXgVGKppciZfA5j1mw== + dependencies: + "@babel/plugin-transform-react-jsx" "^7.1.6" + "@emotion/babel-plugin-jsx-pragmatic" "^0.1.2" + babel-plugin-emotion "^10.0.9" + object-assign "^4.1.1" + "@emotion/cache@^10.0.9": version "10.0.9" resolved "https://registry.npmjs.org/@emotion/cache/-/cache-10.0.9.tgz#e0c7b7a289f7530edcfad4dcf3858bd2e5700a6f" @@ -2261,7 +2278,7 @@ npmlog "^4.1.2" write-file-atomic "^2.3.0" -"@loadable/component@^5.10.1": +"@loadable/component@^5.10.1", "@loadable/component@^5.9.0": version "5.10.1" resolved "https://registry.npmjs.org/@loadable/component/-/component-5.10.1.tgz#09613e46d409ffacb3b4403658ed90adbc01ba24" integrity sha512-nYb38UbPWCWB9R8US4Za0JzgjS1QaY13STJhU7ZUsfO2qG3k5huppVF92eX2iauhfpdrRkCDQqi+Fg/US4FXIg== @@ -2431,6 +2448,11 @@ dependencies: any-observable "^0.3.0" +"@sheerun/mutationobserver-shim@^0.3.2": + version "0.3.2" + resolved "https://registry.npmjs.org/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.2.tgz#8013f2af54a2b7d735f71560ff360d3a8176a87b" + integrity sha512-vTCdPp/T/Q3oSqwHmZ5Kpa9oI7iLtGl3RQaA/NyLHikvcrPxACkkKVr/XzkSPJWXHRhKGzVvb0urJsbMlRxi1Q== + "@sindresorhus/df@^1.0.1": version "1.0.1" resolved "https://registry.npmjs.org/@sindresorhus/df/-/df-1.0.1.tgz#c69b66f52f6fcdd287c807df210305dbaf78500d" @@ -2562,6 +2584,34 @@ dependencies: defer-to-connect "^1.0.1" +"@testing-library/dom@^5.0.0": + version "5.2.0" + resolved "https://registry.npmjs.org/@testing-library/dom/-/dom-5.2.0.tgz#450bd09f93ddd8865eec98fc5e81fceb2bccdf9c" + integrity sha512-nFaZes/bzDfMqwZpQXdiPyj3WXU16FYf5k5NCFu/qJM4JdRJLHEtSRYtrETmk7nCf+qLVoHCqRduGi/4KE83Gw== + dependencies: + "@babel/runtime" "^7.4.5" + "@sheerun/mutationobserver-shim" "^0.3.2" + aria-query "3.0.0" + pretty-format "^24.8.0" + wait-for-expect "^1.2.0" + +"@testing-library/react@^8.0.1": + version "8.0.1" + resolved "https://registry.npmjs.org/@testing-library/react/-/react-8.0.1.tgz#91c254adf855b13de50020613cb5d3915f9f7875" + integrity sha512-N/1pJfhEnNYkGyxuw4xbp03evaS0z/CT8o0QgTfJqGlukAcU15xf9uU1w03NHKZJcU69nOCBAoAkXHtHzYwMbg== + dependencies: + "@babel/runtime" "^7.4.5" + "@testing-library/dom" "^5.0.0" + +"@tippy.js/react@^2.2.0": + version "2.2.1" + resolved "https://registry.npmjs.org/@tippy.js/react/-/react-2.2.1.tgz#3826ecb318b4045a09d4cd1385a77d0538f4ac0e" + integrity sha512-aFjw/ZEtZaoV0jSWdT+FdFYKGkBWJ4VgbXXd9UoE8GbNwlU05VLA505xWLAiJeSz3qeUkR7ERCn/bS6PZaJ8JQ== + dependencies: + "@testing-library/react" "^8.0.1" + prop-types "^15.6.2" + tippy.js "^4.3.0" + "@types/babel__core@^7.1.0": version "7.1.1" resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.1.tgz#ce9a9e5d92b7031421e1d0d74ae59f572ba48be6" @@ -3438,7 +3488,7 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" -aria-query@^3.0.0: +aria-query@3.0.0, aria-query@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/aria-query/-/aria-query-3.0.0.tgz#65b3fcc1ca1155a8c9ae64d6eee297f15d5133cc" integrity sha1-ZbP8wcoRVajJrmTW7uKX8V1RM8w= @@ -3809,7 +3859,7 @@ babel-plugin-dynamic-import-node@^1.2.0: dependencies: babel-plugin-syntax-dynamic-import "^6.18.0" -babel-plugin-emotion@^10.0.13, babel-plugin-emotion@^10.0.9: +babel-plugin-emotion@^10.0.9: version "10.0.13" resolved "https://registry.npmjs.org/babel-plugin-emotion/-/babel-plugin-emotion-10.0.13.tgz#c4faa1ba8c0fd74a13226ced32876b314ef1d8ab" integrity sha512-w8yukWIYDw2ZUzBo7B9t5jh7wsM4NQWqvuZadW4MhVokgw5wsoBRJ59Sa1hMc3UZiatwb0iBNufmRQZVl77I5Q== @@ -3870,17 +3920,6 @@ babel-plugin-macros@^2.0.0: cosmiconfig "^5.2.0" resolve "^1.10.0" -babel-plugin-module-resolver@^3.2.0: - version "3.2.0" - resolved "https://registry.npmjs.org/babel-plugin-module-resolver/-/babel-plugin-module-resolver-3.2.0.tgz#ddfa5e301e3b9aa12d852a9979f18b37881ff5a7" - integrity sha512-tjR0GvSndzPew/Iayf4uICWZqjBwnlMWjSx6brryfQ81F9rxBVqwDJtFCV8oOs0+vJeefK9TmdZtkIFdFe1UnA== - dependencies: - find-babel-config "^1.1.0" - glob "^7.1.2" - pkg-up "^2.0.0" - reselect "^3.0.1" - resolve "^1.4.0" - babel-plugin-remove-graphql-queries@^2.6.3: version "2.6.3" resolved "https://registry.npmjs.org/babel-plugin-remove-graphql-queries/-/babel-plugin-remove-graphql-queries-2.6.3.tgz#f106bc38229789c62e27a3a32d04deb7342bf15d" @@ -5042,6 +5081,11 @@ code-point-at@^1.0.0: resolved "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= +codemirror@^5.46.0: + version "5.47.0" + resolved "https://registry.npmjs.org/codemirror/-/codemirror-5.47.0.tgz#c13a521ae5660d3acc655af252f4955065293789" + integrity sha512-kV49Fr+NGFHFc/Imsx6g180hSlkGhuHxTSDDmDHOuyln0MQYFLixDY4+bFkBVeCEiepYfDimAF/e++9jPJk4QA== + codesandboxer-fs@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/codesandboxer-fs/-/codesandboxer-fs-1.0.1.tgz#201ac92261f12ce9efa7185df9638bb6f50e6e84" @@ -5697,7 +5741,7 @@ create-react-context@0.2.2: fbjs "^0.8.0" gud "^1.0.0" -create-react-context@^0.2.1: +create-react-context@^0.2.1, create-react-context@^0.2.3: version "0.2.3" resolved "https://registry.npmjs.org/create-react-context/-/create-react-context-0.2.3.tgz#9ec140a6914a22ef04b8b09b7771de89567cb6f3" integrity sha512-CQBmD0+QGgTaxDL3OX1IDXYqjkp2It4RIbcb99jS6AEg27Ga+a9G3JtK6SIu0HBwPLZlmwt9F7UwWA4Bn92Rag== @@ -6464,6 +6508,32 @@ doctrine@^3.0.0: dependencies: esutils "^2.0.2" +docz-theme-default@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/docz-theme-default/-/docz-theme-default-1.2.0.tgz#f69cb667ca7ee2c673c90bbd4bb96a3f6f6d0931" + integrity sha512-VdBLJFJLPtnAOEOmbIHRYQsXzMGhvikdmfBt31oYMkiR+s9XMaOwutkwtsFZDQuUgNvTDhe98CVGSGl4/S3/Zg== + dependencies: + "@loadable/component" "^5.9.0" + "@reach/router" "^1.2.1" + "@tippy.js/react" "^2.2.0" + codemirror "^5.46.0" + copy-text-to-clipboard "^2.1.0" + docz "^1.2.0" + facepaint "^1.2.1" + hotkeys-js "^3.6.6" + lodash "^4.17.11" + polished "^3.3.0" + prop-types "15.7.2" + re-resizable "^4.11.0" + react "^16.8.6" + react-codemirror2 "^6.0.0" + react-dom "^16.8.6" + react-feather "^1.1.6" + react-live "2.0.1" + react-perfect-scrollbar "^1.5.0" + styled-components "^4.2.0" + typescript "3.3.4000" + dom-converter@^0.2: version "0.2.0" resolved "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768" @@ -7428,6 +7498,11 @@ extsprintf@^1.2.0: resolved "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= +facepaint@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/facepaint/-/facepaint-1.2.1.tgz#89929e601b15227278c53c516f764fc462b09c33" + integrity sha512-oNvBekbhsm/0PNSOWca5raHNAi6dG960Bx6LJgxDPNF59WpuspgQ17bN5MKwOr7JcFdQYc7StW3VZ28DBZLavQ== + fast-deep-equal@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" @@ -7631,14 +7706,6 @@ finalhandler@1.1.1: statuses "~1.4.0" unpipe "~1.0.0" -find-babel-config@^1.1.0: - version "1.2.0" - resolved "https://registry.npmjs.org/find-babel-config/-/find-babel-config-1.2.0.tgz#a9b7b317eb5b9860cda9d54740a8c8337a2283a2" - integrity sha512-jB2CHJeqy6a820ssiqwrKMeyC6nNdmrcgkKWJWmpoxpE8RKciYJXCcXRq1h2AzCo5I5BJeN2tkGEO3hLTuePRA== - dependencies: - json5 "^0.5.1" - path-exists "^3.0.0" - find-cache-dir@^0.1.1: version "0.1.1" resolved "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-0.1.1.tgz#c8defae57c8a52a8a784f9e31c57c742e993a0b9" @@ -8036,6 +8103,13 @@ gatsby-mdx@^0.6.3: unist-util-remove "^1.0.1" unist-util-visit "^1.4.0" +gatsby-plugin-alias-imports@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/gatsby-plugin-alias-imports/-/gatsby-plugin-alias-imports-1.0.5.tgz#44c0856d77acb74b58b89ec725dadd8f5d5b327d" + integrity sha512-q58JrSjuVNh4NApamqElR0zqwm55FOb9vFAVb2i2ftPRu0uYzWJkbOz2IN3vSw7a+5PmGzX7VL8XDFXlNHrMNA== + dependencies: + "@babel/runtime" "^7.2.0" + gatsby-plugin-compile-es6-packages@^1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/gatsby-plugin-compile-es6-packages/-/gatsby-plugin-compile-es6-packages-1.1.0.tgz#5045c3bbf408c6d639b317ebffd8e9128073c4f9" @@ -8044,6 +8118,14 @@ gatsby-plugin-compile-es6-packages@^1.1.0: "@babel/runtime" "^7.0.0" regex-escape "^3.4.8" +gatsby-plugin-emotion@^4.0.7: + version "4.0.7" + resolved "https://registry.npmjs.org/gatsby-plugin-emotion/-/gatsby-plugin-emotion-4.0.7.tgz#370c6a723a2aef0d88d837361aeea6ac6e6b4598" + integrity sha512-U9rJNQ/IdX92l4EvjGMoh3sNy2oW2G7Ae6KK+TETal6cRFG8K3toq338FbC/1z/2w+vPcTS074pjkhAxYxmTkA== + dependencies: + "@babel/runtime" "^7.0.0" + "@emotion/babel-preset-css-prop" "^10.0.5" + gatsby-plugin-eslint@^2.0.5: version "2.0.5" resolved "https://registry.npmjs.org/gatsby-plugin-eslint/-/gatsby-plugin-eslint-2.0.5.tgz#be02f5aff9b7f4a37927f3f917e82ad9f3d67f09" @@ -8084,13 +8166,6 @@ gatsby-plugin-root-import@^2.0.5: resolved "https://registry.npmjs.org/gatsby-plugin-root-import/-/gatsby-plugin-root-import-2.0.5.tgz#04e520dc661d67f49aa7950f11b7c780fd2fdbd3" integrity sha512-/yA6rFjfjiFb8D6nCjfFrrGqYQMkOt4J3u2o6s7VYEF/zpA5dw2C9ENJ5fDKkJSCbbwLiEIGVMMee3vMEip2zA== -gatsby-plugin-styled-components@^3.0.7: - version "3.0.7" - resolved "https://registry.npmjs.org/gatsby-plugin-styled-components/-/gatsby-plugin-styled-components-3.0.7.tgz#c89db04ef646f3b8295455009ddf717896c8c727" - integrity sha512-a9sg4qWC5K75eip7TwN4F2TGXCaoRZhx9lvu1U5aQQrC8OpTgWus66Fzws0XVcUCe18isfOm1kGfhLNm5/lOFw== - dependencies: - "@babel/runtime" "^7.0.0" - gatsby-react-router-scroll@^2.0.7: version "2.0.7" resolved "https://registry.npmjs.org/gatsby-react-router-scroll/-/gatsby-react-router-scroll-2.0.7.tgz#b9425e366d4be546036080d85664d60ae76e6c29" @@ -9020,7 +9095,7 @@ hosted-git-info@^2.1.4, hosted-git-info@^2.6.0: resolved "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" integrity sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w== -hotkeys-js@^3.6.11: +hotkeys-js@^3.6.11, hotkeys-js@^3.6.6: version "3.6.11" resolved "https://registry.npmjs.org/hotkeys-js/-/hotkeys-js-3.6.11.tgz#fbedbda3005f3f4a2f36c20c4e1b4f1ede999f94" integrity sha512-CQiE9t0OFTL1sEH4UAPpCwWYCVOBIBePeRjNeNMndsLdZyXal5jR0rDv8Y+GLMcztN2Gudvuy+V0v3oUFWV5QQ== @@ -10683,7 +10758,7 @@ json5@2.x, json5@^2.1.0: dependencies: minimist "^1.2.0" -json5@^0.5.0, json5@^0.5.1: +json5@^0.5.0: version "0.5.1" resolved "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= @@ -13120,6 +13195,11 @@ pegjs@^0.10.0: resolved "https://registry.npmjs.org/pegjs/-/pegjs-0.10.0.tgz#cf8bafae6eddff4b5a7efb185269eaaf4610ddbd" integrity sha1-z4uvrm7d/0tafvsYUmnqr0YQ3b0= +perfect-scrollbar@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/perfect-scrollbar/-/perfect-scrollbar-1.4.0.tgz#5d014ef9775e1f43058a1dbae9ed1daf0e7091f1" + integrity sha512-/2Sk/khljhdrsamjJYS5NjrH+GKEHEwh7zFSiYyxROyYKagkE4kSn2zDQDRTOMo8mpT2jikxx6yI1dG7lNP/hw== + performance-now@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" @@ -13215,13 +13295,6 @@ pkg-dir@^4.1.0: dependencies: find-up "^3.0.0" -pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz#c819ac728059a461cab1c3889a2be3c49a004d7f" - integrity sha1-yBmscoBZpGHKscOImivjxJoATX8= - dependencies: - find-up "^2.1.0" - please-upgrade-node@^3.0.2, please-upgrade-node@^3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz#ed320051dfcc5024fae696712c8288993595e8ac" @@ -13241,6 +13314,18 @@ pnp-webpack-plugin@^1.4.1: dependencies: ts-pnp "^1.1.2" +polished@^3.3.0: + version "3.4.1" + resolved "https://registry.npmjs.org/polished/-/polished-3.4.1.tgz#1eb5597ec1792206365635811d465751f5cbf71c" + integrity sha512-GflTnlP5rrpDoigjczEkS6Ye7NDA4sFvAnlr5hSDrEvjiVj97Xzev3hZlLi3UB27fpxyTS9rWU64VzVLWkG+mg== + dependencies: + "@babel/runtime" "^7.4.5" + +popper.js@^1.14.7: + version "1.15.0" + resolved "https://registry.npmjs.org/popper.js/-/popper.js-1.15.0.tgz#5560b99bbad7647e9faa475c6b8056621f5a4ff2" + integrity sha512-w010cY1oCUmI+9KwwlWki+r5jxKfTFDVoadl7MSrIujHU5MJ5OR6HTDj6Xo8aoR/QsA56x8jKjA59qGH4ELtrA== + portfinder@^1.0.20: version "1.0.20" resolved "https://registry.npmjs.org/portfinder/-/portfinder-1.0.20.tgz#bea68632e54b2e13ab7b0c4775e9b41bf270e44a" @@ -14001,6 +14086,11 @@ rc@^1.0.1, rc@^1.1.6, rc@^1.2.7, rc@^1.2.8: minimist "^1.2.0" strip-json-comments "~2.0.1" +re-resizable@^4.11.0: + version "4.11.0" + resolved "https://registry.npmjs.org/re-resizable/-/re-resizable-4.11.0.tgz#d5df10bda445c4ec0945751a223bf195afb61890" + integrity sha512-dye+7rERqNf/6mDT1iwps+4Gf42420xuZgygF33uX178DxffqcyeuHbBuJ382FIcB5iP6mMZOhfW7kI0uXwb/Q== + re-resizable@^5.0.1: version "5.0.1" resolved "https://registry.npmjs.org/re-resizable/-/re-resizable-5.0.1.tgz#66756a7aa0583b199e23e23f12a71c546031146d" @@ -14020,6 +14110,11 @@ react-art@^16.8.6: prop-types "^15.6.2" scheduler "^0.13.6" +react-codemirror2@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/react-codemirror2/-/react-codemirror2-6.0.0.tgz#180065df57a64026026cde569a9708fdf7656525" + integrity sha512-D7y9qZ05FbUh9blqECaJMdDwKluQiO3A9xB+fssd5jKM7YAXucRuEOlX32mJQumUvHUkHRHqXIPBjm6g0FW0Ag== + react-dev-utils@^4.2.1: version "4.2.3" resolved "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-4.2.3.tgz#5b42d9ea58d5e9e017a2f57a40a8af408a3a46fb" @@ -14127,6 +14222,20 @@ react-lifecycles-compat@^3.0.4: resolved "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362" integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA== +react-live@2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/react-live/-/react-live-2.0.1.tgz#cf1c1e75523073b2fba14384a465bf968c6dedc1" + integrity sha512-43srRqV+3yeHEZQOETWPiZkaLnx0/ldRtR/+F9/vFBYa/N8OMVVjPT4yl0qQCP6suIZ6cB/8eWw6vWgOTH0XOQ== + dependencies: + buble "0.19.6" + core-js "^2.4.1" + create-react-context "^0.2.3" + dom-iterator "^1.0.0" + prism-react-renderer "^0.1.0" + prop-types "^15.5.8" + react-simple-code-editor "^0.9.0" + unescape "^0.2.0" + react-live@2.1.2: version "2.1.2" resolved "https://registry.npmjs.org/react-live/-/react-live-2.1.2.tgz#f81a2926d9531563b04a62afe4feee09d78c058c" @@ -14157,6 +14266,14 @@ react-native-web@^0.11.4: prop-types "^15.6.0" react-timer-mixin "^0.13.4" +react-perfect-scrollbar@^1.5.0: + version "1.5.3" + resolved "https://registry.npmjs.org/react-perfect-scrollbar/-/react-perfect-scrollbar-1.5.3.tgz#a8a0051a5f737801d4f73d48af5369724c595787" + integrity sha512-2fVqbDJgOb1siCCJozGbv22cAHnh6TI9HFHRpM0lBJTPPM0ajgmsU75mBnI3k0ndryo+JiwUbLKACrurx1BjBw== + dependencies: + perfect-scrollbar "^1.4.0" + prop-types "^15.6.1" + react-reconciler@^0.20.0: version "0.20.4" resolved "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.20.4.tgz#3da6a95841592f849cb4edd3d38676c86fd920b2" @@ -14849,11 +14966,6 @@ requires-port@^1.0.0: resolved "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8= -reselect@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/reselect/-/reselect-3.0.1.tgz#efdaa98ea7451324d092b2b2163a6a1d7a9a2147" - integrity sha1-79qpjqdFEyTQkrKyFjpqHXqaIUc= - reserved-words@^0.1.2: version "0.1.2" resolved "https://registry.npmjs.org/reserved-words/-/reserved-words-0.1.2.tgz#00a0940f98cd501aeaaac316411d9adc52b31ab1" @@ -14913,7 +15025,7 @@ resolve@1.1.7: resolved "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs= -resolve@1.10.1, resolve@1.x, resolve@^1.1.6, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.3.2, resolve@^1.4.0, resolve@^1.5.0, resolve@^1.7.1, resolve@^1.8.1: +resolve@1.10.1, resolve@1.x, resolve@^1.1.6, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.3.2, resolve@^1.5.0, resolve@^1.7.1, resolve@^1.8.1: version "1.10.1" resolved "https://registry.npmjs.org/resolve/-/resolve-1.10.1.tgz#664842ac960795bbe758221cdccda61fb64b5f18" integrity sha512-KuIe4mf++td/eFb6wkaPbMDnP6kObCaEtIDuHOUED6MNUo4K670KZUHuuvYPZDxNF0WVLw49n06M2m2dXphEzA== @@ -16172,7 +16284,7 @@ style-to-object@^0.2.1: dependencies: css "2.2.4" -styled-components@^4.3.1: +styled-components@^4.2.0, styled-components@^4.3.1: version "4.3.1" resolved "https://registry.npmjs.org/styled-components/-/styled-components-4.3.1.tgz#18c3709f4ed9d582cd206b1acd8b758a211dd114" integrity sha512-04XKQFFSEx3qTeN5I4kiSeajrwG6juDMw2+vUgvfxeXFegE40TuPKS4fFey8RJP1Ii1AoVQVUOglrdUUey0ZHw== @@ -16499,6 +16611,13 @@ timsort@^0.3.0: resolved "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q= +tippy.js@^4.3.0: + version "4.3.4" + resolved "https://registry.npmjs.org/tippy.js/-/tippy.js-4.3.4.tgz#9a91fd5ce8c401f181b7adaa6b2c27f3d105f3ba" + integrity sha512-O2ukxHOJTLVYZ/TfHjNd8WgAWoefX9uk5QiWRdHfX2PR2lBpUU4BJQLl7U2Ykc8K7o16gTeHEElpuRfgD5b0aA== + dependencies: + popper.js "^1.14.7" + title-case@^2.1.0: version "2.1.1" resolved "https://registry.npmjs.org/title-case/-/title-case-2.1.1.tgz#3e127216da58d2bc5becf137ab91dae3a7cd8faa" @@ -16800,6 +16919,11 @@ typedarray@^0.0.6: resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= +typescript@3.3.4000: + version "3.3.4000" + resolved "https://registry.npmjs.org/typescript/-/typescript-3.3.4000.tgz#76b0f89cfdbf97827e1112d64f283f1151d6adf0" + integrity sha512-jjOcCZvpkl2+z7JFn0yBOoLQyLoIkNZAs/fYJkUG6VKy6zLPHJGfQJYFHzibB6GJaF/8QrcECtlQ5cpvRHSMEA== + typescript@3.5.2: version "3.5.2" resolved "https://registry.npmjs.org/typescript/-/typescript-3.5.2.tgz#a09e1dc69bc9551cadf17dba10ee42cf55e5d56c" @@ -17430,6 +17554,11 @@ w3c-hr-time@^1.0.1: dependencies: browser-process-hrtime "^0.1.2" +wait-for-expect@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/wait-for-expect/-/wait-for-expect-1.2.0.tgz#fdab6a26e87d2039101db88bff3d8158e5c3e13f" + integrity sha512-EJhKpA+5UHixduMBEGhTFuLuVgQBKWxkFbefOdj2bbk2/OpA5Opsc4aUTGmF+qJ+v3kTGxDRNYwKaT4j6g5n8Q== + walker@^1.0.7, walker@~1.0.5: version "1.0.7" resolved "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb"