@scalar/api-client 2.31.0 → 2.31.1

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 +41 -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 +16 -16
  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,46 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.31.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8310](https://github.com/scalar/scalar/pull/8310): refactor: move helpers to the helpers package to share primitive helpers
8
+ - [#8294](https://github.com/scalar/scalar/pull/8294): default createAnySecurityScheme to false and fix index clamp issue
9
+
10
+ #### Updated Dependencies
11
+
12
+ - **@scalar/workspace-store@0.35.2**
13
+ - [#8310](https://github.com/scalar/scalar/pull/8310): refactor: move helpers to the helpers package to share primitive helpers
14
+ - [#8294](https://github.com/scalar/scalar/pull/8294): default createAnySecurityScheme to false and fix index clamp issue
15
+ - [#8287](https://github.com/scalar/scalar/pull/8287): consider path-level parameters in syncPathParameters instead of creating bare synthetic ones
16
+
17
+ - **@scalar/helpers@0.2.17**
18
+ - [#8310](https://github.com/scalar/scalar/pull/8310): refactor: move helpers to the helpers package to share primitive helpers
19
+
20
+ - **@scalar/json-magic@0.11.6**
21
+ - [#8310](https://github.com/scalar/scalar/pull/8310): fix: properly parse json pointers
22
+
23
+ - **@scalar/oas-utils@0.8.1**
24
+ - [#8310](https://github.com/scalar/scalar/pull/8310): fix: correctly handle circular documents during the migration to indexdb
25
+
26
+ - **@scalar/sidebar@0.7.44**
27
+
28
+ - **@scalar/components@0.19.13**
29
+
30
+ - **@scalar/import@0.4.54**
31
+
32
+ - **@scalar/object-utils@1.2.31**
33
+
34
+ - **@scalar/openapi-parser@0.24.16**
35
+
36
+ - **@scalar/postman-to-openapi@0.4.9**
37
+
38
+ - **@scalar/types@0.6.9**
39
+
40
+ - **@scalar/use-codemirror@0.13.48**
41
+
42
+ - **@scalar/snippetz@0.6.18**
43
+
3
44
  ## 2.31.0
4
45
 
5
46
  ### 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")