@burdenoff/microfe-devportal 2026.802.2 → 2026.803.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/devportal/pages/ApplicationDetailPage.d.ts.map +1 -1
- package/dist/devportal/pages/ApplicationDetailPage.js +85 -85
- package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
- package/dist/generated/global-operations.d.ts +10 -0
- package/dist/generated/global-operations.d.ts.map +1 -1
- package/dist/generated/global-operations.js +1 -0
- package/dist/generated/global-operations.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationDetailPage.d.ts","sourceRoot":"","sources":["../../../src/devportal/pages/ApplicationDetailPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA6ThC;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"ApplicationDetailPage.d.ts","sourceRoot":"","sources":["../../../src/devportal/pages/ApplicationDetailPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA6ThC;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAo9BnC,CAAC"}
|
|
@@ -210,7 +210,7 @@ var Ge = [
|
|
|
210
210
|
className: "text-sm text-text-secondary",
|
|
211
211
|
children: e
|
|
212
212
|
})]
|
|
213
|
-
}),
|
|
213
|
+
}), Ke = ({ message: e }) => /* @__PURE__ */ W("div", {
|
|
214
214
|
className: "flex flex-col items-center justify-center gap-2 py-12 text-center",
|
|
215
215
|
children: [/* @__PURE__ */ U(pe, {
|
|
216
216
|
size: 32,
|
|
@@ -219,7 +219,7 @@ var Ge = [
|
|
|
219
219
|
className: "text-sm text-text-secondary",
|
|
220
220
|
children: e
|
|
221
221
|
})]
|
|
222
|
-
}),
|
|
222
|
+
}), qe = () => {
|
|
223
223
|
let { navigate: i, basePath: o, workspaceId: c } = e(), { t: u } = P(), m = (e, t) => {
|
|
224
224
|
let n = u(e);
|
|
225
225
|
return n === e ? t : n;
|
|
@@ -333,24 +333,24 @@ var Ge = [
|
|
|
333
333
|
"PARSER",
|
|
334
334
|
"WIDGET",
|
|
335
335
|
"DASHBOARD"
|
|
336
|
-
].includes(G.appType), q = G.appType === "API_INTEGRATION", J = j?.application?.versions?.totalCount ?? 0, Y = G.pricingType === "PAID",
|
|
336
|
+
].includes(G.appType), q = G.appType === "API_INTEGRATION", J = j?.application?.versions?.totalCount ?? 0, Ke = G.appType === "NODE", qe = j?.application?.versions?.edges ?? [], Y = ((qe.find((e) => e.node.isLatest)?.node ?? qe[0]?.node ?? null)?.metadata ?? {}).sandboxBuildStatus, Xe = Ke && Y !== "READY", Ze = Xe ? Y === "FAILED" || Y === "DISPATCH_FAILED" ? m("devportal.testInWorkspaceBuildFailed", "Test in Workspace (sandbox build failed)") : m("devportal.testInWorkspaceBuilding", "Test in Workspace (building sandbox image…)") : m("devportal.testInWorkspace", "Test in Workspace"), it = G.pricingType === "PAID", at = Fe?.developerOrganization, ot = at?.platformFeeRate ?? .3, X = !!at?.billingAccountId, ct = G.pricingDetails ?? {}, Z = G.pricingType === "FREE" || G.pricingType === "PAID" && typeof ct.price == "number" && ct.price > 0, Q = !!G.description?.trim() && !!G.category && !!G.iconUrl && (G.visibility === "PUBLIC" || G.visibility === "UNLISTED") && (!K && !q || J > 0) && (!it || X) && Z, lt = Q && G.status !== "PUBLISHED" && G.status !== "SUBMITTED" && G.status !== "INACTIVE" && G.status !== "REVOKED", ut = [
|
|
337
337
|
...K ? [] : [{
|
|
338
338
|
label: m("devportal.rotateSecret", "Rotate Secret"),
|
|
339
339
|
icon: /* @__PURE__ */ U(je, { size: 16 }),
|
|
340
340
|
disabled: !G.appId,
|
|
341
341
|
onSelect: () => ne(!0)
|
|
342
342
|
}],
|
|
343
|
-
|
|
343
|
+
...!K || Ke ? B ? [{
|
|
344
344
|
label: m("devportal.uninstallFromWorkspace", "Uninstall from Workspace"),
|
|
345
345
|
icon: /* @__PURE__ */ U(Re, { size: 16 }),
|
|
346
346
|
disabled: ke || !c,
|
|
347
347
|
onSelect: () => void He(B.id)
|
|
348
348
|
}] : [{
|
|
349
|
-
label:
|
|
349
|
+
label: Ze,
|
|
350
350
|
icon: /* @__PURE__ */ U(xe, { size: 16 }),
|
|
351
|
-
disabled: De || !c,
|
|
351
|
+
disabled: De || !c || Xe,
|
|
352
352
|
onSelect: () => void Ve()
|
|
353
|
-
}],
|
|
353
|
+
}] : [],
|
|
354
354
|
{
|
|
355
355
|
label: m("devportal.deactivate", "Deactivate"),
|
|
356
356
|
icon: /* @__PURE__ */ U(Ae, { size: 16 }),
|
|
@@ -373,17 +373,17 @@ var Ge = [
|
|
|
373
373
|
}) : G.status !== "PUBLISHED" && G.status !== "INACTIVE" && G.status !== "REVOKED" ? /* @__PURE__ */ U("button", {
|
|
374
374
|
type: "button",
|
|
375
375
|
onClick: () => void We(),
|
|
376
|
-
disabled: !
|
|
377
|
-
title:
|
|
376
|
+
disabled: !lt || we,
|
|
377
|
+
title: Q ? void 0 : [
|
|
378
378
|
!G.description?.trim() && "Add full description",
|
|
379
379
|
!G.category && "Select a category",
|
|
380
380
|
!G.iconUrl && "Upload an app icon",
|
|
381
381
|
(G.visibility === "PRIVATE" || G.visibility === "INTERNAL") && "Set visibility to Public (marketplace) or Unlisted (link sharing) — Private and Internal cannot be submitted for review",
|
|
382
382
|
K && J === 0 && "Upload at least one version",
|
|
383
383
|
!Z && "Set pricing (choose Free or Paid in the Pricing tab)",
|
|
384
|
-
|
|
384
|
+
it && !X && "Link a billing account to receive payments"
|
|
385
385
|
].filter(Boolean).join(" · "),
|
|
386
|
-
className: t("inline-flex items-center gap-2 rounded-md px-5 py-2 text-sm font-medium whitespace-nowrap transition-colors",
|
|
386
|
+
className: t("inline-flex items-center gap-2 rounded-md px-5 py-2 text-sm font-medium whitespace-nowrap transition-colors", lt && !we ? "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 cursor-pointer" : "cursor-not-allowed bg-bg-muted text-text-tertiary ring-1 ring-border-subtle"),
|
|
387
387
|
children: we ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(R, {
|
|
388
388
|
size: 15,
|
|
389
389
|
className: "animate-spin"
|
|
@@ -395,7 +395,7 @@ var Ge = [
|
|
|
395
395
|
disabled: !g,
|
|
396
396
|
onSelect: () => V(`/apps/${G.id}/edit`)
|
|
397
397
|
},
|
|
398
|
-
actions:
|
|
398
|
+
actions: ut
|
|
399
399
|
})]
|
|
400
400
|
}),
|
|
401
401
|
children: [
|
|
@@ -518,7 +518,7 @@ var Ge = [
|
|
|
518
518
|
]
|
|
519
519
|
})]
|
|
520
520
|
}),
|
|
521
|
-
(G.status === "DRAFT" || G.status === "REJECTED") && !
|
|
521
|
+
(G.status === "DRAFT" || G.status === "REJECTED") && !Q && (() => {
|
|
522
522
|
let e = !!G.description?.trim() && !!G.category && !!G.iconUrl && (G.visibility === "PUBLIC" || G.visibility === "UNLISTED"), n = !K && !q || J > 0, r = [
|
|
523
523
|
!G.description?.trim() && "Add a full description",
|
|
524
524
|
!G.category && "Select a category",
|
|
@@ -559,7 +559,7 @@ var Ge = [
|
|
|
559
559
|
done: Z,
|
|
560
560
|
onClick: () => D("pricing")
|
|
561
561
|
},
|
|
562
|
-
...
|
|
562
|
+
...it ? [{
|
|
563
563
|
id: "billing",
|
|
564
564
|
label: m("devportal.setupBillingStep", "Link Billing Account"),
|
|
565
565
|
hint: X ? m("devportal.done", "Done") : m("devportal.billingAccountHint", "Link a billing account to receive payouts — required for paid apps"),
|
|
@@ -569,7 +569,7 @@ var Ge = [
|
|
|
569
569
|
{
|
|
570
570
|
id: "submit",
|
|
571
571
|
label: m("devportal.submitForReview", "Submit for Review"),
|
|
572
|
-
hint:
|
|
572
|
+
hint: Q ? m("devportal.readyToSubmit", "Ready — click Submit for Review above") : G.description?.trim() ? G.category ? G.iconUrl ? G.visibility === "PRIVATE" || G.visibility === "INTERNAL" ? m("devportal.hintPrivateVisibility", "Set visibility to Public (marketplace) or Unlisted (share via link) — Private and Internal cannot be submitted") : (K || q) && J === 0 ? m("devportal.hintMissingVersion", "Upload at least one version") : Z ? it && !X ? m("devportal.hintMissingBilling", "Link a billing account in the Pricing tab to receive payouts") : m("devportal.completeStepsFirst", "Complete the steps above first") : m("devportal.hintMissingPricing", "Choose Free or set a credit price in the Pricing tab") : m("devportal.hintMissingIcon", "Upload an app icon on the Store Listing tab") : m("devportal.hintMissingCategory", "Select a category on the Store Listing tab") : m("devportal.hintMissingDescription", "Add a full description on the Store Listing tab"),
|
|
573
573
|
done: !1,
|
|
574
574
|
onClick: void 0
|
|
575
575
|
}
|
|
@@ -659,7 +659,7 @@ var Ge = [
|
|
|
659
659
|
"aria-labelledby": `application-tab-${S}`,
|
|
660
660
|
tabIndex: 0,
|
|
661
661
|
children: [
|
|
662
|
-
S === "overview" && /* @__PURE__ */ U(
|
|
662
|
+
S === "overview" && /* @__PURE__ */ U(rt, {
|
|
663
663
|
app: G,
|
|
664
664
|
appId: b,
|
|
665
665
|
refetch: () => void he()
|
|
@@ -670,27 +670,27 @@ var Ge = [
|
|
|
670
670
|
locked: G.status === "PUBLISHED" || G.status === "APPROVED" || G.status === "ACTIVE",
|
|
671
671
|
onNavigateToVersions: () => D("versions")
|
|
672
672
|
}),
|
|
673
|
-
S === "webhooks" && /* @__PURE__ */ U(
|
|
673
|
+
S === "webhooks" && /* @__PURE__ */ U(et, {
|
|
674
674
|
appId: G.id,
|
|
675
675
|
onNavigate: V
|
|
676
676
|
}),
|
|
677
|
-
S === "delegations" && /* @__PURE__ */ U(
|
|
677
|
+
S === "delegations" && /* @__PURE__ */ U(tt, {
|
|
678
678
|
authAppId: G.appId || void 0,
|
|
679
679
|
appName: G.name,
|
|
680
680
|
onGrantDelegation: () => de(!0),
|
|
681
681
|
onNavigate: V
|
|
682
682
|
}),
|
|
683
|
-
S === "analytics" && /* @__PURE__ */ U(
|
|
684
|
-
S === "playground" && /* @__PURE__ */ U(
|
|
685
|
-
S === "oauth" && /* @__PURE__ */ U(
|
|
683
|
+
S === "analytics" && /* @__PURE__ */ U(nt, { appId: G.id }),
|
|
684
|
+
S === "playground" && /* @__PURE__ */ U(st, { app: G }),
|
|
685
|
+
S === "oauth" && /* @__PURE__ */ U(Je, {
|
|
686
686
|
appId: G.id,
|
|
687
687
|
onNavigate: V
|
|
688
688
|
}),
|
|
689
|
-
S === "api-keys" && /* @__PURE__ */ U(
|
|
689
|
+
S === "api-keys" && /* @__PURE__ */ U(Ye, {
|
|
690
690
|
appId: G.id,
|
|
691
691
|
onNavigate: V
|
|
692
692
|
}),
|
|
693
|
-
S === "store-listing" && /* @__PURE__ */ U(
|
|
693
|
+
S === "store-listing" && /* @__PURE__ */ U(pt, {
|
|
694
694
|
app: G,
|
|
695
695
|
versionCount: j?.application?.versions?.totalCount ?? 0,
|
|
696
696
|
isPackageApp: K,
|
|
@@ -699,14 +699,14 @@ var Ge = [
|
|
|
699
699
|
onNavigateToPricing: () => D("pricing"),
|
|
700
700
|
onNavigateToSubmission: () => V(`/apps/${G.id}/store-submission`)
|
|
701
701
|
}),
|
|
702
|
-
S === "pricing" && /* @__PURE__ */ U(
|
|
702
|
+
S === "pricing" && /* @__PURE__ */ U(Qe, {
|
|
703
703
|
app: G,
|
|
704
|
-
platformFeeRate:
|
|
704
|
+
platformFeeRate: ot,
|
|
705
705
|
billingAccountLinked: X,
|
|
706
706
|
onNavigateToRevenue: () => V("/revenue"),
|
|
707
|
-
isReadyToSubmit:
|
|
707
|
+
isReadyToSubmit: Q
|
|
708
708
|
}),
|
|
709
|
-
S === "versions" && /* @__PURE__ */ U(
|
|
709
|
+
S === "versions" && /* @__PURE__ */ U($e, {
|
|
710
710
|
appId: G.id,
|
|
711
711
|
onNavigate: V,
|
|
712
712
|
pricingDone: Z,
|
|
@@ -748,7 +748,7 @@ var Ge = [
|
|
|
748
748
|
})
|
|
749
749
|
]
|
|
750
750
|
});
|
|
751
|
-
},
|
|
751
|
+
}, Je = ({ onNavigate: e }) => {
|
|
752
752
|
let { t } = P(), n = (e, n) => {
|
|
753
753
|
let r = t(e);
|
|
754
754
|
return r === e ? n : r;
|
|
@@ -772,7 +772,7 @@ var Ge = [
|
|
|
772
772
|
})
|
|
773
773
|
]
|
|
774
774
|
});
|
|
775
|
-
},
|
|
775
|
+
}, Ye = ({ onNavigate: e }) => {
|
|
776
776
|
let { t } = P(), n = (e, n) => {
|
|
777
777
|
let r = t(e);
|
|
778
778
|
return r === e ? n : r;
|
|
@@ -796,7 +796,7 @@ var Ge = [
|
|
|
796
796
|
})
|
|
797
797
|
]
|
|
798
798
|
});
|
|
799
|
-
},
|
|
799
|
+
}, Y = .01, Xe = (e) => e * Y, Ze = (e) => Math.round(e / Y), Qe = ({ app: e, platformFeeRate: n, billingAccountLinked: r, onNavigateToRevenue: i, isReadyToSubmit: a = !1 }) => {
|
|
800
800
|
let { t: o } = P(), s = (e, t) => {
|
|
801
801
|
let n = o(e);
|
|
802
802
|
return n === e ? t : n;
|
|
@@ -836,7 +836,7 @@ var Ge = [
|
|
|
836
836
|
} finally {
|
|
837
837
|
f(!1);
|
|
838
838
|
}
|
|
839
|
-
}, _ = l.pricingType !== "FREE", v = parseInt(l.price, 10), y = _ && !isNaN(v) && v > 0, x = y ?
|
|
839
|
+
}, _ = l.pricingType !== "FREE", v = parseInt(l.price, 10), y = _ && !isNaN(v) && v > 0, x = y ? Xe(v) : 0, S = y ? Math.round(v * n) : 0, C = Xe(S), w = y ? v - S : 0, T = Xe(w), E = (e) => "$" + e.toLocaleString("en-US", {
|
|
840
840
|
minimumFractionDigits: 2,
|
|
841
841
|
maximumFractionDigits: 2
|
|
842
842
|
}), D = (e) => e.toLocaleString("en-US") + " cr";
|
|
@@ -862,7 +862,7 @@ var Ge = [
|
|
|
862
862
|
className: "font-medium",
|
|
863
863
|
children: [
|
|
864
864
|
"1 credit = ",
|
|
865
|
-
E(
|
|
865
|
+
E(Y),
|
|
866
866
|
" USD."
|
|
867
867
|
]
|
|
868
868
|
}),
|
|
@@ -981,7 +981,7 @@ var Ge = [
|
|
|
981
981
|
})] }),
|
|
982
982
|
/* @__PURE__ */ U("div", {
|
|
983
983
|
className: "flex flex-wrap gap-2",
|
|
984
|
-
children:
|
|
984
|
+
children: lt.map((e) => /* @__PURE__ */ U("button", {
|
|
985
985
|
type: "button",
|
|
986
986
|
onClick: () => h("pricingType", e.value),
|
|
987
987
|
className: t("rounded-md border px-4 py-2 text-sm font-medium transition-colors", l.pricingType === e.value ? "bg-action-primary-bg text-action-primary-text border-primary" : "hover:bg-bg-sunken border-border-subtle"),
|
|
@@ -1027,7 +1027,7 @@ var Ge = [
|
|
|
1027
1027
|
E(x),
|
|
1028
1028
|
" USD at the current credit rate (1 cr =",
|
|
1029
1029
|
" ",
|
|
1030
|
-
E(
|
|
1030
|
+
E(Y),
|
|
1031
1031
|
")"
|
|
1032
1032
|
]
|
|
1033
1033
|
}),
|
|
@@ -1046,13 +1046,13 @@ var Ge = [
|
|
|
1046
1046
|
50
|
|
1047
1047
|
].map((e) => /* @__PURE__ */ W("button", {
|
|
1048
1048
|
type: "button",
|
|
1049
|
-
onClick: () => h("price", String(
|
|
1049
|
+
onClick: () => h("price", String(Ze(e))),
|
|
1050
1050
|
className: "rounded border border-border-subtle px-2 py-0.5 hover:bg-bg-sunken transition-colors",
|
|
1051
1051
|
children: [
|
|
1052
1052
|
"$",
|
|
1053
1053
|
e,
|
|
1054
1054
|
" = ",
|
|
1055
|
-
|
|
1055
|
+
Ze(e).toLocaleString(),
|
|
1056
1056
|
" cr"
|
|
1057
1057
|
]
|
|
1058
1058
|
}, e))]
|
|
@@ -1258,7 +1258,7 @@ var Ge = [
|
|
|
1258
1258
|
})
|
|
1259
1259
|
]
|
|
1260
1260
|
});
|
|
1261
|
-
},
|
|
1261
|
+
}, $e = ({ appId: e, onNavigate: n, pricingDone: i = !1, onNavigateToPricing: a }) => {
|
|
1262
1262
|
let { t: o } = P(), s = (e, t) => {
|
|
1263
1263
|
let n = o(e);
|
|
1264
1264
|
return n === e ? t : n;
|
|
@@ -1267,7 +1267,7 @@ var Ge = [
|
|
|
1267
1267
|
fetchPolicy: "cache-and-network"
|
|
1268
1268
|
});
|
|
1269
1269
|
if (u) return /* @__PURE__ */ U(J, { message: s("devportal.loadingVersions", "Loading versions…") });
|
|
1270
|
-
if (d) return /* @__PURE__ */ U(
|
|
1270
|
+
if (d) return /* @__PURE__ */ U(Ke, { message: d.message });
|
|
1271
1271
|
let f = (l?.application?.versions?.edges ?? []).map((e) => e.node);
|
|
1272
1272
|
return /* @__PURE__ */ W("div", {
|
|
1273
1273
|
className: "space-y-4",
|
|
@@ -1407,17 +1407,17 @@ var Ge = [
|
|
|
1407
1407
|
})
|
|
1408
1408
|
]
|
|
1409
1409
|
});
|
|
1410
|
-
},
|
|
1410
|
+
}, et = ({ appId: e, onNavigate: t }) => {
|
|
1411
1411
|
let { t: n } = P(), r = (e, t) => {
|
|
1412
1412
|
let r = n(e);
|
|
1413
1413
|
return r === e ? t : r;
|
|
1414
1414
|
}, { data: i, loading: a, error: o } = u({ variables: { applicationId: e } });
|
|
1415
|
-
return a ? /* @__PURE__ */ U(J, { message: r("devportal.loadingWebhooks", "Loading webhooks...") }) : o ? /* @__PURE__ */ U(
|
|
1415
|
+
return a ? /* @__PURE__ */ U(J, { message: r("devportal.loadingWebhooks", "Loading webhooks...") }) : o ? /* @__PURE__ */ U(Ke, { message: o.message }) : /* @__PURE__ */ U(it, {
|
|
1416
1416
|
appId: e,
|
|
1417
1417
|
webhooks: (i?.webhooks ?? []).map(We),
|
|
1418
1418
|
onNavigate: t
|
|
1419
1419
|
});
|
|
1420
|
-
},
|
|
1420
|
+
}, tt = ({ authAppId: e, appName: t, onGrantDelegation: n, onNavigate: a }) => {
|
|
1421
1421
|
let { t: o } = P(), s = (e, t) => {
|
|
1422
1422
|
let n = o(e);
|
|
1423
1423
|
return n === e ? t : n;
|
|
@@ -1447,7 +1447,7 @@ var Ge = [
|
|
|
1447
1447
|
_(!1);
|
|
1448
1448
|
}
|
|
1449
1449
|
}, [f, d]);
|
|
1450
|
-
return e ? l ? /* @__PURE__ */ U(J, { message: s("devportal.loadingDelegations", "Loading delegations...") }) : u ? /* @__PURE__ */ U(
|
|
1450
|
+
return e ? l ? /* @__PURE__ */ U(J, { message: s("devportal.loadingDelegations", "Loading delegations...") }) : u ? /* @__PURE__ */ U(Ke, { message: u.message }) : /* @__PURE__ */ W(H, { children: [
|
|
1451
1451
|
b && /* @__PURE__ */ U("div", {
|
|
1452
1452
|
className: "rounded-lg border border-border-subtle bg-status-success-bg-subtle p-3 text-sm text-status-success-text",
|
|
1453
1453
|
children: /* @__PURE__ */ W("div", {
|
|
@@ -1459,7 +1459,7 @@ var Ge = [
|
|
|
1459
1459
|
})]
|
|
1460
1460
|
})
|
|
1461
1461
|
}),
|
|
1462
|
-
/* @__PURE__ */ U(
|
|
1462
|
+
/* @__PURE__ */ U(at, {
|
|
1463
1463
|
appName: t,
|
|
1464
1464
|
delegations: S,
|
|
1465
1465
|
onGrantDelegation: n,
|
|
@@ -1498,7 +1498,7 @@ var Ge = [
|
|
|
1498
1498
|
children: [/* @__PURE__ */ U(L, { size: 16 }), s("devportal.manageOAuthApps", "Manage OAuth Apps")]
|
|
1499
1499
|
})
|
|
1500
1500
|
});
|
|
1501
|
-
},
|
|
1501
|
+
}, nt = ({ appId: e }) => {
|
|
1502
1502
|
let { t } = P(), n = (e, n) => {
|
|
1503
1503
|
let r = t(e);
|
|
1504
1504
|
return r === e ? n : r;
|
|
@@ -1511,8 +1511,8 @@ var Ge = [
|
|
|
1511
1511
|
}, [r]).toISOString(),
|
|
1512
1512
|
endDate: r.toISOString()
|
|
1513
1513
|
} });
|
|
1514
|
-
return a ? /* @__PURE__ */ U(J, { message: n("devportal.loadingAnalytics", "Loading analytics...") }) : s ? /* @__PURE__ */ U(
|
|
1515
|
-
},
|
|
1514
|
+
return a ? /* @__PURE__ */ U(J, { message: n("devportal.loadingAnalytics", "Loading analytics...") }) : s ? /* @__PURE__ */ U(Ke, { message: s.message }) : /* @__PURE__ */ U(ot, { analytics: (i?.applicationAnalytics ?? []).map(G) });
|
|
1515
|
+
}, rt = ({ app: e, appId: t, refetch: n }) => {
|
|
1516
1516
|
let { t: r } = P(), i = (e, t) => {
|
|
1517
1517
|
let n = r(e);
|
|
1518
1518
|
return n === e ? t : n;
|
|
@@ -1584,19 +1584,19 @@ var Ge = [
|
|
|
1584
1584
|
/* @__PURE__ */ U(Ve, { children: /* @__PURE__ */ W("div", {
|
|
1585
1585
|
className: "grid gap-4 sm:grid-cols-4",
|
|
1586
1586
|
children: [
|
|
1587
|
-
/* @__PURE__ */ U(
|
|
1587
|
+
/* @__PURE__ */ U($, {
|
|
1588
1588
|
label: i("devportal.totalInstalls", "Total Installs"),
|
|
1589
1589
|
value: e.installCount.toLocaleString()
|
|
1590
1590
|
}),
|
|
1591
|
-
/* @__PURE__ */ U(
|
|
1591
|
+
/* @__PURE__ */ U($, {
|
|
1592
1592
|
label: i("devportal.activeInstalls", "Active Installs"),
|
|
1593
1593
|
value: e.activeInstallCount.toLocaleString()
|
|
1594
1594
|
}),
|
|
1595
|
-
/* @__PURE__ */ U(
|
|
1595
|
+
/* @__PURE__ */ U($, {
|
|
1596
1596
|
label: i("devportal.averageRating", "Average Rating"),
|
|
1597
1597
|
value: e.averageRating ? `${e.averageRating.toFixed(1)} ★` : i("devportal.notAvailable", "N/A")
|
|
1598
1598
|
}),
|
|
1599
|
-
/* @__PURE__ */ U(
|
|
1599
|
+
/* @__PURE__ */ U($, {
|
|
1600
1600
|
label: i("devportal.reviews", "Reviews"),
|
|
1601
1601
|
value: e.reviewCount.toString()
|
|
1602
1602
|
})
|
|
@@ -1686,27 +1686,27 @@ var Ge = [
|
|
|
1686
1686
|
children: /* @__PURE__ */ W("div", {
|
|
1687
1687
|
className: "space-y-2",
|
|
1688
1688
|
children: [
|
|
1689
|
-
e.websiteUrl && /* @__PURE__ */ U(
|
|
1689
|
+
e.websiteUrl && /* @__PURE__ */ U(mt, {
|
|
1690
1690
|
label: i("devportal.website", "Website"),
|
|
1691
1691
|
url: e.websiteUrl
|
|
1692
1692
|
}),
|
|
1693
|
-
e.documentationUrl && /* @__PURE__ */ U(
|
|
1693
|
+
e.documentationUrl && /* @__PURE__ */ U(mt, {
|
|
1694
1694
|
label: i("devportal.documentation", "Documentation"),
|
|
1695
1695
|
url: e.documentationUrl
|
|
1696
1696
|
}),
|
|
1697
|
-
e.supportUrl && /* @__PURE__ */ U(
|
|
1697
|
+
e.supportUrl && /* @__PURE__ */ U(mt, {
|
|
1698
1698
|
label: i("devportal.support", "Support"),
|
|
1699
1699
|
url: e.supportUrl
|
|
1700
1700
|
}),
|
|
1701
|
-
e.githubUrl && /* @__PURE__ */ U(
|
|
1701
|
+
e.githubUrl && /* @__PURE__ */ U(mt, {
|
|
1702
1702
|
label: i("devportal.github", "GitHub"),
|
|
1703
1703
|
url: e.githubUrl
|
|
1704
1704
|
}),
|
|
1705
|
-
e.privacyPolicyUrl && /* @__PURE__ */ U(
|
|
1705
|
+
e.privacyPolicyUrl && /* @__PURE__ */ U(mt, {
|
|
1706
1706
|
label: i("devportal.privacyPolicy", "Privacy Policy"),
|
|
1707
1707
|
url: e.privacyPolicyUrl
|
|
1708
1708
|
}),
|
|
1709
|
-
e.termsOfServiceUrl && /* @__PURE__ */ U(
|
|
1709
|
+
e.termsOfServiceUrl && /* @__PURE__ */ U(mt, {
|
|
1710
1710
|
label: i("devportal.termsOfService", "Terms of Service"),
|
|
1711
1711
|
url: e.termsOfServiceUrl
|
|
1712
1712
|
})
|
|
@@ -1716,7 +1716,7 @@ var Ge = [
|
|
|
1716
1716
|
})]
|
|
1717
1717
|
})]
|
|
1718
1718
|
});
|
|
1719
|
-
},
|
|
1719
|
+
}, it = ({ appId: e, webhooks: t, onNavigate: n }) => {
|
|
1720
1720
|
let { t: i } = P(), a = (e, t) => {
|
|
1721
1721
|
let n = i(e);
|
|
1722
1722
|
return n === e ? t : n;
|
|
@@ -1828,7 +1828,7 @@ var Ge = [
|
|
|
1828
1828
|
})
|
|
1829
1829
|
})]
|
|
1830
1830
|
});
|
|
1831
|
-
},
|
|
1831
|
+
}, at = ({ appName: e, delegations: n, onGrantDelegation: i, onRevokeDelegation: a, selectedDelegationIds: o, onToggleSelectDelegation: s, onToggleAllDelegations: c, onClearSelection: l, onRevokeSelected: u, allVisibleSelected: d, partiallySelected: f }) => {
|
|
1832
1832
|
let { t: p } = P(), m = (e, t) => {
|
|
1833
1833
|
let n = p(e);
|
|
1834
1834
|
return n === e ? t : n;
|
|
@@ -2019,7 +2019,7 @@ var Ge = [
|
|
|
2019
2019
|
})
|
|
2020
2020
|
]
|
|
2021
2021
|
});
|
|
2022
|
-
},
|
|
2022
|
+
}, ot = ({ analytics: e }) => {
|
|
2023
2023
|
let { t } = P(), n = (e, n) => {
|
|
2024
2024
|
let r = t(e);
|
|
2025
2025
|
return r === e ? n : r;
|
|
@@ -2029,22 +2029,22 @@ var Ge = [
|
|
|
2029
2029
|
children: [/* @__PURE__ */ W("div", {
|
|
2030
2030
|
className: "grid gap-4 sm:grid-cols-4",
|
|
2031
2031
|
children: [
|
|
2032
|
-
/* @__PURE__ */ U(
|
|
2032
|
+
/* @__PURE__ */ U($, {
|
|
2033
2033
|
label: n("devportal.activeUsers", "Active Users"),
|
|
2034
2034
|
value: i?.activeUsers.toLocaleString() || "0",
|
|
2035
2035
|
trend: a ? o(i.activeUsers, a.activeUsers) : void 0
|
|
2036
2036
|
}),
|
|
2037
|
-
/* @__PURE__ */ U(
|
|
2037
|
+
/* @__PURE__ */ U($, {
|
|
2038
2038
|
label: n("devportal.apiCalls", "API Calls"),
|
|
2039
2039
|
value: i ? `${(i.apiCalls / 1e3).toFixed(1)}K` : "0",
|
|
2040
2040
|
trend: a ? o(i.apiCalls, a.apiCalls) : void 0
|
|
2041
2041
|
}),
|
|
2042
|
-
/* @__PURE__ */ U(
|
|
2042
|
+
/* @__PURE__ */ U($, {
|
|
2043
2043
|
label: n("devportal.avgResponseTime", "Avg Response Time"),
|
|
2044
2044
|
value: i?.avgResponseTime ? `${i.avgResponseTime}ms` : n("devportal.notAvailable", "N/A"),
|
|
2045
2045
|
trend: a && i?.avgResponseTime ? -o(i.avgResponseTime, a.avgResponseTime || 1) : void 0
|
|
2046
2046
|
}),
|
|
2047
|
-
/* @__PURE__ */ U(
|
|
2047
|
+
/* @__PURE__ */ U($, {
|
|
2048
2048
|
label: n("devportal.errorRate", "Error Rate"),
|
|
2049
2049
|
value: i && i.apiCalls > 0 ? `${(i.errors / i.apiCalls * 100).toFixed(2)}%` : "0%",
|
|
2050
2050
|
trend: a && i && i.apiCalls > 0 && a.apiCalls > 0 ? -o(i.errors / i.apiCalls, a.errors / a.apiCalls) : void 0
|
|
@@ -2100,11 +2100,11 @@ var Ge = [
|
|
|
2100
2100
|
})
|
|
2101
2101
|
})]
|
|
2102
2102
|
});
|
|
2103
|
-
},
|
|
2103
|
+
}, X = "# Sample query — replace with your own\n# Note: introspection is disabled on this gateway for security.\n# Use a real query from your app's API schema instead.\nquery GetCurrentUser {\n currentUser {\n id\n email\n }\n}", st = ({ app: t }) => {
|
|
2104
2104
|
let { apiGatewayUrl: n, workspacesGatewayUrl: r, authToken: i } = e(), { t: a } = P(), o = (e, t) => {
|
|
2105
2105
|
let n = a(e);
|
|
2106
2106
|
return n === e ? t : n;
|
|
2107
|
-
}, [s, c] = N(
|
|
2107
|
+
}, [s, c] = N(X), [l, u] = N("{}"), [d, f] = N(""), [p, m] = N(!1), [h, g] = N(`${n || "https://gw-global.local.burdenoff.com"}/global/graphql`), [_, v] = N(i || ""), [y, b] = N(!1), x = A(async () => {
|
|
2108
2108
|
m(!0), f("");
|
|
2109
2109
|
try {
|
|
2110
2110
|
let e = {};
|
|
@@ -2279,7 +2279,7 @@ var Ge = [
|
|
|
2279
2279
|
})] })
|
|
2280
2280
|
]
|
|
2281
2281
|
});
|
|
2282
|
-
},
|
|
2282
|
+
}, ct = ({ label: e, value: n, onChange: r, hint: i, accept: a = "image/png,image/jpeg,image/webp,image/gif,image/svg+xml", aspectClass: o = "aspect-square", upload: s, uploading: c, progress: l, error: u }) => {
|
|
2283
2283
|
let d = M(null), [f, p] = N(!1), m = M(n);
|
|
2284
2284
|
m.current !== n && (m.current = n, f && p(!1));
|
|
2285
2285
|
let h = A(async (e) => {
|
|
@@ -2356,7 +2356,7 @@ var Ge = [
|
|
|
2356
2356
|
})
|
|
2357
2357
|
]
|
|
2358
2358
|
});
|
|
2359
|
-
},
|
|
2359
|
+
}, Z = ({ urls: e, onChange: n, upload: r, uploading: i, progress: a, error: o }) => {
|
|
2360
2360
|
let s = M(null), [c, l] = N(""), u = A(async (t) => {
|
|
2361
2361
|
try {
|
|
2362
2362
|
let i = await r(t);
|
|
@@ -2451,13 +2451,13 @@ var Ge = [
|
|
|
2451
2451
|
})
|
|
2452
2452
|
]
|
|
2453
2453
|
});
|
|
2454
|
-
},
|
|
2454
|
+
}, Q = new Set(["workflow", "template"]), lt = [{
|
|
2455
2455
|
value: "FREE",
|
|
2456
2456
|
label: "Free"
|
|
2457
2457
|
}, {
|
|
2458
2458
|
value: "PAID",
|
|
2459
2459
|
label: "Paid"
|
|
2460
|
-
}],
|
|
2460
|
+
}], ut = {
|
|
2461
2461
|
NODE: [
|
|
2462
2462
|
{
|
|
2463
2463
|
value: "node",
|
|
@@ -2529,12 +2529,12 @@ var Ge = [
|
|
|
2529
2529
|
label: "Plugin"
|
|
2530
2530
|
}
|
|
2531
2531
|
]
|
|
2532
|
-
},
|
|
2532
|
+
}, dt = {
|
|
2533
2533
|
NODE: "node",
|
|
2534
2534
|
WORKFLOW: "workflow",
|
|
2535
2535
|
APP: "app"
|
|
2536
2536
|
};
|
|
2537
|
-
function
|
|
2537
|
+
function ft(e) {
|
|
2538
2538
|
let t = e.manifest ?? {}, n = t.identity ?? {}, r = (t.digital ?? {}).install ?? {}, i = t.compatibility ?? {}, a = Array.isArray(t.permissions) ? t.permissions : [], o = Array.isArray(e.screenshots) ? e.screenshots.join("\n") : "";
|
|
2539
2539
|
return {
|
|
2540
2540
|
iconUrl: e.iconUrl ?? "",
|
|
@@ -2549,7 +2549,7 @@ function pt(e) {
|
|
|
2549
2549
|
supportUrl: e.supportUrl ?? "",
|
|
2550
2550
|
privacyPolicyUrl: e.privacyPolicyUrl ?? "",
|
|
2551
2551
|
termsOfServiceUrl: e.termsOfServiceUrl ?? "",
|
|
2552
|
-
manifestItemType: typeof t.itemType == "string" ? t.itemType :
|
|
2552
|
+
manifestItemType: typeof t.itemType == "string" ? t.itemType : dt[e.appType] ?? "",
|
|
2553
2553
|
manifestDisplayName: typeof n.displayName == "string" ? n.displayName : e.name ?? "",
|
|
2554
2554
|
manifestVersion: typeof n.version == "string" ? n.version : "",
|
|
2555
2555
|
manifestInstallType: typeof r.type == "string" ? r.type : "zip",
|
|
@@ -2560,15 +2560,15 @@ function pt(e) {
|
|
|
2560
2560
|
manifestJsonContent: typeof t.jsonContent == "string" ? t.jsonContent : typeof t.content == "string" ? t.content : ""
|
|
2561
2561
|
};
|
|
2562
2562
|
}
|
|
2563
|
-
var
|
|
2563
|
+
var pt = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i = !1, onNavigateToVersions: a, onNavigateToPricing: o, onNavigateToSubmission: s }) => {
|
|
2564
2564
|
let { workspacesGatewayUrl: c, authToken: l, workspaceId: u, getWorkspaceToken: d } = e(), { t: f } = P(), p = (e, t) => {
|
|
2565
2565
|
let n = f(e);
|
|
2566
2566
|
return n === e ? t : n;
|
|
2567
|
-
}, [m, h] = N(() =>
|
|
2567
|
+
}, [m, h] = N(() => ft(t)), [g, _] = N(!1), [v, y] = N(null), x = M(ft(t)), C = M(t);
|
|
2568
2568
|
C.current = t;
|
|
2569
2569
|
let w = JSON.stringify(m) !== JSON.stringify(x.current), [T] = b();
|
|
2570
2570
|
de(() => {
|
|
2571
|
-
let e =
|
|
2571
|
+
let e = ft(C.current);
|
|
2572
2572
|
h(e), x.current = e, y(null);
|
|
2573
2573
|
}, [t.id]);
|
|
2574
2574
|
let E = (e, t) => {
|
|
@@ -2579,7 +2579,7 @@ var mt = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2579
2579
|
}, D = m.shortDescription.trim().length > 0 && m.privacyPolicyUrl.trim().length > 0 && m.termsOfServiceUrl.trim().length > 0, ee = async () => {
|
|
2580
2580
|
_(!0), y(null);
|
|
2581
2581
|
try {
|
|
2582
|
-
let e = m.screenshotsText.split("\n").map((e) => e.trim()).filter(Boolean), n = m.manifestPermissionsText.split("\n").map((e) => e.trim()).filter(Boolean), r =
|
|
2582
|
+
let e = m.screenshotsText.split("\n").map((e) => e.trim()).filter(Boolean), n = m.manifestPermissionsText.split("\n").map((e) => e.trim()).filter(Boolean), r = Q.has(m.manifestItemType), i = t.manifest ?? {}, a = {
|
|
2583
2583
|
manifestVersion: typeof i.manifestVersion == "string" ? i.manifestVersion : "1.0",
|
|
2584
2584
|
itemType: m.manifestItemType || void 0,
|
|
2585
2585
|
identity: {
|
|
@@ -2616,7 +2616,7 @@ var mt = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2616
2616
|
} finally {
|
|
2617
2617
|
_(!1);
|
|
2618
2618
|
}
|
|
2619
|
-
}, { upload: te, uploading: ne, progress: ae, error: oe } = ue(c, l, u, d, "/DevPortal/Assets"), { upload: ce, uploading: le, progress: A, error: j } = ue(c, l, u, d, "/DevPortal/Assets"), { upload: fe, uploading: me, progress: he, error: I } = ue(c, l, u, d, "/DevPortal/Assets"), ye =
|
|
2619
|
+
}, { upload: te, uploading: ne, progress: ae, error: oe } = ue(c, l, u, d, "/DevPortal/Assets"), { upload: ce, uploading: le, progress: A, error: j } = ue(c, l, u, d, "/DevPortal/Assets"), { upload: fe, uploading: me, progress: he, error: I } = ue(c, l, u, d, "/DevPortal/Assets"), ye = Q.has(m.manifestItemType), be = t.status === "SUBMITTED";
|
|
2620
2620
|
return /* @__PURE__ */ W("div", {
|
|
2621
2621
|
className: "space-y-8 max-w-3xl",
|
|
2622
2622
|
children: [
|
|
@@ -2696,9 +2696,9 @@ var mt = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2696
2696
|
value: m.manifestItemType,
|
|
2697
2697
|
onChange: (e) => {
|
|
2698
2698
|
let t = e.target.value;
|
|
2699
|
-
E("manifestItemType", t),
|
|
2699
|
+
E("manifestItemType", t), Q.has(t) ? E("manifestInstallType", "json") : m.manifestInstallType === "json" && E("manifestInstallType", "zip");
|
|
2700
2700
|
},
|
|
2701
|
-
options:
|
|
2701
|
+
options: ut[t.appType] ?? ut.APP,
|
|
2702
2702
|
placeholder: p("devportal.selectItemType", "Select item type…"),
|
|
2703
2703
|
hint: p("devportal.storeItemTypeHint", "Sub-category shown in the marketplace (e.g. Node vs Agent vs Parser)")
|
|
2704
2704
|
}),
|
|
@@ -2727,7 +2727,7 @@ var mt = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2727
2727
|
children: [
|
|
2728
2728
|
/* @__PURE__ */ W("div", {
|
|
2729
2729
|
className: "grid gap-5 sm:grid-cols-2",
|
|
2730
|
-
children: [/* @__PURE__ */ U(
|
|
2730
|
+
children: [/* @__PURE__ */ U(ct, {
|
|
2731
2731
|
label: p("devportal.iconUrl", "Icon"),
|
|
2732
2732
|
value: m.iconUrl,
|
|
2733
2733
|
onChange: (e) => E("iconUrl", e),
|
|
@@ -2737,7 +2737,7 @@ var mt = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2737
2737
|
uploading: ne,
|
|
2738
2738
|
progress: ae,
|
|
2739
2739
|
error: oe
|
|
2740
|
-
}), /* @__PURE__ */ U(
|
|
2740
|
+
}), /* @__PURE__ */ U(ct, {
|
|
2741
2741
|
label: p("devportal.bannerUrl", "Banner"),
|
|
2742
2742
|
value: m.bannerUrl,
|
|
2743
2743
|
onChange: (e) => E("bannerUrl", e),
|
|
@@ -2771,7 +2771,7 @@ var mt = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2771
2771
|
rows: 5,
|
|
2772
2772
|
hint: p("devportal.fullDescHint", "Markdown supported")
|
|
2773
2773
|
}),
|
|
2774
|
-
/* @__PURE__ */ U(
|
|
2774
|
+
/* @__PURE__ */ U(Z, {
|
|
2775
2775
|
urls: m.screenshotsText.split("\n").map((e) => e.trim()).filter(Boolean),
|
|
2776
2776
|
onChange: (e) => E("screenshotsText", e.join("\n")),
|
|
2777
2777
|
upload: fe,
|
|
@@ -2882,7 +2882,7 @@ var mt = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2882
2882
|
})
|
|
2883
2883
|
]
|
|
2884
2884
|
});
|
|
2885
|
-
},
|
|
2885
|
+
}, $ = ({ label: e, value: n, trend: r }) => {
|
|
2886
2886
|
let { t: i } = P();
|
|
2887
2887
|
return /* @__PURE__ */ W(He, {
|
|
2888
2888
|
treatment: "metric",
|
|
@@ -2910,7 +2910,7 @@ var mt = ({ app: t, versionCount: n = 0, isPackageApp: r = !1, pricingDone: i =
|
|
|
2910
2910
|
})
|
|
2911
2911
|
]
|
|
2912
2912
|
});
|
|
2913
|
-
},
|
|
2913
|
+
}, mt = ({ label: e, url: t }) => /* @__PURE__ */ W("a", {
|
|
2914
2914
|
href: t,
|
|
2915
2915
|
target: "_blank",
|
|
2916
2916
|
rel: "noopener noreferrer",
|
|
@@ -3195,6 +3195,6 @@ var bt = ({ level: e, onChange: t }) => /* @__PURE__ */ U("div", {
|
|
|
3195
3195
|
});
|
|
3196
3196
|
};
|
|
3197
3197
|
//#endregion
|
|
3198
|
-
export {
|
|
3198
|
+
export { qe as ApplicationDetailPage };
|
|
3199
3199
|
|
|
3200
3200
|
//# sourceMappingURL=ApplicationDetailPage.js.map
|