@scalar/api-reference 1.25.76 → 1.25.77

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 (153) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/browser/standalone.js +23395 -23409
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +41 -56
  6. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +3 -3
  9. package/dist/components/ApiReferenceLayout.vue2.js +140 -123
  10. package/dist/components/Content/Content.vue.d.ts +0 -1
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +1 -1
  13. package/dist/components/Content/Content.vue2.js +67 -62
  14. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Lazy/Loading.vue.js +74 -69
  16. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Tag/TagList.vue.js +37 -33
  18. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts +1 -1
  19. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  20. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +60 -60
  21. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  22. package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
  23. package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
  24. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  25. package/dist/features/ApiClientModal/ApiClientModal.vue.js +20 -18
  26. package/dist/features/ApiClientModal/useApiClient.d.ts +149 -138
  27. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  28. package/dist/features/ApiClientModal/useApiClient.js +6 -6
  29. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  30. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
  31. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
  32. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +3 -3
  33. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +3 -3
  34. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
  35. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +2 -2
  36. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +3 -0
  37. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  38. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  39. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +121 -147
  40. package/dist/features/Operation/Operation.vue.d.ts +6 -4
  41. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  42. package/dist/features/Operation/Operation.vue.js +30 -13
  43. package/dist/features/Operation/hooks/useRequestExample.d.ts +17 -0
  44. package/dist/features/Operation/hooks/useRequestExample.d.ts.map +1 -0
  45. package/dist/features/Operation/hooks/useRequestExample.js +68 -0
  46. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
  47. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  48. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  49. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +47 -41
  50. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
  51. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  52. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  53. package/dist/features/Operation/layouts/ModernLayout.vue2.js +52 -48
  54. package/dist/helpers/convertRequestToHarRequest.d.ts +7 -0
  55. package/dist/helpers/convertRequestToHarRequest.d.ts.map +1 -0
  56. package/dist/helpers/convertRequestToHarRequest.js +64 -0
  57. package/dist/helpers/get-request.d.ts +40 -0
  58. package/dist/helpers/get-request.d.ts.map +1 -0
  59. package/dist/helpers/get-request.js +6 -0
  60. package/dist/helpers/getExampleCode.d.ts +2 -2
  61. package/dist/helpers/getExampleCode.d.ts.map +1 -1
  62. package/dist/helpers/getExampleCode.js +19 -16
  63. package/dist/helpers/index.d.ts +1 -3
  64. package/dist/helpers/index.d.ts.map +1 -1
  65. package/dist/helpers/provideSymbols.d.ts +0 -5
  66. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  67. package/dist/helpers/provideSymbols.js +3 -4
  68. package/dist/hooks/useReactiveSpec.d.ts +1 -1
  69. package/dist/hooks/useSidebar.d.ts.map +1 -1
  70. package/dist/index.js +77 -85
  71. package/dist/legacy/helpers/getUrlFromServerState.js +8 -8
  72. package/dist/legacy/helpers/index.d.ts +0 -10
  73. package/dist/legacy/helpers/index.d.ts.map +1 -1
  74. package/dist/legacy/stores/index.d.ts +0 -3
  75. package/dist/legacy/stores/index.d.ts.map +1 -1
  76. package/dist/stores/index.d.ts +0 -1
  77. package/dist/stores/index.d.ts.map +1 -1
  78. package/dist/style.css +1 -1
  79. package/package.json +4 -4
  80. package/dist/components/Content/Authentication/Authentication.vue.d.ts +0 -8
  81. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +0 -1
  82. package/dist/components/Content/Authentication/Authentication.vue.js +0 -7
  83. package/dist/components/Content/Authentication/Authentication.vue2.js +0 -62
  84. package/dist/components/Content/Authentication/index.d.ts +0 -2
  85. package/dist/components/Content/Authentication/index.d.ts.map +0 -1
  86. package/dist/helpers/createRequest.d.ts +0 -6
  87. package/dist/helpers/createRequest.d.ts.map +0 -1
  88. package/dist/helpers/createRequest.js +0 -16
  89. package/dist/helpers/getApiClientRequest.d.ts +0 -13
  90. package/dist/helpers/getApiClientRequest.d.ts.map +0 -1
  91. package/dist/helpers/getApiClientRequest.js +0 -43
  92. package/dist/helpers/getHarRequest.d.ts +0 -4
  93. package/dist/helpers/getHarRequest.d.ts.map +0 -1
  94. package/dist/helpers/getHarRequest.js +0 -34
  95. package/dist/legacy/components/CardForm.vue.d.ts +0 -18
  96. package/dist/legacy/components/CardForm.vue.d.ts.map +0 -1
  97. package/dist/legacy/components/CardForm.vue.js +0 -13
  98. package/dist/legacy/components/CardFormButton.vue.d.ts +0 -22
  99. package/dist/legacy/components/CardFormButton.vue.d.ts.map +0 -1
  100. package/dist/legacy/components/CardFormButton.vue.js +0 -7
  101. package/dist/legacy/components/CardFormButton.vue2.js +0 -18
  102. package/dist/legacy/components/CardFormGroup.vue.d.ts +0 -18
  103. package/dist/legacy/components/CardFormGroup.vue.d.ts.map +0 -1
  104. package/dist/legacy/components/CardFormGroup.vue.js +0 -13
  105. package/dist/legacy/components/CardFormRows.vue.d.ts +0 -18
  106. package/dist/legacy/components/CardFormRows.vue.d.ts.map +0 -1
  107. package/dist/legacy/components/CardFormRows.vue.js +0 -13
  108. package/dist/legacy/components/CardFormTextInput.vue.d.ts +0 -23
  109. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +0 -1
  110. package/dist/legacy/components/CardFormTextInput.vue.js +0 -7
  111. package/dist/legacy/components/CardFormTextInput.vue2.js +0 -53
  112. package/dist/legacy/components/SecurityScheme.vue.d.ts +0 -8
  113. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +0 -1
  114. package/dist/legacy/components/SecurityScheme.vue.js +0 -7
  115. package/dist/legacy/components/SecurityScheme.vue2.js +0 -393
  116. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +0 -13
  117. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +0 -1
  118. package/dist/legacy/components/SecuritySchemeScopes.vue.js +0 -7
  119. package/dist/legacy/components/SecuritySchemeScopes.vue2.js +0 -91
  120. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +0 -11
  121. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +0 -1
  122. package/dist/legacy/components/SecuritySchemeSelector.vue.js +0 -7
  123. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +0 -96
  124. package/dist/legacy/helpers/createPlaceholderRequest.d.ts +0 -6
  125. package/dist/legacy/helpers/createPlaceholderRequest.d.ts.map +0 -1
  126. package/dist/legacy/helpers/encodeStringAsBase64.js +0 -6
  127. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +0 -10
  128. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +0 -1
  129. package/dist/legacy/helpers/getRequestFromAuthentication.js +0 -83
  130. package/dist/legacy/helpers/humanDiff.d.ts +0 -5
  131. package/dist/legacy/helpers/humanDiff.d.ts.map +0 -1
  132. package/dist/legacy/helpers/mapFromArray.d.ts +0 -5
  133. package/dist/legacy/helpers/mapFromArray.d.ts.map +0 -1
  134. package/dist/legacy/helpers/normalizeHeaderName.d.ts +0 -5
  135. package/dist/legacy/helpers/normalizeHeaderName.d.ts.map +0 -1
  136. package/dist/legacy/helpers/normalizeHeaderName.js +0 -6
  137. package/dist/legacy/helpers/normalizeHeaders.d.ts +0 -8
  138. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +0 -1
  139. package/dist/legacy/helpers/normalizeHeaders.js +0 -22
  140. package/dist/legacy/helpers/normalizePath.d.ts +0 -5
  141. package/dist/legacy/helpers/normalizePath.d.ts.map +0 -1
  142. package/dist/legacy/helpers/normalizeUrl.d.ts +0 -5
  143. package/dist/legacy/helpers/normalizeUrl.d.ts.map +0 -1
  144. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +0 -24
  145. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts.map +0 -1
  146. package/dist/legacy/stores/useAuthenticationStore.d.ts +0 -55
  147. package/dist/legacy/stores/useAuthenticationStore.d.ts.map +0 -1
  148. package/dist/legacy/stores/useAuthenticationStore.js +0 -36
  149. package/dist/legacy/stores/useOpenApiStore.d.ts +0 -125
  150. package/dist/legacy/stores/useOpenApiStore.d.ts.map +0 -1
  151. package/dist/legacy/stores/useOpenApiStore.js +0 -9
  152. package/dist/legacy/stores/useRequestStore.d.ts +0 -62
  153. package/dist/legacy/stores/useRequestStore.d.ts.map +0 -1
