@scalar/api-client 2.0.24 → 2.0.25

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 (166) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +79 -83
  5. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
  7. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue.js +3 -2
  9. package/dist/components/CodeInput/CodeInput.vue2.js +42 -37
  10. package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
  11. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
  12. package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
  13. package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
  14. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
  15. package/dist/components/CodeInput/codeVariableWidget.js +124 -0
  16. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
  17. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  18. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
  19. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
  20. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
  22. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
  23. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
  24. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
  25. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
  26. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  27. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
  28. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
  29. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  30. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
  31. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
  32. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
  33. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
  34. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
  35. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
  36. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
  37. package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
  38. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
  39. package/dist/components/CommandPalette/index.d.ts +2 -0
  40. package/dist/components/CommandPalette/index.d.ts.map +1 -0
  41. package/dist/components/CommandPalette/index.js +4 -0
  42. package/dist/components/ContextBar.vue.js +4 -4
  43. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  44. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  45. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  46. package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
  47. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  48. package/dist/components/SideNav/SideNav.vue.js +26 -23
  49. package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
  50. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  51. package/dist/components/SideNav/SideNavLink.vue.js +5 -5
  52. package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
  53. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  54. package/dist/components/Sidebar/Sidebar.vue.js +14 -12
  55. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  56. package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
  57. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  58. package/dist/components/TopNav/TopNav.vue.js +2 -2
  59. package/dist/components/TopNav/TopNav.vue2.js +31 -28
  60. package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
  61. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  62. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  63. package/dist/components/TopNav/TopNavItem.vue2.js +16 -15
  64. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  65. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
  66. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  67. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
  68. package/dist/constants.d.ts +13 -7
  69. package/dist/constants.d.ts.map +1 -1
  70. package/dist/constants.js +4 -4
  71. package/dist/index.d.ts +2 -4
  72. package/dist/index.d.ts.map +1 -1
  73. package/dist/index.js +11 -16
  74. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
  75. package/dist/layouts/App/ApiClientApp.vue.js +72 -0
  76. package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
  77. package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
  78. package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
  79. package/dist/layouts/App/index.d.ts.map +1 -0
  80. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
  81. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
  82. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
  83. package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
  84. package/dist/{Modal → layouts/Modal}/api-client-modal.js +2 -2
  85. package/dist/layouts/Modal/index.d.ts.map +1 -0
  86. package/dist/libs/eventBusses/command-palette.d.ts +14 -0
  87. package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
  88. package/dist/libs/eventBusses/command-palette.js +5 -0
  89. package/dist/libs/local-storage.d.ts +1 -1
  90. package/dist/libs/local-storage.d.ts.map +1 -1
  91. package/dist/libs/local-storage.js +19 -19
  92. package/dist/router.d.ts +5 -10
  93. package/dist/router.d.ts.map +1 -1
  94. package/dist/router.js +23 -19
  95. package/dist/store/topNav.d.ts +94 -82
  96. package/dist/store/topNav.d.ts.map +1 -1
  97. package/dist/store/topNav.js +21 -20
  98. package/dist/store/workspace.d.ts +314 -84
  99. package/dist/store/workspace.d.ts.map +1 -1
  100. package/dist/store/workspace.js +299 -220
  101. package/dist/style.css +1 -1
  102. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  103. package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
  104. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  105. package/dist/views/Cookies/Cookies.vue2.js +9 -12
  106. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  107. package/dist/views/Environment/Environment.vue2.js +22 -25
  108. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  109. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
  110. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  111. package/dist/views/Request/Request.vue.js +1 -1
  112. package/dist/views/Request/Request.vue2.js +122 -105
  113. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  114. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  115. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  116. package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -4
  117. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  118. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  119. package/dist/views/Request/RequestSection/RequestTable.vue2.js +19 -19
  120. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  121. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
  122. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  123. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  124. package/dist/views/Request/RequestSidebarItem.vue2.js +78 -81
  125. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  126. package/dist/views/Request/RequestSidebarItemMenu.vue.js +53 -33
  127. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  128. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +6 -5
  129. package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
  130. package/dist/views/Request/components/OAuth2.vue.js +2 -0
  131. package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
  132. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
  133. package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
  134. package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
  135. package/dist/views/Request/components/index.d.ts +1 -0
  136. package/dist/views/Request/components/index.d.ts.map +1 -1
  137. package/dist/views/Request/components/index.js +4 -2
  138. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  139. package/dist/views/Servers/Servers.vue2.js +12 -15
  140. package/package.json +20 -16
  141. package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
  142. package/dist/App/ApiClientApp.vue.js +0 -56
  143. package/dist/App/createApiClientApp.d.ts.map +0 -1
  144. package/dist/App/index.d.ts.map +0 -1
  145. package/dist/App.vue.d.ts.map +0 -1
  146. package/dist/App.vue.js +0 -77
  147. package/dist/App.vue3.js +0 -5
  148. package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
  149. package/dist/Modal/api-client-modal.d.ts.map +0 -1
  150. package/dist/Modal/index.d.ts.map +0 -1
  151. package/dist/components/AddressBar/AddressBarServer.vue.js +0 -113
  152. package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
  153. package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
  154. package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
  155. package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
  156. package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -185
  157. package/dist/main.d.ts +0 -2
  158. package/dist/main.d.ts.map +0 -1
  159. /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
  160. /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
  161. /package/dist/{App → layouts/App}/index.d.ts +0 -0
  162. /package/dist/{App → layouts/App}/index.js +0 -0
  163. /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
  164. /package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +0 -0
  165. /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
  166. /package/dist/{Modal → layouts/Modal}/index.js +0 -0
