mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-12-01 05:24:18 +00:00
Compare commits
39 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e7d5134966 | |||
| f822852b04 | |||
| 348a04d1eb | |||
| 5b326bf040 | |||
| d51605fed8 | |||
| 1c8da29d46 | |||
| c2daee4a8a | |||
| 0f7ca03599 | |||
| dda28fc436 | |||
| 2597ce712c | |||
| 17c116933e | |||
| 36cde8779f | |||
| b1cfef2862 | |||
| 7a025d6cdc | |||
| e237a74c36 | |||
| 43df49cdca | |||
| 22f37783db | |||
| fa871517b2 | |||
| a3d37f341a | |||
| 68e3dace27 | |||
| 7af524a834 | |||
| 3ec61a78cf | |||
| 7f08fb14d1 | |||
| 867da7b94c | |||
| 76e1abd7e1 | |||
| 48fe81b58f | |||
| 596b8c5705 | |||
| 22df281316 | |||
| 5755e6db32 | |||
| bd38317ba5 | |||
| adbc358dd5 | |||
| 21b96e17a7 | |||
| d2be88590f | |||
| 873856ae98 | |||
| 4cbbda7fab | |||
| 63a4a98384 | |||
| 060f1f63ca | |||
| 7cee30ecb8 | |||
| a035d196f0 |
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Keep links in generated Markdown usable outside the source page.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Handle optional emoji and icon values when rendering tags.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Fade the bottom of collapsed code blocks so readers can tell there is more code, matching the editor.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Answer Assistant questions with medium reasoning instead of low, matching AI search.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Bump Next.js to 16.4.6 and OpenNext (Cloudflare 1.20.17, AWS 4.1.16), keeping the dev-mode OOM patch.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Bump `@opennextjs/aws` to 4.2.0 and `@opennextjs/cloudflare` to 1.20.18.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Fix horizontal page scroll caused by card carousels bleeding past the viewport.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": minor
|
||||
---
|
||||
|
||||
Let visitors choose their country in a country picker, overriding the detected one, on sites that enable it and declare regions. Countries are grouped by the site's regions, then under "Other".
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Strip the trailing slash from the API URL used by browser site search.
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
"@gitbook/embed": minor
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Emit an `escape` event from the Docs Embed when Escape is pressed inside it and nothing in the embed used it, so the host can close its own panel.
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
"@gitbook/embed": minor
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Use the site's suggested questions when the embedded Assistant receives an empty or omitted list, including from older SDKs.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Reduce the wait after typing in site search to 100 ms.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Fix the table of contents keeping published pages busy in older Chrome versions such as Chrome 130.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Fix `'use cache'` entries never being stored in or read from R2 and the regional cache on Cloudflare.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Remove duplicated declarations from the global stylesheet.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"@gitbook/icons": minor
|
||||
---
|
||||
|
||||
Add a `@gitbook/icons/validateIconName` entry that validates icon names without loading the icon labels and search terms.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Keep inline code and highlighted text readable when a paragraph crosses the bottom edge of a background page cover.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Keep published pages available when an integration block needs its connection or settings checked.
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
"@gitbook/icons": patch
|
||||
---
|
||||
|
||||
Add a skip link, keyboard navigation between content tabs, focusable table of contents toggles, and hide decorative icons from assistive technologies.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Reduce memory and CPU use of the OpenNext workers: minify the middleware, resolve the site context once per request, cache parsed OpenAPI descriptions across a spec, drop the redis client and the unused force-revalidate route from the server bundle.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Load the OpenAPI stylesheet only on pages with OpenAPI blocks.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Render the llms.txt directive as the first element in the page body so agents find it before the navigation.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Challenge MCP clients to authorize again when a visitor-auth site rejects their bearer token.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Limit the MCP `searchDocumentation` tool to one language: the one the client passes in the new optional `language` argument, or else the language of the site variant the MCP endpoint is served from.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Flush insights events when the page is hidden, preload the search index at low priority and prioritize the dark page cover on dark-default sites.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"@gitbook/react-openapi": patch
|
||||
---
|
||||
|
||||
Copy the current spec's server in OpenAPI endpoint URLs instead of a server kept from a previously visited page.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Publish an OpenSearch description on every site so browsers can offer its search from the address bar.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Show H3 headings in the page outline.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": minor
|
||||
---
|
||||
|
||||
Open a link in the same or a new tab when its author chose one, instead of the site-wide external links setting.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Use a permanent 308 redirect with a bounded Cache-Control header for trailing-slash GET and HEAD requests.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Advertise the public URL in the MCP OAuth metadata of sites served from a custom subdirectory, so MCP clients accept the connection.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Fix MCP sign-in showing "This authorization link has expired" after login on sites served from a custom subdirectory.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'gitbook': patch
|
||||
---
|
||||
|
||||
Respect disabled change request previews on published sites.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Fix the search button accessible name, hoverable link previews, IME-safe Enter on Safari, cookie banner semantics, active outline item announcement and textarea shrinking.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Send change request and revision links to the site preview, where GitBook members can sign in, when a site turns off public change request previews.
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
"@gitbook/embed": patch
|
||||
---
|
||||
|
||||
Respect reduced motion for enter and exit animations, keep the header separator and input focus visible in forced colors mode, and size mobile surfaces with dynamic viewport units.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Send only the site origin as referrer to third parties, and only let the embedding page open the embed messaging channel.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Remove the ChatGPT-specific plain text response for Markdown and llms.txt routes; these now always serve `text/markdown`.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Send site searches straight to the search API when the site hands out a search pass, and use the site's search route when it does not or when the API refuses a search.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Send each search once on sites without a top header, and make search work between 768 and 1023 px wide.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Show loading rows shaped like search results while search waits for the server.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Show search results with one-line breadcrumbs and no icons or shortcut hints, and select the result under the mouse.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Stop caching site search results in the framework cache, so every search reaches the API.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Show one server-ordered search list and open its top result on Enter.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Load the data of the page actions menu from the menu itself, so it can be cached apart from the page body.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Coalesce typing-prefix search_type_query events and skip single-character ASCII queries before flushing insights batches.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Follow the API's cache lifetime for site data, so a site preview shows layout changes soon after they are saved.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Render small cards in a responsive four-column grid and carousel.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gitbook/react-openapi": patch
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Enforce `api.TranslationLanguage` parity in site UI translations and support `fr-ca`, `es-mx`, and `es-419` locales in OpenAPI blocks.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Ignore tag category references when displaying assigned tags and update filters.
|
||||
@@ -7,8 +7,8 @@
|
||||
"devDependencies": {
|
||||
"@changesets/cli": "^2.31.1",
|
||||
"oxfmt": "^0.62.0",
|
||||
"oxlint": "^1.93.0",
|
||||
"turbo": "^2.11.11",
|
||||
"oxlint": "^1.95.0",
|
||||
"turbo": "^2.11.13",
|
||||
"vercel": "50.37.3",
|
||||
},
|
||||
},
|
||||
@@ -49,7 +49,7 @@
|
||||
},
|
||||
"packages/embed": {
|
||||
"name": "@gitbook/embed",
|
||||
"version": "0.7.0",
|
||||
"version": "0.8.0",
|
||||
"dependencies": {
|
||||
"@gitbook/api": "catalog:",
|
||||
"bidc": "catalog:",
|
||||
@@ -109,7 +109,7 @@
|
||||
},
|
||||
"packages/gitbook": {
|
||||
"name": "gitbook",
|
||||
"version": "0.28.2",
|
||||
"version": "0.29.0",
|
||||
"dependencies": {
|
||||
"@base-ui/react": "catalog:",
|
||||
"@cloudflare/workers-types": "^4.20251011.0",
|
||||
@@ -127,9 +127,9 @@
|
||||
"@gitbook/react-math": "workspace:*",
|
||||
"@gitbook/react-openapi": "workspace:*",
|
||||
"@mermaid-js/mermaid-zenuml": "^0.2.2",
|
||||
"@modelcontextprotocol/sdk": "1.17.5",
|
||||
"@opennextjs/aws": "4.2.0",
|
||||
"@opennextjs/cloudflare": "1.20.18",
|
||||
"@modelcontextprotocol/sdk": "1.26.0",
|
||||
"@opennextjs/aws": "4.2.1",
|
||||
"@opennextjs/cloudflare": "1.20.19",
|
||||
"@panzoom/panzoom": "^4.6.1",
|
||||
"@sindresorhus/fnv1a": "^3.1.0",
|
||||
"@tailwindcss/container-queries": "^0.1.1",
|
||||
@@ -148,7 +148,7 @@
|
||||
"jsontoxml": "^1.0.1",
|
||||
"jwt-decode": "^4.0.0",
|
||||
"leven": "^4.1.0",
|
||||
"mcp-handler": "^1.0.2",
|
||||
"mcp-handler": "^1.1.0",
|
||||
"mdast-util-from-markdown": "^2.0.2",
|
||||
"mdast-util-frontmatter": "^2.0.1",
|
||||
"mdast-util-gfm": "^3.1.0",
|
||||
@@ -190,7 +190,7 @@
|
||||
"url-join": "^5.0.0",
|
||||
"usehooks-ts": "catalog:",
|
||||
"warn-once": "^0.1.1",
|
||||
"zod": "^3",
|
||||
"zod": "^3.25",
|
||||
"zod-to-json-schema": "^3.25.1",
|
||||
"zustand": "^5.0.3",
|
||||
},
|
||||
@@ -228,7 +228,7 @@
|
||||
},
|
||||
"packages/icons": {
|
||||
"name": "@gitbook/icons",
|
||||
"version": "0.5.0",
|
||||
"version": "0.6.0",
|
||||
"bin": {
|
||||
"gitbook-icons": "./bin/gitbook-icons.js",
|
||||
},
|
||||
@@ -266,7 +266,7 @@
|
||||
},
|
||||
"packages/react-contentkit": {
|
||||
"name": "@gitbook/react-contentkit",
|
||||
"version": "0.7.18",
|
||||
"version": "0.7.19",
|
||||
"dependencies": {
|
||||
"@gitbook/api": "catalog:",
|
||||
"@gitbook/icons": "workspace:*",
|
||||
@@ -309,7 +309,7 @@
|
||||
},
|
||||
"packages/react-openapi": {
|
||||
"name": "@gitbook/react-openapi",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"dependencies": {
|
||||
"@base-ui/react": "catalog:",
|
||||
"@gitbook/expr": "workspace:*",
|
||||
@@ -357,7 +357,7 @@
|
||||
},
|
||||
"catalog": {
|
||||
"@base-ui/react": "^1.7.0",
|
||||
"@gitbook/api": "0.211.0",
|
||||
"@gitbook/api": "0.216.0",
|
||||
"@scalar/api-client-react": "^1.3.46",
|
||||
"@tsconfig/node20": "^20.1.6",
|
||||
"@tsconfig/strictest": "^2.0.6",
|
||||
@@ -725,7 +725,7 @@
|
||||
|
||||
"@fortawesome/fontawesome-svg-core": ["@fortawesome/fontawesome-svg-core@7.2.0", "", { "dependencies": { "@fortawesome/fontawesome-common-types": "7.2.0" } }, "sha512-6639htZMjEkwskf3J+e6/iar+4cTNM9qhoWuRfj9F3eJD6r7iCzV1SWnQr2Mdv0QT0suuqU8BoJCZUyCtP9R4Q=="],
|
||||
|
||||
"@gitbook/api": ["@gitbook/api@0.211.0", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-G+rY2m7ZvyR1RA4oilarzrNDABDkYhARoIyfNCE5mYqZQgpgsLShn3rGgzTudO2iqwt/5iK6RcJc2enfj+37Jg=="],
|
||||
"@gitbook/api": ["@gitbook/api@0.216.0", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-AYByJnI+cZKYGBzxW2SH/lQTogOiRo8xpDFRrQJ6570UlJ9pOrewGs75EeMGWguvU5jO7DNt9thBarr91KPhUQ=="],
|
||||
|
||||
"@gitbook/browser-types": ["@gitbook/browser-types@workspace:packages/browser-types"],
|
||||
|
||||
@@ -759,6 +759,8 @@
|
||||
|
||||
"@headlessui/vue": ["@headlessui/vue@1.7.23", "", { "dependencies": { "@tanstack/vue-virtual": "^3.0.0-beta.60" }, "peerDependencies": { "vue": "^3.2.0" } }, "sha512-JzdCNqurrtuu0YW6QaDtR2PIYCKPUWq28csDyMvN4zmGccmE7lz40Is6hc3LA4HFeCI7sekZ/PQMTNmn9I/4Wg=="],
|
||||
|
||||
"@hono/node-server": ["@hono/node-server@1.19.19", "", { "peerDependencies": { "hono": "^4" } }, "sha512-Fy9R7PACOzHU9LDpfnuzVyuVYevKQRcEG2mZhmfc+DRdmayEd3RVfa2XOt2IgGcPNgA77Yk63KBszepcMFK5Ng=="],
|
||||
|
||||
"@hyperjump/browser": ["@hyperjump/browser@1.1.6", "", { "dependencies": { "@hyperjump/json-pointer": "^1.1.0", "@hyperjump/uri": "^1.2.0", "content-type": "^1.0.5", "just-curry-it": "^5.3.0" } }, "sha512-i27uPV7SxK1GOn7TLTRxTorxchYa5ur9JHgtl6TxZ1MHuyb9ROAnXxEeu4q4H1836Xb7lL2PGPsaa5Jl3p+R6g=="],
|
||||
|
||||
"@hyperjump/json-pointer": ["@hyperjump/json-pointer@1.1.0", "", {}, "sha512-tFCKxMKDKK3VEdtUA3EBOS9GmSOS4mbrTjh9v3RnK10BphDMOb6+bxTh++/ae1AyfHyWb6R54O/iaoAtPMZPCg=="],
|
||||
@@ -843,6 +845,8 @@
|
||||
|
||||
"@isaacs/fs-minipass": ["@isaacs/fs-minipass@4.0.1", "", { "dependencies": { "minipass": "^7.0.4" } }, "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w=="],
|
||||
|
||||
"@isaacs/nonrecursive-glob-match": ["@isaacs/nonrecursive-glob-match@1.1.0", "", {}, "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw=="],
|
||||
|
||||
"@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
|
||||
|
||||
"@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],
|
||||
@@ -885,7 +889,7 @@
|
||||
|
||||
"@mermaid-js/parser": ["@mermaid-js/parser@1.2.1", "", { "dependencies": { "@chevrotain/types": "~11.1.2" } }, "sha512-n12NohV3mrUyUL2o93IgG/ifeW9FTyeJn3zDxkhwa8MJ9Fxg3HQMlA3RiGmD/3UnJvheztkjjQAjA2T4LmUcpw=="],
|
||||
|
||||
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.17.5", "", { "dependencies": { "ajv": "^6.12.6", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.23.8", "zod-to-json-schema": "^3.24.1" } }, "sha512-QakrKIGniGuRVfWBdMsDea/dx1PNE739QJ7gCM41s9q+qaCYTHCdsIBXQVVXry3mfWAiaM9kT22Hyz53Uw8mfg=="],
|
||||
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.26.0", "", { "dependencies": { "@hono/node-server": "^1.19.9", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.2.1", "express-rate-limit": "^8.2.1", "hono": "^4.11.4", "jose": "^6.1.3", "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.25 || ^4.0", "zod-to-json-schema": "^3.25.1" }, "peerDependencies": { "@cfworker/json-schema": "^4.1.1" }, "optionalPeers": ["@cfworker/json-schema"] }, "sha512-Y5RmPncpiDtTXDbLKswIJzTqu2hyBKxTNsgKqKclDbhIgg1wgtf1fRuvxgTnRfcnxtvvgbIEcqUOzZrJ6iSReg=="],
|
||||
|
||||
"@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.0.6", "", { "dependencies": { "@emnapi/core": "^1.5.0", "@emnapi/runtime": "^1.5.0", "@tybys/wasm-util": "^0.10.1" } }, "sha512-DXj75ewm11LIWUk198QSKUTxjyRjsBwk09MuMk5DGK+GDUtyPhhEHOGP/Xwwj3DjQXXkivoBirmOnKrLfc0+9g=="],
|
||||
|
||||
@@ -935,9 +939,9 @@
|
||||
|
||||
"@octokit/types": ["@octokit/types@14.1.0", "", { "dependencies": { "@octokit/openapi-types": "^25.1.0" } }, "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g=="],
|
||||
|
||||
"@opennextjs/aws": ["@opennextjs/aws@4.2.0", "", { "dependencies": { "@ast-grep/napi": "^0.45.3", "@aws-sdk/client-cloudfront": "3.984.0", "@aws-sdk/client-dynamodb": "3.984.0", "@aws-sdk/client-lambda": "3.984.0", "@aws-sdk/client-s3": "3.984.0", "@aws-sdk/client-sqs": "3.984.0", "@node-minify/core": "^10.5.0", "@node-minify/terser": "^10.5.0", "@tsconfig/node18": "^18.2.7", "aws4fetch": "^1.0.20", "chalk": "^5.6.2", "cookie": "^1.1.1", "esbuild": "0.28.2", "express": "^5.2.1", "path-to-regexp": "^6.3.0", "urlpattern-polyfill": "^10.1.0", "yaml": "^2.9.1" }, "peerDependencies": { "diff": "^9.0.0", "next": ">=15.5.29 <16 || >=16.4.5" }, "optionalPeers": ["diff"], "bin": { "open-next": "dist/index.js" } }, "sha512-uWWER/P66CphCM+L0WlN9DSj3LauN/HjfK64V0+Hs+hjzKuQLGII/Q7FhkU1j/BEG4zbjIvkuJorzIyFwVWZiQ=="],
|
||||
"@opennextjs/aws": ["@opennextjs/aws@4.2.1", "", { "dependencies": { "@ast-grep/napi": "^0.45.3", "@aws-sdk/client-cloudfront": "3.984.0", "@aws-sdk/client-dynamodb": "3.984.0", "@aws-sdk/client-lambda": "3.984.0", "@aws-sdk/client-s3": "3.984.0", "@aws-sdk/client-sqs": "3.984.0", "@node-minify/core": "^10.5.0", "@node-minify/terser": "^10.5.0", "@tsconfig/node18": "^18.2.7", "aws4fetch": "^1.0.20", "chalk": "^5.6.2", "cookie": "^1.1.1", "esbuild": "0.28.2", "express": "^5.2.1", "path-to-regexp": "^6.3.0", "urlpattern-polyfill": "^10.1.0", "yaml": "^2.9.1" }, "peerDependencies": { "diff": "^9.0.0", "next": ">=15.5.29 <16 || >=16.4.5" }, "optionalPeers": ["diff"], "bin": { "open-next": "dist/index.js" } }, "sha512-LQAwFWN4/tCxqnosOSIGHQ3SKh43d+sIBy5rwWEw0m6I+Qku7P4FDmfupfZ+MTcdZcs7nG8Rbu0+U6Z6S6ts8g=="],
|
||||
|
||||
"@opennextjs/cloudflare": ["@opennextjs/cloudflare@1.20.18", "", { "dependencies": { "@ast-grep/napi": "^0.45.3", "@dotenvx/dotenvx": "^2.33.0", "@opennextjs/aws": "4.2.0", "ci-info": "^4.2.0", "cloudflare": "^4.4.1", "comment-json": "^4.5.1", "enquirer": "^2.4.1", "esbuild": "0.28.2", "glob": "^13.0.6", "resolve.exports": "^2.0.4", "ts-tqdm": "^0.8.6", "yargs": "^18.2.0" }, "peerDependencies": { "next": ">=15.5.29 <16 || >=16.4.5", "rclone.js": "^0.6.6", "wrangler": "^4.148.0" }, "optionalPeers": ["rclone.js"], "bin": { "opennextjs-cloudflare": "dist/cli/index.js" } }, "sha512-6hy3RJHP7+OMxUxYLRCgzQipuJJ1n7JowszTHn/i2KGxPXccQuvs42YI5ZchV7Fd0JGrtIDj0lhgvw+dp7yMrg=="],
|
||||
"@opennextjs/cloudflare": ["@opennextjs/cloudflare@1.20.19", "", { "dependencies": { "@ast-grep/napi": "^0.45.3", "@dotenvx/dotenvx": "^2.33.0", "@opennextjs/aws": "4.2.1", "ci-info": "^4.2.0", "cloudflare": "^4.4.1", "comment-json": "^4.5.1", "enquirer": "^2.4.1", "esbuild": "0.28.2", "glob": "^14.0.6", "resolve.exports": "^2.0.4", "ts-tqdm": "^0.8.6", "yargs": "^18.2.0" }, "peerDependencies": { "next": ">=15.5.29 <16 || >=16.4.5", "rclone.js": "^0.6.6", "wrangler": "^4.148.0" }, "optionalPeers": ["rclone.js"], "bin": { "opennextjs-cloudflare": "dist/cli/index.js" } }, "sha512-OnKUZ+Ljaj9E9L/pk5Ove2kCmIUEk4hPmgc+YLE1gIZyg/isir+PKUlRIviV88N550/GA4yugcPN7KEv0es72A=="],
|
||||
|
||||
"@opentelemetry/api": ["@opentelemetry/api@1.9.0", "", {}, "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg=="],
|
||||
|
||||
@@ -1021,43 +1025,43 @@
|
||||
|
||||
"@oxfmt/binding-win32-x64-msvc": ["@oxfmt/binding-win32-x64-msvc@0.62.0", "", { "os": "win32", "cpu": "x64" }, "sha512-dlI5SY7XYQCiCBafntWagCR6HcAJB/NpsLtdlPx8x08+Osz8Ok1HHz1GZuusegCe/VoJ6pAnF5a4pd5OZAq7qQ=="],
|
||||
|
||||
"@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.93.0", "", { "os": "android", "cpu": "arm" }, "sha512-KKw70pbD5Pvq3G2lJ+WQ71XPMjCmg37rkSe2+mDqCRP3PoTSdDMuEi4UOnE8JBtyNM7bek61EC2s0Jt7S7u+Sg=="],
|
||||
"@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.95.0", "", { "os": "android", "cpu": "arm" }, "sha512-hJna6w3COWJjfMPxomjZL82klTdrITm56PEpCsfO/xMkzQw/fNtJWauQ/YEwQqVttj0L5vDIa8rCcuhfAE3L4w=="],
|
||||
|
||||
"@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.93.0", "", { "os": "android", "cpu": "arm64" }, "sha512-fvr1fTUZGelwRxKDt64pf28aL1WaWgviwz3X+E/FcRYvrlEahH0NECRz/c1SY+K+KWmZk5uAf6h1kQnyBkp/2A=="],
|
||||
"@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.95.0", "", { "os": "android", "cpu": "arm64" }, "sha512-uAIGZQ9uJVUeogeWOSboI3F7twOuM4mNuZcHXD9+LdYLcWp7J6kbtRUXJ6GVqcs5E0Cjb4emmSBK9FNrkGuhqQ=="],
|
||||
|
||||
"@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.93.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-VdvSN9JRf4Es6ZzoAdvEeh8tgKdw8L4H82WmA8MMPVfPdZGCwE/nI27Z1HrRHYQhPxOh4kmnxQEioSUFrOvDaw=="],
|
||||
"@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.95.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Ogh1vfHO5vshKRop/He46r+WqC5BTqonYwhB4fp9e2gvOFvg1Xi6XsHTuM/lBSH85ZcaG+DS99EMAy9GcwDong=="],
|
||||
|
||||
"@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.93.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-QR1V890Ml0YGRG0F/iV0K9igG+pOhe+VWd+aZnxY849rRHZf3F2gEoQks5+GVHf105X9Mh/6HdShTP5juekG2g=="],
|
||||
"@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.95.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-kTrE1xfpQUBMMS50Ws6KY92N8OsJ8LE6JqxKqkHEY3KdsmguQ6kKVGSjzyt1HLwsSi0fQCvNRog8YRBBovD1AA=="],
|
||||
|
||||
"@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.93.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-jDfIbi30zZaKi+rTvig3sge+Xhi8pFFSgHxb0jzovc4qh8ETm/irKV9c7N/JsuwnYc5sbvf4IC8w1vQQ0IL+BA=="],
|
||||
"@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.95.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-ho7E1VCInK0VnpneRaI1BEpe1ceJE8VjxP2O9THWdReV6bth1Q4+80kYVGGK47mHRyZ2NGztQZ2dWRo6j1lavA=="],
|
||||
|
||||
"@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.93.0", "", { "os": "linux", "cpu": "arm" }, "sha512-qtxZ714ND/koFgVH00QgxlzZiIbRPmguaPhnHRU5DFFtrtEdOrSnZD4U/H2AzXrXkZ59eQbMBnJwbum5XohrIQ=="],
|
||||
"@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.95.0", "", { "os": "linux", "cpu": "arm" }, "sha512-94afnouMHcnHr/OtRh07gG5LehC9M0GjiSoik3xxTtrmq6cWxXOTAhYlBtxa67u/GlycbnHlDoGJfYlTshcr/w=="],
|
||||
|
||||
"@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.93.0", "", { "os": "linux", "cpu": "arm" }, "sha512-5pJ9NjMvH7WMUqXB6bTTOSemBm39w2cod27Hu3+Yom/GhbTeNXlYcpDx1o4CgBP6fhp0YHG66TNdVaUm6sHjsA=="],
|
||||
"@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.95.0", "", { "os": "linux", "cpu": "arm" }, "sha512-LEeclqV1/fafxPgJWN21Bri6HBBBZpEFluq/ZH7Avvu9HjJh/XOn6WwogJqX9X7pG2aITZ2nRH39+sUKEQt2WA=="],
|
||||
|
||||
"@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.93.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-pRf+7jtbt2fHE23SX7qBxRgnBZicUgsoCK1PVIjnOk+t3a6UBkpt/GrKI99WlxsKUxftz/5nv/kfKvScmYywkw=="],
|
||||
"@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.95.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-EpXpEQKmgtkvc6RyU84LM1e3CrVDWQkgghVzf1hMGgwjBzgKAJ/QntHgnzmu5cNeLBfa7GPCY+gGXxEll8Adcg=="],
|
||||
|
||||
"@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.93.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-zM8Fd/K8sqGvsBcJBZ3oVZ3ctGWbszA08IaGt5gFFF5RcunppAI/ZnAXbouABvnWeJ//S44KKlfPZnDDbeiphg=="],
|
||||
"@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.95.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-+96Md8c2BAgFp8nWHrUrpqba87DoU+HVJYIun6qA+QKFoeNd3xAWq1JYE6da4nVli9GgwRpfncfRePcgmQQaIQ=="],
|
||||
|
||||
"@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.93.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-7qKCnvhZKDXJG2pdbLazd2hw4FxjJHbZOFrrbzyy5PdHfPLH9vnNUa1le01A8uItZuYKPBPncH+HCoEiFT4SgA=="],
|
||||
"@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.95.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-6yG99vsXct3Uv536w6Z1s03w2makRKnE0q3eJSmf+W/IwPmO56QLk8XUA6ebu/R5peCbJ67HmcWqACH+kg/6Bg=="],
|
||||
|
||||
"@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.93.0", "", { "os": "linux", "cpu": "none" }, "sha512-2pgulxC6G8V5wE750NJE/fRkf9aO6i6yoj10wyaR2EdiNtan4OemsOtsQ0ZTXGdY8Q3IoTmlND3GYvjJsvikYg=="],
|
||||
"@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.95.0", "", { "os": "linux", "cpu": "none" }, "sha512-Eir0Z4ldh55AsQUqVDlLF4Pw3lSFXIdAl8ZNgU8tp/gTwT9JVCzWY0o3+ys9pCcpTN0vCqBwwuQfAUxzbIgvcQ=="],
|
||||
|
||||
"@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.93.0", "", { "os": "linux", "cpu": "none" }, "sha512-yWsn6Gg2PnGG5jlyDz5+pHGiMTMiy4adaa4WRMzDgzB8efaShk1JMmTHIBSVLQMh0tYXRs4CN5uJCO79r4Mi4g=="],
|
||||
"@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.95.0", "", { "os": "linux", "cpu": "none" }, "sha512-ceRx+K2WJ7C3tIv+XjZS28oAoZ7DY29ZcWChPdXG5M100phI72FRDYwGRlWZEeDfmkROnarLTMKnnrQAtsC42Q=="],
|
||||
|
||||
"@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.93.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-WCn5plwp/ezS2RDPQKp0/EXEVRr9/dDexUdRKmsMFqzNM5xBSZ1wbsi3PuMk1VfkMRnI5BuazCsziCWMXRDOlw=="],
|
||||
"@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.95.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-WbD3sM08ZDk2QE6060wK/omihQKbRm+LVzKIg4W5zNTbEhYJChciqX49UZuqW59RGF+wBUxzAup7egUIESTjUA=="],
|
||||
|
||||
"@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.93.0", "", { "os": "linux", "cpu": "x64" }, "sha512-F2CGjb9LAkzH+IYTZSzd1klQ1vk5z6Utjax64WeLByCkYXbVDbsun+Oy2hLfW2MDSKCvW+jwy/9ld0EPgdeu+A=="],
|
||||
"@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.95.0", "", { "os": "linux", "cpu": "x64" }, "sha512-F4ST2ZkFIiLL9OKyRCyC0KQQpwM5WIv0GTcMiZuYVa6xSRJHR05iVRqst+arOVudEPkhP47EnbuoC9UfVCYDyg=="],
|
||||
|
||||
"@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.93.0", "", { "os": "linux", "cpu": "x64" }, "sha512-plf5DE2objcG8Tf7mXRuRa8tT8rzDkpjqXQtKoGsKHWkpgsialbON1+cCtoSEUTVbQUjXvuAm8vV9+3rR0yCBw=="],
|
||||
"@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.95.0", "", { "os": "linux", "cpu": "x64" }, "sha512-hEpYDZatpuxLrWlTlkwhHZ1e8QkL02aFS55BPQX1XA9iOd+yUEADGFF1iY6z+xkw6RkpzXFrtnDFe4/JNOLSRA=="],
|
||||
|
||||
"@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.93.0", "", { "os": "none", "cpu": "arm64" }, "sha512-Kp2yJrKvoTe9FfKdO/xwLNUbs2bYTMKx0+aoQD1s0h/Tx0kSgtHSdGmrk8tTKdluosjFbo88qYRIaNIX43AfFw=="],
|
||||
"@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.95.0", "", { "os": "none", "cpu": "arm64" }, "sha512-+JwIH9/uLgQXfxBvOAKzvp616m5i0fBR5ELEBHm5D+++fStBZ+74T7YW4xBpX13zNU2blr52Swoe3GTF1JyqRg=="],
|
||||
|
||||
"@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.93.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-vigjcHCFsR6KjnWTEVfaCxcMYapEuaK9FZa1MpewwQ1S+Xud3v0okfkj1RySsD6RF1NRHIjSlQSalTnKIaj3nA=="],
|
||||
"@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.95.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-pzJgcp3WkOSchukg5y5pn5mVIQ6P83RDI79YJ9gQZKed1pOgjhrmlc5AMizjuq6/P8VifhxzBsMqYI6LLjO2TA=="],
|
||||
|
||||
"@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.93.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-0Ot3BEe/AAr2/uQhe55r8CmPlperYk2mQmxdutOru7oU0kir6IiEVHb1TG3GORRlfra97lPHVDLhgmihiKzLrg=="],
|
||||
"@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.95.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-54MeQvLRXkJqF1nEFs7wb73SrnurZJQy9fVK4NdEwumNKVwyUUxpGHhvfDMIY2NqJZS7kz0pY9uVty5664Gt1Q=="],
|
||||
|
||||
"@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.93.0", "", { "os": "win32", "cpu": "x64" }, "sha512-ZzzIIVs/Qkm8trUWYKF0OYub5ALlv50/3gsEZbKAvWgz+yNJX6uRmQ8ySPXU2Q0/Y9m4JCOjhpmC8XUYbPHX5Q=="],
|
||||
"@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.95.0", "", { "os": "win32", "cpu": "x64" }, "sha512-I/Fn+Fed1qzb1k2uRjMe2VRtRN1+ZObyU+E76B6v/Ul3Z6JdeAW5zBHSe0n5d8a0ZyU4iorzVy0Rw9LYgo3MSQ=="],
|
||||
|
||||
"@panzoom/panzoom": ["@panzoom/panzoom@4.6.1", "", {}, "sha512-ogf/KhHHjj+DYAvHfaf3TXMQ8OE36pJtKpabLlx1OmpjcgtpCvkUoCiNONA8kuVRPGJdLiqMf0n8LRFXj1OyuA=="],
|
||||
|
||||
@@ -1363,17 +1367,17 @@
|
||||
|
||||
"@tsconfig/strictest": ["@tsconfig/strictest@2.0.6", "", {}, "sha512-tPOhmDhIUcDjvpDDYyiUdssP84Eqm7n5KxJe5J3/g+s6xoDIPAf+SIn06dhw7VkhxIvLOnhDDrX7tsqMHNEhDg=="],
|
||||
|
||||
"@turbo/darwin-64": ["@turbo/darwin-64@2.11.11", "", { "os": "darwin", "cpu": "x64" }, "sha512-HMMeUIEAsmyIbSYn1ySvF/4gGMa0joiTMq4dQDuloIAnOpbtFT3JEiVsYnASdTWDXvplbRbZlqjU1EBeSR9G1A=="],
|
||||
"@turbo/darwin-64": ["@turbo/darwin-64@2.11.13", "", { "os": "darwin", "cpu": "x64" }, "sha512-5IT29i4j55E5O66+la7L8Y46ut7dFaNZqrgUIYYNtcpMt9Ql7aYnSQb/6tZ+prE2AfX1RBCAtRJE41txS2rG3w=="],
|
||||
|
||||
"@turbo/darwin-arm64": ["@turbo/darwin-arm64@2.11.11", "", { "os": "darwin", "cpu": "arm64" }, "sha512-+8iySNgqYWY6PZYUQzYu6zn0C04z2OEq1vQ6oMGsJ9sxN6wOpg1gzi1AJ5VKDHviWvMUjhqng51hTEQZOuiqYQ=="],
|
||||
"@turbo/darwin-arm64": ["@turbo/darwin-arm64@2.11.13", "", { "os": "darwin", "cpu": "arm64" }, "sha512-YFJPayVNlhSPRIZSeERiZYGKKqPs6N6qGhim8J3GtBdv5ZjUNF1ixfnAAyCVTqFEnMSkn1W7F0Y07kca8EjWsg=="],
|
||||
|
||||
"@turbo/linux-64": ["@turbo/linux-64@2.11.11", "", { "os": [ "linux", "android", ], "cpu": "x64" }, "sha512-uImTKFYCFKsoFxjaXeJXlMPv4uU3OIIDjyzoIwYVqOtu9LnCZ/5/fzu/WP6+G9YfwGAPRplTHkKFfcI5t97RGw=="],
|
||||
"@turbo/linux-64": ["@turbo/linux-64@2.11.13", "", { "os": [ "linux", "android", ], "cpu": "x64" }, "sha512-R5RIQflV4ffBDNuUwjmtmzIr6Y2UeyeeHTtultYF7cnFn3tG1RZ4GRBlpjUhHB6JxuR7l1B450hlbzdtlD3ghg=="],
|
||||
|
||||
"@turbo/linux-arm64": ["@turbo/linux-arm64@2.11.11", "", { "os": [ "linux", "android", ], "cpu": "arm64" }, "sha512-Y7xffSVfyyYRGzNy6PLdrFL4xXN6iTuR3W0SyJvH/yd3d4defA6dansZwJpPDVnIpD8a2Qn256DwY/Qin4Ip4g=="],
|
||||
"@turbo/linux-arm64": ["@turbo/linux-arm64@2.11.13", "", { "os": [ "linux", "android", ], "cpu": "arm64" }, "sha512-AwV8pVO/cH/lwx1B7SGfzUA/3e6vmPaygFp9NOSRESs6t3Wr63zrBuXlluDogAOIxIMlHDB2ZbBueDsBnQxh2Q=="],
|
||||
|
||||
"@turbo/windows-64": ["@turbo/windows-64@2.11.11", "", { "os": "win32", "cpu": "x64" }, "sha512-e2WqNtkPGo3QDwNNwwBo89Dx3PtSJ9Wp9QuRNzn80rrRnSHB+1mfBMZTpdHjA8/G/sG9rl76TdWdpgVsimjRdg=="],
|
||||
"@turbo/windows-64": ["@turbo/windows-64@2.11.13", "", { "os": "win32", "cpu": "x64" }, "sha512-PGXYTaFaN3FZloe4RffNGJmfB+TIWlqQgKK1PVyKwPN+PUzxGa+byxHBWFHredMaVbnUc6L/F6/QR4iHyM/wug=="],
|
||||
|
||||
"@turbo/windows-arm64": ["@turbo/windows-arm64@2.11.11", "", { "os": "win32", "cpu": "arm64" }, "sha512-LURivfmgv34Osm8NR1gZGx4vdlux9KAgRM+FoooXNG0838ff0+akWZ76iPSke0NS2rsf7Z4Gw+YSaygzNTZuRA=="],
|
||||
"@turbo/windows-arm64": ["@turbo/windows-arm64@2.11.13", "", { "os": "win32", "cpu": "arm64" }, "sha512-YdRHWstBUHWt/eChOEM4f9LT0dPiWK5SNgtV77bLCr3JNke9M5E7metqelNYj+tXe36dH0BZrk2CMnFlWqHKng=="],
|
||||
|
||||
"@tusbar/cache-control": ["@tusbar/cache-control@1.0.2", "", {}, "sha512-PXfjYTYBVvMPYCLDWj+xIOA9ITFbbhWCHzLcqUCJ5TPGm4JO4cxpGb7x3K8Q1K1ADgNgfBxLsDcTMVRydtZB9A=="],
|
||||
|
||||
@@ -1615,7 +1619,7 @@
|
||||
|
||||
"ai": ["ai@4.3.0", "", { "dependencies": { "@ai-sdk/provider": "1.1.0", "@ai-sdk/provider-utils": "2.2.4", "@ai-sdk/react": "1.2.6", "@ai-sdk/ui-utils": "1.2.5", "@opentelemetry/api": "1.9.0", "jsondiffpatch": "0.6.0" }, "peerDependencies": { "react": "^18 || ^19 || ^19.0.0-rc", "zod": "^3.23.8" }, "optionalPeers": ["react"] }, "sha512-PxyQYKhWaU3LiZEpeKRaekVonZIbWdKAwgnqm0CSAxy1MFufmYEC5SM5Mc9uiK2DoHcbAL3d1jyaQ2fSDAJL8w=="],
|
||||
|
||||
"ajv": ["ajv@6.12.6", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="],
|
||||
"ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="],
|
||||
|
||||
"ajv-draft-04": ["ajv-draft-04@1.0.0", "", { "peerDependencies": { "ajv": "^8.5.0" }, "optionalPeers": ["ajv"] }, "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw=="],
|
||||
|
||||
@@ -1643,8 +1647,6 @@
|
||||
|
||||
"array-differ": ["array-differ@3.0.0", "", {}, "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg=="],
|
||||
|
||||
"array-flatten": ["array-flatten@3.0.0", "", {}, "sha512-zPMVc3ZYlGLNk4mpK1NzP2wg0ml9t7fUgDsayR5Y5rSzxQilzR9FGu/EH2jQOcKSAeAfWeylyW8juy3OkWRvNA=="],
|
||||
|
||||
"array-timsort": ["array-timsort@1.0.3", "", {}, "sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ=="],
|
||||
|
||||
"array-union": ["array-union@2.1.0", "", {}, "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw=="],
|
||||
@@ -1695,7 +1697,7 @@
|
||||
|
||||
"blake3-wasm": ["blake3-wasm@2.1.5", "", {}, "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g=="],
|
||||
|
||||
"body-parser": ["body-parser@2.0.2", "", { "dependencies": { "bytes": "3.1.2", "content-type": "~1.0.5", "debug": "3.1.0", "destroy": "1.2.0", "http-errors": "2.0.0", "iconv-lite": "0.5.2", "on-finished": "2.4.1", "qs": "6.13.0", "raw-body": "^3.0.0", "type-is": "~1.6.18" } }, "sha512-SNMk0OONlQ01uk8EPeiBvTW7W4ovpL5b1O3t1sjpPgfxOQ6BqQJ6XjxinDPR79Z6HdcD5zBBwr5ssiTlgdNztQ=="],
|
||||
"body-parser": ["body-parser@2.2.1", "", { "dependencies": { "bytes": "^3.1.2", "content-type": "^1.0.5", "debug": "^4.4.3", "http-errors": "^2.0.0", "iconv-lite": "^0.7.0", "on-finished": "^2.4.1", "qs": "^6.14.0", "raw-body": "^3.0.1", "type-is": "^2.0.1" } }, "sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw=="],
|
||||
|
||||
"boolbase": ["boolbase@1.0.0", "", {}, "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="],
|
||||
|
||||
@@ -1723,8 +1725,6 @@
|
||||
|
||||
"cacheable": ["cacheable@1.8.9", "", { "dependencies": { "hookified": "^1.7.1", "keyv": "^5.3.1" } }, "sha512-FicwAUyWnrtnd4QqYAoRlNs44/a1jTL7XDKqm5gJ90wz1DQPlC7U2Rd1Tydpv+E7WAr4sQHuw8Q8M3nZMAyecQ=="],
|
||||
|
||||
"call-bind": ["call-bind@1.0.7", "", { "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", "set-function-length": "^1.2.1" } }, "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w=="],
|
||||
|
||||
"call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
|
||||
|
||||
"call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="],
|
||||
@@ -1923,8 +1923,6 @@
|
||||
|
||||
"deepmerge": ["deepmerge@4.3.1", "", {}, "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="],
|
||||
|
||||
"define-data-property": ["define-data-property@1.1.4", "", { "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", "gopd": "^1.0.1" } }, "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A=="],
|
||||
|
||||
"defu": ["defu@6.1.4", "", {}, "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg=="],
|
||||
|
||||
"degenerator": ["degenerator@5.0.1", "", { "dependencies": { "ast-types": "^0.13.4", "escodegen": "^2.1.0", "esprima": "^4.0.1" } }, "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ=="],
|
||||
@@ -2011,7 +2009,7 @@
|
||||
|
||||
"error-stack-parser-es": ["error-stack-parser-es@1.0.5", "", {}, "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA=="],
|
||||
|
||||
"es-define-property": ["es-define-property@1.0.0", "", { "dependencies": { "get-intrinsic": "^1.2.4" } }, "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ=="],
|
||||
"es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
|
||||
|
||||
"es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],
|
||||
|
||||
@@ -2069,9 +2067,9 @@
|
||||
|
||||
"execa": ["execa@3.2.0", "", { "dependencies": { "cross-spawn": "^7.0.0", "get-stream": "^5.0.0", "human-signals": "^1.1.1", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", "npm-run-path": "^4.0.0", "onetime": "^5.1.0", "p-finally": "^2.0.0", "signal-exit": "^3.0.2", "strip-final-newline": "^2.0.0" } }, "sha512-kJJfVbI/lZE1PZYDI5VPxp8zXPO9rtxOkhpZ0jMKha56AI9y2gGVC6bkukStQf0ka5Rh15BA5m7cCCH4jmHqkw=="],
|
||||
|
||||
"express": ["express@5.0.1", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.0.1", "content-disposition": "^1.0.0", "content-type": "~1.0.4", "cookie": "0.7.1", "cookie-signature": "^1.2.1", "debug": "4.3.6", "depd": "2.0.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "finalhandler": "^2.0.0", "fresh": "2.0.0", "http-errors": "2.0.0", "merge-descriptors": "^2.0.0", "methods": "~1.1.2", "mime-types": "^3.0.0", "on-finished": "2.4.1", "once": "1.4.0", "parseurl": "~1.3.3", "proxy-addr": "~2.0.7", "qs": "6.13.0", "range-parser": "~1.2.1", "router": "^2.0.0", "safe-buffer": "5.2.1", "send": "^1.1.0", "serve-static": "^2.1.0", "setprototypeof": "1.2.0", "statuses": "2.0.1", "type-is": "^2.0.0", "utils-merge": "1.0.1", "vary": "~1.1.2" } }, "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ=="],
|
||||
"express": ["express@5.2.1", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.7", "qs": "^6.14.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.0.1", "vary": "^1.1.2" } }, "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw=="],
|
||||
|
||||
"express-rate-limit": ["express-rate-limit@7.5.1", "", { "peerDependencies": { "express": ">= 4.11" } }, "sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw=="],
|
||||
"express-rate-limit": ["express-rate-limit@8.7.5", "", { "dependencies": { "debug": "^4.4.3", "ip-address": "^10.2.0" }, "peerDependencies": { "express": ">= 4.11" } }, "sha512-wi+v38cx2EqD0JnhE/e74o5tFqKWUOAPFJIgyEiqJ8v2MNpoOAA3kI2hXYOI+YM+HE5yqbdAlVxm2GqOIeYOgA=="],
|
||||
|
||||
"ext": ["ext@1.7.0", "", { "dependencies": { "type": "^2.7.2" } }, "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw=="],
|
||||
|
||||
@@ -2085,8 +2083,6 @@
|
||||
|
||||
"fast-glob": ["fast-glob@3.3.3", "", { "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.8" } }, "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg=="],
|
||||
|
||||
"fast-json-stable-stringify": ["fast-json-stable-stringify@2.1.0", "", {}, "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="],
|
||||
|
||||
"fast-redact": ["fast-redact@3.5.0", "", {}, "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A=="],
|
||||
|
||||
"fast-uri": ["fast-uri@3.0.2", "", {}, "sha512-GR6f0hD7XXyNJa25Tb9BuIdN0tdr+0BMi6/CJPH3wJO1JjNG3n/VsSw38AwRdKZABm8lGbPfakLRkYzx2V9row=="],
|
||||
@@ -2113,7 +2109,7 @@
|
||||
|
||||
"fill-range": ["fill-range@7.1.1", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="],
|
||||
|
||||
"finalhandler": ["finalhandler@2.0.0", "", { "dependencies": { "debug": "2.6.9", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "on-finished": "2.4.1", "parseurl": "~1.3.3", "statuses": "2.0.1", "unpipe": "~1.0.0" } }, "sha512-MX6Zo2adDViYh+GcxxB1dpO43eypOGUOL12rLCOTMQv/DfIbpSJUy4oQIIZhVZkH9e+bZWKMon0XHFEju16tkQ=="],
|
||||
"finalhandler": ["finalhandler@2.1.1", "", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA=="],
|
||||
|
||||
"find-up": ["find-up@4.1.0", "", { "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" } }, "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="],
|
||||
|
||||
@@ -2155,7 +2151,7 @@
|
||||
|
||||
"get-east-asian-width": ["get-east-asian-width@1.7.0", "", {}, "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q=="],
|
||||
|
||||
"get-intrinsic": ["get-intrinsic@1.2.4", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2", "has-proto": "^1.0.1", "has-symbols": "^1.0.3", "hasown": "^2.0.0" } }, "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ=="],
|
||||
"get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
|
||||
|
||||
"get-own-enumerable-keys": ["get-own-enumerable-keys@1.0.0", "", {}, "sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA=="],
|
||||
|
||||
@@ -2173,7 +2169,7 @@
|
||||
|
||||
"github-slugger": ["github-slugger@2.0.0", "", {}, "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw=="],
|
||||
|
||||
"glob": ["glob@13.0.6", "", { "dependencies": { "minimatch": "^10.2.2", "minipass": "^7.1.3", "path-scurry": "^2.0.2" } }, "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw=="],
|
||||
"glob": ["glob@14.0.6", "", { "dependencies": { "minimatch": "^11.0.5", "minipass": "^7.1.3", "path-scurry": "^3.0.0" } }, "sha512-OwXjVP2svY5EyLY75Vek96C8qK43gqrt4xsZ+qSILdnaEiJPXkd62mcfUSNx/TQErQRdu5uM5kF67sfONragKw=="],
|
||||
|
||||
"glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],
|
||||
|
||||
@@ -2187,7 +2183,7 @@
|
||||
|
||||
"google-font-metadata": ["google-font-metadata@6.0.7", "", { "dependencies": { "@evan/concurrency": "^0.0.3", "@octokit/core": "^6.1.2", "cac": "^6.7.14", "consola": "^3.3.3", "deepmerge": "^4.3.1", "json-stringify-pretty-compact": "^4.0.0", "linkedom": "^0.18.6", "pathe": "^1.1.2", "picocolors": "^1.1.1", "playwright": "^1.49.1", "stylis": "^4.3.4", "zod": "^3.24.1" }, "bin": { "gfm": "dist/cli.mjs" } }, "sha512-Zw+AmoVRZNfQdis1+cYu0Zo6OWk+SQNEDzGKgRjC8nTopghZw2AtfcY6R9MWLR04gsZBkTNYPE8Pahm9i4Z/aA=="],
|
||||
|
||||
"gopd": ["gopd@1.0.1", "", { "dependencies": { "get-intrinsic": "^1.1.3" } }, "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA=="],
|
||||
"gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
|
||||
|
||||
"graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="],
|
||||
|
||||
@@ -2197,11 +2193,7 @@
|
||||
|
||||
"has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="],
|
||||
|
||||
"has-property-descriptors": ["has-property-descriptors@1.0.2", "", { "dependencies": { "es-define-property": "^1.0.0" } }, "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg=="],
|
||||
|
||||
"has-proto": ["has-proto@1.0.3", "", {}, "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q=="],
|
||||
|
||||
"has-symbols": ["has-symbols@1.0.3", "", {}, "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A=="],
|
||||
"has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],
|
||||
|
||||
"hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="],
|
||||
|
||||
@@ -2245,6 +2237,8 @@
|
||||
|
||||
"highlightjs-vue": ["highlightjs-vue@1.0.0", "", {}, "sha512-PDEfEF102G23vHmPhLyPboFCD+BkMGu+GuJe2d9/eH4FsCwvgBpnc9n0pGE+ffKdph38s6foEZiEjdgHdzp+IA=="],
|
||||
|
||||
"hono": ["hono@4.13.21", "", {}, "sha512-h9UsguqfVk4kjUwLvQpHOmOaJpW10jz9lp8bvKUUa04wJG/fabKFBqXZ06D6LFaeKQZtUZRVeg0gfkTTEsX7Mw=="],
|
||||
|
||||
"hookable": ["hookable@5.5.3", "", {}, "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ=="],
|
||||
|
||||
"hookified": ["hookified@1.8.1", "", {}, "sha512-GrO2l93P8xCWBSTBX9l2BxI78VU/MAAYag+pG8curS3aBGy0++ZlxrQ7PdUOUVMbn5BwkGb6+eRrnf43ipnFEA=="],
|
||||
@@ -2293,7 +2287,7 @@
|
||||
|
||||
"internmap": ["internmap@1.0.1", "", {}, "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw=="],
|
||||
|
||||
"ip-address": ["ip-address@10.1.0", "", {}, "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q=="],
|
||||
"ip-address": ["ip-address@10.7.6", "", {}, "sha512-00LYkM6byILa9eQIx6qoaXCM40xTLd56AZ4vyaPW3YTyb49VZYPo5xsiAq4tuQ54GH4R7gVdYScJ1B7B77PuTg=="],
|
||||
|
||||
"ipaddr.js": ["ipaddr.js@1.9.1", "", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="],
|
||||
|
||||
@@ -2363,7 +2357,9 @@
|
||||
|
||||
"json-schema-to-ts": ["json-schema-to-ts@1.6.4", "", { "dependencies": { "@types/json-schema": "^7.0.6", "ts-toolbelt": "^6.15.5" } }, "sha512-pR4yQ9DHz6itqswtHCm26mw45FSNfQ9rEQjosaZErhn5J3J2sIViQiz8rDaezjKAhFGpmsoczYVBgGHzFw/stA=="],
|
||||
|
||||
"json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="],
|
||||
"json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||
|
||||
"json-schema-typed": ["json-schema-typed@8.0.2", "", {}, "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA=="],
|
||||
|
||||
"json-stringify-deterministic": ["json-stringify-deterministic@1.0.12", "", {}, "sha512-q3PN0lbUdv0pmurkBNdJH3pfFvOTL/Zp0lquqpvcjfKzt6Y0j49EPHAmVHCAS4Ceq/Y+PejWTzyiVpoY71+D6g=="],
|
||||
|
||||
@@ -2485,7 +2481,7 @@
|
||||
|
||||
"mathml-tag-names": ["mathml-tag-names@2.1.3", "", {}, "sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg=="],
|
||||
|
||||
"mcp-handler": ["mcp-handler@1.0.2", "", { "dependencies": { "chalk": "^5.3.0", "commander": "^11.1.0", "redis": "^4.6.0" }, "peerDependencies": { "@modelcontextprotocol/sdk": "^1.12.0", "next": ">=13.0.0" }, "optionalPeers": ["next"], "bin": { "mcp-adapter": "dist/cli/index.js", "mcp-handler": "dist/cli/index.js", "create-mcp-route": "dist/cli/index.js" } }, "sha512-dTZR0KZ0rqIORHFUmG4wFMJwp608gtc2x602hxaFQOmb0L2Ahc++Vcc6QoRWr92VTK7DQmEIqrHbhVCjomTplg=="],
|
||||
"mcp-handler": ["mcp-handler@1.1.0", "", { "dependencies": { "chalk": "^5.3.0", "commander": "^11.1.0", "redis": "^4.6.0" }, "peerDependencies": { "@modelcontextprotocol/sdk": "1.26.0", "next": ">=13.0.0" }, "optionalPeers": ["next"], "bin": { "mcp-adapter": "dist/cli/index.js", "mcp-handler": "dist/cli/index.js", "create-mcp-route": "dist/cli/index.js" } }, "sha512-MVCES7g18gcoZy+R/3v5nadkUMzMAWdos8jRl6DyljOKvd2/ZKDmwlCjL6zp4vo+7FeCXOYL1uWinHWlkKAAUg=="],
|
||||
|
||||
"mdast-util-find-and-replace": ["mdast-util-find-and-replace@3.0.1", "", { "dependencies": { "@types/mdast": "^4.0.0", "escape-string-regexp": "^5.0.0", "unist-util-is": "^6.0.0", "unist-util-visit-parents": "^6.0.0" } }, "sha512-SG21kZHGC3XRTSUhtofZkBzZTJNM5ecCi0SK2IMKmSXR8vO3peL+kb1O0z7Zl83jKtutG4k5Wv/W7V3/YHvzPA=="],
|
||||
|
||||
@@ -2529,8 +2525,6 @@
|
||||
|
||||
"mermaid": ["mermaid@11.16.1", "", { "dependencies": { "@braintree/sanitize-url": "^7.1.2", "@iconify/utils": "^3.0.2", "@mermaid-js/parser": "^1.2.0", "@types/d3": "^7.4.3", "@upsetjs/venn.js": "^2.0.0", "cytoscape": "^3.33.3", "cytoscape-cose-bilkent": "^4.1.0", "cytoscape-fcose": "^2.2.0", "d3": "^7.9.0", "d3-sankey": "^0.12.3", "dagre-d3-es": "7.0.14", "dayjs": "^1.11.20", "dompurify": "^3.3.3", "es-toolkit": "^1.45.1", "katex": "^0.16.45", "khroma": "^2.1.0", "marked": "^16.3.0", "roughjs": "^4.6.6", "stylis": "^4.3.6", "ts-dedent": "^2.2.0", "uuid": "^11.1.0 || ^12 || ^13 || ^14.0.0" } }, "sha512-TQsq6u22fAn3rek5VOubrhKPo1g5hwC3FXUN9hiyupTckcYiGuuKGkNQrKYwGJkXUxZdojwRG46gsSCFZMDp4g=="],
|
||||
|
||||
"methods": ["methods@1.1.2", "", {}, "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w=="],
|
||||
|
||||
"micro": ["micro@9.3.5-canary.3", "", { "dependencies": { "arg": "4.1.0", "content-type": "1.0.4", "raw-body": "2.4.1" }, "bin": { "micro": "./bin/micro.js" } }, "sha512-viYIo9PefV+w9dvoIBh1gI44Mvx1BOk67B4BpC2QK77qdY0xZF0Q+vWLt/BII6cLkIc8rLmSIcJaB/OrXXKe1g=="],
|
||||
|
||||
"microdiff": ["microdiff@1.5.0", "", {}, "sha512-Drq+/THMvDdzRYrK0oxJmOKiC24ayUV8ahrt8l3oRK51PWt6gdtrIGrlIH3pT/lFh1z93FbAcidtsHcWbnRz8Q=="],
|
||||
@@ -2603,7 +2597,7 @@
|
||||
|
||||
"miniflare": ["miniflare@4.20260401.0", "", { "dependencies": { "@cspotcode/source-map-support": "0.8.1", "sharp": "^0.34.5", "undici": "7.24.4", "workerd": "1.20260401.1", "ws": "8.18.0", "youch": "4.1.0-beta.10" }, "bin": { "miniflare": "bootstrap.js" } }, "sha512-lngHPzZFN9sxYG/mhzvnWiBMNVAN5MsO/7g32ttJ07rymtiK/ZBalODTKb8Od+BQdlU5DOR4CjVt9NydjnUyYg=="],
|
||||
|
||||
"minimatch": ["minimatch@10.2.6", "", { "dependencies": { "brace-expansion": "^5.0.8" } }, "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A=="],
|
||||
"minimatch": ["minimatch@11.0.9", "", { "dependencies": { "@isaacs/nonrecursive-glob-match": "^1.1.0", "brace-expansion": "^5.0.12" } }, "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q=="],
|
||||
|
||||
"minipass": ["minipass@7.1.3", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],
|
||||
|
||||
@@ -2667,7 +2661,7 @@
|
||||
|
||||
"object-identity": ["object-identity@0.2.1", "", {}, "sha512-itX2N4m0IvaLhFZMi9YkW4nFML6FshKCCpnn6iKJZVIkCNM/ZRaG4t1bzD2ncaW4r6cHJa59XY+7oZAH7tg8tA=="],
|
||||
|
||||
"object-inspect": ["object-inspect@1.13.2", "", {}, "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g=="],
|
||||
"object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="],
|
||||
|
||||
"obliterator": ["obliterator@1.6.1", "", {}, "sha512-9WXswnqINnnhOG/5SLimUlzuU1hFJUc8zkwyD59Sd+dPOMf05PmnYG/d6Q7HZ+KmgkZJa1PxRso6QdM3sTNHig=="],
|
||||
|
||||
@@ -2697,7 +2691,7 @@
|
||||
|
||||
"oxfmt": ["oxfmt@0.62.0", "", { "dependencies": { "tinypool": "2.1.0" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.62.0", "@oxfmt/binding-android-arm64": "0.62.0", "@oxfmt/binding-darwin-arm64": "0.62.0", "@oxfmt/binding-darwin-x64": "0.62.0", "@oxfmt/binding-freebsd-x64": "0.62.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.62.0", "@oxfmt/binding-linux-arm-musleabihf": "0.62.0", "@oxfmt/binding-linux-arm64-gnu": "0.62.0", "@oxfmt/binding-linux-arm64-musl": "0.62.0", "@oxfmt/binding-linux-ppc64-gnu": "0.62.0", "@oxfmt/binding-linux-riscv64-gnu": "0.62.0", "@oxfmt/binding-linux-riscv64-musl": "0.62.0", "@oxfmt/binding-linux-s390x-gnu": "0.62.0", "@oxfmt/binding-linux-x64-gnu": "0.62.0", "@oxfmt/binding-linux-x64-musl": "0.62.0", "@oxfmt/binding-openharmony-arm64": "0.62.0", "@oxfmt/binding-win32-arm64-msvc": "0.62.0", "@oxfmt/binding-win32-ia32-msvc": "0.62.0", "@oxfmt/binding-win32-x64-msvc": "0.62.0" }, "peerDependencies": { "svelte": "^5.0.0", "vite-plus": "*" }, "optionalPeers": ["svelte", "vite-plus"], "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-vxgGHTmnDU9j4CX7dDBLzxgmHxfda/yPcgJkGCMUSCwRmz+euo/V08xXLNgXTeqAB9Fhf3Pe2nO1RNKLCVgphQ=="],
|
||||
|
||||
"oxlint": ["oxlint@1.93.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.93.0", "@oxlint/binding-android-arm64": "1.93.0", "@oxlint/binding-darwin-arm64": "1.93.0", "@oxlint/binding-darwin-x64": "1.93.0", "@oxlint/binding-freebsd-x64": "1.93.0", "@oxlint/binding-linux-arm-gnueabihf": "1.93.0", "@oxlint/binding-linux-arm-musleabihf": "1.93.0", "@oxlint/binding-linux-arm64-gnu": "1.93.0", "@oxlint/binding-linux-arm64-musl": "1.93.0", "@oxlint/binding-linux-ppc64-gnu": "1.93.0", "@oxlint/binding-linux-riscv64-gnu": "1.93.0", "@oxlint/binding-linux-riscv64-musl": "1.93.0", "@oxlint/binding-linux-s390x-gnu": "1.93.0", "@oxlint/binding-linux-x64-gnu": "1.93.0", "@oxlint/binding-linux-x64-musl": "1.93.0", "@oxlint/binding-openharmony-arm64": "1.93.0", "@oxlint/binding-win32-arm64-msvc": "1.93.0", "@oxlint/binding-win32-ia32-msvc": "1.93.0", "@oxlint/binding-win32-x64-msvc": "1.93.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2005", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-19JMsQFX+YvEbcUTFQxjTwhvs0Ibg0D6CFneSLgpwnACWcY/6LjhpGpkPodh0T5aIT1pjMTLlYaeBFzaVgugTA=="],
|
||||
"oxlint": ["oxlint@1.95.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.95.0", "@oxlint/binding-android-arm64": "1.95.0", "@oxlint/binding-darwin-arm64": "1.95.0", "@oxlint/binding-darwin-x64": "1.95.0", "@oxlint/binding-freebsd-x64": "1.95.0", "@oxlint/binding-linux-arm-gnueabihf": "1.95.0", "@oxlint/binding-linux-arm-musleabihf": "1.95.0", "@oxlint/binding-linux-arm64-gnu": "1.95.0", "@oxlint/binding-linux-arm64-musl": "1.95.0", "@oxlint/binding-linux-ppc64-gnu": "1.95.0", "@oxlint/binding-linux-riscv64-gnu": "1.95.0", "@oxlint/binding-linux-riscv64-musl": "1.95.0", "@oxlint/binding-linux-s390x-gnu": "1.95.0", "@oxlint/binding-linux-x64-gnu": "1.95.0", "@oxlint/binding-linux-x64-musl": "1.95.0", "@oxlint/binding-openharmony-arm64": "1.95.0", "@oxlint/binding-win32-arm64-msvc": "1.95.0", "@oxlint/binding-win32-ia32-msvc": "1.95.0", "@oxlint/binding-win32-x64-msvc": "1.95.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2008", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-eNzjFjm1TU02/+ohAJjOB7aekRQgTXhOWxMGscEm8VJMokNnnix+PCZn7kqIuGIqxAoBnHxatqlN3Chz3N6PKA=="],
|
||||
|
||||
"p-filter": ["p-filter@2.1.0", "", { "dependencies": { "p-map": "^2.0.0" } }, "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw=="],
|
||||
|
||||
@@ -2745,7 +2739,7 @@
|
||||
|
||||
"path-parse": ["path-parse@1.0.7", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="],
|
||||
|
||||
"path-scurry": ["path-scurry@2.0.2", "", { "dependencies": { "lru-cache": "^11.0.0", "minipass": "^7.1.2" } }, "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg=="],
|
||||
"path-scurry": ["path-scurry@3.0.0", "", { "dependencies": { "lru-cache": "^11.0.0", "minipass": "^7.1.2" } }, "sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg=="],
|
||||
|
||||
"path-to-regexp": ["path-to-regexp@6.3.0", "", {}, "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ=="],
|
||||
|
||||
@@ -2825,7 +2819,7 @@
|
||||
|
||||
"punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],
|
||||
|
||||
"qs": ["qs@6.13.0", "", { "dependencies": { "side-channel": "^1.0.6" } }, "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg=="],
|
||||
"qs": ["qs@6.14.0", "", { "dependencies": { "side-channel": "^1.1.0" } }, "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w=="],
|
||||
|
||||
"quansync": ["quansync@0.2.11", "", {}, "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA=="],
|
||||
|
||||
@@ -2843,7 +2837,7 @@
|
||||
|
||||
"range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="],
|
||||
|
||||
"raw-body": ["raw-body@3.0.0", "", { "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", "iconv-lite": "0.6.3", "unpipe": "1.0.0" } }, "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g=="],
|
||||
"raw-body": ["raw-body@3.0.2", "", { "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", "iconv-lite": "~0.7.0", "unpipe": "~1.0.0" } }, "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA=="],
|
||||
|
||||
"react": ["react@19.1.0", "", {}, "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg=="],
|
||||
|
||||
@@ -2921,7 +2915,7 @@
|
||||
|
||||
"roughjs": ["roughjs@4.6.6", "", { "dependencies": { "hachure-fill": "^0.5.2", "path-data-parser": "^0.1.0", "points-on-curve": "^0.2.0", "points-on-path": "^0.2.1" } }, "sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ=="],
|
||||
|
||||
"router": ["router@2.0.0", "", { "dependencies": { "array-flatten": "3.0.0", "is-promise": "4.0.0", "methods": "~1.1.2", "parseurl": "~1.3.3", "path-to-regexp": "^8.0.0", "setprototypeof": "1.2.0", "utils-merge": "1.0.1" } }, "sha512-dIM5zVoG8xhC6rnSN8uoAgFARwTE7BQs8YwHEvK0VCmfxQXMaOuA1uiR1IPwsW7JyK5iTt7Od/TC9StasS2NPQ=="],
|
||||
"router": ["router@2.2.0", "", { "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", "is-promise": "^4.0.0", "parseurl": "^1.3.3", "path-to-regexp": "^8.0.0" } }, "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ=="],
|
||||
|
||||
"rss-parser": ["rss-parser@3.13.0", "", { "dependencies": { "entities": "^2.0.3", "xml2js": "^0.5.0" } }, "sha512-7jWUBV5yGN3rqMMj7CZufl/291QAhvrrGpDNE4k/02ZchL0npisiYYqULF71jCEKoIiHvK/Q2e6IkDwPziT7+w=="],
|
||||
|
||||
@@ -2945,12 +2939,10 @@
|
||||
|
||||
"send": ["send@1.1.0", "", { "dependencies": { "debug": "^4.3.5", "destroy": "^1.2.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^0.5.2", "http-errors": "^2.0.0", "mime-types": "^2.1.35", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.1" } }, "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA=="],
|
||||
|
||||
"serve-static": ["serve-static@2.1.0", "", { "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "parseurl": "^1.3.3", "send": "^1.0.0" } }, "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA=="],
|
||||
"serve-static": ["serve-static@2.2.0", "", { "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "parseurl": "^1.3.3", "send": "^1.2.0" } }, "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ=="],
|
||||
|
||||
"server-only": ["server-only@0.0.1", "", {}, "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA=="],
|
||||
|
||||
"set-function-length": ["set-function-length@1.2.2", "", { "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", "gopd": "^1.0.1", "has-property-descriptors": "^1.0.2" } }, "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg=="],
|
||||
|
||||
"setprototypeof": ["setprototypeof@1.2.0", "", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="],
|
||||
|
||||
"sharp": ["sharp@0.35.5", "", { "dependencies": { "@img/colour": "^1.1.0", "detect-libc": "^2.1.2", "semver": "^7.8.5" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.35.5", "@img/sharp-darwin-x64": "0.35.5", "@img/sharp-freebsd-wasm32": "0.35.5", "@img/sharp-libvips-darwin-arm64": "1.3.4", "@img/sharp-libvips-darwin-x64": "1.3.4", "@img/sharp-libvips-linux-arm": "1.3.4", "@img/sharp-libvips-linux-arm64": "1.3.4", "@img/sharp-libvips-linux-ppc64": "1.3.4", "@img/sharp-libvips-linux-riscv64": "1.3.4", "@img/sharp-libvips-linux-s390x": "1.3.4", "@img/sharp-libvips-linux-x64": "1.3.4", "@img/sharp-libvips-linuxmusl-arm64": "1.3.4", "@img/sharp-libvips-linuxmusl-x64": "1.3.4", "@img/sharp-linux-arm": "0.35.5", "@img/sharp-linux-arm64": "0.35.5", "@img/sharp-linux-ppc64": "0.35.5", "@img/sharp-linux-riscv64": "0.35.5", "@img/sharp-linux-s390x": "0.35.5", "@img/sharp-linux-x64": "0.35.5", "@img/sharp-linuxmusl-arm64": "0.35.5", "@img/sharp-linuxmusl-x64": "0.35.5", "@img/sharp-webcontainers-wasm32": "0.35.5", "@img/sharp-win32-arm64": "0.35.5", "@img/sharp-win32-ia32": "0.35.5", "@img/sharp-win32-x64": "0.35.5" }, "peerDependencies": { "@types/node": "*" }, "optionalPeers": ["@types/node"] }, "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g=="],
|
||||
@@ -2963,7 +2955,7 @@
|
||||
|
||||
"shiki": ["shiki@3.21.0", "", { "dependencies": { "@shikijs/core": "3.21.0", "@shikijs/engine-javascript": "3.21.0", "@shikijs/engine-oniguruma": "3.21.0", "@shikijs/langs": "3.21.0", "@shikijs/themes": "3.21.0", "@shikijs/types": "3.21.0", "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4" } }, "sha512-N65B/3bqL/TI2crrXr+4UivctrAGEjmsib5rPMMPpFp1xAx/w03v8WZ9RDDFYteXoEgY7qZ4HGgl5KBIu1153w=="],
|
||||
|
||||
"side-channel": ["side-channel@1.0.6", "", { "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.4", "object-inspect": "^1.13.1" } }, "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA=="],
|
||||
"side-channel": ["side-channel@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3", "side-channel-list": "^1.0.0", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" } }, "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw=="],
|
||||
|
||||
"side-channel-list": ["side-channel-list@1.0.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3" } }, "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA=="],
|
||||
|
||||
@@ -3131,13 +3123,13 @@
|
||||
|
||||
"tsx": ["tsx@4.21.0", "", { "dependencies": { "esbuild": "~0.27.0", "get-tsconfig": "^4.7.5" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw=="],
|
||||
|
||||
"turbo": ["turbo@2.11.11", "", { "optionalDependencies": { "@turbo/darwin-64": "2.11.11", "@turbo/darwin-arm64": "2.11.11", "@turbo/linux-64": "2.11.11", "@turbo/linux-arm64": "2.11.11", "@turbo/windows-64": "2.11.11", "@turbo/windows-arm64": "2.11.11" }, "bin": { "turbo": "bin/turbo" } }, "sha512-AI4UJbUE/2cVZdoXJ4PODc8qvrjhQQX9Fa93eKGOI6Ims/w7+kUIb9T1jhlgSnZcf+gtUruci/ohSwqtNNC5Yw=="],
|
||||
"turbo": ["turbo@2.11.13", "", { "optionalDependencies": { "@turbo/darwin-64": "2.11.13", "@turbo/darwin-arm64": "2.11.13", "@turbo/linux-64": "2.11.13", "@turbo/linux-arm64": "2.11.13", "@turbo/windows-64": "2.11.13", "@turbo/windows-arm64": "2.11.13" }, "bin": { "turbo": "bin/turbo" } }, "sha512-2EZ8StW6tqaj71HGF60oUOmJrPQHidmZ5dcwv2VORofya9JthVrfZhxbzRMx/QxjPwYi754i2h5RFsZSDzpnaQ=="],
|
||||
|
||||
"type": ["type@2.7.3", "", {}, "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ=="],
|
||||
|
||||
"type-fest": ["type-fest@5.0.0", "", { "dependencies": { "tagged-tag": "^1.0.0" } }, "sha512-GeJop7+u7BYlQ6yQCAY1nBQiRSHR+6OdCEtd8Bwp9a3NK3+fWAVjOaPKJDteB9f6cIJ0wt4IfnScjLG450EpXA=="],
|
||||
|
||||
"type-is": ["type-is@2.0.0", "", { "dependencies": { "content-type": "^1.0.5", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw=="],
|
||||
"type-is": ["type-is@2.0.1", "", { "dependencies": { "content-type": "^1.0.5", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw=="],
|
||||
|
||||
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
||||
|
||||
@@ -3191,8 +3183,6 @@
|
||||
|
||||
"util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="],
|
||||
|
||||
"utils-merge": ["utils-merge@1.0.1", "", {}, "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA=="],
|
||||
|
||||
"uuid": ["uuid@11.1.0", "", { "bin": { "uuid": "dist/esm/bin/uuid" } }, "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A=="],
|
||||
|
||||
"vary": ["vary@1.1.2", "", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="],
|
||||
@@ -3283,7 +3273,7 @@
|
||||
|
||||
"youch-core": ["youch-core@0.3.3", "", { "dependencies": { "@poppinss/exception": "^1.2.2", "error-stack-parser-es": "^1.0.5" } }, "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA=="],
|
||||
|
||||
"zod": ["zod@3.24.2", "", {}, "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ=="],
|
||||
"zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
|
||||
|
||||
"zod-to-json-schema": ["zod-to-json-schema@3.25.1", "", { "peerDependencies": { "zod": "^3.25 || ^4" } }, "sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA=="],
|
||||
|
||||
@@ -3447,9 +3437,7 @@
|
||||
|
||||
"@modelcontextprotocol/sdk/cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],
|
||||
|
||||
"@modelcontextprotocol/sdk/zod-to-json-schema": ["zod-to-json-schema@3.24.5", "", { "peerDependencies": { "zod": "^3.24.1" } }, "sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g=="],
|
||||
|
||||
"@opennextjs/aws/express": ["express@5.2.1", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.7", "qs": "^6.14.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.0.1", "vary": "^1.1.2" } }, "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw=="],
|
||||
"@modelcontextprotocol/sdk/jose": ["jose@6.2.18", "", {}, "sha512-doV4thUwgkrycJH4yLeqwTGIIZphHl+pk7CPReuMIhYhncmgzdko85MaCG4YQFTxqMFr1/oEH32tZuKKovcDEg=="],
|
||||
|
||||
"@oxc-transform/binding-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.1.1", "", { "dependencies": { "@emnapi/core": "^1.7.1", "@emnapi/runtime": "^1.7.1", "@tybys/wasm-util": "^0.10.1" } }, "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A=="],
|
||||
|
||||
@@ -3527,8 +3515,6 @@
|
||||
|
||||
"@scalar/json-schema-validator/@scalar/types": ["@scalar/types@0.26.0", "", { "dependencies": { "@scalar/helpers": "0.16.4", "nanoid": "^5.1.16", "type-fest": "^5.10.0", "zod": "^4.6.7" } }, "sha512-T78Dj1Q+W0E1RsMyPoydfR+L+p9IUIkntBCRYlWaRibM98jAxABRYGQoU/qDHX0PR1IAFdE+d7ZqslypZbJzcg=="],
|
||||
|
||||
"@scalar/json-schema-validator/ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="],
|
||||
|
||||
"@scalar/oas-utils/@scalar/helpers": ["@scalar/helpers@0.1.1", "", {}, "sha512-eJjuCI5djqU0adTwrHvpDf0xuwNRpwZinCfJ03QjnmIFBM9Ch0u3tn/0EZOhcVNbdEyJ+3yvSVy1dCmmvgtpvQ=="],
|
||||
|
||||
"@scalar/oas-utils/@scalar/json-magic": ["@scalar/json-magic@0.8.1", "", { "dependencies": { "@scalar/helpers": "0.1.1", "xxhash-wasm": "^1.1.0", "yaml": "2.8.0" } }, "sha512-PtG0gJxw+iE9492pqy9V+ZbnfRnycIxTAxknKQCOGRyFYfDvYSs0/uyFCHoQPl7HEZoNNA7q/fr0LBZXMRzv7g=="],
|
||||
@@ -3697,8 +3683,6 @@
|
||||
|
||||
"acorn-walk/acorn": ["acorn@8.12.1", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg=="],
|
||||
|
||||
"ajv-draft-04/ajv": ["ajv@8.17.1", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g=="],
|
||||
|
||||
"ajv-formats/ajv": ["ajv@8.17.1", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g=="],
|
||||
|
||||
"anymatch/picomatch": ["picomatch@2.3.1", "", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="],
|
||||
@@ -3707,18 +3691,10 @@
|
||||
|
||||
"ast-kit/pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="],
|
||||
|
||||
"body-parser/debug": ["debug@3.1.0", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g=="],
|
||||
|
||||
"body-parser/iconv-lite": ["iconv-lite@0.5.2", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag=="],
|
||||
|
||||
"body-parser/type-is": ["type-is@1.6.18", "", { "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" } }, "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g=="],
|
||||
|
||||
"brace-expansion/balanced-match": ["balanced-match@4.0.4", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="],
|
||||
|
||||
"bun-types/@types/node": ["@types/node@20.12.14", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg=="],
|
||||
|
||||
"call-bound/get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
|
||||
|
||||
"cliui/string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="],
|
||||
|
||||
"cliui/strip-ansi": ["strip-ansi@7.1.0", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ=="],
|
||||
@@ -3761,8 +3737,6 @@
|
||||
|
||||
"dom-serializer/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
|
||||
|
||||
"dunder-proto/gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
|
||||
|
||||
"duplexify/end-of-stream": ["end-of-stream@1.4.4", "", { "dependencies": { "once": "^1.4.0" } }, "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q=="],
|
||||
|
||||
"duplexify/readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="],
|
||||
@@ -3783,20 +3757,16 @@
|
||||
|
||||
"express/cookie": ["cookie@0.7.1", "", {}, "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w=="],
|
||||
|
||||
"express/debug": ["debug@4.3.6", "", { "dependencies": { "ms": "2.1.2" } }, "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg=="],
|
||||
|
||||
"express/mime-types": ["mime-types@3.0.0", "", { "dependencies": { "mime-db": "^1.53.0" } }, "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w=="],
|
||||
|
||||
"finalhandler/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
||||
|
||||
"finalhandler/encodeurl": ["encodeurl@1.0.2", "", {}, "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w=="],
|
||||
|
||||
"global-prefix/which": ["which@1.3.1", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "which": "./bin/which" } }, "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ=="],
|
||||
|
||||
"globby/fast-glob": ["fast-glob@3.3.2", "", { "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.4" } }, "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow=="],
|
||||
|
||||
"globby/ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="],
|
||||
|
||||
"google-font-metadata/zod": ["zod@3.24.2", "", {}, "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ=="],
|
||||
|
||||
"htmlparser2/entities": ["entities@6.0.1", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="],
|
||||
|
||||
"https-proxy-agent/debug": ["debug@4.4.0", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA=="],
|
||||
@@ -3809,8 +3779,6 @@
|
||||
|
||||
"lowlight/highlight.js": ["highlight.js@11.9.0", "", {}, "sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw=="],
|
||||
|
||||
"mcp-handler/chalk": ["chalk@5.4.1", "", {}, "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w=="],
|
||||
|
||||
"mcp-handler/commander": ["commander@11.1.0", "", {}, "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ=="],
|
||||
|
||||
"mdast-util-gfm-footnote/mdast-util-from-markdown": ["mdast-util-from-markdown@2.0.1", "", { "dependencies": { "@types/mdast": "^4.0.0", "@types/unist": "^3.0.0", "decode-named-character-reference": "^1.0.0", "devlop": "^1.0.0", "mdast-util-to-string": "^4.0.0", "micromark": "^4.0.0", "micromark-util-decode-numeric-character-reference": "^2.0.0", "micromark-util-decode-string": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0", "unist-util-stringify-position": "^4.0.0" } }, "sha512-aJEUyzZ6TzlsX2s5B4Of7lN7EQtAxvtradMMglCQDyaTFgse6CmtmdJ15ElnVRlCg1vpNyVtbem0PWzlNieZsA=="],
|
||||
@@ -3875,7 +3843,7 @@
|
||||
|
||||
"radix-vue/nanoid": ["nanoid@5.0.7", "", { "bin": { "nanoid": "bin/nanoid.js" } }, "sha512-oLxFY2gd2IqnjcYyOXD8XGCftpGtZP2AbHbOkthDkvRywH5ayNtPVy9YlOPcHckXzbLTCHpkb7FB+yuxKV13pQ=="],
|
||||
|
||||
"raw-body/iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
|
||||
"raw-body/http-errors": ["http-errors@2.0.1", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="],
|
||||
|
||||
"read-cache/pify": ["pify@2.3.0", "", {}, "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog=="],
|
||||
|
||||
@@ -3899,17 +3867,11 @@
|
||||
|
||||
"send/fresh": ["fresh@0.5.2", "", {}, "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="],
|
||||
|
||||
"serve-static/send": ["send@1.2.0", "", { "dependencies": { "debug": "^4.3.5", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^2.0.0", "http-errors": "^2.0.0", "mime-types": "^3.0.1", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.1" } }, "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw=="],
|
||||
|
||||
"sharp/detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],
|
||||
|
||||
"side-channel-list/object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="],
|
||||
|
||||
"side-channel-map/get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
|
||||
|
||||
"side-channel-map/object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="],
|
||||
|
||||
"side-channel-weakmap/get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
|
||||
|
||||
"side-channel-weakmap/object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="],
|
||||
"socks/ip-address": ["ip-address@10.1.0", "", {}, "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q=="],
|
||||
|
||||
"spawndamnit/cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],
|
||||
|
||||
@@ -3947,8 +3909,6 @@
|
||||
|
||||
"youch/cookie": ["cookie@1.0.2", "", {}, "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA=="],
|
||||
|
||||
"zod-to-json-schema/zod": ["zod@4.6.7", "", {}, "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg=="],
|
||||
|
||||
"@ampproject/remapping/@jridgewell/gen-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.0", "", {}, "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="],
|
||||
|
||||
"@ampproject/remapping/@jridgewell/trace-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.0", "", {}, "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="],
|
||||
@@ -4059,22 +4019,6 @@
|
||||
|
||||
"@jridgewell/source-map/@jridgewell/trace-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.0", "", {}, "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="],
|
||||
|
||||
"@opennextjs/aws/express/body-parser": ["body-parser@2.2.1", "", { "dependencies": { "bytes": "^3.1.2", "content-type": "^1.0.5", "debug": "^4.4.3", "http-errors": "^2.0.0", "iconv-lite": "^0.7.0", "on-finished": "^2.4.1", "qs": "^6.14.0", "raw-body": "^3.0.1", "type-is": "^2.0.1" } }, "sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw=="],
|
||||
|
||||
"@opennextjs/aws/express/cookie": ["cookie@0.7.1", "", {}, "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w=="],
|
||||
|
||||
"@opennextjs/aws/express/finalhandler": ["finalhandler@2.1.1", "", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA=="],
|
||||
|
||||
"@opennextjs/aws/express/mime-types": ["mime-types@3.0.0", "", { "dependencies": { "mime-db": "^1.53.0" } }, "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w=="],
|
||||
|
||||
"@opennextjs/aws/express/qs": ["qs@6.14.0", "", { "dependencies": { "side-channel": "^1.1.0" } }, "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w=="],
|
||||
|
||||
"@opennextjs/aws/express/router": ["router@2.2.0", "", { "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", "is-promise": "^4.0.0", "parseurl": "^1.3.3", "path-to-regexp": "^8.0.0" } }, "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ=="],
|
||||
|
||||
"@opennextjs/aws/express/serve-static": ["serve-static@2.2.0", "", { "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "parseurl": "^1.3.3", "send": "^1.2.0" } }, "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ=="],
|
||||
|
||||
"@opennextjs/aws/express/type-is": ["type-is@2.0.1", "", { "dependencies": { "content-type": "^1.0.5", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw=="],
|
||||
|
||||
"@oxc-transform/binding-wasm32-wasi/@napi-rs/wasm-runtime/@emnapi/core": ["@emnapi/core@1.8.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" } }, "sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg=="],
|
||||
|
||||
"@oxc-transform/binding-wasm32-wasi/@napi-rs/wasm-runtime/@emnapi/runtime": ["@emnapi/runtime@1.8.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg=="],
|
||||
@@ -4137,8 +4081,6 @@
|
||||
|
||||
"@scalar/json-schema-validator/@scalar/types/zod": ["zod@4.6.7", "", {}, "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg=="],
|
||||
|
||||
"@scalar/json-schema-validator/ajv/json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||
|
||||
"@scalar/openapi-parser/@scalar/types/nanoid": ["nanoid@5.1.16", "", { "bin": { "nanoid": "bin/nanoid.js" } }, "sha512-kVrnsrJqMR8+oLJnGEmSWw9BivK5mt7H3FZatVRjrc5wGqFYuBxX1yG7+A7Gi5AefkX6t/oCkizcQgpu0cY1dQ=="],
|
||||
|
||||
"@scalar/openapi-parser/@scalar/types/type-fest": ["type-fest@5.10.0", "", { "dependencies": { "tagged-tag": "^1.0.0" } }, "sha512-NoSdpq/WEiAg5sjmBkmV/hfxv6HJH4NqPNrqjtSO5CwRmpsDfaf4begxW34KdJykH/l1yHtwBWQkCRdoXO8mPA=="],
|
||||
@@ -4271,8 +4213,6 @@
|
||||
|
||||
"@vercel/rust/execa/signal-exit": ["signal-exit@3.0.7", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="],
|
||||
|
||||
"@vercel/static-config/ajv/json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||
|
||||
"@vue/compiler-core/@babel/parser/@babel/types": ["@babel/types@7.28.2", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1" } }, "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ=="],
|
||||
|
||||
"@vue/compiler-sfc/@babel/parser/@babel/types": ["@babel/types@7.28.2", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1" } }, "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ=="],
|
||||
@@ -4293,22 +4233,8 @@
|
||||
|
||||
"accepts/mime-types/mime-db": ["mime-db@1.53.0", "", {}, "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg=="],
|
||||
|
||||
"ajv-draft-04/ajv/json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||
|
||||
"ajv-formats/ajv/json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||
|
||||
"body-parser/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],
|
||||
|
||||
"body-parser/type-is/media-typer": ["media-typer@0.3.0", "", {}, "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="],
|
||||
|
||||
"bun-types/@types/node/undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="],
|
||||
|
||||
"call-bound/get-intrinsic/es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
|
||||
|
||||
"call-bound/get-intrinsic/gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
|
||||
|
||||
"call-bound/get-intrinsic/has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],
|
||||
|
||||
"cliui/string-width/emoji-regex": ["emoji-regex@10.4.0", "", {}, "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw=="],
|
||||
|
||||
"cliui/string-width/get-east-asian-width": ["get-east-asian-width@1.3.0", "", {}, "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ=="],
|
||||
@@ -4337,12 +4263,8 @@
|
||||
|
||||
"edge-runtime/pretty-ms/parse-ms": ["parse-ms@2.1.0", "", {}, "sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA=="],
|
||||
|
||||
"express/debug/ms": ["ms@2.1.2", "", {}, "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="],
|
||||
|
||||
"express/mime-types/mime-db": ["mime-db@1.53.0", "", {}, "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg=="],
|
||||
|
||||
"finalhandler/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],
|
||||
|
||||
"micro/raw-body/bytes": ["bytes@3.1.0", "", {}, "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="],
|
||||
|
||||
"micro/raw-body/http-errors": ["http-errors@1.7.3", "", { "dependencies": { "depd": "~1.1.2", "inherits": "2.0.4", "setprototypeof": "1.1.1", "statuses": ">= 1.5.0 < 2", "toidentifier": "1.0.0" } }, "sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw=="],
|
||||
@@ -4415,6 +4337,8 @@
|
||||
|
||||
"radix-vue/@vueuse/core/@vueuse/metadata": ["@vueuse/metadata@10.11.1", "", {}, "sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw=="],
|
||||
|
||||
"raw-body/http-errors/statuses": ["statuses@2.0.2", "", {}, "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw=="],
|
||||
|
||||
"read-yaml-file/js-yaml/argparse": ["argparse@1.0.10", "", { "dependencies": { "sprintf-js": "~1.0.2" } }, "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg=="],
|
||||
|
||||
"remark-gfm/mdast-util-gfm/mdast-util-from-markdown": ["mdast-util-from-markdown@2.0.1", "", { "dependencies": { "@types/mdast": "^4.0.0", "@types/unist": "^3.0.0", "decode-named-character-reference": "^1.0.0", "devlop": "^1.0.0", "mdast-util-to-string": "^4.0.0", "micromark": "^4.0.0", "micromark-util-decode-numeric-character-reference": "^2.0.0", "micromark-util-decode-string": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0", "unist-util-stringify-position": "^4.0.0" } }, "sha512-aJEUyzZ6TzlsX2s5B4Of7lN7EQtAxvtradMMglCQDyaTFgse6CmtmdJ15ElnVRlCg1vpNyVtbem0PWzlNieZsA=="],
|
||||
@@ -4427,24 +4351,12 @@
|
||||
|
||||
"rimraf/glob/path-scurry": ["path-scurry@1.11.1", "", { "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="],
|
||||
|
||||
"side-channel-map/get-intrinsic/es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
|
||||
|
||||
"side-channel-map/get-intrinsic/gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
|
||||
|
||||
"side-channel-map/get-intrinsic/has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],
|
||||
|
||||
"side-channel-weakmap/get-intrinsic/es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
|
||||
|
||||
"side-channel-weakmap/get-intrinsic/gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
|
||||
|
||||
"side-channel-weakmap/get-intrinsic/has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],
|
||||
"serve-static/send/mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
||||
|
||||
"stylelint-no-unsupported-browser-features/postcss/nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],
|
||||
|
||||
"stylelint/postcss/nanoid": ["nanoid@3.3.8", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w=="],
|
||||
|
||||
"table/ajv/json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||
|
||||
"type-is/mime-types/mime-db": ["mime-db@1.53.0", "", {}, "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg=="],
|
||||
|
||||
"wrap-ansi/string-width/emoji-regex": ["emoji-regex@10.4.0", "", {}, "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw=="],
|
||||
@@ -4473,20 +4385,6 @@
|
||||
|
||||
"@headlessui/react/@floating-ui/react/@floating-ui/react-dom/@floating-ui/dom": ["@floating-ui/dom@1.7.5", "", { "dependencies": { "@floating-ui/core": "^1.7.4", "@floating-ui/utils": "^0.2.10" } }, "sha512-N0bD2kIPInNHUHehXhMke1rBGs1dwqvC9O9KYMyyjK7iXt7GAhnro7UlcuYcGdS/yYOlq0MAVgrow8IbWJwyqg=="],
|
||||
|
||||
"@opennextjs/aws/express/body-parser/raw-body": ["raw-body@3.0.2", "", { "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", "iconv-lite": "~0.7.0", "unpipe": "~1.0.0" } }, "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA=="],
|
||||
|
||||
"@opennextjs/aws/express/mime-types/mime-db": ["mime-db@1.53.0", "", {}, "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg=="],
|
||||
|
||||
"@opennextjs/aws/express/qs/side-channel": ["side-channel@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3", "side-channel-list": "^1.0.0", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" } }, "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw=="],
|
||||
|
||||
"@opennextjs/aws/express/router/is-promise": ["is-promise@4.0.0", "", {}, "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ=="],
|
||||
|
||||
"@opennextjs/aws/express/router/path-to-regexp": ["path-to-regexp@8.2.0", "", {}, "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ=="],
|
||||
|
||||
"@opennextjs/aws/express/serve-static/send": ["send@1.2.0", "", { "dependencies": { "debug": "^4.3.5", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^2.0.0", "http-errors": "^2.0.0", "mime-types": "^3.0.1", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.1" } }, "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw=="],
|
||||
|
||||
"@scalar/api-client/@scalar/openapi-parser/ajv/json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||
|
||||
"@scalar/components/@scalar/oas-utils/@scalar/workspace-store/@scalar/openapi-upgrader": ["@scalar/openapi-upgrader@0.1.3", "", { "dependencies": { "@scalar/openapi-types": "0.5.0" } }, "sha512-iROhcgy3vge6zsviPtoTLHale0nYt1PLhuMmJweQwJ0U23ZYyYhV5xgHtAd0OBEXuqT6rjYbJFvKOJZmJOwpNQ=="],
|
||||
|
||||
"@scalar/components/@scalar/themes/@scalar/types/@scalar/openapi-types": ["@scalar/openapi-types@0.5.0", "", { "dependencies": { "zod": "4.1.11" } }, "sha512-HJBcLa+/mPP+3TCcQngj/iW5UqynRosOQdEETXjmdy6Ngw8wBjwIcT6C86J5jufJ6sI8++HYnt+e7pAvp5FO6A=="],
|
||||
@@ -4501,8 +4399,6 @@
|
||||
|
||||
"@scalar/import/@scalar/openapi-parser/@scalar/openapi-types/zod": ["zod@4.1.11", "", {}, "sha512-WPsqwxITS2tzx1bzhIKsEs19ABD5vmCVa4xBo2tq/SrV4RNZtfws1EnCWQXM6yh8bD08a1idvkB5MZSBiZsjwg=="],
|
||||
|
||||
"@scalar/import/@scalar/openapi-parser/ajv/json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||
|
||||
"@scalar/postman-to-openapi/@scalar/oas-utils/@scalar/workspace-store/@scalar/openapi-upgrader": ["@scalar/openapi-upgrader@0.1.3", "", { "dependencies": { "@scalar/openapi-types": "0.5.0" } }, "sha512-iROhcgy3vge6zsviPtoTLHale0nYt1PLhuMmJweQwJ0U23ZYyYhV5xgHtAd0OBEXuqT6rjYbJFvKOJZmJOwpNQ=="],
|
||||
|
||||
"@scalar/use-toasts/vue/@vue/compiler-sfc/@babel/parser": ["@babel/parser@7.28.3", "", { "dependencies": { "@babel/types": "^7.28.2" }, "bin": "./bin/babel-parser.js" }, "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA=="],
|
||||
@@ -4545,6 +4441,8 @@
|
||||
|
||||
"rimraf/glob/path-scurry/lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],
|
||||
|
||||
"serve-static/send/mime-types/mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
||||
|
||||
"yargs/string-width/strip-ansi/ansi-regex": ["ansi-regex@6.4.0", "", {}, "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw=="],
|
||||
|
||||
"@argos-ci/core/sharp/@img/sharp-freebsd-wasm32/@img/sharp-wasm32/@emnapi/runtime": ["@emnapi/runtime@1.11.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA=="],
|
||||
@@ -4555,12 +4453,6 @@
|
||||
|
||||
"@headlessui/react/@floating-ui/react/@floating-ui/react-dom/@floating-ui/dom/@floating-ui/core": ["@floating-ui/core@1.7.4", "", { "dependencies": { "@floating-ui/utils": "^0.2.10" } }, "sha512-C3HlIdsBxszvm5McXlB8PeOEWfBhcGBTZGkGlWc2U0KFY5IwG5OQEuQ8rq52DZmcHDlPLd+YFBK+cZcytwIFWg=="],
|
||||
|
||||
"@opennextjs/aws/express/body-parser/raw-body/http-errors": ["http-errors@2.0.1", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="],
|
||||
|
||||
"@opennextjs/aws/express/qs/side-channel/object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="],
|
||||
|
||||
"@opennextjs/aws/express/serve-static/send/mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
||||
|
||||
"@scalar/draggable/vue/@vue/compiler-sfc/@babel/parser/@babel/types": ["@babel/types@7.28.2", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1" } }, "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ=="],
|
||||
|
||||
"@scalar/draggable/vue/@vue/compiler-sfc/magic-string/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.0", "", {}, "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="],
|
||||
@@ -4580,9 +4472,5 @@
|
||||
"@zenuml/core/tailwindcss/chokidar/readdirp/picomatch": ["picomatch@2.3.1", "", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="],
|
||||
|
||||
"rimraf/glob/minimatch/brace-expansion/balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
|
||||
|
||||
"@opennextjs/aws/express/body-parser/raw-body/http-errors/statuses": ["statuses@2.0.2", "", {}, "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw=="],
|
||||
|
||||
"@opennextjs/aws/express/serve-static/send/mime-types/mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -7,8 +7,8 @@
|
||||
"devDependencies": {
|
||||
"@changesets/cli": "^2.31.1",
|
||||
"oxfmt": "^0.62.0",
|
||||
"oxlint": "^1.93.0",
|
||||
"turbo": "^2.11.11",
|
||||
"oxlint": "^1.95.0",
|
||||
"turbo": "^2.11.13",
|
||||
"vercel": "50.37.3"
|
||||
},
|
||||
"packageManager": "bun@1.3.7",
|
||||
@@ -48,7 +48,7 @@
|
||||
"@tsconfig/strictest": "^2.0.6",
|
||||
"@tsconfig/node20": "^20.1.6",
|
||||
"@base-ui/react": "^1.7.0",
|
||||
"@gitbook/api": "0.211.0",
|
||||
"@gitbook/api": "0.216.0",
|
||||
"@scalar/api-client-react": "^1.3.46",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
dist/
|
||||
standalone/
|
||||
/standalone/
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @gitbook/embed
|
||||
|
||||
## 0.8.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- a9535cd: Emit an `escape` event from the Docs Embed when Escape is pressed inside it and nothing in the embed used it, so the host can close its own panel.
|
||||
- 36cde87: Emit a `navigate` event from the Docs Embed when the reader opens a page or switches tab, with the page's path, URL and title. Listen to it, and to `close` and `escape`, with `GitBook('on', ...)` in the standalone script or the `onNavigate`, `onClose` and `onEscape` props of `<GitBookFrame>`.
|
||||
- 6b2e806: Use the site's suggested questions when the embedded Assistant receives an empty or omitted list, including from older SDKs.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 65210b7: Respect reduced motion for enter and exit animations, keep the header separator and input focus visible in forced colors mode, and size mobile surfaces with dynamic viewport units.
|
||||
|
||||
## 0.7.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -72,6 +72,19 @@ GitBook('configure', {
|
||||
|
||||
See the [Configuration](#configuration) section for all available options.
|
||||
|
||||
### Example: Listening to events
|
||||
|
||||
```javascript
|
||||
// The reader opened a page in the docs tab, or switched to the assistant or search tab
|
||||
GitBook('on', 'navigate', (event) => {
|
||||
if (event.tab === 'docs') {
|
||||
console.log('Reading', event.title, event.path, event.url);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
`GitBook('on', ...)` returns a function that removes the listener once the script has loaded. See [Events](#events).
|
||||
|
||||
## As a package from NPM
|
||||
|
||||
Install the package: `npm install @gitbook/embed` and import it in your web application:
|
||||
@@ -132,6 +145,11 @@ frame.on('close', () => {
|
||||
frame.on('escape', () => {
|
||||
closeHelpPanel();
|
||||
});
|
||||
|
||||
// The reader opened a page in the docs tab, or switched to another tab
|
||||
const unsubscribe = frame.on('navigate', (event) => {
|
||||
console.log('Navigated to:', event.tab === 'docs' ? event.path : event.tab);
|
||||
});
|
||||
```
|
||||
|
||||
## As React components
|
||||
@@ -162,6 +180,12 @@ import { GitBookProvider, GitBookFrame } from '@gitbook/embed/react';
|
||||
]}
|
||||
tools={[/* ... */]}
|
||||
closeButton
|
||||
onNavigate={(event) => {
|
||||
if (event.tab === 'docs') {
|
||||
setCurrentDocsPage(event.path);
|
||||
}
|
||||
}}
|
||||
onClose={() => setHelpPanelOpen(false)}
|
||||
/>
|
||||
</GitBookProvider>
|
||||
```
|
||||
@@ -194,7 +218,7 @@ function MyComponent() {
|
||||
| **Post message** | `GitBook('postUserMessage', message)` | `frame.postUserMessage(message)` | Via frame client |
|
||||
| **Clear chat** | `GitBook('clearChat')` | `frame.clearChat()` | Via frame client |
|
||||
| **Configure** | `GitBook('configure', settings)` | `frame.configure(settings)` | Props on `<GitBookFrame>` |
|
||||
| **Event listeners** | ❌ | `frame.on(event, listener)` | Via frame client |
|
||||
| **Event listeners** | `GitBook('on', event, listener)` | `frame.on(event, listener)` | `onNavigate`, `onClose`, `onEscape` props |
|
||||
| **Unload** | `GitBook('unload')` | ❌ | ❌ |
|
||||
|
||||
## Method Signatures
|
||||
@@ -212,6 +236,7 @@ function MyComponent() {
|
||||
- `GitBook('postUserMessage', message: string)` - Post message to chat
|
||||
- `GitBook('clearChat')` - Clear chat history
|
||||
- `GitBook('configure', settings: {...})` - Configure widget
|
||||
- `GitBook('on', event: string, listener: Function)` → `() => void` - Listen to an [event](#events); returns a function that removes the listener (once the script has loaded)
|
||||
- `GitBook('unload')` - Unload widget
|
||||
|
||||
### NPM Package
|
||||
@@ -227,17 +252,30 @@ function MyComponent() {
|
||||
- `frame.postUserMessage(message: string)` → `void`
|
||||
- `frame.clearChat()` → `void`
|
||||
- `frame.configure(settings: Partial<GitBookEmbeddableConfiguration>)` → `void`
|
||||
- `frame.on(event: string, listener: Function)` → `() => void` (unsubscribe). Events: `close`, `escape`
|
||||
- `frame.on(event: string, listener: Function)` → `() => void` (unsubscribe). See [Events](#events)
|
||||
|
||||
### React Components
|
||||
|
||||
**Components:**
|
||||
- `<GitBookProvider siteURL: string>` - Provider component
|
||||
- `<GitBookFrame {...props}>` - Frame component (accepts all config options as props)
|
||||
- `<GitBookFrame {...props}>` - Frame component (accepts all config options as props, and `onNavigate`, `onClose`, `onEscape` callbacks for the [events](#events))
|
||||
|
||||
**Hooks:**
|
||||
- `useGitBook()` → `GitBookClient` (must be used within `<GitBookProvider>`)
|
||||
|
||||
## Events
|
||||
|
||||
| Event | Listener | When |
|
||||
|-------|----------|------|
|
||||
| `navigate` | `(event: GitBookNavigateEvent) => void` | The reader opened a page in the docs tab, or switched to another tab. Also sent for the tab the embed first opens on. |
|
||||
| `close` | `() => void` | The built-in close button was clicked. |
|
||||
| `escape` | `() => void` | Escape was pressed inside the frame and nothing in it (a menu, a dialog) used it. |
|
||||
|
||||
`GitBookNavigateEvent` is one of:
|
||||
|
||||
- `{ tab: 'docs', path: string, url: string, title: string }`: `path` is the page's path from the root of the site (e.g. `/getting-started/quickstart`) and can be passed back to `navigateToPage`; `url` is its published URL, without query parameters; `title` is the page's title.
|
||||
- `{ tab: 'assistant' }` or `{ tab: 'search' }`
|
||||
|
||||
# Configuration
|
||||
|
||||
Configuration options are available across usage methods as follows:
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
}
|
||||
},
|
||||
"sideEffects": false,
|
||||
"version": "0.7.0",
|
||||
"version": "0.8.0",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@gitbook/api": "catalog:",
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
import { beforeEach, describe, expect, it, mock } from 'bun:test';
|
||||
|
||||
import type { FrameToParentMessage } from './protocol';
|
||||
|
||||
// The frame talks to the iframe over postMessage; capture the receive handler to play the frame.
|
||||
let receive: (message: FrameToParentMessage) => void = () => {};
|
||||
mock.module('bidc', () => ({
|
||||
createChannel: () => ({
|
||||
send: () => {},
|
||||
receive: (handler: typeof receive) => {
|
||||
receive = handler;
|
||||
},
|
||||
}),
|
||||
}));
|
||||
|
||||
const { createGitBookFrame } = await import('./createGitBookFrame');
|
||||
|
||||
function createFrame() {
|
||||
return createGitBookFrame({ contentWindow: {}, allow: '' } as unknown as HTMLIFrameElement);
|
||||
}
|
||||
|
||||
describe('createGitBookFrame.on', () => {
|
||||
beforeEach(() => {
|
||||
receive = () => {};
|
||||
});
|
||||
|
||||
it('calls navigate listeners with the page the reader moved to', () => {
|
||||
const frame = createFrame();
|
||||
const events: unknown[] = [];
|
||||
frame.on('navigate', (event) => events.push(event));
|
||||
|
||||
receive({
|
||||
type: 'navigate',
|
||||
tab: 'docs',
|
||||
path: '/getting-started/quickstart',
|
||||
url: 'https://example.com/docs/getting-started/quickstart',
|
||||
title: 'Quickstart',
|
||||
});
|
||||
|
||||
expect(events).toEqual([
|
||||
{
|
||||
tab: 'docs',
|
||||
path: '/getting-started/quickstart',
|
||||
url: 'https://example.com/docs/getting-started/quickstart',
|
||||
title: 'Quickstart',
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it('calls navigate listeners when the reader switches to another tab', () => {
|
||||
const frame = createFrame();
|
||||
const events: unknown[] = [];
|
||||
frame.on('navigate', (event) => events.push(event));
|
||||
|
||||
receive({ type: 'navigate', tab: 'assistant' });
|
||||
|
||||
expect(events).toEqual([{ tab: 'assistant' }]);
|
||||
});
|
||||
|
||||
it('only calls the listeners of the event that was received', () => {
|
||||
const frame = createFrame();
|
||||
const calls: string[] = [];
|
||||
frame.on('close', () => calls.push('close'));
|
||||
frame.on('escape', () => calls.push('escape'));
|
||||
frame.on('navigate', () => calls.push('navigate'));
|
||||
|
||||
receive({ type: 'escape' });
|
||||
|
||||
expect(calls).toEqual(['escape']);
|
||||
});
|
||||
|
||||
it('stops calling a listener once it is unsubscribed', () => {
|
||||
const frame = createFrame();
|
||||
const calls: string[] = [];
|
||||
const unsubscribe = frame.on('navigate', () => calls.push('navigate'));
|
||||
|
||||
unsubscribe();
|
||||
receive({ type: 'navigate', tab: 'search' });
|
||||
|
||||
expect(calls).toEqual([]);
|
||||
});
|
||||
});
|
||||
@@ -3,6 +3,7 @@ import { createChannel } from 'bidc';
|
||||
import type {
|
||||
FrameToParentMessage,
|
||||
GitBookEmbeddableConfiguration,
|
||||
GitBookFrameEvents,
|
||||
ParentToFrameMessage,
|
||||
} from './protocol';
|
||||
|
||||
@@ -42,8 +43,11 @@ export type GitBookFrameClient = {
|
||||
*
|
||||
* - `close`: the built-in close button was clicked.
|
||||
* - `escape`: Escape was pressed inside the frame and nothing in it (a menu, a dialog) used it.
|
||||
* - `navigate`: the reader opened a page in the docs tab, or switched to another tab.
|
||||
*/
|
||||
on: (event: string, listener: (...args: any[]) => void) => () => void;
|
||||
on<E extends keyof GitBookFrameEvents>(event: E, listener: GitBookFrameEvents[E]): () => void;
|
||||
// Kept so callers typed against the earlier `string` signature still compile.
|
||||
on(event: string, listener: (...args: any[]) => void): () => void;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -67,9 +71,16 @@ export function createGitBookFrame(iframe: HTMLIFrameElement): GitBookFrameClien
|
||||
|
||||
channel.receive((message: FrameToParentMessage) => {
|
||||
console.log('[gitbook:embed] received message', message);
|
||||
if (message.type === 'close' || message.type === 'escape') {
|
||||
const listeners = events.get(message.type) || [];
|
||||
listeners.forEach((listener) => listener());
|
||||
switch (message.type) {
|
||||
case 'close':
|
||||
case 'escape':
|
||||
emit(message.type);
|
||||
break;
|
||||
case 'navigate': {
|
||||
const { type: _type, ...event } = message;
|
||||
emit('navigate', event);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -79,6 +90,12 @@ export function createGitBookFrame(iframe: HTMLIFrameElement): GitBookFrameClien
|
||||
};
|
||||
|
||||
const events = new Map<string, ((...args: any[]) => void)[]>();
|
||||
const emit = <E extends keyof GitBookFrameEvents>(
|
||||
event: E,
|
||||
...args: Parameters<GitBookFrameEvents[E]>
|
||||
) => {
|
||||
(events.get(event) || []).forEach((listener) => listener(...args));
|
||||
};
|
||||
|
||||
const configuration: GitBookEmbeddableConfiguration = {
|
||||
tabs: ['assistant', 'search', 'docs'],
|
||||
@@ -102,7 +119,7 @@ export function createGitBookFrame(iframe: HTMLIFrameElement): GitBookFrameClien
|
||||
sendToFrame({ type: 'configure', settings: configuration });
|
||||
},
|
||||
clearChat: () => sendToFrame({ type: 'clearChat' }),
|
||||
on: (event, listener) => {
|
||||
on: (event: string, listener: (...args: any[]) => void) => {
|
||||
const listeners = events.get(event) || [];
|
||||
listeners.push(listener);
|
||||
events.set(event, listeners);
|
||||
|
||||
@@ -134,6 +134,38 @@ export type ParentToFrameMessage =
|
||||
type: 'navigateToAssistant';
|
||||
};
|
||||
|
||||
/**
|
||||
* Where the reader is in the embed, sent with the `navigate` event.
|
||||
*/
|
||||
export type GitBookNavigateEvent =
|
||||
| {
|
||||
tab: 'docs';
|
||||
/**
|
||||
* Path of the page from the root of the site (e.g. `/getting-started/quickstart`),
|
||||
* in the form `navigateToPage` accepts.
|
||||
*/
|
||||
path: string;
|
||||
/** Published URL of the page, without query parameters. */
|
||||
url: string;
|
||||
/** Title of the page. */
|
||||
title: string;
|
||||
}
|
||||
| {
|
||||
tab: 'assistant' | 'search';
|
||||
};
|
||||
|
||||
/**
|
||||
* Events emitted by the frame, and the arguments their listeners receive.
|
||||
*/
|
||||
export type GitBookFrameEvents = {
|
||||
/** The built-in close button was clicked. */
|
||||
close: () => void;
|
||||
/** Escape was pressed inside the frame and nothing in it (a menu, a dialog) used it. */
|
||||
escape: () => void;
|
||||
/** The reader opened a page in the docs tab, or switched to another tab. */
|
||||
navigate: (event: GitBookNavigateEvent) => void;
|
||||
};
|
||||
|
||||
/**
|
||||
* Messages sent from the frame to the parent.
|
||||
*/
|
||||
@@ -144,4 +176,7 @@ export type FrameToParentMessage =
|
||||
| {
|
||||
/** Escape was pressed inside the frame and nothing in the frame handled it. */
|
||||
type: 'escape';
|
||||
};
|
||||
}
|
||||
| ({
|
||||
type: 'navigate';
|
||||
} & GitBookNavigateEvent);
|
||||
|
||||
@@ -6,11 +6,21 @@ import type {
|
||||
GetFrameURLOptions,
|
||||
GitBookEmbeddableConfiguration,
|
||||
GitBookFrameClient,
|
||||
GitBookNavigateEvent,
|
||||
} from '../client';
|
||||
import { useGitBook } from './GitBookProvider';
|
||||
|
||||
export type GitBookFrameProps = {
|
||||
className?: string;
|
||||
|
||||
/** Called when the reader opens a page in the docs tab, or switches to another tab. */
|
||||
onNavigate?: (event: GitBookNavigateEvent) => void;
|
||||
|
||||
/** Called when the built-in close button is clicked. */
|
||||
onClose?: () => void;
|
||||
|
||||
/** Called when Escape is pressed inside the frame and nothing in it (a menu, a dialog) used it. */
|
||||
onEscape?: () => void;
|
||||
} & GetFrameURLOptions &
|
||||
Partial<GitBookEmbeddableConfiguration>;
|
||||
|
||||
@@ -32,6 +42,9 @@ export function GitBookFrame(props: GitBookFrameProps) {
|
||||
trademark = true,
|
||||
closeButton = false,
|
||||
assistantName,
|
||||
onNavigate,
|
||||
onClose,
|
||||
onEscape,
|
||||
} = props;
|
||||
|
||||
const frameRef = useRef<HTMLIFrameElement>(null);
|
||||
@@ -49,6 +62,24 @@ export function GitBookFrame(props: GitBookFrameProps) {
|
||||
}
|
||||
}, [gitbook]);
|
||||
|
||||
// Read through a ref so inline callbacks don't resubscribe on every render.
|
||||
const handlers = useRef({ onNavigate, onClose, onEscape });
|
||||
useEffect(() => {
|
||||
handlers.current = { onNavigate, onClose, onEscape };
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (!gitbookFrame) {
|
||||
return;
|
||||
}
|
||||
const unsubscribes = [
|
||||
gitbookFrame.on('navigate', (event) => handlers.current.onNavigate?.(event)),
|
||||
gitbookFrame.on('close', () => handlers.current.onClose?.()),
|
||||
gitbookFrame.on('escape', () => handlers.current.onEscape?.()),
|
||||
];
|
||||
return () => unsubscribes.forEach((unsubscribe) => unsubscribe());
|
||||
}, [gitbookFrame]);
|
||||
|
||||
useEffect(() => {
|
||||
gitbookFrame?.configure({
|
||||
tabs,
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
import { describe, expect, it } from 'bun:test';
|
||||
|
||||
import type { GitBookFrameClient, GitBookFrameEvents } from '../client';
|
||||
import { createFrameEventRelay } from './events';
|
||||
|
||||
type Listeners = { [E in keyof GitBookFrameEvents]?: GitBookFrameEvents[E][] };
|
||||
|
||||
/** A frame client that only records listeners, so a test can emit events from the frame. */
|
||||
function createFakeFrame() {
|
||||
const listeners: Listeners = {};
|
||||
const frame = {
|
||||
on: (event: keyof GitBookFrameEvents, listener: (...args: any[]) => void) => {
|
||||
(listeners[event] ??= []).push(listener);
|
||||
return () => {
|
||||
listeners[event] = listeners[event]?.filter((l) => l !== listener) as any;
|
||||
};
|
||||
},
|
||||
} as unknown as GitBookFrameClient;
|
||||
const emit = (event: keyof GitBookFrameEvents, ...args: any[]) =>
|
||||
listeners[event]?.forEach((listener) => (listener as any)(...args));
|
||||
return { frame, emit };
|
||||
}
|
||||
|
||||
describe('createFrameEventRelay', () => {
|
||||
it('forwards events from the attached frame to listeners registered before it existed', () => {
|
||||
const relay = createFrameEventRelay();
|
||||
const events: unknown[] = [];
|
||||
relay.on('navigate', (event) => events.push(event));
|
||||
|
||||
const { frame, emit } = createFakeFrame();
|
||||
relay.attach(frame);
|
||||
emit('navigate', { tab: 'search' });
|
||||
|
||||
expect(events).toEqual([{ tab: 'search' }]);
|
||||
});
|
||||
|
||||
it('keeps listeners when the frame is replaced, and ignores the old frame', () => {
|
||||
const relay = createFrameEventRelay();
|
||||
const events: unknown[] = [];
|
||||
relay.on('navigate', (event) => events.push(event));
|
||||
|
||||
const first = createFakeFrame();
|
||||
relay.attach(first.frame);
|
||||
const second = createFakeFrame();
|
||||
relay.attach(second.frame);
|
||||
|
||||
first.emit('navigate', { tab: 'search' });
|
||||
second.emit('navigate', { tab: 'assistant' });
|
||||
|
||||
expect(events).toEqual([{ tab: 'assistant' }]);
|
||||
});
|
||||
|
||||
it('stops calling a listener once it is unsubscribed', () => {
|
||||
const relay = createFrameEventRelay();
|
||||
const calls: string[] = [];
|
||||
const unsubscribe = relay.on('close', () => calls.push('close'));
|
||||
|
||||
const { frame, emit } = createFakeFrame();
|
||||
relay.attach(frame);
|
||||
unsubscribe();
|
||||
emit('close');
|
||||
|
||||
expect(calls).toEqual([]);
|
||||
});
|
||||
|
||||
it('stops forwarding once detached', () => {
|
||||
const relay = createFrameEventRelay();
|
||||
const calls: string[] = [];
|
||||
relay.on('escape', () => calls.push('escape'));
|
||||
|
||||
const { frame, emit } = createFakeFrame();
|
||||
relay.attach(frame);
|
||||
relay.detach();
|
||||
emit('escape');
|
||||
|
||||
expect(calls).toEqual([]);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,40 @@
|
||||
import type { GitBookFrameClient, GitBookFrameEvents } from '../client';
|
||||
|
||||
const FRAME_EVENTS: (keyof GitBookFrameEvents)[] = ['close', 'escape', 'navigate'];
|
||||
|
||||
/**
|
||||
* Hold the host's listeners outside any one frame: the widget rebuilds its iframe on a new `init`
|
||||
* and only creates it once opened, but `GitBook('on', …)` can be called at any time.
|
||||
*/
|
||||
export function createFrameEventRelay() {
|
||||
const listeners = new Map<keyof GitBookFrameEvents, Set<(...args: any[]) => void>>();
|
||||
let detachFrame: (() => void) | undefined;
|
||||
|
||||
const detach = () => {
|
||||
detachFrame?.();
|
||||
detachFrame = undefined;
|
||||
};
|
||||
|
||||
return {
|
||||
on<E extends keyof GitBookFrameEvents>(event: E, listener: GitBookFrameEvents[E]) {
|
||||
const set = listeners.get(event) ?? new Set();
|
||||
set.add(listener);
|
||||
listeners.set(event, set);
|
||||
return () => {
|
||||
set.delete(listener);
|
||||
};
|
||||
},
|
||||
|
||||
attach(frame: GitBookFrameClient) {
|
||||
detach();
|
||||
const unsubscribes = FRAME_EVENTS.map((event) =>
|
||||
frame.on(event, (...args: any[]) => {
|
||||
listeners.get(event)?.forEach((listener) => listener(...args));
|
||||
})
|
||||
);
|
||||
detachFrame = () => unsubscribes.forEach((unsubscribe) => unsubscribe());
|
||||
},
|
||||
|
||||
detach,
|
||||
};
|
||||
}
|
||||
@@ -1,13 +1,14 @@
|
||||
import './style.css';
|
||||
|
||||
import {
|
||||
type CreateGitBookOptions,
|
||||
type GetFrameURLOptions,
|
||||
type GitBookClient,
|
||||
type GitBookEmbeddableConfiguration,
|
||||
type GitBookFrameClient,
|
||||
type GitBookFrameEvents,
|
||||
createGitBook,
|
||||
} from '../client';
|
||||
import { createFrameEventRelay } from './events';
|
||||
|
||||
export type GitBook = () => void;
|
||||
|
||||
@@ -35,7 +36,11 @@ type StandaloneCalls =
|
||||
// Navigate to a page
|
||||
| ['navigateToPage', string]
|
||||
// Navigate to the assistant
|
||||
| ['navigateToAssistant'];
|
||||
| ['navigateToAssistant']
|
||||
// Listen to an event from the embed, returns a function to stop listening
|
||||
| {
|
||||
[E in keyof GitBookFrameEvents]: ['on', E, GitBookFrameEvents[E]];
|
||||
}[keyof GitBookFrameEvents];
|
||||
|
||||
type StandaloneConfiguration = {
|
||||
/** Configure the button to open the embed */
|
||||
@@ -47,7 +52,7 @@ type StandaloneConfiguration = {
|
||||
};
|
||||
};
|
||||
|
||||
export type GitBookStandalone = ((...args: StandaloneCalls) => void) & {
|
||||
export type GitBookStandalone = ((...args: StandaloneCalls) => void | (() => void)) & {
|
||||
q?: StandaloneCalls[];
|
||||
};
|
||||
|
||||
@@ -56,6 +61,7 @@ let _client: GitBookClient | undefined;
|
||||
let _frame: GitBookFrameClient | undefined;
|
||||
let frameOptions: GetFrameURLOptions | undefined;
|
||||
let frameConfigured = false;
|
||||
const frameEvents = createFrameEventRelay();
|
||||
let frameConfiguration: GitBookEmbeddableConfiguration & StandaloneConfiguration = {
|
||||
button: {
|
||||
label: 'Ask',
|
||||
@@ -152,6 +158,7 @@ function getIframe() {
|
||||
widgetWindow.classList.add('hidden');
|
||||
widgetButton.classList.remove('open');
|
||||
});
|
||||
frameEvents.attach(_frame);
|
||||
// A new frame starts from the site's own defaults, so replay whatever the host configured.
|
||||
if (frameConfigured) {
|
||||
_frame.configure(frameConfiguration);
|
||||
@@ -160,7 +167,7 @@ function getIframe() {
|
||||
return { iframe: widgetIframe, frame: _frame };
|
||||
}
|
||||
|
||||
const GitBook = (...args: StandaloneCalls) => {
|
||||
const GitBook = (...args: StandaloneCalls): void | (() => void) => {
|
||||
switch (args[0]) {
|
||||
case 'init': {
|
||||
// `~gitbook/embed/script.js` already calls `init`, so an integrator following the docs
|
||||
@@ -185,6 +192,7 @@ const GitBook = (...args: StandaloneCalls) => {
|
||||
widgetIframe.remove();
|
||||
widgetIframe = undefined;
|
||||
_frame = undefined;
|
||||
frameEvents.detach();
|
||||
if (wasOpen) {
|
||||
getIframe();
|
||||
}
|
||||
@@ -194,6 +202,7 @@ const GitBook = (...args: StandaloneCalls) => {
|
||||
case 'unload':
|
||||
_client = undefined;
|
||||
_frame = undefined;
|
||||
frameEvents.detach();
|
||||
widgetIframe?.remove();
|
||||
widgetIframe = undefined;
|
||||
frameOptions = undefined;
|
||||
@@ -272,6 +281,9 @@ const GitBook = (...args: StandaloneCalls) => {
|
||||
case 'navigateToAssistant':
|
||||
getIframe().frame.navigateToAssistant();
|
||||
break;
|
||||
case 'on':
|
||||
// Not `getIframe()`: listening shouldn't load the frame before the reader opens it.
|
||||
return frameEvents.on(args[1], args[2]);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,94 @@
|
||||
# gitbook
|
||||
|
||||
## 0.29.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 7ad3fff: Open a link in the same or a new tab when its author chose one, instead of the site-wide external links setting.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4eb32b1: Keep links in generated Markdown usable outside the source page.
|
||||
- 13c0ff0: Handle optional emoji and icon values when rendering tags.
|
||||
- 5755e6d: Point agents to the site MCP server from Markdown pages, the page HTML, llms.txt and llms-full.txt.
|
||||
- bd38317: Serve the site AI Catalog as specification version 0.9, with identifiers in its `urn:air:{publisher}:{name}:{kind}` format.
|
||||
- 960d7ec: Fade the bottom of collapsed code blocks so readers can tell there is more code, matching the editor.
|
||||
- 818cbbe: Answer Assistant questions with medium reasoning instead of low, matching AI search.
|
||||
- ddccd3d: Bump Next.js to 16.4.6 and OpenNext (Cloudflare 1.20.17, AWS 4.1.16), keeping the dev-mode OOM patch.
|
||||
- b0f3822: Bump `@opennextjs/aws` to 4.2.0 and `@opennextjs/cloudflare` to 1.20.18.
|
||||
- a3d37f3: Bump @opennextjs/aws to 4.2.1 and @opennextjs/cloudflare to 1.20.19.
|
||||
- 0c3a51e: Fix horizontal page scroll caused by card carousels bleeding past the viewport.
|
||||
- 68e3dac: Retry direct site search on the site's own domain after a network error or timeout.
|
||||
- 22df281: Name a site's MCP server as docs, such as "Acme Docs MCP Server", in AI clients and in the install commands and links, so it is not confused with a product's own MCP server.
|
||||
- a9535cd: Emit an `escape` event from the Docs Embed when Escape is pressed inside it and nothing in the embed used it, so the host can close its own panel.
|
||||
- 36cde87: Emit a `navigate` event from the Docs Embed when the reader opens a page or switches tab, with the page's path, URL and title. Listen to it, and to `close` and `escape`, with `GitBook('on', ...)` in the standalone script or the `onNavigate`, `onClose` and `onEscape` props of `<GitBookFrame>`.
|
||||
- 6b2e806: Use the site's suggested questions when the embedded Assistant receives an empty or omitted list, including from older SDKs.
|
||||
- fa87151: Render Heading 4 blocks.
|
||||
- 7e2658a: Reduce the wait after typing in site search to 100 ms.
|
||||
- 7af524a: Prevent self-redirect loops and skip redirects targeting hidden adaptive content.
|
||||
- ae1e370: Fix the table of contents keeping published pages busy in older Chrome versions such as Chrome 130.
|
||||
- c85d84f: Fix `'use cache'` entries never being stored in or read from R2 and the regional cache on Cloudflare.
|
||||
- 5997a66: Remove duplicated declarations from the global stylesheet.
|
||||
- c3df458: Keep inline code and highlighted text readable when a paragraph crosses the bottom edge of a background page cover.
|
||||
- 1ecd2ca: Keep published pages available when an integration block needs its connection or settings checked.
|
||||
- 7cee30e: Keep published site search results visible while visitors refine a query.
|
||||
- 265ca4b: Add a skip link, keyboard navigation between content tabs, focusable table of contents toggles, and hide decorative icons from assistive technologies.
|
||||
- 76e1abd: Apply the default language-aware search scope to legacy search links.
|
||||
- 9fcde5f: Reduce memory and CPU use of the OpenNext workers: minify the middleware, resolve the site context once per request, cache parsed OpenAPI descriptions across a spec, drop the redis client and the unused force-revalidate route from the server bundle.
|
||||
- 9b5b8c8: Load the OpenAPI stylesheet only on pages with OpenAPI blocks.
|
||||
- a3b5ce5: Render the llms.txt directive as the first element in the page body so agents find it before the navigation.
|
||||
- 21b96e1: Count only MCP tool calls in the MCP request insights event.
|
||||
- adbc358: Answer GET requests to the MCP endpoint with an `Allow: POST` header.
|
||||
- fa7d4a9: Challenge MCP clients to authorize again when a visitor-auth site rejects their bearer token.
|
||||
- 596b8c5: Support MCP protocol version 2025-11-25 on published site MCP servers.
|
||||
- adfd921: Limit the MCP `searchDocumentation` tool to one language: the one the client passes in the new optional `language` argument, or else the language of the site variant the MCP endpoint is served from.
|
||||
- 19660ed: Flush insights events when the page is hidden, preload the search index at low priority and prioritize the dark page cover on dark-default sites.
|
||||
- a035d19: Keep published revision URLs out of search results.
|
||||
- 867da7b: Resolve GitBook links in OpenAPI schema descriptions to the site's published URLs instead of the editor.
|
||||
- 43df49c: List the operations of an OpenAPI tag page after its description.
|
||||
- 506aa78: Publish an OpenSearch description on every site so browsers can offer its search from the address bar.
|
||||
- c09da2e: Show H3 headings in the page outline.
|
||||
- d2be885: Render a page's search keywords in its metadata.
|
||||
- 6cdbafc: Respect disabled change request previews on published sites.
|
||||
- 19660ed: Fix the search button accessible name, hoverable link previews, IME-safe Enter on Safari, cookie banner semantics, active outline item announcement and textarea shrinking.
|
||||
- d2c56e5: Send change request and revision links to the site preview, where GitBook members can sign in, when a site turns off public change request previews.
|
||||
- 65210b7: Respect reduced motion for enter and exit animations, keep the header separator and input focus visible in forced colors mode, and size mobile surfaces with dynamic viewport units.
|
||||
- 3e86382: Send only the site origin as referrer to third parties, and only let the embedding page open the embed messaging channel.
|
||||
- 7d1cd9f: Remove the ChatGPT-specific plain text response for Markdown and llms.txt routes; these now always serve `text/markdown`.
|
||||
- e237a74: Remove the MCP server link from the screen-reader-only agent directive in page HTML.
|
||||
- 3ec61a7: Drop description HTML supplied by OpenAPI specs and sanitize example descriptions that could render HTML.
|
||||
- 63a4a98: Track the displayed position and search request ID when a visitor opens a search result.
|
||||
- cf8c3d5: Send site searches straight to the search API when the site hands out a search pass, and use the site's search route when it does not or when the API refuses a search.
|
||||
- 48fe81b: Include navigation-hidden published spaces in direct browser search lookup and avoid latching on unknown spaces.
|
||||
- adbec4c: Send each search once on sites without a top header, and make search work between 768 and 1023 px wide.
|
||||
- 8f5175e: Show loading rows shaped like search results while search waits for the server.
|
||||
- 386a5c1: Show search results with one-line breadcrumbs and no icons or shortcut hints, and select the result under the mouse.
|
||||
- b145bfc: Stop caching site search results in the framework cache, so every search reaches the API.
|
||||
- 7856e08: Show one server-ordered search list and open its top result on Enter.
|
||||
- a10eff9: Load the data of the page actions menu from the menu itself, so it can be cached apart from the page body.
|
||||
- 2597ce7: Load Shiki languages and themes from static assets instead of bundling them.
|
||||
- 1c71849: Follow the API's cache lifetime for site data, so a site preview shows layout changes soon after they are saved.
|
||||
- 7f08fb1: Show site revision previews as their site revision pins them, including OpenAPI specs.
|
||||
- b5f7e55: Render small cards in a responsive four-column grid and carousel.
|
||||
- 8dd308b: Ignore tag category references when displaying assigned tags and update filters.
|
||||
- 4cbbda7: Update the GitBook API SDK for site revision responses.
|
||||
- 060f1f6: Fix wide content in Updates blocks overflowing into the page outline.
|
||||
- 17c1169: Restrict updates pagination to single top-level Updates blocks.
|
||||
- 7a025d6: Fix Updates tag loading skeleton and scroll to top on pagination.
|
||||
- 22f3778: Paginate published Updates pages with more than 50 entries into 20-entry pages.
|
||||
- Updated dependencies [a9535cd]
|
||||
- Updated dependencies [36cde87]
|
||||
- Updated dependencies [6b2e806]
|
||||
- Updated dependencies [9fcde5f]
|
||||
- Updated dependencies [265ca4b]
|
||||
- Updated dependencies [262749a]
|
||||
- Updated dependencies [b1cfef2]
|
||||
- Updated dependencies [65210b7]
|
||||
- @gitbook/embed@0.8.0
|
||||
- @gitbook/icons@0.6.0
|
||||
- @gitbook/react-openapi@2.0.2
|
||||
- @gitbook/react-contentkit@0.7.19
|
||||
|
||||
## 0.28.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
GitBookAPI,
|
||||
SiteSocialAccountPlatform,
|
||||
} from '@gitbook/api';
|
||||
import type { GitBookStandalone } from '@gitbook/embed';
|
||||
import type { GitBookNavigateEvent, GitBookStandalone } from '@gitbook/embed';
|
||||
|
||||
import { getContentTestURL, getGitBookPreviewURL, getSiteAPIToken } from '../tests/utils';
|
||||
import {
|
||||
@@ -442,6 +442,48 @@ const searchTestCases: Test[] = [
|
||||
expect(new URL(page.url()).pathname).toBe(new URL(topResult.href, page.url()).pathname);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Search - Enter opens the visible result while a new query loads',
|
||||
url: `blocks/lists${getCustomizationURL({
|
||||
ai: {
|
||||
mode: CustomizationAIMode.None,
|
||||
},
|
||||
})}`,
|
||||
screenshot: false,
|
||||
run: async (page) => {
|
||||
await waitForHydration(page);
|
||||
const heldSearch = await holdSearchRequests(page);
|
||||
const searchInput = page.getByTestId('search-input');
|
||||
const searchPopup = page.getByTestId('search-popover');
|
||||
await searchInput.focus();
|
||||
await page.waitForURL(/[?&]q=/);
|
||||
await searchInput.pressSequentially('gitbook');
|
||||
const initialSearch = await heldSearch('gitbook');
|
||||
const { siteSpaceId } = initialSearch.request().postDataJSON().scope;
|
||||
const topResult = searchPageResult(
|
||||
initialSearch,
|
||||
siteSpaceId,
|
||||
'Headings',
|
||||
'blocks/headings'
|
||||
);
|
||||
await initialSearch.fulfill({ json: [topResult] });
|
||||
const firstResult = searchPopup.getByTestId('search-page-result').first();
|
||||
await expect(firstResult).toHaveAttribute('href', topResult.href);
|
||||
|
||||
await searchInput.pressSequentially(' docs');
|
||||
const pendingSearch = await heldSearch('gitbook docs');
|
||||
await expect(searchPopup.locator('output[aria-busy="true"]')).toBeVisible();
|
||||
await expect(firstResult).toHaveAttribute('href', topResult.href);
|
||||
await expect(searchPopup.locator('[data-search-placeholder-row]')).toHaveCount(0);
|
||||
|
||||
await searchInput.press('Enter');
|
||||
await expect(searchPopup).toBeHidden();
|
||||
await expect
|
||||
.poll(() => new URL(page.url()).pathname)
|
||||
.toBe(new URL(topResult.href, page.url()).pathname);
|
||||
await pendingSearch.abort().catch(() => {});
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Search - Enter opens the result under the mouse',
|
||||
url: `blocks/lists${getCustomizationURL({
|
||||
@@ -739,7 +781,7 @@ const searchPassTestCases: Test[] = [
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Dropped API request: the search falls back to the route after its time limit',
|
||||
name: 'Dropped API request: search uses the site proxy before falling back to the route',
|
||||
url: '',
|
||||
screenshot: false,
|
||||
run: async (page) => {
|
||||
@@ -749,6 +791,18 @@ const searchPassTestCases: Test[] = [
|
||||
await page.route(SEARCH_API_URL, (route) => {
|
||||
apiCalls.push(route.request());
|
||||
});
|
||||
const proxyCalls: Request[] = [];
|
||||
await page.route(
|
||||
/\/~gitbook\/search-direct\/orgs\/[^/]+\/sites\/[^/]+$/,
|
||||
async (route) => {
|
||||
proxyCalls.push(route.request());
|
||||
if (proxyCalls.length === 1) {
|
||||
await route.fulfill({ json: { items: [SEARCH_PASS_RECORD] } });
|
||||
return;
|
||||
}
|
||||
await route.fulfill({ status: 502 });
|
||||
}
|
||||
);
|
||||
const routeSearches = trackRouteSearches(page);
|
||||
await waitForCookiesDialog(page);
|
||||
|
||||
@@ -756,12 +810,24 @@ const searchPassTestCases: Test[] = [
|
||||
await typeSearch(page, 'gitbook');
|
||||
await expect.poll(() => apiCalls.length, { timeout: 30_000 }).toBe(1);
|
||||
await page.clock.fastForward(5_000);
|
||||
await expect.poll(() => routeSearches.length, { timeout: 30_000 }).toBe(1);
|
||||
expect(routeSearches[0]?.headers()['x-gitbook-search-fallback']).toBe('timeout');
|
||||
expect((await routeSearches[0]?.response())?.status()).toBe(200);
|
||||
await expect(
|
||||
page
|
||||
.getByTestId('search-record-result')
|
||||
.filter({ hasText: SEARCH_PASS_RECORD.title })
|
||||
).toBeVisible({ timeout: 30_000 });
|
||||
expect(routeSearches).toHaveLength(0);
|
||||
expect((await proxyCalls[0]?.allHeaders())?.['x-gitbook-search-pass']).toBe(
|
||||
'test-search-pass-1'
|
||||
);
|
||||
|
||||
await typeSearch(page, ' editor');
|
||||
await expect.poll(() => routeSearches.length, { timeout: 30_000 }).toBe(1);
|
||||
expect(routeSearches[0]?.headers()['x-gitbook-search-fallback']).toBe('502');
|
||||
expect((await routeSearches[0]?.response())?.status()).toBe(200);
|
||||
|
||||
await typeSearch(page, ' blocks');
|
||||
await expect.poll(() => routeSearches.length, { timeout: 30_000 }).toBe(2);
|
||||
expect(proxyCalls).toHaveLength(2);
|
||||
expect(apiCalls).toHaveLength(1);
|
||||
},
|
||||
},
|
||||
@@ -3494,6 +3560,41 @@ const testCases: TestsCase[] = [
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'API - navigate event',
|
||||
url: '',
|
||||
screenshot: false,
|
||||
run: async (page) => {
|
||||
await page.evaluate(() => {
|
||||
const GitBook = window.GitBook as unknown as GitBookStandalone;
|
||||
const host = window as unknown as {
|
||||
navigateEvents: GitBookNavigateEvent[];
|
||||
};
|
||||
host.navigateEvents = [];
|
||||
GitBook('on', 'navigate', (event) => host.navigateEvents.push(event));
|
||||
GitBook('navigateToPage', '/text-page');
|
||||
});
|
||||
const navigateEvents = () =>
|
||||
page.evaluate(
|
||||
() =>
|
||||
(window as unknown as { navigateEvents: GitBookNavigateEvent[] })
|
||||
.navigateEvents
|
||||
);
|
||||
|
||||
await expect.poll(navigateEvents, { timeout: 20000 }).toContainEqual({
|
||||
tab: 'docs',
|
||||
path: '/text-page',
|
||||
url: expect.stringMatching(/^[^?#]+\/text-page$/),
|
||||
title: 'Text page',
|
||||
});
|
||||
|
||||
const iframe = page.frameLocator('#gitbook-widget-iframe');
|
||||
await iframe.getByTestId('embed-tab-assistant').click();
|
||||
await expect
|
||||
.poll(navigateEvents, { timeout: 20000 })
|
||||
.toContainEqual({ tab: 'assistant' });
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'API - postUserMessage',
|
||||
url: '',
|
||||
|
||||
@@ -120,6 +120,11 @@ const nextConfig = {
|
||||
],
|
||||
},
|
||||
|
||||
// Shiki grammars and themes are read from disk at runtime, see shiki-assets.server.ts.
|
||||
outputFileTracingIncludes: {
|
||||
'/**': ['./public/~gitbook/static/shiki/**/*'],
|
||||
},
|
||||
|
||||
webpack(config, { isServer }) {
|
||||
if (isServer) {
|
||||
// mcp-handler only needs redis for SSE, which we disable: keep the client out of the server bundle.
|
||||
|
||||
@@ -12,6 +12,13 @@
|
||||
"observability": {
|
||||
"enabled": false,
|
||||
},
|
||||
// Lets the server read Shiki grammars and themes without a network hop.
|
||||
// run_worker_first keeps every request going to the worker, as before.
|
||||
"assets": {
|
||||
"directory": "../../.open-next/assets",
|
||||
"binding": "ASSETS",
|
||||
"run_worker_first": true,
|
||||
},
|
||||
"vars": {
|
||||
"NEXT_CACHE_DO_QUEUE_DISABLE_SQLITE": "true",
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gitbook",
|
||||
"version": "0.28.2",
|
||||
"version": "0.29.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@base-ui/react": "catalog:",
|
||||
@@ -19,9 +19,9 @@
|
||||
"@gitbook/react-math": "workspace:*",
|
||||
"@gitbook/react-openapi": "workspace:*",
|
||||
"@mermaid-js/mermaid-zenuml": "^0.2.2",
|
||||
"@modelcontextprotocol/sdk": "1.17.5",
|
||||
"@opennextjs/aws": "4.2.0",
|
||||
"@opennextjs/cloudflare": "1.20.18",
|
||||
"@modelcontextprotocol/sdk": "1.26.0",
|
||||
"@opennextjs/aws": "4.2.1",
|
||||
"@opennextjs/cloudflare": "1.20.19",
|
||||
"@panzoom/panzoom": "^4.6.1",
|
||||
"@sindresorhus/fnv1a": "^3.1.0",
|
||||
"@tailwindcss/container-queries": "^0.1.1",
|
||||
@@ -40,7 +40,7 @@
|
||||
"jsontoxml": "^1.0.1",
|
||||
"jwt-decode": "^4.0.0",
|
||||
"leven": "^4.1.0",
|
||||
"mcp-handler": "^1.0.2",
|
||||
"mcp-handler": "^1.1.0",
|
||||
"mdast-util-from-markdown": "^2.0.2",
|
||||
"mdast-util-frontmatter": "^2.0.1",
|
||||
"mdast-util-gfm": "^3.1.0",
|
||||
@@ -82,7 +82,7 @@
|
||||
"url-join": "^5.0.0",
|
||||
"usehooks-ts": "catalog:",
|
||||
"warn-once": "^0.1.1",
|
||||
"zod": "^3",
|
||||
"zod": "^3.25",
|
||||
"zod-to-json-schema": "^3.25.1",
|
||||
"zustand": "^5.0.3"
|
||||
},
|
||||
@@ -119,9 +119,9 @@
|
||||
},
|
||||
"scripts": {
|
||||
"generate": "./scripts/generate.sh",
|
||||
"generate:assets": "bun ./scripts/generate-mermaid-runtime.ts && bun ./scripts/generate-scalar-runtime.ts && bun ./scripts/download-fonts.ts",
|
||||
"generate:assets": "bun ./scripts/generate-shiki-assets.ts && bun ./scripts/generate-mermaid-runtime.ts && bun ./scripts/generate-scalar-runtime.ts && bun ./scripts/download-fonts.ts",
|
||||
"generate:fonts": "bun ./scripts/generate-font-faces.ts",
|
||||
"clean": "rm -rf ./.next && rm -rf ./public/~gitbook/static/icons && rm -rf ./public/~gitbook/static/math && rm -rf ./public/~gitbook/static/mermaid && rm -rf ./public/~gitbook/static/scalar && rm -rf ./public/~gitbook/static/fonts",
|
||||
"clean": "rm -rf ./.next && rm -rf ./public/~gitbook/static/icons && rm -rf ./public/~gitbook/static/math && rm -rf ./public/~gitbook/static/mermaid && rm -rf ./public/~gitbook/static/scalar && rm -rf ./public/~gitbook/static/fonts && rm -rf ./public/~gitbook/static/shiki",
|
||||
"dev": "bun run generate:assets && env-cmd --silent -f ../../.env.local next --webpack",
|
||||
"build": "bun run generate:assets && next build --webpack",
|
||||
"build:local": "bun run generate:assets && GITBOOK_URL=http://localhost:3000 next build --webpack",
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
import { spawn } from 'bun';
|
||||
|
||||
import type { DocumentBlockCode } from '@gitbook/api';
|
||||
|
||||
/**
|
||||
* Time the first highlights in fresh processes, where grammars and themes are loaded.
|
||||
* Usage: bun scripts/bench-highlight-cold.ts [runs]
|
||||
*/
|
||||
|
||||
const SAMPLES: Record<string, string> = {
|
||||
javascript: 'const answer = await fetch("/api").then((r) => r.json());',
|
||||
python: 'def greet(name: str) -> str:\n return f"Hello {name}"',
|
||||
vue: '<template><p>{{ msg }}</p></template>\n<script setup>\nconst msg = "hi";\n</script>',
|
||||
};
|
||||
|
||||
function codeBlock(syntax: string, code: string): DocumentBlockCode {
|
||||
return {
|
||||
object: 'block',
|
||||
type: 'code',
|
||||
data: { syntax },
|
||||
nodes: code.split('\n').map((text) => ({
|
||||
object: 'block',
|
||||
type: 'code-line',
|
||||
data: {},
|
||||
nodes: [{ object: 'text', leaves: [{ object: 'leaf', marks: [], text }] }],
|
||||
})),
|
||||
} as DocumentBlockCode;
|
||||
}
|
||||
|
||||
if (process.env.BENCH_CHILD) {
|
||||
const importStart = performance.now();
|
||||
const { highlight } = await import('../src/components/DocumentView/CodeBlock/highlight');
|
||||
const importMs = performance.now() - importStart;
|
||||
const start = performance.now();
|
||||
await Promise.all(
|
||||
Object.entries(SAMPLES).map(([syntax, code]) => highlight(codeBlock(syntax, code), []))
|
||||
);
|
||||
const firstMs = performance.now() - start;
|
||||
console.log(JSON.stringify({ importMs, firstMs, rssMB: process.memoryUsage().rss / 1e6 }));
|
||||
} else {
|
||||
const runs = Number(process.argv[2] ?? 5);
|
||||
const results: { importMs: number; firstMs: number; rssMB: number }[] = [];
|
||||
for (let i = 0; i < runs; i++) {
|
||||
const child = spawn(['bun', import.meta.path], {
|
||||
env: { ...process.env, BENCH_CHILD: '1' },
|
||||
stdout: 'pipe',
|
||||
});
|
||||
results.push(JSON.parse(await new Response(child.stdout).text()));
|
||||
}
|
||||
const median = (values: number[]) =>
|
||||
values.sort((a, b) => a - b)[Math.floor(values.length / 2)]!;
|
||||
console.log(
|
||||
JSON.stringify({
|
||||
runs,
|
||||
importMsMedian: Math.round(median(results.map((r) => r.importMs))),
|
||||
firstHighlightMsMedian: Math.round(median(results.map((r) => r.firstMs))),
|
||||
rssMBMedian: Math.round(median(results.map((r) => r.rssMB))),
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
import { $ } from 'bun';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { mkdir, rm, writeFile } from 'node:fs/promises';
|
||||
import { createRequire } from 'node:module';
|
||||
import { dirname, join } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { bundledLanguagesInfo } from 'shiki/langs';
|
||||
import { bundledThemesInfo } from 'shiki/themes';
|
||||
|
||||
/**
|
||||
* Write every Shiki language and theme as static JSON, so the app loads them on demand
|
||||
* instead of bundling them, and generate the catalog of their names.
|
||||
*/
|
||||
|
||||
const scriptDir = dirname(fileURLToPath(import.meta.url));
|
||||
const staticDir = join(scriptDir, '../public/~gitbook/static');
|
||||
const codeBlockDir = join(scriptDir, '../src/components/DocumentView/CodeBlock');
|
||||
const require = createRequire(import.meta.url);
|
||||
const { version } = require('shiki/package.json') as { version: string };
|
||||
|
||||
const languages: Record<string, string> = {};
|
||||
const languageGrammars: Record<string, string[]> = {};
|
||||
const grammars = new Map<string, string>();
|
||||
for (const info of bundledLanguagesInfo) {
|
||||
// A language module exports its embedded grammars followed by its own, in registration order.
|
||||
const registrations = (await info.import()).default;
|
||||
for (const registration of registrations) {
|
||||
const json = JSON.stringify(registration);
|
||||
const existing = grammars.get(registration.name);
|
||||
if (existing !== undefined && existing !== json) {
|
||||
throw new Error(`Grammar "${registration.name}" differs between languages`);
|
||||
}
|
||||
grammars.set(registration.name, json);
|
||||
}
|
||||
languageGrammars[info.id] = registrations.map((registration) => registration.name);
|
||||
languages[info.id] = info.id;
|
||||
for (const alias of info.aliases ?? []) {
|
||||
languages[alias] ??= info.id;
|
||||
}
|
||||
}
|
||||
|
||||
const themes: Record<string, { type: 'light' | 'dark' }> = {};
|
||||
const themeFiles = new Map<string, string>();
|
||||
for (const info of bundledThemesInfo) {
|
||||
themeFiles.set(info.id, JSON.stringify((await info.import()).default));
|
||||
themes[info.id] = { type: info.type };
|
||||
}
|
||||
|
||||
// Hash the content into the path: assets are served immutable, so any change needs a new URL.
|
||||
const hash = createHash('sha256');
|
||||
for (const [name, json] of [...grammars, ...themeFiles].sort(compareEntries)) {
|
||||
hash.update(name).update('\0').update(json).update('\0');
|
||||
}
|
||||
const assetsPath = `shiki/${version}-${hash.digest('hex').slice(0, 8)}`;
|
||||
|
||||
await rm(join(staticDir, 'shiki'), { force: true, recursive: true });
|
||||
await mkdir(join(staticDir, assetsPath, 'grammars'), { recursive: true });
|
||||
await mkdir(join(staticDir, assetsPath, 'themes'), { recursive: true });
|
||||
|
||||
// One file per grammar so embedded grammars are stored and downloaded once.
|
||||
for (const [name, json] of grammars) {
|
||||
await writeFile(join(staticDir, assetsPath, 'grammars', `${name}.json`), json);
|
||||
}
|
||||
for (const [id, json] of themeFiles) {
|
||||
await writeFile(join(staticDir, assetsPath, 'themes', `${id}.json`), json);
|
||||
}
|
||||
|
||||
await writeFile(
|
||||
join(codeBlockDir, 'shiki-catalog.ts'),
|
||||
`// Generated by scripts/generate-shiki-assets.ts, do not edit.
|
||||
|
||||
export const SHIKI_ASSETS_PATH = ${JSON.stringify(assetsPath)};
|
||||
|
||||
/** Every Shiki language id and alias, mapped to the id of its asset. */
|
||||
export const SHIKI_LANGUAGES: Record<string, string> = ${JSON.stringify(sorted(languages), null, 4)};
|
||||
|
||||
/** Grammars to register for each language, embedded ones first. */
|
||||
export const SHIKI_LANGUAGE_GRAMMARS: Record<string, string[]> = ${JSON.stringify(sorted(languageGrammars), null, 4)};
|
||||
|
||||
export function getShikiGrammarAssetPath(name: string): string {
|
||||
return \`\${SHIKI_ASSETS_PATH}/grammars/\${name}.json\`;
|
||||
}
|
||||
|
||||
export function getShikiThemeAssetPath(id: string): string {
|
||||
return \`\${SHIKI_ASSETS_PATH}/themes/\${id}.json\`;
|
||||
}
|
||||
`
|
||||
);
|
||||
|
||||
// Separate from the catalog: plain highlighting only needs theme types and ships in the eager chunk.
|
||||
await writeFile(
|
||||
join(codeBlockDir, 'shiki-themes.ts'),
|
||||
`// Generated by scripts/generate-shiki-assets.ts, do not edit.
|
||||
|
||||
/** Every bundled Shiki theme id, with its type. */
|
||||
export const SHIKI_THEMES: Record<string, { type: 'light' | 'dark' }> = ${JSON.stringify(sorted(themes), null, 4)};
|
||||
`
|
||||
);
|
||||
|
||||
// Format like the rest of the repo so regenerating doesn't leave the committed files modified.
|
||||
await $`bunx oxfmt ${join(codeBlockDir, 'shiki-catalog.ts')} ${join(codeBlockDir, 'shiki-themes.ts')}`.quiet();
|
||||
|
||||
function compareEntries([a]: [string, unknown], [b]: [string, unknown]) {
|
||||
// Code-point order keeps the output identical whatever the machine's locale.
|
||||
return a < b ? -1 : a > b ? 1 : 0;
|
||||
}
|
||||
|
||||
function sorted<T>(record: Record<string, T>) {
|
||||
return Object.fromEntries(Object.entries(record).sort(compareEntries));
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
import { $, Glob, file, gzipSync } from 'bun';
|
||||
import { stat } from 'node:fs/promises';
|
||||
import { dirname, join } from 'node:path';
|
||||
|
||||
/**
|
||||
* Measure how much of the build output is made of Shiki grammars and themes.
|
||||
* Usage: bun scripts/measure-shiki-bundles.ts next|cloudflare
|
||||
*/
|
||||
|
||||
const appPath = join(import.meta.dir, '..');
|
||||
const mode = process.argv[2];
|
||||
|
||||
// Every Shiki grammar carries a scopeName, so it is a cheap marker for grammar chunks.
|
||||
const GRAMMAR_MARKER = 'scopeName';
|
||||
|
||||
async function measureFiles(root: string, pattern: string) {
|
||||
let bytes = 0;
|
||||
let count = 0;
|
||||
let grammarBytes = 0;
|
||||
let grammarCount = 0;
|
||||
for await (const path of new Glob(pattern).scan({ cwd: root, onlyFiles: true })) {
|
||||
const content = await file(join(root, path)).text();
|
||||
const size = Buffer.byteLength(content);
|
||||
bytes += size;
|
||||
count += 1;
|
||||
if (content.includes(GRAMMAR_MARKER)) {
|
||||
grammarBytes += size;
|
||||
grammarCount += 1;
|
||||
}
|
||||
}
|
||||
return { bytes, count, grammarBytes, grammarCount };
|
||||
}
|
||||
|
||||
// Next keeps shiki external on the server, so its files reach the function through the trace.
|
||||
async function measurePageTrace() {
|
||||
const nftPath = join(
|
||||
appPath,
|
||||
'.next/server/app/sites/dynamic/[mode]/[siteURL]/[siteData]/(content)/[pagePath]/page.js.nft.json'
|
||||
);
|
||||
const { files } = (await file(nftPath).json()) as { files: string[] };
|
||||
let bytes = 0;
|
||||
let shikiBytes = 0;
|
||||
for (const relative of files) {
|
||||
const size = (await stat(join(dirname(nftPath), relative))).size;
|
||||
bytes += size;
|
||||
if (/@shikijs\/(langs|themes)|shiki\/dist\/(langs|themes)/.test(relative)) {
|
||||
shikiBytes += size;
|
||||
}
|
||||
}
|
||||
return { bytes, shikiBytes, count: files.length };
|
||||
}
|
||||
|
||||
async function measureNext() {
|
||||
const client = await measureFiles(join(appPath, '.next/static/chunks'), '**/*.js');
|
||||
const server = await measureFiles(join(appPath, '.next/server'), '**/*.js');
|
||||
const serverAll = await measureFiles(join(appPath, '.next/server'), '**/*');
|
||||
const trace = await measurePageTrace();
|
||||
return {
|
||||
pageTraceBytes: trace.bytes,
|
||||
pageTraceFiles: trace.count,
|
||||
pageTraceShikiAssetBytes: trace.shikiBytes,
|
||||
clientChunksBytes: client.bytes,
|
||||
clientChunksCount: client.count,
|
||||
clientGrammarChunksBytes: client.grammarBytes,
|
||||
clientGrammarChunksCount: client.grammarCount,
|
||||
serverBytes: serverAll.bytes,
|
||||
serverGrammarBytes: server.grammarBytes,
|
||||
serverGrammarFiles: server.grammarCount,
|
||||
};
|
||||
}
|
||||
|
||||
async function measureCloudflare() {
|
||||
const handlerPath = join(
|
||||
appPath,
|
||||
'.open-next/server-functions/default/packages/gitbook/handler.mjs'
|
||||
);
|
||||
const metafile = (await file(`${handlerPath}.meta.json`).json()) as {
|
||||
outputs: Record<string, { inputs: Record<string, { bytesInOutput: number }> }>;
|
||||
};
|
||||
const output = Object.values(metafile.outputs)[0];
|
||||
if (!output) {
|
||||
throw new Error('No output in handler metafile');
|
||||
}
|
||||
const shikiBytes = Object.entries(output.inputs).reduce(
|
||||
(total, [path, input]) =>
|
||||
path.includes('@shikijs/langs') || path.includes('@shikijs/themes')
|
||||
? total + input.bytesInOutput
|
||||
: total,
|
||||
0
|
||||
);
|
||||
|
||||
const dryRun =
|
||||
await $`bunx wrangler deploy --dry-run --config openNext/customWorkers/defaultWrangler.jsonc --env dev`
|
||||
.cwd(appPath)
|
||||
.quiet()
|
||||
.nothrow()
|
||||
.text();
|
||||
const upload = dryRun.match(/Total Upload: ([\d.]+) KiB \/ gzip: ([\d.]+) KiB/);
|
||||
|
||||
return {
|
||||
handlerBytes: (await stat(handlerPath)).size,
|
||||
handlerGzipBytes: gzipSync(await file(handlerPath).arrayBuffer()).byteLength,
|
||||
shikiBytes,
|
||||
uploadKiB: upload ? Number(upload[1]) : null,
|
||||
uploadGzipKiB: upload ? Number(upload[2]) : null,
|
||||
};
|
||||
}
|
||||
|
||||
if (mode === 'next') {
|
||||
console.log(JSON.stringify(await measureNext(), null, 2));
|
||||
} else if (mode === 'cloudflare') {
|
||||
console.log(JSON.stringify(await measureCloudflare(), null, 2));
|
||||
} else {
|
||||
throw new Error('Usage: bun scripts/measure-shiki-bundles.ts next|cloudflare');
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
import { type RouteParams, getDynamicSiteContext, getPagePathFromParams } from '@/app/utils';
|
||||
import { SitePage, generateSitePageMetadata } from '@/components/SitePage';
|
||||
import { parseUpdatesPageParam } from '@/lib/updates-url';
|
||||
|
||||
type PageProps = {
|
||||
params: Promise<RouteParams & { page: string }>;
|
||||
};
|
||||
|
||||
export default async function Page(props: PageProps) {
|
||||
const params = await props.params;
|
||||
const updatesPage = parseUpdatesPageParam(params.page);
|
||||
if (updatesPage === null) {
|
||||
notFound();
|
||||
}
|
||||
const { context } = await getDynamicSiteContext(params);
|
||||
const pathname = getPagePathFromParams(params);
|
||||
|
||||
return (
|
||||
<SitePage
|
||||
context={context}
|
||||
pageParams={{ pathname }}
|
||||
staticRoute={false}
|
||||
updatesPage={updatesPage}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export async function generateMetadata(props: PageProps): Promise<Metadata> {
|
||||
const params = await props.params;
|
||||
const updatesPage = parseUpdatesPageParam(params.page);
|
||||
if (updatesPage === null) {
|
||||
notFound();
|
||||
}
|
||||
const { context } = await getDynamicSiteContext(params);
|
||||
const pathname = getPagePathFromParams(params);
|
||||
|
||||
return generateSitePageMetadata({
|
||||
context,
|
||||
pageParams: { pathname },
|
||||
updatesPage,
|
||||
});
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
import { type RouteParams, getPagePathFromParams } from '@/app/utils';
|
||||
import { EmbeddableDocsPage, generateEmbeddableDocsPageMetadata } from '@/components/Embeddable';
|
||||
import { getEmbeddableDynamicContext } from '@/lib/embeddable';
|
||||
import { parseUpdatesPageParam } from '@/lib/updates-url';
|
||||
|
||||
type PageProps = {
|
||||
params: Promise<RouteParams & { page: string }>;
|
||||
};
|
||||
|
||||
export default async function Page(props: PageProps) {
|
||||
const params = await props.params;
|
||||
const updatesPage = parseUpdatesPageParam(params.page);
|
||||
if (updatesPage === null) {
|
||||
notFound();
|
||||
}
|
||||
const { context } = await getEmbeddableDynamicContext(params);
|
||||
const pathname = getPagePathFromParams(params);
|
||||
|
||||
return (
|
||||
<EmbeddableDocsPage
|
||||
context={context}
|
||||
pageParams={{ pathname }}
|
||||
staticRoute={false}
|
||||
updatesPage={updatesPage}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export async function generateMetadata(props: PageProps): Promise<Metadata> {
|
||||
const params = await props.params;
|
||||
const updatesPage = parseUpdatesPageParam(params.page);
|
||||
if (updatesPage === null) {
|
||||
notFound();
|
||||
}
|
||||
const { context } = await getEmbeddableDynamicContext(params);
|
||||
const pathname = getPagePathFromParams(params);
|
||||
return generateEmbeddableDocsPageMetadata({ context, pageParams: { pathname }, updatesPage });
|
||||
}
|
||||
+24
-15
@@ -19,28 +19,37 @@ export async function handleMcpRequest(
|
||||
return new Response('Not Found', { status: 404 });
|
||||
}
|
||||
|
||||
// The server is stateless, so it has no notification stream for a GET to open. `Allow` tells
|
||||
// clients to stop asking, as the Streamable HTTP transport expects.
|
||||
if (rawRequest.method === 'GET') {
|
||||
return new Response('Method Not Allowed', { status: 405, headers: { Allow: 'POST' } });
|
||||
}
|
||||
|
||||
// Next.js request.url is the original URL and not the rewritten one from the middleware
|
||||
const requestURL = new URL(context.linker.toAbsoluteURL(context.linker.toPathInSite(endpoint)));
|
||||
requestURL.search = rawRequest.nextUrl.search;
|
||||
const request = new Request(requestURL, rawRequest);
|
||||
|
||||
trackMcpEvent({
|
||||
organizationId: context.organizationId,
|
||||
siteId: context.site.id,
|
||||
events: [
|
||||
{
|
||||
type: 'mcp_request',
|
||||
location: {
|
||||
displayContext: SiteInsightsDisplayContext.Server,
|
||||
},
|
||||
},
|
||||
],
|
||||
request,
|
||||
});
|
||||
|
||||
const mcpHandler = createMcpHandler(
|
||||
(server) => {
|
||||
registerSiteMcpTools(server, createSiteMcpTools(context, { request }));
|
||||
registerSiteMcpTools(server, createSiteMcpTools(context, { request }), {
|
||||
// Connecting, listing tools and notifications are protocol overhead, several
|
||||
// requests per client session: only tool calls count as usage.
|
||||
onToolCall: () =>
|
||||
trackMcpEvent({
|
||||
organizationId: context.organizationId,
|
||||
siteId: context.site.id,
|
||||
events: [
|
||||
{
|
||||
type: 'mcp_request',
|
||||
location: {
|
||||
displayContext: SiteInsightsDisplayContext.Server,
|
||||
},
|
||||
},
|
||||
],
|
||||
request,
|
||||
}),
|
||||
});
|
||||
},
|
||||
{
|
||||
// The same identity the server card republishes, so the card and the handshake agree.
|
||||
|
||||
+4
-14
@@ -1,13 +1,9 @@
|
||||
import { cookies, headers } from 'next/headers';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
import {
|
||||
type RouteLayoutParams,
|
||||
getDynamicSiteContext,
|
||||
getSiteURLDataFromParams,
|
||||
} from '@/app/utils';
|
||||
import { type RouteLayoutParams, getDynamicSiteContext } from '@/app/utils';
|
||||
import { ConsentError, ConsentScreen } from '@/components/SiteOAuthConsent';
|
||||
import { withLeadingSlash, withTrailingSlash } from '@/lib/paths';
|
||||
import { getSiteRequestURLFromMiddleware } from '@/lib/middleware';
|
||||
import { SiteOAuthConsentError, startSiteOAuthConsent } from '@/lib/site-oauth';
|
||||
import { getVisitorToken } from '@/lib/visitors';
|
||||
|
||||
@@ -33,17 +29,11 @@ export default async function Page(props: {
|
||||
}
|
||||
|
||||
const { context } = await getDynamicSiteContext(params);
|
||||
const siteBasePath = withTrailingSlash(
|
||||
withLeadingSlash(getSiteURLDataFromParams(params).siteBasePath)
|
||||
);
|
||||
const authorizeURL = new URL(
|
||||
`${siteBasePath}~gitbook/oauth2/v1/${siteId}/authorize`,
|
||||
context.linker.toAbsoluteURL('/')
|
||||
);
|
||||
// Proxied sites scope the visitor cookie to the proxy's URL, not the site's public one.
|
||||
const visitorToken = getVisitorToken({
|
||||
cookies: (await cookies()).getAll(),
|
||||
headers: await headers(),
|
||||
url: authorizeURL,
|
||||
url: await getSiteRequestURLFromMiddleware(),
|
||||
});
|
||||
const jwtToken = visitorToken?.token;
|
||||
const interactionId = searchParams.gb_oauth_state;
|
||||
|
||||
+41
-2
@@ -2,7 +2,8 @@ import { type NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
import { SEARCH_FALLBACK_HEADER } from '@/components/Search/search-pass-store';
|
||||
import type { SearchSiteContentRequest } from '@/components/Search/search-types';
|
||||
import { throwIfDataError } from '@/lib/data';
|
||||
import type { SiteURLData } from '@/lib/context';
|
||||
import { type SearchRouteReason, throwIfDataError } from '@/lib/data';
|
||||
import { getLogger } from '@/lib/logger';
|
||||
import { getSiteURLDataFromMiddleware } from '@/lib/middleware';
|
||||
import { transformSitePageResult } from '@/lib/search';
|
||||
@@ -14,7 +15,8 @@ const SEARCH_FALLBACK_REASON =
|
||||
/^(\d{3}|expired|pass_request|network|timeout|invalid|unknown_space)$/;
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
const { asEmbeddable, query, scope } = (await request.json()) as SearchSiteContentRequest;
|
||||
const { asEmbeddable, query, scope, searchId } =
|
||||
(await request.json()) as SearchSiteContentRequest;
|
||||
const [context, siteURLData] = await Promise.all([
|
||||
getServerActionBaseContext({ isEmbeddable: asEmbeddable }),
|
||||
getSiteURLDataFromMiddleware(),
|
||||
@@ -40,6 +42,8 @@ export async function POST(request: NextRequest) {
|
||||
siteId: siteURLData.site,
|
||||
query,
|
||||
scope,
|
||||
searchId,
|
||||
routeReason: getSearchRouteReason(siteURLData, fallback),
|
||||
})
|
||||
),
|
||||
throwIfDataError(
|
||||
@@ -88,3 +92,38 @@ export async function POST(request: NextRequest) {
|
||||
|
||||
return NextResponse.json(results);
|
||||
}
|
||||
|
||||
function getSearchRouteReason(
|
||||
siteURLData: SiteURLData,
|
||||
fallback: string | null
|
||||
): SearchRouteReason {
|
||||
if (siteURLData.changeRequest) {
|
||||
return 'change_request';
|
||||
}
|
||||
if (siteURLData.revision) {
|
||||
return 'revision';
|
||||
}
|
||||
if (siteURLData.preview) {
|
||||
return 'preview';
|
||||
}
|
||||
|
||||
switch (fallback) {
|
||||
case null:
|
||||
case 'expired':
|
||||
case 'pass_request':
|
||||
return 'no_pass';
|
||||
case '401':
|
||||
case '403':
|
||||
case '429':
|
||||
case 'network':
|
||||
case 'timeout':
|
||||
case 'invalid':
|
||||
case 'unknown_space':
|
||||
return `fallback:${fallback}`;
|
||||
default:
|
||||
if (/^5\d{2}$/.test(fallback)) {
|
||||
return 'fallback:5xx';
|
||||
}
|
||||
return /^\d{3}$/.test(fallback) ? 'fallback:http' : 'unknown';
|
||||
}
|
||||
}
|
||||
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
import { type RouteParams, getPagePathFromParams, getStaticSiteContext } from '@/app/utils';
|
||||
import { SitePage, generateSitePageMetadata } from '@/components/SitePage';
|
||||
import { parseUpdatesPageParam } from '@/lib/updates-url';
|
||||
|
||||
export const dynamic = 'force-static';
|
||||
|
||||
type PageProps = {
|
||||
params: Promise<RouteParams & { page: string }>;
|
||||
};
|
||||
|
||||
export default async function Page(props: PageProps) {
|
||||
const params = await props.params;
|
||||
const updatesPage = parseUpdatesPageParam(params.page);
|
||||
if (updatesPage === null) {
|
||||
notFound();
|
||||
}
|
||||
const { context } = await getStaticSiteContext(params);
|
||||
const pathname = getPagePathFromParams(params);
|
||||
|
||||
return (
|
||||
<SitePage
|
||||
context={context}
|
||||
pageParams={{ pathname }}
|
||||
staticRoute
|
||||
updatesPage={updatesPage}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export async function generateMetadata(props: PageProps): Promise<Metadata> {
|
||||
const params = await props.params;
|
||||
const updatesPage = parseUpdatesPageParam(params.page);
|
||||
if (updatesPage === null) {
|
||||
notFound();
|
||||
}
|
||||
const { context } = await getStaticSiteContext(params);
|
||||
const pathname = getPagePathFromParams(params);
|
||||
|
||||
return generateSitePageMetadata({
|
||||
context,
|
||||
pageParams: { pathname },
|
||||
updatesPage,
|
||||
});
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
import { type RouteParams, getPagePathFromParams } from '@/app/utils';
|
||||
import { EmbeddableDocsPage, generateEmbeddableDocsPageMetadata } from '@/components/Embeddable';
|
||||
import { getEmbeddableStaticContext } from '@/lib/embeddable';
|
||||
import { parseUpdatesPageParam } from '@/lib/updates-url';
|
||||
|
||||
export const dynamic = 'force-static';
|
||||
|
||||
type PageProps = {
|
||||
params: Promise<RouteParams & { page: string }>;
|
||||
};
|
||||
|
||||
export default async function Page(props: PageProps) {
|
||||
const params = await props.params;
|
||||
const updatesPage = parseUpdatesPageParam(params.page);
|
||||
if (updatesPage === null) {
|
||||
notFound();
|
||||
}
|
||||
const { context } = await getEmbeddableStaticContext(params);
|
||||
const pathname = getPagePathFromParams(params);
|
||||
|
||||
return (
|
||||
<EmbeddableDocsPage
|
||||
context={context}
|
||||
pageParams={{ pathname }}
|
||||
staticRoute
|
||||
updatesPage={updatesPage}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export async function generateMetadata(props: PageProps): Promise<Metadata> {
|
||||
const params = await props.params;
|
||||
const updatesPage = parseUpdatesPageParam(params.page);
|
||||
if (updatesPage === null) {
|
||||
notFound();
|
||||
}
|
||||
const { context } = await getEmbeddableStaticContext(params);
|
||||
const pathname = getPagePathFromParams(params);
|
||||
return generateEmbeddableDocsPageMetadata({ context, pageParams: { pathname }, updatesPage });
|
||||
}
|
||||
@@ -14,6 +14,11 @@ export async function hasContentBeenUpdated(props: { revisionId: string }) {
|
||||
const context = await getServerActionBaseContext();
|
||||
const siteURLData = await getSiteURLDataFromMiddleware();
|
||||
|
||||
// A site revision never changes what it shows.
|
||||
if (siteURLData.siteRevision) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (siteURLData.changeRequest) {
|
||||
const changeRequest = await getDataOrNull(
|
||||
context.dataFetcher.getChangeRequest({
|
||||
|
||||
@@ -19,7 +19,7 @@ export function AnnotationPopover(props: { children: React.ReactNode; body: Reac
|
||||
>
|
||||
<dfn
|
||||
data-annotation=""
|
||||
className="not-italic cursor-help underline decoration-dotted decoration-1 underline-offset-2"
|
||||
className="cursor-help not-italic underline decoration-dotted decoration-1 underline-offset-2"
|
||||
// oxlint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- we want to be able to focus the definition to open the tooltip
|
||||
tabIndex={0}
|
||||
>
|
||||
|
||||
@@ -57,6 +57,7 @@ export function Block<T extends DocumentBlock>(props: BlockProps<T>) {
|
||||
case 'heading-1':
|
||||
case 'heading-2':
|
||||
case 'heading-3':
|
||||
case 'heading-4':
|
||||
return <Heading {...props} block={block} />;
|
||||
case 'list-ordered':
|
||||
case 'list-unordered':
|
||||
@@ -140,6 +141,7 @@ export function BlockSkeleton(props: { block: DocumentBlock; style: ClassValue }
|
||||
case 'heading-1':
|
||||
case 'heading-2':
|
||||
case 'heading-3':
|
||||
case 'heading-4':
|
||||
case 'file':
|
||||
return <SkeletonHeading id={id} style={style} />;
|
||||
case 'paragraph':
|
||||
|
||||
@@ -23,6 +23,8 @@ export type ClientBlockProps = Pick<BlockProps<DocumentBlockCode>, 'block' | 'st
|
||||
evaluateInlineExpression?: (expression: string) => string;
|
||||
mode: BlockProps<DocumentBlockCode>['context']['mode'];
|
||||
themes?: CustomizationThemedCodeTheme;
|
||||
/** Base URL of `~gitbook/static`, where the Shiki assets are loaded from. */
|
||||
staticAssetsURL: string;
|
||||
embedded?: boolean;
|
||||
/** Node key for comments, set only where commenting is possible. */
|
||||
commentKey?: string;
|
||||
@@ -35,8 +37,17 @@ export const CODE_BLOCK_DEFAULT_COLLAPSED_LINE_COUNT = 10;
|
||||
* It allows us to defer some load to avoid blocking the rendering of the whole page with block highlighting.
|
||||
*/
|
||||
export function ClientCodeBlock(props: ClientBlockProps) {
|
||||
const { block, mode, style, inlines, evaluateInlineExpression, themes, embedded, commentKey } =
|
||||
props;
|
||||
const {
|
||||
block,
|
||||
mode,
|
||||
style,
|
||||
inlines,
|
||||
evaluateInlineExpression,
|
||||
themes,
|
||||
staticAssetsURL,
|
||||
embedded,
|
||||
commentKey,
|
||||
} = props;
|
||||
const blockRef = useRef<HTMLDivElement>(null);
|
||||
const isInViewportRef = useRef(false);
|
||||
const [isInViewport, setIsInViewport] = useState(false);
|
||||
@@ -50,8 +61,10 @@ export function ClientCodeBlock(props: ClientBlockProps) {
|
||||
|
||||
// Preload the highlighter when the block is mounted.
|
||||
useEffect(() => {
|
||||
import('./highlight').then(({ preloadHighlight }) => preloadHighlight(block, themes));
|
||||
}, [block, themes]);
|
||||
import('./highlight-client').then(({ getClientHighlight }) =>
|
||||
getClientHighlight(staticAssetsURL).preloadHighlight(block, themes)
|
||||
);
|
||||
}, [block, themes, staticAssetsURL]);
|
||||
|
||||
// When user scrolls, we need to wait for the scroll to finish before running the highlight
|
||||
const isScrollingRef = useRef(false);
|
||||
@@ -99,7 +112,8 @@ export function ClientCodeBlock(props: ClientBlockProps) {
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
setHighlighting(true);
|
||||
import('./highlight').then(({ highlight }) => {
|
||||
import('./highlight-client').then(({ getClientHighlight }) => {
|
||||
const { highlight } = getClientHighlight(staticAssetsURL);
|
||||
highlight(block, inlines, { evaluateInlineExpression, themes }).then(
|
||||
(theme) => {
|
||||
if (cancelled) {
|
||||
@@ -120,7 +134,7 @@ export function ClientCodeBlock(props: ClientBlockProps) {
|
||||
|
||||
// Otherwise if the block is not in viewport, we reset to the plain lines
|
||||
setTheme(null);
|
||||
}, [isInViewport, block, inlines, evaluateInlineExpression, themes]);
|
||||
}, [isInViewport, block, inlines, evaluateInlineExpression, themes, staticAssetsURL]);
|
||||
|
||||
const expandable = block.data.expandable;
|
||||
|
||||
|
||||
@@ -15,8 +15,9 @@ export function ClientPlainCodeBlock(props: {
|
||||
syntax: string;
|
||||
mode?: DocumentContext['mode'];
|
||||
themes?: CustomizationThemedCodeTheme;
|
||||
staticAssetsURL: string;
|
||||
}) {
|
||||
const { code, syntax, mode = 'default', themes } = props;
|
||||
const { code, syntax, mode = 'default', themes, staticAssetsURL } = props;
|
||||
const id = useId();
|
||||
|
||||
const block = convertCodeStringToBlock({ key: id, code, syntax });
|
||||
@@ -28,6 +29,7 @@ export function ClientPlainCodeBlock(props: {
|
||||
inlineExprVariables={{}}
|
||||
mode={mode}
|
||||
themes={themes}
|
||||
staticAssetsURL={staticAssetsURL}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -122,6 +122,7 @@ export async function CodeBlock(
|
||||
inlineExprVariables: variables,
|
||||
mode: context.mode,
|
||||
themes,
|
||||
staticAssetsURL: getAssetURL(''),
|
||||
embedded,
|
||||
...getCommentKeyProp(context, block.key),
|
||||
};
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
import { afterAll, describe, expect, it } from 'bun:test';
|
||||
import { join } from 'node:path';
|
||||
|
||||
import { getClientHighlight } from './highlight-client';
|
||||
import { getShikiGrammarAssetPath } from './shiki-catalog';
|
||||
|
||||
const staticDir = join(import.meta.dir, '../../../../public/~gitbook/static');
|
||||
const requested: string[] = [];
|
||||
|
||||
// Stands in for the CDN serving `~gitbook/static`.
|
||||
const server = Bun.serve({
|
||||
port: 0,
|
||||
fetch(request) {
|
||||
const { pathname } = new URL(request.url);
|
||||
requested.push(pathname);
|
||||
const prefix = '/~gitbook/static/';
|
||||
if (!pathname.startsWith(prefix)) {
|
||||
return new Response('not found', { status: 404 });
|
||||
}
|
||||
const file = Bun.file(join(staticDir, pathname.slice(prefix.length)));
|
||||
return new Response(file);
|
||||
},
|
||||
});
|
||||
|
||||
afterAll(() => server.stop(true));
|
||||
|
||||
const jsBlock = {
|
||||
object: 'block',
|
||||
type: 'code',
|
||||
data: { syntax: 'javascript' },
|
||||
nodes: [
|
||||
{
|
||||
object: 'block',
|
||||
type: 'code-line',
|
||||
data: {},
|
||||
nodes: [
|
||||
{ object: 'text', leaves: [{ object: 'leaf', marks: [], text: 'const a = 1;' }] },
|
||||
],
|
||||
},
|
||||
],
|
||||
} as never;
|
||||
|
||||
describe('getClientHighlight', () => {
|
||||
it('fetches assets relative to the given static assets URL', async () => {
|
||||
const { highlight } = getClientHighlight(`${server.url}~gitbook/static/`);
|
||||
const result = await highlight(jsBlock, []);
|
||||
expect(result.lines[0]?.tokens.some((token) => token.type === 'shiki')).toBe(true);
|
||||
expect(requested).toContain(`/~gitbook/static/${getShikiGrammarAssetPath('javascript')}`);
|
||||
});
|
||||
|
||||
it('reuses one highlighter per assets URL', () => {
|
||||
const url = `${server.url}~gitbook/static/`;
|
||||
expect(getClientHighlight(url)).toBe(getClientHighlight(url));
|
||||
});
|
||||
|
||||
it('falls back to plain when the assets host answers an error', async () => {
|
||||
const { highlight } = getClientHighlight(`${server.url}missing/`);
|
||||
const result = await highlight(jsBlock, []);
|
||||
expect(result.lines[0]?.tokens.map((token) => token.type)).toEqual(['plain']);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,23 @@
|
||||
import { createHighlight } from './highlighter';
|
||||
import { joinPathWithBaseURL } from '@/lib/paths';
|
||||
|
||||
const highlighters = new Map<string, ReturnType<typeof createHighlight>>();
|
||||
|
||||
/**
|
||||
* Highlighting functions for the browser, loading Shiki assets from the static assets URL.
|
||||
* The URL comes from the server because the client build doesn't know the runtime assets host.
|
||||
*/
|
||||
export function getClientHighlight(staticAssetsURL: string) {
|
||||
let highlighter = highlighters.get(staticAssetsURL);
|
||||
if (!highlighter) {
|
||||
highlighter = createHighlight(async (path) => {
|
||||
const response = await fetch(joinPathWithBaseURL(staticAssetsURL, path));
|
||||
if (!response.ok) {
|
||||
throw new Error(`Failed to fetch ${path}: ${response.status}`);
|
||||
}
|
||||
return response.json();
|
||||
});
|
||||
highlighters.set(staticAssetsURL, highlighter);
|
||||
}
|
||||
return highlighter;
|
||||
}
|
||||
@@ -1,178 +1,7 @@
|
||||
import { createSingletonShorthands, createdBundledHighlighter } from 'shiki/core';
|
||||
import { createJavaScriptRegexEngine } from 'shiki/engine/javascript';
|
||||
import { type BundledLanguage, bundledLanguages } from 'shiki/langs';
|
||||
import { bundledThemes } from 'shiki/themes';
|
||||
|
||||
import type { CustomizationThemedCodeTheme, DocumentBlockCode } from '@gitbook/api';
|
||||
|
||||
import { customThemes } from './customThemes';
|
||||
import {
|
||||
DEFAULT_THEMES,
|
||||
type HighlightTheme,
|
||||
type HighlightToken,
|
||||
type PositionedToken,
|
||||
type RenderedInline,
|
||||
getPlainCodeBlock,
|
||||
matchTokenAndInlines,
|
||||
parseDiffNotation,
|
||||
truncateHighlightTokens,
|
||||
} from './highlight-tokens';
|
||||
import { plainHighlight } from './plain-highlight';
|
||||
import { createHighlight } from './highlighter';
|
||||
import { loadShikiAssetOnServer } from './shiki-assets.server';
|
||||
|
||||
export * from './highlight-tokens';
|
||||
export { getLanguageForSyntax } from './highlighter';
|
||||
|
||||
// Merge bundled Shiki themes with our custom themes so both are available to the highlighter
|
||||
const { getSingletonHighlighter } = createSingletonShorthands(
|
||||
createdBundledHighlighter<any, any>({
|
||||
langs: bundledLanguages,
|
||||
themes: { ...bundledThemes, ...customThemes },
|
||||
engine: () => createJavaScriptRegexEngine({ forgiving: true, target: 'ES2018' }),
|
||||
})
|
||||
);
|
||||
|
||||
/**
|
||||
* Preload the highlighter for a code block.
|
||||
*/
|
||||
export async function preloadHighlight(
|
||||
block: DocumentBlockCode,
|
||||
themes: CustomizationThemedCodeTheme = DEFAULT_THEMES
|
||||
) {
|
||||
const langName = getBlockLang(block);
|
||||
if (langName) {
|
||||
await getSingletonHighlighter({
|
||||
langs: [langName],
|
||||
themes: [themes.light, themes.dark],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Highlight a code block while preserving inline elements.
|
||||
*/
|
||||
export async function highlight(
|
||||
block: DocumentBlockCode,
|
||||
inlines: RenderedInline[],
|
||||
options?: {
|
||||
evaluateInlineExpression?: (expr: string) => string;
|
||||
themes?: CustomizationThemedCodeTheme;
|
||||
}
|
||||
): Promise<HighlightTheme> {
|
||||
const langName = getBlockLang(block);
|
||||
|
||||
if (!langName) {
|
||||
// Fallback to plain highlighting if language is not found
|
||||
return plainHighlight(block, inlines, options);
|
||||
}
|
||||
|
||||
const themes = options?.themes ?? DEFAULT_THEMES;
|
||||
|
||||
const code = getPlainCodeBlock(block, undefined, options);
|
||||
|
||||
const highlighter = await getSingletonHighlighter({
|
||||
langs: [langName],
|
||||
themes: [themes.light, themes.dark],
|
||||
});
|
||||
|
||||
const resolvedThemes = {
|
||||
light: highlighter.getTheme(themes.light),
|
||||
dark: highlighter.getTheme(themes.dark),
|
||||
};
|
||||
|
||||
let tokenizeMaxLineLength = 400;
|
||||
// In some cases, people will use unindented code blocks with a single line.
|
||||
// In this case, we can safely increase the max line length to avoid not highlighting the code.
|
||||
if (block.nodes.length === 1) {
|
||||
tokenizeMaxLineLength = 5000;
|
||||
}
|
||||
|
||||
const result = highlighter.codeToTokens(code, {
|
||||
lang: langName,
|
||||
themes: resolvedThemes,
|
||||
// Shiki's light-dark() CSS function provides different colors for light/dark modes based on the resolved themes
|
||||
defaultColor: 'light-dark()',
|
||||
tokenizeMaxLineLength,
|
||||
});
|
||||
|
||||
const lines = result.tokens;
|
||||
|
||||
let currentIndex = 0;
|
||||
return {
|
||||
bg: result.bg,
|
||||
fg: result.fg,
|
||||
themes: resolvedThemes,
|
||||
lines: lines.map((tokens, index) => {
|
||||
const lineBlock = block.nodes[index];
|
||||
const result: HighlightToken[] = [];
|
||||
|
||||
const lineText = tokens.map((token) => token.content).join('');
|
||||
const notation = parseDiffNotation(lineText);
|
||||
|
||||
const eatToken = (): PositionedToken | null => {
|
||||
const token = tokens.shift();
|
||||
if (token) {
|
||||
currentIndex += token.content.length;
|
||||
}
|
||||
return token
|
||||
? { ...token, start: currentIndex - token.content.length, end: currentIndex }
|
||||
: null;
|
||||
};
|
||||
|
||||
while (tokens.length > 0) {
|
||||
result.push(...matchTokenAndInlines(eatToken, inlines));
|
||||
}
|
||||
|
||||
currentIndex += 1; // for the \n
|
||||
|
||||
const finalTokens = notation
|
||||
? truncateHighlightTokens(result, notation.markerStart)
|
||||
: result;
|
||||
|
||||
return {
|
||||
highlighted: Boolean(lineBlock?.data.highlighted),
|
||||
diff: notation?.diff ?? null,
|
||||
tokens: finalTokens,
|
||||
};
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the language of a code block.
|
||||
*/
|
||||
function getBlockLang(block: DocumentBlockCode): string | null {
|
||||
return block.data.syntax ? getLanguageForSyntax(block.data.syntax) : null;
|
||||
}
|
||||
|
||||
const syntaxAliases: Record<string, BundledLanguage> = {
|
||||
// "Parser" language does not exist in Shiki, but it's used in GitBook
|
||||
// The closest language is "Blade"
|
||||
parser: 'blade',
|
||||
|
||||
// From GitBook App we receive "objectivec" instead of "objective-c"
|
||||
objectivec: 'objective-c',
|
||||
};
|
||||
|
||||
function checkIsBundledLanguage(lang: string): lang is BundledLanguage {
|
||||
return lang in bundledLanguages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate a language name.
|
||||
*/
|
||||
function getLanguageForSyntax(syntax: string): BundledLanguage | null {
|
||||
// Normalize the syntax to lowercase.
|
||||
syntax = syntax.toLowerCase();
|
||||
|
||||
// Check if the syntax is a bundled language.
|
||||
if (checkIsBundledLanguage(syntax)) {
|
||||
return syntax;
|
||||
}
|
||||
|
||||
// Check if there is a valid alias for the syntax.
|
||||
const alias = syntaxAliases[syntax];
|
||||
if (alias && checkIsBundledLanguage(alias)) {
|
||||
return alias;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
export const { highlight, preloadHighlight } = createHighlight(loadShikiAssetOnServer);
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
import { beforeEach, describe, expect, it } from 'bun:test';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import { join } from 'node:path';
|
||||
|
||||
import type { DocumentBlockCode } from '@gitbook/api';
|
||||
|
||||
import type { HighlightTheme } from './highlight-tokens';
|
||||
import { type ShikiAssetLoader, createHighlight } from './highlighter';
|
||||
import { getShikiGrammarAssetPath } from './shiki-catalog';
|
||||
|
||||
const staticDir = join(import.meta.dir, '../../../../public/~gitbook/static');
|
||||
|
||||
let calls: Map<string, number>;
|
||||
|
||||
const readAsset: ShikiAssetLoader = async (path) =>
|
||||
JSON.parse(await readFile(join(staticDir, path), 'utf8'));
|
||||
|
||||
const countingLoader: ShikiAssetLoader = async (path) => {
|
||||
calls.set(path, (calls.get(path) ?? 0) + 1);
|
||||
return readAsset(path);
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
calls = new Map();
|
||||
});
|
||||
|
||||
function codeBlock(syntax: string, code: string): DocumentBlockCode {
|
||||
return {
|
||||
object: 'block',
|
||||
type: 'code',
|
||||
data: { syntax },
|
||||
nodes: code.split('\n').map((text) => ({
|
||||
object: 'block',
|
||||
type: 'code-line',
|
||||
data: {},
|
||||
nodes: [{ object: 'text', leaves: [{ object: 'leaf', marks: [], text }] }],
|
||||
})),
|
||||
} as DocumentBlockCode;
|
||||
}
|
||||
|
||||
const jsBlock = codeBlock('javascript', 'const answer = 42;');
|
||||
|
||||
function isHighlighted(result: HighlightTheme) {
|
||||
return result.lines.some((line) => line.tokens.some((token) => token.type === 'shiki'));
|
||||
}
|
||||
|
||||
function colorOf(result: HighlightTheme, content: string) {
|
||||
for (const line of result.lines) {
|
||||
for (const token of line.tokens) {
|
||||
if (token.type === 'shiki' && token.token.content.trim() === content) {
|
||||
// light-dark() output puts the colour in htmlStyle rather than color.
|
||||
const style = token.token.htmlStyle;
|
||||
return typeof style === 'object' ? style.color : undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
describe('createHighlight', () => {
|
||||
it('loads each grammar once under concurrency', async () => {
|
||||
const { highlight } = createHighlight(countingLoader);
|
||||
const results = await Promise.all(Array.from({ length: 10 }, () => highlight(jsBlock, [])));
|
||||
expect(results.every(isHighlighted)).toBe(true);
|
||||
expect(calls.get(getShikiGrammarAssetPath('javascript'))).toBe(1);
|
||||
});
|
||||
|
||||
it('falls back to plain highlighting and retries after a failure', async () => {
|
||||
let failed = false;
|
||||
const failOnceLoader: ShikiAssetLoader = async (path) => {
|
||||
if (!failed && path === getShikiGrammarAssetPath('javascript')) {
|
||||
failed = true;
|
||||
throw new Error('asset unavailable');
|
||||
}
|
||||
return readAsset(path);
|
||||
};
|
||||
const { highlight } = createHighlight(failOnceLoader);
|
||||
|
||||
const first = await highlight(jsBlock, []);
|
||||
expect(isHighlighted(first)).toBe(false);
|
||||
expect(first.lines[0]?.tokens.map((token) => token.type)).toEqual(['plain']);
|
||||
|
||||
const second = await highlight(jsBlock, []);
|
||||
expect(isHighlighted(second)).toBe(true);
|
||||
});
|
||||
|
||||
it('highlights embedded languages', async () => {
|
||||
const { highlight } = createHighlight(countingLoader);
|
||||
const result = await highlight(
|
||||
codeBlock('vue', '<template><p>hi</p></template>\n<script>\nconst msg = 1;\n</script>'),
|
||||
[]
|
||||
);
|
||||
const keywordColor = colorOf(result, 'const');
|
||||
expect(keywordColor).toBeDefined();
|
||||
expect(keywordColor).not.toBe(colorOf(result, 'msg'));
|
||||
});
|
||||
|
||||
it('loads custom themes from code, not from assets', async () => {
|
||||
const { highlight } = createHighlight(countingLoader);
|
||||
const result = await highlight(jsBlock, [], {
|
||||
themes: { light: 'default-light', dark: 'github-dark' } as never,
|
||||
});
|
||||
expect(isHighlighted(result)).toBe(true);
|
||||
expect([...calls.keys()].some((path) => path.includes('default-light'))).toBe(false);
|
||||
expect([...calls.keys()].some((path) => path.endsWith('themes/github-dark.json'))).toBe(
|
||||
true
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,247 @@
|
||||
import {
|
||||
type HighlighterCore,
|
||||
type LanguageRegistration,
|
||||
type ThemeRegistrationAny,
|
||||
createHighlighterCore,
|
||||
} from 'shiki/core';
|
||||
import { createJavaScriptRegexEngine } from 'shiki/engine/javascript';
|
||||
|
||||
import type { CustomizationThemedCodeTheme, DocumentBlockCode } from '@gitbook/api';
|
||||
|
||||
import { customThemes } from './customThemes';
|
||||
import {
|
||||
DEFAULT_THEMES,
|
||||
type HighlightTheme,
|
||||
type HighlightToken,
|
||||
type PositionedToken,
|
||||
type RenderedInline,
|
||||
getPlainCodeBlock,
|
||||
matchTokenAndInlines,
|
||||
parseDiffNotation,
|
||||
truncateHighlightTokens,
|
||||
} from './highlight-tokens';
|
||||
import { plainHighlight } from './plain-highlight';
|
||||
import {
|
||||
SHIKI_LANGUAGES,
|
||||
SHIKI_LANGUAGE_GRAMMARS,
|
||||
getShikiGrammarAssetPath,
|
||||
getShikiThemeAssetPath,
|
||||
} from './shiki-catalog';
|
||||
import { SHIKI_THEMES } from './shiki-themes';
|
||||
|
||||
/**
|
||||
* Read a Shiki asset (grammar or theme JSON) from its path relative to `~gitbook/static`.
|
||||
*/
|
||||
export type ShikiAssetLoader = (path: string) => Promise<unknown>;
|
||||
|
||||
// Syntaxes sent by GitBook that are not Shiki ids or aliases.
|
||||
const syntaxAliases: Record<string, string> = {
|
||||
// "Parser" language does not exist in Shiki, but it's used in GitBook
|
||||
// The closest language is "Blade"
|
||||
parser: 'blade',
|
||||
|
||||
// From GitBook App we receive "objectivec" instead of "objective-c"
|
||||
objectivec: 'objective-c',
|
||||
};
|
||||
|
||||
/**
|
||||
* Resolve a code block syntax to a canonical Shiki language id.
|
||||
*/
|
||||
export function getLanguageForSyntax(syntax: string): string | null {
|
||||
const normalized = syntax.toLowerCase();
|
||||
return SHIKI_LANGUAGES[normalized] ?? SHIKI_LANGUAGES[syntaxAliases[normalized] ?? ''] ?? null;
|
||||
}
|
||||
|
||||
function getBlockLang(block: DocumentBlockCode): string | null {
|
||||
return block.data.syntax ? getLanguageForSyntax(block.data.syntax) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the highlighting functions, loading grammars and themes on demand through `loadAsset`.
|
||||
*/
|
||||
export function createHighlight(loadAsset: ShikiAssetLoader) {
|
||||
let highlighterPromise: Promise<HighlighterCore> | null = null;
|
||||
const pending = new Map<string, Promise<unknown>>();
|
||||
|
||||
// Share in-flight and finished loads; forget failures so a later render retries.
|
||||
function once<T>(key: string, load: () => Promise<T>): Promise<T> {
|
||||
let promise = pending.get(key) as Promise<T> | undefined;
|
||||
if (!promise) {
|
||||
promise = load();
|
||||
pending.set(key, promise);
|
||||
promise.catch(() => pending.delete(key));
|
||||
}
|
||||
return promise;
|
||||
}
|
||||
|
||||
function getHighlighter() {
|
||||
highlighterPromise ??= createHighlighterCore({
|
||||
engine: createJavaScriptRegexEngine({ forgiving: true, target: 'ES2018' }),
|
||||
});
|
||||
return highlighterPromise;
|
||||
}
|
||||
|
||||
function loadLanguage(highlighter: HighlighterCore, lang: string) {
|
||||
return once(`lang:${lang}`, async () => {
|
||||
const names = SHIKI_LANGUAGE_GRAMMARS[lang];
|
||||
if (!names) {
|
||||
throw new Error(`Unknown language "${lang}"`);
|
||||
}
|
||||
const grammars = await Promise.all(
|
||||
names.map(
|
||||
(name) =>
|
||||
once(`grammar:${name}`, () =>
|
||||
loadAsset(getShikiGrammarAssetPath(name))
|
||||
) as Promise<LanguageRegistration>
|
||||
)
|
||||
);
|
||||
const loaded = new Set(highlighter.getLoadedLanguages());
|
||||
await highlighter.loadLanguage(
|
||||
...grammars.filter((grammar) => !loaded.has(grammar.name))
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
function loadTheme(highlighter: HighlighterCore, theme: string) {
|
||||
return once(`theme:${theme}`, async () => {
|
||||
const custom = customThemes[theme];
|
||||
if (custom) {
|
||||
await highlighter.loadTheme(custom);
|
||||
return;
|
||||
}
|
||||
if (!SHIKI_THEMES[theme]) {
|
||||
throw new Error(`Unknown theme "${theme}"`);
|
||||
}
|
||||
await highlighter.loadTheme(
|
||||
(await loadAsset(getShikiThemeAssetPath(theme))) as ThemeRegistrationAny
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
async function loadHighlighter(lang: string, themes: CustomizationThemedCodeTheme) {
|
||||
const highlighter = await getHighlighter();
|
||||
await Promise.all([
|
||||
loadLanguage(highlighter, lang),
|
||||
loadTheme(highlighter, themes.light),
|
||||
loadTheme(highlighter, themes.dark),
|
||||
]);
|
||||
return highlighter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Preload the highlighter for a code block.
|
||||
*/
|
||||
async function preloadHighlight(
|
||||
block: DocumentBlockCode,
|
||||
themes: CustomizationThemedCodeTheme = DEFAULT_THEMES
|
||||
) {
|
||||
const langName = getBlockLang(block);
|
||||
if (langName) {
|
||||
await loadHighlighter(langName, themes).catch(() => {
|
||||
// Rendering retries and reports the failure.
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Highlight a code block while preserving inline elements.
|
||||
*/
|
||||
async function highlight(
|
||||
block: DocumentBlockCode,
|
||||
inlines: RenderedInline[],
|
||||
options?: {
|
||||
evaluateInlineExpression?: (expr: string) => string;
|
||||
themes?: CustomizationThemedCodeTheme;
|
||||
}
|
||||
): Promise<HighlightTheme> {
|
||||
const langName = getBlockLang(block);
|
||||
|
||||
if (!langName) {
|
||||
// Fallback to plain highlighting if language is not found
|
||||
return plainHighlight(block, inlines, options);
|
||||
}
|
||||
|
||||
const themes = options?.themes ?? DEFAULT_THEMES;
|
||||
|
||||
const code = getPlainCodeBlock(block, undefined, options);
|
||||
|
||||
let highlighter: HighlighterCore;
|
||||
try {
|
||||
highlighter = await loadHighlighter(langName, themes);
|
||||
} catch (error) {
|
||||
console.error(
|
||||
`Failed to load the "${langName}" highlighter, falling back to plain`,
|
||||
error
|
||||
);
|
||||
return plainHighlight(block, inlines, options);
|
||||
}
|
||||
|
||||
const resolvedThemes = {
|
||||
light: highlighter.getTheme(themes.light),
|
||||
dark: highlighter.getTheme(themes.dark),
|
||||
};
|
||||
|
||||
let tokenizeMaxLineLength = 400;
|
||||
// In some cases, people will use unindented code blocks with a single line.
|
||||
// In this case, we can safely increase the max line length to avoid not highlighting the code.
|
||||
if (block.nodes.length === 1) {
|
||||
tokenizeMaxLineLength = 5000;
|
||||
}
|
||||
|
||||
const result = highlighter.codeToTokens(code, {
|
||||
lang: langName,
|
||||
themes: resolvedThemes,
|
||||
// Shiki's light-dark() CSS function provides different colors for light/dark modes based on the resolved themes
|
||||
defaultColor: 'light-dark()',
|
||||
tokenizeMaxLineLength,
|
||||
});
|
||||
|
||||
const lines = result.tokens;
|
||||
|
||||
let currentIndex = 0;
|
||||
return {
|
||||
bg: result.bg,
|
||||
fg: result.fg,
|
||||
themes: resolvedThemes,
|
||||
lines: lines.map((tokens, index) => {
|
||||
const lineBlock = block.nodes[index];
|
||||
const result: HighlightToken[] = [];
|
||||
|
||||
const lineText = tokens.map((token) => token.content).join('');
|
||||
const notation = parseDiffNotation(lineText);
|
||||
|
||||
const eatToken = (): PositionedToken | null => {
|
||||
const token = tokens.shift();
|
||||
if (token) {
|
||||
currentIndex += token.content.length;
|
||||
}
|
||||
return token
|
||||
? {
|
||||
...token,
|
||||
start: currentIndex - token.content.length,
|
||||
end: currentIndex,
|
||||
}
|
||||
: null;
|
||||
};
|
||||
|
||||
while (tokens.length > 0) {
|
||||
result.push(...matchTokenAndInlines(eatToken, inlines));
|
||||
}
|
||||
|
||||
currentIndex += 1; // for the \n
|
||||
|
||||
const finalTokens = notation
|
||||
? truncateHighlightTokens(result, notation.markerStart)
|
||||
: result;
|
||||
|
||||
return {
|
||||
highlighted: Boolean(lineBlock?.data.highlighted),
|
||||
diff: notation?.diff ?? null,
|
||||
tokens: finalTokens,
|
||||
};
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
return { highlight, preloadHighlight };
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
import { bundledThemesInfo } from 'shiki/themes';
|
||||
|
||||
import type { CustomizationThemedCodeTheme, DocumentBlockCode } from '@gitbook/api';
|
||||
|
||||
import { customThemes } from './customThemes';
|
||||
@@ -11,6 +9,7 @@ import {
|
||||
parseDiffNotation,
|
||||
truncateHighlightTokens,
|
||||
} from './highlight-tokens';
|
||||
import { SHIKI_THEMES } from './shiki-themes';
|
||||
import { getNodeText } from '@/lib/document';
|
||||
|
||||
/**
|
||||
@@ -29,11 +28,11 @@ export function plainHighlight(
|
||||
// Resolve theme objects: first check bundled Shiki themes, then custom themes, finally fallback to type-only
|
||||
// The type-only fallback ensures HighlightTheme always has valid theme objects even when theme names don't match
|
||||
const themes = {
|
||||
light: bundledThemesInfo.find((theme) => theme.id === options?.themes?.light) ??
|
||||
light: getBundledThemeInfo(options?.themes?.light) ??
|
||||
Object.values(customThemes).find((theme) => theme.name === options?.themes?.light) ?? {
|
||||
type: 'light',
|
||||
},
|
||||
dark: bundledThemesInfo.find((theme) => theme.id === options?.themes?.dark) ??
|
||||
dark: getBundledThemeInfo(options?.themes?.dark) ??
|
||||
Object.values(customThemes).find((theme) => theme.name === options?.themes?.dark) ?? {
|
||||
type: 'dark',
|
||||
},
|
||||
@@ -82,3 +81,8 @@ export function plainHighlight(
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
function getBundledThemeInfo(name: string | undefined) {
|
||||
const info = name ? SHIKI_THEMES[name] : undefined;
|
||||
return info ? { name, type: info.type } : undefined;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import { join } from 'node:path';
|
||||
|
||||
import type { ShikiAssetLoader } from './highlighter';
|
||||
import { getCloudflareContext } from '@/lib/data/cloudflare';
|
||||
|
||||
const SHIKI_PREFIX = 'shiki/';
|
||||
|
||||
/**
|
||||
* Read a Shiki asset on the server without a network hop.
|
||||
*/
|
||||
export const loadShikiAssetOnServer: ShikiAssetLoader = async (path) => {
|
||||
if (!path.startsWith(SHIKI_PREFIX)) {
|
||||
throw new Error(`Not a Shiki asset: ${path}`);
|
||||
}
|
||||
|
||||
const cloudflare = getCloudflareContext();
|
||||
if (cloudflare) {
|
||||
const assets = cloudflare.env.ASSETS;
|
||||
if (!assets) {
|
||||
throw new Error('The ASSETS binding is missing on this worker');
|
||||
}
|
||||
// The host is ignored by the assets binding, only the path matters.
|
||||
const response = await assets.fetch(
|
||||
new URL(`/~gitbook/static/${path}`, 'https://assets.local')
|
||||
);
|
||||
if (!response.ok) {
|
||||
throw new Error(`Failed to read ${path} from assets: ${response.status}`);
|
||||
}
|
||||
return response.json();
|
||||
}
|
||||
|
||||
// Keep `shiki` in the literal so file tracing only pulls this folder, not all of `static`.
|
||||
const file = join(
|
||||
process.cwd(),
|
||||
'public/~gitbook/static/shiki',
|
||||
path.slice(SHIKI_PREFIX.length)
|
||||
);
|
||||
return JSON.parse(await readFile(file, 'utf8'));
|
||||
};
|
||||
@@ -0,0 +1,69 @@
|
||||
import { describe, expect, it } from 'bun:test';
|
||||
import { join } from 'node:path';
|
||||
|
||||
import { getLanguageForSyntax } from './highlight';
|
||||
import {
|
||||
SHIKI_ASSETS_PATH,
|
||||
SHIKI_LANGUAGES,
|
||||
SHIKI_LANGUAGE_GRAMMARS,
|
||||
getShikiGrammarAssetPath,
|
||||
getShikiThemeAssetPath,
|
||||
} from './shiki-catalog';
|
||||
import { SHIKI_THEMES } from './shiki-themes';
|
||||
|
||||
const staticDir = join(import.meta.dir, '../../../../public/~gitbook/static');
|
||||
|
||||
describe('shiki catalog', () => {
|
||||
it('maps ids and aliases to canonical ids', () => {
|
||||
expect(SHIKI_LANGUAGES.javascript).toBe('javascript');
|
||||
expect(SHIKI_LANGUAGES.js).toBe('javascript');
|
||||
expect(SHIKI_LANGUAGES['objective-c']).toBe('objective-c');
|
||||
});
|
||||
|
||||
it('lists embedded grammars before the language grammar', () => {
|
||||
const vue = SHIKI_LANGUAGE_GRAMMARS.vue ?? [];
|
||||
expect(vue.at(-1)).toBe('vue');
|
||||
expect(vue).toEqual(expect.arrayContaining(['html', 'css', 'javascript']));
|
||||
});
|
||||
|
||||
it('writes one JSON file per grammar, including internal ones', async () => {
|
||||
const grammar = await Bun.file(
|
||||
join(staticDir, getShikiGrammarAssetPath('cpp-macro'))
|
||||
).json();
|
||||
expect(grammar.name).toBe('cpp-macro');
|
||||
expect(grammar.scopeName).toBeString();
|
||||
});
|
||||
|
||||
it('writes every bundled theme', async () => {
|
||||
expect(SHIKI_THEMES['github-dark']?.type).toBe('dark');
|
||||
expect(
|
||||
await Bun.file(join(staticDir, getShikiThemeAssetPath('github-dark'))).exists()
|
||||
).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe('shiki assets path', () => {
|
||||
it('changes with the generated content, not only the shiki version', () => {
|
||||
// Assets are served immutable, so a format change must move them to a new URL.
|
||||
expect(SHIKI_ASSETS_PATH).toMatch(/^shiki\/\d+\.\d+\.\d+-[0-9a-f]{8}$/);
|
||||
});
|
||||
});
|
||||
|
||||
describe('client bundle', () => {
|
||||
it('keeps the language catalog out of plain highlighting', async () => {
|
||||
// plain-highlight is in the eager ClientCodeBlock chunk; only theme types are needed there.
|
||||
const source = await Bun.file(join(import.meta.dir, 'plain-highlight.ts')).text();
|
||||
expect(source).not.toContain("'./shiki-catalog'");
|
||||
expect(source).toContain("'./shiki-themes'");
|
||||
});
|
||||
});
|
||||
|
||||
describe('getLanguageForSyntax', () => {
|
||||
it('resolves GitBook syntaxes to canonical ids', () => {
|
||||
expect(getLanguageForSyntax('JSON')).toBe('json');
|
||||
expect(getLanguageForSyntax('js')).toBe('javascript');
|
||||
expect(getLanguageForSyntax('objectivec')).toBe('objective-c');
|
||||
expect(getLanguageForSyntax('parser')).toBe('blade');
|
||||
expect(getLanguageForSyntax('not-a-language')).toBeNull();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,902 @@
|
||||
// Generated by scripts/generate-shiki-assets.ts, do not edit.
|
||||
|
||||
export const SHIKI_ASSETS_PATH = 'shiki/3.21.0-f9eb29ba';
|
||||
|
||||
/** Every Shiki language id and alias, mapped to the id of its asset. */
|
||||
export const SHIKI_LANGUAGES: Record<string, string> = {
|
||||
'1c': 'bsl',
|
||||
'1c-query': 'sdbl',
|
||||
abap: 'abap',
|
||||
'actionscript-3': 'actionscript-3',
|
||||
ada: 'ada',
|
||||
adoc: 'asciidoc',
|
||||
'angular-html': 'angular-html',
|
||||
'angular-ts': 'angular-ts',
|
||||
apache: 'apache',
|
||||
apex: 'apex',
|
||||
apl: 'apl',
|
||||
applescript: 'applescript',
|
||||
ara: 'ara',
|
||||
asciidoc: 'asciidoc',
|
||||
asm: 'asm',
|
||||
astro: 'astro',
|
||||
awk: 'awk',
|
||||
ballerina: 'ballerina',
|
||||
bash: 'shellscript',
|
||||
bat: 'bat',
|
||||
batch: 'bat',
|
||||
be: 'berry',
|
||||
beancount: 'beancount',
|
||||
berry: 'berry',
|
||||
bibtex: 'bibtex',
|
||||
bicep: 'bicep',
|
||||
blade: 'blade',
|
||||
bsl: 'bsl',
|
||||
c: 'c',
|
||||
'c#': 'csharp',
|
||||
'c++': 'cpp',
|
||||
c3: 'c3',
|
||||
cadence: 'cadence',
|
||||
cairo: 'cairo',
|
||||
cdc: 'cadence',
|
||||
cjs: 'javascript',
|
||||
clarity: 'clarity',
|
||||
clj: 'clojure',
|
||||
clojure: 'clojure',
|
||||
'closure-templates': 'soy',
|
||||
cmake: 'cmake',
|
||||
cmd: 'vb',
|
||||
cobol: 'cobol',
|
||||
codeowners: 'codeowners',
|
||||
codeql: 'codeql',
|
||||
coffee: 'coffee',
|
||||
coffeescript: 'coffee',
|
||||
'common-lisp': 'common-lisp',
|
||||
console: 'shellsession',
|
||||
coq: 'coq',
|
||||
cpp: 'cpp',
|
||||
cql: 'cypher',
|
||||
crystal: 'crystal',
|
||||
cs: 'csharp',
|
||||
csharp: 'csharp',
|
||||
css: 'css',
|
||||
csv: 'csv',
|
||||
cts: 'typescript',
|
||||
cue: 'cue',
|
||||
cypher: 'cypher',
|
||||
d: 'd',
|
||||
dart: 'dart',
|
||||
dax: 'dax',
|
||||
desktop: 'desktop',
|
||||
diff: 'diff',
|
||||
docker: 'docker',
|
||||
dockerfile: 'docker',
|
||||
dotenv: 'dotenv',
|
||||
'dream-maker': 'dream-maker',
|
||||
edge: 'edge',
|
||||
elisp: 'emacs-lisp',
|
||||
elixir: 'elixir',
|
||||
elm: 'elm',
|
||||
'emacs-lisp': 'emacs-lisp',
|
||||
erb: 'erb',
|
||||
erl: 'erlang',
|
||||
erlang: 'erlang',
|
||||
f: 'fortran-fixed-form',
|
||||
'f#': 'fsharp',
|
||||
f03: 'fortran-free-form',
|
||||
f08: 'fortran-free-form',
|
||||
f18: 'fortran-free-form',
|
||||
f77: 'fortran-fixed-form',
|
||||
f90: 'fortran-free-form',
|
||||
f95: 'fortran-free-form',
|
||||
fennel: 'fennel',
|
||||
fish: 'fish',
|
||||
fluent: 'fluent',
|
||||
for: 'fortran-fixed-form',
|
||||
'fortran-fixed-form': 'fortran-fixed-form',
|
||||
'fortran-free-form': 'fortran-free-form',
|
||||
fs: 'fsharp',
|
||||
fsharp: 'fsharp',
|
||||
fsl: 'jssm',
|
||||
ftl: 'fluent',
|
||||
gdresource: 'gdresource',
|
||||
gdscript: 'gdscript',
|
||||
gdshader: 'gdshader',
|
||||
genie: 'genie',
|
||||
gherkin: 'gherkin',
|
||||
'git-commit': 'git-commit',
|
||||
'git-rebase': 'git-rebase',
|
||||
gjs: 'glimmer-js',
|
||||
gleam: 'gleam',
|
||||
'glimmer-js': 'glimmer-js',
|
||||
'glimmer-ts': 'glimmer-ts',
|
||||
glsl: 'glsl',
|
||||
gn: 'gn',
|
||||
gnuplot: 'gnuplot',
|
||||
go: 'go',
|
||||
gql: 'graphql',
|
||||
graphql: 'graphql',
|
||||
groovy: 'groovy',
|
||||
gts: 'glimmer-ts',
|
||||
hack: 'hack',
|
||||
haml: 'haml',
|
||||
handlebars: 'handlebars',
|
||||
haskell: 'haskell',
|
||||
haxe: 'haxe',
|
||||
hbs: 'handlebars',
|
||||
hcl: 'hcl',
|
||||
hjson: 'hjson',
|
||||
hlsl: 'hlsl',
|
||||
hs: 'haskell',
|
||||
html: 'html',
|
||||
'html-derivative': 'html-derivative',
|
||||
http: 'http',
|
||||
hurl: 'hurl',
|
||||
hxml: 'hxml',
|
||||
hy: 'hy',
|
||||
imba: 'imba',
|
||||
ini: 'ini',
|
||||
jade: 'pug',
|
||||
java: 'java',
|
||||
javascript: 'javascript',
|
||||
jinja: 'jinja',
|
||||
jison: 'jison',
|
||||
jl: 'julia',
|
||||
js: 'javascript',
|
||||
json: 'json',
|
||||
json5: 'json5',
|
||||
jsonc: 'jsonc',
|
||||
jsonl: 'jsonl',
|
||||
jsonnet: 'jsonnet',
|
||||
jssm: 'jssm',
|
||||
jsx: 'jsx',
|
||||
julia: 'julia',
|
||||
kdl: 'kdl',
|
||||
kotlin: 'kotlin',
|
||||
kql: 'kusto',
|
||||
kt: 'kotlin',
|
||||
kts: 'kotlin',
|
||||
kusto: 'kusto',
|
||||
latex: 'latex',
|
||||
lean: 'lean',
|
||||
lean4: 'lean',
|
||||
less: 'less',
|
||||
liquid: 'liquid',
|
||||
lisp: 'common-lisp',
|
||||
lit: 'ts-tags',
|
||||
llvm: 'llvm',
|
||||
log: 'log',
|
||||
logo: 'logo',
|
||||
lua: 'lua',
|
||||
luau: 'luau',
|
||||
make: 'make',
|
||||
makefile: 'make',
|
||||
markdown: 'markdown',
|
||||
marko: 'marko',
|
||||
matlab: 'matlab',
|
||||
mbt: 'moonbit',
|
||||
mbti: 'moonbit',
|
||||
md: 'markdown',
|
||||
mdc: 'mdc',
|
||||
mdx: 'mdx',
|
||||
mediawiki: 'wikitext',
|
||||
mermaid: 'mermaid',
|
||||
mips: 'mipsasm',
|
||||
mipsasm: 'mipsasm',
|
||||
mjs: 'javascript',
|
||||
mmd: 'mermaid',
|
||||
mojo: 'mojo',
|
||||
moonbit: 'moonbit',
|
||||
move: 'move',
|
||||
mts: 'typescript',
|
||||
nar: 'narrat',
|
||||
narrat: 'narrat',
|
||||
nextflow: 'nextflow',
|
||||
nf: 'nextflow',
|
||||
nginx: 'nginx',
|
||||
nim: 'nim',
|
||||
nix: 'nix',
|
||||
nu: 'nushell',
|
||||
nushell: 'nushell',
|
||||
objc: 'objective-c',
|
||||
'objective-c': 'objective-c',
|
||||
'objective-cpp': 'objective-cpp',
|
||||
ocaml: 'ocaml',
|
||||
openscad: 'openscad',
|
||||
pascal: 'pascal',
|
||||
perl: 'perl',
|
||||
perl6: 'raku',
|
||||
php: 'php',
|
||||
pkl: 'pkl',
|
||||
plsql: 'plsql',
|
||||
po: 'po',
|
||||
polar: 'polar',
|
||||
postcss: 'postcss',
|
||||
pot: 'po',
|
||||
potx: 'po',
|
||||
powerquery: 'powerquery',
|
||||
powershell: 'powershell',
|
||||
prisma: 'prisma',
|
||||
prolog: 'prolog',
|
||||
properties: 'ini',
|
||||
proto: 'proto',
|
||||
protobuf: 'proto',
|
||||
ps: 'powershell',
|
||||
ps1: 'powershell',
|
||||
pug: 'pug',
|
||||
puppet: 'puppet',
|
||||
purescript: 'purescript',
|
||||
py: 'python',
|
||||
python: 'python',
|
||||
ql: 'codeql',
|
||||
qml: 'qml',
|
||||
qmldir: 'qmldir',
|
||||
qss: 'qss',
|
||||
r: 'r',
|
||||
racket: 'racket',
|
||||
raku: 'raku',
|
||||
razor: 'razor',
|
||||
rb: 'ruby',
|
||||
reg: 'reg',
|
||||
regex: 'regexp',
|
||||
regexp: 'regexp',
|
||||
rel: 'rel',
|
||||
riscv: 'riscv',
|
||||
rosmsg: 'rosmsg',
|
||||
rs: 'rust',
|
||||
rst: 'rst',
|
||||
ruby: 'ruby',
|
||||
rust: 'rust',
|
||||
sas: 'sas',
|
||||
sass: 'sass',
|
||||
scad: 'openscad',
|
||||
scala: 'scala',
|
||||
scheme: 'scheme',
|
||||
scss: 'scss',
|
||||
sdbl: 'sdbl',
|
||||
sh: 'shellscript',
|
||||
shader: 'shaderlab',
|
||||
shaderlab: 'shaderlab',
|
||||
shell: 'shellscript',
|
||||
shellscript: 'shellscript',
|
||||
shellsession: 'shellsession',
|
||||
smalltalk: 'smalltalk',
|
||||
solidity: 'solidity',
|
||||
soy: 'soy',
|
||||
sparql: 'sparql',
|
||||
spl: 'splunk',
|
||||
splunk: 'splunk',
|
||||
sql: 'sql',
|
||||
'ssh-config': 'ssh-config',
|
||||
stata: 'stata',
|
||||
styl: 'stylus',
|
||||
stylus: 'stylus',
|
||||
svelte: 'svelte',
|
||||
swift: 'swift',
|
||||
'system-verilog': 'system-verilog',
|
||||
systemd: 'systemd',
|
||||
talon: 'talonscript',
|
||||
talonscript: 'talonscript',
|
||||
tasl: 'tasl',
|
||||
tcl: 'tcl',
|
||||
templ: 'templ',
|
||||
terraform: 'terraform',
|
||||
tex: 'tex',
|
||||
tf: 'terraform',
|
||||
tfvars: 'terraform',
|
||||
toml: 'toml',
|
||||
ts: 'typescript',
|
||||
'ts-tags': 'ts-tags',
|
||||
tsp: 'typespec',
|
||||
tsv: 'tsv',
|
||||
tsx: 'tsx',
|
||||
turtle: 'turtle',
|
||||
twig: 'twig',
|
||||
typ: 'typst',
|
||||
typescript: 'typescript',
|
||||
typespec: 'typespec',
|
||||
typst: 'typst',
|
||||
v: 'v',
|
||||
vala: 'vala',
|
||||
vb: 'vb',
|
||||
verilog: 'verilog',
|
||||
vhdl: 'vhdl',
|
||||
vim: 'viml',
|
||||
viml: 'viml',
|
||||
vimscript: 'viml',
|
||||
vue: 'vue',
|
||||
'vue-html': 'vue-html',
|
||||
'vue-vine': 'vue-vine',
|
||||
vy: 'vyper',
|
||||
vyper: 'vyper',
|
||||
wasm: 'wasm',
|
||||
wenyan: 'wenyan',
|
||||
wgsl: 'wgsl',
|
||||
wiki: 'wikitext',
|
||||
wikitext: 'wikitext',
|
||||
wit: 'wit',
|
||||
wl: 'wolfram',
|
||||
wolfram: 'wolfram',
|
||||
xml: 'xml',
|
||||
xsl: 'xsl',
|
||||
yaml: 'yaml',
|
||||
yml: 'yaml',
|
||||
zenscript: 'zenscript',
|
||||
zig: 'zig',
|
||||
zsh: 'shellscript',
|
||||
文言: 'wenyan',
|
||||
};
|
||||
|
||||
/** Grammars to register for each language, embedded ones first. */
|
||||
export const SHIKI_LANGUAGE_GRAMMARS: Record<string, string[]> = {
|
||||
abap: ['abap'],
|
||||
'actionscript-3': ['actionscript-3'],
|
||||
ada: ['ada'],
|
||||
'angular-html': [
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'angular-expression',
|
||||
'angular-expression',
|
||||
'angular-let-declaration',
|
||||
'angular-expression',
|
||||
'angular-template',
|
||||
'angular-expression',
|
||||
'angular-expression',
|
||||
'angular-template',
|
||||
'angular-template-blocks',
|
||||
'angular-html',
|
||||
],
|
||||
'angular-ts': [
|
||||
'angular-expression',
|
||||
'css',
|
||||
'scss',
|
||||
'angular-inline-style',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'angular-expression',
|
||||
'angular-expression',
|
||||
'angular-let-declaration',
|
||||
'angular-expression',
|
||||
'angular-template',
|
||||
'angular-expression',
|
||||
'angular-expression',
|
||||
'angular-template',
|
||||
'angular-template-blocks',
|
||||
'angular-html',
|
||||
'angular-expression',
|
||||
'angular-template',
|
||||
'angular-inline-template',
|
||||
'angular-expression',
|
||||
'angular-let-declaration',
|
||||
'angular-expression',
|
||||
'angular-template',
|
||||
'angular-expression',
|
||||
'angular-expression',
|
||||
'angular-template',
|
||||
'angular-template-blocks',
|
||||
'angular-ts',
|
||||
],
|
||||
apache: ['apache'],
|
||||
apex: ['apex'],
|
||||
apl: ['javascript', 'css', 'html', 'java', 'xml', 'css', 'javascript', 'json', 'apl'],
|
||||
applescript: ['applescript'],
|
||||
ara: ['ara'],
|
||||
asciidoc: ['asciidoc'],
|
||||
asm: ['asm'],
|
||||
astro: ['json', 'javascript', 'typescript', 'css', 'postcss', 'tsx', 'astro'],
|
||||
awk: ['awk'],
|
||||
ballerina: ['ballerina'],
|
||||
bat: ['bat'],
|
||||
beancount: ['beancount'],
|
||||
berry: ['berry'],
|
||||
bibtex: ['bibtex'],
|
||||
bicep: ['bicep'],
|
||||
blade: [
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'html-derivative',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'java',
|
||||
'xml',
|
||||
'sql',
|
||||
'javascript',
|
||||
'json',
|
||||
'css',
|
||||
'blade',
|
||||
],
|
||||
bsl: ['sdbl', 'bsl'],
|
||||
c: ['c'],
|
||||
c3: ['c3'],
|
||||
cadence: ['cadence'],
|
||||
cairo: ['python', 'cairo'],
|
||||
clarity: ['clarity'],
|
||||
clojure: ['clojure'],
|
||||
cmake: ['cmake'],
|
||||
cobol: ['javascript', 'css', 'html', 'java', 'cobol'],
|
||||
codeowners: ['codeowners'],
|
||||
codeql: ['codeql'],
|
||||
coffee: ['javascript', 'coffee'],
|
||||
'common-lisp': ['common-lisp'],
|
||||
coq: ['coq'],
|
||||
cpp: ['regexp', 'c', 'glsl', 'sql', 'cpp-macro', 'regexp', 'c', 'glsl', 'sql', 'cpp'],
|
||||
crystal: [
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'sql',
|
||||
'css',
|
||||
'c',
|
||||
'javascript',
|
||||
'shellscript',
|
||||
'crystal',
|
||||
],
|
||||
csharp: ['csharp'],
|
||||
css: ['css'],
|
||||
csv: ['csv'],
|
||||
cue: ['cue'],
|
||||
cypher: ['cypher'],
|
||||
d: ['d'],
|
||||
dart: ['dart'],
|
||||
dax: ['dax'],
|
||||
desktop: ['desktop'],
|
||||
diff: ['diff'],
|
||||
docker: ['docker'],
|
||||
dotenv: ['dotenv'],
|
||||
'dream-maker': ['dream-maker'],
|
||||
edge: [
|
||||
'typescript',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'html-derivative',
|
||||
'edge',
|
||||
],
|
||||
elixir: ['javascript', 'css', 'html', 'elixir'],
|
||||
elm: ['c', 'glsl', 'elm'],
|
||||
'emacs-lisp': ['emacs-lisp'],
|
||||
erb: [
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'javascript',
|
||||
'css',
|
||||
'haml',
|
||||
'java',
|
||||
'xml',
|
||||
'sql',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'jsx',
|
||||
'tsx',
|
||||
'graphql',
|
||||
'css',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp-macro',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp',
|
||||
'c',
|
||||
'javascript',
|
||||
'shellscript',
|
||||
'c',
|
||||
'lua',
|
||||
'yaml',
|
||||
'ruby',
|
||||
'erb',
|
||||
],
|
||||
erlang: ['markdown', 'erlang'],
|
||||
fennel: ['fennel'],
|
||||
fish: ['fish'],
|
||||
fluent: ['fluent'],
|
||||
'fortran-fixed-form': ['fortran-free-form', 'fortran-fixed-form'],
|
||||
'fortran-free-form': ['fortran-free-form'],
|
||||
fsharp: ['markdown', 'fsharp'],
|
||||
gdresource: ['gdshader', 'gdscript', 'gdresource'],
|
||||
gdscript: ['gdscript'],
|
||||
gdshader: ['gdshader'],
|
||||
genie: ['genie'],
|
||||
gherkin: ['gherkin'],
|
||||
'git-commit': ['diff', 'git-commit'],
|
||||
'git-rebase': ['shellscript', 'git-rebase'],
|
||||
gleam: ['gleam'],
|
||||
'glimmer-js': ['javascript', 'typescript', 'css', 'javascript', 'css', 'html', 'glimmer-js'],
|
||||
'glimmer-ts': ['typescript', 'css', 'javascript', 'javascript', 'css', 'html', 'glimmer-ts'],
|
||||
glsl: ['c', 'glsl'],
|
||||
gn: ['gn'],
|
||||
gnuplot: ['gnuplot'],
|
||||
go: ['go'],
|
||||
graphql: ['javascript', 'typescript', 'jsx', 'tsx', 'graphql'],
|
||||
groovy: ['groovy'],
|
||||
hack: ['javascript', 'css', 'html', 'sql', 'hack'],
|
||||
haml: ['javascript', 'css', 'haml'],
|
||||
handlebars: ['javascript', 'css', 'html', 'css', 'javascript', 'yaml', 'handlebars'],
|
||||
haskell: ['haskell'],
|
||||
haxe: ['haxe'],
|
||||
hcl: ['hcl'],
|
||||
hjson: ['hjson'],
|
||||
hlsl: ['hlsl'],
|
||||
html: ['javascript', 'css', 'html'],
|
||||
'html-derivative': ['javascript', 'css', 'html', 'html-derivative'],
|
||||
http: [
|
||||
'shellscript',
|
||||
'json',
|
||||
'java',
|
||||
'xml',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'jsx',
|
||||
'tsx',
|
||||
'graphql',
|
||||
'http',
|
||||
],
|
||||
hurl: ['javascript', 'typescript', 'jsx', 'tsx', 'graphql', 'java', 'xml', 'csv', 'hurl'],
|
||||
hxml: ['haxe', 'hxml'],
|
||||
hy: ['hy'],
|
||||
imba: ['imba'],
|
||||
ini: ['ini'],
|
||||
java: ['java'],
|
||||
javascript: ['javascript'],
|
||||
jinja: ['javascript', 'css', 'html', 'jinja-html', 'jinja'],
|
||||
jison: ['javascript', 'jison'],
|
||||
json: ['json'],
|
||||
json5: ['json5'],
|
||||
jsonc: ['jsonc'],
|
||||
jsonl: ['jsonl'],
|
||||
jsonnet: ['jsonnet'],
|
||||
jssm: ['jssm'],
|
||||
jsx: ['jsx'],
|
||||
julia: [
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp-macro',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp',
|
||||
'python',
|
||||
'javascript',
|
||||
'r',
|
||||
'sql',
|
||||
'julia',
|
||||
],
|
||||
kdl: ['kdl'],
|
||||
kotlin: ['kotlin'],
|
||||
kusto: ['kusto'],
|
||||
latex: ['r', 'tex', 'latex'],
|
||||
lean: ['lean'],
|
||||
less: ['less'],
|
||||
liquid: ['javascript', 'css', 'html', 'css', 'json', 'javascript', 'liquid'],
|
||||
llvm: ['llvm'],
|
||||
log: ['log'],
|
||||
logo: ['logo'],
|
||||
lua: ['c', 'lua'],
|
||||
luau: ['luau'],
|
||||
make: ['make'],
|
||||
markdown: ['markdown'],
|
||||
marko: ['css', 'less', 'css', 'scss', 'typescript', 'marko'],
|
||||
matlab: ['matlab'],
|
||||
mdc: ['markdown', 'yaml', 'javascript', 'css', 'html', 'html-derivative', 'mdc'],
|
||||
mdx: ['mdx'],
|
||||
mermaid: ['mermaid'],
|
||||
mipsasm: ['mipsasm'],
|
||||
mojo: ['mojo'],
|
||||
moonbit: ['moonbit'],
|
||||
move: ['move'],
|
||||
narrat: ['narrat'],
|
||||
nextflow: ['nextflow'],
|
||||
nginx: ['c', 'lua', 'nginx'],
|
||||
nim: [
|
||||
'c',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'java',
|
||||
'xml',
|
||||
'javascript',
|
||||
'css',
|
||||
'c',
|
||||
'glsl',
|
||||
'markdown',
|
||||
'nim',
|
||||
],
|
||||
nix: ['markdown-nix', 'nix'],
|
||||
nushell: ['nushell'],
|
||||
'objective-c': ['objective-c'],
|
||||
'objective-cpp': ['objective-cpp'],
|
||||
ocaml: ['ocaml'],
|
||||
openscad: ['openscad'],
|
||||
pascal: ['pascal'],
|
||||
perl: ['javascript', 'css', 'html', 'java', 'xml', 'css', 'javascript', 'sql', 'perl'],
|
||||
php: ['javascript', 'css', 'html', 'java', 'xml', 'sql', 'javascript', 'json', 'css', 'php'],
|
||||
pkl: ['pkl'],
|
||||
plsql: ['plsql'],
|
||||
po: ['po'],
|
||||
polar: ['polar'],
|
||||
postcss: ['postcss'],
|
||||
powerquery: ['powerquery'],
|
||||
powershell: ['powershell'],
|
||||
prisma: ['prisma'],
|
||||
prolog: ['prolog'],
|
||||
proto: ['proto'],
|
||||
pug: ['javascript', 'css', 'javascript', 'css', 'html', 'pug'],
|
||||
puppet: ['puppet'],
|
||||
purescript: ['purescript'],
|
||||
python: ['python'],
|
||||
qml: ['javascript', 'qml'],
|
||||
qmldir: ['qmldir'],
|
||||
qss: ['qss'],
|
||||
r: ['r'],
|
||||
racket: ['racket'],
|
||||
raku: ['raku'],
|
||||
razor: ['javascript', 'css', 'html', 'csharp', 'razor'],
|
||||
reg: ['reg'],
|
||||
regexp: ['regexp'],
|
||||
rel: ['rel'],
|
||||
riscv: ['riscv'],
|
||||
rosmsg: ['rosmsg'],
|
||||
rst: [
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'html-derivative',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp-macro',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp',
|
||||
'python',
|
||||
'javascript',
|
||||
'shellscript',
|
||||
'yaml',
|
||||
'cmake',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'javascript',
|
||||
'css',
|
||||
'haml',
|
||||
'java',
|
||||
'xml',
|
||||
'sql',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'jsx',
|
||||
'tsx',
|
||||
'graphql',
|
||||
'css',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp-macro',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp',
|
||||
'c',
|
||||
'javascript',
|
||||
'shellscript',
|
||||
'c',
|
||||
'lua',
|
||||
'yaml',
|
||||
'ruby',
|
||||
'rst',
|
||||
],
|
||||
ruby: [
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'javascript',
|
||||
'css',
|
||||
'haml',
|
||||
'java',
|
||||
'xml',
|
||||
'sql',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'jsx',
|
||||
'tsx',
|
||||
'graphql',
|
||||
'css',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp-macro',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp',
|
||||
'c',
|
||||
'javascript',
|
||||
'shellscript',
|
||||
'c',
|
||||
'lua',
|
||||
'yaml',
|
||||
'ruby',
|
||||
],
|
||||
rust: ['rust'],
|
||||
sas: ['sql', 'sas'],
|
||||
sass: ['sass'],
|
||||
scala: ['scala'],
|
||||
scheme: ['scheme'],
|
||||
scss: ['css', 'scss'],
|
||||
sdbl: ['sdbl'],
|
||||
shaderlab: ['hlsl', 'shaderlab'],
|
||||
shellscript: ['shellscript'],
|
||||
shellsession: ['shellscript', 'shellsession'],
|
||||
smalltalk: ['smalltalk'],
|
||||
solidity: ['solidity'],
|
||||
soy: ['javascript', 'css', 'html', 'soy'],
|
||||
sparql: ['turtle', 'sparql'],
|
||||
splunk: ['splunk'],
|
||||
sql: ['sql'],
|
||||
'ssh-config': ['ssh-config'],
|
||||
stata: ['sql', 'stata'],
|
||||
stylus: ['stylus'],
|
||||
svelte: ['javascript', 'typescript', 'css', 'postcss', 'svelte'],
|
||||
swift: ['swift'],
|
||||
'system-verilog': ['system-verilog'],
|
||||
systemd: ['systemd'],
|
||||
talonscript: ['talonscript'],
|
||||
tasl: ['tasl'],
|
||||
tcl: ['tcl'],
|
||||
templ: ['go', 'javascript', 'css', 'templ'],
|
||||
terraform: ['terraform'],
|
||||
tex: ['r', 'tex'],
|
||||
toml: ['toml'],
|
||||
'ts-tags': [
|
||||
'typescript',
|
||||
'typescript',
|
||||
'css',
|
||||
'javascript',
|
||||
'es-tag-css',
|
||||
'typescript',
|
||||
'c',
|
||||
'glsl',
|
||||
'javascript',
|
||||
'es-tag-glsl',
|
||||
'typescript',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'javascript',
|
||||
'es-tag-html',
|
||||
'typescript',
|
||||
'sql',
|
||||
'es-tag-sql',
|
||||
'java',
|
||||
'xml',
|
||||
'es-tag-xml',
|
||||
'ts-tags',
|
||||
],
|
||||
tsv: ['tsv'],
|
||||
tsx: ['tsx'],
|
||||
turtle: ['turtle'],
|
||||
twig: [
|
||||
'css',
|
||||
'javascript',
|
||||
'css',
|
||||
'scss',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'java',
|
||||
'xml',
|
||||
'sql',
|
||||
'javascript',
|
||||
'json',
|
||||
'css',
|
||||
'php',
|
||||
'python',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'javascript',
|
||||
'css',
|
||||
'haml',
|
||||
'java',
|
||||
'xml',
|
||||
'sql',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'jsx',
|
||||
'tsx',
|
||||
'graphql',
|
||||
'css',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp-macro',
|
||||
'regexp',
|
||||
'c',
|
||||
'glsl',
|
||||
'sql',
|
||||
'cpp',
|
||||
'c',
|
||||
'javascript',
|
||||
'shellscript',
|
||||
'c',
|
||||
'lua',
|
||||
'yaml',
|
||||
'ruby',
|
||||
'twig',
|
||||
],
|
||||
typescript: ['typescript'],
|
||||
typespec: ['typespec'],
|
||||
typst: ['typst'],
|
||||
v: ['v'],
|
||||
vala: ['vala'],
|
||||
vb: ['vb'],
|
||||
verilog: ['verilog'],
|
||||
vhdl: ['vhdl'],
|
||||
viml: ['viml'],
|
||||
vue: [
|
||||
'css',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'json',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'html-derivative',
|
||||
'markdown-vue',
|
||||
'vue-directives',
|
||||
'vue-interpolations',
|
||||
'javascript',
|
||||
'vue-sfc-style-variable-injection',
|
||||
'vue',
|
||||
],
|
||||
'vue-html': ['javascript', 'vue-html'],
|
||||
'vue-vine': ['css', 'css', 'scss', 'less', 'stylus', 'postcss', 'javascript', 'vue-vine'],
|
||||
vyper: ['vyper'],
|
||||
wasm: ['wasm'],
|
||||
wenyan: ['wenyan'],
|
||||
wgsl: ['wgsl'],
|
||||
wikitext: ['wikitext'],
|
||||
wit: ['wit'],
|
||||
wolfram: ['wolfram'],
|
||||
xml: ['java', 'xml'],
|
||||
xsl: ['java', 'xml', 'xsl'],
|
||||
yaml: ['yaml'],
|
||||
zenscript: ['zenscript'],
|
||||
zig: ['zig'],
|
||||
};
|
||||
|
||||
export function getShikiGrammarAssetPath(name: string): string {
|
||||
return `${SHIKI_ASSETS_PATH}/grammars/${name}.json`;
|
||||
}
|
||||
|
||||
export function getShikiThemeAssetPath(id: string): string {
|
||||
return `${SHIKI_ASSETS_PATH}/themes/${id}.json`;
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
// Generated by scripts/generate-shiki-assets.ts, do not edit.
|
||||
|
||||
/** Every bundled Shiki theme id, with its type. */
|
||||
export const SHIKI_THEMES: Record<string, { type: 'light' | 'dark' }> = {
|
||||
andromeeda: {
|
||||
type: 'dark',
|
||||
},
|
||||
'aurora-x': {
|
||||
type: 'dark',
|
||||
},
|
||||
'ayu-dark': {
|
||||
type: 'dark',
|
||||
},
|
||||
'catppuccin-frappe': {
|
||||
type: 'dark',
|
||||
},
|
||||
'catppuccin-latte': {
|
||||
type: 'light',
|
||||
},
|
||||
'catppuccin-macchiato': {
|
||||
type: 'dark',
|
||||
},
|
||||
'catppuccin-mocha': {
|
||||
type: 'dark',
|
||||
},
|
||||
'dark-plus': {
|
||||
type: 'dark',
|
||||
},
|
||||
dracula: {
|
||||
type: 'dark',
|
||||
},
|
||||
'dracula-soft': {
|
||||
type: 'dark',
|
||||
},
|
||||
'everforest-dark': {
|
||||
type: 'dark',
|
||||
},
|
||||
'everforest-light': {
|
||||
type: 'light',
|
||||
},
|
||||
'github-dark': {
|
||||
type: 'dark',
|
||||
},
|
||||
'github-dark-default': {
|
||||
type: 'dark',
|
||||
},
|
||||
'github-dark-dimmed': {
|
||||
type: 'dark',
|
||||
},
|
||||
'github-dark-high-contrast': {
|
||||
type: 'dark',
|
||||
},
|
||||
'github-light': {
|
||||
type: 'light',
|
||||
},
|
||||
'github-light-default': {
|
||||
type: 'light',
|
||||
},
|
||||
'github-light-high-contrast': {
|
||||
type: 'light',
|
||||
},
|
||||
'gruvbox-dark-hard': {
|
||||
type: 'dark',
|
||||
},
|
||||
'gruvbox-dark-medium': {
|
||||
type: 'dark',
|
||||
},
|
||||
'gruvbox-dark-soft': {
|
||||
type: 'dark',
|
||||
},
|
||||
'gruvbox-light-hard': {
|
||||
type: 'light',
|
||||
},
|
||||
'gruvbox-light-medium': {
|
||||
type: 'light',
|
||||
},
|
||||
'gruvbox-light-soft': {
|
||||
type: 'light',
|
||||
},
|
||||
houston: {
|
||||
type: 'dark',
|
||||
},
|
||||
'kanagawa-dragon': {
|
||||
type: 'dark',
|
||||
},
|
||||
'kanagawa-lotus': {
|
||||
type: 'light',
|
||||
},
|
||||
'kanagawa-wave': {
|
||||
type: 'dark',
|
||||
},
|
||||
laserwave: {
|
||||
type: 'dark',
|
||||
},
|
||||
'light-plus': {
|
||||
type: 'light',
|
||||
},
|
||||
'material-theme': {
|
||||
type: 'dark',
|
||||
},
|
||||
'material-theme-darker': {
|
||||
type: 'dark',
|
||||
},
|
||||
'material-theme-lighter': {
|
||||
type: 'light',
|
||||
},
|
||||
'material-theme-ocean': {
|
||||
type: 'dark',
|
||||
},
|
||||
'material-theme-palenight': {
|
||||
type: 'dark',
|
||||
},
|
||||
'min-dark': {
|
||||
type: 'dark',
|
||||
},
|
||||
'min-light': {
|
||||
type: 'light',
|
||||
},
|
||||
monokai: {
|
||||
type: 'dark',
|
||||
},
|
||||
'night-owl': {
|
||||
type: 'dark',
|
||||
},
|
||||
nord: {
|
||||
type: 'dark',
|
||||
},
|
||||
'one-dark-pro': {
|
||||
type: 'dark',
|
||||
},
|
||||
'one-light': {
|
||||
type: 'light',
|
||||
},
|
||||
plastic: {
|
||||
type: 'dark',
|
||||
},
|
||||
poimandres: {
|
||||
type: 'dark',
|
||||
},
|
||||
red: {
|
||||
type: 'dark',
|
||||
},
|
||||
'rose-pine': {
|
||||
type: 'dark',
|
||||
},
|
||||
'rose-pine-dawn': {
|
||||
type: 'light',
|
||||
},
|
||||
'rose-pine-moon': {
|
||||
type: 'dark',
|
||||
},
|
||||
'slack-dark': {
|
||||
type: 'dark',
|
||||
},
|
||||
'slack-ochin': {
|
||||
type: 'light',
|
||||
},
|
||||
'snazzy-light': {
|
||||
type: 'light',
|
||||
},
|
||||
'solarized-dark': {
|
||||
type: 'dark',
|
||||
},
|
||||
'solarized-light': {
|
||||
type: 'light',
|
||||
},
|
||||
'synthwave-84': {
|
||||
type: 'dark',
|
||||
},
|
||||
'tokyo-night': {
|
||||
type: 'dark',
|
||||
},
|
||||
vesper: {
|
||||
type: 'dark',
|
||||
},
|
||||
'vitesse-black': {
|
||||
type: 'dark',
|
||||
},
|
||||
'vitesse-dark': {
|
||||
type: 'dark',
|
||||
},
|
||||
'vitesse-light': {
|
||||
type: 'light',
|
||||
},
|
||||
};
|
||||
@@ -92,4 +92,5 @@ const TAGS: { [type in DocumentBlockHeading['type']]: React.ElementType } = {
|
||||
'heading-1': 'h2',
|
||||
'heading-2': 'h3',
|
||||
'heading-3': 'h4',
|
||||
'heading-4': 'h5',
|
||||
};
|
||||
|
||||
@@ -39,6 +39,7 @@ export type OpenAPIBlockClientContextProps = {
|
||||
headingNode: React.ReactNode;
|
||||
descriptionNode: React.ReactNode;
|
||||
scalarRuntimeURL: string;
|
||||
staticAssetsURL: string;
|
||||
};
|
||||
|
||||
type OpenAPIBlockVariant =
|
||||
@@ -65,7 +66,13 @@ export function OpenAPIBlockClient(props: OpenAPIBlockClientProps) {
|
||||
id: props.id,
|
||||
blockKey: props.blockKey,
|
||||
renderCodeBlock: ({ code, syntax }) => (
|
||||
<ClientPlainCodeBlock code={code} syntax={syntax} mode={mode} themes={codeTheme} />
|
||||
<ClientPlainCodeBlock
|
||||
code={code}
|
||||
syntax={syntax}
|
||||
mode={mode}
|
||||
themes={codeTheme}
|
||||
staticAssetsURL={props.staticAssetsURL}
|
||||
/>
|
||||
),
|
||||
renderDocument: () => descriptionNode,
|
||||
renderHeading: () => headingNode,
|
||||
|
||||
@@ -166,6 +166,7 @@ export function getOpenAPIBlockClientProps(args: {
|
||||
return {
|
||||
...serializable,
|
||||
mode: props.context.mode,
|
||||
staticAssetsURL: getAssetURL(''),
|
||||
codeTheme:
|
||||
context && 'customization' in context
|
||||
? context.customization.styling.codeTheme.openapi
|
||||
|
||||
@@ -10,6 +10,11 @@
|
||||
@apply m-0 px-2.5 py-1 h-6 text-[0.813rem];
|
||||
}
|
||||
|
||||
/* The uppercase label renders 1px above center in page cards. */
|
||||
.page-card-method .openapi-method-medium {
|
||||
@apply pt-[5px] pb-[3px];
|
||||
}
|
||||
|
||||
.toclink .openapi-method {
|
||||
@apply text-[0.625rem] flex items-center justify-center;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,411 @@
|
||||
'use client';
|
||||
|
||||
import { useRouter, useSearchParams } from 'next/navigation';
|
||||
import React from 'react';
|
||||
|
||||
import { scrollToHash, useHash } from '../hooks';
|
||||
import { CONTENT_STYLE_REDUCED, MAIN_CONTENT_ID } from '../layout';
|
||||
import { Button, SkeletonUpdate, SuspenseLoadedHint } from '../primitives';
|
||||
import { UpdatesFilterContext, applyTagFilterAttribute } from './UpdatesFilter';
|
||||
import { UpdatesFilterScript } from './UpdatesFilterScript';
|
||||
import {
|
||||
type FilteredUpdatesPageResult,
|
||||
getFilteredUpdatesPage,
|
||||
resolveUpdatesAnchor,
|
||||
} from './UpdatesServerActions';
|
||||
import { tString, useLanguage } from '@/intl/client';
|
||||
import { tcls } from '@/lib/tailwind';
|
||||
import {
|
||||
UPDATES_FILTER_KEY_ATTR,
|
||||
UPDATES_FILTER_SEARCH_PARAM,
|
||||
type UpdatesPageRange,
|
||||
getUpdatesPageRange,
|
||||
normalizeUpdatesFilterTags,
|
||||
updatesFilterStyleKey,
|
||||
} from '@/lib/updates';
|
||||
import {
|
||||
UPDATES_PAGE_SEARCH_PARAM,
|
||||
parseUpdatesPageParam,
|
||||
setUpdatesPageParam,
|
||||
} from '@/lib/updates-url';
|
||||
|
||||
const PENDING_FILTER_ATTR = 'data-updates-pending-filter';
|
||||
export const HIDE_PENDING_UPDATES = '[html[data-updates-pending-filter]_&]:hidden';
|
||||
|
||||
let pendingScrollTargetPage: number | null = null;
|
||||
|
||||
export function markUpdatesPaginationScroll(targetPage: number) {
|
||||
pendingScrollTargetPage = targetPage;
|
||||
}
|
||||
|
||||
type FilteredPage = Extract<FilteredUpdatesPageResult, { status: 'ok' }>;
|
||||
type FilterView =
|
||||
| { status: 'loading'; tagsKey: string; pagination: UpdatesPageRange | null }
|
||||
| { status: 'error'; pagination: null }
|
||||
| ({ status: 'filtered'; tagsKey: string } & Omit<FilteredPage, 'status'>);
|
||||
type UpdatesView = { status: 'unfiltered'; pagination: UpdatesPageRange } | FilterView;
|
||||
|
||||
const PaginatedUpdatesContext = React.createContext<{
|
||||
view: UpdatesView;
|
||||
goToPage: (page: number) => void;
|
||||
retry: () => void;
|
||||
} | null>(null);
|
||||
|
||||
export function PaginatedUpdatesProvider(props: {
|
||||
pageId: string;
|
||||
revisionId: string;
|
||||
isEmbeddable: boolean;
|
||||
tagSlugs: string[];
|
||||
initialPagination: UpdatesPageRange;
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const { pageId, revisionId, isEmbeddable, tagSlugs, initialPagination, children } = props;
|
||||
const searchParams = useSearchParams();
|
||||
const availableTags = React.useMemo(() => new Set(tagSlugs), [tagSlugs]);
|
||||
const styleKey = updatesFilterStyleKey(tagSlugs);
|
||||
const tagsKey = normalizeUpdatesFilterTags(
|
||||
searchParams.getAll(UPDATES_FILTER_SEARCH_PARAM),
|
||||
availableTags
|
||||
).join(' ');
|
||||
const tags = React.useMemo(() => tagsKey.split(' ').filter(Boolean), [tagsKey]);
|
||||
const page = parseUpdatesPageParam(searchParams.get(UPDATES_PAGE_SEARCH_PARAM)) ?? 1;
|
||||
const { view, retry } = useFilteredUpdatesView({
|
||||
pageId,
|
||||
revisionId,
|
||||
isEmbeddable,
|
||||
initialPagination,
|
||||
tags,
|
||||
page,
|
||||
});
|
||||
|
||||
React.useLayoutEffect(() => {
|
||||
document.documentElement.setAttribute(UPDATES_FILTER_KEY_ATTR, styleKey);
|
||||
return () => {
|
||||
document.documentElement.removeAttribute(UPDATES_FILTER_KEY_ATTR);
|
||||
document.documentElement.removeAttribute(PENDING_FILTER_ATTR);
|
||||
applyTagFilterAttribute([]);
|
||||
};
|
||||
}, [styleKey]);
|
||||
|
||||
React.useLayoutEffect(() => {
|
||||
applyTagFilterAttribute(tags);
|
||||
}, [tags]);
|
||||
|
||||
React.useLayoutEffect(() => {
|
||||
if (view.status !== 'loading') {
|
||||
document.documentElement.removeAttribute(PENDING_FILTER_ATTR);
|
||||
}
|
||||
}, [view.status]);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (pendingScrollTargetPage !== page) {
|
||||
return;
|
||||
}
|
||||
pendingScrollTargetPage = null;
|
||||
scrollUpdatesToTop();
|
||||
}, [page]);
|
||||
|
||||
useResolveUpdatesAnchor({ pageId, isEmbeddable, tags, view });
|
||||
|
||||
function toggleTag(tag: string) {
|
||||
let nextTags = normalizeUpdatesFilterTags([...tags, tag], availableTags);
|
||||
if (tags.includes(tag)) {
|
||||
nextTags = tags.filter((selected) => selected !== tag);
|
||||
}
|
||||
navigate(nextTags, 1, 'replace');
|
||||
}
|
||||
|
||||
return (
|
||||
<UpdatesFilterContext.Provider
|
||||
value={{
|
||||
selectedTags: tags,
|
||||
selectedTagSet: new Set(tags),
|
||||
toggleTag,
|
||||
clearTags: () => navigate([], 1, 'replace'),
|
||||
}}
|
||||
>
|
||||
<PaginatedUpdatesContext.Provider
|
||||
value={{
|
||||
view,
|
||||
goToPage: (nextPage) => navigate(tags, nextPage, 'push'),
|
||||
retry,
|
||||
}}
|
||||
>
|
||||
{tagSlugs.length > 0 && (
|
||||
<UpdatesFilterScript
|
||||
tagSlugs={tagSlugs}
|
||||
filterAttribute={PENDING_FILTER_ATTR}
|
||||
/>
|
||||
)}
|
||||
{children}
|
||||
</PaginatedUpdatesContext.Provider>
|
||||
</UpdatesFilterContext.Provider>
|
||||
);
|
||||
}
|
||||
|
||||
export function usePaginatedUpdates() {
|
||||
return React.useContext(PaginatedUpdatesContext);
|
||||
}
|
||||
|
||||
export function PaginatedUpdatesBody(props: { children: React.ReactNode }) {
|
||||
const updates = usePaginatedUpdates();
|
||||
const language = useLanguage();
|
||||
if (updates?.view.status === 'loading') {
|
||||
return (
|
||||
<div className={tcls(CONTENT_STYLE_REDUCED, 'flex flex-col gap-20')}>
|
||||
<SkeletonUpdate />
|
||||
<SkeletonUpdate />
|
||||
<SkeletonUpdate />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
if (updates?.view.status === 'error') {
|
||||
return (
|
||||
<div
|
||||
role="alert"
|
||||
className={tcls(
|
||||
CONTENT_STYLE_REDUCED,
|
||||
'flex items-center justify-between gap-4 rounded-lg border border-tint-subtle p-4 text-sm text-tint'
|
||||
)}
|
||||
>
|
||||
<span>{tString(language, 'unexpected_error')}</span>
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="small"
|
||||
label={tString(language, 'unexpected_error_retry')}
|
||||
onClick={updates.retry}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
if (updates?.view.status === 'filtered') {
|
||||
return (
|
||||
<div className="contents" data-content-ref-root="">
|
||||
<SuspenseLoadedHint />
|
||||
{updates.view.content}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return <div className={`contents ${HIDE_PENDING_UPDATES}`}>{props.children}</div>;
|
||||
}
|
||||
|
||||
/** Loads the filtered page for the selected tags and page, or falls back to the server-rendered one. */
|
||||
function useFilteredUpdatesView(options: {
|
||||
pageId: string;
|
||||
revisionId: string;
|
||||
isEmbeddable: boolean;
|
||||
initialPagination: UpdatesPageRange;
|
||||
tags: string[];
|
||||
page: number;
|
||||
}) {
|
||||
const { pageId, revisionId, isEmbeddable, initialPagination, tags, page } = options;
|
||||
const tagsKey = tags.join(' ');
|
||||
const initialPage = initialPagination.page;
|
||||
const router = useRouter();
|
||||
const [filterView, setFilterView] = React.useState<FilterView | null>(null);
|
||||
const [retryCount, setRetryCount] = React.useState(0);
|
||||
const hasNewerRevision = React.useRef(false);
|
||||
const view = React.useMemo<UpdatesView>(
|
||||
() => filterView ?? { status: 'unfiltered', pagination: initialPagination },
|
||||
[filterView, initialPagination]
|
||||
);
|
||||
const isShowingPage =
|
||||
filterView?.status === 'filtered' &&
|
||||
filterView.tagsKey === tagsKey &&
|
||||
filterView.pagination.page === page;
|
||||
|
||||
React.useLayoutEffect(() => {
|
||||
if (!tags.length) {
|
||||
if (page === initialPage && !hasNewerRevision.current) {
|
||||
setFilterView(null);
|
||||
return;
|
||||
}
|
||||
setFilterView({ status: 'loading', tagsKey, pagination: null });
|
||||
const target = relativeURL(new URL(window.location.href));
|
||||
if (hasNewerRevision.current) {
|
||||
// router.refresh() does not reconcile the [siteData] middleware rewrite.
|
||||
window.location.replace(target);
|
||||
} else {
|
||||
router.replace(target);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// A clamped result rewrites the URL to the page it already shows.
|
||||
if (isShowingPage) {
|
||||
return;
|
||||
}
|
||||
|
||||
let cancelled = false;
|
||||
setFilterView((current) => {
|
||||
let pagination = null;
|
||||
if (current?.status !== 'error' && current?.tagsKey === tagsKey && current.pagination) {
|
||||
pagination = getUpdatesPageRange(page, current.pagination.totalItems);
|
||||
}
|
||||
return { status: 'loading', tagsKey, pagination };
|
||||
});
|
||||
|
||||
void getFilteredUpdatesPage({ pageId, tags, page, isEmbeddable })
|
||||
.catch((): FilteredUpdatesPageResult => ({ status: 'error' }))
|
||||
.then((result) => {
|
||||
if (cancelled) {
|
||||
return;
|
||||
}
|
||||
if (result.status === 'error') {
|
||||
setFilterView({ status: 'error', pagination: null });
|
||||
return;
|
||||
}
|
||||
if (result.revisionId !== revisionId) {
|
||||
hasNewerRevision.current = true;
|
||||
}
|
||||
|
||||
const url = new URL(window.location.href);
|
||||
if (result.status === 'unfiltered') {
|
||||
url.searchParams.delete(UPDATES_FILTER_SEARCH_PARAM);
|
||||
setUpdatesPageParam(url.searchParams, initialPage);
|
||||
window.history.replaceState(null, '', relativeURL(url));
|
||||
return;
|
||||
}
|
||||
if (result.pagination.isClamped) {
|
||||
setUpdatesPageParam(url.searchParams, result.pagination.page);
|
||||
window.history.replaceState(null, '', relativeURL(url));
|
||||
}
|
||||
setFilterView({
|
||||
status: 'filtered',
|
||||
tagsKey,
|
||||
revisionId: result.revisionId,
|
||||
content: result.content,
|
||||
sections: result.sections,
|
||||
pagination: result.pagination,
|
||||
});
|
||||
});
|
||||
|
||||
return () => {
|
||||
cancelled = true;
|
||||
};
|
||||
}, [
|
||||
tags,
|
||||
tagsKey,
|
||||
page,
|
||||
retryCount,
|
||||
isShowingPage,
|
||||
initialPage,
|
||||
pageId,
|
||||
isEmbeddable,
|
||||
revisionId,
|
||||
router,
|
||||
]);
|
||||
|
||||
return { view, retry: () => setRetryCount((count) => count + 1) };
|
||||
}
|
||||
|
||||
/** Moves to the page holding an off-page `#anchor` once the current page has rendered. */
|
||||
function useResolveUpdatesAnchor(options: {
|
||||
pageId: string;
|
||||
isEmbeddable: boolean;
|
||||
tags: string[];
|
||||
view: UpdatesView;
|
||||
}) {
|
||||
const { pageId, isEmbeddable, tags, view } = options;
|
||||
const router = useRouter();
|
||||
const hash = useHash();
|
||||
|
||||
React.useEffect(() => {
|
||||
if (
|
||||
view.status === 'loading' ||
|
||||
view.status === 'error' ||
|
||||
(view.status === 'unfiltered' && tags.length > 0)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
let cancelled = false;
|
||||
async function resolveHash() {
|
||||
const url = new URL(window.location.href);
|
||||
if (!url.hash || scrollToHash(url.hash.slice(1))) {
|
||||
return;
|
||||
}
|
||||
|
||||
let anchor: string;
|
||||
try {
|
||||
anchor = decodeURIComponent(url.hash.slice(1));
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await resolveUpdatesAnchor({ pageId, anchor, tags, isEmbeddable });
|
||||
if (cancelled || !result.found || url.href !== window.location.href) {
|
||||
return;
|
||||
}
|
||||
|
||||
setUpdatesPageParam(url.searchParams, result.page);
|
||||
if (result.clearTags) {
|
||||
url.searchParams.delete(UPDATES_FILTER_SEARCH_PARAM);
|
||||
}
|
||||
if (url.href !== window.location.href) {
|
||||
router.replace(relativeURL(url));
|
||||
}
|
||||
} catch {
|
||||
// An unresolved hash should leave the visitor on the current page.
|
||||
}
|
||||
}
|
||||
|
||||
void resolveHash();
|
||||
window.addEventListener('hashchange', resolveHash);
|
||||
return () => {
|
||||
cancelled = true;
|
||||
window.removeEventListener('hashchange', resolveHash);
|
||||
};
|
||||
}, [hash, isEmbeddable, pageId, router, tags, view]);
|
||||
}
|
||||
|
||||
/** Writes the filter selection to the URL; the provider reacts through `useSearchParams()`. */
|
||||
function navigate(nextTags: string[], nextPage: number, history: 'push' | 'replace') {
|
||||
const url = new URL(window.location.href);
|
||||
url.searchParams.delete(UPDATES_FILTER_SEARCH_PARAM);
|
||||
for (const tag of nextTags) {
|
||||
url.searchParams.append(UPDATES_FILTER_SEARCH_PARAM, tag);
|
||||
}
|
||||
setUpdatesPageParam(url.searchParams, nextPage);
|
||||
url.hash = '';
|
||||
pendingScrollTargetPage = null;
|
||||
if (history === 'push') {
|
||||
window.history.pushState(null, '', relativeURL(url));
|
||||
} else {
|
||||
window.history.replaceState(null, '', relativeURL(url));
|
||||
}
|
||||
|
||||
scrollUpdatesToTop();
|
||||
}
|
||||
|
||||
function scrollUpdatesToTop() {
|
||||
const main = document.getElementById(MAIN_CONTENT_ID);
|
||||
const scrollContainer = findScrollContainer(main);
|
||||
if (scrollContainer) {
|
||||
scrollContainer.scrollTo({ top: 0, behavior: 'instant' });
|
||||
} else {
|
||||
window.scrollTo({ top: 0, behavior: 'instant' });
|
||||
}
|
||||
// Keeps focus off document.body when the clicked pagination button unmounts.
|
||||
main?.focus({ preventScroll: true });
|
||||
}
|
||||
|
||||
function findScrollContainer(element: HTMLElement | null): HTMLElement | null {
|
||||
let parent = element?.parentElement ?? null;
|
||||
while (parent && parent !== document.body && parent !== document.documentElement) {
|
||||
const overflowY = window.getComputedStyle(parent).overflowY;
|
||||
if (
|
||||
(overflowY === 'auto' || overflowY === 'scroll') &&
|
||||
parent.scrollHeight > parent.clientHeight
|
||||
) {
|
||||
return parent;
|
||||
}
|
||||
parent = parent.parentElement;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function relativeURL(url: URL): string {
|
||||
return `${url.pathname}${url.search}${url.hash}`;
|
||||
}
|
||||
@@ -27,6 +27,7 @@ export function StepperStep(props: BlockProps<DocumentBlockStepperStep>) {
|
||||
case 'heading-2':
|
||||
return '-mt-[calc(1.25rem+1px)]';
|
||||
case 'heading-3':
|
||||
case 'heading-4':
|
||||
return '-mt-[calc(0.50rem+1px)]';
|
||||
default:
|
||||
return '';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user