@burdenoff/microfe-devportal 2026.728.2 → 2026.801.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.
- package/dist/__tests__/utils/renderWithProviders.d.ts +1 -1
- package/dist/__tests__/utils/renderWithProviders.d.ts.map +1 -1
- package/dist/devportal/AdminDevportalRoutes.js +14 -14
- package/dist/devportal/AdminDevportalRoutes.js.map +1 -1
- package/dist/devportal/DevportalRoutes.js +115 -115
- package/dist/devportal/DevportalRoutes.js.map +1 -1
- package/dist/devportal/components/SectionNav.js +0 -1
- package/dist/devportal/components/SectionNav.js.map +1 -1
- package/dist/devportal/components/TelemetryErrorBoundary.js +7 -7
- package/dist/devportal/components/TelemetryErrorBoundary.js.map +1 -1
- package/dist/devportal/pages/AnalyticsDashboardPage.js +41 -41
- package/dist/devportal/pages/AnalyticsDashboardPage.js.map +1 -1
- package/dist/devportal/pages/AppLogsPage.js +27 -27
- package/dist/devportal/pages/AppLogsPage.js.map +1 -1
- package/dist/devportal/pages/ApplicationDetailPage.js +929 -929
- package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
- package/dist/devportal/pages/ApplicationVersionsPage.js +39 -39
- package/dist/devportal/pages/ApplicationVersionsPage.js.map +1 -1
- package/dist/devportal/pages/CreateWebhookPage.js +55 -55
- package/dist/devportal/pages/CreateWebhookPage.js.map +1 -1
- package/dist/devportal/pages/EditApplicationPage.js +36 -36
- package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
- package/dist/devportal/pages/EditPhysicalItemPage.js +40 -40
- package/dist/devportal/pages/EditPhysicalItemPage.js.map +1 -1
- package/dist/devportal/pages/InvitationDecisionPage.js +25 -25
- package/dist/devportal/pages/InvitationDecisionPage.js.map +1 -1
- package/dist/devportal/pages/ListingPreviewPage.js +36 -36
- package/dist/devportal/pages/ListingPreviewPage.js.map +1 -1
- package/dist/devportal/pages/OAuthCallbackPage.js +10 -10
- package/dist/devportal/pages/OAuthCallbackPage.js.map +1 -1
- package/dist/devportal/pages/OAuthClientDetailPage.js +27 -27
- package/dist/devportal/pages/OAuthClientDetailPage.js.map +1 -1
- package/dist/devportal/pages/OrganizationDetailPage.js +329 -329
- package/dist/devportal/pages/OrganizationDetailPage.js.map +1 -1
- package/dist/devportal/pages/OrganizationMembersPage.js +181 -181
- package/dist/devportal/pages/OrganizationMembersPage.js.map +1 -1
- package/dist/devportal/pages/PublishPage.js +43 -43
- package/dist/devportal/pages/PublishPage.js.map +1 -1
- package/dist/devportal/pages/RevenueDashboardPage.js +65 -65
- package/dist/devportal/pages/RevenueDashboardPage.js.map +1 -1
- package/dist/devportal/pages/StoreSubmissionPage.js +126 -126
- package/dist/devportal/pages/StoreSubmissionPage.js.map +1 -1
- package/dist/devportal/pages/WebhookDetailPage.js +28 -28
- package/dist/devportal/pages/WebhookDetailPage.js.map +1 -1
- package/dist/devportal/pages/WebhooksPage.js +47 -47
- package/dist/devportal/pages/WebhooksPage.js.map +1 -1
- package/dist/devportal/providers/DevportalProvider.js +12 -12
- package/dist/devportal/providers/DevportalProvider.js.map +1 -1
- package/dist/node_modules/react-router/dist/production/lib/components.js +124 -0
- package/dist/node_modules/react-router/dist/production/lib/components.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/context.js +32 -0
- package/dist/node_modules/react-router/dist/production/lib/context.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/dom.js +83 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/dom.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/lib.js +358 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/lib.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/components.js +188 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/components.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/invariant.js +8 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/invariant.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/links.js +75 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/links.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/markup.js +15 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/markup.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/routeModules.js +18 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/routeModules.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/single-fetch.js +10 -0
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/single-fetch.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/errors.js +19 -0
- package/dist/node_modules/react-router/dist/production/lib/errors.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/hooks.js +296 -0
- package/dist/node_modules/react-router/dist/production/lib/hooks.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/router/history.js +166 -0
- package/dist/node_modules/react-router/dist/production/lib/router/history.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/router/router.js +33 -0
- package/dist/node_modules/react-router/dist/production/lib/router/router.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/router/url.js +9 -0
- package/dist/node_modules/react-router/dist/production/lib/router/url.js.map +1 -0
- package/dist/node_modules/react-router/dist/production/lib/router/utils.js +236 -0
- package/dist/node_modules/react-router/dist/production/lib/router/utils.js.map +1 -0
- package/package.json +3 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useNavigate as e, useParams as t } from "../../node_modules/react-router/dist/production/lib/hooks.js";
|
|
2
|
+
import { useDevportalEventBus as n } from "../events/index.js";
|
|
3
|
+
import { useDevportalPermission as r } from "../hooks/usePermission.js";
|
|
3
4
|
import "../hooks/index.js";
|
|
4
|
-
import { DEVPORTAL_PERMISSIONS as
|
|
5
|
-
import { useTr as
|
|
6
|
-
import { useEffect as
|
|
7
|
-
import { AlertTriangle as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { graphqlFetch as _ } from "@burdenoff/fe-libs/shared/graphql";
|
|
5
|
+
import { DEVPORTAL_PERMISSIONS as i } from "../constants/permissions.js";
|
|
6
|
+
import { useTr as a } from "../utils/i18n.js";
|
|
7
|
+
import { useEffect as o, useState as s } from "react";
|
|
8
|
+
import { AlertTriangle as c, ArrowLeft as l, CheckCircle2 as u, Clock as d, EyeOff as f, GitBranch as p, Package as m, RefreshCw as h, Store as ee, XCircle as g } from "lucide-react";
|
|
9
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
10
|
+
import { IllustratedEmptyState as y, PagePurpose as b } from "@burdenoff/fe-libs/ui";
|
|
11
|
+
import { graphqlFetch as x } from "@burdenoff/fe-libs/shared/graphql";
|
|
12
12
|
//#region src/devportal/pages/StoreSubmissionPage.tsx
|
|
13
|
-
var
|
|
13
|
+
var te = "\n query DevportalAppForSubmission($id: ID!) {\n application(id: $id) {\n id\n name\n slug\n status\n appType\n reviewStatus\n reviewNotes\n iconUrl\n submittedAt\n metadata\n versions {\n edges {\n node {\n id\n version\n status\n releaseNotes\n packageUrl\n }\n }\n }\n }\n }\n", ne = "\n mutation DevportalSubmitForReview($id: ID!, $notes: String) {\n submitApplicationForReview(id: $id, notes: $notes) {\n id\n status\n submittedAt\n metadata\n }\n }\n", re = "\n mutation DevportalUnlistProduct($id: ID!) {\n unlistProduct(id: $id) {\n id\n status\n }\n }\n", ie = "\n mutation DevportalPublishVersion($id: ID!) {\n publishApplicationVersion(id: $id) {\n id\n status\n }\n }\n";
|
|
14
14
|
function S(e) {
|
|
15
15
|
if (!e) return null;
|
|
16
16
|
let t = e.metadata ?? {}, n = typeof t.storeProductId == "string" ? t.storeProductId : "", r = typeof t.storeSubmissionStatus == "string" ? t.storeSubmissionStatus : null, i;
|
|
@@ -30,47 +30,47 @@ var C = {
|
|
|
30
30
|
DRAFT: {
|
|
31
31
|
i18nKey: "devportal.storeSubmission.status.draft",
|
|
32
32
|
fallback: "Draft",
|
|
33
|
-
icon:
|
|
33
|
+
icon: d,
|
|
34
34
|
tone: "text-text-secondary"
|
|
35
35
|
},
|
|
36
36
|
PENDING_REVIEW: {
|
|
37
37
|
i18nKey: "devportal.storeSubmission.status.pending",
|
|
38
38
|
fallback: "Pending review",
|
|
39
|
-
icon:
|
|
39
|
+
icon: d,
|
|
40
40
|
tone: "text-status-warning-text"
|
|
41
41
|
},
|
|
42
42
|
PUBLISHED: {
|
|
43
43
|
i18nKey: "devportal.storeSubmission.status.published",
|
|
44
44
|
fallback: "Published",
|
|
45
|
-
icon:
|
|
45
|
+
icon: u,
|
|
46
46
|
tone: "text-status-success-text"
|
|
47
47
|
},
|
|
48
48
|
UNLISTED: {
|
|
49
49
|
i18nKey: "devportal.storeSubmission.status.unlisted",
|
|
50
50
|
fallback: "Unlisted",
|
|
51
|
-
icon:
|
|
51
|
+
icon: f,
|
|
52
52
|
tone: "text-text-secondary"
|
|
53
53
|
},
|
|
54
54
|
REJECTED: {
|
|
55
55
|
i18nKey: "devportal.storeSubmission.status.rejected",
|
|
56
56
|
fallback: "Rejected",
|
|
57
|
-
icon:
|
|
57
|
+
icon: g,
|
|
58
58
|
tone: "text-status-danger-text"
|
|
59
59
|
},
|
|
60
60
|
UNKNOWN: {
|
|
61
61
|
i18nKey: "devportal.storeSubmission.status.unknown",
|
|
62
62
|
fallback: "Not yet submitted",
|
|
63
|
-
icon:
|
|
63
|
+
icon: c,
|
|
64
64
|
tone: "text-text-tertiary"
|
|
65
65
|
}
|
|
66
66
|
}, w = () => {
|
|
67
|
-
let { appId: w } =
|
|
67
|
+
let { appId: w } = t(), T = e(), E = n(), D = a(), O = r(i.APP_SUBMIT), [k, ae] = s(null), [A, j] = s(!0), [M, N] = s(null), [P, F] = s(!1), [I, L] = s(!1), [R, z] = s(!1), [B, V] = s(null), [H, U] = s(""), W = async () => {
|
|
68
68
|
if (w) {
|
|
69
69
|
j(!0), N(null);
|
|
70
70
|
try {
|
|
71
|
-
let e = await
|
|
71
|
+
let e = await x({
|
|
72
72
|
gateway: "global",
|
|
73
|
-
query:
|
|
73
|
+
query: te,
|
|
74
74
|
variables: { id: w }
|
|
75
75
|
});
|
|
76
76
|
if (e.errors?.length) throw Error(e.errors[0]?.message ?? D("devportal.storeSubmission.errors.loadFailed", "Failed to load application"));
|
|
@@ -82,9 +82,9 @@ var C = {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
o(() => {
|
|
86
86
|
W();
|
|
87
|
-
}, [w]),
|
|
87
|
+
}, [w]), o(() => {
|
|
88
88
|
let e = k?.name;
|
|
89
89
|
if (!w || !e) return;
|
|
90
90
|
let t = window.__breadcrumbRegistry;
|
|
@@ -96,16 +96,16 @@ var C = {
|
|
|
96
96
|
try {
|
|
97
97
|
let e = (k?.versions.edges ?? []).map((e) => e.node).filter((e) => e.status === "draft");
|
|
98
98
|
for (let t of e) {
|
|
99
|
-
let e = await
|
|
99
|
+
let e = await x({
|
|
100
100
|
gateway: "global",
|
|
101
|
-
query:
|
|
101
|
+
query: ie,
|
|
102
102
|
variables: { id: t.id }
|
|
103
103
|
});
|
|
104
104
|
if (e.errors?.length) throw Error(e.errors[0]?.message ?? `Failed to submit version ${t.version}`);
|
|
105
105
|
}
|
|
106
|
-
let t = await
|
|
106
|
+
let t = await x({
|
|
107
107
|
gateway: "global",
|
|
108
|
-
query:
|
|
108
|
+
query: ne,
|
|
109
109
|
variables: {
|
|
110
110
|
id: w,
|
|
111
111
|
notes: H || null
|
|
@@ -124,9 +124,9 @@ var C = {
|
|
|
124
124
|
if (e) {
|
|
125
125
|
L(!0), N(null);
|
|
126
126
|
try {
|
|
127
|
-
let t = await
|
|
127
|
+
let t = await x({
|
|
128
128
|
gateway: "global",
|
|
129
|
-
query:
|
|
129
|
+
query: re,
|
|
130
130
|
variables: { id: e }
|
|
131
131
|
});
|
|
132
132
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? D("devportal.storeSubmission.errors.unlistFailed", "Failed to unlist"));
|
|
@@ -138,30 +138,30 @@ var C = {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}, q = S(k), J = B ?? q?.status ?? "UNKNOWN", Y = C[J], oe = Y.icon, X = (k?.versions.edges ?? []).map((e) => e.node), Z = X.filter((e) => e.status === "draft"), Q = k?.appType === "NODE" || k?.appType === "WORKFLOW", $ = Q && X.length === 0;
|
|
141
|
-
return /* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ v("main", {
|
|
142
142
|
className: "min-h-screen bg-surface-default",
|
|
143
143
|
"aria-labelledby": "store-submission-heading",
|
|
144
144
|
children: [
|
|
145
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ _("div", {
|
|
146
146
|
className: "border-b border-border-default bg-surface-raised",
|
|
147
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ _("div", {
|
|
148
148
|
className: "mx-auto max-w-3xl px-6 py-4",
|
|
149
|
-
children: /* @__PURE__ */
|
|
149
|
+
children: /* @__PURE__ */ v("div", {
|
|
150
150
|
className: "flex items-center gap-3",
|
|
151
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ v("button", {
|
|
152
152
|
type: "button",
|
|
153
153
|
onClick: () => T(-1),
|
|
154
154
|
className: "inline-flex items-center gap-2 rounded-md px-3 py-1.5 text-sm text-text-secondary hover:bg-surface-hover hover:text-text-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
|
|
155
|
-
children: [/* @__PURE__ */
|
|
155
|
+
children: [/* @__PURE__ */ _(l, {
|
|
156
156
|
className: "h-4 w-4",
|
|
157
157
|
"aria-hidden": "true"
|
|
158
158
|
}), D("devportal.common.back", "Back")]
|
|
159
|
-
}), /* @__PURE__ */
|
|
159
|
+
}), /* @__PURE__ */ v("div", {
|
|
160
160
|
className: "flex items-center gap-2",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ _(ee, {
|
|
162
162
|
className: "h-5 w-5 text-text-primary",
|
|
163
163
|
"aria-hidden": "true"
|
|
164
|
-
}), /* @__PURE__ */
|
|
164
|
+
}), /* @__PURE__ */ _("h1", {
|
|
165
165
|
id: "store-submission-heading",
|
|
166
166
|
className: "text-xl font-semibold text-text-primary",
|
|
167
167
|
children: D("devportal.storeSubmission.title", "Store submission")
|
|
@@ -170,39 +170,39 @@ var C = {
|
|
|
170
170
|
})
|
|
171
171
|
})
|
|
172
172
|
}),
|
|
173
|
-
R && /* @__PURE__ */
|
|
173
|
+
R && /* @__PURE__ */ _("div", {
|
|
174
174
|
role: "dialog",
|
|
175
175
|
"aria-modal": "true",
|
|
176
176
|
"aria-labelledby": "unlist-dialog-title",
|
|
177
177
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
178
|
-
children: /* @__PURE__ */
|
|
178
|
+
children: /* @__PURE__ */ v("div", {
|
|
179
179
|
className: "w-full max-w-md rounded-lg border border-border-default bg-surface-raised p-6 shadow-xl",
|
|
180
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ v("div", {
|
|
181
181
|
className: "mb-4 flex items-start gap-3",
|
|
182
|
-
children: [/* @__PURE__ */
|
|
182
|
+
children: [/* @__PURE__ */ _(f, {
|
|
183
183
|
className: "mt-0.5 h-5 w-5 shrink-0 text-text-secondary",
|
|
184
184
|
"aria-hidden": "true"
|
|
185
|
-
}), /* @__PURE__ */
|
|
185
|
+
}), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("h2", {
|
|
186
186
|
id: "unlist-dialog-title",
|
|
187
187
|
className: "text-base font-semibold text-text-primary",
|
|
188
188
|
children: D("devportal.storeSubmission.unlistTitle", "Unlist from marketplace?")
|
|
189
|
-
}), /* @__PURE__ */
|
|
189
|
+
}), /* @__PURE__ */ _("p", {
|
|
190
190
|
className: "mt-1 text-sm text-text-secondary",
|
|
191
191
|
children: D("devportal.storeSubmission.unlistDescription", "Your app will no longer appear in the marketplace for new users. Existing installations are not affected — users who already have it installed can continue using it.")
|
|
192
192
|
})] })]
|
|
193
|
-
}), /* @__PURE__ */
|
|
193
|
+
}), /* @__PURE__ */ v("div", {
|
|
194
194
|
className: "flex justify-end gap-3",
|
|
195
|
-
children: [/* @__PURE__ */
|
|
195
|
+
children: [/* @__PURE__ */ _("button", {
|
|
196
196
|
type: "button",
|
|
197
197
|
onClick: () => z(!1),
|
|
198
198
|
className: "rounded-md border border-border-default px-4 py-2 text-sm font-medium text-text-secondary hover:bg-surface-hover",
|
|
199
199
|
children: D("devportal.common.cancel", "Cancel")
|
|
200
|
-
}), /* @__PURE__ */
|
|
200
|
+
}), /* @__PURE__ */ v("button", {
|
|
201
201
|
type: "button",
|
|
202
202
|
onClick: () => void K(),
|
|
203
203
|
disabled: I,
|
|
204
204
|
className: "inline-flex items-center gap-2 rounded-md bg-surface-danger px-4 py-2 text-sm font-semibold text-text-on-danger hover:opacity-90 disabled:opacity-60",
|
|
205
|
-
children: [I && /* @__PURE__ */ h
|
|
205
|
+
children: [I && /* @__PURE__ */ _(h, {
|
|
206
206
|
className: "h-4 w-4 animate-spin",
|
|
207
207
|
"aria-hidden": "true"
|
|
208
208
|
}), D("devportal.storeSubmission.confirmUnlist", "Unlist app")]
|
|
@@ -210,56 +210,56 @@ var C = {
|
|
|
210
210
|
})]
|
|
211
211
|
})
|
|
212
212
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ v("div", {
|
|
214
214
|
className: "mx-auto max-w-3xl px-6 py-6",
|
|
215
215
|
children: [
|
|
216
|
-
(A || !q || J === "UNKNOWN" || J === "DRAFT" || J === "REJECTED") && /* @__PURE__ */
|
|
216
|
+
(A || !q || J === "UNKNOWN" || J === "DRAFT" || J === "REJECTED") && /* @__PURE__ */ _(b, {
|
|
217
217
|
className: "mb-5",
|
|
218
218
|
children: D("devportal.storeSubmission.purpose", "Finalize the details the marketplace needs before your app can be reviewed — pricing, categories, and required assets. Completing this is what makes the app eligible to submit for publication.")
|
|
219
219
|
}),
|
|
220
|
-
M && /* @__PURE__ */
|
|
220
|
+
M && /* @__PURE__ */ _("div", {
|
|
221
221
|
role: "alert",
|
|
222
222
|
className: "mb-4 rounded-md border border-border-danger bg-surface-danger-muted px-4 py-3 text-sm text-text-danger",
|
|
223
223
|
children: M
|
|
224
224
|
}),
|
|
225
|
-
A && !k ? /* @__PURE__ */
|
|
225
|
+
A && !k ? /* @__PURE__ */ _("div", {
|
|
226
226
|
className: "py-16 text-center text-text-secondary",
|
|
227
227
|
role: "status",
|
|
228
228
|
"aria-live": "polite",
|
|
229
229
|
children: D("devportal.storeSubmission.loading", "Loading application…")
|
|
230
|
-
}) : k ? /* @__PURE__ */
|
|
230
|
+
}) : k ? /* @__PURE__ */ v("div", {
|
|
231
231
|
className: "space-y-4",
|
|
232
232
|
children: [
|
|
233
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ _("div", {
|
|
234
234
|
className: "rounded-lg border border-border-default bg-surface-raised p-4",
|
|
235
|
-
children: /* @__PURE__ */
|
|
235
|
+
children: /* @__PURE__ */ v("div", {
|
|
236
236
|
className: "flex items-center gap-3",
|
|
237
237
|
children: [
|
|
238
|
-
k.iconUrl ? /* @__PURE__ */
|
|
238
|
+
k.iconUrl ? /* @__PURE__ */ _("img", {
|
|
239
239
|
src: k.iconUrl,
|
|
240
240
|
alt: "",
|
|
241
241
|
className: "h-14 w-14 flex-shrink-0 rounded-md object-cover"
|
|
242
|
-
}) : /* @__PURE__ */
|
|
242
|
+
}) : /* @__PURE__ */ _("div", {
|
|
243
243
|
className: "flex h-14 w-14 flex-shrink-0 items-center justify-center rounded-md bg-surface-muted text-text-secondary text-sm font-medium",
|
|
244
244
|
children: k.name.slice(0, 2).toUpperCase()
|
|
245
245
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ v("div", {
|
|
247
247
|
className: "min-w-0 flex-1",
|
|
248
|
-
children: [/* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
249
249
|
className: "text-lg font-semibold text-text-primary",
|
|
250
250
|
children: k.name
|
|
251
|
-
}), /* @__PURE__ */
|
|
251
|
+
}), /* @__PURE__ */ _("p", {
|
|
252
252
|
className: "font-mono text-xs text-text-tertiary",
|
|
253
253
|
children: k.slug
|
|
254
254
|
})]
|
|
255
255
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ v("div", {
|
|
257
257
|
className: `flex items-center gap-1.5 ${Y.tone}`,
|
|
258
258
|
role: "status",
|
|
259
|
-
children: [/* @__PURE__ */
|
|
259
|
+
children: [/* @__PURE__ */ _(oe, {
|
|
260
260
|
className: "h-5 w-5",
|
|
261
261
|
"aria-hidden": "true"
|
|
262
|
-
}), /* @__PURE__ */
|
|
262
|
+
}), /* @__PURE__ */ _("span", {
|
|
263
263
|
className: "text-sm font-medium",
|
|
264
264
|
children: D(Y.i18nKey, Y.fallback)
|
|
265
265
|
})]
|
|
@@ -267,18 +267,18 @@ var C = {
|
|
|
267
267
|
]
|
|
268
268
|
})
|
|
269
269
|
}),
|
|
270
|
-
J === "PENDING_REVIEW" && /* @__PURE__ */
|
|
270
|
+
J === "PENDING_REVIEW" && /* @__PURE__ */ v("div", {
|
|
271
271
|
className: "rounded-lg border border-primary/20 bg-action-primary-bg/5 p-5 space-y-4",
|
|
272
272
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ v("div", {
|
|
274
274
|
className: "flex items-start gap-3",
|
|
275
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ _(d, {
|
|
276
276
|
className: "h-5 w-5 mt-0.5 shrink-0 text-primary",
|
|
277
277
|
"aria-hidden": "true"
|
|
278
|
-
}), /* @__PURE__ */
|
|
278
|
+
}), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
279
279
|
className: "text-sm font-semibold text-text-primary",
|
|
280
280
|
children: D("devportal.storeSubmission.underReview", "Your app is under review")
|
|
281
|
-
}), k.submittedAt && /* @__PURE__ */
|
|
281
|
+
}), k.submittedAt && /* @__PURE__ */ v("p", {
|
|
282
282
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
283
283
|
children: [
|
|
284
284
|
D("devportal.storeSubmission.submittedOn", "Submitted on"),
|
|
@@ -287,31 +287,31 @@ var C = {
|
|
|
287
287
|
]
|
|
288
288
|
})] })]
|
|
289
289
|
}),
|
|
290
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ v("div", {
|
|
291
291
|
className: "border-t border-border-default pt-4",
|
|
292
|
-
children: [/* @__PURE__ */
|
|
292
|
+
children: [/* @__PURE__ */ _("p", {
|
|
293
293
|
className: "text-xs font-medium text-text-secondary mb-3",
|
|
294
294
|
children: D("devportal.storeSubmission.whatNext", "What happens next")
|
|
295
|
-
}), /* @__PURE__ */
|
|
295
|
+
}), /* @__PURE__ */ v("ol", {
|
|
296
296
|
className: "space-y-2.5 text-sm text-text-secondary",
|
|
297
297
|
children: [
|
|
298
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ v("li", {
|
|
299
299
|
className: "flex items-start gap-2",
|
|
300
|
-
children: [/* @__PURE__ */
|
|
300
|
+
children: [/* @__PURE__ */ _("span", {
|
|
301
301
|
className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-surface-muted text-xs font-medium text-text-tertiary",
|
|
302
302
|
children: "1"
|
|
303
303
|
}), "Our team reviews your app's listing, assets, and compliance."]
|
|
304
304
|
}),
|
|
305
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ v("li", {
|
|
306
306
|
className: "flex items-start gap-2",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
307
|
+
children: [/* @__PURE__ */ _("span", {
|
|
308
308
|
className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-surface-muted text-xs font-medium text-text-tertiary",
|
|
309
309
|
children: "2"
|
|
310
310
|
}), "You'll receive a notification when a decision is made."]
|
|
311
311
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ v("li", {
|
|
313
313
|
className: "flex items-start gap-2",
|
|
314
|
-
children: [/* @__PURE__ */
|
|
314
|
+
children: [/* @__PURE__ */ _("span", {
|
|
315
315
|
className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-surface-muted text-xs font-medium text-text-tertiary",
|
|
316
316
|
children: "3"
|
|
317
317
|
}), "If approved, your app goes live in the marketplace automatically."]
|
|
@@ -319,31 +319,31 @@ var C = {
|
|
|
319
319
|
]
|
|
320
320
|
})]
|
|
321
321
|
}),
|
|
322
|
-
k.reviewNotes && /* @__PURE__ */
|
|
322
|
+
k.reviewNotes && /* @__PURE__ */ v("div", {
|
|
323
323
|
className: "border-t border-border-default pt-4",
|
|
324
|
-
children: [/* @__PURE__ */
|
|
324
|
+
children: [/* @__PURE__ */ _("p", {
|
|
325
325
|
className: "text-xs font-medium text-text-secondary mb-1",
|
|
326
326
|
children: D("devportal.storeSubmission.reviewerNotes", "Reviewer notes")
|
|
327
|
-
}), /* @__PURE__ */
|
|
327
|
+
}), /* @__PURE__ */ _("p", {
|
|
328
328
|
className: "text-sm text-text-primary",
|
|
329
329
|
children: k.reviewNotes
|
|
330
330
|
})]
|
|
331
331
|
})
|
|
332
332
|
]
|
|
333
333
|
}),
|
|
334
|
-
J === "PUBLISHED" && /* @__PURE__ */
|
|
334
|
+
J === "PUBLISHED" && /* @__PURE__ */ v("div", {
|
|
335
335
|
className: "rounded-lg border border-status-success-bg bg-status-success-bg-subtle p-5 space-y-4",
|
|
336
|
-
children: [/* @__PURE__ */
|
|
336
|
+
children: [/* @__PURE__ */ v("div", {
|
|
337
337
|
className: "flex items-start gap-3",
|
|
338
|
-
children: [/* @__PURE__ */
|
|
338
|
+
children: [/* @__PURE__ */ _(u, {
|
|
339
339
|
className: "h-5 w-5 mt-0.5 shrink-0 text-status-success-text",
|
|
340
340
|
"aria-hidden": "true"
|
|
341
|
-
}), /* @__PURE__ */
|
|
341
|
+
}), /* @__PURE__ */ v("div", {
|
|
342
342
|
className: "flex-1 min-w-0",
|
|
343
|
-
children: [/* @__PURE__ */
|
|
343
|
+
children: [/* @__PURE__ */ _("p", {
|
|
344
344
|
className: "text-sm font-semibold text-status-success-text",
|
|
345
345
|
children: D("devportal.storeSubmission.publishedTitle", "Your app is live in the marketplace")
|
|
346
|
-
}), q?.publishedAt && /* @__PURE__ */
|
|
346
|
+
}), q?.publishedAt && /* @__PURE__ */ v("p", {
|
|
347
347
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
348
348
|
children: [
|
|
349
349
|
D("devportal.storeSubmission.publishedOn", "Published on"),
|
|
@@ -352,101 +352,101 @@ var C = {
|
|
|
352
352
|
]
|
|
353
353
|
})]
|
|
354
354
|
})]
|
|
355
|
-
}), q?.productId && /* @__PURE__ */
|
|
355
|
+
}), q?.productId && /* @__PURE__ */ v("div", {
|
|
356
356
|
className: "border-t border-status-success-bg pt-4",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
357
|
+
children: [/* @__PURE__ */ _("p", {
|
|
358
358
|
className: "mb-2 text-xs text-text-secondary",
|
|
359
359
|
children: D("devportal.storeSubmission.unlistHint", "Need to remove this app from the marketplace? Unlisting hides it from new users while keeping existing installations active.")
|
|
360
|
-
}), /* @__PURE__ */
|
|
360
|
+
}), /* @__PURE__ */ v("button", {
|
|
361
361
|
type: "button",
|
|
362
362
|
onClick: () => z(!0),
|
|
363
363
|
className: "inline-flex items-center gap-2 rounded-md border border-border-default bg-surface-raised px-3 py-1.5 text-sm font-medium text-text-secondary hover:bg-surface-hover hover:text-text-primary",
|
|
364
|
-
children: [/* @__PURE__ */
|
|
364
|
+
children: [/* @__PURE__ */ _(f, {
|
|
365
365
|
className: "h-4 w-4",
|
|
366
366
|
"aria-hidden": "true"
|
|
367
367
|
}), D("devportal.storeSubmission.unlistButton", "Unlist from marketplace")]
|
|
368
368
|
})]
|
|
369
369
|
})]
|
|
370
370
|
}),
|
|
371
|
-
J === "UNLISTED" && /* @__PURE__ */
|
|
371
|
+
J === "UNLISTED" && /* @__PURE__ */ v("div", {
|
|
372
372
|
className: "rounded-lg border border-border-default bg-surface-muted p-5 flex items-start gap-3",
|
|
373
|
-
children: [/* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ _(f, {
|
|
374
374
|
className: "h-5 w-5 mt-0.5 shrink-0 text-text-secondary",
|
|
375
375
|
"aria-hidden": "true"
|
|
376
|
-
}), /* @__PURE__ */
|
|
376
|
+
}), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
377
377
|
className: "text-sm font-semibold text-text-primary",
|
|
378
378
|
children: D("devportal.storeSubmission.unlistedTitle", "Your app has been unlisted")
|
|
379
|
-
}), /* @__PURE__ */
|
|
379
|
+
}), /* @__PURE__ */ _("p", {
|
|
380
380
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
381
381
|
children: D("devportal.storeSubmission.unlistedDescription", "It no longer appears in the marketplace for new users. Existing installations remain active and unaffected.")
|
|
382
382
|
})] })]
|
|
383
383
|
}),
|
|
384
|
-
J === "REJECTED" && /* @__PURE__ */
|
|
384
|
+
J === "REJECTED" && /* @__PURE__ */ v("div", {
|
|
385
385
|
className: "rounded-lg border border-status-error-bg bg-status-error-bg-subtle p-5 space-y-3",
|
|
386
|
-
children: [/* @__PURE__ */
|
|
386
|
+
children: [/* @__PURE__ */ v("div", {
|
|
387
387
|
className: "flex items-start gap-3",
|
|
388
|
-
children: [/* @__PURE__ */
|
|
388
|
+
children: [/* @__PURE__ */ _(g, {
|
|
389
389
|
className: "h-5 w-5 mt-0.5 shrink-0 text-status-error-text",
|
|
390
390
|
"aria-hidden": "true"
|
|
391
|
-
}), /* @__PURE__ */
|
|
391
|
+
}), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
392
392
|
className: "text-sm font-semibold text-status-error-text",
|
|
393
393
|
children: D("devportal.storeSubmission.rejectedTitle", "Submission was not approved")
|
|
394
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ _("p", {
|
|
395
395
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
396
396
|
children: D("devportal.storeSubmission.rejectedHint", "Address the feedback below and resubmit.")
|
|
397
397
|
})] })]
|
|
398
|
-
}), k.reviewNotes && /* @__PURE__ */
|
|
398
|
+
}), k.reviewNotes && /* @__PURE__ */ v("div", {
|
|
399
399
|
className: "rounded-md bg-surface-muted p-3",
|
|
400
|
-
children: [/* @__PURE__ */
|
|
400
|
+
children: [/* @__PURE__ */ _("p", {
|
|
401
401
|
className: "text-xs font-medium text-text-secondary mb-1",
|
|
402
402
|
children: D("devportal.storeSubmission.reviewerFeedback", "Reviewer feedback")
|
|
403
|
-
}), /* @__PURE__ */
|
|
403
|
+
}), /* @__PURE__ */ _("p", {
|
|
404
404
|
className: "text-sm text-text-primary",
|
|
405
405
|
children: k.reviewNotes
|
|
406
406
|
})]
|
|
407
407
|
})]
|
|
408
408
|
}),
|
|
409
|
-
(J === "UNKNOWN" || J === "DRAFT" || J === "REJECTED") && /* @__PURE__ */
|
|
409
|
+
(J === "UNKNOWN" || J === "DRAFT" || J === "REJECTED") && /* @__PURE__ */ v("div", {
|
|
410
410
|
className: "rounded-lg border border-border-default bg-surface-raised p-4 space-y-4",
|
|
411
411
|
children: [
|
|
412
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("h3", {
|
|
413
413
|
className: "mb-1 text-sm font-semibold text-text-primary",
|
|
414
414
|
children: J === "REJECTED" ? D("devportal.storeSubmission.resubmitForReview", "Resubmit for review") : D("devportal.storeSubmission.submitForReview", "Submit for review")
|
|
415
|
-
}), /* @__PURE__ */
|
|
415
|
+
}), /* @__PURE__ */ _("p", {
|
|
416
416
|
className: "text-sm text-text-secondary",
|
|
417
417
|
children: D("devportal.storeSubmission.help", "Your application will be sent to the store's review queue. Whether it's auto-published or requires admin approval depends on the target store's configuration.")
|
|
418
418
|
})] }),
|
|
419
|
-
Q && /* @__PURE__ */
|
|
419
|
+
Q && /* @__PURE__ */ v("div", {
|
|
420
420
|
className: "rounded-md border border-border-default bg-surface-muted p-3 space-y-2",
|
|
421
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ v("div", {
|
|
422
422
|
className: "flex items-center gap-2 text-xs font-medium text-text-secondary",
|
|
423
|
-
children: [/* @__PURE__ */
|
|
423
|
+
children: [/* @__PURE__ */ _(p, {
|
|
424
424
|
className: "h-3.5 w-3.5",
|
|
425
425
|
"aria-hidden": "true"
|
|
426
426
|
}), D("devportal.storeSubmission.versionsIncluded", "Versions included in this submission")]
|
|
427
|
-
}), $ ? /* @__PURE__ */
|
|
427
|
+
}), $ ? /* @__PURE__ */ v("div", {
|
|
428
428
|
className: "flex items-start gap-2 text-sm text-status-danger-text",
|
|
429
|
-
children: [/* @__PURE__ */
|
|
429
|
+
children: [/* @__PURE__ */ _(c, {
|
|
430
430
|
className: "h-4 w-4 mt-0.5 shrink-0",
|
|
431
431
|
"aria-hidden": "true"
|
|
432
|
-
}), /* @__PURE__ */
|
|
433
|
-
}) : Z.length === 0 ? /* @__PURE__ */
|
|
432
|
+
}), /* @__PURE__ */ _("span", { children: D("devportal.storeSubmission.noVersionsError", "You must create at least one version before submitting. Go to the Versions tab to create one.") })]
|
|
433
|
+
}) : Z.length === 0 ? /* @__PURE__ */ _("p", {
|
|
434
434
|
className: "text-xs text-text-secondary",
|
|
435
435
|
children: D("devportal.storeSubmission.noDraftVersions", "No draft versions — all versions are already submitted or published.")
|
|
436
|
-
}) : /* @__PURE__ */
|
|
436
|
+
}) : /* @__PURE__ */ _("ul", {
|
|
437
437
|
className: "space-y-1",
|
|
438
|
-
children: Z.map((e) => /* @__PURE__ */
|
|
438
|
+
children: Z.map((e) => /* @__PURE__ */ v("li", {
|
|
439
439
|
className: "flex items-center gap-2 text-sm",
|
|
440
440
|
children: [
|
|
441
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ _(m, {
|
|
442
442
|
className: "h-3.5 w-3.5 text-text-secondary shrink-0",
|
|
443
443
|
"aria-hidden": "true"
|
|
444
444
|
}),
|
|
445
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ _("span", {
|
|
446
446
|
className: "font-mono font-medium",
|
|
447
447
|
children: e.version
|
|
448
448
|
}),
|
|
449
|
-
e.releaseNotes && /* @__PURE__ */
|
|
449
|
+
e.releaseNotes && /* @__PURE__ */ v("span", {
|
|
450
450
|
className: "text-xs text-text-secondary truncate",
|
|
451
451
|
children: ["— ", e.releaseNotes]
|
|
452
452
|
})
|
|
@@ -454,16 +454,16 @@ var C = {
|
|
|
454
454
|
}, e.id))
|
|
455
455
|
})]
|
|
456
456
|
}),
|
|
457
|
-
/* @__PURE__ */
|
|
458
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ v("div", { children: [
|
|
458
|
+
/* @__PURE__ */ _("label", {
|
|
459
459
|
className: "block",
|
|
460
460
|
htmlFor: "store-submission-notes",
|
|
461
|
-
children: /* @__PURE__ */
|
|
461
|
+
children: /* @__PURE__ */ _("span", {
|
|
462
462
|
className: "sr-only",
|
|
463
463
|
children: D("devportal.storeSubmission.notesLabel", "Notes for the reviewer (optional)")
|
|
464
464
|
})
|
|
465
465
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ _("textarea", {
|
|
467
467
|
id: "store-submission-notes",
|
|
468
468
|
value: H,
|
|
469
469
|
onChange: (e) => U(e.target.value),
|
|
@@ -471,14 +471,14 @@ var C = {
|
|
|
471
471
|
placeholder: D("devportal.storeSubmission.notesLabel", "Notes for the reviewer (optional)"),
|
|
472
472
|
className: "mb-3 w-full rounded-md border border-border-default bg-surface-default px-3 py-2 text-sm text-text-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"
|
|
473
473
|
}),
|
|
474
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ v("button", {
|
|
475
475
|
type: "button",
|
|
476
476
|
onClick: () => void G(),
|
|
477
477
|
disabled: P || !O.allowed || $,
|
|
478
478
|
"aria-disabled": P || !O.allowed || $,
|
|
479
479
|
title: $ ? D("devportal.storeSubmission.noVersionsError", "Create a version first") : O.allowed ? void 0 : D("devportal.common.noPermission", "You do not have permission to perform this action"),
|
|
480
480
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-semibold text-action-primary-text hover:opacity-90 disabled:opacity-60 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
|
|
481
|
-
children: [P && /* @__PURE__ */ h
|
|
481
|
+
children: [P && /* @__PURE__ */ _(h, {
|
|
482
482
|
className: "h-4 w-4 animate-spin",
|
|
483
483
|
"aria-hidden": "true"
|
|
484
484
|
}), J === "REJECTED" ? D("devportal.storeSubmission.resubmit", "Resubmit") : D("devportal.storeSubmission.submitForReview", "Submit for review")]
|
|
@@ -486,18 +486,18 @@ var C = {
|
|
|
486
486
|
] })
|
|
487
487
|
]
|
|
488
488
|
}),
|
|
489
|
-
q?.productId && /* @__PURE__ */
|
|
489
|
+
q?.productId && /* @__PURE__ */ v("div", {
|
|
490
490
|
className: "rounded-lg border border-border-default bg-surface-raised p-4",
|
|
491
|
-
children: [/* @__PURE__ */
|
|
491
|
+
children: [/* @__PURE__ */ _("p", {
|
|
492
492
|
className: "text-xs font-medium text-text-secondary",
|
|
493
493
|
children: D("devportal.storeSubmission.storeProductId", "Store product ID")
|
|
494
|
-
}), /* @__PURE__ */
|
|
494
|
+
}), /* @__PURE__ */ _("code", {
|
|
495
495
|
className: "mt-1 block break-all font-mono text-xs text-text-primary",
|
|
496
496
|
children: q.productId
|
|
497
497
|
})]
|
|
498
498
|
})
|
|
499
499
|
]
|
|
500
|
-
}) : /* @__PURE__ */
|
|
500
|
+
}) : /* @__PURE__ */ _(y, {
|
|
501
501
|
illustration: "empty-generic",
|
|
502
502
|
title: D("devportal.storeSubmission.notFoundTitle", "Application not found"),
|
|
503
503
|
description: D("devportal.storeSubmission.notFound", "Application not found.")
|