@scalar/api-client 2.0.15 → 2.0.16

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 (112) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +46 -3
  3. package/dist/App/ApiClientApp.vue.d.ts +3 -0
  4. package/dist/App/ApiClientApp.vue.d.ts.map +1 -0
  5. package/dist/App/ApiClientApp.vue.js +56 -0
  6. package/dist/App/ApiClientApp.vue3.js +5 -0
  7. package/dist/App/createApiClientApp.d.ts +16 -0
  8. package/dist/App/createApiClientApp.d.ts.map +1 -0
  9. package/dist/App/createApiClientApp.js +62 -0
  10. package/dist/App/index.d.ts +3 -0
  11. package/dist/App/index.d.ts.map +1 -0
  12. package/dist/App/index.js +6 -0
  13. package/dist/App.vue.d.ts.map +1 -1
  14. package/dist/App.vue.js +49 -33
  15. package/dist/Modal/api-client-modal.d.ts +1 -1
  16. package/dist/Modal/api-client-modal.d.ts.map +1 -1
  17. package/dist/Modal/api-client-modal.js +7 -7
  18. package/dist/Modal/index.js +4 -4
  19. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  20. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  21. package/dist/components/AddressBar/AddressBar.vue2.js +2 -2
  22. package/dist/components/CodeInput/CodeInput.vue.d.ts +31 -4
  23. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  24. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  25. package/dist/components/CodeInput/CodeInput.vue2.js +61 -37
  26. package/dist/components/CommandPalette/CommandPalette.vue.d.ts +17 -0
  27. package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +1 -0
  28. package/dist/components/CommandPalette/CommandPalette.vue.js +7 -0
  29. package/dist/components/CommandPalette/CommandPalette.vue2.js +184 -0
  30. package/dist/components/{ActionModal/ActionModalImport.vue.d.ts → CommandPalette/CommandPaletteCollection.vue.d.ts} +1 -1
  31. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -0
  32. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +66 -0
  33. package/dist/components/CommandPalette/CommandPaletteCollection.vue2.js +4 -0
  34. package/dist/components/{ActionModal/ActionModalCollection.vue.d.ts → CommandPalette/CommandPaletteExample.vue.d.ts} +1 -1
  35. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -0
  36. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +107 -0
  37. package/dist/components/CommandPalette/CommandPaletteExample.vue2.js +4 -0
  38. package/dist/components/{ActionModal/ActionModalRequest.vue.d.ts → CommandPalette/CommandPaletteFolder.vue.d.ts} +1 -1
  39. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -0
  40. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +104 -0
  41. package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +4 -0
  42. package/dist/components/{ActionModal/ActionModalVariant.vue.d.ts → CommandPalette/CommandPaletteImport.vue.d.ts} +1 -1
  43. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -0
  44. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +86 -0
  45. package/dist/components/CommandPalette/CommandPaletteImport.vue2.js +4 -0
  46. package/dist/components/{ActionModal/ActionModalFolder.vue.d.ts → CommandPalette/CommandPaletteRequest.vue.d.ts} +1 -1
  47. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -0
  48. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +119 -0
  49. package/dist/components/CommandPalette/CommandPaletteRequest.vue2.js +4 -0
  50. package/dist/components/ContextBar.vue.js +5 -5
  51. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +6 -6
  52. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  53. package/dist/components/DataTable/DataTableCell.vue.js +4 -4
  54. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  55. package/dist/components/SideNav/SideNavLink.vue.js +3 -3
  56. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  57. package/dist/components/TopNav/TopNav.vue.js +1 -1
  58. package/dist/components/TopNav/TopNav.vue2.js +26 -26
  59. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  60. package/dist/components/TopNav/TopNavItem.vue2.js +8 -8
  61. package/dist/hooks/index.d.ts +0 -1
  62. package/dist/hooks/index.d.ts.map +1 -1
  63. package/dist/hooks/index.js +6 -9
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +11 -6
  67. package/dist/router.d.ts +4 -1
  68. package/dist/router.d.ts.map +1 -1
  69. package/dist/style.css +1 -1
  70. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  71. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +32 -31
  72. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  73. package/dist/views/Request/Request.vue.js +2 -2
  74. package/dist/views/Request/Request.vue2.js +68 -74
  75. package/dist/views/Request/RequestSection/RequestSection.vue.js +7 -7
  76. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  77. package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -5
  78. package/dist/views/Request/RequestSection/RequestTable.vue2.js +80 -64
  79. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  80. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  81. package/dist/views/Request/RequestSidebarItem.vue2.js +48 -48
  82. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  83. package/dist/views/Request/RequestSidebarItemMenu.vue.js +41 -68
  84. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  85. package/package.json +11 -6
  86. package/dist/assets/ascii/collection.ascii.js +0 -10
  87. package/dist/assets/ascii/folder.ascii.js +0 -10
  88. package/dist/assets/ascii/import.ascii.js +0 -10
  89. package/dist/assets/ascii/request.ascii.js +0 -10
  90. package/dist/assets/ascii/variant.ascii.js +0 -10
  91. package/dist/components/ActionModal/ActionModal.vue.d.ts +0 -21
  92. package/dist/components/ActionModal/ActionModal.vue.d.ts.map +0 -1
  93. package/dist/components/ActionModal/ActionModal.vue.js +0 -7
  94. package/dist/components/ActionModal/ActionModal.vue2.js +0 -117
  95. package/dist/components/ActionModal/ActionModalCollection.vue.d.ts.map +0 -1
  96. package/dist/components/ActionModal/ActionModalCollection.vue.js +0 -54
  97. package/dist/components/ActionModal/ActionModalCollection.vue2.js +0 -4
  98. package/dist/components/ActionModal/ActionModalFolder.vue.d.ts.map +0 -1
  99. package/dist/components/ActionModal/ActionModalFolder.vue.js +0 -92
  100. package/dist/components/ActionModal/ActionModalFolder.vue2.js +0 -4
  101. package/dist/components/ActionModal/ActionModalImport.vue.d.ts.map +0 -1
  102. package/dist/components/ActionModal/ActionModalImport.vue.js +0 -70
  103. package/dist/components/ActionModal/ActionModalImport.vue2.js +0 -4
  104. package/dist/components/ActionModal/ActionModalRequest.vue.d.ts.map +0 -1
  105. package/dist/components/ActionModal/ActionModalRequest.vue.js +0 -108
  106. package/dist/components/ActionModal/ActionModalRequest.vue2.js +0 -4
  107. package/dist/components/ActionModal/ActionModalVariant.vue.d.ts.map +0 -1
  108. package/dist/components/ActionModal/ActionModalVariant.vue.js +0 -93
  109. package/dist/components/ActionModal/ActionModalVariant.vue2.js +0 -4
  110. package/dist/hooks/useActionModal.d.ts +0 -16
  111. package/dist/hooks/useActionModal.d.ts.map +0 -1
  112. package/dist/hooks/useActionModal.js +0 -25
