@scalar/api-client 2.1.17 → 2.1.19

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 (194) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts +5 -1
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  5. package/dist/components/AddressBar/AddressBar.vue2.js +78 -75
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  7. package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
  8. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  9. package/dist/components/AddressBar/AddressBarServer.vue.js +6 -6
  10. package/dist/components/CodeInput/CodeInput.vue.d.ts +6 -2
  11. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  12. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  13. package/dist/components/CodeInput/CodeInput.vue2.js +57 -49
  14. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +3 -0
  15. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  16. package/dist/components/CommandPalette/CommandActionForm.vue.js +13 -11
  17. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +0 -2
  18. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandActionInput.vue.js +36 -38
  20. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +1 -1
  22. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  24. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +100 -80
  25. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +1 -1
  26. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +1 -1
  27. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +1 -1
  28. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +1 -1
  29. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +7 -7
  30. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  31. package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
  32. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +42 -42
  33. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  34. package/dist/components/ContextBar.vue.js +2 -2
  35. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +19 -3
  36. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  37. package/dist/components/DataTable/DataTableCheckbox.vue.js +27 -14
  38. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  39. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -8
  40. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  41. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +39 -0
  42. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -0
  43. package/dist/components/ImportCurl/ImportCurlModal.vue.js +7 -0
  44. package/dist/components/ImportCurl/ImportCurlModal.vue2.js +88 -0
  45. package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
  46. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  47. package/dist/components/SideNav/SideNav.vue.js +1 -1
  48. package/dist/components/SideNav/SideNav.vue2.js +37 -26
  49. package/dist/components/SideNav/SideNavLink.vue.d.ts +2 -2
  50. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  51. package/dist/components/SideNav/SideNavLink.vue.js +10 -11
  52. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +1 -1
  53. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  54. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  55. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  56. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  57. package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
  58. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +24 -3
  59. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  60. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  61. package/dist/components/Sidebar/SidebarListElement.vue2.js +26 -22
  62. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +4 -0
  63. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  64. package/dist/components/Sidebar/SidebarListElementActions.vue.js +35 -32
  65. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  66. package/dist/components/TopNav/TopNav.vue.js +1 -1
  67. package/dist/components/TopNav/TopNav.vue2.js +1 -1
  68. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  69. package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
  70. package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
  71. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
  72. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  73. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +11 -11
  74. package/dist/constants.d.ts +4 -0
  75. package/dist/constants.d.ts.map +1 -1
  76. package/dist/constants.js +2 -1
  77. package/dist/hooks/useDarkModeState.d.ts +4 -3
  78. package/dist/hooks/useDarkModeState.d.ts.map +1 -1
  79. package/dist/hooks/useDarkModeState.js +36 -21
  80. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  81. package/dist/layouts/App/ApiClientApp.vue.js +34 -41
  82. package/dist/layouts/App/create-api-client-app.d.ts +35 -32
  83. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  84. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  85. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  86. package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
  87. package/dist/layouts/Modal/create-api-client-modal.d.ts +70 -64
  88. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  89. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  90. package/dist/layouts/Web/ApiClientWeb.vue.js +35 -42
  91. package/dist/layouts/Web/create-api-client-web.d.ts +35 -32
  92. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  93. package/dist/libs/create-client.d.ts +35 -32
  94. package/dist/libs/create-client.d.ts.map +1 -1
  95. package/dist/libs/event-busses/hot-keys-bus.d.ts +1 -1
  96. package/dist/libs/extractAttachmentFilename.d.ts +2 -0
  97. package/dist/libs/extractAttachmentFilename.d.ts.map +1 -0
  98. package/dist/libs/extractAttachmentFilename.js +20 -0
  99. package/dist/libs/getOpenApiDocumentDetails.d.ts +10 -0
  100. package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -0
  101. package/dist/libs/getOpenApiDocumentDetails.js +40 -0
  102. package/dist/libs/importers/curl.d.ts +3 -0
  103. package/dist/libs/importers/curl.d.ts.map +1 -0
  104. package/dist/libs/importers/curl.js +61 -0
  105. package/dist/libs/importers/index.d.ts +2 -0
  106. package/dist/libs/importers/index.d.ts.map +1 -0
  107. package/dist/libs/importers/index.js +4 -0
  108. package/dist/libs/index.d.ts +2 -2
  109. package/dist/libs/index.d.ts.map +1 -1
  110. package/dist/libs/index.js +22 -22
  111. package/dist/libs/isUrl.d.ts +1 -1
  112. package/dist/libs/isUrl.d.ts.map +1 -1
  113. package/dist/libs/isUrl.js +4 -3
  114. package/dist/libs/parse-curl.d.ts +12 -0
  115. package/dist/libs/parse-curl.d.ts.map +1 -0
  116. package/dist/libs/parse-curl.js +70 -0
  117. package/dist/router.d.ts +2 -1
  118. package/dist/router.d.ts.map +1 -1
  119. package/dist/router.js +33 -24
  120. package/dist/store/collections.d.ts +4 -4
  121. package/dist/store/cookies.d.ts +4 -4
  122. package/dist/store/environment.d.ts +4 -4
  123. package/dist/store/import-spec.d.ts.map +1 -1
  124. package/dist/store/import-spec.js +21 -26
  125. package/dist/store/request-example.d.ts +4 -4
  126. package/dist/store/requests.d.ts +4 -4
  127. package/dist/store/router-params.d.ts +1 -0
  128. package/dist/store/router-params.d.ts.map +1 -1
  129. package/dist/store/router-params.js +2 -1
  130. package/dist/store/servers.d.ts +4 -4
  131. package/dist/store/store.d.ts +70 -64
  132. package/dist/store/store.d.ts.map +1 -1
  133. package/dist/store/store.js +126 -119
  134. package/dist/store/tags.d.ts +4 -4
  135. package/dist/store/workspace.d.ts +4 -4
  136. package/dist/style.css +1 -1
  137. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  138. package/dist/views/Cookies/Cookies.vue2.js +18 -18
  139. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  140. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +9 -9
  141. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  142. package/dist/views/Request/Request.vue.js +1 -1
  143. package/dist/views/Request/Request.vue2.js +146 -96
  144. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  145. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  146. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
  147. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  148. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +4 -4
  149. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  150. package/dist/views/Request/RequestSidebar.vue.js +3 -3
  151. package/dist/views/Request/RequestSidebar.vue2.js +2 -2
  152. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  153. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  154. package/dist/views/Request/RequestSidebarItem.vue2.js +49 -49
  155. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +2 -0
  156. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  157. package/dist/views/Request/RequestSubpageHeader.vue.js +4 -4
  158. package/dist/views/Request/RequestSubpageHeader.vue2.js +17 -15
  159. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  160. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +63 -55
  161. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +2 -0
  162. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
  163. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +14 -14
  164. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  165. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
  166. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +1 -1
  167. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
  168. package/dist/views/Settings/Settings.vue.d.ts +4 -0
  169. package/dist/views/Settings/Settings.vue.d.ts.map +1 -0
  170. package/dist/views/Settings/Settings.vue.js +4 -0
  171. package/dist/views/Settings/Settings.vue2.js +59 -0
  172. package/dist/{components/DarkModeToggle/DarkModeIconToggle.vue.d.ts → views/Settings/SettingsGeneral.vue.d.ts} +1 -1
  173. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -0
  174. package/dist/views/Settings/SettingsGeneral.vue.js +124 -0
  175. package/dist/views/Settings/SettingsGeneral.vue2.js +4 -0
  176. package/dist/views/Settings/SettingsGeneralMode.vue.d.ts +3 -0
  177. package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +1 -0
  178. package/dist/views/Settings/SettingsGeneralMode.vue.js +78 -0
  179. package/dist/views/Settings/SettingsGeneralMode.vue2.js +4 -0
  180. package/package.json +60 -36
  181. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +0 -1
  182. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +0 -31
  183. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue2.js +0 -4
  184. package/dist/components/DarkModeToggle/index.d.ts +0 -2
  185. package/dist/components/DarkModeToggle/index.d.ts.map +0 -1
  186. package/dist/components/DarkModeToggle/index.js +0 -4
  187. package/dist/components/ScreenReader.vue.js +0 -7
  188. package/dist/components/ScreenReader.vue2.js +0 -18
  189. package/dist/libs/getOpenApiDocumentVersion.d.ts +0 -8
  190. package/dist/libs/getOpenApiDocumentVersion.d.ts.map +0 -1
  191. package/dist/libs/getOpenApiDocumentVersion.js +0 -20
  192. package/dist/libs/isDocument.d.ts +0 -3
  193. package/dist/libs/isDocument.d.ts.map +0 -1
  194. package/dist/libs/isDocument.js +0 -7
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
2
2
  close: () => void;
