@djangocfg/ui-tools 2.1.335 → 2.1.336
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/README.md +68 -2
- package/dist/ChatRoot-IIYQEWUU.mjs +5 -0
- package/dist/ChatRoot-IIYQEWUU.mjs.map +1 -0
- package/dist/ChatRoot-PNNGQCYF.css +7 -0
- package/dist/ChatRoot-PNNGQCYF.css.map +1 -0
- package/dist/ChatRoot-UUKTYM4N.cjs +14 -0
- package/dist/ChatRoot-UUKTYM4N.cjs.map +1 -0
- package/dist/{CronScheduler.client-3O3VU4CI.mjs → CronScheduler.client-DLMXCPAJ.mjs} +4 -4
- package/dist/{CronScheduler.client-3O3VU4CI.mjs.map → CronScheduler.client-DLMXCPAJ.mjs.map} +1 -1
- package/dist/{CronScheduler.client-A4GO6YBY.cjs → CronScheduler.client-WEJF4PWQ.cjs} +14 -14
- package/dist/{CronScheduler.client-A4GO6YBY.cjs.map → CronScheduler.client-WEJF4PWQ.cjs.map} +1 -1
- package/dist/{DocsLayout-XLDB6CJ2.cjs → DocsLayout-N5ZJZPBY.cjs} +200 -199
- package/dist/DocsLayout-N5ZJZPBY.cjs.map +1 -0
- package/dist/{DocsLayout-CTJINVBM.mjs → DocsLayout-VFPPNKSQ.mjs} +7 -6
- package/dist/DocsLayout-VFPPNKSQ.mjs.map +1 -0
- package/dist/JsonSchemaForm-DD7CLRIG.cjs +13 -0
- package/dist/{JsonSchemaForm-6WMS4CIY.cjs.map → JsonSchemaForm-DD7CLRIG.cjs.map} +1 -1
- package/dist/JsonSchemaForm-XKUIVELK.mjs +4 -0
- package/dist/{JsonSchemaForm-KX4JT3M4.mjs.map → JsonSchemaForm-XKUIVELK.mjs.map} +1 -1
- package/dist/JsonTree-55625VVH.mjs +5 -0
- package/dist/{JsonTree-F27RMYSI.cjs.map → JsonTree-55625VVH.mjs.map} +1 -1
- package/dist/JsonTree-DCM5QGWF.cjs +11 -0
- package/dist/{JsonTree-QTJYSHCV.mjs.map → JsonTree-DCM5QGWF.cjs.map} +1 -1
- package/dist/{LottiePlayer.client-6WVWDO75.cjs → LottiePlayer.client-2S7ISJ2S.cjs} +6 -6
- package/dist/{LottiePlayer.client-6WVWDO75.cjs.map → LottiePlayer.client-2S7ISJ2S.cjs.map} +1 -1
- package/dist/{LottiePlayer.client-B4I6WNZM.mjs → LottiePlayer.client-5LDSSJWS.mjs} +4 -4
- package/dist/{LottiePlayer.client-B4I6WNZM.mjs.map → LottiePlayer.client-5LDSSJWS.mjs.map} +1 -1
- package/dist/{MapContainer-RYG4HPH4.cjs → MapContainer-76YL2JXL.cjs} +8 -8
- package/dist/{MapContainer-RYG4HPH4.cjs.map → MapContainer-76YL2JXL.cjs.map} +1 -1
- package/dist/{MapContainer-GXQLP5WY.mjs → MapContainer-7HXBI3OH.mjs} +3 -3
- package/dist/{MapContainer-GXQLP5WY.mjs.map → MapContainer-7HXBI3OH.mjs.map} +1 -1
- package/dist/{Mermaid.client-SXRRI2YW.mjs → Mermaid.client-NL4SVR7F.mjs} +4 -4
- package/dist/{Mermaid.client-SXRRI2YW.mjs.map → Mermaid.client-NL4SVR7F.mjs.map} +1 -1
- package/dist/{Mermaid.client-W76R5AKJ.cjs → Mermaid.client-NNTI6DFX.cjs} +26 -26
- package/dist/{Mermaid.client-W76R5AKJ.cjs.map → Mermaid.client-NNTI6DFX.cjs.map} +1 -1
- package/dist/Player-BRV7XTWR.mjs +4 -0
- package/dist/{Player-M3GC3VPE.mjs.map → Player-BRV7XTWR.mjs.map} +1 -1
- package/dist/Player-PM7F7DD7.cjs +13 -0
- package/dist/{Player-ZL2X5LGG.cjs.map → Player-PM7F7DD7.cjs.map} +1 -1
- package/dist/{PrettyCode.client-RPDIE5CH.cjs → PrettyCode.client-KOHDVPPN.cjs} +13 -13
- package/dist/{PrettyCode.client-RPDIE5CH.cjs.map → PrettyCode.client-KOHDVPPN.cjs.map} +1 -1
- package/dist/{PrettyCode.client-SPMTQEG4.mjs → PrettyCode.client-ZGYGKE7G.mjs} +4 -4
- package/dist/{PrettyCode.client-SPMTQEG4.mjs.map → PrettyCode.client-ZGYGKE7G.mjs.map} +1 -1
- package/dist/TreeRoot-N72OYKXU.cjs +19 -0
- package/dist/{TreeRoot-A3J65L6F.mjs.map → TreeRoot-N72OYKXU.cjs.map} +1 -1
- package/dist/TreeRoot-VGAIXCUA.mjs +4 -0
- package/dist/{TreeRoot-DSK5JILT.cjs.map → TreeRoot-VGAIXCUA.mjs.map} +1 -1
- package/dist/chunk-2ZLKZ5VR.mjs +631 -0
- package/dist/chunk-2ZLKZ5VR.mjs.map +1 -0
- package/dist/{chunk-LFWQ36LJ.mjs → chunk-5G5YBFS6.mjs} +4 -4
- package/dist/{chunk-LFWQ36LJ.mjs.map → chunk-5G5YBFS6.mjs.map} +1 -1
- package/dist/{chunk-IHAY6FO6.cjs → chunk-5I5QNGUG.cjs} +17 -17
- package/dist/{chunk-IHAY6FO6.cjs.map → chunk-5I5QNGUG.cjs.map} +1 -1
- package/dist/{chunk-F2CMIIOH.cjs → chunk-76NNDZH6.cjs} +42 -42
- package/dist/{chunk-F2CMIIOH.cjs.map → chunk-76NNDZH6.cjs.map} +1 -1
- package/dist/chunk-B5AWZOHJ.cjs +649 -0
- package/dist/chunk-B5AWZOHJ.cjs.map +1 -0
- package/dist/{chunk-KR6B3LVY.mjs → chunk-B6IR5KSC.mjs} +3 -3
- package/dist/{chunk-KR6B3LVY.mjs.map → chunk-B6IR5KSC.mjs.map} +1 -1
- package/dist/{chunk-5LBDYFWH.mjs → chunk-C6GXVH5J.mjs} +3 -3
- package/dist/{chunk-5LBDYFWH.mjs.map → chunk-C6GXVH5J.mjs.map} +1 -1
- package/dist/{chunk-NRKD4F5X.cjs → chunk-FEN5S772.cjs} +36 -36
- package/dist/{chunk-NRKD4F5X.cjs.map → chunk-FEN5S772.cjs.map} +1 -1
- package/dist/{chunk-2SMCH62O.cjs → chunk-FP2RLYQZ.cjs} +11 -11
- package/dist/{chunk-2SMCH62O.cjs.map → chunk-FP2RLYQZ.cjs.map} +1 -1
- package/dist/{chunk-MOME6KYD.mjs → chunk-G5IEC7SR.mjs} +3 -3
- package/dist/{chunk-MOME6KYD.mjs.map → chunk-G5IEC7SR.mjs.map} +1 -1
- package/dist/{chunk-SE5IERVH.mjs → chunk-GYIO7W7M.mjs} +3 -3
- package/dist/{chunk-SE5IERVH.mjs.map → chunk-GYIO7W7M.mjs.map} +1 -1
- package/dist/{chunk-3Z3A7FHA.cjs → chunk-IEEAENLX.cjs} +48 -48
- package/dist/{chunk-3Z3A7FHA.cjs.map → chunk-IEEAENLX.cjs.map} +1 -1
- package/dist/{chunk-DFTVB66S.cjs → chunk-KNDLV4PI.cjs} +85 -85
- package/dist/{chunk-DFTVB66S.cjs.map → chunk-KNDLV4PI.cjs.map} +1 -1
- package/dist/{chunk-SSUOENAZ.mjs → chunk-KNEQRUBA.mjs} +3 -3
- package/dist/{chunk-SSUOENAZ.mjs.map → chunk-KNEQRUBA.mjs.map} +1 -1
- package/dist/chunk-KRETIZU6.mjs +2218 -0
- package/dist/chunk-KRETIZU6.mjs.map +1 -0
- package/dist/{chunk-CGILA3WO.mjs → chunk-N2XQF2OL.mjs} +5 -3
- package/dist/{chunk-CGILA3WO.mjs.map → chunk-N2XQF2OL.mjs.map} +1 -1
- package/dist/{chunk-EUADAUBQ.mjs → chunk-N4MZYNR4.mjs} +4 -4
- package/dist/{chunk-EUADAUBQ.mjs.map → chunk-N4MZYNR4.mjs.map} +1 -1
- package/dist/chunk-NRXYYO5V.cjs +2257 -0
- package/dist/chunk-NRXYYO5V.cjs.map +1 -0
- package/dist/{chunk-GGKGH5PM.mjs → chunk-OBRSGM64.mjs} +4 -4
- package/dist/{chunk-GGKGH5PM.mjs.map → chunk-OBRSGM64.mjs.map} +1 -1
- package/dist/{chunk-6JTB2X72.mjs → chunk-ODO4GMW7.mjs} +3 -3
- package/dist/{chunk-6JTB2X72.mjs.map → chunk-ODO4GMW7.mjs.map} +1 -1
- package/dist/{chunk-WGEGR3DF.cjs → chunk-OLISEQHS.cjs} +5 -2
- package/dist/{chunk-WGEGR3DF.cjs.map → chunk-OLISEQHS.cjs.map} +1 -1
- package/dist/{chunk-PZKAH7WQ.mjs → chunk-PVAX67JG.mjs} +3 -3
- package/dist/{chunk-PZKAH7WQ.mjs.map → chunk-PVAX67JG.mjs.map} +1 -1
- package/dist/{chunk-PRPG2T2E.cjs → chunk-QJ6GTUCO.cjs} +6 -6
- package/dist/{chunk-PRPG2T2E.cjs.map → chunk-QJ6GTUCO.cjs.map} +1 -1
- package/dist/chunk-QW4RBGHN.cjs +961 -0
- package/dist/chunk-QW4RBGHN.cjs.map +1 -0
- package/dist/{chunk-33AMWFBZ.cjs → chunk-SGP7V2UW.cjs} +15 -15
- package/dist/{chunk-33AMWFBZ.cjs.map → chunk-SGP7V2UW.cjs.map} +1 -1
- package/dist/{chunk-FX2QFYWF.mjs → chunk-VWQ5WOIL.mjs} +3 -3
- package/dist/{chunk-FX2QFYWF.mjs.map → chunk-VWQ5WOIL.mjs.map} +1 -1
- package/dist/{chunk-ZLQHUZDU.cjs → chunk-YDPDTOSP.cjs} +139 -139
- package/dist/{chunk-ZLQHUZDU.cjs.map → chunk-YDPDTOSP.cjs.map} +1 -1
- package/dist/{chunk-77HQWEQ6.cjs → chunk-YW5IVWHQ.cjs} +33 -33
- package/dist/{chunk-77HQWEQ6.cjs.map → chunk-YW5IVWHQ.cjs.map} +1 -1
- package/dist/{chunk-YXBOAGIM.cjs → chunk-YXZ6GU7H.cjs} +7 -7
- package/dist/{chunk-YXBOAGIM.cjs.map → chunk-YXZ6GU7H.cjs.map} +1 -1
- package/dist/{chunk-62Y65TGK.mjs → chunk-ZUFTH5IR.mjs} +8 -631
- package/dist/chunk-ZUFTH5IR.mjs.map +1 -0
- package/dist/components-EHOGXATG.cjs +22 -0
- package/dist/{components-5UXYNAKR.cjs.map → components-EHOGXATG.cjs.map} +1 -1
- package/dist/components-MQ6DR7TX.cjs +26 -0
- package/dist/{components-CFXOEVPN.mjs.map → components-MQ6DR7TX.cjs.map} +1 -1
- package/dist/components-XRX7QGLB.mjs +5 -0
- package/dist/{components-WYEZL5TE.cjs.map → components-XRX7QGLB.mjs.map} +1 -1
- package/dist/components-YATKRWLH.mjs +5 -0
- package/dist/{components-ZAGG2PBO.mjs.map → components-YATKRWLH.mjs.map} +1 -1
- package/dist/file-icon/index.cjs +6 -6
- package/dist/file-icon/index.mjs +1 -1
- package/dist/index.cjs +735 -215
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +972 -39
- package/dist/index.d.ts +972 -39
- package/dist/index.mjs +387 -31
- package/dist/index.mjs.map +1 -1
- package/dist/tree/index.cjs +38 -38
- package/dist/tree/index.d.cts +2 -2
- package/dist/tree/index.d.ts +2 -2
- package/dist/tree/index.mjs +3 -3
- package/package.json +6 -6
- package/src/index.ts +5 -0
- package/src/stories/index.ts +3 -1
- package/src/tools/Chat/Chat.story.tsx +1006 -0
- package/src/tools/Chat/README.md +528 -0
- package/src/tools/Chat/components/Attachments.tsx +192 -0
- package/src/tools/Chat/components/ChatRoot.tsx +201 -0
- package/src/tools/Chat/components/Composer.tsx +134 -0
- package/src/tools/Chat/components/EmptyState.tsx +47 -0
- package/src/tools/Chat/components/ErrorBanner.tsx +47 -0
- package/src/tools/Chat/components/JumpToLatest.tsx +30 -0
- package/src/tools/Chat/components/MessageActions.tsx +72 -0
- package/src/tools/Chat/components/MessageBubble.tsx +228 -0
- package/src/tools/Chat/components/MessageList.tsx +82 -0
- package/src/tools/Chat/components/Sources.tsx +55 -0
- package/src/tools/Chat/components/StreamingIndicator.tsx +29 -0
- package/src/tools/Chat/components/ToolCalls.tsx +172 -0
- package/src/tools/Chat/components/index.ts +24 -0
- package/src/tools/Chat/config.ts +55 -0
- package/src/tools/Chat/context/ChatProvider.tsx +122 -0
- package/src/tools/Chat/context/index.ts +9 -0
- package/src/tools/Chat/core/audio/audioBus.ts +172 -0
- package/src/tools/Chat/core/audio/index.ts +8 -0
- package/src/tools/Chat/core/audio/preferences.ts +68 -0
- package/src/tools/Chat/core/audio/types.ts +49 -0
- package/src/tools/Chat/core/ids.ts +16 -0
- package/src/tools/Chat/core/index.ts +5 -0
- package/src/tools/Chat/core/markdown.ts +56 -0
- package/src/tools/Chat/core/payload-dispatch.ts +54 -0
- package/src/tools/Chat/core/persona.ts +35 -0
- package/src/tools/Chat/core/reducer.ts +335 -0
- package/src/tools/Chat/core/transport/http.ts +167 -0
- package/src/tools/Chat/core/transport/index.ts +13 -0
- package/src/tools/Chat/core/transport/mock.ts +134 -0
- package/src/tools/Chat/core/transport/sse.ts +116 -0
- package/src/tools/Chat/core/transport/types.ts +24 -0
- package/src/tools/Chat/hooks/index.ts +26 -0
- package/src/tools/Chat/hooks/useChat.ts +440 -0
- package/src/tools/Chat/hooks/useChatAudio.ts +191 -0
- package/src/tools/Chat/hooks/useChatComposer.ts +227 -0
- package/src/tools/Chat/hooks/useChatHistory.ts +59 -0
- package/src/tools/Chat/hooks/useChatLayout.ts +111 -0
- package/src/tools/Chat/hooks/useChatLightbox.ts +34 -0
- package/src/tools/Chat/hooks/useChatScroll.ts +132 -0
- package/src/tools/Chat/index.ts +158 -0
- package/src/tools/Chat/lazy.tsx +14 -0
- package/src/tools/Chat/types.ts +237 -0
- package/src/tools/Chat/utils/collectImageAttachments.ts +13 -0
- package/src/tools/Map/README.md +384 -0
- package/dist/DocsLayout-CTJINVBM.mjs.map +0 -1
- package/dist/DocsLayout-XLDB6CJ2.cjs.map +0 -1
- package/dist/JsonSchemaForm-6WMS4CIY.cjs +0 -13
- package/dist/JsonSchemaForm-KX4JT3M4.mjs +0 -4
- package/dist/JsonTree-F27RMYSI.cjs +0 -11
- package/dist/JsonTree-QTJYSHCV.mjs +0 -5
- package/dist/Player-M3GC3VPE.mjs +0 -4
- package/dist/Player-ZL2X5LGG.cjs +0 -13
- package/dist/TreeRoot-A3J65L6F.mjs +0 -4
- package/dist/TreeRoot-DSK5JILT.cjs +0 -19
- package/dist/chunk-62Y65TGK.mjs.map +0 -1
- package/dist/chunk-TKSFZHCG.cjs +0 -1597
- package/dist/chunk-TKSFZHCG.cjs.map +0 -1
- package/dist/components-5UXYNAKR.cjs +0 -22
- package/dist/components-CFXOEVPN.mjs +0 -5
- package/dist/components-WYEZL5TE.cjs +0 -26
- package/dist/components-ZAGG2PBO.mjs +0 -5
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
|
|
3
|
+
var chunkQW4RBGHN_cjs = require('./chunk-QW4RBGHN.cjs');
|
|
4
|
+
var chunkB5AWZOHJ_cjs = require('./chunk-B5AWZOHJ.cjs');
|
|
5
|
+
var chunkSGP7V2UW_cjs = require('./chunk-SGP7V2UW.cjs');
|
|
6
|
+
require('./chunk-FP2RLYQZ.cjs');
|
|
7
|
+
var chunkOLISEQHS_cjs = require('./chunk-OLISEQHS.cjs');
|
|
7
8
|
var React12 = require('react');
|
|
8
9
|
var lodashEs = require('lodash-es');
|
|
9
10
|
var components = require('@djangocfg/ui-core/components');
|
|
@@ -21,7 +22,7 @@ var React12__default = /*#__PURE__*/_interopDefault(React12);
|
|
|
21
22
|
var consola__default = /*#__PURE__*/_interopDefault(consola);
|
|
22
23
|
|
|
23
24
|
var HTTP_METHODS = ["get", "post", "put", "patch", "delete"];
|
|
24
|
-
var extractEndpoints = /* @__PURE__ */
|
|
25
|
+
var extractEndpoints = /* @__PURE__ */ chunkOLISEQHS_cjs.__name((schema, baseUrl, schemaId, specRoot) => {
|
|
25
26
|
const endpoints = [];
|
|
26
27
|
if (!schema.paths) return [];
|
|
27
28
|
for (const [path, methods] of Object.entries(schema.paths)) {
|
|
@@ -55,7 +56,7 @@ var extractEndpoints = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((schema, baseUrl
|
|
|
55
56
|
description: response.description || `Response ${code}`,
|
|
56
57
|
contentType: chosenContentType,
|
|
57
58
|
schema: respSchema,
|
|
58
|
-
example: respSchema ?
|
|
59
|
+
example: respSchema ? chunkQW4RBGHN_cjs.sampleSchemaJson(respSchema, { skipWriteOnly: true }, specRoot) : void 0
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
62
|
}
|
|
@@ -68,13 +69,13 @@ var extractEndpoints = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((schema, baseUrl
|
|
|
68
69
|
type: rawSchema?.type || "object",
|
|
69
70
|
description: op.requestBody.description,
|
|
70
71
|
schema: rawSchema,
|
|
71
|
-
example: rawSchema ?
|
|
72
|
+
example: rawSchema ? chunkQW4RBGHN_cjs.sampleSchemaJson(rawSchema, { skipReadOnly: true }, specRoot) : void 0
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
75
|
const endpoint = {
|
|
75
76
|
name: path.split("/").pop() || path,
|
|
76
77
|
method: methodUpper,
|
|
77
|
-
path: baseUrl ?
|
|
78
|
+
path: baseUrl ? chunkQW4RBGHN_cjs.joinUrl(baseUrl, path) : path,
|
|
78
79
|
summary,
|
|
79
80
|
description,
|
|
80
81
|
category,
|
|
@@ -88,12 +89,12 @@ var extractEndpoints = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((schema, baseUrl
|
|
|
88
89
|
}
|
|
89
90
|
return endpoints;
|
|
90
91
|
}, "extractEndpoints");
|
|
91
|
-
var getCategories = /* @__PURE__ */
|
|
92
|
+
var getCategories = /* @__PURE__ */ chunkOLISEQHS_cjs.__name((endpoints) => {
|
|
92
93
|
const categories = /* @__PURE__ */ new Set();
|
|
93
94
|
endpoints.forEach((endpoint) => categories.add(endpoint.category));
|
|
94
95
|
return Array.from(categories).sort();
|
|
95
96
|
}, "getCategories");
|
|
96
|
-
var fetchSchema = /* @__PURE__ */
|
|
97
|
+
var fetchSchema = /* @__PURE__ */ chunkOLISEQHS_cjs.__name(async (url) => {
|
|
97
98
|
const response = await fetch(url, {
|
|
98
99
|
headers: {
|
|
99
100
|
"Accept": "application/json"
|
|
@@ -128,11 +129,11 @@ function useOpenApiSchema({
|
|
|
128
129
|
[loadedSchemas, currentSchemaId]
|
|
129
130
|
);
|
|
130
131
|
const dereferencedSchema = React12.useMemo(
|
|
131
|
-
() => currentOpenApiSchema ?
|
|
132
|
+
() => currentOpenApiSchema ? chunkQW4RBGHN_cjs.dereferenceSchema(currentOpenApiSchema) : null,
|
|
132
133
|
[currentOpenApiSchema]
|
|
133
134
|
);
|
|
134
135
|
const resolvedBaseUrl = React12.useMemo(
|
|
135
|
-
() =>
|
|
136
|
+
() => chunkQW4RBGHN_cjs.resolveBaseUrl({
|
|
136
137
|
schemaSource: currentSchema?.baseUrl,
|
|
137
138
|
config: configBaseUrl,
|
|
138
139
|
fromServers: currentOpenApiSchema?.servers?.[0]?.url
|
|
@@ -231,8 +232,8 @@ function useOpenApiSchema({
|
|
|
231
232
|
if (!preloadAll) return [];
|
|
232
233
|
return schemas.map((src) => {
|
|
233
234
|
const raw = loadedSchemas.get(src.id) ?? null;
|
|
234
|
-
const deref = raw ?
|
|
235
|
-
const resolved =
|
|
235
|
+
const deref = raw ? chunkQW4RBGHN_cjs.dereferenceSchema(raw) : null;
|
|
236
|
+
const resolved = chunkQW4RBGHN_cjs.resolveBaseUrl({
|
|
236
237
|
schemaSource: src.baseUrl,
|
|
237
238
|
config: configBaseUrl,
|
|
238
239
|
fromServers: raw?.servers?.[0]?.url
|
|
@@ -296,7 +297,7 @@ function useOpenApiSchema({
|
|
|
296
297
|
schemasData
|
|
297
298
|
};
|
|
298
299
|
}
|
|
299
|
-
|
|
300
|
+
chunkOLISEQHS_cjs.__name(useOpenApiSchema, "useOpenApiSchema");
|
|
300
301
|
function parseDocsHash(hash) {
|
|
301
302
|
const raw = hash.startsWith("#") ? hash.slice(1) : hash;
|
|
302
303
|
if (!raw) return { schemaId: null, anchor: null };
|
|
@@ -307,14 +308,14 @@ function parseDocsHash(hash) {
|
|
|
307
308
|
anchor: anchor || null
|
|
308
309
|
};
|
|
309
310
|
}
|
|
310
|
-
|
|
311
|
+
chunkOLISEQHS_cjs.__name(parseDocsHash, "parseDocsHash");
|
|
311
312
|
function buildDocsHash(schemaId, anchor) {
|
|
312
313
|
if (!schemaId && !anchor) return "";
|
|
313
314
|
if (schemaId && anchor) return `#${schemaId}/${anchor}`;
|
|
314
315
|
if (schemaId) return `#${schemaId}`;
|
|
315
316
|
return anchor ? `#${anchor}` : "";
|
|
316
317
|
}
|
|
317
|
-
|
|
318
|
+
chunkOLISEQHS_cjs.__name(buildDocsHash, "buildDocsHash");
|
|
318
319
|
function useDocsUrlSync({
|
|
319
320
|
enabled,
|
|
320
321
|
currentSchemaId,
|
|
@@ -328,7 +329,7 @@ function useDocsUrlSync({
|
|
|
328
329
|
}, [onHashTarget]);
|
|
329
330
|
React12.useEffect(() => {
|
|
330
331
|
if (!enabled || typeof window === "undefined") return;
|
|
331
|
-
const apply = /* @__PURE__ */
|
|
332
|
+
const apply = /* @__PURE__ */ chunkOLISEQHS_cjs.__name(() => {
|
|
332
333
|
onHashTargetRef.current(parseDocsHash(window.location.hash));
|
|
333
334
|
}, "apply");
|
|
334
335
|
apply();
|
|
@@ -360,13 +361,13 @@ function useDocsUrlSync({
|
|
|
360
361
|
);
|
|
361
362
|
return { pushTarget };
|
|
362
363
|
}
|
|
363
|
-
|
|
364
|
+
chunkOLISEQHS_cjs.__name(useDocsUrlSync, "useDocsUrlSync");
|
|
364
365
|
var EMPTY_DRAFT = { parameters: {}, requestBody: "" };
|
|
365
366
|
function storageKey(schemaId, ep) {
|
|
366
367
|
if (!schemaId || !ep) return null;
|
|
367
368
|
return `openapi-playground:draft:${schemaId}:${ep.method}:${ep.path}`;
|
|
368
369
|
}
|
|
369
|
-
|
|
370
|
+
chunkOLISEQHS_cjs.__name(storageKey, "storageKey");
|
|
370
371
|
function readDraft(key) {
|
|
371
372
|
if (!key || typeof window === "undefined") return EMPTY_DRAFT;
|
|
372
373
|
try {
|
|
@@ -381,7 +382,7 @@ function readDraft(key) {
|
|
|
381
382
|
return EMPTY_DRAFT;
|
|
382
383
|
}
|
|
383
384
|
}
|
|
384
|
-
|
|
385
|
+
chunkOLISEQHS_cjs.__name(readDraft, "readDraft");
|
|
385
386
|
function writeDraft(key, value) {
|
|
386
387
|
if (!key || typeof window === "undefined") return;
|
|
387
388
|
try {
|
|
@@ -393,7 +394,7 @@ function writeDraft(key, value) {
|
|
|
393
394
|
} catch {
|
|
394
395
|
}
|
|
395
396
|
}
|
|
396
|
-
|
|
397
|
+
chunkOLISEQHS_cjs.__name(writeDraft, "writeDraft");
|
|
397
398
|
function useEndpointDraft(schemaId, endpoint) {
|
|
398
399
|
const key = storageKey(schemaId, endpoint);
|
|
399
400
|
const [draft, setDraftSnapshot] = React12.useState(() => readDraft(key));
|
|
@@ -439,11 +440,11 @@ function useEndpointDraft(schemaId, endpoint) {
|
|
|
439
440
|
}, []);
|
|
440
441
|
return { draft, setParameters, setRequestBody, reset };
|
|
441
442
|
}
|
|
442
|
-
|
|
443
|
+
chunkOLISEQHS_cjs.__name(useEndpointDraft, "useEndpointDraft");
|
|
443
444
|
|
|
444
445
|
// src/tools/OpenapiViewer/components/shared/EndpointDraftSync.tsx
|
|
445
446
|
function EndpointDraftSync({ schemaId }) {
|
|
446
|
-
const { state, setParameters, setRequestBody, setActiveSchemaId } =
|
|
447
|
+
const { state, setParameters, setRequestBody, setActiveSchemaId } = chunkQW4RBGHN_cjs.usePlaygroundContext();
|
|
447
448
|
const ep = state.selectedEndpoint;
|
|
448
449
|
React12.useEffect(() => {
|
|
449
450
|
setActiveSchemaId(schemaId);
|
|
@@ -490,7 +491,7 @@ function EndpointDraftSync({ schemaId }) {
|
|
|
490
491
|
}, [state.requestBody, ep, currentKey, persistBody]);
|
|
491
492
|
return null;
|
|
492
493
|
}
|
|
493
|
-
|
|
494
|
+
chunkOLISEQHS_cjs.__name(EndpointDraftSync, "EndpointDraftSync");
|
|
494
495
|
|
|
495
496
|
// src/tools/OpenapiViewer/components/DocsLayout/anchor.ts
|
|
496
497
|
function endpointAnchor(ep, schemaId) {
|
|
@@ -498,11 +499,11 @@ function endpointAnchor(ep, schemaId) {
|
|
|
498
499
|
const schemaSlug = schemaId ? `${slugifySchemaId(schemaId)}-` : "";
|
|
499
500
|
return `ep-${schemaSlug}${ep.method.toLowerCase()}-${slug}`;
|
|
500
501
|
}
|
|
501
|
-
|
|
502
|
+
chunkOLISEQHS_cjs.__name(endpointAnchor, "endpointAnchor");
|
|
502
503
|
function slugifySchemaId(id) {
|
|
503
504
|
return id.replace(/[^a-zA-Z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
504
505
|
}
|
|
505
|
-
|
|
506
|
+
chunkOLISEQHS_cjs.__name(slugifySchemaId, "slugifySchemaId");
|
|
506
507
|
var METHOD_STYLES = {
|
|
507
508
|
GET: "bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border-emerald-500/25",
|
|
508
509
|
POST: "bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/25",
|
|
@@ -514,14 +515,14 @@ var METHOD_FALLBACK = "bg-muted text-muted-foreground border-border";
|
|
|
514
515
|
function getMethodStyle(method) {
|
|
515
516
|
return METHOD_STYLES[method.toUpperCase()] ?? METHOD_FALLBACK;
|
|
516
517
|
}
|
|
517
|
-
|
|
518
|
+
chunkOLISEQHS_cjs.__name(getMethodStyle, "getMethodStyle");
|
|
518
519
|
function getStatusStyle(status) {
|
|
519
520
|
if (status >= 500) return "bg-red-500/10 text-red-500 dark:text-red-400 border-red-500/25";
|
|
520
521
|
if (status >= 400) return "bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/25";
|
|
521
522
|
if (status >= 300) return "bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/25";
|
|
522
523
|
return "bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border-emerald-500/25";
|
|
523
524
|
}
|
|
524
|
-
|
|
525
|
+
chunkOLISEQHS_cjs.__name(getStatusStyle, "getStatusStyle");
|
|
525
526
|
function MethodBadge({ method }) {
|
|
526
527
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: lib.cn(
|
|
527
528
|
"inline-flex shrink-0 items-center rounded border px-1.5 py-px",
|
|
@@ -529,7 +530,7 @@ function MethodBadge({ method }) {
|
|
|
529
530
|
getMethodStyle(method)
|
|
530
531
|
), children: method });
|
|
531
532
|
}
|
|
532
|
-
|
|
533
|
+
chunkOLISEQHS_cjs.__name(MethodBadge, "MethodBadge");
|
|
533
534
|
function StatusBadge({ status }) {
|
|
534
535
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: lib.cn(
|
|
535
536
|
"inline-flex items-center rounded border px-1.5 py-px",
|
|
@@ -537,19 +538,19 @@ function StatusBadge({ status }) {
|
|
|
537
538
|
getStatusStyle(status)
|
|
538
539
|
), children: status });
|
|
539
540
|
}
|
|
540
|
-
|
|
541
|
+
chunkOLISEQHS_cjs.__name(StatusBadge, "StatusBadge");
|
|
541
542
|
function SectionLabel({ children }) {
|
|
542
543
|
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[10px] font-semibold uppercase tracking-wider text-muted-foreground/60 select-none", children });
|
|
543
544
|
}
|
|
544
|
-
|
|
545
|
+
chunkOLISEQHS_cjs.__name(SectionLabel, "SectionLabel");
|
|
545
546
|
function Panel({ children, className }) {
|
|
546
547
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: lib.cn("flex flex-col min-h-0 overflow-hidden", className), children });
|
|
547
548
|
}
|
|
548
|
-
|
|
549
|
+
chunkOLISEQHS_cjs.__name(Panel, "Panel");
|
|
549
550
|
function ScrollArea({ children, className }) {
|
|
550
551
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: lib.cn("flex-1 overflow-y-auto min-h-0", className), children });
|
|
551
552
|
}
|
|
552
|
-
|
|
553
|
+
chunkOLISEQHS_cjs.__name(ScrollArea, "ScrollArea");
|
|
553
554
|
function EmptyState({
|
|
554
555
|
icon: Icon,
|
|
555
556
|
text,
|
|
@@ -569,7 +570,7 @@ function EmptyState({
|
|
|
569
570
|
}
|
|
570
571
|
);
|
|
571
572
|
}
|
|
572
|
-
|
|
573
|
+
chunkOLISEQHS_cjs.__name(EmptyState, "EmptyState");
|
|
573
574
|
function CollapsibleSection({
|
|
574
575
|
label,
|
|
575
576
|
action,
|
|
@@ -596,7 +597,7 @@ function CollapsibleSection({
|
|
|
596
597
|
open && /* @__PURE__ */ jsxRuntime.jsx("div", { children })
|
|
597
598
|
] });
|
|
598
599
|
}
|
|
599
|
-
|
|
600
|
+
chunkOLISEQHS_cjs.__name(CollapsibleSection, "CollapsibleSection");
|
|
600
601
|
function BrandHeader({ info }) {
|
|
601
602
|
const apiTitle = info?.title ?? "API Reference";
|
|
602
603
|
const versionLabel = info?.version ? `v${info.version}` : null;
|
|
@@ -613,7 +614,7 @@ function BrandHeader({ info }) {
|
|
|
613
614
|
versionNode
|
|
614
615
|
] });
|
|
615
616
|
}
|
|
616
|
-
|
|
617
|
+
chunkOLISEQHS_cjs.__name(BrandHeader, "BrandHeader");
|
|
617
618
|
|
|
618
619
|
// src/tools/OpenapiViewer/components/DocsLayout/sidebarLabel.ts
|
|
619
620
|
function longestCommonPrefix(paths) {
|
|
@@ -633,20 +634,20 @@ function longestCommonPrefix(paths) {
|
|
|
633
634
|
const joined = shared.join("/");
|
|
634
635
|
return joined;
|
|
635
636
|
}
|
|
636
|
-
|
|
637
|
+
chunkOLISEQHS_cjs.__name(longestCommonPrefix, "longestCommonPrefix");
|
|
637
638
|
function sidebarLabel(ep, groupCommonPrefix) {
|
|
638
639
|
if (ep.summary) return ep.summary;
|
|
639
640
|
if (groupCommonPrefix && ep.path.startsWith(groupCommonPrefix)) {
|
|
640
641
|
const tail = ep.path.slice(groupCommonPrefix.length) || "/";
|
|
641
642
|
return tail;
|
|
642
643
|
}
|
|
643
|
-
return
|
|
644
|
+
return chunkQW4RBGHN_cjs.relativePath(ep.path);
|
|
644
645
|
}
|
|
645
|
-
|
|
646
|
+
chunkOLISEQHS_cjs.__name(sidebarLabel, "sidebarLabel");
|
|
646
647
|
function sidebarTooltip(ep) {
|
|
647
|
-
return `${ep.method} ${
|
|
648
|
+
return `${ep.method} ${chunkQW4RBGHN_cjs.relativePath(ep.path)}`;
|
|
648
649
|
}
|
|
649
|
-
|
|
650
|
+
chunkOLISEQHS_cjs.__name(sidebarTooltip, "sidebarTooltip");
|
|
650
651
|
|
|
651
652
|
// src/tools/OpenapiViewer/components/DocsLayout/grouping.ts
|
|
652
653
|
var METHOD_ORDER = {
|
|
@@ -656,7 +657,7 @@ var METHOD_ORDER = {
|
|
|
656
657
|
PATCH: 3,
|
|
657
658
|
DELETE: 4
|
|
658
659
|
};
|
|
659
|
-
var methodRank = /* @__PURE__ */
|
|
660
|
+
var methodRank = /* @__PURE__ */ chunkOLISEQHS_cjs.__name((ep) => METHOD_ORDER[ep.method] ?? 99, "methodRank");
|
|
660
661
|
function groupEndpoints(list) {
|
|
661
662
|
const byCategory = lodashEs.groupBy(list, "category");
|
|
662
663
|
const all = Object.entries(byCategory).map(([category, endpoints]) => ({
|
|
@@ -667,14 +668,14 @@ function groupEndpoints(list) {
|
|
|
667
668
|
const [other, named] = lodashEs.partition(all, (g) => g.category === "Other");
|
|
668
669
|
return [...lodashEs.sortBy(named, (g) => g.category.toLowerCase()), ...other];
|
|
669
670
|
}
|
|
670
|
-
|
|
671
|
+
chunkOLISEQHS_cjs.__name(groupEndpoints, "groupEndpoints");
|
|
671
672
|
function buildSchemaSections(sources, endpointsBySchema) {
|
|
672
673
|
return sources.map((source) => ({
|
|
673
674
|
source,
|
|
674
675
|
groups: groupEndpoints(endpointsBySchema[source.id] ?? [])
|
|
675
676
|
}));
|
|
676
677
|
}
|
|
677
|
-
|
|
678
|
+
chunkOLISEQHS_cjs.__name(buildSchemaSections, "buildSchemaSections");
|
|
678
679
|
|
|
679
680
|
// src/tools/OpenapiViewer/components/DocsLayout/Sidebar/buildVM.ts
|
|
680
681
|
function filterEndpoints(list, query, method) {
|
|
@@ -690,7 +691,7 @@ function filterEndpoints(list, query, method) {
|
|
|
690
691
|
}
|
|
691
692
|
return out;
|
|
692
693
|
}
|
|
693
|
-
|
|
694
|
+
chunkOLISEQHS_cjs.__name(filterEndpoints, "filterEndpoints");
|
|
694
695
|
function buildCategory(group, activeEndpointId, schemaId, keyPrefix) {
|
|
695
696
|
const rows = group.endpoints.map((ep) => {
|
|
696
697
|
const anchor = endpointAnchor(ep, schemaId ?? ep.schemaId ?? null);
|
|
@@ -711,17 +712,17 @@ function buildCategory(group, activeEndpointId, schemaId, keyPrefix) {
|
|
|
711
712
|
rows
|
|
712
713
|
};
|
|
713
714
|
}
|
|
714
|
-
|
|
715
|
+
chunkOLISEQHS_cjs.__name(buildCategory, "buildCategory");
|
|
715
716
|
function emptyTextFor(query, method, defaultText) {
|
|
716
717
|
if (query && method !== "ALL") return `No ${method} endpoints match "${query}"`;
|
|
717
718
|
if (query) return `No endpoints match "${query}"`;
|
|
718
719
|
if (method !== "ALL") return `No ${method} endpoints`;
|
|
719
720
|
return defaultText;
|
|
720
721
|
}
|
|
721
|
-
|
|
722
|
+
chunkOLISEQHS_cjs.__name(emptyTextFor, "emptyTextFor");
|
|
722
723
|
function buildFlatVM(endpoints, selectedVersion, query, method, activeEndpointId) {
|
|
723
724
|
const filtered = filterEndpoints(
|
|
724
|
-
|
|
725
|
+
chunkQW4RBGHN_cjs.deduplicateEndpoints(endpoints, selectedVersion),
|
|
725
726
|
query,
|
|
726
727
|
method
|
|
727
728
|
);
|
|
@@ -732,13 +733,13 @@ function buildFlatVM(endpoints, selectedVersion, query, method, activeEndpointId
|
|
|
732
733
|
emptyText: emptyTextFor(query, method, "No endpoints in this schema")
|
|
733
734
|
};
|
|
734
735
|
}
|
|
735
|
-
|
|
736
|
+
chunkOLISEQHS_cjs.__name(buildFlatVM, "buildFlatVM");
|
|
736
737
|
function buildSectionsVM(schemas, endpointsBySchema, selectedVersion, query, method, activeEndpointId) {
|
|
737
738
|
const filteredMap = {};
|
|
738
739
|
for (const src of schemas) {
|
|
739
740
|
const raw = endpointsBySchema[src.id] ?? [];
|
|
740
741
|
filteredMap[src.id] = filterEndpoints(
|
|
741
|
-
|
|
742
|
+
chunkQW4RBGHN_cjs.deduplicateEndpoints(raw, selectedVersion),
|
|
742
743
|
query,
|
|
743
744
|
method
|
|
744
745
|
);
|
|
@@ -757,8 +758,8 @@ function buildSectionsVM(schemas, endpointsBySchema, selectedVersion, query, met
|
|
|
757
758
|
emptyText: emptyTextFor(query, method, "No endpoints in any schema")
|
|
758
759
|
};
|
|
759
760
|
}
|
|
760
|
-
|
|
761
|
-
var EndpointRow = React12__default.default.memo(/* @__PURE__ */
|
|
761
|
+
chunkOLISEQHS_cjs.__name(buildSectionsVM, "buildSectionsVM");
|
|
762
|
+
var EndpointRow = React12__default.default.memo(/* @__PURE__ */ chunkOLISEQHS_cjs.__name(function EndpointRow2({
|
|
762
763
|
row,
|
|
763
764
|
onNavigate
|
|
764
765
|
}) {
|
|
@@ -799,7 +800,7 @@ var EndpointRow = React12__default.default.memo(/* @__PURE__ */ chunkWGEGR3DF_cj
|
|
|
799
800
|
/* @__PURE__ */ jsxRuntime.jsx(components.TooltipContent, { side: "right", align: "center", className: "font-mono text-[11px]", children: row.tooltip })
|
|
800
801
|
] });
|
|
801
802
|
}, "EndpointRow"));
|
|
802
|
-
var CategoryBlock = React12__default.default.memo(/* @__PURE__ */
|
|
803
|
+
var CategoryBlock = React12__default.default.memo(/* @__PURE__ */ chunkOLISEQHS_cjs.__name(function CategoryBlock2({
|
|
803
804
|
category,
|
|
804
805
|
onNavigate
|
|
805
806
|
}) {
|
|
@@ -814,7 +815,7 @@ function SchemaSection({ section, onNavigate }) {
|
|
|
814
815
|
section.categories.map((cat) => /* @__PURE__ */ jsxRuntime.jsx(CategoryBlock, { category: cat, onNavigate }, cat.key))
|
|
815
816
|
] });
|
|
816
817
|
}
|
|
817
|
-
|
|
818
|
+
chunkOLISEQHS_cjs.__name(SchemaSection, "SchemaSection");
|
|
818
819
|
function SidebarBody({ body, onNavigate }) {
|
|
819
820
|
if (body.kind === "flat") {
|
|
820
821
|
if (body.categories.length === 0) {
|
|
@@ -827,7 +828,7 @@ function SidebarBody({ body, onNavigate }) {
|
|
|
827
828
|
}
|
|
828
829
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "py-1.5", children: body.sections.map((section) => /* @__PURE__ */ jsxRuntime.jsx(SchemaSection, { section, onNavigate }, section.sourceId)) });
|
|
829
830
|
}
|
|
830
|
-
|
|
831
|
+
chunkOLISEQHS_cjs.__name(SidebarBody, "SidebarBody");
|
|
831
832
|
var FLAVOUR_LABELS = {
|
|
832
833
|
markdown: {
|
|
833
834
|
title: "Markdown for LLM",
|
|
@@ -850,9 +851,9 @@ function SchemaCopyMenu({ schema, endpoints, baseUrl, variant = "button", side }
|
|
|
850
851
|
const build = React12.useCallback(
|
|
851
852
|
(flavour) => {
|
|
852
853
|
if (!schema) return "";
|
|
853
|
-
if (flavour === "markdown") return
|
|
854
|
-
if (flavour === "compact") return
|
|
855
|
-
return
|
|
854
|
+
if (flavour === "markdown") return chunkQW4RBGHN_cjs.toMarkdown(schema, endpoints, baseUrl);
|
|
855
|
+
if (flavour === "compact") return chunkQW4RBGHN_cjs.toCompactJson(schema, baseUrl);
|
|
856
|
+
return chunkQW4RBGHN_cjs.toRawJson(schema, baseUrl);
|
|
856
857
|
},
|
|
857
858
|
[schema, endpoints, baseUrl]
|
|
858
859
|
);
|
|
@@ -863,7 +864,7 @@ function SchemaCopyMenu({ schema, endpoints, baseUrl, variant = "button", side }
|
|
|
863
864
|
const label = FLAVOUR_LABELS[flavour].title;
|
|
864
865
|
try {
|
|
865
866
|
await navigator.clipboard.writeText(text);
|
|
866
|
-
const size =
|
|
867
|
+
const size = chunkQW4RBGHN_cjs.formatBytes(text);
|
|
867
868
|
setSizeCache((prev) => ({ ...prev, [flavour]: size }));
|
|
868
869
|
setJustCopied(flavour);
|
|
869
870
|
setTimeout(() => setJustCopied(null), 1500);
|
|
@@ -951,7 +952,7 @@ function SchemaCopyMenu({ schema, endpoints, baseUrl, variant = "button", side }
|
|
|
951
952
|
)
|
|
952
953
|
] });
|
|
953
954
|
}
|
|
954
|
-
|
|
955
|
+
chunkOLISEQHS_cjs.__name(SchemaCopyMenu, "SchemaCopyMenu");
|
|
955
956
|
function SearchInput({ value, onChange, placeholder }) {
|
|
956
957
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
957
958
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground/50 pointer-events-none" }),
|
|
@@ -980,7 +981,7 @@ function SearchInput({ value, onChange, placeholder }) {
|
|
|
980
981
|
)
|
|
981
982
|
] });
|
|
982
983
|
}
|
|
983
|
-
|
|
984
|
+
chunkOLISEQHS_cjs.__name(SearchInput, "SearchInput");
|
|
984
985
|
function Toolbar({
|
|
985
986
|
schemas,
|
|
986
987
|
currentSchemaId,
|
|
@@ -1025,7 +1026,7 @@ function Toolbar({
|
|
|
1025
1026
|
copyMenuNode
|
|
1026
1027
|
] });
|
|
1027
1028
|
}
|
|
1028
|
-
|
|
1029
|
+
chunkOLISEQHS_cjs.__name(Toolbar, "Toolbar");
|
|
1029
1030
|
function useDebouncedValue(value, delayMs = 120) {
|
|
1030
1031
|
const [debounced, setDebounced] = React12.useState(value);
|
|
1031
1032
|
React12.useEffect(() => {
|
|
@@ -1034,7 +1035,7 @@ function useDebouncedValue(value, delayMs = 120) {
|
|
|
1034
1035
|
}, [value, delayMs]);
|
|
1035
1036
|
return debounced;
|
|
1036
1037
|
}
|
|
1037
|
-
|
|
1038
|
+
chunkOLISEQHS_cjs.__name(useDebouncedValue, "useDebouncedValue");
|
|
1038
1039
|
function DocsSidebar({
|
|
1039
1040
|
info,
|
|
1040
1041
|
endpoints,
|
|
@@ -1099,7 +1100,7 @@ function DocsSidebar({
|
|
|
1099
1100
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollArea, { children: /* @__PURE__ */ jsxRuntime.jsx(SidebarBody, { body, onNavigate }) })
|
|
1100
1101
|
] });
|
|
1101
1102
|
}
|
|
1102
|
-
|
|
1103
|
+
chunkOLISEQHS_cjs.__name(DocsSidebar, "DocsSidebar");
|
|
1103
1104
|
|
|
1104
1105
|
// src/tools/OpenapiViewer/utils/scrollParent.ts
|
|
1105
1106
|
function getScrollParent(el) {
|
|
@@ -1115,19 +1116,19 @@ function getScrollParent(el) {
|
|
|
1115
1116
|
}
|
|
1116
1117
|
return window;
|
|
1117
1118
|
}
|
|
1118
|
-
|
|
1119
|
+
chunkOLISEQHS_cjs.__name(getScrollParent, "getScrollParent");
|
|
1119
1120
|
function getScrollTop(target) {
|
|
1120
1121
|
return target === window ? window.scrollY : target.scrollTop;
|
|
1121
1122
|
}
|
|
1122
|
-
|
|
1123
|
+
chunkOLISEQHS_cjs.__name(getScrollTop, "getScrollTop");
|
|
1123
1124
|
function getViewportHeight(target) {
|
|
1124
1125
|
return target === window ? window.innerHeight : target.clientHeight;
|
|
1125
1126
|
}
|
|
1126
|
-
|
|
1127
|
+
chunkOLISEQHS_cjs.__name(getViewportHeight, "getViewportHeight");
|
|
1127
1128
|
function getTargetTop(target) {
|
|
1128
1129
|
return target === window ? 0 : target.getBoundingClientRect().top;
|
|
1129
1130
|
}
|
|
1130
|
-
|
|
1131
|
+
chunkOLISEQHS_cjs.__name(getTargetTop, "getTargetTop");
|
|
1131
1132
|
function scrollTargetTo(target, top) {
|
|
1132
1133
|
if (target === window) {
|
|
1133
1134
|
window.scrollTo({ top, behavior: "smooth" });
|
|
@@ -1135,7 +1136,7 @@ function scrollTargetTo(target, top) {
|
|
|
1135
1136
|
}
|
|
1136
1137
|
target.scrollTop = top;
|
|
1137
1138
|
}
|
|
1138
|
-
|
|
1139
|
+
chunkOLISEQHS_cjs.__name(scrollTargetTo, "scrollTargetTo");
|
|
1139
1140
|
function ApiIntroSection({ info, schema, endpoints, resolvedBaseUrl }) {
|
|
1140
1141
|
const baseUrlRows = resolvedBaseUrl ? [{ url: resolvedBaseUrl, description: info.servers?.[0]?.description }] : (info.servers ?? []).map((s) => ({ url: s.url, description: s.description }));
|
|
1141
1142
|
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "pb-10 mb-10 border-b", children: [
|
|
@@ -1156,7 +1157,7 @@ function ApiIntroSection({ info, schema, endpoints, resolvedBaseUrl }) {
|
|
|
1156
1157
|
}
|
|
1157
1158
|
)
|
|
1158
1159
|
] }),
|
|
1159
|
-
info.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1160
|
+
info.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(chunkB5AWZOHJ_cjs.MarkdownMessage, { content: info.description }) }),
|
|
1160
1161
|
baseUrlRows.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6 space-y-2", children: [
|
|
1161
1162
|
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-[10px] font-semibold uppercase tracking-wider text-muted-foreground/60", children: "Base URL" }),
|
|
1162
1163
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1.5", children: baseUrlRows.map((row, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-baseline gap-2 flex-wrap", children: [
|
|
@@ -1166,13 +1167,13 @@ function ApiIntroSection({ info, schema, endpoints, resolvedBaseUrl }) {
|
|
|
1166
1167
|
] })
|
|
1167
1168
|
] });
|
|
1168
1169
|
}
|
|
1169
|
-
|
|
1170
|
+
chunkOLISEQHS_cjs.__name(ApiIntroSection, "ApiIntroSection");
|
|
1170
1171
|
var EndpointDocContext = React12.createContext(null);
|
|
1171
1172
|
function EndpointDocProvider({ endpointId, method, children }) {
|
|
1172
1173
|
const value = React12.useMemo(() => ({ endpointId, method }), [endpointId, method]);
|
|
1173
1174
|
return /* @__PURE__ */ jsxRuntime.jsx(EndpointDocContext.Provider, { value, children });
|
|
1174
1175
|
}
|
|
1175
|
-
|
|
1176
|
+
chunkOLISEQHS_cjs.__name(EndpointDocProvider, "EndpointDocProvider");
|
|
1176
1177
|
function useEndpointDocContext() {
|
|
1177
1178
|
const ctx = React12.useContext(EndpointDocContext);
|
|
1178
1179
|
if (!ctx) {
|
|
@@ -1182,8 +1183,8 @@ function useEndpointDocContext() {
|
|
|
1182
1183
|
}
|
|
1183
1184
|
return ctx;
|
|
1184
1185
|
}
|
|
1185
|
-
|
|
1186
|
-
var sectionKey = /* @__PURE__ */
|
|
1186
|
+
chunkOLISEQHS_cjs.__name(useEndpointDocContext, "useEndpointDocContext");
|
|
1187
|
+
var sectionKey = /* @__PURE__ */ chunkOLISEQHS_cjs.__name((endpointId, sectionId) => `${endpointId}:${sectionId}`, "sectionKey");
|
|
1187
1188
|
var initialState = {
|
|
1188
1189
|
openSections: {},
|
|
1189
1190
|
activeCodeTab: {}
|
|
@@ -1192,7 +1193,7 @@ var useEndpointDocStore = zustand.create()(
|
|
|
1192
1193
|
middleware.persist(
|
|
1193
1194
|
(set) => ({
|
|
1194
1195
|
...initialState,
|
|
1195
|
-
toggleSection: /* @__PURE__ */
|
|
1196
|
+
toggleSection: /* @__PURE__ */ chunkOLISEQHS_cjs.__name((endpointId, sectionId, defaultOpen) => set((state) => {
|
|
1196
1197
|
const key = sectionKey(endpointId, sectionId);
|
|
1197
1198
|
const current = state.openSections[key];
|
|
1198
1199
|
const visible = current === void 0 ? defaultOpen : current;
|
|
@@ -1203,26 +1204,26 @@ var useEndpointDocStore = zustand.create()(
|
|
|
1203
1204
|
}
|
|
1204
1205
|
};
|
|
1205
1206
|
}), "toggleSection"),
|
|
1206
|
-
setSectionOpen: /* @__PURE__ */
|
|
1207
|
+
setSectionOpen: /* @__PURE__ */ chunkOLISEQHS_cjs.__name((endpointId, sectionId, open) => set((state) => ({
|
|
1207
1208
|
openSections: {
|
|
1208
1209
|
...state.openSections,
|
|
1209
1210
|
[sectionKey(endpointId, sectionId)]: open
|
|
1210
1211
|
}
|
|
1211
1212
|
})), "setSectionOpen"),
|
|
1212
|
-
setCodeTab: /* @__PURE__ */
|
|
1213
|
+
setCodeTab: /* @__PURE__ */ chunkOLISEQHS_cjs.__name((endpointId, tab) => set((state) => ({
|
|
1213
1214
|
activeCodeTab: {
|
|
1214
1215
|
...state.activeCodeTab,
|
|
1215
1216
|
[endpointId]: tab
|
|
1216
1217
|
}
|
|
1217
1218
|
})), "setCodeTab"),
|
|
1218
|
-
expandAll: /* @__PURE__ */
|
|
1219
|
+
expandAll: /* @__PURE__ */ chunkOLISEQHS_cjs.__name((endpointId, sectionIds) => set((state) => {
|
|
1219
1220
|
const next = { ...state.openSections };
|
|
1220
1221
|
for (const sid of sectionIds) {
|
|
1221
1222
|
next[sectionKey(endpointId, sid)] = true;
|
|
1222
1223
|
}
|
|
1223
1224
|
return { openSections: next };
|
|
1224
1225
|
}), "expandAll"),
|
|
1225
|
-
collapseAll: /* @__PURE__ */
|
|
1226
|
+
collapseAll: /* @__PURE__ */ chunkOLISEQHS_cjs.__name((endpointId, sectionIds) => set((state) => {
|
|
1226
1227
|
const next = { ...state.openSections };
|
|
1227
1228
|
for (const sid of sectionIds) {
|
|
1228
1229
|
next[sectionKey(endpointId, sid)] = false;
|
|
@@ -1235,10 +1236,10 @@ var useEndpointDocStore = zustand.create()(
|
|
|
1235
1236
|
storage: middleware.createJSONStorage(() => {
|
|
1236
1237
|
if (typeof window === "undefined") {
|
|
1237
1238
|
return {
|
|
1238
|
-
getItem: /* @__PURE__ */
|
|
1239
|
-
setItem: /* @__PURE__ */
|
|
1239
|
+
getItem: /* @__PURE__ */ chunkOLISEQHS_cjs.__name(() => null, "getItem"),
|
|
1240
|
+
setItem: /* @__PURE__ */ chunkOLISEQHS_cjs.__name(() => {
|
|
1240
1241
|
}, "setItem"),
|
|
1241
|
-
removeItem: /* @__PURE__ */
|
|
1242
|
+
removeItem: /* @__PURE__ */ chunkOLISEQHS_cjs.__name(() => {
|
|
1242
1243
|
}, "removeItem")
|
|
1243
1244
|
};
|
|
1244
1245
|
}
|
|
@@ -1247,7 +1248,7 @@ var useEndpointDocStore = zustand.create()(
|
|
|
1247
1248
|
// Only persist user overrides, not the functions. Zustand
|
|
1248
1249
|
// serialises everything by default and logs a warning on
|
|
1249
1250
|
// non-serialisable values; partialize keeps the payload lean.
|
|
1250
|
-
partialize: /* @__PURE__ */
|
|
1251
|
+
partialize: /* @__PURE__ */ chunkOLISEQHS_cjs.__name((state) => ({
|
|
1251
1252
|
openSections: state.openSections,
|
|
1252
1253
|
activeCodeTab: state.activeCodeTab
|
|
1253
1254
|
}), "partialize")
|
|
@@ -1262,13 +1263,13 @@ function useIsSectionOpen(endpointId, sectionId, defaultOpen) {
|
|
|
1262
1263
|
return explicit === void 0 ? defaultOpen : explicit;
|
|
1263
1264
|
});
|
|
1264
1265
|
}
|
|
1265
|
-
|
|
1266
|
+
chunkOLISEQHS_cjs.__name(useIsSectionOpen, "useIsSectionOpen");
|
|
1266
1267
|
function useActiveCodeTab(endpointId, fallback = "curl") {
|
|
1267
1268
|
return useEndpointDocStore((s) => s.activeCodeTab[endpointId] ?? fallback);
|
|
1268
1269
|
}
|
|
1269
|
-
|
|
1270
|
+
chunkOLISEQHS_cjs.__name(useActiveCodeTab, "useActiveCodeTab");
|
|
1270
1271
|
function LanguageTabs({ activeId, onChange }) {
|
|
1271
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 overflow-x-auto -mx-1 px-1", children:
|
|
1272
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 overflow-x-auto -mx-1 px-1", children: chunkQW4RBGHN_cjs.CODE_SAMPLE_TARGETS.map((t) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1272
1273
|
"button",
|
|
1273
1274
|
{
|
|
1274
1275
|
type: "button",
|
|
@@ -1282,7 +1283,7 @@ function LanguageTabs({ activeId, onChange }) {
|
|
|
1282
1283
|
t.id
|
|
1283
1284
|
)) });
|
|
1284
1285
|
}
|
|
1285
|
-
|
|
1286
|
+
chunkOLISEQHS_cjs.__name(LanguageTabs, "LanguageTabs");
|
|
1286
1287
|
function useCodeSnippet({
|
|
1287
1288
|
endpoint,
|
|
1288
1289
|
body,
|
|
@@ -1293,25 +1294,25 @@ function useCodeSnippet({
|
|
|
1293
1294
|
}) {
|
|
1294
1295
|
const effectiveBody = body ?? endpoint.requestBody?.example;
|
|
1295
1296
|
const har = React12.useMemo(() => {
|
|
1296
|
-
const h =
|
|
1297
|
+
const h = chunkQW4RBGHN_cjs.buildHarRequest({
|
|
1297
1298
|
endpoint,
|
|
1298
1299
|
body: effectiveBody,
|
|
1299
1300
|
parameters,
|
|
1300
1301
|
headers,
|
|
1301
1302
|
baseUrl
|
|
1302
1303
|
});
|
|
1303
|
-
return baseUrl ? h : { ...h, url:
|
|
1304
|
+
return baseUrl ? h : { ...h, url: chunkQW4RBGHN_cjs.resolveAbsolute(h.url) };
|
|
1304
1305
|
}, [endpoint, effectiveBody, parameters, headers, baseUrl]);
|
|
1305
1306
|
return React12.useMemo(() => {
|
|
1306
|
-
const target =
|
|
1307
|
-
const code =
|
|
1307
|
+
const target = chunkQW4RBGHN_cjs.CODE_SAMPLE_TARGETS.find((t) => t.id === activeId);
|
|
1308
|
+
const code = chunkQW4RBGHN_cjs.renderSnippet(har, activeId);
|
|
1308
1309
|
return {
|
|
1309
1310
|
snippet: code ?? `// Snippet for ${target.label} is unavailable for this request.`,
|
|
1310
1311
|
prism: target.prism
|
|
1311
1312
|
};
|
|
1312
1313
|
}, [har, activeId]);
|
|
1313
1314
|
}
|
|
1314
|
-
|
|
1315
|
+
chunkOLISEQHS_cjs.__name(useCodeSnippet, "useCodeSnippet");
|
|
1315
1316
|
function CodeSamples({ endpoint, body, parameters, headers, baseUrl }) {
|
|
1316
1317
|
const { endpointId } = useEndpointDocContext();
|
|
1317
1318
|
const activeId = useActiveCodeTab(endpointId);
|
|
@@ -1327,7 +1328,7 @@ function CodeSamples({ endpoint, body, parameters, headers, baseUrl }) {
|
|
|
1327
1328
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2.5", children: [
|
|
1328
1329
|
/* @__PURE__ */ jsxRuntime.jsx(LanguageTabs, { activeId, onChange: (id) => setCodeTab(endpointId, id) }),
|
|
1329
1330
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1330
|
-
|
|
1331
|
+
chunkB5AWZOHJ_cjs.PrettyCode_default,
|
|
1331
1332
|
{
|
|
1332
1333
|
data: snippet,
|
|
1333
1334
|
language: prism,
|
|
@@ -1337,7 +1338,7 @@ function CodeSamples({ endpoint, body, parameters, headers, baseUrl }) {
|
|
|
1337
1338
|
)
|
|
1338
1339
|
] });
|
|
1339
1340
|
}
|
|
1340
|
-
|
|
1341
|
+
chunkOLISEQHS_cjs.__name(CodeSamples, "CodeSamples");
|
|
1341
1342
|
function IconButton({ label, onClick, children, active }) {
|
|
1342
1343
|
return /* @__PURE__ */ jsxRuntime.jsxs(components.Tooltip, { children: [
|
|
1343
1344
|
/* @__PURE__ */ jsxRuntime.jsx(components.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1357,7 +1358,7 @@ function IconButton({ label, onClick, children, active }) {
|
|
|
1357
1358
|
/* @__PURE__ */ jsxRuntime.jsx(components.TooltipContent, { side: "bottom", className: "text-[11px]", children: label })
|
|
1358
1359
|
] });
|
|
1359
1360
|
}
|
|
1360
|
-
|
|
1361
|
+
chunkOLISEQHS_cjs.__name(IconButton, "IconButton");
|
|
1361
1362
|
function MetaActions({ anchor, presentSections }) {
|
|
1362
1363
|
const { endpointId } = useEndpointDocContext();
|
|
1363
1364
|
const expandAll = useEndpointDocStore((s) => s.expandAll);
|
|
@@ -1396,18 +1397,18 @@ function MetaActions({ anchor, presentSections }) {
|
|
|
1396
1397
|
toggleAllNode
|
|
1397
1398
|
] }) });
|
|
1398
1399
|
}
|
|
1399
|
-
|
|
1400
|
+
chunkOLISEQHS_cjs.__name(MetaActions, "MetaActions");
|
|
1400
1401
|
function PathDisplay({ path }) {
|
|
1401
1402
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1402
1403
|
"code",
|
|
1403
1404
|
{
|
|
1404
1405
|
className: "block font-mono text-lg md:text-xl font-semibold text-foreground leading-tight",
|
|
1405
1406
|
style: { overflowWrap: "anywhere", wordBreak: "break-word" },
|
|
1406
|
-
children:
|
|
1407
|
+
children: chunkQW4RBGHN_cjs.relativePath(path)
|
|
1407
1408
|
}
|
|
1408
1409
|
);
|
|
1409
1410
|
}
|
|
1410
|
-
|
|
1411
|
+
chunkOLISEQHS_cjs.__name(PathDisplay, "PathDisplay");
|
|
1411
1412
|
function EndpointHeader({
|
|
1412
1413
|
endpoint,
|
|
1413
1414
|
anchor,
|
|
@@ -1415,7 +1416,7 @@ function EndpointHeader({
|
|
|
1415
1416
|
onTryIt,
|
|
1416
1417
|
presentSections
|
|
1417
1418
|
}) {
|
|
1418
|
-
const endpointMd = React12.useMemo(() =>
|
|
1419
|
+
const endpointMd = React12.useMemo(() => chunkQW4RBGHN_cjs.endpointToMarkdown(endpoint), [endpoint]);
|
|
1419
1420
|
const [aiCopied, setAiCopied] = React12.useState(false);
|
|
1420
1421
|
const onAiCopy = React12.useCallback(() => {
|
|
1421
1422
|
if (typeof window === "undefined") return;
|
|
@@ -1427,7 +1428,7 @@ function EndpointHeader({
|
|
|
1427
1428
|
const tryItLabel = isLoadedInPlayground ? "Loaded" : "Try it";
|
|
1428
1429
|
const aiCopyIcon = aiCopied ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-3 w-3" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-3 w-3" });
|
|
1429
1430
|
const aiCopyLabel = aiCopied ? "Copied" : "AI Copy";
|
|
1430
|
-
const descriptionNode = endpoint.description ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-muted-foreground text-sm", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1431
|
+
const descriptionNode = endpoint.description ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-muted-foreground text-sm", children: /* @__PURE__ */ jsxRuntime.jsx(chunkB5AWZOHJ_cjs.MarkdownMessage, { content: endpoint.description }) }) : null;
|
|
1431
1432
|
return /* @__PURE__ */ jsxRuntime.jsxs("header", { className: "space-y-3", children: [
|
|
1432
1433
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 flex-wrap", children: [
|
|
1433
1434
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 min-w-0", children: [
|
|
@@ -1469,7 +1470,7 @@ function EndpointHeader({
|
|
|
1469
1470
|
descriptionNode
|
|
1470
1471
|
] });
|
|
1471
1472
|
}
|
|
1472
|
-
|
|
1473
|
+
chunkOLISEQHS_cjs.__name(EndpointHeader, "EndpointHeader");
|
|
1473
1474
|
function ParamRow({ param }) {
|
|
1474
1475
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-3 py-2.5 bg-background space-y-1", children: [
|
|
1475
1476
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-baseline gap-2 flex-wrap", children: [
|
|
@@ -1487,7 +1488,7 @@ function ParamRow({ param }) {
|
|
|
1487
1488
|
param.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground leading-relaxed break-words", children: param.description })
|
|
1488
1489
|
] });
|
|
1489
1490
|
}
|
|
1490
|
-
|
|
1491
|
+
chunkOLISEQHS_cjs.__name(ParamRow, "ParamRow");
|
|
1491
1492
|
function ParamGroup({ label, params }) {
|
|
1492
1493
|
if (params.length === 0) return null;
|
|
1493
1494
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
@@ -1495,14 +1496,14 @@ function ParamGroup({ label, params }) {
|
|
|
1495
1496
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "divide-y border rounded-md overflow-hidden", children: params.map((p) => /* @__PURE__ */ jsxRuntime.jsx(ParamRow, { param: p }, `${label}-${p.name}`)) })
|
|
1496
1497
|
] });
|
|
1497
1498
|
}
|
|
1498
|
-
|
|
1499
|
+
chunkOLISEQHS_cjs.__name(ParamGroup, "ParamGroup");
|
|
1499
1500
|
function Parameters({ pathParams, queryParams }) {
|
|
1500
1501
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1501
1502
|
/* @__PURE__ */ jsxRuntime.jsx(ParamGroup, { label: "Path", params: pathParams }),
|
|
1502
1503
|
/* @__PURE__ */ jsxRuntime.jsx(ParamGroup, { label: "Query", params: queryParams })
|
|
1503
1504
|
] });
|
|
1504
1505
|
}
|
|
1505
|
-
|
|
1506
|
+
chunkOLISEQHS_cjs.__name(Parameters, "Parameters");
|
|
1506
1507
|
|
|
1507
1508
|
// src/tools/OpenapiViewer/components/DocsLayout/EndpointDoc/SchemaFields/buildTree.ts
|
|
1508
1509
|
var MAX_DEPTH = 5;
|
|
@@ -1515,7 +1516,7 @@ function mergeAllOf(branches) {
|
|
|
1515
1516
|
}
|
|
1516
1517
|
return { type: "object", properties, required };
|
|
1517
1518
|
}
|
|
1518
|
-
|
|
1519
|
+
chunkOLISEQHS_cjs.__name(mergeAllOf, "mergeAllOf");
|
|
1519
1520
|
function describeType(node) {
|
|
1520
1521
|
if (node.type === "array") {
|
|
1521
1522
|
const itemLabel = node.items ? describeType(node.items).label : "any";
|
|
@@ -1533,7 +1534,7 @@ function describeType(node) {
|
|
|
1533
1534
|
}
|
|
1534
1535
|
return { label: base, kind: "primitive" };
|
|
1535
1536
|
}
|
|
1536
|
-
|
|
1537
|
+
chunkOLISEQHS_cjs.__name(describeType, "describeType");
|
|
1537
1538
|
function resolveCombinators(node) {
|
|
1538
1539
|
if (Array.isArray(node.allOf) && node.allOf.length > 0) {
|
|
1539
1540
|
return { ...mergeAllOf(node.allOf), description: node.description };
|
|
@@ -1546,7 +1547,7 @@ function resolveCombinators(node) {
|
|
|
1546
1547
|
}
|
|
1547
1548
|
return node;
|
|
1548
1549
|
}
|
|
1549
|
-
|
|
1550
|
+
chunkOLISEQHS_cjs.__name(resolveCombinators, "resolveCombinators");
|
|
1550
1551
|
function buildNode(name, schema, isRequired, depth) {
|
|
1551
1552
|
const resolved = resolveCombinators(schema);
|
|
1552
1553
|
const { label, kind } = describeType(resolved);
|
|
@@ -1571,7 +1572,7 @@ function buildNode(name, schema, isRequired, depth) {
|
|
|
1571
1572
|
}
|
|
1572
1573
|
return node;
|
|
1573
1574
|
}
|
|
1574
|
-
|
|
1575
|
+
chunkOLISEQHS_cjs.__name(buildNode, "buildNode");
|
|
1575
1576
|
function buildSchemaTree(schema) {
|
|
1576
1577
|
if (!schema) return [];
|
|
1577
1578
|
const root = buildNode("", schema, false, 0);
|
|
@@ -1581,7 +1582,7 @@ function buildSchemaTree(schema) {
|
|
|
1581
1582
|
}
|
|
1582
1583
|
return [];
|
|
1583
1584
|
}
|
|
1584
|
-
|
|
1585
|
+
chunkOLISEQHS_cjs.__name(buildSchemaTree, "buildSchemaTree");
|
|
1585
1586
|
function FieldRow({ field, depth, showTreeLine = true }) {
|
|
1586
1587
|
const isExpandable = (field.kind === "object" || field.kind === "array") && Array.isArray(field.children) && field.children.length > 0;
|
|
1587
1588
|
const [open, setOpen] = React12.useState(depth < 2);
|
|
@@ -1645,13 +1646,13 @@ function FieldRow({ field, depth, showTreeLine = true }) {
|
|
|
1645
1646
|
)) })
|
|
1646
1647
|
] });
|
|
1647
1648
|
}
|
|
1648
|
-
|
|
1649
|
+
chunkOLISEQHS_cjs.__name(FieldRow, "FieldRow");
|
|
1649
1650
|
function SchemaFields({ schema }) {
|
|
1650
1651
|
const tree = React12.useMemo(() => buildSchemaTree(schema), [schema]);
|
|
1651
1652
|
if (tree.length === 0) return null;
|
|
1652
1653
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "divide-y border rounded-md overflow-hidden", children: tree.map((node, i) => /* @__PURE__ */ jsxRuntime.jsx(FieldRow, { field: node, depth: 0 }, `${node.name}-${i}`)) });
|
|
1653
1654
|
}
|
|
1654
|
-
|
|
1655
|
+
chunkOLISEQHS_cjs.__name(SchemaFields, "SchemaFields");
|
|
1655
1656
|
function RequestBody({ body }) {
|
|
1656
1657
|
const typeLabel = body.schema ? body.type === "array" ? `array<${body.schema.items?.type ?? "object"}>` : body.type : body.type;
|
|
1657
1658
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
@@ -1662,7 +1663,7 @@ function RequestBody({ body }) {
|
|
|
1662
1663
|
body.schema && /* @__PURE__ */ jsxRuntime.jsx(SchemaFields, { schema: body.schema })
|
|
1663
1664
|
] });
|
|
1664
1665
|
}
|
|
1665
|
-
|
|
1666
|
+
chunkOLISEQHS_cjs.__name(RequestBody, "RequestBody");
|
|
1666
1667
|
var EXAMPLE_JSON_TREE_CONFIG = {
|
|
1667
1668
|
maxAutoExpandDepth: 2,
|
|
1668
1669
|
maxAutoExpandArrayItems: 5,
|
|
@@ -1698,7 +1699,7 @@ function ResponseBody({ example, contentType }) {
|
|
|
1698
1699
|
)
|
|
1699
1700
|
] }),
|
|
1700
1701
|
parsed != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1701
|
-
|
|
1702
|
+
chunkSGP7V2UW_cjs.JsonTree_default,
|
|
1702
1703
|
{
|
|
1703
1704
|
title: "",
|
|
1704
1705
|
data: parsed,
|
|
@@ -1708,7 +1709,7 @@ function ResponseBody({ example, contentType }) {
|
|
|
1708
1709
|
) : /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "p-3 text-[11px] font-mono text-foreground/70 whitespace-pre-wrap break-all leading-relaxed", children: example })
|
|
1709
1710
|
] });
|
|
1710
1711
|
}
|
|
1711
|
-
|
|
1712
|
+
chunkOLISEQHS_cjs.__name(ResponseBody, "ResponseBody");
|
|
1712
1713
|
function StatusTag({ code }) {
|
|
1713
1714
|
const numeric = Number.parseInt(code, 10);
|
|
1714
1715
|
const cls = !Number.isFinite(numeric) ? "bg-muted text-muted-foreground border-border" : numeric >= 500 ? "bg-red-500/10 text-red-600 dark:text-red-400 border-red-500/25" : numeric >= 400 ? "bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/25" : numeric >= 300 ? "bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/25" : "bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border-emerald-500/25";
|
|
@@ -1717,7 +1718,7 @@ function StatusTag({ code }) {
|
|
|
1717
1718
|
cls
|
|
1718
1719
|
), children: code });
|
|
1719
1720
|
}
|
|
1720
|
-
|
|
1721
|
+
chunkOLISEQHS_cjs.__name(StatusTag, "StatusTag");
|
|
1721
1722
|
function ResponseRow({ response }) {
|
|
1722
1723
|
const hasExample = Boolean(response.example);
|
|
1723
1724
|
const numeric = Number.parseInt(response.code, 10);
|
|
@@ -1761,11 +1762,11 @@ function ResponseRow({ response }) {
|
|
|
1761
1762
|
)
|
|
1762
1763
|
] });
|
|
1763
1764
|
}
|
|
1764
|
-
|
|
1765
|
+
chunkOLISEQHS_cjs.__name(ResponseRow, "ResponseRow");
|
|
1765
1766
|
function Responses({ responses }) {
|
|
1766
1767
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "divide-y border rounded-md overflow-hidden", children: responses.map((r) => /* @__PURE__ */ jsxRuntime.jsx(ResponseRow, { response: r }, r.code)) });
|
|
1767
1768
|
}
|
|
1768
|
-
|
|
1769
|
+
chunkOLISEQHS_cjs.__name(Responses, "Responses");
|
|
1769
1770
|
|
|
1770
1771
|
// src/tools/OpenapiViewer/components/DocsLayout/EndpointDoc/Section/defaults.ts
|
|
1771
1772
|
var DEFAULTS_BY_METHOD = {
|
|
@@ -1778,7 +1779,7 @@ var DEFAULTS_BY_METHOD = {
|
|
|
1778
1779
|
function defaultSectionOpen(method, sectionId) {
|
|
1779
1780
|
return DEFAULTS_BY_METHOD[method.toUpperCase()]?.[sectionId] ?? false;
|
|
1780
1781
|
}
|
|
1781
|
-
|
|
1782
|
+
chunkOLISEQHS_cjs.__name(defaultSectionOpen, "defaultSectionOpen");
|
|
1782
1783
|
|
|
1783
1784
|
// src/tools/OpenapiViewer/components/DocsLayout/EndpointDoc/types.ts
|
|
1784
1785
|
var ALL_SECTION_IDS = [
|
|
@@ -1800,11 +1801,11 @@ function parseSectionHash(hash) {
|
|
|
1800
1801
|
if (!ALL_SECTION_IDS.includes(sectionIdCandidate)) return null;
|
|
1801
1802
|
return { endpointId, sectionId: sectionIdCandidate };
|
|
1802
1803
|
}
|
|
1803
|
-
|
|
1804
|
+
chunkOLISEQHS_cjs.__name(parseSectionHash, "parseSectionHash");
|
|
1804
1805
|
function buildSectionHash(endpointId, sectionId) {
|
|
1805
1806
|
return `section=${endpointId}.${sectionId}`;
|
|
1806
1807
|
}
|
|
1807
|
-
|
|
1808
|
+
chunkOLISEQHS_cjs.__name(buildSectionHash, "buildSectionHash");
|
|
1808
1809
|
function useSectionHashRouter() {
|
|
1809
1810
|
const setSectionOpen = useEndpointDocStore((s) => s.setSectionOpen);
|
|
1810
1811
|
React12.useEffect(() => {
|
|
@@ -1818,17 +1819,17 @@ function useSectionHashRouter() {
|
|
|
1818
1819
|
el?.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
1819
1820
|
});
|
|
1820
1821
|
}
|
|
1821
|
-
|
|
1822
|
+
chunkOLISEQHS_cjs.__name(apply, "apply");
|
|
1822
1823
|
apply();
|
|
1823
1824
|
window.addEventListener("hashchange", apply);
|
|
1824
1825
|
return () => window.removeEventListener("hashchange", apply);
|
|
1825
1826
|
}, [setSectionOpen]);
|
|
1826
1827
|
}
|
|
1827
|
-
|
|
1828
|
+
chunkOLISEQHS_cjs.__name(useSectionHashRouter, "useSectionHashRouter");
|
|
1828
1829
|
function SectionHeader({ sectionId, title, badge, open, onToggle }) {
|
|
1829
1830
|
const { endpointId } = useEndpointDocContext();
|
|
1830
1831
|
const [copied, setCopied] = React12.useState(false);
|
|
1831
|
-
const copyHash = /* @__PURE__ */
|
|
1832
|
+
const copyHash = /* @__PURE__ */ chunkOLISEQHS_cjs.__name((e) => {
|
|
1832
1833
|
e.stopPropagation();
|
|
1833
1834
|
if (typeof window === "undefined") return;
|
|
1834
1835
|
const hash = buildSectionHash(endpointId, sectionId);
|
|
@@ -1885,7 +1886,7 @@ function SectionHeader({ sectionId, title, badge, open, onToggle }) {
|
|
|
1885
1886
|
}
|
|
1886
1887
|
);
|
|
1887
1888
|
}
|
|
1888
|
-
|
|
1889
|
+
chunkOLISEQHS_cjs.__name(SectionHeader, "SectionHeader");
|
|
1889
1890
|
function Section({ id, title, badge, children }) {
|
|
1890
1891
|
const { endpointId, method } = useEndpointDocContext();
|
|
1891
1892
|
const defaultOpen = defaultSectionOpen(method, id);
|
|
@@ -1905,7 +1906,7 @@ function Section({ id, title, badge, children }) {
|
|
|
1905
1906
|
open && /* @__PURE__ */ jsxRuntime.jsx("div", { children })
|
|
1906
1907
|
] });
|
|
1907
1908
|
}
|
|
1908
|
-
|
|
1909
|
+
chunkOLISEQHS_cjs.__name(Section, "Section");
|
|
1909
1910
|
function EndpointDoc({ endpoint, isLoadedInPlayground, onTryIt, schemaId }) {
|
|
1910
1911
|
const scopedSchemaId = schemaId ?? endpoint.schemaId ?? null;
|
|
1911
1912
|
const anchor = endpointAnchor(endpoint, scopedSchemaId);
|
|
@@ -1962,14 +1963,14 @@ function EndpointDoc({ endpoint, isLoadedInPlayground, onTryIt, schemaId }) {
|
|
|
1962
1963
|
}
|
|
1963
1964
|
) });
|
|
1964
1965
|
}
|
|
1965
|
-
|
|
1966
|
-
var readNavbarOffset = /* @__PURE__ */
|
|
1966
|
+
chunkOLISEQHS_cjs.__name(EndpointDoc, "EndpointDoc");
|
|
1967
|
+
var readNavbarOffset = /* @__PURE__ */ chunkOLISEQHS_cjs.__name(() => {
|
|
1967
1968
|
if (typeof document === "undefined") return 0;
|
|
1968
1969
|
const raw = getComputedStyle(document.documentElement).getPropertyValue("--navbar-height");
|
|
1969
1970
|
const parsed = parseInt(raw || "", 10);
|
|
1970
1971
|
return Number.isFinite(parsed) ? parsed : 0;
|
|
1971
1972
|
}, "readNavbarOffset");
|
|
1972
|
-
var isSameEndpoint = /* @__PURE__ */
|
|
1973
|
+
var isSameEndpoint = /* @__PURE__ */ chunkOLISEQHS_cjs.__name((a, b) => a !== null && a.method === b.method && a.path === b.path, "isSameEndpoint");
|
|
1973
1974
|
function buildEndpointRow(ep, loadedEndpoint, schemaId) {
|
|
1974
1975
|
const keySchema = schemaId ? `${schemaId}-` : "";
|
|
1975
1976
|
return {
|
|
@@ -1979,7 +1980,7 @@ function buildEndpointRow(ep, loadedEndpoint, schemaId) {
|
|
|
1979
1980
|
schemaId
|
|
1980
1981
|
};
|
|
1981
1982
|
}
|
|
1982
|
-
|
|
1983
|
+
chunkOLISEQHS_cjs.__name(buildEndpointRow, "buildEndpointRow");
|
|
1983
1984
|
function buildSchemaSectionVM(entry, selectedVersion, loadedEndpoint) {
|
|
1984
1985
|
const title = entry.info?.title ?? entry.source.name;
|
|
1985
1986
|
const version = entry.info?.version ?? null;
|
|
@@ -1990,7 +1991,7 @@ function buildSchemaSectionVM(entry, selectedVersion, loadedEndpoint) {
|
|
|
1990
1991
|
} else if (entry.error) {
|
|
1991
1992
|
state = { kind: "error", message: entry.error };
|
|
1992
1993
|
} else {
|
|
1993
|
-
const visible =
|
|
1994
|
+
const visible = chunkQW4RBGHN_cjs.deduplicateEndpoints(entry.endpoints, selectedVersion);
|
|
1994
1995
|
state = visible.length === 0 ? { kind: "empty" } : {
|
|
1995
1996
|
kind: "ready",
|
|
1996
1997
|
rows: visible.map((ep) => buildEndpointRow(ep, loadedEndpoint, entry.source.id))
|
|
@@ -2007,8 +2008,8 @@ function buildSchemaSectionVM(entry, selectedVersion, loadedEndpoint) {
|
|
|
2007
2008
|
allEndpoints: entry.endpoints
|
|
2008
2009
|
};
|
|
2009
2010
|
}
|
|
2010
|
-
|
|
2011
|
-
var DocsView = React12__default.default.forwardRef(/* @__PURE__ */
|
|
2011
|
+
chunkOLISEQHS_cjs.__name(buildSchemaSectionVM, "buildSchemaSectionVM");
|
|
2012
|
+
var DocsView = React12__default.default.forwardRef(/* @__PURE__ */ chunkOLISEQHS_cjs.__name(function DocsView2(props, ref) {
|
|
2012
2013
|
const scrollRef = React12.useRef(null);
|
|
2013
2014
|
const scrollTargetRef = React12.useRef(null);
|
|
2014
2015
|
const { onActiveChange } = props;
|
|
@@ -2041,7 +2042,7 @@ var DocsView = React12__default.default.forwardRef(/* @__PURE__ */ chunkWGEGR3DF
|
|
|
2041
2042
|
if (!target) return;
|
|
2042
2043
|
let rafId = 0;
|
|
2043
2044
|
let lastActive = null;
|
|
2044
|
-
const compute = /* @__PURE__ */
|
|
2045
|
+
const compute = /* @__PURE__ */ chunkOLISEQHS_cjs.__name(() => {
|
|
2045
2046
|
rafId = 0;
|
|
2046
2047
|
const sections = root.querySelectorAll("[data-endpoint-anchor]");
|
|
2047
2048
|
if (sections.length === 0) return;
|
|
@@ -2063,7 +2064,7 @@ var DocsView = React12__default.default.forwardRef(/* @__PURE__ */ chunkWGEGR3DF
|
|
|
2063
2064
|
onActiveChange(anchor, active?.dataset.schemaId || null);
|
|
2064
2065
|
}
|
|
2065
2066
|
}, "compute");
|
|
2066
|
-
const onScroll = /* @__PURE__ */
|
|
2067
|
+
const onScroll = /* @__PURE__ */ chunkOLISEQHS_cjs.__name(() => {
|
|
2067
2068
|
if (rafId) return;
|
|
2068
2069
|
rafId = requestAnimationFrame(compute);
|
|
2069
2070
|
}, "onScroll");
|
|
@@ -2092,7 +2093,7 @@ function SelectorBody({
|
|
|
2092
2093
|
onTryEndpoint
|
|
2093
2094
|
}) {
|
|
2094
2095
|
const visibleEndpoints = React12.useMemo(
|
|
2095
|
-
() =>
|
|
2096
|
+
() => chunkQW4RBGHN_cjs.deduplicateEndpoints(endpoints, selectedVersion),
|
|
2096
2097
|
[endpoints, selectedVersion]
|
|
2097
2098
|
);
|
|
2098
2099
|
const rows = React12.useMemo(
|
|
@@ -2122,7 +2123,7 @@ function SelectorBody({
|
|
|
2122
2123
|
)) })
|
|
2123
2124
|
] }) });
|
|
2124
2125
|
}
|
|
2125
|
-
|
|
2126
|
+
chunkOLISEQHS_cjs.__name(SelectorBody, "SelectorBody");
|
|
2126
2127
|
function SectionsBody({
|
|
2127
2128
|
scrollRef,
|
|
2128
2129
|
schemasData,
|
|
@@ -2136,8 +2137,8 @@ function SectionsBody({
|
|
|
2136
2137
|
);
|
|
2137
2138
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: scrollRef, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto w-full max-w-[860px] px-6 md:px-10 lg:px-14 py-12 space-y-16", children: sections.map((section) => /* @__PURE__ */ jsxRuntime.jsx(SchemaSectionView, { section, onTryEndpoint }, section.schemaId)) }) });
|
|
2138
2139
|
}
|
|
2139
|
-
|
|
2140
|
-
var SchemaSectionView = React12__default.default.memo(/* @__PURE__ */
|
|
2140
|
+
chunkOLISEQHS_cjs.__name(SectionsBody, "SectionsBody");
|
|
2141
|
+
var SchemaSectionView = React12__default.default.memo(/* @__PURE__ */ chunkOLISEQHS_cjs.__name(function SchemaSectionView2({
|
|
2141
2142
|
section,
|
|
2142
2143
|
onTryEndpoint
|
|
2143
2144
|
}) {
|
|
@@ -2199,7 +2200,7 @@ function SchemaSectionStateView({
|
|
|
2199
2200
|
)) });
|
|
2200
2201
|
}
|
|
2201
2202
|
}
|
|
2202
|
-
|
|
2203
|
+
chunkOLISEQHS_cjs.__name(SchemaSectionStateView, "SchemaSectionStateView");
|
|
2203
2204
|
var MAX_DEPTH2 = 6;
|
|
2204
2205
|
function defaultForSchema(schema) {
|
|
2205
2206
|
if (!schema) return null;
|
|
@@ -2232,7 +2233,7 @@ function defaultForSchema(schema) {
|
|
|
2232
2233
|
return "";
|
|
2233
2234
|
}
|
|
2234
2235
|
}
|
|
2235
|
-
|
|
2236
|
+
chunkOLISEQHS_cjs.__name(defaultForSchema, "defaultForSchema");
|
|
2236
2237
|
function BodyFormEditor({ schema, value, onChange }) {
|
|
2237
2238
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2238
2239
|
SchemaField,
|
|
@@ -2245,7 +2246,7 @@ function BodyFormEditor({ schema, value, onChange }) {
|
|
|
2245
2246
|
}
|
|
2246
2247
|
);
|
|
2247
2248
|
}
|
|
2248
|
-
|
|
2249
|
+
chunkOLISEQHS_cjs.__name(BodyFormEditor, "BodyFormEditor");
|
|
2249
2250
|
function SchemaField({ schema, value, onChange, depth, required, label }) {
|
|
2250
2251
|
if (depth > MAX_DEPTH2) {
|
|
2251
2252
|
return /* @__PURE__ */ jsxRuntime.jsx(RawJsonField, { label, value, onChange });
|
|
@@ -2271,7 +2272,7 @@ function SchemaField({ schema, value, onChange, depth, required, label }) {
|
|
|
2271
2272
|
return /* @__PURE__ */ jsxRuntime.jsx(StringField, { value, onChange, label, schema, required });
|
|
2272
2273
|
}
|
|
2273
2274
|
}
|
|
2274
|
-
|
|
2275
|
+
chunkOLISEQHS_cjs.__name(SchemaField, "SchemaField");
|
|
2275
2276
|
function FieldHeader({
|
|
2276
2277
|
label,
|
|
2277
2278
|
type,
|
|
@@ -2288,7 +2289,7 @@ function FieldHeader({
|
|
|
2288
2289
|
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[10px] text-muted-foreground/70 leading-snug", children: description })
|
|
2289
2290
|
] });
|
|
2290
2291
|
}
|
|
2291
|
-
|
|
2292
|
+
chunkOLISEQHS_cjs.__name(FieldHeader, "FieldHeader");
|
|
2292
2293
|
function StringField({
|
|
2293
2294
|
value,
|
|
2294
2295
|
onChange,
|
|
@@ -2311,7 +2312,7 @@ function StringField({
|
|
|
2311
2312
|
)
|
|
2312
2313
|
] });
|
|
2313
2314
|
}
|
|
2314
|
-
|
|
2315
|
+
chunkOLISEQHS_cjs.__name(StringField, "StringField");
|
|
2315
2316
|
function NumberField({
|
|
2316
2317
|
value,
|
|
2317
2318
|
onChange,
|
|
@@ -2340,7 +2341,7 @@ function NumberField({
|
|
|
2340
2341
|
)
|
|
2341
2342
|
] });
|
|
2342
2343
|
}
|
|
2343
|
-
|
|
2344
|
+
chunkOLISEQHS_cjs.__name(NumberField, "NumberField");
|
|
2344
2345
|
function BooleanField({
|
|
2345
2346
|
value,
|
|
2346
2347
|
onChange,
|
|
@@ -2354,7 +2355,7 @@ function BooleanField({
|
|
|
2354
2355
|
/* @__PURE__ */ jsxRuntime.jsx(components.Switch, { checked: bool, onCheckedChange: onChange, className: "mt-0.5 shrink-0" })
|
|
2355
2356
|
] });
|
|
2356
2357
|
}
|
|
2357
|
-
|
|
2358
|
+
chunkOLISEQHS_cjs.__name(BooleanField, "BooleanField");
|
|
2358
2359
|
function EnumField({
|
|
2359
2360
|
schema,
|
|
2360
2361
|
value,
|
|
@@ -2386,7 +2387,7 @@ function EnumField({
|
|
|
2386
2387
|
)
|
|
2387
2388
|
] });
|
|
2388
2389
|
}
|
|
2389
|
-
|
|
2390
|
+
chunkOLISEQHS_cjs.__name(EnumField, "EnumField");
|
|
2390
2391
|
function RawJsonField({
|
|
2391
2392
|
label,
|
|
2392
2393
|
value,
|
|
@@ -2418,7 +2419,7 @@ function RawJsonField({
|
|
|
2418
2419
|
)
|
|
2419
2420
|
] });
|
|
2420
2421
|
}
|
|
2421
|
-
|
|
2422
|
+
chunkOLISEQHS_cjs.__name(RawJsonField, "RawJsonField");
|
|
2422
2423
|
function ObjectField({
|
|
2423
2424
|
schema,
|
|
2424
2425
|
value,
|
|
@@ -2458,7 +2459,7 @@ function ObjectField({
|
|
|
2458
2459
|
)) })
|
|
2459
2460
|
] });
|
|
2460
2461
|
}
|
|
2461
|
-
|
|
2462
|
+
chunkOLISEQHS_cjs.__name(ObjectField, "ObjectField");
|
|
2462
2463
|
function ArrayField({
|
|
2463
2464
|
schema,
|
|
2464
2465
|
value,
|
|
@@ -2469,9 +2470,9 @@ function ArrayField({
|
|
|
2469
2470
|
}) {
|
|
2470
2471
|
const arr = Array.isArray(value) ? value : [];
|
|
2471
2472
|
const items = schema.items ?? { type: "string" };
|
|
2472
|
-
const addItem = /* @__PURE__ */
|
|
2473
|
-
const removeAt = /* @__PURE__ */
|
|
2474
|
-
const setAt = /* @__PURE__ */
|
|
2473
|
+
const addItem = /* @__PURE__ */ chunkOLISEQHS_cjs.__name(() => onChange([...arr, defaultForSchema(items)]), "addItem");
|
|
2474
|
+
const removeAt = /* @__PURE__ */ chunkOLISEQHS_cjs.__name((i) => onChange(arr.filter((_, idx) => idx !== i)), "removeAt");
|
|
2475
|
+
const setAt = /* @__PURE__ */ chunkOLISEQHS_cjs.__name((i) => (next) => onChange(arr.map((v, idx) => idx === i ? next : v)), "setAt");
|
|
2475
2476
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
2476
2477
|
label && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-baseline gap-1.5", children: [
|
|
2477
2478
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-[11px] text-foreground/80", children: label }),
|
|
@@ -2518,9 +2519,9 @@ function ArrayField({
|
|
|
2518
2519
|
] })
|
|
2519
2520
|
] });
|
|
2520
2521
|
}
|
|
2521
|
-
|
|
2522
|
+
chunkOLISEQHS_cjs.__name(ArrayField, "ArrayField");
|
|
2522
2523
|
function EndpointResetButton() {
|
|
2523
|
-
const { state, setParameters, setRequestBody } =
|
|
2524
|
+
const { state, setParameters, setRequestBody } = chunkQW4RBGHN_cjs.usePlaygroundContext();
|
|
2524
2525
|
const ep = state.selectedEndpoint;
|
|
2525
2526
|
const { reset } = useEndpointDraft(state.activeSchemaId, ep);
|
|
2526
2527
|
const hasDraft = Object.keys(state.parameters).length > 0 || state.requestBody.length > 0;
|
|
@@ -2547,13 +2548,13 @@ function EndpointResetButton() {
|
|
|
2547
2548
|
}
|
|
2548
2549
|
);
|
|
2549
2550
|
}
|
|
2550
|
-
|
|
2551
|
+
chunkOLISEQHS_cjs.__name(EndpointResetButton, "EndpointResetButton");
|
|
2551
2552
|
function ParamFields({ label, params }) {
|
|
2552
|
-
const { state, setParameters } =
|
|
2553
|
+
const { state, setParameters } = chunkQW4RBGHN_cjs.usePlaygroundContext();
|
|
2553
2554
|
function handleChange(name, value) {
|
|
2554
2555
|
setParameters({ ...state.parameters, [name]: value });
|
|
2555
2556
|
}
|
|
2556
|
-
|
|
2557
|
+
chunkOLISEQHS_cjs.__name(handleChange, "handleChange");
|
|
2557
2558
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2558
2559
|
/* @__PURE__ */ jsxRuntime.jsx(SectionLabel, { children: label }),
|
|
2559
2560
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: params.map((p) => {
|
|
@@ -2578,7 +2579,7 @@ function ParamFields({ label, params }) {
|
|
|
2578
2579
|
}) })
|
|
2579
2580
|
] });
|
|
2580
2581
|
}
|
|
2581
|
-
|
|
2582
|
+
chunkOLISEQHS_cjs.__name(ParamFields, "ParamFields");
|
|
2582
2583
|
function RequestPanel() {
|
|
2583
2584
|
const {
|
|
2584
2585
|
state,
|
|
@@ -2589,7 +2590,7 @@ function RequestPanel() {
|
|
|
2589
2590
|
setSelectedApiKey,
|
|
2590
2591
|
setManualApiToken,
|
|
2591
2592
|
sendRequest
|
|
2592
|
-
} =
|
|
2593
|
+
} = chunkQW4RBGHN_cjs.usePlaygroundContext();
|
|
2593
2594
|
const apiKeyOptions = React12.useMemo(
|
|
2594
2595
|
() => apiKeys.map((k) => ({
|
|
2595
2596
|
value: k.id,
|
|
@@ -2602,12 +2603,12 @@ function RequestPanel() {
|
|
|
2602
2603
|
);
|
|
2603
2604
|
const hasApiKeys = apiKeyOptions.length > 0;
|
|
2604
2605
|
const ep = state.selectedEndpoint;
|
|
2605
|
-
const isJsonValid = state.requestBody ?
|
|
2606
|
+
const isJsonValid = state.requestBody ? chunkQW4RBGHN_cjs.isValidJson(state.requestBody) : true;
|
|
2606
2607
|
const curlCommand = React12.useMemo(() => {
|
|
2607
2608
|
if (!state.requestUrl) return "";
|
|
2608
|
-
const absoluteUrl =
|
|
2609
|
-
const apiKey = state.selectedApiKey ?
|
|
2610
|
-
const hdrs =
|
|
2609
|
+
const absoluteUrl = chunkQW4RBGHN_cjs.resolveAbsolute(state.requestUrl);
|
|
2610
|
+
const apiKey = state.selectedApiKey ? chunkQW4RBGHN_cjs.findApiKeyById(apiKeys, state.selectedApiKey) : null;
|
|
2611
|
+
const hdrs = chunkQW4RBGHN_cjs.parseRequestHeaders(state.requestHeaders);
|
|
2611
2612
|
if (apiKey) hdrs["X-API-Key"] = apiKey.secret || apiKey.id;
|
|
2612
2613
|
let cmd = `curl -X ${state.requestMethod} "${absoluteUrl}"`;
|
|
2613
2614
|
Object.entries(hdrs).forEach(([k, v]) => {
|
|
@@ -2629,13 +2630,13 @@ function RequestPanel() {
|
|
|
2629
2630
|
[ep]
|
|
2630
2631
|
);
|
|
2631
2632
|
state.loading || !state.requestUrl || !isJsonValid;
|
|
2632
|
-
const displayUrl =
|
|
2633
|
+
const displayUrl = chunkQW4RBGHN_cjs.resolveAbsolute(state.requestUrl || ep?.path || "");
|
|
2633
2634
|
const hasBody = ep?.method !== "GET";
|
|
2634
2635
|
const bodyType = ep?.requestBody?.type ?? "";
|
|
2635
2636
|
const hasPathParams = pathParams.length > 0;
|
|
2636
2637
|
const hasQueryParams = queryParams.length > 0;
|
|
2637
2638
|
const hasCurl = Boolean(curlCommand);
|
|
2638
|
-
const epPath = ep ?
|
|
2639
|
+
const epPath = ep ? chunkQW4RBGHN_cjs.relativePath(ep.path) : "";
|
|
2639
2640
|
const urlChanged = displayUrl !== "" && displayUrl !== epPath;
|
|
2640
2641
|
if (!ep) {
|
|
2641
2642
|
return /* @__PURE__ */ jsxRuntime.jsx(EmptyState, { icon: lucideReact.Send, text: "Select an endpoint to build a request" });
|
|
@@ -2725,7 +2726,7 @@ function RequestPanel() {
|
|
|
2725
2726
|
"cURL"
|
|
2726
2727
|
] }),
|
|
2727
2728
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2728
|
-
|
|
2729
|
+
chunkB5AWZOHJ_cjs.PrettyCode_default,
|
|
2729
2730
|
{
|
|
2730
2731
|
data: curlCommand,
|
|
2731
2732
|
language: "bash",
|
|
@@ -2739,7 +2740,7 @@ function RequestPanel() {
|
|
|
2739
2740
|
] })
|
|
2740
2741
|
] });
|
|
2741
2742
|
}
|
|
2742
|
-
|
|
2743
|
+
chunkOLISEQHS_cjs.__name(RequestPanel, "RequestPanel");
|
|
2743
2744
|
function BodySection({ schema, bodyType, bodyDescription, value, onChange, isJsonValid }) {
|
|
2744
2745
|
const hasSchema = !!schema;
|
|
2745
2746
|
const [mode, setMode] = React12__default.default.useState(hasSchema ? "form" : "json");
|
|
@@ -2811,7 +2812,7 @@ function BodySection({ schema, bodyType, bodyDescription, value, onChange, isJso
|
|
|
2811
2812
|
] })
|
|
2812
2813
|
] });
|
|
2813
2814
|
}
|
|
2814
|
-
|
|
2815
|
+
chunkOLISEQHS_cjs.__name(BodySection, "BodySection");
|
|
2815
2816
|
function ModeButton({
|
|
2816
2817
|
active,
|
|
2817
2818
|
onClick,
|
|
@@ -2830,7 +2831,7 @@ function ModeButton({
|
|
|
2830
2831
|
}
|
|
2831
2832
|
);
|
|
2832
2833
|
}
|
|
2833
|
-
|
|
2834
|
+
chunkOLISEQHS_cjs.__name(ModeButton, "ModeButton");
|
|
2834
2835
|
function looksLikeSpaShell(html) {
|
|
2835
2836
|
const bodyMatch = html.match(/<body[^>]*>([\s\S]*?)<\/body>/i);
|
|
2836
2837
|
const bodyContent = (bodyMatch?.[1] ?? html).replace(/<script[\s\S]*?<\/script>/gi, "").replace(/<!--[\s\S]*?-->/g, "").trim();
|
|
@@ -2839,7 +2840,7 @@ function looksLikeSpaShell(html) {
|
|
|
2839
2840
|
if (singleEmptyContainer.test(bodyContent)) return true;
|
|
2840
2841
|
return false;
|
|
2841
2842
|
}
|
|
2842
|
-
|
|
2843
|
+
chunkOLISEQHS_cjs.__name(looksLikeSpaShell, "looksLikeSpaShell");
|
|
2843
2844
|
function PreviewView({ html }) {
|
|
2844
2845
|
const isSpaShell = React12.useMemo(() => looksLikeSpaShell(html), [html]);
|
|
2845
2846
|
if (!html) {
|
|
@@ -2889,7 +2890,7 @@ function PreviewView({ html }) {
|
|
|
2889
2890
|
)
|
|
2890
2891
|
] });
|
|
2891
2892
|
}
|
|
2892
|
-
|
|
2893
|
+
chunkOLISEQHS_cjs.__name(PreviewView, "PreviewView");
|
|
2893
2894
|
var JSON_TREE_CONFIG = {
|
|
2894
2895
|
maxAutoExpandDepth: 2,
|
|
2895
2896
|
maxAutoExpandArrayItems: 10,
|
|
@@ -2904,13 +2905,13 @@ var JSON_TREE_CONFIG = {
|
|
|
2904
2905
|
};
|
|
2905
2906
|
function PrettyView({ treeData, rawText, detected }) {
|
|
2906
2907
|
if (detected.kind === "json" && treeData != null) {
|
|
2907
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2908
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSGP7V2UW_cjs.JsonTree_default, { title: "Response Body", data: treeData, config: JSON_TREE_CONFIG });
|
|
2908
2909
|
}
|
|
2909
2910
|
if (!rawText) {
|
|
2910
2911
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-10 text-center text-xs text-muted-foreground", children: "Empty response body" });
|
|
2911
2912
|
}
|
|
2912
2913
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2913
|
-
|
|
2914
|
+
chunkB5AWZOHJ_cjs.PrettyCode_default,
|
|
2914
2915
|
{
|
|
2915
2916
|
data: rawText,
|
|
2916
2917
|
language: detected.prism,
|
|
@@ -2919,14 +2920,14 @@ function PrettyView({ treeData, rawText, detected }) {
|
|
|
2919
2920
|
}
|
|
2920
2921
|
);
|
|
2921
2922
|
}
|
|
2922
|
-
|
|
2923
|
+
chunkOLISEQHS_cjs.__name(PrettyView, "PrettyView");
|
|
2923
2924
|
function RawView({ rawText }) {
|
|
2924
2925
|
if (!rawText) {
|
|
2925
2926
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-10 text-center text-xs text-muted-foreground", children: "Empty response body" });
|
|
2926
2927
|
}
|
|
2927
2928
|
return /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "p-4 text-[11px] font-mono text-foreground/70 whitespace-pre-wrap break-all leading-relaxed", children: rawText });
|
|
2928
2929
|
}
|
|
2929
|
-
|
|
2930
|
+
chunkOLISEQHS_cjs.__name(RawView, "RawView");
|
|
2930
2931
|
function StatusBar({ response, rawText, contentType }) {
|
|
2931
2932
|
const sizeKb = rawText ? `${(rawText.length / 1024).toFixed(1)} KB` : "";
|
|
2932
2933
|
const duration = response.duration != null ? `${response.duration}ms` : "";
|
|
@@ -2952,7 +2953,7 @@ function StatusBar({ response, rawText, contentType }) {
|
|
|
2952
2953
|
)
|
|
2953
2954
|
] });
|
|
2954
2955
|
}
|
|
2955
|
-
|
|
2956
|
+
chunkOLISEQHS_cjs.__name(StatusBar, "StatusBar");
|
|
2956
2957
|
|
|
2957
2958
|
// src/tools/OpenapiViewer/components/shared/ResponsePanel/detectContent.ts
|
|
2958
2959
|
function normaliseContentType(raw) {
|
|
@@ -2960,7 +2961,7 @@ function normaliseContentType(raw) {
|
|
|
2960
2961
|
const semi = raw.indexOf(";");
|
|
2961
2962
|
return (semi === -1 ? raw : raw.slice(0, semi)).trim().toLowerCase();
|
|
2962
2963
|
}
|
|
2963
|
-
|
|
2964
|
+
chunkOLISEQHS_cjs.__name(normaliseContentType, "normaliseContentType");
|
|
2964
2965
|
function readContentType(headers) {
|
|
2965
2966
|
if (!headers) return null;
|
|
2966
2967
|
if (typeof headers.get === "function") {
|
|
@@ -2975,7 +2976,7 @@ function readContentType(headers) {
|
|
|
2975
2976
|
}
|
|
2976
2977
|
return null;
|
|
2977
2978
|
}
|
|
2978
|
-
|
|
2979
|
+
chunkOLISEQHS_cjs.__name(readContentType, "readContentType");
|
|
2979
2980
|
function kindFromContentType(mime) {
|
|
2980
2981
|
if (!mime) return "text";
|
|
2981
2982
|
if (mime === "application/json" || mime.endsWith("+json")) return "json";
|
|
@@ -2985,7 +2986,7 @@ function kindFromContentType(mime) {
|
|
|
2985
2986
|
if (mime === "application/javascript" || mime === "text/javascript" || mime === "application/x-javascript") return "javascript";
|
|
2986
2987
|
return "text";
|
|
2987
2988
|
}
|
|
2988
|
-
|
|
2989
|
+
chunkOLISEQHS_cjs.__name(kindFromContentType, "kindFromContentType");
|
|
2989
2990
|
function kindFromBody(body) {
|
|
2990
2991
|
const trimmed = body.trimStart();
|
|
2991
2992
|
if (!trimmed) return null;
|
|
@@ -3000,7 +3001,7 @@ function kindFromBody(body) {
|
|
|
3000
3001
|
}
|
|
3001
3002
|
return null;
|
|
3002
3003
|
}
|
|
3003
|
-
|
|
3004
|
+
chunkOLISEQHS_cjs.__name(kindFromBody, "kindFromBody");
|
|
3004
3005
|
var PRISM_BY_KIND = {
|
|
3005
3006
|
json: "json",
|
|
3006
3007
|
// ``markup`` is Prism's HTML/XML grammar — there isn't a separate
|
|
@@ -3021,7 +3022,7 @@ function detectContent(headers, rawBody) {
|
|
|
3021
3022
|
contentType
|
|
3022
3023
|
};
|
|
3023
3024
|
}
|
|
3024
|
-
|
|
3025
|
+
chunkOLISEQHS_cjs.__name(detectContent, "detectContent");
|
|
3025
3026
|
|
|
3026
3027
|
// src/tools/OpenapiViewer/components/shared/ResponsePanel/useResponseView.ts
|
|
3027
3028
|
function useResponseView(data, headers) {
|
|
@@ -3062,7 +3063,7 @@ function useResponseView(data, headers) {
|
|
|
3062
3063
|
};
|
|
3063
3064
|
}, [data, headers]);
|
|
3064
3065
|
}
|
|
3065
|
-
|
|
3066
|
+
chunkOLISEQHS_cjs.__name(useResponseView, "useResponseView");
|
|
3066
3067
|
var LABELS = {
|
|
3067
3068
|
pretty: "Pretty",
|
|
3068
3069
|
raw: "Raw",
|
|
@@ -3084,9 +3085,9 @@ function ViewTabs({ active, onChange, showPreview }) {
|
|
|
3084
3085
|
t
|
|
3085
3086
|
)) });
|
|
3086
3087
|
}
|
|
3087
|
-
|
|
3088
|
+
chunkOLISEQHS_cjs.__name(ViewTabs, "ViewTabs");
|
|
3088
3089
|
function ResponsePanel() {
|
|
3089
|
-
const { state } =
|
|
3090
|
+
const { state } = chunkQW4RBGHN_cjs.usePlaygroundContext();
|
|
3090
3091
|
const { response, loading, selectedEndpoint } = state;
|
|
3091
3092
|
const { treeData, rawText, detected } = useResponseView(response?.data, response?.headers);
|
|
3092
3093
|
const showPreview = detected.kind === "html";
|
|
@@ -3125,17 +3126,17 @@ function ResponsePanel() {
|
|
|
3125
3126
|
] })
|
|
3126
3127
|
] });
|
|
3127
3128
|
}
|
|
3128
|
-
|
|
3129
|
+
chunkOLISEQHS_cjs.__name(ResponsePanel, "ResponsePanel");
|
|
3129
3130
|
function SendButton({ className }) {
|
|
3130
|
-
const { state, sendRequest } =
|
|
3131
|
+
const { state, sendRequest } = chunkQW4RBGHN_cjs.usePlaygroundContext();
|
|
3131
3132
|
const ep = state.selectedEndpoint;
|
|
3132
3133
|
const builder = React12.useMemo(
|
|
3133
|
-
() => ep ? new
|
|
3134
|
+
() => ep ? new chunkQW4RBGHN_cjs.UrlBuilder(ep, state.parameters) : null,
|
|
3134
3135
|
[ep, state.parameters]
|
|
3135
3136
|
);
|
|
3136
3137
|
const missingRequired = builder?.missingRequired() ?? [];
|
|
3137
3138
|
const unsubstituted = builder?.unfilledPlaceholders() ?? [];
|
|
3138
|
-
const isJsonValid = state.requestBody ?
|
|
3139
|
+
const isJsonValid = state.requestBody ? chunkQW4RBGHN_cjs.isValidJson(state.requestBody) : true;
|
|
3139
3140
|
const blockers = [];
|
|
3140
3141
|
if (missingRequired.length > 0) {
|
|
3141
3142
|
blockers.push(
|
|
@@ -3171,11 +3172,11 @@ function SendButton({ className }) {
|
|
|
3171
3172
|
)
|
|
3172
3173
|
] });
|
|
3173
3174
|
}
|
|
3174
|
-
|
|
3175
|
+
chunkOLISEQHS_cjs.__name(SendButton, "SendButton");
|
|
3175
3176
|
var WIDTH_NARROW = "clamp(380px, 30vw, 480px)";
|
|
3176
3177
|
var WIDTH_WIDE = "clamp(720px, 60vw, 1280px)";
|
|
3177
3178
|
function SlideInPlayground({ open, onClose }) {
|
|
3178
|
-
const { state } =
|
|
3179
|
+
const { state } = chunkQW4RBGHN_cjs.usePlaygroundContext();
|
|
3179
3180
|
const ep = state.selectedEndpoint;
|
|
3180
3181
|
const showResponse = state.response !== null || state.loading;
|
|
3181
3182
|
const width = showResponse ? WIDTH_WIDE : WIDTH_NARROW;
|
|
@@ -3184,7 +3185,7 @@ function SlideInPlayground({ open, onClose }) {
|
|
|
3184
3185
|
/* @__PURE__ */ jsxRuntime.jsx(components.SidePanel.Title, { children: "Playground" }),
|
|
3185
3186
|
ep && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: [
|
|
3186
3187
|
/* @__PURE__ */ jsxRuntime.jsx(MethodBadge, { method: ep.method }),
|
|
3187
|
-
/* @__PURE__ */ jsxRuntime.jsx("code", { className: "font-mono text-[11px] text-muted-foreground truncate", children:
|
|
3188
|
+
/* @__PURE__ */ jsxRuntime.jsx("code", { className: "font-mono text-[11px] text-muted-foreground truncate", children: chunkQW4RBGHN_cjs.relativePath(ep.path) })
|
|
3188
3189
|
] }),
|
|
3189
3190
|
/* @__PURE__ */ jsxRuntime.jsx(components.SidePanel.Close, { className: "ml-auto" })
|
|
3190
3191
|
] }),
|
|
@@ -3206,9 +3207,9 @@ function SlideInPlayground({ open, onClose }) {
|
|
|
3206
3207
|
)
|
|
3207
3208
|
] }) });
|
|
3208
3209
|
}
|
|
3209
|
-
|
|
3210
|
+
chunkOLISEQHS_cjs.__name(SlideInPlayground, "SlideInPlayground");
|
|
3210
3211
|
function TryItSheet({ open, onOpenChange }) {
|
|
3211
|
-
const { state } =
|
|
3212
|
+
const { state } = chunkQW4RBGHN_cjs.usePlaygroundContext();
|
|
3212
3213
|
const showResponse = state.response !== null || state.loading;
|
|
3213
3214
|
return /* @__PURE__ */ jsxRuntime.jsx(components.ResponsiveSheet, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(components.ResponsiveSheetContent, { className: "sm:max-w-xl flex flex-col h-full p-0", children: [
|
|
3214
3215
|
/* @__PURE__ */ jsxRuntime.jsx(components.ResponsiveSheetHeader, { className: "px-4 py-3 border-b shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(components.ResponsiveSheetTitle, { className: "text-sm", children: "Playground" }) }),
|
|
@@ -3221,9 +3222,9 @@ function TryItSheet({ open, onOpenChange }) {
|
|
|
3221
3222
|
] })
|
|
3222
3223
|
] }) });
|
|
3223
3224
|
}
|
|
3224
|
-
|
|
3225
|
-
var DocsLayout = /* @__PURE__ */
|
|
3226
|
-
const { state, config, setSelectedEndpoint } =
|
|
3225
|
+
chunkOLISEQHS_cjs.__name(TryItSheet, "TryItSheet");
|
|
3226
|
+
var DocsLayout = /* @__PURE__ */ chunkOLISEQHS_cjs.__name(() => {
|
|
3227
|
+
const { state, config, setSelectedEndpoint } = chunkQW4RBGHN_cjs.usePlaygroundContext();
|
|
3227
3228
|
const isDesktop = hooks.useMediaQuery("(min-width: 1024px)");
|
|
3228
3229
|
const isMobile = !isDesktop;
|
|
3229
3230
|
const grouping = config.schemaGrouping ?? "selector";
|
|
@@ -3434,5 +3435,5 @@ var DocsLayout = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
|
|
|
3434
3435
|
}, "DocsLayout");
|
|
3435
3436
|
|
|
3436
3437
|
exports.DocsLayout = DocsLayout;
|
|
3437
|
-
//# sourceMappingURL=DocsLayout-
|
|
3438
|
-
//# sourceMappingURL=DocsLayout-
|
|
3438
|
+
//# sourceMappingURL=DocsLayout-N5ZJZPBY.cjs.map
|
|
3439
|
+
//# sourceMappingURL=DocsLayout-N5ZJZPBY.cjs.map
|