@scalar/api-client 2.2.34 → 2.2.37

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 (89) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
  3. package/dist/components/AddressBar/AddressBarHistory.vue2.js +18 -18
  4. package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -0
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  7. package/dist/components/CodeInput/CodeInput.vue2.js +114 -108
  8. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +1 -0
  9. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
  10. package/dist/components/CommandPalette/CommandActionInput.vue.js +21 -18
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +2 -2
  14. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  15. package/dist/components/ContextBar.vue.js +1 -1
  16. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  17. package/dist/components/DataTable/DataTableCheckbox.vue.js +20 -15
  18. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  19. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  20. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  21. package/dist/components/DataTable/DataTableInputSelect.vue.js +43 -43
  22. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  23. package/dist/components/Form/Form.vue.js +3 -3
  24. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  25. package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
  26. package/dist/components/TopNav/TopNav.vue.js +27 -27
  27. package/dist/layouts/App/create-api-client-app.d.ts +4 -58
  28. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  29. package/dist/layouts/Modal/create-api-client-modal.d.ts +8 -116
  30. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  31. package/dist/layouts/Web/create-api-client-web.d.ts +4 -58
  32. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  33. package/dist/libs/create-client.d.ts +4 -58
  34. package/dist/libs/create-client.d.ts.map +1 -1
  35. package/dist/libs/index.js +18 -19
  36. package/dist/libs/send-request/index.js +3 -4
  37. package/dist/libs/send-request/send-request.d.ts +0 -14
  38. package/dist/libs/send-request/send-request.d.ts.map +1 -1
  39. package/dist/libs/send-request/send-request.js +120 -142
  40. package/dist/libs/send-request/set-request-cookies.d.ts +27 -0
  41. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -0
  42. package/dist/libs/send-request/set-request-cookies.js +54 -0
  43. package/dist/store/active-entities.d.ts.map +1 -1
  44. package/dist/store/active-entities.js +15 -12
  45. package/dist/store/cookies.d.ts +4 -58
  46. package/dist/store/cookies.d.ts.map +1 -1
  47. package/dist/store/cookies.js +5 -17
  48. package/dist/store/store.d.ts +4 -58
  49. package/dist/store/store.d.ts.map +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  52. package/dist/views/Cookies/CookieForm.vue.js +24 -37
  53. package/dist/views/Cookies/CookieModal.vue.d.ts +21 -0
  54. package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -0
  55. package/dist/views/Cookies/CookieModal.vue.js +7 -0
  56. package/dist/views/Cookies/CookieModal.vue2.js +88 -0
  57. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  58. package/dist/views/Cookies/Cookies.vue2.js +98 -119
  59. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  60. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +30 -27
  61. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  62. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  63. package/dist/views/Request/RequestSection/RequestBody.vue2.js +6 -6
  64. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
  65. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  66. package/dist/views/Request/RequestSection/RequestParams.vue.js +79 -66
  67. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  68. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +51 -42
  69. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  70. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  71. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -64
  72. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +10 -3
  73. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  74. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  75. package/dist/views/Request/RequestSection/RequestTable.vue2.js +170 -132
  76. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  77. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +5 -64
  78. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +46 -2
  79. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +19 -17
  80. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  81. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +31 -31
  82. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  83. package/dist/views/Request/libs/oauth2.js +1 -1
  84. package/dist/views/Request/libs/request.d.ts +12 -0
  85. package/dist/views/Request/libs/request.d.ts.map +1 -0
  86. package/dist/views/Request/libs/request.js +4 -0
  87. package/package.json +14 -16
  88. package/dist/views/Cookies/CookieRaw.vue.js +0 -28
  89. package/dist/views/Cookies/CookieRaw.vue2.js +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.2.37