@@ -0,0 +1,57 @@
1
+ import { defineComponent as m, ref as l, onMounted as d, openBlock as f, createElementBlock as h, withModifiers as w, createElementVNode as o, withDirectives as x, vModelText as _, createVNode as k, unref as b, withCtx as v, createTextVNode as N } from "vue";
2
+ import { useWorkspace as g } from "../../store/workspace.js";
3
+ import { ScalarButton as y } from "@scalar/components";
4
+ import { useRouter as C } from "vue-router";
5
+ const M = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, V = /* @__PURE__ */ o("label", {
6
+ class: "absolute w-full h-full opacity-0 cursor-text",
7
+ for: "workspacename"
8
+ }, null, -1), W = { class: "flex" }, B = /* @__PURE__ */ o("div", { class: "flex flex-1 gap-2 max-h-8" }, null, -1), P = /* @__PURE__ */ m({
9
+ __name: "CommandPaletteWorkspace",
10
+ emits: ["close"],
11
+ setup(S, { emit: n }) {
12
+ const r = n, { push: c } = C(), { workspaceMutators: u } = g(), t = l(""), i = () => {
13
+ const e = u.add({
14
+ name: t.value
15
+ });
16
+ c(`/workspace/${e.uid}`), r("close");
17
+ }, s = l(null);
18
+ return d(() => {
19
+ var e;
20
+ (e = s.value) == null || e.focus();
21
+ }), (e, a) => (f(), h("form", {
22
+ class: "flex w-full flex-col gap-3",
23
+ onSubmit: w(i, ["prevent"])
24
+ }, [
25
+ o("div", M, [
26
+ V,
27
+ x(o("input", {
28
+ id: "workspacename",
29
+ ref_key: "workspaceInput",
30
+ ref: s,
31
+ "onUpdate:modelValue": a[0] || (a[0] = (p) => t.value = p),
32
+ autofocus: "",
33
+ class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
34
+ label: "Workspace Name",
35
+ placeholder: "Workspace Name"
36
+ }, null, 512), [
37
+ [_, t.value]
38
+ ])
39
+ ]),
40
+ o("div", W, [
41
+ B,
42
+ k(b(y), {
43
+ class: "max-h-8 text-xs p-0 px-3",
44
+ type: "submit"
45
+ }, {
46
+ default: v(() => [
47
+ N(" Continue ")
48
+ ]),
49
+ _: 1
50
+ })
51
+ ])
52
+ ], 32));
53
+ }
54
+ });
55
+ export {
56
+ P as default
57
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CommandPaletteWorkspace.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,50 @@
1
+ /**
2
+ * The Command Palette
3
+ *
4
+ * This component is a singleton so should only exist in our app once we will use the event bus to trigger it
5
+ */
6
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
7
+ export default _default;
8
+ export declare const PaletteComponents: {
9
+ readonly 'Import Collection': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ close: () => void;
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
12
+ onClose?: (() => any) | undefined;
13
+ }, {}, {}>;
14
+ readonly 'Create Request': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ close: () => void;
16
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
17
+ onClose?: (() => any) | undefined;
18
+ }, {}, {}>;
19
+ readonly 'Create Workspace': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ close: () => void;
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
22
+ onClose?: (() => any) | undefined;
23
+ }, {}, {}>;
24
+ readonly 'Add Folder': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ close: () => void;
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
27
+ onClose?: (() => any) | undefined;
28
+ }, {}, {}>;
29
+ readonly 'Create Collection': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ close: () => void;
31
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
32
+ onClose?: (() => any) | undefined;
33
+ }, {}, {}>;
34
+ readonly 'Add Example': import("vue").DefineComponent<{
35
+ metaData: {
36
+ type: import("vue").PropType<string>;
37
+ };
38
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
+ close: () => void;
40
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
+ metaData: {
42
+ type: import("vue").PropType<string>;
43
+ };
44
+ }>> & {
45
+ onClose?: (() => any) | undefined;
46
+ }, {}, {}>;
47
+ };
48
+ /** Infer the types from the commands */
49
+ export type CommandNames = keyof typeof PaletteComponents;
50
+ //# sourceMappingURL=TheCommandPalette.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAqWA;;;;GAIG;;AACH,wBA8XI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
@@ -0,0 +1,9 @@
1
+ import o from "./TheCommandPalette.vue2.js";
2
+ import { PaletteComponents as f } from "./TheCommandPalette.vue2.js";
3
+ /* empty css */
4
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-caaeb4c4"]]);
6
+ export {
7
+ f as PaletteComponents,
8
+ r as default
9
+ };
@@ -0,0 +1,198 @@
1
+ import { defineComponent as z, ref as d, computed as I, onMounted as M, onBeforeUnmount as P, openBlock as r, createElementBlock as s, Fragment as u, withDirectives as h, createElementVNode as m, vShow as A, unref as v, createVNode as $, vModelText as F, renderList as R, toDisplayString as E, normalizeClass as q, createTextVNode as N, createBlock as T, resolveDynamicComponent as U } from "vue";
2
+ import { useModal as G, ScalarIcon as S } from "@scalar/components";
3
+ import { useMagicKeys as H, whenever as C } from "@vueuse/core";
4
+ import { useRouter as K } from "vue-router";
5
+ import { commandPaletteBus as B } from "../../libs/eventBusses/command-palette.js";
6
+ import { useWorkspace as Q } from "../../store/workspace.js";
7
+ import j from "./CommandPaletteCollection.vue.js";
8
+ import J from "./CommandPaletteExample.vue.js";
9
+ import O from "./CommandPaletteFolder.vue.js";
10
+ import X from "./CommandPaletteImport.vue.js";
11
+ import Y from "./CommandPaletteRequest.vue.js";
12
+ import Z from "./CommandPaletteWorkspace.vue.js";
13
+ const ee = { class: "commandmenu" }, oe = { class: "bg-b-2 flex items-center rounded mb-2 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, te = { for: "commandmenu" }, ne = ["onClick"], ae = {
14
+ name: "TheCommandPalette"
15
+ }, le = {
16
+ "Import Collection": X,
17
+ "Create Request": Y,
18
+ "Create Workspace": Z,
19
+ "Add Folder": O,
20
+ "Create Collection": j,
21
+ "Add Example": J
22
+ }, ke = /* @__PURE__ */ z({
23
+ ...ae,
24
+ setup(re) {
25
+ const b = [
26
+ {
27
+ label: "Add to Request Sidebar",
28
+ commands: [
29
+ {
30
+ name: "Create Request",
31
+ icon: "ExternalLink"
32
+ },
33
+ {
34
+ name: "Import Collection",
35
+ icon: "Import"
36
+ },
37
+ {
38
+ name: "Add Folder",
39
+ icon: "Folder"
40
+ },
41
+ {
42
+ name: "Create Collection",
43
+ icon: "Collection"
44
+ },
45
+ {
46
+ name: "Add Example",
47
+ icon: "Example"
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ label: "More Actions",
53
+ commands: [
54
+ {
55
+ name: "Create Workspace",
56
+ icon: "Workspace"
57
+ },
58
+ {
59
+ name: "Add Server",
60
+ icon: "Brackets",
61
+ path: "/servers"
62
+ },
63
+ {
64
+ name: "Add Environment",
65
+ icon: "Server",
66
+ path: "/environment"
67
+ },
68
+ {
69
+ name: "Add Cookie",
70
+ icon: "Cookie",
71
+ path: "/cookies"
72
+ }
73
+ ]
74
+ }
75
+ ], p = H(), a = G(), { push: V } = K(), { activeWorkspace: W } = Q(), g = d(), c = d(""), i = d(null), o = d(0), k = d([]), _ = I(
76
+ () => b.reduce((e, t) => {
77
+ const n = t.commands.filter(
78
+ (f) => f.name.toLowerCase().includes(c.value.toLowerCase())
79
+ );
80
+ return [...e, ...n];
81
+ }, [])
82
+ ), w = () => {
83
+ a.hide(), c.value = "", i.value = null;
84
+ };
85
+ C(p.escape, () => {
86
+ a.open && a.hide();
87
+ }), C(p.enter, () => {
88
+ if (!a.open) return;
89
+ const e = _.value[o.value];
90
+ L(e);
91
+ }), C(p.ArrowDown, () => {
92
+ var e;
93
+ a.open && (o.value < _.value.length - 1 ? o.value++ : o.value = 0, (e = k.value[o.value]) == null || e.scrollIntoView({
94
+ behavior: "smooth",
95
+ block: "center"
96
+ }));
97
+ }), C(p.ArrowUp, () => {
98
+ var e;
99
+ a.open && (o.value > 0 ? o.value-- : o.value = _.value.length - 1, (e = k.value[o.value]) == null || e.scrollIntoView({
100
+ behavior: "smooth",
101
+ block: "center"
102
+ }));
103
+ });
104
+ const L = (e) => {
105
+ "path" in e ? (V(`/workspace/${W.value.uid}${e.path}`), w()) : i.value = e.name;
106
+ }, D = ({
107
+ commandName: e,
108
+ metaData: t
109
+ } = {}) => {
110
+ i.value = e ?? null, g.value = t, a.show();
111
+ };
112
+ return M(() => B.on(D)), P(() => B.off(D)), (e, t) => (r(), s(u, null, [
113
+ h(m("div", {
114
+ class: "commandmenu-clickout",
115
+ onClick: t[0] || (t[0] = (n) => w())
116
+ }, null, 512), [
117
+ [A, v(a).open]
118
+ ]),
119
+ h(m("div", ee, [
120
+ i.value ? (r(), s(u, { key: 1 }, [
121
+ m("button", {
122
+ class: "absolute p-1 hover:bg-b-3 rounded text-c-3 active:text-c-1 m-1.5 z-10",
123
+ type: "button",
124
+ onClick: t[2] || (t[2] = (n) => i.value = null)
125
+ }, [
126
+ $(v(S), {
127
+ icon: "ChevronLeft",
128
+ size: "sm"
129
+ })
130
+ ]),
131
+ (r(), T(U(le[i.value]), {
132
+ metaData: g.value,
133
+ onClose: w
134
+ }, null, 40, ["metaData"]))
135
+ ], 64)) : (r(), s(u, { key: 0 }, [
136
+ m("div", oe, [
137
+ m("label", te, [
138
+ $(v(S), {
139
+ class: "text-c-1 mr-2.5",
140
+ icon: "Search",
141
+ size: "sm",
142
+ thickness: "1.5"
143
+ })
144
+ ]),
145
+ h(m("input", {
146
+ id: "commandmenu",
147
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => c.value = n),
148
+ class: "w-full rounded bg-none border-none py-1.5 text-sm focus:outline-none",
149
+ placeholder: "Search commands...",
150
+ type: "text"
151
+ }, null, 512), [
152
+ [F, c.value]
153
+ ])
154
+ ]),
155
+ (r(), s(u, null, R(b, (n, f) => (r(), s(u, {
156
+ key: n.label
157
+ }, [
158
+ h(m("div", { class: "text-c-3 font-medium text-xs mt-2" }, E(n.label), 513), [
159
+ [
160
+ A,
161
+ n.commands.filter(
162
+ (l) => l.name.toLowerCase().includes(c.value.toLowerCase())
163
+ ).length > 0
164
+ ]
165
+ ]),
166
+ (r(!0), s(u, null, R(n.commands.filter(
167
+ (l) => l.name.toLowerCase().includes(c.value.toLowerCase())
168
+ ), (l, x) => (r(), s("div", {
169
+ key: l.name,
170
+ ref_for: !0,
171
+ ref: (y) => {
172
+ y && (k.value[x] = y);
173
+ },
174
+ class: q(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
175
+ "bg-b-2": f > 0 ? o.value === x + b[f - 1].commands.length : o.value === x
176
+ }]),
177
+ onClick: (y) => L(l)
178
+ }, [
179
+ $(v(S), {
180
+ class: "text-c-1 mr-2.5",
181
+ icon: l.icon,
182
+ size: "md",
183
+ thickness: "1.5"
184
+ }, null, 8, ["icon"]),
185
+ N(" " + E(l.name), 1)
186
+ ], 10, ne))), 128))
187
+ ], 64))), 64))
188
+ ], 64))
189
+ ], 512), [
190
+ [A, v(a).open]
191
+ ])
192
+ ], 64));
193
+ }
194
+ });
195
+ export {
196
+ le as PaletteComponents,
197
+ ke as default
198
+ };
@@ -0,0 +1,2 @@
1
+ export { default as TheCommandPalette } from './TheCommandPalette.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as t } from "./TheCommandPalette.vue.js";
2
+ export {
3
+ t as TheCommandPalette
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 gap-0.5" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
2
+ const p = { 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(p) {
10
- return (t, d) => (n(), o("div", b, [
9
+ setup(d) {
10
+ return (t, b) => (n(), o("div", p, [
11
11
  (n(!0), o(i, null, s(t.sections, (e) => (n(), o("button", {
12
12
  key: e,
13
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"
14
+ t.activeSection === e ? "bg-b-1 text-c-1 dark:bg-b-3 border pointer-events-none" : "border border-transparent"
15
15
  ]]),
16
16
  isActive: t.activeSection === e,
17
17
  type: "button",
@@ -42,8 +42,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
42
42
  onInputFocus?: (() => any) | undefined;
43
43
  onInputBlur?: (() => any) | undefined;
44
44
  }, {
45
- readOnly: boolean;
46
45
  required: boolean;
46
+ readOnly: boolean;
47
47
  }, {}>;
48
48
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
49
49
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.v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P,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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,7 +1,7 @@
1
1
  import t from "./DataTableInput.vue2.js";
2
2
  /* empty css */
3
- import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-266b624d"]]);
3
+ import a from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ a(t, [["__scopeId", "data-v-7949fbac"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,18 +1,17 @@
1
- import { defineComponent as $, ref as d, computed as x, openBlock as o, createBlock as p, normalizeClass as B, withCtx as q, createElementBlock as r, renderSlot as m, createCommentVNode as s, createElementVNode as f, Fragment as C, mergeProps as S, unref as D, createVNode as _ } from "vue";
2
- import F from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
3
- import { ScalarIconButton as I } from "@scalar/components";
4
- import M from "./DataTableCell.vue.js";
5
- import O from "./DataTableInputSelect.vue.js";
6
- const N = {
1
+ import { defineComponent as k, ref as i, computed as V, openBlock as o, createBlock as d, normalizeClass as b, withCtx as x, createElementBlock as r, renderSlot as p, createCommentVNode as s, createElementVNode as m, Fragment as B, mergeProps as $, unref as q } from "vue";
2
+ import { ScalarIconButton as C } from "@scalar/components";
3
+ import F from "./DataTableCell.vue.js";
4
+ import I from "./DataTableInputSelect.vue.js";
5
+ const O = {
7
6
  key: 0,
8
7
  class: "text-c-2 flex min-w-[100px] items-center border-r-1/2 pl-2 pr-0"
9
- }, P = { class: "row-1" }, E = ["id", "max", "min", "readOnly", "required", "type", "value"], H = {
8
+ }, S = { class: "row-1" }, P = ["id", "max", "min", "readOnly", "required", "type", "value"], _ = {
10
9
  key: 0,
11
10
  class: "absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
12
- }, T = {
11
+ }, D = {
13
12
  key: 1,
14
13
  class: "absolute centered-y right-7 text-orange text-xs"
15
- }, j = /* @__PURE__ */ $({
14
+ }, z = /* @__PURE__ */ k({
16
15
  inheritAttrs: !1,
17
16
  __name: "DataTableInput",
18
17
  props: {
@@ -27,36 +26,30 @@ const N = {
27
26
  max: {}
28
27
  },
29
28
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
30
- setup(v, { emit: y }) {
31
- const l = v, n = y, a = d(!0), c = d(""), u = d(!1), w = () => {
32
- u.value || n("inputBlur");
33
- }, h = x(
29
+ setup(c, { emit: f }) {
30
+ const l = c, n = f, a = i(!0), y = i(""), v = i(!1), w = () => {
31
+ v.value || n("inputBlur");
32
+ }, g = V(
34
33
  () => l.type === "password" ? a.value ? "password" : "text" : l.type ?? "text"
35
- ), V = (e) => {
34
+ ), h = (e) => {
36
35
  const t = e.target;
37
- c.value = t.value, n("update:modelValue", t.value);
38
- }, g = (e) => {
39
- n("update:modelValue", e);
40
- }, k = () => {
41
- u.value = !0;
42
- }, b = () => {
43
- u.value = !1;
36
+ y.value = t.value, n("update:modelValue", t.value);
44
37
  };
45
- return (e, t) => (o(), p(M, {
46
- class: B(["relative row", e.containerClass])
38
+ return (e, t) => (o(), d(F, {
39
+ class: b(["relative row", e.containerClass])
47
40
  }, {
48
- default: q(() => [
49
- e.$slots.default ? (o(), r("div", N, [
50
- m(e.$slots, "default", {}, void 0, !0)
41
+ default: x(() => [
42
+ e.$slots.default ? (o(), r("div", O, [
43
+ p(e.$slots, "default", {}, void 0, !0)
51
44
  ])) : s("", !0),
52
- f("div", P, [
53
- l.enum && l.enum.length ? (o(), p(O, {
45
+ m("div", S, [
46
+ l.enum && l.enum.length ? (o(), d(I, {
54
47
  key: 0,
55
48
  modelValue: l.modelValue,
56
49
  value: l.enum,
57
- "onUpdate:modelValue": t[0] || (t[0] = (i) => n("update:modelValue", i))
58
- }, null, 8, ["modelValue", "value"])) : (o(), r(C, { key: 1 }, [
59
- f("input", S(e.$attrs, {
50
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => n("update:modelValue", u))
51
+ }, null, 8, ["modelValue", "value"])) : (o(), r(B, { key: 1 }, [
52
+ m("input", $(e.$attrs, {
60
53
  id: e.id,
61
54
  autocomplete: "off",
62
55
  class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full peer px-2 py-1.5 outline-none",
@@ -66,37 +59,31 @@ const N = {
66
59
  readOnly: e.readOnly,
67
60
  required: e.required,
68
61
  spellcheck: "false",
69
- type: h.value,
62
+ type: g.value,
70
63
  value: e.modelValue,
71
64
  onBlur: w,
72
- onFocus: t[1] || (t[1] = (i) => n("inputFocus")),
73
- onInput: V
74
- }), null, 16, E),
75
- e.required ? (o(), r("div", H, " Required ")) : s("", !0)
65
+ onFocus: t[1] || (t[1] = (u) => n("inputFocus")),
66
+ onInput: h
67
+ }), null, 16, P),
68
+ e.required ? (o(), r("div", _, " Required ")) : s("", !0)
76
69
  ], 64))
77
70
  ]),
78
- e.$slots.warning ? (o(), r("div", T, [
79
- m(e.$slots, "warning", {}, void 0, !0)
71
+ e.$slots.warning ? (o(), r("div", D, [
72
+ p(e.$slots, "warning", {}, void 0, !0)
80
73
  ])) : s("", !0),
81
- m(e.$slots, "icon", {}, void 0, !0),
82
- e.type === "password" ? (o(), p(D(I), {
74
+ p(e.$slots, "icon", {}, void 0, !0),
75
+ e.type === "password" ? (o(), d(q(C), {
83
76
  key: 2,
84
77
  class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
85
78
  icon: a.value ? "Show" : "Hide",
86
79
  label: a.value ? "Show Password" : "Hide Password",
87
- onClick: t[2] || (t[2] = (i) => a.value = !a.value)
88
- }, null, 8, ["icon", "label"])) : s("", !0),
89
- _(F, {
90
- query: c.value,
91
- onMousedown: k,
92
- onMouseup: b,
93
- onSelect: g
94
- }, null, 8, ["query"])
80
+ onClick: t[2] || (t[2] = (u) => a.value = !a.value)
81
+ }, null, 8, ["icon", "label"])) : s("", !0)
95
82
  ]),
96
83
  _: 3
97
84
  }, 8, ["class"]));
98
85
  }
99
86
  });
100
87
  export {
101
- j as default
88
+ z as default
102
89
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAsIA,wBAKG"}
1
+ {"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAuIA,wBAKG"}
@@ -1,37 +1,40 @@
1
- import { defineComponent as m, openBlock as e, createElementBlock as t, createVNode as o, createElementVNode as r, Fragment as _, renderList as f, unref as i, withCtx as p, createTextVNode as u, toDisplayString as d } from "vue";
1
+ import { defineComponent as m, openBlock as t, createElementBlock as o, createVNode as r, createElementVNode as a, Fragment as _, renderList as f, unref as c, withCtx as p, createTextVNode as u, toDisplayString as d } from "vue";
2
2
  import x from "../DarkModeToggle/DarkModeIconToggle.vue.js";
3
3
  import { ROUTES as h } from "../../constants.js";
4
- import { useRouter as g } from "vue-router";
5
- import v from "./SideNavLink.vue.js";
4
+ import { useRouter as v } from "vue-router";
5
+ import g from "./SideNavLink.vue.js";
6
6
  import N from "./WorkspaceProfileIcon.vue.js";
7
7
  /* empty css */
8
8
  const y = {
9
9
  "aria-label": "Side Navigation",
10
- class: "text-c-2 w-15 flex flex-col items-center px-2 py-2",
10
+ class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav",
11
11
  role: "navigation"
12
12
  }, S = { class: "mt-3.5 flex flex-col gap-1.5" }, k = { class: "mt-auto flex flex-col gap-2 py-1.5" }, E = { class: "flex items-center" }, L = /* @__PURE__ */ m({
13
13
  __name: "SideNav",
14
14
  setup(R) {
15
- const { currentRoute: c } = g();
16
- return (V, $) => (e(), t("nav", y, [
17
- o(N),
18
- r("ul", S, [
19
- (e(!0), t(_, null, f(i(h), ({ icon: n, label: s, path: a }, l) => (e(), t("li", { key: l }, [
20
- o(v, {
21
- active: i(c).path.startsWith(a),
22
- icon: n,
23
- path: a
24
- }, {
25
- default: p(() => [
26
- u(d(s), 1)
27
- ]),
28
- _: 2
29
- }, 1032, ["active", "icon", "path"])
30
- ]))), 128))
15
+ const { currentRoute: n } = v();
16
+ return (V, $) => (t(), o("nav", y, [
17
+ r(N),
18
+ a("ul", S, [
19
+ (t(!0), o(_, null, f(c(h), ({ icon: s, name: e }, l) => {
20
+ var i;
21
+ return t(), o("li", { key: l }, [
22
+ r(g, {
23
+ active: (i = c(n).name) == null ? void 0 : i.startsWith(e),
24
+ icon: s,
25
+ name: e
26
+ }, {
27
+ default: p(() => [
28
+ u(d(e), 1)
29
+ ]),
30
+ _: 2
31
+ }, 1032, ["active", "icon", "name"])
32
+ ]);
33
+ }), 128))
31
34
  ]),
32
- r("ul", k, [
33
- r("li", E, [
34
- o(x)
35
+ a("ul", k, [
36
+ a("li", E, [
37
+ r(x)
35
38
  ])
36
39
  ])
37
40
  ]));
@@ -1,3 +1,4 @@
1
+ import type { ROUTES } from '../../constants.js';
1
2
  import { ScalarIcon } from '@scalar/components';
2
3
  type IconProps = InstanceType<typeof ScalarIcon>['$props'];
3
4
  declare function __VLS_template(): {
@@ -5,11 +6,11 @@ declare function __VLS_template(): {
5
6
  };
6
7
  declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
7
8
  icon: IconProps["icon"];
8
- path: string;
9
+ name: (typeof ROUTES)[number]["name"];
9
10
  active?: boolean;
10
11
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
11
12
  icon: IconProps["icon"];
12
- path: string;
13
+ name: (typeof ROUTES)[number]["name"];
13
14
  active?: boolean;
14
15
  }>>>, {}, {}>;
15
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AA6BA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAe1D,iBAAS,cAAc;qBAuDO,GAAG;EAgBhC;AACD,QAAA,MAAM,eAAe;UApFb,SAAS,CAAC,MAAM,CAAC;UACjB,MAAM;aACH,OAAO;;UAFV,SAAS,CAAC,MAAM,CAAC;UACjB,MAAM;aACH,OAAO;aAwFhB,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,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