@scalar/api-reference 1.25.76 → 1.25.77

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 +18 -0
  2. package/dist/browser/standalone.js +23395 -23409
  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 +41 -56
  6. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +3 -3
  9. package/dist/components/ApiReferenceLayout.vue2.js +140 -123
  10. package/dist/components/Content/Content.vue.d.ts +0 -1
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +1 -1
  13. package/dist/components/Content/Content.vue2.js +67 -62
  14. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Lazy/Loading.vue.js +74 -69
  16. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Tag/TagList.vue.js +37 -33
  18. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts +1 -1
  19. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  20. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +60 -60
  21. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  22. package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
  23. package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
  24. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  25. package/dist/features/ApiClientModal/ApiClientModal.vue.js +20 -18
  26. package/dist/features/ApiClientModal/useApiClient.d.ts +149 -138
  27. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  28. package/dist/features/ApiClientModal/useApiClient.js +6 -6
  29. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  30. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
  31. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
  32. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +3 -3
  33. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +3 -3
  34. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
  35. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +2 -2
  36. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +3 -0
  37. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  38. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  39. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +121 -147
  40. package/dist/features/Operation/Operation.vue.d.ts +6 -4
  41. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  42. package/dist/features/Operation/Operation.vue.js +30 -13
  43. package/dist/features/Operation/hooks/useRequestExample.d.ts +17 -0
  44. package/dist/features/Operation/hooks/useRequestExample.d.ts.map +1 -0
  45. package/dist/features/Operation/hooks/useRequestExample.js +68 -0
  46. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
  47. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  48. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  49. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +47 -41
  50. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
  51. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  52. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  53. package/dist/features/Operation/layouts/ModernLayout.vue2.js +52 -48
  54. package/dist/helpers/convertRequestToHarRequest.d.ts +7 -0
  55. package/dist/helpers/convertRequestToHarRequest.d.ts.map +1 -0
  56. package/dist/helpers/convertRequestToHarRequest.js +64 -0
  57. package/dist/helpers/get-request.d.ts +40 -0
  58. package/dist/helpers/get-request.d.ts.map +1 -0
  59. package/dist/helpers/get-request.js +6 -0
  60. package/dist/helpers/getExampleCode.d.ts +2 -2
  61. package/dist/helpers/getExampleCode.d.ts.map +1 -1
  62. package/dist/helpers/getExampleCode.js +19 -16
  63. package/dist/helpers/index.d.ts +1 -3
  64. package/dist/helpers/index.d.ts.map +1 -1
  65. package/dist/helpers/provideSymbols.d.ts +0 -5
  66. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  67. package/dist/helpers/provideSymbols.js +3 -4
  68. package/dist/hooks/useReactiveSpec.d.ts +1 -1
  69. package/dist/hooks/useSidebar.d.ts.map +1 -1
  70. package/dist/index.js +77 -85
  71. package/dist/legacy/helpers/getUrlFromServerState.js +8 -8
  72. package/dist/legacy/helpers/index.d.ts +0 -10
  73. package/dist/legacy/helpers/index.d.ts.map +1 -1
  74. package/dist/legacy/stores/index.d.ts +0 -3
  75. package/dist/legacy/stores/index.d.ts.map +1 -1
  76. package/dist/stores/index.d.ts +0 -1
  77. package/dist/stores/index.d.ts.map +1 -1
  78. package/dist/style.css +1 -1
  79. package/package.json +4 -4
  80. package/dist/components/Content/Authentication/Authentication.vue.d.ts +0 -8
  81. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +0 -1
  82. package/dist/components/Content/Authentication/Authentication.vue.js +0 -7
  83. package/dist/components/Content/Authentication/Authentication.vue2.js +0 -62
  84. package/dist/components/Content/Authentication/index.d.ts +0 -2
  85. package/dist/components/Content/Authentication/index.d.ts.map +0 -1
  86. package/dist/helpers/createRequest.d.ts +0 -6
  87. package/dist/helpers/createRequest.d.ts.map +0 -1
  88. package/dist/helpers/createRequest.js +0 -16
  89. package/dist/helpers/getApiClientRequest.d.ts +0 -13
  90. package/dist/helpers/getApiClientRequest.d.ts.map +0 -1
  91. package/dist/helpers/getApiClientRequest.js +0 -43
  92. package/dist/helpers/getHarRequest.d.ts +0 -4
  93. package/dist/helpers/getHarRequest.d.ts.map +0 -1
  94. package/dist/helpers/getHarRequest.js +0 -34
  95. package/dist/legacy/components/CardForm.vue.d.ts +0 -18
  96. package/dist/legacy/components/CardForm.vue.d.ts.map +0 -1
  97. package/dist/legacy/components/CardForm.vue.js +0 -13
  98. package/dist/legacy/components/CardFormButton.vue.d.ts +0 -22
  99. package/dist/legacy/components/CardFormButton.vue.d.ts.map +0 -1
  100. package/dist/legacy/components/CardFormButton.vue.js +0 -7
  101. package/dist/legacy/components/CardFormButton.vue2.js +0 -18
  102. package/dist/legacy/components/CardFormGroup.vue.d.ts +0 -18
  103. package/dist/legacy/components/CardFormGroup.vue.d.ts.map +0 -1
  104. package/dist/legacy/components/CardFormGroup.vue.js +0 -13
  105. package/dist/legacy/components/CardFormRows.vue.d.ts +0 -18
  106. package/dist/legacy/components/CardFormRows.vue.d.ts.map +0 -1
  107. package/dist/legacy/components/CardFormRows.vue.js +0 -13
  108. package/dist/legacy/components/CardFormTextInput.vue.d.ts +0 -23
  109. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +0 -1
  110. package/dist/legacy/components/CardFormTextInput.vue.js +0 -7
  111. package/dist/legacy/components/CardFormTextInput.vue2.js +0 -53
  112. package/dist/legacy/components/SecurityScheme.vue.d.ts +0 -8
  113. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +0 -1
  114. package/dist/legacy/components/SecurityScheme.vue.js +0 -7
  115. package/dist/legacy/components/SecurityScheme.vue2.js +0 -393
  116. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +0 -13
  117. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +0 -1
  118. package/dist/legacy/components/SecuritySchemeScopes.vue.js +0 -7
  119. package/dist/legacy/components/SecuritySchemeScopes.vue2.js +0 -91
  120. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +0 -11
  121. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +0 -1
  122. package/dist/legacy/components/SecuritySchemeSelector.vue.js +0 -7
  123. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +0 -96
  124. package/dist/legacy/helpers/createPlaceholderRequest.d.ts +0 -6
  125. package/dist/legacy/helpers/createPlaceholderRequest.d.ts.map +0 -1
  126. package/dist/legacy/helpers/encodeStringAsBase64.js +0 -6
  127. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +0 -10
  128. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +0 -1
  129. package/dist/legacy/helpers/getRequestFromAuthentication.js +0 -83
  130. package/dist/legacy/helpers/humanDiff.d.ts +0 -5
  131. package/dist/legacy/helpers/humanDiff.d.ts.map +0 -1
  132. package/dist/legacy/helpers/mapFromArray.d.ts +0 -5
  133. package/dist/legacy/helpers/mapFromArray.d.ts.map +0 -1
  134. package/dist/legacy/helpers/normalizeHeaderName.d.ts +0 -5
  135. package/dist/legacy/helpers/normalizeHeaderName.d.ts.map +0 -1
  136. package/dist/legacy/helpers/normalizeHeaderName.js +0 -6
  137. package/dist/legacy/helpers/normalizeHeaders.d.ts +0 -8
  138. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +0 -1
  139. package/dist/legacy/helpers/normalizeHeaders.js +0 -22
  140. package/dist/legacy/helpers/normalizePath.d.ts +0 -5
  141. package/dist/legacy/helpers/normalizePath.d.ts.map +0 -1
  142. package/dist/legacy/helpers/normalizeUrl.d.ts +0 -5
  143. package/dist/legacy/helpers/normalizeUrl.d.ts.map +0 -1
  144. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +0 -24
  145. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts.map +0 -1
  146. package/dist/legacy/stores/useAuthenticationStore.d.ts +0 -55
  147. package/dist/legacy/stores/useAuthenticationStore.d.ts.map +0 -1
  148. package/dist/legacy/stores/useAuthenticationStore.js +0 -36
  149. package/dist/legacy/stores/useOpenApiStore.d.ts +0 -125
  150. package/dist/legacy/stores/useOpenApiStore.d.ts.map +0 -1
  151. package/dist/legacy/stores/useOpenApiStore.js +0 -9
  152. package/dist/legacy/stores/useRequestStore.d.ts +0 -62
  153. package/dist/legacy/stores/useRequestStore.d.ts.map +0 -1
