@embedreach/components 0.3.21 → 0.3.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.
- package/dist/chunks/index.js +94866 -95157
- package/dist/index.d.ts +132 -1
- package/dist/index.es.js +3 -2
- package/dist/index.umd.js +21 -21
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
|
+
import { SmsRegistrationApplicationType } from '../../../services/sms-registration';
|
|
4
|
+
import { SmsUseCaseCategory } from '../../../services/sms-registration';
|
|
3
5
|
import { ThemeConfig } from '@reach/shared-types/theme';
|
|
6
|
+
import { z } from 'zod';
|
|
4
7
|
|
|
5
8
|
export declare enum AutomationTriggerType {
|
|
6
9
|
ONE_TIME = "one_time",
|
|
@@ -127,7 +130,7 @@ declare interface EngageTypedOverrides {
|
|
|
127
130
|
* Represents the available features in our application.
|
|
128
131
|
* Each feature corresponds to a specific section of the marketing hub.
|
|
129
132
|
*/
|
|
130
|
-
declare type FeatureKey = 'measure' | 'measure-setup' | 'acquire-setup' | 'reputation-setup' | 'reputation' | 'engage-segment-builder' | 'engage-automations-create-modal' | 'engage-automations-view-modal' | 'engage';
|
|
133
|
+
declare type FeatureKey = 'measure' | 'measure-setup' | 'acquire-setup' | 'acquire' | 'reputation-setup' | 'reputation' | 'engage-segment-builder' | 'engage-automations-create-modal' | 'engage-automations-view-modal' | 'engage';
|
|
131
134
|
|
|
132
135
|
declare type ImageMergeFieldType = {
|
|
133
136
|
placeholderUrl: string;
|
|
@@ -253,6 +256,134 @@ declare interface SegmentBuilderDialogProps {
|
|
|
253
256
|
segmentId?: string;
|
|
254
257
|
}
|
|
255
258
|
|
|
259
|
+
export declare const SMSSetup: ({ onSubmit, onApplicationSubmit, hideSubmitButton, formRef, onFormVisibilityChange, }: SMSSetupProps) => JSX_2.Element;
|
|
260
|
+
|
|
261
|
+
declare type SMSSetupBusinessFormData = z.infer<typeof SMSSetupBusinessFormSchema>;
|
|
262
|
+
|
|
263
|
+
declare interface SMSSetupBusinessFormRef {
|
|
264
|
+
submit: () => void;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Schema for the SMS Setup Business Form
|
|
269
|
+
* Maps to the AWS Toll Free Number application data structure
|
|
270
|
+
*/
|
|
271
|
+
declare const SMSSetupBusinessFormSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
272
|
+
type: z.ZodLiteral<SmsRegistrationApplicationType>;
|
|
273
|
+
tollFreeNumber: z.ZodString;
|
|
274
|
+
company: z.ZodObject<{
|
|
275
|
+
name: z.ZodString;
|
|
276
|
+
address1: z.ZodString;
|
|
277
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
278
|
+
city: z.ZodString;
|
|
279
|
+
stateProvince: z.ZodString;
|
|
280
|
+
zipCode: z.ZodString;
|
|
281
|
+
country: z.ZodString;
|
|
282
|
+
}, "strip", z.ZodTypeAny, {
|
|
283
|
+
name: string;
|
|
284
|
+
address1: string;
|
|
285
|
+
city: string;
|
|
286
|
+
stateProvince: string;
|
|
287
|
+
zipCode: string;
|
|
288
|
+
country: string;
|
|
289
|
+
address2?: string | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
name: string;
|
|
292
|
+
address1: string;
|
|
293
|
+
city: string;
|
|
294
|
+
stateProvince: string;
|
|
295
|
+
zipCode: string;
|
|
296
|
+
country: string;
|
|
297
|
+
address2?: string | undefined;
|
|
298
|
+
}>;
|
|
299
|
+
contact: z.ZodObject<{
|
|
300
|
+
firstName: z.ZodString;
|
|
301
|
+
lastName: z.ZodString;
|
|
302
|
+
email: z.ZodString;
|
|
303
|
+
phoneNumber: z.ZodString;
|
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
email: string;
|
|
306
|
+
firstName: string;
|
|
307
|
+
lastName: string;
|
|
308
|
+
phoneNumber: string;
|
|
309
|
+
}, {
|
|
310
|
+
email: string;
|
|
311
|
+
firstName: string;
|
|
312
|
+
lastName: string;
|
|
313
|
+
phoneNumber: string;
|
|
314
|
+
}>;
|
|
315
|
+
messagingUseCase: z.ZodObject<{
|
|
316
|
+
monthlyVolume: z.ZodNumber;
|
|
317
|
+
category: z.ZodNativeEnum<SmsUseCaseCategory>;
|
|
318
|
+
useCaseDetails: z.ZodEffects<z.ZodString, string, string>;
|
|
319
|
+
}, "strip", z.ZodTypeAny, {
|
|
320
|
+
monthlyVolume: number;
|
|
321
|
+
category: SmsUseCaseCategory;
|
|
322
|
+
useCaseDetails: string;
|
|
323
|
+
}, {
|
|
324
|
+
monthlyVolume: number;
|
|
325
|
+
category: SmsUseCaseCategory;
|
|
326
|
+
useCaseDetails: string;
|
|
327
|
+
}>;
|
|
328
|
+
messageSamples: z.ZodArray<z.ZodString, "many">;
|
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
type: SmsRegistrationApplicationType;
|
|
331
|
+
tollFreeNumber: string;
|
|
332
|
+
company: {
|
|
333
|
+
name: string;
|
|
334
|
+
address1: string;
|
|
335
|
+
city: string;
|
|
336
|
+
stateProvince: string;
|
|
337
|
+
zipCode: string;
|
|
338
|
+
country: string;
|
|
339
|
+
address2?: string | undefined;
|
|
340
|
+
};
|
|
341
|
+
contact: {
|
|
342
|
+
email: string;
|
|
343
|
+
firstName: string;
|
|
344
|
+
lastName: string;
|
|
345
|
+
phoneNumber: string;
|
|
346
|
+
};
|
|
347
|
+
messagingUseCase: {
|
|
348
|
+
monthlyVolume: number;
|
|
349
|
+
category: SmsUseCaseCategory;
|
|
350
|
+
useCaseDetails: string;
|
|
351
|
+
};
|
|
352
|
+
messageSamples: string[];
|
|
353
|
+
}, {
|
|
354
|
+
type: SmsRegistrationApplicationType;
|
|
355
|
+
tollFreeNumber: string;
|
|
356
|
+
company: {
|
|
357
|
+
name: string;
|
|
358
|
+
address1: string;
|
|
359
|
+
city: string;
|
|
360
|
+
stateProvince: string;
|
|
361
|
+
zipCode: string;
|
|
362
|
+
country: string;
|
|
363
|
+
address2?: string | undefined;
|
|
364
|
+
};
|
|
365
|
+
contact: {
|
|
366
|
+
email: string;
|
|
367
|
+
firstName: string;
|
|
368
|
+
lastName: string;
|
|
369
|
+
phoneNumber: string;
|
|
370
|
+
};
|
|
371
|
+
messagingUseCase: {
|
|
372
|
+
monthlyVolume: number;
|
|
373
|
+
category: SmsUseCaseCategory;
|
|
374
|
+
useCaseDetails: string;
|
|
375
|
+
};
|
|
376
|
+
messageSamples: string[];
|
|
377
|
+
}>]>;
|
|
378
|
+
|
|
379
|
+
declare interface SMSSetupProps {
|
|
380
|
+
onSubmit?: () => Promise<void>;
|
|
381
|
+
onApplicationSubmit?: (data: SMSSetupBusinessFormData) => Promise<void>;
|
|
382
|
+
hideSubmitButton?: boolean;
|
|
383
|
+
formRef?: default_2.RefObject<SMSSetupBusinessFormRef>;
|
|
384
|
+
onFormVisibilityChange?: (isFormVisible: boolean) => void;
|
|
385
|
+
}
|
|
386
|
+
|
|
256
387
|
/**
|
|
257
388
|
* Static merge field
|
|
258
389
|
*/
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, b, c, E, a, S, V } from "./chunks/index.js";
|
|
1
|
+
import { A, b, c, E, a, S, d, V } from "./chunks/index.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
A as AutomationTriggerType,
|
|
@@ -6,6 +6,7 @@ export {
|
|
|
6
6
|
c as CreateAutomationModal,
|
|
7
7
|
E as Engage,
|
|
8
8
|
a as ReachProvider,
|
|
9
|
-
S as
|
|
9
|
+
S as SMSSetup,
|
|
10
|
+
d as SegmentBuilderDialog,
|
|
10
11
|
V as ViewAutomationModal
|
|
11
12
|
};
|