@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.
Files changed (161) hide show
  1. package/dist/channel/ChannelRoot.d.ts +0 -2
  2. package/dist/channel/ChannelRoot.js +9 -6
  3. package/dist/channel/ChannelRoot.js.map +1 -1
  4. package/dist/channel/ChannelRoutes.d.ts +1 -2
  5. package/dist/channel/ChannelRoutes.js +5 -6
  6. package/dist/channel/ChannelRoutes.js.map +1 -1
  7. package/dist/channel/components/AdapterCredentialsForm.d.ts +2 -4
  8. package/dist/channel/components/AdapterCredentialsForm.js +2 -3
  9. package/dist/channel/components/AdapterCredentialsForm.js.map +1 -1
  10. package/dist/channel/components/FeatureNotEnabled.d.ts +1 -2
  11. package/dist/channel/components/FeatureNotEnabled.js +1 -2
  12. package/dist/channel/components/FeatureNotEnabled.js.map +1 -1
  13. package/dist/channel/components/MarkdownEditor.d.ts +1 -2
  14. package/dist/channel/components/MarkdownEditor.js +2 -5
  15. package/dist/channel/components/MarkdownEditor.js.map +1 -1
  16. package/dist/channel/components/PermissionGuard.d.ts +0 -2
  17. package/dist/channel/components/PermissionGuard.js +1 -2
  18. package/dist/channel/components/PermissionGuard.js.map +1 -1
  19. package/dist/channel/config/adapterCredentials.d.ts +0 -2
  20. package/dist/channel/config/adapterCredentials.js +3 -7
  21. package/dist/channel/config/adapterCredentials.js.map +1 -1
  22. package/dist/channel/constants/permissions.d.ts +0 -1
  23. package/dist/channel/constants/permissions.js +1 -2
  24. package/dist/channel/constants/permissions.js.map +1 -1
  25. package/dist/channel/graphql/global-client.d.ts +0 -2
  26. package/dist/channel/graphql/global-client.js +5 -6
  27. package/dist/channel/graphql/global-client.js.map +1 -1
  28. package/dist/channel/hooks/useChannelOrgSettings.d.ts +0 -2
  29. package/dist/channel/hooks/useChannelOrgSettings.js +20 -21
  30. package/dist/channel/hooks/useChannelOrgSettings.js.map +1 -1
  31. package/dist/channel/hooks/useChannelSubscription.d.ts +0 -1
  32. package/dist/channel/hooks/useChannelSubscription.js +7 -12
  33. package/dist/channel/hooks/useChannelSubscription.js.map +1 -1
  34. package/dist/channel/hooks/useChannels.d.ts +20 -30
  35. package/dist/channel/hooks/useChannels.js +100 -101
  36. package/dist/channel/hooks/useChannels.js.map +1 -1
  37. package/dist/channel/hooks/useTr.d.ts +0 -1
  38. package/dist/channel/hooks/useTr.js +1 -2
  39. package/dist/channel/hooks/useTr.js.map +1 -1
  40. package/dist/channel/index.d.ts +0 -1
  41. package/dist/channel/index.js +3 -2
  42. package/dist/channel/modules/channels/hooks/useExport.d.ts +0 -2
  43. package/dist/channel/modules/channels/hooks/useExport.js +77 -80
  44. package/dist/channel/modules/channels/hooks/useExport.js.map +1 -1
  45. package/dist/channel/modules/channels/i18n.d.ts +0 -2
  46. package/dist/channel/modules/channels/i18n.js +1 -2
  47. package/dist/channel/modules/channels/i18n.js.map +1 -1
  48. package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts +1 -2
  49. package/dist/channel/modules/channels/pages/ChannelDashboardPage.js +12 -13
  50. package/dist/channel/modules/channels/pages/ChannelDashboardPage.js.map +1 -1
  51. package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts +1 -2
  52. package/dist/channel/modules/channels/pages/ChannelDetailsPage.js +400 -401
  53. package/dist/channel/modules/channels/pages/ChannelDetailsPage.js.map +1 -1
  54. package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts +1 -2
  55. package/dist/channel/modules/channels/pages/ChannelSettingsPage.js +11 -10
  56. package/dist/channel/modules/channels/pages/ChannelSettingsPage.js.map +1 -1
  57. package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts +1 -2
  58. package/dist/channel/modules/channels/pages/ChannelUsersPage.js +6 -11
  59. package/dist/channel/modules/channels/pages/ChannelUsersPage.js.map +1 -1
  60. package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts +1 -2
  61. package/dist/channel/modules/channels/pages/ChannelsListPage.js +289 -290
  62. package/dist/channel/modules/channels/pages/ChannelsListPage.js.map +1 -1
  63. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts +1 -2
  64. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js +11 -12
  65. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js.map +1 -1
  66. package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts +1 -2
  67. package/dist/channel/modules/channels/pages/ConnectionsListPage.js +3 -4
  68. package/dist/channel/modules/channels/pages/ConnectionsListPage.js.map +1 -1
  69. package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts +1 -2
  70. package/dist/channel/modules/channels/pages/CreateChannelPage.js +6 -7
  71. package/dist/channel/modules/channels/pages/CreateChannelPage.js.map +1 -1
  72. package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts +1 -2
  73. package/dist/channel/modules/channels/pages/CreateConnectionPage.js +39 -40
  74. package/dist/channel/modules/channels/pages/CreateConnectionPage.js.map +1 -1
  75. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts +1 -2
  76. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js +8 -13
  77. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js.map +1 -1
  78. package/dist/channel/modules/channels/pages/EditChannelPage.d.ts +1 -2
  79. package/dist/channel/modules/channels/pages/EditChannelPage.js +108 -106
  80. package/dist/channel/modules/channels/pages/EditChannelPage.js.map +1 -1
  81. package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts +1 -2
  82. package/dist/channel/modules/channels/pages/EditConnectionPage.js +22 -23
  83. package/dist/channel/modules/channels/pages/EditConnectionPage.js.map +1 -1
  84. package/dist/channel/modules/channels/pages/SendMessagePage.d.ts +1 -2
  85. package/dist/channel/modules/channels/pages/SendMessagePage.js +181 -188
  86. package/dist/channel/modules/channels/pages/SendMessagePage.js.map +1 -1
  87. package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts +1 -2
  88. package/dist/channel/modules/channels/pages/WebhookEventsPage.js +145 -150
  89. package/dist/channel/modules/channels/pages/WebhookEventsPage.js.map +1 -1
  90. package/dist/channel/pages/ChannelLandingPage.d.ts +1 -2
  91. package/dist/channel/pages/ChannelLandingPage.js +20 -21
  92. package/dist/channel/pages/ChannelLandingPage.js.map +1 -1
  93. package/dist/channel/providers/ChannelProvider.d.ts +0 -2
  94. package/dist/channel/providers/ChannelProvider.js +1 -2
  95. package/dist/channel/providers/ChannelProvider.js.map +1 -1
  96. package/dist/channel/types/index.d.ts +0 -2
  97. package/dist/channel/utils/shellBridge.d.ts +0 -1
  98. package/dist/channel/utils/shellBridge.js +1 -2
  99. package/dist/channel/utils/shellBridge.js.map +1 -1
  100. package/dist/dev/App.d.ts +1 -2
  101. package/dist/dev/main.d.ts +0 -2
  102. package/dist/generated/global-operations.d.ts +885 -336
  103. package/dist/generated/global-operations.js +2 -3
  104. package/dist/generated/global-operations.js.map +1 -1
  105. package/dist/generated/global-types.d.ts +2 -22
  106. package/dist/generated/global-types.js +1 -2
  107. package/dist/generated/global-types.js.map +1 -1
  108. package/dist/generated/wspace-operations.d.ts +4 -2
  109. package/dist/generated/wspace-types.d.ts +4 -24
  110. package/dist/index.d.ts +0 -1
  111. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
  112. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
  113. package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
  114. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
  115. package/dist/translations/en.d.ts +0 -1
  116. package/dist/utils/nativeBridge.d.ts +0 -1
  117. package/dist/utils/nativeBridge.js +1 -2
  118. package/package.json +65 -43
  119. package/dist/channel/ChannelRoot.d.ts.map +0 -1
  120. package/dist/channel/ChannelRoutes.d.ts.map +0 -1
  121. package/dist/channel/components/AdapterCredentialsForm.d.ts.map +0 -1
  122. package/dist/channel/components/FeatureNotEnabled.d.ts.map +0 -1
  123. package/dist/channel/components/MarkdownEditor.d.ts.map +0 -1
  124. package/dist/channel/components/PermissionGuard.d.ts.map +0 -1
  125. package/dist/channel/config/adapterCredentials.d.ts.map +0 -1
  126. package/dist/channel/constants/permissions.d.ts.map +0 -1
  127. package/dist/channel/graphql/global-client.d.ts.map +0 -1
  128. package/dist/channel/hooks/useChannelOrgSettings.d.ts.map +0 -1
  129. package/dist/channel/hooks/useChannelSubscription.d.ts.map +0 -1
  130. package/dist/channel/hooks/useChannels.d.ts.map +0 -1
  131. package/dist/channel/hooks/useTr.d.ts.map +0 -1
  132. package/dist/channel/index.d.ts.map +0 -1
  133. package/dist/channel/modules/channels/hooks/useExport.d.ts.map +0 -1
  134. package/dist/channel/modules/channels/i18n.d.ts.map +0 -1
  135. package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts.map +0 -1
  136. package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts.map +0 -1
  137. package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts.map +0 -1
  138. package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts.map +0 -1
  139. package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts.map +0 -1
  140. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts.map +0 -1
  141. package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts.map +0 -1
  142. package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts.map +0 -1
  143. package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts.map +0 -1
  144. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts.map +0 -1
  145. package/dist/channel/modules/channels/pages/EditChannelPage.d.ts.map +0 -1
  146. package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts.map +0 -1
  147. package/dist/channel/modules/channels/pages/SendMessagePage.d.ts.map +0 -1
  148. package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts.map +0 -1
  149. package/dist/channel/pages/ChannelLandingPage.d.ts.map +0 -1
  150. package/dist/channel/providers/ChannelProvider.d.ts.map +0 -1
  151. package/dist/channel/types/index.d.ts.map +0 -1
  152. package/dist/channel/utils/shellBridge.d.ts.map +0 -1
  153. package/dist/dev/App.d.ts.map +0 -1
  154. package/dist/dev/main.d.ts.map +0 -1
  155. package/dist/generated/global-operations.d.ts.map +0 -1
  156. package/dist/generated/global-types.d.ts.map +0 -1
  157. package/dist/generated/wspace-operations.d.ts.map +0 -1
  158. package/dist/generated/wspace-types.d.ts.map +0 -1
  159. package/dist/index.d.ts.map +0 -1
  160. package/dist/translations/en.d.ts.map +0 -1
  161. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1,51 +1,51 @@
