@scalar/api-reference 1.40.2 → 1.40.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 +28 -0
- package/dist/blocks/index.d.ts +5 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +12 -0
- package/dist/browser/standalone.js +8 -7
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue.js +38 -1
- package/dist/components/Anchor/WithBreadcrumb.vue2.js +1 -38
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +7 -0
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +142 -0
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +7 -0
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +125 -0
- package/dist/components/Content/ClientLibraries/featured-clients.js +24 -0
- package/dist/components/Content/ClientLibraries/index.d.ts +1 -1
- package/dist/components/Content/Models/index.d.ts +1 -0
- package/dist/components/Content/Models/index.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/index.d.ts +5 -0
- package/dist/components/Content/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +37 -4
- package/dist/features/index.d.ts +6 -0
- package/dist/features/index.d.ts.map +1 -0
- package/dist/features/index.js +12 -0
- package/dist/helpers/index.d.ts +4 -2
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +6 -1
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +8 -0
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +7 -0
- package/dist/style.css +147 -1
- package/package.json +37 -17
package/dist/style.css
CHANGED
|
@@ -6836,6 +6836,9 @@ to {
|
|
|
6836
6836
|
.scalar-app .m-auto {
|
|
6837
6837
|
margin: auto;
|
|
6838
6838
|
}
|
|
6839
|
+
.scalar-app .m-header {
|
|
6840
|
+
margin: 48px;
|
|
6841
|
+
}
|
|
6839
6842
|
.scalar-app .-mx-0\.25 {
|
|
6840
6843
|
margin-inline: -1px;
|
|
6841
6844
|
}
|
|
@@ -10162,7 +10165,7 @@ to {
|
|
|
10162
10165
|
-webkit-mask-image: linear-gradient(to right, transparent 0, var(--scalar-background-2) 20px);
|
|
10163
10166
|
mask-image: linear-gradient(to right, transparent 0, var(--scalar-background-2) 20px);
|
|
10164
10167
|
}
|
|
10165
|
-
[data-v-
|
|
10168
|
+
[data-v-1b70fdaa] .cm-content {
|
|
10166
10169
|
font-size: var(--scalar-small);
|
|
10167
10170
|
}
|
|
10168
10171
|
[data-v-25ff4902] .cm-editor {
|
|
@@ -12006,3 +12009,146 @@ to {
|
|
|
12006
12009
|
overflow: auto;
|
|
12007
12010
|
}
|
|
12008
12011
|
}
|
|
12012
|
+
|
|
12013
|
+
.client-libraries-content[data-v-f0cbe3aa] {
|
|
12014
|
+
container: client-libraries-content / inline-size;
|
|
12015
|
+
display: flex;
|
|
12016
|
+
justify-content: center;
|
|
12017
|
+
overflow: hidden;
|
|
12018
|
+
padding: 0 12px;
|
|
12019
|
+
background-color: var(--scalar-background-1);
|
|
12020
|
+
border-left: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
12021
|
+
border-right: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
12022
|
+
}
|
|
12023
|
+
.client-libraries[data-v-f0cbe3aa] {
|
|
12024
|
+
display: flex;
|
|
12025
|
+
align-items: center;
|
|
12026
|
+
justify-content: center;
|
|
12027
|
+
width: 100%;
|
|
12028
|
+
position: relative;
|
|
12029
|
+
cursor: pointer;
|
|
12030
|
+
white-space: nowrap;
|
|
12031
|
+
padding: 8px 2px;
|
|
12032
|
+
gap: 6px;
|
|
12033
|
+
color: var(--scalar-color-3);
|
|
12034
|
+
border-bottom: 1px solid transparent;
|
|
12035
|
+
user-select: none;
|
|
12036
|
+
}
|
|
12037
|
+
.client-libraries[data-v-f0cbe3aa]:not(.client-libraries__active):hover:before {
|
|
12038
|
+
content: '';
|
|
12039
|
+
position: absolute;
|
|
12040
|
+
width: calc(100% - 4px);
|
|
12041
|
+
height: calc(100% - 4px);
|
|
12042
|
+
background: var(--scalar-background-2);
|
|
12043
|
+
left: 2px;
|
|
12044
|
+
top: 2px;
|
|
12045
|
+
z-index: 0;
|
|
12046
|
+
border-radius: var(--scalar-radius);
|
|
12047
|
+
}
|
|
12048
|
+
.client-libraries[data-v-f0cbe3aa]:active {
|
|
12049
|
+
color: var(--scalar-color-1);
|
|
12050
|
+
}
|
|
12051
|
+
.client-libraries[data-v-f0cbe3aa]:focus-visible {
|
|
12052
|
+
outline: none;
|
|
12053
|
+
box-shadow: inset 0 0 0 1px var(--scalar-color-accent);
|
|
12054
|
+
}
|
|
12055
|
+
/* remove php and c on mobile */
|
|
12056
|
+
@media screen and (max-width: 450px) {
|
|
12057
|
+
.client-libraries[data-v-f0cbe3aa]:nth-of-type(4),
|
|
12058
|
+
.client-libraries[data-v-f0cbe3aa]:nth-of-type(5) {
|
|
12059
|
+
display: none;
|
|
12060
|
+
}
|
|
12061
|
+
}
|
|
12062
|
+
.client-libraries-icon[data-v-f0cbe3aa] {
|
|
12063
|
+
max-width: 14px;
|
|
12064
|
+
max-height: 14px;
|
|
12065
|
+
min-width: 14px;
|
|
12066
|
+
width: 100%;
|
|
12067
|
+
aspect-ratio: 1;
|
|
12068
|
+
display: flex;
|
|
12069
|
+
align-items: center;
|
|
12070
|
+
justify-content: center;
|
|
12071
|
+
position: relative;
|
|
12072
|
+
box-sizing: border-box;
|
|
12073
|
+
color: currentColor;
|
|
12074
|
+
}
|
|
12075
|
+
.client-libraries-icon__more svg[data-v-f0cbe3aa] {
|
|
12076
|
+
height: initial;
|
|
12077
|
+
}
|
|
12078
|
+
@container client-libraries-content (width < 400px) {
|
|
12079
|
+
.client-libraries__select {
|
|
12080
|
+
&[data-v-f0cbe3aa] {
|
|
12081
|
+
width: fit-content;
|
|
12082
|
+
}
|
|
12083
|
+
.client-libraries-icon__more + span[data-v-f0cbe3aa] {
|
|
12084
|
+
display: none;
|
|
12085
|
+
}
|
|
12086
|
+
}
|
|
12087
|
+
}
|
|
12088
|
+
@container client-libraries-content (width < 380px) {
|
|
12089
|
+
.client-libraries[data-v-f0cbe3aa] {
|
|
12090
|
+
width: 100%;
|
|
12091
|
+
}
|
|
12092
|
+
.client-libraries span[data-v-f0cbe3aa] {
|
|
12093
|
+
display: none;
|
|
12094
|
+
}
|
|
12095
|
+
}
|
|
12096
|
+
.client-libraries__active[data-v-f0cbe3aa] {
|
|
12097
|
+
color: var(--scalar-color-1);
|
|
12098
|
+
border-bottom: 1px solid var(--scalar-color-1);
|
|
12099
|
+
}
|
|
12100
|
+
@keyframes codeloader-f0cbe3aa {
|
|
12101
|
+
0% {
|
|
12102
|
+
transform: rotate(0deg);
|
|
12103
|
+
}
|
|
12104
|
+
to {
|
|
12105
|
+
transform: rotate(1turn);
|
|
12106
|
+
}
|
|
12107
|
+
}
|
|
12108
|
+
.client-libraries .client-libraries-text[data-v-f0cbe3aa] {
|
|
12109
|
+
font-size: var(--scalar-small);
|
|
12110
|
+
position: relative;
|
|
12111
|
+
display: flex;
|
|
12112
|
+
align-items: center;
|
|
12113
|
+
}
|
|
12114
|
+
.client-libraries__active .client-libraries-text[data-v-f0cbe3aa] {
|
|
12115
|
+
color: var(--scalar-color-1);
|
|
12116
|
+
font-weight: var(--scalar-semibold);
|
|
12117
|
+
}
|
|
12118
|
+
@media screen and (max-width: 600px) {
|
|
12119
|
+
.references-classic .client-libraries[data-v-f0cbe3aa] {
|
|
12120
|
+
flex-direction: column;
|
|
12121
|
+
}
|
|
12122
|
+
}
|
|
12123
|
+
|
|
12124
|
+
.selected-client[data-v-33fea7c3] {
|
|
12125
|
+
color: var(--scalar-color-1);
|
|
12126
|
+
font-size: var(--scalar-small);
|
|
12127
|
+
font-family: var(--scalar-font-code);
|
|
12128
|
+
padding: 9px 12px;
|
|
12129
|
+
border-top: none;
|
|
12130
|
+
white-space: nowrap;
|
|
12131
|
+
overflow: hidden;
|
|
12132
|
+
text-overflow: ellipsis;
|
|
12133
|
+
background: var(--scalar-background-1);
|
|
12134
|
+
border: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
12135
|
+
border-bottom-left-radius: var(--scalar-radius-lg);
|
|
12136
|
+
border-bottom-right-radius: var(--scalar-radius-lg);
|
|
12137
|
+
min-height: fit-content;
|
|
12138
|
+
}
|
|
12139
|
+
.client-libraries-heading[data-v-33fea7c3] {
|
|
12140
|
+
font-size: var(--scalar-small);
|
|
12141
|
+
font-weight: var(--scalar-font-medium);
|
|
12142
|
+
color: var(--scalar-color-1);
|
|
12143
|
+
padding: 9px 12px;
|
|
12144
|
+
background-color: var(--scalar-background-2);
|
|
12145
|
+
display: flex;
|
|
12146
|
+
align-items: center;
|
|
12147
|
+
max-height: 32px;
|
|
12148
|
+
border: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
12149
|
+
border-top-left-radius: var(--scalar-radius-lg);
|
|
12150
|
+
border-top-right-radius: var(--scalar-radius-lg);
|
|
12151
|
+
}
|
|
12152
|
+
[data-v-33fea7c3] .scalar-codeblock-pre .hljs {
|
|
12153
|
+
margin-top: 8px;
|
|
12154
|
+
}
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.40.
|
|
23
|
+
"version": "1.40.4",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -39,6 +39,26 @@
|
|
|
39
39
|
"types": "./dist/components/index.d.ts",
|
|
40
40
|
"default": "./dist/components/index.js"
|
|
41
41
|
},
|
|
42
|
+
"./blocks": {
|
|
43
|
+
"import": "./dist/blocks/index.js",
|
|
44
|
+
"types": "./dist/blocks/index.d.ts",
|
|
45
|
+
"default": "./dist/blocks/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./hooks": {
|
|
48
|
+
"import": "./dist/hooks/index.js",
|
|
49
|
+
"types": "./dist/hooks/index.d.ts",
|
|
50
|
+
"default": "./dist/hooks/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./plugins": {
|
|
53
|
+
"import": "./dist/plugins/index.js",
|
|
54
|
+
"types": "./dist/plugins/index.d.ts",
|
|
55
|
+
"default": "./dist/plugins/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./features": {
|
|
58
|
+
"import": "./dist/features/index.js",
|
|
59
|
+
"types": "./dist/features/index.d.ts",
|
|
60
|
+
"default": "./dist/features/index.js"
|
|
61
|
+
},
|
|
42
62
|
"./helpers": {
|
|
43
63
|
"import": "./dist/helpers/index.js",
|
|
44
64
|
"types": "./dist/helpers/index.d.ts",
|
|
@@ -68,25 +88,25 @@
|
|
|
68
88
|
"nanoid": "5.1.5",
|
|
69
89
|
"type-fest": "5.0.0",
|
|
70
90
|
"vue": "^3.5.21",
|
|
71
|
-
"zod": "4.1.11",
|
|
72
|
-
"@scalar/api-client": "2.14.0",
|
|
91
|
+
"zod": "^4.1.11",
|
|
73
92
|
"@scalar/code-highlight": "0.2.1",
|
|
74
|
-
"@scalar/
|
|
75
|
-
"@scalar/
|
|
93
|
+
"@scalar/api-client": "2.14.1",
|
|
94
|
+
"@scalar/components": "0.16.7",
|
|
95
|
+
"@scalar/helpers": "0.2.1",
|
|
76
96
|
"@scalar/icons": "0.5.0",
|
|
77
|
-
"@scalar/
|
|
78
|
-
"@scalar/object-utils": "1.2.
|
|
79
|
-
"@scalar/
|
|
80
|
-
"@scalar/openapi-parser": "0.23.
|
|
81
|
-
"@scalar/openapi-types": "0.5.
|
|
82
|
-
"@scalar/
|
|
83
|
-
"@scalar/
|
|
97
|
+
"@scalar/json-magic": "0.8.5",
|
|
98
|
+
"@scalar/object-utils": "1.2.15",
|
|
99
|
+
"@scalar/oas-utils": "0.6.7",
|
|
100
|
+
"@scalar/openapi-parser": "0.23.6",
|
|
101
|
+
"@scalar/openapi-types": "0.5.3",
|
|
102
|
+
"@scalar/openapi-upgrader": "0.1.6",
|
|
103
|
+
"@scalar/sidebar": "0.5.2",
|
|
104
|
+
"@scalar/snippetz": "0.5.5",
|
|
84
105
|
"@scalar/themes": "0.13.25",
|
|
85
|
-
"@scalar/
|
|
86
|
-
"@scalar/
|
|
87
|
-
"@scalar/use-hooks": "0.3.2",
|
|
106
|
+
"@scalar/types": "0.5.2",
|
|
107
|
+
"@scalar/use-hooks": "0.3.3",
|
|
88
108
|
"@scalar/use-toasts": "0.9.1",
|
|
89
|
-
"@scalar/workspace-store": "0.22.
|
|
109
|
+
"@scalar/workspace-store": "0.22.2"
|
|
90
110
|
},
|
|
91
111
|
"devDependencies": {
|
|
92
112
|
"@hono/node-server": "1.19.5",
|
|
@@ -107,7 +127,7 @@
|
|
|
107
127
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
108
128
|
"vitest": "3.2.4",
|
|
109
129
|
"@scalar/build-tooling": "0.3.1",
|
|
110
|
-
"@scalar/core": "0.3.
|
|
130
|
+
"@scalar/core": "0.3.26",
|
|
111
131
|
"@scalar/galaxy": "0.5.12",
|
|
112
132
|
"@scalar/react-renderer": "0.3.0"
|
|
113
133
|
},
|