@scalar/api-reference 1.28.5 → 1.28.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.
Files changed (153) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/browser/standalone.js +6284 -6218
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +26 -15
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  8. package/dist/components/ApiReferenceLayout.vue2.js +128 -129
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +2 -2
  13. package/dist/components/Content/Content.vue2.js +57 -55
  14. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  16. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  18. package/dist/components/Content/Introduction/Introduction.vue2.js +24 -24
  19. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Lazy/Loading.vue.js +4 -2
  22. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Models/Models.vue.js +2 -2
  24. package/dist/components/Content/Models/Models.vue2.js +18 -17
  25. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -0
  26. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Schema/Schema.vue.js +4 -4
  28. package/dist/components/Content/Schema/Schema.vue2.js +79 -67
  29. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +12 -0
  30. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -0
  31. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +7 -0
  32. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +109 -0
  33. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  35. package/dist/components/Content/Schema/SchemaHeading.vue2.js +26 -31
  36. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -0
  37. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  39. package/dist/components/Content/Schema/SchemaProperty.vue2.js +143 -141
  40. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  42. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +83 -99
  43. package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
  44. package/dist/components/Content/Tag/OperationsList.vue2.js +3 -3
  45. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tag/Tag.vue.js +41 -36
  47. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
  48. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  49. package/dist/components/Content/Tag/TagList.vue.js +38 -36
  50. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  51. package/dist/components/Content/Tag/TagSection.vue2.js +3 -3
  52. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  53. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  54. package/dist/components/Layouts/ModernLayout.vue.js +1 -1
  55. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  56. package/dist/components/Section/CompactSection.vue.js +2 -2
  57. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  58. package/dist/components/Section/Section.vue.js +2 -2
  59. package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
  60. package/dist/components/Section/SectionHeaderTag.vue.js +2 -2
  61. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  62. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  63. package/dist/components/Sidebar/Sidebar.vue2.js +2 -1
  64. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  65. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  66. package/dist/components/Sidebar/SidebarElement.vue2.js +40 -39
  67. package/dist/esm.d.ts.map +1 -1
  68. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  69. package/dist/features/ApiClientModal/useApiClient.d.ts +2 -4
  70. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  71. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  72. package/dist/features/BaseUrl/BaseUrl.vue.js +2 -1
  73. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  74. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  75. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +2 -1
  76. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  77. package/dist/features/ExampleResponses/ExampleResponses.vue.js +3 -3
  78. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +6 -8
  79. package/dist/features/Operation/Operation.vue.d.ts +2 -0
  80. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  81. package/dist/features/Operation/Operation.vue.js +13 -10
  82. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  83. package/dist/features/Operation/Webhooks.vue.js +2 -2
  84. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  85. package/dist/features/Operation/components/ContentTypeSelect.vue.js +4 -4
  86. package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -0
  87. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
  89. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -0
  90. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/components/OperationResponses.vue.js +15 -13
  92. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -0
  93. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  94. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  95. package/dist/features/Operation/components/ParameterList.vue2.js +14 -12
  96. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -0
  97. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  99. package/dist/features/Operation/components/ParameterListItem.vue2.js +20 -18
  100. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -0
  101. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  102. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  103. package/dist/features/Operation/components/RequestBody.vue2.js +20 -18
  104. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  105. package/dist/features/Operation/hooks/useResponses.js +2 -1
  106. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
  107. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  109. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +29 -24
  110. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
  111. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  112. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  113. package/dist/features/Operation/layouts/ModernLayout.vue2.js +66 -56
  114. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  115. package/dist/features/Search/SearchModal.vue.js +2 -2
  116. package/dist/features/Search/SearchModal.vue2.js +2 -1
  117. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  118. package/dist/features/Search/useSearchIndex.js +9 -9
  119. package/dist/helpers/index.d.ts +4 -4
  120. package/dist/helpers/scrollToId.d.ts.map +1 -1
  121. package/dist/helpers/specHelpers.js +15 -14
  122. package/dist/hooks/index.d.ts +0 -2
  123. package/dist/hooks/index.d.ts.map +1 -1
  124. package/dist/hooks/useMultipleDocuments.d.ts +7 -2
  125. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  126. package/dist/hooks/useMultipleDocuments.js +43 -33
  127. package/dist/hooks/useNavState.d.ts +13 -4
  128. package/dist/hooks/useNavState.d.ts.map +1 -1
  129. package/dist/hooks/useNavState.js +52 -47
  130. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  131. package/dist/hooks/useSidebar.d.ts.map +1 -1
  132. package/dist/hooks/useSidebar.js +3 -2
  133. package/dist/index.d.ts +6 -4
  134. package/dist/index.d.ts.map +1 -1
  135. package/dist/index.js +39 -76
  136. package/dist/libs/operation.d.ts.map +1 -1
  137. package/dist/standalone/lib/html-api.d.ts +4 -4
  138. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  139. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  140. package/dist/style.css +1 -1
  141. package/dist/types.d.ts +1 -10
  142. package/dist/types.d.ts.map +1 -1
  143. package/package.json +12 -10
  144. package/dist/helpers/getVariableNames.js +0 -7
  145. package/dist/helpers/hasSecuritySchemes.js +0 -7
  146. package/dist/helpers/mapFromObject.js +0 -7
  147. package/dist/helpers/mergeAllObjects.js +0 -7
  148. package/dist/hooks/useClientStore.d.ts +0 -2
  149. package/dist/hooks/useClientStore.d.ts.map +0 -1
  150. package/dist/hooks/useClientStore.js +0 -5
  151. package/dist/hooks/useRefOnMount.d.ts +0 -6
  152. package/dist/hooks/useRefOnMount.d.ts.map +0 -1
  153. package/dist/hooks/useRefOnMount.js +0 -10
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { ThemeId } from '@scalar/themes';
2
2
  import type { ApiReferenceConfiguration, MultiReferenceConfiguration } from '@scalar/types/api-reference';
