@scalar/api-reference 1.40.5 → 1.40.8

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 +130 -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 +7792 -7746
  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 +406 -376
  49. package/package.json +19 -19
package/CHANGELOG.md CHANGED
@@ -1,5 +1,135 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.40.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#7577](https://github.com/scalar/scalar/pull/7577): fix(api-reference): add padding to card intro in callbacks
8
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
9
+
10
+ #### Updated Dependencies
11
+
12
+ - **@scalar/workspace-store@0.24.1**
13
+ - [#7580](https://github.com/scalar/scalar/pull/7580): feat: added default auth on client v2
14
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
15
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
16
+ - [#7568](https://github.com/scalar/scalar/pull/7568): fix: object merge replacing arrays
17
+
18
+ - **@scalar/api-client@2.17.0**
19
+ - [#7580](https://github.com/scalar/scalar/pull/7580): feat: added default auth on client v2
20
+ - [#7578](https://github.com/scalar/scalar/pull/7578): fix: ensure get schema examples are cached via options
21
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
22
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
23
+ - [#7565](https://github.com/scalar/scalar/pull/7565): feat: support markdown on parameter tooltip
24
+
25
+ - **@scalar/components@0.16.11**
26
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
27
+
28
+ - **@scalar/helpers@0.2.4**
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
+
32
+ - **@scalar/icons@0.5.2**
33
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
34
+
35
+ - **@scalar/json-magic@0.8.8**
36
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
37
+
38
+ - **@scalar/oas-utils@0.6.11**
39
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
40
+
41
+ - **@scalar/object-utils@1.2.18**
42
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
43
+
44
+ - **@scalar/openapi-parser@0.23.9**
45
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
46
+
47
+ - **@scalar/sidebar@0.7.1**
48
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
49
+ - [#7576](https://github.com/scalar/scalar/pull/7576): fix: remove cjs file from index export
50
+
51
+ - **@scalar/snippetz@0.6.1**
52
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
53
+
54
+ - **@scalar/types@0.5.4**
55
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
56
+
57
+ - **@scalar/openapi-upgrader@0.1.6**
58
+
59
+ ## 1.40.7
60
+
61
+ ### Patch Changes
62
+
63
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
64
+ - [#7550](https://github.com/scalar/scalar/pull/7550): Fix content width in mobile layout
65
+
66
+ #### Updated Dependencies
67
+
68
+ - **@scalar/workspace-store@0.24.0**
69
+ - [#7564](https://github.com/scalar/scalar/pull/7564): feat: restore cursor position after path/method update
70
+ - [#7530](https://github.com/scalar/scalar/pull/7530): fix: handle operation level servers when adding a new operation
71
+ - [#7559](https://github.com/scalar/scalar/pull/7559): feat: set the content-type header when switching body content-type
72
+ - [#7549](https://github.com/scalar/scalar/pull/7549): feat: send request animation
73
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
74
+
75
+ - **@scalar/api-client@2.16.0**
76
+ - [#7564](https://github.com/scalar/scalar/pull/7564): feat: restore cursor position after path/method update
77
+ - [#7528](https://github.com/scalar/scalar/pull/7528): feat: empty sidebar folders state
78
+ - [#7561](https://github.com/scalar/scalar/pull/7561): feat: add accept header by default on the operation paramters
79
+ - [#7549](https://github.com/scalar/scalar/pull/7549): feat: send request animation
80
+ - [#7573](https://github.com/scalar/scalar/pull/7573): fix: ensure paths always start with a leading slash
81
+ - [#7563](https://github.com/scalar/scalar/pull/7563): fix: propagate client plugins to operation view
82
+ - [#7535](https://github.com/scalar/scalar/pull/7535): fix: display the parameter description on the tooltip
83
+ - [#7572](https://github.com/scalar/scalar/pull/7572): feat: clear request and response state when switching operations or examples
84
+
85
+ - **@scalar/sidebar@0.7.0**
86
+ - [#7528](https://github.com/scalar/scalar/pull/7528): feat: empty sidebar folders state
87
+
88
+ - **@scalar/icons@0.5.1**
89
+ - [#7542](https://github.com/scalar/scalar/pull/7542): fix: move `generate-icons` script outside of src folder
90
+
91
+ No need to include it in published packages
92
+
93
+ - [#7542](https://github.com/scalar/scalar/pull/7542): fix: use named instead of star exports
94
+
95
+ - **@scalar/helpers@0.2.3**
96
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
97
+
98
+ - **@scalar/components@0.16.10**
99
+ - [#7531](https://github.com/scalar/scalar/pull/7531): feat(components): add discrete sidebar group buttons
100
+
101
+ - **@scalar/oas-utils@0.6.10**
102
+
103
+ - **@scalar/json-magic@0.8.7**
104
+
105
+ - **@scalar/object-utils@1.2.17**
106
+
107
+ - **@scalar/openapi-parser@0.23.8**
108
+
109
+ ## 1.40.6
110
+
111
+ ### Patch Changes
112
+
113
+ - 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)]:
114
+ - @scalar/code-highlight@0.2.2
115
+ - @scalar/workspace-store@0.23.1
116
+ - @scalar/api-client@2.15.1
117
+ - @scalar/types@0.5.3
118
+ - @scalar/snippetz@0.6.0
119
+ - @scalar/components@0.16.9
120
+ - @scalar/oas-utils@0.6.9
121
+ - @scalar/sidebar@0.6.1
122
+ - @scalar/openapi-parser@0.23.7
123
+ - @scalar/openapi-upgrader@0.1.6
124
+ - @scalar/helpers@0.2.2
125
+ - @scalar/icons@0.5.0
126
+ - @scalar/json-magic@0.8.6
127
+ - @scalar/object-utils@1.2.16
128
+ - @scalar/openapi-types@0.5.3
129
+ - @scalar/themes@0.13.26
130
+ - @scalar/use-hooks@0.3.3
131
+ - @scalar/use-toasts@0.9.1
132
+
3
133
  ## 1.40.5
4
134
 
5
135
  ### 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
  };