@scalar/api-reference 1.25.22 → 1.25.23

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 (29) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/browser/standalone.js +8501 -8501
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.d.ts +2 -0
  5. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  6. package/dist/components/ApiClientModal.vue.js +13 -11
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  9. package/dist/components/ApiReferenceLayout.vue2.js +92 -91
  10. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  12. package/dist/components/Content/Schema/SchemaProperty.vue2.js +91 -81
  13. package/dist/features/Search/SearchButton.vue.js +2 -2
  14. package/dist/features/Search/SearchButton.vue2.js +14 -14
  15. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  16. package/dist/features/Search/SearchModal.vue.js +2 -2
  17. package/dist/features/Search/SearchModal.vue2.js +87 -74
  18. package/dist/features/Search/index.d.ts +0 -1
  19. package/dist/features/Search/index.d.ts.map +1 -1
  20. package/dist/index.js +98 -100
  21. package/dist/style.css +1 -1
  22. package/package.json +6 -6
  23. package/dist/features/Search/Search.vue.d.ts +0 -20
  24. package/dist/features/Search/Search.vue.d.ts.map +0 -1
  25. package/dist/features/Search/Search.vue.js +0 -18
  26. package/dist/features/Search/Search.vue2.js +0 -4
  27. package/dist/features/Search/useKeyboardNavigation.d.ts +0 -13
  28. package/dist/features/Search/useKeyboardNavigation.d.ts.map +0 -1
  29. package/dist/features/Search/useKeyboardNavigation.js +0 -30
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.25.22",
23
+ "version": "1.25.23",
24
24
  "engines": {
25
25
  "node": ">=18"
26
26
  },
@@ -56,14 +56,14 @@
56
56
  "unhead": "^1.8.3",
57
57
  "unified": "^11.0.4",
58
58
  "vue": "^3.4.29",
59
- "@scalar/api-client": "2.1.8",
60
- "@scalar/components": "0.12.48",
61
- "@scalar/oas-utils": "0.2.48",
59
+ "@scalar/api-client": "2.1.9",
62
60
  "@scalar/code-highlight": "0.0.11",
61
+ "@scalar/oas-utils": "0.2.49",
62
+ "@scalar/components": "0.12.48",
63
63
  "@scalar/openapi-parser": "0.8.4",
64
+ "@scalar/openapi-types": "0.1.1",
64
65
  "@scalar/snippetz": "0.2.3",
65
66
  "@scalar/themes": "0.9.32",
66
- "@scalar/openapi-types": "0.1.1",
67
67
  "@scalar/types": "0.0.11",
68
68
  "@scalar/use-toasts": "0.7.6",
69
69
  "@scalar/use-tooltip": "1.0.2"
@@ -90,7 +90,7 @@
90
90
  "vite-plugin-css-injected-by-js": "^3.4.0",
91
91
  "vitest": "^1.6.0",
92
92
  "vitest-matchmedia-mock": "^1.0.5",
93
- "@scalar/galaxy": "0.2.7",
93
+ "@scalar/galaxy": "0.2.8",
94
94
  "@scalar/build-tooling": "0.1.10"
95
95
  },
96
96
  "scripts": {
@@ -1,20 +0,0 @@
1
- import type { ModalState } from '@scalar/components';
2
- import type { Spec } from '@scalar/types/legacy';
3
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
- parsedSpec: Spec;
5
- modalState: ModalState;
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
- parsedSpec: Spec;
8
- modalState: ModalState;
9
- }>>>, {}, {}>;
10
- export default _default;
11
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
- type __VLS_TypePropsToOption<T> = {
13
- [K in keyof T]-?: {} extends Pick<T, K> ? {
14
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
- } : {
16
- type: import('vue').PropType<T[K]>;
17
- required: true;
18
- };
19
- };
20
- //# sourceMappingURL=Search.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Search.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/Search.vue"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;;gBAOlC,IAAI;gBACJ,UAAU;;gBADV,IAAI;gBACJ,UAAU;;AA+CxB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,18 +0,0 @@
1
- import { defineComponent as a, openBlock as o, createBlock as p } from "vue";
2
- import r from "./SearchModal.vue.js";
3
- const l = /* @__PURE__ */ a({
4
- __name: "Search",
5
- props: {
6
- parsedSpec: {},
7
- modalState: {}
8
- },
9
- setup(t) {
10
- return (e, c) => (o(), p(r, {
11
- modalState: e.modalState,
12
- parsedSpec: e.parsedSpec
13
- }, null, 8, ["modalState", "parsedSpec"]));
14
- }
15
- });
16
- export {
17
- l as default
18
- };
@@ -1,4 +0,0 @@
1
- import f from "./Search.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,13 +0,0 @@
1
- import type { FuseResult } from 'fuse.js';
2
- import { type Ref } from 'vue';
3
- import type { FuseData } from './useSearchIndex.js';
4
- /**
5
- * Use keyboard navigation for search results
6
- */
7
- export declare function useKeyboardNavigation({ active, selectedSearchResult, searchResultsWithPlaceholderResults, onSearchResultClick, }: {
8
- active: Ref<boolean>;
9
- selectedSearchResult: Ref<number>;
10
- searchResultsWithPlaceholderResults: Ref<FuseResult<FuseData>[]>;
11
- onSearchResultClick: (entry: FuseResult<FuseData>) => void;
12
- }): void;
13
- //# sourceMappingURL=useKeyboardNavigation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useKeyboardNavigation.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useKeyboardNavigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEhD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,oBAAoB,EACpB,mCAAmC,EACnC,mBAAmB,GACpB,EAAE;IACD,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACpB,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACjC,mCAAmC,EAAE,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;IAChE,mBAAmB,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAA;CAC3D,QAoEA"}
@@ -1,30 +0,0 @@
1
- import { useMagicKeys as f, whenever as v } from "@vueuse/core";
2
- import { computed as m } from "vue";
3
- function l({
4
- active: i,
5
- selectedSearchResult: o,
6
- searchResultsWithPlaceholderResults: e,
7
- onSearchResultClick: t
8
- }) {
9
- const u = f(), r = m(
10
- () => e.value[o.value]
11
- );
12
- v(u.enter, () => {
13
- i && window && (t(r.value), window.location.hash = r.value.item.href);
14
- }), v(u.ArrowDown, () => {
15
- var n;
16
- i && window && (o.value < e.value.length - 1 ? o.value++ : o.value = 0, (n = document.getElementById(r.value.item.href)) == null || n.scrollIntoView({
17
- behavior: "smooth",
18
- block: "center"
19
- }));
20
- }), v(u.ArrowUp, () => {
21
- var n;
22
- i && window && (o.value > 0 ? o.value-- : o.value = e.value.length - 1, (n = document.getElementById(r.value.item.href)) == null || n.scrollIntoView({
23
- behavior: "smooth",
24
- block: "center"
25
- }));
26
- });
27
- }
28
- export {
29
- l as useKeyboardNavigation
30
- };