@scalar/api-client 2.14.1 → 2.15.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/style.css +1 -1
  3. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  4. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +28 -51
  5. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +0 -12
  6. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  7. package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
  8. package/dist/v2/blocks/operation-block/components/Header.vue2.js +26 -28
  9. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  10. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  11. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +134 -125
  12. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -0
  13. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  15. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +1 -1
  16. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -2
  17. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  18. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -4
  19. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  20. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
  21. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  22. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  23. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +10 -10
  24. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
  25. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  26. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +21 -15
  27. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -13
  28. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  29. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  30. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +106 -70
  31. package/dist/v2/components/code-input/CodeInput.vue.d.ts +10 -1
  32. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  33. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  34. package/dist/v2/components/code-input/CodeInput.vue2.js +65 -51
  35. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +4 -0
  36. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  37. package/dist/v2/components/sidebar/Sidebar.vue.js +42 -39
  38. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  39. package/dist/v2/features/app/App.vue.js +64 -66
  40. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  41. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  42. package/dist/v2/features/app/components/AppSidebar.vue2.js +193 -106
  43. package/dist/v2/features/app/components/ItemDecorator.vue.d.ts +22 -0
  44. package/dist/v2/features/app/components/ItemDecorator.vue.d.ts.map +1 -0
  45. package/dist/v2/features/app/components/ItemDecorator.vue.js +138 -0
  46. package/dist/v2/features/app/components/ItemDecorator.vue2.js +4 -0
  47. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +8 -0
  48. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
  49. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +76 -68
  50. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +8 -0
  51. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
  52. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +83 -75
  53. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +4 -0
  54. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
  55. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +32 -34
  56. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +16 -0
  57. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  58. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +24 -21
  59. package/dist/v2/features/operation/Operation.vue.js +1 -1
  60. package/dist/v2/features/settings/DocumentSettings.vue.js +2 -2
  61. package/dist/v2/features/settings/DocumentSettings.vue2.js +1 -1
  62. package/dist/v2/helpers/storage.d.ts.map +1 -1
  63. package/dist/v2/helpers/storage.js +5 -5
  64. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  65. package/dist/v2/hooks/use-workspace-client-events.js +102 -61
  66. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  67. package/package.json +16 -16
@@ -1,19 +1,19 @@
1
- import { defineComponent as D, computed as l, ref as Q, useId as o, watch as $, createBlock as w, openBlock as r, withCtx as K, withDirectives as d, createElementBlock as f, createVNode as u, unref as v, vShow as y, mergeProps as B, toHandlers as k, Fragment as M, renderList as j, createCommentVNode as g, resolveDynamicComponent as z, createElementVNode as L, toDisplayString as G } from "vue";
1
+ import { defineComponent as D, computed as r, ref as Q, useId as n, watch as j, createBlock as w, openBlock as u, withCtx as K, createElementVNode as g, withDirectives as d, createElementBlock as f, createVNode as i, unref as v, vShow as y, mergeProps as B, toHandlers as q, Fragment as M, renderList as z, createCommentVNode as V, resolveDynamicComponent as L, toDisplayString as G } from "vue";
2
2
  import { ScalarErrorBoundary as X } from "@scalar/components";
3
- import { canMethodHaveBody as S } from "@scalar/helpers/http/can-method-have-body";
3
+ import { canMethodHaveBody as b } from "@scalar/helpers/http/can-method-have-body";
4
4
  import { REGEX as J } from "@scalar/helpers/regex/regex-helpers";
5
- import { getResolvedRef as V } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
+ import { getResolvedRef as C } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
6
  import W from "../../../components/SectionFilter.vue.js";
7
7
  import Y from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
8
8
  import Z from "./components/RequestBody.vue.js";
9
9
  import R from "./components/RequestParams.vue.js";
10
- import { createParameterHandlers as q } from "./helpers/create-parameter-handlers.js";
10
+ import { createParameterHandlers as k } from "./helpers/create-parameter-handlers.js";
11
11
  import { groupBy as _ } from "./helpers/group-by.js";
12
12
  import ee from "../scalar-auth-selector-block/components/AuthSelector.vue.js";
