@scalar/api-client 2.29.4 → 2.31.1

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 (106) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/dist/components/DataTable/DataTableCell.vue.js +1 -1
  3. package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
  4. package/dist/components/Server/ServerSelector.vue.js +5 -5
  5. package/dist/components/Sidebar/Sidebar.vue.js +3 -3
  6. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  7. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
  8. package/dist/style.css +1 -1
  9. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +9 -69
  10. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  11. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +74 -76
  12. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +15 -8
  13. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  15. package/dist/v2/blocks/operation-block/components/Header.vue2.js +29 -28
  16. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +1 -1
  17. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  18. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +18 -21
  19. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  20. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  21. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +22 -21
  22. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +12 -0
  23. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  24. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +12 -0
  25. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  26. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  27. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +2 -2
  28. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +1 -1
  29. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +1 -1
  30. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +13 -8
  31. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  32. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  33. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +97 -85
  34. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -7
  35. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  36. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
  37. package/dist/v2/components/data-table/DataTableCell.vue.js +1 -1
  38. package/dist/v2/components/server/ServerDropdown.vue.d.ts +16 -5
  39. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  40. package/dist/v2/components/server/ServerDropdown.vue.js +27 -24
  41. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  42. package/dist/v2/features/app/app-events.js +29 -14
  43. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  44. package/dist/v2/features/app/app-state.js +57 -57
  45. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  46. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  47. package/dist/v2/features/app/components/AppSidebar.vue2.js +171 -148
  48. package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
  49. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +1 -1
  50. package/dist/v2/features/app/helpers/routes.d.ts +42 -12
  51. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  52. package/dist/v2/features/app/helpers/routes.js +57 -26
  53. package/dist/v2/features/collection/OperationCollection.vue.d.ts +6 -0
  54. package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +1 -0
  55. package/dist/v2/features/collection/OperationCollection.vue.js +83 -0
  56. package/dist/v2/features/collection/OperationCollection.vue2.js +4 -0
  57. package/dist/v2/features/collection/components/Authentication.vue.d.ts +2 -2
  58. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  59. package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
  60. package/dist/v2/features/collection/components/Authentication.vue2.js +100 -49
  61. package/dist/v2/features/collection/components/Cookies.vue.d.ts +9 -4
  62. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  63. package/dist/v2/features/collection/components/Cookies.vue.js +12 -10
  64. package/dist/v2/features/collection/components/Environment.vue.d.ts +9 -4
  65. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  66. package/dist/v2/features/collection/components/Environment.vue.js +18 -16
  67. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +6 -2
  68. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
  69. package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
  70. package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -18
  71. package/dist/v2/features/collection/components/Overview.vue.d.ts +2 -2
  72. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
  73. package/dist/v2/features/collection/components/Overview.vue.js +1 -1
  74. package/dist/v2/features/collection/components/Overview.vue2.js +177 -75
  75. package/dist/v2/features/collection/components/Servers.vue.d.ts +2 -2
  76. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  77. package/dist/v2/features/collection/components/Servers.vue.js +154 -98
  78. package/dist/v2/features/collection/components/Settings.vue.d.ts +2 -2
  79. package/dist/v2/features/collection/components/Tabs.vue.d.ts +2 -1
  80. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
  81. package/dist/v2/features/collection/components/Tabs.vue.js +25 -27
  82. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +12 -0
  83. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +1 -0
  84. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +13 -0
  85. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  86. package/dist/v2/features/operation/Operation.vue.js +61 -63
  87. package/dist/v2/features/operation/helpers/get-selected-security.d.ts +5 -3
  88. package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
  89. package/dist/v2/features/operation/helpers/get-selected-security.js +7 -8
  90. package/dist/v2/features/operation/helpers/get-selected-server.d.ts +8 -6
  91. package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -1
  92. package/dist/v2/features/operation/helpers/get-selected-server.js +2 -2
  93. package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -1
  94. package/dist/v2/helpers/drag-handle-factory.js +41 -41
  95. package/dist/v2/workspace-events.d.ts.map +1 -1
  96. package/dist/v2/workspace-events.js +25 -15
  97. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  98. package/dist/views/Request/RequestSidebarItem.vue2.js +24 -24
  99. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  100. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
  101. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +1 -1
  102. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  103. package/package.json +17 -17
  104. package/dist/v2/helpers/remove-circular.d.ts +0 -15
  105. package/dist/v2/helpers/remove-circular.d.ts.map +0 -1
  106. package/dist/v2/helpers/remove-circular.js +0 -18
@@ -1,30 +1,27 @@
1
- import { getRaw as d } from "@scalar/json-magic/magic-proxy";
2
- const v = (i) => {
3
- const o = /* @__PURE__ */ new WeakSet(), f = (e) => {
4
- if (e == null || typeof e != "object")
1
+ import { isObject as c } from "@scalar/helpers/object/is-object";
2
+ import { getResolvedRef as l } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { unpackProxyObject as p } from "@scalar/workspace-store/helpers/unpack-proxy";
4
+ const v = (f) => {
5
+ const i = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakMap(), o = (e) => {
6
+ if (!c(e) && !Array.isArray(e))
5
7
  return e;
6
- const t = d(e);
7
- if (o.has(t))
8
+ const t = p(e, { depth: 1 });
9
+ if (r.has(t))
10
+ return r.get(t);
11
+ if (i.has(t))
8
12
  return "[circular]";
9
- if (o.add(t), typeof e == "object" && e !== null && "$ref" in e) {
10
- const l = e["$ref-value"], s = f(l);
11
- return o.delete(t), s;
13
+ if (i.add(t), "$ref" in e) {
14
+ const s = l(e), a = o(s);
15
+ return r.set(t, a), a;
12
16
  }
13
17
  if (Array.isArray(e)) {
14
- const l = e.map((s) => f(s));
15
- return o.delete(t), l;
18
+ const s = e.map(o);
19
+ return r.set(t, s), s;
16
20
  }
17
- if (e instanceof File || e instanceof Date)
18
- return o.delete(t), e;
19
- if (typeof e == "object" && e !== null) {
20
- const l = {};
21
- for (const [s, a] of Object.entries(e))
22
- l[s] = f(a);
23
- return o.delete(t), l;
24
- }
25
- return o.delete(t), e;
21
+ const n = Object.fromEntries(Object.entries(e).map(([s, a]) => [s, o(a)]));
22
+ return r.set(t, n), n;
26
23
  };
27
- return f(i);
24
+ return o(f);
28
25
  };
29
26
  export {
30
27
  v as getResolvedRefDeep
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AAqjBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KA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C3B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,oBAAoB,EAAE,CAAA;IACrC,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,uBAAuB,EAAE,0BAA0B,EAAE,CAAA;IACrD,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;AAsrBF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBlock.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2076f815"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-22abab53"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -11,8 +11,8 @@ import { getExample as re } from "../operation-block/helpers/get-example.js";
11
11
  import { getResolvedUrl as ie } from "../operation-block/helpers/get-resolved-url.js";
12
12
  import ue from "./components/RequestBody.vue.js";
13
13
  import se from "./components/RequestCodeSnippet.vue.js";
14
- import k from "./components/RequestParams.vue.js";
15
- import { createParameterHandlers as g } from "./helpers/create-parameter-handlers.js";
14
+ import S from "./components/RequestParams.vue.js";
15
+ import { createParameterHandlers as k } from "./helpers/create-parameter-handlers.js";
16
16
  import { getDefaultHeaders as me } from "./helpers/get-default-headers.js";
17
17
  import { getParameterSchema as de } from "./helpers/get-parameter-schema.js";
18
18
  import { groupBy as D } from "./helpers/group-by.js";
@@ -75,7 +75,7 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
75
75
  )
76
76
  ), N = n(
77
77
  () => me({ method: e.method, operation: e.operation, exampleKey: e.exampleKey })
78
- ), p = n(() => {
78
+ ), A = n(() => {
79
79
  const t = e.operation["x-scalar-disable-parameters"]?.["default-headers"]?.[e.exampleKey] ?? {};
80
80
  return N.value.map((a) => {
81
81
  const l = I.value[a.name.toLowerCase()]?.[0];
@@ -88,8 +88,8 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
88
88
  isDisabled: t[a.name.toLowerCase()] ?? !1
89
89
  };
90
90
  });
91
- }), A = n(() => [
92
- ...p.value,
91
+ }), p = n(() => [
92
+ ...A.value,
93
93
  ...r.value.header ?? []
94
94
  ]), V = n(() => {
95
95
  const t = ie({
@@ -149,23 +149,23 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
149
149
  );
150
150
  const F = (t) => {
151
151
  const a = t.target.value;
152
- e.eventBus.emit("operation:update:summary", {
152
+ e.eventBus.emit("operation:update:meta", {
153
153
  meta: o.value,
154
- payload: { summary: a }
154
+ payload: { summary: a.trim() }
155
155
  });
156
156
  }, B = n(() => ({
157
- path: g("path", e.eventBus, o.value, {
157
+ path: k("path", e.eventBus, o.value, {
158
158
  context: r.value.path ?? []
159
159
  }),
160
- cookie: g("cookie", e.eventBus, o.value, {
160
+ cookie: k("cookie", e.eventBus, o.value, {
161
161
  context: P.value ?? [],
162
162
  globalParameters: V.value.length
163
163
  }),
164
- header: g("header", e.eventBus, o.value, {
165
- context: A.value,
166
- defaultParameters: p.value.length
164
+ header: k("header", e.eventBus, o.value, {
165
+ context: p.value,
166
+ defaultParameters: A.value.length
167
167
  }),
168
- query: g("query", e.eventBus, o.value, {
168
+ query: k("query", e.eventBus, o.value, {
169
169
  context: r.value.query ?? []
170
170
  })
171
171
  })), G = (t) => e.eventBus.emit("operation:update:requestBody:contentType", {
@@ -195,7 +195,7 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
195
195
  e.eventBus.emit(
196
196
  "operation:update:requestBody:formValue",
197
197
  {
198
- payload: t.map((S) => ae(S, { depth: 1 })),
198
+ payload: t.map((g) => ae(g, { depth: 1 })),
199
199
  contentType: a,
200
200
  meta: o.value
201
201
  },
@@ -238,6 +238,7 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
238
238
  }, [
239
239
  m(d(y(ve), {
240
240
  id: u.value.Auth,
241
+ createAnySecurityScheme: e.layout !== "modal",
241
242
  environment: e.environment,
242
243
  eventBus: e.eventBus,
243
244
  meta: e.authMeta,
@@ -248,10 +249,10 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
248
249
  selectedSecuritySchemes: e.selectedSecuritySchemes,
249
250
  server: e.server,
250
251
  title: "Authentication"
251
- }, null, 8, ["id", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "selectedSecuritySchemes", "server"]), [
252
+ }, null, 8, ["id", "createAnySecurityScheme", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "selectedSecuritySchemes", "server"]), [
252
253
  [c, h("Auth") && !H.value]
253
254
  ]),
254
- m(d(k, f({
255
+ m(d(S, f({
255
256
  id: u.value.Variables,
256
257
  environment: e.environment,
257
258
  eventBus: e.eventBus,
@@ -262,7 +263,7 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
262
263
  }, b(B.value.path)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
263
264
  [c, h("Variables") && r.value.path?.length]
264
265
  ]),
265
- m(d(k, f({
266
+ m(d(S, f({
266
267
  id: u.value.Cookies,
267
268
  environment: e.environment,
268
269
  eventBus: e.eventBus,
@@ -273,17 +274,17 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
273
274
  }, b(B.value.cookie)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
274
275
  [c, h("Cookies")]
275
276
  ]),
276
- m(d(k, f({
277
+ m(d(S, f({
277
278
  id: u.value.Headers,
278
279
  environment: e.environment,
279
280
  eventBus: e.eventBus,
280
281
  exampleKey: e.exampleKey,
281
- rows: A.value ?? [],
282
+ rows: p.value ?? [],
282
283
  title: "Headers"
283
284
  }, b(B.value.header)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
284
285
  [c, h("Headers")]
285
286
  ]),
286
- m(d(k, f({
287
+ m(d(S, f({
287
288
  id: u.value.Query,
288
289
  environment: e.environment,
289
290
  eventBus: e.eventBus,
@@ -305,7 +306,7 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
305
306
  }, null, 8, ["id", "environment", "exampleKey", "requestBody"]), [
306
307
  [c, h("Body") && y(w)(e.method)]
307
308
  ]),
308
- (v(!0), x(W, null, Y(e.plugins, (l, S) => (v(), q(y(ee), { key: S }, {
309
+ (v(!0), x(W, null, Y(e.plugins, (l, g) => (v(), q(y(ee), { key: g }, {
309
310
  default: C(() => [
310
311
  l?.components?.request ? m((v(), q(Z(l.components.request.component), f({
311
312
  key: 0,
@@ -29,6 +29,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
29
29
  path: string;
30
30
  method: import("@scalar/helpers/http/http-methods").HttpMethod;
31
31
  exampleName: string;
32
+ } | {
33
+ page: "operation";
34
+ path: "overview" | "servers" | "authentication";
35
+ operationPath: string;
36
+ method: import("@scalar/helpers/http/http-methods").HttpMethod;
37
+ documentSlug?: string;
32
38
  })) | undefined>) => any;
33
39
  deleteRow: (index: number) => any;
34
40
  uploadFile: (index: number) => any;
@@ -57,6 +63,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
57
63
  path: string;
58
64
  method: import("@scalar/helpers/http/http-methods").HttpMethod;
59
65
  exampleName: string;
66
+ } | {
67
+ page: "operation";
68
+ path: "overview" | "servers" | "authentication";
69
+ operationPath: string;
70
+ method: import("@scalar/helpers/http/http-methods").HttpMethod;
71
+ documentSlug?: string;
60
72
  })) | undefined>) => any) | undefined;
61
73
  onDeleteRow?: ((index: number) => any) | undefined;
62
74
  onUploadFile?: ((index: number) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTable.vue"],"names":[],"mappings":"AA8IA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAwB,EACtB,KAAK,QAAQ,EACd,MAAM,0DAA0D,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AA4OF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;cA1NN,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;cAFb,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;kFA2NvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTable.vue"],"names":[],"mappings":"AA8IA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAwB,EACtB,KAAK,QAAQ,EACd,MAAM,0DAA0D,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AA4OF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA1NN,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAFb,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;kFA2NvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -53,6 +53,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
53
53
  path: string;
54
54
  method: import("@scalar/helpers/http/http-methods").HttpMethod;
55
55
  exampleName: string;
56
+ } | {
57
+ page: "operation";
58
+ path: "overview" | "servers" | "authentication";
59
+ operationPath: string;
60
+ method: import("@scalar/helpers/http/http-methods").HttpMethod;
61
+ documentSlug?: string;
56
62
  })) | undefined>) => any;
57
63
  deleteRow: () => any;
58
64
  uploadFile: () => any;
@@ -81,6 +87,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
81
87
  path: string;
82
88
  method: import("@scalar/helpers/http/http-methods").HttpMethod;
83
89
  exampleName: string;
90
+ } | {
91
+ page: "operation";
92
+ path: "overview" | "servers" | "authentication";
93
+ operationPath: string;
94
+ method: import("@scalar/helpers/http/http-methods").HttpMethod;
95
+ documentSlug?: string;
84
96
  })) | undefined>) => any) | undefined;
85
97
  onDeleteRow?: (() => any) | undefined;
86
98
  onUploadFile?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAiTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAGxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,MAAM,MAAM,QAAQ,GAAG;IACrB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC/C,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,eAAe,CAAA;CACpC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAmlBF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;cAtkBG,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;cAAjD,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;kFAykBpE,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAiTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAGxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,MAAM,MAAM,QAAQ,GAAG;IACrB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC/C,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,eAAe,CAAA;CACpC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAmlBF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAtkBG,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAjD,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;kFAykBpE,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import { canMethodHaveBody as m } from "@scalar/helpers/http/can-method-have-body";
2
2
  import { getResolvedRef as r } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
3
  import { isElectron as y } from "../../../../libs/electron.js";
4
- const l = "2.29.4", T = "application/json", C = "*/*", a = (n, s, o) => ({
4
+ const l = "2.31.1", T = "application/json", C = "*/*", a = (n, s, o) => ({
5
5
  name: n,
6
6
  defaultValue: s,
7
7
  isOverridden: o.has(n.toLowerCase())
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8ae4f555"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-94c74c13"]]);
5
5
  export {
6
- s as default
6
+ c as default
7
7
  };
@@ -10,7 +10,7 @@ import S from "../../../components/layout/CollapsibleSection.vue.js";
10
10
  const _ = {
11
11
  key: 0,
12
12
  class: "bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"
13
- }, $ = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, E = { class: "text-xxs font-code leading-3" }, H = /* @__PURE__ */ h({
13
+ }, $ = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, E = { class: "text-xxs font-code leading-5" }, H = /* @__PURE__ */ h({
14
14
  __name: "ResponseBody",
15
15
  props: {
16
16
  title: {},
@@ -62,7 +62,7 @@ const j = { class: "flex w-full items-center justify-between" }, H = {
62
62
  v("div", {
63
63
  ref_key: "contentContainer",
64
64
  ref: c,
65
- class: "text-xxs font-code h-full overflow-auto leading-2 whitespace-pre-wrap"
65
+ class: "text-xxs font-code h-full overflow-auto leading-6 whitespace-pre-wrap"
66
66
  }, [
67
67
  s.value ? (u(), m("div", U, k(s.value.message), 1)) : g("", !0),
68
68
  o.value ? (u(), m("div", $, k(o.value), 1)) : g("", !0)
@@ -1,10 +1,17 @@
1
1
  import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
2
- import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
2
+ import type { ServerMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
3
3
  import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
4
4
  import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
5
5
  import { type ClientLayout } from '../../../../hooks/index.js';
6
6
  import { type History } from './AddressBarHistory.vue.js';
7
- type __VLS_Props = {
7
+ /**
8
+ * AddressBar component
9
+ * This component is used to display the address bar for the operation block
10
+ * It is used to display the path, method, server, and history for the operation
11
+ */
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ export type AddressBarProps = {
8
15
  /** Current request path */
9
16
  path: string;
10
17
  /** Current request method */
@@ -21,23 +28,21 @@ type __VLS_Props = {
21
28
  eventBus: WorkspaceEventBus;
22
29
  /** Environment */
23
30
  environment: XScalarEnvironment;
31
+ /** Meta information for the server */
32
+ serverMeta: ServerMeta;
24
33
  };
25
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
34
+ declare const __VLS_export: import("vue").DefineComponent<AddressBarProps, {
26
35
  methodConflict: import("vue").Ref<"delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace" | null, "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace" | null>;
27
36
  pathConflict: import("vue").Ref<string | null, string | null>;
28
37
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
29
38
  execute: () => any;
30
- "update:servers": () => any;
31
39
  "select:history:item": (payload: {
32
40
  index: number;
33
41
  }) => any;
34
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
42
+ }, string, import("vue").PublicProps, Readonly<AddressBarProps> & Readonly<{
35
43
  onExecute?: (() => any) | undefined;
36
- "onUpdate:servers"?: (() => any) | undefined;
37
44
  "onSelect:history:item"?: ((payload: {
38
45
  index: number;
39
46
  }) => any) | undefined;
40
47
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
- declare const _default: typeof __VLS_export;
42
- export default _default;
43
48
  //# sourceMappingURL=AddressBar.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"AA6bA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAGrF,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,OAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEzE,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,kBAAkB;IAClB,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AA0nBF,QAAA,MAAM,YAAY;;;;;;;eAvmB6B,MAAM;;;;;;eAAN,MAAM;;kFA2mBnD,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"AA0dA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAGrF,OAAO,KAAK,EAEV,UAAU,EACV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,OAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGzE;;;;GAIG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAKzC,MAAM,MAAM,eAAe,GAAG;IAC5B,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,kBAAkB;IAClB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,sCAAsC;IACtC,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AACD,QAAA,MAAM,YAAY;;;;;;eAmB6B,MAAM;;;;;eAAN,MAAM;;kFAynBjD,CAAC"}
@@ -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 e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-791e0491"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f5565642"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };