@djangocfg/ui-tools 2.1.102 → 2.1.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/{LottiePlayer.client-WFMG2OOW.cjs → LottiePlayer.client-6WVWDO75.cjs} +6 -6
  2. package/dist/{LottiePlayer.client-WFMG2OOW.cjs.map → LottiePlayer.client-6WVWDO75.cjs.map} +1 -1
  3. package/dist/{LottiePlayer.client-LBEC2JKY.mjs → LottiePlayer.client-B4I6WNZM.mjs} +4 -4
  4. package/dist/{LottiePlayer.client-LBEC2JKY.mjs.map → LottiePlayer.client-B4I6WNZM.mjs.map} +1 -1
  5. package/dist/{Mermaid.client-4TU2TSH3.mjs → Mermaid.client-4OCKJ6QD.mjs} +3 -3
  6. package/dist/{Mermaid.client-4TU2TSH3.mjs.map → Mermaid.client-4OCKJ6QD.mjs.map} +1 -1
  7. package/dist/{Mermaid.client-SBYY364Q.cjs → Mermaid.client-ZP6OE46Z.cjs} +23 -23
  8. package/dist/{Mermaid.client-SBYY364Q.cjs.map → Mermaid.client-ZP6OE46Z.cjs.map} +1 -1
  9. package/dist/{PlaygroundLayout-4DYBORAS.mjs → PlaygroundLayout-LMQTVXSP.mjs} +4 -4
  10. package/dist/{PlaygroundLayout-4DYBORAS.mjs.map → PlaygroundLayout-LMQTVXSP.mjs.map} +1 -1
  11. package/dist/{PlaygroundLayout-3YVSAEAF.cjs → PlaygroundLayout-XXVBU4WZ.cjs} +51 -51
  12. package/dist/{PlaygroundLayout-3YVSAEAF.cjs.map → PlaygroundLayout-XXVBU4WZ.cjs.map} +1 -1
  13. package/dist/{PrettyCode.client-PNPLXRH6.cjs → PrettyCode.client-2CLSV2VD.cjs} +5 -5
  14. package/dist/{PrettyCode.client-PNPLXRH6.cjs.map → PrettyCode.client-2CLSV2VD.cjs.map} +1 -1
  15. package/dist/{PrettyCode.client-LCBPPTIX.mjs → PrettyCode.client-Y2BVON7R.mjs} +3 -3
  16. package/dist/{PrettyCode.client-LCBPPTIX.mjs.map → PrettyCode.client-Y2BVON7R.mjs.map} +1 -1
  17. package/dist/{chunk-YFRNE2IR.mjs → chunk-6JTB2X72.mjs} +3 -3
  18. package/dist/{chunk-YFRNE2IR.mjs.map → chunk-6JTB2X72.mjs.map} +1 -1
  19. package/dist/{chunk-37ZI6VD4.mjs → chunk-CGILA3WO.mjs} +2 -2
  20. package/dist/{chunk-37ZI6VD4.mjs.map → chunk-CGILA3WO.mjs.map} +1 -1
  21. package/dist/{chunk-7DGDQVQW.cjs → chunk-FB5QBSI3.cjs} +46 -46
  22. package/dist/{chunk-7DGDQVQW.cjs.map → chunk-FB5QBSI3.cjs.map} +1 -1
  23. package/dist/{chunk-M6P2FU7L.mjs → chunk-L6UHASYQ.mjs} +4 -4
  24. package/dist/{chunk-M6P2FU7L.mjs.map → chunk-L6UHASYQ.mjs.map} +1 -1
  25. package/dist/{chunk-3HK2OE62.cjs → chunk-PRPG2T2E.cjs} +6 -6
  26. package/dist/{chunk-3HK2OE62.cjs.map → chunk-PRPG2T2E.cjs.map} +1 -1
  27. package/dist/{chunk-UQ3XI5MY.cjs → chunk-WGEGR3DF.cjs} +2 -2
  28. package/dist/{chunk-UQ3XI5MY.cjs.map → chunk-WGEGR3DF.cjs.map} +1 -1
  29. package/dist/index.cjs +227 -227
  30. package/dist/index.mjs +7 -7
  31. package/package.json +3 -3
  32. package/src/index.ts +2 -0
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk7DGDQVQW_cjs = require('./chunk-7DGDQVQW.cjs');
4
- var chunkUQ3XI5MY_cjs = require('./chunk-UQ3XI5MY.cjs');
3
+ var chunkFB5QBSI3_cjs = require('./chunk-FB5QBSI3.cjs');
4
+ var chunkWGEGR3DF_cjs = require('./chunk-WGEGR3DF.cjs');
5
5
  var lucideReact = require('lucide-react');
