@scalar/api-reference 1.36.1 → 1.37.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 (278) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/browser/standalone.js +26246 -25660
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceContent.vue.d.ts +34 -0
  5. package/dist/components/ApiReferenceContent.vue.d.ts.map +1 -0
  6. package/dist/components/ApiReferenceContent.vue.js +8 -0
  7. package/dist/components/ApiReferenceContent.vue2.js +148 -0
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  10. package/dist/components/ApiReferenceLayout.vue2.js +239 -219
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +2 -2
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/featured-clients.d.ts +1 -1
  16. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
  17. package/dist/components/Content/Content.vue.d.ts +21 -3
  18. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Content.vue.js +132 -95
  20. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -2
  21. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  23. package/dist/components/Content/Models/ClassicLayout.vue2.js +28 -28
  24. package/dist/components/Content/Models/Models.vue.d.ts +10 -2
  25. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Models/Models.vue.js +25 -27
  27. package/dist/components/Content/Models/ModernLayout.vue.d.ts +6 -2
  28. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
  30. package/dist/components/Content/Models/ModernLayout.vue2.js +30 -29
  31. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -6
  32. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Operations/TraversedEntry.vue.js +58 -46
  34. package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
  35. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
  36. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  37. package/dist/components/Content/Schema/Schema.vue2.js +24 -24
  38. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/helpers/get-ref-name.js +9 -7
  40. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
  41. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/helpers/schema-name.js +15 -14
  43. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
  44. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
  45. package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
  46. package/dist/components/Content/Tags/ModernLayout.vue.d.ts +3 -1
  47. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
  49. package/dist/components/Content/Tags/ModernLayout.vue2.js +34 -30
  50. package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
  51. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  52. package/dist/components/Content/Tags/Tag.vue.js +14 -12
  53. package/dist/components/Content/Tags/TagSection.vue.d.ts +2 -1
  54. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
  55. package/dist/components/Content/Tags/TagSection.vue.js +49 -52
  56. package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
  57. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  58. package/dist/components/OperationsList/OperationsList.vue.js +1 -1
  59. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
  60. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  61. package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
  62. package/dist/components/Section/Section.vue.js +1 -1
  63. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  64. package/dist/components/ShowMoreButton.vue.d.ts +1 -0
  65. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  66. package/dist/components/ShowMoreButton.vue.js +2 -2
  67. package/dist/components/ShowMoreButton.vue2.js +12 -12
  68. package/dist/consts/urls.d.ts +17 -0
  69. package/dist/consts/urls.d.ts.map +1 -0
  70. package/dist/consts/urls.js +7 -0
  71. package/dist/features/Operation/Operation.vue.d.ts +21 -9
  72. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  73. package/dist/features/Operation/Operation.vue.js +42 -53
  74. package/dist/features/Operation/components/Header.vue.d.ts +2 -2
  75. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  76. package/dist/features/Operation/components/Header.vue.js +9 -8
  77. package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
  78. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  79. package/dist/features/Operation/components/Headers.vue.js +1 -1
  80. package/dist/features/Operation/components/Headers.vue2.js +35 -33
  81. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
  82. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  83. package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
  84. package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
  85. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  86. package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
  87. package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
  88. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  89. package/dist/features/Operation/components/ParameterList.vue.js +17 -19
  90. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
  91. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  92. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  93. package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
  94. package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
  95. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  97. package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
  98. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +4 -0
  99. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  100. package/dist/features/Operation/components/callbacks/Callback.vue.js +2 -2
  101. package/dist/features/Operation/components/callbacks/Callback.vue2.js +29 -22
  102. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
  103. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
  106. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  107. package/dist/features/Operation/layouts/ClassicLayout.vue.js +3 -3
  108. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +99 -90
  109. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
  110. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  111. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  112. package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -87
  113. package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
  114. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
  115. package/dist/features/Search/types.d.ts +1 -1
  116. package/dist/features/Search/types.d.ts.map +1 -1
  117. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  118. package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
  119. package/dist/features/api-client-modal/useApiClient.d.ts +3032 -2888
  120. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  121. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
  122. package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
  123. package/dist/features/document-source/hooks/useDocumentSource.d.ts +1 -1
  124. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
  125. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  126. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  127. package/dist/features/example-responses/ExampleResponse.vue2.js +26 -18
  128. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  129. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  130. package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
  131. package/dist/features/multiple-documents/useMultipleDocuments.d.ts +11 -6
  132. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
  133. package/dist/features/multiple-documents/useMultipleDocuments.js +57 -48
  134. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  135. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  136. package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
  137. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts +16 -0
  138. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts.map +1 -0
  139. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +43 -0
  140. package/dist/features/toolbar/ApiReferenceToolbar.vue2.js +4 -0
  141. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts +13 -0
  142. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts.map +1 -0
  143. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.js +12 -0
  144. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts +14 -0
  145. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts.map +1 -0
  146. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +95 -0
  147. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue2.js +4 -0
  148. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts +10 -0
  149. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts.map +1 -0
  150. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.js +27 -0
  151. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue2.js +4 -0
  152. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts +25 -0
  153. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +1 -0
  154. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.js +123 -0
  155. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue2.js +4 -0
  156. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +11 -0
  157. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -0
  158. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.js +41 -0
  159. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue2.js +4 -0
  160. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts +26 -0
  161. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +1 -0
  162. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +46 -0
  163. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue2.js +4 -0
  164. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts +25 -0
  165. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts.map +1 -0
  166. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.js +58 -0
  167. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue2.js +4 -0
  168. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts +7 -0
  169. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts.map +1 -0
  170. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +84 -0
  171. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue2.js +4 -0
  172. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts +7 -0
  173. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts.map +1 -0
  174. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +42 -0
  175. package/dist/features/toolbar/ApiReferenceToolbarShare.vue2.js +4 -0
  176. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts +7 -0
  177. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -0
  178. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +56 -0
  179. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue2.js +4 -0
  180. package/dist/{v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts → features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts} +6 -6
  181. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts.map +1 -0
  182. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +83 -0
  183. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue2.js +4 -0
  184. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts +3 -0
  185. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts.map +1 -0
  186. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +51 -0
  187. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue2.js +4 -0
  188. package/dist/features/toolbar/uploadTempDocument.d.ts +3 -0
  189. package/dist/features/toolbar/uploadTempDocument.d.ts.map +1 -0
  190. package/dist/features/toolbar/uploadTempDocument.js +21 -0
  191. package/dist/helpers/test-utils.d.ts +3 -365
  192. package/dist/helpers/test-utils.d.ts.map +1 -1
  193. package/dist/hooks/useNavState.d.ts +4 -2
  194. package/dist/hooks/useNavState.d.ts.map +1 -1
  195. package/dist/hooks/useNavState.js +31 -27
  196. package/dist/index.d.ts +1 -0
  197. package/dist/index.d.ts.map +1 -1
  198. package/dist/index.js +21 -19
  199. package/dist/style.css +1 -1
  200. package/dist/types.d.ts.map +1 -1
  201. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +6 -6
  202. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  203. package/dist/v2/ApiReferenceWorkspace.vue.js +93 -79
  204. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
  205. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
  206. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
  207. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
  208. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
  209. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
  210. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
  211. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
  212. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
  213. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
  214. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
  215. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
  216. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
  217. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +32 -31
  218. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
  219. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
  220. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
  221. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
  222. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
  223. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
  224. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
  225. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
  226. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
  227. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
  228. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
  229. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
  230. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
  231. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
  232. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
  233. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
  234. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
  235. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
  236. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
  237. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
  238. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
  239. package/dist/v2/helpers/map-configuration.d.ts +22 -22
  240. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  241. package/package.json +21 -18
  242. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
  243. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
  244. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
  245. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
  246. package/dist/components/Content/Operations/index.d.ts +0 -2
  247. package/dist/components/Content/Operations/index.d.ts.map +0 -1
  248. package/dist/hooks/useConfig.d.ts +0 -9
  249. package/dist/hooks/useConfig.d.ts.map +0 -1
  250. package/dist/hooks/useConfig.js +0 -10
  251. package/dist/legacy/stores/index.d.ts +0 -2
  252. package/dist/legacy/stores/index.d.ts.map +0 -1
  253. package/dist/legacy/stores/useExampleStore.d.ts +0 -5
  254. package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
  255. package/dist/legacy/stores/useExampleStore.js +0 -8
  256. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
  257. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
  258. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
  259. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
  260. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
  261. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
  262. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
  263. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
  264. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
  265. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
  266. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
  267. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
  268. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
  269. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
  270. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
  271. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
  272. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
  273. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
  274. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
  275. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
  276. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
  277. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
  278. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
