@scalar/api-reference 1.35.1 → 1.35.3

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 (165) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/browser/standalone.js +13534 -13691
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts +2 -1
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +14 -11
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +70 -72
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +3 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.d.ts +0 -2
  13. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Content.vue.js +80 -80
  15. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +5 -2
  16. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  18. package/dist/components/Content/Models/ClassicLayout.vue2.js +43 -45
  19. package/dist/components/Content/Models/ClassicLayout.vue3.js +2 -2
  20. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +27 -20
  23. package/dist/components/Content/Models/ModernLayout.vue.d.ts +5 -2
  24. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  26. package/dist/components/Content/Models/ModernLayout.vue2.js +48 -52
  27. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +3 -2
  28. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Operations/TraversedEntry.vue.js +33 -32
  30. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +2 -2
  31. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
  33. package/dist/components/Content/Schema/Schema.vue.d.ts +6 -22
  34. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  36. package/dist/components/Content/Schema/Schema.vue2.js +86 -140
  37. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +15 -4
  38. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaComposition.vue.js +77 -138
  40. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +2 -13
  41. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +2 -2
  43. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +66 -92
  44. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  45. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  47. package/dist/components/Content/Schema/SchemaHeading.vue2.js +19 -17
  48. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +5 -14
  49. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  50. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +47 -68
  51. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -13
  52. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  54. package/dist/components/Content/Schema/SchemaProperty.vue2.js +116 -144
  55. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +1 -1
  56. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  57. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  58. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +9 -4
  59. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  60. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  61. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +173 -204
  62. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +11 -0
  63. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -0
  64. package/dist/components/Content/Schema/helpers/get-ref-name.js +11 -0
  65. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +13 -3
  66. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
  67. package/dist/components/Content/Schema/helpers/get-schema-type.js +34 -13
  68. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +4 -2
  69. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
  70. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -4
  71. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  72. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +130 -84
  73. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts +5 -5
  74. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  75. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +40 -31
  76. package/dist/components/Content/Schema/helpers/schema-composition.d.ts +0 -8
  77. package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -1
  78. package/dist/components/Content/Schema/helpers/schema-composition.js +2 -6
  79. package/dist/components/Content/Schema/helpers/schema-name.d.ts +8 -17
  80. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  81. package/dist/components/Content/Schema/helpers/schema-name.js +24 -33
  82. package/dist/features/Operation/Operation.vue.d.ts +3 -4
  83. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/Operation.vue.js +54 -73
  85. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +10 -11
  86. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/ContentTypeSelect.vue.js +35 -43
  88. package/dist/features/Operation/components/{ParameterHeaders.vue.d.ts → Header.vue.d.ts} +4 -5
  89. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -0
  90. package/dist/features/Operation/components/Header.vue.js +23 -0
  91. package/dist/features/Operation/components/Header.vue2.js +4 -0
  92. package/dist/features/Operation/components/Headers.vue.d.ts +8 -0
  93. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -0
  94. package/dist/features/Operation/components/Headers.vue.js +7 -0
  95. package/dist/features/Operation/components/Headers.vue2.js +61 -0
  96. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -10
  97. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/OperationParameters.vue.js +23 -33
  99. package/dist/features/Operation/components/OperationResponses.vue.d.ts +3 -6
  100. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  101. package/dist/features/Operation/components/OperationResponses.vue.js +22 -19
  102. package/dist/features/Operation/components/ParameterList.vue.d.ts +3 -10
  103. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/components/ParameterList.vue.js +35 -5
  105. package/dist/features/Operation/components/ParameterList.vue2.js +2 -38
  106. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +4 -10
  107. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  109. package/dist/features/Operation/components/ParameterListItem.vue2.js +77 -74
  110. package/dist/features/Operation/components/RequestBody.vue.d.ts +3 -8
  111. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  112. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  113. package/dist/features/Operation/components/RequestBody.vue2.js +75 -82
  114. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +0 -4
  115. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  116. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  117. package/dist/features/Operation/components/callbacks/Callback.vue2.js +35 -36
  118. package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
  119. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +0 -2
  120. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  121. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +13 -15
  122. package/dist/features/Operation/helpers/combine-params.d.ts +1 -1
  123. package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
  124. package/dist/features/Operation/helpers/combine-params.js +2 -2
  125. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -9
  126. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  127. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  128. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +75 -82
  129. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -10
  130. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  131. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  132. package/dist/features/Operation/layouts/ModernLayout.vue2.js +96 -103
  133. package/dist/index.js +1 -1
  134. package/dist/libs/openapi.d.ts +1 -13
  135. package/dist/libs/openapi.d.ts.map +1 -1
  136. package/dist/libs/openapi.js +39 -56
  137. package/dist/style.css +1 -1
  138. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +10 -4
  139. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  140. package/dist/v2/ApiReferenceWorkspace.vue.js +22 -18
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  143. package/package.json +14 -14
  144. package/dist/components/Content/Schema/Schema.preview.d.ts +0 -1078
  145. package/dist/components/Content/Schema/Schema.preview.d.ts.map +0 -1
  146. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +0 -12
  147. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
  148. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -49
  149. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -4
  150. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +0 -13
  151. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +0 -1
  152. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +0 -1
  153. package/dist/features/Operation/components/ParameterHeaders.vue.js +0 -7
  154. package/dist/features/Operation/components/ParameterHeaders.vue2.js +0 -64
  155. package/dist/features/Operation/components/ParameterList.vue3.js +0 -4
  156. package/dist/features/Operation/hooks/useResponses.d.ts +0 -17
  157. package/dist/features/Operation/hooks/useResponses.d.ts.map +0 -1
  158. package/dist/features/Operation/hooks/useResponses.js +0 -19
  159. package/dist/hooks/useDiscriminator.d.ts +0 -53
  160. package/dist/hooks/useDiscriminator.d.ts.map +0 -1
  161. package/dist/hooks/useDiscriminator.js +0 -149
  162. package/dist/hooks/useOperationDiscriminator.d.ts +0 -8
  163. package/dist/hooks/useOperationDiscriminator.d.ts.map +0 -1
  164. package/dist/hooks/useOperationDiscriminator.js +0 -57
  165. /package/dist/features/Operation/components/{ParameterHeaders.vue3.js → Headers.vue3.js} +0 -0
