apiuikit 1.11.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-DHBJ8w0h.js → CodeSamples-DqJT72uU.js} +648 -636
- package/dist/{CodeSamples-zwenaP41.cjs → CodeSamples-ILzruYIb.cjs} +33 -33
- package/dist/{LogoExtension-B35DbEgK.cjs → LogoExtension-pwW1l7NO.cjs} +1 -1
- package/dist/{LogoExtension-vr6PCtIB.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 +6 -1
- package/dist/containers/AsyncAPI/AsyncAPIDocumentProvider.d.ts +1 -1
- package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +6 -1
- package/dist/containers/AsyncAPI/Layout.d.ts +7 -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 +7 -1
- package/dist/containers/OpenAPI/OpenAPI.d.ts +6 -1
- package/dist/containers/OpenAPI/OpenAPIDocumentProvider.d.ts +1 -1
- package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +6 -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/hooks/useSpecLayoutController.d.ts +17 -1
- 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-AwzSLIDS.js → index-6q1VqGzf.js} +10357 -10196
- package/dist/{index-DsSuZh0k.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-D2A8jEpz.js → index-Dbr8eb7Z.js} +4838 -4658
- package/dist/index.d.ts +1 -0
- 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-CZm3Y6FF.js → protoToJsonSchema-CbZrqF4-.js} +787 -769
- package/dist/protoToJsonSchema-QVW5EW0-.cjs +83 -0
- package/dist/{protobufSchemaParser-XBkxg_an.cjs → protobufSchemaParser-BEVutm25.cjs} +1 -1
- package/dist/{protobufSchemaParser-BblMCnwh.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-D0oLUuyJ.cjs +0 -178
- package/dist/index-DCDYBZcY.js +0 -1461
- package/dist/index-DWjbhYHQ.cjs +0 -107
- package/dist/index-QekxGfhl.cjs +0 -139
- 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-BLyZqSxO.cjs +0 -83
- package/dist/rust-DKnYCg2f.cjs +0 -1
- package/dist/swift-CAnH__EC.cjs +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type { DocumentTarget, LlmsTxtLink, LlmsTxtOptions } from './helpers/llms
|
|
|
8
8
|
export { markdownForLlm } from './helpers/markdownForLlm';
|
|
9
9
|
export { asyncApiOperationToMarkdown, asyncApiToMarkdown, openApiEndpointToMarkdown, openApiToMarkdown, } from './helpers/toMarkdown';
|
|
10
10
|
export { defaultConfig } from './config';
|
|
11
|
+
export type { SpecLocation } from './hooks/useSpecLayoutController';
|
|
11
12
|
export type { AsyncAPIDocumentData } from './types/schema';
|
|
12
13
|
export type { HttpMethod, OpenAPIDocumentData, OpenAPIOperationData, OpenAPIParameterData, OpenAPIPathItemData, OpenAPIRequestBodyData, OpenAPISecuritySchemeData, OpenAPIServerData, } from './types/openapi';
|
|
13
14
|
export { useAsyncAPIDocument, useAsyncAPIDocumentContext, useDocumentContext, useOpenAPIDocumentContext, } from './contexts';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = "[0-9](_*[0-9])*", c = `\\.(${a})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", l = {
|
|
2
2
|
className: "number",
|
|
3
3
|
variants: [
|
|
4
4
|
// DecimalFloatingPointLiteral
|
|
5
5
|
// including ExponentPart
|
|
6
|
-
{ begin: `(\\b(${
|
|
6
|
+
{ begin: `(\\b(${a})((${c})|\\.)?|(${c}))[eE][+-]?(${a})[fFdD]?\\b` },
|
|
7
7
|
// excluding ExponentPart
|
|
8
|
-
{ begin: `\\b(${
|
|
9
|
-
{ begin: `(${
|
|
10
|
-
{ begin: `\\b(${
|
|
8
|
+
{ begin: `\\b(${a})((${c})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
9
|
+
{ begin: `(${c})[fFdD]?\\b` },
|
|
10
|
+
{ begin: `\\b(${a})[fFdD]\\b` },
|
|
11
11
|
// HexadecimalFloatingPointLiteral
|
|
12
|
-
{ begin: `\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${
|
|
12
|
+
{ begin: `\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${a})[fFdD]?\\b` },
|
|
13
13
|
// DecimalIntegerLiteral
|
|
14
14
|
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
15
15
|
// HexIntegerLiteral
|
|
@@ -21,11 +21,15 @@ var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", _
|
|
|
21
21
|
],
|
|
22
22
|
relevance: 0
|
|
23
23
|
};
|
|
24
|
-
function
|
|
25
|
-
return
|
|
24
|
+
function O(e, s, n) {
|
|
25
|
+
return n === -1 ? "" : e.replace(s, (t) => O(e, s, n - 1));
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const
|
|
27
|
+
function A(e) {
|
|
28
|
+
const s = e.regex, n = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", t = "(?:(?:\\s*\\[\\s*])+)?", o = n + "<@@@>" + t, _ = "(?:" + ("\\?(?:\\s+(?:extends|super)\\s+" + o + ")?") + "|" + o + ")", E = O(
|
|
29
|
+
"(?:\\s*<\\s*" + _ + "(?:\\s*,\\s*" + _ + ")*\\s*>)?",
|
|
30
|
+
/<@@@>/g,
|
|
31
|
+
2
|
|
32
|
+
), r = {
|
|
29
33
|
keyword: [
|
|
30
34
|
"synchronized",
|
|
31
35
|
"abstract",
|
|
@@ -91,9 +95,9 @@ function M(e) {
|
|
|
91
95
|
"super",
|
|
92
96
|
"this"
|
|
93
97
|
]
|
|
94
|
-
},
|
|
98
|
+
}, b = {
|
|
95
99
|
className: "meta",
|
|
96
|
-
begin: "@" +
|
|
100
|
+
begin: "@" + n,
|
|
97
101
|
contains: [
|
|
98
102
|
{
|
|
99
103
|
begin: /\(/,
|
|
@@ -102,11 +106,11 @@ function M(e) {
|
|
|
102
106
|
// allow nested () inside our annotation
|
|
103
107
|
}
|
|
104
108
|
]
|
|
105
|
-
},
|
|
109
|
+
}, d = {
|
|
106
110
|
className: "params",
|
|
107
111
|
begin: /\(/,
|
|
108
112
|
end: /\)/,
|
|
109
|
-
keywords:
|
|
113
|
+
keywords: r,
|
|
110
114
|
relevance: 0,
|
|
111
115
|
contains: [e.C_BLOCK_COMMENT_MODE],
|
|
112
116
|
endsParent: !0
|
|
@@ -114,7 +118,7 @@ function M(e) {
|
|
|
114
118
|
return {
|
|
115
119
|
name: "Java",
|
|
116
120
|
aliases: ["jsp"],
|
|
117
|
-
keywords:
|
|
121
|
+
keywords: r,
|
|
118
122
|
illegal: /<\/|#/,
|
|
119
123
|
contains: [
|
|
120
124
|
e.COMMENT(
|
|
@@ -155,7 +159,7 @@ function M(e) {
|
|
|
155
159
|
match: [
|
|
156
160
|
/\b(?:class|interface|enum|extends|implements|new)/,
|
|
157
161
|
/\s+/,
|
|
158
|
-
|
|
162
|
+
n
|
|
159
163
|
],
|
|
160
164
|
className: {
|
|
161
165
|
1: "keyword",
|
|
@@ -167,62 +171,67 @@ function M(e) {
|
|
|
167
171
|
match: /non-sealed/,
|
|
168
172
|
scope: "keyword"
|
|
169
173
|
},
|
|
174
|
+
{
|
|
175
|
+
// Expression keywords prevent keyword-led expressions from being
|
|
176
|
+
// recognized as variable or method declarations.
|
|
177
|
+
beginKeywords: "new throw return else yield assert",
|
|
178
|
+
relevance: 0
|
|
179
|
+
},
|
|
170
180
|
{
|
|
171
181
|
begin: [
|
|
172
|
-
|
|
173
|
-
/\s
|
|
174
|
-
|
|
175
|
-
|
|
182
|
+
n,
|
|
183
|
+
s.concat(E, t, /\s+/),
|
|
184
|
+
n,
|
|
185
|
+
t,
|
|
186
|
+
/\s*/,
|
|
176
187
|
/=(?!=)/
|
|
177
188
|
],
|
|
178
189
|
className: {
|
|
179
190
|
1: "type",
|
|
180
191
|
3: "variable",
|
|
181
|
-
|
|
192
|
+
6: "operator"
|
|
182
193
|
}
|
|
183
194
|
},
|
|
184
195
|
{
|
|
185
196
|
begin: [
|
|
186
197
|
/record/,
|
|
187
198
|
/\s+/,
|
|
188
|
-
|
|
199
|
+
n
|
|
189
200
|
],
|
|
190
201
|
className: {
|
|
191
202
|
1: "keyword",
|
|
192
203
|
3: "title.class"
|
|
193
204
|
},
|
|
194
205
|
contains: [
|
|
195
|
-
|
|
206
|
+
d,
|
|
196
207
|
e.C_LINE_COMMENT_MODE,
|
|
197
208
|
e.C_BLOCK_COMMENT_MODE
|
|
198
209
|
]
|
|
199
210
|
},
|
|
200
|
-
{
|
|
201
|
-
// Expression keywords prevent 'keyword Name(...)' from being
|
|
202
|
-
// recognized as a function definition
|
|
203
|
-
beginKeywords: "new throw return else",
|
|
204
|
-
relevance: 0
|
|
205
|
-
},
|
|
206
211
|
{
|
|
207
212
|
begin: [
|
|
208
|
-
|
|
209
|
-
|
|
213
|
+
n,
|
|
214
|
+
s.concat(E, t, /\s+/),
|
|
215
|
+
n,
|
|
210
216
|
/\s*(?=\()/
|
|
211
217
|
],
|
|
212
|
-
className: {
|
|
213
|
-
|
|
218
|
+
className: {
|
|
219
|
+
1: "type",
|
|
220
|
+
3: "title.function"
|
|
221
|
+
},
|
|
222
|
+
keywords: r,
|
|
214
223
|
contains: [
|
|
215
224
|
{
|
|
216
225
|
className: "params",
|
|
217
226
|
begin: /\(/,
|
|
218
227
|
end: /\)/,
|
|
219
|
-
keywords:
|
|
228
|
+
keywords: r,
|
|
220
229
|
relevance: 0,
|
|
221
230
|
contains: [
|
|
222
|
-
|
|
231
|
+
b,
|
|
223
232
|
e.APOS_STRING_MODE,
|
|
224
233
|
e.QUOTE_STRING_MODE,
|
|
225
|
-
|
|
234
|
+
l,
|
|
226
235
|
e.C_BLOCK_COMMENT_MODE
|
|
227
236
|
]
|
|
228
237
|
},
|
|
@@ -230,11 +239,11 @@ function M(e) {
|
|
|
230
239
|
e.C_BLOCK_COMMENT_MODE
|
|
231
240
|
]
|
|
232
241
|
},
|
|
233
|
-
|
|
234
|
-
|
|
242
|
+
l,
|
|
243
|
+
b
|
|
235
244
|
]
|
|
236
245
|
};
|
|
237
246
|
}
|
|
238
247
|
export {
|
|
239
|
-
|
|
248
|
+
A as default
|
|
240
249
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a="[0-9](_*[0-9])*",i=`\\.(${a})`,c="[0-9a-fA-F](_*[0-9a-fA-F])*",E={className:"number",variants:[{begin:`(\\b(${a})((${i})|\\.)?|(${i}))[eE][+-]?(${a})[fFdD]?\\b`},{begin:`\\b(${a})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[fFdD]?\\b`},{begin:`\\b(${a})[fFdD]\\b`},{begin:`\\b0[xX]((${c})\\.?|(${c})?\\.(${c}))[pP][+-]?(${a})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${c})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function d(e,t,n){return n===-1?"":e.replace(t,s=>d(e,t,n-1))}function N(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",s="(?:(?:\\s*\\[\\s*])+)?",o=n+"<@@@>"+s,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+o+")?")+"|"+o+")",b=d("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),r={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},l={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},O={className:"params",begin:/\(/,end:/\)/,keywords:r,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:r,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[n,t.concat(b,s,/\s+/),n,s,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[O,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:[n,t.concat(b,s,/\s+/),n,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:r,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:r,relevance:0,contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},E,l]}}exports.default=N;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n="[0-9](_*[0-9])*",s=`\\.(${n})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",u={className:"number",variants:[{begin:`(\\b(${n})((${s})|\\.)?|(${s}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${s})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${s})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function
|
|
2
|
-
`},_]}}exports.default=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n="[0-9](_*[0-9])*",s=`\\.(${n})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",u={className:"number",variants:[{begin:`(\\b(${n})((${s})|\\.)?|(${s}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${s})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${s})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function m(e){const c={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},d={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,o]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,b,o]}]};o.contains.push(a);const E={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},_=u,t=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),i={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},N=i;return N.variants[1].contains=[i],i.variants[1].contains=[N],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:c,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,t,d,g,E,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:c,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[i,e.C_LINE_COMMENT_MODE,t],relevance:0},e.C_LINE_COMMENT_MODE,t,E,l,a,e.C_NUMBER_MODE]},t]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},E,l]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
2
|
+
`},_]}}exports.default=m;
|