@scalar/api-reference 1.31.4 → 1.31.6

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 (48) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/browser/standalone.js +15616 -15521
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.js +6 -6
  5. package/dist/components/ApiReferenceLayout.vue.d.ts +6 -3
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +4 -2
  8. package/dist/components/ApiReferenceLayout.vue2.js +230 -151
  9. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  10. package/dist/components/GettingStarted.vue.js +3 -3
  11. package/dist/components/GettingStarted.vue2.js +23 -23
  12. package/dist/index.d.ts +0 -3
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +37 -44
  15. package/dist/libs/openapi.js +32 -32
  16. package/dist/style.css +1 -1
  17. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +40 -0
  18. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -0
  19. package/dist/v2/ApiReferenceWorkspace.vue.js +65 -0
  20. package/dist/v2/ApiReferenceWorkspace.vue3.js +5 -0
  21. package/dist/v2/events/definitions.d.ts +35 -0
  22. package/dist/v2/events/definitions.d.ts.map +1 -0
  23. package/dist/v2/events/index.d.ts +3 -0
  24. package/dist/v2/events/index.d.ts.map +1 -0
  25. package/dist/v2/events/listeners.d.ts +8 -0
  26. package/dist/v2/events/listeners.d.ts.map +1 -0
  27. package/dist/v2/events/listeners.js +15 -0
  28. package/dist/v2/styles.d.ts +2 -0
  29. package/dist/v2/styles.d.ts.map +1 -0
  30. package/package.json +10 -9
  31. package/dist/components/Layouts/ClassicLayout.vue.d.ts +0 -23
  32. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +0 -1
  33. package/dist/components/Layouts/ClassicLayout.vue.js +0 -67
  34. package/dist/components/Layouts/ClassicLayout.vue2.js +0 -4
  35. package/dist/components/Layouts/Layouts.vue.d.ts +0 -26
  36. package/dist/components/Layouts/Layouts.vue.d.ts.map +0 -1
  37. package/dist/components/Layouts/Layouts.vue.js +0 -35
  38. package/dist/components/Layouts/Layouts.vue2.js +0 -4
  39. package/dist/components/Layouts/ModernLayout.vue.d.ts +0 -23
  40. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +0 -1
  41. package/dist/components/Layouts/ModernLayout.vue.js +0 -8
  42. package/dist/components/Layouts/ModernLayout.vue2.js +0 -102
  43. package/dist/components/Layouts/index.d.ts +0 -2
  44. package/dist/components/Layouts/index.d.ts.map +0 -1
  45. package/dist/components/SingleApiReference.vue.d.ts +0 -29
  46. package/dist/components/SingleApiReference.vue.d.ts.map +0 -1
  47. package/dist/components/SingleApiReference.vue.js +0 -57
  48. package/dist/components/SingleApiReference.vue3.js +0 -5
@@ -1,57 +0,0 @@
1
- import { defineComponent as c, watch as l, computed as g, createElementBlock as C, openBlock as f, Fragment as k, createBlock as M, createCommentVNode as D, createVNode as p, resolveDynamicComponent as v, withCtx as t, createTextVNode as $, toDisplayString as S, unref as i, renderSlot as r } from "vue";
2
- import { useColorMode as y } from "@scalar/use-hooks/useColorMode";
3
- import { useSeoMeta as B } from "@unhead/vue";
4
- import { useFavicon as N } from "@vueuse/core";
5
- import V from "./Layouts/Layouts.vue.js";
6
- const E = /* @__PURE__ */ c({
7
- __name: "SingleApiReference",
8
- props: {
9
- configuration: {}
10
- },
11
- emits: ["updateContent"],
12
- setup(e) {
13
- const { toggleColorMode: u, isDarkMode: a } = y({
14
- initialColorMode: e.configuration.darkMode ? "dark" : void 0,
15
- overrideColorMode: e.configuration.forceDarkModeState
16
- });
17
- l(
18
- () => e.configuration.darkMode,
19
- (o) => a.value = !!o
20
- ), e.configuration.metaData && B(e.configuration.metaData);
21
- const d = g(() => e.configuration.favicon);
22
- return N(d), (o, n) => {
23
- var s;
24
- return f(), C(k, null, [
25
- (s = o.configuration) != null && s.customCss ? (f(), M(v("style"), { key: 0 }, {
26
- default: t(() => [
27
- $(S(o.configuration.customCss), 1)
28
- ]),
29
- _: 1
30
- })) : D("", !0),
31
- p(i(V), {
32
- configuration: o.configuration,
33
- isDark: i(a),
34
- onToggleDarkMode: n[0] || (n[0] = () => i(u)()),
35
- onUpdateContent: n[1] || (n[1] = (m) => o.$emit("updateContent", m))
36
- }, {
37
- footer: t(() => [
38
- r(o.$slots, "footer")
39
- ]),
40
- "content-end": t(() => [
41
- r(o.$slots, "footer")
42
- ]),
43
- "document-selector": t(() => [
44
- r(o.$slots, "document-selector")
45
- ]),
46
- "sidebar-start": t(() => [
47
- r(o.$slots, "sidebar-start")
48
- ]),
49
- _: 3
50
- }, 8, ["configuration", "isDark"])
51
- ], 64);
52
- };
53
- }
54
- });
55
- export {
56
- E as default
57
- };
@@ -1,5 +0,0 @@
1
- import o from "./SingleApiReference.vue.js";
2
- /* empty css */
3
- export {
4
- o as default
5
- };