@scalar/api-reference 1.32.9 → 1.32.10

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 (122) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/browser/standalone.js +15115 -14878
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  6. package/dist/components/ApiReferenceLayout.vue2.js +164 -176
  7. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  8. package/dist/components/Badge/Badge.vue.js +3 -3
  9. package/dist/components/Content/Content.vue.js +2 -2
  10. package/dist/components/Content/Content.vue2.js +21 -21
  11. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  15. package/dist/components/Content/Introduction/Introduction.vue2.js +104 -72
  16. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  17. package/dist/components/LinkList/LinkList.vue.d.ts +18 -0
  18. package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -0
  19. package/dist/components/LinkList/LinkList.vue.js +12 -0
  20. package/dist/components/LinkList/index.d.ts +2 -0
  21. package/dist/components/LinkList/index.d.ts.map +1 -0
  22. package/dist/components/Section/SectionHeader.vue.d.ts +1 -0
  23. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  24. package/dist/components/Section/SectionHeader.vue.js +2 -2
  25. package/dist/components/Section/SectionHeader.vue2.js +11 -10
  26. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  27. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  28. package/dist/features/Operation/Operation.vue.js +50 -49
  29. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  30. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  31. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  32. package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
  33. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  34. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  35. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
  36. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
  37. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  38. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  39. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +164 -163
  40. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
  41. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  42. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  43. package/dist/features/Operation/layouts/ModernLayout.vue2.js +111 -118
  44. package/dist/features/api-client-modal/useApiClient.d.ts +5299 -5299
  45. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  46. package/dist/features/base-url/BaseUrl.vue.d.ts.map +1 -1
  47. package/dist/features/base-url/BaseUrl.vue.js +26 -26
  48. package/dist/features/download-link/DownloadLink.vue.js +1 -1
  49. package/dist/features/example-responses/ExampleResponseTab.vue.js +2 -2
  50. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  51. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  52. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  53. package/dist/features/example-responses/ExampleResponses.vue2.js +60 -57
  54. package/dist/features/external-docs/ExternalDocs.vue.d.ts +7 -0
  55. package/dist/features/external-docs/ExternalDocs.vue.d.ts.map +1 -0
  56. package/dist/features/external-docs/ExternalDocs.vue.js +36 -0
  57. package/dist/features/external-docs/ExternalDocs.vue2.js +4 -0
  58. package/dist/features/external-docs/index.d.ts +2 -0
  59. package/dist/features/external-docs/index.d.ts.map +1 -0
  60. package/dist/features/info-object/Contact.vue.d.ts +7 -0
  61. package/dist/features/info-object/Contact.vue.d.ts.map +1 -0
  62. package/dist/features/info-object/Contact.vue.js +44 -0
  63. package/dist/features/info-object/Contact.vue2.js +4 -0
  64. package/dist/features/info-object/License.vue.d.ts +7 -0
  65. package/dist/features/info-object/License.vue.d.ts.map +1 -0
  66. package/dist/features/info-object/License.vue.js +34 -0
  67. package/dist/features/info-object/License.vue2.js +4 -0
  68. package/dist/features/info-object/TermsOfService.vue.d.ts +7 -0
  69. package/dist/features/info-object/TermsOfService.vue.d.ts.map +1 -0
  70. package/dist/features/info-object/TermsOfService.vue.js +30 -0
  71. package/dist/features/info-object/TermsOfService.vue2.js +4 -0
  72. package/dist/features/info-object/index.d.ts +4 -0
  73. package/dist/features/info-object/index.d.ts.map +1 -0
  74. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  75. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  76. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  77. package/dist/features/test-request-button/TestRequestButton.vue2.js +21 -19
  78. package/dist/helpers/convert-security-scheme.js +23 -0
  79. package/dist/index.d.ts +0 -1
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +13 -15
  82. package/dist/style.css +1 -1
  83. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
  84. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  85. package/dist/v2/ApiReferenceWorkspace.vue.js +113 -86
  86. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -2
  87. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  88. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  89. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +69 -0
  90. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  91. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  92. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +227 -0
  93. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +20 -3
  94. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
  95. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  96. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  97. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
  98. package/dist/v2/events/definitions.js +7 -0
  99. package/dist/v2/events/index.d.ts +1 -1
  100. package/dist/v2/events/listeners.d.ts +1 -1
  101. package/dist/v2/hooks/useStore.js +14 -0
  102. package/package.json +11 -11
  103. package/LICENSE +0 -21
  104. package/dist/blocks/constants.js +0 -6
  105. package/dist/blocks/helpers/getPointer.js +0 -12
  106. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  107. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  108. package/dist/blocks/hooks/useBlockProps.js +0 -24
  109. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  110. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  111. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  112. package/dist/features/example-request/ExamplePicker.vue2.js +0 -57
  113. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -85
  114. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  115. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  116. package/dist/features/example-request/ExampleRequest.vue2.js +0 -348
  117. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  118. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  119. package/dist/features/example-request/TextSelect.vue.js +0 -48
  120. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  121. package/dist/features/example-request/index.d.ts +0 -3
  122. package/dist/features/example-request/index.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, computed as p, createElementBlock as l, openBlock as r, Fragment as m, createStaticVNode as H, createElementVNode as M, renderSlot as f, createBlock as s, createCommentVNode as i, unref as t, withCtx as W, createVNode as v, normalizeClass as J, renderList as K } from "vue";
