@scalar/api-client 2.2.37 → 2.2.38

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 (122) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue2.js +107 -116
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  7. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  8. package/dist/components/AddressBar/AddressBarHistory.vue2.js +95 -75
  9. package/dist/components/AddressBar/AddressBarServer.vue.d.ts +5 -1
  10. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  11. package/dist/components/AddressBar/AddressBarServer.vue.js +92 -86
  12. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +7 -10
  13. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
  14. package/dist/components/AddressBar/AddressBarServerItem.vue.js +5 -52
  15. package/dist/components/AddressBar/AddressBarServerItem.vue2.js +75 -2
  16. package/dist/components/CodeInput/CodeInput.vue.d.ts +2 -0
  17. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  18. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  19. package/dist/components/CodeInput/CodeInput.vue2.js +72 -64
  20. package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -4
  21. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  22. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +1 -0
  23. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  24. package/dist/components/DataTable/DataTableInputSelect.vue.js +83 -51
  25. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  26. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +22 -21
  27. package/dist/components/Server/ServerVariablesForm.vue.d.ts +14 -0
  28. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -0
  29. package/dist/components/Server/ServerVariablesForm.vue.js +47 -0
  30. package/dist/components/Server/ServerVariablesForm.vue2.js +4 -0
  31. package/dist/components/Server/ServerVariablesSelect.vue.d.ts +12 -0
  32. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -0
  33. package/dist/components/Server/ServerVariablesSelect.vue.js +54 -0
  34. package/dist/components/Server/ServerVariablesSelect.vue2.js +4 -0
  35. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +11 -0
  36. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -0
  37. package/dist/components/Server/ServerVariablesTextbox.vue.js +29 -0
  38. package/dist/components/Server/ServerVariablesTextbox.vue2.js +4 -0
  39. package/dist/components/Server/types.d.ts +9 -0
  40. package/dist/components/Server/types.d.ts.map +1 -0
  41. package/dist/components/SideNav/SideHelp.vue.js +16 -16
  42. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  43. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  44. package/dist/components/Sidebar/Sidebar.vue2.js +11 -10
  45. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  46. package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
  47. package/dist/components/Sidebar/SidebarListElement.vue2.js +10 -9
  48. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +1 -1
  49. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  50. package/dist/layouts/App/create-api-client-app.d.ts +95 -26
  51. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  52. package/dist/layouts/Modal/create-api-client-modal.d.ts +190 -52
  53. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  54. package/dist/layouts/Web/create-api-client-web.d.ts +95 -26
  55. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  56. package/dist/libs/create-client.d.ts +106 -32
  57. package/dist/libs/create-client.d.ts.map +1 -1
  58. package/dist/libs/create-client.js +86 -81
  59. package/dist/libs/find-request.d.ts.map +1 -1
  60. package/dist/libs/importers/curl.js +4 -4
  61. package/dist/store/active-entities.d.ts +13 -4
  62. package/dist/store/active-entities.d.ts.map +1 -1
  63. package/dist/store/collections.d.ts.map +1 -1
  64. package/dist/store/import-spec.d.ts.map +1 -1
  65. package/dist/store/request-example.d.ts +52 -2
  66. package/dist/store/request-example.d.ts.map +1 -1
  67. package/dist/store/requests.d.ts +2 -2
  68. package/dist/store/requests.d.ts.map +1 -1
  69. package/dist/store/servers.d.ts +40 -20
  70. package/dist/store/servers.d.ts.map +1 -1
  71. package/dist/store/store.d.ts +95 -28
  72. package/dist/store/store.d.ts.map +1 -1
  73. package/dist/store/store.js +51 -53
  74. package/dist/style.css +1 -1
  75. package/dist/views/Cookies/Cookies.vue2.js +1 -1
  76. package/dist/views/Environment/Environment.vue2.js +1 -1
  77. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  78. package/dist/views/Request/Request.vue.js +2 -2
  79. package/dist/views/Request/Request.vue2.js +88 -89
  80. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  81. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  82. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +87 -88
  83. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +2 -1
  84. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  85. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
  86. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +16 -17
  87. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +2 -2
  88. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +1 -1
  89. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  90. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +57 -74
  91. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  92. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  93. package/dist/views/Request/RequestSection/RequestSection.vue2.js +39 -38
  94. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
  95. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  96. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  97. package/dist/views/Request/RequestSection/RequestTable.vue2.js +8 -7
  98. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  99. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  100. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +5 -5
  101. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  102. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  103. package/dist/views/Request/RequestSidebar.vue2.js +143 -143
  104. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  105. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  106. package/dist/views/Request/RequestSidebarItem.vue2.js +71 -71
  107. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  108. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  109. package/dist/views/Request/RequestSubpageHeader.vue2.js +37 -37
  110. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  111. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  112. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +27 -27
  113. package/dist/views/Request/handle-drag.d.ts +1 -1
  114. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  115. package/dist/views/Request/handle-drag.js +27 -26
  116. package/dist/views/Request/hooks/useOpenApiWatcher.js +1 -1
  117. package/dist/views/Request/libs/{live-sync.d.ts → watch-mode.d.ts} +1 -1
  118. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -0
  119. package/dist/views/Request/libs/{live-sync.js → watch-mode.js} +6 -6
  120. package/dist/views/Servers/Servers.vue2.js +29 -29
  121. package/package.json +14 -14
  122. package/dist/views/Request/libs/live-sync.d.ts.map +0 -1
