@scalar/api-reference 1.40.0 → 1.40.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 +32 -0
- package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +10 -8
- package/dist/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
- package/dist/blocks/scalar-client-selector-block/index.d.ts.map +1 -1
- package/dist/blocks/scalar-info-block/index.d.ts.map +1 -1
- package/dist/blocks/scalar-server-selector-block/index.d.ts.map +1 -1
- package/dist/browser/standalone.js +16970 -16942
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +5 -1
- package/dist/components/Content/Models/Model.vue.d.ts +1 -1
- package/dist/components/Content/Models/Model.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +1 -2
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +1 -2
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts +1 -2
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/features/specification-extension/index.d.ts +1 -1
- package/dist/features/specification-extension/index.d.ts.map +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.js +9 -9
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +9 -9
- package/dist/features/x-badges/XBadges.vue.d.ts +1 -1
- package/dist/features/x-badges/XBadges.vue.d.ts.map +1 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/map-config-to-client-store.d.ts +2 -3
- package/dist/helpers/map-config-to-client-store.d.ts.map +1 -1
- package/dist/style.css +1152 -986
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @scalar/api-reference
|
|
2
2
|
|
|
3
|
+
## 1.40.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#7465](https://github.com/scalar/scalar/pull/7465) [`9342adc`](https://github.com/scalar/scalar/commit/9342adcd76e26a8e5eff75c1a2abee2c207b1487) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix: ensure `@scalar/workspace-store` consumers rely only on public exports
|
|
8
|
+
|
|
9
|
+
- [#7460](https://github.com/scalar/scalar/pull/7460) [`62b5210`](https://github.com/scalar/scalar/commit/62b521092bafeb8e83e79222e13378c4a19defc8) Thanks [@hwkr](https://github.com/hwkr)! - feat(components): update and polish ScalarLoading
|
|
10
|
+
|
|
11
|
+
- [#7459](https://github.com/scalar/scalar/pull/7459) [`425d8e1`](https://github.com/scalar/scalar/commit/425d8e1aaac26a6ec9a781431e1076ee4db3d027) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix: `onDocumentSelect` is not firing
|
|
12
|
+
|
|
13
|
+
- [#7414](https://github.com/scalar/scalar/pull/7414) [`294f9fc`](https://github.com/scalar/scalar/commit/294f9fc6cfd43cdab110deb1c851883509bc2b84) Thanks [@hanspagel](https://github.com/hanspagel)! - feat: show tags without operations
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`5aa0380`](https://github.com/scalar/scalar/commit/5aa0380adfcd173e58659fb5dd57df363d985583), [`61c980c`](https://github.com/scalar/scalar/commit/61c980cebef219685a05f3a4cb1e379984922cd4), [`781f264`](https://github.com/scalar/scalar/commit/781f2648bc758a251435c3a1e2b126a37f20e44f), [`1bc2b45`](https://github.com/scalar/scalar/commit/1bc2b45b6eabd5c5045e77d67f59d202ab04d3fb), [`9342adc`](https://github.com/scalar/scalar/commit/9342adcd76e26a8e5eff75c1a2abee2c207b1487), [`fa361d2`](https://github.com/scalar/scalar/commit/fa361d2799e358d582fbb224a7b93d5b6e832c0e), [`62b5210`](https://github.com/scalar/scalar/commit/62b521092bafeb8e83e79222e13378c4a19defc8), [`e04879c`](https://github.com/scalar/scalar/commit/e04879c65602dfb65393876754f5344751b8953d), [`a164d76`](https://github.com/scalar/scalar/commit/a164d76f21437b3a35210d62a996b6c9d483e5a4), [`dd8e9dc`](https://github.com/scalar/scalar/commit/dd8e9dc118d3ae98180e2a93bd6ba11e982abbf8), [`ea13cd2`](https://github.com/scalar/scalar/commit/ea13cd2a44ff1ba7f19abcfcad1e51c9e7a0b75d), [`bfd814a`](https://github.com/scalar/scalar/commit/bfd814a4219660face190041cc4845182b56ab03), [`ea13cd2`](https://github.com/scalar/scalar/commit/ea13cd2a44ff1ba7f19abcfcad1e51c9e7a0b75d), [`781f264`](https://github.com/scalar/scalar/commit/781f2648bc758a251435c3a1e2b126a37f20e44f), [`1eafcbe`](https://github.com/scalar/scalar/commit/1eafcbeeaad3e611b9c8f365ce2961772b8e9494), [`35af6bf`](https://github.com/scalar/scalar/commit/35af6bfce4bc4ae3d0fc5783ea36e0165e964361), [`86f028d`](https://github.com/scalar/scalar/commit/86f028deb0b456f923edd261f5f4b0fa9b616b7d), [`294f9fc`](https://github.com/scalar/scalar/commit/294f9fc6cfd43cdab110deb1c851883509bc2b84), [`af54a80`](https://github.com/scalar/scalar/commit/af54a80349269a4269a68f6a372f837177a3537c)]:
|
|
16
|
+
- @scalar/components@0.16.5
|
|
17
|
+
- @scalar/sidebar@0.5.0
|
|
18
|
+
- @scalar/workspace-store@0.22.0
|
|
19
|
+
- @scalar/api-client@2.13.0
|
|
20
|
+
- @scalar/code-highlight@0.2.1
|
|
21
|
+
- @scalar/snippetz@0.5.4
|
|
22
|
+
- @scalar/json-magic@0.8.3
|
|
23
|
+
- @scalar/openapi-types@0.5.2
|
|
24
|
+
- @scalar/use-toasts@0.9.1
|
|
25
|
+
- @scalar/helpers@0.1.3
|
|
26
|
+
- @scalar/types@0.5.1
|
|
27
|
+
- @scalar/themes@0.13.25
|
|
28
|
+
- @scalar/oas-utils@0.6.5
|
|
29
|
+
- @scalar/icons@0.5.0
|
|
30
|
+
- @scalar/object-utils@1.2.13
|
|
31
|
+
- @scalar/openapi-parser@0.23.4
|
|
32
|
+
- @scalar/openapi-upgrader@0.1.5
|
|
33
|
+
- @scalar/use-hooks@0.3.1
|
|
34
|
+
|
|
3
35
|
## 1.40.0
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-auth-selector-block/components/OAuth2.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-auth-selector-block/components/OAuth2.vue"],"names":[],"mappings":"AAuRA,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,EAAE,OAAO,CAAA;IACpB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA4hBF,wBAMG"}
|
|
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
workspace: {}
|
|
24
24
|
},
|
|
25
25
|
setup(__props) {
|
|
26
|
-
const
|
|
26
|
+
const loader = useLoadingState();
|
|
27
27
|
const { toast } = useToasts();
|
|
28
28
|
const storeContext = useWorkspace();
|
|
29
29
|
const updateScheme$1 = (path, value) => updateScheme(
|
|
@@ -35,19 +35,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
__props.persistAuth
|
|
36
36
|
);
|
|
37
37
|
const handleAuthorize = async () => {
|
|
38
|
-
if (
|
|
38
|
+
if (loader.isLoading || !__props.collection?.uid) {
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
if (!__props.server) {
|
|
42
42
|
toast("No server selected", "error");
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
loader.start();
|
|
46
46
|
const [error, accessToken] = await authorizeOauth2(
|
|
47
47
|
__props.flow,
|
|
48
48
|
__props.server,
|
|
49
49
|
__props.workspace?.proxyUrl
|
|
50
|
-
).finally(() =>
|
|
50
|
+
).finally(async () => {
|
|
51
|
+
await loader.clear();
|
|
52
|
+
});
|
|
51
53
|
if (accessToken) {
|
|
52
54
|
updateScheme$1(`flows.${__props.flow.type}.token`, accessToken);
|
|
53
55
|
} else {
|
|
@@ -90,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
92
|
createElementVNode("div", _hoisted_1, [
|
|
91
93
|
createVNode(unref(ScalarButton), {
|
|
92
94
|
class: "mr-1 p-0 px-2 py-0.5",
|
|
93
|
-
|
|
95
|
+
loader: unref(loader),
|
|
94
96
|
size: "sm",
|
|
95
97
|
variant: "outlined",
|
|
96
98
|
onClick: _cache[1] || (_cache[1] = ($event) => updateScheme$1(`flows.${_ctx.flow.type}.token`, ""))
|
|
@@ -99,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
101
|
createTextVNode(" Clear ", -1)
|
|
100
102
|
])]),
|
|
101
103
|
_: 1
|
|
102
|
-
}, 8, ["
|
|
104
|
+
}, 8, ["loader"])
|
|
103
105
|
])
|
|
104
106
|
]),
|
|
105
107
|
_: 1
|
|
@@ -248,7 +250,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
248
250
|
createElementVNode("div", _hoisted_2, [
|
|
249
251
|
createVNode(unref(ScalarButton), {
|
|
250
252
|
class: "mr-0.75 p-0 px-2 py-0.5",
|
|
251
|
-
|
|
253
|
+
loader: unref(loader),
|
|
252
254
|
size: "sm",
|
|
253
255
|
variant: "outlined",
|
|
254
256
|
onClick: handleAuthorize
|
|
@@ -257,7 +259,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
257
259
|
createTextVNode(" Authorize ", -1)
|
|
258
260
|
])]),
|
|
259
261
|
_: 1
|
|
260
|
-
}, 8, ["
|
|
262
|
+
}, 8, ["loader"])
|
|
261
263
|
])
|
|
262
264
|
]),
|
|
263
265
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/scalar-client-selector-block/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/scalar-client-selector-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/scalar-info-block/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/scalar-info-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/scalar-server-selector-block/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/scalar-server-selector-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA"}
|