@stoplight/elements-core 9.0.12-beta-0.1 → 9.0.13

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 (417) hide show
  1. package/{dist/components → components}/Docs/Docs.d.ts +1 -14
  2. package/{dist/components → components}/Docs/HttpOperation/Body.d.ts +1 -9
  3. package/{dist/components → components}/Docs/HttpOperation/HttpOperation.d.ts +2 -6
  4. package/{dist/components → components}/Docs/HttpOperation/Request.d.ts +0 -6
  5. package/{dist/components → components}/Docs/HttpOperation/Responses.d.ts +1 -12
  6. package/{dist/components → components}/TableOfContents/types.d.ts +7 -0
  7. package/{dist/index.esm.js → index.esm.js} +86 -525
  8. package/{dist/index.js → index.js} +86 -525
  9. package/{dist/index.mjs → index.mjs} +86 -525
  10. package/package.json +14 -74
  11. package/.storybook/main.js +0 -6
  12. package/.storybook/manager.js +0 -1
  13. package/.storybook/preview.jsx +0 -50
  14. package/dist/LICENSE +0 -190
  15. package/dist/README.md +0 -1
  16. package/dist/components/Docs/HttpOperation/LazySchemaTreePreviewer.d.ts +0 -34
  17. package/dist/package.json +0 -64
  18. package/jest.config.js +0 -10
  19. package/src/__fixtures__/articles/basic.md +0 -10
  20. package/src/__fixtures__/articles/kitchen-sink.md +0 -318
  21. package/src/__fixtures__/articles/long-page-heading.md +0 -955
  22. package/src/__fixtures__/articles/multiple-try-its.md +0 -54
  23. package/src/__fixtures__/articles/schema-with-refs.ts +0 -82
  24. package/src/__fixtures__/http-request.json +0 -11
  25. package/src/__fixtures__/models/model-with-no-examples.json +0 -15
  26. package/src/__fixtures__/models/model-with-one-example.json +0 -23
  27. package/src/__fixtures__/models/model-with-three-examples.json +0 -35
  28. package/src/__fixtures__/operations/application-octet-stream-post.ts +0 -39
  29. package/src/__fixtures__/operations/base64-file-upload.ts +0 -43
  30. package/src/__fixtures__/operations/big-response.ts +0 -4690
  31. package/src/__fixtures__/operations/bundled-parameter.ts +0 -128
  32. package/src/__fixtures__/operations/empty-response.ts +0 -15
  33. package/src/__fixtures__/operations/examples-request-body.ts +0 -135
  34. package/src/__fixtures__/operations/head-todos.ts +0 -49
  35. package/src/__fixtures__/operations/invalid-response-example.ts +0 -45
  36. package/src/__fixtures__/operations/multipart-formdata-post.ts +0 -61
  37. package/src/__fixtures__/operations/operation-minimal.ts +0 -11
  38. package/src/__fixtures__/operations/operation-parameters.ts +0 -337
  39. package/src/__fixtures__/operations/operation-with-examples.ts +0 -113
  40. package/src/__fixtures__/operations/operation-without-servers.ts +0 -16
  41. package/src/__fixtures__/operations/patch-todos.ts +0 -49
  42. package/src/__fixtures__/operations/put-todos.ts +0 -862
  43. package/src/__fixtures__/operations/referenced-body.ts +0 -62
  44. package/src/__fixtures__/operations/request-body-empty-schema.ts +0 -35
  45. package/src/__fixtures__/operations/request-body.ts +0 -62
  46. package/src/__fixtures__/operations/securedOperation.ts +0 -118
  47. package/src/__fixtures__/operations/security-basic.ts +0 -24
  48. package/src/__fixtures__/operations/security-bearer.ts +0 -25
  49. package/src/__fixtures__/operations/simple-get.ts +0 -17
  50. package/src/__fixtures__/operations/simple.ts +0 -103
  51. package/src/__fixtures__/operations/string-numeric-enums.ts +0 -32
  52. package/src/__fixtures__/operations/urlencoded-post-oneof.ts +0 -81
  53. package/src/__fixtures__/operations/urlencoded-post.ts +0 -54
  54. package/src/__fixtures__/operations/vendor-extensions.ts +0 -337
  55. package/src/__fixtures__/operations/with-url-variables.ts +0 -47
  56. package/src/__fixtures__/operations/x-code-samples.ts +0 -348
  57. package/src/__fixtures__/schemas/circular.ts +0 -1906
  58. package/src/__fixtures__/schemas/contact.json +0 -293
  59. package/src/__fixtures__/schemas/media-entry.json +0 -69
  60. package/src/__fixtures__/schemas/simple.json +0 -27
  61. package/src/__fixtures__/schemas/todo-full.v1.json +0 -35
  62. package/src/__fixtures__/schemas/todo-partial.v1.json +0 -14
  63. package/src/__fixtures__/schemas/user.v1.json +0 -17
  64. package/src/__fixtures__/security-schemes/index.ts +0 -38
  65. package/src/__fixtures__/services/petstore.ts +0 -167
  66. package/src/__fixtures__/services/with-unnamed-servers.ts +0 -38
  67. package/src/__fixtures__/services/with-url-variables.ts +0 -83
  68. package/src/__fixtures__/services/without-origin.ts +0 -20
  69. package/src/__fixtures__/table-of-contents/nested.ts +0 -44
  70. package/src/__fixtures__/table-of-contents/studio-template.ts +0 -100
  71. package/src/__fixtures__/table-of-contents/studio.ts +0 -559
  72. package/src/components/Docs/Article/Article.spec.tsx +0 -38
  73. package/src/components/Docs/Article/Article.stories.tsx +0 -17
  74. package/src/components/Docs/Article/index.tsx +0 -38
  75. package/src/components/Docs/Docs.stories.tsx +0 -33
  76. package/src/components/Docs/Docs.tsx +0 -272
  77. package/src/components/Docs/HttpOperation/Badges.tsx +0 -49
  78. package/src/components/Docs/HttpOperation/Body.tsx +0 -115
  79. package/src/components/Docs/HttpOperation/Callbacks.tsx +0 -89
  80. package/src/components/Docs/HttpOperation/HttpOperation.spec.tsx +0 -787
  81. package/src/components/Docs/HttpOperation/HttpOperation.stories.ts +0 -14
  82. package/src/components/Docs/HttpOperation/HttpOperation.tsx +0 -260
  83. package/src/components/Docs/HttpOperation/LazySchemaTreePreviewer.tsx +0 -651
  84. package/src/components/Docs/HttpOperation/Parameters.spec.tsx +0 -101
  85. package/src/components/Docs/HttpOperation/Parameters.tsx +0 -118
  86. package/src/components/Docs/HttpOperation/Request.tsx +0 -152
  87. package/src/components/Docs/HttpOperation/Responses.tsx +0 -301
  88. package/src/components/Docs/HttpOperation/index.ts +0 -1
  89. package/src/components/Docs/HttpService/AdditionalInfo.stories.ts +0 -48
  90. package/src/components/Docs/HttpService/AdditionalInfo.tsx +0 -61
  91. package/src/components/Docs/HttpService/ExportButton.tsx +0 -35
  92. package/src/components/Docs/HttpService/HttpService.spec.tsx +0 -429
  93. package/src/components/Docs/HttpService/HttpService.stories.ts +0 -14
  94. package/src/components/Docs/HttpService/HttpService.tsx +0 -99
  95. package/src/components/Docs/HttpService/SecuritySchemes.tsx +0 -82
  96. package/src/components/Docs/HttpService/ServerInfo.tsx +0 -196
  97. package/src/components/Docs/HttpService/index.ts +0 -1
  98. package/src/components/Docs/Model/Model.spec.tsx +0 -241
  99. package/src/components/Docs/Model/Model.stories.tsx +0 -16
  100. package/src/components/Docs/Model/Model.tsx +0 -192
  101. package/src/components/Docs/Model/index.ts +0 -1
  102. package/src/components/Docs/NodeVendorExtensions.tsx +0 -55
  103. package/src/components/Docs/Sections.tsx +0 -54
  104. package/src/components/Docs/Security/PanelContent.tsx +0 -38
  105. package/src/components/Docs/Security/index.ts +0 -1
  106. package/src/components/Docs/Skeleton.tsx +0 -12
  107. package/src/components/Docs/TwoColumnLayout.tsx +0 -27
  108. package/src/components/Docs/index.ts +0 -1
  109. package/src/components/Docs/story-helper.ts +0 -46
  110. package/src/components/Docs/story-renderer-helper.tsx +0 -56
  111. package/src/components/Layout/MobileTopNav.tsx +0 -78
  112. package/src/components/Layout/ResponsiveSidebarLayout.tsx +0 -175
  113. package/src/components/Layout/SidebarLayout.tsx +0 -107
  114. package/src/components/LinkHeading.tsx +0 -21
  115. package/src/components/LoadMore.tsx +0 -20
  116. package/src/components/Loading/Loading.tsx +0 -9
  117. package/src/components/Logo.tsx +0 -25
  118. package/src/components/MarkdownViewer/CustomComponents/CodeComponent.spec.ts +0 -90
  119. package/src/components/MarkdownViewer/CustomComponents/CodeComponent.tsx +0 -164
  120. package/src/components/MarkdownViewer/CustomComponents/Provider.tsx +0 -20
  121. package/src/components/MarkdownViewer/CustomComponents/ReactRouterLink.tsx +0 -27
  122. package/src/components/MarkdownViewer/CustomComponents/ResolvedImage.tsx +0 -86
  123. package/src/components/MarkdownViewer/CustomComponents/ScrollToHashElement.tsx +0 -96
  124. package/src/components/MarkdownViewer/MarkdownViewer.spec.tsx +0 -170
  125. package/src/components/MarkdownViewer/index.tsx +0 -10
  126. package/src/components/NonIdealState.tsx +0 -20
  127. package/src/components/PoweredByLink.tsx +0 -30
  128. package/src/components/RequestSamples/RequestSamples.stories.tsx +0 -67
  129. package/src/components/RequestSamples/RequestSamples.tsx +0 -246
  130. package/src/components/RequestSamples/__tests__/RequestSamples.test.tsx +0 -131
  131. package/src/components/RequestSamples/__tests__/__snapshots__/convertRequestToSample.spec.ts.snap +0 -746
  132. package/src/components/RequestSamples/__tests__/convertRequestToSample.spec.ts +0 -118
  133. package/src/components/RequestSamples/convertRequestToSample.ts +0 -56
  134. package/src/components/RequestSamples/extractCodeSamples.ts +0 -50
  135. package/src/components/RequestSamples/index.ts +0 -2
  136. package/src/components/RequestSamples/requestSampleConfigs.ts +0 -182
  137. package/src/components/ResponseExamples/ResponseExamples.spec.tsx +0 -121
  138. package/src/components/ResponseExamples/ResponseExamples.stories.tsx +0 -21
  139. package/src/components/ResponseExamples/ResponseExamples.tsx +0 -79
  140. package/src/components/TableOfContents/TableOfContents.spec.tsx +0 -301
  141. package/src/components/TableOfContents/TableOfContents.stories.tsx +0 -121
  142. package/src/components/TableOfContents/TableOfContents.tsx +0 -406
  143. package/src/components/TableOfContents/constants.ts +0 -45
  144. package/src/components/TableOfContents/index.ts +0 -2
  145. package/src/components/TableOfContents/types.ts +0 -51
  146. package/src/components/TableOfContents/utils.ts +0 -84
  147. package/src/components/TryIt/Auth/APIKeyAuth.tsx +0 -19
  148. package/src/components/TryIt/Auth/Auth.tsx +0 -169
  149. package/src/components/TryIt/Auth/AuthTokenInput.tsx +0 -37
  150. package/src/components/TryIt/Auth/BasicAuth.tsx +0 -62
  151. package/src/components/TryIt/Auth/BearerAuth.tsx +0 -19
  152. package/src/components/TryIt/Auth/DigestAuth.tsx +0 -35
  153. package/src/components/TryIt/Auth/OAuth2Auth.tsx +0 -19
  154. package/src/components/TryIt/Auth/authentication-utils.ts +0 -113
  155. package/src/components/TryIt/Body/BinaryBody.tsx +0 -52
  156. package/src/components/TryIt/Body/FormDataBody.tsx +0 -145
  157. package/src/components/TryIt/Body/RequestBody.tsx +0 -71
  158. package/src/components/TryIt/Body/__tests__/BinaryBody.test.tsx +0 -29
  159. package/src/components/TryIt/Body/__tests__/FormDataBody.test.tsx +0 -94
  160. package/src/components/TryIt/Body/request-body-utils.ts +0 -127
  161. package/src/components/TryIt/Body/useTextRequestBodyState.ts +0 -27
  162. package/src/components/TryIt/Mocking/MockingButton.tsx +0 -98
  163. package/src/components/TryIt/Mocking/mocking-utils.ts +0 -56
  164. package/src/components/TryIt/Mocking/useMockingOptions.ts +0 -6
  165. package/src/components/TryIt/Parameters/FileUploadParameterEditors.tsx +0 -62
  166. package/src/components/TryIt/Parameters/OperationParameters.tsx +0 -39
  167. package/src/components/TryIt/Parameters/ParameterEditor.tsx +0 -118
  168. package/src/components/TryIt/Parameters/__tests__/parameter-utils.spec.ts +0 -60
  169. package/src/components/TryIt/Parameters/parameter-utils.spec.ts +0 -118
  170. package/src/components/TryIt/Parameters/parameter-utils.ts +0 -179
  171. package/src/components/TryIt/Parameters/useOperationParameters.ts +0 -60
  172. package/src/components/TryIt/Response/ReponseCodeViewer.tsx +0 -28
  173. package/src/components/TryIt/Response/Response.spec.tsx +0 -174
  174. package/src/components/TryIt/Response/Response.tsx +0 -172
  175. package/src/components/TryIt/Response/hooks/useLineCount.ts +0 -7
  176. package/src/components/TryIt/Servers/ServerVariables.tsx +0 -33
  177. package/src/components/TryIt/Servers/ServersDropdown.tsx +0 -53
  178. package/src/components/TryIt/Servers/VariableEditor.tsx +0 -51
  179. package/src/components/TryIt/Servers/useServerVariables.ts +0 -19
  180. package/src/components/TryIt/TryIt.spec.tsx +0 -1511
  181. package/src/components/TryIt/TryIt.stories.tsx +0 -77
  182. package/src/components/TryIt/TryIt.tsx +0 -384
  183. package/src/components/TryIt/TryItWithRequestSamples.spec.tsx +0 -143
  184. package/src/components/TryIt/TryItWithRequestSamples.stories.tsx +0 -32
  185. package/src/components/TryIt/TryItWithRequestSamples.tsx +0 -42
  186. package/src/components/TryIt/build-request.spec.ts +0 -213
  187. package/src/components/TryIt/build-request.ts +0 -357
  188. package/src/components/TryIt/chosenServer.ts +0 -5
  189. package/src/components/TryIt/index.ts +0 -3
  190. package/src/components/__tests__/LinkHeading.spec.tsx +0 -125
  191. package/src/constants.ts +0 -176
  192. package/src/containers/MockingProvider.tsx +0 -23
  193. package/src/context/InlineRefResolver.spec.tsx +0 -183
  194. package/src/context/InlineRefResolver.tsx +0 -94
  195. package/src/context/Options.tsx +0 -27
  196. package/src/context/Persistence.tsx +0 -24
  197. package/src/context/RouterType.tsx +0 -9
  198. package/src/core.css +0 -97
  199. package/src/hoc/utils.ts +0 -5
  200. package/src/hoc/withMosaicProvider.spec.tsx +0 -48
  201. package/src/hoc/withMosaicProvider.tsx +0 -28
  202. package/src/hoc/withQueryClientProvider.spec.tsx +0 -38
  203. package/src/hoc/withQueryClientProvider.tsx +0 -35
  204. package/src/hoc/withRouter.tsx +0 -71
  205. package/src/hooks/useBundleRefsIntoDocument.ts +0 -60
  206. package/src/hooks/useFirstRender.ts +0 -8
  207. package/src/hooks/useIsCompact.ts +0 -26
  208. package/src/hooks/useParsedData.ts +0 -99
  209. package/src/hooks/useParsedValue.ts +0 -19
  210. package/src/hooks/useResponsiveLayout.tsx +0 -51
  211. package/src/hooks/useRouter.tsx +0 -31
  212. package/src/hooks/useUniqueId.ts +0 -4
  213. package/src/index.ts +0 -48
  214. package/src/styled.tsx +0 -22
  215. package/src/styles.css +0 -4
  216. package/src/types.ts +0 -170
  217. package/src/utils/__tests__/securitySchemes.spec.ts +0 -137
  218. package/src/utils/exampleGeneration/exampleGeneration.spec.tsx +0 -18
  219. package/src/utils/exampleGeneration/exampleGeneration.ts +0 -110
  220. package/src/utils/fileToBase64.ts +0 -11
  221. package/src/utils/guards.ts +0 -48
  222. package/src/utils/headers.ts +0 -316
  223. package/src/utils/http-spec/IServer.ts +0 -100
  224. package/src/utils/http-spec/__tests__/IServer.spec.ts +0 -51
  225. package/src/utils/http-spec/examples.ts +0 -5
  226. package/src/utils/http.ts +0 -9
  227. package/src/utils/jotai/persistAtom.ts +0 -31
  228. package/src/utils/node.ts +0 -19
  229. package/src/utils/oas/__tests__/security.spec.ts +0 -18
  230. package/src/utils/oas/security.ts +0 -76
  231. package/src/utils/ref-resolving/ReferenceResolver.ts +0 -29
  232. package/src/utils/ref-resolving/resolvedObject.test.ts +0 -415
  233. package/src/utils/ref-resolving/resolvedObject.ts +0 -109
  234. package/src/utils/securitySchemes.ts +0 -117
  235. package/src/utils/string.ts +0 -15
  236. package/src/utils/tests/chooseOption.ts +0 -7
  237. package/src/web-components/createElementClass.ts +0 -154
  238. package/tsconfig.build.json +0 -14
  239. package/tsconfig.json +0 -7
  240. /package/{dist/__fixtures__ → __fixtures__}/articles/schema-with-refs.d.ts +0 -0
  241. /package/{dist/__fixtures__ → __fixtures__}/operations/application-octet-stream-post.d.ts +0 -0
  242. /package/{dist/__fixtures__ → __fixtures__}/operations/base64-file-upload.d.ts +0 -0
  243. /package/{dist/__fixtures__ → __fixtures__}/operations/big-response.d.ts +0 -0
  244. /package/{dist/__fixtures__ → __fixtures__}/operations/examples-request-body.d.ts +0 -0
  245. /package/{dist/__fixtures__ → __fixtures__}/operations/head-todos.d.ts +0 -0
  246. /package/{dist/__fixtures__ → __fixtures__}/operations/multipart-formdata-post.d.ts +0 -0
  247. /package/{dist/__fixtures__ → __fixtures__}/operations/operation-minimal.d.ts +0 -0
  248. /package/{dist/__fixtures__ → __fixtures__}/operations/operation-parameters.d.ts +0 -0
  249. /package/{dist/__fixtures__ → __fixtures__}/operations/operation-with-examples.d.ts +0 -0
  250. /package/{dist/__fixtures__ → __fixtures__}/operations/operation-without-servers.d.ts +0 -0
  251. /package/{dist/__fixtures__ → __fixtures__}/operations/patch-todos.d.ts +0 -0
  252. /package/{dist/__fixtures__ → __fixtures__}/operations/put-todos.d.ts +0 -0
  253. /package/{dist/__fixtures__ → __fixtures__}/operations/referenced-body.d.ts +0 -0
  254. /package/{dist/__fixtures__ → __fixtures__}/operations/request-body-empty-schema.d.ts +0 -0
  255. /package/{dist/__fixtures__ → __fixtures__}/operations/request-body.d.ts +0 -0
  256. /package/{dist/__fixtures__ → __fixtures__}/operations/securedOperation.d.ts +0 -0
  257. /package/{dist/__fixtures__ → __fixtures__}/operations/security-basic.d.ts +0 -0
  258. /package/{dist/__fixtures__ → __fixtures__}/operations/security-bearer.d.ts +0 -0
  259. /package/{dist/__fixtures__ → __fixtures__}/operations/simple-get.d.ts +0 -0
  260. /package/{dist/__fixtures__ → __fixtures__}/operations/string-numeric-enums.d.ts +0 -0
  261. /package/{dist/__fixtures__ → __fixtures__}/operations/urlencoded-post-oneof.d.ts +0 -0
  262. /package/{dist/__fixtures__ → __fixtures__}/operations/urlencoded-post.d.ts +0 -0
  263. /package/{dist/__fixtures__ → __fixtures__}/operations/with-url-variables.d.ts +0 -0
  264. /package/{dist/__fixtures__ → __fixtures__}/security-schemes/index.d.ts +0 -0
  265. /package/{dist/__fixtures__ → __fixtures__}/services/petstore.d.ts +0 -0
  266. /package/{dist/__fixtures__ → __fixtures__}/services/with-unnamed-servers.d.ts +0 -0
  267. /package/{dist/__fixtures__ → __fixtures__}/services/with-url-variables.d.ts +0 -0
  268. /package/{dist/__fixtures__ → __fixtures__}/services/without-origin.d.ts +0 -0
  269. /package/{dist/components → components}/Docs/Article/Article.spec.d.ts +0 -0
  270. /package/{dist/components → components}/Docs/Article/Article.stories.d.ts +0 -0
  271. /package/{dist/components → components}/Docs/Article/index.d.ts +0 -0
  272. /package/{dist/components → components}/Docs/Docs.stories.d.ts +0 -0
  273. /package/{dist/components → components}/Docs/HttpOperation/Badges.d.ts +0 -0
  274. /package/{dist/components → components}/Docs/HttpOperation/Callbacks.d.ts +0 -0
  275. /package/{dist/components → components}/Docs/HttpOperation/HttpOperation.spec.d.ts +0 -0
  276. /package/{dist/components → components}/Docs/HttpOperation/HttpOperation.stories.d.ts +0 -0
  277. /package/{dist/components → components}/Docs/HttpOperation/Parameters.d.ts +0 -0
  278. /package/{dist/components → components}/Docs/HttpOperation/Parameters.spec.d.ts +0 -0
  279. /package/{dist/components → components}/Docs/HttpOperation/index.d.ts +0 -0
  280. /package/{dist/components → components}/Docs/HttpService/AdditionalInfo.d.ts +0 -0
  281. /package/{dist/components → components}/Docs/HttpService/AdditionalInfo.stories.d.ts +0 -0
  282. /package/{dist/components → components}/Docs/HttpService/ExportButton.d.ts +0 -0
  283. /package/{dist/components → components}/Docs/HttpService/HttpService.d.ts +0 -0
  284. /package/{dist/components → components}/Docs/HttpService/HttpService.spec.d.ts +0 -0
  285. /package/{dist/components → components}/Docs/HttpService/HttpService.stories.d.ts +0 -0
  286. /package/{dist/components → components}/Docs/HttpService/SecuritySchemes.d.ts +0 -0
  287. /package/{dist/components → components}/Docs/HttpService/ServerInfo.d.ts +0 -0
  288. /package/{dist/components → components}/Docs/HttpService/index.d.ts +0 -0
  289. /package/{dist/components → components}/Docs/Model/Model.d.ts +0 -0
  290. /package/{dist/components → components}/Docs/Model/Model.spec.d.ts +0 -0
  291. /package/{dist/components → components}/Docs/Model/Model.stories.d.ts +0 -0
  292. /package/{dist/components → components}/Docs/Model/index.d.ts +0 -0
  293. /package/{dist/components → components}/Docs/NodeVendorExtensions.d.ts +0 -0
  294. /package/{dist/components → components}/Docs/Sections.d.ts +0 -0
  295. /package/{dist/components → components}/Docs/Security/PanelContent.d.ts +0 -0
  296. /package/{dist/components → components}/Docs/Security/index.d.ts +0 -0
  297. /package/{dist/components → components}/Docs/Skeleton.d.ts +0 -0
  298. /package/{dist/components → components}/Docs/TwoColumnLayout.d.ts +0 -0
  299. /package/{dist/components → components}/Docs/index.d.ts +0 -0
  300. /package/{dist/components → components}/Docs/story-helper.d.ts +0 -0
  301. /package/{dist/components → components}/Docs/story-renderer-helper.d.ts +0 -0
  302. /package/{dist/components → components}/Layout/MobileTopNav.d.ts +0 -0
  303. /package/{dist/components → components}/Layout/ResponsiveSidebarLayout.d.ts +0 -0
  304. /package/{dist/components → components}/Layout/SidebarLayout.d.ts +0 -0
  305. /package/{dist/components → components}/LinkHeading.d.ts +0 -0
  306. /package/{dist/components → components}/LoadMore.d.ts +0 -0
  307. /package/{dist/components → components}/Loading/Loading.d.ts +0 -0
  308. /package/{dist/components → components}/Logo.d.ts +0 -0
  309. /package/{dist/components → components}/MarkdownViewer/CustomComponents/CodeComponent.d.ts +0 -0
  310. /package/{dist/components → components}/MarkdownViewer/CustomComponents/CodeComponent.spec.d.ts +0 -0
  311. /package/{dist/components → components}/MarkdownViewer/CustomComponents/Provider.d.ts +0 -0
  312. /package/{dist/components → components}/MarkdownViewer/CustomComponents/ReactRouterLink.d.ts +0 -0
  313. /package/{dist/components → components}/MarkdownViewer/CustomComponents/ResolvedImage.d.ts +0 -0
  314. /package/{dist/components → components}/MarkdownViewer/CustomComponents/ScrollToHashElement.d.ts +0 -0
  315. /package/{dist/components → components}/MarkdownViewer/MarkdownViewer.spec.d.ts +0 -0
  316. /package/{dist/components → components}/MarkdownViewer/index.d.ts +0 -0
  317. /package/{dist/components → components}/NonIdealState.d.ts +0 -0
  318. /package/{dist/components → components}/PoweredByLink.d.ts +0 -0
  319. /package/{dist/components → components}/RequestSamples/RequestSamples.d.ts +0 -0
  320. /package/{dist/components → components}/RequestSamples/RequestSamples.stories.d.ts +0 -0
  321. /package/{dist/components → components}/RequestSamples/convertRequestToSample.d.ts +0 -0
  322. /package/{dist/components → components}/RequestSamples/extractCodeSamples.d.ts +0 -0
  323. /package/{dist/components → components}/RequestSamples/index.d.ts +0 -0
  324. /package/{dist/components → components}/RequestSamples/requestSampleConfigs.d.ts +0 -0
  325. /package/{dist/components → components}/ResponseExamples/ResponseExamples.d.ts +0 -0
  326. /package/{dist/components → components}/ResponseExamples/ResponseExamples.spec.d.ts +0 -0
  327. /package/{dist/components → components}/ResponseExamples/ResponseExamples.stories.d.ts +0 -0
  328. /package/{dist/components → components}/TableOfContents/TableOfContents.d.ts +0 -0
  329. /package/{dist/components → components}/TableOfContents/TableOfContents.spec.d.ts +0 -0
  330. /package/{dist/components → components}/TableOfContents/TableOfContents.stories.d.ts +0 -0
  331. /package/{dist/components → components}/TableOfContents/constants.d.ts +0 -0
  332. /package/{dist/components → components}/TableOfContents/index.d.ts +0 -0
  333. /package/{dist/components → components}/TableOfContents/utils.d.ts +0 -0
  334. /package/{dist/components → components}/TryIt/Auth/APIKeyAuth.d.ts +0 -0
  335. /package/{dist/components → components}/TryIt/Auth/Auth.d.ts +0 -0
  336. /package/{dist/components → components}/TryIt/Auth/AuthTokenInput.d.ts +0 -0
  337. /package/{dist/components → components}/TryIt/Auth/BasicAuth.d.ts +0 -0
  338. /package/{dist/components → components}/TryIt/Auth/BearerAuth.d.ts +0 -0
  339. /package/{dist/components → components}/TryIt/Auth/DigestAuth.d.ts +0 -0
  340. /package/{dist/components → components}/TryIt/Auth/OAuth2Auth.d.ts +0 -0
  341. /package/{dist/components → components}/TryIt/Auth/authentication-utils.d.ts +0 -0
  342. /package/{dist/components → components}/TryIt/Body/BinaryBody.d.ts +0 -0
  343. /package/{dist/components → components}/TryIt/Body/FormDataBody.d.ts +0 -0
  344. /package/{dist/components → components}/TryIt/Body/RequestBody.d.ts +0 -0
  345. /package/{dist/components → components}/TryIt/Body/request-body-utils.d.ts +0 -0
  346. /package/{dist/components → components}/TryIt/Body/useTextRequestBodyState.d.ts +0 -0
  347. /package/{dist/components → components}/TryIt/Mocking/MockingButton.d.ts +0 -0
  348. /package/{dist/components → components}/TryIt/Mocking/mocking-utils.d.ts +0 -0
  349. /package/{dist/components → components}/TryIt/Mocking/useMockingOptions.d.ts +0 -0
  350. /package/{dist/components → components}/TryIt/Parameters/FileUploadParameterEditors.d.ts +0 -0
  351. /package/{dist/components → components}/TryIt/Parameters/OperationParameters.d.ts +0 -0
  352. /package/{dist/components → components}/TryIt/Parameters/ParameterEditor.d.ts +0 -0
  353. /package/{dist/components → components}/TryIt/Parameters/parameter-utils.d.ts +0 -0
  354. /package/{dist/components → components}/TryIt/Parameters/parameter-utils.spec.d.ts +0 -0
  355. /package/{dist/components → components}/TryIt/Parameters/useOperationParameters.d.ts +0 -0
  356. /package/{dist/components → components}/TryIt/Response/ReponseCodeViewer.d.ts +0 -0
  357. /package/{dist/components → components}/TryIt/Response/Response.d.ts +0 -0
  358. /package/{dist/components → components}/TryIt/Response/Response.spec.d.ts +0 -0
  359. /package/{dist/components → components}/TryIt/Response/hooks/useLineCount.d.ts +0 -0
  360. /package/{dist/components → components}/TryIt/Servers/ServerVariables.d.ts +0 -0
  361. /package/{dist/components → components}/TryIt/Servers/ServersDropdown.d.ts +0 -0
  362. /package/{dist/components → components}/TryIt/Servers/VariableEditor.d.ts +0 -0
  363. /package/{dist/components → components}/TryIt/Servers/useServerVariables.d.ts +0 -0
  364. /package/{dist/components → components}/TryIt/TryIt.d.ts +0 -0
  365. /package/{dist/components → components}/TryIt/TryIt.spec.d.ts +0 -0
  366. /package/{dist/components → components}/TryIt/TryIt.stories.d.ts +0 -0
  367. /package/{dist/components → components}/TryIt/TryItWithRequestSamples.d.ts +0 -0
  368. /package/{dist/components → components}/TryIt/TryItWithRequestSamples.spec.d.ts +0 -0
  369. /package/{dist/components → components}/TryIt/TryItWithRequestSamples.stories.d.ts +0 -0
  370. /package/{dist/components → components}/TryIt/build-request.d.ts +0 -0
  371. /package/{dist/components → components}/TryIt/build-request.spec.d.ts +0 -0
  372. /package/{dist/components → components}/TryIt/chosenServer.d.ts +0 -0
  373. /package/{dist/components → components}/TryIt/index.d.ts +0 -0
  374. /package/{dist/constants.d.ts → constants.d.ts} +0 -0
  375. /package/{dist/containers → containers}/MockingProvider.d.ts +0 -0
  376. /package/{dist/context → context}/InlineRefResolver.d.ts +0 -0
  377. /package/{dist/context → context}/InlineRefResolver.spec.d.ts +0 -0
  378. /package/{dist/context → context}/Options.d.ts +0 -0
  379. /package/{dist/context → context}/Persistence.d.ts +0 -0
  380. /package/{dist/context → context}/RouterType.d.ts +0 -0
  381. /package/{dist/core.css → core.css} +0 -0
  382. /package/{dist/hoc → hoc}/utils.d.ts +0 -0
  383. /package/{dist/hoc → hoc}/withMosaicProvider.d.ts +0 -0
  384. /package/{dist/hoc → hoc}/withMosaicProvider.spec.d.ts +0 -0
  385. /package/{dist/hoc → hoc}/withQueryClientProvider.d.ts +0 -0
  386. /package/{dist/hoc → hoc}/withQueryClientProvider.spec.d.ts +0 -0
  387. /package/{dist/hoc → hoc}/withRouter.d.ts +0 -0
  388. /package/{dist/hooks → hooks}/useBundleRefsIntoDocument.d.ts +0 -0
  389. /package/{dist/hooks → hooks}/useFirstRender.d.ts +0 -0
  390. /package/{dist/hooks → hooks}/useIsCompact.d.ts +0 -0
  391. /package/{dist/hooks → hooks}/useParsedData.d.ts +0 -0
  392. /package/{dist/hooks → hooks}/useParsedValue.d.ts +0 -0
  393. /package/{dist/hooks → hooks}/useResponsiveLayout.d.ts +0 -0
  394. /package/{dist/hooks → hooks}/useRouter.d.ts +0 -0
  395. /package/{dist/hooks → hooks}/useUniqueId.d.ts +0 -0
  396. /package/{dist/index.d.ts → index.d.ts} +0 -0
  397. /package/{dist/styled.d.ts → styled.d.ts} +0 -0
  398. /package/{dist/styles.min.css → styles.min.css} +0 -0
  399. /package/{dist/types.d.ts → types.d.ts} +0 -0
  400. /package/{dist/utils → utils}/exampleGeneration/exampleGeneration.d.ts +0 -0
  401. /package/{dist/utils → utils}/exampleGeneration/exampleGeneration.spec.d.ts +0 -0
  402. /package/{dist/utils → utils}/fileToBase64.d.ts +0 -0
  403. /package/{dist/utils → utils}/guards.d.ts +0 -0
  404. /package/{dist/utils → utils}/headers.d.ts +0 -0
  405. /package/{dist/utils → utils}/http-spec/IServer.d.ts +0 -0
  406. /package/{dist/utils → utils}/http-spec/examples.d.ts +0 -0
  407. /package/{dist/utils → utils}/http.d.ts +0 -0
  408. /package/{dist/utils → utils}/jotai/persistAtom.d.ts +0 -0
  409. /package/{dist/utils → utils}/node.d.ts +0 -0
  410. /package/{dist/utils → utils}/oas/security.d.ts +0 -0
  411. /package/{dist/utils → utils}/ref-resolving/ReferenceResolver.d.ts +0 -0
  412. /package/{dist/utils → utils}/ref-resolving/resolvedObject.d.ts +0 -0
  413. /package/{dist/utils → utils}/ref-resolving/resolvedObject.test.d.ts +0 -0
  414. /package/{dist/utils → utils}/securitySchemes.d.ts +0 -0
  415. /package/{dist/utils → utils}/string.d.ts +0 -0
  416. /package/{dist/utils → utils}/tests/chooseOption.d.ts +0 -0
  417. /package/{dist/web-components → web-components}/createElementClass.d.ts +0 -0
