@scalar/api-reference-react 0.9.54 → 0.9.56
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 +4 -0
- package/README.md +14 -0
- package/dist/style.css +16 -16
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -5,6 +5,20 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/@scalar/api-reference-react)
|
|
6
6
|
[](https://discord.gg/scalar)
|
|
7
7
|
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
Scalar is an open-source API platform for teams who want beautiful developer interfaces without vendor lock-in.
|
|
11
|
+
|
|
12
|
+
- **[API References](https://scalar.com/products/api-references/getting-started)** — Interactive API documentation from OpenAPI and AsyncAPI specs.
|
|
13
|
+
- **[Docs](https://scalar.com/products/docs/getting-started)** — Write in Markdown/MDX, generate API references, sync with two-way Git.
|
|
14
|
+
- **[SDKs](https://scalar.com/products/sdks/getting-started)** — Type-safe client libraries in TypeScript, Python, Go, PHP, Java, and Ruby.
|
|
15
|
+
- **[MCP Servers](https://scalar.com/products/agent/getting-started)** — Generate secure MCP servers from your API spec.
|
|
16
|
+
- **[API Client](https://scalar.com/products/api-client/getting-started)** — Open-source, offline-first Postman alternative built on OpenAPI.
|
|
17
|
+
|
|
18
|
+
20M+ monthly npm installs · 15,500+ GitHub stars · MIT licensed · [scalar.com](https://scalar.com)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
8
22
|
## Documentation
|
|
9
23
|
|
|
10
24
|
[Read the documentation here](https://scalar.com/products/api-references/integrations/react)
|
package/dist/style.css
CHANGED
|
@@ -10212,7 +10212,7 @@ body {
|
|
|
10212
10212
|
}
|
|
10213
10213
|
/* Configurable Layout Variables */
|
|
10214
10214
|
@layer scalar-config {
|
|
10215
|
-
.scalar-api-reference[data-v-
|
|
10215
|
+
.scalar-api-reference[data-v-d3902f0e] {
|
|
10216
10216
|
/* The header height */
|
|
10217
10217
|
--refs-header-height: calc(
|
|
10218
10218
|
var(--scalar-custom-header-height, 0px) + var(--scalar-header-height, 0px)
|
|
@@ -10234,19 +10234,19 @@ body {
|
|
|
10234
10234
|
/* The maximum width of the content column */
|
|
10235
10235
|
--refs-content-max-width: var(--scalar-content-max-width, 1540px);
|
|
10236
10236
|
}
|
|
10237
|
-
.scalar-api-reference.references-classic[data-v-
|
|
10237
|
+
.scalar-api-reference.references-classic[data-v-d3902f0e] {
|
|
10238
10238
|
/* Classic layout is wider */
|
|
10239
10239
|
--refs-content-max-width: var(--scalar-content-max-width, 1420px);
|
|
10240
10240
|
min-height: 100dvh;
|
|
10241
10241
|
--refs-sidebar-width: 0;
|
|
10242
10242
|
}
|
|
10243
10243
|
}
|
|
10244
|
-
.t-doc__sidebar[data-v-
|
|
10244
|
+
.t-doc__sidebar[data-v-d3902f0e] {
|
|
10245
10245
|
z-index: 10;
|
|
10246
10246
|
}
|
|
10247
10247
|
/* ----------------------------------------------------- */
|
|
10248
10248
|
/* References Layout */
|
|
10249
|
-
.references-layout[data-v-
|
|
10249
|
+
.references-layout[data-v-d3902f0e] {
|
|
10250
10250
|
/* Try to fill the container */
|
|
10251
10251
|
min-height: 100dvh;
|
|
10252
10252
|
min-width: 100%;
|
|
@@ -10270,31 +10270,31 @@ body {
|
|
|
10270
10270
|
|
|
10271
10271
|
background: var(--scalar-background-1);
|
|
10272
10272
|
}
|
|
10273
|
-
.references-editor[data-v-
|
|
10273
|
+
.references-editor[data-v-d3902f0e] {
|
|
10274
10274
|
grid-area: editor;
|
|
10275
10275
|
display: flex;
|
|
10276
10276
|
min-width: 0;
|
|
10277
10277
|
background: var(--scalar-background-1);
|
|
10278
10278
|
}
|
|
10279
|
-
.references-rendered[data-v-
|
|
10279
|
+
.references-rendered[data-v-d3902f0e] {
|
|
10280
10280
|
position: relative;
|
|
10281
10281
|
grid-area: rendered;
|
|
10282
10282
|
min-width: 0;
|
|
10283
10283
|
background: var(--scalar-background-1);
|
|
10284
10284
|
}
|
|
10285
|
-
.scalar-api-reference.references-classic[data-v-
|
|
10286
|
-
.references-classic .references-rendered[data-v-
|
|
10285
|
+
.scalar-api-reference.references-classic[data-v-d3902f0e],
|
|
10286
|
+
.references-classic .references-rendered[data-v-d3902f0e] {
|
|
10287
10287
|
height: initial !important;
|
|
10288
10288
|
max-height: initial !important;
|
|
10289
10289
|
}
|
|
10290
10290
|
@layer scalar-config {
|
|
10291
|
-
.references-sidebar[data-v-
|
|
10291
|
+
.references-sidebar[data-v-d3902f0e] {
|
|
10292
10292
|
/* Set a default width if references are enabled */
|
|
10293
10293
|
--refs-sidebar-width: var(--scalar-sidebar-width, 288px);
|
|
10294
10294
|
}
|
|
10295
10295
|
}
|
|
10296
10296
|
/* Footer */
|
|
10297
|
-
.references-footer[data-v-
|
|
10297
|
+
.references-footer[data-v-d3902f0e] {
|
|
10298
10298
|
grid-area: footer;
|
|
10299
10299
|
}
|
|
10300
10300
|
/* ----------------------------------------------------- */
|
|
@@ -10309,12 +10309,12 @@ body {
|
|
|
10309
10309
|
*/
|
|
10310
10310
|
@media (width < 1000px) {
|
|
10311
10311
|
/* Keep toolbar hidden on mobile without forcing desktop display mode. */
|
|
10312
|
-
.references-developer-tools[data-v-
|
|
10312
|
+
.references-developer-tools[data-v-d3902f0e] {
|
|
10313
10313
|
display: none;
|
|
10314
10314
|
}
|
|
10315
10315
|
|
|
10316
10316
|
/* Stack view on mobile */
|
|
10317
|
-
.references-layout[data-v-
|
|
10317
|
+
.references-layout[data-v-d3902f0e] {
|
|
10318
10318
|
/* Adjust the sidebar height to the viewport height minus the header height */
|
|
10319
10319
|
--refs-sidebar-height: calc(
|
|
10320
10320
|
var(--full-height, 100dvh) - var(--scalar-custom-header-height, 0px)
|
|
@@ -10329,13 +10329,13 @@ body {
|
|
|
10329
10329
|
'rendered'
|
|
10330
10330
|
'footer';
|
|
10331
10331
|
}
|
|
10332
|
-
.references-editable[data-v-
|
|
10332
|
+
.references-editable[data-v-d3902f0e] {
|
|
10333
10333
|
grid-template-areas:
|
|
10334
10334
|
'header'
|
|
10335
10335
|
'navigation'
|
|
10336
10336
|
'editor';
|
|
10337
10337
|
}
|
|
10338
|
-
.references-rendered[data-v-
|
|
10338
|
+
.references-rendered[data-v-d3902f0e] {
|
|
10339
10339
|
position: static;
|
|
10340
10340
|
}
|
|
10341
10341
|
}
|
|
@@ -10346,11 +10346,11 @@ body {
|
|
|
10346
10346
|
*/
|
|
10347
10347
|
/* Match the layout breakpoint above so the mobile header height is only applied below `lg`. */
|
|
10348
10348
|
@media (width < 1000px) {
|
|
10349
|
-
.scalar-api-references-standalone-mobile[data-v-
|
|
10349
|
+
.scalar-api-references-standalone-mobile[data-v-d3902f0e]:not(.references-classic) {
|
|
10350
10350
|
--scalar-header-height: 50px;
|
|
10351
10351
|
}
|
|
10352
10352
|
}
|
|
10353
|
-
.darklight-reference[data-v-
|
|
10353
|
+
.darklight-reference[data-v-d3902f0e] {
|
|
10354
10354
|
width: 100%;
|
|
10355
10355
|
margin-top: auto;
|
|
10356
10356
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"testing",
|
|
19
19
|
"react"
|
|
20
20
|
],
|
|
21
|
-
"version": "0.9.
|
|
21
|
+
"version": "0.9.56",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=22"
|
|
24
24
|
},
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@scalar/api-reference": "1.62.
|
|
43
|
-
"@scalar/types": "0.16.
|
|
42
|
+
"@scalar/api-reference": "1.62.7",
|
|
43
|
+
"@scalar/types": "0.16.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/react": "^19.2.7",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"react-dom": "^19.2.3",
|
|
52
52
|
"rollup-preserve-directives": "^1.1.1",
|
|
53
53
|
"vite": "8.0.0",
|
|
54
|
-
"@scalar/helpers": "0.9.
|
|
54
|
+
"@scalar/helpers": "0.9.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"react": "^18.0.0 || ^19.0.0"
|