@scalar/api-reference 1.39.2 → 1.40.0

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 (66) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +1 -1
  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/InfoBlock.vue.d.ts +2 -1
  6. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
  7. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.d.ts +1 -1
  8. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.d.ts.map +1 -1
  9. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +1 -1
  10. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +1 -1
  11. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
  12. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
  13. package/dist/browser/standalone.js +17286 -16971
  14. package/dist/browser/webpack-stats.json +1 -1
  15. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  16. package/dist/components/ApiReference.vue.js +1 -1
  17. package/dist/components/ApiReference.vue2.js +10 -2
  18. package/dist/components/Content/Content.vue.d.ts +2 -1
  19. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +1 -1
  22. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +8 -3
  23. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  25. package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -4
  26. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  28. package/dist/components/Content/Schema/SchemaProperty.vue2.js +17 -5
  29. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  31. package/dist/components/Content/Schema/helpers/sort-property-names.d.ts +1 -1
  32. package/dist/components/Content/Schema/helpers/sort-property-names.d.ts.map +1 -1
  33. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  34. package/dist/features/Operation/components/ContentTypeSelect.vue.js +14 -10
  35. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  36. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  37. package/dist/features/Operation/components/ParameterListItem.vue2.js +40 -25
  38. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts +1 -1
  39. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts.map +1 -1
  40. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +4 -4
  41. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts +1 -1
  42. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts.map +1 -1
  43. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts +1 -1
  44. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +1 -1
  45. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -1
  46. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.js +29 -8
  47. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +1 -1
  48. package/dist/helpers/color-mode.d.ts +8 -0
  49. package/dist/helpers/color-mode.d.ts.map +1 -0
  50. package/dist/helpers/color-mode.js +9 -0
  51. package/dist/helpers/map-config-to-client-store.d.ts +2 -1
  52. package/dist/helpers/map-config-to-client-store.d.ts.map +1 -1
  53. package/dist/helpers/map-config-to-workspace-store.d.ts +1 -1
  54. package/dist/helpers/map-config-to-workspace-store.d.ts.map +1 -1
  55. package/dist/helpers/map-config-to-workspace-store.js +2 -2
  56. package/dist/helpers/map-configuration.d.ts +1 -1
  57. package/dist/helpers/map-configuration.d.ts.map +1 -1
  58. package/dist/helpers/normalize-configurations.d.ts +1 -1
  59. package/dist/helpers/normalize-configurations.d.ts.map +1 -1
  60. package/dist/helpers/normalize-configurations.js +1 -1
  61. package/dist/hooks/use-workspace-store-events.js +1 -1
  62. package/dist/index.d.ts +2 -1
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  65. package/dist/style.css +582 -633
  66. package/package.json +20 -20
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAwnCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAoDpC,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;AAgt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AAM,CAAA;KAAE,CAAA;CAClC,CAAC;AA+sCF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oPAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -4,7 +4,7 @@ import _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-cc258b2c"]]);
7
+ const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8817c068"]]);
8
8
  export {
9
9
  ApiReference as default
10
10
  };
@@ -22,6 +22,7 @@ import _sfc_main$1 from "./MobileHeader.vue.js";
22
22
  import _sfc_main$2 from "../features/multiple-documents/DocumentSelector.vue.js";
23
23
  import _sfc_main$3 from "../features/Search/components/SearchButton.vue.js";
24
24
  import _sfc_main$5 from "../features/toolbar/ApiReferenceToolbar.vue.js";
25
+ import { getSystemModePreference } from "../helpers/color-mode.js";
25
26
  import { downloadDocument } from "../helpers/download.js";
26
27
  import { getIdFromUrl, makeUrlFromId } from "../helpers/id-routing.js";
27
28
  import { intersectionEnabled, scrollToLazy } from "../helpers/lazy-bus.js";
