@scalar/api-reference 1.48.4 → 1.48.6

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 (26) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +5 -0
  3. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
  4. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
  5. package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +19 -15
  6. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +2 -0
  7. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
  8. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +4 -2
  9. package/dist/browser/standalone.js +3326 -3297
  10. package/dist/browser/webpack-stats.json +1 -1
  11. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  12. package/dist/components/ApiReference.vue.js +1 -1
  13. package/dist/components/ApiReference.vue2.js +1 -16
  14. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Content.vue.js +2 -1
  16. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/SchemaComposition.vue.js +13 -3
  18. package/dist/components/Content/Schema/helpers/sort-property-names.d.ts.map +1 -1
  19. package/dist/components/Content/Schema/helpers/sort-property-names.js +13 -0
  20. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  21. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  22. package/dist/features/example-responses/ExampleResponses.vue2.js +11 -13
  23. package/dist/helpers/storage.d.ts +16 -0
  24. package/dist/helpers/storage.d.ts.map +1 -1
  25. package/dist/style.css +271 -75
  26. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAm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Aa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;AA+2CF,QAAA,MAAM,UAAU;;;;oPAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -4,7 +4,7 @@ import _sfc_main from "./ApiReference.vue2.js";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
7
- const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e8fb8338"]]);
7
+ const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-148cccbd"]]);
8
8
  export {
9
9
  ApiReference as default
10
10
  };
@@ -4,7 +4,6 @@ import { OpenApiClientButton } from "@scalar/api-client/components";
4
4
  import { createApiClientModal } from "@scalar/api-client/v2/features/modal";
5
5
  import { getActiveEnvironment, getServers } from "@scalar/api-client/v2/helpers";
6
6
  import { addScalarClassesToHeadless, ScalarSidebarFooter, ScalarColorModeToggleButton, ScalarColorModeToggleIcon } from "@scalar/components";
7
- import { redirectToProxy } from "@scalar/helpers/url/redirect-to-proxy";
8
7
  import { createSidebarState, scrollSidebarToTop, ScalarSidebar } from "@scalar/sidebar";
9
8
  import { hasObtrusiveScrollbars, getThemeStyles } from "@scalar/themes";
10
9
  import { apiReferenceConfigurationSchema } from "@scalar/types/api-reference";
@@ -431,21 +430,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
431
430
  ({ url }) => mergedConfig.value.onServerChange?.(url)
432
431
  );
433
432
  eventBus.on("ui:download:document", async ({ format }) => {
434
- if (format === "direct") {
435
- const url = configList.value[activeSlug.value]?.source?.url;
436
- if (!url) {
437
- console.error(
438
- "Direct download is not supported for documents without a URL source"
439
- );
440
- return;
441
- }
442
- const result = await fetch(
443
- redirectToProxy(mergedConfig.value.proxyUrl, url)
444
- ).then((r) => r.text());
445
- downloadDocument(result, activeSlug.value ?? "openapi");
446
- return;
447
- }
448
- const document2 = workspaceStore.exportActiveDocument(format);
433
+ const document2 = await workspaceStore.exportActiveDocument(format);
449
434
  if (!document2) {
450
435
  console.error("No document found to download");
451
436
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AACtG,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EAClB,MAAM,2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AC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAoNA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AACtG,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EAClB,MAAM,2CAA2C,CAAA;AAelD,KAAK,WAAW,GAAG;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,gFAAgF;IAChF,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC1B,gBAAgB,GAChB,eAAe,GACf,sBAAsB,GACtB,oBAAoB,GACpB,eAAe,GACf,uBAAuB,GACvB,QAAQ,GACR,8BAA8B,GAC9B,yBAAyB,GACzB,aAAa,GACb,UAAU,GACV,SAAS,GACT,iBAAiB,CACpB,CAAA;IACD,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAA;IACvC,SAAS,EAAE,SAAS,CAAA;IACpB,oBAAoB,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAA;IAC1D,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,WAAW,EAAE,kBAAkB,CAAA;IAC/B,iDAAiD;IACjD,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;CACnD,CAAC;AA2VJ,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;AAG5C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -72,6 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
72
  id: __props.infoSectionId,
73
73
  documentDownloadType: __props.options.documentDownloadType,
74
74
  documentExtensions: documentExtensions.value,
75
+ documentUrl: __props.document?.["x-scalar-original-source-url"],
75
76
  eventBus: __props.eventBus,
76
77
  externalDocs: __props.document?.externalDocs,
77
78
  headingSlugGenerator: __props.headingSlugGenerator,
@@ -143,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
143
144
  })
144
145
  ]),
