@scalar/api-reference 1.34.2 → 1.34.4

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 (112) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/README.md +1 -1
  3. package/dist/browser/standalone.js +13120 -12730
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/Badge/Badge.vue.d.ts +4 -1
  6. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  7. package/dist/components/Badge/Badge.vue.js +5 -11
  8. package/dist/components/Badge/Badge.vue2.js +22 -2
  9. package/dist/components/Badge/Badge.vue3.js +4 -0
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  13. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Models/Models.vue.js +30 -31
  15. package/dist/components/Content/Models/ModernLayout.vue.d.ts +2 -0
  16. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  18. package/dist/components/Content/Models/ModernLayout.vue2.js +39 -37
  19. package/dist/components/Content/Operations/TraversedEntry.vue.js +12 -12
  20. package/dist/components/Content/Tags/TagSection.vue.js +6 -6
  21. package/dist/components/GettingStarted.vue.js +3 -3
  22. package/dist/components/GettingStarted.vue2.js +21 -21
  23. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  24. package/dist/components/MobileHeader.vue.js +3 -3
  25. package/dist/components/Section/CompactSection.vue.d.ts +2 -0
  26. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  27. package/dist/components/Section/CompactSection.vue.js +1 -1
  28. package/dist/components/Section/CompactSection.vue2.js +30 -29
  29. package/dist/features/Operation/Operation.vue.d.ts +2 -1
  30. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  31. package/dist/features/Operation/Operation.vue.js +53 -52
  32. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -2
  33. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  34. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  35. package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
  36. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  37. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +16 -16
  38. package/dist/features/Operation/helpers/combine-params.d.ts +5 -0
  39. package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -0
  40. package/dist/features/Operation/helpers/combine-params.js +13 -0
  41. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +3 -4
  42. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  43. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  44. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +59 -50
  45. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +2 -2
  46. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +3 -4
  47. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  48. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  49. package/dist/features/Operation/layouts/ModernLayout.vue2.js +94 -78
  50. package/dist/features/Search/helpers/create-fuse-instance.d.ts.map +1 -1
  51. package/dist/features/Search/helpers/create-fuse-instance.js +0 -3
  52. package/dist/features/api-client-modal/ApiClientModal.vue.js +9 -9
  53. package/dist/features/api-client-modal/useApiClient.d.ts +100 -100
  54. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  55. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
  56. package/dist/features/document-source/hooks/useDocumentFetcher.js +16 -18
  57. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
  58. package/dist/features/document-source/hooks/useDocumentSource.js +30 -33
  59. package/dist/features/example-responses/ExampleResponse.vue.d.ts +1 -1
  60. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  61. package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
  62. package/dist/features/example-responses/ExampleResponse.vue2.js +15 -13
  63. package/dist/features/example-responses/ExampleResponses.vue.d.ts +2 -3
  64. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  65. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  66. package/dist/features/example-responses/ExampleResponses.vue2.js +73 -69
  67. package/dist/features/example-responses/helpers/get-resolved-ref-deep.d.ts +26 -0
  68. package/dist/features/example-responses/helpers/get-resolved-ref-deep.d.ts.map +1 -0
  69. package/dist/features/example-responses/helpers/get-resolved-ref-deep.js +29 -0
  70. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
  71. package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
  72. package/dist/features/sidebar/components/SidebarElement.vue2.js +6 -6
  73. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
  74. package/dist/features/sidebar/helpers/create-sidebar.js +13 -14
  75. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +1 -2
  76. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  77. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  78. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
  79. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
  80. package/dist/features/traverse-schema/types.d.ts +11 -12
  81. package/dist/features/traverse-schema/types.d.ts.map +1 -1
  82. package/dist/features/x-badges/XBadges.vue.d.ts +8 -0
  83. package/dist/features/x-badges/XBadges.vue.d.ts.map +1 -0
  84. package/dist/features/x-badges/XBadges.vue.js +26 -0
  85. package/dist/features/x-badges/XBadges.vue2.js +4 -0
  86. package/dist/features/x-badges/index.d.ts +2 -0
  87. package/dist/features/x-badges/index.d.ts.map +1 -0
  88. package/dist/helpers/test-utils.d.ts +1 -1
  89. package/dist/helpers/test-utils.d.ts.map +1 -1
  90. package/dist/hooks/useNavState.d.ts +1 -2
  91. package/dist/hooks/useNavState.d.ts.map +1 -1
  92. package/dist/index.js +1 -1
  93. package/dist/libs/openapi.d.ts +4 -14
  94. package/dist/libs/openapi.d.ts.map +1 -1
  95. package/dist/libs/openapi.js +55 -36
  96. package/dist/style.css +1 -1
  97. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  98. package/dist/v2/ApiReferenceWorkspace.vue.js +64 -64
  99. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +1 -2
  100. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  101. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +2 -2
  102. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +97 -100
  103. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +1 -2
  104. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +1 -1
  105. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +17 -20
  106. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
  107. package/dist/v2/helpers/map-configuration.d.ts +66 -0
  108. package/dist/v2/helpers/map-configuration.d.ts.map +1 -0
  109. package/dist/v2/helpers/map-configuration.js +53 -0
  110. package/dist/vitest.setup.d.ts +2 -0
  111. package/dist/vitest.setup.d.ts.map +1 -0
  112. package/package.json +24 -20
