@scalar/api-client 2.10.0 → 2.11.0

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 (156) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  3. package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
  4. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
  5. package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
  6. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  7. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  8. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
  9. package/dist/hooks/useClientConfig.d.ts +3 -3
  10. package/dist/layouts/App/create-api-client-app.d.ts +1 -1
  11. package/dist/layouts/Web/create-api-client-web.d.ts +1 -1
  12. package/dist/libs/create-client.d.ts +1 -1
  13. package/dist/store/store.d.ts +1 -1
  14. package/dist/style.css +1 -1
  15. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -6
  16. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  17. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +24 -27
  18. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +3 -6
  19. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  20. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  21. package/dist/v2/blocks/operation-block/components/Header.vue2.js +10 -12
  22. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
  23. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
  24. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -5
  25. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  26. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  27. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +45 -47
  28. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +11 -9
  29. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +179 -5
  31. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -179
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +11 -6
  34. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  35. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +82 -5
  36. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -85
  37. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
  38. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  39. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +16 -18
  40. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +133 -142
  41. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
  42. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  43. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
  44. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +2 -16
  45. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  46. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  47. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +202 -229
  48. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +3 -5
  49. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
  50. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  51. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +81 -85
  52. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +2 -5
  53. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
  54. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +32 -34
  55. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +2 -5
  56. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
  57. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +2 -2
  58. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +31 -33
  59. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +2 -5
  60. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
  61. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +42 -45
  62. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +2 -2
  63. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -1
  64. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +9 -9
  65. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -1
  66. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +2 -2
  67. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +18 -18
  68. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -1
  69. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +14 -14
  70. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
  71. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +12 -12
  72. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -1
  73. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +13 -13
  74. package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
  75. package/dist/v2/components/data-table/DataTable.vue.js +4 -4
  76. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
  77. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  78. package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
  79. package/dist/v2/components/data-table/DataTableInput.vue2.js +32 -36
  80. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
  81. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
  82. package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
  83. package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
  84. package/dist/v2/components/forms/index.d.ts +2 -0
  85. package/dist/v2/components/forms/index.d.ts.map +1 -0
  86. package/dist/v2/components/forms/index.js +4 -0
  87. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
  88. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
  89. package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
  90. package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
  91. package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
  92. package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
  93. package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
  94. package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
  95. package/dist/v2/components/layout/index.d.ts +2 -0
  96. package/dist/v2/components/layout/index.d.ts.map +1 -0
  97. package/dist/v2/components/layout/index.js +4 -0
  98. package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
  99. package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
  100. package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
  101. package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
  102. package/dist/v2/components/modals/index.d.ts +2 -0
  103. package/dist/v2/components/modals/index.d.ts.map +1 -0
  104. package/dist/v2/components/modals/index.js +4 -0
  105. package/dist/v2/components/server/ServerDropdown.vue.d.ts +4 -2
  106. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  107. package/dist/v2/components/server/ServerDropdown.vue.js +31 -31
  108. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +2 -6
  109. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
  110. package/dist/v2/components/server/ServerDropdownItem.vue.js +1 -1
  111. package/dist/v2/components/server/ServerDropdownItem.vue2.js +16 -16
  112. package/dist/v2/components/server/index.d.ts.map +1 -1
  113. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +6 -2
  114. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  115. package/dist/v2/components/sidebar/Sidebar.vue.js +45 -55
  116. package/dist/v2/features/app/App.vue.d.ts +2 -2
  117. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  118. package/dist/v2/features/app/App.vue.js +89 -74
  119. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +6 -2
  120. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  121. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  122. package/dist/v2/features/app/components/AppSidebar.vue2.js +50 -47
  123. package/dist/v2/features/app/helpers/routes.d.ts +0 -10
  124. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  125. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  126. package/dist/v2/features/collection/DocumentCollection.vue2.js +75 -73
  127. package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -25
  128. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  129. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  130. package/dist/v2/features/collection/components/Authentication.vue2.js +47 -35
  131. package/dist/v2/features/collection/components/Form.vue.d.ts +3 -7
  132. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
  133. package/dist/v2/features/collection/components/Form.vue.js +28 -33
  134. package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
  135. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  136. package/dist/v2/features/collection/components/Servers.vue2.js +103 -82
  137. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
  138. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
  139. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  140. package/dist/v2/features/modal/Modal.vue.js +3 -3
  141. package/dist/v2/features/modal/Modal.vue2.js +40 -32
  142. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  143. package/dist/v2/features/operation/Operation.vue.js +22 -28
  144. package/dist/v2/hooks/use-sidebar-state.d.ts +47 -0
  145. package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
  146. package/dist/v2/hooks/use-sidebar-state.js +112 -0
  147. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  148. package/dist/v2/hooks/use-workspace-client-events.js +75 -107
  149. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  150. package/package.json +17 -17
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
  155. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
  156. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