@@ -0,0 +1,123 @@
1
+ import { defineComponent as p, mergeModels as f, useModel as g, createBlock as M, openBlock as S, unref as o, withCtx as d, createVNode as n, createTextVNode as a } from "vue";
2
+ import { ScalarFormInputGroup as T, ScalarToggleInput as i } from "@scalar/components";
3
+ const U = /* @__PURE__ */ p({
4
+ __name: "ApiReferenceToolbarConfigLayoutOptions",
5
+ props: /* @__PURE__ */ f({
6
+ configuration: {}
7
+ }, {
8
+ modelValue: {
9
+ default: {}
10
+ },
11
+ modelModifiers: {}
12
+ }),
13
+ emits: ["update:modelValue"],
14
+ setup(r) {
15
+ const s = g(r, "modelValue");
16
+ function t(m, e = !1) {
17
+ return s.value[m] ?? r.configuration?.[m] ?? e;
18
+ }
19
+ function u(m, e, l = !1) {
20
+ e !== l ? s.value = { ...s.value, [m]: e } : s.value = Object.fromEntries(
21
+ Object.entries(s.value).filter(([V]) => m !== V)
22
+ );
23
+ }
24
+ return (m, e) => (S(), M(o(T), null, {
25
+ default: d(() => [
26
+ n(o(i), {
27
+ modelValue: t("showSidebar", !0),
28
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => u("showSidebar", !!l, !0))
29
+ }, {
30
+ default: d(() => e[9] || (e[9] = [
31
+ a(" Show Sidebar ")
32
+ ])),
33
+ _: 1,
34
+ __: [9]
35
+ }, 8, ["modelValue"]),
36
+ n(o(i), {
37
+ modelValue: t("defaultOpenAllTags"),
38
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => u("defaultOpenAllTags", !!l))
39
+ }, {
40
+ default: d(() => e[10] || (e[10] = [
41
+ a(" Default Open All Tags ")
42
+ ])),
43
+ _: 1,
44
+ __: [10]
45
+ }, 8, ["modelValue"]),
46
+ n(o(i), {
47
+ modelValue: t("expandAllModelSections"),
48
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => u("expandAllModelSections", !!l))
49
+ }, {
50
+ default: d(() => e[11] || (e[11] = [
51
+ a(" Expand All Model Sections ")
52
+ ])),
53
+ _: 1,
54
+ __: [11]
55
+ }, 8, ["modelValue"]),
56
+ n(o(i), {
57
+ modelValue: t("expandAllResponses"),
58
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => u("expandAllResponses", !!l))
59
+ }, {
60
+ default: d(() => e[12] || (e[12] = [
61
+ a(" Expand All Responses ")
62
+ ])),
63
+ _: 1,
64
+ __: [12]
65
+ }, 8, ["modelValue"]),
66
+ n(o(i), {
67
+ modelValue: t("hideClientButton"),
68
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => u("hideClientButton", !!l))
69
+ }, {
70
+ default: d(() => e[13] || (e[13] = [
71
+ a(" Hide Client Button ")
72
+ ])),
73
+ _: 1,
74
+ __: [13]
75
+ }, 8, ["modelValue"]),
76
+ n(o(i), {
77
+ modelValue: t("hideDarkModeToggle"),
78
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => u("hideDarkModeToggle", !!l))
79
+ }, {
80
+ default: d(() => e[14] || (e[14] = [
81
+ a(" Hide Dark Mode Toggle ")
82
+ ])),
83
+ _: 1,
84
+ __: [14]
85
+ }, 8, ["modelValue"]),
86
+ n(o(i), {
87
+ modelValue: t("hideModels"),
88
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => u("hideModels", !!l))
89
+ }, {
90
+ default: d(() => e[15] || (e[15] = [
91
+ a(" Hide Models ")
92
+ ])),
93
+ _: 1,
94
+ __: [15]
95
+ }, 8, ["modelValue"]),
96
+ n(o(i), {
97
+ modelValue: t("hideSearch"),
98
+ "onUpdate:modelValue": e[7] || (e[7] = (l) => u("hideSearch", !!l))
99
+ }, {
100
+ default: d(() => e[16] || (e[16] = [
101
+ a(" Hide Search ")
102
+ ])),
103
+ _: 1,
104
+ __: [16]
105
+ }, 8, ["modelValue"]),
106
+ n(o(i), {
107
+ modelValue: t("hideTestRequestButton"),
108
+ "onUpdate:modelValue": e[8] || (e[8] = (l) => u("hideTestRequestButton", !!l))
109
+ }, {
110
+ default: d(() => e[17] || (e[17] = [
111
+ a(" Hide Test Request Button ")
112
+ ])),
113
+ _: 1,
114
+ __: [17]
115
+ }, 8, ["modelValue"])
116
+ ]),
117
+ _: 1
118
+ }));
119
+ }
120
+ });
121
+ export {
122
+ U as default
123
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarConfigLayoutOptions.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,11 @@
1
+ import { type ThemeId } from '@scalar/themes';
2
+ type __VLS_PublicProps = {
3
+ modelValue?: ThemeId;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:modelValue": (value: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none" | undefined) => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
8
+ "onUpdate:modelValue"?: ((value: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none" | undefined) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
11
+ //# sourceMappingURL=ApiReferenceToolbarConfigTheme.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarConfigTheme.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarConfigTheme.vue"],"names":[],"mappings":"AAqCA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAyBpE,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;;;;;AAkEF,wBAOG"}
@@ -0,0 +1,41 @@
1
+ import { defineComponent as s, useModel as i, computed as m, createBlock as p, openBlock as c, unref as n, withCtx as r, createVNode as f, createTextVNode as v, toDisplayString as V } from "vue";
2
+ import { ScalarCombobox as b, ScalarListboxInput as x } from "@scalar/components";
3
+ import { themeIds as _, themeLabels as h } from "@scalar/themes";
4
+ const T = /* @__PURE__ */ s({
5
+ __name: "ApiReferenceToolbarConfigTheme",
6
+ props: {
7
+ modelValue: {},
8
+ modelModifiers: {}
9
+ },
10
+ emits: ["update:modelValue"],
11
+ setup(d) {
12
+ const u = i(d, "modelValue"), t = m(
13
+ () => _.map((e) => ({ id: e, label: h[e] }))
14
+ ), l = m({
15
+ get: () => {
16
+ const e = u.value ?? "default";
17
+ return t.value.find((o) => o.id === e) ?? t.value[0];
18
+ },
19
+ set: (e) => u.value = e.id
20
+ });
21
+ return (e, o) => (c(), p(n(b), {
22
+ modelValue: l.value,
23
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => l.value = a),
24
+ resize: "",
25
+ options: t.value
26
+ }, {
27
+ default: r(({ open: a }) => [
28
+ f(n(x), { open: a }, {
29
+ default: r(() => [
30
+ v(V(l.value.label), 1)
31
+ ]),
32
+ _: 2
33
+ }, 1032, ["open"])
34
+ ]),
35
+ _: 1
36
+ }, 8, ["modelValue", "options"]));
37
+ }
38
+ });
39
+ export {
40
+ T as default
41
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarConfigTheme.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,26 @@
1
+ declare var __VLS_6: {
2
+ open: boolean;
3
+ }, __VLS_8: {}, __VLS_14: {
4
+ open: boolean;
5
+ close: () => void;
6
+ }, __VLS_20: {}, __VLS_22: {};
7
+ type __VLS_Slots = {} & {
8
+ button?: (props: typeof __VLS_6) => any;
9
+ } & {
10
+ label?: (props: typeof __VLS_8) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_14) => any;
13
+ } & {
14
+ info?: (props: typeof __VLS_20) => any;
15
+ } & {
16
+ label?: (props: typeof __VLS_22) => any;
17
+ };
18
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
26
+ //# sourceMappingURL=ApiReferenceToolbarPopover.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarPopover.vue"],"names":[],"mappings":"AAyKA,QAAA,IAAI,OAAO;;CAAU,EAAE,OAAO,IAAU,EAAE,QAAQ;;;CAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC1G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB9C,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { defineComponent as c, createBlock as p, openBlock as d, unref as l, withCtx as a, createVNode as n, createElementVNode as s, renderSlot as o, normalizeProps as m, guardReactiveProps as f, createTextVNode as i, normalizeClass as u } from "vue";
2
+ import { ScalarPopover as b, ScalarFloatingBackdrop as g } from "@scalar/components";
3
+ import { ScalarIconInfo as x, ScalarIconCaretDown as h } from "@scalar/icons";
4
+ const v = { class: "text-c-2 hover:text-c-1 hover:bg-b-2 flex items-center gap-1 rounded px-2 py-2.25 text-base leading-none" }, _ = { class: "custom-scroll bg-b-1 flex flex-col gap-7 rounded-lg p-7 pb-6" }, k = { class: "text-c-2 flex items-center justify-center gap-1 p-2 text-sm" }, P = /* @__PURE__ */ c({
5
+ __name: "ApiReferenceToolbarPopover",
6
+ setup(w) {
7
+ return (e, t) => (d(), p(l(b), {
8
+ class: "max-h-[inherit] max-w-[inherit] p-0 text-base",
9
+ placement: "bottom-end",
10
+ teleport: ""
11
+ }, {
12
+ default: a(({ open: r }) => [
13
+ o(e.$slots, "button", { open: r }, () => [
14
+ s("button", v, [
15
+ o(e.$slots, "label"),
16
+ n(l(h), {
17
+ class: u(["transition-transform", { "rotate-180": r }])
18
+ }, null, 8, ["class"])
19
+ ])
20
+ ])
21
+ ]),
22
+ popover: a((r) => [
23
+ s("div", _, [
24
+ o(e.$slots, "default", m(f(r)))
25
+ ]),
26
+ s("div", k, [
27
+ n(l(x), { class: "size-3.5 shrink-0" }),
28
+ s("div", null, [
29
+ o(e.$slots, "info", {}, () => [
30
+ t[0] || (t[0] = i(' "')),
31
+ o(e.$slots, "label"),
32
+ t[1] || (t[1] = i('" will only appear when running on localhost. '))
33
+ ])
34
+ ])
35
+ ])
36
+ ]),
37
+ backdrop: a(() => [
38
+ n(l(g), { class: "bg-b-2 rounded-lg" })
39
+ ]),
40
+ _: 3
41
+ }));
42
+ }
43
+ });
44
+ export {
45
+ P as default
46
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarPopover.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,25 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ type __VLS_Props = {
3
+ workspace: WorkspaceStore;
4
+ sdks?: string[];
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & {
7
+ 'url'?: string;
8
+ };
9
+ declare var __VLS_10: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_10) => any;
12
+ };
13
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ "update:url": (value: string | undefined) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ "onUpdate:url"?: ((value: string | undefined) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
25
+ //# sourceMappingURL=ApiReferenceToolbarRegisterButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarRegisterButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarRegisterButton.vue"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB,CAAC;AA2DF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAoCF,QAAA,IAAI,QAAQ,IAAW,CAAE;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAuBhD,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { defineComponent as l, mergeModels as d, useModel as m, createBlock as f, openBlock as p, unref as c, withCtx as g, renderSlot as k, createTextVNode as w, nextTick as v } from "vue";
2
+ import { useLoadingState as R, ScalarButton as L } from "@scalar/components";
3
+ import { useToasts as x } from "@scalar/use-toasts";
4
+ import { DASHBOARD_REGISTER_URL as S } from "../../consts/urls.js";
5
+ import { uploadTempDocument as T } from "./uploadTempDocument.js";
6
+ const U = /* @__PURE__ */ l({
7
+ __name: "ApiReferenceToolbarRegisterButton",
8
+ props: /* @__PURE__ */ d({
9
+ workspace: {},
10
+ sdks: { default: () => [] }
11
+ }, {
12
+ url: {},
13
+ urlModifiers: {}
14
+ }),
15
+ emits: ["update:url"],
16
+ setup(o) {
17
+ const a = m(o, "url"), { toast: s } = x(), t = R();
18
+ function i(r) {
19
+ const e = new URL(S);
20
+ e.searchParams.set("url", r), o.sdks.forEach((n) => e.searchParams.append("sdk", n)), window.open(e.toString(), "_blank");
21
+ }
22
+ async function u() {
23
+ if (t.isLoading || !o.workspace)
24
+ return;
25
+ if (a.value) {
26
+ i(a.value);
27
+ return;
28
+ }
29
+ t.startLoading();
30
+ const r = o.workspace.exportActiveDocument("json");
31
+ if (!r) {
32
+ s("Unable to export active document", "error"), t.invalidate();
33
+ return;
34
+ }
35
+ try {
36
+ a.value = await T(r), await t.validate(600), i(a.value), await v(), t.clear();
37
+ } catch (e) {
38
+ const n = e instanceof Error ? e.message : "An unknown error occurred";
39
+ s(n, "error"), t.invalidate();
40
+ }
41
+ }
42
+ return (r, e) => (p(), f(c(L), {
43
+ class: "h-auto p-2.5",
44
+ loading: c(t),
45
+ onClick: u
46
+ }, {
47
+ default: g(() => [
48
+ k(r.$slots, "default", {}, () => [
49
+ e[0] || (e[0] = w("Generate"))
50
+ ])
51
+ ]),
52
+ _: 3
53
+ }, 8, ["loading"]));
54
+ }
55
+ });
56
+ export {
57
+ U as default
58
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarRegisterButton.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ type __VLS_Props = {
3
+ workspace: WorkspaceStore;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
7
+ //# sourceMappingURL=ApiReferenceToolbarSdks.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarSdks.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarSdks.vue"],"names":[],"mappings":"AA0FA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AA2BpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;;AAoJF,wBAMG"}
@@ -0,0 +1,84 @@
1
+ import { defineComponent as f, ref as b, createBlock as k, openBlock as s, withCtx as e, createVNode as r, unref as t, createElementBlock as _, Fragment as y, renderList as S, createElementVNode as p, createTextVNode as n, toDisplayString as v } from "vue";
2
+ import { ScalarFormSection as V, ScalarFormInputGroup as h, ScalarToggleInput as w, ScalarIcon as G } from "@scalar/components";
3
+ import x from "./ApiReferenceToolbarBlurb.vue.js";
4
+ import T from "./ApiReferenceToolbarPopover.vue.js";
5
+ import A from "./ApiReferenceToolbarRegisterButton.vue.js";
6
+ const B = { class: "inline-flex items-center gap-2" }, I = /* @__PURE__ */ f({
7
+ __name: "ApiReferenceToolbarSdks",
8
+ props: {
9
+ workspace: {}
10
+ },
11
+ setup(L) {
12
+ const i = [
13
+ {
14
+ key: "typescript",
15
+ label: "Typescript",
16
+ icon: "programming-language-typescript"
17
+ },
18
+ { key: "python", label: "Python", icon: "programming-language-python" },
19
+ { key: "csharp", label: "C#", icon: "programming-language-csharp" },
20
+ { key: "java", label: "Java", icon: "programming-language-java" },
21
+ { key: "ruby", label: "Ruby", icon: "programming-language-ruby" },
22
+ { key: "php", label: "PHP", icon: "programming-language-php" },
23
+ { key: "go", label: "Go", icon: "programming-language-go" }
24
+ ], a = b([]);
25
+ return (u, l) => (s(), k(T, { class: "w-110" }, {
26
+ label: e(() => l[0] || (l[0] = [
27
+ n("Generate SDKs")
28
+ ])),
29
+ default: e(() => [
30
+ r(t(V), null, {
31
+ label: e(() => l[1] || (l[1] = [
32
+ n("Select Languages")
33
+ ])),
34
+ default: e(() => [
35
+ r(t(h), null, {
36
+ default: e(() => [
37
+ (s(), _(y, null, S(i, ({ key: o, label: g, icon: c }) => r(t(w), {
38
+ key: o,
39
+ modelValue: a.value.includes(o),
40
+ "onUpdate:modelValue": (m) => m ? a.value = [...a.value, o] : a.value = a.value.filter(
41
+ (d) => d !== o
42
+ )
43
+ }, {
44
+ default: e(() => [
45
+ p("span", B, [
46
+ r(t(G), {
47
+ icon: c,
48
+ class: "text-c-2 size-3.5"
49
+ }, null, 8, ["icon"]),
50
+ n(" " + v(g), 1)
51
+ ])
52
+ ]),
53
+ _: 2
54
+ }, 1032, ["modelValue", "onUpdate:modelValue"])), 64))
55
+ ]),
56
+ _: 1
57
+ }),
58
+ r(A, {
59
+ sdks: a.value,
60
+ workspace: u.workspace
61
+ }, null, 8, ["sdks", "workspace"]),
62
+ r(x, null, {
63
+ default: e(() => l[2] || (l[2] = [
64
+ n(" Generating SDKs is a paid feature starting at $100/mo, learn more in our "),
65
+ p("a", {
66
+ href: "https://guides.scalar.com/scalar/scalar-sdks/getting-started",
67
+ target: "_blank"
68
+ }, " guides", -1),
69
+ n(". ")
70
+ ])),
71
+ _: 1,
72
+ __: [2]
73
+ })
74
+ ]),
75
+ _: 1
76
+ })
77
+ ]),
78
+ _: 1
79
+ }));
80
+ }
81
+ });
82
+ export {
83
+ I as default
84
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarSdks.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ type __VLS_Props = {
3
+ workspace: WorkspaceStore;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
7
+ //# sourceMappingURL=ApiReferenceToolbarShare.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarShare.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarShare.vue"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;;AAyFF,wBAMG"}
@@ -0,0 +1,42 @@
1
+ import { defineComponent as n, createBlock as s, openBlock as m, withCtx as r, createVNode as o, unref as p, createTextVNode as a } from "vue";
2
+ import { ScalarFormSection as t } from "@scalar/components";
3
+ import f from "./ApiReferenceToolbarPopover.vue.js";
4
+ import i from "./ApiReferenceToolbarShareRegister.vue.js";
5
+ import u from "./ApiReferenceToolbarShareTemporary.vue.js";
6
+ const S = /* @__PURE__ */ n({
7
+ __name: "ApiReferenceToolbarShare",
8
+ props: {
9
+ workspace: {}
10
+ },
11
+ setup(c) {
12
+ return (l, e) => (m(), s(f, { class: "w-120" }, {
13
+ label: r(() => e[0] || (e[0] = [
14
+ a("Share")
15
+ ])),
16
+ default: r(() => [
17
+ o(p(t), null, {
18
+ label: r(() => e[1] || (e[1] = [
19
+ a("Temporary Link")
20
+ ])),
21
+ default: r(() => [
22
+ o(u, { workspace: l.workspace }, null, 8, ["workspace"])
23
+ ]),
24
+ _: 1
25
+ }),
26
+ o(p(t), null, {
27
+ label: r(() => e[2] || (e[2] = [
28
+ a("Cloud Hosting")
29
+ ])),
30
+ default: r(() => [
31
+ o(i, { workspace: l.workspace }, null, 8, ["workspace"])
32
+ ]),
33
+ _: 1
34
+ })
35
+ ]),
36
+ _: 1
37
+ }));
38
+ }
39
+ });
40
+ export {
41
+ S as default
42
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarShare.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ type __VLS_Props = {
3
+ workspace: WorkspaceStore;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
7
+ //# sourceMappingURL=ApiReferenceToolbarShareRegister.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarShareRegister.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarShareRegister.vue"],"names":[],"mappings":"AAoEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;;AAgGF,wBAMG"}
@@ -0,0 +1,56 @@
1
+ import { defineComponent as m, createElementBlock as t, openBlock as l, Fragment as n, createElementVNode as r, createVNode as c, renderList as d, createBlock as u, createTextVNode as o, resolveDynamicComponent as S, toDisplayString as g, withCtx as i } from "vue";
2
+ import { ScalarIconGlobeSimple as b, ScalarIconGitBranch as f, ScalarIconFileMd as _, ScalarIconLockSimple as k, ScalarIconWarningOctagon as w, ScalarIconBracketsCurly as h } from "@scalar/icons";
3
+ import y from "./ApiReferenceToolbarBlurb.vue.js";
4
+ import x from "./ApiReferenceToolbarRegisterButton.vue.js";
5
+ const B = { class: "text-c-2 grid grid-cols-2 gap-2.5 font-medium" }, N = /* @__PURE__ */ m({
6
+ __name: "ApiReferenceToolbarShareRegister",
7
+ props: {
8
+ workspace: {}
9
+ },
10
+ setup(I) {
11
+ const s = [
12
+ { icon: b, label: "Custom Domains" },
13
+ { icon: f, label: "GitHub Sync" },
14
+ { icon: _, label: "Markdown/MDX" },
15
+ { icon: k, label: "Password Protection" },
16
+ { icon: w, label: "Spectral Linting" },
17
+ { icon: h, label: "JSON Schema Support" }
18
+ ];
19
+ return (p, e) => (l(), t(n, null, [
20
+ r("ul", B, [
21
+ (l(), t(n, null, d(s, (a) => r("li", {
22
+ key: a.label,
23
+ class: "flex items-center gap-2"
24
+ }, [
25
+ (l(), u(S(a.icon), {
26
+ class: "text-c-3 size-3.5",
27
+ weight: "bold"
28
+ })),
29
+ o(" " + g(a.label), 1)
30
+ ])), 64))
31
+ ]),
32
+ c(x, { workspace: p.workspace }, {
33
+ default: i(() => e[0] || (e[0] = [
34
+ o(" Deploy on Scalar ")
35
+ ])),
36
+ _: 1,
37
+ __: [0]
38
+ }, 8, ["workspace"]),
39
+ c(y, null, {
40
+ default: i(() => e[1] || (e[1] = [
41
+ o(" Uploading documents to the Scalar Registry is a Premium feature. See what else is included in our "),
42
+ r("a", {
43
+ href: "https://guides.scalar.com/",
44
+ target: "_blank"
45
+ }, " guides", -1),
46
+ o(". ")
47
+ ])),
48
+ _: 1,
49
+ __: [1]
50
+ })
51
+ ], 64));
52
+ }
53
+ });
54
+ export {
55
+ N as default
56
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiReferenceToolbarShareRegister.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,14 +1,14 @@
1
- import type { MediaTypeObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
2
  type __VLS_Props = {
3
- examples?: MediaTypeObject['examples'];
3
+ workspace: WorkspaceStore;
4
4
  };
5
5
  type __VLS_PublicProps = __VLS_Props & {
6
- modelValue: string;
6
+ 'url'?: string;
7
7
  };
8
8
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- "update:modelValue": (value: string) => any;
9
+ "update:url": (value: string | undefined) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
11
+ "onUpdate:url"?: ((value: string | undefined) => any) | undefined;
12
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
14
- //# sourceMappingURL=ExamplePicker.vue.d.ts.map
14
+ //# sourceMappingURL=ApiReferenceToolbarShareTemporary.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarShareTemporary.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarShareTemporary.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;AAyCF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;;;;;;AAqIF,wBAOG"}