@scalar/api-reference 1.51.0 → 1.52.1
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 +211 -209
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue.js.map +1 -1
- package/dist/components/ApiReference.vue.script.js +1 -1
- package/dist/components/ApiReference.vue.script.js.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.script.js.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.script.js +22 -13
- package/dist/features/Operation/components/ParameterListItem.vue.script.js.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.script.js +31 -21
- package/dist/features/Operation/components/RequestBody.vue.script.js.map +1 -1
- package/dist/features/Search/helpers/create-fuse-instance.d.ts.map +1 -1
- package/dist/features/Search/helpers/create-fuse-instance.js +4 -0
- package/dist/features/Search/helpers/create-fuse-instance.js.map +1 -1
- package/dist/features/Search/helpers/create-search-index.js +4 -3
- package/dist/features/Search/helpers/create-search-index.js.map +1 -1
- package/dist/features/Search/types.d.ts +2 -2
- package/dist/features/Search/types.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.script.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.script.js.map +1 -1
- package/dist/helpers/map-config-plugins.d.ts +3 -2
- package/dist/helpers/map-config-plugins.d.ts.map +1 -1
- package/dist/helpers/map-config-plugins.js +13 -9
- package/dist/helpers/map-config-plugins.js.map +1 -1
- package/dist/helpers/openapi.d.ts +6 -14
- package/dist/helpers/openapi.d.ts.map +1 -1
- package/dist/helpers/openapi.js +24 -29
- package/dist/helpers/openapi.js.map +1 -1
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.js +12 -12
- package/dist/standalone/lib/html-api.js.map +1 -1
- package/dist/style.css +210 -140
- package/package.json +11 -16
- package/dist/ssr.d.ts +0 -22
- package/dist/ssr.d.ts.map +0 -1
- package/dist/ssr.js +0 -7
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.
|
|
23
|
+
"version": "1.52.1",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=22"
|
|
26
26
|
},
|
|
@@ -64,11 +64,6 @@
|
|
|
64
64
|
"types": "./dist/helpers/index.d.ts",
|
|
65
65
|
"default": "./dist/helpers/index.js"
|
|
66
66
|
},
|
|
67
|
-
"./ssr": {
|
|
68
|
-
"import": "./dist/ssr.js",
|
|
69
|
-
"types": "./dist/ssr.d.ts",
|
|
70
|
-
"default": "./dist/ssr.js"
|
|
71
|
-
},
|
|
72
67
|
"./style.css": "./dist/style.css",
|
|
73
68
|
"./browser/standalone.js": "./dist/browser/standalone.js"
|
|
74
69
|
},
|
|
@@ -91,20 +86,20 @@
|
|
|
91
86
|
"nanoid": "^5.1.6",
|
|
92
87
|
"vue": "^3.5.30",
|
|
93
88
|
"yaml": "^2.8.0",
|
|
94
|
-
"@scalar/agent-chat": "0.10.1",
|
|
95
|
-
"@scalar/api-client": "2.41.0",
|
|
96
89
|
"@scalar/code-highlight": "0.3.2",
|
|
90
|
+
"@scalar/agent-chat": "0.10.3",
|
|
91
|
+
"@scalar/api-client": "2.43.0",
|
|
97
92
|
"@scalar/helpers": "0.4.3",
|
|
98
|
-
"@scalar/
|
|
93
|
+
"@scalar/components": "0.21.4",
|
|
94
|
+
"@scalar/oas-utils": "0.11.1",
|
|
99
95
|
"@scalar/icons": "0.7.2",
|
|
100
|
-
"@scalar/sidebar": "0.
|
|
101
|
-
"@scalar/
|
|
102
|
-
"@scalar/
|
|
103
|
-
"@scalar/
|
|
96
|
+
"@scalar/sidebar": "0.9.0",
|
|
97
|
+
"@scalar/snippetz": "0.8.0",
|
|
98
|
+
"@scalar/themes": "0.15.3",
|
|
99
|
+
"@scalar/types": "0.8.0",
|
|
104
100
|
"@scalar/use-hooks": "0.4.2",
|
|
105
|
-
"@scalar/workspace-store": "0.43.1",
|
|
106
101
|
"@scalar/use-toasts": "0.10.1",
|
|
107
|
-
"@scalar/
|
|
102
|
+
"@scalar/workspace-store": "0.45.0"
|
|
108
103
|
},
|
|
109
104
|
"devDependencies": {
|
|
110
105
|
"@hono/node-server": "^1.19.10",
|
|
@@ -122,7 +117,7 @@
|
|
|
122
117
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
123
118
|
"vitest": "4.1.0",
|
|
124
119
|
"@scalar/galaxy": "0.6.2",
|
|
125
|
-
"@scalar/core": "0.
|
|
120
|
+
"@scalar/core": "0.5.0"
|
|
126
121
|
},
|
|
127
122
|
"scripts": {
|
|
128
123
|
"build": "pnpm build:default && pnpm build:standalone && vue-tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
package/dist/ssr.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SSR entry point for @scalar/api-reference.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the same components as the main entry. The ApiReference component
|
|
5
|
-
* is SSR-compatible and works with createSSRApp and renderToString from
|
|
6
|
-
* @vue/server-renderer.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* import { createSSRApp } from 'vue'
|
|
11
|
-
* import { renderToString } from '@vue/server-renderer'
|
|
12
|
-
* import { ApiReference } from '@scalar/api-reference/ssr'
|
|
13
|
-
*
|
|
14
|
-
* const app = createSSRApp({
|
|
15
|
-
* render: () => h(ApiReference, { configuration: { url: '/openapi.json' } }),
|
|
16
|
-
* })
|
|
17
|
-
* const html = await renderToString(app)
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export type { ApiReferenceConfiguration, ReferenceProps } from './index.js';
|
|
21
|
-
export { ApiReference, GettingStarted, SearchButton, SearchModal, createApiReference, createEmptySpecification, } from './index.js';
|
|
22
|
-
//# sourceMappingURL=ssr.d.ts.map
|
package/dist/ssr.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssr.d.ts","sourceRoot":"","sources":["../src/ssr.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,YAAY,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxE,OAAO,EACL,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,SAAS,CAAA"}
|
package/dist/ssr.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { createEmptySpecification } from "./helpers/openapi.js";
|
|
2
|
-
import SearchModal_default from "./features/Search/components/SearchModal.vue.js";
|
|
3
|
-
import SearchButton_default from "./features/Search/components/SearchButton.vue.js";
|
|
4
|
-
import ApiReference_default from "./components/ApiReference.vue.js";
|
|
5
|
-
import GettingStarted_default from "./components/GettingStarted.vue.js";
|
|
6
|
-
import { createApiReference } from "./standalone/lib/html-api.js";
|
|
7
|
-
export { ApiReference_default as ApiReference, GettingStarted_default as GettingStarted, SearchButton_default as SearchButton, SearchModal_default as SearchModal, createApiReference, createEmptySpecification };
|