blume 2.1.0 → 2.1.1
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/CHANGELOG.md +94 -0
- package/dist/cli/{chunk-5cg2rzgf.js → chunk-073rdvgb.js} +19 -48
- package/dist/cli/{chunk-5cg2rzgf.js.map → chunk-073rdvgb.js.map} +4 -5
- package/dist/cli/{chunk-ga0pf4aj.js → chunk-0n9xkp3d.js} +12 -3
- package/dist/cli/{chunk-ga0pf4aj.js.map → chunk-0n9xkp3d.js.map} +3 -3
- package/dist/cli/chunk-150jk7km.js +52 -0
- package/dist/cli/chunk-150jk7km.js.map +10 -0
- package/dist/cli/{chunk-rekqz4qg.js → chunk-313vnn40.js} +16 -15
- package/dist/cli/chunk-313vnn40.js.map +10 -0
- package/dist/cli/{chunk-gp84za0h.js → chunk-3v3ffbrj.js} +2 -2
- package/dist/cli/{chunk-9xr4dgee.js → chunk-3x6x3pph.js} +29 -16
- package/dist/cli/chunk-3x6x3pph.js.map +10 -0
- package/dist/cli/{chunk-0gz36akr.js → chunk-42t4jxdx.js} +21 -5
- package/dist/cli/chunk-42t4jxdx.js.map +12 -0
- package/dist/cli/{chunk-ta27feev.js → chunk-54ztw1nj.js} +21 -2
- package/dist/cli/chunk-54ztw1nj.js.map +10 -0
- package/dist/cli/{chunk-jnwj5kjj.js → chunk-5vjtgs6e.js} +20 -7
- package/dist/cli/{chunk-jnwj5kjj.js.map → chunk-5vjtgs6e.js.map} +3 -3
- package/dist/cli/chunk-66w9j7p6.js +322 -0
- package/dist/cli/chunk-66w9j7p6.js.map +14 -0
- package/dist/cli/{chunk-nd1821sk.js → chunk-7ppf1rva.js} +32 -18
- package/dist/cli/chunk-7ppf1rva.js.map +10 -0
- package/dist/cli/{chunk-p804f3pe.js → chunk-8y2kmjv8.js} +6 -6
- package/dist/cli/{chunk-2f7n4qzt.js → chunk-c1y538kd.js} +1 -1
- package/dist/cli/{chunk-1n228xqb.js → chunk-c887fj0s.js} +2 -2
- package/dist/cli/{chunk-y5h4r2y0.js → chunk-cfyg47zg.js} +15 -5
- package/dist/cli/chunk-cfyg47zg.js.map +10 -0
- package/dist/cli/{chunk-cmtcnh9f.js → chunk-dzwehpy7.js} +2 -2
- package/dist/cli/{chunk-h2a48yhd.js → chunk-e6atmn4h.js} +119 -15
- package/dist/cli/{chunk-h2a48yhd.js.map → chunk-e6atmn4h.js.map} +10 -10
- package/dist/cli/{chunk-5ffywsmb.js → chunk-e8xw9qkh.js} +8 -6
- package/dist/cli/{chunk-5ffywsmb.js.map → chunk-e8xw9qkh.js.map} +3 -3
- package/dist/cli/{chunk-ntv4qrt7.js → chunk-e9q7a2ak.js} +14 -14
- package/dist/cli/{chunk-xkz5xbtv.js → chunk-ehweg4fr.js} +2366 -1114
- package/dist/cli/chunk-ehweg4fr.js.map +218 -0
- package/dist/cli/{chunk-zf748avv.js → chunk-ep6nd0rn.js} +176 -281
- package/dist/cli/{chunk-zf748avv.js.map → chunk-ep6nd0rn.js.map} +11 -12
- package/dist/cli/{chunk-yxmk4pec.js → chunk-fdrkhpjy.js} +16 -15
- package/dist/cli/{chunk-yxmk4pec.js.map → chunk-fdrkhpjy.js.map} +3 -3
- package/dist/cli/{chunk-5wj2qwn2.js → chunk-ft9vfys6.js} +4 -4
- package/dist/cli/{chunk-4h8z9vv5.js → chunk-gb420vvz.js} +89 -46
- package/dist/cli/chunk-gb420vvz.js.map +17 -0
- package/dist/cli/{chunk-713mngdq.js → chunk-hebn0tpx.js} +76 -10
- package/dist/cli/chunk-hebn0tpx.js.map +14 -0
- package/dist/cli/{chunk-2n4ps1b3.js → chunk-htrwgabr.js} +40 -22
- package/dist/cli/chunk-htrwgabr.js.map +15 -0
- package/dist/cli/{chunk-zhvd6adm.js → chunk-hx3xqnk9.js} +13 -13
- package/dist/cli/chunk-j134vrp2.js +65 -0
- package/dist/cli/chunk-j134vrp2.js.map +10 -0
- package/dist/cli/{chunk-y4ykbark.js → chunk-kma9f6sf.js} +2 -2
- package/dist/cli/{chunk-py62fewh.js → chunk-mrcccgnh.js} +3 -3
- package/dist/cli/{chunk-2f3ndkpw.js → chunk-n0v7m8ry.js} +3 -3
- package/dist/cli/{chunk-43zcf4gz.js → chunk-ncj7w596.js} +522 -353
- package/dist/cli/chunk-ncj7w596.js.map +35 -0
- package/dist/cli/{chunk-9geymqns.js → chunk-nq1d20w2.js} +14 -14
- package/dist/cli/{chunk-g2z9x01v.js → chunk-nrns10mj.js} +3 -3
- package/dist/cli/{chunk-e7vvk5ya.js → chunk-sds923fa.js} +3 -3
- package/dist/cli/{chunk-cy5bm0j0.js → chunk-t2m5j4pr.js} +2 -2
- package/dist/cli/{chunk-cy5bm0j0.js.map → chunk-t2m5j4pr.js.map} +1 -1
- package/dist/cli/{chunk-yj17vs39.js → chunk-tdqhyxfz.js} +5 -5
- package/dist/cli/{chunk-q3wxxq39.js → chunk-tphac74f.js} +5 -5
- package/dist/cli/{chunk-6bm0xpgd.js → chunk-w1r4vase.js} +2 -2
- package/dist/cli/index.js +24 -19
- package/dist/cli/index.js.map +3 -3
- package/dist/types/ai/ask-context.d.ts +6 -2
- package/dist/types/ai/component-markdown.d.ts +2 -0
- package/dist/types/ai/openapi-components.d.ts +4 -1
- package/dist/types/astro/integration.d.ts +5 -4
- package/dist/types/astro/markdown-negotiation.d.ts +3 -0
- package/dist/types/astro/pages.d.ts +10 -0
- package/dist/types/cli/init/scaffold.d.ts +1 -1
- package/dist/types/components/content/api-field.d.ts +4 -1
- package/dist/types/components/content/api-page.d.ts +6 -1
- package/dist/types/components/openapi/code-samples.d.ts +29 -0
- package/dist/types/components/openapi/helpers.d.ts +22 -1
- package/dist/types/components/openapi/security.d.ts +10 -0
- package/dist/types/components/openapi/snippets.d.ts +60 -0
- package/dist/types/core/changelog-index.d.ts +8 -0
- package/dist/types/core/config-input.d.ts +30 -3
- package/dist/types/core/data.d.ts +4 -0
- package/dist/types/core/i18n-ui.d.ts +2 -0
- package/dist/types/core/links.d.ts +8 -0
- package/dist/types/core/probe.d.ts +2 -0
- package/dist/types/core/project-graph.d.ts +6 -0
- package/dist/types/core/redirect-patterns.d.ts +11 -3
- package/dist/types/core/schema.d.ts +119 -0
- package/dist/types/core/sources/cache.d.ts +3 -0
- package/dist/types/core/sources/contentful-rich-text.d.ts +11 -2
- package/dist/types/core/sources/contentful.d.ts +17 -1
- package/dist/types/core/sources/lexical.d.ts +5 -0
- package/dist/types/core/sources/normalize.d.ts +20 -1
- package/dist/types/core/sources/remote.d.ts +37 -10
- package/dist/types/core/sources/sanity.d.ts +1 -1
- package/dist/types/core/types.d.ts +17 -0
- package/dist/types/deploy/adapter-output.d.ts +2 -1
- package/dist/types/deploy/adapters/cloudflare.d.ts +7 -5
- package/dist/types/deploy/adapters/node.d.ts +58 -23
- package/dist/types/deploy/adapters/registry.d.ts +10 -0
- package/dist/types/deploy/adapters/types.d.ts +3 -2
- package/dist/types/deploy/platforms/cloudflare.d.ts +10 -7
- package/dist/types/deploy/platforms/node.d.ts +3 -1
- package/dist/types/deploy/platforms/types.d.ts +18 -7
- package/dist/types/deploy/platforms/vercel.d.ts +20 -1
- package/dist/types/deploy/redirects.d.ts +17 -1
- package/dist/types/deploy/sitemap.d.ts +2 -1
- package/dist/types/deploy/vercel-negotiation.d.ts +42 -21
- package/dist/types/openapi/checks.d.ts +27 -0
- package/dist/types/openapi/graphql.d.ts +6 -0
- package/dist/types/openapi/model.d.ts +15 -4
- package/dist/types/openapi/parse.d.ts +3 -0
- package/dist/types/openapi/references.d.ts +16 -0
- package/dist/types/ratelimit/index.d.ts +1 -1
- package/dist/types/ratelimit/schema.d.ts +8 -0
- package/dist/types/ratelimit/upstash.d.ts +39 -14
- package/dist/types/reference/graphql.d.ts +76 -1
- package/dist/types/reference/index.d.ts +1 -1
- package/dist/types/reference/openapi.d.ts +2 -2
- package/dist/types/reference/options.d.ts +37 -1
- package/dist/types/reference/schema.d.ts +84 -0
- package/dist/types/search/adapters/registry.d.ts +3 -0
- package/dist/types/search/adapters/typesense.d.ts +14 -4
- package/dist/types/search/build.d.ts +3 -1
- package/dist/types/search/orama-index.d.ts +9 -9
- package/dist/types/search/sync/algolia.d.ts +5 -2
- package/dist/types/search/sync/index.d.ts +3 -1
- package/dist/types/search/sync/typesense.d.ts +11 -7
- package/dist/types/sources/contentful.d.ts +16 -0
- package/dist/types/sources/github-releases.d.ts +8 -1
- package/dist/types/sources/payload.d.ts +2 -0
- package/dist/types/sources/registry.d.ts +54 -0
- package/dist/types/sources/shared.d.ts +3 -0
- package/dist/types/sources/strapi.d.ts +2 -0
- package/docs/01-quickstart.mdx +4 -2
- package/docs/02-deployment.mdx +31 -13
- package/docs/advanced/changelog.mdx +11 -0
- package/docs/advanced/skills.mdx +1 -1
- package/docs/cli/audit.mdx +30 -7
- package/docs/cli/doctor.mdx +5 -1
- package/docs/cli/evals.mdx +4 -4
- package/docs/cli/translate.mdx +1 -0
- package/docs/cli/validate.mdx +4 -3
- package/docs/configuration/analytics.mdx +1 -1
- package/docs/configuration/assistant.mdx +6 -2
- package/docs/configuration/customization.mdx +4 -2
- package/docs/configuration/export.mdx +5 -3
- package/docs/configuration/index.mdx +3 -2
- package/docs/configuration/rate-limiting.mdx +23 -2
- package/docs/configuration/search.mdx +37 -14
- package/docs/content/components.mdx +2 -2
- package/docs/content/frontmatter.mdx +5 -3
- package/docs/content/i18n.mdx +2 -2
- package/docs/content/includes.mdx +1 -1
- package/docs/content/navigation.mdx +4 -4
- package/docs/content/sources/contentful.mdx +7 -4
- package/docs/content/sources/custom.mdx +7 -3
- package/docs/content/sources/github-releases.mdx +10 -2
- package/docs/content/sources/index.mdx +3 -3
- package/docs/content/sources/notion.mdx +1 -1
- package/docs/content/sources/obsidian.mdx +1 -1
- package/docs/content/sources/payload.mdx +3 -2
- package/docs/content/sources/remote-mdx.mdx +4 -0
- package/docs/content/sources/sanity.mdx +2 -2
- package/docs/content/sources/strapi.mdx +3 -2
- package/docs/content/syntax.mdx +2 -2
- package/docs/discoverability/agent-discovery.mdx +1 -1
- package/docs/discoverability/index.mdx +1 -1
- package/docs/discoverability/json-api.mdx +2 -0
- package/docs/discoverability/llms-txt.mdx +1 -1
- package/docs/discoverability/markdown.mdx +3 -1
- package/docs/discoverability/mcp.mdx +4 -0
- package/docs/discoverability/sitemap-and-robots.mdx +1 -1
- package/docs/references/api-pages.mdx +1 -1
- package/docs/references/asyncapi.mdx +3 -1
- package/docs/references/graphql.mdx +13 -1
- package/docs/references/openapi.mdx +50 -8
- package/package.json +9 -9
- package/skills/blume-migrate/SKILL.md +1 -1
- package/skills/blume-migrate/references/docusaurus.md +4 -4
- package/skills/blume-migrate/references/fumadocs.md +17 -13
- package/skills/blume-migrate/references/nextra.md +8 -5
- package/skills/blume-migrate/references/starlight.md +9 -7
- package/src/ai/ask-context.ts +33 -3
- package/src/ai/ask-limits.ts +13 -0
- package/src/ai/changelog-markdown.ts +11 -6
- package/src/ai/component-markdown.ts +1 -1
- package/src/ai/cors.ts +12 -3
- package/src/ai/mcp/query.ts +14 -6
- package/src/ai/openapi-components.ts +28 -4
- package/src/ai/relative-links.ts +4 -38
- package/src/astro/generate.ts +78 -48
- package/src/astro/integration.ts +16 -13
- package/src/astro/markdown-negotiation.ts +3 -0
- package/src/astro/module-types.ts +3 -1
- package/src/astro/pages.ts +23 -0
- package/src/astro/templates.ts +125 -80
- package/src/audit/catalog.ts +19 -3
- package/src/audit/checks/links.ts +14 -1
- package/src/audit/checks/network.ts +110 -6
- package/src/audit/checks/redirects.ts +6 -4
- package/src/audit/checks/robots.ts +58 -2
- package/src/audit/run.ts +3 -0
- package/src/audit/types.ts +2 -0
- package/src/audit/url.ts +14 -5
- package/src/blume-modules.d.ts +5 -1
- package/src/cli/args.ts +51 -0
- package/src/cli/build-failure.ts +23 -0
- package/src/cli/commands/audit.ts +10 -1
- package/src/cli/commands/dev.ts +18 -2
- package/src/cli/commands/doctor.ts +45 -12
- package/src/cli/commands/eval.ts +36 -4
- package/src/cli/commands/init.ts +6 -4
- package/src/cli/commands/validate.ts +10 -1
- package/src/cli/init/scaffold.ts +3 -3
- package/src/cli/prepare.ts +6 -3
- package/src/cli/required-secrets.ts +1 -1
- package/src/components/content/ApiPlayground.astro +6 -2
- package/src/components/content/api-field.ts +4 -1
- package/src/components/content/api-page.ts +31 -7
- package/src/components/content/mermaid-element.ts +15 -1
- package/src/components/islands/hooks.ts +27 -1
- package/src/components/layout/PageActions.astro +139 -24
- package/src/components/layout/RootLayout.astro +10 -2
- package/src/components/layout/Search.astro +17 -3
- package/src/components/layout/TableOfContents.astro +24 -17
- package/src/components/layout/head-scripts.ts +6 -1
- package/src/components/layout/search/algolia.ts +10 -1
- package/src/components/layout/search/analytics.ts +42 -14
- package/src/components/layout/search/endpoint.ts +48 -5
- package/src/components/layout/search/pagefind.ts +114 -5
- package/src/components/layout/search/types.ts +12 -0
- package/src/components/layout/search/typesense.ts +18 -6
- package/src/components/openapi/AsyncApiOperation.astro +14 -7
- package/src/components/openapi/Authorization.astro +10 -0
- package/src/components/openapi/GraphqlOperation.astro +5 -0
- package/src/components/openapi/Operation.astro +24 -1
- package/src/components/openapi/ParametersTable.astro +8 -4
- package/src/components/openapi/Playground.astro +7 -1
- package/src/components/openapi/RequestBody.astro +19 -2
- package/src/components/openapi/Responses.astro +1 -0
- package/src/components/openapi/SchemaTable.astro +15 -3
- package/src/components/openapi/async-snippets.ts +61 -5
- package/src/components/openapi/async.ts +123 -29
- package/src/components/openapi/graphql-helpers.ts +35 -12
- package/src/components/openapi/helpers.ts +36 -2
- package/src/components/openapi/message-model.ts +54 -11
- package/src/components/openapi/message.ts +14 -4
- package/src/components/openapi/operation-model.ts +16 -7
- package/src/components/openapi/playground-client.ts +24 -5
- package/src/components/openapi/playground-schema.ts +1 -1
- package/src/components/openapi/schema-tree.ts +44 -14
- package/src/components/openapi/security.ts +10 -0
- package/src/components/openapi/snippets.ts +5 -3
- package/src/components/openapi/validate-json.ts +4 -3
- package/src/core/changelog-index.ts +31 -1
- package/src/core/component-diagnostics.ts +53 -0
- package/src/core/component-overrides.ts +32 -0
- package/src/core/config-input.ts +31 -3
- package/src/core/data.ts +2 -0
- package/src/core/diagnostics.ts +5 -0
- package/src/core/i18n-ui.ts +2 -0
- package/src/core/includes.ts +1 -1
- package/src/core/links.ts +47 -17
- package/src/core/probe.ts +26 -6
- package/src/core/project-graph.ts +59 -18
- package/src/core/redirect-patterns.ts +36 -7
- package/src/core/schema.ts +21 -2
- package/src/core/sources/cache.ts +6 -0
- package/src/core/sources/contentful-rich-text.ts +29 -6
- package/src/core/sources/contentful.ts +135 -25
- package/src/core/sources/filesystem.ts +26 -4
- package/src/core/sources/github-releases.ts +12 -1
- package/src/core/sources/lexical.ts +15 -10
- package/src/core/sources/mdx-remote.ts +62 -10
- package/src/core/sources/normalize.ts +227 -41
- package/src/core/sources/notion.ts +7 -1
- package/src/core/sources/obsidian.ts +16 -3
- package/src/core/sources/payload.ts +38 -15
- package/src/core/sources/remote.ts +72 -15
- package/src/core/sources/resolve.ts +11 -1
- package/src/core/sources/sanity.ts +43 -25
- package/src/core/sources/strapi.ts +2 -2
- package/src/core/types.ts +18 -0
- package/src/core/ui-packs/ar.ts +1 -0
- package/src/core/ui-packs/bg.ts +1 -0
- package/src/core/ui-packs/bn.ts +1 -0
- package/src/core/ui-packs/ca.ts +1 -0
- package/src/core/ui-packs/cs.ts +1 -0
- package/src/core/ui-packs/da.ts +1 -0
- package/src/core/ui-packs/de.ts +1 -0
- package/src/core/ui-packs/el.ts +1 -0
- package/src/core/ui-packs/es.ts +1 -0
- package/src/core/ui-packs/fa.ts +1 -0
- package/src/core/ui-packs/fi.ts +1 -0
- package/src/core/ui-packs/fr.ts +1 -0
- package/src/core/ui-packs/he.ts +1 -0
- package/src/core/ui-packs/hi.ts +1 -0
- package/src/core/ui-packs/hr.ts +1 -0
- package/src/core/ui-packs/hu.ts +1 -0
- package/src/core/ui-packs/id.ts +1 -0
- package/src/core/ui-packs/it.ts +1 -0
- package/src/core/ui-packs/ja.ts +1 -0
- package/src/core/ui-packs/ko.ts +1 -0
- package/src/core/ui-packs/nl.ts +1 -0
- package/src/core/ui-packs/no.ts +1 -0
- package/src/core/ui-packs/pl.ts +1 -0
- package/src/core/ui-packs/pt-br.ts +1 -0
- package/src/core/ui-packs/pt.ts +1 -0
- package/src/core/ui-packs/ro.ts +1 -0
- package/src/core/ui-packs/ru.ts +1 -0
- package/src/core/ui-packs/sk.ts +1 -0
- package/src/core/ui-packs/sr.ts +1 -0
- package/src/core/ui-packs/sv.ts +1 -0
- package/src/core/ui-packs/th.ts +1 -0
- package/src/core/ui-packs/tr.ts +1 -0
- package/src/core/ui-packs/uk.ts +1 -0
- package/src/core/ui-packs/vi.ts +1 -0
- package/src/core/ui-packs/zh-tw.ts +1 -0
- package/src/core/ui-packs/zh.ts +1 -0
- package/src/deploy/adapter-output.ts +7 -2
- package/src/deploy/adapters/cloudflare.ts +7 -5
- package/src/deploy/adapters/node.ts +47 -9
- package/src/deploy/adapters/types.ts +7 -3
- package/src/deploy/artifacts.ts +2 -1
- package/src/deploy/platforms/cloudflare.ts +13 -9
- package/src/deploy/platforms/netlify.ts +2 -1
- package/src/deploy/platforms/node.ts +12 -2
- package/src/deploy/platforms/types.ts +21 -7
- package/src/deploy/platforms/vercel.ts +113 -16
- package/src/deploy/redirects.ts +66 -6
- package/src/deploy/rss.ts +3 -1
- package/src/deploy/sitemap.ts +39 -5
- package/src/deploy/vercel-negotiation.ts +290 -102
- package/src/eval/agents.ts +18 -1
- package/src/eval/prompts.ts +6 -3
- package/src/eval/report.ts +34 -13
- package/src/eval/run.ts +5 -0
- package/src/markdown/relative-links.ts +3 -2
- package/src/openapi/checks.ts +273 -0
- package/src/openapi/graphql-build.ts +21 -0
- package/src/openapi/graphql.ts +11 -0
- package/src/openapi/model.ts +15 -3
- package/src/openapi/parse.ts +127 -2
- package/src/openapi/references.ts +43 -3
- package/src/openapi/source.ts +39 -14
- package/src/ratelimit/index.ts +1 -1
- package/src/ratelimit/runtime.ts +37 -19
- package/src/ratelimit/upstash.ts +40 -10
- package/src/reference/graphql.ts +15 -1
- package/src/reference/index.ts +1 -0
- package/src/reference/openapi.ts +2 -2
- package/src/reference/options.ts +29 -1
- package/src/registry/eject.ts +3 -1
- package/src/search/adapters/locale-scope.ts +30 -0
- package/src/search/adapters/typesense.ts +14 -4
- package/src/search/build.ts +21 -3
- package/src/search/orama-index.ts +163 -31
- package/src/search/source-pages.ts +29 -0
- package/src/search/sync/algolia.ts +99 -9
- package/src/search/sync/index.ts +52 -13
- package/src/search/sync/typesense.ts +72 -27
- package/src/sources/contentful.ts +12 -0
- package/src/sources/github-releases.ts +7 -1
- package/src/sources/shared.ts +3 -0
- package/src/theme/entry.ts +29 -3
- package/src/translate/validate.ts +23 -1
- package/dist/cli/chunk-0gz36akr.js.map +0 -12
- package/dist/cli/chunk-2n4ps1b3.js.map +0 -15
- package/dist/cli/chunk-43zcf4gz.js.map +0 -36
- package/dist/cli/chunk-4ejxbzee.js +0 -39
- package/dist/cli/chunk-4ejxbzee.js.map +0 -10
- package/dist/cli/chunk-4h8z9vv5.js.map +0 -16
- package/dist/cli/chunk-713mngdq.js.map +0 -14
- package/dist/cli/chunk-9xr4dgee.js.map +0 -10
- package/dist/cli/chunk-amrb6hgh.js +0 -145
- package/dist/cli/chunk-amrb6hgh.js.map +0 -11
- package/dist/cli/chunk-nd1821sk.js.map +0 -10
- package/dist/cli/chunk-rekqz4qg.js.map +0 -10
- package/dist/cli/chunk-ta27feev.js.map +0 -10
- package/dist/cli/chunk-xkz5xbtv.js.map +0 -213
- package/dist/cli/chunk-y5h4r2y0.js.map +0 -10
- /package/dist/cli/{chunk-gp84za0h.js.map → chunk-3v3ffbrj.js.map} +0 -0
- /package/dist/cli/{chunk-p804f3pe.js.map → chunk-8y2kmjv8.js.map} +0 -0
- /package/dist/cli/{chunk-2f7n4qzt.js.map → chunk-c1y538kd.js.map} +0 -0
- /package/dist/cli/{chunk-1n228xqb.js.map → chunk-c887fj0s.js.map} +0 -0
- /package/dist/cli/{chunk-cmtcnh9f.js.map → chunk-dzwehpy7.js.map} +0 -0
- /package/dist/cli/{chunk-ntv4qrt7.js.map → chunk-e9q7a2ak.js.map} +0 -0
- /package/dist/cli/{chunk-5wj2qwn2.js.map → chunk-ft9vfys6.js.map} +0 -0
- /package/dist/cli/{chunk-zhvd6adm.js.map → chunk-hx3xqnk9.js.map} +0 -0
- /package/dist/cli/{chunk-y4ykbark.js.map → chunk-kma9f6sf.js.map} +0 -0
- /package/dist/cli/{chunk-py62fewh.js.map → chunk-mrcccgnh.js.map} +0 -0
- /package/dist/cli/{chunk-2f3ndkpw.js.map → chunk-n0v7m8ry.js.map} +0 -0
- /package/dist/cli/{chunk-9geymqns.js.map → chunk-nq1d20w2.js.map} +0 -0
- /package/dist/cli/{chunk-g2z9x01v.js.map → chunk-nrns10mj.js.map} +0 -0
- /package/dist/cli/{chunk-e7vvk5ya.js.map → chunk-sds923fa.js.map} +0 -0
- /package/dist/cli/{chunk-yj17vs39.js.map → chunk-tdqhyxfz.js.map} +0 -0
- /package/dist/cli/{chunk-q3wxxq39.js.map → chunk-tphac74f.js.map} +0 -0
- /package/dist/cli/{chunk-6bm0xpgd.js.map → chunk-w1r4vase.js.map} +0 -0
|
@@ -342,6 +342,9 @@ export type SidebarItemConfig = string | {
|
|
|
342
342
|
};
|
|
343
343
|
/** The object form of `search`: the adapter plus its adapter-independent settings. */
|
|
344
344
|
declare const searchOptionsSchema: z.ZodObject<{
|
|
345
|
+
analytics: z.ZodPrefault<z.ZodObject<{
|
|
346
|
+
queries: z.ZodDefault<z.ZodBoolean>;
|
|
347
|
+
}, z.core.$strict>>;
|
|
345
348
|
indexing: z.ZodPrefault<z.ZodObject<{
|
|
346
349
|
includeCodeBlocks: z.ZodDefault<z.ZodBoolean>;
|
|
347
350
|
includeHiddenPages: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -407,6 +410,7 @@ declare const searchOptionsSchema: z.ZodObject<{
|
|
|
407
410
|
apiKey: string;
|
|
408
411
|
collection: string;
|
|
409
412
|
host: string;
|
|
413
|
+
locale?: string | undefined;
|
|
410
414
|
port?: number | undefined;
|
|
411
415
|
protocol?: "http" | "https" | undefined;
|
|
412
416
|
};
|
|
@@ -465,6 +469,7 @@ declare const searchOptionsSchema: z.ZodObject<{
|
|
|
465
469
|
apiKey: z.ZodString;
|
|
466
470
|
collection: z.ZodString;
|
|
467
471
|
host: z.ZodString;
|
|
472
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
468
473
|
port: z.ZodOptional<z.ZodNumber>;
|
|
469
474
|
protocol: z.ZodOptional<z.ZodEnum<{
|
|
470
475
|
http: "http";
|
|
@@ -536,6 +541,7 @@ declare const searchOptionsSchema: z.ZodObject<{
|
|
|
536
541
|
apiKey: string;
|
|
537
542
|
collection: string;
|
|
538
543
|
host: string;
|
|
544
|
+
locale?: string | undefined;
|
|
539
545
|
port?: number | undefined;
|
|
540
546
|
protocol?: "http" | "https" | undefined;
|
|
541
547
|
};
|
|
@@ -1337,6 +1343,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1337
1343
|
}, z.core.$strict>>;
|
|
1338
1344
|
}, z.core.$strict>]>>;
|
|
1339
1345
|
basePath: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string, string | undefined>>;
|
|
1346
|
+
changelog: z.ZodOptional<z.ZodObject<{
|
|
1347
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
1348
|
+
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
1349
|
+
}, z.core.$strict>>;
|
|
1340
1350
|
consent: z.ZodPipe<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1341
1351
|
kind: z.ZodLiteral<"ethyca">;
|
|
1342
1352
|
options: z.ZodObject<{
|
|
@@ -1451,6 +1461,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1451
1461
|
repo: string;
|
|
1452
1462
|
pollInterval?: number | undefined;
|
|
1453
1463
|
prefix?: string | undefined;
|
|
1464
|
+
baseUrl?: string | undefined;
|
|
1454
1465
|
drafts?: boolean | undefined;
|
|
1455
1466
|
limit?: number | undefined;
|
|
1456
1467
|
prereleases?: boolean | undefined;
|
|
@@ -1506,11 +1517,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1506
1517
|
body?: string | undefined;
|
|
1507
1518
|
description?: string | undefined;
|
|
1508
1519
|
lastModified?: string | undefined;
|
|
1520
|
+
order?: string | undefined;
|
|
1509
1521
|
slug?: string | undefined;
|
|
1510
1522
|
title?: string | undefined;
|
|
1511
1523
|
} | undefined;
|
|
1524
|
+
host?: string | undefined;
|
|
1512
1525
|
locale?: string | undefined;
|
|
1513
1526
|
params?: Record<string, string> | undefined;
|
|
1527
|
+
previewHost?: string | undefined;
|
|
1514
1528
|
};
|
|
1515
1529
|
requiredSecrets: string[];
|
|
1516
1530
|
runtimeDeps: string[];
|
|
@@ -1527,6 +1541,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1527
1541
|
body?: string | undefined;
|
|
1528
1542
|
description?: string | undefined;
|
|
1529
1543
|
lastModified?: string | undefined;
|
|
1544
|
+
order?: string | undefined;
|
|
1530
1545
|
slug?: string | undefined;
|
|
1531
1546
|
title?: string | undefined;
|
|
1532
1547
|
} | undefined;
|
|
@@ -1545,6 +1560,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1545
1560
|
body?: string | undefined;
|
|
1546
1561
|
description?: string | undefined;
|
|
1547
1562
|
lastModified?: string | undefined;
|
|
1563
|
+
order?: string | undefined;
|
|
1548
1564
|
slug?: string | undefined;
|
|
1549
1565
|
title?: string | undefined;
|
|
1550
1566
|
} | undefined;
|
|
@@ -1604,6 +1620,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1604
1620
|
repo: string;
|
|
1605
1621
|
pollInterval?: number | undefined;
|
|
1606
1622
|
prefix?: string | undefined;
|
|
1623
|
+
baseUrl?: string | undefined;
|
|
1607
1624
|
drafts?: boolean | undefined;
|
|
1608
1625
|
limit?: number | undefined;
|
|
1609
1626
|
prereleases?: boolean | undefined;
|
|
@@ -1659,11 +1676,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1659
1676
|
body?: string | undefined;
|
|
1660
1677
|
description?: string | undefined;
|
|
1661
1678
|
lastModified?: string | undefined;
|
|
1679
|
+
order?: string | undefined;
|
|
1662
1680
|
slug?: string | undefined;
|
|
1663
1681
|
title?: string | undefined;
|
|
1664
1682
|
} | undefined;
|
|
1683
|
+
host?: string | undefined;
|
|
1665
1684
|
locale?: string | undefined;
|
|
1666
1685
|
params?: Record<string, string> | undefined;
|
|
1686
|
+
previewHost?: string | undefined;
|
|
1667
1687
|
};
|
|
1668
1688
|
requiredSecrets: string[];
|
|
1669
1689
|
runtimeDeps: string[];
|
|
@@ -1680,6 +1700,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1680
1700
|
body?: string | undefined;
|
|
1681
1701
|
description?: string | undefined;
|
|
1682
1702
|
lastModified?: string | undefined;
|
|
1703
|
+
order?: string | undefined;
|
|
1683
1704
|
slug?: string | undefined;
|
|
1684
1705
|
title?: string | undefined;
|
|
1685
1706
|
} | undefined;
|
|
@@ -1698,6 +1719,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1698
1719
|
body?: string | undefined;
|
|
1699
1720
|
description?: string | undefined;
|
|
1700
1721
|
lastModified?: string | undefined;
|
|
1722
|
+
order?: string | undefined;
|
|
1701
1723
|
slug?: string | undefined;
|
|
1702
1724
|
title?: string | undefined;
|
|
1703
1725
|
} | undefined;
|
|
@@ -1755,6 +1777,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1755
1777
|
options: z.ZodObject<{
|
|
1756
1778
|
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1757
1779
|
prefix: z.ZodOptional<z.ZodString>;
|
|
1780
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1758
1781
|
drafts: z.ZodOptional<z.ZodBoolean>;
|
|
1759
1782
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1760
1783
|
owner: z.ZodString;
|
|
@@ -1811,11 +1834,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1811
1834
|
body: z.ZodOptional<z.ZodString>;
|
|
1812
1835
|
description: z.ZodOptional<z.ZodString>;
|
|
1813
1836
|
lastModified: z.ZodOptional<z.ZodString>;
|
|
1837
|
+
order: z.ZodOptional<z.ZodString>;
|
|
1814
1838
|
slug: z.ZodOptional<z.ZodString>;
|
|
1815
1839
|
title: z.ZodOptional<z.ZodString>;
|
|
1816
1840
|
}, z.core.$strict>>;
|
|
1841
|
+
host: z.ZodOptional<z.ZodString>;
|
|
1817
1842
|
locale: z.ZodOptional<z.ZodString>;
|
|
1818
1843
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1844
|
+
previewHost: z.ZodOptional<z.ZodString>;
|
|
1819
1845
|
space: z.ZodString;
|
|
1820
1846
|
}, z.core.$strict>;
|
|
1821
1847
|
requiredSecrets: z.ZodArray<z.ZodString>;
|
|
@@ -1832,6 +1858,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1832
1858
|
body: z.ZodOptional<z.ZodString>;
|
|
1833
1859
|
description: z.ZodOptional<z.ZodString>;
|
|
1834
1860
|
lastModified: z.ZodOptional<z.ZodString>;
|
|
1861
|
+
order: z.ZodOptional<z.ZodString>;
|
|
1835
1862
|
slug: z.ZodOptional<z.ZodString>;
|
|
1836
1863
|
title: z.ZodOptional<z.ZodString>;
|
|
1837
1864
|
}, z.core.$strict>>;
|
|
@@ -1850,6 +1877,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1850
1877
|
body: z.ZodOptional<z.ZodString>;
|
|
1851
1878
|
description: z.ZodOptional<z.ZodString>;
|
|
1852
1879
|
lastModified: z.ZodOptional<z.ZodString>;
|
|
1880
|
+
order: z.ZodOptional<z.ZodString>;
|
|
1853
1881
|
slug: z.ZodOptional<z.ZodString>;
|
|
1854
1882
|
title: z.ZodOptional<z.ZodString>;
|
|
1855
1883
|
}, z.core.$strict>>;
|
|
@@ -1910,6 +1938,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1910
1938
|
repo: string;
|
|
1911
1939
|
pollInterval?: number | undefined;
|
|
1912
1940
|
prefix?: string | undefined;
|
|
1941
|
+
baseUrl?: string | undefined;
|
|
1913
1942
|
drafts?: boolean | undefined;
|
|
1914
1943
|
limit?: number | undefined;
|
|
1915
1944
|
prereleases?: boolean | undefined;
|
|
@@ -1965,11 +1994,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1965
1994
|
body?: string | undefined;
|
|
1966
1995
|
description?: string | undefined;
|
|
1967
1996
|
lastModified?: string | undefined;
|
|
1997
|
+
order?: string | undefined;
|
|
1968
1998
|
slug?: string | undefined;
|
|
1969
1999
|
title?: string | undefined;
|
|
1970
2000
|
} | undefined;
|
|
2001
|
+
host?: string | undefined;
|
|
1971
2002
|
locale?: string | undefined;
|
|
1972
2003
|
params?: Record<string, string> | undefined;
|
|
2004
|
+
previewHost?: string | undefined;
|
|
1973
2005
|
};
|
|
1974
2006
|
requiredSecrets: string[];
|
|
1975
2007
|
runtimeDeps: string[];
|
|
@@ -1986,6 +2018,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
1986
2018
|
body?: string | undefined;
|
|
1987
2019
|
description?: string | undefined;
|
|
1988
2020
|
lastModified?: string | undefined;
|
|
2021
|
+
order?: string | undefined;
|
|
1989
2022
|
slug?: string | undefined;
|
|
1990
2023
|
title?: string | undefined;
|
|
1991
2024
|
} | undefined;
|
|
@@ -2004,6 +2037,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2004
2037
|
body?: string | undefined;
|
|
2005
2038
|
description?: string | undefined;
|
|
2006
2039
|
lastModified?: string | undefined;
|
|
2040
|
+
order?: string | undefined;
|
|
2007
2041
|
slug?: string | undefined;
|
|
2008
2042
|
title?: string | undefined;
|
|
2009
2043
|
} | undefined;
|
|
@@ -2063,6 +2097,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2063
2097
|
repo: string;
|
|
2064
2098
|
pollInterval?: number | undefined;
|
|
2065
2099
|
prefix?: string | undefined;
|
|
2100
|
+
baseUrl?: string | undefined;
|
|
2066
2101
|
drafts?: boolean | undefined;
|
|
2067
2102
|
limit?: number | undefined;
|
|
2068
2103
|
prereleases?: boolean | undefined;
|
|
@@ -2118,11 +2153,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2118
2153
|
body?: string | undefined;
|
|
2119
2154
|
description?: string | undefined;
|
|
2120
2155
|
lastModified?: string | undefined;
|
|
2156
|
+
order?: string | undefined;
|
|
2121
2157
|
slug?: string | undefined;
|
|
2122
2158
|
title?: string | undefined;
|
|
2123
2159
|
} | undefined;
|
|
2160
|
+
host?: string | undefined;
|
|
2124
2161
|
locale?: string | undefined;
|
|
2125
2162
|
params?: Record<string, string> | undefined;
|
|
2163
|
+
previewHost?: string | undefined;
|
|
2126
2164
|
};
|
|
2127
2165
|
requiredSecrets: string[];
|
|
2128
2166
|
runtimeDeps: string[];
|
|
@@ -2139,6 +2177,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2139
2177
|
body?: string | undefined;
|
|
2140
2178
|
description?: string | undefined;
|
|
2141
2179
|
lastModified?: string | undefined;
|
|
2180
|
+
order?: string | undefined;
|
|
2142
2181
|
slug?: string | undefined;
|
|
2143
2182
|
title?: string | undefined;
|
|
2144
2183
|
} | undefined;
|
|
@@ -2157,6 +2196,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2157
2196
|
body?: string | undefined;
|
|
2158
2197
|
description?: string | undefined;
|
|
2159
2198
|
lastModified?: string | undefined;
|
|
2199
|
+
order?: string | undefined;
|
|
2160
2200
|
slug?: string | undefined;
|
|
2161
2201
|
title?: string | undefined;
|
|
2162
2202
|
} | undefined;
|
|
@@ -2222,6 +2262,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2222
2262
|
repo: string;
|
|
2223
2263
|
pollInterval?: number | undefined;
|
|
2224
2264
|
prefix?: string | undefined;
|
|
2265
|
+
baseUrl?: string | undefined;
|
|
2225
2266
|
drafts?: boolean | undefined;
|
|
2226
2267
|
limit?: number | undefined;
|
|
2227
2268
|
prereleases?: boolean | undefined;
|
|
@@ -2277,11 +2318,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2277
2318
|
body?: string | undefined;
|
|
2278
2319
|
description?: string | undefined;
|
|
2279
2320
|
lastModified?: string | undefined;
|
|
2321
|
+
order?: string | undefined;
|
|
2280
2322
|
slug?: string | undefined;
|
|
2281
2323
|
title?: string | undefined;
|
|
2282
2324
|
} | undefined;
|
|
2325
|
+
host?: string | undefined;
|
|
2283
2326
|
locale?: string | undefined;
|
|
2284
2327
|
params?: Record<string, string> | undefined;
|
|
2328
|
+
previewHost?: string | undefined;
|
|
2285
2329
|
};
|
|
2286
2330
|
requiredSecrets: string[];
|
|
2287
2331
|
runtimeDeps: string[];
|
|
@@ -2298,6 +2342,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2298
2342
|
body?: string | undefined;
|
|
2299
2343
|
description?: string | undefined;
|
|
2300
2344
|
lastModified?: string | undefined;
|
|
2345
|
+
order?: string | undefined;
|
|
2301
2346
|
slug?: string | undefined;
|
|
2302
2347
|
title?: string | undefined;
|
|
2303
2348
|
} | undefined;
|
|
@@ -2316,6 +2361,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2316
2361
|
body?: string | undefined;
|
|
2317
2362
|
description?: string | undefined;
|
|
2318
2363
|
lastModified?: string | undefined;
|
|
2364
|
+
order?: string | undefined;
|
|
2319
2365
|
slug?: string | undefined;
|
|
2320
2366
|
title?: string | undefined;
|
|
2321
2367
|
} | undefined;
|
|
@@ -2392,6 +2438,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2392
2438
|
repo: string;
|
|
2393
2439
|
pollInterval?: number | undefined;
|
|
2394
2440
|
prefix?: string | undefined;
|
|
2441
|
+
baseUrl?: string | undefined;
|
|
2395
2442
|
drafts?: boolean | undefined;
|
|
2396
2443
|
limit?: number | undefined;
|
|
2397
2444
|
prereleases?: boolean | undefined;
|
|
@@ -2447,11 +2494,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2447
2494
|
body?: string | undefined;
|
|
2448
2495
|
description?: string | undefined;
|
|
2449
2496
|
lastModified?: string | undefined;
|
|
2497
|
+
order?: string | undefined;
|
|
2450
2498
|
slug?: string | undefined;
|
|
2451
2499
|
title?: string | undefined;
|
|
2452
2500
|
} | undefined;
|
|
2501
|
+
host?: string | undefined;
|
|
2453
2502
|
locale?: string | undefined;
|
|
2454
2503
|
params?: Record<string, string> | undefined;
|
|
2504
|
+
previewHost?: string | undefined;
|
|
2455
2505
|
};
|
|
2456
2506
|
requiredSecrets: string[];
|
|
2457
2507
|
runtimeDeps: string[];
|
|
@@ -2468,6 +2518,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2468
2518
|
body?: string | undefined;
|
|
2469
2519
|
description?: string | undefined;
|
|
2470
2520
|
lastModified?: string | undefined;
|
|
2521
|
+
order?: string | undefined;
|
|
2471
2522
|
slug?: string | undefined;
|
|
2472
2523
|
title?: string | undefined;
|
|
2473
2524
|
} | undefined;
|
|
@@ -2486,6 +2537,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2486
2537
|
body?: string | undefined;
|
|
2487
2538
|
description?: string | undefined;
|
|
2488
2539
|
lastModified?: string | undefined;
|
|
2540
|
+
order?: string | undefined;
|
|
2489
2541
|
slug?: string | undefined;
|
|
2490
2542
|
title?: string | undefined;
|
|
2491
2543
|
} | undefined;
|
|
@@ -2601,6 +2653,11 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2601
2653
|
server: "server";
|
|
2602
2654
|
}>>;
|
|
2603
2655
|
site: z.ZodOptional<z.ZodURL>;
|
|
2656
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2657
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
2658
|
+
port: z.ZodOptional<z.ZodString>;
|
|
2659
|
+
protocol: z.ZodOptional<z.ZodString>;
|
|
2660
|
+
}, z.core.$strict>>>;
|
|
2604
2661
|
}, z.core.$catchall<z.ZodJSONSchema>>;
|
|
2605
2662
|
requiredSecrets: z.ZodArray<z.ZodString>;
|
|
2606
2663
|
runtimeDeps: z.ZodArray<z.ZodString>;
|
|
@@ -2647,6 +2704,11 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2647
2704
|
base?: string | undefined;
|
|
2648
2705
|
output?: "static" | "server" | undefined;
|
|
2649
2706
|
site?: string | undefined;
|
|
2707
|
+
allowedDomains?: {
|
|
2708
|
+
hostname?: string | undefined;
|
|
2709
|
+
port?: string | undefined;
|
|
2710
|
+
protocol?: string | undefined;
|
|
2711
|
+
}[] | undefined;
|
|
2650
2712
|
};
|
|
2651
2713
|
requiredSecrets: string[];
|
|
2652
2714
|
runtimeDeps: string[];
|
|
@@ -2917,6 +2979,8 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2917
2979
|
options: z.ZodObject<{
|
|
2918
2980
|
requests: z.ZodOptional<z.ZodNumber>;
|
|
2919
2981
|
window: z.ZodOptional<z.ZodNumber>;
|
|
2982
|
+
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
2983
|
+
urlEnv: z.ZodOptional<z.ZodString>;
|
|
2920
2984
|
}, z.core.$strict>;
|
|
2921
2985
|
requiredSecrets: z.ZodArray<z.ZodString>;
|
|
2922
2986
|
runtimeDeps: z.ZodArray<z.ZodString>;
|
|
@@ -2942,6 +3006,8 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2942
3006
|
options: {
|
|
2943
3007
|
requests?: number | undefined;
|
|
2944
3008
|
window?: number | undefined;
|
|
3009
|
+
tokenEnv?: string | undefined;
|
|
3010
|
+
urlEnv?: string | undefined;
|
|
2945
3011
|
};
|
|
2946
3012
|
requiredSecrets: string[];
|
|
2947
3013
|
runtimeDeps: string[];
|
|
@@ -2967,6 +3033,8 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
2967
3033
|
options: {
|
|
2968
3034
|
requests?: number | undefined;
|
|
2969
3035
|
window?: number | undefined;
|
|
3036
|
+
tokenEnv?: string | undefined;
|
|
3037
|
+
urlEnv?: string | undefined;
|
|
2970
3038
|
};
|
|
2971
3039
|
requiredSecrets: string[];
|
|
2972
3040
|
runtimeDeps: string[];
|
|
@@ -3047,6 +3115,15 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3047
3115
|
}, z.core.$strict>, z.ZodObject<{
|
|
3048
3116
|
kind: z.ZodLiteral<"graphql">;
|
|
3049
3117
|
options: z.ZodPipe<z.ZodObject<{
|
|
3118
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
3119
|
+
method: z.ZodEnum<{
|
|
3120
|
+
none: "none";
|
|
3121
|
+
key: "key";
|
|
3122
|
+
bearer: "bearer";
|
|
3123
|
+
basic: "basic";
|
|
3124
|
+
}>;
|
|
3125
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3126
|
+
}, z.core.$strict>>;
|
|
3050
3127
|
endpoint: z.ZodOptional<z.ZodString>;
|
|
3051
3128
|
sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3052
3129
|
includeInLlms: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -3056,6 +3133,15 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3056
3133
|
route: z.ZodOptional<z.ZodString>;
|
|
3057
3134
|
seoDescriptionSuffix: z.ZodDefault<z.ZodBoolean>;
|
|
3058
3135
|
spec: z.ZodString;
|
|
3136
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
3137
|
+
method: z.ZodEnum<{
|
|
3138
|
+
none: "none";
|
|
3139
|
+
key: "key";
|
|
3140
|
+
bearer: "bearer";
|
|
3141
|
+
basic: "basic";
|
|
3142
|
+
}>;
|
|
3143
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3144
|
+
}, z.core.$strict>>;
|
|
3059
3145
|
endpoint: z.ZodOptional<z.ZodString>;
|
|
3060
3146
|
}, z.core.$strict>>>;
|
|
3061
3147
|
codeSamples: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodArray<z.ZodString>]>>;
|
|
@@ -3080,6 +3166,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3080
3166
|
spec: string;
|
|
3081
3167
|
label?: string | undefined;
|
|
3082
3168
|
route?: string | undefined;
|
|
3169
|
+
auth?: {
|
|
3170
|
+
method: "none" | "key" | "bearer" | "basic";
|
|
3171
|
+
name?: string | undefined;
|
|
3172
|
+
} | undefined;
|
|
3083
3173
|
endpoint?: string | undefined;
|
|
3084
3174
|
}[];
|
|
3085
3175
|
codeSamples: false | string[];
|
|
@@ -3088,6 +3178,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3088
3178
|
proxy: string | boolean;
|
|
3089
3179
|
};
|
|
3090
3180
|
route: string;
|
|
3181
|
+
auth?: {
|
|
3182
|
+
method: "none" | "key" | "bearer" | "basic";
|
|
3183
|
+
name?: string | undefined;
|
|
3184
|
+
} | undefined;
|
|
3091
3185
|
endpoint?: string | undefined;
|
|
3092
3186
|
spec?: string | undefined;
|
|
3093
3187
|
}, "spec" | "overlays">, {
|
|
@@ -3099,6 +3193,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3099
3193
|
spec: string;
|
|
3100
3194
|
label?: string | undefined;
|
|
3101
3195
|
route?: string | undefined;
|
|
3196
|
+
auth?: {
|
|
3197
|
+
method: "none" | "key" | "bearer" | "basic";
|
|
3198
|
+
name?: string | undefined;
|
|
3199
|
+
} | undefined;
|
|
3102
3200
|
endpoint?: string | undefined;
|
|
3103
3201
|
}[];
|
|
3104
3202
|
codeSamples: false | string[];
|
|
@@ -3107,6 +3205,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3107
3205
|
proxy: string | boolean;
|
|
3108
3206
|
};
|
|
3109
3207
|
route: string;
|
|
3208
|
+
auth?: {
|
|
3209
|
+
method: "none" | "key" | "bearer" | "basic";
|
|
3210
|
+
name?: string | undefined;
|
|
3211
|
+
} | undefined;
|
|
3110
3212
|
endpoint?: string | undefined;
|
|
3111
3213
|
spec?: string | undefined;
|
|
3112
3214
|
}>>;
|
|
@@ -3252,6 +3354,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3252
3354
|
spec: string;
|
|
3253
3355
|
label?: string | undefined;
|
|
3254
3356
|
route?: string | undefined;
|
|
3357
|
+
auth?: {
|
|
3358
|
+
method: "none" | "key" | "bearer" | "basic";
|
|
3359
|
+
name?: string | undefined;
|
|
3360
|
+
} | undefined;
|
|
3255
3361
|
endpoint?: string | undefined;
|
|
3256
3362
|
}[];
|
|
3257
3363
|
codeSamples: false | string[];
|
|
@@ -3260,6 +3366,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3260
3366
|
proxy: string | boolean;
|
|
3261
3367
|
};
|
|
3262
3368
|
route: string;
|
|
3369
|
+
auth?: {
|
|
3370
|
+
method: "none" | "key" | "bearer" | "basic";
|
|
3371
|
+
name?: string | undefined;
|
|
3372
|
+
} | undefined;
|
|
3263
3373
|
endpoint?: string | undefined;
|
|
3264
3374
|
spec?: string | undefined;
|
|
3265
3375
|
}, "spec" | "overlays">;
|
|
@@ -3292,6 +3402,9 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3292
3402
|
runtimeDeps: string[];
|
|
3293
3403
|
}>>>>;
|
|
3294
3404
|
search: z.ZodPrefault<z.ZodPipe<z.ZodPipe<z.ZodCustom<SearchConfigInput, SearchConfigInput>, z.ZodTransform<{
|
|
3405
|
+
analytics?: {
|
|
3406
|
+
queries?: boolean | undefined;
|
|
3407
|
+
} | undefined;
|
|
3295
3408
|
indexing?: {
|
|
3296
3409
|
includeCodeBlocks?: boolean | undefined;
|
|
3297
3410
|
includeHiddenPages?: boolean | undefined;
|
|
@@ -3303,6 +3416,9 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3303
3416
|
}[] | undefined;
|
|
3304
3417
|
provider?: false | SearchAdapterInput | undefined;
|
|
3305
3418
|
}, SearchConfigInput>>, z.ZodObject<{
|
|
3419
|
+
analytics: z.ZodPrefault<z.ZodObject<{
|
|
3420
|
+
queries: z.ZodDefault<z.ZodBoolean>;
|
|
3421
|
+
}, z.core.$strict>>;
|
|
3306
3422
|
indexing: z.ZodPrefault<z.ZodObject<{
|
|
3307
3423
|
includeCodeBlocks: z.ZodDefault<z.ZodBoolean>;
|
|
3308
3424
|
includeHiddenPages: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -3368,6 +3484,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3368
3484
|
apiKey: string;
|
|
3369
3485
|
collection: string;
|
|
3370
3486
|
host: string;
|
|
3487
|
+
locale?: string | undefined;
|
|
3371
3488
|
port?: number | undefined;
|
|
3372
3489
|
protocol?: "http" | "https" | undefined;
|
|
3373
3490
|
};
|
|
@@ -3426,6 +3543,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3426
3543
|
apiKey: z.ZodString;
|
|
3427
3544
|
collection: z.ZodString;
|
|
3428
3545
|
host: z.ZodString;
|
|
3546
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
3429
3547
|
port: z.ZodOptional<z.ZodNumber>;
|
|
3430
3548
|
protocol: z.ZodOptional<z.ZodEnum<{
|
|
3431
3549
|
http: "http";
|
|
@@ -3497,6 +3615,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
|
|
|
3497
3615
|
apiKey: string;
|
|
3498
3616
|
collection: string;
|
|
3499
3617
|
host: string;
|
|
3618
|
+
locale?: string | undefined;
|
|
3500
3619
|
port?: number | undefined;
|
|
3501
3620
|
protocol?: "http" | "https" | undefined;
|
|
3502
3621
|
};
|
|
@@ -33,5 +33,8 @@ export declare const snapshotCache: (cacheDir: string) => SnapshotCache;
|
|
|
33
33
|
* snapshot exists, serve it without fetching (cache-first dev). On fetch failure,
|
|
34
34
|
* serve the last-known-good snapshot with a warning so a CMS/network outage
|
|
35
35
|
* doesn't fail the build; if there is no snapshot either, surface a hard error.
|
|
36
|
+
* A `BlumeError` from the source (a missing SDK or token, checked before any
|
|
37
|
+
* request, or a misconfiguration) already names its cause, so without a
|
|
38
|
+
* snapshot it surfaces as itself rather than as a fetch failure.
|
|
36
39
|
*/
|
|
37
40
|
export declare const loadWithCache: (name: string, cache: SnapshotCache, fetchEntries: () => Promise<SourceEntry[]>, refresh?: boolean) => Promise<SourceLoadResult>;
|
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Contentful rich text → Markdown. Covers the block, inline, and mark types
|
|
3
3
|
* the Rich Text editor emits; embedded entries fall through to a serializer
|
|
4
|
-
* keyed by content type or are noted in a comment
|
|
4
|
+
* keyed by content type or are noted in a comment, and a link to an entry
|
|
5
|
+
* points at its page when the source says it has one. Links to assets and
|
|
5
6
|
* entries arrive unresolved from the Delivery API (`data.target` is a
|
|
6
7
|
* `sys` link), so the source hands in resolvers over the response's
|
|
7
8
|
* `includes`; a document the SDK already resolved (with `fields` inline)
|
|
8
9
|
* lowers the same way.
|
|
9
10
|
*/
|
|
10
11
|
import type { JsonObject } from "./json.ts";
|
|
11
|
-
/** An asset's file as a Markdown image needs it. */
|
|
12
|
+
/** An asset's file as a Markdown image or link needs it. */
|
|
12
13
|
export interface ContentfulAsset {
|
|
14
|
+
/** The file's MIME type; an asset that isn't an image renders as a link. */
|
|
15
|
+
contentType?: string;
|
|
13
16
|
description?: string;
|
|
17
|
+
fileName?: string;
|
|
14
18
|
title?: string;
|
|
15
19
|
url: string;
|
|
16
20
|
}
|
|
17
21
|
export interface ContentfulRichTextOptions {
|
|
22
|
+
/**
|
|
23
|
+
* The route of a linked entry's page; an entry hyperlink to an entry with
|
|
24
|
+
* none keeps only its text.
|
|
25
|
+
*/
|
|
26
|
+
entryHref?: (entry: JsonObject) => string | undefined;
|
|
18
27
|
/** Resolve an asset link (`data.target.sys.id`) to its file. */
|
|
19
28
|
resolveAsset?: (id: string) => ContentfulAsset | null;
|
|
20
29
|
/** Resolve an entry link to the entry (`sys` plus `fields`). */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ResolvedI18nConfig, ResolvedVersionsConfig } from "../schema.ts";
|
|
1
2
|
import type { JsonObject } from "./json.ts";
|
|
2
3
|
import type { RemoteFieldMap } from "./remote.ts";
|
|
3
4
|
import type { ContentSource, SourceContext } from "./types.ts";
|
|
@@ -8,10 +9,24 @@ export interface ContentfulSourceOptions {
|
|
|
8
9
|
space: string;
|
|
9
10
|
/** Environment id; default `master`. */
|
|
10
11
|
environment?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Delivery API host name; default `cdn.contentful.com`. A space with EU
|
|
14
|
+
* data residency reads from `cdn.eu.contentful.com`.
|
|
15
|
+
*/
|
|
16
|
+
host?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Preview API host name for `--preview`; default `preview.contentful.com`
|
|
19
|
+
* (`preview.eu.contentful.com` for EU data residency).
|
|
20
|
+
*/
|
|
21
|
+
previewHost?: string;
|
|
11
22
|
/** The content type id whose entries become pages. */
|
|
12
23
|
contentType: string;
|
|
13
24
|
/** Locale code to fetch; omit for the space's default locale. */
|
|
14
25
|
locale?: string;
|
|
26
|
+
/** The project's i18n config, which places an entry's route by its slug. */
|
|
27
|
+
i18n?: ResolvedI18nConfig;
|
|
28
|
+
/** The project's versions config, which places an entry's route by its slug. */
|
|
29
|
+
versions?: ResolvedVersionsConfig;
|
|
15
30
|
/**
|
|
16
31
|
* Field ids mapping an entry onto Blume meta + body. Paths resolve against
|
|
17
32
|
* the entry's `fields`, with `sys` reachable as `sys.<key>`. Defaults:
|
|
@@ -35,6 +50,7 @@ export interface ContentfulSourceOptions {
|
|
|
35
50
|
* Contentful content source. Pages through the Delivery API (the Preview API
|
|
36
51
|
* under `--preview`), maps each entry's fields to frontmatter, and lowers its
|
|
37
52
|
* rich text body to Markdown with the page's `includes` resolving asset and
|
|
38
|
-
* entry links.
|
|
53
|
+
* entry links. An entry hyperlink to another of the source's entries links
|
|
54
|
+
* to that entry's page.
|
|
39
55
|
*/
|
|
40
56
|
export declare const contentfulSource: (options: ContentfulSourceOptions, ctx?: SourceContext) => ContentSource;
|
|
@@ -9,6 +9,11 @@ import type { JsonObject } from "./json.ts";
|
|
|
9
9
|
export interface LexicalOptions {
|
|
10
10
|
/** The CMS origin a relative upload URL (`/media/x.png`) resolves against. */
|
|
11
11
|
baseUrl?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Called with the label of each node left out as a comment (a block with
|
|
14
|
+
* no serializer, a node type with no Markdown), so the source can warn.
|
|
15
|
+
*/
|
|
16
|
+
onUnsupported?: (what: string) => void;
|
|
12
17
|
/** Serializers for `block`/`inlineBlock` nodes, keyed by `fields.blockType`. */
|
|
13
18
|
serializers?: Record<string, (fields: JsonObject) => string>;
|
|
14
19
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { YAMLException } from "js-yaml";
|
|
1
2
|
import type { ResolvedI18nConfig } from "../schema.ts";
|
|
2
|
-
import type { Diagnostic, Heading, PageLink, PageRecord } from "../types.ts";
|
|
3
|
+
import type { Diagnostic, ExampleUse, Heading, PageLink, PageRecord } from "../types.ts";
|
|
3
4
|
import type { NormalizeContext, SourceEntry } from "./types.ts";
|
|
4
5
|
/**
|
|
5
6
|
* Slugify a content/route slug (Sanity, Notion, frontmatter `slug`). Heading
|
|
@@ -30,6 +31,16 @@ export declare const slugifyPath: (text: string) => string;
|
|
|
30
31
|
* reports this instead of publishing a route that can never render.
|
|
31
32
|
*/
|
|
32
33
|
export declare const unloadablePathDiagnostic: (path: string, file: string) => Diagnostic | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The error for a content file whose front matter isn't valid YAML — most
|
|
36
|
+
* often an unquoted value holding `: `, which YAML reads as a nested mapping.
|
|
37
|
+
* Thrown out of a source's scan, it would fail every command with
|
|
38
|
+
* BLUME_INTERNAL; a source leaves the file out and reports this instead, like
|
|
39
|
+
* a page whose front matter fails the schema. js-yaml counts lines from the
|
|
40
|
+
* text after the opening `---`, which starts with the rest of that fence
|
|
41
|
+
* line, so its 0-based line is already the file's line minus one.
|
|
42
|
+
*/
|
|
43
|
+
export declare const frontmatterYamlDiagnostic: (error: YAMLException, file: string) => Diagnostic;
|
|
33
44
|
export declare const HTML_COMMENT: RegExp;
|
|
34
45
|
export declare const INLINE_CODE: RegExp;
|
|
35
46
|
/** A heading whose trailing `{#id}` marker is unescaped — see `BARE_CURLY_MARKER`. */
|
|
@@ -37,6 +48,8 @@ export interface CurlyMarker {
|
|
|
37
48
|
id: string;
|
|
38
49
|
/** 1-based line of the heading (a setext heading's first text line) in the body. */
|
|
39
50
|
line: number;
|
|
51
|
+
/** The braces as written (`{#id}`, `{ #id }`, `{: #id }`). */
|
|
52
|
+
marker: string;
|
|
40
53
|
}
|
|
41
54
|
/** Where a heading's text ends in the scanned text, for appending a marker. */
|
|
42
55
|
export interface HeadingSite {
|
|
@@ -74,6 +87,12 @@ export declare const MD_IMAGE: RegExp;
|
|
|
74
87
|
/** Column (0-based, within `matched`) where a link/image match's target starts. */
|
|
75
88
|
export declare const targetOffsetIn: (matched: string, target: string, title: string | undefined) => number;
|
|
76
89
|
export declare const extractLinks: (body: string, lineOffset?: number) => PageLink[];
|
|
90
|
+
/**
|
|
91
|
+
* Every `<Component path>` in an `.mdx` body, with the 1-based position of its
|
|
92
|
+
* value; lines are shifted by `lineOffset`, as {@link extractLinks} does. Code
|
|
93
|
+
* blocks and inline code are skipped.
|
|
94
|
+
*/
|
|
95
|
+
export declare const extractExampleUses: (body: string, lineOffset?: number) => ExampleUse[];
|
|
77
96
|
export declare const extractComponentTags: (body: string) => string[];
|
|
78
97
|
/**
|
|
79
98
|
* Height of the frontmatter block stripped from `raw` to produce `body` (0
|