@scalar/api-reference 1.25.127 → 1.25.130

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 (128) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/dist/browser/standalone.js +13272 -13158
  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 +40 -64
  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 +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +158 -159
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +69 -17
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +5 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  16. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +73 -94
  17. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +16 -0
  18. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -0
  19. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +36 -0
  20. package/dist/components/Content/Lazy/Loading.vue.js +15 -15
  21. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  23. package/dist/components/Content/Schema/Schema.vue2.js +4 -1
  24. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  25. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  26. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  27. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  29. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +143 -124
  30. package/dist/components/Content/Tag/{Endpoints.vue.d.ts → OperationsList.vue.d.ts} +1 -3
  31. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -0
  32. package/dist/components/Content/Tag/OperationsList.vue.js +7 -0
  33. package/dist/components/Content/Tag/OperationsList.vue2.js +62 -0
  34. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +9 -0
  35. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -0
  36. package/dist/components/Content/Tag/OperationsListItem.vue.js +7 -0
  37. package/dist/components/Content/Tag/OperationsListItem.vue2.js +66 -0
  38. package/dist/components/Content/Tag/Tag.vue.d.ts +4 -64
  39. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Tag/Tag.vue.js +87 -5
  41. package/dist/components/Content/Tag/Tag.vue2.js +2 -63
  42. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/TagList.vue.js +11 -11
  44. package/dist/components/Content/Tag/TagSection.vue.d.ts +70 -0
  45. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -0
  46. package/dist/components/Content/Tag/TagSection.vue.js +7 -0
  47. package/dist/components/Content/Tag/TagSection.vue2.js +65 -0
  48. package/dist/components/Content/Tag/index.d.ts +1 -2
  49. package/dist/components/Content/Tag/index.d.ts.map +1 -1
  50. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  51. package/dist/components/GettingStarted.vue.js +1 -1
  52. package/dist/components/GettingStarted.vue2.js +13 -13
  53. package/dist/components/Layouts/ClassicLayout.vue.d.ts +3 -3
  54. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  55. package/dist/components/Layouts/Layouts.vue.d.ts +3 -3
  56. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
  57. package/dist/components/Layouts/ModernLayout.vue.d.ts +3 -3
  58. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  59. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  60. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  61. package/dist/components/Section/CompactSection.vue.js +2 -2
  62. package/dist/components/Section/CompactSection.vue2.js +30 -29
  63. package/dist/esm.d.ts +5 -3
  64. package/dist/esm.d.ts.map +1 -1
  65. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
  66. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  67. package/dist/features/ApiClientModal/useApiClient.d.ts +386 -346
  68. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  69. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  70. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  71. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +82 -74
  72. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
  73. package/dist/features/ExampleResponses/ExampleResponse.vue.js +2 -2
  74. package/dist/features/ExampleResponses/ExampleResponse.vue2.js +11 -11
  75. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  76. package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
  77. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +90 -78
  78. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +1 -1
  79. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  80. package/dist/features/Operation/components/ContentTypeSelect.vue.js +1 -1
  81. package/dist/features/Operation/components/ContentTypeSelect.vue2.js +29 -25
  82. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  83. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  84. package/dist/features/Operation/components/ParameterListItem.vue2.js +40 -47
  85. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  86. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  87. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  89. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +54 -54
  90. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  92. package/dist/features/Operation/layouts/ModernLayout.vue2.js +65 -67
  93. package/dist/helpers/get-request.d.ts +2 -1
  94. package/dist/helpers/get-request.d.ts.map +1 -1
  95. package/dist/helpers/index.d.ts +0 -1
  96. package/dist/helpers/index.d.ts.map +1 -1
  97. package/dist/hooks/index.d.ts +0 -1
  98. package/dist/hooks/index.d.ts.map +1 -1
  99. package/dist/hooks/useConfig.d.ts +3 -3
  100. package/dist/hooks/useConfig.d.ts.map +1 -1
  101. package/dist/hooks/useConfig.js +5 -4
  102. package/dist/hooks/useReactiveSpec.d.ts +8 -8
  103. package/dist/hooks/useSidebar.d.ts.map +1 -1
  104. package/dist/hooks/useSidebar.js +126 -116
  105. package/dist/index.js +56 -62
  106. package/dist/libs/operation.d.ts +15 -0
  107. package/dist/libs/operation.d.ts.map +1 -0
  108. package/dist/libs/operation.js +16 -0
  109. package/dist/standalone/lib/html-api.d.ts +3 -3
  110. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  111. package/dist/stores/useHttpClientStore.d.ts +1 -1
  112. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  113. package/dist/style.css +1 -1
  114. package/dist/types.d.ts +20 -3
  115. package/dist/types.d.ts.map +1 -1
  116. package/package.json +13 -13
  117. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +0 -1
  118. package/dist/components/Content/Tag/Endpoints.vue.js +0 -7
  119. package/dist/components/Content/Tag/Endpoints.vue2.js +0 -161
  120. package/dist/helpers/operation.d.ts +0 -14
  121. package/dist/helpers/operation.d.ts.map +0 -1
  122. package/dist/helpers/operation.js +0 -18
  123. package/dist/hooks/useDeprecationWarnings.d.ts +0 -6
  124. package/dist/hooks/useDeprecationWarnings.d.ts.map +0 -1
  125. package/dist/hooks/useDeprecationWarnings.js +0 -20
  126. package/dist/standalone/lib/html-rendering.d.ts +0 -51
  127. package/dist/standalone/lib/html-rendering.d.ts.map +0 -1
  128. package/dist/standalone/lib/html-rendering.js +0 -54
