@scalar/api-reference 0.1.1 → 0.1.3

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/components/ApiReference.vue.d.ts +8 -5
  3. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  4. package/dist/components/Content/MarkdownRenderer.vue.d.ts.map +1 -1
  5. package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -1
  6. package/dist/components/FlowIconButton.vue.d.ts +8 -8
  7. package/dist/components/FlowLoader.vue.d.ts +4 -4
  8. package/dist/components/SidebarElement.vue.d.ts +2 -2
  9. package/dist/index-ad012ba6.js +59729 -0
  10. package/dist/index.js +98910 -6
  11. package/dist/style.css +1499 -3773
  12. package/dist/types.d.ts +2 -2
  13. package/dist/types.d.ts.map +1 -1
  14. package/dist/variables.css +132 -0
  15. package/package.json +7 -7
  16. package/src/assets/css/variables.css +77 -9
  17. package/src/components/ApiClientModal.vue +4 -4
  18. package/src/components/ApiReference.vue +25 -61
  19. package/src/components/Card/Card.vue +2 -2
  20. package/src/components/Card/CardContent.vue +1 -1
  21. package/src/components/Card/CardFooter.vue +1 -1
  22. package/src/components/Content/Content.vue +2 -2
  23. package/src/components/Content/Introduction/BaseUrl.vue +1 -1
  24. package/src/components/Content/Introduction/Introduction.vue +4 -3
  25. package/src/components/Content/Introduction/LanguageSelector.vue +1 -1
  26. package/src/components/Content/MarkdownRenderer.vue +15 -7
  27. package/src/components/Content/ReferenceEndpoint/ExampleRequest.vue +11 -9
  28. package/src/components/Content/ReferenceEndpoint/ExampleResponses.vue +1 -1
  29. package/src/components/Content/ReferenceEndpoint/RequestBody.vue +4 -4
  30. package/src/components/FindAnythingButton.vue +2 -4
  31. package/src/components/FlowButton.vue +2 -2
  32. package/src/components/Sidebar.vue +1 -1
  33. package/src/types.ts +2 -2
  34. package/vite.config.ts +11 -1
  35. package/dist/index-14a526d0.js +0 -61730
  36. package/dist/index-ffa2c382.js +0 -34107
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - e6f4941: fix: basic default styles
8
+
9
+ ## 0.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 7cd41bc: fix: point main entry to dist folder
14
+ - Updated dependencies [7cd41bc]
15
+ - @scalar/api-client@0.1.2
16
+ - @scalar/swagger-editor@0.1.2
17
+ - @scalar/use-clipboard@0.1.2
18
+ - @scalar/use-codemirror@0.1.2
19
+ - @scalar/use-tooltip@0.1.2
20
+
3
21
  ## 0.1.1
4
22
 
5
23
  ### Patch Changes
@@ -10,11 +10,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
10
10
  };
11
11
  isEditable: {
12
12
  type: import("vue").PropType<boolean>;
13
- required: true;
13
+ default: boolean;
14
14
  };
15
15
  showSidebar: {
16
16
  type: import("vue").PropType<boolean>;
17
- required: true;
17
+ default: boolean;
18
18
  };
19
19
  footerBelowSidebar: {
20
20
  type: import("vue").PropType<boolean>;
@@ -31,16 +31,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
31
31
  };
32
32
  isEditable: {
33
33
  type: import("vue").PropType<boolean>;
34
- required: true;
34
+ default: boolean;
35
35
  };
36
36
  showSidebar: {
37
37
  type: import("vue").PropType<boolean>;
38
- required: true;
38
+ default: boolean;
39
39
  };
40
40
  footerBelowSidebar: {
41
41
  type: import("vue").PropType<boolean>;
42
42
  };
43
- }>>, {}, {}>, {
43
+ }>>, {
44
+ isEditable: boolean;
45
+ showSidebar: boolean;
46
+ }, {}>, {
44
47
  header?(_: {}): any;
45
48
  "mobile-header"?(_: {
46
49
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+SA,wBAA8G;AAI9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsTA,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":"MarkdownRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/MarkdownRenderer.vue.ts"],"names":[],"mappings":";;;;;;;;;;;AA4HA,wBAAkD"}
1
+ {"version":3,"file":"MarkdownRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/MarkdownRenderer.vue.ts"],"names":[],"mappings":";;;;;;;;;;;AA8HA,wBAAkD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExampleRequest.vue.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;AA8YvD,wBAAkD"}
1
+ {"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExampleRequest.vue.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;AAgZvD,wBAAkD"}
@@ -5,27 +5,27 @@ declare const _default: import("vue").DefineComponent<{
5
5
  type: import("vue").PropType<string>;
6
6
  required: true;
7
7
  };
8
- variant: {
9
- type: import("vue").PropType<ButtonVariant>;
10
- default: string;
11
- };
12
8
  icon: {
13
9
  type: import("vue").PropType<Icon>;
14
10
  required: true;
15
11
  };
12
+ variant: {
13
+ type: import("vue").PropType<ButtonVariant>;
14
+ default: string;
15
+ };
16
16
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  label: {
18
18
  type: import("vue").PropType<string>;
19
19
  required: true;
20
20
  };
21
- variant: {
22
- type: import("vue").PropType<ButtonVariant>;
23
- default: string;
24
- };
25
21
  icon: {
26
22
  type: import("vue").PropType<Icon>;
27
23
  required: true;
28
24
  };
25
+ variant: {
26
+ type: import("vue").PropType<ButtonVariant>;
27
+ default: string;
28
+ };
29
29
  }>>, {
30
30
  variant: ButtonVariant;
31
31
  }, {}>;
@@ -19,21 +19,21 @@ export declare function useLoaderState(): {
19
19
  clear: (time?: number) => Promise<unknown>;
20
20
  };
21
21
  declare const _default: import("vue").DefineComponent<{
22
+ loaderState: {
23
+ type: import("vue").PropType<LoadingState>;
24
+ };
22
25
  size: {
23
26
  type: import("vue").PropType<string>;
24
27
  default: string;
25
28
  };
29
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
30
  loaderState: {
27
31
  type: import("vue").PropType<LoadingState>;
28
32
  };
29
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
33
  size: {
31
34
  type: import("vue").PropType<string>;
32
35
  default: string;
33
36
  };
34
- loaderState: {
35
- type: import("vue").PropType<LoadingState>;
36
- };
37
37
  }>>, {
38
38
  size: string;
39
39
  }, {}>;
@@ -3,7 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  type: import("vue").PropType<{
4
4
  uid: string;
5
5
  title: string;
6
- type: "Link" | "Folder" | "Page";
6
+ type: "Folder" | "Link" | "Page";
7
7
  link?: string | undefined;
8
8
  icon?: {
9
9
  src: string;
@@ -28,7 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
28
28
  type: import("vue").PropType<{
29
29
  uid: string;
30
30
  title: string;
31
- type: "Link" | "Folder" | "Page";
31
+ type: "Folder" | "Link" | "Page";
32
32
  link?: string | undefined;
33
33
  icon?: {
34
34
  src: string;