@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
@@ -1,175 +1,175 @@
1
- import { defineComponent as p, computed as u, createBlock as s, openBlock as m, unref as t, normalizeClass as z, withCtx as i, createVNode as o, createCommentVNode as f, createElementVNode as r, createElementBlock as x, Fragment as D, toDisplayString as $ } from "vue";
2
- import { ScalarTooltip as q, ScalarIcon as h, ScalarButton as y } from "@scalar/components";
3
- import { ScalarIconTrash as I } from "@scalar/icons";
4
- import { unpackProxyObject as c } from "@scalar/workspace-store/helpers/unpack-proxy";
5
- import { RouterLink as U } from "vue-router";
6
- import { getFileName as k } from "../helpers/files.js";
7
- import { validateParameter as j } from "../helpers/validate-parameter.js";
8
- import E from "./RequestTableTooltip.vue.js";
9
- import N from "../../../components/data-table/DataTableRow.vue.js";
10
- import O from "../../../components/data-table/DataTableCheckbox.vue.js";
11
- import b from "../../../components/data-table/DataTableCell.vue.js";
12
- import w from "../../../components/code-input/CodeInput.vue.js";
13
- const P = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1" }, G = {
1
+ import { defineComponent as q, ref as x, watch as y, computed as o, createBlock as m, openBlock as d, unref as i, normalizeClass as E, withCtx as s, createVNode as u, createCommentVNode as f, createElementBlock as R, Fragment as N, createElementVNode as h, toDisplayString as P } from "vue";
2
+ import { ScalarButton as C, ScalarIconButton as j, ScalarIcon as G } from "@scalar/components";
3
+ import { ScalarIconTrash as K, ScalarIconGlobe as O } from "@scalar/icons";
4
+ import { unpackProxyObject as B } from "@scalar/workspace-store/helpers/unpack-proxy";
5
+ import { getFileName as W } from "../helpers/files.js";
6
+ import { validateParameter as A } from "../helpers/validate-parameter.js";
7
+ import D from "./RequestTableTooltip.vue.js";
8
+ import H from "../../../components/data-table/DataTableRow.vue.js";
9
+ import J from "../../../components/data-table/DataTableCheckbox.vue.js";
10
+ import g from "../../../components/data-table/DataTableCell.vue.js";
11
+ import F from "../../../components/code-input/CodeInput.vue.js";
12
+ const L = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1" }, M = {
14
13
  key: 1,
15
14
  class: "p-0.5"
