@scalar/api-client 2.22.1 → 2.22.3

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 (73) hide show
  1. package/CHANGELOG.md +71 -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.d.ts.map +1 -1
  8. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +9 -9
  9. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  10. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  11. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +101 -98
  12. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts +2 -0
  13. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +2 -2
  15. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +43 -37
  16. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  17. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +45 -43
  18. package/dist/v2/components/code-input/CodeInput.vue.d.ts +0 -6
  19. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  20. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  21. package/dist/v2/components/code-input/CodeInput.vue2.js +50 -63
  22. package/dist/v2/components/layout/ValueEmitter.vue.d.ts +6 -2
  23. package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -1
  24. package/dist/v2/components/layout/ValueEmitter.vue.js +10 -10
  25. package/dist/v2/components/server/ServerDropdown.vue.d.ts +2 -0
  26. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  27. package/dist/v2/components/server/ServerDropdown.vue.js +48 -42
  28. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +0 -3
  29. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  30. package/dist/v2/components/sidebar/Sidebar.vue.js +55 -53
  31. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  32. package/dist/v2/features/app/App.vue.js +48 -46
  33. package/dist/v2/features/app/app-state.d.ts +23 -12
  34. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  35. package/dist/v2/features/app/app-state.js +204 -168
  36. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  37. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  38. package/dist/v2/features/app/components/AppSidebar.vue2.js +137 -127
  39. package/dist/v2/features/app/helpers/routes.d.ts +1 -1
  40. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  41. package/dist/v2/features/app/helpers/routes.js +7 -7
  42. package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts.map +1 -1
  43. package/dist/v2/features/command-palette/TheCommandPalette.vue.js +1 -1
  44. package/dist/v2/features/command-palette/TheCommandPalette.vue2.js +6 -6
  45. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +2 -2
  46. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  47. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +60 -56
  48. package/dist/v2/features/operation/Operation.vue.js +1 -1
  49. package/dist/v2/features/search/hooks/use-search-index.d.ts +3 -7
  50. package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -1
  51. package/dist/v2/features/search/hooks/use-search-index.js +12 -18
  52. package/dist/v2/features/search/index.d.ts +1 -2
  53. package/dist/v2/features/search/index.d.ts.map +1 -1
  54. package/dist/v2/features/search/index.js +2 -4
  55. package/dist/v2/features/search/types.d.ts +1 -1
  56. package/dist/v2/features/search/types.d.ts.map +1 -1
  57. package/dist/v2/helpers/handle-hotkeys.js +1 -1
  58. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  59. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  60. package/dist/views/Request/libs/oauth2.js +54 -52
  61. package/package.json +17 -17
  62. package/dist/v2/features/search/components/SearchButton.vue.d.ts +0 -12
  63. package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +0 -1
  64. package/dist/v2/features/search/components/SearchButton.vue.js +0 -71
  65. package/dist/v2/features/search/components/SearchButton.vue2.js +0 -4
  66. package/dist/v2/features/search/components/SearchModal.vue.d.ts +0 -11
  67. package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +0 -1
  68. package/dist/v2/features/search/components/SearchModal.vue.js +0 -7
  69. package/dist/v2/features/search/components/SearchModal.vue2.js +0 -102
  70. package/dist/v2/features/search/components/SearchResult.vue.d.ts +0 -10
  71. package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +0 -1
  72. package/dist/v2/features/search/components/SearchResult.vue.js +0 -80
  73. package/dist/v2/features/search/components/SearchResult.vue2.js +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,76 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.22.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8004](https://github.com/scalar/scalar/pull/8004): fix: do not add a content type of none
8
+ - [#7934](https://github.com/scalar/scalar/pull/7934): fix: z-index issues in addressBar
9
+
10
+ #### Updated Dependencies
11
+
12
+ - **@scalar/components@0.17.2**
13
+ - [#7934](https://github.com/scalar/scalar/pull/7934): fix: z-index issues in addressBar
14
+
15
+ - **@scalar/workspace-store@0.28.1**
16
+ - [#7823](https://github.com/scalar/scalar/pull/7823): chore: update workspace schema index to support teamUid queries and local
17
+
18
+ - **@scalar/sidebar@0.7.25**
19
+
20
+ - **@scalar/use-codemirror@0.13.29**
21
+
22
+ - **@scalar/oas-utils@0.6.32**
23
+
24
+ ## 2.22.2
25
+
26
+ ### Patch Changes
27
+
28
+ - [#7998](https://github.com/scalar/scalar/pull/7998): Made the inputs to useCommandPalette state reactive
29
+ - [#7988](https://github.com/scalar/scalar/pull/7988): feat: restore old client search
30
+ - [#8002](https://github.com/scalar/scalar/pull/8002): feat(agent): add inline agent chat
31
+ - [#7784](https://github.com/scalar/scalar/pull/7784): fix: resolve oauth2 relative URLs against relative server URLs
32
+ - [#7971](https://github.com/scalar/scalar/pull/7971): fix: improve sidebar click behavior
33
+
34
+ #### Updated Dependencies
35
+
36
+ - **@scalar/types@0.6.1**
37
+ - [#8000](https://github.com/scalar/scalar/pull/8000): fix(agent): change enabled flag to disabled
38
+ - [#7995](https://github.com/scalar/scalar/pull/7995): feat: enable/disable agent scalar
39
+
40
+ - **@scalar/workspace-store@0.28.0**
41
+ - [#7970](https://github.com/scalar/scalar/pull/7970): feat: update sidebar when docuemnt title changes
42
+ - [#7988](https://github.com/scalar/scalar/pull/7988): feat: restore old client search
43
+ - [#7963](https://github.com/scalar/scalar/pull/7963): feat: unify is-object helpers
44
+
45
+ - **@scalar/sidebar@0.7.24**
46
+ - [#7988](https://github.com/scalar/scalar/pull/7988): feat: restore old client search
47
+
48
+ - **@scalar/use-hooks@0.3.7**
49
+ - [#7977](https://github.com/scalar/scalar/pull/7977): chore(use-hooks): update tailwind merge to v3.4.0
50
+
51
+ - **@scalar/openapi-parser@0.24.6**
52
+ - [#7963](https://github.com/scalar/scalar/pull/7963): feat: unify is-object helpers
53
+
54
+ - **@scalar/json-magic@0.9.5**
55
+ - [#7963](https://github.com/scalar/scalar/pull/7963): feat: unify is-object helpers
56
+
57
+ - **@scalar/helpers@0.2.10**
58
+ - [#7963](https://github.com/scalar/scalar/pull/7963): feat: unify is-object helpers
59
+
60
+ - **@scalar/oas-utils@0.6.31**
61
+
62
+ - **@scalar/snippetz@0.6.10**
63
+
64
+ - **@scalar/components@0.17.1**
65
+
66
+ - **@scalar/import@0.4.47**
67
+
68
+ - **@scalar/object-utils@1.2.24**
69
+
70
+ - **@scalar/postman-to-openapi@0.4.2**
71
+
72
+ - **@scalar/use-codemirror@0.13.28**
73
+
3
74
  ## 2.22.1
4
75
 
5
76
  ### Patch 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"}