@scalar/api-client 2.26.1 → 2.27.1

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 (158) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/dist/components/Server/ServerSelector.vue.js +6 -6
  3. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +6 -6
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +1 -1
  6. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  7. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +48 -43
  8. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  9. package/dist/v2/blocks/operation-block/components/Header.vue2.js +10 -10
  10. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  11. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +29 -25
  12. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
  13. package/dist/v2/blocks/operation-block/helpers/get-example.js +15 -15
  14. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts +10 -0
  15. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts.map +1 -0
  16. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +4 -0
  17. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
  18. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -1
  19. package/dist/v2/blocks/operation-block/helpers/send-request.js +1 -1
  20. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +1 -1
  21. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  22. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  23. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +101 -100
  24. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  25. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  26. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +62 -69
  27. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +6 -6
  28. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +36 -2
  29. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
  31. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +38 -3
  32. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  33. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  34. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +1 -1
  35. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
  36. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
  37. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +68 -69
  38. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  39. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
  40. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -40
  41. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts.map +1 -1
  42. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +35 -41
  43. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  44. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +37 -41
  45. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +3 -2
  46. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  47. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +107 -87
  48. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +21 -0
  49. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -0
  50. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +91 -0
  51. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +4 -0
  52. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  53. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -93
  54. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
  55. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +87 -65
  56. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +36 -0
  57. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -0
  58. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +35 -0
  59. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +1 -1
  60. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -1
  61. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +18 -10
  62. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +5 -0
  63. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts.map +1 -0
  64. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +27 -0
  65. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +3 -1
  66. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -1
  67. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +1 -2
  68. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  69. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +29 -37
  70. package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -1
  71. package/dist/v2/components/modals/ModalClientContainer.vue.d.ts +2 -2
  72. package/dist/v2/components/modals/ModalClientContainer.vue.d.ts.map +1 -1
  73. package/dist/v2/components/modals/ModalClientContainer.vue.js +1 -1
  74. package/dist/v2/components/modals/ModalClientContainer.vue2.js +45 -42
  75. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
  76. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  77. package/dist/v2/components/sidebar/Sidebar.vue.js +25 -24
  78. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -0
  79. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  80. package/dist/v2/components/sidebar/SidebarMenu.vue.js +30 -30
  81. package/dist/v2/features/app/App.vue.d.ts +6 -1
  82. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  83. package/dist/v2/features/app/App.vue.js +48 -46
  84. package/dist/v2/features/app/app-events.d.ts +1 -1
  85. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  86. package/dist/v2/features/app/app-events.js +95 -56
  87. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  88. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  89. package/dist/v2/features/app/components/AppSidebar.vue2.js +111 -105
  90. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +12 -2
  91. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  92. package/dist/v2/features/app/helpers/create-api-client-app.js +12 -10
  93. package/dist/v2/features/app/helpers/routes.d.ts +3 -1
  94. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  95. package/dist/v2/features/app/hooks/use-theme.d.ts +42 -0
  96. package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -0
  97. package/dist/v2/features/app/hooks/use-theme.js +34 -0
  98. package/dist/v2/features/app/index.d.ts +0 -1
  99. package/dist/v2/features/app/index.d.ts.map +1 -1
  100. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  101. package/dist/v2/features/collection/DocumentCollection.vue.js +27 -26
  102. package/dist/v2/features/collection/WorkspaceCollection.vue.js +13 -12
  103. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  104. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  105. package/dist/v2/features/collection/components/Authentication.vue2.js +49 -40
  106. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  107. package/dist/v2/features/collection/components/Cookies.vue.js +26 -13
  108. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  109. package/dist/v2/features/collection/components/Environment.vue.js +27 -15
  110. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
  111. package/dist/v2/features/collection/components/Overview.vue.js +2 -2
  112. package/dist/v2/features/collection/components/Overview.vue2.js +68 -61
  113. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  114. package/dist/v2/features/collection/components/Servers.vue.js +93 -88
  115. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  116. package/dist/v2/features/collection/components/Settings.vue.js +19 -17
  117. package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -1
  118. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
  119. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +2 -2
  120. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +8 -8
  121. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  122. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  123. package/dist/v2/features/modal/Modal.vue.js +15 -15
  124. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +1 -1
  125. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  126. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  127. package/dist/v2/features/operation/Operation.vue.js +31 -34
  128. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +10 -7
  129. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
  130. package/dist/v2/features/settings/CollectionSettings.vue.js +183 -149
  131. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
  132. package/dist/v2/features/settings/DocumentSettings.vue.js +88 -79
  133. package/dist/v2/features/settings/components/Section.vue.d.ts +2 -1
  134. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
  135. package/dist/v2/features/settings/components/Section.vue.js +26 -15
  136. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +4 -3
  137. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -1
  138. package/dist/v2/features/settings/helpers/get-theme-colors.js +6 -7
  139. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  140. package/dist/v2/helpers/handle-hotkeys.js +2 -2
  141. package/dist/v2/helpers/index.d.ts +0 -1
  142. package/dist/v2/helpers/index.d.ts.map +1 -1
  143. package/dist/v2/hooks/use-global-hot-keys.d.ts +3 -1
  144. package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -1
  145. package/dist/v2/hooks/use-global-hot-keys.js +8 -6
  146. package/dist/v2/workspace-events.d.ts.map +1 -1
  147. package/dist/v2/workspace-events.js +10 -0
  148. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  149. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  150. package/dist/views/Request/RequestSidebar.vue2.js +139 -155
  151. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  152. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  153. package/dist/views/Request/RequestSidebarItem.vue2.js +104 -101
  154. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  155. package/package.json +20 -18
  156. package/dist/v2/helpers/plugins.d.ts +0 -65
  157. package/dist/v2/helpers/plugins.d.ts.map +0 -1
  158. package/dist/v2/helpers/plugins.js +0 -11