@@ -460,6 +461,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
460
461
  useIntersection(documentStartRef, () => {
461
462
  eventBus.emit("intersecting:nav-item", { id: activeSlug.value });
462
463
  });
464
+ const colorMode = computed(() => {
465
+ const mode = workspaceStore.workspace["x-scalar-color-mode"];
466
+ if (mode === "system") {
467
+ return getSystemModePreference();
468
+ }
469
+ return mode;
470
+ });
463
471
  return (_ctx, _cache) => {
464
472
  return openBlock(), createElementBlock("div", {
465
473
  ref_key: "root",
@@ -541,7 +549,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
541
549
  toggle: withCtx(() => [
542
550
  !mergedConfig.value.hideDarkModeToggle ? (openBlock(), createBlock(unref(ScalarColorModeToggleButton), {
543
551
  key: 0,
544
- modelValue: !!unref(workspaceStore).workspace["x-scalar-dark-mode"],
552
+ modelValue: colorMode.value === "dark",
545
553
  "onUpdate:modelValue": _cache[0] || (_cache[0] = () => unref(toggleColorMode)())
546
554
  }, null, 8, ["modelValue"])) : (openBlock(), createElementBlock("span", _hoisted_2))
547
555
  ]),
@@ -607,7 +615,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
607
615
  !mergedConfig.value.hideDarkModeToggle ? (openBlock(), createBlock(unref(ScalarColorModeToggleIcon), {
608
616
  key: 0,
609
617
  class: "text-c-2 hover:text-c-1",
610
- mode: !!unref(workspaceStore).workspace["x-scalar-dark-mode"] ? "dark" : "light",
618
+ mode: colorMode.value,
611
619
  style: { "transform": "scale(1.4)" },
612
620
  variant: "icon",
613
621
  onClick: _cache[4] || (_cache[4] = () => unref(toggleColorMode)())
@@ -1,5 +1,6 @@
1
1
  import type { Server } from '@scalar/oas-utils/entities/spec';
2
- import type { ApiReferenceConfiguration, Heading } from '@scalar/types';
2
+ import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
3
+ import type { Heading } from '@scalar/types/legacy';
3
4
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
4
5
  import type { TraversedEntry as TraversedEntryType } from '@scalar/workspace-store/schemas/navigation';
5
6
  import type { Workspace, WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAqLA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,EAAE,yBAAyB,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AACtG,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EAClB,MAAM,2CAA2C,CAAA;AAclD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAEhF,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAA;IACvC,oBAAoB,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAA;IAC1D,kBAAkB,EAAE,oBAAoB,CAAA;IACxC,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,OAAO,EAAE;QACP,aAAa,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAA;QACzD,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAA;QAC5B,WAAW,EAAE,OAAO,CAAA;QACpB,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QACrC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAA;QAC5B,sBAAsB,EAAE,OAAO,GAAG,SA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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;AAgC5C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaEnumPropertyItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumPropertyItem.vue"],"names":[],"mappings":"AA2FA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;;AA2EF,wBAMG"}
1
+ {"version":3,"file":"SchemaEnumPropertyItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumPropertyItem.vue"],"names":[],"mappings":"AAmGA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;;AAsFF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SchemaEnumPropertyItem.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaEnumPropertyItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a9e61b34"]]);
4
+ const SchemaEnumPropertyItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-88bc950e"]]);
5
5
  export {
6
6
  SchemaEnumPropertyItem as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, toDisplayString, createVNode, unref } from "vue";
2
- import { ScalarMarkdown } from "@scalar/components";
1
+ import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, createVNode, unref } from "vue";
2
+ import { ScalarWrappingText, ScalarMarkdown } from "@scalar/components";
3
3
  const _hoisted_1 = { class: "property-enum-value" };
4
4
  const _hoisted_2 = { class: "property-enum-value-content" };
5
5
  const _hoisted_3 = { class: "property-enum-value-label" };
@@ -17,7 +17,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  return (_ctx, _cache) => {
18
18
  return openBlock(), createElementBlock("li", _hoisted_1, [
19
19
  createElementVNode("div", _hoisted_2, [
20
- createElementVNode("span", _hoisted_3, toDisplayString(_ctx.label), 1),
20
+ createElementVNode("span", _hoisted_3, [
21
+ createVNode(unref(ScalarWrappingText), {
22
+ text: _ctx.label,
23
+ preset: "property"
24
+ }, null, 8, ["text"])
25
+ ]),
21
26
  _ctx.description ? (openBlock(), createElementBlock("span", _hoisted_4, [
22
27
  createVNode(unref(ScalarMarkdown), { value: _ctx.description }, null, 8, ["value"])
23
28
  ])) : createCommentVNode("", true)
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaHeading.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAMhG,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC;;AAwFF,wBAMG"}
1
+ {"version":3,"file":"SchemaHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaHeading.vue"],"names":[],"mappings":"AA4EA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAMhG,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC;;AAmGF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SchemaHeading.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0759195c"]]);
4
+ const SchemaHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-70cb5c13"]]);
5
5
  export {
6
6
  SchemaHeading as default
7
7
  };
@@ -1,4 +1,5 @@
1
- import { defineComponent, computed, createElementBlock, createCommentVNode, openBlock, createElementVNode, unref, Fragment, createTextVNode, toDisplayString } from "vue";
1
+ import { defineComponent, computed, createElementBlock, createCommentVNode, openBlock, createElementVNode, createBlock, unref, Fragment, createTextVNode, toDisplayString } from "vue";
2
+ import { ScalarWrappingText } from "@scalar/components";
2
3
  import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
3
4
  import { isTypeObject } from "./helpers/is-type-object.js";
4
5
  const _hoisted_1 = {
@@ -44,9 +45,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
45
  createTextVNode(" enum ")
45
46
  ], 64)) : createCommentVNode("", true)
46
47
  ], 8, _hoisted_2),
47
- _ctx.name ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
48
- createTextVNode(toDisplayString(_ctx.name), 1)
49
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
48
+ _ctx.name ? (openBlock(), createBlock(unref(ScalarWrappingText), {
49
+ key: 0,
50
+ text: _ctx.name,
51
+ preset: "property"
52
+ }, null, 8, ["text"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
50
53
  createTextVNode(toDisplayString(failsafeType.value), 1)
51
54
  ], 64))
52
55
  ])) : createCommentVNode("", true);
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAsjBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAUtE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;cAVW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAGA,OAAO;;AAmkB5B,0BAOG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA4jBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAUtE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;cAVW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAGA,OAAO;;AAkmB5B,0BAOG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f7140aab"]]);
4
+ const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a12694ef"]]);
5
5
  export {
6
6
  SchemaProperty as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent, computed, createBlock, openBlock, resolveDynamicComponent, normalizeClass, withCtx, createCommentVNode, createElementBlock, createVNode, createSlots, unref, toDisplayString, Fragment, createTextVNode, renderList } from "vue";