@@ -1,3 +1,6 @@
1
+ type __VLS_Props = {
2
+ color?: string;
3
+ };
1
4
  declare function __VLS_template(): {
2
5
  attrs: Partial<{}>;
3
6
  slots: {
@@ -7,7 +10,7 @@ declare function __VLS_template(): {
7
10
  rootEl: HTMLDivElement;
8
11
  };
9
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
13
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
11
14
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
15
  export default _default;
13
16
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
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
+ {"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAkBF,iBAAS,cAAc;WAgDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,13 +1,7 @@
1
- import { createElementBlock as t, openBlock as o, renderSlot as r } from "vue";
2
- import "./Badge.vue2.js";
3
- import c from "../../_virtual/_plugin-vue_export-helper.js";
4
- const d = {}, n = { class: "badge" };
5
- function s(e, a) {
6
- return o(), t("div", n, [
7
- r(e.$slots, "default", {}, void 0, !0)
8
- ]);
9
- }
10
- const l = /* @__PURE__ */ c(d, [["render", s], ["__scopeId", "data-v-f1bc5cda"]]);
1
+ import o from "./Badge.vue2.js";
2
+ import "./Badge.vue3.js";
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3dedb7e4"]]);
11
5
  export {
12
- l as default
6
+ d as default
13
7
  };
@@ -1,4 +1,24 @@
1
- const e = "";
1
+ import { defineComponent as t, computed as r, createElementBlock as c, openBlock as a, normalizeStyle as n, renderSlot as d } from "vue";
2
+ const u = /* @__PURE__ */ t({
3
+ __name: "Badge",
4
+ props: {
5
+ color: {}
6
+ },
7
+ setup(e) {
8
+ const o = r(
9
+ () => e.color ? {
10
+ "--badge-background-color": e.color,
11
+ "--badge-text-color": `color-mix(in srgb, ${e.color}, black 40%)`
12
+ } : {}
13
+ );
14
+ return (l, s) => (a(), c("div", {
15
+ class: "badge",
16
+ style: n(o.value)
17
+ }, [
18
+ d(l.$slots, "default", {}, void 0, !0)
19
+ ], 4));
20
+ }
21
+ });
2
22
  export {
3
- e as default
23
+ u as default
4
24
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,5 +1,5 @@
1
1
  import type { AvailableClients } from '@scalar/snippetz';
2
- import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/schemas/workspace';
2
+ import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
3
3
  import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
4
4
  type __VLS_Props = {
5
5
  /** Current document from the store */
@@ -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;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAA;AAI1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAQvF,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;;;;AA8PF,wBAOG"}
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;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAIlF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAQvF,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;;;;AA8PF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientLibraries.vue2.js";
2
2
  import "./ClientLibraries.vue3.js";
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-798b4d3b"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8021c330"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAU9D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AAoFF,wBAMG"}
1
+ {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAY9D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AAyFF,wBAMG"}
@@ -1,40 +1,39 @@
1
- import { defineComponent as r, createBlock as o, createCommentVNode as i, openBlock as s, unref as m, withCtx as u } from "vue";
2
- import { useNavState as p } from "../../../hooks/useNavState.js";
3
- import l from "./ClassicLayout.vue.js";
4
- import d from "./ModernLayout.vue.js";
5
- import f from "../../Lazy/Lazy.vue2.js";
6
- const g = /* @__PURE__ */ r({
1
+ import { defineComponent as r, computed as i, createBlock as o, createCommentVNode as l, openBlock as t, unref as s, withCtx as u } from "vue";
2
+ import { useNavState as f } from "../../../hooks/useNavState.js";
3
+ import { getModels as d } from "../../../libs/openapi.js";
4
+ import p from "./ClassicLayout.vue.js";
5
+ import h from "./ModernLayout.vue.js";
6
+ import y from "../../Lazy/Lazy.vue2.js";
7
+ const M = /* @__PURE__ */ r({
7
8
  __name: "Models",
8
9
  props: {
9
10
  document: {},
10
11
  config: {}
11
12
  },
12
- setup(h) {
13
- const { hash: t } = p();
14
- return (e, y) => {
15
- var n, a;
16
- return (a = (n = e.document) == null ? void 0 : n.components) != null && a.schemas ? (s(), o(m(f), {
17
- key: 0,
18
- id: "models",
19
- isLazy: !!m(t) && !m(t).startsWith("model")
20
- }, {
21
- default: u(() => {
22
- var c;
23
- return [
24
- ((c = e.config) == null ? void 0 : c.layout) === "classic" ? (s(), o(l, {
25
- key: 0,
26
- schemas: e.document.components.schemas
27
- }, null, 8, ["schemas"])) : (s(), o(d, {
28
- key: 1,
29
- schemas: e.document.components.schemas
30
- }, null, 8, ["schemas"]))
31
- ];
32
- }),
33
- _: 1
34
- }, 8, ["isLazy"])) : i("", !0);
35
- };
13
+ setup(n) {
14
+ const { hash: a } = f(), e = i(() => d(n.document));
15
+ return (m, g) => e.value && Object.keys(e.value).length > 0 ? (t(), o(s(y), {
16
+ key: 0,
17
+ id: "models",
18
+ isLazy: !!s(a) && !s(a).startsWith("model")
19
+ }, {
20
+ default: u(() => {
21
+ var c;
22
+ return [
23
+ ((c = m.config) == null ? void 0 : c.layout) === "classic" ? (t(), o(p, {
24
+ key: 0,
25
+ schemas: e.value
26
+ }, null, 8, ["schemas"])) : (t(), o(h, {
27
+ key: 1,
28
+ config: m.config,
29
+ schemas: e.value
30
+ }, null, 8, ["config", "schemas"]))
31
+ ];
32
+ }),
33
+ _: 1
34
+ }, 8, ["isLazy"])) : l("", !0);
36
35
  }
37
36
  });
38
37
  export {
39
- g as default
38
+ M as default
40
39
  };
@@ -1,5 +1,7 @@
1
1
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ import type { ApiReferenceConfiguration } from '@scalar/types';
2
3
  type __VLS_Props = {
4
+ config: ApiReferenceConfiguration;
3
5
  schemas?: Record<string, OpenAPIV3_1.SchemaObject>;
4
6
  };
5
7
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAkBxD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;CACnD,CAAC;;AAuLF,wBAMG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"AAmHA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAkB9D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;CACnD,CAAC;;AAyLF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  import "./ModernLayout.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b9dcc4b3"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-595c304a"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,42 +1,43 @@
1
- import { defineComponent as _, useId as y, computed as u, createBlock as m, createCommentVNode as f, openBlock as a, unref as e, withCtx as o, createVNode as r, createElementVNode as M, createTextVNode as k, normalizeClass as N, createElementBlock as g, Fragment as I, renderList as C } from "vue";
2
- import { ScalarErrorBoundary as B } from "@scalar/components";
3
- import H from "../../ShowMoreButton.vue.js";
4
- import { useNavState as L } from "../../../hooks/useNavState.js";
5
- import { useSidebar as w } from "../../../features/sidebar/hooks/useSidebar.js";
6
- import E from "../../Section/SectionContainer.vue.js";
7
- import O from "../../Section/Section.vue.js";
8
- import V from "../../Section/SectionHeader.vue.js";
1
+ import { defineComponent as b, useId as M, computed as u, createBlock as i, createCommentVNode as f, openBlock as r, unref as e, withCtx as o, createVNode as a, createElementVNode as g, createTextVNode as y, normalizeClass as k, createElementBlock as N, Fragment as I, renderList as C } from "vue";
2
+ import { ScalarErrorBoundary as O } from "@scalar/components";
3
+ import _ from "../../ShowMoreButton.vue.js";
4
+ import { useNavState as A } from "../../../hooks/useNavState.js";
5
+ import { useSidebar as B } from "../../../features/sidebar/hooks/useSidebar.js";
6
+ import H from "../../Section/SectionContainer.vue.js";
7
+ import L from "../../Section/Section.vue.js";
8
+ import w from "../../Section/SectionHeader.vue.js";
9
9
  import p from "../../Section/SectionHeaderTag.vue.js";
10
- import A from "../../Section/CompactSection.vue.js";
11
- import T from "../Schema/Schema.vue.js";
12
- import j from "../Schema/SchemaHeading.vue.js";
13
- const h = 10, R = /* @__PURE__ */ _({
10
+ import E from "../../Section/CompactSection.vue.js";
11
+ import V from "../Schema/Schema.vue.js";
12
+ import T from "../Schema/SchemaHeading.vue.js";
13
+ const h = 10, P = /* @__PURE__ */ b({
14
14
  __name: "ModernLayout",
15
15
  props: {
16
+ config: {},
16
17
  schemas: {}
17
18
  },
18
- setup(S) {
19
- const i = S, n = y(), { collapsedSidebarItems: v } = w(), { getModelId: s } = L(), d = u(
20
- () => Object.keys(i.schemas ?? {}).length <= h || v[s()]
21
- ), b = u(() => {
22
- const l = Object.keys(i.schemas ?? {});
23
- return d.value ? l : l.slice(0, h);
19
+ setup(s) {
20
+ const m = M(), { collapsedSidebarItems: S } = B(), { getModelId: d } = A(), n = u(
21
+ () => s.config.expandAllModelSections || Object.keys(s.schemas ?? {}).length <= h || S[d()]
22
+ ), v = u(() => {
23
+ const l = Object.keys(s.schemas ?? {});
24
+ return n.value ? l : l.slice(0, h);
24
25
  });
25
- return (l, c) => l.schemas ? (a(), m(e(E), {
26
+ return (l, c) => l.schemas ? (r(), i(e(H), {
26
27
  key: 0,
27
28
  id: "models"
28
29
  }, {
29
30
  default: o(() => [
30
- r(e(O), { "aria-labelledby": e(n) }, {
31
+ a(e(L), { "aria-labelledby": e(m) }, {
31
32
  default: o(() => [
32
- r(e(V), null, {
33
+ a(e(w), null, {
33
34
  default: o(() => [
34
- r(e(p), {
35
- id: e(n),
35
+ a(e(p), {
36
+ id: e(m),
36
37
  level: 2
37
38
  }, {
38
39
  default: o(() => c[0] || (c[0] = [
39
- k(" Models ")
40
+ y(" Models ")
40
41
  ])),
41
42
  _: 1,
42
43
  __: [0]
@@ -44,19 +45,20 @@ const h = 10, R = /* @__PURE__ */ _({
44
45
  ]),
45
46
  _: 1
46
47
  }),
47
- M("div", {
48
- class: N(["models-list", { "models-list-truncated": !d.value }])
48
+ g("div", {
49
+ class: k(["models-list", { "models-list-truncated": !n.value }])
49
50
  }, [
50
- (a(!0), g(I, null, C(b.value, (t) => (a(), m(e(A), {
51
+ (r(!0), N(I, null, C(v.value, (t) => (r(), i(e(E), {
51
52
  key: t,
52
- id: e(s)({ name: t }),
53
+ id: e(d)({ name: t }),
53
54
  class: "models-list-item",
54
- label: t
55
+ label: t,
56
+ defaultOpen: l.config.expandAllModelSections
55
57
  }, {
56
58
  heading: o(() => [
57
- r(e(p), { level: 3 }, {
59
+ a(e(p), { level: 3 }, {
58
60
  default: o(() => [
59
- r(e(j), {
61
+ a(e(T), {
60
62
  name: l.schemas[t].title ?? t,
61
63
  value: l.schemas[t]
62
64
  }, null, 8, ["name", "value"])
@@ -65,9 +67,9 @@ const h = 10, R = /* @__PURE__ */ _({
65
67
  }, 1024)
66
68
  ]),
67
69
  default: o(() => [
68
- r(e(B), null, {
70
+ a(e(O), null, {
69
71
  default: o(() => [
70
- r(e(T), {
72
+ a(e(V), {
71
73
  noncollapsible: "",
72
74
  hideHeading: !0,
73
75
  hideModelNames: !0,
@@ -80,11 +82,11 @@ const h = 10, R = /* @__PURE__ */ _({
80
82
  }, 1024)
81
83
  ]),
82
84
  _: 2
83
- }, 1032, ["id", "label"]))), 128))
85
+ }, 1032, ["id", "label", "defaultOpen"]))), 128))
84
86
  ], 2),
85
- d.value ? f("", !0) : (a(), m(H, {
87
+ n.value ? f("", !0) : (r(), i(_, {
86
88
  key: 0,
87
- id: e(s)(),
89
+ id: e(d)(),
88
90
  class: "show-more-models"
89
91
  }, null, 8, ["id"]))
90
92
  ]),
@@ -96,5 +98,5 @@ const h = 10, R = /* @__PURE__ */ _({
96
98
  }
97
99
  });
98
100
  export {
99
- R as default
101
+ P as default
100
102
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, computed as g, resolveComponent as b, createElementBlock as W, openBlock as t, Fragment as B, renderList as L, createBlock as i, unref as n, withCtx as u, createCommentVNode as k, createVNode as E } from "vue";
1
+ import { defineComponent as T, computed as g, resolveComponent as b, createElementBlock as W, openBlock as i, Fragment as B, renderList as L, createBlock as t, unref as n, withCtx as u, createCommentVNode as k, createVNode as E } from "vue";
2
2
  import { getCurrentIndex as G } from "./get-current-index.js";
3
3
  import { useNavState as z } from "../../../hooks/useNavState.js";
4
4
  import N from "../../Lazy/Lazy.vue2.js";
@@ -19,38 +19,38 @@ const J = /* @__PURE__ */ T({
19
19
  store: {}
20
20
  },
21
21
  setup(r, { expose: C }) {
22
- const l = (e) => "isGroup" in e && e.isGroup, v = (e) => "tag" in e && !l(e), O = (e) => "operation" in e, a = (e) => "webhook" in e, I = (e) => "isWebhooks" in e && !!e.isWebhooks, d = g(() => r.level === 0), { hash: S } = z(), s = g(() => d.value ? r.rootIndex : G(S.value, r.entries)), m = (e, c) => l(e) ? null : c < s.value ? "prev" : c > s.value + 2 ? "after" : null;
22
+ const l = (e) => "isGroup" in e && e.isGroup, v = (e) => "tag" in e && !l(e), O = (e) => "operation" in e, s = (e) => "webhook" in e, I = (e) => "isWebhooks" in e && !!e.isWebhooks, d = g(() => r.level === 0), { hash: S } = z(), a = g(() => d.value ? r.rootIndex : G(S.value, r.entries)), m = (e, c) => l(e) ? null : c < a.value ? "prev" : c > a.value + 2 ? "after" : null;
23
23
  return C({
24
- currentIndex: s
24
+ currentIndex: a
25
25
  }), (e, c) => {
26
26
  const p = b("TraversedEntry", !0);
27
- return t(!0), W(B, null, L(e.entries, (o, f) => (t(), i(n(N), {
27
+ return i(!0), W(B, null, L(e.entries, (o, f) => (i(), t(n(N), {
28
28
  key: o.id,
29
29
  id: o.id,
30
30
  prev: m(o, f) === "prev",
31
31
  isLazy: !!m(o, f)
32
32
  }, {
33
33
  default: u(() => [
34
- O(o) || a(o) ? (t(), i(n($), {
34
+ O(o) || s(o) ? (i(), t(n($), {
35
35
  key: 0,
36
36
  omit: !d.value
37
37
  }, {
38
38
  default: u(() => [
39
39
  E(n(w), {
40
- path: a(o) ? o.name : o.path,
40
+ path: s(o) ? o.name : o.path,
41
41
  method: o.method,
42
42
  id: o.id,
43
43
  document: e.document,
44
44
  collection: e.activeCollection,
45
45
  clientOptions: e.clientOptions,
46
- layout: e.config.layout,
46
+ config: e.config,
47
47
  store: e.store,
48
48
  server: e.activeServer,
49
- isWebhook: a(o)
50
- }, null, 8, ["path", "method", "id", "document", "collection", "clientOptions", "layout", "store", "server", "isWebhook"])
49
+ isWebhook: s(o)
50
+ }, null, 8, ["path", "method", "id", "document", "collection", "clientOptions", "config", "store", "server", "isWebhook"])
51
51
  ]),
52
52
  _: 2
53
- }, 1032, ["omit"])) : I(o) || v(o) ? (t(), i(n(V), {
53
+ }, 1032, ["omit"])) : I(o) || v(o) ? (i(), t(n(V), {
54
54
  key: 1,
55
55
  tag: o,
56
56
  layout: e.config.layout,
@@ -59,7 +59,7 @@ const J = /* @__PURE__ */ T({
59
59
  default: u(() => {
60
60
  var h;
61
61
  return [
62
- "children" in o && ((h = o.children) != null && h.length) ? (t(), i(p, {
62
+ "children" in o && ((h = o.children) != null && h.length) ? (i(), t(p, {
63
63
  key: 0,
64
64
  level: e.level + 1,
65
65
  entries: o.children,
@@ -74,7 +74,7 @@ const J = /* @__PURE__ */ T({
74
74
  ];
75
75
  }),
76
76
  _: 2
77
- }, 1032, ["tag", "layout", "moreThanOneTag"])) : l(o) ? (t(), i(p, {
77
+ }, 1032, ["tag", "layout", "moreThanOneTag"])) : l(o) ? (i(), t(p, {
78
78
  key: 2,
79
79
  level: e.level + 1,
80
80
  rootIndex: e.rootIndex,
@@ -19,8 +19,8 @@ const E = /* @__PURE__ */ s({
19
19
  isCollapsed: { type: Boolean }
20
20
  },
21
21
  setup(T) {
22
- const l = v();
23
- return (o, i) => {
22
+ const i = v();
23
+ return (o, l) => {
24
24
  var r;
25
25
  return o.tag ? (p(), d(e(h), {
26
26
  key: 0,
@@ -42,7 +42,7 @@ const E = /* @__PURE__ */ s({
42
42
  default: a(() => [
43
43
  f(c(o.tag.title) + " ", 1),
44
44
  o.isCollapsed ? (p(), d(_, { key: 0 }, {
45
- default: a(() => i[0] || (i[0] = [
45
+ default: a(() => l[0] || (l[0] = [
46
46
  f(" (Collapsed)")
47
47
  ])),
48
48
  _: 1,
@@ -57,10 +57,10 @@ const E = /* @__PURE__ */ s({
57
57
  ]),
58
58
  _: 1
59
59
  }, 512), [
60
- [C, !e(l).isLoading]
60
+ [C, !e(i).isLoading]
61
61
  ]),
62
62
  t(e(B), {
63
- loading: e(l).isLoading
63
+ loading: e(i).isLoading
64
64
  }, {
65
65
  default: a(() => [
66
66
  t(e(I), null, {
@@ -70,7 +70,7 @@ const E = /* @__PURE__ */ s({
70
70
  var n;
71
71
  return [
72
72
  t(e(S), {
73
- clamp: o.isCollapsed ? "7" : !1,
73
+ clamp: o.isCollapsed ? 7 : void 0,
74
74
  value: ((n = o.tag.tag) == null ? void 0 : n.description) ?? "",
75
75
  withImages: ""
76
76
  }, null, 8, ["clamp", "value"])
@@ -1,7 +1,7 @@
1
1
  import t from "./GettingStarted.vue2.js";
2
2
  import "./GettingStarted.vue3.js";
3
- import a from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ a(t, [["__scopeId", "data-v-0aca3a20"]]);
3
+ import o from "../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-bc17fac9"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as f, createElementBlock as o, openBlock as i, createElementVNode as e, createStaticVNode as r, createVNode as c, unref as l, withCtx as n, createTextVNode as d, Fragment as w, renderList as y, normalizeClass as A, toDisplayString as C } from "vue";
1
+ import { defineComponent as b, createElementBlock as r, openBlock as o, createElementVNode as e, createStaticVNode as c, createVNode as i, unref as l, withCtx as n, createTextVNode as d, Fragment as u, renderList as w, normalizeClass as y, toDisplayString as A } from "vue";
2
2
  import { ScalarButton as p } from "@scalar/components";
3
- import { themeLabels as v } from "@scalar/themes";
4
- const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, _ = ["onClick"], P = /* @__PURE__ */ f({
3
+ import { themeLabels as f } from "@scalar/themes";
4
+ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, _ = ["onClick"], P = /* @__PURE__ */ b({
5
5
  __name: "GettingStarted",
6
6
  props: {
7
7
  theme: {}
8
8
  },
9
9
  emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
10
- setup(E, { emit: g }) {
11
- const m = g, h = [
10
+ setup(E, { emit: v }) {
11
+ const g = v, m = [
12
12
  "default",
13
13
  "alternate",
14
14
  "moon",
@@ -20,19 +20,19 @@ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { c
20
20
  "mars",
21
21
  "deepSpace"
22
22
  ];
23
- async function u() {
23
+ async function h() {
24
24
  const s = await fetch(
25
- "https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml"
25
+ "https://registry.scalar.com/@scalar/apis/galaxy/latest?format=yaml"
26
26
  );
27
- m("updateContent", await s.text());
27
+ g("updateContent", await s.text());
28
28
  }
29
- return (s, a) => (i(), o("div", S, [
30
- e("div", x, [
31
- a[3] || (a[3] = r('<div class="start-logo" data-v-0aca3a20><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0aca3a20></path></svg></div><h1 class="start-h1" data-v-0aca3a20>Swagger Editor</h1><p class="start-p" data-v-0aca3a20> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
32
- e("div", b, [
33
- c(l(p), {
29
+ return (s, a) => (o(), r("div", C, [
30
+ e("div", S, [
31
+ a[3] || (a[3] = c('<div class="start-logo" data-v-bc17fac9><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-bc17fac9><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-bc17fac9></path></svg></div><h1 class="start-h1" data-v-bc17fac9>Swagger Editor</h1><p class="start-p" data-v-bc17fac9> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
32
+ e("div", x, [
33
+ i(l(p), {
34
34
  fullWidth: "",
35
- onClick: u
35
+ onClick: h
36
36
  }, {
37
37
  default: n(() => a[1] || (a[1] = [
38
38
  d(" Show Example ")
@@ -40,7 +40,7 @@ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { c
40
40
  _: 1,
41
41
  __: [1]
42
42
  }),
43
- c(l(p), {
43
+ i(l(p), {
44
44
  fullWidth: "",
45
45
  variant: "outlined",
46
46
  onClick: a[0] || (a[0] = (t) => s.$emit("loadSwaggerFile"))
@@ -54,17 +54,17 @@ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { c
54
54
  ])
55
55
  ]),
56
56
  e("div", k, [
57
- a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-0aca3a20><div class="start-h2" data-v-0aca3a20>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0aca3a20><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0aca3a20></path></svg><span data-v-0aca3a20>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0aca3a20><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g data-v-0aca3a20><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path></g></svg><span data-v-0aca3a20>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0aca3a20><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="currentColor" fill-rule="nonzero" data-v-0aca3a20><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0aca3a20></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0aca3a20></polygon></g></svg><span data-v-0aca3a20>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0aca3a20><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="none" fill-rule="evenodd" data-v-0aca3a20><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0aca3a20></circle><g stroke="currentColor" data-v-0aca3a20><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0aca3a20></ellipse></g></g></svg><span data-v-0aca3a20>React</span></a></div>', 1)),
57
+ a[5] || (a[5] = c('<div class="start-section start-section-integrations" data-v-bc17fac9><div class="start-h2" data-v-bc17fac9>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-bc17fac9><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-bc17fac9><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-bc17fac9></path></svg><span data-v-bc17fac9>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-bc17fac9><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-bc17fac9><g data-v-bc17fac9><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-bc17fac9></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-bc17fac9></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-bc17fac9></path></g></svg><span data-v-bc17fac9>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-bc17fac9><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-bc17fac9><g fill="currentColor" fill-rule="nonzero" data-v-bc17fac9><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-bc17fac9></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-bc17fac9></polygon></g></svg><span data-v-bc17fac9>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-bc17fac9><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-bc17fac9><g fill="none" fill-rule="evenodd" data-v-bc17fac9><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-bc17fac9></circle><g stroke="currentColor" data-v-bc17fac9><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-bc17fac9></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-bc17fac9></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-bc17fac9></ellipse></g></g></svg><span data-v-bc17fac9>React</span></a></div>', 1)),
58
58
  e("div", Z, [
59
59
  a[4] || (a[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
60
- (i(), o(w, null, y(h, (t) => e("div", {
60
+ (o(), r(u, null, w(m, (t) => e("div", {
61
61
  key: t,
62
- class: A(["start-item", { "start-item-active": t === s.theme }]),
63
- onClick: (F) => s.$emit("changeTheme", { id: t, label: l(v)[t] })
64
- }, C(l(v)[t]), 11, _)), 64))
62
+ class: y(["start-item", { "start-item-active": t === s.theme }]),
63
+ onClick: (F) => s.$emit("changeTheme", { id: t, label: l(f)[t] })
64
+ }, A(l(f)[t]), 11, _)), 64))
65
65
  ])
66
66
  ]),
67
- a[6] || (a[6] = r('<p class="start-h1" data-v-0aca3a20>Features</p><ul class="start-ul" data-v-0aca3a20><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
67
+ a[6] || (a[6] = c('<p class="start-h1" data-v-bc17fac9>Features</p><ul class="start-ul" data-v-bc17fac9><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
68
68
  ]));
69
69
  }
70
70
  });
@@ -1 +1 @@
1
- {"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":"AAuEA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAC;AAQF,iBAAS,cAAc;WAsET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":"AAwEA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAC;AAQF,iBAAS,cAAc;WAsET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./MobileHeader.vue2.js";
2
2
  import "./MobileHeader.vue3.js";
3
- import a from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-fa8b013a"]]);
3
+ import r from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6616d485"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,6 +1,8 @@
1
1
  type __VLS_Props = {
2
2
  id: string;
3
3
  label?: string;
4
+ /** Control the initial open state of the section */
5
+ defaultOpen?: boolean;
4
6
  };
5
7
  declare function __VLS_template(): {
6
8
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"CompactSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/CompactSection.vue"],"names":[],"mappings":"AA2GA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAuBF,iBAAS,cAAc;WAwFT,OAAO,IAA6B;;yBATpB,GAAG;yBACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CompactSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/CompactSection.vue"],"names":[],"mappings":"AA6GA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oDAAoD;IACpD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAwBF,iBAAS,cAAc;WAwFT,OAAO,IAA6B;;yBATpB,GAAG;yBACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./CompactSection.vue2.js";
2
2
  import "./CompactSection.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9a9a7b16"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0a6031fe"]]);
5
5
  export {
6
6
  r as default
7
7
  };