@scalar/api-client 2.1.9 → 2.1.11

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 (24) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBarServer.vue.js +18 -18
  4. package/dist/libs/send-request.d.ts.map +1 -1
  5. package/dist/libs/send-request.js +1 -1
  6. package/dist/router.js +1 -1
  7. package/dist/style.css +1 -1
  8. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  9. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  10. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +82 -88
  11. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  12. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  13. package/dist/views/Request/RequestSidebar.vue2.js +107 -98
  14. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
  15. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +2 -2
  16. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  17. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
  18. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +14 -18
  19. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  20. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  21. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +26 -26
  22. package/package.json +5 -5
  23. package/dist/views/Components/Schemas/Schemas.vue.d.ts +0 -3
  24. package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 9b010e6: fix: force show servers when not in read only mode
8
+ - d8baf4e: feat: sets draft collection icon
9
+ - 8554e60: fix: add proper scalar version in ascii preview
10
+ - b4d1e1b: fix: remove stray hello world html
11
+ - d9ff13e: fix: updates empty sidebar content
12
+ - Updated dependencies [d8baf4e]
13
+ - Updated dependencies [9057781]
14
+ - @scalar/components@0.12.49
15
+ - @scalar/oas-utils@0.2.50
16
+ - @scalar/use-codemirror@0.11.15
17
+
18
+ ## 2.1.10
19
+
20
+ ### Patch Changes
21
+
22
+ - 3647181: fix: skip empty value of query parameters
23
+ - e22c6ce: fix(api-client): add Content-Security-Policy to client.scalar.com
24
+
3
25
  ## 2.1.9
4
26
 
5
27
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AA+YA,wBAKG"}
1
+ {"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AAiZA,wBAKG"}
@@ -1,6 +1,6 @@
1
- import { defineComponent as U, computed as u, watch as O, openBlock as l, createBlock as h, unref as s, withCtx as _, createElementBlock as n, createCommentVNode as v, Fragment as m, renderList as g, createVNode as p, createElementVNode as c, withModifiers as R, toDisplayString as b } from "vue";
2
- import { ScalarDropdown as V, ScalarDropdownDivider as C, ScalarDropdownItem as W, ScalarIcon as E } from "@scalar/components";
3
- import D from "./AddressBarServerItem.vue.js";
1
+ import { defineComponent as U, computed as u, watch as O, unref as s, openBlock as l, createBlock as h, withCtx as _, createElementBlock as n, createCommentVNode as v, Fragment as m, renderList as b, createVNode as p, createElementVNode as c, withModifiers as R, toDisplayString as C } from "vue";
2
+ import { ScalarDropdown as V, ScalarDropdownDivider as D, ScalarDropdownItem as W, ScalarIcon as E } from "@scalar/components";
3
+ import A from "./AddressBarServerItem.vue.js";
4
4
  import { useWorkspace as I } from "../../store/store.js";
5
5
  import { commandPaletteBus as L } from "../../libs/event-busses/command-palette-bus.js";
6
6
  const M = {
@@ -16,8 +16,8 @@ const M = {
16
16
  activeRequest: S,
17
17
  activeCollection: k,
18
18
  activeServer: x,
19
- isReadOnly: A,
20
- servers: w,
19
+ isReadOnly: w,
20
+ servers: y,
21
21
  collectionMutators: B
22
22
  } = I(), i = u(
23
23
  () => {
@@ -26,7 +26,7 @@ const M = {
26
26
  var o;
27
27
  return {
28
28
  id: r,
29
- label: ((o = w[r]) == null ? void 0 : o.url) ?? "Unknown server"
29
+ label: ((o = y[r]) == null ? void 0 : o.url) ?? "Unknown server"
30
30
  };
31
31
  });
32
32
  }
@@ -37,11 +37,11 @@ const M = {
37
37
  var o;
38
38
  return {
39
39
  id: r,
40
- label: ((o = w[r]) == null ? void 0 : o.url) ?? "Unknown server"
40
+ label: ((o = y[r]) == null ? void 0 : o.url) ?? "Unknown server"
41
41
  };
42
42
  });
43
43
  }