2
- import { ScalarMarkdown } from "@scalar/components";
1
+ import { defineComponent, computed, createBlock, openBlock, resolveDynamicComponent, normalizeClass, withCtx, createCommentVNode, createElementBlock, createVNode, createSlots, unref, createTextVNode, toDisplayString, Fragment, renderList } from "vue";
2
+ import { ScalarWrappingText, ScalarMarkdown } from "@scalar/components";
3
3
  import { isDefined } from "@scalar/helpers/array/is-defined";
4
4
  import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
5
  import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
@@ -186,9 +186,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
186
186
  eventBus: _ctx.eventBus
187
187
  }, {
188
188
  default: withCtx(() => [
189
- _ctx.variant === "patternProperties" ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.name), 1)) : _ctx.variant === "additionalProperties" ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.name), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
190
- createTextVNode(toDisplayString(_ctx.name), 1)
191
- ], 64))
189
+ _ctx.variant === "patternProperties" ? (openBlock(), createElementBlock("span", _hoisted_1, [
190
+ createVNode(unref(ScalarWrappingText), {
191
+ text: _ctx.name,
192
+ preset: "property"
193
+ }, null, 8, ["text"])
194
+ ])) : _ctx.variant === "additionalProperties" ? (openBlock(), createElementBlock("span", _hoisted_2, [
195
+ createVNode(unref(ScalarWrappingText), {
196
+ text: _ctx.name,
197
+ preset: "property"
198
+ }, null, 8, ["text"])
199
+ ])) : (openBlock(), createBlock(unref(ScalarWrappingText), {
200
+ key: 2,
201
+ text: _ctx.name,
202
+ preset: "property"
203
+ }, null, 8, ["text"]))
192
204
  ]),
