@scalar/api-client 2.22.0 → 2.22.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 (62) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/hooks/useClientConfig.d.ts +6 -3
  3. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  6. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
  7. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  8. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  9. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  10. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +23 -29
  11. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  12. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +45 -43
  13. package/dist/v2/components/code-input/CodeInput.vue.d.ts +0 -6
  14. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  15. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  16. package/dist/v2/components/code-input/CodeInput.vue2.js +50 -63
  17. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +0 -3
  18. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  19. package/dist/v2/components/sidebar/Sidebar.vue.js +55 -53
  20. package/dist/v2/features/app/App.vue.d.ts +3 -1
  21. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  22. package/dist/v2/features/app/App.vue.js +46 -43
  23. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  24. package/dist/v2/features/app/app-state.js +33 -28
  25. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  26. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  27. package/dist/v2/features/app/components/AppSidebar.vue2.js +137 -127
  28. package/dist/v2/features/app/index.d.ts +3 -0
  29. package/dist/v2/features/app/index.d.ts.map +1 -1
  30. package/dist/v2/features/app/index.js +17 -11
  31. package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts.map +1 -1
  32. package/dist/v2/features/command-palette/TheCommandPalette.vue.js +1 -1
  33. package/dist/v2/features/command-palette/TheCommandPalette.vue2.js +6 -6
  34. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +2 -2
  35. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  36. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +60 -56
  37. package/dist/v2/features/operation/Operation.vue.js +1 -1
  38. package/dist/v2/features/search/hooks/use-search-index.d.ts +3 -7
  39. package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -1
  40. package/dist/v2/features/search/hooks/use-search-index.js +12 -18
  41. package/dist/v2/features/search/index.d.ts +1 -2
  42. package/dist/v2/features/search/index.d.ts.map +1 -1
  43. package/dist/v2/features/search/index.js +2 -4
  44. package/dist/v2/features/search/types.d.ts +1 -1
  45. package/dist/v2/features/search/types.d.ts.map +1 -1
  46. package/dist/v2/helpers/handle-hotkeys.js +1 -1
  47. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  48. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  49. package/dist/views/Request/libs/oauth2.js +54 -52
  50. package/package.json +19 -19
  51. package/dist/v2/features/search/components/SearchButton.vue.d.ts +0 -12
  52. package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +0 -1
  53. package/dist/v2/features/search/components/SearchButton.vue.js +0 -71
  54. package/dist/v2/features/search/components/SearchButton.vue2.js +0 -4
  55. package/dist/v2/features/search/components/SearchModal.vue.d.ts +0 -11
  56. package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +0 -1
  57. package/dist/v2/features/search/components/SearchModal.vue.js +0 -7
  58. package/dist/v2/features/search/components/SearchModal.vue2.js +0 -102
  59. package/dist/v2/features/search/components/SearchResult.vue.d.ts +0 -10
  60. package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +0 -1
  61. package/dist/v2/features/search/components/SearchResult.vue.js +0 -80
  62. package/dist/v2/features/search/components/SearchResult.vue2.js +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,61 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.22.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#7998](https://github.com/scalar/scalar/pull/7998): Made the inputs to useCommandPalette state reactive
8
+ - [#7988](https://github.com/scalar/scalar/pull/7988): feat: restore old client search
9
+ - [#8002](https://github.com/scalar/scalar/pull/8002): feat(agent): add inline agent chat
10
+ - [#7784](https://github.com/scalar/scalar/pull/7784): fix: resolve oauth2 relative URLs against relative server URLs
11
+ - [#7971](https://github.com/scalar/scalar/pull/7971): fix: improve sidebar click behavior
12
+
13
+ #### Updated Dependencies
14
+
15
+ - **@scalar/types@0.6.1**
16
+ - [#8000](https://github.com/scalar/scalar/pull/8000): fix(agent): change enabled flag to disabled
17
+ - [#7995](https://github.com/scalar/scalar/pull/7995): feat: enable/disable agent scalar
18
+
19
+ - **@scalar/workspace-store@0.28.0**
20
+ - [#7970](https://github.com/scalar/scalar/pull/7970): feat: update sidebar when docuemnt title changes
21
+ - [#7988](https://github.com/scalar/scalar/pull/7988): feat: restore old client search
22
+ - [#7963](https://github.com/scalar/scalar/pull/7963): feat: unify is-object helpers
23
+
24
+ - **@scalar/sidebar@0.7.24**
25
+ - [#7988](https://github.com/scalar/scalar/pull/7988): feat: restore old client search
26
+
27
+ - **@scalar/use-hooks@0.3.7**
28
+ - [#7977](https://github.com/scalar/scalar/pull/7977): chore(use-hooks): update tailwind merge to v3.4.0
29
+
30
+ - **@scalar/openapi-parser@0.24.6**
31
+ - [#7963](https://github.com/scalar/scalar/pull/7963): feat: unify is-object helpers
32
+
33
+ - **@scalar/json-magic@0.9.5**
34
+ - [#7963](https://github.com/scalar/scalar/pull/7963): feat: unify is-object helpers
35
+
36
+ - **@scalar/helpers@0.2.10**
37
+ - [#7963](https://github.com/scalar/scalar/pull/7963): feat: unify is-object helpers
38
+
39
+ - **@scalar/oas-utils@0.6.31**
40
+
41
+ - **@scalar/snippetz@0.6.10**
42
+
43
+ - **@scalar/components@0.17.1**
44
+
45
+ - **@scalar/import@0.4.47**
46
+
47
+ - **@scalar/object-utils@1.2.24**
48
+
49
+ - **@scalar/postman-to-openapi@0.4.2**
50
+
51
+ - **@scalar/use-codemirror@0.13.28**
52
+
53
+ ## 2.22.1
54
+
55
+ ### Patch Changes
56
+
57
+ - [#7965](https://github.com/scalar/scalar/pull/7965): Adds exports for creating external actions
58
+
3
59
  ## 2.22.0
4
60
 
5
61
  ### Minor Changes
@@ -52,7 +52,8 @@ export declare const useClientConfig: () => Ref<{
52
52
  content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
53
53
  } | undefined;
54
54
  agent?: {
55
- key: string;
55
+ key?: string | undefined;
56
+ disabled?: boolean | undefined;
56
57
  } | undefined;
57
58
  }, {
58
59
  hideClientButton: boolean;
@@ -104,7 +105,8 @@ export declare const useClientConfig: () => Ref<{
104
105
  content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
105
106
  } | undefined;
106
107
  agent?: {
107
- key: string;
108
+ key?: string | undefined;
109
+ disabled?: boolean | undefined;
108
110
  } | undefined;
109
111
  } | {
110
112
  hideClientButton: boolean;
@@ -156,7 +158,8 @@ export declare const useClientConfig: () => Ref<{
156
158
  content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
157
159
  } | undefined;
158
160
  agent?: {
159
- key: string;
161
+ key?: string | undefined;
162
+ disabled?: boolean | undefined;
160
163
  } | undefined;
161
164
  }>;
162
165
  //# sourceMappingURL=useClientConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAgC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyF,CAAA"}
1
+ {"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAgC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyF,CAAA"}