3
3
  back: (e: KeyboardEvent) => void;
4
4
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
5
- onBack?: ((e: KeyboardEvent) => any) | undefined;
6
5
  onClose?: (() => any) | undefined;
6
+ onBack?: ((e: KeyboardEvent) => any) | undefined;
7
7
  }, {}, {}>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=CommandPaletteServer.vue.d.ts.map
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
2
2
  close: () => void;
3
3
  back: (e: KeyboardEvent) => void;
4
4
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
5
- onBack?: ((e: KeyboardEvent) => any) | undefined;
6
5
  onClose?: (() => any) | undefined;
6
+ onBack?: ((e: KeyboardEvent) => any) | undefined;
7
7
  }, {}, {}>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=CommandPaletteTag.vue.d.ts.map
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
2
2
  close: () => void;
3
3
  back: (e: KeyboardEvent) => void;
4
4
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
5
- onBack?: ((e: KeyboardEvent) => any) | undefined;
6
5
  onClose?: (() => any) | undefined;
6
+ onBack?: ((e: KeyboardEvent) => any) | undefined;
7
7
  }, {}, {}>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=CommandPaletteWorkspace.vue.d.ts.map
@@ -10,8 +10,8 @@ export declare const PaletteComponents: {
10
10
  close: () => void;
11
11
  back: (e: KeyboardEvent) => void;
12
12
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
13
- onBack?: ((e: KeyboardEvent) => any) | undefined;
14
13
  onClose?: (() => any) | undefined;
14
+ onBack?: ((e: KeyboardEvent) => any) | undefined;
15
15
  }, {}, {}>;
