@scalar/api-reference 1.35.6 → 1.35.7
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/helpers/getPointer.d.ts.map +1 -1
- package/dist/browser/standalone.js +14400 -14218
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Lazy/Lazy.vue2.js +2 -2
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentSource.js +6 -5
- package/dist/features/sidebar/components/SidebarElement.vue.js +2 -2
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +59 -53
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +39 -30
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +77 -71
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/package.json +16 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lazy.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Lazy/Lazy.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Lazy.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Lazy/Lazy.vue"],"names":[],"mappings":"AAqFA,KAAK,WAAW,GAAG;IAEjB,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AA8DF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAmB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -13,8 +13,8 @@ const s = 300, T = /* @__PURE__ */ o({
|
|
|
13
13
|
typeof window > "u" || ("requestIdleCallback" in window ? setTimeout(() => window.requestIdleCallback(t), e.lazyTimeout) : setTimeout(() => {
|
|
14
14
|
a(() => {
|
|
15
15
|
t();
|
|
16
|
-
})
|
|
17
|
-
}));
|
|
16
|
+
});
|
|
17
|
+
}, e.lazyTimeout ?? s));
|
|
18
18
|
}, l = u(!e.isLazy);
|
|
19
19
|
return d.emit({ loading: e.id, save: i }), e.isLazy ? n(() => {
|
|
20
20
|
l.value = !0, e.id && a(() => d.emit({ loaded: e.id, save: i }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDocumentSource.d.ts","sourceRoot":"","sources":["../../../../src/features/document-source/hooks/useDocumentSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAG1F,OAAO,KAAK,EAAW,WAAW,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"useDocumentSource.d.ts","sourceRoot":"","sources":["../../../../src/features/document-source/hooks/useDocumentSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAG1F,OAAO,KAAK,EAAW,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEjE,OAAO,EAAE,KAAK,yBAAyB,EAAmC,MAAM,6BAA6B,CAAA;AAC7G,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAAiC,MAAM,KAAK,CAAA;AAIpF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,gBAAgB,EAAE,wBAAwB,EAC1C,oBAAoB,EAAE,4BAA4B,EAClD,aAAa,GACd,EAAE;IACD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC3C,oBAAoB,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;IAC7D,aAAa,CAAC,EAAE,gBAAgB,CAAC,yBAAyB,CAAC,CAAA;CAC5D,GAAG;IACF,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC7B,sBAAsB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACnC,oBAAoB,EAAE,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;IAC/C,cAAc,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;IACvD,mBAAmB,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAA;CAClE,CA2GA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createWorkspaceStore as v, createActiveEntitiesStore as y } from "@scalar/api-client/store";
|
|
2
2
|
import { measureAsync as P } from "@scalar/helpers/testing/measure";
|
|
3
|
-
import { normalize as w,
|
|
3
|
+
import { normalize as w, dereference as O } from "@scalar/openapi-parser";
|
|
4
|
+
import { upgrade as V } from "@scalar/openapi-upgrader";
|
|
4
5
|
import { apiReferenceConfigurationSchema as D } from "@scalar/types/api-reference";
|
|
5
6
|
import { computed as f, toValue as r, ref as l, watch as F } from "vue";
|
|
6
7
|
import { useDocumentFetcher as I } from "./useDocumentFetcher.js";
|
|
7
|
-
function
|
|
8
|
+
function L({
|
|
8
9
|
originalDocument: c,
|
|
9
10
|
dereferencedDocument: t,
|
|
10
11
|
configuration: i
|
|
@@ -33,12 +34,12 @@ function C({
|
|
|
33
34
|
return;
|
|
34
35
|
const S = !o.value.startsWith("3.1") ? (
|
|
35
36
|
// Upgrade needed
|
|
36
|
-
|
|
37
|
+
V(e, "3.1")
|
|
37
38
|
) : (
|
|
38
39
|
// Skip the upgrade
|
|
39
40
|
e
|
|
40
41
|
), A = await P("dereference", async () => {
|
|
41
|
-
const { schema: p, errors: a } = await
|
|
42
|
+
const { schema: p, errors: a } = await O(S);
|
|
42
43
|
return a?.length && console.warn(
|
|
43
44
|
`Please open an issue on https://github.com/scalar/scalar
|
|
44
45
|
`,
|
|
@@ -64,5 +65,5 @@ function C({
|
|
|
64
65
|
};
|
|
65
66
|
}
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
L as useDocumentSource
|
|
68
69
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c1dfe8cc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|