@scalar/api-client 2.14.0 → 2.15.0

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 (79) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/libs/string-template.d.ts +2 -0
  3. package/dist/libs/string-template.d.ts.map +1 -1
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  6. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +28 -51
  7. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +0 -12
  8. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  9. package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
  10. package/dist/v2/blocks/operation-block/components/Header.vue2.js +26 -28
  11. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +33 -0
  12. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -0
  13. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +18 -0
  14. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -0
  15. package/dist/v2/blocks/operation-block/helpers/decode-buffer.d.ts +7 -0
  16. package/dist/v2/blocks/operation-block/helpers/decode-buffer.d.ts.map +1 -0
  17. package/dist/v2/blocks/operation-block/helpers/get-delimiter.d.ts +8 -0
  18. package/dist/v2/blocks/operation-block/helpers/get-delimiter.d.ts.map +1 -0
  19. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts +4 -0
  20. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -0
  21. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  22. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  23. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +134 -125
  24. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -0
  25. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  26. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  27. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +11 -10
  28. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -2
  29. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -4
  31. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  32. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
  33. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  34. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  35. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +10 -10
  36. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
  37. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  38. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +21 -15
  39. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -13
  40. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  41. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  42. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +106 -70
  43. package/dist/v2/components/code-input/CodeInput.vue.d.ts +10 -1
  44. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  45. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  46. package/dist/v2/components/code-input/CodeInput.vue2.js +65 -51
  47. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +4 -0
  48. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  49. package/dist/v2/components/sidebar/Sidebar.vue.js +42 -39
  50. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  51. package/dist/v2/features/app/App.vue.js +64 -66
  52. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  53. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  54. package/dist/v2/features/app/components/AppSidebar.vue2.js +193 -106
  55. package/dist/v2/features/app/components/ItemDecorator.vue.d.ts +22 -0
  56. package/dist/v2/features/app/components/ItemDecorator.vue.d.ts.map +1 -0
  57. package/dist/v2/features/app/components/ItemDecorator.vue.js +138 -0
  58. package/dist/v2/features/app/components/ItemDecorator.vue2.js +4 -0
  59. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +8 -0
  60. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
  61. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +76 -68
  62. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +8 -0
  63. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
  64. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +83 -75
  65. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +4 -0
  66. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
  67. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +32 -34
  68. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +16 -0
  69. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  70. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +24 -21
  71. package/dist/v2/features/operation/Operation.vue.js +1 -1
  72. package/dist/v2/features/settings/DocumentSettings.vue.js +2 -2
  73. package/dist/v2/features/settings/DocumentSettings.vue2.js +1 -1
  74. package/dist/v2/helpers/storage.d.ts.map +1 -1
  75. package/dist/v2/helpers/storage.js +5 -5
  76. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  77. package/dist/v2/hooks/use-workspace-client-events.js +102 -61
  78. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  79. package/package.json +21 -21
