@scalar/api-client 2.18.4 → 2.19.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 (223) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/components/AddressBar/AddressBar.vue2.js +5 -5
  3. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +6 -6
  4. package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
  5. package/dist/components/ImportCollection/DropEventListener.vue.js +26 -28
  6. package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +1 -1
  7. package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
  8. package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -1
  9. package/dist/components/Search/useSearch.d.ts.map +1 -1
  10. package/dist/components/Search/useSearch.js +16 -16
  11. package/dist/components/Server/index.d.ts +1 -1
  12. package/dist/components/Server/index.d.ts.map +1 -1
  13. package/dist/components/Server/index.js +6 -6
  14. package/dist/components/SideNav/SideNav.vue.js +3 -3
  15. package/dist/components/Sidebar/index.d.ts +1 -2
  16. package/dist/components/Sidebar/index.d.ts.map +1 -1
  17. package/dist/components/index.d.ts +2 -2
  18. package/dist/components/index.d.ts.map +1 -1
  19. package/dist/hooks/index.d.ts +2 -2
  20. package/dist/hooks/index.d.ts.map +1 -1
  21. package/dist/hooks/useResponseBody.d.ts +1 -1
  22. package/dist/hooks/useResponseBody.d.ts.map +1 -1
  23. package/dist/hooks/useResponseBody.js +4 -4
  24. package/dist/hooks/useSidebar.d.ts +1 -1
  25. package/dist/hooks/useSidebar.d.ts.map +1 -1
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/layouts/App/ApiClientApp.vue.js +5 -5
  29. package/dist/layouts/App/MainLayout.vue.js +4 -4
  30. package/dist/layouts/App/create-api-client-app.d.ts +12 -12
  31. package/dist/layouts/App/index.d.ts +1 -1
  32. package/dist/layouts/App/index.d.ts.map +1 -1
  33. package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
  34. package/dist/layouts/Web/create-api-client-web.d.ts +12 -12
  35. package/dist/layouts/Web/index.d.ts +1 -1
  36. package/dist/layouts/Web/index.d.ts.map +1 -1
  37. package/dist/libs/create-client.d.ts +12 -12
  38. package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
  39. package/dist/libs/get-request-uid-by-path-method.d.ts.map +1 -1
  40. package/dist/libs/hot-keys.d.ts +2 -2
  41. package/dist/libs/hot-keys.d.ts.map +1 -1
  42. package/dist/libs/importers/curl.d.ts.map +1 -1
  43. package/dist/libs/index.d.ts +14 -15
  44. package/dist/libs/index.d.ts.map +1 -1
  45. package/dist/libs/index.js +33 -33
  46. package/dist/libs/parse-curl.js +4 -4
  47. package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
  48. package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
  49. package/dist/libs/send-request/create-fetch-body.js +1 -1
  50. package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
  51. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
  52. package/dist/libs/send-request/create-fetch-query-params.js +2 -1
  53. package/dist/libs/send-request/index.d.ts +1 -1
  54. package/dist/libs/send-request/index.d.ts.map +1 -1
  55. package/dist/libs/send-request/index.js +4 -4
  56. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  57. package/dist/libs/send-request/set-request-cookies.js +4 -4
  58. package/dist/store/active-entities.d.ts +1 -1
  59. package/dist/store/collections.d.ts +1 -1
  60. package/dist/store/collections.d.ts.map +1 -1
  61. package/dist/store/collections.js +4 -4
  62. package/dist/store/environment.d.ts +1 -1
  63. package/dist/store/environment.d.ts.map +1 -1
  64. package/dist/store/environment.js +4 -4
  65. package/dist/store/import-spec.d.ts +2 -2
  66. package/dist/store/import-spec.d.ts.map +1 -1
  67. package/dist/store/index.d.ts +1 -1
  68. package/dist/store/index.d.ts.map +1 -1
  69. package/dist/store/request-example.d.ts +1 -1
  70. package/dist/store/request-example.d.ts.map +1 -1
  71. package/dist/store/request-example.js +6 -6
  72. package/dist/store/requests.d.ts +1 -1
  73. package/dist/store/requests.d.ts.map +1 -1
  74. package/dist/store/requests.js +8 -8
  75. package/dist/store/security-schemes.d.ts +1 -1
  76. package/dist/store/security-schemes.d.ts.map +1 -1
  77. package/dist/store/security-schemes.js +4 -4
  78. package/dist/store/servers.d.ts +1 -1
  79. package/dist/store/servers.d.ts.map +1 -1
  80. package/dist/store/servers.js +4 -4
  81. package/dist/store/store.d.ts +12 -12
  82. package/dist/store/tags.d.ts +1 -1
  83. package/dist/store/tags.d.ts.map +1 -1
  84. package/dist/store/tags.js +5 -5
  85. package/dist/store/workspace.d.ts +13 -13
  86. package/dist/store/workspace.d.ts.map +1 -1
  87. package/dist/store/workspace.js +7 -7
  88. package/dist/style.css +1 -1
  89. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -5
  90. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  91. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +17 -16
  92. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +3 -3
  93. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -1
  94. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +22 -22
  95. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
  96. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +14 -13
  97. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  98. package/dist/v2/blocks/operation-block/helpers/build-request.js +43 -41
  99. package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.d.ts +14 -0
  100. package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.d.ts.map +1 -0
  101. package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js +14 -0
  102. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts +25 -0
  103. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts.map +1 -0
  104. package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js +17 -0
  105. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +10 -0
  106. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  107. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
  108. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +29 -25
  109. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +6 -1
  110. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  111. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +27 -23
  112. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +10 -1
  113. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  114. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +48 -39
  115. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  116. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +49 -46
  117. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts +1 -1
  118. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts.map +1 -1
  119. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +1 -1
  120. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +6 -2
  121. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  122. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  123. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +200 -115
  124. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +4 -4
  125. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
  126. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +21 -17
  127. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +16 -10
  128. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  129. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +32 -45
  130. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +16 -13
  131. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  132. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +4 -4
  133. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +32 -33
  134. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +33 -18
  135. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  136. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +106 -106
  137. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +10 -5
  138. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  139. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +60 -31
  140. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +41 -0
  141. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -0
  142. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +25 -0
  143. package/dist/v2/blocks/request-block/helpers/group-by.d.ts +1 -1
  144. package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -1
  145. package/dist/v2/blocks/request-block/helpers/group-by.js +6 -3
  146. package/dist/v2/blocks/request-block/helpers/is-param-disabled.d.ts +13 -0
  147. package/dist/v2/blocks/request-block/helpers/is-param-disabled.d.ts.map +1 -0
  148. package/dist/v2/blocks/request-block/helpers/is-param-disabled.js +7 -0
  149. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  150. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  151. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +61 -63
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +1 -2
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +2 -2
  155. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +2 -2
  156. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +1 -2
  157. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  158. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
  159. package/dist/v2/components/code-input/CodeInput.vue.d.ts +2 -0
  160. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  161. package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
  162. package/dist/v2/components/code-input/CodeInput.vue2.js +57 -51
  163. package/dist/v2/features/app/App.vue.js +6 -6
  164. package/dist/v2/features/app/app-events.d.ts +5 -9
  165. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  166. package/dist/v2/features/app/app-events.js +146 -120
  167. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  168. package/dist/v2/features/app/app-state.js +69 -71
  169. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  170. package/dist/v2/features/app/components/AppSidebar.vue2.js +5 -5
  171. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  172. package/dist/v2/features/modal/Modal.vue.js +1 -1
  173. package/dist/v2/features/modal/Modal.vue2.js +21 -22
  174. package/dist/v2/features/modal/index.d.ts +1 -1
  175. package/dist/v2/features/modal/index.d.ts.map +1 -1
  176. package/dist/v2/features/modal/index.js +4 -4
  177. package/dist/v2/features/modal/modal-events.d.ts +13 -0
  178. package/dist/v2/features/modal/modal-events.d.ts.map +1 -0
  179. package/dist/v2/features/modal/modal-events.js +31 -0
  180. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  181. package/dist/v2/features/operation/Operation.vue.js +30 -43
  182. package/dist/v2/workspace-events.d.ts +25 -0
  183. package/dist/v2/workspace-events.d.ts.map +1 -0
  184. package/dist/v2/workspace-events.js +202 -0
  185. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
  186. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
  187. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
  188. package/dist/views/Cookies/Cookies.vue2.js +3 -3
  189. package/dist/views/Environment/handle-drag.d.ts +1 -1
  190. package/dist/views/Environment/handle-drag.d.ts.map +1 -1
  191. package/dist/views/Request/RequestRoot.vue2.js +9 -9
  192. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +4 -4
  193. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +4 -4
  194. package/dist/views/Request/RequestSection/RequestSection.vue2.js +5 -5
  195. package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +1 -1
  196. package/dist/views/Request/RequestSidebar.vue2.js +6 -6
  197. package/dist/views/Request/RequestSidebarItem.vue2.js +6 -6
  198. package/dist/views/Request/RequestSubpageHeader.vue2.js +4 -4
  199. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  200. package/dist/views/Request/ResponseSection/index.d.ts +1 -1
  201. package/dist/views/Request/ResponseSection/index.d.ts.map +1 -1
  202. package/dist/views/Request/ResponseSection/index.js +4 -4
  203. package/dist/views/Request/consts/index.d.ts +2 -3
  204. package/dist/views/Request/consts/index.d.ts.map +1 -1
  205. package/dist/views/Request/consts/new-auth-options.d.ts +1 -1
  206. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  207. package/dist/views/Request/handle-drag.d.ts +1 -1
  208. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  209. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
  210. package/dist/views/Request/hooks/useOpenApiWatcher.js +14 -14
  211. package/dist/views/Request/libs/auth.d.ts +1 -1
  212. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  213. package/dist/views/Request/libs/index.d.ts +3 -3
  214. package/dist/views/Request/libs/index.d.ts.map +1 -1
  215. package/dist/views/Request/libs/oauth2.js +1 -1
  216. package/dist/views/Request/libs/watch-mode.js +6 -6
  217. package/dist/views/Request/types/index.d.ts +1 -1
  218. package/dist/views/Request/types/index.d.ts.map +1 -1
  219. package/package.json +13 -13
  220. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts +0 -18
  221. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +0 -1
  222. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +0 -39
  223. package/dist/v2/features/operation/helpers/get-operation-header.js +0 -12
