@scalar/api-reference 1.46.3 → 1.46.4

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":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAkKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAItE,KAAK,WAAW,GAAG;IACf,oDAAoD;IACpD,WAAW,EAAE,kBAAkB,CAAA;IAC/B,4DAA4D;IAC5D,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,MAAM,EAAE,YAAY,CAAA;IACpB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iCAAiC;IACjC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,yEAAyE;IACzE,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;AAwNJ,QAAA,MAAM,YAAY;aAjOJ,OAAO;iBAEH,OAAO;6EAkOvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAiKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAItE,KAAK,WAAW,GAAG;IACf,oDAAoD;IACpD,WAAW,EAAE,kBAAkB,CAAA;IAC/B,4DAA4D;IAC5D,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,MAAM,EAAE,YAAY,CAAA;IACpB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iCAAiC;IACjC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,yEAAyE;IACzE,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;AAuNJ,QAAA,MAAM,YAAY;aAhOJ,OAAO;iBAEH,OAAO;6EAiOvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  const listboxOptions = computed(
41
41
  () => composition.value.map((schema, index) => {
42
42
  const resolved = resolve.schema(schema.original);
43
- const label = (getModelNameFromSchema(schema.original) ?? getSchemaType(resolved)) || "Schema";
43
+ const label = (getModelNameFromSchema(resolved) ?? getSchemaType(resolved)) || "Schema";
44
44
  return { id: String(index), label };
45
45
  })
46
46
  );
@@ -4,12 +4,6 @@ const getModelNameFromSchema = (schemaOrRef) => {
4
4
  if (!schemaOrRef) {
5
5
  return null;
6
6
  }
7
- if ("$ref" in schemaOrRef) {
8
- const refName = getRefName(schemaOrRef.$ref);
9
- if (refName) {
10
- return refName;
11
- }
12
- }
13
7
  const schema = resolve.schema(schemaOrRef);
14
8
  if (schema.title) {
15
9
  return schema.title;
@@ -17,6 +11,12 @@ const getModelNameFromSchema = (schemaOrRef) => {
17
11
  if (schema.name) {
18
12
  return schema.name;
19
13
  }
14
+ if ("$ref" in schemaOrRef) {
15
+ const refName = getRefName(schemaOrRef.$ref);
16
+ if (refName) {
17
+ return refName;
18
+ }
19
+ }
20
20
  return null;
21
21
  };
22
22
  export {
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.46.3",
23
+ "version": "1.46.4",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  },
@@ -87,20 +87,20 @@
87
87
  "vue": "^3.5.26",
88
88
  "@scalar/agent-chat": "0.7.3",
89
89
  "@scalar/api-client": "2.31.3",
90
+ "@scalar/helpers": "0.2.18",
90
91
  "@scalar/code-highlight": "0.2.4",
91
92
  "@scalar/icons": "0.5.3",
92
93
  "@scalar/components": "0.19.15",
93
- "@scalar/helpers": "0.2.18",
94
94
  "@scalar/oas-utils": "0.8.3",
95
- "@scalar/openapi-types": "0.5.4",
96
- "@scalar/openapi-parser": "0.24.17",
97
95
  "@scalar/sidebar": "0.7.46",
96
+ "@scalar/openapi-parser": "0.24.17",
97
+ "@scalar/openapi-types": "0.5.4",
98
98
  "@scalar/snippetz": "0.6.19",
99
99
  "@scalar/types": "0.6.10",
100
100
  "@scalar/use-toasts": "0.9.1",
101
101
  "@scalar/themes": "0.14.3",
102
- "@scalar/workspace-store": "0.35.3",
103
- "@scalar/use-hooks": "0.3.7"
102
+ "@scalar/use-hooks": "0.3.7",
103
+ "@scalar/workspace-store": "0.35.3"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@hono/node-server": "^1.19.7",