@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 +6 -0
- package/dist/browser/standalone.js +9 -8
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +6 -6
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
|
|
6
6
|
* /____/\____/_/ |_/_____/_/ |_/_/ |_|
|
|
7
7
|
*
|
|
8
|
-
* @scalar/api-reference 1.46.
|
|
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
|
|
35479
|
-
const t=(e
|
|
35480
|
-
|
|
35481
|
-
;return t
|
|
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(
|
|
35492
|
-
|
|
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.
|
|
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")
|