@burdenoff/microfe-channel 2026.1013.1 → 2026.1107.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/channel/ChannelRoot.d.ts +0 -2
- package/dist/channel/ChannelRoot.js +9 -6
- package/dist/channel/ChannelRoot.js.map +1 -1
- package/dist/channel/ChannelRoutes.d.ts +1 -2
- package/dist/channel/ChannelRoutes.js +5 -6
- package/dist/channel/ChannelRoutes.js.map +1 -1
- package/dist/channel/components/AdapterCredentialsForm.d.ts +2 -4
- package/dist/channel/components/AdapterCredentialsForm.js +2 -3
- package/dist/channel/components/AdapterCredentialsForm.js.map +1 -1
- package/dist/channel/components/FeatureNotEnabled.d.ts +1 -2
- package/dist/channel/components/FeatureNotEnabled.js +1 -2
- package/dist/channel/components/FeatureNotEnabled.js.map +1 -1
- package/dist/channel/components/MarkdownEditor.d.ts +1 -2
- package/dist/channel/components/MarkdownEditor.js +2 -5
- package/dist/channel/components/MarkdownEditor.js.map +1 -1
- package/dist/channel/components/PermissionGuard.d.ts +0 -2
- package/dist/channel/components/PermissionGuard.js +1 -2
- package/dist/channel/components/PermissionGuard.js.map +1 -1
- package/dist/channel/config/adapterCredentials.d.ts +0 -2
- package/dist/channel/config/adapterCredentials.js +3 -7
- package/dist/channel/config/adapterCredentials.js.map +1 -1
- package/dist/channel/constants/permissions.d.ts +0 -1
- package/dist/channel/constants/permissions.js +1 -2
- package/dist/channel/constants/permissions.js.map +1 -1
- package/dist/channel/graphql/global-client.d.ts +0 -2
- package/dist/channel/graphql/global-client.js +5 -6
- package/dist/channel/graphql/global-client.js.map +1 -1
- package/dist/channel/hooks/useChannelOrgSettings.d.ts +0 -2
- package/dist/channel/hooks/useChannelOrgSettings.js +20 -21
- package/dist/channel/hooks/useChannelOrgSettings.js.map +1 -1
- package/dist/channel/hooks/useChannelSubscription.d.ts +0 -1
- package/dist/channel/hooks/useChannelSubscription.js +7 -12
- package/dist/channel/hooks/useChannelSubscription.js.map +1 -1
- package/dist/channel/hooks/useChannels.d.ts +20 -30
- package/dist/channel/hooks/useChannels.js +100 -101
- package/dist/channel/hooks/useChannels.js.map +1 -1
- package/dist/channel/hooks/useTr.d.ts +0 -1
- package/dist/channel/hooks/useTr.js +1 -2
- package/dist/channel/hooks/useTr.js.map +1 -1
- package/dist/channel/index.d.ts +0 -1
- package/dist/channel/index.js +3 -2
- package/dist/channel/modules/channels/hooks/useExport.d.ts +0 -2
- package/dist/channel/modules/channels/hooks/useExport.js +77 -80
- package/dist/channel/modules/channels/hooks/useExport.js.map +1 -1
- package/dist/channel/modules/channels/i18n.d.ts +0 -2
- package/dist/channel/modules/channels/i18n.js +1 -2
- package/dist/channel/modules/channels/i18n.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.js +12 -13
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.js +400 -401
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.js +11 -10
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ChannelUsersPage.js +6 -11
- package/dist/channel/modules/channels/pages/ChannelUsersPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ChannelsListPage.js +289 -290
- package/dist/channel/modules/channels/pages/ChannelsListPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js +11 -12
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ConnectionsListPage.js +3 -4
- package/dist/channel/modules/channels/pages/ConnectionsListPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/CreateChannelPage.js +6 -7
- package/dist/channel/modules/channels/pages/CreateChannelPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/CreateConnectionPage.js +39 -40
- package/dist/channel/modules/channels/pages/CreateConnectionPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js +8 -13
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/EditChannelPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/EditChannelPage.js +108 -106
- package/dist/channel/modules/channels/pages/EditChannelPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/EditConnectionPage.js +22 -23
- package/dist/channel/modules/channels/pages/EditConnectionPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/SendMessagePage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/SendMessagePage.js +181 -188
- package/dist/channel/modules/channels/pages/SendMessagePage.js.map +1 -1
- package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/WebhookEventsPage.js +145 -150
- package/dist/channel/modules/channels/pages/WebhookEventsPage.js.map +1 -1
- package/dist/channel/pages/ChannelLandingPage.d.ts +1 -2
- package/dist/channel/pages/ChannelLandingPage.js +20 -21
- package/dist/channel/pages/ChannelLandingPage.js.map +1 -1
- package/dist/channel/providers/ChannelProvider.d.ts +0 -2
- package/dist/channel/providers/ChannelProvider.js +1 -2
- package/dist/channel/providers/ChannelProvider.js.map +1 -1
- package/dist/channel/types/index.d.ts +0 -2
- package/dist/channel/utils/shellBridge.d.ts +0 -1
- package/dist/channel/utils/shellBridge.js +1 -2
- package/dist/channel/utils/shellBridge.js.map +1 -1
- package/dist/dev/App.d.ts +1 -2
- package/dist/dev/main.d.ts +0 -2
- package/dist/generated/global-operations.d.ts +885 -336
- package/dist/generated/global-operations.js +2 -3
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +2 -22
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +4 -2
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/index.d.ts +0 -1
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
- package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
- package/dist/translations/en.d.ts +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +65 -43
- package/dist/channel/ChannelRoot.d.ts.map +0 -1
- package/dist/channel/ChannelRoutes.d.ts.map +0 -1
- package/dist/channel/components/AdapterCredentialsForm.d.ts.map +0 -1
- package/dist/channel/components/FeatureNotEnabled.d.ts.map +0 -1
- package/dist/channel/components/MarkdownEditor.d.ts.map +0 -1
- package/dist/channel/components/PermissionGuard.d.ts.map +0 -1
- package/dist/channel/config/adapterCredentials.d.ts.map +0 -1
- package/dist/channel/constants/permissions.d.ts.map +0 -1
- package/dist/channel/graphql/global-client.d.ts.map +0 -1
- package/dist/channel/hooks/useChannelOrgSettings.d.ts.map +0 -1
- package/dist/channel/hooks/useChannelSubscription.d.ts.map +0 -1
- package/dist/channel/hooks/useChannels.d.ts.map +0 -1
- package/dist/channel/hooks/useTr.d.ts.map +0 -1
- package/dist/channel/index.d.ts.map +0 -1
- package/dist/channel/modules/channels/hooks/useExport.d.ts.map +0 -1
- package/dist/channel/modules/channels/i18n.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/EditChannelPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/SendMessagePage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts.map +0 -1
- package/dist/channel/pages/ChannelLandingPage.d.ts.map +0 -1
- package/dist/channel/providers/ChannelProvider.d.ts.map +0 -1
- package/dist/channel/types/index.d.ts.map +0 -1
- package/dist/channel/utils/shellBridge.d.ts.map +0 -1
- package/dist/dev/App.d.ts.map +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { useChannel as e } from "../../../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useExportWebhookEvents as
|
|
8
|
-
import { useCallback as
|
|
9
|
-
import { useI18n as
|
|
10
|
-
import { AlertCircle as
|
|
11
|
-
import { useNavigate as
|
|
12
|
-
import { usePermissions as
|
|
13
|
-
import { Fragment as
|
|
14
|
-
import { CTAOverflowMenu as
|
|
15
|
-
|
|
16
|
-
var
|
|
1
|
+
import { useChannel as e } from "../../../hooks/useChannels.js";
|
|
2
|
+
import { useChannel as t } from "../../../providers/ChannelProvider.js";
|
|
3
|
+
import { PermissionGuard as n } from "../../../components/PermissionGuard.js";
|
|
4
|
+
import { CHANNEL_PERMISSIONS as r } from "../../../constants/permissions.js";
|
|
5
|
+
import { emitShellEvent as i } from "../../../utils/shellBridge.js";
|
|
6
|
+
import { WEBHOOK_RECEIVED_SUBSCRIPTION as a, useChannelSubscription as ee } from "../../../hooks/useChannelSubscription.js";
|
|
7
|
+
import { useExportWebhookEvents as te } from "../hooks/useExport.js";
|
|
8
|
+
import { useCallback as o, useEffect as s, useRef as c, useState as l } from "react";
|
|
9
|
+
import { useI18n as ne } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
10
|
+
import { AlertCircle as u, ArrowLeft as d, CheckCircle2 as f, ChevronLeft as p, ChevronRight as m, Clock as h, Download as re, Eye as ie, EyeOff as g, Loader2 as _, RefreshCw as v, XCircle as y } from "lucide-react";
|
|
11
|
+
import { useNavigate as ae, useParams as b } from "react-router";
|
|
12
|
+
import { usePermissions as oe } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
13
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
14
|
+
import { CTAOverflowMenu as se, EmphasisPanel as w, GlassCard as T, IllustratedEmptyState as ce, PagePurpose as le } from "@burdenoff/fe-libs/ui";
|
|
15
|
+
// src/channel/modules/channels/pages/WebhookEventsPage.tsx
|
|
16
|
+
var E = {
|
|
17
17
|
PENDING: {
|
|
18
18
|
label: "Pending",
|
|
19
19
|
color: "text-text-secondary bg-bg-sunken",
|
|
20
|
-
icon:
|
|
20
|
+
icon: h
|
|
21
21
|
},
|
|
22
22
|
PROCESSING: {
|
|
23
23
|
label: "Processing",
|
|
24
24
|
color: "text-accent-primary bg-accent-primary/10",
|
|
25
|
-
icon:
|
|
25
|
+
icon: v
|
|
26
26
|
},
|
|
27
27
|
COMPLETED: {
|
|
28
28
|
label: "Completed",
|
|
29
29
|
color: "text-status-success-text bg-status-success-bg-subtle",
|
|
30
|
-
icon:
|
|
30
|
+
icon: f
|
|
31
31
|
},
|
|
32
32
|
FAILED: {
|
|
33
33
|
label: "Failed",
|
|
34
34
|
color: "text-status-error-text bg-status-error-bg-subtle",
|
|
35
|
-
icon:
|
|
35
|
+
icon: y
|
|
36
36
|
},
|
|
37
37
|
IGNORED: {
|
|
38
38
|
label: "Ignored",
|
|
39
39
|
color: "text-status-warning-text bg-status-warning-bg-subtle",
|
|
40
|
-
icon:
|
|
40
|
+
icon: g
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
function
|
|
44
|
-
let { channelId:
|
|
45
|
-
let n =
|
|
43
|
+
function D() {
|
|
44
|
+
let { channelId: f } = b(), y = ae(), { hasPermission: D } = oe(), ue = D(r.CHANNEL_WEBHOOK_EXPORT), { t: de } = ne(), O = (e, t) => {
|
|
45
|
+
let n = de(e);
|
|
46
46
|
return n === e ? t : n;
|
|
47
|
-
}, { organizationId:
|
|
48
|
-
if (
|
|
47
|
+
}, { organizationId: k } = t(), { triggerExport: A, isExporting: j, exportError: M } = te(k ?? void 0, f), [N, P] = l(!0), [F, I] = l([]), [L, R] = l(null), [z, B] = l(25), [V, fe] = l(0), [H, U] = l([void 0]), [W, G] = l(0), { channel: K, isLoading: pe, error: q, fetchWebhookEvents: J } = e(f), Y = o(async (e) => {
|
|
48
|
+
if (f) {
|
|
49
49
|
P(!0);
|
|
50
50
|
try {
|
|
51
51
|
let t = await J(z, e);
|
|
@@ -55,26 +55,22 @@ function O() {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}, [
|
|
58
|
-
|
|
58
|
+
f,
|
|
59
59
|
J,
|
|
60
60
|
z
|
|
61
|
-
]), X =
|
|
62
|
-
|
|
61
|
+
]), X = c(Y), Z = c(H), Q = c(W);
|
|
62
|
+
s(() => {
|
|
63
63
|
X.current = Y, Z.current = H, Q.current = W;
|
|
64
64
|
});
|
|
65
|
-
let $ =
|
|
66
|
-
|
|
65
|
+
let $ = c(!0);
|
|
66
|
+
s(() => {
|
|
67
67
|
Promise.resolve().then(() => {
|
|
68
68
|
U([void 0]), G(0), X.current(void 0);
|
|
69
69
|
});
|
|
70
|
-
}, [z]),
|
|
71
|
-
|
|
72
|
-
$.current = !1;
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
Promise.resolve().then(() => X.current(Z.current[W]));
|
|
70
|
+
}, [z]), s(() => {
|
|
71
|
+
$.current ? $.current = !1 : Promise.resolve().then(() => X.current(Z.current[W]));
|
|
76
72
|
}, [W]);
|
|
77
|
-
let me =
|
|
73
|
+
let me = o(async () => {
|
|
78
74
|
let e = await Y(H[W]);
|
|
79
75
|
e && U((t) => {
|
|
80
76
|
let n = [...t];
|
|
@@ -84,7 +80,7 @@ function O() {
|
|
|
84
80
|
H,
|
|
85
81
|
W,
|
|
86
82
|
Y
|
|
87
|
-
]), he =
|
|
83
|
+
]), he = o(() => {
|
|
88
84
|
let e = W - 1;
|
|
89
85
|
G(e), Y(H[e]);
|
|
90
86
|
}, [
|
|
@@ -92,112 +88,112 @@ function O() {
|
|
|
92
88
|
W,
|
|
93
89
|
Y
|
|
94
90
|
]), ge = F.length === z, _e = W > 0;
|
|
95
|
-
|
|
96
|
-
query:
|
|
97
|
-
variables: { channelId:
|
|
91
|
+
ee({
|
|
92
|
+
query: a,
|
|
93
|
+
variables: { channelId: f },
|
|
98
94
|
operationName: "WebhookReceived",
|
|
99
|
-
enabled: !!
|
|
100
|
-
onData:
|
|
101
|
-
|
|
102
|
-
}, [
|
|
103
|
-
pollFn:
|
|
95
|
+
enabled: !!f,
|
|
96
|
+
onData: o(() => {
|
|
97
|
+
i("webhook.received", { channelId: f }), X.current(Z.current[Q.current]);
|
|
98
|
+
}, [f]),
|
|
99
|
+
pollFn: o(() => {
|
|
104
100
|
X.current(Z.current[Q.current]);
|
|
105
101
|
}, []),
|
|
106
102
|
pollIntervalMs: 6e4
|
|
107
103
|
});
|
|
108
|
-
let ve = (e) =>
|
|
109
|
-
return pe ? /* @__PURE__ */
|
|
104
|
+
let ve = (e) => E[e] || E.PENDING;
|
|
105
|
+
return pe ? /* @__PURE__ */ S("div", {
|
|
110
106
|
className: "flex items-center justify-center min-h-screen",
|
|
111
|
-
children: /* @__PURE__ */
|
|
107
|
+
children: /* @__PURE__ */ S(_, {
|
|
112
108
|
size: 32,
|
|
113
109
|
className: "animate-spin text-accent-primary"
|
|
114
110
|
})
|
|
115
|
-
}) : q || !K ? /* @__PURE__ */
|
|
111
|
+
}) : q || !K ? /* @__PURE__ */ S("div", {
|
|
116
112
|
className: "p-6",
|
|
117
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ C("div", {
|
|
118
114
|
className: "flex items-center gap-3 p-4 bg-status-error-bg-subtle border border-status-error-border rounded-lg",
|
|
119
115
|
children: [
|
|
120
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ S(u, {
|
|
121
117
|
size: 20,
|
|
122
118
|
className: "text-status-error-text"
|
|
123
119
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ S("div", { children: /* @__PURE__ */ S("p", {
|
|
125
121
|
className: "text-sm font-medium text-status-error-text",
|
|
126
122
|
children: q || "Channel not found"
|
|
127
123
|
}) }),
|
|
128
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ S("button", {
|
|
129
125
|
type: "button",
|
|
130
|
-
onClick: () =>
|
|
126
|
+
onClick: () => y(`/channels/${f}`),
|
|
131
127
|
className: "ml-auto px-3 py-1 text-sm text-status-error-text hover:bg-status-error-bg-subtle rounded transition-colors",
|
|
132
128
|
children: "Go Back"
|
|
133
129
|
})
|
|
134
130
|
]
|
|
135
131
|
})
|
|
136
|
-
}) : /* @__PURE__ */
|
|
137
|
-
permission:
|
|
138
|
-
children: /* @__PURE__ */
|
|
132
|
+
}) : /* @__PURE__ */ S(n, {
|
|
133
|
+
permission: r.CHANNEL_WEBHOOK_READ,
|
|
134
|
+
children: /* @__PURE__ */ C("div", {
|
|
139
135
|
className: "space-y-6 p-3 sm:p-6",
|
|
140
136
|
children: [
|
|
141
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ C("div", {
|
|
142
138
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
143
|
-
children: [/* @__PURE__ */
|
|
139
|
+
children: [/* @__PURE__ */ C("div", {
|
|
144
140
|
className: "flex items-center gap-3",
|
|
145
|
-
children: [/* @__PURE__ */
|
|
141
|
+
children: [/* @__PURE__ */ S("button", {
|
|
146
142
|
type: "button",
|
|
147
|
-
onClick: () =>
|
|
148
|
-
"aria-label":
|
|
143
|
+
onClick: () => y(`/channels/${f}`),
|
|
144
|
+
"aria-label": O("channel.backToChannel", "Back to channel"),
|
|
149
145
|
className: "p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-lg transition-colors",
|
|
150
|
-
children: /* @__PURE__ */
|
|
146
|
+
children: /* @__PURE__ */ S(d, {
|
|
151
147
|
size: 20,
|
|
152
148
|
"aria-hidden": "true"
|
|
153
149
|
})
|
|
154
|
-
}), /* @__PURE__ */
|
|
150
|
+
}), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h1", {
|
|
155
151
|
className: "text-xl sm:text-2xl font-bold text-text-primary",
|
|
156
|
-
children:
|
|
157
|
-
}), /* @__PURE__ */
|
|
152
|
+
children: O("channel.webhookEvents", "Webhook Events")
|
|
153
|
+
}), /* @__PURE__ */ C("p", {
|
|
158
154
|
className: "text-sm text-text-secondary mt-1",
|
|
159
155
|
children: [K.name, " - Event history"]
|
|
160
156
|
})] })]
|
|
161
|
-
}), /* @__PURE__ */
|
|
157
|
+
}), /* @__PURE__ */ C("div", {
|
|
162
158
|
className: "flex items-center gap-3",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
159
|
+
children: [/* @__PURE__ */ C("select", {
|
|
164
160
|
value: z,
|
|
165
161
|
onChange: (e) => B(Number(e.target.value)),
|
|
166
|
-
className: "px-3 py-2 text-sm bg-surface border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-action-primary-bg/50 text-text-primary",
|
|
162
|
+
className: "px-3 py-2 text-sm bg-surface border border-border-subtle rounded-lg focus:outline-none focus:ring-2 focus:ring-action-primary-bg/50 text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
167
163
|
children: [
|
|
168
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ S("option", {
|
|
169
165
|
value: 10,
|
|
170
166
|
children: "10 results"
|
|
171
167
|
}),
|
|
172
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ S("option", {
|
|
173
169
|
value: 25,
|
|
174
170
|
children: "25 results"
|
|
175
171
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ S("option", {
|
|
177
173
|
value: 50,
|
|
178
174
|
children: "50 results"
|
|
179
175
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ S("option", {
|
|
181
177
|
value: 100,
|
|
182
178
|
children: "100 results"
|
|
183
179
|
})
|
|
184
180
|
]
|
|
185
|
-
}), /* @__PURE__ */
|
|
186
|
-
label:
|
|
187
|
-
icon: /* @__PURE__ */
|
|
181
|
+
}), /* @__PURE__ */ S(se, { actions: [{
|
|
182
|
+
label: O("channel.refresh", "Refresh"),
|
|
183
|
+
icon: /* @__PURE__ */ S(v, {
|
|
188
184
|
size: 16,
|
|
189
185
|
className: N ? "animate-spin" : "",
|
|
190
186
|
"aria-hidden": "true"
|
|
191
187
|
}),
|
|
192
188
|
disabled: N,
|
|
193
189
|
onSelect: () => void Y(H[W])
|
|
194
|
-
}, ...
|
|
195
|
-
label:
|
|
196
|
-
icon: j ? /* @__PURE__ */
|
|
190
|
+
}, ...ue ? [{
|
|
191
|
+
label: O("channel.export", "Export"),
|
|
192
|
+
icon: j ? /* @__PURE__ */ S(_, {
|
|
197
193
|
size: 16,
|
|
198
194
|
className: "animate-spin",
|
|
199
195
|
"aria-hidden": "true"
|
|
200
|
-
}) : /* @__PURE__ */
|
|
196
|
+
}) : /* @__PURE__ */ S(re, {
|
|
201
197
|
size: 16,
|
|
202
198
|
"aria-hidden": "true"
|
|
203
199
|
}),
|
|
@@ -206,152 +202,152 @@ function O() {
|
|
|
206
202
|
}] : []] })]
|
|
207
203
|
})]
|
|
208
204
|
}),
|
|
209
|
-
M && /* @__PURE__ */
|
|
205
|
+
M && /* @__PURE__ */ C("div", {
|
|
210
206
|
className: "p-4 bg-status-error-bg-subtle border border-status-error-border rounded-lg flex items-center gap-3",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
207
|
+
children: [/* @__PURE__ */ S(u, {
|
|
212
208
|
size: 20,
|
|
213
209
|
className: "text-status-error-text"
|
|
214
|
-
}), /* @__PURE__ */
|
|
210
|
+
}), /* @__PURE__ */ S("p", {
|
|
215
211
|
className: "text-sm text-status-error-text flex-1",
|
|
216
212
|
children: M
|
|
217
213
|
})]
|
|
218
214
|
}),
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
icon: /* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ S(le, {
|
|
216
|
+
icon: /* @__PURE__ */ S(h, {
|
|
221
217
|
size: 15,
|
|
222
218
|
"aria-hidden": "true"
|
|
223
219
|
}),
|
|
224
|
-
children:
|
|
220
|
+
children: O("channel.webhookEventsPurpose", "Inbound events the provider pushed to this channel — delivery receipts, replies, status callbacks and the like. Each row shows how the event was processed, whether it was a duplicate, and the raw payload so you can inspect exactly what arrived. Use it to verify your webhook endpoint is receiving traffic and to debug why an event wasn't handled. Records are kept for 7 days.")
|
|
225
221
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ C(w, {
|
|
227
223
|
className: "flex items-center gap-3 p-4",
|
|
228
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ S("span", {
|
|
229
225
|
className: "rounded-lg bg-accent-purple-subtle p-2",
|
|
230
|
-
children: /* @__PURE__ */
|
|
226
|
+
children: /* @__PURE__ */ S(h, {
|
|
231
227
|
size: 18,
|
|
232
228
|
className: "text-accent-purple",
|
|
233
229
|
"aria-hidden": "true"
|
|
234
230
|
})
|
|
235
|
-
}), /* @__PURE__ */
|
|
231
|
+
}), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C("p", {
|
|
236
232
|
className: "text-sm font-semibold text-text-primary",
|
|
237
233
|
children: [
|
|
238
234
|
V,
|
|
239
235
|
" ",
|
|
240
|
-
V === 1 ?
|
|
236
|
+
V === 1 ? O("channel.webhookEventSingular", "webhook event") : O("channel.webhookEventsPlural", "webhook events")
|
|
241
237
|
]
|
|
242
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ S("p", {
|
|
243
239
|
className: "text-sm text-text-secondary",
|
|
244
|
-
children:
|
|
240
|
+
children: O("channel.webhookEventsBannerHint", "All incoming webhooks received by this channel, retained for 7 days. Expand a row to inspect its raw payload.")
|
|
245
241
|
})] })]
|
|
246
242
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ S(T, {
|
|
248
244
|
treatment: "plain",
|
|
249
245
|
className: "border-border-seam rounded-lg overflow-hidden p-0",
|
|
250
|
-
children: /* @__PURE__ */
|
|
246
|
+
children: /* @__PURE__ */ S("div", {
|
|
251
247
|
className: "overflow-x-auto min-w-full",
|
|
252
|
-
children: /* @__PURE__ */
|
|
248
|
+
children: /* @__PURE__ */ C("table", {
|
|
253
249
|
className: "w-full min-w-[600px]",
|
|
254
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ S("thead", {
|
|
255
251
|
className: "bg-bg-sunken/50 border-b border-border-subtle",
|
|
256
|
-
children: /* @__PURE__ */
|
|
257
|
-
/* @__PURE__ */
|
|
252
|
+
children: /* @__PURE__ */ C("tr", { children: [
|
|
253
|
+
/* @__PURE__ */ S("th", {
|
|
258
254
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
259
|
-
children:
|
|
255
|
+
children: O("channel.status", "Status")
|
|
260
256
|
}),
|
|
261
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ S("th", {
|
|
262
258
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
263
|
-
children:
|
|
259
|
+
children: O("channel.eventType", "Event Type")
|
|
264
260
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ S("th", {
|
|
266
262
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
267
|
-
children:
|
|
263
|
+
children: O("channel.duplicate", "Duplicate")
|
|
268
264
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ S("th", {
|
|
270
266
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
271
|
-
children:
|
|
267
|
+
children: O("channel.processedAt", "Processed At")
|
|
272
268
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ S("th", {
|
|
274
270
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
275
|
-
children:
|
|
271
|
+
children: O("channel.error", "Error")
|
|
276
272
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ S("th", {
|
|
278
274
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
279
|
-
children:
|
|
275
|
+
children: O("channel.actions", "Actions")
|
|
280
276
|
})
|
|
281
277
|
] })
|
|
282
|
-
}), /* @__PURE__ */
|
|
278
|
+
}), /* @__PURE__ */ S("tbody", {
|
|
283
279
|
className: "divide-y divide-border",
|
|
284
|
-
children: F.length === 0 ? /* @__PURE__ */
|
|
280
|
+
children: F.length === 0 ? /* @__PURE__ */ S("tr", { children: /* @__PURE__ */ S("td", {
|
|
285
281
|
colSpan: 6,
|
|
286
282
|
className: "px-4 py-8",
|
|
287
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ S(ce, {
|
|
288
284
|
illustration: "empty-notifications",
|
|
289
|
-
title:
|
|
285
|
+
title: O("channel.noWebhookEventsFound", "No webhook events found")
|
|
290
286
|
})
|
|
291
287
|
}) }) : F.map((e) => {
|
|
292
288
|
let t = ve(e.status), n = t.icon, r = L === e.id;
|
|
293
|
-
return /* @__PURE__ */
|
|
289
|
+
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("tr", {
|
|
294
290
|
className: "hover:bg-bg-sunken/30 transition-colors",
|
|
295
291
|
children: [
|
|
296
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ S("td", {
|
|
297
293
|
className: "px-4 py-3",
|
|
298
|
-
children: /* @__PURE__ */
|
|
294
|
+
children: /* @__PURE__ */ C("div", {
|
|
299
295
|
className: "flex items-center gap-2",
|
|
300
|
-
children: [/* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ S(n, {
|
|
301
297
|
size: 14,
|
|
302
298
|
className: t.color.split(" ")[0]
|
|
303
|
-
}), /* @__PURE__ */
|
|
299
|
+
}), /* @__PURE__ */ S("span", {
|
|
304
300
|
className: `text-sm font-medium ${t.color}`,
|
|
305
301
|
children: t.label
|
|
306
302
|
})]
|
|
307
303
|
})
|
|
308
304
|
}),
|
|
309
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ S("td", {
|
|
310
306
|
className: "px-4 py-3 text-sm font-mono text-text-primary",
|
|
311
307
|
children: e.eventType
|
|
312
308
|
}),
|
|
313
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ S("td", {
|
|
314
310
|
className: "px-4 py-3",
|
|
315
|
-
children: e.isDuplicate ? /* @__PURE__ */
|
|
311
|
+
children: e.isDuplicate ? /* @__PURE__ */ S("span", {
|
|
316
312
|
className: "text-xs text-status-warning-text bg-status-warning-bg-subtle px-2 py-1 rounded",
|
|
317
313
|
children: "Duplicate"
|
|
318
|
-
}) : /* @__PURE__ */
|
|
314
|
+
}) : /* @__PURE__ */ S("span", {
|
|
319
315
|
className: "text-xs text-text-secondary",
|
|
320
316
|
children: "No"
|
|
321
317
|
})
|
|
322
318
|
}),
|
|
323
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ S("td", {
|
|
324
320
|
className: "px-4 py-3 text-sm text-text-secondary",
|
|
325
321
|
children: e.processedAt ? new Date(e.processedAt).toLocaleString() : "-"
|
|
326
322
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ S("td", {
|
|
328
324
|
className: "px-4 py-3 text-sm text-status-error-text max-w-xs truncate",
|
|
329
325
|
children: e.errorMessage || "-"
|
|
330
326
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ S("td", {
|
|
332
328
|
className: "px-4 py-3",
|
|
333
|
-
children: /* @__PURE__ */
|
|
329
|
+
children: /* @__PURE__ */ S("button", {
|
|
334
330
|
type: "button",
|
|
335
331
|
onClick: () => R(r ? null : e.id),
|
|
336
|
-
"aria-label": r ?
|
|
332
|
+
"aria-label": r ? O("channel.hidePayload", "Hide payload") : O("channel.viewPayload", "View payload"),
|
|
337
333
|
"aria-expanded": r,
|
|
338
334
|
className: "p-1 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded transition-colors",
|
|
339
|
-
children:
|
|
335
|
+
children: S(r ? g : ie, {
|
|
340
336
|
size: 16,
|
|
341
337
|
"aria-hidden": "true"
|
|
342
338
|
})
|
|
343
339
|
})
|
|
344
340
|
})
|
|
345
341
|
]
|
|
346
|
-
}, e.id), r && /* @__PURE__ */
|
|
342
|
+
}, e.id), r && /* @__PURE__ */ S("tr", { children: /* @__PURE__ */ S("td", {
|
|
347
343
|
colSpan: 6,
|
|
348
344
|
className: "px-4 py-3 bg-bg-sunken/30",
|
|
349
|
-
children: /* @__PURE__ */
|
|
345
|
+
children: /* @__PURE__ */ C("div", {
|
|
350
346
|
className: "text-xs",
|
|
351
|
-
children: [/* @__PURE__ */
|
|
347
|
+
children: [/* @__PURE__ */ C("p", {
|
|
352
348
|
className: "text-text-secondary mb-1",
|
|
353
|
-
children: [
|
|
354
|
-
}), /* @__PURE__ */
|
|
349
|
+
children: [O("channel.payload", "Payload"), ":"]
|
|
350
|
+
}), /* @__PURE__ */ S("pre", {
|
|
355
351
|
className: "bg-surface p-2 rounded border border-border-subtle overflow-auto",
|
|
356
352
|
children: JSON.stringify(e.payload, null, 2)
|
|
357
353
|
})]
|
|
@@ -362,39 +358,39 @@ function O() {
|
|
|
362
358
|
})
|
|
363
359
|
})
|
|
364
360
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ C("div", {
|
|
366
362
|
className: "flex items-center justify-between",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ S("p", {
|
|
368
364
|
className: "text-sm text-text-secondary",
|
|
369
|
-
children: V > 0 && /* @__PURE__ */
|
|
370
|
-
|
|
365
|
+
children: V > 0 && /* @__PURE__ */ C(x, { children: [
|
|
366
|
+
O("channel.page", "Page"),
|
|
371
367
|
" ",
|
|
372
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ S("span", {
|
|
373
369
|
className: "font-medium",
|
|
374
370
|
children: W + 1
|
|
375
371
|
}),
|
|
376
372
|
" · ",
|
|
377
|
-
|
|
373
|
+
O("channel.totalRecords", "Total"),
|
|
378
374
|
": ",
|
|
379
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ S("span", {
|
|
380
376
|
className: "font-medium",
|
|
381
377
|
children: V
|
|
382
378
|
})
|
|
383
379
|
] })
|
|
384
|
-
}), /* @__PURE__ */
|
|
380
|
+
}), /* @__PURE__ */ C("div", {
|
|
385
381
|
className: "flex items-center gap-2",
|
|
386
|
-
children: [/* @__PURE__ */
|
|
382
|
+
children: [/* @__PURE__ */ C("button", {
|
|
387
383
|
type: "button",
|
|
388
384
|
onClick: he,
|
|
389
385
|
disabled: !_e || N,
|
|
390
386
|
className: "flex items-center gap-1 px-3 py-1.5 text-sm border border-border-subtle rounded-lg hover:bg-bg-sunken transition-colors disabled:opacity-40 disabled:cursor-not-allowed",
|
|
391
|
-
children: [/* @__PURE__ */
|
|
392
|
-
}), /* @__PURE__ */
|
|
387
|
+
children: [/* @__PURE__ */ S(p, { size: 16 }), O("channel.previous", "Previous")]
|
|
388
|
+
}), /* @__PURE__ */ C("button", {
|
|
393
389
|
type: "button",
|
|
394
390
|
onClick: () => void me(),
|
|
395
391
|
disabled: !ge || N,
|
|
396
392
|
className: "flex items-center gap-1 px-3 py-1.5 text-sm border border-border-subtle rounded-lg hover:bg-bg-sunken transition-colors disabled:opacity-40 disabled:cursor-not-allowed",
|
|
397
|
-
children: [
|
|
393
|
+
children: [O("channel.next", "Next"), /* @__PURE__ */ S(m, { size: 16 })]
|
|
398
394
|
})]
|
|
399
395
|
})]
|
|
400
396
|
})
|
|
@@ -402,7 +398,6 @@ function O() {
|
|
|
402
398
|
})
|
|
403
399
|
});
|
|
404
400
|
}
|
|
405
|
-
|
|
406
|
-
export { O as WebhookEventsPage };
|
|
401
|
+
export { D as WebhookEventsPage };
|
|
407
402
|
|
|
408
403
|
//# sourceMappingURL=WebhookEventsPage.js.map
|