@scalar/api-client 2.5.1 → 2.5.3
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 +53 -0
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +18 -18
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +1 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.js +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +4 -4
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +6 -5
- package/dist/libs/hot-keys.js +1 -1
- package/dist/libs/index.js +23 -24
- package/dist/libs/local-storage.d.ts +0 -8
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +24 -28
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +49 -49
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/string-template.d.ts.map +1 -1
- package/dist/libs/string-template.js +29 -29
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +1 -1
- package/dist/store/cookies.js +1 -1
- package/dist/store/environment.js +1 -1
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/request-example.js +13 -12
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/requests.js +42 -40
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +1 -1
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/servers.js +1 -1
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/tags.js +14 -13
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +28 -28
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +38 -38
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +70 -68
- package/dist/views/Request/RequestSection/helpers/update-scheme.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +13 -12
package/dist/store/tags.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { tagSchema as o } from "@scalar/oas-utils/entities/spec";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { schemaModel as T } from "@scalar/oas-utils/helpers";
|
|
3
|
+
import { LS_KEYS as p } from "@scalar/helpers/object/local-storage";
|
|
4
|
+
import { mutationFactory as A } from "@scalar/object-utils/mutator-record";
|
|
4
5
|
import { reactive as g } from "vue";
|
|
5
|
-
function
|
|
6
|
-
const a = g({}), s =
|
|
6
|
+
function L(d) {
|
|
7
|
+
const a = g({}), s = A(a, g({}), d && p.TAG);
|
|
7
8
|
return {
|
|
8
9
|
tags: a,
|
|
9
10
|
tagMutators: s
|
|
10
11
|
};
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
+
function q({
|
|
13
14
|
collectionMutators: d,
|
|
14
15
|
collections: a,
|
|
15
16
|
requests: s,
|
|
16
17
|
requestMutators: c,
|
|
17
|
-
tagMutators:
|
|
18
|
+
tagMutators: m
|
|
18
19
|
}) {
|
|
19
20
|
return { addTag: (t, n) => {
|
|
20
|
-
const r = a[n], e =
|
|
21
|
-
return !e || !r ? console.error("INVALID TAG DATA", t) : (d.edit(n, "tags", [...r.tags, e.uid]), d.edit(n, "children", [...r.children, e.uid]),
|
|
21
|
+
const r = a[n], e = T(t, o, !1);
|
|
22
|
+
return !e || !r ? console.error("INVALID TAG DATA", t) : (d.edit(n, "tags", [...r.tags, e.uid]), d.edit(n, "children", [...r.children, e.uid]), m.add(e), e);
|
|
22
23
|
}, deleteTag: (t, n) => {
|
|
23
24
|
const r = a[n];
|
|
24
25
|
r && (d.edit(
|
|
@@ -30,16 +31,16 @@ function L({
|
|
|
30
31
|
"children",
|
|
31
32
|
r.children.filter((e) => e !== t.uid)
|
|
32
33
|
), t.children.forEach((e) => {
|
|
33
|
-
var
|
|
34
|
+
var u;
|
|
34
35
|
const f = s[e];
|
|
35
36
|
if (!f)
|
|
36
37
|
return;
|
|
37
|
-
const i = (
|
|
38
|
+
const i = (u = f.tags) == null ? void 0 : u.filter((h) => h !== t.name);
|
|
38
39
|
c.edit(f.uid, "tags", i), !(i != null && i.length) && !r.children.includes(e) && d.edit(n, "children", [...r.children, e]);
|
|
39
|
-
}),
|
|
40
|
+
}), m.delete(t.uid));
|
|
40
41
|
} };
|
|
41
42
|
}
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
L as createStoreTags,
|
|
45
|
+
q as extendedTagDataFactory
|
|
45
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/store/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,sCAAsC,CAAA;AAOtF,4CAA4C;AAC5C,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/store/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,sCAAsC,CAAA;AAOtF,4CAA4C;AAC5C,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;;;mBAkEsoN,CAAC;;yBAAw5B,CAAC;;;;;;;;;;;;;;;;;;;;;uBAA15B,CAAC;;6BAAw5B,CAAC;;;;;;;;;;;;;;;;;;;;;uBAA15B,CAAC;;6BAAw5B,CAAC;;;;;;;;;;;;;;;;;;;;uBAA15B,CAAC;;6BAAw5B,CAAC;;;;;;;;;;;;;;;;;;;uBAA15B,CAAC;;6BAAw5B,CAAC;;;;;;;;;;;;;;;;;;;uBAA15B,CAAC;;6BAAw5B,CAAC;;;;;;;;;;;;;;;;;;;;uBAA15B,CAAC;;6BAAw5B,CAAC;;;;;;;;;;;;;;;;;;;uBAA15B,CAAC;;6BAAw5B,CAAC;;;;;;;;;;;;;;;;;;;uBAA15B,CAAC;;6BAAw5B,CAAC;;;;;;;;;EAzD7lP;AAED,oDAAoD;AACpD,wBAAgB,4BAA4B,CAAC,EAC3C,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,GACvB,EAAE,YAAY;6BACkB,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;mBA+CipN,CAAC;;yBAAw5B,CAAC;;;;;2BAb9jP,SAAS,CAAC,KAAK,CAAC;EAY/C"}
|
package/dist/store/workspace.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { requestExampleSchema as m, collectionSchema as l } from "@scalar/oas-utils/entities/spec";
|
|
2
2
|
import { workspaceSchema as u } from "@scalar/oas-utils/entities/workspace";
|
|
3
|
-
import { LS_KEYS as f } from "@scalar/
|
|
3
|
+
import { LS_KEYS as f } from "@scalar/helpers/object/local-storage";
|
|
4
4
|
import { mutationFactory as k } from "@scalar/object-utils/mutator-record";
|
|
5
5
|
import { reactive as d } from "vue";
|
|
6
6
|
import { createInitialRequest as h } from "./requests.js";
|