@scalar/api-reference 1.25.9 → 1.25.11

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 (122) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/browser/standalone.js +14512 -14482
  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 +43 -42
  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 +51 -48
  9. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  10. package/dist/components/Content/Models/Models.vue.js +2 -2
  11. package/dist/components/Content/Models/Models.vue2.js +46 -48
  12. package/dist/components/Content/Operation/Operation.vue.js +2 -2
  13. package/dist/components/Content/Operation/Operation.vue2.js +14 -14
  14. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Operation/OperationAccordion.vue.js +2 -2
  16. package/dist/components/Content/Operation/OperationAccordion.vue2.js +53 -49
  17. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts +21 -0
  18. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +1 -0
  19. package/dist/components/Content/Operation/ParameterHeaders.vue.js +7 -0
  20. package/dist/components/Content/Operation/ParameterHeaders.vue2.js +62 -0
  21. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Operation/ParameterItem.vue.js +2 -2
  23. package/dist/components/Content/Operation/ParameterItem.vue2.js +34 -30
  24. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Operation/TestRequestButton.vue.js +1 -1
  26. package/dist/components/Content/Operation/TestRequestButton.vue2.js +30 -22
  27. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  28. package/dist/components/Content/Tag/Endpoints.vue.d.ts +2 -0
  29. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  31. package/dist/components/Content/Tag/Endpoints.vue2.js +29 -25
  32. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Tag/Tag.vue.js +2 -2
  34. package/dist/components/Content/Tag/Tag.vue2.js +15 -14
  35. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Webhooks/Webhooks.vue.js +2 -2
  37. package/dist/components/Content/Webhooks/Webhooks.vue2.js +43 -45
  38. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
  39. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +3 -3
  40. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  41. package/dist/components/Layouts/ClassicLayout.vue.js +18 -17
  42. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  43. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  44. package/dist/components/Layouts/ModernLayout.vue2.js +31 -28
  45. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  46. package/dist/components/Section/CompactSection.vue.js +2 -2
  47. package/dist/{components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts → embeds/ExampleResponses/ExampleResponses.vue.d.ts} +4 -9
  48. package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
  49. package/dist/embeds/ExampleResponses/index.d.ts +2 -0
  50. package/dist/embeds/ExampleResponses/index.d.ts.map +1 -0
  51. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +8 -1
  52. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  53. package/dist/embeds/index.d.ts +1 -0
  54. package/dist/embeds/index.d.ts.map +1 -1
  55. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
  56. package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
  57. package/dist/features/BaseUrl/ServerForm.vue2.js +5 -5
  58. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  59. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  60. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +118 -129
  61. package/dist/{components/Content/Operation/PathResponses/Headers.vue.d.ts → features/ExampleResponses/ExampleResponse.vue.d.ts} +4 -4
  62. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -0
  63. package/dist/features/ExampleResponses/ExampleResponse.vue.js +7 -0
  64. package/dist/features/ExampleResponses/ExampleResponse.vue2.js +37 -0
  65. package/dist/{components/Content/Operation/PathResponses/PathResponses.vue.d.ts → features/ExampleResponses/ExampleResponses.vue.d.ts} +1 -1
  66. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
  67. package/dist/features/ExampleResponses/ExampleResponses.vue.js +7 -0
  68. package/dist/{components/Content/Operation/PathResponses/PathResponses.vue2.js → features/ExampleResponses/ExampleResponses.vue2.js} +18 -18
  69. package/dist/features/ExampleResponses/index.d.ts +2 -0
  70. package/dist/features/ExampleResponses/index.d.ts.map +1 -0
  71. package/dist/helpers/createRequest.d.ts +6 -0
  72. package/dist/helpers/createRequest.d.ts.map +1 -0
  73. package/dist/helpers/createRequest.js +16 -0
  74. package/dist/helpers/getExampleCode.d.ts +9 -0
  75. package/dist/helpers/getExampleCode.d.ts.map +1 -0
  76. package/dist/helpers/getExampleCode.js +27 -0
  77. package/dist/helpers/index.d.ts +2 -0
  78. package/dist/helpers/index.d.ts.map +1 -1
  79. package/dist/helpers/mergeAllObjects.d.ts +3 -0
  80. package/dist/helpers/mergeAllObjects.d.ts.map +1 -1
  81. package/dist/helpers/provideSymbols.d.ts +1 -0
  82. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  83. package/dist/helpers/provideSymbols.js +4 -3
  84. package/dist/hooks/useReactiveSpec.d.ts +7 -1
  85. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  86. package/dist/hooks/useResponses.d.ts +4 -0
  87. package/dist/hooks/useResponses.d.ts.map +1 -1
  88. package/dist/hooks/useResponses.js +11 -10
  89. package/dist/index.js +95 -90
  90. package/dist/legacy/helpers/index.d.ts +1 -0
  91. package/dist/legacy/helpers/index.d.ts.map +1 -1
  92. package/dist/legacy/helpers/normalizeHeaderName.d.ts +5 -0
  93. package/dist/legacy/helpers/normalizeHeaderName.d.ts.map +1 -0
  94. package/dist/legacy/helpers/normalizeHeaderName.js +6 -0
  95. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
  96. package/dist/legacy/helpers/normalizeHeaders.js +15 -17
  97. package/dist/legacy/stores/useOpenApiStore.d.ts +7 -1
  98. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  99. package/dist/style.css +1 -1
  100. package/dist/types.d.ts +0 -8
  101. package/dist/types.d.ts.map +1 -1
  102. package/package.json +12 -12
  103. package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts.map +0 -1
  104. package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.js +0 -7
  105. package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue2.js +0 -101
  106. package/dist/components/Content/Operation/PathResponses/Headers.vue.d.ts.map +0 -1
  107. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +0 -1
  108. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +0 -7
  109. package/dist/components/Content/Operation/PathResponses/index.d.ts +0 -2
  110. package/dist/components/Content/Operation/PathResponses/index.d.ts.map +0 -1
  111. package/dist/components/SimpleTable/SimpleCell.vue.d.ts +0 -50
  112. package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +0 -1
  113. package/dist/components/SimpleTable/SimpleHeader.vue.d.ts +0 -12
  114. package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +0 -1
  115. package/dist/components/SimpleTable/SimpleRow.vue.d.ts +0 -12
  116. package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +0 -1
  117. package/dist/components/SimpleTable/SimpleTable.stories.d.ts +0 -7
  118. package/dist/components/SimpleTable/SimpleTable.stories.d.ts.map +0 -1
  119. package/dist/components/SimpleTable/SimpleTable.vue.d.ts +0 -12
  120. package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +0 -1
  121. package/dist/components/SimpleTable/index.d.ts +0 -5
  122. package/dist/components/SimpleTable/index.d.ts.map +0 -1