@@ -8,10 +8,11 @@ type __VLS_Props = {
8
8
  };
9
9
  /** These slots render in their respective slots in the underlying ApiReferenceWorkspace component */
10
10
  type __VLS_Slots = {
11
- footer?(): unknown;
11
+ 'content-start'?(): unknown;
12
12
  'content-end'?(): unknown;
13
13
  'sidebar-start'?(): unknown;
14
14
  'sidebar-end'?(): unknown;
15
+ footer?(): unknown;
15
16
  };
16
17
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
18
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAK/E,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,qGAAqG;AACrG,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,IAAI,OAAO,CAAA;IAClB,aAAa,CAAC,IAAI,OAAO,CAAA;IACzB,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,aAAa,CAAC,IAAI,OAAO,CAAA;CAC1B,CAAC;AA4EF,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAK/E,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,qGAAqG;AACrG,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,aAAa,CAAC,IAAI,OAAO,CAAA;IACzB,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,aAAa,CAAC,IAAI,OAAO,CAAA;IACzB,MAAM,CAAC,IAAI,OAAO,CAAA;CACnB,CAAC;AAiFF,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,34 +1,37 @@
1
- import { defineComponent as n, createBlock as s, openBlock as i, unref as a, withCtx as e, renderSlot as r } from "vue";
1
+ import { defineComponent as n, createBlock as s, openBlock as a, unref as i, withCtx as e, renderSlot as t } from "vue";
2
2
  import { createWorkspaceStore as f } from "@scalar/workspace-store/client";
