@scalar/api-client 2.3.14 → 2.3.16

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 (66) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/components/DataTable/DataTable.vue.d.ts +2 -0
  3. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  4. package/dist/components/DataTable/DataTable.vue.js +17 -15
  5. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  6. package/dist/components/DataTable/DataTableCell.vue.js +6 -9
  7. package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
  8. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +68 -23
  9. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  10. package/dist/components/ImportCollection/ImportNowButton.vue.js +41 -54
  11. package/dist/components/ImportCollection/utils/import-collection.d.ts +12 -0
  12. package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -0
  13. package/dist/components/ImportCollection/utils/import-collection.js +29 -0
  14. package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +6 -0
  15. package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts.map +1 -0
  16. package/dist/components/ImportCollection/utils/workspace-store-is-empty.js +7 -0
  17. package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
  18. package/dist/components/ScalarAsciiArt.vue.js +1 -1
  19. package/dist/components/ScalarAsciiArt.vue2.js +11 -8
  20. package/dist/components/ScalarHotkey.test.d.ts +2 -0
  21. package/dist/components/ScalarHotkey.test.d.ts.map +1 -0
  22. package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
  23. package/dist/components/ScalarHotkey.vue.js +34 -11
  24. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  25. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  26. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  27. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  30. package/dist/views/Request/Request.vue.js +2 -2
  31. package/dist/views/Request/Request.vue2.js +39 -36
  32. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  33. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
  34. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +2 -1
  35. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  36. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  37. package/dist/views/Request/RequestSection/RequestBody.vue2.js +4 -1
  38. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  39. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  40. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +4 -1
  41. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -0
  42. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  43. package/dist/views/Request/RequestSection/RequestParams.vue.js +19 -16
  44. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  45. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  46. package/dist/views/Request/RequestSection/RequestSection.vue2.js +67 -64
  47. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -0
  48. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  49. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  50. package/dist/views/Request/RequestSection/RequestTable.vue2.js +123 -126
  51. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  52. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  53. package/dist/views/Request/RequestSidebar.vue2.js +72 -69
  54. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
  55. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +53 -35
  56. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +5 -0
  57. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  58. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  59. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +56 -59
  60. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  61. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +53 -35
  62. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +5 -1
  63. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  64. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +3 -3
  65. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +40 -34
  66. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AASnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AASrF,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,aAAa,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACzC,CAAC;;;cAG4C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAsNjE,wBAOG"}
1
+ {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":"AAsIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AASnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AASrF,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,aAAa,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACzC,CAAC;;;cAG4C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAsNjE,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Request.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10fa3cd5"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d620d52d"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, computed as U, unref as e, openBlock as r, createElementBlock as f, normalizeClass as k, createElementVNode as P, createVNode as i, isRef as W, withCtx as y, createBlock as u, createCommentVNode as H } from "vue";
1
+ import { defineComponent as E, computed as U, unref as e, openBlock as s, createElementBlock as f, normalizeClass as k, createElementVNode as P, createVNode as c, isRef as W, withCtx as y, createBlock as u, createCommentVNode as H } from "vue";
2
2
  import S from "../../components/EmptyState.vue.js";
3
3
  import L from "../../components/ViewLayout/ViewLayout.vue.js";
4
4
  import N from "../../components/ViewLayout/ViewLayoutContent.vue.js";
@@ -22,19 +22,19 @@ const O = { class: "flex h-full" }, T = {
22
22
  },
23
23
  emits: ["newTab"],
24
24
  setup($) {
25
- const { events: R } = b(), { isSidebarOpen: s } = g(), q = b(), { layout: h } = M(), {
26
- activeCollection: a,
27
- activeExample: n,
28
- activeRequest: m,
29
- activeWorkspace: c,
30
- activeServer: d,
31
- activeEnvVariables: p,
25
+ const { events: R } = b(), { isSidebarOpen: a } = g(), q = b(), { layout: h } = M(), {
26
+ activeCollection: r,
27
+ activeExample: m,
28
+ activeRequest: l,
29
+ activeWorkspace: i,
30
+ activeServer: p,
31
+ activeEnvVariables: d,
32
32
  activeEnvironment: v,
33
33
  activeWorkspaceRequests: x
34
34
  } = I(), { modalState: C, requestHistory: V } = q, w = U(
35
35
  () => V.findLast((o) => {
36
36
  var t;
37
- return o.request.uid === ((t = n.value) == null ? void 0 : t.uid);
37
+ return o.request.uid === ((t = m.value) == null ? void 0 : t.uid);
38
38
  })
39
39
  );
40
40
  function _(o) {
@@ -43,55 +43,58 @@ const O = { class: "flex h-full" }, T = {
43
43
  commandName: "Import from cURL",
44
44
  metaData: {
45
45
  parsedCurl: B(o),
46
- collectionUid: (t = a.value) == null ? void 0 : t.uid
46
+ collectionUid: (t = r.value) == null ? void 0 : t.uid
47
47
  }
48
48
  });
49
49
  }
50
- return (o, t) => e(a) && e(c) ? (r(), f("div", {
50
+ return (o, t) => e(r) && e(i) ? (s(), f("div", {
51
51
  key: 0,
52
52
  class: k(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
53
53
  "!mb-0 !mr-0 !border-0": e(h) === "modal"
54
54
  }])
55
55
  }, [
56
56
  P("div", O, [
57
- e(m) ? (r(), f("div", T, [
58
- i(A, {
59
- modelValue: e(s),
60
- "onUpdate:modelValue": t[0] || (t[0] = (l) => W(s) ? s.value = l : null),
61
- collection: e(a),
62
- envVariables: e(p),
57
+ e(l) ? (s(), f("div", T, [
58
+ c(A, {
59
+ modelValue: e(a),
60
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => W(a) ? a.value = n : null),
61
+ collection: e(r),
62
+ envVariables: e(d),
63
63
  environment: e(v),
64
- operation: e(m),
65
- server: e(d),
66
- workspace: e(c),
64
+ operation: e(l),
65
+ server: e(p),
66
+ workspace: e(i),
67
67
  onHideModal: t[1] || (t[1] = () => e(C).hide()),
68
68
  onImportCurl: _
69
69
  }, null, 8, ["modelValue", "collection", "envVariables", "environment", "operation", "server", "workspace"]),
70
- i(L, null, {
70
+ c(L, null, {
71
71
  default: y(() => [
72
- e(n) ? (r(), u(N, {
72
+ e(m) ? (s(), u(N, {
73
73
  key: 0,
74
- class: k(["flex-1", [e(s) ? "sidebar-active-hide-layout" : ""]])
74
+ class: k(["flex-1", [e(a) ? "sidebar-active-hide-layout" : ""]])
75
75
  }, {
76
76
  default: y(() => {
77
- var l;
77
+ var n;
78
78
  return [
79
- i(z, {
80
- collection: e(a),
81
- envVariables: e(p),
79
+ c(z, {
80
+ collection: e(r),
81
+ envVariables: e(d),
82
82
  environment: e(v),
83
- example: e(n),
83
+ example: e(m),
84
84
  invalidParams: o.invalidParams,
85
- operation: e(m),
85
+ operation: e(l),
86
86
  selectedSecuritySchemeUids: o.selectedSecuritySchemeUids,
87
- server: e(d),
88
- workspace: e(c)
87
+ server: e(p),
88
+ workspace: e(i)
89
89
  }, null, 8, ["collection", "envVariables", "environment", "example", "invalidParams", "operation", "selectedSecuritySchemeUids", "server", "workspace"]),
90
- i(D, {
90
+ c(D, {
91
+ collection: e(r),
92
+ operation: e(l),
93
+ workspace: e(i),
91
94
  requestResult: o.requestResult,
92
95
  numWorkspaceRequests: e(x).length,
93
- response: (l = w.value) == null ? void 0 : l.response
94
- }, null, 8, ["requestResult", "numWorkspaceRequests", "response"])
96
+ response: (n = w.value) == null ? void 0 : n.response
97
+ }, null, 8, ["collection", "operation", "workspace", "requestResult", "numWorkspaceRequests", "response"])
95
98
  ];
96
99
  }),
97
100
  _: 1
@@ -99,9 +102,9 @@ const O = { class: "flex h-full" }, T = {
99
102
  ]),
100
103
  _: 1
101
104
  })
102
- ])) : (r(), u(S, { key: 1 }))
105
+ ])) : (s(), u(S, { key: 1 }))
103
106
  ])
104
- ], 2)) : (r(), u(S, { key: 1 }));
107
+ ], 2)) : (s(), u(S, { key: 1 }));
105
108
  }
106
109
  });
107
110
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AAiNA,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;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,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,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAqNF,wBAOG"}
1
+ {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AAkNA,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;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,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,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAqNF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthDataTable.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ e(t, [["__scopeId", "data-v-efc402ef"]]);
3
+ import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-8e70044b"]]);
5
5
  export {
6
- r as default
6
+ m as default
7
7
  };
@@ -61,7 +61,8 @@ const _ = {
61
61
  m.value.length ? (o(), C(i(N), {
62
62
  key: 1,
63
63
  class: v(["flex-1", e.layout === "reference" && "border-0"]),
64
- columns: [""]
64
+ columns: [""],
65
+ presentational: ""
65
66
  }, {
66
67
  default: V(() => [
67
68
  h(M, {
@@ -1 +1 @@
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
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAunBA,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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8bf1b90e"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e20988de"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -269,7 +269,10 @@ const me = {
269
269
  H(F(e.title), 1)
270
270
  ]),
271
271
  default: m(() => [
272
- c(re, { columns: [""] }, {
272
+ c(re, {
273
+ columns: [""],
274
+ presentational: ""
275
+ }, {
273
276
  default: m(() => [
274
277
  c(j, null, {
275
278
  default: m(() => [
@@ -1 +1 @@
1
- {"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"AAwRA,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;;AA2WF,wBAOG"}
1
+ {"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"AA0RA,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;;AA2WF,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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fdb4baba"]]);
3
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-eca26cbf"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -143,7 +143,10 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
143
143
  ])
144
144
  ]),
145
145
  default: c(() => [
146
- i(I, { columns: [""] }, {
146
+ i(I, {
147
+ columns: [""],
148
+ presentational: ""
149
+ }, {
147
150
  default: c(() => [
148
151
  i(O, null, {
149
152
  default: c(() => [
@@ -9,6 +9,7 @@ type __VLS_Props = {
9
9
  envVariables: EnvVariable[];
10
10
  workspace: Workspace;
11
11
  title: string;
12
+ label: string;
12
13
  paramKey: keyof RequestExample['parameters'];
13
14
  readOnlyEntries?: {
14
15
  key: string;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AAuOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAIlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,eAAe,CAAC,EAAE;QAChB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,OAAO,CAAA;QAChB,KAAK,EAAE,gBAAgB,CAAA;KACxB,EAAE,CAAA;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AAoVF,wBAOG"}
1
+ {"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AA0OA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAIlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,eAAe,CAAC,EAAE;QAChB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,OAAO,CAAA;QAChB,KAAK,EAAE,gBAAgB,CAAA;KACxB,EAAE,CAAA;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AAoVF,wBAOG"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as O, computed as m, onMounted as T, ref as S, watch as N, openBlock as c, createBlock as d, withCtx as s, createTextVNode as b, toDisplayString as k, createElementVNode as i, unref as h, createVNode as w, withModifiers as z, createCommentVNode as P, normalizeClass as A, nextTick as R } from "vue";
1
+ import { defineComponent as O, computed as m, onMounted as T, ref as S, watch as N, openBlock as c, createBlock as d, withCtx as s, createTextVNode as g, toDisplayString as k, createElementVNode as i, unref as h, createVNode as w, withModifiers as z, createCommentVNode as P, normalizeClass as A, nextTick as R } from "vue";
2
2
  import { ScalarTooltip as B, ScalarButton as M } from "@scalar/components";
3
- import { requestExampleParametersSchema as x } from "@scalar/oas-utils/entities/spec";
3
+ import { requestExampleParametersSchema as V } from "@scalar/oas-utils/entities/spec";
4
4
  import W from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
5
- import V from "./RequestTable.vue.js";
5
+ import C from "./RequestTable.vue.js";
6
6
  import { useWorkspace as D } from "../../../store/store.js";
7
7
  const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100" }, U = { class: "sr-only" }, Z = /* @__PURE__ */ O({
8
8
  __name: "RequestParams",
@@ -12,6 +12,7 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
12
12
  envVariables: {},
13
13
  workspace: {},
14
14
  title: {},
15
+ label: {},
15
16
  paramKey: {},
16
17
  readOnlyEntries: { default: () => [] },
17
18
  invalidParams: {}
@@ -20,26 +21,26 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
20
21
  const { requestExampleMutators: r } = D(), l = m(() => t.example.parameters[t.paramKey] ?? []);
21
22
  T(() => v());
22
23
  const o = () => {
23
- const e = x.parse({ enabled: !1 }), a = [...l.value, e];
24
+ const e = V.parse({ enabled: !1 }), a = [...l.value, e];
24
25
  r.edit(t.example.uid, `parameters.${t.paramKey}`, a);
25
- }, u = S(null), C = (e, a, y) => {
26
+ }, u = S(null), x = (e, a, b) => {
26
27
  const p = l.value;
27
28
  if (p.length > e) {
28
29
  const n = [...p];
29
30
  if (!n[e])
30
31
  return;
31
- n[e] = { ...n[e], [a]: y }, (n[e].key !== "" || n[e].value !== "") && (n[e].enabled = !0), n[e].key === "" && n[e].value === "" && n.splice(e, 1), r.edit(
32
+ n[e] = { ...n[e], [a]: b }, (n[e].key !== "" || n[e].value !== "") && (n[e].enabled = !0), n[e].key === "" && n[e].value === "" && n.splice(e, 1), r.edit(
32
33
  t.example.uid,
33
34
  `parameters.${t.paramKey}`,
34
35
  n
35
36
  );
36
37
  } else {
37
- const n = [x.parse({ [a]: y })];
38
+ const n = [V.parse({ [a]: b })];
38
39
  r.edit(t.example.uid, `parameters.${t.paramKey}`, n), R(() => {
39
- var g;
40
+ var y;
40
41
  if (!u.value)
41
42
  return;
42
- (g = u.value.querySelectorAll("input")[a === "key" ? 0 : 1]) == null || g.focus();
43
+ (y = u.value.querySelectorAll("input")[a === "key" ? 0 : 1]) == null || y.focus();
43
44
  });
44
45
  }
45
46
  e === p.length - 1 && o();
@@ -79,7 +80,7 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
79
80
  itemCount: K.value
80
81
  }, {
81
82
  title: s(() => [
82
- b(k(e.title), 1)
83
+ g(k(e.title), 1)
83
84
  ]),
84
85
  actions: s(() => [
85
86
  i("div", G, [
@@ -96,7 +97,7 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
96
97
  onClick: z(E, ["stop"])
97
98
  }, {
98
99
  default: s(() => [
99
- a[0] || (a[0] = b(" Clear ")),
100
+ a[0] || (a[0] = g(" Clear ")),
100
101
  i("span", U, "All " + k(e.title), 1)
101
102
  ]),
102
103
  _: 1
@@ -118,7 +119,7 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
118
119
  ref_key: "tableWrapperRef",
119
120
  ref: u
120
121
  }, [
121
- f.value ? (c(), d(V, {
122
+ f.value ? (c(), d(C, {
122
123
  key: 0,
123
124
  class: A(["flex-1", {
124
125
  "bg-mix-transparent bg-mix-amount-95 bg-c-3": f.value
@@ -130,19 +131,21 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
130
131
  isGlobal: "",
131
132
  isReadOnly: "",
132
133
  items: e.readOnlyEntries,
134
+ label: e.label,
133
135
  workspace: e.workspace
134
- }, null, 8, ["class", "envVariables", "environment", "invalidParams", "items", "workspace"])) : P("", !0),
135
- w(V, {
136
+ }, null, 8, ["class", "envVariables", "environment", "invalidParams", "items", "label", "workspace"])) : P("", !0),
137
+ w(C, {
136
138
  class: "flex-1",
137
139
  columns: ["32px", "", ""],
138
140
  envVariables: e.envVariables,
139
141
  environment: e.environment,
140
142
  invalidParams: e.invalidParams,
141
143
  items: l.value,
144
+ label: e.label,
142
145
  workspace: e.workspace,
143
146
  onToggleRow: q,
144
- onUpdateRow: C
145
- }, null, 8, ["envVariables", "environment", "invalidParams", "items", "workspace"])
147
+ onUpdateRow: x
148
+ }, null, 8, ["envVariables", "environment", "invalidParams", "items", "label", "workspace"])
146
149
  ], 512)
147
150
  ]),
148
151
  _: 1
@@ -1 +1 @@
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;;AAgVF,wBAOG"}
1
+ {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AAiUA,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;;AAmVF,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-fde565f2"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d51a3a93"]]);
5
5
  export {
6
6
  m as default
7
7
  };