6
6
  var components = require('@djangocfg/ui-core/components');
7
7
  var hooks = require('@djangocfg/ui-core/hooks');
@@ -14,14 +14,14 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
14
14
  var React__default = /*#__PURE__*/_interopDefault(React);
15
15
  var consola__default = /*#__PURE__*/_interopDefault(consola);
16
16
 
17
- var useMobile = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
17
+ var useMobile = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
18
18
  const isMobile = hooks.useIsMobile();
19
19
  return {
20
20
  isMobile,
21
21
  isDesktop: !isMobile
22
22
  };
23
23
  }, "useMobile");
24
- var extractEndpoints = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name((schema) => {
24
+ var extractEndpoints = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((schema) => {
25
25
  const endpointMap = /* @__PURE__ */ new Map();
26
26
  if (!schema.paths) return [];
27
27
  const baseUrl = schema.servers && schema.servers.length > 0 ? schema.servers[0].url : "";
@@ -67,12 +67,12 @@ var extractEndpoints = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name((schema) => {
67
67
  }
68
68
  return Array.from(endpointMap.values());
69
69
  }, "extractEndpoints");
70
- var getCategories = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name((endpoints) => {
70
+ var getCategories = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((endpoints) => {
71
71
  const categories = /* @__PURE__ */ new Set();
72
72
  endpoints.forEach((endpoint) => categories.add(endpoint.category));
73
73
  return Array.from(categories).sort();
74
74
  }, "getCategories");
75
- var fetchSchema = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(async (url) => {
75
+ var fetchSchema = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(async (url) => {
76
76
  const response = await fetch(url, {
77
77
  headers: {
78
78
  "Accept": "application/json"
@@ -159,16 +159,16 @@ function useOpenApiSchema({
159
159
  refresh
160
160
  };
161
161
  }
162
- chunkUQ3XI5MY_cjs.__name(useOpenApiSchema, "useOpenApiSchema");
163
- var VersionSelector = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
164
- const { state, config, setSelectedVersion } = chunk7DGDQVQW_cjs.usePlaygroundContext();
162
+ chunkWGEGR3DF_cjs.__name(useOpenApiSchema, "useOpenApiSchema");
163
+ var VersionSelector = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
164
+ const { state, config, setSelectedVersion } = chunkFB5QBSI3_cjs.usePlaygroundContext();
165
165
  const { endpoints } = useOpenApiSchema({
166
166
  schemas: config.schemas,
167
167
  defaultSchemaId: config.defaultSchemaId
168
168
  });
169
- const currentVersion = chunk7DGDQVQW_cjs.getVersionById(state.selectedVersion);
170
- const versionStats = chunk7DGDQVQW_cjs.getVersionStats(endpoints);
171
- const handleVersionChange = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name((versionId) => {
169
+ const currentVersion = chunkFB5QBSI3_cjs.getVersionById(state.selectedVersion);
170
+ const versionStats = chunkFB5QBSI3_cjs.getVersionStats(endpoints);
171
+ const handleVersionChange = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((versionId) => {
172
172
  setSelectedVersion(versionId);
173
173
  }, "handleVersionChange");
174
174
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-3", children: [
@@ -178,7 +178,7 @@ var VersionSelector = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
178
178
  ] }),
179
179
  /* @__PURE__ */ jsxRuntime.jsxs(components.Select, { value: state.selectedVersion, onValueChange: handleVersionChange, children: [
180
180
  /* @__PURE__ */ jsxRuntime.jsx(components.SelectTrigger, { className: "w-48", children: /* @__PURE__ */ jsxRuntime.jsx(components.SelectValue, {}) }),
181
- /* @__PURE__ */ jsxRuntime.jsx(components.SelectContent, { children: chunk7DGDQVQW_cjs.API_VERSIONS.map((version) => /* @__PURE__ */ jsxRuntime.jsx(components.SelectItem, { value: version.id, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between w-full", children: [
181
+ /* @__PURE__ */ jsxRuntime.jsx(components.SelectContent, { children: chunkFB5QBSI3_cjs.API_VERSIONS.map((version) => /* @__PURE__ */ jsxRuntime.jsx(components.SelectItem, { value: version.id, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between w-full", children: [
182
182
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
183
183
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: version.name }),
184
184
  version.isDefault && /* @__PURE__ */ jsxRuntime.jsx(components.Badge, { variant: "secondary", className: "text-xs", children: "Default" })
@@ -204,14 +204,14 @@ var categoryIcons = {
204
204
  "Settings": /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "h-4 w-4" }),
205
205
  "Other": /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Code, { className: "h-4 w-4" })
206
206
  };
207
- var EndpointsLibrary = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
208
- const { state, config, setSelectedEndpoint, setSelectedCategory, setSearchTerm } = chunk7DGDQVQW_cjs.usePlaygroundContext();
207
+ var EndpointsLibrary = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
208
+ const { state, config, setSelectedEndpoint, setSelectedCategory, setSearchTerm } = chunkFB5QBSI3_cjs.usePlaygroundContext();
209
209
  const { endpoints, categories, loading, error } = useOpenApiSchema({
210
210
  schemas: config.schemas,
211
211
  defaultSchemaId: config.defaultSchemaId
212
212
  });
213
213
  const [viewMode, setViewMode] = React__default.default.useState("table");
214
- const getRelativePath = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name((fullPath) => {
214
+ const getRelativePath = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((fullPath) => {
215
215
  try {
216
216
  const url = new URL(fullPath);
217
217
  return url.pathname;
@@ -220,7 +220,7 @@ var EndpointsLibrary = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
220
220
  }
221
221
  }, "getRelativePath");
222
222
  const filteredEndpoints = React.useMemo(() => {
223
- let filtered = chunk7DGDQVQW_cjs.deduplicateEndpoints(endpoints, state.selectedVersion);
223
+ let filtered = chunkFB5QBSI3_cjs.deduplicateEndpoints(endpoints, state.selectedVersion);
224
224
  if (state.selectedCategory && state.selectedCategory !== "All") {
225
225
  filtered = filtered.filter((endpoint) => endpoint.category === state.selectedCategory);
226
226
  }
@@ -232,11 +232,11 @@ var EndpointsLibrary = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
232
232
  }
233
233
  return filtered;
234
234
  }, [endpoints, state.selectedCategory, state.searchTerm, state.selectedVersion]);
235
- const handleEndpointSelect = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name((endpoint) => {
235
+ const handleEndpointSelect = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((endpoint) => {
236
236
  setSelectedEndpoint(endpoint);
237
237
  }, "handleEndpointSelect");
238
- const getMethodBadges = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name((methods) => {
239
- return methods.split(", ").map((method) => /* @__PURE__ */ jsxRuntime.jsx(components.Badge, { variant: chunk7DGDQVQW_cjs.getMethodColor(method) === "success" ? "default" : "secondary", className: "text-xs", children: method }, method));
238
+ const getMethodBadges = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((methods) => {
239
+ return methods.split(", ").map((method) => /* @__PURE__ */ jsxRuntime.jsx(components.Badge, { variant: chunkFB5QBSI3_cjs.getMethodColor(method) === "success" ? "default" : "secondary", className: "text-xs", children: method }, method));
240
240
  }, "getMethodBadges");
241
241
  if (loading) {
242
242
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
@@ -371,8 +371,8 @@ var stepConfig = {
371
371
  description: "View response"
372
372
  }
373
373
  };
374
- var PlaygroundStepper = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
375
- const { state, setCurrentStep, goToNextStep, goToPreviousStep } = chunk7DGDQVQW_cjs.usePlaygroundContext();
374
+ var PlaygroundStepper = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
375
+ const { state, setCurrentStep, goToNextStep, goToPreviousStep } = chunkFB5QBSI3_cjs.usePlaygroundContext();
376
376
  const { currentStep, steps } = state;
377
377
  const currentIndex = steps.indexOf(currentStep);
378
378
  const canGoNext = currentIndex < steps.length - 1;
@@ -434,8 +434,8 @@ var PlaygroundStepper = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
434
434
  ] })
435
435
  ] });
436
436
  }, "PlaygroundStepper");
437
- var EndpointInfo = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
438
- const { state } = chunk7DGDQVQW_cjs.usePlaygroundContext();
437
+ var EndpointInfo = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
438
+ const { state } = chunkFB5QBSI3_cjs.usePlaygroundContext();
439
439
  const { selectedEndpoint } = state;
440
440
  const endpointJson = React.useMemo(() => {
441
441
  if (!selectedEndpoint) return "";
@@ -452,8 +452,8 @@ var EndpointInfo = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
452
452
  if (!selectedEndpoint) {
453
453
  return null;
454
454
  }
455
- const getMethodBadges = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name((methods) => {
456
- return methods.split(", ").map((method) => /* @__PURE__ */ jsxRuntime.jsx(components.Badge, { variant: chunk7DGDQVQW_cjs.getMethodColor(method) === "success" ? "default" : "secondary", className: "text-xs", children: method }, method));
455
+ const getMethodBadges = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((methods) => {
456
+ return methods.split(", ").map((method) => /* @__PURE__ */ jsxRuntime.jsx(components.Badge, { variant: chunkFB5QBSI3_cjs.getMethodColor(method) === "success" ? "default" : "secondary", className: "text-xs", children: method }, method));
457
457
  }, "getMethodBadges");
458
458
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
459
459
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
@@ -521,7 +521,7 @@ var EndpointInfo = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
521
521
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4" })
522
522
  ] }),
523
523
  /* @__PURE__ */ jsxRuntime.jsx(components.CollapsibleContent, { className: "mt-2 space-y-2", children: selectedEndpoint.responses.map((response, index) => {
524
- const statusColor = chunk7DGDQVQW_cjs.getStatusColor(parseInt(response.code));
524
+ const statusColor = chunkFB5QBSI3_cjs.getStatusColor(parseInt(response.code));
525
525
  const badgeVariant = statusColor === "success" ? "default" : statusColor === "error" ? "destructive" : "secondary";
526
526
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2 text-xs", children: [
527
527
  /* @__PURE__ */ jsxRuntime.jsx(components.Badge, { variant: badgeVariant, className: "text-xs", children: response.code }),
@@ -533,8 +533,8 @@ var EndpointInfo = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
533
533
  ] })
534
534
  ] });
535
535
  }, "EndpointInfo");
536
- var RequestParametersForm = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
537
- const { state, setParameters } = chunk7DGDQVQW_cjs.usePlaygroundContext();
536
+ var RequestParametersForm = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
537
+ const { state, setParameters } = chunkFB5QBSI3_cjs.usePlaygroundContext();
538
538
  const [formData, setFormData] = React.useState({});
539
539
  const [activeTab, setActiveTab] = React.useState("required");
540
540
  React.useEffect(() => {
@@ -546,7 +546,7 @@ var RequestParametersForm = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
546
546
  setFormData(initialData);
547
547
  }
548
548
  }, [state.selectedEndpoint?.path, state.selectedEndpoint?.parameters]);
549
- const handleInputChange = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name((name, value) => {
549
+ const handleInputChange = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name((name, value) => {
550
550
  const newFormData = {
551
551
  ...formData,
552
552
  [name]: value
@@ -554,11 +554,11 @@ var RequestParametersForm = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
554
554
  setFormData(newFormData);
555
555
  setParameters(newFormData);
556
556
  }, "handleInputChange");
557
- const handleClearForm = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
557
+ const handleClearForm = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
558
558
  setFormData({});
559
559
  setParameters({});
560
560
  }, "handleClearForm");
561
- const handleGenerateJson = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
561
+ const handleGenerateJson = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
562
562
  const hasData = Object.values(formData).some((value) => value !== "" && value !== null && value !== void 0);
563
563
  if (hasData) {
564
564
  const jsonString = JSON.stringify(formData, null, 2);
@@ -573,7 +573,7 @@ var RequestParametersForm = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
573
573
  return null;
574
574
  }
575
575
  const hasFormData = Object.values(formData).some((value) => value !== "" && value !== null && value !== void 0);
576
- const ParameterField = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(({ param }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
576
+ const ParameterField = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(({ param }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
577
577
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-1", children: [
578
578
  /* @__PURE__ */ jsxRuntime.jsxs(components.Label, { htmlFor: param.name, className: "text-xs font-medium text-foreground", children: [
579
579
  param.name,
@@ -595,7 +595,7 @@ var RequestParametersForm = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
595
595
  }
596
596
  )
597
597
  ] }), "ParameterField");
598
- const ParametersGrid = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(({ params, title, badgeVariant }) => {
598
+ const ParametersGrid = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(({ params, title, badgeVariant }) => {
599
599
  if (params.length === 0) return null;
600
600
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
601
601
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
@@ -708,19 +708,19 @@ var RequestParametersForm = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
708
708
  ] })
709
709
  ] }) });
710
710
  }, "RequestParametersForm");
711
- var RequestBuilder = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
711
+ var RequestBuilder = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
712
712
  const {
713
713
  state,
714
714
  apiKeys,
715
715
  setRequestBody,
716
716
  setManualApiToken,
717
717
  sendRequest
718
- } = chunk7DGDQVQW_cjs.usePlaygroundContext();
719
- const isJsonValid = state.requestBody ? chunk7DGDQVQW_cjs.isValidJson(state.requestBody) : true;
720
- const generateCurlCommand = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
718
+ } = chunkFB5QBSI3_cjs.usePlaygroundContext();
719
+ const isJsonValid = state.requestBody ? chunkFB5QBSI3_cjs.isValidJson(state.requestBody) : true;
720
+ const generateCurlCommand = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
721
721
  if (!state.requestUrl) return "";
722
- const apiKey = state.selectedApiKey ? chunk7DGDQVQW_cjs.findApiKeyById(apiKeys, state.selectedApiKey) : null;
723
- const headers = chunk7DGDQVQW_cjs.parseRequestHeaders(state.requestHeaders);
722
+ const apiKey = state.selectedApiKey ? chunkFB5QBSI3_cjs.findApiKeyById(apiKeys, state.selectedApiKey) : null;
723
+ const headers = chunkFB5QBSI3_cjs.parseRequestHeaders(state.requestHeaders);
724
724
  if (apiKey) {
725
725
  headers["X-API-Key"] = apiKey.id || "";
726
726
  }
@@ -807,12 +807,12 @@ var RequestBuilder = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
807
807
  }
808
808
  )
809
809
  ] }) }),
