apiuikit 1.12.0 → 2.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.
- package/README.md +2 -52
- package/dist/{CodeSamples-BzQONJ_W.js → CodeSamples-DqJT72uU.js} +648 -636
- package/dist/{CodeSamples-BpMwzCbt.cjs → CodeSamples-ILzruYIb.cjs} +33 -33
- package/dist/{LogoExtension-NutcLQ6T.cjs → LogoExtension-pwW1l7NO.cjs} +1 -1
- package/dist/{LogoExtension-DyWnBQ1M.js → LogoExtension-yx9jporL.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/c-B4BAHWS4.cjs +1 -0
- package/dist/{c-Bz1-FJiA.js → c-C0DTNf68.js} +122 -63
- package/dist/components/AsyncCodeSample.d.ts +1 -1
- package/dist/components/Authorization.d.ts +5 -5
- package/dist/components/Bindings.d.ts +1 -1
- package/dist/components/ChannelAddress.d.ts +1 -1
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeSamples.d.ts +1 -1
- package/dist/components/CollapsiblePanel.d.ts +1 -1
- package/dist/components/ContentTab.d.ts +1 -1
- package/dist/components/CopyButton.d.ts +1 -1
- package/dist/components/DefinitionListItem.d.ts +1 -1
- package/dist/components/DocumentTopBar.d.ts +1 -1
- package/dist/components/ErrorBoundary.d.ts +1 -1
- package/dist/components/Examples.d.ts +1 -1
- package/dist/components/InfoMetadata.d.ts +1 -1
- package/dist/components/MarkdownExportMenu.d.ts +1 -1
- package/dist/components/MethodBadge.d.ts +1 -1
- package/dist/components/Navigation/AsyncAPINavigation.d.ts +1 -1
- package/dist/components/Navigation/Navigation.d.ts +1 -1
- package/dist/components/Navigation/OpenAPINavigation.d.ts +1 -1
- package/dist/components/Navigation/SpecNavigation.d.ts +1 -1
- package/dist/components/QueryParameters.d.ts +1 -1
- package/dist/components/RenderExtensions.d.ts +1 -1
- package/dist/components/Reply.d.ts +1 -1
- package/dist/components/SearchPanel.d.ts +1 -1
- package/dist/components/Section.d.ts +8 -1
- package/dist/components/ServerAddressBanner.d.ts +1 -1
- package/dist/components/TabToggle.d.ts +1 -1
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tag.d.ts +1 -1
- package/dist/components/VerticalNavigation.d.ts +1 -1
- package/dist/components/schema/ExpandToggle.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/SchemaIfThenElseBranch.d.ts +1 -1
- package/dist/components/schema/SchemaMapBranch.d.ts +1 -1
- package/dist/components/schema/SchemaNode.d.ts +1 -1
- package/dist/components/schema/SchemaNotBranch.d.ts +2 -2
- package/dist/components/schema/SchemaTab.d.ts +1 -1
- package/dist/components/schema/SchemaTree.d.ts +1 -1
- package/dist/components/schema/SchemaTreeBranch.d.ts +1 -1
- package/dist/components/schema/SchemaTreeRow.d.ts +1 -1
- package/dist/components/schema/SchemaTypeLabel.d.ts +1 -1
- package/dist/components/schema/SchemaUnionBranch.d.ts +1 -1
- package/dist/config/config.d.ts +17 -0
- package/dist/containers/AsyncAPI/AsyncAPI.d.ts +1 -1
- package/dist/containers/AsyncAPI/AsyncAPIDocumentProvider.d.ts +1 -1
- package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +1 -1
- package/dist/containers/AsyncAPI/Layout.d.ts +1 -1
- package/dist/containers/Information/InformationSection.d.ts +2 -2
- package/dist/containers/Information/OpenAPIInformation.d.ts +1 -1
- package/dist/containers/Messages/Message.d.ts +1 -1
- package/dist/containers/Messages/MessageDetails.d.ts +1 -1
- package/dist/containers/Messages/Messages.d.ts +1 -1
- package/dist/containers/OpenAPI/Layout.d.ts +1 -1
- package/dist/containers/OpenAPI/OpenAPI.d.ts +1 -1
- package/dist/containers/OpenAPI/OpenAPIDocumentProvider.d.ts +1 -1
- package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +1 -1
- package/dist/containers/Operation/Operation.d.ts +1 -1
- package/dist/containers/Operation/Operations.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 +1 -1
- package/dist/containers/Path/ResponseLinks.d.ts +1 -1
- package/dist/containers/Schema/Schemas.d.ts +1 -1
- package/dist/containers/Server/OpenAPIServer.d.ts +1 -1
- package/dist/containers/Server/OpenAPIServers.d.ts +1 -1
- package/dist/containers/Server/Server.d.ts +1 -1
- package/dist/containers/Server/Servers.d.ts +1 -1
- package/dist/contexts/useSpec.d.ts +5 -0
- package/dist/{crystal-BcGgviMR.cjs → crystal-BA1RB3o9.cjs} +1 -1
- package/dist/{crystal-BtD5fR4q.js → crystal-C5EKc8oK.js} +29 -18
- package/dist/{csharp-AnFv7wyC.js → csharp-B6YWt0KR.js} +47 -47
- package/dist/csharp-IihVQN8U.cjs +1 -0
- package/dist/{go-BpetKc7b.cjs → go-By8nj0Vi.cjs} +1 -1
- package/dist/{go-CkZ9_bn0.js → go-C8VcBUsu.js} +7 -2
- package/dist/helpers/openapiParser.d.ts +1 -1
- package/dist/helpers/parser.d.ts +1 -1
- package/dist/hooks/useDocumentProviderValue.d.ts +1 -0
- package/dist/icons/ArrowDown.d.ts +1 -1
- package/dist/icons/ArrowRight.d.ts +1 -1
- package/dist/icons/AtSymbol.d.ts +1 -1
- package/dist/icons/BookOpen.d.ts +1 -1
- package/dist/icons/Check.d.ts +1 -1
- package/dist/icons/Clipboard.d.ts +1 -1
- package/dist/icons/Connection.d.ts +1 -1
- package/dist/icons/Copy.d.ts +1 -1
- package/dist/icons/ExternalLink.d.ts +1 -1
- package/dist/icons/Globe.d.ts +1 -1
- package/dist/icons/IconWrapper.d.ts +1 -1
- package/dist/icons/Info.d.ts +1 -1
- package/dist/icons/Link.d.ts +1 -1
- package/dist/icons/Message.d.ts +1 -1
- package/dist/icons/Operation.d.ts +1 -1
- package/dist/icons/Scale.d.ts +1 -1
- package/dist/icons/Schema.d.ts +1 -1
- package/dist/icons/Server.d.ts +1 -1
- package/dist/icons/ShieldCheck.d.ts +1 -1
- package/dist/icons/Tag.d.ts +1 -1
- package/dist/icons/Variable.d.ts +1 -1
- package/dist/index-1SEMQuYi.js +1704 -0
- package/dist/{index-ByyWsuPc.js → index-6q1VqGzf.js} +10357 -10196
- package/dist/{index-Zmu_k8_1.js → index-BI2__AB3.js} +3637 -3400
- package/dist/index-CI3MIo1V.cjs +137 -0
- package/dist/index-Ccy_JZ0T.cjs +4 -0
- package/dist/index-CfELqow6.cjs +107 -0
- package/dist/index-DNsQrlh-.cjs +178 -0
- package/dist/{index-CxOoKEXt.js → index-Dbr8eb7Z.js} +3118 -3026
- package/dist/{java-BicX26Pg.js → java-BoRJOXvw.js} +48 -39
- package/dist/java-DFXAwvvK.cjs +1 -0
- package/dist/{kotlin-kGuORR5a.cjs → kotlin-B3HlgtFq.cjs} +2 -2
- package/dist/{kotlin-BwB8b-YX.js → kotlin-CIEA64JZ.js} +3 -1
- package/dist/markdown-assets/protoToJsonSchema-B7uaS_Ic.js +83 -0
- package/dist/markdown-assets/{protoToJsonSchema-CBPWaboT.js → protoToJsonSchema-CWtEPUyE.js} +1807 -1788
- package/dist/markdown.cjs +37 -37
- package/dist/markdown.es.js +927 -900
- package/dist/{php-DF4zG2hq.cjs → php-BMUCoWpx.cjs} +2 -2
- package/dist/{php-BL35ZHWM.js → php-DJ7KS8rT.js} +39 -33
- package/dist/plugins/OperationPluginTabs.d.ts +1 -1
- package/dist/plugins/PluginSlot.d.ts +2 -2
- package/dist/{protoToJsonSchema-DYct0Ubq.js → protoToJsonSchema-CbZrqF4-.js} +787 -769
- package/dist/protoToJsonSchema-QVW5EW0-.cjs +83 -0
- package/dist/{protobufSchemaParser-AhCAnBeA.cjs → protobufSchemaParser-BEVutm25.cjs} +1 -1
- package/dist/{protobufSchemaParser-DDehPdy5.js → protobufSchemaParser-CtnNrHbS.js} +2 -2
- package/dist/public/createSectionRoot.d.ts +1 -1
- package/dist/public/openapiSections.d.ts +5 -5
- package/dist/public/schemasSection.d.ts +1 -1
- package/dist/public/sections.d.ts +5 -5
- package/dist/{ruby-nPcbuC2a.cjs → ruby-CGL4kvvH.cjs} +1 -1
- package/dist/{ruby-CvOid-1s.js → ruby-t1jbZ0Fv.js} +2 -2
- package/dist/{rust-BocnJ3Ns.js → rust-DY-oA2gr.js} +40 -26
- package/dist/rust-_vvcEGSJ.cjs +1 -0
- package/dist/swift-BAji1QIq.cjs +1 -0
- package/dist/{swift-C35Eof-I.js → swift-CdDIFB_j.js} +25 -11
- package/dist/utils/theme.d.ts +14 -0
- package/package.json +4 -4
- package/dist/App.d.ts +0 -2
- package/dist/c-C_Sx7N-F.cjs +0 -1
- package/dist/csharp-yuAGIuP4.cjs +0 -1
- package/dist/index-BKvXpIUY.cjs +0 -107
- package/dist/index-DCDYBZcY.js +0 -1461
- package/dist/index-DgKIIH6w.cjs +0 -139
- package/dist/index-DwDyiZr3.cjs +0 -178
- package/dist/index-d8kJa7YD.cjs +0 -4
- package/dist/java-BIk0G-rH.cjs +0 -1
- package/dist/main.d.ts +0 -0
- package/dist/markdown-assets/protoToJsonSchema-CgkcluFJ.js +0 -83
- package/dist/protoToJsonSchema-B86Gpg5n.cjs +0 -83
- package/dist/rust-DKnYCg2f.cjs +0 -1
- package/dist/swift-CAnH__EC.cjs +0 -1
|
@@ -1,30 +1,72 @@
|
|
|
1
|
-
function
|
|
2
|
-
const
|
|
1
|
+
function S(t) {
|
|
2
|
+
const n = t.regex, a = t.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), l = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", E = "(" + l + "|" + n.optional(r) + "[a-zA-Z_]\\w*" + n.optional("<[^<>]+>") + ")", f = n.concat(/\batomic_/, n.either(
|
|
3
|
+
"bool",
|
|
4
|
+
"char",
|
|
5
|
+
"schar",
|
|
6
|
+
"uchar",
|
|
7
|
+
"short",
|
|
8
|
+
"ushort",
|
|
9
|
+
"int",
|
|
10
|
+
"uint",
|
|
11
|
+
"long",
|
|
12
|
+
"ulong",
|
|
13
|
+
"llong",
|
|
14
|
+
"ullong",
|
|
15
|
+
"char16_t",
|
|
16
|
+
"char32_t",
|
|
17
|
+
"wchar_t",
|
|
18
|
+
"int_least8_t",
|
|
19
|
+
"uint_least8_t",
|
|
20
|
+
"int_least16_t",
|
|
21
|
+
"uint_least16_t",
|
|
22
|
+
"int_least32_t",
|
|
23
|
+
"uint_least32_t",
|
|
24
|
+
"int_least64_t",
|
|
25
|
+
"uint_least64_t",
|
|
26
|
+
"int_fast8_t",
|
|
27
|
+
"uint_fast8_t",
|
|
28
|
+
"int_fast16_t",
|
|
29
|
+
"uint_fast16_t",
|
|
30
|
+
"int_fast32_t",
|
|
31
|
+
"uint_fast32_t",
|
|
32
|
+
"int_fast64_t",
|
|
33
|
+
"uint_fast64_t",
|
|
34
|
+
"intptr_t",
|
|
35
|
+
"uintptr_t",
|
|
36
|
+
"size_t",
|
|
37
|
+
"ptrdiff_t",
|
|
38
|
+
"intmax_t",
|
|
39
|
+
"uintmax_t"
|
|
40
|
+
), /\b/), i = {
|
|
3
41
|
className: "type",
|
|
4
42
|
variants: [
|
|
5
43
|
{ begin: "\\b[a-z\\d_]*_t\\b" },
|
|
6
|
-
{ match:
|
|
44
|
+
{ match: f }
|
|
7
45
|
]
|
|
8
|
-
},
|
|
46
|
+
}, s = {
|
|
9
47
|
className: "string",
|
|
10
48
|
variants: [
|
|
11
49
|
{
|
|
12
50
|
begin: '(u8?|U|L)?"',
|
|
13
51
|
end: '"',
|
|
14
52
|
illegal: "\\n",
|
|
15
|
-
contains: [
|
|
53
|
+
contains: [t.BACKSLASH_ESCAPE]
|
|
16
54
|
},
|
|
17
55
|
{
|
|
18
56
|
begin: "(u8?|U|L)?'(" + "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)" + "|.)",
|
|
19
57
|
end: "'",
|
|
20
58
|
illegal: "."
|
|
21
59
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
60
|
+
// https://en.cppreference.com/w/cpp/language/string_literal
|
|
61
|
+
// a d-char-sequence never contains parentheses, backslashes or whitespace;
|
|
62
|
+
// quotes are excluded as well so the closing delimiter cannot swallow the
|
|
63
|
+
// quote that actually terminates the literal
|
|
64
|
+
t.END_SAME_AS_BEGIN({
|
|
65
|
+
begin: /(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,
|
|
66
|
+
end: /\)([^()\\\s"]{0,16})"/
|
|
25
67
|
})
|
|
26
68
|
]
|
|
27
|
-
},
|
|
69
|
+
}, o = {
|
|
28
70
|
className: "number",
|
|
29
71
|
variants: [
|
|
30
72
|
{ match: /\b(0b[01']+)/ },
|
|
@@ -33,7 +75,25 @@ function C(e) {
|
|
|
33
75
|
{ match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }
|
|
34
76
|
],
|
|
35
77
|
relevance: 0
|
|
36
|
-
},
|
|
78
|
+
}, m = {
|
|
79
|
+
scope: "meta",
|
|
80
|
+
begin: /#\s*include\b/,
|
|
81
|
+
end: /$/,
|
|
82
|
+
keywords: { keyword: "include" },
|
|
83
|
+
contains: [
|
|
84
|
+
{
|
|
85
|
+
// the `\` at the end of a line signaling continuation
|
|
86
|
+
begin: /\\\n/
|
|
87
|
+
},
|
|
88
|
+
s,
|
|
89
|
+
{
|
|
90
|
+
scope: "string",
|
|
91
|
+
begin: /<.*?>/
|
|
92
|
+
},
|
|
93
|
+
a,
|
|
94
|
+
t.C_BLOCK_COMMENT_MODE
|
|
95
|
+
]
|
|
96
|
+
}, u = {
|
|
37
97
|
className: "meta",
|
|
38
98
|
begin: /#\s*[a-z]+\b/,
|
|
39
99
|
end: /$/,
|
|
@@ -43,19 +103,18 @@ function C(e) {
|
|
|
43
103
|
begin: /\\\n/,
|
|
44
104
|
relevance: 0
|
|
45
105
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
begin: /<.*?>/
|
|
50
|
-
},
|
|
51
|
-
n,
|
|
52
|
-
e.C_BLOCK_COMMENT_MODE
|
|
106
|
+
t.inherit(s, { className: "string" }),
|
|
107
|
+
a,
|
|
108
|
+
t.C_BLOCK_COMMENT_MODE
|
|
53
109
|
]
|
|
54
|
-
},
|
|
110
|
+
}, c = [
|
|
111
|
+
m,
|
|
112
|
+
u
|
|
113
|
+
], p = {
|
|
55
114
|
className: "title",
|
|
56
|
-
begin:
|
|
115
|
+
begin: n.optional(r) + t.IDENT_RE,
|
|
57
116
|
relevance: 0
|
|
58
|
-
}, d =
|
|
117
|
+
}, d = n.optional(r) + t.IDENT_RE + "\\s*\\(", g = 12, e = {
|
|
59
118
|
keyword: [
|
|
60
119
|
"asm",
|
|
61
120
|
"auto",
|
|
@@ -139,14 +198,14 @@ function C(e) {
|
|
|
139
198
|
literal: "true false NULL",
|
|
140
199
|
// TODO: apply hinting work similar to what was done in cpp.js
|
|
141
200
|
built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
|
|
142
|
-
},
|
|
201
|
+
}, _ = [
|
|
202
|
+
...c,
|
|
143
203
|
i,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
], m = {
|
|
204
|
+
a,
|
|
205
|
+
t.C_BLOCK_COMMENT_MODE,
|
|
206
|
+
o,
|
|
207
|
+
s
|
|
208
|
+
], C = {
|
|
150
209
|
// This mode covers expression context where we can't expect a function
|
|
151
210
|
// definition and shouldn't highlight anything that looks like one:
|
|
152
211
|
// `return some()`, `else if()`, `(x*sum(1, 2))`
|
|
@@ -164,35 +223,35 @@ function C(e) {
|
|
|
164
223
|
end: /;/
|
|
165
224
|
}
|
|
166
225
|
],
|
|
167
|
-
keywords:
|
|
168
|
-
contains:
|
|
226
|
+
keywords: e,
|
|
227
|
+
contains: _.concat([
|
|
169
228
|
{
|
|
170
229
|
begin: /\(/,
|
|
171
230
|
end: /\)/,
|
|
172
|
-
keywords:
|
|
173
|
-
contains:
|
|
231
|
+
keywords: e,
|
|
232
|
+
contains: _.concat(["self"]),
|
|
174
233
|
relevance: 0
|
|
175
234
|
}
|
|
176
235
|
]),
|
|
177
236
|
relevance: 0
|
|
178
|
-
},
|
|
179
|
-
begin: "(" +
|
|
237
|
+
}, b = {
|
|
238
|
+
begin: "(" + E + "[\\*&\\s]+){1," + g + "}" + d,
|
|
180
239
|
returnBegin: !0,
|
|
181
240
|
end: /[{;=]/,
|
|
182
241
|
excludeEnd: !0,
|
|
183
|
-
keywords:
|
|
242
|
+
keywords: e,
|
|
184
243
|
illegal: /[^\w\s\*&:<>.]/,
|
|
185
244
|
contains: [
|
|
186
245
|
{
|
|
187
246
|
// to prevent it from being confused as the function title
|
|
188
|
-
begin:
|
|
189
|
-
keywords:
|
|
247
|
+
begin: l,
|
|
248
|
+
keywords: e,
|
|
190
249
|
relevance: 0
|
|
191
250
|
},
|
|
192
251
|
{
|
|
193
252
|
begin: d,
|
|
194
253
|
returnBegin: !0,
|
|
195
|
-
contains: [
|
|
254
|
+
contains: [t.inherit(p, { className: "title.function" })],
|
|
196
255
|
relevance: 0
|
|
197
256
|
},
|
|
198
257
|
// allow for multiple declarations, e.g.:
|
|
@@ -205,54 +264,54 @@ function C(e) {
|
|
|
205
264
|
className: "params",
|
|
206
265
|
begin: /\(/,
|
|
207
266
|
end: /\)/,
|
|
208
|
-
keywords:
|
|
267
|
+
keywords: e,
|
|
209
268
|
relevance: 0,
|
|
210
269
|
contains: [
|
|
211
|
-
n,
|
|
212
|
-
e.C_BLOCK_COMMENT_MODE,
|
|
213
270
|
a,
|
|
214
|
-
|
|
215
|
-
|
|
271
|
+
t.C_BLOCK_COMMENT_MODE,
|
|
272
|
+
s,
|
|
273
|
+
o,
|
|
274
|
+
i,
|
|
216
275
|
// Count matching parentheses.
|
|
217
276
|
{
|
|
218
277
|
begin: /\(/,
|
|
219
278
|
end: /\)/,
|
|
220
|
-
keywords:
|
|
279
|
+
keywords: e,
|
|
221
280
|
relevance: 0,
|
|
222
281
|
contains: [
|
|
223
282
|
"self",
|
|
224
|
-
n,
|
|
225
|
-
e.C_BLOCK_COMMENT_MODE,
|
|
226
283
|
a,
|
|
227
|
-
|
|
228
|
-
|
|
284
|
+
t.C_BLOCK_COMMENT_MODE,
|
|
285
|
+
s,
|
|
286
|
+
o,
|
|
287
|
+
i
|
|
229
288
|
]
|
|
230
289
|
}
|
|
231
290
|
]
|
|
232
291
|
},
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
292
|
+
i,
|
|
293
|
+
a,
|
|
294
|
+
t.C_BLOCK_COMMENT_MODE,
|
|
295
|
+
...c
|
|
237
296
|
]
|
|
238
297
|
};
|
|
239
298
|
return {
|
|
240
299
|
name: "C",
|
|
241
300
|
aliases: ["h"],
|
|
242
|
-
keywords:
|
|
301
|
+
keywords: e,
|
|
243
302
|
// Until differentiations are added between `c` and `cpp`, `c` will
|
|
244
303
|
// not be auto-detected to avoid auto-detect conflicts between C and C++
|
|
245
304
|
disableAutodetect: !0,
|
|
246
305
|
illegal: "</",
|
|
247
306
|
contains: [].concat(
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
307
|
+
C,
|
|
308
|
+
b,
|
|
309
|
+
_,
|
|
251
310
|
[
|
|
252
|
-
|
|
311
|
+
...c,
|
|
253
312
|
{
|
|
254
|
-
begin:
|
|
255
|
-
keywords:
|
|
313
|
+
begin: t.IDENT_RE + "::",
|
|
314
|
+
keywords: e
|
|
256
315
|
},
|
|
257
316
|
{
|
|
258
317
|
className: "class",
|
|
@@ -260,18 +319,18 @@ function C(e) {
|
|
|
260
319
|
end: /[{;:<>=]/,
|
|
261
320
|
contains: [
|
|
262
321
|
{ beginKeywords: "final class struct" },
|
|
263
|
-
|
|
322
|
+
t.TITLE_MODE
|
|
264
323
|
]
|
|
265
324
|
}
|
|
266
325
|
]
|
|
267
326
|
),
|
|
268
327
|
exports: {
|
|
269
|
-
preprocessor:
|
|
270
|
-
strings:
|
|
271
|
-
keywords:
|
|
328
|
+
preprocessor: u,
|
|
329
|
+
strings: s,
|
|
330
|
+
keywords: e
|
|
272
331
|
}
|
|
273
332
|
};
|
|
274
333
|
}
|
|
275
334
|
export {
|
|
276
|
-
|
|
335
|
+
S as default
|
|
277
336
|
};
|
|
@@ -15,5 +15,5 @@ interface AsyncCodeSampleProps {
|
|
|
15
15
|
* nothing when no compatible target/client produces a snippet for this
|
|
16
16
|
* operation (no protocol-compatible client at all, or a message with no
|
|
17
17
|
* example and no generatable schema). */
|
|
18
|
-
export declare function AsyncCodeSample({ operationId }: AsyncCodeSampleProps): import(
|
|
18
|
+
export declare function AsyncCodeSample({ operationId }: AsyncCodeSampleProps): import('react').JSX.Element | null;
|
|
19
19
|
export default AsyncCodeSample;
|
|
@@ -22,17 +22,17 @@ export interface SecuritySchemeData {
|
|
|
22
22
|
interface Props {
|
|
23
23
|
securities: SecuritySchemeData[];
|
|
24
24
|
}
|
|
25
|
-
export default function Authorization({ securities }: Props): import(
|
|
25
|
+
export default function Authorization({ securities }: Props): import('react').JSX.Element;
|
|
26
26
|
export declare const Bearer: ({ security }: {
|
|
27
27
|
security: SecuritySchemeData;
|
|
28
|
-
}) => import(
|
|
28
|
+
}) => import('react').JSX.Element;
|
|
29
29
|
export declare const ApiKey: ({ security }: {
|
|
30
30
|
security: SecuritySchemeData;
|
|
31
|
-
}) => import(
|
|
31
|
+
}) => import('react').JSX.Element;
|
|
32
32
|
export declare const OpenID: ({ security }: {
|
|
33
33
|
security: SecuritySchemeData;
|
|
34
|
-
}) => import(
|
|
34
|
+
}) => import('react').JSX.Element;
|
|
35
35
|
export declare const OAuth2: ({ security }: {
|
|
36
36
|
security: SecuritySchemeData;
|
|
37
|
-
}) => import(
|
|
37
|
+
}) => import('react').JSX.Element;
|
|
38
38
|
export {};
|
|
@@ -5,5 +5,5 @@ interface Props {
|
|
|
5
5
|
/** Forces this block open — e.g. when search navigates directly to it. */
|
|
6
6
|
focused?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export default function Bindings({ bindings, expand, protocol, focused }: Props): import(
|
|
8
|
+
export default function Bindings({ bindings, expand, protocol, focused }: Props): import('react').JSX.Element | null;
|
|
9
9
|
export {};
|
|
@@ -28,5 +28,5 @@ interface ChannelAddressProps {
|
|
|
28
28
|
*/
|
|
29
29
|
padded?: boolean;
|
|
30
30
|
}
|
|
31
|
-
export declare function ChannelAddress({ address, parameters, className, truncate, peek, padded }: ChannelAddressProps): import(
|
|
31
|
+
export declare function ChannelAddress({ address, parameters, className, truncate, peek, padded }: ChannelAddressProps): import('react').JSX.Element;
|
|
32
32
|
export {};
|
|
@@ -5,5 +5,5 @@ interface CodeBlockProps {
|
|
|
5
5
|
/** Height in px past which the block is clipped behind a "show all" toggle. */
|
|
6
6
|
collapsedMaxHeight?: number;
|
|
7
7
|
}
|
|
8
|
-
export declare function CodeBlock({ code, className, language, collapsedMaxHeight, }: CodeBlockProps): import(
|
|
8
|
+
export declare function CodeBlock({ code, className, language, collapsedMaxHeight, }: CodeBlockProps): import('react').JSX.Element;
|
|
9
9
|
export default CodeBlock;
|
|
@@ -8,5 +8,5 @@ interface CodeSamplesProps {
|
|
|
8
8
|
security: Array<Record<string, string[]>>;
|
|
9
9
|
id: string | null;
|
|
10
10
|
}
|
|
11
|
-
export declare function CodeSamples({ method, path, parameters, requestBody, security, id }: CodeSamplesProps): import(
|
|
11
|
+
export declare function CodeSamples({ method, path, parameters, requestBody, security, id }: CodeSamplesProps): import('react').JSX.Element | null;
|
|
12
12
|
export default CodeSamples;
|
|
@@ -20,5 +20,5 @@ interface CollapsiblePanelProps {
|
|
|
20
20
|
* the ARIA wiring (`aria-expanded`/`aria-controls`) and the "force open on
|
|
21
21
|
* search navigation" glue that was duplicated identically across all three.
|
|
22
22
|
*/
|
|
23
|
-
export default function CollapsiblePanel({ trigger, children, defaultExpanded, forceExpanded, ariaLabelledBy, className, }: CollapsiblePanelProps): import(
|
|
23
|
+
export default function CollapsiblePanel({ trigger, children, defaultExpanded, forceExpanded, ariaLabelledBy, className, }: CollapsiblePanelProps): import('react').JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -5,5 +5,5 @@ interface ContentTabProps {
|
|
|
5
5
|
current: string | null;
|
|
6
6
|
onChange: (id: string) => void;
|
|
7
7
|
}
|
|
8
|
-
export default function ContentTab({ tabs, current, onChange }: ContentTabProps): import(
|
|
8
|
+
export default function ContentTab({ tabs, current, onChange }: ContentTabProps): import('react').JSX.Element | null;
|
|
9
9
|
export {};
|
|
@@ -2,5 +2,5 @@ interface CopyButtonProps {
|
|
|
2
2
|
text: string;
|
|
3
3
|
ariaLabel?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function CopyButton({ text, ariaLabel }: CopyButtonProps): import(
|
|
5
|
+
export declare function CopyButton({ text, ariaLabel }: CopyButtonProps): import('react').JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -12,5 +12,5 @@ interface DefinitionListItemProps {
|
|
|
12
12
|
vertical?: boolean;
|
|
13
13
|
className?: string;
|
|
14
14
|
}
|
|
15
|
-
export default function DefinitionListItem({ IconClass, term, visibleTerm, text, href, vertical, className, }: DefinitionListItemProps): import(
|
|
15
|
+
export default function DefinitionListItem({ IconClass, term, visibleTerm, text, href, vertical, className, }: DefinitionListItemProps): import('react').JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -11,5 +11,5 @@ interface DocumentTopBarProps {
|
|
|
11
11
|
* is actually scrolling, with no JS geometry math; the scroll hide/reveal
|
|
12
12
|
* transition lives here since sticky alone can't express it.
|
|
13
13
|
*/
|
|
14
|
-
export default function DocumentTopBar({ logo, children, forceVisible, }: DocumentTopBarProps): import(
|
|
14
|
+
export default function DocumentTopBar({ logo, children, forceVisible, }: DocumentTopBarProps): import('react').JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -21,6 +21,6 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
|
|
|
21
21
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
22
22
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
23
23
|
reset: () => void;
|
|
24
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import(
|
|
24
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
25
25
|
}
|
|
26
26
|
export {};
|
|
@@ -4,5 +4,5 @@ interface ExamplesProps {
|
|
|
4
4
|
/** A real example value declared in the spec (OpenAPI media type `example`/`examples`, or an AsyncAPI message example), shown as-is instead of auto-generating one when present. */
|
|
5
5
|
providedExample?: unknown;
|
|
6
6
|
}
|
|
7
|
-
export declare function Examples({ schema, providedExample }: ExamplesProps): import(
|
|
7
|
+
export declare function Examples({ schema, providedExample }: ExamplesProps): import('react').JSX.Element | null;
|
|
8
8
|
export {};
|
|
@@ -17,5 +17,5 @@ interface InfoMetadataProps {
|
|
|
17
17
|
/** `info.x-logo`, used by standalone information sections. */
|
|
18
18
|
logo?: ReactNode;
|
|
19
19
|
}
|
|
20
|
-
export default function InfoMetadata({ license, externalDocs, contact, tags, logo, }: InfoMetadataProps): import(
|
|
20
|
+
export default function InfoMetadata({ license, externalDocs, contact, tags, logo, }: InfoMetadataProps): import('react').JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -7,5 +7,5 @@ interface MarkdownExportMenuProps {
|
|
|
7
7
|
serialize: (deref: (ref: string) => unknown) => string;
|
|
8
8
|
onOpenChange?: (isOpen: boolean) => void;
|
|
9
9
|
}
|
|
10
|
-
export default function MarkdownExportMenu({ serialize, onOpenChange, }: MarkdownExportMenuProps): import(
|
|
10
|
+
export default function MarkdownExportMenu({ serialize, onOpenChange, }: MarkdownExportMenuProps): import('react').JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -10,5 +10,5 @@ interface MethodBadgeProps {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
}
|
|
12
12
|
/** The method/action color pill shared across OpenAPI's endpoint detail, its endpoints table, and AsyncAPI's operation list/detail/nav — one place for the method→color mapping, for both specs. */
|
|
13
|
-
export default function MethodBadge({ method, size, className }: MethodBadgeProps): import(
|
|
13
|
+
export default function MethodBadge({ method, size, className }: MethodBadgeProps): import('react').JSX.Element | null;
|
|
14
14
|
export {};
|
|
@@ -24,5 +24,5 @@ interface AsyncAPINavigationProps {
|
|
|
24
24
|
} | null;
|
|
25
25
|
sidebarConfig?: SideBarConfig;
|
|
26
26
|
}
|
|
27
|
-
export default function AsyncAPINavigation({ operations, messages, schemas, servers, hasInfo, activeTab, onTabChange, onItemSelect, onSelectServer, selectedItem, sidebarConfig, }: AsyncAPINavigationProps): import(
|
|
27
|
+
export default function AsyncAPINavigation({ operations, messages, schemas, servers, hasInfo, activeTab, onTabChange, onItemSelect, onSelectServer, selectedItem, sidebarConfig, }: AsyncAPINavigationProps): import('react').JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -54,5 +54,5 @@ interface NavigationProps {
|
|
|
54
54
|
* concerns (channel addresses, action badges, method badges, ...) stay in the
|
|
55
55
|
* adapter while the mechanics below are written once.
|
|
56
56
|
*/
|
|
57
|
-
export default function Navigation({ sections, activeSection, onTabChange, onItemSelect, selectedItem, }: NavigationProps): import(
|
|
57
|
+
export default function Navigation({ sections, activeSection, onTabChange, onItemSelect, selectedItem, }: NavigationProps): import('react').JSX.Element;
|
|
58
58
|
export {};
|
|
@@ -18,5 +18,5 @@ interface OpenAPINavigationProps {
|
|
|
18
18
|
key: string;
|
|
19
19
|
} | null;
|
|
20
20
|
}
|
|
21
|
-
export default function OpenAPINavigation({ paths, webhooks, schemas, servers, hasInfo, activeTab, onTabChange, onItemSelect, onSelectServer, selectedItem, }: OpenAPINavigationProps): import(
|
|
21
|
+
export default function OpenAPINavigation({ paths, webhooks, schemas, servers, hasInfo, activeTab, onTabChange, onItemSelect, onSelectServer, selectedItem, }: OpenAPINavigationProps): import('react').JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -22,4 +22,4 @@ export interface SpecNavigationProps<TabKey extends string> {
|
|
|
22
22
|
* clicks from being treated as a tab switch, and narrows Navigation's
|
|
23
23
|
* stringly-typed callbacks back to the spec's tab union.
|
|
24
24
|
*/
|
|
25
|
-
export default function SpecNavigation<TabKey extends string>({ sections, activeTab, onTabChange, onItemSelect, onSelectServer, selectedItem, }: SpecNavigationProps<TabKey>): import(
|
|
25
|
+
export default function SpecNavigation<TabKey extends string>({ sections, activeTab, onTabChange, onItemSelect, onSelectServer, selectedItem, }: SpecNavigationProps<TabKey>): import('react').JSX.Element;
|
|
@@ -18,4 +18,4 @@ export interface QueryParameterDetail extends ChannelAddressParameterDetail {
|
|
|
18
18
|
*/
|
|
19
19
|
export default function QueryParameters({ parameters }: {
|
|
20
20
|
parameters: QueryParameterDetail[];
|
|
21
|
-
}): import(
|
|
21
|
+
}): import('react').JSX.Element | null;
|
|
@@ -24,5 +24,5 @@ interface RenderExtensionsProps {
|
|
|
24
24
|
* appears in a document). Unmatched x-* keys, and the library's own internal
|
|
25
25
|
* bookkeeping markers (`x-parser-*`, `x-lib-*`), render nothing.
|
|
26
26
|
*/
|
|
27
|
-
export declare function RenderExtensions({ source, pathPrefix }: RenderExtensionsProps): import(
|
|
27
|
+
export declare function RenderExtensions({ source, pathPrefix }: RenderExtensionsProps): import('react').JSX.Element | null;
|
|
28
28
|
export default RenderExtensions;
|
|
@@ -6,5 +6,5 @@ interface IReplyProps {
|
|
|
6
6
|
isSend: boolean;
|
|
7
7
|
operationId: string | null;
|
|
8
8
|
}
|
|
9
|
-
export declare function Reply({ requestMessages, reply, isSend, operationId }: IReplyProps): import(
|
|
9
|
+
export declare function Reply({ requestMessages, reply, isSend, operationId }: IReplyProps): import('react').JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -6,5 +6,5 @@ interface SearchPanelProps {
|
|
|
6
6
|
onSelectResult: (entry: SearchEntry) => void;
|
|
7
7
|
onOpenChange?: (isOpen: boolean) => void;
|
|
8
8
|
}
|
|
9
|
-
export default function SearchPanel({ query, onQueryChange, results, onSelectResult, onOpenChange, }: SearchPanelProps): import(
|
|
9
|
+
export default function SearchPanel({ query, onQueryChange, results, onSelectResult, onOpenChange, }: SearchPanelProps): import('react').JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -22,6 +22,13 @@ interface SectionProps {
|
|
|
22
22
|
* Operations table) so long addresses aren't force-truncated.
|
|
23
23
|
*/
|
|
24
24
|
layout?: SectionLayout;
|
|
25
|
+
/**
|
|
26
|
+
* Keeps the section's default bottom margin. Set false where the section
|
|
27
|
+
* sits directly above related content that brings its own `mt-6`: Section
|
|
28
|
+
* is a flex item in both places, and flex-item margins don't collapse, so
|
|
29
|
+
* the two stack into a gap twice the intended rhythm.
|
|
30
|
+
*/
|
|
31
|
+
bottomSpacing?: boolean;
|
|
25
32
|
}
|
|
26
|
-
export default function Section({ title, content, sideContent, stickySideContent, info, reverseLayoutOnMobile, mobileLeadContent, layout, }: SectionProps): import(
|
|
33
|
+
export default function Section({ title, content, sideContent, stickySideContent, info, reverseLayoutOnMobile, mobileLeadContent, layout, bottomSpacing, }: SectionProps): import('react').JSX.Element;
|
|
27
34
|
export {};
|
|
@@ -12,5 +12,5 @@ interface ServerAddressBannerProps {
|
|
|
12
12
|
/** Extra rows rendered inside the banner below the address box (e.g. AsyncAPI's tag list). */
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
}
|
|
15
|
-
export default function ServerAddressBanner({ address, variables, children }: ServerAddressBannerProps): import(
|
|
15
|
+
export default function ServerAddressBanner({ address, variables, children }: ServerAddressBannerProps): import('react').JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -7,5 +7,5 @@ interface TabToggleProps<T extends string> {
|
|
|
7
7
|
onChange: (id: T) => void;
|
|
8
8
|
ariaLabel?: string;
|
|
9
9
|
}
|
|
10
|
-
export default function TabToggle<T extends string>({ tabs, selected, onChange, ariaLabel, }: TabToggleProps<T>): import(
|
|
10
|
+
export default function TabToggle<T extends string>({ tabs, selected, onChange, ariaLabel, }: TabToggleProps<T>): import('react').JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -25,7 +25,7 @@ interface TabsProps {
|
|
|
25
25
|
*/
|
|
26
26
|
variant?: "segmented";
|
|
27
27
|
}
|
|
28
|
-
export default function Tabs({ tabs, current, onChange, ariaLabel, selectLabel, idPrefix, placeholder, variant, }: TabsProps): import(
|
|
28
|
+
export default function Tabs({ tabs, current, onChange, ariaLabel, selectLabel, idPrefix, placeholder, variant, }: TabsProps): import('react').JSX.Element | null;
|
|
29
29
|
interface TabPanelsProps {
|
|
30
30
|
tabs: Tab[];
|
|
31
31
|
current: string;
|
|
@@ -34,5 +34,5 @@ interface TabPanelsProps {
|
|
|
34
34
|
}
|
|
35
35
|
/** Renders one linked ARIA panel per tab. The caller decides which panels
|
|
36
36
|
* have mounted content, allowing visited panels to remain stateful. */
|
|
37
|
-
export declare function TabPanels({ tabs, current, idPrefix, renderPanel }: TabPanelsProps): import(
|
|
37
|
+
export declare function TabPanels({ tabs, current, idPrefix, renderPanel }: TabPanelsProps): import('react').JSX.Element;
|
|
38
38
|
export {};
|
package/dist/components/Tag.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ type VerticalNavigationProps = {
|
|
|
3
3
|
current?: string;
|
|
4
4
|
setCurrent: (name: string) => void;
|
|
5
5
|
};
|
|
6
|
-
export default function VerticalNavigation({ serverNames, current, setCurrent }: VerticalNavigationProps): import(
|
|
6
|
+
export default function VerticalNavigation({ serverNames, current, setCurrent }: VerticalNavigationProps): import('react').JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -4,5 +4,5 @@ interface ExpandToggleProps {
|
|
|
4
4
|
onToggle: () => void;
|
|
5
5
|
}
|
|
6
6
|
/** Circular +/- toggle with optional "Show details" label when collapsed. */
|
|
7
|
-
export default function ExpandToggle({ depth, expanded, onToggle }: ExpandToggleProps): import(
|
|
7
|
+
export default function ExpandToggle({ depth, expanded, onToggle }: ExpandToggleProps): import('react').JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -7,4 +7,4 @@ export interface SchemaConstraintsProps {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
9
|
/** Renders validation constraints read directly from the schema. */
|
|
10
|
-
export default function SchemaConstraints({ schema, itemSchema, fieldName, className, }: SchemaConstraintsProps): import(
|
|
10
|
+
export default function SchemaConstraints({ schema, itemSchema, fieldName, className, }: SchemaConstraintsProps): import('react').JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface SchemaFieldMetaProps {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
10
|
/** Stacked layout: type on first line, constraint badges below (left-aligned). */
|
|
11
|
-
export default function SchemaFieldMeta({ schema, refLabel, itemSchema, typeLabelOverride, fieldName, className, }: SchemaFieldMetaProps): import(
|
|
11
|
+
export default function SchemaFieldMeta({ schema, refLabel, itemSchema, typeLabelOverride, fieldName, className, }: SchemaFieldMetaProps): import('react').JSX.Element;
|
|
@@ -7,5 +7,5 @@ interface SchemaIfThenElseBranchProps {
|
|
|
7
7
|
elseContent?: ReactNode;
|
|
8
8
|
}
|
|
9
9
|
/** Consolidated if/then/else block with one continuous muted left line. */
|
|
10
|
-
export default function SchemaIfThenElseBranch({ ifContent, thenContent, elseContent, }: SchemaIfThenElseBranchProps): import(
|
|
10
|
+
export default function SchemaIfThenElseBranch({ ifContent, thenContent, elseContent, }: SchemaIfThenElseBranchProps): import('react').JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -4,5 +4,5 @@ interface SchemaMapBranchProps {
|
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
6
|
/** Labeled branch UI for object map keywords (propertyNames, additionalProperties). */
|
|
7
|
-
export default function SchemaMapBranch({ label, children, }: SchemaMapBranchProps): import(
|
|
7
|
+
export default function SchemaMapBranch({ label, children, }: SchemaMapBranchProps): import('react').JSX.Element;
|
|
8
8
|
export {};
|