@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.
|
@@ -190,6 +190,53 @@ export interface PlexoBuilderProps {
|
|
|
190
190
|
} | {
|
|
191
191
|
error: string;
|
|
192
192
|
}>;
|
|
193
|
+
/** True once this site already has a MailDrip account connected (an API key saved on the
|
|
194
|
+
* host's side) — lets the 'maildrip' provider panel skip straight to "Create Opt-in Page"
|
|
195
|
+
* instead of showing the Connect flow below. Resolved by the host, not the SDK. */
|
|
196
|
+
maildripConnected?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Backs the 'maildrip' provider's in-builder "Connect MailDrip" flow — a real login-or-
|
|
199
|
+
* create-account modal that never redirects to app.maildrip.io. The SDK never talks to
|
|
200
|
+
* MailDrip directly (a password only ever reaches the host's own backend, which relays it
|
|
201
|
+
* to MailDrip server-to-server); omit this prop and the panel falls back to pasting a
|
|
202
|
+
* Page ID only, with no way to connect an account from inside the builder.
|
|
203
|
+
*
|
|
204
|
+
* - 'register' -> the host creates the MailDrip account; MailDrip emails a verification
|
|
205
|
+
* code, so the real result is always 'verify_required', never immediate.
|
|
206
|
+
* - 'login' -> 'connected' for an already-verified account, 'verify_required' if the
|
|
207
|
+
* account exists but was never finished verifying.
|
|
208
|
+
* - 'verify' -> MailDrip's own verify endpoint returns a usable session token on success,
|
|
209
|
+
* so the host fetches/stores the API key in this one call — no password resubmission.
|
|
210
|
+
* - 'resend' -> re-sends the verification email.
|
|
211
|
+
*/
|
|
212
|
+
onMaildripAuth?: (input: {
|
|
213
|
+
action: 'register';
|
|
214
|
+
email: string;
|
|
215
|
+
password: string;
|
|
216
|
+
name: string;
|
|
217
|
+
companyName: string;
|
|
218
|
+
phone: string;
|
|
219
|
+
} | {
|
|
220
|
+
action: 'login';
|
|
221
|
+
email: string;
|
|
222
|
+
password: string;
|
|
223
|
+
} | {
|
|
224
|
+
action: 'verify';
|
|
225
|
+
email: string;
|
|
226
|
+
code: string;
|
|
227
|
+
} | {
|
|
228
|
+
action: 'resend';
|
|
229
|
+
email: string;
|
|
230
|
+
}) => Promise<{
|
|
231
|
+
status: 'connected';
|
|
232
|
+
} | {
|
|
233
|
+
status: 'verify_required';
|
|
234
|
+
email: string;
|
|
235
|
+
} | {
|
|
236
|
+
status: 'sent';
|
|
237
|
+
} | {
|
|
238
|
+
error: string;
|
|
239
|
+
}>;
|
|
193
240
|
/**
|
|
194
241
|
* Enables auto save mode.
|
|
195
242
|
* If true, calls onSave/export periodically.
|
|
@@ -351,6 +398,9 @@ export interface InlineTextInputProps {
|
|
|
351
398
|
label: string;
|
|
352
399
|
value: string;
|
|
353
400
|
onChange: (val: string) => void;
|
|
401
|
+
/** Defaults to 'text'. 'password' masks input (e.g. the MailDrip Connect flow); 'email'
|
|
402
|
+
* gets the browser's native email keyboard/validation on mobile. */
|
|
403
|
+
type?: 'text' | 'password' | 'email';
|
|
354
404
|
}
|
|
355
405
|
export interface InlineTextAreaProps {
|
|
356
406
|
label: string;
|
package/package.json
CHANGED