810
- /* @__PURE__ */ jsxRuntime.jsx(components.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk7DGDQVQW_cjs.PrettyCode_default, { data: curlCommand, language: "bash" }) })
810
+ /* @__PURE__ */ jsxRuntime.jsx(components.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkFB5QBSI3_cjs.PrettyCode_default, { data: curlCommand, language: "bash" }) })
811
811
  ] })
812
812
  ] });
813
813
  }, "RequestBuilder");
814
- var ResponseViewer = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
815
- const { state } = chunk7DGDQVQW_cjs.usePlaygroundContext();
814
+ var ResponseViewer = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
815
+ const { state } = chunkFB5QBSI3_cjs.usePlaygroundContext();
816
816
  const { response } = state;
817
817
  const responseText = React.useMemo(() => {
818
818
  if (!response?.data) return "";
@@ -857,7 +857,7 @@ var ResponseViewer = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
857
857
  /* @__PURE__ */ jsxRuntime.jsx(
858
858
  components.Badge,
859
859
  {
860
- variant: chunk7DGDQVQW_cjs.getStatusColor(response.status || 0) === "success" ? "default" : chunk7DGDQVQW_cjs.getStatusColor(response.status || 0) === "error" ? "destructive" : "secondary",
860
+ variant: chunkFB5QBSI3_cjs.getStatusColor(response.status || 0) === "success" ? "default" : chunkFB5QBSI3_cjs.getStatusColor(response.status || 0) === "error" ? "destructive" : "secondary",
861
861
  className: "text-xs",
862
862
  children: response.status
863
863
  }
@@ -896,7 +896,7 @@ var ResponseViewer = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
896
896
  }
897
897
  if (response.data) {
898
898
  return /* @__PURE__ */ jsxRuntime.jsx(
899
- chunk7DGDQVQW_cjs.JsonTree_default,
899
+ chunkFB5QBSI3_cjs.JsonTree_default,
900
900
  {
901
901
  title: "Response Body",
902
902
  data: response.data,
@@ -921,10 +921,10 @@ var ResponseViewer = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
921
921
  })() }) })
