@scalar/api-client 2.17.8 → 2.18.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 +73 -0
  2. package/dist/hooks/useClientConfig.js +1 -1
  3. package/dist/hooks/useLayout.js +1 -1
  4. package/dist/hooks/useSidebar.js +1 -1
  5. package/dist/plugins/hooks/usePluginManager.js +1 -1
  6. package/dist/store/active-entities.js +1 -1
  7. package/dist/style.css +1 -1
  8. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  9. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  10. package/dist/v2/blocks/operation-block/helpers/build-request.js +46 -51
  11. package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
  12. package/dist/v2/blocks/operation-block/helpers/get-environment-variables.d.ts +9 -0
  13. package/dist/v2/blocks/operation-block/helpers/get-environment-variables.d.ts.map +1 -0
  14. package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js +7 -0
  15. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
  16. package/dist/v2/blocks/operation-block/helpers/get-example.js +12 -10
  17. package/dist/v2/blocks/operation-block/helpers/get-server-url.d.ts +3 -0
  18. package/dist/v2/blocks/operation-block/helpers/get-server-url.d.ts.map +1 -0
  19. package/dist/v2/blocks/operation-block/helpers/get-server-url.js +12 -0
  20. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +1 -1
  21. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  22. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  23. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +87 -65
  24. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  25. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +36 -35
  26. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  27. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +17 -17
  28. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
  29. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
  31. package/dist/v2/components/code-input/CodeInput.vue.d.ts +115 -144
  32. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  33. package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
  34. package/dist/v2/components/code-input/CodeInput.vue2.js +120 -107
  35. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +3 -3
  36. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  37. package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
  38. package/dist/v2/components/data-table/DataTableInput.vue2.js +27 -27
  39. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +3 -2
  40. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -1
  41. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +42 -39
  42. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +5 -3
  43. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  44. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +5 -3
  45. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  46. package/dist/v2/components/sidebar/SidebarMenu.vue.js +25 -30
  47. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  48. package/dist/v2/features/app/App.vue.js +89 -141
  49. package/dist/v2/features/app/app-events.d.ts +22 -0
  50. package/dist/v2/features/app/app-events.d.ts.map +1 -0
  51. package/dist/v2/features/app/app-events.js +136 -0
  52. package/dist/v2/features/app/app-state.d.ts +135 -0
  53. package/dist/v2/features/app/app-state.d.ts.map +1 -0
  54. package/dist/v2/features/app/app-state.js +316 -0
  55. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +6 -3
  56. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  57. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  58. package/dist/v2/features/app/components/AppSidebar.vue2.js +4 -4
  59. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +4 -2
  60. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  61. package/dist/v2/features/app/components/DesktopTabs.vue.js +25 -22
  62. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +9 -5
  63. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
  64. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +62 -1
  65. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  66. package/dist/v2/features/app/helpers/create-api-client-app.js +14 -10
  67. package/dist/v2/features/app/helpers/routes.d.ts +10 -3
  68. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  69. package/dist/v2/features/collection/WorkspaceCollection.vue.js +7 -7
  70. package/dist/v2/features/collection/components/Form.vue.d.ts +1 -1
  71. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
  72. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  73. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  74. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  75. package/dist/v2/features/modal/Modal.vue.js +2 -2
  76. package/dist/v2/features/modal/Modal.vue2.js +52 -52
  77. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +3 -3
  78. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  79. package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
  80. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  81. package/dist/v2/features/operation/Operation.vue.js +38 -26
  82. package/dist/v2/features/operation/helpers/combine-params.d.ts +4 -0
  83. package/dist/v2/features/operation/helpers/combine-params.d.ts.map +1 -0
  84. package/dist/v2/features/operation/helpers/combine-params.js +13 -0
  85. package/dist/v2/features/operation/index.d.ts +1 -0
  86. package/dist/v2/features/operation/index.d.ts.map +1 -1
  87. package/dist/v2/features/operation/index.js +10 -8
  88. package/dist/v2/helpers/get-tab-details.d.ts +2 -2
  89. package/dist/v2/helpers/get-tab-details.d.ts.map +1 -1
  90. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  91. package/package.json +19 -19
  92. package/dist/v2/features/app/hooks/use-app-sidebar.d.ts +0 -40
  93. package/dist/v2/features/app/hooks/use-app-sidebar.d.ts.map +0 -1
  94. package/dist/v2/features/app/hooks/use-app-sidebar.js +0 -134
  95. package/dist/v2/features/app/hooks/use-sync-path.d.ts +0 -11
  96. package/dist/v2/features/app/hooks/use-sync-path.d.ts.map +0 -1
  97. package/dist/v2/features/app/hooks/use-sync-path.js +0 -52
  98. package/dist/v2/features/app/hooks/use-tabs.d.ts +0 -31
  99. package/dist/v2/features/app/hooks/use-tabs.d.ts.map +0 -1
  100. package/dist/v2/features/app/hooks/use-tabs.js +0 -44
  101. package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts +0 -18
  102. package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +0 -1
  103. package/dist/v2/features/app/hooks/use-workspace-client-app-events.js +0 -156
  104. package/dist/v2/features/app/hooks/use-workspace-selector.d.ts +0 -28
  105. package/dist/v2/features/app/hooks/use-workspace-selector.d.ts.map +0 -1
  106. package/dist/v2/features/app/hooks/use-workspace-selector.js +0 -81
