@scalar/api-reference 1.32.7 → 1.32.8

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 (135) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/browser/standalone.js +16286 -16092
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue2.js +2 -1
  5. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  7. package/dist/components/ApiReferenceLayout.vue2.js +164 -176
  8. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Content.vue.js +2 -2
  10. package/dist/components/Content/Content.vue2.js +20 -20
  11. package/dist/components/Content/Models/Models.vue2.js +5 -4
  12. package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
  13. package/dist/components/Content/Schema/Schema.vue2.js +2 -1
  14. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +14 -7
  15. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  17. package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
  18. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  20. package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
  21. package/dist/components/Content/Tag/Tag.vue.js +2 -1
  22. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  23. package/dist/components/GettingStarted.vue2.js +8 -6
  24. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  25. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  26. package/dist/components/Section/SectionAccordion.vue2.js +28 -29
  27. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  28. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  29. package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
  30. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  31. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  32. package/dist/features/Operation/Operation.vue.js +50 -49
  33. package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
  34. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  35. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  36. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  37. package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
  38. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  39. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  40. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
  41. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
  42. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  43. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  44. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +168 -154
  45. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
  46. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  47. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  48. package/dist/features/Operation/layouts/ModernLayout.vue2.js +113 -117
  49. package/dist/features/Search/SearchButton.vue.js +2 -1
  50. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  51. package/dist/features/Search/SearchModal.vue.js +2 -2
  52. package/dist/features/Search/SearchModal.vue2.js +16 -16
  53. package/dist/features/api-client-modal/useApiClient.d.ts +5338 -5258
  54. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  55. package/dist/features/download-link/DownloadLink.vue2.js +4 -2
  56. package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
  57. package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
  58. package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
  59. package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
  60. package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
  61. package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
  62. package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
  63. package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
  64. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  65. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  66. package/dist/features/example-responses/ExampleResponses.vue2.js +89 -96
  67. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  68. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  69. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  70. package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
  71. package/dist/helpers/convert-security-scheme.js +23 -0
  72. package/dist/index.d.ts +0 -2
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +15 -29
  75. package/dist/style.css +1 -1
  76. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
  77. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  78. package/dist/v2/ApiReferenceWorkspace.vue.js +113 -86
  79. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  80. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
  81. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  82. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  83. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
  84. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +20 -3
  85. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
  86. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  87. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  88. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
  89. package/dist/v2/events/definitions.js +7 -0
  90. package/dist/v2/events/index.d.ts +1 -1
  91. package/dist/v2/events/listeners.d.ts +1 -1
  92. package/dist/v2/hooks/useStore.js +14 -0
  93. package/package.json +26 -26
  94. package/dist/blocks/constants.js +0 -6
  95. package/dist/blocks/helpers/getPointer.js +0 -12
  96. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  97. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  98. package/dist/blocks/hooks/useBlockProps.js +0 -24
  99. package/dist/components/Card/Card.vue.d.ts +0 -18
  100. package/dist/components/Card/Card.vue.d.ts.map +0 -1
  101. package/dist/components/Card/Card.vue.js +0 -13
  102. package/dist/components/Card/CardContent.vue.d.ts +0 -19
  103. package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
  104. package/dist/components/Card/CardContent.vue.js +0 -7
  105. package/dist/components/Card/CardContent.vue2.js +0 -27
  106. package/dist/components/Card/CardFooter.vue.d.ts +0 -19
  107. package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
  108. package/dist/components/Card/CardFooter.vue.js +0 -7
  109. package/dist/components/Card/CardFooter.vue2.js +0 -24
  110. package/dist/components/Card/CardHeader.vue.d.ts +0 -20
  111. package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
  112. package/dist/components/Card/CardHeader.vue.js +0 -7
  113. package/dist/components/Card/CardHeader.vue2.js +0 -31
  114. package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
  115. package/dist/components/Card/CardTab.vue.js +0 -7
  116. package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
  117. package/dist/components/Card/CardTabHeader.vue.js +0 -7
  118. package/dist/components/Card/index.d.ts +0 -7
  119. package/dist/components/Card/index.d.ts.map +0 -1
  120. package/dist/components/Card/types.d.ts +0 -8
  121. package/dist/components/Card/types.d.ts.map +0 -1
  122. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  123. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  124. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  125. package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
  126. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
  127. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  128. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  129. package/dist/features/example-request/ExampleRequest.vue2.js +0 -361
  130. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  131. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  132. package/dist/features/example-request/TextSelect.vue.js +0 -48
  133. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  134. package/dist/features/example-request/index.d.ts +0 -3
  135. package/dist/features/example-request/index.d.ts.map +0 -1
