@charisol/plexo-sdk 1.4.22 → 1.4.24

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.
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ type ConnectResult = {
3
+ status: 'connected';
4
+ } | {
5
+ status: 'verify_required';
6
+ email: string;
7
+ } | {
8
+ status: 'sent';
9
+ } | {
10
+ error: string;
11
+ };
12
+ type AuthAction = {
13
+ action: 'register';
14
+ email: string;
15
+ password: string;
16
+ name: string;
17
+ companyName: string;
18
+ phone: string;
19
+ } | {
20
+ action: 'login';
21
+ email: string;
22
+ password: string;
23
+ } | {
24
+ action: 'verify';
25
+ email: string;
26
+ code: string;
27
+ } | {
28
+ action: 'resend';
29
+ email: string;
30
+ };
31
+ type Props = {
32
+ onMaildripAuth: (input: AuthAction) => Promise<ConnectResult>;
33
+ onConnected: () => void;
34
+ InlineTextInput: React.FC<any>;
35
+ };
36
+ /**
37
+ * The in-builder "Connect MailDrip" flow — real login/create-account against MailDrip's own
38
+ * account API (via the host's onMaildripAuth relay), never a redirect to app.maildrip.io.
39
+ * Three steps at most: credentials -> (only for a brand-new or not-yet-verified account) a
40
+ * verification code MailDrip emails -> connected. The password only ever lives in this
41
+ * component's own local state, passed to onMaildripAuth and nowhere else.
42
+ */
43
+ export declare const MaildripConnectPanel: React.FC<Props>;
44
+ export {};