@scalar/api-client 2.3.8 → 2.3.10

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 (97) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  5. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +8 -8
  6. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  7. package/dist/components/ScalarHotkey.vue.d.ts +1 -1
  8. package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
  9. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  10. package/dist/components/Server/ServerDropdownItem.vue.js +2 -2
  11. package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +2 -0
  12. package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +1 -0
  13. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  14. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +8 -8
  15. package/dist/layouts/App/create-api-client-app.d.ts +658 -473
  16. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  17. package/dist/layouts/Modal/create-api-client-modal.d.ts +1337 -967
  18. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  19. package/dist/layouts/Modal/create-api-client-modal.js +4 -4
  20. package/dist/layouts/Web/create-api-client-web.d.ts +658 -473
  21. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  22. package/dist/libs/create-client.d.ts +651 -466
  23. package/dist/libs/create-client.d.ts.map +1 -1
  24. package/dist/libs/create-client.js +18 -20
  25. package/dist/libs/find-request.d.ts +4 -4
  26. package/dist/libs/find-request.d.ts.map +1 -1
  27. package/dist/libs/hot-keys.d.ts +2 -2
  28. package/dist/libs/send-request/build-request-security.d.ts +2 -2
  29. package/dist/libs/send-request/create-request-operation.test.d.ts +49 -47
  30. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  31. package/dist/store/active-entities.d.ts +67 -61
  32. package/dist/store/active-entities.d.ts.map +1 -1
  33. package/dist/store/collections.d.ts +44 -34
  34. package/dist/store/collections.d.ts.map +1 -1
  35. package/dist/store/cookies.d.ts +18 -18
  36. package/dist/store/environment.d.ts +9 -9
  37. package/dist/store/import-spec.d.ts +154 -2
  38. package/dist/store/import-spec.d.ts.map +1 -1
  39. package/dist/store/request-example.d.ts +272 -272
  40. package/dist/store/request-example.d.ts.map +1 -1
  41. package/dist/store/requests.d.ts +44 -44
  42. package/dist/store/requests.d.ts.map +1 -1
  43. package/dist/store/security-schemes.d.ts +10 -10
  44. package/dist/store/security-schemes.d.ts.map +1 -1
  45. package/dist/store/servers.d.ts +50 -30
  46. package/dist/store/servers.d.ts.map +1 -1
  47. package/dist/store/store.d.ts +655 -470
  48. package/dist/store/store.d.ts.map +1 -1
  49. package/dist/store/tags.d.ts +10 -10
  50. package/dist/store/workspace.d.ts +44 -44
  51. package/dist/style.css +1 -1
  52. package/dist/views/Collection/CollectionAuthentication.vue.d.ts +1 -1
  53. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
  54. package/dist/views/Collection/CollectionAuthentication.vue.js +5 -2
  55. package/dist/views/Collection/CollectionAuthentication.vue2.js +52 -11
  56. package/dist/views/Collection/CollectionNavigation.vue.js +34 -34
  57. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  58. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  59. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  60. package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
  61. package/dist/views/Request/Request.vue.d.ts +2 -0
  62. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  63. package/dist/views/Request/Request.vue.js +2 -2
  64. package/dist/views/Request/Request.vue2.js +71 -75
  65. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  66. package/dist/views/Request/RequestRoot.vue.js +1 -1
  67. package/dist/views/Request/RequestRoot.vue2.js +49 -46
  68. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  69. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +24 -24
  70. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
  71. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  72. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  73. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
  74. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  75. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  76. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
  77. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  78. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  79. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
  80. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  81. package/dist/views/Request/RequestSection/RequestSection.test.d.ts +2 -0
  82. package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +1 -0
  83. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
  84. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  85. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  86. package/dist/views/Request/RequestSection/RequestSection.vue2.js +26 -19
  87. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
  88. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  89. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  90. package/dist/views/Request/RequestSection/RequestTable.vue2.js +191 -193
  91. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  92. package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +2 -0
  93. package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +1 -0
  94. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  95. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  96. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +50 -47
  97. package/package.json +13 -13
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuth.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-8dfa397c"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1f349e0c"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as I, useId as L, ref as D, computed as h, openBlock as m, createBlock as N, withCtx as d, createElementVNode as i, unref as r, toDisplayString as k, createElementBlock as p, normalizeClass as z, createCommentVNode as E, createVNode as f, Fragment as x, createTextVNode as q } from "vue";
1
+ import { defineComponent as I, useId as L, ref as D, computed as h, openBlock as m, createBlock as N, withCtx as d, createElementVNode as i, unref as r, toDisplayString as g, createElementBlock as p, normalizeClass as z, createCommentVNode as E, createVNode as f, Fragment as k, createTextVNode as x } from "vue";
2
2
  import { useModal as K, ScalarComboboxMultiselect as W, ScalarButton as F, ScalarIcon as G } from "@scalar/components";