@@ -1,31 +1,32 @@
1
- import { defineComponent as S, openBlock as u, createElementBlock as n, renderSlot as A, Fragment as m, createTextVNode as l, createCommentVNode as r, toDisplayString as i, createVNode as v, unref as f, withCtx as t, createBlock as d, renderList as V } from "vue";
1
+ import { defineComponent as V, openBlock as t, createElementBlock as n, renderSlot as w, Fragment as m, createTextVNode as u, createCommentVNode as a, toDisplayString as i, createVNode as v, unref as f, withCtx as r, createBlock as d, renderList as $ } from "vue";
2
+ import k from "../../ScreenReader.vue.js";
2
3
  import o from "./SchemaPropertyDetail.vue.js";
3
- import k from "../../Badge/Badge.vue.js";
4
- const $ = { class: "property-heading" }, C = {
4
+ import g from "../../Badge/Badge.vue.js";
5
+ const C = { class: "property-heading" }, D = {
5
6
  key: 0,
6
7
  class: "property-name"
7
- }, D = {
8
+ }, F = {
8
9
  key: 1,
9
10
  class: "property-additional"
10
- }, j = {
11
+ }, T = {
11
12
  key: 2,
12
13
  class: "property-pattern"
13
- }, E = {
14
+ }, j = {
14
15
  key: 3,
15
16
  class: "property-deprecated"
16
- }, F = {
17
+ }, E = {
17
18
  key: 4,
18
19
  class: "property-const"
19
20
  }, H = {
20
21
  key: 7,
21
22
  class: "property-write-only"
22
- }, T = {
23
+ }, R = {
23
24
  key: 8,
24
25
  class: "property-read-only"
25
26
  }, z = {
26
27
  key: 9,
27
28
  class: "property-required"
28
- }, R = /* @__PURE__ */ S({
29
+ }, W = /* @__PURE__ */ V({
29
30
  __name: "SchemaPropertyHeading",
30
31
  props: {
31
32
  value: {},
@@ -35,191 +36,209 @@ const $ = { class: "property-heading" }, C = {
35
36
  pattern: { type: Boolean }
36
37
  },
37
38
  setup(G) {
38
- const M = ["oneOf", "anyOf", "allOf", "not"], P = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
39
- return (e, a) => {
40
- var g, B, q, I, L, N, O, b;
41
- return u(), n("div", $, [
42
- e.$slots.name ? (u(), n("div", C, [
43
- e.pattern ? (u(), n(m, { key: 1 }, [
44
- a[0] || (a[0] = l("/")),
45
- A(e.$slots, "name", {}, void 0, !0),
46
- a[1] || (a[1] = l("/"))
47
- ], 64)) : A(e.$slots, "name", { key: 0 }, void 0, !0)
48
- ])) : r("", !0),
49
- e.additional ? (u(), n("div", D, [
50
- (g = e.value) != null && g["x-additionalPropertiesName"] ? (u(), n(m, { key: 0 }, [
51
- l(i(e.value["x-additionalPropertiesName"]), 1)
52
- ], 64)) : (u(), n(m, { key: 1 }, [
53
- l("additional properties")
39
+ const A = ["oneOf", "anyOf", "allOf", "not"], M = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
40
+ return (e, l) => {
41
+ var B, q, I, L, N, O, P, S;
42
+ return t(), n("div", C, [
43
+ e.$slots.name ? (t(), n("div", D, [
44
+ e.pattern ? (t(), n(m, { key: 1 }, [
45
+ l[0] || (l[0] = u("/")),
46
+ w(e.$slots, "name", {}, void 0, !0),
47
+ l[1] || (l[1] = u("/"))
48
+ ], 64)) : w(e.$slots, "name", { key: 0 }, void 0, !0)
49
+ ])) : a("", !0),
50
+ e.additional ? (t(), n("div", F, [
51
+ (B = e.value) != null && B["x-additionalPropertiesName"] ? (t(), n(m, { key: 0 }, [
52
+ u(i(e.value["x-additionalPropertiesName"]), 1)
53
+ ], 64)) : (t(), n(m, { key: 1 }, [
54
+ u("additional properties")
54
55
  ], 64))
55
- ])) : r("", !0),
56
- e.pattern ? (u(), n("div", j, [
57
- v(f(k), null, {
58
- default: t(() => a[2] || (a[2] = [
59
- l("pattern")
56
+ ])) : a("", !0),
57
+ e.pattern ? (t(), n("div", T, [
58
+ v(f(g), null, {
59
+ default: r(() => l[2] || (l[2] = [
60
+ u("pattern")
60
61
  ])),
61
62
  _: 1
62
63
  })
63
- ])) : r("", !0),
64
- (B = e.value) != null && B.deprecated ? (u(), n("div", E, [
65
- v(f(k), null, {
66
- default: t(() => a[3] || (a[3] = [
67
- l("deprecated")
64
+ ])) : a("", !0),
65
+ (q = e.value) != null && q.deprecated ? (t(), n("div", j, [
66
+ v(f(g), null, {
67
+ default: r(() => l[3] || (l[3] = [
68
+ u("deprecated")
68
69
  ])),
69
70
  _: 1
70
71
  })
71
- ])) : r("", !0),
72
- (q = e.value) != null && q.const || (I = e.value) != null && I.enum && e.value.enum.length === 1 ? (u(), n("div", F, [
72
+ ])) : a("", !0),
73
+ (I = e.value) != null && I.const || (L = e.value) != null && L.enum && e.value.enum.length === 1 ? (t(), n("div", E, [
73
74
  v(o, { truncate: "" }, {
74
- prefix: t(() => a[4] || (a[4] = [
75
- l("const:")
75
+ prefix: r(() => l[4] || (l[4] = [
76
+ u("const:")
76
77
  ])),
77
- default: t(() => [
78
- l(" " + i(e.value.const ?? e.value.enum[0]), 1)
78
+ default: r(() => [
79
+ u(" " + i(e.value.const ?? e.value.enum[0]), 1)
79
80
  ]),
80
81
  _: 1
81
82
  })
82
- ])) : (L = e.value) != null && L.type ? (u(), n(m, { key: 5 }, [
83
+ ])) : (N = e.value) != null && N.type ? (t(), n(m, { key: 5 }, [
83
84
  v(o, null, {
84
- default: t(() => {
85
+ default: r(() => {
85
86
  var s, p, y;
86
87
  return [
87
- (p = (s = e.value) == null ? void 0 : s.items) != null && p.type ? (u(), n(m, { key: 0 }, [
88
- l(i(e.value.type) + " " + i(e.value.items.type) + "[] ", 1)
89
- ], 64)) : (u(), n(m, { key: 1 }, [
90
- l(i(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + i((y = e.value) != null && y.nullable ? " | nullable" : ""), 1)
88
+ v(k, null, {
89
+ default: r(() => l[5] || (l[5] = [
90
+ u("Type:")
91
+ ])),
92
+ _: 1
93
+ }),
94
+ (p = (s = e.value) == null ? void 0 : s.items) != null && p.type ? (t(), n(m, { key: 0 }, [
95
+ u(i(e.value.type) + " " + i(e.value.items.type) + "[] ", 1)
96
+ ], 64)) : (t(), n(m, { key: 1 }, [
97
+ u(i(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + i((y = e.value) != null && y.nullable ? " | nullable" : ""), 1)
91
98
  ], 64)),
92
- e.value.minItems || e.value.maxItems ? (u(), n(m, { key: 2 }, [
93
- l(i(e.value.minItems) + "…" + i(e.value.maxItems), 1)
94
- ], 64)) : r("", !0)
99
+ e.value.minItems || e.value.maxItems ? (t(), n(m, { key: 2 }, [
100
+ u(i(e.value.minItems) + "…" + i(e.value.maxItems), 1)
101
+ ], 64)) : a("", !0)
95
102
  ];
96
103
  }),
97
104
  _: 1
98
105
  }),
99
- e.value.minLength ? (u(), d(o, { key: 0 }, {
100
- prefix: t(() => a[5] || (a[5] = [
101
- l("min:")
106
+ e.value.minLength ? (t(), d(o, { key: 0 }, {
107
+ prefix: r(() => l[6] || (l[6] = [
108
+ u("min:")
102
109
  ])),
103
- default: t(() => [
104
- l(" " + i(e.value.minLength), 1)
110
+ default: r(() => [
111
+ u(" " + i(e.value.minLength), 1)
105
112
  ]),
106
113
  _: 1
107
- })) : r("", !0),
108
- e.value.maxLength ? (u(), d(o, { key: 1 }, {
109
- prefix: t(() => a[6] || (a[6] = [
110
- l("max:")
114
+ })) : a("", !0),
115
+ e.value.maxLength ? (t(), d(o, { key: 1 }, {
116
+ prefix: r(() => l[7] || (l[7] = [
117
+ u("max:")
111
118
  ])),
112
- default: t(() => [
113
- l(" " + i(e.value.maxLength), 1)
119
+ default: r(() => [
120
+ u(" " + i(e.value.maxLength), 1)
114
121
  ]),
115
122
  _: 1
116
- })) : r("", !0),
117
- e.value.uniqueItems ? (u(), d(o, { key: 2 }, {
118
- default: t(() => a[7] || (a[7] = [
119
- l(" unique! ")
123
+ })) : a("", !0),
124
+ e.value.uniqueItems ? (t(), d(o, { key: 2 }, {
125
+ default: r(() => l[8] || (l[8] = [
126
+ u(" unique! ")
120
127
  ])),
121
128
  _: 1
122
- })) : r("", !0),
123
- e.value.format ? (u(), d(o, { key: 3 }, {
124
- default: t(() => [
125
- l(i(e.value.format), 1)
129
+ })) : a("", !0),
130
+ e.value.format ? (t(), d(o, { key: 3 }, {
131
+ default: r(() => [
132
+ v(k, null, {
133
+ default: r(() => l[9] || (l[9] = [
134
+ u("Format:")
135
+ ])),
136
+ _: 1
137
+ }),
138
+ u(" " + i(e.value.format), 1)
126
139
  ]),
127
140
  _: 1
128
- })) : r("", !0),
129
- e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (u(), d(o, { key: 4 }, {
130
- prefix: t(() => a[8] || (a[8] = [
131
- l("greater than:")
141
+ })) : a("", !0),
142
+ e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (t(), d(o, { key: 4 }, {
143
+ prefix: r(() => l[10] || (l[10] = [
144
+ u("greater than:")
132
145
  ])),
133
- default: t(() => [
134
- l(" " + i(e.value.minimum), 1)
146
+ default: r(() => [
147
+ u(" " + i(e.value.minimum), 1)
135
148
  ]),
136
149
  _: 1
137
- })) : r("", !0),
138
- e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (u(), d(o, { key: 5 }, {
139
- prefix: t(() => a[9] || (a[9] = [
140
- l("min:")
150
+ })) : a("", !0),
151
+ e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (t(), d(o, { key: 5 }, {
152
+ prefix: r(() => l[11] || (l[11] = [
153
+ u("min:")
141
154
  ])),
142
- default: t(() => [
143
- l(" " + i(e.value.minimum), 1)
155
+ default: r(() => [
156
+ u(" " + i(e.value.minimum), 1)
144
157
  ]),
145
158
  _: 1
146
- })) : r("", !0),
147
- e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (u(), d(o, { key: 6 }, {
148
- prefix: t(() => a[10] || (a[10] = [
149
- l("less than:")
159
+ })) : a("", !0),
160
+ e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (t(), d(o, { key: 6 }, {
161
+ prefix: r(() => l[12] || (l[12] = [
162
+ u("less than:")
150
163
  ])),
151
- default: t(() => [
152
- l(" " + i(e.value.maximum), 1)
164
+ default: r(() => [
165
+ u(" " + i(e.value.maximum), 1)
153
166
  ]),
154
167
  _: 1
155
- })) : r("", !0),
156
- e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (u(), d(o, { key: 7 }, {
157
- prefix: t(() => a[11] || (a[11] = [
158
- l("max:")
168
+ })) : a("", !0),
169
+ e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (t(), d(o, { key: 7 }, {
170
+ prefix: r(() => l[13] || (l[13] = [
171
+ u("max:")
159
172
  ])),
160
- default: t(() => [
161
- l(" " + i(e.value.maximum), 1)
173
+ default: r(() => [
174
+ u(" " + i(e.value.maximum), 1)
162
175
  ]),
163
176
  _: 1
164
- })) : r("", !0),
165
- e.value.pattern ? (u(), d(o, {
177
+ })) : a("", !0),
178
+ e.value.pattern ? (t(), d(o, {
166
179
  key: 8,
167
180
  code: "",
168
181
  truncate: ""
169
182
  }, {
170
- default: t(() => [
171
- l(i(e.value.pattern), 1)
183
+ default: r(() => [
184
+ v(k, null, {
185
+ default: r(() => l[14] || (l[14] = [
186
+ u("Pattern:")
187
+ ])),
188
+ _: 1
189
+ }),
190
+ u(" " + i(e.value.pattern), 1)
172
191
  ]),
173
192
  _: 1
174
- })) : r("", !0),
175
- e.$props.enum ? (u(), d(o, { key: 9 }, {
176
- default: t(() => a[12] || (a[12] = [
177
- l("enum")
193
+ })) : a("", !0),
194
+ e.$props.enum ? (t(), d(o, { key: 9 }, {
195
+ default: r(() => l[15] || (l[15] = [
196
+ u("enum")
178
197
  ])),
179
198
  _: 1
180
- })) : r("", !0),
181
- e.value.default !== void 0 ? (u(), d(o, {
199
+ })) : a("", !0),
200
+ e.value.default !== void 0 ? (t(), d(o, {
182
201
  key: 10,
183
202
  truncate: ""
184
203
  }, {
185
- prefix: t(() => a[13] || (a[13] = [
186
- l("default:")
204
+ prefix: r(() => l[16] || (l[16] = [
205
+ u("default:")
187
206
  ])),
188
- default: t(() => [
189
- l(" " + i(P(e.value)), 1)
207
+ default: r(() => [
208
+ u(" " + i(M(e.value)), 1)
190
209
  ]),
191
210
  _: 1
192
- })) : r("", !0)
193
- ], 64)) : (u(), n(m, { key: 6 }, [
194
- ((N = e.value) == null ? void 0 : N.nullable) === !0 ? (u(), d(o, { key: 0 }, {
195
- default: t(() => a[14] || (a[14] = [
196
- l(" nullable ")
211
+ })) : a("", !0)
212
+ ], 64)) : (t(), n(m, { key: 6 }, [
213
+ ((O = e.value) == null ? void 0 : O.nullable) === !0 ? (t(), d(o, { key: 0 }, {
214
+ default: r(() => l[17] || (l[17] = [
215
+ u(" nullable ")
197
216
  ])),
198
217
  _: 1
199
- })) : r("", !0)
218
+ })) : a("", !0)
200
219
  ], 64)),
201
- (O = e.value) != null && O.writeOnly ? (u(), n("div", H, " write-only ")) : (b = e.value) != null && b.readOnly ? (u(), n("div", T, " read-only ")) : r("", !0),
202
- (u(!0), n(m, null, V(M.filter(
220
+ (P = e.value) != null && P.writeOnly ? (t(), n("div", H, " write-only ")) : (S = e.value) != null && S.readOnly ? (t(), n("div", R, " read-only ")) : a("", !0),
221
+ (t(!0), n(m, null, $(A.filter(
203
222
  (s) => {
204
- var p, y, w;
205
- return ((p = e.value) == null ? void 0 : p[s]) || ((w = (y = e.value) == null ? void 0 : y.items) == null ? void 0 : w[s]);
223
+ var p, y, b;
224
+ return ((p = e.value) == null ? void 0 : p[s]) || ((b = (y = e.value) == null ? void 0 : y.items) == null ? void 0 : b[s]);
206
225
  }
207
226
  ), (s) => {
208
227
  var p, y;
209
- return u(), n(m, { key: s }, [
210
- ((y = (p = e.value) == null ? void 0 : p[s]) == null ? void 0 : y.length) > 1 ? (u(), d(f(k), { key: 0 }, {
211
- default: t(() => [
212
- l(i(s), 1)
228
+ return t(), n(m, { key: s }, [
229
+ ((y = (p = e.value) == null ? void 0 : p[s]) == null ? void 0 : y.length) > 1 ? (t(), d(f(g), { key: 0 }, {
230
+ default: r(() => [
231
+ u(i(s), 1)
213
232
  ]),
214
233
  _: 2
215
- }, 1024)) : r("", !0)
234
+ }, 1024)) : a("", !0)
216
235
  ], 64);
217
236
  }), 128)),
218
- e.required ? (u(), n("div", z, " required ")) : r("", !0)
237
+ e.required ? (t(), n("div", z, " required ")) : a("", !0)
219
238
  ]);
220
239
  };
221
240
  }
222
241
  });
223
242
  export {
224
- R as default
243
+ W as default
225
244
  };
@@ -1,10 +1,8 @@
1
1
  import type { Tag } from '@scalar/types/legacy';
2
2
  type __VLS_Props = {
3
- id?: string;
4
3
  tag: Tag;
5
- headerId?: string;
6
4
  isCollapsed?: boolean;
7
5
  };
8
6
  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>;
9
7
  export default _default;
10
- //# sourceMappingURL=Endpoints.vue.d.ts.map
8
+ //# sourceMappingURL=OperationsList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAW/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAiHF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./OperationsList.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc837dc7"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as f, computed as g, openBlock as r, createBlock as p, unref as t, withCtx as a, createVNode as o, createTextVNode as d, toDisplayString as C, createElementVNode as N, createElementBlock as k, Fragment as y, renderList as O, createCommentVNode as _ } from "vue";
2
+ import B from "../../ScreenReader.vue.js";
3
+ import { useNavState as V } from "../../../hooks/useNavState.js";
4
+ import v from "./OperationsListItem.vue.js";
5
+ import L from "../../Card/Card.vue.js";
6
+ import S from "../../Card/CardHeader.vue.js";
7
+ import b from "../../Card/CardContent.vue.js";
8
+ const h = ["aria-label"], T = /* @__PURE__ */ f({
9
+ __name: "OperationsList",
10
+ props: {
11
+ tag: {},
12
+ isCollapsed: { type: Boolean }
13
+ },
14
+ setup(u) {
15
+ const s = u, { getOperationId: c } = V(), n = g(() => s.tag["x-displayName"] ?? s.tag.name);
16
+ return (e, l) => {
17
+ var i;
18
+ return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (r(), p(t(L), {
19
+ key: 0,
20
+ class: "scalar-card-sticky"
21
+ }, {
22
+ default: a(() => [
23
+ o(t(S), { muted: "" }, {
24
+ default: a(() => [
25
+ o(B, null, {
26
+ default: a(() => [
27
+ d(C(n.value), 1)
28
+ ]),
29
+ _: 1
30
+ }),
31
+ l[0] || (l[0] = d(" Operations "))
32
+ ]),
33
+ _: 1
34
+ }),
35
+ o(t(b), {
36
+ class: "custom-scroll",
37
+ muted: ""
38
+ }, {
39
+ default: a(() => [
40
+ N("ul", {
41
+ "aria-label": `${n.value} endpoints`,
42
+ class: "endpoints"
43
+ }, [
44
+ (r(!0), k(y, null, O(e.tag.operations, (m) => (r(), p(v, {
45
+ key: t(c)(m, e.tag),
46
+ isCollapsed: e.isCollapsed,
47
+ tag: e.tag,
48
+ transformedOperation: m
49
+ }, null, 8, ["isCollapsed", "tag", "transformedOperation"]))), 128))
50
+ ], 8, h)
51
+ ]),
52
+ _: 1
53
+ })
54
+ ]),
55
+ _: 1
56
+ })) : _("", !0);
57
+ };
58
+ }
59
+ });
60
+ export {
61
+ T as default
62
+ };
@@ -0,0 +1,9 @@
1
+ import type { Tag, TransformedOperation } from '@scalar/types/legacy';
2
+ type __VLS_Props = {
3
+ transformedOperation: TransformedOperation;
4
+ tag: Tag;
5
+ isCollapsed?: boolean;
6
+ };
7
+ 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>;
8
+ export default _default;
9
+ //# sourceMappingURL=OperationsListItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAiIA,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAarE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAkJF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import t from "./OperationsListItem.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-a68a4ca6"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,66 @@
1
+ import { defineComponent as u, computed as h, unref as t, openBlock as s, createElementBlock as O, createBlock as g, withCtx as k, createTextVNode as C, toDisplayString as i, createCommentVNode as p, createElementVNode as m, withModifiers as v, createVNode as y, normalizeClass as B } from "vue";
2
+ import { useWorkspace as N } from "@scalar/api-client/store";
3
+ import { getPointer as V } from "../../../blocks/helpers/getPointer.js";
4
+ import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
5
+ import { useNavState as w } from "../../../hooks/useNavState.js";
6
+ import { useSidebar as H } from "../../../hooks/useSidebar.js";
7
+ import { isOperationDeprecated as I } from "../../../libs/operation.js";
8
+ import T from "../../Section/SectionHeaderTag.vue.js";
9
+ import $ from "../../HttpMethod/HttpMethod.vue.js";
10
+ const b = ["href"], F = /* @__PURE__ */ u({
11
+ __name: "OperationsListItem",
12
+ props: {
13
+ transformedOperation: {},
14
+ tag: {},
15
+ isCollapsed: { type: Boolean }
16
+ },
17
+ setup(a) {
18
+ const { getOperationId: n } = w(), { scrollToOperation: l } = H(), d = async (e) => {
19
+ const o = n(e, a.tag);
20
+ l(o);
21
+ }, c = N(), { operation: r } = S({
22
+ store: c,
23
+ location: V([
24
+ "paths",
25
+ a.transformedOperation.path,
26
+ a.transformedOperation.httpVerb.toLowerCase()
27
+ ])
28
+ }), f = h(() => {
29
+ var e, o;
30
+ return ((e = r.value) == null ? void 0 : e.summary) || ((o = r.value) == null ? void 0 : o.path);
31
+ });
32
+ return (e, o) => t(r) ? (s(), O("li", {
33
+ key: t(n)(e.transformedOperation, e.tag),
34
+ class: "contents"
35
+ }, [
36
+ e.isCollapsed ? (s(), g(t(T), {
37
+ key: 0,
38
+ class: "sr-only",
39
+ level: 3
40
+ }, {
41
+ default: k(() => [
42
+ C(i(f.value) + " (Hidden) ", 1)
43
+ ]),
44
+ _: 1
45
+ })) : p("", !0),
46
+ m("a", {
47
+ class: "endpoint",
48
+ href: `#${t(n)(e.transformedOperation, e.tag)}`,
49
+ onClick: o[0] || (o[0] = v((D) => d(e.transformedOperation), ["prevent"]))
50
+ }, [
51
+ y(t($), {
52
+ class: "endpoint-method",
53
+ method: t(r).method
54
+ }, null, 8, ["method"]),
55
+ m("span", {
56
+ class: B(["endpoint-path", {
57
+ deprecated: t(I)(t(r))
58
+ }])
59
+ }, i(t(r).path), 3)
60
+ ], 8, b)
61
+ ])) : p("", !0);
62
+ }
63
+ });
64
+ export {
65
+ F as default
66
+ };
@@ -1,70 +1,10 @@
1
- import type { Spec, Tag } from '@scalar/types/legacy';
2
- import { nextTick } from 'vue';
1
+ import type { Tag } from '@scalar/types/legacy';
3
2
  type __VLS_Props = {
4
3
  id?: string;
5
4
  tag: Tag;
6
- spec: Spec;
5
+ headerId?: string;
6
+ isCollapsed?: boolean;
7
7
  };
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: {
11
- default?(_: {}): any;
12
- };
13
- refs: {
14
- sectionContainerRef: ({
15
- $: import("vue").ComponentInternalInstance;
16
- $data: {};
17
- $props: Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
18
- $attrs: {
19
- [x: string]: unknown;
20
- };
21
- $refs: {
22
- [x: string]: unknown;
23
- };
24
- $slots: Readonly<{
25
- [name: string]: import("vue").Slot<any> | undefined;
26
- }>;
27
- $root: import("vue").ComponentPublicInstance | null;
28
- $parent: import("vue").ComponentPublicInstance | null;
29
- $host: Element | null;
30
- $emit: (event: string, ...args: any[]) => void;
31
- $el: HTMLDivElement;
32
- $options: import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
33
- beforeCreate?: (() => void) | (() => void)[];
34
- created?: (() => void) | (() => void)[];
35
- beforeMount?: (() => void) | (() => void)[];
36
- mounted?: (() => void) | (() => void)[];
37
- beforeUpdate?: (() => void) | (() => void)[];
38
- updated?: (() => void) | (() => void)[];
39
- activated?: (() => void) | (() => void)[];
40
- deactivated?: (() => void) | (() => void)[];
41
- beforeDestroy?: (() => void) | (() => void)[];
42
- beforeUnmount?: (() => void) | (() => void)[];
43
- destroyed?: (() => void) | (() => void)[];
44
- unmounted?: (() => void) | (() => void)[];
45
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
46
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
47
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
48
- };
49
- $forceUpdate: () => void;
50
- $nextTick: typeof nextTick;
51
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
52
- } & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
53
- $slots: {
54
- default?(_: {}): any;
55
- };
56
- }) | null;
57
- contentsRef: HTMLDivElement;
58
- };
59
- rootEl: HTMLDivElement;
60
- };
61
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
62
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
63
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
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>;
64
9
  export default _default;
65
- type __VLS_WithTemplateSlots<T, S> = T & {
66
- new (): {
67
- $slots: S;
68
- };
69
- };
70
10
  //# sourceMappingURL=Tag.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AASpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAgCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4Dk/gB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7CxohB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAmB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA2JF,wBAOG"}