@embedreach/components 0.3.23 → 0.3.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.
- package/dist/chunks/index.js +105723 -105713
- package/dist/index.d.ts +16 -15
- package/dist/index.es.js +3 -2
- package/dist/index.umd.js +13 -19
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
|
+
import * as React_2 from 'react';
|
|
3
4
|
import { SmsRegistrationApplicationType } from '../../../services/sms-registration';
|
|
4
5
|
import { SmsUseCaseCategory } from '../../../services/sms-registration';
|
|
5
6
|
import { ThemeConfig } from '@reach/shared-types/theme';
|
|
@@ -256,7 +257,15 @@ declare interface SegmentBuilderDialogProps {
|
|
|
256
257
|
segmentId?: string;
|
|
257
258
|
}
|
|
258
259
|
|
|
259
|
-
export declare const
|
|
260
|
+
export declare const SMSChannelSettings: ({ hideSubmitButton, formRef, onNeedsApplicationChange, onApplicationSubmit, onFormVisibilityChange, }: SMSChannelSettingsProps) => JSX_2.Element;
|
|
261
|
+
|
|
262
|
+
declare interface SMSChannelSettingsProps {
|
|
263
|
+
hideSubmitButton?: boolean;
|
|
264
|
+
formRef?: React_2.RefObject<SMSSetupBusinessFormRef>;
|
|
265
|
+
onNeedsApplicationChange?: (needsApplication: boolean) => void;
|
|
266
|
+
onApplicationSubmit?: (data: SMSSetupBusinessFormData) => Promise<void>;
|
|
267
|
+
onFormVisibilityChange?: (isFormVisible: boolean) => void;
|
|
268
|
+
}
|
|
260
269
|
|
|
261
270
|
declare type SMSSetupBusinessFormData = z.infer<typeof SMSSetupBusinessFormSchema>;
|
|
262
271
|
|
|
@@ -281,19 +290,19 @@ declare const SMSSetupBusinessFormSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
281
290
|
country: z.ZodString;
|
|
282
291
|
}, "strip", z.ZodTypeAny, {
|
|
283
292
|
name: string;
|
|
293
|
+
country: string;
|
|
284
294
|
address1: string;
|
|
285
295
|
city: string;
|
|
286
296
|
stateProvince: string;
|
|
287
297
|
zipCode: string;
|
|
288
|
-
country: string;
|
|
289
298
|
address2?: string | undefined;
|
|
290
299
|
}, {
|
|
291
300
|
name: string;
|
|
301
|
+
country: string;
|
|
292
302
|
address1: string;
|
|
293
303
|
city: string;
|
|
294
304
|
stateProvince: string;
|
|
295
305
|
zipCode: string;
|
|
296
|
-
country: string;
|
|
297
306
|
address2?: string | undefined;
|
|
298
307
|
}>;
|
|
299
308
|
contact: z.ZodObject<{
|
|
@@ -328,14 +337,13 @@ declare const SMSSetupBusinessFormSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
328
337
|
messageSamples: z.ZodArray<z.ZodString, "many">;
|
|
329
338
|
}, "strip", z.ZodTypeAny, {
|
|
330
339
|
type: SmsRegistrationApplicationType;
|
|
331
|
-
tollFreeNumber: string;
|
|
332
340
|
company: {
|
|
333
341
|
name: string;
|
|
342
|
+
country: string;
|
|
334
343
|
address1: string;
|
|
335
344
|
city: string;
|
|
336
345
|
stateProvince: string;
|
|
337
346
|
zipCode: string;
|
|
338
|
-
country: string;
|
|
339
347
|
address2?: string | undefined;
|
|
340
348
|
};
|
|
341
349
|
contact: {
|
|
@@ -344,6 +352,7 @@ declare const SMSSetupBusinessFormSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
344
352
|
lastName: string;
|
|
345
353
|
phoneNumber: string;
|
|
346
354
|
};
|
|
355
|
+
tollFreeNumber: string;
|
|
347
356
|
messagingUseCase: {
|
|
348
357
|
monthlyVolume: number;
|
|
349
358
|
category: SmsUseCaseCategory;
|
|
@@ -352,14 +361,13 @@ declare const SMSSetupBusinessFormSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
352
361
|
messageSamples: string[];
|
|
353
362
|
}, {
|
|
354
363
|
type: SmsRegistrationApplicationType;
|
|
355
|
-
tollFreeNumber: string;
|
|
356
364
|
company: {
|
|
357
365
|
name: string;
|
|
366
|
+
country: string;
|
|
358
367
|
address1: string;
|
|
359
368
|
city: string;
|
|
360
369
|
stateProvince: string;
|
|
361
370
|
zipCode: string;
|
|
362
|
-
country: string;
|
|
363
371
|
address2?: string | undefined;
|
|
364
372
|
};
|
|
365
373
|
contact: {
|
|
@@ -368,6 +376,7 @@ declare const SMSSetupBusinessFormSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
368
376
|
lastName: string;
|
|
369
377
|
phoneNumber: string;
|
|
370
378
|
};
|
|
379
|
+
tollFreeNumber: string;
|
|
371
380
|
messagingUseCase: {
|
|
372
381
|
monthlyVolume: number;
|
|
373
382
|
category: SmsUseCaseCategory;
|
|
@@ -376,14 +385,6 @@ declare const SMSSetupBusinessFormSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
376
385
|
messageSamples: string[];
|
|
377
386
|
}>]>;
|
|
378
387
|
|
|
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
|
-
|
|
387
388
|
/**
|
|
388
389
|
* Static merge field
|
|
389
390
|
*/
|
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
+
import { A, b, c, E, a, S, d, V } from "./chunks/index.js";
|
|
3
4
|
export {
|
|
4
5
|
A as AutomationTriggerType,
|
|
5
6
|
b as CreateAutomationDialog,
|
|
6
7
|
c as CreateAutomationModal,
|
|
7
8
|
E as Engage,
|
|
8
9
|
a as ReachProvider,
|
|
9
|
-
S as
|
|
10
|
+
S as SMSChannelSettings,
|
|
10
11
|
d as SegmentBuilderDialog,
|
|
11
12
|
V as ViewAutomationModal
|
|
12
13
|
};
|