@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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.46.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8330](https://github.com/scalar/scalar/pull/8330): fix: use ref name only as a fallback
8
+
3
9
  ## 1.46.3
4
10
 
5
11
  ### Patch Changes
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.46.3
8
+ * @scalar/api-reference 1.46.4
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -35475,10 +35475,11 @@ type:"array",items:t?U6e(t,jVe.schema(n.items)):jVe.schema(n.items)}
35475
35475
  ;if(t.allOf)for(const e of t.allOf)n.push(jVe.schema(e));else n.push(t)
35476
35476
  ;return R6e({allOf:n})}const n={...e,...t}
35477
35477
  ;return"properties"in e&&"properties"in t&&(n.properties={...e.properties
35478
- },B6e(n.properties,t.properties)),n},z6e=e=>{if(!e)return null;if("$ref"in e){
35479
- const t=(e=>{if(!e)return null;const t=e.match(BV.REF_NAME);return t?t[1]:null
35480
- })(e.$ref);if(t)return t}const t=jVe.schema(e)
35481
- ;return t.title?t.title:t.name?t.name:null},Z6e={class:"property-rule"},F6e={
35478
+ },B6e(n.properties,t.properties)),n},z6e=e=>{if(!e)return null
35479
+ ;const t=jVe.schema(e);if(t.title)return t.title;if(t.name)return t.name
35480
+ ;if("$ref"in e){const t=(e=>{if(!e)return null;const t=e.match(BV.REF_NAME)
35481
+ ;return t?t[1]:null})(e.$ref);if(t)return t}return null},Z6e={
35482
+ class:"property-rule"},F6e={
35482
35483
  class:"composition-selector bg-b-1.5 hover:bg-b-2 flex w-full cursor-pointer items-center gap-1 rounded-t-lg border px-2.5 py-2.5 pr-3 text-left",
35483
35484
  type:"button"},H6e={class:"text-c-2"},Q6e={key:0,class:"text-red"},V6e={
35484
35485
  class:"composition-panel"},q6e=Eg({__name:"SchemaComposition",props:{
@@ -35488,8 +35489,8 @@ eventBus:{},options:{}},setup(e){
35488
35489
  const t=e,n=uy((()=>[t.schema[t.composition]].flat().map((e=>({
35489
35490
  value:jVe.schema(e),original:e
35490
35491
  }))).filter((e=>_V(e.value))))),r=uy((()=>n.value.map(((e,t)=>{
35491
- const n=jVe.schema(e.original),r=(z6e(e.original)??N6e(n))||"Schema";return{
35492
- id:String(t),label:r}
35492
+ const n=jVe.schema(e.original),r=(z6e(n)??N6e(n))||"Schema";return{id:String(t),
35493
+ label:r}
35493
35494
  })))),a=tm(r.value[0]),o=uy((()=>n.value[Number(a.value?.id??"0")]?.value))
35494
35495
  ;return(n,i)=>(Ab(),$b("div",Z6e,["allOf"===t.composition?(Ab(),Pb(U3e,{key:0,
35495
35496
  breadcrumb:e.breadcrumb,compact:e.compact,discriminator:e.discriminator,
@@ -37201,7 +37202,7 @@ console.warn("scalar:update-references-config event has been deprecated, please
37201
37202
  "detail"in e&&Object.assign(r,e.detail)}),!1);return{app:a,
37202
37203
  getConfiguration:()=>r.configuration??{},updateConfiguration:e=>{
37203
37204
  r.configuration=e},destroy:o}}
37204
- ;console.info("@scalar/api-reference@1.46.3"),"object"==typeof window&&(window.Scalar={
37205
+ ;console.info("@scalar/api-reference@1.46.4"),"object"==typeof window&&(window.Scalar={
37205
37206
  createApiReference:det}),function(e,t){
37206
37207
  const n=e.querySelector("[data-spec]"),r=e.querySelector("[data-spec-url]")
37207
37208
  ;t?.darkMode?e.body?.classList.add("dark-mode"):e.body?.classList.add("light-mode")