@scalar/api-reference 1.14.9 → 1.15.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 +23 -0
- package/dist/browser/standalone.js +9 -9
- package/dist/components/ApiReferenceLayout.vue.d.ts +0 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/EndpointsOverview.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/CustomRequestExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/{PathResponses/SelectExample.vue.d.ts → ExamplePicker.vue.d.ts} +7 -3
- package/dist/components/Content/ReferenceEndpoint/ExamplePicker.vue.d.ts.map +1 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/PathResponses/ExampleResponse.vue.d.ts +0 -2
- package/dist/components/Content/ReferenceEndpoint/PathResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/PathResponses/PathResponses.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/ReferenceEndpointAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/TryRequestButton.vue.d.ts.map +1 -1
- package/dist/components/SearchModal.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/helpers/getRequestBodyFromOperation.d.ts +1 -1
- package/dist/helpers/getRequestBodyFromOperation.d.ts.map +1 -1
- package/dist/helpers/getRequestFromOperation.d.ts +1 -1
- package/dist/helpers/getRequestFromOperation.d.ts.map +1 -1
- package/dist/hooks/useParser.d.ts +2 -0
- package/dist/hooks/useParser.d.ts.map +1 -1
- package/dist/index-c6fed79c.js +245 -0
- package/dist/{index-d5deb7c3.js → index-d470a805.js} +28468 -28376
- package/dist/index.js +2 -2
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/components/Content/ReferenceEndpoint/PathResponses/SelectExample.vue.d.ts.map +0 -1
- package/dist/index-e535851f.js +0 -249
|
@@ -167,7 +167,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
167
167
|
$slots: {
|
|
168
168
|
"tab-items"?(_: {}): any;
|
|
169
169
|
"editor-input"?(_: {
|
|
170
|
-
ref: string;
|
|
171
170
|
value: string | undefined;
|
|
172
171
|
contentUpdate: (value: string) => void;
|
|
173
172
|
}): any;
|
|
@@ -344,7 +343,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
344
343
|
$slots: {
|
|
345
344
|
"tab-items"?(_: {}): any;
|
|
346
345
|
"editor-input"?(_: {
|
|
347
|
-
ref: string;
|
|
348
346
|
value: string | undefined;
|
|
349
347
|
contentUpdate: (value: string) => void;
|
|
350
348
|
}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAK7C,OAAO,KAAK,EACV,sBAAsB,EAEtB,kBAAkB,EAClB,IAAI,EACL,MAAM,UAAU,CAAA
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAK7C,OAAO,KAAK,EACV,sBAAsB,EAEtB,kBAAkB,EAClB,IAAI,EACL,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAghBjB,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,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":"EndpointsOverview.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/EndpointsOverview.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EndpointsOverview.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/EndpointsOverview.vue.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,aAAa,CAAA;;SAiTV,GAAG;;SAAH,GAAG;;AADrD,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":"CustomRequestExamples.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/CustomRequestExamples.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomRequestExamples.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/CustomRequestExamples.vue.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;AAiVhF,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,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
examples: Record<string, any>;
|
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"update:modelValue": (v: string) => void;
|
|
5
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
6
|
examples: Record<string, any>;
|
|
5
|
-
}
|
|
7
|
+
}>>> & {
|
|
8
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
9
|
+
}, {}, {}>;
|
|
6
10
|
export default _default;
|
|
7
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
12
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -13,4 +17,4 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
13
17
|
required: true;
|
|
14
18
|
};
|
|
15
19
|
};
|
|
16
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=ExamplePicker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExamplePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExamplePicker.vue.ts"],"names":[],"mappings":";cAmIY,OAAO,MAAM,EAAE,GAAG,CAAC;;;;cAAnB,OAAO,MAAM,EAAE,GAAG,CAAC;;;;AAF/B,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":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExampleRequest.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExampleRequest.vue.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;AAqd1D,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,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
response: undefined | {
|
|
3
|
-
examples?: Record<string, any>;
|
|
4
3
|
example?: any;
|
|
5
4
|
schema?: any;
|
|
6
5
|
};
|
|
7
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
7
|
response: undefined | {
|
|
9
|
-
examples?: Record<string, any>;
|
|
10
8
|
example?: any;
|
|
11
9
|
schema?: any;
|
|
12
10
|
};
|
package/dist/components/Content/ReferenceEndpoint/PathResponses/ExampleResponse.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/ReferenceEndpoint/PathResponses/ExampleResponse.vue.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/ReferenceEndpoint/PathResponses/ExampleResponse.vue.ts"],"names":[],"mappings":";cAsVM,SAAS,GACT;QACE,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,MAAM,CAAC,EAAE,GAAG,CAAA;KACb;;cAJD,SAAS,GACT;QACE,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,MAAM,CAAC,EAAE,GAAG,CAAA;KACb;;AAPP,wBAaG;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":"PathResponses.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/ReferenceEndpoint/PathResponses/PathResponses.vue.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;
|
|
1
|
+
{"version":3,"file":"PathResponses.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/ReferenceEndpoint/PathResponses/PathResponses.vue.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;eA4aL,oBAAoB;;eAApB,oBAAoB;;AAD5E,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":"ReferenceEndpointAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ReferenceEndpointAccordion.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReferenceEndpointAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ReferenceEndpointAccordion.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;eA6VlD,oBAAoB;SAC1B,GAAG;;eADG,oBAAoB;SAC1B,GAAG;;AAHV,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":"TryRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/TryRequestButton.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TryRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/TryRequestButton.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;eAmG7C,oBAAoB;;eAApB,oBAAoB;;AAFjC,wBAQG;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":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchModal.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchModal.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAQ9D,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,UAAU,CAAA;;gBAueD,IAAI;gBAAc,UAAU;;gBAA5B,IAAI;gBAAc,UAAU;;AADrF,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":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue.ts"],"names":[],"mappings":";;;;;;;;;AA6GA,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,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":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../src/components/SidebarElement.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../src/components/SidebarElement.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgTA,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,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { ContentType, TransformedOperation } from '../types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Get the request body from the operation.
|
|
4
4
|
*/
|
|
5
|
-
export declare function getRequestBodyFromOperation(operation: TransformedOperation): {
|
|
5
|
+
export declare function getRequestBodyFromOperation(operation: TransformedOperation, selectedExampleKey?: string | number): {
|
|
6
6
|
postData: {
|
|
7
7
|
mimeType: string;
|
|
8
8
|
text: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRequestBodyFromOperation.d.ts","sourceRoot":"","sources":["../../src/helpers/getRequestBodyFromOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAQjE;;GAEG;AACH,wBAAgB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"getRequestBodyFromOperation.d.ts","sourceRoot":"","sources":["../../src/helpers/getRequestBodyFromOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAQjE;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,oBAAoB,EAC/B,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqNrC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HarRequestWithPath, TransformedOperation } from '../types';
|
|
2
2
|
export declare const getRequestFromOperation: (operation: TransformedOperation, options?: {
|
|
3
3
|
replaceVariables?: boolean;
|
|
4
|
-
}) => Partial<HarRequestWithPath>;
|
|
4
|
+
}, selectedExampleKey?: string | number) => Partial<HarRequestWithPath>;
|
|
5
5
|
//# sourceMappingURL=getRequestFromOperation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRequestFromOperation.d.ts","sourceRoot":"","sources":["../../src/helpers/getRequestFromOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAGlB,oBAAoB,EACrB,MAAM,UAAU,CAAA;AAGjB,eAAO,MAAM,uBAAuB,cACvB,oBAAoB,YACrB;IACR,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,
|
|
1
|
+
{"version":3,"file":"getRequestFromOperation.d.ts","sourceRoot":"","sources":["../../src/helpers/getRequestFromOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAGlB,oBAAoB,EACrB,MAAM,UAAU,CAAA;AAGjB,eAAO,MAAM,uBAAuB,cACvB,oBAAoB,YACrB;IACR,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,uBACoB,MAAM,GAAG,MAAM,KACnC,QAAQ,kBAAkB,CA8B5B,CAAA"}
|
|
@@ -44,6 +44,8 @@ export declare function useParser({ input, }: {
|
|
|
44
44
|
responses?: Record<string, import("../types").Response> | undefined;
|
|
45
45
|
security?: import("openapi-types").OpenAPIV3.SecurityRequirementObject[] | undefined;
|
|
46
46
|
requestBody?: {
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
required?: boolean | undefined;
|
|
47
49
|
content?: {
|
|
48
50
|
"application/json"?: {
|
|
49
51
|
schema?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useParser.d.ts","sourceRoot":"","sources":["../../src/hooks/useParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAA+B,MAAM,KAAK,CAAA;AAE7E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AA4BpC;;GAEG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,GACN,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;CACnD
|
|
1
|
+
{"version":3,"file":"useParser.d.ts","sourceRoot":"","sources":["../../src/hooks/useParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAA+B,MAAM,KAAK,CAAA;AAE7E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AA4BpC;;GAEG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,GACN,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;CACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA6CwC,IAAI;;EAS5C"}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { defineComponent as E, ref as C, watch as N, openBlock as m, createElementBlock as v, Fragment as k, createElementVNode as U, unref as a, createTextVNode as p, createCommentVNode as w, renderSlot as S, createVNode as n, withCtx as u, toDisplayString as R, computed as D, isRef as B, normalizeClass as L, createBlock as T } from "vue";
|
|
2
|
+
import { o as j, H as F, E as H, U as O, u as I, f as A, _ as $, a as J, m as z, R as Q } from "./index-d470a805.js";
|
|
3
|
+
import { b as Be } from "./index-d470a805.js";
|
|
4
|
+
import { useMediaQuery as W, useFileDialog as Y } from "@vueuse/core";
|
|
5
|
+
import "@headlessui/vue";
|
|
6
|
+
import "axios";
|
|
7
|
+
import "github-slugger";
|
|
8
|
+
import "@vcarl/remark-headings";
|
|
9
|
+
import "remark-parse";
|
|
10
|
+
import "remark-stringify";
|
|
11
|
+
import "unified";
|
|
12
|
+
import "js-yaml";
|
|
13
|
+
import "httpsnippet-lite";
|
|
14
|
+
import "unhead";
|
|
15
|
+
import "rehype-external-links";
|
|
16
|
+
import "rehype-format";
|
|
17
|
+
import "rehype-highlight";
|
|
18
|
+
import "rehype-raw";
|
|
19
|
+
import "rehype-sanitize";
|
|
20
|
+
import "rehype-stringify";
|
|
21
|
+
import "remark-gfm";
|
|
22
|
+
import "remark-rehype";
|
|
23
|
+
import "@floating-ui/vue";
|
|
24
|
+
import "fuse.js";
|
|
25
|
+
const q = (l) => {
|
|
26
|
+
if (typeof l != "string")
|
|
27
|
+
return !1;
|
|
28
|
+
try {
|
|
29
|
+
JSON.parse(l);
|
|
30
|
+
} catch {
|
|
31
|
+
return !1;
|
|
32
|
+
}
|
|
33
|
+
return !0;
|
|
34
|
+
}, G = { class: "swagger-editor-header" }, K = { class: "swagger-editor-title" }, P = { class: "swagger-editor-actions" }, X = { key: 0 }, Z = { key: 0 }, ee = { class: "swagger-editor-modal-layout" }, te = /* @__PURE__ */ E({
|
|
35
|
+
__name: "SwaggerEditorHeader",
|
|
36
|
+
props: {
|
|
37
|
+
proxyUrl: {}
|
|
38
|
+
},
|
|
39
|
+
emits: ["import"],
|
|
40
|
+
setup(l, { expose: _, emit: c }) {
|
|
41
|
+
const o = l, t = W("(max-width: 1000px)"), { files: r, open: g, reset: x } = Y({
|
|
42
|
+
multiple: !1,
|
|
43
|
+
accept: ".json,.yaml,.yml"
|
|
44
|
+
}), e = j(), f = C(null);
|
|
45
|
+
_({
|
|
46
|
+
importUrlModal: e,
|
|
47
|
+
openFileDialog: g
|
|
48
|
+
});
|
|
49
|
+
const d = C(""), y = () => {
|
|
50
|
+
f.value = "", A(d.value, o.proxyUrl).then(async (i) => {
|
|
51
|
+
c("import", i), e.hide();
|
|
52
|
+
}).catch((i) => {
|
|
53
|
+
console.error("[importUrl]", i), f.value = i;
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
return N(r, () => {
|
|
57
|
+
var i;
|
|
58
|
+
if ((i = r.value) != null && i.length) {
|
|
59
|
+
const s = r.value[0], h = new FileReader();
|
|
60
|
+
h.onload = (V) => {
|
|
61
|
+
var M;
|
|
62
|
+
const b = (M = V.target) == null ? void 0 : M.result;
|
|
63
|
+
typeof b == "string" && (c("import", b), x());
|
|
64
|
+
}, h.readAsText(s);
|
|
65
|
+
}
|
|
66
|
+
}), (i, s) => (m(), v(k, null, [
|
|
67
|
+
U("div", G, [
|
|
68
|
+
U("div", K, [
|
|
69
|
+
a(t) ? w("", !0) : (m(), v(k, { key: 0 }, [
|
|
70
|
+
p("Swagger ")
|
|
71
|
+
], 64)),
|
|
72
|
+
p("Editor ")
|
|
73
|
+
]),
|
|
74
|
+
S(i.$slots, "tab-items", {}, void 0, !0),
|
|
75
|
+
U("div", P, [
|
|
76
|
+
n(F, {
|
|
77
|
+
onClick: s[0] || (s[0] = () => a(g)())
|
|
78
|
+
}, {
|
|
79
|
+
default: u(() => [
|
|
80
|
+
p(" Upload"),
|
|
81
|
+
a(t) ? w("", !0) : (m(), v("span", X, " File"))
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}),
|
|
85
|
+
n(F, {
|
|
86
|
+
onClick: s[1] || (s[1] = (h) => a(e).show())
|
|
87
|
+
}, {
|
|
88
|
+
default: u(() => [
|
|
89
|
+
a(t) ? w("", !0) : (m(), v("span", Z, "Import ")),
|
|
90
|
+
p("URL ")
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})
|
|
94
|
+
])
|
|
95
|
+
]),
|
|
96
|
+
n(a(H), {
|
|
97
|
+
state: a(e),
|
|
98
|
+
title: "Import Swagger from URL"
|
|
99
|
+
}, {
|
|
100
|
+
default: u(() => [
|
|
101
|
+
U("div", ee, [
|
|
102
|
+
n(a(O), {
|
|
103
|
+
modelValue: d.value,
|
|
104
|
+
"onUpdate:modelValue": s[2] || (s[2] = (h) => d.value = h),
|
|
105
|
+
autofocus: "",
|
|
106
|
+
class: "swagger-editor-modal-layout-input",
|
|
107
|
+
label: "URL",
|
|
108
|
+
labelShadowColor: "var(--theme-background-1, var(--default-theme-background-1))",
|
|
109
|
+
placeholder: "https://scalar.com/swagger.json"
|
|
110
|
+
}, null, 8, ["modelValue"]),
|
|
111
|
+
p(" " + R(f.value) + " ", 1),
|
|
112
|
+
n(a(I), {
|
|
113
|
+
variant: "outlined",
|
|
114
|
+
onClick: s[3] || (s[3] = (h) => a(e).hide())
|
|
115
|
+
}, {
|
|
116
|
+
default: u(() => [
|
|
117
|
+
p(" Cancel ")
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}),
|
|
121
|
+
n(a(I), { onClick: y }, {
|
|
122
|
+
default: u(() => [
|
|
123
|
+
p("Import")
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
})
|
|
127
|
+
])
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["state"])
|
|
131
|
+
], 64));
|
|
132
|
+
}
|
|
133
|
+
}), re = /* @__PURE__ */ $(te, [["__scopeId", "data-v-17d421af"]]), oe = { class: "swagger-editor-input" }, ae = /* @__PURE__ */ E({
|
|
134
|
+
__name: "SwaggerEditorInput",
|
|
135
|
+
props: {
|
|
136
|
+
value: {}
|
|
137
|
+
},
|
|
138
|
+
emits: ["contentUpdate"],
|
|
139
|
+
setup(l, { expose: _ }) {
|
|
140
|
+
_({
|
|
141
|
+
setCodeMirrorContent: (t) => {
|
|
142
|
+
var r;
|
|
143
|
+
(r = c.value) == null || r.setCodeMirrorContent(t);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
const c = C(null);
|
|
147
|
+
function o(t) {
|
|
148
|
+
return q(t) ? ["json"] : ["yaml"];
|
|
149
|
+
}
|
|
150
|
+
return (t, r) => (m(), v("div", oe, [
|
|
151
|
+
n(a(J), {
|
|
152
|
+
ref_key: "codeMirrorRef",
|
|
153
|
+
ref: c,
|
|
154
|
+
content: t.value,
|
|
155
|
+
languages: o(t.value),
|
|
156
|
+
lineNumbers: "",
|
|
157
|
+
onChange: r[0] || (r[0] = (g) => t.$emit("contentUpdate", g))
|
|
158
|
+
}, null, 8, ["content", "languages"])
|
|
159
|
+
]));
|
|
160
|
+
}
|
|
161
|
+
}), ne = {}, se = { class: "swagger-editor-notification swagger-editor-notification--error" };
|
|
162
|
+
function le(l, _) {
|
|
163
|
+
return m(), v("div", se, [
|
|
164
|
+
S(l.$slots, "default")
|
|
165
|
+
]);
|
|
166
|
+
}
|
|
167
|
+
const ie = /* @__PURE__ */ $(ne, [["render", le]]), de = /* @__PURE__ */ E({
|
|
168
|
+
__name: "SwaggerEditor",
|
|
169
|
+
props: {
|
|
170
|
+
value: {},
|
|
171
|
+
theme: {},
|
|
172
|
+
proxyUrl: {},
|
|
173
|
+
error: {}
|
|
174
|
+
},
|
|
175
|
+
emits: ["contentUpdate", "import", "changeTheme"],
|
|
176
|
+
setup(l, { expose: _, emit: c }) {
|
|
177
|
+
const o = l, t = C(null), r = (e) => {
|
|
178
|
+
c("contentUpdate", e);
|
|
179
|
+
}, g = D(() => {
|
|
180
|
+
if (o.error === void 0 || o.error === null || o.error === "")
|
|
181
|
+
return "";
|
|
182
|
+
const e = B(o.error) ? o.error.value : o.error;
|
|
183
|
+
return e.startsWith("YAMLException:") ? e.split(`
|
|
184
|
+
`)[0] : e;
|
|
185
|
+
});
|
|
186
|
+
return N(
|
|
187
|
+
() => o.value,
|
|
188
|
+
async () => {
|
|
189
|
+
o.value && r(o.value);
|
|
190
|
+
},
|
|
191
|
+
{ immediate: !0 }
|
|
192
|
+
), _({
|
|
193
|
+
handleOpenSwaggerEditor: (e) => {
|
|
194
|
+
var f, d, y;
|
|
195
|
+
e === "importUrl" ? (d = (f = t == null ? void 0 : t.value) == null ? void 0 : f.importUrlModal) == null || d.show() : e === "uploadFile" && ((y = t == null ? void 0 : t.value) == null || y.openFileDialog());
|
|
196
|
+
}
|
|
197
|
+
}), (e, f) => (m(), v(k, null, [
|
|
198
|
+
n(a(z), { id: e.theme }, null, 8, ["id"]),
|
|
199
|
+
n(Q, null, {
|
|
200
|
+
default: u(({ styles: d }) => [
|
|
201
|
+
U("div", {
|
|
202
|
+
class: L(["swagger-editor", d])
|
|
203
|
+
}, [
|
|
204
|
+
n(re, {
|
|
205
|
+
ref_key: "swaggerEditorHeaderRef",
|
|
206
|
+
ref: t,
|
|
207
|
+
proxyUrl: e.proxyUrl,
|
|
208
|
+
onImport: r
|
|
209
|
+
}, {
|
|
210
|
+
"tab-items": u(() => [
|
|
211
|
+
S(e.$slots, "tab-items", {}, void 0, !0)
|
|
212
|
+
]),
|
|
213
|
+
_: 3
|
|
214
|
+
}, 8, ["proxyUrl"]),
|
|
215
|
+
g.value ? (m(), T(ie, { key: 0 }, {
|
|
216
|
+
default: u(() => [
|
|
217
|
+
p(R(g.value), 1)
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
})) : w("", !0),
|
|
221
|
+
S(e.$slots, "editor-input", {
|
|
222
|
+
value: e.value,
|
|
223
|
+
onContentUpdate: r
|
|
224
|
+
}, () => [
|
|
225
|
+
n(ae, {
|
|
226
|
+
value: e.value,
|
|
227
|
+
onContentUpdate: r
|
|
228
|
+
}, null, 8, ["value"])
|
|
229
|
+
], !0)
|
|
230
|
+
], 2)
|
|
231
|
+
]),
|
|
232
|
+
_: 3
|
|
233
|
+
})
|
|
234
|
+
], 64));
|
|
235
|
+
}
|
|
236
|
+
}), Re = /* @__PURE__ */ $(de, [["__scopeId", "data-v-68ed8e3f"]]);
|
|
237
|
+
export {
|
|
238
|
+
Re as CodeEditor,
|
|
239
|
+
F as HeaderTabButton,
|
|
240
|
+
Q as ResetStyles,
|
|
241
|
+
Re as SwaggerEditor,
|
|
242
|
+
A as fetchSpecFromUrl,
|
|
243
|
+
q as isJsonString,
|
|
244
|
+
Be as useDarkModeState
|
|
245
|
+
};
|