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,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
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OpenAPIDocumentData } from '../types/openapi';
|
|
2
|
-
import { UseSpecSearchOptions } from './useFuseSearch';
|
|
1
|
+
import { OpenAPIDocumentData } from '../types/openapi.js';
|
|
2
|
+
import { UseSpecSearchOptions } from './useFuseSearch.js';
|
|
3
3
|
/** Mirrors useSpecSearch (AsyncAPI), built on buildOpenAPISearchIndex instead. */
|
|
4
4
|
export declare function useOpenAPISearch(openapi: OpenAPIDocumentData, options?: UseSpecSearchOptions): {
|
|
5
5
|
query: string;
|
|
6
6
|
setQuery: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
7
|
-
results: import('../helpers/searchIndex').SearchEntry[];
|
|
8
|
-
searchIndex: import('../helpers/searchIndex').SearchEntry[];
|
|
7
|
+
results: import('../helpers/searchIndex.js').SearchEntry[];
|
|
8
|
+
searchIndex: import('../helpers/searchIndex.js').SearchEntry[];
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContentTabItem } from '../components/ContentTab';
|
|
2
|
-
import { SearchEntry } from '../helpers/searchIndex';
|
|
1
|
+
import { ContentTabItem } from '../components/ContentTab.js';
|
|
2
|
+
import { SearchEntry } from '../helpers/searchIndex.js';
|
|
3
3
|
export interface SchemaFocusTarget {
|
|
4
4
|
tokens: string[];
|
|
5
5
|
id: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AsyncAPIDocumentData } from '../types/schema';
|
|
2
|
-
import { UseSpecSearchOptions } from './useFuseSearch';
|
|
1
|
+
import { AsyncAPIDocumentData } from '../types/schema.js';
|
|
2
|
+
import { UseSpecSearchOptions } from './useFuseSearch.js';
|
|
3
3
|
export type { UseSpecSearchOptions };
|
|
4
4
|
export declare function useSpecSearch(asyncapi: AsyncAPIDocumentData, options?: UseSpecSearchOptions): {
|
|
5
5
|
query: string;
|
|
6
6
|
setQuery: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
7
|
-
results: import('../helpers/searchIndex').SearchEntry[];
|
|
8
|
-
searchIndex: import('../helpers/searchIndex').SearchEntry[];
|
|
7
|
+
results: import('../helpers/searchIndex.js').SearchEntry[];
|
|
8
|
+
searchIndex: import('../helpers/searchIndex.js').SearchEntry[];
|
|
9
9
|
};
|
package/dist/icons/BookOpen.d.ts
CHANGED
package/dist/icons/Link.d.ts
CHANGED
package/dist/icons/Variable.d.ts
CHANGED
|
@@ -3970,7 +3970,7 @@ function rn(e, t, n, r) {
|
|
|
3970
3970
|
let Pr = null, ws = null;
|
|
3971
3971
|
const eo = /* @__PURE__ */ new Set();
|
|
3972
3972
|
function hp() {
|
|
3973
|
-
return ws || (ws = import("./protoToJsonSchema-
|
|
3973
|
+
return ws || (ws = import("./protoToJsonSchema-BCchfI0U.js").then((e) => {
|
|
3974
3974
|
Pr = e.protoToJsonSchema, eo.forEach((t) => t());
|
|
3975
3975
|
})), ws;
|
|
3976
3976
|
}
|
|
@@ -4504,7 +4504,7 @@ function zl(e) {
|
|
|
4504
4504
|
const Ul = {
|
|
4505
4505
|
"x-x": () => import("./XExtension-GyRtdHLL.js"),
|
|
4506
4506
|
"x-linkedin": () => import("./LinkedInExtension-BL-4T9tt.js")
|
|
4507
|
-
}, Lp = () => import("./LogoExtension-
|
|
4507
|
+
}, Lp = () => import("./LogoExtension-RAcEKP86.js");
|
|
4508
4508
|
function Mo() {
|
|
4509
4509
|
return {
|
|
4510
4510
|
async: !1,
|
|
@@ -14186,7 +14186,7 @@ function bb({
|
|
|
14186
14186
|
] });
|
|
14187
14187
|
}
|
|
14188
14188
|
const yb = Gn(
|
|
14189
|
-
() => import("./CodeSamples-
|
|
14189
|
+
() => import("./CodeSamples-k51RAGfk.js").then(({ CodeSamples: e }) => ({ default: e }))
|
|
14190
14190
|
);
|
|
14191
14191
|
function xb(e) {
|
|
14192
14192
|
return e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
|
|
@@ -15208,7 +15208,7 @@ function Gb(e) {
|
|
|
15208
15208
|
}
|
|
15209
15209
|
async function Kb() {
|
|
15210
15210
|
try {
|
|
15211
|
-
const e = await import("./index-
|
|
15211
|
+
const e = await import("./index-BaJBvuAY.js").then((n) => n.i), t = e.default ?? e;
|
|
15212
15212
|
if (typeof t != "function")
|
|
15213
15213
|
throw new Error("Unexpected export shape from '@asyncapi/parser/browser'.");
|
|
15214
15214
|
return t;
|
|
@@ -15222,7 +15222,7 @@ async function Su(e) {
|
|
|
15222
15222
|
try {
|
|
15223
15223
|
const t = await Kb(), n = new t();
|
|
15224
15224
|
Hb(n);
|
|
15225
|
-
const { registerProtobufSchemaParser: r } = await import("./protobufSchemaParser-
|
|
15225
|
+
const { registerProtobufSchemaParser: r } = await import("./protobufSchemaParser-DSSUEb8t.js");
|
|
15226
15226
|
r(n);
|
|
15227
15227
|
const { document: s, diagnostics: o } = await n.parse(e, {
|
|
15228
15228
|
validateOptions: { allowedSeverity: { error: !0 } }
|
|
@@ -15289,7 +15289,7 @@ function _y({
|
|
|
15289
15289
|
}
|
|
15290
15290
|
async function Jb() {
|
|
15291
15291
|
try {
|
|
15292
|
-
return await import("./index-
|
|
15292
|
+
return await import("./index-UNhqn70K.js");
|
|
15293
15293
|
} catch (e) {
|
|
15294
15294
|
throw console.error("[apiuikit] Failed to load '@scalar/openapi-parser':", e), new Error(
|
|
15295
15295
|
"[apiuikit] The parsed entry requires '@scalar/openapi-parser'. Install it (`npm i @scalar/openapi-parser`), or use the `OpenAPI` component with a pre-resolved document instead."
|
|
@@ -5,7 +5,7 @@ var Vp = (_i) => {
|
|
|
5
5
|
var bd = (_i, Oi, Ai) => Oi in _i ? gd(_i, Oi, { enumerable: !0, configurable: !0, writable: !0, value: Ai }) : _i[Oi] = Ai;
|
|
6
6
|
var Np = (_i, Oi, Ai) => bd(_i, typeof Oi != "symbol" ? Oi + "" : Oi, Ai), Fp = (_i, Oi, Ai) => Oi.has(_i) || Vp("Cannot " + Ai);
|
|
7
7
|
var pr = (_i, Oi, Ai) => (Fp(_i, Oi, "read from private field"), Ai ? Ai.call(_i) : Oi.get(_i)), co = (_i, Oi, Ai) => Oi.has(_i) ? Vp("Cannot add the same private member more than once") : Oi instanceof WeakSet ? Oi.add(_i) : Oi.set(_i, Ai), ca = (_i, Oi, Ai, cn) => (Fp(_i, Oi, "write to private field"), cn ? cn.call(_i, Ai) : Oi.set(_i, Ai), Ai);
|
|
8
|
-
import { g as vd } from "./index-
|
|
8
|
+
import { g as vd } from "./index-BV_l6D37.js";
|
|
9
9
|
function jd(_i, Oi) {
|
|
10
10
|
for (var Ai = 0; Ai < Oi.length; Ai++) {
|
|
11
11
|
const cn = Oi[Ai];
|