@@ -17,4 +17,4 @@ type __VLS_TypePropsToOption<T> = {
17
17
  required: true;
18
18
  };
19
19
  };
20
- //# sourceMappingURL=ActionModalVariant.vue.d.ts.map
20
+ //# sourceMappingURL=CommandPaletteImport.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPaletteImport.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteImport.vue"],"names":[],"mappings":";WA+FS,MAAM;;;;WAAN,MAAM;;;;AAgMf,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -0,0 +1,86 @@
1
+ import { defineComponent as v, ref as m, onMounted as S, openBlock as y, createElementBlock as F, Fragment as C, createElementVNode as t, toDisplayString as k, withModifiers as I, createVNode as a, unref as o, withCtx as u, createTextVNode as d } from "vue";
2
+ import { useWorkspace as N } from "../../store/workspace.js";
3
+ import { ScalarButton as f, ScalarIcon as R } from "@scalar/components";
4
+ import { useFileDialog as U } from "../../hooks/useFileDialog.js";
5
+ const A = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, B = /* @__PURE__ */ t("label", {
6
+ class: "absolute w-full h-full opacity-0 cursor-text",
7
+ for: "requestimport"
8
+ }, null, -1), D = { class: "flex gap-2" }, L = { class: "flex flex-1 gap-2 max-h-8" }, T = /* @__PURE__ */ v({
9
+ __name: "CommandPaletteImport",
10
+ props: {
11
+ title: {}
12
+ },
13
+ emits: ["close"],
14
+ setup(M, { emit: h }) {
15
+ const s = h, { importSpecFile: x, importSpecFromUrl: g } = N(), r = m(""), { open: _ } = U({
16
+ onChange: async (e) => {
17
+ const l = e == null ? void 0 : e[0];
18
+ if (l) {
19
+ const c = new FileReader();
20
+ c.onload = async (b) => {
21
+ var p;
22
+ const w = (p = b.target) == null ? void 0 : p.result;
23
+ x(w), n(), s("close");
24
+ }, c.readAsText(l);
25
+ }
26
+ },
27
+ multiple: !1,
28
+ accept: ".json,.yaml,.yml"
29
+ }), n = async () => {
30
+ r.value && (await g(r.value), s("close"));
31
+ }, i = m(null);
32
+ return S(() => {
33
+ var e;
34
+ (e = i.value) == null || e.focus();
35
+ }), (e, l) => (y(), F(C, null, [
36
+ t("h2", null, k(e.title), 1),
37
+ t("form", {
38
+ class: "flex w-full flex-col gap-3",
39
+ onSubmit: I(n, ["prevent"])
40
+ }, [
41
+ t("div", A, [
42
+ B,
43
+ t("input", {
44
+ id: "requestimport",
45
+ ref_key: "importInput",
46
+ ref: i,
47
+ class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
48
+ label: "Paste Swagger File URL",
49
+ placeholder: "Paste Swagger File URL"
50
+ }, null, 512)
51
+ ]),
52
+ t("div", D, [
53
+ t("div", L, [
54
+ a(o(f), {
55
+ class: "p-2 max-h-8 gap-1 text-xs hover:bg-b-2 relative",
56
+ variant: "outlined",
57
+ onClick: o(_)
58
+ }, {
59
+ default: u(() => [
60
+ d(" JSON, or YAML Files "),
61
+ a(o(R), {
62
+ class: "text-c-3 -rotate-90",
63
+ icon: "ArrowRight",
64
+ size: "sm"
65
+ })
66
+ ]),
67
+ _: 1
68
+ }, 8, ["onClick"])
69
+ ]),
70
+ a(o(f), {
71
+ class: "max-h-8 text-xs p-0 px-3",
72
+ type: "submit"
73
+ }, {
74
+ default: u(() => [
75
+ d(" Import Collection ")
76
+ ]),
77
+ _: 1
78
+ })
79
+ ])
80
+ ], 32)
81
+ ], 64));
82
+ }
83
+ });
84
+ export {
85
+ T as default
86
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CommandPaletteImport.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -17,4 +17,4 @@ type __VLS_TypePropsToOption<T> = {
17
17
  required: true;
18
18
  };
19
19
  };