1
- import { useChannel as e } from "../../../providers/ChannelProvider.js";
2
- import { emitShellEvent as t } from "../../../utils/shellBridge.js";
3
- import { WEBHOOK_RECEIVED_SUBSCRIPTION as n, useChannelSubscription as r } from "../../../hooks/useChannelSubscription.js";
4
- import { useChannel as i } from "../../../hooks/useChannels.js";
5
- import { PermissionGuard as a } from "../../../components/PermissionGuard.js";
6
- import { CHANNEL_PERMISSIONS as o } from "../../../constants/permissions.js";
7
- import { useExportWebhookEvents as ee } from "../hooks/useExport.js";
8
- import { useCallback as s, useEffect as c, useRef as l, useState as u } from "react";
9
- import { useI18n as te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
- import { AlertCircle as d, ArrowLeft as f, CheckCircle2 as p, ChevronLeft as m, ChevronRight as h, Clock as g, Download as ne, Eye as re, EyeOff as _, Loader2 as v, RefreshCw as y, XCircle as b } from "lucide-react";
11
- import { useNavigate as ie, useParams as x } from "react-router";
12
- import { usePermissions as S } from "@burdenoff/fe-libs/shared/providers/shell";
13
- import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
14
- import { CTAOverflowMenu as ae, EmphasisPanel as E, GlassCard as oe, IllustratedEmptyState as se, PagePurpose as ce } from "@burdenoff/fe-libs/ui";
15
- //#region src/channel/modules/channels/pages/WebhookEventsPage.tsx
16
- var D = {
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: g
20
+ icon: h
21
21
  },
22
22
  PROCESSING: {
23
23
  label: "Processing",
24
24
  color: "text-accent-primary bg-accent-primary/10",
25
- icon: y
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: p
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: b
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 O() {
44
- let { channelId: p } = x(), b = ie(), { hasPermission: O } = S(), le = O(o.CHANNEL_WEBHOOK_EXPORT), { t: ue } = te(), k = (e, t) => {
45
- let n = ue(e);
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: de } = e(), { triggerExport: A, isExporting: j, exportError: M } = ee(de ?? void 0, p), [N, P] = u(!0), [F, I] = u([]), [L, R] = u(null), [z, B] = u(25), [V, fe] = u(0), [H, U] = u([void 0]), [W, G] = u(0), { channel: K, isLoading: pe, error: q, fetchWebhookEvents: J } = i(p), Y = s(async (e) => {
48
- if (p) {
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
- p,
58
+ f,
59
59
  J,
60
60
  z
61
- ]), X = l(Y), Z = l(H), Q = l(W);
62
- c(() => {
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 $ = l(!0);
66
- c(() => {
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]), c(() => {
71
- if ($.current) {
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 = s(async () => {
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 = s(() => {
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
- r({
96
- query: n,
97
- variables: { channelId: p },
91
+ ee({
92
+ query: a,
93
+ variables: { channelId: f },
98
94
  operationName: "WebhookReceived",
99
- enabled: !!p,
100
- onData: s(() => {
101
- t("webhook.received", { channelId: p }), X.current(Z.current[Q.current]);
102
- }, [p]),
103
- pollFn: s(() => {
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) => D[e] || D.PENDING;
109
- return pe ? /* @__PURE__ */ w("div", {
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__ */ w(v, {
107
+ children: /* @__PURE__ */ S(_, {
112
108
  size: 32,
113
109
  className: "animate-spin text-accent-primary"
114
110
  })
115
- }) : q || !K ? /* @__PURE__ */ w("div", {
111
+ }) : q || !K ? /* @__PURE__ */ S("div", {
116
112
  className: "p-6",
117
- children: /* @__PURE__ */ T("div", {
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__ */ w(d, {
116
+ /* @__PURE__ */ S(u, {
121
117
  size: 20,
122
118
  className: "text-status-error-text"
123
119
  }),
124
- /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w("p", {
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__ */ w("button", {
124
+ /* @__PURE__ */ S("button", {
129
125
  type: "button",
130
- onClick: () => b(`/channels/${p}`),
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__ */ w(a, {
137
- permission: o.CHANNEL_WEBHOOK_READ,
138
- children: /* @__PURE__ */ T("div", {
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__ */ T("div", {
137
+ /* @__PURE__ */ C("div", {
142
138
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
143
- children: [/* @__PURE__ */ T("div", {
139
+ children: [/* @__PURE__ */ C("div", {
144
140
  className: "flex items-center gap-3",
145
- children: [/* @__PURE__ */ w("button", {
141
+ children: [/* @__PURE__ */ S("button", {
146
142
  type: "button",
147
- onClick: () => b(`/channels/${p}`),
148
- "aria-label": k("channel.backToChannel", "Back to channel"),
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__ */ w(f, {
146
+ children: /* @__PURE__ */ S(d, {
151
147
  size: 20,
152
148
  "aria-hidden": "true"
153
149
  })
154
- }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
150
+ }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h1", {
155
151
  className: "text-xl sm:text-2xl font-bold text-text-primary",
156
- children: k("channel.webhookEvents", "Webhook Events")
157
- }), /* @__PURE__ */ T("p", {
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__ */ T("div", {
157
+ }), /* @__PURE__ */ C("div", {
162
158
  className: "flex items-center gap-3",
163
- children: [/* @__PURE__ */ T("select", {
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__ */ w("option", {
164
+ /* @__PURE__ */ S("option", {
169
165
  value: 10,
170
166
  children: "10 results"
171
167
  }),
172
- /* @__PURE__ */ w("option", {
168
+ /* @__PURE__ */ S("option", {
173
169
  value: 25,
174
170
  children: "25 results"
175
171
  }),
176
- /* @__PURE__ */ w("option", {
172
+ /* @__PURE__ */ S("option", {
177
173
  value: 50,
178
174
  children: "50 results"
179
175
  }),
180
- /* @__PURE__ */ w("option", {
176
+ /* @__PURE__ */ S("option", {
181
177
  value: 100,
182
178
  children: "100 results"
183
179
  })
184
180
  ]
185
- }), /* @__PURE__ */ w(ae, { actions: [{
186
- label: k("channel.refresh", "Refresh"),
187
- icon: /* @__PURE__ */ w(y, {
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
- }, ...le ? [{
195
- label: k("channel.export", "Export"),
196
- icon: j ? /* @__PURE__ */ w(v, {
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__ */ w(ne, {
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__ */ T("div", {
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__ */ w(d, {
207
+ children: [/* @__PURE__ */ S(u, {
212
208
  size: 20,
213
209
  className: "text-status-error-text"
214
- }), /* @__PURE__ */ w("p", {
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__ */ w(ce, {
220
- icon: /* @__PURE__ */ w(g, {
215
+ /* @__PURE__ */ S(le, {
216
+ icon: /* @__PURE__ */ S(h, {
221
217
  size: 15,
222
218
  "aria-hidden": "true"
223
219
  }),
224
- children: k("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.")
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__ */ T(E, {
222
+ /* @__PURE__ */ C(w, {
227
223
  className: "flex items-center gap-3 p-4",
228
- children: [/* @__PURE__ */ w("span", {
224
+ children: [/* @__PURE__ */ S("span", {
229
225
  className: "rounded-lg bg-accent-purple-subtle p-2",
230
- children: /* @__PURE__ */ w(g, {
226
+ children: /* @__PURE__ */ S(h, {
231
227
  size: 18,
232
228
  className: "text-accent-purple",
233
229
  "aria-hidden": "true"
234
230
  })
235
- }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("p", {
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 ? k("channel.webhookEventSingular", "webhook event") : k("channel.webhookEventsPlural", "webhook events")
236
+ V === 1 ? O("channel.webhookEventSingular", "webhook event") : O("channel.webhookEventsPlural", "webhook events")
241
237
  ]
242
- }), /* @__PURE__ */ w("p", {
238
+ }), /* @__PURE__ */ S("p", {
243
239
  className: "text-sm text-text-secondary",
244
- children: k("channel.webhookEventsBannerHint", "All incoming webhooks received by this channel, retained for 7 days. Expand a row to inspect its raw payload.")
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__ */ w(oe, {
243
+ /* @__PURE__ */ S(T, {
248
244
  treatment: "plain",
249
245
  className: "border-border-seam rounded-lg overflow-hidden p-0",
250
- children: /* @__PURE__ */ w("div", {
246
+ children: /* @__PURE__ */ S("div", {
251
247
  className: "overflow-x-auto min-w-full",
252
- children: /* @__PURE__ */ T("table", {
248
+ children: /* @__PURE__ */ C("table", {
253
249
  className: "w-full min-w-[600px]",
254
- children: [/* @__PURE__ */ w("thead", {
250
+ children: [/* @__PURE__ */ S("thead", {
255
251
  className: "bg-bg-sunken/50 border-b border-border-subtle",
256
- children: /* @__PURE__ */ T("tr", { children: [
257
- /* @__PURE__ */ w("th", {
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: k("channel.status", "Status")
255
+ children: O("channel.status", "Status")
260
256
  }),
261
- /* @__PURE__ */ w("th", {
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: k("channel.eventType", "Event Type")
259
+ children: O("channel.eventType", "Event Type")
264
260
  }),
265
- /* @__PURE__ */ w("th", {
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: k("channel.duplicate", "Duplicate")
263
+ children: O("channel.duplicate", "Duplicate")
268
264
  }),
269
- /* @__PURE__ */ w("th", {
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: k("channel.processedAt", "Processed At")
267
+ children: O("channel.processedAt", "Processed At")
272
268
  }),
273
- /* @__PURE__ */ w("th", {
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: k("channel.error", "Error")
271
+ children: O("channel.error", "Error")
276
272
  }),
277
- /* @__PURE__ */ w("th", {
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: k("channel.actions", "Actions")
275
+ children: O("channel.actions", "Actions")
280
276
  })
281
277
  ] })
282
- }), /* @__PURE__ */ w("tbody", {
278
+ }), /* @__PURE__ */ S("tbody", {
283
279
  className: "divide-y divide-border",
284
- children: F.length === 0 ? /* @__PURE__ */ w("tr", { children: /* @__PURE__ */ w("td", {
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__ */ w(se, {
283
+ children: /* @__PURE__ */ S(ce, {
288
284
  illustration: "empty-notifications",
289
- title: k("channel.noWebhookEventsFound", "No webhook events found")
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__ */ T(C, { children: [/* @__PURE__ */ T("tr", {
289
+ return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("tr", {
294
290
  className: "hover:bg-bg-sunken/30 transition-colors",
295
291
  children: [
296
- /* @__PURE__ */ w("td", {
292
+ /* @__PURE__ */ S("td", {
297
293
  className: "px-4 py-3",
298
- children: /* @__PURE__ */ T("div", {
294
+ children: /* @__PURE__ */ C("div", {
299
295
  className: "flex items-center gap-2",
300
- children: [/* @__PURE__ */ w(n, {
296
+ children: [/* @__PURE__ */ S(n, {
301
297
  size: 14,
302
298
  className: t.color.split(" ")[0]
303
- }), /* @__PURE__ */ w("span", {
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__ */ w("td", {
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__ */ w("td", {
309
+ /* @__PURE__ */ S("td", {
314
310
  className: "px-4 py-3",
315
- children: e.isDuplicate ? /* @__PURE__ */ w("span", {
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__ */ w("span", {
314
+ }) : /* @__PURE__ */ S("span", {
319
315
  className: "text-xs text-text-secondary",
320
316
  children: "No"
321
317
  })
322
318
  }),
323
- /* @__PURE__ */ w("td", {
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__ */ w("td", {
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__ */ w("td", {
327
+ /* @__PURE__ */ S("td", {
332
328
  className: "px-4 py-3",
333
- children: /* @__PURE__ */ w("button", {
329
+ children: /* @__PURE__ */ S("button", {
334
330
  type: "button",
335
331
  onClick: () => R(r ? null : e.id),
336
- "aria-label": r ? k("channel.hidePayload", "Hide payload") : k("channel.viewPayload", "View payload"),
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: w(r ? _ : re, {
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__ */ w("tr", { children: /* @__PURE__ */ w("td", {
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__ */ T("div", {
345
+ children: /* @__PURE__ */ C("div", {
350
346
  className: "text-xs",
351
- children: [/* @__PURE__ */ T("p", {
347
+ children: [/* @__PURE__ */ C("p", {
352
348
  className: "text-text-secondary mb-1",
353
- children: [k("channel.payload", "Payload"), ":"]
354
- }), /* @__PURE__ */ w("pre", {
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__ */ T("div", {
361
+ /* @__PURE__ */ C("div", {
366
362
  className: "flex items-center justify-between",
367
- children: [/* @__PURE__ */ w("p", {
363
+ children: [/* @__PURE__ */ S("p", {
368
364
  className: "text-sm text-text-secondary",
369
- children: V > 0 && /* @__PURE__ */ T(C, { children: [
370
- k("channel.page", "Page"),
365
+ children: V > 0 && /* @__PURE__ */ C(x, { children: [
366
+ O("channel.page", "Page"),
371
367
  " ",
372
- /* @__PURE__ */ w("span", {
368
+ /* @__PURE__ */ S("span", {
373
369
  className: "font-medium",
374
370
  children: W + 1
375
371
  }),
376
372
  " · ",
377
- k("channel.totalRecords", "Total"),
373
+ O("channel.totalRecords", "Total"),
378
374
  ": ",
379
- /* @__PURE__ */ w("span", {
375
+ /* @__PURE__ */ S("span", {
380
376
  className: "font-medium",
381
377
  children: V
382
378
  })
383
379
  ] })
384
- }), /* @__PURE__ */ T("div", {
380
+ }), /* @__PURE__ */ C("div", {
385
381
  className: "flex items-center gap-2",
386
- children: [/* @__PURE__ */ T("button", {
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__ */ w(m, { size: 16 }), k("channel.previous", "Previous")]
392
- }), /* @__PURE__ */ T("button", {
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: [k("channel.next", "Next"), /* @__PURE__ */ w(h, { size: 16 })]
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
- //#endregion
406
- export { O as WebhookEventsPage };
401
+ export { D as WebhookEventsPage };
407
402
 
408
403
  //# sourceMappingURL=WebhookEventsPage.js.map