@scalar/api-client 2.25.0 → 2.26.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.
- package/CHANGELOG.md +39 -0
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +8 -8
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +28 -19
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +18 -18
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue2.js +19 -19
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +26 -26
- package/dist/v2/components/callout/Callout.vue.d.ts +17 -0
- package/dist/v2/components/callout/Callout.vue.d.ts.map +1 -0
- package/dist/v2/components/callout/Callout.vue.js +7 -0
- package/dist/v2/components/callout/Callout.vue2.js +43 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +8 -8
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +40 -41
- package/dist/v2/features/app/App.vue.d.ts +2 -2
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +84 -89
- package/dist/v2/features/app/app-events.d.ts +1 -1
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +10 -10
- package/dist/v2/features/app/app-state.d.ts +36 -87
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +339 -330
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -2
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +9 -9
- package/dist/v2/features/app/helpers/get-route-param.d.ts +7 -0
- package/dist/v2/features/app/helpers/get-route-param.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/get-route-param.js +9 -0
- package/dist/v2/features/app/index.d.ts +1 -1
- package/dist/v2/features/app/index.d.ts.map +1 -1
- package/dist/v2/features/app/index.js +12 -12
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +72 -65
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +29 -2
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +110 -106
- package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +5 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js +41 -23
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +41 -8
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.d.ts +1 -2
- package/dist/v2/features/command-palette/index.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.js +4 -6
- package/dist/v2/features/operation/Operation.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +24 -23
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +9 -9
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +0 -41
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/WebTopNav.vue.js +0 -27
- package/dist/v2/features/app/components/WebTopNav.vue2.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.26.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#8095](https://github.com/scalar/scalar/pull/8095): feat: support loading files into the store
|
|
8
|
+
- [#8110](https://github.com/scalar/scalar/pull/8110): feat: support file plugin on the import document palette
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [#8069](https://github.com/scalar/scalar/pull/8069): Added full width and height classes to the DataTableCheckbox input so it renders correctly on Safari.
|
|
13
|
+
- [#8108](https://github.com/scalar/scalar/pull/8108): feat: unify the api client desktop and web layout
|
|
14
|
+
- [#8079](https://github.com/scalar/scalar/pull/8079): fix(api-client): handle object values for form-urlencoded body
|
|
15
|
+
- [#8081](https://github.com/scalar/scalar/pull/8081): feat(components): improve ScalarCodeBlock copy UI
|
|
16
|
+
- [#8086](https://github.com/scalar/scalar/pull/8086): fix(api-reference): inconsistent styles throughout api-reference
|
|
17
|
+
- [#8048](https://github.com/scalar/scalar/pull/8048): chore: improve save modal
|
|
18
|
+
- [#8111](https://github.com/scalar/scalar/pull/8111): fix: move useColorMode hook to the app component
|
|
19
|
+
|
|
20
|
+
#### Updated Dependencies
|
|
21
|
+
|
|
22
|
+
- **@scalar/workspace-store@0.31.0**
|
|
23
|
+
- [#8095](https://github.com/scalar/scalar/pull/8095): feat: support loading files into the store
|
|
24
|
+
- [#8096](https://github.com/scalar/scalar/pull/8096): feat: store relative urls/paths against base under the url mappings
|
|
25
|
+
|
|
26
|
+
- **@scalar/json-magic@0.11.0**
|
|
27
|
+
- [#8095](https://github.com/scalar/scalar/pull/8095): feat: support loading files into the store
|
|
28
|
+
- [#8096](https://github.com/scalar/scalar/pull/8096): feat: store relative urls/paths against base under the url mappings
|
|
29
|
+
|
|
30
|
+
- **@scalar/components@0.19.0**
|
|
31
|
+
- [#8081](https://github.com/scalar/scalar/pull/8081): feat(components): improve ScalarCodeBlock copy UI
|
|
32
|
+
- [#8065](https://github.com/scalar/scalar/pull/8065): feat(components): add editor to ScalarMenu and optionally remove docs
|
|
33
|
+
|
|
34
|
+
- **@scalar/oas-utils@0.6.38**
|
|
35
|
+
|
|
36
|
+
- **@scalar/sidebar@0.7.31**
|
|
37
|
+
|
|
38
|
+
- **@scalar/openapi-parser@0.24.9**
|
|
39
|
+
|
|
40
|
+
- **@scalar/use-codemirror@0.13.35**
|
|
41
|
+
|
|
3
42
|
## 2.25.0
|
|
4
43
|
|
|
5
44
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"AA0DA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC1B,CAAC;;;;;;WADQ,MAAM,GAAG,QAAQ;;
|
|
1
|
+
{"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"AA0DA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC1B,CAAC;;;;;;WADQ,MAAM,GAAG,QAAQ;;AAqH7B,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cva as p, ScalarIcon as
|
|
3
|
-
import
|
|
4
|
-
const h = ["checked", "disabled"], x = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as n, createBlock as r, openBlock as d, withCtx as u, createElementVNode as t, normalizeClass as l, unref as o, createVNode as m } from "vue";
|
|
2
|
+
import { cva as p, ScalarIcon as f } from "@scalar/components";
|
|
3
|
+
import b from "./DataTableCell.vue.js";
|
|
4
|
+
const h = ["checked", "disabled"], x = /* @__PURE__ */ n({
|
|
5
5
|
__name: "DataTableCheckbox",
|
|
6
6
|
props: {
|
|
7
7
|
modelValue: { type: Boolean },
|
|
@@ -19,14 +19,14 @@ const h = ["checked", "disabled"], x = /* @__PURE__ */ i({
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
return (
|
|
22
|
+
return (s, a) => (d(), r(b, { class: "group/cell relative flex min-w-8" }, {
|
|
23
23
|
default: u(() => [
|
|
24
24
|
t("input", {
|
|
25
25
|
checked: e.modelValue,
|
|
26
|
-
class: "peer absolute inset-0 cursor-pointer opacity-0 disabled:cursor-default",
|
|
26
|
+
class: "peer absolute inset-0 size-full cursor-pointer opacity-0 disabled:cursor-default",
|
|
27
27
|
disabled: !!e.disabled,
|
|
28
28
|
type: "checkbox",
|
|
29
|
-
onChange: a[0] || (a[0] = (
|
|
29
|
+
onChange: a[0] || (a[0] = (i) => s.$emit("update:modelValue", i.target.checked))
|
|
30
30
|
}, null, 40, h),
|
|
31
31
|
t("div", {
|
|
32
32
|
class: l(o(c)({ align: e.align }))
|
|
@@ -37,7 +37,7 @@ const h = ["checked", "disabled"], x = /* @__PURE__ */ i({
|
|
|
37
37
|
!e.disabled && "group-has-[:focus-visible]/cell:border-c-accent group-hover/cell:opacity-100 group-has-[:focus-visible]/cell:opacity-100"
|
|
38
38
|
])
|
|
39
39
|
}, null, 2),
|
|
40
|
-
m(o(
|
|
40
|
+
m(o(f), {
|
|
41
41
|
icon: "Checkmark",
|
|
42
42
|
size: "xs",
|
|
43
43
|
thickness: "2.5"
|