@scalar/api-reference 1.36.0 → 1.36.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/browser/standalone.js +14762 -14744
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +2 -0
  5. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  6. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  7. package/dist/components/Content/Models/ClassicLayout.vue2.js +52 -41
  8. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Models/Models.vue.js +9 -8
  10. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  12. package/dist/components/Content/Models/ModernLayout.vue2.js +46 -42
  13. package/dist/components/Content/Schema/Schema.vue.d.ts +3 -4
  14. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  16. package/dist/components/Content/Schema/Schema.vue2.js +72 -75
  17. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +4 -5
  18. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Schema/SchemaComposition.vue.js +46 -49
  20. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +2 -7
  21. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +29 -40
  23. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -5
  24. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  26. package/dist/components/Content/Schema/SchemaProperty.vue2.js +72 -76
  27. package/dist/components/Content/Schema/types.d.ts +17 -0
  28. package/dist/components/Content/Schema/types.d.ts.map +1 -0
  29. package/dist/features/Operation/components/Header.vue.d.ts +2 -0
  30. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  31. package/dist/features/Operation/components/Header.vue.js +15 -10
  32. package/dist/features/Operation/components/Headers.vue.d.ts +2 -0
  33. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  34. package/dist/features/Operation/components/Headers.vue.js +1 -1
  35. package/dist/features/Operation/components/Headers.vue2.js +23 -21
  36. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  37. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  38. package/dist/features/Operation/components/ParameterListItem.vue2.js +55 -48
  39. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  40. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  41. package/dist/features/Operation/components/RequestBody.vue2.js +74 -61
  42. package/dist/features/api-client-modal/useApiClient.d.ts +20 -20
  43. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  44. package/dist/helpers/convert-security-scheme.d.ts +1 -1
  45. package/dist/index.js +1 -1
  46. package/dist/style.css +1 -1
  47. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
  48. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +5 -6
  49. package/package.json +10 -10
@@ -1,4 +1,5 @@
1
1
  import type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ import type { SchemaOptions } from '../../../components/Content/Schema/types';
2
3
  import { type CompositionKeyword } from './helpers/schema-composition.js';
