@scalar/api-client 2.29.4 → 2.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/style.css +1 -1
  3. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +9 -69
  4. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  5. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +74 -76
  6. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +15 -8
  7. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  8. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  9. package/dist/v2/blocks/operation-block/components/Header.vue2.js +29 -28
  10. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +1 -1
  11. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  12. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +18 -21
  13. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  14. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +2 -2
  15. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +12 -0
  16. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  17. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +12 -0
  18. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  19. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  20. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +13 -8
  21. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  22. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  23. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +97 -85
  24. package/dist/v2/components/server/ServerDropdown.vue.d.ts +16 -5
  25. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  26. package/dist/v2/components/server/ServerDropdown.vue.js +27 -24
  27. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  28. package/dist/v2/features/app/app-events.js +29 -14
  29. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  30. package/dist/v2/features/app/app-state.js +57 -57
  31. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  32. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  33. package/dist/v2/features/app/components/AppSidebar.vue2.js +171 -148
  34. package/dist/v2/features/app/helpers/routes.d.ts +42 -12
  35. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  36. package/dist/v2/features/app/helpers/routes.js +57 -26
  37. package/dist/v2/features/collection/OperationCollection.vue.d.ts +6 -0
  38. package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +1 -0
  39. package/dist/v2/features/collection/OperationCollection.vue.js +83 -0
  40. package/dist/v2/features/collection/OperationCollection.vue2.js +4 -0
  41. package/dist/v2/features/collection/components/Authentication.vue.d.ts +2 -2
  42. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  43. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  44. package/dist/v2/features/collection/components/Authentication.vue2.js +99 -49
  45. package/dist/v2/features/collection/components/Cookies.vue.d.ts +9 -4
  46. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  47. package/dist/v2/features/collection/components/Cookies.vue.js +12 -10
  48. package/dist/v2/features/collection/components/Environment.vue.d.ts +9 -4
  49. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  50. package/dist/v2/features/collection/components/Environment.vue.js +18 -16
  51. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +6 -2
  52. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
  53. package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
  54. package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -18
  55. package/dist/v2/features/collection/components/Overview.vue.d.ts +2 -2
  56. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
  57. package/dist/v2/features/collection/components/Overview.vue.js +1 -1
  58. package/dist/v2/features/collection/components/Overview.vue2.js +177 -75
  59. package/dist/v2/features/collection/components/Servers.vue.d.ts +2 -2
  60. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  61. package/dist/v2/features/collection/components/Servers.vue.js +154 -98
  62. package/dist/v2/features/collection/components/Settings.vue.d.ts +2 -2
  63. package/dist/v2/features/collection/components/Tabs.vue.d.ts +2 -1
  64. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
  65. package/dist/v2/features/collection/components/Tabs.vue.js +25 -27
  66. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +12 -0
  67. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +1 -0
  68. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +13 -0
  69. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  70. package/dist/v2/features/operation/Operation.vue.js +61 -63
  71. package/dist/v2/features/operation/helpers/get-selected-security.d.ts +5 -3
  72. package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
  73. package/dist/v2/features/operation/helpers/get-selected-security.js +7 -8
  74. package/dist/v2/features/operation/helpers/get-selected-server.d.ts +8 -6
  75. package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -1
  76. package/dist/v2/features/operation/helpers/get-selected-server.js +2 -2
  77. package/dist/v2/workspace-events.d.ts.map +1 -1
  78. package/dist/v2/workspace-events.js +25 -15
  79. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  80. package/package.json +12 -12
@@ -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,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-0c6d5d79"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -149,9 +149,9 @@ 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
157
  path: g("path", e.eventBus, o.value, {
@@ -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.0", T = "application/json", C = "*/*", a = (n, s, o) => ({
5
5
  name: n,
6
6
  defaultValue: s,
7
7
  isOverridden: o.has(n.toLowerCase())
@@ -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
  };
@@ -1,22 +1,24 @@
1
- import { defineComponent as P, useId as K, computed as x, ref as v, useTemplateRef as E, onMounted as Q, onBeforeUnmount as j, createElementBlock as $, openBlock as b, unref as s, createElementVNode as l, normalizeClass as V, createVNode as a, createCommentVNode as q, normalizeStyle as G, createBlock as J, withCtx as T, createTextVNode as g, toDisplayString as f } from "vue";
2
- import { ScalarButton as z, ScalarWrappingText as X, ScalarIcon as Y } from "@scalar/components";
3
- import { REQUEST_METHODS as Z } from "@scalar/helpers/http/http-info";
4
- import { ScalarIconCopy as _, ScalarIconWarningCircle as ee } from "@scalar/icons";
5
- import { useClipboard as te } from "@scalar/use-hooks/useClipboard";
6
- import { getResolvedUrl as ne } from "../../operation-block/helpers/get-resolved-url.js";
7
- import { useLoadingAnimation as oe } from "../hooks/use-loading-animation.js";
1
+ import { defineComponent as K, useId as Q, computed as x, ref as m, useTemplateRef as E, onMounted as j, onBeforeUnmount as G, createElementBlock as M, openBlock as b, unref as l, createElementVNode as o, normalizeClass as V, createVNode as a, createCommentVNode as $, normalizeStyle as J, createBlock as X, withCtx as T, createTextVNode as g, toDisplayString as v } from "vue";
2
+ import { ScalarButton as q, ScalarWrappingText as Y, ScalarIcon as Z } from "@scalar/components";
3
+ import { REQUEST_METHODS as _ } from "@scalar/helpers/http/http-info";
4
+ import { ScalarIconCopy as ee, ScalarIconWarningCircle as te } from "@scalar/icons";
5
+ import { useClipboard as ne } from "@scalar/use-hooks/useClipboard";
6
+ import { getResolvedUrl as oe } from "../../operation-block/helpers/get-resolved-url.js";
7
+ import { useLoadingAnimation as se } from "../hooks/use-loading-animation.js";
8
8
  import le from "./AddressBarHistory.vue.js";
9
- import se from "../../../../components/HttpMethod/HttpMethod.vue.js";
10
- import ae from "../../../components/server/ServerDropdown.vue.js";
11
- import re from "../../../components/code-input/CodeInput.vue.js";
12
- const ie = ["id"], de = { class: "flex gap-1" }, ue = { class: "scroll-timeline-x scroll-timeline-x-hidden relative flex w-full bg-blend-normal" }, me = {
9
+ import ae from "../../../../components/HttpMethod/HttpMethod.vue.js";
10
+ import re from "../../../components/server/ServerDropdown.vue.js";
11
+ import ie from "../../../components/code-input/CodeInput.vue.js";
12
+ const de = ["id"], ue = { class: "flex gap-1" }, me = { class: "scroll-timeline-x scroll-timeline-x-hidden relative flex w-full bg-blend-normal" }, ve = {
13
13
  key: 0,
14
14
  class: "absolute inset-x-0 top-[calc(100%+4px)] flex flex-col items-center rounded px-6"
15
- }, ve = { class: "text-c-danger bg-b-danger border-c-danger flex items-center gap-1 rounded border p-1" }, fe = { class: "min-w-0 flex-1" }, ce = {
15
+ }, fe = { class: "text-c-danger bg-b-danger border-c-danger flex items-center gap-1 rounded border p-1" }, ce = { class: "min-w-0 flex-1" }, he = {
16
16
  "aria-hidden": "true",
17
17
  class: "inline-flex items-center gap-1"
18
- }, he = { class: "sr-only" }, Re = /* @__PURE__ */ P({
19
- __name: "AddressBar",
18
+ }, xe = { class: "sr-only" }, be = {
19
+ name: "AddressBar"
20
+ }, Me = /* @__PURE__ */ K({
21
+ ...be,
20
22
  props: {
21
23
  path: {},
22
24
  method: {},
@@ -25,74 +27,83 @@ const ie = ["id"], de = { class: "flex gap-1" }, ue = { class: "scroll-timeline-
25
27
  history: {},
26
28
  layout: {},
27
29
  eventBus: {},
28
- environment: {}
30
+ environment: {},
31
+ serverMeta: {}
29
32
  },
30
- emits: ["execute", "update:servers", "select:history:item"],
31
- setup(e, { expose: D, emit: I }) {
32
- const d = I, c = K(), { percentage: L, startLoading: y, stopLoading: h, isLoading: A } = oe(), M = x(() => ({
33
- backgroundColor: `color-mix(in srgb, transparent 90%, ${Z[e.method].colorVar})`,
34
- transform: `translate3d(-${L.value}%,0,0)`
35
- })), i = v(null), r = v(null), B = x(() => r.value || i.value), p = (n, t, o) => {
36
- const W = u.value?.cursorPosition();
33
+ emits: ["execute", "select:history:item"],
34
+ setup(e, { expose: z, emit: D }) {
35
+ const f = D, c = Q(), { percentage: I, startLoading: y, stopLoading: h, isLoading: L } = se(), A = x(() => ({
36
+ backgroundColor: `color-mix(in srgb, transparent 90%, ${_[e.method].colorVar})`,
37
+ transform: `translate3d(-${I.value}%,0,0)`
38
+ })), i = m(null), r = m(null), B = x(() => r.value || i.value), C = (n, t, s) => {
39
+ const W = d.value?.cursorPosition();
37
40
  e.eventBus.emit(
38
41
  "operation:update:pathMethod",
39
42
  {
40
43
  meta: { method: e.method, path: e.path },
41
44
  payload: { method: n, path: t },
42
- callback: (m) => {
43
- (m === "success" || m === "no-change") && (r.value = null, i.value = null), m === "success" ? e.eventBus.emit("ui:focus:address-bar", { position: W }) : m === "conflict" && (n !== e.method && (r.value = n), t !== e.path && (i.value = t));
45
+ callback: (u) => {
46
+ (u === "success" || u === "no-change") && (r.value = null, i.value = null), u === "success" ? e.eventBus.emit("ui:focus:address-bar", { position: W }) : u === "conflict" && (n !== e.method && (r.value = n), t !== e.path && (i.value = t));
44
47
  }
45
48
  },
46
- o
49
+ s
47
50
  );
48
- }, O = (n) => p(n, i.value ?? e.path), H = (n) => {
51
+ }, O = (n) => C(n, i.value ?? e.path), H = (n) => {
49
52
  const t = n.startsWith("/") ? n : `/${n}`;
50
- p(r.value ?? e.method, t, {
53
+ C(r.value ?? e.method, t, {
51
54
  debounceKey: `operation:update:pathMethod-${e.path}-${e.method}`
52
55
  });
53
- }, C = E("sendButtonRef"), u = E("addressBarRef"), w = () => C.value?.$el?.focus(), k = (n) => {
54
- if (u.value?.isFocused && e.layout !== "desktop")
56
+ }, p = E("sendButtonRef"), d = E("addressBarRef"), w = () => p.value?.$el?.focus(), k = (n) => {
57
+ if (d.value?.isFocused && e.layout !== "desktop")
55
58
  return;
56
59
  const t = n && "position" in n ? n.position : "end";
57
- u.value?.focus(t), n && "event" in n && n.event.preventDefault();
60
+ d.value?.focus(t), n && "event" in n && n.event.preventDefault();
58
61
  };
59
- Q(() => {
62
+ j(() => {
60
63
  e.eventBus.on("ui:focus:address-bar", k), e.eventBus.on("ui:focus:send-button", w), e.eventBus.on("hooks:on:request:sent", y), e.eventBus.on("hooks:on:request:complete", h);
61
- }), j(() => {
64
+ }), G(() => {
62
65
  e.eventBus.off("ui:focus:address-bar", k), e.eventBus.off("ui:focus:send-button", w), e.eventBus.off("hooks:on:request:sent", y), e.eventBus.off("hooks:on:request:complete", h), h();
63
66
  });
64
- const { copyToClipboard: N } = te(), F = async () => {
67
+ const { copyToClipboard: N } = ne(), P = async () => {
65
68
  await N(
66
- ne({ environment: e.environment, server: e.server, path: e.path, pathVariables: {} })
69
+ oe({ environment: e.environment, server: e.server, path: e.path, pathVariables: {} })
67
70
  );
68
- }, S = v(!1), U = v(!1), R = x(
71
+ }, S = m(!1), U = m(!1), R = x(
69
72
  () => S.value || U.value
70
- );
71
- return D({
73
+ ), F = () => e.serverMeta.type === "operation" ? e.eventBus.emit("ui:navigate", {
74
+ page: "operation",
75
+ path: "servers",
76
+ operationPath: e.serverMeta.path,
77
+ method: e.serverMeta.method
78
+ }) : e.eventBus.emit("ui:navigate", {
79
+ page: "document",
80
+ path: "servers"
81
+ });
82
+ return z({
72
83
  methodConflict: r,
73
84
  pathConflict: i
74
- }), (n, t) => (b(), $("div", {
75
- id: s(c),
85
+ }), (n, t) => (b(), M("div", {
86
+ id: l(c),
76
87
  class: "scalar-address-bar order-last flex h-(--scalar-address-bar-height) w-full [--scalar-address-bar-height:32px] lg:order-0 lg:w-auto"
77
88
  }, [
78
- l("div", {
89
+ o("div", {
79
90
  class: V(["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]", {
80
91
  "outline-c-danger outline": B.value,
81
92
  "rounded-b-none": R.value
82
93
  }])
83
94
  }, [
84
- l("div", {
95
+ o("div", {
85
96
  class: V(["pointer-events-none absolute top-0 left-0 block h-full w-full overflow-hidden rounded-lg border", {
86
97
  "rounded-b-none": R.value
87
98
  }])
88
99
  }, [
89
- l("div", {
100
+ o("div", {
90
101
  class: "absolute top-0 left-0 h-full w-full",
91
- style: G(M.value)
102
+ style: J(A.value)
92
103
  }, null, 4)
93
104
  ], 2),
94
- l("div", de, [
95
- a(s(se), {
105
+ o("div", ue, [
106
+ a(l(ae), {
96
107
  isEditable: e.layout !== "modal",
97
108
  isSquare: "",
98
109
  method: r.value ?? e.method,
@@ -100,22 +111,23 @@ const ie = ["id"], de = { class: "flex gap-1" }, ue = { class: "scroll-timeline-
100
111
  onChange: O
101
112
  }, null, 8, ["isEditable", "method"])
102
113
  ]),
103
- l("div", ue, [
104
- e.servers.length ? (b(), J(s(ae), {
114
+ o("div", me, [
115
+ e.servers.length ? (b(), X(l(re), {
105
116
  key: 0,
106
117
  layout: e.layout,
118
+ meta: e.serverMeta,
107
119
  server: e.server,
108
120
  servers: e.servers,
109
- target: s(c),
110
- "onUpdate:open": t[0] || (t[0] = (o) => S.value = o),
111
- "onUpdate:selectedServer": t[1] || (t[1] = (o) => e.eventBus.emit("server:update:selected", o)),
112
- "onUpdate:servers": t[2] || (t[2] = (o) => d("update:servers")),
113
- "onUpdate:variable": t[3] || (t[3] = (o) => e.eventBus.emit("server:update:variables", o))
114
- }, null, 8, ["layout", "server", "servers", "target"])) : q("", !0),
115
- t[8] || (t[8] = l("div", { class: "fade-left" }, null, -1)),
116
- a(s(re), {
121
+ target: l(c),
122
+ "onUpdate:open": t[0] || (t[0] = (s) => S.value = s),
123
+ "onUpdate:selectedServer": t[1] || (t[1] = (s) => e.eventBus.emit("server:update:selected", s)),
124
+ "onUpdate:servers": F,
125
+ "onUpdate:variable": t[2] || (t[2] = (s) => e.eventBus.emit("server:update:variables", s))
126
+ }, null, 8, ["layout", "meta", "server", "servers", "target"])) : $("", !0),
127
+ t[7] || (t[7] = o("div", { class: "fade-left" }, null, -1)),
128
+ a(l(ie), {
117
129
  ref_key: "addressBarRef",
118
- ref: u,
130
+ ref: d,
119
131
  alwaysEmitChange: "",
120
132
  "aria-label": "Path",
121
133
  class: "min-w-fit outline-none",
@@ -130,67 +142,67 @@ const ie = ["id"], de = { class: "flex gap-1" }, ue = { class: "scroll-timeline-
130
142
  modelValue: e.path,
131
143
  placeholder: e.server ? "" : "Enter a URL",
132
144
  server: "",
133
- onSubmit: t[4] || (t[4] = (o) => d("execute")),
145
+ onSubmit: t[3] || (t[3] = (s) => f("execute")),
134
146
  "onUpdate:modelValue": H
135
147
  }, null, 8, ["disabled", "environment", "layout", "modelValue", "placeholder"]),
136
- t[9] || (t[9] = l("div", { class: "fade-right" }, null, -1))
148
+ t[8] || (t[8] = o("div", { class: "fade-right" }, null, -1))
137
149
  ]),
138
- a(s(z), {
150
+ a(l(q), {
139
151
  class: "hover:bg-b-3 mx-1",
140
152
  size: "xs",
141
153
  variant: "ghost",
142
- onClick: F
154
+ onClick: P
143
155
  }, {
144
156
  default: T(() => [
145
- a(s(_)),
146
- t[10] || (t[10] = l("span", { class: "sr-only" }, "Copy URL", -1))
157
+ a(l(ee)),
158
+ t[9] || (t[9] = o("span", { class: "sr-only" }, "Copy URL", -1))
147
159
  ]),
148
160
  _: 1
149
161
  }),
150
162
  a(le, {
151
163
  history: e.history,
152
- target: s(c),
153
- "onSelect:history:item": t[5] || (t[5] = (o) => d("select:history:item", o)),
154
- "onUpdate:open": t[6] || (t[6] = (o) => U.value = o)
164
+ target: l(c),
165
+ "onSelect:history:item": t[4] || (t[4] = (s) => f("select:history:item", s)),
166
+ "onUpdate:open": t[5] || (t[5] = (s) => U.value = s)
155
167
  }, null, 8, ["history", "target"]),
156
- B.value ? (b(), $("div", me, [
157
- l("div", ve, [
158
- a(s(ee), { size: "sm" }),
159
- l("div", fe, [
160
- t[11] || (t[11] = g(" A ", -1)),
161
- l("em", null, f(r.value?.toUpperCase() ?? e.method.toUpperCase()), 1),
162
- t[12] || (t[12] = g(" request to ", -1)),
163
- a(s(X), {
168
+ B.value ? (b(), M("div", ve, [
169
+ o("div", fe, [
170
+ a(l(te), { size: "sm" }),
171
+ o("div", ce, [
172
+ t[10] || (t[10] = g(" A ", -1)),
173
+ o("em", null, v(r.value?.toUpperCase() ?? e.method.toUpperCase()), 1),
174
+ t[11] || (t[11] = g(" request to ", -1)),
175
+ a(l(Y), {
164
176
  text: i.value ?? e.path
165
177
  }, null, 8, ["text"]),
166
- t[13] || (t[13] = g(" already exists in this document ", -1))
178
+ t[12] || (t[12] = g(" already exists in this document ", -1))
167
179
  ])
168
180
  ])
169
- ])) : q("", !0),
170
- a(s(z), {
181
+ ])) : $("", !0),
182
+ a(l(q), {
171
183
  ref_key: "sendButtonRef",
172
- ref: C,
184
+ ref: p,
173
185
  class: "relative h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold",
174
- disabled: s(A),
175
- onClick: t[7] || (t[7] = (o) => d("execute"))
186
+ disabled: l(L),
187
+ onClick: t[6] || (t[6] = (s) => f("execute"))
176
188
  }, {
177
189
  default: T(() => [
178
- l("span", ce, [
179
- a(s(Y), {
190
+ o("span", he, [
191
+ a(l(Z), {
180
192
  class: "relative shrink-0 fill-current",
181
193
  icon: "Play",
182
194
  size: "xs"
183
195
  }),
184
- t[14] || (t[14] = l("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
196
+ t[13] || (t[13] = o("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
185
197
  ]),
186
- l("span", he, " Send " + f(e.method) + " request to " + f(e.server?.url ?? "") + f(e.path), 1)
198
+ o("span", xe, " Send " + v(e.method) + " request to " + v(e.server?.url ?? "") + v(e.path), 1)
187
199
  ]),
188
200
  _: 1
189
201
  }, 8, ["disabled"])
190
202
  ], 2)
191
- ], 8, ie));
203
+ ], 8, de));
192
204
  }
193
205
  });
194
206
  export {
195
- Re as default
207
+ Me as default
196
208
  };
@@ -1,6 +1,15 @@
1
+ import type { ServerMeta } from '@scalar/workspace-store/events';
1
2
  import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
3
  import type { ClientLayout } from '../../../hooks/index.js';
3
- type __VLS_Props = {
4
+ /**
5
+ * ServerDropdown component
6
+ * This component is used to display the server dropdown for the operation block
7
+ */
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ export type ServerDropdownProps = {
11
+ /** The meta information for the server */
12
+ meta: ServerMeta;
4
13
  /** List of servers that are available for the operation/document level */
5
14
  servers: ServerObject[];
6
15
  /** Currently selected server */
@@ -10,29 +19,31 @@ type __VLS_Props = {
10
19
  /** Client layout */
11
20
  layout: ClientLayout;
12
21
  };
13
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
22
+ declare const __VLS_export: import("vue").DefineComponent<ServerDropdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
23
  "update:variable": (payload: {
15
24
  index: number;
16
25
  key: string;
17
26
  value: string;
27
+ meta: ServerMeta;
18
28
  }) => any;
19
29
  "update:selectedServer": (payload: {
20
30
  url: string;
31
+ meta: ServerMeta;
21
32
  }) => any;
22
33
  "update:servers": () => any;
23
34
  "update:open": (value: boolean) => any;
24
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
+ }, string, import("vue").PublicProps, Readonly<ServerDropdownProps> & Readonly<{
25
36
  "onUpdate:variable"?: ((payload: {
26
37
  index: number;
27
38
  key: string;
28
39
  value: string;
40
+ meta: ServerMeta;
29
41
  }) => any) | undefined;
30
42
  "onUpdate:selectedServer"?: ((payload: {
31
43
  url: string;
44
+ meta: ServerMeta;
32
45
  }) => any) | undefined;
33
46
  "onUpdate:servers"?: (() => any) | undefined;
34
47
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
35
48
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
- declare const _default: typeof __VLS_export;
37
- export default _default;
38
49
  //# sourceMappingURL=ServerDropdown.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,KAAK,WAAW,GAAG;IACjB,0EAA0E;IAC1E,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC;AA2RF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"AAkJA,OAAO,KAAK,EAEV,UAAU,EACX,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C;;;GAGG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAMzC,MAAM,MAAM,mBAAmB,GAAG;IAChC,0CAA0C;IAC1C,IAAI,EAAE,UAAU,CAAA;IAChB,0EAA0E;IAC1E,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAA;AACD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;kFAgSd,CAAC"}