apiuikit 0.3.0 → 1.0.0

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.
Files changed (149) hide show
  1. package/README.md +66 -7
  2. package/dist/LinkedInExtension-6xekO5bX.cjs +1 -0
  3. package/dist/LinkedInExtension-BL-4T9tt.js +21 -0
  4. package/dist/LogoExtension-BOYrY_RE.cjs +1 -0
  5. package/dist/LogoExtension-HOlSsQf-.js +27 -0
  6. package/dist/XExtension-GyRtdHLL.js +23 -0
  7. package/dist/XExtension-jAiATfg-.cjs +1 -0
  8. package/dist/apiuikit.cjs.js +1 -1
  9. package/dist/apiuikit.css +1 -1
  10. package/dist/apiuikit.es.js +24 -17
  11. package/dist/c-Bz1-FJiA.js +277 -0
  12. package/dist/c-C_Sx7N-F.cjs +1 -0
  13. package/dist/clojure-DWYEZwCD.cjs +1 -0
  14. package/dist/clojure-aY2138WD.js +135 -0
  15. package/dist/components/Authorization.d.ts +28 -17
  16. package/dist/components/ChannelAddress.d.ts +8 -2
  17. package/dist/components/CodeBlock.d.ts +4 -1
  18. package/dist/components/CodeSamples.d.ts +12 -0
  19. package/dist/components/CollapsiblePanel.d.ts +24 -0
  20. package/dist/components/CopyMarkdownButton.d.ts +15 -0
  21. package/dist/components/Examples.d.ts +4 -2
  22. package/dist/components/InfoMetadata.d.ts +21 -2
  23. package/dist/components/Markdown.d.ts +2 -0
  24. package/dist/components/MarkdownExportMenu.d.ts +13 -0
  25. package/dist/components/MethodBadge.d.ts +14 -0
  26. package/dist/components/Navigation/AsyncAPINavigation.d.ts +28 -0
  27. package/dist/components/Navigation/Navigation.d.ts +58 -0
  28. package/dist/components/Navigation/OpenAPINavigation.d.ts +22 -0
  29. package/dist/components/Navigation/SpecNavigation.d.ts +25 -0
  30. package/dist/components/Navigation/index.d.ts +4 -0
  31. package/dist/components/Navigation/sharedSections.d.ts +10 -0
  32. package/dist/components/RenderExtensions.d.ts +28 -0
  33. package/dist/components/Section.d.ts +3 -1
  34. package/dist/components/ServerAddressBanner.d.ts +16 -0
  35. package/dist/components/SidePanel.d.ts +2 -0
  36. package/dist/components/Tabs.d.ts +3 -1
  37. package/dist/components/schema/SchemaTab.d.ts +24 -3
  38. package/dist/components/tests/Authorization.test.d.ts +1 -0
  39. package/dist/components/tests/Bindings.test.d.ts +1 -0
  40. package/dist/components/tests/CodeBlock.test.d.ts +1 -0
  41. package/dist/components/tests/CodeSamples.test.d.ts +1 -0
  42. package/dist/components/tests/CopyMarkdownButton.test.d.ts +1 -0
  43. package/dist/components/tests/MarkdownExportMenu.test.d.ts +1 -0
  44. package/dist/components/tests/RenderExtensions.test.d.ts +1 -0
  45. package/dist/config/config.d.ts +10 -0
  46. package/dist/containers/AsyncAPI/AsyncAPI.d.ts +12 -6
  47. package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +9 -0
  48. package/dist/containers/Information/InformationSection.d.ts +22 -0
  49. package/dist/containers/Information/OpenAPIInformation.d.ts +9 -0
  50. package/dist/containers/OpenAPI/Layout.d.ts +7 -0
  51. package/dist/containers/OpenAPI/OpenAPI.d.ts +18 -0
  52. package/dist/containers/OpenAPI/OpenAPIDocumentProvider.d.ts +13 -0
  53. package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +17 -0
  54. package/dist/containers/OpenAPI/tests/OpenAPI.test.d.ts +1 -0
  55. package/dist/containers/OpenAPI/tests/OpenAPIRenderer.test.d.ts +1 -0
  56. package/dist/containers/Operation/Operations.d.ts +2 -1
  57. package/dist/containers/Path/OperationCallbacks.d.ts +37 -0
  58. package/dist/containers/Path/PathOperation.d.ts +21 -0
  59. package/dist/containers/Path/Paths.d.ts +16 -0
  60. package/dist/containers/Path/ResponseLinks.d.ts +21 -0
  61. package/dist/containers/Path/tests/PathOperation.test.d.ts +1 -0
  62. package/dist/containers/Server/OpenAPIServer.d.ts +4 -0
  63. package/dist/containers/Server/OpenAPIServers.d.ts +13 -0
  64. package/dist/contants.d.ts +7 -0
  65. package/dist/contexts/useSpec.d.ts +30 -6
  66. package/dist/crystal-BcGgviMR.cjs +1 -0
  67. package/dist/crystal-BtD5fR4q.js +283 -0
  68. package/dist/csharp-AnFv7wyC.js +382 -0
  69. package/dist/csharp-yuAGIuP4.cjs +1 -0
  70. package/dist/go-BpetKc7b.cjs +1 -0
  71. package/dist/go-CkZ9_bn0.js +151 -0
  72. package/dist/helpers/codeSamples.d.ts +92 -0
  73. package/dist/helpers/exampleSchema.d.ts +19 -0
  74. package/dist/helpers/hljsLanguages.d.ts +6 -0
  75. package/dist/helpers/openapiParser.d.ts +10 -0
  76. package/dist/helpers/openapiSearchIndex.d.ts +3 -0
  77. package/dist/helpers/resolveDocument.d.ts +8 -0
  78. package/dist/helpers/runtimeExpression.d.ts +15 -0
  79. package/dist/helpers/schemaExample.d.ts +9 -0
  80. package/dist/helpers/searchIndex.d.ts +5 -2
  81. package/dist/helpers/tests/codeSamples.test.d.ts +1 -0
  82. package/dist/helpers/tests/exampleSchema.test.d.ts +1 -0
  83. package/dist/helpers/tests/openapiSearchIndex.test.d.ts +1 -0
  84. package/dist/helpers/tests/toMarkdown.test.d.ts +1 -0
  85. package/dist/helpers/toMarkdown.d.ts +20 -0
  86. package/dist/hooks/useDocumentProviderValue.d.ts +27 -0
  87. package/dist/hooks/useFuseSearch.d.ts +14 -0
  88. package/dist/hooks/useOpenAPISearch.d.ts +9 -0
  89. package/dist/hooks/useSearchResultFocus.d.ts +18 -0
  90. package/dist/hooks/useSpecLayoutController.d.ts +51 -0
  91. package/dist/hooks/useSpecSearch.d.ts +2 -6
  92. package/dist/http--XH4hLDt.cjs +1 -0
  93. package/dist/http-DKeNlJKS.js +85 -0
  94. package/dist/icons/Copy.d.ts +6 -0
  95. package/dist/icons/Info.d.ts +5 -0
  96. package/dist/icons/Search.d.ts +3 -0
  97. package/dist/{index-D7GelPk0.cjs → index-ArzwV232.cjs} +6 -6
  98. package/dist/index-Bh4OKjMA.js +25412 -0
  99. package/dist/index-C278WDNb.cjs +139 -0
  100. package/dist/index-C4I0xC5G.js +17544 -0
  101. package/dist/index-DuW5iShy.cjs +177 -0
  102. package/dist/index-PtAFPDfk.js +18851 -0
  103. package/dist/index.d.ts +7 -0
  104. package/dist/java-BIk0G-rH.cjs +1 -0
  105. package/dist/java-BicX26Pg.js +240 -0
  106. package/dist/kotlin-BwB8b-YX.js +242 -0
  107. package/dist/kotlin-kGuORR5a.cjs +2 -0
  108. package/dist/objectivec-CnyrJ13Z.js +237 -0
  109. package/dist/objectivec-CoeV81Tz.cjs +1 -0
  110. package/dist/ocaml-0j7KDjso.cjs +1 -0
  111. package/dist/ocaml-T8IqWCjo.js +67 -0
  112. package/dist/php-BL35ZHWM.js +566 -0
  113. package/dist/php-DF4zG2hq.cjs +2 -0
  114. package/dist/powershell-CvydS3ek.cjs +1 -0
  115. package/dist/powershell-DuhUKWoO.js +236 -0
  116. package/dist/protoToJsonSchema-AciPTlBK.cjs +83 -0
  117. package/dist/protoToJsonSchema-D1lojrO3.js +6131 -0
  118. package/dist/{protobufSchemaParser-D_2rEsD4.cjs → protobufSchemaParser-7SgmMhQd.cjs} +1 -1
  119. package/dist/{protobufSchemaParser-Cj2WOp05.js → protobufSchemaParser-BohWo_pY.js} +2 -2
  120. package/dist/public/createSectionRoot.d.ts +30 -0
  121. package/dist/public/openapiSections.d.ts +26 -0
  122. package/dist/public/sections.d.ts +6 -3
  123. package/dist/r-B8fCBydS.js +207 -0
  124. package/dist/r-CYaZnHkA.cjs +1 -0
  125. package/dist/ruby-CvOid-1s.js +388 -0
  126. package/dist/ruby-nPcbuC2a.cjs +1 -0
  127. package/dist/rust-BocnJ3Ns.js +305 -0
  128. package/dist/rust-DKnYCg2f.cjs +1 -0
  129. package/dist/stories/AsyncAPI.stories.d.ts +6 -0
  130. package/dist/stories/AsyncAPIRenderer.stories.d.ts +6 -0
  131. package/dist/stories/Messages.stories.d.ts +1 -0
  132. package/dist/stories/Operations.stories.d.ts +6 -0
  133. package/dist/stories/SchemaTab.stories.d.ts +1 -0
  134. package/dist/stories/SchemaTree.stories.d.ts +1 -0
  135. package/dist/stories/Server.stories.d.ts +1 -0
  136. package/dist/stories/documentContextDecorator.d.ts +2 -2
  137. package/dist/stories/noCanvasDocsPage.d.ts +9 -0
  138. package/dist/swift-C35Eof-I.js +799 -0
  139. package/dist/swift-CAnH__EC.cjs +1 -0
  140. package/dist/types/openapi.d.ts +85 -0
  141. package/package.json +16 -3
  142. package/dist/components/Navigation.d.ts +0 -28
  143. package/dist/icons/SideBar.d.ts +0 -6
  144. package/dist/index-Bad1aEIj.js +0 -11352
  145. package/dist/index-CzcxQGxP.js +0 -25414
  146. package/dist/index-gn5KpvCL.cjs +0 -73
  147. package/dist/protoToJsonSchema-8Mm10CIx.cjs +0 -83
  148. package/dist/protoToJsonSchema-BJpwl2Am.js +0 -6174
  149. package/dist/vite.svg +0 -1
@@ -1 +1,9 @@
1
+ /**
2
+ * Read-only scan for `$ref` nodes only (not cycles). Used to verify a
3
+ * caller's `kind="resolved"` promise: leftover refs mean their upstream
4
+ * resolution isn't doing what they think, while object cycles are a normal
5
+ * property of parser output and no broken promise. Terminates on cyclic
6
+ * input via the visited set.
7
+ */
8
+ export declare const containsRefs: (value: unknown, visited?: Set<object>) => boolean;
1
9
  export declare function resolveDocument<T>(doc: T): T;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * OpenAPI runtime expressions (`$response.body#/id`) appear in response
3
+ * `links` parameters and in `callbacks` URL keys. They're written with a `$`
4
+ * sigil and a JSON Pointer (`#/a/b`), which is precise but hard to read mid
5
+ * sentence, so both places show them as a plain dotted path instead.
6
+ */
7
+ /** `$response.body#/data/id` reads as `response.body.data.id`. Non-expressions are left alone. */
8
+ export declare function readableExpression(value: unknown): string;
9
+ /**
10
+ * A callback's key is a URL template that embeds expressions in braces, and
11
+ * may wrap them in literal URL text: `{$request.body#/callbackUrl}` or
12
+ * `https://example.com/{$request.body#/id}/events`. Only the embedded
13
+ * expressions are rewritten; the braces stay, since they mark the placeholder.
14
+ */
15
+ export declare function readableCallbackUrl(url: string): string;
@@ -0,0 +1,9 @@
1
+ export type JsonSchema = Record<string, unknown>;
2
+ export declare function extendExampleSchema(schema: JsonSchema, active?: Set<object>): JsonSchema;
3
+ /**
4
+ * Generates a synthetic example value from a JSON Schema via json-schema-faker.
5
+ * Fails soft: circular or otherwise ungenerable schemas resolve to `undefined`
6
+ * rather than throwing/rejecting, since callers render "no example" instead of
7
+ * crashing.
8
+ */
9
+ export declare function generateSchemaExample(schema: JsonSchema): Promise<unknown>;
@@ -1,6 +1,6 @@
1
1
  import { AsyncAPIDocumentData } from '../types/schema';