@@ -134,8 +134,6 @@ const isResolvedObjectProxy = (someObject) => {
134
134
  return !!someObject[originalObjectSymbol];
135
135
  };
136
136
  const getOriginalObject = (resolvedObject) => {
137
- if (!resolvedObject)
138
- return resolvedObject;
139
137
  const originalObject = resolvedObject[originalObjectSymbol] || resolvedObject;
140
138
  if (!originalObject) {
141
139
  return resolvedObject;
@@ -2761,416 +2759,13 @@ const PanelContent = ({ schemes }) => {
2761
2759
  })));
2762
2760
  };
2763
2761
 
2764
- const TYPES = ['string', 'integer', 'boolean', 'any', 'number'];
2765
- function resolvePointer(obj, pointer) {
2766
- const parts = pointer.replace(/^#\//, '').split('/');
2767
- return parts.reduce((acc, key) => acc && acc[key], obj);
2768
- }
2769
- function detectCircularPath(path) {
2770
- const ignored = ['properties', 'items'];
2771
- const parts = path.split('/').filter(part => !ignored.includes(part));
2772
- for (let i = 0; i < parts.length - 1; i++) {
2773
- const current = parts[i];
2774
- const rest = parts.slice(i + 1);
2775
- if (rest.includes(current)) {
2776
- return true;
2777
- }
2778
- }
2779
- return false;
2780
- }
2781
- function dereference(node, root, visited = new WeakSet(), depth = 0, maxDepth = 10) {
2782
- if (!node || typeof node !== 'object')
2783
- return node;
2784
- if (depth > maxDepth)
2785
- return node;
2786
- if (node.$ref || node['x-iata-$ref']) {
2787
- let refPath = node.$ref || node['x-iata-$ref'];
2788
- if (refPath.includes('#/%24defs')) {
2789
- refPath = refPath.replace('#/%24defs', '$defs');
2790
- }
2791
- else {
2792
- refPath = refPath.replace('__bundled__', 'definitions');
2793
- }
2794
- if (visited.has(node))
2795
- return { circular: true, $ref: refPath, title: node.title, type: 'any', description: node.description };
2796
- visited.add(node);
2797
- const target = resolvePointer(root, refPath);
2798
- if (!target)
2799
- return node;
2800
- const result = Object.assign({}, target);
2801
- if ('description' in node)
2802
- result.description = node.description;
2803
- if ('title' in node)
2804
- result.title = node.title;
2805
- return dereference(result, root, visited, depth + 1, maxDepth);
2806
- }
2807
- if (Array.isArray(node)) {
2808
- return node.map(item => dereference(item, root, visited, depth + 1, maxDepth));
2809
- }
2810
- const result = {};
2811
- for (const key in node) {
2812
- result[key] = dereference(node[key], root, visited, depth + 1, maxDepth);
2813
- }
2814
- return result;
2815
- }
2816
- const trimSlashes = (str) => {
2817
- return str.replace(/^\/|\/$/g, '');
2818
- };
2819
- function isPropertiesAllHidden(path, hideData) {
2820
- const current = trimSlashes(path);
2821
- const parts = current.split('/');
2822
- for (let i = parts.length; i >= 2; i--) {
2823
- if (parts[i - 1] === 'properties') {
2824
- const ancestorPropPath = parts.slice(0, i).join('/');
2825
- const block = hideData.find(h => trimSlashes(h.path) === ancestorPropPath && ancestorPropPath.endsWith('/properties'));
2826
- if (block && block.required === undefined) {
2827
- return true;
2828
- }
2829
- }
2830
- }
2831
- return false;
2832
- }
2833
- function isRequiredOverride(path, hideData) {
2834
- const entry = hideData.find(h => trimSlashes(h.path) === trimSlashes(path));
2835
- return entry && typeof entry.required === 'boolean' ? entry.required : undefined;
2836
- }
2837
- function isPathHidden(path, hideData, complexData) {
2838
- const isComplex = checkIfIsComplex(path, complexData);
2839
- if (isComplex === null) {
2840
- return false;
2841
- }
2842
- else if (isComplex) {
2843
- const normalizedPath = trimSlashes(path);
2844
- const direct = hideData.find(h => trimSlashes(h.path) === normalizedPath);
2845
- if (direct && direct.required === undefined)
2846
- return true;
2847
- if (isPropertiesAllHidden(path, hideData))
2848
- return true;
2849
- for (const h of hideData) {
2850
- const hPath = trimSlashes(h.path);
2851
- if (h.required !== undefined)
2852
- continue;
2853
- if (normalizedPath.length > hPath.length &&
2854
- normalizedPath.startsWith(hPath) &&
2855
- (hPath.endsWith('/items') || (hPath.match(/\/items\/[^\/]+$/) && normalizedPath.startsWith(hPath + '/')))) {
2856
- return true;
2857
- }
2858
- }
2859
- return false;
2860
- }
2861
- else {
2862
- return !hideData.some(h => h.path === path || h.path.startsWith(path + '/'));
2863
- }
2864
- }
2865
- const checkIfIsComplex = (path, complexData) => {
2866
- let isComplex = null;
2867
- for (const complex of complexData) {
2868
- if (path.startsWith(complex.location)) {
2869
- isComplex = complex === null || complex === void 0 ? void 0 : complex.isComplex;
2870
- break;
2871
- }
2872
- }
2873
- return isComplex;
2874
- };
2875
- const LazySchemaTreePreviewer = ({ schema, root = schema, title, level = 1, path = '', hideData = [], complexData = [], parentRequired, propertyKey, _subType, }) => {
2876
- var _a, _b, _c, _d;
2877
- const [expanded, setExpanded] = React.useState(false);
2878
- const [selectedSchemaIndex, setSelectedSchemaIndex] = React.useState(0);
2879
- const [showSchemaDropdown, setShowSchemaDropdown] = React.useState(false);
2880
- const [isHoveringSelector, setIsHoveringSelector] = React.useState(false);
2881
- const isRoot = level === 1 && (title === undefined || path === '');
2882
- React.useEffect(() => {
2883
- setSelectedSchemaIndex(0);
2884
- }, [schema === null || schema === void 0 ? void 0 : schema.anyOf, schema === null || schema === void 0 ? void 0 : schema.oneOf]);
2885
- const thisNodeRequiredOverride = isRequiredOverride(path, hideData);
2886
- const shouldHideAllChildren = (isRoot && hideData.some(h => trimSlashes(h.path) === 'properties' && h.required === undefined)) ||
2887
- (!isRoot && isPropertiesAllHidden(path, hideData));
2888
- const hasExpandableChildren = React.useMemo(() => {
2889
- var _a;
2890
- if (shouldHideAllChildren)
2891
- return false;
2892
- if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'object' && ((schema === null || schema === void 0 ? void 0 : schema.properties) || (schema === null || schema === void 0 ? void 0 : schema.allOf) || (schema === null || schema === void 0 ? void 0 : schema.anyOf) || (schema === null || schema === void 0 ? void 0 : schema.oneOf))) {
2893
- let props = schema === null || schema === void 0 ? void 0 : schema.properties;
2894
- if (schema === null || schema === void 0 ? void 0 : schema.allOf) {
2895
- schema === null || schema === void 0 ? void 0 : schema.allOf.forEach((item) => {
2896
- props = Object.assign(Object.assign({}, props), item.properties);
2897
- });
2898
- }
2899
- if ((schema === null || schema === void 0 ? void 0 : schema.anyOf) && (schema === null || schema === void 0 ? void 0 : schema.anyOf.length) > 0) {
2900
- const selectedSchema = (schema === null || schema === void 0 ? void 0 : schema.anyOf[selectedSchemaIndex]) || (schema === null || schema === void 0 ? void 0 : schema.anyOf[0]);
2901
- props = Object.assign(Object.assign({}, props), selectedSchema.properties);
2902
- }
2903
- if ((schema === null || schema === void 0 ? void 0 : schema.oneOf) && (schema === null || schema === void 0 ? void 0 : schema.oneOf.length) > 0) {
2904
- const selectedSchema = (schema === null || schema === void 0 ? void 0 : schema.oneOf[selectedSchemaIndex]) || (schema === null || schema === void 0 ? void 0 : schema.oneOf[0]);
2905
- props = Object.assign(Object.assign({}, props), selectedSchema.properties);
2906
- }
2907
- if (props && Object.keys(props).length > 0) {
2908
- for (const [key] of Object.entries(props)) {
2909
- const childPath = `${path}/properties/${key}`;
2910
- const childRequiredOverride = isRequiredOverride(childPath, hideData);
2911
- const shouldHideChild = isPathHidden(childPath, hideData, complexData) && childRequiredOverride === undefined;
2912
- if (!shouldHideChild)
2913
- return true;
2914
- }
2915
- }
2916
- }
2917
- if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'array' &&
2918
- (schema === null || schema === void 0 ? void 0 : schema.items) &&
2919
- Object.keys(schema === null || schema === void 0 ? void 0 : schema.items).length > 0 &&
2920
- !((_a = schema === null || schema === void 0 ? void 0 : schema.items) === null || _a === void 0 ? void 0 : _a.circular)) {
2921
- const resolvedItems = dereference(schema === null || schema === void 0 ? void 0 : schema.items, root);
2922
- const itemsPath = `${path}/items`;
2923
- if (resolvedItems && resolvedItems.type === 'object' && resolvedItems.properties) {
2924
- for (const [key] of Object.entries(resolvedItems.properties)) {
2925
- const childPath = `${itemsPath}/properties/${key}`;
2926
- const childRequiredOverride = isRequiredOverride(childPath, hideData);
2927
- const shouldHideChild = isPathHidden(childPath, hideData, complexData) && childRequiredOverride === undefined;
2928
- if (!shouldHideChild)
2929
- return true;
2930
- }
2931
- }
2932
- else if (resolvedItems &&
2933
- resolvedItems.type === 'array' &&
2934
- resolvedItems.items &&
2935
- resolvedItems.items.length > 0) {
2936
- const childPath = `${path}/items`;
2937
- const childRequiredOverride = isRequiredOverride(childPath, hideData);
2938
- const shouldHideChild = isPathHidden(childPath, hideData, complexData) && childRequiredOverride === undefined;
2939
- if (!shouldHideChild)
2940
- return true;
2941
- }
2942
- }
2943
- return false;
2944
- }, [schema, path, hideData, complexData, shouldHideAllChildren, root, selectedSchemaIndex]);
2945
- const shouldHideNode = React.useMemo(() => {
2946
- if (isRoot)
2947
- return false;
2948
- if (isPathHidden(path, hideData, complexData) && thisNodeRequiredOverride === undefined)
2949
- return true;
2950
- return false;
2951
- }, [path, hideData, isRoot, thisNodeRequiredOverride, complexData]);
2952
- if (!schema || shouldHideNode) {
2953
- return null;
2954
- }
2955
- const displayTitle = level === 1 && (title === undefined || path === '') ? '' : (_a = title !== null && title !== void 0 ? title : schema === null || schema === void 0 ? void 0 : schema.title) !== null && _a !== void 0 ? _a : 'Node';
2956
- const handleToggle = () => {
2957
- const circular = detectCircularPath(path);
2958
- if (!circular) {
2959
- setExpanded(prev => !prev);
2960
- }
2961
- };
2962
- const renderChildren = () => {
2963
- var _a, _b, _c, _d;
2964
- if (shouldHideAllChildren)
2965
- return null;
2966
- if (!expanded && !isRoot)
2967
- return null;
2968
- const children = [];
2969
- if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'object' && ((schema === null || schema === void 0 ? void 0 : schema.properties) || (schema === null || schema === void 0 ? void 0 : schema.allOf) || (schema === null || schema === void 0 ? void 0 : schema.anyOf) || (schema === null || schema === void 0 ? void 0 : schema.oneOf))) {
2970
- let props = schema === null || schema === void 0 ? void 0 : schema.properties;
2971
- if (schema === null || schema === void 0 ? void 0 : schema.allOf) {
2972
- schema === null || schema === void 0 ? void 0 : schema.allOf.forEach((item) => {
2973
- props = Object.assign(Object.assign({}, props), item.properties);
2974
- });
2975
- }
2976
- if ((schema === null || schema === void 0 ? void 0 : schema.anyOf) && (schema === null || schema === void 0 ? void 0 : schema.anyOf.length) > 0) {
2977
- const selectedSchema = (schema === null || schema === void 0 ? void 0 : schema.anyOf[selectedSchemaIndex]) || (schema === null || schema === void 0 ? void 0 : schema.anyOf[0]);
2978
- props = Object.assign(Object.assign({}, props), selectedSchema.properties);
2979
- }
2980
- if ((schema === null || schema === void 0 ? void 0 : schema.oneOf) && (schema === null || schema === void 0 ? void 0 : schema.oneOf.length) > 0) {
2981
- const selectedSchema = (schema === null || schema === void 0 ? void 0 : schema.oneOf[selectedSchemaIndex]) || (schema === null || schema === void 0 ? void 0 : schema.oneOf[0]);
2982
- props = Object.assign(Object.assign({}, props), selectedSchema.properties);
2983
- }
2984
- for (const [key, child] of Object.entries(props || {})) {
2985
- const childPath = `${path}/properties/${key}`;
2986
- const childRequiredOverride = isRequiredOverride(childPath, hideData);
2987
- const shouldHideChild = isPathHidden(childPath, hideData, complexData) && childRequiredOverride === undefined;
2988
- const resolved = dereference(child, root);
2989
- if (!shouldHideChild) {
2990
- children.push(React.createElement("li", { key: key },
2991
- React.createElement(LazySchemaTreePreviewer, { schema: resolved, root: root, title: key, level: level + 1, path: childPath, hideData: hideData, complexData: complexData, parentRequired: schema === null || schema === void 0 ? void 0 : schema.required, propertyKey: key, _subType: (_a = resolved === null || resolved === void 0 ? void 0 : resolved.items) === null || _a === void 0 ? void 0 : _a.type })));
2992
- }
2993
- }
2994
- }
2995
- else if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'array' &&
2996
- (schema === null || schema === void 0 ? void 0 : schema.items) &&
2997
- Object.keys(schema === null || schema === void 0 ? void 0 : schema.items).length > 0 &&
2998
- !((_b = schema === null || schema === void 0 ? void 0 : schema.items) === null || _b === void 0 ? void 0 : _b.circular)) {
2999
- const resolvedItems = dereference(schema === null || schema === void 0 ? void 0 : schema.items, root);
3000
- const itemsPath = `${path}/items`;
3001
- if (resolvedItems && resolvedItems.type === 'object' && resolvedItems.properties) {
3002
- for (const [key, child] of Object.entries(resolvedItems.properties)) {
3003
- const childPath = `${itemsPath}/properties/${key}`;
3004
- const childRequiredOverride = isRequiredOverride(childPath, hideData);
3005
- const shouldHideChild = isPathHidden(childPath, hideData, complexData) && childRequiredOverride === undefined;
3006
- const resolved = dereference(child, root);
3007
- if (!shouldHideChild) {
3008
- children.push(React.createElement("li", { key: key },
3009
- React.createElement(LazySchemaTreePreviewer, { schema: resolved, root: root, title: key, level: level + 2, path: childPath, hideData: hideData, complexData: complexData, parentRequired: resolvedItems.required, propertyKey: key, _subType: (_c = resolvedItems === null || resolvedItems === void 0 ? void 0 : resolvedItems.items) === null || _c === void 0 ? void 0 : _c.type })));
3010
- }
3011
- }
3012
- }
3013
- else if (resolvedItems && resolvedItems.type === 'array' && resolvedItems.items.length > 0) {
3014
- const childPath = `${path}/items`;
3015
- const childRequiredOverride = isRequiredOverride(childPath, hideData);
3016
- const shouldHideChild = isPathHidden(childPath, hideData, complexData) && childRequiredOverride === undefined;
3017
- if (!shouldHideChild) {
3018
- children.push(React.createElement("li", { key: "items" },
3019
- React.createElement(LazySchemaTreePreviewer, { schema: resolvedItems, root: root, title: "items", level: level + 1, path: childPath, hideData: hideData, complexData: complexData, parentRequired: schema === null || schema === void 0 ? void 0 : schema.required, propertyKey: "items", _subType: (_d = resolvedItems === null || resolvedItems === void 0 ? void 0 : resolvedItems.items) === null || _d === void 0 ? void 0 : _d.type })));
3020
- }
3021
- }
3022
- }
3023
- return children.length > 0 ? React.createElement("ul", { className: "ml-6 border-l border-gray-200 pl-2" }, children) : null;
3024
- };
3025
- const combinedSchemaSelector = () => {
3026
- var _a;
3027
- return (React.createElement(React.Fragment, null,
3028
- React.createElement(mosaic.Box, { pos: "fixed", top: 0, left: 0, right: 0, bottom: 0, bg: "transparent", style: { zIndex: 999 }, onClick: () => setShowSchemaDropdown(false) }),
3029
- React.createElement(mosaic.Box, { pos: "absolute", bg: "canvas", rounded: true, boxShadow: "md", style: {
3030
- zIndex: 1000,
3031
- top: '100%',
3032
- left: 0,
3033
- minWidth: '150px',
3034
- maxWidth: '200px',
3035
- marginTop: '2px',
3036
- border: '1px solid rgba(0, 0, 0, 0.1)',
3037
- }, fontSize: "sm", onClick: (e) => e.stopPropagation() }, (_a = ((schema === null || schema === void 0 ? void 0 : schema.anyOf) || (schema === null || schema === void 0 ? void 0 : schema.oneOf))) === null || _a === void 0 ? void 0 : _a.map((schemaOption, index) => (React.createElement(mosaic.Box, { key: index, px: 3, py: 2, cursor: "pointer", bg: selectedSchemaIndex === index ? 'primary-tint' : 'canvas', fontSize: "xs", display: "flex", alignItems: "center", style: {
3038
- borderBottom: index < ((schema === null || schema === void 0 ? void 0 : schema.anyOf) || (schema === null || schema === void 0 ? void 0 : schema.oneOf)).length - 1 ? '1px solid rgba(0, 0, 0, 0.1)' : 'none',
3039
- gap: '8px',
3040
- }, onMouseEnter: (e) => {
3041
- if (selectedSchemaIndex !== index) {
3042
- e.currentTarget.style.backgroundColor = 'var(--sl-color-canvas-tint)';
3043
- }
3044
- }, onMouseLeave: (e) => {
3045
- if (selectedSchemaIndex !== index) {
3046
- e.currentTarget.style.backgroundColor = 'var(--sl-color-canvas)';
3047
- }
3048
- }, onClick: () => {
3049
- setSelectedSchemaIndex(index);
3050
- setShowSchemaDropdown(false);
3051
- } },
3052
- React.createElement(mosaic.Box, { flex: 1, color: "body" }, schemaOption.type || 'object'),
3053
- selectedSchemaIndex === index && (React.createElement(mosaic.Box, { color: "primary", fontSize: "xs" }, "\u2713"))))))));
3054
- };
3055
- const renderMinEnums = (schema) => {
3056
- if (!schema || typeof schema !== 'object')
3057
- return null;
3058
- const boxStyle = {
3059
- background: 'rgba(245, 247, 250, 0.5)',
3060
- border: '1px solid #a0aec0',
3061
- borderRadius: '4px',
3062
- padding: '0px 2px',
3063
- display: 'inline-block',
3064
- overflowWrap: 'break-word',
3065
- textAlign: 'left',
3066
- maxWidth: 'fit-content',
3067
- maxHeight: 'fit-content',
3068
- };
3069
- if ('minItems' in schema) {
3070
- const schemaWithMinItems = schema;
3071
- if (typeof schemaWithMinItems.minItems === 'number') {
3072
- return (React.createElement(mosaic.Box, { className: "sl-text-muted", fontFamily: "ui", fontWeight: "normal", mr: 2, style: boxStyle }, `>=${schemaWithMinItems.minItems} items`));
3073
- }
3074
- }
3075
- if ('enum' in schema && Array.isArray(schema.enum)) {
3076
- return (React.createElement("div", null,
3077
- "Allowed values:",
3078
- ' ',
3079
- schema.enum.map((val, idx) => (React.createElement(mosaic.Box, { key: idx, className: "sl-text-muted", fontFamily: "ui", fontWeight: "normal", mr: 2, style: boxStyle }, val)))));
3080
- }
3081
- return null;
3082
- };
3083
- const isRequired = parentRequired && propertyKey && parentRequired.includes(propertyKey);
3084
- let showRequiredLabel = false;
3085
- const hideDataEntry = hideData.find(hideEntry => trimSlashes(hideEntry.path) === trimSlashes(path));
3086
- if ((hideDataEntry === null || hideDataEntry === void 0 ? void 0 : hideDataEntry.required) === true || ((hideDataEntry === null || hideDataEntry === void 0 ? void 0 : hideDataEntry.required) === undefined && isRequired)) {
3087
- showRequiredLabel = true;
3088
- }
3089
- if (schema === null || schema === void 0 ? void 0 : schema.$ref) {
3090
- schema = dereference(schema, root);
3091
- }
3092
- return (React.createElement("div", { className: "mb-1" },
3093
- React.createElement(mosaic.Flex, { maxW: "full", pl: 3, py: 2, "data-test": "schema-row", pos: "relative" },
3094
- React.createElement(mosaic.VStack, { spacing: 1, maxW: "full", className: "w-full" },
3095
- React.createElement(mosaic.Flex, { onClick: !isRoot ? handleToggle : undefined, className: `w-full ${isRoot ? '' : 'cursor-pointer'}` },
3096
- !isRoot ? (React.createElement(mosaic.Box, { mr: 2, className: "sl-font-mono sl-font-semibold sl-mr-2" },
3097
- hasExpandableChildren &&
3098
- !TYPES.includes(schema === null || schema === void 0 ? void 0 : schema.type) &&
3099
- !detectCircularPath(path) &&
3100
- !((_b = schema === null || schema === void 0 ? void 0 : schema.items) === null || _b === void 0 ? void 0 : _b.circular) &&
3101
- !(schema === null || schema === void 0 ? void 0 : schema.circular) ? (React.createElement("i", { role: "img", "aria-hidden": "true", className: `sl-icon fal ${expanded ? 'fa-chevron-down' : 'fa-chevron-right'} fa-fw fa-sm` })) : (React.createElement("span", { className: "sl-icon fal fa-fw fa-sm", "aria-hidden": "true" })),
3102
- ' ' + displayTitle)) : null,
3103
- !isRoot ? (React.createElement(mosaic.Box, { mr: 2, pos: "relative" },
3104
- React.createElement(mosaic.Box, { display: "inline-flex", alignItems: "center", onMouseEnter: () => {
3105
- if ((schema === null || schema === void 0 ? void 0 : schema.anyOf) || (schema === null || schema === void 0 ? void 0 : schema.oneOf)) {
3106
- setIsHoveringSelector(true);
3107
- }
3108
- }, onMouseLeave: () => {
3109
- if (!showSchemaDropdown) {
3110
- setIsHoveringSelector(false);
3111
- }
3112
- }, onClick: (e) => {
3113
- if ((schema === null || schema === void 0 ? void 0 : schema.anyOf) || (schema === null || schema === void 0 ? void 0 : schema.oneOf)) {
3114
- e.stopPropagation();
3115
- setShowSchemaDropdown(prev => !prev);
3116
- }
3117
- }, style: {
3118
- cursor: (schema === null || schema === void 0 ? void 0 : schema.anyOf) || (schema === null || schema === void 0 ? void 0 : schema.oneOf) ? 'pointer' : 'default',
3119
- } },
3120
- React.createElement("span", { className: "sl-truncate sl-text-muted" },
3121
- (() => {
3122
- let typeDisplay = (schema === null || schema === void 0 ? void 0 : schema.type) === 'object' && (schema === null || schema === void 0 ? void 0 : schema.title) ? schema === null || schema === void 0 ? void 0 : schema.title : (schema === null || schema === void 0 ? void 0 : schema.type) || (root === null || root === void 0 ? void 0 : root.title);
3123
- if ((schema === null || schema === void 0 ? void 0 : schema.anyOf) && (schema === null || schema === void 0 ? void 0 : schema.anyOf.length) > 0) {
3124
- return `any of ${typeDisplay}`;
3125
- }
3126
- else if ((schema === null || schema === void 0 ? void 0 : schema.oneOf) && (schema === null || schema === void 0 ? void 0 : schema.oneOf.length) > 0) {
3127
- return `one of ${typeDisplay}`;
3128
- }
3129
- return typeDisplay;
3130
- })(),
3131
- (schema === null || schema === void 0 ? void 0 : schema.items) && ((_c = schema === null || schema === void 0 ? void 0 : schema.items) === null || _c === void 0 ? void 0 : _c.title) !== undefined ? ` [${(_d = schema === null || schema === void 0 ? void 0 : schema.items) === null || _d === void 0 ? void 0 : _d.title}] ` : null),
3132
- ((schema === null || schema === void 0 ? void 0 : schema.anyOf) || (schema === null || schema === void 0 ? void 0 : schema.oneOf)) && (React.createElement(mosaic.Box, { display: "inline-flex", alignItems: "center", ml: 1, style: {
3133
- opacity: isHoveringSelector ? 1 : 0.6,
3134
- transition: 'opacity 0.2s',
3135
- } },
3136
- React.createElement("i", { className: "sl-icon fas fa-chevron-down", style: {
3137
- fontSize: '10px',
3138
- opacity: 0.6,
3139
- } })))),
3140
- React.createElement("span", { className: "text-gray-500" }, (schema === null || schema === void 0 ? void 0 : schema.format) !== undefined ? `<${schema === null || schema === void 0 ? void 0 : schema.format}>` : null),
3141
- ((schema === null || schema === void 0 ? void 0 : schema.anyOf) || (schema === null || schema === void 0 ? void 0 : schema.oneOf)) && showSchemaDropdown && combinedSchemaSelector())) : null),
3142
- React.createElement(mosaic.Flex, { pl: 1, w: "full", align: "start", direction: "col", style: { overflow: 'visible', paddingLeft: '20px' } },
3143
- (schema === null || schema === void 0 ? void 0 : schema.description) && (React.createElement(mosaic.Box, { fontFamily: "ui", fontWeight: "light" },
3144
- React.createElement("span", { className: "sl-prose sl-markdown-viewer", style: { fontSize: '12px' } }, schema === null || schema === void 0 ? void 0 : schema.description))),
3145
- !isRoot && (schema === null || schema === void 0 ? void 0 : schema.examples) !== undefined && (React.createElement(mosaic.Flex, { align: "center", mb: 1, style: { flexWrap: 'wrap' } },
3146
- React.createElement("span", { className: "text-gray-500", style: { marginRight: 8, flexShrink: 0 } }, "Example"),
3147
- React.createElement(mosaic.Box, { className: "sl-text-muted", fontFamily: "ui", fontWeight: "normal", mr: 2, style: {
3148
- background: 'rgba(245, 247, 250, 0.5)',
3149
- border: '1px solid #a0aec0',
3150
- borderRadius: '4px',
3151
- padding: '4px 8px',
3152
- display: 'inline-block',
3153
- overflowWrap: 'break-word',
3154
- textAlign: 'left',
3155
- maxWidth: '530px',
3156
- } }, JSON.stringify(schema === null || schema === void 0 ? void 0 : schema.examples))))),
3157
- React.createElement(mosaic.Flex, { pl: 1, w: "full", align: "start", direction: "col", style: { overflow: 'visible', paddingLeft: '20px' } }, schema &&
3158
- typeof schema === 'object' &&
3159
- ('minItems' in schema || 'enum' in schema) &&
3160
- renderMinEnums(schema))),
3161
- !isRoot && (React.createElement("label", { className: "inline-flex items-top ml-2" },
3162
- React.createElement(mosaic.Box, { mr: 2, fontFamily: "ui", fontWeight: "normal" }, showRequiredLabel && (React.createElement("div", { className: "sl-ml-2 sl-text-warning" },
3163
- React.createElement("span", { style: { marginLeft: '10px' } }, "required"))))))),
3164
- renderChildren()));
3165
- };
3166
-
3167
2762
  const isBodyEmpty = (body) => {
3168
2763
  if (!body)
3169
2764
  return true;
3170
2765
  const { contents = [], description } = body;
3171
2766
  return contents.length === 0 && !(description === null || description === void 0 ? void 0 : description.trim());
3172
2767
  };