193
205
  _: 1
194
206
  }, 8, ["breadcrumb", "eventBus"])
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAmbA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAiBhG,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA2dJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAgC5C,QAAA,MAAM,eAAe;cAjgBN,OAAO;oBAGD,OAAO;qBAJN,OAAO;kBAGV,OAAO;6EAsgBxB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAobA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAiBhG,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA2dJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAgC5C,QAAA,MAAM,eAAe;cAjgBN,OAAO;oBAGD,OAAO;qBAJN,OAAO;kBAGV,OAAO;6EAsgBxB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bfc3b782"]]);
4
+ const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5d03e993"]]);
5
5
  export {
6
6
  SchemaPropertyHeading as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import type { ApiReferenceConfiguration } from '@scalar/types';
1
+ import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
2
  import type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
3
  /** Extract the type of properties */
4
4
  type Properties = NonNullable<Extract<SchemaObject, {
@@ -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,eAAe,CAAA;AAE9D,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,EAuDR,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAKnG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,CAAA;CACrD,CAAC;AAwCF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;CAClB,CAAC;;;;;;AA+GF,wBAOG"}
1
+ {"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAKnG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,CAAA;CACrD,CAAC;AAwCF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;CAClB,CAAC;;;;;;AAmIF,wBAOG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, mergeModels, useModel, computed, createBlock, createElementBlock, openBlock, unref, withCtx, createVNode, normalizeClass, createElementVNode, createTextVNode, toDisplayString } from "vue";
1
+ import { defineComponent, mergeModels, useModel, computed, createBlock, createElementBlock, openBlock, unref, withModifiers, withCtx, createVNode, normalizeClass, createElementVNode, createTextVNode, toDisplayString } from "vue";
2
2
  import { cva, ScalarListbox, ScalarButton } from "@scalar/components";
3
3
  import { ScalarIconCaretDown } from "@scalar/icons";
4
4
  import ScreenReader from "../../../components/ScreenReader.vue.js";
@@ -41,30 +41,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  return contentTypes.value.length > 1 ? (openBlock(), createBlock(unref(ScalarListbox), {
42
42
  key: 0,
43
43
  modelValue: selectedOption.value,
44
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedOption.value = $event),
44
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedOption.value = $event),
45
45
  options: options.value,
46
- placement: "bottom-end"
46
+ placement: "bottom-end",
47
+ onClick: _cache[2] || (_cache[2] = withModifiers(() => {
48
+ }, ["stop"]))
47
49
  }, {
48
- default: withCtx(() => [
50
+ default: withCtx(({ open }) => [
49
51
  createVNode(unref(ScalarButton), {
50
52
  class: normalizeClass(["h-fit", unref(contentTypeSelect)({ dropdown: true })]),
51
- variant: "ghost"
53
+ variant: "ghost",
54
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {
55
+ }, ["stop"]))
52
56
  }, {
53
57
  default: withCtx(() => [
54
58
  createVNode(ScreenReader, null, {
55
- default: withCtx(() => [..._cache[1] || (_cache[1] = [
59
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
56
60
  createTextVNode("Selected Content Type:", -1)
57
61
  ])]),
58
62
  _: 1
59
63
  }),
60
64
  createElementVNode("span", null, toDisplayString(selectedContentType.value), 1),
61
65
  createVNode(unref(ScalarIconCaretDown), {
62
- class: "ui-open:rotate-180 size-2.75 transition-transform duration-100",
66
+ class: normalizeClass(["size-2.75 transition-transform duration-100", { "rotate-180": open }]),
63
67
  weight: "bold"
64
- })
68
+ }, null, 8, ["class"])
65
69
  ]),
66
- _: 1
67
- }, 8, ["class"])
70
+ _: 2
71
+ }, 1032, ["class"])
68
72
  ]),
