@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 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAwuBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAqCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAyShB,iBAAS,cAAc;WAoYT,OAAO,IAA6B;;wBAznBV,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;wBADQ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;;;;;EA6nB/B;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAtsBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA6sB9D,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":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA+sBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAiCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAoRhB,iBAAS,cAAc;WAoYT,OAAO,IAA6B;;wBApmBV,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;wBADQ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;;;;;EAwmB/B;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAjrBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAwrB9D,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"}
@@ -4,7 +4,7 @@ import o from "./ApiReferenceLayout.vue2.js";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import t from "../_virtual/_plugin-vue_export-helper.js";
7
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-125cbb58"]]);
7
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b90254d8"]]);
8
8
  export {
9
- c as default
9
+ f as default
10
10
  };
@@ -1,43 +1,42 @@
1
- import { defineComponent as ge, computed as M, provide as S, ref as T, onBeforeMount as he, onMounted as K, watch as D, toValue as z, onUnmounted as Se, useId as be, createElementBlock as f, openBlock as n, Fragment as G, createElementVNode as p, createVNode as v, normalizeStyle as ye, normalizeClass as we, unref as r, createCommentVNode as i, withDirectives as ke, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as l, vShow as Ce, createSlots as $e } from "vue";
2
- import { provideUseId as Me } from "@headlessui/vue";
3
- import { OpenApiClientButton as Te } from "@scalar/api-client/components";
4
- import { LAYOUT_SYMBOL as De } from "@scalar/api-client/hooks";
5
- import { WORKSPACE_SYMBOL as Ee, ACTIVE_ENTITIES_SYMBOL as Oe } from "@scalar/api-client/store";
6
- import { addScalarClassesToHeadless as Ie, ScalarErrorBoundary as Be, ScalarSidebarFooter as Re, ScalarColorModeToggleButton as Le, ScalarColorModeToggleIcon as He } from "@scalar/components";
7
- import { sleep as _e } from "@scalar/helpers/testing/sleep";
8
- import { hasObtrusiveScrollbars as Ae, getThemeStyles as Pe } from "@scalar/themes";
9
- import { apiReferenceConfigurationSchema as Fe } from "@scalar/types/api-reference";
10
- import { useBreakpoints as Ne } from "@scalar/use-hooks/useBreakpoints";
11
- import { useToasts as Ve, ScalarToasts as Ue } from "@scalar/use-toasts";
12
- import { useMediaQuery as Ye, useResizeObserver as Ke, useDebounceFn as ze } from "@vueuse/core";
13
- import Ge from "./ClassicHeader.vue.js";
14
- import Qe from "./GettingStarted.vue.js";
15
- import We from "./MobileHeader.vue.js";
16
- import { parse as je } from "../helpers/parse.js";
17
- import { CONFIGURATION_SYMBOL as qe } from "../hooks/useConfig.js";
18
- import { useNavState as Je } from "../hooks/useNavState.js";
19
- import { downloadEventBus as Q, downloadDocument as Xe } from "../libs/download.js";
20
- import { createEmptySpecification as Ze } from "../libs/openapi.js";
21
- import { useHttpClientStore as xe } from "../stores/useHttpClientStore.js";
22
- import { useDocumentSource as et } from "../features/document-source/hooks/useDocumentSource.js";
23
- import { OPENAPI_VERSION_SYMBOL as tt } from "../features/download-link/openapi-version-symbol.js";
24
- import { useSidebar as ot } from "../features/sidebar/hooks/useSidebar.js";
25
- import { PLUGIN_MANAGER_SYMBOL as rt } from "../plugins/hooks/usePluginManager.js";
26
- import { createPluginManager as at } from "../plugins/plugin-manager.js";
27
- import nt from "../features/sidebar/components/Sidebar.vue.js";
28
- import W from "../features/Search/SearchButton.vue.js";
29
- import it from "./Content/Content.vue.js";
30
- import lt from "../features/api-client-modal/ApiClientModal.vue.js";
31
- const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label"], ct = { class: "references-navigation-list" }, mt = { key: 0 }, ft = {
1
+ import { defineComponent as fe, computed as T, provide as S, ref as D, onBeforeMount as ve, onMounted as Y, watch as O, toValue as K, onUnmounted as pe, useId as ge, createElementBlock as f, openBlock as a, Fragment as z, createElementVNode as p, createVNode as v, normalizeStyle as he, normalizeClass as Se, unref as r, createCommentVNode as l, withDirectives as be, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as n, vShow as ye, createSlots as we } from "vue";
2
+ import { provideUseId as ke } from "@headlessui/vue";
3
+ import { OpenApiClientButton as $e } from "@scalar/api-client/components";
4
+ import { LAYOUT_SYMBOL as Me } from "@scalar/api-client/hooks";
5
+ import { WORKSPACE_SYMBOL as Te, ACTIVE_ENTITIES_SYMBOL as De } from "@scalar/api-client/store";
6
+ import { addScalarClassesToHeadless as Ce, ScalarErrorBoundary as Ee, ScalarSidebarFooter as Oe, ScalarColorModeToggleButton as Ie, ScalarColorModeToggleIcon as Be } from "@scalar/components";
7
+ import { sleep as Re } from "@scalar/helpers/testing/sleep";
8
+ import { hasObtrusiveScrollbars as Le, getThemeStyles as _e } from "@scalar/themes";
9
+ import { apiReferenceConfigurationSchema as Ae } from "@scalar/types/api-reference";
10
+ import { useBreakpoints as Pe } from "@scalar/use-hooks/useBreakpoints";
11
+ import { useToasts as He, ScalarToasts as Fe } from "@scalar/use-toasts";
12
+ import { useMediaQuery as Ne, useResizeObserver as Ve, useDebounceFn as Ue } from "@vueuse/core";
13
+ import Ye from "./ClassicHeader.vue.js";
14
+ import Ke from "./GettingStarted.vue.js";
15
+ import ze from "./MobileHeader.vue.js";
16
+ import { parse as Ge } from "../helpers/parse.js";
17
+ import { CONFIGURATION_SYMBOL as Qe } from "../hooks/useConfig.js";
18
+ import { useNavState as We } from "../hooks/useNavState.js";
19
+ import { downloadEventBus as G, downloadDocument as je } from "../libs/download.js";
20
+ import { createEmptySpecification as qe } from "../libs/openapi.js";
21
+ import { useDocumentSource as Je } from "../features/document-source/hooks/useDocumentSource.js";
22
+ import { OPENAPI_VERSION_SYMBOL as Xe } from "../features/download-link/openapi-version-symbol.js";
23
+ import { useSidebar as Ze } from "../features/sidebar/hooks/useSidebar.js";
24
+ import { PLUGIN_MANAGER_SYMBOL as xe } from "../plugins/hooks/usePluginManager.js";
25
+ import { createPluginManager as et } from "../plugins/plugin-manager.js";
26
+ import tt from "../features/sidebar/components/Sidebar.vue.js";
27
+ import Q from "../features/Search/SearchButton.vue.js";
28
+ import ot from "./Content/Content.vue.js";
29
+ import rt from "../features/api-client-modal/ApiClientModal.vue.js";
30
+ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label"], nt = { class: "references-navigation-list" }, it = { key: 0 }, dt = {
32
31
  key: 1,
