@scalar/api-reference 1.46.1 → 1.46.3
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 +58 -0
- package/dist/browser/standalone.js +3031 -3011
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue2.js +6 -14
- package/dist/features/example-responses/ExampleSchema.vue.d.ts +3 -1
- package/dist/features/example-responses/ExampleSchema.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleSchema.vue.js +12 -4
- package/dist/features/example-responses/has-response-content.d.ts +1 -1
- package/dist/features/example-responses/has-response-content.d.ts.map +1 -1
- package/dist/features/example-responses/has-response-content.js +10 -1
- package/dist/helpers/openapi.d.ts.map +1 -1
- package/dist/helpers/openapi.js +36 -19
- package/dist/style.css +23 -23
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"AA+WA,OAAO,KAAK,EAEV,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAWrE;;GAEG;AAEH,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,CAAA;CAC3B,CAAC;AAqXF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ExampleResponses.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dc47ca65"]]);
|
|
5
5
|
export {
|
|
6
6
|
ExampleResponses as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, useId, computed, ref, watch, toValue, createBlock, createCommentVNode, openBlock, unref, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, withDirectives, createElementVNode, vModelCheckbox } from "vue";
|
|
2
2
|
import { getExample } from "@scalar/api-client/v2/blocks/operation-block";
|
|
3
|
-
import {
|
|
3
|
+
import { ExamplePicker } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
4
4
|
import { ScalarCard, ScalarIcon, ScalarCardSection, ScalarCardFooter, ScalarMarkdown } from "@scalar/components";
|
|
5
|
-
import { normalizeMimeTypeObject, getObjectKeys
|
|
5
|
+
import { normalizeMimeTypeObject, getObjectKeys } from "@scalar/oas-utils/helpers";
|
|
6
6
|
import { useClipboard } from "@scalar/use-hooks/useClipboard";
|
|
7
7
|
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
8
8
|
import ScreenReader from "../../components/ScreenReader.vue.js";
|
|
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
);
|
|
34
34
|
const statusCodesWithContent = computed(
|
|
35
35
|
() => orderedStatusCodes.value.filter(
|
|
36
|
-
(statusCode) => hasResponseContent(getResolvedRef(__props.responses?.[statusCode]))
|
|
36
|
+
(statusCode) => hasResponseContent(getResolvedRef(__props.responses?.[statusCode]), statusCode)
|
|
37
37
|
)
|
|
38
38
|
);
|
|
39
39
|
const selectedResponseIndex = ref(0);
|
|
@@ -80,14 +80,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
selectedResponseIndex.value = index;
|
|
81
81
|
selectedExampleKey.value = "";
|
|
82
82
|
};
|
|
83
|
-
const schemaContent = computed(() => {
|
|
84
|
-
if (!currentResponseContent.value?.schema) {
|
|
85
|
-
return void 0;
|
|
86
|
-
}
|
|
87
|
-
return prettyPrintJson(
|
|
88
|
-
getResolvedRefDeep(currentResponseContent.value?.schema)
|
|
89
|
-
);
|
|
90
|
-
});
|
|
91
83
|
const showSchema = ref(false);
|
|
92
84
|
return (_ctx, _cache) => {
|
|
93
85
|
return statusCodesWithContent.value.length ? (openBlock(), createBlock(unref(ScalarCard), {
|
|
@@ -146,11 +138,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
146
138
|
}),
|
|
147
139
|
createVNode(unref(ScalarCardSection), { class: "grid flex-1" }, {
|
|
148
140
|
default: withCtx(() => [
|
|
149
|
-
|
|
141
|
+
currentResponseContent.value?.schema && showSchema.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
150
142
|
key: 0,
|
|
151
143
|
id: unref(id),
|
|
152
|
-
|
|
153
|
-
}, null, 8, ["id", "
|
|
144
|
+
schema: currentResponseContent.value?.schema
|
|
145
|
+
}, null, 8, ["id", "schema"])) : (openBlock(), createBlock(ExampleResponse, {
|
|
154
146
|
key: 1,
|
|
155
147
|
id: unref(id),
|
|
156
148
|
example: currentExample.value,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { ReferenceType } from '@scalar/workspace-store/schemas/v3.1/strict/reference';
|
|
2
|
+
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/schema';
|
|
1
3
|
type __VLS_Props = {
|
|
2
4
|
id: string;
|
|
3
|
-
|
|
5
|
+
schema: ReferenceType<SchemaObject>;
|
|
4
6
|
};
|
|
5
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleSchema.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleSchema.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleSchema.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleSchema.vue"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAC1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AAGtF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,CAAA;CACpC,CAAC;AAsFF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import { defineComponent, computed, createBlock, openBlock, unref } from "vue";
|
|
2
|
+
import { getResolvedRefDeep } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
2
3
|
import { ScalarCodeBlock, ScalarVirtualText } from "@scalar/components";
|
|
4
|
+
import { prettyPrintJson } from "@scalar/oas-utils/helpers";
|
|
3
5
|
const VIRTUALIZATION_THRESHOLD = 2e4;
|
|
4
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
7
|
__name: "ExampleSchema",
|
|
6
8
|
props: {
|
|
7
9
|
id: {},
|
|
8
|
-
|
|
10
|
+
schema: {}
|
|
9
11
|
},
|
|
10
12
|
setup(__props) {
|
|
13
|
+
const schemaContent = computed(() => {
|
|
14
|
+
if (!__props.schema) {
|
|
15
|
+
return void 0;
|
|
16
|
+
}
|
|
17
|
+
return prettyPrintJson(getResolvedRefDeep(__props.schema));
|
|
18
|
+
});
|
|
11
19
|
const shouldVirtualizeSchema = computed(() => {
|
|
12
|
-
return
|
|
20
|
+
return (schemaContent.value?.length ?? 0) > VIRTUALIZATION_THRESHOLD;
|
|
13
21
|
});
|
|
14
22
|
return (_ctx, _cache) => {
|
|
15
23
|
return !shouldVirtualizeSchema.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
|
|
@@ -17,14 +25,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
25
|
id: __props.id,
|
|
18
26
|
class: "bg-b-2",
|
|
19
27
|
lang: "json",
|
|
20
|
-
prettyPrintedContent:
|
|
28
|
+
prettyPrintedContent: schemaContent.value ?? ""
|
|
21
29
|
}, null, 8, ["id", "prettyPrintedContent"])) : (openBlock(), createBlock(unref(ScalarVirtualText), {
|
|
22
30
|
key: 1,
|
|
23
31
|
id: __props.id,
|
|
24
32
|
containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
|
|
25
33
|
contentClass: "language-plaintext whitespace-pre font-code text-base",
|
|
26
34
|
lineHeight: 20,
|
|
27
|
-
text:
|
|
35
|
+
text: schemaContent.value ?? ""
|
|
28
36
|
}, null, 8, ["id", "text"]));
|
|
29
37
|
};
|
|
30
38
|
}
|
|
@@ -3,5 +3,5 @@ import type { ResponseObject } from '@scalar/workspace-store/schemas/v3.1/strict
|
|
|
3
3
|
* Checks if a response object has body content (schema, example, or examples).
|
|
4
4
|
* Looks through common media types in priority order.
|
|
5
5
|
*/
|
|
6
|
-
export declare function hasResponseContent(response: ResponseObject | undefined): boolean;
|
|
6
|
+
export declare function hasResponseContent(response: ResponseObject | undefined, responseKey?: string): boolean;
|
|
7
7
|
//# sourceMappingURL=has-response-content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-response-content.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/has-response-content.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"has-response-content.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/has-response-content.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,8DAA8D,CAAA;AA0BnH;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,cAAc,GAAG,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAqBtG"}
|
|
@@ -8,7 +8,16 @@ function hasMediaTypeContent(mediaType) {
|
|
|
8
8
|
const hasExamples = Boolean(mediaType.examples);
|
|
9
9
|
return hasSchema || hasExample || hasExamples;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function isResponseKey(responseKey) {
|
|
12
|
+
return responseKey === "default" || /^[1-5][0-9]{2}$/.test(responseKey) || /^[1-5]XX$/.test(responseKey);
|
|
13
|
+
}
|
|
14
|
+
function hasResponseContent(response, responseKey) {
|
|
15
|
+
if (responseKey !== void 0) {
|
|
16
|
+
if (!isResponseKey(responseKey)) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
return Boolean(response);
|
|
20
|
+
}
|
|
12
21
|
const normalizedContent = normalizeMimeTypeObject(response?.content);
|
|
13
22
|
const keys = getObjectKeys(normalizedContent ?? {});
|
|
14
23
|
const mediaType = normalizedContent?.["application/json"] ?? normalizedContent?.["application/xml"] ?? normalizedContent?.["text/plain"] ?? normalizedContent?.["text/html"] ?? normalizedContent?.["*/*"] ?? normalizedContent?.[keys[0] ?? ""];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../../src/helpers/openapi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../../src/helpers/openapi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAIpD,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EAGhB,MAAM,8DAA8D,CAAA;AAiFrE;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,EAAE,GAAG,OAAO,CAYjF;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,oBAW3E;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,GAiBjF,OAAO,CAAC,QAAQ,CACvB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,eAAe,EAAE,CAAA;IACvB,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,IAAI,EAAE,eAAe,EAAE,CAAA;IACvB,QAAQ,EAAE,eAAe,EAAE,CAAA;CAC5B,CAAA;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,eAAe,gBA2D5D"}
|
package/dist/helpers/openapi.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { isDereferenced } from "@scalar/openapi-types/helpers";
|
|
2
2
|
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import { isObjectSchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
|
|
4
|
+
function resolveSchemaRef(ref) {
|
|
5
|
+
return getResolvedRef(ref);
|
|
6
|
+
}
|
|
3
7
|
function formatProperty(key, obj) {
|
|
4
8
|
let output = key;
|
|
5
9
|
const isRequired = obj.required?.includes(key);
|
|
6
10
|
output += isRequired ? " REQUIRED " : " optional ";
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
const propRef = obj.properties[key];
|
|
12
|
+
if (!propRef) return output;
|
|
13
|
+
const property = resolveSchemaRef(propRef);
|
|
14
|
+
if (property && typeof property === "object" && "type" in property) {
|
|
15
|
+
output += property.type ?? "";
|
|
16
|
+
if ("description" in property && typeof property.description === "string") {
|
|
11
17
|
output += " " + property.description;
|
|
12
18
|
}
|
|
13
19
|
}
|
|
@@ -16,22 +22,33 @@ function formatProperty(key, obj) {
|
|
|
16
22
|
function recursiveLogger(obj) {
|
|
17
23
|
const results = ["Body"];
|
|
18
24
|
const schema = getResolvedRef(obj?.schema);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Object.keys(properties).forEach((key) => {
|
|
22
|
-
if (!obj.schema) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
results.push(formatProperty(key, schema));
|
|
26
|
-
const property = getResolvedRef(properties[key]);
|
|
27
|
-
const isNestedObject = property.type === "object" && Boolean(property.properties);
|
|
28
|
-
if (isNestedObject && property.properties) {
|
|
29
|
-
Object.keys(property.properties).forEach((subKey) => {
|
|
30
|
-
results.push(`${subKey} ${getResolvedRef(property.properties?.[subKey])?.type}`);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
});
|
|
25
|
+
if (!schema || !isObjectSchema(schema) || !schema.properties) {
|
|
26
|
+
return results;
|
|
34
27
|
}
|
|
28
|
+
const properties = schema.properties;
|
|
29
|
+
const schemaWithProps = {
|
|
30
|
+
properties,
|
|
31
|
+
required: schema.required
|
|
32
|
+
};
|
|
33
|
+
Object.keys(properties).forEach((key) => {
|
|
34
|
+
if (!obj.schema) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
results.push(formatProperty(key, schemaWithProps));
|
|
38
|
+
const propRef = properties[key];
|
|
39
|
+
if (!propRef) return;
|
|
40
|
+
const property = resolveSchemaRef(propRef);
|
|
41
|
+
if (property && isObjectSchema(property) && property.properties) {
|
|
42
|
+
const nestedProperties = property.properties;
|
|
43
|
+
Object.keys(nestedProperties).forEach((subKey) => {
|
|
44
|
+
const ref = nestedProperties[subKey];
|
|
45
|
+
if (!ref) return;
|
|
46
|
+
const nested = resolveSchemaRef(ref);
|
|
47
|
+
const typeStr = nested && typeof nested === "object" && "type" in nested ? nested.type ?? "" : "";
|
|
48
|
+
results.push(`${subKey} ${typeStr}`);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
35
52
|
return results;
|
|
36
53
|
}
|
|
37
54
|
function extractRequestBody(operation) {
|
package/dist/style.css
CHANGED
|
@@ -1378,13 +1378,13 @@ button.headers-card-title[data-v-ab19704d]:hover {
|
|
|
1378
1378
|
padding: 0;
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
1381
|
-
.response-card[data-v-
|
|
1381
|
+
.response-card[data-v-dc47ca65] {
|
|
1382
1382
|
font-size: var(--scalar-font-size-3);
|
|
1383
1383
|
}
|
|
1384
|
-
.markdown[data-v-
|
|
1384
|
+
.markdown[data-v-dc47ca65] * {
|
|
1385
1385
|
margin: 0;
|
|
1386
1386
|
}
|
|
1387
|
-
.code-copy[data-v-
|
|
1387
|
+
.code-copy[data-v-dc47ca65] {
|
|
1388
1388
|
display: flex;
|
|
1389
1389
|
align-items: center;
|
|
1390
1390
|
justify-content: center;
|
|
@@ -1398,14 +1398,14 @@ button.headers-card-title[data-v-ab19704d]:hover {
|
|
|
1398
1398
|
padding: 0;
|
|
1399
1399
|
margin-right: 12px;
|
|
1400
1400
|
}
|
|
1401
|
-
.code-copy[data-v-
|
|
1401
|
+
.code-copy[data-v-dc47ca65]:hover {
|
|
1402
1402
|
color: var(--scalar-color-1);
|
|
1403
1403
|
}
|
|
1404
|
-
.code-copy svg[data-v-
|
|
1404
|
+
.code-copy svg[data-v-dc47ca65] {
|
|
1405
1405
|
width: 13px;
|
|
1406
1406
|
height: 13px;
|
|
1407
1407
|
}
|
|
1408
|
-
.response-card-footer[data-v-
|
|
1408
|
+
.response-card-footer[data-v-dc47ca65] {
|
|
1409
1409
|
display: flex;
|
|
1410
1410
|
flex-direction: row;
|
|
1411
1411
|
justify-content: space-between;
|
|
@@ -1413,11 +1413,11 @@ button.headers-card-title[data-v-ab19704d]:hover {
|
|
|
1413
1413
|
padding: 7px 12px;
|
|
1414
1414
|
gap: 8px;
|
|
1415
1415
|
}
|
|
1416
|
-
.response-example-selector[data-v-
|
|
1416
|
+
.response-example-selector[data-v-dc47ca65] {
|
|
1417
1417
|
align-self: flex-start;
|
|
1418
1418
|
margin: -4px;
|
|
1419
1419
|
}
|
|
1420
|
-
.response-description[data-v-
|
|
1420
|
+
.response-description[data-v-dc47ca65] {
|
|
1421
1421
|
font-weight: var(--scalar-semibold);
|
|
1422
1422
|
font-size: var(--scalar-small);
|
|
1423
1423
|
color: var(--scalar-color--1);
|
|
@@ -1426,7 +1426,7 @@ button.headers-card-title[data-v-ab19704d]:hover {
|
|
|
1426
1426
|
align-items: center;
|
|
1427
1427
|
box-sizing: border-box;
|
|
1428
1428
|
}
|
|
1429
|
-
.schema-type[data-v-
|
|
1429
|
+
.schema-type[data-v-dc47ca65] {
|
|
1430
1430
|
font-size: var(--scalar-micro);
|
|
1431
1431
|
color: var(--scalar-color-2);
|
|
1432
1432
|
font-weight: var(--scalar-semibold);
|
|
@@ -1435,16 +1435,16 @@ button.headers-card-title[data-v-ab19704d]:hover {
|
|
|
1435
1435
|
border-radius: 4px;
|
|
1436
1436
|
margin-right: 4px;
|
|
1437
1437
|
}
|
|
1438
|
-
.schema-example[data-v-
|
|
1438
|
+
.schema-example[data-v-dc47ca65] {
|
|
1439
1439
|
font-size: var(--scalar-micro);
|
|
1440
1440
|
color: var(--scalar-color-2);
|
|
1441
1441
|
font-weight: var(--scalar-semibold);
|
|
1442
1442
|
}
|
|
1443
|
-
.example-response-tab[data-v-
|
|
1443
|
+
.example-response-tab[data-v-dc47ca65] {
|
|
1444
1444
|
display: block;
|
|
1445
1445
|
margin: 6px;
|
|
1446
1446
|
}
|
|
1447
|
-
.scalar-card-checkbox[data-v-
|
|
1447
|
+
.scalar-card-checkbox[data-v-dc47ca65] {
|
|
1448
1448
|
display: flex;
|
|
1449
1449
|
align-items: center;
|
|
1450
1450
|
justify-content: center;
|
|
@@ -1461,20 +1461,20 @@ button.headers-card-title[data-v-ab19704d]:hover {
|
|
|
1461
1461
|
padding: 7px 6px;
|
|
1462
1462
|
}
|
|
1463
1463
|
.scalar-card-checkbox:has(.scalar-card-checkbox-input:focus-visible)
|
|
1464
|
-
.scalar-card-checkbox-checkmark[data-v-
|
|
1464
|
+
.scalar-card-checkbox-checkmark[data-v-dc47ca65] {
|
|
1465
1465
|
outline: 1px solid var(--scalar-color-accent);
|
|
1466
1466
|
}
|
|
1467
|
-
.scalar-card-checkbox[data-v-
|
|
1467
|
+
.scalar-card-checkbox[data-v-dc47ca65]:hover {
|
|
1468
1468
|
color: var(--scalar-color--1);
|
|
1469
1469
|
}
|
|
1470
|
-
.scalar-card-checkbox .scalar-card-checkbox-input[data-v-
|
|
1470
|
+
.scalar-card-checkbox .scalar-card-checkbox-input[data-v-dc47ca65] {
|
|
1471
1471
|
position: absolute;
|
|
1472
1472
|
opacity: 0;
|
|
1473
1473
|
cursor: pointer;
|
|
1474
1474
|
height: 0;
|
|
1475
1475
|
width: 0;
|
|
1476
1476
|
}
|
|
1477
|
-
.scalar-card-checkbox-checkmark[data-v-
|
|
1477
|
+
.scalar-card-checkbox-checkmark[data-v-dc47ca65] {
|
|
1478
1478
|
height: 16px;
|
|
1479
1479
|
width: 16px;
|
|
1480
1480
|
border-radius: var(--scalar-radius);
|
|
@@ -1482,27 +1482,27 @@ button.headers-card-title[data-v-ab19704d]:hover {
|
|
|
1482
1482
|
background-color: var(--scalar-background-3);
|
|
1483
1483
|
box-shadow: inset 0 0 0 var(--scalar-border-width) var(--scalar-border-color);
|
|
1484
1484
|
}
|
|
1485
|
-
.scalar-card-checkbox[data-v-
|
|
1485
|
+
.scalar-card-checkbox[data-v-dc47ca65]:has(.scalar-card-checkbox-input:checked) {
|
|
1486
1486
|
color: var(--scalar-color-1);
|
|
1487
1487
|
font-weight: var(--scalar-semibold);
|
|
1488
1488
|
}
|
|
1489
1489
|
.scalar-card-checkbox
|
|
1490
1490
|
.scalar-card-checkbox-input:checked
|
|
1491
|
-
~ .scalar-card-checkbox-checkmark[data-v-
|
|
1491
|
+
~ .scalar-card-checkbox-checkmark[data-v-dc47ca65] {
|
|
1492
1492
|
background-color: var(--scalar-button-1);
|
|
1493
1493
|
box-shadow: none;
|
|
1494
1494
|
}
|
|
1495
|
-
.scalar-card-checkbox-checkmark[data-v-
|
|
1495
|
+
.scalar-card-checkbox-checkmark[data-v-dc47ca65]:after {
|
|
1496
1496
|
content: '';
|
|
1497
1497
|
position: absolute;
|
|
1498
1498
|
display: none;
|
|
1499
1499
|
}
|
|
1500
1500
|
.scalar-card-checkbox
|
|
1501
1501
|
.scalar-card-checkbox-input:checked
|
|
1502
|
-
~ .scalar-card-checkbox-checkmark[data-v-
|
|
1502
|
+
~ .scalar-card-checkbox-checkmark[data-v-dc47ca65]:after {
|
|
1503
1503
|
display: block;
|
|
1504
1504
|
}
|
|
1505
|
-
.scalar-card-checkbox .scalar-card-checkbox-checkmark[data-v-
|
|
1505
|
+
.scalar-card-checkbox .scalar-card-checkbox-checkmark[data-v-dc47ca65]:after {
|
|
1506
1506
|
right: 11.5px;
|
|
1507
1507
|
top: 12.5px;
|
|
1508
1508
|
width: 5px;
|
|
@@ -5701,9 +5701,9 @@ to {
|
|
|
5701
5701
|
font-size: var(--scalar-font-size-4);
|
|
5702
5702
|
line-height: 16px;
|
|
5703
5703
|
}
|
|
5704
|
-
.scalar-app .text-sm\/
|
|
5704
|
+
.scalar-app .text-sm\/none {
|
|
5705
5705
|
font-size: var(--scalar-font-size-4);
|
|
5706
|
-
line-height:
|
|
5706
|
+
line-height: 1;
|
|
5707
5707
|
}
|
|
5708
5708
|
.scalar-app .text-xs\/4 {
|
|
5709
5709
|
font-size: var(--scalar-font-size-5);
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.46.
|
|
23
|
+
"version": "1.46.3",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -85,22 +85,22 @@
|
|
|
85
85
|
"microdiff": "^1.5.0",
|
|
86
86
|
"nanoid": "^5.1.6",
|
|
87
87
|
"vue": "^3.5.26",
|
|
88
|
-
"@scalar/agent-chat": "0.7.
|
|
89
|
-
"@scalar/api-client": "2.31.
|
|
88
|
+
"@scalar/agent-chat": "0.7.3",
|
|
89
|
+
"@scalar/api-client": "2.31.3",
|
|
90
90
|
"@scalar/code-highlight": "0.2.4",
|
|
91
|
-
"@scalar/components": "0.19.13",
|
|
92
|
-
"@scalar/helpers": "0.2.17",
|
|
93
|
-
"@scalar/openapi-parser": "0.24.16",
|
|
94
|
-
"@scalar/oas-utils": "0.8.1",
|
|
95
91
|
"@scalar/icons": "0.5.3",
|
|
96
|
-
"@scalar/
|
|
97
|
-
"@scalar/
|
|
98
|
-
"@scalar/
|
|
99
|
-
"@scalar/
|
|
92
|
+
"@scalar/components": "0.19.15",
|
|
93
|
+
"@scalar/helpers": "0.2.18",
|
|
94
|
+
"@scalar/oas-utils": "0.8.3",
|
|
95
|
+
"@scalar/openapi-types": "0.5.4",
|
|
96
|
+
"@scalar/openapi-parser": "0.24.17",
|
|
97
|
+
"@scalar/sidebar": "0.7.46",
|
|
98
|
+
"@scalar/snippetz": "0.6.19",
|
|
99
|
+
"@scalar/types": "0.6.10",
|
|
100
100
|
"@scalar/use-toasts": "0.9.1",
|
|
101
|
-
"@scalar/
|
|
102
|
-
"@scalar/workspace-store": "0.35.
|
|
103
|
-
"@scalar/
|
|
101
|
+
"@scalar/themes": "0.14.3",
|
|
102
|
+
"@scalar/workspace-store": "0.35.3",
|
|
103
|
+
"@scalar/use-hooks": "0.3.7"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@hono/node-server": "^1.19.7",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
120
120
|
"vitest": "4.0.16",
|
|
121
121
|
"@scalar/build-tooling": "0.4.1",
|
|
122
|
-
"@scalar/core": "0.3.
|
|
122
|
+
"@scalar/core": "0.3.45",
|
|
123
123
|
"@scalar/react-renderer": "0.3.0",
|
|
124
124
|
"@scalar/galaxy": "0.5.16"
|
|
125
125
|
},
|