@scalar/api-client 2.0.44 → 2.0.46

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 (113) hide show
  1. package/CHANGELOG.md +23 -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 +77 -69
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +24 -25
  7. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  9. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +23 -23
  10. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +6 -6
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +1 -1
  14. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  15. package/dist/components/ContextBar.vue.js +5 -23
  16. package/dist/components/ContextBar.vue2.js +25 -2
  17. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +1 -1
  18. package/dist/components/Form/Form.vue.d.ts +12 -3
  19. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  20. package/dist/components/Form/Form.vue.js +24 -24
  21. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  22. package/dist/components/HttpMethod/HttpMethod.vue.js +5 -64
  23. package/dist/components/HttpMethod/HttpMethod.vue2.js +61 -2
  24. package/dist/components/Search/SearchModal.vue2.js +22 -22
  25. package/dist/components/SideNav/SideHelp.vue.js +1 -1
  26. package/dist/components/SideNav/SideNavLink.vue.js +2 -2
  27. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  28. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  29. package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
  30. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  31. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  32. package/dist/components/Sidebar/SidebarListElement.vue2.js +21 -21
  33. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  34. package/dist/components/Sidebar/SidebarListElementActions.vue.js +19 -18
  35. package/dist/components/Sidebar/SidebarToggle.vue.js +1 -1
  36. package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
  37. package/dist/components/SubpageHeader.vue.js +3 -3
  38. package/dist/components/SubpageHeader.vue2.js +8 -8
  39. package/dist/components/TopNav/TopNav.vue.js +2 -2
  40. package/dist/components/TopNav/TopNav.vue2.js +2 -2
  41. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  42. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  43. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  44. package/dist/components/ViewLayout/ViewLayout.vue.js +6 -6
  45. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
  46. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
  47. package/dist/errors.d.ts +5 -0
  48. package/dist/errors.d.ts.map +1 -0
  49. package/dist/errors.js +7 -0
  50. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  51. package/dist/layouts/App/ApiClientApp.vue.js +46 -43
  52. package/dist/layouts/App/create-api-client-app.d.ts +158 -81
  53. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  54. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  55. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  56. package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -20
  57. package/dist/layouts/Modal/create-api-client-modal.d.ts +316 -162
  58. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  59. package/dist/libs/create-client.d.ts +159 -83
  60. package/dist/libs/create-client.d.ts.map +1 -1
  61. package/dist/libs/create-client.js +18 -19
  62. package/dist/libs/event-busses/command-palette.d.ts.map +1 -0
  63. package/dist/libs/{eventBusses/executeRequestBus.d.ts → event-busses/execute-requestBus.d.ts} +1 -1
  64. package/dist/libs/event-busses/execute-requestBus.d.ts.map +1 -0
  65. package/dist/libs/event-busses/hot-key.d.ts +34 -0
  66. package/dist/libs/event-busses/hot-key.d.ts.map +1 -0
  67. package/dist/libs/event-busses/hot-key.js +25 -0
  68. package/dist/libs/event-busses/index.d.ts +5 -0
  69. package/dist/libs/event-busses/index.d.ts.map +1 -0
  70. package/dist/libs/event-busses/index.js +12 -0
  71. package/dist/libs/event-busses/request-status-bus.d.ts +5 -0
  72. package/dist/libs/event-busses/request-status-bus.d.ts.map +1 -0
  73. package/dist/libs/event-busses/request-status-bus.js +5 -0
  74. package/dist/libs/index.d.ts +1 -1
  75. package/dist/libs/index.d.ts.map +1 -1
  76. package/dist/libs/index.js +18 -10
  77. package/dist/libs/sendRequest.d.ts +2 -0
  78. package/dist/libs/sendRequest.d.ts.map +1 -1
  79. package/dist/libs/sendRequest.js +46 -37
  80. package/dist/store/workspace.d.ts +316 -162
  81. package/dist/store/workspace.d.ts.map +1 -1
  82. package/dist/style.css +1 -1
  83. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  84. package/dist/views/Cookies/CookieForm.vue.js +34 -17
  85. package/dist/views/Cookies/Cookies.vue2.js +9 -9
  86. package/dist/views/Environment/Environment.vue2.js +24 -24
  87. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  88. package/dist/views/Request/Request.vue.js +1 -1
  89. package/dist/views/Request/Request.vue2.js +170 -166
  90. package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
  91. package/dist/views/Request/RequestSection/RequestAuth.vue.js +2 -2
  92. package/dist/views/Request/RequestSection/RequestAuth.vue2.js +115 -126
  93. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  94. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +63 -42
  95. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  96. package/dist/views/Request/RequestSection/RequestSection.vue.js +69 -51
  97. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  98. package/dist/views/Request/RequestSidebarItem.vue2.js +32 -32
  99. package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
  100. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +19 -19
  101. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  102. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +18 -18
  103. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  104. package/dist/views/Request/components/WorkspaceDropdown.vue.js +10 -10
  105. package/package.json +9 -9
  106. package/dist/libs/eventBusses/command-palette.d.ts.map +0 -1
  107. package/dist/libs/eventBusses/executeRequestBus.d.ts.map +0 -1
  108. package/dist/libs/eventBusses/index.d.ts +0 -2
  109. package/dist/libs/eventBusses/index.d.ts.map +0 -1
  110. package/dist/libs/eventBusses/index.js +0 -4
  111. /package/dist/libs/{eventBusses → event-busses}/command-palette.d.ts +0 -0
  112. /package/dist/libs/{eventBusses → event-busses}/command-palette.js +0 -0
  113. /package/dist/libs/{eventBusses/executeRequestBus.js → event-busses/execute-requestBus.js} +0 -0