16
16
  readonly 'Create Request': import("vue").DefineComponent<{
17
17
  metaData: {
@@ -31,36 +31,36 @@ export declare const PaletteComponents: {
31
31
  }>;
32
32
  };
33
33
  }>> & {
34
- onBack?: ((e: KeyboardEvent) => any) | undefined;
35
34
  onClose?: (() => any) | undefined;
35
+ onBack?: ((e: KeyboardEvent) => any) | undefined;
36
36
  }, {}, {}>;
37
37
  readonly 'Create Workspace': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
38
  close: () => void;
39
39
  back: (e: KeyboardEvent) => void;
40
40
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
41
- onBack?: ((e: KeyboardEvent) => any) | undefined;
42
41
  onClose?: (() => any) | undefined;
42
+ onBack?: ((e: KeyboardEvent) => any) | undefined;
43
43
  }, {}, {}>;
44
44
  readonly 'Add Tag': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
45
  close: () => void;
46
46
  back: (e: KeyboardEvent) => void;
47
47
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
48
- onBack?: ((e: KeyboardEvent) => any) | undefined;
49
48
  onClose?: (() => any) | undefined;
49
+ onBack?: ((e: KeyboardEvent) => any) | undefined;
50
50
  }, {}, {}>;
51
51
  readonly 'Add Server': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
52
52
  close: () => void;
53
53
  back: (e: KeyboardEvent) => void;
54
54
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
55
- onBack?: ((e: KeyboardEvent) => any) | undefined;
56
55
  onClose?: (() => any) | undefined;
56
+ onBack?: ((e: KeyboardEvent) => any) | undefined;
57
57
  }, {}, {}>;
58
58
  readonly 'Create Collection': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
59
  close: () => void;
60
60
  back: (e: KeyboardEvent) => void;
61
61
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
62
- onBack?: ((e: KeyboardEvent) => any) | undefined;
63
62
  onClose?: (() => any) | undefined;
63
+ onBack?: ((e: KeyboardEvent) => any) | undefined;
64
64
  }, {}, {}>;
65
65
  readonly 'Add Example': import("vue").DefineComponent<{
66
66
  metaData: {
@@ -78,8 +78,8 @@ export declare const PaletteComponents: {
78
78
  }>;
79
79
  };
80
80
  }>> & {
81
- onBack?: ((e: KeyboardEvent) => any) | undefined;
82
81
  onClose?: (() => any) | undefined;
82
+ onBack?: ((e: KeyboardEvent) => any) | undefined;
83
83
  }, {}, {}>;
84
84
  };
85
85
  /** Infer the types from the commands */
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAoYA;;;;GAIG;;AACH,wBAubI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAiYA;;;;GAIG;;AACH,wBAybI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
@@ -1,9 +1,9 @@
1
1
  import o from "./TheCommandPalette.vue2.js";
