@charisol/plexo-sdk 1.4.22 → 1.4.23
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' -> re-submits the same password alongside the code so the host can log in
|
|
209
|
+
* and fetch/store the API key in this one call — the panel never needs to hold the
|
|
210
|
+
* password past this step.
|
|
211
|
+
* - 'resend' -> re-sends the verification email.
|
|
212
|
+
*/
|
|
213
|
+
onMaildripAuth?: (input: {
|
|
214
|
+
action: 'register';
|
|
215
|
+
email: string;
|
|
216
|
+
password: string;
|
|
217
|
+
name: string;
|
|
218
|
+
} | {
|
|
219
|
+
action: 'login';
|
|
220
|
+
email: string;
|
|
221
|
+
password: string;
|
|
222
|
+
} | {
|
|
223
|
+
action: 'verify';
|
|
224
|
+
email: string;
|
|
225
|
+
code: string;
|
|
226
|
+
password: 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