package/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#7474](https://github.com/scalar/scalar/pull/7474) [`10318b6`](https://github.com/scalar/scalar/commit/10318b6a59df49905225bdbd9e19044521cd4581) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: implement sidebar actions
8
+
9
+ ### Patch Changes
10
+
11
+ - [#7467](https://github.com/scalar/scalar/pull/7467) [`f7c24e4`](https://github.com/scalar/scalar/commit/f7c24e4995580649dbc3cb87007a683f5dd91f7c) Thanks [@amritk](https://github.com/amritk)! - feat: client v2 handle path change with routing and conflict
12
+
13
+ - [#7519](https://github.com/scalar/scalar/pull/7519) [`3f797b6`](https://github.com/scalar/scalar/commit/3f797b67489e07c4f3bf34a39b2175ed2d6f1465) Thanks [@amritk](https://github.com/amritk)! - fix: client request param issues
14
+
15
+ - Updated dependencies [[`f7c24e4`](https://github.com/scalar/scalar/commit/f7c24e4995580649dbc3cb87007a683f5dd91f7c), [`4ac6227`](https://github.com/scalar/scalar/commit/4ac62278d4205c34a1a302b756ef3632185876cf), [`10318b6`](https://github.com/scalar/scalar/commit/10318b6a59df49905225bdbd9e19044521cd4581), [`4ac6227`](https://github.com/scalar/scalar/commit/4ac62278d4205c34a1a302b756ef3632185876cf), [`3f797b6`](https://github.com/scalar/scalar/commit/3f797b67489e07c4f3bf34a39b2175ed2d6f1465)]:
16
+ - @scalar/workspace-store@0.23.0
17
+ - @scalar/helpers@0.2.2
18
+ - @scalar/themes@0.13.26
19
+ - @scalar/sidebar@0.6.0
20
+ - @scalar/components@0.16.8
21
+ - @scalar/oas-utils@0.6.8
22
+ - @scalar/import@0.4.39
23
+ - @scalar/json-magic@0.8.6
24
+ - @scalar/object-utils@1.2.16
25
+ - @scalar/postman-to-openapi@0.3.49
26
+ - @scalar/use-codemirror@0.13.2
27
+ - @scalar/openapi-parser@0.23.7
28
+
29
+ ## 2.14.1
30
+
31
+ ### Patch Changes
32
+
33
+ - [#7506](https://github.com/scalar/scalar/pull/7506) [`72cd82f`](https://github.com/scalar/scalar/commit/72cd82fb8df63a9e5d0db1202978aebfefd0457a) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix: use caret version for `yaml`
34
+
35
+ - [#7489](https://github.com/scalar/scalar/pull/7489) [`21aa62e`](https://github.com/scalar/scalar/commit/21aa62e2ebdd262cb5aa53658c3b659736660722) Thanks [@amritk](https://github.com/amritk)! - feat: added new helpers for building client v2 requests
36
+
37
+ - [#7506](https://github.com/scalar/scalar/pull/7506) [`72cd82f`](https://github.com/scalar/scalar/commit/72cd82fb8df63a9e5d0db1202978aebfefd0457a) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix: use caret version for `zod`
38
+
39
+ - Updated dependencies [[`72cd82f`](https://github.com/scalar/scalar/commit/72cd82fb8df63a9e5d0db1202978aebfefd0457a), [`21aa62e`](https://github.com/scalar/scalar/commit/21aa62e2ebdd262cb5aa53658c3b659736660722), [`72cd82f`](https://github.com/scalar/scalar/commit/72cd82fb8df63a9e5d0db1202978aebfefd0457a)]:
40
+ - @scalar/import@0.4.38
41
+ - @scalar/json-magic@0.8.5
42
+ - @scalar/oas-utils@0.6.7
43
+ - @scalar/openapi-parser@0.23.6
44
+ - @scalar/workspace-store@0.22.2
45
+ - @scalar/helpers@0.2.1
46
+ - @scalar/analytics-client@1.0.1
47
+ - @scalar/openapi-types@0.5.3
48
+ - @scalar/types@0.5.2
49
+ - @scalar/use-hooks@0.3.3
50
+ - @scalar/components@0.16.7
51
+ - @scalar/postman-to-openapi@0.3.48
52
+ - @scalar/sidebar@0.5.2
53
+ - @scalar/object-utils@1.2.15
54
+ - @scalar/snippetz@0.5.5
55
+ - @scalar/use-codemirror@0.13.1
56
+
3
57
  ## 2.14.0
4
58
 
5
59
  ### Minor Changes
@@ -9,6 +9,8 @@ export declare function getDotPathValue(path: string, context: object): string;
9
9
  * - {{ double curly }}
10
10
  * - { single curly }
11
11
  * - :colon
12
+ *
13
+ * @deprecated Use replaceVariables from @scalar/helpers/regex/replace-variables instead
12
14
  */
13
15
  export declare function replaceTemplateVariables(templateString: string, context: object): string;
14
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"string-template.d.ts","sourceRoot":"","sources":["../../src/libs/string-template.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAK5D;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAkC/E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,sBAoBjD"}
1
+ {"version":3,"file":"string-template.d.ts","sourceRoot":"","sources":["../../src/libs/string-template.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAK5D;AAED;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAkC/E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,sBAoBjD"}