@embedreach/components 0.3.22 → 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.
@@ -21432,7 +21432,11 @@ const createWebPresenceContentFactory = (platformConfig, businessConfig) => {
21432
21432
  const createSandboxMeasureAndAcquireData = (platformId, businessId) => {
21433
21433
  const platformConfigKey = getPlatformConfigKey(platformId);
21434
21434
  const platformConfig = {
21435
- id: platformConfigKey
21435
+ id: platformConfigKey,
21436
+ name: platformConfigKey === "goose" ? "ACME Pet Spa" : platformConfigKey === "renterra" ? "Tomers Rentals" : "Default",
21437
+ brandColors: [],
21438
+ locationNames: [],
21439
+ locationAreas: []
21436
21440
  };
21437
21441
  const businessConfig = getBusinessConfig(platformId);
21438
21442
  const businessesMe = createBusinessDataFactory(
@@ -21699,7 +21703,7 @@ const native = {
21699
21703
  randomUUID
21700
21704
  };
21701
21705
  function v4(options, buf, offset) {
21702
- if (native.randomUUID && true && !options) {
21706
+ if (native.randomUUID && !buf && !options) {
21703
21707
  return native.randomUUID();
21704
21708
  }
21705
21709
  options = options || {};
@@ -23364,6 +23368,7 @@ const reputationHandlers = [
23364
23368
  const includeComparison = url.searchParams.get("include_comparison") === "true";
23365
23369
  const platformData = getSandboxDataForPlatform(currentSandboxPlatformId);
23366
23370
  const queryParams = {
23371
+ platform: "google_business_profile",
23367
23372
  start_date: startDate || void 0,
23368
23373
  end_date: endDate || void 0,
23369
23374
  location_ids: locationIds ? locationIds.split(",").filter(Boolean) : void 0,
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 SegmentBuilderDialog,
9
+ S as SMSSetup,
10
+ d as SegmentBuilderDialog,
10
11
  V as ViewAutomationModal
11
12
  };