1
+ import { defineComponent as D, computed as p, createElementBlock as i, openBlock as r, Fragment as m, createStaticVNode as H, createElementVNode as M, renderSlot as f, createBlock as s, createCommentVNode as n, unref as t, withCtx as W, createVNode as v, normalizeClass as J, renderList as K } from "vue";
2
2
  import { useWorkspace as P, useActiveEntities as Q } from "@scalar/api-client/store";
3
3
  import { RequestAuth as T } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
4
  import { ScalarErrorBoundary as X } from "@scalar/components";
@@ -14,8 +14,8 @@ import oe from "./Models/ModelsAccordion.vue.js";
14
14
  import re from "./Models/Models.vue.js";
15
15
  const se = { class: "narrow-references-container" }, ae = {
16
16
  key: 0,
17
- class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm leading-normal [--scalar-address-bar-height:0px]"
18
- }, ce = {
17
+ class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
18
+ }, le = {
19
19
  key: 1,
20
20
  class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
21
21
  }, be = /* @__PURE__ */ D({
@@ -52,8 +52,8 @@ const se = { class: "narrow-references-container" }, ae = {
52
52
  );
53
53
  return (e, k) => {
54
54
  var g, b, C, w, A, V, E, U, $, B, N;
55
- return r(), l(m, null, [
56
- k[0] || (k[0] = H('<div class="section-flare" data-v-ff689cb1><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div></div>', 1)),
55
+ return r(), i(m, null, [
56
+ k[0] || (k[0] = H('<div class="section-flare" data-v-848f1f5e><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div><div class="section-flare-item" data-v-848f1f5e></div></div>', 1)),
57
57
  M("div", se, [
58
58
  f(e.$slots, "start", {}, void 0, !0),
59
59
  o.value ? (r(), s(t(_), {
@@ -63,7 +63,7 @@ const se = { class: "narrow-references-container" }, ae = {
63
63
  layout: e.layout,
64
64
  parsedSpec: e.parsedSpec,
65
65
  server: a.value
66
- }, null, 8, ["document", "collection", "layout", "parsedSpec", "server"])) : i("", !0),
66
+ }, null, 8, ["document", "collection", "layout", "parsedSpec", "server"])) : n("", !0),
67
67
  (b = (g = e.document) == null ? void 0 : g.info) != null && b.title || (w = (C = e.document) == null ? void 0 : C.info) != null && w.description ? (r(), s(t(x), {
68
68
  key: 1,
69
69
  document: e.document
@@ -71,18 +71,18 @@ const se = { class: "narrow-references-container" }, ae = {
71
71
  [O.value]: W(() => [
72
72
  v(t(X), null, {
73
73
  default: W(() => {
74
- var n, c, d;
74
+ var c, l, d;
75
75
  return [
76
76
  M("div", {
77
77
  class: J(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
78
78
  }, [
79
- (c = (n = o.value) == null ? void 0 : n.servers) != null && c.length ? (r(), l("div", ae, [
79
+ (l = (c = o.value) == null ? void 0 : c.servers) != null && l.length ? (r(), i("div", ae, [
80
80
  v(t(ee), {
81
81
  collection: o.value,
82
82
  server: a.value
83
83
  }, null, 8, ["collection", "server"])
84
- ])) : i("", !0),
85
- o.value && t(S) && Object.keys(t(z) ?? {}).length ? (r(), l("div", ce, [
84
+ ])) : n("", !0),
85
+ o.value && t(S) && Object.keys(t(z) ?? {}).length ? (r(), i("div", le, [
86
86
  v(t(T), {
87
87
  collection: o.value,
88
88
  envVariables: t(G),
@@ -94,7 +94,7 @@ const se = { class: "narrow-references-container" }, ae = {
94
94
  title: "Authentication",
95
95
  workspace: t(S)
96
96
  }, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
97
- ])) : i("", !0),
97
+ ])) : n("", !0),
98
98
  v(t(te), { class: "introduction-card-item scalar-reference-intro-clients" })
99
99
  ], 2)
100
100
  ];
@@ -104,18 +104,18 @@ const se = { class: "narrow-references-container" }, ae = {
104
104
  ]),
105
105
  _: 2
106
106
  }, 1032, ["document"])) : f(e.$slots, "empty-state", { key: 2 }, void 0, !0),
107
- e.parsedSpec.tags && o.value ? (r(), l(m, { key: 3 }, [
108
- e.parsedSpec["x-tagGroups"] ? (r(!0), l(m, { key: 0 }, K(e.parsedSpec["x-tagGroups"], (n) => (r(), s(t(y), {
107
+ e.parsedSpec.tags && o.value ? (r(), i(m, { key: 3 }, [
108
+ e.parsedSpec["x-tagGroups"] ? (r(!0), i(m, { key: 0 }, K(e.parsedSpec["x-tagGroups"], (c) => (r(), s(t(y), {
109
109
  document: e.document,
110
- key: n.name,
110
+ key: c.name,
111
111
  collection: o.value,
112
112
  layout: e.layout,
113
113
  server: a.value,
114
114
  spec: e.parsedSpec,
115
- tags: n.tags.map((c) => {
115
+ tags: c.tags.map((l) => {
116
116
  var d;
117
- return (d = e.parsedSpec.tags) == null ? void 0 : d.find((R) => R.name === c);
118
- }).filter((c) => !!c)
117
+ return (d = e.parsedSpec.tags) == null ? void 0 : d.find((R) => R.name === l);
118
+ }).filter((l) => !!l)
119
119
  }, null, 8, ["document", "collection", "layout", "server", "spec", "tags"]))), 128)) : (r(), s(t(y), {
120
120
  key: 1,
121
121
  collection: o.value,
@@ -125,7 +125,7 @@ const se = { class: "narrow-references-container" }, ae = {
125
125
  spec: e.parsedSpec,
126
126
  tags: e.parsedSpec.tags
127
127
  }, null, 8, ["collection", "document", "layout", "server", "spec", "tags"]))
128
- ], 64)) : i("", !0),
128
+ ], 64)) : n("", !0),
129
129
  (A = e.parsedSpec.webhooks) != null && A.length && o.value ? (r(), s(t(y), {
130
130
  key: 4,
131
131
  document: e.document,
@@ -141,8 +141,8 @@ const se = { class: "narrow-references-container" }, ae = {
141
141
  operations: e.parsedSpec.webhooks
142
142
  }
143
143
  ]
144
- }, null, 8, ["document", "collection", "layout", "server", "spec", "tags"])) : i("", !0),
145
- (E = (V = e.document) == null ? void 0 : V.components) != null && E.schemas && !t(u).hideModels ? (r(), l(m, { key: 5 }, [
144
+ }, null, 8, ["document", "collection", "layout", "server", "spec", "tags"])) : n("", !0),
145
+ (E = (V = e.document) == null ? void 0 : V.components) != null && E.schemas && !t(u).hideModels ? (r(), i(m, { key: 5 }, [
146
146
  e.layout === "classic" ? (r(), s(t(oe), {
147
147
  key: 0,
148
148
  schemas: ($ = (U = e.document) == null ? void 0 : U.components) == null ? void 0 : $.schemas
@@ -150,7 +150,7 @@ const se = { class: "narrow-references-container" }, ae = {
150
150
  key: 1,
151
151
  schemas: (N = (B = e.document) == null ? void 0 : B.components) == null ? void 0 : N.schemas
152
152
  }, null, 8, ["schemas"]))
153
- ], 64)) : i("", !0),
153
+ ], 64)) : n("", !0),
154
154
  f(e.$slots, "end", {}, void 0, !0)
155
155
  ])
156
156
  ], 64);
@@ -1 +1 @@
1
- {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAiIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
1
+ {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAkIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Description.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2843ffaf"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d2a06436"]]);
5
5
  export {
6
- a as default
6
+ i as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AA2GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAwBxD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC/B,CAAC;AAiCF,iBAAS,cAAc;WA+KT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAwBD,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":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AA6HA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AA0BxD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC/B,CAAC;AAiCF,iBAAS,cAAc;WA2NT,OAAO,IAA6B;;uBATrB,GAAG;uBACH,GAAG;;;;EAa/B;AA6BD,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,7 +1,7 @@
1
1
  import o from "./Introduction.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-943f535d"]]);
4
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d9560193"]]);
5
5
  export {
6
- p as default
6
+ _ as default
7
7
  };
@@ -1,75 +1,105 @@
1
- import { defineComponent as $, inject as D, computed as T, onMounted as _, createBlock as u, openBlock as l, unref as e, withCtx as t, createVNode as n, renderSlot as k, createElementVNode as y, createCommentVNode as m, createTextVNode as a, toDisplayString as f } from "vue";
2
- import B from "../../../features/download-link/DownloadLink.vue.js";
3
- import { useConfig as E } from "../../../hooks/useConfig.js";
4
- import { useNavState as A } from "../../../hooks/useNavState.js";
5
- import H from "./Description.vue.js";
6
- import { OPENAPI_VERSION_SYMBOL as U } from "../../../features/download-link/openapi-version-symbol.js";
7
- import w from "../../Section/SectionContainer.vue.js";
8
- import M from "../../Section/Section.vue.js";
9
- import { DEFAULT_INTRODUCTION_SLUG as P } from "../../../features/traverse-schema/helpers/traverse-description.js";
10
- import R from "../../Section/SectionContent.vue.js";
1
+ import { defineComponent as B, inject as E, computed as A, onMounted as H, createBlock as r, openBlock as l, unref as o, withCtx as n, createVNode as t, renderSlot as O, createElementVNode as f, createCommentVNode as d, createTextVNode as c, toDisplayString as s } from "vue";
2
+ import { useConfig as U } from "../../../hooks/useConfig.js";
3
+ import { useNavState as w } from "../../../hooks/useNavState.js";
4
+ import M from "./Description.vue.js";
5
+ import { OPENAPI_VERSION_SYMBOL as P } from "../../../features/download-link/openapi-version-symbol.js";
6
+ import R from "../../Section/SectionContainer.vue.js";
7
+ import b from "../../Section/Section.vue.js";
8
+ import { DEFAULT_INTRODUCTION_SLUG as j } from "../../../features/traverse-schema/helpers/traverse-description.js";
9
+ import z from "../../Section/SectionContent.vue.js";
11
10
  import I from "../../Badge/Badge.vue.js";
12
- import b from "../../Section/SectionHeader.vue.js";
13
- import j from "../../Section/SectionHeaderTag.vue.js";
14
- import F from "../../Section/SectionColumns.vue.js";
15
- import L from "../../Section/SectionColumn.vue.js";
16
- import O from "../../../features/specification-extension/SpecificationExtension.vue.js";
17
- const G = { class: "flex gap-1" }, Y = { class: "sticky-cards" }, lo = /* @__PURE__ */ $({
11
+ import F from "../../Section/SectionHeader.vue.js";
12
+ import G from "../../Section/SectionHeaderTag.vue.js";
13
+ import Y from "../../LinkList/LinkList.vue.js";
14
+ import q from "../../../features/external-docs/ExternalDocs.vue.js";
15
+ import J from "../../../features/info-object/Contact.vue.js";
16
+ import K from "../../../features/info-object/License.vue.js";
17
+ import Q from "../../../features/info-object/TermsOfService.vue.js";
18
+ import W from "../../Section/SectionColumns.vue.js";
19
+ import D from "../../Section/SectionColumn.vue.js";
20
+ import X from "../../../features/download-link/DownloadLink.vue.js";
21
+ import V from "../../../features/specification-extension/SpecificationExtension.vue.js";
22
+ const Z = { class: "flex gap-1.5" }, x = { class: "links" }, ee = { class: "sticky-cards" }, Ne = /* @__PURE__ */ B({
18
23
  __name: "Introduction",
19
24
  props: {
20
25
  document: {}
21
26
  },
22
- setup(i) {
23
- const { getHeadingId: V } = A(), c = D(U), s = T(() => {
24
- var o, r;
25
- return typeof ((o = i.document.info) == null ? void 0 : o.version) == "string" ? i.document.info.version.toString().match(/^\d/) ? `v${i.document.info.version}` : i.document.info.version : typeof ((r = i.document.info) == null ? void 0 : r.version) == "number" ? `v${i.document.info.version}` : void 0;
26
- }), v = E();
27
- return _(() => {
28
- var o, r;
29
- return (r = (o = v.value).onLoaded) == null ? void 0 : r.call(o);
30
- }), (o, r) => (l(), u(e(w), null, {
31
- default: t(() => [
32
- n(e(M), {
33
- class: "introduction-section gap-12",
34
- id: e(V)({
35
- slug: e(P),
27
+ setup(u) {
28
+ const { getHeadingId: T } = w(), v = E(P), p = A(() => {
29
+ var e, m;
30
+ return typeof ((e = u.document.info) == null ? void 0 : e.version) == "string" ? u.document.info.version.toString().match(/^\d/) ? `v${u.document.info.version}` : u.document.info.version : typeof ((m = u.document.info) == null ? void 0 : m.version) == "number" ? `v${u.document.info.version}` : void 0;
31
+ }), g = U();
32
+ return H(() => {
33
+ var e, m;
34
+ return (m = (e = g.value).onLoaded) == null ? void 0 : m.call(e);
35
+ }), (e, m) => (l(), r(o(R), null, {
36
+ default: n(() => [
37
+ t(o(b), {
38
+ class: "introduction-section z-1 gap-12",
39
+ id: o(T)({
40
+ slug: o(j),
36
41
  depth: 1,
37
42
  value: "Introduction"
38
43
  })
39
44
  }, {
40
- default: t(() => {
41
- var p, g, S, C;
45
+ default: n(() => {
46
+ var S, k, y, $;
42
47
  return [
43
- n(e(R), {
44
- loading: e(v).isLoading ?? (!((g = (p = o.document) == null ? void 0 : p.info) != null && g.description) && !((C = (S = o.document) == null ? void 0 : S.info) != null && C.title))
48
+ t(o(z), {
49
+ loading: o(g).isLoading ?? (!((k = (S = e.document) == null ? void 0 : S.info) != null && k.description) && !(($ = (y = e.document) == null ? void 0 : y.info) != null && $.title))
45
50
  }, {
46
- default: t(() => {
47
- var N;
51
+ default: n(() => {
52
+ var C;
48
53
  return [
49
- y("div", G, [
50
- s.value ? (l(), u(e(I), { key: 0 }, {
51
- default: t(() => [
52
- a(f(s.value), 1)
54
+ f("div", Z, [
55
+ p.value ? (l(), r(o(I), { key: 0 }, {
56
+ default: n(() => [
57
+ c(s(p.value), 1)
53
58
  ]),
54
59
  _: 1
55
- })) : m("", !0),
56
- e(c) ? (l(), u(e(I), { key: 1 }, {
57
- default: t(() => [
58
- a("OAS " + f(e(c)), 1)
60
+ })) : d("", !0),
61
+ o(v) ? (l(), r(o(I), { key: 1 }, {
62
+ default: n(() => [
63
+ c("OAS " + s(o(v)), 1)
59
64
  ]),
60
65
  _: 1
61
- })) : m("", !0)
66
+ })) : d("", !0)
62
67
  ]),
63
- n(e(b), {
64
- loading: !((N = o.document.info) != null && N.title),
68
+ t(o(F), {
69
+ loading: !((C = e.document.info) != null && C.title),
65
70
  tight: ""
66
71
  }, {
67
- default: t(() => [
68
- n(e(j), { level: 1 }, {
69
- default: t(() => {
70
- var d;
72
+ links: n(() => [
73
+ t(o(Y), null, {
74
+ default: n(() => {
75
+ var i, a, N, _, h, L;
71
76
  return [
72
- a(f((d = o.document.info) == null ? void 0 : d.title), 1)
77
+ t(o(q), {
78
+ value: e.document.externalDocs
79
+ }, null, 8, ["value"]),
80
+ (i = e.document.info) != null && i.contact ? (l(), r(o(J), {
81
+ key: 0,
82
+ value: (a = e.document.info) == null ? void 0 : a.contact
83
+ }, null, 8, ["value"])) : d("", !0),
84
+ (N = e.document.info) != null && N.license ? (l(), r(o(K), {
85
+ key: 1,
86
+ value: (_ = e.document.info) == null ? void 0 : _.license
87
+ }, null, 8, ["value"])) : d("", !0),
88
+ (h = e.document.info) != null && h.termsOfService ? (l(), r(o(Q), {
89
+ key: 2,
90
+ value: (L = e.document.info) == null ? void 0 : L.termsOfService
91
+ }, null, 8, ["value"])) : d("", !0)
92
+ ];
93
+ }),
94
+ _: 1
95
+ })
96
+ ]),
97
+ default: n(() => [
98
+ t(o(G), { level: 1 }, {
99
+ default: n(() => {
100
+ var i;
101
+ return [
102
+ c(s((i = e.document.info) == null ? void 0 : i.title), 1)
73
103
  ];
74
104
  }),
75
105
  _: 1
@@ -77,42 +107,44 @@ const G = { class: "flex gap-1" }, Y = { class: "sticky-cards" }, lo = /* @__PUR
77
107
  ]),
78
108
  _: 1
79
109
  }, 8, ["loading"]),
80
- n(e(F), null, {
81
- default: t(() => [
82
- n(e(L), null, {
83
- default: t(() => {
84
- var d, h;
110
+ t(o(W), null, {
111
+ default: n(() => [
112
+ t(o(D), null, {
113
+ default: n(() => {
114
+ var i, a;
85
115
  return [
86
- n(B, {
87
- title: (d = o.document.info) == null ? void 0 : d.title
88
- }, null, 8, ["title"]),
89
- n(H, {
90
- value: (h = o.document.info) == null ? void 0 : h.description
116
+ f("div", x, [
117
+ t(o(X), {
118
+ title: (i = e.document.info) == null ? void 0 : i.title
119
+ }, null, 8, ["title"])
120
+ ]),
121
+ t(M, {
122
+ value: (a = e.document.info) == null ? void 0 : a.description
91
123
  }, null, 8, ["value"])
92
124
  ];
93
125
  }),
94
126
  _: 1
95
127
  }),
96
- o.$slots.aside ? (l(), u(e(L), { key: 0 }, {
97
- default: t(() => [
98
- y("div", Y, [
99
- k(o.$slots, "aside", {}, void 0, !0)
128
+ e.$slots.aside ? (l(), r(o(D), { key: 0 }, {
129
+ default: n(() => [
130
+ f("div", ee, [
131
+ O(e.$slots, "aside", {}, void 0, !0)
100
132
  ])
101
133
  ]),
102
134
  _: 3
103
- })) : m("", !0)
135
+ })) : d("", !0)
104
136
  ]),
105
137
  _: 3
106
138
  }),
107
- n(e(O), { value: o.document }, null, 8, ["value"]),
108
- n(e(O), {
109
- value: o.document.info
139
+ t(o(V), { value: e.document }, null, 8, ["value"]),
140
+ t(o(V), {
141
+ value: e.document.info
110
142
  }, null, 8, ["value"])
111
143
  ];
112
144
  }),
113
145
  _: 3
114
146
  }, 8, ["loading"]),
115
- k(o.$slots, "after", {}, void 0, !0)
147
+ O(e.$slots, "after", {}, void 0, !0)
116
148
  ];
117
149
  }),
118
150
  _: 3
@@ -123,5 +155,5 @@ const G = { class: "flex gap-1" }, Y = { class: "sticky-cards" }, lo = /* @__PUR
123
155
  }
124
156
  });
125
157
  export {
126
- lo as default
158
+ Ne as default
127
159
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAyEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAqB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAuKF,wBAOG"}
1
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAsB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAuKF,wBAOG"}
@@ -0,0 +1,18 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
18
+ //# sourceMappingURL=LinkList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/LinkList/LinkList.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { createElementBlock as t, openBlock as o, renderSlot as r } from "vue";
2
+ import n from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const s = {}, c = { class: "mb-3 flex h-auto min-h-8 max-w-full items-center gap-2 overflow-auto text-xs whitespace-nowrap xl:mb-1.5" };
4
+ function a(e, l) {
5
+ return o(), t("div", c, [
6
+ r(e.$slots, "default")
7
+ ]);
8
+ }
9
+ const m = /* @__PURE__ */ n(s, [["render", a]]);
10
+ export {
11
+ m as default
12
+ };
@@ -0,0 +1,2 @@
1
+ export { default as LinkList } from './LinkList.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LinkList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA"}
@@ -6,6 +6,7 @@ declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
7
7
  slots: {
8
8
  default?(_: {}): any;
9
+ links?(_: {}): any;
9
10
  };
10
11
  refs: {};
11
12
  rootEl: HTMLDivElement;
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionHeader.vue"],"names":[],"mappings":"AA4DA,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;AAQF,iBAAS,cAAc;WAyDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,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":"SectionHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionHeader.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;AAQF,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;yBATrB,GAAG;uBACL,GAAG;;;;EAa7B;AASD,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,7 +1,7 @@
1
1
  import o from "./SectionHeader.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f8e38d9f"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-465a7a78"]]);
5
5
  export {
6
- a as default
6
+ m as default
7
7
  };
@@ -1,22 +1,23 @@
1
- import { defineComponent as n, createElementBlock as t, openBlock as o, createBlock as r, normalizeClass as a, renderSlot as i } from "vue";
2
- import s from "../LoadingSkeleton.vue.js";
3
- const l = { class: "section-header-wrapper" }, h = /* @__PURE__ */ n({
1
+ import { defineComponent as r, createElementBlock as t, openBlock as o, createBlock as s, renderSlot as n, createCommentVNode as a, normalizeClass as l } from "vue";
2
+ import i from "../LoadingSkeleton.vue.js";
3
+ const d = { class: "section-header-wrapper xl:gap-12" }, u = /* @__PURE__ */ r({
4
4
  __name: "SectionHeader",
5
5
  props: {
6
6
  loading: { type: Boolean },
7
7
  tight: { type: Boolean }
8
8
  },
9
- setup(d) {
10
- return (e, p) => (o(), t("div", l, [
11
- e.loading ? (o(), r(s, { key: 0 })) : (o(), t("div", {
9
+ setup(p) {
10
+ return (e, c) => (o(), t("div", d, [
11
+ e.loading ? (o(), s(i, { key: 0 })) : (o(), t("div", {
12
12
  key: 1,
13
- class: a(["section-header", { tight: e.tight }])
13
+ class: l(["section-header", { tight: e.tight }])
14
14
  }, [
15
- i(e.$slots, "default", {}, void 0, !0)
16
- ], 2))
15
+ n(e.$slots, "default", {}, void 0, !0)
16
+ ], 2)),
17
+ e.$slots.links ? n(e.$slots, "links", { key: 2 }, void 0, !0) : a("", !0)
17
18
  ]));
18
19
  }
19
20
  });
20
21
  export {
21
- h as default
22
+ u as default
22
23
  };
@@ -1,17 +1,17 @@
1
+ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
1
2
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
3
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
4
  type __VLS_Props = {
4
- document?: OpenAPIV3_1.Document;
5
5
  path: string;
6
- method: OpenAPIV3_1.HttpMethods;
6
+ method: HttpMethod;
7
7
  isWebhook?: boolean;
8
8
  layout?: 'modern' | 'classic';
9
9
  id: string;
10
- /**
11
- * @deprecated Use `document` instead
12
- */
13
- collection: Collection;
14
10
  server: Server | undefined;
11
+ /** @deprecated Use `document` instead, we just need the selected security scheme uids for now */
12
+ collection: Collection;
13
+ /** @deprecated Use the new workspace store instead*/
14
+ document?: OpenAPIV3_1.Document;
15
15
  };
16
16
  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>;
17
17
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAYxD,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAC;;AAuKF,wBAMG"}
1
+ {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAaxD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;CAChC,CAAC;;AAiKF,wBAMG"}