@scalar/api-client 2.17.3 → 2.17.5

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 (104) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/style.css +1 -1
  3. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +15 -10
  4. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  5. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +70 -55
  6. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  7. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +12 -8
  8. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +3 -5
  9. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -1
  10. package/dist/v2/blocks/operation-block/helpers/build-request-security.js +31 -31
  11. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +4 -6
  12. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  13. package/dist/v2/blocks/operation-block/helpers/build-request.js +20 -21
  14. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
  15. package/dist/v2/blocks/operation-block/helpers/get-example.js +22 -16
  16. package/dist/v2/blocks/operation-block/helpers/send-request.js +26 -26
  17. package/dist/v2/blocks/operation-block/index.d.ts +1 -0
  18. package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
  19. package/dist/v2/blocks/operation-block/index.js +4 -2
  20. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +9 -4
  21. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  22. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
  23. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +81 -88
  24. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +4 -4
  25. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  26. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +1 -1
  27. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  28. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +1 -1
  29. package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
  30. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  31. package/dist/v2/blocks/operation-code-sample/index.js +11 -9
  32. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +3 -2
  33. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  34. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  35. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +59 -63
  36. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  37. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  38. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +78 -74
  39. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +3 -3
  40. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  41. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +43 -42
  42. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  43. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +96 -86
  44. package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts +8 -0
  45. package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts.map +1 -0
  46. package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.js +33 -0
  47. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts +7 -0
  48. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts.map +1 -0
  49. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.js +13 -0
  50. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +3 -0
  51. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
  52. package/dist/v2/blocks/scalar-auth-selector-block/index.js +8 -2
  53. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  54. package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
  55. package/dist/v2/components/data-table/DataTableInput.vue2.js +25 -24
  56. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  57. package/dist/v2/features/app/App.vue.js +34 -33
  58. package/dist/v2/features/app/helpers/routes.d.ts +2 -0
  59. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  60. package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +1 -1
  61. package/dist/v2/features/app/hooks/use-workspace-client-app-events.js +29 -29
  62. package/dist/v2/features/collection/DocumentCollection.vue.js +4 -3
  63. package/dist/v2/features/collection/WorkspaceCollection.vue.js +8 -7
  64. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  65. package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
  66. package/dist/v2/features/collection/components/Authentication.vue2.js +7 -6
  67. package/dist/v2/features/collection/components/Cookies.vue.js +1 -0
  68. package/dist/v2/features/collection/components/Environment.vue.js +1 -0
  69. package/dist/v2/features/collection/components/Overview.vue2.js +8 -7
  70. package/dist/v2/features/collection/components/Servers.vue.js +25 -24
  71. package/dist/v2/features/collection/components/Settings.vue.js +8 -7
  72. package/dist/v2/features/modal/Modal.vue.d.ts +6 -0
  73. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  74. package/dist/v2/features/modal/Modal.vue.js +2 -2
  75. package/dist/v2/features/modal/Modal.vue2.js +66 -62
  76. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +16 -16
  77. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  78. package/dist/v2/features/modal/helpers/create-api-client-modal.js +36 -29
  79. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
  80. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +25 -12
  81. package/dist/v2/features/modal/index.d.ts +2 -1
  82. package/dist/v2/features/modal/index.d.ts.map +1 -1
  83. package/dist/v2/features/modal/index.js +3 -1
  84. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  85. package/dist/v2/features/operation/Operation.vue.js +54 -62
  86. package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +1 -1
  87. package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -1
  88. package/dist/v2/features/operation/helpers/get-security-requirements.js +2 -2
  89. package/dist/v2/features/operation/helpers/get-selected-security.d.ts +5 -2
  90. package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
  91. package/dist/v2/features/operation/helpers/get-selected-security.js +11 -11
  92. package/dist/v2/features/operation/helpers/get-selected-server.d.ts +10 -0
  93. package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -0
  94. package/dist/v2/features/operation/helpers/get-selected-server.js +4 -0
  95. package/dist/v2/features/operation/index.d.ts +3 -0
  96. package/dist/v2/features/operation/index.d.ts.map +1 -1
  97. package/dist/v2/features/operation/index.js +8 -2
  98. package/dist/v2/helpers/index.d.ts +3 -0
  99. package/dist/v2/helpers/index.d.ts.map +1 -0
  100. package/dist/v2/helpers/index.js +4 -0
  101. package/dist/v2/helpers/plugins.d.ts +7 -1
  102. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  103. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  104. package/package.json +22 -17
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AAkcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAO1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAWxD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;;AA2kBF,wBAMG"}
1
+ {"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AA4bA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAO1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAWxD,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;IAC/C,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;;AAokBF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBlock.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-2b56a6b2"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-13f5983a"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,23 +1,23 @@
1
- import { defineComponent as Q, computed as r, ref as j, useId as i, watch as M, createBlock as k, openBlock as s, withCtx as w, createElementVNode as K, withDirectives as m, createElementBlock as f, createVNode as u, unref as y, vShow as d, mergeProps as B, toHandlers as S, Fragment as z, renderList as L, createCommentVNode as T, resolveDynamicComponent as G, toDisplayString as X } from "vue";
2
- import { ScalarErrorBoundary as J } from "@scalar/components";
1
+ import { defineComponent as D, computed as u, ref as Q, useId as r, watch as j, createBlock as k, openBlock as s, withCtx as w, createElementVNode as K, withDirectives as m, createElementBlock as f, createVNode as i, unref as y, vShow as d, mergeProps as B, toHandlers as S, Fragment as M, renderList as L, createCommentVNode as T, resolveDynamicComponent as z, toDisplayString as G } from "vue";
2
+ import { ScalarErrorBoundary as X } from "@scalar/components";
3
3
  import { canMethodHaveBody as b } from "@scalar/helpers/http/can-method-have-body";
4
- import { REGEX as W } from "@scalar/helpers/regex/regex-helpers";
4
+ import { REGEX as J } from "@scalar/helpers/regex/regex-helpers";
5
5
  import { getResolvedRef as V } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
- import Y from "../../../components/SectionFilter.vue.js";
7
- import Z from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
8
- import { getSelectedSecuritySchemes as _ } from "../operation-block/helpers/build-request-security.js";
9
- import ee from "./components/RequestBody.vue.js";
10
- import te from "./components/RequestCodeSnippet.vue.js";
6
+ import W from "../../../components/SectionFilter.vue.js";
7
+ import Y from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
8
+ import Z from "./components/RequestBody.vue.js";
9
+ import _ from "./components/RequestCodeSnippet.vue.js";
11
10
  import q from "./components/RequestParams.vue.js";
12
11
  import { createParameterHandlers as R } from "./helpers/create-parameter-handlers.js";
13
- import { groupBy as oe } from "./helpers/group-by.js";
14
- import ae from "../scalar-auth-selector-block/components/AuthSelector.vue.js";
15
- const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, le = ["for"], re = ["id", "placeholder", "value"], ie = {
12
+ import { groupBy as ee } from "./helpers/group-by.js";
13
+ import te from "../scalar-auth-selector-block/components/AuthSelector.vue.js";
14
+ const oe = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ae = ["for"], ne = ["id", "placeholder", "value"], le = {
16
15
  key: 2,
17
16
  class: "text-c-1 flex h-8 items-center"
18
- }, ue = ["id", "role"], we = /* @__PURE__ */ Q({
17
+ }, re = ["id", "role"], qe = /* @__PURE__ */ D({
19
18
  __name: "RequestBlock",
20
19
  props: {
20
+ selectedSecurity: {},
21
21
  authMeta: { default: () => ({ type: "document" }) },
22
22
  clientOptions: {},
23
23
  environment: {},
@@ -32,20 +32,20 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
32
32
  securityRequirements: {},
33
33
  securitySchemes: {},
34
34
  selectedClient: {},
35
- selectedSecurity: {},
35
+ selectedSecuritySchemes: {},
36
36
  server: {}
37
37
  },
38
38
  setup(t) {
39
- const o = r(() => ({
39
+ const o = u(() => ({
40
40
  method: t.method,
41
41
  path: t.path,
42
42
  exampleKey: t.exampleKey
43
- })), c = r(
44
- () => oe(
43
+ })), c = u(
44
+ () => ee(
45
45
  t.operation.parameters?.map((e) => V(e)) ?? [],
46
46
  "in"
47
47
  )
48
- ), a = j("All"), O = [
48
+ ), a = Q("All"), O = [
49
49
  "Auth",
50
50
  "Variables",
51
51
  "Cookies",
@@ -53,24 +53,24 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
53
53
  "Query",
54
54
  "Body"
55
55
  ], U = {
56
- All: i(),
57
- Auth: i(),
58
- Variables: i(),
59
- Cookies: i(),
60
- Headers: i(),
61
- Query: i(),
62
- Body: i()
63
- }, A = r(() => {
56
+ All: r(),
57
+ Auth: r(),
58
+ Variables: r(),
59
+ Cookies: r(),
60
+ Headers: r(),
61
+ Query: r(),
62
+ Body: r()
63
+ }, A = u(() => {
64
64
  const e = /* @__PURE__ */ new Set(["All", ...O]);
65
65
  return c.value.path?.length || e.delete("Variables"), b(t.method) || e.delete("Body"), g.value && e.delete("Auth"), [...e];
66
- }), n = r(
66
+ }), n = u(
67
67
  () => Object.fromEntries(
68
68
  A.value.map((e) => [e, U[e]])
69
69
  )
70
- ), g = r(
70
+ ), g = u(
71
71
  () => t.layout === "modal" && !t.operation.security && !Object.keys(t.securitySchemes ?? {}).length
72
- ), E = r(() => t.operation.summary ? t.operation.summary : t.path.replace(W.PROTOCOL, "") || "Request Name"), v = (e) => a.value === "All" || a.value === e;
73
- M(
72
+ ), E = u(() => t.operation.summary ? t.operation.summary : t.path.replace(J.PROTOCOL, "") || "Request Name"), v = (e) => a.value === "All" || a.value === e;
73
+ j(
74
74
  () => t.method,
75
75
  (e) => {
76
76
  a.value === "Body" && !b(e) && (a.value = "All");
@@ -82,7 +82,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
82
82
  meta: o.value,
83
83
  payload: { summary: l }
84
84
  });
85
- }, p = r(() => ({
85
+ }, p = u(() => ({
86
86
  path: R("path", t.eventBus, o.value),
87
87
  cookie: R("cookie", t.eventBus, o.value),
88
88
  header: R("header", t.eventBus, o.value),
@@ -96,14 +96,14 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
96
96
  value: e.data.value ?? ""
97
97
  }
98
98
  });
99
- }, x = (e) => t.eventBus.emit("operation:delete:requestBody:formRow", {
99
+ }, I = (e) => t.eventBus.emit("operation:delete:requestBody:formRow", {
100
100
  contentType: e.contentType,
101
101
  index: e.index,
102
102
  meta: o.value
103
- }), I = (e) => t.eventBus.emit("operation:update:requestBody:contentType", {
103
+ }), N = (e) => t.eventBus.emit("operation:update:requestBody:contentType", {
104
104
  payload: { contentType: e.value },
105
105
  meta: o.value
106
- }), N = (e) => t.eventBus.emit(
106
+ }), $ = (e) => t.eventBus.emit(
107
107
  "operation:update:requestBody:formRow",
108
108
  {
109
109
  contentType: e.contentType,
@@ -114,7 +114,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
114
114
  {
115
115
  debounceKey: `update:requestBody:formRow-${e.index}-${Object.keys(e.data).join("-")}`
116
116
  }
117
- ), $ = (e) => {
117
+ ), x = (e) => {
118
118
  const l = typeof e.value == "string" ? `update:requestBody:value-${e.contentType}` : void 0;
119
119
  t.eventBus.emit(
120
120
  "operation:update:requestBody:value",
@@ -127,22 +127,17 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
127
127
  debounceKey: l
128
128
  }
129
129
  );
130
- }, C = i(), F = r(
131
- () => _(
132
- t.securitySchemes,
133
- t.selectedSecurity?.selectedSchemes ?? []
134
- )
135
- );
136
- return (e, l) => (s(), k(Z, {
130
+ }, C = r();
131
+ return (e, l) => (s(), k(Y, {
137
132
  "aria-label": `Request: ${e.operation.summary}`
138
133
  }, {
139
134
  title: w(() => [
140
- K("div", ne, [
135
+ K("div", oe, [
141
136
  e.layout !== "modal" ? (s(), f("label", {
142
137
  key: 0,
143
138
  class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
144
139
  for: y(C)
145
- }, null, 8, le)) : T("", !0),
140
+ }, null, 8, ae)) : T("", !0),
146
141
  e.layout !== "modal" ? (s(), f("input", {
147
142
  key: 1,
148
143
  id: y(C),
@@ -150,9 +145,9 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
150
145
  placeholder: E.value,
151
146
  value: e.operation.summary,
152
147
  onInput: H
153
- }, null, 40, re)) : (s(), f("span", ie, X(e.operation.summary), 1))
148
+ }, null, 40, ne)) : (s(), f("span", le, G(e.operation.summary), 1))
154
149
  ]),
155
- u(Y, {
150
+ i(W, {
156
151
  modelValue: a.value,
157
152
  "onUpdate:modelValue": l[0] || (l[0] = (h) => a.value = h),
158
153
  filterIds: n.value,
@@ -165,7 +160,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
165
160
  class: "request-section-content custom-scroll relative flex flex-1 flex-col",
166
161
  role: a.value === "All" ? "tabpanel" : "none"
167
162
  }, [
168
- m(u(y(ae), {
163
+ m(i(y(te), {
169
164
  id: n.value.Auth,
170
165
  environment: e.environment,
171
166
  eventBus: e.eventBus,
@@ -174,12 +169,13 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
174
169
  securityRequirements: e.securityRequirements,
175
170
  securitySchemes: e.securitySchemes,
176
171
  selectedSecurity: e.selectedSecurity,
172
+ selectedSecuritySchemes: e.selectedSecuritySchemes,
177
173
  server: e.server,
178
- title: "Authorization"
179
- }, null, 8, ["id", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"]), [
174
+ title: "Authentication"
175
+ }, null, 8, ["id", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "selectedSecuritySchemes", "server"]), [
180
176
  [d, v("Auth") && !g.value]
181
177
  ]),
182
- m(u(q, B({
178
+ m(i(q, B({
183
179
  id: n.value.Variables,
184
180
  environment: e.environment,
185
181
  exampleKey: e.exampleKey,
@@ -189,7 +185,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
189
185
  }, S(p.value.path)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
190
186
  [d, v("Variables") && c.value.path?.length]
191
187
  ]),
192
- m(u(q, B({
188
+ m(i(q, B({
193
189
  id: n.value.Cookies,
194
190
  environment: e.environment,
195
191
  exampleKey: e.exampleKey,
@@ -199,7 +195,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
199
195
  }, S(p.value.cookie)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
200
196
  [d, v("Cookies")]
201
197
  ]),
202
- m(u(q, B({
198
+ m(i(q, B({
203
199
  id: n.value.Headers,
204
200
  environment: e.environment,
205
201
  exampleKey: e.exampleKey,
@@ -208,7 +204,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
208
204
  }, S(p.value.header)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
209
205
  [d, v("Headers")]
210
206
  ]),
211
- m(u(q, B({
207
+ m(i(q, B({
212
208
  id: n.value.Query,
213
209
  environment: e.environment,
214
210
  exampleKey: e.exampleKey,
@@ -217,23 +213,23 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
217
213
  }, S(p.value.query)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
218
214
  [d, v("Query")]
219
215
  ]),
220
- m(u(ee, {
216
+ m(i(Z, {
221
217
  id: n.value.Body,
222
218
  environment: e.environment,
223
219
  exampleKey: e.exampleKey,
224
220
  requestBody: y(V)(e.operation.requestBody),
225
221
  title: "Request Body",
226
222
  "onAdd:formRow": P,
227
- "onDelete:fromRow": x,
228
- "onUpdate:contentType": I,
229
- "onUpdate:formRow": N,
230
- "onUpdate:value": $
223
+ "onDelete:fromRow": I,
224
+ "onUpdate:contentType": N,
225
+ "onUpdate:formRow": $,
226
+ "onUpdate:value": x
231
227
  }, null, 8, ["id", "environment", "exampleKey", "requestBody"]), [
232
228
  [d, v("Body") && y(b)(e.method)]
233
229
  ]),
234
- (s(!0), f(z, null, L(e.plugins, (h, D) => (s(), k(y(J), { key: D }, {
230
+ (s(!0), f(M, null, L(e.plugins, (h, F) => (s(), k(y(X), { key: F }, {
235
231
  default: w(() => [
236
- h?.components?.request ? (s(), k(G(h.components.request), {
232
+ h?.components?.request ? (s(), k(z(h.components.request), {
237
233
  key: 0,
238
234
  operation: e.operation,
239
235
  selectedExample: e.exampleKey
@@ -242,24 +238,24 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
242
238
  _: 2
243
239
  }, 1024))), 128)),
244
240
  l[1] || (l[1] = K("div", { class: "flex flex-grow" }, null, -1)),
245
- m(u(te, {
241
+ m(i(_, {
246
242
  clientOptions: e.clientOptions,
247
243
  eventBus: e.eventBus,
248
244
  method: e.method,
249
245
  operation: e.operation,
250
246
  path: e.path,
251
- securitySchemes: F.value,
247
+ securitySchemes: e.selectedSecuritySchemes,
252
248
  selectedClient: e.selectedClient,
253
249
  selectedServer: e.server ?? void 0
254
250
  }, null, 8, ["clientOptions", "eventBus", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"]), [
255
251
  [d, a.value === "All"]
256
252
  ])
257
- ], 8, ue)
253
+ ], 8, re)
258
254
  ]),
259
255
  _: 1
260
256
  }, 8, ["aria-label"]));
261
257
  }
262
258
  });
263
259
  export {
264
- we as default
260
+ qe as default
265
261
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestBody.vue"],"names":[],"mappings":"AAqWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAA;AAgBrG,KAAK,WAAW,GAAG;IACjB,mBAAmB;IACnB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;eAI4C,MAAM;;;gBAI7B,MAAM,GAAG,IAAI;qBAAe,MAAM;;;cAM7C,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;qBACxC,MAAM;;;eAMZ,MAAM;cACP,OAAO,CAAC;YACZ,GAAG,EAAE,MAAM,CAAA;YACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;YAC3B,UAAU,EAAE,OAAO,CAAA;SACpB,CAAC;qBACW,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;;eA1BvB,MAAM;;;gBAI7B,MAAM,GAAG,IAAI;qBAAe,MAAM;;;cAM7C,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;qBACxC,MAAM;;;eAMZ,MAAM;cACP,OAAO,CAAC;YACZ,GAAG,EAAE,MAAM,CAAA;YACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;YAC3B,UAAU,EAAE,OAAO,CAAA;SACpB,CAAC;qBACW,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;AAokBrE,wBAOG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestBody.vue"],"names":[],"mappings":"AAuXA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAA;AAgBrG,KAAK,WAAW,GAAG;IACjB,mBAAmB;IACnB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;eAI4C,MAAM;;;gBAI7B,MAAM,GAAG,IAAI;qBAAe,MAAM;;;cAM7C,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;qBACxC,MAAM;;;eAMZ,MAAM;cACP,OAAO,CAAC;YACZ,GAAG,EAAE,MAAM,CAAA;YACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;YAC3B,UAAU,EAAE,OAAO,CAAA;SACpB,CAAC;qBACW,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;;eA1BvB,MAAM;;;gBAI7B,MAAM,GAAG,IAAI;qBAAe,MAAM;;;cAM7C,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;qBACxC,MAAM;;;eAMZ,MAAM;cACP,OAAO,CAAC;YACZ,GAAG,EAAE,MAAM,CAAA;YACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;YAC3B,UAAU,EAAE,OAAO,CAAA;SACpB,CAAC;qBACW,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;AAqlBrE,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e4bd17fa"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cbed7b55"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };
@@ -1,22 +1,23 @@
1
- import { defineComponent as q, computed as s, watch as D, createBlock as v, openBlock as d, unref as l, withCtx as u, createVNode as p, createElementVNode as f, toDisplayString as c, createElementBlock as w, Fragment as O, createTextVNode as g } from "vue";
2
- import { ScalarListbox as S, ScalarButton as x, ScalarIcon as k } from "@scalar/components";
3
- import { unpackProxyObject as B } from "@scalar/workspace-store/helpers/unpack-proxy";
1
+ import { defineComponent as q, computed as s, watch as D, createBlock as v, openBlock as m, unref as l, withCtx as i, createVNode as p, createElementVNode as f, toDisplayString as w, createElementBlock as x, Fragment as O, createTextVNode as k } from "vue";
2
+ import { ScalarListbox as S, ScalarButton as b, ScalarIcon as B } from "@scalar/components";
3
+ import { objectEntries as E } from "@scalar/helpers/object/object-entries";
4
+ import { unpackProxyObject as j } from "@scalar/workspace-store/helpers/unpack-proxy";
4
5
  import F from "./RequestTable.vue.js";
5
6
  import { getFileName as N } from "../helpers/files.js";
6
7
  import { getExampleFromBody as A } from "../helpers/get-request-body-example.js";
7
- import E from "../../../components/layout/CollapsibleSection.vue.js";
8
- import L from "../../../components/data-table/DataTable.vue.js";
9
- import M from "../../../components/data-table/DataTableHeader.vue.js";
10
- import z from "../../../components/data-table/DataTableRow.vue.js";
11
- import K from "../../../components/code-input/CodeInput.vue.js";
12
- import { useFileDialog as $ } from "../../../../hooks/useFileDialog.js";
13
- const I = {
8
+ import L from "../../../components/layout/CollapsibleSection.vue.js";
9
+ import M from "../../../components/data-table/DataTable.vue.js";
10
+ import z from "../../../components/data-table/DataTableHeader.vue.js";
11
+ import K from "../../../components/data-table/DataTableRow.vue.js";
12
+ import $ from "../../../components/code-input/CodeInput.vue.js";
13
+ import { useFileDialog as I } from "../../../../hooks/useFileDialog.js";
14
+ const J = {
14
15
  key: 0,
15
16
  class: "text-c-3 flex min-h-10 w-full items-center justify-center border-t p-2 text-sm"
16
- }, J = {
17
+ }, P = {
17
18
  key: 1,
18
19
  class: "flex items-center justify-center overflow-hidden border-t p-1.5"
19
- }, P = { class: "text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap" }, ne = /* @__PURE__ */ q({
20
+ }, W = { class: "text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap" }, ae = /* @__PURE__ */ q({
20
21
  __name: "RequestBody",
21
22
  props: {
22
23
  requestBody: {},
@@ -25,12 +26,12 @@ const I = {
25
26
  environment: {}
26
27
  },
27
28
  emits: ["update:contentType", "update:value", "add:formRow", "update:formRow", "delete:fromRow"],
28
- setup(i, { emit: U }) {
29
- const a = U, V = {
29
+ setup(d, { emit: V }) {
30
+ const a = V, C = {
30
31
  "application/json": "json",
31
32
  "application/xml": "xml",
32
33
  "application/yaml": "yaml"
33
- }, j = {
34
+ }, R = {
34
35
  "multipart/form-data": "Multipart Form",
35
36
  "application/x-www-form-urlencoded": "Form URL Encoded",
36
37
  "application/octet-stream": "Binary File",
@@ -41,19 +42,19 @@ const I = {
41
42
  other: "Other",
42
43
  none: "None"
43
44
  }, o = s(
44
- () => i.requestBody?.["x-scalar-selected-content-type"]?.[i.exampleKey] ?? Object.keys(i.requestBody?.content ?? {})[0] ?? "other"
45
+ () => d.requestBody?.["x-scalar-selected-content-type"]?.[d.exampleKey] ?? Object.keys(d.requestBody?.content ?? {})[0] ?? "none"
45
46
  );
46
47
  D(
47
- () => i.requestBody?.["x-scalar-selected-content-type"]?.[i.exampleKey],
48
+ () => d.requestBody?.["x-scalar-selected-content-type"]?.[d.exampleKey],
48
49
  (n) => {
49
50
  n || a("update:contentType", { value: o.value });
50
51
  },
51
52
  { immediate: !0 }
52
53
  );
53
- const y = Object.entries(j).map(([n, e]) => ({
54
+ const y = Object.entries(R).map(([n, e]) => ({
54
55
  id: n,
55
56
  label: e
56
- })), b = s({
57
+ })), T = s({
57
58
  get: () => y.find(
58
59
  (e) => e.id === o.value
59
60
  ) ?? y.at(-1),
@@ -61,52 +62,55 @@ const I = {
61
62
  a("update:contentType", { value: n.id });
62
63
  }
63
64
  });
64
- function R(n) {
65
- const { open: e } = $({
65
+ function g(n) {
66
+ const { open: e } = I({
66
67
  onChange: (t) => {
67
- const r = t?.[0];
68
- r && n(r);
68
+ const u = t?.[0];
69
+ u && n(u);
69
70
  },
70
71
  multiple: !1,
71
72
  accept: "*/*"
72
73
  });
73
74
  e();
74
75
  }
75
- const m = s(
76
- () => i.requestBody && A(i.requestBody, o.value, i.exampleKey)
77
- ), C = s(() => {
78
- if (!m.value)
76
+ const r = s(
77
+ () => d.requestBody && A(d.requestBody, o.value, d.exampleKey)
78
+ ), U = s(() => {
79
+ if (!r.value)
79
80
  return "";
80
- const n = m.value.value;
81
+ const n = r.value.value;
81
82
  return typeof n == "string" ? n : JSON.stringify(n, null, 2);
82
- }), T = s(() => m.value ? Array.isArray(m.value.value) ? m.value.value : [] : []);
83
- return (n, e) => (d(), v(l(E), null, {
84
- title: u(() => [
85
- g(c(n.title), 1)
83
+ }), c = s(() => r.value ? Array.isArray(r.value.value) ? r.value.value : typeof r.value.value == "object" && r.value.value ? E(r.value.value).map(([n, e]) => ({
84
+ name: n,
85
+ value: e
86
+ })) : [] : []);
87
+ return (n, e) => (m(), v(l(L), null, {
88
+ title: i(() => [
89
+ k(w(n.title), 1)
86
90
  ]),
87
- default: u(() => [
88
- p(l(L), {
91
+ default: i(() => [
92
+ p(l(M), {
89
93
  columns: [""],
90
94
  presentational: ""
91
95
  }, {
92
- default: u(() => [
93
- p(l(M), { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between border-r-0 !p-0" }, {
94
- default: u(() => [
96
+ default: i(() => [
97
+ p(l(z), { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between border-r-0 !p-0" }, {
98
+ default: i(() => [
95
99
  p(l(S), {
96
- modelValue: b.value,
97
- "onUpdate:modelValue": e[0] || (e[0] = (t) => b.value = t),
100
+ modelValue: T.value,
101
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => T.value = t),
98
102
  options: l(y),
99
103
  teleport: ""
100
104
  }, {
101
- default: u(() => [
102
- p(l(x), {
105
+ default: i(() => [
106
+ p(l(b), {
103
107
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",
104
108
  fullWidth: "",
105
109
  variant: "ghost"
106
110
  }, {
107
- default: u(() => [
108
- f("span", null, c(o.value), 1),
109
- p(l(k), {
111
+ default: i(() => [
112
+ f("span", null, w(R[o.value] ?? o.value), 1),
113
+ p(l(B), {
110
114
  icon: "ChevronDown",
111
115
  size: "md"
112
116
  })
@@ -119,14 +123,14 @@ const I = {
119
123
  ]),
120
124
  _: 1
121
125
  }),
122
- p(l(z), null, {
123
- default: u(() => [
124
- o.value === "none" ? (d(), w("div", I, [...e[12] || (e[12] = [
126
+ p(l(K), null, {
127
+ default: i(() => [
128
+ o.value === "none" ? (m(), x("div", J, [...e[12] || (e[12] = [
125
129
  f("span", null, "No Body", -1)
126
- ])])) : o.value === "application/octet-stream" ? (d(), w("div", J, [
127
- l(N)(l(B)(m.value?.value)) !== void 0 ? (d(), w(O, { key: 0 }, [
128
- f("span", P, c(l(N)(l(B)(m.value?.value))), 1),
129
- p(l(x), {
130
+ ])])) : o.value === "application/octet-stream" ? (m(), x("div", P, [
131
+ l(N)(l(j)(r.value?.value)) !== void 0 ? (m(), x(O, { key: 0 }, [
132
+ f("span", W, w(l(N)(l(j)(r.value?.value))), 1),
133
+ p(l(b), {
130
134
  class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
131
135
  size: "sm",
132
136
  variant: "outlined",
@@ -135,26 +139,26 @@ const I = {
135
139
  contentType: o.value
136
140
  }))
137
141
  }, {
138
- default: u(() => [...e[13] || (e[13] = [
139
- g(" Delete ", -1)
142
+ default: i(() => [...e[13] || (e[13] = [
143
+ k(" Delete ", -1)
140
144
  ])]),
141
145
  _: 1
142
146
  })
143
- ], 64)) : (d(), v(l(x), {
147
+ ], 64)) : (m(), v(l(b), {
144
148
  key: 1,
145
149
  class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 shadow-none",
146
150
  size: "sm",
147
151
  variant: "outlined",
148
- onClick: e[2] || (e[2] = () => R(
152
+ onClick: e[2] || (e[2] = () => g(
149
153
  (t) => a("update:value", {
150
154
  value: t,
151
155
  contentType: o.value
152
156
  })
153
157
  ))
154
158
  }, {
155
- default: u(() => [
156
- e[14] || (e[14] = f("span", null, "Upload File", -1)),
157
- p(l(k), {
159
+ default: i(() => [
160
+ e[14] || (e[14] = f("span", null, "Select File", -1)),
161
+ p(l(B), {
158
162
  class: "ml-1",
159
163
  icon: "Upload",
160
164
  size: "xs",
@@ -163,9 +167,9 @@ const I = {
163
167
  ]),
164
168
  _: 1
165
169
  }))
166
- ])) : o.value === "multipart/form-data" ? (d(), v(F, {
170
+ ])) : o.value === "multipart/form-data" ? (m(), v(F, {
167
171
  key: 2,
168
- data: T.value,
172
+ data: c.value,
169
173
  environment: n.environment,
170
174
  showUploadButton: "",
171
175
  onAddRow: e[3] || (e[3] = (t) => a("add:formRow", {
@@ -183,26 +187,26 @@ const I = {
183
187
  value: void 0
184
188
  }
185
189
  })),
186
- onUpdateRow: e[6] || (e[6] = (t, r) => a("update:formRow", {
190
+ onUpdateRow: e[6] || (e[6] = (t, u) => a("update:formRow", {
187
191
  index: t,
188
- data: r,
192
+ data: u,
189
193
  contentType: o.value
190
194
  })),
191
- onUploadFile: e[7] || (e[7] = (t) => R((r) => {
192
- if (t !== void 0)
195
+ onUploadFile: e[7] || (e[7] = (t) => g((u) => {
196
+ if (t !== void 0 && t < c.value.length)
193
197
  return a("update:formRow", {
194
198
  index: t,
195
- data: { value: r ?? void 0 },
199
+ data: { value: u },
196
200
  contentType: o.value
197
201
  });
198
202
  a("add:formRow", {
199
- data: { value: r ?? void 0 },
203
+ data: { key: u?.name ?? "file", value: u },
200
204
  contentType: o.value
201
205
  });
202
206
  }))
203
- }, null, 8, ["data", "environment"])) : o.value === "application/x-www-form-urlencoded" ? (d(), v(F, {
207
+ }, null, 8, ["data", "environment"])) : o.value === "application/x-www-form-urlencoded" ? (m(), v(F, {
204
208
  key: 3,
205
- data: T.value,
209
+ data: c.value,
206
210
  environment: n.environment,
207
211
  onAddRow: e[8] || (e[8] = (t) => a("add:formRow", {
208
212
  data: t,
@@ -212,20 +216,20 @@ const I = {
212
216
  contentType: o.value,
213
217
  index: t
214
218
  })),
215
- onUpdateRow: e[10] || (e[10] = (t, r) => a("update:formRow", {
219
+ onUpdateRow: e[10] || (e[10] = (t, u) => a("update:formRow", {
216
220
  index: t,
217
- data: r,
221
+ data: u,
218
222
  contentType: o.value
219
223
  }))
220
- }, null, 8, ["data", "environment"])) : (d(), v(l(K), {
224
+ }, null, 8, ["data", "environment"])) : (m(), v(l($), {
221
225
  key: 4,
222
226
  class: "border-t px-3",
223
227
  content: "",
224
228
  environment: n.environment,
225
- language: V[o.value] ?? "plaintext",
229
+ language: C[o.value] ?? "plaintext",
226
230
  lineNumbers: "",
227
231
  lint: "",
228
- modelValue: C.value,
232
+ modelValue: U.value,
229
233
  "onUpdate:modelValue": e[11] || (e[11] = (t) => a("update:value", {
230
234
  value: t,
231
235
  contentType: o.value
@@ -243,5 +247,5 @@ const I = {
243
247
  }
244
248
  });
245
249
  export {
246
- ne as default
250
+ ae as default
247
251
  };
@@ -14,17 +14,17 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
14
14
  props: {
15
15
  clientOptions: {},
16
16
  selectedClient: {},
17
- selectedServer: {},
17
+ selectedServer: { default: null },
18
18
  selectedContentType: {},
19
19
  selectedExample: {},
20
+ eventBus: {},
20
21
  securitySchemes: {},
21
22
  method: {},
22
23
  path: {},
23
24
  operation: {},
24
25
  fallback: { type: Boolean },
25
26
  generateLabel: { type: Function },
26
- isWebhook: { type: Boolean },
27
- eventBus: {}
27
+ isWebhook: { type: Boolean }
28
28
  },
29
29
  setup(e) {
30
30
  const d = s(() => O(e.operation)), c = s(
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AA8NA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAehG,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAqBF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;;;aAhB2B,MAAM;eAAS,MAAM;oBAAc,OAAO;;;;;;;aAA1C,MAAM;eAAS,MAAM;oBAAc,OAAO;;;;;;AA2etE,wBAOG"}
1
+ {"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAiOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAehG,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAqBF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;;;aAhB2B,MAAM;eAAS,MAAM;oBAAc,OAAO;;;;;;;aAA1C,MAAM;eAAS,MAAM;oBAAc,OAAO;;;;;;AAiftE,wBAOG"}