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,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function x(e){const t=e.regex,_=/(?![A-Za-z0-9])(?![$])/,o=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,_),r=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,_),
|
|
2
|
-
]`,i={scope:"string",variants:[
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function x(e){const t=e.regex,_=/(?![A-Za-z0-9])(?![$])/,o=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,_),r=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,_),I=t.concat(/[A-Z]+/,_),E={scope:"variable",match:"\\$+"+o},m={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},g={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},v=e.inherit(e.APOS_STRING_MODE,{illegal:null}),y=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(g)}),D={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(g),"on:begin":(n,a)=>{a.data._beginMatch=n[1]||n[2]},"on:end":(n,a)=>{a.data._beginMatch!==n[1]&&a.ignoreMatch()}},w=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),T=`[
|
|
2
|
+
]`,i={scope:"string",variants:[y,v,D,w]},s={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},d=["false","null","true"],S=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],p=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],b={keyword:S,literal:(n=>{const a=[];return n.forEach(c=>{a.push(c),c.toLowerCase()===c?a.push(c.toUpperCase()):a.push(c.toLowerCase())}),a})(d),built_in:p},u=n=>n.map(a=>a.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,t.concat(T,"+"),t.concat("(?!",u(p).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},C=t.concat(o,"\\b(?!\\()"),l={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),C],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,t.concat(/::/,t.lookahead(/(?!class\b)/)),C],scope:{1:"title.class",3:"variable.constant"}},{match:[r,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},M={scope:"attr",match:t.concat(o,t.lookahead(":"),t.lookahead(/(?!::)/))},f={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[M,E,l,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,i,s,O]},A={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",u(S).join("\\b|"),"|",u(p).join("\\b|"),"\\b)"),o,t.concat(T,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[f]};f.contains.push(A);const N=[M,l,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,i,s,O],R={begin:t.concat(/#\[\s*\\?/,t.either(r,I)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:d,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:d,keyword:["new","array"]},contains:["self",...N]},...N,{scope:"meta",variants:[{match:r},{match:I}]}]};return{case_insensitive:!1,keywords:b,contains:[R,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},m,{scope:"variable.language",match:/\$this\b/},E,A,l,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},O,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:b,contains:["self",R,E,l,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,i,s]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},i,s]}}exports.default=x;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function L(e) {
|
|
2
2
|
const t = e.regex, _ = /(?![A-Za-z0-9])(?![$])/, o = t.concat(
|
|
3
3
|
/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,
|
|
4
4
|
_
|
|
@@ -11,7 +11,7 @@ function D(e) {
|
|
|
11
11
|
), E = {
|
|
12
12
|
scope: "variable",
|
|
13
13
|
match: "\\$+" + o
|
|
14
|
-
},
|
|
14
|
+
}, m = {
|
|
15
15
|
scope: "meta",
|
|
16
16
|
variants: [
|
|
17
17
|
{ begin: /<\?php/, relevance: 10 },
|
|
@@ -31,10 +31,10 @@ function D(e) {
|
|
|
31
31
|
end: /\}/
|
|
32
32
|
}
|
|
33
33
|
]
|
|
34
|
-
},
|
|
34
|
+
}, v = e.inherit(e.APOS_STRING_MODE, { illegal: null }), y = e.inherit(e.QUOTE_STRING_MODE, {
|
|
35
35
|
illegal: null,
|
|
36
36
|
contains: e.QUOTE_STRING_MODE.contains.concat(g)
|
|
37
|
-
}),
|
|
37
|
+
}), D = {
|
|
38
38
|
begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
|
|
39
39
|
end: /[ \t]*(\w+)\b/,
|
|
40
40
|
contains: e.QUOTE_STRING_MODE.contains.concat(g),
|
|
@@ -44,17 +44,17 @@ function D(e) {
|
|
|
44
44
|
"on:end": (n, a) => {
|
|
45
45
|
a.data._beginMatch !== n[1] && a.ignoreMatch();
|
|
46
46
|
}
|
|
47
|
-
},
|
|
47
|
+
}, w = e.END_SAME_AS_BEGIN({
|
|
48
48
|
begin: /<<<[ \t]*'(\w+)'\n/,
|
|
49
49
|
end: /[ \t]*(\w+)\b/
|
|
50
|
-
}),
|
|
50
|
+
}), T = `[
|
|
51
51
|
]`, i = {
|
|
52
52
|
scope: "string",
|
|
53
53
|
variants: [
|
|
54
54
|
y,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
v,
|
|
56
|
+
D,
|
|
57
|
+
w
|
|
58
58
|
]
|
|
59
59
|
}, s = {
|
|
60
60
|
scope: "number",
|
|
@@ -73,7 +73,7 @@ function D(e) {
|
|
|
73
73
|
"false",
|
|
74
74
|
"null",
|
|
75
75
|
"true"
|
|
76
|
-
],
|
|
76
|
+
], C = [
|
|
77
77
|
// Magic constants:
|
|
78
78
|
// <https://www.php.net/manual/en/language.constants.predefined.php>
|
|
79
79
|
"__CLASS__",
|
|
@@ -269,7 +269,7 @@ function D(e) {
|
|
|
269
269
|
"static",
|
|
270
270
|
"stdClass"
|
|
271
271
|
], b = {
|
|
272
|
-
keyword:
|
|
272
|
+
keyword: C,
|
|
273
273
|
literal: ((n) => {
|
|
274
274
|
const a = [];
|
|
275
275
|
return n.forEach((c) => {
|
|
@@ -281,7 +281,7 @@ function D(e) {
|
|
|
281
281
|
{
|
|
282
282
|
match: [
|
|
283
283
|
/new/,
|
|
284
|
-
t.concat(
|
|
284
|
+
t.concat(T, "+"),
|
|
285
285
|
// to prevent built ins from being confused as the class constructor call
|
|
286
286
|
t.concat("(?!", u(p).join("\\b|"), "\\b)"),
|
|
287
287
|
r
|
|
@@ -291,14 +291,14 @@ function D(e) {
|
|
|
291
291
|
4: "title.class"
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
] },
|
|
294
|
+
] }, M = t.concat(o, "\\b(?!\\()"), l = { variants: [
|
|
295
295
|
{
|
|
296
296
|
match: [
|
|
297
297
|
t.concat(
|
|
298
298
|
/::/,
|
|
299
299
|
t.lookahead(/(?!class\b)/)
|
|
300
300
|
),
|
|
301
|
-
|
|
301
|
+
M
|
|
302
302
|
],
|
|
303
303
|
scope: { 2: "variable.constant" }
|
|
304
304
|
},
|
|
@@ -316,7 +316,7 @@ function D(e) {
|
|
|
316
316
|
/::/,
|
|
317
317
|
t.lookahead(/(?!class\b)/)
|
|
318
318
|
),
|
|
319
|
-
|
|
319
|
+
M
|
|
320
320
|
],
|
|
321
321
|
scope: {
|
|
322
322
|
1: "title.class",
|
|
@@ -344,45 +344,49 @@ function D(e) {
|
|
|
344
344
|
3: "variable.language"
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
] },
|
|
347
|
+
] }, S = {
|
|
348
348
|
scope: "attr",
|
|
349
349
|
match: t.concat(o, t.lookahead(":"), t.lookahead(/(?!::)/))
|
|
350
|
-
},
|
|
350
|
+
}, A = {
|
|
351
351
|
relevance: 0,
|
|
352
352
|
begin: /\(/,
|
|
353
353
|
end: /\)/,
|
|
354
354
|
keywords: b,
|
|
355
355
|
contains: [
|
|
356
|
-
|
|
356
|
+
S,
|
|
357
357
|
E,
|
|
358
358
|
l,
|
|
359
359
|
e.C_BLOCK_COMMENT_MODE,
|
|
360
|
+
e.C_LINE_COMMENT_MODE,
|
|
361
|
+
e.HASH_COMMENT_MODE,
|
|
360
362
|
i,
|
|
361
363
|
s,
|
|
362
364
|
O
|
|
363
365
|
]
|
|
364
|
-
},
|
|
366
|
+
}, f = {
|
|
365
367
|
relevance: 0,
|
|
366
368
|
match: [
|
|
367
369
|
/\b/,
|
|
368
370
|
// to prevent keywords from being confused as the function title
|
|
369
|
-
t.concat("(?!fn\\b|function\\b|", u(
|
|
371
|
+
t.concat("(?!fn\\b|function\\b|", u(C).join("\\b|"), "|", u(p).join("\\b|"), "\\b)"),
|
|
370
372
|
o,
|
|
371
|
-
t.concat(
|
|
373
|
+
t.concat(T, "*"),
|
|
372
374
|
t.lookahead(/(?=\()/)
|
|
373
375
|
],
|
|
374
376
|
scope: { 3: "title.function.invoke" },
|
|
375
|
-
contains: [
|
|
377
|
+
contains: [A]
|
|
376
378
|
};
|
|
377
|
-
|
|
378
|
-
const
|
|
379
|
-
|
|
379
|
+
A.contains.push(f);
|
|
380
|
+
const N = [
|
|
381
|
+
S,
|
|
380
382
|
l,
|
|
381
383
|
e.C_BLOCK_COMMENT_MODE,
|
|
384
|
+
e.C_LINE_COMMENT_MODE,
|
|
385
|
+
e.HASH_COMMENT_MODE,
|
|
382
386
|
i,
|
|
383
387
|
s,
|
|
384
388
|
O
|
|
385
|
-
],
|
|
389
|
+
], R = {
|
|
386
390
|
begin: t.concat(
|
|
387
391
|
/#\[\s*\\?/,
|
|
388
392
|
t.either(
|
|
@@ -413,10 +417,10 @@ function D(e) {
|
|
|
413
417
|
},
|
|
414
418
|
contains: [
|
|
415
419
|
"self",
|
|
416
|
-
...
|
|
420
|
+
...N
|
|
417
421
|
]
|
|
418
422
|
},
|
|
419
|
-
...
|
|
423
|
+
...N,
|
|
420
424
|
{
|
|
421
425
|
scope: "meta",
|
|
422
426
|
variants: [
|
|
@@ -430,7 +434,7 @@ function D(e) {
|
|
|
430
434
|
case_insensitive: !1,
|
|
431
435
|
keywords: b,
|
|
432
436
|
contains: [
|
|
433
|
-
|
|
437
|
+
R,
|
|
434
438
|
e.HASH_COMMENT_MODE,
|
|
435
439
|
e.COMMENT("//", "$"),
|
|
436
440
|
e.COMMENT(
|
|
@@ -458,13 +462,13 @@ function D(e) {
|
|
|
458
462
|
]
|
|
459
463
|
}
|
|
460
464
|
},
|
|
461
|
-
|
|
465
|
+
m,
|
|
462
466
|
{
|
|
463
467
|
scope: "variable.language",
|
|
464
468
|
match: /\$this\b/
|
|
465
469
|
},
|
|
466
470
|
E,
|
|
467
|
-
|
|
471
|
+
f,
|
|
468
472
|
l,
|
|
469
473
|
{
|
|
470
474
|
match: [
|
|
@@ -502,10 +506,12 @@ function D(e) {
|
|
|
502
506
|
keywords: b,
|
|
503
507
|
contains: [
|
|
504
508
|
"self",
|
|
505
|
-
|
|
509
|
+
R,
|
|
506
510
|
E,
|
|
507
511
|
l,
|
|
508
512
|
e.C_BLOCK_COMMENT_MODE,
|
|
513
|
+
e.C_LINE_COMMENT_MODE,
|
|
514
|
+
e.HASH_COMMENT_MODE,
|
|
509
515
|
i,
|
|
510
516
|
s
|
|
511
517
|
]
|
|
@@ -562,5 +568,5 @@ function D(e) {
|
|
|
562
568
|
};
|
|
563
569
|
}
|
|
564
570
|
export {
|
|
565
|
-
|
|
571
|
+
L as default
|
|
566
572
|
};
|
|
@@ -9,5 +9,5 @@ interface OperationPluginTabsProps<N extends TabSlotName> {
|
|
|
9
9
|
}
|
|
10
10
|
/** Shared host for operation-level plugin tabs and the built-in Reference
|
|
11
11
|
* content. Owns selection, fallback, DOM ids, ARIA panels, and isolation. */
|
|
12
|
-
export default function OperationPluginTabs<N extends TabSlotName>({ name, context, enabled, children, }: OperationPluginTabsProps<N>): import(
|
|
12
|
+
export default function OperationPluginTabs<N extends TabSlotName>({ name, context, enabled, children, }: OperationPluginTabsProps<N>): import('react').JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -7,7 +7,7 @@ import { PluginSlotComponent, PluginSlotContextMap, SupplementarySlotName, TabSl
|
|
|
7
7
|
export declare function PluginBoundary({ label, children }: {
|
|
8
8
|
label: string;
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
-
}): import(
|
|
10
|
+
}): import('react').JSX.Element;
|
|
11
11
|
export interface PluginSlotEntry<N extends SupplementarySlotName> {
|
|
12
12
|
id: string;
|
|
13
13
|
pluginName: string;
|
|
@@ -24,7 +24,7 @@ export interface PluginSlotProps<N extends SupplementarySlotName> {
|
|
|
24
24
|
* can't take down the document or its sibling plugins. Renders nothing when
|
|
25
25
|
* no plugin fills this slot.
|
|
26
26
|
*/
|
|
27
|
-
export declare function PluginSlot<N extends SupplementarySlotName>({ name, context }: PluginSlotProps<N>): import(
|
|
27
|
+
export declare function PluginSlot<N extends SupplementarySlotName>({ name, context }: PluginSlotProps<N>): import('react').JSX.Element | null;
|
|
28
28
|
/** One plugin's fill of a `*.operation.tab` slot, resolved into what the
|
|
29
29
|
* operation panel's tab strip needs. `id` is generated by the registry and
|
|
30
30
|
* does not depend on the plugin's user-facing name. */
|