@@ -1,3 +1,4 @@
1
+ import type { OpenAPI } from '@scalar/openapi-types';
1
2
  import type { OpenApiDocumentConfiguration } from './types';
2
3
  declare const dereferenced: import("vue").Ref<{
3
4
  [x: `x-${string}`]: any;
@@ -285,8 +286,11 @@ declare const parsedSpec: {
285
286
  example?: any;
286
287
  examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
287
288
  content?: import("@scalar/types/legacy").RequestBodyMimeTypes;
289
+ headers?: {
290
+ [key: string]: OpenAPI.HeaderObject;
291
+ };
288
292
  }[] | undefined;
289
- responses?: Record<string, import("@scalar/types/legacy").ScalarResponse>;
293
+ responses?: Record<string, OpenAPI.ResponseObject>;
290
294
  security?: import("@scalar/openapi-types").OpenAPIV3.SecurityRequirementObject[];
291
295
  requestBody?: {
292
296
  description?: string;
@@ -334,6 +338,9 @@ declare const parsedSpec: {
334
338
  example?: any;
335
339
  examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
336
340
  content?: import("@scalar/types/legacy").RequestBodyMimeTypes;
341
+ headers?: {
342
+ [key: string]: OpenAPI.HeaderObject;
343
+ };
337
344
  }[] | undefined;
338
345
  }[];
339
346
  'x-displayName'?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"OpenApiDocument.vue.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/OpenApiDocument.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAS3D,Q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U,CAAA;KAC9B,GAAG,GAAG;EA4FR;AACD,QAAA,MAAM,eAAe;oBApJH,4BAA4B;;oBAA5B,4BAA4B;aA0J5C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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,3 +1,4 @@
1
1
  export * from './ExampleRequest';
2
+ export * from './ExampleResponses';
2
3
  export * from './OpenApiDocument';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/embeds/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/embeds/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA"}
@@ -1 +1 @@
1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QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ServerForm.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-da7210d5"]]);
4
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-465cec21"]]);
5
5
  export {
6
- e as default
6
+ c as default
7
7
  };
@@ -3,7 +3,7 @@ import { ScalarMarkdown as V } from "@scalar/components";
3
3
  import B from "./ServerUrl.vue.js";
4
4
  import R from "./ServerUrlSelect.vue.js";
5
5
  import g from "./ServerVariablesForm.vue.js";
6
- const y = (r) => (N("data-v-da7210d5"), r = r(), U(), r), E = { key: 0 }, F = /* @__PURE__ */ y(() => /* @__PURE__ */ t("span", { class: "server-form-title" }, "Base URL", -1)), L = { class: "server-form" }, M = { class: "server-form-container" }, $ = { class: "server-item" }, j = {
6
+ const y = (r) => (N("data-v-465cec21"), r = r(), U(), r), E = { key: 0 }, F = /* @__PURE__ */ y(() => /* @__PURE__ */ t("span", { class: "server-form-title" }, "Base URL", -1)), L = { class: "server-form" }, M = { class: "server-form-container" }, $ = { class: "server-item" }, j = {
7
7
  key: 0,
8
8
  muted: ""
9
9
  }, q = { class: "description" }, H = /* @__PURE__ */ S({
@@ -23,8 +23,8 @@ const y = (r) => (N("data-v-da7210d5"), r = r(), U(), r), E = { key: 0 }, F = /*
23
23
  return (e = i.servers) == null ? void 0 : e[l.value];
24
24
  });
25
25
  return (e, s) => {
26
- var d, v, n;
27
- return (d = e.servers) != null && d.length ? (c(), u("div", E, [
26
+ var v, n, d;
27
+ return (v = e.servers) != null && v.length ? (c(), u("div", E, [
28
28
  F,
29
29
  t("div", L, [
30
30
  t("div", M, [
@@ -45,12 +45,12 @@ const y = (r) => (N("data-v-da7210d5"), r = r(), U(), r), E = { key: 0 }, F = /*
45
45
  ]),
46
46
  o(g, {
47
47
  values: e.variables,
48
- variables: (v = a.value) == null ? void 0 : v.variables,
48
+ variables: (n = a.value) == null ? void 0 : n.variables,
49
49
  "onUpdate:variable": s[0] || (s[0] = (b, h) => e.$emit("update:variable", b, h))
50
50
  }, null, 8, ["values", "variables"])
51
51
  ])
52
52
  ]),
53
- (n = a.value) != null && n.description ? (c(), u("div", j, [
53
+ (d = a.value) != null && d.description ? (c(), u("div", j, [
54
54
  t("div", q, [
55
55
  o(C(V), {
56
56
  value: a.value.description
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExampleRequest.vue"],"names":[],"mappings":"AA6YA,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AA6Q7B,iBAAS,cAAc;oBAiNM,GAAG;oBACH,GAAG;EAmC/B;AACD,QAAA,MAAM,eAAe;eApeR,oBAAoB;;eAApB,oBAAoB;aA0e/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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
+ {"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExampleRequest.vue"],"names":[],"mappings":"AA4XA,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AA8P7B,iBAAS,cAAc;oBAiNM,GAAG;oBACH,GAAG;EAmC/B;AACD,QAAA,MAAM,eAAe;eArdR,oBAAoB;;eAApB,oBAAoB;aA2d/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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,7 +1,7 @@
1
1
  import o from "./ExampleRequest.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f47524fb"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-292a80da"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,51 +1,50 @@
1
- import { defineComponent as P, ref as R, computed as f, watch as I, inject as L, onServerPrefetch as M, useSSRContext as Y, unref as a, openBlock as y, createBlock as V, withCtx as p, createVNode as u, createElementBlock as h, Fragment as H, createTextVNode as O, toDisplayString as K, createElementVNode as N, renderSlot as j, createCommentVNode as x } from "vue";
2
- import { ScalarCodeBlock as z } from "@scalar/components";
3
- import { createHash as D, ssrState as Q } from "@scalar/oas-utils/helpers";
4
- import { getRequestFromOperation as W } from "@scalar/oas-utils/spec-getters";
5
- import { snippetz as B } from "@scalar/snippetz";
6
- import { asyncComputed as X } from "@vueuse/core";
7
- import { HTTPSnippet as Z } from "httpsnippet-lite";
8
- import G from "./ExamplePicker.vue.js";
9
- import ee from "./TextSelect.vue.js";
1
+ import { defineComponent as U, ref as b, computed as d, watch as L, inject as I, onServerPrefetch as M, useSSRContext as P, unref as r, openBlock as f, createBlock as V, withCtx as u, createVNode as m, createElementBlock as v, Fragment as O, createTextVNode as R, toDisplayString as g, createElementVNode as H, renderSlot as N, createCommentVNode as h } from "vue";
2
+ import { ScalarCodeBlock as Y } from "@scalar/components";
3
+ import { createHash as D, ssrState as z } from "@scalar/oas-utils/helpers";
4
+ import { getRequestFromOperation as Q } from "@scalar/oas-utils/spec-getters";
5
+ import { asyncComputed as W } from "@vueuse/core";
6
+ import X from "./ExamplePicker.vue.js";
7
+ import Z from "./TextSelect.vue.js";
10
8
  /* empty css */
11
- import { GLOBAL_SECURITY_SYMBOL as te } from "../../helpers/provideSymbols.js";
12
- import oe from "../../components/Card/Card.vue.js";
13
- import re from "../../components/Card/CardHeader.vue.js";
14
- import ae from "../../components/HttpMethod/HttpMethod.vue.js";
15
- import ne from "../../components/Card/CardContent.vue.js";
16
- import { getSecretCredentialsFromAuthentication as se, getRequestFromAuthentication as le } from "../../legacy/helpers/getRequestFromAuthentication.js";
17
- import ie from "../../components/Card/CardFooter.vue.js";
18
- import { useHttpClientStore as ce } from "../../stores/useHttpClientStore.js";
19
- import { useServerStore as pe } from "../../legacy/stores/useServerStore.js";
9
+ import { GLOBAL_SECURITY_SYMBOL as G } from "../../helpers/provideSymbols.js";
10
+ import ee from "../../components/Card/Card.vue.js";
11
+ import te from "../../components/Card/CardHeader.vue.js";
12
+ import oe from "../../components/HttpMethod/HttpMethod.vue.js";
13
+ import re from "../../components/Card/CardContent.vue.js";
14
+ import { getSecretCredentialsFromAuthentication as ae, getRequestFromAuthentication as ne } from "../../legacy/helpers/getRequestFromAuthentication.js";
15
+ import se from "../../components/Card/CardFooter.vue.js";
16
+ import { getExampleCode as le } from "../../helpers/getExampleCode.js";
17
+ import { useHttpClientStore as ie } from "../../stores/useHttpClientStore.js";
18
+ import { useServerStore as ce } from "../../legacy/stores/useServerStore.js";
20
19
  import { getApiClientRequest as ue } from "../../helpers/getApiClientRequest.js";
21
20
  import { useAuthenticationStore as me } from "../../legacy/stores/useAuthenticationStore.js";
22
- import { getHarRequest as de } from "../../helpers/getHarRequest.js";
23
- import { getUrlFromServerState as fe } from "../../legacy/helpers/getUrlFromServerState.js";
24
- const ye = { class: "request-header" }, ve = { class: "code-snippet" }, ge = {
21
+ import { getHarRequest as pe } from "../../helpers/getHarRequest.js";
22
+ import { getUrlFromServerState as de } from "../../legacy/helpers/getUrlFromServerState.js";
23
+ const fe = { class: "request-header" }, ye = { class: "code-snippet" }, ve = {
25
24
  key: 0,
26
25
  class: "request-card-footer-addon"
27
- }, Pe = /* @__PURE__ */ P({
26
+ }, Je = /* @__PURE__ */ U({
28
27
  __name: "ExampleRequest",
29
28
  props: {
30
29
  operation: {}
31
30
  },
32
- setup(T) {
33
- const n = T, C = `components-Content-Operation-Example-Request${D(
31
+ setup(B) {
32
+ const n = B, K = `components-Content-Operation-Example-Request${D(
34
33
  n.operation.path + n.operation.httpVerb + n.operation.operationId
35
- )}`, S = R(), {
36
- httpClient: r,
34
+ )}`, x = b(), {
35
+ httpClient: a,
37
36
  setHttpClient: $,
38
- availableTargets: E,
39
- httpTargetTitle: w,
37
+ availableTargets: C,
38
+ httpTargetTitle: j,
40
39
  httpClientTitle: F
41
- } = ce(), { server: k } = pe(), { authentication: v } = me(), i = f(() => {
42
- var e;
43
- const t = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
44
- for (const o of t)
45
- if ((e = n.operation.information) != null && e[o])
40
+ } = ie(), { server: S } = ce(), { authentication: y } = me(), i = d(() => {
41
+ var t;
42
+ const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
43
+ for (const o of e)
44
+ if ((t = n.operation.information) != null && t[o])
46
45
  return n.operation.information[o] ?? [];
47
46
  return [];
48
- }), s = R(
47
+ }), s = b(
49
48
  // Default to first custom example
50
49
  i.value.length ? {
51
50
  targetKey: "customExamples",
@@ -53,189 +52,179 @@ const ye = { class: "request-header" }, ve = { class: "code-snippet" }, ge = {
53
52
  } : (
54
53
  // Otherwise use the globally selected HTTP client
55
54
  {
56
- targetKey: r.targetKey,
57
- clientKey: r.clientKey
55
+ targetKey: a.targetKey,
56
+ clientKey: a.clientKey
58
57
  }
59
58
  )
60
59
  );
61
- I(r, () => {
60
+ L(a, () => {
62
61
  s.value = {
63
- targetKey: r.targetKey,
64
- clientKey: r.clientKey
62
+ targetKey: a.targetKey,
63
+ clientKey: a.clientKey
65
64
  };
66
65
  });
67
- const q = f(
66
+ const E = d(
68
67
  () => {
69
- var t, e, o, l;
68
+ var e, t, o, l;
70
69
  return Object.keys(
71
- ((l = (o = (e = (t = n.operation.information) == null ? void 0 : t.requestBody) == null ? void 0 : e.content) == null ? void 0 : o["application/json"]) == null ? void 0 : l.examples) ?? {}
70
+ ((l = (o = (t = (e = n.operation.information) == null ? void 0 : e.requestBody) == null ? void 0 : t.content) == null ? void 0 : o["application/json"]) == null ? void 0 : l.examples) ?? {}
72
71
  ).length > 1;
73
72
  }
74
- ), c = L(te);
75
- async function _() {
76
- var l, m;
73
+ ), c = I(G);
74
+ async function k() {
75
+ var l, p;
77
76
  if (s.value.targetKey === "customExamples")
78
77
  return ((l = i.value[s.value.clientKey]) == null ? void 0 : l.source) ?? "";
79
- const t = de(
78
+ const e = pe(
80
79
  {
81
- url: fe(k)
80
+ url: de(S)
82
81
  },
83
- W(
82
+ Q(
84
83
  n.operation,
85
84
  {
86
85
  replaceVariables: !0
87
86
  },
88
- S.value
87
+ x.value
89
88
  ),
90
- le(
91
- v,
92
- ((m = n.operation.information) == null ? void 0 : m.security) ?? (c == null ? void 0 : c())
89
+ ne(
90
+ y,
91
+ ((p = n.operation.information) == null ? void 0 : p.security) ?? (c == null ? void 0 : c())
93
92
  )
94
- ), e = r.clientKey === "undici" || r.clientKey === "fetch" || r.clientKey === "ofetch" ? r.clientKey : null, o = r.targetKey.replace("javascript", "js");
95
- if (e && B().hasPlugin(o, e))
96
- return B().print(o, e, t) ?? "";
97
- try {
98
- const g = await new Z(t).convert(
99
- r.targetKey,
100
- r.clientKey
101
- );
102
- return decodeURIComponent(g);
103
- } catch (d) {
104
- return console.error("[ExampleRequest]", d), "";
105
- }
93
+ ), t = a.clientKey === "undici" || a.clientKey === "fetch" || a.clientKey === "ofetch" ? a.clientKey : null, o = a.targetKey;
94
+ return await le(e, o, t) ?? "";
106
95
  }
107
- const b = X(async () => {
96
+ const q = W(async () => {
108
97
  try {
109
- return await _();
110
- } catch (t) {
111
- return console.error("[generateSnippet]", t), "";
98
+ return await k();
99
+ } catch (e) {
100
+ return console.error("[generateSnippet]", e), "";
112
101
  }
113
- }, Q[C] ?? "");
102
+ }, z[K] ?? "");
114
103
  M(async () => {
115
- const t = Y();
116
- t.payload.data[C] = await _();
117
- }), f(() => ue({
118
- serverState: k,
119
- authenticationState: v,
104
+ const e = P();
105
+ e.payload.data[K] = await k();
106
+ }), d(() => ue({
107
+ serverState: S,
108
+ authenticationState: y,
120
109
  operation: n.operation,
121
110
  globalSecurity: c == null ? void 0 : c()
122
111
  }));
123
- const A = f(() => {
124
- var e, o;
125
- const t = (
112
+ const T = d(() => {
113
+ var t, o;
114
+ const e = (
126
115
  // Specified language
127
- ((e = s.value) == null ? void 0 : e.targetKey) === "customExamples" ? ((o = i.value[s.value.clientKey]) == null ? void 0 : o.lang) ?? "plaintext" : (
116
+ ((t = s.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((o = i.value[s.value.clientKey]) == null ? void 0 : o.lang) ?? "plaintext" : (
128
117
  // Or language for the globally selected HTTP client
129
- r.targetKey
118
+ a.targetKey
130
119
  )
131
120
  );
132
- return t === "shell" && b.value.includes("curl") ? "curl" : t === "Objective-C" ? "objc" : t;
133
- }), U = f(() => {
134
- const t = E.value.map((e) => ({
135
- value: e.key,
136
- label: e.title,
137
- options: e.clients.map((o) => ({
121
+ return e === "shell" && q.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
122
+ }), w = d(() => {
123
+ const e = C.value.map((t) => ({
124
+ value: t.key,
125
+ label: t.title,
126
+ options: t.clients.map((o) => ({
138
127
  value: JSON.stringify({
139
- targetKey: e.key,
128
+ targetKey: t.key,
140
129
  clientKey: o.key
141
130
  }),
142
131
  label: o.title
143
132
  }))
144
133
  }));
145
- return i.value.length && t.unshift({
134
+ return i.value.length && e.unshift({
146
135
  value: "customExamples",
147
136
  label: "Examples",
148
- options: i.value.map((e, o) => ({
137
+ options: i.value.map((t, o) => ({
149
138
  value: JSON.stringify({
150
139
  targetKey: "customExamples",
151
140
  clientKey: o
152
141
  }),
153
- label: e.label ?? e.lang ?? `Example #${o + 1}`
142
+ label: t.label ?? t.lang ?? `Example #${o + 1}`
154
143
  }))
155
- }), t;
144
+ }), e;
156
145
  });
157
- function J(t) {
158
- const e = JSON.parse(t);
159
- e.targetKey === "customExamples" ? s.value = e : $(e);
146
+ function A(e) {
147
+ const t = JSON.parse(e);
148
+ t.targetKey === "customExamples" ? s.value = t : $(t);
160
149
  }
161
- return (t, e) => a(E).length || i.value.length ? (y(), V(a(oe), {
150
+ return (e, t) => r(C).length || i.value.length ? (f(), V(r(ee), {
162
151
  key: 0,
163
152
  class: "dark-mode"
164
153
  }, {
165
- default: p(() => [
166
- u(a(re), { muted: "" }, {
167
- actions: p(() => [
168
- u(ee, {
154
+ default: u(() => [
155
+ m(r(te), { muted: "" }, {
156
+ actions: u(() => [
157
+ m(Z, {
169
158
  class: "request-client-picker",
170
159
  modelValue: JSON.stringify(s.value),
171
- options: U.value,
172
- "onUpdate:modelValue": J
160
+ options: w.value,
161
+ "onUpdate:modelValue": A
173
162
  }, {
174
- default: p(() => [
175
- s.value.targetKey === "customExamples" ? (y(), h(H, { key: 0 }, [
176
- O(K(i.value[s.value.clientKey].label ?? "Example"), 1)
177
- ], 64)) : (y(), h(H, { key: 1 }, [
178
- O(K(a(w)) + " " + K(a(F)), 1)
163
+ default: u(() => [
164
+ s.value.targetKey === "customExamples" ? (f(), v(O, { key: 0 }, [
165
+ R(g(i.value[s.value.clientKey].label ?? "Example"), 1)
166
+ ], 64)) : (f(), v(O, { key: 1 }, [
167
+ R(g(r(j)) + " " + g(r(F)), 1)
179
168
  ], 64))
180
169
  ]),
181
170
  _: 1
182
171
  }, 8, ["modelValue", "options"])
183
172
  ]),
184
- default: p(() => [
185
- N("div", ye, [
186
- u(a(ae), {
173
+ default: u(() => [
174
+ H("div", fe, [
175
+ m(r(oe), {
187
176
  as: "span",
188
177
  class: "request-method",
189
- method: t.operation.httpVerb
178
+ method: e.operation.httpVerb
190
179
  }, null, 8, ["method"]),
191
- j(t.$slots, "header", {}, void 0, !0)
180
+ N(e.$slots, "header", {}, void 0, !0)
192
181
  ])
193
182
  ]),
194
183
  _: 3
195
184
  }),
196
- u(a(ne), {
185
+ m(r(re), {
197
186
  borderless: "",
198
187
  class: "request-editor-section custom-scroll",
199
188
  frameless: ""
200
189
  }, {
201
- default: p(() => [
202
- N("div", ve, [
203
- u(a(z), {
190
+ default: u(() => [
191
+ H("div", ye, [
192
+ m(r(Y), {
204
193
  class: "bg-b-2",
205
- content: a(b),
206
- hideCredentials: a(se)(a(v)),
207
- lang: A.value,
194
+ content: r(q),
195
+ hideCredentials: r(ae)(r(y)),
196
+ lang: T.value,
208
197
  lineNumbers: ""
209
198
  }, null, 8, ["content", "hideCredentials", "lang"])
210
199
  ])
211
200
  ]),
212
201
  _: 1
213
202
  }),
214
- q.value || t.$slots.footer ? (y(), V(a(ie), {
203
+ E.value || e.$slots.footer ? (f(), V(r(se), {
215
204
  key: 0,
216
205
  class: "request-card-footer",
217
206
  contrast: ""
218
207
  }, {
219
- default: p(() => {
220
- var o, l, m, d;
208
+ default: u(() => {
209
+ var o, l, p, _;
221
210
  return [
222
- q.value ? (y(), h("div", ge, [
223
- u(G, {
211
+ E.value ? (f(), v("div", ve, [
212
+ m(X, {
224
213
  class: "request-example-selector",
225
- examples: ((d = (m = (l = (o = t.operation.information) == null ? void 0 : o.requestBody) == null ? void 0 : l.content) == null ? void 0 : m["application/json"]) == null ? void 0 : d.examples) ?? [],
226
- "onUpdate:modelValue": e[0] || (e[0] = (g) => S.value = g)
214
+ examples: ((_ = (p = (l = (o = e.operation.information) == null ? void 0 : o.requestBody) == null ? void 0 : l.content) == null ? void 0 : p["application/json"]) == null ? void 0 : _.examples) ?? [],
215
+ "onUpdate:modelValue": t[0] || (t[0] = (J) => x.value = J)
227
216
  }, null, 8, ["examples"])
228
- ])) : x("", !0),
229
- j(t.$slots, "footer", {}, void 0, !0)
217
+ ])) : h("", !0),
218
+ N(e.$slots, "footer", {}, void 0, !0)
230
219
  ];
231
220
  }),
232
221
  _: 3
233
- })) : x("", !0)
222
+ })) : h("", !0)
234
223
  ]),
235
224
  _: 3
236
- })) : x("", !0);
225
+ })) : h("", !0);
237
226
  }
238
227
  });
239
228
  export {
240
- Pe as default
229
+ Je as default
241
230
  };
@@ -1,8 +1,8 @@
1
- import type { ExampleResponseHeaders } from '../../../../types';
1
+ import type { OpenAPI } from '@scalar/openapi-types';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
- headers: ExampleResponseHeaders;
3
+ response: OpenAPI.ResponseObject;
4
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
- headers: ExampleResponseHeaders;
5
+ response: OpenAPI.ResponseObject;
6
6
  }>>>, {}, {}>;
7
7
  export default _default;
8
8
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -14,4 +14,4 @@ type __VLS_TypePropsToOption<T> = {
14
14
  required: true;
15
15
  };
16
16
  };
17
- //# sourceMappingURL=Headers.vue.d.ts.map
17
+ //# sourceMappingURL=ExampleResponse.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleResponses/ExampleResponse.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;;cAKxC,OAAO,CAAC,cAAc;;cAAtB,OAAO,CAAC,cAAc;;AA2GlC,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"}
@@ -0,0 +1,7 @@
1
+ import o from "./ExampleResponse.vue2.js";
2
+ /* empty css */
3
+ import p from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-908bf679"]]);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as c, openBlock as n, createBlock as a, unref as e, createElementBlock as i } from "vue";
2
+ import { ScalarCodeBlock as m } from "@scalar/components";
3
+ import { prettyPrintJson as l } from "@scalar/oas-utils/helpers";
4
+ import { getExampleFromSchema as d } from "@scalar/oas-utils/spec-getters";
5
+ const f = {
6
+ key: 2,
7
+ class: "empty-state"
8
+ }, B = /* @__PURE__ */ c({
9
+ __name: "ExampleResponse",
10
+ props: {
11
+ response: {}
12
+ },
13
+ setup(k) {
14
+ return (o, u) => {
15
+ var s, t, r, p;
16
+ return (s = o.response) != null && s.example ? (n(), a(e(m), {
17
+ key: 0,
18
+ class: "bg-b-2",
19
+ content: e(l)((t = o.response) == null ? void 0 : t.example),
20
+ lang: "json"
21
+ }, null, 8, ["content"])) : (r = o.response) != null && r.schema ? (n(), a(e(m), {
22
+ key: 1,
23
+ class: "bg-b-2",
24
+ content: e(l)(
25
+ e(d)((p = o.response) == null ? void 0 : p.schema, {
26
+ emptyString: "…",
27
+ mode: "read"
28
+ })
29
+ ),
30
+ lang: "json"
31
+ }, null, 8, ["content"])) : (n(), i("div", f, " No Body "));
32
+ };
33
+ }
34
+ });
35
+ export {
36
+ B as default
37
+ };
@@ -14,4 +14,4 @@ type __VLS_TypePropsToOption<T> = {
14
14
  required: true;
15
15
  };
16
16
  };
17
- //# sourceMappingURL=PathResponses.vue.d.ts.map
17
+ //# sourceMappingURL=ExampleResponses.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleResponses/ExampleResponses.vue"],"names":[],"mappings":"AAqTA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eAoB7B,oBAAoB;;eAApB,oBAAoB;;AAoXvD,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"}
@@ -0,0 +1,7 @@
1
+ import o from "./ExampleResponses.vue2.js";
2
+ /* empty css */
3
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0696399e"]]);
5
+ export {
6
+ m as default
7
+ };