@@ -1,87 +1,86 @@
1
- import { defineComponent as I, computed as N, useId as O, createBlock as l, openBlock as s, unref as o, withCtx as t, createVNode as a, createCommentVNode as i, createElementVNode as n, normalizeClass as S, createTextVNode as m, toDisplayString as q, createSlots as W } from "vue";
2
- import { ScalarMarkdown as D, ScalarErrorBoundary as p } from "@scalar/components";
3
- import { ScalarIconWebhooksLogo as L } from "@scalar/icons";
4
- import { getOperationStability as C, getOperationStabilityColor as P, isOperationDeprecated as R } from "@scalar/oas-utils/helpers";
5
- import $ from "../../../components/OperationPath.vue.js";
6
- import { useConfig as z } from "../../../hooks/useConfig.js";
7
- import A from "../components/callbacks/Callbacks.vue.js";
8
- import H from "../components/OperationParameters.vue.js";
9
- import M from "../components/OperationResponses.vue.js";
10
- import U from "../../../components/Section/Section.vue.js";
11
- import j from "../../../components/Section/SectionContent.vue.js";
12
- import B from "../../../components/Badge/Badge.vue.js";
13
- import F from "../../../components/Section/SectionHeader.vue.js";
14
- import G from "../../../components/Anchor/Anchor.vue.js";
15
- import J from "../../../components/Section/SectionHeaderTag.vue.js";
16
- import K from "../../../components/Section/SectionColumns.vue.js";
17
- import V from "../../../components/Section/SectionColumn.vue.js";
18
- import Q from "../../example-request/ExampleRequest.vue.js";
19
- import X from "../../test-request-button/TestRequestButton.vue.js";
20
- import Y from "../../example-responses/ExampleResponses.vue.js";
21
- const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__PURE__ */ I({
1
+ import { defineComponent as V, computed as w, useId as q, createBlock as r, openBlock as s, unref as o, withCtx as t, createVNode as a, createCommentVNode as l, createElementVNode as i, normalizeClass as y, createTextVNode as n, toDisplayString as b, createSlots as T } from "vue";
2
+ import { ScalarMarkdown as W, ScalarErrorBoundary as m } from "@scalar/components";
3
+ import { ScalarIconWebhooksLogo as E } from "@scalar/icons";
4
+ import { getOperationStability as S, getOperationStabilityColor as I, isOperationDeprecated as N } from "@scalar/oas-utils/helpers";
5
+ import D from "../../../components/OperationPath.vue.js";
6
+ import L from "../components/callbacks/Callbacks.vue.js";
7
+ import P from "../components/OperationParameters.vue.js";
8
+ import R from "../components/OperationResponses.vue.js";
9
+ import { useConfig as $ } from "../../../hooks/useConfig.js";
10
+ import { useStore as z } from "../../../v2/hooks/useStore.js";
11
+ import A from "../../../components/Section/Section.vue.js";
12
+ import H from "../../../components/Section/SectionContent.vue.js";
13
+ import g from "../../../components/Badge/Badge.vue.js";
14
+ import M from "../../../components/Section/SectionHeader.vue.js";
15
+ import U from "../../../components/Anchor/Anchor.vue.js";
16
+ import j from "../../../components/Section/SectionHeaderTag.vue.js";
17
+ import F from "../../../components/Section/SectionColumns.vue.js";
18
+ import k from "../../../components/Section/SectionColumn.vue.js";
19
+ import G from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
20
+ import J from "../../test-request-button/TestRequestButton.vue.js";
21
+ import K from "../../example-responses/ExampleResponses.vue.js";
22
+ const Q = { class: "operation-details" }, X = { class: "examples" }, be = /* @__PURE__ */ V({
22
23
  __name: "ModernLayout",
23
24
  props: {
24
25
  id: {},
25
26
  path: {},
26
27
  method: {},
27
28
  operation: {},
29
+ oldOperation: {},
28
30
  isWebhook: { type: Boolean },
29
- collection: {},
31
+ securitySchemes: {},
30
32
  server: {},
31
- request: {},
32
33
  schemas: {}
33
34
  },
34
35
  emits: ["update:modelValue"],
35
- setup(d, { emit: w }) {
36
- const u = N(() => {
37
- var e;
38
- return ((e = d.operation) == null ? void 0 : e.summary) || d.path || "";
39
- }), T = w, c = O(), E = z(), f = (e) => {
40
- T("update:modelValue", e);
36
+ setup(d, { emit: v }) {
37
+ const p = w(() => d.operation.summary || d.path || ""), C = v, u = q(), { workspace: B } = z(), O = $(), c = (e) => {
38
+ C("update:modelValue", e);
41
39
  };
42
- return (e, h) => (s(), l(o(U), {
40
+ return (e, h) => (s(), r(o(A), {
43
41
  id: e.id,
44
- "aria-labelledby": o(c),
45
- label: u.value,
42
+ "aria-labelledby": o(u),
43
+ label: p.value,
46
44
  tabindex: "-1"
47
45
  }, {
48
46
  default: t(() => [
49
- a(o(j), {
50
- loading: o(E).isLoading
47
+ a(o(H), {
48
+ loading: o(O).isLoading
51
49
  }, {
52
50
  default: t(() => [
53
- o(C)(e.operation) ? (s(), l(o(B), {
51
+ o(S)(e.operation) ? (s(), r(o(g), {
54
52
  key: 0,
55
- class: S(["capitalize", o(P)(e.operation)])
53
+ class: y(["capitalize", o(I)(e.operation)])
56
54
  }, {
57
55
  default: t(() => [
58
- m(q(o(C)(e.operation)), 1)
56
+ n(b(o(S)(e.operation)), 1)
59
57
  ]),
60
58
  _: 1
61
- }, 8, ["class"])) : i("", !0),
62
- e.isWebhook ? (s(), l(o(B), {
59
+ }, 8, ["class"])) : l("", !0),
60
+ e.isWebhook ? (s(), r(o(g), {
63
61
  key: 1,
64
62
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
65
63
  }, {
66
64
  default: t(() => [
67
- a(o(L), { weight: "bold" }),
68
- h[0] || (h[0] = m("Webhook "))
65
+ a(o(E), { weight: "bold" }),
66
+ h[0] || (h[0] = n("Webhook "))
69
67
  ]),
70
- _: 1
71
- })) : i("", !0),
72
- n("div", {
73
- class: S(o(R)(e.operation) ? "deprecated" : "")
68
+ _: 1,
69
+ __: [0]
70
+ })) : l("", !0),
71
+ i("div", {
72
+ class: y(o(N)(e.operation) ? "deprecated" : "")
74
73
  }, [
75
- a(o(F), null, {
74
+ a(o(M), null, {
76
75
  default: t(() => [
77
- a(o(G), { id: e.id }, {
76
+ a(o(U), { id: e.id }, {
78
77
  default: t(() => [
79
- a(o(J), {
80
- id: o(c),
78
+ a(o(j), {
79
+ id: o(u),
81
80
  level: 3
82
81
  }, {
83
82
  default: t(() => [
84
- m(q(u.value), 1)
83
+ n(b(p.value), 1)
85
84
  ]),
86
85
  _: 1
87
86
  }, 8, ["id"])
@@ -92,97 +91,94 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
92
91
  _: 1
93
92
  })
94
93
  ], 2),
95
- a(o(K), null, {
94
+ a(o(F), null, {
96
95
  default: t(() => [
97
- a(o(V), null, {
98
- default: t(() => {
99
- var r, b, y, g;
100
- return [
101
- n("div", Z, [
102
- a(o(D), {
103
- value: (r = e.operation) == null ? void 0 : r.description,
104
- withImages: "",
105
- withAnchors: "",
106
- transformType: "heading",
107
- anchorPrefix: e.id
108
- }, null, 8, ["value", "anchorPrefix"]),
109
- a(H, {
110
- parameters: (b = e.operation) == null ? void 0 : b.parameters,
111
- requestBody: (y = e.operation) == null ? void 0 : y.requestBody,
112
- schemas: e.schemas,
113
- "onUpdate:modelValue": f
114
- }, null, 8, ["parameters", "requestBody", "schemas"]),
115
- a(M, {
116
- responses: (g = e.operation) == null ? void 0 : g.responses,
117
- schemas: e.schemas
118
- }, null, 8, ["responses", "schemas"]),
119
- a(o(p), null, {
120
- default: t(() => {
121
- var k, v;
122
- return [
123
- (k = e.operation) != null && k.callbacks ? (s(), l(A, {
124
- key: 0,
125
- callbacks: (v = e.operation) == null ? void 0 : v.callbacks,
126
- collection: e.collection,
127
- schemas: e.schemas
128
- }, null, 8, ["callbacks", "collection", "schemas"])) : i("", !0)
129
- ];
130
- }),
131
- _: 1
132
- })
133
- ])
134
- ];
135
- }),
96
+ a(o(k), null, {
97
+ default: t(() => [
98
+ i("div", Q, [
99
+ a(o(W), {
100
+ value: e.operation.description,
101
+ withImages: "",
102
+ withAnchors: "",
103
+ transformType: "heading",
104
+ anchorPrefix: e.id
105
+ }, null, 8, ["value", "anchorPrefix"]),
106
+ a(P, {
107
+ parameters: e.oldOperation.parameters,
108
+ requestBody: e.oldOperation.requestBody,
109
+ schemas: e.schemas,
110
+ "onUpdate:modelValue": c
111
+ }, null, 8, ["parameters", "requestBody", "schemas"]),
112
+ a(R, {
113
+ responses: e.oldOperation.responses,
114
+ schemas: e.schemas
115
+ }, null, 8, ["responses", "schemas"]),
116
+ a(o(m), null, {
117
+ default: t(() => [
118
+ e.operation.callbacks ? (s(), r(L, {
119
+ key: 0,
120
+ class: "mt-6",
121
+ path: e.path,
122
+ callbacks: e.operation.callbacks,
123
+ method: e.method,
124
+ schemas: e.schemas
125
+ }, null, 8, ["path", "callbacks", "method", "schemas"])) : l("", !0)
126
+ ]),
127
+ _: 1
128
+ })
129
+ ])
130
+ ]),
136
131
  _: 1
137
132
  }),
138
- a(o(V), null, {
133
+ a(o(k), null, {
139
134
  default: t(() => [
140
- n("div", _, [
141
- a(o(p), null, {
135
+ i("div", X, [
136
+ a(o(m), null, {
142
137
  default: t(() => [
143
- a(o(Q), {
144
- request: e.request,
138
+ a(o(G), {
145
139
  method: e.method,
146
- collection: e.collection,
140
+ selectedServer: e.server,
141
+ securitySchemes: e.securitySchemes,
142
+ selectedClient: o(B)["x-scalar-default-client"],
143
+ path: e.path,
147
144
  fallback: "",
148
145
  operation: e.operation,
149
- server: e.server,
150
146
  schemas: e.schemas,
151
- "onUpdate:modelValue": f
152
- }, W({
147
+ "onUpdate:modelValue": c
148
+ }, T({
153
149
  header: t(() => {
154
- var r;
150
+ var f;
155
151
  return [
156
- a($, {
152
+ a(D, {
157
153
  class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
158
- deprecated: (r = e.operation) == null ? void 0 : r.deprecated,
154
+ deprecated: (f = e.operation) == null ? void 0 : f.deprecated,
159
155
  path: e.path
160
156
  }, null, 8, ["deprecated", "path"])
161
157
  ];
162
158
  }),
163
159
  _: 2
164
160
  }, [
165
- e.request ? {
161
+ e.isWebhook ? void 0 : {
166
162
  name: "footer",
167
163
  fn: t(() => [
168
- a(o(X), { operation: e.request }, null, 8, ["operation"])
164
+ a(o(J), {
165
+ method: e.method,
166
+ path: e.path
167
+ }, null, 8, ["method", "path"])
169
168
  ]),
170
169
  key: "0"
171
- } : void 0
172
- ]), 1032, ["request", "method", "collection", "operation", "server", "schemas"])
170
+ }
171
+ ]), 1032, ["method", "selectedServer", "securitySchemes", "selectedClient", "path", "operation", "schemas"])
173
172
  ]),
174
173
  _: 1
175
174
  }),
176
- a(o(p), null, {
177
- default: t(() => {
178
- var r;
179
- return [
180
- a(o(Y), {
181
- responses: (r = e.operation) == null ? void 0 : r.responses,
182
- style: { "margin-top": "12px" }
183
- }, null, 8, ["responses"])
184
- ];
185
- }),
175
+ a(o(m), null, {
176
+ default: t(() => [
177
+ a(o(K), {
178
+ responses: e.operation.responses,
179
+ style: { "margin-top": "12px" }
180
+ }, null, 8, ["responses"])
181
+ ]),
186
182
  _: 1
187
183
  })
188
184
  ])
@@ -201,5 +197,5 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
201
197
  }
202
198
  });
203
199
  export {
204
- ke as default
200
+ be as default
205
201
  };
@@ -50,7 +50,8 @@ const $ = /* @__PURE__ */ k({
50
50
  class: "sidebar-search-placeholder"
51
51
  }, " Search ", -1))
52
52
  ]),
53
- _: 1
53
+ _: 1,
54
+ __: [2, 3]
54
55
  }, 8, ["class"]),
55
56
  u(g, {
56
57
  modalState: l(t),
@@ -1 +1 @@
1
- {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"AA8SA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAU3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAgBhD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;AA8ZF,wBAOG"}
1
+ {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"AAoTA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAU3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAgBhD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;AAoaF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SearchModal.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-92d07cc9"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6fcd2762"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -7,8 +7,8 @@ import { nanoid as le } from "nanoid";
7
7
  import { lazyBus as ie } from "../../components/Content/Lazy/lazyBus.js";
8
8
  import { useSearchIndex as ce } from "./useSearchIndex.js";
9
9
  import de from "../sidebar/components/SidebarHttpBadge.vue.js";
10
- import { useSidebar as me } from "../sidebar/hooks/useSidebar.js";
11
- const ue = { class: "sr-only" }, pe = { class: "inline-flex items-center gap-1" }, fe = { class: "sr-only" }, Be = /* @__PURE__ */ Y({
10
+ import { useSidebar as ue } from "../sidebar/hooks/useSidebar.js";
11
+ const me = { class: "sr-only" }, pe = { class: "inline-flex items-center gap-1" }, fe = { class: "sr-only" }, Be = /* @__PURE__ */ Y({
12
12
  __name: "SearchModal",
13
13
  props: {
14
14
  parsedSpec: {},
@@ -16,16 +16,16 @@ const ue = { class: "sr-only" }, pe = { class: "inline-flex items-center gap-1"
16
16
  hideModels: { type: Boolean }
17
17
  },
18
18
  setup(q) {
19
- const m = q, D = _(m, "parsedSpec"), S = le(), k = `${S}-search-result`, x = `${S}-search-instructions`, v = (o) => `${S}${o}`, {
19
+ const u = q, D = _(u, "parsedSpec"), S = le(), k = `${S}-search-result`, x = `${S}-search-instructions`, v = (o) => `${S}${o}`, {
20
20
  resetSearch: F,
21
21
  fuseSearch: H,
22
22
  selectedSearchIndex: r,
23
23
  selectedSearchResult: B,
24
- searchResultsWithPlaceholderResults: u,
24
+ searchResultsWithPlaceholderResults: m,
25
25
  searchText: f
26
26
  } = ce({
27
27
  specification: D,
28
- hideModels: m.hideModels
28
+ hideModels: u.hideModels
29
29
  }), P = {
30
30
  heading: re,
31
31
  model: ne,
@@ -40,22 +40,22 @@ const ue = { class: "sr-only" }, pe = { class: "inline-flex items-center gap-1"
40
40
  webhook: "Webhook"
41
41
  }, K = j(null);
42
42
  M(
43
- () => m.modalState.open,
43
+ () => u.modalState.open,
44
44
  (o) => {
45
45
  o && F();
46
46
  }
47
47
  );
48
- const { setCollapsedSidebarItem: W } = me(), z = /#(tag\/[^/]*)/;
48
+ const { setCollapsedSidebarItem: W } = ue(), z = /#(tag\/[^/]*)/;
49
49
  function T(o) {
50
50
  let t = "models";
51
51
  const e = o.item.href.match(z);
52
52
  e != null && e.length && e.length > 1 && (t = e[1]), W(t, !0);
53
53
  const s = o.item.href.replace("#", "");
54
54
  if (document.getElementById(s))
55
- N(s), m.modalState.hide();
55
+ N(s), u.modalState.hide();
56
56
  else {
57
57
  const l = ie.on((h) => {
58
- h.id === s && (N(s), l(), m.modalState.hide());
58
+ h.id === s && (N(s), l(), u.modalState.hide());
59
59
  });
60
60
  }
61
61
  }
@@ -63,14 +63,14 @@ const ue = { class: "sr-only" }, pe = { class: "inline-flex items-center gap-1"
63
63
  var s;
64
64
  if (typeof o != "number")
65
65
  return;
66
- const t = u.value[o], e = v(t == null ? void 0 : t.item.href);
66
+ const t = m.value[o], e = v(t == null ? void 0 : t.item.href);
67
67
  (s = document.getElementById(e)) == null || s.scrollIntoView({
68
68
  behavior: "smooth",
69
69
  block: "nearest"
70
70
  });
71
71
  });
72
72
  const V = (o) => {
73
- const t = o === "up" ? -1 : 1, e = u.value.length;
73
+ const t = o === "up" ? -1 : 1, e = m.value.length;
74
74
  if (typeof r.value == "number") {
75
75
  const s = (r.value + t + e) % e;
76
76
  r.value = s;
@@ -84,8 +84,8 @@ const ue = { class: "sr-only" }, pe = { class: "inline-flex items-center gap-1"
84
84
  function O() {
85
85
  if (!ae(r.value))
86
86
  return;
87
- const o = u.value;
88
- T(o[r.value]);
87
+ const o = m.value;
88
+ o.length !== 0 && T(o[r.value]);
89
89
  }
90
90
  return (o, t) => (p(), $(n(Z), {
91
91
  "aria-label": "Reference Search",
@@ -120,13 +120,13 @@ const ue = { class: "sr-only" }, pe = { class: "inline-flex items-center gap-1"
120
120
  id: k,
121
121
  "aria-label": "Reference Search Results",
122
122
  class: "ref-search-results custom-scroll",
123
- noResults: !n(u).length
123
+ noResults: !n(m).length
124
124
  }, {
125
125
  query: i(() => [
126
126
  c(d(n(f)), 1)
127
127
  ]),
128
128
  default: i(() => [
129
- (p(!0), R(w, null, J(n(u), (e, s) => (p(), $(n(oe), {
129
+ (p(!0), R(w, null, J(n(m), (e, s) => (p(), $(n(oe), {
130
130
  id: v(e.item.href),
131
131
  key: e.refIndex,
132
132
  href: A(e.item.href),
@@ -143,7 +143,7 @@ const ue = { class: "sr-only" }, pe = { class: "inline-flex items-center gap-1"
143
143
  deprecated: (h = (l = e.item.operation) == null ? void 0 : l.information) == null ? void 0 : h.deprecated
144
144
  })
145
145
  }, [
146
- a("span", ue, [
146
+ a("span", me, [
147
147
  c(d(U[e.item.type]) + ":  ", 1),
148
148
  (C = (y = e.item.operation) == null ? void 0 : y.information) != null && C.deprecated ? (p(), R(w, { key: 0 }, [
149
149
  c(" (Deprecated)  ")