3173
- const Body = ({ body, onChange, isHttpWebhookOperation = false, disableProps }) => {
2768
+ const Body = ({ body, onChange, isHttpWebhookOperation = false }) => {
3174
2769
  var _a;
3175
2770
  const [refResolver, maxRefDepth] = useSchemaInlineRefResolver();
3176
2771
  const [chosenContent, setChosenContent] = React__namespace.useState(0);
@@ -3183,36 +2778,13 @@ const Body = ({ body, onChange, isHttpWebhookOperation = false, disableProps })
3183
2778
  const { contents = [], description } = body;
3184
2779
  const schema = (_a = contents[chosenContent]) === null || _a === void 0 ? void 0 : _a.schema;
3185
2780
  const descriptionChanged = nodeHasChanged === null || nodeHasChanged === void 0 ? void 0 : nodeHasChanged({ nodeId: body.id, attr: 'description' });
3186
- const getMaskProperties = () => {
3187
- const disablePropsConfig = disableProps || [];
3188
- const absolutePathsToHide = [];
3189
- disablePropsConfig.forEach(configEntry => {
3190
- const { location, paths, isComplex } = configEntry;
3191
- if (paths.length === 0 && !isComplex) {
3192
- absolutePathsToHide.push({ path: location });
3193
- }
3194
- else {
3195
- paths.forEach((item) => {
3196
- const fullPath = location === '#' ? item === null || item === void 0 ? void 0 : item.path : `${location}/${item.path}`;
3197
- let object = { path: fullPath };
3198
- if (item.hasOwnProperty('required')) {
3199
- object = Object.assign(Object.assign({}, object), { required: item === null || item === void 0 ? void 0 : item.required });
3200
- }
3201
- absolutePathsToHide.push(object);
3202
- });
3203
- }
3204
- });
3205
- return absolutePathsToHide;
3206
- };
3207
- const shouldUseLazySchema = disableProps === null || disableProps === void 0 ? void 0 : disableProps.some(entry => entry.isComplex === true);
3208
- console.log('!!!!! shouldUseLazySchema body!!!!', shouldUseLazySchema);
3209
2781
  return (React__namespace.createElement(mosaic.VStack, { spacing: 6 },
3210
2782
  React__namespace.createElement(SectionSubtitle, { title: "Body", id: "request-body" }, contents.length > 0 && (React__namespace.createElement(mosaic.Flex, { flex: 1, justify: "end" },
3211
2783
  React__namespace.createElement(mosaic.Select, { "aria-label": "Request Body Content Type", value: String(chosenContent), onChange: value => setChosenContent(parseInt(String(value), 10)), options: contents.map((content, index) => ({ label: content.mediaType, value: index })), size: "sm" })))),
3212
2784
  description && (React__namespace.createElement(mosaic.Box, { pos: "relative" },
3213
2785
  React__namespace.createElement(MarkdownViewer, { markdown: description }),
3214
2786
  React__namespace.createElement(mosaic.NodeAnnotation, { change: descriptionChanged }))),
3215
- schema && shouldUseLazySchema ? (React__namespace.createElement(LazySchemaTreePreviewer, { schema: schema, hideData: getMaskProperties(), complexData: disableProps })) : (isJSONSchema(schema) && (React__namespace.createElement(jsonSchemaViewer.JsonSchemaViewer, { resolveRef: refResolver, maxRefDepth: maxRefDepth, schema: getOriginalObject(schema), viewMode: isHttpWebhookOperation ? 'standalone' : 'write', renderRootTreeLines: true, nodeHasChanged: nodeHasChanged, renderExtensionAddon: renderExtensionAddon })))));
2787
+ isJSONSchema(schema) && (React__namespace.createElement(jsonSchemaViewer.JsonSchemaViewer, { resolveRef: refResolver, maxRefDepth: maxRefDepth, schema: getOriginalObject(schema), viewMode: isHttpWebhookOperation ? 'standalone' : 'write', renderRootTreeLines: true, nodeHasChanged: nodeHasChanged, renderExtensionAddon: renderExtensionAddon }))));
3216
2788
  };
