@scalar/api-reference 1.25.6 → 1.25.9

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 +64 -0
  2. package/dist/browser/standalone.js +10872 -11312
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.js +5 -5
  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 +56 -53
  8. package/dist/components/Content/Authentication/Authentication.vue.js +1 -1
  9. package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -1
  10. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  12. package/dist/components/Content/Introduction/Introduction.vue2.js +9 -9
  13. package/dist/components/Content/Models/Models.vue.d.ts +1 -1
  14. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Models/Models.vue.js +1 -1
  16. package/dist/components/Content/Models/Models.vue2.js +65 -42
  17. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +1 -1
  18. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
  20. package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Operation/Operation.vue.js +2 -2
  22. package/dist/components/Content/Operation/Operation.vue2.js +46 -59
  23. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
  24. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  26. package/dist/components/Content/Schema/Schema.vue2.js +18 -18
  27. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +1 -1
  28. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  30. package/dist/components/Content/Schema/SchemaHeading.vue2.js +14 -14
  31. package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Webhooks/Webhook.vue.js +5 -33
  33. package/dist/components/Content/Webhooks/Webhook.vue2.js +37 -2
  34. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Webhooks/Webhooks.vue.js +2 -2
  36. package/dist/components/Content/Webhooks/Webhooks.vue2.js +93 -62
  37. package/dist/components/Section/CompactSection.vue.d.ts +28 -0
  38. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -0
  39. package/dist/components/Section/CompactSection.vue.js +7 -0
  40. package/dist/components/Section/CompactSection.vue2.js +59 -0
  41. package/dist/components/Section/index.d.ts +1 -0
  42. package/dist/components/Section/index.d.ts.map +1 -1
  43. package/dist/{components/Content/Models/CollapsedModel.vue.d.ts → embeds/ExampleRequest/ExampleRequest.vue.d.ts} +9 -5
  44. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -0
  45. package/dist/embeds/ExampleRequest/index.d.ts +2 -0
  46. package/dist/embeds/ExampleRequest/index.d.ts.map +1 -0
  47. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +508 -0
  48. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -0
  49. package/dist/embeds/OpenApiDocument/index.d.ts +3 -0
  50. package/dist/embeds/OpenApiDocument/index.d.ts.map +1 -0
  51. package/dist/embeds/OpenApiDocument/types.d.ts +3 -0
  52. package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -0
  53. package/dist/embeds/index.d.ts +3 -0
  54. package/dist/embeds/index.d.ts.map +1 -0
  55. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  56. package/dist/features/BaseUrl/BaseUrl.vue.js +24 -74
  57. package/dist/features/BaseUrl/types.d.ts +1 -1
  58. package/dist/features/BaseUrl/types.d.ts.map +1 -1
  59. package/dist/features/BaseUrl/utils/getServers.d.ts +3 -2
  60. package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -1
  61. package/dist/{components/Content/Introduction/DownloadSpec.vue.d.ts → features/DownloadLink/DownloadLink.vue.d.ts} +1 -1
  62. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -0
  63. package/dist/features/DownloadLink/DownloadLink.vue.js +7 -0
  64. package/dist/features/DownloadLink/DownloadLink.vue2.js +36 -0
  65. package/dist/features/DownloadLink/index.d.ts +2 -0
  66. package/dist/features/DownloadLink/index.d.ts.map +1 -0
  67. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +1 -3
  68. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  69. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  70. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +127 -122
  71. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  72. package/dist/features/Search/SearchModal.vue.js +3 -3
  73. package/dist/features/Search/SearchModal.vue2.js +63 -58
  74. package/dist/helpers/createEmptySpecification.d.ts +1 -1
  75. package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
  76. package/dist/helpers/getApiClientRequest.d.ts +1 -1
  77. package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
  78. package/dist/helpers/getHarRequest.d.ts.map +1 -1
  79. package/dist/helpers/getHarRequest.js +8 -15
  80. package/dist/helpers/getModels.d.ts +1 -1
  81. package/dist/helpers/getModels.d.ts.map +1 -1
  82. package/dist/helpers/openClientFor.d.ts +1 -1
  83. package/dist/helpers/openClientFor.d.ts.map +1 -1
  84. package/dist/helpers/openClientFor.js +5 -5
  85. package/dist/helpers/parse.d.ts.map +1 -1
  86. package/dist/helpers/provideSymbols.d.ts +3 -2
  87. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  88. package/dist/helpers/provideSymbols.js +3 -2
  89. package/dist/index.js +65 -64
  90. package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
  91. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  92. package/dist/legacy/components/SecurityScheme.vue.js +2 -2
  93. package/dist/legacy/components/SecurityScheme.vue2.js +57 -53
  94. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +1 -1
  95. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  96. package/dist/legacy/components/SecuritySchemeSelector.vue.js +4 -4
  97. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +5 -5
  98. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +1 -1
  99. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -1
  100. package/dist/legacy/helpers/getUrlFromServerState.d.ts +1 -1
  101. package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
  102. package/dist/legacy/helpers/index.d.ts +1 -1
  103. package/dist/legacy/helpers/normalizeHeaders.d.ts +2 -3
  104. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
  105. package/dist/legacy/helpers/normalizeHeaders.js +24 -0
  106. package/dist/legacy/stores/useOpenApiStore.d.ts +2 -2
  107. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  108. package/dist/legacy/stores/useServerStore.d.ts +32 -6
  109. package/dist/legacy/stores/useServerStore.d.ts.map +1 -1
  110. package/dist/legacy/stores/useServerStore.js +70 -11
  111. package/dist/legacy/types.d.ts +0 -23
  112. package/dist/legacy/types.d.ts.map +1 -1
  113. package/dist/style.css +1 -1
  114. package/package.json +13 -12
  115. package/dist/components/Content/Introduction/DownloadSpec.vue.d.ts.map +0 -1
  116. package/dist/components/Content/Introduction/DownloadSpec.vue.js +0 -7
  117. package/dist/components/Content/Introduction/DownloadSpec.vue2.js +0 -30
  118. package/dist/components/Content/Models/CollapsedModel.vue.d.ts.map +0 -1
  119. package/dist/components/Content/Models/CollapsedModel.vue.js +0 -7
  120. package/dist/components/Content/Models/CollapsedModel.vue2.js +0 -70
  121. package/dist/features/BaseUrl/utils/index.d.ts +0 -2
  122. package/dist/features/BaseUrl/utils/index.d.ts.map +0 -1
@@ -1,33 +1,33 @@
1
- import { defineComponent as F, toRef as g, ref as B, watch as T, openBlock as u, createBlock as v, unref as t, withCtx as l, createElementVNode as d, createVNode as h, isRef as U, createTextVNode as i, toDisplayString as n, createElementBlock as q, Fragment as E, renderList as L, createSlots as M, pushScopeId as D, popScopeId as H } from "vue";
2
- import { ScalarModal as O, ScalarSearchInput as P, ScalarSearchResultList as $, ScalarSearchResultItem as K } from "@scalar/components";
3
- import W from "../../components/Sidebar/SidebarHttpBadge.vue.js";
4
- import { useKeyboardNavigation as Y } from "./useKeyboardNavigation.js";
5
- import { useSearchIndex as j } from "./useSearchIndex.js";
6
- import { useSidebar as z } from "../../hooks/useSidebar.js";
7
- const A = (r) => (D("data-v-6ee7fa31"), r = r(), H(), r), G = /* @__PURE__ */ A(() => /* @__PURE__ */ d("div", { class: "ref-search-meta" }, [
8
- /* @__PURE__ */ d("span", null, "↑↓ Navigate"),
9
- /* @__PURE__ */ d("span", null, "⏎ Select")
10
- ], -1)), te = /* @__PURE__ */ F({
1
+ import { defineComponent as B, toRef as R, ref as T, watch as U, openBlock as u, createBlock as k, unref as t, withCtx as r, createElementVNode as s, createVNode as h, isRef as q, createTextVNode as f, toDisplayString as d, createElementBlock as E, Fragment as L, renderList as M, createSlots as D, normalizeClass as H, pushScopeId as O, popScopeId as P } from "vue";
2
+ import { ScalarModal as $, ScalarSearchInput as z, ScalarSearchResultList as K, ScalarSearchResultItem as W } from "@scalar/components";
3
+ import Y from "../../components/Sidebar/SidebarHttpBadge.vue.js";
4
+ import { useKeyboardNavigation as j } from "./useKeyboardNavigation.js";
5
+ import { useSearchIndex as A } from "./useSearchIndex.js";
6
+ import { useSidebar as G } from "../../hooks/useSidebar.js";
7
+ const J = (l) => (O("data-v-fb0fd0be"), l = l(), P(), l), Q = /* @__PURE__ */ J(() => /* @__PURE__ */ s("div", { class: "ref-search-meta" }, [
8
+ /* @__PURE__ */ s("span", null, "↑↓ Navigate"),
9
+ /* @__PURE__ */ s("span", null, "⏎ Select")
10
+ ], -1)), oe = /* @__PURE__ */ B({
11
11
  __name: "SearchModal",
12
12
  props: {
13
13
  parsedSpec: {},
14
14
  modalState: {}
15
15
  },
16
- setup(r) {
17
- const s = r, R = g(s, "parsedSpec"), k = g(s.modalState.open), {
18
- resetSearch: I,
19
- fuseSearch: _,
16
+ setup(l) {
17
+ const c = l, I = R(c, "parsedSpec"), _ = R(c.modalState.open), {
18
+ resetSearch: b,
19
+ fuseSearch: C,
20
20
  selectedSearchResult: m,
21
21
  searchResultsWithPlaceholderResults: p,
22
- searchText: c
23
- } = j({
24
- specification: R
22
+ searchText: i
23
+ } = A({
24
+ specification: I
25
25
  });
26
- Y({
26
+ j({
27
27
  selectedSearchResult: m,
28
- active: k,
28
+ active: _,
29
29
  searchResultsWithPlaceholderResults: p,
30
- onSearchResultClick: f
30
+ onSearchResultClick: S
31
31
  });
32
32
  const w = {
33
33
  heading: "DocsPage",
@@ -35,78 +35,83 @@ const A = (r) => (D("data-v-6ee7fa31"), r = r(), H(), r), G = /* @__PURE__ */ A(
35
35
  req: "Terminal",
36
36
  tag: "CodeFolder",
37
37
  webhook: "Terminal"
38
- }, C = B(null);
39
- T(
40
- () => s.modalState.open,
38
+ }, V = T(null);
39
+ U(
40
+ () => c.modalState.open,
41
41
  (o) => {
42
- o && I();
42
+ o && b();
43
43
  }
44
44
  );
45
- const { setCollapsedSidebarItem: V } = z(), b = /#(tag\/[^/]*)/;
46
- function f(o) {
45
+ const { setCollapsedSidebarItem: N } = G(), x = /#(tag\/[^/]*)/;
46
+ function S(o) {
47
47
  let a = "models";
48
- const e = o.item.href.match(b);
49
- e != null && e.length && e.length > 1 && (a = e[1]), V(a, !0), s.modalState.hide();
48
+ const e = o.item.href.match(x);
49
+ e != null && e.length && e.length > 1 && (a = e[1]), N(a, !0), c.modalState.hide();
50
50
  }
51
- function N(o) {
51
+ function F(o) {
52
52
  const a = new URL(window.location.href);
53
53
  return a.hash = o, a.toString();
54
54
  }
55
- return (o, a) => (u(), v(t(O), {
55
+ return (o, a) => (u(), k(t($), {
56
56
  state: o.modalState,
57
57
  variant: "search"
58
58
  }, {
59
- default: l(() => [
60
- d("div", {
59
+ default: r(() => [
60
+ s("div", {
61
61
  ref_key: "searchModalRef",
62
- ref: C,
62
+ ref: V,
63
63
  class: "ref-search-container"
64
64
  }, [
65
- h(t(P), {
66
- modelValue: t(c),
67
- "onUpdate:modelValue": a[0] || (a[0] = (e) => U(c) ? c.value = e : null),
68
- onInput: t(_)
65
+ h(t(z), {
66
+ modelValue: t(i),
67
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => q(i) ? i.value = e : null),
68
+ onInput: t(C)
69
69
  }, null, 8, ["modelValue", "onInput"])
70
70
  ], 512),
71
- h(t($), {
71
+ h(t(K), {
72
72
  class: "ref-search-results custom-scroll",
73
73
  noResults: !t(p).length
74
74
  }, {
75
- query: l(() => [
76
- i(n(t(c)), 1)
75
+ query: r(() => [
76
+ f(d(t(i)), 1)
77
77
  ]),
78
- default: l(() => [
79
- (u(!0), q(E, null, L(t(p), (e, S) => (u(), v(t(K), {
78
+ default: r(() => [
79
+ (u(!0), E(L, null, M(t(p), (e, g) => (u(), k(t(W), {
80
80
  id: e.item.href,
81
81
  key: e.refIndex,
82
- active: t(m) === S,
83
- href: N(e.item.href),
82
+ active: t(m) === g,
83
+ href: F(e.item.href),
84
84
  icon: w[e.item.type],
85
- onClick: (x) => f(e),
86
- onFocus: (x) => m.value = S
87
- }, M({
88
- default: l(() => [
89
- i(n(e.item.title) + " ", 1)
90
- ]),
85
+ onClick: (n) => S(e),
86
+ onFocus: (n) => m.value = g
87
+ }, D({
88
+ default: r(() => {
89
+ var n, v;
90
+ return [
91
+ s("span", {
92
+ class: H({ deprecated: (v = (n = e.item.operation) == null ? void 0 : n.information) == null ? void 0 : v.deprecated })
93
+ }, d(e.item.title), 3)
94
+ ];
95
+ }),
91
96
  _: 2
92
97
  }, [
93
98
  (e.item.httpVerb || e.item.path) && e.item.path !== e.item.title ? {
94
99
  name: "description",
95
- fn: l(() => [
96
- i(n(e.item.path), 1)
100
+ fn: r(() => [
101
+ f(d(e.item.path), 1)
97
102
  ]),
98
103
  key: "0"
99
104
  } : e.item.description ? {
100
105
  name: "description",
101
- fn: l(() => [
102
- i(n(e.item.description), 1)
106
+ fn: r(() => [
107
+ f(d(e.item.description), 1)
103
108
  ]),
104
109
  key: "1"
105
110
  } : void 0,
106
111
  e.item.type === "req" ? {
107
112
  name: "addon",
108
- fn: l(() => [
109
- h(W, {
113
+ fn: r(() => [
114
+ h(Y, {
110
115
  method: e.item.httpVerb ?? "get"
111
116
  }, null, 8, ["method"])
112
117
  ]),
@@ -116,12 +121,12 @@ const A = (r) => (D("data-v-6ee7fa31"), r = r(), H(), r), G = /* @__PURE__ */ A(
116
121
  ]),
117
122
  _: 1
118
123
  }, 8, ["noResults"]),
119
- G
124
+ Q
120
125
  ]),
121
126
  _: 1
122
127
  }, 8, ["state"]));
123
128
  }
124
129
  });
125
130
  export {
126
- te as default
131
+ oe as default
127
132
  };
@@ -1,4 +1,4 @@
1
- import type { OpenAPI } from '@scalar/openapi-parser';
1
+ import type { OpenAPI } from '@scalar/openapi-types';
2
2
  import type { Spec } from '@scalar/types/legacy';
3
3
  /**
4
4
  * Creates an empty specification object.
@@ -1 +1 @@
1
- {"version":3,"file":"createEmptySpecification.d.ts","sourceRoot":"","sources":["../../src/helpers/createEmptySpecification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,oBAAoB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,GAsB1C,IAAI,CACX"}
1
+ {"version":3,"file":"createEmptySpecification.d.ts","sourceRoot":"","sources":["../../src/helpers/createEmptySpecification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,oBAAoB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,GAsB1C,IAAI,CACX"}
@@ -1,5 +1,5 @@
1
1
  import { type ClientRequestConfig, type ServerState } from '#legacy';
2
- import type { OpenAPIV3 } from '@scalar/openapi-parser';
2
+ import type { OpenAPIV3 } from '@scalar/openapi-types';
3
3
  import type { AuthenticationState, TransformedOperation } from '@scalar/types/legacy';
4
4
  /**
5
5
  * Generate parameters for the request
@@ -1 +1 @@
1
- {"version":3,"file":"getApiClientRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/getApiClientRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGjB,MAAM,SAAS,CAAA;AAKhB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAI7B;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,cAAc,GACf,EAAE;IACD,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;IAChD,cAAc,CAAC,EAAE,SAAS,CAAC,yBAAyB,EAAE,GAAG,IAAI,CAAA;CAC9D,GAAG,mBAAmB,CAmCtB"}
1
+ {"version":3,"file":"getApiClientRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/getApiClientRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGjB,MAAM,SAAS,CAAA;AAKhB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAI7B;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,cAAc,GACf,EAAE;IACD,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;IAChD,cAAc,CAAC,EAAE,SAAS,CAAC,yBAAyB,EAAE,GAAG,IAAI,CAAA;CAC9D,GAAG,mBAAmB,CAmCtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"getHarRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/getHarRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAGnB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,eAAO,MAAM,aAAa,gBACX,OAAO,CAAC,kBAAkB,CAAC,EAAE,KACzC,UAsDF,CAAA"}
1
+ {"version":3,"file":"getHarRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/getHarRequest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,kBAAkB,EAGnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,eAAO,MAAM,aAAa,gBACX,OAAO,CAAC,kBAAkB,CAAC,EAAE,KACzC,UAyCF,CAAA"}
@@ -1,5 +1,5 @@
1
- import { AxiosHeaders as h } from "axios";
2
- const c = (...i) => {
1
+ import { normalizeHeaders as i } from "../legacy/helpers/normalizeHeaders.js";
2
+ const h = (...s) => {
3
3
  let e = {
4
4
  httpVersion: "1.1",
5
5
  method: "GET",
@@ -11,7 +11,7 @@ const c = (...i) => {
11
11
  cookies: [],
12
12
  bodySize: -1
13
13
  };
14
- i.forEach((r) => {
14
+ s.forEach((r) => {
15
15
  e = {
16
16
  ...e,
17
17
  ...r,
@@ -22,20 +22,13 @@ const c = (...i) => {
22
22
  ],
23
23
  cookies: [...e.cookies, ...r.cookies ?? []]
24
24
  };
25
- });
26
- const a = e.headers.reduce(
27
- (r, { name: o, value: n }) => (r[o] = n, r),
28
- {}
29
- ), d = h.from(a).normalize(!0);
30
- e.headers = Object.entries(d).map(
31
- ([r, o]) => ({ name: r, value: o })
32
- );
33
- const { path: s, ...t } = e;
34
- return s ? {
25
+ }), e.headers = i(e.headers);
26
+ const { path: o, ...t } = e;
27
+ return o ? {
35
28
  ...t,
36
- url: `${e.url}${s}`
29
+ url: `${e.url}${o}`
37
30
  } : t;
38
31
  };
39
32
  export {
40
- c as getHarRequest
33
+ h as getHarRequest
41
34
  };
@@ -1,4 +1,4 @@
1
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser';
1
+ import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
2
  import type { Spec } from '@scalar/types/legacy';
3
3
  /**
4
4
  * Returns all models from the specification, no matter if it’s Swagger 2.0 or OpenAPI 3.x.
@@ -1 +1 @@
1
- {"version":3,"file":"getModels.d.ts","sourceRoot":"","sources":["../../src/helpers/getModels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAC/E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAEhD;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,mHA6BpC"}
1
+ {"version":3,"file":"getModels.d.ts","sourceRoot":"","sources":["../../src/helpers/getModels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAEhD;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,mHA4BpC"}
@@ -1,4 +1,4 @@
1
- import type { OpenAPIV3 } from '@scalar/openapi-parser';
1
+ import type { OpenAPIV3 } from '@scalar/openapi-types';
2
2
  import type { TransformedOperation } from '@scalar/types/legacy';
3
3
  /**
4
4
  * Prepares all the data to open the API client for a specific operation.
@@ -1 +1 @@
1
- {"version":3,"file":"openClientFor.d.ts","sourceRoot":"","sources":["../../src/helpers/openClientFor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAWhE;;GAEG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,oBAAoB,EAC/B,cAAc,CAAC,EAAE,SAAS,CAAC,yBAAyB,EAAE,QAuBvD"}
1
+ {"version":3,"file":"openClientFor.d.ts","sourceRoot":"","sources":["../../src/helpers/openClientFor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAWhE;;GAEG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,oBAAoB,EAC/B,cAAc,CAAC,EAAE,SAAS,CAAC,yBAAyB,EAAE,QAuBvD"}
@@ -1,11 +1,11 @@
1
- import { useApiClientStore as r } from "../legacy/stores/useApiClientStore.js";
2
- import { getApiClientRequest as s } from "./getApiClientRequest.js";
3
- import { useServerStore as i } from "../legacy/stores/useServerStore.js";
1
+ import { useServerStore as r } from "../legacy/stores/useServerStore.js";
2
+ import { useApiClientStore as s } from "../legacy/stores/useApiClientStore.js";
3
+ import { getApiClientRequest as i } from "./getApiClientRequest.js";
4
4
  import { useRequestStore as n } from "../legacy/stores/useRequestStore.js";
5
5
  import { useOpenApiStore as u } from "../legacy/stores/useOpenApiStore.js";
6
- const { server: l } = i(), { setOperation: p, setGlobalSecurity: c } = u(), { toggleApiClient: m } = r(), { setActiveRequest: S, resetActiveResponse: a } = n();
6
+ const { server: l } = r(), { setOperation: p, setGlobalSecurity: c } = u(), { toggleApiClient: m } = s(), { setActiveRequest: S, resetActiveResponse: a } = n();
7
7
  function C(e, o) {
8
- const t = s({
8
+ const t = i({
9
9
  serverState: l,
10
10
  operation: e,
11
11
  // Let the API client handle the authentication.
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD,eAAO,MAAM,KAAK,kBACD,GAAG,eAGf;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,KACA,OAAO,CAAC,IAAI,CAmDd,CAAA"}
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAMhD,eAAO,MAAM,KAAK,kBACD,GAAG,eAGf;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,KACA,OAAO,CAAC,IAAI,CAmDd,CAAA"}
@@ -1,8 +1,9 @@
1
- import type { OpenAPIV3 } from '@scalar/openapi-parser';
1
+ import type { OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
2
  import type { InjectionKey } from 'vue';
3
3
  /**
4
4
  * Collection of symbols to use with provide inject
5
5
  */
6
- export declare const GLOBAL_SECURITY_SYMBOL: InjectionKey<() => OpenAPIV3.SecurityRequirementObject[] | undefined>;
6
+ export declare const GLOBAL_SECURITY_SYMBOL: InjectionKey<() => OpenAPIV3.SecurityRequirementObject[] | OpenAPIV3_1.SecurityRequirementObject[] | undefined>;
7
7
  export declare const HIDE_DOWNLOAD_BUTTON_SYMBOL: InjectionKey<() => boolean | undefined>;
8
+ export declare const OPENAPI_DOCUMENT_URL_SYMBOL: InjectionKey<() => string | undefined>;
8
9
  //# sourceMappingURL=provideSymbols.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"provideSymbols.d.ts","sourceRoot":"","sources":["../../src/helpers/provideSymbols.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAe,YAAY,CAC5D,MAAM,SAAS,CAAC,yBAAyB,EAAE,GAAG,SAAS,CACxD,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAe,YAAY,CACjE,MAAM,OAAO,GAAG,SAAS,CAC1B,CAAA"}
1
+ {"version":3,"file":"provideSymbols.d.ts","sourceRoot":"","sources":["../../src/helpers/provideSymbols.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAe,YAAY,CAC5D,MACI,SAAS,CAAC,yBAAyB,EAAE,GACrC,WAAW,CAAC,yBAAyB,EAAE,GACvC,SAAS,CACd,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAe,YAAY,CACjE,MAAM,OAAO,GAAG,SAAS,CAC1B,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAe,YAAY,CACjE,MAAM,MAAM,GAAG,SAAS,CACzB,CAAA"}
@@ -1,5 +1,6 @@
1
- const O = Symbol(), o = Symbol();
1
+ const O = Symbol(), _ = Symbol(), o = Symbol();
2
2
  export {
3
3
  O as GLOBAL_SECURITY_SYMBOL,
4
- o as HIDE_DOWNLOAD_BUTTON_SYMBOL
4
+ _ as HIDE_DOWNLOAD_BUTTON_SYMBOL,
5
+ o as OPENAPI_DOCUMENT_URL_SYMBOL
5
6
  };