69
73
  _: 1
70
74
  }, 8, ["modelValue", "options"])) : (openBlock(), createElementBlock("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAsSA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEf,MAAM,8DAA8D,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,GAAG,cAAc,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,CAAA;QAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AA+TF,wBAMG"}
1
+ {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAmTA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEf,MAAM,8DAA8D,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,GAAG,cAAc,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,CAAA;QAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAiWF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ParameterListItem.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ae744934"]]);
4
+ const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-57b2f2e5"]]);
5
5
  export {
6
6
  ParameterListItem as default
7
7
  };
@@ -1,16 +1,18 @@
1
- import { defineComponent, computed, ref, createElementBlock, openBlock, createVNode, createElementVNode, unref, withCtx, createBlock, createCommentVNode, normalizeClass, toDisplayString } from "vue";
1
+ import { defineComponent, computed, ref, createElementBlock, openBlock, createVNode, unref, withCtx, createBlock, createCommentVNode, normalizeClass, createElementVNode } from "vue";
2
2
  import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/vue";
3
- import { ScalarMarkdown } from "@scalar/components";
3
+ import { ScalarWrappingText, ScalarMarkdownSummary, ScalarMarkdown } from "@scalar/components";
4
4
  import { isDefined } from "@scalar/helpers/array/is-defined";
5
5
  import { ScalarIconCaretRight } from "@scalar/icons";
6
6
  import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
7
7
  import SchemaProperty from "../../../components/Content/Schema/SchemaProperty.vue.js";
8
8
  import _sfc_main$1 from "./ContentTypeSelect.vue.js";
9
9
  import Headers from "./Headers.vue.js";
10
- const _hoisted_1 = { class: "parameter-item group/parameter-item relative" };
11
- const _hoisted_2 = { class: "parameter-item-name" };
12
- const _hoisted_3 = { class: "parameter-item-type" };
13
- const _hoisted_4 = { class: "absolute top-3 right-0 opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100" };
10
+ const _hoisted_1 = { class: "parameter-item group/parameter-item" };
11
+ const _hoisted_2 = { class: "parameter-item-name min-w-0" };
12
+ const _hoisted_3 = {
13
+ key: 1,
14
+ class: "flex-1"
15
+ };
14
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
15
17
  __name: "ParameterListItem",
16
18
  props: {
@@ -64,20 +66,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
66
  class: normalizeClass(["parameter-item-trigger", { "parameter-item-trigger-open": open }])
65
67
  }, {
66
68
  default: withCtx(() => [
67
- createElementVNode("span", _hoisted_2, [
69
+ createElementVNode("div", _hoisted_2, [
68
70
  createVNode(unref(ScalarIconCaretRight), {
69
71
  class: normalizeClass(["parameter-item-icon size-3 transition-transform duration-100", { "rotate-90": open }]),
70
72
  weight: "bold"
71
73
  }, null, 8, ["class"]),
72
- createElementVNode("span", null, toDisplayString(_ctx.name), 1)
74
+ createElementVNode("div", null, [
75
+ createVNode(unref(ScalarWrappingText), {
76
+ text: _ctx.name,
77
+ preset: "property"
78
+ }, null, 8, ["text"])
79
+ ])
73
80
  ]),
74
- createElementVNode("span", _hoisted_3, [
75
- _ctx.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdown), {
81
+ !open && _ctx.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdownSummary), {
82
+ key: 0,
83
+ class: "parameter-item-description-summary min-w-0 flex-1",
84
+ controlled: "",
85
+ value: _ctx.parameter.description
86
+ }, null, 8, ["value"])) : (openBlock(), createElementBlock("div", _hoisted_3)),
87
+ createElementVNode("div", {
88
+ class: normalizeClass({
89
+ "w-0 overflow-hidden group-focus-within/parameter-item:w-auto group-hover/parameter-item:w-auto": !open
90
+ })
91
+ }, [
92
+ shouldCollapse.value && content.value ? (openBlock(), createBlock(_sfc_main$1, {
76
93
  key: 0,
77
- class: "markdown",
78
- value: _ctx.parameter.description
79
- }, null, 8, ["value"])) : createCommentVNode("", true)
80
- ])
94
+ modelValue: selectedContentType.value,
95
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedContentType.value = $event),
96
+ class: "",
97
+ content: content.value
98
+ }, null, 8, ["modelValue", "content"])) : createCommentVNode("", true)
99
+ ], 2)
81
100
  ]),
