@redocly/realm 0.137.0-next.9 → 0.137.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +213 -1
- package/dist/cli/build/index.js +1 -1
- package/dist/client/app/Sidebar/useActions.js +1 -1
- package/dist/client/app/Sidebar/useSidebarItems.js +1 -1
- package/dist/client/app/hooks/catalog/useCatalogClassic.js +1 -1
- package/dist/client/app/hooks/catalog/useCatalogFilter.js +1 -1
- package/dist/client/app/search/useFacets.js +1 -1
- package/dist/client/app/seo/SeoTags.js +1 -1
- package/dist/client/app/utils/loadAndNavigate.js +1 -1
- package/dist/server/config/env-config.d.ts +2 -0
- package/dist/server/config/env-schema.d.ts +5 -0
- package/dist/server/config/env-schemas/feature-flags.d.ts +4 -0
- package/dist/server/config/env-schemas/feature-flags.js +1 -1
- package/dist/server/constants/plugins/search.js +1 -1
- package/dist/server/esbuild/esbuild-logger.d.ts +2 -2
- package/dist/server/esbuild/esbuild-logger.js +3 -3
- package/dist/server/plugins/api-docs/options.js +1 -1
- package/dist/server/plugins/api-docs/search/create-indexer.d.ts +5 -0
- package/dist/server/plugins/api-docs/search/create-indexer.js +1 -0
- package/dist/server/plugins/api-docs/search/get-ai-search-documents.d.ts +1 -1
- package/dist/server/plugins/api-docs/search/get-ai-search-documents.js +41 -41
- package/dist/server/plugins/api-docs/search/search-resolver.js +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/common/revision-repository.js +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/common/version-repository.js +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/utils/normalize-revision-flags.js +1 -1
- package/dist/server/plugins/config-parser/loaders/content-slugs-loader.js +1 -1
- package/dist/server/plugins/config-parser/loaders/versions-config-loader.js +1 -1
- package/dist/server/plugins/dev-onboarding/template/components/EditAppDescriptionDialog.js +1 -1
- package/dist/server/plugins/dev-onboarding/template/components/EditAppDialog.js +1 -1
- package/dist/server/plugins/dev-onboarding/template/components/EditCallbackUrlDialog.js +1 -1
- package/dist/server/plugins/markdown/is-partial.js +1 -1
- package/dist/server/plugins/mcp/codemode/capabilities/fetch/index.js +5 -4
- package/dist/server/plugins/mcp/codemode/capabilities/types.d.ts +5 -2
- package/dist/server/plugins/mcp/codemode/capabilities/utils.js +4 -4
- package/dist/server/plugins/mcp/codemode/code-execution-audit.js +1 -1
- package/dist/server/plugins/mcp/codemode/prompts.d.ts +1 -1
- package/dist/server/plugins/mcp/codemode/prompts.js +7 -6
- package/dist/server/plugins/mcp/codemode/sandbox/create-sandbox-setup.d.ts +2 -2
- package/dist/server/plugins/mcp/codemode/sandbox/create-sandbox-setup.js +1 -11
- package/dist/server/plugins/mcp/codemode/sandbox/polyfills/console.d.ts +2 -0
- package/dist/server/plugins/mcp/codemode/sandbox/polyfills/console.js +7 -0
- package/dist/server/plugins/mcp/codemode/sandbox/polyfills/index.d.ts +1 -0
- package/dist/server/plugins/mcp/codemode/sandbox/polyfills/index.js +2 -2
- package/dist/server/plugins/mcp/codemode/sandbox/tool-input-validator.d.ts +5 -0
- package/dist/server/plugins/mcp/codemode/sandbox/tool-input-validator.js +1 -0
- package/dist/server/plugins/mcp/codemode/sandbox/unknown-tool-hint.d.ts +8 -0
- package/dist/server/plugins/mcp/codemode/sandbox/unknown-tool-hint.js +2 -0
- package/dist/server/plugins/mcp/codemode/tools/describe-tools.js +3 -1
- package/dist/server/plugins/mcp/codemode/tools/execute.js +1 -1
- package/dist/server/plugins/mcp/codemode/tools/manage-credentials.d.ts +2 -2
- package/dist/server/plugins/mcp/codemode/tools/manage-credentials.js +2 -2
- package/dist/server/plugins/mcp/docs-mcp/tool-schemas.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/core/create-anonymous-session.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/core/search.js +2 -2
- package/dist/server/plugins/mcp/docs-mcp/tools/core/types.d.ts +2 -2
- package/dist/server/plugins/mcp/docs-mcp/tools/graphql/get-graphql-type.js +5 -5
- package/dist/server/plugins/mcp/docs-mcp/tools/graphql/types.d.ts +2 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/openapi/list-apis.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/openapi/load-api-description.d.ts +4 -2
- package/dist/server/plugins/mcp/docs-mcp/tools/openapi/load-api-description.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/openapi/types.d.ts +6 -2
- package/dist/server/plugins/mcp/docs-mcp/utils/api-titles.d.ts +6 -0
- package/dist/server/plugins/mcp/docs-mcp/utils/api-titles.js +1 -0
- package/dist/server/plugins/mcp/gateway-mcp/elicitation.d.ts +11 -0
- package/dist/server/plugins/mcp/gateway-mcp/elicitation.js +5 -5
- package/dist/server/plugins/mcp/gateway-mcp/fetch/ssrf-guard.js +1 -1
- package/dist/server/plugins/mcp/gateway-mcp/fetch/url-placeholders.d.ts +5 -0
- package/dist/server/plugins/mcp/gateway-mcp/fetch/url-placeholders.js +1 -0
- package/dist/server/plugins/mcp/servers/docs-server.js +1 -1
- package/dist/server/plugins/mcp/servers/mcp-server.js +3 -3
- package/dist/server/plugins/mcp/types.d.ts +1 -0
- package/dist/server/plugins/mcp/utils/available-sandbox-tools.js +1 -1
- package/dist/server/plugins/mcp/workers/execute-mcp-tool.js +1 -1
- package/dist/server/plugins/search/ai-indexer/prepare-semantic-documents.js +1 -1
- package/dist/server/plugins/search/engines/flexsearch/index.js +1 -1
- package/dist/server/plugins/search/engines/flexsearch/search-index.d.ts +8 -4
- package/dist/server/plugins/search/engines/flexsearch/search-index.js +1 -1
- package/dist/server/plugins/search/llmstxt/create-llms-txt-generator.js +1 -1
- package/dist/server/plugins/search/llmstxt/index.d.ts +3 -1
- package/dist/server/plugins/search/llmstxt/index.js +9 -9
- package/dist/server/sandbox/sandbox.js +2 -2
- package/dist/server/sandbox/types.d.ts +9 -0
- package/dist/server/sandbox/utils/execution-budget.js +1 -1
- package/dist/server/sandbox/utils/return-last-expression.d.ts +6 -0
- package/dist/server/sandbox/utils/return-last-expression.js +1 -0
- package/dist/server/sandbox/utils/returns-from-top-level.d.ts +1 -2
- package/dist/server/sandbox/utils/returns-from-top-level.js +1 -1
- package/dist/server/sandbox/utils/setup-host-functions.d.ts +1 -0
- package/dist/server/sandbox/utils/setup-host-functions.js +2 -2
- package/dist/server/ssr/render.js +1 -1
- package/dist/server/store.js +1 -1
- package/dist/server/types/plugins/search.d.ts +7 -2
- package/dist/server/utils/globs.d.ts +4 -0
- package/dist/server/utils/globs.js +1 -1
- package/dist/server/utils/search/highlight-text-for-search.js +1 -1
- package/dist/server/web-server/middleware/ensureSearchData.js +1 -1
- package/dist/server/web-server/routes/dynamic-route.js +1 -1
- package/dist/server/web-server/routes/mcp-routes/mcp-oauth.js +1 -1
- package/dist/server/web-server/routes/mcp-routes/mcp-server-card.js +1 -1
- package/dist/{server/plugins/catalog-entities/utils/version-compare.d.ts → utils/version/compare-versions.d.ts} +1 -16
- package/dist/utils/version/compare-versions.js +1 -0
- package/package.json +11 -10
- package/dist/server/plugins/api-docs/search/search-indexer.d.ts +0 -9
- package/dist/server/plugins/api-docs/search/search-indexer.js +0 -1
- package/dist/server/plugins/catalog-entities/utils/version-compare.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,217 @@
|
|
|
1
1
|
# @redocly/realm
|
|
2
2
|
|
|
3
|
+
## 0.137.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7df87b0c29: Added the `singleExpanded` attribute to the `accordion-group` Markdoc tag to keep only one accordion open at a time.
|
|
8
|
+
- 34be1ea876: Improved search to index every field, heading, and message.
|
|
9
|
+
- b1ae95e5f8: Added `linkIcon`, `cta`, `iconColor`, `badge`, `badgeColor`, and `badgeIcon` attributes to the `card` Markdoc tag to enhance customization options.
|
|
10
|
+
- 1a3624bd9d: Added recovery hints displayed when Docs MCP lookup failed.
|
|
11
|
+
- 73e4213006: Added `accordion` and `accordion-group` Markdoc tags to organize content into collapsible sections.
|
|
12
|
+
- 2c5afad45c: Added a `Connect to the MCP server` page at `/mcp` with tabbed setup instructions for Claude, ChatGPT/Codex, and raw JSON configuration.
|
|
13
|
+
Extended the **Connect MCP** button with copy options for Claude Code and Codex CLI.
|
|
14
|
+
- c3957bee9b: Improved MCP server code mode to reduce AI agent script failures and provide clearer error messages.
|
|
15
|
+
- 772bee46a3: Improved the credentials page to show all accepted API credentials.
|
|
16
|
+
- da18d14476: Added validation to the MCP credentials form.
|
|
17
|
+
- dc778d3244: Added an opt-in `/mcp-public` endpoint to serve public content without authentication on RBAC-restricted projects.
|
|
18
|
+
- 1d9074a431: Added Docs MCP server audience validation for bearer tokens.
|
|
19
|
+
With audience enforcement active, tokens whose `aud` claims names other organizations are logged, reported, and rejected.
|
|
20
|
+
Tokens without an `aud` claim keep working.
|
|
21
|
+
- a2990a8835: Added an `onClose` prop to the custom `ReplayGate` component.
|
|
22
|
+
The prop closes the Try it overlay when users dismiss the sign-in panel.
|
|
23
|
+
- 99c30ac1f7: Added `idea` as a supported `type` for the `admonition` Markdoc tag.
|
|
24
|
+
- bf3aa0200b: Improved sidebar accessibility: separators are no longer announced as links by screen readers and no longer receive keyboard focus.
|
|
25
|
+
- 5f0a750301: Updated default border radius for components.
|
|
26
|
+
- d53bc00a38: Added translations for the `Connect to MCP server` and page action dropdown toggle labels.
|
|
27
|
+
- 282cd95c2b: Improved the version picker to sort versions from newest to oldest using numeric-aware sorting, that is: `2.10` before `2.9`.
|
|
28
|
+
Projects with a `versions.yaml` file keep the order and default version specified in that file.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- 6314155150: Fixed an empty **Download** panel that appeared on the OpenAPI and AsyncAPI overview page when `downloadUrls` was set to an empty list.
|
|
33
|
+
- 0a77ab6ce1: Fixed an issue where API docs pages opened scrolled down, hiding the breadcrumbs and any custom navigation placed above the API description.
|
|
34
|
+
- 4925ce16be: Fixed an issue in API docs where a schema that inherited its `discriminator` from an `allOf` parent displayed only the discriminator property, without its variants or other properties.
|
|
35
|
+
- 941a6282ce: Fixed an issue where several Redocly extensions were incorrectly rendered as custom vendor extensions when `showExtensions` was enabled.
|
|
36
|
+
- dc778d3244: Fixed the gap between the label and the dropdown arrow in the `Connect to MCP` button.
|
|
37
|
+
- f53573e23b: Fixed an issue where the **Copied!** tooltip on copy buttons disappeared too early when the button was clicked repeatedly.
|
|
38
|
+
- 6edee5d9b4: Fixed an issue where raw HTML in operation descriptions leaked into search results and was rendered as literal text.
|
|
39
|
+
- 8eb519653c: Fixed security vulnerabilities `CVE-2026-84375`, `CVE-2026-84363`, `CVE-2026-84364` and `CVE-2026-39408` by upgrading `js-yaml` to version `4.3.2` and `hono` to version `4.13.7`.
|
|
40
|
+
- 96bec15e63: Fixed an issue where environment variable placeholders (`{{ process.env.VAR }}`) in `redocly.yaml` resolved to their build-time values instead of the server's runtime environment.
|
|
41
|
+
- 7feb5d129e: Fixed the styling of dividers on Markdown pages.
|
|
42
|
+
- 82ded2a052: Fixed an issue in API docs where the request code sample lost its form fields and displayed an empty body.
|
|
43
|
+
- 27bb2676bf: Fixed an issue in OpenAPI docs where schemas were positioned before operations in the sidebar.
|
|
44
|
+
- 8eda45d517: Updated `openapi-sampler` to version `1.7.5`.
|
|
45
|
+
- 4925ce16be: Fixed an issue where a variant whose schema was unavailable, such as a schema restricted by RBAC, displayed as an empty option.
|
|
46
|
+
- 34e13e3c9e: Fixed OAuth2 client credentials exchange in the MCP gateway credentials form.
|
|
47
|
+
- 5aa4838269: Fixed an issue where SSO login in projects without an `l10n` configuration caused identity providers with strict `ui_locales` validation to reject the login request.
|
|
48
|
+
- bff49e7278: Fixed an issue in OpenAPI docs where selecting an example in the response panel did not update the request code sample.
|
|
49
|
+
The issue occurred when request and response examples shared the same key.
|
|
50
|
+
- 2f5a68164c: Fixed an issue where Docs MCP API lookups rejected names that are unique parts of API titles.
|
|
51
|
+
- ac184788d1: Fixed an issue where angle brackets: `<`, `>` weren't rendered inside inline code within Markdown link text, such as ``[`command <name>`](./page.md)``.
|
|
52
|
+
- d43a91af69: Fixed MCP code mode tool results and descriptions to match declared signatures.
|
|
53
|
+
- b146b82606: Fixed MCP server code mode crashes for runs that produce no output.
|
|
54
|
+
- e984568ea3: Improved the MCP gateway to ask which credentials the user holds instead of picking the default.
|
|
55
|
+
- 22036d1336: Fixed an issue where the MCP server sent outdated credentials.
|
|
56
|
+
This issue happened for APIs that accept multiple security schemes.
|
|
57
|
+
- f53b16a05d: Updated the MCP API-credentials page to match Redocly styling.
|
|
58
|
+
- 3e77c0c259: Fixed an issue where the MCP server served `http://` links behind proxies.
|
|
59
|
+
Credential, skill, and OAuth URLs respect the forwarded protocol and default to `https` for production.
|
|
60
|
+
In local development, URLs keep the `http` protocol.
|
|
61
|
+
- 03bb0c362f: Fixed MCP connections for clients on the `2026-07-28` protocol revision.
|
|
62
|
+
- 6ee5565e90: Fixed MCP OAuth discovery: the authorization server metadata `issuer` matches the portal origin (RFC 8414), 401 challenges include `scope` and `authorization_uri`.
|
|
63
|
+
Rejected bearer tokens return `error="invalid_token"`.
|
|
64
|
+
- 1957189949: Removed the `405` status code text from the MCP endpoint pages (`/mcp` and `/mcp-public`).
|
|
65
|
+
- 43ec2eb3a8: Fixed the `documentationUrl` in the MCP server card to include the path prefix.
|
|
66
|
+
- 9e802e7048: Fixed an issue where `describe-tools` tool in the MCP server didn't provide a human-readable name.
|
|
67
|
+
- db1e5edd9a: Fixed an issue where project SSO login failed when the IdP sent many group claims.
|
|
68
|
+
- 1a3624bd9d: Fixed an issue where the Docs MCP `get-endpoint-info` tool returned operations for paths hidden with `x-mcp`.
|
|
69
|
+
- 2a8d8ef03f: Fixed security vulnerabilities `CVE-2026-83610` and `CVE-2026-45820` by upgrading `@xmldom/xmldom` to version `0.9.12` and `fflate` to version `0.7.5`.
|
|
70
|
+
- 568a904d7b: Fixed spacing and the selected language tab indicator in API docs overview panels.
|
|
71
|
+
- 778ec4397e: Fixed an issue in OpenAPI docs where object-valued path item extensions, such as `x-okta-lifecycle`, rendered as extra HTTP operations in the navigation.
|
|
72
|
+
- 89a5b5b4d7: Fixed an issue where pages rendered blank for visitors with ad blockers.
|
|
73
|
+
This issue happened when the product name matched an ad-filter pattern (for example, "Ads").
|
|
74
|
+
- 67c2f278ff: Fixed an issue where example descriptions weren't rendered in the request and response samples panels.
|
|
75
|
+
- 126b583155: Fixed `mcp.docs.ignore` to correctly exclude ignored content from Docs MCP search results.
|
|
76
|
+
- 4925ce16be: Fixed an issue where code samples omitted the discriminator value of the selected variant.
|
|
77
|
+
- c09e6eb1c9: Fixed an issue in Replay where Basic authentication credentials with non-ASCII characters produced a corrupted Authorization header or prevented the request from being sent.
|
|
78
|
+
- e5705e50ad: Fixed an issue in Replay and the Try it console where operations with many editable fields got slower on each reopening.
|
|
79
|
+
- 2fde3a1558: Fixed an issue in the **Try it** console where closing an inactive tab moved the selection to a different tab instead of keeping the active tab.
|
|
80
|
+
- 9a6190c4c9: Fixed an issue in Replay where the request body editor didn't display property descriptions for content with Markdown formatting.
|
|
81
|
+
- efab0652d2: Fixed an issue in Replay's mobile layout where the first character typed in a request input moved focus to the close button.
|
|
82
|
+
This behavior caused the rest of the input to be lost.
|
|
83
|
+
- b486e9369b: Added missing tooltips to the Try it console parameter rows in OpenAPI docs.
|
|
84
|
+
- da83ea0a17: Fixed an issue in Replay where truncated tab names and request titles did not display their full versions on mouse hover or keyboard focus.
|
|
85
|
+
- c9412b45d4: Reworded the AI assistant's welcome message, disclaimer, and error messages for consistent naming.
|
|
86
|
+
- 2f980fd606: Improved the 404 page for API Docs.
|
|
87
|
+
- 6bb6424826: Fixed an issue where clicking an item in the table of contents caused the selection indicator to jump and highlight an incorrect item.
|
|
88
|
+
- 6bfb1e9861: Fixed an issue in API docs where deep links did not open the linked field.
|
|
89
|
+
- 43ec2eb3a8: Fixed broken `llms.txt` links to use the configured `seo.siteUrl` instead of the Redocly-hosted domain.
|
|
90
|
+
- d53bc00a38: Fixed small visual issues with the `Connect to MCP server` button and aligned its styling with the page action button.
|
|
91
|
+
- 27bb2676bf: Fixed an issue in API docs where the menu link for a section of a tag description contained a duplicated path segment.
|
|
92
|
+
- e85d19c492: Fixed an issue where Markdown tables would render a collapsed gray header row when all heading cells were empty.
|
|
93
|
+
- 505de02f7b: Fixed an issue where a search query that contained duplicated characters returned an error.
|
|
94
|
+
- 8e4959baca: Updated `@redocly/openapi-core` to version `2.53.0`.
|
|
95
|
+
- 4925ce16be: Fixed an issue where a mapping key that pointed to the same schema as `defaultMapping` disappeared from the variant list.
|
|
96
|
+
- b595126fdb: Updated the language selection indicator's position in the API docs Languages panel to display inside the language selection box.
|
|
97
|
+
- 5b825b1f1f: Fixed an issue in OpenAPI docs where the server URL was missing from the request panel for APIs with a single server.
|
|
98
|
+
This issue occurred when the mock server was disabled.
|
|
99
|
+
- 4925ce16be: Fixed an issue in API docs where the code samples panel displayed no `Discriminator` selector for schemas that inherited their `discriminator` from an `allOf` parent.
|
|
100
|
+
- 6514fcebcd: Fixed an issue where preview did not update `llms.txt` and page Markdown related to LLMs.
|
|
101
|
+
- Updated dependencies [7df87b0c29]
|
|
102
|
+
- Updated dependencies [6314155150]
|
|
103
|
+
- Updated dependencies [0a77ab6ce1]
|
|
104
|
+
- Updated dependencies [34be1ea876]
|
|
105
|
+
- Updated dependencies [4925ce16be]
|
|
106
|
+
- Updated dependencies [941a6282ce]
|
|
107
|
+
- Updated dependencies [b1ae95e5f8]
|
|
108
|
+
- Updated dependencies [dc778d3244]
|
|
109
|
+
- Updated dependencies [0f773ab0bc]
|
|
110
|
+
- Updated dependencies [f53573e23b]
|
|
111
|
+
- Updated dependencies [6edee5d9b4]
|
|
112
|
+
- Updated dependencies [73e4213006]
|
|
113
|
+
- Updated dependencies [8eb519653c]
|
|
114
|
+
- Updated dependencies [7feb5d129e]
|
|
115
|
+
- Updated dependencies [82ded2a052]
|
|
116
|
+
- Updated dependencies [27bb2676bf]
|
|
117
|
+
- Updated dependencies [8eda45d517]
|
|
118
|
+
- Updated dependencies [4925ce16be]
|
|
119
|
+
- Updated dependencies [bff49e7278]
|
|
120
|
+
- Updated dependencies [2c5afad45c]
|
|
121
|
+
- Updated dependencies [1957189949]
|
|
122
|
+
- Updated dependencies [dc778d3244]
|
|
123
|
+
- Updated dependencies [1d9074a431]
|
|
124
|
+
- Updated dependencies [941a6282ce]
|
|
125
|
+
- Updated dependencies [1bfa724240]
|
|
126
|
+
- Updated dependencies [568a904d7b]
|
|
127
|
+
- Updated dependencies [778ec4397e]
|
|
128
|
+
- Updated dependencies [89a5b5b4d7]
|
|
129
|
+
- Updated dependencies [67c2f278ff]
|
|
130
|
+
- Updated dependencies [4925ce16be]
|
|
131
|
+
- Updated dependencies [a2990a8835]
|
|
132
|
+
- Updated dependencies [9a6190c4c9]
|
|
133
|
+
- Updated dependencies [b486e9369b]
|
|
134
|
+
- Updated dependencies [c9412b45d4]
|
|
135
|
+
- Updated dependencies [2f980fd606]
|
|
136
|
+
- Updated dependencies [6bb6424826]
|
|
137
|
+
- Updated dependencies [99c30ac1f7]
|
|
138
|
+
- Updated dependencies [4a99bb2878]
|
|
139
|
+
- Updated dependencies [bf3aa0200b]
|
|
140
|
+
- Updated dependencies [5f0a750301]
|
|
141
|
+
- Updated dependencies [6bfb1e9861]
|
|
142
|
+
- Updated dependencies [ea1ead5b3f]
|
|
143
|
+
- Updated dependencies [d53bc00a38]
|
|
144
|
+
- Updated dependencies [d53bc00a38]
|
|
145
|
+
- Updated dependencies [27bb2676bf]
|
|
146
|
+
- Updated dependencies [e85d19c492]
|
|
147
|
+
- Updated dependencies [8e4959baca]
|
|
148
|
+
- Updated dependencies [4925ce16be]
|
|
149
|
+
- Updated dependencies [b595126fdb]
|
|
150
|
+
- Updated dependencies [5b825b1f1f]
|
|
151
|
+
- Updated dependencies [4925ce16be]
|
|
152
|
+
- @redocly/theme@0.69.0
|
|
153
|
+
- @redocly/api-docs@0.2.0
|
|
154
|
+
- @redocly/realm-asyncapi-sdk@0.15.0
|
|
155
|
+
- @redocly/portal-plugin-mock-server@0.22.0
|
|
156
|
+
|
|
157
|
+
## 0.137.0-next.12
|
|
158
|
+
|
|
159
|
+
### Minor Changes
|
|
160
|
+
|
|
161
|
+
- 7df87b0c29d: Added the `singleExpanded` attribute to the `accordion-group` Markdoc tag to keep only one accordion open at a time.
|
|
162
|
+
- c3957bee9b2: Improved MCP server code mode to reduce AI agent script failures and provide clearer error messages.
|
|
163
|
+
|
|
164
|
+
### Patch Changes
|
|
165
|
+
|
|
166
|
+
- 43ec2eb3a83: Fixed the `documentationUrl` in the MCP server card to include the path prefix.
|
|
167
|
+
- c09e6eb1c9d: Fixed an issue in Replay where Basic authentication credentials with non-ASCII characters produced a corrupted Authorization header or prevented the request from being sent.
|
|
168
|
+
- e5705e50add: Fixed an issue in Replay and the Try it console where operations with many editable fields got slower on each reopening.
|
|
169
|
+
- 43ec2eb3a83: Fixed broken `llms.txt` links to use the configured `seo.siteUrl` instead of the Redocly-hosted domain.
|
|
170
|
+
- 8e4959baca4: Updated `@redocly/openapi-core` to version `2.53.0`.
|
|
171
|
+
- Updated dependencies [7df87b0c29d]
|
|
172
|
+
- Updated dependencies [0f773ab0bc9]
|
|
173
|
+
- Updated dependencies [8e4959baca4]
|
|
174
|
+
- @redocly/theme@0.69.0-next.11
|
|
175
|
+
- @redocly/realm-asyncapi-sdk@0.15.0-next.4
|
|
176
|
+
- @redocly/api-docs@0.2.0-next.12
|
|
177
|
+
- @redocly/portal-plugin-mock-server@0.22.0-next.9
|
|
178
|
+
|
|
179
|
+
## 0.137.0-next.11
|
|
180
|
+
|
|
181
|
+
### Patch Changes
|
|
182
|
+
|
|
183
|
+
- 63141551504: Fixed an empty Download panel that appeared on the OpenAPI and AsyncAPI overview page when `downloadUrls` was set to an empty list.
|
|
184
|
+
- 8eb519653cd: Fixed security vulnerabilities `CVE-2026-84375`, `CVE-2026-84363`, `CVE-2026-84364` and `CVE-2026-39408` by upgrading `js-yaml` to version `4.3.2` and `hono` to version `4.13.7`.
|
|
185
|
+
- 2fde3a15587: Fixed an issue in the **Try it** console where closing an inactive tab moved the selection to a different tab instead of keeping the tab the user was working in.
|
|
186
|
+
- efab0652d2f: Fixed an issue in Replay's mobile layout where the first character typed in a request input moved focus to the close button, causing the rest of the input to be lost.
|
|
187
|
+
- e85d19c4926: Fixed an issue where Markdown tables would render a collapsed gray header row when all heading cells were empty.
|
|
188
|
+
- Updated dependencies [63141551504]
|
|
189
|
+
- Updated dependencies [8eb519653cd]
|
|
190
|
+
- Updated dependencies [e85d19c4926]
|
|
191
|
+
- @redocly/api-docs@0.2.0-next.11
|
|
192
|
+
- @redocly/theme@0.69.0-next.10
|
|
193
|
+
- @redocly/portal-plugin-mock-server@0.22.0-next.8
|
|
194
|
+
|
|
195
|
+
## 0.137.0-next.10
|
|
196
|
+
|
|
197
|
+
### Minor Changes
|
|
198
|
+
|
|
199
|
+
- 34be1ea876c: Improved search to index every field, heading, and message.
|
|
200
|
+
Search links each result to the exact field on the page.
|
|
201
|
+
|
|
202
|
+
### Patch Changes
|
|
203
|
+
|
|
204
|
+
- 0a77ab6ce1c: Fixed an issue where API docs pages opened scrolled down, hiding the breadcrumbs and any custom navigation placed above the API description.
|
|
205
|
+
- 2a8d8ef03f8: Fixed security vulnerabilities `CVE-2026-83610` and `CVE-2026-45820` by upgrading `@xmldom/xmldom` to version `0.9.12` and `fflate` to version `0.7.5`.
|
|
206
|
+
- b486e9369b6: Fixed missing tooltips in the Try it console parameter rows in OpenAPI docs.
|
|
207
|
+
- da83ea0a174: Fixed an issue in Replay where truncated tab names and request titles did not display their full versions on mouse hover or keyboard focus.
|
|
208
|
+
- Updated dependencies [0a77ab6ce1c]
|
|
209
|
+
- Updated dependencies [34be1ea876c]
|
|
210
|
+
- Updated dependencies [1bfa724240f]
|
|
211
|
+
- Updated dependencies [b486e9369b6]
|
|
212
|
+
- @redocly/api-docs@0.2.0-next.10
|
|
213
|
+
- @redocly/theme@0.69.0-next.9
|
|
214
|
+
|
|
3
215
|
## 0.137.0-next.9
|
|
4
216
|
|
|
5
217
|
### Minor Changes
|
|
@@ -93,7 +305,7 @@
|
|
|
93
305
|
- 4925ce16bea: Fixed an issue where a variant whose schema was unavailable, such as a schema restricted by RBAC, displayed as an empty option.
|
|
94
306
|
- bff49e7278f: Fixed an issue in OpenAPI docs where selecting an example in the response panel did not update the request code sample.
|
|
95
307
|
The issue occurred when request and response examples shared the same key.
|
|
96
|
-
- ac184788d19: Fixed an issue where angle brackets: `<`, `>` weren't rendered inside inline code within Markdown link text, such as ``
|
|
308
|
+
- ac184788d19: Fixed an issue where angle brackets: `<`, `>` weren't rendered inside inline code within Markdown link text, such as ``[`command <name>`](./page.md)``.
|
|
97
309
|
- 67c2f278ff4: Fixed an issue where example descriptions weren't rendered in the request and response samples panels.
|
|
98
310
|
Descriptions render as Markdown below the example selector for all languages and include callback payloads and descriptions pre-parsed by the portal.
|
|
99
311
|
- 4925ce16bea: Fixed an issue where code samples omitted the discriminator value of the selected variant.
|
package/dist/cli/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import y from"node:path";import{unlink as R}from"node:fs/promises";import{writeFileSync as T}from"node:fs";import{envConfig as h}from"../../server/config/env-config.js";import{PORTAL_VERSION as A}from"../../server/version.js";import{logger as e}from"../../server/tools/notifiers/logger.js";import{reporter as f}from"../../server/tools/notifiers/reporter.js";import{shutdowner as O}from"../../server/tools/shutdowner.js";import{promiseMapLimit as D}from"../../server/utils/async/promise-map-limit.js";import{validateReactPages as E}from"../../server/plugins/pages/validators/validate-react-pages.js";import{ensureDir as S}from"../../server/utils/index.js";import{initPlugins as M,runPlugins as j,writeClientEntries as x}from"../../server/plugins/lifecycle.js";import{createClientCompiler as L,createNodeBundleCompiler as J}from"../../server/esbuild/esbuild.js";import{validateAllMarkdowns as k}from"../../server/plugins/markdown/compiler.js";import{copyEnvFiles as F}from"./copy-env-files.js";import{EsbuildError as s,esbuildLogger as d}from"../../server/esbuild/esbuild-logger.js";import{reportAllErrors as U}from"../../server/utils/report-all-errors.js";import{collectAnalytics as z}from"./analytics/collect-analytics.js";import{copyMigrationsFolder as N}from"../../server/providers/database/copy-migrations.js";import{telemetry as c}from"../telemetry/index.js";import{telemetryTraceStep as m}from"../telemetry/helpers/trace-step.js";async function li(v,i){c.initialize(A),e.info("Starting project build.");const C=e.startTiming();await m("com.redocly.build.start",async P=>{x(i);const p=await L(i,i.outdir,"production"),u=await J(i,i.serverOutDir,"production");let o,g;try{await m("com.redocly.build.clientCompilation",async()=>{const l=e.startTiming(),n=await p.rebuild().catch(a=>{throw new s(a)});Array.isArray(n.warnings)&&d(new s({warnings:n.warnings}));const r=e.infoTime(l,"Client JavaScript compiled");r&&c.sendTimingPerformedMessage([{id:"buildStep",object:"timing",uri:"urn:redocly:realm:cli:timing:buildStep",...r}])}),await m("com.redocly.build.serverCompilation",async()=>{const l=e.startTiming(),n=await u.rebuild().catch(a=>{throw new s(a)});Array.isArray(n.warnings)&&d(new s({warnings:n.warnings}));const r=e.infoTime(l,"Server JavaScript compiled");r&&c.sendTimingPerformedMessage([{id:"buildStep",object:"timing",uri:"urn:redocly:realm:cli:timing:buildStep",message:r.message,timeMs:r.timeMs}])}),await i.reloadMarkdocOptions();let t;({pluginInstances:t,lifecycleContext:o}=await M({outdir:i.outdir,serverOutDir:i.serverOutDir,contentDir:i.contentDir,devLogin:v.devLogin,setGlobalConfig:i.setGlobalConfig})),o.fs.dispose(),i.lifecycleContext=o,N(i),await j(t,i,o),g=z(i,o),await m("com.redocly.build.clientServerRecompile",async()=>{const l=e.startTiming();e.info("Re-compiling JavaScript with user code"),(await Promise.all([p.rebuild(),u.rebuild()]).catch(a=>{throw new s(a)})).forEach(({warnings:a})=>{Array.isArray(a)&&d(new s({warnings:a}))});const r=e.infoTime(l,"JavaScript re-compiled");r&&c.sendTimingPerformedMessage([{id:"buildStep",object:"timing",uri:"urn:redocly:realm:cli:timing:buildStep",...r}])}),await m("com.redocly.build.pagesValidation",async()=>{await E(i,o),await k(i,o)}),await U(o),i.markUserCodeReady()}catch(t){P?.error(t),t instanceof s&&await d(t),await f.panic(t instanceof Error?t:String(t))}finally{g&&await g.catch(()=>{}),await p.dispose(),await u.dispose()}f.printErrors(),e.info("Rendering pages..."),await m("com.redocly.build.prepareStaticData",async t=>{const l=e.startTiming(),n=[...i.getAllRoutes(),...i.getAllApiRoutes()];t?.setAttribute("totalRoutes",n.length.toString()),await D(n,15,a=>i.writeRouteStaticData(a,o));const r=e.successTime(l,"Page static data prepared.");r&&c.sendTimingPerformedMessage([{id:"buildStep",object:"timing",uri:"urn:redocly:realm:cli:timing:buildStep",...r}])}),await m("com.redocly.build.storeSerialization",async()=>{const t=e.startTiming();S(i.serverOutDir),T(y.join(i.serverOutDir,"store.json"),JSON.stringify(await i.toJson())),e.successTime(t,"Store serialized and written."),F(i)});const w=h.REDOCLY_PROBLEMS_OUTPUT_FILE;if(w){const t=e.startTiming();T(S(w),JSON.stringify(f.getProblems()),"utf-8"),e.successTime(t,"Broken links written.")}await R(y.join(i.serverOutDir,"index.css"));const b=e.successTime(C,"All done");b&&c.sendTimingPerformedMessage([{id:"buildStep",object:"timing",uri:"urn:redocly:realm:cli:timing:buildStep",...b}])}),await O.exitWithCode(0)}export{li as build};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{LayoutVariant as o}from"@redocly/config";import{usePageSharedData as f}from"../../providers/page-data/hooks";function d(){const t=f("apiDocsStore"),n=!!t,s=t?.options?.layout,[c,i]=e.useState(!1),[l,u]=e.useState(null),a=l??s??o.THREE_PANEL;function r(){u(a===o.STACKED?o.THREE_PANEL:o.STACKED)}function p(){i(S=>!S)}return{onChangeViewClick:r,onChangeCollapseSidebarClick:p,layout:a,collapsedSidebar:c,isApiDocs:n}}export{d as useActions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLocation as
|
|
1
|
+
import{useLocation as A}from"react-router";import{useEffect as w,useMemo as f,useRef as _,useState as k}from"react";import{useActiveSectionId as D}from"@redocly/theme/core/hooks";import{getMenuItemType as C}from"@redocly/theme/core/utils";import{MenuItemType as v}from"@redocly/theme/core/constants";import{CATALOG_BASE_SLUG as T,CATALOG_SLUGS as h}from"../../../constants/catalog-entities";import{usePageSharedData as y,useSidebarItemsData as G,useSidebarConnectedCatalogConfig as E,useSidebarConnectedCatalogEntity as O}from"../../providers/page-data/hooks";import{mapItemsPropsToState as b}from"./utils";import{injectCatalogItems as K}from"../../utils/catalog/inject-catalog-items";import{filterOutVersionedItems as R}from"./helpers/filter-out-versioned-items";const B="catalog.backToAllLabel",M=`${T}/${h.ALL}`;function U(o){const e=G();return f(()=>R(e,o),[e,o])}function J(o){const e=A(),t=D(e,!0),a=O(),g=E(),c=U(o),s=a?K(c,a.key,g?.slug,e.search):c,u=_(null),r=f(()=>b(s,e,t),[t,e,s]),l=y("current-catalog-info"),p=f(()=>S(r),[s]),[n,m]=k(p),i=n.length>0?n[n.length-1]:void 0,I=i&&b([...i.item.link?[{...i.item,items:[],menuStyle:void 0,separatorLine:!1}]:[],...i.item.items],e,t);w(()=>{if(!u.current||u.current!==t){const d=S(r);m(d),u.current=t}},[c,e,t]);const L=i?{slug:i.previousLink,event:"sidebar_drilldown_back_button.clicked"}:a?{label:"Back to Catalog",labelTranslationKey:B,slug:M,event:"back_to_catalog_button.clicked"}:l?{label:l.catalog.label,labelTranslationKey:l.catalog.labelTranslationKey,slug:l.catalog.link,event:"back_to_catalog_button.clicked"}:void 0;return{currentItems:I||r,allSidebarItems:r,popDrilldownState:()=>{n.length>0&&m(n.slice(0,n.length-1))},pushDrilldownState:d=>{m([...n,d])},backLink:L,versionLabel:a?.version??null}}function S(o,e=[]){for(const t of o){if(!t.active&&!t.hasActiveSubItem)continue;if(C(t)===v.DrillDown&&e.push({item:t}),t.active)return e;if(t.hasActiveSubItem)return S(t.items,e)}return e}export{U as useRawSidebarItems,J as useSidebarItems};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as h from"react";import{useLocation as
|
|
1
|
+
import*as h from"react";import{useLocation as V,useNavigate as $}from"react-router";import{usePageData as R,usePageSharedData as K}from"../../hooks";import{withoutHash as D,getBaseDataAttributes as C}from"@redocly/theme/core/utils";import{telemetry as A}from"../../telemetry/index.js";import{toStringIfDefined as v}from"../../../../utils/string/to-string-if-defined.js";import{findDeepFirst as _}from"../../../../utils/tree/find-deep-first.js";import{compareVersions as q}from"../../../../utils/version/compare-versions.js";function ne(e,o){const r=V(),i=$(),a=R(),t=H(r),s=K("catalog"),[n,p]=h.useState(()=>(e.filters??[]).map(l=>{if(l.type==="date-range"){const[c,u]=t.get(l.property)?.split("--")??[];return!c&&!u?{}:{from:c,to:u}}return new Set(t.getAll(l.property))})),[d,g]=h.useState(()=>t.get("filter")||"");o||(o=[...s]);const S=h.useMemo(()=>L(o??[],e.filters),[o,e.filters]),I=a?.props?.customFields,w=h.useMemo(()=>J(o??[],e,I||{}),[o,e,I]),b=h.useCallback((l,c)=>{p(u=>{const F=u[l]?u[l]:new Set;return F instanceof Set?(F.has(c)?u.forEach((f,m)=>{f instanceof Set&&f.has(c)&&f.delete(c)}):F.add(c),[...u.slice(0,l),F,...u.slice(l+1)]):u}),A.sendCatalogFilterChangedMessage([{...C("catalogFilter","field"),type:"toggle"}]),window.scrollTo(0,0)},[]),P=h.useCallback((l,c)=>{p(u=>{const F=u[l]instanceof Set?new Set(c?[c]:[]):{from:c?.from,to:c?.to},f=S[l];return u.map((m,y)=>y===l?F:S[y].parentFilter===f.property?new Set:m)}),A.sendCatalogFilterChangedMessage([{...C("catalogFilter","field"),type:"select"}]),window.scrollTo(0,0)},[S]),N=()=>{const l=new URLSearchParams(Array.from(t.entries()));d?t.set("filter",d):t.delete("filter"),n.forEach((u,F)=>{const f=e.filters?.[F];if(!f)return;const m=X(u);Q(f.property,m,l)});const c=l.toString();c!==r.search.substring(1)&&i({search:c})};h.useEffect(()=>{N()},[e.filters,n,d,i,r]);const k=h.useMemo(()=>Z(e.filters),[e.filters]);return h.useMemo(()=>{const l=S.map((f,m)=>({...f,toggleOption:y=>b(m,y),selectOption:y=>P(m,y),selectedOptions:n[m]??new Set,isFilterUsed:(n[m]?.size??0)>0||!!n[m]?.from})),c=T(w,l,d),u=l.map((f,m)=>{const y=l.findIndex(O=>O.property===f.parentFilter),j=f.parentFilter?(n[y]?.size??0)>0||!!n[y].from:!0,z=l.filter((O,M)=>M!==m&&!k[m]?.has(M)),B=T(w,z,d),U=L(B.map(O=>({metadata:O})),e.filters);return{...f,parentUsed:j,filteredOptions:U[m].options}});return{groups:e.groupByFirstFilter&&u.length>0?G(u,c):[{title:"APIs",items:c}],filters:u,setFilterTerm:f=>{g(f),A.sendCatalogFilterChangedMessage([{...C("catalogFilter","field"),type:"term"}])},filterTerm:d}},[S,w,d,e.groupByFirstFilter,e.filters,n,b,P,k])}function G(e,o){return e[0].options.map(r=>({title:r.value,items:o.filter(i=>{const a=i?.[e[0].property]||e[0].missingCategoryName||"Others";return Array.isArray(a)?a.includes(r.value):a===r.value})})).filter(r=>r.items.length>0)}function H(e){return h.useMemo(()=>new URLSearchParams(e.search),[e.search])}function J(e,o,r){let i;if(o.separateVersions)i=e.map(a);else{const t={};for(const s of e){if(!s.versionFolderId){const p=s.link||s.fsPath||JSON.stringify(s);t[p]=[s];continue}let n=s.versionFolderId;if(t[n]?.find(p=>p.version===s.version)){const p=s.fsPath?.replace(/\/@.*?\//,"/@version/")??"";n=`${n}-${p}`}t[n]||(t[n]=[]),t[n].push(s)}i=Object.values(t).map(s=>{s.sort((d,g)=>q(g.version||"",d.version||""));const n=s.map(a);return{...a(s.find(d=>d.isDefault)||s[0]),versions:n}})}return i.sort((t,s)=>t.title.localeCompare(s.title)),i;function a(t){const s=t.metadata||{},n=r[t.fsPath||""]||{},p=t.link||_(t.items||[],g=>"link"in g&&!!g.link)?.link,d=t.sidebar?.[0];return{...s,...n,publishedAt:s.publishedAt||s.createdAt,title:v(s?.title)||t.label||"Untitled",description:v(s?.description),link:D(p)??"#",docsLink:D(d?.link),image:v(s?.image),version:t.version,versionFolderId:t.versionFolderId}}}function Z(e){if(!e)return[];const o=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.parentFilter){const a=e.findIndex(t=>t.property===i.parentFilter);o[a]=o[a]||new Set,o[a].add(r)}}return o}function L(e,o){return(o??[]).map(r=>{const i=r.options?Object.fromEntries(r.options.map(n=>[n,0])):void 0,a=i??{};let t=0;for(const n of e){const p=Array.isArray(n.metadata?.[r.property])?n.metadata?.[r.property]:[n.metadata?.[r.property]];for(const d of p){const g=E(String(d),r.valuesMapping);if(i){g in i&&(a[g]=a[g]+1);continue}d?a[g]=(a[g]??0)+1:t++}}const s=Object.entries(a).map(([n,p])=>({value:n,count:p}));return i||s.sort((n,p)=>n.value.localeCompare(p.value)),t&&s.push({value:r.missingCategoryNameTranslationKey||r.missingCategoryName||"Others",count:t}),{...r,options:s}})}function T(e,o,r){const i=e.filter(a=>o.every(t=>{if(t.selectedOptions&&!(t.selectedOptions instanceof Set))try{const n=new Date(a[t.property]).toISOString().split("T")[0];return n>=(t.selectedOptions.from??"")&&n<=(t.selectedOptions.to??"Z")}catch{return!0}if(t.selectedOptions.size===0)return!0;const s=E(a?.[t.property]||t.missingCategoryName||"Others",t.valuesMapping);return Array.isArray(s)?s.some(n=>t.selectedOptions.has(n)):t.selectedOptions.has(s)}));return r?(r=r.toLowerCase(),i.filter(a=>Object.values(a).some(t=>Array.isArray(t)?t.some(s=>String(s).toLowerCase().includes(r)):String(t).toLowerCase().includes(r)))):i}function E(e,o){return o?Array.isArray(e)?e.map(r=>o[String(r)]||r):o[String(e)]||e:e}function Q(e,o,r){r.delete(e),o.forEach(i=>{r.append(e,i)})}function X(e){const o=new Set;return e instanceof Set?e.forEach(r=>o.add(r)):(e.from||e.to)&&o.add(`${e.from||""}--${e.to||""}`),o}export{Q as fillSearchParams,X as getFilterValues,ne as useCatalogClassic};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCallback as h,useEffect as
|
|
1
|
+
import{useCallback as h,useEffect as P,useMemo as w,useState as Q}from"react";import{useSearchParams as b}from"react-router";import{telemetry as C}from"../../telemetry/index.js";import{parseFilterQuery as y,formatFilterQuery as U,collectFilterOptions as j}from"../../../utils";import{getBaseDataAttributes as I}from"@redocly/theme/core/utils";function O(t){return t instanceof Set?t.size>0:!!(t?.from||t?.to)}function z(t,d){const[u,p]=b(),c=u.get("filter")||"",[o,f]=Q(()=>y(c,t?.filters||[])),F=w(()=>j(t?.filters,d),[t?.filters,d]),m=t?.filters||[];m.length>0&&o.length!==m.length&&f(y(c,m));const S=h((s,e)=>{f(l=>l.map((r,i)=>{if(i!==s||!(r instanceof Set))return r;const n=new Set(r);return n.has(e)?n.delete(e):n.add(e),n})),window.scrollTo(0,0)},[]),g=h((s,e)=>{f(l=>l.map((a,r)=>r!==s?a:a instanceof Set?e&&typeof e=="string"?new Set([e]):new Set:{from:typeof e=="object"?e?.from:void 0,to:typeof e=="object"?e?.to:void 0})),C.sendCatalogFilterChangedMessage([{...I("catalogFilter","field"),type:"select"}]),window.scrollTo(0,0)},[]);return P(()=>{const s=new URLSearchParams(u),e=U(o,t?.filters||[]);e?s.set("filter",e):s.delete("filter"),p(s,{replace:!0})},[t?.filters,o,u,p]),w(()=>{const s=F.map((l,a)=>{const r=o[a],i=O(r);return{...l,toggleOption:n=>S(a,n),selectOption:n=>g(a,n),selectedOptions:r??new Set,isFilterUsed:i}});return{filters:s.map(l=>{const a=s.findIndex(n=>n.property===l.parentFilter),r=o[a],i=l.parentFilter?O(r):!0;return{...l,parentUsed:i}}),filterQuery:c}},[F,o,S,g,c])}export{z as useCatalogFilter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCallback as y,useEffect as
|
|
1
|
+
import{useCallback as y,useEffect as f,useMemo as S,useState as r}from"react";import{withPathPrefix as b}from"@redocly/theme/core/utils";import{ServerRoutes as d}from"../../../constants/api";import{useI18nConfig as g}from"../hooks";function h(e){const[s,a]=r([]),[t,n]=r(null),[c,o]=r(null),[p,i]=r(!1),{currentLocale:l}=g();f(()=>{i(!0),m()},[c]);const m=y(async()=>{if(e&&c===null){i(!1);return}let u={locale:l,field:e};c&&(u={...u,...c});const F=await(await fetch(b(d.SEARCH_FACETS),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(u)})).json();e?n(F):a(F),i(!1)},[l,c,e]);return{initialFacets:s,searchFacets:t,isFacetsLoading:p,setSearchFacetQuery:o}}function L(e){const[s,a]=r(null),{searchFacets:t,setSearchFacetQuery:n}=h(e);return f(()=>{const c=t?t.find(o=>o.field===e)??null:null;a(c)},[t,e]),{searchFacet:s,setSearchFacet:a,setSearchFacetQuery:n}}const O=e=>{const{initialFacets:s}=h();return{facets:S(()=>!e||!Object.keys(e).length?s:s.map(t=>({...t,values:e[t.field]?.map(n=>({...n,isCounterVisible:!0}))||[]})),[s,e])}};export{L as useFacetQuery,O as useFacets};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n from"react";import{Helmet as
|
|
1
|
+
import n from"react";import{Helmet as p}from"@dr.pogodin/react-helmet";import{combineUrls as g,withPathPrefix as k}from"@redocly/theme/core/utils";import{isTruthy as d}from"../../../utils/guards/is-truthy";import{usePageVersions as E}from"../../providers/page-data/hooks";import{getMetaTagsAttributes as h}from"../utils/get-meta-tags-attributes";import{useHreflangLinks as j}from"./hooks/useHreflangLinks";function U(o){const{seo:e,slug:s}=o,{versions:a}=E(),r=e?.siteUrl,{localeAlternates:m}=j(r);if(!e)return null;const c=h(e),f=[e.title,e.projectTitle].filter(d).join(" | "),i=a.find(t=>t.default)?.link,u=i?k(i):s;return n.createElement(p,null,n.createElement("title",null,f),r?n.createElement("link",{rel:"canonical",href:g(r,u)}):null,m.map(({hrefLang:t,href:l})=>n.createElement("link",{key:t,rel:"alternate",hrefLang:t,href:l})),e.jsonLd?n.createElement("script",{type:"application/ld+json"},JSON.stringify(e.jsonLd)):null,c.map((t,l)=>n.createElement("meta",{key:l,...t})))}export{U as SeoTags};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isLocalLink as f}from"../../../utils/path/is-local-link.js";import{isAuthRoutePath as m}from"../../../utils/auth/is-auth-route-path.js";import{withLoadProgress as u}from"./withLoadProgress";import{scrollToAnchor as p}from"./scroll-to-anchor";let s;async function A({navigate:
|
|
1
|
+
import{isLocalLink as f}from"../../../utils/path/is-local-link.js";import{isAuthRoutePath as m}from"../../../utils/auth/is-auth-route-path.js";import{withLoadProgress as u}from"./withLoadProgress";import{scrollToAnchor as p}from"./scroll-to-anchor";let s;async function A({navigate:r,to:o,origin:a="browser",options:c}){o===""&&(o="/"),s=o;const{pathname:i,hash:d,search:t}=new URL(o,window.location.origin+window.location.pathname),n=decodeURIComponent(d),h=decodeURIComponent(window.location.hash);if(m(i)){window.location.href=o;return}const w=window.__LOADER,e=await u(w.tryLoad(i,void 0,t));if(e?.redirectTo){if(!f(e.redirectTo)){window.location.href=e.redirectTo;return}return A({navigate:r,to:e.redirectTo,origin:a,options:c})}if(e&&s===o){if(i!==window.location.pathname||t!==window.location.search||n!==h?r({pathname:i,search:t,hash:n},{...c,state:{origin:a},flushSync:!0}):n&&window.dispatchEvent(new HashChangeEvent("hashchange")),e.props?.disableAutoScroll)return;requestAnimationFrame(()=>{if(n){const l=n.slice(1);p(l)}else window.scrollTo(0,0)})}}export{A as loadAndNavigate};
|
|
@@ -55,6 +55,7 @@ declare function loadEnvConfig(): {
|
|
|
55
55
|
REDOCLY_DISABLE_API_FUNCTION_SANDBOX?: boolean | undefined;
|
|
56
56
|
REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE?: boolean | undefined;
|
|
57
57
|
REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED?: boolean | undefined;
|
|
58
|
+
REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED?: boolean | undefined;
|
|
58
59
|
SEARCH_DEV_REINIT?: string | undefined;
|
|
59
60
|
SEARCH_DEV_DEBUG: boolean;
|
|
60
61
|
REDOCLY_SKIP_TYPESENSE_INDEXING: boolean;
|
|
@@ -138,6 +139,7 @@ export declare const envConfig: {
|
|
|
138
139
|
REDOCLY_DISABLE_API_FUNCTION_SANDBOX?: boolean | undefined;
|
|
139
140
|
REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE?: boolean | undefined;
|
|
140
141
|
REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED?: boolean | undefined;
|
|
142
|
+
REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED?: boolean | undefined;
|
|
141
143
|
SEARCH_DEV_REINIT?: string | undefined;
|
|
142
144
|
SEARCH_DEV_DEBUG: boolean;
|
|
143
145
|
REDOCLY_SKIP_TYPESENSE_INDEXING: boolean;
|
|
@@ -59,6 +59,7 @@ export declare const envSchema: z.ZodEffects<z.ZodObject<{
|
|
|
59
59
|
REDOCLY_DISABLE_API_FUNCTION_SANDBOX: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "false" | "true" | undefined>;
|
|
60
60
|
REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "false" | "true" | undefined>;
|
|
61
61
|
REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "false" | "true" | undefined>;
|
|
62
|
+
REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "false" | "true" | undefined>;
|
|
62
63
|
} & {
|
|
63
64
|
SEARCH_DEV_REINIT: z.ZodOptional<z.ZodString>;
|
|
64
65
|
SEARCH_DEV_DEBUG: z.ZodEffects<z.ZodDefault<z.ZodEnum<["true", "false"]>>, boolean, "false" | "true" | undefined>;
|
|
@@ -139,6 +140,7 @@ export declare const envSchema: z.ZodEffects<z.ZodObject<{
|
|
|
139
140
|
REDOCLY_DISABLE_API_FUNCTION_SANDBOX?: boolean | undefined;
|
|
140
141
|
REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE?: boolean | undefined;
|
|
141
142
|
REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED?: boolean | undefined;
|
|
143
|
+
REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED?: boolean | undefined;
|
|
142
144
|
SEARCH_DEV_REINIT?: string | undefined;
|
|
143
145
|
SEARCH_DEV_DEBUG: boolean;
|
|
144
146
|
REDOCLY_SKIP_TYPESENSE_INDEXING: boolean;
|
|
@@ -212,6 +214,7 @@ export declare const envSchema: z.ZodEffects<z.ZodObject<{
|
|
|
212
214
|
REDOCLY_DISABLE_API_FUNCTION_SANDBOX?: "false" | "true" | undefined;
|
|
213
215
|
REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE?: "false" | "true" | undefined;
|
|
214
216
|
REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED?: "false" | "true" | undefined;
|
|
217
|
+
REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED?: "false" | "true" | undefined;
|
|
215
218
|
SEARCH_DEV_REINIT?: string | undefined;
|
|
216
219
|
SEARCH_DEV_DEBUG?: "false" | "true" | undefined;
|
|
217
220
|
REDOCLY_SKIP_TYPESENSE_INDEXING?: "false" | "true" | undefined;
|
|
@@ -285,6 +288,7 @@ export declare const envSchema: z.ZodEffects<z.ZodObject<{
|
|
|
285
288
|
REDOCLY_DISABLE_API_FUNCTION_SANDBOX?: boolean | undefined;
|
|
286
289
|
REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE?: boolean | undefined;
|
|
287
290
|
REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED?: boolean | undefined;
|
|
291
|
+
REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED?: boolean | undefined;
|
|
288
292
|
SEARCH_DEV_REINIT?: string | undefined;
|
|
289
293
|
SEARCH_DEV_DEBUG: boolean;
|
|
290
294
|
REDOCLY_SKIP_TYPESENSE_INDEXING: boolean;
|
|
@@ -358,6 +362,7 @@ export declare const envSchema: z.ZodEffects<z.ZodObject<{
|
|
|
358
362
|
REDOCLY_DISABLE_API_FUNCTION_SANDBOX?: "false" | "true" | undefined;
|
|
359
363
|
REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE?: "false" | "true" | undefined;
|
|
360
364
|
REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED?: "false" | "true" | undefined;
|
|
365
|
+
REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED?: "false" | "true" | undefined;
|
|
361
366
|
SEARCH_DEV_REINIT?: string | undefined;
|
|
362
367
|
SEARCH_DEV_DEBUG?: "false" | "true" | undefined;
|
|
363
368
|
REDOCLY_SKIP_TYPESENSE_INDEXING?: "false" | "true" | undefined;
|
|
@@ -21,6 +21,8 @@ export declare const featureFlagsSchema: z.ZodObject<{
|
|
|
21
21
|
REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "false" | "true" | undefined>;
|
|
22
22
|
/** Experimental: register custom MCP tools from `@mcp` folders. */
|
|
23
23
|
REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "false" | "true" | undefined>;
|
|
24
|
+
/** Experimental: enables the GraphQL request body in Try It and embedded Replay. */
|
|
25
|
+
REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "false" | "true" | undefined>;
|
|
24
26
|
}, "strip", z.ZodTypeAny, {
|
|
25
27
|
NEW_CATALOG_ENABLED?: boolean | undefined;
|
|
26
28
|
NEW_SCORECARDS_ENABLED?: boolean | undefined;
|
|
@@ -34,6 +36,7 @@ export declare const featureFlagsSchema: z.ZodObject<{
|
|
|
34
36
|
REDOCLY_DISABLE_API_FUNCTION_SANDBOX?: boolean | undefined;
|
|
35
37
|
REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE?: boolean | undefined;
|
|
36
38
|
REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED?: boolean | undefined;
|
|
39
|
+
REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED?: boolean | undefined;
|
|
37
40
|
}, {
|
|
38
41
|
NEW_CATALOG_ENABLED?: "false" | "true" | undefined;
|
|
39
42
|
NEW_SCORECARDS_ENABLED?: "false" | "true" | undefined;
|
|
@@ -47,5 +50,6 @@ export declare const featureFlagsSchema: z.ZodObject<{
|
|
|
47
50
|
REDOCLY_DISABLE_API_FUNCTION_SANDBOX?: "false" | "true" | undefined;
|
|
48
51
|
REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE?: "false" | "true" | undefined;
|
|
49
52
|
REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED?: "false" | "true" | undefined;
|
|
53
|
+
REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED?: "false" | "true" | undefined;
|
|
50
54
|
}>;
|
|
51
55
|
//# sourceMappingURL=feature-flags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as _}from"zod";import{envBooleanStringOptional as E}from"../../utils/envs/env-boolean-string.js";const
|
|
1
|
+
import{z as _}from"zod";import{envBooleanStringOptional as E}from"../../utils/envs/env-boolean-string.js";const D=_.object({NEW_CATALOG_ENABLED:E(),NEW_SCORECARDS_ENABLED:E(),ENABLE_COMMENTS:_.string().optional(),REDOCLY_EXP_DISABLE_MD_VALIDATION:E(),ENABLE_SOURCE_MAPS:E(),PLAN_GATES:_.string().optional(),REDOCLY_EXP_LLMSTXT_AGENT_FEEDBACK_ENABLED:E(),REDOCLY_EXP_LLMSTXT_AGENT_FEEDBACK_URL:_.string().optional(),REDOCLY_EXP_LLMSTXT_AGENT_ENDPOINT:_.string().optional(),REDOCLY_DISABLE_API_FUNCTION_SANDBOX:E(),REDOCLY_MCP_ENFORCE_TOKEN_AUDIENCE:E(),REDOCLY_EXP_MCP_CUSTOM_TOOLS_ENABLED:E(),REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED:E()});export{D as featureFlagsSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=["title","text","path","httpPath","parameters[]:name","parameters[]:description","parameters[]:
|
|
1
|
+
const t=["title","text","path","httpPath","parameters[]:name","parameters[]:description","parameters[]:path"],_="Documentation",E="API Reference",e="search",o=100,A=10,r=25,I=100,p=150,s="ai-search",R=50,S=250,c=Symbol("metadata"),n=!0,C=["title"];export{s as AI_INDEX_EXPORT_FOLDER,R as AI_SEARCH_CHUNK_SIZE,S as AI_SEARCH_DOCUMENT_CHUNK_SIZE,n as DEFAULT_AI_SEARCH_ENABLED,C as DISABLE_DEEP_LINK_IF_FIELDS_EXIST,p as HIGHLIGHTED_TEXT_MAX_LENGTH,e as SEARCH_DATA_EXPORT_FOLDER,c as SEARCH_DOCUMENT_METADATA_KEY,A as SEARCH_GROUP_LIMIT,E as SEARCH_GROUP_NAME_API,_ as SEARCH_GROUP_NAME_DOCUMENTATION,t as SEARCH_INDEX_FIELDS,o as SEARCH_LIMIT,r as SEARCH_MAX_FACET_VALUES,I as SEARCH_MAX_INMEMORY_DOCUMENTS_COUNT};
|
|
@@ -8,9 +8,9 @@ export type Location = {
|
|
|
8
8
|
export declare class EsbuildError extends Error {
|
|
9
9
|
errors: BuildFailure['errors'];
|
|
10
10
|
warnings: BuildFailure['warnings'];
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(failure: Partial<BuildFailure>);
|
|
12
12
|
}
|
|
13
|
-
export declare function esbuildLogger({ errors, warnings }: EsbuildError): Promise<void>;
|
|
13
|
+
export declare function esbuildLogger({ errors, warnings, message }: EsbuildError): Promise<void>;
|
|
14
14
|
export declare function reportEsbuildError(message: string, sourceFileRelativePath: string, fileContent: string, location?: Location | null): {
|
|
15
15
|
message: string;
|
|
16
16
|
sourceFileRelativePath: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import*as E from"esbuild";import{logger as c}from"../tools/notifiers/logger.js";import{reporter as
|
|
2
|
-
`),hasMatched:!1};const
|
|
3
|
-
`),{lineText:s}=r,
|
|
1
|
+
import*as E from"esbuild";import{logger as c}from"../tools/notifiers/logger.js";import{reporter as f}from"../tools/notifiers/reporter.js";import{envConfig as m}from"../config/env-config.js";import{telemetry as d}from"../../cli/telemetry/index.js";import{stopAllCompilers as y}from"./esbuild.js";import{getCodeframe as C}from"../utils/codeframes/codeframes.js";import{shutdowner as M}from"../tools/shutdowner.js";class N extends Error{errors;warnings;constructor(r){super(r.message,r instanceof Error?{cause:r}:void 0),this.errors=r.errors??[],this.warnings=r.warnings??[]}}async function T({errors:n,warnings:r,message:t}){const s=await h(n,"error"),o=await h(r,"warning");if(r.forEach((e,i)=>{c.warn(o[i])}),n.forEach((e,i)=>{const a=e.location?.file||"";a&&a.includes("node_modules/")?(c.error(s[i]),d.sendCliErrorCaughtMessage([{id:"cli",object:"error",uri:"urn:redocly:realm:cli:error:cli",message:JSON.stringify(e)}])):(c.contentError(s[i]),d.sendCliErrorCaughtMessage([{id:"cli",object:"error",uri:"urn:redocly:realm:cli:error:cli",message:JSON.stringify(e),scope:"content"}]))}),!n.length&&t){const e=`JavaScript compilation failed: ${t}`;c.error(e),d.sendCliErrorCaughtMessage([{id:"cli",object:"error",uri:"urn:redocly:realm:cli:error:cli",message:e}])}(n.length>0||t)&&m.isBuildMode&&(await y(),await M.exitWithCode(1))}async function h(n,r){return n.length?m.REDOCLY_LOG_FORMAT==="JSON"?n.map(t=>JSON.stringify(t)):await E.formatMessages(n,{kind:r,color:!1,terminalWidth:0}):[]}function w(n,r){if(!r?.lineText)return{line:1,column:1,lines:n.split(`
|
|
2
|
+
`),hasMatched:!1};const t=n.split(`
|
|
3
|
+
`),{lineText:s}=r,o=e=>{const i=e.indexOf(s);return i===-1?null:i};if(r.line&&r.line<=t.length&&o(t[r.line-1]))return{line:r.line,column:r.column||1,lines:t,hasMatched:!0};const l=t.findIndex(e=>o(e)!==null);if(l>=0){const e=o(t[l]);return{line:l+1,column:(e??0)+1,lines:t,hasMatched:!0}}return{line:1,column:1,lines:t,hasMatched:!1}}function _(n,r,t,s){const{line:o,column:l,lines:e,hasMatched:i}=w(t,s),{frame:a,start:g}=C({start:{line:o,character:l},end:{line:o,character:l+(s?.lineText?.length||0)},lines:e},!0),p=`${n}::${r}::${o}`,u={message:n,sourceFileRelativePath:r,sourceFileLocation:g,codeframe:a,hasMatched:i};return f.getCompilationProblem(p)||f.reportCompilationError({type:"ERROR",severity:"ERROR",...u}),u}export{N as EsbuildError,T as esbuildLogger,_ as reportEsbuildError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as F from"node:path";import{findFirstBinding as P,markdocParser as _}from"@redocly/api-docs";import{combineUrls as i}from"@redocly/theme/core/openapi";import{withPathPrefix as k}from"@redocly/theme/core/utils";import{GRAPHQL_SPEC_SLUG as w}from"../../../constants/common.js";import{PUBLIC_API_DEFINITIONS_FOLDER as f}from"../../constants/common.js";import{envConfig as L}from"../../config/env-config.js";import{deepMerge as M}from"../../../utils/object/deep-merge.js";import{normalizeFeedbackOptions as A}from"./utils/normalize-feedback-options.js";import{replaceFileExtension as g}from"./utils/replace-file-extension.js";import{relativePathToBaseSlug as B}from"./utils/relative-path-to-base-slug.js";const R={tags:{},nodes:{},components:{}};function D(o,r){if(!(o?.off!==!0))return o;const t=B(r);return{url:k(`/_mock${t}`),position:"first",description:"Mock server",...o}}function I(o,r){return(r==="graphql"?[i(w,`${g(o,F.posix.extname(o))}?download`)]:[i(f,`${g(o,".json")}?download`),i(f,`${g(o,".yaml")}?download`)]).map(t=>({url:k(t)}))}function j(o,r,m){const{rootConfig:t,config:c,apiConfig:s,mergedConfig:e,relativePath:l}=m,a=M(t?.[o]||{},c[o]||{},s[o]||s.theme?.[o]||{}),b=r["x-feedback"]||a.feedback||c.feedback,S=!!e[o]?.excludeFromSearch||!!e.theme?.[o]?.excludeFromSearch||!!t?.[o]?.excludeFromSearch||!!t?.theme?.[o]?.excludeFromSearch,x=e.rbac||s.rbac,p=A(b),u=c.metadata,C={...p&&{feedback:p},mockServer:D(e?.mockServer||t?.mockServer,l),disableRouter:!0,downloadUrls:a.downloadUrls||I(l,o),excludeFromSearch:S,rbac:x,markdownParser:_,replayFeatures:{graphql:L.REDOCLY_EXP_REPLAY_GRAPHQL_ENABLED??!1}};let d;if(o==="graphql"){const n=a;d={title:n.info?.title,...u,...n.metadata??{}}}else{const n=r.info,E=n?.["x-metadata"];d={title:n?.title,description:n?.description,...o==="openapi"&&{summary:n?.summary},...u,...E}}o==="openapi"&&a.showSchemaCatalogLinks&&(r["x-schema-catalog-link"]=i(f,l));const O=a.markdocOptions??R,h={...a,...C,specType:o,markdocOptions:O,metadata:d};return o==="asyncapi"&&(h.protocol=P(r)??void 0),h}export{I as buildDownloadUrls,j as createOptions};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ApiDocsSearchIndexer } from '@redocly/api-docs';
|
|
2
|
+
import type { ExampleEntry, SchemaEntry } from '@redocly/api-docs';
|
|
3
|
+
/** The shared api-docs indexer with Markdown descriptions — AI search documents and llms.txt need Markdown. */
|
|
4
|
+
export declare function createApiDocsSearchIndexer(basePath: string, schemaStore?: Record<string, SchemaEntry>, document?: Record<string, unknown>, exampleStore?: Record<string, ExampleEntry>): ApiDocsSearchIndexer;
|
|
5
|
+
//# sourceMappingURL=create-indexer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ApiDocsSearchIndexer as e}from"@redocly/api-docs";import{toMarkdown as i}from"../../markdown/search/to-markdown.js";function a(r){if(typeof r=="string")return r;const t=Array.isArray(r)?r:[r];return i(t).trim()}function f(r,t,o,n){return new e(r,t,o,{formatDescription:a,exampleStore:n})}export{f as createApiDocsSearchIndexer};
|
|
@@ -15,6 +15,6 @@ type AiDocumentsStoreParams = {
|
|
|
15
15
|
getSearchFacets: () => Map<string, SearchFacet>;
|
|
16
16
|
markdocTags?: Record<string, MarkdocTagSchema>;
|
|
17
17
|
};
|
|
18
|
-
export declare function getAiDocumentsStore({ items, metadata, store, document, specType, excludeFromSearch, basePath, getSearchFacets, markdocTags, }: AiDocumentsStoreParams): (route: PageRouteDetails, _staticData: unknown,
|
|
18
|
+
export declare function getAiDocumentsStore({ items, metadata, store, document, specType, excludeFromSearch, basePath, getSearchFacets, markdocTags, }: AiDocumentsStoreParams): (route: PageRouteDetails, _staticData: unknown, _context: AfterRoutesCreatedLifecycleContext, actions: AfterRoutesCreatedActions) => Promise<AiDocumentsStore | undefined>;
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=get-ai-search-documents.d.ts.map
|