@scalar/api-client 2.31.0 → 2.31.2

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 (39) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/components/DataTable/DataTableCell.vue.js +1 -1
  3. package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
  4. package/dist/components/Server/ServerSelector.vue.js +5 -5
  5. package/dist/components/Sidebar/Sidebar.vue.js +3 -3
  6. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  7. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
  8. package/dist/style.css +1 -1
  9. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  10. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  11. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +20 -19
  12. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  13. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +2 -2
  14. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +1 -1
  15. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +1 -1
  16. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -7
  17. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  18. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
  19. package/dist/v2/components/data-table/DataTableCell.vue.js +1 -1
  20. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  21. package/dist/v2/features/app/components/AppSidebar.vue2.js +1 -1
  22. package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
  23. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +1 -1
  24. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  25. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  26. package/dist/v2/features/collection/components/Authentication.vue2.js +21 -20
  27. package/dist/v2/features/operation/Operation.vue.js +1 -1
  28. package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -1
  29. package/dist/v2/helpers/drag-handle-factory.js +41 -41
  30. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  31. package/dist/views/Request/RequestSidebarItem.vue2.js +24 -24
  32. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  33. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
  34. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +1 -1
  35. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  36. package/package.json +18 -18
  37. package/dist/v2/helpers/remove-circular.d.ts +0 -15
  38. package/dist/v2/helpers/remove-circular.d.ts.map +0 -1
  39. package/dist/v2/helpers/remove-circular.js +0 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,63 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.31.2