20
- //# sourceMappingURL=ActionModalFolder.vue.d.ts.map
20
+ //# sourceMappingURL=CommandPaletteRequest.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":";WAwIS,MAAM;;;;WAAN,MAAM;;;;AA0Pf,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -0,0 +1,119 @@
1
+ import { defineComponent as y, ref as u, computed as v, onMounted as M, openBlock as V, createElementBlock as N, Fragment as R, createElementVNode as l, toDisplayString as h, withModifiers as I, withDirectives as k, vModelText as E, createVNode as s, unref as n, withCtx as c, normalizeClass as F, createTextVNode as U } from "vue";
2
+ import B from "../HttpMethod/HttpMethod.vue.js";
3
+ import { useWorkspace as D } from "../../store/workspace.js";
4
+ import { ScalarListbox as T, ScalarButton as x, ScalarIcon as j } from "@scalar/components";
5
+ import { useRouter as z } from "vue-router";
6
+ const $ = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, G = /* @__PURE__ */ l("label", {
7
+ class: "absolute w-full h-full opacity-0 cursor-text",
8
+ for: "requestname"
9
+ }, null, -1), L = { class: "flex" }, O = { class: "flex flex-1 gap-2 max-h-8" }, Q = /* @__PURE__ */ y({
10
+ __name: "CommandPaletteRequest",
11
+ props: {
12
+ title: {}
13
+ },
14
+ emits: ["close"],
15
+ setup(P, { emit: b }) {
16
+ const _ = b, { push: q } = z(), { requestMutators: g, activeCollection: r, folders: w } = D(), a = u(""), i = u("GET"), m = u(""), f = v(() => r.value ? Object.values(r.value.childUids).flatMap((e) => {
17
+ const t = w[e];
18
+ return t ? [
19
+ {
20
+ id: t.uid,
21
+ label: t.name
22
+ }
23
+ ] : [];
24
+ }) : []), o = v({
25
+ get: () => f.value.find(({ id: e }) => e === m.value),
26
+ set: (e) => {
27
+ e != null && e.id && (m.value = e.id);
28
+ }
29
+ });
30
+ function C(e) {
31
+ i.value = e;
32
+ }
33
+ function S() {
34
+ if (!r.value) return;
35
+ const e = g.add({
36
+ path: "",
37
+ method: i.value.toUpperCase(),
38
+ description: a.value,
39
+ operationId: a.value,
40
+ summary: a.value,
41
+ tags: ["default"]
42
+ });
43
+ q(`/request/${e.uid}`), _("close");
44
+ }
45
+ const p = u(null);
46
+ return M(() => {
47
+ var e;
48
+ (e = p.value) == null || e.focus();
49
+ }), (e, t) => (V(), N(R, null, [
50
+ l("h2", null, h(e.title), 1),
51
+ l("form", {
52
+ class: "flex w-full flex-col gap-3",
53
+ onSubmit: I(S, ["prevent"])
54
+ }, [
55
+ l("div", $, [
56
+ G,
57
+ k(l("input", {
58
+ id: "requestname",
59
+ ref_key: "requestInput",
60
+ ref: p,
61
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => a.value = d),
62
+ class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
63
+ label: "Request Name",
64
+ placeholder: "Request Name"
65
+ }, null, 512), [
66
+ [E, a.value]
67
+ ])
68
+ ]),
69
+ l("div", L, [
70
+ l("div", O, [
71
+ s(B, {
72
+ isEditable: !0,
73
+ isSquare: "",
74
+ method: i.value,
75
+ onChange: C
76
+ }, null, 8, ["method"]),
77
+ s(n(T), {
78
+ modelValue: o.value,
79
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => o.value = d),
80
+ options: f.value
81
+ }, {
82
+ default: c(() => [
83
+ s(n(x), {
84
+ class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
85
+ variant: "outlined"
86
+ }, {
87
+ default: c(() => [
88
+ l("span", {
89
+ class: F(o.value ? "text-c-1" : "text-c-3")
90
+ }, h(o.value ? o.value.label : "Select Folder"), 3),
91
+ s(n(j), {
92
+ class: "text-c-3",
93
+ icon: "ChevronDown",
94
+ size: "xs"
95
+ })
96
+ ]),
97
+ _: 1
98
+ })
99
+ ]),
100
+ _: 1
101
+ }, 8, ["modelValue", "options"])
102
+ ]),
103
+ s(n(x), {
104
+ class: "max-h-8 text-xs p-0 px-3",
105
+ type: "submit"
106
+ }, {
107
+ default: c(() => [
108
+ U(" Create Request ")
109
+ ]),
110
+ _: 1
111
+ })
112
+ ])
113
+ ], 32)
114
+ ], 64));
115
+ }
116
+ });
117
+ export {
118
+ Q as default
119
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CommandPaletteRequest.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as r, openBlock as n, createElementBlock as o, Fragment as i, renderList as s, normalizeClass as c, toDisplayString as a } from "vue";
2
- const b = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 sticky top-0 z-10 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
2
+ const b = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 sticky top-0 z-10 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs gap-0.5" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
3
3
  __name: "ContextBar",