2
- import { PaletteComponents as s } from "./TheCommandPalette.vue2.js";
2
+ import { PaletteComponents as f } from "./TheCommandPalette.vue2.js";
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c08d90be"]]);
5
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d5a686d"]]);
6
6
  export {
7
- s as PaletteComponents,
8
- a as default
7
+ f as PaletteComponents,
8
+ r as default
9
9
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as F, ref as u, computed as P, watch as U, onMounted as G, onBeforeUnmount as Q, openBlock as a, createElementBlock as r, Fragment as d, withDirectives as h, createElementVNode as m, vShow as w, unref as f, createVNode as y, withKeys as g, withModifiers as S, vModelText as j, renderList as K, toDisplayString as M, normalizeClass as J, createTextVNode as O, createCommentVNode as X, createBlock as Y, resolveDynamicComponent as Z, mergeProps as ee, nextTick as T } from "vue";
2
- import { useModal as oe, ScalarIcon as $ } from "@scalar/components";
1
+ import { defineComponent as F, ref as u, computed as I, watch as U, onMounted as G, onBeforeUnmount as Q, openBlock as a, createElementBlock as r, Fragment as d, withDirectives as h, createElementVNode as m, vShow as w, unref as f, createVNode as y, withKeys as g, withModifiers as $, vModelText as j, renderList as P, toDisplayString as K, normalizeClass as J, createTextVNode as O, createCommentVNode as X, createBlock as Y, resolveDynamicComponent as Z, mergeProps as ee, nextTick as M } from "vue";
2
+ import { useModal as oe, ScalarIcon as S } from "@scalar/components";
3
3
  import { useRouter as te } from "vue-router";
4
4
  import ne from "./CommandPaletteCollection.vue.js";
5
5
  import ae from "./CommandPaletteExample.vue.js";
@@ -8,10 +8,10 @@ import se from "./CommandPaletteRequest.vue.js";
8
8
  import re from "./CommandPaletteServer.vue.js";
9
9
  import me from "./CommandPaletteTag.vue.js";
10
10
  import ce from "./CommandPaletteWorkspace.vue.js";
11
- import { commandPaletteBus as V } from "../../libs/event-busses/command-palette-bus.js";
11
+ import { commandPaletteBus as T } from "../../libs/event-busses/command-palette-bus.js";
12
12
  import { useWorkspace as ie } from "../../store/store.js";
