@motiadev/plugin-endpoint 0.15.0-beta.165 → 0.15.1-beta.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/index.js +952 -852
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/{index.css → styles.css} +0 -3
- package/dist/styles.css.map +1 -0
- package/dist/styles.js +0 -0
- package/package.json +5 -5
- package/dist/index.css.map +0 -1
package/dist/index.js
CHANGED
|
@@ -16,21 +16,25 @@ import { atomDark, oneLight } from "react-syntax-highlighter/dist/esm/styles/pri
|
|
|
16
16
|
|
|
17
17
|
//#region src/components/endpoints-search.tsx
|
|
18
18
|
const EndpointsSearch = (t0) => {
|
|
19
|
-
const $ = c(
|
|
19
|
+
const $ = c(16);
|
|
20
|
+
if ($[0] !== "b04fe9fcf2dc81964e7b2f3a7fac01e0ffd66006443485e8e32bf9d2d88776cf") {
|
|
21
|
+
for (let $i = 0; $i < 16; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
22
|
+
$[0] = "b04fe9fcf2dc81964e7b2f3a7fac01e0ffd66006443485e8e32bf9d2d88776cf";
|
|
23
|
+
}
|
|
20
24
|
const { value, onChange, onClear } = t0;
|
|
21
25
|
let t1;
|
|
22
|
-
if ($[
|
|
26
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23
27
|
t1 = /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" });
|
|
24
|
-
$[
|
|
25
|
-
} else t1 = $[
|
|
28
|
+
$[1] = t1;
|
|
29
|
+
} else t1 = $[1];
|
|
26
30
|
let t2;
|
|
27
|
-
if ($[
|
|
31
|
+
if ($[2] !== onChange) {
|
|
28
32
|
t2 = (e) => onChange(e.target.value);
|
|
29
|
-
$[
|
|
30
|
-
$[
|
|
31
|
-
} else t2 = $[
|
|
33
|
+
$[2] = onChange;
|
|
34
|
+
$[3] = t2;
|
|
35
|
+
} else t2 = $[3];
|
|
32
36
|
let t3;
|
|
33
|
-
if ($[
|
|
37
|
+
if ($[4] !== t2 || $[5] !== value) {
|
|
34
38
|
t3 = /* @__PURE__ */ jsx(Input, {
|
|
35
39
|
variant: "shade",
|
|
36
40
|
value,
|
|
@@ -38,34 +42,34 @@ const EndpointsSearch = (t0) => {
|
|
|
38
42
|
className: "px-9! font-medium",
|
|
39
43
|
placeholder: "Search by Method or Path"
|
|
40
44
|
});
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
$[
|
|
44
|
-
} else t3 = $[
|
|
45
|
+
$[4] = t2;
|
|
46
|
+
$[5] = value;
|
|
47
|
+
$[6] = t3;
|
|
48
|
+
} else t3 = $[6];
|
|
45
49
|
const t4 = value !== "";
|
|
46
50
|
const t5 = value === "";
|
|
47
51
|
let t6;
|
|
48
|
-
if ($[
|
|
52
|
+
if ($[7] !== t4 || $[8] !== t5) {
|
|
49
53
|
t6 = cn("cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground", {
|
|
50
54
|
visible: t4,
|
|
51
55
|
invisible: t5
|
|
52
56
|
});
|
|
53
|
-
$[
|
|
54
|
-
$[
|
|
55
|
-
$[
|
|
56
|
-
} else t6 = $[
|
|
57
|
+
$[7] = t4;
|
|
58
|
+
$[8] = t5;
|
|
59
|
+
$[9] = t6;
|
|
60
|
+
} else t6 = $[9];
|
|
57
61
|
let t7;
|
|
58
|
-
if ($[
|
|
62
|
+
if ($[10] !== onClear || $[11] !== t6) {
|
|
59
63
|
t7 = /* @__PURE__ */ jsx(X, {
|
|
60
64
|
className: t6,
|
|
61
65
|
onClick: onClear
|
|
62
66
|
});
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
} else t7 = $[
|
|
67
|
+
$[10] = onClear;
|
|
68
|
+
$[11] = t6;
|
|
69
|
+
$[12] = t7;
|
|
70
|
+
} else t7 = $[12];
|
|
67
71
|
let t8;
|
|
68
|
-
if ($[
|
|
72
|
+
if ($[13] !== t3 || $[14] !== t7) {
|
|
69
73
|
t8 = /* @__PURE__ */ jsx("div", {
|
|
70
74
|
className: "p-2 border-b gap-4",
|
|
71
75
|
"data-testid": "endpoints-search-container",
|
|
@@ -78,10 +82,10 @@ const EndpointsSearch = (t0) => {
|
|
|
78
82
|
]
|
|
79
83
|
})
|
|
80
84
|
});
|
|
81
|
-
$[
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
84
|
-
} else t8 = $[
|
|
85
|
+
$[13] = t3;
|
|
86
|
+
$[14] = t7;
|
|
87
|
+
$[15] = t8;
|
|
88
|
+
} else t8 = $[15];
|
|
85
89
|
return t8;
|
|
86
90
|
};
|
|
87
91
|
|
|
@@ -100,64 +104,76 @@ const getMethodStyles = (method) => {
|
|
|
100
104
|
}
|
|
101
105
|
};
|
|
102
106
|
const EndpointBadge = memo((t0) => {
|
|
103
|
-
const $ = c(
|
|
107
|
+
const $ = c(11);
|
|
108
|
+
if ($[0] !== "1017d069da7af8d79b772819cd6ea273bc02186be5bf8c70750727fd63506daa") {
|
|
109
|
+
for (let $i = 0; $i < 11; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
110
|
+
$[0] = "1017d069da7af8d79b772819cd6ea273bc02186be5bf8c70750727fd63506daa";
|
|
111
|
+
}
|
|
104
112
|
let className;
|
|
105
113
|
let props;
|
|
106
114
|
let variant;
|
|
107
|
-
if ($[
|
|
115
|
+
if ($[1] !== t0) {
|
|
108
116
|
({className, variant, ...props} = t0);
|
|
109
|
-
$[
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
117
|
+
$[1] = t0;
|
|
118
|
+
$[2] = className;
|
|
119
|
+
$[3] = props;
|
|
120
|
+
$[4] = variant;
|
|
113
121
|
} else {
|
|
114
|
-
className = $[
|
|
115
|
-
props = $[
|
|
116
|
-
variant = $[
|
|
122
|
+
className = $[2];
|
|
123
|
+
props = $[3];
|
|
124
|
+
variant = $[4];
|
|
117
125
|
}
|
|
118
126
|
let t1;
|
|
119
|
-
if ($[
|
|
127
|
+
if ($[5] !== className || $[6] !== variant) {
|
|
120
128
|
t1 = cn("rounded-lg px-2 py-0.5 text-xs font-mono font-bold transition-colors", getMethodStyles(variant), className);
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
} else t1 = $[
|
|
129
|
+
$[5] = className;
|
|
130
|
+
$[6] = variant;
|
|
131
|
+
$[7] = t1;
|
|
132
|
+
} else t1 = $[7];
|
|
125
133
|
let t2;
|
|
126
|
-
if ($[
|
|
134
|
+
if ($[8] !== props || $[9] !== t1) {
|
|
127
135
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
128
136
|
className: t1,
|
|
129
137
|
...props
|
|
130
138
|
});
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
} else t2 = $[
|
|
139
|
+
$[8] = props;
|
|
140
|
+
$[9] = t1;
|
|
141
|
+
$[10] = t2;
|
|
142
|
+
} else t2 = $[10];
|
|
135
143
|
return t2;
|
|
136
144
|
});
|
|
137
145
|
|
|
138
146
|
//#endregion
|
|
139
147
|
//#region src/components/endpoint-path.tsx
|
|
140
148
|
const PathSeparator = () => {
|
|
141
|
-
const $ = c(
|
|
149
|
+
const $ = c(2);
|
|
150
|
+
if ($[0] !== "603f796b38bb9b15093370b94bc9b921b7621c9f6baa94432316d5a5ca450c9c") {
|
|
151
|
+
for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
152
|
+
$[0] = "603f796b38bb9b15093370b94bc9b921b7621c9f6baa94432316d5a5ca450c9c";
|
|
153
|
+
}
|
|
142
154
|
let t0;
|
|
143
|
-
if ($[
|
|
155
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
144
156
|
t0 = /* @__PURE__ */ jsx("div", {
|
|
145
157
|
className: "text-muted-foreground",
|
|
146
158
|
children: "/"
|
|
147
159
|
});
|
|
148
|
-
$[
|
|
149
|
-
} else t0 = $[
|
|
160
|
+
$[1] = t0;
|
|
161
|
+
} else t0 = $[1];
|
|
150
162
|
return t0;
|
|
151
163
|
};
|
|
152
164
|
const EndpointPath = (t0) => {
|
|
153
|
-
const $ = c(
|
|
165
|
+
const $ = c(14);
|
|
166
|
+
if ($[0] !== "603f796b38bb9b15093370b94bc9b921b7621c9f6baa94432316d5a5ca450c9c") {
|
|
167
|
+
for (let $i = 0; $i < 14; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
168
|
+
$[0] = "603f796b38bb9b15093370b94bc9b921b7621c9f6baa94432316d5a5ca450c9c";
|
|
169
|
+
}
|
|
154
170
|
const { method, path } = t0;
|
|
155
171
|
let t1;
|
|
156
|
-
if ($[
|
|
172
|
+
if ($[1] !== path) {
|
|
157
173
|
const parts = path.split("/").filter(Boolean);
|
|
158
174
|
const partsLength = parts.length - 1;
|
|
159
175
|
let t2$1;
|
|
160
|
-
if ($[
|
|
176
|
+
if ($[3] !== partsLength) {
|
|
161
177
|
t2$1 = (part, index) => {
|
|
162
178
|
const isLast = index === partsLength;
|
|
163
179
|
const key = `part-${part}-${index}`;
|
|
@@ -168,74 +184,78 @@ const EndpointPath = (t0) => {
|
|
|
168
184
|
}, key), separator];
|
|
169
185
|
return [/* @__PURE__ */ jsx("div", { children: part }, key), separator];
|
|
170
186
|
};
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
} else t2$1 = $[
|
|
187
|
+
$[3] = partsLength;
|
|
188
|
+
$[4] = t2$1;
|
|
189
|
+
} else t2$1 = $[4];
|
|
174
190
|
t1 = parts.flatMap(t2$1);
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
177
|
-
} else t1 = $[
|
|
191
|
+
$[1] = path;
|
|
192
|
+
$[2] = t1;
|
|
193
|
+
} else t1 = $[2];
|
|
178
194
|
const pathView = t1;
|
|
179
195
|
const t2 = method;
|
|
180
196
|
let t3;
|
|
181
|
-
if ($[
|
|
197
|
+
if ($[5] !== method || $[6] !== t2) {
|
|
182
198
|
t3 = /* @__PURE__ */ jsx(EndpointBadge, {
|
|
183
199
|
variant: t2,
|
|
184
200
|
children: method
|
|
185
201
|
});
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
} else t3 = $[
|
|
202
|
+
$[5] = method;
|
|
203
|
+
$[6] = t2;
|
|
204
|
+
$[7] = t3;
|
|
205
|
+
} else t3 = $[7];
|
|
190
206
|
let t4;
|
|
191
|
-
if ($[
|
|
207
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
192
208
|
t4 = /* @__PURE__ */ jsx(PathSeparator, {});
|
|
193
|
-
$[
|
|
194
|
-
} else t4 = $[
|
|
209
|
+
$[8] = t4;
|
|
210
|
+
} else t4 = $[8];
|
|
195
211
|
let t5;
|
|
196
|
-
if ($[
|
|
212
|
+
if ($[9] !== pathView) {
|
|
197
213
|
t5 = /* @__PURE__ */ jsxs("span", {
|
|
198
214
|
className: "font-mono font-bold whitespace-nowrap flex flex-row gap-2 items-center truncate",
|
|
199
215
|
children: [t4, pathView]
|
|
200
216
|
});
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
} else t5 = $[
|
|
217
|
+
$[9] = pathView;
|
|
218
|
+
$[10] = t5;
|
|
219
|
+
} else t5 = $[10];
|
|
204
220
|
let t6;
|
|
205
|
-
if ($[
|
|
221
|
+
if ($[11] !== t3 || $[12] !== t5) {
|
|
206
222
|
t6 = /* @__PURE__ */ jsxs("div", {
|
|
207
223
|
className: "grid grid-cols-[auto_1fr] gap-2 items-center",
|
|
208
224
|
children: [t3, t5]
|
|
209
225
|
});
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
} else t6 = $[
|
|
226
|
+
$[11] = t3;
|
|
227
|
+
$[12] = t5;
|
|
228
|
+
$[13] = t6;
|
|
229
|
+
} else t6 = $[13];
|
|
214
230
|
return t6;
|
|
215
231
|
};
|
|
216
232
|
|
|
217
233
|
//#endregion
|
|
218
234
|
//#region src/components/endpoint-item.tsx
|
|
219
235
|
const EndpointItem = (t0) => {
|
|
220
|
-
const $ = c(
|
|
236
|
+
const $ = c(22);
|
|
237
|
+
if ($[0] !== "29651f7b7dd25cd15fa149793a83da8eadabea6c1b2d872f1881f15627da1c3a") {
|
|
238
|
+
for (let $i = 0; $i < 22; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
239
|
+
$[0] = "29651f7b7dd25cd15fa149793a83da8eadabea6c1b2d872f1881f15627da1c3a";
|
|
240
|
+
}
|
|
221
241
|
const { endpoint, isSelected, isLast, onSelect } = t0;
|
|
222
242
|
const t1 = `endpoint-${endpoint.method}-${endpoint.path}`;
|
|
223
243
|
let t2;
|
|
224
|
-
if ($[
|
|
244
|
+
if ($[1] !== endpoint.id || $[2] !== onSelect) {
|
|
225
245
|
t2 = () => onSelect(endpoint.id);
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
} else t2 = $[
|
|
246
|
+
$[1] = endpoint.id;
|
|
247
|
+
$[2] = onSelect;
|
|
248
|
+
$[3] = t2;
|
|
249
|
+
} else t2 = $[3];
|
|
230
250
|
const t3 = isSelected && "bg-muted-foreground/10";
|
|
231
251
|
let t4;
|
|
232
|
-
if ($[
|
|
252
|
+
if ($[4] !== t3) {
|
|
233
253
|
t4 = cn("grid grid-cols-[auto_1fr] items-center justify-center px-[17px] select-none hover:bg-muted-foreground/10 cursor-pointer", t3);
|
|
234
|
-
$[
|
|
235
|
-
$[
|
|
236
|
-
} else t4 = $[
|
|
254
|
+
$[4] = t3;
|
|
255
|
+
$[5] = t4;
|
|
256
|
+
} else t4 = $[5];
|
|
237
257
|
let t5;
|
|
238
|
-
if ($[
|
|
258
|
+
if ($[6] !== isLast) {
|
|
239
259
|
t5 = isLast ? /* @__PURE__ */ jsx("svg", {
|
|
240
260
|
width: "14",
|
|
241
261
|
height: "34",
|
|
@@ -257,106 +277,110 @@ const EndpointItem = (t0) => {
|
|
|
257
277
|
className: "fill-[#555]"
|
|
258
278
|
})
|
|
259
279
|
});
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
} else t5 = $[
|
|
280
|
+
$[6] = isLast;
|
|
281
|
+
$[7] = t5;
|
|
282
|
+
} else t5 = $[7];
|
|
263
283
|
let t6;
|
|
264
|
-
if ($[
|
|
284
|
+
if ($[8] !== endpoint.method || $[9] !== endpoint.path) {
|
|
265
285
|
t6 = /* @__PURE__ */ jsx(EndpointPath, {
|
|
266
286
|
method: endpoint.method,
|
|
267
287
|
path: endpoint.path
|
|
268
288
|
});
|
|
269
|
-
$[
|
|
270
|
-
$[
|
|
271
|
-
$[
|
|
272
|
-
} else t6 = $[
|
|
289
|
+
$[8] = endpoint.method;
|
|
290
|
+
$[9] = endpoint.path;
|
|
291
|
+
$[10] = t6;
|
|
292
|
+
} else t6 = $[10];
|
|
273
293
|
let t7;
|
|
274
|
-
if ($[
|
|
294
|
+
if ($[11] !== endpoint.description) {
|
|
275
295
|
t7 = /* @__PURE__ */ jsx("span", {
|
|
276
296
|
className: "text-sm text-muted-foreground truncate",
|
|
277
297
|
children: endpoint.description
|
|
278
298
|
});
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
} else t7 = $[
|
|
299
|
+
$[11] = endpoint.description;
|
|
300
|
+
$[12] = t7;
|
|
301
|
+
} else t7 = $[12];
|
|
282
302
|
let t8;
|
|
283
|
-
if ($[
|
|
303
|
+
if ($[13] !== t6 || $[14] !== t7) {
|
|
284
304
|
t8 = /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", {
|
|
285
305
|
className: "grid grid-cols-[auto_1fr] items-center gap-3 px-2",
|
|
286
306
|
children: [t6, t7]
|
|
287
307
|
}) });
|
|
288
|
-
$[
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
} else t8 = $[
|
|
308
|
+
$[13] = t6;
|
|
309
|
+
$[14] = t7;
|
|
310
|
+
$[15] = t8;
|
|
311
|
+
} else t8 = $[15];
|
|
292
312
|
let t9;
|
|
293
|
-
if ($[
|
|
313
|
+
if ($[16] !== t1 || $[17] !== t2 || $[18] !== t4 || $[19] !== t5 || $[20] !== t8) {
|
|
294
314
|
t9 = /* @__PURE__ */ jsxs("div", {
|
|
295
315
|
"data-testid": t1,
|
|
296
316
|
onClick: t2,
|
|
297
317
|
className: t4,
|
|
298
318
|
children: [t5, t8]
|
|
299
319
|
});
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
303
|
-
$[
|
|
304
|
-
$[
|
|
305
|
-
$[
|
|
306
|
-
} else t9 = $[
|
|
320
|
+
$[16] = t1;
|
|
321
|
+
$[17] = t2;
|
|
322
|
+
$[18] = t4;
|
|
323
|
+
$[19] = t5;
|
|
324
|
+
$[20] = t8;
|
|
325
|
+
$[21] = t9;
|
|
326
|
+
} else t9 = $[21];
|
|
307
327
|
return t9;
|
|
308
328
|
};
|
|
309
329
|
|
|
310
330
|
//#endregion
|
|
311
331
|
//#region src/components/flow-group.tsx
|
|
312
332
|
const FlowGroup = (t0) => {
|
|
313
|
-
const $ = c(
|
|
333
|
+
const $ = c(41);
|
|
334
|
+
if ($[0] !== "a80b3cb43bb62d012f095b7847fb01d92f2a4fcd29fc05244f6ae839f1f0b9de") {
|
|
335
|
+
for (let $i = 0; $i < 41; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
336
|
+
$[0] = "a80b3cb43bb62d012f095b7847fb01d92f2a4fcd29fc05244f6ae839f1f0b9de";
|
|
337
|
+
}
|
|
314
338
|
const { flow, endpoints, isOpen, isSelected, onToggle, onClearSelection, selectedEndpointId, onSelectEndpoint } = t0;
|
|
315
339
|
const t1 = `flow-group-${flow}`;
|
|
316
340
|
let t2;
|
|
317
|
-
if ($[
|
|
341
|
+
if ($[1] !== flow || $[2] !== isSelected || $[3] !== onClearSelection || $[4] !== onToggle) {
|
|
318
342
|
t2 = () => {
|
|
319
343
|
if (isSelected) onClearSelection();
|
|
320
344
|
onToggle(flow);
|
|
321
345
|
};
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
$[
|
|
327
|
-
} else t2 = $[
|
|
346
|
+
$[1] = flow;
|
|
347
|
+
$[2] = isSelected;
|
|
348
|
+
$[3] = onClearSelection;
|
|
349
|
+
$[4] = onToggle;
|
|
350
|
+
$[5] = t2;
|
|
351
|
+
} else t2 = $[5];
|
|
328
352
|
let t3;
|
|
329
|
-
if ($[
|
|
353
|
+
if ($[6] !== isOpen) {
|
|
330
354
|
t3 = cn("w-4 h-4 transition-transform duration-300 text-[#555]", { "rotate-180 mt-2.5": isOpen });
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
333
|
-
} else t3 = $[
|
|
355
|
+
$[6] = isOpen;
|
|
356
|
+
$[7] = t3;
|
|
357
|
+
} else t3 = $[7];
|
|
334
358
|
let t4;
|
|
335
|
-
if ($[
|
|
359
|
+
if ($[8] !== t3) {
|
|
336
360
|
t4 = /* @__PURE__ */ jsx(ChevronDown, {
|
|
337
361
|
className: t3,
|
|
338
362
|
strokeWidth: 1.5
|
|
339
363
|
});
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
} else t4 = $[
|
|
364
|
+
$[8] = t3;
|
|
365
|
+
$[9] = t4;
|
|
366
|
+
} else t4 = $[9];
|
|
343
367
|
const t5 = !isOpen;
|
|
344
368
|
let t6;
|
|
345
|
-
if ($[
|
|
369
|
+
if ($[10] !== t5) {
|
|
346
370
|
t6 = cn("ml-[7px]", { hidden: t5 });
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
} else t6 = $[
|
|
371
|
+
$[10] = t5;
|
|
372
|
+
$[11] = t6;
|
|
373
|
+
} else t6 = $[11];
|
|
350
374
|
let t7;
|
|
351
|
-
if ($[
|
|
375
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
352
376
|
t7 = /* @__PURE__ */ jsx("path", {
|
|
353
377
|
d: "M1.5 1C1.5 0.723858 1.27614 0.5 1 0.5C0.723858 0.5 0.5 0.723858 0.5 1H1H1.5ZM1 1H0.5V10H1H1.5V1H1Z",
|
|
354
378
|
className: "fill-[#555]"
|
|
355
379
|
});
|
|
356
|
-
$[
|
|
357
|
-
} else t7 = $[
|
|
380
|
+
$[12] = t7;
|
|
381
|
+
} else t7 = $[12];
|
|
358
382
|
let t8;
|
|
359
|
-
if ($[
|
|
383
|
+
if ($[13] !== t6) {
|
|
360
384
|
t8 = /* @__PURE__ */ jsx("svg", {
|
|
361
385
|
xmlns: "http://www.w3.org/2000/svg",
|
|
362
386
|
width: "2",
|
|
@@ -366,90 +390,90 @@ const FlowGroup = (t0) => {
|
|
|
366
390
|
className: t6,
|
|
367
391
|
children: t7
|
|
368
392
|
});
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
} else t8 = $[
|
|
393
|
+
$[13] = t6;
|
|
394
|
+
$[14] = t8;
|
|
395
|
+
} else t8 = $[14];
|
|
372
396
|
let t9;
|
|
373
|
-
if ($[
|
|
397
|
+
if ($[15] !== t4 || $[16] !== t8) {
|
|
374
398
|
t9 = /* @__PURE__ */ jsxs("div", {
|
|
375
399
|
className: "grid grid-cols-1",
|
|
376
400
|
children: [t4, t8]
|
|
377
401
|
});
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
381
|
-
} else t9 = $[
|
|
402
|
+
$[15] = t4;
|
|
403
|
+
$[16] = t8;
|
|
404
|
+
$[17] = t9;
|
|
405
|
+
} else t9 = $[17];
|
|
382
406
|
let t10;
|
|
383
|
-
if ($[
|
|
407
|
+
if ($[18] !== flow) {
|
|
384
408
|
t10 = /* @__PURE__ */ jsx("h3", {
|
|
385
409
|
className: "text-sm font-medium text-left",
|
|
386
410
|
children: flow
|
|
387
411
|
});
|
|
388
|
-
$[
|
|
389
|
-
$[
|
|
390
|
-
} else t10 = $[
|
|
412
|
+
$[18] = flow;
|
|
413
|
+
$[19] = t10;
|
|
414
|
+
} else t10 = $[19];
|
|
391
415
|
let t11;
|
|
392
|
-
if ($[
|
|
416
|
+
if ($[20] !== t1 || $[21] !== t10 || $[22] !== t2 || $[23] !== t9) {
|
|
393
417
|
t11 = /* @__PURE__ */ jsxs("button", {
|
|
394
418
|
"data-testid": t1,
|
|
395
419
|
className: "w-full grid grid-cols-[auto_1fr] items-center gap-3 hover:bg-muted/40 cursor-pointer min-h-8.5 select-none hover:bg-muted-foreground/10 px-4",
|
|
396
420
|
onClick: t2,
|
|
397
421
|
children: [t9, t10]
|
|
398
422
|
});
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
} else t11 = $[
|
|
423
|
+
$[20] = t1;
|
|
424
|
+
$[21] = t10;
|
|
425
|
+
$[22] = t2;
|
|
426
|
+
$[23] = t9;
|
|
427
|
+
$[24] = t11;
|
|
428
|
+
} else t11 = $[24];
|
|
405
429
|
const t12 = !isOpen;
|
|
406
430
|
let t13;
|
|
407
|
-
if ($[
|
|
431
|
+
if ($[25] !== t12) {
|
|
408
432
|
t13 = cn("grid grid-cols-1 items-center justify-center", { hidden: t12 });
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
} else t13 = $[
|
|
433
|
+
$[25] = t12;
|
|
434
|
+
$[26] = t13;
|
|
435
|
+
} else t13 = $[26];
|
|
412
436
|
let t14;
|
|
413
|
-
if ($[
|
|
437
|
+
if ($[27] !== endpoints || $[28] !== onSelectEndpoint || $[29] !== selectedEndpointId) {
|
|
414
438
|
let t15$1;
|
|
415
|
-
if ($[
|
|
439
|
+
if ($[31] !== endpoints.length || $[32] !== onSelectEndpoint || $[33] !== selectedEndpointId) {
|
|
416
440
|
t15$1 = (endpoint, index) => /* @__PURE__ */ jsx(EndpointItem, {
|
|
417
441
|
endpoint,
|
|
418
442
|
isSelected: selectedEndpointId === endpoint.id,
|
|
419
443
|
isLast: index === endpoints.length - 1,
|
|
420
444
|
onSelect: onSelectEndpoint
|
|
421
445
|
}, endpoint.id);
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
} else t15$1 = $[
|
|
446
|
+
$[31] = endpoints.length;
|
|
447
|
+
$[32] = onSelectEndpoint;
|
|
448
|
+
$[33] = selectedEndpointId;
|
|
449
|
+
$[34] = t15$1;
|
|
450
|
+
} else t15$1 = $[34];
|
|
427
451
|
t14 = endpoints.map(t15$1);
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
} else t14 = $[
|
|
452
|
+
$[27] = endpoints;
|
|
453
|
+
$[28] = onSelectEndpoint;
|
|
454
|
+
$[29] = selectedEndpointId;
|
|
455
|
+
$[30] = t14;
|
|
456
|
+
} else t14 = $[30];
|
|
433
457
|
let t15;
|
|
434
|
-
if ($[
|
|
458
|
+
if ($[35] !== t13 || $[36] !== t14) {
|
|
435
459
|
t15 = /* @__PURE__ */ jsx("div", {
|
|
436
460
|
className: t13,
|
|
437
461
|
children: t14
|
|
438
462
|
});
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
} else t15 = $[
|
|
463
|
+
$[35] = t13;
|
|
464
|
+
$[36] = t14;
|
|
465
|
+
$[37] = t15;
|
|
466
|
+
} else t15 = $[37];
|
|
443
467
|
let t16;
|
|
444
|
-
if ($[
|
|
468
|
+
if ($[38] !== t11 || $[39] !== t15) {
|
|
445
469
|
t16 = /* @__PURE__ */ jsxs("div", {
|
|
446
470
|
className: "pt-2",
|
|
447
471
|
children: [t11, t15]
|
|
448
472
|
});
|
|
449
|
-
$[
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
452
|
-
} else t16 = $[
|
|
473
|
+
$[38] = t11;
|
|
474
|
+
$[39] = t15;
|
|
475
|
+
$[40] = t16;
|
|
476
|
+
} else t16 = $[40];
|
|
453
477
|
return t16;
|
|
454
478
|
};
|
|
455
479
|
|
|
@@ -597,33 +621,37 @@ const useEndpointConfiguration = create()(persist(devtools((set) => ({
|
|
|
597
621
|
//#endregion
|
|
598
622
|
//#region src/hooks/use-get-endpoints.ts
|
|
599
623
|
const useGetEndpoints = () => {
|
|
600
|
-
const $ = c(
|
|
624
|
+
const $ = c(7);
|
|
625
|
+
if ($[0] !== "cadd8d3432dfc6d2432c646eaf1f90c044b70a708974ecf5f816ef36004b4da0") {
|
|
626
|
+
for (let $i = 0; $i < 7; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
627
|
+
$[0] = "cadd8d3432dfc6d2432c646eaf1f90c044b70a708974ecf5f816ef36004b4da0";
|
|
628
|
+
}
|
|
601
629
|
let t0;
|
|
602
|
-
if ($[
|
|
630
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
603
631
|
t0 = {
|
|
604
632
|
streamName: "__motia.api-endpoints",
|
|
605
633
|
groupId: "default"
|
|
606
634
|
};
|
|
607
|
-
$[
|
|
608
|
-
} else t0 = $[
|
|
635
|
+
$[1] = t0;
|
|
636
|
+
} else t0 = $[1];
|
|
609
637
|
const { data: endpoints } = useStreamGroup(t0);
|
|
610
638
|
let t1;
|
|
611
|
-
if ($[
|
|
639
|
+
if ($[2] !== endpoints) {
|
|
612
640
|
t1 = endpoints.reduce(_temp$8, {});
|
|
613
|
-
$[
|
|
614
|
-
$[
|
|
615
|
-
} else t1 = $[
|
|
641
|
+
$[2] = endpoints;
|
|
642
|
+
$[3] = t1;
|
|
643
|
+
} else t1 = $[3];
|
|
616
644
|
const groupedEndpoints = t1;
|
|
617
645
|
let t2;
|
|
618
|
-
if ($[
|
|
646
|
+
if ($[4] !== endpoints || $[5] !== groupedEndpoints) {
|
|
619
647
|
t2 = {
|
|
620
648
|
endpoints,
|
|
621
649
|
groupedEndpoints
|
|
622
650
|
};
|
|
623
|
-
$[
|
|
624
|
-
$[
|
|
625
|
-
$[
|
|
626
|
-
} else t2 = $[
|
|
651
|
+
$[4] = endpoints;
|
|
652
|
+
$[5] = groupedEndpoints;
|
|
653
|
+
$[6] = t2;
|
|
654
|
+
} else t2 = $[6];
|
|
627
655
|
return t2;
|
|
628
656
|
};
|
|
629
657
|
function _temp$8(acc, endpoint) {
|
|
@@ -691,39 +719,47 @@ const convertSchemaToJson = (schema, rootSchema) => {
|
|
|
691
719
|
//#endregion
|
|
692
720
|
//#region src/hooks/use-json-schema-to-json.tsx
|
|
693
721
|
const useJsonSchemaToJson = (schema) => {
|
|
694
|
-
const $ = c(
|
|
722
|
+
const $ = c(6);
|
|
723
|
+
if ($[0] !== "ba29f15b5046bda288d763530dc1c4ad1bc3136b6950394508cecd61132b94a3") {
|
|
724
|
+
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
725
|
+
$[0] = "ba29f15b5046bda288d763530dc1c4ad1bc3136b6950394508cecd61132b94a3";
|
|
726
|
+
}
|
|
695
727
|
const [body, setBody] = useState("");
|
|
696
728
|
let t0;
|
|
697
729
|
let t1;
|
|
698
|
-
if ($[
|
|
730
|
+
if ($[1] !== schema) {
|
|
699
731
|
t0 = () => {
|
|
700
732
|
if (schema) setBody(JSON.stringify(convertSchemaToJson(schema), null, 2));
|
|
701
733
|
};
|
|
702
734
|
t1 = [schema];
|
|
703
|
-
$[
|
|
704
|
-
$[
|
|
705
|
-
$[
|
|
735
|
+
$[1] = schema;
|
|
736
|
+
$[2] = t0;
|
|
737
|
+
$[3] = t1;
|
|
706
738
|
} else {
|
|
707
|
-
t0 = $[
|
|
708
|
-
t1 = $[
|
|
739
|
+
t0 = $[2];
|
|
740
|
+
t1 = $[3];
|
|
709
741
|
}
|
|
710
742
|
useEffect(t0, t1);
|
|
711
743
|
let t2;
|
|
712
|
-
if ($[
|
|
744
|
+
if ($[4] !== body) {
|
|
713
745
|
t2 = {
|
|
714
746
|
body,
|
|
715
747
|
setBody
|
|
716
748
|
};
|
|
717
|
-
$[
|
|
718
|
-
$[
|
|
719
|
-
} else t2 = $[
|
|
749
|
+
$[4] = body;
|
|
750
|
+
$[5] = t2;
|
|
751
|
+
} else t2 = $[5];
|
|
720
752
|
return t2;
|
|
721
753
|
};
|
|
722
754
|
|
|
723
755
|
//#endregion
|
|
724
756
|
//#region src/spec/spec-body-panel.tsx
|
|
725
757
|
const EndpointBodyPanel = (t0) => {
|
|
726
|
-
const $ = c(
|
|
758
|
+
const $ = c(9);
|
|
759
|
+
if ($[0] !== "b8eff7f7ce8e9189baa5c639bfd152e5d0c4e2073eede72b1020744bec7ba947") {
|
|
760
|
+
for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
761
|
+
$[0] = "b8eff7f7ce8e9189baa5c639bfd152e5d0c4e2073eede72b1020744bec7ba947";
|
|
762
|
+
}
|
|
727
763
|
const { endpoint, panelName, value } = t0;
|
|
728
764
|
if (![
|
|
729
765
|
"post",
|
|
@@ -732,29 +768,29 @@ const EndpointBodyPanel = (t0) => {
|
|
|
732
768
|
].includes(endpoint.method.toLowerCase())) return null;
|
|
733
769
|
const t1 = `endpoint-body-panel__${panelName}`;
|
|
734
770
|
let t2;
|
|
735
|
-
if ($[
|
|
771
|
+
if ($[1] !== value) {
|
|
736
772
|
t2 = value ? JSON.parse(value) : {};
|
|
737
|
-
$[
|
|
738
|
-
$[
|
|
739
|
-
} else t2 = $[
|
|
773
|
+
$[1] = value;
|
|
774
|
+
$[2] = t2;
|
|
775
|
+
} else t2 = $[2];
|
|
740
776
|
let t3;
|
|
741
|
-
if ($[
|
|
777
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
742
778
|
t3 = { backgroundColor: "transparent" };
|
|
743
|
-
$[
|
|
744
|
-
} else t3 = $[
|
|
779
|
+
$[3] = t3;
|
|
780
|
+
} else t3 = $[3];
|
|
745
781
|
let t4;
|
|
746
|
-
if ($[
|
|
782
|
+
if ($[4] !== t2) {
|
|
747
783
|
t4 = /* @__PURE__ */ jsx(ReactJson, {
|
|
748
784
|
src: t2,
|
|
749
785
|
theme: "default",
|
|
750
786
|
enableClipboard: false,
|
|
751
787
|
style: t3
|
|
752
788
|
});
|
|
753
|
-
$[
|
|
754
|
-
$[
|
|
755
|
-
} else t4 = $[
|
|
789
|
+
$[4] = t2;
|
|
790
|
+
$[5] = t4;
|
|
791
|
+
} else t4 = $[5];
|
|
756
792
|
let t5;
|
|
757
|
-
if ($[
|
|
793
|
+
if ($[6] !== t1 || $[7] !== t4) {
|
|
758
794
|
t5 = /* @__PURE__ */ jsx(Panel, {
|
|
759
795
|
title: "Body",
|
|
760
796
|
size: "sm",
|
|
@@ -762,33 +798,37 @@ const EndpointBodyPanel = (t0) => {
|
|
|
762
798
|
"data-testid": t1,
|
|
763
799
|
children: t4
|
|
764
800
|
});
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
767
|
-
$[
|
|
768
|
-
} else t5 = $[
|
|
801
|
+
$[6] = t1;
|
|
802
|
+
$[7] = t4;
|
|
803
|
+
$[8] = t5;
|
|
804
|
+
} else t5 = $[8];
|
|
769
805
|
return t5;
|
|
770
806
|
};
|
|
771
807
|
|
|
772
808
|
//#endregion
|
|
773
809
|
//#region src/spec/spec-path-params-panel.tsx
|
|
774
810
|
const EndpointPathParamsPanel = (t0) => {
|
|
775
|
-
const $ = c(
|
|
811
|
+
const $ = c(6);
|
|
812
|
+
if ($[0] !== "4b99c635b467b8c34956e7f3473f52521462aab54a3d1e16ce1af5ee24ede587") {
|
|
813
|
+
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
814
|
+
$[0] = "4b99c635b467b8c34956e7f3473f52521462aab54a3d1e16ce1af5ee24ede587";
|
|
815
|
+
}
|
|
776
816
|
const { endpoint } = t0;
|
|
777
817
|
const pathParams = usePathParams(endpoint.path);
|
|
778
818
|
if (!pathParams.length) return null;
|
|
779
819
|
let t1;
|
|
780
|
-
if ($[
|
|
820
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
781
821
|
t1 = { gridTemplateColumns: "1fr 2fr" };
|
|
782
|
-
$[
|
|
783
|
-
} else t1 = $[
|
|
822
|
+
$[1] = t1;
|
|
823
|
+
} else t1 = $[1];
|
|
784
824
|
let t2;
|
|
785
|
-
if ($[
|
|
825
|
+
if ($[2] !== pathParams) {
|
|
786
826
|
t2 = pathParams.map(_temp$7);
|
|
787
|
-
$[
|
|
788
|
-
$[
|
|
789
|
-
} else t2 = $[
|
|
827
|
+
$[2] = pathParams;
|
|
828
|
+
$[3] = t2;
|
|
829
|
+
} else t2 = $[3];
|
|
790
830
|
let t3;
|
|
791
|
-
if ($[
|
|
831
|
+
if ($[4] !== t2) {
|
|
792
832
|
t3 = /* @__PURE__ */ jsx(Panel, {
|
|
793
833
|
title: "Path params",
|
|
794
834
|
size: "sm",
|
|
@@ -799,9 +839,9 @@ const EndpointPathParamsPanel = (t0) => {
|
|
|
799
839
|
children: t2
|
|
800
840
|
})
|
|
801
841
|
});
|
|
802
|
-
$[
|
|
803
|
-
$[
|
|
804
|
-
} else t3 = $[
|
|
842
|
+
$[4] = t2;
|
|
843
|
+
$[5] = t3;
|
|
844
|
+
} else t3 = $[5];
|
|
805
845
|
return t3;
|
|
806
846
|
};
|
|
807
847
|
function _temp$7(param) {
|
|
@@ -814,25 +854,29 @@ function _temp$7(param) {
|
|
|
814
854
|
//#endregion
|
|
815
855
|
//#region src/spec/spec-query-params-panel.tsx
|
|
816
856
|
const EndpointQueryParamsPanel = (t0) => {
|
|
817
|
-
const $ = c(
|
|
857
|
+
const $ = c(6);
|
|
858
|
+
if ($[0] !== "4e1364928f69469968044d4855a06c351178a75725f12806c407b9bdbee699b0") {
|
|
859
|
+
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
860
|
+
$[0] = "4e1364928f69469968044d4855a06c351178a75725f12806c407b9bdbee699b0";
|
|
861
|
+
}
|
|
818
862
|
const { endpoint } = t0;
|
|
819
863
|
if (!endpoint.queryParams?.length) return null;
|
|
820
864
|
let t1;
|
|
821
|
-
if ($[
|
|
865
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
822
866
|
t1 = {
|
|
823
867
|
gridTemplateColumns: "1fr 2fr",
|
|
824
868
|
gridTemplateRows: "1fr 1fr"
|
|
825
869
|
};
|
|
826
|
-
$[
|
|
827
|
-
} else t1 = $[
|
|
870
|
+
$[1] = t1;
|
|
871
|
+
} else t1 = $[1];
|
|
828
872
|
let t2;
|
|
829
|
-
if ($[
|
|
873
|
+
if ($[2] !== endpoint.queryParams) {
|
|
830
874
|
t2 = endpoint.queryParams.map(_temp$6);
|
|
831
|
-
$[
|
|
832
|
-
$[
|
|
833
|
-
} else t2 = $[
|
|
875
|
+
$[2] = endpoint.queryParams;
|
|
876
|
+
$[3] = t2;
|
|
877
|
+
} else t2 = $[3];
|
|
834
878
|
let t3;
|
|
835
|
-
if ($[
|
|
879
|
+
if ($[4] !== t2) {
|
|
836
880
|
t3 = /* @__PURE__ */ jsx(Panel, {
|
|
837
881
|
title: "Query params",
|
|
838
882
|
size: "sm",
|
|
@@ -843,9 +887,9 @@ const EndpointQueryParamsPanel = (t0) => {
|
|
|
843
887
|
children: t2
|
|
844
888
|
})
|
|
845
889
|
});
|
|
846
|
-
$[
|
|
847
|
-
$[
|
|
848
|
-
} else t3 = $[
|
|
890
|
+
$[4] = t2;
|
|
891
|
+
$[5] = t3;
|
|
892
|
+
} else t3 = $[5];
|
|
849
893
|
return t3;
|
|
850
894
|
};
|
|
851
895
|
function _temp$6(param) {
|
|
@@ -861,19 +905,23 @@ function _temp$6(param) {
|
|
|
861
905
|
//#endregion
|
|
862
906
|
//#region src/spec/spec-response-schema.tsx
|
|
863
907
|
const EndpointResponseSchemaItem = (t0) => {
|
|
864
|
-
const $ = c(
|
|
908
|
+
const $ = c(10);
|
|
909
|
+
if ($[0] !== "e4de7b36c48b33b1d8a3aa52a415bcc5b35556fbd21c0f6bc47983adc48a77ce") {
|
|
910
|
+
for (let $i = 0; $i < 10; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
911
|
+
$[0] = "e4de7b36c48b33b1d8a3aa52a415bcc5b35556fbd21c0f6bc47983adc48a77ce";
|
|
912
|
+
}
|
|
865
913
|
const { responseCode, bodySchema } = t0;
|
|
866
914
|
const theme = useThemeStore(_temp$5);
|
|
867
915
|
let t1;
|
|
868
|
-
if ($[
|
|
916
|
+
if ($[1] !== bodySchema) {
|
|
869
917
|
t1 = convertSchemaToJson(bodySchema);
|
|
870
|
-
$[
|
|
871
|
-
$[
|
|
872
|
-
} else t1 = $[
|
|
918
|
+
$[1] = bodySchema;
|
|
919
|
+
$[2] = t1;
|
|
920
|
+
} else t1 = $[2];
|
|
873
921
|
const schema = t1;
|
|
874
922
|
const description = typeof bodySchema.description === "string" ? bodySchema.description : "";
|
|
875
923
|
let t2;
|
|
876
|
-
if ($[
|
|
924
|
+
if ($[3] !== description || $[4] !== schema || $[5] !== theme) {
|
|
877
925
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
878
926
|
className: "text-xs font-mono rounded-lg whitespace-pre-wrap",
|
|
879
927
|
children: schema ? /* @__PURE__ */ jsx(ReactJson, {
|
|
@@ -886,37 +934,41 @@ const EndpointResponseSchemaItem = (t0) => {
|
|
|
886
934
|
children: description
|
|
887
935
|
})
|
|
888
936
|
});
|
|
889
|
-
$[
|
|
890
|
-
$[
|
|
891
|
-
$[
|
|
892
|
-
$[
|
|
893
|
-
} else t2 = $[
|
|
937
|
+
$[3] = description;
|
|
938
|
+
$[4] = schema;
|
|
939
|
+
$[5] = theme;
|
|
940
|
+
$[6] = t2;
|
|
941
|
+
} else t2 = $[6];
|
|
894
942
|
let t3;
|
|
895
|
-
if ($[
|
|
943
|
+
if ($[7] !== responseCode || $[8] !== t2) {
|
|
896
944
|
t3 = /* @__PURE__ */ jsx(TabsContent, {
|
|
897
945
|
value: responseCode,
|
|
898
946
|
className: "border-t",
|
|
899
947
|
children: t2
|
|
900
948
|
}, responseCode);
|
|
901
|
-
$[
|
|
902
|
-
$[
|
|
903
|
-
$[
|
|
904
|
-
} else t3 = $[
|
|
949
|
+
$[7] = responseCode;
|
|
950
|
+
$[8] = t2;
|
|
951
|
+
$[9] = t3;
|
|
952
|
+
} else t3 = $[9];
|
|
905
953
|
return t3;
|
|
906
954
|
};
|
|
907
955
|
const EndpointResponseSchema = (t0) => {
|
|
908
|
-
const $ = c(
|
|
956
|
+
const $ = c(11);
|
|
957
|
+
if ($[0] !== "e4de7b36c48b33b1d8a3aa52a415bcc5b35556fbd21c0f6bc47983adc48a77ce") {
|
|
958
|
+
for (let $i = 0; $i < 11; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
959
|
+
$[0] = "e4de7b36c48b33b1d8a3aa52a415bcc5b35556fbd21c0f6bc47983adc48a77ce";
|
|
960
|
+
}
|
|
909
961
|
const { items } = t0;
|
|
910
962
|
if (items.length === 0) return null;
|
|
911
963
|
const t1 = items[0].responseCode;
|
|
912
964
|
let t2;
|
|
913
|
-
if ($[
|
|
965
|
+
if ($[1] !== items) {
|
|
914
966
|
t2 = items.map(_temp2);
|
|
915
|
-
$[
|
|
916
|
-
$[
|
|
917
|
-
} else t2 = $[
|
|
967
|
+
$[1] = items;
|
|
968
|
+
$[2] = t2;
|
|
969
|
+
} else t2 = $[2];
|
|
918
970
|
let t3;
|
|
919
|
-
if ($[
|
|
971
|
+
if ($[3] !== t2) {
|
|
920
972
|
t3 = /* @__PURE__ */ jsx("div", {
|
|
921
973
|
className: "flex items-center justify-between bg-card",
|
|
922
974
|
children: /* @__PURE__ */ jsx(TabsList, {
|
|
@@ -924,17 +976,17 @@ const EndpointResponseSchema = (t0) => {
|
|
|
924
976
|
children: t2
|
|
925
977
|
})
|
|
926
978
|
});
|
|
927
|
-
$[
|
|
928
|
-
$[
|
|
929
|
-
} else t3 = $[
|
|
979
|
+
$[3] = t2;
|
|
980
|
+
$[4] = t3;
|
|
981
|
+
} else t3 = $[4];
|
|
930
982
|
let t4;
|
|
931
|
-
if ($[
|
|
983
|
+
if ($[5] !== items) {
|
|
932
984
|
t4 = items.map(_temp3);
|
|
933
|
-
$[
|
|
934
|
-
$[
|
|
935
|
-
} else t4 = $[
|
|
985
|
+
$[5] = items;
|
|
986
|
+
$[6] = t4;
|
|
987
|
+
} else t4 = $[6];
|
|
936
988
|
let t5;
|
|
937
|
-
if ($[
|
|
989
|
+
if ($[7] !== items[0].responseCode || $[8] !== t3 || $[9] !== t4) {
|
|
938
990
|
t5 = /* @__PURE__ */ jsx("div", {
|
|
939
991
|
className: "flex flex-col rounded-lg border",
|
|
940
992
|
children: /* @__PURE__ */ jsxs(Tabs, {
|
|
@@ -942,11 +994,11 @@ const EndpointResponseSchema = (t0) => {
|
|
|
942
994
|
children: [t3, t4]
|
|
943
995
|
})
|
|
944
996
|
});
|
|
945
|
-
$[
|
|
946
|
-
$[
|
|
947
|
-
$[
|
|
948
|
-
$[
|
|
949
|
-
} else t5 = $[
|
|
997
|
+
$[7] = items[0].responseCode;
|
|
998
|
+
$[8] = t3;
|
|
999
|
+
$[9] = t4;
|
|
1000
|
+
$[10] = t5;
|
|
1001
|
+
} else t5 = $[10];
|
|
950
1002
|
return t5;
|
|
951
1003
|
};
|
|
952
1004
|
function _temp$5(store) {
|
|
@@ -966,69 +1018,73 @@ function _temp3(props) {
|
|
|
966
1018
|
//#endregion
|
|
967
1019
|
//#region src/spec/spec-side-panel.tsx
|
|
968
1020
|
const SpecSidePanel = (t0) => {
|
|
969
|
-
const $ = c(
|
|
1021
|
+
const $ = c(26);
|
|
1022
|
+
if ($[0] !== "1460e2628753bf80967063f35b14988afbd9dd8b96c8778ac3b5ebba7a833fc1") {
|
|
1023
|
+
for (let $i = 0; $i < 26; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1024
|
+
$[0] = "1460e2628753bf80967063f35b14988afbd9dd8b96c8778ac3b5ebba7a833fc1";
|
|
1025
|
+
}
|
|
970
1026
|
const { endpoint, onClose } = t0;
|
|
971
1027
|
const { body } = useJsonSchemaToJson(endpoint.bodySchema);
|
|
972
1028
|
let t1;
|
|
973
|
-
if ($[
|
|
1029
|
+
if ($[1] !== endpoint.method || $[2] !== endpoint.path) {
|
|
974
1030
|
t1 = /* @__PURE__ */ jsx(EndpointPath, {
|
|
975
1031
|
method: endpoint.method,
|
|
976
1032
|
path: endpoint.path
|
|
977
1033
|
});
|
|
978
|
-
$[
|
|
979
|
-
$[
|
|
980
|
-
$[
|
|
981
|
-
} else t1 = $[
|
|
1034
|
+
$[1] = endpoint.method;
|
|
1035
|
+
$[2] = endpoint.path;
|
|
1036
|
+
$[3] = t1;
|
|
1037
|
+
} else t1 = $[3];
|
|
982
1038
|
let t2;
|
|
983
|
-
if ($[
|
|
1039
|
+
if ($[4] !== onClose) {
|
|
984
1040
|
t2 = /* @__PURE__ */ jsx(X, {
|
|
985
1041
|
className: "cursor-pointer w-4 h-4",
|
|
986
1042
|
onClick: onClose
|
|
987
1043
|
});
|
|
988
|
-
$[
|
|
989
|
-
$[
|
|
990
|
-
} else t2 = $[
|
|
1044
|
+
$[4] = onClose;
|
|
1045
|
+
$[5] = t2;
|
|
1046
|
+
} else t2 = $[5];
|
|
991
1047
|
let t3;
|
|
992
|
-
if ($[
|
|
1048
|
+
if ($[6] !== onClose || $[7] !== t2) {
|
|
993
1049
|
t3 = [{
|
|
994
1050
|
icon: t2,
|
|
995
1051
|
onClick: onClose
|
|
996
1052
|
}];
|
|
997
|
-
$[
|
|
998
|
-
$[
|
|
999
|
-
$[
|
|
1000
|
-
} else t3 = $[
|
|
1053
|
+
$[6] = onClose;
|
|
1054
|
+
$[7] = t2;
|
|
1055
|
+
$[8] = t3;
|
|
1056
|
+
} else t3 = $[8];
|
|
1001
1057
|
let t4;
|
|
1002
1058
|
let t5;
|
|
1003
|
-
if ($[
|
|
1059
|
+
if ($[9] !== endpoint) {
|
|
1004
1060
|
t4 = /* @__PURE__ */ jsx(EndpointPathParamsPanel, { endpoint });
|
|
1005
1061
|
t5 = /* @__PURE__ */ jsx(EndpointQueryParamsPanel, { endpoint });
|
|
1006
|
-
$[
|
|
1007
|
-
$[
|
|
1008
|
-
$[
|
|
1062
|
+
$[9] = endpoint;
|
|
1063
|
+
$[10] = t4;
|
|
1064
|
+
$[11] = t5;
|
|
1009
1065
|
} else {
|
|
1010
|
-
t4 = $[
|
|
1011
|
-
t5 = $[
|
|
1066
|
+
t4 = $[10];
|
|
1067
|
+
t5 = $[11];
|
|
1012
1068
|
}
|
|
1013
1069
|
let t6;
|
|
1014
|
-
if ($[
|
|
1070
|
+
if ($[12] !== body || $[13] !== endpoint) {
|
|
1015
1071
|
t6 = /* @__PURE__ */ jsx(EndpointBodyPanel, {
|
|
1016
1072
|
endpoint,
|
|
1017
1073
|
panelName: "details",
|
|
1018
1074
|
value: body
|
|
1019
1075
|
});
|
|
1020
|
-
$[
|
|
1021
|
-
$[
|
|
1022
|
-
$[
|
|
1023
|
-
} else t6 = $[
|
|
1076
|
+
$[12] = body;
|
|
1077
|
+
$[13] = endpoint;
|
|
1078
|
+
$[14] = t6;
|
|
1079
|
+
} else t6 = $[14];
|
|
1024
1080
|
let t7;
|
|
1025
|
-
if ($[
|
|
1081
|
+
if ($[15] !== endpoint.responseSchema) {
|
|
1026
1082
|
t7 = /* @__PURE__ */ jsx(EndpointResponseSchema, { items: Object.entries(endpoint?.responseSchema ?? {}).map(_temp$4) });
|
|
1027
|
-
$[
|
|
1028
|
-
$[
|
|
1029
|
-
} else t7 = $[
|
|
1083
|
+
$[15] = endpoint.responseSchema;
|
|
1084
|
+
$[16] = t7;
|
|
1085
|
+
} else t7 = $[16];
|
|
1030
1086
|
let t8;
|
|
1031
|
-
if ($[
|
|
1087
|
+
if ($[17] !== endpoint.description || $[18] !== onClose || $[19] !== t1 || $[20] !== t3 || $[21] !== t4 || $[22] !== t5 || $[23] !== t6 || $[24] !== t7) {
|
|
1032
1088
|
t8 = /* @__PURE__ */ jsxs(Sidebar, {
|
|
1033
1089
|
initialWidth: 600,
|
|
1034
1090
|
subtitle: endpoint.description,
|
|
@@ -1042,16 +1098,16 @@ const SpecSidePanel = (t0) => {
|
|
|
1042
1098
|
t7
|
|
1043
1099
|
]
|
|
1044
1100
|
});
|
|
1045
|
-
$[
|
|
1046
|
-
$[
|
|
1047
|
-
$[
|
|
1048
|
-
$[
|
|
1049
|
-
$[
|
|
1050
|
-
$[
|
|
1051
|
-
$[
|
|
1052
|
-
$[
|
|
1053
|
-
$[
|
|
1054
|
-
} else t8 = $[
|
|
1101
|
+
$[17] = endpoint.description;
|
|
1102
|
+
$[18] = onClose;
|
|
1103
|
+
$[19] = t1;
|
|
1104
|
+
$[20] = t3;
|
|
1105
|
+
$[21] = t4;
|
|
1106
|
+
$[22] = t5;
|
|
1107
|
+
$[23] = t6;
|
|
1108
|
+
$[24] = t7;
|
|
1109
|
+
$[25] = t8;
|
|
1110
|
+
} else t8 = $[25];
|
|
1055
1111
|
return t8;
|
|
1056
1112
|
};
|
|
1057
1113
|
function _temp$4(t0) {
|
|
@@ -1065,7 +1121,11 @@ function _temp$4(t0) {
|
|
|
1065
1121
|
//#endregion
|
|
1066
1122
|
//#region src/components/json-editor.tsx
|
|
1067
1123
|
const JsonEditor = (t0) => {
|
|
1068
|
-
const $ = c(
|
|
1124
|
+
const $ = c(41);
|
|
1125
|
+
if ($[0] !== "0b3355d4554a672310b1abdad893ca8974afca90f2334dd0d80cf3d8e960c55e") {
|
|
1126
|
+
for (let $i = 0; $i < 41; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1127
|
+
$[0] = "0b3355d4554a672310b1abdad893ca8974afca90f2334dd0d80cf3d8e960c55e";
|
|
1128
|
+
}
|
|
1069
1129
|
const { value, schema, onChange, onValidate, language: t1, readOnly: t2 } = t0;
|
|
1070
1130
|
const language = t1 === void 0 ? "json" : t1;
|
|
1071
1131
|
const readOnly = t2 === void 0 ? false : t2;
|
|
@@ -1076,7 +1136,7 @@ const JsonEditor = (t0) => {
|
|
|
1076
1136
|
const isValidatingRef = useRef(false);
|
|
1077
1137
|
let t3;
|
|
1078
1138
|
let t4;
|
|
1079
|
-
if ($[
|
|
1139
|
+
if ($[1] !== monaco) {
|
|
1080
1140
|
t3 = () => {
|
|
1081
1141
|
if (!monaco) return;
|
|
1082
1142
|
monaco.editor.defineTheme("transparent-light", {
|
|
@@ -1111,17 +1171,17 @@ const JsonEditor = (t0) => {
|
|
|
1111
1171
|
});
|
|
1112
1172
|
};
|
|
1113
1173
|
t4 = [monaco];
|
|
1114
|
-
$[
|
|
1115
|
-
$[
|
|
1116
|
-
$[
|
|
1174
|
+
$[1] = monaco;
|
|
1175
|
+
$[2] = t3;
|
|
1176
|
+
$[3] = t4;
|
|
1117
1177
|
} else {
|
|
1118
|
-
t3 = $[
|
|
1119
|
-
t4 = $[
|
|
1178
|
+
t3 = $[2];
|
|
1179
|
+
t4 = $[3];
|
|
1120
1180
|
}
|
|
1121
1181
|
useLayoutEffect(t3, t4);
|
|
1122
1182
|
let t5;
|
|
1123
1183
|
let t6;
|
|
1124
|
-
if ($[
|
|
1184
|
+
if ($[4] !== monaco || $[5] !== schema) {
|
|
1125
1185
|
t5 = () => {
|
|
1126
1186
|
if (!monaco) return;
|
|
1127
1187
|
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({ isolatedModules: true });
|
|
@@ -1132,35 +1192,35 @@ const JsonEditor = (t0) => {
|
|
|
1132
1192
|
}] : [] });
|
|
1133
1193
|
};
|
|
1134
1194
|
t6 = [monaco, schema];
|
|
1135
|
-
$[
|
|
1136
|
-
$[
|
|
1137
|
-
$[
|
|
1138
|
-
$[
|
|
1195
|
+
$[4] = monaco;
|
|
1196
|
+
$[5] = schema;
|
|
1197
|
+
$[6] = t5;
|
|
1198
|
+
$[7] = t6;
|
|
1139
1199
|
} else {
|
|
1140
|
-
t5 = $[
|
|
1141
|
-
t6 = $[
|
|
1200
|
+
t5 = $[6];
|
|
1201
|
+
t6 = $[7];
|
|
1142
1202
|
}
|
|
1143
1203
|
useEffect(t5, t6);
|
|
1144
1204
|
let t7;
|
|
1145
1205
|
let t8;
|
|
1146
|
-
if ($[
|
|
1206
|
+
if ($[8] !== editorTheme || $[9] !== monaco) {
|
|
1147
1207
|
t7 = () => {
|
|
1148
1208
|
if (!monaco) return;
|
|
1149
1209
|
monaco.editor.setTheme(editorTheme);
|
|
1150
1210
|
};
|
|
1151
1211
|
t8 = [monaco, editorTheme];
|
|
1152
|
-
$[
|
|
1153
|
-
$[
|
|
1154
|
-
$[
|
|
1155
|
-
$[
|
|
1212
|
+
$[8] = editorTheme;
|
|
1213
|
+
$[9] = monaco;
|
|
1214
|
+
$[10] = t7;
|
|
1215
|
+
$[11] = t8;
|
|
1156
1216
|
} else {
|
|
1157
|
-
t7 = $[
|
|
1158
|
-
t8 = $[
|
|
1217
|
+
t7 = $[10];
|
|
1218
|
+
t8 = $[11];
|
|
1159
1219
|
}
|
|
1160
1220
|
useLayoutEffect(t7, t8);
|
|
1161
1221
|
let t10;
|
|
1162
1222
|
let t9;
|
|
1163
|
-
if ($[
|
|
1223
|
+
if ($[12] !== editor) {
|
|
1164
1224
|
t9 = () => {
|
|
1165
1225
|
if (!editor) return;
|
|
1166
1226
|
const container = editor.getContainerDomNode().parentElement?.parentElement;
|
|
@@ -1185,17 +1245,17 @@ const JsonEditor = (t0) => {
|
|
|
1185
1245
|
};
|
|
1186
1246
|
};
|
|
1187
1247
|
t10 = [editor];
|
|
1188
|
-
$[
|
|
1189
|
-
$[
|
|
1190
|
-
$[
|
|
1248
|
+
$[12] = editor;
|
|
1249
|
+
$[13] = t10;
|
|
1250
|
+
$[14] = t9;
|
|
1191
1251
|
} else {
|
|
1192
|
-
t10 = $[
|
|
1193
|
-
t9 = $[
|
|
1252
|
+
t10 = $[13];
|
|
1253
|
+
t9 = $[14];
|
|
1194
1254
|
}
|
|
1195
1255
|
useEffect(t9, t10);
|
|
1196
1256
|
let t11;
|
|
1197
1257
|
let t12;
|
|
1198
|
-
if ($[
|
|
1258
|
+
if ($[15] !== editor || $[16] !== monaco || $[17] !== onValidate || $[18] !== schema || $[19] !== value) {
|
|
1199
1259
|
t11 = () => {
|
|
1200
1260
|
if (!editor || !monaco || !onValidate || isValidatingRef.current) return;
|
|
1201
1261
|
const model = editor.getModel();
|
|
@@ -1223,35 +1283,35 @@ const JsonEditor = (t0) => {
|
|
|
1223
1283
|
value,
|
|
1224
1284
|
schema
|
|
1225
1285
|
];
|
|
1226
|
-
$[
|
|
1227
|
-
$[
|
|
1228
|
-
$[
|
|
1229
|
-
$[
|
|
1230
|
-
$[
|
|
1231
|
-
$[
|
|
1232
|
-
$[
|
|
1286
|
+
$[15] = editor;
|
|
1287
|
+
$[16] = monaco;
|
|
1288
|
+
$[17] = onValidate;
|
|
1289
|
+
$[18] = schema;
|
|
1290
|
+
$[19] = value;
|
|
1291
|
+
$[20] = t11;
|
|
1292
|
+
$[21] = t12;
|
|
1233
1293
|
} else {
|
|
1234
|
-
t11 = $[
|
|
1235
|
-
t12 = $[
|
|
1294
|
+
t11 = $[20];
|
|
1295
|
+
t12 = $[21];
|
|
1236
1296
|
}
|
|
1237
1297
|
useEffect(t11, t12);
|
|
1238
1298
|
let t13;
|
|
1239
|
-
if ($[
|
|
1299
|
+
if ($[22] !== schema) {
|
|
1240
1300
|
t13 = schema ? JSON.stringify(schema) : "no-schema";
|
|
1241
|
-
$[
|
|
1242
|
-
$[
|
|
1243
|
-
} else t13 = $[
|
|
1301
|
+
$[22] = schema;
|
|
1302
|
+
$[23] = t13;
|
|
1303
|
+
} else t13 = $[23];
|
|
1244
1304
|
const editorKey = t13;
|
|
1245
1305
|
let t14;
|
|
1246
|
-
if ($[
|
|
1306
|
+
if ($[24] !== onChange) {
|
|
1247
1307
|
t14 = (value_0) => {
|
|
1248
1308
|
onChange?.(value_0 ?? "");
|
|
1249
1309
|
};
|
|
1250
|
-
$[
|
|
1251
|
-
$[
|
|
1252
|
-
} else t14 = $[
|
|
1310
|
+
$[24] = onChange;
|
|
1311
|
+
$[25] = t14;
|
|
1312
|
+
} else t14 = $[25];
|
|
1253
1313
|
let t15;
|
|
1254
|
-
if ($[
|
|
1314
|
+
if ($[26] !== onValidate || $[27] !== schema || $[28] !== value) {
|
|
1255
1315
|
t15 = (markers_0) => {
|
|
1256
1316
|
if (!onValidate || isValidatingRef.current) return;
|
|
1257
1317
|
isValidatingRef.current = true;
|
|
@@ -1259,18 +1319,18 @@ const JsonEditor = (t0) => {
|
|
|
1259
1319
|
else onValidate(markers_0.length === 0);
|
|
1260
1320
|
isValidatingRef.current = false;
|
|
1261
1321
|
};
|
|
1262
|
-
$[
|
|
1263
|
-
$[
|
|
1264
|
-
$[
|
|
1265
|
-
$[
|
|
1266
|
-
} else t15 = $[
|
|
1322
|
+
$[26] = onValidate;
|
|
1323
|
+
$[27] = schema;
|
|
1324
|
+
$[28] = value;
|
|
1325
|
+
$[29] = t15;
|
|
1326
|
+
} else t15 = $[29];
|
|
1267
1327
|
let t16;
|
|
1268
|
-
if ($[
|
|
1328
|
+
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1269
1329
|
t16 = { enabled: false };
|
|
1270
|
-
$[
|
|
1271
|
-
} else t16 = $[
|
|
1330
|
+
$[30] = t16;
|
|
1331
|
+
} else t16 = $[30];
|
|
1272
1332
|
let t17;
|
|
1273
|
-
if ($[
|
|
1333
|
+
if ($[31] !== readOnly) {
|
|
1274
1334
|
t17 = {
|
|
1275
1335
|
automaticLayout: false,
|
|
1276
1336
|
readOnly,
|
|
@@ -1278,11 +1338,11 @@ const JsonEditor = (t0) => {
|
|
|
1278
1338
|
minimap: t16,
|
|
1279
1339
|
overviewRulerLanes: 0
|
|
1280
1340
|
};
|
|
1281
|
-
$[
|
|
1282
|
-
$[
|
|
1283
|
-
} else t17 = $[
|
|
1341
|
+
$[31] = readOnly;
|
|
1342
|
+
$[32] = t17;
|
|
1343
|
+
} else t17 = $[32];
|
|
1284
1344
|
let t18;
|
|
1285
|
-
if ($[
|
|
1345
|
+
if ($[33] !== editorKey || $[34] !== editorTheme || $[35] !== language || $[36] !== t14 || $[37] !== t15 || $[38] !== t17 || $[39] !== value) {
|
|
1286
1346
|
t18 = /* @__PURE__ */ jsx(Editor, {
|
|
1287
1347
|
"data-testid": "json-editor",
|
|
1288
1348
|
language,
|
|
@@ -1294,15 +1354,15 @@ const JsonEditor = (t0) => {
|
|
|
1294
1354
|
onValidate: t15,
|
|
1295
1355
|
options: t17
|
|
1296
1356
|
}, editorKey);
|
|
1297
|
-
$[
|
|
1298
|
-
$[
|
|
1299
|
-
$[
|
|
1300
|
-
$[
|
|
1301
|
-
$[
|
|
1302
|
-
$[
|
|
1303
|
-
$[
|
|
1304
|
-
$[
|
|
1305
|
-
} else t18 = $[
|
|
1357
|
+
$[33] = editorKey;
|
|
1358
|
+
$[34] = editorTheme;
|
|
1359
|
+
$[35] = language;
|
|
1360
|
+
$[36] = t14;
|
|
1361
|
+
$[37] = t15;
|
|
1362
|
+
$[38] = t17;
|
|
1363
|
+
$[39] = value;
|
|
1364
|
+
$[40] = t18;
|
|
1365
|
+
} else t18 = $[40];
|
|
1306
1366
|
return t18;
|
|
1307
1367
|
};
|
|
1308
1368
|
function _temp$3(state) {
|
|
@@ -1312,7 +1372,11 @@ function _temp$3(state) {
|
|
|
1312
1372
|
//#endregion
|
|
1313
1373
|
//#region src/play/side-panel-body-tab.tsx
|
|
1314
1374
|
const SidePanelBodyTab = memo((t0) => {
|
|
1315
|
-
const $ = c(
|
|
1375
|
+
const $ = c(21);
|
|
1376
|
+
if ($[0] !== "15cdaf91612bb3c1ef34320b0f01a80a135e66606fb87beb7a4a2f7f95e53a69") {
|
|
1377
|
+
for (let $i = 0; $i < 21; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1378
|
+
$[0] = "15cdaf91612bb3c1ef34320b0f01a80a135e66606fb87beb7a4a2f7f95e53a69";
|
|
1379
|
+
}
|
|
1316
1380
|
const { schema } = t0;
|
|
1317
1381
|
const { setBody, setBodyIsValid } = useEndpointConfiguration();
|
|
1318
1382
|
const bodyIsValid = useEndpointConfiguration(useShallow(getBodyIsValidSelector));
|
|
@@ -1321,7 +1385,7 @@ const SidePanelBodyTab = memo((t0) => {
|
|
|
1321
1385
|
const userClearedRef = useRef(false);
|
|
1322
1386
|
let t1;
|
|
1323
1387
|
let t2;
|
|
1324
|
-
if ($[
|
|
1388
|
+
if ($[1] !== body || $[2] !== schema || $[3] !== setBody || $[4] !== setBodyIsValid) {
|
|
1325
1389
|
t1 = () => {
|
|
1326
1390
|
const schemaChanged = previousSchemaRef.current !== schema;
|
|
1327
1391
|
previousSchemaRef.current = schema;
|
|
@@ -1341,19 +1405,19 @@ const SidePanelBodyTab = memo((t0) => {
|
|
|
1341
1405
|
setBody,
|
|
1342
1406
|
setBodyIsValid
|
|
1343
1407
|
];
|
|
1344
|
-
$[
|
|
1345
|
-
$[
|
|
1346
|
-
$[
|
|
1347
|
-
$[
|
|
1348
|
-
$[
|
|
1349
|
-
$[
|
|
1408
|
+
$[1] = body;
|
|
1409
|
+
$[2] = schema;
|
|
1410
|
+
$[3] = setBody;
|
|
1411
|
+
$[4] = setBodyIsValid;
|
|
1412
|
+
$[5] = t1;
|
|
1413
|
+
$[6] = t2;
|
|
1350
1414
|
} else {
|
|
1351
|
-
t1 = $[
|
|
1352
|
-
t2 = $[
|
|
1415
|
+
t1 = $[5];
|
|
1416
|
+
t2 = $[6];
|
|
1353
1417
|
}
|
|
1354
1418
|
useEffect(t1, t2);
|
|
1355
1419
|
let t3;
|
|
1356
|
-
if ($[
|
|
1420
|
+
if ($[7] !== schema || $[8] !== setBody || $[9] !== setBodyIsValid) {
|
|
1357
1421
|
t3 = (value) => {
|
|
1358
1422
|
setBody(value);
|
|
1359
1423
|
if (schema && !value) {
|
|
@@ -1361,53 +1425,57 @@ const SidePanelBodyTab = memo((t0) => {
|
|
|
1361
1425
|
userClearedRef.current = true;
|
|
1362
1426
|
} else userClearedRef.current = false;
|
|
1363
1427
|
};
|
|
1364
|
-
$[
|
|
1365
|
-
$[
|
|
1366
|
-
$[
|
|
1367
|
-
$[
|
|
1368
|
-
} else t3 = $[
|
|
1428
|
+
$[7] = schema;
|
|
1429
|
+
$[8] = setBody;
|
|
1430
|
+
$[9] = setBodyIsValid;
|
|
1431
|
+
$[10] = t3;
|
|
1432
|
+
} else t3 = $[10];
|
|
1369
1433
|
const handleBodyChange = t3;
|
|
1370
1434
|
let t4;
|
|
1371
|
-
if ($[
|
|
1435
|
+
if ($[11] !== body || $[12] !== handleBodyChange || $[13] !== schema || $[14] !== setBodyIsValid) {
|
|
1372
1436
|
t4 = /* @__PURE__ */ jsx(JsonEditor, {
|
|
1373
1437
|
value: body,
|
|
1374
1438
|
schema,
|
|
1375
1439
|
onChange: handleBodyChange,
|
|
1376
1440
|
onValidate: setBodyIsValid
|
|
1377
1441
|
});
|
|
1378
|
-
$[
|
|
1379
|
-
$[
|
|
1380
|
-
$[
|
|
1381
|
-
$[
|
|
1382
|
-
$[
|
|
1383
|
-
} else t4 = $[
|
|
1442
|
+
$[11] = body;
|
|
1443
|
+
$[12] = handleBodyChange;
|
|
1444
|
+
$[13] = schema;
|
|
1445
|
+
$[14] = setBodyIsValid;
|
|
1446
|
+
$[15] = t4;
|
|
1447
|
+
} else t4 = $[15];
|
|
1384
1448
|
let t5;
|
|
1385
|
-
if ($[
|
|
1449
|
+
if ($[16] !== bodyIsValid) {
|
|
1386
1450
|
t5 = bodyIsValid === false && /* @__PURE__ */ jsxs("div", {
|
|
1387
1451
|
className: "absolute bottom-0 left-0 right-0 border-t border-border p-3 text-sm dark:text-yellow-500 text-yellow-700 flex items-center gap-1 font-medium",
|
|
1388
1452
|
"data-testid": "endpoint-body-tab-invalid",
|
|
1389
1453
|
children: [/* @__PURE__ */ jsx(CircleX, { className: "w-4 h-4" }), "The body payload is invalid"]
|
|
1390
1454
|
});
|
|
1391
|
-
$[
|
|
1392
|
-
$[
|
|
1393
|
-
} else t5 = $[
|
|
1455
|
+
$[16] = bodyIsValid;
|
|
1456
|
+
$[17] = t5;
|
|
1457
|
+
} else t5 = $[17];
|
|
1394
1458
|
let t6;
|
|
1395
|
-
if ($[
|
|
1459
|
+
if ($[18] !== t4 || $[19] !== t5) {
|
|
1396
1460
|
t6 = /* @__PURE__ */ jsxs("div", {
|
|
1397
1461
|
className: "max-h-full h-full relative",
|
|
1398
1462
|
children: [t4, t5]
|
|
1399
1463
|
});
|
|
1400
|
-
$[
|
|
1401
|
-
$[
|
|
1402
|
-
$[
|
|
1403
|
-
} else t6 = $[
|
|
1464
|
+
$[18] = t4;
|
|
1465
|
+
$[19] = t5;
|
|
1466
|
+
$[20] = t6;
|
|
1467
|
+
} else t6 = $[20];
|
|
1404
1468
|
return t6;
|
|
1405
1469
|
});
|
|
1406
1470
|
|
|
1407
1471
|
//#endregion
|
|
1408
1472
|
//#region src/components/configuration-list-item.tsx
|
|
1409
1473
|
const ConfigurationListItem = memo((t0) => {
|
|
1410
|
-
const $ = c(
|
|
1474
|
+
const $ = c(59);
|
|
1475
|
+
if ($[0] !== "49b457e4243ed5368ffc15725d84d290ce5fe7173cb1a11ee0a1be10ae181259") {
|
|
1476
|
+
for (let $i = 0; $i < 59; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1477
|
+
$[0] = "49b457e4243ed5368ffc15725d84d290ce5fe7173cb1a11ee0a1be10ae181259";
|
|
1478
|
+
}
|
|
1411
1479
|
const { value, id, onUpdate, onRemove, required: t1 } = t0;
|
|
1412
1480
|
const required = t1 === void 0 ? false : t1;
|
|
1413
1481
|
const [activeConfiguration, setActiveConfiguration] = useState(null);
|
|
@@ -1415,7 +1483,7 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1415
1483
|
const deleteTimeout = useRef(void 0);
|
|
1416
1484
|
const isActive = activeConfiguration === id;
|
|
1417
1485
|
let t2;
|
|
1418
|
-
if ($[
|
|
1486
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1419
1487
|
t2 = (key) => {
|
|
1420
1488
|
clearTimeout(deleteTimeout.current);
|
|
1421
1489
|
setValueToDelete(key);
|
|
@@ -1423,74 +1491,74 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1423
1491
|
setValueToDelete(null);
|
|
1424
1492
|
}, 5e3);
|
|
1425
1493
|
};
|
|
1426
|
-
$[
|
|
1427
|
-
} else t2 = $[
|
|
1494
|
+
$[1] = t2;
|
|
1495
|
+
} else t2 = $[1];
|
|
1428
1496
|
const onDelete = t2;
|
|
1429
1497
|
let t3;
|
|
1430
|
-
if ($[
|
|
1498
|
+
if ($[2] !== id || $[3] !== required) {
|
|
1431
1499
|
t3 = () => {
|
|
1432
1500
|
if (required) return;
|
|
1433
1501
|
setActiveConfiguration(id);
|
|
1434
1502
|
};
|
|
1435
|
-
$[
|
|
1436
|
-
$[
|
|
1437
|
-
$[
|
|
1438
|
-
} else t3 = $[
|
|
1503
|
+
$[2] = id;
|
|
1504
|
+
$[3] = required;
|
|
1505
|
+
$[4] = t3;
|
|
1506
|
+
} else t3 = $[4];
|
|
1439
1507
|
const onMouseOver = t3;
|
|
1440
1508
|
let t4;
|
|
1441
|
-
if ($[
|
|
1509
|
+
if ($[5] !== required) {
|
|
1442
1510
|
t4 = () => {
|
|
1443
1511
|
if (required) return;
|
|
1444
1512
|
setActiveConfiguration(null);
|
|
1445
1513
|
};
|
|
1446
|
-
$[
|
|
1447
|
-
$[
|
|
1448
|
-
} else t4 = $[
|
|
1514
|
+
$[5] = required;
|
|
1515
|
+
$[6] = t4;
|
|
1516
|
+
} else t4 = $[6];
|
|
1449
1517
|
const onMouseLeave = t4;
|
|
1450
1518
|
const t5 = isActive && "bg-card";
|
|
1451
1519
|
let t6;
|
|
1452
|
-
if ($[
|
|
1520
|
+
if ($[7] !== t5) {
|
|
1453
1521
|
t6 = cn("grid grid-cols-[auto_1fr_auto] items-center py-2 px-4 bg-muted/30 rounded-lg gap-2", t5);
|
|
1454
|
-
$[
|
|
1455
|
-
$[
|
|
1456
|
-
} else t6 = $[
|
|
1522
|
+
$[7] = t5;
|
|
1523
|
+
$[8] = t6;
|
|
1524
|
+
} else t6 = $[8];
|
|
1457
1525
|
let t7;
|
|
1458
|
-
if ($[
|
|
1526
|
+
if ($[9] !== id || $[10] !== onUpdate) {
|
|
1459
1527
|
t7 = (checked) => onUpdate(id, "active", checked);
|
|
1460
|
-
$[
|
|
1461
|
-
$[
|
|
1462
|
-
$[
|
|
1463
|
-
} else t7 = $[
|
|
1528
|
+
$[9] = id;
|
|
1529
|
+
$[10] = onUpdate;
|
|
1530
|
+
$[11] = t7;
|
|
1531
|
+
} else t7 = $[11];
|
|
1464
1532
|
let t8;
|
|
1465
|
-
if ($[
|
|
1533
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1466
1534
|
t8 = /* @__PURE__ */ jsx(Check, { className: "h-3 w-3" });
|
|
1467
|
-
$[
|
|
1468
|
-
} else t8 = $[
|
|
1535
|
+
$[12] = t8;
|
|
1536
|
+
} else t8 = $[12];
|
|
1469
1537
|
let t9;
|
|
1470
|
-
if ($[
|
|
1538
|
+
if ($[13] !== required || $[14] !== t7 || $[15] !== value.active) {
|
|
1471
1539
|
t9 = /* @__PURE__ */ jsx(Checkbox, {
|
|
1472
1540
|
checked: value.active,
|
|
1473
1541
|
onCheckedChange: t7,
|
|
1474
1542
|
disabled: required,
|
|
1475
1543
|
children: t8
|
|
1476
1544
|
});
|
|
1477
|
-
$[
|
|
1478
|
-
$[
|
|
1479
|
-
$[
|
|
1480
|
-
$[
|
|
1481
|
-
} else t9 = $[
|
|
1545
|
+
$[13] = required;
|
|
1546
|
+
$[14] = t7;
|
|
1547
|
+
$[15] = value.active;
|
|
1548
|
+
$[16] = t9;
|
|
1549
|
+
} else t9 = $[16];
|
|
1482
1550
|
const t10 = !value.active;
|
|
1483
1551
|
const t11 = required ? "outlineReadonly" : "outline";
|
|
1484
1552
|
const t12 = `name-${id}`;
|
|
1485
1553
|
let t13;
|
|
1486
|
-
if ($[
|
|
1554
|
+
if ($[17] !== id || $[18] !== onUpdate) {
|
|
1487
1555
|
t13 = (e) => onUpdate(id, "name", e.target.value);
|
|
1488
|
-
$[
|
|
1489
|
-
$[
|
|
1490
|
-
$[
|
|
1491
|
-
} else t13 = $[
|
|
1556
|
+
$[17] = id;
|
|
1557
|
+
$[18] = onUpdate;
|
|
1558
|
+
$[19] = t13;
|
|
1559
|
+
} else t13 = $[19];
|
|
1492
1560
|
let t14;
|
|
1493
|
-
if ($[
|
|
1561
|
+
if ($[20] !== required || $[21] !== t10 || $[22] !== t11 || $[23] !== t12 || $[24] !== t13 || $[25] !== value.name) {
|
|
1494
1562
|
t14 = /* @__PURE__ */ jsx(Input, {
|
|
1495
1563
|
readOnly: required,
|
|
1496
1564
|
disabled: t10,
|
|
@@ -1501,25 +1569,25 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1501
1569
|
placeholder: "Name",
|
|
1502
1570
|
className: "h-8"
|
|
1503
1571
|
});
|
|
1504
|
-
$[
|
|
1505
|
-
$[
|
|
1506
|
-
$[
|
|
1507
|
-
$[
|
|
1508
|
-
$[
|
|
1509
|
-
$[
|
|
1510
|
-
$[
|
|
1511
|
-
} else t14 = $[
|
|
1572
|
+
$[20] = required;
|
|
1573
|
+
$[21] = t10;
|
|
1574
|
+
$[22] = t11;
|
|
1575
|
+
$[23] = t12;
|
|
1576
|
+
$[24] = t13;
|
|
1577
|
+
$[25] = value.name;
|
|
1578
|
+
$[26] = t14;
|
|
1579
|
+
} else t14 = $[26];
|
|
1512
1580
|
const t15 = !value.active;
|
|
1513
1581
|
const t16 = `value-${id}`;
|
|
1514
1582
|
let t17;
|
|
1515
|
-
if ($[
|
|
1583
|
+
if ($[27] !== id || $[28] !== onUpdate) {
|
|
1516
1584
|
t17 = (e_0) => onUpdate(id, "value", e_0.target.value);
|
|
1517
|
-
$[
|
|
1518
|
-
$[
|
|
1519
|
-
$[
|
|
1520
|
-
} else t17 = $[
|
|
1585
|
+
$[27] = id;
|
|
1586
|
+
$[28] = onUpdate;
|
|
1587
|
+
$[29] = t17;
|
|
1588
|
+
} else t17 = $[29];
|
|
1521
1589
|
let t18;
|
|
1522
|
-
if ($[
|
|
1590
|
+
if ($[30] !== t15 || $[31] !== t16 || $[32] !== t17 || $[33] !== value.value) {
|
|
1523
1591
|
t18 = /* @__PURE__ */ jsx(Input, {
|
|
1524
1592
|
disabled: t15,
|
|
1525
1593
|
variant: "outline",
|
|
@@ -1529,50 +1597,50 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1529
1597
|
placeholder: "Value",
|
|
1530
1598
|
className: "h-8"
|
|
1531
1599
|
});
|
|
1532
|
-
$[
|
|
1533
|
-
$[
|
|
1534
|
-
$[
|
|
1535
|
-
$[
|
|
1536
|
-
$[
|
|
1537
|
-
} else t18 = $[
|
|
1600
|
+
$[30] = t15;
|
|
1601
|
+
$[31] = t16;
|
|
1602
|
+
$[32] = t17;
|
|
1603
|
+
$[33] = value.value;
|
|
1604
|
+
$[34] = t18;
|
|
1605
|
+
} else t18 = $[34];
|
|
1538
1606
|
let t19;
|
|
1539
|
-
if ($[
|
|
1607
|
+
if ($[35] !== t14 || $[36] !== t18) {
|
|
1540
1608
|
t19 = /* @__PURE__ */ jsxs("div", {
|
|
1541
1609
|
className: "grid grid-cols-2 gap-2",
|
|
1542
1610
|
children: [t14, t18]
|
|
1543
1611
|
});
|
|
1544
|
-
$[
|
|
1545
|
-
$[
|
|
1546
|
-
$[
|
|
1547
|
-
} else t19 = $[
|
|
1612
|
+
$[35] = t14;
|
|
1613
|
+
$[36] = t18;
|
|
1614
|
+
$[37] = t19;
|
|
1615
|
+
} else t19 = $[37];
|
|
1548
1616
|
let t20;
|
|
1549
|
-
if ($[
|
|
1617
|
+
if ($[38] !== id || $[39] !== onRemove || $[40] !== valueToDelete) {
|
|
1550
1618
|
t20 = () => {
|
|
1551
1619
|
if (valueToDelete === id) onRemove?.(id);
|
|
1552
1620
|
else onDelete(id);
|
|
1553
1621
|
};
|
|
1554
|
-
$[
|
|
1555
|
-
$[
|
|
1556
|
-
$[
|
|
1557
|
-
$[
|
|
1558
|
-
} else t20 = $[
|
|
1622
|
+
$[38] = id;
|
|
1623
|
+
$[39] = onRemove;
|
|
1624
|
+
$[40] = valueToDelete;
|
|
1625
|
+
$[41] = t20;
|
|
1626
|
+
} else t20 = $[41];
|
|
1559
1627
|
const t21 = isActive && "opacity-100";
|
|
1560
1628
|
let t22;
|
|
1561
|
-
if ($[
|
|
1629
|
+
if ($[42] !== t21) {
|
|
1562
1630
|
t22 = cn("h-6 w-6 opacity-0 transition-opacity duration-200", t21);
|
|
1563
|
-
$[
|
|
1564
|
-
$[
|
|
1565
|
-
} else t22 = $[
|
|
1631
|
+
$[42] = t21;
|
|
1632
|
+
$[43] = t22;
|
|
1633
|
+
} else t22 = $[43];
|
|
1566
1634
|
const t23 = valueToDelete === id && isActive ? "Click again to remove" : "Remove";
|
|
1567
1635
|
let t24;
|
|
1568
|
-
if ($[
|
|
1636
|
+
if ($[44] !== id || $[45] !== valueToDelete) {
|
|
1569
1637
|
t24 = valueToDelete === id ? /* @__PURE__ */ jsx(AlertCircle, { className: "h-3 w-3 text-destructive" }) : /* @__PURE__ */ jsx(Trash2, { className: "h-3 w-3" });
|
|
1570
|
-
$[
|
|
1571
|
-
$[
|
|
1572
|
-
$[
|
|
1573
|
-
} else t24 = $[
|
|
1638
|
+
$[44] = id;
|
|
1639
|
+
$[45] = valueToDelete;
|
|
1640
|
+
$[46] = t24;
|
|
1641
|
+
} else t24 = $[46];
|
|
1574
1642
|
let t25;
|
|
1575
|
-
if ($[
|
|
1643
|
+
if ($[47] !== t20 || $[48] !== t22 || $[49] !== t23 || $[50] !== t24) {
|
|
1576
1644
|
t25 = /* @__PURE__ */ jsx(Button, {
|
|
1577
1645
|
variant: "ghost",
|
|
1578
1646
|
size: "icon",
|
|
@@ -1581,14 +1649,14 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1581
1649
|
title: t23,
|
|
1582
1650
|
children: t24
|
|
1583
1651
|
});
|
|
1584
|
-
$[
|
|
1585
|
-
$[
|
|
1586
|
-
$[
|
|
1587
|
-
$[
|
|
1588
|
-
$[
|
|
1589
|
-
} else t25 = $[
|
|
1652
|
+
$[47] = t20;
|
|
1653
|
+
$[48] = t22;
|
|
1654
|
+
$[49] = t23;
|
|
1655
|
+
$[50] = t24;
|
|
1656
|
+
$[51] = t25;
|
|
1657
|
+
} else t25 = $[51];
|
|
1590
1658
|
let t26;
|
|
1591
|
-
if ($[
|
|
1659
|
+
if ($[52] !== onMouseLeave || $[53] !== onMouseOver || $[54] !== t19 || $[55] !== t25 || $[56] !== t6 || $[57] !== t9) {
|
|
1592
1660
|
t26 = /* @__PURE__ */ jsxs("div", {
|
|
1593
1661
|
className: t6,
|
|
1594
1662
|
onMouseOver,
|
|
@@ -1599,14 +1667,14 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1599
1667
|
t25
|
|
1600
1668
|
]
|
|
1601
1669
|
});
|
|
1602
|
-
$[
|
|
1603
|
-
$[
|
|
1604
|
-
$[
|
|
1605
|
-
$[
|
|
1606
|
-
$[
|
|
1607
|
-
$[
|
|
1608
|
-
$[
|
|
1609
|
-
} else t26 = $[
|
|
1670
|
+
$[52] = onMouseLeave;
|
|
1671
|
+
$[53] = onMouseOver;
|
|
1672
|
+
$[54] = t19;
|
|
1673
|
+
$[55] = t25;
|
|
1674
|
+
$[56] = t6;
|
|
1675
|
+
$[57] = t9;
|
|
1676
|
+
$[58] = t26;
|
|
1677
|
+
} else t26 = $[58];
|
|
1610
1678
|
return t26;
|
|
1611
1679
|
});
|
|
1612
1680
|
|
|
@@ -1667,27 +1735,31 @@ const SidePanelHeadersTab = () => {
|
|
|
1667
1735
|
//#region src/hooks/use-path-url.ts
|
|
1668
1736
|
const queryParamsSelector = (state) => Object.values(getQueryParamsSelector(state)).filter((param) => param.active && param.value !== "" && param.name !== "");
|
|
1669
1737
|
const usePathUrl = (path) => {
|
|
1670
|
-
const $ = c(
|
|
1738
|
+
const $ = c(6);
|
|
1739
|
+
if ($[0] !== "7e3e8f17b13eb81e00060ed9f39b6042cd1d077a2d43f0c27437d6309314f3aa") {
|
|
1740
|
+
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1741
|
+
$[0] = "7e3e8f17b13eb81e00060ed9f39b6042cd1d077a2d43f0c27437d6309314f3aa";
|
|
1742
|
+
}
|
|
1671
1743
|
const pathParams = useEndpointConfiguration(useShallow(getPathParamsSelector));
|
|
1672
1744
|
const queryParams = useEndpointConfiguration(useShallow(queryParamsSelector));
|
|
1673
1745
|
let t0;
|
|
1674
|
-
if ($[
|
|
1746
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1675
1747
|
t0 = /:(\w+)/g;
|
|
1676
|
-
$[
|
|
1677
|
-
} else t0 = $[
|
|
1748
|
+
$[1] = t0;
|
|
1749
|
+
} else t0 = $[1];
|
|
1678
1750
|
let t1;
|
|
1679
|
-
if ($[
|
|
1751
|
+
if ($[2] !== pathParams) {
|
|
1680
1752
|
t1 = (match, p1) => pathParams[p1]?.value || match;
|
|
1681
|
-
$[
|
|
1682
|
-
$[
|
|
1683
|
-
} else t1 = $[
|
|
1753
|
+
$[2] = pathParams;
|
|
1754
|
+
$[3] = t1;
|
|
1755
|
+
} else t1 = $[3];
|
|
1684
1756
|
const url = path.replace(t0, t1);
|
|
1685
1757
|
let t2;
|
|
1686
|
-
if ($[
|
|
1758
|
+
if ($[4] !== queryParams) {
|
|
1687
1759
|
t2 = queryParams.length > 0 ? `?${queryParams.map(_temp$2).join("&")}` : "";
|
|
1688
|
-
$[
|
|
1689
|
-
$[
|
|
1690
|
-
} else t2 = $[
|
|
1760
|
+
$[4] = queryParams;
|
|
1761
|
+
$[5] = t2;
|
|
1762
|
+
} else t2 = $[5];
|
|
1691
1763
|
return url + t2;
|
|
1692
1764
|
};
|
|
1693
1765
|
function _temp$2(param) {
|
|
@@ -1697,12 +1769,16 @@ function _temp$2(param) {
|
|
|
1697
1769
|
//#endregion
|
|
1698
1770
|
//#region src/components/endpoint-path-preview.tsx
|
|
1699
1771
|
const EndpointPathPreview = (t0) => {
|
|
1700
|
-
const $ = c(
|
|
1772
|
+
const $ = c(17);
|
|
1773
|
+
if ($[0] !== "d28e3e9329232a2b4ad7f30814822a8f9a40f9e19a3e5c4e80f13d7dbd0fed07") {
|
|
1774
|
+
for (let $i = 0; $i < 17; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1775
|
+
$[0] = "d28e3e9329232a2b4ad7f30814822a8f9a40f9e19a3e5c4e80f13d7dbd0fed07";
|
|
1776
|
+
}
|
|
1701
1777
|
const { path, baseUrl: t1 } = t0;
|
|
1702
1778
|
const fullUrl = `${t1 === void 0 ? window.location.origin : t1}${usePathUrl(path)}`;
|
|
1703
1779
|
const [copied, setCopied] = useState(false);
|
|
1704
1780
|
let t2;
|
|
1705
|
-
if ($[
|
|
1781
|
+
if ($[1] !== fullUrl) {
|
|
1706
1782
|
t2 = async () => {
|
|
1707
1783
|
try {
|
|
1708
1784
|
await navigator.clipboard.writeText(fullUrl);
|
|
@@ -1713,20 +1789,20 @@ const EndpointPathPreview = (t0) => {
|
|
|
1713
1789
|
console.error("Failed to copy URL:", err);
|
|
1714
1790
|
}
|
|
1715
1791
|
};
|
|
1716
|
-
$[
|
|
1717
|
-
$[
|
|
1718
|
-
} else t2 = $[
|
|
1792
|
+
$[1] = fullUrl;
|
|
1793
|
+
$[2] = t2;
|
|
1794
|
+
} else t2 = $[2];
|
|
1719
1795
|
const handleCopy = t2;
|
|
1720
1796
|
let t3;
|
|
1721
|
-
if ($[
|
|
1797
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1722
1798
|
t3 = /* @__PURE__ */ jsx("div", {
|
|
1723
1799
|
className: "text-sm font-medium py-2",
|
|
1724
1800
|
children: "URL Preview"
|
|
1725
1801
|
});
|
|
1726
|
-
$[
|
|
1727
|
-
} else t3 = $[
|
|
1802
|
+
$[3] = t3;
|
|
1803
|
+
} else t3 = $[3];
|
|
1728
1804
|
let t4;
|
|
1729
|
-
if ($[
|
|
1805
|
+
if ($[4] !== fullUrl) {
|
|
1730
1806
|
t4 = /* @__PURE__ */ jsx("div", {
|
|
1731
1807
|
className: "min-w-0",
|
|
1732
1808
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -1735,24 +1811,24 @@ const EndpointPathPreview = (t0) => {
|
|
|
1735
1811
|
children: fullUrl
|
|
1736
1812
|
})
|
|
1737
1813
|
});
|
|
1738
|
-
$[
|
|
1739
|
-
$[
|
|
1740
|
-
} else t4 = $[
|
|
1814
|
+
$[4] = fullUrl;
|
|
1815
|
+
$[5] = t4;
|
|
1816
|
+
} else t4 = $[5];
|
|
1741
1817
|
const t5 = copied ? "text-green-400" : "text-muted-foreground";
|
|
1742
1818
|
let t6;
|
|
1743
|
-
if ($[
|
|
1819
|
+
if ($[6] !== t5) {
|
|
1744
1820
|
t6 = cn("w-3 h-3 grid place-items-center transition-colors cursor-pointer", t5);
|
|
1745
|
-
$[
|
|
1746
|
-
$[
|
|
1747
|
-
} else t6 = $[
|
|
1821
|
+
$[6] = t5;
|
|
1822
|
+
$[7] = t6;
|
|
1823
|
+
} else t6 = $[7];
|
|
1748
1824
|
let t7;
|
|
1749
|
-
if ($[
|
|
1825
|
+
if ($[8] !== copied) {
|
|
1750
1826
|
t7 = copied ? /* @__PURE__ */ jsx(Check, { className: "w-2.5 h-2.5" }) : /* @__PURE__ */ jsx(Copy, { className: "w-2.5 h-2.5" });
|
|
1751
|
-
$[
|
|
1752
|
-
$[
|
|
1753
|
-
} else t7 = $[
|
|
1827
|
+
$[8] = copied;
|
|
1828
|
+
$[9] = t7;
|
|
1829
|
+
} else t7 = $[9];
|
|
1754
1830
|
let t8;
|
|
1755
|
-
if ($[
|
|
1831
|
+
if ($[10] !== handleCopy || $[11] !== t6 || $[12] !== t7) {
|
|
1756
1832
|
t8 = /* @__PURE__ */ jsx(Button, {
|
|
1757
1833
|
onClick: handleCopy,
|
|
1758
1834
|
className: t6,
|
|
@@ -1761,13 +1837,13 @@ const EndpointPathPreview = (t0) => {
|
|
|
1761
1837
|
"aria-label": "Copy URL",
|
|
1762
1838
|
children: t7
|
|
1763
1839
|
});
|
|
1764
|
-
$[
|
|
1765
|
-
$[
|
|
1766
|
-
$[
|
|
1767
|
-
$[
|
|
1768
|
-
} else t8 = $[
|
|
1840
|
+
$[10] = handleCopy;
|
|
1841
|
+
$[11] = t6;
|
|
1842
|
+
$[12] = t7;
|
|
1843
|
+
$[13] = t8;
|
|
1844
|
+
} else t8 = $[13];
|
|
1769
1845
|
let t9;
|
|
1770
|
-
if ($[
|
|
1846
|
+
if ($[14] !== t4 || $[15] !== t8) {
|
|
1771
1847
|
t9 = /* @__PURE__ */ jsxs("div", {
|
|
1772
1848
|
className: "grid grid-cols-[auto_1fr] items-center gap-5 px-5 relative border-b border-border",
|
|
1773
1849
|
children: [t3, /* @__PURE__ */ jsxs("div", {
|
|
@@ -1775,10 +1851,10 @@ const EndpointPathPreview = (t0) => {
|
|
|
1775
1851
|
children: [t4, t8]
|
|
1776
1852
|
})]
|
|
1777
1853
|
});
|
|
1778
|
-
$[
|
|
1779
|
-
$[
|
|
1780
|
-
$[
|
|
1781
|
-
} else t9 = $[
|
|
1854
|
+
$[14] = t4;
|
|
1855
|
+
$[15] = t8;
|
|
1856
|
+
$[16] = t9;
|
|
1857
|
+
} else t9 = $[16];
|
|
1782
1858
|
return t9;
|
|
1783
1859
|
};
|
|
1784
1860
|
|
|
@@ -1887,59 +1963,63 @@ const SidePanelParamsTab = ({ path }) => {
|
|
|
1887
1963
|
//#endregion
|
|
1888
1964
|
//#region src/hooks/use-state-stream.ts
|
|
1889
1965
|
const useStateStream = (object) => {
|
|
1890
|
-
const $ = c(
|
|
1966
|
+
const $ = c(15);
|
|
1967
|
+
if ($[0] !== "285f0ed50e2dd4fc3015728ea5aa13d2c7f564b6cdec2adc1e1f9b84c6cc298a") {
|
|
1968
|
+
for (let $i = 0; $i < 15; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1969
|
+
$[0] = "285f0ed50e2dd4fc3015728ea5aa13d2c7f564b6cdec2adc1e1f9b84c6cc298a";
|
|
1970
|
+
}
|
|
1891
1971
|
let t0;
|
|
1892
|
-
if ($[
|
|
1972
|
+
if ($[1] !== object) {
|
|
1893
1973
|
t0 = typeof object === "string" ? {} : object || {};
|
|
1894
|
-
$[
|
|
1895
|
-
$[
|
|
1896
|
-
} else t0 = $[
|
|
1974
|
+
$[1] = object;
|
|
1975
|
+
$[2] = t0;
|
|
1976
|
+
} else t0 = $[2];
|
|
1897
1977
|
let __motia;
|
|
1898
1978
|
let rest;
|
|
1899
|
-
if ($[
|
|
1979
|
+
if ($[3] !== t0) {
|
|
1900
1980
|
({__motia, ...rest} = t0);
|
|
1901
|
-
$[
|
|
1902
|
-
$[
|
|
1903
|
-
$[
|
|
1981
|
+
$[3] = t0;
|
|
1982
|
+
$[4] = __motia;
|
|
1983
|
+
$[5] = rest;
|
|
1904
1984
|
} else {
|
|
1905
|
-
__motia = $[
|
|
1906
|
-
rest = $[
|
|
1985
|
+
__motia = $[4];
|
|
1986
|
+
rest = $[5];
|
|
1907
1987
|
}
|
|
1908
1988
|
const { data } = useStreamItem(__motia);
|
|
1909
1989
|
const originalData = Array.isArray(object) ? object : rest || object;
|
|
1910
1990
|
if (typeof object === "string") {
|
|
1911
1991
|
let t1$1;
|
|
1912
|
-
if ($[
|
|
1992
|
+
if ($[6] !== object) {
|
|
1913
1993
|
t1$1 = {
|
|
1914
1994
|
data: object,
|
|
1915
1995
|
originalData: object,
|
|
1916
1996
|
isStreamed: false
|
|
1917
1997
|
};
|
|
1918
|
-
$[
|
|
1919
|
-
$[
|
|
1920
|
-
} else t1$1 = $[
|
|
1998
|
+
$[6] = object;
|
|
1999
|
+
$[7] = t1$1;
|
|
2000
|
+
} else t1$1 = $[7];
|
|
1921
2001
|
return t1$1;
|
|
1922
2002
|
}
|
|
1923
2003
|
let t1;
|
|
1924
|
-
if ($[
|
|
2004
|
+
if ($[8] !== data || $[9] !== originalData) {
|
|
1925
2005
|
t1 = JSON.stringify(data || originalData, null, 2);
|
|
1926
|
-
$[
|
|
1927
|
-
$[
|
|
1928
|
-
$[
|
|
1929
|
-
} else t1 = $[
|
|
2006
|
+
$[8] = data;
|
|
2007
|
+
$[9] = originalData;
|
|
2008
|
+
$[10] = t1;
|
|
2009
|
+
} else t1 = $[10];
|
|
1930
2010
|
const t2 = !!__motia;
|
|
1931
2011
|
let t3;
|
|
1932
|
-
if ($[
|
|
2012
|
+
if ($[11] !== originalData || $[12] !== t1 || $[13] !== t2) {
|
|
1933
2013
|
t3 = {
|
|
1934
2014
|
data: t1,
|
|
1935
2015
|
originalData,
|
|
1936
2016
|
isStreamed: t2
|
|
1937
2017
|
};
|
|
1938
|
-
$[
|
|
1939
|
-
$[
|
|
1940
|
-
$[
|
|
1941
|
-
$[
|
|
1942
|
-
} else t3 = $[
|
|
2018
|
+
$[11] = originalData;
|
|
2019
|
+
$[12] = t1;
|
|
2020
|
+
$[13] = t2;
|
|
2021
|
+
$[14] = t3;
|
|
2022
|
+
} else t3 = $[14];
|
|
1943
2023
|
return t3;
|
|
1944
2024
|
};
|
|
1945
2025
|
|
|
@@ -2016,14 +2096,18 @@ const getStatusMessage = (statusCode) => {
|
|
|
2016
2096
|
//#endregion
|
|
2017
2097
|
//#region src/play/response-code.tsx
|
|
2018
2098
|
const ResponseCode = (t0) => {
|
|
2019
|
-
const $ = c(
|
|
2099
|
+
const $ = c(13);
|
|
2100
|
+
if ($[0] !== "0a8e4c92b858ecb81d25d971cc42d057e6dc5a30e6757fd87f3755a59a3871b2") {
|
|
2101
|
+
for (let $i = 0; $i < 13; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2102
|
+
$[0] = "0a8e4c92b858ecb81d25d971cc42d057e6dc5a30e6757fd87f3755a59a3871b2";
|
|
2103
|
+
}
|
|
2020
2104
|
const { statusCode } = t0;
|
|
2021
2105
|
let t1;
|
|
2022
|
-
if ($[
|
|
2106
|
+
if ($[1] !== statusCode) {
|
|
2023
2107
|
t1 = getStatusMessage(statusCode);
|
|
2024
|
-
$[
|
|
2025
|
-
$[
|
|
2026
|
-
} else t1 = $[
|
|
2108
|
+
$[1] = statusCode;
|
|
2109
|
+
$[2] = t1;
|
|
2110
|
+
} else t1 = $[2];
|
|
2027
2111
|
const statusMessage = t1;
|
|
2028
2112
|
const isSuccess = statusCode > 0 && statusCode < 400;
|
|
2029
2113
|
const isWarning = statusCode >= 400 && statusCode < 500;
|
|
@@ -2032,24 +2116,24 @@ const ResponseCode = (t0) => {
|
|
|
2032
2116
|
const t3 = isError && "dark:bg-[#F8367D]/20 dark:text-[#F8367D] bg-[#F8367D] text-white";
|
|
2033
2117
|
const t4 = isSuccess && "dark:bg-accent-200 dark:text-primary bg-accent text-white";
|
|
2034
2118
|
let t5;
|
|
2035
|
-
if ($[
|
|
2119
|
+
if ($[3] !== t2 || $[4] !== t3 || $[5] !== t4) {
|
|
2036
2120
|
t5 = cn("px-2 py-1 rounded-sm flex items-center gap-1", t2, t3, t4);
|
|
2037
|
-
$[
|
|
2038
|
-
$[
|
|
2039
|
-
$[
|
|
2040
|
-
$[
|
|
2041
|
-
} else t5 = $[
|
|
2121
|
+
$[3] = t2;
|
|
2122
|
+
$[4] = t3;
|
|
2123
|
+
$[5] = t4;
|
|
2124
|
+
$[6] = t5;
|
|
2125
|
+
} else t5 = $[6];
|
|
2042
2126
|
let t6;
|
|
2043
|
-
if ($[
|
|
2127
|
+
if ($[7] !== statusCode) {
|
|
2044
2128
|
t6 = /* @__PURE__ */ jsx("span", {
|
|
2045
2129
|
className: "font-bold font-mono",
|
|
2046
2130
|
children: statusCode
|
|
2047
2131
|
});
|
|
2048
|
-
$[
|
|
2049
|
-
$[
|
|
2050
|
-
} else t6 = $[
|
|
2132
|
+
$[7] = statusCode;
|
|
2133
|
+
$[8] = t6;
|
|
2134
|
+
} else t6 = $[8];
|
|
2051
2135
|
let t7;
|
|
2052
|
-
if ($[
|
|
2136
|
+
if ($[9] !== statusMessage || $[10] !== t5 || $[11] !== t6) {
|
|
2053
2137
|
t7 = /* @__PURE__ */ jsxs("div", {
|
|
2054
2138
|
className: t5,
|
|
2055
2139
|
children: [
|
|
@@ -2058,11 +2142,11 @@ const ResponseCode = (t0) => {
|
|
|
2058
2142
|
statusMessage
|
|
2059
2143
|
]
|
|
2060
2144
|
});
|
|
2061
|
-
$[
|
|
2062
|
-
$[
|
|
2063
|
-
$[
|
|
2064
|
-
$[
|
|
2065
|
-
} else t7 = $[
|
|
2145
|
+
$[9] = statusMessage;
|
|
2146
|
+
$[10] = t5;
|
|
2147
|
+
$[11] = t6;
|
|
2148
|
+
$[12] = t7;
|
|
2149
|
+
} else t7 = $[12];
|
|
2066
2150
|
return t7;
|
|
2067
2151
|
};
|
|
2068
2152
|
|
|
@@ -2083,24 +2167,28 @@ const useLanguage = (contentType) => {
|
|
|
2083
2167
|
return "text";
|
|
2084
2168
|
};
|
|
2085
2169
|
const ResponseContent = (t0) => {
|
|
2086
|
-
const $ = c(
|
|
2170
|
+
const $ = c(14);
|
|
2171
|
+
if ($[0] !== "51b73d23c1291874f81ba55f0a6e81eecd3ad0cede326e91ed482cd0ab995a8f") {
|
|
2172
|
+
for (let $i = 0; $i < 14; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2173
|
+
$[0] = "51b73d23c1291874f81ba55f0a6e81eecd3ad0cede326e91ed482cd0ab995a8f";
|
|
2174
|
+
}
|
|
2087
2175
|
const { code, blob, contentType } = t0;
|
|
2088
2176
|
const themeStyle = useThemeStore(_temp$1) === "dark" ? atomDark : oneLight;
|
|
2089
2177
|
const language = useLanguage(contentType);
|
|
2090
2178
|
let t1;
|
|
2091
|
-
if ($[
|
|
2179
|
+
if ($[1] !== blob) {
|
|
2092
2180
|
t1 = () => {
|
|
2093
2181
|
if (blob) {
|
|
2094
2182
|
const url = URL.createObjectURL(blob);
|
|
2095
2183
|
window.open(url, "_blank");
|
|
2096
2184
|
}
|
|
2097
2185
|
};
|
|
2098
|
-
$[
|
|
2099
|
-
$[
|
|
2100
|
-
} else t1 = $[
|
|
2186
|
+
$[1] = blob;
|
|
2187
|
+
$[2] = t1;
|
|
2188
|
+
} else t1 = $[2];
|
|
2101
2189
|
const onDownload = t1;
|
|
2102
2190
|
let t2;
|
|
2103
|
-
if ($[
|
|
2191
|
+
if ($[3] !== blob || $[4] !== onDownload) {
|
|
2104
2192
|
t2 = blob && /* @__PURE__ */ jsx("div", {
|
|
2105
2193
|
className: "flex p-8 justify-center",
|
|
2106
2194
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
@@ -2109,12 +2197,12 @@ const ResponseContent = (t0) => {
|
|
|
2109
2197
|
children: [/* @__PURE__ */ jsx(Download, { className: "h-4 w-4" }), " Download"]
|
|
2110
2198
|
})
|
|
2111
2199
|
});
|
|
2112
|
-
$[
|
|
2113
|
-
$[
|
|
2114
|
-
$[
|
|
2115
|
-
} else t2 = $[
|
|
2200
|
+
$[3] = blob;
|
|
2201
|
+
$[4] = onDownload;
|
|
2202
|
+
$[5] = t2;
|
|
2203
|
+
} else t2 = $[5];
|
|
2116
2204
|
let t3;
|
|
2117
|
-
if ($[
|
|
2205
|
+
if ($[6] !== blob || $[7] !== code || $[8] !== language || $[9] !== themeStyle) {
|
|
2118
2206
|
t3 = !blob && code && /* @__PURE__ */ jsx(Prism, {
|
|
2119
2207
|
showLineNumbers: true,
|
|
2120
2208
|
language,
|
|
@@ -2124,22 +2212,22 @@ const ResponseContent = (t0) => {
|
|
|
2124
2212
|
wrapLines: true,
|
|
2125
2213
|
children: code
|
|
2126
2214
|
});
|
|
2127
|
-
$[
|
|
2128
|
-
$[
|
|
2129
|
-
$[
|
|
2130
|
-
$[
|
|
2131
|
-
$[
|
|
2132
|
-
} else t3 = $[
|
|
2215
|
+
$[6] = blob;
|
|
2216
|
+
$[7] = code;
|
|
2217
|
+
$[8] = language;
|
|
2218
|
+
$[9] = themeStyle;
|
|
2219
|
+
$[10] = t3;
|
|
2220
|
+
} else t3 = $[10];
|
|
2133
2221
|
let t4;
|
|
2134
|
-
if ($[
|
|
2222
|
+
if ($[11] !== t2 || $[12] !== t3) {
|
|
2135
2223
|
t4 = /* @__PURE__ */ jsxs("div", {
|
|
2136
2224
|
className: "flex flex-col h-full overflow-y-auto",
|
|
2137
2225
|
children: [t2, t3]
|
|
2138
2226
|
});
|
|
2139
|
-
$[
|
|
2140
|
-
$[
|
|
2141
|
-
$[
|
|
2142
|
-
} else t4 = $[
|
|
2227
|
+
$[11] = t2;
|
|
2228
|
+
$[12] = t3;
|
|
2229
|
+
$[13] = t4;
|
|
2230
|
+
} else t4 = $[13];
|
|
2143
2231
|
return t4;
|
|
2144
2232
|
};
|
|
2145
2233
|
function _temp$1(state) {
|
|
@@ -2149,26 +2237,30 @@ function _temp$1(state) {
|
|
|
2149
2237
|
//#endregion
|
|
2150
2238
|
//#region src/play/side-panel-response.tsx
|
|
2151
2239
|
const SidePanelResponse = memo(() => {
|
|
2152
|
-
const $ = c(
|
|
2240
|
+
const $ = c(29);
|
|
2241
|
+
if ($[0] !== "c41d9d0c255bfb25883f458c9673498cbc698b0e44623ab8537e78707a43852c") {
|
|
2242
|
+
for (let $i = 0; $i < 29; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2243
|
+
$[0] = "c41d9d0c255bfb25883f458c9673498cbc698b0e44623ab8537e78707a43852c";
|
|
2244
|
+
}
|
|
2153
2245
|
const { setResponse } = useEndpointConfiguration();
|
|
2154
2246
|
const response = useEndpointConfiguration(getResponseSelector);
|
|
2155
2247
|
const { data } = useStateStream(response?.body instanceof Blob ? void 0 : response?.body);
|
|
2156
2248
|
const [activeTab, setActiveTab] = useState("preview");
|
|
2157
2249
|
let t0;
|
|
2158
|
-
if ($[
|
|
2250
|
+
if ($[1] !== setResponse) {
|
|
2159
2251
|
t0 = () => setResponse(void 0);
|
|
2160
|
-
$[
|
|
2161
|
-
$[
|
|
2162
|
-
} else t0 = $[
|
|
2252
|
+
$[1] = setResponse;
|
|
2253
|
+
$[2] = t0;
|
|
2254
|
+
} else t0 = $[2];
|
|
2163
2255
|
const onClose = t0;
|
|
2164
2256
|
if (!response) return null;
|
|
2165
2257
|
let t1;
|
|
2166
|
-
if ($[
|
|
2258
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2167
2259
|
t1 = (value) => setActiveTab(value);
|
|
2168
|
-
$[
|
|
2169
|
-
} else t1 = $[
|
|
2260
|
+
$[3] = t1;
|
|
2261
|
+
} else t1 = $[3];
|
|
2170
2262
|
let t2;
|
|
2171
|
-
if ($[
|
|
2263
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2172
2264
|
t2 = /* @__PURE__ */ jsxs(TabsList, { children: [/* @__PURE__ */ jsx(TabsTrigger, {
|
|
2173
2265
|
value: "preview",
|
|
2174
2266
|
className: "cursor-pointer",
|
|
@@ -2178,15 +2270,15 @@ const SidePanelResponse = memo(() => {
|
|
|
2178
2270
|
className: "grid grid-cols-[auto_auto] gap-2 items-center cursor-pointer",
|
|
2179
2271
|
children: "Headers"
|
|
2180
2272
|
})] });
|
|
2181
|
-
$[
|
|
2182
|
-
} else t2 = $[
|
|
2273
|
+
$[4] = t2;
|
|
2274
|
+
} else t2 = $[4];
|
|
2183
2275
|
let t3;
|
|
2184
|
-
if ($[
|
|
2276
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2185
2277
|
t3 = /* @__PURE__ */ jsx(X, { className: "h-4 w-4" });
|
|
2186
|
-
$[
|
|
2187
|
-
} else t3 = $[
|
|
2278
|
+
$[5] = t3;
|
|
2279
|
+
} else t3 = $[5];
|
|
2188
2280
|
let t4;
|
|
2189
|
-
if ($[
|
|
2281
|
+
if ($[6] !== onClose) {
|
|
2190
2282
|
t4 = /* @__PURE__ */ jsxs("div", {
|
|
2191
2283
|
className: "grid grid-cols-[1fr_auto] items-center h-10 border-b px-5 bg-card",
|
|
2192
2284
|
children: [t2, /* @__PURE__ */ jsx(Button, {
|
|
@@ -2196,26 +2288,26 @@ const SidePanelResponse = memo(() => {
|
|
|
2196
2288
|
children: t3
|
|
2197
2289
|
})]
|
|
2198
2290
|
});
|
|
2199
|
-
$[
|
|
2200
|
-
$[
|
|
2201
|
-
} else t4 = $[
|
|
2291
|
+
$[6] = onClose;
|
|
2292
|
+
$[7] = t4;
|
|
2293
|
+
} else t4 = $[7];
|
|
2202
2294
|
let t5;
|
|
2203
|
-
if ($[
|
|
2295
|
+
if ($[8] !== response.statusCode) {
|
|
2204
2296
|
t5 = /* @__PURE__ */ jsx(ResponseCode, { statusCode: response.statusCode });
|
|
2205
|
-
$[
|
|
2206
|
-
$[
|
|
2207
|
-
} else t5 = $[
|
|
2297
|
+
$[8] = response.statusCode;
|
|
2298
|
+
$[9] = t5;
|
|
2299
|
+
} else t5 = $[9];
|
|
2208
2300
|
let t6;
|
|
2209
|
-
if ($[
|
|
2301
|
+
if ($[10] !== response.executionTime) {
|
|
2210
2302
|
t6 = !!response.executionTime && /* @__PURE__ */ jsxs("div", {
|
|
2211
2303
|
className: "text-muted-foreground bg-muted-foreground/10 px-2 py-1 rounded-sm",
|
|
2212
2304
|
children: [response.executionTime, "ms"]
|
|
2213
2305
|
});
|
|
2214
|
-
$[
|
|
2215
|
-
$[
|
|
2216
|
-
} else t6 = $[
|
|
2306
|
+
$[10] = response.executionTime;
|
|
2307
|
+
$[11] = t6;
|
|
2308
|
+
} else t6 = $[11];
|
|
2217
2309
|
let t7;
|
|
2218
|
-
if ($[
|
|
2310
|
+
if ($[12] !== t5 || $[13] !== t6) {
|
|
2219
2311
|
t7 = /* @__PURE__ */ jsx("div", {
|
|
2220
2312
|
className: "sticky bottom-0 border-b border-border p-3 text-sm flex items-center gap-1 font-medium",
|
|
2221
2313
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -2223,14 +2315,14 @@ const SidePanelResponse = memo(() => {
|
|
|
2223
2315
|
children: [t5, t6]
|
|
2224
2316
|
})
|
|
2225
2317
|
});
|
|
2226
|
-
$[
|
|
2227
|
-
$[
|
|
2228
|
-
$[
|
|
2229
|
-
} else t7 = $[
|
|
2318
|
+
$[12] = t5;
|
|
2319
|
+
$[13] = t6;
|
|
2320
|
+
$[14] = t7;
|
|
2321
|
+
} else t7 = $[14];
|
|
2230
2322
|
const t8 = response?.body instanceof Blob ? response.body : void 0;
|
|
2231
2323
|
const t9 = response.headers["content-type"];
|
|
2232
2324
|
let t10;
|
|
2233
|
-
if ($[
|
|
2325
|
+
if ($[15] !== data || $[16] !== t8 || $[17] !== t9) {
|
|
2234
2326
|
t10 = /* @__PURE__ */ jsx(TabsContent, {
|
|
2235
2327
|
value: "preview",
|
|
2236
2328
|
children: /* @__PURE__ */ jsx(ResponseContent, {
|
|
@@ -2239,19 +2331,19 @@ const SidePanelResponse = memo(() => {
|
|
|
2239
2331
|
contentType: t9
|
|
2240
2332
|
})
|
|
2241
2333
|
});
|
|
2242
|
-
$[
|
|
2243
|
-
$[
|
|
2244
|
-
$[
|
|
2245
|
-
$[
|
|
2246
|
-
} else t10 = $[
|
|
2334
|
+
$[15] = data;
|
|
2335
|
+
$[16] = t8;
|
|
2336
|
+
$[17] = t9;
|
|
2337
|
+
$[18] = t10;
|
|
2338
|
+
} else t10 = $[18];
|
|
2247
2339
|
let t11;
|
|
2248
|
-
if ($[
|
|
2340
|
+
if ($[19] !== response.headers) {
|
|
2249
2341
|
t11 = response.headers && Object.entries(response.headers).map(_temp);
|
|
2250
|
-
$[
|
|
2251
|
-
$[
|
|
2252
|
-
} else t11 = $[
|
|
2342
|
+
$[19] = response.headers;
|
|
2343
|
+
$[20] = t11;
|
|
2344
|
+
} else t11 = $[20];
|
|
2253
2345
|
let t12;
|
|
2254
|
-
if ($[
|
|
2346
|
+
if ($[21] !== t11) {
|
|
2255
2347
|
t12 = /* @__PURE__ */ jsx(TabsContent, {
|
|
2256
2348
|
value: "headers",
|
|
2257
2349
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -2259,11 +2351,11 @@ const SidePanelResponse = memo(() => {
|
|
|
2259
2351
|
children: t11
|
|
2260
2352
|
})
|
|
2261
2353
|
});
|
|
2262
|
-
$[
|
|
2263
|
-
$[
|
|
2264
|
-
} else t12 = $[
|
|
2354
|
+
$[21] = t11;
|
|
2355
|
+
$[22] = t12;
|
|
2356
|
+
} else t12 = $[22];
|
|
2265
2357
|
let t13;
|
|
2266
|
-
if ($[
|
|
2358
|
+
if ($[23] !== activeTab || $[24] !== t10 || $[25] !== t12 || $[26] !== t4 || $[27] !== t7) {
|
|
2267
2359
|
t13 = /* @__PURE__ */ jsxs(Tabs, {
|
|
2268
2360
|
value: activeTab,
|
|
2269
2361
|
onValueChange: t1,
|
|
@@ -2276,13 +2368,13 @@ const SidePanelResponse = memo(() => {
|
|
|
2276
2368
|
t12
|
|
2277
2369
|
]
|
|
2278
2370
|
});
|
|
2279
|
-
$[
|
|
2280
|
-
$[
|
|
2281
|
-
$[
|
|
2282
|
-
$[
|
|
2283
|
-
$[
|
|
2284
|
-
$[
|
|
2285
|
-
} else t13 = $[
|
|
2371
|
+
$[23] = activeTab;
|
|
2372
|
+
$[24] = t10;
|
|
2373
|
+
$[25] = t12;
|
|
2374
|
+
$[26] = t4;
|
|
2375
|
+
$[27] = t7;
|
|
2376
|
+
$[28] = t13;
|
|
2377
|
+
} else t13 = $[28];
|
|
2286
2378
|
return t13;
|
|
2287
2379
|
});
|
|
2288
2380
|
function _temp(t0) {
|
|
@@ -2344,7 +2436,11 @@ const headersCountSelector = (state) => Object.keys(getHeadersSelector(state)).l
|
|
|
2344
2436
|
const hasResponseSelector = (state) => getResponseSelector(state) !== void 0;
|
|
2345
2437
|
const paramsCountSelector = (state) => Object.keys(getQueryParamsSelector(state)).length;
|
|
2346
2438
|
const SidePanel = memo((t0) => {
|
|
2347
|
-
const $ = c(
|
|
2439
|
+
const $ = c(62);
|
|
2440
|
+
if ($[0] !== "0020adea1162c54cf5aae85d8c5ed34a7262d6cfdf90ef6b8d89094328918944") {
|
|
2441
|
+
for (let $i = 0; $i < 62; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2442
|
+
$[0] = "0020adea1162c54cf5aae85d8c5ed34a7262d6cfdf90ef6b8d89094328918944";
|
|
2443
|
+
}
|
|
2348
2444
|
const { endpoint, onClose } = t0;
|
|
2349
2445
|
const [activeTab, setActiveTab] = useState(endpoint.method === "GET" || endpoint.method === "DELETE" ? "params" : "body");
|
|
2350
2446
|
const [isSpecOpen, setIsSpecOpen] = useState(false);
|
|
@@ -2353,52 +2449,52 @@ const SidePanel = memo((t0) => {
|
|
|
2353
2449
|
const pathParamsCount = usePathParams(endpoint.path).length;
|
|
2354
2450
|
const paramsCount = useEndpointConfiguration(useShallow(paramsCountSelector)) + pathParamsCount;
|
|
2355
2451
|
let t1;
|
|
2356
|
-
if ($[
|
|
2452
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2357
2453
|
t1 = /* @__PURE__ */ jsx(BackgroundEffect, {});
|
|
2358
|
-
$[
|
|
2359
|
-
} else t1 = $[
|
|
2454
|
+
$[1] = t1;
|
|
2455
|
+
} else t1 = $[1];
|
|
2360
2456
|
let t2;
|
|
2361
|
-
if ($[
|
|
2457
|
+
if ($[2] !== endpoint.method || $[3] !== endpoint.path) {
|
|
2362
2458
|
t2 = /* @__PURE__ */ jsx(EndpointPath, {
|
|
2363
2459
|
method: endpoint.method,
|
|
2364
2460
|
path: endpoint.path
|
|
2365
2461
|
});
|
|
2366
|
-
$[
|
|
2367
|
-
$[
|
|
2368
|
-
$[
|
|
2369
|
-
} else t2 = $[
|
|
2462
|
+
$[2] = endpoint.method;
|
|
2463
|
+
$[3] = endpoint.path;
|
|
2464
|
+
$[4] = t2;
|
|
2465
|
+
} else t2 = $[4];
|
|
2370
2466
|
let t3;
|
|
2371
|
-
if ($[
|
|
2467
|
+
if ($[5] !== endpoint.description) {
|
|
2372
2468
|
t3 = endpoint.description && /* @__PURE__ */ jsx("p", {
|
|
2373
2469
|
className: "text-sm text-muted-foreground",
|
|
2374
2470
|
children: endpoint.description
|
|
2375
2471
|
});
|
|
2376
|
-
$[
|
|
2377
|
-
$[
|
|
2378
|
-
} else t3 = $[
|
|
2472
|
+
$[5] = endpoint.description;
|
|
2473
|
+
$[6] = t3;
|
|
2474
|
+
} else t3 = $[6];
|
|
2379
2475
|
let t4;
|
|
2380
|
-
if ($[
|
|
2476
|
+
if ($[7] !== t2 || $[8] !== t3) {
|
|
2381
2477
|
t4 = /* @__PURE__ */ jsxs("div", {
|
|
2382
2478
|
className: "grid grid-rows-2 gap-2",
|
|
2383
2479
|
children: [t2, t3]
|
|
2384
2480
|
});
|
|
2385
|
-
$[
|
|
2386
|
-
$[
|
|
2387
|
-
$[
|
|
2388
|
-
} else t4 = $[
|
|
2481
|
+
$[7] = t2;
|
|
2482
|
+
$[8] = t3;
|
|
2483
|
+
$[9] = t4;
|
|
2484
|
+
} else t4 = $[9];
|
|
2389
2485
|
let t5;
|
|
2390
|
-
if ($[
|
|
2486
|
+
if ($[10] !== isSpecOpen) {
|
|
2391
2487
|
t5 = () => setIsSpecOpen(!isSpecOpen);
|
|
2392
|
-
$[
|
|
2393
|
-
$[
|
|
2394
|
-
} else t5 = $[
|
|
2488
|
+
$[10] = isSpecOpen;
|
|
2489
|
+
$[11] = t5;
|
|
2490
|
+
} else t5 = $[11];
|
|
2395
2491
|
let t6;
|
|
2396
|
-
if ($[
|
|
2492
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2397
2493
|
t6 = /* @__PURE__ */ jsx(Book, {});
|
|
2398
|
-
$[
|
|
2399
|
-
} else t6 = $[
|
|
2494
|
+
$[12] = t6;
|
|
2495
|
+
} else t6 = $[12];
|
|
2400
2496
|
let t7;
|
|
2401
|
-
if ($[
|
|
2497
|
+
if ($[13] !== t5) {
|
|
2402
2498
|
t7 = /* @__PURE__ */ jsx("div", {
|
|
2403
2499
|
className: "flex items-end justify-end",
|
|
2404
2500
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -2409,27 +2505,27 @@ const SidePanel = memo((t0) => {
|
|
|
2409
2505
|
children: t6
|
|
2410
2506
|
})
|
|
2411
2507
|
});
|
|
2412
|
-
$[
|
|
2413
|
-
$[
|
|
2414
|
-
} else t7 = $[
|
|
2508
|
+
$[13] = t5;
|
|
2509
|
+
$[14] = t7;
|
|
2510
|
+
} else t7 = $[14];
|
|
2415
2511
|
let t8;
|
|
2416
|
-
if ($[
|
|
2512
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2417
2513
|
t8 = /* @__PURE__ */ jsx(X, {});
|
|
2418
|
-
$[
|
|
2419
|
-
} else t8 = $[
|
|
2514
|
+
$[15] = t8;
|
|
2515
|
+
} else t8 = $[15];
|
|
2420
2516
|
let t9;
|
|
2421
|
-
if ($[
|
|
2517
|
+
if ($[16] !== onClose) {
|
|
2422
2518
|
t9 = /* @__PURE__ */ jsx(Button, {
|
|
2423
2519
|
variant: "icon",
|
|
2424
2520
|
size: "icon",
|
|
2425
2521
|
onClick: onClose,
|
|
2426
2522
|
children: t8
|
|
2427
2523
|
});
|
|
2428
|
-
$[
|
|
2429
|
-
$[
|
|
2430
|
-
} else t9 = $[
|
|
2524
|
+
$[16] = onClose;
|
|
2525
|
+
$[17] = t9;
|
|
2526
|
+
} else t9 = $[17];
|
|
2431
2527
|
let t10;
|
|
2432
|
-
if ($[
|
|
2528
|
+
if ($[18] !== t4 || $[19] !== t7 || $[20] !== t9) {
|
|
2433
2529
|
t10 = /* @__PURE__ */ jsxs("div", {
|
|
2434
2530
|
className: "grid grid-cols-[1fr_1fr_auto] items-start gap-4 px-5 py-4 border-b bg-card w-full",
|
|
2435
2531
|
children: [
|
|
@@ -2438,25 +2534,25 @@ const SidePanel = memo((t0) => {
|
|
|
2438
2534
|
t9
|
|
2439
2535
|
]
|
|
2440
2536
|
});
|
|
2441
|
-
$[
|
|
2442
|
-
$[
|
|
2443
|
-
$[
|
|
2444
|
-
$[
|
|
2445
|
-
} else t10 = $[
|
|
2537
|
+
$[18] = t4;
|
|
2538
|
+
$[19] = t7;
|
|
2539
|
+
$[20] = t9;
|
|
2540
|
+
$[21] = t10;
|
|
2541
|
+
} else t10 = $[21];
|
|
2446
2542
|
const t11 = !hasResponse && "grid-cols-1";
|
|
2447
2543
|
let t12;
|
|
2448
|
-
if ($[
|
|
2544
|
+
if ($[22] !== t11) {
|
|
2449
2545
|
t12 = cn("grid grid-cols-[minmax(380px,1fr)_minmax(auto,1fr)]", t11);
|
|
2450
|
-
$[
|
|
2451
|
-
$[
|
|
2452
|
-
} else t12 = $[
|
|
2546
|
+
$[22] = t11;
|
|
2547
|
+
$[23] = t12;
|
|
2548
|
+
} else t12 = $[23];
|
|
2453
2549
|
let t13;
|
|
2454
|
-
if ($[
|
|
2550
|
+
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2455
2551
|
t13 = (value) => setActiveTab(value);
|
|
2456
|
-
$[
|
|
2457
|
-
} else t13 = $[
|
|
2552
|
+
$[24] = t13;
|
|
2553
|
+
} else t13 = $[24];
|
|
2458
2554
|
let t14;
|
|
2459
|
-
if ($[
|
|
2555
|
+
if ($[25] !== paramsCount) {
|
|
2460
2556
|
t14 = /* @__PURE__ */ jsxs(TabsTrigger, {
|
|
2461
2557
|
value: "params",
|
|
2462
2558
|
className: "grid grid-cols-[auto_auto] gap-2 items-center cursor-pointer",
|
|
@@ -2467,21 +2563,21 @@ const SidePanel = memo((t0) => {
|
|
|
2467
2563
|
children: paramsCount
|
|
2468
2564
|
})]
|
|
2469
2565
|
});
|
|
2470
|
-
$[
|
|
2471
|
-
$[
|
|
2472
|
-
} else t14 = $[
|
|
2566
|
+
$[25] = paramsCount;
|
|
2567
|
+
$[26] = t14;
|
|
2568
|
+
} else t14 = $[26];
|
|
2473
2569
|
let t15;
|
|
2474
|
-
if ($[
|
|
2570
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2475
2571
|
t15 = /* @__PURE__ */ jsx(TabsTrigger, {
|
|
2476
2572
|
value: "body",
|
|
2477
2573
|
className: "cursor-pointer",
|
|
2478
2574
|
"data-testid": "endpoint-body-tab",
|
|
2479
2575
|
children: "Body"
|
|
2480
2576
|
});
|
|
2481
|
-
$[
|
|
2482
|
-
} else t15 = $[
|
|
2577
|
+
$[27] = t15;
|
|
2578
|
+
} else t15 = $[27];
|
|
2483
2579
|
let t16;
|
|
2484
|
-
if ($[
|
|
2580
|
+
if ($[28] !== headersCount) {
|
|
2485
2581
|
t16 = /* @__PURE__ */ jsxs(TabsTrigger, {
|
|
2486
2582
|
value: "headers",
|
|
2487
2583
|
className: "grid grid-cols-[auto_auto] gap-2 items-center cursor-pointer",
|
|
@@ -2492,75 +2588,75 @@ const SidePanel = memo((t0) => {
|
|
|
2492
2588
|
children: headersCount
|
|
2493
2589
|
})]
|
|
2494
2590
|
});
|
|
2495
|
-
$[
|
|
2496
|
-
$[
|
|
2497
|
-
} else t16 = $[
|
|
2591
|
+
$[28] = headersCount;
|
|
2592
|
+
$[29] = t16;
|
|
2593
|
+
} else t16 = $[29];
|
|
2498
2594
|
let t17;
|
|
2499
|
-
if ($[
|
|
2595
|
+
if ($[30] !== t14 || $[31] !== t16) {
|
|
2500
2596
|
t17 = /* @__PURE__ */ jsxs(TabsList, { children: [
|
|
2501
2597
|
t14,
|
|
2502
2598
|
t15,
|
|
2503
2599
|
t16
|
|
2504
2600
|
] });
|
|
2505
|
-
$[
|
|
2506
|
-
$[
|
|
2507
|
-
$[
|
|
2508
|
-
} else t17 = $[
|
|
2601
|
+
$[30] = t14;
|
|
2602
|
+
$[31] = t16;
|
|
2603
|
+
$[32] = t17;
|
|
2604
|
+
} else t17 = $[32];
|
|
2509
2605
|
const t18 = endpoint.method;
|
|
2510
2606
|
let t19;
|
|
2511
|
-
if ($[
|
|
2607
|
+
if ($[33] !== endpoint.path) {
|
|
2512
2608
|
t19 = endpoint.path.toString();
|
|
2513
|
-
$[
|
|
2514
|
-
$[
|
|
2515
|
-
} else t19 = $[
|
|
2609
|
+
$[33] = endpoint.path;
|
|
2610
|
+
$[34] = t19;
|
|
2611
|
+
} else t19 = $[34];
|
|
2516
2612
|
let t20;
|
|
2517
|
-
if ($[
|
|
2613
|
+
if ($[35] !== endpoint.method || $[36] !== t19) {
|
|
2518
2614
|
t20 = /* @__PURE__ */ jsx(TriggerButton, {
|
|
2519
2615
|
method: t18,
|
|
2520
2616
|
path: t19
|
|
2521
2617
|
});
|
|
2522
|
-
$[
|
|
2523
|
-
$[
|
|
2524
|
-
$[
|
|
2525
|
-
} else t20 = $[
|
|
2618
|
+
$[35] = endpoint.method;
|
|
2619
|
+
$[36] = t19;
|
|
2620
|
+
$[37] = t20;
|
|
2621
|
+
} else t20 = $[37];
|
|
2526
2622
|
let t21;
|
|
2527
|
-
if ($[
|
|
2623
|
+
if ($[38] !== t17 || $[39] !== t20) {
|
|
2528
2624
|
t21 = /* @__PURE__ */ jsxs("div", {
|
|
2529
2625
|
className: "grid grid-cols-[1fr_auto] items-center h-10 border-b px-5 bg-card",
|
|
2530
2626
|
children: [t17, t20]
|
|
2531
2627
|
});
|
|
2532
|
-
$[
|
|
2533
|
-
$[
|
|
2534
|
-
$[
|
|
2535
|
-
} else t21 = $[
|
|
2628
|
+
$[38] = t17;
|
|
2629
|
+
$[39] = t20;
|
|
2630
|
+
$[40] = t21;
|
|
2631
|
+
} else t21 = $[40];
|
|
2536
2632
|
let t22;
|
|
2537
|
-
if ($[
|
|
2633
|
+
if ($[41] !== endpoint.path) {
|
|
2538
2634
|
t22 = /* @__PURE__ */ jsx(TabsContent, {
|
|
2539
2635
|
value: "params",
|
|
2540
2636
|
children: /* @__PURE__ */ jsx(SidePanelParamsTab, { path: endpoint.path })
|
|
2541
2637
|
});
|
|
2542
|
-
$[
|
|
2543
|
-
$[
|
|
2544
|
-
} else t22 = $[
|
|
2638
|
+
$[41] = endpoint.path;
|
|
2639
|
+
$[42] = t22;
|
|
2640
|
+
} else t22 = $[42];
|
|
2545
2641
|
let t23;
|
|
2546
|
-
if ($[
|
|
2642
|
+
if ($[43] !== endpoint.bodySchema) {
|
|
2547
2643
|
t23 = /* @__PURE__ */ jsx(TabsContent, {
|
|
2548
2644
|
value: "body",
|
|
2549
2645
|
children: /* @__PURE__ */ jsx(SidePanelBodyTab, { schema: endpoint.bodySchema })
|
|
2550
2646
|
});
|
|
2551
|
-
$[
|
|
2552
|
-
$[
|
|
2553
|
-
} else t23 = $[
|
|
2647
|
+
$[43] = endpoint.bodySchema;
|
|
2648
|
+
$[44] = t23;
|
|
2649
|
+
} else t23 = $[44];
|
|
2554
2650
|
let t24;
|
|
2555
|
-
if ($[
|
|
2651
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2556
2652
|
t24 = /* @__PURE__ */ jsx(TabsContent, {
|
|
2557
2653
|
value: "headers",
|
|
2558
2654
|
children: /* @__PURE__ */ jsx(SidePanelHeadersTab, {})
|
|
2559
2655
|
});
|
|
2560
|
-
$[
|
|
2561
|
-
} else t24 = $[
|
|
2656
|
+
$[45] = t24;
|
|
2657
|
+
} else t24 = $[45];
|
|
2562
2658
|
let t25;
|
|
2563
|
-
if ($[
|
|
2659
|
+
if ($[46] !== activeTab || $[47] !== t21 || $[48] !== t22 || $[49] !== t23) {
|
|
2564
2660
|
t25 = /* @__PURE__ */ jsxs(Tabs, {
|
|
2565
2661
|
value: activeTab,
|
|
2566
2662
|
onValueChange: t13,
|
|
@@ -2571,39 +2667,39 @@ const SidePanel = memo((t0) => {
|
|
|
2571
2667
|
t24
|
|
2572
2668
|
]
|
|
2573
2669
|
});
|
|
2574
|
-
$[
|
|
2575
|
-
$[
|
|
2576
|
-
$[
|
|
2577
|
-
$[
|
|
2578
|
-
$[
|
|
2579
|
-
} else t25 = $[
|
|
2670
|
+
$[46] = activeTab;
|
|
2671
|
+
$[47] = t21;
|
|
2672
|
+
$[48] = t22;
|
|
2673
|
+
$[49] = t23;
|
|
2674
|
+
$[50] = t25;
|
|
2675
|
+
} else t25 = $[50];
|
|
2580
2676
|
let t26;
|
|
2581
|
-
if ($[
|
|
2677
|
+
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2582
2678
|
t26 = /* @__PURE__ */ jsx(SidePanelResponse, {});
|
|
2583
|
-
$[
|
|
2584
|
-
} else t26 = $[
|
|
2679
|
+
$[51] = t26;
|
|
2680
|
+
} else t26 = $[51];
|
|
2585
2681
|
let t27;
|
|
2586
|
-
if ($[
|
|
2682
|
+
if ($[52] !== t12 || $[53] !== t25) {
|
|
2587
2683
|
t27 = /* @__PURE__ */ jsxs("div", {
|
|
2588
2684
|
className: t12,
|
|
2589
2685
|
children: [t25, t26]
|
|
2590
2686
|
});
|
|
2591
|
-
$[
|
|
2592
|
-
$[
|
|
2593
|
-
$[
|
|
2594
|
-
} else t27 = $[
|
|
2687
|
+
$[52] = t12;
|
|
2688
|
+
$[53] = t25;
|
|
2689
|
+
$[54] = t27;
|
|
2690
|
+
} else t27 = $[54];
|
|
2595
2691
|
let t28;
|
|
2596
|
-
if ($[
|
|
2692
|
+
if ($[55] !== endpoint || $[56] !== isSpecOpen) {
|
|
2597
2693
|
t28 = isSpecOpen && /* @__PURE__ */ jsx(SpecSidePanel, {
|
|
2598
2694
|
endpoint,
|
|
2599
2695
|
onClose: () => setIsSpecOpen(false)
|
|
2600
2696
|
});
|
|
2601
|
-
$[
|
|
2602
|
-
$[
|
|
2603
|
-
$[
|
|
2604
|
-
} else t28 = $[
|
|
2697
|
+
$[55] = endpoint;
|
|
2698
|
+
$[56] = isSpecOpen;
|
|
2699
|
+
$[57] = t28;
|
|
2700
|
+
} else t28 = $[57];
|
|
2605
2701
|
let t29;
|
|
2606
|
-
if ($[
|
|
2702
|
+
if ($[58] !== t10 || $[59] !== t27 || $[60] !== t28) {
|
|
2607
2703
|
t29 = /* @__PURE__ */ jsxs("div", {
|
|
2608
2704
|
className: "isolate grid grid-cols-1 overflow-y-auto min-w-0 grid-rows-[auto_1fr] border-l border-border",
|
|
2609
2705
|
"data-testid": "endpoint-details-panel",
|
|
@@ -2614,79 +2710,83 @@ const SidePanel = memo((t0) => {
|
|
|
2614
2710
|
t28
|
|
2615
2711
|
]
|
|
2616
2712
|
});
|
|
2617
|
-
$[
|
|
2618
|
-
$[
|
|
2619
|
-
$[
|
|
2620
|
-
$[
|
|
2621
|
-
} else t29 = $[
|
|
2713
|
+
$[58] = t10;
|
|
2714
|
+
$[59] = t27;
|
|
2715
|
+
$[60] = t28;
|
|
2716
|
+
$[61] = t29;
|
|
2717
|
+
} else t29 = $[61];
|
|
2622
2718
|
return t29;
|
|
2623
2719
|
});
|
|
2624
2720
|
|
|
2625
2721
|
//#endregion
|
|
2626
2722
|
//#region src/endpoints-page.tsx
|
|
2627
2723
|
const EndpointsPage = () => {
|
|
2628
|
-
const $ = c(
|
|
2724
|
+
const $ = c(33);
|
|
2725
|
+
if ($[0] !== "198b8272767e037dafaba995069a2aa9f7c2ab3fe909e2acb55498bc6d00f981") {
|
|
2726
|
+
for (let $i = 0; $i < 33; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2727
|
+
$[0] = "198b8272767e037dafaba995069a2aa9f7c2ab3fe909e2acb55498bc6d00f981";
|
|
2728
|
+
}
|
|
2629
2729
|
const { endpoints, groupedEndpoints } = useGetEndpoints();
|
|
2630
2730
|
const { selectedEndpointId, setSelectedEndpointId, toggleFlowGroupStatus, flowGroupStatus } = useEndpointConfiguration();
|
|
2631
2731
|
let t0;
|
|
2632
|
-
if ($[
|
|
2732
|
+
if ($[1] !== endpoints || $[2] !== selectedEndpointId) {
|
|
2633
2733
|
let t1$1;
|
|
2634
|
-
if ($[
|
|
2734
|
+
if ($[4] !== selectedEndpointId) {
|
|
2635
2735
|
t1$1 = (endpoint) => endpoint.id === selectedEndpointId;
|
|
2636
|
-
$[
|
|
2637
|
-
$[
|
|
2638
|
-
} else t1$1 = $[
|
|
2736
|
+
$[4] = selectedEndpointId;
|
|
2737
|
+
$[5] = t1$1;
|
|
2738
|
+
} else t1$1 = $[5];
|
|
2639
2739
|
t0 = endpoints.find(t1$1);
|
|
2640
|
-
$[
|
|
2641
|
-
$[
|
|
2642
|
-
$[
|
|
2643
|
-
} else t0 = $[
|
|
2740
|
+
$[1] = endpoints;
|
|
2741
|
+
$[2] = selectedEndpointId;
|
|
2742
|
+
$[3] = t0;
|
|
2743
|
+
} else t0 = $[3];
|
|
2644
2744
|
const selectedEndpoint = t0;
|
|
2645
2745
|
let t1;
|
|
2646
|
-
if ($[
|
|
2746
|
+
if ($[6] !== setSelectedEndpointId) {
|
|
2647
2747
|
t1 = () => {
|
|
2648
2748
|
setSelectedEndpointId("");
|
|
2649
2749
|
};
|
|
2650
|
-
$[
|
|
2651
|
-
$[
|
|
2652
|
-
} else t1 = $[
|
|
2750
|
+
$[6] = setSelectedEndpointId;
|
|
2751
|
+
$[7] = t1;
|
|
2752
|
+
} else t1 = $[7];
|
|
2653
2753
|
const onClose = t1;
|
|
2654
2754
|
const [search, setSearch] = useState("");
|
|
2655
2755
|
let t2;
|
|
2656
|
-
if ($[
|
|
2756
|
+
if ($[8] !== groupedEndpoints || $[9] !== search) {
|
|
2657
2757
|
t2 = Object.entries(groupedEndpoints).filter((t3$1) => {
|
|
2658
2758
|
const [, endpoints_0] = t3$1;
|
|
2659
2759
|
return endpoints_0.some((endpoint_0) => endpoint_0.method?.toLowerCase().includes(search.toLowerCase()) || endpoint_0.path?.toLowerCase().includes(search.toLowerCase()));
|
|
2660
2760
|
});
|
|
2661
|
-
$[
|
|
2662
|
-
$[
|
|
2663
|
-
$[
|
|
2664
|
-
} else t2 = $[
|
|
2761
|
+
$[8] = groupedEndpoints;
|
|
2762
|
+
$[9] = search;
|
|
2763
|
+
$[10] = t2;
|
|
2764
|
+
} else t2 = $[10];
|
|
2665
2765
|
const filteredEndpoints = t2;
|
|
2666
2766
|
const t3 = selectedEndpoint ? "grid-cols-[300px_1fr] " : "grid-cols-1";
|
|
2667
2767
|
let t4;
|
|
2668
|
-
if ($[
|
|
2768
|
+
if ($[11] !== t3) {
|
|
2669
2769
|
t4 = cn("grid h-full max-h-full", t3);
|
|
2670
|
-
$[
|
|
2671
|
-
$[
|
|
2672
|
-
} else t4 = $[
|
|
2770
|
+
$[11] = t3;
|
|
2771
|
+
$[12] = t4;
|
|
2772
|
+
} else t4 = $[12];
|
|
2673
2773
|
let t5;
|
|
2674
|
-
if ($[
|
|
2774
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2675
2775
|
t5 = () => setSearch("");
|
|
2676
|
-
$[
|
|
2677
|
-
} else t5 = $[
|
|
2776
|
+
$[13] = t5;
|
|
2777
|
+
} else t5 = $[13];
|
|
2678
2778
|
let t6;
|
|
2679
|
-
if ($[
|
|
2779
|
+
if ($[14] !== search) {
|
|
2680
2780
|
t6 = /* @__PURE__ */ jsx(EndpointsSearch, {
|
|
2681
2781
|
value: search,
|
|
2682
2782
|
onChange: setSearch,
|
|
2683
2783
|
onClear: t5
|
|
2684
2784
|
});
|
|
2685
|
-
$[
|
|
2686
|
-
$[
|
|
2687
|
-
} else t6 = $[
|
|
2785
|
+
$[14] = search;
|
|
2786
|
+
$[15] = t6;
|
|
2787
|
+
} else t6 = $[15];
|
|
2688
2788
|
let t7;
|
|
2689
|
-
if ($[
|
|
2789
|
+
if ($[16] !== filteredEndpoints || $[17] !== flowGroupStatus || $[18] !== search || $[19] !== selectedEndpointId || $[20] !== setSelectedEndpointId || $[21] !== toggleFlowGroupStatus) {
|
|
2690
2790
|
t7 = /* @__PURE__ */ jsx("div", {
|
|
2691
2791
|
className: "grid grid-cols-1 auto-rows-max overflow-auto min-w-0",
|
|
2692
2792
|
children: filteredEndpoints.map((t8$1) => {
|
|
@@ -2704,46 +2804,46 @@ const EndpointsPage = () => {
|
|
|
2704
2804
|
}, flow);
|
|
2705
2805
|
})
|
|
2706
2806
|
});
|
|
2707
|
-
$[
|
|
2708
|
-
$[
|
|
2709
|
-
$[
|
|
2710
|
-
$[
|
|
2711
|
-
$[
|
|
2712
|
-
$[
|
|
2713
|
-
$[
|
|
2714
|
-
} else t7 = $[
|
|
2807
|
+
$[16] = filteredEndpoints;
|
|
2808
|
+
$[17] = flowGroupStatus;
|
|
2809
|
+
$[18] = search;
|
|
2810
|
+
$[19] = selectedEndpointId;
|
|
2811
|
+
$[20] = setSelectedEndpointId;
|
|
2812
|
+
$[21] = toggleFlowGroupStatus;
|
|
2813
|
+
$[22] = t7;
|
|
2814
|
+
} else t7 = $[22];
|
|
2715
2815
|
let t8;
|
|
2716
|
-
if ($[
|
|
2816
|
+
if ($[23] !== t6 || $[24] !== t7) {
|
|
2717
2817
|
t8 = /* @__PURE__ */ jsxs("div", {
|
|
2718
2818
|
className: "grid grid-rows-[auto_1fr] h-full overflow-auto min-w-0",
|
|
2719
2819
|
children: [t6, t7]
|
|
2720
2820
|
});
|
|
2721
|
-
$[
|
|
2722
|
-
$[
|
|
2723
|
-
$[
|
|
2724
|
-
} else t8 = $[
|
|
2821
|
+
$[23] = t6;
|
|
2822
|
+
$[24] = t7;
|
|
2823
|
+
$[25] = t8;
|
|
2824
|
+
} else t8 = $[25];
|
|
2725
2825
|
let t9;
|
|
2726
|
-
if ($[
|
|
2826
|
+
if ($[26] !== onClose || $[27] !== selectedEndpoint) {
|
|
2727
2827
|
t9 = selectedEndpoint && /* @__PURE__ */ jsx(SidePanel, {
|
|
2728
2828
|
endpoint: selectedEndpoint,
|
|
2729
2829
|
onClose
|
|
2730
2830
|
});
|
|
2731
|
-
$[
|
|
2732
|
-
$[
|
|
2733
|
-
$[
|
|
2734
|
-
} else t9 = $[
|
|
2831
|
+
$[26] = onClose;
|
|
2832
|
+
$[27] = selectedEndpoint;
|
|
2833
|
+
$[28] = t9;
|
|
2834
|
+
} else t9 = $[28];
|
|
2735
2835
|
let t10;
|
|
2736
|
-
if ($[
|
|
2836
|
+
if ($[29] !== t4 || $[30] !== t8 || $[31] !== t9) {
|
|
2737
2837
|
t10 = /* @__PURE__ */ jsxs("div", {
|
|
2738
2838
|
className: t4,
|
|
2739
2839
|
"data-testid": "endpoints-list",
|
|
2740
2840
|
children: [t8, t9]
|
|
2741
2841
|
});
|
|
2742
|
-
$[
|
|
2743
|
-
$[
|
|
2744
|
-
$[
|
|
2745
|
-
$[
|
|
2746
|
-
} else t10 = $[
|
|
2842
|
+
$[29] = t4;
|
|
2843
|
+
$[30] = t8;
|
|
2844
|
+
$[31] = t9;
|
|
2845
|
+
$[32] = t10;
|
|
2846
|
+
} else t10 = $[32];
|
|
2747
2847
|
return t10;
|
|
2748
2848
|
};
|
|
2749
2849
|
|