4
+
5
+ ### Patch Changes
6
+
7
+ #### Updated Dependencies
8
+
9
+ - **@scalar/themes@0.14.3**
10
+ - [#8315](https://github.com/scalar/scalar/pull/8315): feat(theme): standardize tailwind line height behavior
11
+
12
+ - **@scalar/components@0.19.14**
13
+
14
+ - **@scalar/oas-utils@0.8.2**
15
+
16
+ - **@scalar/sidebar@0.7.45**
17
+
18
+ - **@scalar/use-codemirror@0.13.49**
19
+
20
+ ## 2.31.1
21
+
22
+ ### Patch Changes
23
+
24
+ - [#8310](https://github.com/scalar/scalar/pull/8310): refactor: move helpers to the helpers package to share primitive helpers
25
+ - [#8294](https://github.com/scalar/scalar/pull/8294): default createAnySecurityScheme to false and fix index clamp issue
26
+
27
+ #### Updated Dependencies
28
+
29
+ - **@scalar/workspace-store@0.35.2**
30
+ - [#8310](https://github.com/scalar/scalar/pull/8310): refactor: move helpers to the helpers package to share primitive helpers
31
+ - [#8294](https://github.com/scalar/scalar/pull/8294): default createAnySecurityScheme to false and fix index clamp issue
32
+ - [#8287](https://github.com/scalar/scalar/pull/8287): consider path-level parameters in syncPathParameters instead of creating bare synthetic ones
33
+
34
+ - **@scalar/helpers@0.2.17**
35
+ - [#8310](https://github.com/scalar/scalar/pull/8310): refactor: move helpers to the helpers package to share primitive helpers
36
+
37
+ - **@scalar/json-magic@0.11.6**
38
+ - [#8310](https://github.com/scalar/scalar/pull/8310): fix: properly parse json pointers
39
+
40
+ - **@scalar/oas-utils@0.8.1**
41
+ - [#8310](https://github.com/scalar/scalar/pull/8310): fix: correctly handle circular documents during the migration to indexdb
42
+
43
+ - **@scalar/sidebar@0.7.44**
44
+
45
+ - **@scalar/components@0.19.13**
46
+
47
+ - **@scalar/import@0.4.54**
48
+
49
+ - **@scalar/object-utils@1.2.31**
50
+
51
+ - **@scalar/openapi-parser@0.24.16**
52
+
53
+ - **@scalar/postman-to-openapi@0.4.9**
54
+
55
+ - **@scalar/types@0.6.9**
56
+
57
+ - **@scalar/use-codemirror@0.13.48**
58
+
59
+ - **@scalar/snippetz@0.6.18**
60
+
3
61
  ## 2.31.0
4
62
 
5
63
  ### Minor Changes
@@ -10,7 +10,7 @@ const f = /* @__PURE__ */ o({
10
10
  const { cx: r } = i();
11
11
  return (t, m) => (n(), a(l(e.is), s(
12
12
  b(r)(
13
- "box-content max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-base last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
13
+ "box-content max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-base/5 last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
14
14
  ),
15
15
  { class: "group-[.alert]:bg-b-alert group-[.error]:bg-b-danger" }
16
16
  ), {
@@ -1 +1 @@
1
- {"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerSelector.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAUzE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;AAgNF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ServerSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerSelector.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAUzE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;AA+MF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -4,7 +4,7 @@ import { ScalarIconCaretDown as U } from "@scalar/icons";
4
4
  import { useWorkspace as V } from "../../store/store.js";
5
5
  const B = { class: "overflow-x-auto" }, W = {
6
6
  key: 1,
7
- class: "text-c-1 flex h-auto w-full items-center gap-0.75 rounded-b-xl px-3 py-1.5 text-base leading-[20px] whitespace-nowrap"
7
+ class: "text-c-1 flex h-auto w-full items-center gap-0.75 rounded-b-xl px-3 py-1.5 text-base/5 whitespace-nowrap"
8
8
  }, z = { class: "overflow-x-auto" }, j = /* @__PURE__ */ g({
9
9
  __name: "ServerSelector",
10
10
  props: {
@@ -47,12 +47,12 @@ const B = { class: "overflow-x-auto" }, W = {
47
47
  key: 0,
48
48
  modelValue: c.value,
49
49
  "onUpdate:modelValue": e[0] || (e[0] = (S) => c.value = S),
50
+ class: "group",
50
51
  options: s.value,
51
52
  placement: "bottom-start",
52
53
  resize: "",
53
54
  target: t.target,
54
- teleport: `#${t.target}`,
55
- class: "group"
55
+ teleport: `#${t.target}`
56
56
  }, {
57
57
  default: f(() => [
58
58
  m(n(k), {
@@ -63,8 +63,8 @@ const B = { class: "overflow-x-auto" }, W = {
63
63
  e[1] || (e[1] = l("span", { class: "sr-only" }, "Server:", -1)),
64
64
  l("span", B, x(d.value), 1),
65
65
  m(n(U), {
66
- weight: "bold",
67
- class: "text-c-2 ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100"
66
+ class: "text-c-2 ui-open:rotate-180 mt-px size-3 transition-transform duration-100",
67
+ weight: "bold"
68
68
  })
69
69
  ]),
70
70
  _: 1
@@ -1,7 +1,7 @@
1
- import o from "./Sidebar.vue2.js";
1
+ import a from "./Sidebar.vue2.js";
2
2
  /* empty css */
3
- import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-dcff7b49"]]);
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-7aa06e5a"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -29,7 +29,7 @@ const I = {
29
29
  return (e, b) => D((m(), l("aside", {
30
30
  ref_key: "sidebarRef",
31
31
  ref: f,
32
- class: y(["sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-3 md:min-w-fit md:flex-none md:border-r md:border-b-0", { dragging: a.value }]),
32
+ class: y(["sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-5 md:min-w-fit md:flex-none md:border-r md:border-b-0", { dragging: a.value }]),
33
33
  style: L({ width: t(d).lg ? t(o) : "100%" })
34
34
  }, [
35
35
  r(e.$slots, "header", {}, void 0, !0),
@@ -6,7 +6,7 @@ const u = /* @__PURE__ */ o({
6
6
  const { cx: e } = a();
7
7
  return (r, s) => (n(), t("div", l(d(
8
8
  f(e)(
9
- "flex flex-col min-h-0 flex-1 *:border-t first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-3"
9
+ "flex flex-col min-h-0 flex-1 *:border-t first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-5"
10
10
  )
11
11
  )), [
12
12
  i(r.$slots, "default")