@scalar/api-reference 1.40.9 → 1.41.1

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":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAmVA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAQtE,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2BAA2B;IAC3B,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iCAAiC;IACjC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,0EAA0E;IAC1E,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;AA6aF,wBAMG"}
1
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAyVA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAStE,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2BAA2B;IAC3B,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iCAAiC;IACjC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,0EAA0E;IAC1E,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;AAobF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Schema.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const Schema = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7829fdfd"]]);
4
+ const Schema = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4d81600f"]]);
5
5
  export {
6
6
  Schema as default
7
7
  };
@@ -2,6 +2,7 @@ import { defineComponent, computed, createBlock, createCommentVNode, openBlock,
2
2
  import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/vue";
3
3
  import { ScalarMarkdown, ScalarIcon } from "@scalar/components";
4
4
  import ScreenReader from "../../ScreenReader.vue.js";
5
+ import { isEmptySchemaObject } from "./helpers/is-empty-schema-object.js";
5
6
  import { isTypeObject } from "./helpers/is-type-object.js";
6
7
  import SchemaHeading from "./SchemaHeading.vue.js";
7
8
  import _sfc_main$1 from "./SchemaObjectProperties.vue.js";
@@ -11,6 +12,10 @@ const _hoisted_1 = {
11
12
  class: "schema-card-description"
12
13
  };
13
14
  const _hoisted_2 = {
15
+ key: 1,
16
+ class: "pt-2"
17
+ };
18
+ const _hoisted_3 = {
14
19
  key: 0,
15
20
  class: "schema-properties"
16
21
  };
@@ -69,12 +74,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
74
  schemaDescription.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
70
75
  createVNode(unref(ScalarMarkdown), { value: schemaDescription.value }, null, 8, ["value"])
71
76
  ])) : createCommentVNode("", true),
