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.
Files changed (160) hide show
  1. package/README.md +2 -52
  2. package/dist/{CodeSamples-BzQONJ_W.js → CodeSamples-DqJT72uU.js} +648 -636
  3. package/dist/{CodeSamples-BpMwzCbt.cjs → CodeSamples-ILzruYIb.cjs} +33 -33
  4. package/dist/{LogoExtension-NutcLQ6T.cjs → LogoExtension-pwW1l7NO.cjs} +1 -1
  5. package/dist/{LogoExtension-DyWnBQ1M.js → LogoExtension-yx9jporL.js} +1 -1
  6. package/dist/apiuikit.cjs.js +1 -1
  7. package/dist/apiuikit.css +1 -1
  8. package/dist/apiuikit.es.js +1 -1
  9. package/dist/c-B4BAHWS4.cjs +1 -0
  10. package/dist/{c-Bz1-FJiA.js → c-C0DTNf68.js} +122 -63
  11. package/dist/components/AsyncCodeSample.d.ts +1 -1
  12. package/dist/components/Authorization.d.ts +5 -5
  13. package/dist/components/Bindings.d.ts +1 -1
  14. package/dist/components/ChannelAddress.d.ts +1 -1
  15. package/dist/components/CodeBlock.d.ts +1 -1
  16. package/dist/components/CodeSamples.d.ts +1 -1
  17. package/dist/components/CollapsiblePanel.d.ts +1 -1
  18. package/dist/components/ContentTab.d.ts +1 -1
  19. package/dist/components/CopyButton.d.ts +1 -1
  20. package/dist/components/DefinitionListItem.d.ts +1 -1
  21. package/dist/components/DocumentTopBar.d.ts +1 -1
  22. package/dist/components/ErrorBoundary.d.ts +1 -1
  23. package/dist/components/Examples.d.ts +1 -1
  24. package/dist/components/InfoMetadata.d.ts +1 -1
  25. package/dist/components/MarkdownExportMenu.d.ts +1 -1
  26. package/dist/components/MethodBadge.d.ts +1 -1
  27. package/dist/components/Navigation/AsyncAPINavigation.d.ts +1 -1
  28. package/dist/components/Navigation/Navigation.d.ts +1 -1
  29. package/dist/components/Navigation/OpenAPINavigation.d.ts +1 -1
  30. package/dist/components/Navigation/SpecNavigation.d.ts +1 -1
  31. package/dist/components/QueryParameters.d.ts +1 -1
  32. package/dist/components/RenderExtensions.d.ts +1 -1
  33. package/dist/components/Reply.d.ts +1 -1
  34. package/dist/components/SearchPanel.d.ts +1 -1
  35. package/dist/components/Section.d.ts +8 -1
  36. package/dist/components/ServerAddressBanner.d.ts +1 -1
  37. package/dist/components/TabToggle.d.ts +1 -1
  38. package/dist/components/Tabs.d.ts +2 -2
  39. package/dist/components/Tag.d.ts +1 -1
  40. package/dist/components/VerticalNavigation.d.ts +1 -1
  41. package/dist/components/schema/ExpandToggle.d.ts +1 -1
  42. package/dist/components/schema/SchemaCaseDetail.d.ts +1 -1
  43. package/dist/components/schema/SchemaConstraints.d.ts +1 -1
  44. package/dist/components/schema/SchemaFieldMeta.d.ts +1 -1
  45. package/dist/components/schema/SchemaIfThenElseBranch.d.ts +1 -1
  46. package/dist/components/schema/SchemaMapBranch.d.ts +1 -1
  47. package/dist/components/schema/SchemaNode.d.ts +1 -1
  48. package/dist/components/schema/SchemaNotBranch.d.ts +2 -2
  49. package/dist/components/schema/SchemaTab.d.ts +1 -1
  50. package/dist/components/schema/SchemaTree.d.ts +1 -1
  51. package/dist/components/schema/SchemaTreeBranch.d.ts +1 -1
  52. package/dist/components/schema/SchemaTreeRow.d.ts +1 -1
  53. package/dist/components/schema/SchemaTypeLabel.d.ts +1 -1
  54. package/dist/components/schema/SchemaUnionBranch.d.ts +1 -1
  55. package/dist/config/config.d.ts +17 -0
  56. package/dist/containers/AsyncAPI/AsyncAPI.d.ts +1 -1
  57. package/dist/containers/AsyncAPI/AsyncAPIDocumentProvider.d.ts +1 -1
  58. package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +1 -1
  59. package/dist/containers/AsyncAPI/Layout.d.ts +1 -1
  60. package/dist/containers/Information/InformationSection.d.ts +2 -2
  61. package/dist/containers/Information/OpenAPIInformation.d.ts +1 -1
  62. package/dist/containers/Messages/Message.d.ts +1 -1
  63. package/dist/containers/Messages/MessageDetails.d.ts +1 -1
  64. package/dist/containers/Messages/Messages.d.ts +1 -1
  65. package/dist/containers/OpenAPI/Layout.d.ts +1 -1
  66. package/dist/containers/OpenAPI/OpenAPI.d.ts +1 -1
  67. package/dist/containers/OpenAPI/OpenAPIDocumentProvider.d.ts +1 -1
  68. package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +1 -1
  69. package/dist/containers/Operation/Operation.d.ts +1 -1
  70. package/dist/containers/Operation/Operations.d.ts +1 -1
  71. package/dist/containers/Path/OperationCallbacks.d.ts +1 -1
  72. package/dist/containers/Path/PathOperation.d.ts +1 -1
  73. package/dist/containers/Path/Paths.d.ts +1 -1
  74. package/dist/containers/Path/ResponseLinks.d.ts +1 -1
  75. package/dist/containers/Schema/Schemas.d.ts +1 -1
  76. package/dist/containers/Server/OpenAPIServer.d.ts +1 -1
  77. package/dist/containers/Server/OpenAPIServers.d.ts +1 -1
  78. package/dist/containers/Server/Server.d.ts +1 -1
  79. package/dist/containers/Server/Servers.d.ts +1 -1
  80. package/dist/contexts/useSpec.d.ts +5 -0
  81. package/dist/{crystal-BcGgviMR.cjs → crystal-BA1RB3o9.cjs} +1 -1
  82. package/dist/{crystal-BtD5fR4q.js → crystal-C5EKc8oK.js} +29 -18
  83. package/dist/{csharp-AnFv7wyC.js → csharp-B6YWt0KR.js} +47 -47
  84. package/dist/csharp-IihVQN8U.cjs +1 -0
  85. package/dist/{go-BpetKc7b.cjs → go-By8nj0Vi.cjs} +1 -1
  86. package/dist/{go-CkZ9_bn0.js → go-C8VcBUsu.js} +7 -2
  87. package/dist/helpers/openapiParser.d.ts +1 -1
  88. package/dist/helpers/parser.d.ts +1 -1
  89. package/dist/hooks/useDocumentProviderValue.d.ts +1 -0
  90. package/dist/icons/ArrowDown.d.ts +1 -1
  91. package/dist/icons/ArrowRight.d.ts +1 -1
  92. package/dist/icons/AtSymbol.d.ts +1 -1
  93. package/dist/icons/BookOpen.d.ts +1 -1
  94. package/dist/icons/Check.d.ts +1 -1
  95. package/dist/icons/Clipboard.d.ts +1 -1
  96. package/dist/icons/Connection.d.ts +1 -1
  97. package/dist/icons/Copy.d.ts +1 -1
  98. package/dist/icons/ExternalLink.d.ts +1 -1
  99. package/dist/icons/Globe.d.ts +1 -1
  100. package/dist/icons/IconWrapper.d.ts +1 -1
  101. package/dist/icons/Info.d.ts +1 -1
  102. package/dist/icons/Link.d.ts +1 -1
  103. package/dist/icons/Message.d.ts +1 -1
  104. package/dist/icons/Operation.d.ts +1 -1
  105. package/dist/icons/Scale.d.ts +1 -1
  106. package/dist/icons/Schema.d.ts +1 -1
  107. package/dist/icons/Server.d.ts +1 -1
  108. package/dist/icons/ShieldCheck.d.ts +1 -1
  109. package/dist/icons/Tag.d.ts +1 -1
  110. package/dist/icons/Variable.d.ts +1 -1
  111. package/dist/index-1SEMQuYi.js +1704 -0
  112. package/dist/{index-ByyWsuPc.js → index-6q1VqGzf.js} +10357 -10196
  113. package/dist/{index-Zmu_k8_1.js → index-BI2__AB3.js} +3637 -3400
  114. package/dist/index-CI3MIo1V.cjs +137 -0
  115. package/dist/index-Ccy_JZ0T.cjs +4 -0
  116. package/dist/index-CfELqow6.cjs +107 -0
  117. package/dist/index-DNsQrlh-.cjs +178 -0
  118. package/dist/{index-CxOoKEXt.js → index-Dbr8eb7Z.js} +3118 -3026
  119. package/dist/{java-BicX26Pg.js → java-BoRJOXvw.js} +48 -39
  120. package/dist/java-DFXAwvvK.cjs +1 -0
  121. package/dist/{kotlin-kGuORR5a.cjs → kotlin-B3HlgtFq.cjs} +2 -2
  122. package/dist/{kotlin-BwB8b-YX.js → kotlin-CIEA64JZ.js} +3 -1
  123. package/dist/markdown-assets/protoToJsonSchema-B7uaS_Ic.js +83 -0
  124. package/dist/markdown-assets/{protoToJsonSchema-CBPWaboT.js → protoToJsonSchema-CWtEPUyE.js} +1807 -1788
  125. package/dist/markdown.cjs +37 -37
  126. package/dist/markdown.es.js +927 -900
  127. package/dist/{php-DF4zG2hq.cjs → php-BMUCoWpx.cjs} +2 -2
  128. package/dist/{php-BL35ZHWM.js → php-DJ7KS8rT.js} +39 -33
  129. package/dist/plugins/OperationPluginTabs.d.ts +1 -1
  130. package/dist/plugins/PluginSlot.d.ts +2 -2
  131. package/dist/{protoToJsonSchema-DYct0Ubq.js → protoToJsonSchema-CbZrqF4-.js} +787 -769
  132. package/dist/protoToJsonSchema-QVW5EW0-.cjs +83 -0
  133. package/dist/{protobufSchemaParser-AhCAnBeA.cjs → protobufSchemaParser-BEVutm25.cjs} +1 -1
  134. package/dist/{protobufSchemaParser-DDehPdy5.js → protobufSchemaParser-CtnNrHbS.js} +2 -2
  135. package/dist/public/createSectionRoot.d.ts +1 -1
  136. package/dist/public/openapiSections.d.ts +5 -5
  137. package/dist/public/schemasSection.d.ts +1 -1
  138. package/dist/public/sections.d.ts +5 -5
  139. package/dist/{ruby-nPcbuC2a.cjs → ruby-CGL4kvvH.cjs} +1 -1
  140. package/dist/{ruby-CvOid-1s.js → ruby-t1jbZ0Fv.js} +2 -2
  141. package/dist/{rust-BocnJ3Ns.js → rust-DY-oA2gr.js} +40 -26
  142. package/dist/rust-_vvcEGSJ.cjs +1 -0
  143. package/dist/swift-BAji1QIq.cjs +1 -0
  144. package/dist/{swift-C35Eof-I.js → swift-CdDIFB_j.js} +25 -11
  145. package/dist/utils/theme.d.ts +14 -0
  146. package/package.json +4 -4
  147. package/dist/App.d.ts +0 -2
  148. package/dist/c-C_Sx7N-F.cjs +0 -1
  149. package/dist/csharp-yuAGIuP4.cjs +0 -1
  150. package/dist/index-BKvXpIUY.cjs +0 -107
  151. package/dist/index-DCDYBZcY.js +0 -1461
  152. package/dist/index-DgKIIH6w.cjs +0 -139
  153. package/dist/index-DwDyiZr3.cjs +0 -178
  154. package/dist/index-d8kJa7YD.cjs +0 -4
  155. package/dist/java-BIk0G-rH.cjs +0 -1
  156. package/dist/main.d.ts +0 -0
  157. package/dist/markdown-assets/protoToJsonSchema-CgkcluFJ.js +0 -83
  158. package/dist/protoToJsonSchema-B86Gpg5n.cjs +0 -83
  159. package/dist/rust-DKnYCg2f.cjs +0 -1
  160. 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,}/,_),g=t.concat(/[A-Z]+/,_),E={scope:"variable",match:"\\$+"+o},M={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},I={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},y=e.inherit(e.APOS_STRING_MODE,{illegal:null}),N=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(I)}),w={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(I),"on:begin":(n,a)=>{a.data._beginMatch=n[1]||n[2]},"on:end":(n,a)=>{a.data._beginMatch!==n[1]&&a.ignoreMatch()}},h=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),S=`[
2
- ]`,i={scope:"string",variants:[N,y,w,h]},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"],T=["__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:T,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(S,"+"),t.concat("(?!",u(p).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},f=t.concat(o,"\\b(?!\\()"),l={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),f],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,t.concat(/::/,t.lookahead(/(?!class\b)/)),f],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"}}]},C={scope:"attr",match:t.concat(o,t.lookahead(":"),t.lookahead(/(?!::)/))},R={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[C,E,l,e.C_BLOCK_COMMENT_MODE,i,s,O]},A={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",u(T).join("\\b|"),"|",u(p).join("\\b|"),"\\b)"),o,t.concat(S,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[R]};R.contains.push(A);const m=[C,l,e.C_BLOCK_COMMENT_MODE,i,s,O],v={begin:t.concat(/#\[\s*\\?/,t.either(r,g)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:d,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:d,keyword:["new","array"]},contains:["self",...m]},...m,{scope:"meta",variants:[{match:r},{match:g}]}]};return{case_insensitive:!1,keywords:b,contains:[v,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",v,E,l,e.C_BLOCK_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
+ "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 D(e) {
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
- }, M = {
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
- }, N = e.inherit(e.APOS_STRING_MODE, { illegal: null }), y = e.inherit(e.QUOTE_STRING_MODE, {
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
- }), w = {
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
- }, x = e.END_SAME_AS_BEGIN({
47
+ }, w = e.END_SAME_AS_BEGIN({
48
48
  begin: /<<<[ \t]*'(\w+)'\n/,
49
49
  end: /[ \t]*(\w+)\b/
50
- }), S = `[
50
+ }), T = `[
51
51
  ]`, i = {
52
52
  scope: "string",
53
53
  variants: [
54
54
  y,
55
- N,
56
- w,
57
- x
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
- ], T = [
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: T,
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(S, "+"),
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
- ] }, f = t.concat(o, "\\b(?!\\()"), l = { variants: [
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
- f
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
- f
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
- ] }, C = {
347
+ ] }, S = {
348
348
  scope: "attr",
349
349
  match: t.concat(o, t.lookahead(":"), t.lookahead(/(?!::)/))
350
- }, R = {
350
+ }, A = {
351
351
  relevance: 0,
352
352
  begin: /\(/,
353
353
  end: /\)/,
354
354
  keywords: b,
355
355
  contains: [
356
- C,
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
- }, A = {
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(T).join("\\b|"), "|", u(p).join("\\b|"), "\\b)"),
371
+ t.concat("(?!fn\\b|function\\b|", u(C).join("\\b|"), "|", u(p).join("\\b|"), "\\b)"),
370
372
  o,
371
- t.concat(S, "*"),
373
+ t.concat(T, "*"),
372
374
  t.lookahead(/(?=\()/)
373
375
  ],
374
376
  scope: { 3: "title.function.invoke" },
375
- contains: [R]
377
+ contains: [A]
376
378
  };
377
- R.contains.push(A);
378
- const m = [
379
- C,
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
- ], v = {
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
- ...m
420
+ ...N
417
421
  ]
418
422
  },
419
- ...m,
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
- v,
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
- M,
465
+ m,
462
466
  {
463
467
  scope: "variable.language",
464
468
  match: /\$this\b/
465
469
  },
466
470
  E,
467
- A,
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
- v,
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
- D as default
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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element | null;
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. */