922
922
  ] });
923
923
  }, "ResponseViewer");
924
- var PlaygroundLayout = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
925
- const { state, setSidebarOpen } = chunk7DGDQVQW_cjs.usePlaygroundContext();
924
+ var PlaygroundLayout = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
925
+ const { state, setSidebarOpen } = chunkFB5QBSI3_cjs.usePlaygroundContext();
926
926
  const { isMobile } = useMobile();
927
- const renderStepContent = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
927
+ const renderStepContent = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
928
928
  switch (state.currentStep) {
929
929
  case "endpoints":
930
930
  return /* @__PURE__ */ jsxRuntime.jsx(EndpointsLibrary, {});
@@ -936,7 +936,7 @@ var PlaygroundLayout = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
936
936
  return /* @__PURE__ */ jsxRuntime.jsx(EndpointsLibrary, {});
937
937
  }
938
938
  }, "renderStepContent");
939
- const getStepTitle = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
939
+ const getStepTitle = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
940
940
  switch (state.currentStep) {
941
941
  case "endpoints":
942
942
  return "API Endpoints";
@@ -999,5 +999,5 @@ var PlaygroundLayout = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(() => {
999
999
  }, "PlaygroundLayout");
1000
1000
 
1001
1001
  exports.PlaygroundLayout = PlaygroundLayout;
1002
- //# sourceMappingURL=PlaygroundLayout-3YVSAEAF.cjs.map
1003
- //# sourceMappingURL=PlaygroundLayout-3YVSAEAF.cjs.map
1002
+ //# sourceMappingURL=PlaygroundLayout-XXVBU4WZ.cjs.map
1003
+ //# sourceMappingURL=PlaygroundLayout-XXVBU4WZ.cjs.map