@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":"CodeInput-BTN8cC5h.js","names":["$attrs","$slots"],"sources":["../src/views/Environment/EnvironmentVariableDropdown.vue","../src/views/Environment/EnvironmentVariableDropdown.vue","../src/components/DataTable/DataTableInputSelect.vue","../src/components/DataTable/DataTableInputSelect.vue","../src/components/CodeInput/codeVariableWidget.ts","../src/components/CodeInput/CodeInput.vue","../src/components/CodeInput/CodeInput.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, ScalarTeleport } from '@scalar/components'\nimport { ScalarIconGlobe, ScalarIconPlus } from '@scalar/icons'\nimport type { Environment } from '@scalar/oas-utils/entities/environment'\nimport { onClickOutside } from '@vueuse/core'\nimport Fuse from 'fuse.js'\nimport { computed, onMounted, ref, type CSSProperties } from 'vue'\nimport { useRouter } from 'vue-router'\n\nimport { parseEnvVariables } from '@/libs'\nimport { getEnvColor, type EnvVariables } from '@/libs/env-helpers'\nimport { PathId } from '@/routes'\nimport { useActiveEntities } from '@/store'\n\nconst props = defineProps<{\n query: string\n environment: Environment\n envVariables: EnvVariables\n // withServers?: boolean\n dropdownPosition?: { left: number; top: number }\n}>()\n\nconst emit = defineEmits<{\n (e: 'select', variable: string): void\n}>()\n\nconst isOpen = ref(true)\nconst dropdownRef = ref<HTMLElement | null>(null)\nconst selectedVariableIndex = ref(0)\nconst router = useRouter()\nconst { activeCollection } = useActiveEntities()\n\nconst redirectToEnvironment = () => {\n if (!router) {\n return\n }\n const { currentRoute, push } = router\n const workspaceId = currentRoute.value.params.workspace\n\n // Global environment page for draft collection\n if (\n !activeCollection.value ||\n activeCollection.value.info?.title === 'Drafts'\n ) {\n push({\n name: 'environment.default',\n params: {\n [PathId.Workspace]: workspaceId,\n },\n })\n } else {\n // Collection environment page for collections\n push({\n name: 'collection.environment',\n params: {\n [PathId.Collection]: activeCollection.value.uid,\n },\n })\n }\n isOpen.value = false\n}\n\nconst fuse = new Fuse(parseEnvVariables(props.envVariables), {\n keys: ['key', 'value'],\n})\n\nconst filteredVariables = computed(() => {\n const searchQuery = props.query\n\n if (!searchQuery) {\n /** return the last 4 environment variables on first display */\n return parseEnvVariables(props.envVariables)\n .slice(-4)\n .filter(({ key, value }) => key !== '' || value !== '')\n }\n\n /** filter environment variables by name */\n const result = fuse.search(searchQuery, { limit: 10 })\n if (result.length > 0) {\n return result\n .map((res) => res.item)\n .filter(({ key, value }) => key !== '' || value !== '')\n }\n\n return []\n})\n\nconst selectVariable = (variableKey: string) => {\n emit('select', variableKey)\n}\n\nconst handleArrowKey = (direction: 'up' | 'down') => {\n const offset = direction === 'up' ? -1 : 1\n const length = filteredVariables.value.length\n\n if (length === 0) {\n return\n }\n\n selectedVariableIndex.value =\n (selectedVariableIndex.value + offset + length) % length\n}\n\nconst handleSelect = () => {\n if (selectedVariableIndex.value >= 0) {\n const selectedVariable =\n filteredVariables.value[selectedVariableIndex.value]\n if (selectedVariable) {\n selectVariable(selectedVariable.key)\n }\n }\n}\n\ndefineExpose({\n handleArrowKey,\n handleSelect,\n})\n\nonMounted(() => {\n // Reset selected index to the first item when dropdown opens\n selectedVariableIndex.value = 0\n})\n\nconst dropdownStyle = computed<CSSProperties>(() => {\n return {\n left: (props.dropdownPosition?.left ?? 0) + 'px',\n // Add a 5px offset from the editor\n top: (props.dropdownPosition?.top ?? 0) + 5 + 'px',\n }\n})\n\nonClickOutside(\n dropdownRef,\n () => {\n isOpen.value = false\n },\n { ignore: [dropdownRef] },\n)\n</script>\n<template>\n <ScalarTeleport\n v-if=\"isOpen\"\n class=\"scalar-client\">\n <div\n ref=\"dropdownRef\"\n class=\"custom-scroll fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75\"\n :style=\"dropdownStyle\">\n <ul\n v-if=\"filteredVariables.length\"\n class=\"gap-1/2 flex flex-col\">\n <template\n v-for=\"(item, index) in filteredVariables\"\n :key=\"item.key\">\n <li\n class=\"font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150\"\n :class=\"{ 'bg-b-2': index === selectedVariableIndex }\"\n @click=\"selectVariable(item.key)\">\n <div class=\"flex items-center gap-2 whitespace-nowrap\">\n <span\n v-if=\"\n item.source === 'collection' &&\n environment.name !== 'No Environment'\n \"\n class=\"h-2.25 w-2.25 min-w-2.25 rounded-full\"\n :style=\"{\n backgroundColor: getEnvColor(environment),\n }\"></span>\n <ScalarIconGlobe\n v-else\n class=\"-ml-0.25 size-2.5\"\n icon=\"Globe\" />\n {{ item.key }}\n </div>\n <span\n class=\"w-20 overflow-hidden text-right text-ellipsis whitespace-nowrap\">\n {{ item.value }}\n </span>\n </li>\n </template>\n </ul>\n <ScalarButton\n v-else-if=\"router\"\n class=\"font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150\"\n variant=\"outlined\"\n @click=\"redirectToEnvironment\">\n <ScalarIconPlus class=\"size-3\" />\n Add Variable\n </ScalarButton>\n <!-- Backdrop for the dropdown -->\n <div\n class=\"bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg\" />\n </div>\n </ScalarTeleport>\n</template>\n","<script setup lang=\"ts\">\nimport { ScalarButton, ScalarTeleport } from '@scalar/components'\nimport { ScalarIconGlobe, ScalarIconPlus } from '@scalar/icons'\nimport type { Environment } from '@scalar/oas-utils/entities/environment'\nimport { onClickOutside } from '@vueuse/core'\nimport Fuse from 'fuse.js'\nimport { computed, onMounted, ref, type CSSProperties } from 'vue'\nimport { useRouter } from 'vue-router'\n\nimport { parseEnvVariables } from '@/libs'\nimport { getEnvColor, type EnvVariables } from '@/libs/env-helpers'\nimport { PathId } from '@/routes'\nimport { useActiveEntities } from '@/store'\n\nconst props = defineProps<{\n query: string\n environment: Environment\n envVariables: EnvVariables\n // withServers?: boolean\n dropdownPosition?: { left: number; top: number }\n}>()\n\nconst emit = defineEmits<{\n (e: 'select', variable: string): void\n}>()\n\nconst isOpen = ref(true)\nconst dropdownRef = ref<HTMLElement | null>(null)\nconst selectedVariableIndex = ref(0)\nconst router = useRouter()\nconst { activeCollection } = useActiveEntities()\n\nconst redirectToEnvironment = () => {\n if (!router) {\n return\n }\n const { currentRoute, push } = router\n const workspaceId = currentRoute.value.params.workspace\n\n // Global environment page for draft collection\n if (\n !activeCollection.value ||\n activeCollection.value.info?.title === 'Drafts'\n ) {\n push({\n name: 'environment.default',\n params: {\n [PathId.Workspace]: workspaceId,\n },\n })\n } else {\n // Collection environment page for collections\n push({\n name: 'collection.environment',\n params: {\n [PathId.Collection]: activeCollection.value.uid,\n },\n })\n }\n isOpen.value = false\n}\n\nconst fuse = new Fuse(parseEnvVariables(props.envVariables), {\n keys: ['key', 'value'],\n})\n\nconst filteredVariables = computed(() => {\n const searchQuery = props.query\n\n if (!searchQuery) {\n /** return the last 4 environment variables on first display */\n return parseEnvVariables(props.envVariables)\n .slice(-4)\n .filter(({ key, value }) => key !== '' || value !== '')\n }\n\n /** filter environment variables by name */\n const result = fuse.search(searchQuery, { limit: 10 })\n if (result.length > 0) {\n return result\n .map((res) => res.item)\n .filter(({ key, value }) => key !== '' || value !== '')\n }\n\n return []\n})\n\nconst selectVariable = (variableKey: string) => {\n emit('select', variableKey)\n}\n\nconst handleArrowKey = (direction: 'up' | 'down') => {\n const offset = direction === 'up' ? -1 : 1\n const length = filteredVariables.value.length\n\n if (length === 0) {\n return\n }\n\n selectedVariableIndex.value =\n (selectedVariableIndex.value + offset + length) % length\n}\n\nconst handleSelect = () => {\n if (selectedVariableIndex.value >= 0) {\n const selectedVariable =\n filteredVariables.value[selectedVariableIndex.value]\n if (selectedVariable) {\n selectVariable(selectedVariable.key)\n }\n }\n}\n\ndefineExpose({\n handleArrowKey,\n handleSelect,\n})\n\nonMounted(() => {\n // Reset selected index to the first item when dropdown opens\n selectedVariableIndex.value = 0\n})\n\nconst dropdownStyle = computed<CSSProperties>(() => {\n return {\n left: (props.dropdownPosition?.left ?? 0) + 'px',\n // Add a 5px offset from the editor\n top: (props.dropdownPosition?.top ?? 0) + 5 + 'px',\n }\n})\n\nonClickOutside(\n dropdownRef,\n () => {\n isOpen.value = false\n },\n { ignore: [dropdownRef] },\n)\n</script>\n<template>\n <ScalarTeleport\n v-if=\"isOpen\"\n class=\"scalar-client\">\n <div\n ref=\"dropdownRef\"\n class=\"custom-scroll fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75\"\n :style=\"dropdownStyle\">\n <ul\n v-if=\"filteredVariables.length\"\n class=\"gap-1/2 flex flex-col\">\n <template\n v-for=\"(item, index) in filteredVariables\"\n :key=\"item.key\">\n <li\n class=\"font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150\"\n :class=\"{ 'bg-b-2': index === selectedVariableIndex }\"\n @click=\"selectVariable(item.key)\">\n <div class=\"flex items-center gap-2 whitespace-nowrap\">\n <span\n v-if=\"\n item.source === 'collection' &&\n environment.name !== 'No Environment'\n \"\n class=\"h-2.25 w-2.25 min-w-2.25 rounded-full\"\n :style=\"{\n backgroundColor: getEnvColor(environment),\n }\"></span>\n <ScalarIconGlobe\n v-else\n class=\"-ml-0.25 size-2.5\"\n icon=\"Globe\" />\n {{ item.key }}\n </div>\n <span\n class=\"w-20 overflow-hidden text-right text-ellipsis whitespace-nowrap\">\n {{ item.value }}\n </span>\n </li>\n </template>\n </ul>\n <ScalarButton\n v-else-if=\"router\"\n class=\"font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150\"\n variant=\"outlined\"\n @click=\"redirectToEnvironment\">\n <ScalarIconPlus class=\"size-3\" />\n Add Variable\n </ScalarButton>\n <!-- Backdrop for the dropdown -->\n <div\n class=\"bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg\" />\n </div>\n </ScalarTeleport>\n</template>\n","<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarComboboxMultiselect,\n ScalarDropdown,\n ScalarDropdownDivider,\n ScalarDropdownItem,\n ScalarIcon,\n} from '@scalar/components'\nimport { computed, nextTick, ref, watch } from 'vue'\n\nconst props = withDefaults(\n defineProps<{\n modelValue: string | number\n value?: string[]\n default?: string | number | undefined\n canAddCustomValue?: boolean\n type?: string | undefined\n }>(),\n { canAddCustomValue: true },\n)\n\nconst emit = defineEmits<{\n (e: 'update:modelValue', v: string): void\n}>()\n\nconst options = computed(() => props.value ?? [])\nconst addingCustomValue = ref(false)\nconst customValue = ref('')\nconst inputRef = ref<HTMLInputElement | null>(null)\n\nwatch(customValue, (newValue) => {\n emit('update:modelValue', newValue)\n})\n\nconst updateSelected = (value: string) => {\n emit('update:modelValue', value)\n addingCustomValue.value = false\n}\n\nconst addCustomValue = () => {\n if (customValue.value.trim()) {\n updateSelected(customValue.value)\n }\n}\n\nconst handleBlur = () => {\n if (!customValue.value.trim()) {\n emit('update:modelValue', '')\n }\n addingCustomValue.value = false\n}\n\nconst isSelected = (value: string) => {\n return props.modelValue.toString() === value\n}\n\nwatch(addingCustomValue, (newValue) => {\n if (newValue) {\n nextTick(() => {\n inputRef.value?.focus()\n })\n }\n})\n\nconst initialValue = computed(() => {\n return props.modelValue !== undefined ? props.modelValue : props.default\n})\n\n/** Currently selected array example values */\nconst selectedArrayOptions = computed(() => {\n const selectedValues = new Set(props.modelValue.toString().split(', '))\n return options.value\n .filter((option) => selectedValues.has(option))\n .map((option) => ({ id: option, label: option, value: option }))\n})\n\n/** Options for the array type */\nconst arrayOptions = computed(() =>\n options.value.map((option) => ({ id: option, label: option, value: option })),\n)\n\n/** Update the model value when the selected options change */\nconst updateSelectedOptions = (selectedOptions: any) => {\n const selectedValues = selectedOptions.map((option: any) => option.value)\n emit('update:modelValue', selectedValues.join(', '))\n}\n</script>\n\n<template>\n <div\n class=\"group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline\">\n <template v-if=\"type === 'array'\">\n <ScalarComboboxMultiselect\n :modelValue=\"selectedArrayOptions\"\n :options=\"arrayOptions\"\n @update:modelValue=\"updateSelectedOptions\">\n <ScalarButton\n class=\"custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none\"\n fullWidth\n variant=\"ghost\">\n <span class=\"text-c-1 whitespace-nowrap\">{{\n selectedArrayOptions.length > 0\n ? selectedArrayOptions.map((option) => option.label).join(', ')\n : 'Select a value'\n }}</span>\n <ScalarIcon\n icon=\"ChevronDown\"\n size=\"md\"\n class=\"min-w-4\" />\n </ScalarButton>\n </ScalarComboboxMultiselect>\n </template>\n <template v-else-if=\"addingCustomValue\">\n <input\n ref=\"inputRef\"\n v-model=\"customValue\"\n class=\"text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none\"\n placeholder=\"Value\"\n type=\"text\"\n @blur=\"handleBlur\"\n @keyup.enter=\"addCustomValue\" />\n </template>\n <template v-else>\n <ScalarDropdown\n resize\n :value=\"initialValue\">\n <ScalarButton\n class=\"size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none\"\n variant=\"ghost\">\n <span class=\"text-c-1 overflow-hidden text-ellipsis\">{{\n initialValue || 'Select a value'\n }}</span>\n <ScalarIcon\n icon=\"ChevronDown\"\n size=\"md\" />\n </ScalarButton>\n <template #items>\n <ScalarDropdownItem\n v-for=\"option in options\"\n :key=\"option\"\n class=\"group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap\"\n :value=\"option\"\n @click=\"updateSelected(option)\">\n <div\n class=\"flex h-4 w-4 items-center justify-center rounded-full p-[3px]\"\n :class=\"\n isSelected(option)\n ? 'bg-c-accent text-b-1'\n : 'shadow-border text-transparent'\n \">\n <ScalarIcon\n class=\"size-2.5\"\n icon=\"Checkmark\"\n thickness=\"3\" />\n </div>\n <span class=\"overflow-hidden text-ellipsis\">{{ option }}</span>\n </ScalarDropdownItem>\n <template v-if=\"canAddCustomValue\">\n <ScalarDropdownDivider v-if=\"options.length\" />\n <ScalarDropdownItem\n class=\"flex items-center gap-1.5\"\n @click=\"addingCustomValue = true\">\n <div class=\"flex h-4 w-4 items-center justify-center\">\n <ScalarIcon\n icon=\"Add\"\n size=\"sm\" />\n </div>\n <span>Add value</span>\n </ScalarDropdownItem>\n </template>\n </template>\n </ScalarDropdown>\n </template>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarComboboxMultiselect,\n ScalarDropdown,\n ScalarDropdownDivider,\n ScalarDropdownItem,\n ScalarIcon,\n} from '@scalar/components'\nimport { computed, nextTick, ref, watch } from 'vue'\n\nconst props = withDefaults(\n defineProps<{\n modelValue: string | number\n value?: string[]\n default?: string | number | undefined\n canAddCustomValue?: boolean\n type?: string | undefined\n }>(),\n { canAddCustomValue: true },\n)\n\nconst emit = defineEmits<{\n (e: 'update:modelValue', v: string): void\n}>()\n\nconst options = computed(() => props.value ?? [])\nconst addingCustomValue = ref(false)\nconst customValue = ref('')\nconst inputRef = ref<HTMLInputElement | null>(null)\n\nwatch(customValue, (newValue) => {\n emit('update:modelValue', newValue)\n})\n\nconst updateSelected = (value: string) => {\n emit('update:modelValue', value)\n addingCustomValue.value = false\n}\n\nconst addCustomValue = () => {\n if (customValue.value.trim()) {\n updateSelected(customValue.value)\n }\n}\n\nconst handleBlur = () => {\n if (!customValue.value.trim()) {\n emit('update:modelValue', '')\n }\n addingCustomValue.value = false\n}\n\nconst isSelected = (value: string) => {\n return props.modelValue.toString() === value\n}\n\nwatch(addingCustomValue, (newValue) => {\n if (newValue) {\n nextTick(() => {\n inputRef.value?.focus()\n })\n }\n})\n\nconst initialValue = computed(() => {\n return props.modelValue !== undefined ? props.modelValue : props.default\n})\n\n/** Currently selected array example values */\nconst selectedArrayOptions = computed(() => {\n const selectedValues = new Set(props.modelValue.toString().split(', '))\n return options.value\n .filter((option) => selectedValues.has(option))\n .map((option) => ({ id: option, label: option, value: option }))\n})\n\n/** Options for the array type */\nconst arrayOptions = computed(() =>\n options.value.map((option) => ({ id: option, label: option, value: option })),\n)\n\n/** Update the model value when the selected options change */\nconst updateSelectedOptions = (selectedOptions: any) => {\n const selectedValues = selectedOptions.map((option: any) => option.value)\n emit('update:modelValue', selectedValues.join(', '))\n}\n</script>\n\n<template>\n <div\n class=\"group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline\">\n <template v-if=\"type === 'array'\">\n <ScalarComboboxMultiselect\n :modelValue=\"selectedArrayOptions\"\n :options=\"arrayOptions\"\n @update:modelValue=\"updateSelectedOptions\">\n <ScalarButton\n class=\"custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none\"\n fullWidth\n variant=\"ghost\">\n <span class=\"text-c-1 whitespace-nowrap\">{{\n selectedArrayOptions.length > 0\n ? selectedArrayOptions.map((option) => option.label).join(', ')\n : 'Select a value'\n }}</span>\n <ScalarIcon\n icon=\"ChevronDown\"\n size=\"md\"\n class=\"min-w-4\" />\n </ScalarButton>\n </ScalarComboboxMultiselect>\n </template>\n <template v-else-if=\"addingCustomValue\">\n <input\n ref=\"inputRef\"\n v-model=\"customValue\"\n class=\"text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none\"\n placeholder=\"Value\"\n type=\"text\"\n @blur=\"handleBlur\"\n @keyup.enter=\"addCustomValue\" />\n </template>\n <template v-else>\n <ScalarDropdown\n resize\n :value=\"initialValue\">\n <ScalarButton\n class=\"size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none\"\n variant=\"ghost\">\n <span class=\"text-c-1 overflow-hidden text-ellipsis\">{{\n initialValue || 'Select a value'\n }}</span>\n <ScalarIcon\n icon=\"ChevronDown\"\n size=\"md\" />\n </ScalarButton>\n <template #items>\n <ScalarDropdownItem\n v-for=\"option in options\"\n :key=\"option\"\n class=\"group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap\"\n :value=\"option\"\n @click=\"updateSelected(option)\">\n <div\n class=\"flex h-4 w-4 items-center justify-center rounded-full p-[3px]\"\n :class=\"\n isSelected(option)\n ? 'bg-c-accent text-b-1'\n : 'shadow-border text-transparent'\n \">\n <ScalarIcon\n class=\"size-2.5\"\n icon=\"Checkmark\"\n thickness=\"3\" />\n </div>\n <span class=\"overflow-hidden text-ellipsis\">{{ option }}</span>\n </ScalarDropdownItem>\n <template v-if=\"canAddCustomValue\">\n <ScalarDropdownDivider v-if=\"options.length\" />\n <ScalarDropdownItem\n class=\"flex items-center gap-1.5\"\n @click=\"addingCustomValue = true\">\n <div class=\"flex h-4 w-4 items-center justify-center\">\n <ScalarIcon\n icon=\"Add\"\n size=\"sm\" />\n </div>\n <span>Add value</span>\n </ScalarDropdownItem>\n </template>\n </template>\n </ScalarDropdown>\n </template>\n </div>\n</template>\n","import { ScalarTooltip } from '@scalar/components'\nimport { ScalarIconGlobe } from '@scalar/icons'\nimport type { Environment } from '@scalar/oas-utils/entities/environment'\nimport { REGEX } from '@scalar/oas-utils/helpers'\nimport {\n Decoration,\n type DecorationSet,\n EditorView,\n RangeSetBuilder,\n ViewPlugin,\n type ViewUpdate,\n WidgetType,\n} from '@scalar/use-codemirror'\nimport { nanoid } from 'nanoid'\nimport { createApp, defineComponent, h } from 'vue'\n\nimport { parseEnvVariables } from '@/libs'\nimport { type EnvVariables, getEnvColor } from '@/libs/env-helpers'\n\n/**\n * Displays the value of a variable of the active environment in a pill\n */\nclass PillWidget extends WidgetType {\n private app: any\n private uid: string\n environment: Environment | undefined\n envVariables: EnvVariables | undefined\n isReadOnly: boolean\n\n constructor(\n private variableName: string,\n environment: Environment | undefined,\n envVariables: EnvVariables | undefined,\n isReadOnly: boolean | undefined,\n ) {\n super()\n this.variableName = variableName\n this.environment = environment\n this.envVariables = envVariables\n this.isReadOnly = isReadOnly ?? false\n this.uid = nanoid()\n }\n\n toDOM() {\n const span = document.createElement('span')\n span.className = 'cm-pill'\n span.textContent = `${this.variableName}`\n\n const tooltipComponent = defineComponent({\n props: { variableName: { type: String, default: null } },\n render: () => {\n const val = this.envVariables\n ? parseEnvVariables(this.envVariables).find((thing) => thing.key === this.variableName)\n : undefined\n\n // Set the pill color based on the environment source or fallback to default color\n const isGlobal = val?.source === 'global'\n const pillColor = isGlobal\n ? 'var(--scalar-color-1)'\n : val && this.environment && this.environment.name !== 'No Environment'\n ? getEnvColor(this.environment)\n : 'var(--scalar-color-1)'\n\n span.style.setProperty('--tw-bg-base', pillColor)\n\n // Set opacity based on the existence of a value\n span.style.opacity = val?.value ? '1' : '0.5'\n\n // Tooltip content as string\n const tooltipContent = val?.value || 'No value'\n\n // Tooltip trigger element\n const tooltipTrigger = h('div', { class: 'flex items-center gap-1 whitespace-nowrap' }, [\n (isGlobal || (this.environment?.name === 'No Environment' && val?.value)) &&\n h(ScalarIconGlobe, { class: 'size-3 -ml-1', icon: 'Globe' }),\n h('span', this.variableName),\n ])\n\n return h(\n ScalarTooltip,\n {\n content: tooltipContent,\n delay: 0,\n placement: 'bottom',\n offset: 6,\n },\n {\n default: () => tooltipTrigger,\n },\n )\n },\n })\n\n this.app = createApp(tooltipComponent, { variableName: this.variableName })\n this.app.mount(span)\n\n return span\n }\n\n override destroy() {\n if (this.app) {\n this.app.unmount()\n }\n }\n\n override eq(other: WidgetType) {\n return other instanceof PillWidget && other.variableName === this.variableName && other.uid === this.uid\n }\n\n override ignoreEvent() {\n return false\n }\n}\n\n/**\n * Styles the active environment variable pill\n */\nexport const pillPlugin = (props: {\n environment: Environment | undefined\n envVariables: EnvVariables | undefined\n isReadOnly: boolean | undefined\n}) =>\n ViewPlugin.fromClass(\n class {\n decorations: DecorationSet\n\n constructor(view: EditorView) {\n this.decorations = this.buildDecorations(view)\n }\n\n update(update: ViewUpdate) {\n if (update.docChanged || update.viewportChanged) {\n requestAnimationFrame(() => {\n this.decorations = this.buildDecorations(update.view)\n update.view.update([])\n })\n }\n }\n\n buildDecorations(view: EditorView) {\n const builder = new RangeSetBuilder<Decoration>()\n\n for (const { from, to } of view.visibleRanges) {\n const text = view.state.doc.sliceString(from, to)\n let match\n\n while ((match = REGEX.VARIABLES.exec(text)) !== null) {\n const start = from + match.index\n const end = start + match[0].length\n const variableName = match[1] ?? ''\n builder.add(\n start,\n end,\n Decoration.widget({\n widget: new PillWidget(variableName, props.environment, props.envVariables, props.isReadOnly),\n side: 1,\n }),\n )\n }\n }\n\n return builder.finish()\n }\n },\n {\n decorations: (v) => v.decorations,\n },\n )\n\nexport const backspaceCommand = EditorView.domEventHandlers({\n keydown(event, view) {\n if (event.key === 'Backspace') {\n const { state } = view\n const { from, to } = state.selection.main\n\n // Prevent breaking line content addition on pill removal\n if (from === 0 && to === state.doc.length) {\n view.dispatch({\n changes: { from: 0, to: state.doc.length },\n selection: { anchor: 0 },\n })\n event.preventDefault()\n return true\n }\n\n if (from === to && from > 0) {\n const before = state.doc.sliceString(from - 2, from)\n if (before === '}}') {\n view.dispatch({\n changes: { from: from - 2, to },\n selection: { anchor: from - 2 },\n })\n event.preventDefault()\n return true\n }\n }\n }\n return false\n },\n})\n","<script setup lang=\"ts\">\nimport type { Environment } from '@scalar/oas-utils/entities/environment'\nimport {\n colorPicker as colorPickerExtension,\n useCodeMirror,\n useDropdown,\n type CodeMirrorLanguage,\n type Extension,\n} from '@scalar/use-codemirror'\nimport { nanoid } from 'nanoid'\nimport { computed, ref, toRef, useAttrs, watch, type Ref } from 'vue'\n\nimport { useLayout } from '@/hooks'\nimport type { EnvVariable } from '@/store/active-entities'\nimport EnvironmentVariableDropdown from '@/views/Environment/EnvironmentVariableDropdown.vue'\n\nimport DataTableInputSelect from '../DataTable/DataTableInputSelect.vue'\nimport { backspaceCommand, pillPlugin } from './codeVariableWidget'\n\nconst props = withDefaults(\n defineProps<{\n colorPicker?: boolean\n disabled?: boolean\n modelValue: string | number\n error?: boolean\n emitOnBlur?: boolean\n extensions?: Extension[]\n lineNumbers?: boolean\n lint?: boolean\n disableTabIndent?: boolean\n language?: CodeMirrorLanguage\n handleFieldSubmit?: (e: string) => void\n handleFieldChange?: (e: string) => void\n placeholder?: string\n required?: boolean\n disableEnter?: boolean\n disableCloseBrackets?: boolean\n enum?: string[]\n examples?: string[]\n type?: string | string[] | undefined\n nullable?: boolean\n withVariables?: boolean\n importCurl?: boolean\n default?: string | number\n environment: Environment\n envVariables: EnvVariable[]\n lineWrapping?: boolean\n }>(),\n {\n disableCloseBrackets: false,\n disableEnter: false,\n extensions: () => [],\n disableTabIndent: false,\n emitOnBlur: true,\n colorPicker: false,\n nullable: false,\n withVariables: true,\n disabled: false,\n lineWrapping: false,\n },\n)\nconst emit = defineEmits<{\n (e: 'submit', v: string): void\n (e: 'update:modelValue', v: string): void\n (e: 'curl', v: string): void\n (e: 'blur', v: string): void\n}>()\n\nconst attrs = useAttrs() as { id?: string }\nconst uid = (attrs.id as string) || `id-${nanoid()}`\n\nconst isFocused = ref(false)\n\n// Environment variable dropdown init\nconst showDropdown = ref(false)\nconst dropdownQuery = ref('')\nconst dropdownPosition = ref({ left: 0, top: 0 })\nconst dropdownRef = ref<InstanceType<\n typeof EnvironmentVariableDropdown\n> | null>(null)\n\nconst { layout } = useLayout()\n\n// ---------------------------------------------------------------------------\n// Event mapping from codemirror to standard input interfaces\n\n/** Change is emitted during typing. This does not trigger validation */\nfunction handleChange(value: string) {\n // We need to be careful, only if the value is different we trigger an update\n // on initial load of the component, this gets triggered cause we set the content\n if (value === props.modelValue) {\n return null\n }\n if (props.importCurl && value.trim().toLowerCase().startsWith('curl')) {\n emit('curl', value)\n // Maintain previous input value\n codeMirror.value?.dispatch({\n changes: {\n from: 0,\n to: codeMirror.value.state.doc.length,\n insert: String(props.modelValue),\n },\n })\n // Prevent table value population on current request\n return null\n }\n\n return props.handleFieldChange\n ? props.handleFieldChange(value)\n : emit('update:modelValue', value)\n}\n\n/** Submit is emitted on blur and enter. This will trigger validation */\nfunction handleSubmit(value: string) {\n return props.handleFieldSubmit\n ? props.handleFieldSubmit(value)\n : emit('submit', value)\n}\n\n/** Optional submit on blur. */\nfunction handleBlur(value: string) {\n isFocused.value = false\n if (props.emitOnBlur && props.modelValue) {\n handleSubmit(value)\n }\n emit('blur', value)\n}\n\n// ---------------------------------------------------------------------------\n// Codemirror instance handling\n\n// WARNING: Extensions are non-reactive! If props change nothing will happen\n\nconst extensions: Extension[] = [...props.extensions]\nif (props.colorPicker) {\n extensions.push(colorPickerExtension)\n}\n\n// Create a reactive pill plugin that updates when environment changes\nconst pillPluginExtension = computed(() =>\n pillPlugin({\n environment: props.environment,\n envVariables: props.envVariables,\n isReadOnly: layout === 'modal',\n }),\n)\n\n// Base extensions that will be used for the editor\nconst baseExtensions = computed(() => [\n ...extensions,\n pillPluginExtension.value,\n backspaceCommand,\n])\n\nconst codeMirrorRef: Ref<HTMLDivElement | null> = ref(null)\n\nconst { codeMirror } = useCodeMirror({\n content: toRef(() =>\n props.modelValue !== undefined ? String(props.modelValue) : '',\n ),\n onChange: (value) => {\n handleChange(value)\n updateDropdownVisibility()\n },\n onFocus: () => (isFocused.value = true),\n onBlur: (val) => handleBlur(val),\n codeMirrorRef,\n disableTabIndent: toRef(() => props.disableTabIndent),\n disableEnter: toRef(() => props.disableEnter),\n disableCloseBrackets: toRef(() => props.disableCloseBrackets),\n lineNumbers: toRef(() => props.lineNumbers),\n language: toRef(() => props.language),\n lint: toRef(() => props.lint),\n extensions: baseExtensions,\n placeholder: toRef(() => props.placeholder),\n})\n\ncodeMirror.value?.focus()\n\n// If we specify autofocus then focus codemirror on creation\nwatch(codeMirror, () => {\n if (codeMirror.value && Object.hasOwn(attrs, 'autofocus')) {\n codeMirror.value.focus()\n }\n})\n\nconst { handleDropdownSelect, updateDropdownVisibility } = useDropdown({\n codeMirror,\n query: dropdownQuery,\n showDropdown,\n dropdownPosition,\n})\n\n// Computed property to check if type is boolean and nullable\nconst booleanOptions = computed(() =>\n props.nullable ? ['true', 'false', 'null'] : ['true', 'false'],\n)\n\nconst handleKeyDown = (key: string, event: KeyboardEvent) => {\n if (showDropdown.value) {\n if (key === 'down') {\n event.preventDefault()\n dropdownRef.value?.handleArrowKey('down')\n } else if (key === 'up') {\n event.preventDefault()\n dropdownRef.value?.handleArrowKey('up')\n } else if (key === 'enter') {\n event.preventDefault()\n dropdownRef.value?.handleSelect()\n }\n } else if (key === 'escape') {\n if (!props.disableTabIndent) {\n event.stopPropagation()\n }\n } else if (key === 'enter' && event.target instanceof HTMLDivElement) {\n handleSubmit(event.target.textContent ?? '')\n }\n}\n\nconst defaultType = computed(() => {\n return Array.isArray(props.type)\n ? // Find the first type, that's not 'null'\n (props.type.find((type) => type !== 'null') ?? 'string')\n : // If it's not an array, just return the type\n props.type\n})\n\nconst displayVariablesDropdown = computed(\n () =>\n showDropdown.value &&\n props.withVariables &&\n layout !== 'modal' &&\n props.environment,\n)\n\ndefineExpose({\n /** Expose focus method */\n focus: () => {\n codeMirror.value?.focus()\n },\n // Expose these methods for testing\n handleChange,\n handleSubmit,\n handleBlur,\n booleanOptions,\n codeMirror,\n modelValue: props.modelValue,\n})\n</script>\n<script lang=\"ts\">\n// use normal <script> to declare options\nexport default {\n inheritAttrs: false,\n}\n</script>\n<template>\n <template v-if=\"disabled\">\n <div\n class=\"text-c-2 flex cursor-default items-center justify-center\"\n :class=\"layout === 'modal' ? 'font-code pr-2 pl-1 text-base' : 'px-2'\"\n data-testid=\"code-input-disabled\">\n <span class=\"whitespace-nowrap\">{{ modelValue }}</span>\n </div>\n </template>\n <template v-else-if=\"props.enum && props.enum.length\">\n <DataTableInputSelect\n :default=\"props.default\"\n :modelValue=\"modelValue\"\n :type=\"defaultType\"\n :value=\"props.enum\"\n @update:modelValue=\"emit('update:modelValue', $event)\" />\n </template>\n <template v-else-if=\"type === 'boolean' || type?.includes('boolean')\">\n <DataTableInputSelect\n :default=\"props.default\"\n :modelValue=\"modelValue\"\n :value=\"booleanOptions\"\n @update:modelValue=\"emit('update:modelValue', $event)\" />\n </template>\n <template v-else-if=\"props.examples && props.examples.length\">\n <DataTableInputSelect\n :default=\"props.default\"\n :modelValue=\"props.modelValue\"\n :value=\"props.examples\"\n @update:modelValue=\"emit('update:modelValue', $event)\" />\n </template>\n <template v-else>\n <div\n :id=\"uid\"\n v-bind=\"$attrs\"\n ref=\"codeMirrorRef\"\n class=\"group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden text-xs leading-[1.44] whitespace-nowrap -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline\"\n :class=\"{\n 'line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1':\n lineWrapping,\n 'flow-code-input--error': error,\n }\"\n @keydown.down.stop=\"handleKeyDown('down', $event)\"\n @keydown.enter=\"handleKeyDown('enter', $event)\"\n @keydown.escape=\"handleKeyDown('escape', $event)\"\n @keydown.up.stop=\"handleKeyDown('up', $event)\">\n <div\n v-if=\"!disableTabIndent\"\n class=\"z-context text-c-2 absolute right-1.5 bottom-1 hidden font-sans group-has-[:focus-visible]/input:block\"\n role=\"alert\">\n Press\n <kbd class=\"-mx-0.25 rounded border px-0.5 font-mono\">Esc</kbd> then\n <kbd class=\"-mx-0.25 rounded border px-0.5 font-mono\">Tab</kbd> to exit\n </div>\n </div>\n </template>\n <div\n v-if=\"$slots.warning\"\n class=\"centered-y text-orange absolute right-7 text-xs\">\n <slot name=\"warning\" />\n </div>\n <div\n v-if=\"$slots.icon\"\n class=\"centered-y absolute right-0 flex h-full items-center p-1.5 group-has-[.cm-focused]:z-1\">\n <slot name=\"icon\" />\n </div>\n <div\n v-if=\"required\"\n class=\"required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 mr-0.5 pt-px pr-2 opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.alert]:shadow-none group-[.error]:bg-transparent group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0\">\n Required\n </div>\n <EnvironmentVariableDropdown\n v-if=\"displayVariablesDropdown\"\n ref=\"dropdownRef\"\n :dropdownPosition=\"dropdownPosition\"\n :envVariables=\"envVariables\"\n :environment=\"environment\"\n :query=\"dropdownQuery\"\n @select=\"handleDropdownSelect\" />\n</template>\n<style scoped>\n/*\n Deep styling for customizing Codemirror\n*/\n:deep(.cm-editor) {\n height: 100%;\n outline: none;\n padding: 0;\n background: transparent;\n}\n:deep(.cm-placeholder) {\n color: var(--scalar-color-3);\n}\n:deep(.cm-content) {\n font-family: var(--scalar-font-code);\n font-size: var(--scalar-small);\n max-height: 20px;\n padding: 8px 0;\n}\n/* Tooltip helper */\n:deep(.cm-tooltip) {\n background: transparent !important;\n filter: brightness(var(--scalar-lifted-brightness));\n border-radius: var(--scalar-radius);\n box-shadow: var(--scalar-shadow-2);\n border: none !important;\n outline: none !important;\n overflow: hidden !important;\n}\n:deep(.cm-tooltip-autocomplete ul li) {\n padding: 3px 6px !important;\n}\n:deep(.cm-completionIcon-type:after) {\n color: var(--scalar-color-3) !important;\n}\n:deep(.cm-tooltip-autocomplete ul li[aria-selected]) {\n background: var(--scalar-background-2) !important;\n color: var(--scalar-color-1) !important;\n}\n:deep(.cm-tooltip-autocomplete ul) {\n padding: 6px !important;\n position: relative;\n}\n:deep(.cm-tooltip-autocomplete ul li:hover) {\n border-radius: 3px;\n color: var(--scalar-color-1) !important;\n background: var(--scalar-background-3) !important;\n}\n/* Disable active line highlighting */\n:deep(.cm-activeLine),\n:deep(.cm-activeLineGutter) {\n background-color: transparent;\n}\n/* Color selection matching */\n:deep(.cm-selectionMatch),\n:deep(.cm-matchingBracket) {\n border-radius: var(--scalar-radius);\n background: var(--scalar-background-4) !important;\n}\n/* Color Picker Swatches */\n:deep(.cm-css-color-picker-wrapper) {\n display: inline-flex;\n outline: 1px solid var(--scalar-background-3);\n border-radius: 3px;\n overflow: hidden;\n}\n/* Number gutter */\n:deep(.cm-gutters) {\n background-color: transparent;\n border-right: none;\n color: var(--scalar-color-3);\n font-size: var(--scalar-small);\n line-height: 22px;\n border-radius: 0 0 0 3px;\n}\n:deep(.cm-gutters:before) {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n width: calc(100% - 2px);\n height: calc(100% - 4px);\n border-radius: var(--scalar-radius) 0 0 var(--scalar-radius);\n background-color: var(--scalar-background-1);\n}\n:deep(.cm-gutterElement) {\n font-family: var(--scalar-font-code) !important;\n padding-left: 0px !important;\n padding-right: 6px !important;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n position: relative;\n}\n:deep(.cm-lineNumbers .cm-gutterElement) {\n min-width: fit-content;\n}\n:deep(.cm-gutter + .cm-gutter :not(.cm-foldGutter) .cm-gutterElement) {\n padding-left: 0 !important;\n}\n:deep(.cm-scroller) {\n overflow: auto;\n}\n.line-wrapping:focus-within :deep(.cm-content) {\n display: inline-table;\n min-height: fit-content;\n padding: 3px 6px;\n white-space: break-spaces;\n word-break: break-all;\n}\n</style>\n<style>\n.cm-pill {\n --tw-bg-base: var(--scalar-color-1);\n color: var(--tw-bg-base);\n padding: 0px 9px;\n border-radius: 3px;\n display: inline-block;\n border-radius: 30px;\n font-size: var(--scalar-small);\n background: color-mix(in srgb, var(--tw-bg-base), transparent 94%) !important;\n}\n.cm-pill.bg-grey {\n background: var(--scalar-background-3) !important;\n}\n.dark-mode .cm-pill {\n background: color-mix(in srgb, var(--tw-bg-base), transparent 90%) !important;\n}\n.cm-pill:first-of-type {\n margin-left: 0;\n}\n.cm-editor .cm-widgetBuffer {\n display: none;\n}\n.cm-foldPlaceholder:hover {\n color: var(--scalar-color-1);\n}\n.cm-foldGutter .cm-gutterElement {\n font-size: var(--scalar-heading-4);\n padding: 2px !important;\n}\n.cm-foldGutter .cm-gutterElement:first-of-type {\n display: none;\n}\n.cm-foldGutter .cm-gutterElement .cm-foldMarker {\n padding: 2px;\n padding-top: 2px;\n}\n.cm-foldGutter .cm-gutterElement:hover .cm-foldMarker {\n background: var(--scalar-background-2);\n border-radius: var(--scalar-radius);\n color: var(--scalar-color-1);\n}\n</style>\n","<script setup lang=\"ts\">\nimport type { Environment } from '@scalar/oas-utils/entities/environment'\nimport {\n colorPicker as colorPickerExtension,\n useCodeMirror,\n useDropdown,\n type CodeMirrorLanguage,\n type Extension,\n} from '@scalar/use-codemirror'\nimport { nanoid } from 'nanoid'\nimport { computed, ref, toRef, useAttrs, watch, type Ref } from 'vue'\n\nimport { useLayout } from '@/hooks'\nimport type { EnvVariable } from '@/store/active-entities'\nimport EnvironmentVariableDropdown from '@/views/Environment/EnvironmentVariableDropdown.vue'\n\nimport DataTableInputSelect from '../DataTable/DataTableInputSelect.vue'\nimport { backspaceCommand, pillPlugin } from './codeVariableWidget'\n\nconst props = withDefaults(\n defineProps<{\n colorPicker?: boolean\n disabled?: boolean\n modelValue: string | number\n error?: boolean\n emitOnBlur?: boolean\n extensions?: Extension[]\n lineNumbers?: boolean\n lint?: boolean\n disableTabIndent?: boolean\n language?: CodeMirrorLanguage\n handleFieldSubmit?: (e: string) => void\n handleFieldChange?: (e: string) => void\n placeholder?: string\n required?: boolean\n disableEnter?: boolean\n disableCloseBrackets?: boolean\n enum?: string[]\n examples?: string[]\n type?: string | string[] | undefined\n nullable?: boolean\n withVariables?: boolean\n importCurl?: boolean\n default?: string | number\n environment: Environment\n envVariables: EnvVariable[]\n lineWrapping?: boolean\n }>(),\n {\n disableCloseBrackets: false,\n disableEnter: false,\n extensions: () => [],\n disableTabIndent: false,\n emitOnBlur: true,\n colorPicker: false,\n nullable: false,\n withVariables: true,\n disabled: false,\n lineWrapping: false,\n },\n)\nconst emit = defineEmits<{\n (e: 'submit', v: string): void\n (e: 'update:modelValue', v: string): void\n (e: 'curl', v: string): void\n (e: 'blur', v: string): void\n}>()\n\nconst attrs = useAttrs() as { id?: string }\nconst uid = (attrs.id as string) || `id-${nanoid()}`\n\nconst isFocused = ref(false)\n\n// Environment variable dropdown init\nconst showDropdown = ref(false)\nconst dropdownQuery = ref('')\nconst dropdownPosition = ref({ left: 0, top: 0 })\nconst dropdownRef = ref<InstanceType<\n typeof EnvironmentVariableDropdown\n> | null>(null)\n\nconst { layout } = useLayout()\n\n// ---------------------------------------------------------------------------\n// Event mapping from codemirror to standard input interfaces\n\n/** Change is emitted during typing. This does not trigger validation */\nfunction handleChange(value: string) {\n // We need to be careful, only if the value is different we trigger an update\n // on initial load of the component, this gets triggered cause we set the content\n if (value === props.modelValue) {\n return null\n }\n if (props.importCurl && value.trim().toLowerCase().startsWith('curl')) {\n emit('curl', value)\n // Maintain previous input value\n codeMirror.value?.dispatch({\n changes: {\n from: 0,\n to: codeMirror.value.state.doc.length,\n insert: String(props.modelValue),\n },\n })\n // Prevent table value population on current request\n return null\n }\n\n return props.handleFieldChange\n ? props.handleFieldChange(value)\n : emit('update:modelValue', value)\n}\n\n/** Submit is emitted on blur and enter. This will trigger validation */\nfunction handleSubmit(value: string) {\n return props.handleFieldSubmit\n ? props.handleFieldSubmit(value)\n : emit('submit', value)\n}\n\n/** Optional submit on blur. */\nfunction handleBlur(value: string) {\n isFocused.value = false\n if (props.emitOnBlur && props.modelValue) {\n handleSubmit(value)\n }\n emit('blur', value)\n}\n\n// ---------------------------------------------------------------------------\n// Codemirror instance handling\n\n// WARNING: Extensions are non-reactive! If props change nothing will happen\n\nconst extensions: Extension[] = [...props.extensions]\nif (props.colorPicker) {\n extensions.push(colorPickerExtension)\n}\n\n// Create a reactive pill plugin that updates when environment changes\nconst pillPluginExtension = computed(() =>\n pillPlugin({\n environment: props.environment,\n envVariables: props.envVariables,\n isReadOnly: layout === 'modal',\n }),\n)\n\n// Base extensions that will be used for the editor\nconst baseExtensions = computed(() => [\n ...extensions,\n pillPluginExtension.value,\n backspaceCommand,\n])\n\nconst codeMirrorRef: Ref<HTMLDivElement | null> = ref(null)\n\nconst { codeMirror } = useCodeMirror({\n content: toRef(() =>\n props.modelValue !== undefined ? String(props.modelValue) : '',\n ),\n onChange: (value) => {\n handleChange(value)\n updateDropdownVisibility()\n },\n onFocus: () => (isFocused.value = true),\n onBlur: (val) => handleBlur(val),\n codeMirrorRef,\n disableTabIndent: toRef(() => props.disableTabIndent),\n disableEnter: toRef(() => props.disableEnter),\n disableCloseBrackets: toRef(() => props.disableCloseBrackets),\n lineNumbers: toRef(() => props.lineNumbers),\n language: toRef(() => props.language),\n lint: toRef(() => props.lint),\n extensions: baseExtensions,\n placeholder: toRef(() => props.placeholder),\n})\n\ncodeMirror.value?.focus()\n\n// If we specify autofocus then focus codemirror on creation\nwatch(codeMirror, () => {\n if (codeMirror.value && Object.hasOwn(attrs, 'autofocus')) {\n codeMirror.value.focus()\n }\n})\n\nconst { handleDropdownSelect, updateDropdownVisibility } = useDropdown({\n codeMirror,\n query: dropdownQuery,\n showDropdown,\n dropdownPosition,\n})\n\n// Computed property to check if type is boolean and nullable\nconst booleanOptions = computed(() =>\n props.nullable ? ['true', 'false', 'null'] : ['true', 'false'],\n)\n\nconst handleKeyDown = (key: string, event: KeyboardEvent) => {\n if (showDropdown.value) {\n if (key === 'down') {\n event.preventDefault()\n dropdownRef.value?.handleArrowKey('down')\n } else if (key === 'up') {\n event.preventDefault()\n dropdownRef.value?.handleArrowKey('up')\n } else if (key === 'enter') {\n event.preventDefault()\n dropdownRef.value?.handleSelect()\n }\n } else if (key === 'escape') {\n if (!props.disableTabIndent) {\n event.stopPropagation()\n }\n } else if (key === 'enter' && event.target instanceof HTMLDivElement) {\n handleSubmit(event.target.textContent ?? '')\n }\n}\n\nconst defaultType = computed(() => {\n return Array.isArray(props.type)\n ? // Find the first type, that's not 'null'\n (props.type.find((type) => type !== 'null') ?? 'string')\n : // If it's not an array, just return the type\n props.type\n})\n\nconst displayVariablesDropdown = computed(\n () =>\n showDropdown.value &&\n props.withVariables &&\n layout !== 'modal' &&\n props.environment,\n)\n\ndefineExpose({\n /** Expose focus method */\n focus: () => {\n codeMirror.value?.focus()\n },\n // Expose these methods for testing\n handleChange,\n handleSubmit,\n handleBlur,\n booleanOptions,\n codeMirror,\n modelValue: props.modelValue,\n})\n</script>\n<script lang=\"ts\">\n// use normal <script> to declare options\nexport default {\n inheritAttrs: false,\n}\n</script>\n<template>\n <template v-if=\"disabled\">\n <div\n class=\"text-c-2 flex cursor-default items-center justify-center\"\n :class=\"layout === 'modal' ? 'font-code pr-2 pl-1 text-base' : 'px-2'\"\n data-testid=\"code-input-disabled\">\n <span class=\"whitespace-nowrap\">{{ modelValue }}</span>\n </div>\n </template>\n <template v-else-if=\"props.enum && props.enum.length\">\n <DataTableInputSelect\n :default=\"props.default\"\n :modelValue=\"modelValue\"\n :type=\"defaultType\"\n :value=\"props.enum\"\n @update:modelValue=\"emit('update:modelValue', $event)\" />\n </template>\n <template v-else-if=\"type === 'boolean' || type?.includes('boolean')\">\n <DataTableInputSelect\n :default=\"props.default\"\n :modelValue=\"modelValue\"\n :value=\"booleanOptions\"\n @update:modelValue=\"emit('update:modelValue', $event)\" />\n </template>\n <template v-else-if=\"props.examples && props.examples.length\">\n <DataTableInputSelect\n :default=\"props.default\"\n :modelValue=\"props.modelValue\"\n :value=\"props.examples\"\n @update:modelValue=\"emit('update:modelValue', $event)\" />\n </template>\n <template v-else>\n <div\n :id=\"uid\"\n v-bind=\"$attrs\"\n ref=\"codeMirrorRef\"\n class=\"group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden text-xs leading-[1.44] whitespace-nowrap -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline\"\n :class=\"{\n 'line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1':\n lineWrapping,\n 'flow-code-input--error': error,\n }\"\n @keydown.down.stop=\"handleKeyDown('down', $event)\"\n @keydown.enter=\"handleKeyDown('enter', $event)\"\n @keydown.escape=\"handleKeyDown('escape', $event)\"\n @keydown.up.stop=\"handleKeyDown('up', $event)\">\n <div\n v-if=\"!disableTabIndent\"\n class=\"z-context text-c-2 absolute right-1.5 bottom-1 hidden font-sans group-has-[:focus-visible]/input:block\"\n role=\"alert\">\n Press\n <kbd class=\"-mx-0.25 rounded border px-0.5 font-mono\">Esc</kbd> then\n <kbd class=\"-mx-0.25 rounded border px-0.5 font-mono\">Tab</kbd> to exit\n </div>\n </div>\n </template>\n <div\n v-if=\"$slots.warning\"\n class=\"centered-y text-orange absolute right-7 text-xs\">\n <slot name=\"warning\" />\n </div>\n <div\n v-if=\"$slots.icon\"\n class=\"centered-y absolute right-0 flex h-full items-center p-1.5 group-has-[.cm-focused]:z-1\">\n <slot name=\"icon\" />\n </div>\n <div\n v-if=\"required\"\n class=\"required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 mr-0.5 pt-px pr-2 opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.alert]:shadow-none group-[.error]:bg-transparent group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0\">\n Required\n </div>\n <EnvironmentVariableDropdown\n v-if=\"displayVariablesDropdown\"\n ref=\"dropdownRef\"\n :dropdownPosition=\"dropdownPosition\"\n :envVariables=\"envVariables\"\n :environment=\"environment\"\n :query=\"dropdownQuery\"\n @select=\"handleDropdownSelect\" />\n</template>\n<style scoped>\n/*\n Deep styling for customizing Codemirror\n*/\n:deep(.cm-editor) {\n height: 100%;\n outline: none;\n padding: 0;\n background: transparent;\n}\n:deep(.cm-placeholder) {\n color: var(--scalar-color-3);\n}\n:deep(.cm-content) {\n font-family: var(--scalar-font-code);\n font-size: var(--scalar-small);\n max-height: 20px;\n padding: 8px 0;\n}\n/* Tooltip helper */\n:deep(.cm-tooltip) {\n background: transparent !important;\n filter: brightness(var(--scalar-lifted-brightness));\n border-radius: var(--scalar-radius);\n box-shadow: var(--scalar-shadow-2);\n border: none !important;\n outline: none !important;\n overflow: hidden !important;\n}\n:deep(.cm-tooltip-autocomplete ul li) {\n padding: 3px 6px !important;\n}\n:deep(.cm-completionIcon-type:after) {\n color: var(--scalar-color-3) !important;\n}\n:deep(.cm-tooltip-autocomplete ul li[aria-selected]) {\n background: var(--scalar-background-2) !important;\n color: var(--scalar-color-1) !important;\n}\n:deep(.cm-tooltip-autocomplete ul) {\n padding: 6px !important;\n position: relative;\n}\n:deep(.cm-tooltip-autocomplete ul li:hover) {\n border-radius: 3px;\n color: var(--scalar-color-1) !important;\n background: var(--scalar-background-3) !important;\n}\n/* Disable active line highlighting */\n:deep(.cm-activeLine),\n:deep(.cm-activeLineGutter) {\n background-color: transparent;\n}\n/* Color selection matching */\n:deep(.cm-selectionMatch),\n:deep(.cm-matchingBracket) {\n border-radius: var(--scalar-radius);\n background: var(--scalar-background-4) !important;\n}\n/* Color Picker Swatches */\n:deep(.cm-css-color-picker-wrapper) {\n display: inline-flex;\n outline: 1px solid var(--scalar-background-3);\n border-radius: 3px;\n overflow: hidden;\n}\n/* Number gutter */\n:deep(.cm-gutters) {\n background-color: transparent;\n border-right: none;\n color: var(--scalar-color-3);\n font-size: var(--scalar-small);\n line-height: 22px;\n border-radius: 0 0 0 3px;\n}\n:deep(.cm-gutters:before) {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n width: calc(100% - 2px);\n height: calc(100% - 4px);\n border-radius: var(--scalar-radius) 0 0 var(--scalar-radius);\n background-color: var(--scalar-background-1);\n}\n:deep(.cm-gutterElement) {\n font-family: var(--scalar-font-code) !important;\n padding-left: 0px !important;\n padding-right: 6px !important;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n position: relative;\n}\n:deep(.cm-lineNumbers .cm-gutterElement) {\n min-width: fit-content;\n}\n:deep(.cm-gutter + .cm-gutter :not(.cm-foldGutter) .cm-gutterElement) {\n padding-left: 0 !important;\n}\n:deep(.cm-scroller) {\n overflow: auto;\n}\n.line-wrapping:focus-within :deep(.cm-content) {\n display: inline-table;\n min-height: fit-content;\n padding: 3px 6px;\n white-space: break-spaces;\n word-break: break-all;\n}\n</style>\n<style>\n.cm-pill {\n --tw-bg-base: var(--scalar-color-1);\n color: var(--tw-bg-base);\n padding: 0px 9px;\n border-radius: 3px;\n display: inline-block;\n border-radius: 30px;\n font-size: var(--scalar-small);\n background: color-mix(in srgb, var(--tw-bg-base), transparent 94%) !important;\n}\n.cm-pill.bg-grey {\n background: var(--scalar-background-3) !important;\n}\n.dark-mode .cm-pill {\n background: color-mix(in srgb, var(--tw-bg-base), transparent 90%) !important;\n}\n.cm-pill:first-of-type {\n margin-left: 0;\n}\n.cm-editor .cm-widgetBuffer {\n display: none;\n}\n.cm-foldPlaceholder:hover {\n color: var(--scalar-color-1);\n}\n.cm-foldGutter .cm-gutterElement {\n font-size: var(--scalar-heading-4);\n padding: 2px !important;\n}\n.cm-foldGutter .cm-gutterElement:first-of-type {\n display: none;\n}\n.cm-foldGutter .cm-gutterElement .cm-foldMarker {\n padding: 2px;\n padding-top: 2px;\n}\n.cm-foldGutter .cm-gutterElement:hover .cm-foldMarker {\n background: var(--scalar-background-2);\n border-radius: var(--scalar-radius);\n color: var(--scalar-color-1);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECcA,MAAM,QAAQ;EAQd,MAAM,OAAO;EAIb,MAAM,SAAS,IAAI,KAAI;EACvB,MAAM,cAAc,IAAwB,KAAI;EAChD,MAAM,wBAAwB,IAAI,EAAC;EACnC,MAAM,SAAS,WAAU;EACzB,MAAM,EAAE,qBAAqB,mBAAkB;EAE/C,MAAM,8BAA8B;AAClC,OAAI,CAAC,OACH;GAEF,MAAM,EAAE,cAAc,SAAS;GAC/B,MAAM,cAAc,aAAa,MAAM,OAAO;AAG9C,OACE,CAAC,iBAAiB,SAClB,iBAAiB,MAAM,MAAM,UAAU,SAEvC,MAAK;IACH,MAA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AA,WAAA,EADT,mBAOM,OAPN,YAOM,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA;qBAJS,WAEb,GAAA;KAAA,mBAA+D,OAAA,EAA1D,OAAM,4CAA0C,EAAC,OAAG,GAAA;qBAAM,UAC/D,GAAA;KAAA,mBAA+D,OAAA,EAA1D,OAAM,4CAA0C,EAAC,OAAG,GAAA;qBAAM,aACjE,GAAA;;IAIIC,KAAAA,OAAO,WAAA,WAAA,EADf,mBAIM,OAJN,YAIM,CADJ,WAAuB,KAAA,QAAA,WAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,CAAA,IAAA,mBAAA,IAAA,KAAA;IAGjBA,KAAAA,OAAO,QAAA,WAAA,EADf,mBAIM,OAJN,YAIM,CADJ,WAAoB,KAAA,QAAA,QAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,CAAA,IAAA,mBAAA,IAAA,KAAA;IAGd,QAAA,YAAA,WAAA,EADR,mBAIM,OAJN,YAEoX,aAEpX,IAAA,mBAAA,IAAA,KAAA;IAEQ,yBAAA,SAAA,WAAA,EADR,YAOmC,qCAAA;;cAL7B;KAAJ,KAAI;KACH,kBAAkB,iBAAA;KAClB,cAAc,QAAA;KACd,aAAa,QAAA;KACb,OAAO,cAAA;KACP,UAAQ,MAAA,qBAAoB"}
@@ -1,218 +0,0 @@
1
- import { n as replaceTemplateVariables } from "./string-template-sS5PtY6T.js";
2
- import { t as buildRequestSecurity } from "./build-request-security-BQjNr2MD.js";
3
- import { t as getSnippet } from "./get-snippet-DBRUSfZ2.js";
4
- import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, openBlock, toDisplayString, unref } from "vue";
5
- import { ScalarCodeBlock } from "@scalar/components";
6
- import { REGEX, isDefined, mergeUrls } from "@scalar/oas-utils/helpers";
7
- import { encode } from "js-base64";
8
- //#region src/views/Components/CodeSnippet/CodeSnippet.vue?vue&type=script&setup=true&lang.ts
9
- var _hoisted_1 = {
10
- key: 0,
11
- class: "text-c-3 flex min-h-16 items-center justify-center px-4 text-sm"
12
- };
13
- //#endregion
14
- //#region src/views/Components/CodeSnippet/CodeSnippet.vue
15
- var CodeSnippet_default = /* @__PURE__ */ defineComponent({
16
- __name: "CodeSnippet",
17
- props: {
18
- target: {},
19
- client: {},
20
- operation: {},
21
- server: {},
22
- example: {},
23
- securitySchemes: { default: () => [] },
24
- environment: {}
25
- },
26
- setup(__props) {
27
- /** Block secrets from being shown in the code block */
28
- const secretCredentials = computed(() => __props.securitySchemes.flatMap((scheme) => {
29
- if (scheme.type === "apiKey") return scheme.value;
30
- if (scheme?.type === "http") return [
31
- scheme.token,
32
- scheme.password,
33
- encode(`${scheme.username}:${scheme.password}`)
34
- ];
35
- if (scheme.type === "oauth2") return Object.values(scheme.flows).map((flow) => flow?.token).filter(isDefined);
36
- return [];
37
- }));
38
- /** Generated code example */
39
- const content = computed(() => {
40
- const harRequest = getHarRequest({
41
- operation: __props.operation,
42
- example: __props.example,
43
- server: __props.server,
44
- securitySchemes: __props.securitySchemes,
45
- environment: __props.environment
46
- });
47
- const [error, payload] = getSnippet(__props.target, __props.client, harRequest);
48
- return {
49
- error,
50
- payload
51
- };
52
- });
53
- /** CodeMirror syntax highlighting language */
54
- const language = computed(() => {
55
- if (__props.target === "shell" && __props.client === "curl") return "curl";
56
- return __props.target ?? "plaintext";
57
- });
58
- return (_ctx, _cache) => {
59
- return content.value.error ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(content.value.error.message), 1)) : content.value.payload ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
60
- key: 1,
61
- class: "w-full",
62
- content: content.value.payload,
63
- hideCredentials: secretCredentials.value,
64
- lang: language.value,
65
- lineNumbers: ""
66
- }, null, 8, [
67
- "content",
68
- "hideCredentials",
69
- "lang"
70
- ])) : createCommentVNode("", true);
71
- };
72
- }
73
- });
74
- //#endregion
75
- //#region src/views/Components/CodeSnippet/helpers/convert-to-har-request.ts
76
- /**
77
- * Takes in a regular request object and returns a HAR request
78
- * We also Titlecase the headers and remove accept header if it's *
79
- */
80
- var convertToHarRequest = ({ baseUrl = "", method, body, path, cookies, headers, query }) => {
81
- const url = mergeUrls(baseUrl, path, void 0, true);
82
- const harRequest = {
83
- method: method.toUpperCase(),
84
- url: url.toString(),
85
- httpVersion: "HTTP/1.1",
86
- headers: [],
87
- queryString: [],
88
- cookies: [],
89
- headersSize: -1,
90
- bodySize: -1
91
- };
92
- if (cookies.length) harRequest.cookies = cookies.filter((c) => c.enabled).map(({ key, value }) => ({
93
- name: key,
94
- value
95
- }));
96
- if (headers.length) harRequest.headers = headers.filter((h) => h.enabled && !(h.key.toLowerCase() === "accept" && h.value === "*/*")).map(({ key, value }) => ({
97
- name: key.replace(/\b\w/g, (letter) => letter.toUpperCase()),
98
- value
99
- }));
100
- if (query.length) harRequest.queryString = query.filter((q) => q.enabled).map(({ key, value }) => ({
101
- name: key,
102
- value
103
- }));
104
- if (body) try {
105
- const contentType = headers.find((h) => h.key.toLowerCase() === "content-type")?.value;
106
- if (body.activeBody === "formData" && body.formData) {
107
- const params = [];
108
- body.formData.value.forEach(({ key, value, file, enabled }) => {
109
- if (!enabled) return;
110
- if (file) params.push({
111
- name: key || "blob",
112
- value: "BINARY",
113
- fileName: file.name,
114
- contentType: file.type || "application/octet-stream"
115
- });
116
- else params.push({
117
- name: key,
118
- value
119
- });
120
- });
121
- if (body.formData?.encoding === "urlencoded") harRequest.postData = {
122
- mimeType: contentType || "application/x-www-form-urlencoded",
123
- params
124
- };
125
- else harRequest.postData = {
126
- mimeType: contentType || "multipart/form-data",
127
- params
128
- };
129
- } else if (body.activeBody === "raw" && body.raw) harRequest.postData = {
130
- mimeType: contentType || "application/json",
131
- text: body.raw?.value ?? ""
132
- };
133
- } catch (_e) {}
134
- return harRequest;
135
- };
136
- //#endregion
137
- //#region src/views/Components/CodeSnippet/helpers/get-har-request.ts
138
- var EMPTY_TOKEN_PLACEHOLDER = "YOUR_SECRET_TOKEN";
139
- /**
140
- * Creates a snippetz-compatible HarRequest from OpenAPI-like store entities
141
- *
142
- * @deprecated, can be removed once we've migrated to the new code snippet component
143
- */
144
- var getHarRequest = ({ operation, example, server, securitySchemes = [], environment }) => {
145
- const env = environment && Array.isArray(environment) ? Object.fromEntries(environment.map((v) => [v.key, v.value])) : environment || {};
146
- const encodedPathVars = (example?.parameters?.path ?? []).reduce((vars, param) => {
147
- if (param.enabled) {
148
- const substitutedValue = replaceTemplateVariables(param.value, env);
149
- vars[param.key] = encodeURIComponent(substitutedValue);
150
- }
151
- return vars;
152
- }, {});
153
- const serverString = (() => {
154
- if (server?.url && (REGEX.VARIABLES.test(server.url) || REGEX.PATH.test(server.url))) {
155
- const serverParams = Object.entries(server?.variables || {}).reduce((acc, [key, variable]) => {
156
- if (encodedPathVars[key]) acc[key] = encodedPathVars[key];
157
- else if (variable.default) acc[key] = replaceTemplateVariables(variable.default, env);
158
- return acc;
159
- }, {});
160
- return replaceTemplateVariables(replaceTemplateVariables(server.url, env), serverParams);
161
- }
162
- return server?.url;
163
- })();
164
- const pathString = (() => {
165
- const path = operation?.path ?? "/";
166
- if (path && (REGEX.VARIABLES.test(path) || REGEX.PATH.test(path))) return replaceTemplateVariables(replaceTemplateVariables(path, env), encodedPathVars);
167
- return path;
168
- })();
169
- const security = buildRequestSecurity(securitySchemes, env, EMPTY_TOKEN_PLACEHOLDER);
170
- const headers = [...(example?.parameters.headers ?? []).map((h) => ({
171
- ...h,
172
- value: REGEX.VARIABLES.test(h.value) || REGEX.PATH.test(h.value) ? replaceTemplateVariables(h.value, env) : h.value
173
- })) ?? [], ...Object.entries(security.headers).map(([key, value]) => ({
174
- key,
175
- value,
176
- enabled: true
177
- }))];
178
- const cookies = [...(example?.parameters.cookies ?? []).map((c) => ({
179
- ...c,
180
- value: REGEX.VARIABLES.test(c.value) || REGEX.PATH.test(c.value) ? replaceTemplateVariables(c.value, env) : c.value
181
- })) ?? [], ...security.cookies.map((cookie) => ({
182
- key: cookie.name,
183
- value: cookie.value,
184
- enabled: true
185
- }))];
186
- const query = [...(example?.parameters.query ?? []).map((q) => ({
187
- ...q,
188
- value: REGEX.VARIABLES.test(q.value) || REGEX.PATH.test(q.value) ? replaceTemplateVariables(q.value, env) : q.value
189
- })) ?? [], ...Array.from(security.urlParams.entries()).map(([key, value]) => ({
190
- key,
191
- value,
192
- enabled: true
193
- }))];
194
- const body = (() => {
195
- const body = example?.body;
196
- if (body?.raw?.value && (REGEX.VARIABLES.test(body.raw.value) || REGEX.PATH.test(body.raw.value))) return {
197
- ...body,
198
- raw: {
199
- ...body.raw,
200
- value: replaceTemplateVariables(body.raw.value, env)
201
- }
202
- };
203
- return body;
204
- })();
205
- return convertToHarRequest({
206
- baseUrl: serverString,
207
- method: operation?.method ?? "get",
208
- path: pathString,
209
- body,
210
- cookies,
211
- headers,
212
- query
213
- });
214
- };
215
- //#endregion
216
- export { convertToHarRequest as n, CodeSnippet_default as r, getHarRequest as t };
217
-
218
- //# sourceMappingURL=CodeSnippet-D7Heh1nd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeSnippet-D7Heh1nd.js","names":[],"sources":["../src/views/Components/CodeSnippet/CodeSnippet.vue","../src/views/Components/CodeSnippet/CodeSnippet.vue","../src/views/Components/CodeSnippet/helpers/convert-to-har-request.ts","../src/views/Components/CodeSnippet/helpers/get-har-request.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarCodeBlock } from '@scalar/components'\nimport type {\n Operation,\n RequestExample,\n SecurityScheme,\n Server,\n} from '@scalar/oas-utils/entities/spec'\nimport { isDefined } from '@scalar/oas-utils/helpers'\nimport type { ClientId, TargetId } from '@scalar/snippetz'\nimport { encode } from 'js-base64'\nimport { computed } from 'vue'\n\nimport type { EnvVariables } from '@/libs/env-helpers'\nimport { getHarRequest, getSnippet } from '@/views/Components/CodeSnippet'\n\nconst {\n target,\n client,\n operation,\n server,\n example,\n securitySchemes = [],\n environment,\n} = defineProps<{\n target: TargetId\n client: ClientId<TargetId>\n operation?: Operation | undefined\n server?: Server | undefined\n example?: RequestExample | undefined\n securitySchemes?: SecurityScheme[]\n environment?: EnvVariables | undefined\n}>()\n\n/** Block secrets from being shown in the code block */\nconst secretCredentials = computed(() =>\n securitySchemes.flatMap((scheme) => {\n if (scheme.type === 'apiKey') {\n return scheme.value\n }\n if (scheme?.type === 'http') {\n return [\n scheme.token,\n scheme.password,\n encode(`${scheme.username}:${scheme.password}`),\n ]\n }\n if (scheme.type === 'oauth2') {\n return Object.values(scheme.flows)\n .map((flow) => flow?.token)\n .filter(isDefined)\n }\n\n return []\n }),\n)\n\n/** Generated code example */\nconst content = computed(() => {\n const harRequest = getHarRequest({\n operation,\n example,\n server,\n securitySchemes,\n environment,\n })\n\n const [error, payload] = getSnippet(target, client, harRequest)\n return { error, payload }\n})\n\n/** CodeMirror syntax highlighting language */\nconst language = computed(() => {\n // Normalize languages\n if (target === 'shell' && client === 'curl') {\n return 'curl'\n }\n // TODO: js -> javascript?\n\n return target ?? 'plaintext'\n})\n</script>\n<template>\n <div\n v-if=\"content.error\"\n class=\"text-c-3 flex min-h-16 items-center justify-center px-4 text-sm\">\n {{ content.error.message }}\n </div>\n <ScalarCodeBlock\n v-else-if=\"content.payload\"\n class=\"w-full\"\n :content=\"content.payload\"\n :hideCredentials=\"secretCredentials\"\n :lang=\"language\"\n lineNumbers />\n</template>\n","<script setup lang=\"ts\">\nimport { ScalarCodeBlock } from '@scalar/components'\nimport type {\n Operation,\n RequestExample,\n SecurityScheme,\n Server,\n} from '@scalar/oas-utils/entities/spec'\nimport { isDefined } from '@scalar/oas-utils/helpers'\nimport type { ClientId, TargetId } from '@scalar/snippetz'\nimport { encode } from 'js-base64'\nimport { computed } from 'vue'\n\nimport type { EnvVariables } from '@/libs/env-helpers'\nimport { getHarRequest, getSnippet } from '@/views/Components/CodeSnippet'\n\nconst {\n target,\n client,\n operation,\n server,\n example,\n securitySchemes = [],\n environment,\n} = defineProps<{\n target: TargetId\n client: ClientId<TargetId>\n operation?: Operation | undefined\n server?: Server | undefined\n example?: RequestExample | undefined\n securitySchemes?: SecurityScheme[]\n environment?: EnvVariables | undefined\n}>()\n\n/** Block secrets from being shown in the code block */\nconst secretCredentials = computed(() =>\n securitySchemes.flatMap((scheme) => {\n if (scheme.type === 'apiKey') {\n return scheme.value\n }\n if (scheme?.type === 'http') {\n return [\n scheme.token,\n scheme.password,\n encode(`${scheme.username}:${scheme.password}`),\n ]\n }\n if (scheme.type === 'oauth2') {\n return Object.values(scheme.flows)\n .map((flow) => flow?.token)\n .filter(isDefined)\n }\n\n return []\n }),\n)\n\n/** Generated code example */\nconst content = computed(() => {\n const harRequest = getHarRequest({\n operation,\n example,\n server,\n securitySchemes,\n environment,\n })\n\n const [error, payload] = getSnippet(target, client, harRequest)\n return { error, payload }\n})\n\n/** CodeMirror syntax highlighting language */\nconst language = computed(() => {\n // Normalize languages\n if (target === 'shell' && client === 'curl') {\n return 'curl'\n }\n // TODO: js -> javascript?\n\n return target ?? 'plaintext'\n})\n</script>\n<template>\n <div\n v-if=\"content.error\"\n class=\"text-c-3 flex min-h-16 items-center justify-center px-4 text-sm\">\n {{ content.error.message }}\n </div>\n <ScalarCodeBlock\n v-else-if=\"content.payload\"\n class=\"w-full\"\n :content=\"content.payload\"\n :hideCredentials=\"secretCredentials\"\n :lang=\"language\"\n lineNumbers />\n</template>\n","import type { Operation, RequestExample } from '@scalar/oas-utils/entities/spec'\nimport { mergeUrls } from '@scalar/oas-utils/helpers'\nimport type { FormDataParam, HarRequest } from '@scalar/snippetz'\n\ntype Props = {\n baseUrl: string | undefined\n body?: RequestExample['body'] | undefined\n cookies: { key: string; value: string; enabled: boolean }[]\n headers: { key: string; value: string; enabled: boolean }[]\n query: { key: string; value: string; enabled: boolean }[]\n} & Pick<Operation, 'method' | 'path'>\n\n/**\n * Takes in a regular request object and returns a HAR request\n * We also Titlecase the headers and remove accept header if it's *\n */\nexport const convertToHarRequest = ({\n baseUrl = '',\n method,\n body,\n path,\n cookies,\n headers,\n query,\n}: Props): HarRequest => {\n // Merge the two urls with a failsafe\n const url = mergeUrls(baseUrl, path, undefined, true)\n\n // Create base HAR request structure\n const harRequest: HarRequest = {\n method: method.toUpperCase(),\n url: url.toString(),\n httpVersion: 'HTTP/1.1',\n headers: [],\n queryString: [],\n cookies: [],\n headersSize: -1,\n bodySize: -1,\n }\n\n // Handle cookies from Cookie header\n if (cookies.length) {\n harRequest.cookies = cookies\n .filter((c) => c.enabled)\n .map(({ key, value }) => ({\n name: key,\n value,\n }))\n }\n\n // Convert headers\n if (headers.length) {\n harRequest.headers = headers\n .filter((h) => h.enabled && !(h.key.toLowerCase() === 'accept' && h.value === '*/*'))\n .map(({ key, value }) => ({\n name: key.replace(/\\b\\w/g, (letter) => letter.toUpperCase()),\n value,\n }))\n }\n\n // Handle query parameters\n if (query.length) {\n harRequest.queryString = query\n .filter((q) => q.enabled)\n .map(({ key, value }) => ({\n name: key,\n value,\n }))\n }\n\n // Handle request body if present\n if (body) {\n try {\n const contentType = headers.find((h) => h.key.toLowerCase() === 'content-type')?.value\n\n // For form-data, convert to object while handling File objects\n if (body.activeBody === 'formData' && body.formData) {\n const params: FormDataParam[] = []\n\n body.formData.value.forEach(({ key, value, file, enabled }) => {\n if (!enabled) {\n return\n }\n\n if (file) {\n params.push({\n name: key || 'blob',\n value: 'BINARY',\n fileName: file.name,\n contentType: file.type || 'application/octet-stream',\n })\n } else {\n params.push({\n name: key,\n value,\n })\n }\n })\n\n // Handle urlencoded form data\n if (body.formData?.encoding === 'urlencoded') {\n harRequest.postData = {\n mimeType: contentType || 'application/x-www-form-urlencoded',\n params,\n }\n } else {\n harRequest.postData = {\n mimeType: contentType || 'multipart/form-data',\n params,\n }\n }\n } else if (body.activeBody === 'raw' && body.raw) {\n // For other content types (JSON, plain text, url-encoded)\n harRequest.postData = {\n mimeType: contentType || 'application/json',\n text: body.raw?.value ?? '',\n }\n }\n } catch (_e) {\n // Invalid request body, leave postData empty\n }\n }\n\n return harRequest\n}\n","import type { Operation, RequestExample, SecurityScheme, Server } from '@scalar/oas-utils/entities/spec'\nimport { REGEX } from '@scalar/oas-utils/helpers'\nimport type { HarRequest } from '@scalar/snippetz'\n\nimport type { EnvVariables } from '@/libs/env-helpers'\nimport { buildRequestSecurity } from '@/libs/send-request/build-request-security'\nimport { replaceTemplateVariables } from '@/libs/string-template'\n\nimport { convertToHarRequest } from './convert-to-har-request'\n\nconst EMPTY_TOKEN_PLACEHOLDER = 'YOUR_SECRET_TOKEN'\n\n/**\n * Creates a snippetz-compatible HarRequest from OpenAPI-like store entities\n *\n * @deprecated, can be removed once we've migrated to the new code snippet component\n */\nexport const getHarRequest = ({\n operation,\n example,\n server,\n securitySchemes = [],\n environment,\n}: {\n operation?: Operation | undefined\n example?: RequestExample | undefined\n server?: Server | undefined\n securitySchemes?: SecurityScheme[]\n environment?: EnvVariables | undefined\n}): HarRequest => {\n // Convert environment variables to a key-value object\n const env =\n environment && Array.isArray(environment)\n ? Object.fromEntries(environment.map((v: any) => [v.key, v.value]))\n : environment || {}\n\n const encodedPathVars = (example?.parameters?.path ?? []).reduce<Record<string, string>>((vars, param) => {\n if (param.enabled) {\n const substitutedValue = replaceTemplateVariables(param.value, env)\n vars[param.key] = encodeURIComponent(substitutedValue)\n }\n return vars\n }, {})\n\n const serverString = (() => {\n if (server?.url && (REGEX.VARIABLES.test(server.url) || REGEX.PATH.test(server.url))) {\n const serverParams = Object.entries(server?.variables || {}).reduce<Record<string, string>>(\n (acc, [key, variable]) => {\n if (encodedPathVars[key]) {\n acc[key] = encodedPathVars[key]\n } else if (variable.default) {\n acc[key] = replaceTemplateVariables(variable.default, env)\n }\n return acc\n },\n {},\n )\n return replaceTemplateVariables(replaceTemplateVariables(server.url, env), serverParams)\n }\n return server?.url\n })()\n\n const pathString = (() => {\n const path = operation?.path ?? '/'\n if (path && (REGEX.VARIABLES.test(path) || REGEX.PATH.test(path))) {\n return replaceTemplateVariables(replaceTemplateVariables(path, env), encodedPathVars)\n }\n return path\n })()\n\n // Grab the security headers, cookies and url params\n const security = buildRequestSecurity(securitySchemes, env, EMPTY_TOKEN_PLACEHOLDER)\n\n // Merge the security headers, cookies and query with example parameters\n const headers = [\n ...((example?.parameters.headers ?? []).map((h) => ({\n ...h,\n value:\n REGEX.VARIABLES.test(h.value) || REGEX.PATH.test(h.value) ? replaceTemplateVariables(h.value, env) : h.value,\n })) ?? []),\n ...Object.entries(security.headers).map(([key, value]) => ({\n key,\n value,\n enabled: true,\n })),\n ]\n const cookies = [\n ...((example?.parameters.cookies ?? []).map((c) => ({\n ...c,\n value:\n REGEX.VARIABLES.test(c.value) || REGEX.PATH.test(c.value) ? replaceTemplateVariables(c.value, env) : c.value,\n })) ?? []),\n ...security.cookies.map((cookie) => ({\n key: cookie.name,\n value: cookie.value,\n enabled: true,\n })),\n ]\n const query = [\n ...((example?.parameters.query ?? []).map((q) => ({\n ...q,\n value:\n REGEX.VARIABLES.test(q.value) || REGEX.PATH.test(q.value) ? replaceTemplateVariables(q.value, env) : q.value,\n })) ?? []),\n ...Array.from(security.urlParams.entries()).map(([key, value]) => ({\n key,\n value,\n enabled: true,\n })),\n ]\n\n // Fallback variable replacement for body (raw)\n const body = (() => {\n const body = example?.body\n if (body?.raw?.value && (REGEX.VARIABLES.test(body.raw.value) || REGEX.PATH.test(body.raw.value))) {\n return {\n ...body,\n raw: {\n ...body.raw,\n value: replaceTemplateVariables(body.raw.value, env),\n },\n }\n }\n return body\n })()\n\n // Converts it to a snippetz-compatible HarRequest\n return convertToHarRequest({\n baseUrl: serverString,\n method: operation?.method ?? 'get',\n path: pathString,\n body,\n cookies,\n headers,\n query,\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;ECmCA,MAAM,oBAAoB,eACxB,QAAA,gBAAgB,SAAS,WAAW;AAClC,OAAI,OAAO,SAAS,SAClB,QAAO,OAAO;AAEhB,OAAI,QAAQ,SAAS,OACnB,QAAO;IACL,OAAO;IACP,OAAO;IACP,OAAO,GAAG,OAAO,SAAS,GAAG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