@burdenoff/microfe-integrations 2026.1107.2 → 2026.1109.2
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/dev/main.d.ts +0 -2
- package/dist/generated/global-operations.d.ts +4 -2
- package/dist/generated/global-types.d.ts +2 -22
- package/dist/generated/wspace-operations.d.ts +995 -705
- package/dist/generated/wspace-operations.js +180 -167
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/generated/wspace-types.js +1 -2
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/integrations/ConnectSourceDialog.d.ts +0 -2
- package/dist/integrations/ConnectSourceDialog.js +13 -14
- package/dist/integrations/ConnectSourceDialog.js.map +1 -1
- package/dist/integrations/ConnectionsPanel.d.ts +0 -2
- package/dist/integrations/ConnectionsPanel.js +5 -6
- package/dist/integrations/ConnectionsPanel.js.map +1 -1
- package/dist/integrations/IntegrationsAdminRoot.d.ts +0 -2
- package/dist/integrations/IntegrationsAdminRoot.js +14 -11
- package/dist/integrations/IntegrationsAdminRoot.js.map +1 -1
- package/dist/integrations/IntegrationsAdminRoutes.d.ts +1 -2
- package/dist/integrations/IntegrationsAdminRoutes.js +1 -2
- package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
- package/dist/integrations/IntegrationsRoot.d.ts +0 -2
- package/dist/integrations/IntegrationsRoot.js +9 -6
- package/dist/integrations/IntegrationsRoot.js.map +1 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts +1 -2
- package/dist/integrations/IntegrationsUserRoutes.js +7 -8
- package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts +1 -3
- package/dist/integrations/components/AddConnectionDialog.js +12 -15
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
- package/dist/integrations/components/AuthMethodsEditor.d.ts +0 -2
- package/dist/integrations/components/AuthMethodsEditor.js +1 -2
- package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
- package/dist/integrations/components/ConfirmDialog.d.ts +1 -3
- package/dist/integrations/components/ConfirmDialog.js +1 -2
- package/dist/integrations/components/ConfirmDialog.js.map +1 -1
- package/dist/integrations/components/ConnectionCard.d.ts +0 -2
- package/dist/integrations/components/ConnectionCard.js +9 -10
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/ConnectionModalFrame.d.ts +0 -2
- package/dist/integrations/components/ConnectionModalFrame.js +2 -3
- package/dist/integrations/components/ConnectionModalFrame.js.map +1 -1
- package/dist/integrations/components/ConnectionSharing.d.ts +0 -2
- package/dist/integrations/components/ConnectionSharing.js +7 -8
- package/dist/integrations/components/ConnectionSharing.js.map +1 -1
- package/dist/integrations/components/ConnectionStatusBadge.d.ts +0 -2
- package/dist/integrations/components/ConnectionStatusBadge.js +1 -2
- package/dist/integrations/components/ConnectionStatusBadge.js.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts +2 -4
- package/dist/integrations/components/ConnectorSubmissionCard.js +8 -9
- package/dist/integrations/components/ConnectorSubmissionCard.js.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionPager.d.ts +1 -2
- package/dist/integrations/components/ConnectorSubmissionPager.js +1 -2
- package/dist/integrations/components/ConnectorSubmissionPager.js.map +1 -1
- package/dist/integrations/components/MailMessageBody.d.ts +1 -3
- package/dist/integrations/components/MailMessageBody.js +4 -5
- package/dist/integrations/components/MailMessageBody.js.map +1 -1
- package/dist/integrations/components/ProviderCard.d.ts +0 -2
- package/dist/integrations/components/ProviderCard.js +8 -9
- package/dist/integrations/components/ProviderCard.js.map +1 -1
- package/dist/integrations/constants/featureFlags.d.ts +0 -1
- package/dist/integrations/constants/featureFlags.js +1 -2
- package/dist/integrations/constants/featureFlags.js.map +1 -1
- package/dist/integrations/constants/permissions.d.ts +0 -1
- package/dist/integrations/constants/permissions.js +1 -2
- package/dist/integrations/constants/permissions.js.map +1 -1
- package/dist/integrations/events/integrations-events.d.ts +0 -1
- package/dist/integrations/events/useIntegrationsEventBus.d.ts +0 -2
- package/dist/integrations/events/useIntegrationsEventBus.js +1 -2
- package/dist/integrations/events/useIntegrationsEventBus.js.map +1 -1
- package/dist/integrations/hooks/useConnections.d.ts +3 -14
- package/dist/integrations/hooks/useConnections.js +74 -75
- package/dist/integrations/hooks/useConnections.js.map +1 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts +2 -10
- package/dist/integrations/hooks/useConnectorSubmissions.js +23 -24
- package/dist/integrations/hooks/useConnectorSubmissions.js.map +1 -1
- package/dist/integrations/hooks/useFormatDate.d.ts +0 -1
- package/dist/integrations/hooks/useFormatDate.js +1 -2
- package/dist/integrations/hooks/useFormatDate.js.map +1 -1
- package/dist/integrations/hooks/useFormatLastUsed.d.ts +0 -1
- package/dist/integrations/hooks/useFormatLastUsed.js +1 -2
- package/dist/integrations/hooks/useFormatLastUsed.js.map +1 -1
- package/dist/integrations/hooks/useLabel.d.ts +0 -2
- package/dist/integrations/hooks/useLabel.js +1 -2
- package/dist/integrations/hooks/useLabel.js.map +1 -1
- package/dist/integrations/hooks/useLogs.d.ts +1 -6
- package/dist/integrations/hooks/useLogs.js +6 -7
- package/dist/integrations/hooks/useLogs.js.map +1 -1
- package/dist/integrations/hooks/useMailbox.d.ts +19 -43
- package/dist/integrations/hooks/useMailbox.js +46 -47
- package/dist/integrations/hooks/useMailbox.js.map +1 -1
- package/dist/integrations/hooks/useProviders.d.ts +3 -14
- package/dist/integrations/hooks/useProviders.js +42 -43
- package/dist/integrations/hooks/useProviders.js.map +1 -1
- package/dist/integrations/hooks/useTr.d.ts +0 -1
- package/dist/integrations/hooks/useTr.js +1 -2
- package/dist/integrations/hooks/useTr.js.map +1 -1
- package/dist/integrations/index.d.ts +0 -1
- package/dist/integrations/index.js +9 -8
- package/dist/integrations/pages/AddConnectionWizard.d.ts +1 -2
- package/dist/integrations/pages/AddConnectionWizard.js +291 -306
- package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.d.ts +1 -2
- package/dist/integrations/pages/ConnectionDetail.js +241 -246
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionLogs.d.ts +1 -2
- package/dist/integrations/pages/ConnectionLogs.js +154 -155
- package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.d.ts +1 -2
- package/dist/integrations/pages/ConnectionsList.js +40 -41
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts +1 -2
- package/dist/integrations/pages/ConnectorReviewQueuePage.js +9 -10
- package/dist/integrations/pages/ConnectorReviewQueuePage.js.map +1 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts +1 -2
- package/dist/integrations/pages/ConnectorSubmissionsPage.js +138 -139
- package/dist/integrations/pages/ConnectorSubmissionsPage.js.map +1 -1
- package/dist/integrations/pages/IntegrationsOverview.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsOverview.js +35 -36
- package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
- package/dist/integrations/pages/IntegrationsSettings.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsSettings.js +7 -8
- package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsUserLandingPage.js +1 -2
- package/dist/integrations/pages/IntegrationsUserLandingPage.js.map +1 -1
- package/dist/integrations/pages/MailboxInbox.d.ts +1 -2
- package/dist/integrations/pages/MailboxInbox.js +135 -140
- package/dist/integrations/pages/MailboxInbox.js.map +1 -1
- package/dist/integrations/pages/ProviderCatalog.d.ts +1 -2
- package/dist/integrations/pages/ProviderCatalog.js +107 -108
- package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
- package/dist/integrations/pages/ProviderDetail.d.ts +1 -2
- package/dist/integrations/pages/ProviderDetail.js +21 -22
- package/dist/integrations/pages/ProviderDetail.js.map +1 -1
- package/dist/integrations/pages/ProviderEditorPage.d.ts +1 -2
- package/dist/integrations/pages/ProviderEditorPage.js +261 -264
- package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
- package/dist/integrations/providers/IntegrationsProvider.d.ts +0 -2
- package/dist/integrations/providers/IntegrationsProvider.js +109 -96
- package/dist/integrations/providers/IntegrationsProvider.js.map +1 -1
- package/dist/integrations/store/integrationsStore.d.ts +0 -2
- package/dist/integrations/store/integrationsStore.js +1 -2
- package/dist/integrations/store/integrationsStore.js.map +1 -1
- package/dist/integrations/store/mailboxStore.d.ts +0 -2
- package/dist/integrations/store/mailboxStore.js +1 -2
- package/dist/integrations/store/mailboxStore.js.map +1 -1
- package/dist/integrations/translations/en.d.ts +0 -1
- package/dist/integrations/types/index.d.ts +0 -1
- package/dist/integrations/utils/appearance.d.ts +0 -1
- package/dist/integrations/utils/appearance.js +1 -2
- package/dist/integrations/utils/appearance.js.map +1 -1
- package/dist/integrations/utils/cn.d.ts +0 -2
- package/dist/integrations/utils/cn.js +2 -3
- package/dist/integrations/utils/cn.js.map +1 -1
- package/dist/integrations/utils/constants.d.ts +0 -1
- package/dist/integrations/utils/constants.js +1 -2
- package/dist/integrations/utils/constants.js.map +1 -1
- package/dist/integrations/utils/integrationsHelpers.d.ts +0 -2
- package/dist/integrations/utils/integrationsHelpers.js +1 -2
- package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
- package/dist/integrations/utils/mailHtml.d.ts +0 -2
- package/dist/integrations/utils/mailHtml.js +3 -4
- package/dist/integrations/utils/mailHtml.js.map +1 -1
- package/dist/integrations/utils/mappers.d.ts +0 -2
- package/dist/integrations/utils/mappers.js +2 -3
- package/dist/integrations/utils/mappers.js.map +1 -1
- package/dist/integrations/utils/navigation.d.ts +0 -1
- package/dist/integrations/utils/navigation.js +2 -8
- package/dist/integrations/utils/navigation.js.map +1 -1
- package/dist/integrations/utils/paths.d.ts +0 -1
- package/dist/integrations/utils/paths.js +1 -2
- package/dist/integrations/utils/paths.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +20 -36
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +63 -49
- 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/integrations/ConnectSourceDialog.d.ts.map +0 -1
- package/dist/integrations/ConnectionsPanel.d.ts.map +0 -1
- package/dist/integrations/IntegrationsAdminRoot.d.ts.map +0 -1
- package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +0 -1
- package/dist/integrations/IntegrationsRoot.d.ts.map +0 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts.map +0 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts.map +0 -1
- package/dist/integrations/components/AuthMethodsEditor.d.ts.map +0 -1
- package/dist/integrations/components/ConfirmDialog.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionCard.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionModalFrame.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionSharing.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +0 -1
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts.map +0 -1
- package/dist/integrations/components/ConnectorSubmissionPager.d.ts.map +0 -1
- package/dist/integrations/components/MailMessageBody.d.ts.map +0 -1
- package/dist/integrations/components/ProviderCard.d.ts.map +0 -1
- package/dist/integrations/constants/featureFlags.d.ts.map +0 -1
- package/dist/integrations/constants/permissions.d.ts.map +0 -1
- package/dist/integrations/events/integrations-events.d.ts.map +0 -1
- package/dist/integrations/events/useIntegrationsEventBus.d.ts.map +0 -1
- package/dist/integrations/hooks/useConnections.d.ts.map +0 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts.map +0 -1
- package/dist/integrations/hooks/useFormatDate.d.ts.map +0 -1
- package/dist/integrations/hooks/useFormatLastUsed.d.ts.map +0 -1
- package/dist/integrations/hooks/useLabel.d.ts.map +0 -1
- package/dist/integrations/hooks/useLogs.d.ts.map +0 -1
- package/dist/integrations/hooks/useMailbox.d.ts.map +0 -1
- package/dist/integrations/hooks/useProviders.d.ts.map +0 -1
- package/dist/integrations/hooks/useTr.d.ts.map +0 -1
- package/dist/integrations/index.d.ts.map +0 -1
- package/dist/integrations/pages/AddConnectionWizard.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionDetail.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionLogs.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionsList.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsOverview.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsSettings.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +0 -1
- package/dist/integrations/pages/MailboxInbox.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderCatalog.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderDetail.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderEditorPage.d.ts.map +0 -1
- package/dist/integrations/providers/IntegrationsProvider.d.ts.map +0 -1
- package/dist/integrations/store/integrationsStore.d.ts.map +0 -1
- package/dist/integrations/store/mailboxStore.d.ts.map +0 -1
- package/dist/integrations/translations/en.d.ts.map +0 -1
- package/dist/integrations/types/index.d.ts.map +0 -1
- package/dist/integrations/utils/appearance.d.ts.map +0 -1
- package/dist/integrations/utils/cn.d.ts.map +0 -1
- package/dist/integrations/utils/constants.d.ts.map +0 -1
- package/dist/integrations/utils/integrationsHelpers.d.ts.map +0 -1
- package/dist/integrations/utils/mailHtml.d.ts.map +0 -1
- package/dist/integrations/utils/mappers.d.ts.map +0 -1
- package/dist/integrations/utils/navigation.d.ts.map +0 -1
- package/dist/integrations/utils/paths.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { useIntegrations as t } from "../providers/IntegrationsProvider.js";
|
|
3
3
|
import { joinPath as n } from "../utils/navigation.js";
|
|
4
|
-
import {
|
|
4
|
+
import { useMyConnectorSubmissions as r, useSubmitConnector as i, useUpdateConnectorSubmissionOAuthClient as a, useWithdrawConnectorSubmission as o } from "../hooks/useConnectorSubmissions.js";
|
|
5
|
+
import { ConnectorSubmissionCard as s } from "../components/ConnectorSubmissionCard.js";
|
|
6
|
+
import { ConnectorSubmissionPager as c } from "../components/ConnectorSubmissionPager.js";
|
|
5
7
|
import { ConfirmDialog as l } from "../components/ConfirmDialog.js";
|
|
6
|
-
import {
|
|
7
|
-
import { ConnectorSubmissionCard as m } from "../components/ConnectorSubmissionCard.js";
|
|
8
|
-
import { ConnectorSubmissionPager as h } from "../components/ConnectorSubmissionPager.js";
|
|
8
|
+
import { AuthType as u, ConnectorApiKeyPlacement as d, ConnectorOAuthScopeSeparator as f, ConnectorOAuthTokenAuthMethod as p, ConnectorSubmissionStatus as m, ProviderCategory as h } from "../../generated/wspace-types.js";
|
|
9
9
|
import { useId as g, useState as _ } from "react";
|
|
10
10
|
import { ArrowLeft as v, KeyRound as y, Loader2 as b, Plus as x, Send as S, Upload as C, X as w } from "lucide-react";
|
|
11
11
|
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
12
12
|
import { Button as O, EmphasisPanel as k, IllustratedEmptyState as A, PagePurpose as j } from "@burdenoff/fe-libs/ui";
|
|
13
|
-
|
|
13
|
+
// src/integrations/pages/ConnectorSubmissionsPage.tsx
|
|
14
14
|
var M = [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
h.Productivity,
|
|
16
|
+
h.Communication,
|
|
17
|
+
h.Crm,
|
|
18
|
+
h.Email,
|
|
19
|
+
h.Calendar,
|
|
20
|
+
h.CloudStorage,
|
|
21
|
+
h.Development,
|
|
22
|
+
h.Social,
|
|
23
|
+
h.Payment,
|
|
24
|
+
h.Analytics,
|
|
25
|
+
h.Accounting,
|
|
26
|
+
h.Custom
|
|
27
27
|
], N = [
|
|
28
28
|
[
|
|
29
|
-
|
|
29
|
+
u.ApiKey,
|
|
30
30
|
"integrations.connectorSubmissions.auth.apiKey",
|
|
31
31
|
"API key"
|
|
32
32
|
],
|
|
33
33
|
[
|
|
34
|
-
|
|
34
|
+
u.BearerToken,
|
|
35
35
|
"integrations.connectorSubmissions.auth.bearer",
|
|
36
36
|
"Bearer token"
|
|
37
37
|
],
|
|
38
38
|
[
|
|
39
|
-
|
|
39
|
+
u.BasicAuth,
|
|
40
40
|
"integrations.connectorSubmissions.auth.basic",
|
|
41
41
|
"Basic auth"
|
|
42
42
|
],
|
|
43
43
|
[
|
|
44
|
-
|
|
44
|
+
u.Oauth2,
|
|
45
45
|
"integrations.connectorSubmissions.auth.oauth2",
|
|
46
46
|
"OAuth 2.0"
|
|
47
47
|
]
|
|
@@ -49,9 +49,9 @@ var M = [
|
|
|
49
49
|
key: "",
|
|
50
50
|
name: "",
|
|
51
51
|
description: "",
|
|
52
|
-
category:
|
|
53
|
-
authType:
|
|
54
|
-
apiKeyPlacement:
|
|
52
|
+
category: h.Productivity,
|
|
53
|
+
authType: u.ApiKey,
|
|
54
|
+
apiKeyPlacement: d.Header,
|
|
55
55
|
apiKeyName: "",
|
|
56
56
|
apiKeyPrefix: "",
|
|
57
57
|
oauthAuthorizeUrl: "",
|
|
@@ -59,9 +59,9 @@ var M = [
|
|
|
59
59
|
oauthRevokeUrl: "",
|
|
60
60
|
oauthUserInfoUrl: "",
|
|
61
61
|
oauthScopes: "",
|
|
62
|
-
oauthScopeSeparator:
|
|
62
|
+
oauthScopeSeparator: f.Space,
|
|
63
63
|
oauthPkce: !0,
|
|
64
|
-
oauthTokenAuthMethod:
|
|
64
|
+
oauthTokenAuthMethod: p.ClientSecretPost,
|
|
65
65
|
oauthClientId: "",
|
|
66
66
|
oauthClientSecret: "",
|
|
67
67
|
website: "",
|
|
@@ -88,7 +88,7 @@ function R(e) {
|
|
|
88
88
|
return e.split(/[\s,]+/).map((e) => e.trim()).filter(Boolean);
|
|
89
89
|
}
|
|
90
90
|
function z(e) {
|
|
91
|
-
let t = e.authType ===
|
|
91
|
+
let t = e.authType === u.ApiKey, n = e.authType === u.Oauth2;
|
|
92
92
|
return {
|
|
93
93
|
key: e.key.trim().toLowerCase(),
|
|
94
94
|
name: e.name.trim(),
|
|
@@ -97,7 +97,7 @@ function z(e) {
|
|
|
97
97
|
authType: e.authType,
|
|
98
98
|
apiKeyPlacement: t ? e.apiKeyPlacement : null,
|
|
99
99
|
apiKeyName: t ? L(e.apiKeyName) : null,
|
|
100
|
-
apiKeyPrefix: t && e.apiKeyPlacement ===
|
|
100
|
+
apiKeyPrefix: t && e.apiKeyPlacement === d.Header ? L(e.apiKeyPrefix) : null,
|
|
101
101
|
oauth: n ? {
|
|
102
102
|
authorizeUrl: e.oauthAuthorizeUrl.trim(),
|
|
103
103
|
tokenUrl: e.oauthTokenUrl.trim(),
|
|
@@ -145,46 +145,46 @@ function B({ id: e, label: t, hint: n, required: r = !1, children: i }) {
|
|
|
145
145
|
] });
|
|
146
146
|
}
|
|
147
147
|
function V() {
|
|
148
|
-
let { apiGatewayUrl:
|
|
149
|
-
return
|
|
148
|
+
let { apiGatewayUrl: e } = t();
|
|
149
|
+
return e ? `${e}/integrations/oauth/callback` : `${typeof window < "u" ? window.location.origin : ""}/integrations/oauth/callback`;
|
|
150
150
|
}
|
|
151
|
-
function H({ form:
|
|
152
|
-
let
|
|
151
|
+
function H({ form: t, set: n, text: r, id: i }) {
|
|
152
|
+
let a = e();
|
|
153
153
|
return /* @__PURE__ */ D("div", {
|
|
154
154
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
155
155
|
children: [
|
|
156
156
|
/* @__PURE__ */ E(B, {
|
|
157
|
-
id:
|
|
158
|
-
label:
|
|
157
|
+
id: i("apiKeyPlacement"),
|
|
158
|
+
label: a("integrations.connectorSubmissions.fields.apiKeyPlacement", "Sent in"),
|
|
159
159
|
required: !0,
|
|
160
160
|
children: /* @__PURE__ */ D("select", {
|
|
161
|
-
id:
|
|
162
|
-
value:
|
|
161
|
+
id: i("apiKeyPlacement"),
|
|
162
|
+
value: t.apiKeyPlacement,
|
|
163
163
|
onChange: (e) => n("apiKeyPlacement", e.target.value),
|
|
164
164
|
className: F,
|
|
165
165
|
children: [/* @__PURE__ */ E("option", {
|
|
166
|
-
value:
|
|
167
|
-
children:
|
|
166
|
+
value: d.Header,
|
|
167
|
+
children: a("integrations.connectorSubmissions.placement.header", "Header")
|
|
168
168
|
}), /* @__PURE__ */ E("option", {
|
|
169
|
-
value:
|
|
170
|
-
children:
|
|
169
|
+
value: d.Query,
|
|
170
|
+
children: a("integrations.connectorSubmissions.placement.query", "Query parameter")
|
|
171
171
|
})]
|
|
172
172
|
})
|
|
173
173
|
}),
|
|
174
174
|
/* @__PURE__ */ E(B, {
|
|
175
|
-
id:
|
|
176
|
-
label:
|
|
175
|
+
id: i("apiKeyName"),
|
|
176
|
+
label: a("integrations.connectorSubmissions.fields.apiKeyName", "Name"),
|
|
177
177
|
required: !0,
|
|
178
178
|
children: /* @__PURE__ */ E("input", {
|
|
179
179
|
...r("apiKeyName"),
|
|
180
180
|
required: !0,
|
|
181
181
|
maxLength: 64,
|
|
182
|
-
placeholder:
|
|
182
|
+
placeholder: t.apiKeyPlacement === d.Header ? "X-Api-Key" : "api_key"
|
|
183
183
|
})
|
|
184
184
|
}),
|
|
185
|
-
|
|
186
|
-
id:
|
|
187
|
-
label:
|
|
185
|
+
t.apiKeyPlacement === d.Header && /* @__PURE__ */ E(B, {
|
|
186
|
+
id: i("apiKeyPrefix"),
|
|
187
|
+
label: a("integrations.connectorSubmissions.fields.apiKeyPrefix", "Prefix"),
|
|
188
188
|
children: /* @__PURE__ */ E("input", {
|
|
189
189
|
...r("apiKeyPrefix"),
|
|
190
190
|
maxLength: 32,
|
|
@@ -194,18 +194,18 @@ function H({ form: e, set: n, text: r, id: a }) {
|
|
|
194
194
|
]
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
function U({ form:
|
|
198
|
-
let
|
|
197
|
+
function U({ form: t, set: n, text: r, id: i }) {
|
|
198
|
+
let a = e(), o = V();
|
|
199
199
|
return /* @__PURE__ */ D("div", {
|
|
200
200
|
className: "space-y-4 rounded-lg border border-border-subtle p-4",
|
|
201
201
|
"data-testid": "oauth-settings",
|
|
202
202
|
children: [
|
|
203
203
|
/* @__PURE__ */ D("div", {
|
|
204
204
|
className: "rounded-lg bg-bg-sunken px-3 py-2 text-xs text-text-secondary",
|
|
205
|
-
children: [/* @__PURE__ */ E("p", { children:
|
|
205
|
+
children: [/* @__PURE__ */ E("p", { children: a("integrations.connectorSubmissions.oauth.redirectHint", "Register this redirect URI with your OAuth app. Alpha and production are separate catalogs: submit in each with the client registered for it.") }), /* @__PURE__ */ E("p", {
|
|
206
206
|
className: "mt-1 font-mono text-text-primary break-all",
|
|
207
207
|
"data-testid": "oauth-redirect-uri",
|
|
208
|
-
children:
|
|
208
|
+
children: o
|
|
209
209
|
})]
|
|
210
210
|
}),
|
|
211
211
|
/* @__PURE__ */ D("div", {
|
|
@@ -213,7 +213,7 @@ function U({ form: e, set: n, text: r, id: i }) {
|
|
|
213
213
|
children: [
|
|
214
214
|
/* @__PURE__ */ E(B, {
|
|
215
215
|
id: i("oauthAuthorizeUrl"),
|
|
216
|
-
label:
|
|
216
|
+
label: a("integrations.connectorSubmissions.fields.oauthAuthorizeUrl", "Authorization URL"),
|
|
217
217
|
required: !0,
|
|
218
218
|
children: /* @__PURE__ */ E("input", {
|
|
219
219
|
...r("oauthAuthorizeUrl"),
|
|
@@ -224,7 +224,7 @@ function U({ form: e, set: n, text: r, id: i }) {
|
|
|
224
224
|
}),
|
|
225
225
|
/* @__PURE__ */ E(B, {
|
|
226
226
|
id: i("oauthTokenUrl"),
|
|
227
|
-
label:
|
|
227
|
+
label: a("integrations.connectorSubmissions.fields.oauthTokenUrl", "Token URL"),
|
|
228
228
|
required: !0,
|
|
229
229
|
children: /* @__PURE__ */ E("input", {
|
|
230
230
|
...r("oauthTokenUrl"),
|
|
@@ -235,7 +235,7 @@ function U({ form: e, set: n, text: r, id: i }) {
|
|
|
235
235
|
}),
|
|
236
236
|
/* @__PURE__ */ E(B, {
|
|
237
237
|
id: i("oauthRevokeUrl"),
|
|
238
|
-
label:
|
|
238
|
+
label: a("integrations.connectorSubmissions.fields.oauthRevokeUrl", "Revocation URL"),
|
|
239
239
|
children: /* @__PURE__ */ E("input", {
|
|
240
240
|
...r("oauthRevokeUrl"),
|
|
241
241
|
type: "url"
|
|
@@ -243,7 +243,7 @@ function U({ form: e, set: n, text: r, id: i }) {
|
|
|
243
243
|
}),
|
|
244
244
|
/* @__PURE__ */ E(B, {
|
|
245
245
|
id: i("oauthUserInfoUrl"),
|
|
246
|
-
label:
|
|
246
|
+
label: a("integrations.connectorSubmissions.fields.oauthUserInfoUrl", "User info URL"),
|
|
247
247
|
children: /* @__PURE__ */ E("input", {
|
|
248
248
|
...r("oauthUserInfoUrl"),
|
|
249
249
|
type: "url"
|
|
@@ -253,42 +253,42 @@ function U({ form: e, set: n, text: r, id: i }) {
|
|
|
253
253
|
}),
|
|
254
254
|
/* @__PURE__ */ E(B, {
|
|
255
255
|
id: i("oauthScopes"),
|
|
256
|
-
label:
|
|
257
|
-
hint:
|
|
256
|
+
label: a("integrations.connectorSubmissions.fields.oauthScopes", "Scopes"),
|
|
257
|
+
hint: a("integrations.connectorSubmissions.fields.oauthScopesHint", "Separated by spaces or commas, e.g. contacts.read deals.write"),
|
|
258
258
|
children: /* @__PURE__ */ E("input", { ...r("oauthScopes") })
|
|
259
259
|
}),
|
|
260
260
|
/* @__PURE__ */ D("div", {
|
|
261
261
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
262
262
|
children: [/* @__PURE__ */ E(B, {
|
|
263
263
|
id: i("oauthScopeSeparator"),
|
|
264
|
-
label:
|
|
264
|
+
label: a("integrations.connectorSubmissions.fields.oauthScopeSeparator", "Scope separator"),
|
|
265
265
|
children: /* @__PURE__ */ D("select", {
|
|
266
266
|
id: i("oauthScopeSeparator"),
|
|
267
|
-
value:
|
|
267
|
+
value: t.oauthScopeSeparator,
|
|
268
268
|
onChange: (e) => n("oauthScopeSeparator", e.target.value),
|
|
269
269
|
className: F,
|
|
270
270
|
children: [/* @__PURE__ */ E("option", {
|
|
271
|
-
value:
|
|
272
|
-
children:
|
|
271
|
+
value: f.Space,
|
|
272
|
+
children: a("integrations.connectorSubmissions.oauth.separatorSpace", "Space")
|
|
273
273
|
}), /* @__PURE__ */ E("option", {
|
|
274
|
-
value:
|
|
275
|
-
children:
|
|
274
|
+
value: f.Comma,
|
|
275
|
+
children: a("integrations.connectorSubmissions.oauth.separatorComma", "Comma")
|
|
276
276
|
})]
|
|
277
277
|
})
|
|
278
278
|
}), /* @__PURE__ */ E(B, {
|
|
279
279
|
id: i("oauthTokenAuthMethod"),
|
|
280
|
-
label:
|
|
280
|
+
label: a("integrations.connectorSubmissions.fields.oauthTokenAuthMethod", "Token endpoint authentication"),
|
|
281
281
|
children: /* @__PURE__ */ D("select", {
|
|
282
282
|
id: i("oauthTokenAuthMethod"),
|
|
283
|
-
value:
|
|
283
|
+
value: t.oauthTokenAuthMethod,
|
|
284
284
|
onChange: (e) => n("oauthTokenAuthMethod", e.target.value),
|
|
285
285
|
className: F,
|
|
286
286
|
children: [/* @__PURE__ */ E("option", {
|
|
287
|
-
value:
|
|
288
|
-
children:
|
|
287
|
+
value: p.ClientSecretPost,
|
|
288
|
+
children: a("integrations.connectorSubmissions.oauth.clientSecretPost", "Client secret in the request body")
|
|
289
289
|
}), /* @__PURE__ */ E("option", {
|
|
290
|
-
value:
|
|
291
|
-
children:
|
|
290
|
+
value: p.ClientSecretBasic,
|
|
291
|
+
children: a("integrations.connectorSubmissions.oauth.clientSecretBasic", "HTTP Basic authentication")
|
|
292
292
|
})]
|
|
293
293
|
})
|
|
294
294
|
})]
|
|
@@ -297,15 +297,15 @@ function U({ form: e, set: n, text: r, id: i }) {
|
|
|
297
297
|
className: "flex items-center gap-2 text-sm text-text-primary",
|
|
298
298
|
children: [/* @__PURE__ */ E("input", {
|
|
299
299
|
type: "checkbox",
|
|
300
|
-
checked:
|
|
300
|
+
checked: t.oauthPkce,
|
|
301
301
|
onChange: (e) => n("oauthPkce", e.target.checked)
|
|
302
|
-
}),
|
|
302
|
+
}), a("integrations.connectorSubmissions.fields.oauthPkce", "Use PKCE (recommended)")]
|
|
303
303
|
}),
|
|
304
304
|
/* @__PURE__ */ D("div", {
|
|
305
305
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
306
306
|
children: [/* @__PURE__ */ E(B, {
|
|
307
307
|
id: i("oauthClientId"),
|
|
308
|
-
label:
|
|
308
|
+
label: a("integrations.connectorSubmissions.fields.oauthClientId", "OAuth client id"),
|
|
309
309
|
required: !0,
|
|
310
310
|
children: /* @__PURE__ */ E("input", {
|
|
311
311
|
...r("oauthClientId"),
|
|
@@ -315,8 +315,8 @@ function U({ form: e, set: n, text: r, id: i }) {
|
|
|
315
315
|
})
|
|
316
316
|
}), /* @__PURE__ */ E(B, {
|
|
317
317
|
id: i("oauthClientSecret"),
|
|
318
|
-
label:
|
|
319
|
-
hint:
|
|
318
|
+
label: a("integrations.connectorSubmissions.fields.oauthClientSecret", "Client secret"),
|
|
319
|
+
hint: a("integrations.connectorSubmissions.oauth.secretHint", "Write-only: stored encrypted and never shown again."),
|
|
320
320
|
required: !0,
|
|
321
321
|
children: /* @__PURE__ */ E("input", {
|
|
322
322
|
...r("oauthClientSecret"),
|
|
@@ -330,8 +330,8 @@ function U({ form: e, set: n, text: r, id: i }) {
|
|
|
330
330
|
]
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
|
-
function W({ form:
|
|
334
|
-
let a =
|
|
333
|
+
function W({ form: t, set: n, text: r, id: i }) {
|
|
334
|
+
let a = e();
|
|
335
335
|
return /* @__PURE__ */ D(k, {
|
|
336
336
|
className: "p-5 space-y-4 lg:col-span-2",
|
|
337
337
|
children: [
|
|
@@ -404,7 +404,7 @@ function W({ form: e, set: n, text: r, id: i }) {
|
|
|
404
404
|
children: [/* @__PURE__ */ E("input", {
|
|
405
405
|
type: "checkbox",
|
|
406
406
|
className: "mt-0.5",
|
|
407
|
-
checked:
|
|
407
|
+
checked: t.acceptedPolicy,
|
|
408
408
|
onChange: (e) => n("acceptedPolicy", e.target.checked)
|
|
409
409
|
}), /* @__PURE__ */ E("span", {
|
|
410
410
|
className: "text-sm text-text-primary",
|
|
@@ -414,8 +414,8 @@ function W({ form: e, set: n, text: r, id: i }) {
|
|
|
414
414
|
]
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
|
-
function G({ onDone:
|
|
418
|
-
let n =
|
|
417
|
+
function G({ onDone: t }) {
|
|
418
|
+
let n = e(), r = g(), a = (e) => `${r}-${e}`, [o, s] = _(I), [c, l] = _(""), { submitConnector: d, loading: f } = i(), p = (e, t) => s((n) => ({
|
|
419
419
|
...n,
|
|
420
420
|
[e]: t
|
|
421
421
|
})), m = (e) => ({
|
|
@@ -425,10 +425,10 @@ function G({ onDone: e }) {
|
|
|
425
425
|
className: P
|
|
426
426
|
});
|
|
427
427
|
return /* @__PURE__ */ D("form", {
|
|
428
|
-
onSubmit: async (
|
|
429
|
-
|
|
428
|
+
onSubmit: async (e) => {
|
|
429
|
+
e.preventDefault(), l("");
|
|
430
430
|
try {
|
|
431
|
-
await
|
|
431
|
+
await d(z(o)), s(I), t();
|
|
432
432
|
} catch (e) {
|
|
433
433
|
l(e instanceof Error ? e.message : n("integrations.connectorSubmissions.errors.submitFailed", "Could not submit the connector"));
|
|
434
434
|
}
|
|
@@ -579,13 +579,13 @@ function G({ onDone: e }) {
|
|
|
579
579
|
})
|
|
580
580
|
})]
|
|
581
581
|
}),
|
|
582
|
-
o.authType ===
|
|
582
|
+
o.authType === u.ApiKey && /* @__PURE__ */ E(H, {
|
|
583
583
|
form: o,
|
|
584
584
|
set: p,
|
|
585
585
|
text: m,
|
|
586
586
|
id: a
|
|
587
587
|
}),
|
|
588
|
-
o.authType ===
|
|
588
|
+
o.authType === u.Oauth2 && /* @__PURE__ */ E(U, {
|
|
589
589
|
form: o,
|
|
590
590
|
set: p,
|
|
591
591
|
text: m,
|
|
@@ -628,7 +628,7 @@ function G({ onDone: e }) {
|
|
|
628
628
|
children: [/* @__PURE__ */ D(O, {
|
|
629
629
|
type: "button",
|
|
630
630
|
variant: "ghost",
|
|
631
|
-
onClick:
|
|
631
|
+
onClick: t,
|
|
632
632
|
children: [/* @__PURE__ */ E(w, { size: 16 }), n("integrations.common.cancel", "Cancel")]
|
|
633
633
|
}), /* @__PURE__ */ D(O, {
|
|
634
634
|
type: "submit",
|
|
@@ -642,27 +642,27 @@ function G({ onDone: e }) {
|
|
|
642
642
|
]
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
|
-
function K({ submissionId:
|
|
646
|
-
let i =
|
|
645
|
+
function K({ submissionId: t, initialClientId: n, onDone: r }) {
|
|
646
|
+
let i = e(), o = g(), [s, c] = _(n), [l, u] = _(""), [d, f] = _(""), { updateOAuthClient: p, loading: m } = a();
|
|
647
647
|
return /* @__PURE__ */ D("form", {
|
|
648
|
-
onSubmit: async (
|
|
649
|
-
|
|
648
|
+
onSubmit: async (e) => {
|
|
649
|
+
e.preventDefault(), f("");
|
|
650
650
|
try {
|
|
651
|
-
await p(
|
|
652
|
-
clientId:
|
|
653
|
-
clientSecret:
|
|
654
|
-
}),
|
|
651
|
+
await p(t, {
|
|
652
|
+
clientId: s.trim(),
|
|
653
|
+
clientSecret: l
|
|
654
|
+
}), u(""), r();
|
|
655
655
|
} catch (e) {
|
|
656
|
-
|
|
656
|
+
f(e instanceof Error ? e.message : String(e));
|
|
657
657
|
}
|
|
658
658
|
},
|
|
659
659
|
className: "rounded-xl border border-border-seam bg-bg-surface p-4 space-y-3",
|
|
660
660
|
"aria-label": i("integrations.connectorSubmissions.oauth.updateTitle", "Update OAuth client"),
|
|
661
661
|
children: [
|
|
662
|
-
|
|
662
|
+
d && /* @__PURE__ */ E("div", {
|
|
663
663
|
role: "alert",
|
|
664
664
|
className: "rounded-lg border border-border-seam bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
665
|
-
children:
|
|
665
|
+
children: d
|
|
666
666
|
}),
|
|
667
667
|
/* @__PURE__ */ E("p", {
|
|
668
668
|
className: "text-xs text-text-secondary",
|
|
@@ -671,26 +671,26 @@ function K({ submissionId: e, initialClientId: n, onDone: r }) {
|
|
|
671
671
|
/* @__PURE__ */ D("div", {
|
|
672
672
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
|
|
673
673
|
children: [/* @__PURE__ */ E(B, {
|
|
674
|
-
id: `${
|
|
674
|
+
id: `${o}-clientId`,
|
|
675
675
|
label: i("integrations.connectorSubmissions.fields.oauthClientId", "OAuth client id"),
|
|
676
676
|
required: !0,
|
|
677
677
|
children: /* @__PURE__ */ E("input", {
|
|
678
|
-
id: `${
|
|
679
|
-
value:
|
|
680
|
-
onChange: (e) =>
|
|
678
|
+
id: `${o}-clientId`,
|
|
679
|
+
value: s,
|
|
680
|
+
onChange: (e) => c(e.target.value),
|
|
681
681
|
required: !0,
|
|
682
682
|
maxLength: 256,
|
|
683
683
|
autoComplete: "off",
|
|
684
684
|
className: P
|
|
685
685
|
})
|
|
686
686
|
}), /* @__PURE__ */ E(B, {
|
|
687
|
-
id: `${
|
|
687
|
+
id: `${o}-clientSecret`,
|
|
688
688
|
label: i("integrations.connectorSubmissions.fields.oauthClientSecret", "Client secret"),
|
|
689
689
|
required: !0,
|
|
690
690
|
children: /* @__PURE__ */ E("input", {
|
|
691
|
-
id: `${
|
|
692
|
-
value:
|
|
693
|
-
onChange: (e) =>
|
|
691
|
+
id: `${o}-clientSecret`,
|
|
692
|
+
value: l,
|
|
693
|
+
onChange: (e) => u(e.target.value),
|
|
694
694
|
required: !0,
|
|
695
695
|
type: "password",
|
|
696
696
|
maxLength: 1024,
|
|
@@ -721,7 +721,7 @@ function K({ submissionId: e, initialClientId: n, onDone: r }) {
|
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
723
|
function q() {
|
|
724
|
-
let { basePath:
|
|
724
|
+
let { basePath: i = "/", navigate: a } = t(), u = e(), [d, f] = _(!1), [p, h] = _(null), [g, S] = _(null), [w, k] = _(""), [M, N] = _(0), { submissions: P, total: F, hasMore: I, loading: L, error: R } = r(M), { withdraw: z, loading: B } = o();
|
|
725
725
|
return /* @__PURE__ */ D("div", {
|
|
726
726
|
className: "space-y-6 p-4 sm:p-6 max-w-5xl mx-auto",
|
|
727
727
|
children: [
|
|
@@ -731,8 +731,8 @@ function q() {
|
|
|
731
731
|
/* @__PURE__ */ E(O, {
|
|
732
732
|
variant: "ghost",
|
|
733
733
|
size: "icon",
|
|
734
|
-
onClick: () =>
|
|
735
|
-
"aria-label":
|
|
734
|
+
onClick: () => a?.(n(i, "providers")),
|
|
735
|
+
"aria-label": u("integrations.common.back", "Back"),
|
|
736
736
|
children: /* @__PURE__ */ E(v, { size: 20 })
|
|
737
737
|
}),
|
|
738
738
|
/* @__PURE__ */ E("div", {
|
|
@@ -746,23 +746,23 @@ function q() {
|
|
|
746
746
|
className: "min-w-0 flex-1",
|
|
747
747
|
children: [/* @__PURE__ */ E("h1", {
|
|
748
748
|
className: "text-2xl font-bold text-text-primary",
|
|
749
|
-
children:
|
|
749
|
+
children: u("integrations.connectorSubmissions.title", "Publish a connector")
|
|
750
750
|
}), /* @__PURE__ */ E("p", {
|
|
751
751
|
className: "text-sm text-text-secondary mt-1",
|
|
752
|
-
children:
|
|
752
|
+
children: u("integrations.connectorSubmissions.subtitle", "Submit your service to the integrations catalog and follow its review.")
|
|
753
753
|
})]
|
|
754
754
|
}),
|
|
755
|
-
!
|
|
756
|
-
onClick: () =>
|
|
757
|
-
children: [/* @__PURE__ */ E(x, { size: 16 }),
|
|
755
|
+
!d && /* @__PURE__ */ D(O, {
|
|
756
|
+
onClick: () => f(!0),
|
|
757
|
+
children: [/* @__PURE__ */ E(x, { size: 16 }), u("integrations.connectorSubmissions.actions.new", "Submit a connector")]
|
|
758
758
|
})
|
|
759
759
|
]
|
|
760
760
|
}),
|
|
761
761
|
/* @__PURE__ */ E(j, {
|
|
762
762
|
icon: /* @__PURE__ */ E(C, { size: 16 }),
|
|
763
|
-
children:
|
|
763
|
+
children: u("integrations.connectorSubmissions.purpose", "Third-party developers can list their service in the integrations catalog. Connectors use an API key, a bearer token or basic auth that each workspace enters for itself, or OAuth 2.0 with your own OAuth app, whose secret is stored encrypted and never shown. A Burdenoff reviewer checks every submission within five business days; once approved, every workspace can connect to it.")
|
|
764
764
|
}),
|
|
765
|
-
|
|
765
|
+
d && /* @__PURE__ */ E(G, { onDone: () => f(!1) }),
|
|
766
766
|
w && /* @__PURE__ */ E("div", {
|
|
767
767
|
role: "alert",
|
|
768
768
|
className: "rounded-xl border border-border-seam bg-status-error-bg-subtle px-4 py-3 text-sm text-status-error-text",
|
|
@@ -775,7 +775,7 @@ function q() {
|
|
|
775
775
|
/* @__PURE__ */ E("h2", {
|
|
776
776
|
id: "connector-submissions-heading",
|
|
777
777
|
className: "text-lg font-semibold text-text-primary",
|
|
778
|
-
children:
|
|
778
|
+
children: u("integrations.connectorSubmissions.mine", "Your submissions")
|
|
779
779
|
}),
|
|
780
780
|
L && P.length === 0 ? /* @__PURE__ */ E("div", {
|
|
781
781
|
className: "flex justify-center py-10",
|
|
@@ -789,39 +789,39 @@ function q() {
|
|
|
789
789
|
children: R.message
|
|
790
790
|
}) : P.length === 0 ? /* @__PURE__ */ E(A, {
|
|
791
791
|
illustration: "empty-data",
|
|
792
|
-
title:
|
|
793
|
-
description:
|
|
792
|
+
title: u("integrations.connectorSubmissions.empty.title", "No submissions yet"),
|
|
793
|
+
description: u("integrations.connectorSubmissions.empty.description", "Submit a connector to see it here while it is reviewed.")
|
|
794
794
|
}) : P.map((e) => {
|
|
795
|
-
let t = e.status ===
|
|
795
|
+
let t = e.status === m.PendingReview, r = e.status === m.Approved, o = !!e.oauth && (t || r);
|
|
796
796
|
return /* @__PURE__ */ D("div", {
|
|
797
797
|
className: "space-y-2",
|
|
798
|
-
children: [/* @__PURE__ */ E(
|
|
798
|
+
children: [/* @__PURE__ */ E(s, {
|
|
799
799
|
submission: e,
|
|
800
|
-
actions: /* @__PURE__ */ D(T, { children: [
|
|
800
|
+
actions: /* @__PURE__ */ D(T, { children: [o && /* @__PURE__ */ D(O, {
|
|
801
801
|
variant: "ghost",
|
|
802
802
|
size: "sm",
|
|
803
803
|
onClick: () => S((t) => t === e.id ? null : e.id),
|
|
804
|
-
children: [/* @__PURE__ */ E(y, { size: 14 }),
|
|
804
|
+
children: [/* @__PURE__ */ E(y, { size: 14 }), u("integrations.connectorSubmissions.actions.updateOAuthClient", "Update OAuth client")]
|
|
805
805
|
}), t ? /* @__PURE__ */ E(O, {
|
|
806
806
|
variant: "ghost",
|
|
807
807
|
size: "sm",
|
|
808
|
-
onClick: () =>
|
|
808
|
+
onClick: () => h(e.id),
|
|
809
809
|
disabled: B,
|
|
810
|
-
children:
|
|
811
|
-
}) :
|
|
810
|
+
children: u("integrations.connectorSubmissions.actions.withdraw", "Withdraw")
|
|
811
|
+
}) : r && e.providerId ? /* @__PURE__ */ E(O, {
|
|
812
812
|
variant: "ghost",
|
|
813
813
|
size: "sm",
|
|
814
|
-
onClick: () =>
|
|
815
|
-
children:
|
|
814
|
+
onClick: () => a?.(n(i, `providers/${e.providerId}`)),
|
|
815
|
+
children: u("integrations.connectorSubmissions.actions.viewListing", "View listing")
|
|
816
816
|
}) : null] })
|
|
817
|
-
}),
|
|
817
|
+
}), o && g === e.id && e.oauth && /* @__PURE__ */ E(K, {
|
|
818
818
|
submissionId: e.id,
|
|
819
819
|
initialClientId: e.oauth.clientId,
|
|
820
820
|
onDone: () => S(null)
|
|
821
821
|
})]
|
|
822
822
|
}, e.id);
|
|
823
823
|
}),
|
|
824
|
-
/* @__PURE__ */ E(
|
|
824
|
+
/* @__PURE__ */ E(c, {
|
|
825
825
|
offset: M,
|
|
826
826
|
count: P.length,
|
|
827
827
|
total: F,
|
|
@@ -833,31 +833,30 @@ function q() {
|
|
|
833
833
|
]
|
|
834
834
|
}),
|
|
835
835
|
/* @__PURE__ */ E(l, {
|
|
836
|
-
open:
|
|
837
|
-
title:
|
|
838
|
-
description:
|
|
839
|
-
confirmLabel:
|
|
840
|
-
cancelLabel:
|
|
836
|
+
open: p !== null,
|
|
837
|
+
title: u("integrations.connectorSubmissions.withdraw.title", "Withdraw this submission?"),
|
|
838
|
+
description: u("integrations.connectorSubmissions.withdraw.description", "The reviewer will no longer see it. You can submit the connector again later."),
|
|
839
|
+
confirmLabel: u("integrations.connectorSubmissions.actions.withdraw", "Withdraw"),
|
|
840
|
+
cancelLabel: u("integrations.common.cancel", "Cancel"),
|
|
841
841
|
loading: B,
|
|
842
842
|
destructive: !0,
|
|
843
843
|
onConfirm: async () => {
|
|
844
|
-
if (
|
|
844
|
+
if (p) {
|
|
845
845
|
k("");
|
|
846
846
|
try {
|
|
847
|
-
await z(
|
|
847
|
+
await z(p);
|
|
848
848
|
} catch (e) {
|
|
849
849
|
k(e instanceof Error ? e.message : String(e));
|
|
850
850
|
} finally {
|
|
851
|
-
|
|
851
|
+
h(null);
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
},
|
|
855
|
-
onCancel: () =>
|
|
855
|
+
onCancel: () => h(null)
|
|
856
856
|
})
|
|
857
857
|
]
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
|
-
//#endregion
|
|
861
860
|
export { q as ConnectorSubmissionsPage };
|
|
862
861
|
|
|
863
862
|
//# sourceMappingURL=ConnectorSubmissionsPage.js.map
|