77
+ unref(isEmptySchemaObject)(_ctx.schema) ? (openBlock(), createElementBlock("div", _hoisted_2, " Empty object ")) : createCommentVNode("", true),
72
78
  createElementVNode("div", {
73
79
  class: normalizeClass(["schema-properties", {
74
80
  "schema-properties-open": open
75
81
  }])
76
82
  }, [
77
- _ctx.additionalProperties ? withDirectives((openBlock(), createElementBlock("div", _hoisted_2, [
83
+ _ctx.additionalProperties ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3, [
78
84
  createVNode(unref(DisclosureButton), {
79
85
  as: "button",
80
86
  class: "schema-card-title schema-card-title--compact",
@@ -0,0 +1,8 @@
1
+ import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ /**
3
+ * Determines if the given schema is an empty object schema.
4
+ * An empty object schema is defined as a schema with type 'object'
5
+ * and no defined properties, no additionalProperties (or set to false), and no patternProperties.
6
+ */
7
+ export declare const isEmptySchemaObject: (schema: SchemaObject | undefined) => boolean;
8
+ //# sourceMappingURL=is-empty-schema-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-empty-schema-object.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/is-empty-schema-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,QAAQ,YAAY,GAAG,SAAS,KAAG,OAUtE,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { isTypeObject } from "./is-type-object.js";
2
+ const isEmptySchemaObject = (schema) => {
3
+ if (!isTypeObject(schema)) {
4
+ return false;
5
+ }
6
+ const hasNoProperties = Object.keys(schema.properties ?? {}).length === 0;
7
+ const hasNoAdditionalProperties = schema.additionalProperties === void 0 || schema.additionalProperties === false;
8
+ const hasNoPatternProperties = Object.keys(schema.patternProperties ?? {}).length === 0;
9
+ return hasNoProperties && hasNoAdditionalProperties && hasNoPatternProperties;
10
+ };
11
+ export {
12
+ isEmptySchemaObject
13
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Tags/components/ModernLayout.vue"],"names":[],"mappings":"AAyEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAS9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACnC,CAAC;AA2GF,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA6BhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Tags/components/ModernLayout.vue"],"names":[],"mappings":"AA2EA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAS9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACnC,CAAC;AA6GF,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8BhD,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,7 +1,7 @@
1
1
  import _sfc_main from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3eabdf4c"]]);
4
+ const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d207e09e"]]);
5
5
  export {
6
6
  ModernLayout as default
7
7
  };
@@ -19,6 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  const moreThanOneDefaultTag = computed(
20
20
  () => __props.moreThanOneTag || __props.tag?.title !== "default" || __props.tag?.description !== ""
21
21
  );
22
+ const hasChildren = computed(() => (__props.tag?.children?.length ?? 0) > 0);
22
23
  return (_ctx, _cache) => {
23
24
  return openBlock(), createBlock(unref(SectionContainer), {
24
25
  ref_key: "sectionContainerRef",
@@ -40,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
41
  isLoading: _ctx.isLoading,
41
42
  tag: _ctx.tag
42
43
  }, null, 8, ["eventBus", "headerId", "isCollapsed", "isLoading", "tag"])) : createCommentVNode("", true),
43
- _ctx.isCollapsed && _ctx.moreThanOneTag ? (openBlock(), createBlock(ShowMoreButton, {
44
+ _ctx.isCollapsed && _ctx.moreThanOneTag && hasChildren.value ? (openBlock(), createBlock(ShowMoreButton, {
44
45
  key: 1,
45
46
  id: _ctx.tag.id,
46
47
  "aria-label": `Show all ${_ctx.tag.title} endpoints`,
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AA2eA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAM3D,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAYrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAiBrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,eAAe,CAAA;IAE1B,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,oBAAoB,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IAC5E,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,gGAAgG;IAChG,OAAO,EAAE;QACP,6EAA6E;QAC7E,SAAS,EAAE,OAAO,CAAA;QAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAijBF,wBAMG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAmfA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAM3D,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAYrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAmBrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,eAAe,CAAA;IAE1B,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,oBAAoB,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IAC5E,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,gGAAgG;IAChG,OAAO,EAAE;QACP,6EAA6E;QAC7E,SAAS,EAAE,OAAO,CAAA;QAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAkkBF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ClassicLayout.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const ClassicLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-29aaa3f5"]]);
4
+ const ClassicLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c3680e67"]]);
5
5
  export {
6
6
  ClassicLayout as default
7
7
  };
@@ -6,17 +6,19 @@ import { isOperationDeprecated, getOperationStability, getOperationStabilityColo
6
6
  import { useClipboard } from "@scalar/use-hooks/useClipboard";
7
7
  import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
8
8
  import OperationPath from "../../../components/OperationPath.vue.js";
9
- import _sfc_main$3 from "../components/callbacks/Callbacks.vue.js";
10
- import _sfc_main$1 from "../components/OperationParameters.vue.js";
11
- import _sfc_main$2 from "../components/OperationResponses.vue.js";
9
+ import _sfc_main$4 from "../components/callbacks/Callbacks.vue.js";
10
+ import _sfc_main$2 from "../components/OperationParameters.vue.js";
11
+ import _sfc_main$3 from "../components/OperationResponses.vue.js";
12
+ import _sfc_main$1 from "../../specification-extension/SpecificationExtension.vue2.js";
13
+ import { getXKeysFromObject } from "../../specification-extension/helpers.js";
12
14
  import SectionAccordion from "../../../components/Section/SectionAccordion.vue.js";
13
15
  import ExampleResponses from "../../example-responses/ExampleResponses.vue.js";
14
16
  import LinkList from "../../../components/LinkList/LinkList.vue.js";
15
- import _sfc_main$4 from "../../external-docs/ExternalDocs.vue.js";
16
- import _sfc_main$5 from "../../x-badges/XBadges.vue.js";
17
+ import _sfc_main$5 from "../../external-docs/ExternalDocs.vue.js";
18
+ import _sfc_main$6 from "../../x-badges/XBadges.vue.js";
17
19
  import TestRequestButton from "../../test-request-button/TestRequestButton.vue.js";
18
- import _sfc_main$6 from "../../../components/HttpMethod/HttpMethod.vue.js";
19
- import _sfc_main$7 from "../../../components/Anchor/Anchor.vue.js";
20
+ import _sfc_main$7 from "../../../components/HttpMethod/HttpMethod.vue.js";
21
+ import _sfc_main$8 from "../../../components/Anchor/Anchor.vue.js";
20
22
  import Badge from "../../../components/Badge/Badge.vue.js";
21
23
  const _hoisted_1 = { class: "operation-title" };
22
24
  const _hoisted_2 = { class: "operation-details" };
@@ -29,12 +31,16 @@ const _hoisted_6 = {
29
31
  };
30
32
  const _hoisted_7 = { class: "endpoint-content" };
31
33
  const _hoisted_8 = { class: "operation-details-card" };
32
- const _hoisted_9 = { class: "operation-details-card-item" };
33
- const _hoisted_10 = { class: "operation-details-card-item" };
34
- const _hoisted_11 = {
34
+ const _hoisted_9 = {
35
35
  key: 0,
36
36
  class: "operation-details-card-item"
37
37
  };
38
+ const _hoisted_10 = { class: "operation-details-card-item" };
39
+ const _hoisted_11 = { class: "operation-details-card-item" };
40
+ const _hoisted_12 = {
41
+ key: 1,
42
+ class: "operation-details-card-item"
43
+ };
38
44
  const _sfc_main = /* @__PURE__ */ defineComponent({
39
45
  __name: "ClassicLayout",
40
46
  props: {
@@ -51,6 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
57
  },
52
58
  setup(__props) {
53
59
  const operationTitle = computed(() => __props.operation.summary || __props.path || "");
60
+ const operationExtensions = computed(() => getXKeysFromObject(__props.operation));
54
61
  const { copyToClipboard } = useClipboard();
55
62
  return (_ctx, _cache) => {
56
63
  return openBlock(), createBlock(unref(SectionAccordion), {
@@ -64,12 +71,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
71
  title: withCtx(() => [
65
72
  createElementVNode("div", _hoisted_1, [
66
73
  createElementVNode("div", _hoisted_2, [
67
- createVNode(unref(_sfc_main$6), {
74
+ createVNode(unref(_sfc_main$7), {
68
75
  class: "endpoint-type",
69
76
  method: _ctx.method,
70
77
  short: ""
71
78
  }, null, 8, ["method"]),
72
- createVNode(unref(_sfc_main$7), {
79
+ createVNode(unref(_sfc_main$8), {
73
80
  class: "endpoint-anchor",
74
81
  onCopyAnchorUrl: _cache[0] || (_cache[0] = () => _ctx.eventBus?.emit("copy-url:nav-item", { id: _ctx.id }))
75
82
  }, {
@@ -101,7 +108,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
101
108
  ]),
102
109
  _: 1
103
110
  })) : createCommentVNode("", true),
104
- createVNode(unref(_sfc_main$5), {
111
+ createVNode(unref(_sfc_main$6), {
105
112
  badges: _ctx.operation["x-badges"],
106
113
  position: "before"
107
114
  }, null, 8, ["badges"])
@@ -113,7 +120,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
113
120
  ])
114
121
  ]),
115
122
  actions: withCtx(({ active }) => [
116
- createVNode(unref(_sfc_main$5), {
123
+ createVNode(unref(_sfc_main$6), {
117
124
  badges: _ctx.operation["x-badges"],
118
125
  position: "after"
119
126
  }, null, 8, ["badges"]),
@@ -140,8 +147,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
140
147
  default: withCtx(() => [
141
148
  createElementVNode("div", _hoisted_7, [
142
149
  createElementVNode("div", _hoisted_8, [
143
- createElementVNode("div", _hoisted_9, [
144
- createVNode(_sfc_main$1, {
150
+ Object.keys(operationExtensions.value).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_9, [
151
+ createVNode(_sfc_main$1, { value: operationExtensions.value }, null, 8, ["value"])
152
+ ])) : createCommentVNode("", true),
153
+ createElementVNode("div", _hoisted_10, [
154
+ createVNode(_sfc_main$2, {
145
155
  eventBus: _ctx.eventBus,
146
156
  options: _ctx.options,
147
157
  parameters: (
@@ -151,8 +161,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
151
161
  requestBody: unref(getResolvedRef)(_ctx.operation.requestBody)
152
162
  }, null, 8, ["eventBus", "options", "parameters", "requestBody"])
153
163
  ]),
154
- createElementVNode("div", _hoisted_10, [
155
- createVNode(_sfc_main$2, {
164
+ createElementVNode("div", _hoisted_11, [
165
+ createVNode(_sfc_main$3, {
156
166
  eventBus: _ctx.eventBus,
157
167
  options: {
158
168
  orderRequiredPropertiesFirst: _ctx.options.orderRequiredPropertiesFirst,
@@ -161,8 +171,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
161
171
  responses: _ctx.operation.responses
162
172
  }, null, 8, ["eventBus", "options", "responses"])
163
173
  ]),
164
- _ctx.operation?.callbacks ? (openBlock(), createElementBlock("div", _hoisted_11, [
165
- createVNode(_sfc_main$3, {
174
+ _ctx.operation?.callbacks ? (openBlock(), createElementBlock("div", _hoisted_12, [
175
+ createVNode(_sfc_main$4, {
166
176
  callbacks: _ctx.operation.callbacks,
167
177
  eventBus: _ctx.eventBus,
168
178
  method: _ctx.method,
@@ -179,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
179
189
  createElementVNode("div", null, [
180
190
  _ctx.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
181
191
  default: withCtx(() => [
182
- createVNode(unref(_sfc_main$4), {
192
+ createVNode(unref(_sfc_main$5), {
183
193
  value: _ctx.operation.externalDocs
184
194
  }, null, 8, ["value"])
185
195
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAuPA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAE3D,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAuBrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,eAAe,CAAA;IAC1B,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,oBAAoB,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IAC5E,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,gGAAgG;IAChG,OAAO,EAAE;QACP,6EAA6E;QAC7E,SAAS,EAAE,OAAO,CAAA;QAClB,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;QACvC,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAgfF,wBAMG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA4PA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAE3D,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAyBrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,eAAe,CAAA;IAC1B,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,oBAAoB,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IAC5E,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,gGAAgG;IAChG,OAAO,EAAE;QACP,6EAA6E;QAC7E,SAAS,EAAE,OAAO,CAAA;QAClB,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;QACvC,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AA4fF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-21dac38e"]]);
4
+ const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dcef1f62"]]);
5
5
  export {
6
6
  ModernLayout as default
7
7
  };
@@ -5,9 +5,11 @@ import { ScalarIconWebhooksLogo } from "@scalar/icons";
5
5
  import { getOperationStability, getOperationStabilityColor, isOperationDeprecated } from "@scalar/oas-utils/helpers";
6
6
  import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
7
7
  import OperationPath from "../../../components/OperationPath.vue.js";
8
- import _sfc_main$5 from "../components/callbacks/Callbacks.vue.js";
9
- import _sfc_main$3 from "../components/OperationParameters.vue.js";
10
- import _sfc_main$4 from "../components/OperationResponses.vue.js";
8
+ import _sfc_main$6 from "../components/callbacks/Callbacks.vue.js";
9
+ import _sfc_main$4 from "../components/OperationParameters.vue.js";
10
+ import _sfc_main$5 from "../components/OperationResponses.vue.js";
11
+ import _sfc_main$3 from "../../specification-extension/SpecificationExtension.vue2.js";
12
+ import { getXKeysFromObject } from "../../specification-extension/helpers.js";
11
13
  import Section from "../../../components/Section/Section.vue.js";
12
14
  import SectionContent from "../../../components/Section/SectionContent.vue.js";
13
15
  import Badge from "../../../components/Badge/Badge.vue.js";
@@ -18,7 +20,7 @@ import SectionHeaderTag from "../../../components/Section/SectionHeaderTag.vue.j
18
20
  import SectionColumns from "../../../components/Section/SectionColumns.vue.js";
19
21
  import SectionColumn from "../../../components/Section/SectionColumn.vue.js";
20
22
  import LinkList from "../../../components/LinkList/LinkList.vue.js";
21
- import _sfc_main$6 from "../../external-docs/ExternalDocs.vue.js";
23
+ import _sfc_main$7 from "../../external-docs/ExternalDocs.vue.js";
22
24
  import TestRequestButton from "../../test-request-button/TestRequestButton.vue.js";
23
25
  import ExampleResponses from "../../example-responses/ExampleResponses.vue.js";
24
26
  const _hoisted_1 = { class: "flex flex-row justify-between gap-1" };
@@ -42,6 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
44
  setup(__props) {
43
45
  const operationTitle = computed(() => __props.operation.summary || __props.path || "");
44
46
  const labelId = useId();
47
+ const operationExtensions = computed(() => getXKeysFromObject(__props.operation));
45
48
  return (_ctx, _cache) => {
46
49
  return openBlock(), createBlock(unref(Section), {
47
50
  id: _ctx.id,
@@ -122,6 +125,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
122
125
  createVNode(unref(SectionColumn), null, {
123
126
  default: withCtx(() => [
124
127
  createElementVNode("div", _hoisted_4, [
128
+ createVNode(_sfc_main$3, { value: operationExtensions.value }, null, 8, ["value"]),
125
129
  createVNode(unref(ScalarMarkdown), {
126
130
  anchorPrefix: _ctx.id,
127
131
  "aria-label": "Operation Description",
@@ -131,7 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
131
135
  withAnchors: "",
132
136
  withImages: ""
133
137
  }, null, 8, ["anchorPrefix", "value"]),
134
- createVNode(_sfc_main$3, {
138
+ createVNode(_sfc_main$4, {
135
139
  breadcrumb: [_ctx.id],
136
140
  eventBus: _ctx.eventBus,
137
141
  options: {
@@ -144,7 +148,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
144
148
  ),
145
149
  requestBody: unref(getResolvedRef)(_ctx.operation.requestBody)
146
150
  }, null, 8, ["breadcrumb", "eventBus", "options", "parameters", "requestBody"]),
147
- createVNode(_sfc_main$4, {
151
+ createVNode(_sfc_main$5, {
148
152
  breadcrumb: [_ctx.id],
149
153
  eventBus: _ctx.eventBus,
150
154
  options: {
@@ -156,7 +160,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
156
160
  }, null, 8, ["breadcrumb", "eventBus", "options", "responses"]),
157
161
  createVNode(unref(ScalarErrorBoundary), null, {
158
162
  default: withCtx(() => [
159
- _ctx.operation.callbacks ? (openBlock(), createBlock(_sfc_main$5, {
163
+ _ctx.operation.callbacks ? (openBlock(), createBlock(_sfc_main$6, {
160
164
  key: 0,
161
165
  callbacks: _ctx.operation.callbacks,
162
166
  class: "mt-6",
@@ -177,7 +181,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
177
181
  createElementVNode("div", _hoisted_5, [
178
182
  _ctx.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
179
183
  default: withCtx(() => [
180
- createVNode(unref(_sfc_main$6), {
184
+ createVNode(unref(_sfc_main$7), {
181
185
  value: _ctx.operation.externalDocs
182
186
  }, null, 8, ["value"])
183
187
  ]),