apiuikit 1.12.0 → 2.0.1
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-C5Tl3k83.cjs +50 -0
- package/dist/{CodeSamples-BzQONJ_W.js → CodeSamples-bu8KSzOn.js} +1225 -1231
- package/dist/{LogoExtension-NutcLQ6T.cjs → LogoExtension-BVOE2HZc.cjs} +1 -1
- package/dist/{LogoExtension-DyWnBQ1M.js → LogoExtension-CZJpJnyk.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-29FyeXas.cjs +137 -0
- package/dist/index-C2tdEw22.cjs +178 -0
- package/dist/{index-Zmu_k8_1.js → index-CbVUi36m.js} +3637 -3400
- package/dist/{index-ByyWsuPc.js → index-Ccaf5SNM.js} +10357 -10196
- package/dist/index-Ccy_JZ0T.cjs +4 -0
- package/dist/index-DKcgVKzx.cjs +107 -0
- package/dist/{index-CxOoKEXt.js → index-DkjcpZQZ.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-BvNrF6Ce.js} +787 -769
- package/dist/protoToJsonSchema-CQwj_Ytd.cjs +83 -0
- package/dist/{protobufSchemaParser-AhCAnBeA.cjs → protobufSchemaParser-DO1jnL81.cjs} +1 -1
- package/dist/{protobufSchemaParser-DDehPdy5.js → protobufSchemaParser-hOIbQrct.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 +20 -4
- package/dist/App.d.ts +0 -2
- package/dist/CodeSamples-BpMwzCbt.cjs +0 -50
- 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,5 +1,5 @@
|
|
|
1
|
-
function
|
|
2
|
-
const
|
|
1
|
+
function L(e) {
|
|
2
|
+
const g = [
|
|
3
3
|
"bool",
|
|
4
4
|
"byte",
|
|
5
5
|
"char",
|
|
@@ -20,7 +20,7 @@ function C(e) {
|
|
|
20
20
|
"ulong",
|
|
21
21
|
"uint",
|
|
22
22
|
"ushort"
|
|
23
|
-
],
|
|
23
|
+
], N = [
|
|
24
24
|
"public",
|
|
25
25
|
"private",
|
|
26
26
|
"protected",
|
|
@@ -36,12 +36,12 @@ function C(e) {
|
|
|
36
36
|
"new",
|
|
37
37
|
"sealed",
|
|
38
38
|
"partial"
|
|
39
|
-
],
|
|
39
|
+
], O = [
|
|
40
40
|
"default",
|
|
41
41
|
"false",
|
|
42
42
|
"null",
|
|
43
43
|
"true"
|
|
44
|
-
],
|
|
44
|
+
], T = [
|
|
45
45
|
"abstract",
|
|
46
46
|
"as",
|
|
47
47
|
"base",
|
|
@@ -99,7 +99,7 @@ function C(e) {
|
|
|
99
99
|
"void",
|
|
100
100
|
"volatile",
|
|
101
101
|
"while"
|
|
102
|
-
],
|
|
102
|
+
], M = [
|
|
103
103
|
"add",
|
|
104
104
|
"alias",
|
|
105
105
|
"and",
|
|
@@ -141,32 +141,32 @@ function C(e) {
|
|
|
141
141
|
"with",
|
|
142
142
|
"yield"
|
|
143
143
|
], n = {
|
|
144
|
-
keyword:
|
|
145
|
-
built_in:
|
|
146
|
-
literal:
|
|
147
|
-
}, a = e.inherit(e.TITLE_MODE, { begin: "[a-zA-Z](\\.?\\w)*" }), i = {
|
|
144
|
+
keyword: T.concat(M),
|
|
145
|
+
built_in: g,
|
|
146
|
+
literal: O
|
|
147
|
+
}, a = e.inherit(e.TITLE_MODE, { begin: "[a-zA-Z](\\.?\\w)*" }), i = "\\d(_*\\d)*", l = "([uU][lL]?|[lL][uU]?)?", t = {
|
|
148
148
|
className: "number",
|
|
149
149
|
variants: [
|
|
150
|
-
{ begin: "\\
|
|
151
|
-
{ begin: "(-?)\\
|
|
152
|
-
{ begin: "(-?)(\\
|
|
150
|
+
{ begin: "\\b0[bB]_*[01](_*[01])*" + l },
|
|
151
|
+
{ begin: "(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*" + l },
|
|
152
|
+
{ begin: "(-?)(\\b" + i + "(\\.(" + i + ")?)?|\\." + i + ")([eE][-+]?" + i + ")?" + "([fFdDmM]|[uU][lL]?|[lL][uU]?)?" }
|
|
153
153
|
],
|
|
154
154
|
relevance: 0
|
|
155
|
-
},
|
|
155
|
+
}, u = {
|
|
156
156
|
className: "string",
|
|
157
157
|
begin: /"""("*)(?!")(.|\n)*?"""\1/,
|
|
158
158
|
relevance: 1
|
|
159
|
-
},
|
|
159
|
+
}, r = {
|
|
160
160
|
className: "string",
|
|
161
161
|
begin: '@"',
|
|
162
162
|
end: '"',
|
|
163
163
|
contains: [{ begin: '""' }]
|
|
164
|
-
}, b = e.inherit(
|
|
164
|
+
}, b = e.inherit(r, { illegal: /\n/ }), c = {
|
|
165
165
|
className: "subst",
|
|
166
166
|
begin: /\{/,
|
|
167
167
|
end: /\}/,
|
|
168
168
|
keywords: n
|
|
169
|
-
},
|
|
169
|
+
}, s = e.inherit(c, { illegal: /\n/ }), o = {
|
|
170
170
|
className: "string",
|
|
171
171
|
begin: /\$"/,
|
|
172
172
|
end: '"',
|
|
@@ -175,9 +175,9 @@ function C(e) {
|
|
|
175
175
|
{ begin: /\{\{/ },
|
|
176
176
|
{ begin: /\}\}/ },
|
|
177
177
|
e.BACKSLASH_ESCAPE,
|
|
178
|
-
|
|
178
|
+
s
|
|
179
179
|
]
|
|
180
|
-
},
|
|
180
|
+
}, E = {
|
|
181
181
|
className: "string",
|
|
182
182
|
begin: /\$@"/,
|
|
183
183
|
end: '"',
|
|
@@ -185,49 +185,49 @@ function C(e) {
|
|
|
185
185
|
{ begin: /\{\{/ },
|
|
186
186
|
{ begin: /\}\}/ },
|
|
187
187
|
{ begin: '""' },
|
|
188
|
-
|
|
188
|
+
c
|
|
189
189
|
]
|
|
190
|
-
},
|
|
190
|
+
}, I = e.inherit(E, {
|
|
191
191
|
illegal: /\n/,
|
|
192
192
|
contains: [
|
|
193
193
|
{ begin: /\{\{/ },
|
|
194
194
|
{ begin: /\}\}/ },
|
|
195
195
|
{ begin: '""' },
|
|
196
|
-
|
|
196
|
+
s
|
|
197
197
|
]
|
|
198
198
|
});
|
|
199
|
-
|
|
199
|
+
c.contains = [
|
|
200
|
+
E,
|
|
200
201
|
o,
|
|
201
|
-
|
|
202
|
-
t,
|
|
202
|
+
r,
|
|
203
203
|
e.APOS_STRING_MODE,
|
|
204
204
|
e.QUOTE_STRING_MODE,
|
|
205
|
-
|
|
205
|
+
t,
|
|
206
206
|
e.C_BLOCK_COMMENT_MODE
|
|
207
|
-
],
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
], s.contains = [
|
|
208
|
+
I,
|
|
209
|
+
o,
|
|
210
210
|
b,
|
|
211
211
|
e.APOS_STRING_MODE,
|
|
212
212
|
e.QUOTE_STRING_MODE,
|
|
213
|
-
|
|
213
|
+
t,
|
|
214
214
|
e.inherit(e.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })
|
|
215
215
|
];
|
|
216
|
-
const
|
|
217
|
-
|
|
216
|
+
const d = { variants: [
|
|
217
|
+
u,
|
|
218
|
+
E,
|
|
218
219
|
o,
|
|
219
|
-
|
|
220
|
-
t,
|
|
220
|
+
r,
|
|
221
221
|
e.APOS_STRING_MODE,
|
|
222
222
|
e.QUOTE_STRING_MODE
|
|
223
|
-
] },
|
|
223
|
+
] }, _ = {
|
|
224
224
|
begin: "<",
|
|
225
225
|
end: ">",
|
|
226
226
|
contains: [
|
|
227
227
|
{ beginKeywords: "in out" },
|
|
228
228
|
a
|
|
229
229
|
]
|
|
230
|
-
},
|
|
230
|
+
}, R = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", D = {
|
|
231
231
|
// prevents expressions like `@class` from incorrect flagging
|
|
232
232
|
// `class` as a keyword
|
|
233
233
|
begin: "@" + e.IDENT_RE,
|
|
@@ -273,8 +273,8 @@ function C(e) {
|
|
|
273
273
|
end: "$",
|
|
274
274
|
keywords: { keyword: "if else elif endif define undef warning error line region endregion pragma checksum" }
|
|
275
275
|
},
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
d,
|
|
277
|
+
t,
|
|
278
278
|
{
|
|
279
279
|
beginKeywords: "class interface",
|
|
280
280
|
relevance: 0,
|
|
@@ -283,7 +283,7 @@ function C(e) {
|
|
|
283
283
|
contains: [
|
|
284
284
|
{ beginKeywords: "where class" },
|
|
285
285
|
a,
|
|
286
|
-
|
|
286
|
+
_,
|
|
287
287
|
e.C_LINE_COMMENT_MODE,
|
|
288
288
|
e.C_BLOCK_COMMENT_MODE
|
|
289
289
|
]
|
|
@@ -306,7 +306,7 @@ function C(e) {
|
|
|
306
306
|
illegal: /[^\s:]/,
|
|
307
307
|
contains: [
|
|
308
308
|
a,
|
|
309
|
-
|
|
309
|
+
_,
|
|
310
310
|
e.C_LINE_COMMENT_MODE,
|
|
311
311
|
e.C_BLOCK_COMMENT_MODE
|
|
312
312
|
]
|
|
@@ -334,7 +334,7 @@ function C(e) {
|
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
className: "function",
|
|
337
|
-
begin: "(" +
|
|
337
|
+
begin: "(" + R + "\\s+)+" + e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
|
|
338
338
|
returnBegin: !0,
|
|
339
339
|
end: /\s*[{;=]/,
|
|
340
340
|
excludeEnd: !0,
|
|
@@ -342,7 +342,7 @@ function C(e) {
|
|
|
342
342
|
contains: [
|
|
343
343
|
// prevents these from being highlighted `title`
|
|
344
344
|
{
|
|
345
|
-
beginKeywords:
|
|
345
|
+
beginKeywords: N.join(" "),
|
|
346
346
|
relevance: 0
|
|
347
347
|
},
|
|
348
348
|
{
|
|
@@ -350,7 +350,7 @@ function C(e) {
|
|
|
350
350
|
returnBegin: !0,
|
|
351
351
|
contains: [
|
|
352
352
|
e.TITLE_MODE,
|
|
353
|
-
|
|
353
|
+
_
|
|
354
354
|
],
|
|
355
355
|
relevance: 0
|
|
356
356
|
},
|
|
@@ -364,8 +364,8 @@ function C(e) {
|
|
|
364
364
|
keywords: n,
|
|
365
365
|
relevance: 0,
|
|
366
366
|
contains: [
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
d,
|
|
368
|
+
t,
|
|
369
369
|
e.C_BLOCK_COMMENT_MODE
|
|
370
370
|
]
|
|
371
371
|
},
|
|
@@ -373,10 +373,10 @@ function C(e) {
|
|
|
373
373
|
e.C_BLOCK_COMMENT_MODE
|
|
374
374
|
]
|
|
375
375
|
},
|
|
376
|
-
|
|
376
|
+
D
|
|
377
377
|
]
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
380
|
export {
|
|
381
|
-
|
|
381
|
+
L as default
|
|
382
382
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function C(e){const g=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],O=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],N=["default","false","null","true"],T=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],u=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],n={keyword:T.concat(u),built_in:g,literal:N},i=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),a="\\d(_*\\d)*",l="([uU][lL]?|[lL][uU]?)?",t={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+l},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+l},{begin:"(-?)(\\b"+a+"(\\.("+a+")?)?|\\."+a+")([eE][-+]?"+a+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},M={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},r={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},b=e.inherit(r,{illegal:/\n/}),c={className:"subst",begin:/\{/,end:/\}/,keywords:n},s=e.inherit(c,{illegal:/\n/}),o={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,s]},E={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},c]},I=e.inherit(E,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},s]});c.contains=[E,o,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,t,e.C_BLOCK_COMMENT_MODE],s.contains=[I,o,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,t,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const d={variants:[M,E,o,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_={begin:"<",end:">",contains:[{beginKeywords:"in out"},i]},R=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",D={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},d,t,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},i,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+R+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:n,contains:[{beginKeywords:O.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,_],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0,contains:[d,t,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},D]}}exports.default=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(e){const n={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:n,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,illegal:/["']/}]}]}}exports.default=t;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(e){const n={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:n,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,illegal:/["']/}]}]}}exports.default=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function r(e) {
|
|
2
2
|
const n = {
|
|
3
3
|
keyword: [
|
|
4
4
|
"break",
|
|
@@ -110,6 +110,11 @@ function c(e) {
|
|
|
110
110
|
// leading 0o octal
|
|
111
111
|
relevance: 0
|
|
112
112
|
},
|
|
113
|
+
{
|
|
114
|
+
match: /-?\b0[bB](_?[01])*i?/,
|
|
115
|
+
// leading 0b binary
|
|
116
|
+
relevance: 0
|
|
117
|
+
},
|
|
113
118
|
{
|
|
114
119
|
match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
|
|
115
120
|
// decimal without a present digit before . (making a digit afterwards required)
|
|
@@ -147,5 +152,5 @@ function c(e) {
|
|
|
147
152
|
};
|
|
148
153
|
}
|
|
149
154
|
export {
|
|
150
|
-
|
|
155
|
+
r as default
|
|
151
156
|
};
|
|
@@ -6,5 +6,5 @@ export declare function parseDocument(raw: string): Promise<{
|
|
|
6
6
|
}>;
|
|
7
7
|
export declare function parseAndRender(raw: string, config?: ConfigInterface): Promise<{
|
|
8
8
|
diagnostics: unknown[];
|
|
9
|
-
view: import(
|
|
9
|
+
view: import('react').JSX.Element | null;
|
|
10
10
|
}>;
|
package/dist/helpers/parser.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare function parseDocument(raw: string): Promise<{
|
|
|
6
6
|
}>;
|
|
7
7
|
export declare function parseAndRender(raw: string, config?: ConfigInterface): Promise<{
|
|
8
8
|
diagnostics: unknown[];
|
|
9
|
-
view: import(
|
|
9
|
+
view: import('react').JSX.Element | null;
|
|
10
10
|
}>;
|
|
@@ -25,6 +25,7 @@ export declare function useDocumentProviderValue<S extends SpecType, D extends o
|
|
|
25
25
|
depthColors: string[];
|
|
26
26
|
showExtensions: boolean;
|
|
27
27
|
showCodeSamples: boolean;
|
|
28
|
+
showTryIt: boolean;
|
|
28
29
|
markdownUrl: MarkdownUrlResolver | undefined;
|
|
29
30
|
plugins: ApiuikitPlugin[];
|
|
30
31
|
pluginSlotRegistry: import('../plugins/registry').PluginSlotRegistry;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface IconArrowDownProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export default function IconDownRight({ className }: IconArrowDownProps): import(
|
|
4
|
+
export default function IconDownRight({ className }: IconArrowDownProps): import('react').JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface IconArrowRightProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export default function IconArrowRight({ className }: IconArrowRightProps): import(
|
|
4
|
+
export default function IconArrowRight({ className }: IconArrowRightProps): import('react').JSX.Element;
|
|
5
5
|
export {};
|
package/dist/icons/AtSymbol.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface IconAtSymbolProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export default function IconAtSymbol({ className }: IconAtSymbolProps): import(
|
|
4
|
+
export default function IconAtSymbol({ className }: IconAtSymbolProps): import('react').JSX.Element;
|
|
5
5
|
export {};
|
package/dist/icons/BookOpen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IconWrapperProps } from './IconWrapper';
|
|
2
2
|
type IconBookOpenProps = IconWrapperProps;
|
|
3
|
-
export default function IconBookOpen(props: IconBookOpenProps): import(
|
|
3
|
+
export default function IconBookOpen(props: IconBookOpenProps): import('react').JSX.Element;
|
|
4
4
|
export {};
|
package/dist/icons/Check.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface IconClipboardProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export default function IconClipboard({ className }: IconClipboardProps): import(
|
|
4
|
+
export default function IconClipboard({ className }: IconClipboardProps): import('react').JSX.Element;
|
|
5
5
|
export {};
|
package/dist/icons/Copy.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ interface IconCopyProps {
|
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
4
|
/** The two-overlapping-sheets copy glyph, as distinct from Clipboard's clipboard-and-clip. */
|
|
5
|
-
export default function IconCopy({ className }: IconCopyProps): import(
|
|
5
|
+
export default function IconCopy({ className }: IconCopyProps): import('react').JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface ExternalLinkProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export default function IconExternalLink({ className }: ExternalLinkProps): import(
|
|
4
|
+
export default function IconExternalLink({ className }: ExternalLinkProps): import('react').JSX.Element;
|
|
5
5
|
export {};
|
package/dist/icons/Globe.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export interface IconWrapperProps extends SVGProps<SVGSVGElement> {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export default function IconWrapper({ className, children, ...props }: IconWrapperProps): import(
|
|
6
|
+
export default function IconWrapper({ className, children, ...props }: IconWrapperProps): import('react').JSX.Element;
|
package/dist/icons/Info.d.ts
CHANGED
package/dist/icons/Link.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IconWrapperProps } from './IconWrapper';
|
|
2
2
|
type IconLinkProps = IconWrapperProps;
|
|
3
|
-
export default function IconLink(props: IconLinkProps): import(
|
|
3
|
+
export default function IconLink(props: IconLinkProps): import('react').JSX.Element;
|
|
4
4
|
export {};
|
package/dist/icons/Message.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface IconMessageTabProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export default function IconMessageTab({ className }: IconMessageTabProps): import(
|
|
4
|
+
export default function IconMessageTab({ className }: IconMessageTabProps): import('react').JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface IconOperationTabProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export default function IconOperationTab({ className, }: IconOperationTabProps): import(
|
|
4
|
+
export default function IconOperationTab({ className, }: IconOperationTabProps): import('react').JSX.Element;
|
|
5
5
|
export {};
|
package/dist/icons/Scale.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { SVGProps } from 'react';
|
|
|
2
2
|
interface IconScaleProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export default function IconScale({ className, ...rest }: IconScaleProps): import(
|
|
5
|
+
export default function IconScale({ className, ...rest }: IconScaleProps): import('react').JSX.Element;
|
|
6
6
|
export {};
|
package/dist/icons/Schema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface IconSchemaTabProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export default function IconSchemaTab({ className }: IconSchemaTabProps): import(
|
|
4
|
+
export default function IconSchemaTab({ className }: IconSchemaTabProps): import('react').JSX.Element;
|
|
5
5
|
export {};
|
package/dist/icons/Server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IconWrapperProps } from './IconWrapper';
|
|
2
2
|
type IconShieldCheckProps = IconWrapperProps;
|
|
3
|
-
export default function IconShieldCheck(props: IconShieldCheckProps): import(
|
|
3
|
+
export default function IconShieldCheck(props: IconShieldCheckProps): import('react').JSX.Element;
|
|
4
4
|
export {};
|
package/dist/icons/Tag.d.ts
CHANGED
package/dist/icons/Variable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IconWrapperProps } from './IconWrapper';
|
|
2
2
|
type IconVariableProps = IconWrapperProps;
|
|
3
|
-
export default function IconVariable(props: IconVariableProps): import(
|
|
3
|
+
export default function IconVariable(props: IconVariableProps): import('react').JSX.Element;
|
|
4
4
|
export {};
|