3
4
  type __VLS_Props = {
4
5
  /** The composition keyword (oneOf, anyOf, allOf) */
@@ -8,19 +9,17 @@ type __VLS_Props = {
8
9
  /** Optional name for the schema */
9
10
  name?: string;
10
11
  /** The schema value containing the composition */
11
- value: SchemaObject;
12
+ schema: SchemaObject;
12
13
  /** Nesting level for proper indentation */
13
14
  level: number;
14
15
  /** Whether to use compact layout */
15
16
  compact?: boolean;
16
17
  /** Whether to hide the heading */
17
18
  hideHeading?: boolean;
18
- /** Whether to hide read-only properties */
19
- hideReadOnly?: boolean;
20
- /** Hide write-only properties */
21
- hideWriteOnly?: boolean;
22
19
  /** Breadcrumb for navigation */
23
20
  breadcrumb?: string[];
21
+ /** Move the options into single prop so they are easy to pass around */
22
+ options: SchemaOptions;
24
23
  };
25
24
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
25
  compact: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAwJA,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGtE,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,KAAK,EAAE,YAAY,CAAA;IACnB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;aATU,OAAO;iBAEH,OAAO;;AA+NzB,wBAOG"}
1
+ {"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAsJA,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;AAGtE,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,yEAAyE;IACzE,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;aAPU,OAAO;iBAEH,OAAO;;AAyNzB,wBAOG"}
@@ -1,94 +1,91 @@
1
- import { defineComponent as y, computed as n, ref as g, createElementBlock as d, openBlock as l, createBlock as O, unref as m, Fragment as C, createVNode as s, createElementVNode as t, withCtx as S, createCommentVNode as R, toDisplayString as u, normalizeClass as B } from "vue";
2
- import { ScalarListbox as H } from "@scalar/components";
3
- import { isDefined as W } from "@scalar/helpers/array/is-defined";
4
- import { ScalarIconCaretDown as k } from "@scalar/icons";
5
- import { getResolvedRef as V } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
- import { getSchemaType as w } from "./helpers/get-schema-type.js";
7
- import { mergeAllOfSchemas as N } from "./helpers/merge-all-of-schemas.js";
8
- import h from "./Schema.vue.js";
9
- const z = { class: "property-rule" }, D = {
1
+ import { defineComponent as g, computed as n, ref as y, createElementBlock as s, openBlock as i, createBlock as C, unref as m, Fragment as S, createVNode as c, createElementVNode as r, withCtx as H, createCommentVNode as k, toDisplayString as u, normalizeClass as V } from "vue";
2
+ import { ScalarListbox as w } from "@scalar/components";
3
+ import { isDefined as B } from "@scalar/helpers/array/is-defined";
4
+ import { ScalarIconCaretDown as N } from "@scalar/icons";
5
+ import { getResolvedRef as O } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
+ import { getSchemaType as z } from "./helpers/get-schema-type.js";
7
+ import { mergeAllOfSchemas as D } from "./helpers/merge-all-of-schemas.js";
8
+ import b from "./Schema.vue.js";
9
+ const U = { class: "property-rule" }, A = {
10
10
  class: "composition-selector bg-b-1.5 hover:bg-b-2 flex w-full cursor-pointer items-center gap-1 rounded-t-lg border border-b-0 px-2 py-1.25 pr-3 text-left",
11
11
  type: "button"
12
- }, U = { class: "text-c-2" }, A = {
12
+ }, E = { class: "text-c-2" }, L = {
13
13
  key: 0,
14
14
  class: "text-red"
15
- }, E = { class: "composition-panel" }, G = /* @__PURE__ */ y({
15
+ }, R = { class: "composition-panel" }, J = /* @__PURE__ */ g({
16
16
  __name: "SchemaComposition",
17
17
  props: {
18
18
  composition: {},
19
19
  discriminator: {},
20
20
  name: {},
21
- value: {},
21
+ schema: {},
22
22
  level: {},
23
23
  compact: { type: Boolean, default: !1 },
24
24
  hideHeading: { type: Boolean, default: !1 },
25
- hideReadOnly: { type: Boolean },
26
- hideWriteOnly: { type: Boolean },
27
- breadcrumb: {}
25
+ breadcrumb: {},
26
+ options: {}
28
27
  },
29
- setup(b) {
30
- const a = b, c = n(
31
- () => [a.value[a.composition]].flat().map((e) => ({ value: V(e), original: e })).filter((e) => W(e.value))
32
- ), p = n(
33
- () => c.value.map((e, o) => ({
28
+ setup(h) {
29
+ const a = h, p = n(
30
+ () => [a.schema[a.composition]].flat().map((e) => ({ value: O(e), original: e })).filter((e) => B(e.value))
31
+ ), d = n(
32
+ () => p.value.map((e, o) => ({
34
33
  id: String(o),
35
- label: w(e.original) || "Schema"
34
+ label: z(e.original) || "Schema"
36
35
  }))
37
- ), i = g(p.value[0]), v = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (o) => o.toUpperCase()).toLowerCase().replace(/^(\w)/, (o) => o.toUpperCase()), r = n(
38
- () => c.value[Number(i.value.id)].value
36
+ ), t = y(d.value[0]), f = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (o) => o.toUpperCase()).toLowerCase().replace(/^(\w)/, (o) => o.toUpperCase()), l = n(
37
+ () => p.value[Number(t.value.id)].value
39
38
  );
40
- return (e, o) => (l(), d("div", z, [
41
- a.composition === "allOf" ? (l(), O(h, {
39
+ return (e, o) => (i(), s("div", U, [
40
+ a.composition === "allOf" ? (i(), C(b, {
42
41
  key: 0,
43
42
  breadcrumb: e.breadcrumb,
44
43
  compact: e.compact,
45
44
  discriminator: e.discriminator,
46
45
  hideHeading: e.hideHeading,
47
- hideReadOnly: e.hideReadOnly,
48
- hideWriteOnly: e.hideWriteOnly,
49
46
  level: e.level,
50
47
  name: e.name,
51
48
  noncollapsible: !0,
52
- schema: m(N)(a.value)
53
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideReadOnly", "hideWriteOnly", "level", "name", "schema"])) : (l(), d(C, { key: 1 }, [
54
- s(m(H), {
55
- modelValue: i.value,
56
- "onUpdate:modelValue": o[0] || (o[0] = (f) => i.value = f),
57
- options: p.value,
49
+ options: e.options,
50
+ schema: m(D)(e.schema)
51
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "level", "name", "options", "schema"])) : (i(), s(S, { key: 1 }, [
52
+ c(m(w), {
53
+ modelValue: t.value,
54
+ "onUpdate:modelValue": o[0] || (o[0] = (v) => t.value = v),
55
+ options: d.value,
58
56
  resize: ""
59
57
  }, {
60
- default: S(() => [
61
- t("button", D, [
62
- t("span", U, u(v(a.composition)), 1),
63
- t("span", {
64
- class: B(["composition-selector-label text-c-1", {
65
- "line-through": r.value?.deprecated
58
+ default: H(() => [
59
+ r("button", A, [
60
+ r("span", E, u(f(a.composition)), 1),
61
+ r("span", {
62
+ class: V(["composition-selector-label text-c-1", {
63
+ "line-through": l.value?.deprecated
66
64
  }])
67
- }, u(i.value?.label || "Schema"), 3),
68
- r.value?.deprecated ? (l(), d("div", A, " deprecated ")) : R("", !0),
69
- s(m(k))
65
+ }, u(t.value?.label || "Schema"), 3),
66
+ l.value?.deprecated ? (i(), s("div", L, " deprecated ")) : k("", !0),
67
+ c(m(N))
70
68
  ])
71
69
  ]),
72
70
  _: 1
73
71
  }, 8, ["modelValue", "options"]),
74
- t("div", E, [
75
- s(h, {
72
+ r("div", R, [
73
+ c(b, {
76
74
  breadcrumb: e.breadcrumb,
77
75
  compact: e.compact,
78
76
  discriminator: e.discriminator,
79
77
  hideHeading: e.hideHeading,
80
- hideReadOnly: e.hideReadOnly,
81
- hideWriteOnly: e.hideWriteOnly,
82
78
  level: e.level + 1,
83
79
  name: e.name,
84
80
  noncollapsible: !0,
85
- schema: r.value
86
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideReadOnly", "hideWriteOnly", "level", "name", "schema"])
81
+ options: e.options,
82
+ schema: l.value
83
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "level", "name", "options", "schema"])
87
84
  ])
88
85
  ], 64))
89
86
  ]));
90
87
  }
91
88
  });
92
89
  export {
93
- G as default
90
+ J as default
94
91
  };
@@ -1,5 +1,5 @@
1
- import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
1
  import type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ import type { SchemaOptions } from '../../../components/Content/Schema/types';
3
3
  type __VLS_Props = {
4
4
  schema: SchemaObject;
5
5
  discriminator?: DiscriminatorObject;
@@ -7,13 +7,8 @@ type __VLS_Props = {
7
7
  hideHeading?: boolean;
8
8
  level?: number;
9
9
  hideModelNames?: boolean;
10
- /** Hide readonly properties */
11
- hideReadOnly?: boolean;
12
- /** Hide write-only properties */
13
- hideWriteOnly?: boolean;
14
10
  breadcrumb?: string[];
15
- orderSchemaPropertiesBy?: ApiReferenceConfiguration['orderSchemaPropertiesBy'];
16
- orderRequiredPropertiesFirst?: ApiReferenceConfiguration['orderRequiredPropertiesFirst'];
11
+ options: SchemaOptions;
17
12
  };
18
13
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
14
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaObjectProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaObjectProperties.vue"],"names":[],"mappings":"AA8JA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,uBAAuB,CAAC,EAAE,yBAAyB,CAAC,yBAAyB,CAAC,CAAA;IAC9E,4BAA4B,CAAC,EAAE,yBAAyB,CAAC,8BAA8B,CAAC,CAAA;CACzF,CAAC;;AA6MF,wBAMG"}
1
+ {"version":3,"file":"SchemaObjectProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaObjectProperties.vue"],"names":[],"mappings":"AA2IA,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;AA2LF,wBAMG"}
@@ -1,9 +1,9 @@
1
- import { defineComponent as f, computed as v, createElementBlock as o, openBlock as a, Fragment as t, createCommentVNode as l, createBlock as m, unref as n, renderList as u } from "vue";
2
- import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import { isTypeObject as s } from "./helpers/is-type-object.js";
4
- import { sortPropertyNames as g } from "./helpers/sort-property-names.js";
5
- import c from "./SchemaProperty.vue.js";
6
- const H = /* @__PURE__ */ f({
1
+ import { defineComponent as N, computed as y, createElementBlock as n, openBlock as i, Fragment as t, createCommentVNode as d, createBlock as s, unref as a, renderList as h } from "vue";
2
+ import { getResolvedRef as l } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { isTypeObject as c } from "./helpers/is-type-object.js";
4
+ import { sortPropertyNames as v } from "./helpers/sort-property-names.js";
5
+ import p from "./SchemaProperty.vue.js";
6
+ const B = /* @__PURE__ */ N({
7
7
  __name: "SchemaObjectProperties",
8
8
  props: {
9
9
  schema: {},
@@ -12,74 +12,63 @@ const H = /* @__PURE__ */ f({
12
12
  hideHeading: { type: Boolean },
13
13
  level: {},
14
14
  hideModelNames: { type: Boolean },
15
- hideReadOnly: { type: Boolean },
16
- hideWriteOnly: { type: Boolean },
17
15
  breadcrumb: {},
18
- orderSchemaPropertiesBy: { default: "alpha" },
19
- orderRequiredPropertiesFirst: { default: !0 }
16
+ options: {}
20
17
  },
21
- setup(i) {
22
- const y = v(
23
- () => g(i.schema, i.discriminator, {
24
- hideReadOnly: i.hideReadOnly,
25
- hideWriteOnly: i.hideWriteOnly,
26
- orderSchemaPropertiesBy: i.orderSchemaPropertiesBy,
27
- orderRequiredPropertiesFirst: i.orderRequiredPropertiesFirst
28
- })
29
- ), p = (e) => {
30
- const d = h(e);
31
- return typeof d == "object" && typeof d["x-additionalPropertiesName"] == "string" && d["x-additionalPropertiesName"].trim().length > 0 ? `${d["x-additionalPropertiesName"].trim()}` : "propertyName";
32
- }, b = (e) => e === !0 || typeof e == "object" && Object.keys(e).length === 0 || typeof e != "object" || !("type" in e) ? {
18
+ setup(m) {
19
+ const u = y(
20
+ () => v(m.schema, m.discriminator, m.options)
21
+ ), b = (e) => {
22
+ const o = l(e);
23
+ return typeof o == "object" && typeof o["x-additionalPropertiesName"] == "string" && o["x-additionalPropertiesName"].trim().length > 0 ? `${o["x-additionalPropertiesName"].trim()}` : "propertyName";
24
+ }, g = (e) => e === !0 || typeof e == "object" && Object.keys(e).length === 0 || typeof e != "object" || !("type" in e) ? {
33
25
  // @ts-expect-error - ask hans
34
26
  type: "anything",
35
27
  ...typeof e == "object" ? e : {}
36
28
  } : e;
37
- return (e, d) => (a(), o(t, null, [
38
- n(s)(e.schema) && e.schema.properties ? (a(!0), o(t, { key: 0 }, u(y.value, (r) => (a(), m(c, {
29
+ return (e, o) => (i(), n(t, null, [
30
+ a(c)(e.schema) && e.schema.properties ? (i(!0), n(t, { key: 0 }, h(u.value, (r) => (i(), s(p, {
39
31
  key: r,
40
32
  breadcrumb: e.breadcrumb,
41
33
  compact: e.compact,
42
34
  discriminator: e.discriminator,
43
35
  hideHeading: e.hideHeading,
44
36
  hideModelNames: e.hideModelNames,
45
- hideReadOnly: e.hideReadOnly,
46
- hideWriteOnly: e.hideWriteOnly,
47
37
  level: e.level,
48
38
  name: r,
39
+ options: e.options,
49
40
  required: e.schema.required?.includes(r),
50
- value: n(h)(e.schema.properties[r])
51
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "required", "value"]))), 128)) : l("", !0),
52
- n(s)(e.schema) && e.schema.patternProperties ? (a(!0), o(t, { key: 1 }, u(Object.entries(e.schema.patternProperties), ([r, O]) => (a(), m(c, {
41
+ schema: a(l)(e.schema.properties[r])
42
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "level", "name", "options", "required", "schema"]))), 128)) : d("", !0),
43
+ a(c)(e.schema) && e.schema.patternProperties ? (i(!0), n(t, { key: 1 }, h(Object.entries(e.schema.patternProperties), ([r, f]) => (i(), s(p, {
53
44
  key: r,
54
45
  breadcrumb: e.breadcrumb,
55
46
  compact: e.compact,
56
47
  discriminator: e.discriminator,
57
48
  hideHeading: e.hideHeading,
58
49
  hideModelNames: e.hideModelNames,
59
- hideReadOnly: e.hideReadOnly,
60
- hideWriteOnly: e.hideWriteOnly,
61
50
  level: e.level,
62
51
  name: r,
63
- value: n(h)(O)
64
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "value"]))), 128)) : l("", !0),
65
- n(s)(e.schema) && e.schema.additionalProperties ? (a(), m(c, {
52
+ options: e.options,
53
+ schema: a(l)(f)
54
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "level", "name", "options", "schema"]))), 128)) : d("", !0),
55
+ a(c)(e.schema) && e.schema.additionalProperties ? (i(), s(p, {
66
56
  key: 2,
67
57
  breadcrumb: e.breadcrumb,
68
58
  compact: e.compact,
69
59
  discriminator: e.discriminator,
70
60
  hideHeading: e.hideHeading,
71
61
  hideModelNames: e.hideModelNames,
72
- hideReadOnly: e.hideReadOnly,
73
- hideWriteOnly: e.hideWriteOnly,
74
62
  level: e.level,
75
- name: p(e.schema.additionalProperties),
63
+ name: b(e.schema.additionalProperties),
76
64
  noncollapsible: "",
77
- value: b(e.schema.additionalProperties),
65
+ options: e.options,
66
+ schema: g(e.schema.additionalProperties),
78
67
  variant: "additionalProperties"
79
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "value"])) : l("", !0)
68
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "level", "name", "options", "schema"])) : d("", !0)
80
69
  ], 64));
81
70
  }
82
71
  });
83
72
  export {
84
- H as default
73
+ B as default
85
74
  };
@@ -1,5 +1,6 @@
1
1
  import type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  import { type Component } from 'vue';
3
+ import type { SchemaOptions } from '../../../components/Content/Schema/types';
3
4
  /**
4
5
  * Note: We're taking in a prop called `value` which should be a JSON Schema.
5
6
  *
@@ -8,7 +9,7 @@ import { type Component } from 'vue';
8
9
  */
9
10
  type __VLS_Props = {
10
11
  is?: string | Component;
11
- value: SchemaObject | undefined;
12
+ schema: SchemaObject | undefined;
12
13
  noncollapsible?: boolean;
13
14
  level?: number;
14
15
  name?: string;
@@ -18,12 +19,9 @@ type __VLS_Props = {
18
19
  description?: string;
19
20
  hideModelNames?: boolean;
20
21
  hideHeading?: boolean;
21
- /** Hide read-only properties */
22
- hideReadOnly?: boolean;
23
- /** Hide write-only properties */
24
- hideWriteOnly?: boolean;
25
22
  variant?: 'additionalProperties' | 'patternProperties';
26
23
  breadcrumb?: string[];
24
+ options: SchemaOptions;
27
25
  };
28
26
  declare const _default_1: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
29
27
  level: number;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAijBA,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAa9C;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,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,gCAAgC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;WAdQ,MAAM;cAEH,OAAO;aACR,OAAO;oBAGA,OAAO;;AA+jB5B,0BAOG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA4iBA,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,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;WAXQ,MAAM;cAEH,OAAO;aACR,OAAO;oBAGA,OAAO;;AAsjB5B,0BAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7569fa08"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ad32fbeb"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };