@websublime/vite-plugin-open-api-devtools 0.9.0-next.0 → 0.9.0-next.1

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 (76) hide show
  1. package/dist/ModelsPage-OOYQ3USo.js +798 -0
  2. package/dist/ModelsPage-OOYQ3USo.js.map +1 -0
  3. package/dist/{RoutesPage-DmXBJ4J5.js → RoutesPage-BgsspZkr.js} +191 -191
  4. package/dist/RoutesPage-BgsspZkr.js.map +1 -0
  5. package/dist/SimulatorPage-g9fGUP4F.js +436 -0
  6. package/dist/SimulatorPage-g9fGUP4F.js.map +1 -0
  7. package/dist/TimelinePage-D_GD3OjL.js +861 -0
  8. package/dist/TimelinePage-D_GD3OjL.js.map +1 -0
  9. package/dist/{check-BdvaZxRt.js → check-B4mNtdMg.js} +2 -2
  10. package/dist/{check-BdvaZxRt.js.map → check-B4mNtdMg.js.map} +1 -1
  11. package/dist/devtools.css +1 -1
  12. package/dist/devtools.js +1 -1
  13. package/dist/devtools.umd.cjs +3 -3
  14. package/dist/devtools.umd.cjs.map +1 -1
  15. package/dist/{format-Cj8p3HJO.js → format-Dj37a-xS.js} +2 -2
  16. package/dist/{format-Cj8p3HJO.js.map → format-Dj37a-xS.js.map} +1 -1
  17. package/dist/{main-HjHdsAps.js → main-CWgkFc8w.js} +8 -7
  18. package/dist/{main-HjHdsAps.js.map → main-CWgkFc8w.js.map} +1 -1
  19. package/dist/registry-SW4SCwV5.js +216 -0
  20. package/dist/registry-SW4SCwV5.js.map +1 -0
  21. package/dist/spa/assets/{ModelsPage-8zCKSqIw.css → ModelsPage-CrseRvBH.css} +1 -1
  22. package/dist/spa/assets/ModelsPage-CxzHlUKB.js +4 -0
  23. package/dist/spa/assets/ModelsPage-CxzHlUKB.js.map +1 -0
  24. package/dist/spa/assets/RoutesPage-BchriFi3.js +2 -0
  25. package/dist/spa/assets/RoutesPage-BchriFi3.js.map +1 -0
  26. package/dist/spa/assets/{RoutesPage-BVXzvJ2S.css → RoutesPage-Wp_sf4Io.css} +1 -1
  27. package/dist/spa/assets/SimulatorPage-CHGPhn5Y.js +2 -0
  28. package/dist/spa/assets/SimulatorPage-CHGPhn5Y.js.map +1 -0
  29. package/dist/spa/assets/SimulatorPage-p6R5JJTE.css +1 -0
  30. package/dist/spa/assets/{TimelinePage-BDyp8kvu.css → TimelinePage-ED20f46Y.css} +1 -1
  31. package/dist/spa/assets/TimelinePage-zBBJCjLX.js +2 -0
  32. package/dist/spa/assets/TimelinePage-zBBJCjLX.js.map +1 -0
  33. package/dist/spa/assets/check-CDp1nxJT.js +2 -0
  34. package/dist/spa/assets/{check-9axZ93X-.js.map → check-CDp1nxJT.js.map} +1 -1
  35. package/dist/spa/assets/{format-CB-GiJ6N.js → format-DA0n5kox.js} +2 -2
  36. package/dist/spa/assets/{format-CB-GiJ6N.js.map → format-DA0n5kox.js.map} +1 -1
  37. package/dist/spa/assets/{index-BQr16DJ3.js → index-Ddu0x8qb.js} +3 -3
  38. package/dist/spa/assets/{index-BQr16DJ3.js.map → index-Ddu0x8qb.js.map} +1 -1
  39. package/dist/spa/assets/registry-CKvK0Ln5.js +2 -0
  40. package/dist/spa/assets/registry-CKvK0Ln5.js.map +1 -0
  41. package/dist/spa/assets/{trash-2-Cj6nHRK8.js → trash-2-B1UuFJDm.js} +2 -2
  42. package/dist/spa/assets/{trash-2-Cj6nHRK8.js.map → trash-2-B1UuFJDm.js.map} +1 -1
  43. package/dist/spa/assets/{triangle-alert-BXnev_tx.js → triangle-alert-ITT7135L.js} +2 -2
  44. package/dist/spa/assets/{triangle-alert-BXnev_tx.js.map → triangle-alert-ITT7135L.js.map} +1 -1
  45. package/dist/spa/assets/x-YOimnrsL.js +2 -0
  46. package/dist/spa/assets/{x-9zeMJ8Mo.js.map → x-YOimnrsL.js.map} +1 -1
  47. package/dist/spa/index.html +1 -1
  48. package/dist/{trash-2-unSVE8Jc.js → trash-2-CDLzu4_Y.js} +2 -2
  49. package/dist/{trash-2-unSVE8Jc.js.map → trash-2-CDLzu4_Y.js.map} +1 -1
  50. package/dist/{triangle-alert-B1V6ucAg.js → triangle-alert-BP3-t-po.js} +2 -2
  51. package/dist/{triangle-alert-B1V6ucAg.js.map → triangle-alert-BP3-t-po.js.map} +1 -1
  52. package/dist/{x-DWlhu3h-.js → x-BZzigrBR.js} +2 -2
  53. package/dist/{x-DWlhu3h-.js.map → x-BZzigrBR.js.map} +1 -1
  54. package/package.json +13 -13
  55. package/dist/ModelsPage-DoqfBilK.js +0 -757
  56. package/dist/ModelsPage-DoqfBilK.js.map +0 -1
  57. package/dist/RoutesPage-DmXBJ4J5.js.map +0 -1
  58. package/dist/SimulatorPage-BmM-ExQg.js +0 -430
  59. package/dist/SimulatorPage-BmM-ExQg.js.map +0 -1
  60. package/dist/TimelinePage-Dnh_47wz.js +0 -849
  61. package/dist/TimelinePage-Dnh_47wz.js.map +0 -1
  62. package/dist/registry-BQhccWMq.js +0 -153
  63. package/dist/registry-BQhccWMq.js.map +0 -1
  64. package/dist/spa/assets/ModelsPage-_etl-kz9.js +0 -4
  65. package/dist/spa/assets/ModelsPage-_etl-kz9.js.map +0 -1
  66. package/dist/spa/assets/RoutesPage-BN_Lo8uo.js +0 -2
  67. package/dist/spa/assets/RoutesPage-BN_Lo8uo.js.map +0 -1
  68. package/dist/spa/assets/SimulatorPage-BF4VLn5k.js +0 -2
  69. package/dist/spa/assets/SimulatorPage-BF4VLn5k.js.map +0 -1
  70. package/dist/spa/assets/SimulatorPage-DGEq_rzM.css +0 -1
  71. package/dist/spa/assets/TimelinePage-7OqKgItP.js +0 -2
  72. package/dist/spa/assets/TimelinePage-7OqKgItP.js.map +0 -1
  73. package/dist/spa/assets/check-9axZ93X-.js +0 -2
  74. package/dist/spa/assets/registry-DAv66ZPp.js +0 -2
  75. package/dist/spa/assets/registry-DAv66ZPp.js.map +0 -1
  76. package/dist/spa/assets/x-9zeMJ8Mo.js +0 -2