3
- import type { HarRequest } from '@scalar/types/snippetz';
4
3
  import type { ContentType, ReferenceConfiguration, Spec } from '@scalar/types/legacy';
4
+ import type { HarRequest } from '@scalar/types/snippetz';
5
5
  import type { Slot } from 'vue';
6
6
  export type { ApiReferenceConfiguration };
7
7
  export type { ReferenceConfiguration };
@@ -17,15 +17,6 @@ export type ReferenceLayoutProps = {
17
17
  rawSpec: string;
18
18
  isDark: boolean;
19
19
  };
20
- /**
21
- * After the configuration is parsed, we can use the stricter types.
22
- */
23
- export type InternalReferenceProps = {
24
- configuration: ApiReferenceConfiguration;
25
- parsedSpec: Spec;
26
- rawSpec: string;
27
- isDark: boolean;
28
- };
29
20
  export type GettingStartedExamples = 'Petstore' | 'CoinMarketCap';
30
21
  export type Parameter = {
31
22
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AACzG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AACrF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,YAAY,EAAE,yBAAyB,EAAE,CAAA;AAEzC,YAAY,EAAE,sBAAsB,EAAE,CAAA;AAEtC,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,CAAC,EAAE,2BAA2B,CAAA;CAC5C,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,EAAE,OAAO,CAAC,yBAA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AAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAClD,CAAA;AAED,2DAA2D;AAC3D,MAAM,MAAM,mBAAmB,GAC3B,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,aAAa,GACb,eAAe,GACf,aAAa,CAAA;AAEjB,MAAM,MAAM,oBAAoB,GAAG;KAChC,CAAC,IAAI,mBAAmB,GAAG,CAAC,KAAK,EAAE,kBAAkB,KAAK,GAAG;CAC/D,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,mBAAmB,EAAE,GAAG,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,IAAI,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IACxC,CAAC,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACzC,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5B,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5B,CAAC,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAC5B,CAAA"}
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.28.5",
23
+ "version": "1.28.7",
24
24
  "engines": {
25
25
  "node": ">=18"
26
26
  },
@@ -50,21 +50,22 @@
50
50
  "@headlessui/vue": "^1.7.20",
51
51
  "@unhead/vue": "^1.11.11",
52
52
  "@vueuse/core": "^10.10.0",
53
+ "flatted": "^3.3.1",
53
54
  "fuse.js": "^7.0.0",
54
55
  "github-slugger": "^2.0.0",
55
56
  "nanoid": "^5.0.9",
56
57
  "vue": "^3.5.12",
57
58
  "zod": "^3.23.8",
59
+ "@scalar/api-client": "2.3.7",
60
+ "@scalar/components": "0.13.39",
58
61
  "@scalar/code-highlight": "0.0.25",
59
- "@scalar/api-client": "2.3.5",
60
- "@scalar/components": "0.13.37",
61
- "@scalar/oas-utils": "0.2.120",
62
- "@scalar/openapi-parser": "0.10.10",
62
+ "@scalar/openapi-parser": "0.10.12",
63
+ "@scalar/oas-utils": "0.2.121",
63
64
  "@scalar/openapi-types": "0.1.9",
64
- "@scalar/snippetz": "0.2.16",
65
- "@scalar/types": "0.1.1",
66
- "@scalar/use-hooks": "0.1.33",
67
- "@scalar/themes": "0.9.79",
65
+ "@scalar/themes": "0.9.80",
66
+ "@scalar/snippetz": "0.2.17",
67
+ "@scalar/types": "0.1.2",
68
+ "@scalar/use-hooks": "0.1.34",
68
69
  "@scalar/use-toasts": "0.7.9"
69
70
  },
