@scalar/api-reference 0.4.0 → 0.5.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/README.md +44 -0
- package/dist/components/ApiReference.vue.d.ts +0 -24
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/index.js +24067 -24011
- package/dist/types.d.ts +0 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +31 -11
- package/src/components/ApiReference.vue +0 -4
- package/src/components/Content/ReferenceEndpoint/ExampleRequest.vue +4 -3
- package/src/components/Content/ReferenceEndpoint/ExampleResponses.vue +2 -1
- package/src/types.ts +0 -4
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Scalar API Reference
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
[](https://discord.gg/mw6FQRPh)
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @scalar/api-reference
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```vue
|
|
17
|
+
<script setup>
|
|
18
|
+
import { ApiReference } from '@scalar/api-reference'
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<ApiReference />
|
|
23
|
+
</template>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Props
|
|
27
|
+
|
|
28
|
+
### isEditable?: boolean
|
|
29
|
+
|
|
30
|
+
```vue
|
|
31
|
+
<ApiReference :isEditable="true" />
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### spec?: string
|
|
35
|
+
|
|
36
|
+
```vue
|
|
37
|
+
<ApiReference spec="{ … }" />
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### specUrl?: string
|
|
41
|
+
|
|
42
|
+
```vue
|
|
43
|
+
<ApiReference specUrl="/swagger.json" />
|
|
44
|
+
```
|
|
@@ -4,18 +4,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
4
4
|
spec: {
|
|
5
5
|
type: import("vue").PropType<string>;
|
|
6
6
|
};
|
|
7
|
-
documentName: {
|
|
8
|
-
type: import("vue").PropType<string>;
|
|
9
|
-
};
|
|
10
|
-
token: {
|
|
11
|
-
type: import("vue").PropType<string>;
|
|
12
|
-
};
|
|
13
|
-
username: {
|
|
14
|
-
type: import("vue").PropType<string>;
|
|
15
|
-
};
|
|
16
|
-
hocusPocusUrl: {
|
|
17
|
-
type: import("vue").PropType<string>;
|
|
18
|
-
};
|
|
19
7
|
isEditable: {
|
|
20
8
|
type: import("vue").PropType<boolean>;
|
|
21
9
|
default: boolean;
|
|
@@ -34,18 +22,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
22
|
spec: {
|
|
35
23
|
type: import("vue").PropType<string>;
|
|
36
24
|
};
|
|
37
|
-
documentName: {
|
|
38
|
-
type: import("vue").PropType<string>;
|
|
39
|
-
};
|
|
40
|
-
token: {
|
|
41
|
-
type: import("vue").PropType<string>;
|
|
42
|
-
};
|
|
43
|
-
username: {
|
|
44
|
-
type: import("vue").PropType<string>;
|
|
45
|
-
};
|
|
46
|
-
hocusPocusUrl: {
|
|
47
|
-
type: import("vue").PropType<string>;
|
|
48
|
-
};
|
|
49
25
|
isEditable: {
|
|
50
26
|
type: import("vue").PropType<boolean>;
|
|
51
27
|
default: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue.ts"],"names":[],"mappings":"AAGA,OAAO,qCAAqC,CAAA;AAC5C,OAAO,iCAAiC,CAAA
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue.ts"],"names":[],"mappings":"AAGA,OAAO,qCAAqC,CAAA;AAC5C,OAAO,iCAAiC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkYxC,wBAA8G;AAU9G,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":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExampleResponses.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExampleResponses.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;AA8W1D,wBAAkD"}
|