apiuikit 2.5.1 → 2.5.2
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/dist/{CodeSamples-CIQsne_A.cjs → CodeSamples-BByLudCp.cjs} +1 -1
- package/dist/{CodeSamples-ClpAFzhW.js → CodeSamples-k51RAGfk.js} +1 -1
- package/dist/{LogoExtension-BFZGLfxC.cjs → LogoExtension-BIVvHwTB.cjs} +1 -1
- package/dist/{LogoExtension-DVjKJKTh.js → LogoExtension-RAcEKP86.js} +1 -1
- package/dist/apiuikit.cjs.js +1 -1
- package/dist/apiuikit.es.js +1 -1
- package/dist/components/CodeSamples.d.ts +1 -1
- package/dist/components/ContentTab.d.ts +1 -1
- package/dist/components/Examples.d.ts +1 -1
- package/dist/components/MethodBadge.d.ts +2 -2
- package/dist/components/Navigation/AsyncAPINavigation.d.ts +3 -3
- package/dist/components/Navigation/OpenAPINavigation.d.ts +1 -1
- package/dist/components/Navigation/SpecNavigation.d.ts +1 -1
- package/dist/components/Navigation/index.d.ts +4 -4
- package/dist/components/Navigation/sharedSections.d.ts +1 -1
- package/dist/components/QueryParameters.d.ts +1 -1
- package/dist/components/Reply.d.ts +2 -2
- package/dist/components/SearchPanel.d.ts +1 -1
- package/dist/components/schema/SchemaCaseDetail.d.ts +1 -1
- package/dist/components/schema/SchemaConstraints.d.ts +1 -1
- package/dist/components/schema/SchemaFieldMeta.d.ts +1 -1
- package/dist/components/schema/SchemaNode.d.ts +3 -3
- package/dist/components/schema/SchemaTreeRow.d.ts +1 -1
- package/dist/components/schema/SchemaTypeLabel.d.ts +1 -1
- package/dist/components/schema/index.d.ts +10 -10
- package/dist/components/schema/schemaDisplayUtils.d.ts +1 -1
- package/dist/components/schema/schemaUtils.d.ts +1 -1
- package/dist/config/config.d.ts +2 -2
- package/dist/config/default.d.ts +1 -1
- package/dist/config/index.d.ts +2 -2
- package/dist/containers/AsyncAPI/AsyncAPI.d.ts +5 -5
- package/dist/containers/AsyncAPI/AsyncAPIDocumentProvider.d.ts +3 -3
- package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +4 -4
- package/dist/containers/AsyncAPI/Layout.d.ts +5 -5
- package/dist/containers/Information/Information.d.ts +2 -2
- package/dist/containers/Information/InformationSection.d.ts +1 -1
- package/dist/containers/Information/OpenAPIInformation.d.ts +2 -2
- package/dist/containers/Messages/Message.d.ts +1 -1
- package/dist/containers/Messages/MessageCard.d.ts +2 -2
- package/dist/containers/Messages/MessageDetails.d.ts +1 -1
- package/dist/containers/Messages/Messages.d.ts +2 -2
- package/dist/containers/OpenAPI/Layout.d.ts +5 -5
- package/dist/containers/OpenAPI/OpenAPI.d.ts +5 -5
- package/dist/containers/OpenAPI/OpenAPIDocumentProvider.d.ts +3 -3
- package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +4 -4
- package/dist/containers/Operation/Operation.d.ts +1 -1
- package/dist/containers/Operation/OperationCard.d.ts +2 -2
- package/dist/containers/Operation/OperationHeader.d.ts +1 -1
- package/dist/containers/Operation/Operations.d.ts +2 -2
- package/dist/containers/Path/Endpoint.d.ts +2 -2
- package/dist/containers/Path/EndpointHeader.d.ts +1 -1
- package/dist/containers/Path/OperationCallbacks.d.ts +1 -1
- package/dist/containers/Path/PathOperation.d.ts +1 -1
- package/dist/containers/Path/Paths.d.ts +2 -2
- package/dist/containers/Path/ResponseLinks.d.ts +1 -1
- package/dist/containers/Schema/SchemaCard.d.ts +1 -1
- package/dist/containers/Schema/Schemas.d.ts +2 -2
- package/dist/containers/Server/OpenAPIServer.d.ts +1 -1
- package/dist/containers/Server/OpenAPIServers.d.ts +2 -2
- package/dist/containers/Server/Server.d.ts +1 -1
- package/dist/containers/Server/Servers.d.ts +2 -2
- package/dist/contants.d.ts +2 -2
- package/dist/contexts/index.d.ts +1 -1
- package/dist/contexts/useSpec.d.ts +6 -6
- package/dist/helpers/avro/avroSchemaParser.d.ts +1 -1
- package/dist/helpers/avro/avroToJsonSchema.d.ts +2 -2
- package/dist/helpers/avro/index.d.ts +3 -3
- package/dist/helpers/codeSamples.d.ts +1 -1
- package/dist/helpers/common.d.ts +2 -2
- package/dist/helpers/findItem.d.ts +1 -1
- package/dist/helpers/llmsTxt.d.ts +2 -2
- package/dist/helpers/openapiParameters.d.ts +3 -3
- package/dist/helpers/openapiParser.d.ts +2 -2
- package/dist/helpers/openapiSearchIndex.d.ts +2 -2
- package/dist/helpers/parser.d.ts +2 -2
- package/dist/helpers/protobuf/index.d.ts +2 -2
- package/dist/helpers/protobuf/lazyProtoToJsonSchema.d.ts +1 -1
- package/dist/helpers/protobuf/primitiveTypes.d.ts +1 -1
- package/dist/helpers/protobuf/protoToJsonSchema.d.ts +1 -1
- package/dist/helpers/protobuf/protobufSchemaParser.d.ts +1 -1
- package/dist/helpers/protobuf/protocGenValidate.d.ts +1 -1
- package/dist/helpers/protobuf/protovalidate.d.ts +1 -1
- package/dist/helpers/schemaFormat.d.ts +1 -1
- package/dist/helpers/searchIndex.d.ts +1 -1
- package/dist/helpers/specAdapters.d.ts +1 -1
- package/dist/helpers/toMarkdown.d.ts +3 -3
- package/dist/hooks/useDocumentProviderValue.d.ts +8 -8
- package/dist/hooks/useFuseSearch.d.ts +1 -1
- package/dist/hooks/useOpenAPISearch.d.ts +4 -4
- package/dist/hooks/useSpecLayoutController.d.ts +2 -2
- package/dist/hooks/useSpecSearch.d.ts +4 -4
- package/dist/icons/BookOpen.d.ts +1 -1
- package/dist/icons/Link.d.ts +1 -1
- package/dist/icons/ShieldCheck.d.ts +1 -1
- package/dist/icons/Variable.d.ts +1 -1
- package/dist/{index-CnHniVjT.js → index-BV_l6D37.js} +6 -6
- package/dist/{index-TQ1vnosU.js → index-BaJBvuAY.js} +1 -1
- package/dist/index-Bm-tkvJB.cjs +137 -0
- package/dist/{index-Cx9tV2cj.cjs → index-CGrSsmLt.cjs} +1 -1
- package/dist/{index-DEMGlpgz.js → index-UNhqn70K.js} +4542 -4559
- package/dist/{index-CGItWXK7.cjs → index-hXzlfF2S.cjs} +4 -4
- package/dist/index.d.ts +32 -32
- package/dist/markdown.d.ts +5 -5
- package/dist/plugin.d.ts +7 -7
- package/dist/plugins/OperationPluginTabs.d.ts +1 -1
- package/dist/plugins/PluginSlot.d.ts +1 -1
- package/dist/plugins/registry.d.ts +1 -1
- package/dist/plugins/types.d.ts +2 -2
- package/dist/{protoToJsonSchema-BnlNSyGB.js → protoToJsonSchema-BCchfI0U.js} +1 -1
- package/dist/{protoToJsonSchema-q-0LalxL.cjs → protoToJsonSchema-DL-Dx35m.cjs} +1 -1
- package/dist/{protobufSchemaParser-Cui3hXtz.cjs → protobufSchemaParser-BnzKesB3.cjs} +1 -1
- package/dist/{protobufSchemaParser-CW8SAT2j.js → protobufSchemaParser-DSSUEb8t.js} +2 -2
- package/dist/public/createSectionRoot.d.ts +3 -3
- package/dist/public/openapiSections.d.ts +5 -5
- package/dist/public/schemasSection.d.ts +5 -5
- package/dist/public/sections.d.ts +4 -4
- package/dist/types/asyncapi/AnySchemaObject.d.ts +6 -6
- package/dist/types/asyncapi/ApiKey.d.ts +2 -2
- package/dist/types/asyncapi/ApiKeyHttpSecurityScheme.d.ts +2 -2
- package/dist/types/asyncapi/AsymmetricEncryption.d.ts +1 -1
- package/dist/types/asyncapi/AsyncApi_3Dot_0Dot_0SchemaDot.d.ts +6 -6
- package/dist/types/asyncapi/BearerHttpSecurityScheme.d.ts +2 -2
- package/dist/types/asyncapi/BindingsMinusKafkaMinus_0Dot_5Dot_0MinusChannelTopicConfiguration.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusMqttMinus_0Dot_2Dot_0MinusServerLastWill.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusChannelOrdering.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusChannelPolicy.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusChannelStatement.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusOperationConsumer.d.ts +5 -5
- package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusOperationDeliveryPolicy.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusOperationRedrivePolicy.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSolaceMinus_0Dot_4Dot_0MinusOperationDestinationsItemOneOf_0.d.ts +2 -2
- package/dist/types/asyncapi/BindingsMinusSolaceMinus_0Dot_4Dot_0MinusOperationDestinationsItemOneOf_0Queue.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSolaceMinus_0Dot_4Dot_0MinusOperationDestinationsItemOneOf_1.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelPolicy.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelQueue.d.ts +4 -4
- package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelRedrivePolicy.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelStatement.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationPolicy.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationQueue.d.ts +4 -4
- package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationRedrivePolicy.d.ts +1 -1
- package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationStatement.d.ts +1 -1
- package/dist/types/asyncapi/Channel.d.ts +6 -6
- package/dist/types/asyncapi/ChannelBindingsObject.d.ts +10 -10
- package/dist/types/asyncapi/ChannelBindingsObjectAmqp.d.ts +1 -1
- package/dist/types/asyncapi/ChannelBindingsObjectAnypointmq.d.ts +2 -2
- package/dist/types/asyncapi/ChannelBindingsObjectGooglepubsub.d.ts +3 -3
- package/dist/types/asyncapi/ChannelBindingsObjectIbmmq.d.ts +1 -1
- package/dist/types/asyncapi/ChannelBindingsObjectJms.d.ts +2 -2
- package/dist/types/asyncapi/ChannelBindingsObjectKafka.d.ts +2 -2
- package/dist/types/asyncapi/ChannelBindingsObjectPulsar.d.ts +3 -3
- package/dist/types/asyncapi/ChannelBindingsObjectSns.d.ts +3 -3
- package/dist/types/asyncapi/ChannelBindingsObjectSqs.d.ts +2 -2
- package/dist/types/asyncapi/ChannelBindingsObjectWs.d.ts +4 -4
- package/dist/types/asyncapi/Components.d.ts +31 -31
- package/dist/types/asyncapi/CoreSchemaMetaMinusSchemaObject.d.ts +2 -2
- package/dist/types/asyncapi/Info.d.ts +5 -5
- package/dist/types/asyncapi/MessageBindingsObject.d.ts +8 -8
- package/dist/types/asyncapi/MessageBindingsObjectAmqp.d.ts +1 -1
- package/dist/types/asyncapi/MessageBindingsObjectAnypointmq.d.ts +3 -3
- package/dist/types/asyncapi/MessageBindingsObjectGooglepubsub.d.ts +2 -2
- package/dist/types/asyncapi/MessageBindingsObjectHttp.d.ts +2 -2
- package/dist/types/asyncapi/MessageBindingsObjectIbmmq.d.ts +1 -1
- package/dist/types/asyncapi/MessageBindingsObjectJms.d.ts +2 -2
- package/dist/types/asyncapi/MessageBindingsObjectKafka.d.ts +4 -4
- package/dist/types/asyncapi/MessageBindingsObjectMqtt.d.ts +4 -4
- package/dist/types/asyncapi/MessageObject.d.ts +7 -7
- package/dist/types/asyncapi/MessageTrait.d.ts +6 -6
- package/dist/types/asyncapi/Oauth2Flows.d.ts +2 -2
- package/dist/types/asyncapi/Oauth2FlowsFlows.d.ts +4 -4
- package/dist/types/asyncapi/OpenIdConnect.d.ts +1 -1
- package/dist/types/asyncapi/Operation.d.ts +20 -20
- package/dist/types/asyncapi/OperationBindingsObject.d.ts +8 -8
- package/dist/types/asyncapi/OperationBindingsObjectAmqp.d.ts +2 -2
- package/dist/types/asyncapi/OperationBindingsObjectHttp.d.ts +3 -3
- package/dist/types/asyncapi/OperationBindingsObjectKafka.d.ts +2 -2
- package/dist/types/asyncapi/OperationBindingsObjectMqtt.d.ts +4 -4
- package/dist/types/asyncapi/OperationBindingsObjectNats.d.ts +1 -1
- package/dist/types/asyncapi/OperationBindingsObjectSns.d.ts +4 -4
- package/dist/types/asyncapi/OperationBindingsObjectSolace.d.ts +3 -3
- package/dist/types/asyncapi/OperationBindingsObjectSqs.d.ts +2 -2
- package/dist/types/asyncapi/OperationReply.d.ts +2 -2
- package/dist/types/asyncapi/OperationTrait.d.ts +16 -16
- package/dist/types/asyncapi/SaslGssapiSecurityScheme.d.ts +1 -1
- package/dist/types/asyncapi/SaslPlainSecurityScheme.d.ts +1 -1
- package/dist/types/asyncapi/SaslScramSecurityScheme.d.ts +1 -1
- package/dist/types/asyncapi/SchemaObject.d.ts +5 -5
- package/dist/types/asyncapi/Server.d.ts +17 -17
- package/dist/types/asyncapi/ServerBindingsObject.d.ts +6 -6
- package/dist/types/asyncapi/ServerBindingsObjectIbmmq.d.ts +1 -1
- package/dist/types/asyncapi/ServerBindingsObjectJms.d.ts +2 -2
- package/dist/types/asyncapi/ServerBindingsObjectKafka.d.ts +1 -1
- package/dist/types/asyncapi/ServerBindingsObjectMqtt.d.ts +4 -4
- package/dist/types/asyncapi/ServerBindingsObjectPulsar.d.ts +1 -1
- package/dist/types/asyncapi/ServerBindingsObjectSolace.d.ts +1 -1
- package/dist/types/asyncapi/SymmetricEncryption.d.ts +1 -1
- package/dist/types/asyncapi/Tag.d.ts +2 -2
- package/dist/types/asyncapi/UserPassword.d.ts +1 -1
- package/dist/types/asyncapi/X509.d.ts +1 -1
- package/dist/types/openapi.d.ts +1 -1
- package/dist/types/schema.d.ts +4 -4
- package/dist/utils/theme.d.ts +1 -1
- package/package.json +2 -2
- package/dist/index-BacIP3C7.cjs +0 -137
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const be=require("react/jsx-runtime"),oe=require("react"),Q=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const be=require("react/jsx-runtime"),oe=require("react"),Q=require("./index-hXzlfF2S.cjs");function Gr(t,e=new Set){if(e.has(t))return t;if(t.type==="object"&&t.properties&&typeof t.properties=="object"){e.add(t);try{const r={};for(const[n,s]of Object.entries(t.properties)){const o=/id$/i.test(n)&&s.type==="string"&&!s.format&&!s.examples,a=s.type==="string"&&!s.format&&!s.examples&&!s.enum;r[n]=o?{...s,format:"uuid"}:a?{...s,examples:["string"]}:Gr(s,e)}return{...t,properties:r}}finally{e.delete(t)}}return t}async function En(t){try{const{generate:e}=await Promise.resolve().then(()=>require("./index-Ccy_JZ0T.cjs"));return await e(Gr(t),{seed:42,useExamplesValue:!0,optionalsProbability:1})}catch{return}}const rr="",nr=`
|
|
2
2
|
`;var j=class{constructor({indent:t,join:e}={}){this.postProcessors=[],this.code=[],this.indentationCharacter=rr,this.lineJoin=nr,this.indentLine=(r,n=0)=>`${this.indentationCharacter.repeat(n)}${r}`,this.unshift=(r,n)=>{const s=this.indentLine(r,n);this.code.unshift(s)},this.push=(r,n)=>{const s=this.indentLine(r,n);this.code.push(s)},this.pushToLast=r=>{this.code||this.push(r);const n=`${this.code[this.code.length-1]}${r}`;this.code[this.code.length-1]=n},this.blank=()=>{this.code.push("")},this.join=()=>{const r=this.code.join(this.lineJoin);return this.postProcessors.reduce((n,s)=>s(n),r)},this.addPostProcessor=r=>{this.postProcessors=[...this.postProcessors,r]},this.indentationCharacter=t||rr,this.lineJoin=e??nr}},jn=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Pn=function(t){var e=typeof t;return t!==null&&(e==="object"||e==="function")},Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.default=t=>Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e));const Cn=jn,kn=Pn,An=Kt.default;var Rn=(t,e,r)=>{const n=[];return(function s(o,a,i){a=a||{},a.indent=a.indent||" ",i=i||"";let c;a.inlineCharacterLimit===void 0?c={newLine:`
|
|
3
3
|
`,newLineOrSpace:`
|
|
4
4
|
`,pad:i,indent:i+a.indent}:c={newLine:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",newLineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"};const l=f=>{if(a.inlineCharacterLimit===void 0)return f;const u=f.replace(new RegExp(c.newLine,"g"),"").replace(new RegExp(c.newLineOrSpace,"g")," ").replace(new RegExp(c.pad+"|"+c.indent,"g"),"");return u.length<=a.inlineCharacterLimit?u:f.replace(new RegExp(c.newLine+"|"+c.newLineOrSpace,"g"),`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as nr, jsx as qe } from "react/jsx-runtime";
|
|
2
2
|
import { useId as kn, useMemo as Ve, useState as gt, useEffect as or } from "react";
|
|
3
|
-
import { g as An, c as nt, a as Rn, u as Nn, b as ir, e as qn, o as _n, C as Ln, h as In } from "./index-
|
|
3
|
+
import { g as An, c as nt, a as Rn, u as Nn, b as ir, e as qn, o as _n, C as Ln, h as In } from "./index-BV_l6D37.js";
|
|
4
4
|
function Kr(t, e = /* @__PURE__ */ new Set()) {
|
|
5
5
|
if (e.has(t)) return t;
|
|
6
6
|
if (t.type === "object" && t.properties && typeof t.properties == "object") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("./index-hXzlfF2S.cjs");function n({value:e}){const o=t.resolveLogo(e);return o?r.jsx("img",{src:o.url,alt:o.altText??"logo",style:o.backgroundColor?{backgroundColor:o.backgroundColor}:void 0,className:"max-h-24 max-w-24 object-contain"}):null}exports.default=n;
|
package/dist/apiuikit.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-hXzlfF2S.cjs");exports.AsyncAPI=e.AsyncAPI;exports.AsyncAPIInfo=e.AsyncAPIInfo;exports.AsyncAPIMessage=e.AsyncAPIMessage;exports.AsyncAPIMessages=e.AsyncAPIMessages;exports.AsyncAPIOperation=e.AsyncAPIOperation;exports.AsyncAPIOperations=e.AsyncAPIOperations;exports.AsyncAPIProvider=e.AsyncAPIProvider;exports.AsyncAPIRenderer=e.AsyncAPIRenderer;exports.AsyncAPISchemas=e.AsyncAPISchemas;exports.AsyncAPIServers=e.AsyncAPIServers;exports.ErrorBoundary=e.ErrorBoundary;exports.OpenAPI=e.OpenAPI;exports.OpenAPIEndpoint=e.OpenAPIEndpoint;exports.OpenAPIEndpoints=e.OpenAPIEndpoints;exports.OpenAPIInfo=e.OpenAPIInfo;exports.OpenAPIProvider=e.OpenAPIProvider;exports.OpenAPIRenderer=e.OpenAPIRenderer;exports.OpenAPISchemas=e.OpenAPISchemas;exports.OpenAPIServers=e.OpenAPIServers;exports.OpenAPIWebhook=e.OpenAPIWebhook;exports.OpenAPIWebhooks=e.OpenAPIWebhooks;exports.PluginSlot=e.PluginSlot;exports.Schema=e.Schema;exports.SchemaTab=e.SchemaTabs;exports.SchemaTree=e.SchemaTree;exports.Schemas=e.Schemas;exports.asyncApiOperationToMarkdown=e.asyncApiOperationToMarkdown;exports.asyncApiToMarkdown=e.asyncApiToMarkdown;exports.default=e.AsyncAPI;exports.defaultConfig=e.defaultConfig;exports.documentToLlmsTxt=e.documentToLlmsTxt;exports.documentToMarkdown=e.documentToMarkdown;exports.listDocumentTargets=e.listDocumentTargets;exports.markdownForLlm=e.markdownForLlm;exports.openApiEndpointToMarkdown=e.openApiEndpointToMarkdown;exports.openApiToMarkdown=e.openApiToMarkdown;exports.parseAndRender=e.parseAndRender;exports.parseAndRenderOpenAPI=e.parseAndRender$1;exports.targetSlug=e.targetSlug;exports.useAsyncAPIDocument=e.useAsyncAPIDocument;exports.useAsyncAPIDocumentContext=e.useAsyncAPIDocumentContext;exports.useDocumentContext=e.useDocumentContext;exports.useOpenAPIDocumentContext=e.useOpenAPIDocumentContext;exports.useOperationTabPlugins=e.useOperationTabPlugins;exports.usePluginSlot=e.usePluginSlot;
|
package/dist/apiuikit.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, f as n, j as o, k as A, l as r, m as t, n as P, p, q as c, s as I, E as d, O as u, t as i, v as m, w as O, x as y, y as l, z as S, B as T, D as g, F as k, P as h, S as M, G as f, H as w, I as x, J as D, K as v, A as E, L as R, M as b, N as C, Q as L, R as W, o as B, T as F, U as j, V as q, W as z, Y as G, Z as H, u as J, _ as K, $ as N, a0 as Q } from "./index-
|
|
1
|
+
import { A as e, f as n, j as o, k as A, l as r, m as t, n as P, p, q as c, s as I, E as d, O as u, t as i, v as m, w as O, x as y, y as l, z as S, B as T, D as g, F as k, P as h, S as M, G as f, H as w, I as x, J as D, K as v, A as E, L as R, M as b, N as C, Q as L, R as W, o as B, T as F, U as j, V as q, W as z, Y as G, Z as H, u as J, _ as K, $ as N, a0 as Q } from "./index-BV_l6D37.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AsyncAPI,
|
|
4
4
|
n as AsyncAPIInfo,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonSchema } from '../helpers/exampleSchema';
|
|
1
|
+
import { JsonSchema } from '../helpers/exampleSchema.js';
|
|
2
2
|
interface ExamplesProps {
|
|
3
3
|
schema: JsonSchema;
|
|
4
4
|
/** A real example value declared in the spec (OpenAPI media type `example`/`examples`, or an AsyncAPI message example), shown as-is instead of auto-generating one when present. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpMethod } from '../types/openapi';
|
|
2
|
-
import { OperationAction } from '../types/asyncapi/OperationAction';
|
|
1
|
+
import { HttpMethod } from '../types/openapi.js';
|
|
2
|
+
import { OperationAction } from '../types/asyncapi/OperationAction.js';
|
|
3
3
|
export type MethodBadgeSize = "sm" | "xs";
|
|
4
4
|
interface MethodBadgeProps {
|
|
5
5
|
/** An OpenAPI HTTP method or an AsyncAPI operation action — same pill, one color map. Renders nothing when undefined (e.g. an operation with no action yet). */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Operation } from '../../types/asyncapi/Operation';
|
|
2
|
-
import { MessageObject } from '../../types/asyncapi/MessageObject';
|
|
3
|
-
import { SideBarConfig } from '../../config/config';
|
|
1
|
+
import { Operation } from '../../types/asyncapi/Operation.js';
|
|
2
|
+
import { MessageObject } from '../../types/asyncapi/MessageObject.js';
|
|
3
|
+
import { SideBarConfig } from '../../config/config.js';
|
|
4
4
|
export type NavTab = "operations" | "messages" | "schemas";
|
|
5
5
|
export type NavSectionId = NavTab | "servers" | "info";
|
|
6
6
|
interface AsyncAPINavigationProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenAPIPathItemData } from '../../types/openapi';
|
|
1
|
+
import { OpenAPIPathItemData } from '../../types/openapi.js';
|
|
2
2
|
export type OpenAPINavTab = "endpoints" | "webhooks" | "schemas";
|
|
3
3
|
export type OpenAPINavSectionId = OpenAPINavTab | "servers" | "info";
|
|
4
4
|
interface OpenAPINavigationProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as AsyncAPINavigation } from './AsyncAPINavigation';
|
|
2
|
-
export type { NavTab, NavSectionId } from './AsyncAPINavigation';
|
|
3
|
-
export { default as OpenAPINavigation } from './OpenAPINavigation';
|
|
4
|
-
export type { OpenAPINavTab, OpenAPINavSectionId } from './OpenAPINavigation';
|
|
1
|
+
export { default as AsyncAPINavigation } from './AsyncAPINavigation.js';
|
|
2
|
+
export type { NavTab, NavSectionId } from './AsyncAPINavigation.js';
|
|
3
|
+
export { default as OpenAPINavigation } from './OpenAPINavigation.js';
|
|
4
|
+
export type { OpenAPINavTab, OpenAPINavSectionId } from './OpenAPINavigation.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChannelAddressParameterDetail } from './ChannelAddress';
|
|
1
|
+
import { ChannelAddressParameterDetail } from './ChannelAddress.js';
|
|
2
2
|
/** A query parameter as the chip lists it: a ChannelAddress tooltip's detail plus the parts only a *named* parameter has. */
|
|
3
3
|
export interface QueryParameterDetail extends ChannelAddressParameterDetail {
|
|
4
4
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MessageObject } from '../types/asyncapi/MessageObject';
|
|
2
|
-
import { OperationReply } from '../types/asyncapi/OperationReply';
|
|
1
|
+
import { MessageObject } from '../types/asyncapi/MessageObject.js';
|
|
2
|
+
import { OperationReply } from '../types/asyncapi/OperationReply.js';
|
|
3
3
|
interface IReplyProps {
|
|
4
4
|
requestMessages: MessageObject[];
|
|
5
5
|
reply: OperationReply;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaNodeData } from '../../types/schema';
|
|
1
|
+
import { SchemaNodeData } from '../../types/schema.js';
|
|
2
2
|
/** Compact details for a leaf oneOf branch — avoids duplicating the property path row. */
|
|
3
3
|
export default function SchemaCaseDetail({ schema, showBorder, }: {
|
|
4
4
|
schema: SchemaNodeData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SchemaNodeData } from '../../types/schema';
|
|
2
|
-
import { SchemaTreeBranchLineVariant } from './SchemaTreeBranch';
|
|
3
|
-
import { SchemaAncestors } from './schemaUtils';
|
|
1
|
+
import { SchemaNodeData } from '../../types/schema.js';
|
|
2
|
+
import { SchemaTreeBranchLineVariant } from './SchemaTreeBranch.js';
|
|
3
|
+
import { SchemaAncestors } from './schemaUtils.js';
|
|
4
4
|
export interface SchemaNodeProps {
|
|
5
5
|
schema: SchemaNodeData;
|
|
6
6
|
path: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { default as SchemaTree } from './SchemaTree';
|
|
2
|
-
export type { SchemaTreeProps } from './SchemaTree';
|
|
3
|
-
export { default as SchemaTab } from './SchemaTab';
|
|
4
|
-
export { default as SchemaUnionBranch } from './SchemaUnionBranch';
|
|
5
|
-
export { default as SchemaNotBranch } from './SchemaNotBranch';
|
|
6
|
-
export { default as SchemaMapBranch } from './SchemaMapBranch';
|
|
7
|
-
export { default as SchemaTypeLabel } from './SchemaTypeLabel';
|
|
8
|
-
export { default as SchemaConstraints } from './SchemaConstraints';
|
|
9
|
-
export { hasConstraints } from './schemaUtils';
|
|
10
|
-
export { default as SchemaFieldMeta } from './SchemaFieldMeta';
|
|
1
|
+
export { default as SchemaTree } from './SchemaTree.js';
|
|
2
|
+
export type { SchemaTreeProps } from './SchemaTree.js';
|
|
3
|
+
export { default as SchemaTab } from './SchemaTab.js';
|
|
4
|
+
export { default as SchemaUnionBranch } from './SchemaUnionBranch.js';
|
|
5
|
+
export { default as SchemaNotBranch } from './SchemaNotBranch.js';
|
|
6
|
+
export { default as SchemaMapBranch } from './SchemaMapBranch.js';
|
|
7
|
+
export { default as SchemaTypeLabel } from './SchemaTypeLabel.js';
|
|
8
|
+
export { default as SchemaConstraints } from './SchemaConstraints.js';
|
|
9
|
+
export { hasConstraints } from './schemaUtils.js';
|
|
10
|
+
export { default as SchemaFieldMeta } from './SchemaFieldMeta.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaNodeData } from '../../types/schema';
|
|
1
|
+
import { SchemaNodeData } from '../../types/schema.js';
|
|
2
2
|
/** Extracts the schema name from a JSON Pointer, e.g. "#/components/schemas/sentAt" → "sentAt". */
|
|
3
3
|
export declare const refNameFromPath: (ref: string) => string;
|
|
4
4
|
export interface NormalizedSchema {
|
package/dist/config/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AsyncAPIDocumentData } from '../types/schema';
|
|
2
|
-
import { HttpMethod, OpenAPIDocumentData } from '../types/openapi';
|
|
1
|
+
import { AsyncAPIDocumentData } from '../types/schema.js';
|
|
2
|
+
import { HttpMethod, OpenAPIDocumentData } from '../types/openapi.js';
|
|
3
3
|
export interface ConfigInterface {
|
|
4
4
|
/**
|
|
5
5
|
* Host-page safe area in pixels above fixed and sticky widget controls.
|
package/dist/config/default.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ConfigInterface } from './config';
|
|
1
|
+
import { ConfigInterface } from './config.js';
|
|
2
2
|
export declare const defaultConfig: ConfigInterface;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './config';
|
|
2
|
-
export * from './default';
|
|
1
|
+
export * from './config.js';
|
|
2
|
+
export * from './default.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ConfigInterface } from '../../config';
|
|
2
|
-
import { AsyncAPIDocumentData } from '../../types/schema';
|
|
3
|
-
import { ErrorBoundaryFallbackRenderer } from '../../components/ErrorBoundary';
|
|
1
|
+
import { ConfigInterface } from '../../config/index.js';
|
|
2
|
+
import { AsyncAPIDocumentData } from '../../types/schema.js';
|
|
3
|
+
import { ErrorBoundaryFallbackRenderer } from '../../components/ErrorBoundary.js';
|
|
4
4
|
import { ErrorInfo, ReactNode } from 'react';
|
|
5
|
-
import { ApiuikitPlugin } from '../../plugins/types';
|
|
6
|
-
import { LayoutProps } from './Layout';
|
|
5
|
+
import { ApiuikitPlugin } from '../../plugins/types.js';
|
|
6
|
+
import { LayoutProps } from './Layout.js';
|
|
7
7
|
export interface IAsyncAPIProps {
|
|
8
8
|
/** The parsed AsyncAPI JSON, for example a JSON file you imported. `$ref`s in the object are resolved for you. */
|
|
9
9
|
asyncapi: AsyncAPIDocumentData;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ConfigInterface } from '../../config';
|
|
3
|
-
import { AsyncAPIDocumentData } from '../../types/schema';
|
|
4
|
-
import { ApiuikitPlugin } from '../../plugins/types';
|
|
2
|
+
import { ConfigInterface } from '../../config/index.js';
|
|
3
|
+
import { AsyncAPIDocumentData } from '../../types/schema.js';
|
|
4
|
+
import { ApiuikitPlugin } from '../../plugins/types.js';
|
|
5
5
|
export interface AsyncAPIDocumentProviderProps {
|
|
6
6
|
document: AsyncAPIDocumentData;
|
|
7
7
|
config?: ConfigInterface;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IAsyncAPIProps } from './AsyncAPI';
|
|
2
|
-
import { ConfigInterface } from '../../config/config';
|
|
3
|
-
import { ErrorBoundaryFallbackRenderer } from '../../components/ErrorBoundary';
|
|
1
|
+
import { IAsyncAPIProps } from './AsyncAPI.js';
|
|
2
|
+
import { ConfigInterface } from '../../config/config.js';
|
|
3
|
+
import { ErrorBoundaryFallbackRenderer } from '../../components/ErrorBoundary.js';
|
|
4
4
|
import { ErrorInfo, ReactNode } from 'react';
|
|
5
|
-
import { ApiuikitPlugin } from '../../plugins/types';
|
|
5
|
+
import { ApiuikitPlugin } from '../../plugins/types.js';
|
|
6
6
|
interface AsyncAPIRendererProps {
|
|
7
7
|
/** The AsyncAPI document as a YAML or JSON string. It is parsed before the page renders. */
|
|
8
8
|
raw: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { NavTab } from '../../components/Navigation';
|
|
2
|
-
import { SpecLocation } from '../../hooks/useSpecLayoutController';
|
|
3
|
-
import { ConfigInterface } from '../../config';
|
|
4
|
-
import { ApiuikitPlugin } from '../../plugins/types';
|
|
5
|
-
import { AsyncAPIDocumentData } from '../../types/schema';
|
|
1
|
+
import { NavTab } from '../../components/Navigation/index.js';
|
|
2
|
+
import { SpecLocation } from '../../hooks/useSpecLayoutController.js';
|
|
3
|
+
import { ConfigInterface } from '../../config/index.js';
|
|
4
|
+
import { ApiuikitPlugin } from '../../plugins/types.js';
|
|
5
|
+
import { AsyncAPIDocumentData } from '../../types/schema.js';
|
|
6
6
|
export interface LayoutProps {
|
|
7
7
|
asyncapi: AsyncAPIDocumentData;
|
|
8
8
|
config: ConfigInterface;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SectionLayout } from '../../components/Section';
|
|
3
|
-
import { Info as AsyncAPIMetadata } from '../../types/asyncapi/Info';
|
|
2
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
3
|
+
import { Info as AsyncAPIMetadata } from '../../types/asyncapi/Info.js';
|
|
4
4
|
type InformationProps = AsyncAPIMetadata & {
|
|
5
5
|
layout?: SectionLayout;
|
|
6
6
|
showLogo?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SectionLayout } from '../../components/Section';
|
|
2
|
-
import { OpenAPIExternalDocsData, OpenAPIInfoData, OpenAPITagData } from '../../types/openapi';
|
|
1
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
2
|
+
import { OpenAPIExternalDocsData, OpenAPIInfoData, OpenAPITagData } from '../../types/openapi.js';
|
|
3
3
|
interface OpenAPIInformationProps {
|
|
4
4
|
info: OpenAPIInfoData;
|
|
5
5
|
/** OpenAPI keeps tags/externalDocs at the document root, not on `info` (unlike AsyncAPI), so they are passed in separately. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SectionLayout } from '../../components/Section';
|
|
2
|
-
import { MessageObject } from '../../types/asyncapi/MessageObject';
|
|
1
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
2
|
+
import { MessageObject } from '../../types/asyncapi/MessageObject.js';
|
|
3
3
|
interface MessageCardProps {
|
|
4
4
|
messageKey: string;
|
|
5
5
|
message: MessageObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SectionLayout } from '../../components/Section';
|
|
2
|
-
import { MessageObject } from '../../types/asyncapi/MessageObject';
|
|
1
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
2
|
+
import { MessageObject } from '../../types/asyncapi/MessageObject.js';
|
|
3
3
|
interface MessagesProps {
|
|
4
4
|
messages: Record<string, MessageObject>;
|
|
5
5
|
selectedKey?: string | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OpenAPINavTab } from '../../components/Navigation';
|
|
2
|
-
import { SpecLocation } from '../../hooks/useSpecLayoutController';
|
|
3
|
-
import { ConfigInterface } from '../../config';
|
|
4
|
-
import { ApiuikitPlugin } from '../../plugins/types';
|
|
5
|
-
import { OpenAPIDocumentData } from '../../types/openapi';
|
|
1
|
+
import { OpenAPINavTab } from '../../components/Navigation/index.js';
|
|
2
|
+
import { SpecLocation } from '../../hooks/useSpecLayoutController.js';
|
|
3
|
+
import { ConfigInterface } from '../../config/index.js';
|
|
4
|
+
import { ApiuikitPlugin } from '../../plugins/types.js';
|
|
5
|
+
import { OpenAPIDocumentData } from '../../types/openapi.js';
|
|
6
6
|
export interface OpenAPILayoutProps {
|
|
7
7
|
openapi: OpenAPIDocumentData;
|
|
8
8
|
config: ConfigInterface;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ConfigInterface } from '../../config';
|
|
2
|
-
import { OpenAPIDocumentData } from '../../types/openapi';
|
|
3
|
-
import { ErrorBoundaryFallbackRenderer } from '../../components/ErrorBoundary';
|
|
1
|
+
import { ConfigInterface } from '../../config/index.js';
|
|
2
|
+
import { OpenAPIDocumentData } from '../../types/openapi.js';
|
|
3
|
+
import { ErrorBoundaryFallbackRenderer } from '../../components/ErrorBoundary.js';
|
|
4
4
|
import { ErrorInfo, ReactNode } from 'react';
|
|
5
|
-
import { ApiuikitPlugin } from '../../plugins/types';
|
|
6
|
-
import { OpenAPILayoutProps } from './Layout';
|
|
5
|
+
import { ApiuikitPlugin } from '../../plugins/types.js';
|
|
6
|
+
import { OpenAPILayoutProps } from './Layout.js';
|
|
7
7
|
export interface IOpenAPIProps {
|
|
8
8
|
/** The parsed OpenAPI JSON, for example a JSON file you imported. `$ref`s in the object are resolved for you. */
|
|
9
9
|
openapi: OpenAPIDocumentData;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ConfigInterface } from '../../config';
|
|
3
|
-
import { OpenAPIDocumentData } from '../../types/openapi';
|
|
4
|
-
import { ApiuikitPlugin } from '../../plugins/types';
|
|
2
|
+
import { ConfigInterface } from '../../config/index.js';
|
|
3
|
+
import { OpenAPIDocumentData } from '../../types/openapi.js';
|
|
4
|
+
import { ApiuikitPlugin } from '../../plugins/types.js';
|
|
5
5
|
export interface OpenAPIDocumentProviderProps {
|
|
6
6
|
document: OpenAPIDocumentData;
|
|
7
7
|
config?: ConfigInterface;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IOpenAPIProps } from './OpenAPI';
|
|
2
|
-
import { ConfigInterface } from '../../config/config';
|
|
3
|
-
import { ErrorBoundaryFallbackRenderer } from '../../components/ErrorBoundary';
|
|
1
|
+
import { IOpenAPIProps } from './OpenAPI.js';
|
|
2
|
+
import { ConfigInterface } from '../../config/config.js';
|
|
3
|
+
import { ErrorBoundaryFallbackRenderer } from '../../components/ErrorBoundary.js';
|
|
4
4
|
import { ErrorInfo, ReactNode } from 'react';
|
|
5
|
-
import { ApiuikitPlugin } from '../../plugins/types';
|
|
5
|
+
import { ApiuikitPlugin } from '../../plugins/types.js';
|
|
6
6
|
interface OpenAPIRendererProps {
|
|
7
7
|
/** The OpenAPI document as a YAML or JSON string. It is parsed before the page renders. */
|
|
8
8
|
raw: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SectionLayout } from '../../components/Section';
|
|
2
|
-
import { Operation as OperationType } from '../../types/asyncapi/Operation';
|
|
1
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
2
|
+
import { Operation as OperationType } from '../../types/asyncapi/Operation.js';
|
|
3
3
|
interface OperationCardProps {
|
|
4
4
|
operationKey: string;
|
|
5
5
|
op: OperationType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Operation as OperationType } from '../../types/asyncapi/Operation';
|
|
1
|
+
import { Operation as OperationType } from '../../types/asyncapi/Operation.js';
|
|
2
2
|
/**
|
|
3
3
|
* An operation's identity: action badge and its title, or the channel address
|
|
4
4
|
* when it has none. Shared by the list's side-panel title (Operations.tsx) and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SectionLayout } from '../../components/Section';
|
|
2
|
-
import { Operation as OperationType } from '../../types/asyncapi/Operation';
|
|
1
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
2
|
+
import { Operation as OperationType } from '../../types/asyncapi/Operation.js';
|
|
3
3
|
interface OperationsProps {
|
|
4
4
|
operations: Record<string, OperationType>;
|
|
5
5
|
selectedKey?: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SectionLayout } from '../../components/Section';
|
|
2
|
-
import { HttpMethod, OpenAPIPathItemData, OpenAPISecuritySchemeData } from '../../types/openapi';
|
|
1
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
2
|
+
import { HttpMethod, OpenAPIPathItemData, OpenAPISecuritySchemeData } from '../../types/openapi.js';
|
|
3
3
|
interface EndpointProps {
|
|
4
4
|
method: HttpMethod;
|
|
5
5
|
path: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpMethod, OpenAPIParameterData } from '../../types/openapi';
|
|
1
|
+
import { HttpMethod, OpenAPIParameterData } from '../../types/openapi.js';
|
|
2
2
|
/**
|
|
3
3
|
* An endpoint's identity: method badge, path, query-parameter chip. The path
|
|
4
4
|
* keeps the room and clips to a single line (its ellipsis peeks the whole
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
|
-
import { HttpMethod, OpenAPICallbackData } from '../../types/openapi';
|
|
2
|
+
import { HttpMethod, OpenAPICallbackData } from '../../types/openapi.js';
|
|
3
3
|
/**
|
|
4
4
|
* An operation's `callbacks`: requests the API sends back out to the caller
|
|
5
5
|
* after this operation runs. Each callback's leaf is an ordinary Operation
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpMethod, OpenAPIOperationData, OpenAPISecuritySchemeData } from '../../types/openapi';
|
|
1
|
+
import { HttpMethod, OpenAPIOperationData, OpenAPISecuritySchemeData } from '../../types/openapi.js';
|
|
2
2
|
interface PathOperationProps {
|
|
3
3
|
method: HttpMethod;
|
|
4
4
|
path: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SectionLayout } from '../../components/Section';
|
|
2
|
-
import { OpenAPIPathItemData, OpenAPISecuritySchemeData } from '../../types/openapi';
|
|
1
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
2
|
+
import { OpenAPIPathItemData, OpenAPISecuritySchemeData } from '../../types/openapi.js';
|
|
3
3
|
interface PathsProps {
|
|
4
4
|
paths: Record<string, OpenAPIPathItemData | undefined>;
|
|
5
5
|
security?: Array<Record<string, string[]>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenAPILinkData } from '../../types/openapi';
|
|
1
|
+
import { OpenAPILinkData } from '../../types/openapi.js';
|
|
2
2
|
/**
|
|
3
3
|
* A response's `links`: which operation you can call next using values from
|
|
4
4
|
* this response. Rendered as a small annotated note rather than a tab or
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResolvedSchemaInput } from '../../helpers/schemaFormat';
|
|
1
|
+
import { ResolvedSchemaInput } from '../../helpers/schemaFormat.js';
|
|
2
2
|
interface SchemaCardProps {
|
|
3
3
|
schemaName: string;
|
|
4
4
|
/** The entry after resolveSchemaInput — multi-format wrappers normalized for rendering. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SectionLayout } from '../../components/Section';
|
|
2
|
-
import { SchemaNodeData } from '../../types/schema';
|
|
1
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
2
|
+
import { SchemaNodeData } from '../../types/schema.js';
|
|
3
3
|
interface SchemasProps {
|
|
4
4
|
schemas: Record<string, SchemaNodeData>;
|
|
5
5
|
selectedKey?: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenAPIServerData } from '../../types/openapi';
|
|
1
|
+
import { OpenAPIServerData } from '../../types/openapi.js';
|
|
2
2
|
type OpenAPIServerProps = OpenAPIServerData;
|
|
3
3
|
export default function OpenAPIServer({ url, description, variables }: OpenAPIServerProps): import('react').JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SectionLayout } from '../../components/Section';
|
|
2
|
-
import { OpenAPIServerData } from '../../types/openapi';
|
|
1
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
2
|
+
import { OpenAPIServerData } from '../../types/openapi.js';
|
|
3
3
|
interface OpenAPIServersProps {
|
|
4
4
|
servers: OpenAPIServerData[];
|
|
5
5
|
selectedServer?: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Server as ServerInterface } from '../../types/asyncapi/Server';
|
|
1
|
+
import { Server as ServerInterface } from '../../types/asyncapi/Server.js';
|
|
2
2
|
interface ServerProps extends ServerInterface {
|
|
3
3
|
/** The server's own key/name, needed to build ids for its sub-sections. */
|
|
4
4
|
serverKey?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SectionLayout } from '../../components/Section';
|
|
2
|
-
import { Server as ServerInterface } from '../../types/asyncapi/Server';
|
|
1
|
+
import { SectionLayout } from '../../components/Section.js';
|
|
2
|
+
import { Server as ServerInterface } from '../../types/asyncapi/Server.js';
|
|
3
3
|
interface ServersProps {
|
|
4
4
|
servers: Record<string, ServerInterface>;
|
|
5
5
|
selectedServer?: string | null;
|
package/dist/contants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpMethod, OpenAPIParameterData } from './types/openapi';
|
|
2
|
-
import { OperationAction } from './types/asyncapi/OperationAction';
|
|
1
|
+
import { HttpMethod, OpenAPIParameterData } from './types/openapi.js';
|
|
2
|
+
import { OperationAction } from './types/asyncapi/OperationAction.js';
|
|
3
3
|
export declare const CONTACT_TEXT = "Contact";
|
|
4
4
|
export declare const NAM_TEXT = "Name";
|
|
5
5
|
export declare const URL_TEXT = "Url";
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './useSpec';
|
|
1
|
+
export * from './useSpec.js';
|