@depup/gatsby 5.16.1-depup.0
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/LICENSE +22 -0
- package/README.md +142 -0
- package/adapters.js +31 -0
- package/apis.json +73 -0
- package/cache-dir/.eslintrc.json +10 -0
- package/cache-dir/api-runner-browser-plugins.js +14 -0
- package/cache-dir/api-runner-browser.js +52 -0
- package/cache-dir/api-runner-ssr.js +88 -0
- package/cache-dir/api-ssr-docs.js +207 -0
- package/cache-dir/app.js +249 -0
- package/cache-dir/blank.css +0 -0
- package/cache-dir/commonjs/api-runner-browser-plugins.js +17 -0
- package/cache-dir/commonjs/api-runner-browser-plugins.js.map +1 -0
- package/cache-dir/commonjs/api-runner-browser.js +49 -0
- package/cache-dir/commonjs/api-runner-browser.js.map +1 -0
- package/cache-dir/commonjs/api-runner-ssr.js +88 -0
- package/cache-dir/commonjs/api-runner-ssr.js.map +1 -0
- package/cache-dir/commonjs/api-ssr-docs.js +210 -0
- package/cache-dir/commonjs/api-ssr-docs.js.map +1 -0
- package/cache-dir/commonjs/app.js +197 -0
- package/cache-dir/commonjs/app.js.map +1 -0
- package/cache-dir/commonjs/context-utils.js +25 -0
- package/cache-dir/commonjs/context-utils.js.map +1 -0
- package/cache-dir/commonjs/create-content-digest-browser-shim.js +4 -0
- package/cache-dir/commonjs/create-content-digest-browser-shim.js.map +1 -0
- package/cache-dir/commonjs/css-to-object.js +21 -0
- package/cache-dir/commonjs/css-to-object.js.map +1 -0
- package/cache-dir/commonjs/debug-log.js +11 -0
- package/cache-dir/commonjs/debug-log.js.map +1 -0
- package/cache-dir/commonjs/default-html.js +33 -0
- package/cache-dir/commonjs/default-html.js.map +1 -0
- package/cache-dir/commonjs/dev-loader.js +247 -0
- package/cache-dir/commonjs/dev-loader.js.map +1 -0
- package/cache-dir/commonjs/develop-static-entry.js +129 -0
- package/cache-dir/commonjs/develop-static-entry.js.map +1 -0
- package/cache-dir/commonjs/dummy.js +8 -0
- package/cache-dir/commonjs/dummy.js.map +1 -0
- package/cache-dir/commonjs/emitter.js +10 -0
- package/cache-dir/commonjs/emitter.js.map +1 -0
- package/cache-dir/commonjs/ensure-resources.js +107 -0
- package/cache-dir/commonjs/ensure-resources.js.map +1 -0
- package/cache-dir/commonjs/error-overlay-handler.js +35 -0
- package/cache-dir/commonjs/error-overlay-handler.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/accordion.js +80 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/accordion.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/build-error.js +44 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/build-error.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/code-frame.js +38 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/code-frame.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/dev-ssr-error.js +52 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/dev-ssr-error.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/error-boundary.js +31 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/error-boundary.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/getserverdata-error.js +47 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/getserverdata-error.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/graphql-errors.js +77 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/graphql-errors.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/hooks.js +93 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/hooks.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/overlay.js +147 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/overlay.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/runtime-errors.js +110 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/runtime-errors.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/use-id.js +50 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/use-id.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/focus-trap.js +2879 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/focus-trap.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/keys.js +84 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/keys.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/lock-body.js +48 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/lock-body.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/match.js +44 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/match.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/index.js +182 -0
- package/cache-dir/commonjs/fast-refresh-overlay/index.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/style.js +418 -0
- package/cache-dir/commonjs/fast-refresh-overlay/style.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/utils.js +75 -0
- package/cache-dir/commonjs/fast-refresh-overlay/utils.js.map +1 -0
- package/cache-dir/commonjs/find-path.js +145 -0
- package/cache-dir/commonjs/find-path.js.map +1 -0
- package/cache-dir/commonjs/gatsby-browser-entry.js +52 -0
- package/cache-dir/commonjs/gatsby-browser-entry.js.map +1 -0
- package/cache-dir/commonjs/head/components/fire-callback-in-effect.js +18 -0
- package/cache-dir/commonjs/head/components/fire-callback-in-effect.js.map +1 -0
- package/cache-dir/commonjs/head/components/head-components.js +72 -0
- package/cache-dir/commonjs/head/components/head-components.js.map +1 -0
- package/cache-dir/commonjs/head/constants.js +13 -0
- package/cache-dir/commonjs/head/constants.js.map +1 -0
- package/cache-dir/commonjs/head/head-export-handler-for-browser.js +144 -0
- package/cache-dir/commonjs/head/head-export-handler-for-browser.js.map +1 -0
- package/cache-dir/commonjs/head/head-export-handler-for-ssr.js +225 -0
- package/cache-dir/commonjs/head/head-export-handler-for-ssr.js.map +1 -0
- package/cache-dir/commonjs/head/utils.js +264 -0
- package/cache-dir/commonjs/head/utils.js.map +1 -0
- package/cache-dir/commonjs/loader.js +861 -0
- package/cache-dir/commonjs/loader.js.map +1 -0
- package/cache-dir/commonjs/loading-indicator/index.js +25 -0
- package/cache-dir/commonjs/loading-indicator/index.js.map +1 -0
- package/cache-dir/commonjs/loading-indicator/indicator.js +63 -0
- package/cache-dir/commonjs/loading-indicator/indicator.js.map +1 -0
- package/cache-dir/commonjs/loading-indicator/style.js +103 -0
- package/cache-dir/commonjs/loading-indicator/style.js.map +1 -0
- package/cache-dir/commonjs/navigation.js +260 -0
- package/cache-dir/commonjs/navigation.js.map +1 -0
- package/cache-dir/commonjs/normalize-page-path.js +22 -0
- package/cache-dir/commonjs/normalize-page-path.js.map +1 -0
- package/cache-dir/commonjs/page-renderer.js +59 -0
- package/cache-dir/commonjs/page-renderer.js.map +1 -0
- package/cache-dir/commonjs/pages.json +1 -0
- package/cache-dir/commonjs/polyfill-entry.js +7 -0
- package/cache-dir/commonjs/polyfill-entry.js.map +1 -0
- package/cache-dir/commonjs/prefetch.js +67 -0
- package/cache-dir/commonjs/prefetch.js.map +1 -0
- package/cache-dir/commonjs/production-app.js +256 -0
- package/cache-dir/commonjs/production-app.js.map +1 -0
- package/cache-dir/commonjs/public-page-renderer-dev.js +26 -0
- package/cache-dir/commonjs/public-page-renderer-dev.js.map +1 -0
- package/cache-dir/commonjs/public-page-renderer-prod.js +30 -0
- package/cache-dir/commonjs/public-page-renderer-prod.js.map +1 -0
- package/cache-dir/commonjs/public-page-renderer.js +11 -0
- package/cache-dir/commonjs/public-page-renderer.js.map +1 -0
- package/cache-dir/commonjs/query-result-store.js +160 -0
- package/cache-dir/commonjs/query-result-store.js.map +1 -0
- package/cache-dir/commonjs/react-dom-utils.js +34 -0
- package/cache-dir/commonjs/react-dom-utils.js.map +1 -0
- package/cache-dir/commonjs/react-lifecycles-compat.js +4 -0
- package/cache-dir/commonjs/react-lifecycles-compat.js.map +1 -0
- package/cache-dir/commonjs/redirect-utils.js +25 -0
- package/cache-dir/commonjs/redirect-utils.js.map +1 -0
- package/cache-dir/commonjs/redirects.json +1 -0
- package/cache-dir/commonjs/register-service-worker.js +66 -0
- package/cache-dir/commonjs/register-service-worker.js.map +1 -0
- package/cache-dir/commonjs/root.js +105 -0
- package/cache-dir/commonjs/root.js.map +1 -0
- package/cache-dir/commonjs/route-announcer-props.js +24 -0
- package/cache-dir/commonjs/route-announcer-props.js.map +1 -0
- package/cache-dir/commonjs/server-utils/writable-as-promise.js +42 -0
- package/cache-dir/commonjs/server-utils/writable-as-promise.js.map +1 -0
- package/cache-dir/commonjs/shadow-portal.js +36 -0
- package/cache-dir/commonjs/shadow-portal.js.map +1 -0
- package/cache-dir/commonjs/slice/context.js +15 -0
- package/cache-dir/commonjs/slice/context.js.map +1 -0
- package/cache-dir/commonjs/slice/inline-slice.js +34 -0
- package/cache-dir/commonjs/slice/inline-slice.js.map +1 -0
- package/cache-dir/commonjs/slice/server-slice-renderer.js +29 -0
- package/cache-dir/commonjs/slice/server-slice-renderer.js.map +1 -0
- package/cache-dir/commonjs/slice/server-slice.js +54 -0
- package/cache-dir/commonjs/slice/server-slice.js.map +1 -0
- package/cache-dir/commonjs/slice.js +124 -0
- package/cache-dir/commonjs/slice.js.map +1 -0
- package/cache-dir/commonjs/socketIo.js +62 -0
- package/cache-dir/commonjs/socketIo.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/child_process.js +8 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/child_process.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/fs.js +7 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/fs.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http.js +9 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http2.js +7 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http2.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/https.js +9 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/https.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js +55 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js.map +1 -0
- package/cache-dir/commonjs/ssr-develop-static-entry.js +366 -0
- package/cache-dir/commonjs/ssr-develop-static-entry.js.map +1 -0
- package/cache-dir/commonjs/static-entry.js +544 -0
- package/cache-dir/commonjs/static-entry.js.map +1 -0
- package/cache-dir/commonjs/static-query.js +74 -0
- package/cache-dir/commonjs/static-query.js.map +1 -0
- package/cache-dir/commonjs/strip-prefix.js +22 -0
- package/cache-dir/commonjs/strip-prefix.js.map +1 -0
- package/cache-dir/context-utils.js +29 -0
- package/cache-dir/create-content-digest-browser-shim.js +1 -0
- package/cache-dir/css-to-object.js +19 -0
- package/cache-dir/debug-log.js +13 -0
- package/cache-dir/default-html.js +36 -0
- package/cache-dir/dev-loader.js +280 -0
- package/cache-dir/develop-static-entry.js +129 -0
- package/cache-dir/dummy.js +2 -0
- package/cache-dir/emitter.js +4 -0
- package/cache-dir/ensure-resources.js +119 -0
- package/cache-dir/error-overlay-handler.js +36 -0
- package/cache-dir/fast-refresh-overlay/components/accordion.js +83 -0
- package/cache-dir/fast-refresh-overlay/components/build-error.js +46 -0
- package/cache-dir/fast-refresh-overlay/components/code-frame.js +38 -0
- package/cache-dir/fast-refresh-overlay/components/dev-ssr-error.js +66 -0
- package/cache-dir/fast-refresh-overlay/components/error-boundary.js +28 -0
- package/cache-dir/fast-refresh-overlay/components/getserverdata-error.js +53 -0
- package/cache-dir/fast-refresh-overlay/components/graphql-errors.js +100 -0
- package/cache-dir/fast-refresh-overlay/components/hooks.js +102 -0
- package/cache-dir/fast-refresh-overlay/components/overlay.js +143 -0
- package/cache-dir/fast-refresh-overlay/components/runtime-errors.js +139 -0
- package/cache-dir/fast-refresh-overlay/components/use-id.js +56 -0
- package/cache-dir/fast-refresh-overlay/helpers/focus-trap.js +3561 -0
- package/cache-dir/fast-refresh-overlay/helpers/keys.js +80 -0
- package/cache-dir/fast-refresh-overlay/helpers/lock-body.js +52 -0
- package/cache-dir/fast-refresh-overlay/helpers/match.js +42 -0
- package/cache-dir/fast-refresh-overlay/index.js +147 -0
- package/cache-dir/fast-refresh-overlay/style.js +413 -0
- package/cache-dir/fast-refresh-overlay/utils.js +81 -0
- package/cache-dir/find-path.js +160 -0
- package/cache-dir/gatsby-browser-entry.js +27 -0
- package/cache-dir/head/components/fire-callback-in-effect.js +12 -0
- package/cache-dir/head/components/head-components.js +86 -0
- package/cache-dir/head/constants.js +15 -0
- package/cache-dir/head/head-export-handler-for-browser.js +170 -0
- package/cache-dir/head/head-export-handler-for-ssr.js +237 -0
- package/cache-dir/head/utils.js +287 -0
- package/cache-dir/loader.js +977 -0
- package/cache-dir/loading-indicator/index.js +19 -0
- package/cache-dir/loading-indicator/indicator.js +65 -0
- package/cache-dir/loading-indicator/style.js +99 -0
- package/cache-dir/navigation.js +257 -0
- package/cache-dir/normalize-page-path.js +17 -0
- package/cache-dir/page-renderer.js +59 -0
- package/cache-dir/page-ssr/index.d.ts +76 -0
- package/cache-dir/pages.json +1 -0
- package/cache-dir/polyfill-entry.js +5 -0
- package/cache-dir/prefetch.js +80 -0
- package/cache-dir/production-app.js +340 -0
- package/cache-dir/public-page-renderer-dev.js +21 -0
- package/cache-dir/public-page-renderer-prod.js +25 -0
- package/cache-dir/public-page-renderer.js +9 -0
- package/cache-dir/query-engine/index.d.ts +31 -0
- package/cache-dir/query-result-store.js +197 -0
- package/cache-dir/react-dom-utils.js +38 -0
- package/cache-dir/react-lifecycles-compat.js +1 -0
- package/cache-dir/redirect-utils.js +22 -0
- package/cache-dir/redirects.json +1 -0
- package/cache-dir/register-service-worker.js +64 -0
- package/cache-dir/root.js +147 -0
- package/cache-dir/route-announcer-props.js +18 -0
- package/cache-dir/server-utils/writable-as-promise.js +41 -0
- package/cache-dir/shadow-portal.js +28 -0
- package/cache-dir/slice/context.js +13 -0
- package/cache-dir/slice/inline-slice.js +34 -0
- package/cache-dir/slice/server-slice-renderer.js +28 -0
- package/cache-dir/slice/server-slice.js +52 -0
- package/cache-dir/slice.js +158 -0
- package/cache-dir/socketIo.js +58 -0
- package/cache-dir/ssr-builtin-trackers/child_process.js +4 -0
- package/cache-dir/ssr-builtin-trackers/fs.js +3 -0
- package/cache-dir/ssr-builtin-trackers/http.js +3 -0
- package/cache-dir/ssr-builtin-trackers/http2.js +3 -0
- package/cache-dir/ssr-builtin-trackers/https.js +3 -0
- package/cache-dir/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js +64 -0
- package/cache-dir/ssr-develop-static-entry.js +428 -0
- package/cache-dir/static-entry.js +594 -0
- package/cache-dir/static-query.js +91 -0
- package/cache-dir/strip-prefix.js +20 -0
- package/changes.json +454 -0
- package/cli.js +3 -0
- package/dist/bin/gatsby.js +5 -0
- package/dist/bin/gatsby.js.map +1 -0
- package/dist/bootstrap/__mocks__/get-config/ts/gatsby-config.d.ts +3 -0
- package/dist/bootstrap/__mocks__/resolve-module-exports.d.ts +1 -0
- package/dist/bootstrap/create-graphql-runner.d.ts +10 -0
- package/dist/bootstrap/create-graphql-runner.js +71 -0
- package/dist/bootstrap/create-graphql-runner.js.map +1 -0
- package/dist/bootstrap/get-config-file.d.ts +4 -0
- package/dist/bootstrap/get-config-file.js +152 -0
- package/dist/bootstrap/get-config-file.js.map +1 -0
- package/dist/bootstrap/index.d.ts +12 -0
- package/dist/bootstrap/index.js +56 -0
- package/dist/bootstrap/index.js.map +1 -0
- package/dist/bootstrap/load-config/index.d.ts +7 -0
- package/dist/bootstrap/load-config/index.js +73 -0
- package/dist/bootstrap/load-config/index.js.map +1 -0
- package/dist/bootstrap/load-plugins/index.d.ts +3 -0
- package/dist/bootstrap/load-plugins/index.js +79 -0
- package/dist/bootstrap/load-plugins/index.js.map +1 -0
- package/dist/bootstrap/load-plugins/load-internal-plugins.d.ts +2 -0
- package/dist/bootstrap/load-plugins/load-internal-plugins.js +105 -0
- package/dist/bootstrap/load-plugins/load-internal-plugins.js.map +1 -0
- package/dist/bootstrap/load-plugins/process-plugin.d.ts +2 -0
- package/dist/bootstrap/load-plugins/process-plugin.js +81 -0
- package/dist/bootstrap/load-plugins/process-plugin.js.map +1 -0
- package/dist/bootstrap/load-plugins/resolve-plugin.d.ts +13 -0
- package/dist/bootstrap/load-plugins/resolve-plugin.js +75 -0
- package/dist/bootstrap/load-plugins/resolve-plugin.js.map +1 -0
- package/dist/bootstrap/load-plugins/types.d.ts +48 -0
- package/dist/bootstrap/load-plugins/types.js +4 -0
- package/dist/bootstrap/load-plugins/types.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.d.ts +8 -0
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.js +38 -0
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/create-hash.d.ts +1 -0
- package/dist/bootstrap/load-plugins/utils/create-hash.js +20 -0
- package/dist/bootstrap/load-plugins/utils/create-hash.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/create-id.d.ts +10 -0
- package/dist/bootstrap/load-plugins/utils/create-id.js +16 -0
- package/dist/bootstrap/load-plugins/utils/create-id.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.d.ts +2 -0
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.js +41 -0
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/get-api.d.ts +12 -0
- package/dist/bootstrap/load-plugins/utils/get-api.js +12 -0
- package/dist/bootstrap/load-plugins/utils/get-api.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/normalize.d.ts +5 -0
- package/dist/bootstrap/load-plugins/utils/normalize.js +33 -0
- package/dist/bootstrap/load-plugins/utils/normalize.js.map +1 -0
- package/dist/bootstrap/load-plugins/validate.d.ts +41 -0
- package/dist/bootstrap/load-plugins/validate.js +369 -0
- package/dist/bootstrap/load-plugins/validate.js.map +1 -0
- package/dist/bootstrap/load-themes/index.d.ts +17 -0
- package/dist/bootstrap/load-themes/index.js +186 -0
- package/dist/bootstrap/load-themes/index.js.map +1 -0
- package/dist/bootstrap/log-line-function.d.ts +0 -0
- package/dist/bootstrap/log-line-function.js +19 -0
- package/dist/bootstrap/log-line-function.js.map +1 -0
- package/dist/bootstrap/prefer-default.d.ts +1 -0
- package/dist/bootstrap/prefer-default.js +7 -0
- package/dist/bootstrap/prefer-default.js.map +1 -0
- package/dist/bootstrap/redirects-writer.d.ts +2 -0
- package/dist/bootstrap/redirects-writer.js +59 -0
- package/dist/bootstrap/redirects-writer.js.map +1 -0
- package/dist/bootstrap/remove-stale-jobs.d.ts +2 -0
- package/dist/bootstrap/remove-stale-jobs.js +31 -0
- package/dist/bootstrap/remove-stale-jobs.js.map +1 -0
- package/dist/bootstrap/requires-writer.d.ts +11 -0
- package/dist/bootstrap/requires-writer.js +260 -0
- package/dist/bootstrap/requires-writer.js.map +1 -0
- package/dist/bootstrap/resolve-js-file-path.d.ts +14 -0
- package/dist/bootstrap/resolve-js-file-path.js +58 -0
- package/dist/bootstrap/resolve-js-file-path.js.map +1 -0
- package/dist/bootstrap/resolve-module-exports.d.ts +20 -0
- package/dist/bootstrap/resolve-module-exports.js +188 -0
- package/dist/bootstrap/resolve-module-exports.js.map +1 -0
- package/dist/bootstrap/schema-hot-reloader.d.ts +3 -0
- package/dist/bootstrap/schema-hot-reloader.js +60 -0
- package/dist/bootstrap/schema-hot-reloader.js.map +1 -0
- package/dist/cache/cache-fs.d.ts +1 -0
- package/dist/cache/cache-fs.js +270 -0
- package/dist/cache/cache-fs.js.map +1 -0
- package/dist/cache/json-file-store.d.ts +8 -0
- package/dist/cache/json-file-store.js +144 -0
- package/dist/cache/json-file-store.js.map +1 -0
- package/dist/cache/wrap-callback.d.ts +0 -0
- package/dist/cache/wrap-callback.js +49 -0
- package/dist/cache/wrap-callback.js.map +1 -0
- package/dist/commands/build-html.d.ts +69 -0
- package/dist/commands/build-html.js +652 -0
- package/dist/commands/build-html.js.map +1 -0
- package/dist/commands/build-javascript.d.ts +4 -0
- package/dist/commands/build-javascript.js +18 -0
- package/dist/commands/build-javascript.js.map +1 -0
- package/dist/commands/build-utils.d.ts +8 -0
- package/dist/commands/build-utils.js +186 -0
- package/dist/commands/build-utils.js.map +1 -0
- package/dist/commands/build.d.ts +1 -0
- package/dist/commands/build.js +505 -0
- package/dist/commands/build.js.map +1 -0
- package/dist/commands/clean.d.ts +1 -0
- package/dist/commands/clean.js +29 -0
- package/dist/commands/clean.js.map +1 -0
- package/dist/commands/develop-process.d.ts +1 -0
- package/dist/commands/develop-process.js +120 -0
- package/dist/commands/develop-process.js.map +1 -0
- package/dist/commands/develop-static.d.ts +3 -0
- package/dist/commands/develop-static.js +22 -0
- package/dist/commands/develop-static.js.map +1 -0
- package/dist/commands/develop.d.ts +2 -0
- package/dist/commands/develop.js +273 -0
- package/dist/commands/develop.js.map +1 -0
- package/dist/commands/feedback.d.ts +1 -0
- package/dist/commands/feedback.js +17 -0
- package/dist/commands/feedback.js.map +1 -0
- package/dist/commands/repl.d.ts +1 -0
- package/dist/commands/repl.js +58 -0
- package/dist/commands/repl.js.map +1 -0
- package/dist/commands/serve.d.ts +1 -0
- package/dist/commands/serve.js +282 -0
- package/dist/commands/serve.js.map +1 -0
- package/dist/commands/types.d.ts +54 -0
- package/dist/commands/types.js +23 -0
- package/dist/commands/types.js.map +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +7 -0
- package/dist/constants.js.map +1 -0
- package/dist/datastore/common/iterable.d.ts +51 -0
- package/dist/datastore/common/iterable.js +217 -0
- package/dist/datastore/common/iterable.js.map +1 -0
- package/dist/datastore/common/query.d.ts +69 -0
- package/dist/datastore/common/query.js +219 -0
- package/dist/datastore/common/query.js.map +1 -0
- package/dist/datastore/datastore.d.ts +2 -0
- package/dist/datastore/datastore.js +23 -0
- package/dist/datastore/datastore.js.map +1 -0
- package/dist/datastore/in-memory/in-memory-datastore.d.ts +2 -0
- package/dist/datastore/in-memory/in-memory-datastore.js +75 -0
- package/dist/datastore/in-memory/in-memory-datastore.js.map +1 -0
- package/dist/datastore/in-memory/indexing.d.ts +80 -0
- package/dist/datastore/in-memory/indexing.js +994 -0
- package/dist/datastore/in-memory/indexing.js.map +1 -0
- package/dist/datastore/in-memory/run-fast-filters.d.ts +27 -0
- package/dist/datastore/in-memory/run-fast-filters.js +276 -0
- package/dist/datastore/in-memory/run-fast-filters.js.map +1 -0
- package/dist/datastore/index.d.ts +20 -0
- package/dist/datastore/index.js +34 -0
- package/dist/datastore/index.js.map +1 -0
- package/dist/datastore/lmdb/lmdb-datastore.d.ts +14 -0
- package/dist/datastore/lmdb/lmdb-datastore.js +261 -0
- package/dist/datastore/lmdb/lmdb-datastore.js.map +1 -0
- package/dist/datastore/lmdb/query/common.d.ts +23 -0
- package/dist/datastore/lmdb/query/common.js +127 -0
- package/dist/datastore/lmdb/query/common.js.map +1 -0
- package/dist/datastore/lmdb/query/create-index.d.ts +25 -0
- package/dist/datastore/lmdb/query/create-index.js +239 -0
- package/dist/datastore/lmdb/query/create-index.js.map +1 -0
- package/dist/datastore/lmdb/query/filter-using-index.d.ts +43 -0
- package/dist/datastore/lmdb/query/filter-using-index.js +577 -0
- package/dist/datastore/lmdb/query/filter-using-index.js.map +1 -0
- package/dist/datastore/lmdb/query/run-query.d.ts +9 -0
- package/dist/datastore/lmdb/query/run-query.js +285 -0
- package/dist/datastore/lmdb/query/run-query.js.map +1 -0
- package/dist/datastore/lmdb/query/suggest-index.d.ts +15 -0
- package/dist/datastore/lmdb/query/suggest-index.js +93 -0
- package/dist/datastore/lmdb/query/suggest-index.js.map +1 -0
- package/dist/datastore/lmdb/updates/nodes-by-type.d.ts +3 -0
- package/dist/datastore/lmdb/updates/nodes-by-type.js +21 -0
- package/dist/datastore/lmdb/updates/nodes-by-type.js.map +1 -0
- package/dist/datastore/lmdb/updates/nodes.d.ts +5 -0
- package/dist/datastore/lmdb/updates/nodes.js +33 -0
- package/dist/datastore/lmdb/updates/nodes.js.map +1 -0
- package/dist/datastore/types.d.ts +47 -0
- package/dist/datastore/types.js +4 -0
- package/dist/datastore/types.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/gatsby-node.js +42 -0
- package/dist/internal-plugins/bundle-optimisations/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/index.js +3 -0
- package/dist/internal-plugins/bundle-optimisations/index.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/package.json +10 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/fetch.js +4 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/fetch.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/no-op.js +3 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/no-op.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/object-assign.js +4 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/object-assign.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/whatwg-fetch.js +6 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/whatwg-fetch.js.map +1 -0
- package/dist/internal-plugins/dev-404-page/gatsby-node.js +30 -0
- package/dist/internal-plugins/dev-404-page/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/dev-404-page/index.js +3 -0
- package/dist/internal-plugins/dev-404-page/index.js.map +1 -0
- package/dist/internal-plugins/dev-404-page/package.json +11 -0
- package/dist/internal-plugins/dev-404-page/raw_dev-404-page.js +262 -0
- package/dist/internal-plugins/functions/api-function-webpack-loader.d.ts +3 -0
- package/dist/internal-plugins/functions/api-function-webpack-loader.js +74 -0
- package/dist/internal-plugins/functions/api-function-webpack-loader.js.map +1 -0
- package/dist/internal-plugins/functions/config.d.ts +20 -0
- package/dist/internal-plugins/functions/config.js +96 -0
- package/dist/internal-plugins/functions/config.js.map +1 -0
- package/dist/internal-plugins/functions/gatsby-node.d.ts +3 -0
- package/dist/internal-plugins/functions/gatsby-node.js +452 -0
- package/dist/internal-plugins/functions/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/functions/index.js +3 -0
- package/dist/internal-plugins/functions/index.js.map +1 -0
- package/dist/internal-plugins/functions/middleware.d.ts +11 -0
- package/dist/internal-plugins/functions/middleware.js +160 -0
- package/dist/internal-plugins/functions/middleware.js.map +1 -0
- package/dist/internal-plugins/functions/package.json +11 -0
- package/dist/internal-plugins/internal-data-bridge/gatsby-node.js +191 -0
- package/dist/internal-plugins/internal-data-bridge/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/internal-data-bridge/index.js +3 -0
- package/dist/internal-plugins/internal-data-bridge/index.js.map +1 -0
- package/dist/internal-plugins/internal-data-bridge/package.json +11 -0
- package/dist/internal-plugins/load-babel-config/gatsby-node.js +37 -0
- package/dist/internal-plugins/load-babel-config/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/load-babel-config/index.js +3 -0
- package/dist/internal-plugins/load-babel-config/index.js.map +1 -0
- package/dist/internal-plugins/load-babel-config/package.json +11 -0
- package/dist/internal-plugins/partytown/gatsby-browser.js +23 -0
- package/dist/internal-plugins/partytown/gatsby-browser.js.map +1 -0
- package/dist/internal-plugins/partytown/gatsby-node.d.ts +2 -0
- package/dist/internal-plugins/partytown/gatsby-node.js +60 -0
- package/dist/internal-plugins/partytown/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/partytown/gatsby-ssr.js +39 -0
- package/dist/internal-plugins/partytown/gatsby-ssr.js.map +1 -0
- package/dist/internal-plugins/partytown/index.js +3 -0
- package/dist/internal-plugins/partytown/index.js.map +1 -0
- package/dist/internal-plugins/partytown/package.json +12 -0
- package/dist/internal-plugins/partytown/proxy.d.ts +3 -0
- package/dist/internal-plugins/partytown/proxy.js +26 -0
- package/dist/internal-plugins/partytown/proxy.js.map +1 -0
- package/dist/internal-plugins/partytown/utils/get-forwards.d.ts +2 -0
- package/dist/internal-plugins/partytown/utils/get-forwards.js +8 -0
- package/dist/internal-plugins/partytown/utils/get-forwards.js.map +1 -0
- package/dist/internal-plugins/partytown/utils/inject-partytown-snippet.d.ts +2 -0
- package/dist/internal-plugins/partytown/utils/inject-partytown-snippet.js +28 -0
- package/dist/internal-plugins/partytown/utils/inject-partytown-snippet.js.map +1 -0
- package/dist/internal-plugins/prod-404-500/gatsby-node.js +50 -0
- package/dist/internal-plugins/prod-404-500/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/prod-404-500/index.js +3 -0
- package/dist/internal-plugins/prod-404-500/index.js.map +1 -0
- package/dist/internal-plugins/prod-404-500/package.json +11 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/create-page.js +31 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/create-page.js.map +1 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/gatsby-node.js +31 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/index.js +273 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/index.js.map +1 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/package.json +11 -0
- package/dist/internal.d.ts +5 -0
- package/dist/internal.js +34 -0
- package/dist/internal.js.map +1 -0
- package/dist/joi-schemas/joi.d.ts +5 -0
- package/dist/joi-schemas/joi.js +122 -0
- package/dist/joi-schemas/joi.js.map +1 -0
- package/dist/query/error-parser.d.ts +19 -0
- package/dist/query/error-parser.js +163 -0
- package/dist/query/error-parser.js.map +1 -0
- package/dist/query/file-parser.js +584 -0
- package/dist/query/file-parser.js.map +1 -0
- package/dist/query/graphql-errors-codeframe.d.ts +1 -0
- package/dist/query/graphql-errors-codeframe.js +20 -0
- package/dist/query/graphql-errors-codeframe.js.map +1 -0
- package/dist/query/graphql-errors.js +278 -0
- package/dist/query/graphql-errors.js.map +1 -0
- package/dist/query/graphql-runner.d.ts +39 -0
- package/dist/query/graphql-runner.js +221 -0
- package/dist/query/graphql-runner.js.map +1 -0
- package/dist/query/graphql-span-tracer.d.ts +19 -0
- package/dist/query/graphql-span-tracer.js +63 -0
- package/dist/query/graphql-span-tracer.js.map +1 -0
- package/dist/query/index.d.ts +32 -0
- package/dist/query/index.js +301 -0
- package/dist/query/index.js.map +1 -0
- package/dist/query/query-compiler.js +433 -0
- package/dist/query/query-compiler.js.map +1 -0
- package/dist/query/query-runner.d.ts +13 -0
- package/dist/query/query-runner.js +176 -0
- package/dist/query/query-runner.js.map +1 -0
- package/dist/query/query-watcher.d.ts +17 -0
- package/dist/query/query-watcher.js +250 -0
- package/dist/query/query-watcher.js.map +1 -0
- package/dist/query/transform-document.d.ts +6 -0
- package/dist/query/transform-document.js +131 -0
- package/dist/query/transform-document.js.map +1 -0
- package/dist/query/types.d.ts +35 -0
- package/dist/query/types.js +4 -0
- package/dist/query/types.js.map +1 -0
- package/dist/query/utils.d.ts +4 -0
- package/dist/query/utils.js +20 -0
- package/dist/query/utils.js.map +1 -0
- package/dist/redux/actions/add-page-dependency.d.ts +7 -0
- package/dist/redux/actions/add-page-dependency.js +52 -0
- package/dist/redux/actions/add-page-dependency.js.map +1 -0
- package/dist/redux/actions/index.d.ts +16 -0
- package/dist/redux/actions/index.js +21 -0
- package/dist/redux/actions/index.js.map +1 -0
- package/dist/redux/actions/internal.d.ts +124 -0
- package/dist/redux/actions/internal.js +394 -0
- package/dist/redux/actions/internal.js.map +1 -0
- package/dist/redux/actions/public.js +1354 -0
- package/dist/redux/actions/public.js.map +1 -0
- package/dist/redux/actions/restricted.d.ts +332 -0
- package/dist/redux/actions/restricted.js +521 -0
- package/dist/redux/actions/restricted.js.map +1 -0
- package/dist/redux/index.d.ts +20 -0
- package/dist/redux/index.js +125 -0
- package/dist/redux/index.js.map +1 -0
- package/dist/redux/persist.d.ts +5 -0
- package/dist/redux/persist.js +191 -0
- package/dist/redux/persist.js.map +1 -0
- package/dist/redux/plugin-runner.d.ts +1 -0
- package/dist/redux/plugin-runner.js +45 -0
- package/dist/redux/plugin-runner.js.map +1 -0
- package/dist/redux/reducers/adapter.d.ts +6 -0
- package/dist/redux/reducers/adapter.js +22 -0
- package/dist/redux/reducers/adapter.js.map +1 -0
- package/dist/redux/reducers/babelrc.d.ts +9 -0
- package/dist/redux/reducers/babelrc.js +104 -0
- package/dist/redux/reducers/babelrc.js.map +1 -0
- package/dist/redux/reducers/components-using-slices.d.ts +2 -0
- package/dist/redux/reducers/components-using-slices.js +15 -0
- package/dist/redux/reducers/components-using-slices.js.map +1 -0
- package/dist/redux/reducers/components.d.ts +2 -0
- package/dist/redux/reducers/components.js +104 -0
- package/dist/redux/reducers/components.js.map +1 -0
- package/dist/redux/reducers/config.d.ts +2 -0
- package/dist/redux/reducers/config.js +16 -0
- package/dist/redux/reducers/config.js.map +1 -0
- package/dist/redux/reducers/definitions.d.ts +2 -0
- package/dist/redux/reducers/definitions.js +14 -0
- package/dist/redux/reducers/definitions.js.map +1 -0
- package/dist/redux/reducers/flattened-plugins.d.ts +17 -0
- package/dist/redux/reducers/flattened-plugins.js +14 -0
- package/dist/redux/reducers/flattened-plugins.js.map +1 -0
- package/dist/redux/reducers/functions.d.ts +2 -0
- package/dist/redux/reducers/functions.js +14 -0
- package/dist/redux/reducers/functions.js.map +1 -0
- package/dist/redux/reducers/html.d.ts +25 -0
- package/dist/redux/reducers/html.js +384 -0
- package/dist/redux/reducers/html.js.map +1 -0
- package/dist/redux/reducers/index.d.ts +45 -0
- package/dist/redux/reducers/index.js +86 -0
- package/dist/redux/reducers/index.js.map +1 -0
- package/dist/redux/reducers/inference-metadata.d.ts +7 -0
- package/dist/redux/reducers/inference-metadata.js +174 -0
- package/dist/redux/reducers/inference-metadata.js.map +1 -0
- package/dist/redux/reducers/jobs.d.ts +5 -0
- package/dist/redux/reducers/jobs.js +65 -0
- package/dist/redux/reducers/jobs.js.map +1 -0
- package/dist/redux/reducers/jobsv2.d.ts +6 -0
- package/dist/redux/reducers/jobsv2.js +88 -0
- package/dist/redux/reducers/jobsv2.js.map +1 -0
- package/dist/redux/reducers/last-action.d.ts +2 -0
- package/dist/redux/reducers/last-action.js +7 -0
- package/dist/redux/reducers/last-action.js.map +1 -0
- package/dist/redux/reducers/node-manifest.d.ts +2 -0
- package/dist/redux/reducers/node-manifest.js +58 -0
- package/dist/redux/reducers/node-manifest.js.map +1 -0
- package/dist/redux/reducers/nodes-by-type.d.ts +2 -0
- package/dist/redux/reducers/nodes-by-type.js +53 -0
- package/dist/redux/reducers/nodes-by-type.js.map +1 -0
- package/dist/redux/reducers/nodes-touched.d.ts +3 -0
- package/dist/redux/reducers/nodes-touched.js +18 -0
- package/dist/redux/reducers/nodes-touched.js.map +1 -0
- package/dist/redux/reducers/nodes.d.ts +2 -0
- package/dist/redux/reducers/nodes.js +30 -0
- package/dist/redux/reducers/nodes.js.map +1 -0
- package/dist/redux/reducers/page-data-stats.d.ts +2 -0
- package/dist/redux/reducers/page-data-stats.js +15 -0
- package/dist/redux/reducers/page-data-stats.js.map +1 -0
- package/dist/redux/reducers/pages.d.ts +2 -0
- package/dist/redux/reducers/pages.js +43 -0
- package/dist/redux/reducers/pages.js.map +1 -0
- package/dist/redux/reducers/pending-page-data-writes.d.ts +5 -0
- package/dist/redux/reducers/pending-page-data-writes.js +66 -0
- package/dist/redux/reducers/pending-page-data-writes.js.map +1 -0
- package/dist/redux/reducers/program.d.ts +2 -0
- package/dist/redux/reducers/program.js +62 -0
- package/dist/redux/reducers/program.js.map +1 -0
- package/dist/redux/reducers/queries.d.ts +26 -0
- package/dist/redux/reducers/queries.js +403 -0
- package/dist/redux/reducers/queries.js.map +1 -0
- package/dist/redux/reducers/redirects.d.ts +2 -0
- package/dist/redux/reducers/redirects.js +39 -0
- package/dist/redux/reducers/redirects.js.map +1 -0
- package/dist/redux/reducers/remote-file-allowed-urls.d.ts +2 -0
- package/dist/redux/reducers/remote-file-allowed-urls.js +19 -0
- package/dist/redux/reducers/remote-file-allowed-urls.js.map +1 -0
- package/dist/redux/reducers/resolved-nodes.d.ts +2 -0
- package/dist/redux/reducers/resolved-nodes.js +45 -0
- package/dist/redux/reducers/resolved-nodes.js.map +1 -0
- package/dist/redux/reducers/schema-customization.d.ts +23 -0
- package/dist/redux/reducers/schema-customization.js +103 -0
- package/dist/redux/reducers/schema-customization.js.map +1 -0
- package/dist/redux/reducers/schema.d.ts +3 -0
- package/dist/redux/reducers/schema.js +17 -0
- package/dist/redux/reducers/schema.js.map +1 -0
- package/dist/redux/reducers/set-request-headers.d.ts +7 -0
- package/dist/redux/reducers/set-request-headers.js +24 -0
- package/dist/redux/reducers/set-request-headers.js.map +1 -0
- package/dist/redux/reducers/slices-by-template.d.ts +2 -0
- package/dist/redux/reducers/slices-by-template.js +16 -0
- package/dist/redux/reducers/slices-by-template.js.map +1 -0
- package/dist/redux/reducers/slices.d.ts +2 -0
- package/dist/redux/reducers/slices.js +22 -0
- package/dist/redux/reducers/slices.js.map +1 -0
- package/dist/redux/reducers/stateful-source-plugins.d.ts +5 -0
- package/dist/redux/reducers/stateful-source-plugins.js +20 -0
- package/dist/redux/reducers/stateful-source-plugins.js.map +1 -0
- package/dist/redux/reducers/static-queries-by-template.d.ts +2 -0
- package/dist/redux/reducers/static-queries-by-template.js +19 -0
- package/dist/redux/reducers/static-queries-by-template.js.map +1 -0
- package/dist/redux/reducers/static-query-components.d.ts +2 -0
- package/dist/redux/reducers/static-query-components.js +18 -0
- package/dist/redux/reducers/static-query-components.js.map +1 -0
- package/dist/redux/reducers/status.d.ts +7 -0
- package/dist/redux/reducers/status.js +57 -0
- package/dist/redux/reducers/status.js.map +1 -0
- package/dist/redux/reducers/telemetry.d.ts +2 -0
- package/dist/redux/reducers/telemetry.js +46 -0
- package/dist/redux/reducers/telemetry.js.map +1 -0
- package/dist/redux/reducers/type-owners.d.ts +5 -0
- package/dist/redux/reducers/type-owners.js +102 -0
- package/dist/redux/reducers/type-owners.js.map +1 -0
- package/dist/redux/reducers/visited-page.d.ts +2 -0
- package/dist/redux/reducers/visited-page.js +31 -0
- package/dist/redux/reducers/visited-page.js.map +1 -0
- package/dist/redux/reducers/webpack-compilation-hash.d.ts +2 -0
- package/dist/redux/reducers/webpack-compilation-hash.js +14 -0
- package/dist/redux/reducers/webpack-compilation-hash.js.map +1 -0
- package/dist/redux/reducers/webpack.d.ts +2 -0
- package/dist/redux/reducers/webpack.js +27 -0
- package/dist/redux/reducers/webpack.js.map +1 -0
- package/dist/redux/save-state.js +19 -0
- package/dist/redux/save-state.js.map +1 -0
- package/dist/redux/types.d.ts +1337 -0
- package/dist/redux/types.js +326 -0
- package/dist/redux/types.js.map +1 -0
- package/dist/schema/context.d.ts +14 -0
- package/dist/schema/context.js +38 -0
- package/dist/schema/context.js.map +1 -0
- package/dist/schema/extensions/index.js +205 -0
- package/dist/schema/extensions/index.js.map +1 -0
- package/dist/schema/graphql-engine/bootstrap.d.ts +2 -0
- package/dist/schema/graphql-engine/bootstrap.js +12 -0
- package/dist/schema/graphql-engine/bootstrap.js.map +1 -0
- package/dist/schema/graphql-engine/bundle-webpack.d.ts +5 -0
- package/dist/schema/graphql-engine/bundle-webpack.js +446 -0
- package/dist/schema/graphql-engine/bundle-webpack.js.map +1 -0
- package/dist/schema/graphql-engine/entry.d.ts +23 -0
- package/dist/schema/graphql-engine/entry.js +204 -0
- package/dist/schema/graphql-engine/entry.js.map +1 -0
- package/dist/schema/graphql-engine/lmdb-bundling-patch.d.ts +1 -0
- package/dist/schema/graphql-engine/lmdb-bundling-patch.js +72 -0
- package/dist/schema/graphql-engine/lmdb-bundling-patch.js.map +1 -0
- package/dist/schema/graphql-engine/platform-and-arch-check.d.ts +0 -0
- package/dist/schema/graphql-engine/platform-and-arch-check.js +6 -0
- package/dist/schema/graphql-engine/platform-and-arch-check.js.map +1 -0
- package/dist/schema/graphql-engine/print-plugins.d.ts +2 -0
- package/dist/schema/graphql-engine/print-plugins.js +145 -0
- package/dist/schema/graphql-engine/print-plugins.js.map +1 -0
- package/dist/schema/graphql-engine/sharp-bundling-patch.d.ts +1 -0
- package/dist/schema/graphql-engine/sharp-bundling-patch.js +8 -0
- package/dist/schema/graphql-engine/sharp-bundling-patch.js.map +1 -0
- package/dist/schema/graphql-engine/shims/gatsby-sharp.js +10 -0
- package/dist/schema/graphql-engine/shims/gatsby-sharp.js.map +1 -0
- package/dist/schema/graphql-engine/shims/no-op-module.js +3 -0
- package/dist/schema/graphql-engine/shims/no-op-module.js.map +1 -0
- package/dist/schema/graphql-engine/shims/ts-node.js +17 -0
- package/dist/schema/graphql-engine/shims/ts-node.js.map +1 -0
- package/dist/schema/graphql-engine/standalone-regenerate.d.ts +2 -0
- package/dist/schema/graphql-engine/standalone-regenerate.js +73 -0
- package/dist/schema/graphql-engine/standalone-regenerate.js.map +1 -0
- package/dist/schema/index.js +189 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/infer/add-inferred-fields.js +413 -0
- package/dist/schema/infer/add-inferred-fields.js.map +1 -0
- package/dist/schema/infer/build-example-data.d.ts +5 -0
- package/dist/schema/infer/build-example-data.js +199 -0
- package/dist/schema/infer/build-example-data.js.map +1 -0
- package/dist/schema/infer/index.js +121 -0
- package/dist/schema/infer/index.js.map +1 -0
- package/dist/schema/infer/inference-metadata.d.ts +72 -0
- package/dist/schema/infer/inference-metadata.js +280 -0
- package/dist/schema/infer/inference-metadata.js.map +1 -0
- package/dist/schema/infer/is-file.d.ts +1 -0
- package/dist/schema/infer/is-file.js +65 -0
- package/dist/schema/infer/is-file.js.map +1 -0
- package/dist/schema/infer/type-conflict-reporter.d.ts +28 -0
- package/dist/schema/infer/type-conflict-reporter.js +104 -0
- package/dist/schema/infer/type-conflict-reporter.js.map +1 -0
- package/dist/schema/node-model.js +784 -0
- package/dist/schema/node-model.js.map +1 -0
- package/dist/schema/print.d.ts +20 -0
- package/dist/schema/print.js +279 -0
- package/dist/schema/print.js.map +1 -0
- package/dist/schema/resolvers.d.ts +40 -0
- package/dist/schema/resolvers.js +569 -0
- package/dist/schema/resolvers.js.map +1 -0
- package/dist/schema/schema-composer.d.ts +3 -0
- package/dist/schema/schema-composer.js +31 -0
- package/dist/schema/schema-composer.js.map +1 -0
- package/dist/schema/schema.js +1295 -0
- package/dist/schema/schema.js.map +1 -0
- package/dist/schema/type-definitions.d.ts +47 -0
- package/dist/schema/type-definitions.js +4 -0
- package/dist/schema/type-definitions.js.map +1 -0
- package/dist/schema/types/built-in-types.d.ts +5 -0
- package/dist/schema/types/built-in-types.js +139 -0
- package/dist/schema/types/built-in-types.js.map +1 -0
- package/dist/schema/types/date.d.ts +37 -0
- package/dist/schema/types/date.js +225 -0
- package/dist/schema/types/date.js.map +1 -0
- package/dist/schema/types/derived-types.d.ts +45 -0
- package/dist/schema/types/derived-types.js +108 -0
- package/dist/schema/types/derived-types.js.map +1 -0
- package/dist/schema/types/filter.d.ts +12 -0
- package/dist/schema/types/filter.js +105 -0
- package/dist/schema/types/filter.js.map +1 -0
- package/dist/schema/types/media.d.ts +2 -0
- package/dist/schema/types/media.js +10 -0
- package/dist/schema/types/media.js.map +1 -0
- package/dist/schema/types/node-interface.d.ts +14 -0
- package/dist/schema/types/node-interface.js +103 -0
- package/dist/schema/types/node-interface.js.map +1 -0
- package/dist/schema/types/pagination.d.ts +16 -0
- package/dist/schema/types/pagination.js +198 -0
- package/dist/schema/types/pagination.js.map +1 -0
- package/dist/schema/types/remote-file-interface.d.ts +3 -0
- package/dist/schema/types/remote-file-interface.js +34 -0
- package/dist/schema/types/remote-file-interface.js.map +1 -0
- package/dist/schema/types/sort.d.ts +24 -0
- package/dist/schema/types/sort.js +178 -0
- package/dist/schema/types/sort.js.map +1 -0
- package/dist/schema/types/type-builders.d.ts +36 -0
- package/dist/schema/types/type-builders.js +61 -0
- package/dist/schema/types/type-builders.js.map +1 -0
- package/dist/schema/types/type-defs.js +86 -0
- package/dist/schema/types/type-defs.js.map +1 -0
- package/dist/schema/types/utils.d.ts +33 -0
- package/dist/schema/types/utils.js +153 -0
- package/dist/schema/types/utils.js.map +1 -0
- package/dist/schema/utils.d.ts +28 -0
- package/dist/schema/utils.js +149 -0
- package/dist/schema/utils.js.map +1 -0
- package/dist/services/build-schema.d.ts +2 -0
- package/dist/services/build-schema.js +24 -0
- package/dist/services/build-schema.js.map +1 -0
- package/dist/services/calculate-dirty-queries.d.ts +5 -0
- package/dist/services/calculate-dirty-queries.js +44 -0
- package/dist/services/calculate-dirty-queries.js.map +1 -0
- package/dist/services/create-pages.d.ts +5 -0
- package/dist/services/create-pages.js +108 -0
- package/dist/services/create-pages.js.map +1 -0
- package/dist/services/customize-schema.d.ts +2 -0
- package/dist/services/customize-schema.js +26 -0
- package/dist/services/customize-schema.js.map +1 -0
- package/dist/services/extract-queries.d.ts +2 -0
- package/dist/services/extract-queries.js +24 -0
- package/dist/services/extract-queries.js.map +1 -0
- package/dist/services/graphql-typegen.d.ts +2 -0
- package/dist/services/graphql-typegen.js +46 -0
- package/dist/services/graphql-typegen.js.map +1 -0
- package/dist/services/index.d.ts +19 -0
- package/dist/services/index.js +68 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/initialize.d.ts +14 -0
- package/dist/services/initialize.js +519 -0
- package/dist/services/initialize.js.map +1 -0
- package/dist/services/listen-for-mutations.d.ts +2 -0
- package/dist/services/listen-for-mutations.js +59 -0
- package/dist/services/listen-for-mutations.js.map +1 -0
- package/dist/services/listen-to-webpack.d.ts +3 -0
- package/dist/services/listen-to-webpack.js +17 -0
- package/dist/services/listen-to-webpack.js.map +1 -0
- package/dist/services/post-bootstrap.d.ts +2 -0
- package/dist/services/post-bootstrap.js +29 -0
- package/dist/services/post-bootstrap.js.map +1 -0
- package/dist/services/recompile.d.ts +3 -0
- package/dist/services/recompile.js +67 -0
- package/dist/services/recompile.js.map +1 -0
- package/dist/services/run-mutation-batch.d.ts +2 -0
- package/dist/services/run-mutation-batch.js +12 -0
- package/dist/services/run-mutation-batch.js.map +1 -0
- package/dist/services/run-page-queries.d.ts +2 -0
- package/dist/services/run-page-queries.js +38 -0
- package/dist/services/run-page-queries.js.map +1 -0
- package/dist/services/run-slice-queries.d.ts +2 -0
- package/dist/services/run-slice-queries.js +40 -0
- package/dist/services/run-slice-queries.js.map +1 -0
- package/dist/services/run-static-queries.d.ts +2 -0
- package/dist/services/run-static-queries.js +38 -0
- package/dist/services/run-static-queries.js.map +1 -0
- package/dist/services/source-nodes.d.ts +5 -0
- package/dist/services/source-nodes.js +47 -0
- package/dist/services/source-nodes.js.map +1 -0
- package/dist/services/start-webpack-server.d.ts +9 -0
- package/dist/services/start-webpack-server.js +103 -0
- package/dist/services/start-webpack-server.js.map +1 -0
- package/dist/services/types.d.ts +53 -0
- package/dist/services/types.js +4 -0
- package/dist/services/types.js.map +1 -0
- package/dist/services/write-out-redirects.d.ts +2 -0
- package/dist/services/write-out-redirects.js +20 -0
- package/dist/services/write-out-redirects.js.map +1 -0
- package/dist/services/write-out-requires.d.ts +2 -0
- package/dist/services/write-out-requires.js +27 -0
- package/dist/services/write-out-requires.js.map +1 -0
- package/dist/state-machines/data-layer/actions.d.ts +11 -0
- package/dist/state-machines/data-layer/actions.js +38 -0
- package/dist/state-machines/data-layer/actions.js.map +1 -0
- package/dist/state-machines/data-layer/index.d.ts +24 -0
- package/dist/state-machines/data-layer/index.js +152 -0
- package/dist/state-machines/data-layer/index.js.map +1 -0
- package/dist/state-machines/data-layer/services.d.ts +3 -0
- package/dist/state-machines/data-layer/services.js +14 -0
- package/dist/state-machines/data-layer/services.js.map +1 -0
- package/dist/state-machines/data-layer/types.d.ts +27 -0
- package/dist/state-machines/data-layer/types.js +4 -0
- package/dist/state-machines/data-layer/types.js.map +1 -0
- package/dist/state-machines/develop/actions.d.ts +68 -0
- package/dist/state-machines/develop/actions.js +259 -0
- package/dist/state-machines/develop/actions.js.map +1 -0
- package/dist/state-machines/develop/index.d.ts +5 -0
- package/dist/state-machines/develop/index.js +372 -0
- package/dist/state-machines/develop/index.js.map +1 -0
- package/dist/state-machines/develop/services.d.ts +3 -0
- package/dist/state-machines/develop/services.js +22 -0
- package/dist/state-machines/develop/services.js.map +1 -0
- package/dist/state-machines/index.d.ts +7 -0
- package/dist/state-machines/index.js +21 -0
- package/dist/state-machines/index.js.map +1 -0
- package/dist/state-machines/query-running/actions.d.ts +9 -0
- package/dist/state-machines/query-running/actions.js +55 -0
- package/dist/state-machines/query-running/actions.js.map +1 -0
- package/dist/state-machines/query-running/index.d.ts +7 -0
- package/dist/state-machines/query-running/index.js +142 -0
- package/dist/state-machines/query-running/index.js.map +1 -0
- package/dist/state-machines/query-running/services.d.ts +3 -0
- package/dist/state-machines/query-running/services.js +17 -0
- package/dist/state-machines/query-running/services.js.map +1 -0
- package/dist/state-machines/query-running/types.d.ts +26 -0
- package/dist/state-machines/query-running/types.js +4 -0
- package/dist/state-machines/query-running/types.js.map +1 -0
- package/dist/state-machines/waiting/actions.d.ts +11 -0
- package/dist/state-machines/waiting/actions.js +36 -0
- package/dist/state-machines/waiting/actions.js.map +1 -0
- package/dist/state-machines/waiting/index.d.ts +12 -0
- package/dist/state-machines/waiting/index.js +145 -0
- package/dist/state-machines/waiting/index.js.map +1 -0
- package/dist/state-machines/waiting/services.d.ts +3 -0
- package/dist/state-machines/waiting/services.js +10 -0
- package/dist/state-machines/waiting/services.js.map +1 -0
- package/dist/state-machines/waiting/types.d.ts +12 -0
- package/dist/state-machines/waiting/types.js +4 -0
- package/dist/state-machines/waiting/types.js.map +1 -0
- package/dist/types.d.ts +9 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/adapter/constants.d.ts +5 -0
- package/dist/utils/adapter/constants.js +31 -0
- package/dist/utils/adapter/constants.js.map +1 -0
- package/dist/utils/adapter/create-headers.d.ts +10 -0
- package/dist/utils/adapter/create-headers.js +94 -0
- package/dist/utils/adapter/create-headers.js.map +1 -0
- package/dist/utils/adapter/get-route-path.d.ts +3 -0
- package/dist/utils/adapter/get-route-path.js +22 -0
- package/dist/utils/adapter/get-route-path.js.map +1 -0
- package/dist/utils/adapter/init.d.ts +3 -0
- package/dist/utils/adapter/init.js +183 -0
- package/dist/utils/adapter/init.js.map +1 -0
- package/dist/utils/adapter/manager.d.ts +9 -0
- package/dist/utils/adapter/manager.js +554 -0
- package/dist/utils/adapter/manager.js.map +1 -0
- package/dist/utils/adapter/no-op-manager.d.ts +2 -0
- package/dist/utils/adapter/no-op-manager.js +18 -0
- package/dist/utils/adapter/no-op-manager.js.map +1 -0
- package/dist/utils/adapter/types.d.ts +282 -0
- package/dist/utils/adapter/types.js +4 -0
- package/dist/utils/adapter/types.js.map +1 -0
- package/dist/utils/api-browser-docs.d.ts +272 -0
- package/dist/utils/api-browser-docs.js +318 -0
- package/dist/utils/api-browser-docs.js.map +1 -0
- package/dist/utils/api-node-docs.d.ts +470 -0
- package/dist/utils/api-node-docs.js +519 -0
- package/dist/utils/api-node-docs.js.map +1 -0
- package/dist/utils/api-node-helpers-docs.js +322 -0
- package/dist/utils/api-node-helpers-docs.js.map +1 -0
- package/dist/utils/api-runner-error-parser.d.ts +5 -0
- package/dist/utils/api-runner-error-parser.js +63 -0
- package/dist/utils/api-runner-error-parser.js.map +1 -0
- package/dist/utils/api-runner-node.js +663 -0
- package/dist/utils/api-runner-node.js.map +1 -0
- package/dist/utils/app-data.d.ts +2 -0
- package/dist/utils/app-data.js +15 -0
- package/dist/utils/app-data.js.map +1 -0
- package/dist/utils/assert-store.d.ts +2 -0
- package/dist/utils/assert-store.js +12 -0
- package/dist/utils/assert-store.js.map +1 -0
- package/dist/utils/babel/babel-module-exports-helpers.d.ts +22 -0
- package/dist/utils/babel/babel-module-exports-helpers.js +48 -0
- package/dist/utils/babel/babel-module-exports-helpers.js.map +1 -0
- package/dist/utils/babel/babel-plugin-add-slice-placeholder-location.d.ts +10 -0
- package/dist/utils/babel/babel-plugin-add-slice-placeholder-location.js +48 -0
- package/dist/utils/babel/babel-plugin-add-slice-placeholder-location.js.map +1 -0
- package/dist/utils/babel/babel-plugin-remove-api.d.ts +5 -0
- package/dist/utils/babel/babel-plugin-remove-api.js +148 -0
- package/dist/utils/babel/babel-plugin-remove-api.js.map +1 -0
- package/dist/utils/babel/find-slices.d.ts +8 -0
- package/dist/utils/babel/find-slices.js +68 -0
- package/dist/utils/babel/find-slices.js.map +1 -0
- package/dist/utils/babel-loader-helpers.d.ts +19 -0
- package/dist/utils/babel-loader-helpers.js +158 -0
- package/dist/utils/babel-loader-helpers.js.map +1 -0
- package/dist/utils/babel-loader.d.ts +8 -0
- package/dist/utils/babel-loader.js +158 -0
- package/dist/utils/babel-loader.js.map +1 -0
- package/dist/utils/babel-parse-to-ast.d.ts +4 -0
- package/dist/utils/babel-parse-to-ast.js +34 -0
- package/dist/utils/babel-parse-to-ast.js.map +1 -0
- package/dist/utils/batcher.d.ts +15 -0
- package/dist/utils/batcher.js +46 -0
- package/dist/utils/batcher.js.map +1 -0
- package/dist/utils/browserslist.d.ts +2 -0
- package/dist/utils/browserslist.js +38 -0
- package/dist/utils/browserslist.js.map +1 -0
- package/dist/utils/cache-lmdb.d.ts +19 -0
- package/dist/utils/cache-lmdb.js +88 -0
- package/dist/utils/cache-lmdb.js.map +1 -0
- package/dist/utils/cache.d.ts +17 -0
- package/dist/utils/cache.js +77 -0
- package/dist/utils/cache.js.map +1 -0
- package/dist/utils/call-deferred-api.d.ts +8 -0
- package/dist/utils/call-deferred-api.js +35 -0
- package/dist/utils/call-deferred-api.js.map +1 -0
- package/dist/utils/changed-pages.d.ts +6 -0
- package/dist/utils/changed-pages.js +45 -0
- package/dist/utils/changed-pages.js.map +1 -0
- package/dist/utils/clear-require-cache.d.ts +1 -0
- package/dist/utils/clear-require-cache.js +24 -0
- package/dist/utils/clear-require-cache.js.map +1 -0
- package/dist/utils/client-assets-for-template.d.ts +9 -0
- package/dist/utils/client-assets-for-template.js +141 -0
- package/dist/utils/client-assets-for-template.js.map +1 -0
- package/dist/utils/create-node-id.d.ts +24 -0
- package/dist/utils/create-node-id.js +67 -0
- package/dist/utils/create-node-id.js.map +1 -0
- package/dist/utils/create-schema-customization.d.ts +6 -0
- package/dist/utils/create-schema-customization.js +25 -0
- package/dist/utils/create-schema-customization.js.map +1 -0
- package/dist/utils/detect-node-mutations.d.ts +4 -0
- package/dist/utils/detect-node-mutations.js +134 -0
- package/dist/utils/detect-node-mutations.js.map +1 -0
- package/dist/utils/detect-port-in-use-and-prompt.d.ts +1 -0
- package/dist/utils/detect-port-in-use-and-prompt.js +31 -0
- package/dist/utils/detect-port-in-use-and-prompt.js.map +1 -0
- package/dist/utils/dev-ssr/parse-error.d.ts +22 -0
- package/dist/utils/dev-ssr/parse-error.js +119 -0
- package/dist/utils/dev-ssr/parse-error.js.map +1 -0
- package/dist/utils/dev-ssr/render-dev-html-child.d.ts +13 -0
- package/dist/utils/dev-ssr/render-dev-html-child.js +47 -0
- package/dist/utils/dev-ssr/render-dev-html-child.js.map +1 -0
- package/dist/utils/dev-ssr/render-dev-html.d.ts +23 -0
- package/dist/utils/dev-ssr/render-dev-html.js +227 -0
- package/dist/utils/dev-ssr/render-dev-html.js.map +1 -0
- package/dist/utils/develop-preload-headers.d.ts +7 -0
- package/dist/utils/develop-preload-headers.js +64 -0
- package/dist/utils/develop-preload-headers.js.map +1 -0
- package/dist/utils/did-you-mean.d.ts +3 -0
- package/dist/utils/did-you-mean.js +21 -0
- package/dist/utils/did-you-mean.js.map +1 -0
- package/dist/utils/engine-context.d.ts +5 -0
- package/dist/utils/engine-context.js +19 -0
- package/dist/utils/engine-context.js.map +1 -0
- package/dist/utils/engines-fs-provider.d.ts +9 -0
- package/dist/utils/engines-fs-provider.js +24 -0
- package/dist/utils/engines-fs-provider.js.map +1 -0
- package/dist/utils/engines-helpers.d.ts +10 -0
- package/dist/utils/engines-helpers.js +48 -0
- package/dist/utils/engines-helpers.js.map +1 -0
- package/dist/utils/ensure-file-content.d.ts +1 -0
- package/dist/utils/ensure-file-content.js +19 -0
- package/dist/utils/ensure-file-content.js.map +1 -0
- package/dist/utils/eslint/required.js +10 -0
- package/dist/utils/eslint/required.js.map +1 -0
- package/dist/utils/eslint-config.d.ts +3 -0
- package/dist/utils/eslint-config.js +136 -0
- package/dist/utils/eslint-config.js.map +1 -0
- package/dist/utils/eslint-rules/limited-exports-page-templates.d.ts +1 -0
- package/dist/utils/eslint-rules/limited-exports-page-templates.js +183 -0
- package/dist/utils/eslint-rules/limited-exports-page-templates.js.map +1 -0
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.d.ts +1 -0
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.js +75 -0
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.js.map +1 -0
- package/dist/utils/eslint-rules-helpers.d.ts +4 -0
- package/dist/utils/eslint-rules-helpers.js +22 -0
- package/dist/utils/eslint-rules-helpers.js.map +1 -0
- package/dist/utils/express-middlewares.d.ts +4 -0
- package/dist/utils/express-middlewares.js +57 -0
- package/dist/utils/express-middlewares.js.map +1 -0
- package/dist/utils/extract-undefined-global.d.ts +4 -0
- package/dist/utils/extract-undefined-global.js +15 -0
- package/dist/utils/extract-undefined-global.js.map +1 -0
- package/dist/utils/fast-refresh-module.d.ts +22 -0
- package/dist/utils/fast-refresh-module.js +53 -0
- package/dist/utils/fast-refresh-module.js.map +1 -0
- package/dist/utils/feedback.d.ts +5 -0
- package/dist/utils/feedback.js +159 -0
- package/dist/utils/feedback.js.map +1 -0
- package/dist/utils/find-page-by-path.d.ts +2 -0
- package/dist/utils/find-page-by-path.js +96 -0
- package/dist/utils/find-page-by-path.js.map +1 -0
- package/dist/utils/flags.d.ts +41 -0
- package/dist/utils/flags.js +92 -0
- package/dist/utils/flags.js.map +1 -0
- package/dist/utils/gatsby-cloud-config.d.ts +4 -0
- package/dist/utils/gatsby-cloud-config.js +15 -0
- package/dist/utils/gatsby-cloud-config.js.map +1 -0
- package/dist/utils/gatsby-dependents.d.ts +8 -0
- package/dist/utils/gatsby-dependents.js +51 -0
- package/dist/utils/gatsby-dependents.js.map +1 -0
- package/dist/utils/gatsby-webpack-stats-extractor.d.ts +7 -0
- package/dist/utils/gatsby-webpack-stats-extractor.js +136 -0
- package/dist/utils/gatsby-webpack-stats-extractor.js.map +1 -0
- package/dist/utils/gatsby-webpack-virtual-modules.d.ts +6 -0
- package/dist/utils/gatsby-webpack-virtual-modules.js +45 -0
- package/dist/utils/gatsby-webpack-virtual-modules.js.map +1 -0
- package/dist/utils/get-cache.d.ts +2 -0
- package/dist/utils/get-cache.js +18 -0
- package/dist/utils/get-cache.js.map +1 -0
- package/dist/utils/get-latest-gatsby-files.d.ts +8 -0
- package/dist/utils/get-latest-gatsby-files.js +93 -0
- package/dist/utils/get-latest-gatsby-files.js.map +1 -0
- package/dist/utils/get-page-data.d.ts +3 -0
- package/dist/utils/get-page-data.js +88 -0
- package/dist/utils/get-page-data.js.map +1 -0
- package/dist/utils/get-public-path.d.ts +5 -0
- package/dist/utils/get-public-path.js +19 -0
- package/dist/utils/get-public-path.js.map +1 -0
- package/dist/utils/get-server-data.d.ts +19 -0
- package/dist/utils/get-server-data.js +29 -0
- package/dist/utils/get-server-data.js.map +1 -0
- package/dist/utils/get-ssl-cert.d.ts +9 -0
- package/dist/utils/get-ssl-cert.js +95 -0
- package/dist/utils/get-ssl-cert.js.map +1 -0
- package/dist/utils/get-static-dir.d.ts +12 -0
- package/dist/utils/get-static-dir.js +60 -0
- package/dist/utils/get-static-dir.js.map +1 -0
- package/dist/utils/get-value-at.d.ts +1 -0
- package/dist/utils/get-value-at.js +22 -0
- package/dist/utils/get-value-at.js.map +1 -0
- package/dist/utils/graphql-typegen/file-writes.d.ts +5 -0
- package/dist/utils/graphql-typegen/file-writes.js +63 -0
- package/dist/utils/graphql-typegen/file-writes.js.map +1 -0
- package/dist/utils/graphql-typegen/ts-codegen.d.ts +5 -0
- package/dist/utils/graphql-typegen/ts-codegen.js +136 -0
- package/dist/utils/graphql-typegen/ts-codegen.js.map +1 -0
- package/dist/utils/graphql-typegen/utils.d.ts +11 -0
- package/dist/utils/graphql-typegen/utils.js +70 -0
- package/dist/utils/graphql-typegen/utils.js.map +1 -0
- package/dist/utils/handle-flags.d.ts +8 -0
- package/dist/utils/handle-flags.js +212 -0
- package/dist/utils/handle-flags.js.map +1 -0
- package/dist/utils/import-gatsby-plugin.d.ts +11 -0
- package/dist/utils/import-gatsby-plugin.js +40 -0
- package/dist/utils/import-gatsby-plugin.js.map +1 -0
- package/dist/utils/is-32-bit-integer.d.ts +1 -0
- package/dist/utils/is-32-bit-integer.js +8 -0
- package/dist/utils/is-32-bit-integer.js.map +1 -0
- package/dist/utils/is-near-match.d.ts +1 -0
- package/dist/utils/is-near-match.js +10 -0
- package/dist/utils/is-near-match.js.map +1 -0
- package/dist/utils/jobs/manager.d.ts +34 -0
- package/dist/utils/jobs/manager.js +313 -0
- package/dist/utils/jobs/manager.js.map +1 -0
- package/dist/utils/jobs/types.d.ts +63 -0
- package/dist/utils/jobs/types.js +32 -0
- package/dist/utils/jobs/types.js.map +1 -0
- package/dist/utils/jobs/worker-messaging.d.ts +10 -0
- package/dist/utils/jobs/worker-messaging.js +114 -0
- package/dist/utils/jobs/worker-messaging.js.map +1 -0
- package/dist/utils/js-chunk-names.d.ts +1 -0
- package/dist/utils/js-chunk-names.js +72 -0
- package/dist/utils/js-chunk-names.js.map +1 -0
- package/dist/utils/loading-indicator.d.ts +3 -0
- package/dist/utils/loading-indicator.js +44 -0
- package/dist/utils/loading-indicator.js.map +1 -0
- package/dist/utils/local-eslint-config-finder.d.ts +1 -0
- package/dist/utils/local-eslint-config-finder.js +31 -0
- package/dist/utils/local-eslint-config-finder.js.map +1 -0
- package/dist/utils/merge-gatsby-config.d.ts +28 -0
- package/dist/utils/merge-gatsby-config.js +43 -0
- package/dist/utils/merge-gatsby-config.js.map +1 -0
- package/dist/utils/mett.d.ts +10 -0
- package/dist/utils/mett.js +42 -0
- package/dist/utils/mett.js.map +1 -0
- package/dist/utils/module-resolver.d.ts +2 -0
- package/dist/utils/module-resolver.js +24 -0
- package/dist/utils/module-resolver.js.map +1 -0
- package/dist/utils/node-manifest.d.ts +46 -0
- package/dist/utils/node-manifest.js +367 -0
- package/dist/utils/node-manifest.js.map +1 -0
- package/dist/utils/nodes.d.ts +13 -0
- package/dist/utils/nodes.js +62 -0
- package/dist/utils/nodes.js.map +1 -0
- package/dist/utils/normalize-path.d.ts +2 -0
- package/dist/utils/normalize-path.js +11 -0
- package/dist/utils/normalize-path.js.map +1 -0
- package/dist/utils/page-data-helpers.d.ts +23 -0
- package/dist/utils/page-data-helpers.js +76 -0
- package/dist/utils/page-data-helpers.js.map +1 -0
- package/dist/utils/page-data.d.ts +39 -0
- package/dist/utils/page-data.js +366 -0
- package/dist/utils/page-data.js.map +1 -0
- package/dist/utils/page-mode.d.ts +18 -0
- package/dist/utils/page-mode.js +124 -0
- package/dist/utils/page-mode.js.map +1 -0
- package/dist/utils/page-ssr-module/bundle-webpack.d.ts +18 -0
- package/dist/utils/page-ssr-module/bundle-webpack.js +209 -0
- package/dist/utils/page-ssr-module/bundle-webpack.js.map +1 -0
- package/dist/utils/page-ssr-module/entry.d.ts +61 -0
- package/dist/utils/page-ssr-module/entry.js +344 -0
- package/dist/utils/page-ssr-module/entry.js.map +1 -0
- package/dist/utils/page-ssr-module/lambda.d.ts +3 -0
- package/dist/utils/page-ssr-module/lambda.js +401 -0
- package/dist/utils/page-ssr-module/lambda.js.map +1 -0
- package/dist/utils/parcel/compile-gatsby-files.d.ts +26 -0
- package/dist/utils/parcel/compile-gatsby-files.js +271 -0
- package/dist/utils/parcel/compile-gatsby-files.js.map +1 -0
- package/dist/utils/path.d.ts +5 -0
- package/dist/utils/path.js +55 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/prepare-regex.d.ts +1 -0
- package/dist/utils/prepare-regex.js +13 -0
- package/dist/utils/prepare-regex.js.map +1 -0
- package/dist/utils/prepare-urls.d.ts +7 -0
- package/dist/utils/prepare-urls.js +58 -0
- package/dist/utils/prepare-urls.js.map +1 -0
- package/dist/utils/print-instructions.d.ts +2 -0
- package/dist/utils/print-instructions.js +42 -0
- package/dist/utils/print-instructions.js.map +1 -0
- package/dist/utils/rank-route.d.ts +1 -0
- package/dist/utils/rank-route.js +26 -0
- package/dist/utils/rank-route.js.map +1 -0
- package/dist/utils/reach-router-add-basecontext-export-loader.d.ts +1 -0
- package/dist/utils/reach-router-add-basecontext-export-loader.js +23 -0
- package/dist/utils/reach-router-add-basecontext-export-loader.js.map +1 -0
- package/dist/utils/report-once.d.ts +1 -0
- package/dist/utils/report-once.js +17 -0
- package/dist/utils/report-once.js.map +1 -0
- package/dist/utils/sanitize-node.d.ts +12 -0
- package/dist/utils/sanitize-node.js +87 -0
- package/dist/utils/sanitize-node.js.map +1 -0
- package/dist/utils/show-experiment-notice.d.ts +6 -0
- package/dist/utils/show-experiment-notice.js +51 -0
- package/dist/utils/show-experiment-notice.js.map +1 -0
- package/dist/utils/slices/stitching.d.ts +4 -0
- package/dist/utils/slices/stitching.js +92 -0
- package/dist/utils/slices/stitching.js.map +1 -0
- package/dist/utils/slices.d.ts +2 -0
- package/dist/utils/slices.js +9 -0
- package/dist/utils/slices.js.map +1 -0
- package/dist/utils/source-nodes-api-runner.d.ts +8 -0
- package/dist/utils/source-nodes-api-runner.js +23 -0
- package/dist/utils/source-nodes-api-runner.js.map +1 -0
- package/dist/utils/source-nodes.d.ts +11 -0
- package/dist/utils/source-nodes.js +150 -0
- package/dist/utils/source-nodes.js.map +1 -0
- package/dist/utils/stack-trace-utils.d.ts +24 -0
- package/dist/utils/stack-trace-utils.js +113 -0
- package/dist/utils/stack-trace-utils.js.map +1 -0
- package/dist/utils/start-server.d.ts +22 -0
- package/dist/utils/start-server.js +722 -0
- package/dist/utils/start-server.js.map +1 -0
- package/dist/utils/state-machine-logging.d.ts +4 -0
- package/dist/utils/state-machine-logging.js +47 -0
- package/dist/utils/state-machine-logging.js.map +1 -0
- package/dist/utils/static-query-utils.d.ts +13 -0
- package/dist/utils/static-query-utils.js +57 -0
- package/dist/utils/static-query-utils.js.map +1 -0
- package/dist/utils/test-import-error.d.ts +1 -0
- package/dist/utils/test-import-error.js +18 -0
- package/dist/utils/test-import-error.js.map +1 -0
- package/dist/utils/tracer/index.d.ts +12 -0
- package/dist/utils/tracer/index.js +42 -0
- package/dist/utils/tracer/index.js.map +1 -0
- package/dist/utils/tracer/jaeger-local.d.ts +4 -0
- package/dist/utils/tracer/jaeger-local.js +32 -0
- package/dist/utils/tracer/jaeger-local.js.map +1 -0
- package/dist/utils/tracer/zipkin-local.d.ts +11 -0
- package/dist/utils/tracer/zipkin-local.js +87 -0
- package/dist/utils/tracer/zipkin-local.js.map +1 -0
- package/dist/utils/tracer/zipkin-types.d.js +14 -0
- package/dist/utils/tracer/zipkin-types.d.js.map +1 -0
- package/dist/utils/validate-component.d.ts +23 -0
- package/dist/utils/validate-component.js +99 -0
- package/dist/utils/validate-component.js.map +1 -0
- package/dist/utils/validate-engines/child.d.ts +1 -0
- package/dist/utils/validate-engines/child.js +74 -0
- package/dist/utils/validate-engines/child.js.map +1 -0
- package/dist/utils/validate-engines/index.d.ts +2 -0
- package/dist/utils/validate-engines/index.js +48 -0
- package/dist/utils/validate-engines/index.js.map +1 -0
- package/dist/utils/wait-until-jobs-complete.d.ts +2 -0
- package/dist/utils/wait-until-jobs-complete.js +30 -0
- package/dist/utils/wait-until-jobs-complete.js.map +1 -0
- package/dist/utils/webpack/bundle.d.ts +9 -0
- package/dist/utils/webpack/bundle.js +41 -0
- package/dist/utils/webpack/bundle.js.map +1 -0
- package/dist/utils/webpack/get-ssr-chunk-hashes.d.ts +9 -0
- package/dist/utils/webpack/get-ssr-chunk-hashes.js +55 -0
- package/dist/utils/webpack/get-ssr-chunk-hashes.js.map +1 -0
- package/dist/utils/webpack/loaders/client-components-requires-writer-loader.d.ts +1 -0
- package/dist/utils/webpack/loaders/client-components-requires-writer-loader.js +22 -0
- package/dist/utils/webpack/loaders/client-components-requires-writer-loader.js.map +1 -0
- package/dist/utils/webpack/loaders/partial-hydration-reference-loader.d.ts +1 -0
- package/dist/utils/webpack/loaders/partial-hydration-reference-loader.js +127 -0
- package/dist/utils/webpack/loaders/partial-hydration-reference-loader.js.map +1 -0
- package/dist/utils/webpack/loaders/webpack-remove-exports-loader.d.ts +1 -0
- package/dist/utils/webpack/loaders/webpack-remove-exports-loader.js +40 -0
- package/dist/utils/webpack/loaders/webpack-remove-exports-loader.js.map +1 -0
- package/dist/utils/webpack/plugins/cache-folder-resolver.d.ts +25 -0
- package/dist/utils/webpack/plugins/cache-folder-resolver.js +111 -0
- package/dist/utils/webpack/plugins/cache-folder-resolver.js.map +1 -0
- package/dist/utils/webpack/plugins/corejs-resolver.d.ts +12 -0
- package/dist/utils/webpack/plugins/corejs-resolver.js +66 -0
- package/dist/utils/webpack/plugins/corejs-resolver.js.map +1 -0
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.d.ts +22 -0
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.js +88 -0
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.js.map +1 -0
- package/dist/utils/webpack/plugins/partial-hydration.d.ts +26 -0
- package/dist/utils/webpack/plugins/partial-hydration.js +362 -0
- package/dist/utils/webpack/plugins/partial-hydration.js.map +1 -0
- package/dist/utils/webpack/plugins/static-query-mapper.d.ts +13 -0
- package/dist/utils/webpack/plugins/static-query-mapper.js +235 -0
- package/dist/utils/webpack/plugins/static-query-mapper.js.map +1 -0
- package/dist/utils/webpack/plugins/webpack-logging.d.ts +12 -0
- package/dist/utils/webpack/plugins/webpack-logging.js +51 -0
- package/dist/utils/webpack/plugins/webpack-logging.js.map +1 -0
- package/dist/utils/webpack/utils/create-normalized-module-key.d.ts +12 -0
- package/dist/utils/webpack/utils/create-normalized-module-key.js +25 -0
- package/dist/utils/webpack/utils/create-normalized-module-key.js.map +1 -0
- package/dist/utils/webpack/utils/is-file-inside-compilations.d.ts +7 -0
- package/dist/utils/webpack/utils/is-file-inside-compilations.js +37 -0
- package/dist/utils/webpack/utils/is-file-inside-compilations.js.map +1 -0
- package/dist/utils/webpack-error-utils.d.ts +24 -0
- package/dist/utils/webpack-error-utils.js +112 -0
- package/dist/utils/webpack-error-utils.js.map +1 -0
- package/dist/utils/webpack-plugins.d.ts +46 -0
- package/dist/utils/webpack-plugins.js +61 -0
- package/dist/utils/webpack-plugins.js.map +1 -0
- package/dist/utils/webpack-status.d.ts +3 -0
- package/dist/utils/webpack-status.js +21 -0
- package/dist/utils/webpack-status.js.map +1 -0
- package/dist/utils/webpack-utils.d.ts +121 -0
- package/dist/utils/webpack-utils.js +574 -0
- package/dist/utils/webpack-utils.js.map +1 -0
- package/dist/utils/webpack.config.js +804 -0
- package/dist/utils/webpack.config.js.map +1 -0
- package/dist/utils/websocket-manager.d.ts +39 -0
- package/dist/utils/websocket-manager.js +183 -0
- package/dist/utils/websocket-manager.js.map +1 -0
- package/dist/utils/worker/child/index.d.ts +5 -0
- package/dist/utils/worker/child/index.js +35 -0
- package/dist/utils/worker/child/index.js.map +1 -0
- package/dist/utils/worker/child/load-config-and-plugins.d.ts +2 -0
- package/dist/utils/worker/child/load-config-and-plugins.js +28 -0
- package/dist/utils/worker/child/load-config-and-plugins.js.map +1 -0
- package/dist/utils/worker/child/queries.d.ts +7 -0
- package/dist/utils/worker/child/queries.js +84 -0
- package/dist/utils/worker/child/queries.js.map +1 -0
- package/dist/utils/worker/child/render-html.d.ts +49 -0
- package/dist/utils/worker/child/render-html.js +562 -0
- package/dist/utils/worker/child/render-html.js.map +1 -0
- package/dist/utils/worker/child/schema.d.ts +2 -0
- package/dist/utils/worker/child/schema.js +41 -0
- package/dist/utils/worker/child/schema.js.map +1 -0
- package/dist/utils/worker/child/state.d.ts +2 -0
- package/dist/utils/worker/child/state.js +13 -0
- package/dist/utils/worker/child/state.js.map +1 -0
- package/dist/utils/worker/messaging.d.ts +16 -0
- package/dist/utils/worker/messaging.js +9 -0
- package/dist/utils/worker/messaging.js.map +1 -0
- package/dist/utils/worker/pool.d.ts +10 -0
- package/dist/utils/worker/pool.js +122 -0
- package/dist/utils/worker/pool.js.map +1 -0
- package/dist/utils/worker/reporter.d.ts +3 -0
- package/dist/utils/worker/reporter.js +26 -0
- package/dist/utils/worker/reporter.js.map +1 -0
- package/dist/utils/worker/types.d.ts +3 -0
- package/dist/utils/worker/types.js +4 -0
- package/dist/utils/worker/types.js.map +1 -0
- package/graphql.d.ts +2 -0
- package/graphql.js +6 -0
- package/index.d.ts +1906 -0
- package/internal.d.ts +4 -0
- package/internal.js +5 -0
- package/ipc.json +3 -0
- package/package.json +744 -0
- package/reporter.d.ts +4 -0
- package/reporter.js +3 -0
- package/scripts/postinstall.js +7 -0
- package/utils.js +1 -0
- package/webpack.d.ts +3 -0
- package/webpack.js +3 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.default = void 0;
|
|
6
|
+
exports.getPageChunk = getPageChunk;
|
|
7
|
+
var _merge2 = _interopRequireDefault(require("lodash/merge"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _server = require("react-dom/server");
|
|
10
|
+
var _apiRunnerSsr = require("./api-runner-ssr");
|
|
11
|
+
var _asyncRequires = _interopRequireDefault(require("$virtual/async-requires"));
|
|
12
|
+
/* global BROWSER_ESM_ONLY */
|
|
13
|
+
|
|
14
|
+
const testRequireError = (moduleName, err) => {
|
|
15
|
+
const regex = new RegExp(`Error: Cannot find module\\s.${moduleName}`);
|
|
16
|
+
const firstLine = err.toString().split(`\n`)[0];
|
|
17
|
+
return regex.test(firstLine);
|
|
18
|
+
};
|
|
19
|
+
let Html;
|
|
20
|
+
try {
|
|
21
|
+
Html = require(`../src/html`);
|
|
22
|
+
} catch (err) {
|
|
23
|
+
if (testRequireError(`../src/html`, err)) {
|
|
24
|
+
Html = require(`./default-html`);
|
|
25
|
+
} else {
|
|
26
|
+
console.log(`There was an error requiring "src/html.js"\n\n`, err, `\n\n`);
|
|
27
|
+
process.exit();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
Html = Html && Html.__esModule ? Html.default : Html;
|
|
31
|
+
var _default = ({
|
|
32
|
+
pagePath
|
|
33
|
+
}) => {
|
|
34
|
+
let headComponents = [/*#__PURE__*/_react.default.createElement("meta", {
|
|
35
|
+
key: "environment",
|
|
36
|
+
name: "note",
|
|
37
|
+
content: "environment=development"
|
|
38
|
+
})];
|
|
39
|
+
let htmlAttributes = {};
|
|
40
|
+
let bodyAttributes = {};
|
|
41
|
+
let preBodyComponents = [];
|
|
42
|
+
let postBodyComponents = [];
|
|
43
|
+
let bodyProps = {};
|
|
44
|
+
let htmlStr;
|
|
45
|
+
const setHeadComponents = components => {
|
|
46
|
+
headComponents = headComponents.concat(components);
|
|
47
|
+
};
|
|
48
|
+
const setHtmlAttributes = attributes => {
|
|
49
|
+
htmlAttributes = (0, _merge2.default)(htmlAttributes, attributes);
|
|
50
|
+
};
|
|
51
|
+
const setBodyAttributes = attributes => {
|
|
52
|
+
bodyAttributes = (0, _merge2.default)(bodyAttributes, attributes);
|
|
53
|
+
};
|
|
54
|
+
const setPreBodyComponents = components => {
|
|
55
|
+
preBodyComponents = preBodyComponents.concat(components);
|
|
56
|
+
};
|
|
57
|
+
const setPostBodyComponents = components => {
|
|
58
|
+
postBodyComponents = postBodyComponents.concat(components);
|
|
59
|
+
};
|
|
60
|
+
const setBodyProps = props => {
|
|
61
|
+
bodyProps = (0, _merge2.default)({}, bodyProps, props);
|
|
62
|
+
};
|
|
63
|
+
const getHeadComponents = () => headComponents;
|
|
64
|
+
const replaceHeadComponents = components => {
|
|
65
|
+
headComponents = components;
|
|
66
|
+
};
|
|
67
|
+
const getPreBodyComponents = () => preBodyComponents;
|
|
68
|
+
const replacePreBodyComponents = components => {
|
|
69
|
+
preBodyComponents = components;
|
|
70
|
+
};
|
|
71
|
+
const getPostBodyComponents = () => postBodyComponents;
|
|
72
|
+
const replacePostBodyComponents = components => {
|
|
73
|
+
postBodyComponents = components;
|
|
74
|
+
};
|
|
75
|
+
(0, _apiRunnerSsr.apiRunner)(`onRenderBody`, {
|
|
76
|
+
setHeadComponents,
|
|
77
|
+
setHtmlAttributes,
|
|
78
|
+
setBodyAttributes,
|
|
79
|
+
setPreBodyComponents,
|
|
80
|
+
setPostBodyComponents,
|
|
81
|
+
setBodyProps,
|
|
82
|
+
pathname: pagePath
|
|
83
|
+
});
|
|
84
|
+
(0, _apiRunnerSsr.apiRunner)(`onPreRenderHTML`, {
|
|
85
|
+
getHeadComponents,
|
|
86
|
+
replaceHeadComponents,
|
|
87
|
+
getPreBodyComponents,
|
|
88
|
+
replacePreBodyComponents,
|
|
89
|
+
getPostBodyComponents,
|
|
90
|
+
replacePostBodyComponents,
|
|
91
|
+
pathname: pagePath
|
|
92
|
+
});
|
|
93
|
+
const htmlElement = /*#__PURE__*/_react.default.createElement(Html, {
|
|
94
|
+
...bodyProps,
|
|
95
|
+
body: ``,
|
|
96
|
+
headComponents: headComponents.concat([/*#__PURE__*/_react.default.createElement("script", {
|
|
97
|
+
key: `io`,
|
|
98
|
+
src: "/socket.io/socket.io.js"
|
|
99
|
+
}), /*#__PURE__*/_react.default.createElement("link", {
|
|
100
|
+
key: "styles",
|
|
101
|
+
rel: "stylesheet",
|
|
102
|
+
href: "/commons.css"
|
|
103
|
+
})]),
|
|
104
|
+
htmlAttributes,
|
|
105
|
+
bodyAttributes,
|
|
106
|
+
preBodyComponents,
|
|
107
|
+
postBodyComponents: postBodyComponents.concat([!BROWSER_ESM_ONLY && /*#__PURE__*/_react.default.createElement("script", {
|
|
108
|
+
key: `polyfill`,
|
|
109
|
+
src: "/polyfill.js",
|
|
110
|
+
noModule: true
|
|
111
|
+
}), /*#__PURE__*/_react.default.createElement("script", {
|
|
112
|
+
key: `framework`,
|
|
113
|
+
src: "/framework.js"
|
|
114
|
+
}), /*#__PURE__*/_react.default.createElement("script", {
|
|
115
|
+
key: `commons`,
|
|
116
|
+
src: "/commons.js"
|
|
117
|
+
})].filter(Boolean))
|
|
118
|
+
});
|
|
119
|
+
htmlStr = (0, _server.renderToStaticMarkup)(htmlElement);
|
|
120
|
+
htmlStr = `<!DOCTYPE html>${htmlStr}`;
|
|
121
|
+
return htmlStr;
|
|
122
|
+
};
|
|
123
|
+
exports.default = _default;
|
|
124
|
+
function getPageChunk({
|
|
125
|
+
componentChunkName
|
|
126
|
+
}) {
|
|
127
|
+
return _asyncRequires.default.components[componentChunkName]();
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=develop-static-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"develop-static-entry.js","names":["testRequireError","moduleName","err","regex","RegExp","firstLine","toString","split","test","Html","require","console","log","process","exit","__esModule","default","pagePath","headComponents","htmlAttributes","bodyAttributes","preBodyComponents","postBodyComponents","bodyProps","htmlStr","setHeadComponents","components","concat","setHtmlAttributes","attributes","setBodyAttributes","setPreBodyComponents","setPostBodyComponents","setBodyProps","props","getHeadComponents","replaceHeadComponents","getPreBodyComponents","replacePreBodyComponents","getPostBodyComponents","replacePostBodyComponents","apiRunner","pathname","htmlElement","React","createElement","body","BROWSER_ESM_ONLY","filter","Boolean","renderToStaticMarkup","getPageChunk","componentChunkName","asyncRequires"],"sources":["../develop-static-entry.js"],"sourcesContent":["/* global BROWSER_ESM_ONLY */\nimport React from \"react\"\nimport { renderToStaticMarkup } from \"react-dom/server\"\nimport { merge } from \"lodash\"\nimport { apiRunner } from \"./api-runner-ssr\"\nimport asyncRequires from \"$virtual/async-requires\"\n\nconst testRequireError = (moduleName, err) => {\n const regex = new RegExp(`Error: Cannot find module\\\\s.${moduleName}`)\n const firstLine = err.toString().split(`\\n`)[0]\n return regex.test(firstLine)\n}\n\nlet Html\ntry {\n Html = require(`../src/html`)\n} catch (err) {\n if (testRequireError(`../src/html`, err)) {\n Html = require(`./default-html`)\n } else {\n console.log(`There was an error requiring \"src/html.js\"\\n\\n`, err, `\\n\\n`)\n process.exit()\n }\n}\n\nHtml = Html && Html.__esModule ? Html.default : Html\n\nexport default ({ pagePath }) => {\n let headComponents = [\n <meta key=\"environment\" name=\"note\" content=\"environment=development\" />,\n ]\n let htmlAttributes = {}\n let bodyAttributes = {}\n let preBodyComponents = []\n let postBodyComponents = []\n let bodyProps = {}\n let htmlStr\n\n const setHeadComponents = components => {\n headComponents = headComponents.concat(components)\n }\n\n const setHtmlAttributes = attributes => {\n htmlAttributes = merge(htmlAttributes, attributes)\n }\n\n const setBodyAttributes = attributes => {\n bodyAttributes = merge(bodyAttributes, attributes)\n }\n\n const setPreBodyComponents = components => {\n preBodyComponents = preBodyComponents.concat(components)\n }\n\n const setPostBodyComponents = components => {\n postBodyComponents = postBodyComponents.concat(components)\n }\n\n const setBodyProps = props => {\n bodyProps = merge({}, bodyProps, props)\n }\n\n const getHeadComponents = () => headComponents\n\n const replaceHeadComponents = components => {\n headComponents = components\n }\n\n const getPreBodyComponents = () => preBodyComponents\n\n const replacePreBodyComponents = components => {\n preBodyComponents = components\n }\n\n const getPostBodyComponents = () => postBodyComponents\n\n const replacePostBodyComponents = components => {\n postBodyComponents = components\n }\n\n apiRunner(`onRenderBody`, {\n setHeadComponents,\n setHtmlAttributes,\n setBodyAttributes,\n setPreBodyComponents,\n setPostBodyComponents,\n setBodyProps,\n pathname: pagePath,\n })\n\n apiRunner(`onPreRenderHTML`, {\n getHeadComponents,\n replaceHeadComponents,\n getPreBodyComponents,\n replacePreBodyComponents,\n getPostBodyComponents,\n replacePostBodyComponents,\n pathname: pagePath,\n })\n\n const htmlElement = React.createElement(Html, {\n ...bodyProps,\n body: ``,\n headComponents: headComponents.concat([\n <script key={`io`} src=\"/socket.io/socket.io.js\" />,\n <link key=\"styles\" rel=\"stylesheet\" href=\"/commons.css\" />,\n ]),\n htmlAttributes,\n bodyAttributes,\n preBodyComponents,\n postBodyComponents: postBodyComponents.concat(\n [\n !BROWSER_ESM_ONLY && (\n <script key={`polyfill`} src=\"/polyfill.js\" noModule={true} />\n ),\n <script key={`framework`} src=\"/framework.js\" />,\n <script key={`commons`} src=\"/commons.js\" />,\n ].filter(Boolean)\n ),\n })\n htmlStr = renderToStaticMarkup(htmlElement)\n htmlStr = `<!DOCTYPE html>${htmlStr}`\n\n return htmlStr\n}\n\nexport function getPageChunk({ componentChunkName }) {\n return asyncRequires.components[componentChunkName]()\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dummy.js","names":["a"],"sources":["../dummy.js"],"sourcesContent":["// Dummy file to work around a webpack hot reloading bug.\nexport const a = 1\n"],"mappings":";;;;AAAA;AACO,MAAMA,CAAC,GAAG,CAAC;AAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.default = void 0;
|
|
6
|
+
var _mitt = _interopRequireDefault(require("mitt"));
|
|
7
|
+
const emitter = (0, _mitt.default)();
|
|
8
|
+
var _default = emitter;
|
|
9
|
+
exports.default = _default;
|
|
10
|
+
//# sourceMappingURL=emitter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emitter.js","names":["emitter","mitt"],"sources":["../emitter.js"],"sourcesContent":["import mitt from \"mitt\"\n\nconst emitter = mitt()\nexport default emitter\n"],"mappings":";;;;;AAAA;AAEA,MAAMA,OAAO,GAAG,IAAAC,aAAI,GAAE;AAAA,eACPD,OAAO;AAAA"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.default = void 0;
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
var _loader = _interopRequireWildcard(require("./loader"));
|
|
8
|
+
var _shallowCompare = _interopRequireDefault(require("shallow-compare"));
|
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
class EnsureResources extends _react.default.Component {
|
|
12
|
+
constructor(props) {
|
|
13
|
+
super();
|
|
14
|
+
const {
|
|
15
|
+
location,
|
|
16
|
+
pageResources
|
|
17
|
+
} = props;
|
|
18
|
+
this.state = {
|
|
19
|
+
location: {
|
|
20
|
+
...location
|
|
21
|
+
},
|
|
22
|
+
pageResources: pageResources || _loader.default.loadPageSync(location.pathname + location.search, {
|
|
23
|
+
withErrorDetails: true
|
|
24
|
+
})
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
static getDerivedStateFromProps({
|
|
28
|
+
location
|
|
29
|
+
}, prevState) {
|
|
30
|
+
if (prevState.location.href !== location.href) {
|
|
31
|
+
const pageResources = _loader.default.loadPageSync(location.pathname + location.search, {
|
|
32
|
+
withErrorDetails: true
|
|
33
|
+
});
|
|
34
|
+
return {
|
|
35
|
+
pageResources,
|
|
36
|
+
location: {
|
|
37
|
+
...location
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
location: {
|
|
43
|
+
...location
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
loadResources(rawPath) {
|
|
48
|
+
_loader.default.loadPage(rawPath).then(pageResources => {
|
|
49
|
+
if (pageResources && pageResources.status !== _loader.PageResourceStatus.Error) {
|
|
50
|
+
this.setState({
|
|
51
|
+
location: {
|
|
52
|
+
...window.location
|
|
53
|
+
},
|
|
54
|
+
pageResources
|
|
55
|
+
});
|
|
56
|
+
} else {
|
|
57
|
+
window.history.replaceState({}, ``, location.href);
|
|
58
|
+
window.location = rawPath;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
shouldComponentUpdate(nextProps, nextState) {
|
|
63
|
+
// Always return false if we're missing resources.
|
|
64
|
+
if (!nextState.pageResources) {
|
|
65
|
+
this.loadResources(nextProps.location.pathname + nextProps.location.search);
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
if (process.env.BUILD_STAGE === `develop` && nextState.pageResources.stale) {
|
|
69
|
+
this.loadResources(nextProps.location.pathname + nextProps.location.search);
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Check if the component or json have changed.
|
|
74
|
+
if (this.state.pageResources !== nextState.pageResources) {
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
if (this.state.pageResources.component !== nextState.pageResources.component) {
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
if (this.state.pageResources.json !== nextState.pageResources.json) {
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
// Check if location has changed on a page using internal routing
|
|
84
|
+
// via matchPath configuration.
|
|
85
|
+
if (this.state.location.key !== nextState.location.key && nextState.pageResources.page && (nextState.pageResources.page.matchPath || nextState.pageResources.page.path)) {
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
return (0, _shallowCompare.default)(this, nextProps, nextState);
|
|
89
|
+
}
|
|
90
|
+
render() {
|
|
91
|
+
if (process.env.NODE_ENV !== `production` && (!this.state.pageResources || this.state.pageResources.status === _loader.PageResourceStatus.Error)) {
|
|
92
|
+
var _this$state$pageResou;
|
|
93
|
+
const message = `EnsureResources was not able to find resources for path: "${this.props.location.pathname}"
|
|
94
|
+
This typically means that an issue occurred building components for that path.
|
|
95
|
+
Run \`gatsby clean\` to remove any cached elements.`;
|
|
96
|
+
if ((_this$state$pageResou = this.state.pageResources) !== null && _this$state$pageResou !== void 0 && _this$state$pageResou.error) {
|
|
97
|
+
console.error(message);
|
|
98
|
+
throw this.state.pageResources.error;
|
|
99
|
+
}
|
|
100
|
+
throw new Error(message);
|
|
101
|
+
}
|
|
102
|
+
return this.props.children(this.state);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
var _default = EnsureResources;
|
|
106
|
+
exports.default = _default;
|
|
107
|
+
//# sourceMappingURL=ensure-resources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-resources.js","names":["EnsureResources","React","Component","constructor","props","location","pageResources","state","loader","loadPageSync","pathname","search","withErrorDetails","getDerivedStateFromProps","prevState","href","loadResources","rawPath","loadPage","then","status","PageResourceStatus","Error","setState","window","history","replaceState","shouldComponentUpdate","nextProps","nextState","process","env","BUILD_STAGE","stale","component","json","key","page","matchPath","path","shallowCompare","render","NODE_ENV","message","error","console","children"],"sources":["../ensure-resources.js"],"sourcesContent":["import React from \"react\"\nimport loader, { PageResourceStatus } from \"./loader\"\nimport shallowCompare from \"shallow-compare\"\n\nclass EnsureResources extends React.Component {\n constructor(props) {\n super()\n const { location, pageResources } = props\n this.state = {\n location: { ...location },\n pageResources:\n pageResources ||\n loader.loadPageSync(location.pathname + location.search, {\n withErrorDetails: true,\n }),\n }\n }\n\n static getDerivedStateFromProps({ location }, prevState) {\n if (prevState.location.href !== location.href) {\n const pageResources = loader.loadPageSync(\n location.pathname + location.search,\n {\n withErrorDetails: true,\n }\n )\n\n return {\n pageResources,\n location: { ...location },\n }\n }\n\n return {\n location: { ...location },\n }\n }\n\n loadResources(rawPath) {\n loader.loadPage(rawPath).then(pageResources => {\n if (pageResources && pageResources.status !== PageResourceStatus.Error) {\n this.setState({\n location: { ...window.location },\n pageResources,\n })\n } else {\n window.history.replaceState({}, ``, location.href)\n window.location = rawPath\n }\n })\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n // Always return false if we're missing resources.\n if (!nextState.pageResources) {\n this.loadResources(\n nextProps.location.pathname + nextProps.location.search\n )\n return false\n }\n\n if (\n process.env.BUILD_STAGE === `develop` &&\n nextState.pageResources.stale\n ) {\n this.loadResources(\n nextProps.location.pathname + nextProps.location.search\n )\n return false\n }\n\n // Check if the component or json have changed.\n if (this.state.pageResources !== nextState.pageResources) {\n return true\n }\n if (\n this.state.pageResources.component !== nextState.pageResources.component\n ) {\n return true\n }\n\n if (this.state.pageResources.json !== nextState.pageResources.json) {\n return true\n }\n // Check if location has changed on a page using internal routing\n // via matchPath configuration.\n if (\n this.state.location.key !== nextState.location.key &&\n nextState.pageResources.page &&\n (nextState.pageResources.page.matchPath ||\n nextState.pageResources.page.path)\n ) {\n return true\n }\n return shallowCompare(this, nextProps, nextState)\n }\n\n render() {\n if (\n process.env.NODE_ENV !== `production` &&\n (!this.state.pageResources ||\n this.state.pageResources.status === PageResourceStatus.Error)\n ) {\n const message = `EnsureResources was not able to find resources for path: \"${this.props.location.pathname}\"\nThis typically means that an issue occurred building components for that path.\nRun \\`gatsby clean\\` to remove any cached elements.`\n if (this.state.pageResources?.error) {\n console.error(message)\n throw this.state.pageResources.error\n }\n\n throw new Error(message)\n }\n\n return this.props.children(this.state)\n }\n}\n\nexport default EnsureResources\n"],"mappings":"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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.reportError = exports.clearError = void 0;
|
|
5
|
+
const errorMap = {};
|
|
6
|
+
const handleErrorOverlay = () => {
|
|
7
|
+
const errors = Object.values(errorMap);
|
|
8
|
+
let errorsToDisplay = [];
|
|
9
|
+
if (errors.length > 0) {
|
|
10
|
+
errorsToDisplay = errors.flatMap(e => e).filter(Boolean);
|
|
11
|
+
}
|
|
12
|
+
if (errorsToDisplay.length > 0) {
|
|
13
|
+
window._gatsbyEvents.push([`FAST_REFRESH`, {
|
|
14
|
+
action: `SHOW_GRAPHQL_ERRORS`,
|
|
15
|
+
payload: errorsToDisplay
|
|
16
|
+
}]);
|
|
17
|
+
} else {
|
|
18
|
+
window._gatsbyEvents.push([`FAST_REFRESH`, {
|
|
19
|
+
action: `CLEAR_GRAPHQL_ERRORS`
|
|
20
|
+
}]);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const clearError = errorID => {
|
|
24
|
+
delete errorMap[errorID];
|
|
25
|
+
handleErrorOverlay();
|
|
26
|
+
};
|
|
27
|
+
exports.clearError = clearError;
|
|
28
|
+
const reportError = (errorID, error) => {
|
|
29
|
+
if (error) {
|
|
30
|
+
errorMap[errorID] = error;
|
|
31
|
+
}
|
|
32
|
+
handleErrorOverlay();
|
|
33
|
+
};
|
|
34
|
+
exports.reportError = reportError;
|
|
35
|
+
//# sourceMappingURL=error-overlay-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-overlay-handler.js","names":["errorMap","handleErrorOverlay","errors","Object","values","errorsToDisplay","length","flatMap","e","filter","Boolean","window","_gatsbyEvents","push","action","payload","clearError","errorID","reportError","error"],"sources":["../error-overlay-handler.js"],"sourcesContent":["const errorMap = {}\n\nconst handleErrorOverlay = () => {\n const errors = Object.values(errorMap)\n let errorsToDisplay = []\n if (errors.length > 0) {\n errorsToDisplay = errors.flatMap(e => e).filter(Boolean)\n }\n\n if (errorsToDisplay.length > 0) {\n window._gatsbyEvents.push([\n `FAST_REFRESH`,\n {\n action: `SHOW_GRAPHQL_ERRORS`,\n payload: errorsToDisplay,\n },\n ])\n } else {\n window._gatsbyEvents.push([\n `FAST_REFRESH`,\n { action: `CLEAR_GRAPHQL_ERRORS` },\n ])\n }\n}\n\nexport const clearError = errorID => {\n delete errorMap[errorID]\n handleErrorOverlay()\n}\n\nexport const reportError = (errorID, error) => {\n if (error) {\n errorMap[errorID] = error\n }\n handleErrorOverlay()\n}\n"],"mappings":";;;;AAAA,MAAMA,QAAQ,GAAG,CAAC,CAAC;AAEnB,MAAMC,kBAAkB,GAAG,MAAM;EAC/B,MAAMC,MAAM,GAAGC,MAAM,CAACC,MAAM,CAACJ,QAAQ,CAAC;EACtC,IAAIK,eAAe,GAAG,EAAE;EACxB,IAAIH,MAAM,CAACI,MAAM,GAAG,CAAC,EAAE;IACrBD,eAAe,GAAGH,MAAM,CAACK,OAAO,CAACC,CAAC,IAAIA,CAAC,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC;EAC1D;EAEA,IAAIL,eAAe,CAACC,MAAM,GAAG,CAAC,EAAE;IAC9BK,MAAM,CAACC,aAAa,CAACC,IAAI,CAAC,CACvB,cAAa,EACd;MACEC,MAAM,EAAG,qBAAoB;MAC7BC,OAAO,EAAEV;IACX,CAAC,CACF,CAAC;EACJ,CAAC,MAAM;IACLM,MAAM,CAACC,aAAa,CAACC,IAAI,CAAC,CACvB,cAAa,EACd;MAAEC,MAAM,EAAG;IAAsB,CAAC,CACnC,CAAC;EACJ;AACF,CAAC;AAEM,MAAME,UAAU,GAAGC,OAAO,IAAI;EACnC,OAAOjB,QAAQ,CAACiB,OAAO,CAAC;EACxBhB,kBAAkB,EAAE;AACtB,CAAC;AAAA;AAEM,MAAMiB,WAAW,GAAG,CAACD,OAAO,EAAEE,KAAK,KAAK;EAC7C,IAAIA,KAAK,EAAE;IACTnB,QAAQ,CAACiB,OAAO,CAAC,GAAGE,KAAK;EAC3B;EACAlB,kBAAkB,EAAE;AACtB,CAAC;AAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.Accordion = Accordion;
|
|
6
|
+
exports.AccordionItem = AccordionItem;
|
|
7
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _useId = require("./use-id");
|
|
10
|
+
var keys = _interopRequireWildcard(require("../helpers/keys"));
|
|
11
|
+
var _match = require("../helpers/match");
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
+
function ChevronIcon() {
|
|
15
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
16
|
+
focusable: "false",
|
|
17
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
fill: "currentColor",
|
|
20
|
+
width: "16",
|
|
21
|
+
height: "16",
|
|
22
|
+
viewBox: "0 0 16 16",
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
"data-gatsby-overlay": "chevron-icon"
|
|
25
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
26
|
+
d: "M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
function Accordion({
|
|
30
|
+
children,
|
|
31
|
+
...rest
|
|
32
|
+
}) {
|
|
33
|
+
return /*#__PURE__*/React.createElement("ul", (0, _extends2.default)({
|
|
34
|
+
"data-gatsby-overlay": "accordion"
|
|
35
|
+
}, rest), children);
|
|
36
|
+
}
|
|
37
|
+
function AccordionItem({
|
|
38
|
+
children,
|
|
39
|
+
disabled = false,
|
|
40
|
+
open = false,
|
|
41
|
+
title = `title`,
|
|
42
|
+
...rest
|
|
43
|
+
}) {
|
|
44
|
+
const [isOpen, setIsOpen] = React.useState(open);
|
|
45
|
+
const [prevIsOpen, setPrevIsOpen] = React.useState(open);
|
|
46
|
+
const id = (0, _useId.useId)(`accordion-item`);
|
|
47
|
+
if (open !== prevIsOpen) {
|
|
48
|
+
setIsOpen(open);
|
|
49
|
+
setPrevIsOpen(open);
|
|
50
|
+
}
|
|
51
|
+
const toggleOpen = () => {
|
|
52
|
+
const nextValue = !isOpen;
|
|
53
|
+
setIsOpen(nextValue);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// If the AccordionItem is open, and the user hits the ESC key, then close it
|
|
57
|
+
const onKeyDown = event => {
|
|
58
|
+
if (isOpen && (0, _match.match)(event, keys.Escape)) {
|
|
59
|
+
setIsOpen(false);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
return /*#__PURE__*/React.createElement("li", (0, _extends2.default)({
|
|
63
|
+
"data-gatsby-overlay": "accordion__item",
|
|
64
|
+
"data-accordion-active": isOpen ? `true` : `false`
|
|
65
|
+
}, rest), /*#__PURE__*/React.createElement("button", {
|
|
66
|
+
"data-gatsby-overlay": "accordion__item__heading",
|
|
67
|
+
type: "button",
|
|
68
|
+
disabled: disabled,
|
|
69
|
+
"aria-controls": id,
|
|
70
|
+
"aria-expanded": isOpen,
|
|
71
|
+
onClick: toggleOpen,
|
|
72
|
+
onKeyDown: onKeyDown
|
|
73
|
+
}, /*#__PURE__*/React.createElement(ChevronIcon, null), /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
"data-gatsby-overlay": "accordion__item__title"
|
|
75
|
+
}, title)), /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
id: id,
|
|
77
|
+
"data-gatsby-overlay": "accordion__item__content"
|
|
78
|
+
}, children));
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.js","names":["ChevronIcon","Accordion","children","rest","AccordionItem","disabled","open","title","isOpen","setIsOpen","React","useState","prevIsOpen","setPrevIsOpen","id","useId","toggleOpen","nextValue","onKeyDown","event","match","keys","Escape"],"sources":["../../../fast-refresh-overlay/components/accordion.js"],"sourcesContent":["import * as React from \"react\"\nimport { useId } from \"./use-id\"\nimport * as keys from \"../helpers/keys\"\nimport { match } from \"../helpers/match\"\n\nfunction ChevronIcon() {\n return (\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n data-gatsby-overlay=\"chevron-icon\"\n >\n <path d=\"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z\" />\n </svg>\n )\n}\n\nexport function Accordion({ children, ...rest }) {\n return (\n <ul data-gatsby-overlay=\"accordion\" {...rest}>\n {children}\n </ul>\n )\n}\n\nexport function AccordionItem({\n children,\n disabled = false,\n open = false,\n title = `title`,\n ...rest\n}) {\n const [isOpen, setIsOpen] = React.useState(open)\n const [prevIsOpen, setPrevIsOpen] = React.useState(open)\n const id = useId(`accordion-item`)\n\n if (open !== prevIsOpen) {\n setIsOpen(open)\n setPrevIsOpen(open)\n }\n\n const toggleOpen = () => {\n const nextValue = !isOpen\n setIsOpen(nextValue)\n }\n\n // If the AccordionItem is open, and the user hits the ESC key, then close it\n const onKeyDown = event => {\n if (isOpen && match(event, keys.Escape)) {\n setIsOpen(false)\n }\n }\n\n return (\n <li\n data-gatsby-overlay=\"accordion__item\"\n data-accordion-active={isOpen ? `true` : `false`}\n {...rest}\n >\n <button\n data-gatsby-overlay=\"accordion__item__heading\"\n type=\"button\"\n disabled={disabled}\n aria-controls={id}\n aria-expanded={isOpen}\n onClick={toggleOpen}\n onKeyDown={onKeyDown}\n >\n <ChevronIcon />\n <div data-gatsby-overlay=\"accordion__item__title\">{title}</div>\n </button>\n <div id={id} data-gatsby-overlay=\"accordion__item__content\">\n {children}\n </div>\n </li>\n )\n}\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AAAwC;AAAA;AAExC,SAASA,WAAW,GAAG;EACrB,oBACE;IACE,SAAS,EAAC,OAAO;IACjB,mBAAmB,EAAC,eAAe;IACnC,KAAK,EAAC,4BAA4B;IAClC,IAAI,EAAC,cAAc;IACnB,KAAK,EAAC,IAAI;IACV,MAAM,EAAC,IAAI;IACX,OAAO,EAAC,WAAW;IACnB,eAAY,MAAM;IAClB,uBAAoB;EAAc,gBAElC;IAAM,CAAC,EAAC;EAAwC,EAAG,CAC/C;AAEV;AAEO,SAASC,SAAS,CAAC;EAAEC,QAAQ;EAAE,GAAGC;AAAK,CAAC,EAAE;EAC/C,oBACE;IAAI,uBAAoB;EAAW,GAAKA,IAAI,GACzCD,QAAQ,CACN;AAET;AAEO,SAASE,aAAa,CAAC;EAC5BF,QAAQ;EACRG,QAAQ,GAAG,KAAK;EAChBC,IAAI,GAAG,KAAK;EACZC,KAAK,GAAI,OAAM;EACf,GAAGJ;AACL,CAAC,EAAE;EACD,MAAM,CAACK,MAAM,EAAEC,SAAS,CAAC,GAAGC,KAAK,CAACC,QAAQ,CAACL,IAAI,CAAC;EAChD,MAAM,CAACM,UAAU,EAAEC,aAAa,CAAC,GAAGH,KAAK,CAACC,QAAQ,CAACL,IAAI,CAAC;EACxD,MAAMQ,EAAE,GAAG,IAAAC,YAAK,EAAE,gBAAe,CAAC;EAElC,IAAIT,IAAI,KAAKM,UAAU,EAAE;IACvBH,SAAS,CAACH,IAAI,CAAC;IACfO,aAAa,CAACP,IAAI,CAAC;EACrB;EAEA,MAAMU,UAAU,GAAG,MAAM;IACvB,MAAMC,SAAS,GAAG,CAACT,MAAM;IACzBC,SAAS,CAACQ,SAAS,CAAC;EACtB,CAAC;;EAED;EACA,MAAMC,SAAS,GAAGC,KAAK,IAAI;IACzB,IAAIX,MAAM,IAAI,IAAAY,YAAK,EAACD,KAAK,EAAEE,IAAI,CAACC,MAAM,CAAC,EAAE;MACvCb,SAAS,CAAC,KAAK,CAAC;IAClB;EACF,CAAC;EAED,oBACE;IACE,uBAAoB,iBAAiB;IACrC,yBAAuBD,MAAM,GAAI,MAAK,GAAI;EAAO,GAC7CL,IAAI,gBAER;IACE,uBAAoB,0BAA0B;IAC9C,IAAI,EAAC,QAAQ;IACb,QAAQ,EAAEE,QAAS;IACnB,iBAAeS,EAAG;IAClB,iBAAeN,MAAO;IACtB,OAAO,EAAEQ,UAAW;IACpB,SAAS,EAAEE;EAAU,gBAErB,oBAAC,WAAW,OAAG,eACf;IAAK,uBAAoB;EAAwB,GAAEX,KAAK,CAAO,CACxD,eACT;IAAK,EAAE,EAAEO,EAAG;IAAC,uBAAoB;EAA0B,GACxDZ,QAAQ,CACL,CACH;AAET"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.BuildError = BuildError;
|
|
5
|
+
var React = _interopRequireWildcard(require("react"));
|
|
6
|
+
var _overlay = require("./overlay");
|
|
7
|
+
var _codeFrame = require("./code-frame");
|
|
8
|
+
var _utils = require("../utils");
|
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
// Error that is thrown on e.g. webpack errors and thus can't be dismissed and must be fixed
|
|
12
|
+
function BuildError({
|
|
13
|
+
error
|
|
14
|
+
}) {
|
|
15
|
+
// Incoming build error shape is like this:
|
|
16
|
+
// Sometimes "Enter"
|
|
17
|
+
// ./relative-path-to-file
|
|
18
|
+
// Additional information (sometimes empty line => handled in "prettifyStack" function)
|
|
19
|
+
// /absolute-path-to-file
|
|
20
|
+
// Errors/Warnings
|
|
21
|
+
const decoded = (0, _utils.prettifyStack)(error);
|
|
22
|
+
const [filePath] = decoded;
|
|
23
|
+
const file = filePath.content.split(`\n`)[0];
|
|
24
|
+
const lineMatch = filePath.content.match(/\((\d+)[^)]+\)/);
|
|
25
|
+
let line = 1;
|
|
26
|
+
if (lineMatch) {
|
|
27
|
+
line = lineMatch[1];
|
|
28
|
+
}
|
|
29
|
+
return /*#__PURE__*/React.createElement(_overlay.Overlay, null, /*#__PURE__*/React.createElement(_overlay.Header, {
|
|
30
|
+
"data-gatsby-error-type": "build-error"
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
"data-gatsby-overlay": "header__cause-file"
|
|
33
|
+
}, /*#__PURE__*/React.createElement("h1", {
|
|
34
|
+
id: "gatsby-overlay-labelledby"
|
|
35
|
+
}, "Failed to compile"), /*#__PURE__*/React.createElement("span", null, file)), /*#__PURE__*/React.createElement(_overlay.HeaderOpenClose, {
|
|
36
|
+
open: () => (0, _utils.openInEditor)(file, line),
|
|
37
|
+
dismiss: false
|
|
38
|
+
})), /*#__PURE__*/React.createElement(_overlay.Body, null, /*#__PURE__*/React.createElement("h2", null, "Source"), /*#__PURE__*/React.createElement(_codeFrame.CodeFrame, {
|
|
39
|
+
decoded: decoded
|
|
40
|
+
}), /*#__PURE__*/React.createElement(_overlay.Footer, {
|
|
41
|
+
id: "gatsby-overlay-describedby"
|
|
42
|
+
}, "This error occurred during the build process and can only be dismissed by fixing the error.")));
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=build-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-error.js","names":["BuildError","error","decoded","prettifyStack","filePath","file","content","split","lineMatch","match","line","openInEditor"],"sources":["../../../fast-refresh-overlay/components/build-error.js"],"sourcesContent":["import * as React from \"react\"\nimport { Overlay, Header, Body, Footer, HeaderOpenClose } from \"./overlay\"\nimport { CodeFrame } from \"./code-frame\"\nimport { prettifyStack, openInEditor } from \"../utils\"\n\n// Error that is thrown on e.g. webpack errors and thus can't be dismissed and must be fixed\nexport function BuildError({ error }) {\n // Incoming build error shape is like this:\n // Sometimes \"Enter\"\n // ./relative-path-to-file\n // Additional information (sometimes empty line => handled in \"prettifyStack\" function)\n // /absolute-path-to-file\n // Errors/Warnings\n const decoded = prettifyStack(error)\n const [filePath] = decoded\n const file = filePath.content.split(`\\n`)[0]\n const lineMatch = filePath.content.match(/\\((\\d+)[^)]+\\)/)\n let line = 1\n\n if (lineMatch) {\n line = lineMatch[1]\n }\n\n return (\n <Overlay>\n <Header data-gatsby-error-type=\"build-error\">\n <div data-gatsby-overlay=\"header__cause-file\">\n <h1 id=\"gatsby-overlay-labelledby\">Failed to compile</h1>\n <span>{file}</span>\n </div>\n <HeaderOpenClose\n open={() => openInEditor(file, line)}\n dismiss={false}\n />\n </Header>\n <Body>\n <h2>Source</h2>\n <CodeFrame decoded={decoded} />\n <Footer id=\"gatsby-overlay-describedby\">\n This error occurred during the build process and can only be dismissed\n by fixing the error.\n </Footer>\n </Body>\n </Overlay>\n )\n}\n"],"mappings":";;;;AAAA;AACA;AACA;AACA;AAAsD;AAAA;AAEtD;AACO,SAASA,UAAU,CAAC;EAAEC;AAAM,CAAC,EAAE;EACpC;EACA;EACA;EACA;EACA;EACA;EACA,MAAMC,OAAO,GAAG,IAAAC,oBAAa,EAACF,KAAK,CAAC;EACpC,MAAM,CAACG,QAAQ,CAAC,GAAGF,OAAO;EAC1B,MAAMG,IAAI,GAAGD,QAAQ,CAACE,OAAO,CAACC,KAAK,CAAE,IAAG,CAAC,CAAC,CAAC,CAAC;EAC5C,MAAMC,SAAS,GAAGJ,QAAQ,CAACE,OAAO,CAACG,KAAK,CAAC,gBAAgB,CAAC;EAC1D,IAAIC,IAAI,GAAG,CAAC;EAEZ,IAAIF,SAAS,EAAE;IACbE,IAAI,GAAGF,SAAS,CAAC,CAAC,CAAC;EACrB;EAEA,oBACE,oBAAC,gBAAO,qBACN,oBAAC,eAAM;IAAC,0BAAuB;EAAa,gBAC1C;IAAK,uBAAoB;EAAoB,gBAC3C;IAAI,EAAE,EAAC;EAA2B,GAAC,mBAAiB,CAAK,eACzD,kCAAOH,IAAI,CAAQ,CACf,eACN,oBAAC,wBAAe;IACd,IAAI,EAAE,MAAM,IAAAM,mBAAY,EAACN,IAAI,EAAEK,IAAI,CAAE;IACrC,OAAO,EAAE;EAAM,EACf,CACK,eACT,oBAAC,aAAI,qBACH,gCAAI,QAAM,CAAK,eACf,oBAAC,oBAAS;IAAC,OAAO,EAAER;EAAQ,EAAG,eAC/B,oBAAC,eAAM;IAAC,EAAE,EAAC;EAA4B,GAAC,6FAGxC,CAAS,CACJ,CACC;AAEd"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.CodeFrame = CodeFrame;
|
|
5
|
+
var React = _interopRequireWildcard(require("react"));
|
|
6
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
7
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
8
|
+
function CodeFrame({
|
|
9
|
+
decoded
|
|
10
|
+
}) {
|
|
11
|
+
if (!decoded) {
|
|
12
|
+
return /*#__PURE__*/React.createElement("pre", {
|
|
13
|
+
"data-gatsby-overlay": "pre"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("code", {
|
|
15
|
+
"data-gatsby-overlay": "pre__code"
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
return /*#__PURE__*/React.createElement("pre", {
|
|
19
|
+
"data-gatsby-overlay": "pre"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("code", {
|
|
21
|
+
"data-gatsby-overlay": "pre__code"
|
|
22
|
+
}, decoded.map((entry, index) => {
|
|
23
|
+
const style = {
|
|
24
|
+
color: entry.fg ? `var(--color-${entry.fg})` : undefined,
|
|
25
|
+
...(entry.decoration === `bold` ? {
|
|
26
|
+
fontWeight: 800
|
|
27
|
+
} : entry.decoration === `italic` ? {
|
|
28
|
+
fontStyle: `italic`
|
|
29
|
+
} : undefined)
|
|
30
|
+
};
|
|
31
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
32
|
+
key: `frame-${index}`,
|
|
33
|
+
"data-gatsby-overlay": "pre__code__span",
|
|
34
|
+
style: style
|
|
35
|
+
}, entry.content);
|
|
36
|
+
})));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=code-frame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-frame.js","names":["CodeFrame","decoded","map","entry","index","style","color","fg","undefined","decoration","fontWeight","fontStyle","content"],"sources":["../../../fast-refresh-overlay/components/code-frame.js"],"sourcesContent":["import * as React from \"react\"\n\nexport function CodeFrame({ decoded }) {\n if (!decoded) {\n return (\n <pre data-gatsby-overlay=\"pre\">\n <code data-gatsby-overlay=\"pre__code\" />\n </pre>\n )\n }\n\n return (\n <pre data-gatsby-overlay=\"pre\">\n <code data-gatsby-overlay=\"pre__code\">\n {decoded.map((entry, index) => {\n const style = {\n color: entry.fg ? `var(--color-${entry.fg})` : undefined,\n ...(entry.decoration === `bold`\n ? { fontWeight: 800 }\n : entry.decoration === `italic`\n ? { fontStyle: `italic` }\n : undefined),\n }\n\n return (\n <span\n key={`frame-${index}`}\n data-gatsby-overlay=\"pre__code__span\"\n style={style}\n >\n {entry.content}\n </span>\n )\n })}\n </code>\n </pre>\n )\n}\n"],"mappings":";;;;AAAA;AAA8B;AAAA;AAEvB,SAASA,SAAS,CAAC;EAAEC;AAAQ,CAAC,EAAE;EACrC,IAAI,CAACA,OAAO,EAAE;IACZ,oBACE;MAAK,uBAAoB;IAAK,gBAC5B;MAAM,uBAAoB;IAAW,EAAG,CACpC;EAEV;EAEA,oBACE;IAAK,uBAAoB;EAAK,gBAC5B;IAAM,uBAAoB;EAAW,GAClCA,OAAO,CAACC,GAAG,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAK;IAC7B,MAAMC,KAAK,GAAG;MACZC,KAAK,EAAEH,KAAK,CAACI,EAAE,GAAI,eAAcJ,KAAK,CAACI,EAAG,GAAE,GAAGC,SAAS;MACxD,IAAIL,KAAK,CAACM,UAAU,KAAM,MAAK,GAC3B;QAAEC,UAAU,EAAE;MAAI,CAAC,GACnBP,KAAK,CAACM,UAAU,KAAM,QAAO,GAC7B;QAAEE,SAAS,EAAG;MAAQ,CAAC,GACvBH,SAAS;IACf,CAAC;IAED,oBACE;MACE,GAAG,EAAG,SAAQJ,KAAM,EAAE;MACtB,uBAAoB,iBAAiB;MACrC,KAAK,EAAEC;IAAM,GAEZF,KAAK,CAACS,OAAO,CACT;EAEX,CAAC,CAAC,CACG,CACH;AAEV"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.DevSsrError = DevSsrError;
|
|
5
|
+
var React = _interopRequireWildcard(require("react"));
|
|
6
|
+
var _overlay = require("./overlay");
|
|
7
|
+
var _codeFrame = require("./code-frame");
|
|
8
|
+
var _utils = require("../utils");
|
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
function DevSsrError({
|
|
12
|
+
error
|
|
13
|
+
}) {
|
|
14
|
+
const {
|
|
15
|
+
codeFrame,
|
|
16
|
+
source,
|
|
17
|
+
line
|
|
18
|
+
} = error;
|
|
19
|
+
const decoded = (0, _utils.prettifyStack)(codeFrame);
|
|
20
|
+
return /*#__PURE__*/React.createElement(_overlay.Overlay, null, /*#__PURE__*/React.createElement(_overlay.Header, {
|
|
21
|
+
"data-gatsby-error-type": "build-error"
|
|
22
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
"data-gatsby-overlay": "header__cause-file"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("h1", {
|
|
25
|
+
id: "gatsby-overlay-labelledby"
|
|
26
|
+
}, "Failed to server render (SSR)"), /*#__PURE__*/React.createElement("span", null, source)), /*#__PURE__*/React.createElement(_overlay.HeaderOpenClose, {
|
|
27
|
+
open: () => (0, _utils.openInEditor)(source, line),
|
|
28
|
+
dismiss: false
|
|
29
|
+
})), /*#__PURE__*/React.createElement(_overlay.Body, null, /*#__PURE__*/React.createElement("p", {
|
|
30
|
+
id: "gatsby-overlay-describedby",
|
|
31
|
+
"data-gatsby-overlay": "body__describedby"
|
|
32
|
+
}, "React Components in Gatsby must render both successfully in the browser and in a Node.js environment. When we tried to render your page component in Node.js, it errored."), /*#__PURE__*/React.createElement("h2", null, "Source"), /*#__PURE__*/React.createElement(_codeFrame.CodeFrame, {
|
|
33
|
+
decoded: decoded
|
|
34
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
"data-gatsby-overlay": "codeframe__bottom"
|
|
36
|
+
}, "See our docs page for more info on SSR errors:", ` `, /*#__PURE__*/React.createElement("a", {
|
|
37
|
+
href: "https://www.gatsbyjs.com/docs/debugging-html-builds/"
|
|
38
|
+
}, "Debugging HTML Builds")), /*#__PURE__*/React.createElement("p", null, "If you fixed the error, saved your file, and want to retry server rendering this page, please reload the page."), /*#__PURE__*/React.createElement("button", {
|
|
39
|
+
onClick: () => (0, _utils.reloadPage)(),
|
|
40
|
+
"data-gatsby-overlay": "primary-button"
|
|
41
|
+
}, "Reload page"), /*#__PURE__*/React.createElement("h2", {
|
|
42
|
+
style: {
|
|
43
|
+
marginTop: `var(--space)`
|
|
44
|
+
}
|
|
45
|
+
}, "Skip Server Render"), /*#__PURE__*/React.createElement("p", null, "If you don't wish to fix the SSR error at the moment, press the button below to reload the page without attempting to do SSR."), /*#__PURE__*/React.createElement("button", {
|
|
46
|
+
onClick: () => (0, _utils.skipSSR)(),
|
|
47
|
+
"data-gatsby-overlay": "primary-button"
|
|
48
|
+
}, "Skip SSR"), /*#__PURE__*/React.createElement(_overlay.Footer, null, /*#__PURE__*/React.createElement("span", {
|
|
49
|
+
"data-font-weight": "bold"
|
|
50
|
+
}, "Note:"), " This error will show up during \"gatsby build\" so it must be fixed before then. SSR errors in module scope, e.g. outside of your own React components can't be skipped.")));
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=dev-ssr-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-ssr-error.js","names":["DevSsrError","error","codeFrame","source","line","decoded","prettifyStack","openInEditor","reloadPage","marginTop","skipSSR"],"sources":["../../../fast-refresh-overlay/components/dev-ssr-error.js"],"sourcesContent":["import * as React from \"react\"\nimport { Overlay, Header, Body, Footer, HeaderOpenClose } from \"./overlay\"\nimport { CodeFrame } from \"./code-frame\"\nimport { prettifyStack, openInEditor, skipSSR, reloadPage } from \"../utils\"\n\nexport function DevSsrError({ error }) {\n const { codeFrame, source, line } = error\n const decoded = prettifyStack(codeFrame)\n\n return (\n <Overlay>\n <Header data-gatsby-error-type=\"build-error\">\n <div data-gatsby-overlay=\"header__cause-file\">\n <h1 id=\"gatsby-overlay-labelledby\">Failed to server render (SSR)</h1>\n <span>{source}</span>\n </div>\n <HeaderOpenClose\n open={() => openInEditor(source, line)}\n dismiss={false}\n />\n </Header>\n <Body>\n <p\n id=\"gatsby-overlay-describedby\"\n data-gatsby-overlay=\"body__describedby\"\n >\n React Components in Gatsby must render both successfully in the\n browser and in a Node.js environment. When we tried to render your\n page component in Node.js, it errored.\n </p>\n <h2>Source</h2>\n <CodeFrame decoded={decoded} />\n <div data-gatsby-overlay=\"codeframe__bottom\">\n See our docs page for more info on SSR errors:{` `}\n <a href=\"https://www.gatsbyjs.com/docs/debugging-html-builds/\">\n Debugging HTML Builds\n </a>\n </div>\n <p>\n If you fixed the error, saved your file, and want to retry server\n rendering this page, please reload the page.\n </p>\n <button\n onClick={() => reloadPage()}\n data-gatsby-overlay=\"primary-button\"\n >\n Reload page\n </button>\n <h2 style={{ marginTop: `var(--space)` }}>Skip Server Render</h2>\n <p>\n If you don't wish to fix the SSR error at the moment, press the button\n below to reload the page without attempting to do SSR.\n </p>\n <button onClick={() => skipSSR()} data-gatsby-overlay=\"primary-button\">\n Skip SSR\n </button>\n <Footer>\n <span data-font-weight=\"bold\">Note:</span> This error will show up\n during \"gatsby build\" so it must be fixed before then. SSR errors in\n module scope, e.g. outside of your own React components can't be\n skipped.\n </Footer>\n </Body>\n </Overlay>\n )\n}\n"],"mappings":";;;;AAAA;AACA;AACA;AACA;AAA2E;AAAA;AAEpE,SAASA,WAAW,CAAC;EAAEC;AAAM,CAAC,EAAE;EACrC,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAK,CAAC,GAAGH,KAAK;EACzC,MAAMI,OAAO,GAAG,IAAAC,oBAAa,EAACJ,SAAS,CAAC;EAExC,oBACE,oBAAC,gBAAO,qBACN,oBAAC,eAAM;IAAC,0BAAuB;EAAa,gBAC1C;IAAK,uBAAoB;EAAoB,gBAC3C;IAAI,EAAE,EAAC;EAA2B,GAAC,+BAA6B,CAAK,eACrE,kCAAOC,MAAM,CAAQ,CACjB,eACN,oBAAC,wBAAe;IACd,IAAI,EAAE,MAAM,IAAAI,mBAAY,EAACJ,MAAM,EAAEC,IAAI,CAAE;IACvC,OAAO,EAAE;EAAM,EACf,CACK,eACT,oBAAC,aAAI,qBACH;IACE,EAAE,EAAC,4BAA4B;IAC/B,uBAAoB;EAAmB,GACxC,2KAID,CAAI,eACJ,gCAAI,QAAM,CAAK,eACf,oBAAC,oBAAS;IAAC,OAAO,EAAEC;EAAQ,EAAG,eAC/B;IAAK,uBAAoB;EAAmB,GAAC,gDACG,EAAE,GAAE,eAClD;IAAG,IAAI,EAAC;EAAsD,GAAC,uBAE/D,CAAI,CACA,eACN,+BAAG,gHAGH,CAAI,eACJ;IACE,OAAO,EAAE,MAAM,IAAAG,iBAAU,GAAG;IAC5B,uBAAoB;EAAgB,GACrC,aAED,CAAS,eACT;IAAI,KAAK,EAAE;MAAEC,SAAS,EAAG;IAAc;EAAE,GAAC,oBAAkB,CAAK,eACjE,+BAAG,+HAGH,CAAI,eACJ;IAAQ,OAAO,EAAE,MAAM,IAAAC,cAAO,GAAG;IAAC,uBAAoB;EAAgB,GAAC,UAEvE,CAAS,eACT,oBAAC,eAAM,qBACL;IAAM,oBAAiB;EAAM,GAAC,OAAK,CAAO,6KAI5C,CAAS,CACJ,CACC;AAEd"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.ErrorBoundary = void 0;
|
|
5
|
+
var React = _interopRequireWildcard(require("react"));
|
|
6
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
7
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
8
|
+
class ErrorBoundary extends React.Component {
|
|
9
|
+
state = {
|
|
10
|
+
error: null
|
|
11
|
+
};
|
|
12
|
+
componentDidCatch(error) {
|
|
13
|
+
this.setState({
|
|
14
|
+
error
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// Forward component errors to Fast Refresh overlay system
|
|
18
|
+
if (window._gatsbyEvents && typeof window._gatsbyEvents.push === `function`) {
|
|
19
|
+
window._gatsbyEvents.push([`FAST_REFRESH`, {
|
|
20
|
+
action: `SHOW_RUNTIME_ERRORS`,
|
|
21
|
+
payload: [error]
|
|
22
|
+
}]);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
// Without this check => possible infinite loop
|
|
27
|
+
return this.state.error && this.props.hasErrors ? null : this.props.children;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ErrorBoundary = ErrorBoundary;
|
|
31
|
+
//# sourceMappingURL=error-boundary.js.map
|