@scalar/api-client 1.2.16 → 1.2.18
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 +14 -0
- package/dist/SideBarClosed-CYUNS2XM-CyAn6Mp2.js +18 -0
- package/dist/SideBarOpen-BOxW49_U-D5IKtkfP.js +18 -0
- package/dist/components/ApiClient/ApiClient.vue.d.ts +15 -2
- package/dist/components/ApiClient/ApiClient.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/Request.vue.d.ts.map +1 -1
- package/dist/index.css +34 -33
- package/dist/index.js +24 -14
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 1.2.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 26d9146: feat: improved api client modal
|
|
8
|
+
- Updated dependencies [26d9146]
|
|
9
|
+
- @scalar/components@0.7.4
|
|
10
|
+
|
|
11
|
+
## 1.2.17
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- d649691: fix: request body display
|
|
16
|
+
|
|
3
17
|
## 1.2.16
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createStaticVNode } from "vue";
|
|
2
|
+
const a = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "14",
|
|
5
|
+
height: "14",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 14 14"
|
|
8
|
+
}, h = /* @__PURE__ */ createStaticVNode('<g fill="currentColor" clip-path="url(#a)"><path d="M11.67 14H2.33A2.34 2.34 0 0 1 0 11.67V2.33A2.34 2.34 0 0 1 2.33 0h9.34A2.34 2.34 0 0 1 14 2.33v9.34A2.34 2.34 0 0 1 11.67 14M2.33 1.17c-.64 0-1.16.52-1.16 1.16v9.34c0 .64.52 1.16 1.16 1.16h9.34c.64 0 1.16-.52 1.16-1.16V2.33c0-.64-.52-1.16-1.16-1.16z"></path><path d="M4.67 14c-.35 0-.59-.23-.59-.58V.58c0-.35.24-.58.59-.58s.58.23.58.58v12.84c0 .35-.23.58-.58.58m5.75-6.42c.17 0 .29-.05.4-.17a.56.56 0 0 0 0-.82L9.07 4.84a.56.56 0 0 0-.81 0 .56.56 0 0 0 0 .82L10 7.4c.11.12.23.17.4.17Z"></path><path d="M8.66 9.33c.18 0 .3-.05.41-.17l1.75-1.75a.56.56 0 0 0 0-.82.56.56 0 0 0-.81 0L8.26 8.34a.56.56 0 0 0 0 .82c.11.12.23.17.4.17"></path></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h14v14H0z"></path></clipPath></defs>', 2), o = [
|
|
9
|
+
h
|
|
10
|
+
];
|
|
11
|
+
function l(d, i) {
|
|
12
|
+
return openBlock(), createElementBlock("svg", a, [...o]);
|
|
13
|
+
}
|
|
14
|
+
const p = { render: l };
|
|
15
|
+
export {
|
|
16
|
+
p as default,
|
|
17
|
+
l as render
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createStaticVNode } from "vue";
|
|
2
|
+
const l = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "14",
|
|
5
|
+
height: "14",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 14 14"
|
|
8
|
+
}, o = /* @__PURE__ */ createStaticVNode('<g fill="currentColor" clip-path="url(#a)"><path d="m7.75 6.6 1.76-1.76a.53.53 0 0 1 .4-.17.53.53 0 0 1 .41.17.56.56 0 0 1 0 .82L8.98 7l1.34 1.34a.56.56 0 0 1 0 .82.57.57 0 0 1-.81 0L7.75 7.4a.56.56 0 0 1 0-.82Z"></path><path fill-rule="evenodd" d="M11.67 14A2.34 2.34 0 0 0 14 11.67V2.33A2.34 2.34 0 0 0 11.67 0H2.33A2.34 2.34 0 0 0 0 2.33v9.34A2.33 2.33 0 0 0 2.33 14zm-6.42-1.17h6.42a1.17 1.17 0 0 0 1.16-1.16V2.33a1.17 1.17 0 0 0-1.16-1.16H5.25z" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h14v14H0z"></path></clipPath></defs>', 2), d = [
|
|
9
|
+
o
|
|
10
|
+
];
|
|
11
|
+
function h(i, r) {
|
|
12
|
+
return openBlock(), createElementBlock("svg", l, [...d]);
|
|
13
|
+
}
|
|
14
|
+
const n = { render: h };
|
|
15
|
+
export {
|
|
16
|
+
n as default,
|
|
17
|
+
h as render
|
|
18
|
+
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { type ThemeId } from '@scalar/themes';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
proxyUrl?: string | undefined;
|
|
4
4
|
readOnly?: boolean | undefined;
|
|
5
5
|
theme?: ThemeId | undefined;
|
|
6
6
|
withDefaultFonts: boolean;
|
|
7
|
+
showSideBar?: boolean | undefined;
|
|
7
8
|
}>, {
|
|
8
9
|
readOnly: boolean;
|
|
9
10
|
withDefaultFonts: boolean;
|
|
11
|
+
showSideBar: boolean;
|
|
10
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
13
|
escapeKeyPress: () => void;
|
|
12
14
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -14,15 +16,21 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
16
|
readOnly?: boolean | undefined;
|
|
15
17
|
theme?: ThemeId | undefined;
|
|
16
18
|
withDefaultFonts: boolean;
|
|
19
|
+
showSideBar?: boolean | undefined;
|
|
17
20
|
}>, {
|
|
18
21
|
readOnly: boolean;
|
|
19
22
|
withDefaultFonts: boolean;
|
|
23
|
+
showSideBar: boolean;
|
|
20
24
|
}>>> & {
|
|
21
25
|
onEscapeKeyPress?: (() => any) | undefined;
|
|
22
26
|
}, {
|
|
23
27
|
readOnly: boolean;
|
|
24
28
|
withDefaultFonts: boolean;
|
|
25
|
-
|
|
29
|
+
showSideBar: boolean;
|
|
30
|
+
}, {}>, {
|
|
31
|
+
"address-bar-controls"?(_: {}): any;
|
|
32
|
+
sidebar?(_: {}): any;
|
|
33
|
+
}>;
|
|
26
34
|
export default _default;
|
|
27
35
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
36
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -41,4 +49,9 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
41
49
|
type __VLS_Prettify<T> = {
|
|
42
50
|
[K in keyof T]: T[K];
|
|
43
51
|
} & {};
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
44
57
|
//# sourceMappingURL=ApiClient.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClient.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/ApiClient.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,gBAAgB,CAAA
|
|
1
|
+
{"version":3,"file":"ApiClient.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/ApiClient.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0Z1D,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/Request.vue.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/Request.vue.ts"],"names":[],"mappings":";AAgPA,wBAKG"}
|
package/dist/index.css
CHANGED
|
@@ -693,14 +693,14 @@ to {
|
|
|
693
693
|
color: var(--scalar-api-client-color);
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
-
.loader[data-v-
|
|
696
|
+
.loader[data-v-dcf8c50b] {
|
|
697
697
|
position: absolute;
|
|
698
698
|
z-index: 3;
|
|
699
699
|
height: 2px;
|
|
700
700
|
background: var(--scalar-api-client-color);
|
|
701
|
-
animation: loading-
|
|
701
|
+
animation: loading-dcf8c50b 5s cubic-bezier(0, 0.5, 0.25, 1);
|
|
702
702
|
}
|
|
703
|
-
@keyframes loading-
|
|
703
|
+
@keyframes loading-dcf8c50b {
|
|
704
704
|
0% {
|
|
705
705
|
width: 0;
|
|
706
706
|
}
|
|
@@ -708,25 +708,28 @@ to {
|
|
|
708
708
|
width: 100%;
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
.address-bar[data-v-
|
|
711
|
+
.address-bar[data-v-dcf8c50b] {
|
|
712
712
|
width: 100%;
|
|
713
713
|
padding: 12px 12px 10px 12px;
|
|
714
714
|
display: flex;
|
|
715
715
|
align-items: center;
|
|
716
716
|
position: relative;
|
|
717
|
-
background: var(--scalar-background-1);
|
|
718
717
|
}
|
|
719
|
-
.url-form[data-v-
|
|
718
|
+
.url-form[data-v-dcf8c50b] {
|
|
720
719
|
display: flex;
|
|
721
|
-
width:
|
|
720
|
+
width: 720px;
|
|
722
721
|
align-items: stretch;
|
|
723
722
|
border-radius: var(--scalar-radius-lg);
|
|
723
|
+
max-width: 720px;
|
|
724
|
+
margin: auto;
|
|
725
|
+
z-index: 2;
|
|
726
|
+
max-width: calc(100% - 68px);
|
|
724
727
|
}
|
|
725
|
-
.url-form[data-v-
|
|
728
|
+
.url-form[data-v-dcf8c50b] .cm-content {
|
|
726
729
|
display: flex;
|
|
727
730
|
align-items: center;
|
|
728
731
|
}
|
|
729
|
-
.url-form-field[data-v-
|
|
732
|
+
.url-form-field[data-v-dcf8c50b] {
|
|
730
733
|
border-right: 0;
|
|
731
734
|
background: var(--scalar-background-2);
|
|
732
735
|
border-radius: var(--scalar-radius) 0 0 var(--scalar-radius);
|
|
@@ -736,18 +739,18 @@ to {
|
|
|
736
739
|
overflow: hidden;
|
|
737
740
|
min-height: 31px;
|
|
738
741
|
}
|
|
739
|
-
.url-form-input[data-v-
|
|
742
|
+
.url-form-input[data-v-dcf8c50b] {
|
|
740
743
|
color: var(--scalar-color-1);
|
|
741
744
|
}
|
|
742
|
-
.url-form-input[data-v-
|
|
745
|
+
.url-form-input[data-v-dcf8c50b] {
|
|
743
746
|
font-weight: var(--scalar-semibold);
|
|
744
747
|
min-height: auto;
|
|
745
748
|
padding-top: 0;
|
|
746
749
|
}
|
|
747
|
-
.url-form-input[data-v-
|
|
750
|
+
.url-form-input[data-v-dcf8c50b] .cm-scroller {
|
|
748
751
|
overflow-y: hidden;
|
|
749
752
|
}
|
|
750
|
-
.history[data-v-
|
|
753
|
+
.history[data-v-dcf8c50b] {
|
|
751
754
|
appearance: none;
|
|
752
755
|
-webkit-appearance: none;
|
|
753
756
|
background: transparent;
|
|
@@ -757,57 +760,55 @@ to {
|
|
|
757
760
|
border-radius: var(--scalar-radius);
|
|
758
761
|
height: 100%;
|
|
759
762
|
}
|
|
760
|
-
.send-button[type='submit'][data-v-
|
|
763
|
+
.send-button[type='submit'][data-v-dcf8c50b] {
|
|
761
764
|
font-size: var(--scalar-micro);
|
|
762
765
|
letter-spacing: 0.25px;
|
|
763
|
-
font-weight: var(--scalar-semibold);
|
|
764
766
|
color: var(--scalar-button-1-color);
|
|
765
767
|
border: none;
|
|
766
768
|
white-space: nowrap;
|
|
767
769
|
padding: 0 12px;
|
|
768
|
-
text-transform: uppercase;
|
|
769
770
|
cursor: pointer;
|
|
770
771
|
outline: none;
|
|
771
772
|
font-family: var(--scalar-font);
|
|
773
|
+
font-weight: var(--scalar-semibold);
|
|
772
774
|
border-radius: 0 var(--scalar-radius) var(--scalar-radius) 0;
|
|
773
775
|
background: var(--scalar-button-1);
|
|
774
776
|
position: relative;
|
|
775
|
-
/** #087f5b */
|
|
776
777
|
display: flex;
|
|
777
778
|
align-items: center;
|
|
778
779
|
overflow: hidden;
|
|
779
780
|
flex-shrink: 0;
|
|
780
781
|
}
|
|
781
|
-
.send-button[data-v-
|
|
782
|
+
.send-button[data-v-dcf8c50b]:hover {
|
|
782
783
|
background: var(--scalar-button-1-hover);
|
|
783
784
|
}
|
|
784
|
-
.send-button svg[data-v-
|
|
785
|
+
.send-button svg[data-v-dcf8c50b] {
|
|
785
786
|
width: 12px;
|
|
786
787
|
height: 12px;
|
|
787
788
|
flex-shrink: 0;
|
|
788
789
|
margin-right: 6px;
|
|
789
790
|
position: relative;
|
|
790
791
|
}
|
|
791
|
-
.send-button span[data-v-
|
|
792
|
+
.send-button span[data-v-dcf8c50b] {
|
|
792
793
|
position: relative;
|
|
793
794
|
}
|
|
794
795
|
@media screen and (max-width: 720px) {
|
|
795
|
-
.history-toggle span[data-v-
|
|
796
|
-
.send-button span[data-v-
|
|
796
|
+
.history-toggle span[data-v-dcf8c50b],
|
|
797
|
+
.send-button span[data-v-dcf8c50b] {
|
|
797
798
|
display: none;
|
|
798
799
|
}
|
|
799
|
-
.history-toggle svg[data-v-
|
|
800
|
-
.send-button svg[data-v-
|
|
800
|
+
.history-toggle svg[data-v-dcf8c50b],
|
|
801
|
+
.send-button svg[data-v-dcf8c50b] {
|
|
801
802
|
margin-right: 0;
|
|
802
803
|
}
|
|
803
804
|
}
|
|
804
|
-
.send-button[disabled][data-v-
|
|
805
|
+
.send-button[disabled][data-v-dcf8c50b] {
|
|
805
806
|
pointer-events: none;
|
|
806
807
|
color: var(--scalar-color-2);
|
|
807
808
|
background: var(--scalar-background-3);
|
|
808
809
|
border: 1px solid var(--scalar-border-color);
|
|
809
810
|
}
|
|
810
|
-
.history-toggle[data-v-
|
|
811
|
+
.history-toggle[data-v-dcf8c50b] {
|
|
811
812
|
padding: 0 12px;
|
|
812
813
|
line-height: 30px;
|
|
813
814
|
color: var(--scalar-color-3);
|
|
@@ -825,16 +826,16 @@ to {
|
|
|
825
826
|
border-radius: var(--scalar-radius);
|
|
826
827
|
user-select: none;
|
|
827
828
|
}
|
|
828
|
-
.history-toggle[data-v-
|
|
829
|
+
.history-toggle[data-v-dcf8c50b]:hover {
|
|
829
830
|
background: var(--scalar-background-2);
|
|
830
831
|
}
|
|
831
|
-
.history-toggle svg[data-v-
|
|
832
|
+
.history-toggle svg[data-v-dcf8c50b] {
|
|
832
833
|
height: 13px;
|
|
833
834
|
width: 13px;
|
|
834
835
|
margin-right: 6px;
|
|
835
836
|
color: var(--scalar-color-3);
|
|
836
837
|
}
|
|
837
|
-
.address-bar-content[data-v-
|
|
838
|
+
.address-bar-content[data-v-dcf8c50b] {
|
|
838
839
|
width: 640px;
|
|
839
840
|
height: 100%;
|
|
840
841
|
background: var(--scalar-background-1);
|
|
@@ -849,21 +850,21 @@ to {
|
|
|
849
850
|
opacity 0.01s ease-in-out 0.5s;
|
|
850
851
|
pointer-events: none;
|
|
851
852
|
}
|
|
852
|
-
.address-bar--with-history[data-v-
|
|
853
|
+
.address-bar--with-history[data-v-dcf8c50b] {
|
|
853
854
|
z-index: 100000;
|
|
854
855
|
}
|
|
855
|
-
.address-bar--with-history .address-bar-content[data-v-
|
|
856
|
+
.address-bar--with-history .address-bar-content[data-v-dcf8c50b] {
|
|
856
857
|
transform: translate3d(0, 0, 0);
|
|
857
858
|
opacity: 1;
|
|
858
859
|
pointer-events: all;
|
|
859
860
|
transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
|
|
860
861
|
}
|
|
861
|
-
.address-bar--with-history .address-bar-close[data-v-
|
|
862
|
+
.address-bar--with-history .address-bar-close[data-v-dcf8c50b] {
|
|
862
863
|
opacity: 1;
|
|
863
864
|
pointer-events: all;
|
|
864
865
|
cursor: pointer;
|
|
865
866
|
}
|
|
866
|
-
.address-bar-close[data-v-
|
|
867
|
+
.address-bar-close[data-v-dcf8c50b] {
|
|
867
868
|
width: 100%;
|
|
868
869
|
height: 100%;
|
|
869
870
|
position: fixed;
|
package/dist/index.js
CHANGED
|
@@ -26398,7 +26398,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
26398
26398
|
}
|
|
26399
26399
|
});
|
|
26400
26400
|
const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-2b029b46"]]);
|
|
26401
|
-
const _withScopeId$5 = (n) => (pushScopeId("data-v-
|
|
26401
|
+
const _withScopeId$5 = (n) => (pushScopeId("data-v-dcf8c50b"), n = n(), popScopeId(), n);
|
|
26402
26402
|
const _hoisted_1$s = {
|
|
26403
26403
|
key: 0,
|
|
26404
26404
|
class: "loader"
|
|
@@ -26423,7 +26423,7 @@ const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ create
|
|
|
26423
26423
|
})
|
|
26424
26424
|
])
|
|
26425
26425
|
], -1));
|
|
26426
|
-
const _hoisted_6$2 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("span", null, "Send
|
|
26426
|
+
const _hoisted_6$2 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("span", null, "Send", -1));
|
|
26427
26427
|
const _hoisted_7$1 = [
|
|
26428
26428
|
_hoisted_5$5,
|
|
26429
26429
|
_hoisted_6$2
|
|
@@ -26581,7 +26581,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
26581
26581
|
};
|
|
26582
26582
|
}
|
|
26583
26583
|
});
|
|
26584
|
-
const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-
|
|
26584
|
+
const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-dcf8c50b"]]);
|
|
26585
26585
|
const clickGeneratedParameter = useEventBus(Symbol());
|
|
26586
26586
|
const _hoisted_1$r = /* @__PURE__ */ createElementVNode("svg", {
|
|
26587
26587
|
class: "scalar-api-client__toggle__icon",
|
|
@@ -31341,7 +31341,7 @@ const Ge = ["innerHTML"], Pt = /* @__PURE__ */ defineComponent({
|
|
|
31341
31341
|
], 2));
|
|
31342
31342
|
}
|
|
31343
31343
|
});
|
|
31344
|
-
const j = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZgYXx-DzyQwJvS.js"), "./Brackets.svg": () => import("./Brackets-4I8OKomf-BdIXlrTs.js"), "./Branch.svg": () => import("./Branch-CXwj8YuG-IxKqRWkx.js"), "./Checkmark.svg": () => import("./Checkmark-De7nq6cG-CenVOav7.js"), "./ChevronDown.svg": () => import("./ChevronDown-Co7EAKAv-DHNwXUbS.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-DYt0idAu-DAzCtmws.js"), "./ChevronRight.svg": () => import("./ChevronRight-ylxToVWl-CDFDuBE1.js"), "./ChevronUp.svg": () => import("./ChevronUp-xAnukIfj-CuKFLVD3.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-CW3z42qZ-CeX6s3FA.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cv_igzJE-CoWfaY0Z.js"), "./Cookie.svg": () => import("./Cookie-CEHvXpqB-D960ImBy.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./DocsPage.svg": () => import("./DocsPage-rh2xwxKN-BP1Vagfm.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./ExternalLink.svg": () => import("./ExternalLink-DK8L-EH7-ANJEzoHO.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./Hide.svg": () => import("./Hide-Q3GPkIKH-40aIsLtN.js"), "./JsonObject.svg": () => import("./JsonObject-hGdHUQ4M-Cm1hXgAn.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M-LQcor9RM.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK-Bzb5EbnZ.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P-B_rZ91PC.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab-_INRDSLs.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW-DFEpFXIU.js"), "./Menu.svg": () => import("./Menu-CFK5cOsm-CqE9Tsgr.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./Show.svg": () => import("./Show-D86hKz5y-CF9Pv7FS.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5-vWaGU4_z.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk-Bzc9D9am.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19-CfPlyy6T.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy-Cty_4oXq.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN-DdUogL85.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cv46W2aB-Dt_I9pcj.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg-QG1pSdJG.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb-B1_8fYG9.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6-BUgfSlg1.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL-Bl9dTA-D.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I-BWQXI44M.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w-CWqBHVz_.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG-DFjYF_MP.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi-BMZrSR1t.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm-DZhaOPIJ.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX-BR-B91By.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4-DQ_8EMFH.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36-S3xix_dw.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo-BCrlyfv0.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9-BWGOKD9M.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g-Dd3La6Kn.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ-Bz_n-CNw.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-BsTa1xI7-XJbYjh7O.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg-BUvu5_SV.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi-CaDO02MW.js"), "./programming-script-code.svg": () => import("./programming-script-code-DQN1veb2-BPFALXVk.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js") }), U = (a) => {
|
|
31344
|
+
const j = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZgYXx-DzyQwJvS.js"), "./Brackets.svg": () => import("./Brackets-4I8OKomf-BdIXlrTs.js"), "./Branch.svg": () => import("./Branch-CXwj8YuG-IxKqRWkx.js"), "./Checkmark.svg": () => import("./Checkmark-De7nq6cG-CenVOav7.js"), "./ChevronDown.svg": () => import("./ChevronDown-Co7EAKAv-DHNwXUbS.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-DYt0idAu-DAzCtmws.js"), "./ChevronRight.svg": () => import("./ChevronRight-ylxToVWl-CDFDuBE1.js"), "./ChevronUp.svg": () => import("./ChevronUp-xAnukIfj-CuKFLVD3.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-CW3z42qZ-CeX6s3FA.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cv_igzJE-CoWfaY0Z.js"), "./Cookie.svg": () => import("./Cookie-CEHvXpqB-D960ImBy.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./DocsPage.svg": () => import("./DocsPage-rh2xwxKN-BP1Vagfm.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./ExternalLink.svg": () => import("./ExternalLink-DK8L-EH7-ANJEzoHO.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./Hide.svg": () => import("./Hide-Q3GPkIKH-40aIsLtN.js"), "./JsonObject.svg": () => import("./JsonObject-hGdHUQ4M-Cm1hXgAn.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M-LQcor9RM.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK-Bzb5EbnZ.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P-B_rZ91PC.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab-_INRDSLs.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW-DFEpFXIU.js"), "./Menu.svg": () => import("./Menu-CFK5cOsm-CqE9Tsgr.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./Show.svg": () => import("./Show-D86hKz5y-CF9Pv7FS.js"), "./SideBarClosed.svg": () => import("./SideBarClosed-CYUNS2XM-CyAn6Mp2.js"), "./SideBarOpen.svg": () => import("./SideBarOpen-BOxW49_U-D5IKtkfP.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5-vWaGU4_z.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk-Bzc9D9am.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19-CfPlyy6T.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy-Cty_4oXq.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN-DdUogL85.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cv46W2aB-Dt_I9pcj.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg-QG1pSdJG.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb-B1_8fYG9.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6-BUgfSlg1.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL-Bl9dTA-D.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I-BWQXI44M.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w-CWqBHVz_.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG-DFjYF_MP.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi-BMZrSR1t.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm-DZhaOPIJ.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX-BR-B91By.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4-DQ_8EMFH.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36-S3xix_dw.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo-BCrlyfv0.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9-BWGOKD9M.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g-Dd3La6Kn.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ-Bz_n-CNw.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-BsTa1xI7-XJbYjh7O.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg-BUvu5_SV.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi-CaDO02MW.js"), "./programming-script-code.svg": () => import("./programming-script-code-DQN1veb2-BPFALXVk.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js") }), U = (a) => {
|
|
31345
31345
|
const t2 = `./${a}.svg`;
|
|
31346
31346
|
return j[t2] ? defineAsyncComponent(j[t2]) : (console.warn(`Could not find icon: ${a}`), null);
|
|
31347
31347
|
}, Ye = ["src"], V = /* @__PURE__ */ defineComponent({
|
|
@@ -32673,6 +32673,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
32673
32673
|
);
|
|
32674
32674
|
}
|
|
32675
32675
|
);
|
|
32676
|
+
const showRequestBody = computed(() => {
|
|
32677
|
+
const requestType = activeRequest2.type.toLowerCase();
|
|
32678
|
+
return requestType === "put" || requestType === "post" || requestType === "patch";
|
|
32679
|
+
});
|
|
32676
32680
|
return (_ctx, _cache) => {
|
|
32677
32681
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
32678
32682
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -32708,11 +32712,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
32708
32712
|
generatedQueries: authenticationRequest.value.queryString,
|
|
32709
32713
|
queries: unref(activeRequest2).query
|
|
32710
32714
|
}, null, 8, ["generatedQueries", "queries"]),
|
|
32711
|
-
|
|
32715
|
+
showRequestBody.value ? (openBlock(), createBlock(_sfc_main$f, {
|
|
32716
|
+
key: 0,
|
|
32712
32717
|
body: unref(activeRequest2).body,
|
|
32713
32718
|
formData: unref(activeRequest2).formData,
|
|
32714
32719
|
requestBody: unref(activeRequest2).body
|
|
32715
|
-
}, null, 8, ["body", "formData", "requestBody"]),
|
|
32720
|
+
}, null, 8, ["body", "formData", "requestBody"])) : createCommentVNode("", true),
|
|
32716
32721
|
_hoisted_6$1
|
|
32717
32722
|
])
|
|
32718
32723
|
]);
|
|
@@ -33086,7 +33091,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33086
33091
|
proxyUrl: {},
|
|
33087
33092
|
readOnly: { type: Boolean, default: false },
|
|
33088
33093
|
theme: {},
|
|
33089
|
-
withDefaultFonts: { type: Boolean, default: true }
|
|
33094
|
+
withDefaultFonts: { type: Boolean, default: true },
|
|
33095
|
+
showSideBar: { type: Boolean, default: false }
|
|
33090
33096
|
},
|
|
33091
33097
|
emits: ["escapeKeyPress"],
|
|
33092
33098
|
setup(__props, { emit: __emit }) {
|
|
@@ -33124,16 +33130,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33124
33130
|
onKeydown: _cache[1] || (_cache[1] = withKeys(($event) => emit("escapeKeyPress"), ["esc"]))
|
|
33125
33131
|
}, {
|
|
33126
33132
|
default: withCtx(() => [
|
|
33127
|
-
|
|
33128
|
-
|
|
33129
|
-
|
|
33130
|
-
|
|
33133
|
+
createElementVNode("div", null, [
|
|
33134
|
+
renderSlot(_ctx.$slots, "address-bar-controls"),
|
|
33135
|
+
createVNode(AddressBar, {
|
|
33136
|
+
proxyUrl: _ctx.proxyUrl,
|
|
33137
|
+
onOnSend: _cache[0] || (_cache[0] = ($event) => changeTab(Tabs.Response))
|
|
33138
|
+
}, null, 8, ["proxyUrl"])
|
|
33139
|
+
]),
|
|
33131
33140
|
createElementVNode("div", _hoisted_1, [
|
|
33132
|
-
|
|
33141
|
+
_ctx.showSideBar ? renderSlot(_ctx.$slots, "sidebar", { key: 0 }) : createCommentVNode("", true),
|
|
33142
|
+
!unref(isSmallScreen) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
33133
33143
|
createVNode(unref(_sfc_main$a)),
|
|
33134
33144
|
createVNode(unref(_sfc_main$1))
|
|
33135
33145
|
], 64)) : (openBlock(), createBlock(unref(TabGroup), {
|
|
33136
|
-
key:
|
|
33146
|
+
key: 2,
|
|
33137
33147
|
selectedIndex: selectedTab.value,
|
|
33138
33148
|
onChange: changeTab
|
|
33139
33149
|
}, {
|
|
@@ -33185,7 +33195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33185
33195
|
}, 8, ["selectedIndex"]))
|
|
33186
33196
|
])
|
|
33187
33197
|
]),
|
|
33188
|
-
_:
|
|
33198
|
+
_: 3
|
|
33189
33199
|
}, 8, ["method"])
|
|
33190
33200
|
], 64);
|
|
33191
33201
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "1.2.
|
|
21
|
+
"version": "1.2.18",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"nanoid": "^5.0.1",
|
|
43
43
|
"pretty-bytes": "^6.1.1",
|
|
44
44
|
"pretty-ms": "^8.0.0",
|
|
45
|
-
"@scalar/components": "0.7.
|
|
45
|
+
"@scalar/components": "0.7.4",
|
|
46
46
|
"@scalar/themes": "0.7.9",
|
|
47
|
-
"@scalar/use-
|
|
47
|
+
"@scalar/use-tooltip": "0.6.2",
|
|
48
48
|
"@scalar/use-codemirror": "0.10.3",
|
|
49
|
-
"@scalar/use-
|
|
49
|
+
"@scalar/use-modal": "0.3.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/content-type": "^1.1.6",
|