@burdenoff/microfe-devportal 2026.611.2 → 2026.616.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 (51) hide show
  1. package/dist/devportal/components/SectionNav.js +105 -41
  2. package/dist/devportal/components/SectionNav.js.map +1 -1
  3. package/dist/devportal/hooks/useGraphQL.js +1 -1
  4. package/dist/devportal/pages/AdminReviewPage.js +36 -36
  5. package/dist/devportal/pages/AnalyticsDashboardPage.js +150 -150
  6. package/dist/devportal/pages/AnalyticsDashboardPage.js.map +1 -1
  7. package/dist/devportal/pages/ApiKeysPage.js +184 -172
  8. package/dist/devportal/pages/ApiKeysPage.js.map +1 -1
  9. package/dist/devportal/pages/AppLogsPage.js +9 -9
  10. package/dist/devportal/pages/ApplicationDetailPage.js +414 -414
  11. package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
  12. package/dist/devportal/pages/ApplicationVersionsPage.js +44 -44
  13. package/dist/devportal/pages/ApplicationVersionsPage.js.map +1 -1
  14. package/dist/devportal/pages/ApplicationsPage.js +118 -118
  15. package/dist/devportal/pages/ApplicationsPage.js.map +1 -1
  16. package/dist/devportal/pages/CreateApiKeyPage.js +20 -20
  17. package/dist/devportal/pages/CreateApplicationPage.js +46 -66
  18. package/dist/devportal/pages/CreateApplicationPage.js.map +1 -1
  19. package/dist/devportal/pages/CreateOAuthClientPage.js +20 -20
  20. package/dist/devportal/pages/CreateOrganizationPage.js +125 -442
  21. package/dist/devportal/pages/CreateOrganizationPage.js.map +1 -1
  22. package/dist/devportal/pages/CreateWebhookPage.js +25 -25
  23. package/dist/devportal/pages/DashboardPage.js +160 -145
  24. package/dist/devportal/pages/DashboardPage.js.map +1 -1
  25. package/dist/devportal/pages/DelegationsPage.js +22 -22
  26. package/dist/devportal/pages/EditApplicationPage.js +297 -317
  27. package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
  28. package/dist/devportal/pages/ListingPreviewPage.js +9 -9
  29. package/dist/devportal/pages/OAuthClientDetailPage.js +17 -17
  30. package/dist/devportal/pages/OAuthClientsPage.js +16 -16
  31. package/dist/devportal/pages/OrganizationDetailPage.js +78 -78
  32. package/dist/devportal/pages/OrganizationMembersPage.js +260 -260
  33. package/dist/devportal/pages/OrganizationMembersPage.js.map +1 -1
  34. package/dist/devportal/pages/OrganizationsPage.js +18 -18
  35. package/dist/devportal/pages/PublishPage.js +16 -16
  36. package/dist/devportal/pages/PublisherProfilePage.js +156 -146
  37. package/dist/devportal/pages/PublisherProfilePage.js.map +1 -1
  38. package/dist/devportal/pages/RevenueDashboardPage.js +512 -362
  39. package/dist/devportal/pages/RevenueDashboardPage.js.map +1 -1
  40. package/dist/devportal/pages/SettingsPage.js +17 -17
  41. package/dist/devportal/pages/SetupPage.js +99 -99
  42. package/dist/devportal/pages/SetupPage.js.map +1 -1
  43. package/dist/devportal/pages/WebhookDetailPage.js +143 -143
  44. package/dist/devportal/pages/WebhookDetailPage.js.map +1 -1
  45. package/dist/devportal/pages/WebhooksPage.js +140 -140
  46. package/dist/devportal/pages/WebhooksPage.js.map +1 -1
  47. package/dist/devportal/providers/DevportalProvider.js +46 -33
  48. package/dist/devportal/providers/DevportalProvider.js.map +1 -1
  49. package/dist/generated/global-operations.js +69 -55
  50. package/dist/generated/global-operations.js.map +1 -1
  51. package/package.json +1 -1
@@ -1,27 +1,27 @@
1
1
  import { useDevportal as e } from "../providers/DevportalProvider.js";
2
2
  import { LoadingState as t } from "../components/LoadingState.js";
3
3
  import { EmptyState as n } from "../components/EmptyState.js";
4
- import { PageLayout as r, PageSection as i } from "../components/PageLayout.js";
5
- import { APP_TYPE_LABELS as a } from "../utils/constants.js";
6
- import { StatusBadge as o } from "../components/StatusBadge.js";
7
- import { nativeImpact as s, nativeNotify as c } from "../../utils/nativeBridge.js";
8
- import { CheckboxField as l, InputField as u, SelectField as d, TagInput as f, TextareaField as p } from "../components/FormField.js";
9
- import { ConfirmDialog as m } from "../components/ConfirmDialog.js";
10
- import { useDeactivateAppMutation as h, useDeleteApplicationMutation as ee, useGetApplicationQuery as te, useSubmitApplicationMutation as ne, useUpdateApplicationMutation as re } from "../../generated/global-operations.js";
4
+ import { useDeactivateAppMutation as ee, useDeleteApplicationMutation as te, useGetApplicationQuery as ne, useSubmitApplicationMutation as r, useUpdateApplicationMutation as i } from "../../generated/global-operations.js";
5
+ import { PageLayout as a, PageSection as o } from "../components/PageLayout.js";
6
+ import { APP_TYPE_LABELS as s } from "../utils/constants.js";
7
+ import { StatusBadge as re } from "../components/StatusBadge.js";
8
+ import { nativeImpact as c, nativeNotify as l } from "../../utils/nativeBridge.js";
9
+ import { CheckboxField as u, InputField as d, SelectField as f, TagInput as p, TextareaField as m } from "../components/FormField.js";
10
+ import { ConfirmDialog as h } from "../components/ConfirmDialog.js";
11
11
  import { PermissionGuard as g } from "../components/PermissionGuard.js";
12
12
  import "../components/index.js";
13
13
  import { DEVPORTAL_PERMISSIONS as _ } from "../constants/permissions.js";
14
14
  import { useDevportalPermission as v } from "../hooks/usePermission.js";