70
71
  "devDependencies": {
@@ -80,7 +81,7 @@
80
81
  "vite-plugin-css-injected-by-js": "^3.4.0",
81
82
  "vitest": "^1.6.0",
82
83
  "@scalar/build-tooling": "0.1.17",
83
- "@scalar/galaxy": "0.2.24"
84
+ "@scalar/galaxy": "0.3.0"
84
85
  },
85
86
  "scripts": {
86
87
  "analyze:default": "pnpm dlx vite-bundle-visualizer",
@@ -93,6 +94,7 @@
93
94
  "lint:check": "eslint .",
94
95
  "lint:fix": "eslint . --fix",
95
96
  "playground:esm": "vite ./playground/esm -c ./playground/esm/vite.config.ts",
97
+ "playground:ssr": "cd ./playground/ssr && pnpm dev",
96
98
  "playground:vue": "vite ./playground/vue -c ./playground/vue/vite.config.ts",
97
99
  "preview": "vite preview",
98
100
  "test": "vitest",
@@ -1,7 +0,0 @@
1
- function n(r) {
2
- const t = /{{?\s*([\w.-]+)\s*}}?/g, s = r == null ? void 0 : r.matchAll(t);
3
- return Array.from(s ?? [], (c) => c[1]);
4
- }
5
- export {
6
- n as getVariableNames
7
- };
@@ -1,7 +0,0 @@
1
- const r = (e) => {
2
- var t;
3
- return !!Object.keys(((t = e == null ? void 0 : e.components) == null ? void 0 : t.securitySchemes) ?? {}).length;
4
- };
5
- export {
6
- r as hasSecuritySchemes
7
- };
@@ -1,7 +0,0 @@
1
- const a = (t, e) => Object.keys(t).map((r) => ({
2
- [e ?? r]: r,
3
- value: t[r]
4
- }));
5
- export {
6
- a as mapFromObject
7
- };
@@ -1,7 +0,0 @@
1
- const c = (e) => e.reduce((r, t) => ({
2
- ...r,
3
- ...t
4
- }), {});
5
- export {
6
- c as mergeAllObjects
7
- };
@@ -1,2 +0,0 @@
1
- export declare const useClientStore: () => void;
2
- //# sourceMappingURL=useClientStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useClientStore.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientStore.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,YAE1B,CAAA"}
@@ -1,5 +0,0 @@
1
- const e = () => {
2
- };
3
- export {
4
- e as useClientStore
5
- };
@@ -1,6 +0,0 @@
1
- import { type Ref } from 'vue';
2
- /**
3
- * Set a ref value on mount when needed to access properties that are not SSR-friendly.
4
- */
5
- export declare function useRefOnMount<T>(setter: () => T): Ref<T | null, T | null>;
6
- //# sourceMappingURL=useRefOnMount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRefOnMount.d.ts","sourceRoot":"","sources":["../../src/hooks/useRefOnMount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAkB,MAAM,KAAK,CAAA;AAE9C;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,2BAQ/C"}
@@ -1,10 +0,0 @@
1
- import { ref as o, onMounted as u } from "vue";
2
- function r(e) {
3
- const n = o(null);
4
- return u(() => {
5
- n.value = e();
6
- }), n;
7
- }
8
- export {
9
- r as useRefOnMount
10
- };