4
+
5
+ ### Patch Changes
6
+
7
+ - 9276103: fix: add back in using index as a key in a couple places
8
+ - de6cd98: feat: adds query parameters array support
9
+
10
+ ## 2.2.36
11
+
12
+ ### Patch Changes
13
+
14
+ - ca381b6: fix: avoids index as a key in list rendering
15
+ - c803e2d: feat: cookies 🍪
16
+ - ca381b6: fix: updates param tooltip function and style
17
+ - Updated dependencies [c803e2d]
18
+ - Updated dependencies [aac6c86]
19
+ - @scalar/oas-utils@0.2.99
20
+ - @scalar/components@0.13.16
21
+ - @scalar/import@0.2.19
22
+ - @scalar/postman-to-openapi@0.1.22
23
+ - @scalar/use-codemirror@0.11.61
24
+
25
+ ## 2.2.35
26
+
27
+ ### Patch Changes
28
+
29
+ - f9668c5: feat: updates checkbox style and display in path params
30
+ - f9668c5: fix: handles path variable on request path change
31
+ - b968e0f: fix: prevents raw removal when binary
32
+ - b968e0f: fix: updates request body style
33
+ - 406eb48: Increase OAuth state parameter to 8 characters for increased entropy
34
+ - f1f8de9: fix: prevent hitting enter in auth from refreshing page
35
+ - Updated dependencies [97d8981]
36
+ - Updated dependencies [1bee104]
37
+ - Updated dependencies [b552db5]
38
+ - @scalar/components@0.13.15
39
+ - @scalar/types@0.0.27
40
+ - @scalar/use-codemirror@0.11.60
41
+ - @scalar/oas-utils@0.2.98
42
+ - @scalar/openapi-parser@0.10.4
43
+ - @scalar/themes@0.9.61
44
+ - @scalar/import@0.2.18
45
+ - @scalar/postman-to-openapi@0.1.21
46
+ - @scalar/use-hooks@0.1.15
47
+
3
48
  ## 2.2.34
4
49
 
5
50
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBarHistory.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-69d275b6"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-881da974"]]);
5
5
  export {
6
6
  d as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as C, computed as q, openBlock as u, createElementBlock as b, Fragment as h, createBlock as i, unref as o, withCtx as c, createVNode as x, createCommentVNode as v, createElementVNode as s, normalizeClass as g, renderList as B, toDisplayString as l } from "vue";
1
+ import { defineComponent as C, computed as q, openBlock as u, createElementBlock as f, Fragment as b, createBlock as i, unref as o, withCtx as c, createVNode as x, createCommentVNode as h, createElementVNode as s, normalizeClass as v, renderList as B, toDisplayString as l } from "vue";
2
2
  import { formatMs as H } from "../../libs/formatters.js";
3
- import { useActiveEntities as y } from "../../store/active-entities.js";
4
- import { ListboxButton as E, ListboxOptions as L, ListboxOption as S } from "@headlessui/vue";
3
+ import { useActiveEntities as E } from "../../store/active-entities.js";
4
+ import { ListboxButton as L, ListboxOptions as S, ListboxOption as y } from "@headlessui/vue";
5
5
  import { ScalarIcon as z } from "@scalar/components";
6
6
  import { httpStatusCodes as M } from "@scalar/oas-utils/helpers";
7
7
  import { useRouter as N } from "vue-router";
@@ -14,23 +14,23 @@ const A = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, T =
14
14
  open: { type: Boolean }
15
15
  },
