@scalar/api-client 2.3.32 → 2.3.34

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 (105) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue2.js +63 -61
  5. package/dist/components/DataTable/DataTable.vue.js +1 -1
  6. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  7. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +58 -48
  8. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -2
  9. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  10. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +34 -32
  11. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  12. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
  13. package/dist/hooks/useClientConfig.d.ts +3 -0
  14. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  15. package/dist/layouts/App/create-api-client-app.d.ts +64 -24
  16. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  17. package/dist/layouts/Modal/create-api-client-modal.d.ts +128 -48
  18. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  19. package/dist/layouts/Web/create-api-client-web.d.ts +64 -24
  20. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  21. package/dist/libs/create-client.d.ts +64 -24
  22. package/dist/libs/create-client.d.ts.map +1 -1
  23. package/dist/libs/index.js +32 -29
  24. package/dist/libs/local-storage.d.ts +8 -0
  25. package/dist/libs/local-storage.d.ts.map +1 -1
  26. package/dist/libs/local-storage.js +28 -24
  27. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  28. package/dist/libs/send-request/create-request-operation.js +8 -8
  29. package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
  30. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  31. package/dist/libs/send-request/decode-buffer.js +4 -4
  32. package/dist/libs/send-request/index.d.ts +1 -0
  33. package/dist/libs/send-request/index.d.ts.map +1 -1
  34. package/dist/libs/send-request/index.js +6 -4
  35. package/dist/store/active-entities.d.ts +2 -2
  36. package/dist/store/active-entities.d.ts.map +1 -1
  37. package/dist/store/request-example.d.ts +22 -22
  38. package/dist/store/request-example.d.ts.map +1 -1
  39. package/dist/store/security-schemes.d.ts +42 -2
  40. package/dist/store/security-schemes.d.ts.map +1 -1
  41. package/dist/store/store.d.ts +64 -24
  42. package/dist/store/store.d.ts.map +1 -1
  43. package/dist/style.css +1 -1
  44. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
  45. package/dist/views/Collection/CollectionAuthentication.vue.js +1 -1
  46. package/dist/views/Collection/CollectionAuthentication.vue2.js +32 -32
  47. package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -1
  48. package/dist/views/Collection/CollectionEnvironment.vue.js +3 -2
  49. package/dist/views/Collection/CollectionEnvironment.vue2.js +233 -9
  50. package/dist/views/Collection/CollectionNavigation.vue.js +36 -36
  51. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  52. package/dist/views/Collection/CollectionServers.vue2.js +6 -6
  53. package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +13 -0
  54. package/dist/views/Collection/components/EnvironmentForm.vue.d.ts.map +1 -0
  55. package/dist/views/Collection/components/EnvironmentForm.vue.js +7 -0
  56. package/dist/views/Collection/components/EnvironmentForm.vue2.js +274 -0
  57. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
  58. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +35 -34
  59. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  60. package/dist/views/Environment/EnvironmentModal.vue.js +32 -28
  61. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -0
  62. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  63. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +67 -65
  64. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  65. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +94 -97
  66. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -0
  67. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  68. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  69. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +116 -99
  70. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -0
  71. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  72. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
  73. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +27 -25
  74. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -0
  75. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  76. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  77. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +114 -73
  78. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  79. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  80. package/dist/views/Request/RequestSection/RequestSection.vue2.js +15 -15
  81. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  82. package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
  83. package/dist/views/Request/RequestSection/RequestTable.vue2.js +42 -40
  84. package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +8 -0
  85. package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +1 -0
  86. package/dist/views/Request/RequestSection/helpers/update-scheme.js +17 -0
  87. package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts +2 -0
  88. package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts.map +1 -0
  89. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  90. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  91. package/dist/views/Request/RequestSidebar.vue2.js +87 -84
  92. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  93. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +21 -21
  94. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
  95. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +11 -11
  96. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  97. package/dist/views/Request/consts/index.js +7 -5
  98. package/dist/views/Request/consts/mediaTypes.d.ts +4 -0
  99. package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -1
  100. package/dist/views/Request/consts/mediaTypes.js +21 -4
  101. package/dist/views/Request/consts/mediaTypes.test.d.ts +2 -0
  102. package/dist/views/Request/consts/mediaTypes.test.d.ts.map +1 -0
  103. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  104. package/dist/views/Request/libs/oauth2.js +53 -47
  105. package/package.json +14 -14
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAoCA,iBAAS,cAAc;WAuDT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAoCA,iBAAS,cAAc;WAwDT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,23 +1,23 @@
1
- import { defineComponent as n, createElementBlock as t, openBlock as o, normalizeProps as l, guardReactiveProps as i, unref as c, createCommentVNode as m, renderSlot as r } from "vue";
1
+ import { defineComponent as n, createElementBlock as t, openBlock as o, normalizeProps as l, guardReactiveProps as i, unref as m, createCommentVNode as c, renderSlot as r } from "vue";
2
2
  import { useBindCx as a } from "@scalar/components";