@@ -1,7 +1,8 @@
1
- import { defineComponent as p, createElementBlock as d, openBlock as a, Fragment as i, createElementVNode as e, createVNode as n, unref as o, createTextVNode as u, toDisplayString as h, withCtx as m } from "vue";
2
- import { useModal as v, ScalarToggle as w, ScalarIcon as f, ScalarButton as D, ScalarModal as y } from "@scalar/components";
3
- import k from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
4
- const M = { class: "flex flex-col gap-12" }, U = { class: "flex flex-col gap-2" }, C = { class: "bg-b-2 rounded-lg border text-sm" }, N = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, S = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, B = { class: "flex items-center" }, V = ["href"], T = { class: "flex flex-col gap-4" }, z = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, O = /* @__PURE__ */ p({
1
+ import { defineComponent as w, createElementBlock as s, openBlock as r, Fragment as u, createElementVNode as t, createVNode as n, withCtx as d, unref as o, createTextVNode as i, toDisplayString as h } from "vue";
2
+ import { useModal as v, ScalarToggle as D, ScalarIcon as f, ScalarButton as y, ScalarModal as k } from "@scalar/components";
3
+ import M from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
4
+ import g from "./components/Section.vue.js";
5
+ const U = { class: "flex flex-col gap-12" }, C = { class: "bg-b-2 rounded-lg border text-sm" }, N = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, S = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, B = { class: "flex items-center" }, V = ["href"], T = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, L = /* @__PURE__ */ w({
5
6
  __name: "DocumentSettings",
6
7
  props: {
7
8
  documentUrl: {},
@@ -10,90 +11,98 @@ const M = { class: "flex flex-col gap-12" }, U = { class: "flex flex-col gap-2"
10
11
  isDraftDocument: { type: Boolean, default: !1 }
11
12
  },
12
13
  emits: ["delete:document", "update:watchMode"],
13
- setup(l, { emit: x }) {
14
- const r = x, s = v(), g = () => {
15
- l.isDraftDocument || s.show();
16
- }, b = () => {
17
- r("delete:document"), s.hide();
14
+ setup(l, { emit: b }) {
15
+ const c = b, a = v(), p = () => {
16
+ l.isDraftDocument || a.show();
17
+ }, x = () => {
18
+ c("delete:document"), a.hide();
18
19
  };
19
- return (A, t) => (a(), d(i, null, [
20
- e("div", M, [
21
- e("div", U, [
22
- t[5] || (t[5] = e("div", { class: "flex h-8 items-center" }, [
23
- e("h3", { class: "font-bold" }, "Features")
24
- ], -1)),
25
- e("div", C, [
26
- e("div", N, [
27
- t[2] || (t[2] = e("div", null, [
28
- e("h4", null, "Watch Mode"),
29
- e("p", { class: "text-c-2 mt-1" }, " When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")
30
- ], -1)),
31
- n(o(w), {
32
- class: "w-4",
33
- disabled: !l.documentUrl,
34
- modelValue: l.watchMode ?? !1,
35
- "onUpdate:modelValue": t[0] || (t[0] = (c) => r("update:watchMode", c))
36
- }, null, 8, ["disabled", "modelValue"])
37
- ]),
38
- e("div", S, [
39
- e("div", B, [
40
- l.documentUrl ? (a(), d(i, { key: 0 }, [
41
- t[3] || (t[3] = e("span", { class: "bg-b-2 sticky left-0 pr-2 pl-3" }, "Source", -1)),
42
- e("a", {
43
- class: "text-c-2 group rounded pr-3 no-underline hover:underline",
44
- href: l.documentUrl,
45
- target: "_blank"
46
- }, [
47
- u(h(l.documentUrl) + " ", 1),
20
+ return ($, e) => (r(), s(u, null, [
21
+ t("div", U, [
22
+ n(g, null, {
23
+ title: d(() => [...e[2] || (e[2] = [
24
+ i("Features", -1)
25
+ ])]),
26
+ default: d(() => [
27
+ t("div", C, [
28
+ t("div", N, [
29
+ e[3] || (e[3] = t("div", null, [
30
+ t("h4", null, "Watch Mode"),
31
+ t("p", { class: "text-c-2 mt-1" }, " When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")
32
+ ], -1)),
33
+ n(o(D), {
34
+ class: "w-4",
35
+ disabled: !l.documentUrl,
36
+ modelValue: l.watchMode ?? !1,
37
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => c("update:watchMode", m))
38
+ }, null, 8, ["disabled", "modelValue"])
39
+ ]),
40
+ t("div", S, [
41
+ t("div", B, [
42
+ l.documentUrl ? (r(), s(u, { key: 0 }, [
43
+ e[4] || (e[4] = t("span", { class: "bg-b-2 sticky left-0 pr-2 pl-3" }, "Source", -1)),
44
+ t("a", {
45
+ class: "text-c-2 group rounded pr-3 no-underline hover:underline",
46
+ href: l.documentUrl,
47
+ target: "_blank"
48
+ }, [
49
+ i(h(l.documentUrl) + " ", 1),
50
+ n(o(f), {
51
+ class: "ml-1 hidden w-2.5 group-hover:inline",
52
+ icon: "ExternalLink"
53
+ })
54
+ ], 8, V)
55
+ ], 64)) : (r(), s(u, { key: 1 }, [
48
56
  n(o(f), {
49
- class: "ml-1 hidden w-2.5 group-hover:inline",
50
- icon: "ExternalLink"
51
- })
52
- ], 8, V)
53
- ], 64)) : (a(), d(i, { key: 1 }, [
54
- n(o(f), {
55
- class: "text-c-2 mr-2 ml-3 w-4",
56
- icon: "NotAllowed",
57
- size: "sm"
58
- }),
59
- t[4] || (t[4] = e("span", { class: "text-c-2 pr-3" }, " No URL configured. Try importing an OpenAPI document from an URL. ", -1))
60
- ], 64))
57
+ class: "text-c-2 mr-2 ml-3 w-4",
58
+ icon: "NotAllowed",
59
+ size: "sm"
60
+ }),
61
+ e[5] || (e[5] = t("span", { class: "text-c-2 pr-3" }, " No URL configured. Try importing an OpenAPI document from an URL. ", -1))
62
+ ], 64))
63
+ ])
61
64
  ])
62
65
  ])
63
- ])
64
- ]),
65
- e("div", T, [
66
- t[8] || (t[8] = e("h3", { class: "font-bold" }, "Danger Zone", -1)),
67
- e("div", z, [
68
- t[7] || (t[7] = e("div", null, [
69
- e("h4", null, "Delete Collection"),
70
- e("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")
71
- ], -1)),
72
- n(o(D), {
73
- disabled: l.isDraftDocument,
74
- size: "sm",
75
- variant: "danger",
76
- onClick: g
77
- }, {
78
- default: m(() => [...t[6] || (t[6] = [
79
- u(" Delete Collection ", -1)
80
- ])]),
81
- _: 1
82
- }, 8, ["disabled"])
83
- ])
84
- ])
66
+ ]),
67
+ _: 1
68
+ }),
69
+ n(g, null, {
70
+ title: d(() => [...e[6] || (e[6] = [
71
+ i("Danger Zone", -1)
72
+ ])]),
73
+ default: d(() => [
74
+ t("div", T, [
75
+ e[8] || (e[8] = t("div", null, [
76
+ t("h4", null, "Delete Collection"),
77
+ t("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")
78
+ ], -1)),
79
+ n(o(y), {
80
+ disabled: l.isDraftDocument,
81
+ size: "sm",
82
+ variant: "danger",
83
+ onClick: p
84
+ }, {
85
+ default: d(() => [...e[7] || (e[7] = [
86
+ i(" Delete Collection ", -1)
87
+ ])]),
88
+ _: 1
89
+ }, 8, ["disabled"])
90
+ ])
91
+ ]),
92
+ _: 1
93
+ })
85
94
  ]),
86
- n(o(y), {
95
+ n(o(k), {
87
96
  size: "xxs",
88
- state: o(s),
97
+ state: o(a),
89
98
  title: `Delete ${l.title}`
90
99
  }, {
91
- default: m(() => [
92
- n(k, {
100
+ default: d(() => [
101
+ n(M, {
93
102
  variableName: l.title ?? "",
94
103
  warningMessage: "This action cannot be undone.",
95
- onClose: t[1] || (t[1] = (c) => o(s).hide()),
96
- onDelete: b
104
+ onClose: e[1] || (e[1] = (m) => o(a).hide()),
105
+ onDelete: x
97
106
  }, null, 8, ["variableName"])
98
107
  ]),
99
108
  _: 1
@@ -102,5 +111,5 @@ const M = { class: "flex flex-col gap-12" }, U = { class: "flex flex-col gap-2"
102
111
  }
103
112
  });
104
113
  export {
105
- O as default
114
+ L as default
106
115
  };
@@ -1,7 +1,8 @@
1
1
  type __VLS_Slots = {
2
2
  title?: () => string;
3
3
  description?: () => string;
4
- default: () => any;
4
+ actions?: () => unknown;
5
+ default: () => unknown;
5
6
  };
6
7
  declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
8
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/components/Section.vue"],"names":[],"mappings":"AA4BA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,MAAM,CAAA;IAC1B,OAAO,EAAE,MAAM,GAAG,CAAA;CACnB,CAAC;AAyCF,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/components/Section.vue"],"names":[],"mappings":"AAyCA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,MAAM,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,OAAO,CAAA;IACvB,OAAO,EAAE,MAAM,OAAO,CAAA;CACvB,CAAC;AAgEF,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,24 +1,35 @@
1
- import { defineComponent as n, createElementBlock as t, openBlock as o, createCommentVNode as l, renderSlot as s } from "vue";
2
- const r = { class: "flex flex-col gap-2" }, c = {
1
+ import { defineComponent as i, useSlots as r, createElementBlock as s, openBlock as o, createCommentVNode as l, renderSlot as c, createElementVNode as n } from "vue";
2
+ const a = { class: "flex flex-col gap-2" }, d = {
3
3
  key: 0,
4
- class: "font-bold"
5
- }, i = {
4
+ class: "flex items-start justify-between gap-2"
5
+ }, _ = { class: "flex flex-col gap-2" }, p = {
6
+ key: 0,
7
+ class: "flex h-8 items-center"
8
+ }, f = { class: "font-bold" }, m = {
6
9
  key: 1,
7
- class: "text-c-2 mb-4 leading-[21px]"
8
- }, m = /* @__PURE__ */ n({
10
+ class: "text-c-2 mb-4 text-sm"
11
+ }, x = /* @__PURE__ */ i({
9
12
  __name: "Section",
10
- setup(a) {
11
- return (e, d) => (o(), t("div", r, [
12
- e.$slots.title ? (o(), t("h3", c, [
13
- s(e.$slots, "title")
14
- ])) : l("", !0),
15
- e.$slots.description ? (o(), t("p", i, [
16
- s(e.$slots, "description")
13
+ setup(u) {
14
+ const e = r();
15
+ return (t, h) => (o(), s("div", a, [
16
+ e.title || e.description ? (o(), s("div", d, [
17
+ n("div", _, [
18
+ e.title ? (o(), s("div", p, [
19
+ n("h3", f, [
20
+ c(t.$slots, "title")
21
+ ])
22
+ ])) : l("", !0),
23
+ e.description ? (o(), s("p", m, [
24
+ c(t.$slots, "description")
25
+ ])) : l("", !0)
26
+ ]),
27
+ e.actions ? c(t.$slots, "actions", { key: 0 }) : l("", !0)
17
28
  ])) : l("", !0),
18
- s(e.$slots, "default")
29
+ c(t.$slots, "default")
19
30
  ]));
20
31
  }
21
32
  });
22
33
  export {
23
- m as default
34
+ x as default
24
35
  };
@@ -1,6 +1,7 @@
1
- import type { IntegrationThemeId, ThemeId } from '@scalar/themes';
2
- type Themes = Exclude<ThemeId, IntegrationThemeId>;
3
- export declare const getThemeColors: (themeId: Themes) => {
1
+ import type { IntegrationThemeId, themePresets } from '@scalar/themes';
2
+ type ThemePresets = typeof themePresets;
3
+ type Themes = Exclude<ThemePresets[number]['slug'], IntegrationThemeId>;
4
+ export declare const getThemeColors: (themeId: Themes | "none") => {
4
5
  light: string;
5
6
  dark: string;
6
7
  accent: string;
@@ -1 +1 @@
1
- {"version":3,"file":"get-theme-colors.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/helpers/get-theme-colors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAEjE,KAAK,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAA;AAElD,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAgB7F,CAAA"}
1
+ {"version":3,"file":"get-theme-colors.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/helpers/get-theme-colors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAEtE,KAAK,YAAY,GAAG,OAAO,YAAY,CAAA;AAEvC,KAAK,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAA;AAEvE,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,GAAG,MAAM,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAetG,CAAA"}
@@ -1,17 +1,16 @@
1
- const c = (f) => ({
1
+ const c = (e) => ({
2
2
  default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
3
3
  alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
4
4
  moon: { light: "#ccc9b3", dark: "#313332", accent: "#645b0f" },
5
5
  purple: { light: "#f5f6f8", dark: "#22252b", accent: "#5469d4" },
6
6
  solarized: { light: "#fdf6e3", dark: "#00212b", accent: "#007acc" },
7
- bluePlanet: { light: "#f0f2f5", dark: "#000e23", accent: "#e0e2e6" },
7
+ "blue-planet": { light: "#f0f2f5", dark: "#000e23", accent: "#e0e2e6" },
8
8
  saturn: { light: "#e4e4df", dark: "#2c2c30", accent: "#1763a6" },
9
- kepler: { light: "#f6f6f6", dark: "#0d0f1e", accent: "#7070ff" },
9
+ "kepler-11e": { light: "#f6f6f6", dark: "#0d0f1e", accent: "#7070ff" },
10
10
  mars: { light: "#f2efe8", dark: "#321116", accent: "#c75549" },
11
- deepSpace: { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
12
- laserwave: { light: "#f4f2f7", dark: "#27212e", accent: "#ed78c2" },
13
- none: { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }
14
- })[f] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" };
11
+ "deep-space": { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
12
+ laserwave: { light: "#f4f2f7", dark: "#27212e", accent: "#ed78c2" }
13
+ })[e] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" };
15
14
  export {
16
15
  c as getThemeColors
17
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"handle-hotkeys.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/handle-hotkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AA6ErD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,aAAa,EAAE,UAAU,iBAAiB,EAAE,QAAQ,YAAY,KAAG,IA6BvG,CAAA"}
1
+ {"version":3,"file":"handle-hotkeys.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/handle-hotkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AA8ErD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,aAAa,EAAE,UAAU,iBAAiB,EAAE,QAAQ,YAAY,KAAG,IAkCvG,CAAA"}
@@ -29,7 +29,7 @@ const r = {
29
29
  8: { event: "tabs:focus:tab", modifiers: ["default"] },
30
30
  9: { event: "tabs:focus:tab-last", modifiers: ["default"] }
31
31
  }
32
- }, d = /* @__PURE__ */ new Set(["Escape", "ArrowDown", "ArrowUp", "Enter"]), u = (t, a) => a.map((e) => e === "default" ? f() ? "metaKey" : "ctrlKey" : e).every((e) => t[e] === !0), l = (t, a) => {
32
+ }, d = /* @__PURE__ */ new Set(["Escape", "ArrowDown", "ArrowUp", "Enter"]), u = (t, a) => a.length > 0 && a.map((e) => e === "default" ? f() ? "metaKey" : "ctrlKey" : e).every((e) => t[e] === !0), l = (t, a) => {
33
33
  if (!(t.target instanceof HTMLElement))
34
34
  return !1;
35
35
  const e = t.target;
@@ -47,7 +47,7 @@ const r = {
47
47
  a.emit(s.event, o, { skipUnpackProxy: !0 });
48
48
  return;
49
49
  }
50
- l(t, i) || a.emit(s.event, o, { skipUnpackProxy: !0 });
50
+ s.modifiers.length > 0 || l(t, i) || a.emit(s.event, o, { skipUnpackProxy: !0 });
51
51
  };
52
52
  export {
53
53
  m as handleHotkeys
@@ -1,4 +1,3 @@
1
1
  export { getActiveEnvironment } from './get-active-environment.js';
2
2
  export { getServers } from './get-servers.js';
3
- export type { ClientPlugin } from './plugins.js';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA"}
@@ -1,10 +1,12 @@
1
1
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
2
+ import { type MaybeRefOrGetter } from 'vue';
2
3
  import type { ClientLayout } from '../../v2/types/layout';
3
4
  /**
4
5
  * Global hotkey handler for the app (web + desktop)
5
6
  *
6
7
  * @param eventBus - workspace event bus
7
8
  * @param layout - client layout
9
+ * @param disableListeners - whether to disable the listeners
8
10
  */
9
- export declare const useGlobalHotKeys: (eventBus: WorkspaceEventBus, layout: ClientLayout) => void;
11
+ export declare const useGlobalHotKeys: (eventBus: WorkspaceEventBus, layout: ClientLayout, disableListeners?: MaybeRefOrGetter<boolean>) => void;
10
12
  //# sourceMappingURL=use-global-hot-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-global-hot-keys.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-global-hot-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAIvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,iBAAiB,EAAE,QAAQ,YAAY,KAAG,IAMpF,CAAA"}
1
+ {"version":3,"file":"use-global-hot-keys.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-global-hot-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,KAAK,gBAAgB,EAAuC,MAAM,KAAK,CAAA;AAGhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,iBAAiB,EAC3B,QAAQ,YAAY,EACpB,mBAAmB,gBAAgB,CAAC,OAAO,CAAC,KAC3C,IAYF,CAAA"}
@@ -1,9 +1,11 @@
1
- import { onMounted as d, onBeforeUnmount as r } from "vue";
2
- import { handleHotkeys as s } from "../helpers/handle-hotkeys.js";
3
- const m = (e, n) => {
4
- const o = (t) => s(t, e, n);
5
- d(() => window.addEventListener("keydown", o)), r(() => window.removeEventListener("keydown", o));
1
+ import { onMounted as d, onBeforeUnmount as i, toValue as s } from "vue";
2
+ import { handleHotkeys as w } from "../helpers/handle-hotkeys.js";
3
+ const l = (o, n, t) => {
4
+ const e = (r) => {
5
+ s(t) || w(r, o, n);
6
+ };
7
+ d(() => window.addEventListener("keydown", e)), i(() => window.removeEventListener("keydown", e));
6
8
  };
7
9
  export {
8
- m as useGlobalHotKeys
10
+ l as useGlobalHotKeys
9
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-events.d.ts","sourceRoot":"","sources":["../../src/v2/workspace-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAkB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3G,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,KAAK,IAAI,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAAI,OAAO,CAAC;IACtD,eAAe,EAAE,CACf,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;IAClF,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzE,CAAC,CAAA;AAEF,KAAK,KAAK,GAAG;KACV,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;CAC9C,CAAA;AA6BD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjC,KAAK,EAAE,KAAK,CAAA;CACb,QAuQA"}
1
+ {"version":3,"file":"workspace-events.d.ts","sourceRoot":"","sources":["../../src/v2/workspace-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAkB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3G,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,KAAK,IAAI,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAAI,OAAO,CAAC;IACtD,eAAe,EAAE,CACf,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;IAClF,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzE,CAAC,CAAA;AAEF,KAAK,KAAK,GAAG;KACV,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;CAC9C,CAAA;AA6BD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjC,KAAK,EAAE,KAAK,CAAA;CACb,QAiRA"}
@@ -101,6 +101,13 @@ function l({
101
101
  o.value.active().auth.updateSecuritySchemeSecrets,
102
102
  a
103
103
  )(e)
104
+ ), t.on(
105
+ "auth:clear:security-scheme-secrets",
106
+ (e) => r(
107
+ "auth:clear:security-scheme-secrets",
108
+ o.value.active().auth.clearSecuritySchemeSecrets,
109
+ a
110
+ )(e)
104
111
  ), t.on(
105
112
  "server:add:server",
106
113
  (e) => r("server:add:server", o.value.active().server.addServer, a)(e)
@@ -155,6 +162,9 @@ function l({
155
162
  o.value.active().operation.deleteAllOperationParameters,
156
163
  a
157
164
  )(e)
165
+ ), t.on(
166
+ "operation:update:extension",
167
+ (e) => r("operation:update:extension", o.value.active().operation.updateOperationExtension, a)(e)
158
168
  ), t.on(
159
169
  "operation:update:requestBody:contentType",
160
170
  (e) => r(
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"AAs7CA,QAAA,MAAM,YAAY;;;cAx3BqB,MAAM;aAAO,MAAM;;;;;cAAnB,MAAM;aAAO,MAAM;;iFA03BxD,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"AAy4CA,QAAA,MAAM,YAAY;;;cAx1BqB,MAAM;aAAO,MAAM;;;;;cAAnB,MAAM;aAAO,MAAM;;iFA01BxD,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestSidebar.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bca9c474"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-23d35bb5"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };