@scalar/api-reference 1.31.15 → 1.31.18

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 (32) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/browser/standalone.js +15688 -15636
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  6. package/dist/components/ApiReferenceLayout.vue2.js +23 -23
  7. package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
  8. package/dist/components/ClassicHeader.vue.js +11 -9
  9. package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
  10. package/dist/components/DocumentSelector/DocumentSelector.vue.js +19 -22
  11. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  12. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  13. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  14. package/dist/components/Sidebar/SidebarGroup.vue.js +1 -1
  15. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
  16. package/dist/features/DocumentSource/hooks/useDocumentSource.js +35 -31
  17. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  18. package/dist/features/DownloadLink/DownloadLink.vue.js +3 -3
  19. package/dist/features/DownloadLink/DownloadLink.vue2.js +35 -31
  20. package/dist/features/ExampleResponses/ExampleResponses.vue.js +1 -1
  21. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  22. package/dist/features/Search/SearchButton.vue.js +61 -5
  23. package/dist/features/Search/SearchButton.vue2.js +2 -70
  24. package/dist/helpers/parse.js +7 -7
  25. package/dist/index.js +1 -1
  26. package/dist/libs/openapi.js +15 -15
  27. package/dist/style.css +1 -1
  28. package/package.json +12 -12
  29. package/dist/legacy/fixtures/httpRequestMethods.d.ts +0 -10
  30. package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +0 -1
  31. package/dist/legacy/fixtures/index.d.ts +0 -2
  32. package/dist/legacy/fixtures/index.d.ts.map +0 -1
@@ -14,8 +14,8 @@ function d(e) {
14
14
  t.push(p(n, e.schema));
15
15
  const s = r[n];
16
16
  s.type === "object" && !!s.properties && s.properties && Object.keys(s.properties).forEach((u) => {
17
- var a, f;
18
- t.push(`${u} ${(f = (a = s.properties) == null ? void 0 : a[u]) == null ? void 0 : f.type}`);
17
+ var f, a;
18
+ t.push(`${u} ${(a = (f = s.properties) == null ? void 0 : f[u]) == null ? void 0 : a.type}`);
19
19
  });
20
20
  }), t;
21
21
  }
@@ -30,7 +30,7 @@ function O(e) {
30
30
  return !1;
31
31
  }
32
32
  }
33
- function y(e) {
33
+ function m(e) {
34
34
  var r, i;
35
35
  if (!e)
36
36
  return {};
@@ -46,13 +46,13 @@ function y(e) {
46
46
  (((s = t[n]) == null ? void 0 : s["x-internal"]) === !0 || ((c = t[n]) == null ? void 0 : c["x-scalar-ignore"]) === !0) && delete t[n];
47
47
  }), t;
48
48
  }
49
- const x = (e) => e ? !!Object.keys(y(e) ?? {}).length : !1;
49
+ const x = (e) => e ? !!Object.keys(m(e) ?? {}).length : !1;
50
50
  function l(e, t) {
51
51
  for (const [r, i] of Object.entries(e))
52
- i !== null && typeof i == "object" ? (t[r] ??= new i.__proto__.constructor(), l(i, t[r])) : typeof i < "u" && (t[r] = i);
52
+ i !== null && typeof i == "object" ? (t[r] ?? (t[r] = new i.__proto__.constructor()), l(i, t[r])) : typeof i < "u" && (t[r] = i);
53
53
  return t;
54
54
  }
55
- function g(e) {
55
+ function b(e) {
56
56
  return l(e ?? {}, {
57
57
  info: {
58
58
  title: "",
@@ -71,24 +71,24 @@ function g(e) {
71
71
  tags: []
72
72
  });
73
73
  }
74
- function b(e) {
74
+ function E(e) {
75
75
  return e.deprecated !== void 0 ? e.deprecated : !!(e["x-scalar-stability"] && e["x-scalar-stability"] === o.Deprecated);
76
76
  }
77
- function m(e) {
77
+ function y(e) {
78
78
  return e.deprecated ? o.Deprecated : e["x-scalar-stability"];
79
79
  }
80
- function E(e) {
81
- const t = m(e);
80
+ function S(e) {
81
+ const t = y(e);
82
82
  return t === o.Deprecated ? "text-red" : t === o.Experimental ? "text-orange" : t === o.Stable ? "text-green" : "";
83
83
  }
84
84
  export {
85
- g as createEmptySpecification,
85
+ b as createEmptySpecification,
86
86
  l as deepMerge,
87
87
  O as extractRequestBody,
88
88
  p as formatProperty,
89
- y as getModels,
90
- m as getOperationStability,
91
- E as getOperationStabilityColor,
89
+ m as getModels,
90
+ y as getOperationStability,
91
+ S as getOperationStabilityColor,
92
92
  x as hasModels,
93
- b as isOperationDeprecated
93
+ E as isOperationDeprecated
94
94
  };