@scalar/api-reference 1.43.13 → 1.43.15
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 +49 -0
- package/dist/browser/standalone.js +53 -49
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -2
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +3 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -4
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -4
- package/dist/helpers/upload-temp-document.js +1 -1
- package/dist/style.css +72 -69
- package/package.json +12 -12
|
@@ -4,7 +4,7 @@ import _sfc_main from "./ApiReference.vue2.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
7
|
+
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-097f69f2"]]);
|
|
8
8
|
export {
|
|
9
9
|
ApiReference as default
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ import { OpenApiClientButton } from "@scalar/api-client/components";
|
|
|
4
4
|
import { createApiClientModal } from "@scalar/api-client/v2/features/modal";
|
|
5
5
|
import { getActiveEnvironment } from "@scalar/api-client/v2/helpers";
|
|
6
6
|
import { addScalarClassesToHeadless, ScalarSidebarFooter, ScalarColorModeToggleButton, ScalarColorModeToggleIcon } from "@scalar/components";
|
|
7
|
-
import { redirectToProxy } from "@scalar/
|
|
7
|
+
import { redirectToProxy } from "@scalar/helpers/url/redirect-to-proxy";
|
|
8
8
|
import { createSidebarState, ScalarSidebar } from "@scalar/sidebar";
|
|
9
9
|
import { hasObtrusiveScrollbars, getThemeStyles } from "@scalar/themes";
|
|
10
10
|
import { apiReferenceConfigurationSchema } from "@scalar/types/api-reference";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
-
import type { ParameterObject, RequestBodyObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
+
import type { ParameterObject, ReferenceType, RequestBodyObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
3
|
import type { OperationProps } from '../../../features/Operation/Operation.vue.js';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
breadcrumb?: string[];
|
|
6
|
-
parameters?: ParameterObject[];
|
|
6
|
+
parameters?: ReferenceType<ParameterObject>[];
|
|
7
7
|
requestBody?: RequestBodyObject | undefined;
|
|
8
8
|
eventBus: WorkspaceEventBus | null;
|
|
9
9
|
options: Pick<OperationProps['options'], 'orderRequiredPropertiesFirst' | 'orderSchemaPropertiesBy'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationParameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/OperationParameters.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationParameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/OperationParameters.vue"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,iBAAiB,EAClB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAKxE,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,EAAE,CAAA;IAC7C,WAAW,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAA;IAC3C,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,IAAI,CACX,cAAc,CAAC,SAAS,CAAC,EACzB,8BAA8B,GAAG,yBAAyB,CAC3D,CAAA;CACF,CAAC;;AAmJF,wBAMG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, withCtx, createTextVNode } from "vue";
|
|
2
2
|
import { shouldIgnoreEntity } from "@scalar/oas-utils/helpers";
|
|
3
|
+
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
4
|
import _sfc_main$1 from "./ParameterList.vue.js";
|
|
4
5
|
import RequestBody from "./RequestBody.vue.js";
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -14,7 +15,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
15
|
setup(__props) {
|
|
15
16
|
const splitParameters = computed(
|
|
16
17
|
() => (__props.parameters ?? []).reduce(
|
|
17
|
-
(acc,
|
|
18
|
+
(acc, p) => {
|
|
19
|
+
const parameter = getResolvedRef(p);
|
|
18
20
|
if (!shouldIgnoreEntity(parameter)) {
|
|
19
21
|
acc[parameter.in].push(parameter);
|
|
20
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AA4fA,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAMxE,KAAK,WAAW,GAAG,IAAI,CACnB,cAAc,EACd,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,iBAAiB,CACxD,GAAG;IACF,wCAAwC;IACxC,SAAS,EAAE,eAAe,CAAA;IAC1B,4CAA4C;IAC5C,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,sDAAsD;IACtD,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;CAChD,CAAC;;AAqkBJ,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ClassicLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ClassicLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ClassicLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8a5966f4"]]);
|
|
5
5
|
export {
|
|
6
6
|
ClassicLayout as default
|
|
7
7
|
};
|
|
@@ -158,10 +158,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
158
158
|
createVNode(_sfc_main$2, {
|
|
159
159
|
eventBus: __props.eventBus,
|
|
160
160
|
options: __props.options,
|
|
161
|
-
parameters:
|
|
162
|
-
// These have been resolved in the Operation.vue component
|
|
163
|
-
__props.operation.parameters
|
|
164
|
-
),
|
|
161
|
+
parameters: __props.operation.parameters,
|
|
165
162
|
requestBody: unref(getResolvedRef)(__props.operation.requestBody)
|
|
166
163
|
}, null, 8, ["eventBus", "options", "parameters", "requestBody"])
|
|
167
164
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAoBrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAMxE,KAAK,WAAW,GAAG,IAAI,CACnB,cAAc,EACd,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,aAAa,GAAG,iBAAiB,CACxE,GAAG;IACF,wCAAwC;IACxC,SAAS,EAAE,eAAe,CAAA;IAC1B,4CAA4C;IAC5C,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,sDAAsD;IACtD,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;CAChD,CAAC;;AAufJ,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ModernLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a158242e"]]);
|
|
5
5
|
export {
|
|
6
6
|
ModernLayout as default
|
|
7
7
|
};
|
|
@@ -141,10 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
141
|
breadcrumb: [__props.id],
|
|
142
142
|
eventBus: __props.eventBus,
|
|
143
143
|
options: __props.options,
|
|
144
|
-
parameters:
|
|
145
|
-
// These have been resolved in the Operation.vue component
|
|
146
|
-
__props.operation.parameters
|
|
147
|
-
),
|
|
144
|
+
parameters: __props.operation.parameters,
|
|
148
145
|
requestBody: unref(getResolvedRef)(__props.operation.requestBody)
|
|
149
146
|
}, null, 8, ["breadcrumb", "eventBus", "options", "parameters", "requestBody"]),
|
|
150
147
|
createVNode(_sfc_main$5, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { redirectToProxy } from "@scalar/
|
|
1
|
+
import { redirectToProxy } from "@scalar/helpers/url/redirect-to-proxy";
|
|
2
2
|
import { PROXY_URL, UPLOAD_TEMP_API_URL } from "../consts/urls.js";
|
|
3
3
|
function isResponseBody(data) {
|
|
4
4
|
return !!data && typeof data === "object" && "url" in data && typeof data.url === "string";
|
package/dist/style.css
CHANGED
|
@@ -1465,11 +1465,11 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1465
1465
|
margin-right: 4px;
|
|
1466
1466
|
}
|
|
1467
1467
|
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
1468
|
-
.operation-title[data-v-
|
|
1468
|
+
.operation-title[data-v-8a5966f4] {
|
|
1469
1469
|
justify-content: space-between;
|
|
1470
1470
|
display: flex;
|
|
1471
1471
|
}
|
|
1472
|
-
.operation-details[data-v-
|
|
1472
|
+
.operation-details[data-v-8a5966f4] {
|
|
1473
1473
|
flex-shrink: 1;
|
|
1474
1474
|
align-items: center;
|
|
1475
1475
|
gap: 9px;
|
|
@@ -1477,11 +1477,11 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1477
1477
|
margin-top: 0;
|
|
1478
1478
|
display: flex;
|
|
1479
1479
|
}
|
|
1480
|
-
.operation-details[data-v-
|
|
1480
|
+
.operation-details[data-v-8a5966f4] .endpoint-anchor .scalar-button svg {
|
|
1481
1481
|
width: 16px;
|
|
1482
1482
|
height: 16px;
|
|
1483
1483
|
}
|
|
1484
|
-
.endpoint-type[data-v-
|
|
1484
|
+
.endpoint-type[data-v-8a5966f4] {
|
|
1485
1485
|
z-index: 0;
|
|
1486
1486
|
width: 60px;
|
|
1487
1487
|
font-size: var(--scalar-small);
|
|
@@ -1496,7 +1496,7 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1496
1496
|
display: flex;
|
|
1497
1497
|
position: relative;
|
|
1498
1498
|
}
|
|
1499
|
-
.endpoint-type[data-v-
|
|
1499
|
+
.endpoint-type[data-v-8a5966f4]:after {
|
|
1500
1500
|
content: "";
|
|
1501
1501
|
z-index: -1;
|
|
1502
1502
|
opacity: .15;
|
|
@@ -1505,16 +1505,16 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1505
1505
|
position: absolute;
|
|
1506
1506
|
inset: 0;
|
|
1507
1507
|
}
|
|
1508
|
-
.endpoint-anchor[data-v-
|
|
1508
|
+
.endpoint-anchor[data-v-8a5966f4] {
|
|
1509
1509
|
flex-shrink: 1;
|
|
1510
1510
|
align-items: center;
|
|
1511
1511
|
min-width: 0;
|
|
1512
1512
|
display: flex;
|
|
1513
1513
|
}
|
|
1514
|
-
.endpoint-anchor.label[data-v-
|
|
1514
|
+
.endpoint-anchor.label[data-v-8a5966f4] {
|
|
1515
1515
|
display: flex;
|
|
1516
1516
|
}
|
|
1517
|
-
.endpoint-label[data-v-
|
|
1517
|
+
.endpoint-label[data-v-8a5966f4] {
|
|
1518
1518
|
min-width: 0;
|
|
1519
1519
|
color: var(--scalar-color-1);
|
|
1520
1520
|
flex-shrink: 1;
|
|
@@ -1522,17 +1522,17 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1522
1522
|
gap: 9px;
|
|
1523
1523
|
display: flex;
|
|
1524
1524
|
}
|
|
1525
|
-
.endpoint-label-path[data-v-
|
|
1525
|
+
.endpoint-label-path[data-v-8a5966f4] {
|
|
1526
1526
|
font-family: var(--scalar-font-code);
|
|
1527
1527
|
font-size: var(--scalar-mini);
|
|
1528
1528
|
text-overflow: ellipsis;
|
|
1529
1529
|
white-space: nowrap;
|
|
1530
1530
|
overflow: hidden;
|
|
1531
1531
|
}
|
|
1532
|
-
.endpoint-label-path[data-v-
|
|
1532
|
+
.endpoint-label-path[data-v-8a5966f4] em {
|
|
1533
1533
|
color: var(--scalar-color-2);
|
|
1534
1534
|
}
|
|
1535
|
-
.endpoint-label-name[data-v-
|
|
1535
|
+
.endpoint-label-name[data-v-8a5966f4] {
|
|
1536
1536
|
color: var(--scalar-color-2);
|
|
1537
1537
|
font-size: var(--scalar-small);
|
|
1538
1538
|
text-overflow: ellipsis;
|
|
@@ -1540,17 +1540,17 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1540
1540
|
flex-shrink: 1000000000;
|
|
1541
1541
|
overflow: hidden;
|
|
1542
1542
|
}
|
|
1543
|
-
.endpoint-try-hint[data-v-
|
|
1543
|
+
.endpoint-try-hint[data-v-8a5966f4] {
|
|
1544
1544
|
flex-shrink: 0;
|
|
1545
1545
|
padding: 2px;
|
|
1546
1546
|
}
|
|
1547
|
-
.endpoint-copy[data-v-
|
|
1547
|
+
.endpoint-copy[data-v-8a5966f4] {
|
|
1548
1548
|
color: currentColor;
|
|
1549
1549
|
}
|
|
1550
|
-
.endpoint-copy[data-v-
|
|
1550
|
+
.endpoint-copy[data-v-8a5966f4] svg {
|
|
1551
1551
|
stroke-width: 2px;
|
|
1552
1552
|
}
|
|
1553
|
-
.endpoint-content[data-v-
|
|
1553
|
+
.endpoint-content[data-v-8a5966f4] {
|
|
1554
1554
|
grid-auto-columns: 1fr;
|
|
1555
1555
|
grid-auto-flow: row;
|
|
1556
1556
|
gap: 9px;
|
|
@@ -1558,52 +1558,52 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1558
1558
|
display: grid;
|
|
1559
1559
|
}
|
|
1560
1560
|
@media (min-width: 1000px) {
|
|
1561
|
-
.endpoint-content[data-v-
|
|
1561
|
+
.endpoint-content[data-v-8a5966f4] {
|
|
1562
1562
|
grid-auto-flow: column;
|
|
1563
1563
|
}
|
|
1564
1564
|
}
|
|
1565
1565
|
@container (max-width: 900px) {
|
|
1566
|
-
.endpoint-content[data-v-
|
|
1566
|
+
.endpoint-content[data-v-8a5966f4] {
|
|
1567
1567
|
grid-template-columns: 1fr;
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
|
-
.endpoint-content[data-v-
|
|
1570
|
+
.endpoint-content[data-v-8a5966f4] > * {
|
|
1571
1571
|
min-width: 0;
|
|
1572
1572
|
}
|
|
1573
|
-
.operation-details-card[data-v-
|
|
1573
|
+
.operation-details-card[data-v-8a5966f4] {
|
|
1574
1574
|
flex-direction: column;
|
|
1575
1575
|
gap: 12px;
|
|
1576
1576
|
min-width: 0;
|
|
1577
1577
|
display: flex;
|
|
1578
1578
|
}
|
|
1579
|
-
:is(.operation-details-card-item[data-v-
|
|
1579
|
+
:is(.operation-details-card-item[data-v-8a5966f4] .parameter-list, .operation-details-card-item[data-v-8a5966f4] .callbacks-list) {
|
|
1580
1580
|
border: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
1581
1581
|
border-radius: var(--scalar-radius-lg);
|
|
1582
1582
|
margin-top: 0;
|
|
1583
1583
|
}
|
|
1584
|
-
.operation-details-card-item[data-v-
|
|
1584
|
+
.operation-details-card-item[data-v-8a5966f4] {
|
|
1585
1585
|
flex-direction: column;
|
|
1586
1586
|
gap: 12px;
|
|
1587
1587
|
display: flex;
|
|
1588
1588
|
}
|
|
1589
|
-
.operation-details-card-item[data-v-
|
|
1589
|
+
.operation-details-card-item[data-v-8a5966f4] .parameter-list-items {
|
|
1590
1590
|
margin-bottom: 0;
|
|
1591
1591
|
}
|
|
1592
|
-
.operation-details-card[data-v-
|
|
1592
|
+
.operation-details-card[data-v-8a5966f4] .parameter-item:last-of-type .parameter-schema {
|
|
1593
1593
|
padding-bottom: 12px;
|
|
1594
1594
|
}
|
|
1595
|
-
.operation-details-card[data-v-
|
|
1595
|
+
.operation-details-card[data-v-8a5966f4] .parameter-list .parameter-list {
|
|
1596
1596
|
margin-bottom: 12px;
|
|
1597
1597
|
}
|
|
1598
|
-
.operation-details-card[data-v-
|
|
1598
|
+
.operation-details-card[data-v-8a5966f4] .parameter-item {
|
|
1599
1599
|
margin: 0;
|
|
1600
1600
|
padding: 0;
|
|
1601
1601
|
}
|
|
1602
|
-
.operation-details-card[data-v-
|
|
1602
|
+
.operation-details-card[data-v-8a5966f4] .property {
|
|
1603
1603
|
margin: 0;
|
|
1604
1604
|
padding: 9px;
|
|
1605
1605
|
}
|
|
1606
|
-
:is(.operation-details-card[data-v-
|
|
1606
|
+
:is(.operation-details-card[data-v-8a5966f4] .parameter-list-title, .operation-details-card[data-v-8a5966f4] .request-body-title, .operation-details-card[data-v-8a5966f4] .callbacks-title) {
|
|
1607
1607
|
text-transform: uppercase;
|
|
1608
1608
|
font-weight: var(--scalar-bold);
|
|
1609
1609
|
font-size: var(--scalar-mini);
|
|
@@ -1612,61 +1612,61 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1612
1612
|
padding: 9px;
|
|
1613
1613
|
line-height: 1.33;
|
|
1614
1614
|
}
|
|
1615
|
-
.operation-details-card[data-v-
|
|
1615
|
+
.operation-details-card[data-v-8a5966f4] .callback-list-item-title {
|
|
1616
1616
|
padding-left: 28px;
|
|
1617
1617
|
padding-right: 12px;
|
|
1618
1618
|
}
|
|
1619
|
-
.operation-details-card[data-v-
|
|
1619
|
+
.operation-details-card[data-v-8a5966f4] .callback-list-item-icon {
|
|
1620
1620
|
left: 6px;
|
|
1621
1621
|
}
|
|
1622
|
-
.operation-details-card[data-v-
|
|
1622
|
+
.operation-details-card[data-v-8a5966f4] .callback-operation-container {
|
|
1623
1623
|
padding-inline: 9px;
|
|
1624
1624
|
padding-bottom: 9px;
|
|
1625
1625
|
}
|
|
1626
|
-
:is(.operation-details-card[data-v-
|
|
1626
|
+
:is(.operation-details-card[data-v-8a5966f4] .callback-operation-container > .request-body, .operation-details-card[data-v-8a5966f4] .callback-operation-container > .parameter-list) {
|
|
1627
1627
|
border: none;
|
|
1628
1628
|
}
|
|
1629
|
-
.operation-details-card[data-v-
|
|
1629
|
+
.operation-details-card[data-v-8a5966f4] .callback-operation-container > .request-body > .request-body-header {
|
|
1630
1630
|
border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
1631
1631
|
padding: 0 0 9px;
|
|
1632
1632
|
}
|
|
1633
|
-
.operation-details-card[data-v-
|
|
1633
|
+
.operation-details-card[data-v-8a5966f4] .request-body-description {
|
|
1634
1634
|
border-top: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
1635
1635
|
margin-top: 0;
|
|
1636
1636
|
padding: 9px 9px 0;
|
|
1637
1637
|
}
|
|
1638
|
-
.operation-details-card[data-v-
|
|
1638
|
+
.operation-details-card[data-v-8a5966f4] .request-body {
|
|
1639
1639
|
border-radius: var(--scalar-radius-lg);
|
|
1640
1640
|
border: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
1641
1641
|
margin-top: 0;
|
|
1642
1642
|
}
|
|
1643
|
-
.operation-details-card[data-v-
|
|
1643
|
+
.operation-details-card[data-v-8a5966f4] .request-body .schema-card--level-0 > .schema-card-description {
|
|
1644
1644
|
padding-inline: 9px;
|
|
1645
1645
|
}
|
|
1646
|
-
.operation-details-card[data-v-
|
|
1646
|
+
.operation-details-card[data-v-8a5966f4] .request-body-header {
|
|
1647
1647
|
border-bottom: 0;
|
|
1648
1648
|
padding-bottom: 0;
|
|
1649
1649
|
}
|
|
1650
|
-
.operation-details-card[data-v-
|
|
1650
|
+
.operation-details-card[data-v-8a5966f4] .contents button {
|
|
1651
1651
|
margin-right: 9px;
|
|
1652
1652
|
}
|
|
1653
|
-
.operation-details-card[data-v-
|
|
1653
|
+
.operation-details-card[data-v-8a5966f4] .schema-card--open + .schema-card:not(.schema-card--open) {
|
|
1654
1654
|
margin-inline: 9px;
|
|
1655
1655
|
margin-bottom: 9px;
|
|
1656
1656
|
}
|
|
1657
|
-
.operation-details-card[data-v-
|
|
1657
|
+
.operation-details-card[data-v-8a5966f4] .request-body-schema .property--level-0 {
|
|
1658
1658
|
padding: 0;
|
|
1659
1659
|
}
|
|
1660
|
-
.operation-details-card[data-v-
|
|
1660
|
+
.operation-details-card[data-v-8a5966f4] .selected-content-type {
|
|
1661
1661
|
margin-right: 9px;
|
|
1662
1662
|
}
|
|
1663
|
-
.operation-example-card[data-v-
|
|
1663
|
+
.operation-example-card[data-v-8a5966f4] {
|
|
1664
1664
|
top: calc(var(--refs-viewport-offset) + 24px);
|
|
1665
1665
|
max-height: calc(var(--refs-viewport-height) - 48px);
|
|
1666
1666
|
position: sticky;
|
|
1667
1667
|
}
|
|
1668
1668
|
@media (max-width: 600px) {
|
|
1669
|
-
.operation-example-card[data-v-
|
|
1669
|
+
.operation-example-card[data-v-8a5966f4] {
|
|
1670
1670
|
max-height: unset;
|
|
1671
1671
|
position: static;
|
|
1672
1672
|
}
|
|
@@ -1700,11 +1700,11 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
|
-
.examples[data-v-
|
|
1703
|
+
.examples[data-v-a158242e] {
|
|
1704
1704
|
position: sticky;
|
|
1705
1705
|
top: calc(var(--refs-viewport-offset) + 24px);
|
|
1706
1706
|
}
|
|
1707
|
-
.examples[data-v-
|
|
1707
|
+
.examples[data-v-a158242e] > * {
|
|
1708
1708
|
max-height: calc((var(--refs-viewport-height) - 60px) / 2);
|
|
1709
1709
|
position: relative;
|
|
1710
1710
|
}
|
|
@@ -1714,11 +1714,11 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1714
1714
|
* (or zoomed in screens)
|
|
1715
1715
|
*/
|
|
1716
1716
|
@media (max-width: 600px) {
|
|
1717
|
-
.examples[data-v-
|
|
1717
|
+
.examples[data-v-a158242e] > * {
|
|
1718
1718
|
max-height: unset;
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
|
-
.deprecated[data-v-
|
|
1721
|
+
.deprecated[data-v-a158242e] * {
|
|
1722
1722
|
text-decoration: line-through;
|
|
1723
1723
|
}
|
|
1724
1724
|
|
|
@@ -8171,6 +8171,9 @@ to {
|
|
|
8171
8171
|
.scalar-app .text-b-1 {
|
|
8172
8172
|
color: var(--scalar-background-1);
|
|
8173
8173
|
}
|
|
8174
|
+
.scalar-app .text-b-2 {
|
|
8175
|
+
color: var(--scalar-background-2);
|
|
8176
|
+
}
|
|
8174
8177
|
.scalar-app .text-blue {
|
|
8175
8178
|
color: var(--scalar-color-blue);
|
|
8176
8179
|
}
|
|
@@ -10194,31 +10197,31 @@ input[data-v-3157c3c7]::placeholder {
|
|
|
10194
10197
|
-webkit-text-security: disc;
|
|
10195
10198
|
-moz-text-security: disc;
|
|
10196
10199
|
}
|
|
10197
|
-
.request-section-content[data-v-
|
|
10200
|
+
.request-section-content[data-v-8c6cdddb] {
|
|
10198
10201
|
--scalar-border-width: .5px;
|
|
10199
10202
|
}
|
|
10200
|
-
.request-section-content-filter[data-v-
|
|
10203
|
+
.request-section-content-filter[data-v-8c6cdddb] {
|
|
10201
10204
|
box-shadow: 0 -10px 0 10px var(--scalar-background-1);
|
|
10202
10205
|
}
|
|
10203
|
-
.request-item:focus-within .request-meta-buttons[data-v-
|
|
10206
|
+
.request-item:focus-within .request-meta-buttons[data-v-8c6cdddb] {
|
|
10204
10207
|
opacity: 1;
|
|
10205
10208
|
}
|
|
10206
|
-
.group-hover-input[data-v-
|
|
10209
|
+
.group-hover-input[data-v-8c6cdddb] {
|
|
10207
10210
|
border-width: var(--scalar-border-width);
|
|
10208
10211
|
border-color: #0000;
|
|
10209
10212
|
}
|
|
10210
|
-
.group:hover .group-hover-input[data-v-
|
|
10213
|
+
.group:hover .group-hover-input[data-v-8c6cdddb] {
|
|
10211
10214
|
background: var(--scalar-background-1);
|
|
10212
10215
|
}
|
|
10213
10216
|
@supports (color: color-mix(in lab, red, red)) {
|
|
10214
|
-
.group:hover .group-hover-input[data-v-
|
|
10217
|
+
.group:hover .group-hover-input[data-v-8c6cdddb] {
|
|
10215
10218
|
background: color-mix(in srgb, var(--scalar-background-1), var(--scalar-background-2));
|
|
10216
10219
|
}
|
|
10217
10220
|
}
|
|
10218
|
-
.group:hover .group-hover-input[data-v-
|
|
10221
|
+
.group:hover .group-hover-input[data-v-8c6cdddb] {
|
|
10219
10222
|
border-color: var(--scalar-border-color);
|
|
10220
10223
|
}
|
|
10221
|
-
.group-hover-input[data-v-
|
|
10224
|
+
.group-hover-input[data-v-8c6cdddb]:focus {
|
|
10222
10225
|
border-color: var(--scalar-border-color) !important;
|
|
10223
10226
|
background: none !important;
|
|
10224
10227
|
}
|
|
@@ -11560,7 +11563,7 @@ to {
|
|
|
11560
11563
|
|
|
11561
11564
|
/* Configurable Layout Variables */
|
|
11562
11565
|
@layer scalar-config {
|
|
11563
|
-
.scalar-api-reference[data-v-
|
|
11566
|
+
.scalar-api-reference[data-v-097f69f2] {
|
|
11564
11567
|
--refs-sidebar-width: var(--scalar-sidebar-width, 0px);
|
|
11565
11568
|
/* The header height */
|
|
11566
11569
|
--refs-header-height: calc(
|
|
@@ -11576,7 +11579,7 @@ to {
|
|
|
11576
11579
|
);
|
|
11577
11580
|
--refs-content-max-width: var(--scalar-content-max-width, 1540px);
|
|
11578
11581
|
}
|
|
11579
|
-
.scalar-api-reference.references-classic[data-v-
|
|
11582
|
+
.scalar-api-reference.references-classic[data-v-097f69f2] {
|
|
11580
11583
|
/* Classic layout is wider */
|
|
11581
11584
|
--refs-content-max-width: var(--scalar-content-max-width, 1420px);
|
|
11582
11585
|
min-height: 100dvh;
|
|
@@ -11584,14 +11587,14 @@ to {
|
|
|
11584
11587
|
}
|
|
11585
11588
|
|
|
11586
11589
|
/* When the toolbar is present, we need to offset the content */
|
|
11587
|
-
.scalar-api-reference[data-v-
|
|
11590
|
+
.scalar-api-reference[data-v-097f69f2]:has(.api-reference-toolbar) {
|
|
11588
11591
|
--refs-content-offset: 48px;
|
|
11589
11592
|
}
|
|
11590
11593
|
}
|
|
11591
11594
|
|
|
11592
11595
|
/* ----------------------------------------------------- */
|
|
11593
11596
|
/* References Layout */
|
|
11594
|
-
.references-layout[data-v-
|
|
11597
|
+
.references-layout[data-v-097f69f2] {
|
|
11595
11598
|
/* Try to fill the container */
|
|
11596
11599
|
min-height: 100dvh;
|
|
11597
11600
|
min-width: 100%;
|
|
@@ -11615,39 +11618,39 @@ to {
|
|
|
11615
11618
|
|
|
11616
11619
|
background: var(--scalar-background-1);
|
|
11617
11620
|
}
|
|
11618
|
-
.references-editor[data-v-
|
|
11621
|
+
.references-editor[data-v-097f69f2] {
|
|
11619
11622
|
grid-area: editor;
|
|
11620
11623
|
display: flex;
|
|
11621
11624
|
min-width: 0;
|
|
11622
11625
|
background: var(--scalar-background-1);
|
|
11623
11626
|
}
|
|
11624
|
-
.references-rendered[data-v-
|
|
11627
|
+
.references-rendered[data-v-097f69f2] {
|
|
11625
11628
|
position: relative;
|
|
11626
11629
|
grid-area: rendered;
|
|
11627
11630
|
min-width: 0;
|
|
11628
11631
|
background: var(--scalar-background-1);
|
|
11629
11632
|
}
|
|
11630
|
-
.scalar-api-reference.references-classic[data-v-
|
|
11631
|
-
.references-classic .references-rendered[data-v-
|
|
11633
|
+
.scalar-api-reference.references-classic[data-v-097f69f2],
|
|
11634
|
+
.references-classic .references-rendered[data-v-097f69f2] {
|
|
11632
11635
|
height: initial !important;
|
|
11633
11636
|
max-height: initial !important;
|
|
11634
11637
|
}
|
|
11635
11638
|
@layer scalar-config {
|
|
11636
|
-
.references-sidebar[data-v-
|
|
11639
|
+
.references-sidebar[data-v-097f69f2] {
|
|
11637
11640
|
/* Set a default width if references are enabled */
|
|
11638
11641
|
--refs-sidebar-width: var(--scalar-sidebar-width, 280px);
|
|
11639
11642
|
}
|
|
11640
11643
|
}
|
|
11641
11644
|
|
|
11642
11645
|
/* Footer */
|
|
11643
|
-
.references-footer[data-v-
|
|
11646
|
+
.references-footer[data-v-097f69f2] {
|
|
11644
11647
|
grid-area: footer;
|
|
11645
11648
|
}
|
|
11646
11649
|
/* ----------------------------------------------------- */
|
|
11647
11650
|
/* Responsive / Mobile Layout */
|
|
11648
11651
|
@media (max-width: 1000px) {
|
|
11649
11652
|
/* Stack view on mobile */
|
|
11650
|
-
.references-layout[data-v-
|
|
11653
|
+
.references-layout[data-v-097f69f2] {
|
|
11651
11654
|
grid-template-columns: 100%;
|
|
11652
11655
|
grid-template-rows: var(--scalar-header-height, 0px) 0px auto auto;
|
|
11653
11656
|
|
|
@@ -11657,13 +11660,13 @@ to {
|
|
|
11657
11660
|
'rendered'
|
|
11658
11661
|
'footer';
|
|
11659
11662
|
}
|
|
11660
|
-
.references-editable[data-v-
|
|
11663
|
+
.references-editable[data-v-097f69f2] {
|
|
11661
11664
|
grid-template-areas:
|
|
11662
11665
|
'header'
|
|
11663
11666
|
'navigation'
|
|
11664
11667
|
'editor';
|
|
11665
11668
|
}
|
|
11666
|
-
.references-rendered[data-v-
|
|
11669
|
+
.references-rendered[data-v-097f69f2] {
|
|
11667
11670
|
position: static;
|
|
11668
11671
|
}
|
|
11669
11672
|
}
|
|
@@ -11674,12 +11677,12 @@ to {
|
|
|
11674
11677
|
* when the new elements are available
|
|
11675
11678
|
*/
|
|
11676
11679
|
@media (max-width: 1000px) {
|
|
11677
|
-
.scalar-api-references-standalone-mobile[data-v-
|
|
11680
|
+
.scalar-api-references-standalone-mobile[data-v-097f69f2] {
|
|
11678
11681
|
--scalar-header-height: 50px;
|
|
11679
11682
|
}
|
|
11680
11683
|
}
|
|
11681
11684
|
|
|
11682
|
-
.darklight-reference[data-v-
|
|
11685
|
+
.darklight-reference[data-v-097f69f2] {
|
|
11683
11686
|
width: 100%;
|
|
11684
11687
|
margin-top: auto;
|
|
11685
11688
|
}
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.43.
|
|
23
|
+
"version": "1.43.15",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -85,21 +85,21 @@
|
|
|
85
85
|
"microdiff": "^1.5.0",
|
|
86
86
|
"nanoid": "^5.1.6",
|
|
87
87
|
"vue": "^3.5.26",
|
|
88
|
-
"@scalar/
|
|
89
|
-
"@scalar/api-client": "2.20.0",
|
|
90
|
-
"@scalar/helpers": "0.2.8",
|
|
88
|
+
"@scalar/api-client": "2.20.2",
|
|
91
89
|
"@scalar/code-highlight": "0.2.2",
|
|
90
|
+
"@scalar/helpers": "0.2.9",
|
|
91
|
+
"@scalar/components": "0.16.30",
|
|
92
92
|
"@scalar/icons": "0.5.2",
|
|
93
|
+
"@scalar/oas-utils": "0.6.27",
|
|
93
94
|
"@scalar/openapi-types": "0.5.3",
|
|
94
|
-
"@scalar/
|
|
95
|
-
"@scalar/
|
|
96
|
-
"@scalar/sidebar": "0.7.18",
|
|
97
|
-
"@scalar/snippetz": "0.6.7",
|
|
95
|
+
"@scalar/openapi-parser": "0.24.4",
|
|
96
|
+
"@scalar/snippetz": "0.6.8",
|
|
98
97
|
"@scalar/themes": "0.13.26",
|
|
99
|
-
"@scalar/types": "0.5.
|
|
98
|
+
"@scalar/types": "0.5.10",
|
|
99
|
+
"@scalar/sidebar": "0.7.20",
|
|
100
100
|
"@scalar/use-hooks": "0.3.6",
|
|
101
|
-
"@scalar/
|
|
102
|
-
"@scalar/
|
|
101
|
+
"@scalar/use-toasts": "0.9.1",
|
|
102
|
+
"@scalar/workspace-store": "0.26.2"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@hono/node-server": "^1.19.7",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
119
119
|
"vitest": "4.0.16",
|
|
120
120
|
"@scalar/build-tooling": "0.4.1",
|
|
121
|
-
"@scalar/core": "0.3.
|
|
121
|
+
"@scalar/core": "0.3.34",
|
|
122
122
|
"@scalar/galaxy": "0.5.12",
|
|
123
123
|
"@scalar/react-renderer": "0.3.0"
|
|
124
124
|
},
|