13
- import { hotKeyBus as W } from "../../libs/event-busses/hot-keys-bus.js";
14
- const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex items-center rounded-md mb-2.5 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, fe = { for: "commandmenu" }, pe = ["onKeydown"], ve = ["onClick"], Ce = {
13
+ import { hotKeyBus as V } from "../../libs/event-busses/hot-keys-bus.js";
14
+ const ue = { class: "commandmenu z-overlay custom-scroll" }, de = { class: "bg-b-2 flex items-center rounded-md mb-2.5 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, fe = { for: "commandmenu" }, pe = ["onKeydown"], ve = ["onClick"], Ce = {
15
15
  key: 0,
16
16
  class: "text-c-3 text-center text-sm p-2 pt-3"
17
17
  }, he = {
@@ -24,12 +24,12 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
24
24
  "Add Server": re,
25
25
  "Create Collection": ne,
26
26
  "Add Example": ae
27
- }, Ie = /* @__PURE__ */ F({
27
+ }, Ee = /* @__PURE__ */ F({
28
28
  ...he,
29
29
  setup(be) {
30
30
  const A = [
31
31
  {
32
- label: "Add to Request Sidebar",
32
+ label: "",
33
33
  commands: [
34
34
  {
35
35
  name: "Create Request",
@@ -76,7 +76,7 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
76
76
  }
77
77
  ]
78
78
  }
79
- ], c = oe(), { push: z } = te(), { activeWorkspace: N } = ie(), k = u(), l = u(""), s = u(null), i = u(-1), R = u([]), p = P(
79
+ ], c = oe(), { push: W } = te(), { activeWorkspace: N } = ie(), k = u(), l = u(""), s = u(null), i = u(-1), D = u([]), p = I(
80
80
  () => A.reduce((e, o) => {
81
81
  const t = o.commands.filter(
82
82
  (n) => n.name.toLowerCase().includes(l.value.toLowerCase())
@@ -85,18 +85,18 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
85
85
  }, [])
86
86
  ), v = () => {
87
87
  c.hide(), l.value = "", s.value = null, i.value = -1;
88
- }, q = (e) => {
89
- l.value !== "" && (e == null || e.preventDefault()), s.value = null, T(() => {
88
+ }, H = (e) => {
89
+ l.value !== "" && (e == null || e.preventDefault()), s.value = null, M(() => {
90
90
  var o;
91
91
  return (o = b.value) == null ? void 0 : o.focus();
92
92
  });
93
- }, D = (e) => {
94
- "path" in e ? (z(`/workspace/${N.value.uid}${e.path}`), v()) : s.value = e.name;
95
- }, b = u(), L = ({
93
+ }, L = (e) => {
94
+ "path" in e ? (W(`/workspace/${N.value.uid}${e.path}`), v()) : s.value = e.name;
95
+ }, b = u(), R = ({
96
96
  commandName: e,
97
97
  metaData: o
98
98
  } = {}) => {
99
- s.value = e ?? null, k.value = o, c.show(), T(() => {
99
+ s.value = e ?? null, k.value = o, c.show(), M(() => {
100
100
  var t;
101
101
  return (t = b.value) == null ? void 0 : t.focus();
102
102
  });
@@ -109,24 +109,24 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
109
109
  if (!c.open) return;
110
110
  o.preventDefault();
111
111
  const t = e === "up" ? -1 : 1, n = p.value.length;
112
- i.value = (i.value + t + n) % n, (C = R.value[i.value]) == null || C.scrollIntoView({
112
+ i.value = (i.value + t + n) % n, (C = D.value[i.value]) == null || C.scrollIntoView({
113
113
  behavior: "smooth",
114
114
  block: "nearest"
115
115
  });
116
- }, x = P(
116
+ }, x = I(
117
117
  () => p.value[i.value]
118
- ), H = (e) => {
119
- !x.value || s.value || (e.preventDefault(), e.stopPropagation(), D(x.value));
120
- }, E = (e) => {
118
+ ), q = (e) => {
119
+ !x.value || s.value || (e.preventDefault(), e.stopPropagation(), L(x.value));
120
+ }, z = (e) => {
121
121
  c.open && e.closeModal && v();
122
122
  };
123
123
  return G(() => {
124
- V.on(L), W.on(E);
124
+ T.on(R), V.on(z);
125
125
  }), Q(() => {
126
- V.off(L), W.off(E);
126
+ T.off(R), V.off(z);
127
127
  }), (e, o) => (a(), r(d, null, [
128
128
  h(m("div", {
129
- class: "commandmenu-clickout",
129
+ class: "commandmenu-clickout z-overlay",
130
130
  onClick: o[0] || (o[0] = (t) => v())
131
131
  }, null, 512), [
132
132
  [w, f(c).open]
@@ -134,27 +134,27 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
134
134
  h(m("div", ue, [
135
135
  s.value ? (a(), r(d, { key: 1 }, [
136
136
  m("button", {
137
- class: "absolute p-0.75 hover:bg-b-3 rounded text-c-3 active:text-c-1 mr-1.5 my-1.5 z-10",
137
+ class: "absolute p-0.75 hover:bg-b-3 rounded text-c-3 active:text-c-1 mr-1.5 my-1.5 z-1",
138
138
  type: "button",
139
139
  onClick: o[4] || (o[4] = (t) => s.value = null)
140
140
  }, [
141
- y(f($), {
141
+ y(f(S), {
142
142
  icon: "ChevronLeft",
143
143
  size: "md",
144
144
  thickness: "1.5"
145
145
  })
146
146
  ]),
147
147
  (a(), Y(Z(ke[s.value]), ee(k.value ? { metaData: k.value } : {}, {
148
- onBack: o[5] || (o[5] = (t) => q(t)),
148
+ onBack: o[5] || (o[5] = (t) => H(t)),
149
149
  onClose: v
150
150
  }), null, 16))
151
151
  ], 64)) : (a(), r(d, { key: 0 }, [
152
152
  m("div", de, [
153
153
  m("label", fe, [
154
- y(f($), {
155
- class: "text-c-1 mr-2.5",
154
+ y(f(S), {
155
+ class: "text-c-2 mr-2.5",
156
156
  icon: "Search",
157
- size: "sm",
157
+ size: "md",
158
158
  thickness: "1.5"
159
159
  })
160
160
  ]),
@@ -169,18 +169,18 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
169
169
  placeholder: "Search commands...",
170
170
  type: "text",
171
171
  onKeydown: [
172
- o[2] || (o[2] = g(S((t) => B("down", t), ["stop"]), ["down"])),
173
- g(S(H, ["stop"]), ["enter"]),
174
- o[3] || (o[3] = g(S((t) => B("up", t), ["stop"]), ["up"]))
172
+ o[2] || (o[2] = g($((t) => B("down", t), ["stop"]), ["down"])),
173
+ g($(q, ["stop"]), ["enter"]),
174
+ o[3] || (o[3] = g($((t) => B("up", t), ["stop"]), ["up"]))
175
175
  ]
176
176
  }, null, 40, pe), [
177
177
  [j, l.value]
178
178
  ])
179
179
  ]),
180
- (a(), r(d, null, K(A, (t) => (a(), r(d, {
180
+ (a(), r(d, null, P(A, (t) => (a(), r(d, {
181
181
  key: t.label
182
182
  }, [
183
- h(m("div", { class: "text-c-3 font-medium text-xs px-2 mb-1 mt-2" }, M(t.label), 513), [
183
+ h(m("div", { class: "text-c-3 font-medium text-xs px-2 mb-1 mt-2" }, K(t.label), 513), [
184
184
  [
185
185
  w,
186
186
  t.commands.filter(
@@ -188,28 +188,28 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
188
188
  ).length > 0
189
189
  ]
190
190
  ]),
191
- (a(!0), r(d, null, K(t.commands.filter(
191
+ (a(!0), r(d, null, P(t.commands.filter(
192
192
  (n) => n.name.toLowerCase().includes(l.value.toLowerCase())
193
193
  ), (n, C) => {
194
- var I;
194
+ var E;
195
195
  return a(), r("div", {
196
196
  key: n.name,
197
197
  ref_for: !0,
198
198
  ref: (_) => {
199
- _ && (R.value[C] = _);
199
+ _ && (D.value[C] = _);
200
200
  },
201
201
  class: J(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
202
- "bg-b-2": n.name === ((I = x.value) == null ? void 0 : I.name)
202
+ "bg-b-2": n.name === ((E = x.value) == null ? void 0 : E.name)
203
203
  }]),
204
- onClick: (_) => D(n)
204
+ onClick: (_) => L(n)
205
205
  }, [
206
- y(f($), {
207
- class: "text-c-1 mr-2.5",
206
+ y(f(S), {
207
+ class: "text-c-2 mr-2.5",
208
208
  icon: n.icon,
209
209
  size: "md",
210
210
  thickness: "1.5"
211
211
  }, null, 8, ["icon"]),
212
- O(" " + M(n.name), 1)
212
+ O(" " + K(n.name), 1)
213
213
  ], 10, ve);
214
214
  }), 128))
215
215
  ], 64))), 64)),
@@ -223,5 +223,5 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
223
223
  });
224
224
  export {
225
225
  ke as PaletteComponents,
226
- Ie as default
226
+ Ee as default
227
227
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":";cA2HY,MAAM,EAAE;mBACH,MAAM;;;;cADX,MAAM,EAAE;mBACH,MAAM;;;;AAqIvB,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"}
1
+ {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":";cA0HY,MAAM,EAAE;mBACH,MAAM;;;;cADX,MAAM,EAAE;mBACH,MAAM;;;;AAqIvB,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"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ContextBar.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-ba672e06"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10366d6c"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,15 +1,31 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
2
  modelValue: boolean;
3
3
  disabled?: boolean;
4
+ align?: "left" | "center";
5
+ }>, {
6
+ align: string;
4
7
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
8
  "update:modelValue": (v: boolean) => void;
6
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
9
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
7
10
  modelValue: boolean;
8
11
  disabled?: boolean;
12
+ align?: "left" | "center";
13
+ }>, {
14
+ align: string;
9
15
  }>>> & {
10
16
  "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
11
- }, {}, {}>;
17
+ }, {
18
+ align: "left" | "center";
19
+ }, {}>;
12
20
  export default _default;
21
+ type __VLS_WithDefaults<P, D> = {
22
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
23
+ default: D[K];
24
+ }> : P[K];
25
+ };
26
+ type __VLS_Prettify<T> = {
27
+ [K in keyof T]: T[K];
28
+ } & {};
13
29
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
30
  type __VLS_TypePropsToOption<T> = {
15
31
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":";gBAyCc,OAAO;eACR,OAAO;;;;gBADN,OAAO;eACR,OAAO;;;;AAqGpB,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"}
1
+ {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":";gBA0DgB,OAAO;eACR,OAAO;YACV,MAAM,GAAG,QAAQ;;;;;;gBAFb,OAAO;eACR,OAAO;YACV,MAAM,GAAG,QAAQ;;;;;;WAAjB,MAAM,GAAG,QAAQ;;AAoG7B,wBAOG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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,36 +1,49 @@
1
- import { defineComponent as a, openBlock as l, createBlock as s, withCtx as n, createElementVNode as t, createVNode as c, unref as d } from "vue";
2
- import { ScalarIcon as i } from "@scalar/components";
3
- import f from "./DataTableCell.vue.js";
4
- const p = ["checked", "disabled"], b = { class: "w-full h-full flex items-center justify-center centered text-border peer-checked:text-c-2 pointer-events-none absolute before:absolute before:opacity-0 group-hover/cell:before:opacity-100 before:border before:rounded before:w-9/12 before:aspect-square before:top-1/2 before:left-1/2 before:transform before:-translate-x-1/2 before:-translate-y-1/2 before:border-[1px]" }, x = /* @__PURE__ */ a({
1
+ import { defineComponent as n, openBlock as s, createBlock as c, withCtx as i, createElementVNode as t, normalizeClass as d, unref as r, createVNode as f } from "vue";
2
+ import { ScalarIcon as p } from "@scalar/components";
3
+ import { cva as b } from "cva";
4
+ import m from "./DataTableCell.vue.js";
5
+ const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
5
6
  __name: "DataTableCheckbox",
6
7
  props: {
7
8
  modelValue: { type: Boolean },
8
- disabled: { type: Boolean }
9
+ disabled: { type: Boolean },
10
+ align: { default: "center" }
9
11
  },
10
12
  emits: ["update:modelValue"],
11
- setup(u) {
12
- return (e, o) => (l(), s(f, { class: "group/cell relative flex min-w-8" }, {
13
- default: n(() => [
13
+ setup(h) {
14
+ const a = b({
15
+ base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-2 pointer-events-none absolute before:absolute before:opacity-0 group-hover/cell:before:opacity-100 before:border before:rounded before:w-9/12 before:aspect-square before:top-1/2 before:left-1/2 before:transform before:-translate-x-1/2 before:-translate-y-1/2 before:border-[1px]",
16
+ variants: {
17
+ align: {
18
+ left: "left-0",
19
+ center: "centered"
20
+ }
21
+ }
22
+ });
23
+ return (e, o) => (s(), c(m, { class: "group/cell relative flex min-w-8" }, {
24
+ default: i(() => [
14
25
  t("input", {
15
26
  checked: e.modelValue,
16
27
  class: "peer absolute inset-0 opacity-0 cursor-pointer",
17
28
  disabled: e.disabled,
18
29
  tabindex: "-1",
19
30
  type: "checkbox",
20
- onChange: o[0] || (o[0] = (r) => e.$emit("update:modelValue", r.target.checked))
21
- }, null, 40, p),
22
- t("div", b, [
23
- c(d(i), {
31
+ onChange: o[0] || (o[0] = (l) => e.$emit("update:modelValue", l.target.checked))
32
+ }, null, 40, u),
33
+ t("div", {
34
+ class: d(r(a)({ align: e.align }))
35
+ }, [
36
+ f(r(p), {
24
37
  icon: "Checkmark",
25
38
  size: "xs",
26
39
  thickness: "2.5"
27
40
  })
28
- ])
41
+ ], 2)
29
42
  ]),
30
43
  _: 1
31
44
  }));
32
45
  }
33
46
  });
34
47
  export {
35
- x as default
48
+ v as default
36
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAgdA,wBAKG"}
1
+ {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAkdA,wBAKG"}
@@ -1,18 +1,18 @@
1
- import { defineComponent as y, computed as S, openBlock as a, createElementBlock as f, createVNode as n, unref as e, withCtx as o, Fragment as N, renderList as D, createBlock as v, withModifiers as h, createElementVNode as r, normalizeClass as x, createTextVNode as l, toDisplayString as k, createCommentVNode as j } from "vue";
1
+ import { defineComponent as y, computed as S, openBlock as a, createElementBlock as f, createVNode as n, unref as e, withCtx as o, Fragment as N, renderList as D, createBlock as v, withModifiers as h, createElementVNode as r, normalizeClass as w, createTextVNode as l, toDisplayString as x, createCommentVNode as j } from "vue";
2
2
  import { ScalarDropdown as z, ScalarDropdownItem as d, ScalarIcon as c, ScalarDropdownDivider as B, ScalarButton as I } from "@scalar/components";
3
3
  import { useRouter as V } from "vue-router";
4
4
  import { useWorkspace as M } from "../../store/store.js";
5
- const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = { class: "flex items-center justify-center h-4 w-4" }, O = /* @__PURE__ */ r("span", { class: "leading-none" }, "Manage Environments", -1), G = /* @__PURE__ */ y({
5
+ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center whitespace-nowrap" }, $ = { class: "flex items-center justify-center h-4 w-4" }, O = /* @__PURE__ */ r("span", { class: "leading-none" }, "Manage Environments", -1), G = /* @__PURE__ */ y({
6
6
  __name: "EnvironmentSelector",
7
7
  setup(R) {
8
8
  const {
9
9
  environments: u,
10
10
  activeWorkspace: s,
11
- workspaceMutators: w,
11
+ workspaceMutators: k,
12
12
  activeEnvironment: _,
13
13
  isReadOnly: g
14
14
  } = M(), b = V(), m = (i) => {
15
- w.edit(s.value.uid, "activeEnvironmentId", i);
15
+ k.edit(s.value.uid, "activeEnvironmentId", i);
16
16
  }, C = () => b.push(`/workspace/${s.value.uid}/environment`), E = S(() => [
17
17
  // Always add the default environment
18
18
  u.default,
@@ -28,7 +28,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
28
28
  }, {
29
29
  default: o(() => [
30
30
  r("div", {
31
- class: x([
31
+ class: w([
32
32
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
33
33
  e(s).activeEnvironmentId === t.uid ? "bg-blue text-b-1" : "text-transparent"
34
34
  ])
@@ -39,7 +39,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
39
39
  thickness: "3.5"
40
40
  })
41
41
  ], 2),
42
- l(" " + k(t.name), 1)
42
+ l(" " + x(t.name), 1)
43
43
  ]),
44
44
  _: 2
45
45
  }, 1032, ["onClick"]))), 128)),
@@ -49,7 +49,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
49
49
  }, {
50
50
  default: o(() => [
51
51
  r("div", {
52
- class: x([
52
+ class: w([
53
53
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
54
54
  e(s).activeEnvironmentId === "" ? "bg-blue text-b-1" : "text-transparent"
55
55
  ])
@@ -92,7 +92,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
92
92
  var t;
93
93
  return [
94
94
  r("h2", W, [
95
- l(k(((t = e(_)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
95
+ l(x(((t = e(_)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
96
96
  n(e(c), {
97
97
  class: "size-3",
98
98
  icon: "ChevronDown",
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  isDisable: boolean;
8
8
  isEditable: boolean;
9
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- change: (value: "head" | "get" | "delete" | "options" | "connect" | "patch" | "post" | "put" | "trace") => void;
10
+ change: (value: "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => void;
11
11
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
12
12
  isSquare?: boolean;
13
13
  method: string;
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
17
17
  isDisable: boolean;
18
18
  isEditable: boolean;
19
19
  }>>> & {
20
- onChange?: ((value: "head" | "get" | "delete" | "options" | "connect" | "patch" | "post" | "put" | "trace") => any) | undefined;
20
+ onChange?: ((value: "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
21
21
  }, {
22
22
  isSquare: boolean;
23
23
  isEditable: boolean;
@@ -0,0 +1,39 @@
1
+ import type { RequestPayload } from '@scalar/oas-utils/entities/spec';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
+ parsedCurl: RequestPayload | null;
4
+ state: {
5
+ open: boolean;
6
+ show: () => void;
7
+ hide: () => void;
8
+ };
9
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ importCurl: (payload: {
11
+ parsedCurl: RequestPayload;
12
+ requestName: string;
13
+ }) => void;
14
+ close: () => void;
15
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
16
+ parsedCurl: RequestPayload | null;
17
+ state: {
18
+ open: boolean;
19
+ show: () => void;
20
+ hide: () => void;
21
+ };
22
+ }>>> & {
23
+ onImportCurl?: ((payload: {
24
+ parsedCurl: RequestPayload;
25
+ requestName: string;
26
+ }) => any) | undefined;
27
+ onClose?: (() => any) | undefined;
28
+ }, {}, {}>;
29
+ export default _default;
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToOption<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: import('vue').PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
39
+ //# sourceMappingURL=ImportCurlModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImportCurlModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCurl/ImportCurlModal.vue"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAEV,cAAc,EACf,MAAM,iCAAiC,CAAA;;gBAO1B,cAAc,GAAG,IAAI;WAC1B;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;;;oBAOnC,cAAc;qBAAe,MAAM;;;;gBARhD,cAAc,GAAG,IAAI;WAC1B;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;;;oBAOnC,cAAc;qBAAe,MAAM;;;;AA0N9D,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,7 @@
1
+ import o from "./ImportCurlModal.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6103022c"]]);
5
+ export {
6
+ a as default
7
+ };