apiuikit 2.5.0 → 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-CaQ-Plnx.cjs → CodeSamples-BByLudCp.cjs} +1 -1
- package/dist/{CodeSamples-DevA5LND.js → CodeSamples-k51RAGfk.js} +1 -1
- package/dist/{LogoExtension-D0VY8gpU.cjs → LogoExtension-BIVvHwTB.cjs} +1 -1
- package/dist/{LogoExtension-DMBdjLMS.js → LogoExtension-RAcEKP86.js} +1 -1
- package/dist/apiuikit.cjs.js +1 -1
- package/dist/apiuikit.css +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-vxDO_J_a.js → index-BV_l6D37.js} +7 -7
- package/dist/{index-BXI--_xO.js → index-BaJBvuAY.js} +1 -1
- package/dist/{index-Djr20zD8.cjs → index-Bm-tkvJB.cjs} +1 -1
- package/dist/{index-BjVWe_rQ.cjs → index-CGrSsmLt.cjs} +1 -1
- package/dist/{index-BVwqtADi.js → index-UNhqn70K.js} +1 -1
- package/dist/{index-DKItRZCR.cjs → index-hXzlfF2S.cjs} +5 -5
- 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-Br2jKuIZ.js → protoToJsonSchema-BCchfI0U.js} +1 -1
- package/dist/{protoToJsonSchema-C2GoWuZu.cjs → protoToJsonSchema-DL-Dx35m.cjs} +1 -1
- package/dist/{protobufSchemaParser-Cbb8hQnz.cjs → protobufSchemaParser-BnzKesB3.cjs} +1 -1
- package/dist/{protobufSchemaParser-DzWDLqeW.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
|
@@ -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';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AsyncAPIDocumentData } from '../types/schema';
|
|
2
|
-
import { OpenAPIDocumentData } from '../types/openapi';
|
|
3
|
-
import { ConfigInterface, MarkdownUrlResolver, SidePanelContainment } from '../config/config';
|
|
4
|
-
import { ApiuikitPlugin } from '../plugins/types';
|
|
5
|
-
import { PluginSlotRegistry } from '../plugins/registry';
|
|
6
|
-
import { ResolvedThemeMode } from '../utils/theme';
|
|
1
|
+
import { AsyncAPIDocumentData } from '../types/schema.js';
|
|
2
|
+
import { OpenAPIDocumentData } from '../types/openapi.js';
|
|
3
|
+
import { ConfigInterface, MarkdownUrlResolver, SidePanelContainment } from '../config/config.js';
|
|
4
|
+
import { ApiuikitPlugin } from '../plugins/types.js';
|
|
5
|
+
import { PluginSlotRegistry } from '../plugins/registry.js';
|
|
6
|
+
import { ResolvedThemeMode } from '../utils/theme.js';
|
|
7
7
|
/** Which spec produced the ambient document. The discriminant of DocumentContextValue. */
|
|
8
8
|
export type SpecType = "asyncapi" | "openapi";
|
|
9
9
|
interface DocumentContextBase {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemaParser } from '@asyncapi/parser';
|
|
2
|
-
import { SchemaParserHost } from '../schemaParserRegistry';
|
|
2
|
+
import { SchemaParserHost } from '../schemaParserRegistry.js';
|
|
3
3
|
export declare function AvroSchemaParser(): SchemaParser;
|
|
4
4
|
/**
|
|
5
5
|
* Registers the Avro schema parser and makes parser-js accept any Avro
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaNodeData } from '../../types/schema';
|
|
2
|
-
import { AvroSchema } from './types';
|
|
1
|
+
import { SchemaNodeData } from '../../types/schema.js';
|
|
2
|
+
import { AvroSchema } from './types.js';
|
|
3
3
|
/** Converts an Avro schema into a JSON-Schema-shaped object for rendering. */
|
|
4
4
|
export declare function avroToJsonSchema(avroDefinition: AvroSchema): SchemaNodeData;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { avroToJsonSchema } from './avroToJsonSchema';
|
|
2
|
-
export { validateAvroStructure } from './validateAvroStructure';
|
|
3
|
-
export type { AvroSchema, AvroSchemaObject, AvroField, AvroPrimitiveType, } from './types';
|
|
1
|
+
export { avroToJsonSchema } from './avroToJsonSchema.js';
|
|
2
|
+
export { validateAvroStructure } from './validateAvroStructure.js';
|
|
3
|
+
export type { AvroSchema, AvroSchemaObject, AvroField, AvroPrimitiveType, } from './types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { availableTargets } from '@readme/httpsnippet';
|
|
2
|
-
import { HttpMethod, OpenAPIParameterData, OpenAPIRequestBodyData, OpenAPISecuritySchemeData, OpenAPIServerData } from '../types/openapi';
|
|
2
|
+
import { HttpMethod, OpenAPIParameterData, OpenAPIRequestBodyData, OpenAPISecuritySchemeData, OpenAPIServerData } from '../types/openapi.js';
|
|
3
3
|
/** The dropdown opens on httpsnippet's "agent" target: a prompt meant to be
|
|
4
4
|
* pasted into an AI assistant rather than run. It's language-agnostic, so
|
|
5
5
|
* it's the one option that's useful to every reader regardless of what
|
package/dist/helpers/common.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OperationAction } from '../types/asyncapi/OperationAction';
|
|
2
|
-
import { Operation } from '../types/asyncapi/Operation';
|
|
1
|
+
import { OperationAction } from '../types/asyncapi/OperationAction.js';
|
|
2
|
+
import { Operation } from '../types/asyncapi/Operation.js';
|
|
3
3
|
export declare function isUrl(value: string): boolean;
|
|
4
4
|
export declare class CommonHelpers {
|
|
5
5
|
static getOperationType(operation: Operation): OperationAction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpMethod, OpenAPIPathItemData } from '../types/openapi';
|
|
1
|
+
import { HttpMethod, OpenAPIPathItemData } from '../types/openapi.js';
|
|
2
2
|
/** How a single-endpoint section names its endpoint: by `operationId`, or by method + path. */
|
|
3
3
|
export type EndpointSelector = {
|
|
4
4
|
operationId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MarkdownTarget } from '../config/config';
|
|
2
|
-
import { DocumentTarget } from './specAdapters';
|
|
1
|
+
import { MarkdownTarget } from '../config/config.js';
|
|
2
|
+
import { DocumentTarget } from './specAdapters.js';
|
|
3
3
|
export type { DocumentTarget };
|
|
4
4
|
export interface LlmsTxtLink {
|
|
5
5
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChannelAddressParameterDetail } from '../components/ChannelAddress';
|
|
2
|
-
import { QueryParameterDetail } from '../components/QueryParameters';
|
|
3
|
-
import { OpenAPIParameterData } from '../types/openapi';
|
|
1
|
+
import { ChannelAddressParameterDetail } from '../components/ChannelAddress.js';
|
|
2
|
+
import { QueryParameterDetail } from '../components/QueryParameters.js';
|
|
3
|
+
import { OpenAPIParameterData } from '../types/openapi.js';
|
|
4
4
|
export declare function toChannelAddressParameters(parameters: OpenAPIParameterData[]): Record<string, ChannelAddressParameterDetail>;
|
|
5
5
|
export declare function toQueryParameters(parameters: OpenAPIParameterData[]): QueryParameterDetail[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OpenAPIDocumentData } from '../types/openapi';
|
|
2
|
-
import { ConfigInterface } from '../config/config';
|
|
1
|
+
import { OpenAPIDocumentData } from '../types/openapi.js';
|
|
2
|
+
import { ConfigInterface } from '../config/config.js';
|
|
3
3
|
export interface OpenAPIDiagnostic {
|
|
4
4
|
message: string;
|
|
5
5
|
path: string[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { OpenAPIDocumentData } from '../types/openapi';
|
|
2
|
-
import { SearchEntry } from './searchIndex';
|
|
1
|
+
import { OpenAPIDocumentData } from '../types/openapi.js';
|
|
2
|
+
import { SearchEntry } from './searchIndex.js';
|
|
3
3
|
export declare function buildOpenAPISearchIndex(openapi: OpenAPIDocumentData): SearchEntry[];
|
package/dist/helpers/parser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AsyncAPIDocumentData } from '../types/schema';
|
|
2
|
-
import { ConfigInterface } from '../config/config';
|
|
1
|
+
import { AsyncAPIDocumentData } from '../types/schema.js';
|
|
2
|
+
import { ConfigInterface } from '../config/config.js';
|
|
3
3
|
export declare function parseDocument(raw: string): Promise<{
|
|
4
4
|
diagnostics: unknown[];
|
|
5
5
|
document: AsyncAPIDocumentData | null;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* through this barrel would create an import cycle
|
|
7
7
|
* (schemaFormat → protobuf barrel → plugin → schemaFormat).
|
|
8
8
|
*/
|
|
9
|
-
export { protoToJsonSchema } from './protoToJsonSchema';
|
|
10
|
-
export { validateProtobufStructure } from './validateProtobufStructure';
|
|
9
|
+
export { protoToJsonSchema } from './protoToJsonSchema.js';
|
|
10
|
+
export { validateProtobufStructure } from './validateProtobufStructure.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { protoToJsonSchema as ProtoToJsonSchemaFn } from './protoToJsonSchema';
|
|
1
|
+
import { protoToJsonSchema as ProtoToJsonSchemaFn } from './protoToJsonSchema.js';
|
|
2
2
|
/** Returns the converter if already loaded; otherwise kicks off the
|
|
3
3
|
* (idempotent) background import and returns null. Pair with
|
|
4
4
|
* useProtobufConverterReady() so callers re-resolve once it's ready. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemaParser } from '@asyncapi/parser';
|
|
2
|
-
import { SchemaParserHost } from '../schemaParserRegistry';
|
|
2
|
+
import { SchemaParserHost } from '../schemaParserRegistry.js';
|
|
3
3
|
export declare function ProtobufSchemaParser(): SchemaParser;
|
|
4
4
|
/**
|
|
5
5
|
* Registers the Protobuf schema parser and makes parser-js accept any
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Field } from 'protobufjs';
|
|
2
|
-
import { SchemaNodeData } from '../../types/schema';
|
|
2
|
+
import { SchemaNodeData } from '../../types/schema.js';
|
|
3
3
|
type HashMap = Record<string, unknown>;
|
|
4
4
|
export declare function visit(obj: SchemaNodeData, field: Field): void;
|
|
5
5
|
export declare function findRootOption(field: Field, optionPrefix: string): null | HashMap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaNodeData } from '../types/schema';
|
|
1
|
+
import { SchemaNodeData } from '../types/schema.js';
|
|
2
2
|
export declare const X_PARSER_ORIGINAL_PAYLOAD = "x-parser-original-payload";
|
|
3
3
|
/** Marker set by the with-parser fail-soft path when conversion throws. */
|
|
4
4
|
export declare const X_LIB_CONVERSION_ERROR = "x-lib-conversion-error";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsyncAPIDocumentData } from '../types/schema';
|
|
1
|
+
import { AsyncAPIDocumentData } from '../types/schema.js';
|
|
2
2
|
export type SearchTab = "operations" | "messages" | "schemas" | "info" | "servers" | "endpoints" | "webhooks";
|
|
3
3
|
export type SearchType = "operation" | "message" | "schema" | "info" | "server" | "endpoint" | "webhook";
|
|
4
4
|
export interface SearchEntry {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarkdownTarget } from '../config/config';
|
|
1
|
+
import { MarkdownTarget } from '../config/config.js';
|
|
2
2
|
/** One linkable item in a document: an OpenAPI endpoint, an AsyncAPI operation, ... */
|
|
3
3
|
export interface DocumentTarget {
|
|
4
4
|
/** Stable identifier, unique within the document. `"get /pets"`, `"sendLightMeasurement"`. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AsyncAPIDocumentData } from '../types/schema';
|
|
2
|
-
import { HttpMethod, OpenAPIDocumentData } from '../types/openapi';
|
|
3
|
-
import { Deref } from './jsonPointer';
|
|
1
|
+
import { AsyncAPIDocumentData } from '../types/schema.js';
|
|
2
|
+
import { HttpMethod, OpenAPIDocumentData } from '../types/openapi.js';
|
|
3
|
+
import { Deref } from './jsonPointer.js';
|
|
4
4
|
export declare function asyncApiToMarkdown(doc: AsyncAPIDocumentData, deref?: Deref): string;
|
|
5
5
|
/** Builds a self-contained Markdown snippet for a single AsyncAPI operation:
|
|
6
6
|
* doc info + servers, followed by that one operation's section (see
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ConfigInterface } from '../config';
|
|
2
|
-
import { MarkdownUrlResolver, SidePanelContainment } from '../config/config';
|
|
3
|
-
import { SpecType } from '../contexts';
|
|
4
|
-
import { ApiuikitPlugin } from '../plugins/types';
|
|
1
|
+
import { ConfigInterface } from '../config/index.js';
|
|
2
|
+
import { MarkdownUrlResolver, SidePanelContainment } from '../config/config.js';
|
|
3
|
+
import { SpecType } from '../contexts/index.js';
|
|
4
|
+
import { ApiuikitPlugin } from '../plugins/types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Builds the shared DocumentContext value (deref resolver, portal/root refs,
|
|
7
7
|
* theme-derived settings) plus the CSS custom properties for the theme,
|
|
@@ -15,7 +15,7 @@ export declare function useDocumentProviderValue<S extends SpecType, D extends o
|
|
|
15
15
|
contextValue: {
|
|
16
16
|
specType: S;
|
|
17
17
|
document: D;
|
|
18
|
-
deref: import('../helpers/jsonPointer').Deref;
|
|
18
|
+
deref: import('../helpers/jsonPointer.js').Deref;
|
|
19
19
|
portalHost: HTMLDivElement | null;
|
|
20
20
|
rootElement: HTMLDivElement | null;
|
|
21
21
|
topOffset: number;
|
|
@@ -28,12 +28,12 @@ export declare function useDocumentProviderValue<S extends SpecType, D extends o
|
|
|
28
28
|
showTryIt: boolean;
|
|
29
29
|
markdownUrl: MarkdownUrlResolver | undefined;
|
|
30
30
|
plugins: ApiuikitPlugin[];
|
|
31
|
-
pluginSlotRegistry: import('../plugins/registry').PluginSlotRegistry;
|
|
31
|
+
pluginSlotRegistry: import('../plugins/registry.js').PluginSlotRegistry;
|
|
32
32
|
config: ConfigInterface;
|
|
33
|
-
resolvedMode: import('../utils/theme').ResolvedThemeMode;
|
|
33
|
+
resolvedMode: import('../utils/theme.js').ResolvedThemeMode;
|
|
34
34
|
};
|
|
35
35
|
themeVars: Record<string, string>;
|
|
36
|
-
resolvedMode: import('../utils/theme').ResolvedThemeMode;
|
|
36
|
+
resolvedMode: import('../utils/theme.js').ResolvedThemeMode;
|
|
37
37
|
setPortalHost: import('react').Dispatch<import('react').SetStateAction<HTMLDivElement | null>>;
|
|
38
38
|
setRootElement: import('react').Dispatch<import('react').SetStateAction<HTMLDivElement | null>>;
|
|
39
39
|
};
|