16
16
  setup(O) {
17
- const { activeRequest: d } = y(), { requestHistory: k, requestExampleMutators: _ } = $(), p = N(), m = q(
18
- () => k.filter((t) => {
17
+ const { activeRequest: d } = E(), { requestHistory: g, requestExampleMutators: k } = $(), p = N(), m = q(
18
+ () => g.filter((t) => {
19
19
  var r;
20
20
  return t.request.requestUid === ((r = d.value) == null ? void 0 : r.uid);
21
21
  }).slice().reverse()
22
22
  );
23
- function w(t) {
23
+ function _(t) {
24
24
  var n;
25
25
  const r = p.currentRoute.value.params.workspace;
26
26
  ((n = d.value) == null ? void 0 : n.uid) !== t.request.requestUid && p.push(
27
27
  `/workspace/${r}/request/${t.request.requestUid}`
28
- ), _.set({ ...t.request });
28
+ ), k.set({ ...t.request });
29
29
  }
30
30
  return (t, r) => {
31
31
  var n;
32
- return u(), b(h, null, [
33
- (n = m.value) != null && n.length ? (u(), i(o(E), {
32
+ return u(), f(b, null, [
33
+ (n = m.value) != null && n.length ? (u(), i(o(L), {
34
34
  key: 0,
35
35
  class: "addressbar-history-button mr-1 rounded-lg p-1.5 text-c-3 focus:text-c-1"
36
36
  }, {
@@ -42,20 +42,20 @@ const A = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, T =
42
42
  })
43
43
  ]),
44
44
  _: 1
45
- })) : v("", !0),
45
+ })) : h("", !0),
46
46
  s("div", {
47
- class: g([
47
+ class: v([
48
48
  "absolute bg-white left-0 top-8 w-full rounded-lg before:pointer-events-none before:absolute before:left-0 before:-top-8 before:h-[calc(100%+32px)] before:w-full before:rounded-lg z-context",
49
49
  { "before:shadow-lg": t.open }
50
50
  ])
51
51
  }, [
52
- x(o(L), { class: "bg-b-1 border-t custom-scroll max-h-[300px] rounded-b-lg p-[3px] grid grid-cols-[44px,1fr,repeat(3,auto)] items-center" }, {
52
+ x(o(S), { class: "bg-b-1 border-t custom-scroll max-h-[300px] rounded-b-lg p-[3px] grid grid-cols-[44px,1fr,repeat(3,auto)] items-center" }, {
53
53
  default: c(() => [
54
- (u(!0), b(h, null, B(m.value, (e, f) => (u(), i(o(S), {
55
- key: f,
54
+ (u(!0), f(b, null, B(m.value, (e, w) => (u(), i(o(y), {
55
+ key: e.timestamp,
56
56
  class: "contents font-code text-sm *:rounded-none first:*:rounded-l last:*:rounded-r *:h-8 *:ui-active:bg-b-2 *:flex *:items-center *:cursor-pointer *:px-1.5 text-c-2 font-medium",
57
- value: f,
58
- onClick: (a) => w(e)
57
+ value: w,
58
+ onClick: (a) => _(e)
59
59
  }, {
60
60
  default: c(() => {
61
61
  var a;
@@ -64,13 +64,13 @@ const A = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, T =
64
64
  key: 0,
65
65
  class: "text-[11px]",
66
66
  method: e.response.method
67
- }, null, 8, ["method"])) : v("", !0),
67
+ }, null, 8, ["method"])) : h("", !0),
68
68
  s("div", A, [
69
69
  s("div", I, l(e.response.path), 1)
70
70
  ]),
71
71
  s("div", null, l(o(H)(e.response.duration)), 1),
72
72
  s("div", {
73
- class: g([o(V)(e.response.status).color])
73
+ class: v([o(V)(e.response.status).color])
74
74
  }, l(e.response.status), 3),
75
75
  s("div", null, l((a = o(M)[e.response.status]) == null ? void 0 : a.name), 1)
76
76
  ];
@@ -1,6 +1,7 @@
1
1
  import { type CodeMirrorLanguage } from '@scalar/use-codemirror';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  colorPicker?: boolean;
4
+ disabled?: boolean;
4
5
  modelValue: string | number;
5
6
  error?: boolean;
6
7
  emitOnBlur?: boolean;
@@ -29,6 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
29
30
  curl: (v: string) => any;
30
31
  }, string, import("vue").PublicProps, Readonly<{
31
32
  colorPicker?: boolean;
33
+ disabled?: boolean;
32
34
  modelValue: string | number;
33
35
  error?: boolean;
34
36
  emitOnBlur?: boolean;
@@ -54,6 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
54
56
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
55
57
  onCurl?: ((v: string) => any) | undefined;
56
58
  }>, {
59
+ disabled: boolean;
57
60
  emitOnBlur: boolean;
58
61
  colorPicker: boolean;
59
62
  disableTabIndent: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAgdO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAkBb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;;;kBApBX,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;gBAjBZ,OAAO;iBAHN,OAAO;sBAMF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;gBAEV,OAAO;;qBAuZM,GAAG;kBACN,GAAG;;AA9a9B,wBA0eC;AAgBD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAqdO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAkBb,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;;;kBArBX,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;cApBd,OAAO;gBAGL,OAAO;iBAJN,OAAO;sBAOF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;gBAEV,OAAO;;qBAwaM,GAAG;kBACN,GAAG;;AAhc9B,wBA4fC;AAgBD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-958f2326"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-492fdbc8"]]);
6
6
  export {
7
7
  _ as default
8
8
  };
@@ -1,30 +1,34 @@
1
- import { defineComponent as j, useAttrs as J, ref as u, toRef as r, watch as L, computed as Q, openBlock as s, createElementBlock as p, Fragment as G, createBlock as h, mergeProps as H, unref as n, withKeys as w, withModifiers as D, createElementVNode as E, createVNode as X, createCommentVNode as f, renderSlot as $ } from "vue";
2
- import { useCodeMirror as Y, useDropdown as Z, colorPicker as ee } from "@scalar/use-codemirror";
3
- import { nanoid as oe } from "nanoid";
4
- import q from "../DataTable/DataTableInputSelect.vue.js";
5
- import { pillPlugin as te, backspaceCommand as le } from "./codeVariableWidget.js";
6
- import ne from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
7
- import { useClipboard as ae } from "@scalar/use-hooks/useClipboard";
8
- import { ScalarIcon as re } from "@scalar/components";
9
- import { prettyPrintJson as se } from "@scalar/oas-utils/helpers";
1
+ import { defineComponent as _, useAttrs as J, ref as i, toRef as s, watch as L, computed as Q, openBlock as n, createElementBlock as u, Fragment as G, createElementVNode as h, toDisplayString as H, createBlock as w, mergeProps as X, unref as a, withKeys as V, withModifiers as $, createVNode as Y, createCommentVNode as c, renderSlot as q } from "vue";
2
+ import { useCodeMirror as Z, useDropdown as ee, colorPicker as oe } from "@scalar/use-codemirror";
3
+ import { nanoid as le } from "nanoid";
4
+ import R from "../DataTable/DataTableInputSelect.vue.js";
5
+ import { pillPlugin as te, backspaceCommand as ne } from "./codeVariableWidget.js";
6
+ import ae from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
7
+ import { useClipboard as re } from "@scalar/use-hooks/useClipboard";
8
+ import { ScalarIcon as se } from "@scalar/components";
9
+ import { prettyPrintJson as ie } from "@scalar/oas-utils/helpers";
10
10
  import { useActiveEntities as ue } from "../../store/active-entities.js";
11
- import { useWorkspace as ie } from "../../store/store.js";
12
- const de = ["id"], pe = {
11
+ import { useWorkspace as de } from "../../store/store.js";
12
+ const pe = {
13
+ key: 0,
14
+ class: "flex items-center justify-center p-2"
15
+ }, fe = { class: "text-c-2 text-sm" }, ce = ["id"], me = {
13
16
  key: 0,
14
17
  class: "scalar-code-copy z-context"
15
- }, ce = {
16
- key: 3,
17
- class: "absolute centered-y right-7 text-orange text-xs"
18
- }, fe = {
18
+ }, ye = {
19
19
  key: 4,
20
+ class: "absolute centered-y right-7 text-orange text-xs"
21
+ }, be = {
22
+ key: 5,
20
23
  class: "required absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[.cm-focused]:opacity-0 pointer-events-none"
21
- }, me = {
24
+ }, ve = {
22
25
  inheritAttrs: !1
23
- }, xe = /* @__PURE__ */ j({
24
- ...me,
26
+ }, Ee = /* @__PURE__ */ _({
27
+ ...ve,
25
28
  __name: "CodeInput",
26
29
  props: {
27
30
  colorPicker: { type: Boolean, default: !1 },
31
+ disabled: { type: Boolean, default: !1 },
28
32
  modelValue: {},
29
33
  error: { type: Boolean },
30
34
  emitOnBlur: { type: Boolean, default: !0 },
@@ -47,139 +51,141 @@ const de = ["id"], pe = {
47
51
  default: {}
48
52
  },
49
53
  emits: ["submit", "update:modelValue", "curl"],
50
- setup(R, { expose: N, emit: O }) {
51
- var P;
52
- const e = R, i = O, V = J(), _ = V.id || `id-${oe()}`, g = u(!1), m = u(!1), B = u(""), C = u({ left: 0, top: 0 }), c = u(null), { activeEnvVariables: k, activeEnvironment: b, activeWorkspace: A } = ue(), { isReadOnly: S } = ie(), { copyToClipboard: I } = ae();
53
- function K(o) {
54
- var t;
55
- return o === e.modelValue ? null : e.importCurl && o.trim().toLowerCase().startsWith("curl") ? (i("curl", o), (t = a.value) == null || t.dispatch({
54
+ setup(x, { expose: N, emit: O }) {
55
+ var F;
56
+ const o = x, d = O, g = J(), A = g.id || `id-${le()}`, B = i(!1), m = i(!1), k = i(""), C = i({ left: 0, top: 0 }), f = i(null), { activeEnvVariables: S, activeEnvironment: y, activeWorkspace: I } = ue(), { isReadOnly: P } = de(), { copyToClipboard: K } = re();
57
+ function M(e) {
58
+ var l;
59
+ return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (d("curl", e), (l = r.value) == null || l.dispatch({
56
60
  changes: {
57
61
  from: 0,
58
- to: a.value.state.doc.length,
59
- insert: String(e.modelValue)
62
+ to: r.value.state.doc.length,
63
+ insert: String(o.modelValue)
60
64
  }
61
- }), null) : e.handleFieldChange ? e.handleFieldChange(o) : i("update:modelValue", o);
65
+ }), null) : o.handleFieldChange ? o.handleFieldChange(e) : d("update:modelValue", e);
62
66
  }
63
- function M(o) {
64
- return e.handleFieldSubmit ? e.handleFieldSubmit(o) : i("submit", o);
67
+ function T(e) {
68
+ return o.handleFieldSubmit ? o.handleFieldSubmit(e) : d("submit", e);
65
69
  }
66
- function T(o) {
67
- g.value = !1, e.emitOnBlur && e.modelValue && M(o);
70
+ function W(e) {
71
+ B.value = !1, o.emitOnBlur && o.modelValue && T(e);
68
72
  }
69
- const y = [];
70
- e.colorPicker && y.push(ee), y.push(
73
+ const b = [];
74
+ o.colorPicker && b.push(oe), b.push(
71
75
  te({
72
- environment: b.value,
73
- envVariables: k.value,
74
- workspace: A.value,
75
- isReadOnly: S
76
+ environment: y.value,
77
+ envVariables: S.value,
78
+ workspace: I.value,
79
+ isReadOnly: P
76
80
  }),
77
- le
81
+ ne
78
82
  );
79
- const x = u(null), { codeMirror: a } = Y({
80
- content: r(
81
- () => e.modelValue !== void 0 ? String(e.modelValue) : ""
83
+ const D = i(null), { codeMirror: r } = Z({
84
+ content: s(
85
+ () => o.modelValue !== void 0 ? String(o.modelValue) : ""
82
86
  ),
83
- onChange: (o) => {
84
- K(o), z();
87
+ onChange: (e) => {
88
+ M(e), z();
85
89
  },
86
- onFocus: () => g.value = !0,
87
- onBlur: (o) => T(o),
88
- codeMirrorRef: x,
89
- disableTabIndent: r(() => e.disableTabIndent),
90
- disableEnter: r(() => e.disableEnter),
91
- disableCloseBrackets: r(() => e.disableCloseBrackets),
92
- lineNumbers: r(() => e.lineNumbers),
93
- language: r(() => e.language),
94
- lint: r(() => e.lint),
95
- extensions: y,
96
- placeholder: r(() => e.placeholder)
90
+ onFocus: () => B.value = !0,
91
+ onBlur: (e) => W(e),
92
+ codeMirrorRef: D,
93
+ disableTabIndent: s(() => o.disableTabIndent),
94
+ disableEnter: s(() => o.disableEnter),
95
+ disableCloseBrackets: s(() => o.disableCloseBrackets),
96
+ lineNumbers: s(() => o.lineNumbers),
97
+ language: s(() => o.language),
98
+ lint: s(() => o.lint),
99
+ extensions: b,
100
+ placeholder: s(() => o.placeholder)
97
101
  });
98
- (P = a.value) == null || P.focus(), L(a, () => {
99
- a.value && Object.prototype.hasOwnProperty.call(V, "autofocus") && a.value.focus();
102
+ (F = r.value) == null || F.focus(), L(r, () => {
103
+ r.value && Object.prototype.hasOwnProperty.call(g, "autofocus") && r.value.focus();
100
104
  });
101
- const { handleDropdownSelect: W, updateDropdownVisibility: z } = Z({
102
- codeMirror: a,
103
- query: B,
105
+ const { handleDropdownSelect: j, updateDropdownVisibility: z } = ee({
106
+ codeMirror: r,
107
+ query: k,
104
108
  showDropdown: m,
105
109
  dropdownPosition: C
106
110
  }), U = Q(() => {
107
- var o;
108
- return e.type === "boolean" || (o = e.type) != null && o.includes("boolean") || e.nullable ? ["true", "false", "null"] : ["true", "false"];
111
+ var e;
112
+ return o.type === "boolean" || (e = o.type) != null && e.includes("boolean") || o.nullable ? ["true", "false", "null"] : ["true", "false"];
109
113
  });
110
114
  N({
111
115
  focus: () => {
112
- var o;
113
- (o = a.value) == null || o.focus();
116
+ var e;
117
+ (e = r.value) == null || e.focus();
114
118
  }
115
119
  });
116
- const v = (o, t) => {
117
- var d, l, F;
118
- m.value && (o === "down" ? (t.preventDefault(), (d = c.value) == null || d.handleArrowKey("down")) : o === "up" ? (t.preventDefault(), (l = c.value) == null || l.handleArrowKey("up")) : o === "enter" && (t.preventDefault(), (F = c.value) == null || F.handleSelect()));
120
+ const v = (e, l) => {
121
+ var p, t, E;
122
+ m.value && (e === "down" ? (l.preventDefault(), (p = f.value) == null || p.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = f.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (E = f.value) == null || E.handleSelect()));
119
123
  };
120
- return (o, t) => {
121
- var d;
122
- return s(), p(G, null, [
123
- e.enum && e.enum.length ? (s(), h(q, {
124
- key: 0,
125
- default: e.default,
126
- modelValue: e.modelValue,
127
- value: e.enum,
128
- "onUpdate:modelValue": t[0] || (t[0] = (l) => i("update:modelValue", l))
129
- }, null, 8, ["default", "modelValue", "value"])) : e.type === "boolean" || (d = e.type) != null && d.includes("boolean") ? (s(), h(q, {
124
+ return (e, l) => {
125
+ var p;
126
+ return n(), u(G, null, [
127
+ e.disabled ? (n(), u("div", pe, [
128
+ h("span", fe, H(e.modelValue), 1)
129
+ ])) : o.enum && o.enum.length ? (n(), w(R, {
130
130
  key: 1,
131
- default: e.default,
131
+ default: o.default,
132
132
  modelValue: e.modelValue,
133
- value: U.value,
134
- "onUpdate:modelValue": t[1] || (t[1] = (l) => i("update:modelValue", l))
135
- }, null, 8, ["default", "modelValue", "value"])) : (s(), p("div", H({
133
+ value: o.enum,
134
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => d("update:modelValue", t))
135
+ }, null, 8, ["default", "modelValue", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), w(R, {
136
136
  key: 2,
137
- id: n(_)
138
- }, o.$attrs, {
137
+ default: o.default,
138
+ modelValue: e.modelValue,
139
+ value: U.value,
140
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => d("update:modelValue", t))
141
+ }, null, 8, ["default", "modelValue", "value"])) : (n(), u("div", X({
142
+ key: 3,
143
+ id: a(A)
144
+ }, e.$attrs, {
139
145
  ref_key: "codeMirrorRef",
140
- ref: x,
146
+ ref: D,
141
147
  class: ["peer font-code w-full whitespace-nowrap overflow-hidden text-xs leading-[1.44] relative has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-2", {
142
- "flow-code-input--error": o.error
148
+ "flow-code-input--error": e.error
143
149
  }],
144
150
  onKeydown: [
145
- t[3] || (t[3] = w(D((l) => v("down", l), ["stop"]), ["down"])),
146
- t[4] || (t[4] = w((l) => v("enter", l), ["enter"])),
147
- t[5] || (t[5] = w(D((l) => v("up", l), ["stop"]), ["up"]))
151
+ l[3] || (l[3] = V($((t) => v("down", t), ["stop"]), ["down"])),
152
+ l[4] || (l[4] = V((t) => v("enter", t), ["enter"])),
153
+ l[5] || (l[5] = V($((t) => v("up", t), ["stop"]), ["up"]))
148
154
  ]
149
155
  }), [
150
- o.isCopyable ? (s(), p("div", pe, [
151
- E("button", {
156
+ e.isCopyable ? (n(), u("div", me, [
157
+ h("button", {
152
158
  class: "copy-button",
153
159
  type: "button",
154
- onClick: t[2] || (t[2] = (l) => n(I)(n(se)(e.modelValue)))
160
+ onClick: l[2] || (l[2] = (t) => a(K)(a(ie)(e.modelValue)))
155
161
  }, [
156
- t[6] || (t[6] = E("span", { class: "sr-only" }, "Copy content", -1)),
157
- X(n(re), {
162
+ l[6] || (l[6] = h("span", { class: "sr-only" }, "Copy content", -1)),
163
+ Y(a(se), {
158
164
  icon: "Clipboard",
159
165
  size: "md"
160
166
  })
161
167
  ])
162
- ])) : f("", !0)
163
- ], 16, de)),
164
- o.$slots.warning ? (s(), p("div", ce, [
165
- $(o.$slots, "warning", {}, void 0, !0)
166
- ])) : f("", !0),
167
- $(o.$slots, "icon", {}, void 0, !0),
168
- o.required ? (s(), p("div", fe, " Required ")) : f("", !0),
169
- m.value && e.withVariables && !n(S) && n(b) ? (s(), h(ne, {
170
- key: 5,
168
+ ])) : c("", !0)
169
+ ], 16, ce)),
170
+ e.$slots.warning ? (n(), u("div", ye, [
171
+ q(e.$slots, "warning", {}, void 0, !0)
172
+ ])) : c("", !0),
173
+ q(e.$slots, "icon", {}, void 0, !0),
174
+ e.required ? (n(), u("div", be, " Required ")) : c("", !0),
175
+ m.value && e.withVariables && !a(P) && a(y) ? (n(), w(ae, {
176
+ key: 6,
171
177
  ref_key: "dropdownRef",
172
- ref: c,
178
+ ref: f,
173
179
  dropdownPosition: C.value,
174
- envVariables: n(k),
175
- environment: n(b),
176
- query: B.value,
177
- onSelect: n(W)
178
- }, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) : f("", !0)
180
+ envVariables: a(S),
181
+ environment: a(y),
182
+ query: k.value,
183
+ onSelect: a(j)
184
+ }, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) : c("", !0)
179
185
  ], 64);
180
186
  };
181
187
  }
182
188
  });
183
189
  export {
184
- xe as default
190
+ Ee as default
185
191
  };
@@ -1,6 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  modelValue?: string;
3
3
  placeholder?: string;
4
+ autofocus?: boolean;
4
5
  };
5
6
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
7
  "update:modelValue": (v: string) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"CommandActionInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionInput.vue"],"names":[],"mappings":"AAyDA,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;;;;;;;;AA4GF,wBAOG"}
1
+ {"version":3,"file":"CommandActionInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionInput.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;AAkHF,wBAOG"}
@@ -1,46 +1,49 @@
1
- import { defineComponent as f, ref as c, onMounted as h, nextTick as g, computed as v, withDirectives as w, openBlock as x, createElementBlock as k, mergeProps as y, withKeys as s, vModelText as D } from "vue";
1
+ import { defineComponent as f, ref as c, onMounted as h, nextTick as g, computed as v, withDirectives as w, openBlock as x, createElementBlock as y, mergeProps as k, withKeys as s, vModelText as D } from "vue";
2
2
  const E = ["placeholder"], b = /* @__PURE__ */ f({
3
3
  inheritAttrs: !1,
4
4
  __name: "CommandActionInput",
5
5
  props: {
6
6
  modelValue: {},
7
- placeholder: {}
7
+ placeholder: {},
8
+ autofocus: { type: Boolean }
8
9
  },
9
10
  emits: ["update:modelValue", "onDelete"],
10
11
  setup(i, { emit: p }) {
11
- const l = i, r = p, a = c(null);
12
- h(() => g(() => {
13
- var e;
14
- return (e = a.value) == null ? void 0 : e.focus();
15
- }));
16
- const o = v({
17
- get: () => l.modelValue ?? "",
12
+ const n = i, r = p, a = c(null);
13
+ h(
14
+ () => g(() => {
15
+ var e;
16
+ n.autofocus || (e = a.value) == null || e.focus();
17
+ })
18
+ );
19
+ const l = v({
20
+ get: () => n.modelValue ?? "",
18
21
  set: (e) => r("update:modelValue", e)
19
22
  });
20
23
  function d(e) {
21
24
  var u;
22
25
  if (e.shiftKey || !e.target) return;
23
26
  e.preventDefault();
24
- const t = e.target, n = new Event("submit", { cancelable: !0 });
25
- (u = t.form) == null || u.dispatchEvent(n);
27
+ const t = e.target, o = new Event("submit", { cancelable: !0 });
28
+ (u = t.form) == null || u.dispatchEvent(o);
26
29
  }
27
30
  function m(e) {
28
- o.value === "" && (e.preventDefault(), e.stopPropagation(), r("onDelete", e));
31
+ l.value === "" && (e.preventDefault(), e.stopPropagation(), r("onDelete", e));
29
32
  }
30
- return (e, t) => w((x(), k("textarea", y({
33
+ return (e, t) => w((x(), y("textarea", k({
31
34
  ref_key: "input",
32
35
  ref: a,
33
- "onUpdate:modelValue": t[0] || (t[0] = (n) => o.value = n),
36
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
34
37
  class: "border-none outline-none flex-1 w-full pl-8 text-sm min-h-8 py-1.5 resize-none",
35
- placeholder: l.placeholder,
38
+ placeholder: n.placeholder,
36
39
  wrap: "hard"
37
40
  }, e.$attrs, {
38
41
  onKeydown: [
39
- t[1] || (t[1] = s((n) => m(n), ["delete"])),
40
- t[2] || (t[2] = s((n) => d(n), ["enter"]))
42
+ t[1] || (t[1] = s((o) => m(o), ["delete"])),
43
+ t[2] || (t[2] = s((o) => d(o), ["enter"]))
41
44
  ]
42
45
  }), null, 16, E)), [
43
- [D, o.value]
46
+ [D, l.value]
44
47
  ]);
45
48
  }
46
49
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAiZA;;;;GAIG;;AACH,wBAgeI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA5f9B,CA5OC;qBA4OD,CA5OwB;;;;;;;mBA4OxB,CA5OC;qBA4OD,CA5OwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgvBd,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAkZA;;;;GAIG;;AACH,wBAieI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA7f9B,CA9OiD;qBA8OjD,CA7OQ;;;;;;;mBA6OR,CA9OiD;qBA8OjD,CA7OQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkvBE,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
@@ -2,8 +2,8 @@ import o from "./TheCommandPalette.vue2.js";
2
2
  import { PaletteComponents as s } from "./TheCommandPalette.vue2.js";
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5143d9bb"]]);
5
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f73a73e6"]]);
6
6
  export {
7
7
  s as PaletteComponents,
8
- a as default
8
+ r as default
9
9
  };
@@ -74,12 +74,12 @@ const he = {
74
74
  {
75
75
  name: "Add Environment",
76
76
  icon: "Brackets",
77
- path: "environment"
77
+ path: "environment.default"
78
78
  },
79
79
  {
80
80
  name: "Add Cookie",
81
81
  icon: "Cookie",
82
- path: "cookies"
82
+ path: "cookies.default"
83
83
  }
84
84
  ]
85
85
  },
@@ -1 +1 @@
1
- {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;;;;;;AAwKF,wBAQG"}
1
+ {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":"AAgJA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;;;;;;AAsKF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ContextBar.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cf482b83"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7906217f"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"AAwDA,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;;AAsH7B,wBASG"}
1
+ {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"AA4DA,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;;AAuH7B,wBASG"}