16
- }, ee = /* @__PURE__ */ p({
15
+ }, ne = /* @__PURE__ */ q({
17
16
  __name: "RequestTableRow",
18
17
  props: {
19
18
  data: {},
20
- isReadOnly: { type: Boolean },
21
19
  hasCheckboxDisabled: { type: Boolean },
22
20
  invalidParams: {},
23
21
  label: {},
24
22
  environment: {},
25
23
  showUploadButton: { type: Boolean }
26
24
  },
27
- emits: ["updateRow", "deleteRow", "uploadFile", "removeFile"],
28
- setup(e, { emit: g }) {
29
- const d = g, R = u(() => e.data.schema?.default), V = u(() => e.data.schema?.enum), B = u(
25
+ emits: ["upsertRow", "deleteRow", "uploadFile", "removeFile", "navigate"],
26
+ setup(e, { emit: S }) {
27
+ const r = S, c = x(e.data.name ?? ""), n = x(B(e.data.value) ?? ""), v = x(e.data.isDisabled ?? !1);
28
+ y(
29
+ () => e.data.name,
30
+ (l) => c.value = l ?? ""
31
+ ), y(
32
+ () => e.data.value,
33
+ (l) => n.value = B(l) ?? ""
34
+ ), y(
35
+ () => e.data.isDisabled,
36
+ (l) => v.value = l ?? !1
37
+ );
38
+ const k = o(() => n.value instanceof File), w = o(
39
+ () => (k.value ? W(n.value) : n.value) ?? ""
40
+ ), z = o(() => e.data.schema?.default), I = o(() => e.data.schema?.enum), T = o(
30
41
  () => e.data.schema && "minimum" in e.data.schema ? e.data.schema.minimum : void 0
31
- ), C = u(
42
+ ), $ = o(
32
43
  () => e.data.schema && "maximum" in e.data.schema ? e.data.schema.maximum : void 0
33
- ), F = u(
44
+ ), U = o(
34
45
  () => e.data.schema && "type" in e.data.schema ? e.data.schema.type : void 0
35
- ), v = u(
36
- () => j(e.data.schema, e.data.value)
37
- ), S = (n) => n instanceof File, T = u({
38
- get: () => {
39
- const n = c(e.data.value);
40
- return n instanceof File ? k(c(e.data.value)) ?? "" : n === null ? "" : n;
41
- },
42
- set: (n) => {
43
- typeof n == "string" && d("updateRow", { value: n });
44
- }
45
- });
46
- return (n, a) => (m(), s(t(N), {
46
+ ), V = o(
47
+ () => A(e.data.schema, n.value)
48
+ ), b = (l) => {
49
+ l.name !== void 0 && (c.value = l.name), l.value !== void 0 && (n.value = l.value), l.isDisabled !== void 0 && (v.value = l.isDisabled), r("upsertRow", {
50
+ name: c.value,
51
+ value: n.value,
52
+ isDisabled: v.value
53
+ });
54
+ };
55
+ return (l, a) => (d(), m(i(H), {
47
56
  id: e.data.name,
48
- class: z({
49
- alert: v.value.ok === !1,
50
- error: v.value.ok === !1 && e.invalidParams?.has(e.data.name)
57
+ class: E({
58
+ alert: V.value.ok === !1,
59
+ error: V.value.ok === !1 && e.invalidParams?.has(e.data.name)
51
60
  })
52
61
  }, {
53
- default: i(() => [
54
- e.data.globalRoute !== void 0 ? (m(), s(t(U), {
55
- key: 0,
56
- class: "text-c-2 flex items-center justify-center border-t !border-r",
57
- to: e.data.globalRoute ?? {}
58
- }, {
59
- default: i(() => [
60
- a[7] || (a[7] = r("span", { class: "sr-only" }, "Global", -1)),
61
- o(t(q), {
62
- content: "Global cookies are shared across the whole workspace.",
63
- placement: "top"
64
- }, {
65
- default: i(() => [
66
- o(t(h), {
67
- class: "text-c-1",
68
- icon: "Globe",
69
- size: "xs",
70
- tabindex: "0"
71
- })
72
- ]),
73
- _: 1
74
- })
75
- ]),
76
- _: 1
77
- }, 8, ["to"])) : (m(), s(t(O), {
78
- key: 1,
62
+ default: s(() => [
63
+ u(i(J), {
79
64
  class: "!border-r",
80
65
  disabled: e.hasCheckboxDisabled ?? !1,
81
- modelValue: !e.data.isDisabled,
82
- "onUpdate:modelValue": a[0] || (a[0] = (l) => d("updateRow", { isDisabled: !l }))
83
- }, null, 8, ["disabled", "modelValue"])),
84
- o(t(b), null, {
85
- default: i(() => [
86
- o(t(w), {
66
+ modelValue: !v.value,
67
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => b({ isDisabled: !t }))
68
+ }, null, 8, ["disabled", "modelValue"]),
69
+ u(i(g), null, {
70
+ default: s(() => [
71
+ u(i(F), {
87
72
  "aria-label": `${e.label} Key`,
88
73
  disableCloseBrackets: "",
89
- disabled: e.isReadOnly,
74
+ disabled: e.data.isReadonly,
90
75
  disableEnter: "",
91
76
  disableTabIndent: "",
92
77
  environment: e.environment,
93
78
  lineWrapping: "",
94
- modelValue: e.data.name,
79
+ modelValue: c.value,
95
80
  placeholder: "Key",
96
81
  required: !!e.data.isRequired,
97
- onSelectVariable: a[1] || (a[1] = (l) => d("updateRow", { name: l })),
98
- "onUpdate:modelValue": a[2] || (a[2] = (l) => d("updateRow", { name: l }))
82
+ onSelectVariable: a[1] || (a[1] = (t) => b({ name: t })),
83
+ "onUpdate:modelValue": a[2] || (a[2] = (t) => b({ name: t }))
99
84
  }, null, 8, ["aria-label", "disabled", "environment", "modelValue", "required"])
100
85
  ]),
101
86
  _: 1
102
87
  }),
103
- o(t(b), null, {
104
- default: i(() => [
105
- o(t(w), {
88
+ u(i(g), null, {
89
+ default: s(() => [
90
+ u(i(F), {
106
91
  "aria-label": `${e.label} Value`,
107
92
  class: "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",
108
- default: R.value,
93
+ default: z.value,
109
94
  disableCloseBrackets: "",
110
- disabled: e.isReadOnly,
95
+ disabled: e.data.isReadonly,
111
96
  disableEnter: "",
112
97
  disableTabIndent: "",
113
- enum: V.value ?? [],
98
+ enum: I.value ?? [],
114
99
  environment: e.environment,
115
- examples: e.data.schema?.examples?.map((l) => String(l)) ?? [],
100
+ examples: e.data.schema?.examples?.map((t) => String(t)) ?? [],
101
+ linethrough: e.data.isOverridden,
116
102
  lineWrapping: "",
117
- max: C.value,
118
- min: B.value,
119
- modelValue: T.value,
103
+ max: $.value,
104
+ min: T.value,
105
+ modelValue: w.value,
120
106
  placeholder: "Value",
121
- type: F.value,
122
- "onUpdate:modelValue": a[4] || (a[4] = (l) => d("updateRow", { value: l }))
107
+ type: U.value,
108
+ "onUpdate:modelValue": a[5] || (a[5] = (t) => b({ value: t }))
123
109
  }, {
124
- icon: i(() => [
125
- (e.data.name || e.data.value) && !e.data.isRequired ? (m(), s(t(y), {
110
+ icon: s(() => [
111
+ (e.data.name || n.value) && !e.data.isRequired && e.data.isReadonly !== !0 ? (d(), m(i(C), {
126
112
  key: 0,
127
113
  class: "text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",
128
114
  size: "sm",
129
115
  variant: "ghost",
130
- onClick: a[3] || (a[3] = (l) => d("deleteRow"))
116
+ onClick: a[3] || (a[3] = (t) => r("deleteRow"))
131
117
  }, {
132
- default: i(() => [
133
- o(t(I), { class: "size-3.5" })
118
+ default: s(() => [
119
+ u(i(K), { class: "size-3.5" })
134
120
  ]),
135
121
  _: 1
136
122
  })) : f("", !0),
137
- e.data.schema ? (m(), s(E, {
123
+ e.data.globalRoute !== void 0 ? (d(), m(i(j), {
138
124
  key: 1,
125
+ class: "text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 h-fit",
126
+ icon: i(O),
127
+ label: "Global cookies are shared across the whole workspace. Click to navigate.",
128
+ size: "xs",
129
+ tooltip: "top",
130
+ variant: "ghost",
131
+ onClick: a[4] || (a[4] = (t) => r("navigate", e.data.globalRoute))
132
+ }, null, 8, ["icon"])) : f("", !0),
133
+ e.data.isReadonly ? (d(), m(D, {
134
+ key: 2,
135
+ description: "This is a readonly property and you can not modify it! If you want to change it you have to override it or disable it using the checkbox",
136
+ value: null
137
+ })) : e.data.schema ? (d(), m(D, {
138
+ key: 3,
139
139
  description: e.data.description,
140
140
  schema: e.data.schema,
141
- value: e.data.value
141
+ value: n.value
142
142
  }, null, 8, ["description", "schema", "value"])) : f("", !0)
143
143
  ]),
144
144
  _: 1
145
- }, 8, ["aria-label", "default", "disabled", "enum", "environment", "examples", "max", "min", "modelValue", "type"])
145
+ }, 8, ["aria-label", "default", "disabled", "enum", "environment", "examples", "linethrough", "max", "min", "modelValue", "type"])
146
146
  ]),
147
147
  _: 1
148
148
  }),
149
- e.showUploadButton ? (m(), s(t(b), {
150
- key: 2,
149
+ e.showUploadButton ? (d(), m(i(g), {
150
+ key: 0,
151
151
  class: "group/upload flex items-center justify-center whitespace-nowrap"
152
152
  }, {
153
- default: i(() => [
154
- S(t(c)(e.data.value)) ? (m(), x(D, { key: 0 }, [
155
- r("div", P, [
156
- r("span", null, $(t(k)(t(c)(e.data.value))), 1)
153
+ default: s(() => [
154
+ k.value ? (d(), R(N, { key: 0 }, [
155
+ h("div", L, [
156
+ h("span", null, P(w.value), 1)
157
157
  ]),
158
- r("button", {
158
+ h("button", {
159
159
  class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
160
160
  type: "button",
161
- onClick: a[5] || (a[5] = (l) => d("removeFile"))
161
+ onClick: a[6] || (a[6] = (t) => r("removeFile"))
162
162
  }, " Delete ")
163
- ], 64)) : (m(), x("div", G, [
164
- o(t(y), {
163
+ ], 64)) : (d(), R("div", M, [
164
+ u(i(C), {
165
165
  class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
166
166
  size: "sm",
167
167
  variant: "outlined",
168
- onClick: a[6] || (a[6] = (l) => d("uploadFile"))
168
+ onClick: a[7] || (a[7] = (t) => r("uploadFile"))
169
169
  }, {
170
- default: i(() => [
171
- a[8] || (a[8] = r("span", null, "Select File", -1)),
172
- o(t(h), {
170
+ default: s(() => [
171
+ a[8] || (a[8] = h("span", null, "Select File", -1)),
172
+ u(i(G), {
173
173
  class: "ml-1",
174
174
  icon: "Upload",
175
175
  size: "xs",
@@ -188,5 +188,5 @@ const P = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
188
188
  }
189
189
  });
190
190
  export {
191
- ee as default
191
+ ne as default
192
192
  };
@@ -1,11 +1,16 @@
1
- import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
2
- import type { OperationExampleMeta } from '@scalar/workspace-store/mutators';
1
+ import type { OperationExampleMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
2
+ import type { TableRow } from '../../../../v2/blocks/request-block/components/RequestTableRow.vue.js';
3
3
  type ParameterType = 'path' | 'cookie' | 'header' | 'query';
4
4
  /** Create parameter event handlers for a given type */
5
- export declare const createParameterHandlers: (type: ParameterType, eventBus: WorkspaceEventBus, meta: OperationExampleMeta) => {
5
+ export declare const createParameterHandlers: (type: ParameterType, eventBus: WorkspaceEventBus, meta: OperationExampleMeta, { context, defaultParameters, globalParameters, }: {
6
+ context: TableRow[];
7
+ defaultParameters?: number;
8
+ globalParameters?: number;
9
+ }) => {
6
10
  add: (payload: {
7
11
  name?: string;
8
12
  value?: string;
13
+ index?: number;
9
14
  }) => void;
10
15
  delete: (payload: {
11
16
  index: number;
@@ -13,11 +18,11 @@ export declare const createParameterHandlers: (type: ParameterType, eventBus: Wo
13
18
  deleteAll: () => void;
14
19
  update: (payload: {
15
20
  index: number;
16
- payload: Partial<{
21
+ payload: {
17
22
  name: string;
18
23
  value: string;
19
24
  isDisabled: boolean;
20
- }>;
25
+ };
21
26
  }) => void;
22
27
  };
23
28
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"create-parameter-handlers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/create-parameter-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3D,uDAAuD;AACvD,eAAO,MAAM,uBAAuB,GAClC,MAAM,aAAa,EACnB,UAAU,iBAAiB,EAC3B,MAAM,oBAAoB;mBAEX;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;sBAU9B;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;sBAWjB;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE,CAAC,CAAA;KAAE;CAY3G,CAAA"}
1
+ {"version":3,"file":"create-parameter-handlers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/create-parameter-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE7F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0DAA0D,CAAA;AAExF,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3D,uDAAuD;AACvD,eAAO,MAAM,uBAAuB,GAClC,MAAM,aAAa,EACnB,UAAU,iBAAiB,EAC3B,MAAM,oBAAoB,EAC1B,mDAIG;IACD,OAAO,EAAE,QAAQ,EAAE,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;mBAKgB;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;sBAgB9C;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;sBAWjB;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE;CA+BrG,CAAA"}
@@ -1,34 +1,63 @@
1
- const t = (a, r, d) => ({
2
- add: (e) => r.emit("operation:add:parameter", {
3
- type: a,
4
- payload: {
5
- name: e.name ?? "",
6
- value: e.value ?? "",
7
- isDisabled: !1
8
- },
9
- meta: d
10
- }),
11
- delete: (e) => r.emit("operation:delete:parameter", {
12
- type: a,
13
- index: e.index,
14
- meta: d
15
- }),
16
- deleteAll: () => r.emit("operation:delete-all:parameters", {
17
- type: a,
18
- meta: d
19
- }),
20
- update: (e) => r.emit(
21
- "operation:update:parameter",
22
- {
23
- type: a,
24
- ...e,
25
- meta: d
26
- },
27
- {
28
- debounceKey: `update:parameter-${a}-${e.index}-${Object.keys(e.payload).join("-")}`
1
+ const l = (i, r, a, {
2
+ context: s,
3
+ defaultParameters: d = 0,
4
+ globalParameters: o = 0
5
+ }) => {
6
+ const n = d + o;
7
+ return {
8
+ add: (e) => r.emit(
9
+ "operation:add:parameter",
10
+ {
11
+ type: i,
12
+ payload: {
13
+ name: e.name ?? "",
14
+ value: e.value ?? "",
15
+ isDisabled: !1
16
+ },
17
+ meta: a
18
+ },
19
+ {
20
+ debounceKey: `add:parameter-${i}-${e.index}`
21
+ }
22
+ ),
23
+ delete: (e) => r.emit("operation:delete:parameter", {
24
+ type: i,
25
+ index: e.index - n,
26
+ meta: a
27
+ }),
28
+ deleteAll: () => r.emit("operation:delete-all:parameters", {
29
+ type: i,
30
+ meta: a
31
+ }),
32
+ update: (e) => {
33
+ const x = s[e.index];
34
+ if (e.index < d + o) {
35
+ const t = e.index < d ? "default" : "global";
36
+ return r.emit("operation:update:extra-parameters", {
37
+ type: t,
38
+ in: i,
39
+ meta: { ...a, name: x?.name?.toLowerCase?.() ?? "NON_VALID" },
40
+ payload: { isDisabled: e.payload.isDisabled ?? !1 }
41
+ });
42
+ }
43
+ if (e.index >= n) {
44
+ const t = Object.keys(e.payload).join("-");
45
+ return r.emit(
46
+ "operation:update:parameter",
47
+ {
48
+ type: i,
49
+ index: e.index - n,
50
+ payload: e.payload,
51
+ meta: a
52
+ },
53
+ {
54
+ debounceKey: `update:parameter-${i}-${e.index - n}-${t}`
55
+ }
56
+ );
57
+ }
29
58
  }
30
- )
31
- });
59
+ };
60
+ };
32
61
  export {
33
- t as createParameterHandlers
62
+ l as createParameterHandlers
34
63
  };
@@ -0,0 +1,41 @@
1
+ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
+ import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ /**
4
+ * Represents a default header with its value and override status.
5
+ * Used to track headers that are automatically added to requests.
6
+ */
7
+ type DefaultHeader = {
8
+ /** The header name (e.g., "Content-Type", "Accept"). */
9
+ name: string;
10
+ /** The default value for this header. */
11
+ defaultValue: string;
12
+ /** Whether this header is explicitly defined in the OpenAPI operation parameters. */
13
+ isOverridden: boolean;
14
+ };
15
+ /**
16
+ * Generates a list of default headers for an OpenAPI operation and HTTP method.
17
+ *
18
+ * This function intelligently adds standard HTTP headers based on the request context:
19
+ * - Content-Type: Added only if the HTTP method supports a request body (POST, PUT, PATCH, etc.).
20
+ * Uses the selected content type from the operation or defaults to "application/json".
21
+ * - Accept: Always added with a wildcard value to accept all response types.
22
+ * - User-Agent: Added in Electron environments (desktop app or proxy) to identify the client.
23
+ *
24
+ * The function respects OpenAPI operation parameters and marks headers as overridden
25
+ * if they are explicitly defined in the operation. It also supports hiding disabled
26
+ * headers for specific request examples using x-scalar-disable-parameters.
27
+ *
28
+ * @param method The HTTP method of the operation (GET, POST, etc.)
29
+ * @param operation The OpenAPI OperationObject describing the endpoint
30
+ * @param exampleKey The current request example key
31
+ * @param hideDisabledHeaders If true, filters out headers marked as disabled for this example
32
+ * @returns Array of default header objects with their values and override status
33
+ */
34
+ export declare const getDefaultHeaders: ({ method, operation, exampleKey, hideDisabledHeaders, }: {
35
+ method: HttpMethod;
36
+ operation: OperationObject;
37
+ exampleKey: string;
38
+ hideDisabledHeaders?: boolean;
39
+ }) => DefaultHeader[];
40
+ export {};
41
+ //# sourceMappingURL=get-default-headers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-default-headers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/get-default-headers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAanG;;;GAGG;AACH,KAAK,aAAa,GAAG;IACnB,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAA;IACZ,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAgBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,iBAAiB,GAAI,yDAK/B;IACD,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,KAAG,aAAa,EAqChB,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { canMethodHaveBody as p } from "@scalar/helpers/http/can-method-have-body";
2
+ import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { isElectron as u } from "../../../../libs/electron.js";
4
+ const i = "2.19.0", m = "application/json", h = "*/*", c = (r, t, a) => ({
5
+ name: r,
6
+ defaultValue: t,
7
+ isOverridden: a.has(r.toLowerCase())
8
+ }), y = ({
9
+ method: r,
10
+ operation: t,
11
+ exampleKey: a,
12
+ hideDisabledHeaders: l = !1
13
+ }) => {
14
+ const o = new Set(
15
+ t.parameters?.filter((e) => n(e).in === "header").map((e) => n(e).name.toLowerCase()) ?? []
16
+ ), f = t["x-scalar-disable-parameters"]?.["default-headers"]?.[a] ?? {}, s = [], d = n(t.requestBody);
17
+ if (p(r)) {
18
+ const e = d?.["x-scalar-selected-content-type"]?.[a] ?? Object.keys(d?.content ?? {})[0] ?? m;
19
+ s.push(c("Content-Type", e, o));
20
+ }
21
+ return s.push(c("Accept", h, o)), u() && i && s.push(c("User-Agent", `Scalar/${i}`, o)), l ? s.filter((e) => f[e.name.toLowerCase()] !== !0) : s;
22
+ };
23
+ export {
24
+ y as getDefaultHeaders
25
+ };
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Group together array objects by a specific key
3
3
  */
4
- export declare const groupBy: <T extends Record<string, unknown>, K extends keyof T, V extends string | number | symbol = Extract<T[K], string | number | symbol>>(arr: T[], key: K) => Record<V, T[]>;
4
+ export declare const groupBy: <T extends Record<string, unknown>, K extends keyof T, V extends string | number | symbol = Extract<T[K], string | number | symbol>, R = T>(arr: T[], key: K, transform?: (item: T) => R) => Record<V, R[]>;
5
5
  //# sourceMappingURL=group-by.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"group-by.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/group-by.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,GAClB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,SAAS,MAAM,CAAC,EACjB,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAE5E,KAAK,CAAC,EAAE,EACR,KAAK,CAAC,mBAQL,CAAA"}
1
+ {"version":3,"file":"group-by.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/group-by.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,GAClB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,SAAS,MAAM,CAAC,EACjB,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAC5E,CAAC,GAAG,CAAC,EAEL,KAAK,CAAC,EAAE,EACR,KAAK,CAAC,EACN,YAAY,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KACzB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CASf,CAAA"}
@@ -1,7 +1,10 @@
1
- const t = (u, p) => u.reduce(
2
- (r, e) => ((r[e[p]] ??= []).push(e), r),
1
+ const s = (u, n, r) => u.reduce(
2
+ (t, e) => {
3
+ const p = r ? r(e) : e;
4
+ return (t[e[n]] ??= []).push(p), t;
5
+ },
3
6
  {}
4
7
  );
5
8
  export {
6
- t as groupBy
9
+ s as groupBy
7
10
  };
@@ -0,0 +1,13 @@
1
+ import type { ExampleObject, ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ /**
3
+ * Determines if a parameter is disabled
4
+ *
5
+ * First we explicitly check if its been disabled via the `x-disabled` extension.
6
+ * Then we check if its an optional parameter and not a path parameter.
7
+ *
8
+ * @param param - The parameter to check.
9
+ * @param example - The example to check.
10
+ * @returns true if the parameter is disabled, false otherwise.
11
+ */
12
+ export declare const isParamDisabled: (param: ParameterObject, example: ExampleObject | undefined) => boolean;
13
+ //# sourceMappingURL=is-param-disabled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-param-disabled.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/is-param-disabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAElH;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,eAAe,EAAE,SAAS,aAAa,GAAG,SAAS,YAUzF,CAAA"}
@@ -0,0 +1,7 @@
1
+ const t = (e, r) => {
2
+ const i = r?.["x-disabled"];
3
+ return typeof i == "boolean" ? i : !e.required && e.in !== "path";
4
+ };
5
+ export {
6
+ t as isParamDisabled
7
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"AAubA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAKrF,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAO3C,OAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEzE,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,kBAAkB;IAClB,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;;;;;;;;;AAylBF,wBAQG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"AAkbA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAGrF,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,OAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEzE,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,kBAAkB;IAClB,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;;;;;;;;;AAulBF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a165ba6c"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-90999cb7"]]);
5
5
  export {
6
6
  m as default
7
7
  };