@scalar/api-reference 1.40.5 → 1.40.9

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 (49) hide show
  1. package/CHANGELOG.md +145 -0
  2. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
  3. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +1 -1
  4. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +7 -5
  5. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
  6. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
  7. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
  8. package/dist/browser/standalone.js +8920 -8827
  9. package/dist/browser/webpack-stats.json +1 -1
  10. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  11. package/dist/components/ApiReference.vue.js +1 -1
  12. package/dist/components/ApiReference.vue2.js +1 -1
  13. package/dist/components/Content/Content.vue.d.ts +2 -1
  14. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Content.vue.js +2 -4
  16. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  18. package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.d.ts +7 -0
  19. package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.d.ts.map +1 -0
  20. package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.js +66 -0
  21. package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue2.js +4 -0
  22. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  24. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +1 -1
  25. package/dist/components/Content/Schema/index.d.ts +1 -0
  26. package/dist/components/Content/Schema/index.d.ts.map +1 -1
  27. package/dist/components/Content/index.d.ts +1 -1
  28. package/dist/components/Content/index.d.ts.map +1 -1
  29. package/dist/components/index.d.ts +1 -1
  30. package/dist/components/index.d.ts.map +1 -1
  31. package/dist/components/index.js +24 -22
  32. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  33. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  34. package/dist/features/Operation/components/RequestBody.vue2.js +4 -1
  35. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  36. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  37. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  38. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  39. package/dist/helpers/map-config-to-client-store.d.ts.map +1 -1
  40. package/dist/helpers/map-configuration.d.ts +1 -0
  41. package/dist/helpers/map-configuration.d.ts.map +1 -1
  42. package/dist/helpers/map-configuration.js +2 -0
  43. package/dist/helpers/map-hidden-clients-config.d.ts +8 -0
  44. package/dist/helpers/map-hidden-clients-config.d.ts.map +1 -0
  45. package/dist/helpers/map-hidden-clients-config.js +47 -0
  46. package/dist/index.d.ts +0 -1
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/style.css +422 -378
  49. package/package.json +19 -19
