@scalar/api-client 2.0.11 → 2.0.13

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 (44) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/App.vue.d.ts.map +1 -1
  3. package/dist/App.vue.js +38 -27
  4. package/dist/Modal/api-client-modal.d.ts +2 -1
  5. package/dist/Modal/api-client-modal.d.ts.map +1 -1
  6. package/dist/Modal/api-client-modal.js +49 -40
  7. package/dist/components/ActionModal/ActionModalFolder.vue.js +37 -35
  8. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  9. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  10. package/dist/components/AddressBar/AddressBar.vue2.js +42 -42
  11. package/dist/components/AddressBar/AddressBarServer.vue.d.ts +1 -14
  12. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  13. package/dist/components/AddressBar/AddressBarServer.vue.js +50 -55
  14. package/dist/components/Sidebar/Sidebar.vue.js +5 -5
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +8 -9
  18. package/dist/libs/index.d.ts +1 -0
  19. package/dist/libs/index.d.ts.map +1 -1
  20. package/dist/libs/index.js +10 -8
  21. package/dist/libs/local-storage.d.ts +9 -0
  22. package/dist/libs/local-storage.d.ts.map +1 -0
  23. package/dist/libs/local-storage.js +36 -0
  24. package/dist/router.d.ts +2 -2
  25. package/dist/router.d.ts.map +1 -1
  26. package/dist/router.js +13 -13
  27. package/dist/store/workspace.d.ts +511 -269
  28. package/dist/store/workspace.d.ts.map +1 -1
  29. package/dist/store/workspace.js +213 -157
  30. package/dist/style.css +1 -1
  31. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  32. package/dist/views/Request/Request.vue.js +2 -2
  33. package/dist/views/Request/Request.vue2.js +93 -91
  34. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  35. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  36. package/dist/views/Request/RequestSection/RequestTable.vue2.js +28 -28
  37. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  38. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  39. package/dist/views/Request/RequestSidebarItem.vue2.js +25 -25
  40. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  41. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  42. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +56 -56
  43. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +11 -11
  44. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 618285e: feat: add localStorage syncing to client app
8
+ - Updated dependencies [618285e]
9
+ - @scalar/object-utils@1.1.4
10
+ - @scalar/oas-utils@0.2.12
11
+ - @scalar/themes@0.9.13
12
+ - @scalar/components@0.12.10
13
+
14
+ ## 2.0.12
15
+
16
+ ### Patch Changes
17
+
18
+ - 0a33194: fix: flatten default array value
19
+
3
20
  ## 2.0.11
4
21
 
5
22
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";AAyLA,wBAKG;AAEH,eAAO,MAAM,sBAAsB,IAAK,CAAC;AACzC,OAAO,CAAC,MAAM,CAAC;IAEd,KAAK,uBAAuB,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAE1K,KAAK,aAAa,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,CA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AAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,GACxE,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GACnD;SAAG,CAAC,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI;KAAG,GAC5C,KAAK,GACL,KAAK,CAAC;IACT,KAAK,oBAAoB,CAAC,CAAC,IAAI,oBAAoB,CAClD,yBAAyB,CACxB,0BAA0B,CAAC,CAAC,CAAC,GAAG;SAC9B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG;YAAE,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;SAAE,GAAG,KAAK;KACtE,CACD,CACD,CAAC;IACF,KAAK,oBAAoB,CAAC,CAAC,IAAI;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAG,GAAG,EAAE,CAAC;CAC9D;AACD,eAAO,MAAM,oBAAoB,IAAK,CAAC"}
package/dist/App.vue.js CHANGED
@@ -1,38 +1,49 @@
1
- import { defineComponent as l, onMounted as t, watchEffect as c, onBeforeMount as n, openBlock as i, createElementBlock as p, Fragment as d, createVNode as e, createElementVNode as r, unref as a } from "vue";
2
- import f from "./components/SideNav/SideNav.vue.js";
3
- import u from "./components/TopNav/TopNav.vue.js";
4
- import { useWorkspace as _ } from "./store/workspace.js";
1
+ import { defineComponent as m, onMounted as i, watchEffect as f, onBeforeMount as p, openBlock as d, createElementBlock as u, Fragment as _, createVNode as t, createElementVNode as n, unref as c } from "vue";
2
+ import g from "./components/SideNav/SideNav.vue.js";
3
+ import h from "./components/TopNav/TopNav.vue.js";
4
+ import { useWorkspace as S } from "./store/workspace.js";
5
5
  import { addScalarClassesToHeadless as x } from "@scalar/components";