@@ -2,5 +2,5 @@ import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/o
2
2
  /**
3
3
  * Processes a server URL by replacing variables with their default values and merging with the path
4
4
  */
5
- export declare const processServerUrl: (server: ServerObject, path: string) => string;
5
+ export declare const processServerUrl: (server: ServerObject | null, path: string) => string;
6
6
  //# sourceMappingURL=process-server-url.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"process-server-url.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,YAAY,EAAE,MAAM,MAAM,KAAG,MA4BrE,CAAA"}
1
+ {"version":3,"file":"process-server-url.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,YAAY,GAAG,IAAI,EAAE,MAAM,MAAM,KAAG,MA4B5E,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { replaceVariables as c } from "@scalar/helpers/regex/replace-variables";
2
2
  import { mergeUrls as a } from "@scalar/helpers/url/merge-urls";
3
3
  const m = (r, e) => {
4
- if (!r.url)
4
+ if (!r?.url)
5
5
  return e;
6
6
  const t = r.url;
7
7
  if (r.variables) {
@@ -1,12 +1,15 @@
1
1
  import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
2
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
3
- import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
4
- import type { AuthMeta } from '@scalar/workspace-store/mutators';
3
+ import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
5
4
  import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
5
+ import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
6
6
  import type { OpenApiDocument, OperationObject, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
7
7
  import type { ClientLayout } from '../../../hooks/index.js';
8
8
  import type { ClientOptionGroup } from '../../../v2/blocks/operation-code-sample/index.js';
9
9
  import type { ClientPlugin } from '../../../v2/helpers/plugins.js';
10
+ export type ExtendedScalarCookie = XScalarCookie & {
11
+ location: 'document' | 'workspace';
12
+ };
10
13
  type __VLS_Props = {
11
14
  selectedSecurity: OpenApiDocument['x-scalar-selected-security'];
12
15
  authMeta: AuthMeta;
@@ -25,6 +28,7 @@ type __VLS_Props = {
25
28
  selectedClient: WorkspaceStore['workspace']['x-scalar-default-client'];
26
29
  selectedSecuritySchemes: SecuritySchemeObject[];
27
30
  server: ServerObject | null;
31
+ globalCookies: ExtendedScalarCookie[];
28
32
  };
29
33
  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>;
30
34
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AA4aA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAO1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAWxD,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;IAC/C,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;;AA6iBF,wBAMG"}
1
+ {"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AAsiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAEV,QAAQ,EACR,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAW1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAWxD,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,QAAQ,EAAE,UAAU,GAAG,WAAW,CAAA;CACnC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;IAC/C,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,oBAAoB,EAAE,CAAA;CACtC,CAAC;;AAkqBF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBlock.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-35cedd3d"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-175541a7"]]);
5
5
  export {
6
- d as default
6
+ m as default
7
7
  };
@@ -1,21 +1,27 @@
1
- import { defineComponent as $, computed as m, ref as F, useId as u, watch as Q, createBlock as b, openBlock as s, withCtx as k, createElementVNode as A, withDirectives as d, createElementBlock as x, createVNode as i, unref as c, vShow as y, mergeProps as B, toHandlers as S, Fragment as j, renderList as D, createCommentVNode as w, resolveDynamicComponent as M, toDisplayString as L } from "vue";
2
- import { ScalarErrorBoundary as z } from "@scalar/components";
3
- import { canMethodHaveBody as C } from "@scalar/helpers/http/can-method-have-body";
4
- import { REGEX as G } from "@scalar/helpers/regex/regex-helpers";
1
+ import { defineComponent as j, computed as n, ref as z, useId as s, watch as X, createBlock as C, openBlock as d, withCtx as q, createElementVNode as K, withDirectives as c, createElementBlock as x, createVNode as m, unref as v, vShow as y, mergeProps as B, toHandlers as b, Fragment as J, renderList as W, createCommentVNode as E, resolveDynamicComponent as Y, toDisplayString as Z } from "vue";
2
+ import { ScalarErrorBoundary as _ } from "@scalar/components";
3
+ import { canMethodHaveBody as w } from "@scalar/helpers/http/can-method-have-body";
4
+ import { REGEX as ee } from "@scalar/helpers/regex/regex-helpers";
5
5
  import { getResolvedRef as R } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
- import { unpackProxyObject as X } from "@scalar/workspace-store/helpers/unpack-proxy";
7
- import J from "../../../components/SectionFilter.vue.js";
8
- import W from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
9
- import Y from "./components/RequestBody.vue.js";
10
- import Z from "./components/RequestCodeSnippet.vue.js";
11
- import p from "./components/RequestParams.vue.js";
12
- import { createParameterHandlers as q } from "./helpers/create-parameter-handlers.js";
13
- import { groupBy as _ } from "./helpers/group-by.js";
14
- import ee from "../scalar-auth-selector-block/components/AuthSelector.vue.js";
15
- const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ae = ["for"], le = ["id", "placeholder", "value"], ne = {
6
+ import { unpackProxyObject as te } from "@scalar/workspace-store/helpers/unpack-proxy";
7
+ import ae from "../../../components/SectionFilter.vue.js";
8
+ import le from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
9
+ import { filterGlobalCookie as ne } from "../operation-block/helpers/filter-global-cookies.js";
10
+ import { getExample as oe } from "../operation-block/helpers/get-example.js";
11
+ import { getResolvedUrl as re } from "../operation-block/helpers/get-resolved-url.js";
12
+ import ue from "./components/RequestBody.vue.js";
13
+ import ie from "./components/RequestCodeSnippet.vue.js";
14
+ import k from "./components/RequestParams.vue.js";
15
+ import { createParameterHandlers as S } from "./helpers/create-parameter-handlers.js";
16
+ import { getDefaultHeaders as se } from "./helpers/get-default-headers.js";
17
+ import { getParameterSchema as me } from "./helpers/get-parameter-schema.js";
18
+ import { groupBy as D } from "./helpers/group-by.js";
19
+ import { isParamDisabled as de } from "./helpers/is-param-disabled.js";
20
+ import ce from "../scalar-auth-selector-block/components/AuthSelector.vue.js";
21
+ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ye = ["for"], he = ["id", "placeholder", "value"], fe = {
16
22
  key: 2,
17
23
  class: "text-c-1 flex h-8 items-center"
18
- }, oe = ["id", "role"], pe = /* @__PURE__ */ $({
24
+ }, xe = ["id", "role"], Ne = /* @__PURE__ */ j({
19
25
  __name: "RequestBlock",
20
26
  props: {
21
27
  selectedSecurity: {},
@@ -34,130 +40,203 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
34
40
  securitySchemes: {},
35
41
  selectedClient: {},
36
42
  selectedSecuritySchemes: {},
37
- server: {}
43
+ server: {},
44
+ globalCookies: {}
38
45
  },
39
46
  setup(e) {
40
- const l = m(() => ({
47
+ const r = n(() => ({
41
48
  method: e.method,
42
49
  path: e.path,
43
50
  exampleKey: e.exampleKey
44
- })), v = m(
45
- () => _(
51
+ })), o = n(
52
+ () => D(
46
53
  e.operation.parameters?.map((t) => R(t)) ?? [],
47
- "in"
54
+ "in",
55
+ (t) => {
56
+ const a = oe(t, e.exampleKey, void 0);
57
+ return {
58
+ name: t.name,
59
+ value: a?.value ?? "",
60
+ description: t.description,
61
+ schema: me(t),
62
+ isRequired: t.required,
63
+ isDisabled: de(t, a)
64
+ };
65
+ }
66
+ )
67
+ ), I = n(
68
+ () => D(
69
+ o.value.header?.map((t) => ({
70
+ ...t,
71
+ name: t.name.toLowerCase()
72
+ })) ?? [],
73
+ "name"
48
74
  )
49
- ), n = F("All"), U = [
75
+ ), N = n(
76
+ () => se({ method: e.method, operation: e.operation, exampleKey: e.exampleKey })
77
+ ), V = n(() => {
78
+ const t = e.operation["x-scalar-disable-parameters"]?.["default-headers"]?.[e.exampleKey] ?? {};
79
+ return N.value.map((a) => {
80
+ const l = I.value[a.name.toLowerCase()]?.[0];
81
+ return {
82
+ name: a.name,
83
+ value: a.defaultValue,
84
+ schema: void 0,
85
+ isOverridden: l && !l?.isDisabled,
86
+ isReadonly: !0,
87
+ isDisabled: t[a.name.toLowerCase()] ?? !1
88
+ };
89
+ });
90
+ }), A = n(() => [
91
+ ...V.value,
92
+ ...o.value.header ?? []
93
+ ]), P = n(() => {
94
+ const t = re({
95
+ environment: e.environment,
96
+ server: e.server,
97
+ path: e.path,
98
+ pathVariables: {}
99
+ }), a = e.operation["x-scalar-disable-parameters"]?.["global-cookies"]?.[e.exampleKey] ?? {};
100
+ return e.globalCookies?.filter(
101
+ (l) => ne({
102
+ cookie: l,
103
+ url: t,
104
+ // Do not filter global cookies for the default cookies section (it's already filtered in the buildRequestCookieHeader function)
105
+ // This is because we still want to show them on the UI
106
+ disabledGlobalCookies: {}
107
+ })
108
+ ).map((l) => ({
109
+ name: l.name,
110
+ value: l.value,
111
+ globalRoute: l.location === "document" ? "document.cookies" : "workspace.cookies",
112
+ isReadonly: !0,
113
+ isDisabled: a[l.name.toLowerCase()] ?? !1
114
+ })) ?? [];
115
+ }), p = n(() => [
116
+ ...P.value ?? [],
117
+ ...o.value.cookie ?? []
118
+ ]), u = z("All"), T = [
50
119
  "Auth",
51
120
  "Variables",
52
121
  "Cookies",
53
122
  "Headers",
54
123
  "Query",
55
124
  "Body"
56
- ], P = {
57
- All: u(),
58
- Auth: u(),
59
- Variables: u(),
60
- Cookies: u(),
61
- Headers: u(),
62
- Query: u(),
63
- Body: u()
64
- }, V = m(() => {
65
- const t = /* @__PURE__ */ new Set(["All", ...U]);
66
- return v.value.path?.length || t.delete("Variables"), C(e.method) || t.delete("Body"), g.value && t.delete("Auth"), [...t];
67
- }), o = m(
125
+ ], $ = {
126
+ All: s(),
127
+ Auth: s(),
128
+ Variables: s(),
129
+ Cookies: s(),
130
+ Headers: s(),
131
+ Query: s(),
132
+ Body: s()
133
+ }, H = n(() => {
134
+ const t = /* @__PURE__ */ new Set(["All", ...T]);
135
+ return o.value.path?.length || t.delete("Variables"), w(e.method) || t.delete("Body"), O.value && t.delete("Auth"), [...t];
136
+ }), i = n(
68
137
  () => Object.fromEntries(
69
- V.value.map((t) => [t, P[t]])
138
+ H.value.map((t) => [t, $[t]])
70
139
  )
71
- ), g = m(
140
+ ), O = n(
72
141
  () => e.layout === "modal" && !e.operation.security && !Object.keys(e.securitySchemes ?? {}).length
73
- ), E = m(() => e.operation.summary ? e.operation.summary : e.path.replace(G.PROTOCOL, "") || "Request Name"), h = (t) => n.value === "All" || n.value === t;
74
- Q(
142
+ ), L = n(() => e.operation.summary ? e.operation.summary : e.path.replace(ee.PROTOCOL, "") || "Request Name"), h = (t) => u.value === "All" || u.value === t;
143
+ X(
75
144
  () => e.method,
76
145
  (t) => {
77
- n.value === "Body" && !C(t) && (n.value = "All");
146
+ u.value === "Body" && !w(t) && (u.value = "All");
78
147
  }
79
148
  );
80
- const H = (t) => {
149
+ const F = (t) => {
81
150
  const a = t.target.value;
82
151
  e.eventBus.emit("operation:update:summary", {
83
- meta: l.value,
152
+ meta: r.value,
84
153
  payload: { summary: a }
85
154
  });
86
- }, f = m(() => ({
87
- path: q("path", e.eventBus, l.value),
88
- cookie: q("cookie", e.eventBus, l.value),
89
- header: q("header", e.eventBus, l.value),
90
- query: q("query", e.eventBus, l.value)
91
- })), I = (t) => e.eventBus.emit("operation:update:requestBody:contentType", {
155
+ }, f = n(() => ({
156
+ path: S("path", e.eventBus, r.value, {
157
+ context: o.value.path ?? []
158
+ }),
159
+ cookie: S("cookie", e.eventBus, r.value, {
160
+ context: p.value ?? [],
161
+ globalParameters: P.value.length
162
+ }),
163
+ header: S("header", e.eventBus, r.value, {
164
+ context: A.value,
165
+ defaultParameters: V.value.length
166
+ }),
167
+ query: S("query", e.eventBus, r.value, {
168
+ context: o.value.query ?? []
169
+ })
170
+ })), G = (t) => e.eventBus.emit("operation:update:requestBody:contentType", {
92
171
  payload: { contentType: t.value },
93
- meta: l.value
94
- }), N = ({
172
+ meta: r.value
173
+ }), Q = ({
95
174
  payload: t,
96
175
  contentType: a
97
176
  }) => {
98
- const r = typeof t == "string" ? `update:requestBody:value-${a}` : void 0;
177
+ const l = typeof t == "string" ? `update:requestBody:value-${a}` : void 0;
99
178
  e.eventBus.emit(
100
179
  "operation:update:requestBody:value",
101
180
  {
102
181
  payload: t,
103
182
  contentType: a,
104
- meta: l.value
183
+ meta: r.value
105
184
  },
106
185
  {
107
- debounceKey: r
186
+ debounceKey: l
108
187
  }
109
188
  );
110
- }, T = ({
189
+ }, M = ({
111
190
  payload: t,
112
191
  contentType: a
113
192
  }) => {
114
- const r = `update:requestBody:${a}-form-value`;
193
+ const l = `update:requestBody:${a}-form-value`;
115
194
  e.eventBus.emit(
116
195
  "operation:update:requestBody:formValue",
117
196
  {
118
- payload: t.map((K) => X(K, { depth: 1 })),
197
+ payload: t.map((g) => te(g, { depth: 1 })),
119
198
  contentType: a,
120
- meta: l.value
199
+ meta: r.value
121
200
  },
122
201
  {
123
- debounceKey: r
202
+ debounceKey: l
124
203
  }
125
204
  );
126
- }, O = u();
127
- return (t, a) => (s(), b(W, {
205
+ }, U = s();
206
+ return (t, a) => (d(), C(le, {
128
207
  "aria-label": `Request: ${e.operation.summary}`
129
208
  }, {
130
- title: k(() => [
131
- A("div", te, [
132
- e.layout !== "modal" ? (s(), x("label", {
209
+ title: q(() => [
210
+ K("div", ve, [
211
+ e.layout !== "modal" ? (d(), x("label", {
133
212
  key: 0,
134
213
  class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
135
- for: c(O)
136
- }, null, 8, ae)) : w("", !0),
137
- e.layout !== "modal" ? (s(), x("input", {
214
+ for: v(U)
215
+ }, null, 8, ye)) : E("", !0),
216
+ e.layout !== "modal" ? (d(), x("input", {
138
217
  key: 1,
139
- id: c(O),
218
+ id: v(U),
140
219
  class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
141
- placeholder: E.value,
220
+ placeholder: L.value,
142
221
  value: e.operation.summary,
143
- onInput: H
144
- }, null, 40, le)) : (s(), x("span", ne, L(e.operation.summary), 1))
222
+ onInput: F
223
+ }, null, 40, he)) : (d(), x("span", fe, Z(e.operation.summary), 1))
145
224
  ]),
146
- i(J, {
147
- modelValue: n.value,
148
- "onUpdate:modelValue": a[0] || (a[0] = (r) => n.value = r),
149
- filterIds: o.value,
150
- filters: V.value
225
+ m(ae, {
226
+ modelValue: u.value,
227
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => u.value = l),
228
+ filterIds: i.value,
229
+ filters: H.value
151
230
  }, null, 8, ["modelValue", "filterIds", "filters"])
152
231
  ]),
153
- default: k(() => [
154
- A("div", {
155
- id: o.value.All,
232
+ default: q(() => [
233
+ K("div", {
234
+ id: i.value.All,
156
235
  class: "request-section-content custom-scroll relative flex flex-1 flex-col",
157
- role: n.value === "All" ? "tabpanel" : "none"
236
+ role: u.value === "All" ? "tabpanel" : "none"
158
237
  }, [
159
- d(i(c(ee), {
160
- id: o.value.Auth,
238
+ c(m(v(ce), {
239
+ id: i.value.Auth,
161
240
  environment: e.environment,
162
241
  eventBus: e.eventBus,
163
242
  meta: e.authMeta,
@@ -169,88 +248,94 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
169
248
  server: e.server,
170
249
  title: "Authentication"
171
250
  }, null, 8, ["id", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "selectedSecuritySchemes", "server"]), [
172
- [y, h("Auth") && !g.value]
251
+ [y, h("Auth") && !O.value]
173
252
  ]),
174
- d(i(p, B({
175
- id: o.value.Variables,
253
+ c(m(k, B({
254
+ id: i.value.Variables,
176
255
  environment: e.environment,
256
+ eventBus: e.eventBus,
177
257
  exampleKey: e.exampleKey,
178
- parameters: v.value.path ?? [],
258
+ rows: o.value.path ?? [],
179
259
  showAddRowPlaceholder: !1,
180
260
  title: "Variables"
181
- }, S(f.value.path)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
182
- [y, h("Variables") && v.value.path?.length]
261
+ }, b(f.value.path)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
262
+ [y, h("Variables") && o.value.path?.length]
183
263
  ]),
184
- d(i(p, B({
185
- id: o.value.Cookies,
264
+ c(m(k, B({
265
+ id: i.value.Cookies,
186
266
  environment: e.environment,
267
+ eventBus: e.eventBus,
187
268
  exampleKey: e.exampleKey,
188
- parameters: v.value.cookie ?? [],
269
+ rows: p.value ?? [],
189
270
  showAddRowPlaceholder: !0,
190
271
  title: "Cookies"
191
- }, S(f.value.cookie)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
272
+ }, b(f.value.cookie)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
192
273
  [y, h("Cookies")]
193
274
  ]),
194
- d(i(p, B({
195
- id: o.value.Headers,
275
+ c(m(k, B({
276
+ id: i.value.Headers,
196
277
  environment: e.environment,
278
+ eventBus: e.eventBus,
197
279
  exampleKey: e.exampleKey,
198
- parameters: v.value.header ?? [],
280
+ rows: A.value ?? [],
199
281
  title: "Headers"
200
- }, S(f.value.header)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
282
+ }, b(f.value.header)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
201
283
  [y, h("Headers")]
202
284
  ]),
203
- d(i(p, B({
204
- id: o.value.Query,
285
+ c(m(k, B({
286
+ id: i.value.Query,
205
287
  environment: e.environment,
288
+ eventBus: e.eventBus,
206
289
  exampleKey: e.exampleKey,
207
- parameters: v.value.query ?? [],
290
+ rows: o.value.query ?? [],
208
291
  title: "Query Parameters"
209
- }, S(f.value.query)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
292
+ }, b(f.value.query)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
210
293
  [y, h("Query")]
211
294
  ]),
212
- d(i(Y, {
213
- id: o.value.Body,
295
+ c(m(ue, {
296
+ id: i.value.Body,
214
297
  environment: e.environment,
215
298
  exampleKey: e.exampleKey,
216
- requestBody: c(R)(e.operation.requestBody),
299
+ requestBody: v(R)(e.operation.requestBody),
217
300
  title: "Request Body",
218
- "onUpdate:contentType": I,
219
- "onUpdate:formValue": T,
220
- "onUpdate:value": N
301
+ "onUpdate:contentType": G,
302
+ "onUpdate:formValue": M,
303
+ "onUpdate:value": Q
221
304
  }, null, 8, ["id", "environment", "exampleKey", "requestBody"]), [
222
- [y, h("Body") && c(C)(e.method)]
305
+ [y, h("Body") && v(w)(e.method)]
223
306
  ]),
224
- (s(!0), x(j, null, D(e.plugins, (r, K) => (s(), b(c(z), { key: K }, {
225
- default: k(() => [
226
- r?.components?.request ? (s(), b(M(r.components.request), {
307
+ (d(!0), x(J, null, W(e.plugins, (l, g) => (d(), C(v(_), { key: g }, {
308
+ default: q(() => [
309
+ l?.components?.request ? (d(), C(Y(l.components.request), {
227
310
  key: 0,
228
311
  operation: e.operation,
229
312
  selectedExample: e.exampleKey
230
- }, null, 8, ["operation", "selectedExample"])) : w("", !0)
313
+ }, null, 8, ["operation", "selectedExample"])) : E("", !0)
231
314
  ]),
232
315
  _: 2
233
316
  }, 1024))), 128)),
234
- a[1] || (a[1] = A("div", { class: "flex flex-grow" }, null, -1)),
235
- d(i(Z, {
317
+ a[1] || (a[1] = K("div", { class: "flex flex-grow" }, null, -1)),
318
+ c(m(ie, {
236
319
  clientOptions: e.clientOptions,
237
320
  eventBus: e.eventBus,
321
+ globalCookies: e.globalCookies,
322
+ integration: "client",
238
323
  method: e.method,
239
324
  operation: e.operation,
240
325
  path: e.path,
241
326
  securitySchemes: e.selectedSecuritySchemes,
242
327
  selectedClient: e.selectedClient,
243
- selectedContentType: c(R)(e.operation.requestBody)?.["x-scalar-selected-content-type"]?.[e.exampleKey],
328
+ selectedContentType: v(R)(e.operation.requestBody)?.["x-scalar-selected-content-type"]?.[e.exampleKey],
244
329
  selectedServer: e.server ?? void 0
245
- }, null, 8, ["clientOptions", "eventBus", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedContentType", "selectedServer"]), [
246
- [y, n.value === "All"]
330
+ }, null, 8, ["clientOptions", "eventBus", "globalCookies", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedContentType", "selectedServer"]), [
331
+ [y, u.value === "All"]
247
332
  ])
248
- ], 8, oe)
333
+ ], 8, xe)
249
334
  ]),
250
335
  _: 1
251
336
  }, 8, ["aria-label"]));
252
337
  }
253
338
  });
254
339
  export {
255
- pe as default
340
+ Ne as default
256
341
  };
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
18
18
  isDisabled: boolean;
19
19
  }[];
20
20
  contentType: string;
21
- meta: import("@scalar/workspace-store/mutators").OperationExampleMeta;
21
+ meta: import("@scalar/workspace-store/events").OperationExampleMeta;
22
22
  }, "payload" | "contentType">) => any;
23
23
  "update:contentType": (payload: {
24
24
  value: string;
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
26
26
  "update:value": (payload: Pick<{
27
27
  payload: string | File | undefined;
28
28
  contentType: string;
29
- meta: import("@scalar/workspace-store/mutators").OperationExampleMeta;
29
+ meta: import("@scalar/workspace-store/events").OperationExampleMeta;
30
30
  }, "payload" | "contentType">) => any;
31
31
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
32
32
  "onUpdate:formValue"?: ((payload: Pick<{
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
36
36
  isDisabled: boolean;
37
37
  }[];
38
38
  contentType: string;
39
- meta: import("@scalar/workspace-store/mutators").OperationExampleMeta;
39
+ meta: import("@scalar/workspace-store/events").OperationExampleMeta;
40
40
  }, "payload" | "contentType">) => any) | undefined;
41
41
  "onUpdate:contentType"?: ((payload: {
42
42
  value: string;
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
44
44
  "onUpdate:value"?: ((payload: Pick<{
45
45
  payload: string | File | undefined;
46
46
  contentType: string;
47
- meta: import("@scalar/workspace-store/mutators").OperationExampleMeta;
47
+ meta: import("@scalar/workspace-store/events").OperationExampleMeta;
48
48
  }, "payload" | "contentType">) => any) | undefined;
49
49
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
50
50
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestCodeSnippet.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestCodeSnippet.vue"],"names":[],"mappings":"AAyJA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAQvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sEAAsE,CAAA;AAQpH,KAAK,WAAW,GAAG,wBAAwB,GAAG;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,CAAC;;AAsQ9E,wBAMG"}
1
+ {"version":3,"file":"RequestCodeSnippet.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestCodeSnippet.vue"],"names":[],"mappings":"AA6JA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAQvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sEAAsE,CAAA;AAQpH,KAAK,WAAW,GAAG,wBAAwB,GAAG;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,CAAC;;AA0Q9E,wBAMG"}