145
146
  _: 1
146
- }, 8, ["id", "documentDownloadType", "documentExtensions", "eventBus", "externalDocs", "headingSlugGenerator", "info", "infoExtensions", "layout", "oasVersion"])
147
+ }, 8, ["id", "documentDownloadType", "documentExtensions", "documentUrl", "eventBus", "externalDocs", "headingSlugGenerator", "info", "infoExtensions", "layout", "oasVersion"])
147
148
  ]),
148
149
  _: 3
149
150
  }, 8, ["id"]),
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAiKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAItE,KAAK,WAAW,GAAG;IACf,oDAAoD;IACpD,WAAW,EAAE,kBAAkB,CAAA;IAC/B,4DAA4D;IAC5D,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,MAAM,EAAE,YAAY,CAAA;IACpB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iCAAiC;IACjC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,yEAAyE;IACzE,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;AAuNJ,QAAA,MAAM,YAAY;aAhOJ,OAAO;iBAEH,OAAO;6EAiOvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AA+KA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAItE,KAAK,WAAW,GAAG;IACf,oDAAoD;IACpD,WAAW,EAAE,kBAAkB,CAAA;IAC/B,4DAA4D;IAC5D,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,MAAM,EAAE,YAAY,CAAA;IACpB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iCAAiC;IACjC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,yEAAyE;IACzE,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;AAsQJ,QAAA,MAAM,YAAY;aA/QJ,OAAO;iBAEH,OAAO;6EAgRvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, createElementBlock, openBlock, createBlock, unref, Fragment, createVNode, createElementVNode, withCtx, createCommentVNode, toDisplayString, normalizeClass } from "vue";
1
+ import { defineComponent, computed, ref, createElementBlock, openBlock, createBlock, unref, Fragment, createVNode, createElementVNode, withCtx, createCommentVNode, toDisplayString, normalizeClass, createTextVNode } from "vue";
2
2
  import { ScalarListbox } from "@scalar/components";
3
3
  import { isDefined } from "@scalar/helpers/array/is-defined";
4
4
  import { ScalarIconCaretDown } from "@scalar/icons";
@@ -51,6 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
51
  const selectedComposition = computed(
52
52
  () => composition.value[Number(selectedOption.value?.id ?? "0")]?.value
53
53
  );
54
+ const showNestedSchema = ref(false);
54
55
  return (_ctx, _cache) => {
55
56
  return openBlock(), createElementBlock("div", _hoisted_1, [
56
57
  props.composition === "allOf" ? (openBlock(), createBlock(Schema, {
@@ -87,7 +88,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
88
  _: 1
88
89
  }, 8, ["modelValue", "options"]),
89
90
  createElementVNode("div", _hoisted_5, [
90
- createVNode(Schema, {
91
+ !showNestedSchema.value && __props.level > 2 ? (openBlock(), createElementBlock("button", {
92
+ key: 0,
93
+ class: "bg-b-1 hover:bg-b-2 text-c-1 flex w-full items-center justify-center gap-2 rounded-b-lg border border-t-0 px-2 py-2 text-sm font-medium transition-colors",
94
+ type: "button",
95
+ onClick: _cache[1] || (_cache[1] = ($event) => showNestedSchema.value = true)
96
+ }, [
97
+ _cache[2] || (_cache[2] = createTextVNode(" Show Schema Details ", -1)),
98
+ createVNode(unref(ScalarIconCaretDown), { class: "h-3 w-3" })
99
+ ])) : (openBlock(), createBlock(Schema, {
100
+ key: 1,
91
101
  breadcrumb: __props.breadcrumb,
92
102
  compact: __props.compact,
93
103
  discriminator: __props.discriminator,
@@ -98,7 +108,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
108
  noncollapsible: true,
99
109
  options: __props.options,
100
110
  schema: selectedComposition.value
101
- }, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "level", "name", "options", "schema"])
111
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "level", "name", "options", "schema"]))
102
112
  ])
103
113
  ], 64))