3
3
  const u = {
4
4
  key: 0,
5
- class: "request-response-header bg-b-1 z-1 sticky top-0 flex min-h-11 items-center border-b px-2.5 text-sm font-medium xl:rounded-none"
6
- }, _ = /* @__PURE__ */ n({
5
+ class: "request-response-header bg-b-1 z-1 -mb-1/2 sticky top-0 flex min-h-11 items-center border-b px-2.5 text-sm font-medium xl:rounded-none"
6
+ }, b = /* @__PURE__ */ n({
7
7
  inheritAttrs: !1,
8
8
  __name: "ViewLayoutSection",
9
9
  setup(d) {
10
10
  const { cx: s } = a();
11
11
  return (e, f) => (o(), t("section", l(i(
12
- c(s)("xl:custom-scroll bg-b-1 flex flex-1 flex-col xl:h-full xl:min-w-0")
12
+ m(s)("xl:custom-scroll bg-b-1 flex flex-1 flex-col xl:h-full xl:min-w-0")
13
13
  )), [
14
14
  e.$slots.title ? (o(), t("div", u, [
15
15
  r(e.$slots, "title")
16
- ])) : m("", !0),
16
+ ])) : c("", !0),
17
17
  r(e.$slots, "default")
18
18
  ], 16));
19
19
  }
20
20
  });
21
21
  export {
22
- _ as default
22
+ b as default
23
23
  };
@@ -6,6 +6,7 @@ export declare const useClientConfig: () => Ref<{
6
6
  hideClientButton: boolean;
7
7
  showSidebar: boolean;
8
8
  theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
9
+ persistAuth: boolean;
9
10
  url?: string | undefined;
10
11
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
11
12
  title?: string | undefined;
@@ -27,6 +28,7 @@ export declare const useClientConfig: () => Ref<{
27
28
  hideClientButton: boolean;
28
29
  showSidebar: boolean;
29
30
  theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
31
+ persistAuth: boolean;
30
32
  url?: string | undefined;
31
33
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
32
34
  title?: string | undefined;
@@ -48,6 +50,7 @@ export declare const useClientConfig: () => Ref<{
48
50
  hideClientButton: boolean;
49
51
  showSidebar: boolean;
50
52
  theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
53
+ persistAuth: boolean;
51
54
  url?: string | undefined;
52
55
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
53
56
  title?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;+CACogP,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAA2wB,GAAI;;;;;;+CAAn/B,GAAG;;;;WAAoJ,CAAC;eAAqC,CAAC,mCAAmC,GAAG;aAA0E,CAAC;YAAkC,CAAC;;;;;;;;sCAA6pB,GAAI;;;;;;+CAAn/B,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAA2wB,GAAI;EAD95Q,CAAA"}
1
+ {"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;;+CAC0pP,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAA2wB,GAAI;;;;;;;+CAAn/B,GAAG;;;;WAAoJ,CAAC;eAAqC,CAAC,mCAAmC,GAAG;aAA0E,CAAC;YAAkC,CAAC;;;;;;;;sCAA6pB,GAAI;;;;;;;+CAAn/B,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAA2wB,GAAI;EADpjR,CAAA"}