44
- ), y = u(
44
+ ), g = u(
45
45
  () => {
46
46
  var t, e;
47
47
  return ((t = i.value) == null ? void 0 : t.length) && ((e = d.value) == null ? void 0 : e.length);
@@ -62,28 +62,28 @@ const M = {
62
62
  });
63
63
  return (t, e) => {
64
64
  var r, o;
65
- return i.value && ((r = i.value) == null ? void 0 : r.length) > 1 || d.value && ((o = d.value) == null ? void 0 : o.length) > 1 ? (l(), h(s(V), {
65
+ return !s(w) || i.value && ((r = i.value) == null ? void 0 : r.length) > 1 || d.value && ((o = d.value) == null ? void 0 : o.length) > 1 ? (l(), h(s(V), {
66
66
  key: 0,
67
67
  teleport: ".scalar-client"
68
68
  }, {
69
69
  items: _(() => [
70
- y.value ? (l(), n("div", M, " Request Servers ")) : v("", !0),
71
- (l(!0), n(m, null, g(i.value, (a) => (l(), h(D, {
70
+ g.value ? (l(), n("div", M, " Request Servers ")) : v("", !0),
71
+ (l(!0), n(m, null, b(i.value, (a) => (l(), h(A, {
72
72
  key: a.id,
73
73
  serverOption: a,
74
74
  type: "request"
75
75
  }, null, 8, ["serverOption"]))), 128)),
76
- y.value ? (l(), n(m, { key: 1 }, [
77
- p(s(C)),
76
+ g.value ? (l(), n(m, { key: 1 }, [
77
+ p(s(D)),
78
78
  j
79
79
  ], 64)) : v("", !0),
80
- (l(!0), n(m, null, g(d.value, (a) => (l(), h(D, {
80
+ (l(!0), n(m, null, b(d.value, (a) => (l(), h(A, {
81
81
  key: a.id,
82
82
  serverOption: a,
83
83
  type: "collection"
84
84
  }, null, 8, ["serverOption"]))), 128)),
85
- s(A) ? v("", !0) : (l(), n(m, { key: 2 }, [
86
- p(s(C)),
85
+ s(w) ? v("", !0) : (l(), n(m, { key: 2 }, [
86
+ p(s(D)),
87
87
  p(s(W), null, {
88
88
  default: _(() => [
89
89
  c("div", {
@@ -109,10 +109,10 @@ const M = {
109
109
  type: "button",
110
110
  onClick: e[0] || (e[0] = R(() => {
111
111
  }, ["stop"]))
112
- }, b(f.value), 1)
112
+ }, C(f.value), 1)
113
113
  ]),
114
114
  _: 1
115
- })) : f.value ? (l(), n("div", P, b(f.value), 1)) : v("", !0);
115
+ })) : f.value ? (l(), n("div", P, C(f.value), 1)) : v("", !0);
116
116
  };
117
117
  }
118
118
  });
@@ -1 +1 @@
1
- {"version":3,"file":"send-request.d.ts","sourceRoot":"","sources":["../../src/libs/send-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAK1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,cAAc,EAEd,gBAAgB,EAChB,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AAoMxC,uGAAuG;AACvG,KAAK,mBAAmB,CAAC,gBAAgB,GAAG,OAAO,IAAI,OAAO,CAC5D,aAAa,CAAC;IACZ,QAAQ,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAA;IAC5C,OAAO,EAAE,cAAc,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,OAAO,CAAA;IAChB,OAAO,EAAE,cAAc,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,aAAa,EAAE,MAAM,EAAE,CAAA;CACxB,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,WAAW,EAAE,MAAM,mBAAmB,CAAC,gBAAgB,CAAC,CAAA;CACzD,CA2LA,CAAA"}
@@ -24,7 +24,7 @@ function _(s, n) {
24
24
  function j(s, n) {
25
25
  const o = new URLSearchParams();
26
26
  return s.parameters.query.forEach((t) => {
27
- t.enabled && o.append(t.key, u(t.value, n));
27
+ t.enabled && t.value && o.append(t.key, u(t.value, n));
28
28
  }), o;
29
29
  }
30
30
  function N({
package/dist/router.js CHANGED
@@ -69,7 +69,7 @@ const p = [
69
69
  // children: [
70
70
  // {
71
71
  // path: `schemas/:${PathId.Schema}`,
72
- // component: () => import('./views/Components/Schemas/Schemas.vue'),
72
+ // component: () => import('@/views/Components/Schemas/Schemas.vue'),
73
73
  // },
74
74
  // ],
75
75
  // },