@embedreach/components 0.3.7 → 0.3.9

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.
@@ -20726,14 +20726,14 @@ const defaultPlatformData = {
20726
20726
  baseAggregatedMetrics: {
20727
20727
  google: {
20728
20728
  business_id: sandboxBusinessId,
20729
- ads_spend: 1500,
20730
- clicks: 1e3,
20731
- impressions: 75e3,
20732
- measured_conversions: 150,
20733
- measured_revenue: 18e3,
20729
+ ads_spend: 750,
20730
+ clicks: 400,
20731
+ impressions: 8500,
20732
+ measured_conversions: 8,
20733
+ measured_revenue: 6050,
20734
20734
  new_leads: 600,
20735
- new_customers: 850,
20736
- customer_ltv: 30100,
20735
+ new_customers: 6,
20736
+ customer_ltv: 8488,
20737
20737
  roas: 12,
20738
20738
  cost_per_click: 1.5,
20739
20739
  click_through_rate: 0.0133,
@@ -20744,14 +20744,14 @@ const defaultPlatformData = {
20744
20744
  name: "Google Search Campaign",
20745
20745
  channel: "google",
20746
20746
  business_id: sandboxBusinessId,
20747
- ads_spend: 1500,
20748
- clicks: 1e3,
20749
- impressions: 75e3,
20750
- measured_conversions: 150,
20751
- measured_revenue: 18e3,
20747
+ ads_spend: 750,
20748
+ clicks: 400,
20749
+ impressions: 8500,
20750
+ measured_conversions: 8,
20751
+ measured_revenue: 6050,
20752
20752
  new_leads: 600,
20753
- new_customers: 850,
20754
- customer_ltv: 30100,
20753
+ new_customers: 6,
20754
+ customer_ltv: 8488,
20755
20755
  roas: 12,
20756
20756
  cost_per_click: 1.5,
20757
20757
  click_through_rate: 0.0133,
@@ -20762,14 +20762,14 @@ const defaultPlatformData = {
20762
20762
  },
20763
20763
  meta: {
20764
20764
  business_id: sandboxBusinessId,
20765
- ads_spend: 800,
20766
- clicks: 2e3,
20767
- impressions: 8e4,
20768
- measured_conversions: 80,
20769
- measured_revenue: 7200,
20765
+ ads_spend: 325,
20766
+ clicks: 300,
20767
+ impressions: 6900,
20768
+ measured_conversions: 4,
20769
+ measured_revenue: 3025,
20770
20770
  new_leads: 400,
20771
- new_customers: 650,
20772
- customer_ltv: 8500,
20771
+ new_customers: 7,
20772
+ customer_ltv: 3150,
20773
20773
  roas: 9,
20774
20774
  cost_per_click: 0.4,
20775
20775
  click_through_rate: 0.025,
@@ -20780,14 +20780,14 @@ const defaultPlatformData = {
20780
20780
  name: "Sandbox Meta Campaign Beta",
20781
20781
  channel: "meta",
20782
20782
  business_id: sandboxBusinessId,
20783
- ads_spend: 800,
20784
- clicks: 2e3,
20785
- impressions: 8e4,
20786
- measured_conversions: 80,
20787
- measured_revenue: 7200,
20783
+ ads_spend: 325,
20784
+ clicks: 300,
20785
+ impressions: 6900,
20786
+ measured_conversions: 4,
20787
+ measured_revenue: 3025,
20788
20788
  new_leads: 400,
20789
- new_customers: 650,
20790
- customer_ltv: 8500,
20789
+ new_customers: 7,
20790
+ customer_ltv: 3150,
20791
20791
  roas: 9,
20792
20792
  cost_per_click: 0.4,
20793
20793
  click_through_rate: 0.025,
@@ -20798,17 +20798,17 @@ const defaultPlatformData = {
20798
20798
  },
20799
20799
  all: {
20800
20800
  business_id: sandboxBusinessId,
20801
- ads_spend: 1500 + 800,
20802
- clicks: 1e3 + 2e3,
20803
- impressions: 75e3 + 8e4,
20804
- measured_conversions: 150 + 80,
20805
- measured_revenue: 18e3 + 7200,
20801
+ ads_spend: 750 + 325,
20802
+ clicks: 400 + 300,
20803
+ impressions: 8500 + 6900,
20804
+ measured_conversions: 8 + 4,
20805
+ measured_revenue: 6050 + 3025,
20806
20806
  new_leads: 600 + 400,
20807
- new_customers: 850 + 650,
20808
- customer_ltv: (850 * 30100 + 650 * 8500) / (850 + 650),
20809
- roas: (18e3 + 7200) / (1500 + 800),
20810
- cost_per_click: (1500 + 800) / (1e3 + 2e3),
20811
- click_through_rate: (1e3 + 2e3) / (75e3 + 8e4),
20807
+ new_customers: 5 + 7,
20808
+ customer_ltv: (5 * 8488 + 7 * 3150) / (5 + 7),
20809
+ roas: (6050 + 3025) / (750 + 325),
20810
+ cost_per_click: (750 + 300) / (400 + 300),
20811
+ click_through_rate: (400 + 300) / (8500 + 6900),
20812
20812
  date_range: { start: "2024-01-01", end: "2024-01-30" },
20813
20813
  campaigns: []
20814
20814
  }
@@ -20816,26 +20816,26 @@ const defaultPlatformData = {
20816
20816
  orderSourceInfoTotals: {
20817
20817
  baseStartDate: "2025-03-01",
20818
20818
  baseEndDate: "2025-05-29",
20819
- totalCount: 657,
20820
- totalAmount: 76e3,
20819
+ totalCount: 70,
20820
+ totalAmount: 5e4,
20821
20821
  sourceBreakdown: [
20822
20822
  {
20823
20823
  primary_source: "unknown",
20824
20824
  source_type: "unknown",
20825
- count: 528,
20826
- amount: 52475.61
20825
+ count: 10,
20826
+ amount: 8475.61
20827
20827
  },
20828
20828
  {
20829
20829
  primary_source: "direct",
20830
20830
  source_type: "direct",
20831
- count: 86,
20831
+ count: 15,
20832
20832
  amount: 13014.7
20833
20833
  },
20834
20834
  {
20835
20835
  primary_source: "Google Ads",
20836
20836
  source_type: "paid",
20837
20837
  count: 58,
20838
- amount: 5608.6
20838
+ amount: 11968.48
20839
20839
  },
20840
20840
  {
20841
20841
  primary_source: "Google Organic Search",
@@ -20865,12 +20865,13 @@ const defaultPlatformData = {
20865
20865
  primary_source: "Facebook Ads",
20866
20866
  source_type: "paid",
20867
20867
  count: 3,
20868
- amount: 239.25
20868
+ amount: 5984.235
20869
+ // 9175.83
20869
20870
  },
20870
20871
  {
20871
20872
  primary_source: "android-app:",
20872
20873
  source_type: "referral",
20873
- count: 2,
20874
+ count: 7,
20874
20875
  amount: 185.17
20875
20876
  },
20876
20877
  {
@@ -20902,7 +20903,7 @@ const defaultPlatformData = {
20902
20903
  campaign_id: "sandbox-google-search-campaign",
20903
20904
  communication_job_id: null,
20904
20905
  status: "paid",
20905
- amount: "82.50",
20906
+ amount: "411.50",
20906
20907
  currency: "USD",
20907
20908
  created_date: "2025-04-04T01:22:50.000Z",
20908
20909
  paid_date: "2025-04-04T01:22:50.000Z",
@@ -20924,8 +20925,8 @@ const defaultPlatformData = {
20924
20925
  campaign_name: "Sandbox Google Search Campaign"
20925
20926
  }
20926
20927
  },
20927
- user_name: "Alice Wonderland",
20928
- user_email: "alice.wonderland@example.com",
20928
+ user_name: "Jessica Miller",
20929
+ user_email: "jessica.miller@gmail.com",
20929
20930
  user_external_id: "fake-user-ext-001",
20930
20931
  source_info: {
20931
20932
  referrer: "https://www.google.com/",
@@ -20953,7 +20954,7 @@ const defaultPlatformData = {
20953
20954
  campaign_id: "sandbox-meta-campaign",
20954
20955
  communication_job_id: null,
20955
20956
  status: "paid",
20956
- amount: "120.75",
20957
+ amount: "1120.75",
20957
20958
  currency: "USD",
20958
20959
  created_date: "2025-04-03T23:07:47.000Z",
20959
20960
  paid_date: "2025-04-03T23:07:47.000Z",
@@ -20975,8 +20976,8 @@ const defaultPlatformData = {
20975
20976
  campaign_name: "Sandbox Meta Campaign Beta"
20976
20977
  }
20977
20978
  },
20978
- user_name: "Bob TheBuilder",
20979
- user_email: "bob.builder@example.com",
20979
+ user_name: "Carlos Ramirez",
20980
+ user_email: "c.ramirez@outlook.com",
20980
20981
  user_external_id: "fake-user-ext-002",
20981
20982
  source_info: {
20982
20983
  referrer: "https://www.facebook.com/",
@@ -21004,7 +21005,7 @@ const defaultPlatformData = {
21004
21005
  campaign_id: "sandbox-google-search-campaign",
21005
21006
  communication_job_id: null,
21006
21007
  status: "paid",
21007
- amount: "65.00",
21008
+ amount: "365.00",
21008
21009
  currency: "USD",
21009
21010
  created_date: "2025-04-03T23:04:05.000Z",
21010
21011
  paid_date: "2025-04-03T23:04:05.000Z",
@@ -21026,8 +21027,8 @@ const defaultPlatformData = {
21026
21027
  campaign_name: "Sandbox Google Campaign Gamma"
21027
21028
  }
21028
21029
  },
21029
- user_name: "Charlie Brown",
21030
- user_email: "charlie.brown@example.com",
21030
+ user_name: "Priya Singh",
21031
+ user_email: "priya.singh@yahoo.com",
21031
21032
  user_external_id: "fake-user-ext-003",
21032
21033
  source_info: {
21033
21034
  referrer: "https://www.google.com/",
@@ -21067,8 +21068,8 @@ const defaultPlatformData = {
21067
21068
  primary_source: "Facebook Organic"
21068
21069
  }
21069
21070
  },
21070
- user_name: "Diana Prince",
21071
- user_email: "diana.prince@example.com",
21071
+ user_name: "Michael Chen",
21072
+ user_email: "michael.chen@protonmail.com",
21072
21073
  user_external_id: "fake-user-ext-004",
21073
21074
  source_info: {
21074
21075
  source_type: "social",
@@ -21086,7 +21087,7 @@ const defaultPlatformData = {
21086
21087
  campaign_id: "sandbox-google-campaign-1",
21087
21088
  communication_job_id: null,
21088
21089
  status: "paid",
21089
- amount: "41.80",
21090
+ amount: "341.10",
21090
21091
  currency: "USD",
21091
21092
  created_date: "2025-04-03T22:33:30.000Z",
21092
21093
  paid_date: "2025-04-03T22:33:30.000Z",
@@ -21102,8 +21103,8 @@ const defaultPlatformData = {
21102
21103
  source_type: "organic_search",
21103
21104
  primary_source: "Bing Organic"
21104
21105
  },
21105
- user_name: "Edward Nygma",
21106
- user_email: "edward.nygma@example.com",
21106
+ user_name: "Samantha Lee",
21107
+ user_email: "sam.lee@gmail.com",
21107
21108
  user_external_id: "fake-user-ext-005"
21108
21109
  },
21109
21110
  {
@@ -21117,7 +21118,7 @@ const defaultPlatformData = {
21117
21118
  campaign_id: null,
21118
21119
  communication_job_id: null,
21119
21120
  status: "paid",
21120
- amount: "31.20",
21121
+ amount: "1131.20",
21121
21122
  currency: "USD",
21122
21123
  created_date: "2025-04-03T20:33:29.000Z",
21123
21124
  paid_date: "2025-04-03T20:33:29.000Z",
@@ -21133,8 +21134,8 @@ const defaultPlatformData = {
21133
21134
  source_type: "direct",
21134
21135
  primary_source: "direct"
21135
21136
  },
21136
- user_name: "Fiona Glenanne",
21137
- user_email: "fiona.glenanne@example.com",
21137
+ user_name: "David Kim",
21138
+ user_email: "david.kim@icloud.com",
21138
21139
  user_external_id: "fake-user-ext-006"
21139
21140
  },
21140
21141
  {
@@ -21148,7 +21149,7 @@ const defaultPlatformData = {
21148
21149
  campaign_id: null,
21149
21150
  communication_job_id: null,
21150
21151
  status: "paid",
21151
- amount: "40.00",
21152
+ amount: "470.00",
21152
21153
  currency: "USD",
21153
21154
  created_date: "2025-04-03T20:24:33.000Z",
21154
21155
  paid_date: "2025-04-03T20:24:33.000Z",
@@ -21164,8 +21165,8 @@ const defaultPlatformData = {
21164
21165
  landing_page_url: "https://example.com/boarding/"
21165
21166
  }
21166
21167
  },
21167
- user_name: "George Jetson",
21168
- user_email: "george.jetson@example.com",
21168
+ user_name: "Mohammed Ali",
21169
+ user_email: "m.ali@hotmail.com",
21169
21170
  user_external_id: "fake-user-ext-007"
21170
21171
  },
21171
21172
  {
@@ -21179,7 +21180,7 @@ const defaultPlatformData = {
21179
21180
  campaign_id: null,
21180
21181
  communication_job_id: null,
21181
21182
  status: "paid",
21182
- amount: "37.70",
21183
+ amount: "117.70",
21183
21184
  currency: "USD",
21184
21185
  created_date: "2025-04-03T20:19:17.000Z",
21185
21186
  paid_date: "2025-04-03T20:19:17.000Z",
@@ -21201,7 +21202,7 @@ const defaultPlatformData = {
21201
21202
  campaign_id: "sandbox-meta-campaign",
21202
21203
  communication_job_id: null,
21203
21204
  status: "paid",
21204
- amount: "0.00",
21205
+ amount: "750.00",
21205
21206
  currency: "USD",
21206
21207
  created_date: "2025-04-03T20:03:38.000Z",
21207
21208
  paid_date: "2025-04-03T20:03:38.000Z",
@@ -21223,8 +21224,8 @@ const defaultPlatformData = {
21223
21224
  campaign_name: "Sandbox Meta Campaign Delta"
21224
21225
  }
21225
21226
  },
21226
- user_name: "Ivan Drago",
21227
- user_email: "ivan.drago@example.com",
21227
+ user_name: "Anna Petrova",
21228
+ user_email: "anna.petrova@mail.ru",
21228
21229
  user_external_id: "fake-user-ext-009",
21229
21230
  source_info: {
21230
21231
  referrer: "http://m.facebook.com/",
@@ -21252,7 +21253,7 @@ const defaultPlatformData = {
21252
21253
  campaign_id: "sandbox-google-campaign-1",
21253
21254
  communication_job_id: null,
21254
21255
  status: "paid",
21255
- amount: "55.00",
21256
+ amount: "755.00",
21256
21257
  currency: "USD",
21257
21258
  created_date: "2025-04-03T19:58:04.000Z",
21258
21259
  paid_date: "2025-04-03T19:58:04.000Z",
@@ -21274,8 +21275,8 @@ const defaultPlatformData = {
21274
21275
  campaign_name: "Sandbox Google Search Campaign"
21275
21276
  }
21276
21277
  },
21277
- user_name: "Jack Sparrow",
21278
- user_email: "jack.sparrow@example.com",
21278
+ user_name: "Lucas Silva",
21279
+ user_email: "lucas.silva@gmail.com",
21279
21280
  user_external_id: "fake-user-ext-010",
21280
21281
  source_info: {
21281
21282
  source_type: "organic_search",
@@ -21293,7 +21294,7 @@ const defaultPlatformData = {
21293
21294
  campaign_id: null,
21294
21295
  communication_job_id: null,
21295
21296
  status: "paid",
21296
- amount: "32.65",
21297
+ amount: "329.65",
21297
21298
  currency: "USD",
21298
21299
  created_date: "2025-04-03T19:27:56.000Z",
21299
21300
  paid_date: "2025-04-03T19:27:56.000Z",
@@ -21315,7 +21316,7 @@ const defaultPlatformData = {
21315
21316
  campaign_id: null,
21316
21317
  communication_job_id: null,
21317
21318
  status: "paid",
21318
- amount: "30.15",
21319
+ amount: "630.15",
21319
21320
  currency: "USD",
21320
21321
  created_date: "2025-04-03T19:27:27.000Z",
21321
21322
  paid_date: "2025-04-03T19:27:27.000Z",
@@ -21346,7 +21347,7 @@ const defaultPlatformData = {
21346
21347
  campaign_id: "sandbox-google-search-campaign",
21347
21348
  communication_job_id: null,
21348
21349
  status: "paid",
21349
- amount: "45.10",
21350
+ amount: "1145.10",
21350
21351
  currency: "USD",
21351
21352
  created_date: "2025-04-03T19:16:40.000Z",
21352
21353
  paid_date: "2025-04-03T19:16:40.000Z",
@@ -21397,7 +21398,7 @@ const defaultPlatformData = {
21397
21398
  campaign_id: null,
21398
21399
  communication_job_id: null,
21399
21400
  status: "paid",
21400
- amount: "0.00",
21401
+ amount: "1000.00",
21401
21402
  currency: "USD",
21402
21403
  created_date: "2025-04-03T19:14:58.000Z",
21403
21404
  paid_date: "2025-04-03T19:14:58.000Z",
@@ -21428,7 +21429,7 @@ const defaultPlatformData = {
21428
21429
  campaign_id: "sandbox-google-campaign-1",
21429
21430
  communication_job_id: null,
21430
21431
  status: "paid",
21431
- amount: "160.25",
21432
+ amount: "1160.25",
21432
21433
  currency: "USD",
21433
21434
  created_date: "2025-04-03T19:12:15.000Z",
21434
21435
  paid_date: "2025-04-03T19:12:15.000Z",
@@ -21459,7 +21460,7 @@ const defaultPlatformData = {
21459
21460
  campaign_id: "sandbox-google-search-campaign",
21460
21461
  communication_job_id: null,
21461
21462
  status: "paid",
21462
- amount: "47.99",
21463
+ amount: "347.99",
21463
21464
  currency: "USD",
21464
21465
  created_date: "2025-04-03T19:10:07.000Z",
21465
21466
  paid_date: "2025-04-03T19:10:07.000Z",
@@ -21510,7 +21511,7 @@ const defaultPlatformData = {
21510
21511
  campaign_id: null,
21511
21512
  communication_job_id: null,
21512
21513
  status: "paid",
21513
- amount: "0.00",
21514
+ amount: "783.70",
21514
21515
  currency: "USD",
21515
21516
  created_date: "2025-04-03T18:13:51.000Z",
21516
21517
  paid_date: "2025-04-03T18:13:51.000Z",
@@ -21532,7 +21533,7 @@ const defaultPlatformData = {
21532
21533
  campaign_id: null,
21533
21534
  communication_job_id: null,
21534
21535
  status: "paid",
21535
- amount: "75.50",
21536
+ amount: "1175.50",
21536
21537
  currency: "USD",
21537
21538
  created_date: "2025-04-03T18:11:47.000Z",
21538
21539
  paid_date: "2025-04-03T18:11:47.000Z",
@@ -21563,7 +21564,7 @@ const defaultPlatformData = {
21563
21564
  campaign_id: null,
21564
21565
  communication_job_id: null,
21565
21566
  status: "paid",
21566
- amount: "47.20",
21567
+ amount: "1147.20",
21567
21568
  currency: "USD",
21568
21569
  created_date: "2025-04-03T18:00:28.000Z",
21569
21570
  paid_date: "2025-04-03T18:00:28.000Z",
@@ -21604,7 +21605,7 @@ const defaultPlatformData = {
21604
21605
  campaign_id: "sandbox-google-campaign-1",
21605
21606
  communication_job_id: null,
21606
21607
  status: "paid",
21607
- amount: "0.00",
21608
+ amount: "290.99",
21608
21609
  currency: "USD",
21609
21610
  created_date: "2025-04-03T17:32:12.000Z",
21610
21611
  paid_date: "2025-04-03T17:32:12.000Z",
@@ -21635,7 +21636,7 @@ const defaultPlatformData = {
21635
21636
  campaign_id: null,
21636
21637
  communication_job_id: null,
21637
21638
  status: "paid",
21638
- amount: "88.00",
21639
+ amount: "1188.00",
21639
21640
  currency: "USD",
21640
21641
  created_date: "2025-04-03T17:30:34.000Z",
21641
21642
  paid_date: "2025-04-03T17:30:34.000Z",
@@ -21711,11 +21712,9 @@ const defaultPlatformData = {
21711
21712
  }
21712
21713
  ],
21713
21714
  pagination: {
21714
- // These will be dynamically set by the handler based on the actual data length and limit
21715
21715
  hasNextPage: false,
21716
21716
  cursor: null,
21717
- total: 25
21718
- // This will be the total of the sample data provided
21717
+ total: 55
21719
21718
  }
21720
21719
  },
21721
21720
  campaigns: [
@@ -22805,6 +22804,13 @@ const handlers = [
22805
22804
  message: "Success (Sandbox)",
22806
22805
  data: null
22807
22806
  });
22807
+ }),
22808
+ http.post(`${HOSTNAME}/api/slack-notifications`, async () => {
22809
+ return HttpResponse.json({
22810
+ success: true,
22811
+ message: "Success (Sandbox)",
22812
+ data: null
22813
+ });
22808
22814
  })
22809
22815
  ];
22810
22816
  const worker = setupWorker(...handlers);
package/dist/index.d.ts CHANGED
@@ -93,7 +93,9 @@ declare type DynamicMergeField = ReachMergeFieldBase & {
93
93
  url: string;
94
94
  };
95
95
 
96
- export declare const Engage: () => JSX_2.Element;
96
+ export declare const Engage: ({ sandbox }: {
97
+ sandbox?: boolean;
98
+ }) => JSX_2.Element;
97
99
 
98
100
  declare interface EngageTypedOverrides {
99
101
  user?: string;
@@ -127,9 +129,18 @@ declare interface LanguageConfig {
127
129
  en?: EngageTypedOverrides;
128
130
  es?: EngageTypedOverrides;
129
131
  };
132
+ measure?: {
133
+ en?: MeasureTypedOverrides;
134
+ es?: MeasureTypedOverrides;
135
+ };
130
136
  };
131
137
  }
132
138
 
139
+ declare interface MeasureTypedOverrides {
140
+ transaction_table_id_header?: string;
141
+ transaction_table_created_header?: string;
142
+ }
143
+
133
144
  declare interface _PrivateProps {
134
145
  clientEntryPoint?: ReachClientEnum;
135
146
  }
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
- import { Y, _, a0, a1, Z, a2, a3 } from "./chunks/index.js";
1
+ import { A, C, b, E, a, S, V } from "./chunks/index.js";
2
2
  import "react";
3
3
  export {
4
- Y as AutomationTriggerType,
5
- _ as CreateAutomationDialog,
6
- a0 as CreateAutomationModal,
7
- a1 as Engage,
8
- Z as ReachProvider,
9
- a2 as SegmentBuilderDialog,
10
- a3 as ViewAutomationModal
4
+ A as AutomationTriggerType,
5
+ C as CreateAutomationDialog,
6
+ b as CreateAutomationModal,
7
+ E as Engage,
8
+ a as ReachProvider,
9
+ S as SegmentBuilderDialog,
10
+ V as ViewAutomationModal
11
11
  };