2
- export type SearchTab = "operations" | "messages" | "schemas" | "info" | "servers";
3
- export type SearchType = "operation" | "message" | "schema" | "info" | "server";
2
+ export type SearchTab = "operations" | "messages" | "schemas" | "info" | "servers" | "endpoints" | "webhooks";
3
+ export type SearchType = "operation" | "message" | "schema" | "info" | "server" | "endpoint" | "webhook";
4
4
  export interface SearchEntry {
5
5
  id: string;
6
6
  targetId: string;
@@ -15,4 +15,7 @@ export interface SearchEntry {
15
15
  focusSection?: string;
16
16
  schemaFocusTokens?: string[];
17
17
  }
18
+ export declare const normalizeString: (value: unknown) => string;
19
+ /** Walks a single JSON Schema node into flat search entries — spec-agnostic (AsyncAPI and OpenAPI schemas share the same shape), reused by openapiSearchIndex.ts. */
20
+ export declare const addSchemaEntries: (entries: SearchEntry[], schema: unknown, schemaKey: string, schemaName: string) => void;
18
21
  export declare function buildSearchIndex(asyncapi: AsyncAPIDocumentData): SearchEntry[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ import { AsyncAPIDocumentData } from '../types/schema';
2
+ import { HttpMethod, OpenAPIDocumentData } from '../types/openapi';
3
+ type Deref = (ref: string) => unknown;
4
+ export declare function asyncApiToMarkdown(doc: AsyncAPIDocumentData, deref: Deref): string;
5
+ /** Builds a self-contained Markdown snippet for a single AsyncAPI operation:
6
+ * doc info + servers, followed by that one operation's section (see
7
+ * `operationSectionToMarkdown`). Used by the per-operation copy button, as
8
+ * opposed to `asyncApiToMarkdown`'s whole-document export. */
9
+ export declare function asyncApiOperationToMarkdown(doc: AsyncAPIDocumentData, key: string, deref: Deref): string;
10
+ export declare function openApiToMarkdown(doc: OpenAPIDocumentData, deref: Deref): string;
11
+ /**
12
+ * Builds a self-contained Markdown snippet for a single OpenAPI endpoint:
13
+ * doc info + servers (so the snippet stands alone without the rest of the
14
+ * document) followed by that one endpoint's fully-dereferenced parameters,
15
+ * request body, and responses. Used by the per-endpoint copy button in the
16
+ * Endpoints side panel (Paths.tsx), as opposed to `openApiToMarkdown`'s
17
+ * whole-document export.
18
+ */
19
+ export declare function openApiEndpointToMarkdown(doc: OpenAPIDocumentData, method: HttpMethod, path: string, deref: Deref): string;
20
+ export {};
@@ -0,0 +1,27 @@
1
+ import { ConfigInterface } from '../config';
2
+ import { SpecType } from '../contexts';
3
+ /**
4
+ * Builds the shared DocumentContext value (deref resolver, portal/root refs,
5
+ * theme-derived settings) plus the CSS custom properties for the theme,
6
+ * used by both AsyncAPIDocumentProvider and OpenAPIDocumentProvider, which
7
+ * differ only in the spec type they declare and the portal element's
8
+ * className. Generic so the returned contextValue keeps the caller's literal
9
+ * `specType` and document type, and thus lands as the right member of the
10
+ * DocumentContextValue union.
11
+ */
12
+ export declare function useDocumentProviderValue<S extends SpecType, D extends object>(specType: S, document: D, config?: ConfigInterface): {
13
+ contextValue: {
14
+ specType: S;
15
+ document: D;
16
+ deref: (refPath: string) => unknown;
17
+ portalHost: HTMLDivElement | null;
18
+ rootElement: HTMLDivElement | null;
19
+ defaultSchemaExpanded: boolean;
20
+ depthColors: string[];
21
+ showExtensions: boolean;
22
+ showCodeSamples: boolean;
23
+ };
24
+ themeVars: Record<string, string>;
25
+ setPortalHost: import('react').Dispatch<import('react').SetStateAction<HTMLDivElement | null>>;
26
+ setRootElement: import('react').Dispatch<import('react').SetStateAction<HTMLDivElement | null>>;
27
+ };
@@ -0,0 +1,14 @@
1
+ import { SearchEntry } from '../helpers/searchIndex';
2
+ export interface UseSpecSearchOptions {
3
+ threshold?: number;
4
+ limit?: number;
5
+ /** Delay before a query change triggers a search, in ms. Defaults to 150. */
6
+ debounceMs?: number;
7
+ }
8
+ /** Shared debounce + Fuse setup behind useSpecSearch (AsyncAPI) and useOpenAPISearch — only the index-builder differs between specs. */
9
+ export declare function useFuseSearch<T>(document: T, buildIndex: (document: T) => SearchEntry[], options?: UseSpecSearchOptions): {
10
+ query: string;
11
+ setQuery: import('react').Dispatch<import('react').SetStateAction<string>>;
12
+ results: SearchEntry[];
13
+ searchIndex: SearchEntry[];
14
+ };
@@ -0,0 +1,9 @@
1
+ import { OpenAPIDocumentData } from '../types/openapi';
2
+ import { UseSpecSearchOptions } from './useFuseSearch';
3
+ /** Mirrors useSpecSearch (AsyncAPI), built on buildOpenAPISearchIndex instead. */
4
+ export declare function useOpenAPISearch(openapi: OpenAPIDocumentData, options?: UseSpecSearchOptions): {
5
+ query: string;
6
+ setQuery: import('react').Dispatch<import('react').SetStateAction<string>>;
7
+ results: import('../helpers/searchIndex').SearchEntry[];
8
+ searchIndex: import('../helpers/searchIndex').SearchEntry[];
9
+ };
@@ -0,0 +1,18 @@
1
+ export interface ActiveHighlight {
2
+ targetId: string;
3
+ query: string;
4
+ highlight: boolean;
5
+ }
6
+ /**
7
+ * Scrolls to and highlights a search result's target element once it exists
8
+ * in the DOM, retrying since the target may not be rendered yet (e.g. the tab
9
+ * holding it just changed). Shared behind both AsyncAPI/Layout.tsx and
10
+ * OpenAPI/Layout.tsx, which otherwise duplicated this effect verbatim.
11
+ *
12
+ * `deps` should list every piece of state that changes which DOM subtree is
13
+ * currently rendered (active tab, selected item keys, focus targets, ...) —
14
+ * anything that could change whether `activeHighlight.targetId` already
15
+ * exists in the DOM. Its length must stay constant across renders for a given
16
+ * call site, same as any other hook dependency list.
17
+ */
18
+ export declare function useSearchResultFocus(activeHighlight: ActiveHighlight | null, deps: readonly unknown[]): void;
@@ -0,0 +1,51 @@
1
+ import { ContentTabItem } from '../components/ContentTab';
2
+ import { SearchEntry } from '../helpers/searchIndex';
3
+ export interface SchemaFocusTarget {
4
+ tokens: string[];
5
+ id: string;
6
+ }
7
+ export interface LayoutSection<TabKey extends string> {
8
+ id: TabKey | "servers";
9
+ /** Config `show` flag for this section: a hidden section reads back a null selection. */
10
+ visible: boolean;
11
+ }
12
+ export interface SpecLayoutControllerOptions<TabKey extends string> {
13
+ /** Content tabs currently visible (already filtered by config.show). */
14
+ tabs: ContentTabItem[];
15
+ /** Tab to fall back to when no tabs are visible or the stored tab gets hidden. */
16
+ defaultTab: TabKey;
17
+ isTabKey: (value: string) => value is TabKey;
18
+ /**
19
+ * Selectable sections in nav priority order: the tab keys, then "servers".
20
+ * Must keep a constant length across renders (it feeds a hook dependency list).
21
+ */
22
+ sections: readonly LayoutSection<TabKey>[];
23
+ /** Current search input, used to tag highlights and clear them when it empties. */
24
+ searchQuery: string;
25
+ }
26
+ /**
27
+ * Owns the tab/selection/search-focus state machine shared by the AsyncAPI and
28
+ * OpenAPI layouts, which previously duplicated it verbatim. Each layout
29
+ * supplies only its tab definitions, section visibility, and content
30
+ * renderers; everything about "what is selected where, and what should scroll
31
+ * into view" lives here.
32
+ */
33
+ export declare function useSpecLayoutController<TabKey extends string>({ tabs, defaultTab, isTabKey, sections, searchQuery, }: SpecLayoutControllerOptions<TabKey>): {
34
+ effectiveTab: TabKey;
35
+ focusTab: (tab: TabKey) => void;
36
+ /** What the sidebar nav should show as active: the focused section, falling back to the content tab. */
37
+ navActiveSection: "servers" | TabKey;
38
+ /** Per-section selections, clamped to visible sections. */
39
+ selected: Record<"servers" | TabKey, string | null>;
40
+ setSelectedKey: (section: "servers" | TabKey, key: string | null) => void;
41
+ selectedNavItem: {
42
+ tab: "servers" | TabKey;
43
+ key: NonNullable<Record<"servers" | TabKey, string | null>["servers" | TabKey]>;
44
+ } | null;
45
+ handleSearchSelect: (entry: SearchEntry) => void;
46
+ handleNavItemSelect: (tab: TabKey, key: string) => void;
47
+ handleNavServerSelect: (key: string) => void;
48
+ handleContentTabChange: (id: string) => void;
49
+ focusSection: string | null;
50
+ schemaFocusTarget: SchemaFocusTarget | null;
51
+ };
@@ -1,10 +1,6 @@
1
1
  import { AsyncAPIDocumentData } from '../types/schema';
2
- export interface UseSpecSearchOptions {
3
- threshold?: number;
4
- limit?: number;
5
- /** Delay before a query change triggers a search, in ms. Defaults to 150. */
6
- debounceMs?: number;
7
- }
2
+ import { UseSpecSearchOptions } from './useFuseSearch';
3
+ export type { UseSpecSearchOptions };
8
4
  export declare function useSpecSearch(asyncapi: AsyncAPIDocumentData, options?: UseSpecSearchOptions): {
9
5
  query: string;
10
6
  setQuery: import('react').Dispatch<import('react').SetStateAction<string>>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function c(n){const s=n.regex,e="HTTP/([32]|1\\.[01])",i=/[A-Za-z][A-Za-z0-9-]*/,t={className:"attribute",begin:s.concat("^",i,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},a=[t,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+e+" \\d{3})",end:/$/,contains:[{className:"meta",begin:e},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:a}},{begin:"(?=^[A-Z]+ (.*?) "+e+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:e},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:a}},n.inherit(t,{relevance:0})]}}exports.default=c;