15
15
  import { useEffect as y, useState as b } from "react";
16
16
  import { useI18n as x } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
- import { AlertCircle as S, AlertTriangle as C, AppWindow as w, Archive as ie, Power as ae, Save as oe, Send as se, Trash2 as ce } from "lucide-react";
18
- import { useParams as le } from "react-router-dom";
19
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
17
+ import { AlertCircle as S, AlertTriangle as C, AppWindow as w, Archive as T, Power as ie, Save as ae, Send as oe, Trash2 as se } from "lucide-react";
18
+ import { useParams as ce } from "react-router-dom";
19
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
20
20
  //#region src/devportal/pages/EditApplicationPage.tsx
21
- var ue = Object.entries(a).map(([e, t]) => ({
21
+ var le = Object.entries(s).map(([e, t]) => ({
22
22
  value: e,
23
23
  label: t
24
- })), de = [
24
+ })), ue = [
25
25
  {
26
26
  value: "PUBLIC",
27
27
  label: "Public - Visible to everyone"
@@ -38,57 +38,37 @@ var ue = Object.entries(a).map(([e, t]) => ({
38
38
  value: "INTERNAL",
39
39
  label: "Internal - Only visible within organization"
40
40
  }
41
- ], fe = [
41
+ ], de = [
42
42
  {
43
- value: "productivity",
44
- label: "Productivity"
43
+ value: "ai",
44
+ label: "AI & Automation"
45
45
  },
46
46
  {
47
- value: "communication",
48
- label: "Communication"
49
- },
50
- {
51
- value: "analytics",
52
- label: "Analytics"
53
- },
54
- {
55
- value: "automation",
56
- label: "Automation"
57
- },
58
- {
59
- value: "developer-tools",
60
- label: "Developer Tools"
61
- },
62
- {
63
- value: "finance",
64
- label: "Finance"
65
- },
66
- {
67
- value: "hr",
68
- label: "HR & People"
47
+ value: "integration",
48
+ label: "Action in an App"
69
49
  },
70
50
  {
71
- value: "marketing",
72
- label: "Marketing"
51
+ value: "data",
52
+ label: "Data & Transform"
73
53
  },
74
54
  {
75
- value: "project-management",
76
- label: "Project Management"
55
+ value: "flow",
56
+ label: "Flow & Logic"
77
57
  },
78
58
  {
79
- value: "security",
80
- label: "Security"
59
+ value: "core",
60
+ label: "Core"
81
61
  },
82
62
  {
83
- value: "support",
84
- label: "Support"
63
+ value: "communication",
64
+ label: "Communication"
85
65
  },
86
66
  {
87
- value: "other",
88
- label: "Other"
67
+ value: "trigger",
68
+ label: "Triggers"
89
69
  }
90
70
  ];
91
- function pe(e) {
71
+ function fe(e) {
92
72
  return e ? {
93
73
  id: e.id,
94
74
  name: e.name,
@@ -129,21 +109,21 @@ function pe(e) {
129
109
  updatedAt: e.updatedAt
130
110
  } : null;
131
111
  }
132
- var O = () => {
133
- let { navigate: a, basePath: O } = e(), { appId: k } = le(), { t: A } = x(), { allowed: j } = v(_.APP_UPDATE), { allowed: M } = v(_.APP_DELETE), N = (e, t) => {
134
- let n = A(e);
112
+ var k = () => {
113
+ let { navigate: s, basePath: k } = e(), { appId: A } = ce(), { t: j } = x(), { allowed: M } = v(_.APP_UPDATE), { allowed: N } = v(_.APP_DELETE), P = (e, t) => {
114
+ let n = j(e);
135
115
  return n === e ? t : n;
136
- }, [P, F] = b(!1), [I, L] = b({}), [R, z] = b(!1), [B, V] = b(!1), [me, H] = b(!1), [U, W] = b(!1), { data: G, loading: he, error: K } = te({
137
- variables: { id: k },
138
- skip: !k
139
- }), [q] = re(), [ge] = ee(), [_e] = ne(), [ve] = h(), J = pe(G?.application);
116
+ }, [F, I] = b(!1), [L, R] = b({}), [z, B] = b(!1), [V, H] = b(!1), [pe, U] = b(!1), [W, G] = b(!1), { data: K, loading: me, error: q } = ne({
117
+ variables: { id: A },
118
+ skip: !A
119
+ }), [J] = i(), [he] = te(), [ge] = r(), [_e] = ee(), Y = fe(K?.application);
140
120
  y(() => {
141
- let e = J?.name;
142
- if (!k || !e) return;
121
+ let e = Y?.name;
122
+ if (!A || !e) return;
143
123
  let t = window.__breadcrumbRegistry;
144
- return t?.register(k, e), () => t?.unregister(k);
145
- }, [k, J?.name]);
146
- let [Y, X] = b({
124
+ return t?.register(A, e), () => t?.unregister(A);
125
+ }, [A, Y?.name]);
126
+ let [X, Z] = b({
147
127
  name: "",
148
128
  slug: "",
149
129
  shortDescription: "",
@@ -162,376 +142,376 @@ var O = () => {
162
142
  requiresApproval: !1
163
143
  });
164
144
  y(() => {
165
- J && (X({
166
- name: J.name,
167
- slug: J.slug,
168
- shortDescription: J.shortDescription || "",
169
- description: J.description || "",
170
- appType: J.appType,
171
- visibility: J.visibility,
172
- category: J.category || "",
173
- tags: J.tags,
174
- keywords: J.keywords,
175
- websiteUrl: J.websiteUrl || "",
176
- documentationUrl: J.documentationUrl || "",
177
- supportUrl: J.supportUrl || "",
178
- privacyPolicyUrl: J.privacyPolicyUrl || "",
179
- termsOfServiceUrl: J.termsOfServiceUrl || "",
180
- githubUrl: J.githubUrl || "",
181
- requiresApproval: J.requiresApproval
182
- }), W(!1));
183
- }, [G?.application]);
184
- let Z = (e) => {
185
- a?.(`${O}${e}`);
186
- }, Q = (e, t) => {
187
- X((n) => ({
145
+ Y && (Z({
146
+ name: Y.name,
147
+ slug: Y.slug,
148
+ shortDescription: Y.shortDescription || "",
149
+ description: Y.description || "",
150
+ appType: Y.appType,
151
+ visibility: Y.visibility,
152
+ category: Y.category || "",
153
+ tags: Y.tags,
154
+ keywords: Y.keywords,
155
+ websiteUrl: Y.websiteUrl || "",
156
+ documentationUrl: Y.documentationUrl || "",
157
+ supportUrl: Y.supportUrl || "",
158
+ privacyPolicyUrl: Y.privacyPolicyUrl || "",
159
+ termsOfServiceUrl: Y.termsOfServiceUrl || "",
160
+ githubUrl: Y.githubUrl || "",
161
+ requiresApproval: Y.requiresApproval
162
+ }), G(!1));
163
+ }, [K?.application]);
164
+ let Q = (e) => {
165
+ s?.(`${k}${e}`);
166
+ }, $ = (e, t) => {
167
+ Z((n) => ({
188
168
  ...n,
189
169
  [e]: t
190
- })), W(!0), I[e] && L((t) => ({
170
+ })), G(!0), L[e] && R((t) => ({
191
171
  ...t,
192
172
  [e]: void 0
193
173
  }));
194
- }, ye = () => {
174
+ }, ve = () => {
195
175
  let e = {};
196
- return Y.name.trim() ? Y.name.length < 3 ? e.name = N("devportal.appNameMinLength", "Name must be at least 3 characters") : Y.name.length > 100 && (e.name = N("devportal.appNameMaxLength", "Name must be less than 100 characters")) : e.name = N("devportal.appNameRequired", "Application name is required"), Y.slug.trim() ? /^[a-z0-9-]+$/.test(Y.slug) || (e.slug = N("devportal.slugInvalidChars", "Slug can only contain lowercase letters, numbers, and hyphens")) : e.slug = N("devportal.slugRequired", "Slug is required"), Y.shortDescription.trim() ? Y.shortDescription.length > 200 && (e.shortDescription = N("devportal.shortDescriptionMaxLength", "Short description must be less than 200 characters")) : e.shortDescription = N("devportal.shortDescriptionRequired", "Short description is required"), Y.appType || (e.appType = N("devportal.appTypeRequired", "Application type is required")), Y.category || (e.category = N("devportal.categoryRequired", "Category is required")), L(e), Object.keys(e).length === 0;
197
- }, be = async (e) => {
198
- if (e.preventDefault(), !(!ye() || !J)) {
199
- F(!0);
176
+ return X.name.trim() ? X.name.length < 3 ? e.name = P("devportal.appNameMinLength", "Name must be at least 3 characters") : X.name.length > 100 && (e.name = P("devportal.appNameMaxLength", "Name must be less than 100 characters")) : e.name = P("devportal.appNameRequired", "Application name is required"), X.slug.trim() ? /^[a-z0-9-]+$/.test(X.slug) || (e.slug = P("devportal.slugInvalidChars", "Slug can only contain lowercase letters, numbers, and hyphens")) : e.slug = P("devportal.slugRequired", "Slug is required"), X.shortDescription.trim() ? X.shortDescription.length > 200 && (e.shortDescription = P("devportal.shortDescriptionMaxLength", "Short description must be less than 200 characters")) : e.shortDescription = P("devportal.shortDescriptionRequired", "Short description is required"), X.appType || (e.appType = P("devportal.appTypeRequired", "Application type is required")), X.category || (e.category = P("devportal.categoryRequired", "Category is required")), R(e), Object.keys(e).length === 0;
177
+ }, ye = async (e) => {
178
+ if (e.preventDefault(), !(!ve() || !Y)) {
179
+ I(!0);
200
180
  try {
201
- await q({ variables: {
202
- id: J.id,
181
+ await J({ variables: {
182
+ id: Y.id,
203
183
  input: {
204
- name: Y.name,
205
- shortDescription: Y.shortDescription,
206
- description: Y.description,
207
- appType: Y.appType,
208
- visibility: Y.visibility,
209
- category: Y.category,
210
- tags: Y.tags,
211
- keywords: Y.keywords,
212
- websiteUrl: Y.websiteUrl || null,
213
- documentationUrl: Y.documentationUrl || null,
214
- supportUrl: Y.supportUrl || null,
215
- privacyPolicyUrl: Y.privacyPolicyUrl || null,
216
- termsOfServiceUrl: Y.termsOfServiceUrl || null,
217
- githubUrl: Y.githubUrl || null
184
+ name: X.name,
185
+ shortDescription: X.shortDescription,
186
+ description: X.description,
187
+ appType: X.appType,
188
+ visibility: X.visibility,
189
+ category: X.category,
190
+ tags: X.tags,
191
+ keywords: X.keywords,
192
+ websiteUrl: X.websiteUrl || null,
193
+ documentationUrl: X.documentationUrl || null,
194
+ supportUrl: X.supportUrl || null,
195
+ privacyPolicyUrl: X.privacyPolicyUrl || null,
196
+ termsOfServiceUrl: X.termsOfServiceUrl || null,
197
+ githubUrl: X.githubUrl || null
218
198
  }
219
- } }), W(!1);
199
+ } }), G(!1);
220
200
  } catch (e) {
221
201
  console.error("Failed to update application:", e);
222
202
  } finally {
223
- F(!1);
203
+ I(!1);
224
204
  }
225
205
  }
226
- }, xe = async () => {
227
- if (J) {
228
- s("medium");
206
+ }, be = async () => {
207
+ if (Y) {
208
+ c("medium");
229
209
  try {
230
- await ge({ variables: { id: J.id } }), c("success"), Z("/apps");
210
+ await he({ variables: { id: Y.id } }), l("success"), Q("/apps");
231
211
  } catch (e) {
232
- c("error"), console.error("Failed to delete application:", e);
212
+ l("error"), console.error("Failed to delete application:", e);
233
213
  }
234
214
  }
235
- }, Se = async () => {
236
- if (J) try {
237
- await q({ variables: {
238
- id: J.id,
215
+ }, xe = async () => {
216
+ if (Y) try {
217
+ await J({ variables: {
218
+ id: Y.id,
239
219
  input: { visibility: "PRIVATE" }
240
- } }), V(!1);
220
+ } }), H(!1);
241
221
  } catch (e) {
242
222
  console.error("Failed to deprecate application:", e);
243
223
  }
244
- }, Ce = async () => {
245
- if (J) try {
246
- await ve({ variables: { id: J.id } }), H(!1), Z("/apps");
224
+ }, Se = async () => {
225
+ if (Y) try {
226
+ await _e({ variables: { id: Y.id } }), U(!1), Q("/apps");
247
227
  } catch (e) {
248
228
  console.error("Failed to deactivate application:", e);
249
229
  }
250
- }, $ = async () => {
251
- if (J) try {
252
- F(!0), await _e({ variables: { id: J.id } });
230
+ }, Ce = async () => {
231
+ if (Y) try {
232
+ I(!0), await ge({ variables: { id: Y.id } });
253
233
  } catch (e) {
254
234
  console.error("Failed to submit for review:", e);
255
235
  } finally {
256
- F(!1);
236
+ I(!1);
257
237
  }
258
238
  };
259
- if (he) return /* @__PURE__ */ E(t, { message: N("devportal.loadingApplication", "Loading application...") });
260
- if (K) return /* @__PURE__ */ E(r, {
261
- title: N("devportal.error", "Error"),
262
- backLink: `${O}/apps`,
263
- backLabel: N("devportal.backToApplications", "Back to Applications"),
264
- children: /* @__PURE__ */ D("div", {
239
+ if (me) return /* @__PURE__ */ D(t, { message: P("devportal.loadingApplication", "Loading application...") });
240
+ if (q) return /* @__PURE__ */ D(a, {
241
+ title: P("devportal.error", "Error"),
242
+ backLink: `${k}/apps`,
243
+ backLabel: P("devportal.backToApplications", "Back to Applications"),
244
+ children: /* @__PURE__ */ O("div", {
265
245
  className: "flex flex-col items-center justify-center py-12 text-center",
266
246
  children: [
267
- /* @__PURE__ */ E(S, {
247
+ /* @__PURE__ */ D(S, {
268
248
  size: 48,
269
249
  className: "text-destructive mb-4"
270
250
  }),
271
- /* @__PURE__ */ E("h3", {
251
+ /* @__PURE__ */ D("h3", {
272
252
  className: "text-lg font-semibold mb-2",
273
- children: N("devportal.failedToLoadApplication", "Failed to load application")
253
+ children: P("devportal.failedToLoadApplication", "Failed to load application")
274
254
  }),
275
- /* @__PURE__ */ E("p", {
255
+ /* @__PURE__ */ D("p", {
276
256
  className: "text-sm text-muted-foreground",
277
- children: K.message
257
+ children: q.message
278
258
  })
279
259
  ]
280
260
  })
281
261
  });
282
- if (!J) return /* @__PURE__ */ E(r, {
283
- title: N("devportal.notFound", "Not Found"),
284
- backLink: `${O}/apps`,
285
- backLabel: N("devportal.backToApplications", "Back to Applications"),
286
- children: /* @__PURE__ */ E(n, {
287
- icon: /* @__PURE__ */ E(w, { size: 48 }),
288
- title: N("devportal.applicationNotFound", "Application not found"),
289
- description: N("devportal.applicationNotFoundDescription", "The application you're looking for doesn't exist or you don't have access to it.")
262
+ if (!Y) return /* @__PURE__ */ D(a, {
263
+ title: P("devportal.notFound", "Not Found"),
264
+ backLink: `${k}/apps`,
265
+ backLabel: P("devportal.backToApplications", "Back to Applications"),
266
+ children: /* @__PURE__ */ D(n, {
267
+ icon: /* @__PURE__ */ D(w, { size: 48 }),
268
+ title: P("devportal.applicationNotFound", "Application not found"),
269
+ description: P("devportal.applicationNotFoundDescription", "The application you're looking for doesn't exist or you don't have access to it.")
290
270
  })
291
271
  });
292
- let we = J.status === "DRAFT" || J.status === "REJECTED", Te = J.status === "PUBLISHED", Ee = J.status === "ACTIVE" || J.status === "PUBLISHED";
293
- return /* @__PURE__ */ E(g, {
272
+ let we = Y.status === "DRAFT" || Y.status === "REJECTED", Te = Y.status === "PUBLISHED", Ee = Y.status === "ACTIVE" || Y.status === "PUBLISHED";
273
+ return /* @__PURE__ */ D(g, {
294
274
  permission: _.APP_UPDATE,
295
- children: /* @__PURE__ */ D(r, {
296
- title: `${N("devportal.editAppTitlePrefix", "Edit:")} ${J.name}`,
297
- description: N("devportal.editAppDescription", "Update your application settings"),
298
- backLink: `${O}/apps/${J.id}`,
299
- backLabel: N("devportal.backToApplication", "Back to Application"),
300
- actions: /* @__PURE__ */ E("div", {
275
+ children: /* @__PURE__ */ O(a, {
276
+ title: `${P("devportal.editAppTitlePrefix", "Edit:")} ${Y.name}`,
277
+ description: P("devportal.editAppDescription", "Update your application settings"),
278
+ backLink: `${k}/apps/${Y.id}`,
279
+ backLabel: P("devportal.backToApplication", "Back to Application"),
280
+ actions: /* @__PURE__ */ D("div", {
301
281
  className: "flex items-center gap-2",
302
- children: /* @__PURE__ */ E(o, {
303
- status: J.status,
282
+ children: /* @__PURE__ */ D(re, {
283
+ status: Y.status,
304
284
  type: "app"
305
285
  })
306
286
  }),
307
287
  children: [
308
- /* @__PURE__ */ D("form", {
309
- onSubmit: be,
288
+ /* @__PURE__ */ O("form", {
289
+ onSubmit: ye,
310
290
  className: "space-y-8 max-w-3xl",
311
291
  children: [
312
- J.status === "PUBLISHED" && /* @__PURE__ */ D("div", {
292
+ Y.status === "PUBLISHED" && /* @__PURE__ */ O("div", {
313
293
  className: "rounded-lg border border-border-subtle bg-status-warning-bg-subtle p-4 flex gap-3",
314
- children: [/* @__PURE__ */ E(C, {
294
+ children: [/* @__PURE__ */ D(C, {
315
295
  size: 20,
316
296
  className: "text-status-warning-text flex-shrink-0 mt-0.5"
317
- }), /* @__PURE__ */ D("div", {
297
+ }), /* @__PURE__ */ O("div", {
318
298
  className: "text-sm text-status-warning-text",
319
- children: [/* @__PURE__ */ E("p", {
299
+ children: [/* @__PURE__ */ D("p", {
320
300
  className: "font-medium",
321
- children: N("devportal.appIsPublished", "This application is published")
322
- }), /* @__PURE__ */ E("p", {
301
+ children: P("devportal.appIsPublished", "This application is published")
302
+ }), /* @__PURE__ */ D("p", {
323
303
  className: "mt-1 text-status-warning-text",
324
- children: N("devportal.publishedAppChangesWarning", "Changes to published apps may require re-review. Major changes will put the app back into review status.")
304
+ children: P("devportal.publishedAppChangesWarning", "Changes to published apps may require re-review. Major changes will put the app back into review status.")
325
305
  })]
326
306
  })]
327
307
  }),
328
- /* @__PURE__ */ E(i, {
329
- title: N("devportal.basicInformation", "Basic Information"),
330
- description: N("devportal.basicInformationDescription", "Core details about your application"),
331
- children: /* @__PURE__ */ D("div", {
308
+ /* @__PURE__ */ D(o, {
309
+ title: P("devportal.basicInformation", "Basic Information"),
310
+ description: P("devportal.basicInformationDescription", "Core details about your application"),
311
+ children: /* @__PURE__ */ O("div", {
332
312
  className: "space-y-4",
333
313
  children: [
334
- /* @__PURE__ */ E(u, {
335
- label: N("devportal.applicationName", "Application Name"),
336
- value: Y.name,
337
- onChange: (e) => Q("name", e.target.value),
338
- placeholder: N("devportal.applicationNamePlaceholder", "My Awesome App"),
314
+ /* @__PURE__ */ D(d, {
315
+ label: P("devportal.applicationName", "Application Name"),
316
+ value: X.name,
317
+ onChange: (e) => $("name", e.target.value),
318
+ placeholder: P("devportal.applicationNamePlaceholder", "My Awesome App"),
339
319
  required: !0,
340
- error: I.name
320
+ error: L.name
341
321
  }),
342
- /* @__PURE__ */ E(u, {
343
- label: N("devportal.slug", "Slug"),
344
- value: Y.slug,
345
- onChange: (e) => Q("slug", e.target.value.toLowerCase()),
346
- placeholder: N("devportal.slugPlaceholder", "my-awesome-app"),
322
+ /* @__PURE__ */ D(d, {
323
+ label: P("devportal.slug", "Slug"),
324
+ value: X.slug,
325
+ onChange: (e) => $("slug", e.target.value.toLowerCase()),
326
+ placeholder: P("devportal.slugPlaceholder", "my-awesome-app"),
347
327
  required: !0,
348
- error: I.slug,
349
- hint: N("devportal.slugChangeWarning", "Changing the slug may break existing integrations")
328
+ error: L.slug,
329
+ hint: P("devportal.slugChangeWarning", "Changing the slug may break existing integrations")
350
330
  }),
351
- /* @__PURE__ */ E(p, {
352
- label: N("devportal.shortDescription", "Short Description"),
353
- value: Y.shortDescription,
354
- onChange: (e) => Q("shortDescription", e.target.value),
355
- placeholder: N("devportal.shortDescriptionPlaceholder", "A brief description of what your app does"),
331
+ /* @__PURE__ */ D(m, {
332
+ label: P("devportal.shortDescription", "Short Description"),
333
+ value: X.shortDescription,
334
+ onChange: (e) => $("shortDescription", e.target.value),
335
+ placeholder: P("devportal.shortDescriptionPlaceholder", "A brief description of what your app does"),
356
336
  required: !0,
357
- error: I.shortDescription,
358
- hint: `${Y.shortDescription.length}/200 ${N("devportal.characters", "characters")}`,
337
+ error: L.shortDescription,
338
+ hint: `${X.shortDescription.length}/200 ${P("devportal.characters", "characters")}`,
359
339
  rows: 2
360
340
  }),
361
- /* @__PURE__ */ E(p, {
362
- label: N("devportal.fullDescription", "Full Description"),
363
- value: Y.description,
364
- onChange: (e) => Q("description", e.target.value),
365
- placeholder: N("devportal.fullDescriptionPlaceholder", "Detailed description of your application, features, and use cases..."),
341
+ /* @__PURE__ */ D(m, {
342
+ label: P("devportal.fullDescription", "Full Description"),
343
+ value: X.description,
344
+ onChange: (e) => $("description", e.target.value),
345
+ placeholder: P("devportal.fullDescriptionPlaceholder", "Detailed description of your application, features, and use cases..."),
366
346
  rows: 6,
367
- hint: N("devportal.markdownSupported", "Markdown formatting is supported")
347
+ hint: P("devportal.markdownSupported", "Markdown formatting is supported")
368
348
  })
369
349
  ]
370
350
  })
371
351
  }),
372
- /* @__PURE__ */ D(i, {
373
- title: N("devportal.classification", "Classification"),
374
- description: N("devportal.classificationDescription", "Categorize your application"),
352
+ /* @__PURE__ */ O(o, {
353
+ title: P("devportal.classification", "Classification"),
354
+ description: P("devportal.classificationDescription", "Categorize your application"),
375
355
  children: [
376
- /* @__PURE__ */ D("div", {
356
+ /* @__PURE__ */ O("div", {
377
357
  className: "grid gap-4 sm:grid-cols-2",
378
358
  children: [
379
- /* @__PURE__ */ E(d, {
380
- label: N("devportal.applicationType", "Application Type"),
381
- value: Y.appType,
382
- onChange: (e) => Q("appType", e.target.value),
383
- options: ue,
359
+ /* @__PURE__ */ D(f, {
360
+ label: P("devportal.applicationType", "Application Type"),
361
+ value: X.appType,
362
+ onChange: (e) => $("appType", e.target.value),
363
+ options: le,
384
364
  required: !0,
385
- error: I.appType
365
+ error: L.appType
386
366
  }),
387
- /* @__PURE__ */ E(d, {
388
- label: N("devportal.category", "Category"),
389
- value: Y.category,
390
- onChange: (e) => Q("category", e.target.value),
391
- options: fe,
367
+ /* @__PURE__ */ D(f, {
368
+ label: P("devportal.category", "Category"),
369
+ value: X.category,
370
+ onChange: (e) => $("category", e.target.value),
371
+ options: de,
392
372
  required: !0,
393
- error: I.category
373
+ error: L.category
394
374
  }),
395
- /* @__PURE__ */ E(d, {
396
- label: N("devportal.visibility", "Visibility"),
397
- value: Y.visibility,
398
- onChange: (e) => Q("visibility", e.target.value),
399
- options: de,
400
- hint: N("devportal.visibilityHint", "Controls who can see this app once published. Public apps still require admin review and approval before appearing in the store.")
375
+ /* @__PURE__ */ D(f, {
376
+ label: P("devportal.visibility", "Visibility"),
377
+ value: X.visibility,
378
+ onChange: (e) => $("visibility", e.target.value),
379
+ options: ue,
380
+ hint: P("devportal.visibilityHint", "Controls who can see this app once published. Public apps still require admin review and approval before appearing in the store.")
401
381
  })
402
382
  ]
403
383
  }),
404
- /* @__PURE__ */ E(f, {
405
- label: N("devportal.tags", "Tags"),
406
- value: Y.tags,
407
- onChange: (e) => Q("tags", e),
408
- placeholder: N("devportal.addTagsPlaceholder", "Add tags (press Enter)")
384
+ /* @__PURE__ */ D(p, {
385
+ label: P("devportal.tags", "Tags"),
386
+ value: X.tags,
387
+ onChange: (e) => $("tags", e),
388
+ placeholder: P("devportal.addTagsPlaceholder", "Add tags (press Enter)")
409
389
  }),
410
- /* @__PURE__ */ E(f, {
411
- label: N("devportal.keywords", "Keywords"),
412
- value: Y.keywords,
413
- onChange: (e) => Q("keywords", e),
414
- placeholder: N("devportal.addKeywordsPlaceholder", "Add keywords (press Enter)")
390
+ /* @__PURE__ */ D(p, {
391
+ label: P("devportal.keywords", "Keywords"),
392
+ value: X.keywords,
393
+ onChange: (e) => $("keywords", e),
394
+ placeholder: P("devportal.addKeywordsPlaceholder", "Add keywords (press Enter)")
415
395
  })
416
396
  ]
417
397
  }),
418
- /* @__PURE__ */ E(i, {
419
- title: N("devportal.links", "Links"),
420
- description: N("devportal.linksDescription", "External resources for your application"),
421
- children: /* @__PURE__ */ D("div", {
398
+ /* @__PURE__ */ D(o, {
399
+ title: P("devportal.links", "Links"),
400
+ description: P("devportal.linksDescription", "External resources for your application"),
401
+ children: /* @__PURE__ */ O("div", {
422
402
  className: "grid gap-4 sm:grid-cols-2",
423
403
  children: [
424
- /* @__PURE__ */ E(u, {
425
- label: N("devportal.websiteUrl", "Website URL"),
404
+ /* @__PURE__ */ D(d, {
405
+ label: P("devportal.websiteUrl", "Website URL"),
426
406
  type: "url",
427
- value: Y.websiteUrl,
428
- onChange: (e) => Q("websiteUrl", e.target.value),
429
- placeholder: N("devportal.websiteUrlPlaceholder", "https://example.com")
407
+ value: X.websiteUrl,
408
+ onChange: (e) => $("websiteUrl", e.target.value),
409
+ placeholder: P("devportal.websiteUrlPlaceholder", "https://example.com")
430
410
  }),
431
- /* @__PURE__ */ E(u, {
432
- label: N("devportal.documentationUrl", "Documentation URL"),
411
+ /* @__PURE__ */ D(d, {
412
+ label: P("devportal.documentationUrl", "Documentation URL"),
433
413
  type: "url",
434
- value: Y.documentationUrl,
435
- onChange: (e) => Q("documentationUrl", e.target.value),
436
- placeholder: N("devportal.documentationUrlPlaceholder", "https://docs.example.com")
414
+ value: X.documentationUrl,
415
+ onChange: (e) => $("documentationUrl", e.target.value),
416
+ placeholder: P("devportal.documentationUrlPlaceholder", "https://docs.example.com")
437
417
  }),
438
- /* @__PURE__ */ E(u, {
439
- label: N("devportal.supportUrl", "Support URL"),
418
+ /* @__PURE__ */ D(d, {
419
+ label: P("devportal.supportUrl", "Support URL"),
440
420
  type: "url",
441
- value: Y.supportUrl,
442
- onChange: (e) => Q("supportUrl", e.target.value),
443
- placeholder: N("devportal.supportUrlPlaceholder", "https://support.example.com")
421
+ value: X.supportUrl,
422
+ onChange: (e) => $("supportUrl", e.target.value),
423
+ placeholder: P("devportal.supportUrlPlaceholder", "https://support.example.com")
444
424
  }),
445
- /* @__PURE__ */ E(u, {
446
- label: N("devportal.githubUrl", "GitHub URL"),
425
+ /* @__PURE__ */ D(d, {
426
+ label: P("devportal.githubUrl", "GitHub URL"),
447
427
  type: "url",
448
- value: Y.githubUrl,
449
- onChange: (e) => Q("githubUrl", e.target.value),
450
- placeholder: N("devportal.githubUrlPlaceholder", "https://github.com/org/repo")
428
+ value: X.githubUrl,
429
+ onChange: (e) => $("githubUrl", e.target.value),
430
+ placeholder: P("devportal.githubUrlPlaceholder", "https://github.com/org/repo")
451
431
  }),
452
- /* @__PURE__ */ E(u, {
453
- label: N("devportal.privacyPolicyUrl", "Privacy Policy URL"),
432
+ /* @__PURE__ */ D(d, {
433
+ label: P("devportal.privacyPolicyUrl", "Privacy Policy URL"),
454
434
  type: "url",
455
- value: Y.privacyPolicyUrl,
456
- onChange: (e) => Q("privacyPolicyUrl", e.target.value),
457
- placeholder: N("devportal.privacyPolicyUrlPlaceholder", "https://example.com/privacy")
435
+ value: X.privacyPolicyUrl,
436
+ onChange: (e) => $("privacyPolicyUrl", e.target.value),
437
+ placeholder: P("devportal.privacyPolicyUrlPlaceholder", "https://example.com/privacy")
458
438
  }),
459
- /* @__PURE__ */ E(u, {
460
- label: N("devportal.termsOfServiceUrl", "Terms of Service URL"),
439
+ /* @__PURE__ */ D(d, {
440
+ label: P("devportal.termsOfServiceUrl", "Terms of Service URL"),
461
441
  type: "url",
462
- value: Y.termsOfServiceUrl,
463
- onChange: (e) => Q("termsOfServiceUrl", e.target.value),
464
- placeholder: N("devportal.termsOfServiceUrlPlaceholder", "https://example.com/terms")
442
+ value: X.termsOfServiceUrl,
443
+ onChange: (e) => $("termsOfServiceUrl", e.target.value),
444
+ placeholder: P("devportal.termsOfServiceUrlPlaceholder", "https://example.com/terms")
465
445
  })
466
446
  ]
467
447
  })
468
448
  }),
469
- /* @__PURE__ */ E(i, {
470
- title: N("devportal.settings", "Settings"),
471
- description: N("devportal.settingsDescription", "Additional configuration options"),
472
- children: /* @__PURE__ */ E("div", {
449
+ /* @__PURE__ */ D(o, {
450
+ title: P("devportal.settings", "Settings"),
451
+ description: P("devportal.settingsDescription", "Additional configuration options"),
452
+ children: /* @__PURE__ */ D("div", {
473
453
  className: "space-y-4",
474
- children: /* @__PURE__ */ E(l, {
475
- label: N("devportal.requireWorkspaceAdminApproval", "Require workspace admin approval"),
476
- description: N("devportal.requireWorkspaceAdminApprovalDescription", "When enabled, workspace admins must approve installations before users can access this app"),
477
- checked: Y.requiresApproval,
478
- onChange: (e) => Q("requiresApproval", e.target.checked)
454
+ children: /* @__PURE__ */ D(u, {
455
+ label: P("devportal.requireWorkspaceAdminApproval", "Require workspace admin approval"),
456
+ description: P("devportal.requireWorkspaceAdminApprovalDescription", "When enabled, workspace admins must approve installations before users can access this app"),
457
+ checked: X.requiresApproval,
458
+ onChange: (e) => $("requiresApproval", e.target.checked)
479
459
  })
480
460
  })
481
461
  }),
482
- /* @__PURE__ */ D("div", {
462
+ /* @__PURE__ */ O("div", {
483
463
  className: "flex flex-col gap-4 border-t pt-6",
484
- children: [/* @__PURE__ */ D("div", {
464
+ children: [/* @__PURE__ */ O("div", {
485
465
  className: "flex items-center justify-between",
486
- children: [/* @__PURE__ */ E("div", {
466
+ children: [/* @__PURE__ */ D("div", {
487
467
  className: "flex items-center gap-2",
488
- children: we && /* @__PURE__ */ D("button", {
468
+ children: we && /* @__PURE__ */ O("button", {
489
469
  type: "button",
490
- onClick: $,
491
- disabled: P || U,
470
+ onClick: Ce,
471
+ disabled: F || W,
492
472
  className: "inline-flex items-center gap-2 rounded-md border border-primary bg-primary/10 px-4 py-2 text-sm font-medium text-primary hover:bg-primary/20 transition-colors disabled:opacity-50",
493
- children: [/* @__PURE__ */ E(se, { size: 16 }), N("devportal.submitForReview", "Submit for Review")]
473
+ children: [/* @__PURE__ */ D(oe, { size: 16 }), P("devportal.submitForReview", "Submit for Review")]
494
474
  })
495
- }), /* @__PURE__ */ E("button", {
475
+ }), /* @__PURE__ */ D("button", {
496
476
  type: "submit",
497
- disabled: P || !U || !j,
498
- "aria-disabled": !j,
477
+ disabled: F || !W || !M,
478
+ "aria-disabled": !M,
499
479
  className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors disabled:opacity-50",
500
- children: P ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), N("devportal.saving", "Saving...")] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(oe, { size: 16 }), N("devportal.saveChanges", "Save Changes")] })
480
+ children: F ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("span", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), P("devportal.saving", "Saving...")] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(ae, { size: 16 }), P("devportal.saveChanges", "Save Changes")] })
501
481
  })]
502
- }), /* @__PURE__ */ D("div", {
482
+ }), /* @__PURE__ */ O("div", {
503
483
  className: "rounded-lg border border-border-subtle bg-status-error-bg-subtle p-4",
504
484
  children: [
505
- /* @__PURE__ */ E("h3", {
485
+ /* @__PURE__ */ D("h3", {
506
486
  className: "text-sm font-medium text-status-error-text",
507
- children: N("devportal.dangerZone", "Danger Zone")
487
+ children: P("devportal.dangerZone", "Danger Zone")
508
488
  }),
509
- /* @__PURE__ */ E("p", {
489
+ /* @__PURE__ */ D("p", {
510
490
  className: "mt-1 text-sm text-status-error-text",
511
- children: N("devportal.dangerZoneWarning", "These actions are irreversible. Please proceed with caution.")
491
+ children: P("devportal.dangerZoneWarning", "These actions are irreversible. Please proceed with caution.")
512
492
  }),
513
- /* @__PURE__ */ D("div", {
493
+ /* @__PURE__ */ O("div", {
514
494
  className: "mt-4 flex gap-3",
515
495
  children: [
516
- Te && /* @__PURE__ */ D("button", {
496
+ Te && /* @__PURE__ */ O("button", {
517
497
  type: "button",
518
- onClick: () => V(!0),
498
+ onClick: () => H(!0),
519
499
  className: "inline-flex items-center gap-2 rounded-md border border-accent-orange bg-bg-surface px-3 py-1.5 text-sm font-medium text-accent-orange hover:bg-accent-orange-subtle transition-colors",
520
- children: [/* @__PURE__ */ E(ie, { size: 14 }), N("devportal.deprecateApp", "Deprecate App")]
500
+ children: [/* @__PURE__ */ D(T, { size: 14 }), P("devportal.deprecateApp", "Deprecate App")]
521
501
  }),
522
- Ee && /* @__PURE__ */ D("button", {
502
+ Ee && /* @__PURE__ */ O("button", {
523
503
  type: "button",
524
- onClick: () => H(!0),
504
+ onClick: () => U(!0),
525
505
  className: "inline-flex items-center gap-2 rounded-md border border-accent-orange bg-bg-surface px-3 py-1.5 text-sm font-medium text-accent-orange hover:bg-accent-orange-subtle transition-colors",
526
- children: [/* @__PURE__ */ E(ae, { size: 14 }), N("devportal.deactivateApp", "Deactivate App")]
506
+ children: [/* @__PURE__ */ D(ie, { size: 14 }), P("devportal.deactivateApp", "Deactivate App")]
527
507
  }),
528
- /* @__PURE__ */ D("button", {
508
+ /* @__PURE__ */ O("button", {
529
509
  type: "button",
530
- onClick: () => z(!0),
531
- disabled: !M,
532
- "aria-disabled": !M,
510
+ onClick: () => B(!0),
511
+ disabled: !N,
512
+ "aria-disabled": !N,
533
513
  className: "inline-flex items-center gap-2 rounded-md border border-status-error-bg bg-bg-surface px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle transition-colors disabled:opacity-50",
534
- children: [/* @__PURE__ */ E(ce, { size: 14 }), N("devportal.deleteApp", "Delete App")]
514
+ children: [/* @__PURE__ */ D(se, { size: 14 }), P("devportal.deleteApp", "Delete App")]
535
515
  })
536
516
  ]
537
517
  })
@@ -540,38 +520,38 @@ var O = () => {
540
520
  })
541
521
  ]
542
522
  }),
543
- /* @__PURE__ */ E(m, {
544
- open: R,
545
- onOpenChange: z,
546
- title: N("devportal.deleteApplication", "Delete Application"),
547
- description: N("devportal.deleteApplicationConfirm", `Are you sure you want to delete "${J.name}"? This action cannot be undone. All OAuth clients, API keys, webhooks, and analytics data will be permanently deleted.`),
548
- confirmLabel: N("devportal.deleteApplication", "Delete Application"),
523
+ /* @__PURE__ */ D(h, {
524
+ open: z,
525
+ onOpenChange: B,
526
+ title: P("devportal.deleteApplication", "Delete Application"),
527
+ description: P("devportal.deleteApplicationConfirm", `Are you sure you want to delete "${Y.name}"? This action cannot be undone. All OAuth clients, API keys, webhooks, and analytics data will be permanently deleted.`),
528
+ confirmLabel: P("devportal.deleteApplication", "Delete Application"),
549
529
  variant: "destructive",
550
- onConfirm: xe
530
+ onConfirm: be
551
531
  }),
552
- /* @__PURE__ */ E(m, {
553
- open: B,
554
- onOpenChange: V,
555
- title: N("devportal.deprecateApplication", "Deprecate Application"),
556
- description: N("devportal.deprecateApplicationConfirm", `Are you sure you want to deprecate "${J.name}"? Existing users will still be able to use the app, but it will no longer be visible in the marketplace and new installations will be disabled.`),
557
- confirmLabel: N("devportal.deprecateApplication", "Deprecate Application"),
532
+ /* @__PURE__ */ D(h, {
533
+ open: V,
534
+ onOpenChange: H,
535
+ title: P("devportal.deprecateApplication", "Deprecate Application"),
536
+ description: P("devportal.deprecateApplicationConfirm", `Are you sure you want to deprecate "${Y.name}"? Existing users will still be able to use the app, but it will no longer be visible in the marketplace and new installations will be disabled.`),
537
+ confirmLabel: P("devportal.deprecateApplication", "Deprecate Application"),
558
538
  variant: "warning",
559
- onConfirm: Se
539
+ onConfirm: xe
560
540
  }),
561
- /* @__PURE__ */ E(m, {
562
- open: me,
563
- onOpenChange: H,
564
- title: N("devportal.deactivateApplication", "Deactivate Application"),
565
- description: N("devportal.deactivateApplicationConfirm", `Are you sure you want to deactivate "${J.name}"? This will revoke all active tokens and disable the app from the auth-svc layer. The app will no longer be able to authenticate or act on behalf of users.`),
566
- confirmLabel: N("devportal.deactivateApplication", "Deactivate Application"),
541
+ /* @__PURE__ */ D(h, {
542
+ open: pe,
543
+ onOpenChange: U,
544
+ title: P("devportal.deactivateApplication", "Deactivate Application"),
545
+ description: P("devportal.deactivateApplicationConfirm", `Are you sure you want to deactivate "${Y.name}"? This will revoke all active tokens and disable the app from the auth-svc layer. The app will no longer be able to authenticate or act on behalf of users.`),
546
+ confirmLabel: P("devportal.deactivateApplication", "Deactivate Application"),
567
547
  variant: "destructive",
568
- onConfirm: Ce
548
+ onConfirm: Se
569
549
  })
570
550
  ]
571
551
  })
572
552
  });
573
553
  };
574
554
  //#endregion
575
- export { O as EditApplicationPage };
555
+ export { k as EditApplicationPage };
576
556
 
577
557
  //# sourceMappingURL=EditApplicationPage.js.map