3217
2789
  Body.displayName = 'HttpOperation.Body';
3218
2790
 
@@ -3279,7 +2851,7 @@ const httpOperationParamsToSchema = ({ parameters, parameterType }) => {
3279
2851
  return schema;
3280
2852
  };
3281
2853
 
3282
- const Request = ({ operation: { request, request: { path: pathParams = [], headers: headerParams = [], cookie: cookieParams = [], body, query: queryParams = [], } = {}, security, }, hideSecurityInfo, onChange, isHttpWebhookOperation = false, disableProps, }) => {
2854
+ const Request = ({ operation: { request, request: { path: pathParams = [], headers: headerParams = [], cookie: cookieParams = [], body, query: queryParams = [], } = {}, security, }, hideSecurityInfo, onChange, isHttpWebhookOperation = false, }) => {
3283
2855
  if (!request || typeof request !== 'object')
3284
2856
  return null;
3285
2857
  const bodyIsEmpty = isBodyEmpty(body);
@@ -3307,7 +2879,7 @@ const Request = ({ operation: { request, request: { path: pathParams = [], heade
3307
2879
  cookieParams.length > 0 && (React__namespace.createElement(mosaic.VStack, { spacing: 5 },
3308
2880
  React__namespace.createElement(SectionSubtitle, { title: "Cookies", id: "request-cookies" }),
3309
2881
  React__namespace.createElement(Parameters, { parameterType: "cookie", parameters: cookieParams }))),
3310
- body && (React__namespace.createElement(Body, { onChange: onChange, body: body, isHttpWebhookOperation: isHttpWebhookOperation, disableProps: disableProps }))));
2882
+ body && React__namespace.createElement(Body, { onChange: onChange, body: body, isHttpWebhookOperation: isHttpWebhookOperation })));
3311
2883
  };
3312
2884
  Request.displayName = 'HttpOperation.Request';
3313
2885
  const schemeExpandedState = utils.atomWithStorage('HttpOperation_security_expanded', {});
@@ -3338,7 +2910,7 @@ const OptionalMessage$1 = () => {
3338
2910
  return React__namespace.createElement(mosaic.Callout, { appearance: "outline" }, OptionalSecurityMessage);
3339
2911
  };
3340
2912
 
3341
- const Responses = ({ responses: unsortedResponses, onStatusCodeChange, onMediaTypeChange, isCompact, disableProps, }) => {
2913
+ const Responses = ({ responses: unsortedResponses, onStatusCodeChange, onMediaTypeChange, isCompact, }) => {
3342
2914
  var _a, _b;
3343
2915
  const responses = sortBy(uniqBy(unsortedResponses, r => r.code), r => r.code);
3344
2916
  const [activeResponseId, setActiveResponseId] = React__namespace.useState((_b = (_a = responses[0]) === null || _a === void 0 ? void 0 : _a.code) !== null && _b !== void 0 ? _b : '');
@@ -3371,12 +2943,11 @@ const Responses = ({ responses: unsortedResponses, onStatusCodeChange, onMediaTy
3371
2943
  const tabResponses = (React__namespace.createElement(mosaic.TabList, { density: "compact" }, responses.map(({ code }) => (React__namespace.createElement(mosaic.Tab, { key: code, id: code, intent: codeToIntentVal(code) }, code)))));
3372
2944
  return (React__namespace.createElement(mosaic.VStack, { spacing: 8, as: mosaic.Tabs, selectedId: activeResponseId, onChange: setActiveResponseId, appearance: "pill" },
3373
2945
  React__namespace.createElement(SectionTitle, { title: "Responses", isCompact: isCompact }, isCompact ? compactResponses : tabResponses),
3374
- isCompact ? (React__namespace.createElement(Response, { response: response, onMediaTypeChange: onMediaTypeChange, disableProps: disableProps, statusCode: activeResponseId })) : (React__namespace.createElement(mosaic.TabPanels, { p: 0 }, responses.map(response => (React__namespace.createElement(mosaic.TabPanel, { key: response.code, id: response.code },
3375
- React__namespace.createElement(Response, { response: response, onMediaTypeChange: onMediaTypeChange, disableProps: disableProps, statusCode: response.code }))))))));
2946
+ isCompact ? (React__namespace.createElement(Response, { response: response, onMediaTypeChange: onMediaTypeChange })) : (React__namespace.createElement(mosaic.TabPanels, { p: 0 }, responses.map(response => (React__namespace.createElement(mosaic.TabPanel, { key: response.code, id: response.code },
2947
+ React__namespace.createElement(Response, { response: response, onMediaTypeChange: onMediaTypeChange }))))))));
3376
2948
  };
3377
2949
  Responses.displayName = 'HttpOperation.Responses';
3378
- const Response = ({ response, onMediaTypeChange, disableProps, statusCode }) => {
3379
- var _a, _b;
2950
+ const Response = ({ response, onMediaTypeChange }) => {
3380
2951
  const { contents = [], headers = [], description } = response;
3381
2952
  const [chosenContent, setChosenContent] = React__namespace.useState(0);
3382
2953
  const [refResolver, maxRefDepth] = useSchemaInlineRefResolver();
@@ -3387,29 +2958,6 @@ const Response = ({ response, onMediaTypeChange, disableProps, statusCode }) =>
3387
2958
  responseContent && (onMediaTypeChange === null || onMediaTypeChange === void 0 ? void 0 : onMediaTypeChange(responseContent.mediaType));
3388
2959
  }, [responseContent]);
3389
2960
  const descriptionChanged = nodeHasChanged === null || nodeHasChanged === void 0 ? void 0 : nodeHasChanged({ nodeId: response.id, attr: 'description' });
3390
- const getMaskProperties = () => {
3391
- if (!disableProps || !statusCode)
3392
- return [];
3393
- const configEntries = disableProps[statusCode] || [];
3394
- const absolutePathsToHide = [];
3395
- configEntries.forEach(({ location, paths, isComplex }) => {
3396
- if (paths.length === 0 && !isComplex) {
3397
- absolutePathsToHide.push({ path: location });
3398
- }
3399
- else {
3400
- paths.forEach((item) => {
3401
- const fullPath = location === '#' ? item === null || item === void 0 ? void 0 : item.path : `${location}/${item.path}`;
3402
- let object = { path: fullPath };
3403
- if (item.hasOwnProperty('required')) {
3404
- object = Object.assign(Object.assign({}, object), { required: item === null || item === void 0 ? void 0 : item.required });
3405
- }
3406
- absolutePathsToHide.push(object);
3407
- });
3408
- }
3409
- });
3410
- return absolutePathsToHide;
3411
- };
3412
- const shouldUseLazySchema = (_b = (statusCode && ((_a = disableProps === null || disableProps === void 0 ? void 0 : disableProps[statusCode]) === null || _a === void 0 ? void 0 : _a.some(entry => entry.isComplex)))) !== null && _b !== void 0 ? _b : false;
3413
2961
  return (React__namespace.createElement(mosaic.VStack, { spacing: 8, pt: 8 },
3414
2962
  description && (React__namespace.createElement(mosaic.Box, { pos: "relative" },
3415
2963
  React__namespace.createElement(MarkdownViewer, { markdown: description }),
@@ -3421,7 +2969,7 @@ const Response = ({ response, onMediaTypeChange, disableProps, statusCode }) =>
3421
2969
  React__namespace.createElement(SectionSubtitle, { title: "Body", id: "response-body" },
3422
2970
  React__namespace.createElement(mosaic.Flex, { flex: 1, justify: "end" },
3423
2971
  React__namespace.createElement(mosaic.Select, { "aria-label": "Response Body Content Type", value: String(chosenContent), onChange: value => setChosenContent(parseInt(String(value), 10)), options: contents.map((content, index) => ({ label: content.mediaType, value: index })), size: "sm" }))),
3424
- schema && shouldUseLazySchema ? (React__namespace.createElement(LazySchemaTreePreviewer, { schema: schema, path: "", hideData: getMaskProperties(), complexData: disableProps && statusCode ? disableProps[statusCode] : [] })) : (React__namespace.createElement(jsonSchemaViewer.JsonSchemaViewer, { schema: getOriginalObject(schema), resolveRef: refResolver, maxRefDepth: maxRefDepth, viewMode: "read", parentCrumbs: ['responses', response.code], renderRootTreeLines: true, nodeHasChanged: nodeHasChanged, renderExtensionAddon: renderExtensionAddon }))))));
2972
+ schema && (React__namespace.createElement(jsonSchemaViewer.JsonSchemaViewer, { schema: getOriginalObject(schema), resolveRef: refResolver, maxRefDepth: maxRefDepth, viewMode: "read", parentCrumbs: ['responses', response.code], renderRootTreeLines: true, nodeHasChanged: nodeHasChanged, renderExtensionAddon: renderExtensionAddon }))))));
3425
2973
  };