@@ -1,13 +1,13 @@
1
- import { defineComponent as E, computed as H, createElementBlock as o, openBlock as n, createVNode as l, createElementVNode as t, unref as e, normalizeClass as f, toDisplayString as c, createCommentVNode as u, createTextVNode as x, Fragment as b, renderList as C, withDirectives as Z, createBlock as q, resolveDynamicComponent as G, vShow as Y, ref as T, onMounted as tt, onUnmounted as et, watch as st } from "vue";
2
- import { g as P, C as Q, a as nt, S as V, F as ot, b as it } from "./format-Cj8p3HJO.js";
3
- import { c as $, _ as F, u as at, R as dt } from "./main-HjHdsAps.js";
4
- import { u as lt } from "./registry-BQhccWMq.js";
5
- import { X as j } from "./x-DWlhu3h-.js";
6
- const R = $("code", [
1
+ import { defineComponent as E, computed as H, createElementBlock as o, openBlock as n, createVNode as l, createElementVNode as t, unref as e, normalizeClass as g, toDisplayString as c, createCommentVNode as p, createTextVNode as x, Fragment as k, renderList as S, withDirectives as Y, createBlock as q, resolveDynamicComponent as G, vShow as tt, ref as T, onMounted as et, onUnmounted as st, watch as nt } from "vue";
2
+ import { g as P, C as Q, a as ot, S as V, F as it, b as at } from "./format-Dj37a-xS.js";
3
+ import { c as b, _ as F, u as dt, a as lt, R as rt } from "./main-CWgkFc8w.js";
4
+ import { u as ct } from "./registry-SW4SCwV5.js";
5
+ import { X as j } from "./x-BZzigrBR.js";
6
+ const R = b("code", [
7
7
  ["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
8
8
  ["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
9
9
  ]);
10
- const M = $("file-json", [
10
+ const M = b("file-json", [
11
11
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
12
12
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
13
13
  [
@@ -19,11 +19,11 @@ const M = $("file-json", [
19
19
  { d: "M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1", key: "mpwhp6" }
20
20
  ]
21
21
  ]);
22
- const rt = $("lock", [
22
+ const ut = b("lock", [
23
23
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
24
24
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
25
25
  ]);
26
- const ct = $("shield", [
26
+ const pt = b("shield", [
27
27
  [
28
28
  "path",
29
29
  {
@@ -32,7 +32,7 @@ const ct = $("shield", [
32
32
  }
33
33
  ]
34
34
  ]);
35
- const w = $("sprout", [
35
+ const w = b("sprout", [
36
36
  ["path", { d: "M7 20h10", key: "e6iznv" }],
37
37
  ["path", { d: "M10 20c5.5-2.5.8-6.4 3-10", key: "161w41" }],
38
38
  [
@@ -50,7 +50,7 @@ const w = $("sprout", [
50
50
  }
51
51
  ]
52
52
  ]);
53
- const ut = $("tag", [
53
+ const _t = b("tag", [
54
54
  [
55
55
  "path",
56
56
  {
@@ -59,128 +59,128 @@ const ut = $("tag", [
59
59
  }
60
60
  ],
61
61
  ["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
62
- ]), pt = { class: "endpoint-detail" }, _t = {
62
+ ]), ht = { class: "endpoint-detail" }, yt = {
63
63
  key: 0,
64
64
  class: "endpoint-detail__empty"
65
- }, ht = {
65
+ }, mt = {
66
66
  key: 1,
67
67
  class: "endpoint-detail__content"
68
- }, yt = { class: "endpoint-detail__header" }, mt = { class: "endpoint-detail__path font-mono" }, gt = { class: "endpoint-detail__status" }, vt = {
68
+ }, gt = { class: "endpoint-detail__header" }, vt = { class: "endpoint-detail__path font-mono" }, ft = { class: "endpoint-detail__status" }, kt = {
69
69
  key: 0,
70
70
  class: "endpoint-detail__status-item endpoint-detail__status-item--handler"
71
- }, ft = {
71
+ }, bt = {
72
72
  key: 1,
73
73
  class: "endpoint-detail__status-item endpoint-detail__status-item--seed"
74
- }, kt = {
74
+ }, $t = {
75
75
  key: 2,
76
76
  class: "endpoint-detail__status-item endpoint-detail__status-item--security"
77
- }, bt = {
77
+ }, St = {
78
78
  key: 3,
79
79
  class: "endpoint-detail__status-item endpoint-detail__status-item--auto"
80
- }, $t = { class: "endpoint-detail__sections" }, St = { class: "endpoint-detail__section" }, Ct = { class: "endpoint-detail__section-content font-mono" }, zt = {
80
+ }, Ct = { class: "endpoint-detail__sections" }, zt = { class: "endpoint-detail__section" }, xt = { class: "endpoint-detail__section-content font-mono" }, Mt = {
81
81
  key: 0,
82
82
  class: "endpoint-detail__section"
83
- }, xt = { class: "endpoint-detail__section-title" }, Mt = { class: "endpoint-detail__tags" }, Ht = {
83
+ }, Ht = { class: "endpoint-detail__section-title" }, Et = { class: "endpoint-detail__tags" }, Ft = {
84
84
  key: 1,
85
85
  class: "endpoint-detail__section"
86
- }, Et = { class: "endpoint-detail__section-content" }, Ft = {
86
+ }, Rt = { class: "endpoint-detail__section-content" }, wt = {
87
87
  key: 2,
88
88
  class: "endpoint-detail__section"
89
- }, Rt = { class: "endpoint-detail__section-content endpoint-detail__description" }, wt = {
89
+ }, It = { class: "endpoint-detail__section-content endpoint-detail__description" }, Dt = {
90
90
  key: 3,
91
91
  class: "endpoint-detail__section"
92
- }, It = { class: "endpoint-detail__section-title" }, Dt = { class: "endpoint-detail__section-content font-mono" }, Lt = {
92
+ }, Lt = { class: "endpoint-detail__section-title" }, Nt = { class: "endpoint-detail__section-content font-mono" }, At = {
93
93
  key: 4,
94
94
  class: "endpoint-detail__section"
95
- }, Nt = { class: "endpoint-detail__section-title" }, At = { class: "endpoint-detail__security" }, Tt = { class: "endpoint-detail__security-name font-mono" }, Vt = { class: "endpoint-detail__security-scopes text-muted" }, jt = /* @__PURE__ */ E({
95
+ }, Tt = { class: "endpoint-detail__section-title" }, Vt = { class: "endpoint-detail__security" }, jt = { class: "endpoint-detail__security-name font-mono" }, qt = { class: "endpoint-detail__security-scopes text-muted" }, Gt = /* @__PURE__ */ E({
96
96
  __name: "EndpointDetail",
97
97
  props: {
98
98
  endpoint: {}
99
99
  },
100
100
  setup(d) {
101
- const s = d, k = H(() => s.endpoint?.security && s.endpoint.security.length > 0), m = H(() => s.endpoint?.security ? s.endpoint.security.map((y) => ({
101
+ const s = d, v = H(() => s.endpoint?.security && s.endpoint.security.length > 0), f = H(() => s.endpoint?.security ? s.endpoint.security.map((y) => ({
102
102
  name: y.name,
103
103
  scopes: y.scopes.length > 0 ? y.scopes.join(", ") : "No scopes"
104
104
  })) : []);
105
- return (y, i) => (n(), o("div", pt, [
106
- d.endpoint ? (n(), o("div", ht, [
107
- t("header", yt, [
105
+ return (y, i) => (n(), o("div", ht, [
106
+ d.endpoint ? (n(), o("div", mt, [
107
+ t("header", gt, [
108
108
  t("span", {
109
- class: f([
109
+ class: g([
110
110
  "method-badge",
111
111
  "method-badge--large",
112
112
  `method-badge--${d.endpoint.method}`
113
113
  ])
114
114
  }, c(e(P)(d.endpoint.method)), 3),
115
- t("h2", mt, c(d.endpoint.path), 1)
115
+ t("h2", vt, c(d.endpoint.path), 1)
116
116
  ]),
117
- t("div", gt, [
118
- d.endpoint.hasHandler ? (n(), o("div", vt, [
117
+ t("div", ft, [
118
+ d.endpoint.hasHandler ? (n(), o("div", kt, [
119
119
  l(e(R), { size: 14 }),
120
120
  i[2] || (i[2] = t("span", null, "Has custom handler", -1))
121
- ])) : u("", !0),
122
- d.endpoint.hasSeed ? (n(), o("div", ft, [
121
+ ])) : p("", !0),
122
+ d.endpoint.hasSeed ? (n(), o("div", bt, [
123
123
  l(e(w), { size: 14 }),
124
124
  i[3] || (i[3] = t("span", null, "Has seed data", -1))
125
- ])) : u("", !0),
126
- k.value ? (n(), o("div", kt, [
127
- l(e(rt), { size: 14 }),
125
+ ])) : p("", !0),
126
+ v.value ? (n(), o("div", $t, [
127
+ l(e(ut), { size: 14 }),
128
128
  i[4] || (i[4] = t("span", null, "Requires authentication", -1))
129
- ])) : u("", !0),
130
- !d.endpoint.hasHandler && !d.endpoint.hasSeed ? (n(), o("div", bt, [
129
+ ])) : p("", !0),
130
+ !d.endpoint.hasHandler && !d.endpoint.hasSeed ? (n(), o("div", St, [
131
131
  l(e(M), { size: 14 }),
132
132
  i[5] || (i[5] = t("span", null, "Auto-generated response", -1))
133
- ])) : u("", !0)
133
+ ])) : p("", !0)
134
134
  ]),
135
- t("div", $t, [
136
- t("section", St, [
135
+ t("div", Ct, [
136
+ t("section", zt, [
137
137
  i[6] || (i[6] = t("h3", { class: "endpoint-detail__section-title" }, "Operation", -1)),
138
- t("p", Ct, c(d.endpoint.operationId), 1)
138
+ t("p", xt, c(d.endpoint.operationId), 1)
139
139
  ]),
140
- d.endpoint.tags.length > 0 ? (n(), o("section", zt, [
141
- t("h3", xt, [
142
- l(e(ut), { size: 14 }),
140
+ d.endpoint.tags.length > 0 ? (n(), o("section", Mt, [
141
+ t("h3", Ht, [
142
+ l(e(_t), { size: 14 }),
143
143
  i[7] || (i[7] = x(" Tags ", -1))
144
144
  ]),
145
- t("div", Mt, [
146
- (n(!0), o(b, null, C(d.endpoint.tags, (_) => (n(), o("span", {
145
+ t("div", Et, [
146
+ (n(!0), o(k, null, S(d.endpoint.tags, (_) => (n(), o("span", {
147
147
  key: _,
148
148
  class: "endpoint-detail__tag"
149
149
  }, c(_), 1))), 128))
150
150
  ])
151
- ])) : u("", !0),
152
- d.endpoint.summary ? (n(), o("section", Ht, [
151
+ ])) : p("", !0),
152
+ d.endpoint.summary ? (n(), o("section", Ft, [
153
153
  i[8] || (i[8] = t("h3", { class: "endpoint-detail__section-title" }, "Summary", -1)),
154
- t("p", Et, c(d.endpoint.summary), 1)
155
- ])) : u("", !0),
156
- d.endpoint.description ? (n(), o("section", Ft, [
154
+ t("p", Rt, c(d.endpoint.summary), 1)
155
+ ])) : p("", !0),
156
+ d.endpoint.description ? (n(), o("section", wt, [
157
157
  i[9] || (i[9] = t("h3", { class: "endpoint-detail__section-title" }, "Description", -1)),
158
- t("p", Rt, c(d.endpoint.description), 1)
159
- ])) : u("", !0),
160
- d.endpoint.responseSchema ? (n(), o("section", wt, [
161
- t("h3", It, [
158
+ t("p", It, c(d.endpoint.description), 1)
159
+ ])) : p("", !0),
160
+ d.endpoint.responseSchema ? (n(), o("section", Dt, [
161
+ t("h3", Lt, [
162
162
  l(e(M), { size: 14 }),
163
163
  i[10] || (i[10] = x(" Response Schema ", -1))
164
164
  ]),
165
- t("p", Dt, c(d.endpoint.responseSchema), 1)
166
- ])) : u("", !0),
167
- k.value ? (n(), o("section", Lt, [
168
- t("h3", Nt, [
169
- l(e(ct), { size: 14 }),
165
+ t("p", Nt, c(d.endpoint.responseSchema), 1)
166
+ ])) : p("", !0),
167
+ v.value ? (n(), o("section", At, [
168
+ t("h3", Tt, [
169
+ l(e(pt), { size: 14 }),
170
170
  i[11] || (i[11] = x(" Security ", -1))
171
171
  ]),
172
- t("div", At, [
173
- (n(!0), o(b, null, C(m.value, (_) => (n(), o("div", {
172
+ t("div", Vt, [
173
+ (n(!0), o(k, null, S(f.value, (_) => (n(), o("div", {
174
174
  key: _.name,
175
175
  class: "endpoint-detail__security-item"
176
176
  }, [
177
- t("span", Tt, c(_.name), 1),
178
- t("span", Vt, c(_.scopes), 1)
177
+ t("span", jt, c(_.name), 1),
178
+ t("span", qt, c(_.scopes), 1)
179
179
  ]))), 128))
180
180
  ])
181
- ])) : u("", !0)
181
+ ])) : p("", !0)
182
182
  ])
183
- ])) : (n(), o("div", _t, [
183
+ ])) : (n(), o("div", yt, [
184
184
  l(e(M), {
185
185
  size: 48,
186
186
  class: "endpoint-detail__empty-icon"
@@ -190,21 +190,21 @@ const ut = $("tag", [
190
190
  ]))
191
191
  ]));
192
192
  }
193
- }), qt = /* @__PURE__ */ F(jt, [["__scopeId", "data-v-c66a0f52"]]), Gt = { class: "endpoint-list" }, Pt = {
193
+ }), Pt = /* @__PURE__ */ F(Gt, [["__scopeId", "data-v-c66a0f52"]]), Qt = { class: "endpoint-list" }, Bt = {
194
194
  key: 0,
195
195
  class: "endpoint-list__empty"
196
- }, Qt = {
196
+ }, Kt = {
197
197
  key: 1,
198
198
  class: "endpoint-list__groups"
199
- }, Bt = ["aria-expanded", "aria-controls", "onClick"], Kt = { class: "endpoint-group__tag" }, Ut = { class: "endpoint-group__count text-muted" }, Ot = ["id", "aria-label"], Jt = ["aria-selected", "onClick"], Wt = { class: "endpoint-item__path font-mono" }, Xt = { class: "endpoint-item__indicators" }, Zt = {
199
+ }, Ut = ["aria-expanded", "aria-controls", "onClick"], Ot = { class: "endpoint-group__tag" }, Jt = { class: "endpoint-group__count text-muted" }, Wt = ["id", "aria-label"], Xt = ["aria-selected", "onClick"], Zt = { class: "endpoint-item__path font-mono" }, Yt = { class: "endpoint-item__indicators" }, te = {
200
200
  key: 0,
201
201
  class: "endpoint-item__indicator endpoint-item__indicator--handler",
202
202
  title: "Has custom handler"
203
- }, Yt = {
203
+ }, ee = {
204
204
  key: 1,
205
205
  class: "endpoint-item__indicator endpoint-item__indicator--seed",
206
206
  title: "Has seed data"
207
- }, te = /* @__PURE__ */ E({
207
+ }, se = /* @__PURE__ */ E({
208
208
  __name: "EndpointList",
209
209
  props: {
210
210
  groups: {},
@@ -212,48 +212,48 @@ const ut = $("tag", [
212
212
  },
213
213
  emits: ["select", "toggle-group"],
214
214
  setup(d, { emit: s }) {
215
- const k = d, m = s;
216
- function y(g) {
217
- m("select", g.key);
215
+ const v = d, f = s;
216
+ function y(m) {
217
+ f("select", m.key);
218
218
  }
219
- function i(g) {
220
- m("toggle-group", g);
219
+ function i(m) {
220
+ f("toggle-group", m);
221
221
  }
222
- function _(g) {
223
- return k.selectedKey === g.key;
222
+ function _(m) {
223
+ return v.selectedKey === m.key;
224
224
  }
225
- return (g, v) => (n(), o("div", Gt, [
226
- d.groups.length === 0 ? (n(), o("div", Pt, [...v[0] || (v[0] = [
225
+ return (m, C) => (n(), o("div", Qt, [
226
+ d.groups.length === 0 ? (n(), o("div", Bt, [...C[0] || (C[0] = [
227
227
  t("p", { class: "text-muted" }, "No endpoints found", -1)
228
- ])])) : (n(), o("div", Qt, [
229
- (n(!0), o(b, null, C(d.groups, (p) => (n(), o("div", {
230
- key: p.tag,
228
+ ])])) : (n(), o("div", Kt, [
229
+ (n(!0), o(k, null, S(d.groups, (u) => (n(), o("div", {
230
+ key: u.tag,
231
231
  class: "endpoint-group"
232
232
  }, [
233
233
  t("button", {
234
234
  type: "button",
235
235
  class: "endpoint-group__header",
236
- "aria-expanded": p.isExpanded,
237
- "aria-controls": `group-${p.tag}`,
238
- onClick: (h) => i(p.tag)
236
+ "aria-expanded": u.isExpanded,
237
+ "aria-controls": `group-${u.tag}`,
238
+ onClick: (h) => i(u.tag)
239
239
  }, [
240
- (n(), q(G(p.isExpanded ? e(Q) : e(nt)), {
240
+ (n(), q(G(u.isExpanded ? e(Q) : e(ot)), {
241
241
  size: 16,
242
242
  class: "endpoint-group__chevron"
243
243
  })),
244
- t("span", Kt, c(p.tag), 1),
245
- t("span", Ut, " (" + c(p.endpoints.length) + ") ", 1)
246
- ], 8, Bt),
247
- Z(t("div", {
248
- id: `group-${p.tag}`,
244
+ t("span", Ot, c(u.tag), 1),
245
+ t("span", Jt, " (" + c(u.endpoints.length) + ") ", 1)
246
+ ], 8, Ut),
247
+ Y(t("div", {
248
+ id: `group-${u.tag}`,
249
249
  class: "endpoint-group__items",
250
250
  role: "group",
251
- "aria-label": `${p.tag} endpoints`
251
+ "aria-label": `${u.tag} endpoints`
252
252
  }, [
253
- (n(!0), o(b, null, C(p.endpoints, (h) => (n(), o("button", {
253
+ (n(!0), o(k, null, S(u.endpoints, (h) => (n(), o("button", {
254
254
  key: h.key,
255
255
  type: "button",
256
- class: f([
256
+ class: g([
257
257
  "endpoint-item",
258
258
  { "endpoint-item--selected": _(h) }
259
259
  ]),
@@ -261,53 +261,53 @@ const ut = $("tag", [
261
261
  onClick: (I) => y(h)
262
262
  }, [
263
263
  t("span", {
264
- class: f([
264
+ class: g([
265
265
  "method-badge",
266
266
  `method-badge--${h.method}`
267
267
  ])
268
268
  }, c(e(P)(h.method)), 3),
269
- t("span", Wt, c(h.path), 1),
270
- t("div", Xt, [
271
- h.hasHandler ? (n(), o("span", Zt, [
269
+ t("span", Zt, c(h.path), 1),
270
+ t("div", Yt, [
271
+ h.hasHandler ? (n(), o("span", te, [
272
272
  l(e(R), { size: 12 })
273
- ])) : u("", !0),
274
- h.hasSeed ? (n(), o("span", Yt, [
273
+ ])) : p("", !0),
274
+ h.hasSeed ? (n(), o("span", ee, [
275
275
  l(e(w), { size: 12 })
276
- ])) : u("", !0)
276
+ ])) : p("", !0)
277
277
  ])
278
- ], 10, Jt))), 128))
279
- ], 8, Ot), [
280
- [Y, p.isExpanded]
278
+ ], 10, Xt))), 128))
279
+ ], 8, Wt), [
280
+ [tt, u.isExpanded]
281
281
  ])
282
282
  ]))), 128))
283
283
  ]))
284
284
  ]));
285
285
  }
286
- }), ee = /* @__PURE__ */ F(te, [["__scopeId", "data-v-554ffe63"]]), se = { class: "routes-page" }, ne = { class: "routes-toolbar" }, oe = { class: "routes-search" }, ie = ["value"], ae = ["aria-expanded"], de = {
286
+ }), ne = /* @__PURE__ */ F(se, [["__scopeId", "data-v-554ffe63"]]), oe = { class: "routes-page" }, ie = { class: "routes-toolbar" }, ae = { class: "routes-search" }, de = ["value"], le = ["aria-expanded"], re = {
287
287
  key: 0,
288
288
  class: "routes-filter-toggle__badge"
289
- }, le = { class: "routes-stats" }, re = { class: "routes-stats__item" }, ce = { class: "routes-stats__item" }, ue = {
289
+ }, ce = { class: "routes-stats" }, ue = { class: "routes-stats__item" }, pe = { class: "routes-stats__item" }, _e = {
290
290
  key: 0,
291
291
  class: "routes-filters"
292
- }, pe = { class: "routes-filters__section" }, _e = { class: "routes-filters__methods" }, he = ["onClick"], ye = { class: "routes-filters__section" }, me = { class: "routes-filters__status" }, ge = {
292
+ }, he = { class: "routes-filters__section" }, ye = { class: "routes-filters__methods" }, me = ["onClick"], ge = { class: "routes-filters__section" }, ve = { class: "routes-filters__status" }, fe = {
293
293
  key: 0,
294
294
  class: "routes-filters__actions"
295
- }, ve = { class: "routes-content" }, fe = {
295
+ }, ke = { class: "routes-content" }, be = {
296
296
  key: 0,
297
297
  class: "routes-loading"
298
- }, ke = {
298
+ }, $e = {
299
299
  key: 1,
300
300
  class: "routes-error"
301
- }, be = { class: "routes-error__message" }, $e = {
301
+ }, Se = { class: "routes-error__message" }, Ce = {
302
302
  key: 2,
303
303
  class: "routes-empty empty-state"
304
- }, Se = {
304
+ }, ze = {
305
305
  key: 3,
306
306
  class: "routes-empty empty-state"
307
- }, Ce = { class: "routes-list-panel" }, ze = { class: "routes-detail-panel" }, xe = /* @__PURE__ */ E({
307
+ }, xe = { class: "routes-list-panel" }, Me = { class: "routes-detail-panel" }, He = /* @__PURE__ */ E({
308
308
  __name: "RoutesPage",
309
309
  setup(d) {
310
- const s = lt(), { send: k, on: m, connected: y } = at(), i = T(!1), _ = T(null), g = [
310
+ const s = ct(), v = dt(), { send: f, on: y, connected: i } = lt(), _ = T(!1), m = T(null), C = [
311
311
  "get",
312
312
  "post",
313
313
  "put",
@@ -317,143 +317,143 @@ const ut = $("tag", [
317
317
  "head",
318
318
  "trace"
319
319
  ];
320
- function v() {
321
- y.value && (s.setLoading(!0), k({ type: "get:registry" }));
322
- }
323
- function p(r) {
324
- s.setRegistryData(r), s.setLoading(!1);
320
+ function u() {
321
+ i.value && (s.setLoading(!0), f({ type: "get:registry" }));
325
322
  }
326
323
  function h(r) {
327
- s.selectEndpoint(r);
324
+ s.setRegistryData(v.specIds[0] ?? "default", r), s.setLoading(!1);
328
325
  }
329
326
  function I(r) {
330
- s.toggleGroup(r);
327
+ s.selectEndpoint(r);
331
328
  }
332
329
  function B(r) {
330
+ s.toggleGroup(r);
331
+ }
332
+ function K(r) {
333
333
  const a = r.target;
334
334
  s.setSearchQuery(a.value);
335
335
  }
336
- function K() {
337
- s.setSearchQuery(""), _.value?.focus();
336
+ function U() {
337
+ s.setSearchQuery(""), m.value?.focus();
338
338
  }
339
- function U(r) {
339
+ function O(r) {
340
340
  s.toggleMethodFilter(r);
341
341
  }
342
- function O(r) {
342
+ function J(r) {
343
343
  return s.filter.methods.includes(r);
344
344
  }
345
- function J() {
345
+ function W() {
346
346
  const r = s.filter.hasHandler;
347
347
  s.setHandlerFilter(r === !0 ? null : !0);
348
348
  }
349
- function W() {
349
+ function X() {
350
350
  const r = s.filter.hasSeed;
351
351
  s.setSeedFilter(r === !0 ? null : !0);
352
352
  }
353
353
  function D() {
354
354
  s.clearFilters();
355
355
  }
356
- function X() {
357
- i.value = !i.value;
356
+ function Z() {
357
+ _.value = !_.value;
358
358
  }
359
359
  const z = H(() => s.hasActiveFilters());
360
360
  let L = null, N = null, A = null;
361
- return tt(() => {
362
- L = m("registry", p), N = m("handlers:updated", () => v()), A = m("seeds:updated", () => v()), y.value && v();
363
- }), et(() => {
361
+ return et(() => {
362
+ L = y("registry", h), N = y("handlers:updated", () => u()), A = y("seeds:updated", () => u()), i.value && u();
363
+ }), st(() => {
364
364
  L?.(), N?.(), A?.();
365
- }), st(y, (r) => {
366
- r && v();
367
- }), (r, a) => (n(), o("div", se, [
368
- t("div", ne, [
369
- t("div", oe, [
365
+ }), nt(i, (r) => {
366
+ r && u();
367
+ }), (r, a) => (n(), o("div", oe, [
368
+ t("div", ie, [
369
+ t("div", ae, [
370
370
  l(e(V), {
371
371
  size: 16,
372
372
  class: "routes-search__icon"
373
373
  }),
374
374
  t("input", {
375
375
  ref_key: "searchInputRef",
376
- ref: _,
376
+ ref: m,
377
377
  type: "text",
378
378
  class: "routes-search__input input",
379
379
  placeholder: "Search endpoints...",
380
380
  value: e(s).searchQuery,
381
- onInput: B
382
- }, null, 40, ie),
381
+ onInput: K
382
+ }, null, 40, de),
383
383
  e(s).searchQuery ? (n(), o("button", {
384
384
  key: 0,
385
385
  type: "button",
386
386
  class: "routes-search__clear btn btn--ghost btn--icon",
387
387
  title: "Clear search",
388
- onClick: K
388
+ onClick: U
389
389
  }, [
390
390
  l(e(j), { size: 14 })
391
- ])) : u("", !0)
391
+ ])) : p("", !0)
392
392
  ]),
393
393
  t("button", {
394
394
  type: "button",
395
- class: f([
395
+ class: g([
396
396
  "routes-filter-toggle btn btn--secondary",
397
397
  { "routes-filter-toggle--active": z.value }
398
398
  ]),
399
- "aria-expanded": i.value,
400
- onClick: X
399
+ "aria-expanded": _.value,
400
+ onClick: Z
401
401
  }, [
402
- l(e(ot), { size: 16 }),
402
+ l(e(it), { size: 16 }),
403
403
  a[0] || (a[0] = t("span", null, "Filters", -1)),
404
- z.value ? (n(), o("span", de, c(e(s).filter.methods.length + (e(s).filter.hasHandler ? 1 : 0) + (e(s).filter.hasSeed ? 1 : 0)), 1)) : u("", !0),
405
- (n(), q(G(i.value ? e(it) : e(Q)), { size: 14 }))
406
- ], 10, ae),
407
- t("div", le, [
408
- t("span", re, c(e(s).filteredEndpoints.length) + " endpoints ", 1),
404
+ z.value ? (n(), o("span", re, c(e(s).filter.methods.length + (e(s).filter.hasHandler ? 1 : 0) + (e(s).filter.hasSeed ? 1 : 0)), 1)) : p("", !0),
405
+ (n(), q(G(_.value ? e(at) : e(Q)), { size: 14 }))
406
+ ], 10, le),
407
+ t("div", ce, [
408
+ t("span", ue, c(e(s).filteredEndpoints.length) + " endpoints ", 1),
409
409
  a[1] || (a[1] = t("span", { class: "routes-stats__separator" }, "|", -1)),
410
- t("span", ce, c(e(s).allTags.length) + " tags ", 1)
410
+ t("span", pe, c(e(s).allTags.length) + " tags ", 1)
411
411
  ])
412
412
  ]),
413
- i.value ? (n(), o("div", ue, [
414
- t("div", pe, [
413
+ _.value ? (n(), o("div", _e, [
414
+ t("div", he, [
415
415
  a[2] || (a[2] = t("h4", { class: "routes-filters__title" }, "Methods", -1)),
416
- t("div", _e, [
417
- (n(), o(b, null, C(g, (S) => t("button", {
418
- key: S,
416
+ t("div", ye, [
417
+ (n(), o(k, null, S(C, ($) => t("button", {
418
+ key: $,
419
419
  type: "button",
420
- class: f([
420
+ class: g([
421
421
  "method-badge",
422
- `method-badge--${S}`,
423
- { "method-badge--inactive": !O(S) && e(s).filter.methods.length > 0 }
422
+ `method-badge--${$}`,
423
+ { "method-badge--inactive": !J($) && e(s).filter.methods.length > 0 }
424
424
  ]),
425
- onClick: (Me) => U(S)
426
- }, c(S.toUpperCase()), 11, he)), 64))
425
+ onClick: (Ee) => O($)
426
+ }, c($.toUpperCase()), 11, me)), 64))
427
427
  ])
428
428
  ]),
429
- t("div", ye, [
429
+ t("div", ge, [
430
430
  a[5] || (a[5] = t("h4", { class: "routes-filters__title" }, "Status", -1)),
431
- t("div", me, [
431
+ t("div", ve, [
432
432
  t("button", {
433
433
  type: "button",
434
- class: f([
434
+ class: g([
435
435
  "routes-filters__status-btn",
436
436
  { "routes-filters__status-btn--active": e(s).filter.hasHandler }
437
437
  ]),
438
- onClick: J
438
+ onClick: W
439
439
  }, [
440
440
  l(e(R), { size: 14 }),
441
441
  a[3] || (a[3] = t("span", null, "Has Handler", -1))
442
442
  ], 2),
443
443
  t("button", {
444
444
  type: "button",
445
- class: f([
445
+ class: g([
446
446
  "routes-filters__status-btn",
447
447
  { "routes-filters__status-btn--active": e(s).filter.hasSeed }
448
448
  ]),
449
- onClick: W
449
+ onClick: X
450
450
  }, [
451
451
  l(e(w), { size: 14 }),
452
452
  a[4] || (a[4] = t("span", null, "Has Seed", -1))
453
453
  ], 2)
454
454
  ])
455
455
  ]),
456
- z.value ? (n(), o("div", ge, [
456
+ z.value ? (n(), o("div", fe, [
457
457
  t("button", {
458
458
  type: "button",
459
459
  class: "btn btn--ghost",
@@ -462,27 +462,27 @@ const ut = $("tag", [
462
462
  l(e(j), { size: 14 }),
463
463
  a[6] || (a[6] = x(" Clear all filters ", -1))
464
464
  ])
465
- ])) : u("", !0)
466
- ])) : u("", !0),
467
- t("div", ve, [
468
- e(s).isLoading ? (n(), o("div", fe, [...a[7] || (a[7] = [
465
+ ])) : p("", !0)
466
+ ])) : p("", !0),
467
+ t("div", ke, [
468
+ e(s).isLoading ? (n(), o("div", be, [...a[7] || (a[7] = [
469
469
  t("div", { class: "routes-loading__spinner" }, null, -1),
470
470
  t("span", { class: "text-muted" }, "Loading endpoints...", -1)
471
- ])])) : e(s).error ? (n(), o("div", ke, [
472
- t("p", be, c(e(s).error), 1),
471
+ ])])) : e(s).error ? (n(), o("div", $e, [
472
+ t("p", Se, c(e(s).error), 1),
473
473
  t("button", {
474
474
  type: "button",
475
475
  class: "btn btn--primary",
476
- onClick: v
476
+ onClick: u
477
477
  }, " Retry ")
478
- ])) : e(s).endpoints.length === 0 ? (n(), o("div", $e, [
479
- l(e(dt), {
478
+ ])) : e(s).endpoints.length === 0 ? (n(), o("div", Ce, [
479
+ l(e(rt), {
480
480
  size: 48,
481
481
  class: "empty-state__icon"
482
482
  }),
483
483
  a[8] || (a[8] = t("h3", { class: "empty-state__title" }, "No endpoints found", -1)),
484
484
  a[9] || (a[9] = t("p", { class: "empty-state__description" }, " No API endpoints are available. Make sure your OpenAPI spec is loaded. ", -1))
485
- ])) : e(s).filteredEndpoints.length === 0 ? (n(), o("div", Se, [
485
+ ])) : e(s).filteredEndpoints.length === 0 ? (n(), o("div", ze, [
486
486
  l(e(V), {
487
487
  size: 48,
488
488
  class: "empty-state__icon"
@@ -494,18 +494,18 @@ const ut = $("tag", [
494
494
  type: "button",
495
495
  class: "btn btn--secondary",
496
496
  onClick: D
497
- }, " Clear filters ")) : u("", !0)
498
- ])) : (n(), o(b, { key: 4 }, [
499
- t("div", Ce, [
500
- l(ee, {
497
+ }, " Clear filters ")) : p("", !0)
498
+ ])) : (n(), o(k, { key: 4 }, [
499
+ t("div", xe, [
500
+ l(ne, {
501
501
  groups: e(s).groupedEndpoints,
502
502
  "selected-key": e(s).selectedEndpointKey,
503
- onSelect: h,
504
- onToggleGroup: I
503
+ onSelect: I,
504
+ onToggleGroup: B
505
505
  }, null, 8, ["groups", "selected-key"])
506
506
  ]),
507
- t("div", ze, [
508
- l(qt, {
507
+ t("div", Me, [
508
+ l(Pt, {
509
509
  endpoint: e(s).selectedEndpoint
510
510
  }, null, 8, ["endpoint"])
511
511
  ])
@@ -513,8 +513,8 @@ const ut = $("tag", [
513
513
  ])
514
514
  ]));
515
515
  }
516
- }), Ie = /* @__PURE__ */ F(xe, [["__scopeId", "data-v-bdd419e3"]]);
516
+ }), Le = /* @__PURE__ */ F(He, [["__scopeId", "data-v-c32ae519"]]);
517
517
  export {
518
- Ie as default
518
+ Le as default
519
519
  };
520
- //# sourceMappingURL=RoutesPage-DmXBJ4J5.js.map
520
+ //# sourceMappingURL=RoutesPage-BgsspZkr.js.map