104
114
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"sort-property-names.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/sort-property-names.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIrH,qCAAqC;AACrC,KAAK,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAA;AAEtF,KAAK,OAAO,GAAG,OAAO,CACpB,IAAI,CAAC,yBAAyB,EAAE,yBAAyB,GAAG,8BAA8B,CAAC,GAAG;IAC5F,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;CACvB,CACF,CAAA;AAED,sEAAsE;AACtE,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,EAAE,EAAE,YAAY,UAAU,KAAG,UAOxD,CAAA;AAEtB,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,YAAY,EACpB,gBAAgB,mBAAmB,EACnC,0FAKG,OAAY,KACd,MAAM,EAuDR,CAAA"}
1
+ {"version":3,"file":"sort-property-names.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/sort-property-names.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIrH,qCAAqC;AACrC,KAAK,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAA;AAEtF,KAAK,OAAO,GAAG,OAAO,CACpB,IAAI,CAAC,yBAAyB,EAAE,yBAAyB,GAAG,8BAA8B,CAAC,GAAG;IAC5F,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;CACvB,CACF,CAAA;AAED,sEAAsE;AACtE,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,EAAE,EAAE,YAAY,UAAU,KAAG,UAOxD,CAAA;AAEtB,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,YAAY,EACpB,gBAAgB,mBAAmB,EACnC,0FAKG,OAAY,KACd,MAAM,EA6ER,CAAA"}
@@ -29,6 +29,19 @@ const sortPropertyNames = (schema, discriminator, {
29
29
  if (!aDiscriminator && bDiscriminator) {
30
30
  return 1;
31
31
  }
32
+ const aSchema = schema.properties?.[a];
33
+ const bSchema = schema.properties?.[b];
34
+ const aOrder = aSchema && typeof aSchema === "object" && "x-order" in aSchema ? aSchema["x-order"] : void 0;
35
+ const bOrder = bSchema && typeof bSchema === "object" && "x-order" in bSchema ? bSchema["x-order"] : void 0;
36
+ if (aOrder !== void 0 && bOrder !== void 0) {
37
+ return Number(aOrder) - Number(bOrder);
38
+ }
39
+ if (aOrder !== void 0 && bOrder === void 0) {
40
+ return -1;
41
+ }
42
+ if (aOrder === void 0 && bOrder !== void 0) {
43
+ return 1;
44
+ }
32
45
  if (orderRequiredPropertiesFirst) {
33
46
  if (aRequired && !bRequired) {
34
47
  return -1;
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"AA+WA,OAAO,KAAK,EAEV,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAWrE;;GAEG;AAEH,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,CAAA;CAC3B,CAAC;AAqXF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"AAmXA,OAAO,KAAK,EAEV,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAWrE;;GAEG;AAEH,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,CAAA;CAC3B,CAAC;AAuXF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ExampleResponses.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dc47ca65"]]);
4
+ const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b8a574c"]]);
5
5
  export {
6
6
  ExampleResponses as default
7
7
  };
@@ -16,10 +16,7 @@ const _hoisted_1 = {
16
16
  class: "scalar-card-checkbox"
17
17
  };
18
18
  const _hoisted_2 = ["aria-controls"];
19
- const _hoisted_3 = {
20
- key: 0,
21
- class: "response-description"
22
- };
19
+ const _hoisted_3 = { class: "response-description" };
23
20
  const _sfc_main = /* @__PURE__ */ defineComponent({
24
21
  __name: "ExampleResponses",
25
22
  props: {
@@ -156,19 +153,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
156
153
  class: "response-card-footer"
157
154
  }, {
158
155
  default: withCtx(() => [
159
- currentResponse.value?.description ? (openBlock(), createElementBlock("div", _hoisted_3, [
160
- createVNode(unref(ScalarMarkdown), {
161
- class: "markdown",
162
- value: currentResponse.value.description
163
- }, null, 8, ["value"])
164
- ])) : createCommentVNode("", true),
165
156
  hasMultipleExamples.value ? (openBlock(), createBlock(unref(ExamplePicker), {
166
- key: 1,
157
+ key: 0,
167
158
  modelValue: selectedExampleKey.value,
168
159
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selectedExampleKey.value = $event),
169
- class: "response-example-selector",
160
+ class: "response-example-selector px-0",
170
161
  examples: currentResponseContent.value?.examples
171
- }, null, 8, ["modelValue", "examples"])) : createCommentVNode("", true)
162
+ }, null, 8, ["modelValue", "examples"])) : createCommentVNode("", true),
163
+ createElementVNode("div", _hoisted_3, [
164
+ currentResponse.value?.description ? (openBlock(), createBlock(unref(ScalarMarkdown), {
165
+ key: 0,
166
+ class: "response-description-markdown",
167
+ value: currentResponse.value.description
168
+ }, null, 8, ["value"])) : createCommentVNode("", true)
169
+ ])
172
170
  ]),
173
171
  _: 1
174
172
  })) : createCommentVNode("", true)