@@ -0,0 +1,85 @@
1
+ function c(n) {
2
+ const s = n.regex, e = "HTTP/([32]|1\\.[01])", i = /[A-Za-z][A-Za-z0-9-]*/, a = {
3
+ className: "attribute",
4
+ begin: s.concat("^", i, "(?=\\:\\s)"),
5
+ starts: { contains: [
6
+ {
7
+ className: "punctuation",
8
+ begin: /: /,
9
+ relevance: 0,
10
+ starts: {
11
+ end: "$",
12
+ relevance: 0
13
+ }
14
+ }
15
+ ] }
16
+ }, t = [
17
+ a,
18
+ {
19
+ begin: "\\n\\n",
20
+ starts: {
21
+ subLanguage: [],
22
+ endsWithParent: !0
23
+ }
24
+ }
25
+ ];
26
+ return {
27
+ name: "HTTP",
28
+ aliases: ["https"],
29
+ illegal: /\S/,
30
+ contains: [
31
+ // response
32
+ {
33
+ begin: "^(?=" + e + " \\d{3})",
34
+ end: /$/,
35
+ contains: [
36
+ {
37
+ className: "meta",
38
+ begin: e
39
+ },
40
+ {
41
+ className: "number",
42
+ begin: "\\b\\d{3}\\b"
43
+ }
44
+ ],
45
+ starts: {
46
+ end: /\b\B/,
47
+ illegal: /\S/,
48
+ contains: t
49
+ }
50
+ },
51
+ // request
52
+ {
53
+ begin: "(?=^[A-Z]+ (.*?) " + e + "$)",
54
+ end: /$/,
55
+ contains: [
56
+ {
57
+ className: "string",
58
+ begin: " ",
59
+ end: " ",
60
+ excludeBegin: !0,
61
+ excludeEnd: !0
62
+ },
63
+ {
64
+ className: "meta",
65
+ begin: e
66
+ },
67
+ {
68
+ className: "keyword",
69
+ begin: "[A-Z]+"
70
+ }
71
+ ],
72
+ starts: {
73
+ end: /\b\B/,
74
+ illegal: /\S/,
75
+ contains: t
76
+ }
77
+ },
78
+ // to allow headers to work even without a preamble
79
+ n.inherit(a, { relevance: 0 })
80
+ ]
81
+ };
82
+ }
83
+ export {
84
+ c as default
85
+ };
@@ -0,0 +1,6 @@
1
+ interface IconCopyProps {
2
+ className?: string;
3
+ }
4
+ /** The two-overlapping-sheets copy glyph, as distinct from Clipboard's clipboard-and-clip. */
5
+ export default function IconCopy({ className }: IconCopyProps): import("react").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ interface IconInfoProps {
2
+ className?: string;
3
+ }
4
+ export default function IconInfo({ className }: IconInfoProps): import("react").JSX.Element;
5
+ export {};
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const SearchIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default SearchIcon;