3
3
  import { isDefined as H } from "@scalar/oas-utils/helpers";
4
4
  import J from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
@@ -21,17 +21,17 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
21
21
  workspace: {}
22
22
  },
23
23
  setup(s) {
24
- const { layout: v } = P(), {
25
- securitySchemes: S,
24
+ const { layout: q } = P(), {
25
+ securitySchemes: v,
26
26
  securitySchemeMutators: O,
27
27
  requestMutators: w,
28
28
  collectionMutators: M
29
- } = Q(), R = L(), C = D(null), y = K(), b = D(
29
+ } = Q(), R = L(), C = D(null), y = K(), S = D(
30
30
  null
31
31
  ), A = h(() => {
32
32
  const e = Z(s.operation, s.collection);
33
33
  return { filteredRequirements: e.filter((o) => Object.keys(o).length), requirements: e };
34
- }), g = h(() => {
34
+ }), b = h(() => {
35
35
  const { filteredRequirements: e, requirements: t } = A.value;
36
36
  if (!t.length)
37
37
  return null;
@@ -45,8 +45,8 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
45
45
  }), a = h(
46
46
  () => s.selectedSecuritySchemeUids.map((e) => {
47
47
  if (Array.isArray(e))
48
- return _(e, S);
49
- const t = S[e ?? ""];
48
+ return _(e, v);
49
+ const t = v[e ?? ""];
50
50
  if (t)
51
51
  return ee(t);
52
52
  }).filter(H)
@@ -68,10 +68,10 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
68
68
  }
69
69
  const V = (e) => {
70
70
  var t;
71
- v === "modal" || s.layout === "reference" ? M.edit(s.collection.uid, "selectedSecuritySchemeUids", e) : (t = s.operation) != null && t.uid && w.edit(s.operation.uid, "selectedSecuritySchemeUids", e);
71
+ s.collection.useCollectionSecurity ? M.edit(s.collection.uid, "selectedSecuritySchemeUids", e) : (t = s.operation) != null && t.uid && w.edit(s.operation.uid, "selectedSecuritySchemeUids", e);
72
72
  };
73
73
  function $({ id: e, label: t }) {
74
- b.value = { id: e, label: t }, y.show();
74
+ S.value = { id: e, label: t }, y.show();
75
75
  }
76
76
  const B = (e) => {
77
77
  var o;
@@ -88,8 +88,8 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
88
88
  return te(
89
89
  A.value.filteredRequirements,
90
90
  ((e = s.collection) == null ? void 0 : e.securitySchemes) ?? [],
91
- S,
92
- v === "modal" || s.layout === "reference"
91
+ v,
92
+ q === "modal" || s.layout === "reference"
93
93
  );
94
94
  }
95
95
  );
@@ -103,18 +103,18 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
103
103
  id: r(R),
104
104
  class: "inline-flex items-center gap-1"
105
105
  }, [
106
- i("span", null, k(e.title), 1),
107
- g.value ? (m(), p("span", {
106
+ i("span", null, g(e.title), 1),
107
+ b.value ? (m(), p("span", {
108
108
  key: 0,
109
- class: z(["text-c-3 text-xs leading-[normal]", { "text-c-1": g.value.text === "Required" }])
110
- }, k(g.value.text), 3)) : E("", !0)
109
+ class: z(["text-c-3 text-xs leading-[normal]", { "text-c-1": b.value.text === "Required" }])
110
+ }, g(b.value.text), 3)) : E("", !0)
111
111
  ], 8, le)
112
112
  ]),
113
113
  actions: d(() => [
114
114
  i("div", oe, [
115
115
  f(r(W), {
116
116
  class: "w-72 text-xs",
117
- isDeletable: r(v) !== "modal" && e.layout !== "reference",
117
+ isDeletable: r(q) !== "modal" && e.layout !== "reference",
118
118
  modelValue: a.value,
119
119
  multiple: "",
120
120
  options: T.value,
@@ -134,14 +134,14 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
134
134
  var o;
135
135
  return [
136
136
  i("div", ne, [
137
- a.value.length === 0 ? (m(), p(x, { key: 0 }, [
137
+ a.value.length === 0 ? (m(), p(k, { key: 0 }, [
138
138
  t[2] || (t[2] = i("span", { class: "sr-only" }, "Select", -1)),
139
- t[3] || (t[3] = q(" Auth Type "))
140
- ], 64)) : a.value.length === 1 ? (m(), p(x, { key: 1 }, [
139
+ t[3] || (t[3] = x(" Auth Type "))
140
+ ], 64)) : a.value.length === 1 ? (m(), p(k, { key: 1 }, [
141
141
  t[4] || (t[4] = i("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
142
- q(" " + k((o = a.value[0]) == null ? void 0 : o.label), 1)
143
- ], 64)) : (m(), p(x, { key: 2 }, [
144
- t[5] || (t[5] = q(" Multiple ")),
142
+ x(" " + g((o = a.value[0]) == null ? void 0 : o.label), 1)
143
+ ], 64)) : (m(), p(k, { key: 2 }, [
144
+ t[5] || (t[5] = x(" Multiple ")),
145
145
  t[6] || (t[6] = i("span", { class: "sr-only" }, "Auth Types Selected", -1))
146
146
  ], 64))
147
147
  ]),
@@ -170,12 +170,12 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
170
170
  workspace: e.workspace
171
171
  }, null, 8, ["collection", "envVariables", "environment", "layout", "selectedSchemeOptions", "server", "workspace"]),
172
172
  f(X, {
173
- scheme: b.value,
173
+ scheme: S.value,
174
174
  state: r(y),
175
175
  onClose: t[0] || (t[0] = (o) => r(y).hide()),
176
176
  onDelete: t[1] || (t[1] = (o) => {
177
177
  var n;
178
- return B((n = b.value) == null ? void 0 : n.id);
178
+ return B((n = S.value) == null ? void 0 : n.id);
179
179
  })
180
180
  }, null, 8, ["scheme", "state"])
181
181
  ]),
@@ -1,6 +1,6 @@
1
- import type { Workspace } from '@scalar/oas-utils/entities';
2
1
  import type { Environment } from '@scalar/oas-utils/entities/environment';
3
2
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
3
+ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
4
4
  import type { EnvVariable } from '../../../../store/active-entities';
5
5
  type __VLS_Props = {
6
6
  collection: Collection;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AA6PA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AAKxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA0aF,wBAMG"}
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AA6PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA0aF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthTab.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-fc488741"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-36066bff"]]);
5
5
  export {
6
- f as default
6
+ e as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import type { Workspace } from '@scalar/oas-utils/entities';
2
1
  import type { Environment } from '@scalar/oas-utils/entities/environment';
3
2
  import { type Operation, type RequestExample } from '@scalar/oas-utils/entities/spec';
3
+ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
4
4
  import type { EnvVariable } from '../../../store/active-entities';
5
5
  type __VLS_Props = {
6
6
  example: RequestExample;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAqnBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AAaxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAM1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAs6BJ,wBAOG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAqnBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAarE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAM1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAs6BJ,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-12b37505"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8bf1b90e"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import type { Workspace } from '@scalar/oas-utils/entities';
2
1
  import type { Collection, Operation, RequestExample, Server } from '@scalar/oas-utils/entities/spec';
2
+ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
3
3
  type __VLS_Props = {
4
4
  collection: Collection;
5
5
  example: RequestExample;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AAcxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA+PF,wBAOG"}
1
+ {"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA+PF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestCodeExample.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-911b43db"]]);
3
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-6c928e79"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import type { Workspace } from '@scalar/oas-utils/entities';
2
1
  import type { Environment } from '@scalar/oas-utils/entities/environment';
3
2
  import type { Operation, RequestExample } from '@scalar/oas-utils/entities/spec';
3
+ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
4
4
  import type { EnvVariable } from '../../../store/active-entities';
5
5
  type __VLS_Props = {
6
6
  example: RequestExample;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestPathParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestPathParams.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAMhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AAwLF,wBAOG"}
1
+ {"version":3,"file":"RequestPathParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestPathParams.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AAwLF,wBAOG"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RequestSection.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestSection.test.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
- import type { Workspace } from '@scalar/oas-utils/entities';
2
1
  import type { Environment } from '@scalar/oas-utils/entities/environment';
3
2
  import type { SelectedSecuritySchemeUids } from '@scalar/oas-utils/entities/shared';
4
3
  import type { Collection, Operation, RequestExample, Server } from '@scalar/oas-utils/entities/spec';
4
+ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
5
5
  import type { EnvVariable } from '../../../store/active-entities';
6
6
  type __VLS_Props = {
7
7
  collection: Collection;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AAqTA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AASxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAwUF,wBAOG"}
1
+ {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AA4TA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AASrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA+UF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c1435733"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6ea5cf36"]]);
5
5
  export {
6
- m as default
6
+ c as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, computed as p, useId as O, ref as H, watch as N, openBlock as m, createBlock as b, withCtx as v, createElementVNode as d, unref as i, createElementBlock as c, createCommentVNode as w, toDisplayString as I, createVNode as n, withDirectives as t, vShow as s } from "vue";
1
+ import { defineComponent as E, computed as p, useId as O, ref as H, watch as N, openBlock as m, createBlock as b, withCtx as v, createElementVNode as d, unref as t, createElementBlock as c, createCommentVNode as w, toDisplayString as I, createVNode as n, withDirectives as i, vShow as s } from "vue";
2
2
  import { ScalarErrorBoundary as K } from "@scalar/components";
3
3
  import { canMethodHaveBody as f, isDefined as U, REGEX as V } from "@scalar/oas-utils/helpers";
4
4
  import D from "../../../components/SectionFilter.vue.js";
@@ -39,14 +39,14 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
39
39
  "Headers",
40
40
  "Query",
41
41
  "Body"
42
- ], { requestMutators: P, cookies: S, securitySchemes: q } = T(), { layout: u } = W(), k = p(() => {
42
+ ], { requestMutators: q, cookies: P, securitySchemes: S } = T(), { layout: u } = W(), h = p(() => {
43
43
  const e = /* @__PURE__ */ new Set(["All", ...A]);
44
- return l.example.parameters.path.length || e.delete("Variables"), f(l.operation.method ?? "get") || e.delete("Body"), h.value && e.delete("Auth"), [...e];
44
+ return l.example.parameters.path.length || e.delete("Variables"), f(l.operation.method ?? "get") || e.delete("Body"), k.value && e.delete("Auth"), [...e];
45
45
  }), r = p(
46
46
  () => Object.fromEntries(
47
- k.value.map((e) => [e, O()])
47
+ h.value.map((e) => [e, O()])
48
48
  )
49
- ), h = p(
49
+ ), k = p(
50
50
  () => {
51
51
  var e;
52
52
  return u === "modal" && ((e = l.operation.security) == null ? void 0 : e.length) === 0;
@@ -60,9 +60,9 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
60
60
  );
61
61
  const g = (e) => {
62
62
  const o = e.target;
63
- P.edit(l.operation.uid, "summary", o.value);
63
+ q.edit(l.operation.uid, "summary", o.value);
64
64
  }, B = p(
65
- () => (l.workspace.cookies ?? []).map((e) => S[e]).filter(U).filter((e) => e.name).filter(
65
+ () => (l.workspace.cookies ?? []).map((e) => P[e]).filter(U).filter((e) => e.name).filter(
66
66
  (e) => {
67
67
  var o;
68
68
  return $(((o = l.server) == null ? void 0 : o.url) || l.operation.path, e.domain);
@@ -84,8 +84,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
84
84
  }, {
85
85
  title: v(() => [
86
86
  d("div", z, [
87
- i(u) !== "modal" ? (m(), c("label", G)) : w("", !0),
88
- i(u) !== "modal" ? (m(), c("input", {
87
+ t(u) !== "modal" ? (m(), c("label", G)) : w("", !0),
88
+ t(u) !== "modal" ? (m(), c("input", {
89
89
  key: 1,
90
90
  id: "requestname",
91
91
  class: "text-c-1 group-hover-input pl-1.25 md:-ml-1.25 pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded has-[:focus-visible]:outline",
@@ -98,7 +98,7 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
98
98
  modelValue: a.value,
99
99
  "onUpdate:modelValue": o[0] || (o[0] = (R) => a.value = R),
100
100
  filterIds: r.value,
101
- filters: k.value
101
+ filters: h.value
102
102
  }, null, 8, ["modelValue", "filterIds", "filters"])
103
103
  ]),
104
104
  default: v(() => [
@@ -107,8 +107,9 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
107
107
  class: "request-section-content custom-scroll relative flex flex-1 flex-col divide-y",
108
108
  role: a.value === "All" ? "tabpanel" : "none"
109
109
  }, [
110
- e.collection && e.workspace && (i(u) !== "modal" || Object.keys(i(q) ?? {}).length) ? t((m(), b(F, {
110
+ e.collection && e.workspace && (t(u) !== "modal" || Object.keys(t(S) ?? {}).length) ? i((m(), b(F, {
111
111
  key: 0,
112
+ class: "request-section-content-auth",
112
113
  id: r.value.Auth,
113
114
  collection: e.collection,
114
115
  envVariables: e.envVariables,
@@ -123,10 +124,11 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
123
124
  }, null, 8, ["id", "collection", "envVariables", "environment", "operation", "role", "selectedSecuritySchemeUids", "server", "workspace"])), [
124
125
  [
125
126
  s,
126
- !h.value && (a.value === "All" || a.value === "Auth")
127
+ !k.value && (a.value === "All" || a.value === "Auth")
127
128
  ]
128
129
  ]) : w("", !0),
129
- t(n(j, {
130
+ i(n(j, {
131
+ class: "request-section-content-path-params",
130
132
  id: r.value.Variables,
131
133
  envVariables: e.envVariables,
132
134
  environment: e.environment,
@@ -143,7 +145,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
143
145
  (a.value === "All" || a.value === "Variables") && e.example.parameters.path.length
144
146
  ]
145
147
  ]),
146
- t(n(y, {
148
+ i(n(y, {
149
+ class: "request-section-content-cookies",
147
150
  id: r.value.Cookies,
148
151
  envVariables: e.envVariables,
149
152
  environment: e.environment,
@@ -159,7 +162,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
159
162
  }, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "readOnlyEntries", "role", "workspace"]), [
160
163
  [s, a.value === "All" || a.value === "Cookies"]
161
164
  ]),
162
- t(n(y, {
165
+ i(n(y, {
166
+ class: "request-section-content-headers",
163
167
  id: r.value.Headers,
164
168
  envVariables: e.envVariables,
165
169
  environment: e.environment,
@@ -173,7 +177,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
173
177
  }, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
174
178
  [s, a.value === "All" || a.value === "Headers"]
175
179
  ]),
176
- t(n(y, {
180
+ i(n(y, {
181
+ class: "request-section-content-query",
177
182
  id: r.value.Query,
178
183
  envVariables: e.envVariables,
179
184
  environment: e.environment,
@@ -187,7 +192,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
187
192
  }, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
188
193
  [s, a.value === "All" || a.value === "Query"]
189
194
  ]),
190
- t(n(L, {
195
+ i(n(L, {
196
+ class: "request-section-content-body",
191
197
  id: r.value.Body,
192
198
  envVariables: e.envVariables,
193
199
  environment: e.environment,
@@ -199,13 +205,14 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
199
205
  }, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"]), [
200
206
  [
201
207
  s,
202
- e.operation.method && (a.value === "All" || a.value === "Body") && i(f)(e.operation.method)
208
+ e.operation.method && (a.value === "All" || a.value === "Body") && t(f)(e.operation.method)
203
209
  ]
204
210
  ]),
205
211
  o[1] || (o[1] = d("div", { class: "-my-0.25 flex flex-grow" }, null, -1)),
206
- n(i(K), null, {
212
+ n(t(K), null, {
207
213
  default: v(() => [
208
214
  n(M, {
215
+ class: "request-section-content-code-example",
209
216
  collection: e.collection,
210
217
  example: e.example,
211
218
  operation: e.operation,
@@ -1,7 +1,7 @@
1
1
  import type { Environment } from '@scalar/oas-utils/entities/environment';
2
2
  import type { RequestExampleParameter } from '@scalar/oas-utils/entities/spec';
3
3
  import type { Workspace } from '@scalar/oas-utils/entities/workspace';
4
- import type { RouteLocationRaw } from 'vue-router';
4
+ import { type RouteLocationRaw } from 'vue-router';
5
5
  import type { EnvVariable } from '../../../store/active-entities';
6
6
  type __VLS_Props = {
7
7
  items?: (RequestExampleParameter & {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;yBARsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AA+gBxB,wBASG"}
1
+ {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQ9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;yBARsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AAghBxB,wBASG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestTable.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7f27d2f7"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5c4132b8"]]);
5
5
  export {
6
- a as default
6
+ m as default
7
7
  };