@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,282 @@
|
|
|
1
|
+
import type reporter from "gatsby-cli/lib/reporter";
|
|
2
|
+
import type { TrailingSlash } from "gatsby-page-utils";
|
|
3
|
+
import type { IHeader, HttpStatusCode } from "../../redux/types";
|
|
4
|
+
import type { ImageCdnUrlGeneratorFn, ImageCdnSourceImage, ImageCdnTransformArgs, FileCdnUrlGeneratorFn, FileCdnSourceImage } from "gatsby-plugin-utils/dist/polyfill-remote-file/types";
|
|
5
|
+
export type { ImageCdnUrlGeneratorFn, ImageCdnSourceImage, ImageCdnTransformArgs, FileCdnUrlGeneratorFn, FileCdnSourceImage, };
|
|
6
|
+
interface IBaseRoute {
|
|
7
|
+
/**
|
|
8
|
+
* Request path that should be matched for this route.
|
|
9
|
+
* It can be:
|
|
10
|
+
* - static: `/about/`
|
|
11
|
+
* - dynamic:
|
|
12
|
+
* - parameterized: `/blog/:slug/`
|
|
13
|
+
* - catch-all / wildcard: `/app/*`
|
|
14
|
+
*/
|
|
15
|
+
path: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IStaticRoute extends IBaseRoute {
|
|
18
|
+
type: `static`;
|
|
19
|
+
/**
|
|
20
|
+
* Location of the file that should be served for this route.
|
|
21
|
+
*/
|
|
22
|
+
filePath: string;
|
|
23
|
+
/**
|
|
24
|
+
* HTTP headers that should be set for this route.
|
|
25
|
+
* @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/headers/
|
|
26
|
+
*/
|
|
27
|
+
headers: IHeader["headers"];
|
|
28
|
+
}
|
|
29
|
+
export interface IFunctionRoute extends IBaseRoute {
|
|
30
|
+
type: `function`;
|
|
31
|
+
/**
|
|
32
|
+
* Unique identifier of this function. Corresponds to the `functionId` inside the `functionsManifest`.
|
|
33
|
+
* Some functions will be shared for multiple routes, e.g. SSR or DSG functions.
|
|
34
|
+
*/
|
|
35
|
+
functionId: string;
|
|
36
|
+
/**
|
|
37
|
+
* If `cache` is true, response of function should be cached for current deployment and served on subsequent requests for this route.
|
|
38
|
+
*/
|
|
39
|
+
cache?: true;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Redirects are being created through the `createRedirect` action.
|
|
43
|
+
* @see https://www.gatsbyjs.com/docs/reference/config-files/actions/#createRedirect
|
|
44
|
+
*/
|
|
45
|
+
export interface IRedirectRoute extends IBaseRoute {
|
|
46
|
+
type: `redirect`;
|
|
47
|
+
/**
|
|
48
|
+
* The redirect should happen from `path` to `toPath`.
|
|
49
|
+
*/
|
|
50
|
+
toPath: string;
|
|
51
|
+
/**
|
|
52
|
+
* HTTP status code that should be used for this redirect.
|
|
53
|
+
*/
|
|
54
|
+
status: HttpStatusCode;
|
|
55
|
+
ignoreCase?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* HTTP headers that should be used for this redirect.
|
|
58
|
+
* @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/headers/
|
|
59
|
+
*/
|
|
60
|
+
headers: IHeader["headers"];
|
|
61
|
+
[key: string]: unknown;
|
|
62
|
+
}
|
|
63
|
+
export type Route = IStaticRoute | IFunctionRoute | IRedirectRoute;
|
|
64
|
+
export type RoutesManifest = Array<Route>;
|
|
65
|
+
export interface IHeaderRoute extends IBaseRoute {
|
|
66
|
+
headers: IHeader["headers"];
|
|
67
|
+
}
|
|
68
|
+
export type HeaderRoutes = Array<IHeaderRoute>;
|
|
69
|
+
export interface IFunctionDefinition {
|
|
70
|
+
/**
|
|
71
|
+
* Unique identifier of this function. Corresponds to the `functionId` inside the `routesManifest`.
|
|
72
|
+
*/
|
|
73
|
+
functionId: string;
|
|
74
|
+
/**
|
|
75
|
+
* Unique name of this function. Use this as a display name for the function.
|
|
76
|
+
*/
|
|
77
|
+
name: string;
|
|
78
|
+
/**
|
|
79
|
+
* Path to function entrypoint that will be used to create function
|
|
80
|
+
*/
|
|
81
|
+
pathToEntryPoint: string;
|
|
82
|
+
/**
|
|
83
|
+
* List of all required files that this function needs to run
|
|
84
|
+
*/
|
|
85
|
+
requiredFiles: Array<string>;
|
|
86
|
+
}
|
|
87
|
+
export type FunctionsManifest = Array<IFunctionDefinition>;
|
|
88
|
+
interface IDefaultContext {
|
|
89
|
+
/**
|
|
90
|
+
* Reporter instance that can be used to log messages to terminal
|
|
91
|
+
* @see https://www.gatsbyjs.com/docs/reference/config-files/node-api-helpers/#reporter
|
|
92
|
+
*/
|
|
93
|
+
reporter: typeof reporter;
|
|
94
|
+
}
|
|
95
|
+
export type RemoteFileAllowedUrls = Array<{
|
|
96
|
+
/**
|
|
97
|
+
* Allowed url in URLPattern format. In particular it uses wildcard `*` and param `:param` syntax.
|
|
98
|
+
*/
|
|
99
|
+
urlPattern: string;
|
|
100
|
+
/**
|
|
101
|
+
*Allowed url in regex source format
|
|
102
|
+
*/
|
|
103
|
+
regexSource: string;
|
|
104
|
+
}>;
|
|
105
|
+
export interface IAdaptContext extends IDefaultContext {
|
|
106
|
+
routesManifest: RoutesManifest;
|
|
107
|
+
functionsManifest: FunctionsManifest;
|
|
108
|
+
headerRoutes: HeaderRoutes;
|
|
109
|
+
/**
|
|
110
|
+
* @see https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/#pathprefix
|
|
111
|
+
*/
|
|
112
|
+
pathPrefix: string;
|
|
113
|
+
/**
|
|
114
|
+
* @see https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/#trailingslash
|
|
115
|
+
*/
|
|
116
|
+
trailingSlash: TrailingSlash;
|
|
117
|
+
/**
|
|
118
|
+
* List of allowed remote file URLs represented in URLPattern and Regex formats.
|
|
119
|
+
* Allowed urls are provided by user or plugins using `addRemoteFileAllowedUrl` action.
|
|
120
|
+
* @see https://www.gatsbyjs.com/docs/reference/config-files/actions/#addRemoteFileAllowedUrl
|
|
121
|
+
*/
|
|
122
|
+
remoteFileAllowedUrls: RemoteFileAllowedUrls;
|
|
123
|
+
}
|
|
124
|
+
export interface ICacheContext extends IDefaultContext {
|
|
125
|
+
directories: Array<string>;
|
|
126
|
+
}
|
|
127
|
+
export interface IAdapterConfig {
|
|
128
|
+
/**
|
|
129
|
+
* URL representing the unique URL for an individual deploy
|
|
130
|
+
*/
|
|
131
|
+
deployURL?: string;
|
|
132
|
+
/**
|
|
133
|
+
* If `true`, Gatsby will not include the LMDB datastore in the serverless functions used for SSR/DSG.
|
|
134
|
+
* Instead, it will try to download the datastore from the given `deployURL`.
|
|
135
|
+
*/
|
|
136
|
+
excludeDatastoreFromEngineFunction?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Adapters can optionally describe which features they support to prevent potentially faulty deployments
|
|
139
|
+
*/
|
|
140
|
+
supports?: {
|
|
141
|
+
/**
|
|
142
|
+
* If `false`, Gatsby will fail the build if user tries to use pathPrefix.
|
|
143
|
+
*/
|
|
144
|
+
pathPrefix?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Provide array of supported traling slash options
|
|
147
|
+
* @example [`always`]
|
|
148
|
+
*/
|
|
149
|
+
trailingSlash?: Array<TrailingSlash>;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* List of plugins that should be disabled when using this adapter. Purpose of this is to disable
|
|
153
|
+
* any potential plugins that serve similar role as adapter that would cause conflicts when both
|
|
154
|
+
* plugin and adapter is used at the same time.
|
|
155
|
+
*/
|
|
156
|
+
pluginsToDisable?: Array<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Path to a CommonJS module that implements an image CDN URL generation function. The function
|
|
159
|
+
* is used to optimize image delivery by generating URLs that leverage CDN capabilities. This module
|
|
160
|
+
* should have a default export function that conforms to the {@link ImageCdnUrlGeneratorFn} type:
|
|
161
|
+
*
|
|
162
|
+
* Adapters should provide an absolute path to this module.
|
|
163
|
+
* See 'packages/gatsby-adapter-netlify/src/image-cdn-url-generator.ts' as an implementation
|
|
164
|
+
* example for the Netlify adapter.
|
|
165
|
+
*/
|
|
166
|
+
imageCDNUrlGeneratorModulePath?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Path to a CommonJS module that implements an file CDN URL generation function. This module
|
|
169
|
+
* should have a default export function that conforms to the {@link FileCdnUrlGeneratorFn} type:
|
|
170
|
+
*
|
|
171
|
+
* Adapters should provide an absolute path to this module.
|
|
172
|
+
* See 'packages/gatsby-adapter-netlify/src/file-cdn-url-generator.ts' as an implementation
|
|
173
|
+
* example for the Netlify adapter.
|
|
174
|
+
*/
|
|
175
|
+
fileCDNUrlGeneratorModulePath?: string;
|
|
176
|
+
/**
|
|
177
|
+
* The platform bundled functions will execute on. Usually should be `linux`.
|
|
178
|
+
* This will be used if user didn't specify `GATSBY_FUNCTIONS_PLATFORM` environment variable
|
|
179
|
+
* or used `-functions-platform` CLI toggle. If none is defined current platform (process.platform) will be used.
|
|
180
|
+
*/
|
|
181
|
+
functionsPlatform?: string;
|
|
182
|
+
/**
|
|
183
|
+
* The architecture bundled functions will execute on. Usually should be `x64`.
|
|
184
|
+
* This will be used if user didn't specify `GATSBY_FUNCTIONS_ARCH` environment variable
|
|
185
|
+
* or used `-functions-arch` CLI toggle. If none is defined current arch (process.arch) will be used.
|
|
186
|
+
*/
|
|
187
|
+
functionsArch?: string;
|
|
188
|
+
}
|
|
189
|
+
type WithRequired<T, K extends keyof T> = T & {
|
|
190
|
+
[P in K]-?: T[P];
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* This is the internal version of "IAdapterConfig" to enforce that certain keys must be present.
|
|
194
|
+
* Authors of adapters will only see "IAdapterConfig".
|
|
195
|
+
*/
|
|
196
|
+
export type IAdapterFinalConfig = WithRequired<IAdapterConfig, "excludeDatastoreFromEngineFunction" | "pluginsToDisable">;
|
|
197
|
+
export interface IAdapter {
|
|
198
|
+
/**
|
|
199
|
+
* Unique name of the adapter. Used to identify adapter in manifest.
|
|
200
|
+
*/
|
|
201
|
+
name: string;
|
|
202
|
+
cache?: {
|
|
203
|
+
/**
|
|
204
|
+
* Hook to restore `directories` from previous builds. This is executed very early on in the build process. If `false` is returned Gatsby will skip its cache restoration.
|
|
205
|
+
*/
|
|
206
|
+
restore: (context: ICacheContext) => Promise<boolean | void> | boolean | void;
|
|
207
|
+
/**
|
|
208
|
+
* Hook to store `directories` for the current build. Executed as one of the last steps in the build process.
|
|
209
|
+
*/
|
|
210
|
+
store: (context: ICacheContext) => Promise<void> | void;
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* Hook to take Gatsby’s output and preparing it for deployment on the adapter’s platform. Executed as one of the last steps in the build process.
|
|
214
|
+
*
|
|
215
|
+
* The `adapt` hook should do the following things:
|
|
216
|
+
* - Apply HTTP headers to assets
|
|
217
|
+
* - Apply redirects and rewrites. The adapter should can also create its own redirects/rewrites if necessary (e.g. mapping serverless functions to internal URLs).
|
|
218
|
+
* - Wrap serverless functions coming from Gatsby with platform-specific code (if necessary). Gatsby will produce [Express-like](https://expressjs.com/) handlers.
|
|
219
|
+
* - Apply trailing slash behavior and path prefix to URLs
|
|
220
|
+
* - Possibly upload assets to CDN
|
|
221
|
+
*
|
|
222
|
+
* @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/creating-an-adapter/
|
|
223
|
+
*/
|
|
224
|
+
adapt: (context: IAdaptContext) => Promise<void> | void;
|
|
225
|
+
/**
|
|
226
|
+
* Hook to pass information from the adapter to Gatsby. You must return an object with a predefined shape.
|
|
227
|
+
* Gatsby uses this information to adjust its build process. The information can be e.g. things that are only known once the project is deployed.
|
|
228
|
+
*
|
|
229
|
+
* This hook can enable advanced feature of adapters and it is not required to implement it.
|
|
230
|
+
*
|
|
231
|
+
* @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/creating-an-adapter/
|
|
232
|
+
*/
|
|
233
|
+
config?: (context: IDefaultContext) => Promise<IAdapterConfig> | IAdapterConfig;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Adapter initialization function that returns an instance of the adapter.
|
|
237
|
+
* @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/creating-an-adapter/
|
|
238
|
+
*/
|
|
239
|
+
export type AdapterInit<T = Record<string, unknown>> = (adapterOptions?: T) => IAdapter;
|
|
240
|
+
export interface IAdapterManager {
|
|
241
|
+
restoreCache: () => Promise<void> | void;
|
|
242
|
+
storeCache: () => Promise<void> | void;
|
|
243
|
+
adapt: () => Promise<void> | void;
|
|
244
|
+
config: () => Promise<IAdapterFinalConfig>;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Types for gatsby/adapters.js
|
|
248
|
+
* @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/zero-configuration-deployments/
|
|
249
|
+
*/
|
|
250
|
+
export interface IAdapterManifestEntry {
|
|
251
|
+
/**
|
|
252
|
+
* Name of the adapter
|
|
253
|
+
*/
|
|
254
|
+
name: string;
|
|
255
|
+
/**
|
|
256
|
+
* Test function to determine if adapter should be used
|
|
257
|
+
*/
|
|
258
|
+
test: () => boolean;
|
|
259
|
+
/**
|
|
260
|
+
* npm module name of the adapter
|
|
261
|
+
*/
|
|
262
|
+
module: string;
|
|
263
|
+
/**
|
|
264
|
+
* List of version pairs that are supported by the adapter.
|
|
265
|
+
* This allows to have multiple versions of the adapter for different versions of Gatsby.
|
|
266
|
+
* This is useful for when APIs change or bugs are fixed that require different implementations.
|
|
267
|
+
*/
|
|
268
|
+
versions: Array<{
|
|
269
|
+
/**
|
|
270
|
+
* Version of the `gatsby` package. This is a semver range.
|
|
271
|
+
*/
|
|
272
|
+
gatsbyVersion: string;
|
|
273
|
+
/**
|
|
274
|
+
* Version of the adapter. This is a semver range.
|
|
275
|
+
*/
|
|
276
|
+
moduleVersion: string;
|
|
277
|
+
/**
|
|
278
|
+
* Can override the module defined in the parent manifest entry - useful for when the adapter is renamed.
|
|
279
|
+
*/
|
|
280
|
+
module?: string;
|
|
281
|
+
}>;
|
|
282
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/utils/adapter/types.ts"],"sourcesContent":["import type reporter from \"gatsby-cli/lib/reporter\"\nimport type { TrailingSlash } from \"gatsby-page-utils\"\nimport type { IHeader, HttpStatusCode } from \"../../redux/types\"\n\nimport type {\n ImageCdnUrlGeneratorFn,\n ImageCdnSourceImage,\n ImageCdnTransformArgs,\n FileCdnUrlGeneratorFn,\n FileCdnSourceImage,\n} from \"gatsby-plugin-utils/dist/polyfill-remote-file/types\"\n\nexport type {\n ImageCdnUrlGeneratorFn,\n ImageCdnSourceImage,\n ImageCdnTransformArgs,\n FileCdnUrlGeneratorFn,\n FileCdnSourceImage,\n}\n\ninterface IBaseRoute {\n /**\n * Request path that should be matched for this route.\n * It can be:\n * - static: `/about/`\n * - dynamic:\n * - parameterized: `/blog/:slug/`\n * - catch-all / wildcard: `/app/*`\n */\n path: string\n}\n\nexport interface IStaticRoute extends IBaseRoute {\n type: `static`\n /**\n * Location of the file that should be served for this route.\n */\n filePath: string\n /**\n * HTTP headers that should be set for this route.\n * @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/headers/\n */\n headers: IHeader[\"headers\"]\n}\n\nexport interface IFunctionRoute extends IBaseRoute {\n type: `function`\n /**\n * Unique identifier of this function. Corresponds to the `functionId` inside the `functionsManifest`.\n * Some functions will be shared for multiple routes, e.g. SSR or DSG functions.\n */\n functionId: string\n /**\n * If `cache` is true, response of function should be cached for current deployment and served on subsequent requests for this route.\n */\n cache?: true\n}\n\n/**\n * Redirects are being created through the `createRedirect` action.\n * @see https://www.gatsbyjs.com/docs/reference/config-files/actions/#createRedirect\n */\nexport interface IRedirectRoute extends IBaseRoute {\n type: `redirect`\n /**\n * The redirect should happen from `path` to `toPath`.\n */\n toPath: string\n /**\n * HTTP status code that should be used for this redirect.\n */\n status: HttpStatusCode\n ignoreCase?: boolean\n /**\n * HTTP headers that should be used for this redirect.\n * @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/headers/\n */\n headers: IHeader[\"headers\"]\n [key: string]: unknown\n}\n\nexport type Route = IStaticRoute | IFunctionRoute | IRedirectRoute\n\nexport type RoutesManifest = Array<Route>\n\nexport interface IHeaderRoute extends IBaseRoute {\n headers: IHeader[\"headers\"]\n}\n\nexport type HeaderRoutes = Array<IHeaderRoute>\nexport interface IFunctionDefinition {\n /**\n * Unique identifier of this function. Corresponds to the `functionId` inside the `routesManifest`.\n */\n functionId: string\n /**\n * Unique name of this function. Use this as a display name for the function.\n */\n name: string\n /**\n * Path to function entrypoint that will be used to create function\n */\n pathToEntryPoint: string\n /**\n * List of all required files that this function needs to run\n */\n requiredFiles: Array<string>\n}\n\nexport type FunctionsManifest = Array<IFunctionDefinition>\n\ninterface IDefaultContext {\n /**\n * Reporter instance that can be used to log messages to terminal\n * @see https://www.gatsbyjs.com/docs/reference/config-files/node-api-helpers/#reporter\n */\n reporter: typeof reporter\n}\n\nexport type RemoteFileAllowedUrls = Array<{\n /**\n * Allowed url in URLPattern format. In particular it uses wildcard `*` and param `:param` syntax.\n */\n urlPattern: string\n /**\n *Allowed url in regex source format\n */\n regexSource: string\n}>\n\nexport interface IAdaptContext extends IDefaultContext {\n routesManifest: RoutesManifest\n functionsManifest: FunctionsManifest\n headerRoutes: HeaderRoutes\n /**\n * @see https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/#pathprefix\n */\n pathPrefix: string\n /**\n * @see https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/#trailingslash\n */\n trailingSlash: TrailingSlash\n /**\n * List of allowed remote file URLs represented in URLPattern and Regex formats.\n * Allowed urls are provided by user or plugins using `addRemoteFileAllowedUrl` action.\n * @see https://www.gatsbyjs.com/docs/reference/config-files/actions/#addRemoteFileAllowedUrl\n */\n remoteFileAllowedUrls: RemoteFileAllowedUrls\n}\n\nexport interface ICacheContext extends IDefaultContext {\n directories: Array<string>\n}\n\nexport interface IAdapterConfig {\n /**\n * URL representing the unique URL for an individual deploy\n */\n deployURL?: string\n /**\n * If `true`, Gatsby will not include the LMDB datastore in the serverless functions used for SSR/DSG.\n * Instead, it will try to download the datastore from the given `deployURL`.\n */\n excludeDatastoreFromEngineFunction?: boolean\n /**\n * Adapters can optionally describe which features they support to prevent potentially faulty deployments\n */\n supports?: {\n /**\n * If `false`, Gatsby will fail the build if user tries to use pathPrefix.\n */\n pathPrefix?: boolean\n /**\n * Provide array of supported traling slash options\n * @example [`always`]\n */\n trailingSlash?: Array<TrailingSlash>\n }\n /**\n * List of plugins that should be disabled when using this adapter. Purpose of this is to disable\n * any potential plugins that serve similar role as adapter that would cause conflicts when both\n * plugin and adapter is used at the same time.\n */\n pluginsToDisable?: Array<string>\n /**\n * Path to a CommonJS module that implements an image CDN URL generation function. The function\n * is used to optimize image delivery by generating URLs that leverage CDN capabilities. This module\n * should have a default export function that conforms to the {@link ImageCdnUrlGeneratorFn} type:\n *\n * Adapters should provide an absolute path to this module.\n * See 'packages/gatsby-adapter-netlify/src/image-cdn-url-generator.ts' as an implementation\n * example for the Netlify adapter.\n */\n imageCDNUrlGeneratorModulePath?: string\n /**\n * Path to a CommonJS module that implements an file CDN URL generation function. This module\n * should have a default export function that conforms to the {@link FileCdnUrlGeneratorFn} type:\n *\n * Adapters should provide an absolute path to this module.\n * See 'packages/gatsby-adapter-netlify/src/file-cdn-url-generator.ts' as an implementation\n * example for the Netlify adapter.\n */\n fileCDNUrlGeneratorModulePath?: string\n /**\n * The platform bundled functions will execute on. Usually should be `linux`.\n * This will be used if user didn't specify `GATSBY_FUNCTIONS_PLATFORM` environment variable\n * or used `-functions-platform` CLI toggle. If none is defined current platform (process.platform) will be used.\n */\n functionsPlatform?: string\n /**\n * The architecture bundled functions will execute on. Usually should be `x64`.\n * This will be used if user didn't specify `GATSBY_FUNCTIONS_ARCH` environment variable\n * or used `-functions-arch` CLI toggle. If none is defined current arch (process.arch) will be used.\n */\n functionsArch?: string\n}\n\ntype WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] }\n\n/**\n * This is the internal version of \"IAdapterConfig\" to enforce that certain keys must be present.\n * Authors of adapters will only see \"IAdapterConfig\".\n */\nexport type IAdapterFinalConfig = WithRequired<\n IAdapterConfig,\n \"excludeDatastoreFromEngineFunction\" | \"pluginsToDisable\"\n>\n\nexport interface IAdapter {\n /**\n * Unique name of the adapter. Used to identify adapter in manifest.\n */\n name: string\n cache?: {\n /**\n * Hook to restore `directories` from previous builds. This is executed very early on in the build process. If `false` is returned Gatsby will skip its cache restoration.\n */\n restore: (\n context: ICacheContext\n ) => Promise<boolean | void> | boolean | void\n /**\n * Hook to store `directories` for the current build. Executed as one of the last steps in the build process.\n */\n store: (context: ICacheContext) => Promise<void> | void\n }\n /**\n * Hook to take Gatsby’s output and preparing it for deployment on the adapter’s platform. Executed as one of the last steps in the build process.\n *\n * The `adapt` hook should do the following things:\n * - Apply HTTP headers to assets\n * - Apply redirects and rewrites. The adapter should can also create its own redirects/rewrites if necessary (e.g. mapping serverless functions to internal URLs).\n * - Wrap serverless functions coming from Gatsby with platform-specific code (if necessary). Gatsby will produce [Express-like](https://expressjs.com/) handlers.\n * - Apply trailing slash behavior and path prefix to URLs\n * - Possibly upload assets to CDN\n *\n * @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/creating-an-adapter/\n */\n adapt: (context: IAdaptContext) => Promise<void> | void\n /**\n * Hook to pass information from the adapter to Gatsby. You must return an object with a predefined shape.\n * Gatsby uses this information to adjust its build process. The information can be e.g. things that are only known once the project is deployed.\n *\n * This hook can enable advanced feature of adapters and it is not required to implement it.\n *\n * @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/creating-an-adapter/\n */\n config?: (\n context: IDefaultContext\n ) => Promise<IAdapterConfig> | IAdapterConfig\n}\n\n/**\n * Adapter initialization function that returns an instance of the adapter.\n * @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/creating-an-adapter/\n */\nexport type AdapterInit<T = Record<string, unknown>> = (\n adapterOptions?: T\n) => IAdapter\n\nexport interface IAdapterManager {\n restoreCache: () => Promise<void> | void\n storeCache: () => Promise<void> | void\n adapt: () => Promise<void> | void\n config: () => Promise<IAdapterFinalConfig>\n}\n/**\n * Types for gatsby/adapters.js\n * @see http://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/zero-configuration-deployments/\n */\nexport interface IAdapterManifestEntry {\n /**\n * Name of the adapter\n */\n name: string\n /**\n * Test function to determine if adapter should be used\n */\n test: () => boolean\n /**\n * npm module name of the adapter\n */\n module: string\n /**\n * List of version pairs that are supported by the adapter.\n * This allows to have multiple versions of the adapter for different versions of Gatsby.\n * This is useful for when APIs change or bugs are fixed that require different implementations.\n */\n versions: Array<{\n /**\n * Version of the `gatsby` package. This is a semver range.\n */\n gatsbyVersion: string\n /**\n * Version of the adapter. This is a semver range.\n */\n moduleVersion: string\n /**\n * Can override the module defined in the parent manifest entry - useful for when the adapter is renamed.\n */\n module?: string\n }>\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This argument is empty. This is for consistency so `pluginOptions` is always second argument.
|
|
3
|
+
* @typedef {undefined} emptyArg
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Object containing options defined in `gatsby-config.js`
|
|
7
|
+
* @typedef {object} pluginOptions
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Called when the Gatsby browser runtime first starts.
|
|
11
|
+
* @param {emptyArg} _
|
|
12
|
+
* @param {pluginOptions} pluginOptions
|
|
13
|
+
* @example
|
|
14
|
+
* exports.onClientEntry = () => {
|
|
15
|
+
* console.log("We've started!")
|
|
16
|
+
* callAnalyticsAPI()
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
export declare const onClientEntry = true;
|
|
20
|
+
/**
|
|
21
|
+
* Called when the initial (but not subsequent) render of Gatsby App is done on the client.
|
|
22
|
+
* @param {emptyArg} _
|
|
23
|
+
* @param {pluginOptions} pluginOptions
|
|
24
|
+
* @example
|
|
25
|
+
* exports.onInitialClientRender = () => {
|
|
26
|
+
* console.log("ReactDOM.render has executed")
|
|
27
|
+
* }
|
|
28
|
+
*/
|
|
29
|
+
export declare const onInitialClientRender = true;
|
|
30
|
+
/**
|
|
31
|
+
* Called when changing location is started.
|
|
32
|
+
* @param {object} $0
|
|
33
|
+
* @param {object} $0.location A location object
|
|
34
|
+
* @param {object|null} $0.prevLocation The previous location object
|
|
35
|
+
* @param {pluginOptions} pluginOptions
|
|
36
|
+
* @example
|
|
37
|
+
* exports.onPreRouteUpdate = ({ location, prevLocation }) => {
|
|
38
|
+
* console.log("Gatsby started to change location to", location.pathname)
|
|
39
|
+
* console.log("Gatsby started to change location from", prevLocation ? prevLocation.pathname : null)
|
|
40
|
+
* }
|
|
41
|
+
*/
|
|
42
|
+
export declare const onPreRouteUpdate = true;
|
|
43
|
+
/**
|
|
44
|
+
* Called when changing location is longer than 1 second.
|
|
45
|
+
* @param {object} $0
|
|
46
|
+
* @param {object} $0.location A location object
|
|
47
|
+
* @param {object} $0.action The "action" that caused the route change
|
|
48
|
+
* @param {pluginOptions} pluginOptions
|
|
49
|
+
* @example
|
|
50
|
+
* exports.onRouteUpdateDelayed = () => {
|
|
51
|
+
* console.log("We can show loading indicator now")
|
|
52
|
+
* }
|
|
53
|
+
*/
|
|
54
|
+
export declare const onRouteUpdateDelayed = true;
|
|
55
|
+
/**
|
|
56
|
+
* Called when the user changes routes, including on the initial load of the app
|
|
57
|
+
* @param {object} $0
|
|
58
|
+
* @param {object} $0.location A location object
|
|
59
|
+
* @param {object|null} $0.prevLocation The previous location object
|
|
60
|
+
* @param {pluginOptions} pluginOptions
|
|
61
|
+
* @example
|
|
62
|
+
* exports.onRouteUpdate = ({ location, prevLocation }) => {
|
|
63
|
+
* console.log('new pathname', location.pathname)
|
|
64
|
+
* console.log('old pathname', prevLocation ? prevLocation.pathname : null)
|
|
65
|
+
* }
|
|
66
|
+
*/
|
|
67
|
+
export declare const onRouteUpdate = true;
|
|
68
|
+
/**
|
|
69
|
+
* Allows a plugin to influence scrolling behavior on navigation.
|
|
70
|
+
* Default behavior is persisting last known scrolling positions and scrolling back to them on navigation.
|
|
71
|
+
* Plugins can also override this and return an Array of coordinates or an element name to scroll to.
|
|
72
|
+
* @param {object} $0
|
|
73
|
+
* @param {object} $0.prevRouterProps The previous state of the router before the route change.
|
|
74
|
+
* @param {object} $0.routerProps The current state of the router.
|
|
75
|
+
* @param {string} $0.pathname The new pathname (for backwards compatibility with v1).
|
|
76
|
+
* @param {function} $0.getSavedScrollPosition Takes a location and returns the
|
|
77
|
+
* coordinates of the last scroll position for that location, or `null` depending on
|
|
78
|
+
* whether a scroll happened or not. Gatsby saves scroll positions for each route
|
|
79
|
+
* in `SessionStorage`, so they are available after page reload.
|
|
80
|
+
* @returns {(boolean|string|Array)} Should return either an [x, y] Array of
|
|
81
|
+
* coordinates to scroll to, a string of the `id` or `name` of an element to
|
|
82
|
+
* scroll to, `false` to not update the scroll position, or `true` for the
|
|
83
|
+
* default behavior.
|
|
84
|
+
* @param {pluginOptions} pluginOptions
|
|
85
|
+
* @example
|
|
86
|
+
* exports.shouldUpdateScroll = ({
|
|
87
|
+
* routerProps: { location },
|
|
88
|
+
* getSavedScrollPosition
|
|
89
|
+
* }) => {
|
|
90
|
+
* const currentPosition = getSavedScrollPosition(location)
|
|
91
|
+
* const queriedPosition = getSavedScrollPosition({ pathname: `/random` })
|
|
92
|
+
*
|
|
93
|
+
* window.scrollTo(...(currentPosition || [0, 0]))
|
|
94
|
+
*
|
|
95
|
+
* return false
|
|
96
|
+
* }
|
|
97
|
+
*/
|
|
98
|
+
export declare const shouldUpdateScroll = true;
|
|
99
|
+
/**
|
|
100
|
+
* Allow a plugin to register a Service Worker. Should be a function that returns true.
|
|
101
|
+
* @param {emptyArg} _
|
|
102
|
+
* @param {pluginOptions} pluginOptions
|
|
103
|
+
* @returns {boolean} Should Gatsby register `/sw.js` service worker
|
|
104
|
+
* @example
|
|
105
|
+
* exports.registerServiceWorker = () => true
|
|
106
|
+
*/
|
|
107
|
+
export declare const registerServiceWorker = true;
|
|
108
|
+
/**
|
|
109
|
+
* Can be used to wrap each page element.
|
|
110
|
+
*
|
|
111
|
+
* This is useful for setting wrapper components around pages that won't get
|
|
112
|
+
* unmounted on page changes. For setting context providers, use [wrapRootElement](#wrapRootElement).
|
|
113
|
+
*
|
|
114
|
+
* _Note:_
|
|
115
|
+
* There is an equivalent hook in Gatsby's [SSR API](/docs/ssr-apis/#wrapPageElement).
|
|
116
|
+
* It is recommended to use both APIs together.
|
|
117
|
+
* For example usage, check out [Using i18n](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-i18n).
|
|
118
|
+
* @param {object} $0
|
|
119
|
+
* @param {ReactNode} $0.element The "Page" React Element built by Gatsby.
|
|
120
|
+
* @param {object} $0.props Props object used by page.
|
|
121
|
+
* @param {pluginOptions} pluginOptions
|
|
122
|
+
* @returns {ReactNode} Wrapped element
|
|
123
|
+
* @example
|
|
124
|
+
* const React = require("react")
|
|
125
|
+
* const Layout = require("./src/components/layout").default
|
|
126
|
+
*
|
|
127
|
+
* exports.wrapPageElement = ({ element, props }) => {
|
|
128
|
+
* // props provide same data to Layout as Page element will get
|
|
129
|
+
* // including location, data, etc - you don't need to pass it
|
|
130
|
+
* return <Layout {...props}>{element}</Layout>
|
|
131
|
+
* }
|
|
132
|
+
*/
|
|
133
|
+
export declare const wrapPageElement = true;
|
|
134
|
+
/**
|
|
135
|
+
* Can be used to the wrap the root element.
|
|
136
|
+
*
|
|
137
|
+
* This is useful to set up any context providers that will wrap your application.
|
|
138
|
+
* For setting persistent UI elements around pages use [wrapPageElement](#wrapPageElement).
|
|
139
|
+
*
|
|
140
|
+
* _Note:_
|
|
141
|
+
* There is an equivalent hook in Gatsby's [SSR API](/docs/ssr-apis/#wrapRootElement).
|
|
142
|
+
* It is recommended to use both APIs together.
|
|
143
|
+
* For example usage, check out [Using redux](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-redux).
|
|
144
|
+
* @param {object} $0
|
|
145
|
+
* @param {ReactNode} $0.element The "Root" React Element built by Gatsby.
|
|
146
|
+
* @param {pluginOptions} pluginOptions
|
|
147
|
+
* @returns {ReactNode} Wrapped element
|
|
148
|
+
* @example
|
|
149
|
+
* const React = require("react")
|
|
150
|
+
* const { Provider } = require("react-redux")
|
|
151
|
+
*
|
|
152
|
+
* const createStore = require("./src/state/createStore")
|
|
153
|
+
* const store = createStore()
|
|
154
|
+
*
|
|
155
|
+
* exports.wrapRootElement = ({ element }) => {
|
|
156
|
+
* return (
|
|
157
|
+
* <Provider store={store}>
|
|
158
|
+
* {element}
|
|
159
|
+
* </Provider>
|
|
160
|
+
* )
|
|
161
|
+
* }
|
|
162
|
+
*/
|
|
163
|
+
export declare const wrapRootElement = true;
|
|
164
|
+
/**
|
|
165
|
+
* Called when prefetching for a pathname is triggered. Allows
|
|
166
|
+
* for plugins with custom prefetching logic.
|
|
167
|
+
* @param {object} $0
|
|
168
|
+
* @param {string} $0.pathname The pathname whose resources should now be prefetched
|
|
169
|
+
* @param {function} $0.loadPage Function for fetching resources related to pathname
|
|
170
|
+
* @param {pluginOptions} pluginOptions
|
|
171
|
+
*/
|
|
172
|
+
export declare const onPrefetchPathname = true;
|
|
173
|
+
/**
|
|
174
|
+
* Called when prefetching for a pathname is successful. Allows
|
|
175
|
+
* for plugins with custom prefetching logic.
|
|
176
|
+
* @param {object} $0
|
|
177
|
+
* @param {string} $0.pathname The pathname whose resources have now been prefetched
|
|
178
|
+
* @param {pluginOptions} pluginOptions
|
|
179
|
+
*/
|
|
180
|
+
export declare const onPostPrefetchPathname = true;
|
|
181
|
+
/**
|
|
182
|
+
* Plugins can take over prefetching logic. If they do, they should call this
|
|
183
|
+
* to disable the now duplicate core prefetching logic.
|
|
184
|
+
* @param {emptyArg} _
|
|
185
|
+
* @param {pluginOptions} pluginOptions
|
|
186
|
+
* @returns {boolean} Should disable core prefetching
|
|
187
|
+
* @example
|
|
188
|
+
* exports.disableCorePrefetching = () => true
|
|
189
|
+
*/
|
|
190
|
+
export declare const disableCorePrefetching = true;
|
|
191
|
+
/**
|
|
192
|
+
* Allow a plugin to replace the `ReactDOM.createRoot`/`render` function calls with a custom renderer.
|
|
193
|
+
* @param {emptyArg} _
|
|
194
|
+
* @param {pluginOptions} pluginOptions
|
|
195
|
+
* @returns {Function} This method should return a function with same signature as `ReactDOM.createRoot`/`render`
|
|
196
|
+
*
|
|
197
|
+
* _Note:_
|
|
198
|
+
* Refer to React's documentation on [`ReactDOM.createRoot`/`render`](https://reactjs.org/docs/react-dom-client.html#createroot) for more information.
|
|
199
|
+
* Note that `ReactDOM.createRoot`/`render` is only available in React 18 or greater, prior versions should use [`ReactDOM.render`](https://reactjs.org/docs/react-dom.html#render).
|
|
200
|
+
* @example
|
|
201
|
+
* exports.replaceHydrateFunction = () => {
|
|
202
|
+
* return (element, container) => {
|
|
203
|
+
* const root = ReactDOM.createRoot(container)
|
|
204
|
+
* root.render(element)
|
|
205
|
+
* }
|
|
206
|
+
* }
|
|
207
|
+
*/
|
|
208
|
+
export declare const replaceHydrateFunction = true;
|
|
209
|
+
/**
|
|
210
|
+
* Inform plugins when a service worker has been installed.
|
|
211
|
+
* @param {object} $0
|
|
212
|
+
* @param {object} $0.serviceWorker The service worker instance.
|
|
213
|
+
* @param {pluginOptions} pluginOptions
|
|
214
|
+
*/
|
|
215
|
+
export declare const onServiceWorkerInstalled = true;
|
|
216
|
+
/**
|
|
217
|
+
* Inform plugins of when a service worker has an update available.
|
|
218
|
+
* @param {object} $0
|
|
219
|
+
* @param {object} $0.serviceWorker The service worker instance.
|
|
220
|
+
* @param {pluginOptions} pluginOptions
|
|
221
|
+
*/
|
|
222
|
+
export declare const onServiceWorkerUpdateFound = true;
|
|
223
|
+
/**
|
|
224
|
+
* Inform plugins when a service worker has been updated in the background
|
|
225
|
+
* and the page is ready to reload to apply changes.
|
|
226
|
+
* @param {object} $0
|
|
227
|
+
* @param {object} $0.serviceWorker The service worker instance.
|
|
228
|
+
* @param {pluginOptions} pluginOptions
|
|
229
|
+
*/
|
|
230
|
+
export declare const onServiceWorkerUpdateReady = true;
|
|
231
|
+
/**
|
|
232
|
+
* Inform plugins when a service worker has become active.
|
|
233
|
+
* @param {object} $0
|
|
234
|
+
* @param {object} $0.serviceWorker The service worker instance.
|
|
235
|
+
* @param {pluginOptions} pluginOptions
|
|
236
|
+
*/
|
|
237
|
+
export declare const onServiceWorkerActive = true;
|
|
238
|
+
/**
|
|
239
|
+
* Inform plugins when a service worker is redundant.
|
|
240
|
+
* @param {object} $0
|
|
241
|
+
* @param {object} $0.serviceWorker The service worker instance.
|
|
242
|
+
* @param {pluginOptions} pluginOptions
|
|
243
|
+
*/
|
|
244
|
+
export declare const onServiceWorkerRedundant = true;
|
|
245
|
+
/**
|
|
246
|
+
* Called when React catches an error during rendering, in a lifecycle method, or in the constructor of the whole tree.
|
|
247
|
+
* This corresponds to React 19's `onCaughtError` root option.
|
|
248
|
+
* @param {object} $0
|
|
249
|
+
* @param {Error} $0.error The error that was caught.
|
|
250
|
+
* @param {object} $0.errorInfo Additional error information containing componentStack.
|
|
251
|
+
* @param {pluginOptions} pluginOptions
|
|
252
|
+
* @example
|
|
253
|
+
* exports.onCaughtError = ({ error, errorInfo }) => {
|
|
254
|
+
* console.log('Caught error:', error.message)
|
|
255
|
+
* // Log to external error reporting service
|
|
256
|
+
* }
|
|
257
|
+
*/
|
|
258
|
+
export declare const onCaughtError = true;
|
|
259
|
+
/**
|
|
260
|
+
* Called when React receives an error that was thrown by an asynchronous event (e.g., setTimeout, requestIdleCallback, etc).
|
|
261
|
+
* This corresponds to React 19's `onUncaughtError` root option.
|
|
262
|
+
* @param {object} $0
|
|
263
|
+
* @param {Error} $0.error The error that was thrown.
|
|
264
|
+
* @param {object} $0.errorInfo Additional error information containing componentStack.
|
|
265
|
+
* @param {pluginOptions} pluginOptions
|
|
266
|
+
* @example
|
|
267
|
+
* exports.onUncaughtError = ({ error, errorInfo }) => {
|
|
268
|
+
* console.error('Uncaught error:', error.message)
|
|
269
|
+
* // Log to external error reporting service
|
|
270
|
+
* }
|
|
271
|
+
*/
|
|
272
|
+
export declare const onUncaughtError = true;
|