@scalar/api-client 0.9.4 → 0.10.0
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 +6 -0
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts.map +1 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts +19 -3
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts.map +1 -1
- package/dist/index.js +48 -13
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestBody.vue.ts"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestBody.vue.ts"],"names":[],"mappings":";;;;;;;AAmIA,wBASG;AAGH,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestCookies.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestCookies.vue.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"RequestCookies.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestCookies.vue.ts"],"names":[],"mappings":";;;;;AA6IA,wBAMG;AAGH,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestHeaders.vue.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"RequestHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestHeaders.vue.ts"],"names":[],"mappings":";;;;;AA6IA,wBAMG;AAGH,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestQuery.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestQuery.vue.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"RequestQuery.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestQuery.vue.ts"],"names":[],"mappings":";;;;;AA8IA,wBAMG;AAGH,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestVariables.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestVariables.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;;;;;;
|
|
1
|
+
{"version":3,"file":"RequestVariables.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestVariables.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;;;;;;AA2InD,wBAMG;AAGH,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"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
title?: string | undefined;
|
|
3
|
-
|
|
3
|
+
defaultOpen?: boolean | undefined;
|
|
4
|
+
}>, {
|
|
5
|
+
defaultOpen: boolean;
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
7
|
title?: string | undefined;
|
|
5
|
-
|
|
8
|
+
defaultOpen?: boolean | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
defaultOpen: boolean;
|
|
11
|
+
}>>>, {
|
|
12
|
+
defaultOpen: boolean;
|
|
13
|
+
}, {}>, {
|
|
6
14
|
options?(_: {}): any;
|
|
7
15
|
default?(_: {}): any;
|
|
8
16
|
}>;
|
|
@@ -16,6 +24,14 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
16
24
|
required: true;
|
|
17
25
|
};
|
|
18
26
|
};
|
|
27
|
+
type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
32
|
+
type __VLS_Prettify<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
19
35
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
36
|
new (): {
|
|
21
37
|
$slots: S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsibleSection/CollapsibleSection.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CollapsibleSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsibleSection/CollapsibleSection.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAgOA,wBAAwG;AAGxG,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"}
|
package/dist/index.js
CHANGED
|
@@ -26853,16 +26853,39 @@ const _hoisted_4$5 = { class: "scalar-api-client__item__content" };
|
|
|
26853
26853
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
26854
26854
|
__name: "CollapsibleSection",
|
|
26855
26855
|
props: {
|
|
26856
|
-
title: {}
|
|
26856
|
+
title: {},
|
|
26857
|
+
defaultOpen: { type: Boolean, default: true }
|
|
26857
26858
|
},
|
|
26858
26859
|
setup(__props) {
|
|
26860
|
+
const props = __props;
|
|
26861
|
+
const collapseButton = ref(null);
|
|
26862
|
+
const disclosureButton = ref(null);
|
|
26863
|
+
const openCopy = ref(props.defaultOpen);
|
|
26864
|
+
watch(
|
|
26865
|
+
() => props.defaultOpen,
|
|
26866
|
+
(newValue, oldValue) => {
|
|
26867
|
+
var _a2;
|
|
26868
|
+
if (newValue !== oldValue && newValue !== openCopy.value) {
|
|
26869
|
+
(_a2 = collapseButton.value) == null ? void 0 : _a2.el.click();
|
|
26870
|
+
}
|
|
26871
|
+
}
|
|
26872
|
+
);
|
|
26859
26873
|
return (_ctx, _cache) => {
|
|
26860
|
-
return openBlock(), createBlock(unref(Disclosure), {
|
|
26874
|
+
return openBlock(), createBlock(unref(Disclosure), {
|
|
26875
|
+
ref_key: "disclosureButton",
|
|
26876
|
+
ref: disclosureButton,
|
|
26877
|
+
defaultOpen: _ctx.defaultOpen
|
|
26878
|
+
}, {
|
|
26861
26879
|
default: withCtx(({ open }) => [
|
|
26862
26880
|
createElementVNode("div", {
|
|
26863
26881
|
class: normalizeClass(["scalar-api-client__item", { "scalar-api-client__item--open": open }])
|
|
26864
26882
|
}, [
|
|
26865
|
-
createVNode(unref(DisclosureButton), {
|
|
26883
|
+
createVNode(unref(DisclosureButton), {
|
|
26884
|
+
ref_key: "collapseButton",
|
|
26885
|
+
ref: collapseButton,
|
|
26886
|
+
class: "scalar-api-client__toggle",
|
|
26887
|
+
onClick: _cache[0] || (_cache[0] = ($event) => openCopy.value = !openCopy.value)
|
|
26888
|
+
}, {
|
|
26866
26889
|
default: withCtx(() => [
|
|
26867
26890
|
_hoisted_1$h,
|
|
26868
26891
|
createElementVNode("span", _hoisted_2$b, toDisplayString(_ctx.title), 1),
|
|
@@ -26871,7 +26894,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
26871
26894
|
])) : createCommentVNode("", true)
|
|
26872
26895
|
]),
|
|
26873
26896
|
_: 2
|
|
26874
|
-
},
|
|
26897
|
+
}, 1536),
|
|
26875
26898
|
createVNode(unref(DisclosurePanel), null, {
|
|
26876
26899
|
default: withCtx(() => [
|
|
26877
26900
|
createElementVNode("div", _hoisted_4$5, [
|
|
@@ -26883,7 +26906,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
26883
26906
|
], 2)
|
|
26884
26907
|
]),
|
|
26885
26908
|
_: 3
|
|
26886
|
-
});
|
|
26909
|
+
}, 8, ["defaultOpen"]);
|
|
26887
26910
|
};
|
|
26888
26911
|
}
|
|
26889
26912
|
});
|
|
@@ -27487,7 +27510,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
27487
27510
|
(_a2 = activeRequest2.cookies) == null ? void 0 : _a2.push({ name: "", value: "", enabled: true });
|
|
27488
27511
|
}
|
|
27489
27512
|
return (_ctx, _cache) => {
|
|
27490
|
-
return openBlock(), createBlock(unref(_sfc_main$j), {
|
|
27513
|
+
return openBlock(), createBlock(unref(_sfc_main$j), {
|
|
27514
|
+
defaultOpen: unref(activeRequest2).cookies && unref(activeRequest2).cookies.length > 0,
|
|
27515
|
+
title: "Cookies"
|
|
27516
|
+
}, {
|
|
27491
27517
|
default: withCtx(() => [
|
|
27492
27518
|
!_ctx.cookies || _ctx.cookies.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
27493
27519
|
createElementVNode("button", {
|
|
@@ -27507,7 +27533,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
27507
27533
|
}, null, 8, ["items"]))
|
|
27508
27534
|
]),
|
|
27509
27535
|
_: 1
|
|
27510
|
-
});
|
|
27536
|
+
}, 8, ["defaultOpen"]);
|
|
27511
27537
|
};
|
|
27512
27538
|
}
|
|
27513
27539
|
});
|
|
@@ -27552,7 +27578,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27552
27578
|
(_a2 = activeRequest2.headers) == null ? void 0 : _a2.push({ name: "", value: "", enabled: true });
|
|
27553
27579
|
}
|
|
27554
27580
|
return (_ctx, _cache) => {
|
|
27555
|
-
return openBlock(), createBlock(unref(_sfc_main$j), {
|
|
27581
|
+
return openBlock(), createBlock(unref(_sfc_main$j), {
|
|
27582
|
+
defaultOpen: unref(activeRequest2).headers && unref(activeRequest2).headers.length > 0,
|
|
27583
|
+
title: "Headers"
|
|
27584
|
+
}, {
|
|
27556
27585
|
default: withCtx(() => [
|
|
27557
27586
|
!_ctx.headers || _ctx.headers.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
27558
27587
|
createElementVNode("button", {
|
|
@@ -27572,7 +27601,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27572
27601
|
}, null, 8, ["items"]))
|
|
27573
27602
|
]),
|
|
27574
27603
|
_: 1
|
|
27575
|
-
});
|
|
27604
|
+
}, 8, ["defaultOpen"]);
|
|
27576
27605
|
};
|
|
27577
27606
|
}
|
|
27578
27607
|
});
|
|
@@ -27617,7 +27646,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
27617
27646
|
(_a2 = activeRequest2.query) == null ? void 0 : _a2.push({ name: "", value: "", enabled: true });
|
|
27618
27647
|
}
|
|
27619
27648
|
return (_ctx, _cache) => {
|
|
27620
|
-
return openBlock(), createBlock(unref(_sfc_main$j), {
|
|
27649
|
+
return openBlock(), createBlock(unref(_sfc_main$j), {
|
|
27650
|
+
defaultOpen: unref(activeRequest2).query && unref(activeRequest2).query.length > 0,
|
|
27651
|
+
title: "Query Parameters"
|
|
27652
|
+
}, {
|
|
27621
27653
|
default: withCtx(() => [
|
|
27622
27654
|
!_ctx.queries || _ctx.queries.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
27623
27655
|
createElementVNode("button", {
|
|
@@ -27637,7 +27669,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
27637
27669
|
}, null, 8, ["items"]))
|
|
27638
27670
|
]),
|
|
27639
27671
|
_: 1
|
|
27640
|
-
});
|
|
27672
|
+
}, 8, ["defaultOpen"]);
|
|
27641
27673
|
};
|
|
27642
27674
|
}
|
|
27643
27675
|
});
|
|
@@ -27681,7 +27713,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
27681
27713
|
(_a2 = activeRequest2.variables) == null ? void 0 : _a2.push({ name: "", value: "", enabled: true });
|
|
27682
27714
|
}
|
|
27683
27715
|
return (_ctx, _cache) => {
|
|
27684
|
-
return openBlock(), createBlock(unref(_sfc_main$j), {
|
|
27716
|
+
return openBlock(), createBlock(unref(_sfc_main$j), {
|
|
27717
|
+
defaultOpen: unref(activeRequest2).variables && unref(activeRequest2).variables.length > 0,
|
|
27718
|
+
title: "Variables"
|
|
27719
|
+
}, {
|
|
27685
27720
|
default: withCtx(() => [
|
|
27686
27721
|
!_ctx.variables || _ctx.variables.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
27687
27722
|
createElementVNode("button", {
|
|
@@ -27701,7 +27736,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
27701
27736
|
}, null, 8, ["items"]))
|
|
27702
27737
|
]),
|
|
27703
27738
|
_: 1
|
|
27704
|
-
});
|
|
27739
|
+
}, 8, ["defaultOpen"]);
|
|
27705
27740
|
};
|
|
27706
27741
|
}
|
|
27707
27742
|
});
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"rest",
|
|
14
14
|
"testing"
|
|
15
15
|
],
|
|
16
|
-
"version": "0.
|
|
16
|
+
"version": "0.10.0",
|
|
17
17
|
"engines": {
|
|
18
18
|
"node": ">=18"
|
|
19
19
|
},
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
58
58
|
"vitest": "^0.34.4",
|
|
59
59
|
"vue-tsc": "^1.8.19",
|
|
60
|
-
"@scalar/
|
|
61
|
-
"@scalar/
|
|
60
|
+
"@scalar/api-client-proxy": "0.5.13",
|
|
61
|
+
"@scalar/echo-server": "0.5.8"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"vue": "^3.3.0"
|