82
101
  _: 2
83
102
  }, 1032, ["class"])) : createCommentVNode("", true),
@@ -86,8 +105,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
105
  static: !shouldCollapse.value
87
106
  }, {
88
107
  default: withCtx(() => [
89
- headers.value ? (openBlock(), createBlock(Headers, {
108
+ shouldCollapse.value && _ctx.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdown), {
90
109
  key: 0,
110
+ class: "parameter-item-description",
111
+ value: _ctx.parameter.description
112
+ }, null, 8, ["value"])) : createCommentVNode("", true),
113
+ headers.value ? (openBlock(), createBlock(Headers, {
114
+ key: 1,
91
115
  breadcrumb: _ctx.breadcrumb,
92
116
  eventBus: _ctx.eventBus,
93
117
  headers: headers.value,
@@ -117,16 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
117
141
  }, 8, ["static"])
118
142
  ]),
119
143
  _: 1
120
- }),
121
- createElementVNode("div", _hoisted_4, [
122
- shouldCollapse.value && content.value ? (openBlock(), createBlock(_sfc_main$1, {
123
- key: 0,
124
- modelValue: selectedContentType.value,
125
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedContentType.value = $event),
126
- class: "parameter-item-content-type",
127
- content: content.value
128
- }, null, 8, ["modelValue", "content"])) : createCommentVNode("", true)
129
- ])
144
+ })
130
145
  ]);
131
146
  };
132
147
  }
