@docusaurus/theme-live-codeblock 2.0.0-beta.8e9b829d9 → 2.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/copyUntypedFiles.js +20 -0
- package/lib/.tsbuildinfo +1 -0
- package/lib/custom-buble.d.ts +9 -0
- package/lib/custom-buble.js +26 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +31 -0
- package/lib/theme/CodeBlock/index.js +25 -0
- package/lib/theme/Playground/index.js +110 -0
- package/lib/theme/Playground/styles.module.css +40 -0
- package/lib/theme/ReactLiveScope/index.js +16 -0
- package/lib/validateThemeConfig.d.ts +17 -0
- package/lib/validateThemeConfig.js +28 -0
- package/package.json +17 -8
- package/src/__tests__/{validateThemeConfig.test.js → validateThemeConfig.test.ts} +1 -1
- package/src/{custom-buble.js → custom-buble.ts} +21 -5
- package/src/{index.js → index.ts} +4 -6
- package/src/theme/Playground/index.js +30 -6
- package/src/types.d.ts +19 -0
- package/src/{validateThemeConfig.js → validateThemeConfig.ts} +12 -5
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const path = require('path');
|
|
9
|
+
const fs = require('fs-extra');
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Copy all untyped and static assets files to lib.
|
|
13
|
+
*/
|
|
14
|
+
const srcDir = path.resolve(__dirname, 'src');
|
|
15
|
+
const libDir = path.resolve(__dirname, 'lib');
|
|
16
|
+
fs.copySync(srcDir, libDir, {
|
|
17
|
+
filter(filepath) {
|
|
18
|
+
return !/__tests__/.test(filepath) && !/\.tsx?$/.test(filepath);
|
|
19
|
+
},
|
|
20
|
+
});
|
package/lib/.tsbuildinfo
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/tslib/tslib.d.ts","../src/custom-buble.ts","../../../node_modules/@types/estree/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/schema-utils/declarations/ValidationError.d.ts","../../../node_modules/ajv/lib/ajv.d.ts","../../../node_modules/schema-utils/declarations/validate.d.ts","../../../node_modules/schema-utils/declarations/index.d.ts","../../../node_modules/tapable/tapable.d.ts","../../../node_modules/webpack/types.d.ts","../../docusaurus-types/node_modules/commander/typings/index.d.ts","../../../node_modules/joi/lib/index.d.ts","../../../node_modules/utility-types/dist/aliases-and-guards.d.ts","../../../node_modules/utility-types/dist/mapped-types.d.ts","../../../node_modules/utility-types/dist/utility-types.d.ts","../../../node_modules/utility-types/dist/functional-helpers.d.ts","../../../node_modules/utility-types/dist/index.d.ts","../../docusaurus-types/src/index.d.ts","../../docusaurus-utils-validation/lib/Joi.d.ts","../../docusaurus-utils-validation/lib/JoiFrontMatter.d.ts","../../docusaurus-utils-validation/lib/validationUtils.d.ts","../../docusaurus-utils-validation/lib/validationSchemas.d.ts","../../docusaurus-utils-validation/lib/index.d.ts","../src/validateThemeConfig.ts","../src/index.ts","../../../node_modules/magic-string/index.d.ts","../../../node_modules/@types/buble/index.d.ts","../src/types.d.ts","../../../node_modules/@babel/types/lib/index.d.ts","../../../node_modules/@types/babel__generator/index.d.ts","../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/@types/babel__template/index.d.ts","../../../node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/@types/babel__core/index.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/connect/index.d.ts","../../../node_modules/@types/body-parser/index.d.ts","../../../node_modules/@types/bonjour/index.d.ts","../../../node_modules/@types/braces/index.d.ts","../../../node_modules/@types/keyv/index.d.ts","../../../node_modules/@types/http-cache-semantics/index.d.ts","../../../node_modules/@types/responselike/index.d.ts","../../../node_modules/@types/cacheable-request/index.d.ts","../../../node_modules/source-map/source-map.d.ts","../../../node_modules/@types/clean-css/index.d.ts","../../../node_modules/@types/color-name/index.d.ts","../../../node_modules/@types/color-convert/conversions.d.ts","../../../node_modules/@types/color-convert/route.d.ts","../../../node_modules/@types/color-convert/index.d.ts","../../../node_modules/@types/color/index.d.ts","../../../node_modules/@types/range-parser/index.d.ts","../../../node_modules/@types/qs/index.d.ts","../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../node_modules/@types/connect-history-api-fallback/index.d.ts","../../../node_modules/@types/copy-webpack-plugin/index.d.ts","../../../node_modules/@types/cssnano/node_modules/postcss/lib/postcss.d.ts","../../../node_modules/@types/cssnano/index.d.ts","../../../node_modules/source-map-js/source-map.d.ts","../../../node_modules/postcss/lib/comment.d.ts","../../../node_modules/postcss/lib/at-rule.d.ts","../../../node_modules/postcss/lib/rule.d.ts","../../../node_modules/postcss/lib/container.d.ts","../../../node_modules/postcss/lib/declaration.d.ts","../../../node_modules/postcss/lib/warning.d.ts","../../../node_modules/postcss/lib/previous-map.d.ts","../../../node_modules/postcss/lib/input.d.ts","../../../node_modules/postcss/lib/css-syntax-error.d.ts","../../../node_modules/postcss/lib/document.d.ts","../../../node_modules/postcss/lib/root.d.ts","../../../node_modules/postcss/lib/lazy-result.d.ts","../../../node_modules/postcss/lib/processor.d.ts","../../../node_modules/postcss/lib/result.d.ts","../../../node_modules/postcss/lib/node.d.ts","../../../node_modules/postcss/lib/list.d.ts","../../../node_modules/postcss/lib/postcss.d.ts","../../../node_modules/@types/css-minimizer-webpack-plugin/index.d.ts","../../../node_modules/@types/decompress/index.d.ts","../../../node_modules/@types/dedent/index.d.ts","../../../node_modules/@types/detect-port/index.d.ts","../../../node_modules/@types/got/index.d.ts","../../../node_modules/@types/download/index.d.ts","../../../node_modules/@types/escape-html/index.d.ts","../../../node_modules/@types/eslint/helpers.d.ts","../../../node_modules/@types/eslint/lib/rules/index.d.ts","../../../node_modules/@types/eslint/index.d.ts","../../../node_modules/@types/eslint-scope/index.d.ts","../../../node_modules/@types/mime/index.d.ts","../../../node_modules/@types/serve-static/index.d.ts","../../../node_modules/@types/express/index.d.ts","../../../node_modules/@types/fs-extra/index.d.ts","../../../node_modules/@types/github-slugger/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/@types/unist/index.d.ts","../../../node_modules/@types/hast/index.d.ts","../../../node_modules/@types/history/DOMUtils.d.ts","../../../node_modules/@types/history/createBrowserHistory.d.ts","../../../node_modules/@types/history/createHashHistory.d.ts","../../../node_modules/@types/history/createMemoryHistory.d.ts","../../../node_modules/@types/history/LocationUtils.d.ts","../../../node_modules/@types/history/PathUtils.d.ts","../../../node_modules/@types/history/index.d.ts","../../../node_modules/@types/uglify-js/index.d.ts","../../../node_modules/@types/relateurl/index.d.ts","../../../node_modules/@types/html-minifier/index.d.ts","../../../node_modules/@types/html-minifier-terser/index.d.ts","../../../node_modules/@types/html-webpack-plugin/index.d.ts","../../../node_modules/@types/http-proxy/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../node_modules/jest-diff/build/types.d.ts","../../../node_modules/jest-diff/build/diffLines.d.ts","../../../node_modules/jest-diff/build/printDiffs.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/pretty-format/build/types.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/js-yaml/index.d.ts","../../../node_modules/ast-types/types.d.ts","../../../node_modules/ast-types/gen/namedTypes.d.ts","../../../node_modules/ast-types/gen/kinds.d.ts","../../../node_modules/ast-types/gen/builders.d.ts","../../../node_modules/ast-types/lib/types.d.ts","../../../node_modules/ast-types/lib/path.d.ts","../../../node_modules/ast-types/lib/scope.d.ts","../../../node_modules/ast-types/lib/node-path.d.ts","../../../node_modules/ast-types/lib/path-visitor.d.ts","../../../node_modules/ast-types/gen/visitor.d.ts","../../../node_modules/ast-types/main.d.ts","../../../node_modules/recast/lib/options.d.ts","../../../node_modules/recast/lib/parser.d.ts","../../../node_modules/recast/lib/printer.d.ts","../../../node_modules/recast/main.d.ts","../../../node_modules/@types/jscodeshift/src/collections/JSXElement.d.ts","../../../node_modules/@types/jscodeshift/src/collections/Node.d.ts","../../../node_modules/@types/jscodeshift/src/collections/VariableDeclarator.d.ts","../../../node_modules/@types/jscodeshift/src/Collection.d.ts","../../../node_modules/@types/jscodeshift/src/template.d.ts","../../../node_modules/@types/jscodeshift/src/core.d.ts","../../../node_modules/@types/jscodeshift/index.d.ts","../../../node_modules/@types/json5/index.d.ts","../../../node_modules/@types/katex/contrib/auto-render.d.ts","../../../node_modules/@types/katex/contrib/katex2tex.d.ts","../../../node_modules/@types/katex/contrib/index.d.ts","../../../node_modules/@types/katex/index.d.ts","../../../node_modules/@types/loader-utils/index.d.ts","../../../node_modules/@types/lodash/common/common.d.ts","../../../node_modules/@types/lodash/common/array.d.ts","../../../node_modules/@types/lodash/common/collection.d.ts","../../../node_modules/@types/lodash/common/date.d.ts","../../../node_modules/@types/lodash/common/function.d.ts","../../../node_modules/@types/lodash/common/lang.d.ts","../../../node_modules/@types/lodash/common/math.d.ts","../../../node_modules/@types/lodash/common/number.d.ts","../../../node_modules/@types/lodash/common/object.d.ts","../../../node_modules/@types/lodash/common/seq.d.ts","../../../node_modules/@types/lodash/common/string.d.ts","../../../node_modules/@types/lodash/common/util.d.ts","../../../node_modules/@types/lodash/index.d.ts","../../../node_modules/@types/mdast/index.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/scheduler/tracing.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@types/mdx-js__react/index.d.ts","../../../node_modules/@types/micromatch/index.d.ts","../../../node_modules/@types/mini-css-extract-plugin/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/mkdirp/index.d.ts","../../../node_modules/form-data/index.d.ts","../../../node_modules/@types/node-fetch/externals.d.ts","../../../node_modules/@types/node-fetch/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/nprogress/index.d.ts","../../../node_modules/@types/parse-json/index.d.ts","../../../node_modules/@types/parse-numeric-range/index.d.ts","../../../node_modules/@types/parse5/index.d.ts","../../../node_modules/@types/picomatch/lib/constants.d.ts","../../../node_modules/@types/picomatch/lib/parse.d.ts","../../../node_modules/@types/picomatch/lib/scan.d.ts","../../../node_modules/@types/picomatch/lib/picomatch.d.ts","../../../node_modules/@types/picomatch/index.d.ts","../../../node_modules/@types/prettier/index.d.ts","../../../node_modules/@types/prismjs/index.d.ts","../../../node_modules/@types/prompts/index.d.ts","../../../node_modules/@types/q/index.d.ts","../../../node_modules/@types/react-dev-utils/index.d.ts","../../../node_modules/@types/react-dom/index.d.ts","../../../node_modules/@types/react-helmet/index.d.ts","../../../node_modules/@types/react-router/index.d.ts","../../../node_modules/@types/react-router-config/index.d.ts","../../../node_modules/@types/react-router-dom/index.d.ts","../../../node_modules/@types/react-test-renderer/index.d.ts","../../../node_modules/@types/resolve/index.d.ts","../../../node_modules/@types/retry/index.d.ts","../../../node_modules/@types/rtl-detect/index.d.ts","../../../node_modules/@types/rtlcss/index.d.ts","../../../node_modules/@types/sax/index.d.ts","../../../node_modules/@types/scheduler/index.d.ts","../../../node_modules/@types/semver/classes/semver.d.ts","../../../node_modules/@types/semver/functions/parse.d.ts","../../../node_modules/@types/semver/functions/valid.d.ts","../../../node_modules/@types/semver/functions/clean.d.ts","../../../node_modules/@types/semver/functions/inc.d.ts","../../../node_modules/@types/semver/functions/diff.d.ts","../../../node_modules/@types/semver/functions/major.d.ts","../../../node_modules/@types/semver/functions/minor.d.ts","../../../node_modules/@types/semver/functions/patch.d.ts","../../../node_modules/@types/semver/functions/prerelease.d.ts","../../../node_modules/@types/semver/functions/compare.d.ts","../../../node_modules/@types/semver/functions/rcompare.d.ts","../../../node_modules/@types/semver/functions/compare-loose.d.ts","../../../node_modules/@types/semver/functions/compare-build.d.ts","../../../node_modules/@types/semver/functions/sort.d.ts","../../../node_modules/@types/semver/functions/rsort.d.ts","../../../node_modules/@types/semver/functions/gt.d.ts","../../../node_modules/@types/semver/functions/lt.d.ts","../../../node_modules/@types/semver/functions/eq.d.ts","../../../node_modules/@types/semver/functions/neq.d.ts","../../../node_modules/@types/semver/functions/gte.d.ts","../../../node_modules/@types/semver/functions/lte.d.ts","../../../node_modules/@types/semver/functions/cmp.d.ts","../../../node_modules/@types/semver/functions/coerce.d.ts","../../../node_modules/@types/semver/classes/comparator.d.ts","../../../node_modules/@types/semver/classes/range.d.ts","../../../node_modules/@types/semver/functions/satisfies.d.ts","../../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../../node_modules/@types/semver/ranges/min-version.d.ts","../../../node_modules/@types/semver/ranges/valid.d.ts","../../../node_modules/@types/semver/ranges/outside.d.ts","../../../node_modules/@types/semver/ranges/gtr.d.ts","../../../node_modules/@types/semver/ranges/ltr.d.ts","../../../node_modules/@types/semver/ranges/intersects.d.ts","../../../node_modules/@types/semver/ranges/simplify.d.ts","../../../node_modules/@types/semver/ranges/subset.d.ts","../../../node_modules/@types/semver/internals/identifiers.d.ts","../../../node_modules/@types/semver/index.d.ts","../../../node_modules/@types/serve-handler/index.d.ts","../../../node_modules/@types/serve-index/index.d.ts","../../../node_modules/@types/sharp/index.d.ts","../../../node_modules/@types/shelljs/index.d.ts","../../../node_modules/@types/source-list-map/index.d.ts","../../../node_modules/@types/stack-utils/index.d.ts","../../../node_modules/@types/stringify-object/index.d.ts","../../../node_modules/@types/supports-color/index.d.ts","../../../node_modules/@types/tapable/index.d.ts","../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../node_modules/@types/trusted-types/index.d.ts","../../../node_modules/@types/wait-on/index.d.ts","../../../node_modules/anymatch/index.d.ts","../../../node_modules/@types/webpack-sources/node_modules/source-map/source-map.d.ts","../../../node_modules/@types/webpack-sources/lib/Source.d.ts","../../../node_modules/@types/webpack-sources/lib/CompatSource.d.ts","../../../node_modules/@types/webpack-sources/lib/ConcatSource.d.ts","../../../node_modules/@types/webpack-sources/lib/OriginalSource.d.ts","../../../node_modules/@types/webpack-sources/lib/PrefixSource.d.ts","../../../node_modules/@types/webpack-sources/lib/RawSource.d.ts","../../../node_modules/@types/webpack-sources/lib/ReplaceSource.d.ts","../../../node_modules/@types/webpack-sources/lib/SizeOnlySource.d.ts","../../../node_modules/@types/webpack-sources/lib/SourceMapSource.d.ts","../../../node_modules/@types/webpack-sources/lib/index.d.ts","../../../node_modules/@types/webpack-sources/lib/CachedSource.d.ts","../../../node_modules/@types/webpack-sources/index.d.ts","../../../node_modules/@types/webpack/index.d.ts","../../../node_modules/@types/webpack-bundle-analyzer/index.d.ts","../../../node_modules/@types/webpack-dev-middleware/index.d.ts","../../../node_modules/@types/webpack-dev-server/node_modules/http-proxy-middleware/dist/types.d.ts","../../../node_modules/@types/webpack-dev-server/node_modules/http-proxy-middleware/dist/handlers/response-interceptor.d.ts","../../../node_modules/@types/webpack-dev-server/node_modules/http-proxy-middleware/dist/handlers/fix-request-body.d.ts","../../../node_modules/@types/webpack-dev-server/node_modules/http-proxy-middleware/dist/handlers/public.d.ts","../../../node_modules/@types/webpack-dev-server/node_modules/http-proxy-middleware/dist/handlers/index.d.ts","../../../node_modules/@types/webpack-dev-server/node_modules/http-proxy-middleware/dist/index.d.ts","../../../node_modules/chokidar/types/index.d.ts","../../../node_modules/@types/webpack-dev-server/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"12f4cfe2fe60b810c3174537bc2ddb20c1067b7768643d12cb1266fd183afb75","34b62b55302921476af4075ae52bead1acbad116334d31e2cdf69252fb2c7e42","7d7c8ef7d48a035142c07dae60545ecc0e4af4c337742760cb09726f2f8e31db","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","dee5d387e2e6f3015cbf91fc0c13ed6f016f9c5c1f2ad9c62602f4fd398fa83a","67f129ed8b372622ff36b8b10e39d03e09e363a5ff7821105f92f085b8d1ccba","721124f5db1f4a42da2308dfa1414d2e99055d2dfc59de7bf2e0b6ac64356c0e","0d7569149194d622212c21d5d162b0715d5a6ca764cebae7145fdbaff1e07311","cd74c8275483d3fe0d07a9b4bba28845a8a611f0aa399e961dbd40e5d46dd9ad","b77c7db9fba64276941b1a5160744f28b23bae28b471a348da2ad448a1fb3152","c72b982add26c5ddf410899bcafe3f47253a5d274d4b93d2ef67850d4af4545b","79468f5936bec0f62d7866f43bdc90969d996f2919b0c09618fcf8779534dced","bd0d80db12ef1aceefc4f9d3eb88517b9634fa747ae8475981da8655292feab8","55e68fb1618e3f55f7866b8c8415152159309a14b716370081ab0b7af96d876e","bf0491af2455f92282b61807be2be6e7ad7d532e47fac7b698019d3617c28ff7","5d874fb879ab8601c02549817dceb2d0a30729cb7e161625dd6f819bbff1ec0b","ee551a880882770c4f56a0964a9767c9feafe497a5be52652527d098c88d85cb","d552700f6a53de333f2315696a18224c4d6eae266b715b389a047019573ce522","889859c907d8388cfe92d4bdfe5b5ff0885a41e6e4568691230e21757f7673c9","df8e0b622962e734e62c8e98423622900d62abd0a9fadc9a9c2bd095bf34952a","587d29bdf3f945aef9e94f92cdb8fa90b0ecbce7e6dc76411875ed5b436cd1be","faf6642e20b9b95375af851dee261aa115bc1204a41dcca7740cbdde4b9af52e","8387c74026355f5df1eec752beaf0f88c87a3a23f8945e3728984a08fa40d106","7d2796a00fb06bd46fafc950d96a8d5b3f75de73704063154595590d1f149bd3","cec934a3bb549f181932593f790ceab6335b8b55a88b7ad0b1b9deb0117c807f","df66dd87e5338e59ca0550af424ba22c59a8f4b30b20a214b6ed250562b7c755","4df33232578477b818eb7d40c8558ccf4afde30e920f9503cd359307a1771d8a","319f29e9a75f6150d610df066c476423a5e094cf57623c0eddfdd89d357648b5","f82348f8ac4f637d6ad76ef5d45577ccc0c59fbd25d8c44d55349a71a90e195a","8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c","4aaf84a5ac87bad3211f041fab85de5cc42e5954c3ed56842faf6f08167e6202","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","d0b0a00cf31968a33baeaadf974ce4e5e7edf58cea5288765293f41ba5e72b3a","d555cd63a3fc837840db192596273fdf52fb28092b0a33bec98e89a0334b3a4c",{"version":"f54d7a33bad768b50c8512d55f38499209d95038558fea231058465f680d1e1e","affectsGlobalScope":true},"85d545d430795d54a8b2896f67f9aeb7bf19fd74a1469ae0627311eb72f0dfa2","a473cf45c3d9809518f8af913312139d9f4db6887dc554e0d06d0f4e52722e6b","d5afcd002167b6b03d595fb8b9630a00456b6fb9d2c5e8b6aaa30cb31bc44e2b","3d68ecf05475492f041c88395372c3a01b30351619bebcd38287ab185be7f7e4",{"version":"36c956a3a6dc279f1e6b77aa4b97b7b229b7d828102573ef5002de456ff5e1d9","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","6e8b894365ab993dbb55c58542598d1548fdda072c974f98b89c218891e2ba09","ddd6169dff8e5263397a9399ba7ba92521d3959f8f9dcdc27f24403dc7b751ba","508e1e25ca40ea6cde332d3232c826fcd82f456f45ae535d817754684f048f9e",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"8f8f6ee2a0c94077f79439f51640a625ac7e2f5dd6866bd3b5a41705c836adfc","affectsGlobalScope":true},"ee97aed5b4667a5c3003a1da4b108827fc64b888391417617d89b02ff134de9a","839421b494b57cd2bc0074e914130277051850eba6def6c25870056e6652640b","e18a4b529c9a05593e612130554d93a2b78b949cf1cf48c0b183071258f0e95a","88587b5c94b0c4f5d78026e4beeb93383b3933c860d9840b55d6bf47d7b632bb","a473ecd14d9bafbd6a33105524b033237bbf1d6ce2cd81eb71cc54bec2d83d55","9e8947666e44137405fd378f3a8a0515a492e967e552406c02b991c98c78fc61","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","7a2a3ff87ffd4313a6a2f3b012e801dd249ee58152cedf90c8718dcd2c811fe3","69640cc2e76dad52daeb9914e6b70c5c9a5591a3a65190a2d3ea432cf0015e16","a39a4c527b7a2dc7a2661b711a534c10c76852c5ad6ae320767d3f7d2621b67d","1bb5c9857b2ee32c199dd85bc0f4c0299112485d6e5dc91428eabfdee0dbd68c",{"version":"5daba568741c8ed283d67bf370c626a91e09fdfbc6d4abe22a7f93e2cf5138b9","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","662661bbf9ccd869f3bca82d34234b2abdc95c657e2187c35352d42dddb24c2d","5caa645cc390a0a8d5a031072b6b4e49218c17017cd80a63bd2557b19be13c5f","4c4334eb5d8fae83416a361d787b55a5743916aed8af812a909898bc7333e709","6feb6f75a3e4e017f8e6e12740cf06f18eefcf829284fa310da6c7f4d44fb2eb","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","0953427f9c2498f71dd912fdd8a81b19cf6925de3e1ad67ab9a77b9a0f79bf0b","b709ff1f6d6235f5e9c8dcbce3e683ff24ec35046b232d5a281af083026018d1","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","ee6a154ecccde26b413e89c97a0b824f25b253c4c50a3c392bcb2b4c6ba9c314","71d6da3b0150ecdcd16c08b3b546fe4cc7f53df642eccfeb03c813ee788fae0c","a364b4a8a015ae377052fa4fac94204d79a69d879567f444c7ceff1b7a18482d","c5ec3b97d9db756c689cd11f4a11eaa9e6077b2768e3e9b54ff727a93c03a909","c14e9e86f18189c7d32b5dd03b4cf3f40bed68f0509dec06d75d41b82c065fe2","bdb07038733b2d74a75ba9c381dcb92774cd6f161ee125bfa921eae7d883ccc9","ad93e960a3a07dff7394bf0c8a558006a9ff2d0725ab28fc33dec227d4cb251e",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"33f44d7dfe8ed95d42485149f97926d80d0f3a5d7ce7d6b5b21428a8286b51ea","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","65cfd1c0bc729fbc2b49fe66bc5ebddba5aa3a978c748e1d2e0d07f502238ce2","713cb5c36e9452e3573d87fd4a911bfd4339aa21a7293f764689ae2dce4f198b","40304c033bb6e39f0eb01b106d29523950148dfc3cd547ddb500167871171281","82169f198ffdfc787fba368ccfad2b2d8ef3712f3c696df94ac13f6884bbbe2d","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","2887592574fcdfd087647c539dcb0fbe5af2521270dad4a37f9d17c16190d579","81bf524a00ab23da11642375b81429cd73f21e2f380c139da6485136f21292e4","f0cb4b3ab88193e3e51e9e2622e4c375955003f1f81239d72c5b7a95415dad3e","92450d617e92f96354d281c8ed5613fd16cacea79eb60b1e9736494b3c057e69","8a9086357fe289efb682dc925358f30b6312c7219a5ca92212857a0a79612012","92bc42ed0e2d41559513fd457ee30d834c2f0fedb9ed5004c029cbf0ad2f8bd9","8dc44c4ad7e254d4404a302e5098e83ab9aae1d65e861c15fb67a7f419051524","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"61b60d145059c3c8e3c7b484713191b6d0b70999bcb11f2b26286b15926a2b5f","affectsGlobalScope":true},"56cbe80e6c42d7e6e66b6f048add8b01c663797b843a074d9f19c4a3d63a269a","ef4f3614064e7f2eb68c3271e08d3caf38df7f83be17c73a1d47e1b1800ee9ae","aec0cabbdfacf43db998d8e50ee6f1e72131d24b5018dfb84f14806717baa0a6","adc1bcbe46a680d894ea5be9f05e0baa43652bd9125a0302623d1afd0dc03b6c","2887592574fcdfd087647c539dcb0fbe5af2521270dad4a37f9d17c16190d579","13e521f4402f90bde98f8820045ee230168810f98f818b61f99cac728abd17a3","0475e7b7d37d065501e741e3be9b99a12ac34ff847143d83bb9d2bc9101a2625","611105c6a693c07a8a1be7fd04cda603e71b12471d4bdef34820ce653eb313e9","cba0f7d95990ecef0d0dbfc6b265fd307bd052aff61cbd7b165cbffe9d75ae24","57b9abe6f1a8b32ddbe5f28cd4dd73fa095afc8b24ae341049950f6b465872d0","a059f9bec8cf889db591a9d569f66d22e9acb4cdc67225238391c79eff517524","7786c75c1b46e93b33c63dccf689143a5f47ff451a6b3bd9b10e4801cdeadcc2","b96468bc2136fc580140702e9845d4ebf3413de9fb64093b6f7415ceb184fe5a","93fee8994db07645f6d7e241d57d3d786aaea17179c30e4d81156cc31193009d","e8966f7c424780bb0b9d411ebe13eda8555ca15aa675603316c2952bc027b0e3","df0e5f3c4a518111d160cf3bebc9a3ac7d39c6e3bfb7a21d43c304896c3015e2","c20569bc091e62ebe362b422738e82dfc7eedce351960f71af861821d434a960","bd204da7ab4613d12650bd6a4947258890ca9793df0a7a72dc4231f19d53f08e","afe79664dc4e1688ec4c6def52f793706d4763f55676eebfe72e92681e779404","6fdb5e8e7c1fc94fab356bb804c6e134133b5ad03b929ac2c1460bd49e4caa22","d7e4a5f4ccfb749c3033fafc233073b4d1dcca0249785186c589602a81f9d86f","d8f284ecc998ccc96e151e0d96109613c4901371201ddb1d7103f84199460589","4c0594efa2447408e66370c20b4de3de3bb2416cfff6b139c50ccb51e2cc6e43","825080a15a8b14b40ac8c7f90c12a5a11efb0b3857dc02195eae2a3dc98aea14","70646d9cb37b62611766d18a9bcca6cbf28ca9aec33a66244e974056ab1193f6","3f73b2be17fe55a6d9f9057cd3520e786ad21623b63001ac117ebc97452c3ffe","8f76c6bfb627f38ab44c35d1915dfa2d24d4b96307d9b6cc56df5bba246a3ab6","912989089693cac2ce78c83289b98d5d9be6d399009c5d2e06ad3edf50e7b335","81f6af9b1d8e4f9e3b7318763a1a93f909ee61e0477b41cc7f3281d9da6ca7f4",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"0133ebdd17a823ae56861948870cde4dac18dd8818ab641039c85bbb720429e0","e300bf65972ac08167a72787e19d1b43c285c5424707194d0ba64422f6b02c77","82772e5d55062a042a2715a555d347275a663940926fc785705eb082010cb9f6","84e3bbd6f80983d468260fdbfeeb431cc81f7ea98d284d836e4d168e36875e86","0b85cb069d0e427ba946e5eb2d86ef65ffd19867042810516d16919f6c1a5aec","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","ed19da84b7dbf00952ad0b98ce5c194f1903bcf7c94d8103e8e0d63b271543ae","78a1efd7214a25b84e08af80fe2b027c3049e52b26dfcaf777b82c759d8548c9","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","725b884357ba84171341a8e4cc08edf11417854fd069842ca6d22afb2e340e45","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","cddf5c26907c0b8378bc05543161c11637b830da9fadf59e02a11e675d11e180","3d2cd8f3047fff04a71e7037a6a4cb9f4accb28dbd8c0d83164d414811025af0",{"version":"271cde49dfd9b398ccc91bb3aaa43854cf76f4d14e10fed91cbac649aa6cbc63","affectsGlobalScope":true},"2bcecd31f1b4281710c666843fc55133a0ee25b143e59f35f49c62e168123f4b","a6273756fa05f794b64fe1aff45f4371d444f51ed0257f9364a8b25f3501915d","2374e4ddc628bd0af8ce7578621f1b9d08ab183f4dbacb8749eabb1a85018196","25d91fb9ed77a828cc6c7a863236fb712dafcd52f816eec481bd0c1f589f4404","4cd14cea22eed1bfb0dc76183e56989f897ac5b14c0e2a819e5162eafdcfe243","ab35d08aa06a7615f06dad04db7e88f27d623220f05de68a94f16d5d22e6aaea","9d74c7330800b325bb19cc8c1a153a612c080a60094e1ab6cfb6e39cf1b88c36","0def05b4e59413659e7f1cad8b0e32858d7d272a4701457e7fea95618f6ef7db","660fa27262840c791c5b0a05ea10b07c846190f0e8a8312202f7646f1aa7813d","233195dd39bbfcdce765006e72f093aae1d3748bd970c73c5f01e7ee1ef24f5d","7c34d4965567c3d4814cc408340c1d268c00c7d08e2a90e3de8215a42c1ff2b9","090ca38de36da6946266ef9057295341b6499c2fad4fe441afa50b2e864846b0","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","029769d13d9917e3284cb2356ed28a6576e8b07ae6a06ee1e672518adf21a102","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true},"5b89c37ff5dfea00195f8ea5e6fc8e086be68613297fc8152c08900a1d1fdb83","cc2dc362fc50995684e9f7e9b38ad9bdf19e74919294a694cbc05392352cad7d","abef3012ae70d98baa449664e9dda50c96fc68b0fd11a592d6590d85bb89cd10","456e83839c811cedebb65c8b05027120336b3bd6920259817d728ffc52d41e2f","ea79d9641e700b2b4a04a857ed1ef692c4caf988017fbabd64c4111f7c287673","0a90b9435b81f45b88c5fb8d30e85b77d3508eb0760dc40b9fb825fd29f92375","8cd7362102d928e21b291a013f80fc68a038d4506d26ea9948c676e3fa1110d9","90f6830fb380f4d2b69df018343ae80ce92991e85a0d7be8d214c643b39d1175","1bfe6db4f3dffacd1da82748cb8f0acec04e8a4d7bd36c09573d5d80a7dec28b","6a8d6deca8ec4250630fea4e5f23bd9bf0face98739ccd22e08a17173117155b","a1d51fd5a8f9c1c038799a43c038397ca3ed99ee73cc0b0aada897e7cc8aca91","6c9708ae545db5f8deb8ef774d412fd1b46adade794664d7c6cfd0a1f6dfd64f","9d14fcf0b69094271127c7b6acb36987be5d1bffa4eb948359549f040fb50349","e3a5287471fb08f053c06fd998632792aa5f022e45278f1e6dd55fb2fa9e7362","28a6c8eeb48e165920067b9193555649fc43c2a28c450f23f622e5eb043d9463","1147c3efa5a256bcd6a3d2cfaf764185b7120bf985f8412d9bae596a0348f77b","67aee88594abc44cd58820dea2ed1a9d373c1c2a59941234e4abe797464bc4da","c127a09e87ad20839582ac29f6ee013822a3e24f8820f5cf47d6c6a0e00b9113","f8cb94e0dffd21068a952754ec67d01d35a15fa61bd3af951f949e9b8bde7976","9928c4f48144f7d79716955310c857518d21ada0fcb7017fbf5921e547320cb8","3c7ef314f6691dbba43cb1310a82d610ea648cc4498cd685c3e25442ea2d98a0","2305508907ae4c993dda584411bfedac5821b8a55853caeebf2341f58b2fa027","187cfee5bd6b9f2fd8bc98cff0e32855cc10b5cc63d87727fe78de9e58eba818","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","d5233d3816d390f80493f4e678f3437b5af677452e6401e8e23641108339b9e0","1ced83d3606cfe4a0d2d98c24873b4147ac4c1b9beacb1d1dd0d8bacd3a00220","42c7f325d2075cf80f65ef6225692605b6516602209175d29281c7a53838d28f","f667b528eae7dbdd854691d8f654e33f664e0a6054fdd696fced817c778fc7f1","b49afdc0206971f3baf6cff99795593dcf6e97d7dca096f8bfda3b0e0a190a15","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","378df8bbbb9e3f6fca05d58f644aab538e1062eab5e778fb0b83d41125df246d","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","c24ad9be9adf28f0927e3d9d9e9cec1c677022356f241ccbbfb97bfe8fb3d1a1","0ec0998e2d085e8ea54266f547976ae152c9dd6cdb9ac4d8a520a230f5ebae84","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","82251920b05f30981c9a4109cb5f3169dce4b477effc845c6d781044a30e7672","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","9fa6b83a35e897f340858995ca5d77e901d89fd18644cd4c9e8a4afe0b2e6363",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},"2a2e2c6463bcf3c59f31bc9ab4b6ef963bbf7dffb049cd017e2c1834e3adca63",{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"5b1d4ebd62d975c7d3826202f8fac290bac0bae6e04d9e84d1707d7047e108df","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"7b4a3453c60663af7f58636bf4673bfcc540d83ce1c41b816a5cc2e924009880","affectsGlobalScope":true},"ac7c35cc5643ab7f4e2884aa0a383d8ac5cd3e995cc7f12349395192a4361c73","1a255ad66d2b50f7b42eca69228b9587878cf06900780ad57a306a933c6eaeb4","6d99b95b8235303e67b33d9ad8ee6532023b1bcc36be10a9cc9d46ad5f89754b","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6396a7a06f3ef0fc31a7c89330e015146b78a2256b030c698b6d404594c37b8f","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","062bd2910098fc059ba93e347649b3e126c555f7b144033d21d3f8ef63d3e39b","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","3c17de487f67fd2ce7a70090b19e791b0388ed9cb60cdbdc7a49277094ffc413","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","cf64eeeaef3601863fba2302368ec01bd9a991a24d39f68ddc9a525ffa20f1cc","c555dd691dd05955e99cd93dd99c685a65e5287813ccb5e6bfde951183248e26","c0ad01cd660e5b8478c46ba9eda9bb60057de0744b3436fab3ce1ab764109da9","b90c23a457c16f77a282531a5caba5c911d2252eb097f3193a8ee2df6a3f21a2","8f9aa0f1f409380d4dbd5c9f5f2e4af828e123095891dd0efc5bb999f8d1a301","578872fce2002aad31ff7d6e5f539da82f3f040777f79a8ad77e6250da78f42c","2c62313d703a4e95d56aae612fba35dc0eca38e399ed9729ee27facf64e9b993","92ae0192291b388db0aa580fee55d9977740e568d69b1ea2951955084936aed0","f142847486040d476276933f02f4fe18b50196d14d8774be7c4bc221dad4d90b","5f7614d60b32dc66e5d665eafd10d7619eedca3a20f0e876e9ec73141735e364","62b931417104c7cb35d0725e1869f51d52d7b18462fd58f32f846a314a42ba10","b5478b9a935cf14fe43a00f80dee3805b5f5f6d33be9d96fae7babea0e0dad76","b4dfafe583b829a382edccbe32303535d0785f0c02ba7f04418e2a81de97af8a","84b93958baf05d4d1dfd5e3583df4789257a8ac751a6046bce466771df6059fb","f8116d99ea6244e8b1492a9229b5d7e46e66f3fa21691d356ff173f03a14b6c9","9fa083ffb459128013c5b101df83124ad2636d9ba1185f105567416ca550e8f9","341f07a69f65cbae19fc6ccf3c7ffe432365606d473d64d9be3d358ee2e86070","60aaac5fb1858fbd4c4eb40e01706eb227eed9eca5c665564bd146971280dbd3","8a19491eba2108d5c333c249699f40aff05ad312c04a17504573b27d91f0aede","58a3914b1cce4560d9ad6eee2b716caaa030eda0a90b21ca2457ea9e2783eaa3","257eb160efb706e5d8e4ffa48d940e6c471e03bd19470537368c0599a78fb755","6e199fa01a463a67a34603881ff8862f94b2f88ad2384ae7808b2521638ed43a","f5559569170baba17cd175273efbdaa891d045e96cf481af0c9d5677d224c0e9","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","d9e55d93aa33fad61bd5c63800972d00ba8879ec5d29f6f3bce67d16d86abc33","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","77c1d91a129ba60b8c405f9f539e42df834afb174fe0785f89d92a2c7c16b77a","c544d81603149987796b24cca297c965db427b84b2580fb27e52fb37ddc1f470","906c751ef5822ec0dadcea2f0e9db64a33fb4ee926cc9f7efa38afe5d5371b2a","5387c049e9702f2d2d7ece1a74836a14b47fbebe9bbeb19f94c580a37c855351","c68391fb9efad5d99ff332c65b1606248c4e4a9f1dd9a087204242b56c7126d6","e9cf02252d3a0ced987d24845dcb1f11c1be5541f17e5daa44c6de2d18138d0c","e8b02b879754d85f48489294f99147aeccc352c760d95a6fe2b6e49cd400b2fe","9f6908ab3d8a86c68b86e38578afc7095114e66b2fc36a2a96e9252aac3998e0","0eedb2344442b143ddcd788f87096961cd8572b64f10b4afc3356aa0460171c6","9eb2875a1e4c583066af7d6194ea8162191b2756e5d87ccb3c562fdf74d06869","c68baff4d8ba346130e9753cefe2e487a16731bf17e05fdacc81e8c9a26aae9d","2cd15528d8bb5d0453aa339b4b52e0696e8b07e790c153831c642c3dea5ac8af","479d622e66283ffa9883fbc33e441f7fc928b2277ff30aacbec7b7761b4e9579","ade307876dc5ca267ca308d09e737b611505e015c535863f22420a11fffc1c54","f8cdefa3e0dee639eccbe9794b46f90291e5fd3989fcba60d2f08fde56179fb9","86c5a62f99aac7053976e317dbe9acb2eaf903aaf3d2e5bb1cafe5c2df7b37a8","2b300954ce01a8343866f737656e13243e86e5baef51bd0631b21dcef1f6e954","a2d409a9ffd872d6b9d78ead00baa116bbc73cfa959fce9a2f29d3227876b2a1","b288936f560cd71f4a6002953290de9ff8dfbfbf37f5a9391be5c83322324898","61178a781ef82e0ff54f9430397e71e8f365fc1e3725e0e5346f2de7b0d50dfa","6a6ccb37feb3aad32d9be026a3337db195979cd5727a616fc0f557e974101a54","6eef5113135a0f2bbac8259909a5bbb7666bcde022c28f4ab95145623cbe1f72","058b8dd97b7c67b6bf33e7bda7b1e247b019b675d4b6449d14ac002091a8b4f8","89c8a7b88c378663a8124664f2d9b8c2887e186b55aa066edf6d67177ca1aa04","5a30ba65ad753eb2ef65355dbb3011b28b192cb9df2ef0b5f595b51ca7faf353","5192f9a6469f849e0863616b668fde54bcd6704394b4bfbd115691865f66d761","f41d30972724714763a2698ae949fbc463afb203b5fa7c4ad7e4de0871129a17","86d425f7fcd8d100dafa6286cc289af88cbb639ecbdbd25c3018a8f0f7b09fe5","9795e0a3a45d5b6f1a791ee54b7c8b58bc931e8900966cea2dff9c5bae56073b","5890be29879d02424b7654f40592915189034948f7a18c5ad121c006d4e92811","0ab49086f10c75a1cb3b18bffe799dae021774146d8a2d5a4bb42dda67b64f9b","81c77839e152b8f715ec67b0a8b910bcc2d6cf916794c3519f8798c40efd12ac","a868a534ba1c2ca9060b8a13b0ffbbbf78b4be7b0ff80d8c75b02773f7192c29","464843c00fb3dd4735b28255c5c9fe713f16b8e47a3db09ba1647687440f7aef","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","d0f6d36b2d86f934560c48d8bfdc7ab60c67cfb2ab6dc1916706aa68e83d6dc2","d51a4e4450ee23d941db79652c660ca2612691dba235fd5d14d4b2a622c72312","acebfe99678cf7cddcddc3435222cf132052b1226e902daac9fbb495c321a9b5","cb77a2e6f93fe74eb36e044a993c82b1d1b1f121464863d7d6b6b301fa6866de","5b8476e49f360da8548e0acfbb77344291512db4453512c7b5ec8277f1c762c3","67fc055eb86a0632e2e072838f889ffe1754083cb13c8c80a06a7d895d877aae","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","2905bf42cddf7ba20c88922d36b7afa5431523c1cab119fdb38bf5baab02adf1","105fa3d1b286795f9ac1b82f5a737db303dfe65ebc9830c1938a2bbe538a861f","3833c70307dc3d2b46cb6f2a8b6a90e4d7e7367a21ab18c481d7de0909a43e67","2fcd2d22b1f30555e785105597cd8f57ed50300e213c4f1bbca6ae149f782c38",{"version":"bb4248c7f953233ac52332088fac897d62b82be07244e551d87c5049600b6cf7","affectsGlobalScope":true},"805d1cf8aa6aeb6f12c7b0b1c5da1e9fc3f1814052703ebf5e54b694aaada983","4fb0b7d532aa6fb850b6cd2f1ee4f00802d877b5c66a51903bc1fb0624126349","b90c59ac4682368a01c83881b814738eb151de8a58f52eb7edadea2bcffb11b9","8560a87b2e9f8e2c3808c8f6172c9b7eb6c9b08cb9f937db71c285ecf292c81d","ffe3931ff864f28d80ae2f33bd11123ad3d7bad9896b910a1e61504cc093e1f5","083c1bd82f8dc3a1ed6fc9e8eaddf141f7c05df418eca386598821e045253af9","274ebe605bd7f71ce161f9f5328febc7d547a2929f803f04b44ec4a7d8729517","6ca0207e70d985a24396583f55836b10dc181063ab6069733561bfde404d1bad","5908142efeaab38ffdf43927ee0af681ae77e0d7672b956dfb8b6c705dbfe106","f772b188b943549b5c5eb803133314b8aa7689eced80eed0b70e2f30ca07ab9c","0026b816ef05cfbf290e8585820eef0f13250438669107dfc44482bac007b14f","05d64cc1118031b29786632a9a0f6d7cf1dcacb303f27023a466cf3cdc860538","e0fff9119e1a5d2fdd46345734126cd6cb99c2d98a9debf0257047fe3937cc3f","d84398556ba4595ee6be554671da142cfe964cbdebb2f0c517a10f76f2b016c0","e275297155ec3251200abbb334c7f5641fecc68b2a9573e40eed50dff7584762","cd6a7c1c2a6461c6868601ca2144a41f8ee6d4a85d4b4cf1deb651e6c2ebc9e5","a5ff9638738de5605b52e777ee4d27112ac6d7aaf6f2aa38c750edb8c7516ad3","194adacd491e778e9cdcbf3e47a9656b8ef9c3cc51a4448bfddf6305d9645986","9aea9e19ab167201a1b9297ca13eab639ef6d7cb79189e5c0d13f4f69a500583","f90d85d4cb38445499bdb7e7b013e4f64d99d157a6fa0843e998495ceb27b520","2e178a87e7bf03a067cfb1cf5573e7c4899fcbc9f462a0b0c67d238e39b794a4","901becb8779e1089442378fda5623e607ee4588762a32e7692436f1ea81cf848","8286d84d2567b713fd6a1fdfbb1a0abc8cfa668ee1e0e83d7dd4ade5761f2750","f28dffc6bf9bbd8b9dc156aadb74d11de7faabf547eb9f0aebb8cd03e8750a6c","ca7f76d3ea132bde53dca1a0f33cda95397d20c248e452c050773f01504d9802","f8d7b963c6a7bdbc81e152375a1fcd6503d66f43d3693fd84f79d4f295429a00","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","09c4b2e2d3070239d563fc690f0cc5db04a2d9b66a23e61aef8b5274e3e9910c"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":false,"esModuleInterop":true,"importHelpers":true,"jsx":2,"module":1,"noEmitHelpers":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo"},"fileIdsList":[[73],[73,74,75,76,77],[73,75],[94,122,123],[88,122],[70],[91,94,114,122,127,128,129],[94,96,122,131],[133],[134,135],[134],[136],[114,122,140],[94,122],[54,122],[54,144,162],[143],[131],[122],[122,164,167],[47,172],[47,48,170,171],[172],[91,94,122,138,139],[124,139,140,175],[92,122],[91,122,179],[94,96,108,114,122],[182],[190],[184,190],[185,186,187,188,189],[132,191,192],[53,54,193],[91,94,96,99,108,114,122],[197],[197,198],[204,206],[229],[213,216,223,224,225,226],[216,219,227],[213,216,219,227],[213,216,219,223,224,226,227,228],[235],[232,233],[234],[91,122],[237,239,240,241,242,243,244,245,246,247,248,249],[237,238,240,241,242,243,244,245,246,247,248,249],[238,239,240,241,242,243,244,245,246,247,248,249],[237,238,239,241,242,243,244,245,246,247,248,249],[237,238,239,240,242,243,244,245,246,247,248,249],[237,238,239,240,241,243,244,245,246,247,248,249],[237,238,239,240,241,242,244,245,246,247,248,249],[237,238,239,240,241,242,243,245,246,247,248,249],[237,238,239,240,241,242,243,244,246,247,248,249],[237,238,239,240,241,242,243,244,245,247,248,249],[237,238,239,240,241,242,243,244,245,246,248,249],[237,238,239,240,241,242,243,244,245,246,247,249],[237,238,239,240,241,242,243,244,245,246,247,248],[255],[126],[94,114,122,261,262],[91,92,99,108],[83,91,99],[115],[87,92,100],[108],[89,91,99],[91],[91,93,108,114],[92],[99,108,114],[91,92,94,99,108,111,114],[94,108,111,114],[79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121],[114],[89,91,108],[81],[113],[106,115,117],[99],[105],[91,93,108,114,117],[272],[269,270,271],[108,122],[190,255,281],[190,255],[251,252,253,254],[94,108,122],[158,162],[291,330],[291,315,330],[330],[291],[291,316,330],[291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329],[316,330],[92,94,122],[92,176],[94,122,174],[83,122,180],[340],[111,122],[54,94,123],[54,94,96,125,141,175,176,332,359,365,366],[363],[361,362],[360,364],[94,99,114,122,176,196],[122,345,346,347,348,349,350,351,352,353,354,355],[344,345,354],[345,354],[335,344,345,354],[345],[87,344,354],[344,345,346,347,348,349,350,351,352,353,355],[53,87,122,131,191,343,356],[368],[210,211],[210],[209,211,213],[210,216,217],[209,213,214,215],[209,213,216,218],[209,213],[209],[209,210,212],[209,210,212,213,214,216,217,218],[91,92,122],[200,201],[200,201,202,203],[149],[149,160],[146,147,148,150,160],[153],[149,156,159,162],[152,162],[151,156,158,159,162],[146,147,148,149,150,151,153,154,155,156,159,162],[145,146,147,148,149,150,151,153,154,155,156,157,158,159,160,161],[145,162],[156,157,159,162],[149,155,159,162],[160],[205],[220],[219,220,221,222],[48,51],[51],[48,49,50],[57,58,59,60],[57],[58],[47,49,51,52,53,94,99,111],[45,72],[45,62,68,101],[71],[45,62,67],[54,55,56,61,105],[56],[63],[63,64,65,66]],"referencedMap":[[75,1],[78,2],[74,1],[76,3],[77,1],[124,4],[125,5],[71,6],[130,7],[132,8],[134,9],[136,10],[135,11],[137,12],[141,13],[123,14],[142,15],[163,16],[144,17],[143,18],[164,19],[168,20],[173,21],[172,22],[171,23],[140,24],[176,25],[177,26],[180,27],[167,28],[181,26],[183,29],[188,30],[189,30],[185,31],[186,31],[187,31],[190,32],[193,33],[195,34],[196,35],[198,36],[199,37],[207,38],[230,39],[227,40],[224,41],[225,42],[226,41],[229,43],[228,39],[232,44],[234,45],[235,46],[127,47],[236,15],[238,48],[239,49],[237,50],[240,51],[241,52],[242,53],[243,54],[244,55],[245,56],[246,57],[247,58],[248,59],[249,60],[250,29],[256,61],[257,62],[258,15],[260,26],[263,63],[83,64],[84,65],[85,66],[86,67],[87,68],[88,69],[90,70],[91,70],[92,71],[93,72],[94,73],[95,74],[96,75],[122,76],[97,70],[98,77],[99,78],[102,79],[103,80],[106,70],[107,81],[108,70],[111,82],[113,82],[114,83],[116,68],[119,84],[120,68],[273,85],[272,86],[276,87],[279,61],[280,61],[282,88],[283,88],[281,89],[284,61],[255,90],[285,19],[129,91],[288,92],[289,87],[315,93],[316,94],[291,95],[294,95],[313,93],[314,93],[304,96],[303,96],[301,93],[296,93],[309,93],[307,93],[311,93],[295,93],[308,93],[312,93],[297,93],[298,93],[310,93],[292,93],[299,93],[300,93],[302,93],[306,93],[317,97],[305,93],[293,93],[330,98],[324,97],[326,99],[325,97],[318,97],[319,97],[321,97],[323,97],[327,99],[328,99],[320,99],[322,99],[331,100],[332,101],[175,102],[333,87],[334,103],[341,104],[191,18],[342,105],[358,15],[359,106],[367,107],[362,14],[364,108],[363,109],[361,14],[365,110],[360,111],[356,112],[355,113],[346,114],[347,115],[348,115],[349,114],[350,114],[351,114],[352,116],[345,117],[353,113],[354,118],[357,119],[369,120],[212,121],[211,122],[210,123],[218,124],[216,125],[217,126],[214,127],[215,128],[213,129],[219,130],[366,131],[261,91],[202,132],[204,133],[203,132],[147,134],[146,135],[149,136],[154,137],[150,135],[155,138],[153,139],[157,140],[160,141],[162,142],[152,143],[158,144],[159,92],[156,145],[148,134],[151,146],[206,147],[220,128],[221,148],[223,149],[49,150],[52,151],[51,152],[61,153],[58,154],[59,155],[54,156],[46,157],[69,158],[72,159],[68,160],[62,161],[63,162],[64,163],[67,164],[66,163],[65,163]],"exportedModulesMap":[[75,1],[78,2],[74,1],[76,3],[77,1],[124,4],[125,5],[71,6],[130,7],[132,8],[134,9],[136,10],[135,11],[137,12],[141,13],[123,14],[142,15],[163,16],[144,17],[143,18],[164,19],[168,20],[173,21],[172,22],[171,23],[140,24],[176,25],[177,26],[180,27],[167,28],[181,26],[183,29],[188,30],[189,30],[185,31],[186,31],[187,31],[190,32],[193,33],[195,34],[196,35],[198,36],[199,37],[207,38],[230,39],[227,40],[224,41],[225,42],[226,41],[229,43],[228,39],[232,44],[234,45],[235,46],[127,47],[236,15],[238,48],[239,49],[237,50],[240,51],[241,52],[242,53],[243,54],[244,55],[245,56],[246,57],[247,58],[248,59],[249,60],[250,29],[256,61],[257,62],[258,15],[260,26],[263,63],[83,64],[84,65],[85,66],[86,67],[87,68],[88,69],[90,70],[91,70],[92,71],[93,72],[94,73],[95,74],[96,75],[122,76],[97,70],[98,77],[99,78],[102,79],[103,80],[106,70],[107,81],[108,70],[111,82],[113,82],[114,83],[116,68],[119,84],[120,68],[273,85],[272,86],[276,87],[279,61],[280,61],[282,88],[283,88],[281,89],[284,61],[255,90],[285,19],[129,91],[288,92],[289,87],[315,93],[316,94],[291,95],[294,95],[313,93],[314,93],[304,96],[303,96],[301,93],[296,93],[309,93],[307,93],[311,93],[295,93],[308,93],[312,93],[297,93],[298,93],[310,93],[292,93],[299,93],[300,93],[302,93],[306,93],[317,97],[305,93],[293,93],[330,98],[324,97],[326,99],[325,97],[318,97],[319,97],[321,97],[323,97],[327,99],[328,99],[320,99],[322,99],[331,100],[332,101],[175,102],[333,87],[334,103],[341,104],[191,18],[342,105],[358,15],[359,106],[367,107],[362,14],[364,108],[363,109],[361,14],[365,110],[360,111],[356,112],[355,113],[346,114],[347,115],[348,115],[349,114],[350,114],[351,114],[352,116],[345,117],[353,113],[354,118],[357,119],[369,120],[212,121],[211,122],[210,123],[218,124],[216,125],[217,126],[214,127],[215,128],[213,129],[219,130],[366,131],[261,91],[202,132],[204,133],[203,132],[147,134],[146,135],[149,136],[154,137],[150,135],[155,138],[153,139],[157,140],[160,141],[162,142],[152,143],[158,144],[159,92],[156,145],[148,134],[151,146],[206,147],[220,128],[221,148],[223,149],[49,150],[52,151],[51,152],[61,153],[58,154],[59,155],[54,156],[46,157],[69,158],[72,159],[68,160],[62,161],[63,162],[64,163],[67,164],[66,163],[65,163]],"semanticDiagnosticsPerFile":[75,73,78,74,76,77,124,125,126,71,130,132,134,136,135,133,137,141,123,142,163,144,143,164,165,166,168,169,173,170,172,171,47,140,176,177,178,180,167,181,183,184,188,189,185,186,187,190,194,193,195,128,196,197,198,199,207,208,230,227,224,225,226,229,228,48,231,232,234,233,235,127,236,238,239,237,240,241,242,243,244,245,246,247,248,249,250,256,257,174,258,179,259,260,262,263,79,81,82,83,84,85,86,87,88,89,90,91,92,93,80,121,94,95,96,122,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,264,265,266,267,268,273,269,270,272,271,274,275,276,253,277,139,138,278,279,280,282,283,281,284,251,255,192,285,129,286,287,288,289,290,254,315,316,291,294,313,314,304,303,301,296,309,307,311,295,308,312,297,298,310,292,299,300,302,306,317,305,293,330,329,324,326,325,318,319,321,323,327,328,320,322,331,332,175,333,334,335,336,337,338,339,341,340,191,182,342,358,359,367,362,364,363,361,365,360,356,355,346,347,348,349,350,351,352,345,353,354,344,357,368,369,50,343,212,211,210,218,216,217,214,215,213,219,209,366,252,261,200,202,204,203,201,56,70,147,146,149,154,150,155,153,157,161,160,162,152,158,159,156,148,151,206,205,220,221,222,223,49,52,51,145,131,53,45,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,41,42,43,1,9,44,57,60,61,58,59,54,46,69,72,68,55,62,63,64,67,66,65]},"version":"4.4.3"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { features as bubleFeatures, TransformOptions, TransformOutput } from '@philpl/buble';
|
|
8
|
+
export { bubleFeatures as features };
|
|
9
|
+
export declare function transform(source: string, options: TransformOptions): TransformOutput;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.transform = exports.features = void 0;
|
|
10
|
+
// fork of Buble which removes Buble's large dependency and weighs in
|
|
11
|
+
// at a smaller size of ~51kB
|
|
12
|
+
// https://github.com/FormidableLabs/react-live#what-bundle-size-can-i-expect
|
|
13
|
+
const buble_1 = require("@philpl/buble");
|
|
14
|
+
Object.defineProperty(exports, "features", { enumerable: true, get: function () { return buble_1.features; } });
|
|
15
|
+
function transform(source, options) {
|
|
16
|
+
return (0, buble_1.transform)(source, {
|
|
17
|
+
...options,
|
|
18
|
+
transforms: {
|
|
19
|
+
asyncAwait: false,
|
|
20
|
+
classes: false,
|
|
21
|
+
getterSetter: false,
|
|
22
|
+
...options.transforms,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
exports.transform = transform;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { Plugin } from '@docusaurus/types';
|
|
8
|
+
export default function theme(): Plugin;
|
|
9
|
+
export { validateThemeConfig } from './validateThemeConfig';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.validateThemeConfig = void 0;
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
const path_1 = (0, tslib_1.__importDefault)(require("path"));
|
|
12
|
+
function theme() {
|
|
13
|
+
return {
|
|
14
|
+
name: 'docusaurus-theme-live-codeblock',
|
|
15
|
+
getThemePath() {
|
|
16
|
+
return path_1.default.resolve(__dirname, './theme');
|
|
17
|
+
},
|
|
18
|
+
configureWebpack() {
|
|
19
|
+
return {
|
|
20
|
+
resolve: {
|
|
21
|
+
alias: {
|
|
22
|
+
buble: path_1.default.resolve(__dirname, './custom-buble.js'),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
exports.default = theme;
|
|
30
|
+
var validateThemeConfig_1 = require("./validateThemeConfig");
|
|
31
|
+
Object.defineProperty(exports, "validateThemeConfig", { enumerable: true, get: function () { return validateThemeConfig_1.validateThemeConfig; } });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import Playground from '@theme/Playground';
|
|
10
|
+
import ReactLiveScope from '@theme/ReactLiveScope';
|
|
11
|
+
import CodeBlock from '@theme-init/CodeBlock';
|
|
12
|
+
|
|
13
|
+
const withLiveEditor = (Component) => {
|
|
14
|
+
const WrappedComponent = (props) => {
|
|
15
|
+
if (props.live) {
|
|
16
|
+
return <Playground scope={ReactLiveScope} {...props} />;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return <Component {...props} />;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
return WrappedComponent;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default withLiveEditor(CodeBlock);
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import {LiveProvider, LiveEditor, LiveError, LivePreview} from 'react-live';
|
|
10
|
+
import clsx from 'clsx';
|
|
11
|
+
import Translate from '@docusaurus/Translate';
|
|
12
|
+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
13
|
+
import BrowserOnly from '@docusaurus/BrowserOnly';
|
|
14
|
+
import usePrismTheme from '@theme/hooks/usePrismTheme';
|
|
15
|
+
import styles from './styles.module.css';
|
|
16
|
+
import useIsBrowser from '@docusaurus/core/lib/client/exports/useIsBrowser';
|
|
17
|
+
|
|
18
|
+
function Header({children}) {
|
|
19
|
+
return <div className={clsx(styles.playgroundHeader)}>{children}</div>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function LivePreviewLoader() {
|
|
23
|
+
// Is it worth improving/translating?
|
|
24
|
+
return <div>Loading...</div>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function ResultWithHeader() {
|
|
28
|
+
return (
|
|
29
|
+
<>
|
|
30
|
+
<Header>
|
|
31
|
+
<Translate
|
|
32
|
+
id="theme.Playground.result"
|
|
33
|
+
description="The result label of the live codeblocks">
|
|
34
|
+
Result
|
|
35
|
+
</Translate>
|
|
36
|
+
</Header>
|
|
37
|
+
{/* https://github.com/facebook/docusaurus/issues/5747 */}
|
|
38
|
+
<div className={styles.playgroundPreview}>
|
|
39
|
+
<BrowserOnly fallback={<LivePreviewLoader />}>
|
|
40
|
+
{() => (
|
|
41
|
+
<>
|
|
42
|
+
<LivePreview />
|
|
43
|
+
<LiveError />
|
|
44
|
+
</>
|
|
45
|
+
)}
|
|
46
|
+
</BrowserOnly>
|
|
47
|
+
</div>
|
|
48
|
+
</>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function ThemedLiveEditor() {
|
|
53
|
+
const isBrowser = useIsBrowser();
|
|
54
|
+
return (
|
|
55
|
+
<LiveEditor
|
|
56
|
+
// We force remount the editor on hydration,
|
|
57
|
+
// otherwise dark prism theme is not applied
|
|
58
|
+
key={isBrowser}
|
|
59
|
+
className={styles.playgroundEditor}
|
|
60
|
+
/>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function EditorWithHeader() {
|
|
65
|
+
return (
|
|
66
|
+
<>
|
|
67
|
+
<Header>
|
|
68
|
+
<Translate
|
|
69
|
+
id="theme.Playground.liveEditor"
|
|
70
|
+
description="The live editor label of the live codeblocks">
|
|
71
|
+
Live Editor
|
|
72
|
+
</Translate>
|
|
73
|
+
</Header>
|
|
74
|
+
<ThemedLiveEditor />
|
|
75
|
+
</>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export default function Playground({children, transformCode, ...props}) {
|
|
80
|
+
const {
|
|
81
|
+
siteConfig: {
|
|
82
|
+
themeConfig: {
|
|
83
|
+
liveCodeBlock: {playgroundPosition},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
} = useDocusaurusContext();
|
|
87
|
+
const prismTheme = usePrismTheme();
|
|
88
|
+
|
|
89
|
+
return (
|
|
90
|
+
<div className={styles.playgroundContainer}>
|
|
91
|
+
<LiveProvider
|
|
92
|
+
code={children.replace(/\n$/, '')}
|
|
93
|
+
transformCode={transformCode || ((code) => `${code};`)}
|
|
94
|
+
theme={prismTheme}
|
|
95
|
+
{...props}>
|
|
96
|
+
{playgroundPosition === 'top' ? (
|
|
97
|
+
<>
|
|
98
|
+
<ResultWithHeader />
|
|
99
|
+
<EditorWithHeader />
|
|
100
|
+
</>
|
|
101
|
+
) : (
|
|
102
|
+
<>
|
|
103
|
+
<EditorWithHeader />
|
|
104
|
+
<ResultWithHeader />
|
|
105
|
+
</>
|
|
106
|
+
)}
|
|
107
|
+
</LiveProvider>
|
|
108
|
+
</div>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.playgroundContainer {
|
|
9
|
+
margin-bottom: var(--ifm-leading);
|
|
10
|
+
border-radius: var(--ifm-global-radius);
|
|
11
|
+
box-shadow: var(--ifm-global-shadow-lw);
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.playgroundHeader {
|
|
16
|
+
letter-spacing: 0.08rem;
|
|
17
|
+
padding: 0.75rem;
|
|
18
|
+
text-transform: uppercase;
|
|
19
|
+
font-weight: bold;
|
|
20
|
+
background: var(--ifm-color-emphasis-200);
|
|
21
|
+
color: var(--ifm-color-content);
|
|
22
|
+
font-size: var(--ifm-code-font-size);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.playgroundHeader:first-of-type {
|
|
26
|
+
background: var(--ifm-color-emphasis-600);
|
|
27
|
+
color: var(--ifm-color-content-inverse);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.playgroundEditor {
|
|
31
|
+
font: var(--ifm-code-font-size) / var(--ifm-pre-line-height)
|
|
32
|
+
var(--ifm-font-family-monospace) !important;
|
|
33
|
+
/*rtl:ignore*/
|
|
34
|
+
direction: ltr;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.playgroundPreview {
|
|
38
|
+
padding: 1rem;
|
|
39
|
+
background-color: var(--ifm-pre-background);
|
|
40
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React from 'react';
|
|
9
|
+
|
|
10
|
+
// Add react-live imports you need here
|
|
11
|
+
const ReactLiveScope = {
|
|
12
|
+
React,
|
|
13
|
+
...React,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default ReactLiveScope;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { Joi } from '@docusaurus/utils-validation';
|
|
8
|
+
import type { ThemeConfig, Validate, ValidationResult } from '@docusaurus/types';
|
|
9
|
+
declare const DEFAULT_CONFIG: {
|
|
10
|
+
playgroundPosition: string;
|
|
11
|
+
};
|
|
12
|
+
declare const Schema: Joi.ObjectSchema<any>;
|
|
13
|
+
declare function validateThemeConfig({ validate, themeConfig, }: {
|
|
14
|
+
validate: Validate<ThemeConfig>;
|
|
15
|
+
themeConfig: ThemeConfig;
|
|
16
|
+
}): ValidationResult<ThemeConfig>;
|
|
17
|
+
export { DEFAULT_CONFIG, Schema, validateThemeConfig };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.validateThemeConfig = exports.Schema = exports.DEFAULT_CONFIG = void 0;
|
|
10
|
+
const utils_validation_1 = require("@docusaurus/utils-validation");
|
|
11
|
+
const DEFAULT_CONFIG = {
|
|
12
|
+
playgroundPosition: 'bottom',
|
|
13
|
+
};
|
|
14
|
+
exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
|
|
15
|
+
const Schema = utils_validation_1.Joi.object({
|
|
16
|
+
liveCodeBlock: utils_validation_1.Joi.object({
|
|
17
|
+
playgroundPosition: utils_validation_1.Joi.string()
|
|
18
|
+
.equal('top', 'bottom')
|
|
19
|
+
.default(DEFAULT_CONFIG.playgroundPosition),
|
|
20
|
+
})
|
|
21
|
+
.label('themeConfig.liveCodeBlock')
|
|
22
|
+
.default(DEFAULT_CONFIG),
|
|
23
|
+
});
|
|
24
|
+
exports.Schema = Schema;
|
|
25
|
+
function validateThemeConfig({ validate, themeConfig, }) {
|
|
26
|
+
return validate(Schema, themeConfig);
|
|
27
|
+
}
|
|
28
|
+
exports.validateThemeConfig = validateThemeConfig;
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-live-codeblock",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.9",
|
|
4
4
|
"description": "Docusaurus live code block component.",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "lib/index.js",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc && node copyUntypedFiles.js",
|
|
11
|
+
"watch": "node copyUntypedFiles.js && tsc --watch"
|
|
12
|
+
},
|
|
9
13
|
"repository": {
|
|
10
14
|
"type": "git",
|
|
11
15
|
"url": "https://github.com/facebook/docusaurus.git",
|
|
@@ -13,20 +17,25 @@
|
|
|
13
17
|
},
|
|
14
18
|
"license": "MIT",
|
|
15
19
|
"dependencies": {
|
|
16
|
-
"@docusaurus/core": "2.0.0-beta.
|
|
17
|
-
"@docusaurus/utils-validation": "2.0.0-beta.
|
|
20
|
+
"@docusaurus/core": "2.0.0-beta.9",
|
|
21
|
+
"@docusaurus/utils-validation": "2.0.0-beta.9",
|
|
18
22
|
"@philpl/buble": "^0.19.7",
|
|
19
23
|
"clsx": "^1.1.1",
|
|
20
|
-
"
|
|
24
|
+
"fs-extra": "^10.0.0",
|
|
25
|
+
"parse-numeric-range": "^1.3.0",
|
|
21
26
|
"prism-react-renderer": "^1.2.1",
|
|
22
|
-
"react-live": "
|
|
27
|
+
"react-live": "2.2.3"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@docusaurus/types": "2.0.0-beta.9",
|
|
31
|
+
"@types/buble": "^0.20.1"
|
|
23
32
|
},
|
|
24
33
|
"peerDependencies": {
|
|
25
34
|
"react": "^16.8.4 || ^17.0.0",
|
|
26
35
|
"react-dom": "^16.8.4 || ^17.0.0"
|
|
27
36
|
},
|
|
28
37
|
"engines": {
|
|
29
|
-
"node": ">=
|
|
38
|
+
"node": ">=14"
|
|
30
39
|
},
|
|
31
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "8a491fc29ad002f90e97f5b5fe4178ac8fa0c4d7"
|
|
32
41
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
import {validateThemeConfig, DEFAULT_CONFIG} from '../validateThemeConfig';
|
|
9
9
|
|
|
10
10
|
function testValidateThemeConfig(themeConfig) {
|
|
11
11
|
function validate(schema, cfg) {
|
|
@@ -8,13 +8,29 @@
|
|
|
8
8
|
// fork of Buble which removes Buble's large dependency and weighs in
|
|
9
9
|
// at a smaller size of ~51kB
|
|
10
10
|
// https://github.com/FormidableLabs/react-live#what-bundle-size-can-i-expect
|
|
11
|
-
|
|
11
|
+
import {
|
|
12
|
+
transform as bubleTransform,
|
|
13
|
+
features as bubleFeatures,
|
|
14
|
+
TransformOptions,
|
|
15
|
+
TransformOutput,
|
|
16
|
+
} from '@philpl/buble';
|
|
12
17
|
|
|
13
18
|
// This file is designed to mimic what's written in
|
|
14
19
|
// https://github.com/kitten/buble/blob/mini/src/index.js, with custom transforms options,
|
|
15
20
|
// so that webpack can consume it correctly.
|
|
16
|
-
|
|
21
|
+
export {bubleFeatures as features};
|
|
17
22
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
export function transform(
|
|
24
|
+
source: string,
|
|
25
|
+
options: TransformOptions,
|
|
26
|
+
): TransformOutput {
|
|
27
|
+
return bubleTransform(source, {
|
|
28
|
+
...options,
|
|
29
|
+
transforms: {
|
|
30
|
+
asyncAwait: false,
|
|
31
|
+
classes: false,
|
|
32
|
+
getterSetter: false,
|
|
33
|
+
...options.transforms,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import path from 'path';
|
|
9
|
+
import {Plugin} from '@docusaurus/types';
|
|
10
10
|
|
|
11
|
-
function theme() {
|
|
11
|
+
export default function theme(): Plugin {
|
|
12
12
|
return {
|
|
13
13
|
name: 'docusaurus-theme-live-codeblock',
|
|
14
14
|
|
|
@@ -28,6 +28,4 @@ function theme() {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
theme.validateThemeConfig = validateThemeConfig;
|
|
31
|
+
export {validateThemeConfig} from './validateThemeConfig';
|
|
@@ -10,13 +10,20 @@ import {LiveProvider, LiveEditor, LiveError, LivePreview} from 'react-live';
|
|
|
10
10
|
import clsx from 'clsx';
|
|
11
11
|
import Translate from '@docusaurus/Translate';
|
|
12
12
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
13
|
+
import BrowserOnly from '@docusaurus/BrowserOnly';
|
|
13
14
|
import usePrismTheme from '@theme/hooks/usePrismTheme';
|
|
14
15
|
import styles from './styles.module.css';
|
|
16
|
+
import useIsBrowser from '@docusaurus/core/lib/client/exports/useIsBrowser';
|
|
15
17
|
|
|
16
18
|
function Header({children}) {
|
|
17
19
|
return <div className={clsx(styles.playgroundHeader)}>{children}</div>;
|
|
18
20
|
}
|
|
19
21
|
|
|
22
|
+
function LivePreviewLoader() {
|
|
23
|
+
// Is it worth improving/translating?
|
|
24
|
+
return <div>Loading...</div>;
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
function ResultWithHeader() {
|
|
21
28
|
return (
|
|
22
29
|
<>
|
|
@@ -27,14 +34,33 @@ function ResultWithHeader() {
|
|
|
27
34
|
Result
|
|
28
35
|
</Translate>
|
|
29
36
|
</Header>
|
|
37
|
+
{/* https://github.com/facebook/docusaurus/issues/5747 */}
|
|
30
38
|
<div className={styles.playgroundPreview}>
|
|
31
|
-
<
|
|
32
|
-
|
|
39
|
+
<BrowserOnly fallback={<LivePreviewLoader />}>
|
|
40
|
+
{() => (
|
|
41
|
+
<>
|
|
42
|
+
<LivePreview />
|
|
43
|
+
<LiveError />
|
|
44
|
+
</>
|
|
45
|
+
)}
|
|
46
|
+
</BrowserOnly>
|
|
33
47
|
</div>
|
|
34
48
|
</>
|
|
35
49
|
);
|
|
36
50
|
}
|
|
37
51
|
|
|
52
|
+
function ThemedLiveEditor() {
|
|
53
|
+
const isBrowser = useIsBrowser();
|
|
54
|
+
return (
|
|
55
|
+
<LiveEditor
|
|
56
|
+
// We force remount the editor on hydration,
|
|
57
|
+
// otherwise dark prism theme is not applied
|
|
58
|
+
key={isBrowser}
|
|
59
|
+
className={styles.playgroundEditor}
|
|
60
|
+
/>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
38
64
|
function EditorWithHeader() {
|
|
39
65
|
return (
|
|
40
66
|
<>
|
|
@@ -45,14 +71,13 @@ function EditorWithHeader() {
|
|
|
45
71
|
Live Editor
|
|
46
72
|
</Translate>
|
|
47
73
|
</Header>
|
|
48
|
-
<
|
|
74
|
+
<ThemedLiveEditor />
|
|
49
75
|
</>
|
|
50
76
|
);
|
|
51
77
|
}
|
|
52
78
|
|
|
53
79
|
export default function Playground({children, transformCode, ...props}) {
|
|
54
80
|
const {
|
|
55
|
-
isClient,
|
|
56
81
|
siteConfig: {
|
|
57
82
|
themeConfig: {
|
|
58
83
|
liveCodeBlock: {playgroundPosition},
|
|
@@ -64,8 +89,7 @@ export default function Playground({children, transformCode, ...props}) {
|
|
|
64
89
|
return (
|
|
65
90
|
<div className={styles.playgroundContainer}>
|
|
66
91
|
<LiveProvider
|
|
67
|
-
|
|
68
|
-
code={isClient ? children.replace(/\n$/, '') : ''}
|
|
92
|
+
code={children.replace(/\n$/, '')}
|
|
69
93
|
transformCode={transformCode || ((code) => `${code};`)}
|
|
70
94
|
theme={prismTheme}
|
|
71
95
|
{...props}>
|
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare module '@philpl/buble' {
|
|
9
|
+
import type {TransformOptions as OriginalTransformOptions} from 'buble';
|
|
10
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
11
|
+
export * from 'buble';
|
|
12
|
+
export const features: string[];
|
|
13
|
+
export interface TransformOptions extends OriginalTransformOptions {
|
|
14
|
+
transforms?: OriginalTransformOptions['transforms'] & {
|
|
15
|
+
asyncAwait?: boolean;
|
|
16
|
+
getterSetter?: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
import {Joi} from '@docusaurus/utils-validation';
|
|
9
|
+
import type {ThemeConfig, Validate, ValidationResult} from '@docusaurus/types';
|
|
9
10
|
|
|
10
11
|
const DEFAULT_CONFIG = {
|
|
11
12
|
playgroundPosition: 'bottom',
|
|
12
13
|
};
|
|
13
|
-
exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
|
|
14
14
|
|
|
15
15
|
const Schema = Joi.object({
|
|
16
16
|
liveCodeBlock: Joi.object({
|
|
@@ -21,8 +21,15 @@ const Schema = Joi.object({
|
|
|
21
21
|
.label('themeConfig.liveCodeBlock')
|
|
22
22
|
.default(DEFAULT_CONFIG),
|
|
23
23
|
});
|
|
24
|
-
exports.Schema = Schema;
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
function validateThemeConfig({
|
|
26
|
+
validate,
|
|
27
|
+
themeConfig,
|
|
28
|
+
}: {
|
|
29
|
+
validate: Validate<ThemeConfig>;
|
|
30
|
+
themeConfig: ThemeConfig;
|
|
31
|
+
}): ValidationResult<ThemeConfig> {
|
|
27
32
|
return validate(Schema, themeConfig);
|
|
28
|
-
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {DEFAULT_CONFIG, Schema, validateThemeConfig};
|