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