@@ -1,4 +1,4 @@
1
- import type { ApiReferenceConfiguration } from '@scalar/types';
1
+ import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
2
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
3
3
  type __VLS_Props = {
4
4
  workspace?: WorkspaceStore;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbar.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAQpE,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AAyBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;;;;;;AAoGF,wBAOG"}
1
+ {"version":3,"file":"ApiReferenceToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbar.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAQpE,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AAyBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;;;;;;AAoGF,wBAOG"}
@@ -23,11 +23,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  emits: ["update:overrides"],
24
24
  setup(__props) {
25
25
  const overrides = useModel(__props, "overrides");
26
- const showToolbar = computed(() => {
27
- if (__props.configuration?.showToolbar === "always") {
26
+ const showDeveloperTools = computed(() => {
27
+ if (__props.configuration?.showDeveloperTools === "always") {
28
28
  return true;
29
29
  }
30
- if (__props.configuration?.showToolbar === "never") {
30
+ if (__props.configuration?.showDeveloperTools === "never") {
31
31
  return false;
32
32
  }
33
33
  if (typeof window === "undefined") {
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
36
  return isLocalUrl(window.location.href);
37
37
  });
38
38
  return (_ctx, _cache) => {
39
- return showToolbar.value ? (openBlock(), createElementBlock("header", _hoisted_1, [
39
+ return showDeveloperTools.value ? (openBlock(), createElementBlock("header", _hoisted_1, [
40
40
  createElementVNode("div", _hoisted_2, [
41
41
  createElementVNode("div", _hoisted_3, [
42
42
  createVNode(_sfc_main$1)
@@ -1,4 +1,4 @@
1
- import type { ApiReferenceConfiguration } from '@scalar/types';
1
+ import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
2
  type __VLS_Props = {
3
3
  configuration?: Partial<ApiReferenceConfiguration>;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceToolbarConfig.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarConfig.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAQ9D,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AA2BF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;;;;;;AA4JF,wBAOG"}
1
+ {"version":3,"file":"ApiReferenceToolbarConfig.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarConfig.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAQ5E,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AA2BF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;;;;;;AA4JF,wBAOG"}
@@ -1,4 +1,4 @@
1
- import type { ApiReferenceConfiguration } from '@scalar/types';
1
+ import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
2
  type LayoutOptions = {
3
3
  showSidebar?: boolean;
4
4
  defaultOpenAllTags?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceToolbarConfigLayoutOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,KAAK,aAAa,GAAG;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AA8BF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;;;;;;AA8MF,wBAOG"}
1
+ {"version":3,"file":"ApiReferenceToolbarConfigLayoutOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,KAAK,aAAa,GAAG;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AA8BF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;;;;;;AA8MF,wBAOG"}
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceToolbarConfigTheme.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarConfigTheme.vue"],"names":[],"mappings":"AAwCA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AA4BpE,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;;;;;AAkEF,wBAOG"}
1
+ {"version":3,"file":"ApiReferenceToolbarConfigTheme.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarConfigTheme.vue"],"names":[],"mappings":"AA2EA,OAAO,EAAkC,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAmC7E,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;;;;;AAmIF,wBAOG"}
@@ -1,6 +1,9 @@
1
- import { defineComponent, useModel, computed, createBlock, openBlock, unref, withCtx, createVNode, createTextVNode, toDisplayString } from "vue";
2
- import { ScalarCombobox, ScalarListboxInput } from "@scalar/components";
3
- import { themeIds, themeLabels } from "@scalar/themes";
1
+ import { defineComponent, useModel, computed, createBlock, openBlock, unref, withCtx, createVNode, createElementVNode, toDisplayString, normalizeClass } from "vue";
2
+ import { ScalarCombobox, ScalarListboxCheckbox, ScalarThemeSwatches, ScalarFormInput } from "@scalar/components";
3
+ import { ScalarIconCaretDown } from "@scalar/icons";
4
+ import { themeIds, presets, themeLabels } from "@scalar/themes";
5
+ const _hoisted_1 = { class: "min-w-0 flex-1 truncate text-left" };
6
+ const _hoisted_2 = { class: "text-c-1 inline-block min-w-0 flex-1 truncate" };
4
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
8
  __name: "ApiReferenceToolbarConfigTheme",
6
9
  props: {
@@ -11,7 +14,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
14
  setup(__props) {
12
15
  const model = useModel(__props, "modelValue");
13
16
  const options = computed(
14
- () => themeIds.map((id) => ({ id, label: themeLabels[id] }))
17
+ () => themeIds.filter((id) => id !== "none").map((id) => ({
18
+ id,
19
+ label: themeLabels[id],
20
+ css: presets[id].theme
21
+ }))
15
22
  );
16
23
  const selected = computed({
17
24
  get: () => {
@@ -28,12 +35,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
35
  resize: ""
29
36
  }, {
30
37
  default: withCtx(({ open }) => [
31
- createVNode(unref(ScalarListboxInput), { open }, {
38
+ createVNode(unref(ScalarFormInput), null, {
32
39
  default: withCtx(() => [
33
- createTextVNode(toDisplayString(selected.value.label), 1)
40
+ createElementVNode("div", _hoisted_1, toDisplayString(selected.value.label), 1),
41
+ createVNode(unref(ScalarThemeSwatches), {
42
+ class: "mr-2",
43
+ css: selected.value.css
44
+ }, null, 8, ["css"]),
45
+ createVNode(unref(ScalarIconCaretDown), {
46
+ class: normalizeClass(["size-3.5 transition-transform", { "rotate-180": open }])
47
+ }, null, 8, ["class"])
34
48
  ]),
35
- _: 1
36
- }, 8, ["open"])
49
+ _: 2
50
+ }, 1024)
51
+ ]),
52
+ option: withCtx(({ selected: selected2, option }) => [
53
+ createVNode(unref(ScalarListboxCheckbox), { selected: selected2 }, null, 8, ["selected"]),
54
+ createElementVNode("span", _hoisted_2, toDisplayString(option.label), 1),
55
+ createVNode(unref(ScalarThemeSwatches), {
56
+ css: option.css
57
+ }, null, 8, ["css"])
37
58
  ]),
38
59
  _: 1
39
60
  }, 8, ["modelValue", "options"]);
@@ -9,7 +9,7 @@ const _hoisted_1 = {
9
9
  };
10
10
  const _hoisted_2 = { class: "-m-2 flex flex-col gap-2 leading-relaxed" };
11
11
  const _hoisted_3 = { class: "bg-b-2 inline-flex items-center gap-0.5 rounded border px-1 py-0.5 text-sm" };
12
- const CONFIG_SETTING = 'showToolbar: "never"';
12
+ const CONFIG_SETTING = 'showDeveloperTools: "never"';
13
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  __name: "ApiReferenceToolbarTitle",
15
15
  setup(__props) {
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Gets the system color mode preference from the browser.
3
+ * Falls back to 'light' if running in a non-browser environment.
4
+ *
5
+ * @returns The system preference for dark or light mode.
6
+ */
7
+ export declare const getSystemModePreference: () => "dark" | "light";
8
+ //# sourceMappingURL=color-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-mode.d.ts","sourceRoot":"","sources":["../../src/helpers/color-mode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,QAAO,MAAM,GAAG,OAMnD,CAAA"}
@@ -0,0 +1,9 @@
1
+ const getSystemModePreference = () => {
2
+ if (typeof window === "undefined" || typeof window?.matchMedia !== "function") {
3
+ return "light";
4
+ }
5
+ return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
6
+ };
7
+ export {
8
+ getSystemModePreference
9
+ };
@@ -1,5 +1,6 @@
1
1
  import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
- import type { ApiReferenceConfigurationRaw, OpenAPIV3_1 } from '@scalar/types';
2
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
+ import type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference';
3
4
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
4
5
  import type { SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/security-requirement';
5
6
  import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/security-scheme';
@@ -1 +1 @@
1
- {"version":3,"file":"map-config-to-client-store.d.ts","sourceRoot":"","sources":["../../src/helpers/map-config-to-client-store.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,4BAA4B,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAA;AACjH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAA;AACvG,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,cAAc,CAAA;AAEpE,OAAO,EAAE,KAAK,GAAG,EAA4C,MAAM,KAAK,CAAA;AAKxE;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,cAAc,EACd,EAAE,EACF,IAAI,EACJ,oBAAoB,EACpB,WAAW,GACZ,EAAE;IACD,4CAA4C;IAC5C,EAAE,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAC3B,oDAAoD;IACpD,IAAI,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAC7B,0CAA0C;IAC1C,MAAM,EAAE,gBAAgB,CAAC,4BAA4B,CAAC,CAAA;IACtD,gCAAgC;IAChC,cAAc,EAAE,cAAc,CAAA;IAC9B,oBAAoB,EAAE,gBAAgB,CAAC,WAAW,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAA;IACnE,mBAAmB;IACnB,WAAW,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAA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