@scalar/api-client 2.29.4 → 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 (106) hide show
  1. package/CHANGELOG.md +95 -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/operation-block/OperationBlock.vue.d.ts +9 -69
  10. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  11. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +74 -76
  12. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +15 -8
  13. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  15. package/dist/v2/blocks/operation-block/components/Header.vue2.js +29 -28
  16. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +1 -1
  17. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  18. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +18 -21
  19. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  20. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  21. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +22 -21
  22. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +12 -0
  23. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  24. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +12 -0
  25. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  26. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  27. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +2 -2
  28. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +1 -1
  29. package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +1 -1
  30. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +13 -8
  31. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  32. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  33. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +97 -85
  34. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -7
  35. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  36. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
  37. package/dist/v2/components/data-table/DataTableCell.vue.js +1 -1
  38. package/dist/v2/components/server/ServerDropdown.vue.d.ts +16 -5
  39. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  40. package/dist/v2/components/server/ServerDropdown.vue.js +27 -24
  41. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  42. package/dist/v2/features/app/app-events.js +29 -14
  43. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  44. package/dist/v2/features/app/app-state.js +57 -57
  45. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  46. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  47. package/dist/v2/features/app/components/AppSidebar.vue2.js +171 -148
  48. package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
  49. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +1 -1
  50. package/dist/v2/features/app/helpers/routes.d.ts +42 -12
  51. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  52. package/dist/v2/features/app/helpers/routes.js +57 -26
  53. package/dist/v2/features/collection/OperationCollection.vue.d.ts +6 -0
  54. package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +1 -0
  55. package/dist/v2/features/collection/OperationCollection.vue.js +83 -0
  56. package/dist/v2/features/collection/OperationCollection.vue2.js +4 -0
  57. package/dist/v2/features/collection/components/Authentication.vue.d.ts +2 -2
  58. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  59. package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
  60. package/dist/v2/features/collection/components/Authentication.vue2.js +100 -49
  61. package/dist/v2/features/collection/components/Cookies.vue.d.ts +9 -4
  62. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  63. package/dist/v2/features/collection/components/Cookies.vue.js +12 -10
  64. package/dist/v2/features/collection/components/Environment.vue.d.ts +9 -4
  65. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  66. package/dist/v2/features/collection/components/Environment.vue.js +18 -16
  67. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +6 -2
  68. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
  69. package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
  70. package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -18
  71. package/dist/v2/features/collection/components/Overview.vue.d.ts +2 -2
  72. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
  73. package/dist/v2/features/collection/components/Overview.vue.js +1 -1
  74. package/dist/v2/features/collection/components/Overview.vue2.js +177 -75
  75. package/dist/v2/features/collection/components/Servers.vue.d.ts +2 -2
  76. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  77. package/dist/v2/features/collection/components/Servers.vue.js +154 -98
  78. package/dist/v2/features/collection/components/Settings.vue.d.ts +2 -2
  79. package/dist/v2/features/collection/components/Tabs.vue.d.ts +2 -1
  80. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
  81. package/dist/v2/features/collection/components/Tabs.vue.js +25 -27
  82. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +12 -0
  83. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +1 -0
  84. package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +13 -0
  85. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  86. package/dist/v2/features/operation/Operation.vue.js +61 -63
  87. package/dist/v2/features/operation/helpers/get-selected-security.d.ts +5 -3
  88. package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
  89. package/dist/v2/features/operation/helpers/get-selected-security.js +7 -8
  90. package/dist/v2/features/operation/helpers/get-selected-server.d.ts +8 -6
  91. package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -1
  92. package/dist/v2/features/operation/helpers/get-selected-server.js +2 -2
  93. package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -1
  94. package/dist/v2/helpers/drag-handle-factory.js +41 -41
  95. package/dist/v2/workspace-events.d.ts.map +1 -1
  96. package/dist/v2/workspace-events.js +25 -15
  97. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  98. package/dist/views/Request/RequestSidebarItem.vue2.js +24 -24
  99. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  100. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
  101. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +1 -1
  102. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  103. package/package.json +17 -17
  104. package/dist/v2/helpers/remove-circular.d.ts +0 -15
  105. package/dist/v2/helpers/remove-circular.d.ts.map +0 -1
  106. package/dist/v2/helpers/remove-circular.js +0 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,100 @@
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
+
44
+ ## 2.31.0
45
+
46
+ ### Minor Changes
47
+
48
+ - [#8290](https://github.com/scalar/scalar/pull/8290): chore: update deps
49
+
50
+ ### Patch Changes
51
+
52
+ #### Updated Dependencies
53
+
54
+ - **@scalar/oas-utils@0.8.0**
55
+ - [#8290](https://github.com/scalar/scalar/pull/8290): chore: update deps
56
+
57
+ - **@scalar/components@0.19.12**
58
+ - [#8290](https://github.com/scalar/scalar/pull/8290): chore: update deps
59
+
60
+ - **@scalar/themes@0.14.2**
61
+ - [#8290](https://github.com/scalar/scalar/pull/8290): chore: update deps
62
+
63
+ - **@scalar/workspace-store@0.35.1**
64
+ - [#8290](https://github.com/scalar/scalar/pull/8290): chore: update deps
65
+
66
+ - **@scalar/sidebar@0.7.43**
67
+
68
+ - **@scalar/use-codemirror@0.13.47**
69
+
70
+ ## 2.30.0
71
+
72
+ ### Minor Changes
73
+
74
+ - [#8234](https://github.com/scalar/scalar/pull/8234): support operation level authentication and servers
75
+
76
+ ### Patch Changes
77
+
78
+ - [#8255](https://github.com/scalar/scalar/pull/8255): fix: correctly handle circular references when deep resolving references
79
+
80
+ #### Updated Dependencies
81
+
82
+ - **@scalar/components@0.19.11**
83
+ - [#8276](https://github.com/scalar/scalar/pull/8276): feat(components): standardize form inputs to have a height of 40px
84
+
85
+ - **@scalar/themes@0.14.1**
86
+ - [#8276](https://github.com/scalar/scalar/pull/8276): feat(components): standardize form inputs to have a height of 40px
87
+
88
+ - **@scalar/workspace-store@0.35.0**
89
+ - [#8234](https://github.com/scalar/scalar/pull/8234): support operation level authentication and servers
90
+
91
+ - **@scalar/oas-utils@0.7.0**
92
+ - [#8234](https://github.com/scalar/scalar/pull/8234): support operation level authentication and servers
93
+
94
+ - **@scalar/sidebar@0.7.42**
95
+
96
+ - **@scalar/use-codemirror@0.13.46**
97
+
3
98
  ## 2.29.4
4
99
 
5
100
  ### Patch 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")