@scalar/api-client 2.38.4 → 2.39.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 (1884) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
  3. package/dist/assets/computer.ascii.virtual.js +6 -0
  4. package/dist/assets/computer.ascii.virtual.js.map +1 -0
  5. package/dist/assets/keycap.ascii.virtual.js +6 -0
  6. package/dist/assets/keycap.ascii.virtual.js.map +1 -0
  7. package/dist/assets/rabbit.ascii.virtual.js +6 -0
  8. package/dist/assets/rabbit.ascii.virtual.js.map +1 -0
  9. package/dist/assets/rabbitjump.ascii.virtual.js +6 -0
  10. package/dist/assets/rabbitjump.ascii.virtual.js.map +1 -0
  11. package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
  12. package/dist/components/AddressBar/AddressBar.vue.js +9 -0
  13. package/dist/components/AddressBar/AddressBar.vue.js.map +1 -0
  14. package/dist/components/AddressBar/AddressBar.vue.script.js +204 -0
  15. package/dist/components/AddressBar/AddressBar.vue.script.js.map +1 -0
  16. package/dist/components/AddressBar/AddressBarHistory.vue.js +9 -0
  17. package/dist/components/AddressBar/AddressBarHistory.vue.js.map +1 -0
  18. package/dist/components/AddressBar/AddressBarHistory.vue.script.js +85 -0
  19. package/dist/components/AddressBar/AddressBarHistory.vue.script.js.map +1 -0
  20. package/dist/components/AddressBar/httpStatusCodeColors.js +20 -0
  21. package/dist/components/AddressBar/httpStatusCodeColors.js.map +1 -0
  22. package/dist/components/AddressBar/index.d.ts +1 -1
  23. package/dist/components/AddressBar/index.js +1 -4
  24. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
  25. package/dist/components/CodeInput/CodeInput.vue.js +10 -0
  26. package/dist/components/CodeInput/CodeInput.vue.js.map +1 -0
  27. package/dist/components/CodeInput/CodeInput.vue.script.js +294 -0
  28. package/dist/components/CodeInput/CodeInput.vue.script.js.map +1 -0
  29. package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -1
  30. package/dist/components/CodeInput/codeVariableWidget.js +135 -0
  31. package/dist/components/CodeInput/codeVariableWidget.js.map +1 -0
  32. package/dist/components/CodeInput/index.d.ts +1 -1
  33. package/dist/components/CodeInput/index.js +1 -1
  34. package/dist/components/CommandPalette/CommandActionForm.vue.js +7 -0
  35. package/dist/components/CommandPalette/CommandActionForm.vue.js.map +1 -0
  36. package/dist/components/CommandPalette/CommandActionForm.vue.script.js +42 -0
  37. package/dist/components/CommandPalette/CommandActionForm.vue.script.js.map +1 -0
  38. package/dist/components/CommandPalette/CommandActionInput.vue.js +7 -0
  39. package/dist/components/CommandPalette/CommandActionInput.vue.js.map +1 -0
  40. package/dist/components/CommandPalette/CommandActionInput.vue.script.js +55 -0
  41. package/dist/components/CommandPalette/CommandActionInput.vue.script.js.map +1 -0
  42. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +7 -0
  43. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js.map +1 -0
  44. package/dist/components/CommandPalette/CommandPaletteCollection.vue.script.js +78 -0
  45. package/dist/components/CommandPalette/CommandPaletteCollection.vue.script.js.map +1 -0
  46. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +7 -0
  47. package/dist/components/CommandPalette/CommandPaletteExample.vue.js.map +1 -0
  48. package/dist/components/CommandPalette/CommandPaletteExample.vue.script.js +104 -0
  49. package/dist/components/CommandPalette/CommandPaletteExample.vue.script.js.map +1 -0
  50. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +7 -0
  51. package/dist/components/CommandPalette/CommandPaletteImport.vue.js.map +1 -0
  52. package/dist/components/CommandPalette/CommandPaletteImport.vue.script.js +181 -0
  53. package/dist/components/CommandPalette/CommandPaletteImport.vue.script.js.map +1 -0
  54. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +9 -0
  55. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js.map +1 -0
  56. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.script.js +108 -0
  57. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.script.js.map +1 -0
  58. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +7 -0
  59. package/dist/components/CommandPalette/CommandPaletteServer.vue.js.map +1 -0
  60. package/dist/components/CommandPalette/CommandPaletteServer.vue.script.js +108 -0
  61. package/dist/components/CommandPalette/CommandPaletteServer.vue.script.js.map +1 -0
  62. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +7 -0
  63. package/dist/components/CommandPalette/CommandPaletteTag.vue.js.map +1 -0
  64. package/dist/components/CommandPalette/CommandPaletteTag.vue.script.js +70 -0
  65. package/dist/components/CommandPalette/CommandPaletteTag.vue.script.js.map +1 -0
  66. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +7 -0
  67. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js.map +1 -0
  68. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.script.js +49 -0
  69. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.script.js.map +1 -0
  70. package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
  71. package/dist/components/CommandPalette/TheCommandPalette.vue.js.map +1 -0
  72. package/dist/components/CommandPalette/TheCommandPalette.vue.script.js +323 -0
  73. package/dist/components/CommandPalette/TheCommandPalette.vue.script.js.map +1 -0
  74. package/dist/components/CommandPalette/WatchModeToggle.vue.js +7 -0
  75. package/dist/components/CommandPalette/WatchModeToggle.vue.js.map +1 -0
  76. package/dist/components/CommandPalette/WatchModeToggle.vue.script.js +40 -0
  77. package/dist/components/CommandPalette/WatchModeToggle.vue.script.js.map +1 -0
  78. package/dist/components/CommandPalette/index.d.ts +1 -1
  79. package/dist/components/CommandPalette/index.js +1 -2
  80. package/dist/components/DataTable/DataTable.vue.js +7 -0
  81. package/dist/components/DataTable/DataTable.vue.js.map +1 -0
  82. package/dist/components/DataTable/DataTable.vue.script.js +30 -0
  83. package/dist/components/DataTable/DataTable.vue.script.js.map +1 -0
  84. package/dist/components/DataTable/DataTableCell.vue.js +7 -0
  85. package/dist/components/DataTable/DataTableCell.vue.js.map +1 -0
  86. package/dist/components/DataTable/DataTableCell.vue.script.js +21 -0
  87. package/dist/components/DataTable/DataTableCell.vue.script.js.map +1 -0
  88. package/dist/components/DataTable/DataTableCheckbox.vue.js +7 -0
  89. package/dist/components/DataTable/DataTableCheckbox.vue.js.map +1 -0
  90. package/dist/components/DataTable/DataTableCheckbox.vue.script.js +43 -0
  91. package/dist/components/DataTable/DataTableCheckbox.vue.script.js.map +1 -0
  92. package/dist/components/DataTable/DataTableHeader.vue.js +7 -0
  93. package/dist/components/DataTable/DataTableHeader.vue.js.map +1 -0
  94. package/dist/components/DataTable/DataTableHeader.vue.script.js +20 -0
  95. package/dist/components/DataTable/DataTableHeader.vue.script.js.map +1 -0
  96. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  97. package/dist/components/DataTable/DataTableInput.vue.js +9 -0
  98. package/dist/components/DataTable/DataTableInput.vue.js.map +1 -0
  99. package/dist/components/DataTable/DataTableInput.vue.script.js +164 -0
  100. package/dist/components/DataTable/DataTableInput.vue.script.js.map +1 -0
  101. package/dist/components/DataTable/DataTableInputSelect.vue.js +7 -0
  102. package/dist/components/DataTable/DataTableInputSelect.vue.js.map +1 -0
  103. package/dist/components/DataTable/DataTableInputSelect.vue.script.js +150 -0
  104. package/dist/components/DataTable/DataTableInputSelect.vue.script.js.map +1 -0
  105. package/dist/components/DataTable/DataTableRow.vue.js +13 -0
  106. package/dist/components/DataTable/DataTableRow.vue.js.map +1 -0
  107. package/dist/components/DataTable/DataTableText.vue.js +7 -0
  108. package/dist/components/DataTable/DataTableText.vue.js.map +1 -0
  109. package/dist/components/DataTable/DataTableText.vue.script.js +20 -0
  110. package/dist/components/DataTable/DataTableText.vue.script.js.map +1 -0
  111. package/dist/components/DataTable/index.d.ts +8 -8
  112. package/dist/components/DataTable/index.js +8 -5
  113. package/dist/components/EmptyState.vue.js +9 -0
  114. package/dist/components/EmptyState.vue.js.map +1 -0
  115. package/dist/components/EmptyState.vue.script.js +41 -0
  116. package/dist/components/EmptyState.vue.script.js.map +1 -0
  117. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +7 -0
  118. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js.map +1 -0
  119. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.script.js +111 -0
  120. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.script.js.map +1 -0
  121. package/dist/components/Form/Form.vue.js +7 -0
  122. package/dist/components/Form/Form.vue.js.map +1 -0
  123. package/dist/components/Form/Form.vue.script.js +82 -0
  124. package/dist/components/Form/Form.vue.script.js.map +1 -0
  125. package/dist/components/Form/LabelInput.vue.d.ts +1 -1
  126. package/dist/components/Form/LabelInput.vue.js +9 -0
  127. package/dist/components/Form/LabelInput.vue.js.map +1 -0
  128. package/dist/components/Form/LabelInput.vue.script.js +39 -0
  129. package/dist/components/Form/LabelInput.vue.script.js.map +1 -0
  130. package/dist/components/HelpfulLink.vue.js +7 -0
  131. package/dist/components/HelpfulLink.vue.js.map +1 -0
  132. package/dist/components/HelpfulLink.vue.script.js +21 -0
  133. package/dist/components/HelpfulLink.vue.script.js.map +1 -0
  134. package/dist/components/HttpMethod/HttpMethod.vue.js +9 -0
  135. package/dist/components/HttpMethod/HttpMethod.vue.js.map +1 -0
  136. package/dist/components/HttpMethod/HttpMethod.vue.script.js +76 -0
  137. package/dist/components/HttpMethod/HttpMethod.vue.script.js.map +1 -0
  138. package/dist/components/HttpMethod/index.d.ts +1 -1
  139. package/dist/components/HttpMethod/index.js +1 -1
  140. package/dist/components/IconSelector.vue.js +7 -0
  141. package/dist/components/IconSelector.vue.js.map +1 -0
  142. package/dist/components/IconSelector.vue.script.js +65 -0
  143. package/dist/components/IconSelector.vue.script.js.map +1 -0
  144. package/dist/components/ImportCollection/DropEventListener.vue.js +7 -0
  145. package/dist/components/ImportCollection/DropEventListener.vue.js.map +1 -0
  146. package/dist/components/ImportCollection/DropEventListener.vue.script.js +91 -0
  147. package/dist/components/ImportCollection/DropEventListener.vue.script.js.map +1 -0
  148. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +7 -0
  149. package/dist/components/ImportCollection/ImportCollectionListener.vue.js.map +1 -0
  150. package/dist/components/ImportCollection/ImportCollectionListener.vue.script.js +102 -0
  151. package/dist/components/ImportCollection/ImportCollectionListener.vue.script.js.map +1 -0
  152. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  153. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +8 -0
  154. package/dist/components/ImportCollection/ImportCollectionModal.vue.js.map +1 -0
  155. package/dist/components/ImportCollection/ImportCollectionModal.vue.script.js +206 -0
  156. package/dist/components/ImportCollection/ImportCollectionModal.vue.script.js.map +1 -0
  157. package/dist/components/ImportCollection/ImportNowButton.vue.js +7 -0
  158. package/dist/components/ImportCollection/ImportNowButton.vue.js.map +1 -0
  159. package/dist/components/ImportCollection/ImportNowButton.vue.script.js +82 -0
  160. package/dist/components/ImportCollection/ImportNowButton.vue.script.js.map +1 -0
  161. package/dist/components/ImportCollection/IntegrationLogo.vue.js +7 -0
  162. package/dist/components/ImportCollection/IntegrationLogo.vue.js.map +1 -0
  163. package/dist/components/ImportCollection/IntegrationLogo.vue.script.js +50 -0
  164. package/dist/components/ImportCollection/IntegrationLogo.vue.script.js.map +1 -0
  165. package/dist/components/ImportCollection/PasteEventListener.vue.js +7 -0
  166. package/dist/components/ImportCollection/PasteEventListener.vue.js.map +1 -0
  167. package/dist/components/ImportCollection/PasteEventListener.vue.script.js +31 -0
  168. package/dist/components/ImportCollection/PasteEventListener.vue.script.js.map +1 -0
  169. package/dist/components/ImportCollection/PrefetchError.vue.js +7 -0
  170. package/dist/components/ImportCollection/PrefetchError.vue.js.map +1 -0
  171. package/dist/components/ImportCollection/PrefetchError.vue.script.js +32 -0
  172. package/dist/components/ImportCollection/PrefetchError.vue.script.js.map +1 -0
  173. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +7 -0
  174. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js.map +1 -0
  175. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.script.js +21 -0
  176. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.script.js.map +1 -0
  177. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +7 -0
  178. package/dist/components/ImportCollection/WorkspaceSelector.vue.js.map +1 -0
  179. package/dist/components/ImportCollection/WorkspaceSelector.vue.script.js +114 -0
  180. package/dist/components/ImportCollection/WorkspaceSelector.vue.script.js.map +1 -0
  181. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +109 -0
  182. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js.map +1 -0
  183. package/dist/components/ImportCollection/index.d.ts +1 -1
  184. package/dist/components/ImportCollection/index.js +1 -1
  185. package/dist/components/ImportCollection/utils/get-openapi-version.js +26 -0
  186. package/dist/components/ImportCollection/utils/get-openapi-version.js.map +1 -0
  187. package/dist/components/ImportCollection/utils/import-collection.js +23 -0
  188. package/dist/components/ImportCollection/utils/import-collection.js.map +1 -0
  189. package/dist/components/ImportCollection/utils/is-document.js +12 -0
  190. package/dist/components/ImportCollection/utils/is-document.js.map +1 -0
  191. package/dist/components/ImportCollection/utils/is-url.js +14 -0
  192. package/dist/components/ImportCollection/utils/is-url.js.map +1 -0
  193. package/dist/components/ImportCollection/utils/workspace-store-is-empty.js +13 -0
  194. package/dist/components/ImportCollection/utils/workspace-store-is-empty.js.map +1 -0
  195. package/dist/components/OpenApiClientButton.vue.js +9 -0
  196. package/dist/components/OpenApiClientButton.vue.js.map +1 -0
  197. package/dist/components/OpenApiClientButton.vue.script.js +58 -0
  198. package/dist/components/OpenApiClientButton.vue.script.js.map +1 -0
  199. package/dist/components/ScalarAsciiArt.vue.js +9 -0
  200. package/dist/components/ScalarAsciiArt.vue.js.map +1 -0
  201. package/dist/components/ScalarAsciiArt.vue.script.js +42 -0
  202. package/dist/components/ScalarAsciiArt.vue.script.js.map +1 -0
  203. package/dist/components/Search/useSearch.js +110 -0
  204. package/dist/components/Search/useSearch.js.map +1 -0
  205. package/dist/components/SectionFilter.vue.js +9 -0
  206. package/dist/components/SectionFilter.vue.js.map +1 -0
  207. package/dist/components/SectionFilter.vue.script.js +69 -0
  208. package/dist/components/SectionFilter.vue.script.js.map +1 -0
  209. package/dist/components/SectionFilterButton.vue.js +7 -0
  210. package/dist/components/SectionFilterButton.vue.js.map +1 -0
  211. package/dist/components/SectionFilterButton.vue.script.js +30 -0
  212. package/dist/components/SectionFilterButton.vue.script.js.map +1 -0
  213. package/dist/components/Server/ServerDropdown.vue.js +7 -0
  214. package/dist/components/Server/ServerDropdown.vue.js.map +1 -0
  215. package/dist/components/Server/ServerDropdown.vue.script.js +133 -0
  216. package/dist/components/Server/ServerDropdown.vue.script.js.map +1 -0
  217. package/dist/components/Server/ServerDropdownItem.vue.js +9 -0
  218. package/dist/components/Server/ServerDropdownItem.vue.js.map +1 -0
  219. package/dist/components/Server/ServerDropdownItem.vue.script.js +90 -0
  220. package/dist/components/Server/ServerDropdownItem.vue.script.js.map +1 -0
  221. package/dist/components/Server/ServerSelector.vue.js +7 -0
  222. package/dist/components/Server/ServerSelector.vue.js.map +1 -0
  223. package/dist/components/Server/ServerSelector.vue.script.js +87 -0
  224. package/dist/components/Server/ServerSelector.vue.script.js.map +1 -0
  225. package/dist/components/Server/ServerVariablesForm.vue.js +7 -0
  226. package/dist/components/Server/ServerVariablesForm.vue.js.map +1 -0
  227. package/dist/components/Server/ServerVariablesForm.vue.script.js +64 -0
  228. package/dist/components/Server/ServerVariablesForm.vue.script.js.map +1 -0
  229. package/dist/components/Server/ServerVariablesSelect.vue.js +7 -0
  230. package/dist/components/Server/ServerVariablesSelect.vue.js.map +1 -0
  231. package/dist/components/Server/ServerVariablesSelect.vue.script.js +53 -0
  232. package/dist/components/Server/ServerVariablesSelect.vue.script.js.map +1 -0
  233. package/dist/components/Server/ServerVariablesTextbox.vue.js +7 -0
  234. package/dist/components/Server/ServerVariablesTextbox.vue.js.map +1 -0
  235. package/dist/components/Server/ServerVariablesTextbox.vue.script.js +34 -0
  236. package/dist/components/Server/ServerVariablesTextbox.vue.script.js.map +1 -0
  237. package/dist/components/Server/index.d.ts +3 -3
  238. package/dist/components/Server/index.js +3 -2
  239. package/dist/components/SideNav/DownloadAppButton.vue.js +9 -0
  240. package/dist/components/SideNav/DownloadAppButton.vue.js.map +1 -0
  241. package/dist/components/SideNav/DownloadAppButton.vue.script.js +31 -0
  242. package/dist/components/SideNav/DownloadAppButton.vue.script.js.map +1 -0
  243. package/dist/components/SideNav/SideHelp.vue.js +7 -0
  244. package/dist/components/SideNav/SideHelp.vue.js.map +1 -0
  245. package/dist/components/SideNav/SideHelp.vue.script.js +102 -0
  246. package/dist/components/SideNav/SideHelp.vue.script.js.map +1 -0
  247. package/dist/components/SideNav/SideNav.vue.js +7 -0
  248. package/dist/components/SideNav/SideNav.vue.js.map +1 -0
  249. package/dist/components/SideNav/SideNav.vue.script.js +80 -0
  250. package/dist/components/SideNav/SideNav.vue.script.js.map +1 -0
  251. package/dist/components/SideNav/SideNavGroup.vue.js +7 -0
  252. package/dist/components/SideNav/SideNavGroup.vue.js.map +1 -0
  253. package/dist/components/SideNav/SideNavGroup.vue.script.js +16 -0
  254. package/dist/components/SideNav/SideNavGroup.vue.script.js.map +1 -0
  255. package/dist/components/SideNav/SideNavLink.vue.js +7 -0
  256. package/dist/components/SideNav/SideNavLink.vue.js.map +1 -0
  257. package/dist/components/SideNav/SideNavLink.vue.script.js +32 -0
  258. package/dist/components/SideNav/SideNavLink.vue.script.js.map +1 -0
  259. package/dist/components/SideNav/SideNavRouterLink.vue.js +7 -0
  260. package/dist/components/SideNav/SideNavRouterLink.vue.js.map +1 -0
  261. package/dist/components/SideNav/SideNavRouterLink.vue.script.js +34 -0
  262. package/dist/components/SideNav/SideNavRouterLink.vue.script.js.map +1 -0
  263. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +7 -0
  264. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js.map +1 -0
  265. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.script.js +38 -0
  266. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.script.js.map +1 -0
  267. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +7 -0
  268. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js.map +1 -0
  269. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.script.js +56 -0
  270. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.script.js.map +1 -0
  271. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +7 -0
  272. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js.map +1 -0
  273. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.script.js +31 -0
  274. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.script.js.map +1 -0
  275. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +7 -0
  276. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js.map +1 -0
  277. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.script.js +41 -0
  278. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.script.js.map +1 -0
  279. package/dist/components/Sidebar/Sidebar.vue.js +9 -0
  280. package/dist/components/Sidebar/Sidebar.vue.js.map +1 -0
  281. package/dist/components/Sidebar/Sidebar.vue.script.js +71 -0
  282. package/dist/components/Sidebar/Sidebar.vue.script.js.map +1 -0
  283. package/dist/components/Sidebar/SidebarButton.vue.js +7 -0
  284. package/dist/components/Sidebar/SidebarButton.vue.js.map +1 -0
  285. package/dist/components/Sidebar/SidebarButton.vue.script.js +36 -0
  286. package/dist/components/Sidebar/SidebarButton.vue.script.js.map +1 -0
  287. package/dist/components/Sidebar/SidebarList.vue.js +13 -0
  288. package/dist/components/Sidebar/SidebarList.vue.js.map +1 -0
  289. package/dist/components/Sidebar/SidebarListElement.vue.js +10 -0
  290. package/dist/components/Sidebar/SidebarListElement.vue.js.map +1 -0
  291. package/dist/components/Sidebar/SidebarListElement.vue.script.js +128 -0
  292. package/dist/components/Sidebar/SidebarListElement.vue.script.js.map +1 -0
  293. package/dist/components/Sidebar/SidebarListElementActions.vue.js +7 -0
  294. package/dist/components/Sidebar/SidebarListElementActions.vue.js.map +1 -0
  295. package/dist/components/Sidebar/SidebarListElementActions.vue.script.js +97 -0
  296. package/dist/components/Sidebar/SidebarListElementActions.vue.script.js.map +1 -0
  297. package/dist/components/Sidebar/SidebarToggle.vue.js +7 -0
  298. package/dist/components/Sidebar/SidebarToggle.vue.js.map +1 -0
  299. package/dist/components/Sidebar/SidebarToggle.vue.script.js +47 -0
  300. package/dist/components/Sidebar/SidebarToggle.vue.script.js.map +1 -0
  301. package/dist/components/Sidebar/index.d.ts +1 -1
  302. package/dist/components/Sidebar/index.js +1 -1
  303. package/dist/components/TopNav/TopNav.vue.js +7 -0
  304. package/dist/components/TopNav/TopNav.vue.js.map +1 -0
  305. package/dist/components/TopNav/TopNav.vue.script.js +232 -0
  306. package/dist/components/TopNav/TopNav.vue.script.js.map +1 -0
  307. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  308. package/dist/components/TopNav/TopNavItem.vue.js +9 -0
  309. package/dist/components/TopNav/TopNavItem.vue.js.map +1 -0
  310. package/dist/components/TopNav/TopNavItem.vue.script.js +129 -0
  311. package/dist/components/TopNav/TopNavItem.vue.script.js.map +1 -0
  312. package/dist/components/ViewLayout/ViewLayout.vue.js +7 -0
  313. package/dist/components/ViewLayout/ViewLayout.vue.js.map +1 -0
  314. package/dist/components/ViewLayout/ViewLayout.vue.script.js +16 -0
  315. package/dist/components/ViewLayout/ViewLayout.vue.script.js.map +1 -0
  316. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +7 -0
  317. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js.map +1 -0
  318. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.script.js +84 -0
  319. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.script.js.map +1 -0
  320. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +13 -0
  321. package/dist/components/ViewLayout/ViewLayoutContent.vue.js.map +1 -0
  322. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +7 -0
  323. package/dist/components/ViewLayout/ViewLayoutSection.vue.js.map +1 -0
  324. package/dist/components/ViewLayout/ViewLayoutSection.vue.script.js +21 -0
  325. package/dist/components/ViewLayout/ViewLayoutSection.vue.script.js.map +1 -0
  326. package/dist/components/ViewLayout/index.d.ts +1 -1
  327. package/dist/components/ViewLayout/index.js +1 -1
  328. package/dist/components/index.d.ts +1 -1
  329. package/dist/components/index.js +3 -6
  330. package/dist/constants.js +27 -0
  331. package/dist/constants.js.map +1 -0
  332. package/dist/data/httpHeaders.js +539 -0
  333. package/dist/data/httpHeaders.js.map +1 -0
  334. package/dist/hooks/index.d.ts +4 -4
  335. package/dist/hooks/index.js +4 -2
  336. package/dist/hooks/useClientConfig.js +10 -0
  337. package/dist/hooks/useClientConfig.js.map +1 -0
  338. package/dist/hooks/useFileDialog.js +33 -0
  339. package/dist/hooks/useFileDialog.js.map +1 -0
  340. package/dist/hooks/useLayout.js +13 -0
  341. package/dist/hooks/useLayout.js.map +1 -0
  342. package/dist/hooks/useResponseBody.js +32 -0
  343. package/dist/hooks/useResponseBody.js.map +1 -0
  344. package/dist/hooks/useSidebar.d.ts +1 -1
  345. package/dist/hooks/useSidebar.js +36 -0
  346. package/dist/hooks/useSidebar.js.map +1 -0
  347. package/dist/index.d.ts +1 -1
  348. package/dist/index.js +5 -7
  349. package/dist/layouts/App/ApiClientApp.vue.js +8 -0
  350. package/dist/layouts/App/ApiClientApp.vue.js.map +1 -0
  351. package/dist/layouts/App/ApiClientApp.vue.script.js +80 -0
  352. package/dist/layouts/App/ApiClientApp.vue.script.js.map +1 -0
  353. package/dist/layouts/App/MainLayout.vue.js +7 -0
  354. package/dist/layouts/App/MainLayout.vue.js.map +1 -0
  355. package/dist/layouts/App/MainLayout.vue.script.js +22 -0
  356. package/dist/layouts/App/MainLayout.vue.script.js.map +1 -0
  357. package/dist/layouts/App/create-api-client-app.d.ts +1 -1
  358. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  359. package/dist/layouts/App/create-api-client-app.js +36 -0
  360. package/dist/layouts/App/create-api-client-app.js.map +1 -0
  361. package/dist/layouts/App/hotkeys.js +74 -0
  362. package/dist/layouts/App/hotkeys.js.map +1 -0
  363. package/dist/layouts/App/index.d.ts +2 -2
  364. package/dist/layouts/App/index.js +2 -4
  365. package/dist/layouts/Modal/ApiClientModal.vue.js +7 -0
  366. package/dist/layouts/Modal/ApiClientModal.vue.js.map +1 -0
  367. package/dist/layouts/Modal/ApiClientModal.vue.script.js +41 -0
  368. package/dist/layouts/Modal/ApiClientModal.vue.script.js.map +1 -0
  369. package/dist/layouts/Modal/create-api-client-modal.js +34 -0
  370. package/dist/layouts/Modal/create-api-client-modal.js.map +1 -0
  371. package/dist/layouts/Modal/index.d.ts +1 -1
  372. package/dist/layouts/Modal/index.js +1 -2
  373. package/dist/layouts/Web/ApiClientWeb.vue.js +8 -0
  374. package/dist/layouts/Web/ApiClientWeb.vue.js.map +1 -0
  375. package/dist/layouts/Web/ApiClientWeb.vue.script.js +68 -0
  376. package/dist/layouts/Web/ApiClientWeb.vue.script.js.map +1 -0
  377. package/dist/layouts/Web/create-api-client-web.d.ts +1 -1
  378. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  379. package/dist/layouts/Web/create-api-client-web.js +33 -0
  380. package/dist/layouts/Web/create-api-client-web.js.map +1 -0
  381. package/dist/layouts/Web/index.d.ts +2 -2
  382. package/dist/layouts/Web/index.js +2 -101
  383. package/dist/libs/create-client.d.ts +9 -9
  384. package/dist/libs/create-client.js +178 -0
  385. package/dist/libs/create-client.js.map +1 -0
  386. package/dist/libs/electron.js +9 -0
  387. package/dist/libs/electron.js.map +1 -0
  388. package/dist/libs/env-helpers.js +9 -0
  389. package/dist/libs/env-helpers.js.map +1 -0
  390. package/dist/libs/environment-parser.d.ts +1 -1
  391. package/dist/libs/environment-parser.js +19 -0
  392. package/dist/libs/environment-parser.js.map +1 -0
  393. package/dist/libs/errors.js +34 -0
  394. package/dist/libs/errors.js.map +1 -0
  395. package/dist/libs/event-bus.js +43 -0
  396. package/dist/libs/event-bus.js.map +1 -0
  397. package/dist/libs/extractAttachmentFilename.js +23 -0
  398. package/dist/libs/extractAttachmentFilename.js.map +1 -0
  399. package/dist/libs/find-request.js +40 -0
  400. package/dist/libs/find-request.js.map +1 -0
  401. package/dist/libs/formatters.js +36 -0
  402. package/dist/libs/formatters.js.map +1 -0
  403. package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
  404. package/dist/libs/get-request-uid-by-path-method.js +19 -0
  405. package/dist/libs/get-request-uid-by-path-method.js.map +1 -0
  406. package/dist/libs/getOpenApiDocumentDetails.js +45 -0
  407. package/dist/libs/getOpenApiDocumentDetails.js.map +1 -0
  408. package/dist/libs/hot-keys.js +92 -0
  409. package/dist/libs/hot-keys.js.map +1 -0
  410. package/dist/libs/importers/curl.js +54 -0
  411. package/dist/libs/importers/curl.js.map +1 -0
  412. package/dist/libs/importers/index.d.ts +1 -1
  413. package/dist/libs/importers/index.js +1 -1
  414. package/dist/libs/index.d.ts +14 -14
  415. package/dist/libs/index.js +17 -5
  416. package/dist/libs/isUrl.js +12 -0
  417. package/dist/libs/isUrl.js.map +1 -0
  418. package/dist/libs/local-storage.js +40 -0
  419. package/dist/libs/local-storage.js.map +1 -0
  420. package/dist/libs/normalize-headers.js +55 -0
  421. package/dist/libs/normalize-headers.js.map +1 -0
  422. package/dist/libs/parse-curl.js +106 -0
  423. package/dist/libs/parse-curl.js.map +1 -0
  424. package/dist/libs/postman.js +40 -0
  425. package/dist/libs/postman.js.map +1 -0
  426. package/dist/libs/send-request/build-request-security.js +41 -0
  427. package/dist/libs/send-request/build-request-security.js.map +1 -0
  428. package/dist/libs/send-request/create-fetch-body.js +44 -0
  429. package/dist/libs/send-request/create-fetch-body.js.map +1 -0
  430. package/dist/libs/send-request/create-fetch-headers.js +15 -0
  431. package/dist/libs/send-request/create-fetch-headers.js.map +1 -0
  432. package/dist/libs/send-request/create-fetch-query-params.js +43 -0
  433. package/dist/libs/send-request/create-fetch-query-params.js.map +1 -0
  434. package/dist/libs/send-request/create-request-operation.d.ts +2 -2
  435. package/dist/libs/send-request/create-request-operation.js +172 -0
  436. package/dist/libs/send-request/create-request-operation.js.map +1 -0
  437. package/dist/libs/send-request/decode-buffer.js +13 -0
  438. package/dist/libs/send-request/decode-buffer.js.map +1 -0
  439. package/dist/libs/send-request/index.d.ts +3 -3
  440. package/dist/libs/send-request/index.js +3 -2
  441. package/dist/libs/send-request/set-request-cookies.js +82 -0
  442. package/dist/libs/send-request/set-request-cookies.js.map +1 -0
  443. package/dist/libs/string-template.js +64 -0
  444. package/dist/libs/string-template.js.map +1 -0
  445. package/dist/libs/validate-parameters.js +35 -0
  446. package/dist/libs/validate-parameters.js.map +1 -0
  447. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  448. package/dist/plugins/hooks/usePluginManager.js +16 -0
  449. package/dist/plugins/hooks/usePluginManager.js.map +1 -0
  450. package/dist/plugins/index.d.ts +2 -2
  451. package/dist/plugins/index.js +2 -1
  452. package/dist/plugins/plugin-manager.js +38 -0
  453. package/dist/plugins/plugin-manager.js.map +1 -0
  454. package/dist/routes.js +225 -0
  455. package/dist/routes.js.map +1 -0
  456. package/dist/store/active-entities.js +139 -0
  457. package/dist/store/active-entities.js.map +1 -0
  458. package/dist/store/collections.js +76 -0
  459. package/dist/store/collections.js.map +1 -0
  460. package/dist/store/cookies.js +16 -0
  461. package/dist/store/cookies.js.map +1 -0
  462. package/dist/store/environment.js +38 -0
  463. package/dist/store/environment.js.map +1 -0
  464. package/dist/store/events.d.ts +7 -7
  465. package/dist/store/events.js +17 -0
  466. package/dist/store/events.js.map +1 -0
  467. package/dist/store/import-spec.js +56 -0
  468. package/dist/store/import-spec.js.map +1 -0
  469. package/dist/store/index.d.ts +2 -2
  470. package/dist/store/index.js +2 -1
  471. package/dist/store/request-example.js +43 -0
  472. package/dist/store/request-example.js.map +1 -0
  473. package/dist/store/requests.d.ts +1 -1
  474. package/dist/store/requests.js +104 -0
  475. package/dist/store/requests.js.map +1 -0
  476. package/dist/store/router-params.js +27 -0
  477. package/dist/store/router-params.js.map +1 -0
  478. package/dist/store/security-schemes.js +45 -0
  479. package/dist/store/security-schemes.js.map +1 -0
  480. package/dist/store/servers.js +41 -0
  481. package/dist/store/servers.js.map +1 -0
  482. package/dist/store/store.d.ts +1 -1
  483. package/dist/store/store.js +180 -0
  484. package/dist/store/store.js.map +1 -0
  485. package/dist/store/tags.js +54 -0
  486. package/dist/store/tags.js.map +1 -0
  487. package/dist/store/workspace.js +57 -0
  488. package/dist/store/workspace.js.map +1 -0
  489. package/dist/style.css +2793 -2639
  490. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +2 -2
  491. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +7 -0
  492. package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -0
  493. package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js +302 -0
  494. package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -0
  495. package/dist/v2/blocks/operation-block/components/Header.vue.js +9 -0
  496. package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -0
  497. package/dist/v2/blocks/operation-block/components/Header.vue.script.js +126 -0
  498. package/dist/v2/blocks/operation-block/components/Header.vue.script.js.map +1 -0
  499. package/dist/v2/blocks/operation-block/helpers/apply-allow-reserved-to-url.js +58 -0
  500. package/dist/v2/blocks/operation-block/helpers/apply-allow-reserved-to-url.js.map +1 -0
  501. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +65 -0
  502. package/dist/v2/blocks/operation-block/helpers/build-request-body.js.map +1 -0
  503. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +55 -0
  504. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js.map +1 -0
  505. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +159 -0
  506. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js.map +1 -0
  507. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +1 -1
  508. package/dist/v2/blocks/operation-block/helpers/build-request-security.js +53 -0
  509. package/dist/v2/blocks/operation-block/helpers/build-request-security.js.map +1 -0
  510. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +1 -1
  511. package/dist/v2/blocks/operation-block/helpers/build-request.js +102 -0
  512. package/dist/v2/blocks/operation-block/helpers/build-request.js.map +1 -0
  513. package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.js +41 -0
  514. package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.js.map +1 -0
  515. package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +17 -0
  516. package/dist/v2/blocks/operation-block/helpers/decode-buffer.js.map +1 -0
  517. package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js +20 -0
  518. package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js.map +1 -0
  519. package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +22 -0
  520. package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js.map +1 -0
  521. package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js +17 -0
  522. package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js.map +1 -0
  523. package/dist/v2/blocks/operation-block/helpers/get-example.js +41 -0
  524. package/dist/v2/blocks/operation-block/helpers/get-example.js.map +1 -0
  525. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js +32 -0
  526. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js.map +1 -0
  527. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +15 -0
  528. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js.map +1 -0
  529. package/dist/v2/blocks/operation-block/helpers/get-server-url.js +18 -0
  530. package/dist/v2/blocks/operation-block/helpers/get-server-url.js.map +1 -0
  531. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js +80 -0
  532. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js.map +1 -0
  533. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts +1 -1
  534. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js +109 -0
  535. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js.map +1 -0
  536. package/dist/v2/blocks/operation-block/helpers/response-cache.js +34 -0
  537. package/dist/v2/blocks/operation-block/helpers/response-cache.js.map +1 -0
  538. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
  539. package/dist/v2/blocks/operation-block/helpers/send-request.js +149 -0
  540. package/dist/v2/blocks/operation-block/helpers/send-request.js.map +1 -0
  541. package/dist/v2/blocks/operation-block/helpers/serialize-parameter.js +160 -0
  542. package/dist/v2/blocks/operation-block/helpers/serialize-parameter.js.map +1 -0
  543. package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.js +34 -0
  544. package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.js.map +1 -0
  545. package/dist/v2/blocks/operation-block/index.d.ts +4 -4
  546. package/dist/v2/blocks/operation-block/index.js +4 -19
  547. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +7 -0
  548. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js.map +1 -0
  549. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.script.js +52 -0
  550. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.script.js.map +1 -0
  551. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +7 -0
  552. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js.map +1 -0
  553. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.script.js +33 -0
  554. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.script.js.map +1 -0
  555. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  556. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +9 -0
  557. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js.map +1 -0
  558. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.script.js +246 -0
  559. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.script.js.map +1 -0
  560. package/dist/v2/blocks/operation-code-sample/helpers/filter-clients-by-query.d.ts +9 -0
  561. package/dist/v2/blocks/operation-code-sample/helpers/filter-clients-by-query.d.ts.map +1 -0
  562. package/dist/v2/blocks/operation-code-sample/helpers/filter-clients-by-query.js +37 -0
  563. package/dist/v2/blocks/operation-code-sample/helpers/filter-clients-by-query.js.map +1 -0
  564. package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +55 -0
  565. package/dist/v2/blocks/operation-code-sample/helpers/find-client.js.map +1 -0
  566. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts.map +1 -1
  567. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +40 -0
  568. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js.map +1 -0
  569. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +1 -1
  570. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +36 -0
  571. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js.map +1 -0
  572. package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts.map +1 -1
  573. package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js +31 -0
  574. package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js.map +1 -0
  575. package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js +18 -0
  576. package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js.map +1 -0
  577. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +411 -0
  578. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js.map +1 -0
  579. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +41 -0
  580. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js.map +1 -0
  581. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.js +18 -0
  582. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.js.map +1 -0
  583. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +106 -0
  584. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js.map +1 -0
  585. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +1 -1
  586. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +112 -0
  587. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js.map +1 -0
  588. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +216 -0
  589. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js.map +1 -0
  590. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.js +65 -0
  591. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.js.map +1 -0
  592. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +19 -0
  593. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js.map +1 -0
  594. package/dist/v2/blocks/operation-code-sample/index.d.ts +7 -6
  595. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  596. package/dist/v2/blocks/operation-code-sample/index.js +8 -2
  597. package/dist/v2/blocks/operation-code-sample/types.d.ts +7 -6
  598. package/dist/v2/blocks/operation-code-sample/types.d.ts.map +1 -1
  599. package/dist/v2/blocks/request-block/RequestBlock.vue.js +9 -0
  600. package/dist/v2/blocks/request-block/RequestBlock.vue.js.map +1 -0
  601. package/dist/v2/blocks/request-block/RequestBlock.vue.script.js +412 -0
  602. package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -0
  603. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +9 -0
  604. package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -0
  605. package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js +188 -0
  606. package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js.map +1 -0
  607. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +7 -0
  608. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js.map +1 -0
  609. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.script.js +98 -0
  610. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.script.js.map +1 -0
  611. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +1 -1
  612. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +7 -0
  613. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js.map +1 -0
  614. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.script.js +128 -0
  615. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.script.js.map +1 -0
  616. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +1 -1
  617. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +7 -0
  618. package/dist/v2/blocks/request-block/components/RequestParams.vue.js.map +1 -0
  619. package/dist/v2/blocks/request-block/components/RequestParams.vue.script.js +97 -0
  620. package/dist/v2/blocks/request-block/components/RequestParams.vue.script.js.map +1 -0
  621. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +1 -1
  622. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +9 -0
  623. package/dist/v2/blocks/request-block/components/RequestTable.vue.js.map +1 -0
  624. package/dist/v2/blocks/request-block/components/RequestTable.vue.script.js +113 -0
  625. package/dist/v2/blocks/request-block/components/RequestTable.vue.script.js.map +1 -0
  626. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +7 -0
  627. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js.map +1 -0
  628. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js +226 -0
  629. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.script.js.map +1 -0
  630. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +9 -0
  631. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js.map +1 -0
  632. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.script.js +68 -0
  633. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.script.js.map +1 -0
  634. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
  635. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +47 -0
  636. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js.map +1 -0
  637. package/dist/v2/blocks/request-block/helpers/files.js +11 -0
  638. package/dist/v2/blocks/request-block/helpers/files.js.map +1 -0
  639. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +61 -0
  640. package/dist/v2/blocks/request-block/helpers/get-default-headers.js.map +1 -0
  641. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +1 -1
  642. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +46 -0
  643. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js.map +1 -0
  644. package/dist/v2/blocks/request-block/helpers/get-parameter-content.js +17 -0
  645. package/dist/v2/blocks/request-block/helpers/get-parameter-content.js.map +1 -0
  646. package/dist/v2/blocks/request-block/helpers/get-parameter-schema.js +14 -0
  647. package/dist/v2/blocks/request-block/helpers/get-parameter-schema.js.map +1 -0
  648. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +21 -0
  649. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js.map +1 -0
  650. package/dist/v2/blocks/request-block/helpers/group-by.js +15 -0
  651. package/dist/v2/blocks/request-block/helpers/group-by.js.map +1 -0
  652. package/dist/v2/blocks/request-block/helpers/is-param-disabled.js +20 -0
  653. package/dist/v2/blocks/request-block/helpers/is-param-disabled.js.map +1 -0
  654. package/dist/v2/blocks/request-block/helpers/validate-parameter.js +49 -0
  655. package/dist/v2/blocks/request-block/helpers/validate-parameter.js.map +1 -0
  656. package/dist/v2/blocks/request-block/index.d.ts +1 -1
  657. package/dist/v2/blocks/request-block/index.js +1 -8
  658. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +9 -0
  659. package/dist/v2/blocks/response-block/ResponseBlock.vue.js.map +1 -0
  660. package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js +204 -0
  661. package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js.map +1 -0
  662. package/dist/v2/blocks/response-block/components/Headers.vue.js +7 -0
  663. package/dist/v2/blocks/response-block/components/Headers.vue.js.map +1 -0
  664. package/dist/v2/blocks/response-block/components/Headers.vue.script.js +77 -0
  665. package/dist/v2/blocks/response-block/components/Headers.vue.script.js.map +1 -0
  666. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +9 -0
  667. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js.map +1 -0
  668. package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js +90 -0
  669. package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js.map +1 -0
  670. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +7 -0
  671. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js.map +1 -0
  672. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.script.js +35 -0
  673. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.script.js.map +1 -0
  674. package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.js +14 -0
  675. package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.js.map +1 -0
  676. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +9 -0
  677. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js.map +1 -0
  678. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js +64 -0
  679. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js.map +1 -0
  680. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +9 -0
  681. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js.map +1 -0
  682. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js +49 -0
  683. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js.map +1 -0
  684. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +7 -0
  685. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js.map +1 -0
  686. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.script.js +111 -0
  687. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.script.js.map +1 -0
  688. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +7 -0
  689. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js.map +1 -0
  690. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.script.js +25 -0
  691. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.script.js.map +1 -0
  692. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js +8 -0
  693. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js.map +1 -0
  694. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.script.js +50 -0
  695. package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.script.js.map +1 -0
  696. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +7 -0
  697. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js.map +1 -0
  698. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.script.js +42 -0
  699. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.script.js.map +1 -0
  700. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +9 -0
  701. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -0
  702. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js +69 -0
  703. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js.map +1 -0
  704. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +9 -0
  705. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js.map +1 -0
  706. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.script.js +52 -0
  707. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.script.js.map +1 -0
  708. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +7 -0
  709. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js.map +1 -0
  710. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.script.js +68 -0
  711. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.script.js.map +1 -0
  712. package/dist/v2/blocks/response-block/helpers/extract-filename.js +26 -0
  713. package/dist/v2/blocks/response-block/helpers/extract-filename.js.map +1 -0
  714. package/dist/v2/blocks/response-block/helpers/get-content-length.js +12 -0
  715. package/dist/v2/blocks/response-block/helpers/get-content-length.js.map +1 -0
  716. package/dist/v2/blocks/response-block/helpers/media-types.js +227 -0
  717. package/dist/v2/blocks/response-block/helpers/media-types.js.map +1 -0
  718. package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +30 -0
  719. package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js.map +1 -0
  720. package/dist/v2/blocks/response-block/helpers/process-response-body.js +26 -0
  721. package/dist/v2/blocks/response-block/helpers/process-response-body.js.map +1 -0
  722. package/dist/v2/blocks/response-block/index.d.ts +1 -1
  723. package/dist/v2/blocks/response-block/index.js +1 -5
  724. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +1 -1
  725. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +9 -0
  726. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js.map +1 -0
  727. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js +248 -0
  728. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js.map +1 -0
  729. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +9 -0
  730. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js.map +1 -0
  731. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js +84 -0
  732. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js.map +1 -0
  733. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +7 -0
  734. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js.map +1 -0
  735. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.script.js +141 -0
  736. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.script.js.map +1 -0
  737. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +20 -0
  738. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js.map +1 -0
  739. package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +84 -0
  740. package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js.map +1 -0
  741. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +2 -2
  742. package/dist/v2/blocks/scalar-address-bar-block/index.js +1 -4
  743. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -3
  744. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -0
  745. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js.map +1 -0
  746. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js +227 -0
  747. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js.map +1 -0
  748. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -0
  749. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js.map +1 -0
  750. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.script.js +48 -0
  751. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.script.js.map +1 -0
  752. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +7 -0
  753. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js.map +1 -0
  754. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +285 -0
  755. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -0
  756. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +9 -0
  757. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -0
  758. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js +71 -0
  759. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js.map +1 -0
  760. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +8 -0
  761. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -0
  762. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js +141 -0
  763. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js.map +1 -0
  764. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +7 -0
  765. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js.map +1 -0
  766. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js +89 -0
  767. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js.map +1 -0
  768. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +1 -1
  769. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +7 -0
  770. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js.map +1 -0
  771. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js +95 -0
  772. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js.map +1 -0
  773. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +7 -0
  774. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js.map +1 -0
  775. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.script.js +69 -0
  776. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.script.js.map +1 -0
  777. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +7 -0
  778. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js.map +1 -0
  779. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +296 -0
  780. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -0
  781. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +92 -0
  782. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js.map +1 -0
  783. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +141 -0
  784. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js.map +1 -0
  785. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +1 -1
  786. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +45 -0
  787. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js.map +1 -0
  788. package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js +10 -0
  789. package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js.map +1 -0
  790. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +27 -0
  791. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js.map +1 -0
  792. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
  793. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +183 -0
  794. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -0
  795. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +1 -1
  796. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +39 -0
  797. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js.map +1 -0
  798. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +109 -0
  799. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js.map +1 -0
  800. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +4 -4
  801. package/dist/v2/blocks/scalar-auth-selector-block/index.js +3 -5
  802. package/dist/v2/components/callout/Callout.vue.js +9 -0
  803. package/dist/v2/components/callout/Callout.vue.js.map +1 -0
  804. package/dist/v2/components/callout/Callout.vue.script.js +35 -0
  805. package/dist/v2/components/callout/Callout.vue.script.js.map +1 -0
  806. package/dist/v2/components/code-input/CodeInput.vue.js +10 -0
  807. package/dist/v2/components/code-input/CodeInput.vue.js.map +1 -0
  808. package/dist/v2/components/code-input/CodeInput.vue.script.js +380 -0
  809. package/dist/v2/components/code-input/CodeInput.vue.script.js.map +1 -0
  810. package/dist/v2/components/code-input/code-variable-widget.js +132 -0
  811. package/dist/v2/components/code-input/code-variable-widget.js.map +1 -0
  812. package/dist/v2/components/code-input/index.d.ts +1 -1
  813. package/dist/v2/components/code-input/index.js +1 -1
  814. package/dist/v2/components/context-menu/ContextMenu.vue.d.ts +27 -0
  815. package/dist/v2/components/context-menu/ContextMenu.vue.d.ts.map +1 -0
  816. package/dist/v2/components/context-menu/ContextMenu.vue.js +8 -0
  817. package/dist/v2/components/context-menu/ContextMenu.vue.js.map +1 -0
  818. package/dist/v2/components/context-menu/ContextMenu.vue.script.js +53 -0
  819. package/dist/v2/components/context-menu/ContextMenu.vue.script.js.map +1 -0
  820. package/dist/v2/components/context-menu/index.d.ts +2 -0
  821. package/dist/v2/components/context-menu/index.d.ts.map +1 -0
  822. package/dist/v2/components/context-menu/index.js +2 -0
  823. package/dist/v2/components/data-table/DataTable.vue.js +7 -0
  824. package/dist/v2/components/data-table/DataTable.vue.js.map +1 -0
  825. package/dist/v2/components/data-table/DataTable.vue.script.js +30 -0
  826. package/dist/v2/components/data-table/DataTable.vue.script.js.map +1 -0
  827. package/dist/v2/components/data-table/DataTableCell.vue.js +7 -0
  828. package/dist/v2/components/data-table/DataTableCell.vue.js.map +1 -0
  829. package/dist/v2/components/data-table/DataTableCell.vue.script.js +21 -0
  830. package/dist/v2/components/data-table/DataTableCell.vue.script.js.map +1 -0
  831. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +7 -0
  832. package/dist/v2/components/data-table/DataTableCheckbox.vue.js.map +1 -0
  833. package/dist/v2/components/data-table/DataTableCheckbox.vue.script.js +43 -0
  834. package/dist/v2/components/data-table/DataTableCheckbox.vue.script.js.map +1 -0
  835. package/dist/v2/components/data-table/DataTableHeader.vue.js +7 -0
  836. package/dist/v2/components/data-table/DataTableHeader.vue.js.map +1 -0
  837. package/dist/v2/components/data-table/DataTableHeader.vue.script.js +20 -0
  838. package/dist/v2/components/data-table/DataTableHeader.vue.script.js.map +1 -0
  839. package/dist/v2/components/data-table/DataTableInput.vue.js +9 -0
  840. package/dist/v2/components/data-table/DataTableInput.vue.js.map +1 -0
  841. package/dist/v2/components/data-table/DataTableInput.vue.script.js +160 -0
  842. package/dist/v2/components/data-table/DataTableInput.vue.script.js.map +1 -0
  843. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +1 -1
  844. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +7 -0
  845. package/dist/v2/components/data-table/DataTableInputSelect.vue.js.map +1 -0
  846. package/dist/v2/components/data-table/DataTableInputSelect.vue.script.js +161 -0
  847. package/dist/v2/components/data-table/DataTableInputSelect.vue.script.js.map +1 -0
  848. package/dist/v2/components/data-table/DataTableRow.vue.js +13 -0
  849. package/dist/v2/components/data-table/DataTableRow.vue.js.map +1 -0
  850. package/dist/v2/components/data-table/DataTableText.vue.js +7 -0
  851. package/dist/v2/components/data-table/DataTableText.vue.js.map +1 -0
  852. package/dist/v2/components/data-table/DataTableText.vue.script.js +20 -0
  853. package/dist/v2/components/data-table/DataTableText.vue.script.js.map +1 -0
  854. package/dist/v2/components/data-table/index.d.ts +8 -8
  855. package/dist/v2/components/data-table/index.js +8 -2
  856. package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
  857. package/dist/v2/components/forms/ConfirmationForm.vue.js.map +1 -0
  858. package/dist/v2/components/forms/ConfirmationForm.vue.script.js +40 -0
  859. package/dist/v2/components/forms/ConfirmationForm.vue.script.js.map +1 -0
  860. package/dist/v2/components/forms/index.d.ts +1 -1
  861. package/dist/v2/components/forms/index.js +1 -1
  862. package/dist/v2/components/layout/CollapsibleSection.vue.js +7 -0
  863. package/dist/v2/components/layout/CollapsibleSection.vue.js.map +1 -0
  864. package/dist/v2/components/layout/CollapsibleSection.vue.script.js +79 -0
  865. package/dist/v2/components/layout/CollapsibleSection.vue.script.js.map +1 -0
  866. package/dist/v2/components/layout/ValueEmitter.vue.js +7 -0
  867. package/dist/v2/components/layout/ValueEmitter.vue.js.map +1 -0
  868. package/dist/v2/components/layout/ValueEmitter.vue.script.js +18 -0
  869. package/dist/v2/components/layout/ValueEmitter.vue.script.js.map +1 -0
  870. package/dist/v2/components/layout/index.d.ts +1 -1
  871. package/dist/v2/components/layout/index.js +1 -1
  872. package/dist/v2/components/modals/DeleteModal.vue.js +7 -0
  873. package/dist/v2/components/modals/DeleteModal.vue.js.map +1 -0
  874. package/dist/v2/components/modals/DeleteModal.vue.script.js +36 -0
  875. package/dist/v2/components/modals/DeleteModal.vue.script.js.map +1 -0
  876. package/dist/v2/components/modals/ModalClientContainer.vue.js +9 -0
  877. package/dist/v2/components/modals/ModalClientContainer.vue.js.map +1 -0
  878. package/dist/v2/components/modals/ModalClientContainer.vue.script.js +62 -0
  879. package/dist/v2/components/modals/ModalClientContainer.vue.script.js.map +1 -0
  880. package/dist/v2/components/modals/index.d.ts +1 -1
  881. package/dist/v2/components/modals/index.js +1 -37
  882. package/dist/v2/components/resize/Resize.vue.js +10 -0
  883. package/dist/v2/components/resize/Resize.vue.js.map +1 -0
  884. package/dist/v2/components/resize/Resize.vue.script.js +52 -0
  885. package/dist/v2/components/resize/Resize.vue.script.js.map +1 -0
  886. package/dist/v2/components/resize/index.d.ts +2 -2
  887. package/dist/v2/components/resize/index.js +2 -1
  888. package/dist/v2/components/resize/use-split-resize.js +62 -0
  889. package/dist/v2/components/resize/use-split-resize.js.map +1 -0
  890. package/dist/v2/components/server/ServerDropdown.vue.js +7 -0
  891. package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -0
  892. package/dist/v2/components/server/ServerDropdown.vue.script.js +95 -0
  893. package/dist/v2/components/server/ServerDropdown.vue.script.js.map +1 -0
  894. package/dist/v2/components/server/ServerDropdownItem.vue.js +9 -0
  895. package/dist/v2/components/server/ServerDropdownItem.vue.js.map +1 -0
  896. package/dist/v2/components/server/ServerDropdownItem.vue.script.js +46 -0
  897. package/dist/v2/components/server/ServerDropdownItem.vue.script.js.map +1 -0
  898. package/dist/v2/components/server/index.d.ts +1 -1
  899. package/dist/v2/components/server/index.js +1 -1
  900. package/dist/v2/components/sidebar/Sidebar.vue.js +7 -0
  901. package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -0
  902. package/dist/v2/components/sidebar/Sidebar.vue.script.js +117 -0
  903. package/dist/v2/components/sidebar/Sidebar.vue.script.js.map +1 -0
  904. package/dist/v2/components/sidebar/SidebarMenu.vue.js +7 -0
  905. package/dist/v2/components/sidebar/SidebarMenu.vue.js.map +1 -0
  906. package/dist/v2/components/sidebar/SidebarMenu.vue.script.js +52 -0
  907. package/dist/v2/components/sidebar/SidebarMenu.vue.script.js.map +1 -0
  908. package/dist/v2/components/sidebar/SidebarToggle.vue.js +7 -0
  909. package/dist/v2/components/sidebar/SidebarToggle.vue.js.map +1 -0
  910. package/dist/v2/components/sidebar/SidebarToggle.vue.script.js +54 -0
  911. package/dist/v2/components/sidebar/SidebarToggle.vue.script.js.map +1 -0
  912. package/dist/v2/components/sidebar/index.d.ts +3 -3
  913. package/dist/v2/components/sidebar/index.js +3 -2
  914. package/dist/v2/constants.js +7 -0
  915. package/dist/v2/constants.js.map +1 -0
  916. package/dist/v2/features/app/App.vue.d.ts +2 -2
  917. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  918. package/dist/v2/features/app/App.vue.js +8 -0
  919. package/dist/v2/features/app/App.vue.js.map +1 -0
  920. package/dist/v2/features/app/App.vue.script.js +177 -0
  921. package/dist/v2/features/app/App.vue.script.js.map +1 -0
  922. package/dist/v2/features/app/app-events.js +242 -0
  923. package/dist/v2/features/app/app-events.js.map +1 -0
  924. package/dist/v2/features/app/app-state.d.ts +3 -1
  925. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  926. package/dist/v2/features/app/app-state.js +629 -0
  927. package/dist/v2/features/app/app-state.js.map +1 -0
  928. package/dist/v2/features/app/components/AppSidebar.vue.js +9 -0
  929. package/dist/v2/features/app/components/AppSidebar.vue.js.map +1 -0
  930. package/dist/v2/features/app/components/AppSidebar.vue.script.js +318 -0
  931. package/dist/v2/features/app/components/AppSidebar.vue.script.js.map +1 -0
  932. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +7 -0
  933. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js.map +1 -0
  934. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js +58 -0
  935. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js.map +1 -0
  936. package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -1
  937. package/dist/v2/features/app/components/DesktopTab.vue.js +9 -0
  938. package/dist/v2/features/app/components/DesktopTab.vue.js.map +1 -0
  939. package/dist/v2/features/app/components/DesktopTab.vue.script.js +121 -0
  940. package/dist/v2/features/app/components/DesktopTab.vue.script.js.map +1 -0
  941. package/dist/v2/features/app/components/DesktopTabs.vue.js +7 -0
  942. package/dist/v2/features/app/components/DesktopTabs.vue.js.map +1 -0
  943. package/dist/v2/features/app/components/DesktopTabs.vue.script.js +75 -0
  944. package/dist/v2/features/app/components/DesktopTabs.vue.script.js.map +1 -0
  945. package/dist/v2/features/app/components/DownloadAppButton.vue.js +9 -0
  946. package/dist/v2/features/app/components/DownloadAppButton.vue.js.map +1 -0
  947. package/dist/v2/features/app/components/DownloadAppButton.vue.script.js +21 -0
  948. package/dist/v2/features/app/components/DownloadAppButton.vue.script.js.map +1 -0
  949. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +7 -0
  950. package/dist/v2/features/app/components/SidebarItemMenu.vue.js.map +1 -0
  951. package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js +175 -0
  952. package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js.map +1 -0
  953. package/dist/v2/features/app/components/SplashScreen.vue.js +9 -0
  954. package/dist/v2/features/app/components/SplashScreen.vue.js.map +1 -0
  955. package/dist/v2/features/app/components/SplashScreen.vue.script.js +20 -0
  956. package/dist/v2/features/app/components/SplashScreen.vue.script.js.map +1 -0
  957. package/dist/v2/features/app/components/index.d.ts +1 -1
  958. package/dist/v2/features/app/components/index.js +1 -9
  959. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +6 -2
  960. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  961. package/dist/v2/features/app/helpers/create-api-client-app.js +54 -0
  962. package/dist/v2/features/app/helpers/create-api-client-app.js.map +1 -0
  963. package/dist/v2/features/app/helpers/filter-workspaces.js +55 -0
  964. package/dist/v2/features/app/helpers/filter-workspaces.js.map +1 -0
  965. package/dist/v2/features/app/helpers/get-route-param.d.ts +1 -1
  966. package/dist/v2/features/app/helpers/get-route-param.js +12 -0
  967. package/dist/v2/features/app/helpers/get-route-param.js.map +1 -0
  968. package/dist/v2/features/app/helpers/group-workspaces.js +38 -0
  969. package/dist/v2/features/app/helpers/group-workspaces.js.map +1 -0
  970. package/dist/v2/features/app/helpers/routes.d.ts +7 -3
  971. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  972. package/dist/v2/features/app/helpers/routes.js +133 -0
  973. package/dist/v2/features/app/helpers/routes.js.map +1 -0
  974. package/dist/v2/features/app/hooks/use-document-watcher.js +168 -0
  975. package/dist/v2/features/app/hooks/use-document-watcher.js.map +1 -0
  976. package/dist/v2/features/app/hooks/use-theme.d.ts +1 -1
  977. package/dist/v2/features/app/hooks/use-theme.js +94 -0
  978. package/dist/v2/features/app/hooks/use-theme.js.map +1 -0
  979. package/dist/v2/features/app/index.d.ts +7 -7
  980. package/dist/v2/features/app/index.js +7 -3161
  981. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +1 -1
  982. package/dist/v2/features/collection/DocumentCollection.vue.js +8 -0
  983. package/dist/v2/features/collection/DocumentCollection.vue.js.map +1 -0
  984. package/dist/v2/features/collection/DocumentCollection.vue.script.js +339 -0
  985. package/dist/v2/features/collection/DocumentCollection.vue.script.js.map +1 -0
  986. package/dist/v2/features/collection/OperationCollection.vue.d.ts +1 -1
  987. package/dist/v2/features/collection/OperationCollection.vue.js +7 -0
  988. package/dist/v2/features/collection/OperationCollection.vue.js.map +1 -0
  989. package/dist/v2/features/collection/OperationCollection.vue.script.js +94 -0
  990. package/dist/v2/features/collection/OperationCollection.vue.script.js.map +1 -0
  991. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -1
  992. package/dist/v2/features/collection/WorkspaceCollection.vue.js +7 -0
  993. package/dist/v2/features/collection/WorkspaceCollection.vue.js.map +1 -0
  994. package/dist/v2/features/collection/WorkspaceCollection.vue.script.js +73 -0
  995. package/dist/v2/features/collection/WorkspaceCollection.vue.script.js.map +1 -0
  996. package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -4
  997. package/dist/v2/features/collection/components/Authentication.vue.js +9 -0
  998. package/dist/v2/features/collection/components/Authentication.vue.js.map +1 -0
  999. package/dist/v2/features/collection/components/Authentication.vue.script.js +166 -0
  1000. package/dist/v2/features/collection/components/Authentication.vue.script.js.map +1 -0
  1001. package/dist/v2/features/collection/components/Cookies.vue.d.ts +4 -4
  1002. package/dist/v2/features/collection/components/Cookies.vue.js +7 -0
  1003. package/dist/v2/features/collection/components/Cookies.vue.js.map +1 -0
  1004. package/dist/v2/features/collection/components/Cookies.vue.script.js +57 -0
  1005. package/dist/v2/features/collection/components/Cookies.vue.script.js.map +1 -0
  1006. package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +4 -4
  1007. package/dist/v2/features/collection/components/Editor/Editor.vue.js +9 -0
  1008. package/dist/v2/features/collection/components/Editor/Editor.vue.js.map +1 -0
  1009. package/dist/v2/features/collection/components/Editor/Editor.vue.script.js +360 -0
  1010. package/dist/v2/features/collection/components/Editor/Editor.vue.script.js.map +1 -0
  1011. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js +7 -0
  1012. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js.map +1 -0
  1013. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js +69 -0
  1014. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.script.js.map +1 -0
  1015. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js +7 -0
  1016. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js.map +1 -0
  1017. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js +91 -0
  1018. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.script.js.map +1 -0
  1019. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js +22 -0
  1020. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js.map +1 -0
  1021. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js +17 -0
  1022. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js.map +1 -0
  1023. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js +17 -0
  1024. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js.map +1 -0
  1025. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +34 -0
  1026. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js.map +1 -0
  1027. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js +18 -0
  1028. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js.map +1 -0
  1029. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js +36 -0
  1030. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js.map +1 -0
  1031. package/dist/v2/features/collection/components/Editor/index.d.ts +1 -1
  1032. package/dist/v2/features/collection/components/Editor/index.js +1 -1
  1033. package/dist/v2/features/collection/components/Environment.vue.d.ts +4 -4
  1034. package/dist/v2/features/collection/components/Environment.vue.js +7 -0
  1035. package/dist/v2/features/collection/components/Environment.vue.js.map +1 -0
  1036. package/dist/v2/features/collection/components/Environment.vue.script.js +60 -0
  1037. package/dist/v2/features/collection/components/Environment.vue.script.js.map +1 -0
  1038. package/dist/v2/features/collection/components/Form.vue.js +7 -0
  1039. package/dist/v2/features/collection/components/Form.vue.js.map +1 -0
  1040. package/dist/v2/features/collection/components/Form.vue.script.js +75 -0
  1041. package/dist/v2/features/collection/components/Form.vue.script.js.map +1 -0
  1042. package/dist/v2/features/collection/components/LabelInput.vue.js +9 -0
  1043. package/dist/v2/features/collection/components/LabelInput.vue.js.map +1 -0
  1044. package/dist/v2/features/collection/components/LabelInput.vue.script.js +38 -0
  1045. package/dist/v2/features/collection/components/LabelInput.vue.script.js.map +1 -0
  1046. package/dist/v2/features/collection/components/Overview.vue.d.ts +4 -4
  1047. package/dist/v2/features/collection/components/Overview.vue.js +9 -0
  1048. package/dist/v2/features/collection/components/Overview.vue.js.map +1 -0
  1049. package/dist/v2/features/collection/components/Overview.vue.script.js +203 -0
  1050. package/dist/v2/features/collection/components/Overview.vue.script.js.map +1 -0
  1051. package/dist/v2/features/collection/components/Servers.vue.d.ts +4 -4
  1052. package/dist/v2/features/collection/components/Servers.vue.js +7 -0
  1053. package/dist/v2/features/collection/components/Servers.vue.js.map +1 -0
  1054. package/dist/v2/features/collection/components/Servers.vue.script.js +217 -0
  1055. package/dist/v2/features/collection/components/Servers.vue.script.js.map +1 -0
  1056. package/dist/v2/features/collection/components/Settings.vue.d.ts +4 -4
  1057. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  1058. package/dist/v2/features/collection/components/Settings.vue.js +7 -0
  1059. package/dist/v2/features/collection/components/Settings.vue.js.map +1 -0
  1060. package/dist/v2/features/collection/components/Settings.vue.script.js +80 -0
  1061. package/dist/v2/features/collection/components/Settings.vue.script.js.map +1 -0
  1062. package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.js +9 -0
  1063. package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.js.map +1 -0
  1064. package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.script.js +136 -0
  1065. package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.script.js.map +1 -0
  1066. package/dist/v2/features/collection/components/Tabs.vue.d.ts +1 -1
  1067. package/dist/v2/features/collection/components/Tabs.vue.js +7 -0
  1068. package/dist/v2/features/collection/components/Tabs.vue.js.map +1 -0
  1069. package/dist/v2/features/collection/components/Tabs.vue.script.js +53 -0
  1070. package/dist/v2/features/collection/components/Tabs.vue.script.js.map +1 -0
  1071. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +19 -0
  1072. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js.map +1 -0
  1073. package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts +1 -1
  1074. package/dist/v2/features/command-palette/TheCommandPalette.vue.js +9 -0
  1075. package/dist/v2/features/command-palette/TheCommandPalette.vue.js.map +1 -0
  1076. package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js +189 -0
  1077. package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js.map +1 -0
  1078. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +7 -0
  1079. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js.map +1 -0
  1080. package/dist/v2/features/command-palette/components/CommandActionForm.vue.script.js +47 -0
  1081. package/dist/v2/features/command-palette/components/CommandActionForm.vue.script.js.map +1 -0
  1082. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +7 -0
  1083. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js.map +1 -0
  1084. package/dist/v2/features/command-palette/components/CommandActionInput.vue.script.js +73 -0
  1085. package/dist/v2/features/command-palette/components/CommandActionInput.vue.script.js.map +1 -0
  1086. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +7 -0
  1087. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js.map +1 -0
  1088. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js +207 -0
  1089. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.script.js.map +1 -0
  1090. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +3 -23
  1091. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
  1092. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +7 -0
  1093. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js.map +1 -0
  1094. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js +206 -0
  1095. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js.map +1 -0
  1096. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +9 -0
  1097. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js.map +1 -0
  1098. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js +125 -0
  1099. package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.script.js.map +1 -0
  1100. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts +30 -0
  1101. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.d.ts.map +1 -0
  1102. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js +7 -0
  1103. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.js.map +1 -0
  1104. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js +151 -0
  1105. package/dist/v2/features/command-palette/components/CommandPaletteImportPostman.vue.script.js.map +1 -0
  1106. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js +7 -0
  1107. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js.map +1 -0
  1108. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js +89 -0
  1109. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js.map +1 -0
  1110. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +7 -0
  1111. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js.map +1 -0
  1112. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js +226 -0
  1113. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.script.js.map +1 -0
  1114. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +7 -0
  1115. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js.map +1 -0
  1116. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js +126 -0
  1117. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.script.js.map +1 -0
  1118. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts +58 -0
  1119. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.d.ts.map +1 -0
  1120. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js +9 -0
  1121. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.js.map +1 -0
  1122. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js +142 -0
  1123. package/dist/v2/features/command-palette/components/PostmanImportPreview.vue.script.js.map +1 -0
  1124. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts +23 -0
  1125. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.d.ts.map +1 -0
  1126. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js +9 -0
  1127. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.js.map +1 -0
  1128. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js +138 -0
  1129. package/dist/v2/features/command-palette/components/PostmanRequestTreeRow.vue.script.js.map +1 -0
  1130. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +7 -0
  1131. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js.map +1 -0
  1132. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js +39 -0
  1133. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.script.js.map +1 -0
  1134. package/dist/v2/features/command-palette/helpers/generate-unique-slug.js +29 -0
  1135. package/dist/v2/features/command-palette/helpers/generate-unique-slug.js.map +1 -0
  1136. package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts +11 -0
  1137. package/dist/v2/features/command-palette/helpers/get-merge-key.d.ts.map +1 -0
  1138. package/dist/v2/features/command-palette/helpers/get-merge-key.js +32 -0
  1139. package/dist/v2/features/command-palette/helpers/get-merge-key.js.map +1 -0
  1140. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +56 -0
  1141. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js.map +1 -0
  1142. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +2 -1
  1143. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +1 -1
  1144. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +22 -0
  1145. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js.map +1 -0
  1146. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +119 -0
  1147. package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js.map +1 -0
  1148. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +4 -0
  1149. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  1150. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +36 -0
  1151. package/dist/v2/features/command-palette/helpers/get-postman-document-details.js.map +1 -0
  1152. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js +70 -0
  1153. package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js.map +1 -0
  1154. package/dist/v2/features/command-palette/helpers/is-postman-collection.js +24 -0
  1155. package/dist/v2/features/command-palette/helpers/is-postman-collection.js.map +1 -0
  1156. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +71 -0
  1157. package/dist/v2/features/command-palette/helpers/load-document-from-source.js.map +1 -0
  1158. package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts +11 -0
  1159. package/dist/v2/features/command-palette/helpers/postman-request-collisions.d.ts.map +1 -0
  1160. package/dist/v2/features/command-palette/helpers/postman-request-collisions.js +35 -0
  1161. package/dist/v2/features/command-palette/helpers/postman-request-collisions.js.map +1 -0
  1162. package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts +41 -0
  1163. package/dist/v2/features/command-palette/helpers/postman-request-tree.d.ts.map +1 -0
  1164. package/dist/v2/features/command-palette/helpers/postman-request-tree.js +139 -0
  1165. package/dist/v2/features/command-palette/helpers/postman-request-tree.js.map +1 -0
  1166. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +38 -2
  1167. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  1168. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +207 -0
  1169. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js.map +1 -0
  1170. package/dist/v2/features/command-palette/index.d.ts +2 -2
  1171. package/dist/v2/features/command-palette/index.js +2 -2
  1172. package/dist/v2/features/editor/config.js +19 -0
  1173. package/dist/v2/features/editor/config.js.map +1 -0
  1174. package/dist/v2/features/editor/helpers/configure-language-support.js +48 -0
  1175. package/dist/v2/features/editor/helpers/configure-language-support.js.map +1 -0
  1176. package/dist/v2/features/editor/helpers/ensure-monaco-environment.js +21 -0
  1177. package/dist/v2/features/editor/helpers/ensure-monaco-environment.js.map +1 -0
  1178. package/dist/v2/features/editor/helpers/json/create-json-model.js +31 -0
  1179. package/dist/v2/features/editor/helpers/json/create-json-model.js.map +1 -0
  1180. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +1 -1
  1181. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +22 -0
  1182. package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js.map +1 -0
  1183. package/dist/v2/features/editor/helpers/json/json-ast.js +32 -0
  1184. package/dist/v2/features/editor/helpers/json/json-ast.js.map +1 -0
  1185. package/dist/v2/features/editor/helpers/json/json-pointer-links.js +104 -0
  1186. package/dist/v2/features/editor/helpers/json/json-pointer-links.js.map +1 -0
  1187. package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts +1 -1
  1188. package/dist/v2/features/editor/helpers/json/json-pointer-path.js +27 -0
  1189. package/dist/v2/features/editor/helpers/json/json-pointer-path.js.map +1 -0
  1190. package/dist/v2/features/editor/helpers/range-to-whole-line.js +27 -0
  1191. package/dist/v2/features/editor/helpers/range-to-whole-line.js.map +1 -0
  1192. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js +84 -0
  1193. package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js.map +1 -0
  1194. package/dist/v2/features/editor/helpers/theme/load-css-variables.js +41 -0
  1195. package/dist/v2/features/editor/helpers/theme/load-css-variables.js.map +1 -0
  1196. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js +32 -0
  1197. package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js.map +1 -0
  1198. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js +70 -0
  1199. package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js.map +1 -0
  1200. package/dist/v2/features/editor/hooks/use-editor-markers.js +37 -0
  1201. package/dist/v2/features/editor/hooks/use-editor-markers.js.map +1 -0
  1202. package/dist/v2/features/editor/hooks/use-editor.js +133 -0
  1203. package/dist/v2/features/editor/hooks/use-editor.js.map +1 -0
  1204. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js +45 -0
  1205. package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js.map +1 -0
  1206. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js +396 -0
  1207. package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js.map +1 -0
  1208. package/dist/v2/features/editor/index.d.ts +4 -4
  1209. package/dist/v2/features/editor/index.js +4 -1
  1210. package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js +51 -0
  1211. package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js.map +1 -0
  1212. package/dist/v2/features/environments/EnvironmentsList.vue.js +7 -0
  1213. package/dist/v2/features/environments/EnvironmentsList.vue.js.map +1 -0
  1214. package/dist/v2/features/environments/EnvironmentsList.vue.script.js +96 -0
  1215. package/dist/v2/features/environments/EnvironmentsList.vue.script.js.map +1 -0
  1216. package/dist/v2/features/environments/components/Environment.vue.js +7 -0
  1217. package/dist/v2/features/environments/components/Environment.vue.js.map +1 -0
  1218. package/dist/v2/features/environments/components/Environment.vue.script.js +65 -0
  1219. package/dist/v2/features/environments/components/Environment.vue.script.js.map +1 -0
  1220. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +7 -0
  1221. package/dist/v2/features/environments/components/EnvironmentColors.vue.js.map +1 -0
  1222. package/dist/v2/features/environments/components/EnvironmentColors.vue.script.js +158 -0
  1223. package/dist/v2/features/environments/components/EnvironmentColors.vue.script.js.map +1 -0
  1224. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +7 -0
  1225. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js.map +1 -0
  1226. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.script.js +97 -0
  1227. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.script.js.map +1 -0
  1228. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +7 -0
  1229. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js.map +1 -0
  1230. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.script.js +50 -0
  1231. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.script.js.map +1 -0
  1232. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +7 -0
  1233. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js.map +1 -0
  1234. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js +113 -0
  1235. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js.map +1 -0
  1236. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +9 -0
  1237. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js.map +1 -0
  1238. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.script.js +152 -0
  1239. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.script.js.map +1 -0
  1240. package/dist/v2/features/environments/index.d.ts +1 -1
  1241. package/dist/v2/features/environments/index.js +1 -3
  1242. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +9 -0
  1243. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js.map +1 -0
  1244. package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js +186 -0
  1245. package/dist/v2/features/global-cookies/components/CookiesTable.vue.script.js.map +1 -0
  1246. package/dist/v2/features/global-cookies/index.d.ts +1 -1
  1247. package/dist/v2/features/global-cookies/index.js +1 -3
  1248. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  1249. package/dist/v2/features/modal/Modal.vue.js +7 -0
  1250. package/dist/v2/features/modal/Modal.vue.js.map +1 -0
  1251. package/dist/v2/features/modal/Modal.vue.script.js +147 -0
  1252. package/dist/v2/features/modal/Modal.vue.script.js.map +1 -0
  1253. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -2
  1254. package/dist/v2/features/modal/helpers/create-api-client-modal.js +100 -0
  1255. package/dist/v2/features/modal/helpers/create-api-client-modal.js.map +1 -0
  1256. package/dist/v2/features/modal/helpers/map-hidden-clients-config.js +32 -0
  1257. package/dist/v2/features/modal/helpers/map-hidden-clients-config.js.map +1 -0
  1258. package/dist/v2/features/modal/helpers/resolve-route-parameters.js +92 -0
  1259. package/dist/v2/features/modal/helpers/resolve-route-parameters.js.map +1 -0
  1260. package/dist/v2/features/modal/helpers/restore-workspace-state.js +51 -0
  1261. package/dist/v2/features/modal/helpers/restore-workspace-state.js.map +1 -0
  1262. package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +1 -1
  1263. package/dist/v2/features/modal/hooks/use-modal-sidebar.js +142 -0
  1264. package/dist/v2/features/modal/hooks/use-modal-sidebar.js.map +1 -0
  1265. package/dist/v2/features/modal/index.d.ts +3 -3
  1266. package/dist/v2/features/modal/index.js +3 -639
  1267. package/dist/v2/features/modal/modal-events.d.ts +1 -1
  1268. package/dist/v2/features/modal/modal-events.js +41 -0
  1269. package/dist/v2/features/modal/modal-events.js.map +1 -0
  1270. package/dist/v2/features/operation/Operation.vue.d.ts +2 -2
  1271. package/dist/v2/features/operation/Operation.vue.js +7 -0
  1272. package/dist/v2/features/operation/Operation.vue.js.map +1 -0
  1273. package/dist/v2/features/operation/Operation.vue.script.js +182 -0
  1274. package/dist/v2/features/operation/Operation.vue.script.js.map +1 -0
  1275. package/dist/v2/features/operation/helpers/combine-params.js +20 -0
  1276. package/dist/v2/features/operation/helpers/combine-params.js.map +1 -0
  1277. package/dist/v2/features/operation/helpers/get-security-requirements.js +17 -0
  1278. package/dist/v2/features/operation/helpers/get-security-requirements.js.map +1 -0
  1279. package/dist/v2/features/operation/helpers/get-selected-security.js +41 -0
  1280. package/dist/v2/features/operation/helpers/get-selected-security.js.map +1 -0
  1281. package/dist/v2/features/operation/helpers/get-selected-server.js +21 -0
  1282. package/dist/v2/features/operation/helpers/get-selected-server.js.map +1 -0
  1283. package/dist/v2/features/operation/index.d.ts +5 -5
  1284. package/dist/v2/features/operation/index.js +5 -18
  1285. package/dist/v2/features/search/helpers/create-fuse-instance.js +52 -0
  1286. package/dist/v2/features/search/helpers/create-fuse-instance.js.map +1 -0
  1287. package/dist/v2/features/search/helpers/create-search-index.js +76 -0
  1288. package/dist/v2/features/search/helpers/create-search-index.js.map +1 -0
  1289. package/dist/v2/features/search/hooks/use-search-index.js +31 -0
  1290. package/dist/v2/features/search/hooks/use-search-index.js.map +1 -0
  1291. package/dist/v2/features/search/index.d.ts +1 -1
  1292. package/dist/v2/features/search/index.js +1 -1
  1293. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +4 -0
  1294. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
  1295. package/dist/v2/features/settings/CollectionSettings.vue.js +7 -0
  1296. package/dist/v2/features/settings/CollectionSettings.vue.js.map +1 -0
  1297. package/dist/v2/features/settings/CollectionSettings.vue.script.js +229 -0
  1298. package/dist/v2/features/settings/CollectionSettings.vue.script.js.map +1 -0
  1299. package/dist/v2/features/settings/DocumentSettings.vue.js +7 -0
  1300. package/dist/v2/features/settings/DocumentSettings.vue.js.map +1 -0
  1301. package/dist/v2/features/settings/DocumentSettings.vue.script.js +92 -0
  1302. package/dist/v2/features/settings/DocumentSettings.vue.script.js.map +1 -0
  1303. package/dist/v2/features/settings/components/Appearance.vue.js +7 -0
  1304. package/dist/v2/features/settings/components/Appearance.vue.js.map +1 -0
  1305. package/dist/v2/features/settings/components/Appearance.vue.script.js +63 -0
  1306. package/dist/v2/features/settings/components/Appearance.vue.script.js.map +1 -0
  1307. package/dist/v2/features/settings/components/Section.vue.js +7 -0
  1308. package/dist/v2/features/settings/components/Section.vue.js.map +1 -0
  1309. package/dist/v2/features/settings/components/Section.vue.script.js +30 -0
  1310. package/dist/v2/features/settings/components/Section.vue.script.js.map +1 -0
  1311. package/dist/v2/features/settings/helpers/get-theme-colors.js +68 -0
  1312. package/dist/v2/features/settings/helpers/get-theme-colors.js.map +1 -0
  1313. package/dist/v2/features/settings/index.d.ts +2 -2
  1314. package/dist/v2/features/settings/index.js +2 -1
  1315. package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -1
  1316. package/dist/v2/helpers/drag-handle-factory.js +258 -0
  1317. package/dist/v2/helpers/drag-handle-factory.js.map +1 -0
  1318. package/dist/v2/helpers/generate-location-id.js +25 -0
  1319. package/dist/v2/helpers/generate-location-id.js.map +1 -0
  1320. package/dist/v2/helpers/get-active-environment.js +19 -0
  1321. package/dist/v2/helpers/get-active-environment.js.map +1 -0
  1322. package/dist/v2/helpers/get-active-proxy-url.js +26 -0
  1323. package/dist/v2/helpers/get-active-proxy-url.js.map +1 -0
  1324. package/dist/v2/helpers/get-servers.js +106 -0
  1325. package/dist/v2/helpers/get-servers.js.map +1 -0
  1326. package/dist/v2/helpers/get-tab-details.d.ts +1 -1
  1327. package/dist/v2/helpers/get-tab-details.js +54 -0
  1328. package/dist/v2/helpers/get-tab-details.js.map +1 -0
  1329. package/dist/v2/helpers/handle-hotkeys.js +151 -0
  1330. package/dist/v2/helpers/handle-hotkeys.js.map +1 -0
  1331. package/dist/v2/helpers/index.d.ts +2 -2
  1332. package/dist/v2/helpers/index.js +2 -2
  1333. package/dist/v2/helpers/is-url.js +9 -0
  1334. package/dist/v2/helpers/is-url.js.map +1 -0
  1335. package/dist/v2/helpers/slugify.js +15 -0
  1336. package/dist/v2/helpers/slugify.js.map +1 -0
  1337. package/dist/v2/helpers/storage.d.ts +8 -0
  1338. package/dist/v2/helpers/storage.d.ts.map +1 -1
  1339. package/dist/v2/helpers/storage.js +37 -0
  1340. package/dist/v2/helpers/storage.js.map +1 -0
  1341. package/dist/v2/hooks/use-color-mode.js +72 -0
  1342. package/dist/v2/hooks/use-color-mode.js.map +1 -0
  1343. package/dist/v2/hooks/use-global-hot-keys.js +22 -0
  1344. package/dist/v2/hooks/use-global-hot-keys.js.map +1 -0
  1345. package/dist/v2/hooks/use-scroll-lock.js +58 -0
  1346. package/dist/v2/hooks/use-scroll-lock.js.map +1 -0
  1347. package/dist/v2/posthog.d.ts +3 -0
  1348. package/dist/v2/posthog.d.ts.map +1 -0
  1349. package/dist/v2/posthog.js +19 -0
  1350. package/dist/v2/posthog.js.map +1 -0
  1351. package/dist/v2/workspace-events.js +109 -0
  1352. package/dist/v2/workspace-events.js.map +1 -0
  1353. package/dist/views/Collection/Collection.vue.js +7 -0
  1354. package/dist/views/Collection/Collection.vue.js.map +1 -0
  1355. package/dist/views/Collection/Collection.vue.script.js +46 -0
  1356. package/dist/views/Collection/Collection.vue.script.js.map +1 -0
  1357. package/dist/views/Collection/CollectionAuthentication.vue.js +9 -0
  1358. package/dist/views/Collection/CollectionAuthentication.vue.js.map +1 -0
  1359. package/dist/views/Collection/CollectionAuthentication.vue.script.js +52 -0
  1360. package/dist/views/Collection/CollectionAuthentication.vue.script.js.map +1 -0
  1361. package/dist/views/Collection/CollectionCookies.vue.js +7 -0
  1362. package/dist/views/Collection/CollectionCookies.vue.js.map +1 -0
  1363. package/dist/views/Collection/CollectionCookies.vue.script.js +18 -0
  1364. package/dist/views/Collection/CollectionCookies.vue.script.js.map +1 -0
  1365. package/dist/views/Collection/CollectionEnvironment.vue.js +8 -0
  1366. package/dist/views/Collection/CollectionEnvironment.vue.js.map +1 -0
  1367. package/dist/views/Collection/CollectionEnvironment.vue.script.js +238 -0
  1368. package/dist/views/Collection/CollectionEnvironment.vue.script.js.map +1 -0
  1369. package/dist/views/Collection/CollectionInfoForm.vue.js +9 -0
  1370. package/dist/views/Collection/CollectionInfoForm.vue.js.map +1 -0
  1371. package/dist/views/Collection/CollectionInfoForm.vue.script.js +73 -0
  1372. package/dist/views/Collection/CollectionInfoForm.vue.script.js.map +1 -0
  1373. package/dist/views/Collection/CollectionNavigation.vue.js +7 -0
  1374. package/dist/views/Collection/CollectionNavigation.vue.js.map +1 -0
  1375. package/dist/views/Collection/CollectionNavigation.vue.script.js +75 -0
  1376. package/dist/views/Collection/CollectionNavigation.vue.script.js.map +1 -0
  1377. package/dist/views/Collection/CollectionOverview.vue.js +7 -0
  1378. package/dist/views/Collection/CollectionOverview.vue.js.map +1 -0
  1379. package/dist/views/Collection/CollectionOverview.vue.script.js +42 -0
  1380. package/dist/views/Collection/CollectionOverview.vue.script.js.map +1 -0
  1381. package/dist/views/Collection/CollectionScripts.vue.js +7 -0
  1382. package/dist/views/Collection/CollectionScripts.vue.js.map +1 -0
  1383. package/dist/views/Collection/CollectionScripts.vue.script.js +18 -0
  1384. package/dist/views/Collection/CollectionScripts.vue.script.js.map +1 -0
  1385. package/dist/views/Collection/CollectionServerForm.vue.js +7 -0
  1386. package/dist/views/Collection/CollectionServerForm.vue.js.map +1 -0
  1387. package/dist/views/Collection/CollectionServerForm.vue.script.js +76 -0
  1388. package/dist/views/Collection/CollectionServerForm.vue.script.js.map +1 -0
  1389. package/dist/views/Collection/CollectionServers.vue.js +7 -0
  1390. package/dist/views/Collection/CollectionServers.vue.js.map +1 -0
  1391. package/dist/views/Collection/CollectionServers.vue.script.js +95 -0
  1392. package/dist/views/Collection/CollectionServers.vue.script.js.map +1 -0
  1393. package/dist/views/Collection/CollectionSettings.vue.js +7 -0
  1394. package/dist/views/Collection/CollectionSettings.vue.js.map +1 -0
  1395. package/dist/views/Collection/CollectionSettings.vue.script.js +87 -0
  1396. package/dist/views/Collection/CollectionSettings.vue.script.js.map +1 -0
  1397. package/dist/views/Collection/CollectionSync.vue.js +7 -0
  1398. package/dist/views/Collection/CollectionSync.vue.js.map +1 -0
  1399. package/dist/views/Collection/CollectionSync.vue.script.js +18 -0
  1400. package/dist/views/Collection/CollectionSync.vue.script.js.map +1 -0
  1401. package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +1 -1
  1402. package/dist/views/Collection/components/EnvironmentForm.vue.js +9 -0
  1403. package/dist/views/Collection/components/EnvironmentForm.vue.js.map +1 -0
  1404. package/dist/views/Collection/components/EnvironmentForm.vue.script.js +284 -0
  1405. package/dist/views/Collection/components/EnvironmentForm.vue.script.js.map +1 -0
  1406. package/dist/views/Collection/components/MarkdownInput.vue.d.ts +1 -1
  1407. package/dist/views/Collection/components/MarkdownInput.vue.js +9 -0
  1408. package/dist/views/Collection/components/MarkdownInput.vue.js.map +1 -0
  1409. package/dist/views/Collection/components/MarkdownInput.vue.script.js +92 -0
  1410. package/dist/views/Collection/components/MarkdownInput.vue.script.js.map +1 -0
  1411. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +1 -1
  1412. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +7 -0
  1413. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js.map +1 -0
  1414. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.script.js +74 -0
  1415. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.script.js.map +1 -0
  1416. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +66 -0
  1417. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js.map +1 -0
  1418. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +1 -1
  1419. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +86 -0
  1420. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js.map +1 -0
  1421. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
  1422. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +39 -0
  1423. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js.map +1 -0
  1424. package/dist/views/Components/CodeSnippet/index.d.ts +4 -4
  1425. package/dist/views/Components/CodeSnippet/index.js +4 -2
  1426. package/dist/views/Cookies/CookieForm.vue.js +7 -0
  1427. package/dist/views/Cookies/CookieForm.vue.js.map +1 -0
  1428. package/dist/views/Cookies/CookieForm.vue.script.js +50 -0
  1429. package/dist/views/Cookies/CookieForm.vue.script.js.map +1 -0
  1430. package/dist/views/Cookies/CookieModal.vue.js +9 -0
  1431. package/dist/views/Cookies/CookieModal.vue.js.map +1 -0
  1432. package/dist/views/Cookies/CookieModal.vue.script.js +83 -0
  1433. package/dist/views/Cookies/CookieModal.vue.script.js.map +1 -0
  1434. package/dist/views/Cookies/Cookies.vue.js +7 -0
  1435. package/dist/views/Cookies/Cookies.vue.js.map +1 -0
  1436. package/dist/views/Cookies/Cookies.vue.script.js +156 -0
  1437. package/dist/views/Cookies/Cookies.vue.script.js.map +1 -0
  1438. package/dist/views/Environment/Environment.vue.js +7 -0
  1439. package/dist/views/Environment/Environment.vue.js.map +1 -0
  1440. package/dist/views/Environment/Environment.vue.script.js +384 -0
  1441. package/dist/views/Environment/Environment.vue.script.js.map +1 -0
  1442. package/dist/views/Environment/EnvironmentColorModal.vue.js +7 -0
  1443. package/dist/views/Environment/EnvironmentColorModal.vue.js.map +1 -0
  1444. package/dist/views/Environment/EnvironmentColorModal.vue.script.js +47 -0
  1445. package/dist/views/Environment/EnvironmentColorModal.vue.script.js.map +1 -0
  1446. package/dist/views/Environment/EnvironmentColors.vue.js +7 -0
  1447. package/dist/views/Environment/EnvironmentColors.vue.js.map +1 -0
  1448. package/dist/views/Environment/EnvironmentColors.vue.script.js +126 -0
  1449. package/dist/views/Environment/EnvironmentColors.vue.script.js.map +1 -0
  1450. package/dist/views/Environment/EnvironmentModal.vue.js +7 -0
  1451. package/dist/views/Environment/EnvironmentModal.vue.js.map +1 -0
  1452. package/dist/views/Environment/EnvironmentModal.vue.script.js +122 -0
  1453. package/dist/views/Environment/EnvironmentModal.vue.script.js.map +1 -0
  1454. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
  1455. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +7 -0
  1456. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js.map +1 -0
  1457. package/dist/views/Environment/EnvironmentVariableDropdown.vue.script.js +133 -0
  1458. package/dist/views/Environment/EnvironmentVariableDropdown.vue.script.js.map +1 -0
  1459. package/dist/views/Environment/handle-drag.d.ts +1 -1
  1460. package/dist/views/Environment/handle-drag.js +38 -0
  1461. package/dist/views/Environment/handle-drag.js.map +1 -0
  1462. package/dist/views/Request/Request.vue.d.ts +1 -1
  1463. package/dist/views/Request/Request.vue.js +9 -0
  1464. package/dist/views/Request/Request.vue.js.map +1 -0
  1465. package/dist/views/Request/Request.vue.script.js +117 -0
  1466. package/dist/views/Request/Request.vue.script.js.map +1 -0
  1467. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  1468. package/dist/views/Request/RequestRoot.vue.js +9 -0
  1469. package/dist/views/Request/RequestRoot.vue.js.map +1 -0
  1470. package/dist/views/Request/RequestRoot.vue.script.js +158 -0
  1471. package/dist/views/Request/RequestRoot.vue.script.js.map +1 -0
  1472. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -0
  1473. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js.map +1 -0
  1474. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.script.js +52 -0
  1475. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.script.js.map +1 -0
  1476. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
  1477. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +7 -0
  1478. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js.map +1 -0
  1479. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.script.js +204 -0
  1480. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.script.js.map +1 -0
  1481. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +7 -0
  1482. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js.map +1 -0
  1483. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.script.js +106 -0
  1484. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.script.js.map +1 -0
  1485. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
  1486. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +9 -0
  1487. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js.map +1 -0
  1488. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.script.js +216 -0
  1489. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.script.js.map +1 -0
  1490. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -1
  1491. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +9 -0
  1492. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js.map +1 -0
  1493. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.script.js +116 -0
  1494. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.script.js.map +1 -0
  1495. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +1 -1
  1496. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +7 -0
  1497. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js.map +1 -0
  1498. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.script.js +73 -0
  1499. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.script.js.map +1 -0
  1500. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
  1501. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +7 -0
  1502. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js.map +1 -0
  1503. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.script.js +205 -0
  1504. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.script.js.map +1 -0
  1505. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +1 -1
  1506. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js +39 -0
  1507. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js.map +1 -0
  1508. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +3 -3
  1509. package/dist/views/Request/RequestSection/RequestAuth/index.js +3 -3
  1510. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
  1511. package/dist/views/Request/RequestSection/RequestBody.vue.js +9 -0
  1512. package/dist/views/Request/RequestSection/RequestBody.vue.js.map +1 -0
  1513. package/dist/views/Request/RequestSection/RequestBody.vue.script.js +477 -0
  1514. package/dist/views/Request/RequestSection/RequestBody.vue.script.js.map +1 -0
  1515. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
  1516. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +9 -0
  1517. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js.map +1 -0
  1518. package/dist/views/Request/RequestSection/RequestCodeExample.vue.script.js +187 -0
  1519. package/dist/views/Request/RequestSection/RequestCodeExample.vue.script.js.map +1 -0
  1520. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
  1521. package/dist/views/Request/RequestSection/RequestParams.vue.js +7 -0
  1522. package/dist/views/Request/RequestSection/RequestParams.vue.js.map +1 -0
  1523. package/dist/views/Request/RequestSection/RequestParams.vue.script.js +180 -0
  1524. package/dist/views/Request/RequestSection/RequestParams.vue.script.js.map +1 -0
  1525. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
  1526. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +7 -0
  1527. package/dist/views/Request/RequestSection/RequestPathParams.vue.js.map +1 -0
  1528. package/dist/views/Request/RequestSection/RequestPathParams.vue.script.js +115 -0
  1529. package/dist/views/Request/RequestSection/RequestPathParams.vue.script.js.map +1 -0
  1530. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
  1531. package/dist/views/Request/RequestSection/RequestSection.vue.js +9 -0
  1532. package/dist/views/Request/RequestSection/RequestSection.vue.js.map +1 -0
  1533. package/dist/views/Request/RequestSection/RequestSection.vue.script.js +297 -0
  1534. package/dist/views/Request/RequestSection/RequestSection.vue.script.js.map +1 -0
  1535. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
  1536. package/dist/views/Request/RequestSection/RequestTable.vue.js +9 -0
  1537. package/dist/views/Request/RequestSection/RequestTable.vue.js.map +1 -0
  1538. package/dist/views/Request/RequestSection/RequestTable.vue.script.js +266 -0
  1539. package/dist/views/Request/RequestSection/RequestTable.vue.script.js.map +1 -0
  1540. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +9 -0
  1541. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js.map +1 -0
  1542. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.script.js +64 -0
  1543. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.script.js.map +1 -0
  1544. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +38 -0
  1545. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js.map +1 -0
  1546. package/dist/views/Request/RequestSection/helpers/getting-started.js +17 -0
  1547. package/dist/views/Request/RequestSection/helpers/getting-started.js.map +1 -0
  1548. package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +1 -1
  1549. package/dist/views/Request/RequestSection/helpers/update-scheme.js +22 -0
  1550. package/dist/views/Request/RequestSection/helpers/update-scheme.js.map +1 -0
  1551. package/dist/views/Request/RequestSection/index.d.ts +2 -2
  1552. package/dist/views/Request/RequestSection/index.js +2 -42
  1553. package/dist/views/Request/RequestSidebar.vue.js +9 -0
  1554. package/dist/views/Request/RequestSidebar.vue.js.map +1 -0
  1555. package/dist/views/Request/RequestSidebar.vue.script.js +307 -0
  1556. package/dist/views/Request/RequestSidebar.vue.script.js.map +1 -0
  1557. package/dist/views/Request/RequestSidebarItem.vue.js +10 -0
  1558. package/dist/views/Request/RequestSidebarItem.vue.js.map +1 -0
  1559. package/dist/views/Request/RequestSidebarItem.vue.script.js +475 -0
  1560. package/dist/views/Request/RequestSidebarItem.vue.script.js.map +1 -0
  1561. package/dist/views/Request/RequestSidebarItemMenu.vue.js +9 -0
  1562. package/dist/views/Request/RequestSidebarItemMenu.vue.js.map +1 -0
  1563. package/dist/views/Request/RequestSidebarItemMenu.vue.script.js +222 -0
  1564. package/dist/views/Request/RequestSidebarItemMenu.vue.script.js.map +1 -0
  1565. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -1
  1566. package/dist/views/Request/RequestSubpageHeader.vue.js +9 -0
  1567. package/dist/views/Request/RequestSubpageHeader.vue.js.map +1 -0
  1568. package/dist/views/Request/RequestSubpageHeader.vue.script.js +92 -0
  1569. package/dist/views/Request/RequestSubpageHeader.vue.script.js.map +1 -0
  1570. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +7 -0
  1571. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js.map +1 -0
  1572. package/dist/views/Request/ResponseSection/RequestHeaders.vue.script.js +77 -0
  1573. package/dist/views/Request/ResponseSection/RequestHeaders.vue.script.js.map +1 -0
  1574. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +9 -0
  1575. package/dist/views/Request/ResponseSection/ResponseBody.vue.js.map +1 -0
  1576. package/dist/views/Request/ResponseSection/ResponseBody.vue.script.js +91 -0
  1577. package/dist/views/Request/ResponseSection/ResponseBody.vue.script.js.map +1 -0
  1578. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +7 -0
  1579. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js.map +1 -0
  1580. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.script.js +35 -0
  1581. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.script.js.map +1 -0
  1582. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +14 -0
  1583. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js.map +1 -0
  1584. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +9 -0
  1585. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js.map +1 -0
  1586. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.script.js +64 -0
  1587. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.script.js.map +1 -0
  1588. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +9 -0
  1589. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js.map +1 -0
  1590. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.script.js +54 -0
  1591. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.script.js.map +1 -0
  1592. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +7 -0
  1593. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js.map +1 -0
  1594. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.script.js +85 -0
  1595. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.script.js.map +1 -0
  1596. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +7 -0
  1597. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js.map +1 -0
  1598. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.script.js +25 -0
  1599. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.script.js.map +1 -0
  1600. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -0
  1601. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js.map +1 -0
  1602. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.script.js +51 -0
  1603. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.script.js.map +1 -0
  1604. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +7 -0
  1605. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js.map +1 -0
  1606. package/dist/views/Request/ResponseSection/ResponseCookies.vue.script.js +39 -0
  1607. package/dist/views/Request/ResponseSection/ResponseCookies.vue.script.js.map +1 -0
  1608. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +9 -0
  1609. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js.map +1 -0
  1610. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.script.js +98 -0
  1611. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.script.js.map +1 -0
  1612. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +7 -0
  1613. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js.map +1 -0
  1614. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.script.js +77 -0
  1615. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.script.js.map +1 -0
  1616. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +9 -0
  1617. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js.map +1 -0
  1618. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.script.js +44 -0
  1619. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.script.js.map +1 -0
  1620. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +7 -0
  1621. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js.map +1 -0
  1622. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.script.js +64 -0
  1623. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.script.js.map +1 -0
  1624. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
  1625. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +9 -0
  1626. package/dist/views/Request/ResponseSection/ResponseSection.vue.js.map +1 -0
  1627. package/dist/views/Request/ResponseSection/ResponseSection.vue.script.js +206 -0
  1628. package/dist/views/Request/ResponseSection/ResponseSection.vue.script.js.map +1 -0
  1629. package/dist/views/Request/ResponseSection/index.d.ts +2 -2
  1630. package/dist/views/Request/ResponseSection/index.js +2 -6
  1631. package/dist/views/Request/components/WorkspaceDropdown.vue.js +7 -0
  1632. package/dist/views/Request/components/WorkspaceDropdown.vue.js.map +1 -0
  1633. package/dist/views/Request/components/WorkspaceDropdown.vue.script.js +182 -0
  1634. package/dist/views/Request/components/WorkspaceDropdown.vue.script.js.map +1 -0
  1635. package/dist/views/Request/components/index.d.ts +1 -1
  1636. package/dist/views/Request/components/index.js +1 -1
  1637. package/dist/views/Request/consts/index.d.ts +2 -2
  1638. package/dist/views/Request/consts/index.js +2 -1
  1639. package/dist/views/Request/consts/mediaTypes.js +231 -0
  1640. package/dist/views/Request/consts/mediaTypes.js.map +1 -0
  1641. package/dist/views/Request/consts/new-auth-options.js +90 -0
  1642. package/dist/views/Request/consts/new-auth-options.js.map +1 -0
  1643. package/dist/views/Request/handle-drag.d.ts +1 -1
  1644. package/dist/views/Request/handle-drag.js +51 -0
  1645. package/dist/views/Request/handle-drag.js.map +1 -0
  1646. package/dist/views/Request/hooks/useOpenApiWatcher.js +96 -0
  1647. package/dist/views/Request/hooks/useOpenApiWatcher.js.map +1 -0
  1648. package/dist/views/Request/libs/auth.js +74 -0
  1649. package/dist/views/Request/libs/auth.js.map +1 -0
  1650. package/dist/views/Request/libs/index.d.ts +3 -3
  1651. package/dist/views/Request/libs/index.js +3 -2
  1652. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  1653. package/dist/views/Request/libs/oauth2.js +178 -0
  1654. package/dist/views/Request/libs/oauth2.js.map +1 -0
  1655. package/dist/views/Request/libs/request.js +46 -0
  1656. package/dist/views/Request/libs/request.js.map +1 -0
  1657. package/dist/views/Request/libs/watch-mode.d.ts +1 -1
  1658. package/dist/views/Request/libs/watch-mode.js +375 -0
  1659. package/dist/views/Request/libs/watch-mode.js.map +1 -0
  1660. package/dist/views/Settings/Settings.vue.js +7 -0
  1661. package/dist/views/Settings/Settings.vue.js.map +1 -0
  1662. package/dist/views/Settings/Settings.vue.script.js +28 -0
  1663. package/dist/views/Settings/Settings.vue.script.js.map +1 -0
  1664. package/dist/views/Settings/SettingsGeneral.vue.js +7 -0
  1665. package/dist/views/Settings/SettingsGeneral.vue.js.map +1 -0
  1666. package/dist/views/Settings/SettingsGeneral.vue.script.js +241 -0
  1667. package/dist/views/Settings/SettingsGeneral.vue.script.js.map +1 -0
  1668. package/dist/views/Settings/components/SettingsAppearance.vue.js +7 -0
  1669. package/dist/views/Settings/components/SettingsAppearance.vue.js.map +1 -0
  1670. package/dist/views/Settings/components/SettingsAppearance.vue.script.js +62 -0
  1671. package/dist/views/Settings/components/SettingsAppearance.vue.script.js.map +1 -0
  1672. package/dist/views/Settings/components/SettingsSection.vue.js +7 -0
  1673. package/dist/views/Settings/components/SettingsSection.vue.js.map +1 -0
  1674. package/dist/views/Settings/components/SettingsSection.vue.script.js +27 -0
  1675. package/dist/views/Settings/components/SettingsSection.vue.script.js.map +1 -0
  1676. package/package.json +19 -14
  1677. package/dist/AddressBar-BOZGKSoz.js +0 -302
  1678. package/dist/AddressBar-BOZGKSoz.js.map +0 -1
  1679. package/dist/App-Ckirvnv1.js +0 -2510
  1680. package/dist/App-Ckirvnv1.js.map +0 -1
  1681. package/dist/App-DHBmpWJI.js +0 -533
  1682. package/dist/App-DHBmpWJI.js.map +0 -1
  1683. package/dist/CodeInput-BTN8cC5h.js +0 -694
  1684. package/dist/CodeInput-BTN8cC5h.js.map +0 -1
  1685. package/dist/CodeSnippet-D7Heh1nd.js +0 -218
  1686. package/dist/CodeSnippet-D7Heh1nd.js.map +0 -1
  1687. package/dist/Collection-BsAG7ms5.js +0 -219
  1688. package/dist/Collection-BsAG7ms5.js.map +0 -1
  1689. package/dist/CollectionAuthentication-BMGhRnpo.js +0 -56
  1690. package/dist/CollectionAuthentication-BMGhRnpo.js.map +0 -1
  1691. package/dist/CollectionCookies-DyjPPMdt.js +0 -19
  1692. package/dist/CollectionCookies-DyjPPMdt.js.map +0 -1
  1693. package/dist/CollectionEnvironment-BY9Gcnln.js +0 -514
  1694. package/dist/CollectionEnvironment-BY9Gcnln.js.map +0 -1
  1695. package/dist/CollectionOverview-C3GvN8GY.js +0 -131
  1696. package/dist/CollectionOverview-C3GvN8GY.js.map +0 -1
  1697. package/dist/CollectionScripts-CMNlBlby.js +0 -19
  1698. package/dist/CollectionScripts-CMNlBlby.js.map +0 -1
  1699. package/dist/CollectionServers-DuOLysNB.js +0 -168
  1700. package/dist/CollectionServers-DuOLysNB.js.map +0 -1
  1701. package/dist/CollectionSettings-FtXNetOh.js +0 -87
  1702. package/dist/CollectionSettings-FtXNetOh.js.map +0 -1
  1703. package/dist/CollectionSync-CAflc5yW.js +0 -19
  1704. package/dist/CollectionSync-CAflc5yW.js.map +0 -1
  1705. package/dist/CommandActionInput-TkcAx6E8.js +0 -97
  1706. package/dist/CommandActionInput-TkcAx6E8.js.map +0 -1
  1707. package/dist/CommandPalette-BxoEK8TY.js +0 -964
  1708. package/dist/CommandPalette-BxoEK8TY.js.map +0 -1
  1709. package/dist/CommandPaletteImport-Diu5dDIY.js +0 -622
  1710. package/dist/CommandPaletteImport-Diu5dDIY.js.map +0 -1
  1711. package/dist/Cookies-BYTv1YIA.js +0 -284
  1712. package/dist/Cookies-BYTv1YIA.js.map +0 -1
  1713. package/dist/DataTable-BqbZKW3K.js +0 -62
  1714. package/dist/DataTable-BqbZKW3K.js.map +0 -1
  1715. package/dist/DataTableHeader-DJVB0jCZ.js +0 -21
  1716. package/dist/DataTableHeader-DJVB0jCZ.js.map +0 -1
  1717. package/dist/DataTableInput-RydMDjn2.js +0 -166
  1718. package/dist/DataTableInput-RydMDjn2.js.map +0 -1
  1719. package/dist/DataTableRow-c3XveEUO.js +0 -57
  1720. package/dist/DataTableRow-c3XveEUO.js.map +0 -1
  1721. package/dist/DeleteSidebarListElement-C-p87d03.js +0 -78
  1722. package/dist/DeleteSidebarListElement-C-p87d03.js.map +0 -1
  1723. package/dist/EditSidebarListElement-CodWPnM6.js +0 -32
  1724. package/dist/EditSidebarListElement-CodWPnM6.js.map +0 -1
  1725. package/dist/Editor-BomsGWHx.js +0 -909
  1726. package/dist/Editor-BomsGWHx.js.map +0 -1
  1727. package/dist/EmptyState-Cnm7hGW5.js +0 -46
  1728. package/dist/EmptyState-Cnm7hGW5.js.map +0 -1
  1729. package/dist/Environment-BIxG7DaO.js +0 -416
  1730. package/dist/Environment-BIxG7DaO.js.map +0 -1
  1731. package/dist/EnvironmentModal-C0lYytkh.js +0 -288
  1732. package/dist/EnvironmentModal-C0lYytkh.js.map +0 -1
  1733. package/dist/Form-KFcdRQp1.js +0 -83
  1734. package/dist/Form-KFcdRQp1.js.map +0 -1
  1735. package/dist/HttpMethod-rnWEgC3T.js +0 -78
  1736. package/dist/HttpMethod-rnWEgC3T.js.map +0 -1
  1737. package/dist/IconSelector-BDC_GQXv.js +0 -67
  1738. package/dist/IconSelector-BDC_GQXv.js.map +0 -1
  1739. package/dist/ImportCollection-CGjySEzP.js +0 -804
  1740. package/dist/ImportCollection-CGjySEzP.js.map +0 -1
  1741. package/dist/IntegrationLogo-B9EDW8db.js +0 -51
  1742. package/dist/IntegrationLogo-B9EDW8db.js.map +0 -1
  1743. package/dist/MainLayout-BnLwst16.js +0 -281
  1744. package/dist/MainLayout-BnLwst16.js.map +0 -1
  1745. package/dist/Modal-CTZ8UNds.js +0 -67
  1746. package/dist/Modal-CTZ8UNds.js.map +0 -1
  1747. package/dist/ModalClientContainer-qHsZi4wQ.js +0 -65
  1748. package/dist/ModalClientContainer-qHsZi4wQ.js.map +0 -1
  1749. package/dist/Request-d0RY0ZhC.js +0 -212
  1750. package/dist/Request-d0RY0ZhC.js.map +0 -1
  1751. package/dist/RequestAuth-1cRH3DDn.js +0 -989
  1752. package/dist/RequestAuth-1cRH3DDn.js.map +0 -1
  1753. package/dist/RequestRoot-pW0yXesG.js +0 -1611
  1754. package/dist/RequestRoot-pW0yXesG.js.map +0 -1
  1755. package/dist/RequestSection-D2BLvDTr.js +0 -1582
  1756. package/dist/RequestSection-D2BLvDTr.js.map +0 -1
  1757. package/dist/ResponseSection-B_YF7l_E.js +0 -949
  1758. package/dist/ResponseSection-B_YF7l_E.js.map +0 -1
  1759. package/dist/ScalarAsciiArt-BjuSnj8e.js +0 -45
  1760. package/dist/ScalarAsciiArt-BjuSnj8e.js.map +0 -1
  1761. package/dist/SectionFilter-hrtoRLwj.js +0 -99
  1762. package/dist/SectionFilter-hrtoRLwj.js.map +0 -1
  1763. package/dist/Server-CEKGIEfE.js +0 -303
  1764. package/dist/Server-CEKGIEfE.js.map +0 -1
  1765. package/dist/ServerVariablesForm-BRZ9XC8o.js +0 -145
  1766. package/dist/ServerVariablesForm-BRZ9XC8o.js.map +0 -1
  1767. package/dist/Settings-BaPvhJ8Y.js +0 -347
  1768. package/dist/Settings-BaPvhJ8Y.js.map +0 -1
  1769. package/dist/Sidebar-CRxdl38Y.js +0 -73
  1770. package/dist/Sidebar-CRxdl38Y.js.map +0 -1
  1771. package/dist/SidebarButton-BAagdMDe.js +0 -37
  1772. package/dist/SidebarButton-BAagdMDe.js.map +0 -1
  1773. package/dist/SidebarListElement-BfTPiihc.js +0 -232
  1774. package/dist/SidebarListElement-BfTPiihc.js.map +0 -1
  1775. package/dist/TheCommandPalette-Dl9TAeke.js +0 -204
  1776. package/dist/TheCommandPalette-Dl9TAeke.js.map +0 -1
  1777. package/dist/ValueEmitter-QYkZ9Hdc.js +0 -20
  1778. package/dist/ValueEmitter-QYkZ9Hdc.js.map +0 -1
  1779. package/dist/ViewLayout-BOXN0IYo.js +0 -17
  1780. package/dist/ViewLayout-BOXN0IYo.js.map +0 -1
  1781. package/dist/ViewLayoutCollapse-CiTb-Uml.js +0 -86
  1782. package/dist/ViewLayoutCollapse-CiTb-Uml.js.map +0 -1
  1783. package/dist/ViewLayoutContent-CvMoJYPF.js +0 -13
  1784. package/dist/ViewLayoutContent-CvMoJYPF.js.map +0 -1
  1785. package/dist/ViewLayoutSection-mUqKbQry.js +0 -23
  1786. package/dist/ViewLayoutSection-mUqKbQry.js.map +0 -1
  1787. package/dist/WatchModeToggle-D_eAiTWJ.js +0 -41
  1788. package/dist/WatchModeToggle-D_eAiTWJ.js.map +0 -1
  1789. package/dist/_plugin-vue_export-helper-BmmBcIzD.js +0 -8
  1790. package/dist/analytics-BZimCWcw.js +0 -7
  1791. package/dist/analytics-BZimCWcw.js.map +0 -1
  1792. package/dist/analytics.d.ts +0 -18
  1793. package/dist/analytics.d.ts.map +0 -1
  1794. package/dist/build-request-security-BQjNr2MD.js +0 -41
  1795. package/dist/build-request-security-BQjNr2MD.js.map +0 -1
  1796. package/dist/code-input-iq-moLxi.js +0 -775
  1797. package/dist/code-input-iq-moLxi.js.map +0 -1
  1798. package/dist/components-B0BwUDFw.js +0 -183
  1799. package/dist/components-B0BwUDFw.js.map +0 -1
  1800. package/dist/components-ChixwQhN.js +0 -61
  1801. package/dist/components-ChixwQhN.js.map +0 -1
  1802. package/dist/computer-D7VW3Ruy.js +0 -562
  1803. package/dist/computer-D7VW3Ruy.js.map +0 -1
  1804. package/dist/consts-CyGRb9dl.js +0 -318
  1805. package/dist/consts-CyGRb9dl.js.map +0 -1
  1806. package/dist/curl-nbw1OxbV.js +0 -54
  1807. package/dist/curl-nbw1OxbV.js.map +0 -1
  1808. package/dist/data-table-PL7e8NRO.js +0 -282
  1809. package/dist/data-table-PL7e8NRO.js.map +0 -1
  1810. package/dist/editor-BZ_J0eze.js +0 -466
  1811. package/dist/editor-BZ_J0eze.js.map +0 -1
  1812. package/dist/environments-ByLK9lnC.js +0 -592
  1813. package/dist/environments-ByLK9lnC.js.map +0 -1
  1814. package/dist/formatters-DOGXZq9R.js +0 -36
  1815. package/dist/formatters-DOGXZq9R.js.map +0 -1
  1816. package/dist/forms-CZX6cFDS.js +0 -42
  1817. package/dist/forms-CZX6cFDS.js.map +0 -1
  1818. package/dist/get-active-environment-CkxyQ1dM.js +0 -19
  1819. package/dist/get-active-environment-CkxyQ1dM.js.map +0 -1
  1820. package/dist/get-resolved-url-SybDPV0U.js +0 -85
  1821. package/dist/get-resolved-url-SybDPV0U.js.map +0 -1
  1822. package/dist/get-server-url-UVN-dx79.js +0 -32
  1823. package/dist/get-server-url-UVN-dx79.js.map +0 -1
  1824. package/dist/get-servers-B_WNlQWB.js +0 -106
  1825. package/dist/get-servers-B_WNlQWB.js.map +0 -1
  1826. package/dist/get-snippet-DBRUSfZ2.js +0 -39
  1827. package/dist/get-snippet-DBRUSfZ2.js.map +0 -1
  1828. package/dist/global-cookies-D3ZS9ON3.js +0 -184
  1829. package/dist/global-cookies-D3ZS9ON3.js.map +0 -1
  1830. package/dist/hooks/useAnalytics.d.ts +0 -19
  1831. package/dist/hooks/useAnalytics.d.ts.map +0 -1
  1832. package/dist/hooks-BvZxH4XB.js +0 -80
  1833. package/dist/hooks-BvZxH4XB.js.map +0 -1
  1834. package/dist/layout-BWiL7dfb.js +0 -81
  1835. package/dist/layout-BWiL7dfb.js.map +0 -1
  1836. package/dist/layouts/Web/index.js.map +0 -1
  1837. package/dist/libs-spbv4P0g.js +0 -249
  1838. package/dist/libs-spbv4P0g.js.map +0 -1
  1839. package/dist/operation-block-B1B3lJPx.js +0 -1674
  1840. package/dist/operation-block-B1B3lJPx.js.map +0 -1
  1841. package/dist/operation-code-sample-DOzAPxLQ.js +0 -1738
  1842. package/dist/operation-code-sample-DOzAPxLQ.js.map +0 -1
  1843. package/dist/parse-curl-BtypQT3D.js +0 -106
  1844. package/dist/parse-curl-BtypQT3D.js.map +0 -1
  1845. package/dist/plugins-B52hCIyZ.js +0 -50
  1846. package/dist/plugins-B52hCIyZ.js.map +0 -1
  1847. package/dist/rabbitjump-CMZXAR6d.js +0 -9
  1848. package/dist/rabbitjump-CMZXAR6d.js.map +0 -1
  1849. package/dist/request-block-C1kLLMEd.js +0 -1466
  1850. package/dist/request-block-C1kLLMEd.js.map +0 -1
  1851. package/dist/resize-D2IYvVdh.js +0 -114
  1852. package/dist/resize-D2IYvVdh.js.map +0 -1
  1853. package/dist/response-block-DmkaDZYs.js +0 -1188
  1854. package/dist/response-block-DmkaDZYs.js.map +0 -1
  1855. package/dist/scalar-address-bar-block-BbysOhkE.js +0 -425
  1856. package/dist/scalar-address-bar-block-BbysOhkE.js.map +0 -1
  1857. package/dist/scalar-auth-selector-block-Bs79QOMA.js +0 -1889
  1858. package/dist/scalar-auth-selector-block-Bs79QOMA.js.map +0 -1
  1859. package/dist/search-CmsQQkjn.js +0 -151
  1860. package/dist/search-CmsQQkjn.js.map +0 -1
  1861. package/dist/send-request-BsTfRiBC.js +0 -348
  1862. package/dist/send-request-BsTfRiBC.js.map +0 -1
  1863. package/dist/server-tcI-OCyx.js +0 -140
  1864. package/dist/server-tcI-OCyx.js.map +0 -1
  1865. package/dist/set-request-cookies-BJJhsU4A.js +0 -88
  1866. package/dist/set-request-cookies-BJJhsU4A.js.map +0 -1
  1867. package/dist/settings-BKk_1lcH.js +0 -455
  1868. package/dist/settings-BKk_1lcH.js.map +0 -1
  1869. package/dist/sidebar-ceSbYmnt.js +0 -217
  1870. package/dist/sidebar-ceSbYmnt.js.map +0 -1
  1871. package/dist/store-DnlAQK5d.js +0 -1512
  1872. package/dist/store-DnlAQK5d.js.map +0 -1
  1873. package/dist/string-template-sS5PtY6T.js +0 -64
  1874. package/dist/string-template-sS5PtY6T.js.map +0 -1
  1875. package/dist/use-global-hot-keys-D8Ai8Qbm.js +0 -274
  1876. package/dist/use-global-hot-keys-D8Ai8Qbm.js.map +0 -1
  1877. package/dist/useSidebar-DLTwHDI-.js +0 -45
  1878. package/dist/useSidebar-DLTwHDI-.js.map +0 -1
  1879. package/dist/v2/components/modals/index.js.map +0 -1
  1880. package/dist/v2/features/app/index.js.map +0 -1
  1881. package/dist/v2/features/modal/index.js.map +0 -1
  1882. package/dist/views/Request/RequestSection/index.js.map +0 -1
  1883. package/dist/watch-mode-Dbaqd9bG.js +0 -375
  1884. package/dist/watch-mode-Dbaqd9bG.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/v2/features/modal/helpers/resolve-route-parameters.ts","../../../../src/v2/features/modal/helpers/restore-workspace-state.ts","../../../../src/v2/helpers/generate-location-id.ts","../../../../src/v2/features/modal/hooks/use-modal-sidebar.ts","../../../../src/v2/features/modal/modal-events.ts","../../../../src/v2/hooks/use-scroll-lock.ts","../../../../src/v2/features/modal/Modal.vue","../../../../src/v2/features/modal/Modal.vue","../../../../src/v2/features/modal/helpers/create-api-client-modal.ts"],"sourcesContent":["import type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { isHttpMethod } from '@scalar/helpers/http/is-http-method'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { getOperationEntries } from '@scalar/workspace-store/navigation'\nimport type { TraversedEntry, TraversedExample } from '@scalar/workspace-store/schemas/navigation'\n\n/** Payload for routing and opening the API client modal. */\nexport type RoutePayload = {\n path: string\n method: HttpMethod\n example?: string\n documentSlug?: string\n}\n\n/** Raw input values that may contain \"default\" placeholders. */\nexport type DefaultEntities = Record<keyof RoutePayload, string>\n\n/** Context for resolving route parameters from the workspace store. */\ntype ResolverContext = {\n store: WorkspaceStore\n documentSlug: string | undefined\n}\n\n/** Type guard to check if an entry is an example. */\nconst isExample = (entry: TraversedEntry): entry is TraversedExample => entry.type === 'example'\n\n/**\n * Gets the document from the workspace store.\n * Returns undefined if the document slug is not provided or the document does not exist.\n */\nconst getDocument = (ctx: ResolverContext) => ctx.store.workspace.documents[ctx.documentSlug ?? '']\n\n/**\n * Resolves the document slug from a raw input value.\n *\n * When \"default\" is specified and no document exists with that slug,\n * we fall back to the active document or the first available document.\n * This ensures a valid document is selected even when the caller does not know which documents exist.\n */\nexport const resolveDocumentSlug = (store: WorkspaceStore, slug: string | undefined): string | undefined => {\n const hasMatchingDocument = slug !== 'default' || store.workspace.documents[slug] !== undefined\n\n if (hasMatchingDocument) {\n return slug\n }\n\n // Fall back to active document, then first available document\n return store.workspace['x-scalar-active-document'] || Object.keys(store.workspace.documents)[0]\n}\n\n/**\n * Resolves the path from a raw input value.\n *\n * When \"default\" is specified, returns the first available path in the document.\n * This is useful for initial navigation when no specific path is requested.\n */\nexport const resolvePath = (ctx: ResolverContext, path: string | undefined): string | undefined => {\n const document = getDocument(ctx)\n\n if (!document) {\n return undefined\n }\n\n if (path === 'default') {\n return Object.keys(document.paths ?? {})[0]\n }\n\n return path\n}\n\n/**\n * Resolves the HTTP method from a raw input value.\n *\n * When \"default\" is specified, returns the first valid HTTP method for the given path.\n * This ensures we select a real method rather than metadata keys like \"parameters\" or \"summary\".\n */\nexport const resolveMethod = (\n ctx: ResolverContext,\n path: string | undefined,\n method: string | undefined,\n): HttpMethod | undefined => {\n const document = getDocument(ctx)\n\n if (!document || !path) {\n return undefined\n }\n\n if (method === 'default') {\n const pathMethods = Object.keys(document.paths?.[path] ?? {})\n return pathMethods.find(isHttpMethod)\n }\n\n return isHttpMethod(method) ? method : undefined\n}\n\n/**\n * Resolves the example name from a raw input value.\n *\n * When \"default\" is specified, returns the first available example name.\n * Falls back to \"default\" when no examples exist, which signals to use the default request body.\n */\nexport const resolveExampleName = (\n ctx: ResolverContext,\n operation: TraversedEntry | undefined,\n exampleKey: string | undefined,\n): string => {\n const document = getDocument(ctx)\n\n if (!document || operation?.type !== 'operation') {\n return 'default'\n }\n\n const examples = operation.children?.filter(isExample) ?? []\n const matchingExample = examples.find((child) => child.name === exampleKey)\n\n if (matchingExample) {\n return matchingExample.name\n }\n\n if (exampleKey === 'default') {\n return examples[0]?.name ?? 'default'\n }\n\n return 'default'\n}\n\n/**\n * Resolves all route parameters from raw input values to their actual values.\n *\n * This function handles \"default\" placeholders by looking up actual values from the workspace store.\n * It ensures the modal can be opened even when the caller does not know specific paths, methods, or examples.\n */\nexport const resolveRouteParameters = (store: WorkspaceStore, params: DefaultEntities): Partial<RoutePayload> => {\n const documentSlug = resolveDocumentSlug(store, params.documentSlug)\n const ctx: ResolverContext = { store, documentSlug }\n\n const path = resolvePath(ctx, params.path)\n const method = resolveMethod(ctx, path, params.method)\n\n const traversedDocument = getDocument(ctx)?.['x-scalar-navigation']\n\n if (!traversedDocument) {\n return { documentSlug, path, method, example: 'default' }\n }\n\n const operations = getOperationEntries(traversedDocument)\n const operation = operations.get(`${path}|${method}`)?.find((entry) => entry.type === 'operation')\n const example = resolveExampleName(ctx, operation, params.example)\n\n return { documentSlug, path, method, example }\n}\n","import type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { unpackProxyObject } from '@scalar/workspace-store/helpers/unpack-proxy'\nimport type { InMemoryWorkspace } from '@scalar/workspace-store/schemas/inmemory-workspace'\n\n/**\n * Restores the state of a workspace document by reverting its state\n * to the specified import, while preserving certain live properties\n * such as servers, security schemes, and selected server.\n */\nexport const restoreWorkspaceState = ({\n workspaceStore,\n workspaceState,\n name,\n}: {\n workspaceStore: WorkspaceStore | null\n workspaceState: InMemoryWorkspace\n name: string\n}): { ok: true } | { ok: false; error: string } => {\n if (!workspaceStore) {\n return { ok: false, error: 'Workspace store is not available' }\n }\n\n const currentDocument = unpackProxyObject(workspaceStore.workspace.documents[name])\n if (!currentDocument) {\n return { ok: false, error: 'Current document not found in workspace store' }\n }\n\n const importingDocument = workspaceState.documents[name]\n if (!importingDocument) {\n return { ok: false, error: 'Importing document not found in workspace state' }\n }\n\n // Preserve some of the document properties we want to keep\n const persistedProperties = {\n selectedServer: currentDocument['x-scalar-selected-server'],\n securitySchemes: currentDocument.components?.securitySchemes,\n servers: currentDocument.servers,\n }\n\n // We only revert the active state of the document itself\n workspaceStore.loadWorkspace({\n meta: {},\n documents: {\n [name]: importingDocument,\n },\n intermediateDocuments: {},\n originalDocuments: {},\n overrides: {},\n history: {},\n auth: {},\n })\n\n const newDocument = unpackProxyObject(workspaceStore.workspace.documents[name])\n if (!newDocument) {\n return { ok: false, error: 'New document not found in workspace store' }\n }\n\n // Now restore the persisted properties\n // ------------------------------------------------------------\n // Server selection\n newDocument['x-scalar-selected-server'] = persistedProperties.selectedServer\n newDocument.servers = persistedProperties.servers\n\n // ------------------------------------------------------------\n // Security schemes\n newDocument.components ??= {}\n newDocument.components.securitySchemes = persistedProperties.securitySchemes\n\n return { ok: true }\n}\n","import { isDefined } from '@scalar/helpers/array/is-defined'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\n\n/**\n * Generates a unique string ID for an API location, based on the document, path, method, and example.\n * Filters out undefined values and serializes the composite array into a stable string.\n *\n * @param params - An object containing document, path, method, and optional example name.\n * @returns A stringified array representing the unique location identifier.\n *\n * Example:\n * generateLocationId({ document: 'mydoc', path: '/users', method: 'get', example: 'default' })\n * // => '[\"mydoc\",\"/users\",\"get\",\"default\"]'\n */\nexport const generateLocationId = ({\n document,\n path,\n method,\n example,\n}: {\n document: string\n path?: string\n method?: HttpMethod\n example?: string\n}) => {\n return JSON.stringify([document, path, method, example].filter(isDefined))\n}\n","import type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { createSidebarState, generateReverseIndex, getChildEntry } from '@scalar/sidebar'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { getParentEntry } from '@scalar/workspace-store/navigation'\nimport type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation'\nimport { type ComputedRef, computed, toValue, watch } from 'vue'\n\nimport type { RoutePayload } from '@/v2/features/modal/helpers/resolve-route-parameters'\nimport { generateLocationId } from '@/v2/helpers/generate-location-id'\n\nexport type UseModalSidebarReturn = {\n handleSelectItem: (id: string) => void\n state: ReturnType<typeof createSidebarState<TraversedEntry>>\n getEntryByLocation: (location: {\n document: string\n path?: string\n method?: HttpMethod\n example?: string\n }) => TraversedEntry | undefined\n}\n\n/**\n * useSidebarState - Custom hook to manage the sidebar state and navigation logic in the Scalar API client\n *\n * This composable manages the sidebar structure, synchronizes selection state\n * with the current route, and provides a handler for selecting sidebar items.\n *\n * Example usage:\n *\n * const { handleSelectItem, sidebarState } = useSidebarState({\n * workspaceStore,\n * workspaceSlug,\n * documentSlug,\n * path,\n * method,\n * exampleName,\n * })\n */\nexport const useModalSidebar = ({\n workspaceStore,\n documentSlug,\n path,\n method,\n exampleName,\n route,\n}: {\n workspaceStore: WorkspaceStore | null\n documentSlug: ComputedRef<string | undefined>\n path: ComputedRef<string | undefined>\n method: ComputedRef<HttpMethod | undefined>\n exampleName: ComputedRef<string | undefined>\n route: (payload: RoutePayload) => void\n}): UseModalSidebarReturn => {\n const entries = computed(\n () => workspaceStore?.workspace.documents[toValue(documentSlug) ?? '']?.['x-scalar-navigation']?.children ?? [],\n )\n const state = createSidebarState(entries)\n\n /**\n * Computed index for fast lookup of sidebar nodes by their unique API location.\n *\n * - Only indexes nodes of type 'operation', or 'example'.\n * - The lookup key is a serialized array of: [operationPath, operationMethod, exampleName?].\n * - Supports precise resolution of sidebar entries given an API \"location\".\n */\n const locationIndex = computed(() =>\n generateReverseIndex({\n items: entries.value,\n nestedKey: 'children',\n filter: (node) => node.type === 'operation' || node.type === 'example',\n getId: (node) => {\n const operation = getParentEntry('operation', node)\n return generateLocationId({\n document: toValue(documentSlug) ?? '',\n path: operation?.path,\n method: operation?.method,\n example: node.type === 'example' ? node.name : undefined,\n })\n },\n }),\n )\n\n /**\n * Looks up a sidebar entry by its unique API location.\n * - First tries to find an entry matching all provided properties (including example).\n * - If not found, falls back to matching only the operation (ignores example field).\n * This allows resolving either examples, operations, or documents as appropriate.\n *\n * @param location - Object specifying the document name, path, method, and optional example name.\n * @returns The matching sidebar entry, or undefined if none found.\n *\n * Example:\n * const entry = getEntryByLocation({\n * document: 'pets',\n * path: '/pets',\n * method: 'get',\n * example: 'default',\n * })\n */\n const getEntryByLocation: UseModalSidebarReturn['getEntryByLocation'] = (location) => {\n // Try to find an entry with the most-specific location (including example)\n const entryWithExample = locationIndex.value.get(\n generateLocationId({\n document: location.document,\n path: location.path,\n method: location.method,\n example: location.example,\n }),\n )\n\n if (entryWithExample) {\n return entryWithExample\n }\n\n // Fallback to the operation (ignoring example) if an example wasn't found or specified\n return locationIndex.value.get(\n generateLocationId({\n document: location.document,\n path: location.path,\n method: location.method,\n }),\n )\n }\n\n /**\n * Handles item selection from the sidebar and routes navigation accordingly.\n *\n * Example:\n * handleSelectItem('id-of-entry')\n */\n const handleSelectItem = (id: string) => {\n const entry = state.getEntryById(id)\n\n if (!entry) {\n console.warn(`Could not find sidebar entry with id ${id} to select`)\n return\n }\n\n // Navigate to the example page\n if (entry.type === 'operation' || entry.type === 'example') {\n // If we are already in the operation, just toggle expansion\n if (state.isSelected(id)) {\n state.setExpanded(id, !state.isExpanded(id))\n return\n }\n\n const operation = getParentEntry('operation', entry)\n const example = getChildEntry('example', entry)\n\n if (example) {\n state.setSelected(example.id)\n state.setExpanded(example.id, true)\n } else {\n state.setSelected(id)\n }\n\n if (!operation) {\n return\n }\n\n return route({\n documentSlug: toValue(documentSlug),\n path: operation.path,\n method: operation.method,\n example: example?.name ?? 'default',\n })\n }\n\n state.setExpanded(id, !state.isExpanded(id))\n return\n }\n\n /** Keep the sidebar state in sync with the modal parameters */\n watch(\n [documentSlug, path, method, exampleName],\n ([newDocument, newPath, newMethod, newExample]) => {\n if (!newDocument) {\n // Reset selection if no document is selected\n state.setSelected(null)\n return\n }\n\n const entry = getEntryByLocation({\n document: newDocument,\n path: newPath,\n method: newMethod,\n example: newExample,\n })\n\n if (entry) {\n state.setSelected(entry.id)\n state.setExpanded(entry.id, true)\n }\n },\n {\n immediate: true,\n },\n )\n\n return {\n handleSelectItem,\n state,\n getEntryByLocation,\n }\n}\n","import type { ModalState } from '@scalar/components'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation'\nimport { type Ref, ref } from 'vue'\n\nimport type { UseModalSidebarReturn } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport { initializeWorkspaceEventHandlers } from '@/v2/workspace-events'\n\nexport function initializeModalEvents({\n eventBus,\n isSidebarOpen,\n sidebarState,\n modalState,\n store,\n}: {\n eventBus: WorkspaceEventBus\n isSidebarOpen: Ref<boolean>\n sidebarState: UseModalSidebarReturn\n modalState: ModalState\n store: WorkspaceStore\n}) {\n /** Initialize workspace event handlers */\n initializeWorkspaceEventHandlers({\n eventBus,\n store: ref(store),\n hooks: {},\n })\n\n //------------------------------------------------------------------------------------\n // Navigation Event Handlers\n //------------------------------------------------------------------------------------\n eventBus.on('scroll-to:nav-item', ({ id }) => sidebarState.handleSelectItem(id))\n\n //------------------------------------------------------------------------------------\n // UI Related Event Handlers\n //------------------------------------------------------------------------------------\n eventBus.on('ui:toggle:sidebar', () => (isSidebarOpen.value = !isSidebarOpen.value))\n eventBus.on('ui:close:client-modal', () => modalState.hide())\n eventBus.on('ui:open:client-modal', (payload) => {\n // Just open the modal\n if (!payload) {\n modalState.show()\n return\n }\n\n // We route to the exact ID\n if ('id' in payload && payload.id) {\n let targetId = payload.id\n\n // If exampleName is provided, try to find the specific example entry\n if ('exampleName' in payload && payload.exampleName) {\n const operationEntry = sidebarState.state.getEntryById(payload.id)\n\n // Try to find the specific example in the operation's children\n if (operationEntry && 'children' in operationEntry && operationEntry.children) {\n const exampleEntry = operationEntry.children.find(\n (child: TraversedEntry) => child.type === 'example' && child.name === payload.exampleName,\n )\n if (exampleEntry) {\n targetId = exampleEntry.id\n }\n }\n }\n\n sidebarState.handleSelectItem(targetId)\n }\n // We must find the ID first from the entries\n else if ('method' in payload && 'path' in payload) {\n sidebarState.handleSelectItem(\n sidebarState.getEntryByLocation({\n document: store.workspace.activeDocument?.['x-scalar-navigation']?.id ?? '',\n path: payload.path,\n method: payload.method,\n example: payload.exampleName,\n })?.id ?? '',\n )\n }\n\n modalState.show()\n })\n}\n","import { type MaybeRefOrGetter, computed, onBeforeUnmount, ref, toValue } from 'vue'\n\n/**\n * useScrollLock - A Vue composition function to lock and unlock scrolling on a specific element.\n *\n * This hook provides a computed ref that allows you to enable or disable scrolling on a given HTMLElement.\n * Locking sets the element's `overflow` style to `'hidden'`.\n * Unlocking restores the original `overflow` value.\n *\n * The lock state will be automatically cleaned up (unlocked) when the component is unmounted.\n *\n * @param element - MaybeRefOrGetter for the HTMLElement to lock scrolling on. Can be a ref or a function.\n * @returns A computed ref: assign `true` to lock, `false` to unlock, read for current state.\n *\n * @example\n * ```ts\n * // In your setup():\n * const container = ref<HTMLElement | null>(null)\n * const scrollLock = useScrollLock(container)\n *\n * // To lock scrolling:\n * scrollLock.value = true\n *\n * // To unlock scrolling:\n * scrollLock.value = false\n * ```\n */\nexport const useScrollLock = (element: MaybeRefOrGetter<HTMLElement | null | undefined>) => {\n const initialValue = ref<string>('')\n const isLocked = ref(false)\n\n // Locks scrolling on the provided element and saves the initial overflow style\n const lock = () => {\n const el = toValue(element)\n\n if (!el) {\n return\n }\n\n // Save the initial overflow value\n initialValue.value = el.style.overflow\n el.style.overflow = 'hidden'\n }\n\n // Unlocks scrolling, restoring or removing the original overflow style\n const unlock = () => {\n const el = toValue(element)\n\n if (!el) {\n return\n }\n\n if (initialValue.value !== '') {\n el.style.overflow = initialValue.value\n } else {\n el.style.removeProperty('overflow')\n }\n }\n\n // Computed ref acting as a control interface for scroll lock\n const state = computed({\n get: () => isLocked.value,\n set: (value: boolean) => {\n isLocked.value = value\n value ? lock() : unlock()\n },\n })\n\n // Clean up when component is unmounted\n onBeforeUnmount(() => {\n if (isLocked.value) {\n unlock()\n }\n })\n\n return state\n}\n","<script lang=\"ts\">\nexport type ModalProps = {\n /** The workspace store must be initialized and passed in */\n workspaceStore: WorkspaceStore\n /** The document must be initialized and passed in */\n document: ComputedRef<WorkspaceDocument | null>\n /** The path must be initialized and passed in */\n path: ComputedRef<string | undefined>\n /** The event bus for handling all events */\n eventBus: WorkspaceEventBus\n /** The method must be initialized and passed in */\n method: ComputedRef<HttpMethod | undefined>\n /** The example name must be initialized and passed in */\n exampleName: ComputedRef<string | undefined>\n /** Controls the visibility of the modal */\n modalState: ModalState\n /** The sidebar state must be initialized and passed in */\n sidebarState: UseModalSidebarReturn\n /** Api client plugins to include in the modal */\n plugins: ClientPlugin[]\n /** Subset of the configuration options for the modal */\n options: MaybeRefOrGetter<\n Partial<\n Pick<\n ApiReferenceConfigurationRaw,\n | 'authentication'\n | 'baseServerURL'\n | 'hideClientButton'\n | 'hiddenClients'\n | 'servers'\n >\n >\n >\n}\n\n/**\n * Scalar Api Client Modal\n *\n * This component is used to render the API Client Modal\n */\nexport default {}\n</script>\n\n<script setup lang=\"ts\">\nimport { type ModalState, type ScalarListboxOption } from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference'\nimport { ScalarToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { WorkspaceDocument } from '@scalar/workspace-store/schemas'\nimport {\n computed,\n onBeforeUnmount,\n ref,\n toValue,\n watch,\n type ComputedRef,\n type MaybeRefOrGetter,\n} from 'vue'\n\nimport { mergeSecurity } from '@/v2/blocks/scalar-auth-selector-block/helpers/merge-security'\nimport ModalClientContainer from '@/v2/components/modals/ModalClientContainer.vue'\nimport { Sidebar, SidebarToggle } from '@/v2/components/sidebar'\nimport { type UseModalSidebarReturn } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport { initializeModalEvents } from '@/v2/features/modal/modal-events'\nimport Operation from '@/v2/features/operation/Operation.vue'\nimport { getActiveEnvironment } from '@/v2/helpers/get-active-environment'\nimport { useGlobalHotKeys } from '@/v2/hooks/use-global-hot-keys'\nimport { useScrollLock } from '@/v2/hooks/use-scroll-lock'\n\nconst {\n document,\n eventBus,\n modalState,\n options,\n plugins,\n sidebarState,\n workspaceStore,\n} = defineProps<ModalProps>()\n\nconst activeWorkspace: ScalarListboxOption = {\n label: 'default',\n id: 'default',\n}\n\n/** Controls the visibility of the sidebar. */\nconst isSidebarOpen = ref(false)\n\n/** Initialize modal events */\ninitializeModalEvents({\n eventBus,\n isSidebarOpen,\n sidebarState,\n modalState,\n store: workspaceStore,\n})\n\n/** Register global hotkeys for the app, passing the workspace event bus and layout state */\nuseGlobalHotKeys(eventBus, 'modal', () => !modalState.open)\n\n/** Clean up on close */\nconst cleanUp = () => {\n eventBus.emit('operation:cancel:request')\n}\n\nconst isLocked = useScrollLock(() => {\n if (typeof window !== 'undefined') {\n return window.document.body\n }\n return null\n})\n\nwatch(\n () => modalState.open,\n (open) => {\n // Make sure scrolling is locked or unlocked when the modal is opened or closed\n isLocked.value = open\n\n if (!open) {\n cleanUp()\n }\n },\n)\n\n// Ensure we add our scalar wrapper class to the headless ui root\nonBeforeUnmount(() => cleanUp())\n\n/** Default sidebar width in pixels. */\nconst DEFAULT_SIDEBAR_WIDTH = 288\n\n/** Width of the sidebar, with fallback to default. */\nconst sidebarWidth = computed(\n () =>\n workspaceStore?.workspace?.['x-scalar-sidebar-width'] ??\n DEFAULT_SIDEBAR_WIDTH,\n)\n\n/** Handler for sidebar width changes. */\nconst handleSidebarWidthUpdate = (width: number) =>\n workspaceStore?.update('x-scalar-sidebar-width', width)\n\n/**\n * Merged environment variables from workspace and document levels.\n * Variables from both sources are combined, with document variables\n * taking precedence in case of naming conflicts.\n */\nconst environment = computed(() =>\n getActiveEnvironment(workspaceStore, document.value),\n)\n\n/** Merge authentication config with the document security schemes */\nconst securitySchemes = computed(() =>\n mergeSecurity(\n document.value?.components?.securitySchemes,\n toValue(options)?.authentication?.securitySchemes,\n workspaceStore.auth,\n document.value?.['x-scalar-navigation']?.name ?? '',\n ),\n)\n\ndefineExpose({\n sidebarWidth,\n environment,\n})\n</script>\n\n<template>\n <ModalClientContainer :modalState>\n <!-- Toasts -->\n <ScalarToasts />\n\n <!-- If we have a document, path and method, render the operation -->\n <main\n v-if=\"document.value && path?.value && method?.value\"\n class=\"relative flex h-full min-h-0 w-full flex-1\">\n <SidebarToggle\n v-model=\"isSidebarOpen\"\n class=\"absolute top-2 left-3 z-2\" />\n <Sidebar\n v-show=\"isSidebarOpen\"\n v-model:sidebarWidth=\"sidebarWidth\"\n :activeWorkspace=\"activeWorkspace\"\n class=\"h-full max-md:absolute! max-md:w-full!\"\n :documents=\"[document.value]\"\n :eventBus\n :isDroppable=\"() => false\"\n layout=\"modal\"\n :sidebarState=\"sidebarState.state\"\n :workspaces=\"[]\"\n @selectItem=\"sidebarState.handleSelectItem\"\n @update:sidebarWidth=\"handleSidebarWidthUpdate\" />\n <Operation\n :activeWorkspace=\"activeWorkspace\"\n class=\"flex-1\"\n :document=\"document.value\"\n :documentSlug=\"document.value['x-scalar-navigation']?.id ?? ''\"\n :environment\n :eventBus\n :exampleName=\"exampleName?.value\"\n layout=\"modal\"\n :method=\"method?.value\"\n :options\n :path=\"path?.value\"\n :plugins\n :securitySchemes\n :workspaceStore />\n </main>\n <!-- Empty state -->\n <div\n v-else\n class=\"flex h-full w-full items-center justify-center\">\n <span class=\"text-c-3\">No document selected</span>\n </div>\n </ModalClientContainer>\n</template>\n","<script lang=\"ts\">\nexport type ModalProps = {\n /** The workspace store must be initialized and passed in */\n workspaceStore: WorkspaceStore\n /** The document must be initialized and passed in */\n document: ComputedRef<WorkspaceDocument | null>\n /** The path must be initialized and passed in */\n path: ComputedRef<string | undefined>\n /** The event bus for handling all events */\n eventBus: WorkspaceEventBus\n /** The method must be initialized and passed in */\n method: ComputedRef<HttpMethod | undefined>\n /** The example name must be initialized and passed in */\n exampleName: ComputedRef<string | undefined>\n /** Controls the visibility of the modal */\n modalState: ModalState\n /** The sidebar state must be initialized and passed in */\n sidebarState: UseModalSidebarReturn\n /** Api client plugins to include in the modal */\n plugins: ClientPlugin[]\n /** Subset of the configuration options for the modal */\n options: MaybeRefOrGetter<\n Partial<\n Pick<\n ApiReferenceConfigurationRaw,\n | 'authentication'\n | 'baseServerURL'\n | 'hideClientButton'\n | 'hiddenClients'\n | 'servers'\n >\n >\n >\n}\n\n/**\n * Scalar Api Client Modal\n *\n * This component is used to render the API Client Modal\n */\nexport default {}\n</script>\n\n<script setup lang=\"ts\">\nimport { type ModalState, type ScalarListboxOption } from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference'\nimport { ScalarToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { WorkspaceDocument } from '@scalar/workspace-store/schemas'\nimport {\n computed,\n onBeforeUnmount,\n ref,\n toValue,\n watch,\n type ComputedRef,\n type MaybeRefOrGetter,\n} from 'vue'\n\nimport { mergeSecurity } from '@/v2/blocks/scalar-auth-selector-block/helpers/merge-security'\nimport ModalClientContainer from '@/v2/components/modals/ModalClientContainer.vue'\nimport { Sidebar, SidebarToggle } from '@/v2/components/sidebar'\nimport { type UseModalSidebarReturn } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport { initializeModalEvents } from '@/v2/features/modal/modal-events'\nimport Operation from '@/v2/features/operation/Operation.vue'\nimport { getActiveEnvironment } from '@/v2/helpers/get-active-environment'\nimport { useGlobalHotKeys } from '@/v2/hooks/use-global-hot-keys'\nimport { useScrollLock } from '@/v2/hooks/use-scroll-lock'\n\nconst {\n document,\n eventBus,\n modalState,\n options,\n plugins,\n sidebarState,\n workspaceStore,\n} = defineProps<ModalProps>()\n\nconst activeWorkspace: ScalarListboxOption = {\n label: 'default',\n id: 'default',\n}\n\n/** Controls the visibility of the sidebar. */\nconst isSidebarOpen = ref(false)\n\n/** Initialize modal events */\ninitializeModalEvents({\n eventBus,\n isSidebarOpen,\n sidebarState,\n modalState,\n store: workspaceStore,\n})\n\n/** Register global hotkeys for the app, passing the workspace event bus and layout state */\nuseGlobalHotKeys(eventBus, 'modal', () => !modalState.open)\n\n/** Clean up on close */\nconst cleanUp = () => {\n eventBus.emit('operation:cancel:request')\n}\n\nconst isLocked = useScrollLock(() => {\n if (typeof window !== 'undefined') {\n return window.document.body\n }\n return null\n})\n\nwatch(\n () => modalState.open,\n (open) => {\n // Make sure scrolling is locked or unlocked when the modal is opened or closed\n isLocked.value = open\n\n if (!open) {\n cleanUp()\n }\n },\n)\n\n// Ensure we add our scalar wrapper class to the headless ui root\nonBeforeUnmount(() => cleanUp())\n\n/** Default sidebar width in pixels. */\nconst DEFAULT_SIDEBAR_WIDTH = 288\n\n/** Width of the sidebar, with fallback to default. */\nconst sidebarWidth = computed(\n () =>\n workspaceStore?.workspace?.['x-scalar-sidebar-width'] ??\n DEFAULT_SIDEBAR_WIDTH,\n)\n\n/** Handler for sidebar width changes. */\nconst handleSidebarWidthUpdate = (width: number) =>\n workspaceStore?.update('x-scalar-sidebar-width', width)\n\n/**\n * Merged environment variables from workspace and document levels.\n * Variables from both sources are combined, with document variables\n * taking precedence in case of naming conflicts.\n */\nconst environment = computed(() =>\n getActiveEnvironment(workspaceStore, document.value),\n)\n\n/** Merge authentication config with the document security schemes */\nconst securitySchemes = computed(() =>\n mergeSecurity(\n document.value?.components?.securitySchemes,\n toValue(options)?.authentication?.securitySchemes,\n workspaceStore.auth,\n document.value?.['x-scalar-navigation']?.name ?? '',\n ),\n)\n\ndefineExpose({\n sidebarWidth,\n environment,\n})\n</script>\n\n<template>\n <ModalClientContainer :modalState>\n <!-- Toasts -->\n <ScalarToasts />\n\n <!-- If we have a document, path and method, render the operation -->\n <main\n v-if=\"document.value && path?.value && method?.value\"\n class=\"relative flex h-full min-h-0 w-full flex-1\">\n <SidebarToggle\n v-model=\"isSidebarOpen\"\n class=\"absolute top-2 left-3 z-2\" />\n <Sidebar\n v-show=\"isSidebarOpen\"\n v-model:sidebarWidth=\"sidebarWidth\"\n :activeWorkspace=\"activeWorkspace\"\n class=\"h-full max-md:absolute! max-md:w-full!\"\n :documents=\"[document.value]\"\n :eventBus\n :isDroppable=\"() => false\"\n layout=\"modal\"\n :sidebarState=\"sidebarState.state\"\n :workspaces=\"[]\"\n @selectItem=\"sidebarState.handleSelectItem\"\n @update:sidebarWidth=\"handleSidebarWidthUpdate\" />\n <Operation\n :activeWorkspace=\"activeWorkspace\"\n class=\"flex-1\"\n :document=\"document.value\"\n :documentSlug=\"document.value['x-scalar-navigation']?.id ?? ''\"\n :environment\n :eventBus\n :exampleName=\"exampleName?.value\"\n layout=\"modal\"\n :method=\"method?.value\"\n :options\n :path=\"path?.value\"\n :plugins\n :securitySchemes\n :workspaceStore />\n </main>\n <!-- Empty state -->\n <div\n v-else\n class=\"flex h-full w-full items-center justify-center\">\n <span class=\"text-c-3\">No document selected</span>\n </div>\n </ModalClientContainer>\n</template>\n","import { type ModalState, useModal } from '@scalar/components'\nimport type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport { type WorkspaceEventBus, createWorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { InMemoryWorkspace } from '@scalar/workspace-store/schemas/inmemory-workspace'\nimport { type App, computed, createApp, reactive, ref, watch } from 'vue'\n\nimport {\n type DefaultEntities,\n type RoutePayload,\n resolveRouteParameters,\n} from '@/v2/features/modal/helpers/resolve-route-parameters'\nimport { restoreWorkspaceState } from '@/v2/features/modal/helpers/restore-workspace-state'\nimport { useModalSidebar } from '@/v2/features/modal/hooks/use-modal-sidebar'\nimport Modal, { type ModalProps } from '@/v2/features/modal/Modal.vue'\n\ntype CreateApiClientModalOptions = {\n /** Element to mount the client modal to. */\n el: HTMLElement | null\n /**\n * Will attempt to mount the references immediately.\n * For SSR this may need to be disabled and handled manually on the client side.\n */\n mountOnInitialize?: boolean\n /** You can pass in an event bus if you have one already, or we will create one */\n eventBus?: WorkspaceEventBus\n /** The workspace store must be initialized and passed in. */\n workspaceStore: WorkspaceStore\n /** Api client plugins to include in the modal */\n plugins?: ClientPlugin[]\n /** Subset of the configuration options for the modal, if you want it to be reactive ensure its a ref */\n options?: ModalProps['options']\n}\n\nexport type ApiClientModal = {\n app: App\n open: (payload?: RoutePayload) => void\n mount: (mountingEl: HTMLElement | null) => void\n route: (payload: RoutePayload) => void\n modalState: ModalState\n}\n\n/**\n * Creates the API Client Modal.\n *\n * The modal does not require a router. Instead, navigation is handled by setting\n * active entities directly through the returned `route` function.\n */\nexport const createApiClientModal = ({\n el,\n eventBus = createWorkspaceEventBus({\n debug: import.meta.env.DEV,\n }),\n mountOnInitialize = true,\n plugins = [],\n workspaceStore,\n options = {},\n}: CreateApiClientModalOptions): ApiClientModal => {\n const defaultEntities: DefaultEntities = {\n path: 'default',\n method: 'default',\n example: 'default',\n documentSlug: workspaceStore.workspace['x-scalar-active-document'] || 'default',\n }\n\n const workspaceStoreSnapshot = ref<InMemoryWorkspace | null>(null)\n\n const parameters = reactive<DefaultEntities>({ ...defaultEntities })\n\n /** Navigate to the specified path, method, and example. */\n const route = (payload: RoutePayload): void => {\n Object.assign(parameters, defaultEntities, payload)\n }\n\n /** Resolved parameters from the workspace store. */\n const resolvedParameters = computed(() => resolveRouteParameters(workspaceStore, parameters))\n const documentSlug = computed(() => resolvedParameters.value.documentSlug)\n const path = computed(() => resolvedParameters.value.path)\n const method = computed(() => resolvedParameters.value.method)\n const exampleName = computed(() => resolvedParameters.value.example)\n /** The document from the workspace store. */\n const document = computed(() => workspaceStore.workspace.documents[documentSlug.value ?? ''] ?? null)\n\n /** Sidebar state and selection handling. */\n const sidebarState = useModalSidebar({\n workspaceStore,\n documentSlug: documentSlug,\n path: path,\n method: method,\n exampleName: exampleName,\n route,\n })\n\n const modalState = useModal()\n\n const app = createApp(Modal, {\n document,\n eventBus,\n exampleName,\n method,\n modalState,\n path,\n plugins,\n sidebarState,\n workspaceStore,\n options,\n } satisfies ModalProps)\n\n /** Snapshot the workspace store when the modal is opened. */\n const handleModalOpen = () => {\n workspaceStoreSnapshot.value = window.structuredClone(workspaceStore.exportWorkspace())\n }\n\n /** Restore the workspace store when the modal is closed. */\n const handleModalClose = () => {\n if (!workspaceStoreSnapshot.value) {\n console.warn('No workspace store snapshot to restore')\n return\n }\n\n const result = restoreWorkspaceState({\n workspaceStore,\n workspaceState: workspaceStoreSnapshot.value,\n name: documentSlug.value ?? '',\n })\n\n if (!result.ok) {\n console.error('Failed to restore workspace state', result.error)\n }\n return\n }\n\n watch(\n () => modalState.open,\n (open) => (open ? handleModalOpen() : handleModalClose()),\n )\n\n // Use a unique id prefix to prevent collisions with other Vue apps on the page\n app.config.idPrefix = 'scalar-client'\n\n /** Mount the modal to a given element. */\n const mount = (mountingEl: HTMLElement | null = el): void => {\n if (!mountingEl) {\n console.error(\n '[@scalar/api-client] Could not create the API client Modal.',\n 'Invalid HTML element provided.',\n 'Read more: https://github.com/scalar/scalar/tree/main/packages/api-client',\n )\n return\n }\n app.mount(mountingEl)\n }\n\n if (mountOnInitialize) {\n mount()\n }\n\n return {\n /** The Vue app instance for the modal. Use with caution. */\n app,\n /** Open the modal and optionally navigate to a specific route. */\n open: (payload?: RoutePayload): void => {\n modalState.open = true\n if (payload) {\n route(payload)\n }\n },\n /** Mount the modal to a given element. */\n mount,\n /** Navigate to the specified path, method, and example. */\n route,\n /** Controls the visibility of the modal. */\n modalState,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,IAAM,aAAa,UAAqD,MAAM,SAAS;;;;;AAMvF,IAAM,eAAe,QAAyB,IAAI,MAAM,UAAU,UAAU,IAAI,gBAAgB;;;;;;;;AAShG,IAAa,uBAAuB,OAAuB,SAAiD;AAG1G,KAF4B,SAAS,aAAa,MAAM,UAAU,UAAU,UAAU,KAAA,EAGpF,QAAO;AAIT,QAAO,MAAM,UAAU,+BAA+B,OAAO,KAAK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EACA;EACA;EACA;EACA;EACA;EACD,CAAsB;;CAGvB,MAAM,wBAAwB;AAC5B,yBAAuB,QAAQ,OAAO,gBAAgB,eAAe,iBAAiB,CAAC;;;CAIzF,MAAM,yBAAyB;AAC7B,MAAI,CAAC,uBAAuB,OAAO;AACjC,WAAQ,KAAK,yCAAyC;AACtD;;EAGF,MAAM,SAAS,sBAAsB;GACnC;GACA,gBAAgB,uBAAuB;GACvC,MAAM,aAAa,SAAS;GAC7B,CAAC;AAEF,MAAI,CAAC,OAAO,GACV,SAAQ,MAAM,qCAAqC,OAAO,MAAM;;AAKpE,aACQ,WAAW,OAChB,SAAU,OAAO,iBAAiB,GAAG,kBAAkB,CACzD;AAGD,KAAI,OAAO,WAAW;;CAGtB,MAAM,SAAS,aAAiC,OAAa;AAC3D,MAAI,CAAC,YAAY;AACf,WAAQ,MACN,+DACA,kCACA,4EACD;AACD;;AAEF,MAAI,MAAM,WAAW;;AAGvB,KAAI,kBACF,QAAO;AAGT,QAAO;EAEL;EAEA,OAAO,YAAiC;AACtC,cAAW,OAAO;AAClB,OAAI,QACF,OAAM,QAAQ;;EAIlB;EAEA;EAEA;EACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/views/Request/RequestSection/helpers/filter-security-requirements.ts"],"sourcesContent":["import type { Collection, SecurityScheme } from '@scalar/oas-utils/entities/spec'\n\n/**\n * Takes in selected security and filters it with the requirements\n */\nexport const filterSecurityRequirements = (\n securityRequirements: Collection['security'],\n selectedSecuritySchemeUids: Collection['selectedSecuritySchemeUids'] = [],\n securitySchemes: Record<string, SecurityScheme> = {},\n): SecurityScheme[] => {\n // Return empty array if no security requirements exist\n if (!securityRequirements || securityRequirements.length === 0) {\n return []\n }\n\n // Filter out optional security requirements (empty objects)\n const nonOptionalRequirements = securityRequirements.filter((requirement) => Object.keys(requirement).length > 0)\n\n // Return empty array if only optional security requirements exist\n if (nonOptionalRequirements.length === 0) {\n return []\n }\n\n // If no security schemes are selected, return the first available security scheme\n if (selectedSecuritySchemeUids.length === 0) {\n const firstRequirement = nonOptionalRequirements[0]\n const firstSchemeNameKey = firstRequirement ? Object.keys(firstRequirement)[0] : undefined\n\n // Find the security scheme that matches the first requirement\n const matchingScheme = Object.values(securitySchemes).find((scheme) => scheme.nameKey === firstSchemeNameKey)\n\n return matchingScheme ? [matchingScheme] : []\n }\n\n // Create a Set of required security combinations for fast lookup\n const requiredCombinations = new Set(\n nonOptionalRequirements.map((requirement) => Object.keys(requirement).sort().join(',')),\n )\n\n const result: SecurityScheme[] = []\n\n for (const uids of selectedSecuritySchemeUids) {\n // Handle both single uid and array of uids\n const schemeUids = Array.isArray(uids) ? uids : [uids]\n\n // Get valid schemes and their name keys in one pass\n const validSchemes: SecurityScheme[] = []\n const nameKeys: string[] = []\n\n for (const uid of schemeUids) {\n const scheme = securitySchemes[uid]\n if (scheme?.nameKey) {\n validSchemes.push(scheme)\n nameKeys.push(scheme.nameKey)\n }\n }\n\n // Check if this combination is required\n if (nameKeys.length > 0) {\n const key = nameKeys.sort().join(',')\n if (requiredCombinations.has(key)) {\n result.push(...validSchemes)\n }\n }\n }\n\n return result\n}\n"],"mappings":";;;;;;;;;AAKA,IAAa,8BACX,sBACA,6BAAuE,EAAE,EACzE,kBAAkD,EAAE,KAC/B;AAErB,KAAI,CAAC,wBAAwB,qBAAqB,WAAW,EAC3D,QAAO,EAAE;CAIX,MAAM,0BAA0B,qBAAqB,QAAQ,gBAAgB,OAAO,KAAK,YAAY,CAAC,SAAS,EAAE;AAGjH,KAAI,wBAAwB,WAAW,EACrC,QAAO,EAAE;AAIX,KAAI,2BAA2B,WAAW,GAAG;EAC3C,MAAM,mBAAmB,wBAAwB;EACjD,MAAM,qBAAqB,mBAAmB,OAAO,KAAK,iBAAiB,CAAC,KAAK,KAAA;EAGjF,MAAM,iBAAiB,OAAO,OAAO,gBAAgB,CAAC,MAAM,WAAW,OAAO,YAAY,mBAAmB;AAE7G,SAAO,iBAAiB,CAAC,eAAe,GAAG,EAAE;;CAI/C,MAAM,uBAAuB,IAAI,IAC/B,wBAAwB,KAAK,gBAAgB,OAAO,KAAK,YAAY,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CACxF;CAED,MAAM,SAA2B,EAAE;AAEnC,MAAK,MAAM,QAAQ,4BAA4B;EAE7C,MAAM,aAAa,MAAM,QAAQ,KAAK,GAAG,OAAO,CAAC,KAAK;EAGtD,MAAM,eAAiC,EAAE;EACzC,MAAM,WAAqB,EAAE;AAE7B,OAAK,MAAM,OAAO,YAAY;GAC5B,MAAM,SAAS,gBAAgB;AAC/B,OAAI,QAAQ,SAAS;AACnB,iBAAa,KAAK,OAAO;AACzB,aAAS,KAAK,OAAO,QAAQ;;;AAKjC,MAAI,SAAS,SAAS,GAAG;GACvB,MAAM,MAAM,SAAS,MAAM,CAAC,KAAK,IAAI;AACrC,OAAI,qBAAqB,IAAI,IAAI,CAC/B,QAAO,KAAK,GAAG,aAAa;;;AAKlC,QAAO"}
@@ -1,375 +0,0 @@
1
- import { isHttpMethod, schemaModel } from "@scalar/oas-utils/helpers";
2
- import { collectionSchema, createExampleFromRequest, requestSchema, securitySchemeSchema, serverSchema, tagSchema } from "@scalar/oas-utils/entities/spec";
3
- import { z } from "zod";
4
- import { getNestedValue } from "@scalar/object-utils/nested";
5
- import microdiff from "microdiff";
6
- //#region src/views/Request/libs/watch-mode.ts
7
- /**
8
- * Combine Rename Diffs
9
- * Rename diffs show up as a delete and an add.
10
- * This will go through the diff and combine any diff items which are next to each other which go from remove to add.
11
- *
12
- * - first we check if the payloads are the same then it was just a simple rename
13
- * - next we will add the rename and also handle any changes in the diff
14
- */
15
- var combineRenameDiffs = (diff, pathPrefix = []) => {
16
- const combined = [];
17
- let skipNext = false;
18
- for (let i = 0; i < diff.length; i++) {
19
- if (skipNext) {
20
- skipNext = false;
21
- continue;
22
- }
23
- const current = diff[i];
24
- const next = diff[i + 1];
25
- if (!current) continue;
26
- if (pathPrefix.length) {
27
- current.path = [...pathPrefix, ...current.path];
28
- if (next) next.path = [...pathPrefix, ...next.path];
29
- } else if (current.path[0] !== "paths") {
30
- combined.push(current);
31
- continue;
32
- }
33
- if (current.type === "REMOVE" && next?.type === "CREATE") {
34
- const [, currPath, currMethod] = current.path;
35
- const [, nextPath, nextMethod] = next.path;
36
- const nestedPrefix = ["paths", nextPath].filter((p) => typeof p === "string");
37
- if (currPath !== nextPath) combined.push({
38
- type: "CHANGE",
39
- path: ["paths", "path"],
40
- oldValue: currPath,
41
- value: nextPath
42
- });
43
- if (currMethod && typeof nextMethod === "string" && currMethod !== nextMethod && nextPath) {
44
- combined.push({
45
- type: "CHANGE",
46
- path: [
47
- "paths",
48
- nextPath,
49
- "method"
50
- ],
51
- oldValue: currMethod,
52
- value: nextMethod
53
- });
54
- nestedPrefix.push(nextMethod);
55
- }
56
- if (pathPrefix.length === 0) {
57
- const innerDiff = microdiff(current.oldValue, next.value);
58
- if (innerDiff.length) {
59
- const innerCombined = combineRenameDiffs(innerDiff, nestedPrefix);
60
- combined.push(...innerCombined);
61
- }
62
- }
63
- skipNext = true;
64
- } else if (current.type === "CREATE" && current.path.length > 3 && typeof current.path.at(-1) !== "number") combined.push({
65
- ...current,
66
- type: "CHANGE",
67
- oldValue: void 0
68
- });
69
- else if (current.type === "REMOVE" && current.path.length > 3 && typeof current.path.at(-1) !== "number") combined.push({
70
- ...current,
71
- type: "CHANGE",
72
- value: void 0
73
- });
74
- else combined.push(current);
75
- }
76
- return combined;
77
- };
78
- /** Like array.find but returns the resource instead of the uid */
79
- var findResource = (arr, resources, condition) => {
80
- for (const uid of arr) {
81
- const resource = resources[uid];
82
- if (resource && condition(resource)) return resource;
83
- }
84
- return null;
85
- };
86
- /** Helper function to unwrap optional and default schemas */
87
- var unwrapSchema = (schema) => {
88
- if (schema instanceof z.ZodOptional) {
89
- const unwrapped = schema.unwrap();
90
- if (unwrapped instanceof z.ZodType) return unwrapSchema(unwrapped);
91
- }
92
- if (schema instanceof z.ZodDefault) {
93
- const innerType = schema._zod.def.innerType;
94
- if (innerType instanceof z.ZodType) return unwrapSchema(innerType);
95
- }
96
- if (schema instanceof z.ZodCatch) {
97
- const innerType = schema._zod.def.innerType;
98
- if (innerType instanceof z.ZodType) return unwrapSchema(innerType);
99
- }
100
- if (schema instanceof z.ZodPipe) {
101
- const inType = schema._zod.def.in;
102
- if (inType instanceof z.ZodType) return unwrapSchema(inType);
103
- }
104
- return schema;
105
- };
106
- /**
107
- * Traverses a zod schema based on the path and returns the schema at the end of the path
108
- * or null if the path doesn't exist. Handles optional unwrapping, records, and arrays
109
- */
110
- var traverseZodSchema = (schema, path) => {
111
- let currentSchema = schema;
112
- for (const key of path) {
113
- currentSchema = unwrapSchema(currentSchema);
114
- if (currentSchema instanceof z.ZodAny) return currentSchema;
115
- if (currentSchema instanceof z.ZodObject && typeof key === "string" && key in currentSchema.shape) {
116
- const shapeValue = currentSchema.shape[key];
117
- if (shapeValue instanceof z.ZodType) currentSchema = shapeValue;
118
- else return null;
119
- } else if (currentSchema instanceof z.ZodArray) if (typeof key === "number") if (currentSchema.element instanceof z.ZodType) currentSchema = currentSchema.element;
120
- else return null;
121
- else if (typeof key === "string") {
122
- if (currentSchema.element instanceof z.ZodType) currentSchema = currentSchema.element;
123
- else return null;
124
- if (currentSchema instanceof z.ZodObject && key in currentSchema.shape) {
125
- const shapeValue = currentSchema.shape[key];
126
- if (shapeValue instanceof z.ZodType) currentSchema = shapeValue;
127
- else return null;
128
- } else return null;
129
- } else return null;
130
- else if (currentSchema instanceof z.ZodRecord) {
131
- const valueSchema = currentSchema._zod.def.valueType;
132
- if (!valueSchema || !(valueSchema instanceof z.ZodType)) return null;
133
- if (typeof key === "string") {
134
- currentSchema = valueSchema;
135
- currentSchema = unwrapSchema(currentSchema);
136
- } else if (typeof key === "number") {
137
- currentSchema = valueSchema;
138
- currentSchema = unwrapSchema(currentSchema);
139
- if (currentSchema instanceof z.ZodArray) if (currentSchema.element instanceof z.ZodType) currentSchema = currentSchema.element;
140
- else return null;
141
- } else currentSchema = valueSchema;
142
- } else return null;
143
- currentSchema = unwrapSchema(currentSchema);
144
- }
145
- return currentSchema;
146
- };
147
- /**
148
- * Takes in diff, uses the path to get to the nested schema then parse the value
149
- * If there is a sub schema and it successfully parses, both the path and new value are valid and returned as such
150
- *
151
- * We return a tuple to make it easier to pass into the mutators
152
- */
153
- var parseDiff = (schema, diff) => {
154
- const parsedSchema = traverseZodSchema(schema, diff.path);
155
- if (!parsedSchema) return null;
156
- const path = diff.path.join(".");
157
- const pathMinusOne = diff.path.slice(0, -1).join(".");
158
- if (diff.type === "REMOVE") return {
159
- path,
160
- pathMinusOne,
161
- value: void 0
162
- };
163
- const parsedValue = schemaModel(diff.value, parsedSchema, false);
164
- if (typeof parsedValue === "undefined" || parsedValue === null) return null;
165
- return {
166
- path,
167
- pathMinusOne,
168
- value: parsedValue
169
- };
170
- };
171
- /**
172
- * Transforms the diff into a payload for the collection mutator then executes that mutation
173
- *
174
- * @returns true if it succeeds, and false for a failure
175
- */
176
- var mutateCollectionDiff = (diff, { activeCollection }, { collectionMutators }) => {
177
- if (!activeCollection.value) return false;
178
- if (typeof diff.path[diff.path.length - 1] === "number" && (diff.type === "CREATE" || diff.type === "REMOVE")) {
179
- const parsed = parseDiff(collectionSchema, {
180
- ...diff,
181
- path: diff.path
182
- });
183
- if (!parsed) return false;
184
- const oldValue = [...getNestedValue(activeCollection.value, parsed.pathMinusOne)];
185
- if (diff.type === "CREATE") oldValue.push(parsed.value);
186
- else if (diff.type === "REMOVE") oldValue.pop();
187
- collectionMutators.edit(activeCollection.value.uid, parsed.pathMinusOne, oldValue);
188
- } else {
189
- const parsed = parseDiff(collectionSchema, diff);
190
- if (!parsed) return false;
191
- collectionMutators.edit(activeCollection.value.uid, parsed.path, parsed.value);
192
- }
193
- return true;
194
- };
195
- /**
196
- * Currently we just generate new examples
197
- *
198
- * TODO: diff the changes in the examples and just update what we need to
199
- */
200
- var updateRequestExamples = (requestUid, store) => {
201
- const { requests, requestExamples, requestExampleMutators } = store;
202
- const request = requests[requestUid];
203
- request?.examples.forEach((exampleUid) => {
204
- const newExample = createExampleFromRequest(request, requestExamples[exampleUid]?.name ?? "Default");
205
- if (newExample) requestExampleMutators.set({
206
- ...newExample,
207
- uid: exampleUid
208
- });
209
- });
210
- };
211
- /**
212
- * Generates an array of payloads for the request mutator from the request diff, also executes the mutation
213
- */
214
- var mutateRequestDiff = (diff, { activeCollection }, store) => {
215
- if (!activeCollection.value) return false;
216
- const { requests, requestMutators } = store;
217
- const [, path, method, ...keys] = diff.path;
218
- if (path === "path" && diff.type === "CHANGE") activeCollection.value.requests.forEach((uid) => {
219
- if (requests[uid]?.path === diff.oldValue) requestMutators.edit(uid, "path", diff.value);
220
- });
221
- else if (method === "method" && diff.type === "CHANGE") activeCollection.value.requests.forEach((uid) => {
222
- if (requests[uid]?.method === diff.oldValue && requests[uid]?.path === path) requestMutators.edit(uid, "method", diff.value);
223
- });
224
- else if (diff.type !== "CHANGE" && typeof keys.at(-1) === "number") {
225
- const request = findResource(activeCollection.value.requests, requests, (r) => r.path === path && r.method === method);
226
- const parsed = parseDiff(requestSchema, {
227
- ...diff,
228
- path: diff.path.slice(3)
229
- });
230
- if (!request || !parsed) return false;
231
- const oldValue = [...getNestedValue(request, parsed.pathMinusOne)];
232
- if (diff.type === "CREATE") oldValue.push(parsed.value);
233
- else if (diff.type === "REMOVE") oldValue.pop();
234
- requestMutators.edit(request.uid, parsed.pathMinusOne, oldValue);
235
- if (diff.path[3] === "parameters" || diff.path[3] === "requestBody") updateRequestExamples(request.uid, store);
236
- } else if (diff.type === "CREATE") {
237
- const [firstEntry] = Object.entries(diff.value ?? {});
238
- const [_method, _operation] = firstEntry ?? [];
239
- const operation = method ? diff.value : _operation;
240
- const newMethod = method || _method;
241
- const operationServers = serverSchema.array().parse(operation.servers ?? []);
242
- const { security: operationSecurity, ...operationWithoutSecurity } = operation;
243
- const requestPayload = {
244
- ...operationWithoutSecurity,
245
- method: isHttpMethod(newMethod) ? newMethod : "get",
246
- path,
247
- parameters: operation.parameters ?? [],
248
- servers: operationServers.map((s) => s.uid)
249
- };
250
- if (operationSecurity?.length) requestPayload.security = operationSecurity.map((s) => {
251
- if (Object.keys(s).length) {
252
- const [key] = Object.keys(s);
253
- if (!key) return s;
254
- return { [key]: s[key] };
255
- }
256
- return s;
257
- });
258
- const request = schemaModel(requestPayload, requestSchema, false);
259
- if (!request) return false;
260
- requestMutators.add(request, activeCollection.value.uid);
261
- } else if (diff.type === "REMOVE") {
262
- const request = findResource(activeCollection.value.requests, requests, (_request) => _request.path === path && _request.method === method);
263
- if (!request) return false;
264
- requestMutators.delete(request, activeCollection.value.uid);
265
- } else if (diff.type === "CHANGE") {
266
- const request = findResource(activeCollection.value.requests, requests, (r) => r.path === path && r.method === method);
267
- const parsed = parseDiff(requestSchema, {
268
- ...diff,
269
- path: keys
270
- });
271
- if (!request || !parsed) return false;
272
- requestMutators.edit(request.uid, parsed.path, parsed.value);
273
- if (diff.path[3] === "parameters" || diff.path[3] === "requestBody") updateRequestExamples(request.uid, store);
274
- }
275
- return true;
276
- };
277
- /** Generates a payload for the server mutator from the server diff including the mutator method */
278
- var mutateServerDiff = (diff, { activeCollection }, { servers, serverMutators }) => {
279
- if (!activeCollection.value) return false;
280
- const [, index, ...keys] = diff.path;
281
- if (keys?.length) {
282
- const serverUid = activeCollection.value.servers[index];
283
- if (!serverUid) return false;
284
- const server = servers[serverUid];
285
- const parsed = parseDiff(serverSchema, {
286
- ...diff,
287
- path: keys
288
- });
289
- if (!server || !parsed) return false;
290
- const value = diff.type === "REMOVE" && keys[keys.length - 1] === "variables" ? {} : parsed.value;
291
- serverMutators.edit(serverUid, parsed.path, value);
292
- } else if (diff.type === "REMOVE") {
293
- if (!activeCollection.value.servers[index]) return false;
294
- serverMutators.delete(activeCollection.value.servers[index], activeCollection.value.uid);
295
- } else if (diff.type === "CREATE") {
296
- const parsed = schemaModel(diff.value, serverSchema, false);
297
- if (!parsed) return false;
298
- serverMutators.add(parsed, activeCollection.value.uid);
299
- }
300
- return true;
301
- };
302
- /** Generates a payload for the tag mutator from the tag diff */
303
- var mutateTagDiff = (diff, { activeCollection }, { tags, tagMutators }) => {
304
- if (!activeCollection.value) return false;
305
- const [, index, ...keys] = diff.path;
306
- if (keys?.length) {
307
- const tagUid = activeCollection.value.tags[index];
308
- if (!tagUid) return false;
309
- const tag = tags[tagUid];
310
- const parsed = parseDiff(tagSchema, {
311
- ...diff,
312
- path: keys
313
- });
314
- if (!tag || !parsed) return false;
315
- tagMutators.edit(tagUid, parsed.path, parsed.value);
316
- } else if (diff.type === "REMOVE") {
317
- const tagUid = activeCollection.value.tags[index];
318
- if (!tagUid) return false;
319
- const tag = tags[tagUid];
320
- if (!tag) return false;
321
- tagMutators.delete(tag, activeCollection.value.uid);
322
- } else if (diff.type === "CREATE") {
323
- const parsed = schemaModel(diff.value, tagSchema, false);
324
- if (!parsed) return false;
325
- tagMutators.add(parsed, activeCollection.value.uid);
326
- }
327
- return true;
328
- };
329
- /** Narrows down a zod union schema */
330
- var narrowUnionSchema = (schema, key, value) => {
331
- const _schema = unwrapSchema(schema);
332
- if (_schema instanceof z.ZodUnion || _schema instanceof z.ZodDiscriminatedUnion) for (const option of _schema.options) {
333
- if (!(option instanceof z.ZodType)) continue;
334
- const unwrappedOption = unwrapSchema(option);
335
- if (unwrappedOption instanceof z.ZodObject && key in unwrappedOption.shape) {
336
- const fieldSchema = unwrapSchema(unwrappedOption.shape[key]);
337
- if (fieldSchema instanceof z.ZodLiteral && fieldSchema.value === value) return unwrappedOption;
338
- if (fieldSchema instanceof z.ZodDefault && fieldSchema._zod.def.innerType instanceof z.ZodLiteral && fieldSchema._zod.def.innerType.value === value) return unwrappedOption;
339
- if (fieldSchema instanceof z.ZodOptional && fieldSchema._zod.def.innerType instanceof z.ZodLiteral && fieldSchema._zod.def.innerType.value === value) return unwrappedOption;
340
- if (fieldSchema instanceof z.ZodDefault && fieldSchema._zod.def.innerType instanceof z.ZodOptional && fieldSchema._zod.def.innerType._zod.def.innerType instanceof z.ZodLiteral && fieldSchema._zod.def.innerType._zod.def.innerType.value === value) return unwrappedOption;
341
- }
342
- }
343
- return null;
344
- };
345
- /**
346
- * Generates a payload for the security scheme mutator from the security scheme diff, then executes that mutation
347
- *
348
- * Note: for edit we cannot use parseDiff here as it can't do unions, so we handle the unions first
349
- *
350
- * @returns true if it succeeds, and false for a failure
351
- */
352
- var mutateSecuritySchemeDiff = (diff, { activeCollection }, { securitySchemes, securitySchemeMutators }) => {
353
- if (!activeCollection.value) return false;
354
- const [, , schemeName, ...keys] = diff.path;
355
- const scheme = securitySchemes[schemeName] ?? findResource(activeCollection.value.securitySchemes, securitySchemes, (s) => s.nameKey === schemeName);
356
- if (keys?.length) {
357
- const schema = narrowUnionSchema(securitySchemeSchema, "type", scheme?.type ?? "");
358
- if (!schema || !scheme) return false;
359
- const parsed = parseDiff(schema, {
360
- ...diff,
361
- path: keys
362
- });
363
- if (!parsed) return false;
364
- const path = parsed.path;
365
- securitySchemeMutators.edit(scheme.uid, path, parsed.value);
366
- } else if (diff.type === "REMOVE") {
367
- if (!scheme) return false;
368
- securitySchemeMutators.delete(scheme.uid);
369
- } else if (diff.type === "CREATE") securitySchemeMutators.add(securitySchemeSchema.parse(diff.value), activeCollection.value.uid);
370
- return true;
371
- };
372
- //#endregion
373
- export { mutateSecuritySchemeDiff as a, narrowUnionSchema as c, mutateRequestDiff as i, parseDiff as l, findResource as n, mutateServerDiff as o, mutateCollectionDiff as r, mutateTagDiff as s, combineRenameDiffs as t, traverseZodSchema as u };
374
-
375
- //# sourceMappingURL=watch-mode-Dbaqd9bG.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watch-mode-Dbaqd9bG.js","names":[],"sources":["../src/views/Request/libs/watch-mode.ts"],"sourcesContent":["import {\n type Request,\n type RequestParameterPayload,\n type RequestPayload,\n type SecurityScheme,\n type Server,\n collectionSchema,\n createExampleFromRequest,\n requestSchema,\n securitySchemeSchema,\n serverSchema,\n tagSchema,\n} from '@scalar/oas-utils/entities/spec'\nimport { isHttpMethod, schemaModel } from '@scalar/oas-utils/helpers'\nimport { type Path, type PathValue, getNestedValue } from '@scalar/object-utils/nested'\nimport type { OpenAPIV3_1 } from '@scalar/openapi-types'\nimport microdiff, { type Difference } from 'microdiff'\nimport { type ZodSchema, z } from 'zod'\n\nimport type { WorkspaceStore } from '@/store'\nimport type { ActiveEntitiesStore } from '@/store/active-entities'\n\n/**\n * Combine Rename Diffs\n * Rename diffs show up as a delete and an add.\n * This will go through the diff and combine any diff items which are next to each other which go from remove to add.\n *\n * - first we check if the payloads are the same then it was just a simple rename\n * - next we will add the rename and also handle any changes in the diff\n */\nexport const combineRenameDiffs = (diff: Difference[], pathPrefix: string[] = []): Difference[] => {\n const combined: Difference[] = []\n let skipNext = false\n\n for (let i = 0; i < diff.length; i++) {\n if (skipNext) {\n skipNext = false\n continue\n }\n\n const current = diff[i]\n const next = diff[i + 1]\n\n if (!current) {\n continue\n }\n\n // Prefix the paths when nested\n if (pathPrefix.length) {\n current.path = [...pathPrefix, ...current.path]\n if (next) {\n next.path = [...pathPrefix, ...next.path]\n }\n }\n // Only mutate paths\n else if (current.path[0] !== 'paths') {\n combined.push(current)\n continue\n }\n\n if (current.type === 'REMOVE' && next?.type === 'CREATE') {\n const [, currPath, currMethod] = current.path\n const [, nextPath, nextMethod] = next.path\n const nestedPrefix = ['paths', nextPath].filter((p) => typeof p === 'string')\n\n // Handle path rename\n if (currPath !== nextPath) {\n combined.push({\n type: 'CHANGE',\n path: ['paths', 'path'],\n oldValue: currPath,\n value: nextPath,\n })\n }\n\n // Handle method rename\n if (currMethod && typeof nextMethod === 'string' && currMethod !== nextMethod && nextPath) {\n combined.push({\n type: 'CHANGE',\n path: ['paths', nextPath, 'method'],\n oldValue: currMethod,\n value: nextMethod,\n })\n nestedPrefix.push(nextMethod)\n }\n\n // Only go one level deep\n if (pathPrefix.length === 0) {\n // Handle other changes within the renamed path or method\n const innerDiff = microdiff(current.oldValue, next.value)\n if (innerDiff.length) {\n const innerCombined = combineRenameDiffs(innerDiff, nestedPrefix)\n combined.push(...innerCombined)\n }\n }\n\n skipNext = true\n }\n // If adding anthing other than a path, method, or array we can just change instead\n else if (current.type === 'CREATE' && current.path.length > 3 && typeof current.path.at(-1) !== 'number') {\n combined.push({ ...current, type: 'CHANGE', oldValue: undefined })\n }\n // If deleting anthing other than a path, method, or array we can also do a change\n else if (current.type === 'REMOVE' && current.path.length > 3 && typeof current.path.at(-1) !== 'number') {\n combined.push({ ...current, type: 'CHANGE', value: undefined })\n }\n // Just regular things\n else {\n combined.push(current)\n }\n }\n\n return combined\n}\n\n/** Like array.find but returns the resource instead of the uid */\nexport const findResource = <T>(\n arr: string[],\n resources: Record<string, T>,\n condition: (resource: T) => boolean,\n): T | null => {\n for (const uid of arr) {\n const resource = resources[uid]\n if (resource && condition(resource)) {\n return resource\n }\n }\n return null\n}\n\n/** Helper function to unwrap optional and default schemas */\nconst unwrapSchema = (schema: ZodSchema): ZodSchema => {\n if (schema instanceof z.ZodOptional) {\n const unwrapped = schema.unwrap()\n if (unwrapped instanceof z.ZodType) {\n return unwrapSchema(unwrapped)\n }\n }\n if (schema instanceof z.ZodDefault) {\n const innerType = schema._zod.def.innerType\n if (innerType instanceof z.ZodType) {\n return unwrapSchema(innerType)\n }\n }\n if (schema instanceof z.ZodCatch) {\n const innerType = schema._zod.def.innerType\n if (innerType instanceof z.ZodType) {\n return unwrapSchema(innerType)\n }\n }\n if (schema instanceof z.ZodPipe) {\n const inType = schema._zod.def.in\n if (inType instanceof z.ZodType) {\n return unwrapSchema(inType)\n }\n }\n return schema\n}\n\n/**\n * Traverses a zod schema based on the path and returns the schema at the end of the path\n * or null if the path doesn't exist. Handles optional unwrapping, records, and arrays\n */\nexport const traverseZodSchema = (schema: ZodSchema, path: (string | number)[]): ZodSchema | null => {\n let currentSchema: ZodSchema = schema\n\n for (const key of path) {\n // Unwrap optional and default schemas\n currentSchema = unwrapSchema(currentSchema)\n\n // If we encounter a ZodAny, return it for any nested path\n if (currentSchema instanceof z.ZodAny) {\n return currentSchema\n }\n\n // Traverse an object\n if (currentSchema instanceof z.ZodObject && typeof key === 'string' && key in currentSchema.shape) {\n const shapeValue = currentSchema.shape[key]\n if (shapeValue instanceof z.ZodType) {\n currentSchema = shapeValue\n } else {\n return null\n }\n }\n // Traverse into an array\n else if (currentSchema instanceof z.ZodArray) {\n if (typeof key === 'number') {\n // If the key is a number, we're accessing an array element\n if (currentSchema.element instanceof z.ZodType) {\n currentSchema = currentSchema.element\n } else {\n return null\n }\n } else if (typeof key === 'string') {\n // If the key is a string, we're accessing a property of the array elements\n if (currentSchema.element instanceof z.ZodType) {\n currentSchema = currentSchema.element\n } else {\n return null\n }\n if (currentSchema instanceof z.ZodObject && key in currentSchema.shape) {\n const shapeValue = currentSchema.shape[key]\n if (shapeValue instanceof z.ZodType) {\n currentSchema = shapeValue\n } else {\n return null\n }\n } else {\n return null\n }\n } else {\n return null\n }\n }\n // Traverse into a record\n else if (currentSchema instanceof z.ZodRecord) {\n const valueSchema = currentSchema._zod.def.valueType\n if (!valueSchema || !(valueSchema instanceof z.ZodType)) {\n return null\n }\n if (typeof key === 'string') {\n // For string keys, we're accessing a value in the record\n currentSchema = valueSchema\n // Unwrap optional/default wrappers around the value schema\n currentSchema = unwrapSchema(currentSchema)\n } else if (typeof key === 'number') {\n // For number keys, we're accessing an element of an array within the record value\n currentSchema = valueSchema\n // Unwrap optional/default wrappers around the array\n currentSchema = unwrapSchema(currentSchema)\n // If the value schema is an array, get the element type\n if (currentSchema instanceof z.ZodArray) {\n if (currentSchema.element instanceof z.ZodType) {\n currentSchema = currentSchema.element\n } else {\n return null\n }\n }\n } else {\n // For other keys, just return the value schema\n currentSchema = valueSchema\n }\n } else {\n // Path doesn't exist in the schema\n return null\n }\n\n // Unwrap again after traversing\n currentSchema = unwrapSchema(currentSchema)\n }\n\n return currentSchema\n}\n\n/**\n * Takes in diff, uses the path to get to the nested schema then parse the value\n * If there is a sub schema and it successfully parses, both the path and new value are valid and returned as such\n *\n * We return a tuple to make it easier to pass into the mutators\n */\nexport const parseDiff = <T>(\n schema: ZodSchema<T, any>,\n diff: Difference,\n): {\n /** Typed path as it has been checked agains the schema */\n path: Path<T>\n /** Path without the last item, used for getting the whole array instead of an item of the array */\n pathMinusOne: Path<T>\n /** Typed value which has been parsed against the schema */\n value: PathValue<T, Path<T>> | undefined\n} | null => {\n const parsedSchema = traverseZodSchema(schema, diff.path)\n if (!parsedSchema) {\n return null\n }\n\n const path = diff.path.join('.') as Path<T>\n const pathMinusOne = diff.path.slice(0, -1).join('.') as Path<T>\n\n // If we are removing, value is undefined\n if (diff.type === 'REMOVE') {\n return {\n path,\n pathMinusOne,\n value: undefined,\n }\n }\n\n // Safe parse the value as well\n const parsedValue = schemaModel(diff.value, parsedSchema, false)\n if (typeof parsedValue === 'undefined' || parsedValue === null) {\n return null\n }\n\n return {\n path,\n pathMinusOne,\n value: parsedValue as PathValue<T, Path<T>>,\n }\n}\n\n/**\n * Transforms the diff into a payload for the collection mutator then executes that mutation\n *\n * @returns true if it succeeds, and false for a failure\n */\nexport const mutateCollectionDiff = (\n diff: Difference,\n { activeCollection }: ActiveEntitiesStore,\n { collectionMutators }: WorkspaceStore,\n): boolean => {\n if (!activeCollection.value) {\n return false\n }\n\n // We need to handle a special case for arrays, it only adds or removes the last element,\n // the rest are a series of changes\n if (typeof diff.path[diff.path.length - 1] === 'number' && (diff.type === 'CREATE' || diff.type === 'REMOVE')) {\n const parsed = parseDiff(collectionSchema, {\n ...diff,\n path: diff.path,\n })\n if (!parsed) {\n return false\n }\n\n const oldValue = [...getNestedValue(activeCollection.value, parsed.pathMinusOne)]\n if (diff.type === 'CREATE') {\n oldValue.push(parsed.value)\n } else if (diff.type === 'REMOVE') {\n oldValue.pop()\n }\n collectionMutators.edit(activeCollection.value.uid, parsed.pathMinusOne, oldValue)\n }\n // Non array + array change\n else {\n const parsed = parseDiff(collectionSchema, diff)\n if (!parsed) {\n return false\n }\n\n collectionMutators.edit(activeCollection.value.uid, parsed.path, parsed.value)\n }\n\n return true\n}\n\n/**\n * Currently we just generate new examples\n *\n * TODO: diff the changes in the examples and just update what we need to\n */\nconst updateRequestExamples = (requestUid: string, store: WorkspaceStore) => {\n const { requests, requestExamples, requestExampleMutators } = store\n const request = requests[requestUid]\n\n request?.examples.forEach((exampleUid) => {\n const newExample = createExampleFromRequest(request, requestExamples[exampleUid]?.name ?? 'Default')\n if (newExample) {\n requestExampleMutators.set({\n ...newExample,\n uid: exampleUid,\n })\n }\n })\n}\n\n/**\n * Generates an array of payloads for the request mutator from the request diff, also executes the mutation\n */\nexport const mutateRequestDiff = (\n diff: Difference,\n { activeCollection }: ActiveEntitiesStore,\n store: WorkspaceStore,\n): boolean => {\n if (!activeCollection.value) {\n return false\n }\n const { requests, requestMutators } = store\n\n const [, path, method, ...keys] = diff.path as [\n 'paths',\n Request['path'],\n Request['method'] | 'method' | undefined,\n ...string[],\n ]\n\n // Path has changed\n if (path === 'path' && diff.type === 'CHANGE') {\n activeCollection.value.requests.forEach((uid) => {\n if (requests[uid]?.path === diff.oldValue) {\n requestMutators.edit(uid, 'path', diff.value)\n }\n })\n }\n // Method has changed\n else if (method === 'method' && diff.type === 'CHANGE') {\n activeCollection.value.requests.forEach((uid) => {\n if (requests[uid]?.method === diff.oldValue && requests[uid]?.path === path) {\n requestMutators.edit(uid, 'method', diff.value)\n }\n })\n }\n // Adding or removing to the end of an array - special case\n else if (diff.type !== 'CHANGE' && typeof keys.at(-1) === 'number') {\n const request = findResource<Request>(\n activeCollection.value.requests,\n requests,\n (r) => r.path === path && r.method === method,\n )\n const parsed = parseDiff(requestSchema, {\n ...diff,\n path: diff.path.slice(3),\n })\n if (!request || !parsed) {\n return false\n }\n\n // Chop off the path, method and array index\n const oldValue = [...getNestedValue(request, parsed.pathMinusOne)]\n\n if (diff.type === 'CREATE') {\n oldValue.push(parsed.value)\n } else if (diff.type === 'REMOVE') {\n oldValue.pop()\n }\n\n requestMutators.edit(request.uid, parsed.pathMinusOne, oldValue)\n\n // Generate new examples\n if (diff.path[3] === 'parameters' || diff.path[3] === 'requestBody') {\n updateRequestExamples(request.uid, store)\n }\n }\n\n // Add\n else if (diff.type === 'CREATE') {\n // In some cases value goes { method: operation }\n const [firstEntry] = Object.entries(diff.value ?? {})\n const [_method, _operation] = firstEntry ?? []\n\n const operation: OpenAPIV3_1.OperationObject<{\n tags?: string[]\n security?: OpenAPIV3_1.SecurityRequirementObject[]\n }> = method ? diff.value : _operation\n const newMethod = method || _method\n\n // TODO: match servers up and add if we don't have\n const operationServers = serverSchema.array().parse(operation.servers ?? [])\n\n // Remove security here and add it correctly below\n const { security: operationSecurity, ...operationWithoutSecurity } = operation\n\n const requestPayload: RequestPayload = {\n ...operationWithoutSecurity,\n method: isHttpMethod(newMethod) ? newMethod : 'get',\n path,\n parameters: (operation.parameters ?? []) as RequestParameterPayload[],\n servers: operationServers.map((s) => s.uid),\n }\n\n // Add list of UIDs to associate security schemes\n // As per the spec if there is operation level security we ignore the top level requirements\n if (operationSecurity?.length) {\n requestPayload.security = operationSecurity.map((s) => {\n const _keys = Object.keys(s)\n\n // Handle the case of {} for optional\n if (_keys.length) {\n const [key] = Object.keys(s)\n if (!key) {\n return s\n }\n\n return {\n [key]: s[key],\n }\n }\n return s\n })\n }\n\n // Save parse the request\n const request = schemaModel(requestPayload, requestSchema, false)\n if (!request) {\n return false\n }\n\n requestMutators.add(request, activeCollection.value.uid)\n }\n // Delete\n else if (diff.type === 'REMOVE') {\n const request = findResource<Request>(\n activeCollection.value.requests,\n requests,\n (_request) => _request.path === path && _request.method === method,\n )\n if (!request) {\n return false\n }\n\n requestMutators.delete(request, activeCollection.value.uid)\n }\n // Edit\n else if (diff.type === 'CHANGE') {\n const request = findResource<Request>(\n activeCollection.value.requests,\n requests,\n (r) => r.path === path && r.method === method,\n )\n\n const parsed = parseDiff(requestSchema, { ...diff, path: keys })\n if (!request || !parsed) {\n return false\n }\n\n requestMutators.edit(request.uid, parsed.path, parsed.value)\n\n // Update the examples\n if (diff.path[3] === 'parameters' || diff.path[3] === 'requestBody') {\n updateRequestExamples(request.uid, store)\n }\n }\n\n return true\n}\n\n/** Generates a payload for the server mutator from the server diff including the mutator method */\nexport const mutateServerDiff = (\n diff: Difference,\n { activeCollection }: ActiveEntitiesStore,\n { servers, serverMutators }: WorkspaceStore,\n): boolean => {\n if (!activeCollection.value) {\n return false\n }\n\n const [, index, ...keys] = diff.path as ['servers', number, keyof Server]\n\n // Edit: update properties\n if (keys?.length) {\n const serverUid = activeCollection.value.servers[index]\n if (!serverUid) {\n return false\n }\n\n const server = servers[serverUid]\n const parsed = parseDiff(serverSchema, { ...diff, path: keys })\n\n if (!server || !parsed) {\n return false\n }\n\n const removeVariables = diff.type === 'REMOVE' && keys[keys.length - 1] === 'variables'\n const value = removeVariables ? {} : parsed.value\n\n serverMutators.edit(serverUid, parsed.path, value)\n }\n // Delete whole object\n else if (diff.type === 'REMOVE') {\n if (!activeCollection.value.servers[index]) {\n return false\n }\n\n serverMutators.delete(activeCollection.value.servers[index], activeCollection.value.uid)\n }\n // Add whole object\n else if (diff.type === 'CREATE') {\n const parsed = schemaModel(diff.value, serverSchema, false)\n if (!parsed) {\n return false\n }\n\n serverMutators.add(parsed, activeCollection.value.uid)\n }\n return true\n}\n\n/** Generates a payload for the tag mutator from the tag diff */\nexport const mutateTagDiff = (\n diff: Difference,\n { activeCollection }: ActiveEntitiesStore,\n { tags, tagMutators }: WorkspaceStore,\n): boolean => {\n if (!activeCollection.value) {\n return false\n }\n\n const [, index, ...keys] = diff.path as ['tags', number, ...string[]]\n\n if (keys?.length) {\n const tagUid = activeCollection.value.tags[index]\n if (!tagUid) {\n return false\n }\n\n const tag = tags[tagUid]\n const parsed = parseDiff(tagSchema, { ...diff, path: keys })\n\n if (!tag || !parsed) {\n return false\n }\n\n tagMutators.edit(tagUid, parsed.path, parsed.value)\n }\n // Delete whole object\n else if (diff.type === 'REMOVE') {\n const tagUid = activeCollection.value.tags[index]\n if (!tagUid) {\n return false\n }\n\n const tag = tags[tagUid]\n if (!tag) {\n return false\n }\n\n tagMutators.delete(tag, activeCollection.value.uid)\n }\n // Add whole object\n else if (diff.type === 'CREATE') {\n const parsed = schemaModel(diff.value, tagSchema, false)\n if (!parsed) {\n return false\n }\n\n tagMutators.add(parsed, activeCollection.value.uid)\n }\n\n return true\n}\n\n/** Narrows down a zod union schema */\nexport const narrowUnionSchema = (schema: ZodSchema, key: string, value: string): ZodSchema | null => {\n const _schema = unwrapSchema(schema)\n\n if (_schema instanceof z.ZodUnion || _schema instanceof z.ZodDiscriminatedUnion) {\n for (const option of _schema.options) {\n if (!(option instanceof z.ZodType)) {\n continue\n }\n const unwrappedOption = unwrapSchema(option)\n if (unwrappedOption instanceof z.ZodObject && key in unwrappedOption.shape) {\n const fieldSchema = unwrapSchema(unwrappedOption.shape[key])\n // Handle both ZodLiteral and wrapped ZodLiteral (e.g., ZodDefault, ZodOptional)\n if (fieldSchema instanceof z.ZodLiteral && fieldSchema.value === value) {\n return unwrappedOption\n }\n // Also check if the field schema is wrapped and contains a literal\n if (\n fieldSchema instanceof z.ZodDefault &&\n fieldSchema._zod.def.innerType instanceof z.ZodLiteral &&\n fieldSchema._zod.def.innerType.value === value\n ) {\n return unwrappedOption\n }\n if (\n fieldSchema instanceof z.ZodOptional &&\n fieldSchema._zod.def.innerType instanceof z.ZodLiteral &&\n fieldSchema._zod.def.innerType.value === value\n ) {\n return unwrappedOption\n }\n // Handle deeply nested wrapping - check if the inner type is also wrapped\n if (\n fieldSchema instanceof z.ZodDefault &&\n fieldSchema._zod.def.innerType instanceof z.ZodOptional &&\n fieldSchema._zod.def.innerType._zod.def.innerType instanceof z.ZodLiteral &&\n fieldSchema._zod.def.innerType._zod.def.innerType.value === value\n ) {\n return unwrappedOption\n }\n }\n }\n }\n return null\n}\n\n/**\n * Generates a payload for the security scheme mutator from the security scheme diff, then executes that mutation\n *\n * Note: for edit we cannot use parseDiff here as it can't do unions, so we handle the unions first\n *\n * @returns true if it succeeds, and false for a failure\n */\nexport const mutateSecuritySchemeDiff = (\n diff: Difference,\n { activeCollection }: ActiveEntitiesStore,\n { securitySchemes, securitySchemeMutators }: WorkspaceStore,\n): boolean => {\n if (!activeCollection.value) {\n return false\n }\n\n const [, , schemeName, ...keys] = diff.path as ['components', 'securitySchemes', string, ...string[]]\n\n const scheme =\n securitySchemes[schemeName] ??\n findResource<SecurityScheme>(\n activeCollection.value.securitySchemes,\n securitySchemes,\n (s) => s.nameKey === schemeName,\n )\n\n // Edit update properties\n if (keys?.length) {\n // Narrows the schema and path based on type of security scheme\n const schema = narrowUnionSchema(securitySchemeSchema, 'type', scheme?.type ?? '')\n if (!schema || !scheme) {\n return false\n }\n const parsed = parseDiff(schema, { ...diff, path: keys })\n if (!parsed) {\n return false\n }\n\n const path = parsed.path as Path<SecurityScheme>\n securitySchemeMutators.edit(scheme.uid, path, parsed.value)\n }\n // Delete whole object\n else if (diff.type === 'REMOVE') {\n if (!scheme) {\n return false\n }\n securitySchemeMutators.delete(scheme.uid)\n }\n // Add whole object\n else if (diff.type === 'CREATE') {\n securitySchemeMutators.add(securitySchemeSchema.parse(diff.value), activeCollection.value.uid)\n }\n\n return true\n}\n"],"mappings":";;;;;;;;;;;;;;AA8BA,IAAa,sBAAsB,MAAoB,aAAuB,EAAE,KAAmB;CACjG,MAAM,WAAyB,EAAE;CACjC,IAAI,WAAW;AAEf,MAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,MAAI,UAAU;AACZ,cAAW;AACX;;EAGF,MAAM,UAAU,KAAK;EACrB,MAAM,OAAO,KAAK,IAAI;AAEtB,MAAI,CAAC,QACH;AAIF,MAAI,WAAW,QAAQ;AACrB,WAAQ,OAAO,CAAC,GAAG,YAAY,GAAG,QAAQ,KAAK;AAC/C,OAAI,KACF,MAAK,OAAO,CAAC,GAAG,YAAY,GAAG,KAAK,KAAK;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