@@ -1,18 +1,18 @@
1
- import { replaceVariables as h, REGEX as E } from "@scalar/oas-utils/helpers";
2
- function y(n, U) {
1
+ import { replaceVariables as b, REGEX as h } from "@scalar/oas-utils/helpers";
2
+ function x(r, E) {
3
3
  var l, p;
4
- const o = U ?? ((l = n == null ? void 0 : n.servers) == null ? void 0 : l[n.selectedServer ?? 0]);
4
+ const o = (l = r == null ? void 0 : r.servers) == null ? void 0 : l[r.selectedServer ?? 0];
5
5
  (p = o == null ? void 0 : o.url) != null && p.endsWith("/") && (o.url = o.url.slice(0, -1));
6
- const _ = o == null ? void 0 : o.url, r = typeof (o == null ? void 0 : o.url) == "string" ? h(o == null ? void 0 : o.url, n.variables) : o == null ? void 0 : o.url, i = r == null ? void 0 : r.match(E.PATH), b = (i == null ? void 0 : i.reduce((u, m) => {
6
+ const U = o == null ? void 0 : o.url, n = typeof (o == null ? void 0 : o.url) == "string" ? b(o == null ? void 0 : o.url, r.variables) : o == null ? void 0 : o.url, i = n == null ? void 0 : n.match(h.PATH), _ = (i == null ? void 0 : i.reduce((u, m) => {
7
7
  var g;
8
- const f = m.replace(/{|}/g, ""), a = (g = n.variables) == null ? void 0 : g[f];
8
+ const f = m.replace(/{|}/g, ""), a = (g = r.variables) == null ? void 0 : g[f];
9
9
  return u == null ? void 0 : u.replace(
10
10
  m,
11
11
  a || `__${f.toUpperCase()}__`
12
12
  );
13
- }, r)) ?? r;
14
- return { originalUrl: _, modifiedUrl: b };
13
+ }, n)) ?? n;
14
+ return { originalUrl: U, modifiedUrl: _ };
15
15
  }
16
16
  export {
17
- y as getUrlFromServerState
17
+ x as getUrlFromServerState
18
18
  };
@@ -1,13 +1,3 @@
1
- export * from './createPlaceholderRequest';
2
- export * from './encodeStringAsBase64.js';
3
- export * from './getRequestFromAuthentication.js';
4
1
  export * from './getUrlFromServerState.js';
5
- export * from './humanDiff';
6
- export * from './mapFromArray';
7
- export * from './normalizeHeaderName.js';
8
- export * from './normalizeHeaders.js';
9
- export * from './normalizePath';
10
2
  export * from './normalizeRequestMethod.js';
11
- export * from './normalizeUrl';
12
- export * from './prepareClientRequestConfig';
13
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/legacy/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,8BAA8B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/legacy/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA"}
@@ -1,6 +1,3 @@
1
- export * from './useAuthenticationStore.js';
2
- export * from './useOpenApiStore.js';
3
- export * from './useRequestStore';
4
1
  export * from './useServerStore.js';
5
2
  export * from './useExampleStore.js';
6
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/legacy/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/legacy/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA"}
@@ -1,3 +1,2 @@
1
1
  export * from './useHttpClientStore.js';
2
- export * from '../legacy/stores/useAuthenticationStore.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,yCAAyC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}