3426
2974
  Response.displayName = 'HttpOperation.Response';
3427
2975
  const codeToIntentVal = (code) => {
@@ -3470,7 +3018,7 @@ const Callback = ({ data, isCompact }) => {
3470
3018
  };
3471
3019
  Callbacks.displayName = 'HttpOperation.Callback';
3472
3020
 
3473
- const HttpOperationComponent = React__namespace.memo(({ className, data: unresolvedData, layoutOptions, tryItCredentialsPolicy, tryItCorsProxy, disableProps }) => {
3021
+ const HttpOperationComponent = React__namespace.memo(({ className, data: unresolvedData, layoutOptions, tryItCredentialsPolicy, tryItCorsProxy }) => {
3474
3022
  var _a;
3475
3023
  const { nodeHasChanged } = useOptionsCtx();
3476
3024
  const data = useResolvedObject(unresolvedData);
@@ -3501,11 +3049,11 @@ const HttpOperationComponent = React__namespace.memo(({ className, data: unresol
3501
3049
  React__namespace.createElement(MarkdownViewer, { className: "HttpOperation__Description", markdown: data.description }),
3502
3050
  React__namespace.createElement(mosaic.NodeAnnotation, { change: descriptionChanged }))),
3503
3051
  React__namespace.createElement(NodeVendorExtensions, { data: data }),
3504
- React__namespace.createElement(Request, { onChange: setTextRequestBodyIndex, operation: data, hideSecurityInfo: layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideSecurityInfo, isHttpWebhookOperation: isHttpWebhookOperation(data), disableProps: disableProps === null || disableProps === void 0 ? void 0 : disableProps.request }),
3505
- data.responses && (React__namespace.createElement(Responses, { responses: data.responses, onMediaTypeChange: setResponseMediaType, onStatusCodeChange: setResponseStatusCode, isCompact: isCompact, disableProps: disableProps === null || disableProps === void 0 ? void 0 : disableProps.response })),
3052
+ React__namespace.createElement(Request, { onChange: setTextRequestBodyIndex, operation: data, hideSecurityInfo: layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideSecurityInfo, isHttpWebhookOperation: isHttpWebhookOperation(data) }),
3053
+ data.responses && (React__namespace.createElement(Responses, { responses: data.responses, onMediaTypeChange: setResponseMediaType, onStatusCodeChange: setResponseStatusCode, isCompact: isCompact })),
3506
3054
  ((_a = data.callbacks) === null || _a === void 0 ? void 0 : _a.length) ? React__namespace.createElement(Callbacks, { callbacks: data.callbacks, isCompact: isCompact }) : null,
3507
3055
  isCompact && tryItPanel));
3508
- return (React__namespace.createElement(TwoColumnLayout, { ref: layoutRef, className: cn('HttpOperation', className), header: header, left: description, right: !(disableProps === null || disableProps === void 0 ? void 0 : disableProps.hideOperationTryIt) && !isCompact && tryItPanel }));
3056
+ return (React__namespace.createElement(TwoColumnLayout, { ref: layoutRef, className: cn('HttpOperation', className), header: header, left: description, right: !isCompact && tryItPanel }));
3509
3057
  });
3510
3058
  HttpOperationComponent.displayName = 'HttpOperation.Component';
3511
3059
  const HttpOperation = reactErrorBoundary.withErrorBoundary(HttpOperationComponent, {
@@ -3756,7 +3304,7 @@ const HttpServiceComponent = React__namespace.memo(({ data: unresolvedData, loca
3756
3304
  HttpServiceComponent.displayName = 'HttpService.Component';
3757
3305
  const HttpService = reactErrorBoundary.withErrorBoundary(HttpServiceComponent, { recoverableProps: ['data'] });
3758
3306
 
3759
- const ModelComponent = ({ data: unresolvedData, className, nodeTitle, layoutOptions, exportProps, disableProps, }) => {
3307
+ const ModelComponent = ({ data: unresolvedData, className, nodeTitle, layoutOptions, exportProps, }) => {
3760
3308
  var _a, _b;
3761
3309
  const [resolveRef, maxRefDepth] = useSchemaInlineRefResolver();
3762
3310
  const data = useResolvedObject(unresolvedData);
@@ -3779,40 +3327,14 @@ const ModelComponent = ({ data: unresolvedData, className, nodeTitle, layoutOpti
3779
3327
  exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) && !isCompact && React__namespace.createElement(ExportButton, Object.assign({}, exportProps))));
3780
3328
  const modelExamples = !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideModelExamples) && React__namespace.createElement(ModelExamples, { data: data, isCollapsible: isCompact });
3781
3329
  const descriptionChanged = nodeHasChanged === null || nodeHasChanged === void 0 ? void 0 : nodeHasChanged({ nodeId, attr: 'description' });
3782
- const getMaskProperties = () => {
3783
- const disablePropsConfig = disableProps === null || disableProps === void 0 ? void 0 : disableProps.models;
3784
- const absolutePathsToHide = [];
3785
- if (disableProps === null || disableProps === void 0 ? void 0 : disableProps.models) {
3786
- disablePropsConfig.forEach((configEntry) => {
3787
- const { location, paths, isComplex } = configEntry;
3788
- if (paths.length === 0 && !isComplex) {
3789
- absolutePathsToHide.push({ path: location });
3790
- }
3791
- else {
3792
- paths.forEach((item) => {
3793
- const fullPath = location === '#' ? item === null || item === void 0 ? void 0 : item.path : `${location}/${item.path}`;
3794
- let object = { path: fullPath };
3795
- if (item.hasOwnProperty('required')) {
3796
- object = Object.assign(Object.assign({}, object), { required: item === null || item === void 0 ? void 0 : item.required });
3797
- }
3798
- absolutePathsToHide.push(object);
3799
- });
3800
- }
3801
- });
3802
- }
3803
- return absolutePathsToHide;
3804
- };
3805
- const shouldUseLazySchema = disableProps && (disableProps === null || disableProps === void 0 ? void 0 : disableProps.models)
3806
- ? disableProps.models.some((entry) => entry.isComplex === true)
3807
- : false;
3808
3330
  const description = (React__namespace.createElement(mosaic.VStack, { spacing: 10 },
3809
3331
  data.description && data.type === 'object' && (React__namespace.createElement(mosaic.Box, { pos: "relative" },
3810
3332
  React__namespace.createElement(MarkdownViewer, { role: "textbox", markdown: data.description }),
3811
3333
  React__namespace.createElement(mosaic.NodeAnnotation, { change: descriptionChanged }))),
3812
3334
  React__namespace.createElement(NodeVendorExtensions, { data: data }),
3813
- !(disableProps === null || disableProps === void 0 ? void 0 : disableProps.hideModelTryIt) && isCompact && modelExamples,
3814
- data && shouldUseLazySchema ? (React__namespace.createElement(LazySchemaTreePreviewer, { schema: data, hideData: getMaskProperties(), complexData: disableProps === null || disableProps === void 0 ? void 0 : disableProps.models })) : (React__namespace.createElement(jsonSchemaViewer.JsonSchemaViewer, { resolveRef: resolveRef, maxRefDepth: maxRefDepth, schema: getOriginalObject(data), nodeHasChanged: nodeHasChanged, renderExtensionAddon: renderExtensionAddon, skipTopLevelDescription: true }))));
3815
- return (React__namespace.createElement(TwoColumnLayout, { ref: layoutRef, className: cn('Model', className), header: header, left: description, right: !(disableProps === null || disableProps === void 0 ? void 0 : disableProps.hideModelTryIt) && !isCompact && modelExamples }));
3335
+ isCompact && modelExamples,
3336
+ React__namespace.createElement(jsonSchemaViewer.JsonSchemaViewer, { resolveRef: resolveRef, maxRefDepth: maxRefDepth, schema: getOriginalObject(data), nodeHasChanged: nodeHasChanged, renderExtensionAddon: renderExtensionAddon, skipTopLevelDescription: true })));
3337
+ return (React__namespace.createElement(TwoColumnLayout, { ref: layoutRef, className: cn('Model', className), header: header, left: description, right: !isCompact && modelExamples }));
3816
3338
  };
3817
3339
  const ModelExamples = React__namespace.memo(({ data, isCollapsible = false }) => {
3818
3340
  var _a;
@@ -3834,41 +3356,30 @@ const Model = reactErrorBoundary.withErrorBoundary(ModelComponent, { recoverable
3834
3356
 
3835
3357
  const Docs = React__namespace.memo((_a) => {
3836
3358
  var _b;
3837
- var { nodeType, nodeData, disableProps, useNodeForRefResolving = false, refResolver, maxRefDepth, nodeHasChanged, renderExtensionAddon } = _a, commonProps = tslib.__rest(_a, ["nodeType", "nodeData", "disableProps", "useNodeForRefResolving", "refResolver", "maxRefDepth", "nodeHasChanged", "renderExtensionAddon"]);
3359
+ var { nodeType, nodeData, useNodeForRefResolving = false, refResolver, maxRefDepth, nodeHasChanged, renderExtensionAddon } = _a, commonProps = tslib.__rest(_a, ["nodeType", "nodeData", "useNodeForRefResolving", "refResolver", "maxRefDepth", "nodeHasChanged", "renderExtensionAddon"]);
3838
3360
  const parsedNode = useParsedData(nodeType, nodeData);
3839
3361
  if (!parsedNode) {
3840
3362
  (_b = commonProps.nodeUnsupported) === null || _b === void 0 ? void 0 : _b.call(commonProps, 'dataEmpty');
3841
3363
  return null;
3842
3364
  }
3843
- let elem = React__namespace.createElement(ParsedDocs, Object.assign({ node: parsedNode, disableProps: disableProps }, commonProps));
3365
+ let elem = React__namespace.createElement(ParsedDocs, Object.assign({ node: parsedNode }, commonProps));
3844
3366
  if (useNodeForRefResolving) {
3845
3367
  elem = (React__namespace.createElement(InlineRefResolverProvider, { document: parsedNode.data, resolver: refResolver, maxRefDepth: maxRefDepth }, elem));
3846
3368
  }
3847
3369
  return (React__namespace.createElement(ElementsOptionsProvider, { nodeHasChanged: nodeHasChanged, renderExtensionAddon: renderExtensionAddon }, elem));
3848
3370
  });
3849
- const getTryItVisibility = (disableProps) => {
3850
- var _a, _b, _c, _d;
3851
- if (!disableProps)
3852
- return { hideOperationTryIt: false, hideModelTryIt: false };
3853
- const requestHasComplex = (_b = (_a = disableProps.request) === null || _a === void 0 ? void 0 : _a.some(item => item.isComplex)) !== null && _b !== void 0 ? _b : false;
3854
- const responseHasComplex = Object.values(disableProps.response || {}).some(arr => arr.some(item => item.isComplex));
3855
- const hideOperationTryIt = requestHasComplex || responseHasComplex;
3856
- const hideModelTryIt = (_d = (_c = disableProps.models) === null || _c === void 0 ? void 0 : _c.some(item => item.isComplex)) !== null && _d !== void 0 ? _d : false;
3857
- return { hideOperationTryIt, hideModelTryIt };
3858
- };
3859
3371
  const ParsedDocs = (_a) => {
3860
- var { node, nodeUnsupported, disableProps } = _a, commonProps = tslib.__rest(_a, ["node", "nodeUnsupported", "disableProps"]);
3861
- const { hideOperationTryIt, hideModelTryIt } = getTryItVisibility(disableProps);
3372
+ var { node, nodeUnsupported } = _a, commonProps = tslib.__rest(_a, ["node", "nodeUnsupported"]);
3862
3373
  switch (node.type) {
3863
3374
  case 'article':
3864
3375
  return React__namespace.createElement(Article, Object.assign({ data: node.data }, commonProps));
3865
3376
  case 'http_operation':
3866
3377
  case 'http_webhook':
3867
- return React__namespace.createElement(HttpOperation, Object.assign({ data: node.data, disableProps: Object.assign(Object.assign({}, disableProps), { hideOperationTryIt }) }, commonProps));
3378
+ return React__namespace.createElement(HttpOperation, Object.assign({ data: node.data }, commonProps));
3868
3379
  case 'http_service':
3869
3380
  return React__namespace.createElement(HttpService, Object.assign({ data: node.data }, commonProps));
3870
3381
  case 'model':
3871
- return React__namespace.createElement(Model, Object.assign({ data: node.data, disableProps: Object.assign(Object.assign({}, disableProps), { hideModelTryIt }) }, commonProps));
3382
+ return React__namespace.createElement(Model, Object.assign({ data: node.data }, commonProps));
3872
3383
  default:
3873
3384
  nodeUnsupported === null || nodeUnsupported === void 0 ? void 0 : nodeUnsupported('invalidType');
3874
3385
  return null;
@@ -4006,7 +3517,7 @@ function findFirstNode(items) {
4006
3517
  return;
4007
3518
  }
4008
3519
  function isDivider(item) {
4009
- return Object.keys(item).length === 1 && 'title' in item;
3520
+ return Object.keys(item).length === 2 && 'title' in item && 'index' in item;
4010
3521
  }
4011
3522
  function isGroup(item) {
4012
3523
  return Object.keys(item).length >= 2 && 'title' in item && 'items' in item;
@@ -4018,13 +3529,33 @@ function isNode(item) {
4018
3529
  return 'title' in item && 'slug' in item && 'id' in item && 'meta' in item && 'type' in item;
4019
3530
  }
4020
3531
  function isExternalLink(item) {
4021
- return Object.keys(item).length === 2 && 'title' in item && 'url' in item;
3532
+ return Object.keys(item).length === 3 && 'title' in item && 'url' in item && 'index' in item;
4022
3533
  }
4023
3534
 
4024
- const ActiveIdContext = React__namespace.createContext(undefined);
3535
+ const ActiveItemContext = React__namespace.createContext({
3536
+ activeId: undefined,
3537
+ lastActiveIndex: '',
3538
+ setLastActiveIndex: () => { },
3539
+ });
4025
3540
  const LinkContext = React__namespace.createContext(undefined);
4026
3541
  LinkContext.displayName = 'LinkContext';
4027
3542
  const TableOfContents = React__namespace.memo(({ tree, activeId, Link, maxDepthOpenByDefault, externalScrollbar = false, isInResponsiveMode = false, onLinkClick, }) => {
3543
+ const [lastActiveIndex, setLastActiveIndex] = React.useState('');
3544
+ const value = React__namespace.useMemo(() => ({
3545
+ lastActiveIndex,
3546
+ setLastActiveIndex,
3547
+ activeId,
3548
+ }), [lastActiveIndex, activeId]);
3549
+ const updateTocTree = React__namespace.useCallback((arr, parentId) => {
3550
+ return arr.map((item, key) => {
3551
+ let newItem = Object.assign(Object.assign({}, item), { index: parentId + key + '-' });
3552
+ if (isGroup(item) || isNodeGroup(item)) {
3553
+ newItem.items = updateTocTree(item.items, parentId + key + '-');
3554
+ }
3555
+ return newItem;
3556
+ });
3557
+ }, []);
3558
+ const updatedTree = updateTocTree(tree, '');
4028
3559
  const container = React__namespace.useRef(null);
4029
3560
  const child = React__namespace.useRef(null);
4030
3561
  const firstRender = useFirstRender();
@@ -4044,18 +3575,30 @@ const TableOfContents = React__namespace.memo(({ tree, activeId, Link, maxDepthO
4044
3575
  return (React__namespace.createElement(mosaic.Box, { ref: container, w: "full", bg: isInResponsiveMode ? 'canvas' : 'canvas-100', overflowY: "auto" },
4045
3576
  React__namespace.createElement(mosaic.Box, { ref: child, my: 3 },
4046
3577
  React__namespace.createElement(LinkContext.Provider, { value: Link },
4047
- React__namespace.createElement(ActiveIdContext.Provider, { value: activeId }, tree.map((item, key) => {
4048
- if (isDivider(item)) {
4049
- return React__namespace.createElement(Divider, { key: key, item: item, isInResponsiveMode: isInResponsiveMode });
4050
- }
4051
- return (React__namespace.createElement(GroupItem, { key: key, item: item, depth: 0, maxDepthOpenByDefault: maxDepthOpenByDefault, onLinkClick: onLinkClick, isInResponsiveMode: isInResponsiveMode }));
4052
- }))))));
3578
+ React__namespace.createElement(ActiveItemContext.Provider, { value: value },
3579
+ React__namespace.createElement(TOCContainer, { updatedTree: updatedTree }, updatedTree.map((item, key) => {
3580
+ if (isDivider(item)) {
3581
+ return React__namespace.createElement(Divider, { key: key, item: item, isInResponsiveMode: isInResponsiveMode });
3582
+ }
3583
+ return (React__namespace.createElement(GroupItem, { key: key, item: item, depth: 0, maxDepthOpenByDefault: maxDepthOpenByDefault, onLinkClick: onLinkClick, isInResponsiveMode: isInResponsiveMode }));
3584
+ })))))));
4053
3585
  });
4054
3586
  TableOfContents.displayName = 'TableOfContents';
4055
3587
  const Divider = React__namespace.memo(({ item, isInResponsiveMode = false }) => {
4056
3588
  return (React__namespace.createElement(mosaic.Box, { pl: 4, mb: 2, mt: 6, textTransform: "uppercase", fontSize: isInResponsiveMode ? 'lg' : 'sm', lineHeight: "relaxed", letterSpacing: "wide", fontWeight: "bold" }, item.title));
4057
3589
  });
4058
3590
  Divider.displayName = 'Divider';
3591
+ const TOCContainer = React__namespace.memo(({ children, updatedTree }) => {
3592
+ const { setLastActiveIndex } = React__namespace.useContext(ActiveItemContext);
3593
+ React__namespace.useEffect(() => {
3594
+ const firstNode = findFirstNode(updatedTree);
3595
+ if (firstNode) {
3596
+ setLastActiveIndex(firstNode.index);
3597
+ }
3598
+ }, []);
3599
+ return React__namespace.createElement(mosaic.Box, null, children);
3600
+ });
3601
+ TOCContainer.displayName = 'TOCContainer';
4059
3602
  const GroupItem = React__namespace.memo(({ item, depth, maxDepthOpenByDefault, isInResponsiveMode, onLinkClick }) => {
4060
3603
  if (isExternalLink(item)) {
4061
3604
  return (React__namespace.createElement(mosaic.Box, { as: "a", href: item.url, target: "_blank", rel: "noopener noreferrer", display: "block" },
@@ -4073,9 +3616,24 @@ const GroupItem = React__namespace.memo(({ item, depth, maxDepthOpenByDefault, i
4073
3616
  });
4074
3617
  GroupItem.displayName = 'GroupItem';
4075
3618
  const Group = React__namespace.memo(({ depth, item, maxDepthOpenByDefault, isInResponsiveMode, onLinkClick = () => { } }) => {
4076
- const activeId = React__namespace.useContext(ActiveIdContext);
3619
+ const { activeId, lastActiveIndex } = React__namespace.useContext(ActiveItemContext);
4077
3620
  const [isOpen, setIsOpen] = React__namespace.useState(() => isGroupOpenByDefault(depth, item, activeId, maxDepthOpenByDefault));
4078
- const hasActive = !!activeId && hasActiveItem(item.items, activeId);
3621
+ const isActiveGroup = React__namespace.useCallback((items, activeId, contextIndex) => {
3622
+ return items.some(element => {
3623
+ const hasSlugOrId = 'slug' in element || 'id' in element;
3624
+ const hasItems = 'items' in element && Array.isArray(element.items);
3625
+ if (!hasSlugOrId && !hasItems)
3626
+ return false;
3627
+ if (activeId &&
3628
+ 'index' in element &&
3629
+ (element.slug === activeId || element.id === activeId) &&
3630
+ element.index === contextIndex) {
3631
+ return true;
3632
+ }
3633
+ return hasItems ? isActiveGroup(element.items, activeId, contextIndex) : false;
3634
+ });
3635
+ }, []);
3636
+ const hasActive = isActiveGroup(item.items, activeId, lastActiveIndex);
4079
3637
  React__namespace.useEffect(() => {
4080
3638
  const openByDefault = isGroupOpenByDefault(depth, item, activeId, maxDepthOpenByDefault);
4081
3639
  if (isOpen !== openByDefault) {
@@ -4125,8 +3683,10 @@ const Item = React__namespace.memo(({ depth, isActive, id, title, meta, icon, is
4125
3683
  });
4126
3684
  Item.displayName = 'Item';
4127
3685
  const Node = React__namespace.memo(({ item, depth, meta, showAsActive, isInResponsiveMode, onClick, onLinkClick = () => { } }) => {
4128
- const activeId = React__namespace.useContext(ActiveIdContext);
4129
- const isActive = activeId === item.slug || activeId === item.id;
3686
+ const { activeId, lastActiveIndex, setLastActiveIndex } = React__namespace.useContext(ActiveItemContext);
3687
+ const { index } = item;
3688
+ const isSlugMatched = activeId === item.slug || activeId === item.id;
3689
+ const isActive = lastActiveIndex === index && isSlugMatched;
4130
3690
  const LinkComponent = React__namespace.useContext(LinkContext);
4131
3691
  const handleClick = (e) => {
4132
3692
  if (isActive) {
@@ -4134,6 +3694,7 @@ const Node = React__namespace.memo(({ item, depth, meta, showAsActive, isInRespo
4134
3694
  e.preventDefault();
4135
3695
  }
4136
3696
  else {
3697
+ setLastActiveIndex(index);
4137
3698
  onLinkClick();
4138
3699
  }
4139
3700
  if (onClick) {
@@ -4141,7 +3702,7 @@ const Node = React__namespace.memo(({ item, depth, meta, showAsActive, isInRespo
4141
3702
  }
4142
3703
  };
4143
3704
  return (React__namespace.createElement(mosaic.Box, { as: LinkComponent, to: resolveRelativeLink(item.slug), display: "block", textDecoration: "no-underline", className: "ElementsTableOfContentsItem" },
4144
- React__namespace.createElement(Item, { id: getHtmlIdFromItemId(item.slug || item.id), isActive: isActive || showAsActive, depth: depth, title: item.title, icon: NODE_TYPE_TITLE_ICON[item.type] && (React__namespace.createElement(mosaic.Box, { as: mosaic.Icon, color: NODE_TYPE_ICON_COLOR[item.type], icon: NODE_TYPE_TITLE_ICON[item.type] })), meta: meta, isInResponsiveMode: isInResponsiveMode, onClick: handleClick })));
3705
+ React__namespace.createElement(Item, { id: getHtmlIdFromItemId(item.slug || item.id), isActive: isActive || showAsActive, depth: depth, title: item.title, icon: NODE_TYPE_TITLE_ICON[item.type] && (React__namespace.createElement(mosaic.Box, { as: mosaic.Icon, color: NODE_TYPE_ICON_COLOR[item.type], icon: NODE_TYPE_TITLE_ICON[item.type] })), meta: meta, isInResponsiveMode: isInResponsiveMode, onClick: e => handleClick(e) })));
4145
3706
  });
4146
3707
  Node.displayName = 'Node';
4147
3708
  const Version = ({ value }) => {