@scalar/api-reference 1.2.7 → 1.3.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 +10 -0
- package/README.md +11 -3
- package/dist/browser/standalone.js +18 -127785
- package/dist/components/ApiReference.vue.d.ts +8 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceBase.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/RequestBodyProperties.vue.d.ts.map +1 -1
- package/dist/{index-53880029.js → index-e8f29118.js} +2 -2
- package/dist/{index-f02991b5.js → index-efc6f45c.js} +2134 -2091
- package/dist/index.js +2 -2
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @scalar/api-reference
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 37b974c: feat: expose footer slot on standalone component
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- b77d087: feat: add a customCss property to the configuration object
|
|
12
|
+
|
|
3
13
|
## 1.2.7
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -107,12 +107,20 @@ Whether the sidebar should be shown.
|
|
|
107
107
|
<ApiReference :configuration="{ showSidebar: true} />
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
### customCss?: string
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
You can pass custom CSS directly to the component. This is helpful for the integrations for Fastify, Express, Hono and others where you it’s easier to add CSS to the configuration.
|
|
113
|
+
|
|
114
|
+
In Vue or React you’d probably use other ways to add custom CSS.
|
|
113
115
|
|
|
114
116
|
```vue
|
|
115
|
-
<
|
|
117
|
+
<script setup>
|
|
118
|
+
const customCss = `* { font-family: "Comic Sans MS", cursive, sans-serif; }`
|
|
119
|
+
</script>
|
|
120
|
+
|
|
121
|
+
<template>
|
|
122
|
+
<ApiReference :configuration="{ customCss }" />
|
|
123
|
+
</template>
|
|
116
124
|
```
|
|
117
125
|
|
|
118
126
|
#### searchHotKey?: string
|