@scalar/api-reference 1.48.4 → 1.48.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAmyCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAOpC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4CAA4C,CAAA;AAsBnD,OAAO,8BAA8B,CAAA;AAkCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,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;AA83CF,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"}
1
+ {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAkxCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAOpC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4CAA4C,CAAA;AAsBnD,OAAO,8BAA8B,CAAA;AAkCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,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,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;AAyVJ,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"}
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;
@@ -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"}
package/dist/style.css CHANGED
@@ -1988,12 +1988,12 @@ button.headers-card-title[data-v-ab19704d]:hover {
1988
1988
  /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
1989
1989
  @layer properties {
1990
1990
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
1991
- [data-v-59b5011b],[data-v-59b5011b]:before,[data-v-59b5011b]:after,[data-v-59b5011b]::backdrop {
1991
+ [data-v-95e980e1],[data-v-95e980e1]:before,[data-v-95e980e1]:after,[data-v-95e980e1]::backdrop {
1992
1992
  --tw-outline-style: solid;
1993
1993
  }
1994
1994
  }
1995
1995
  }
1996
- .download-container[data-v-59b5011b] {
1996
+ .download-container[data-v-95e980e1] {
1997
1997
  z-index: 1;
1998
1998
  flex-direction: column;
1999
1999
  gap: 16px;
@@ -2002,7 +2002,7 @@ button.headers-card-title[data-v-ab19704d]:hover {
2002
2002
  display: flex;
2003
2003
  position: relative;
2004
2004
  }
2005
- .download-container[data-v-59b5011b]:has(:focus-visible):before, .download-container.download-both[data-v-59b5011b]:hover:before {
2005
+ .download-container[data-v-95e980e1]:has(:focus-visible):before, .download-container.download-both[data-v-95e980e1]:hover:before {
2006
2006
  content: "";
2007
2007
  border-radius: var(--scalar-radius-lg);
2008
2008
  width: calc(100% + 24px);
@@ -2014,7 +2014,7 @@ button.headers-card-title[data-v-ab19704d]:hover {
2014
2014
  top: -11px;
2015
2015
  left: -12px;
2016
2016
  }
2017
- .download-button[data-v-59b5011b] {
2017
+ .download-button[data-v-95e980e1] {
2018
2018
  color: var(--scalar-link-color);
2019
2019
  cursor: pointer;
2020
2020
  outline: none;
@@ -2027,7 +2027,7 @@ button.headers-card-title[data-v-ab19704d]:hover {
2027
2027
  position: relative;
2028
2028
  white-space: nowrap !important;
2029
2029
  }
2030
- .download-button[data-v-59b5011b]:before {
2030
+ .download-button[data-v-95e980e1]:before {
2031
2031
  border-radius: var(--scalar-radius);
2032
2032
  content: "";
2033
2033
  width: calc(100% + 18px);
@@ -2036,20 +2036,20 @@ button.headers-card-title[data-v-ab19704d]:hover {
2036
2036
  top: -8px;
2037
2037
  left: -9px;
2038
2038
  }
2039
- .download-button[data-v-59b5011b]:last-of-type:before {
2039
+ .download-button[data-v-95e980e1]:last-of-type:before {
2040
2040
  width: calc(100% + 15px);
2041
2041
  }
2042
- .download-button[data-v-59b5011b]:hover:before {
2042
+ .download-button[data-v-95e980e1]:hover:before {
2043
2043
  background: var(--scalar-background-2);
2044
2044
  border: var(--scalar-border-width) solid var(--scalar-border-color);
2045
2045
  }
2046
- .download-button[data-v-59b5011b]:focus-visible:before {
2046
+ .download-button[data-v-95e980e1]:focus-visible:before {
2047
2047
  background: var(--scalar-background-2);
2048
2048
  border: var(--scalar-border-width) solid var(--scalar-border-color);
2049
2049
  outline-style: var(--tw-outline-style);
2050
2050
  outline-width: 1px;
2051
2051
  }
2052
- .download-button span[data-v-59b5011b] {
2052
+ .download-button span[data-v-95e980e1] {
2053
2053
  --font-color: var(--scalar-link-color, var(--scalar-color-accent));
2054
2054
  --font-visited: var(--scalar-link-color-visited, var(--scalar-color-2));
2055
2055
  -webkit-text-decoration: var(--scalar-text-decoration);
@@ -2064,20 +2064,20 @@ button.headers-card-title[data-v-ab19704d]:hover {
2064
2064
  text-decoration-color: var(--font-color);
2065
2065
  }
2066
2066
  @supports (color: color-mix(in lab, red, red)) {
2067
- .download-button span[data-v-59b5011b] {
2067
+ .download-button span[data-v-95e980e1] {
2068
2068
  -webkit-text-decoration-color: color-mix(in srgb, var(--font-color) 30%, transparent);
2069
2069
  -webkit-text-decoration-color: color-mix(in srgb, var(--font-color) 30%, transparent);
2070
2070
  text-decoration-color: color-mix(in srgb, var(--font-color) 30%, transparent);
2071
2071
  }
2072
2072
  }
2073
- .download-button span[data-v-59b5011b] {
2073
+ .download-button span[data-v-95e980e1] {
2074
2074
  z-index: 1;
2075
2075
  align-items: center;
2076
2076
  gap: 6px;
2077
2077
  line-height: 1.625;
2078
2078
  display: flex;
2079
2079
  }
2080
- .download-button:hover span[data-v-59b5011b] {
2080
+ .download-button:hover span[data-v-95e980e1] {
2081
2081
  -webkit-text-decoration-color: var(--scalar-color-1, currentColor);
2082
2082
  -webkit-text-decoration-color: var(--scalar-color-1, currentColor);
2083
2083
  text-decoration-color: var(--scalar-color-1, currentColor);
@@ -2087,7 +2087,7 @@ button.headers-card-title[data-v-ab19704d]:hover {
2087
2087
  -webkit-text-decoration: var(--scalar-text-decoration-hover);
2088
2088
  text-decoration: var(--scalar-text-decoration-hover);
2089
2089
  }
2090
- .download-button[data-v-59b5011b]:nth-of-type(2) {
2090
+ .download-button[data-v-95e980e1]:nth-of-type(2) {
2091
2091
  clip-path: inset(50%);
2092
2092
  white-space: nowrap;
2093
2093
  border-width: 0;
@@ -2098,7 +2098,7 @@ button.headers-card-title[data-v-ab19704d]:hover {
2098
2098
  position: absolute;
2099
2099
  overflow: hidden;
2100
2100
  }
2101
- .download-container:has(:focus-visible) .download-button[data-v-59b5011b]:nth-of-type(2), .download-container:hover .download-button[data-v-59b5011b]:nth-of-type(2) {
2101
+ .download-container:has(:focus-visible) .download-button[data-v-95e980e1]:nth-of-type(2), .download-container:hover .download-button[data-v-95e980e1]:nth-of-type(2) {
2102
2102
  clip-path: none;
2103
2103
  white-space: normal;
2104
2104
  width: auto;
@@ -2109,15 +2109,15 @@ button.headers-card-title[data-v-ab19704d]:hover {
2109
2109
  top: 42px;
2110
2110
  overflow: visible;
2111
2111
  }
2112
- .extension[data-v-59b5011b] {
2112
+ .extension[data-v-95e980e1] {
2113
2113
  z-index: 1;
2114
2114
  background: var(--scalar-link-color, var(--scalar-color-accent));
2115
2115
  color: var(--scalar-background-1);
2116
2116
  }
2117
- .download-container:has(:focus-visible) .extension[data-v-59b5011b], .download-container:hover .extension[data-v-59b5011b] {
2117
+ .download-container:has(:focus-visible) .extension[data-v-95e980e1], .download-container:hover .extension[data-v-95e980e1] {
2118
2118
  opacity: 1;
2119
2119
  }
2120
- .download-link[data-v-59b5011b] {
2120
+ .download-link[data-v-95e980e1] {
2121
2121
  --font-color: var(--scalar-link-color, var(--scalar-color-accent));
2122
2122
  --font-visited: var(--scalar-link-color-visited, var(--scalar-color-2));
2123
2123
  -webkit-text-decoration: var(--scalar-text-decoration);
@@ -2132,13 +2132,13 @@ button.headers-card-title[data-v-ab19704d]:hover {
2132
2132
  text-decoration-color: var(--font-color);
2133
2133
  }
2134
2134
  @supports (color: color-mix(in lab, red, red)) {
2135
- .download-link[data-v-59b5011b] {
2135
+ .download-link[data-v-95e980e1] {
2136
2136
  -webkit-text-decoration-color: color-mix(in srgb, var(--font-color) 30%, transparent);
2137
2137
  -webkit-text-decoration-color: color-mix(in srgb, var(--font-color) 30%, transparent);
2138
2138
  text-decoration-color: color-mix(in srgb, var(--font-color) 30%, transparent);
2139
2139
  }
2140
2140
  }
2141
- .download-link[data-v-59b5011b]:hover {
2141
+ .download-link[data-v-95e980e1]:hover {
2142
2142
  --font-color: var(--scalar-link-color, var(--scalar-color-accent));
2143
2143
  -webkit-text-decoration-color: var(--font-color);
2144
2144
  -webkit-text-decoration-color: var(--font-color);
@@ -7592,6 +7592,9 @@ to {
7592
7592
  .scalar-app .h-1\.5 {
7593
7593
  height: 6px;
7594
7594
  }
7595
+ .scalar-app .h-2 {
7596
+ height: 8px;
7597
+ }
7595
7598
  .scalar-app .h-2\.5 {
7596
7599
  height: 10px;
7597
7600
  }
@@ -9920,12 +9923,15 @@ to {
9920
9923
  padding: 4px;
9921
9924
  }
9922
9925
  }
9923
- .app-platform-mac :is(.scalar-app .mac\:pt-10) {
9924
- padding-top: 40px;
9926
+ .app-platform-mac :is(.scalar-app .mac\:h-12) {
9927
+ height: 48px;
9925
9928
  }
9926
9929
  .app-platform-mac :is(.scalar-app .mac\:pl-\[72px\]) {
9927
9930
  padding-left: 72px;
9928
9931
  }
9932
+ .app-platform-mac :is(.scalar-app .mac\:app-drag-region) {
9933
+ -webkit-app-region: drag;
9934
+ }
9929
9935
  @property --tw-space-x-reverse {
9930
9936
  syntax: "*";
9931
9937
  inherits: false;
@@ -12427,7 +12433,7 @@ to {
12427
12433
 
12428
12434
  /* Configurable Layout Variables */
12429
12435
  @layer scalar-config {
12430
- .scalar-api-reference[data-v-e8fb8338] {
12436
+ .scalar-api-reference[data-v-148cccbd] {
12431
12437
  /* The header height */
12432
12438
  --refs-header-height: calc(
12433
12439
  var(--scalar-custom-header-height, 0px) + var(--scalar-header-height, 0px)
@@ -12449,20 +12455,20 @@ to {
12449
12455
  /* The maximum width of the content column */
12450
12456
  --refs-content-max-width: var(--scalar-content-max-width, 1540px);
12451
12457
  }
12452
- .scalar-api-reference.references-classic[data-v-e8fb8338] {
12458
+ .scalar-api-reference.references-classic[data-v-148cccbd] {
12453
12459
  /* Classic layout is wider */
12454
12460
  --refs-content-max-width: var(--scalar-content-max-width, 1420px);
12455
12461
  min-height: 100dvh;
12456
12462
  --refs-sidebar-width: 0;
12457
12463
  }
12458
12464
  }
12459
- .t-doc__sidebar[data-v-e8fb8338] {
12465
+ .t-doc__sidebar[data-v-148cccbd] {
12460
12466
  z-index: 10;
12461
12467
  }
12462
12468
 
12463
12469
  /* ----------------------------------------------------- */
12464
12470
  /* References Layout */
12465
- .references-layout[data-v-e8fb8338] {
12471
+ .references-layout[data-v-148cccbd] {
12466
12472
  /* Try to fill the container */
12467
12473
  min-height: 100dvh;
12468
12474
  min-width: 100%;
@@ -12486,39 +12492,39 @@ to {
12486
12492
 
12487
12493
  background: var(--scalar-background-1);
12488
12494
  }
12489
- .references-editor[data-v-e8fb8338] {
12495
+ .references-editor[data-v-148cccbd] {
12490
12496
  grid-area: editor;
12491
12497
  display: flex;
12492
12498
  min-width: 0;
12493
12499
  background: var(--scalar-background-1);
12494
12500
  }
12495
- .references-rendered[data-v-e8fb8338] {
12501
+ .references-rendered[data-v-148cccbd] {
12496
12502
  position: relative;
12497
12503
  grid-area: rendered;
12498
12504
  min-width: 0;
12499
12505
  background: var(--scalar-background-1);
12500
12506
  }
12501
- .scalar-api-reference.references-classic[data-v-e8fb8338],
12502
- .references-classic .references-rendered[data-v-e8fb8338] {
12507
+ .scalar-api-reference.references-classic[data-v-148cccbd],
12508
+ .references-classic .references-rendered[data-v-148cccbd] {
12503
12509
  height: initial !important;
12504
12510
  max-height: initial !important;
12505
12511
  }
12506
12512
  @layer scalar-config {
12507
- .references-sidebar[data-v-e8fb8338] {
12513
+ .references-sidebar[data-v-148cccbd] {
12508
12514
  /* Set a default width if references are enabled */
12509
12515
  --refs-sidebar-width: var(--scalar-sidebar-width, 288px);
12510
12516
  }
12511
12517
  }
12512
12518
 
12513
12519
  /* Footer */
12514
- .references-footer[data-v-e8fb8338] {
12520
+ .references-footer[data-v-148cccbd] {
12515
12521
  grid-area: footer;
12516
12522
  }
12517
12523
  /* ----------------------------------------------------- */
12518
12524
  /* Responsive / Mobile Layout */
12519
12525
  @media (max-width: 1000px) {
12520
12526
  /* Stack view on mobile */
12521
- .references-layout[data-v-e8fb8338] {
12527
+ .references-layout[data-v-148cccbd] {
12522
12528
  /* Adjust the sidebar height to the viewport height minus the header height */
12523
12529
  --refs-sidebar-height: calc(
12524
12530
  var(--full-height, 100dvh) - var(--scalar-custom-header-height, 0px)
@@ -12533,13 +12539,13 @@ to {
12533
12539
  'rendered'
12534
12540
  'footer';
12535
12541
  }
12536
- .references-editable[data-v-e8fb8338] {
12542
+ .references-editable[data-v-148cccbd] {
12537
12543
  grid-template-areas:
12538
12544
  'header'
12539
12545
  'navigation'
12540
12546
  'editor';
12541
12547
  }
12542
- .references-rendered[data-v-e8fb8338] {
12548
+ .references-rendered[data-v-148cccbd] {
12543
12549
  position: static;
12544
12550
  }
12545
12551
  }
@@ -12550,12 +12556,12 @@ to {
12550
12556
  * when the new elements are available
12551
12557
  */
12552
12558
  @media (max-width: 1000px) {
12553
- .scalar-api-references-standalone-mobile[data-v-e8fb8338]:not(.references-classic) {
12559
+ .scalar-api-references-standalone-mobile[data-v-148cccbd]:not(.references-classic) {
12554
12560
  --scalar-header-height: 50px;
12555
12561
  }
12556
12562
  }
12557
12563
 
12558
- .darklight-reference[data-v-e8fb8338] {
12564
+ .darklight-reference[data-v-148cccbd] {
12559
12565
  width: 100%;
12560
12566
  margin-top: auto;
12561
12567
  }
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.48.4",
23
+ "version": "1.48.5",
24
24
  "engines": {
25
25
  "node": ">=22"
26
26
  },
@@ -85,22 +85,22 @@
85
85
  "microdiff": "^1.5.0",
86
86
  "nanoid": "^5.1.6",
87
87
  "vue": "^3.5.26",
88
- "@scalar/agent-chat": "0.9.4",
89
- "@scalar/api-client": "2.36.0",
90
- "@scalar/components": "0.20.4",
88
+ "@scalar/agent-chat": "0.9.5",
89
+ "@scalar/api-client": "2.36.1",
90
+ "@scalar/components": "0.20.5",
91
+ "@scalar/code-highlight": "0.3.0",
91
92
  "@scalar/helpers": "0.4.0",
92
- "@scalar/oas-utils": "0.10.3",
93
93
  "@scalar/icons": "0.6.0",
94
- "@scalar/code-highlight": "0.3.0",
95
- "@scalar/openapi-parser": "0.25.2",
94
+ "@scalar/oas-utils": "0.10.4",
96
95
  "@scalar/openapi-types": "0.6.0",
96
+ "@scalar/openapi-parser": "0.25.2",
97
+ "@scalar/snippetz": "0.7.3",
98
+ "@scalar/sidebar": "0.8.5",
97
99
  "@scalar/themes": "0.15.0",
98
- "@scalar/sidebar": "0.8.4",
99
- "@scalar/snippetz": "0.7.2",
100
100
  "@scalar/types": "0.7.2",
101
+ "@scalar/use-hooks": "0.4.0",
101
102
  "@scalar/use-toasts": "0.10.0",
102
- "@scalar/workspace-store": "0.39.0",
103
- "@scalar/use-hooks": "0.4.0"
103
+ "@scalar/workspace-store": "0.39.1"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@hono/node-server": "^1.19.7",
@@ -119,9 +119,9 @@
119
119
  "vite-plugin-css-injected-by-js": "^3.5.2",
120
120
  "vitest": "4.0.16",
121
121
  "@scalar/build-tooling": "0.5.0",
122
- "@scalar/core": "0.4.2",
122
+ "@scalar/galaxy": "0.6.0",
123
123
  "@scalar/react-renderer": "0.4.0",
124
- "@scalar/galaxy": "0.6.0"
124
+ "@scalar/core": "0.4.2"
125
125
  },
126
126
  "scripts": {
127
127
  "build": "pnpm build:default && pnpm build:standalone && pnpm types:build",