@scalar/api-client 2.5.5 → 2.5.7

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 (37) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +60 -57
  5. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -4
  6. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  7. package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
  8. package/dist/components/Server/ServerSelector.vue.js +13 -13
  9. package/dist/layouts/App/create-api-client-app.d.ts +21 -20
  10. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  11. package/dist/layouts/Modal/create-api-client-modal.d.ts +42 -40
  12. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  13. package/dist/layouts/Web/create-api-client-web.d.ts +21 -20
  14. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  15. package/dist/libs/create-client.d.ts +21 -20
  16. package/dist/libs/create-client.d.ts.map +1 -1
  17. package/dist/libs/create-client.js +96 -92
  18. package/dist/libs/find-request.d.ts +2 -2
  19. package/dist/libs/find-request.d.ts.map +1 -1
  20. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  21. package/dist/libs/send-request/create-request-operation.js +26 -26
  22. package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
  23. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  24. package/dist/store/active-entities.d.ts +2 -2
  25. package/dist/store/active-entities.d.ts.map +1 -1
  26. package/dist/store/requests.d.ts +22 -22
  27. package/dist/store/requests.d.ts.map +1 -1
  28. package/dist/store/store.d.ts +20 -20
  29. package/dist/store/store.d.ts.map +1 -1
  30. package/dist/style.css +1 -1
  31. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
  32. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +5 -5
  33. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  35. package/dist/views/Request/RequestSection/RequestBody.vue2.js +43 -37
  36. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  37. package/package.json +16 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.5.7
4
+
5
+ ### Patch Changes
6
+
7
+ - a5d010c: feat: implement deleteRow function for RequestBody form data
8
+ - b12cd8e: fix: updates introduction auth table style
9
+ - @scalar/components@0.14.9
10
+ - @scalar/use-codemirror@0.12.10
11
+
12
+ ## 2.5.6
13
+
14
+ ### Patch Changes
15
+
16
+ - 282129b: fix: safely create a new response when there is no content
17
+ - a5b399d: fix: updates address bar background style
18
+ - 4156f1d: Expand workspace store integration
19
+ - 711b435: fix: re-create client store on document change
20
+ - Updated dependencies [2974dd6]
21
+ - Updated dependencies [221e35f]
22
+ - Updated dependencies [166e298]
23
+ - Updated dependencies [b6ed440]
24
+ - Updated dependencies [4156f1d]
25
+ - Updated dependencies [f823d45]
26
+ - Updated dependencies [177438d]
27
+ - Updated dependencies [37c90b8]
28
+ - @scalar/oas-utils@0.4.5
29
+ - @scalar/openapi-types@0.3.3
30
+ - @scalar/helpers@0.0.4
31
+ - @scalar/types@0.2.3
32
+ - @scalar/openapi-parser@0.17.0
33
+ - @scalar/snippetz@0.3.1
34
+ - @scalar/components@0.14.8
35
+ - @scalar/import@0.4.10
36
+ - @scalar/icons@0.4.3
37
+ - @scalar/postman-to-openapi@0.3.8
38
+ - @scalar/themes@0.13.3
39
+ - @scalar/draggable@0.2.0
40
+ - @scalar/object-utils@1.2.1
41
+ - @scalar/use-codemirror@0.12.9
42
+ - @scalar/use-hooks@0.2.2
43
+ - @scalar/use-toasts@0.8.0
44
+ - @scalar/use-tooltip@1.1.0
45
+
3
46
  ## 2.5.5
4
47
 
