@redocly/redoc-revel 0.137.0 → 0.138.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -2
- package/dist/bin.js +1 -1
- package/dist/cli/eject/resolveEjectParams.js +1 -1
- package/dist/cli/eject/themeOperations.js +1 -1
- package/dist/cli/generate/generate-tag.js +1 -1
- package/dist/cli/generate/generate.js +1 -1
- package/dist/client/TestProvider.js +1 -1
- package/dist/client/api-request-handlers-entry.d.ts +1 -1
- package/dist/client/app/hooks/catalog/useCatalog.d.ts +1 -2
- package/dist/client/app/hooks/index.d.ts +0 -1
- package/dist/client/app/hooks/index.js +1 -1
- package/dist/client/app/l10n/hooks/useL10n.js +1 -1
- package/dist/client/app/l10n/index.js +1 -1
- package/dist/client/app/search/sse-parser.d.ts +5 -2
- package/dist/client/app/search/sse-parser.js +2 -2
- package/dist/client/constants/ai-search.d.ts +8 -0
- package/dist/client/constants/ai-search.js +1 -1
- package/dist/client/mcp-tool-handlers-entry.d.ts +1 -1
- package/dist/client/middleware-entry.d.ts +1 -1
- package/dist/client/providers/theme/ThemeDataProvider.js +1 -1
- package/dist/client/server-props-entry.d.ts +1 -1
- 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/guards/is-example-node.d.ts +2 -1
- package/dist/markdoc/helpers/guards/is-example-node.js +1 -1
- package/dist/markdoc/nodes/fence/index.js +1 -1
- package/dist/server/constants/entitlements.d.ts +1 -2
- package/dist/server/esbuild/plugins/styled-components-ssr.js +1 -1
- package/dist/server/esbuild/plugins/themes-resolver.js +2 -2
- package/dist/server/fs/cache.js +1 -1
- package/dist/server/fs/fs.js +1 -1
- package/dist/server/fs/utils/remove-l10n-prefix.js +1 -1
- package/dist/server/persistence/file-hashes/repositories/file-hashes-repository.d.ts +1 -2
- package/dist/server/persistence/file-hashes/services/file-hashes-service.d.ts +1 -2
- package/dist/server/plugins/analytics/rudderstack/browser-hooks.js +1 -1
- package/dist/server/plugins/analytics/segment/browser-hooks.js +1 -1
- package/dist/server/plugins/analytics/segment/build-script.js +3 -3
- package/dist/server/plugins/api-docs/loader.d.ts +2 -3
- package/dist/server/plugins/api-docs/options.d.ts +1 -1
- package/dist/server/plugins/api-docs/search/get-ai-search-documents.d.ts +1 -1
- package/dist/server/plugins/api-docs/utils/decorators.js +1 -1
- package/dist/server/plugins/api-functions/index.js +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/entities/entities-write-repository.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/arazzo-entities-extractor.js +1 -1
- package/dist/server/plugins/catalog-entities/types/extractors.d.ts +1 -2
- package/dist/server/plugins/catalog-entities/utils/openapi-component-content-extractor.d.ts +1 -2
- package/dist/server/plugins/catalog-entities/utils/openapi-schema-resolver.d.ts +1 -2
- package/dist/server/plugins/config-parser/format-error.js +4 -4
- package/dist/server/plugins/l10n/index.js +1 -1
- package/dist/server/plugins/lifecycle.js +2 -2
- package/dist/server/plugins/markdown/attribute-resolvers/code-walkthrough/file-chunk-parser.js +2 -2
- package/dist/server/plugins/markdown/attribute-resolvers/resolve-link.js +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/resolve-svg-content.js +1 -1
- package/dist/server/plugins/markdown/compiler.js +1 -1
- package/dist/server/plugins/markdown/errors.js +1 -1
- package/dist/server/plugins/markdown/markdoc/reparse-example-fences.d.ts +7 -0
- package/dist/server/plugins/markdown/markdoc/reparse-example-fences.js +1 -0
- package/dist/server/plugins/markdown/markdoc/resolve-raw-partials.js +1 -1
- package/dist/server/plugins/markdown/runtime-transform.js +1 -1
- package/dist/server/plugins/markdown/search/to-markdown.js +20 -20
- package/dist/server/plugins/mcp/codemode/code-execution-telemetry.d.ts +7 -2
- package/dist/server/plugins/mcp/codemode/code-execution-telemetry.js +1 -1
- package/dist/server/plugins/mcp/codemode/invoke-tool.js +1 -1
- package/dist/server/plugins/mcp/codemode/sandbox/unknown-tool-hint.d.ts +5 -1
- package/dist/server/plugins/mcp/codemode/sandbox/unknown-tool-hint.js +2 -2
- package/dist/server/plugins/mcp/codemode/tools/execute.js +1 -1
- package/dist/server/plugins/mcp/codemode/tools/tool-errors.d.ts +4 -0
- package/dist/server/plugins/mcp/codemode/tools/tool-errors.js +1 -1
- package/dist/server/plugins/mcp/constants.d.ts +1 -0
- package/dist/server/plugins/mcp/constants.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tool-schemas.d.ts +1 -0
- package/dist/server/plugins/mcp/docs-mcp/tool-schemas.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/core/submit-feedback.d.ts +7 -0
- package/dist/server/plugins/mcp/docs-mcp/tools/core/submit-feedback.js +3 -0
- package/dist/server/plugins/mcp/docs-mcp/tools/core/types.d.ts +6 -0
- package/dist/server/plugins/mcp/docs-mcp/tools/index.d.ts +1 -0
- package/dist/server/plugins/mcp/docs-mcp/tools/index.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/openapi/get-endpoint-info.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/openapi/get-endpoints.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/openapi/get-full-api-description.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/tools/openapi/get-security-schemes.js +1 -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 +16 -4
- package/dist/server/plugins/mcp/docs-mcp/tools/openapi/load-api-description.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/utils/api-name-matching.d.ts +6 -1
- package/dist/server/plugins/mcp/docs-mcp/utils/api-name-matching.js +1 -1
- package/dist/server/plugins/mcp/docs-mcp/utils/api-titles.d.ts +8 -0
- package/dist/server/plugins/mcp/docs-mcp/utils/api-titles.js +1 -1
- package/dist/server/plugins/mcp/handlers/docs-mcp-handler.js +1 -1
- package/dist/server/plugins/mcp/index.js +1 -1
- package/dist/server/plugins/nav-utils.js +1 -1
- package/dist/server/plugins/search/llmstxt/is-included-in-llms-txt.d.ts +1 -2
- package/dist/server/providers/database/pagination/after-and-before.js +1 -1
- package/dist/server/providers/database/pagination/utils/decode-cursor.js +1 -1
- package/dist/server/providers/database/pagination/utils/is-base-64.js +1 -1
- package/dist/server/sandbox/constants/host-functions.d.ts +3 -0
- package/dist/server/sandbox/constants/host-functions.js +1 -1
- package/dist/server/sandbox/constants/sandbox.d.ts +10 -0
- package/dist/server/sandbox/constants/sandbox.js +1 -1
- package/dist/server/sandbox/sandbox.js +3 -3
- package/dist/server/sandbox/types.d.ts +3 -0
- package/dist/server/sandbox/utils/read-result.d.ts +8 -0
- package/dist/server/sandbox/utils/read-result.js +1 -0
- package/dist/server/sandbox/utils/setup-host-functions.js +3 -3
- package/dist/server/ssr/index.js +1 -1
- package/dist/server/store.d.ts +1 -1
- package/dist/server/store.js +1 -1
- package/dist/server/tools/notifiers/helpers/privacy/remove-pii-from-url.js +1 -1
- package/dist/server/tools/notifiers/helpers/privacy/remove-pii.js +1 -1
- package/dist/server/types/plugins/common.d.ts +1 -2
- package/dist/server/utils/rbac.js +1 -1
- package/dist/server/web-server/middleware/apiKeyMiddleware.js +1 -1
- package/dist/server/web-server/middleware/catalogAuthMiddleware.js +1 -1
- package/dist/server/web-server/routes/catalog/helpers/create-entity-update-schema.d.ts +1 -1
- package/dist/server/web-server/routes/catalog/helpers/create-entity-update-schema.js +1 -1
- package/dist/server/web-server/routes/feedback.d.ts +3 -1
- package/dist/server/web-server/routes/feedback.js +1 -1
- package/dist/server/web-server/routes/mcp-routes/mcp-oauth.js +1 -1
- package/dist/server/web-server/routes/otel/otel.js +1 -1
- package/dist/server/web-server/utils/legacy-openapi-redirects.js +1 -1
- package/dist/types/global-data.d.ts +1 -2
- package/dist/utils/slugger.js +1 -1
- package/dist/utils/url/sanitize-redirect-pathname.js +1 -1
- package/package.json +6 -6
- package/dist/client/app/hooks/useAnchorPositioning.d.ts +0 -6
- package/dist/client/app/hooks/useAnchorPositioning.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# @redocly/redoc-revel
|
|
2
2
|
|
|
3
|
+
## 0.138.0-next.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4f85f31942f: Added the ejectable `ReplaySecuritySchemeActions` component, which renders inside the security scheme card in the **Try it** console.
|
|
8
|
+
Eject `ReplaySecuritySchemeActions` to offer users a way to obtain a credential and write it into the request.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 7f611536d82: Fixed an issue where the the **Copy**, **Expand all**, and **Collapse all** buttons were missing from AsyncAPI binding panels.
|
|
13
|
+
- 4bc012cafa9: Fixed divider color in button groups, such as the page actions split button, to match custom theme button colors.
|
|
14
|
+
- 215ed7fc7fa: Updated the tooltip arrow to render as a compact 16px pointer with a softly rounded tip.
|
|
15
|
+
- 4bc012cafa9: Fixed the split button so the menu toggle and divider use the same `danger` tone as the main button.
|
|
16
|
+
- 215ed7fc7fa: Fixed an issue where the tooltip arrows failed to render in browsers that didn't support CSS anchor positioning.
|
|
17
|
+
- 8dcd600ebe8: Fixed an issue in the **Try it** console where query parameters with `allowReserved` caused reserved characters such as `/`, `:`, and `,` to be percent-encoded.
|
|
18
|
+
- Updated dependencies [7f611536d82]
|
|
19
|
+
- Updated dependencies [4bc012cafa9]
|
|
20
|
+
- Updated dependencies [215ed7fc7fa]
|
|
21
|
+
- Updated dependencies [4bc012cafa9]
|
|
22
|
+
- Updated dependencies [215ed7fc7fa]
|
|
23
|
+
- Updated dependencies [8dcd600ebe8]
|
|
24
|
+
- Updated dependencies [4f85f31942f]
|
|
25
|
+
- @redocly/api-docs@0.3.0-next.1
|
|
26
|
+
- @redocly/theme@0.70.0-next.1
|
|
27
|
+
|
|
28
|
+
## 0.138.0-next.0
|
|
29
|
+
|
|
30
|
+
### Minor Changes
|
|
31
|
+
|
|
32
|
+
- 0312a50ad9c: Added a `submit-feedback` tool to report documentation issues through the MCP server.
|
|
33
|
+
- e1b53618fb4: Changed the defaults of the `analytics.segment.trackPage`, `analytics.segment.includeTitleInPageCall`, and `analytics.rudderstack.trackPage` options to disable page view tracking by default.
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- 9e9b4914145: Improved the reliability of AI assistant answers during streaming.
|
|
38
|
+
- a4abb7fe95e: Fixed an issue where dropdown menus were cut off at the bottom of the viewport.
|
|
39
|
+
- a4abb7fe95e: Fixed an issue where GraphQL enum pages didn't render the **Referenced in** panel.
|
|
40
|
+
- fef7333d138: Fixed an issue where the `markdoc-example` tag rendered an empty result panel with `renderDemo=true`.
|
|
41
|
+
- 6605daa2732: Updated the Claude Desktop instructions on the `/mcp` page to add the Docs MCP server as a custom connector.
|
|
42
|
+
- e37c4f10360: Fixed an issue where MCP server lookups failed when several API description files shared a title.
|
|
43
|
+
- 2f3a264ac57: Fixed webhook and callback payload schemas in OpenAPI docs to correctly display read-only and write-only fields.
|
|
44
|
+
- 870f2254ffb: Fixed MCP server returning an empty result instead of an error when code execution produced a value too large or invalid for JSON conversion.
|
|
45
|
+
- 26e86082ad6: Fixed the API docs sidebar incorrectly highlighting an adjacent section while content was being lazy-loaded.
|
|
46
|
+
- bb5709ab9be: Updated the **Try it** console's example picker to label unnamed examples as `Default` instead of an internal identifier from the API description.
|
|
47
|
+
- bb5709ab9be: Fixed an issue where the **Try it** console opened on the first request body example in OpenAPI docs instead of the example selected in the request panel.
|
|
48
|
+
- e5306838bd9: Fixed an issue where the theme UI strings remained in the previously selected language after users navigated to a page in a different locale without using the language picker.
|
|
49
|
+
- Updated dependencies [a4abb7fe95e]
|
|
50
|
+
- Updated dependencies [a4abb7fe95e]
|
|
51
|
+
- Updated dependencies [ded8ed1ec72]
|
|
52
|
+
- Updated dependencies [fef7333d138]
|
|
53
|
+
- Updated dependencies [6605daa2732]
|
|
54
|
+
- Updated dependencies [de7f42377f7]
|
|
55
|
+
- Updated dependencies [2f3a264ac57]
|
|
56
|
+
- Updated dependencies [26e86082ad6]
|
|
57
|
+
- Updated dependencies [bb5709ab9be]
|
|
58
|
+
- Updated dependencies [bb5709ab9be]
|
|
59
|
+
- @redocly/theme@0.70.0-next.0
|
|
60
|
+
- @redocly/api-docs@0.3.0-next.0
|
|
61
|
+
- @redocly/realm-asyncapi-sdk@0.16.0-next.0
|
|
62
|
+
|
|
3
63
|
## 0.137.0
|
|
4
64
|
|
|
5
65
|
### Minor Changes
|
|
@@ -48,7 +108,7 @@
|
|
|
48
108
|
- bff49e7278: Fixed an issue in OpenAPI docs where selecting an example in the response panel did not update the request code sample.
|
|
49
109
|
The issue occurred when request and response examples shared the same key.
|
|
50
110
|
- 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)``.
|
|
111
|
+
- ac184788d1: Fixed an issue where angle brackets: `<`, `>` weren't rendered inside inline code within Markdown link text, such as `` [`command <name>`](./page.md) ``.
|
|
52
112
|
- d43a91af69: Fixed MCP code mode tool results and descriptions to match declared signatures.
|
|
53
113
|
- b146b82606: Fixed MCP server code mode crashes for runs that produce no output.
|
|
54
114
|
- e984568ea3: Improved the MCP gateway to ask which credentials the user holds instead of picking the default.
|
|
@@ -305,7 +365,7 @@
|
|
|
305
365
|
- 4925ce16bea: Fixed an issue where a variant whose schema was unavailable, such as a schema restricted by RBAC, displayed as an empty option.
|
|
306
366
|
- bff49e7278f: Fixed an issue in OpenAPI docs where selecting an example in the response panel did not update the request code sample.
|
|
307
367
|
The issue occurred when request and response examples shared the same key.
|
|
308
|
-
- ac184788d19: Fixed an issue where angle brackets: `<`, `>` weren't rendered inside inline code within Markdown link text, such as ``[`command <name>`](./page.md)``.
|
|
368
|
+
- ac184788d19: Fixed an issue where angle brackets: `<`, `>` weren't rendered inside inline code within Markdown link text, such as `` [`command <name>`](./page.md) ``.
|
|
309
369
|
- 67c2f278ff4: Fixed an issue where example descriptions weren't rendered in the request and response samples panels.
|
|
310
370
|
Descriptions render as Markdown below the example selector for all languages and include callback payloads and descriptions pre-parsed by the portal.
|
|
311
371
|
- 4925ce16bea: Fixed an issue where code samples omitted the discriminator value of the selected variant.
|
package/dist/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./server/utils/set-execution-mode.js";import"./cli/utils/node-version-check.js";import
|
|
2
|
+
import"./server/utils/set-execution-mode.js";import"./cli/utils/node-version-check.js";import s from"mri";import*as t from"node:path";import{tmpdir as w}from"node:os";import*as d from"node:fs";import{cliCommandNames as v}from"./constants/common.js";import{initPlugins as j}from"./server/plugins/lifecycle.js";import{loadEnvVariables as E}from"./server/utils/envs/load-env-variables.js";import{PORTAL_VERSION as O}from"./server/version.js";import{logger as n}from"./server/tools/notifiers/logger.js";import{reporter as o}from"./server/tools/notifiers/reporter.js";import{sha as h}from"./server/utils/crypto/sha.js";import{envConfig as y}from"./server/config/env-config.js";import{PACKAGE_NAME as g}from"./config/product-gates.js";import{develop as A}from"./cli/develop.js";import{eject as D}from"./cli/eject/index.js";import{beforeCommand as C}from"./server/utils/lifecycle-hooks.js";import{Store as b}from"./server/store.js";import{build as P}from"./cli/build/index.js";import{fromCurrentDir as x}from"./server/utils/paths.js";import{translationsCliOpts as T}from"./cli/translations/options.js";import{generateTranslations as S}from"./cli/translations/index.js";import{EntitlementsProvider as k}from"./server/entitlements/entitlements-provider.js";import{isValidPlan as I}from"./server/entitlements/is-valid-plan.js";import{stopAllCompilers as V}from"./server/esbuild/esbuild.js";import{copyLibsqlPrebuiltBinary as L}from"./cli/build/libsql/copy-prebuilt-binary.js";import{telemetry as u}from"./cli/telemetry/index.js";import{stats as R}from"./cli/stats/index.js";import{statsCliOpts as M}from"./cli/stats/options.js";const m=process.argv[2];let c;const f={alias:{d:"project-dir",p:"port"},default:{"project-dir":y.REDOCLY_CONTENT_DIR||process.cwd(),outdir:"public"}},N={alias:f.alias,default:{...f.default,plan:"enterprise"}},_={alias:{d:"buildDir"},default:{buildDir:"public"}},F={boolean:["force"],alias:{f:"force",d:"project-dir"},default:{"project-dir":process.cwd()}};process.on("uncaughtException",async function(r){r?.code==="ERR_INVALID_STATE"?console.log("Ignore premature close error"):(n.error("Uncaught exception occurred. Stopping compilers."),await V(),n.error("Exiting due to uncaught exception"),await o.panic(r))});try{m||await o.panicOnContentError("Command not specified.");const r=k.instance();switch(["build","prepare","serve","stats"].includes(m)&&await r.init(),["eject","translate"].includes(m)&&await r.init({developModePlan:"enterprise"}),m){case"develop":case"preview":{const e=s(process.argv.slice(3),N),i=t.resolve(e["project-dir"]),a=encodeURIComponent(h(i)),l=t.join(w(),"redocly-public-"+a);d.existsSync(l)&&(n.verbose("Cleaning temporary output directory..."),d.rmSync(l,{recursive:!0,force:!0}),n.verbose("Temporary output directory cleaned."));const p=e.plan.toLowerCase();I(p)||await o.panicOnContentError(`Invalid --plan argument value '${p}'.`),await r.init({developModePlan:p}),c=new b({contentDir:t.resolve(e["project-dir"]),outdir:l,serverOutDir:x(import.meta.url,"./server/esbuild/cache/server")}),await C(v.DEVELOP,e,c),await A(e,c);break}case"build":case"prepare":{const e=s(process.argv.slice(3),f),i=t.resolve(t.join(e.outdir,"server"));c=new b({contentDir:t.resolve(e["project-dir"]),outdir:t.resolve(e.outdir,"client"),serverOutDir:i}),await C(v.BUILD,e,c),L(i),await P(e,c);break}case"serve":{await E();const e=s(process.argv.slice(3),_),i=t.resolve(e.buildDir);u.sendServeCliCommandExecutedMessage();const a=t.join(i,"server","index.mjs");d.existsSync(a)||await o.panic(`Server not found. Please run \`${g} build\` first (or \`${g} prepare\` for the deprecated command)`),import(a).catch(async l=>{await o.panic("Failed to load server",l)});break}case"eject":{r.canAccessFeature("themeEjecting")||await o.panicOnContentError('The "eject" command is not available for this project');const e=s(process.argv.slice(3),F),{lifecycleContext:{getConfig:i,fs:a}}=await j({outdir:"",contentDir:t.resolve(e["project-dir"]),setGlobalConfig:()=>null});a.dispose(),u.sendCliCommandEjectExecutedMessage([{id:"eject",object:"cliCommand",uri:"urn:redocly:realm:cli:cliCommand:eject",arguments:e}]),await D({...e,config:await i()}),n.clearAllTimeouts();break}case"translate":if(r.canAccessFeature("l10n")){const e=s(process.argv.slice(3),T);u.sendCliCommandTranslateExecutedMessage([{id:"translate",object:"cliCommand",uri:"urn:redocly:realm:cli:cliCommand:translate",arguments:e}]),await S(e)}else await o.panicOnContentError('The "translate" command is not available for this project');break;case"stats":{const e=s(process.argv.slice(3),M);await R(e);break}case"--version":console.log(O);break;default:await o.panicOnContentError(`Unknown command "${m}"`)}}catch(r){n.error("Exiting due to uncaught exception"),await o.panic(r)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as c from"path";import{DEFAULT_THEME_NAME as i,USER_THEME_ALIAS as
|
|
1
|
+
import*as c from"path";import{DEFAULT_THEME_NAME as i,USER_THEME_ALIAS as f}from"../../constants/common.js";import{logger as k}from"../../server/tools/notifiers/logger.js";import{reporter as T}from"../../server/tools/notifiers/reporter.js";import{resolveTheme as A}from"./resolveTheme.js";import{EntitlementsProvider as F}from"../../server/entitlements/entitlements-provider.js";const L=["markdoc/attributes/code-walkthrough-filesets.ts","markdoc/attributes/code-walkthrough-filters.ts","markdoc/components/CodeWalkthrough/**","markdoc/tags/code-step.ts","markdoc/tags/code-toggle.ts","markdoc/tags/code-walkthrough.ts"],m=["./core/**","./markdoc/**/default.*","**/__mocks__/**","**/index.*","**/utils/**/*","**/__tests__/**/*","**/__snapshots__/**/*","**/*.stories.*","**/variables.*",...L],S=["./components/CatalogClassic/CatalogClassicCard.*","./components/ColorModeSwitcher/**","./components/ReplayGate/**","./components/ReplaySecuritySchemeActions/**","./components/ReplayTopBarActions/**","./components/Feedback/**","./components/Filter/**","./components/Footer/**","./components/LanguagePicker/**","./components/Menu/**","./components/Navbar/**","./components/PageNavigation/**","./components/Product/**","./components/Search/**","./components/UserMenu/**","./layouts/RootLayout.*","./layouts/NotFound.*","./layouts/Forbidden.*","./layouts/DocumentationLayoutTop.*","./layouts/DocumentationLayoutBottom.*","./icons/**","./markdoc/**","./ext/**"];async function v(t){const[p,r]=t._,{theme:l,force:u,onSuccess:d,onError:g,onOverride:h,config:E}=t,_=F.instance(),s=c.resolve(t["project-dir"]);let o=l;o||(o=i);const n=await A(s,E.plugins||[],o,r);n||await T.panicOnContentError(`Theme ${o} not found. Skipping eject.`);const e=n?.config.ejectIgnore;e&&!Array.isArray(e)&&k.warn("'ejectIgnore' must be of type Array. Skipping.");const a=await _.getPackageEjectIgnore(),y={force:u,onSuccess:d,onError:g,onOverride:h,onlyFiles:o===i?S:void 0,ignoreFiles:Array.isArray(e)?[...e,...a,...m]:[...a,...m]};return{objectType:p,pathToThemeFolder:n?.pluginDirAbsolutePath,pathToPortalCustomThemeFolder:c.resolve(s,f),componentToEject:r,theme:o,options:y}}export{m as DEFAULT_IGNORED_FILES,S as EJECTABLE_FILES,v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as c from"path";import{lstatSync as m,readdirSync as y,copyFileSync as F,mkdirSync as h}from"fs";import{FsErrors as g}from"../../constants/common.js";import{logger as a}from"../../server/tools/notifiers/logger.js";import{getGlobMatcher as l}from"./glob.js";import{askUserToConfirm as x,askUserToSelectComponents as j}from"./ejectPrompt.js";function f(r){return y(r).flatMap(i=>{const t=c.join(r,i);return m(t).isDirectory()?f(t):t})}function A(r,i=c.resolve("")){const t=(n,o,e)=>{o.forEach(s=>{n[s]={...n[s]||{}},n=n[s]}),n["."]=Array.isArray(n["."])?[...n["."],e]:[e]};return r.reduce((n,o)=>{if(m(c.join(i,o)).isFile()){const{dir:e,base:s}=c.parse(o),d=e?e.split(c.sep).filter(Boolean):[];t(n,d,s)}return n},{})}function u(r,i){return c.normalize(r).replace(c.normalize(i),"").replace(/^[
|
|
1
|
+
import*as c from"path";import{lstatSync as m,readdirSync as y,copyFileSync as F,mkdirSync as h}from"fs";import{FsErrors as g}from"../../constants/common.js";import{logger as a}from"../../server/tools/notifiers/logger.js";import{getGlobMatcher as l}from"./glob.js";import{askUserToConfirm as x,askUserToSelectComponents as j}from"./ejectPrompt.js";function f(r){return y(r).flatMap(i=>{const t=c.join(r,i);return m(t).isDirectory()?f(t):t})}function A(r,i=c.resolve("")){const t=(n,o,e)=>{o.forEach(s=>{n[s]={...n[s]||{}},n=n[s]}),n["."]=Array.isArray(n["."])?[...n["."],e]:[e]};return r.reduce((n,o)=>{if(m(c.join(i,o)).isFile()){const{dir:e,base:s}=c.parse(o),d=e?e.split(c.sep).filter(Boolean):[];t(n,d,s)}return n},{})}function u(r,i){return c.normalize(r).replace(c.normalize(i),"").replace(/^[/\\]+/,"")}function C(r,i={}){let t=[];const{ignoreFilePatterns:n,onlyFilePatterns:o}=i;try{if(t=f(r).map(e=>u(e,r)),o){const e=l(o);t=t.filter(s=>e(s))}if(n){const e=l(n);return t.filter(s=>!e(s))}return t}catch(e){if(e.code===g.NotExist)return t;throw e}}function T(r,i){return r.filter(t=>i.includes(t))}function v(r,i,t){const n=u(t,i),o=c.resolve(i,n),e=c.resolve(r,n);return h(c.dirname(e),{recursive:!0}),F(o,e),e}function p(r,i,t,n){const o=a.startTiming(),e=v(t,i,r),s=`\u{1F4E6} Component ${r} has been ejected into %rp`;n?.onSuccess?.(s),a.infoTime(o,s,e)}async function S({componentToCopy:r,ejectedFiles:i=[],copyFrom:t,copyTo:n,options:o={}}){if(i.includes(r)&&!o.force){const e=`File [ ${r} ] will be overwritten. Are you sure ?`;return o&&o.onOverride?o.onOverride(e):await x(e)?p(r,t,n):a.info(`Skipped [ ${r} ] component ejection.`)}return p(r,t,n,o)}async function $({componentList:r,ejectedComponents:i,pathToThemeFolder:t,pathToPortalCustomThemeFolder:n,options:o}){const e=await j(r,t);for(const s of e)await S({componentToCopy:s,ejectedFiles:i,copyFrom:t,copyTo:n,options:o})}export{S as copyComponent,p as copyComponentAndReport,$ as copyComponentsFromList,v as copyThemeComponent,T as getEjectedFiles,C as getThemeFiles,u as stripComponentThemePath,A as toFileTree};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{appendFileSync as P,mkdirSync as p,writeFileSync as a}from"fs";import e from"path";import{CUSTOM_MARKDOC_TAGS_PATH as d,CUSTOM_MARKDOC_OPTIONS_PATH as l
|
|
1
|
+
import{appendFileSync as P,mkdirSync as p,writeFileSync as a}from"fs";import e from"path";import{CUSTOM_MARKDOC_TAGS_PATH as d,CUSTOM_MARKDOC_OPTIONS_PATH as l,USER_THEME_ALIAS as C}from"../../constants/common.js";import{logger as T}from"../../server/tools/notifiers/logger.js";import{getComponentTemplate as O}from"./get-component-template.js";import{getComponentsFileTemplate as D}from"./get-components-file-template.js";import{getSchemaTemplate as E}from"./get-schema-template.js";import{isValidFilePath as f}from"./is-valid-file-path.js";import{capitalize as F}from"./string-utils.js";async function k(h,o,s){const t=F(o),n=e.resolve(h,C),c=e.resolve(n,l,d),i=e.resolve(n,t),S=e.resolve(n,l,"components.ts"),m=e.resolve(i,`${t}.tsx`),r=e.resolve(c,`${o}.markdoc.ts`),g=!await f(m,s),u=!await f(r,s);if((g||u)&&!s)return;const v=O(t),_=E(o),A=D(t);p(i,{recursive:!0}),p(c,{recursive:!0}),a(r,_),T.success(`Generated schema: file://${r}`),a(m,v),T.success(`Generated component: file://${m}`),P(S,A)}export{k as generateTag};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{logger as a}from"../../server/tools/notifiers/logger.js";import{reporter as n}from"../../server/tools/notifiers/reporter.js";import{generateTag as i}from"./generate-tag.js";import{normalizeTagName as c}from"./normalize-tag-name.js";const p={Tag:"tag"},g={boolean:["force"],alias:{f:"force",d:"contentDir"},default:{contentDir:process.cwd()}};async function l(t){const[e,r]=t._;try{switch(e){case p.Tag:if(!r)return n.panicOnContentError(`${e} "name" is not provided.`);const o=await c(r);return i(t.contentDir,o,t.force)
|
|
1
|
+
import{logger as a}from"../../server/tools/notifiers/logger.js";import{reporter as n}from"../../server/tools/notifiers/reporter.js";import{generateTag as i}from"./generate-tag.js";import{normalizeTagName as c}from"./normalize-tag-name.js";const p={Tag:"tag"},g={boolean:["force"],alias:{f:"force",d:"contentDir"},default:{contentDir:process.cwd()}};async function l(t){const[e,r]=t._;try{switch(e){case p.Tag:{if(!r)return n.panicOnContentError(`${e} "name" is not provided.`);const o=await c(r);return i(t.contentDir,o,t.force)}case null:case void 0:await n.panicOnContentError('generation "type" is not provided.');break;default:await n.panicOnContentError(`Unsupported type: "${e}".`)}}catch{return a.warn(`${e} was not created.`)}}export{l as generate,g as generateCliOptions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{BrowserRouter as o}from"react-router";import{ThemeDataContext as n,SearchSessionProvider as i}from"@redocly/theme/core/contexts";import u from"@redocly/theme/core/templates/Markdown";import{
|
|
1
|
+
import e from"react";import{BrowserRouter as o}from"react-router";import{ThemeDataContext as n,SearchSessionProvider as i}from"@redocly/theme/core/contexts";import u from"@redocly/theme/core/templates/Markdown";import{useBreadcrumbs as m,useBanner as d,useCatalogClassic as l,useCurrentProduct as c,useGlobalData as p,useI18n as g,useI18nConfig as h,useL10n as f,useL10nConfig as T,usePageData as b,usePageSharedData as C,usePageVersions as k,usePreloadHistory as v,useProducts as w,useUserMenu as y,useSubmitFeedback as P,useTranslate as S,useTranslationKeys as D,useSidebarSiblingsData as $,usePageProps as E,useUserTeams as I,useMarkdownText as L,useMarkdocRenderer as M,useCodeHighlight as x,useLoadAndNavigate as F,useCatalog as H,useCatalogSort as R,useCatalogSearch as A,useFetchCatalogEntities as B,useFetchCatalogEntitiesRelations as G,useTelemetry as r,useMcpData as O,useFetchCatalogEntityRevisions as U}from"./app/hooks";import{Link as K}from"./app/Link";import{useFacetQuery as N,useSearch as Q,useAiSearch as V}from"./app/search";import{useSidebarItems as j}from"./app/Sidebar/useSidebarItems";import{PageDataContext as q}from"./providers/page-data/PageDataContext";const s={Template:({pageProps:a,children:t})=>e.createElement(u,{pageProps:{...a,metadata:{...a.metadata,markdoc:{tagList:[]}}}},t),templateId:"markdown",isPublic:!0,props:{seo:{title:"Test"},ast:{$$mdtype:"Tag",name:"div",children:[{$$mdtype:"Tag",name:"Heading",attributes:{id:"github-flavored-markdown",level:1},children:["GitHub-flavored markdown"]},{$$mdtype:"Tag",name:"p",attributes:{},children:["These exercises assume you have",{$$mdtype:"Tag",name:"a",attributes:{href:"https://docs.redoc.ly/"},children:["basic markdown knowledge"]},"."]},{$$mdtype:"Tag",name:"Heading",attributes:{id:"create-a-new-plain-markdown-page",level:2},children:["Create a new plain markdown page"]}]},lastModified:new Date("2022-01-01").toISOString()},slug:"",userData:{isAuthenticated:!1,name:"test name",picture:""},sidebar:null,sharedData:{},sharedDataIds:{}},z={useBreadcrumbs:m,useBanner:d,useCatalog:H,useCatalogSort:R,useCatalogSearch:A,useFetchCatalogEntities:B,useFetchCatalogEntitiesRelations:G,useFetchCatalogEntityRevisions:U,useCatalogClassic:l,useCurrentProduct:c,useGlobalData:p,useSearch:Q,useAiSearch:V,useFacetQuery:N,useI18n:g,useI18nConfig:h,useL10n:f,useL10nConfig:T,usePageData:b,usePageSharedData:C,usePageVersions:k,usePreloadHistory:v,useProducts:w,useUserMenu:y,useSidebarItems:j,useSidebarSiblingsData:$,useSubmitFeedback:P,useTranslate:S,useTranslationKeys:D,useUserTeams:I,usePageProps:E,useMarkdownText:L,useMarkdocRenderer:M,useCodeHighlight:x,useLoadAndNavigate:F,useTelemetry:r,useOtelTelemetry:r,useMcpData:O},J={LinkComponent:K},W={hooks:z,components:J,config:{}};function oe({children:a,customPageData:t}){return e.createElement(o,null,e.createElement(i,null,e.createElement(q.Provider,{value:{...s,...t,props:{...s.props,...t?.props}}},e.createElement(n.Provider,{value:W},a))))}export{oe as TestProvider};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** @ts-
|
|
1
|
+
/** @ts-expect-error autogenerated module, @see src/server/esbuild/plugins/api-request-handlers-resolver.ts **/
|
|
2
2
|
export { requestHandlers } from '@portal/api-request-handlers';
|
|
3
3
|
//# sourceMappingURL=api-request-handlers-entry.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { UseCatalogResponse } from '@redocly/theme/core/types';
|
|
2
|
-
import type { UseCatalogProps } from '@redocly/theme/core/types';
|
|
1
|
+
import type { UseCatalogResponse, UseCatalogProps } from '@redocly/theme/core/types';
|
|
3
2
|
export declare function useCatalog(props?: UseCatalogProps): UseCatalogResponse;
|
|
4
3
|
//# sourceMappingURL=useCatalog.d.ts.map
|
|
@@ -31,5 +31,4 @@ export { useCodeHighlight } from './codeHighlight/useCodeHighlight';
|
|
|
31
31
|
export { useLoadAndNavigate } from './useLoadAndNavigate';
|
|
32
32
|
export { useUserClaims } from './useUserClaims';
|
|
33
33
|
export { useMcpData } from './useMcpData';
|
|
34
|
-
export { useAnchorPositioning } from './useAnchorPositioning';
|
|
35
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"../../providers/page-data/hooks";import{usePageSharedData as t}from"../../providers/hooks";import{useLoginUrl as a}from"./useLoginUrl";import{useGlobalData as f}from"../useGlobalData";import{useL10n as p}from"../l10n/hooks";import{useL10nConfig as n}from"./useL10nConfig";import{useL10n as l}from"../l10n/hooks";import{useTranslate as C}from"../l10n/hooks";import{useTranslationKeys as
|
|
1
|
+
export*from"../../providers/page-data/hooks";import{usePageSharedData as t}from"../../providers/hooks";import{useLoginUrl as a}from"./useLoginUrl";import{useGlobalData as f}from"../useGlobalData";import{useL10n as p}from"../l10n/hooks";import{useL10nConfig as n}from"./useL10nConfig";import{useL10n as l}from"../l10n/hooks";import{useTranslate as C}from"../l10n/hooks";import{useTranslationKeys as c}from"../l10n/hooks";import{useL10nConfig as L}from"./useL10nConfig";export*from"./useCurrentUserTeams";export*from"./products";import{usePageVersions as F}from"../../providers/page-data/hooks";import{useUserMenu as S}from"../UserMenu/useUserMenu";import{useSubmitFeedback as k}from"../Feedback/useSubmitFeedback";import{usePreloadHistory as E}from"../usePreloadHistory";import{useBreadcrumbs as R}from"../Sidebar/useBreadcrumbs";import{useBanner as B}from"./useBanner";import{useCatalog as I}from"./catalog/useCatalog";import{useCatalogSort as A}from"./catalog/useCatalogSort";import{useCatalogSearch as K}from"./catalog/useCatalogSearch";import{useFetchCatalogEntities as V}from"./catalog/useFetchCatalogEntities";import{useFetchCatalogEntitiesRelations as q}from"./catalog/useFetchCatalogEntitiesRelations";import{useFetchCatalogEntityRevisions as J}from"./catalog/useFetchCatalogEntityRevisions";import{useCatalogClassic as Q}from"./catalog/useCatalogClassic";import{useTelemetry as X}from"./useTelemetry";import{useUserTeams as Z}from"./useUserTeams";import{useMarkdownText as $}from"./markdown/useMarkdownText";import{useMarkdocRenderer as oe}from"./markdown/useMarkdocRenderer";import{useCodeHighlight as te}from"./codeHighlight/useCodeHighlight";import{useLoadAndNavigate as ae}from"./useLoadAndNavigate";import{useUserClaims as fe}from"./useUserClaims";import{useMcpData as pe}from"./useMcpData";export{B as useBanner,R as useBreadcrumbs,I as useCatalog,Q as useCatalogClassic,K as useCatalogSearch,A as useCatalogSort,te as useCodeHighlight,V as useFetchCatalogEntities,q as useFetchCatalogEntitiesRelations,J as useFetchCatalogEntityRevisions,f as useGlobalData,p as useI18n,n as useI18nConfig,l as useL10n,L as useL10nConfig,ae as useLoadAndNavigate,a as useLoginUrl,oe as useMarkdocRenderer,$ as useMarkdownText,pe as useMcpData,t as usePageSharedData,F as usePageVersions,E as usePreloadHistory,k as useSubmitFeedback,X as useTelemetry,C as useTranslate,c as useTranslationKeys,fe as useUserClaims,S as useUserMenu,Z as useUserTeams};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"i18next";import{useSyncExternalStore as g}from"react";const t=n=>(e.on("languageChanged",n),()=>e.off("languageChanged",n)),a=()=>e.language,u=()=>{const n=g(t,a,a);return{changeLanguage:e.changeLanguage,lang:n}};export{u as useL10n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"i18next";import{useEffect as
|
|
1
|
+
import e from"i18next";import{useEffect as r}from"react";import{DEFAULT_LOCALE_PLACEHOLDER as s}from"../../../constants/common";import{defaultTranslationImports as i}from"../../../constants/l10n/default-translations";import{useL10nConfig as l}from"../hooks";const d=()=>{const{currentLocale:t}=l();r(()=>{const o=!t||t===s?"en":t;document.documentElement.setAttribute("lang",o),t&&e.language!==t&&e.changeLanguage(t)},[t])},p=async t=>{if(!t)return;const o=new Set(e.languages);for(const n of Object.keys(t.translations)){const a=await i[n]?.()||{};e.addResourceBundle(n,"translation",{...a,...t.translations[n]?.translation??{}},!0,!0),o.delete(n)}for(const n of o)e.removeResourceBundle(n,"translation")};export{p as updateTranslations,d as useL10n};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { SSEMessage } from '../../types/ai-search';
|
|
2
2
|
/**
|
|
3
|
-
* Parses SSE
|
|
3
|
+
* Parses SSE lines, keeping the trailing incomplete line buffered between network chunks
|
|
4
4
|
*/
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function createSSEParser(): {
|
|
6
|
+
push(chunk: string): SSEMessage[];
|
|
7
|
+
flush(): SSEMessage[];
|
|
8
|
+
};
|
|
6
9
|
/**
|
|
7
10
|
* Creates an async generator that reads SSE messages from a ReadableStream
|
|
8
11
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{SSE_EVENTS as
|
|
2
|
-
`);
|
|
1
|
+
import{SSE_EVENTS as a,SSE_DATA_PREFIX as c,SSE_EVENT_PREFIX as f,SSE_ERROR_EVENT_NAME as l}from"../../constants";const p="Stream error";function S(e){return Object.values(a).includes(e)}function E(){let e="",o="";const u=s=>{if(s==="")return o="",null;if(s.startsWith(f))return o=s.slice(f.length).trim(),null;if(!s.startsWith(c))return null;const r=s.slice(c.length);if(!r)return null;try{const n=JSON.parse(r);if(o===l){const t=typeof n.message=="string"?n.message:p;return{type:a.ERROR,error:{message:t}}}return d(n)}catch{return console.warn(`[redocly-ai-search] Skipping malformed SSE data line: ${r}`),null}},i=s=>{const r=[];for(const n of s){const t=u(n);t&&r.push(t)}return r};return{push(s){e+=s;const r=e.split(`
|
|
2
|
+
`);return e=r.pop()??"",i(r)},flush(){const s=e;return e="",s?i([s]):[]}}}function d(e){return e.type&&typeof e.type=="string"&&S(e.type)?e:"messageId"in e&&typeof e.messageId=="string"?{type:a.MESSAGE_ID,messageId:e.messageId}:"sources"in e&&Array.isArray(e.sources)?{type:a.SOURCES,sources:e.sources}:"answer"in e&&typeof e.answer=="string"?{type:a.ANSWER,answer:e.answer}:null}async function*m(e,o){const u=e.getReader(),i=new TextDecoder,s=E();try{for(;!o?.aborted;){const{value:r,done:n}=await u.read();if(o?.aborted)break;if(n){for(const t of[...s.push(i.decode()),...s.flush()])yield t;break}for(const t of s.push(i.decode(r,{stream:!0})))yield t}}finally{u.releaseLock()}}export{E as createSSEParser,m as streamSSEMessages};
|
|
@@ -4,6 +4,14 @@ import { AiSearchError } from '@redocly/theme/core/constants';
|
|
|
4
4
|
* Following the SSE specification: https://html.spec.whatwg.org/multipage/server-sent-events.html
|
|
5
5
|
*/
|
|
6
6
|
export declare const SSE_DATA_PREFIX = "data: ";
|
|
7
|
+
/**
|
|
8
|
+
* SSE protocol prefix that names the event a following `data:` line belongs to
|
|
9
|
+
*/
|
|
10
|
+
export declare const SSE_EVENT_PREFIX = "event: ";
|
|
11
|
+
/**
|
|
12
|
+
* Event name the API uses to frame a stream failure, see the `SseStream` decorator
|
|
13
|
+
*/
|
|
14
|
+
export declare const SSE_ERROR_EVENT_NAME = "error";
|
|
7
15
|
/**
|
|
8
16
|
* Maximum number of resources to display in the search results
|
|
9
17
|
* Limits UI clutter while providing sufficient context
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{AiSearchError as
|
|
1
|
+
import{AiSearchError as E}from"@redocly/theme/core/constants";const t="data: ",r="event: ",S="error",e=5,R={"Content-Type":"application/json"},_={MESSAGE_ID:"messageId",SOURCES:"sources",ANSWER:"answer",TOOL_CALL:"toolCall",TOOL_RESULT:"toolResult",ERROR:"error"},n={401:E.Unauthorized,403:E.Forbidden};export{R as AI_SEARCH_REQUEST_HEADERS,n as HTTP_ERROR_MAP,e as MAX_DISPLAYED_RESOURCES,t as SSE_DATA_PREFIX,S as SSE_ERROR_EVENT_NAME,_ as SSE_EVENTS,r as SSE_EVENT_PREFIX};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** @ts-
|
|
1
|
+
/** @ts-expect-error autogenerated module, @see src/server/esbuild/plugins/mcp-tool-handlers-resolver.ts **/
|
|
2
2
|
export { mcpToolHandlers } from '@portal/mcp-tool-handlers';
|
|
3
3
|
//# sourceMappingURL=mcp-tool-handlers-entry.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** @ts-
|
|
1
|
+
/** @ts-expect-error autogenerated module, @see src/server/esbuild/plugins/api-request-handlers-resolver.ts **/
|
|
2
2
|
export { middleware } from '@portal/middleware';
|
|
3
3
|
//# sourceMappingURL=middleware-entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{ThemeDataContext as m,SearchSessionProvider as d}from"@redocly/theme/core/contexts";import{
|
|
1
|
+
import e from"react";import{ThemeDataContext as m,SearchSessionProvider as d}from"@redocly/theme/core/contexts";import{useBreadcrumbs as g,useBanner as p,useCatalogClassic as b,useCurrentProduct as f,useGlobalData as s,useI18n as C,useI18nConfig as h,useL10n as S,useL10nConfig as P,usePageData as r,usePageSharedData as T,usePageVersions as D,usePreloadHistory as M,useProducts as k,useUserMenu as v,useSubmitFeedback as F,useTranslate as y,useTranslationKeys as E,useSidebarSiblingsData as L,usePageProps as R,useUserTeams as O,useMarkdownText as w,useMarkdocRenderer as x,useCodeHighlight as A,useLoadAndNavigate as I,useCatalog as j,useCatalogSort as B,useCatalogSearch as H,useFetchCatalogEntities as N,useFetchCatalogEntitiesRelations as U,useFetchCatalogEntityRevisions as _,useTelemetry as n,useMcpData as G}from"../../app/hooks";import{Link as K}from"../../app/Link";import{useFacetQuery as Q,useSearch as V,useAiSearch as W}from"../../app/search";import{useSidebarItems as q}from"../../app/Sidebar/useSidebarItems";import{deepMerge as z}from"../../../utils/object/deep-merge";import{allowlistObject as J}from"../../../utils/object/allowlist-object";const X=["title","description","seo","sidebar","excludeFromSearch","template","redirects","rbac","metadata","slug","codeSnippet","breadcrumbs","markdown","seo","navbar","footer","colorMode","feedback","navigation"],Y={useBreadcrumbs:g,useBanner:p,useCatalog:j,useCatalogSort:B,useCatalogSearch:H,useFetchCatalogEntities:N,useFetchCatalogEntitiesRelations:U,useFetchCatalogEntityRevisions:_,useCatalogClassic:b,useCurrentProduct:f,useGlobalData:s,useSearch:V,useAiSearch:W,useFacetQuery:Q,useI18n:C,useI18nConfig:h,useL10n:S,useL10nConfig:P,usePageData:r,usePageSharedData:T,usePageVersions:D,usePreloadHistory:M,useProducts:k,useUserMenu:v,useSidebarItems:q,useSidebarSiblingsData:L,useSubmitFeedback:F,useTranslate:y,useTranslationKeys:E,useUserTeams:O,usePageProps:R,useMarkdownText:w,useMarkdocRenderer:x,useCodeHighlight:A,useLoadAndNavigate:I,useTelemetry:n,useOtelTelemetry:n,useMcpData:G},Z={LinkComponent:K};function ue({children:u}){const{props:t}=r()||{},a=s(),o=e.useMemo(()=>a||{},[a]),i=e.useMemo(()=>{const l=J(t?.frontmatter||{},X);return z(o,l)},[o,t?.frontmatter]),c={hooks:Y,components:Z,config:i};return e.createElement(d,null,e.createElement(m.Provider,{value:c},u))}export{ue as ThemeDataProvider};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** @ts-
|
|
1
|
+
/** @ts-expect-error autogenerated module, @see src/server/esbuild/plugins/server-props-resolver.ts **/
|
|
2
2
|
export { serverProps } from '@portal/server-props';
|
|
3
3
|
//# sourceMappingURL=server-props-entry.d.ts.map
|