@scalar/api-reference 1.49.5 → 1.49.6
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 +7 -0
- package/dist/browser/standalone.js +202 -202
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue.js.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.script.js +4 -4
- package/dist/components/Content/Schema/Schema.vue.script.js.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.script.js +12 -12
- package/dist/components/Content/Schema/SchemaComposition.vue.script.js.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.script.js +15 -15
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.script.js.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.script.js +1 -2
- package/dist/features/example-responses/ExampleResponse.vue.script.js.map +1 -1
- package/dist/style.css +129 -120
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponse.vue.js","names":[],"sources":["../../../src/features/example-responses/ExampleResponse.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport {\n getExampleFromSchema,\n getResolvedRefDeep,\n} from '@scalar/api-client/v2/blocks/operation-code-sample'\nimport { ScalarCodeBlock, ScalarVirtualText } from '@scalar/components'\nimport { prettyPrintJson } from '@scalar/helpers/json/pretty-print-json'\nimport
|
|
1
|
+
{"version":3,"file":"ExampleResponse.vue.js","names":[],"sources":["../../../src/features/example-responses/ExampleResponse.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport {\n getExampleFromSchema,\n getResolvedRefDeep,\n} from '@scalar/api-client/v2/blocks/operation-code-sample'\nimport { ScalarCodeBlock, ScalarVirtualText } from '@scalar/components'\nimport { prettyPrintJson } from '@scalar/helpers/json/pretty-print-json'\nimport type {\n ExampleObject,\n MediaTypeObject,\n SchemaObject,\n} from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\nimport { computed } from 'vue'\n\nconst { example, response } = defineProps<{\n response: MediaTypeObject | undefined\n example: ExampleObject | undefined\n}>()\n\n/** Get content from the appropriate source */\nconst getContent = () => {\n if (example !== undefined) {\n return getResolvedRefDeep(example)?.value ?? ''\n }\n\n if (response?.schema) {\n return getExampleFromSchema(\n // Should be safe to deep resolve the schema here because we don't have to do any sibling resolution for example generation\n getResolvedRefDeep(response.schema) as SchemaObject,\n {\n emptyString: 'string',\n mode: 'read',\n },\n )\n }\n\n return undefined\n}\n\n/** Pre-pretty printed content string, avoids multiple pretty prints*/\nconst prettyPrintedContent = computed(() => {\n const content = getContent()\n if (content === undefined) {\n return undefined\n }\n return prettyPrintJson(content)\n})\n\nconst VIRTUALIZATION_THRESHOLD = 20_000\n\n// Virtualize the code block if it's too large\nconst shouldVirtualize = computed(() => {\n if (prettyPrintedContent.value === undefined) {\n return false\n }\n return prettyPrintedContent.value.length > VIRTUALIZATION_THRESHOLD\n})\n</script>\n<template>\n <!-- Example -->\n <ScalarCodeBlock\n v-if=\"prettyPrintedContent !== undefined && !shouldVirtualize\"\n class=\"bg-b-2\"\n lang=\"json\"\n :prettyPrintedContent=\"prettyPrintedContent\" />\n\n <ScalarVirtualText\n v-else-if=\"prettyPrintedContent !== undefined && shouldVirtualize\"\n containerClass=\"custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen\"\n contentClass=\"language-plaintext whitespace-pre font-code text-base\"\n :lineHeight=\"20\"\n :text=\"prettyPrintedContent\" />\n\n <div\n v-else\n class=\"empty-state\">\n No Body\n </div>\n</template>\n\n<style scoped>\n.empty-state {\n margin: 10px 0 10px 12px;\n text-align: center;\n font-size: var(--scalar-mini);\n min-height: 56px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--scalar-radius-lg);\n color: var(--scalar-color-2);\n}\n\n.rule-title {\n font-family: var(--scalar-font-code);\n color: var(--scalar-color-1);\n display: inline-block;\n margin: 12px 0 6px;\n border-radius: var(--scalar-radius);\n}\n\n.rule {\n margin: 0 12px 0;\n border-radius: var(--scalar-radius-lg);\n}\n\n.rule-items {\n counter-reset: list-number;\n display: flex;\n flex-direction: column;\n gap: 12px;\n border-left: 1px solid var(--scalar-border-color);\n padding: 12px 0 12px;\n}\n.rule-item {\n counter-increment: list-number;\n border: 1px solid var(--scalar-border-color);\n border-radius: var(--scalar-radius-lg);\n overflow: hidden;\n margin-left: 24px;\n}\n.rule-item:before {\n /* content: counter(list-number); */\n border: 1px solid var(--scalar-border-color);\n border-top: 0;\n border-right: 0;\n content: ' ';\n display: block;\n width: 24px;\n height: 6px;\n border-radius: 0 0 0 var(--scalar-radius-lg);\n margin-top: 6px;\n color: var(--scalar-color-2);\n transform: translateX(-25px);\n color: var(--scalar-color-1);\n position: absolute;\n}\n</style>\n"],"mappings":""}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { computed, createBlock, createElementBlock, defineComponent, openBlock, unref } from "vue";
|
|
2
2
|
import { ScalarCodeBlock, ScalarVirtualText } from "@scalar/components";
|
|
3
3
|
import { getExampleFromSchema, getResolvedRefDeep } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
4
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
4
|
import { prettyPrintJson } from "@scalar/helpers/json/pretty-print-json";
|
|
6
5
|
//#region src/features/example-responses/ExampleResponse.vue?vue&type=script&setup=true&lang.ts
|
|
7
6
|
var _hoisted_1 = {
|
|
@@ -19,7 +18,7 @@ var ExampleResponse_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ *
|
|
|
19
18
|
/** Get content from the appropriate source */
|
|
20
19
|
const getContent = () => {
|
|
21
20
|
if (__props.example !== void 0) return getResolvedRefDeep(__props.example)?.value ?? "";
|
|
22
|
-
if (__props.response?.schema) return getExampleFromSchema(
|
|
21
|
+
if (__props.response?.schema) return getExampleFromSchema(getResolvedRefDeep(__props.response.schema), {
|
|
23
22
|
emptyString: "string",
|
|
24
23
|
mode: "read"
|
|
25
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponse.vue.script.js","names":[],"sources":["../../../src/features/example-responses/ExampleResponse.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport {\n getExampleFromSchema,\n getResolvedRefDeep,\n} from '@scalar/api-client/v2/blocks/operation-code-sample'\nimport { ScalarCodeBlock, ScalarVirtualText } from '@scalar/components'\nimport { prettyPrintJson } from '@scalar/helpers/json/pretty-print-json'\nimport
|
|
1
|
+
{"version":3,"file":"ExampleResponse.vue.script.js","names":[],"sources":["../../../src/features/example-responses/ExampleResponse.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport {\n getExampleFromSchema,\n getResolvedRefDeep,\n} from '@scalar/api-client/v2/blocks/operation-code-sample'\nimport { ScalarCodeBlock, ScalarVirtualText } from '@scalar/components'\nimport { prettyPrintJson } from '@scalar/helpers/json/pretty-print-json'\nimport type {\n ExampleObject,\n MediaTypeObject,\n SchemaObject,\n} from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\nimport { computed } from 'vue'\n\nconst { example, response } = defineProps<{\n response: MediaTypeObject | undefined\n example: ExampleObject | undefined\n}>()\n\n/** Get content from the appropriate source */\nconst getContent = () => {\n if (example !== undefined) {\n return getResolvedRefDeep(example)?.value ?? ''\n }\n\n if (response?.schema) {\n return getExampleFromSchema(\n // Should be safe to deep resolve the schema here because we don't have to do any sibling resolution for example generation\n getResolvedRefDeep(response.schema) as SchemaObject,\n {\n emptyString: 'string',\n mode: 'read',\n },\n )\n }\n\n return undefined\n}\n\n/** Pre-pretty printed content string, avoids multiple pretty prints*/\nconst prettyPrintedContent = computed(() => {\n const content = getContent()\n if (content === undefined) {\n return undefined\n }\n return prettyPrintJson(content)\n})\n\nconst VIRTUALIZATION_THRESHOLD = 20_000\n\n// Virtualize the code block if it's too large\nconst shouldVirtualize = computed(() => {\n if (prettyPrintedContent.value === undefined) {\n return false\n }\n return prettyPrintedContent.value.length > VIRTUALIZATION_THRESHOLD\n})\n</script>\n<template>\n <!-- Example -->\n <ScalarCodeBlock\n v-if=\"prettyPrintedContent !== undefined && !shouldVirtualize\"\n class=\"bg-b-2\"\n lang=\"json\"\n :prettyPrintedContent=\"prettyPrintedContent\" />\n\n <ScalarVirtualText\n v-else-if=\"prettyPrintedContent !== undefined && shouldVirtualize\"\n containerClass=\"custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen\"\n contentClass=\"language-plaintext whitespace-pre font-code text-base\"\n :lineHeight=\"20\"\n :text=\"prettyPrintedContent\" />\n\n <div\n v-else\n class=\"empty-state\">\n No Body\n </div>\n</template>\n\n<style scoped>\n.empty-state {\n margin: 10px 0 10px 12px;\n text-align: center;\n font-size: var(--scalar-mini);\n min-height: 56px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--scalar-radius-lg);\n color: var(--scalar-color-2);\n}\n\n.rule-title {\n font-family: var(--scalar-font-code);\n color: var(--scalar-color-1);\n display: inline-block;\n margin: 12px 0 6px;\n border-radius: var(--scalar-radius);\n}\n\n.rule {\n margin: 0 12px 0;\n border-radius: var(--scalar-radius-lg);\n}\n\n.rule-items {\n counter-reset: list-number;\n display: flex;\n flex-direction: column;\n gap: 12px;\n border-left: 1px solid var(--scalar-border-color);\n padding: 12px 0 12px;\n}\n.rule-item {\n counter-increment: list-number;\n border: 1px solid var(--scalar-border-color);\n border-radius: var(--scalar-radius-lg);\n overflow: hidden;\n margin-left: 24px;\n}\n.rule-item:before {\n /* content: counter(list-number); */\n border: 1px solid var(--scalar-border-color);\n border-top: 0;\n border-right: 0;\n content: ' ';\n display: block;\n width: 24px;\n height: 6px;\n border-radius: 0 0 0 var(--scalar-radius-lg);\n margin-top: 6px;\n color: var(--scalar-color-2);\n transform: translateX(-25px);\n color: var(--scalar-color-1);\n position: absolute;\n}\n</style>\n"],"mappings":";;;;;;;;;AAgDA,IAAM,2BAA2B;;;;;;;;;EA5BjC,MAAM,mBAAmB;AACvB,OAAI,QAAA,YAAY,KAAA,EACd,QAAO,mBAAmB,QAAA,QAAQ,EAAE,SAAS;AAG/C,OAAI,QAAA,UAAU,OACZ,QAAO,qBAEL,mBAAmB,QAAA,SAAS,OAAO,EACnC;IACE,aAAa;IACb,MAAM;IACP,CACH;;;EAOJ,MAAM,uBAAuB,eAAe;GAC1C,MAAM,UAAU,YAAW;AAC3B,OAAI,YAAY,KAAA,EACd;AAEF,UAAO,gBAAgB,QAAO;IAC/B;EAKD,MAAM,mBAAmB,eAAe;AACtC,OAAI,qBAAqB,UAAU,KAAA,EACjC,QAAO;AAET,UAAO,qBAAqB,MAAM,SAAS;IAC5C;;UAKS,qBAAA,UAAyB,KAAA,KAAS,CAAK,iBAAA,SAAA,WAAA,EAD/C,YAIiD,MAAA,gBAAA,EAAA;;IAF/C,OAAM;IACN,MAAK;IACJ,sBAAsB,qBAAA;4CAGZ,qBAAA,UAAyB,KAAA,KAAa,iBAAA,SAAA,WAAA,EADnD,YAKiC,MAAA,kBAAA,EAAA;;IAH/B,gBAAe;IACf,cAAa;IACZ,YAAY;IACZ,MAAM,qBAAA;0CAET,mBAIM,OAJN,YAEsB,YAEtB"}
|
package/dist/style.css
CHANGED
|
@@ -606,14 +606,14 @@ to {
|
|
|
606
606
|
color: var(--scalar-color-1);
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
.error[data-v-
|
|
609
|
+
.error[data-v-38d75111] {
|
|
610
610
|
background-color: var(--scalar-color-red);
|
|
611
611
|
}
|
|
612
|
-
.schema-card[data-v-
|
|
612
|
+
.schema-card[data-v-38d75111] {
|
|
613
613
|
font-size: var(--scalar-font-size-4);
|
|
614
614
|
color: var(--scalar-color-1);
|
|
615
615
|
}
|
|
616
|
-
.schema-card-title[data-v-
|
|
616
|
+
.schema-card-title[data-v-38d75111] {
|
|
617
617
|
height: var(--schema-title-height);
|
|
618
618
|
|
|
619
619
|
padding: 6px 8px;
|
|
@@ -627,48 +627,48 @@ to {
|
|
|
627
627
|
font-size: var(--scalar-mini);
|
|
628
628
|
border-bottom: var(--scalar-border-width) solid transparent;
|
|
629
629
|
}
|
|
630
|
-
button.schema-card-title[data-v-
|
|
630
|
+
button.schema-card-title[data-v-38d75111] {
|
|
631
631
|
cursor: pointer;
|
|
632
632
|
}
|
|
633
|
-
button.schema-card-title[data-v-
|
|
633
|
+
button.schema-card-title[data-v-38d75111]:hover {
|
|
634
634
|
color: var(--scalar-color-1);
|
|
635
635
|
}
|
|
636
|
-
.schema-card-title-icon--open[data-v-
|
|
636
|
+
.schema-card-title-icon--open[data-v-38d75111] {
|
|
637
637
|
transform: rotate(45deg);
|
|
638
638
|
}
|
|
639
|
-
.schema-properties-open > .schema-card-title[data-v-
|
|
639
|
+
.schema-properties-open > .schema-card-title[data-v-38d75111] {
|
|
640
640
|
border-bottom-left-radius: 0;
|
|
641
641
|
border-bottom-right-radius: 0;
|
|
642
642
|
border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
643
643
|
}
|
|
644
|
-
.schema-properties-open > .schema-properties[data-v-
|
|
644
|
+
.schema-properties-open > .schema-properties[data-v-38d75111] {
|
|
645
645
|
width: fit-content;
|
|
646
646
|
}
|
|
647
|
-
.schema-card-description[data-v-
|
|
647
|
+
.schema-card-description[data-v-38d75111] {
|
|
648
648
|
color: var(--scalar-color-2);
|
|
649
649
|
}
|
|
650
|
-
.schema-card-description + .schema-properties[data-v-
|
|
650
|
+
.schema-card-description + .schema-properties[data-v-38d75111] {
|
|
651
651
|
width: fit-content;
|
|
652
652
|
}
|
|
653
|
-
.schema-card-description + .schema-properties[data-v-
|
|
653
|
+
.schema-card-description + .schema-properties[data-v-38d75111] {
|
|
654
654
|
margin-top: 8px;
|
|
655
655
|
}
|
|
656
656
|
.schema-card--level-0:nth-of-type(1)
|
|
657
|
-
> .schema-card-description[data-v-
|
|
657
|
+
> .schema-card-description[data-v-38d75111]:has(+ .schema-properties) {
|
|
658
658
|
margin-bottom: -8px;
|
|
659
659
|
padding-bottom: 8px;
|
|
660
660
|
border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
661
661
|
}
|
|
662
662
|
.schema-card--level-0
|
|
663
663
|
~ .schema-card--level-0
|
|
664
|
-
> .schema-card-description[data-v-
|
|
664
|
+
> .schema-card-description[data-v-38d75111]:has(+ .schema-properties) {
|
|
665
665
|
padding-top: 8px;
|
|
666
666
|
}
|
|
667
|
-
.schema-properties-open.schema-properties[data-v-
|
|
668
|
-
.schema-properties-open > .schema-card--open[data-v-
|
|
667
|
+
.schema-properties-open.schema-properties[data-v-38d75111],
|
|
668
|
+
.schema-properties-open > .schema-card--open[data-v-38d75111] {
|
|
669
669
|
width: 100%;
|
|
670
670
|
}
|
|
671
|
-
.schema-properties[data-v-
|
|
671
|
+
.schema-properties[data-v-38d75111] {
|
|
672
672
|
display: flex;
|
|
673
673
|
flex-direction: column;
|
|
674
674
|
|
|
@@ -676,56 +676,56 @@ button.schema-card-title[data-v-8327ea3a]:hover {
|
|
|
676
676
|
border-radius: var(--scalar-radius-lg);
|
|
677
677
|
width: fit-content;
|
|
678
678
|
}
|
|
679
|
-
.schema-properties-name[data-v-
|
|
679
|
+
.schema-properties-name[data-v-38d75111] {
|
|
680
680
|
width: 100%;
|
|
681
681
|
}
|
|
682
|
-
.schema-properties .schema-properties[data-v-
|
|
682
|
+
.schema-properties .schema-properties[data-v-38d75111] {
|
|
683
683
|
border-radius: 13.5px;
|
|
684
684
|
}
|
|
685
|
-
.schema-properties .schema-properties.schema-properties-open[data-v-
|
|
685
|
+
.schema-properties .schema-properties.schema-properties-open[data-v-38d75111] {
|
|
686
686
|
border-radius: var(--scalar-radius-lg);
|
|
687
687
|
}
|
|
688
|
-
.schema-properties-open[data-v-
|
|
688
|
+
.schema-properties-open[data-v-38d75111] {
|
|
689
689
|
width: 100%;
|
|
690
690
|
}
|
|
691
|
-
.schema-card--compact[data-v-
|
|
691
|
+
.schema-card--compact[data-v-38d75111] {
|
|
692
692
|
align-self: flex-start;
|
|
693
693
|
}
|
|
694
|
-
.schema-card--compact.schema-card--open[data-v-
|
|
694
|
+
.schema-card--compact.schema-card--open[data-v-38d75111] {
|
|
695
695
|
align-self: initial;
|
|
696
696
|
}
|
|
697
|
-
.schema-card-title--compact[data-v-
|
|
697
|
+
.schema-card-title--compact[data-v-38d75111] {
|
|
698
698
|
color: var(--scalar-color-2);
|
|
699
699
|
padding: 6px 10px 6px 8px;
|
|
700
700
|
height: auto;
|
|
701
701
|
border-bottom: none;
|
|
702
702
|
}
|
|
703
|
-
.schema-card-title--compact > .schema-card-title-icon[data-v-
|
|
703
|
+
.schema-card-title--compact > .schema-card-title-icon[data-v-38d75111] {
|
|
704
704
|
margin: 0;
|
|
705
705
|
}
|
|
706
|
-
.schema-card-title--compact > .schema-card-title-icon--open[data-v-
|
|
706
|
+
.schema-card-title--compact > .schema-card-title-icon--open[data-v-38d75111] {
|
|
707
707
|
transform: rotate(45deg);
|
|
708
708
|
}
|
|
709
|
-
.schema-properties-open > .schema-card-title--compact[data-v-
|
|
709
|
+
.schema-properties-open > .schema-card-title--compact[data-v-38d75111] {
|
|
710
710
|
position: static;
|
|
711
711
|
}
|
|
712
712
|
.property--level-0
|
|
713
713
|
> .schema-properties
|
|
714
714
|
> .schema-card--level-0
|
|
715
|
-
> .schema-properties[data-v-
|
|
715
|
+
> .schema-properties[data-v-38d75111] {
|
|
716
716
|
border: none;
|
|
717
717
|
}
|
|
718
718
|
.property--level-0
|
|
719
719
|
.schema-card--level-0:not(.schema-card--compact)
|
|
720
|
-
.property--level-1[data-v-
|
|
720
|
+
.property--level-1[data-v-38d75111] {
|
|
721
721
|
padding: 0 0 8px;
|
|
722
722
|
}
|
|
723
723
|
:not(.composition-panel)
|
|
724
724
|
> .schema-card--compact.schema-card--level-0
|
|
725
|
-
> .schema-properties[data-v-
|
|
725
|
+
> .schema-properties[data-v-38d75111] {
|
|
726
726
|
border: none;
|
|
727
727
|
}
|
|
728
|
-
[data-v-
|
|
728
|
+
[data-v-38d75111] .schema-card-description p {
|
|
729
729
|
font-size: var(--scalar-small, var(--scalar-paragraph));
|
|
730
730
|
color: var(--scalar-color-2);
|
|
731
731
|
line-height: 1.5;
|
|
@@ -733,7 +733,7 @@ button.schema-card-title[data-v-8327ea3a]:hover {
|
|
|
733
733
|
display: block;
|
|
734
734
|
margin-bottom: 6px;
|
|
735
735
|
}
|
|
736
|
-
.children .schema-card-description[data-v-
|
|
736
|
+
.children .schema-card-description[data-v-38d75111]:first-of-type {
|
|
737
737
|
padding-top: 0;
|
|
738
738
|
}
|
|
739
739
|
|
|
@@ -1756,7 +1756,7 @@ button.headers-card-title[data-v-ab19704d]:hover {
|
|
|
1756
1756
|
padding: 0 8px;
|
|
1757
1757
|
}
|
|
1758
1758
|
|
|
1759
|
-
.empty-state[data-v-
|
|
1759
|
+
.empty-state[data-v-de6a4e70] {
|
|
1760
1760
|
margin: 10px 0 10px 12px;
|
|
1761
1761
|
text-align: center;
|
|
1762
1762
|
font-size: var(--scalar-mini);
|
|
@@ -1767,18 +1767,18 @@ button.headers-card-title[data-v-ab19704d]:hover {
|
|
|
1767
1767
|
border-radius: var(--scalar-radius-lg);
|
|
1768
1768
|
color: var(--scalar-color-2);
|
|
1769
1769
|
}
|
|
1770
|
-
.rule-title[data-v-
|
|
1770
|
+
.rule-title[data-v-de6a4e70] {
|
|
1771
1771
|
font-family: var(--scalar-font-code);
|
|
1772
1772
|
color: var(--scalar-color-1);
|
|
1773
1773
|
display: inline-block;
|
|
1774
1774
|
margin: 12px 0 6px;
|
|
1775
1775
|
border-radius: var(--scalar-radius);
|
|
1776
1776
|
}
|
|
1777
|
-
.rule[data-v-
|
|
1777
|
+
.rule[data-v-de6a4e70] {
|
|
1778
1778
|
margin: 0 12px 0;
|
|
1779
1779
|
border-radius: var(--scalar-radius-lg);
|
|
1780
1780
|
}
|
|
1781
|
-
.rule-items[data-v-
|
|
1781
|
+
.rule-items[data-v-de6a4e70] {
|
|
1782
1782
|
counter-reset: list-number;
|
|
1783
1783
|
display: flex;
|
|
1784
1784
|
flex-direction: column;
|
|
@@ -1786,14 +1786,14 @@ button.headers-card-title[data-v-ab19704d]:hover {
|
|
|
1786
1786
|
border-left: 1px solid var(--scalar-border-color);
|
|
1787
1787
|
padding: 12px 0 12px;
|
|
1788
1788
|
}
|
|
1789
|
-
.rule-item[data-v-
|
|
1789
|
+
.rule-item[data-v-de6a4e70] {
|
|
1790
1790
|
counter-increment: list-number;
|
|
1791
1791
|
border: 1px solid var(--scalar-border-color);
|
|
1792
1792
|
border-radius: var(--scalar-radius-lg);
|
|
1793
1793
|
overflow: hidden;
|
|
1794
1794
|
margin-left: 24px;
|
|
1795
1795
|
}
|
|
1796
|
-
.rule-item[data-v-
|
|
1796
|
+
.rule-item[data-v-de6a4e70]:before {
|
|
1797
1797
|
/* content: counter(list-number); */
|
|
1798
1798
|
border: 1px solid var(--scalar-border-color);
|
|
1799
1799
|
border-top: 0;
|
|
@@ -7948,9 +7948,6 @@ input[data-v-c1a50a6e]::placeholder {
|
|
|
7948
7948
|
.scalar-app .max-w-\[14px\] {
|
|
7949
7949
|
max-width: 14px;
|
|
7950
7950
|
}
|
|
7951
|
-
.scalar-app .max-w-\[16rem\] {
|
|
7952
|
-
max-width: 16rem;
|
|
7953
|
-
}
|
|
7954
7951
|
.scalar-app .max-w-\[37px\] {
|
|
7955
7952
|
max-width: 37px;
|
|
7956
7953
|
}
|
|
@@ -9266,6 +9263,9 @@ input[data-v-c1a50a6e]::placeholder {
|
|
|
9266
9263
|
:is(.scalar-app .\*\:h-8 > *) {
|
|
9267
9264
|
height: 32px;
|
|
9268
9265
|
}
|
|
9266
|
+
:is(.scalar-app .\*\:max-w-64 > *) {
|
|
9267
|
+
max-width: 256px;
|
|
9268
|
+
}
|
|
9269
9269
|
:is(.scalar-app .\*\:cursor-pointer > *) {
|
|
9270
9270
|
cursor: pointer;
|
|
9271
9271
|
}
|
|
@@ -9479,6 +9479,10 @@ input[data-v-c1a50a6e]::placeholder {
|
|
|
9479
9479
|
content: var(--tw-content);
|
|
9480
9480
|
background-color: var(--scalar-border-color);
|
|
9481
9481
|
}
|
|
9482
|
+
:is(.scalar-app .\*\:not-first\:before\:content-\[\'_·_\'\] > *):not(:first-child):before {
|
|
9483
|
+
--tw-content: " · ";
|
|
9484
|
+
content: var(--tw-content);
|
|
9485
|
+
}
|
|
9482
9486
|
.scalar-app .after\:content-\[\'\:\'\]:after {
|
|
9483
9487
|
--tw-content: ":";
|
|
9484
9488
|
content: var(--tw-content);
|
|
@@ -10477,15 +10481,6 @@ to {
|
|
|
10477
10481
|
.context-bar-group:hover .context-bar-group-hover\:hidden[data-v-f97cc68c], .context-bar-group:has(:focus-visible) .context-bar-group-hover\:hidden[data-v-f97cc68c] {
|
|
10478
10482
|
display: none;
|
|
10479
10483
|
}
|
|
10480
|
-
.schema > span[data-v-f2ab7aa3]:not(:first-child):before {
|
|
10481
|
-
content: "·";
|
|
10482
|
-
margin: 0 .5ch;
|
|
10483
|
-
display: block;
|
|
10484
|
-
}
|
|
10485
|
-
.schema > span[data-v-f2ab7aa3] {
|
|
10486
|
-
white-space: nowrap;
|
|
10487
|
-
display: flex;
|
|
10488
|
-
}
|
|
10489
10484
|
[data-v-36811e28] .cm-editor {
|
|
10490
10485
|
padding: 0;
|
|
10491
10486
|
}
|
|
@@ -11979,7 +11974,7 @@ to {
|
|
|
11979
11974
|
display: flex;
|
|
11980
11975
|
position: relative;
|
|
11981
11976
|
}
|
|
11982
|
-
.askForAuthentication[data-v-
|
|
11977
|
+
.askForAuthentication[data-v-6fbfc976] {
|
|
11983
11978
|
border-top: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
11984
11979
|
border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
11985
11980
|
width: 100%;
|
|
@@ -11990,7 +11985,7 @@ to {
|
|
|
11990
11985
|
display: flex;
|
|
11991
11986
|
position: relative;
|
|
11992
11987
|
}
|
|
11993
|
-
.authContent[data-v-
|
|
11988
|
+
.authContent[data-v-6fbfc976] {
|
|
11994
11989
|
grid-template-rows: 0fr;
|
|
11995
11990
|
width: 100%;
|
|
11996
11991
|
max-width: 520px;
|
|
@@ -12000,19 +11995,19 @@ to {
|
|
|
12000
11995
|
display: grid;
|
|
12001
11996
|
overflow: hidden;
|
|
12002
11997
|
}
|
|
12003
|
-
.authContentInner[data-v-
|
|
11998
|
+
.authContentInner[data-v-6fbfc976] > div {
|
|
12004
11999
|
margin: 36px 0 48px;
|
|
12005
12000
|
}
|
|
12006
|
-
.authContent[data-v-
|
|
12001
|
+
.authContent[data-v-6fbfc976] .markdown {
|
|
12007
12002
|
margin-bottom: 0 !important;
|
|
12008
12003
|
}
|
|
12009
|
-
.askForAuthentication.open .authContent[data-v-
|
|
12004
|
+
.askForAuthentication.open .authContent[data-v-6fbfc976] {
|
|
12010
12005
|
grid-template-rows: 1fr;
|
|
12011
12006
|
}
|
|
12012
|
-
.continueButton[data-v-
|
|
12007
|
+
.continueButton[data-v-6fbfc976] {
|
|
12013
12008
|
align-self: flex-end;
|
|
12014
12009
|
}
|
|
12015
|
-
.toggleButton[data-v-
|
|
12010
|
+
.toggleButton[data-v-6fbfc976] {
|
|
12016
12011
|
cursor: pointer;
|
|
12017
12012
|
text-align: left;
|
|
12018
12013
|
color: var(--scalar-color-3);
|
|
@@ -12024,11 +12019,11 @@ to {
|
|
|
12024
12019
|
display: flex;
|
|
12025
12020
|
position: relative;
|
|
12026
12021
|
}
|
|
12027
|
-
.authContentInner[data-v-
|
|
12022
|
+
.authContentInner[data-v-6fbfc976] {
|
|
12028
12023
|
min-height: 0;
|
|
12029
12024
|
overflow: hidden;
|
|
12030
12025
|
}
|
|
12031
|
-
.authorizeButton[data-v-
|
|
12026
|
+
.authorizeButton[data-v-6fbfc976] {
|
|
12032
12027
|
z-index: 1;
|
|
12033
12028
|
gap: 5px;
|
|
12034
12029
|
display: flex;
|
|
@@ -12308,45 +12303,7 @@ to {
|
|
|
12308
12303
|
margin-bottom: 20px;
|
|
12309
12304
|
padding: 15px;
|
|
12310
12305
|
}
|
|
12311
|
-
.
|
|
12312
|
-
color: var(--scalar-color-2);
|
|
12313
|
-
cursor: pointer;
|
|
12314
|
-
vertical-align: middle;
|
|
12315
|
-
background: var(--scalar-background-2);
|
|
12316
|
-
}
|
|
12317
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
12318
|
-
.contextItem[data-v-b6e5aa96] {
|
|
12319
|
-
background: color-mix(in srgb, var(--scalar-background-2), var(--scalar-background-1));
|
|
12320
|
-
}
|
|
12321
|
-
}
|
|
12322
|
-
.contextItem[data-v-b6e5aa96] {
|
|
12323
|
-
border-radius: 12px;
|
|
12324
|
-
align-items: center;
|
|
12325
|
-
padding: 5px 10px;
|
|
12326
|
-
font-size: 10px;
|
|
12327
|
-
display: flex;
|
|
12328
|
-
}
|
|
12329
|
-
.shimmer[data-v-b6e5aa96] {
|
|
12330
|
-
background: var(--scalar-background-2);
|
|
12331
|
-
background-image: linear-gradient(90deg, #202020 0%, var(--scalar-background-2) 40%, var(--scalar-background-3) 80%);
|
|
12332
|
-
background-size: 200% 100%;
|
|
12333
|
-
animation: 1.4s ease-in-out infinite shimmer-b6e5aa96;
|
|
12334
|
-
}
|
|
12335
|
-
.light-mode .shimmer[data-v-b6e5aa96] {
|
|
12336
|
-
background: var(--scalar-background-2);
|
|
12337
|
-
background-image: linear-gradient(90deg, #fafafa 0%, var(--scalar-background-2) 40%, var(--scalar-background-3) 80%);
|
|
12338
|
-
background-size: 200% 100%;
|
|
12339
|
-
animation: 1.4s ease-in-out infinite shimmer-b6e5aa96;
|
|
12340
|
-
}
|
|
12341
|
-
@keyframes shimmer-b6e5aa96 {
|
|
12342
|
-
0% {
|
|
12343
|
-
background-position: 200% 0;
|
|
12344
|
-
}
|
|
12345
|
-
to {
|
|
12346
|
-
background-position: -200% 0;
|
|
12347
|
-
}
|
|
12348
|
-
}
|
|
12349
|
-
.playIcon[data-v-653c66b3] {
|
|
12306
|
+
.playIcon[data-v-9d9724d2] {
|
|
12350
12307
|
z-index: 1;
|
|
12351
12308
|
background: var(--scalar-background-1);
|
|
12352
12309
|
border-radius: 50%;
|
|
@@ -12358,7 +12315,7 @@ to {
|
|
|
12358
12315
|
display: flex;
|
|
12359
12316
|
position: relative;
|
|
12360
12317
|
}
|
|
12361
|
-
.playIcon[data-v-
|
|
12318
|
+
.playIcon[data-v-9d9724d2]:before {
|
|
12362
12319
|
content: "";
|
|
12363
12320
|
box-sizing: border-box;
|
|
12364
12321
|
border: 1.5px solid;
|
|
@@ -12368,11 +12325,11 @@ to {
|
|
|
12368
12325
|
border-radius: 50%;
|
|
12369
12326
|
width: 16px;
|
|
12370
12327
|
height: 16px;
|
|
12371
|
-
animation: .42s linear infinite rotation-
|
|
12328
|
+
animation: .42s linear infinite rotation-9d9724d2;
|
|
12372
12329
|
display: inline-block;
|
|
12373
12330
|
position: absolute;
|
|
12374
12331
|
}
|
|
12375
|
-
.
|
|
12332
|
+
.loadingApiSpecs[data-v-9d9724d2] {
|
|
12376
12333
|
color: var(--scalar-color-2);
|
|
12377
12334
|
font-weight: var(--scalar-semibold);
|
|
12378
12335
|
font-size: var(--scalar-font-size-3);
|
|
@@ -12381,13 +12338,13 @@ to {
|
|
|
12381
12338
|
margin-bottom: 10px;
|
|
12382
12339
|
display: flex;
|
|
12383
12340
|
}
|
|
12384
|
-
.
|
|
12341
|
+
.loadingApiSpecs svg[data-v-9d9724d2] {
|
|
12385
12342
|
z-index: 1;
|
|
12386
12343
|
border-radius: 50%;
|
|
12387
12344
|
width: 100%;
|
|
12388
12345
|
height: 100%;
|
|
12389
12346
|
}
|
|
12390
|
-
@keyframes rotation-
|
|
12347
|
+
@keyframes rotation-9d9724d2 {
|
|
12391
12348
|
0% {
|
|
12392
12349
|
transform: rotate(0);
|
|
12393
12350
|
}
|
|
@@ -12395,16 +12352,52 @@ to {
|
|
|
12395
12352
|
transform: rotate(360deg);
|
|
12396
12353
|
}
|
|
12397
12354
|
}
|
|
12398
|
-
.
|
|
12355
|
+
.contextItem[data-v-e6786ce3] {
|
|
12356
|
+
white-space: nowrap;
|
|
12357
|
+
color: var(--scalar-color-2);
|
|
12358
|
+
cursor: pointer;
|
|
12359
|
+
vertical-align: middle;
|
|
12360
|
+
background: var(--scalar-background-2);
|
|
12361
|
+
}
|
|
12362
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
12363
|
+
.contextItem[data-v-e6786ce3] {
|
|
12364
|
+
background: color-mix(in srgb, var(--scalar-background-2), var(--scalar-background-1));
|
|
12365
|
+
}
|
|
12366
|
+
}
|
|
12367
|
+
.contextItem[data-v-e6786ce3] {
|
|
12368
|
+
border-radius: 12px;
|
|
12399
12369
|
align-items: center;
|
|
12400
|
-
|
|
12401
|
-
|
|
12370
|
+
max-width: 200px;
|
|
12371
|
+
padding: 5px 10px;
|
|
12372
|
+
font-size: 10px;
|
|
12402
12373
|
display: flex;
|
|
12403
12374
|
}
|
|
12404
|
-
.
|
|
12405
|
-
|
|
12375
|
+
.contextItemText[data-v-e6786ce3] {
|
|
12376
|
+
text-overflow: ellipsis;
|
|
12377
|
+
white-space: nowrap;
|
|
12378
|
+
overflow: hidden;
|
|
12406
12379
|
}
|
|
12407
|
-
.
|
|
12380
|
+
.shimmer[data-v-e6786ce3] {
|
|
12381
|
+
background: var(--scalar-background-2);
|
|
12382
|
+
background-image: linear-gradient(90deg, #202020 0%, var(--scalar-background-2) 40%, var(--scalar-background-3) 80%);
|
|
12383
|
+
background-size: 200% 100%;
|
|
12384
|
+
animation: 1.4s ease-in-out infinite shimmer-e6786ce3;
|
|
12385
|
+
}
|
|
12386
|
+
.light-mode .shimmer[data-v-e6786ce3] {
|
|
12387
|
+
background: var(--scalar-background-2);
|
|
12388
|
+
background-image: linear-gradient(90deg, #fafafa 0%, var(--scalar-background-2) 40%, var(--scalar-background-3) 80%);
|
|
12389
|
+
background-size: 200% 100%;
|
|
12390
|
+
animation: 1.4s ease-in-out infinite shimmer-e6786ce3;
|
|
12391
|
+
}
|
|
12392
|
+
@keyframes shimmer-e6786ce3 {
|
|
12393
|
+
0% {
|
|
12394
|
+
background-position: 200% 0;
|
|
12395
|
+
}
|
|
12396
|
+
to {
|
|
12397
|
+
background-position: -200% 0;
|
|
12398
|
+
}
|
|
12399
|
+
}
|
|
12400
|
+
.playIcon[data-v-6e0ac42c] {
|
|
12408
12401
|
z-index: 1;
|
|
12409
12402
|
background: var(--scalar-background-1);
|
|
12410
12403
|
border-radius: 50%;
|
|
@@ -12416,7 +12409,7 @@ to {
|
|
|
12416
12409
|
display: flex;
|
|
12417
12410
|
position: relative;
|
|
12418
12411
|
}
|
|
12419
|
-
.playIcon[data-v-
|
|
12412
|
+
.playIcon[data-v-6e0ac42c]:before {
|
|
12420
12413
|
content: "";
|
|
12421
12414
|
box-sizing: border-box;
|
|
12422
12415
|
border: 1.5px solid;
|
|
@@ -12426,11 +12419,11 @@ to {
|
|
|
12426
12419
|
border-radius: 50%;
|
|
12427
12420
|
width: 16px;
|
|
12428
12421
|
height: 16px;
|
|
12429
|
-
animation: .42s linear infinite rotation-
|
|
12422
|
+
animation: .42s linear infinite rotation-6e0ac42c;
|
|
12430
12423
|
display: inline-block;
|
|
12431
12424
|
position: absolute;
|
|
12432
12425
|
}
|
|
12433
|
-
.
|
|
12426
|
+
.sendingRequest[data-v-6e0ac42c] {
|
|
12434
12427
|
color: var(--scalar-color-2);
|
|
12435
12428
|
font-weight: var(--scalar-semibold);
|
|
12436
12429
|
font-size: var(--scalar-font-size-3);
|
|
@@ -12439,13 +12432,13 @@ to {
|
|
|
12439
12432
|
margin-bottom: 10px;
|
|
12440
12433
|
display: flex;
|
|
12441
12434
|
}
|
|
12442
|
-
.
|
|
12435
|
+
.sendingRequest svg[data-v-6e0ac42c] {
|
|
12443
12436
|
z-index: 1;
|
|
12444
12437
|
border-radius: 50%;
|
|
12445
12438
|
width: 100%;
|
|
12446
12439
|
height: 100%;
|
|
12447
12440
|
}
|
|
12448
|
-
@keyframes rotation-
|
|
12441
|
+
@keyframes rotation-6e0ac42c {
|
|
12449
12442
|
0% {
|
|
12450
12443
|
transform: rotate(0);
|
|
12451
12444
|
}
|
|
@@ -12453,6 +12446,22 @@ to {
|
|
|
12453
12446
|
transform: rotate(360deg);
|
|
12454
12447
|
}
|
|
12455
12448
|
}
|
|
12449
|
+
.operations[data-v-43dd2b86] {
|
|
12450
|
+
flex-wrap: wrap;
|
|
12451
|
+
align-items: center;
|
|
12452
|
+
gap: 5px;
|
|
12453
|
+
margin-bottom: 12px;
|
|
12454
|
+
display: flex;
|
|
12455
|
+
}
|
|
12456
|
+
.operations[data-v-43dd2b86]:empty {
|
|
12457
|
+
margin-bottom: -12px;
|
|
12458
|
+
}
|
|
12459
|
+
.overflowPopover[data-v-43dd2b86] {
|
|
12460
|
+
flex-direction: column;
|
|
12461
|
+
gap: 5px;
|
|
12462
|
+
padding: 8px;
|
|
12463
|
+
display: flex;
|
|
12464
|
+
}
|
|
12456
12465
|
.catalogModal .scalar-modal-body {
|
|
12457
12466
|
flex-direction: column;
|
|
12458
12467
|
display: flex;
|
|
@@ -13128,7 +13137,7 @@ to {
|
|
|
13128
13137
|
border-radius: 50%;
|
|
13129
13138
|
padding: 2px;
|
|
13130
13139
|
}
|
|
13131
|
-
.chat[data-v-
|
|
13140
|
+
.chat[data-v-8e43ed7a] {
|
|
13132
13141
|
flex-direction: column;
|
|
13133
13142
|
flex: 1;
|
|
13134
13143
|
width: 100%;
|
|
@@ -13136,7 +13145,7 @@ to {
|
|
|
13136
13145
|
padding: 24px 0;
|
|
13137
13146
|
display: flex;
|
|
13138
13147
|
}
|
|
13139
|
-
.userMessage[data-v-
|
|
13148
|
+
.userMessage[data-v-8e43ed7a] {
|
|
13140
13149
|
background: var(--scalar-background-2);
|
|
13141
13150
|
width: fit-content;
|
|
13142
13151
|
max-width: 80%;
|
|
@@ -13150,24 +13159,24 @@ to {
|
|
|
13150
13159
|
font-size: 16px;
|
|
13151
13160
|
line-height: 24px;
|
|
13152
13161
|
}
|
|
13153
|
-
div + .userMessage[data-v-
|
|
13162
|
+
div + .userMessage[data-v-8e43ed7a] {
|
|
13154
13163
|
margin-top: 64px;
|
|
13155
13164
|
}
|
|
13156
|
-
.chat[data-v-
|
|
13165
|
+
.chat[data-v-8e43ed7a] > div:has(.executeRequestTool) + div:has(.executeRequestTool) {
|
|
13157
13166
|
margin-top: -12px;
|
|
13158
13167
|
}
|
|
13159
|
-
.spacer[data-v-
|
|
13168
|
+
.spacer[data-v-8e43ed7a] {
|
|
13160
13169
|
width: 100%;
|
|
13161
13170
|
min-height: 280px;
|
|
13162
13171
|
}
|
|
13163
|
-
.formContainer[data-v-
|
|
13172
|
+
.formContainer[data-v-8e43ed7a] {
|
|
13164
13173
|
z-index: 1;
|
|
13165
13174
|
width: 100%;
|
|
13166
13175
|
max-width: 744px;
|
|
13167
13176
|
position: fixed;
|
|
13168
13177
|
bottom: 20px;
|
|
13169
13178
|
}
|
|
13170
|
-
.chat[data-v-
|
|
13179
|
+
.chat[data-v-8e43ed7a] .markdown {
|
|
13171
13180
|
margin-bottom: 12px;
|
|
13172
13181
|
}
|
|
13173
13182
|
.agentLogo[data-v-56f7e8dd] {
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.49.
|
|
23
|
+
"version": "1.49.6",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=22"
|
|
26
26
|
},
|
|
@@ -91,21 +91,21 @@
|
|
|
91
91
|
"nanoid": "^5.1.6",
|
|
92
92
|
"vue": "^3.5.26",
|
|
93
93
|
"yaml": "^2.8.0",
|
|
94
|
-
"@scalar/
|
|
95
|
-
"@scalar/api-client": "2.39.1",
|
|
94
|
+
"@scalar/api-client": "2.39.2",
|
|
96
95
|
"@scalar/code-highlight": "0.3.1",
|
|
97
|
-
"@scalar/icons": "0.7.0",
|
|
98
96
|
"@scalar/components": "0.21.1",
|
|
97
|
+
"@scalar/agent-chat": "0.9.15",
|
|
99
98
|
"@scalar/helpers": "0.4.2",
|
|
100
|
-
"@scalar/
|
|
101
|
-
"@scalar/
|
|
102
|
-
"@scalar/snippetz": "0.7.7",
|
|
99
|
+
"@scalar/icons": "0.7.0",
|
|
100
|
+
"@scalar/oas-utils": "0.10.13",
|
|
103
101
|
"@scalar/openapi-types": "0.6.1",
|
|
102
|
+
"@scalar/sidebar": "0.8.15",
|
|
103
|
+
"@scalar/snippetz": "0.7.7",
|
|
104
104
|
"@scalar/types": "0.7.5",
|
|
105
|
+
"@scalar/use-hooks": "0.4.1",
|
|
105
106
|
"@scalar/themes": "0.15.1",
|
|
106
107
|
"@scalar/use-toasts": "0.10.1",
|
|
107
|
-
"@scalar/
|
|
108
|
-
"@scalar/workspace-store": "0.41.1"
|
|
108
|
+
"@scalar/workspace-store": "0.41.2"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@hono/node-server": "^1.19.7",
|
|
@@ -123,9 +123,9 @@
|
|
|
123
123
|
"vite-plugin-banner": "^0.8.1",
|
|
124
124
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
125
125
|
"vitest": "4.1.0",
|
|
126
|
-
"@scalar/
|
|
126
|
+
"@scalar/core": "0.4.5",
|
|
127
127
|
"@scalar/react-renderer": "0.4.1",
|
|
128
|
-
"@scalar/
|
|
128
|
+
"@scalar/galaxy": "0.6.1"
|
|
129
129
|
},
|
|
130
130
|
"scripts": {
|
|
131
131
|
"build": "pnpm build:default && pnpm build:standalone && vue-tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|