@scalar/api-client 2.34.0 → 2.36.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 (52) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  3. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +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 +88 -80
  7. package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.js +6 -4
  8. package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.d.ts +16 -0
  9. package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.d.ts.map +1 -0
  10. package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.js +17 -0
  11. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
  12. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +90 -84
  13. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  14. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts.map +1 -1
  15. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +76 -50
  16. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  17. package/dist/v2/components/sidebar/Sidebar.vue.js +25 -23
  18. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  19. package/dist/v2/features/app/App.vue.js +41 -35
  20. package/dist/v2/features/app/app-events.d.ts +5 -2
  21. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  22. package/dist/v2/features/app/app-events.js +58 -44
  23. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  24. package/dist/v2/features/app/app-state.js +82 -80
  25. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  26. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  27. package/dist/v2/features/app/components/AppSidebar.vue2.js +78 -76
  28. package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +1 -1
  29. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +73 -45
  30. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  31. package/dist/v2/features/collection/DocumentCollection.vue.js +20 -20
  32. package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +1 -1
  33. package/dist/v2/features/collection/OperationCollection.vue.js +7 -7
  34. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
  35. package/dist/v2/features/collection/WorkspaceCollection.vue.js +5 -4
  36. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  37. package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
  38. package/dist/v2/features/collection/components/Authentication.vue2.js +84 -66
  39. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
  40. package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
  41. package/dist/v2/features/collection/components/LabelInput.vue2.js +1 -1
  42. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +5 -0
  43. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
  44. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +131 -96
  45. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +25 -0
  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 +42 -36
  48. package/dist/v2/features/operation/Operation.vue.js +1 -1
  49. package/dist/v2/workspace-events.d.ts.map +1 -1
  50. package/dist/v2/workspace-events.js +8 -5
  51. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  52. package/package.json +17 -17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,87 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.36.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#8396](https://github.com/scalar/scalar/pull/8396): feat: preselect correct authentication for document and operation
8
+
9
+ ### Patch Changes
10
+
11
+ - [#8394](https://github.com/scalar/scalar/pull/8394): chore: rollback export document button
12
+
13
+ ## 2.35.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#8349](https://github.com/scalar/scalar/pull/8349): feat: support operation example rename
18
+
19
+ ### Patch Changes
20
+
21
+ - [#8336](https://github.com/scalar/scalar/pull/8336): fix: layout with z-index and add support for mobile
22
+ - [#8269](https://github.com/scalar/scalar/pull/8269): fix: prevent requests with empty path parameters
23
+ - [#8262](https://github.com/scalar/scalar/pull/8262): fix: serialize array query params as repeated params
24
+ - [#8253](https://github.com/scalar/scalar/pull/8253): feat(api-reference): support propertyNames enum for additionalProperties
25
+ - [#8392](https://github.com/scalar/scalar/pull/8392): feat: support document download
26
+
27
+ #### Updated Dependencies
28
+
29
+ - **@scalar/workspace-store@0.39.0**
30
+ - [#8372](https://github.com/scalar/scalar/pull/8372): fix: avoid inlining $ref path parameters during path parameter sync
31
+ - [#8349](https://github.com/scalar/scalar/pull/8349): feat: support operation example rename
32
+ - [#8336](https://github.com/scalar/scalar/pull/8336): fix: sidebar title update and detect delete operaitons for proxy
33
+ - [#8253](https://github.com/scalar/scalar/pull/8253): feat(api-reference): support propertyNames enum for additionalProperties
34
+
35
+ - **@scalar/openapi-parser@0.25.2**
36
+ - [#8359](https://github.com/scalar/scalar/pull/8359): fix(openapi-parser): replace $dynamicRef with $ref in v3.2 schema for AJV compatibility
37
+
38
+ - **@scalar/helpers@0.4.0**
39
+ - [#8336](https://github.com/scalar/scalar/pull/8336): feat: support flushing any pending operations
40
+
41
+ - **@scalar/oas-utils@0.10.3**
42
+ - [#8253](https://github.com/scalar/scalar/pull/8253): feat(api-reference): support propertyNames enum for additionalProperties
43
+
44
+ - **@scalar/sidebar@0.8.4**
45
+
46
+ - **@scalar/components@0.20.4**
47
+
48
+ - **@scalar/import@0.5.1**
49
+
50
+ - **@scalar/json-magic@0.12.2**
51
+
52
+ - **@scalar/object-utils@1.3.1**
53
+
54
+ - **@scalar/postman-to-openapi@0.5.1**
55
+
56
+ - **@scalar/types@0.7.2**
57
+
58
+ - **@scalar/use-codemirror@0.14.4**
59
+
60
+ - **@scalar/snippetz@0.7.2**
61
+
62
+ ## 2.34.1
63
+
64
+ ### Patch Changes
65
+
66
+ #### Updated Dependencies
67
+
68
+ - **@scalar/types@0.7.1**
69
+ - [#8381](https://github.com/scalar/scalar/pull/8381): feat: add mcp config support
70
+
71
+ - **@scalar/oas-utils@0.10.2**
72
+
73
+ - **@scalar/openapi-parser@0.25.1**
74
+
75
+ - **@scalar/snippetz@0.7.1**
76
+
77
+ - **@scalar/workspace-store@0.38.1**
78
+
79
+ - **@scalar/components@0.20.3**
80
+
81
+ - **@scalar/sidebar@0.8.3**
82
+
83
+ - **@scalar/use-codemirror@0.14.3**
84
+
3
85
  ## 2.34.0
4
86
 
5
87
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAwEA,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAyEA,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import { defineComponent as n, createElementBlock as t, openBlock as o, normaliz
2
2
  import { useBindCx as a } from "@scalar/components";
3
3
  const u = {
4
4
  key: 0,
5
- class: "request-response-header bg-b-1 -mb-1/2 sticky top-0 flex min-h-11 items-center border-b px-2.5 text-base font-medium xl:rounded-none"
5
+ class: "request-response-header bg-b-1 -mb-1/2 sticky top-0 z-1 flex min-h-11 items-center border-b px-2.5 text-base font-medium xl:rounded-none"
6
6
  }, b = /* @__PURE__ */ n({
7
7
  inheritAttrs: !1,
8
8
  __name: "ViewLayoutSection",