@@ -1,39 +1,41 @@
1
- import { defineComponent as m, inject as f, openBlock as r, createBlock as s, unref as e, createSlots as h, withCtx as n, createElementVNode as t, createVNode as i, toDisplayString as u, createCommentVNode as _, withModifiers as v } from "vue";
2
- import y from "../../../components/OperationPath.vue.js";
3
- import { ScalarIcon as b, ScalarIconButton as C, ScalarMarkdown as S } from "@scalar/components";
1
+ import { defineComponent as m, inject as u, openBlock as r, createBlock as s, unref as o, createSlots as f, withCtx as n, createElementVNode as t, createVNode as i, toDisplayString as h, createCommentVNode as _, withModifiers as v } from "vue";
2
+ import C from "../../../components/OperationPath.vue.js";
3
+ import { ScalarIcon as y, ScalarIconButton as b, ScalarMarkdown as S } from "@scalar/components";
4
4
  import { useClipboard as k } from "@scalar/use-hooks/useClipboard";
5
5
  import T from "../components/OperationParameters.vue.js";
6
- import B from "../components/OperationResponses.vue.js";
7
- import E from "../../../components/Section/SectionAccordion.vue.js";
8
- import R from "../../../components/HttpMethod/HttpMethod.vue.js";
9
- import I from "../../../components/Anchor/Anchor.vue.js";
10
- import g from "../../TestRequestButton/TestRequestButton.vue.js";
11
- import w from "../../ExampleResponses/ExampleResponses.vue.js";
12
- import N from "../../ExampleRequest/ExampleRequest.vue.js";
13
- import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as V } from "../../../helpers/provideSymbols.js";
14
- const $ = { class: "operation-title" }, q = { class: "operation-details" }, L = { class: "endpoint-label" }, M = { class: "endpoint-label-path" }, O = { class: "endpoint-label-name" }, U = { class: "endpoint-content" }, A = { class: "operation-details-card" }, D = { class: "operation-details-card-item" }, H = { class: "operation-details-card-item" }, to = /* @__PURE__ */ m({
6
+ import q from "../components/OperationResponses.vue.js";
7
+ import B from "../../../components/Section/SectionAccordion.vue.js";
8
+ import E from "../../../components/HttpMethod/HttpMethod.vue.js";
9
+ import R from "../../../components/Anchor/Anchor.vue.js";
10
+ import I from "../../TestRequestButton/TestRequestButton.vue.js";
11
+ import g from "../../ExampleResponses/ExampleResponses.vue.js";
12
+ import w from "../../ExampleRequest/ExampleRequest.vue.js";
13
+ import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as N } from "../../../helpers/provideSymbols.js";
14
+ const V = { class: "operation-title" }, $ = { class: "operation-details" }, L = { class: "endpoint-label" }, M = { class: "endpoint-label-path" }, O = { class: "endpoint-label-name" }, U = { class: "endpoint-content" }, A = { class: "operation-details-card" }, D = { class: "operation-details-card-item" }, H = { class: "operation-details-card-item" }, te = /* @__PURE__ */ m({
15
15
  __name: "ClassicLayout",
16
16
  props: {
17
17
  id: {},
18
- operation: {}
18
+ operation: {},
19
+ request: {},
20
+ secretCredentials: {}
19
21
  },
20
22
  setup(P) {
21
- const { copyToClipboard: d } = k(), c = f(V);
22
- return (o, p) => (r(), s(e(E), {
23
- id: o.id,
23
+ const { copyToClipboard: d } = k(), c = u(N);
24
+ return (e, p) => (r(), s(o(B), {
25
+ id: e.id,
24
26
  class: "reference-endpoint",
25
27
  transparent: ""
26
- }, h({
28
+ }, f({
27
29
  title: n(() => [
28
- t("h3", $, [
29
- t("div", q, [
30
- i(e(R), {
30
+ t("h3", V, [
31
+ t("div", $, [
32
+ i(o(E), {
31
33
  class: "endpoint-type",
32
- method: o.operation.httpVerb,
34
+ method: e.operation.httpVerb,
33
35
  short: ""
34
36
  }, null, 8, ["method"]),
35
- i(e(I), {
36
- id: o.id ?? "",
37
+ i(o(R), {
38
+ id: e.id ?? "",
37
39
  class: "endpoint-anchor"
38
40
  }, {
39
41
  default: n(() => {
@@ -41,12 +43,12 @@ const $ = { class: "operation-title" }, q = { class: "operation-details" }, L =
41
43
  return [
42
44
  t("div", L, [
43
45
  t("div", M, [
44
- i(y, {
45
- deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
46
- path: o.operation.path
46
+ i(C, {
47
+ deprecated: (a = e.operation.information) == null ? void 0 : a.deprecated,
48
+ path: e.operation.path
47
49
  }, null, 8, ["deprecated", "path"])
48
50
  ]),
49
- t("div", O, u(o.operation.name), 1)
51
+ t("div", O, h(e.operation.name), 1)
50
52
  ])
51
53
  ];
52
54
  }),
@@ -58,22 +60,22 @@ const $ = { class: "operation-title" }, q = { class: "operation-details" }, L =
58
60
  actions: n(({ active: a }) => {
59
61
  var l;
60
62
  return [
61
- a ? (r(), s(e(g), {
63
+ a ? (r(), s(o(I), {
62
64
  key: 0,
63
- operation: o.operation
64
- }, null, 8, ["operation"])) : (l = e(c)) != null && l() ? _("", !0) : (r(), s(e(b), {
65
+ operation: e.operation
66
+ }, null, 8, ["operation"])) : (l = o(c)) != null && l() ? _("", !0) : (r(), s(o(y), {
65
67
  key: 1,
66
68
  class: "endpoint-try-hint",
67
69
  icon: "Play",
68
70
  thickness: "1.75px"
69
71
  })),
70
- i(e(C), {
72
+ i(o(b), {
71
73
  class: "endpoint-copy",
72
74
  icon: "Clipboard",
73
75
  label: "Copy endpoint URL",
74
76
  size: "xs",
75
77
  variant: "ghost",
76
- onClick: p[0] || (p[0] = v((j) => e(d)(o.operation.path), ["stop"]))
78
+ onClick: p[0] || (p[0] = v((j) => o(d)(e.operation.path), ["stop"]))
77
79
  })
78
80
  ];
79
81
  }),
@@ -81,26 +83,30 @@ const $ = { class: "operation-title" }, q = { class: "operation-details" }, L =
81
83
  t("div", U, [
82
84
  t("div", A, [
83
85
  t("div", D, [
84
- i(T, { operation: o.operation }, null, 8, ["operation"])
86
+ i(T, { operation: e.operation }, null, 8, ["operation"])
85
87
  ]),
86
88
  t("div", H, [
87
- i(B, {
89
+ i(q, {
88
90
  collapsableItems: !1,
89
- operation: o.operation
91
+ operation: e.operation
90
92
  }, null, 8, ["operation"])
91
93
  ])
92
94
  ]),
93
- i(e(w), { operation: o.operation }, null, 8, ["operation"]),
94
- i(e(N), { operation: o.operation }, null, 8, ["operation"])
95
+ i(o(g), { operation: e.operation }, null, 8, ["operation"]),
96
+ i(o(w), {
97
+ operation: e.operation,
98
+ request: e.request,
99
+ secretCredentials: e.secretCredentials
100
+ }, null, 8, ["operation", "request", "secretCredentials"])
95
101
  ])
96
102
  ]),
97
103
  _: 2
98
104
  }, [
99
- o.operation.description ? {
105
+ e.operation.description ? {
100
106
  name: "description",
101
107
  fn: n(() => [
102
- i(e(S), {
103
- value: o.operation.description,
108
+ i(o(S), {
109
+ value: e.operation.description,
104
110
  withImages: ""
105
111
  }, null, 8, ["value"])
106
112
  ]),
@@ -110,5 +116,5 @@ const $ = { class: "operation-title" }, q = { class: "operation-details" }, L =
110
116
  }
111
117
  });
112
118
  export {
113
- to as default
119
+ te as default
114
120
  };
@@ -2,6 +2,8 @@ import type { TransformedOperation } from '@scalar/types/legacy';
2
2
  type __VLS_Props = {
3
3
  id?: string;
4
4
  operation: TransformedOperation;
5
+ request: Request | null;
6
+ secretCredentials: string[];
5
7
  };
6
8
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAOhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAoNF,wBAOG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAOhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;IAC/B,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;IACvB,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAC5B,CAAC;;AAqNF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-aec31ba9"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-231d90aa"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,50 +1,52 @@
1
- import { defineComponent as c, openBlock as m, createBlock as d, unref as r, withCtx as t, createVNode as e, createTextVNode as u, createCommentVNode as _, createElementVNode as a, normalizeClass as h, toDisplayString as S } from "vue";
2
- import C from "../../../components/OperationPath.vue.js";
3
- import { ScalarMarkdown as v, ScalarErrorBoundary as f } from "@scalar/components";
4
- import k from "../components/OperationParameters.vue.js";
5
- import y from "../components/OperationResponses.vue.js";
6
- import B from "../../../components/Section/Section.vue.js";
7
- import g from "../../../components/Section/SectionContent.vue.js";
8
- import E from "../../../components/Badge/Badge.vue.js";
9
- import N from "../../../components/Section/SectionHeader.vue.js";
10
- import V from "../../../components/Anchor/Anchor.vue.js";
11
- import b from "../../../components/Section/SectionColumns.vue.js";
12
- import s from "../../../components/Section/SectionColumn.vue.js";
13
- import w from "../../ExampleRequest/ExampleRequest.vue.js";
14
- import R from "../../TestRequestButton/TestRequestButton.vue.js";
15
- import q from "../../ExampleResponses/ExampleResponses.vue.js";
1
+ import { defineComponent as c, openBlock as d, createBlock as m, unref as r, withCtx as t, createVNode as o, createTextVNode as s, createCommentVNode as C, createElementVNode as a, normalizeClass as h, toDisplayString as _ } from "vue";
2
+ import S from "../../../components/OperationPath.vue.js";
3
+ import { ScalarMarkdown as q, ScalarErrorBoundary as u } from "@scalar/components";
4
+ import v from "../components/OperationParameters.vue.js";
5
+ import k from "../components/OperationResponses.vue.js";
6
+ import y from "../../../components/Section/Section.vue.js";
7
+ import B from "../../../components/Section/SectionContent.vue.js";
8
+ import g from "../../../components/Badge/Badge.vue.js";
9
+ import E from "../../../components/Section/SectionHeader.vue.js";
10
+ import N from "../../../components/Anchor/Anchor.vue.js";
11
+ import V from "../../../components/Section/SectionColumns.vue.js";
12
+ import f from "../../../components/Section/SectionColumn.vue.js";
13
+ import b from "../../ExampleRequest/ExampleRequest.vue.js";
14
+ import w from "../../TestRequestButton/TestRequestButton.vue.js";
15
+ import R from "../../ExampleResponses/ExampleResponses.vue.js";
16
16
  const D = { class: "operation-details" }, M = { class: "examples" }, W = /* @__PURE__ */ c({
17
17
  __name: "ModernLayout",
18
18
  props: {
19
19
  id: {},
20
- operation: {}
20
+ operation: {},
21
+ request: {},
22
+ secretCredentials: {}
21
23
  },
22
24
  setup(T) {
23
- return (o, n) => (m(), d(r(B), {
24
- id: o.id,
25
- label: o.operation.name
25
+ return (e, n) => (d(), m(r(y), {
26
+ id: e.id,
27
+ label: e.operation.name
26
28
  }, {
27
29
  default: t(() => [
28
- e(r(g), null, {
30
+ o(r(B), null, {
29
31
  default: t(() => {
30
- var i, p;
32
+ var i, l;
31
33
  return [
32
- (i = o.operation.information) != null && i.deprecated ? (m(), d(r(E), { key: 0 }, {
34
+ (i = e.operation.information) != null && i.deprecated ? (d(), m(r(g), { key: 0 }, {
33
35
  default: t(() => n[0] || (n[0] = [
34
- u(" Deprecated ")
36
+ s(" Deprecated ")
35
37
  ])),
36
38
  _: 1
37
- })) : _("", !0),
39
+ })) : C("", !0),
38
40
  a("div", {
39
- class: h((p = o.operation.information) != null && p.deprecated ? "deprecated" : "")
41
+ class: h((l = e.operation.information) != null && l.deprecated ? "deprecated" : "")
40
42
  }, [
41
- e(r(N), { level: 3 }, {
43
+ o(r(E), { level: 3 }, {
42
44
  default: t(() => [
43
- e(r(V), {
44
- id: o.id ?? ""
45
+ o(r(N), {
46
+ id: e.id ?? ""
45
47
  }, {
46
48
  default: t(() => [
47
- u(S(o.operation.name), 1)
49
+ s(_(e.operation.name), 1)
48
50
  ]),
49
51
  _: 1
50
52
  }, 8, ["id"])
@@ -52,52 +54,54 @@ const D = { class: "operation-details" }, M = { class: "examples" }, W = /* @__P
52
54
  _: 1
53
55
  })
54
56
  ], 2),
55
- e(r(b), null, {
57
+ o(r(V), null, {
56
58
  default: t(() => [
57
- e(r(s), null, {
59
+ o(r(f), null, {
58
60
  default: t(() => [
59
61
  a("div", D, [
60
- e(r(v), {
61
- value: o.operation.description,
62
+ o(r(q), {
63
+ value: e.operation.description,
62
64
  withImages: ""
63
65
  }, null, 8, ["value"]),
64
- e(k, { operation: o.operation }, null, 8, ["operation"]),
65
- e(y, { operation: o.operation }, null, 8, ["operation"])
66
+ o(v, { operation: e.operation }, null, 8, ["operation"]),
67
+ o(k, { operation: e.operation }, null, 8, ["operation"])
66
68
  ])
67
69
  ]),
68
70
  _: 1
69
71
  }),
70
- e(r(s), null, {
72
+ o(r(f), null, {
71
73
  default: t(() => [
72
74
  a("div", M, [
73
- e(r(f), null, {
75
+ o(r(u), null, {
74
76
  default: t(() => [
75
- e(r(w), {
77
+ o(r(b), {
76
78
  fallback: "",
77
- operation: o.operation
79
+ operation: e.operation,
80
+ request: e.request,
81
+ secretCredentials: e.secretCredentials
78
82
  }, {
79
83
  header: t(() => {
80
- var l;
84
+ var p;
81
85
  return [
82
- e(C, {
86
+ o(S, {
83
87
  class: "example-path",
84
- deprecated: (l = o.operation.information) == null ? void 0 : l.deprecated,
85
- path: o.operation.path
88
+ deprecated: (p = e.operation.information) == null ? void 0 : p.deprecated,
89
+ path: e.operation.path
86
90
  }, null, 8, ["deprecated", "path"])
87
91
  ];
88
92
  }),
89
93
  footer: t(() => [
90
- e(r(R), { operation: o.operation }, null, 8, ["operation"])
94
+ o(r(w), { operation: e.operation }, null, 8, ["operation"])
91
95
  ]),
92
96
  _: 1
93
- }, 8, ["operation"])
97
+ }, 8, ["operation", "request", "secretCredentials"])
94
98
  ]),
95
99
  _: 1
96
100
  }),
97
- e(r(f), null, {
101
+ o(r(u), null, {
98
102
  default: t(() => [
99
- e(r(q), {
100
- operation: o.operation,
103
+ o(r(R), {
104
+ operation: e.operation,
101
105
  style: { "margin-top": "12px" }
102
106
  }, null, 8, ["operation"])
103
107
  ]),
@@ -0,0 +1,7 @@
1
+ import type { HarRequest } from '@scalar/types/external';
2
+ /**
3
+ * Takes in a regular request object and returns a HAR request
4
+ * We also Titlecase the headers
5
+ */
6
+ export declare const convertRequestToHarRequest: (request: Request) => Promise<HarRequest>;
7
+ //# sourceMappingURL=convertRequestToHarRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertRequestToHarRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/convertRequestToHarRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,YAC5B,OAAO,KACf,OAAO,CAAC,UAAU,CAuGpB,CAAA"}
@@ -0,0 +1,64 @@
1
+ const f = async (t) => {
2
+ const r = new URL(t.url), p = Array.from(r.searchParams.entries());
3
+ r.search = "";
4
+ const i = {
5
+ method: t.method.toUpperCase(),
6
+ url: r.toString(),
7
+ httpVersion: "HTTP/1.1",
8
+ headers: [],
9
+ queryString: [],
10
+ cookies: [],
11
+ headersSize: -1,
12
+ bodySize: -1
13
+ }, m = t.headers.get("cookie");
14
+ m && (i.cookies = m.split(";").map((e) => {
15
+ const [a, o] = e.trim().split("=");
16
+ return { name: a, value: o };
17
+ })), t.headers && (i.headers = Array.from(t.headers.entries()).map(
18
+ ([e, a]) => ({
19
+ name: e.replace(/\b\w/g, (o) => o.toUpperCase()),
20
+ value: a
21
+ })
22
+ ));
23
+ try {
24
+ i.queryString = p.map(([e, a]) => ({
25
+ name: e,
26
+ value: a
27
+ })), r.search = "";
28
+ } catch {
29
+ }
30
+ if (t.body)
31
+ try {
32
+ const e = t.headers.get("content-type") || "application/json";
33
+ if (e.includes("multipart/form-data")) {
34
+ const a = await t.formData(), o = {};
35
+ a.forEach((s, n) => {
36
+ const l = s instanceof Blob;
37
+ if (s instanceof File || l)
38
+ o[n] = {
39
+ type: "file",
40
+ text: "BINARY",
41
+ name: "name" in s ? s.name : "blob",
42
+ size: s.size,
43
+ mimeType: s.type || "application/octet-stream"
44
+ };
45
+ else {
46
+ const c = a.getAll(n);
47
+ c.length > 1 ? o[n] = c : o[n] = c[0];
48
+ }
49
+ }), i.postData = {
50
+ mimeType: e,
51
+ text: JSON.stringify(o)
52
+ };
53
+ } else
54
+ i.postData = {
55
+ mimeType: e,
56
+ text: await t.text()
57
+ };
58
+ } catch {
59
+ }
60
+ return i;
61
+ };
62
+ export {
63
+ f as convertRequestToHarRequest
64
+ };
@@ -0,0 +1,40 @@
1
+ import type { WorkspaceStore } from '@scalar/api-client/store';
2
+ /** Grabs the request from a path + method */
3
+ export declare const getRequest: (requests: WorkspaceStore["requests"], path: string, method: string) => {
4
+ path: string;
5
+ type: "request";
6
+ uid: string;
7
+ selectedSecuritySchemeUids: string[];
8
+ selectedServerUid: string;
9
+ servers: string[];
10
+ examples: string[];
11
+ method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
12
+ description?: string | undefined;
13
+ summary?: string | undefined;
14
+ externalDocs?: {
15
+ url: string;
16
+ description?: string | undefined;
17
+ } | undefined;
18
+ security?: Record<string, string[]>[] | undefined;
19
+ tags?: string[] | undefined;
20
+ deprecated?: boolean | undefined;
21
+ operationId?: string | undefined;
22
+ parameters?: {
23
+ required: boolean;
24
+ name: string;
25
+ in: "path" | "query" | "header" | "cookie";
26
+ deprecated: boolean;
27
+ description?: string | undefined;
28
+ example?: unknown;
29
+ schema?: unknown;
30
+ content?: unknown;
31
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
32
+ examples?: Record<string, {
33
+ value?: unknown;
34
+ summary?: string | undefined;
35
+ }> | undefined;
36
+ }[] | undefined;
37
+ requestBody?: any;
38
+ responses?: Record<string, any> | undefined;
39
+ } | undefined;
40
+ //# sourceMappingURL=get-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-request.d.ts","sourceRoot":"","sources":["../../src/helpers/get-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6CAA6C;AAC7C,eAAO,MAAM,UAAU,aACX,cAAc,CAAC,UAAU,CAAC,QAC9B,MAAM,UACJ,MAAM;;;;;;;;;;;;;mBAKs0S,CAAC;;;;;;;;;;;mBAAia,CAAC;eAAyC,CAAC;cAA6B,CAAC;eAA8B,CAAC;aAA4B,CAAC;gBAA8H,CAAC;iBAAwC,CAAC;mBAAkC,CAAC;;;;;aADrkU,CAAA"}
@@ -0,0 +1,6 @@
1
+ const a = (t, o, s) => Object.values(t).find(
2
+ (e) => e.path === o && e.method.toLowerCase() === s.toLowerCase()
3
+ );
4
+ export {
5
+ a as getRequest
6
+ };
@@ -1,9 +1,9 @@
1
- import { type Request, type ClientId as SnippetzClientId, type TargetId as SnippetzTargetId } from '@scalar/snippetz';
1
+ import { type ClientId as SnippetzClientId, type TargetId as SnippetzTargetId } from '@scalar/snippetz';
2
2
  import { type ClientId as HttpSnippetLiteClientId, type TargetId as HttpSnippetLiteTargetId } from 'httpsnippet-lite';
3
3
  export type TargetId = HttpSnippetLiteTargetId | SnippetzTargetId;
4
4
  export type ClientId<T extends SnippetzTargetId> = HttpSnippetLiteClientId | SnippetzClientId<T>;
5
5
  /**
6
- * Returns a code example for given HAR request
6
+ * Returns a code example for given Request
7
7
  */
8
8
  export declare function getExampleCode<T extends SnippetzTargetId>(request: Request, target: TargetId, client: ClientId<T>): Promise<string | undefined>;
9
9
  //# sourceMappingURL=getExampleCode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getExampleCode.d.ts","sourceRoot":"","sources":["../../src/helpers/getExampleCode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,IAAI,gBAAgB,EACjC,KAAK,QAAQ,IAAI,gBAAgB,EAElC,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,KAAK,QAAQ,IAAI,uBAAuB,EACxC,KAAK,QAAQ,IAAI,uBAAuB,EACzC,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,QAAQ,GAAG,uBAAuB,GAAG,gBAAgB,CAAA;AACjE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,gBAAgB,IAC3C,uBAAuB,GACvB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAEvB;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,gBAAgB,EAC7D,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,+BAyCpB"}
1
+ {"version":3,"file":"getExampleCode.d.ts","sourceRoot":"","sources":["../../src/helpers/getExampleCode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,IAAI,gBAAgB,EAEjC,KAAK,QAAQ,IAAI,gBAAgB,EAElC,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,KAAK,QAAQ,IAAI,uBAAuB,EACxC,KAAK,QAAQ,IAAI,uBAAuB,EACzC,MAAM,kBAAkB,CAAA;AAIzB,MAAM,MAAM,QAAQ,GAAG,uBAAuB,GAAG,gBAAgB,CAAA;AACjE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,gBAAgB,IAC3C,uBAAuB,GACvB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAEvB;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,gBAAgB,EAC7D,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,+BA8CpB"}
@@ -1,32 +1,35 @@
1
- import { snippetz as o } from "@scalar/snippetz";
2
- import { HTTPSnippet as s } from "httpsnippet-lite";
3
- async function f(t, e, p) {
4
- const r = e;
5
- if (o().hasPlugin(r, p))
6
- return o().print(
1
+ import { snippetz as i } from "@scalar/snippetz";
2
+ import { HTTPSnippet as c } from "httpsnippet-lite";
3
+ import { convertRequestToHarRequest as l } from "./convertRequestToHarRequest.js";
4
+ async function h(t, e, r) {
5
+ const p = await l(t), s = e;
6
+ if (i().hasPlugin(s, r))
7
+ return i().print(
8
+ e,
7
9
  r,
8
- p,
9
- t
10
+ // TODO: We shouldn’t cast the type here.
11
+ // Luckily, the difference between those two types is tiny. We’ll get rid of this compatibility issue soon.
12
+ p
10
13
  );
11
14
  if (t.url.startsWith("__"))
12
15
  return t.url;
13
16
  try {
14
- const n = e == null ? void 0 : e.replace(
17
+ const o = e == null ? void 0 : e.replace(
15
18
  "js",
16
19
  "javascript"
17
- ), c = p, i = await new s(t).convert(
18
- n,
19
- c
20
+ ), a = r, n = await new c(p).convert(
21
+ o,
22
+ a
20
23
  );
21
- if (typeof i == "string") return i;
22
- } catch (n) {
24
+ if (typeof n == "string") return n;
25
+ } catch (o) {
23
26
  console.error(
24
27
  "[getExampleCode] Failed to generate example code with httpsnippet-lite:",
25
- n
28
+ o
26
29
  );
27
30
  }
28
31
  return "";
29
32
  }
30
33
  export {
31
- f as getExampleCode
34
+ h as getExampleCode
32
35
  };
@@ -1,9 +1,7 @@
1
1
  export * from './createEmptySpecification.js';
2
- export * from './createRequest.js';
3
2
  export * from './deepMerge.js';
4
- export * from './getApiClientRequest.js';
5
3
  export * from './getExampleCode.js';
6
- export * from './getHarRequest.js';
4
+ export * from './convertRequestToHarRequest.js';
7
5
  export * from './getHeadingsFromMarkdown.js';
8
6
  export * from './getLowestHeadingLevel.js';
9
7
  export * from './getModels.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
@@ -1,10 +1,5 @@
1
1
  import type { ReferenceConfiguration } from '../types';
2
- import type { OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
3
2
  import type { InjectionKey } from 'vue';
4
- /**
5
- * Collection of symbols to use with provide inject
6
- */
7
- export declare const GLOBAL_SECURITY_SYMBOL: InjectionKey<() => OpenAPIV3.SecurityRequirementObject[] | OpenAPIV3_1.SecurityRequirementObject[] | undefined>;
8
3
  export declare const HIDE_DOWNLOAD_BUTTON_SYMBOL: InjectionKey<() => boolean | undefined>;
9
4
  export declare const HIDE_TEST_REQUEST_BUTTON_SYMBOL: InjectionKey<() => boolean | undefined>;
10
5
  export declare const OPENAPI_DOCUMENT_URL_SYMBOL: InjectionKey<() => string | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"provideSymbols.d.ts","sourceRoot":"","sources":["../../src/helpers/provideSymbols.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAe,YAAY,CAC5D,MACI,SAAS,CAAC,yBAAyB,EAAE,GACrC,WAAW,CAAC,yBAAyB,EAAE,GACvC,SAAS,CACd,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAe,YAAY,CACjE,MAAM,OAAO,GAAG,SAAS,CAC1B,CAAA;AAED,eAAO,MAAM,+BAA+B,EAAe,YAAY,CACrE,MAAM,OAAO,GAAG,SAAS,CAC1B,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAe,YAAY,CACjE,MAAM,MAAM,GAAG,SAAS,CACzB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAe,YAAY,CACxD,MAAM,sBAAsB,CAAC,cAAc,CAAC,CAC7C,CAAA"}
1
+ {"version":3,"file":"provideSymbols.d.ts","sourceRoot":"","sources":["../../src/helpers/provideSymbols.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC,eAAO,MAAM,2BAA2B,EAAe,YAAY,CACjE,MAAM,OAAO,GAAG,SAAS,CAC1B,CAAA;AAED,eAAO,MAAM,+BAA+B,EAAe,YAAY,CACrE,MAAM,OAAO,GAAG,SAAS,CAC1B,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAe,YAAY,CACjE,MAAM,MAAM,GAAG,SAAS,CACzB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAe,YAAY,CACxD,MAAM,sBAAsB,CAAC,cAAc,CAAC,CAC7C,CAAA"}
@@ -1,8 +1,7 @@
1
- const O = Symbol(), S = Symbol(), _ = Symbol(), o = Symbol(), T = Symbol();
1
+ const O = Symbol(), _ = Symbol(), S = Symbol(), T = Symbol();
2
2
  export {
3
- O as GLOBAL_SECURITY_SYMBOL,
4
- S as HIDE_DOWNLOAD_BUTTON_SYMBOL,
3
+ O as HIDE_DOWNLOAD_BUTTON_SYMBOL,
5
4
  _ as HIDE_TEST_REQUEST_BUTTON_SYMBOL,
6
5
  T as INTEGRATION_SYMBOL,
7
- o as OPENAPI_DOCUMENT_URL_SYMBOL
6
+ S as OPENAPI_DOCUMENT_URL_SYMBOL
8
7
  };
@@ -153,8 +153,8 @@ export declare function useReactiveSpec({ specConfig, proxyUrl, }: {
153
153
  } | undefined;
154
154
  version?: string | undefined;
155
155
  } | {
156
- description?: string | undefined;
157
156
  title?: string | undefined;
157
+ description?: string | undefined;
158
158
  termsOfService?: string | undefined;
159
159
  contact?: {
160
160
  name?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAc3E,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAkBD,uDAAuD;AACvD,iBAAS,aAAa,CAAC,IAAI,EAAE,IAAI,QA6ChC;AAMD,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAMpD,iBAAS,0BAA0B,CAAC,GAAG,EAAE,MAAM,QAE9C;AAED,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,QAE3D;AAkOD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC,CAAA;IACnD,gBAAgB,CAAC,EACb,OAAO,GACP,QAAQ,GACR,CAAC,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,EAAE,oBAAoB,KAAK,MAAM,CAAC,CAAA;CACnE,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,gBAAiB,MAAM,SAepD,CAAA;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,YAAY;;;;;;;;;;;;;qCApBrB,MAAM;EAsEpD"}
1
+ {"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAc3E,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAkBD,uDAAuD;AACvD,iBAAS,aAAa,CAAC,IAAI,EAAE,IAAI,QA6ChC;AAMD,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAMpD,iBAAS,0BAA0B,CAAC,GAAG,EAAE,MAAM,QAE9C;AAED,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,QAE3D;AA+ND,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC,CAAA;IACnD,gBAAgB,CAAC,EACb,OAAO,GACP,QAAQ,GACR,CAAC,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,EAAE,oBAAoB,KAAK,MAAM,CAAC,CAAA;CACnE,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,gBAAiB,MAAM,SAepD,CAAA;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,YAAY;;;;;;;;;;;;;qCApBrB,MAAM;EAsEpD"}