3
3
  import p from "../v2/ApiReferenceWorkspace.vue.js";
4
4
  import "../v2/ApiReferenceWorkspace.vue2.js";
5
- const _ = /* @__PURE__ */ n({
5
+ const $ = /* @__PURE__ */ n({
6
6
  __name: "ApiReference",
7
7
  props: {
8
8
  configuration: {}
9
9
  },
10
10
  setup(c) {
11
- const t = f();
12
- return typeof window < "u" && (window.dataDumpWorkspace = () => t), (o, d) => (i(), s(p, {
11
+ const r = f();
12
+ return typeof window < "u" && (window.dataDumpWorkspace = () => r), (o, d) => (a(), s(p, {
13
13
  configuration: o.configuration,
14
- store: a(t)
14
+ store: i(r)
15
15
  }, {
16
- footer: e(() => [
17
- r(o.$slots, "footer")
16
+ "content-start": e(() => [
17
+ t(o.$slots, "content-start")
18
18
  ]),
19
19
  "content-end": e(() => [
20
- r(o.$slots, "content-end")
20
+ t(o.$slots, "content-end")
21
21
  ]),
22
22
  "sidebar-start": e(() => [
23
- r(o.$slots, "sidebar-start")
23
+ t(o.$slots, "sidebar-start")
24
24
  ]),
25
25
  "sidebar-end": e(() => [
26
- r(o.$slots, "sidebar-end")
26
+ t(o.$slots, "sidebar-end")
27
+ ]),
28
+ footer: e(() => [
29
+ t(o.$slots, "footer")
27
30
  ]),
28
31
  _: 3
29
32
  }, 8, ["configuration", "store"]));
30
33
  }
31
34
  });
32
35
  export {
33
- _ as default
36
+ $ as default
34
37
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAirBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA4BvB,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AA0ChB,KAAK,WAAW,GAAG;KACd,CAAC,IAAI,mBAAmB,GAAG,CAAC,KAAK,EAAE,kBAAkB,KAAK,GAAG;CAC/D,GAAG;IAAE,mBAAmB,EAAE,GAAG,CAAA;CAAE,CAAC;AAgpBnC,QAAA,MAAM,eAAe;;YAhrBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAurB9D,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,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+qBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA4BvB,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AA0ChB,KAAK,WAAW,GAAG;KACd,CAAC,IAAI,mBAAmB,GAAG,CAAC,KAAK,EAAE,kBAAkB,KAAK,GAAG;CAC/D,GAAG;IAAE,mBAAmB,EAAE,GAAG,CAAA;CAAE,CAAC;AA8oBnC,QAAA,MAAM,eAAe;;YA9qBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAqrB9D,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -4,7 +4,7 @@ import "./ApiReferenceLayout.vue4.js";
4
4
  import "./ApiReferenceLayout.vue5.js";
5
5
  import "./ApiReferenceLayout.vue6.js";
6
6
  import t from "../_virtual/_plugin-vue_export-helper.js";
7
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2a885720"]]);
7
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3cb06588"]]);
8
8
  export {
9
- f as default
9
+ c as default
10
10
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as ne, computed as $, provide as T, ref as D, onBeforeMount as le, onMounted as de, watch as B, onUnmounted as ue, useId as ce, createElementBlock as f, openBlock as s, Fragment as Y, createElementVNode as h, createVNode as v, normalizeStyle as me, normalizeClass as fe, unref as r, createCommentVNode as i, withDirectives as ve, createBlock as w, renderSlot as d, normalizeProps as S, guardReactiveProps as b, withCtx as n, vShow as ge, createSlots as pe } from "vue";
1
+ import { defineComponent as le, computed as $, provide as T, ref as D, onBeforeMount as ne, onMounted as de, watch as B, onUnmounted as ue, useId as ce, createElementBlock as f, openBlock as s, Fragment as Y, createElementVNode as p, createVNode as v, normalizeStyle as me, normalizeClass as fe, unref as r, createCommentVNode as i, withDirectives as ve, createBlock as w, renderSlot as d, normalizeProps as h, guardReactiveProps as S, withCtx as l, vShow as ge, createSlots as pe } from "vue";
2
2
  import { provideUseId as he } from "@headlessui/vue";
3
3
  import { OpenApiClientButton as Se } from "@scalar/api-client/components";
4
4
  import { LAYOUT_SYMBOL as be } from "@scalar/api-client/hooks";
@@ -29,13 +29,13 @@ import Je from "../features/api-client-modal/ApiClientModal.vue.js";
29
29
  const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label"], et = { class: "references-navigation-list" }, tt = { key: 0 }, ot = {
30
30
  key: 1,
31
31
  class: "scalar-api-references-standalone-search"
32
- }, rt = { key: 1 }, at = { class: "references-editor" }, st = { class: "references-editor-textarea" }, it = ["aria-label"], nt = {
32
+ }, rt = { key: 1 }, at = { class: "references-editor" }, st = { class: "references-editor-textarea" }, it = ["aria-label"], lt = {
33
33
  key: 0,
34
34
  class: "w-64 *:!p-0 empty:hidden"
35
- }, lt = {
35
+ }, nt = {
36
36
  key: 0,
37
37
  class: "references-footer"
38
- }, Ft = /* @__PURE__ */ ne({
38
+ }, Ft = /* @__PURE__ */ le({
39
39
  inheritAttrs: !1,
40
40
  __name: "ApiReferenceLayout",
41
41
  props: {
@@ -52,7 +52,7 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
52
52
  () => Le.parse(M.configuration)
53
53
  ), { initializeToasts: G, toast: Q } = Oe();
54
54
  G((e) => Q(e));
55
- const { dereferencedDocument: g, workspaceStore: O, activeEntitiesStore: R } = ze({
55
+ const { dereferencedDocument: b, workspaceStore: O, activeEntitiesStore: R } = ze({
56
56
  configuration: t,
57
57
  dereferencedDocument: M.dereferencedDocument,
58
58
  originalDocument: M.originalDocument
@@ -62,7 +62,7 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
62
62
  He(y, (e) => {
63
63
  j.value = e[0] ? e[0].contentRect.height + "px" : "100dvh";
64
64
  });
65
- const q = $(Ee), _ = Ve(t), { isSidebarOpen: E, setCollapsedSidebarItem: I, scrollToOperation: J, items: H } = Ge(g, {
65
+ const q = $(Ee), _ = Ve(t), { isSidebarOpen: E, setCollapsedSidebarItem: I, scrollToOperation: J, items: H } = Ge(b, {
66
66
  ..._,
67
67
  config: t
68
68
  }), {
@@ -81,7 +81,7 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
81
81
  );
82
82
  e && history.replaceState({}, "", e);
83
83
  }
84
- le(() => {
84
+ ne(() => {
85
85
  F(), ke();
86
86
  });
87
87
  const P = async (e) => {
@@ -89,9 +89,9 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
89
89
  A.value = !1, F(), e ? J(e) : (o = y.value) == null || o.scrollTo(0, 0), await De(100), A.value = !0;
90
90
  }, N = D(0);
91
91
  de(() => {
92
- var c, a, p;
92
+ var c, a, g;
93
93
  history.scrollRestoration = "manual";
94
- const e = (a = (c = y.value) == null ? void 0 : c.parentElement) == null ? void 0 : a.getBoundingClientRect(), o = (p = y.value) == null ? void 0 : p.getBoundingClientRect();
94
+ const e = (a = (c = y.value) == null ? void 0 : c.parentElement) == null ? void 0 : a.getBoundingClientRect(), o = (g = y.value) == null ? void 0 : g.getBoundingClientRect();
95
95
  if (e && o) {
96
96
  const k = o.top - e.top;
97
97
  N.value = k < 2 ? 0 : k;
@@ -105,7 +105,7 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
105
105
  ), U = Ae(() => {
106
106
  window.scrollY < 50 && Ne.value && te("");
107
107
  }), re = D(!1);
108
- B(g, (e) => {
108
+ B(b, (e) => {
109
109
  var o, c;
110
110
  if (C.value) {
111
111
  const a = x(C.value);
@@ -114,7 +114,7 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
114
114
  const a = (c = e.tags) == null ? void 0 : c[0];
115
115
  a && I(ee(a), !0);
116
116
  } else {
117
- const a = H.value.entries.find((p) => "tag" in p);
117
+ const a = H.value.entries.find((g) => "tag" in g);
118
118
  a && I(a.id, !0);
119
119
  }
120
120
  re.value = !0;
@@ -144,10 +144,10 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
144
144
  }), B(C, (e, o) => {
145
145
  e && e !== o && (E.value = !1);
146
146
  }), Ye(M.store, O, R, y), (e, o) => {
147
- var c, a, p, k, K;
147
+ var c, a, g, k, K;
148
148
  return s(), f(Y, null, [
149
- h("div", { innerHTML: ae.value }, null, 8, Xe),
150
- h("div", {
149
+ p("div", { innerHTML: ae.value }, null, 8, Xe),
150
+ p("div", {
151
151
  ref_key: "documentEl",
152
152
  ref: y,
153
153
  class: fe(["scalar-app scalar-api-reference references-layout", [
@@ -165,27 +165,27 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
165
165
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${N.value}px)`
166
166
  })
167
167
  }, [
168
- h("div", Ze, [
168
+ p("div", Ze, [
169
169
  t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (s(), w(Ue, {
170
170
  key: 0,
171
171
  breadcrumb: u.value.breadcrumb
172
172
  }, null, 8, ["breadcrumb"])) : i("", !0),
173
- d(e.$slots, "header", S(b(u.value)), void 0, !0)
173
+ d(e.$slots, "header", h(S(u.value)), void 0, !0)
174
174
  ]),
175
175
  t.value.showSidebar ? (s(), f("aside", {
176
176
  key: 0,
177
- "aria-label": `Sidebar for ${(a = (c = r(g)) == null ? void 0 : c.info) == null ? void 0 : a.title}`,
177
+ "aria-label": `Sidebar for ${(a = (c = r(b)) == null ? void 0 : c.info) == null ? void 0 : a.title}`,
178
178
  class: "references-navigation t-doc__sidebar"
179
179
  }, [
180
- h("div", et, [
180
+ p("div", et, [
181
181
  v(r($e), null, {
182
- default: n(() => {
183
- var l, m;
182
+ default: l(() => {
183
+ var n, m;
184
184
  return [
185
185
  v(r(je), {
186
- title: ((m = (l = r(g)) == null ? void 0 : l.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
186
+ title: ((m = (n = r(b)) == null ? void 0 : n.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
187
187
  }, {
188
- "sidebar-start": n(() => {
188
+ "sidebar-start": l(() => {
189
189
  var L, V;
190
190
  return [
191
191
  e.$slots["document-selector"] ? (s(), f("div", tt, [
@@ -197,20 +197,20 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
197
197
  searchHotKey: (V = t.value) == null ? void 0 : V.searchHotKey
198
198
  }, null, 8, ["hideModels", "searchHotKey"])
199
199
  ])),
200
- d(e.$slots, "sidebar-start", S(b(u.value)), void 0, !0)
200
+ d(e.$slots, "sidebar-start", h(S(u.value)), void 0, !0)
201
201
  ];
202
202
  }),
203
- "sidebar-end": n(() => [
204
- d(e.$slots, "sidebar-end", S(b(u.value)), () => [
203
+ "sidebar-end": l(() => [
204
+ d(e.$slots, "sidebar-end", h(S(u.value)), () => [
205
205
  v(r(Te), { class: "darklight-reference" }, {
206
- toggle: n(() => [
206
+ toggle: l(() => [
207
207
  t.value.hideDarkModeToggle ? (s(), f("span", rt)) : (s(), w(r(Me), {
208
208
  key: 0,
209
209
  modelValue: e.isDark,
210
210
  "onUpdate:modelValue": o[0] || (o[0] = (L) => e.$emit("toggleDarkMode"))
211
211
  }, null, 8, ["modelValue"]))
212
212
  ]),
213
- default: n(() => [
213
+ default: l(() => [
214
214
  t.value.hideClientButton ? i("", !0) : (s(), w(r(Se), {
215
215
  key: 0,
216
216
  buttonSource: "sidebar",
@@ -231,66 +231,64 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
231
231
  })
232
232
  ])
233
233
  ], 8, xe)) : i("", !0),
234
- ve(h("div", at, [
235
- h("div", st, [
236
- d(e.$slots, "editor", S(b(u.value)), void 0, !0)
234
+ ve(p("div", at, [
235
+ p("div", st, [
236
+ d(e.$slots, "editor", h(S(u.value)), void 0, !0)
237
237
  ])
238
238
  ], 512), [
239
239
  [ge, t.value.isEditable]
240
240
  ]),
241
241
  oe.value ? (s(), f(Y, { key: 1 }, [
242
- h("main", {
243
- "aria-label": `Open API Documentation for ${(k = (p = r(g)) == null ? void 0 : p.info) == null ? void 0 : k.title}`,
242
+ p("main", {
243
+ "aria-label": `Open API Documentation for ${(k = (g = r(b)) == null ? void 0 : g.info) == null ? void 0 : k.title}`,
244
244
  class: "references-rendered"
245
245
  }, [
246
246
  v(r(qe), {
247
247
  config: t.value,
248
- document: r(g),
249
248
  store: e.store
250
249
  }, pe({
251
- start: n(() => [
252
- d(e.$slots, "content-start", S(b(u.value)), () => [
253
- t.value.layout === "classic" ? (s(), w(Fe, { key: 0 }, {
254
- "dark-mode-toggle": n(() => [
255
- t.value.hideDarkModeToggle ? i("", !0) : (s(), w(r(Ce), {
256
- key: 0,
257
- class: "text-c-2 hover:text-c-1",
258
- mode: e.isDark ? "dark" : "light",
259
- style: { transform: "scale(1.4)" },
260
- variant: "icon",
261
- onClick: o[1] || (o[1] = (l) => e.$emit("toggleDarkMode"))
262
- }, null, 8, ["mode"]))
263
- ]),
264
- default: n(() => {
265
- var l;
266
- return [
267
- e.$slots["document-selector"] ? (s(), f("div", nt, [
268
- d(e.$slots, "document-selector", {}, void 0, !0)
269
- ])) : i("", !0),
270
- t.value.hideSearch ? i("", !0) : (s(), w(r(z), {
271
- key: 1,
272
- class: "t-doc__sidebar max-w-64",
273
- hideModels: (l = t.value) == null ? void 0 : l.hideModels,
274
- searchHotKey: t.value.searchHotKey
275
- }, null, 8, ["hideModels", "searchHotKey"]))
276
- ];
277
- }),
278
- _: 3
279
- })) : i("", !0)
280
- ], !0)
250
+ start: l(() => [
251
+ d(e.$slots, "content-start", h(S(u.value)), void 0, !0),
252
+ t.value.layout === "classic" ? (s(), w(Fe, { key: 0 }, {
253
+ "dark-mode-toggle": l(() => [
254
+ t.value.hideDarkModeToggle ? i("", !0) : (s(), w(r(Ce), {
255
+ key: 0,
256
+ class: "text-c-2 hover:text-c-1",
257
+ mode: e.isDark ? "dark" : "light",
258
+ style: { transform: "scale(1.4)" },
259
+ variant: "icon",
260
+ onClick: o[1] || (o[1] = (n) => e.$emit("toggleDarkMode"))
261
+ }, null, 8, ["mode"]))
262
+ ]),
263
+ default: l(() => {
264
+ var n;
265
+ return [
266
+ e.$slots["document-selector"] ? (s(), f("div", lt, [
267
+ d(e.$slots, "document-selector", {}, void 0, !0)
268
+ ])) : i("", !0),
269
+ t.value.hideSearch ? i("", !0) : (s(), w(r(z), {
270
+ key: 1,
271
+ class: "t-doc__sidebar max-w-64",
272
+ hideModels: (n = t.value) == null ? void 0 : n.hideModels,
273
+ searchHotKey: t.value.searchHotKey
274
+ }, null, 8, ["hideModels", "searchHotKey"]))
275
+ ];
276
+ }),
277
+ _: 3
278
+ })) : i("", !0)
281
279
  ]),
282
- end: n(() => [
283
- d(e.$slots, "content-end", S(b(u.value)), void 0, !0)
280
+ end: l(() => [
281
+ d(e.$slots, "content-end", h(S(u.value)), void 0, !0)
284
282
  ]),
285
283
  _: 2
286
284
  }, [
287
285
  (K = t.value) != null && K.isEditable ? {
288
286
  name: "empty-state",
289
- fn: n(() => {
290
- var l;
287
+ fn: l(() => {
288
+ var n;
291
289
  return [
292
290
  v(Pe, {
293
- theme: ((l = t.value) == null ? void 0 : l.theme) || "default",
291
+ theme: ((n = t.value) == null ? void 0 : n.theme) || "default",
294
292
  onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
295
293
  onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
296
294
  onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
@@ -300,15 +298,15 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
300
298
  }),
301
299
  key: "0"
302
300
  } : void 0
303
- ]), 1032, ["config", "document", "store"])
301
+ ]), 1032, ["config", "store"])
304
302
  ], 8, it),
305
- e.$slots.footer ? (s(), f("div", lt, [
306
- d(e.$slots, "footer", S(b(u.value)), void 0, !0)
303
+ e.$slots.footer ? (s(), f("div", nt, [
304
+ d(e.$slots, "footer", h(S(u.value)), void 0, !0)
307
305
  ])) : i("", !0)
308
306
  ], 64)) : i("", !0),
309
307
  v(r(Je), {
310
308
  configuration: t.value,
311
- dereferencedDocument: r(g)
309
+ dereferencedDocument: r(b)
312
310
  }, null, 8, ["configuration", "dereferencedDocument"])
313
311
  ], 6),
314
312
  v(r(Re))
@@ -9,6 +9,8 @@ type __VLS_Props = {
9
9
  /** The currently selected Http Client */
10
10
  selectedClient?: AvailableClients[number];
11
11
  };
12
- 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>;
12
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
13
+ selectedClientOption: import("vue").ComputedRef<import("../../../v2/blocks/scalar-request-example-block/types").ClientOption>;
14
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
15
  export default _default;
14
16
  //# sourceMappingURL=ClientLibraries.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":"AAsMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAIlF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAKvF,KAAK,WAAW,GAAG;IACjB,sCAAsC;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC1C,CAAC;;AAqRF,wBAMG"}
1
+ {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAIlF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAKvF,KAAK,WAAW,GAAG;IACjB,sCAAsC;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC1C,CAAC;;;;AA0RF,wBAOG"}
@@ -1,8 +1,6 @@
1
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
1
  import type { ApiReferenceConfiguration } from '@scalar/types';
3
2
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
4
3
  type __VLS_Props = {
5
- document: OpenAPIV3_1.Document;
6
4
  config: ApiReferenceConfiguration;
7
5
  store: WorkspaceStore;
8
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA6MA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAmBpE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,EAAE,yBAAyB,CAAA;IACjC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AAsUF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAuC5C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA4MA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAmBpE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AAwUF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAuC5C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}