6
- import { ScalarToasts as h } from "@scalar/use-toasts";
7
- import { RouterView as g } from "vue-router";
8
- import { useDarkModeState as k } from "./hooks/useDarkModeState.js";
9
- const y = { class: "flex min-h-0 flex-1" }, v = { class: "flex flex-1 flex-col min-w-0" }, F = /* @__PURE__ */ l({
6
+ import { LS_KEYS as k } from "@scalar/object-utils/mutator-record";
7
+ import { ScalarToasts as y } from "@scalar/use-toasts";
8
+ import { RouterView as v } from "vue-router";
9
+ import { loadAllResources as b } from "./libs/local-storage.js";
10
+ import { useDarkModeState as w } from "./hooks/useDarkModeState.js";
11
+ const B = { class: "flex min-h-0 flex-1" }, E = { class: "flex flex-1 flex-col min-w-0" }, $ = /* @__PURE__ */ m({
10
12
  __name: "App",
11
- setup(w) {
12
- t(() => {
13
- c(() => {
14
- document.body.classList.toggle("dark-mode", o.value), document.body.classList.toggle("light-mode", !o.value);
13
+ setup(T) {
14
+ i(() => {
15
+ f(() => {
16
+ document.body.classList.toggle("dark-mode", a.value), document.body.classList.toggle("light-mode", !a.value);
15
17
  });
16
18
  });
17
- const { isDark: o } = k(), { importSpecFromUrl: s, workspaceMutators: m } = _();
18
- return m.edit("proxyUrl", "https://proxy.scalar.com"), n(() => x()), t(() => {
19
- s(
20
- "https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml"
21
- // 'https://developer.spotify.com/reference/web-api/open-api-schema.yaml',
22
- // 'https://proxy.scalar.com',
23
- );
24
- }), (M, S) => (i(), p(d, null, [
25
- e(u),
26
- r("main", y, [
27
- e(f),
28
- r("div", v, [
29
- e(a(g))
19
+ const { isDark: a } = w(), s = S();
20
+ return p(async () => {
21
+ if (localStorage.getItem(`${k.WORKSPACE}default`)) {
22
+ console.info("Remove this before going live, but here are the stats: ");
23
+ const o = {};
24
+ let l = 0, r = 0, e = "";
25
+ for (e in localStorage)
26
+ Object.prototype.hasOwnProperty.call(localStorage, e) && (r = (localStorage[e].length + e.length) * 2, l += r, o[e] = (r / 1024).toFixed(2) + " KB");
27
+ o.Total = (l / 1024).toFixed(2) + " KB", console.table(o), b(s);
28
+ } else
29
+ s.importSpecFromUrl(
30
+ "https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml"
31
+ // 'https://developer.spotify.com/reference/web-api/open-api-schema.yaml',
32
+ // 'https://proxy.scalar.com',
33
+ );
34
+ x();
35
+ }), (o, l) => (d(), u(_, null, [
36
+ t(h),
37
+ n("main", B, [
38
+ t(g),
39
+ n("div", E, [
40
+ t(c(v))
30
41
  ])
31
42
  ]),
32
- e(a(h))
43
+ t(c(y))
33
44
  ], 64));
34
45
  }
35
46
  });
36
47
  export {
37
- F as default
48
+ $ as default
38
49
  };
@@ -1,5 +1,6 @@
1
1
  import type { AuthenticationState, SpecConfiguration } from '@scalar/oas-utils';
2
2
  import { type RequestMethod } from '@scalar/oas-utils/helpers';
3
+ import type { ThemeId } from '@scalar/themes';
3
4
  /** Configuration options for the Scalar API client */
4
5
  export type ClientConfiguration = {
5
6
  /** The Swagger/OpenAPI spec to render */
@@ -7,7 +8,7 @@ export type ClientConfiguration = {
7
8
  /** Pass in a proxy to the API client */
8
9
  proxyUrl?: string;
9
10
  /** Pass in a theme API client */
10
- themeId?: string;
11
+ themeId?: ThemeId;
11
12
  /** Whether to show the sidebar */
12
13
  showSidebar?: boolean;
13
14
  /** Whether dark mode is on or off initially (light mode) */
@@ -1 +1 @@
1
- {"version":3,"file":"api-client-modal.d.ts","sourceRoot":"","sources":["../../src/Modal/api-client-modal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAG/E,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,2BAA2B,CAAA;AAQ3E,sDAAsD;AACtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,yCAAyC;IACzC,IAAI,EAAE,iBAAiB,CAAA;IACvB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4DAA4D;IAE5D,mFAAmF;IACnF,YAAY,CAAC,EACT,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAA;CACR,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,CAAA;AAEvE,yCAAyC;AACzC,eAAO,MAAM,qBAAqB,OAE5B,WAAW,GAAG,IAAI,UAEd,mBAAmB;IA6DzB,+DAA+D;;IAE/D,mCAAmC;4BACX,mBAAmB;IAQ3C;;;OAGG;iCAC0B,MAAM;IAMnC;;;OAGG;uBACgB,mBAAmB;IAyEtC,uEAAuE;uBACpD,iBAAiB;IAapC,iCAAiC;qBAChB,iBAAiB;IAalC,8CAA8C;;;;;;;EAIjD,CAAA"}
1
+ {"version":3,"file":"api-client-modal.d.ts","sourceRoot":"","sources":["../../src/Modal/api-client-modal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAG/E,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,2BAA2B,CAAA;AAG3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAM7C,sDAAsD;AACtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,yCAAyC;IACzC,IAAI,EAAE,iBAAiB,CAAA;IACvB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iCAAiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4DAA4D;IAE5D,mFAAmF;IACnF,YAAY,CAAC,EACT,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAA;CACR,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,CAAA;AAEvE,yCAAyC;AACzC,eAAO,MAAM,qBAAqB,OAE5B,WAAW,GAAG,IAAI,UAEd,mBAAmB;IAyEzB,+DAA+D;;IAE/D,mCAAmC;4BACX,mBAAmB;IAQ3C;;;OAGG;iCAC0B,MAAM;IAMnC;;;OAGG;uBACgB,mBAAmB;IAyEtC,uEAAuE;uBACpD,iBAAiB;IAapC,iCAAiC;qBAChB,iBAAiB;IAalC,8CAA8C;;;;;;;EAIjD,CAAA"}
@@ -1,31 +1,32 @@
1
- import { clientRouter as A } from "../router.js";
2
- import { useWorkspace as x } from "../store/workspace.js";
3
- import { objectMerge as O } from "@scalar/oas-utils/helpers";
4
- import { getNestedValue as R } from "@scalar/object-utils/nested";
5
- import { createApp as j } from "vue";
6
- import C from "./ApiClientModal.vue.js";
1
+ import { modalRouter as A } from "../router.js";
2
+ import { useWorkspace as O } from "../store/workspace.js";
3
+ import { objectMerge as R } from "@scalar/oas-utils/helpers";
4
+ import { getNestedValue as j } from "@scalar/object-utils/nested";
5
+ import { createApp as C } from "vue";
6
+ import q from "./ApiClientModal.vue.js";
7
7
  const L = async (b, r, k = !0) => {
8
- var f, h, S;
8
+ var h, w, S;
9
9
  const {
10
- activeCollection: u,
11
- collectionMutators: v,
12
- importSpecFile: i,
13
- importSpecFromUrl: n,
14
- modalState: c,
15
- requests: I,
16
- securitySchemeMutators: U,
17
- securitySchemes: M,
18
- serverMutators: P,
19
- workspaceMutators: p
20
- } = x();
21
- (f = r.spec) != null && f.url ? n(r.spec.url, r.proxyUrl) : (h = r.spec) != null && h.content ? i((S = r.spec) == null ? void 0 : S.content) : console.error(
10
+ activeCollection: n,
11
+ activeWorkspace: a,
12
+ collectionMutators: I,
13
+ importSpecFile: c,
14
+ importSpecFromUrl: m,
15
+ modalState: p,
16
+ requests: U,
17
+ securitySchemeMutators: M,
18
+ securitySchemes: P,
19
+ serverMutators: x,
20
+ workspaceMutators: d
21
+ } = O();
22
+ (h = r.spec) != null && h.url ? await m(r.spec.url, r.proxyUrl) : (w = r.spec) != null && w.content ? await c((S = r.spec) == null ? void 0 : S.content) : console.error(
22
23
  "[@scalar/api-client-modal] Could not create the API client.",
23
24
  "Please provide an OpenAPI document: { spec: { url: '…' } }",
24
25
  "Read more: https://github.com/scalar/scalar/tree/main/packages/api-client-modal"
25
26
  );
26
- const d = j(C, { modalState: c });
27
- d.use(A);
28
- const m = (e = b) => {
27
+ const u = C(q, { modalState: p });
28
+ u.use(A);
29
+ const f = (e = b) => {
29
30
  if (!e) {
30
31
  console.error(
31
32
  "[@scalar/api-client-modal] Could not create the API client.",
@@ -34,14 +35,22 @@ const L = async (b, r, k = !0) => {
34
35
  );
35
36
  return;
36
37
  }
37
- d.mount(e);
38
+ u.mount(e);
38
39
  };
39
- return k && m(), p.edit("isReadOnly", !0), r.proxyUrl && p.edit("proxyUrl", r.proxyUrl), r.themeId && p.edit("themeId", r.themeId), {
40
+ return a.value && (k && f(), d.edit(a.value.uid, "isReadOnly", !0), r.proxyUrl && d.edit(
41
+ a.value.uid,
42
+ "proxyUrl",
43
+ r.proxyUrl
44
+ ), r.themeId && d.edit(
45
+ a.value.uid,
46
+ "themeId",
47
+ r.themeId
48
+ )), {
40
49
  /** The vue app instance for the modal, be careful with this */
41
- app: d,
50
+ app: u,
42
51
  /** Update the API client config */
43
52
  updateConfig(e, s = !0) {
44
- s ? Object.assign(r, e) : O(r, e), e.spec && i(e.spec);
53
+ s ? Object.assign(r, e) : R(r, e), e.spec && c(e.spec);
45
54
  },
46
55
  /**
47
56
  * TODO this is just temporary for the modal, we'll put in a proper solution later
@@ -49,8 +58,8 @@ const L = async (b, r, k = !0) => {
49
58
  */
50
59
  updateServerUrl: (e) => {
51
60
  var s;
52
- return P.edit(
53
- ((s = u.value) == null ? void 0 : s.selectedServerUid) ?? "",
61
+ return x.edit(
62
+ ((s = n.value) == null ? void 0 : s.selectedServerUid) ?? "",
54
63
  "url",
55
64
  e
56
65
  );
@@ -60,9 +69,9 @@ const L = async (b, r, k = !0) => {
60
69
  * maps the references useAuthenticationStore to the client auth
61
70
  */
62
71
  updateAuth: (e) => {
63
- var l, a;
64
- if (Object.values(M).forEach((o) => {
65
- const t = (y, w = "value") => y.length && !R(o, w).length && U.edit(o.uid, w, y);
72
+ var l, i;
73
+ if (Object.values(P).forEach((o) => {
74
+ const t = (v, y = "value") => v.length && !j(o, y).length && M.edit(o.uid, y, v);
66
75
  switch (o.type) {
67
76
  case "apiKey":
68
77
  t(e.apiKey.token);
@@ -78,8 +87,8 @@ const L = async (b, r, k = !0) => {
78
87
  const o = {
79
88
  uid: e.preferredSecurityScheme
80
89
  }, t = (l = e.securitySchemes) == null ? void 0 : l[e.preferredSecurityScheme ?? ""];
81
- (t == null ? void 0 : t.type) === "oauth2" && (o.flowKey = (a = t.flows) != null && a.implicit ? "implicit" : "password"), v.edit(
82
- u.value.uid,
90
+ (t == null ? void 0 : t.type) === "oauth2" && (o.flowKey = (i = t.flows) != null && i.implicit ? "implicit" : "password"), I.edit(
91
+ n.value.uid,
83
92
  "selectedSecuritySchemes",
84
93
  [o]
85
94
  );
@@ -87,7 +96,7 @@ const L = async (b, r, k = !0) => {
87
96
  },
88
97
  /** Update the spec file, this will re-parse it and clear your store */
89
98
  updateSpec: (e) => {
90
- e != null && e.url ? n(e.url, r.proxyUrl) : e != null && e.content ? i(e == null ? void 0 : e.content) : console.error(
99
+ e != null && e.url ? m(e.url, r.proxyUrl) : e != null && e.content ? c(e == null ? void 0 : e.content) : console.error(
91
100
  "[@scalar/api-client-modal] Could not create the API client.",
92
101
  "Please provide an OpenAPI document: { spec: { url: '…' } }",
93
102
  "Read more: https://github.com/scalar/scalar/tree/main/packages/api-client-modal"
@@ -95,20 +104,20 @@ const L = async (b, r, k = !0) => {
95
104
  },
96
105
  /** Open the API client modal */
97
106
  open: (e) => {
98
- const s = Object.values(I).find(
99
- ({ path: l, method: a }) => e ? (
107
+ const s = Object.values(U).find(
108
+ ({ path: l, method: i }) => e ? (
100
109
  // The given operation
101
- l === e.path && a === e.method
110
+ l === e.path && i === e.method
102
111
  ) : (
103
112
  // Or the first request
104
113
  !0
105
114
  )
106
115
  );
107
- s && A.push(`/request/${s.uid}`), c.open = !0;
116
+ s && A.push(`/request/${s.uid}`), p.open = !0;
108
117
  },
109
118
  /** Mount the references to a given element */
110
- mount: m,
111
- modalState: c
119
+ mount: f,
120
+ modalState: p
112
121
  };
113
122
  };
114
123
  export {
@@ -1,69 +1,71 @@
1
- import { defineComponent as _, ref as d, computed as m, openBlock as V, createElementBlock as h, Fragment as F, createVNode as n, unref as s, createElementVNode as a, toDisplayString as f, withModifiers as N, withDirectives as k, vModelText as g, withCtx as u, normalizeClass as M, createTextVNode as y } from "vue";
2
- import z from "../../assets/ascii/folder.ascii.js";
3
- import A from "../ScalarAsciiArt.vue.js";
4
- import { useWorkspace as B } from "../../store/workspace.js";
5
- import { ScalarListbox as D, ScalarButton as p, ScalarIcon as I } from "@scalar/components";
6
- const E = /* @__PURE__ */ a("span", { class: "mb-1 block font-medium" }, "Inside:", -1), G = /* @__PURE__ */ _({
1
+ import { defineComponent as _, ref as c, computed as m, openBlock as w, createElementBlock as V, Fragment as h, createVNode as s, unref as n, createElementVNode as a, toDisplayString as f, withModifiers as F, withDirectives as N, vModelText as g, withCtx as u, normalizeClass as k, createTextVNode as M } from "vue";
2
+ import y from "../../assets/ascii/folder.ascii.js";
3
+ import z from "../ScalarAsciiArt.vue.js";
4
+ import { useWorkspace as A } from "../../store/workspace.js";
5
+ import { ScalarListbox as B, ScalarButton as p, ScalarIcon as D } from "@scalar/components";
6
+ const I = /* @__PURE__ */ a("span", { class: "mb-1 block font-medium" }, "Inside:", -1), W = /* @__PURE__ */ _({
7
7
  __name: "ActionModalFolder",
8
8
  props: {
9
9
  title: {}
10
10
  },
11
11
  emits: ["close"],
12
- setup(T, { emit: v }) {
13
- const b = v, { collections: x, folderMutators: C, workspace: w } = B(), r = d(""), i = d(""), c = m(() => w.collectionUids.map((e) => {
14
- var l, o;
15
- return {
16
- id: e,
17
- label: ((o = (l = x[e].spec) == null ? void 0 : l.info) == null ? void 0 : o.title) ?? ""
18
- };
19
- })), t = m({
20
- get: () => c.value.find(
21
- ({ id: e }) => e === i.value
12
+ setup(j, { emit: v }) {
13
+ const b = v, { collections: x, folderMutators: C } = A(), i = c(""), r = c(""), d = m(
14
+ () => Object.values(x).map((e) => {
15
+ var l, o;
16
+ return {
17
+ id: e.uid,
18
+ label: ((o = (l = e.spec) == null ? void 0 : l.info) == null ? void 0 : o.title) ?? ""
19
+ };
20
+ })
21
+ ), t = m({
22
+ get: () => d.value.find(
23
+ ({ id: e }) => e === r.value
22
24
  ),
23
25
  set: (e) => {
24
- e != null && e.id && (i.value = e.id);
26
+ e != null && e.id && (r.value = e.id);
25
27
  }
26
28
  }), S = () => {
27
- r.value && t.value && (C.add(
29
+ i.value && t.value && (C.add(
28
30
  {
29
- name: r.value
31
+ name: i.value
30
32
  },
31
- i.value
33
+ r.value
32
34
  ), b("close"));
33
35
  };
34
- return (e, l) => (V(), h(F, null, [
35
- n(A, { art: s(z) }, null, 8, ["art"]),
36
+ return (e, l) => (w(), V(h, null, [
37
+ s(z, { art: n(y) }, null, 8, ["art"]),
36
38
  a("h2", null, f(e.title), 1),
37
39
  a("form", {
38
40
  class: "flex w-full flex-col gap-3",
39
- onSubmit: N(S, ["prevent"])
41
+ onSubmit: F(S, ["prevent"])
40
42
  }, [
41
- k(a("input", {
42
- "onUpdate:modelValue": l[0] || (l[0] = (o) => r.value = o),
43
+ N(a("input", {
44
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => i.value = o),
43
45
  class: "h-10 rounded border p-2",
44
46
  label: "Folder Name",
45
47
  placeholder: "Folder Name"
46
48
  }, null, 512), [
47
- [g, r.value]
49
+ [g, i.value]
48
50
  ]),
49
51
  a("div", null, [
50
- E,
51
- n(s(D), {
52
+ I,
53
+ s(n(B), {
52
54
  modelValue: t.value,
53
55
  "onUpdate:modelValue": l[1] || (l[1] = (o) => t.value = o),
54
- options: c.value,
56
+ options: d.value,
55
57
  resize: ""
56
58
  }, {
57
59
  default: u(() => [
58
- n(s(p), {
60
+ s(n(p), {
59
61
  class: "justify-between p-2 w-full",
60
62
  variant: "outlined"
61
63
  }, {
62
64
  default: u(() => [
63
65
  a("span", {
64
- class: M(t.value ? "text-c-1" : "text-c-3")
66
+ class: k(t.value ? "text-c-1" : "text-c-3")
65
67
  }, f(t.value ? t.value.label : "Select Collection"), 3),
66
- n(s(I), {
68
+ s(n(D), {
67
69
  class: "text-c-3",
68
70
  icon: "ChevronDown",
69
71
  size: "xs"
@@ -75,9 +77,9 @@ const E = /* @__PURE__ */ a("span", { class: "mb-1 block font-medium" }, "Inside
75
77
  _: 1
76
78
  }, 8, ["modelValue", "options"])
77
79
  ]),
78
- n(s(p), { type: "submit" }, {
80
+ s(n(p), { type: "submit" }, {
79
81
  default: u(() => [
80
- y(" Create Folder ")
82
+ M(" Create Folder ")
81
83
  ]),
82
84
  _: 1
83
85
  })
@@ -86,5 +88,5 @@ const E = /* @__PURE__ */ a("span", { class: "mb-1 block font-medium" }, "Inside
86
88
  }
87
89
  });
88
90
  export {
89
- G as default
91
+ W as default
90
92
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AA8oBA,wBAKG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AA4oBA,wBAKG"}
@@ -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 d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1cb234d7"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e358d509"]]);
5
5
  export {
6
6
  d as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as I, ref as v, watch as B, unref as t, openBlock as D, createElementBlock as M, createElementVNode as l, createVNode as r, withCtx as k, normalizeClass as S, normalizeStyle as N, withKeys as V, withModifiers as $, toDisplayString as T, createCommentVNode as A, pushScopeId as O, popScopeId as K } from "vue";
2
- import { useWorkspace as P } from "../../store/workspace.js";
3
- import { Listbox as U } from "@headlessui/vue";
4
- import { ScalarButton as H, ScalarIcon as L } from "@scalar/components";
1
+ import { defineComponent as I, ref as p, watch as B, unref as o, openBlock as D, createElementBlock as M, createElementVNode as l, createVNode as r, withCtx as S, normalizeClass as C, normalizeStyle as N, withKeys as V, withModifiers as $, toDisplayString as T, createCommentVNode as A, pushScopeId as K, popScopeId as O } from "vue";
2
+ import { useWorkspace as U } from "../../store/workspace.js";
3
+ import { Listbox as H } from "@headlessui/vue";
4
+ import { ScalarButton as L, ScalarIcon as P } from "@scalar/components";
5
5
  import { REQUEST_METHODS as W } from "@scalar/oas-utils/helpers";
6
6
  import { isMacOS as Q } from "@scalar/use-tooltip";
7
7
  import { useMagicKeys as j, whenever as F } from "@vueuse/core";
@@ -9,36 +9,36 @@ import G from "../HttpMethod/HttpMethod.vue.js";
9
9
  import J from "./AddressBarHistory.vue.js";
10
10
  import X from "./AddressBarServer.vue.js";
11
11
  import { executeRequestBus as m } from "../../libs/eventBusses/executeRequestBus.js";
12
- const x = (d) => (O("data-v-1cb234d7"), d = d(), K(), d), Y = {
12
+ const v = (d) => (K("data-v-e358d509"), d = d(), O(), d), Y = {
13
13
  key: 0,
14
14
  class: "order-last lg:order-none lg:w-auto w-full"
15
- }, Z = { class: "m-auto flex basis-1/2 flex-row items-center" }, ee = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, te = { class: "flex gap-1" }, oe = { class: "custom-scroll scroll-timeline-x relative flex w-full" }, le = /* @__PURE__ */ x(() => /* @__PURE__ */ l("div", { class: "fade-left" }, null, -1)), se = ["contenteditable"], ne = /* @__PURE__ */ x(() => /* @__PURE__ */ l("div", { class: "fade-right" }, null, -1)), ae = /* @__PURE__ */ x(() => /* @__PURE__ */ l("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), _e = /* @__PURE__ */ I({
15
+ }, Z = { class: "m-auto flex basis-1/2 flex-row items-center" }, ee = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, te = { class: "flex gap-1" }, oe = { class: "custom-scroll scroll-timeline-x relative flex w-full" }, le = /* @__PURE__ */ v(() => /* @__PURE__ */ l("div", { class: "fade-left" }, null, -1)), ne = ["contenteditable"], se = /* @__PURE__ */ v(() => /* @__PURE__ */ l("div", { class: "fade-right" }, null, -1)), ae = /* @__PURE__ */ v(() => /* @__PURE__ */ l("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), _e = /* @__PURE__ */ I({
16
16
  __name: "AddressBar",
17
17
  setup(d) {
18
18
  const {
19
- activeRequest: o,
20
- activeExample: C,
19
+ activeRequest: t,
20
+ activeExample: k,
21
+ isReadOnly: x,
21
22
  requestMutators: h,
22
- requestsHistory: R,
23
- workspace: f
24
- } = P(), g = v(R.value[0]), _ = j();
23
+ requestsHistory: R
24
+ } = U(), g = p(R.value[0]), _ = j();
25
25
  F(
26
26
  Q() ? _.meta_enter : _.ctrl_enter,
27
27
  () => m.emit()
28
28
  );
29
29
  const w = (e) => {
30
- o.value && h.edit(o.value.uid, "path", e);
30
+ !t.value || t.value.path === e || h.edit(t.value.uid, "path", e);
31
31
  };
32
32
  B(
33
33
  () => {
34
34
  var e;
35
- return (e = o.value) == null ? void 0 : e.path;
35
+ return (e = t.value) == null ? void 0 : e.path;
36
36
  },
37
37
  (e) => {
38
- o.value && w(e);
38
+ t.value && w(e);
39
39
  }
40
40
  );
41
- const u = v(100), c = v(!1);
41
+ const u = p(100), c = p(!1);
42
42
  m.on(() => {
43
43
  if (c.value) return;
44
44
  c.value = !0;
@@ -47,34 +47,34 @@ const x = (d) => (O("data-v-1cb234d7"), d = d(), K(), d), Y = {
47
47
  }, 20);
48
48
  });
49
49
  function E(e) {
50
- o.value && h.edit(o.value.uid, "method", e);
50
+ t.value && h.edit(t.value.uid, "method", e);
51
51
  }
52
52
  function q() {
53
- if (!o.value) return;
54
- const { method: e } = o.value;
53
+ if (!t.value) return;
54
+ const { method: e } = t.value;
55
55
  return W[e].backgroundColor;
56
56
  }
57
57
  const z = (e) => {
58
58
  var y;
59
59
  e.preventDefault();
60
- const a = (((y = e.clipboardData) == null ? void 0 : y.getData("text/plain")) || "").replace(/\n/g, ""), n = window.getSelection();
61
- if (!n || n.rangeCount === 0) return;
62
- const i = n.getRangeAt(0);
60
+ const a = (((y = e.clipboardData) == null ? void 0 : y.getData("text/plain")) || "").replace(/\n/g, ""), s = window.getSelection();
61
+ if (!s || s.rangeCount === 0) return;
62
+ const i = s.getRangeAt(0);
63
63
  i.deleteContents();
64
64
  const b = document.createTextNode(a);
65
- i.insertNode(b), i.setStartAfter(b), n.removeAllRanges(), n.addRange(i);
66
- const p = i.startContainer.parentElement;
67
- p && (p.scrollLeft = p.scrollWidth);
65
+ i.insertNode(b), i.setStartAfter(b), s.removeAllRanges(), s.addRange(i);
66
+ const f = i.startContainer.parentElement;
67
+ f && (f.scrollLeft = f.scrollWidth);
68
68
  };
69
- return (e, s) => t(o) && t(C) ? (D(), M("div", Y, [
69
+ return (e, n) => o(t) && o(k) ? (D(), M("div", Y, [
70
70
  l("div", Z, [
71
- r(t(U), {
71
+ r(o(H), {
72
72
  modelValue: g.value,
73
- "onUpdate:modelValue": s[3] || (s[3] = (a) => g.value = a)
73
+ "onUpdate:modelValue": n[3] || (n[3] = (a) => g.value = a)
74
74
  }, {
75
- default: k(({ open: a }) => [
75
+ default: S(({ open: a }) => [
76
76
  l("div", {
77
- class: S([
77
+ class: C([
78
78
  "text-xxs bg-b-1 relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last lg:order-none flex-1 flex-row items-stretch rounded border p-[3px]",
79
79
  { "rounded-b-none": a },
80
80
  { "border-transparent": a }
@@ -82,39 +82,39 @@ const x = (d) => (O("data-v-1cb234d7"), d = d(), K(), d), Y = {
82
82
  }, [
83
83
  l("div", ee, [
84
84
  l("div", {
85
- class: S(["bg-mix-transparent bg-mix-amount-95 absolute left-0 top-0 h-full w-full", q()]),
85
+ class: C(["bg-mix-transparent bg-mix-amount-95 absolute left-0 top-0 h-full w-full", q()]),
86
86
  style: N({ transform: `translate3d(-${u.value}%,0,0)` })
87
87
  }, null, 6)
88
88
  ]),
89
89
  l("div", te, [
90
90
  r(G, {
91
91
  class: "font-code text-xxs font-medium",
92
- isEditable: !t(f).isReadOnly,
92
+ isEditable: !o(x),
93
93
  isSquare: "",
94
- method: t(o).method,
94
+ method: o(t).method,
95
95
  onChange: E
96
96
  }, null, 8, ["isEditable", "method"]),
97
- r(X, { workspace: t(f) }, null, 8, ["workspace"])
97
+ r(X)
98
98
  ]),
99
99
  l("div", oe, [
100
100
  le,
101
101
  l("div", {
102
102
  class: "scroll-timeline-x-address font-code text-c-1 flex flex-1 items-center whitespace-nowrap lg:text-sm text-xs font-medium leading-[24.5px] outline-none",
103
- contenteditable: !t(f).isReadOnly,
104
- onInput: s[0] || (s[0] = (n) => w(n.target.innerText)),
105
- onKeydown: s[1] || (s[1] = V($((n) => t(m).emit(), ["prevent"]), ["enter"])),
103
+ contenteditable: !o(x),
104
+ onInput: n[0] || (n[0] = (s) => w(s.target.innerText)),
105
+ onKeydown: n[1] || (n[1] = V($((s) => o(m).emit(), ["prevent"]), ["enter"])),
106
106
  onPaste: z
107
- }, T(t(o).path), 41, se),
108
- ne
107
+ }, T(o(t).path), 41, ne),
108
+ se
109
109
  ]),
110
110
  r(J, { open: a }, null, 8, ["open"]),
111
- r(t(H), {
111
+ r(o(L), {
112
112
  class: "relative h-auto shrink-0 gap-1.5 overflow-hidden px-2.5 py-1 z-[1]",
113
113
  disabled: c.value,
114
- onClick: s[2] || (s[2] = (n) => t(m).emit())
114
+ onClick: n[2] || (n[2] = (s) => o(m).emit())
115
115
  }, {
116
- default: k(() => [
117
- r(t(L), {
116
+ default: S(() => [
117
+ r(o(P), {
118
118
  class: "relative z-10 w-2 shrink-0",
119
119
  icon: "Play",
120
120
  size: "xs"