13
13
  const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ae = ["for"], oe = ["id", "placeholder", "value"], ne = {
14
14
  key: 2,
15
15
  class: "text-c-1 flex h-8 items-center"
16
- }, fe = /* @__PURE__ */ D({
16
+ }, le = ["id", "role"], Be = /* @__PURE__ */ D({
17
17
  __name: "RequestBlock",
18
18
  props: {
19
19
  method: {},
@@ -31,16 +31,16 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
31
31
  environment: {}
32
32
  },
33
33
  setup(t) {
34
- const a = l(() => ({
34
+ const a = r(() => ({
35
35
  method: t.method,
36
36
  path: t.path,
37
37
  exampleKey: t.exampleKey
38
- })), i = l(
38
+ })), s = r(
39
39
  () => _(
40
- t.operation.parameters?.map((e) => V(e)) ?? [],
40
+ t.operation.parameters?.map((e) => C(e)) ?? [],
41
41
  "in"
42
42
  )
43
- ), m = Q("All"), C = [
43
+ ), l = Q("All"), x = [
44
44
  "Auth",
45
45
  "Variables",
46
46
  "Cookies",
@@ -48,27 +48,27 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
48
48
  "Query",
49
49
  "Body"
50
50
  ], E = {
51
- All: o(),
52
- Auth: o(),
53
- Variables: o(),
54
- Cookies: o(),
55
- Headers: o(),
56
- Query: o(),
57
- Body: o()
58
- }, A = l(() => {
59
- const e = /* @__PURE__ */ new Set(["All", ...C]);
60
- return i.value.path?.length || e.delete("Variables"), S(t.method) || e.delete("Body"), b.value && e.delete("Auth"), [...e];
61
- }), n = l(
51
+ All: n(),
52
+ Auth: n(),
53
+ Variables: n(),
54
+ Cookies: n(),
55
+ Headers: n(),
56
+ Query: n(),
57
+ Body: n()
58
+ }, A = r(() => {
59
+ const e = /* @__PURE__ */ new Set(["All", ...x]);
60
+ return s.value.path?.length || e.delete("Variables"), b(t.method) || e.delete("Body"), S.value && e.delete("Auth"), [...e];
61
+ }), o = r(
62
62
  () => Object.fromEntries(
63
63
  A.value.map((e) => [e, E[e]])
64
64
  )
65
- ), b = l(
65
+ ), S = r(
66
66
  () => t.layout === "modal" && !t.operation.security && !Object.keys(t.securitySchemes ?? {}).length
67
- ), H = l(() => t.operation.summary ? t.operation.summary : t.path.replace(J.PROTOCOL, "") || "Request Name"), s = (e) => m.value === "All" || m.value === e;
68
- $(
67
+ ), H = r(() => t.operation.summary ? t.operation.summary : t.path.replace(J.PROTOCOL, "") || "Request Name"), m = (e) => l.value === "All" || l.value === e;
68
+ j(
69
69
  () => t.method,
70
70
  (e) => {
71
- m.value === "Body" && !S(e) && (m.value = "All");
71
+ l.value === "Body" && !b(e) && (l.value = "All");
72
72
  }
73
73
  );
74
74
  const P = (e) => {
@@ -77,11 +77,11 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
77
77
  meta: a.value,
78
78
  payload: { summary: p }
79
79
  });
80
- }, c = l(() => ({
81
- path: q("path", t.eventBus, a.value),
82
- cookie: q("cookie", t.eventBus, a.value),
83
- header: q("header", t.eventBus, a.value),
84
- query: q("query", t.eventBus, a.value)
80
+ }, c = r(() => ({
81
+ path: k("path", t.eventBus, a.value),
82
+ cookie: k("cookie", t.eventBus, a.value),
83
+ header: k("header", t.eventBus, a.value),
84
+ query: k("query", t.eventBus, a.value)
85
85
  })), I = (e) => {
86
86
  t.eventBus.emit("operation:add:requestBody:formRow", {
87
87
  contentType: e.contentType,
@@ -91,133 +91,142 @@ const te = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
91
91
  value: e.data.value ?? ""
92
92
  }
93
93
  });
94
- }, N = (e) => t.eventBus.emit("operation:delete:requestBody:formRow", {
94
+ }, O = (e) => t.eventBus.emit("operation:delete:requestBody:formRow", {
95
95
  contentType: e.contentType,
96
96
  index: e.index,
97
97
  meta: a.value
98
- }), O = (e) => t.eventBus.emit("operation:update:requestBody:contentType", {
98
+ }), N = (e) => t.eventBus.emit("operation:update:requestBody:contentType", {
99
99
  payload: { contentType: e.value },
100
100
  meta: a.value
101
- }), U = (e) => t.eventBus.emit("operation:update:requestBody:formRow", {
102
- contentType: e.contentType,
103
- meta: a.value,
104
- index: e.index,
105
- payload: {
106
- key: e.data.key ?? "",
107
- value: e.data.value ?? ""
101
+ }), U = (e) => t.eventBus.emit(
102
+ "operation:update:requestBody:formRow",
103
+ {
104
+ contentType: e.contentType,
105
+ meta: a.value,
106
+ index: e.index,
107
+ payload: e.data
108
+ },
109
+ {
110
+ debounceKey: `update:requestBody:formRow-${e.index}-${Object.keys(e.data).join("-")}`
108
111
  }
109
- }), x = (e) => t.eventBus.emit("operation:update:requestBody:value", {
112
+ ), F = (e) => t.eventBus.emit("operation:update:requestBody:value", {
110
113
  contentType: e.contentType,
111
114
  payload: { value: e.value ?? "" },
112
115
  meta: a.value
113
- }), T = o();
114
- return (e, p) => (r(), w(Y, {
116
+ }), T = n();
117
+ return (e, p) => (u(), w(Y, {
115
118
  "aria-label": `Request: ${e.operation.summary}`
116
119
  }, {
117
120
  title: K(() => [
118
- L("div", te, [
119
- e.layout !== "modal" ? (r(), f("label", {
121
+ g("div", te, [
122
+ e.layout !== "modal" ? (u(), f("label", {
120
123
  key: 0,
121
124
  class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
122
125
  for: v(T)
123
- }, null, 8, ae)) : g("", !0),
124
- e.layout !== "modal" ? (r(), f("input", {
126
+ }, null, 8, ae)) : V("", !0),
127
+ e.layout !== "modal" ? (u(), f("input", {
125
128
  key: 1,
126
129
  id: v(T),
127
130
  class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
128
131
  placeholder: H.value,
129
132
  value: e.operation.summary,
130
133
  onInput: P
131
- }, null, 40, oe)) : (r(), f("span", ne, G(e.operation.summary), 1))
134
+ }, null, 40, oe)) : (u(), f("span", ne, G(e.operation.summary), 1))
132
135
  ]),
133
- u(W, {
134
- modelValue: m.value,
135
- "onUpdate:modelValue": p[0] || (p[0] = (h) => m.value = h),
136
- filterIds: n.value,
136
+ i(W, {
137
+ modelValue: l.value,
138
+ "onUpdate:modelValue": p[0] || (p[0] = (h) => l.value = h),
139
+ filterIds: o.value,
137
140
  filters: A.value
138
141
  }, null, 8, ["modelValue", "filterIds", "filters"])
139
142
  ]),
140
143
  default: K(() => [
141
- d(u(v(ee), {
142
- id: n.value.Auth,
143
- environment: e.environment,
144
- eventBus: e.eventBus,
145
- meta: e.authMeta,
146
- security: e.security,
147
- securitySchemes: e.securitySchemes,
148
- selectedSecurity: e.selectedSecurity,
149
- server: e.server,
150
- title: "Authorization"
151
- }, null, 8, ["id", "environment", "eventBus", "meta", "security", "securitySchemes", "selectedSecurity", "server"]), [
152
- [y, s("Auth") && !b.value]
153
- ]),
154
- d(u(R, B({
155
- id: n.value.Variables,
156
- environment: e.environment,
157
- exampleKey: e.exampleKey,
158
- parameters: i.value.path ?? [],
159
- showAddRowPlaceholder: !1,
160
- title: "Variables"
161
- }, k(c.value.path)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
162
- [y, s("Variables") && i.value.path?.length]
163
- ]),
164
- d(u(R, B({
165
- id: n.value.Cookies,
166
- environment: e.environment,
167
- exampleKey: e.exampleKey,
168
- parameters: i.value.cookie ?? [],
169
- showAddRowPlaceholder: !0,
170
- title: "Cookies"
171
- }, k(c.value.cookie)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
172
- [y, s("Cookies")]
173
- ]),
174
- d(u(R, B({
175
- id: n.value.Headers,
176
- environment: e.environment,
177
- exampleKey: e.exampleKey,
178
- parameters: i.value.header ?? [],
179
- title: "Headers"
180
- }, k(c.value.header)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
181
- [y, s("Headers")]
182
- ]),
183
- d(u(R, B({
184
- id: n.value.Query,
185
- environment: e.environment,
186
- exampleKey: e.exampleKey,
187
- parameters: i.value.query ?? [],
188
- title: "Query Parameters"
189
- }, k(c.value.query)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
190
- [y, s("Query")]
191
- ]),
192
- d(u(Z, {
193
- id: n.value.Body,
194
- environment: e.environment,
195
- exampleKey: e.exampleKey,
196
- requestBody: v(V)(e.operation.requestBody),
197
- title: "Request Body",
198
- "onAdd:formRow": I,
199
- "onDelete:fromRow": N,
200
- "onUpdate:contentType": O,
201
- "onUpdate:formRow": U,
202
- "onUpdate:value": x
203
- }, null, 8, ["id", "environment", "exampleKey", "requestBody"]), [
204
- [y, s("Body") && v(S)(e.method)]
205
- ]),
206
- (r(!0), f(M, null, j(e.plugins, (h, F) => (r(), w(v(X), { key: F }, {
207
- default: K(() => [
208
- h?.components?.request ? (r(), w(z(h.components.request), {
209
- key: 0,
210
- operation: e.operation,
211
- selectedExample: e.exampleKey
212
- }, null, 8, ["operation", "selectedExample"])) : g("", !0)
144
+ g("div", {
145
+ id: o.value.All,
146
+ class: "request-section-content custom-scroll relative flex flex-1 flex-col",
147
+ role: l.value === "All" ? "tabpanel" : "none"
148
+ }, [
149
+ d(i(v(ee), {
150
+ id: o.value.Auth,
151
+ environment: e.environment,
152
+ eventBus: e.eventBus,
153
+ meta: e.authMeta,
154
+ security: e.security,
155
+ securitySchemes: e.securitySchemes,
156
+ selectedSecurity: e.selectedSecurity,
157
+ server: e.server,
158
+ title: "Authorization"
159
+ }, null, 8, ["id", "environment", "eventBus", "meta", "security", "securitySchemes", "selectedSecurity", "server"]), [
160
+ [y, m("Auth") && !S.value]
161
+ ]),
162
+ d(i(R, B({
163
+ id: o.value.Variables,
164
+ environment: e.environment,
165
+ exampleKey: e.exampleKey,
166
+ parameters: s.value.path ?? [],
167
+ showAddRowPlaceholder: !1,
168
+ title: "Variables"
169
+ }, q(c.value.path)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
170
+ [y, m("Variables") && s.value.path?.length]
171
+ ]),
172
+ d(i(R, B({
173
+ id: o.value.Cookies,
174
+ environment: e.environment,
175
+ exampleKey: e.exampleKey,
176
+ parameters: s.value.cookie ?? [],
177
+ showAddRowPlaceholder: !0,
178
+ title: "Cookies"
179
+ }, q(c.value.cookie)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
180
+ [y, m("Cookies")]
181
+ ]),
182
+ d(i(R, B({
183
+ id: o.value.Headers,
184
+ environment: e.environment,
185
+ exampleKey: e.exampleKey,
186
+ parameters: s.value.header ?? [],
187
+ title: "Headers"
188
+ }, q(c.value.header)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
189
+ [y, m("Headers")]
190
+ ]),
191
+ d(i(R, B({
192
+ id: o.value.Query,
193
+ environment: e.environment,
194
+ exampleKey: e.exampleKey,
195
+ parameters: s.value.query ?? [],
196
+ title: "Query Parameters"
197
+ }, q(c.value.query)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
198
+ [y, m("Query")]
199
+ ]),
200
+ d(i(Z, {
201
+ id: o.value.Body,
202
+ environment: e.environment,
203
+ exampleKey: e.exampleKey,
204
+ requestBody: v(C)(e.operation.requestBody),
205
+ title: "Request Body",
206
+ "onAdd:formRow": I,
207
+ "onDelete:fromRow": O,
208
+ "onUpdate:contentType": N,
209
+ "onUpdate:formRow": U,
210
+ "onUpdate:value": F
211
+ }, null, 8, ["id", "environment", "exampleKey", "requestBody"]), [
212
+ [y, m("Body") && v(b)(e.method)]
213
213
  ]),
214
- _: 2
215
- }, 1024))), 128))
214
+ (u(!0), f(M, null, z(e.plugins, (h, $) => (u(), w(v(X), { key: $ }, {
215
+ default: K(() => [
216
+ h?.components?.request ? (u(), w(L(h.components.request), {
217
+ key: 0,
218
+ operation: e.operation,
219
+ selectedExample: e.exampleKey
220
+ }, null, 8, ["operation", "selectedExample"])) : V("", !0)
221
+ ]),
222
+ _: 2
223
+ }, 1024))), 128))
224
+ ], 8, le)
216
225
  ]),
217
226
  _: 1
218
227
  }, 8, ["aria-label"]));
219
228
  }
220
229
  });
221
230
  export {
222
- fe as default
231
+ Be as default
223
232
  };
@@ -30,6 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
30
30
  data: Partial<{
31
31
  key: string;
32
32
  value: string | File | null;
33
+ isDisabled: boolean;
33
34
  }>;
34
35
  contentType: string;
35
36
  }) => any;
@@ -57,6 +58,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
57
58
  data: Partial<{
58
59
  key: string;
59
60
  value: string | File | null;
61
+ isDisabled: boolean;
60
62
  }>;
61
63
  contentType: string;
62
64
  }) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestBody.vue"],"names":[],"mappings":"AAwVA,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;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;SAAE,CAAC;qBAC9C,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;;eAtBvB,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;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;SAAE,CAAC;qBAC9C,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;AA6jBrE,wBAOG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestBody.vue"],"names":[],"mappings":"AA4VA,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;;;AA6jBrE,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-1b70fdaa"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a0dd1ca2"]]);
5
5
  export {
6
- f as default
6
+ e as default
7
7
  };
@@ -171,7 +171,7 @@ const K = {
171
171
  contentType: o.value,
172
172
  index: t,
173
173
  data: {
174
- value: null
174
+ value: void 0
175
175
  }
176
176
  })),
177
177
  onUpdateRow: e[6] || (e[6] = (t, r) => a("update:formRow", {
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
23
23
  payload: Partial<{
24
24
  key: string;
25
25
  value: string;
26
- isEnabled: boolean;
26
+ isDisabled: boolean;
27
27
  }>;
28
28
  }) => any;
29
29
  deleteAll: () => any;
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
40
40
  payload: Partial<{
41
41
  key: string;
42
42
  value: string;
43
- isEnabled: boolean;
43
+ isDisabled: boolean;
44
44
  }>;
45
45
  }) => any) | undefined;
46
46
  onDeleteAll?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestParams.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAUnG,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;eAmBgC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,CAAC;;;;;eAGxC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,CAAC;;;;AAqL1E,wBAOG"}
1
+ {"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestParams.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAUnG,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;eAmBgC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE,CAAC;;;;;eAGzC,MAAM;;;aARH,MAAM;eAAS,MAAM;;;eAI7C,MAAM;iBACJ,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE,CAAC;;;;AAqL3E,wBAOG"}
@@ -15,12 +15,11 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
15
15
  updateRow: (index: number, payload: Partial<{
16
16
  key: string;
17
17
  value: string;
18
- isEnabled: boolean;
18
+ isDisabled: boolean;
19
19
  }>) => any;
20
20
  addRow: (payload: Partial<{
21
21
  key: string;
22
22
  value: string;
23
- isEnabled: boolean;
24
23
  }>) => any;
25
24
  deleteRow: (index: number) => any;
26
25
  uploadFile: (index?: number | undefined) => any;
@@ -29,12 +28,11 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
29
28
  onUpdateRow?: ((index: number, payload: Partial<{
30
29
  key: string;
31
30
  value: string;
32
- isEnabled: boolean;
31
+ isDisabled: boolean;
33
32
  }>) => any) | undefined;
34
33
  onAddRow?: ((payload: Partial<{
35
34
  key: string;
36
35
  value: string;
37
- isEnabled: boolean;
38
36
  }>) => any) | undefined;
39
37
  onDeleteRow?: ((index: number) => any) | undefined;
40
38
  onUploadFile?: ((index?: number | undefined) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTable.vue"],"names":[],"mappings":"AAwKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAwB,EACtB,KAAK,QAAQ,EACd,MAAM,0DAA0D,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;aAsB0B,MAAM;eAAS,MAAM;mBAAa,OAAO;;;aALzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;;aAKzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;aALzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;AAgOrE,wBAOG"}
1
+ {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTable.vue"],"names":[],"mappings":"AAqKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAwB,EACtB,KAAK,QAAQ,EACd,MAAM,0DAA0D,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;aAmB0B,MAAM;eAAS,MAAM;oBAAc,OAAO;;;aAJ9B,MAAM;eAAS,MAAM;;;;;;;aAIjC,MAAM;eAAS,MAAM;oBAAc,OAAO;;;aAJ9B,MAAM;eAAS,MAAM;;;;;;AA+N7D,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestTable.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-c9608d1a"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1434cda7"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
21
21
  updateRow: (payload: Partial<{
22
22
  key: string;
23
23
  value: string;
24
- isEnabled: boolean;
24
+ isDisabled: boolean;
25
25
  }>) => any;
26
26
  deleteRow: () => any;
27
27
  uploadFile: () => any;
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
30
30
  onUpdateRow?: ((payload: Partial<{
31
31
  key: string;
32
32
  value: string;
33
- isEnabled: boolean;
33
+ isDisabled: boolean;
34
34
  }>) => any) | undefined;
35
35
  onDeleteRow?: (() => any) | undefined;
36
36
  onUploadFile?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AA2NA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAchG,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,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;;;aAf2B,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;;aAAzC,MAAM;eAAS,MAAM;mBAAa,OAAO;;;;;;AAuerE,wBAOG"}
1
+ {"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AA2NA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAchG,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,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;;;aAf2B,MAAM;eAAS,MAAM;oBAAc,OAAO;;;;;;;aAA1C,MAAM;eAAS,MAAM;oBAAc,OAAO;;;;;;AAuetE,wBAOG"}
@@ -1,9 +1,9 @@
1
- import { defineComponent as U, computed as r, resolveComponent as $, createBlock as u, openBlock as s, unref as l, normalizeClass as q, withCtx as n, createVNode as d, createCommentVNode as b, createElementVNode as m, createElementBlock as v, Fragment as D, toDisplayString as I } from "vue";
1
+ import { defineComponent as D, computed as r, resolveComponent as U, createBlock as u, openBlock as s, unref as l, normalizeClass as $, withCtx as n, createVNode as d, createCommentVNode as b, createElementVNode as m, createElementBlock as v, Fragment as q, toDisplayString as I } from "vue";
2
2
  import { ScalarTooltip as S, ScalarIcon as h, ScalarButton as y } from "@scalar/components";
3
- import { ScalarIconTrash as E } from "@scalar/icons";
3
+ import { ScalarIconTrash as j } from "@scalar/icons";
4
4
  import { unpackProxyObject as c } from "@scalar/workspace-store/helpers/unpack-proxy";
5
5
  import { getFileName as k } from "../helpers/files.js";
6
- import { validateParameter as j } from "../helpers/validate-parameter.js";
6
+ import { validateParameter as E } from "../helpers/validate-parameter.js";
7
7
  import N from "./RequestTableTooltip.vue.js";
8
8
  import O from "../../../components/data-table/DataTableRow.vue.js";
9
9
  import P from "../../../components/data-table/DataTableCheckbox.vue.js";
@@ -12,7 +12,7 @@ import w from "../../../components/code-input/CodeInput.vue.js";
12
12
  const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1" }, K = {
13
13
  key: 1,
14
14
  class: "p-0.5"
15
- }, ee = /* @__PURE__ */ U({
15
+ }, ee = /* @__PURE__ */ D({
16
16
  __name: "RequestTableRow",
17
17
  props: {
18
18
  data: {},
@@ -32,7 +32,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
32
32
  ), F = r(
33
33
  () => t.data.schema && "type" in t.data.schema ? t.data.schema.type : void 0
34
34
  ), p = r(
35
- () => j(t.data.schema, t.data.value)
35
+ () => E(t.data.schema, t.data.value)
36
36
  ), x = (e) => e instanceof File, T = r({
37
37
  get: () => {
38
38
  const e = c(t.data.value);
@@ -43,10 +43,10 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
43
43
  }
44
44
  });
45
45
  return (e, a) => {
46
- const z = $("RouterLink");
46
+ const z = U("RouterLink");
47
47
  return s(), u(l(O), {
48
48
  id: e.data.name,
49
- class: q({
49
+ class: $({
50
50
  alert: p.value.ok === !1,
51
51
  error: p.value.ok === !1 && e.invalidParams?.has(e.data.name)
52
52
  })
@@ -80,7 +80,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
80
80
  class: "!border-r",
81
81
  disabled: e.hasCheckboxDisabled ?? !1,
82
82
  modelValue: !e.data.isDisabled,
83
- "onUpdate:modelValue": a[0] || (a[0] = (o) => i("updateRow", { isEnabled: o }))
83
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => i("updateRow", { isDisabled: !o }))
84
84
  }, null, 8, ["disabled", "modelValue"])),
85
85
  d(l(f), null, {
86
86
  default: n(() => [
@@ -130,7 +130,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
130
130
  onClick: a[3] || (a[3] = (o) => i("deleteRow"))
131
131
  }, {
132
132
  default: n(() => [
133
- d(l(E), { class: "size-3.5" })
133
+ d(l(j), { class: "size-3.5" })
134
134
  ]),
135
135
  _: 1
136
136
  })) : b("", !0),
@@ -150,7 +150,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
150
150
  class: "group/upload flex items-center justify-center whitespace-nowrap"
151
151
  }, {
152
152
  default: n(() => [
153
- x(l(c)(e.data.value)) ? (s(), v(D, { key: 0 }, [
153
+ x(l(c)(e.data.value)) ? (s(), v(q, { key: 0 }, [
154
154
  m("div", G, [
155
155
  m("span", null, I(l(k)(l(c)(e.data.value))), 1)
156
156
  ]),
@@ -16,7 +16,7 @@ export declare const createParameterHandlers: (type: ParameterType, eventBus: Wo
16
16
  payload: Partial<{
17
17
  key: string;
18
18
  value: string;
19
- isEnabled: boolean;
19
+ isDisabled: boolean;
20
20
  }>;
21
21
  }) => void;
22
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-parameter-handlers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/create-parameter-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3D,uDAAuD;AACvD,eAAO,MAAM,uBAAuB,GAClC,MAAM,aAAa,EACnB,UAAU,iBAAiB,EAC3B,MAAM,oBAAoB;mBAEX;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;sBAU7B;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;sBAWjB;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,CAAC,CAAA;KAAE;CAOzG,CAAA"}
1
+ {"version":3,"file":"create-parameter-handlers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/create-parameter-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3D,uDAAuD;AACvD,eAAO,MAAM,uBAAuB,GAClC,MAAM,aAAa,EACnB,UAAU,iBAAiB,EAC3B,MAAM,oBAAoB;mBAEX;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;sBAU7B;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;sBAWjB;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE,CAAC,CAAA;KAAE;CAa1G,CAAA"}
@@ -1,29 +1,35 @@
1
- const t = (a, r, d) => ({
2
- add: (e) => r.emit("operation:add:parameter", {
1
+ const i = (a, d, r) => ({
2
+ add: (e) => d.emit("operation:add:parameter", {
3
3
  type: a,
4
4
  payload: {
5
5
  key: e.key ?? "",
6
6
  value: e.value ?? "",
7
- isEnabled: !0
7
+ isDisabled: !1
8
8
  },
9
- meta: d
9
+ meta: r
10
10
  }),
11
- delete: (e) => r.emit("operation:delete:parameter", {
11
+ delete: (e) => d.emit("operation:delete:parameter", {
12
12
  type: a,
13
13
  index: e.index,
14
- meta: d
14
+ meta: r
15
15
  }),
16
- deleteAll: () => r.emit("operation:delete-all:parameters", {
16
+ deleteAll: () => d.emit("operation:delete-all:parameters", {
17
17
  type: a,
18
- meta: d
18
+ meta: r
19
19
  }),
20
- update: (e) => r.emit("operation:update:parameter", {
21
- type: a,
22
- index: e.index,
23
- payload: e.payload,
24
- meta: d
25
- })
20
+ update: (e) => d.emit(
21
+ "operation:update:parameter",
22
+ {
23
+ type: a,
24
+ index: e.index,
25
+ payload: e.payload,
26
+ meta: r
27
+ },
28
+ {
29
+ debounceKey: `update:parameter-${a}-${e.index}-${Object.keys(e.payload).join("-")}`
30
+ }
31
+ )
26
32
  });
27
33
  export {
28
- t as createParameterHandlers
34
+ i as createParameterHandlers
29
35
  };