33
32
  class: "scalar-api-references-standalone-search"
34
- }, vt = { key: 1 }, pt = { class: "references-editor" }, gt = { class: "references-editor-textarea" }, ht = ["aria-label"], St = {
33
+ }, ut = { key: 1 }, ct = { class: "references-editor" }, mt = { class: "references-editor-textarea" }, ft = ["aria-label"], vt = {
35
34
  key: 0,
36
35
  class: "w-64 *:!p-0 empty:hidden"
37
- }, bt = {
36
+ }, pt = {
38
37
  key: 0,
39
38
  class: "references-footer"
40
- }, Jt = /* @__PURE__ */ ge({
39
+ }, Gt = /* @__PURE__ */ fe({
41
40
  inheritAttrs: !1,
42
41
  __name: "ApiReferenceLayout",
43
42
  props: {
@@ -49,39 +48,39 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
49
48
  rawSpec: {}
50
49
  },
51
50
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
52
- setup(E) {
53
- const t = M(
54
- () => Fe.parse(E.configuration)
55
- ), { initializeToasts: j, toast: q } = Ve();
56
- j((e) => q(e));
51
+ setup(C) {
52
+ const t = T(
53
+ () => Ae.parse(C.configuration)
54
+ ), { initializeToasts: W, toast: j } = He();
55
+ W((e) => j(e));
57
56
  const {
58
- originalDocument: J,
59
- originalOpenApiVersion: X,
57
+ originalDocument: q,
58
+ originalOpenApiVersion: J,
60
59
  dereferencedDocument: u,
61
- workspaceStore: Z,
62
- activeEntitiesStore: x
63
- } = et({
60
+ workspaceStore: X,
61
+ activeEntitiesStore: Z
62
+ } = Je({
64
63
  configuration: t,
65
- dereferencedDocument: E.dereferencedDocument,
66
- originalDocument: E.originalDocument
64
+ dereferencedDocument: C.dereferencedDocument,
65
+ originalDocument: C.originalDocument
67
66
  });
68
- S(tt, X), S(Ee, Z), S(Oe, x);
69
- const ee = Ye("(min-width: 1150px)"), te = T("100dvh"), y = T(null);
70
- Ke(y, (e) => {
71
- te.value = e[0].contentRect.height + "px";
67
+ S(Xe, J), S(Te, X), S(De, Z);
68
+ const x = Ne("(min-width: 1150px)"), ee = D("100dvh"), y = D(null);
69
+ Ve(y, (e) => {
70
+ ee.value = e[0].contentRect.height + "px";
72
71
  });
73
- const oe = M(Ae), R = Je(t), { isSidebarOpen: I, setCollapsedSidebarItem: L, scrollToOperation: re, items: H } = ot(u, {
72
+ const te = T(Le), R = We(t), { isSidebarOpen: I, setCollapsedSidebarItem: L, scrollToOperation: oe, items: _ } = Ze(u, {
74
73
  ...R,
75
74
  config: t
76
75
  }), {
77
- getReferenceId: ae,
78
- getPathRoutingId: ne,
79
- getSectionId: ie,
76
+ getReferenceId: re,
77
+ getPathRoutingId: ae,
78
+ getSectionId: se,
80
79
  getTagId: le,
81
- hash: O,
82
- isIntersectionEnabled: _,
83
- updateHash: A,
84
- replaceUrlState: se
80
+ hash: E,
81
+ isIntersectionEnabled: A,
82
+ updateHash: P,
83
+ replaceUrlState: ne
85
84
  } = R;
86
85
  if (t.value.redirect && typeof window < "u") {
87
86
  const e = t.value.redirect(
@@ -89,107 +88,96 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
89
88
  );
90
89
  e && history.replaceState({}, "", e);
91
90
  }
92
- he(() => {
93
- A(), Ie();
91
+ ve(() => {
92
+ P(), Ce();
94
93
  });
95
- const P = async (e) => {
94
+ const H = async (e) => {
96
95
  var o;
97
- _.value = !1, A(), e ? re(e) : (o = y.value) == null || o.scrollTo(0, 0), await _e(100), _.value = !0;
98
- }, F = T(0);
99
- K(() => {
100
- var a, k, C;
96
+ A.value = !1, P(), e ? oe(e) : (o = y.value) == null || o.scrollTo(0, 0), await Re(100), A.value = !0;
97
+ }, F = D(0);
98
+ Y(() => {
99
+ var s, k, $;
101
100
  history.scrollRestoration = "manual";
102
- const e = (k = (a = y.value) == null ? void 0 : a.parentElement) == null ? void 0 : k.getBoundingClientRect(), o = (C = y.value) == null ? void 0 : C.getBoundingClientRect();
101
+ const e = (k = (s = y.value) == null ? void 0 : s.parentElement) == null ? void 0 : k.getBoundingClientRect(), o = ($ = y.value) == null ? void 0 : $.getBoundingClientRect();
103
102
  if (e && o) {
104
- const $ = o.top - e.top;
105
- F.value = $ < 2 ? 0 : $;
103
+ const M = o.top - e.top;
104
+ F.value = M < 2 ? 0 : M;
106
105
  }
107
106
  window.onhashchange = () => {
108
- P(ae());
109
- }, window.onpopstate = () => t.value.pathRouting && P(ne(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
107
+ H(re());
108
+ }, window.onpopstate = () => t.value.pathRouting && H(ae(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
110
109
  });
111
- const de = M(
112
- () => ee.value || !t.value.isEditable
113
- ), N = ze(() => {
114
- window.scrollY < 50 && se("");
115
- }), ue = T(!1);
116
- D(u, (e) => {
110
+ const ie = T(
111
+ () => x.value || !t.value.isEditable
112
+ ), N = Ue(() => {
113
+ window.scrollY < 50 && ne("");
114
+ }), de = D(!1);
115
+ O(u, (e) => {
117
116
  var o;
118
- if (O.value) {
119
- const a = ie(O.value);
120
- a && L(a, !0);
117
+ if (E.value) {
118
+ const s = se(E.value);
119
+ s && L(s, !0);
121
120
  } else {
122
- const a = (o = e.tags) == null ? void 0 : o[0];
123
- a && L(le(a), !0);
121
+ const s = (o = e.tags) == null ? void 0 : o[0];
122
+ s && L(le(s), !0);
124
123
  }
125
- ue.value = !0;
124
+ de.value = !0;
126
125
  });
127
- const w = T(Ze());
128
- D(
126
+ const w = D(qe());
127
+ O(
129
128
  u,
130
129
  async (e) => {
131
130
  if (!e)
132
131
  return;
133
- const o = await je(e, H.value.entries);
132
+ const o = await Ge(e, _.value.entries);
134
133
  w.value = o;
135
134
  },
136
135
  { immediate: !0 }
137
136
  );
138
- const c = M(() => {
137
+ const c = T(() => {
139
138
  var e;
140
139
  return {
141
140
  spec: w.value,
142
- breadcrumb: ((e = H.value) == null ? void 0 : e.titles.get(O.value)) ?? ""
141
+ breadcrumb: ((e = _.value) == null ? void 0 : e.titles.get(E.value)) ?? ""
143
142
  };
144
143
  });
145
- K(
146
- () => Q.on(({ filename: e, format: o }) => {
147
- Xe(
148
- z(J) || z(E.rawSpec) || "",
144
+ Y(
145
+ () => G.on(({ filename: e, format: o }) => {
146
+ je(
147
+ K(q) || K(C.rawSpec) || "",
149
148
  e,
150
149
  o
151
150
  );
152
151
  })
153
- ), Se(() => {
154
- window.removeEventListener("scroll", N), Q.reset();
155
- }), Me(() => be()), S(De, "modal"), S(qe, t), S(
156
- rt,
157
- at({
152
+ ), pe(() => {
153
+ window.removeEventListener("scroll", N), G.reset();
154
+ }), ke(() => ge()), S(Me, "modal"), S(Qe, t), S(
155
+ xe,
156
+ et({
158
157
  plugins: t.value.plugins
159
158
  })
160
159
  );
161
- function V(e, o) {
162
- D(
163
- () => t.value[e],
164
- (a) => {
165
- typeof a < "u" && o(a);
166
- },
167
- { immediate: !0 }
168
- );
169
- }
170
- const { setExcludedClients: ce, setDefaultHttpClient: me } = xe();
171
- V("defaultHttpClient", me), V("hiddenClients", ce);
172
- const fe = M(
160
+ const ue = T(
173
161
  () => `<style>
174
- ${Pe(t.value.theme, {
162
+ ${_e(t.value.theme, {
175
163
  fonts: t.value.withDefaultFonts
176
164
  })}</style>`
177
- ), { mediaQueries: ve } = Ne(), pe = !1;
178
- return D(ve.lg, (e, o) => {
165
+ ), { mediaQueries: ce } = Pe(), me = !1;
166
+ return O(ce.lg, (e, o) => {
179
167
  o && !e && (I.value = !1);
180
- }), D(O, (e, o) => {
168
+ }), O(E, (e, o) => {
181
169
  e && e !== o && (I.value = !1);
182
170
  }), (e, o) => {
183
- var a, k, C, $, U;
184
- return n(), f(G, null, [
185
- p("div", { innerHTML: fe.value }, null, 8, st),
171
+ var s, k, $, M, V;
172
+ return a(), f(z, null, [
173
+ p("div", { innerHTML: ue.value }, null, 8, at),
186
174
  p("div", {
187
175
  ref_key: "documentEl",
188
176
  ref: y,
189
- class: we(["scalar-app scalar-api-reference references-layout", [
177
+ class: Se(["scalar-app scalar-api-reference references-layout", [
190
178
  {
191
179
  "scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
192
- "scalar-scrollbars-obtrusive": oe.value,
180
+ "scalar-scrollbars-obtrusive": te.value,
193
181
  "references-editable": t.value.isEditable,
194
182
  "references-sidebar": t.value.showSidebar,
195
183
  "references-sidebar-mobile-open": r(I),
@@ -197,62 +185,62 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
197
185
  },
198
186
  e.$attrs.class
199
187
  ]]),
200
- style: ye({
188
+ style: he({
201
189
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
202
190
  })
203
191
  }, [
204
- p("div", dt, [
205
- t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (n(), b(We, {
192
+ p("div", st, [
193
+ t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), b(ze, {
206
194
  key: 0,
207
195
  breadcrumb: c.value.breadcrumb
208
- }, null, 8, ["breadcrumb"])) : i("", !0),
196
+ }, null, 8, ["breadcrumb"])) : l("", !0),
209
197
  d(e.$slots, "header", g(h(c.value)), void 0, !0)
210
198
  ]),
211
- t.value.showSidebar ? (n(), f("aside", {
199
+ t.value.showSidebar ? (a(), f("aside", {
212
200
  key: 0,
213
- "aria-label": `Sidebar for ${(k = (a = r(u)) == null ? void 0 : a.info) == null ? void 0 : k.title}`,
201
+ "aria-label": `Sidebar for ${(k = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : k.title}`,
214
202
  class: "references-navigation t-doc__sidebar"
215
203
  }, [
216
- p("div", ct, [
217
- v(r(Be), null, {
218
- default: l(() => {
219
- var s, m;
204
+ p("div", nt, [
205
+ v(r(Ee), null, {
206
+ default: n(() => {
207
+ var i, m;
220
208
  return [
221
- v(r(nt), {
222
- title: ((m = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
209
+ v(r(tt), {
210
+ title: ((m = (i = r(u)) == null ? void 0 : i.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
223
211
  }, {
224
- "sidebar-start": l(() => {
225
- var B, Y;
212
+ "sidebar-start": n(() => {
213
+ var B, U;
226
214
  return [
227
- e.$slots["document-selector"] ? (n(), f("div", mt, [
215
+ e.$slots["document-selector"] ? (a(), f("div", it, [
228
216
  d(e.$slots, "document-selector", {}, void 0, !0)
229
- ])) : i("", !0),
230
- t.value.hideSearch ? i("", !0) : (n(), f("div", ft, [
231
- v(r(W), {
217
+ ])) : l("", !0),
218
+ t.value.hideSearch ? l("", !0) : (a(), f("div", dt, [
219
+ v(r(Q), {
232
220
  searchHotKey: (B = t.value) == null ? void 0 : B.searchHotKey,
233
- hideModels: (Y = t.value) == null ? void 0 : Y.hideModels,
221
+ hideModels: (U = t.value) == null ? void 0 : U.hideModels,
234
222
  spec: w.value
235
223
  }, null, 8, ["searchHotKey", "hideModels", "spec"])
236
224
  ])),
237
225
  d(e.$slots, "sidebar-start", g(h(c.value)), void 0, !0)
238
226
  ];
239
227
  }),
240
- "sidebar-end": l(() => [
228
+ "sidebar-end": n(() => [
241
229
  d(e.$slots, "sidebar-end", g(h(c.value)), () => [
242
- v(r(Re), { class: "darklight-reference" }, {
243
- toggle: l(() => [
244
- t.value.hideDarkModeToggle ? (n(), f("span", vt)) : (n(), b(r(Le), {
230
+ v(r(Oe), { class: "darklight-reference" }, {
231
+ toggle: n(() => [
232
+ t.value.hideDarkModeToggle ? (a(), f("span", ut)) : (a(), b(r(Ie), {
245
233
  key: 0,
246
234
  modelValue: e.isDark,
247
235
  "onUpdate:modelValue": o[0] || (o[0] = (B) => e.$emit("toggleDarkMode"))
248
236
  }, null, 8, ["modelValue"]))
249
237
  ]),
250
- default: l(() => [
251
- t.value.hideClientButton ? i("", !0) : (n(), b(r(Te), {
238
+ default: n(() => [
239
+ t.value.hideClientButton ? l("", !0) : (a(), b(r($e), {
252
240
  key: 0,
253
241
  buttonSource: "sidebar",
254
242
  integration: t.value._integration,
255
- isDevelopment: pe,
243
+ isDevelopment: me,
256
244
  url: t.value.url
257
245
  }, null, 8, ["integration", "url"]))
258
246
  ]),
@@ -267,68 +255,68 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
267
255
  _: 3
268
256
  })
269
257
  ])
270
- ], 8, ut)) : i("", !0),
271
- ke(p("div", pt, [
272
- p("div", gt, [
258
+ ], 8, lt)) : l("", !0),
259
+ be(p("div", ct, [
260
+ p("div", mt, [
273
261
  d(e.$slots, "editor", g(h(c.value)), void 0, !0)
274
262
  ])
275
263
  ], 512), [
276
- [Ce, t.value.isEditable]
264
+ [ye, t.value.isEditable]
277
265
  ]),
278
- de.value ? (n(), f(G, { key: 1 }, [
266
+ ie.value ? (a(), f(z, { key: 1 }, [
279
267
  p("main", {
280
- "aria-label": `Open API Documentation for ${($ = (C = r(u)) == null ? void 0 : C.info) == null ? void 0 : $.title}`,
268
+ "aria-label": `Open API Documentation for ${(M = ($ = r(u)) == null ? void 0 : $.info) == null ? void 0 : M.title}`,
281
269
  class: "references-rendered"
282
270
  }, [
283
- v(r(it), {
271
+ v(r(ot), {
284
272
  layout: t.value.layout,
285
273
  document: r(u),
286
274
  parsedSpec: w.value
287
- }, $e({
288
- start: l(() => [
275
+ }, we({
276
+ start: n(() => [
289
277
  d(e.$slots, "content-start", g(h(c.value)), () => [
290
- t.value.layout === "classic" ? (n(), b(Ge, { key: 0 }, {
291
- "dark-mode-toggle": l(() => [
292
- t.value.hideDarkModeToggle ? i("", !0) : (n(), b(r(He), {
278
+ t.value.layout === "classic" ? (a(), b(Ye, { key: 0 }, {
279
+ "dark-mode-toggle": n(() => [
280
+ t.value.hideDarkModeToggle ? l("", !0) : (a(), b(r(Be), {
293
281
  key: 0,
294
282
  class: "text-c-2 hover:text-c-1",
295
283
  mode: e.isDark ? "dark" : "light",
296
284
  style: { transform: "scale(1.4)" },
297
285
  variant: "icon",
298
- onClick: o[1] || (o[1] = (s) => e.$emit("toggleDarkMode"))
286
+ onClick: o[1] || (o[1] = (i) => e.$emit("toggleDarkMode"))
299
287
  }, null, 8, ["mode"]))
300
288
  ]),
301
- default: l(() => {
302
- var s;
289
+ default: n(() => {
290
+ var i;
303
291
  return [
304
- e.$slots["document-selector"] ? (n(), f("div", St, [
292
+ e.$slots["document-selector"] ? (a(), f("div", vt, [
305
293
  d(e.$slots, "document-selector", {}, void 0, !0)
306
- ])) : i("", !0),
307
- t.value.hideSearch ? i("", !0) : (n(), b(r(W), {
294
+ ])) : l("", !0),
295
+ t.value.hideSearch ? l("", !0) : (a(), b(r(Q), {
308
296
  key: 1,
309
297
  class: "t-doc__sidebar max-w-64",
310
298
  searchHotKey: t.value.searchHotKey,
311
- hideModels: (s = t.value) == null ? void 0 : s.hideModels,
299
+ hideModels: (i = t.value) == null ? void 0 : i.hideModels,
312
300
  spec: w.value
313
301
  }, null, 8, ["searchHotKey", "hideModels", "spec"]))
314
302
  ];
315
303
  }),
316
304
  _: 3
317
- })) : i("", !0)
305
+ })) : l("", !0)
318
306
  ], !0)
319
307
  ]),
320
- end: l(() => [
308
+ end: n(() => [
321
309
  d(e.$slots, "content-end", g(h(c.value)), void 0, !0)
322
310
  ]),
323
311
  _: 2
324
312
  }, [
325
- (U = t.value) != null && U.isEditable ? {
313
+ (V = t.value) != null && V.isEditable ? {
326
314
  name: "empty-state",
327
- fn: l(() => {
328
- var s;
315
+ fn: n(() => {
316
+ var i;
329
317
  return [
330
- v(Qe, {
331
- theme: ((s = t.value) == null ? void 0 : s.theme) || "default",
318
+ v(Ke, {
319
+ theme: ((i = t.value) == null ? void 0 : i.theme) || "default",
332
320
  onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
333
321
  onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
334
322
  onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
@@ -339,21 +327,21 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
339
327
  key: "0"
340
328
  } : void 0
341
329
  ]), 1032, ["layout", "document", "parsedSpec"])
342
- ], 8, ht),
343
- e.$slots.footer ? (n(), f("div", bt, [
330
+ ], 8, ft),
331
+ e.$slots.footer ? (a(), f("div", pt, [
344
332
  d(e.$slots, "footer", g(h(c.value)), void 0, !0)
345
- ])) : i("", !0)
346
- ], 64)) : i("", !0),
347
- v(r(lt), {
333
+ ])) : l("", !0)
334
+ ], 64)) : l("", !0),
335
+ v(r(rt), {
348
336
  configuration: t.value,
349
337
  dereferencedDocument: r(u)
350
338
  }, null, 8, ["configuration", "dereferencedDocument"])
351
339
  ], 6),
352
- v(r(Ue))
340
+ v(r(Fe))
353
341
  ], 64);
354
342
  };
355
343
  }
356
344
  });
357
345
  export {
358
- Jt as default
346
+ Gt as default
359
347
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;WAgDT,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"}
1
+ {"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"AA8CA,iBAAS,cAAc;WAgDT,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"}
@@ -1,13 +1,13 @@
1
1
  import { createElementBlock as t, openBlock as o, renderSlot as r } from "vue";
2
2
  /* empty css */
3
3
  import c from "../../_virtual/_plugin-vue_export-helper.js";
4
- const n = {}, d = { class: "badge" };
4
+ const d = {}, n = { class: "badge" };
5
5
  function s(e, a) {
6
- return o(), t("div", d, [
6
+ return o(), t("div", n, [
7
7
  r(e.$slots, "default", {}, void 0, !0)
8
8
  ]);
9
9
  }
10
- const l = /* @__PURE__ */ c(n, [["render", s], ["__scopeId", "data-v-2a0118c0"]]);
10
+ const l = /* @__PURE__ */ c(d, [["render", s], ["__scopeId", "data-v-f1bc5cda"]]);
11
11
  export {
12
12
  l as default
13
13
  };
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ff689cb1"]]);
5
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-848f1f5e"]]);
6
6
  export {
7
- _ as default
7
+ e as default
8
8
  };