4
4
  props: {
5
5
  sections: {},
6
6
  activeSection: {}
7
7
  },
8
8
  emits: ["setActiveSection"],
9
- setup(d) {
10
- return (t, p) => (n(), o("div", b, [
9
+ setup(p) {
10
+ return (t, d) => (n(), o("div", b, [
11
11
  (n(!0), o(i, null, s(t.sections, (e) => (n(), o("button", {
12
12
  key: e,
13
- class: c(["hover:text-c-1 hover:bg-b-3 w-full rounded px-1 py-1 text-center font-medium", [
14
- t.activeSection === e ? "bg-b-1 text-c-1 dark:bg-b-3 border hover:bg-b-1" : "border border-transparent"
13
+ class: c(["hover:bg-b-3 w-full rounded px-1 py-1 text-center font-medium", [
14
+ t.activeSection === e ? "!bg-b-1 text-c-1 dark:bg-b-3 border hover:bg-b-1" : "border border-transparent"
15
15
  ]]),
16
16
  isActive: t.activeSection === e,
17
17
  type: "button",
@@ -2,18 +2,18 @@ import { defineComponent as c, openBlock as l, createElementBlock as i, unref as
2
2
  import m from "../ScreenReader.vue.js";
3
3
  import { ScalarIcon as u } from "@scalar/components";
4
4
  import { useDarkModeState as f } from "../../hooks/useDarkModeState.js";
5
- const M = /* @__PURE__ */ c({
5
+ const h = /* @__PURE__ */ c({
6
6
  __name: "DarkModeIconToggle",
7
- setup(k) {
7
+ setup(g) {
8
8
  const { toggleDarkMode: t, isDark: n } = f();
9
- return (g, o) => (l(), i("button", {
10
- class: "w-[37px] hover:text-c-1 flex items-center justify-center rounded-lg p-[7px]",
9
+ return (k, o) => (l(), i("button", {
10
+ class: "w-[37px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px]",
11
11
  type: "button",
12
12
  onClick: o[0] || (o[0] = //@ts-ignore
13
13
  (...a) => e(t) && e(t)(...a))
14
14
  }, [
15
15
  r(e(u), {
16
- class: "block h-6 w-6 stroke-[0.75]",
16
+ class: "block h-6 w-6 stroke-[1.5]",
17
17
  icon: "LightDarkModeToggle"
18
18
  }),
19
19
  r(m, null, {
@@ -26,5 +26,5 @@ const M = /* @__PURE__ */ c({
26
26
  }
27
27
  });
28
28
  export {
29
- M as default
29
+ h as default
30
30
  };
@@ -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G,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,16 +1,16 @@
1
- import { defineComponent as r, openBlock as t, createBlock as o, resolveDynamicComponent as l, withCtx as a, renderSlot as s } from "vue";
1
+ import { defineComponent as r, openBlock as t, createBlock as o, resolveDynamicComponent as l, withCtx as a, renderSlot as n } from "vue";
2
2
  const m = /* @__PURE__ */ r({
3
3
  __name: "DataTableCell",
4
4
  props: {
5
5
  is: { default: "td" }
6
6
  },
7
- setup(n) {
7
+ setup(s) {
8
8
  return (e, d) => (t(), o(l(e.is), {
9
- class: "min-h-8 border-l-0 border-t-0 border-b-1/2 border-r-1/2 flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0",
9
+ class: "min-h-8 border-l-0 border-t-0 border-b-1/2 border-r-1/2 flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative min-w-full",
10
10
  role: "cell"
11
11
  }, {
12
12
  default: a(() => [
13
- s(e.$slots, "default")
13
+ n(e.$slots, "default")
14
14
  ]),
15
15
  _: 3
16
16
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AAyBA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,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C;UACjB,MAAM;aACH,OAAO;;UAFV,SAAS,CAAC,MAAM,CAAC;UACjB,MAAM;aACH,OAAO;aAsFhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as t, resolveComponent as n, openBlock as r, createBlock as s, normalizeClass as a, withCtx as c, createVNode as l, unref as i, createElementVNode as p, renderSlot as u } from "vue";
1
+ import { defineComponent as t, resolveComponent as n, openBlock as r, createBlock as a, normalizeClass as s, withCtx as c, createVNode as l, unref as i, createElementVNode as p, renderSlot as u } from "vue";
2
2
  import { ScalarIcon as m } from "@scalar/components";
3
3
  const d = { class: "sr-only" }, k = /* @__PURE__ */ t({
4
4
  __name: "SideNavLink",
@@ -10,9 +10,9 @@ const d = { class: "sr-only" }, k = /* @__PURE__ */ t({
10
10
  setup(f) {
11
11
  return (e, _) => {
12
12
  const o = n("router-link");
13
- return r(), s(o, {
13
+ return r(), a(o, {
14
14
  activeClass: "active-link",
15
- class: a(["w-[37px] hover:text-c-1 flex items-center justify-center rounded-lg p-[7px]", { "bg-b-2 transition-none hover:cursor-auto text-c-1": e.active }]),
15
+ class: s(["w-[37px] hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px]", { "bg-b-2 transition-none hover:cursor-auto text-c-1": e.active }]),
16
16
  to: e.path
17
17
  }, {
18
18
  default: c(() => [
@@ -1 +1 @@
1
- {"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";AAwNA,wBAKG"}
1
+ {"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";AA+NA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./TopNav.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-644455b8"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d4581e27"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,43 +1,43 @@
1
- import { defineComponent as f, openBlock as l, createElementBlock as a, createElementVNode as c, unref as e, createVNode as i, toDisplayString as _, Fragment as h, renderList as k, createBlock as y } from "vue";
1
+ import { defineComponent as _, computed as k, openBlock as l, createElementBlock as a, createElementVNode as c, unref as e, createVNode as i, toDisplayString as I, Fragment as N, renderList as x, createBlock as y } from "vue";
2
2
  import { useTopNav as b } from "../../store/topNav.js";
3
3
  import { ScalarIcon as m } from "@scalar/components";
4
4
  import g from "./TopNavItem.vue.js";
5
- const x = { class: "flex h-10 t-app__top-nav" }, N = { class: "flex h-10 flex-1 items-center justify-center gap-1.5 text-sm font-medium" }, I = {
5
+ const h = { class: "flex h-10 t-app__top-nav" }, C = { class: "flex h-10 flex-1 items-center justify-center gap-1.5 text-sm font-medium" }, B = {
6
6
  key: 0,
7
7
  class: "flex items-center gap-1 w-full justify-center"
8
- }, E = /* @__PURE__ */ f({
8
+ }, $ = /* @__PURE__ */ _({
9
9
  __name: "TopNav",
10
- setup(C) {
10
+ setup(S) {
11
11
  const {
12
- topNavItems: n,
12
+ topNavItems: o,
13
13
  addNavItem: s,
14
- activeNavItemIdx: p,
15
- setNavItemIdx: u,
16
- removeNavItem: v
17
- } = b();
18
- return (B, r) => (l(), a("nav", x, [
19
- c("div", N, [
20
- e(n).length === 1 ? (l(), a("div", I, [
14
+ activeNavItemIdx: v,
15
+ setNavItemIdx: p,
16
+ removeNavItem: u
17
+ } = b(), d = k(() => v.value);
18
+ return (T, r) => (l(), a("nav", h, [
19
+ c("div", C, [
20
+ e(o).length === 1 ? (l(), a("div", B, [
21
21
  i(e(m), {
22
- icon: e(n)[0].icon,
22
+ class: "stroke-[2]",
23
+ icon: e(o)[0].icon,
23
24
  size: "xs"
24
25
  }, null, 8, ["icon"]),
25
- c("div", null, _(e(n)[0].label), 1)
26
- ])) : (l(!0), a(h, { key: 1 }, k(e(n), (t, o) => (l(), y(g, {
27
- key: o,
28
- active: o === e(p),
29
- hotkey: (o + 1).toString(),
30
- icon: t.icon,
31
- label: t.label,
32
- path: t.path,
33
- onClick: (d) => e(u)(o),
34
- onClose: (d) => e(v)(o)
35
- }, null, 8, ["active", "hotkey", "icon", "label", "path", "onClick", "onClose"]))), 128)),
26
+ c("div", null, I(e(o)[0].label), 1)
27
+ ])) : (l(!0), a(N, { key: 1 }, x(e(o), (n, t) => (l(), y(g, {
28
+ key: t,
29
+ active: t === d.value,
30
+ hotkey: (t + 1).toString(),
31
+ icon: n.icon,
32
+ label: n.label,
33
+ onClick: (f) => e(p)(t),
34
+ onClose: (f) => e(u)(t)
35
+ }, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose"]))), 128)),
36
36
  c("button", {
37
37
  class: "text-c-3 hover:bg-b-2 p-1.5 rounded-lg",
38
38
  type: "button",
39
39
  onClick: r[0] || (r[0] = //@ts-ignore
40
- (...t) => e(s) && e(s)(...t))
40
+ (...n) => e(s) && e(s)(...n))
41
41
  }, [
42
42
  i(e(m), {
43
43
  icon: "Add",
@@ -49,5 +49,5 @@ const x = { class: "flex h-10 t-app__top-nav" }, N = { class: "flex h-10 flex-1
49
49
  }
50
50
  });
51
51
  export {
52
- E as default
52
+ $ as default
53
53
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./TopNavItem.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9a892de6"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a1e15ecf"]]);
5
5
  export {
6
- r as default
6
+ p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, openBlock as s, createBlock as i, unref as n, withCtx as l, createElementVNode as o, normalizeClass as p, createVNode as a, toDisplayString as f, createCommentVNode as k } from "vue";
1
+ import { defineComponent as m, openBlock as n, createBlock as i, unref as s, withCtx as l, createElementVNode as o, normalizeClass as p, createVNode as a, toDisplayString as k, createCommentVNode as f } from "vue";
2
2
  import v from "../ScalarHotkey.vue.js";
3
3
  import { ScalarTooltip as y, ScalarIcon as c } from "@scalar/components";
4
4
  const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, u = { class: "nav-item-copy text-xs" }, b = /* @__PURE__ */ m({
@@ -11,7 +11,7 @@ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
11
11
  },
12
12
  emits: ["click", "close"],
13
13
  setup(C) {
14
- return (e, t) => (s(), i(n(y), {
14
+ return (e, t) => (n(), i(s(y), {
15
15
  class: "scalar-client",
16
16
  delay: 500,
17
17
  resize: "",
@@ -23,19 +23,19 @@ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
23
23
  onClick: t[1] || (t[1] = (r) => e.$emit("click"))
24
24
  }, [
25
25
  o("div", d, [
26
- a(n(c), {
27
- class: "p-[0.5px]",
26
+ a(s(c), {
27
+ class: "stroke-[2]",
28
28
  icon: e.icon,
29
29
  size: "xs"
30
30
  }, null, 8, ["icon"]),
31
- o("span", u, f(e.label), 1)
31
+ o("span", u, k(e.label), 1)
32
32
  ]),
33
33
  o("button", {
34
34
  class: "nav-item-close",
35
35
  type: "button",
36
36
  onClick: t[0] || (t[0] = (r) => e.$emit("close"))
37
37
  }, [
38
- a(n(c), {
38
+ a(s(c), {
39
39
  class: "stroke-[1.75]",
40
40
  icon: "Close"
41
41
  })
@@ -43,10 +43,10 @@ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
43
43
  ], 2)
44
44
  ]),
45
45
  content: l(() => [
46
- e.hotkey ? (s(), i(v, {
46
+ e.hotkey ? (n(), i(v, {
47
47
  key: 0,
48
48
  hotkey: e.hotkey
49
- }, null, 8, ["hotkey"])) : k("", !0)
49
+ }, null, 8, ["hotkey"])) : f("", !0)
50
50
  ]),
51
51
  _: 1
52
52
  }));
@@ -1,7 +1,6 @@
1
1
  export * from './useDarkModeState.js';
2
2
  export * from './useClipboard.js';
3
3
  export * from './useKeyMap.js';
4
- export * from './useActionModal.js';
5
4
  export * from './useFileDialog.js';
6
5
  export { useSidebar } from './useSidebar.js';
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
@@ -1,15 +1,12 @@
1
1
  import { useDarkModeState as r } from "./useDarkModeState.js";
2
- import { useClipboard as a } from "./useClipboard.js";
2
+ import { useClipboard as t } from "./useClipboard.js";
3
3
  import { keyMap as f } from "./useKeyMap.js";
4
- import { ActionModalTab as m, useActionModal as x } from "./useActionModal.js";
5
- import { useFileDialog as l } from "./useFileDialog.js";
6
- import { useSidebar as u } from "./useSidebar.js";
4
+ import { useFileDialog as x } from "./useFileDialog.js";
5
+ import { useSidebar as s } from "./useSidebar.js";
7
6
  export {
8
- m as ActionModalTab,
9
7
  f as keyMap,
10
- x as useActionModal,
11
- a as useClipboard,
8
+ t as useClipboard,
12
9
  r as useDarkModeState,
13
- l as useFileDialog,
14
- u as useSidebar
10
+ x as useFileDialog,
11
+ s as useSidebar
15
12
  };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { default as ScalarClient } from './App.vue.js';
2
2
  export * from './Modal/index.js';
3
+ export * from './App/index.js';
3
4
  export { useWorkspace } from './store/workspace.js';
4
5
  export { modalRouter } from './router.js';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,cAAc,SAAS,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AAErB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA"}
package/dist/index.js CHANGED
@@ -1,13 +1,18 @@
1
- import { default as t } from "./App.vue.js";
1
+ import { default as p } from "./App.vue.js";
2
2
  /* empty css */
3
3
  import { useWorkspace as l } from "./store/workspace.js";
4
4
  import { modalRouter as f } from "./router.js";
5
- import { default as i } from "./Modal/ApiClientModal.vue.js";
6
- import { createScalarApiClient as c } from "./Modal/api-client-modal.js";
5
+ import { default as x } from "./App/ApiClientApp.vue.js";
6
+ /* empty css */
7
+ import { default as A } from "./Modal/ApiClientModal.vue.js";
8
+ import { createApiClientModal as s } from "./Modal/api-client-modal.js";
9
+ import { createApiClientApp as C } from "./App/createApiClientApp.js";
7
10
  export {
8
- i as ApiClientModal,
9
- t as ScalarClient,
10
- c as createScalarApiClient,
11
+ x as ApiClientApp,
12
+ A as ApiClientModal,
13
+ p as ScalarClient,
14
+ C as createApiClientApp,
15
+ s as createApiClientModal,
11
16
  f as modalRouter,
12
17
  l as useWorkspace
13
18
  };
package/dist/router.d.ts CHANGED
@@ -17,8 +17,11 @@ export declare const modalRoutes: ({
17
17
  component: () => Promise<typeof import("./views/Request/Request.vue.js")>;
18
18
  redirect?: undefined;
19
19
  })[];
20
+ /**
21
+ * Router for the API Client app
22
+ */
20
23
  export declare const router: import("vue-router").Router;
21
- /** Creates the in memory client router */
24
+ /** Router for the API Client modal */
22
25
  export declare const modalRouter: import("vue-router").Router;
23
26
  export declare const activeRouterParams: import("vue").ComputedRef<{
24
27
  collection: string;
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAGA,oBAAY,MAAM;IAChB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,0CAA0C;AAC1C,eAAO,MAAM,WAAW;;;;;;;;IAcvB,CAAA;AAyDD,eAAO,MAAM,MAAM,6BAGjB,CAAA;AAEF,0CAA0C;AAC1C,eAAO,MAAM,WAAW,6BAGtB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;EAyB7B,CAAA;AAEF,gGAAgG;AAChG,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,QAmBtC"}
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAGA,oBAAY,MAAM;IAChB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,0CAA0C;AAC1C,eAAO,MAAM,WAAW;;;;;;;;IAcvB,CAAA;AAyDD;;GAEG;AACH,eAAO,MAAM,MAAM,6BAGjB,CAAA;AAEF,sCAAsC;AACtC,eAAO,MAAM,WAAW,6BAGtB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;EAyB7B,CAAA;AAEF,gGAAgG;AAChG,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,QAmBtC"}