package/CHANGELOG.md CHANGED
@@ -1,5 +1,78 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#7744](https://github.com/scalar/scalar/pull/7744): fix: pass hideClientButton config into client modal
8
+ - [#7743](https://github.com/scalar/scalar/pull/7743): fix: complex auth
9
+ - [#7740](https://github.com/scalar/scalar/pull/7740): fix: filter out readonly properties from requestBody
10
+ - [#7742](https://github.com/scalar/scalar/pull/7742): feat: export auth component + proxy fix
11
+
12
+ #### Updated Dependencies
13
+
14
+ - **@scalar/workspace-store@0.24.7**
15
+ - [#7745](https://github.com/scalar/scalar/pull/7745): fix: add nested array support to references
16
+
17
+ - **@scalar/oas-utils@0.6.17**
18
+
19
+ - **@scalar/sidebar@0.7.10**
20
+
21
+ - **@scalar/components@0.16.20**
22
+
23
+ - **@scalar/postman-to-openapi@0.3.58**
24
+
25
+ - **@scalar/use-codemirror@0.13.14**
26
+
27
+ ## 2.18.0
28
+
29
+ ### Minor Changes
30
+
31
+ - [#7585](https://github.com/scalar/scalar/pull/7585): feat: add copy url button on the addressbar
32
+
33
+ ### Patch Changes
34
+
35
+ - [#7686](https://github.com/scalar/scalar/pull/7686): feat: add array + object functionality to code input
36
+ - [#7713](https://github.com/scalar/scalar/pull/7713): fix: grab deprecated schema.example value
37
+ - [#7723](https://github.com/scalar/scalar/pull/7723): fix: remove use-color-mode hook from modal
38
+ - [#7730](https://github.com/scalar/scalar/pull/7730): fix: ensure path params work on the client
39
+
40
+ #### Updated Dependencies
41
+
42
+ - **@scalar/components@0.16.19**
43
+ - [#7725](https://github.com/scalar/scalar/pull/7725): fix(components): support slot for nested items icon
44
+ - [#7693](https://github.com/scalar/scalar/pull/7693): feat: markdown default line height
45
+
46
+ - **@scalar/helpers@0.2.7**
47
+ - [#7720](https://github.com/scalar/scalar/pull/7720): feat: escape XML in json2xml
48
+
49
+ - **@scalar/json-magic@0.9.0**
50
+ - [#7701](https://github.com/scalar/scalar/pull/7701): Made bundle external document extensions configurable
51
+
52
+ - **@scalar/sidebar@0.7.9**
53
+ - [#7678](https://github.com/scalar/scalar/pull/7678): fix: added deprecated sidebar support
54
+
55
+ - **@scalar/use-hooks@0.3.6**
56
+ - [#7678](https://github.com/scalar/scalar/pull/7678): feat: added object stringification to useClipboard
57
+
58
+ - **@scalar/use-codemirror@0.13.13**
59
+
60
+ - **@scalar/import@0.4.44**
61
+
62
+ - **@scalar/oas-utils@0.6.16**
63
+
64
+ - **@scalar/object-utils@1.2.21**
65
+
66
+ - **@scalar/postman-to-openapi@0.3.57**
67
+
68
+ - **@scalar/types@0.5.7**
69
+
70
+ - **@scalar/workspace-store@0.24.6**
71
+
72
+ - **@scalar/openapi-parser@0.23.13**
73
+
74
+ - **@scalar/snippetz@0.6.4**
75
+
3
76
  ## 2.17.8
4
77
 
5
78
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import { apiClientConfigurationSchema as o } from "@scalar/types/api-reference";
2
2
  import { inject as i, ref as t } from "vue";
3
- const e = Symbol(), m = () => i(e, t(o.parse({})));
3
+ const e = /* @__PURE__ */ Symbol(), m = () => i(e, t(o.parse({})));
4
4
  export {
5
5
  e as CLIENT_CONFIGURATION_SYMBOL,
6
6
  m as useClientConfig
@@ -1,5 +1,5 @@
1
1
  import { inject as o } from "vue";
2
- const t = Symbol(), s = () => ({
2
+ const t = /* @__PURE__ */ Symbol(), s = () => ({
3
3
  layout: o(t, "desktop")
4
4
  });
5
5
  export {
@@ -5,7 +5,7 @@ const O = ({ layout: t }) => {
5
5
  collapsedSidebarFolders: e,
6
6
  isSidebarOpen: r
7
7
  };
8
- }, p = Symbol(), m = () => {
8
+ }, p = /* @__PURE__ */ Symbol(), m = () => {
9
9
  const t = S(p);
10
10
  if (!t)
11
11
  throw new Error("useSidebar must have injected SIDEBAR_SYMBOL");
@@ -1,6 +1,6 @@
1
1
  import { createPluginManager as n } from "../plugin-manager.js";
2
2
  import { inject as e } from "vue";
3
- const t = Symbol(), i = () => {
3
+ const t = /* @__PURE__ */ Symbol(), i = () => {
4
4
  const r = e(t);
5
5
  return r || n({});
6
6
  };
@@ -105,7 +105,7 @@ const T = ({
105
105
  activeEnvVariables: h,
106
106
  activeWorkspaceRequests: x
107
107
  };
108
- }, R = Symbol(), V = () => {
108
+ }, R = /* @__PURE__ */ Symbol(), V = () => {
109
109
  const a = q(R);
110
110
  if (!a)
111
111
  throw new Error("Active entities store not provided");