@embedreach/components 0.3.47 → 0.3.49
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/CallTracking.js +123 -0
- package/dist/chunks/CampaignPerformance.js +71 -0
- package/dist/chunks/ChannelsTab.js +253 -0
- package/dist/chunks/ClickVsTransactionAttribution.js +47 -0
- package/dist/chunks/ConnectGoogleAds.js +46 -0
- package/dist/chunks/ConnectMeta.js +98 -0
- package/dist/chunks/CostPerLead.js +82 -0
- package/dist/chunks/DataNotShowing.js +107 -0
- package/dist/chunks/HowRevenueAttributionWorks.js +156 -0
- package/dist/chunks/LeadsVsTransactions.js +128 -0
- package/dist/chunks/MeasuredVsTotal.js +47 -0
- package/dist/chunks/OverviewDashboard.js +67 -0
- package/dist/chunks/RevenueVsCustomerAttribution.js +102 -0
- package/dist/chunks/TrackingSnippet.js +137 -0
- package/dist/chunks/TrafficFunnel.js +88 -0
- package/dist/chunks/UnknownConversions.js +55 -0
- package/dist/chunks/WhatIsROAS.js +61 -0
- package/dist/chunks/circle-help.js +15 -0
- package/dist/chunks/dollar-sign.js +14 -0
- package/dist/chunks/index.js +68934 -67240
- package/dist/chunks/index2.js +42 -0
- package/dist/chunks/sandbox-loading-screen.js +9 -15
- package/dist/chunks/shopping-cart.js +21 -0
- package/dist/index.d.ts +9 -15
- package/dist/index.es.js +7 -7
- package/dist/index.umd.js +23 -23
- package/dist/styles.css +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { i as Card, j as CardHeader, k as CardTitle, l as CardDescription, m as CardContent } from "./index.js";
|
|
3
|
+
const intro = "reach-InfoCard-module__intro___yH9i6";
|
|
4
|
+
const itemList = "reach-InfoCard-module__itemList___ySYR4";
|
|
5
|
+
const item = "reach-InfoCard-module__item___bXrCD";
|
|
6
|
+
const dot = "reach-InfoCard-module__dot___tJMBM";
|
|
7
|
+
const styles = {
|
|
8
|
+
intro,
|
|
9
|
+
itemList,
|
|
10
|
+
item,
|
|
11
|
+
dot
|
|
12
|
+
};
|
|
13
|
+
const InfoCard = ({
|
|
14
|
+
title,
|
|
15
|
+
description,
|
|
16
|
+
icon: Icon,
|
|
17
|
+
items,
|
|
18
|
+
intro: intro2,
|
|
19
|
+
children
|
|
20
|
+
}) => /* @__PURE__ */ jsxs(Card, { children: [
|
|
21
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
22
|
+
/* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
|
|
23
|
+
/* @__PURE__ */ jsx(Icon, { className: "h-5 w-5 text-primary" }),
|
|
24
|
+
title
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ jsx(CardDescription, { children: description })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
29
|
+
intro2 && /* @__PURE__ */ jsx("p", { className: styles.intro, children: intro2 }),
|
|
30
|
+
items && /* @__PURE__ */ jsx("ul", { className: styles.itemList, children: items.map((item2, index) => /* @__PURE__ */ jsxs("li", { className: styles.item, children: [
|
|
31
|
+
/* @__PURE__ */ jsx("span", { className: styles.dot, "data-color": item2.dotColor }),
|
|
32
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
33
|
+
item2.title && /* @__PURE__ */ jsx("h5", { children: item2.title }),
|
|
34
|
+
/* @__PURE__ */ jsx("p", { children: item2.description })
|
|
35
|
+
] })
|
|
36
|
+
] }, index)) }),
|
|
37
|
+
children
|
|
38
|
+
] })
|
|
39
|
+
] });
|
|
40
|
+
export {
|
|
41
|
+
InfoCard as I
|
|
42
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { S as SegmentDefinitionTypeEnum, C as ChannelAccountTypeEnum, A as AutomationStatus, a as AutomationTriggerType,
|
|
3
|
+
import { S as SegmentDefinitionTypeEnum, C as ChannelAccountTypeEnum, A as AutomationStatus, a as AutomationTriggerType, b as ActionType, B as BusinessAutomationTypeEnum, z as z$2, R as ReachClientEnum, H as H3 } from "./index.js";
|
|
4
4
|
var POSITIONALS_EXP$1 = /(%?)(%([sdijo]))/g;
|
|
5
5
|
function serializePositional$1(positional, flag) {
|
|
6
6
|
switch (flag) {
|
|
@@ -23076,7 +23076,7 @@ const native = {
|
|
|
23076
23076
|
randomUUID
|
|
23077
23077
|
};
|
|
23078
23078
|
function v4(options, buf, offset) {
|
|
23079
|
-
if (native.randomUUID &&
|
|
23079
|
+
if (native.randomUUID && true && !options) {
|
|
23080
23080
|
return native.randomUUID();
|
|
23081
23081
|
}
|
|
23082
23082
|
options = options || {};
|
|
@@ -25589,7 +25589,6 @@ const reputationHandlers = [
|
|
|
25589
25589
|
const endDate = url.searchParams.get("end_date");
|
|
25590
25590
|
const locationIds = url.searchParams.get("location_ids");
|
|
25591
25591
|
const queryParams = {
|
|
25592
|
-
platform: "google_business_profile",
|
|
25593
25592
|
start_date: startDate || void 0,
|
|
25594
25593
|
end_date: endDate || void 0,
|
|
25595
25594
|
location_ids: locationIds ? locationIds.split(",").filter(Boolean) : void 0
|
|
@@ -25669,7 +25668,7 @@ const reputationHandlers = [
|
|
|
25669
25668
|
return HttpResponse.json({
|
|
25670
25669
|
success: true,
|
|
25671
25670
|
message: "Success (Sandbox)",
|
|
25672
|
-
data: timeSeriesData
|
|
25671
|
+
data: timeSeriesData.data
|
|
25673
25672
|
});
|
|
25674
25673
|
}),
|
|
25675
25674
|
// Reputation Audit Logs
|
|
@@ -26705,11 +26704,11 @@ async function startSandboxMSW(debug = false, isIframe = false, features = ["all
|
|
|
26705
26704
|
throw error2;
|
|
26706
26705
|
}
|
|
26707
26706
|
}
|
|
26708
|
-
const useMswSandbox = ({
|
|
26707
|
+
const useMswSandbox = ({ demo, debug, clientEntryPoint }) => {
|
|
26709
26708
|
const [mswInitialized, setMswInitialized] = useState(false);
|
|
26710
26709
|
const [error2, setError] = useState(null);
|
|
26711
26710
|
useEffect(() => {
|
|
26712
|
-
if (
|
|
26711
|
+
if (demo && !mswInitialized) {
|
|
26713
26712
|
if (typeof window === "undefined") {
|
|
26714
26713
|
setError(new Error("MSW can only be initialized in a browser environment"));
|
|
26715
26714
|
return;
|
|
@@ -26726,7 +26725,7 @@ const useMswSandbox = ({ sandbox, debug, clientEntryPoint }) => {
|
|
|
26726
26725
|
console.error("[MSW Sandbox] Failed to start MSW:", error22);
|
|
26727
26726
|
});
|
|
26728
26727
|
}
|
|
26729
|
-
}, [
|
|
26728
|
+
}, [demo, mswInitialized, debug, clientEntryPoint]);
|
|
26730
26729
|
useEffect(() => {
|
|
26731
26730
|
return () => {
|
|
26732
26731
|
if (mswInitialized) {
|
|
@@ -26737,7 +26736,7 @@ const useMswSandbox = ({ sandbox, debug, clientEntryPoint }) => {
|
|
|
26737
26736
|
}, [mswInitialized, debug]);
|
|
26738
26737
|
return {
|
|
26739
26738
|
mswInitialized,
|
|
26740
|
-
isSandboxLoading:
|
|
26739
|
+
isSandboxLoading: demo && !mswInitialized,
|
|
26741
26740
|
error: error2
|
|
26742
26741
|
};
|
|
26743
26742
|
};
|
|
@@ -26858,14 +26857,9 @@ const SpinLoader = ({
|
|
|
26858
26857
|
` })
|
|
26859
26858
|
] }) });
|
|
26860
26859
|
};
|
|
26861
|
-
const MSWSandboxLoader = ({
|
|
26862
|
-
sandbox,
|
|
26863
|
-
debug,
|
|
26864
|
-
onReady,
|
|
26865
|
-
clientEntryPoint
|
|
26866
|
-
}) => {
|
|
26860
|
+
const MSWSandboxLoader = ({ demo, debug, onReady, clientEntryPoint }) => {
|
|
26867
26861
|
const { isSandboxLoading, error: error2, mswInitialized } = useMswSandbox({
|
|
26868
|
-
|
|
26862
|
+
demo,
|
|
26869
26863
|
debug,
|
|
26870
26864
|
clientEntryPoint
|
|
26871
26865
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { f as createLucideIcon } from "./index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.464.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const ShoppingCart = createLucideIcon("ShoppingCart", [
|
|
9
|
+
["circle", { cx: "8", cy: "21", r: "1", key: "jimo8o" }],
|
|
10
|
+
["circle", { cx: "19", cy: "21", r: "1", key: "13723u" }],
|
|
11
|
+
[
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
d: "M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",
|
|
15
|
+
key: "9zh506"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
]);
|
|
19
|
+
export {
|
|
20
|
+
ShoppingCart as S
|
|
21
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare enum AutomationTriggerType {
|
|
|
13
13
|
DATE_BASED = "date_based"
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export declare function CreateAutomationDialog({ open, setOpen, onClose, automationType, getExtraMergeFields, replyToSettingsText, replyToSettingsLink, fromNameSettingsText, fromNameSettingsLink,
|
|
16
|
+
export declare function CreateAutomationDialog({ open, setOpen, onClose, automationType, getExtraMergeFields, replyToSettingsText, replyToSettingsLink, fromNameSettingsText, fromNameSettingsLink, }: CreateAutomationDialogProps): JSX_2.Element;
|
|
17
17
|
|
|
18
18
|
declare interface CreateAutomationDialogProps extends CreateAutomationModalProps {
|
|
19
19
|
/**
|
|
@@ -72,10 +72,6 @@ declare interface CreateAutomationModalProps {
|
|
|
72
72
|
*/
|
|
73
73
|
fromNameSettingsText?: string;
|
|
74
74
|
fromNameSettingsLink?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Optional boolean to hide SMS features
|
|
77
|
-
*/
|
|
78
|
-
hideSms?: boolean;
|
|
79
75
|
}
|
|
80
76
|
|
|
81
77
|
/**
|
|
@@ -187,6 +183,9 @@ export declare interface ReachConfig {
|
|
|
187
183
|
/** Debug configuration */
|
|
188
184
|
debug?: boolean;
|
|
189
185
|
language?: LanguageConfig;
|
|
186
|
+
/** Enable demo mode (MSW mock data, no real backend required) */
|
|
187
|
+
demo?: boolean;
|
|
188
|
+
/** @deprecated Use `demo` instead. Kept for backwards compatibility. */
|
|
190
189
|
sandbox?: boolean;
|
|
191
190
|
children?: default_2.ReactNode;
|
|
192
191
|
/**
|
|
@@ -226,7 +225,7 @@ export declare enum ReachMergeFieldTypeEnum {
|
|
|
226
225
|
DYNAMIC = "dynamic"
|
|
227
226
|
}
|
|
228
227
|
|
|
229
|
-
export declare const ReachProvider: ({ authToken, language, children, theme, debug, callbacks, feature, sandbox, clientEntryPoint, hideFeature, enableFeature, }: ReachConfig & _PrivateProps) => JSX_2.Element;
|
|
228
|
+
export declare const ReachProvider: ({ authToken, language, children, theme, debug, callbacks, feature, demo, sandbox, clientEntryPoint, hideFeature, enableFeature, }: ReachConfig & _PrivateProps) => JSX_2.Element;
|
|
230
229
|
|
|
231
230
|
/**
|
|
232
231
|
* Callback function for requesting new token from parent
|
|
@@ -401,12 +400,12 @@ declare const SMSSetupBusinessFormSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
401
400
|
category: z.ZodOptional<z.ZodNativeEnum<SmsUseCaseCategory>>;
|
|
402
401
|
useCaseDetails: z.ZodOptional<z.ZodString>;
|
|
403
402
|
}, "strip", z.ZodTypeAny, {
|
|
404
|
-
monthlyVolume?: number | undefined;
|
|
405
403
|
category?: SmsUseCaseCategory | undefined;
|
|
404
|
+
monthlyVolume?: number | undefined;
|
|
406
405
|
useCaseDetails?: string | undefined;
|
|
407
406
|
}, {
|
|
408
|
-
monthlyVolume?: number | undefined;
|
|
409
407
|
category?: SmsUseCaseCategory | undefined;
|
|
408
|
+
monthlyVolume?: number | undefined;
|
|
410
409
|
useCaseDetails?: string | undefined;
|
|
411
410
|
}>;
|
|
412
411
|
messageSamples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -437,8 +436,8 @@ declare const SMSSetupBusinessFormSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
437
436
|
};
|
|
438
437
|
tollFreeNumber: string;
|
|
439
438
|
messagingUseCase: {
|
|
440
|
-
monthlyVolume?: number | undefined;
|
|
441
439
|
category?: SmsUseCaseCategory | undefined;
|
|
440
|
+
monthlyVolume?: number | undefined;
|
|
442
441
|
useCaseDetails?: string | undefined;
|
|
443
442
|
};
|
|
444
443
|
messageSamples?: string[] | undefined;
|
|
@@ -469,8 +468,8 @@ declare const SMSSetupBusinessFormSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
469
468
|
};
|
|
470
469
|
tollFreeNumber: string;
|
|
471
470
|
messagingUseCase: {
|
|
472
|
-
monthlyVolume?: number | undefined;
|
|
473
471
|
category?: SmsUseCaseCategory | undefined;
|
|
472
|
+
monthlyVolume?: number | undefined;
|
|
474
473
|
useCaseDetails?: string | undefined;
|
|
475
474
|
};
|
|
476
475
|
messageSamples?: string[] | undefined;
|
|
@@ -537,11 +536,6 @@ export declare type ViewAutomationProps = {
|
|
|
537
536
|
estimatedSmsRecipients: number;
|
|
538
537
|
scheduleSendAt: string | null;
|
|
539
538
|
}) => Promise<true | string>;
|
|
540
|
-
/**
|
|
541
|
-
* Optional boolean to hide features
|
|
542
|
-
*/
|
|
543
|
-
hideSms?: boolean;
|
|
544
|
-
hideSales?: boolean;
|
|
545
539
|
/**
|
|
546
540
|
* Optional text and hyperlink to display for
|
|
547
541
|
* replyTo settings
|
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { a,
|
|
3
|
+
import { a, p, q, r, o, n, s, V } from "./chunks/index.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AutomationTriggerType,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
p as CreateAutomationDialog,
|
|
7
|
+
q as CreateAutomationModal,
|
|
8
|
+
r as Engage,
|
|
9
|
+
o as ReachProvider,
|
|
10
|
+
n as SMSOnboarding,
|
|
11
|
+
s as SegmentBuilderDialog,
|
|
12
12
|
V as ViewAutomationModal
|
|
13
13
|
};
|