@@ -1,55 +1,50 @@
1
- import { defineComponent as f, useId as b, createBlock as o, openBlock as l, createSlots as d, withCtx as t, createElementVNode as n, createCommentVNode as k, createElementBlock as m, Fragment as y, renderList as _, normalizeClass as v, createVNode as c, unref as r, toDisplayString as p, renderSlot as h } from "vue";
2
- import { ScalarIcon as V } from "@scalar/components";
3
- import g from "../../../../components/DataTable/DataTable.vue.js";
4
- import C from "../../../../components/DataTable/DataTableInput.vue.js";
5
- import S from "../../../../components/DataTable/DataTableRow.vue.js";
6
- import U from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
7
- const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, z = ["for"], B = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, M = /* @__PURE__ */ f({
1
+ import { defineComponent as f, useId as k, createBlock as n, openBlock as l, createSlots as s, withCtx as t, createElementVNode as a, createCommentVNode as y, createElementBlock as i, Fragment as _, renderList as h, createVNode as m, unref as r, toDisplayString as c, renderSlot as b } from "vue";
2
+ import { ScalarIcon as g } from "@scalar/components";
3
+ import v from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
+ import V from "../../../components/data-table/DataTable.vue.js";
5
+ import S from "../../../components/data-table/DataTableInput.vue.js";
6
+ import U from "../../../components/data-table/DataTableRow.vue.js";
7
+ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, B = ["for"], C = { class: "centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5" }, L = /* @__PURE__ */ f({
8
8
  __name: "Form",
9
9
  props: {
10
10
  title: {},
11
11
  options: {},
12
12
  data: {},
13
13
  onUpdate: { type: Function },
14
- environment: {},
15
- envVariables: {}
14
+ environment: {}
16
15
  },
17
16
  setup(D) {
18
- const s = b();
19
- return (e, F) => (l(), o(U, { class: "last:rounded-b-lg" }, d({
17
+ const d = k();
18
+ return (e, F) => (l(), n(v, { class: "last:rounded-b-lg" }, s({
20
19
  default: t(() => [
21
- n("div", w, [
22
- Object.keys(e.data).length > 0 ? (l(), o(g, {
20
+ a("div", w, [
21
+ Object.keys(e.data).length > 0 ? (l(), n(V, {
23
22
  key: 0,
24
23
  class: "rounded-b-lg",
25
24
  columns: [""]
26
25
  }, {
27
26
  default: t(() => [
28
- (l(!0), m(y, null, _(e.options, (a, i) => (l(), o(S, {
29
- key: i,
30
- class: v({ "border-t": i === 0 })
31
- }, {
27
+ (l(!0), i(_, null, h(e.options, (o, p) => (l(), n(U, { key: p }, {
32
28
  default: t(() => [
33
- c(C, {
34
- id: r(s),
29
+ m(S, {
30
+ id: r(d),
35
31
  class: "pr-9",
36
- envVariables: e.envVariables,
37
32
  environment: e.environment,
38
33
  lineWrapping: "",
39
- modelValue: e.data[a.key] ?? "",
40
- placeholder: a.placeholder,
41
- "onUpdate:modelValue": (u) => e.onUpdate(a.key, u)
42
- }, d({
34
+ modelValue: e.data[o.key] ?? "",
35
+ placeholder: o.placeholder,
36
+ "onUpdate:modelValue": (u) => e.onUpdate(o.key, u)
37
+ }, s({
43
38
  default: t(() => [
44
- n("label", { for: r(s) }, p(a.label), 9, z)
39
+ a("label", { for: r(d) }, c(o.label), 9, B)
45
40
  ]),
46
41
  _: 2
47
42
  }, [
48
- a.key === "description" ? {
43
+ o.key === "description" ? {
49
44
  name: "icon",
50
45
  fn: t(() => [
51
- n("div", B, [
52
- c(r(V), {
46
+ a("div", C, [
47
+ m(r(g), {
53
48
  icon: "Markdown",
54
49
  size: "lg"
55
50
  })
@@ -57,13 +52,13 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, z = ["for"]
57
52
  ]),
58
53
  key: "0"
59
54
  } : void 0
60
- ]), 1032, ["id", "envVariables", "environment", "modelValue", "placeholder", "onUpdate:modelValue"])
55
+ ]), 1032, ["id", "environment", "modelValue", "placeholder", "onUpdate:modelValue"])
61
56
  ]),
62
57
  _: 2
63
- }, 1032, ["class"]))), 128))
58
+ }, 1024))), 128))
64
59
  ]),
65
60
  _: 1
66
- })) : k("", !0)
61
+ })) : y("", !0)
67
62
  ])
68
63
  ]),
69
64
  _: 2
@@ -71,7 +66,7 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, z = ["for"]
71
66
  e.title || e.$slots.title ? {
72
67
  name: "title",
73
68
  fn: t(() => [
74
- e.title ? (l(), m("span", $, p(e.title), 1)) : h(e.$slots, "title", { key: 1 })
69
+ e.title ? (l(), i("span", $, c(e.title), 1)) : b(e.$slots, "title", { key: 1 })
75
70
  ]),
76
71
  key: "0"
77
72
  } : void 0
@@ -79,5 +74,5 @@ const $ = { key: 0 }, w = { class: "flex flex-1 flex-col gap-1.5" }, z = ["for"]
79
74
  }
80
75
  });
81
76
  export {
82
- M as default
77
+ L as default
83
78
  };
@@ -1,33 +1,15 @@
1
- import type { Environment } from '@scalar/oas-utils/entities/environment';
2
- import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
3
- import type { EnvVariable } from '../../../../store/index.js';
4
- import type { createStoreEvents } from '../../../../store/events.js';
5
- type __VLS_Props = {
6
- /** List of server objects */
7
- servers: ServerObject[];
8
- /** Event bus */
9
- events: ReturnType<typeof createStoreEvents>;
10
- environment: Environment;
11
- envVariables: EnvVariable[];
12
- };
13
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
- "server:delete": (payload: {
15
- serverUrl: string;
16
- }) => any;
17
- "server:update:variable": (payload: {
18
- serverUrl: string;
19
- name: string;
20
- value: string;
21
- }) => any;
22
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- "onServer:delete"?: ((payload: {
24
- serverUrl: string;
25
- }) => any) | undefined;
26
- "onServer:update:variable"?: ((payload: {
27
- serverUrl: string;
28
- name: string;
29
- value: string;
30
- }) => any) | undefined;
31
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
2
+ collectionType: "document";
3
+ document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
4
+ }) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
5
+ collectionType: "workspace";
6
+ document: null;
7
+ }), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
8
+ collectionType: "document";
9
+ document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
10
+ }) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
11
+ collectionType: "workspace";
12
+ document: null;
13
+ })> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
14
  export default _default;
33
15
  //# sourceMappingURL=Servers.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Servers.vue"],"names":[],"mappings":"AAoKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AAKtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAIvD,KAAK,WAAW,GAAG;IACjB,6BAA6B;IAC7B,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gBAAgB;IAChB,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IAG5C,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;mBAI2C,MAAM;;;mBAGzB,MAAM;cAAQ,MAAM;eAAS,MAAM;;;;mBAHhB,MAAM;;;mBAGzB,MAAM;cAAQ,MAAM;eAAS,MAAM;;;AAoW7D,wBAOG"}
1
+ {"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Servers.vue"],"names":[],"mappings":";;;;;;;;;;;;;AAqjBA,wBAMG"}
@@ -1,120 +1,141 @@
1
- import { defineComponent as k, ref as U, createElementBlock as d, openBlock as l, Fragment as f, createElementVNode as a, createBlock as m, createCommentVNode as b, createStaticVNode as w, renderList as V, createVNode as s, unref as t, toDisplayString as C, withCtx as p } from "vue";
2
- import { useModal as $, ScalarMarkdown as A, ScalarButton as h, ScalarModal as M } from "@scalar/components";
3
- import { ScalarIconTrash as N, ScalarIconPlus as D } from "@scalar/icons";
4
- import B from "../../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
5
- import P from "./Form.vue.js";
6
- import j from "../../../../components/Server/ServerVariablesForm.vue.js";
7
- const z = { class: "flex flex-col gap-4" }, I = { class: "rounded-lg border" }, L = { class: "bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm" }, E = {
1
+ import { defineComponent as M, ref as A, computed as x, createElementBlock as v, openBlock as c, Fragment as S, createElementVNode as r, createVNode as l, createTextVNode as g, renderList as I, createBlock as y, unref as s, toDisplayString as T, withCtx as f, createCommentVNode as V } from "vue";
2
+ import { useModal as P, ScalarMarkdown as z, ScalarButton as _, ScalarModal as L } from "@scalar/components";
3
+ import { debounce as O } from "@scalar/helpers/general/debounce";
4
+ import { ScalarIconTrash as R, ScalarIconPlus as j } from "@scalar/icons";
5
+ import E from "../../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
6
+ import F from "./Form.vue.js";
7
+ import W from "../../../../components/Server/ServerVariablesForm.vue.js";
8
+ const Y = { class: "flex flex-col gap-4" }, q = { class: "flex flex-col gap-4" }, G = { class: "bg-b-2 flex items-center justify-between rounded-t-lg px-3 py-1 text-sm" }, H = {
8
9
  key: 1,
9
10
  class: "self-center"
10
- }, R = { class: "divide-0. flex w-full flex-col divide-y rounded-b-lg text-sm" }, T = { class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4" }, K = /* @__PURE__ */ k({
11
+ }, J = { class: "divide-0 flex w-full flex-col divide-y rounded-b-lg text-sm" }, K = { class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4" }, se = /* @__PURE__ */ M({
11
12
  __name: "Servers",
12
13
  props: {
13
- servers: {},
14
- events: {},
14
+ document: {},
15
+ eventBus: {},
16
+ layout: {},
17
+ path: {},
18
+ method: {},
19
+ exampleName: {},
15
20
  environment: {},
16
- envVariables: {}
21
+ workspaceStore: {},
22
+ collectionType: {}
17
23
  },
18
- emits: ["server:delete", "server:update:variable"],
19
- setup(x, { emit: g }) {
20
- const c = g, v = $(), n = U(null), y = (o) => {
21
- n.value = o, v.show();
22
- }, S = () => {
23
- x.events.commandPalette.emit({ commandName: "Add Server" });
24
- };
25
- return (o, r) => (l(), d(f, null, [
26
- a("div", z, [
27
- r[3] || (r[3] = w('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Servers</h3></div><p class="text-sm"> Add different base URLs for your API. You can use <code class="font-code text-c-2">{variables}</code> for dynamic parts. </p></div></div>', 1)),
28
- (l(!0), d(f, null, V(o.servers, (e, _) => (l(), d("div", {
29
- key: e.url
30
- }, [
31
- a("div", I, [
32
- a("div", L, [
33
- e.description ? (l(), m(t(A), {
24
+ setup(o) {
25
+ const u = P(), n = A(-1), k = x(
26
+ () => o.document?.servers?.[n.value]
27
+ ), $ = x(() => o.document?.servers ?? []), B = [
28
+ {
29
+ label: "URL",
30
+ key: "url",
31
+ placeholder: "https://void.scalar.com"
32
+ },
33
+ {
34
+ label: "Description",
35
+ key: "description",
36
+ placeholder: "Production"
37
+ }
38
+ ], w = (t) => {
39
+ n.value = t, u.show();
40
+ }, p = () => {
41
+ u.hide(), n.value = -1;
42
+ }, N = () => {
43
+ n.value < 0 || (o.eventBus.emit("server:delete:server", { index: n.value }), p());
44
+ }, { execute: b } = O({ delay: 328, maxWait: 1e3 }), U = (t, e, a) => b(
45
+ `${t}-${e}`,
46
+ () => o.eventBus.emit("server:update:server", {
47
+ index: t,
48
+ server: { [e]: a }
49
+ })
50
+ ), C = (t, e, a) => b(
51
+ `${t}-${e}`,
52
+ () => o.eventBus.emit("server:update:variables", {
53
+ index: t,
54
+ key: e,
55
+ value: a
56
+ })
57
+ ), D = () => o.eventBus.emit("server:add:server"), h = (t, e = 0) => t?.description || `Server ${e + 1}`;
58
+ return (t, e) => (c(), v(S, null, [
59
+ r("div", Y, [
60
+ e[1] || (e[1] = r("div", { class: "flex flex-col gap-2" }, [
61
+ r("h3", { class: "font-bold" }, "Servers"),
62
+ r("p", { class: "text-sm" }, [
63
+ g(" Add different base URLs for your API. You can use "),
64
+ r("code", { class: "font-code text-c-2" }, "{variables}"),
65
+ g(" for dynamic parts. ")
66
+ ])
67
+ ], -1)),
68
+ r("div", q, [
69
+ (c(!0), v(S, null, I($.value, (a, d) => (c(), v("div", {
70
+ key: d,
71
+ class: "rounded-lg border"
72
+ }, [
73
+ r("div", G, [
74
+ a.description ? (c(), y(s(z), {
34
75
  key: 0,
35
76
  class: "self-center",
36
- value: e.description
37
- }, null, 8, ["value"])) : (l(), d("span", E, " Server " + C(_ + 1), 1)),
38
- s(t(h), {
77
+ value: a.description
78
+ }, null, 8, ["value"])) : (c(), v("span", H, T(h(a, d)), 1)),
79
+ l(s(_), {
39
80
  class: "hover:bg-b-3 hover:text-c-1 h-fit p-1.25",
81
+ "data-testid": "delete-server-button",
40
82
  variant: "ghost",
41
- onClick: (i) => y(e.url)
83
+ onClick: (i) => w(d)
42
84
  }, {
43
- default: p(() => [
44
- s(t(N), { class: "size-3.5" })
85
+ default: f(() => [
86
+ l(s(R), { class: "size-3.5" })
45
87
  ]),
46
88
  _: 1
47
89
  }, 8, ["onClick"])
48
90
  ]),
49
- a("div", R, [
50
- s(P, {
51
- data: e,
52
- envVariables: o.envVariables,
53
- environment: o.environment,
54
- onUpdate: (i, u) => c("server:update:variable", {
55
- serverUrl: e.url,
56
- name: i,
57
- value: u
58
- }),
59
- options: [
60
- {
61
- label: "URL",
62
- key: "url",
63
- placeholder: "https://void.scalar.com"
64
- },
65
- {
66
- label: "Description",
67
- key: "description",
68
- placeholder: "Production"
69
- }
70
- ]
71
- }, null, 8, ["data", "envVariables", "environment", "onUpdate"]),
72
- e.variables ? (l(), m(t(j), {
91
+ r("div", J, [
92
+ l(F, {
93
+ data: a,
94
+ environment: t.environment,
95
+ onUpdate: (i, m) => U(d, i, m),
96
+ options: B
97
+ }, null, 8, ["data", "environment", "onUpdate"]),
98
+ a.variables ? (c(), y(s(W), {
73
99
  key: 0,
74
- variables: e.variables,
75
- "onUpdate:variable": (i, u) => c("server:update:variable", {
76
- serverUrl: e.url,
77
- name: i,
78
- value: u
79
- })
80
- }, null, 8, ["variables", "onUpdate:variable"])) : b("", !0)
100
+ variables: a.variables,
101
+ "onUpdate:variable": (i, m) => C(d, i, m)
102
+ }, null, 8, ["variables", "onUpdate:variable"])) : V("", !0)
81
103
  ])
82
- ])
83
- ]))), 128)),
84
- a("div", T, [
85
- s(t(h), {
104
+ ]))), 128))
105
+ ]),
106
+ r("div", K, [
107
+ l(s(_), {
86
108
  class: "hover:bg-b-2 hover:text-c-1 flex items-center gap-2",
87
109
  size: "sm",
88
110
  variant: "ghost",
89
- onClick: S
111
+ onClick: D
90
112
  }, {
91
- default: p(() => [
92
- s(t(D)),
93
- r[2] || (r[2] = a("span", null, "Add Server", -1))
113
+ default: f(() => [
114
+ l(s(j)),
115
+ e[0] || (e[0] = r("span", null, "Add Server", -1))
94
116
  ]),
95
117
  _: 1
96
118
  })
97
119
  ])
98
120
  ]),
99
- n.value ? (l(), m(t(M), {
100
- key: 0,
121
+ l(s(L), {
101
122
  size: "xxs",
102
- state: t(v),
103
- title: `Delete ${n.value ?? "Server"}`
123
+ state: s(u),
124
+ title: `Delete ${h(k.value, n.value)}`
104
125
  }, {
105
- default: p(() => [
106
- s(B, {
126
+ default: f(() => [
127
+ l(E, {
107
128
  variableName: "Server",
108
129
  warningMessage: "Are you sure you want to delete this server? This action cannot be undone.",
109
- onClose: r[0] || (r[0] = (e) => t(v).hide()),
110
- onDelete: r[1] || (r[1] = (e) => c("server:delete", { serverUrl: n.value }))
130
+ onClose: p,
131
+ onDelete: N
111
132
  })
112
133
  ]),
113
134
  _: 1
114
- }, 8, ["state", "title"])) : b("", !0)
135
+ }, 8, ["state", "title"])
115
136
  ], 64));
116
137
  }
117
138
  });
118
139
  export {
119
- K as default
140
+ se as default
120
141
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariablesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesTable.vue"],"names":[],"mappings":"AAgMA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAWnH,KAAK,WAAW,GAAG;IACf,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;;AAkVrB,wBAMG"}
1
+ {"version":3,"file":"EnvironmentVariablesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesTable.vue"],"names":[],"mappings":"AA6LA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAWnH,KAAK,WAAW,GAAG;IACf,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;;AAiVrB,wBAMG"}
@@ -1,7 +1,7 @@
1
- import a from "./EnvironmentVariablesTable.vue2.js";
1
+ import o from "./EnvironmentVariablesTable.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-572665aa"]]);
3
+ import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-28c8509c"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AAiRA,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAapE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAA;AAGzF,MAAM,MAAM,UAAU,GAAG;IACvB,cAAc,EAAE,cAAc,CAAA;IAC9B,cAAc,EAAE,cAAc,CAAA;IAC9B,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;;;GAIG;;AACH,wBAiOC"}
1
+ {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AA6RA,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAapE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAA;AAIzF,MAAM,MAAM,UAAU,GAAG;IACvB,cAAc,EAAE,cAAc,CAAA;IAC9B,cAAc,EAAE,cAAc,CAAA;IAC9B,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;;;GAIG;;AACH,wBA6OC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Modal.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-71a87d8c"]]);
3
+ import d from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ d(o, [["__scopeId", "data-v-ddfe1d6d"]]);
5
5
  export {
6
- p as default
6
+ f as default
7
7
  };
@@ -1,36 +1,44 @@
1
- import { defineComponent as S, ref as m, useId as k, watch as h, nextTick as E, onBeforeMount as b, onBeforeUnmount as y, withDirectives as u, createElementBlock as T, openBlock as C, createElementVNode as o, unref as i, createVNode as l, withCtx as g, vShow as f } from "vue";
2
- import { addScalarClassesToHeadless as x, ScalarTeleportRoot as F } from "@scalar/components";
3
- import { useFocusTrap as O } from "@vueuse/integrations/useFocusTrap";
4
- import B from "../../components/TempReplaceMe.vue.js";
5
- import U from "../../components/sidebar/Sidebar.vue.js";
6
- const _ = { class: "scalar scalar-app" }, L = { class: "scalar-container" }, M = ["id"], W = { class: "flex flex-1 flex-row" }, $ = {}, A = /* @__PURE__ */ S({
7
- ...$,
1
+ import { defineComponent as k, ref as m, useId as h, watch as b, nextTick as E, onBeforeMount as y, onBeforeUnmount as g, withDirectives as u, createElementBlock as T, openBlock as x, createElementVNode as o, unref as r, createVNode as l, withCtx as C, vShow as S } from "vue";
2
+ import { addScalarClassesToHeadless as F, ScalarTeleportRoot as O } from "@scalar/components";
3
+ import { useFocusTrap as B } from "@vueuse/integrations/useFocusTrap";
4
+ import U from "../../components/TempReplaceMe.vue.js";
5
+ import { useSidebarState as L } from "../../hooks/use-sidebar-state.js";
6
+ import M from "../../components/sidebar/Sidebar.vue.js";
7
+ const N = { class: "scalar scalar-app" }, W = { class: "scalar-container" }, _ = ["id"], $ = { class: "flex flex-1 flex-row" }, I = {}, j = /* @__PURE__ */ k({
8
+ ...I,
8
9
  __name: "Modal",
9
10
  props: {
10
11
  activeEntities: {},
11
12
  workspaceStore: {},
12
13
  modalState: {}
13
14
  },
14
- setup(r) {
15
- const n = m(null), d = k(), { activate: w, deactivate: v } = O(n, {
15
+ setup(s) {
16
+ const n = m(null), d = h(), { activate: f, deactivate: w } = B(n, {
16
17
  allowOutsideClick: !0,
17
18
  fallbackFocus: `#${d}`
18
- }), c = (e) => e.key === "Escape" && r.modalState.hide(), p = () => {
19
- window.removeEventListener("keydown", c), document.documentElement.style.removeProperty("overflow"), v();
19
+ }), { sidebarState: v } = L({
20
+ workspaceStore: s.workspaceStore,
21
+ workspaceSlug: "default",
22
+ documentSlug: "",
23
+ exampleName: "",
24
+ method: "get",
25
+ path: ""
26
+ }), c = (e) => e.key === "Escape" && s.modalState.hide(), p = () => {
27
+ window.removeEventListener("keydown", c), document.documentElement.style.removeProperty("overflow"), w();
20
28
  };
21
- h(
22
- () => r.modalState.open,
29
+ b(
30
+ () => s.modalState.open,
23
31
  (e) => {
24
- e ? (window.addEventListener("keydown", c), document.documentElement.style.overflow = "hidden", w({ checkCanFocusTrap: () => E() })) : p();
32
+ e ? (window.addEventListener("keydown", c), document.documentElement.style.overflow = "hidden", f({ checkCanFocusTrap: () => E() })) : p();
25
33
  }
26
- ), b(() => x()), y(() => {
34
+ ), y(() => F()), g(() => {
27
35
  p();
28
36
  });
29
- const s = m(!0);
30
- return (e, t) => u((C(), T("div", _, [
31
- o("div", L, [
37
+ const i = m(!0);
38
+ return (e, t) => u((x(), T("div", N, [
39
+ o("div", W, [
32
40
  o("div", {
33
- id: i(d),
41
+ id: r(d),
34
42
  ref_key: "client",
35
43
  ref: n,
36
44
  "aria-label": "API Client",
@@ -39,20 +47,20 @@ const _ = { class: "scalar scalar-app" }, L = { class: "scalar-container" }, M =
39
47
  role: "dialog",
40
48
  tabindex: "-1"
41
49
  }, [
42
- l(i(F), null, {
43
- default: g(() => [
44
- o("main", W, [
45
- u(l(i(U), {
46
- isSidebarOpen: s.value,
47
- "onUpdate:isSidebarOpen": t[0] || (t[0] = (a) => s.value = a),
48
- documents: e.workspaceStore.workspace.documents,
50
+ l(r(O), null, {
51
+ default: C(() => [
52
+ o("main", $, [
53
+ u(l(r(M), {
54
+ isSidebarOpen: i.value,
55
+ "onUpdate:isSidebarOpen": t[0] || (t[0] = (a) => i.value = a),
56
+ sidebarState: r(v),
49
57
  layout: "modal",
50
58
  sidebarWidth: e.workspaceStore.workspace["x-scalar-sidebar-width"] ?? 288,
51
59
  "onUpdate:sidebarWidth": t[1] || (t[1] = (a) => e.workspaceStore.update("x-scalar-sidebar-width", a))
52
- }, null, 8, ["isSidebarOpen", "documents", "sidebarWidth"]), [
53
- [f, s.value]
60
+ }, null, 8, ["isSidebarOpen", "sidebarState", "sidebarWidth"]), [
61
+ [S, i.value]
54
62
  ]),
55
- l(B, {
63
+ l(U, {
56
64
  documentSlug: e.activeEntities.documentSlug,
57
65
  example: e.activeEntities.example,
58
66
  layout: "modal",
@@ -65,17 +73,17 @@ const _ = { class: "scalar scalar-app" }, L = { class: "scalar-container" }, M =
65
73
  ]),
66
74
  _: 1
67
75
  })
68
- ], 8, M),
76
+ ], 8, _),
69
77
  o("div", {
70
78
  class: "scalar-app-exit",
71
79
  onClick: t[2] || (t[2] = (a) => e.modalState.hide())
72
80
  })
73
81
  ])
74
82
  ], 512)), [
75
- [f, e.modalState.open]
83
+ [S, e.modalState.open]
76
84
  ]);
77
85
  }
78
86
  });
79
87
  export {
80
- A as default
88
+ j as default
81
89
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAGlE;;;;;;;GAOG;;AACH,wBA4KC"}
1
+ {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAGlE;;;;;;;GAOG;;AACH,wBAkKC"}
@@ -1,12 +1,12 @@
1
- import { defineComponent as v, computed as u, createBlock as y, createElementBlock as h, openBlock as s, unref as r, createElementVNode as f } from "vue";
2
- import { getResolvedRef as p } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import { createStoreEvents as S } from "../../../store/events.js";
4
- import B from "../../blocks/operation-block/OperationBlock.vue.js";
5
- const N = {
1
+ import { defineComponent as d, computed as u, createBlock as v, createElementBlock as y, openBlock as s, unref as r, createElementVNode as h } from "vue";
2
+ import { getResolvedRef as f } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { createStoreEvents as p } from "../../../store/events.js";
4
+ import S from "../../blocks/operation-block/OperationBlock.vue.js";
5
+ const B = {
6
6
  key: 1,
7
7
  class: "flex h-full w-full items-center justify-center"
8
- }, g = {}, R = /* @__PURE__ */ v({
9
- ...g,
8
+ }, N = {}, R = /* @__PURE__ */ d({
9
+ ...N,
10
10
  __name: "Operation",
11
11
  props: {
12
12
  document: {},
@@ -19,45 +19,39 @@ const N = {
19
19
  workspaceStore: {}
20
20
  },
21
21
  setup(e) {
22
- const a = u(
23
- () => e.path && e.method ? p(e.document?.paths?.[e.path]?.[e.method]) : void 0
24
- ), n = u(
25
- () => (a.value?.security?.length ?? 0) > 0 && JSON.stringify(a.value?.security) !== "[{}]"
26
- ), i = u(() => !a.value || !e.document ? [] : n.value ? a.value.security ?? [] : JSON.stringify(a.value?.security) === "[{}]" ? [...e.document.security ?? [], {}] : e.document.security ?? []), l = u(() => n.value ? a.value?.["x-scalar-selected-security"] : e.document?.["x-scalar-selected-security"]), c = u(() => n.value ? {
22
+ const n = u(
23
+ () => e.path && e.method ? f(e.document?.paths?.[e.path]?.[e.method]) : void 0
24
+ ), a = u(
25
+ () => (n.value?.security?.length ?? 0) > 0 && JSON.stringify(n.value?.security) !== "[{}]"
26
+ ), i = u(() => !n.value || !e.document ? [] : a.value ? n.value.security ?? [] : JSON.stringify(n.value?.security) === "[{}]" ? [...e.document.security ?? [], {}] : e.document.security ?? []), l = u(() => a.value ? n.value?.["x-scalar-selected-security"] : e.document?.["x-scalar-selected-security"]), c = u(() => a.value ? {
27
27
  type: "operation",
28
28
  path: e.path ?? "",
29
29
  method: e.method ?? "get"
30
30
  } : {
31
31
  type: "document"
32
- }), m = "2.10.0", d = {
33
- uid: "",
34
- name: "",
35
- color: "",
36
- value: ""
37
- };
38
- return (t, o) => t.path && t.method && t.exampleName && a.value ? (s(), y(r(B), {
32
+ }), m = "2.11.0";
33
+ return (t, o) => t.path && t.method && t.exampleName && n.value ? (s(), v(r(S), {
39
34
  key: 0,
40
- path: t.path,
41
- method: t.method,
42
35
  appVersion: r(m),
43
- environment: d,
44
- envVariables: [],
36
+ authMeta: c.value,
37
+ environment: t.environment,
45
38
  eventBus: t.eventBus,
39
+ events: r(p)(),
46
40
  exampleKey: t.exampleName,
47
41
  history: [],
48
42
  layout: t.layout,
43
+ method: t.method,
44
+ operation: n.value,
45
+ path: t.path,
49
46
  plugins: [],
50
- operation: a.value,
51
- authMeta: c.value,
52
47
  security: i.value,
53
48
  securitySchemes: t.document?.components?.securitySchemes ?? {},
54
49
  selectedSecurity: l.value,
55
50
  server: void 0,
56
51
  servers: [],
57
- events: r(S)(),
58
52
  totalPerformedRequests: 0
59
- }, null, 8, ["path", "method", "appVersion", "eventBus", "exampleKey", "layout", "operation", "authMeta", "security", "securitySchemes", "selectedSecurity", "events"])) : (s(), h("div", N, [...o[0] || (o[0] = [
60
- f("span", { class: "text-c-3" }, "Select an operation to view details", -1)
53
+ }, null, 8, ["appVersion", "authMeta", "environment", "eventBus", "events", "exampleKey", "layout", "method", "operation", "path", "security", "securitySchemes", "selectedSecurity"])) : (s(), y("div", B, [...o[0] || (o[0] = [
54
+ h("span", { class: "text-c-3" }, "Select an operation to view details", -1)
61
55
  ])]));
62
56
  }
63
57
  });