@redocly/redoc-revel 0.141.0-next.2 → 0.141.0-next.21
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 +357 -0
- package/dist/cli/develop.js +1 -1
- package/dist/cli/utils/react-pages-check.d.ts +11 -0
- package/dist/cli/utils/react-pages-check.js +1 -0
- package/dist/client/App.js +1 -1
- package/dist/client/app/Sidebar/useSidebarItems.js +1 -1
- package/dist/client/app/hooks/products/useProducts.d.ts +2 -0
- package/dist/client/app/hooks/useBanner.js +1 -1
- package/dist/client/app/hooks/useUserClaims.js +1 -1
- package/dist/client/app/markdoc/custom-components/openapi/openapi-code-sample.d.ts +2 -1
- package/dist/client/app/markdoc/custom-components/openapi/openapi-code-sample.js +1 -1
- package/dist/client/app/markdoc/custom-components/openapi/openapi-example.d.ts +1 -1
- package/dist/client/app/markdoc/custom-components/openapi/openapi-example.js +1 -1
- package/dist/client/app/markdoc/custom-components/openapi/openapi-response-sample.d.ts +2 -1
- package/dist/client/app/markdoc/custom-components/openapi/openapi-response-sample.js +1 -1
- package/dist/client/app/markdoc/custom-components/openapi/replay-openapi.d.ts +2 -1
- package/dist/client/app/markdoc/custom-components/openapi/replay-openapi.js +1 -1
- package/dist/client/app/markdoc/hooks/use-store.d.ts +12 -0
- package/dist/client/app/markdoc/hooks/use-store.js +1 -1
- package/dist/client/app/webmcp/tools/shared.d.ts +2 -3
- package/dist/client/app/webmcp/tools/shared.js +1 -1
- package/dist/client/providers/post-message/PostMessageConnection.d.ts +2 -2
- package/dist/client/providers/post-message/PostMessageProvider.d.ts +2 -2
- package/dist/client/providers/post-message/use-post-message.d.ts +1 -1
- package/dist/client/runtime/errors/page-async-component-error.d.ts +4 -0
- package/dist/client/runtime/errors/page-async-component-error.js +1 -0
- package/dist/client/runtime/loader.js +1 -1
- package/dist/client/types/index.d.ts +0 -1
- package/dist/compiled/@redocly/platform-utils/pii/index.mjs +1 -0
- package/dist/compiled/@redocly/platform-utils/pii/package.json +1 -0
- package/dist/constants/l10n/langs/ar.js +1 -1
- package/dist/constants/l10n/langs/de.js +1 -1
- package/dist/constants/l10n/langs/en.js +1 -1
- package/dist/constants/l10n/langs/es.js +1 -1
- package/dist/constants/l10n/langs/fr.js +1 -1
- package/dist/constants/l10n/langs/hi.js +1 -1
- package/dist/constants/l10n/langs/it.js +1 -1
- package/dist/constants/l10n/langs/ja.js +1 -1
- package/dist/constants/l10n/langs/ko.js +1 -1
- package/dist/constants/l10n/langs/pl.js +1 -1
- package/dist/constants/l10n/langs/pt-BR.js +1 -1
- package/dist/constants/l10n/langs/pt.js +1 -1
- package/dist/constants/l10n/langs/ru.js +1 -1
- package/dist/constants/l10n/langs/uk.js +1 -1
- package/dist/constants/l10n/langs/zh.js +1 -1
- package/dist/markdoc/helpers/get-resolved-sample-code-block.js +4 -4
- package/dist/markdoc/nodes/fence/index.js +1 -1
- package/dist/markdoc/nodes/table.js +1 -1
- package/dist/markdoc/tags/index.d.ts +6 -18
- package/dist/markdoc/tags/openapi-code-sample.js +1 -1
- package/dist/markdoc/tags/openapi-response-sample.js +1 -1
- package/dist/markdoc/tags/replay-openapi.js +1 -1
- package/dist/server/api-routes/run-api-routes-worker.js +1 -1
- package/dist/server/config/env-config.d.ts +0 -2
- package/dist/server/config/env-schema.d.ts +0 -1
- package/dist/server/config/env-schemas/feature-flags.d.ts +0 -1
- package/dist/server/config/env-schemas/feature-flags.js +1 -1
- package/dist/server/constants/assets.d.ts +3 -0
- package/dist/server/constants/assets.js +1 -0
- package/dist/server/constants/common.d.ts +0 -3
- package/dist/server/constants/common.js +1 -1
- package/dist/server/constants/config-schema.d.ts +12 -0
- package/dist/server/constants/config-schema.js +1 -0
- package/dist/server/constants/plugins/search.d.ts +0 -1
- package/dist/server/constants/plugins/search.js +1 -1
- package/dist/server/constants/project-plugins.d.ts +2 -0
- package/dist/server/constants/project-plugins.js +1 -0
- package/dist/server/constants/versions.d.ts +3 -0
- package/dist/server/constants/versions.js +1 -0
- package/dist/server/esbuild/esbuild.js +2 -2
- package/dist/server/esbuild/plugins/assets-resolver.js +1 -1
- package/dist/server/esbuild/plugins/dependency-resolver.js +1 -1
- package/dist/server/external-plugins/resolve-external-plugins.js +1 -1
- package/dist/server/fs/fs.js +1 -1
- package/dist/server/plugins/api-docs/index.js +1 -1
- package/dist/server/plugins/api-docs/options.js +1 -1
- package/dist/server/plugins/api-docs/search/create-indexer.d.ts +1 -4
- package/dist/server/plugins/api-docs/search/create-indexer.js +1 -1
- package/dist/server/plugins/api-docs/search/get-ai-search-documents.js +22 -22
- package/dist/server/plugins/api-docs/search/search-resolver.js +1 -1
- package/dist/server/plugins/api-docs/spec-download.api.js +1 -1
- package/dist/server/plugins/api-docs/utils/is-api-doc.js +1 -1
- package/dist/server/plugins/api-docs/utils/relative-path-to-base-slug.js +1 -1
- package/dist/server/plugins/config-parser/loaders/content-slugs-loader.d.ts +1 -10
- package/dist/server/plugins/config-parser/loaders/content-slugs-loader.js +1 -1
- package/dist/server/plugins/config-parser/loaders/index.d.ts +1 -1
- package/dist/server/plugins/config-parser/loaders/redocly-config-loader.js +1 -1
- package/dist/server/plugins/config-parser/loaders/utils/calculate-content-slugs.d.ts +32 -0
- package/dist/server/plugins/config-parser/loaders/utils/calculate-content-slugs.js +1 -0
- package/dist/server/plugins/config-parser/loaders/versions-config-loader.d.ts +0 -2
- package/dist/server/plugins/config-parser/loaders/versions-config-loader.js +1 -1
- package/dist/server/plugins/create-slugify.d.ts +1 -1
- package/dist/server/plugins/create-slugify.js +1 -1
- package/dist/server/plugins/default-theme/resolve-products-config.d.ts +1 -0
- package/dist/server/plugins/default-theme/resolve-products-config.js +1 -1
- package/dist/server/plugins/get-reserved-routes.js +1 -1
- package/dist/server/plugins/lifecycle.js +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/helpers/load-openapi-bundle.d.ts +1 -0
- package/dist/server/plugins/markdown/attribute-resolvers/helpers/load-openapi-bundle.js +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/index.js +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/resolve-link.js +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/resolve-openapi-code-samples.js +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/resolve-openapi-operation.d.ts +10 -0
- package/dist/server/plugins/markdown/attribute-resolvers/resolve-openapi-operation.js +1 -0
- package/dist/server/plugins/markdown/compiler.js +1 -1
- package/dist/server/plugins/markdown/markdoc/markdoc-options.d.ts +1 -1
- package/dist/server/plugins/markdown/markdoc/markdoc-options.js +1 -1
- package/dist/server/plugins/markdown/runtime-transform.js +1 -1
- package/dist/server/plugins/markdown/utils/resolve-markdown-template.js +1 -1
- package/dist/server/plugins/mcp/codemode/tools/execute-schema.js +1 -1
- package/dist/server/plugins/mcp/codemode/tools/manage-credentials.js +2 -2
- package/dist/server/plugins/mcp/constants.d.ts +2 -2
- package/dist/server/plugins/mcp/constants.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/core/create-anonymous-session.d.ts +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/core/search.js +2 -2
- package/dist/server/plugins/mcp/docs-mcp/tools/index.d.ts +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/openapi/utils.d.ts +2 -2
- package/dist/server/plugins/mcp/gateway-mcp/subject.d.ts +2 -2
- package/dist/server/plugins/mcp/gateway-mcp/subject.js +1 -1
- package/dist/server/plugins/mcp/handlers/docs-mcp-handler.js +1 -1
- package/dist/server/plugins/mcp/utils/route-reservation.d.ts +9 -0
- package/dist/server/plugins/mcp/utils/route-reservation.js +1 -0
- package/dist/server/plugins/nav-utils.js +1 -1
- package/dist/server/plugins/pages/validators/validate-react-pages.d.ts +8 -1
- package/dist/server/plugins/pages/validators/validate-react-pages.js +1 -1
- package/dist/server/plugins/search/ai-indexer/prepare-semantic-documents.js +1 -1
- package/dist/server/plugins/search/engines/flexsearch/search-index.js +1 -1
- package/dist/server/plugins/search/engines/typesense/index.js +1 -1
- package/dist/server/plugins/search/llmstxt/create-llms-txt-generator.js +1 -1
- package/dist/server/plugins/search/llmstxt/index.js +4 -4
- package/dist/server/plugins/utils.d.ts +0 -4
- package/dist/server/plugins/utils.js +1 -1
- package/dist/server/ssr/index.js +1 -1
- package/dist/server/ssr/server-side-props/get-default-static-props.d.ts +1 -0
- package/dist/server/ssr/utils.js +11 -9
- package/dist/server/store.d.ts +2 -1
- package/dist/server/store.js +1 -1
- package/dist/server/tools/notifiers/formatter.js +1 -1
- package/dist/server/types/plugins/common.d.ts +2 -0
- package/dist/server/types/web-server.d.ts +5 -0
- package/dist/server/utils/content/parse-base-name.d.ts +15 -0
- package/dist/server/utils/content/parse-base-name.js +1 -0
- package/dist/server/utils/crypto/sha-dir-path-short.js +1 -1
- package/dist/server/utils/errors.d.ts +2 -1
- package/dist/server/utils/errors.js +1 -1
- package/dist/server/utils/llmstxt/resolve-llms-txt-md.d.ts +5 -0
- package/dist/server/utils/llmstxt/resolve-llms-txt-md.js +1 -1
- package/dist/server/utils/product.d.ts +1 -0
- package/dist/server/utils/rbac/can-access-feature.d.ts +5 -0
- package/dist/server/utils/rbac/can-access-feature.js +1 -0
- package/dist/server/utils/rbac/can-anonymous-access-mcp-feature.js +1 -1
- package/dist/server/utils/rbac/has-scope-access.d.ts +3 -0
- package/dist/server/utils/rbac/has-scope-access.js +1 -0
- package/dist/server/utils/rbac.d.ts +19 -11
- package/dist/server/utils/rbac.js +1 -1
- package/dist/server/web-server/auth.js +3 -3
- package/dist/server/web-server/routes/ask-ai.js +1 -1
- package/dist/server/web-server/routes/dynamic-route.js +1 -1
- package/dist/server/web-server/routes/error.js +1 -1
- package/dist/server/web-server/routes/index.js +1 -1
- package/dist/server/web-server/routes/mcp-routes/mcp-client-metadata.js +1 -1
- package/dist/server/web-server/routes/mcp-routes/mcp-oauth.d.ts +0 -1
- package/dist/server/web-server/routes/mcp-routes/mcp-oauth.js +1 -1
- package/dist/server/web-server/routes/page-data.d.ts +2 -1
- package/dist/server/web-server/routes/page-data.js +1 -1
- package/dist/server/web-server/routes/semantic-search.js +1 -1
- package/dist/server/web-server/utils.d.ts +1 -1
- package/dist/server/web-server/utils.js +1 -1
- package/dist/server/workers/worker-config.js +1 -1
- package/dist/utils/l10n/build-i18n-config.js +1 -1
- package/package.json +13 -11
- package/dist/client/app/ReviewComments/ReviewComments.d.ts +0 -4
- package/dist/client/app/ReviewComments/ReviewComments.js +0 -7
- package/dist/client/types/post-message.d.ts +0 -68
- package/dist/client/types/post-message.js +0 -0
- package/dist/compiled/@redocly/pii/index.mjs +0 -1
- package/dist/compiled/@redocly/pii/package.json +0 -1
- package/dist/server/utils/llmstxt/get-llms-txt-md-path-by-slug.d.ts +0 -19
- package/dist/server/utils/llmstxt/get-llms-txt-md-path-by-slug.js +0 -1
- package/dist/server/utils/search/highlight-text-for-search.d.ts +0 -3
- package/dist/server/utils/search/highlight-text-for-search.js +0 -1
- package/dist/server/utils/search/text-match.d.ts +0 -6
- package/dist/server/utils/search/text-match.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,348 @@
|
|
|
1
1
|
# @redocly/redoc-revel
|
|
2
2
|
|
|
3
|
+
## 0.141.0-next.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ff3b15ef882: Deprecated `SearchAiDialog` in favor of `AiAssistantConversation`. If you ejected `SearchAiDialog`, move your customizations to an ejected `AiAssistantConversation` and update CSS selectors targeting `[data-component-name="Search/SearchAiDialog"]` to use `AiAssistant/AiAssistantConversation`. Ejected `SearchDialog` components require no changes.
|
|
8
|
+
- 37551193756: Removed the unused `externalSource` and `skipHighlight` properties and the `select` and `deselect` controls from code blocks.
|
|
9
|
+
Code blocks now accept only their declared properties, so a custom component that passes other properties, such as `aria-*` or `data-*` attributes, gets a type error.
|
|
10
|
+
- 37551193756: Fixed an issue where users could activate a disabled dropdown menu item with the keyboard.
|
|
11
|
+
- 020c5a580b3: Fixed an issue where a translation key with an empty value displayed the key instead of the default locale's translation or the default text.
|
|
12
|
+
- Updated dependencies [ff3b15ef882]
|
|
13
|
+
- Updated dependencies [c4a2398f11d]
|
|
14
|
+
- Updated dependencies [37551193756]
|
|
15
|
+
- Updated dependencies [f66657f75e9]
|
|
16
|
+
- Updated dependencies [37551193756]
|
|
17
|
+
- @redocly/theme@0.73.0-next.16
|
|
18
|
+
- @redocly/api-docs@0.6.0-next.21
|
|
19
|
+
|
|
20
|
+
## 0.141.0-next.20
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- 8580b8c90fd: Added the `nameTranslationKey` option to `products` in `redocly.yaml` to translate product names in the product picker, mobile menu, and search.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- 5b602a8e91c: Fixed an issue where a list at the start of a Markdoc `table` cell appeared lower than the content of the other cells in the row.
|
|
29
|
+
- e2aed09a734: Fixed an issue in the **Try it** console where query parameter, header and cookie names that contained runtime expressions were sent unresolved.
|
|
30
|
+
- Updated dependencies [c50a3e97b7c]
|
|
31
|
+
- Updated dependencies [9fb3b464348]
|
|
32
|
+
- Updated dependencies [f60348b619c]
|
|
33
|
+
- Updated dependencies [c156135717c]
|
|
34
|
+
- Updated dependencies [5b602a8e91c]
|
|
35
|
+
- Updated dependencies [8580b8c90fd]
|
|
36
|
+
- Updated dependencies [927801b2ca7]
|
|
37
|
+
- @redocly/api-docs@0.6.0-next.20
|
|
38
|
+
- @redocly/realm-asyncapi-sdk@0.18.0-next.3
|
|
39
|
+
- @redocly/theme@0.73.0-next.15
|
|
40
|
+
- @redocly/portal-plugin-mock-server@0.26.0-next.6
|
|
41
|
+
|
|
42
|
+
## 0.141.0-next.19
|
|
43
|
+
|
|
44
|
+
### Minor Changes
|
|
45
|
+
|
|
46
|
+
- 1fcda67062a: Added the input popover to `{$inputs.name}` expressions in the request body, GraphQL variables and message editors in the **Try it** console and Replay.
|
|
47
|
+
It displays the value, keeps secret values hidden until revealed, and edits the value in place.
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- 1fcda67062a: Fixed an issue where the JSON request body in the **Try it** console and Replay highlighted an `$inputs.name` expression without braces, although the request does not replace it.
|
|
52
|
+
- 1fcda67062a: Fixed an issue where the request body in the **Try it** console and Replay highlighted some `$inputs` expressions that the request does not replace, and did not highlight some that it replaces.
|
|
53
|
+
- 1fcda67062a: Fixed an issue where a field with an `{$inputs.name}` expression in the **Try it** console and Replay took the focus back after the user clicked another field while editing the input in the popover.
|
|
54
|
+
- 1fcda67062a: Fixed an issue where saving an input from the popover of a field in the **Try it** console and Replay moved the input to the end of the environment list.
|
|
55
|
+
- 1fcda67062a: Fixed an issue where a popover of an editor field in the **Try it** console and Replay stayed open after the user typed in the field with the pointer over it. This applies to the popovers of `{$inputs.name}` and `{$steps.id.outputs.name}` expressions, of a path parameter in the URL, and of a schema description in the JSON body.
|
|
56
|
+
- @redocly/api-docs@0.6.0-next.19
|
|
57
|
+
|
|
58
|
+
## 0.141.0-next.18
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- 79b65d4bd69: Updated `@redocly/openapi-core` to version `2.81.0`.
|
|
63
|
+
- 881338848ae: Fixed an issue in the **Try it** console where requests went to the server of a previously opened operation instead of the operation's own server.
|
|
64
|
+
- d93f20aa145: Fixed an issue where OpenAPI code samples displayed different request values from `configure()` than the **Try it** console for the same server.
|
|
65
|
+
- Updated dependencies [79b65d4bd69]
|
|
66
|
+
- Updated dependencies [8b79cd177f7]
|
|
67
|
+
- Updated dependencies [e88d09e1242]
|
|
68
|
+
- Updated dependencies [d93f20aa145]
|
|
69
|
+
- @redocly/api-docs@0.6.0-next.18
|
|
70
|
+
- @redocly/realm-asyncapi-sdk@0.18.0-next.2
|
|
71
|
+
- @redocly/theme@0.73.0-next.14
|
|
72
|
+
- @redocly/portal-plugin-mock-server@0.26.0-next.5
|
|
73
|
+
|
|
74
|
+
## 0.141.0-next.17
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- 59db66ede59: Hardened authorization request handling.
|
|
79
|
+
- eebd6fbddea: Fixed an issue where pages crash with the error “Failed to execute ‘removeChild’ on ‘Node’”.
|
|
80
|
+
- Updated dependencies [8e0ced8aef0]
|
|
81
|
+
- Updated dependencies [eebd6fbddea]
|
|
82
|
+
- @redocly/api-docs@0.6.0-next.17
|
|
83
|
+
- @redocly/theme@0.73.0-next.13
|
|
84
|
+
|
|
85
|
+
## 0.141.0-next.16
|
|
86
|
+
|
|
87
|
+
### Minor Changes
|
|
88
|
+
|
|
89
|
+
- 9e40868bd9d: Added a key cap style for the `<kbd>` HTML element in Markdown pages to make keyboard shortcuts stand out from inline code.
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- 8740b0da28a: Fixed an issue where links to a page whose URL ends in a dotted name, such as an API schema named `pets.v1.Pet`, were broken.
|
|
94
|
+
- Updated dependencies [9e40868bd9d]
|
|
95
|
+
- @redocly/theme@0.73.0-next.12
|
|
96
|
+
- @redocly/api-docs@0.6.0-next.16
|
|
97
|
+
|
|
98
|
+
## 0.141.0-next.15
|
|
99
|
+
|
|
100
|
+
### Minor Changes
|
|
101
|
+
|
|
102
|
+
- 4a0076adf72: Added a `provider` option to `setEnvironmentValues` for choosing where Replay stores a value: `local`, `session`, or `memory`.
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- 76b1e1997fa: Fixed an issue where the copy button showed the translated "Copied!" message instead of the `toasterText` passed to `CopyButton` or to the `copy` control of `CodeBlockControls`.
|
|
107
|
+
- 59e8b8343b8: Fixed an issue where OpenAPI Markdoc tags, such as `openapi-code-sample`, displayed an error to users without access to an RBAC-protected API description.
|
|
108
|
+
Users without access don't see the tags, and the rest of the page loads as usual.
|
|
109
|
+
- 9b2d7aa1c9e: Fixed an issue where the MCP server failed a tool call that took longer than 30 seconds for clients on MCP protocol version `2026-07-28`, such as the Claude connector.
|
|
110
|
+
- 8e9cfa19ca0: Fixed links in projects with a path prefix.
|
|
111
|
+
Pages whose paths only start with the prefix text, such as `/docs-v2` with the prefix `/docs`, no longer lose a part of their URLs.
|
|
112
|
+
A prefix of `/` or `.` means no prefix.
|
|
113
|
+
- 708e74e266a: Fixed an issue where custom React components that imported from `react-dom`, such as `createPortal`, failed to render.
|
|
114
|
+
- 212626dc290: Fixed an issue where the **Try it** console crashed when custom components passed a missing value, such as a signed-out user's token.
|
|
115
|
+
- Updated dependencies [fa021f82293]
|
|
116
|
+
- Updated dependencies [fa021f82293]
|
|
117
|
+
- Updated dependencies [76b1e1997fa]
|
|
118
|
+
- Updated dependencies [8e9cfa19ca0]
|
|
119
|
+
- Updated dependencies [4a0076adf72]
|
|
120
|
+
- @redocly/api-docs@0.6.0-next.15
|
|
121
|
+
- @redocly/theme@0.73.0-next.11
|
|
122
|
+
|
|
123
|
+
## 0.141.0-next.14
|
|
124
|
+
|
|
125
|
+
### Minor Changes
|
|
126
|
+
|
|
127
|
+
- c50b714aabd: Added the `hero`, `background-container`, `eyebrow`, `cta`, `columns`, `button`, and `badge` Markdoc tags.
|
|
128
|
+
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- 150b50f3e09: Changed array type labels in API reference schemas and in the Replay request editor to lowercase (`array of strings`), to match the other type names, such as `string` and `object`.
|
|
132
|
+
- f5a71d5a207: Fixed an issue where **Copy as Markdown**, **View as Markdown**, `llms.txt`, and AI search included code samples restricted by `x-rbac`.
|
|
133
|
+
- b1db2762e0c: Fixed an issue in the **Try it** console where Replay turned off the **Secret** setting of an environment variable after the user switched operations or signed in again.
|
|
134
|
+
- f5a71d5a207: Fixed Markdown output so `openapi-code-sample` tags include code samples for every request example and `openapi-response-sample` tags include every response example.
|
|
135
|
+
Tags with the `exampleKey` or `requestBody` attribute continue to include a single sample.
|
|
136
|
+
- Updated dependencies [150b50f3e09]
|
|
137
|
+
- Updated dependencies [c50b714aabd]
|
|
138
|
+
- Updated dependencies [c50b714aabd]
|
|
139
|
+
- Updated dependencies [c50b714aabd]
|
|
140
|
+
- Updated dependencies [f5a71d5a207]
|
|
141
|
+
- Updated dependencies [f5a71d5a207]
|
|
142
|
+
- @redocly/api-docs@0.6.0-next.14
|
|
143
|
+
- @redocly/theme@0.73.0-next.10
|
|
144
|
+
|
|
145
|
+
## 0.141.0-next.13
|
|
146
|
+
|
|
147
|
+
### Patch Changes
|
|
148
|
+
|
|
149
|
+
- ec214ff705a: Hardened validation of authorization requests.
|
|
150
|
+
- 0f43878a651: Fixed an issue where the MCP server's search returned links on the Redocly domain instead of the project's custom domain.
|
|
151
|
+
- Updated dependencies [4670a926cdf]
|
|
152
|
+
- Updated dependencies [4670a926cdf]
|
|
153
|
+
- Updated dependencies [4670a926cdf]
|
|
154
|
+
- Updated dependencies [06b8cb141a7]
|
|
155
|
+
- @redocly/theme@0.73.0-next.9
|
|
156
|
+
- @redocly/api-docs@0.6.0-next.13
|
|
157
|
+
|
|
158
|
+
## 0.141.0-next.12
|
|
159
|
+
|
|
160
|
+
### Minor Changes
|
|
161
|
+
|
|
162
|
+
- f6a39b0a772: Renamed the MCP server credential tools to `create-anonymous-session`, `manage-api-credentials`, and `remove-api-credentials`.
|
|
163
|
+
- bdc8b09beb8: Removed the unused `SearchAiResponse` component from `@redocly/theme`. A custom theme that imports it no longer builds; import `SearchAiMessageContent` instead, which renders the AI search answer with its tool calls, citations and resources.
|
|
164
|
+
|
|
165
|
+
### Patch Changes
|
|
166
|
+
|
|
167
|
+
- c725911e90f: Fixed an issue where OpenAPI docs pages displayed an empty space above the first heading when the project's styles displayed hidden SVG elements.
|
|
168
|
+
For example: `svg[aria-hidden="true"] { display: inline; }`.
|
|
169
|
+
- Updated dependencies [c725911e90f]
|
|
170
|
+
- Updated dependencies [51f0b0ecff0]
|
|
171
|
+
- Updated dependencies [3892e2b2e75]
|
|
172
|
+
- Updated dependencies [bdc8b09beb8]
|
|
173
|
+
- @redocly/theme@0.73.0-next.8
|
|
174
|
+
- @redocly/api-docs@0.6.0-next.12
|
|
175
|
+
|
|
176
|
+
## 0.141.0-next.11
|
|
177
|
+
|
|
178
|
+
### Patch Changes
|
|
179
|
+
|
|
180
|
+
- 9b0d28400c3: Fixed a build error in the Replay API console for projects with an ejected `@theme/ext/configure.ts` file from an earlier version.
|
|
181
|
+
- Updated dependencies [d4a818d3842]
|
|
182
|
+
- Updated dependencies [d4a818d3842]
|
|
183
|
+
- Updated dependencies [9b0d28400c3]
|
|
184
|
+
- Updated dependencies [805a2c44363]
|
|
185
|
+
- @redocly/api-docs@0.6.0-next.11
|
|
186
|
+
- @redocly/theme@0.73.0-next.7
|
|
187
|
+
- @redocly/portal-plugin-mock-server@0.26.0-next.4
|
|
188
|
+
|
|
189
|
+
## 0.141.0-next.10
|
|
190
|
+
|
|
191
|
+
### Patch Changes
|
|
192
|
+
|
|
193
|
+
- 04d865fde45: Fixed an issue in the **Try it** console and Replay where JSON keys with a description had a blue background that made them hard to read.
|
|
194
|
+
- Updated dependencies [9e272e1aff2]
|
|
195
|
+
- Updated dependencies [ca4455d723b]
|
|
196
|
+
- Updated dependencies [04d865fde45]
|
|
197
|
+
- @redocly/api-docs@0.6.0-next.10
|
|
198
|
+
- @redocly/theme@0.73.0-next.6
|
|
199
|
+
|
|
200
|
+
## 0.141.0-next.9
|
|
201
|
+
|
|
202
|
+
### Patch Changes
|
|
203
|
+
|
|
204
|
+
- 439d85d8486: Fixed server-specific request values in OpenAPI docs.
|
|
205
|
+
Code samples, parameter examples, and Replay use values for the selected server without applying values configured for another server.
|
|
206
|
+
- 439d85d8486: Fixed a hydration error that could prevent OpenAPI documentation pages from rendering correctly for signed-in users.
|
|
207
|
+
- 0390518d7d2: Fixed an issue where the mock server responded slowly or failed with a response size error for operations whose schemas referenced each other in a cycle.
|
|
208
|
+
- 34b3907f614: Fixed an issue where OIDC login failed with `500 Internal Server Error` and no log entry when the identity provider was unreachable.
|
|
209
|
+
- fe9f667400f: Fixed an issue where pages crashed when the browser blocked cookies and site data.
|
|
210
|
+
- 34b3907f614: Fixed an issue in local preview where opening the URL of an RBAC-protected page directly returned `Internal Server Error` instead of redirecting to the login page when the identity provider was unreachable.
|
|
211
|
+
- 0d8111de219: Fixed an issue that caused the sidebar to jump when navigating to the current page in Chrome, Edge, and Safari. The sidebar scrolls only as far as needed to show the current page, without scrolling the page itself.
|
|
212
|
+
The sidebar scrolls only as far as needed to show the current page, and the page itself no longer scrolls.
|
|
213
|
+
- 673a2905e2c: Fixed an issue where a local SVG file set as the `icon` of a `tab` Markdoc tag displayed as an image and did not use the text color.
|
|
214
|
+
The icon renders as an inline SVG, as card and numbered list icons do.
|
|
215
|
+
- Updated dependencies [9299252c6a3]
|
|
216
|
+
- Updated dependencies [439d85d8486]
|
|
217
|
+
- Updated dependencies [fe9f667400f]
|
|
218
|
+
- Updated dependencies [0d8111de219]
|
|
219
|
+
- Updated dependencies [673a2905e2c]
|
|
220
|
+
- @redocly/api-docs@0.6.0-next.9
|
|
221
|
+
- @redocly/theme@0.73.0-next.5
|
|
222
|
+
- @redocly/portal-plugin-mock-server@0.26.0-next.3
|
|
223
|
+
|
|
224
|
+
## 0.141.0-next.8
|
|
225
|
+
|
|
226
|
+
### Patch Changes
|
|
227
|
+
|
|
228
|
+
- ef4b5acde6b: Fixed security vulnerabilities `CVE-2026-126355`, `CVE-2026-126356`, `CVE-2026-126357`, `CVE-2026-126358` and `CVE-2026-126359` by upgrading `hono` to version `4.13.18`.
|
|
229
|
+
- eb7c2577b5c: Updated `@redocly/openapi-core` to version `2.78.0`.
|
|
230
|
+
- e2f013813c6: Fixed an issue where **Copy for LLM**, **View as Markdown**, **Open in ChatGPT**, **Open in Claude**, and **Open in Grok** page actions were displayed and failed on pages without a Markdown copy.
|
|
231
|
+
- df29d4c6ecc: Fixed an issue in the **Try it** console where a secret value stayed in browser storage after its variable was deleted or **Secret** was turned off.
|
|
232
|
+
- Updated dependencies [27c9c56babc]
|
|
233
|
+
- Updated dependencies [eb7c2577b5c]
|
|
234
|
+
- Updated dependencies [457d1e5a3e2]
|
|
235
|
+
- Updated dependencies [e2f013813c6]
|
|
236
|
+
- Updated dependencies [1b5009c48c7]
|
|
237
|
+
- @redocly/api-docs@0.6.0-next.8
|
|
238
|
+
- @redocly/theme@0.73.0-next.4
|
|
239
|
+
- @redocly/realm-asyncapi-sdk@0.18.0-next.1
|
|
240
|
+
- @redocly/portal-plugin-mock-server@0.26.0-next.2
|
|
241
|
+
|
|
242
|
+
## 0.141.0-next.7
|
|
243
|
+
|
|
244
|
+
### Minor Changes
|
|
245
|
+
|
|
246
|
+
- 3b0144f79a9: Added `--schema-nested-level-0-color` through `--schema-nested-level-8-color` CSS variables to customize colors for nested schema levels in API docs.
|
|
247
|
+
|
|
248
|
+
### Patch Changes
|
|
249
|
+
|
|
250
|
+
- 3b0144f79a9: Fixed an issue where API docs showed the names of schema properties nested ten or more levels deep in the color of a different nesting level.
|
|
251
|
+
- 5ebf95c0652: Fixed an issue where OpenAPI documentation and code samples exposed servers restricted by `x-rbac` to readers outside the allowed teams.
|
|
252
|
+
- 930a9104e7e: Fixed an issue that caused the API reference URL and sidebar highlight to remain on the previous section when readers scrolled while the page was loading.
|
|
253
|
+
- b99335804a3: Fixed an issue where the copy button of a code block and of a code walkthrough file copied the `[!code highlight]`, `[!code warning]` and other highlight notation comments along with the code.
|
|
254
|
+
- 5ab244099d2: Fixed an issue where the page could not be scrolled after the browser window was resized from a mobile or tablet width to a desktop width while the navigation menu was open.
|
|
255
|
+
- e8d0e1e092b: Fixed an issue where a React page that exports an async component displayed a blank page in preview.
|
|
256
|
+
- 0eb19a57733: Fixed an issue where the MCP connect button in OpenAPI docs showed the page actions from `navigation.actions.items` instead of the API's MCP server actions.
|
|
257
|
+
- b7cbb5c1d33: Fixed an issue in Replay and the **Try it** console where a JSON Lines, NDJSON or JSON Sequence request body example written as a string was split over several lines.
|
|
258
|
+
- b7cbb5c1d33: Fixed an issue where Replay and the **Try it** console displayed and sent an XML request body example as JSON when the API description defined the example as an object, not as an XML string.
|
|
259
|
+
The issue occurred when a user picked the example from the list or switched the request body to an XML media type.
|
|
260
|
+
- e8d0e1e092b: Added React page runtime errors to the preview status bar and terminal summary.
|
|
261
|
+
- d58e22e0695: Fixed an issue in API docs where the **Try it** console filled a path parameter with the example of another operation.
|
|
262
|
+
This problem happened when operations had path parameters with the same name and the user had opened **Try it** on one of them before.
|
|
263
|
+
- Updated dependencies [2be77ebbf13]
|
|
264
|
+
- Updated dependencies [73daff36df4]
|
|
265
|
+
- Updated dependencies [3b0144f79a9]
|
|
266
|
+
- Updated dependencies [2be77ebbf13]
|
|
267
|
+
- Updated dependencies [5ebf95c0652]
|
|
268
|
+
- Updated dependencies [3b0144f79a9]
|
|
269
|
+
- Updated dependencies [930a9104e7e]
|
|
270
|
+
- Updated dependencies [784206189dd]
|
|
271
|
+
- Updated dependencies [2be77ebbf13]
|
|
272
|
+
- Updated dependencies [d21d3af6b99]
|
|
273
|
+
- Updated dependencies [3e29b8a269e]
|
|
274
|
+
- Updated dependencies [b9f395893a4]
|
|
275
|
+
- Updated dependencies [b99335804a3]
|
|
276
|
+
- Updated dependencies [3bfc48009ff]
|
|
277
|
+
- Updated dependencies [5ab244099d2]
|
|
278
|
+
- Updated dependencies [0eb19a57733]
|
|
279
|
+
- Updated dependencies [d58e22e0695]
|
|
280
|
+
- Updated dependencies [ee2291668f4]
|
|
281
|
+
- Updated dependencies [ee2291668f4]
|
|
282
|
+
- @redocly/api-docs@0.6.0-next.7
|
|
283
|
+
- @redocly/theme@0.73.0-next.3
|
|
284
|
+
|
|
285
|
+
## 0.141.0-next.6
|
|
286
|
+
|
|
287
|
+
### Patch Changes
|
|
288
|
+
|
|
289
|
+
- 714798045d2: Fixed downloads of API descriptions larger than 15MB, or that took longer than 10 seconds to prepare, failing with a server error. Downloads now succeed up to 20MB and 15 seconds.
|
|
290
|
+
- 4fe1a869003: Fixed an issue where the cookie consent banner moved with animated page content in customized layouts.
|
|
291
|
+
- 4fe1a869003: Fixed an issue where the local preview floating bar moved with animated page content in customized layouts.
|
|
292
|
+
- 79920583248: Fixed an issue where response samples in GraphQL docs did not display the operation's field name under `data`, so they didn't match the response from a GraphQL server.
|
|
293
|
+
- 949b1891049: Fixed an issue in the **Try it** console where Replay could change an environment variable’s **Secret** setting or move the variable to the end of the list.
|
|
294
|
+
- 0959df9eb79: Fixed an issue where downloading a large API description as YAML failed with a timeout error.
|
|
295
|
+
- Updated dependencies [79920583248]
|
|
296
|
+
- @redocly/api-docs@0.6.0-next.6
|
|
297
|
+
|
|
298
|
+
## 0.141.0-next.5
|
|
299
|
+
|
|
300
|
+
### Patch Changes
|
|
301
|
+
|
|
302
|
+
- 30906aeb59e: Fixed an issue where the **Try it** console in API docs did not open when `downloadUrls` pointed to a file on another domain that doesn't allow cross-origin requests.
|
|
303
|
+
The **Download** button uses the URLs from `downloadUrls`, as before.
|
|
304
|
+
- 76ad8d5ae1c: Fixed an issue where raw `<html>`, `<head>`, or `<body>` elements in Markdown content caused the page to render without styles.
|
|
305
|
+
- 225ac7c52b5: Updated `@redocly/openapi-core` to version `2.77.0`.
|
|
306
|
+
- b85dd1b4834: Fixed a page crash that could occur when the code of the search dialog, the code snippet report dialog or another lazily loaded component failed to download.
|
|
307
|
+
The dialogs close and reopening them retries the download, and other components display a notice with a reload button in their place.
|
|
308
|
+
- a53968914cb: Fixed an issue where the sidebar expanded a collapsed group but did not scroll to the current page in that group after navigation from a content link, a search result, or the browser's back button.
|
|
309
|
+
- Updated dependencies [945a307610e]
|
|
310
|
+
- Updated dependencies [945a307610e]
|
|
311
|
+
- Updated dependencies [5086ff5c51e]
|
|
312
|
+
- Updated dependencies [b1b889a9a00]
|
|
313
|
+
- Updated dependencies [945a307610e]
|
|
314
|
+
- Updated dependencies [30906aeb59e]
|
|
315
|
+
- Updated dependencies [76ad8d5ae1c]
|
|
316
|
+
- Updated dependencies [225ac7c52b5]
|
|
317
|
+
- Updated dependencies [b85dd1b4834]
|
|
318
|
+
- Updated dependencies [a53968914cb]
|
|
319
|
+
- @redocly/api-docs@0.6.0-next.5
|
|
320
|
+
- @redocly/theme@0.73.0-next.2
|
|
321
|
+
- @redocly/realm-asyncapi-sdk@0.18.0-next.0
|
|
322
|
+
- @redocly/portal-plugin-mock-server@0.26.0-next.1
|
|
323
|
+
|
|
324
|
+
## 0.141.0-next.4
|
|
325
|
+
|
|
326
|
+
### Patch Changes
|
|
327
|
+
|
|
328
|
+
- Updated dependencies [c5f81a42aeb]
|
|
329
|
+
- @redocly/api-docs@0.6.0-next.4
|
|
330
|
+
|
|
331
|
+
## 0.141.0-next.3
|
|
332
|
+
|
|
333
|
+
### Patch Changes
|
|
334
|
+
|
|
335
|
+
- 4b1714e415e: Fixed an issue in API docs where tags, groups, or items whose names differ only in letter case or in characters that URLs leave out, such as `demo数据` and `demo数据备份`, shared one URL and displayed the wrong content.
|
|
336
|
+
Old links to the pages that moved to a new URL still work.
|
|
337
|
+
- 5687b651a00: Fixed an issue where Replay replaced a saved authorization when a request was opened.
|
|
338
|
+
Replay keeps the saved authorization and displays a warning when the operation no longer lists it or Replay does not support its type.
|
|
339
|
+
- Updated dependencies [38837355900]
|
|
340
|
+
- Updated dependencies [84591aefc60]
|
|
341
|
+
- Updated dependencies [0072b265d34]
|
|
342
|
+
- Updated dependencies [4b1714e415e]
|
|
343
|
+
- @redocly/api-docs@0.6.0-next.3
|
|
344
|
+
- @redocly/theme@0.73.0-next.1
|
|
345
|
+
|
|
3
346
|
## 0.141.0-next.2
|
|
4
347
|
|
|
5
348
|
### Patch Changes
|
|
@@ -65,6 +408,20 @@
|
|
|
65
408
|
- Updated dependencies [646e97c1085]
|
|
66
409
|
- @redocly/api-docs@0.6.0-next.0
|
|
67
410
|
|
|
411
|
+
## 0.140.1
|
|
412
|
+
|
|
413
|
+
### Patch Changes
|
|
414
|
+
|
|
415
|
+
- e1adc81a31f: Fixed an issue where API reference pages displayed an error, such as `Unknown hook useMarkdownText`, instead of the documentation.
|
|
416
|
+
If content added through `unstable_hooks` fails to render, the API reference page hides that content and displays the rest of the documentation.
|
|
417
|
+
- 7f557d312cf: Fixed an issue where **Try it** console failed in an API reference page that stayed open while the project was redeployed.
|
|
418
|
+
**Try it** displays a message with a button that reloads the page.
|
|
419
|
+
- da7da9cf1f6: Fixed "Last updated" dates that showed the build time instead of the date of the last change.
|
|
420
|
+
- Updated dependencies [e1adc81a31f]
|
|
421
|
+
- Updated dependencies [7f557d312cf]
|
|
422
|
+
- @redocly/theme@0.72.1
|
|
423
|
+
- @redocly/api-docs@0.5.1
|
|
424
|
+
|
|
68
425
|
## 0.140.0
|
|
69
426
|
|
|
70
427
|
### Minor Changes
|
package/dist/cli/develop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{logger as t}from"../server/tools/notifiers/logger.js";import{reporter as c}from"../server/tools/notifiers/reporter.js";import{green as
|
|
1
|
+
import{logger as t}from"../server/tools/notifiers/logger.js";import{reporter as c}from"../server/tools/notifiers/reporter.js";import{green as w}from"../server/tools/notifiers/helpers/colors.js";import{envConfig as m}from"../server/config/env-config.js";import{resolveCache as R}from"../server/esbuild/plugins/themes-resolver.js";import{getBilledPagesCount as p}from"../server/utils/index.js";import{createClientCompiler as C,createServerCompiler as S}from"../server/esbuild/esbuild.js";import{writeServerRebuildTrigger as h}from"../server/esbuild/generate.js";import{initPlugins as E,runPlugins as f,writeClientEntries as P}from"../server/plugins/lifecycle.js";import{startDevServer as y}from"../server/web-server/dev-server.js";import{validateAllMarkdowns as g}from"../server/plugins/markdown/compiler.js";import{reportAllErrors as v}from"../server/utils/report-all-errors.js";import{validateAllowedPackages as L}from"../server/utils/validate-allowed-packages.js";import{copyMigrationsFolder as T}from"../server/providers/database/copy-migrations.js";import{listenStdin as D}from"./utils/listen-stdin.js";import{createReactPagesCheck as k}from"./utils/react-pages-check.js";const A=20;async function $(i,e){t.info("Starting project preview mode."),e.devLogin=i["dev-login"]!==!1,P(e),t.startTiming("initial-js"),await O(e),t.infoTime("initial-js","JavaScript compiled");const{pluginInstances:o,lifecycleContext:n}=await E({contentDir:e.contentDir,outdir:e.outdir,serverOutDir:void 0,devLogin:e.devLogin,setGlobalConfig:e.setGlobalConfig});e.lifecycleContext=n,T(e),await f(o,e,n,{failFast:!0});const d=k(e,n),u=async a=>{const s=performance.now();c.clearErrors(),await L(),d.invalidate(),await f(o,e,n),m.REDOCLY_EXP_DISABLE_MD_VALIDATION?t.info("Skipping markdown validation step"):await g(e,n),a.some(({event:l})=>l==="code-updated")&&d.run(),_().then(async()=>{await v(n);const l=p(e.getAllRoutes()),b=c.summary(` \u{1F440} Last change processed in ${w(Math.round(performance.now()-s)+"ms")}`,l);e.runListeners("errors-updated",void 0,b),e.runListeners("pages-updated",void 0,l),e.runListeners("routes-updated")})};m.REDOCLY_EXP_DISABLE_MD_VALIDATION?t.info("Skipping markdown validation step"):await g(e,n),await v(n);const r=p(e.getAllRoutes());c.summary(" \u{1F440} Watching for changes...",r),e.runListeners("pages-updated",void 0,r),n.fs.watch(async a=>{R.clear(),await u(a)}),t.verbose("Starting development server."),await y(e,n,{port:Number(i.port||4e3),maxPortRetries:m.isReunite?0:A}),d.run(),D()}async function O(i){let e=!0,o=!0;const n=async r=>{r==="client"?e=!0:o=!0,i.runListeners("build-started");const a=e!=o;a&&i.startEsbuildRun(),i.buildRevision>0&&await i.waitForPluginsRun(),r!=="client"&&i.noteRequestHandlersEntryBuildStart(),a&&t.startTiming("rebuild")},d=async r=>{r==="client"?e=!1:(o=!1,i.markRequestHandlersEntryUpdated()||h(i.serverOutDir)),!(e||o)&&(i.finishEsbuildRun(),i.buildRevision++,t.infoTime("rebuild","JavaScript re-compiled"),await i.reloadMarkdocOptions(),i.markUserCodeReady(),i.runListeners("build-updated"),i.lifecycleContext&&i.buildRevision>1&&i.lifecycleContext.fs.emitCodeUpdated())},u=[new Promise((r,a)=>{const s={label:"client",buildStart(){t.verbose("Start compiling client code."),t.startTiming(this.label)},buildEnd(){t.verboseTime(this.label,"Client compiled"),r(!0)},rebuildStart:()=>n("client"),rebuildEnd:()=>d("client")};C(i,i.outdir,"development",s).then(l=>l.watch()).catch(a)}),new Promise((r,a)=>{const s={label:"server",buildStart(){t.verbose("Start compiling server code."),t.startTiming(this.label)},buildEnd(){t.verboseTime(this.label,"Server compiled"),r(!0)},rebuildStart:()=>n("server"),rebuildEnd:()=>d("server")};S(i,i.serverOutDir,"development",s).then(l=>l.watch()).catch(a)})];await Promise.all(u),await i.reloadMarkdocOptions()}function _(){return new Promise(i=>{setTimeout(i,0)})}export{$ as develop};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Store } from '../../server/store.js';
|
|
2
|
+
import type { LifecycleContext } from '../../server/types/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* The preview check of React pages. It runs in the background, so the dev server and file
|
|
5
|
+
* changes do not wait for it, and it publishes the errors when its result changes.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createReactPagesCheck(store: Store, lifecycleContext: LifecycleContext): {
|
|
8
|
+
run(): Promise<void>;
|
|
9
|
+
invalidate(): void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=react-pages-check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{reporter as a}from"../../server/tools/notifiers/reporter.js";import{green as f}from"../../server/tools/notifiers/helpers/colors.js";import{getBilledPagesCount as m}from"../../server/utils/index.js";import{validateReactPages as l}from"../../server/plugins/pages/validators/validate-react-pages.js";import{renderPage as u}from"../../server/ssr/index.js";function R(r,n){let t=!1,e=!1;return{async run(){if(t){e=!0;return}t=!0;const o=performance.now(),i=JSON.stringify(a.getPageRenderProblems());do e=!1,await r.waitForPluginsRun(),await l(r,n,u,()=>e);while(e);if(t=!1,JSON.stringify(a.getPageRenderProblems())===i)return;const s=a.summary(` \u{1F440} React pages checked in ${f(Math.round(performance.now()-o)+"ms")}`,m(r.getAllRoutes()));r.runListeners("errors-updated",void 0,s)},invalidate(){e=t}}}export{R as createReactPagesCheck};
|
package/dist/client/App.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as t from"react";import{Outlet as d,useLocation as h,useNavigate as P}from"react-router";import{useEffect as i,useMemo as c,useState as S,Suspense as D}from"react";import{withoutPathPrefix as T}from"@redocly/theme/core/utils";import{useThemeConfig as v}from"@redocly/theme/core/hooks";import{InternalServerErrorLayout as L}from"@redocly/theme/layouts/InternalServerErrorLayout";import{RootLayout as C}from"@redocly/theme/layouts/RootLayout";import{Consent as y}from"@redocly/theme/components/Consent/Consent";import{LoadProgressBar as R}from"@redocly/theme/components/LoadProgressBar/LoadProgressBar";import{PageLayout as _}from"@redocly/theme/layouts/PageLayout";import{components as I}from"@redocly/theme/markdoc/default";import{Sidebar as N}from"./app/Sidebar/Sidebar";import{loadAndNavigate as O}from"./app/utils/loadAndNavigate";import{useActions as A}from"./app/Sidebar/useActions";import{useScrollTracker as b}from"./app/hooks/useScrollTracker";import{useAutoScroll as k}from"./app/hooks/useAutoScroll";import{API_DOCS_TEMPLATE_ID as u}from"../constants/common";import{removeTrailingSlash as M}from"../utils/url/remove-trailing-slash";import{removeLeadingSlash as x}from"../utils/url/remove-leading-slash";import*as B from"./app/markdoc/custom-components/index";import{DefaultStyles as F}from"./styling/default-styles";import{ThemeDataProvider as G}from"./providers/theme/ThemeDataProvider";import{PageDataContext as V}from"./providers/page-data/PageDataContext";import{SeoTags as w}from"./app/seo/SeoTags";import{useRouterForLocalLinks as U,useRunningEnvironmentCheck as W}from"./providers/hooks";import{usePageData as j,usePageDataLoader as q}from"./providers/page-data/hooks";import{ErrorBoundary as z}from"./ErrorBoundary";import{ErrorDetails as f,Loader as H}from"./server-entry";import"@styles";import{useRouteChangeTracker as J}from"./app/hooks/useRouteChangeTracker";import{useWebMcpTools as K}from"./app/webmcp";import{isInIframe as Q}from"./utils";import{useL10n as X}from"./app/l10n";import{PostMessageProvider as Y}from"./providers/post-message/PostMessageProvider";import{ScriptLoader as Z}from"./ScriptLoader";import{clientRoutes as $}from"./runtime/generated/routes.js";import{DevModeFloatingBar as ee}from"./app/DevModeFloatingBar";import{usePageTimeTracker as te}from"./app/hooks/usePageTimeTracker";import{useMarkdocRenderer as oe}from"./app/hooks/markdown/useMarkdocRenderer";globalThis.__LOADER.markdocComponents={...B,...I};function re(){const{palette:e}=v();return t.createElement(F,{palette:e})}function je(){const e=q(),[r,n]=S(e),o=h(),m=P();X(),i(()=>{e?n(e):O({navigate:m,to:o.pathname+o.search+o.hash}).then(()=>n(H.loadSync(o.pathname)))},[o,m]),U();const a=W();return a?(console.log(a),t.createElement(f,{error:{message:a,name:""}})):r?t.createElement(z,null,t.createElement(V.Provider,{value:e||r},t.createElement(G,null,t.createElement(re,null),t.createElement(R,null),t.createElement(Y,{enabled:process.env.NODE_ENV==="development"||Q()},t.createElement(d,null))))):null}function ne(){return k(),null}function E(){J(),te(),b(),K();const e=j(),r=A(),{layout:n}=r,o=c(()=>({layout:n}),[n]),m=process.env.NODE_ENV!=="production",a=globalThis.SSR_OMIT_SUSPENSE,l=oe(e?.props?.ast),g=M(e?.slug||"");i(()=>{document.documentElement.classList.add("ready")},[]);const s=c(()=>[u].includes(e?.templateId??"")?{...e?.props,apiOptions:o}:e?.props,[e?.props,e?.templateId,o]);if(e?.props.pagePropGetterError?.message)return m?t.createElement(f,{error:{...e?.props?.pagePropGetterError}}):t.createElement(L,null);if(!!e?.props?.compilationErrors?.length)return e?.Template?t.createElement(e.Template,{pageProps:e?.props,children:l}):null;const p=()=>t.createElement(t.Fragment,null,t.createElement(C,null,e?.templateId!==u&&t.createElement(ne,null),t.createElement(_,{sidebar:t.createElement(N,{layoutControls:r})},t.createElement(w,{seo:e?.props.seo,slug:g}),e?.Template&&s?t.createElement(e.Template,{pageProps:s,children:l}):null),t.createElement(Z,null)),t.createElement(y,null),process.env.NODE_ENV!=="production"&&t.createElement(ee,null));return a?p():t.createElement(D,null,p())}const qe=[...$.map(e=>({Component:E,path:x(T(e).substring(1)+"/*")})),{Component:E,path:"*"}];export{je as App,E as Page,qe as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLocation as A}from"react-router";import{useEffect as w,useMemo as c,useRef as _,useState as
|
|
1
|
+
import{useLocation as A}from"react-router";import{useEffect as w,useMemo as c,useRef as _,useState as D}from"react";import{useApiDocsActiveSectionId as k}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"../../utils/filter-out-versioned-items";const B="catalog.backToAllLabel",M=`${T}/${h.ALL}`;function U(i){const e=G();return c(()=>R(e,i),[e,i])}function J(i){const e=A(),t=k(e),a=O(),g=E(),s=U(i),u=a?K(s,a.key,g?.slug,e.search):s,m=_(null),r=c(()=>b(u,e,t),[t,e,u]),l=y("current-catalog-info"),p=c(()=>S(r),[u]),[n,d]=D(p),o=n.length>0?n[n.length-1]:void 0,I=c(()=>o&&b([...o.item.link?[{...o.item,items:[],menuStyle:void 0,separatorLine:!1}]:[],...o.item.items],e,t),[o,e,t]);w(()=>{if(!m.current||m.current!==t){const f=S(r);d(f),m.current=t}},[s,e,t]);const L=o?{slug:o.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&&d(n.slice(0,n.length-1))},pushDrilldownState:f=>{d([...n,f])},backLink:L,versionLabel:a?.version??null}}function S(i,e=[]){for(const t of i){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};
|
|
@@ -2,10 +2,12 @@ export declare const useProducts: () => ({
|
|
|
2
2
|
folder: string;
|
|
3
3
|
icon?: string | undefined;
|
|
4
4
|
name: string;
|
|
5
|
+
nameTranslationKey?: string | undefined;
|
|
5
6
|
} & {
|
|
6
7
|
folder: string;
|
|
7
8
|
icon?: string | undefined;
|
|
8
9
|
name: string;
|
|
10
|
+
nameTranslationKey?: string | undefined;
|
|
9
11
|
} & {
|
|
10
12
|
slug: string;
|
|
11
13
|
link: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useEffect as
|
|
1
|
+
import{useEffect as l,useMemo as m,useState as c}from"react";import{useLocation as S}from"react-router";import{useThemeConfig as A}from"@redocly/theme/core/hooks";import{usePageData as w}from"../../providers/page-data/hooks";import{getBannerForSlug as B,getNextBannerTransition as h,isBannerWithinTimeRange as D}from"./utils/match-banner-target.js";const u="redocly-dismissed-banners",T=2**31-1;function x(){if(typeof window>"u")return new Set;try{const n=JSON.parse(localStorage.getItem(u)??"[]");return new Set(Array.isArray(n)?n:[])}catch{return new Set}}function C(){const{banner:n}=A()||{},t=w()?.props?.frontmatter?.banner,f=S(),[a,d]=c(x()),[s,y]=c(()=>Date.now()),o=f.pathname,i=m(()=>{const r=Array.isArray(n)?n:[],e=Array.isArray(t)?t:[];return[...r,...e]},[n,t]);return l(()=>{const r=h(i,s);if(r===void 0)return;const e=r-Date.now(),g=Math.min(Math.max(0,e),T),p=setTimeout(()=>y(Date.now()),g);return()=>clearTimeout(p)},[i,s]),{banner:m(()=>{const r=(Array.isArray(t)?t:[]).find(e=>!a.has(e.hash)&&D(e,s));if(r)return r;if(!(!n||!Array.isArray(n)||n.length===0))return B(n,o,a,s)},[n,t,o,a,s]),dismissBanner:r=>{const e=new Set(a);e.add(r),d(e);try{localStorage.setItem(u,JSON.stringify(Array.from(e)))}catch{return}}}}export{u as STORAGE_KEY,x as getDismissedBannersFromStorage,C as useBanner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useMemo as
|
|
1
|
+
import{useMemo as s}from"react";import{AuthCookieNames as a}from"../../../constants/common";import{usePageData as i}from"./usePageData";import{getCookie as m}from"./utils/cookies";function D(){const{userData:e}=i("userData")||{},o=globalThis.redoclyCookieStorage?.getStore(),r=m(a.FEDERATED_ACCESS_TOKEN,o),t=m(a.FEDERATED_ID_TOKEN,o);return s(()=>({email:e?.email,name:e?.name,federatedAccessToken:r,federatedIdToken:t}),[e?.email,e?.name,r,t])}export{D as useUserClaims};
|
|
@@ -13,7 +13,8 @@ type OpenApiCodeSampleProps = {
|
|
|
13
13
|
options?: Partial<RedocConfig>;
|
|
14
14
|
environment?: string;
|
|
15
15
|
environments?: Record<string, Record<string, string>>;
|
|
16
|
+
embedResolved?: boolean;
|
|
16
17
|
};
|
|
17
|
-
export declare function OpenApiCodeSample(props: OpenApiCodeSampleProps): React.JSX.Element;
|
|
18
|
+
export declare function OpenApiCodeSample(props: OpenApiCodeSampleProps): React.JSX.Element | null;
|
|
18
19
|
export {};
|
|
19
20
|
//# sourceMappingURL=openapi-code-sample.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"react";import{MarkdownAdapterProvider as
|
|
1
|
+
import*as o from"react";import{MarkdownAdapterProvider as A,StoreProvider as C,RedocCodeSample as M,appendUndeclaredConfigureParameters as q,excludeMockServers as m,markdocParser as w}from"@redocly/api-docs";import{ErrorMessage as x,OpenApiComponentWrap as I}from"../styled.elements";import{isEmbedTargetWithheld as O,useStore as T}from"../../hooks/use-store";import{findCodeSamplePanel as R}from"../../utils/find-code-sample-panel.js";import{usePortalMarkdownAdapter as b}from"./use-markdown-adapter";function U(d){const{descriptionFile:c,operationId:a,pointer:p,exampleKey:l,mimeType:u,language:n,requestBody:f,parameters:e,options:s,environment:v,environments:y,embedResolved:S}=d,{store:r,error:g,restricted:h}=T(c),k=b(),E=o.useMemo(()=>({specType:"openapi",...r?.options,...s,codeSamples:{...r?.options?.codeSamples,...s?.codeSamples,...n&&{languages:[{lang:n}]}},markdownParser:w}),[n,s,r?.options]),i=o.useMemo(()=>{if(!r?.items?.length)return;const t=R(r.items,{pointer:p,sourceId:a});if(!t)return;const P=q({...t.source,servers:m(t.source.servers)},{...e?.path&&{path:e.path},...e?.query&&{query:e.query},...e?.header&&{headers:e.header},...e?.cookie&&{cookie:e.cookie}});return{...t,...t.servers&&{servers:m(t.servers)},source:P}},[r?.items,p,a,e]);return r?i?o.createElement(I,{"data-testid":"openapi-code-sample"},o.createElement(C,{options:E,apiStore:r.store},o.createElement(A,{value:k},o.createElement(M,{node:i,mimeType:u,exampleKey:l,requestBody:f,parameters:e,environment:v,environments:y})))):O(S)?null:o.createElement("pre",{style:{color:"red"}},"Cannot find OpenAPI operation (use pointer or operationId)"):h?null:o.createElement(x,null,g)}export{U as OpenApiCodeSample};
|
|
@@ -6,6 +6,6 @@ type OpenApiExampleProps = {
|
|
|
6
6
|
mimeType?: string;
|
|
7
7
|
options?: Partial<RedocConfig>;
|
|
8
8
|
};
|
|
9
|
-
export declare function OpenApiExample(props: OpenApiExampleProps): React.JSX.Element;
|
|
9
|
+
export declare function OpenApiExample(props: OpenApiExampleProps): React.JSX.Element | null;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=openapi-example.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{MarkdownAdapterProvider as
|
|
1
|
+
import*as e from"react";import{MarkdownAdapterProvider as l,RedocExample as u,StoreProvider as f,findExampleContent as E,markdocParser as k}from"@redocly/api-docs";import{ErrorMessage as x,OpenApiComponentWrap as A}from"../styled.elements";import{useStore as P}from"../../hooks/use-store";import{usePortalMarkdownAdapter as w}from"./use-markdown-adapter";function C(n){const{descriptionFile:p,pointer:r,options:a,mimeType:i}=n,{store:t,error:m,restricted:s}=P(p),c=w(),o=t?.items,d=e.useMemo(()=>o?E(o,r):void 0,[o,r]);return t?e.createElement(A,{"data-testid":"openapi-example"},e.createElement(f,{options:{...t.options,...a,markdownParser:k},apiStore:t.store},e.createElement(l,{value:c},e.createElement(u,{pointer:r,mimeType:i||"application/json",content:d})))):s?null:e.createElement(x,null,m)}export{C as OpenApiExample};
|
|
@@ -4,7 +4,8 @@ type OpenApiResponseSampleProps = {
|
|
|
4
4
|
operationId?: string;
|
|
5
5
|
pointer?: string;
|
|
6
6
|
exampleKey?: string;
|
|
7
|
+
embedResolved?: boolean;
|
|
7
8
|
};
|
|
8
|
-
export declare function OpenApiResponseSample(props: OpenApiResponseSampleProps): React.JSX.Element;
|
|
9
|
+
export declare function OpenApiResponseSample(props: OpenApiResponseSampleProps): React.JSX.Element | null;
|
|
9
10
|
export {};
|
|
10
11
|
//# sourceMappingURL=openapi-response-sample.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{MarkdownAdapterProvider as
|
|
1
|
+
import*as e from"react";import{MarkdownAdapterProvider as f,RedocResponseSamples as E,StoreProvider as h,markdocParser as S}from"@redocly/api-docs";import{ErrorMessage as t,OpenApiComponentWrap as P}from"../styled.elements";import{isEmbedTargetWithheld as R,useStore as g}from"../../hooks/use-store";import{findResponseSamples as k}from"../../utils/find-openapi-response-samples.js";import{usePortalMarkdownAdapter as v}from"./use-markdown-adapter";function x(n){const{descriptionFile:s,operationId:p,pointer:a,exampleKey:i,embedResolved:m}=n,{store:r,error:d,restricted:l}=g(s),c=v(),u=e.useMemo(()=>({...r?.options,specType:"openapi",markdownParser:S}),[r?.options]);if(!r)return l?null:e.createElement(t,null,d);const o=r.items?.length?k(r.items,{pointer:a,sourceId:p}):void 0;return o?.responseCodes.length?e.createElement(P,{"data-testid":"openapi-response-sample"},e.createElement(h,{options:u,apiStore:r.store},e.createElement(f,{value:c},e.createElement(E,{responseCodes:o.responseCodes,exampleKey:i,schemaId:o.schemaId})))):R(m)?null:e.createElement(t,null,"Cannot find response samples for the given operation")}export{x as OpenApiResponseSample};
|
|
@@ -13,6 +13,7 @@ export type ReplayOpenApiProps = {
|
|
|
13
13
|
environment?: string;
|
|
14
14
|
environments?: Record<string, Record<string, string>>;
|
|
15
15
|
hideOtherSecuritySchemes?: boolean;
|
|
16
|
+
embedResolved?: boolean;
|
|
16
17
|
};
|
|
17
|
-
export declare const ReplayOpenApi: (props: ReplayOpenApiProps) => React.JSX.Element;
|
|
18
|
+
export declare const ReplayOpenApi: (props: ReplayOpenApiProps) => React.JSX.Element | null;
|
|
18
19
|
//# sourceMappingURL=replay-openapi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{useLocation as g}from"react-router";import{EmbeddedReplay as
|
|
1
|
+
import o from"react";import{useLocation as g}from"react-router";import{EmbeddedReplay as h,StoreProvider as A,buildReplayPredefinedEnvValues as k,mergeEnvData as I,useOpenApiDefinition as P,withReplayPrefetch as R,markdocParser as w}from"@redocly/api-docs";import{Admonition as V}from"@redocly/theme/markdoc/components/Admonition/Admonition";import{ErrorMessage as C,OpenApiComponentWrap as D}from"../styled.elements.js";import{isEmbedTargetWithheld as F,useStore as v}from"../../hooks/use-store.js";import{getMockServerDocsConfig as y}from"../../../../templates/api-docs/mock-server-config.js";import{buildReplayOperationSourceMap as $}from"../../utils/build-replay-operation-source-map.js";import{findApiItem as x}from"../../utils/find-api-item.js";const W=R(function({descriptionFile:s,operationId:r,pointer:n,exampleKey:a,mimeType:m,requestBody:e,parameters:f,environment:l,environments:i,hideOtherSecuritySchemes:c}){const S=g(),{store:t,baseSlug:u}=v(s),p=P(),E=o.useMemo(()=>{if(!p)return{};const M=y(t?.options?.mockServer,u??""),b=k(p,M);return I(b,i??{})},[p,t?.options?.mockServer,u,i]),O=o.useMemo(()=>t?.items?$(t.items,{pointer:n,sourceId:r},{mimeType:m,exampleKey:a},t.store?.exampleStore??{}):new Map,[t?.items,t?.store?.exampleStore,n,r,m,a]);return o.createElement(h,{key:`${S.pathname}-${s}-${r||n}`,activeOperationId:r,fullOpenApi:p,pointer:n,operationSourceMap:O,hideOtherSecuritySchemes:c,predefinedEnvValues:E,allowedEnvironments:l?[l]:void 0,requestValues:{body:e,...f},activeMimeName:m})},{immediate:!0}),Q=d=>{const{descriptionFile:s,operationId:r,pointer:n,options:a,embedResolved:m}=d,{store:e,error:f,restricted:l,baseSlug:i}=v(s),c=o.useMemo(()=>({...e?.options,...a}),[a,e?.options]),S=o.useMemo(()=>({specType:"openapi",...c,mockServer:y(c.mockServer,i??""),basePath:i,markdownParser:w,replayFeatures:e?.options.replayFeatures}),[c,i,e?.options.replayFeatures]),t=o.useMemo(()=>e?.items?.length?x(e.items,{pointer:n,sourceId:r}):void 0,[e?.items,n,r]);if(!e)return l?null:o.createElement(C,null,f);if(!t?.content?.meta?.pointer)return F(m)?null:o.createElement(V,{type:"danger"},"Cannot find OpenAPI operation by operationId or pointer in ",s);const u=t.content.meta.pointer,p=t.content.meta.sourceId??"";return o.createElement(D,{"data-testid":"replay-openapi"},o.createElement(A,{apiStore:e.store,options:S},o.createElement(W,{...d,pointer:u,operationId:p})))};export{Q as ReplayOpenApi};
|
|
@@ -5,13 +5,25 @@ export type ApiDefinitionEmbedSharedData = {
|
|
|
5
5
|
options: RawApiDocsOptions;
|
|
6
6
|
baseSlug: string;
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* The API description an embed tag reads. `restricted` tells that the page depends on the
|
|
10
|
+
* description and the access rules kept it from this viewer: in production the tag then renders
|
|
11
|
+
* nothing in place of its error.
|
|
12
|
+
*/
|
|
8
13
|
export declare function useStore(sharedDataKey?: string): {
|
|
9
14
|
store: undefined;
|
|
10
15
|
error: string;
|
|
16
|
+
restricted: boolean;
|
|
11
17
|
baseSlug?: undefined;
|
|
12
18
|
} | {
|
|
13
19
|
store: ApiDefinitionEmbedSharedData;
|
|
14
20
|
error: null;
|
|
15
21
|
baseSlug: string;
|
|
22
|
+
restricted: boolean;
|
|
16
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* True in production for a tag whose target the build found (`embedResolved`) while the delivered
|
|
26
|
+
* description lacks it: the access rules withheld it, and the tag renders nothing.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isEmbedTargetWithheld(embedResolved: boolean | undefined): boolean;
|
|
17
29
|
//# sourceMappingURL=use-store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{usePageSharedData as
|
|
1
|
+
import{usePageData as s,usePageSharedData as o}from"../../../providers/page-data/hooks";function c(e){const r=o(e||""),t=s()?.sharedDataIds;return r?{store:r,error:null,baseSlug:r.baseSlug,restricted:!1}:{store:void 0,error:"Incorrect OpenAPI file path",restricted:process.env.NODE_ENV==="production"&&!!e&&Object.values(t||{}).includes(e)}}function i(e){return process.env.NODE_ENV==="production"&&e===!0}export{i as isEmbedTargetWithheld,c as useStore};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
2
2
|
/**
|
|
3
|
-
* Markdown
|
|
4
|
-
*
|
|
5
|
-
* fragment are dropped, so the suffix always lands on the pathname and can never select another route.
|
|
3
|
+
* The Markdown copy of a prefixed route. The query and the fragment are dropped, so the `.md`
|
|
4
|
+
* suffix always lands on the pathname and can never select another route.
|
|
6
5
|
*/
|
|
7
6
|
export declare function markdownPathForRoute(pathname: string): string;
|
|
8
7
|
/** Returns the normalized path only when it stays on this site, so a tool can never navigate off-origin. */
|