@@ -1,5 +1,8 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
- title: string;
1
+ declare function __VLS_template(): {
2
+ title?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
5
+ title?: string;
3
6
  options: {
4
7
  key: string;
5
8
  label: string;
@@ -8,7 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
8
11
  data: Record<string, any>;
9
12
  onUpdate: (key: string, value: any) => void;
10
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
11
- title: string;
14
+ title?: string;
12
15
  options: {
13
16
  key: string;
14
17
  label: string;
@@ -17,7 +20,13 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
17
20
  data: Record<string, any>;
18
21
  onUpdate: (key: string, value: any) => void;
19
22
  }>>>, {}, {}>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
24
  export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
21
30
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
31
  type __VLS_TypePropsToOption<T> = {
23
32
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1 +1 @@
1
- {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":";WA+CS,MAAM;aACJ;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE;UACxD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cACf,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI;;WAHpC,MAAM;aACJ;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE;UACxD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cACf,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI;;AAiH7C,wBAMG;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":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"AA8DA,iBAAS,cAAc;mBA4FI,GAAG;EAkB7B;AACD,QAAA,MAAM,eAAe;YA3HX,MAAM;aACL;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE;UACxD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cACf,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI;;YAHnC,MAAM;aACL;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE;UACxD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cACf,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI;aA8H3C,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,9 +1,9 @@
1
- import { defineComponent as s, openBlock as a, createBlock as o, withCtx as t, createElementVNode as n, toDisplayString as m, createElementBlock as p, Fragment as c, renderList as u, normalizeClass as i, createVNode as f, createTextVNode as _, createCommentVNode as k } from "vue";
2
- import y from "../DataTable/DataTable.vue.js";
1
+ import { defineComponent as m, openBlock as t, createBlock as o, withCtx as l, createElementBlock as n, toDisplayString as s, renderSlot as p, createElementVNode as c, Fragment as i, renderList as u, normalizeClass as f, createVNode as _, createTextVNode as k, createCommentVNode as y } from "vue";
2
+ import h from "../DataTable/DataTable.vue.js";
3
3
  import V from "../DataTable/DataTableInput.vue.js";
4
- import h from "../DataTable/DataTableRow.vue.js";
5
- import b from "../ViewLayout/ViewLayoutSection.vue.js";
6
- const g = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-5" }, w = /* @__PURE__ */ s({
4
+ import b from "../DataTable/DataTableRow.vue.js";
5
+ import g from "../ViewLayout/ViewLayoutSection.vue.js";
6
+ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-5" }, w = /* @__PURE__ */ m({
7
7
  __name: "Form",
8
8
  props: {
9
9
  title: {},
@@ -11,30 +11,30 @@ const g = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-5" }, w =
11
11
  data: {},
12
12
  onUpdate: { type: Function }
13
13
  },
14
- setup(C) {
15
- return (e, N) => (a(), o(b, null, {
16
- title: t(() => [
17
- n("span", null, m(e.title), 1)
14
+ setup(U) {
15
+ return (e, B) => (t(), o(g, null, {
16
+ title: l(() => [
17
+ e.title ? (t(), n("span", C, s(e.title), 1)) : p(e.$slots, "title", { key: 1 })
18
18
  ]),
19
- default: t(() => [
20
- n("div", g, [
21
- Object.keys(e.data).length > 0 ? (a(), o(y, {
19
+ default: l(() => [
20
+ c("div", N, [
21
+ Object.keys(e.data).length > 0 ? (t(), o(h, {
22
22
  key: 0,
23
23
  columns: [""]
24
24
  }, {
25
- default: t(() => [
26
- (a(!0), p(c, null, u(e.options, (l, r) => (a(), o(h, {
25
+ default: l(() => [
26
+ (t(!0), n(i, null, u(e.options, (a, r) => (t(), o(b, {
27
27
  key: r,
28
- class: i({ "border-t": r === 0 })
28
+ class: f({ "border-t": r === 0 })
29
29
  }, {
30
- default: t(() => [
31
- f(V, {
32
- modelValue: String(e.data[l.key] ?? ""),
33
- placeholder: l.placeholder,
34
- "onUpdate:modelValue": (d) => e.onUpdate(l.key, d)
30
+ default: l(() => [
31
+ _(V, {
32
+ modelValue: String(e.data[a.key] ?? ""),
33
+ placeholder: a.placeholder,
34
+ "onUpdate:modelValue": (d) => e.onUpdate(a.key, d)
35
35
  }, {
36
- default: t(() => [
37
- _(m(l.label), 1)
36
+ default: l(() => [
37
+ k(s(a.label), 1)
38
38
  ]),
39
39
  _: 2
40
40
  }, 1032, ["modelValue", "placeholder", "onUpdate:modelValue"])
@@ -43,10 +43,10 @@ const g = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-5" }, w =
43
43
  }, 1032, ["class"]))), 128))
44
44
  ]),
45
45
  _: 1
46
- })) : k("", !0)
46
+ })) : y("", !0)
47
47
  ])
48
48
  ]),
49
- _: 1
49
+ _: 3
50
50
  }));
51
51
  }
52
52
  });
@@ -1 +1 @@
1
- {"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":";eA8Fe,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;eAFT,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;cAFT,OAAO;gBAEL,OAAO;;AAuIxB,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
+ {"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":";eA0Ge,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;eAFT,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;cAFT,OAAO;gBAEL,OAAO;;AA+HxB,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,66 +1,7 @@
1
- import { defineComponent as g, computed as l, openBlock as i, createBlock as m, unref as t, withCtx as y, createElementVNode as n, normalizeClass as s, toDisplayString as p, createCommentVNode as q, createElementBlock as k } from "vue";
2
- import { ScalarListbox as x, ScalarIcon as w } from "@scalar/components";
3
- import { getRequest as B, REQUEST_METHODS as C } from "@scalar/oas-utils/helpers";
4
- import { cva as V, cx as f } from "cva";
5
- const z = /* @__PURE__ */ g({
6
- __name: "HttpMethod",
7
- props: {
8
- isSquare: { type: Boolean, default: !1 },
9
- method: {},
10
- isEditable: { type: Boolean, default: !1 }
11
- },
12
- emits: ["change"],
13
- setup(b, { emit: h }) {
14
- const r = b, v = h, a = l(() => B(r.method)), d = Object.entries(C).map(
15
- ([e, { short: o }]) => ({ id: e, label: o })
16
- ), u = l({
17
- get: () => d.find(({ id: e }) => e === r.method),
18
- set: (e) => (e == null ? void 0 : e.id) && v("change", e.id)
19
- }), c = V({
20
- base: "text-center font-code text-3xs justify-center items-center flex",
21
- variants: {
22
- isSquare: {
23
- true: "px-2.5 rounded-md shadow-border whitespace-nowrap !bg-transparent font-bold",
24
- false: "rounded-full"
25
- },
26
- isEditable: {
27
- true: "px-0 hover:bg-mix-b-2",
28
- false: "cusor-pointer"
29
- }
30
- }
31
- }), E = l(() => a.value.short);
32
- return (e, o) => e.isEditable ? (i(), m(t(x), {
33
- key: 0,
34
- modelValue: u.value,
35
- "onUpdate:modelValue": o[0] || (o[0] = (S) => u.value = S),
36
- options: t(d)
37
- }, {
38
- default: y(() => [
39
- n("div", {
40
- class: s(["h-full", { "pointer-events-none": !e.isEditable }])
41
- }, [
42
- n("button", {
43
- class: s(["relative h-full gap-1", t(f)(t(c)({ isSquare: e.isSquare, isEditable: e.isEditable }), a.value.color)]),
44
- type: "button"
45
- }, [
46
- n("span", null, p(E.value), 1),
47
- e.isEditable ? (i(), m(t(w), {
48
- key: 0,
49
- class: s(a.value.color),
50
- icon: "ChevronDown",
51
- size: "xs"
52
- }, null, 8, ["class"])) : q("", !0)
53
- ], 2)
54
- ], 2)
55
- ]),
56
- _: 1
57
- }, 8, ["modelValue", "options"])) : (i(), k("div", {
58
- key: 1,
59
- class: s(["relative gap-1", t(f)(t(c)({ isSquare: e.isSquare, isEditable: e.isEditable }), a.value.color)]),
60
- type: "button"
61
- }, p(a.value.short), 3));
62
- }
63
- });
1
+ import t from "./HttpMethod.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0bfd62ac"]]);
64
5
  export {
65
- z as default
6
+ f as default
66
7
  };
@@ -1,4 +1,63 @@
1
- import f from "./HttpMethod.vue.js";
1
+ import { defineComponent as S, computed as s, openBlock as m, createBlock as g, unref as t, withCtx as y, createElementVNode as l, normalizeClass as r, toDisplayString as c, createElementBlock as q } from "vue";
2
+ import { ScalarListbox as k } from "@scalar/components";
3
+ import { getRequest as x, REQUEST_METHODS as B } from "@scalar/oas-utils/helpers";
4
+ import { cva as w, cx as p } from "cva";
5
+ const O = /* @__PURE__ */ S({
6
+ __name: "HttpMethod",
7
+ props: {
8
+ isSquare: { type: Boolean, default: !1 },
9
+ method: {},
10
+ isEditable: { type: Boolean, default: !1 }
11
+ },
12
+ emits: ["change"],
13
+ setup(f, { emit: b }) {
14
+ const i = f, h = b, o = s(() => x(i.method)), n = Object.entries(B).map(
15
+ ([e, { short: a }]) => ({
16
+ id: e,
17
+ label: e.charAt(0) + e.toLowerCase().slice(1)
18
+ })
19
+ ), d = s({
20
+ get: () => n.find(({ id: e }) => e === i.method),
21
+ set: (e) => (e == null ? void 0 : e.id) && h("change", e.id)
22
+ }), u = w({
23
+ base: "text-center font-code text-3xs justify-center items-center flex",
24
+ variants: {
25
+ isSquare: {
26
+ true: "px-2.5 whitespace-nowrap font-bold border-r h-fit m-auto",
27
+ false: "rounded-full"
28
+ },
29
+ isEditable: {
30
+ true: "px-0 http-bg-gradient rounded-md border-1/2 border-r-1/2",
31
+ false: "cusor-pointer"
32
+ }
33
+ }
34
+ }), v = s(() => o.value.short);
35
+ return (e, a) => e.isEditable ? (m(), g(t(k), {
36
+ key: 0,
37
+ modelValue: d.value,
38
+ "onUpdate:modelValue": a[0] || (a[0] = (E) => d.value = E),
39
+ options: t(n)
40
+ }, {
41
+ default: y(() => [
42
+ l("div", {
43
+ class: r(["h-full", { "pointer-events-none": !e.isEditable }])
44
+ }, [
45
+ l("button", {
46
+ class: r(["relative h-full", t(p)(t(u)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
47
+ type: "button"
48
+ }, [
49
+ l("span", null, c(v.value), 1)
50
+ ], 2)
51
+ ], 2)
52
+ ]),
53
+ _: 1
54
+ }, 8, ["modelValue", "options"])) : (m(), q("div", {
55
+ key: 1,
56
+ class: r(["relative gap-1", t(p)(t(u)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
57
+ type: "button"
58
+ }, c(o.value.short), 3));
59
+ }
60
+ });
2
61
  export {
3
- f as default
62
+ O as default
4
63
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as y, ref as i, watch as b, computed as C, openBlock as w, createBlock as E, unref as d, withCtx as r, createElementVNode as h, createVNode as R, createTextVNode as m, toDisplayString as p, createElementBlock as F, Fragment as N, renderList as A, createSlots as D, pushScopeId as T, popScopeId as W } from "vue";
1
+ import { defineComponent as y, ref as i, watch as _, computed as C, openBlock as w, createBlock as E, unref as d, withCtx as r, createElementVNode as h, createVNode as R, createTextVNode as m, toDisplayString as p, createElementBlock as F, Fragment as N, renderList as A, createSlots as D, pushScopeId as T, popScopeId as W } from "vue";
2
2
  import { useWorkspace as L } from "../../store/workspace.js";
3
- import { ScalarModal as U, ScalarSearchInput as j, ScalarSearchResultList as K, ScalarSearchResultItem as O } from "@scalar/components";
4
- import { useMagicKeys as P, whenever as g } from "@vueuse/core";
5
- import z from "fuse.js";
6
- import { useRouter as G } from "vue-router";
7
- import H from "../HttpMethod/HttpMethod.vue.js";
3
+ import { ScalarModal as U, ScalarSearchInput as j, ScalarSearchResultList as H, ScalarSearchResultItem as K } from "@scalar/components";
4
+ import { useMagicKeys as O, whenever as g } from "@vueuse/core";
5
+ import P from "fuse.js";
6
+ import { useRouter as z } from "vue-router";
7
+ import G from "../HttpMethod/HttpMethod.vue.js";
8
8
  const J = (u) => (T("data-v-67d6f77b"), u = u(), W(), u), Q = /* @__PURE__ */ J(() => /* @__PURE__ */ h("div", { class: "ref-search-meta" }, [
9
9
  /* @__PURE__ */ h("span", null, "↑↓ Navigate"),
10
10
  /* @__PURE__ */ h("span", null, "⏎ Select")
@@ -14,12 +14,12 @@ const J = (u) => (T("data-v-67d6f77b"), u = u(), W(), u), Q = /* @__PURE__ */ J(
14
14
  modalState: {}
15
15
  },
16
16
  setup(u) {
17
- const c = u, $ = G(), { activeWorkspaceRequests: B } = L(), v = P(), l = i([]), f = i([]), o = i(0), s = i(""), _ = i(null), S = new z(l.value, {
17
+ const c = u, M = z(), { activeWorkspaceRequests: B } = L(), v = O(), l = i([]), f = i([]), o = i(0), s = i(""), I = i(null), S = new P(l.value, {
18
18
  keys: ["title", "description", "body"]
19
- }), M = () => {
19
+ }), $ = () => {
20
20
  o.value = 0, f.value = S.search(s.value);
21
21
  };
22
- b(
22
+ _(
23
23
  () => c.modalState.open,
24
24
  (e) => {
25
25
  var a;
@@ -27,9 +27,9 @@ const J = (u) => (T("data-v-67d6f77b"), u = u(), W(), u), Q = /* @__PURE__ */ J(
27
27
  l.value.length > 0 && (l.value = [], S.setCollection(l.value));
28
28
  return;
29
29
  }
30
- (a = _.value) == null || a.focus(), s.value = "", o.value = 0, f.value = [];
30
+ (a = I.value) == null || a.focus(), s.value = "", o.value = 0, f.value = [];
31
31
  }
32
- ), b(
32
+ ), _(
33
33
  B,
34
34
  (e) => {
35
35
  Object.values(e).forEach((a) => {
@@ -44,8 +44,8 @@ const J = (u) => (T("data-v-67d6f77b"), u = u(), W(), u), Q = /* @__PURE__ */ J(
44
44
  },
45
45
  { immediate: !0 }
46
46
  );
47
- function I(e) {
48
- $.push(e.item.id), c.modalState.hide();
47
+ function V(e) {
48
+ M.push(e.item.id), c.modalState.hide();
49
49
  }
50
50
  const k = C(
51
51
  () => n.value[o.value]
@@ -55,7 +55,7 @@ const J = (u) => (T("data-v-67d6f77b"), u = u(), W(), u), Q = /* @__PURE__ */ J(
55
55
  })) : f.value
56
56
  );
57
57
  return g(v.enter, () => {
58
- c.modalState.open && window && I(k.value);
58
+ c.modalState.open && window && V(k.value);
59
59
  }), g(v.ArrowDown, () => {
60
60
  var e;
61
61
  c.modalState.open && window && (o.value < n.value.length - 1 ? o.value++ : o.value = 0, (e = document.getElementById(`search-modal-${k.value.item.id}`)) == null || e.scrollIntoView({
@@ -75,16 +75,16 @@ const J = (u) => (T("data-v-67d6f77b"), u = u(), W(), u), Q = /* @__PURE__ */ J(
75
75
  default: r(() => [
76
76
  h("div", {
77
77
  ref_key: "searchModalRef",
78
- ref: _,
78
+ ref: I,
79
79
  class: "ref-search-container"
80
80
  }, [
81
81
  R(d(j), {
82
82
  modelValue: s.value,
83
83
  "onUpdate:modelValue": a[0] || (a[0] = (t) => s.value = t),
84
- onInput: M
84
+ onInput: $
85
85
  }, null, 8, ["modelValue"])
86
86
  ], 512),
87
- R(d(K), {
87
+ R(d(H), {
88
88
  class: "ref-search-results custom-scroll",
89
89
  noResults: !n.value.length
90
90
  }, {
@@ -92,16 +92,16 @@ const J = (u) => (T("data-v-67d6f77b"), u = u(), W(), u), Q = /* @__PURE__ */ J(
92
92
  m(p(s.value), 1)
93
93
  ]),
94
94
  default: r(() => [
95
- (w(!0), F(N, null, A(n.value, (t, V) => (w(), E(d(O), {
95
+ (w(!0), F(N, null, A(n.value, (t, b) => (w(), E(d(K), {
96
96
  id: `#search-modal-${t.item.id}`,
97
97
  key: t.refIndex,
98
- active: o.value === V,
98
+ active: o.value === b,
99
99
  icon: "Terminal",
100
- onClick: (x) => I(t),
101
- onFocus: (x) => o.value = V
100
+ onClick: (x) => V(t),
101
+ onFocus: (x) => o.value = b
102
102
  }, D({
103
103
  addon: r(() => [
104
- R(d(H), {
104
+ R(d(G), {
105
105
  method: t.item.httpVerb ?? "get"
106
106
  }, null, 8, ["method"])
107
107
  ]),
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as o, createBlock as i, unref as s, withCtx as c, createElementVNode as e, createVNode as t } from "vue";
2
2
  import { ScalarDropdown as r, ScalarDropdownItem as a, ScalarIcon as n } from "@scalar/components";
3
3
  const d = {
4
- class: "min-w-[37px] max-w-[42px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 scalar-app-nav-padding",
4
+ class: "min-w-[37px] max-w-[42px] hover:bg-b-3 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 scalar-app-nav-padding",
5
5
  type: "button"
6
6
  }, _ = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 font-medium" }, "Support", -1), p = {
7
7
  class: "no-underline block",
@@ -21,8 +21,8 @@ const k = { class: "no-underline font-medium text-[11px] hidden scalar-app-show
21
21
  }, {
22
22
  default: p(() => [
23
23
  o("div", {
24
- class: l(["min-w-[37px] max-w-[42px] group-hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px] scalar-app-nav-padding text-c-3", {
25
- "bg-b-2 transition-none group-hover:cursor-auto !text-c-1": e.active
24
+ class: l(["min-w-[37px] max-w-[42px] group-hover:bg-b-3 active:text-c-1 flex items-center justify-center rounded-lg p-[7px] scalar-app-nav-padding text-c-3", {
25
+ "bg-b-3 transition-none group-hover:cursor-auto !text-c-1": e.active
26
26
  }])
27
27
  }, [
28
28
  m(t(v), {
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAsDA,iBAAS,cAAc;oBAwDK,GAAG;qBACF,GAAG;oBACJ,GAAG;EAe9B;AACD,QAAA,MAAM,eAAe;YApFW,MAAM;;YAAN,MAAM;aA0FpC,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
+ {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAuDA,iBAAS,cAAc;oBAwDK,GAAG;qBACF,GAAG;oBACJ,GAAG;EAe9B;AACD,QAAA,MAAM,eAAe;YApFW,MAAM;;YAAN,MAAM;aA0FpC,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,8 +1,8 @@
1
1
  import { defineComponent as a, openBlock as o, createElementBlock as r, renderSlot as t, unref as l, createElementVNode as n, toDisplayString as i, createCommentVNode as d, normalizeClass as m } from "vue";
2
2
  import { useWorkspace as c } from "../../store/workspace.js";
3
- const p = { class: "w-sidebar relative flex flex-col border-r bg-b-1" }, b = {
3
+ const p = { class: "w-sidebar relative flex flex-col border-r-1/2 bg-b-1" }, b = {
4
4
  key: 0,
5
- class: "xl:min-h-header py-2.5 flex items-center border-b px-4 text-sm"
5
+ class: "xl:min-h-header py-2.5 flex items-center border-b-1/2 px-4 text-sm"
6
6
  }, f = { class: "font-medium m-0 text-sm" }, x = /* @__PURE__ */ a({
7
7
  __name: "Sidebar",
8
8
  props: {
@@ -12,7 +12,7 @@ const m = { class: "fixed relative bottom-[42px] z-10 flex px-2.5 pb-2 pt-0" },
12
12
  };
13
13
  return (c, f) => (i(), l("div", m, [
14
14
  e(a(d), {
15
- class: "bg-b-1 text-c-1 hover:bg-b-2 group relative w-full border p-1.5 h-auto",
15
+ class: "bg-b-1 text-c-1 hover:bg-b-2 group relative w-full border-1/2 p-1.5 h-auto",
16
16
  icon: "Plus",
17
17
  variant: "outlined",
18
18
  onClick: t
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";cAqEY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;qBACgB,MAAM;;;;cANb;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;qBACgB,MAAM;;;;AAmJzB,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":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";cAyEY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;qBACgB,MAAM;;;;cANb;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;qBACgB,MAAM;;;;AAwJzB,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 t from "./SidebarListElement.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b1d16830"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-c5578caa"]]);
5
5
  export {
6
- a as default
6
+ m as default
7
7
  };
@@ -1,40 +1,40 @@
1
- import { defineComponent as b, resolveComponent as c, openBlock as o, createElementBlock as t, createVNode as n, normalizeClass as r, withModifiers as v, withCtx as f, createElementVNode as g, createCommentVNode as k, createTextVNode as w, toDisplayString as h } from "vue";
2
- import C from "./SidebarListElementActions.vue.js";
1
+ import { defineComponent as c, resolveComponent as v, openBlock as o, createElementBlock as n, createVNode as t, normalizeClass as l, withModifiers as f, withCtx as g, createElementVNode as r, createCommentVNode as h, toDisplayString as k } from "vue";
2
+ import w from "./SidebarListElementActions.vue.js";
3
3
  import { useRouter as _ } from "vue-router";
4
- const y = {
4
+ const C = {
5
5
  key: 0,
6
6
  class: "hover:bg-b-3 rounded p-1.5",
7
7
  type: "button"
8
- }, E = /* @__PURE__ */ b({
8
+ }, y = { class: "empty-variable-name" }, V = /* @__PURE__ */ c({
9
9
  __name: "SidebarListElement",
10
10
  props: {
11
11
  variable: {},
12
12
  warningMessage: {}
13
13
  },
14
14
  emits: ["delete"],
15
- setup(D, { emit: l }) {
16
- const i = l, s = _(), m = (e, a) => {
17
- e.metaKey ? window.open(a, "_blank") : s.push(a);
15
+ setup(D, { emit: i }) {
16
+ const s = i, m = _(), p = (e, a) => {
17
+ e.metaKey ? window.open(a, "_blank") : m.push(a);
18
18
  }, u = (e) => {
19
- i("delete", e);
19
+ s("delete", e);
20
20
  };
21
21
  return (e, a) => {
22
- const d = c("router-link");
23
- return o(), t("li", null, [
24
- n(d, {
25
- class: r(["text-c-2 hover:bg-b-2 group relative block flex items-center gap-1 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
22
+ const d = v("router-link");
23
+ return o(), n("li", null, [
24
+ t(d, {
25
+ class: l(["text-c-2 hover:bg-b-2 group relative block flex items-center gap-1 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
26
26
  exactActiveClass: "active-link",
27
27
  to: `${e.variable.uid}`,
28
- onClick: a[0] || (a[0] = v((p) => m(p, e.variable.uid), ["prevent"]))
28
+ onClick: a[0] || (a[0] = f((b) => p(b, e.variable.uid), ["prevent"]))
29
29
  }, {
30
- default: f(() => [
31
- e.variable.color ? (o(), t("button", y, [
32
- g("div", {
33
- class: r(["h-2.5 w-2.5 rounded-xl", `bg-${e.variable.color}`])
30
+ default: g(() => [
31
+ e.variable.color ? (o(), n("button", C, [
32
+ r("div", {
33
+ class: l(["h-2.5 w-2.5 rounded-xl", `bg-${e.variable.color}`])
34
34
  }, null, 2)
35
- ])) : k("", !0),
36
- w(" " + h(e.variable.name) + " ", 1),
37
- n(C, {
35
+ ])) : h("", !0),
36
+ r("span", y, k(e.variable.name), 1),
37
+ t(w, {
38
38
  variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
39
39
  warningMessage: e.warningMessage,
40
40
  onDelete: u
@@ -47,5 +47,5 @@ const y = {
47
47
  }
48
48
  });
49
49
  export {
50
- E as default
50
+ V as default
51
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAoFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;cAJS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;AAiLH,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":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAqFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;cAJS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;AA6LH,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,6 +1,6 @@
1
- import { defineComponent as k, ref as w, openBlock as l, createElementBlock as s, Fragment as g, createElementVNode as c, unref as a, createVNode as i, withModifiers as N, createCommentVNode as u, withCtx as x, createBlock as $ } from "vue";
1
+ import { defineComponent as k, ref as w, openBlock as l, createElementBlock as c, Fragment as g, createElementVNode as u, unref as a, createVNode as i, withModifiers as N, createCommentVNode as m, withCtx as x, createBlock as $ } from "vue";
2
2
  import D from "./Actions/DeleteSidebarListElement.vue.js";
3
- import { useModal as M, ScalarIcon as m, ScalarModal as A } from "@scalar/components";
3
+ import { useModal as M, ScalarIcon as d, ScalarModal as A } from "@scalar/components";
4
4
  import { useClipboard as S } from "../../hooks/useClipboard.js";
5
5
  const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" }, z = /* @__PURE__ */ k({
6
6
  __name: "SidebarListElementActions",
@@ -8,39 +8,39 @@ const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
8
8
  variable: {}
9
9
  },
10
10
  emits: ["delete"],
11
- setup(d, { emit: p }) {
12
- const { variable: v } = d, b = p, t = w({ action: "None", name: "" }), n = M(), { copyToClipboard: f } = S();
13
- function h(e) {
14
- t.value = { action: e, name: v.name }, n.show();
11
+ setup(p, { emit: v }) {
12
+ const { variable: b } = p, f = v, t = w({ action: "None", name: "" }), n = M(), { copyToClipboard: h } = S();
13
+ function C(e) {
14
+ t.value = { action: e, name: b.name }, n.show();
15
15
  }
16
- function C() {
16
+ function r() {
17
17
  n.hide(), t.value = { action: "None", name: "" };
18
18
  }
19
19
  function y(e) {
20
- b("delete", e), C();
20
+ f("delete", e), r();
21
21
  }
22
- return (e, o) => (l(), s(g, null, [
23
- c("div", B, [
24
- c("button", {
22
+ return (e, o) => (l(), c(g, null, [
23
+ u("div", B, [
24
+ u("button", {
25
25
  class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
26
26
  type: "button",
27
- onClick: o[0] || (o[0] = (r) => a(f)(e.variable.name))
27
+ onClick: o[0] || (o[0] = (s) => a(h)(e.variable.name))
28
28
  }, [
29
- i(a(m), {
29
+ i(a(d), {
30
30
  class: "h-3 w-3",
31
31
  icon: "Clipboard"
32
32
  })
33
33
  ]),
34
- e.variable.isDefault ? u("", !0) : (l(), s("button", {
34
+ e.variable.isDefault ? m("", !0) : (l(), c("button", {
35
35
  key: 0,
36
36
  class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",
37
37
  type: "button",
38
- onClick: o[1] || (o[1] = N((r) => h(
38
+ onClick: o[1] || (o[1] = N((s) => C(
39
39
  "Delete"
40
40
  /* Delete */
41
41
  ), ["prevent"]))
42
42
  }, [
43
- i(a(m), {
43
+ i(a(d), {
44
44
  class: "h-3.5 w-3.5",
45
45
  icon: "Close"
46
46
  })
@@ -56,8 +56,9 @@ const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
56
56
  key: 0,
57
57
  variableName: t.value.name,
58
58
  warningMessage: "Are you sure you want to delete this cookie?",
59
- onDelete: o[2] || (o[2] = (r) => y(e.variable.uid))
60
- }, null, 8, ["variableName"])) : u("", !0)
59
+ onClose: r,
60
+ onDelete: o[2] || (o[2] = (s) => y(e.variable.uid))
61
+ }, null, 8, ["variableName"])) : m("", !0)
61
62
  ]),
62
63
  _: 1
63
64
  }, 8, ["state", "title"])
@@ -25,7 +25,7 @@ const a = {
25
25
  emits: ["update:modelValue"],
26
26
  setup(u) {
27
27
  return (t, o) => (l(), n("button", {
28
- class: "text-c-3 hover:bg-b-3 active:text-c-1 p-2 rounded",
28
+ class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
29
29
  type: "button",
30
30
  onClick: o[0] || (o[0] = (p) => t.$emit("update:modelValue", !t.modelValue))
31
31
  }, [
@@ -1 +1 @@
1
- {"version":3,"file":"SubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/SubpageHeader.vue"],"names":[],"mappings":"AA2CA,iBAAS,cAAc;qBAoFO,GAAG;EAehC;AACD,QAAA,MAAM,eAAe,0NAKnB,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"}
1
+ {"version":3,"file":"SubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/SubpageHeader.vue"],"names":[],"mappings":"AA2CA,iBAAS,cAAc;qBAuFO,GAAG;EAehC;AACD,QAAA,MAAM,eAAe,0NAKnB,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"}
@@ -1,7 +1,7 @@
1
- import o from "./SubpageHeader.vue2.js";
1
+ import e from "./SubpageHeader.vue2.js";
2
2
  /* empty css */
3
- import r from "../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-609611d1"]]);
3
+ import o from "../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-8a69ee40"]]);
5
5
  export {
6
6
  p as default
7
7
  };