@@ -102,6 +102,10 @@ export declare const authStorage: () => {
102
102
  } | undefined;
103
103
  } & {
104
104
  'x-tokenName'?: string | undefined;
105
+ } & {
106
+ 'x-scalar-secret-auth-url'?: string | undefined;
107
+ } & {
108
+ 'x-scalar-secret-token-url'?: string | undefined;
105
109
  } & {
106
110
  authorizationUrl: string;
107
111
  } & {
@@ -128,6 +132,10 @@ export declare const authStorage: () => {
128
132
  } | undefined;
129
133
  } & {
130
134
  'x-tokenName'?: string | undefined;
135
+ } & {
136
+ 'x-scalar-secret-auth-url'?: string | undefined;
137
+ } & {
138
+ 'x-scalar-secret-token-url'?: string | undefined;
131
139
  } & {
132
140
  tokenUrl: string;
133
141
  } & {
@@ -161,6 +169,10 @@ export declare const authStorage: () => {
161
169
  } | undefined;
162
170
  } & {
163
171
  'x-tokenName'?: string | undefined;
172
+ } & {
173
+ 'x-scalar-secret-auth-url'?: string | undefined;
174
+ } & {
175
+ 'x-scalar-secret-token-url'?: string | undefined;
164
176
  } & {
165
177
  tokenUrl: string;
166
178
  } & {
@@ -191,6 +203,10 @@ export declare const authStorage: () => {
191
203
  } | undefined;
192
204
  } & {
193
205
  'x-tokenName'?: string | undefined;
206
+ } & {
207
+ 'x-scalar-secret-auth-url'?: string | undefined;
208
+ } & {
209
+ 'x-scalar-secret-token-url'?: string | undefined;
194
210
  } & {
195
211
  tokenUrl: string;
196
212
  authorizationUrl: string;
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/helpers/storage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,uCAAuC,CAAA;AAM7E;;;GAGG;AACH,eAAO,MAAM,aAAa;IAGtB;;OAEG;;IAIH;;;OAGG;iBACU,MAAM;CAItB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW;IAMpB;;OAEG;oBACa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAItB;;;OAGG;oBACa,MAAM,SAAS,IAAI;CAItC,CAAA"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/helpers/storage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,uCAAuC,CAAA;AAM7E;;;GAGG;AACH,eAAO,MAAM,aAAa;IAGtB;;OAEG;;IAIH;;;OAGG;iBACU,MAAM;CAItB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW;IAMpB;;OAEG;oBACa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAItB;;;OAGG;oBACa,MAAM,SAAS,IAAI;CAItC,CAAA"}