package/CHANGELOG.md CHANGED
@@ -1,5 +1,150 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.40.9
4
+
5
+ ### Patch Changes
6
+
7
+ #### Updated Dependencies
8
+
9
+ - **@scalar/api-client@2.17.1**
10
+ - [#7562](https://github.com/scalar/scalar/pull/7562): feat(components): remove headless ui from dropdown component
11
+
12
+ - **@scalar/components@0.16.12**
13
+ - [#7562](https://github.com/scalar/scalar/pull/7562): feat(components): remove headless ui from dropdown component
14
+
15
+ - **@scalar/sidebar@0.7.2**
16
+ - [#7562](https://github.com/scalar/scalar/pull/7562): feat(components): remove headless ui from dropdown component
17
+
18
+ ## 1.40.8
19
+
20
+ ### Patch Changes
21
+
22
+ - [#7577](https://github.com/scalar/scalar/pull/7577): fix(api-reference): add padding to card intro in callbacks
23
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
24
+
25
+ #### Updated Dependencies
26
+
27
+ - **@scalar/workspace-store@0.24.1**
28
+ - [#7580](https://github.com/scalar/scalar/pull/7580): feat: added default auth on client v2
29
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
30
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
31
+ - [#7568](https://github.com/scalar/scalar/pull/7568): fix: object merge replacing arrays
32
+
33
+ - **@scalar/api-client@2.17.0**
34
+ - [#7580](https://github.com/scalar/scalar/pull/7580): feat: added default auth on client v2
35
+ - [#7578](https://github.com/scalar/scalar/pull/7578): fix: ensure get schema examples are cached via options
36
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
37
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
38
+ - [#7565](https://github.com/scalar/scalar/pull/7565): feat: support markdown on parameter tooltip
39
+
40
+ - **@scalar/components@0.16.11**
41
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
42
+
43
+ - **@scalar/helpers@0.2.4**
44
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
45
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
46
+
47
+ - **@scalar/icons@0.5.2**
48
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
49
+
50
+ - **@scalar/json-magic@0.8.8**
51
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
52
+
53
+ - **@scalar/oas-utils@0.6.11**
54
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
55
+
56
+ - **@scalar/object-utils@1.2.18**
57
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
58
+
59
+ - **@scalar/openapi-parser@0.23.9**
60
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
61
+
62
+ - **@scalar/sidebar@0.7.1**
63
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
64
+ - [#7576](https://github.com/scalar/scalar/pull/7576): fix: remove cjs file from index export
65
+
66
+ - **@scalar/snippetz@0.6.1**
67
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
68
+
69
+ - **@scalar/types@0.5.4**
70
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
71
+
72
+ - **@scalar/openapi-upgrader@0.1.6**
73
+
74
+ ## 1.40.7
75
+
76
+ ### Patch Changes
77
+
78
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
79
+ - [#7550](https://github.com/scalar/scalar/pull/7550): Fix content width in mobile layout
80
+
81
+ #### Updated Dependencies
82
+
83
+ - **@scalar/workspace-store@0.24.0**
84
+ - [#7564](https://github.com/scalar/scalar/pull/7564): feat: restore cursor position after path/method update
85
+ - [#7530](https://github.com/scalar/scalar/pull/7530): fix: handle operation level servers when adding a new operation
86
+ - [#7559](https://github.com/scalar/scalar/pull/7559): feat: set the content-type header when switching body content-type
87
+ - [#7549](https://github.com/scalar/scalar/pull/7549): feat: send request animation
88
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
89
+
90
+ - **@scalar/api-client@2.16.0**
91
+ - [#7564](https://github.com/scalar/scalar/pull/7564): feat: restore cursor position after path/method update
92
+ - [#7528](https://github.com/scalar/scalar/pull/7528): feat: empty sidebar folders state
93
+ - [#7561](https://github.com/scalar/scalar/pull/7561): feat: add accept header by default on the operation paramters
94
+ - [#7549](https://github.com/scalar/scalar/pull/7549): feat: send request animation
95
+ - [#7573](https://github.com/scalar/scalar/pull/7573): fix: ensure paths always start with a leading slash
96
+ - [#7563](https://github.com/scalar/scalar/pull/7563): fix: propagate client plugins to operation view
97
+ - [#7535](https://github.com/scalar/scalar/pull/7535): fix: display the parameter description on the tooltip
98
+ - [#7572](https://github.com/scalar/scalar/pull/7572): feat: clear request and response state when switching operations or examples
99
+
100
+ - **@scalar/sidebar@0.7.0**
101
+ - [#7528](https://github.com/scalar/scalar/pull/7528): feat: empty sidebar folders state
102
+
103
+ - **@scalar/icons@0.5.1**
104
+ - [#7542](https://github.com/scalar/scalar/pull/7542): fix: move `generate-icons` script outside of src folder
105
+
106
+ No need to include it in published packages
107
+
108
+ - [#7542](https://github.com/scalar/scalar/pull/7542): fix: use named instead of star exports
109
+
110
+ - **@scalar/helpers@0.2.3**
111
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
112
+
113
+ - **@scalar/components@0.16.10**
114
+ - [#7531](https://github.com/scalar/scalar/pull/7531): feat(components): add discrete sidebar group buttons
115
+
116
+ - **@scalar/oas-utils@0.6.10**
117
+
118
+ - **@scalar/json-magic@0.8.7**
119
+
120
+ - **@scalar/object-utils@1.2.17**
121
+
122
+ - **@scalar/openapi-parser@0.23.8**
123
+
124
+ ## 1.40.6
125
+
126
+ ### Patch Changes
127
+
128
+ - Updated dependencies [[`93ffb63`](https://github.com/scalar/scalar/commit/93ffb63e9d97c7a4ea810d9eeb95cc416c368806), [`099237a`](https://github.com/scalar/scalar/commit/099237ad9cba4d29dcc5e742e39c3e42429a5817), [`2658415`](https://github.com/scalar/scalar/commit/2658415511787dd4554f6d6b47342bdf76d2cca8), [`bb52d9a`](https://github.com/scalar/scalar/commit/bb52d9a21e53628270bab93c0f03b5731c9c97c6), [`bb52d9a`](https://github.com/scalar/scalar/commit/bb52d9a21e53628270bab93c0f03b5731c9c97c6), [`2f3a5bf`](https://github.com/scalar/scalar/commit/2f3a5bf26a16bf0733a9eb8bf0f47e2db161414f), [`a06c824`](https://github.com/scalar/scalar/commit/a06c824653af58839d897e9495f7489d6b5d12b9)]:
129
+ - @scalar/code-highlight@0.2.2
130
+ - @scalar/workspace-store@0.23.1
131
+ - @scalar/api-client@2.15.1
132
+ - @scalar/types@0.5.3
133
+ - @scalar/snippetz@0.6.0
134
+ - @scalar/components@0.16.9
135
+ - @scalar/oas-utils@0.6.9
136
+ - @scalar/sidebar@0.6.1
137
+ - @scalar/openapi-parser@0.23.7
138
+ - @scalar/openapi-upgrader@0.1.6
139
+ - @scalar/helpers@0.2.2
140
+ - @scalar/icons@0.5.0
141
+ - @scalar/json-magic@0.8.6
142
+ - @scalar/object-utils@1.2.16
143
+ - @scalar/openapi-types@0.5.3
144
+ - @scalar/themes@0.13.26
145
+ - @scalar/use-hooks@0.3.3
146
+ - @scalar/use-toasts@0.9.1
147
+
3
148
  ## 1.40.5
4
149
 
5
150
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"ClientDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-client-selector-block/components/ClientDropdown.vue"],"names":[],"mappings":"AAuPA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,wBAAwB,CAAA;AAMxE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC1C,+BAA+B;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAA;CAChC,CAAC;;AAgPF,wBAMG"}
1
+ {"version":3,"file":"ClientDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-client-selector-block/components/ClientDropdown.vue"],"names":[],"mappings":"AA0PA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEvB,MAAM,oDAAoD,CAAA;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,wBAAwB,CAAA;AAMxE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC1C,+BAA+B;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAA;CAChC,CAAC;;AAkPF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ClientDropdown.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const ClientDropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b7785507"]]);
4
+ const ClientDropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ad178be1"]]);
5
5
  export {
6
6
  ClientDropdown as default
7
7
  };
@@ -41,11 +41,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  setTimeout(() => {
42
42
  unfreeze();
43
43
  }, 300);
44
- emitCustomEvent(
45
- containerRef.value,
46
- "scalar-update-selected-client",
47
- option.id
48
- );
44
+ if (option.clientKey !== "custom") {
45
+ emitCustomEvent(
46
+ containerRef.value,
47
+ "scalar-update-selected-client",
48
+ option.id
49
+ );
50
+ }
49
51
  };
50
52
  const selectedTargetKey = computed(
51
53
  () => __props.xSelectedClient?.split("/")[0]
@@ -1,5 +1,5 @@
1
1
  import { type ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
2
- import type { AvailableClients } from '@scalar/snippetz';
2
+ import type { AvailableClient } from '@scalar/snippetz';
3
3
  import type { XScalarSdkInstallation } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-sdk-installation';
4
4
  type __VLS_Props = {
5
5
  /** Selected SDK installation instructions */
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  /** Computed list of all available Http Client options */
8
8
  clientOptions: ClientOptionGroup[];
9
9
  /** The currently selected Http Client */
10
- xSelectedClient?: AvailableClients[number];
10
+ xSelectedClient?: AvailableClient;
11
11
  };
12
12
  declare const _default: import("vue").DefineComponent<__VLS_Props, {
13
13
  selectedClientOption: import("vue").ComputedRef<import("@scalar/api-client/v2/blocks/operation-code-sample").ClientOption | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-client-selector-block/components/ClientSelector.vue"],"names":[],"mappings":"AA2MA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+EAA+E,CAAA;AAU3H,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,sBAAsB,CAAC,EAAE,sBAAsB,CAAC,2BAA2B,CAAC,CAAA;IAC5E,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC3C,CAAC;;;;AAuRF,wBAOG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-client-selector-block/components/ClientSelector.vue"],"names":[],"mappings":"AA2MA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+EAA+E,CAAA;AAU3H,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,sBAAsB,CAAC,EAAE,sBAAsB,CAAC,2BAA2B,CAAC,CAAA;IAC5E,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC,CAAC;;;;AAuRF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ClientSelector.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const ClientSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-abfa446f"]]);
4
+ const ClientSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9a309159"]]);
5
5
  export {
6
6
  ClientSelector as default
7
7
  };