@@ -1,60 +1,61 @@
1
- function E(s, {
1
+ import { useLayout as w } from "../../hooks/useLayout.js";
2
+ function H(u, {
2
3
  collections: r,
3
- collectionMutators: x,
4
- isReadOnly: I,
4
+ collectionMutators: a,
5
5
  tags: l,
6
- tagMutators: U,
7
- workspaceMutators: a
6
+ tagMutators: x,
7
+ workspaceMutators: U
8
8
  }) {
9
- function D(i, f) {
10
- r[i] ? x.edit(i, "children", f) : l[i] && U.edit(i, "children", f);
9
+ const { layout: b } = w();
10
+ function p(i, f) {
11
+ r[i] ? a.edit(i, "children", f) : l[i] && x.edit(i, "children", f);
11
12
  }
12
- function P(i, f) {
13
- var p, v, C, b;
13
+ function I(i, f) {
14
+ var D, v, y, C;
14
15
  if (!i || !f) return;
15
- const { id: d, parentId: n } = i, { id: t, parentId: u, offset: c } = f;
16
- if (n ? r[n] ? x.edit(
16
+ const { id: d, parentId: n } = i, { id: t, parentId: s, offset: h } = f;
17
+ if (n ? r[n] ? a.edit(
17
18
  n,
18
19
  "children",
19
20
  r[n].children.filter(
20
21
  (e) => e !== d
21
22
  )
22
- ) : l[n] && U.edit(
23
+ ) : l[n] && x.edit(
23
24
  n,
24
25
  "children",
25
26
  l[n].children.filter((e) => e !== d)
26
- ) : a.edit(
27
- ((p = s.value) == null ? void 0 : p.uid) ?? "",
27
+ ) : U.edit(
28
+ ((D = u.value) == null ? void 0 : D.uid) ?? "",
28
29
  "collections",
29
- ((v = s.value) == null ? void 0 : v.collections.filter(
30
+ ((v = u.value) == null ? void 0 : v.collections.filter(
30
31
  (e) => e !== d
31
32
  )) ?? []
32
- ), c === 2) {
33
+ ), h === 2) {
33
34
  const e = r[t] || l[t];
34
- D(t, [
35
+ p(t, [
35
36
  ...(e == null ? void 0 : e.children) ?? [],
36
37
  d
37
38
  ]);
38
- } else if (u) {
39
- const e = r[u] || l[u], h = [...(e == null ? void 0 : e.children) ?? []], o = h.findIndex((w) => t === w) ?? 0;
40
- h.splice(o + c, 0, d), D(u, h);
39
+ } else if (s) {
40
+ const e = r[s] || l[s], o = [...(e == null ? void 0 : e.children) ?? []], c = o.findIndex((P) => t === P) ?? 0;
41
+ o.splice(c + h, 0, d), p(s, o);
41
42
  } else {
42
- const e = [...((C = s.value) == null ? void 0 : C.collections) ?? []], h = e.findIndex((o) => t === o) ?? 0;
43
- e.splice(h + c, 0, d), a.edit(
44
- ((b = s.value) == null ? void 0 : b.uid) ?? "",
43
+ const e = [...((y = u.value) == null ? void 0 : y.collections) ?? []], o = e.findIndex((c) => t === c) ?? 0;
44
+ e.splice(o + h, 0, d), U.edit(
45
+ ((C = u.value) == null ? void 0 : C.uid) ?? "",
45
46
  "collections",
46
47
  e
47
48
  );
48
49
  }
49
50
  }
50
51
  return {
51
- handleDragEnd: P,
52
+ handleDragEnd: I,
52
53
  isDroppable: (i, f) => {
53
54
  var d, n;
54
- return !(I || !r[i.id] && f.offset !== 2 || r[i.id] && ((n = (d = r[f.id]) == null ? void 0 : d.info) == null ? void 0 : n.title) === "Drafts");
55
+ return !(b === "modal" || !r[i.id] && f.offset !== 2 || r[i.id] && ((n = (d = r[f.id]) == null ? void 0 : d.info) == null ? void 0 : n.title) === "Drafts");
55
56
  }
56
57
  };
57
58
  }
58
59
  export {
59
- E as dragHandlerFactory
60
+ H as dragHandlerFactory
60
61
  };
@@ -1,6 +1,6 @@
1
1
  import { useActiveEntities as R } from "../../../store/active-entities.js";
2
2
  import { specDictionary as f } from "../../../store/import-spec.js";
3
- import { combineRenameDiffs as S, mutateCollectionDiff as d, mutateSecuritySchemeDiff as g, mutateServerDiff as D, mutateTagDiff as T, mutateRequestDiff as M } from "../libs/live-sync.js";
3
+ import { combineRenameDiffs as S, mutateCollectionDiff as d, mutateSecuritySchemeDiff as g, mutateServerDiff as D, mutateTagDiff as T, mutateRequestDiff as M } from "../libs/watch-mode.js";
4
4
  import { fetchSpecFromUrl as I, createHash as U } from "@scalar/oas-utils/helpers";
5
5
  import { parseSchema as O } from "@scalar/oas-utils/transforms";
6
6
  import { useToasts as C } from "@scalar/use-toasts";
@@ -57,4 +57,4 @@ export declare const narrowUnionSchema: (schema: ZodSchema, key: string, value:
57
57
  * @returns true if it succeeds, and false for a failure
58
58
  */
59
59
  export declare const mutateSecuritySchemeDiff: (diff: Difference, { activeCollection }: ActiveEntitiesStore, { securitySchemes, securitySchemeMutators }: WorkspaceStore) => boolean;
60
- //# sourceMappingURL=live-sync.d.ts.map
60
+ //# sourceMappingURL=watch-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch-mode.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/watch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EAEf,MAAM,6BAA6B,CAAA;AAEpC,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SACvB,UAAU,EAAE,eACN,MAAM,EAAE,KACnB,UAAU,EA8FZ,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;AAUD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WACpB,SAAS,QACX,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KACxB,SAAS,GAAG,IAqDd,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,UACjB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,QAC/B,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,mGAAmG;IACnG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACrB,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;CACzC,GAAG,IAwBH,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,wBACM,mBAAmB,0BACjB,cAAc,KACrC,OA0CF,CAAA;AAwBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SACtB,UAAU,wBACM,mBAAmB,SAClC,cAAc,KACpB,OA2IF,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,SACrB,UAAU,wBACM,mBAAmB,+BACZ,cAAc,KAC1C,OAsCF,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,aAAa,SAClB,UAAU,wBACM,mBAAmB,yBAClB,cAAc,KACpC,OAmCF,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WACpB,SAAS,OACZ,MAAM,SACJ,MAAM,KACZ,SAAS,GAAG,IAmBd,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,wBACM,mBAAmB,+CACI,cAAc,KAC1D,OA8CF,CAAA"}
@@ -51,7 +51,7 @@ const G = (e, s = []) => {
51
51
  if (u && t(u)) return u;
52
52
  }
53
53
  return null;
54
- }, d = (e) => e instanceof i.ZodOptional ? d(e.unwrap()) : e instanceof i.ZodDefault ? d(e._def.innerType) : e, w = (e, s) => {
54
+ }, d = (e) => e instanceof i.ZodOptional ? d(e.unwrap()) : e instanceof i.ZodDefault ? d(e._def.innerType) : e instanceof i.ZodEffects ? d(e._def.schema) : e, _ = (e, s) => {
55
55
  let t = e;
56
56
  for (const a of s) {
57
57
  if (t = d(t), t instanceof i.ZodAny)
@@ -76,7 +76,7 @@ const G = (e, s = []) => {
76
76
  }
77
77
  return t;
78
78
  }, E = (e, s) => {
79
- const t = w(e, s.path);
79
+ const t = _(e, s.path);
80
80
  if (!t) return null;
81
81
  const a = s.path.join("."), u = s.path.slice(0, -1).join(".");
82
82
  if (s.type === "REMOVE")
@@ -235,7 +235,7 @@ const G = (e, s = []) => {
235
235
  a.add(n, s.value.uid);
236
236
  }
237
237
  return !0;
238
- }, U = (e, s, t) => {
238
+ }, w = (e, s, t) => {
239
239
  const a = d(e);
240
240
  if (a instanceof i.ZodUnion || a instanceof i.ZodDiscriminatedUnion) {
241
241
  for (const u of a.options)
@@ -251,7 +251,7 @@ const G = (e, s = []) => {
251
251
  (l) => l.nameKey === u
252
252
  );
253
253
  if (r != null && r.length) {
254
- const l = U(
254
+ const l = w(
255
255
  Z,
256
256
  "type",
257
257
  (n == null ? void 0 : n.type) ?? ""
@@ -278,7 +278,7 @@ export {
278
278
  J as mutateSecuritySchemeDiff,
279
279
  W as mutateServerDiff,
280
280
  I as mutateTagDiff,
281
- U as narrowUnionSchema,
281
+ w as narrowUnionSchema,
282
282
  E as parseDiff,
283
- w as traverseZodSchema
283
+ _ as traverseZodSchema
284
284
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, computed as f, openBlock as n, createBlock as p, withCtx as i, createVNode as s, unref as a, createElementVNode as l, createElementBlock as v, Fragment as g, renderList as w, normalizeClass as y, toDisplayString as F, withModifiers as R, withDirectives as M, createCommentVNode as O, vShow as q, createTextVNode as K } from "vue";
1
+ import { defineComponent as P, computed as f, openBlock as n, createBlock as p, withCtx as a, createVNode as s, unref as l, createElementVNode as i, createElementBlock as v, Fragment as g, renderList as w, normalizeClass as y, toDisplayString as F, withModifiers as R, withDirectives as M, createCommentVNode as O, vShow as q, createTextVNode as K } from "vue";
2
2
  import T from "../../components/Sidebar/SidebarButton.vue.js";
3
3
  import U from "../../components/Sidebar/SidebarList.vue.js";
4
4
  import W from "../../components/Sidebar/SidebarListElement.vue.js";
@@ -12,9 +12,9 @@ import Z from "./ServerForm.vue.js";
12
12
  import { useWorkspace as ee } from "../../store/store.js";
13
13
  import te from "../../components/Sidebar/Sidebar.vue.js";
14
14
  import { useSidebar as re } from "../../hooks/useSidebar.js";
15
- const oe = { class: "flex-1" }, se = ["onClick"], ae = { class: "flex h-5 items-center justify-center max-w-[14px] pr-px" }, ie = { class: "break-all line-clamp-1 font-medium text-left w-full" }, we = /* @__PURE__ */ P({
15
+ const oe = { class: "flex-1" }, se = ["onClick"], le = { class: "flex h-5 items-center justify-center max-w-[14px] pr-px" }, ae = { class: "break-all line-clamp-1 font-medium text-left w-full" }, we = /* @__PURE__ */ P({
16
16
  __name: "Servers",
17
- setup(le) {
17
+ setup(ie) {
18
18
  const { activeWorkspaceCollections: S, activeWorkspace: c, activeCollection: d } = J(), { servers: I, events: $, serverMutators: D } = ee(), { push: z } = X(), h = Y(), { collapsedSidebarFolders: x, toggleSidebarFolder: A } = re(), k = f(() => h.params.collectionId), L = f(() => h.params.servers), N = (r) => x[r];
19
19
  function m(r) {
20
20
  $.commandPalette.emit({
@@ -37,49 +37,49 @@ const oe = { class: "flex-1" }, se = ["onClick"], ae = { class: "flex h-5 items-
37
37
  (t = d == null ? void 0 : d.value) != null && t.uid && D.delete(r, k.value);
38
38
  }
39
39
  return (r, t) => (n(), p(G, null, {
40
- default: i(() => [
41
- s(a(te), { title: "Servers" }, {
42
- content: i(() => [
43
- l("div", oe, [
40
+ default: a(() => [
41
+ s(l(te), { title: "Servers" }, {
42
+ content: a(() => [
43
+ i("div", oe, [
44
44
  s(U, null, {
45
- default: i(() => [
45
+ default: a(() => [
46
46
  (n(!0), v(g, null, w(V.value, (e) => {
47
47
  var u;
48
- return n(), v("div", {
48
+ return n(), v("li", {
49
49
  key: e.uid,
50
50
  class: "flex flex-col gap-1/2"
51
51
  }, [
52
- l("button", {
52
+ i("button", {
53
53
  class: "flex font-medium gap-1.5 group items-center p-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
54
54
  type: "button",
55
- onClick: (o) => a(A)(e.uid)
55
+ onClick: (o) => l(A)(e.uid)
56
56
  }, [
57
- l("span", ae, [
58
- s(a(Q), {
57
+ i("span", le, [
58
+ s(l(Q), {
59
59
  class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
60
60
  src: e["x-scalar-icon"] || "interface-content-folder"
61
61
  }, null, 8, ["src"]),
62
- l("div", {
62
+ i("div", {
63
63
  class: y({
64
- "rotate-90": a(x)[e.uid]
64
+ "rotate-90": l(x)[e.uid]
65
65
  })
66
66
  }, [
67
- s(a(b), {
67
+ s(l(b), {
68
68
  class: "text-c-3 hidden text-sm group-hover:block",
69
69
  icon: "ChevronRight",
70
70
  size: "md"
71
71
  })
72
72
  ], 2)
73
73
  ]),
74
- l("span", ie, F(((u = e.info) == null ? void 0 : u.title) ?? ""), 1),
75
- s(a(C), {
74
+ i("span", ae, F(((u = e.info) == null ? void 0 : u.title) ?? ""), 1),
75
+ s(l(C), {
76
76
  class: "hidden group-hover:block px-0.5 py-0 hover:bg-b-3 hover:text-c-1 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
77
77
  size: "sm",
78
78
  variant: "ghost",
79
79
  onClick: R((o) => m(e.uid), ["stop", "prevent"])
80
80
  }, {
81
- default: i(() => [
82
- s(a(b), {
81
+ default: a(() => [
82
+ s(l(b), {
83
83
  icon: "Add",
84
84
  size: "md",
85
85
  thickness: "2"
@@ -88,7 +88,7 @@ const oe = { class: "flex-1" }, se = ["onClick"], ae = { class: "flex h-5 items-
88
88
  _: 2
89
89
  }, 1032, ["onClick"])
90
90
  ], 8, se),
91
- M(l("div", {
91
+ M(i("div", {
92
92
  class: y({
93
93
  "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] flex flex-col gap-1/2 mb-[.5px] last:mb-0 relative": Object.keys(e.servers || {}).length > 0
94
94
  })
@@ -102,26 +102,26 @@ const oe = { class: "flex-1" }, se = ["onClick"], ae = { class: "flex h-5 items-
102
102
  isDeletable: !0,
103
103
  type: "servers",
104
104
  variable: {
105
- name: ((_ = a(I)[o]) == null ? void 0 : _.url) ?? "",
105
+ name: ((_ = l(I)[o]) == null ? void 0 : _.url) ?? "",
106
106
  uid: o
107
107
  },
108
108
  onClick: (E) => j(E, o, e.uid),
109
109
  onDelete: B
110
110
  }, null, 8, ["collectionId", "variable", "onClick"]);
111
111
  }), 128)),
112
- Object.keys(e.servers || {}).length === 0 ? (n(), p(a(C), {
112
+ Object.keys(e.servers || {}).length === 0 ? (n(), p(l(C), {
113
113
  key: 0,
114
114
  class: "mb-[.5px] flex gap-1.5 h-8 text-c-1 pl-6 py-0 justify-start text-xs w-full hover:bg-b-2",
115
115
  variant: "ghost",
116
116
  onClick: (o) => m(e.uid)
117
117
  }, {
118
- default: i(() => [
119
- s(a(b), {
118
+ default: a(() => [
119
+ s(l(b), {
120
120
  class: "ml-0.5 h-2.5 w-2.5",
121
121
  icon: "Add",
122
122
  thickness: "3"
123
123
  }),
124
- t[0] || (t[0] = l("span", null, "Add Server", -1))
124
+ t[0] || (t[0] = i("span", null, "Add Server", -1))
125
125
  ]),
126
126
  _: 2
127
127
  }, 1032, ["onClick"])) : O("", !0)
@@ -135,9 +135,9 @@ const oe = { class: "flex-1" }, se = ["onClick"], ae = { class: "flex h-5 items-
135
135
  })
136
136
  ])
137
137
  ]),
138
- button: i(() => [
138
+ button: a(() => [
139
139
  s(T, { click: m }, {
140
- title: i(() => t[1] || (t[1] = [
140
+ title: a(() => t[1] || (t[1] = [
141
141
  K("Add Server")
142
142
  ])),
143
143
  _: 1
@@ -146,7 +146,7 @@ const oe = { class: "flex-1" }, se = ["onClick"], ae = { class: "flex h-5 items-
146
146
  _: 1
147
147
  }),
148
148
  s(H, { class: "flex-1" }, {
149
- default: i(() => [
149
+ default: a(() => [
150
150
  s(Z, {
151
151
  collectionId: k.value,
152
152
  serverUid: L.value
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.2.37",
21
+ "version": "2.2.38",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -178,21 +178,21 @@
178
178
  "whatwg-mimetype": "^4.0.0",
179
179
  "yaml": "^2.4.5",
180
180
  "zod": "^3.23.8",
181
- "@scalar/components": "0.13.16",
182
181
  "@scalar/draggable": "0.1.8",
183
- "@scalar/import": "0.2.19",
184
- "@scalar/oas-utils": "0.2.99",
185
- "@scalar/object-utils": "1.1.12",
182
+ "@scalar/components": "0.13.17",
186
183
  "@scalar/icons": "0.1.2",
184
+ "@scalar/import": "0.2.20",
185
+ "@scalar/oas-utils": "0.2.100",
186
+ "@scalar/object-utils": "1.1.12",
187
187
  "@scalar/openapi-parser": "0.10.4",
188
188
  "@scalar/openapi-types": "0.1.6",
189
- "@scalar/postman-to-openapi": "0.1.22",
190
- "@scalar/themes": "0.9.61",
191
- "@scalar/types": "0.0.27",
192
- "@scalar/use-codemirror": "0.11.61",
193
- "@scalar/use-hooks": "0.1.15",
194
- "@scalar/use-tooltip": "1.0.5",
195
- "@scalar/use-toasts": "0.7.8"
189
+ "@scalar/postman-to-openapi": "0.1.23",
190
+ "@scalar/themes": "0.9.62",
191
+ "@scalar/types": "0.0.28",
192
+ "@scalar/use-hooks": "0.1.16",
193
+ "@scalar/use-codemirror": "0.11.62",
194
+ "@scalar/use-toasts": "0.7.8",
195
+ "@scalar/use-tooltip": "1.0.5"
196
196
  },
197
197
  "devDependencies": {
198
198
  "@types/shell-quote": "^1.7.5",
@@ -208,8 +208,8 @@
208
208
  "vite": "^5.4.10",
209
209
  "vite-svg-loader": "^5.1.0",
210
210
  "vitest": "^1.6.0",
211
- "@scalar/galaxy": "0.2.17",
212
- "@scalar/build-tooling": "0.1.12"
211
+ "@scalar/build-tooling": "0.1.12",
212
+ "@scalar/galaxy": "0.2.18"
213
213
  },
214
214
  "scripts": {
215
215
  "build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
@@ -1 +0,0 @@
1
- {"version":3,"file":"live-sync.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/live-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EAEf,MAAM,6BAA6B,CAAA;AAEpC,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SACvB,UAAU,EAAE,eACN,MAAM,EAAE,KACnB,UAAU,EA8FZ,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;AASD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WACpB,SAAS,QACX,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KACxB,SAAS,GAAG,IAqDd,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,UACjB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,QAC/B,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,mGAAmG;IACnG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACrB,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;CACzC,GAAG,IAwBH,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,wBACM,mBAAmB,0BACjB,cAAc,KACrC,OA0CF,CAAA;AAwBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SACtB,UAAU,wBACM,mBAAmB,SAClC,cAAc,KACpB,OA2IF,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,SACrB,UAAU,wBACM,mBAAmB,+BACZ,cAAc,KAC1C,OAsCF,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,aAAa,SAClB,UAAU,wBACM,mBAAmB,yBAClB,cAAc,KACpC,OAmCF,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WACpB,SAAS,OACZ,MAAM,SACJ,MAAM,KACZ,SAAS,GAAG,IAmBd,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,wBACM,mBAAmB,+CACI,cAAc,KAC1D,OA8CF,CAAA"}