5
48
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"AAmXA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;AA+bJ,wBAQG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"AAqXA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;AAkcJ,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-2ba26325"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e050d490"]]);
5
5
  export {
6
- m as default
6
+ d as default
7
7
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as z, useId as I, ref as i, watch as L, createElementBlock as U, openBlock as k, unref as r, createElementVNode as l, createVNode as u, normalizeStyle as A, normalizeClass as M, createBlock as $, createCommentVNode as H, withCtx as N, toDisplayString as b } from "vue";
2
- import { ScalarButton as T, ScalarIcon as D } from "@scalar/components";
3
- import { REQUEST_METHODS as O } from "@scalar/oas-utils/helpers";
4
- import P from "../CodeInput/CodeInput.vue.js";
5
- import K from "../HttpMethod/HttpMethod.vue.js";
6
- import Q from "./AddressBarHistory.vue.js";
7
- import W from "../Server/ServerDropdown.vue.js";
8
- import { useWorkspace as j } from "../../store/store.js";
9
- import { useLayout as F } from "../../hooks/useLayout.js";
10
- const G = ["id"], J = { class: "address-bar-bg-states text-xxs group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg p-0.75 lg:order-none lg:max-w-[580px] lg:min-w-[580px] xl:max-w-[720px] xl:min-w-[720px]" }, X = { class: "pointer-events-none absolute top-0 left-0 block h-full w-full overflow-hidden rounded-lg border" }, Y = { class: "z-context-plus flex gap-1" }, Z = { class: "scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full bg-blend-normal" }, _ = {
1
+ import { defineComponent as I, useId as z, ref as i, watch as L, createElementBlock as U, openBlock as k, unref as a, createElementVNode as l, createVNode as u, normalizeStyle as $, createBlock as A, createCommentVNode as M, withCtx as H, toDisplayString as b } from "vue";
2
+ import { ScalarButton as N, ScalarIcon as T } from "@scalar/components";
3
+ import { REQUEST_METHODS as D } from "@scalar/oas-utils/helpers";
4
+ import O from "../CodeInput/CodeInput.vue.js";
5
+ import P from "../HttpMethod/HttpMethod.vue.js";
6
+ import K from "./AddressBarHistory.vue.js";
7
+ import Q from "../Server/ServerDropdown.vue.js";
8
+ import { useWorkspace as W } from "../../store/store.js";
9
+ import { useLayout as j } from "../../hooks/useLayout.js";
10
+ const F = ["id"], G = { class: "address-bar-bg-states text-xxs group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg p-0.75 lg:order-none lg:max-w-[580px] lg:min-w-[580px] xl:max-w-[720px] xl:min-w-[720px]" }, J = { class: "pointer-events-none absolute top-0 left-0 block h-full w-full overflow-hidden rounded-lg border" }, X = { class: "z-context-plus flex gap-1" }, Y = { class: "scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full bg-blend-normal" }, Z = {
11
11
  "aria-hidden": "true",
12
12
  class: "inline-flex items-center gap-1"
13
- }, ee = { class: "sr-only" }, ue = /* @__PURE__ */ z({
13
+ }, _ = { class: "sr-only" }, de = /* @__PURE__ */ I({
14
14
  __name: "AddressBar",
15
15
  props: {
16
16
  collection: {},
@@ -22,7 +22,7 @@ const G = ["id"], J = { class: "address-bar-bg-states text-xxs group relative or
22
22
  },
23
23
  emits: ["importCurl"],
24
24
  setup(n) {
25
- const p = I(), { requestMutators: m, events: f } = j(), { layout: v } = F(), h = i(null), w = i(null), B = (e) => {
25
+ const p = z(), { requestMutators: m, events: c } = W(), { layout: v } = j(), h = i(null), x = i(null), B = (e) => {
26
26
  n.operation.path !== e && m.edit(n.operation.uid, "path", e);
27
27
  };
28
28
  L(
@@ -31,81 +31,84 @@ const G = ["id"], J = { class: "address-bar-bg-states text-xxs group relative or
31
31
  e && B(e);
32
32
  }
33
33
  );
34
- const t = i(100), x = i(0), a = i(!1), s = i();
35
- function C() {
36
- a.value ? t.value -= (t.value - 15) / 60 : t.value -= x.value / 20, t.value <= 0 && (clearInterval(s.value), s.value = void 0, t.value = 100, a.value = !1);
37
- }
34
+ const t = i(100), w = i(0), r = i(!1), s = i();
38
35
  function y() {
39
- s.value || (a.value = !0, s.value = setInterval(C, 20));
36
+ r.value ? t.value -= (t.value - 15) / 60 : t.value -= w.value / 20, t.value <= 0 && (clearInterval(s.value), s.value = void 0, t.value = 100, r.value = !1);
37
+ }
38
+ function C() {
39
+ s.value || (r.value = !0, s.value = setInterval(y, 20));
40
40
  }
41
41
  function R() {
42
- x.value = t.value, a.value = !1;
42
+ w.value = t.value, r.value = !1;
43
43
  }
44
44
  function q() {
45
- clearInterval(s.value), s.value = void 0, t.value = 100, a.value = !1;
45
+ clearInterval(s.value), s.value = void 0, t.value = 100, r.value = !1;
46
46
  }
47
- f.requestStatus.on((e) => {
48
- e === "start" && y(), e === "stop" && R(), e === "abort" && q();
49
- }), f.focusAddressBar.on(() => {
47
+ c.requestStatus.on((e) => {
48
+ e === "start" && C(), e === "stop" && R(), e === "abort" && q();
49
+ }), c.focusAddressBar.on(() => {
50
50
  var e, o, d;
51
- v === "modal" ? (o = (e = w.value) == null ? void 0 : e.$el) == null || o.focus() : (d = h.value) == null || d.focus();
51
+ v === "modal" ? (o = (e = x.value) == null ? void 0 : e.$el) == null || o.focus() : (d = h.value) == null || d.focus();
52
52
  });
53
53
  function S(e) {
54
54
  m.edit(n.operation.uid, "method", e);
55
55
  }
56
- function E() {
56
+ function V() {
57
57
  const { method: e } = n.operation;
58
- return O[e].backgroundColor;
58
+ return D[e].colorVar;
59
59
  }
60
60
  function g() {
61
- a.value || (a.value = !0, f.executeRequest.emit({ requestUid: n.operation.uid }));
61
+ r.value || (r.value = !0, c.executeRequest.emit({ requestUid: n.operation.uid }));
62
62
  }
63
- f.hotKeys.on((e) => {
63
+ c.hotKeys.on((e) => {
64
64
  var o;
65
65
  e != null && e.focusAddressBar && ((o = h.value) == null || o.focus()), e != null && e.executeRequest && g();
66
66
  });
67
- function V(e) {
67
+ function E(e) {
68
68
  m.edit(n.operation.uid, "path", e);
69
69
  }
70
70
  return (e, o) => {
71
71
  var d;
72
72
  return k(), U("div", {
73
- id: r(p),
73
+ id: a(p),
74
74
  class: "scalar-address-bar order-last flex h-(--scalar-address-bar-height) w-full [--scalar-address-bar-height:32px] lg:order-none lg:w-auto"
75
75
  }, [
76
- l("div", J, [
77
- l("div", X, [
76
+ l("div", G, [
77
+ l("div", J, [
78
78
  l("div", {
79
- class: M(["absolute top-0 left-0 z-[1002] h-full w-full", E()]),
80
- style: A({ transform: `translate3d(-${t.value}%,0,0)` })
81
- }, null, 6)
79
+ class: "absolute top-0 left-0 z-[1002] h-full w-full",
80
+ style: $({
81
+ backgroundColor: `color-mix(in srgb, transparent 90%, ${V()})`,
82
+ transform: `translate3d(-${t.value}%,0,0)`
83
+ })
84
+ }, null, 4)
82
85
  ]),
83
- l("div", Y, [
84
- u(K, {
85
- isEditable: r(v) !== "modal",
86
+ l("div", X, [
87
+ u(P, {
88
+ isEditable: a(v) !== "modal",
86
89
  isSquare: "",
87
90
  method: e.operation.method,
88
91
  teleport: "",
89
92
  onChange: S
90
93
  }, null, 8, ["isEditable", "method"])
91
94
  ]),
92
- l("div", Z, [
93
- e.collection.servers.length ? (k(), $(r(W), {
95
+ l("div", Y, [
96
+ e.collection.servers.length ? (k(), A(a(Q), {
94
97
  key: 0,
95
98
  collection: e.collection,
96
99
  layout: "client",
97
100
  operation: e.operation,
98
101
  server: e.server,
99
- target: r(p)
100
- }, null, 8, ["collection", "operation", "server", "target"])) : H("", !0),
102
+ target: a(p)
103
+ }, null, 8, ["collection", "operation", "server", "target"])) : M("", !0),
101
104
  o[1] || (o[1] = l("div", { class: "fade-left" }, null, -1)),
102
- u(P, {
105
+ u(O, {
103
106
  ref_key: "addressBarRef",
104
107
  ref: h,
105
108
  "aria-label": "Path",
106
109
  class: "min-w-fit outline-none",
107
110
  disableCloseBrackets: "",
108
- disabled: r(v) === "modal",
111
+ disabled: a(v) === "modal",
109
112
  disableEnter: "",
110
113
  disableTabIndent: "",
111
114
  emitOnBlur: !1,
@@ -116,44 +119,44 @@ const G = ["id"], J = { class: "address-bar-bg-states text-xxs group relative or
116
119
  placeholder: (d = e.server) != null && d.uid && e.collection.servers.includes(e.server.uid) ? "" : "Enter a URL or cURL command",
117
120
  server: "",
118
121
  workspace: e.workspace,
119
- onCurl: o[0] || (o[0] = (c) => e.$emit("importCurl", c)),
122
+ onCurl: o[0] || (o[0] = (f) => e.$emit("importCurl", f)),
120
123
  onSubmit: g,
121
- "onUpdate:modelValue": V
124
+ "onUpdate:modelValue": E
122
125
  }, null, 8, ["disabled", "envVariables", "environment", "modelValue", "placeholder", "workspace"]),
123
126
  o[2] || (o[2] = l("div", { class: "fade-right" }, null, -1))
124
127
  ]),
125
- u(Q, {
128
+ u(K, {
126
129
  operation: e.operation,
127
- target: r(p)
130
+ target: a(p)
128
131
  }, null, 8, ["operation", "target"]),
129
- u(r(T), {
132
+ u(a(N), {
130
133
  ref_key: "sendButtonRef",
131
- ref: w,
134
+ ref: x,
132
135
  class: "z-context-plus relative h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold",
133
- disabled: a.value,
136
+ disabled: r.value,
134
137
  onClick: g
135
138
  }, {
136
- default: N(() => {
137
- var c;
139
+ default: H(() => {
140
+ var f;
138
141
  return [
139
- l("span", _, [
140
- u(r(D), {
142
+ l("span", Z, [
143
+ u(a(T), {
141
144
  class: "relative shrink-0 fill-current",
142
145
  icon: "Play",
143
146
  size: "xs"
144
147
  }),
145
148
  o[3] || (o[3] = l("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
146
149
  ]),
147
- l("span", ee, " Send " + b(e.operation.method) + " request to " + b(((c = e.server) == null ? void 0 : c.url) ?? "") + b(e.operation.path), 1)
150
+ l("span", _, " Send " + b(e.operation.method) + " request to " + b(((f = e.server) == null ? void 0 : f.url) ?? "") + b(e.operation.path), 1)
148
151
  ];
149
152
  }),
150
153
  _: 1
151
154
  }, 8, ["disabled"])
152
155
  ])
153
- ], 8, G);
156
+ ], 8, F);
154
157
  };
155
158
  }
156
159
  });
157
160
  export {
158
- ue as default
161
+ de as default
159
162
  };
@@ -101,16 +101,16 @@ export declare const PaletteComponents: {
101
101
  summary?: string | undefined;
102
102
  externalValue?: string | undefined;
103
103
  }> | undefined;
104
- schema?: unknown;
105
104
  content?: unknown;
106
105
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
107
106
  explode?: boolean | undefined;
107
+ schema?: unknown;
108
108
  }[] | undefined;
109
109
  requestBody?: any;
110
110
  responses?: Record<string, any> | undefined;
111
111
  callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
112
112
  'x-scalar-stability'?: unknown;
113
- method?: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace" | undefined;
113
+ method?: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect" | undefined;
114
114
  'x-post-response'?: string | undefined;
115
115
  'x-codeSamples'?: unknown;
116
116
  'x-code-samples'?: unknown;
@@ -157,16 +157,16 @@ export declare const PaletteComponents: {
157
157
  summary?: string | undefined;
158
158
  externalValue?: string | undefined;
159
159
  }> | undefined;
160
- schema?: unknown;
161
160
  content?: unknown;
162
161
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
163
162
  explode?: boolean | undefined;
163
+ schema?: unknown;
164
164
  }[] | undefined;
165
165
  requestBody?: any;
166
166
  responses?: Record<string, any> | undefined;
167
167
  callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
168
168
  'x-scalar-stability'?: unknown;
169
- method?: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace" | undefined;
169
+ method?: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect" | undefined;
170
170
  'x-post-response'?: string | undefined;
171
171
  'x-codeSamples'?: unknown;
172
172
  'x-code-samples'?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AA0eA;;;;GAIG;;AACH,wBAmjBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBAnlB9B,CAvTqC;qBAuTrC,CAtTY;;;;;;;mBAsTZ,CAvTqC;qBAuTrC,CAtTY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAiuB4F,CAAA;;;;;;;;;;;;;;;+BAQzB,CAAC;4BAAuC,CAAA;2BAAsC,CAAC;8BAA6B,CAAC;4BAC5J,CAAA;6BAAiD,CAAA;+BAA8B,CAAC;qCAA+C,CAAC;;0BAC7I,CAAC;2BAA0B,CAAC;yBAAwB,CAAC;2BAG7D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAb4F,CAAA;;;;;;;;;;;;;;;+BAQzB,CAAC;4BAAuC,CAAA;2BAAsC,CAAC;8BAA6B,CAAC;4BAC5J,CAAA;6BAAiD,CAAA;+BAA8B,CAAC;qCAA+C,CAAC;;0BAC7I,CAAC;2BAA0B,CAAC;yBAAwB,CAAC;2BAG7D,CAAC;;;;;;;;;;;;;;;;;;;;CAoKF,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AA0eA;;;;GAIG;;AACH,wBAmjBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBAnlB9B,CAvTqC;qBAuTrC,CAtTY;;;;;;;mBAsTZ,CAvTqC;qBAuTrC,CAtTY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAiuB4F,CAAA;;;;;;;;;;;;;;;+BAQzB,CAAC;4BAAuC,CAAA;2BAAsC,CAAC;8BAA6B,CAAC;4BAC5J,CAAA;6BAAiD,CAAA;+BAA8B,CAAC;qCAA+C,CAAC;;2BAC5I,CAAC;yBAAwB,CAAC;2BAEJ,CAAC;0BAEtC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAdkG,CAAA;;;;;;;;;;;;;;;+BAQzB,CAAC;4BAAuC,CAAA;2BAAsC,CAAC;8BAA6B,CAAC;4BAC5J,CAAA;6BAAiD,CAAA;+BAA8B,CAAC;qCAA+C,CAAC;;2BAC5I,CAAC;yBAAwB,CAAC;2BAEJ,CAAC;0BAEtC,CAAC;;;;;;;;;;;;;;;;;;;;CAmKI,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerSelector.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAYzE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;AA0LF,wBAOG"}
1
+ {"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerSelector.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAYzE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;AA4LF,wBAOG"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as w, computed as n, watch as h, createBlock as y, createElementBlock as k, openBlock as m, unref as i, withCtx as p, createVNode as x, createElementVNode as s, toDisplayString as S } from "vue";
2
- import { ScalarListbox as U, ScalarButton as b, ScalarIcon as V } from "@scalar/components";
1
+ import { defineComponent as w, computed as n, watch as h, createBlock as y, createElementBlock as b, openBlock as m, unref as i, withCtx as g, createVNode as p, createElementVNode as s, toDisplayString as x } from "vue";
2
+ import { ScalarListbox as k, ScalarButton as U, ScalarIcon as V } from "@scalar/components";
3
3
  import { useWorkspace as B } from "../../store/store.js";
4
4
  const W = { class: "overflow-x-auto" }, z = {
5
5
  key: 1,
@@ -12,8 +12,8 @@ const W = { class: "overflow-x-auto" }, z = {
12
12
  target: {}
13
13
  },
14
14
  emits: ["updateServer"],
15
- setup(l, { emit: g }) {
16
- const u = g, { servers: o, collectionMutators: c } = B(), a = n(
15
+ setup(l, { emit: S }) {
16
+ const u = S, { servers: o, collectionMutators: c } = B(), a = n(
17
17
  () => {
18
18
  var t;
19
19
  return (t = l.collection) == null ? void 0 : t.servers.map((e) => {
@@ -53,7 +53,7 @@ const W = { class: "overflow-x-auto" }, z = {
53
53
  var t, e, r;
54
54
  return (e = (t = l.server) == null ? void 0 : t.url) != null && e.endsWith("/") ? l.server.url.slice(0, -1) : ((r = l.server) == null ? void 0 : r.url) || "";
55
55
  });
56
- return (t, e) => a.value.length > 1 ? (m(), y(i(U), {
56
+ return (t, e) => a.value.length > 1 ? (m(), y(i(k), {
57
57
  key: 0,
58
58
  modelValue: d.value,
59
59
  "onUpdate:modelValue": e[0] || (e[0] = (r) => d.value = r),
@@ -63,15 +63,15 @@ const W = { class: "overflow-x-auto" }, z = {
63
63
  target: t.target,
64
64
  teleport: `#${t.target}`
65
65
  }, {
66
- default: p(() => [
67
- x(i(b), {
68
- class: "text-c-1 h-auto w-full justify-start gap-0.75 overflow-x-auto rounded-b-lg px-3 py-1.5 text-xs font-normal whitespace-nowrap -outline-offset-1 lg:text-sm",
66
+ default: g(() => [
67
+ p(i(U), {
68
+ class: "bg-b-1 text-c-1 h-auto w-full justify-start gap-0.75 overflow-x-auto rounded-t-none rounded-b-lg px-3 py-1.5 text-xs font-normal whitespace-nowrap -outline-offset-1 lg:text-sm",
69
69
  variant: "ghost"
70
70
  }, {
71
- default: p(() => [
71
+ default: g(() => [
72
72
  e[1] || (e[1] = s("span", { class: "sr-only" }, "Server:", -1)),
73
- s("span", W, S(v.value), 1),
74
- x(i(V), {
73
+ s("span", W, x(v.value), 1),
74
+ p(i(V), {
75
75
  class: "text-c-2",
76
76
  icon: "ChevronDown",
77
77
  size: "sm"
@@ -81,9 +81,9 @@ const W = { class: "overflow-x-auto" }, z = {
81
81
  })
82
82
  ]),
83
83
  _: 1
84
- }, 8, ["modelValue", "options", "target", "teleport"])) : (m(), k("div", z, [
84
+ }, 8, ["modelValue", "options", "target", "teleport"])) : (m(), b("div", z, [
85
85
  e[2] || (e[2] = s("span", { class: "sr-only" }, "Server:", -1)),
86
- s("span", C, S(v.value), 1)
86
+ s("span", C, x(v.value), 1)
87
87
  ]));
88
88
  }
89
89
  });
@@ -4,6 +4,7 @@ import type { ApiClientConfiguration } from '@scalar/types/api-reference';
4
4
  */
5
5
  export declare const createApiClientApp: (el: HTMLElement | null, configuration?: Partial<ApiClientConfiguration>, mountOnInitialize?: boolean, router?: import("vue-router").Router) => Promise<{
6
6
  app: import("vue").App<Element>;
7
+ resetStore: () => void;
7
8
  updateConfig: (_newConfig: Partial<ApiClientConfiguration>) => Promise<void>;
8
9
  updateServer: (serverUrl: string) => void;
9
10
  onUpdateServer: (callback: (url: string) => void) => void;
@@ -243,7 +244,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
243
244
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
244
245
  servers: (string & import("zod").BRAND<"server">)[];
245
246
  examples: (string & import("zod").BRAND<"example">)[];
246
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
247
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
247
248
  description?: string | undefined;
248
249
  summary?: string | undefined;
249
250
  externalDocs?: {
@@ -268,10 +269,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
268
269
  summary?: string | undefined;
269
270
  externalValue?: string | undefined;
270
271
  }> | undefined;
271
- schema?: unknown;
272
272
  content?: unknown;
273
273
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
274
274
  explode?: boolean | undefined;
275
+ schema?: unknown;
275
276
  }[] | undefined;
276
277
  requestBody?: any;
277
278
  responses?: Record<string, any> | undefined;
@@ -1232,7 +1233,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1232
1233
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
1233
1234
  servers: (string & import("zod").BRAND<"server">)[];
1234
1235
  examples: (string & import("zod").BRAND<"example">)[];
1235
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1236
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
1236
1237
  description?: string | undefined;
1237
1238
  summary?: string | undefined;
1238
1239
  externalDocs?: {
@@ -1257,10 +1258,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1257
1258
  summary?: string | undefined;
1258
1259
  externalValue?: string | undefined;
1259
1260
  }> | undefined;
1260
- schema?: unknown;
1261
1261
  content?: unknown;
1262
1262
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1263
1263
  explode?: boolean | undefined;
1264
+ schema?: unknown;
1264
1265
  }[] | undefined;
1265
1266
  requestBody?: any;
1266
1267
  responses?: Record<string, any> | undefined;
@@ -1291,7 +1292,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1291
1292
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
1292
1293
  servers: (string & import("zod").BRAND<"server">)[];
1293
1294
  examples: (string & import("zod").BRAND<"example">)[];
1294
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1295
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
1295
1296
  description?: string | undefined;
1296
1297
  summary?: string | undefined;
1297
1298
  externalDocs?: {
@@ -1316,10 +1317,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1316
1317
  summary?: string | undefined;
1317
1318
  externalValue?: string | undefined;
1318
1319
  }> | undefined;
1319
- schema?: unknown;
1320
1320
  content?: unknown;
1321
1321
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1322
1322
  explode?: boolean | undefined;
1323
+ schema?: unknown;
1323
1324
  }[] | undefined;
1324
1325
  requestBody?: any;
1325
1326
  responses?: Record<string, any> | undefined;
@@ -1351,7 +1352,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1351
1352
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
1352
1353
  servers: (string & import("zod").BRAND<"server">)[];
1353
1354
  examples: (string & import("zod").BRAND<"example">)[];
1354
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1355
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
1355
1356
  description?: string | undefined;
1356
1357
  summary?: string | undefined;
1357
1358
  externalDocs?: {
@@ -1376,10 +1377,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1376
1377
  summary?: string | undefined;
1377
1378
  externalValue?: string | undefined;
1378
1379
  }> | undefined;
1379
- schema?: unknown;
1380
1380
  content?: unknown;
1381
1381
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1382
1382
  explode?: boolean | undefined;
1383
+ schema?: unknown;
1383
1384
  }[] | undefined;
1384
1385
  requestBody?: any;
1385
1386
  responses?: Record<string, any> | undefined;
@@ -1410,7 +1411,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1410
1411
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
1411
1412
  servers: (string & import("zod").BRAND<"server">)[];
1412
1413
  examples: (string & import("zod").BRAND<"example">)[];
1413
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1414
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
1414
1415
  description?: string | undefined;
1415
1416
  summary?: string | undefined;
1416
1417
  externalDocs?: {
@@ -1435,10 +1436,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1435
1436
  summary?: string | undefined;
1436
1437
  externalValue?: string | undefined;
1437
1438
  }> | undefined;
1438
- schema?: unknown;
1439
1439
  content?: unknown;
1440
1440
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1441
1441
  explode?: boolean | undefined;
1442
+ schema?: unknown;
1442
1443
  }[] | undefined;
1443
1444
  requestBody?: any;
1444
1445
  responses?: Record<string, any> | undefined;
@@ -1468,7 +1469,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1468
1469
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
1469
1470
  servers: (string & import("zod").BRAND<"server">)[];
1470
1471
  examples: (string & import("zod").BRAND<"example">)[];
1471
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1472
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
1472
1473
  description?: string | undefined;
1473
1474
  summary?: string | undefined;
1474
1475
  externalDocs?: {
@@ -1493,10 +1494,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1493
1494
  summary?: string | undefined;
1494
1495
  externalValue?: string | undefined;
1495
1496
  }> | undefined;
1496
- schema?: unknown;
1497
1497
  content?: unknown;
1498
1498
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1499
1499
  explode?: boolean | undefined;
1500
+ schema?: unknown;
1500
1501
  }[] | undefined;
1501
1502
  requestBody?: any;
1502
1503
  responses?: Record<string, any> | undefined;
@@ -1526,7 +1527,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1526
1527
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
1527
1528
  servers: (string & import("zod").BRAND<"server">)[];
1528
1529
  examples: (string & import("zod").BRAND<"example">)[];
1529
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1530
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
1530
1531
  description?: string | undefined;
1531
1532
  summary?: string | undefined;
1532
1533
  externalDocs?: {
@@ -1551,10 +1552,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1551
1552
  summary?: string | undefined;
1552
1553
  externalValue?: string | undefined;
1553
1554
  }> | undefined;
1554
- schema?: unknown;
1555
1555
  content?: unknown;
1556
1556
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1557
1557
  explode?: boolean | undefined;
1558
+ schema?: unknown;
1558
1559
  }[] | undefined;
1559
1560
  requestBody?: any;
1560
1561
  responses?: Record<string, any> | undefined;
@@ -1585,7 +1586,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1585
1586
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
1586
1587
  servers: (string & import("zod").BRAND<"server">)[];
1587
1588
  examples: (string & import("zod").BRAND<"example">)[];
1588
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1589
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
1589
1590
  description?: string | undefined;
1590
1591
  summary?: string | undefined;
1591
1592
  externalDocs?: {
@@ -1610,10 +1611,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1610
1611
  summary?: string | undefined;
1611
1612
  externalValue?: string | undefined;
1612
1613
  }> | undefined;
1613
- schema?: unknown;
1614
1614
  content?: unknown;
1615
1615
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1616
1616
  explode?: boolean | undefined;
1617
+ schema?: unknown;
1617
1618
  }[] | undefined;
1618
1619
  requestBody?: any;
1619
1620
  responses?: Record<string, any> | undefined;
@@ -1643,7 +1644,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1643
1644
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
1644
1645
  servers: (string & import("zod").BRAND<"server">)[];
1645
1646
  examples: (string & import("zod").BRAND<"example">)[];
1646
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1647
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
1647
1648
  description?: string | undefined;
1648
1649
  summary?: string | undefined;
1649
1650
  externalDocs?: {
@@ -1668,10 +1669,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1668
1669
  summary?: string | undefined;
1669
1670
  externalValue?: string | undefined;
1670
1671
  }> | undefined;
1671
- schema?: unknown;
1672
1672
  content?: unknown;
1673
1673
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1674
1674
  explode?: boolean | undefined;
1675
+ schema?: unknown;
1675
1676
  }[] | undefined;
1676
1677
  requestBody?: any;
1677
1678
  responses?: Record<string, any> | undefined;
@@ -1701,7 +1702,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1701
1702
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
1702
1703
  servers: (string & import("zod").BRAND<"server">)[];
1703
1704
  examples: (string & import("zod").BRAND<"example">)[];
1704
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1705
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
1705
1706
  description?: string | undefined;
1706
1707
  summary?: string | undefined;
1707
1708
  externalDocs?: {
@@ -1726,10 +1727,10 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
1726
1727
  summary?: string | undefined;
1727
1728
  externalValue?: string | undefined;
1728
1729
  }> | undefined;
1729
- schema?: unknown;
1730
1730
  content?: unknown;
1731
1731
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1732
1732
  explode?: boolean | undefined;
1733
+ schema?: unknown;
1733
1734
  }[] | undefined;
1734
1735
  requestBody?: any;
1735
1736
  responses?: Record<string, any> | undefined;