@embedreach/components 0.1.46 → 0.1.47
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 +91 -74
- package/dist/index.d.ts +1 -1
- package/dist/index.umd.js +111 -111
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -5109,8 +5109,8 @@ function getMutationStatusColor({
|
|
|
5109
5109
|
}) {
|
|
5110
5110
|
return isPaused ? "purple" : status === "error" ? "red" : status === "pending" ? "yellow" : status === "success" ? "green" : "gray";
|
|
5111
5111
|
}
|
|
5112
|
-
function getQueryStatusColorByLabel(
|
|
5113
|
-
return
|
|
5112
|
+
function getQueryStatusColorByLabel(label2) {
|
|
5113
|
+
return label2 === "fresh" ? "green" : label2 === "stale" ? "yellow" : label2 === "paused" ? "purple" : label2 === "inactive" ? "gray" : "blue";
|
|
5114
5114
|
}
|
|
5115
5115
|
var displayValue = (value, beautify = false) => {
|
|
5116
5116
|
const {
|
|
@@ -12538,7 +12538,7 @@ var [ToastProviderProvider, useToastProviderContext] = createToastContext(PROVID
|
|
|
12538
12538
|
var ToastProvider$1 = (props) => {
|
|
12539
12539
|
const {
|
|
12540
12540
|
__scopeToast,
|
|
12541
|
-
label = "Notification",
|
|
12541
|
+
label: label2 = "Notification",
|
|
12542
12542
|
duration = 5e3,
|
|
12543
12543
|
swipeDirection = "right",
|
|
12544
12544
|
swipeThreshold = 50,
|
|
@@ -12548,7 +12548,7 @@ var ToastProvider$1 = (props) => {
|
|
|
12548
12548
|
const [toastCount, setToastCount] = React.useState(0);
|
|
12549
12549
|
const isFocusedToastEscapeKeyDownRef = React.useRef(false);
|
|
12550
12550
|
const isClosePausedRef = React.useRef(false);
|
|
12551
|
-
if (!
|
|
12551
|
+
if (!label2.trim()) {
|
|
12552
12552
|
console.error(
|
|
12553
12553
|
`Invalid prop \`label\` supplied to \`${PROVIDER_NAME$1}\`. Expected non-empty \`string\`.`
|
|
12554
12554
|
);
|
|
@@ -12557,7 +12557,7 @@ var ToastProvider$1 = (props) => {
|
|
|
12557
12557
|
ToastProviderProvider,
|
|
12558
12558
|
{
|
|
12559
12559
|
scope: __scopeToast,
|
|
12560
|
-
label,
|
|
12560
|
+
label: label2,
|
|
12561
12561
|
duration,
|
|
12562
12562
|
swipeDirection,
|
|
12563
12563
|
swipeThreshold,
|
|
@@ -12582,7 +12582,7 @@ var ToastViewport$1 = React.forwardRef(
|
|
|
12582
12582
|
const {
|
|
12583
12583
|
__scopeToast,
|
|
12584
12584
|
hotkey = VIEWPORT_DEFAULT_HOTKEY,
|
|
12585
|
-
label = "Notifications ({hotkey})",
|
|
12585
|
+
label: label2 = "Notifications ({hotkey})",
|
|
12586
12586
|
...viewportProps
|
|
12587
12587
|
} = props;
|
|
12588
12588
|
const context = useToastProviderContext(VIEWPORT_NAME$1, __scopeToast);
|
|
@@ -12689,7 +12689,7 @@ var ToastViewport$1 = React.forwardRef(
|
|
|
12689
12689
|
{
|
|
12690
12690
|
ref: wrapperRef,
|
|
12691
12691
|
role: "region",
|
|
12692
|
-
"aria-label":
|
|
12692
|
+
"aria-label": label2.replace("{hotkey}", hotkeyLabel),
|
|
12693
12693
|
tabIndex: -1,
|
|
12694
12694
|
style: { pointerEvents: hasToasts ? void 0 : "none" },
|
|
12695
12695
|
children: [
|
|
@@ -14033,11 +14033,11 @@ const imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
|
|
|
14033
14033
|
const isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
|
|
14034
14034
|
const isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
|
|
14035
14035
|
const isAny = () => true;
|
|
14036
|
-
const getIsArbitraryValue = (value,
|
|
14036
|
+
const getIsArbitraryValue = (value, label2, testValue) => {
|
|
14037
14037
|
const result = arbitraryValueRegex.exec(value);
|
|
14038
14038
|
if (result) {
|
|
14039
14039
|
if (result[1]) {
|
|
14040
|
-
return typeof
|
|
14040
|
+
return typeof label2 === "string" ? result[1] === label2 : label2.has(result[1]);
|
|
14041
14041
|
}
|
|
14042
14042
|
return testValue(result[2]);
|
|
14043
14043
|
}
|
|
@@ -20847,8 +20847,8 @@ function resolveAxisElastic(dragElastic, minLabel, maxLabel) {
|
|
|
20847
20847
|
max: resolvePointElastic(dragElastic, maxLabel)
|
|
20848
20848
|
};
|
|
20849
20849
|
}
|
|
20850
|
-
function resolvePointElastic(dragElastic,
|
|
20851
|
-
return typeof dragElastic === "number" ? dragElastic : dragElastic[
|
|
20850
|
+
function resolvePointElastic(dragElastic, label2) {
|
|
20851
|
+
return typeof dragElastic === "number" ? dragElastic : dragElastic[label2] || 0;
|
|
20852
20852
|
}
|
|
20853
20853
|
const createAxisDelta = () => ({
|
|
20854
20854
|
translate: 0,
|
|
@@ -23752,6 +23752,7 @@ const BUSINESS_AUTOMATION_PATH = "/automations";
|
|
|
23752
23752
|
const CHANNEL_SENDER_PATH = "/channel/senders";
|
|
23753
23753
|
const CHANNEL_ACCOUNT_PATH = "/channel/accounts";
|
|
23754
23754
|
const COMMUNICATION_GROUP_PATH = "/communication-groups";
|
|
23755
|
+
const STRIPO_PATH = "/stripo";
|
|
23755
23756
|
const createAutomation = async (params) => {
|
|
23756
23757
|
const response = await baseRequest(
|
|
23757
23758
|
BUSINESS_AUTOMATION_PATH,
|
|
@@ -24021,7 +24022,7 @@ const sizeDefault$1 = "reach-styles-module__sizeDefault___8kU5A";
|
|
|
24021
24022
|
const sizeSm$1 = "reach-styles-module__sizeSm___zPIEh";
|
|
24022
24023
|
const sizeLg = "reach-styles-module__sizeLg___D2G8z";
|
|
24023
24024
|
const sizeIcon = "reach-styles-module__sizeIcon___5XkYW";
|
|
24024
|
-
const styles$
|
|
24025
|
+
const styles$7 = {
|
|
24025
24026
|
base: base$2,
|
|
24026
24027
|
"default": "reach-styles-module__default___ny1h7",
|
|
24027
24028
|
destructive: destructive$2,
|
|
@@ -24034,21 +24035,21 @@ const styles$6 = {
|
|
|
24034
24035
|
sizeLg,
|
|
24035
24036
|
sizeIcon
|
|
24036
24037
|
};
|
|
24037
|
-
const buttonVariants = cva([styles$
|
|
24038
|
+
const buttonVariants = cva([styles$7.base], {
|
|
24038
24039
|
variants: {
|
|
24039
24040
|
variant: {
|
|
24040
|
-
default: styles$
|
|
24041
|
-
destructive: styles$
|
|
24042
|
-
outline: styles$
|
|
24043
|
-
secondary: styles$
|
|
24044
|
-
ghost: styles$
|
|
24045
|
-
link: styles$
|
|
24041
|
+
default: styles$7.default,
|
|
24042
|
+
destructive: styles$7.destructive,
|
|
24043
|
+
outline: styles$7.outline,
|
|
24044
|
+
secondary: styles$7.secondary,
|
|
24045
|
+
ghost: styles$7.ghost,
|
|
24046
|
+
link: styles$7.link
|
|
24046
24047
|
},
|
|
24047
24048
|
size: {
|
|
24048
|
-
default: styles$
|
|
24049
|
-
sm: styles$
|
|
24050
|
-
lg: styles$
|
|
24051
|
-
icon: styles$
|
|
24049
|
+
default: styles$7.sizeDefault,
|
|
24050
|
+
sm: styles$7.sizeSm,
|
|
24051
|
+
lg: styles$7.sizeLg,
|
|
24052
|
+
icon: styles$7.sizeIcon
|
|
24052
24053
|
}
|
|
24053
24054
|
},
|
|
24054
24055
|
defaultVariants: {
|
|
@@ -24137,7 +24138,7 @@ const BigSelector = ({ onClick, title: title2, subtitle, icon, selected, disable
|
|
|
24137
24138
|
}
|
|
24138
24139
|
);
|
|
24139
24140
|
};
|
|
24140
|
-
const styles$
|
|
24141
|
+
const styles$6 = {
|
|
24141
24142
|
title: "text-3xl mb-8",
|
|
24142
24143
|
grid: "grid grid-cols-2 gap-6",
|
|
24143
24144
|
container: "relative p-6 rounded-lg"
|
|
@@ -24146,9 +24147,9 @@ const ChooseAutomationType = ({ onNext, iconDefinitions }) => {
|
|
|
24146
24147
|
const onClick = (type) => {
|
|
24147
24148
|
onNext(type);
|
|
24148
24149
|
};
|
|
24149
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
24150
|
-
/* @__PURE__ */ jsx("h1", { className: styles$
|
|
24151
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
24150
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$6.container, children: [
|
|
24151
|
+
/* @__PURE__ */ jsx("h1", { className: styles$6.title, children: "Choose Your Automation Type" }),
|
|
24152
|
+
/* @__PURE__ */ jsxs("div", { className: styles$6.grid, children: [
|
|
24152
24153
|
/* @__PURE__ */ jsx(
|
|
24153
24154
|
BigSelector,
|
|
24154
24155
|
{
|
|
@@ -24203,16 +24204,16 @@ function UnreachableCaseStatement(x3, enumObj) {
|
|
|
24203
24204
|
`Unreachable case statement: ${JSON.stringify(x3)}. Valid values are: ${Object.values(enumObj).join(", ")}`
|
|
24204
24205
|
);
|
|
24205
24206
|
}
|
|
24206
|
-
const styles$
|
|
24207
|
+
const styles$5 = {
|
|
24207
24208
|
iconWrapper: "mb-4 flex items-center justify-center",
|
|
24208
24209
|
cardTitle: "text-lg font-medium mb-2",
|
|
24209
24210
|
cardDescription: "text-sm text-gray-600"
|
|
24210
24211
|
};
|
|
24211
24212
|
const OneTimeBroadcast = ({ iconDefinitions }) => {
|
|
24212
24213
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
24213
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
24214
|
-
/* @__PURE__ */ jsx("h3", { className: styles$
|
|
24215
|
-
/* @__PURE__ */ jsx("p", { className: styles$
|
|
24214
|
+
/* @__PURE__ */ jsx("div", { className: styles$5.iconWrapper, children: /* @__PURE__ */ jsx(iconDefinitions.OneTimeBroadcast, {}) }),
|
|
24215
|
+
/* @__PURE__ */ jsx("h3", { className: styles$5.cardTitle, children: "One-Time Broadcast" }),
|
|
24216
|
+
/* @__PURE__ */ jsx("p", { className: styles$5.cardDescription, children: "Send a single message to your current list, like announcing a sale or newsletter." })
|
|
24216
24217
|
] });
|
|
24217
24218
|
};
|
|
24218
24219
|
const SetAutomationName = ({ selectedType, setAutomationName, automationName, iconDefinitions }) => {
|
|
@@ -24320,7 +24321,7 @@ const CreateAutomationModal = ({
|
|
|
24320
24321
|
});
|
|
24321
24322
|
};
|
|
24322
24323
|
if (isCreating || startedCreating) {
|
|
24323
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
24324
|
+
return /* @__PURE__ */ jsx("div", { className: styles$6.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Creating Automation", "Finishing up"] }) });
|
|
24324
24325
|
}
|
|
24325
24326
|
return /* @__PURE__ */ jsxs("div", { className: "relative overflow-hidden", children: [
|
|
24326
24327
|
/* @__PURE__ */ jsxs(AnimatePresence, { mode: "wait", children: [
|
|
@@ -28533,7 +28534,7 @@ const sizeSm = "reach-styles-module__sizeSm___6T2oK";
|
|
|
28533
28534
|
const iconOnly = "reach-styles-module__iconOnly___8vUSp";
|
|
28534
28535
|
const iconOnlySm = "reach-styles-module__iconOnlySm___9ZKv9";
|
|
28535
28536
|
const container = "reach-styles-module__container___6PQqs";
|
|
28536
|
-
const styles$
|
|
28537
|
+
const styles$4 = {
|
|
28537
28538
|
base: base$1,
|
|
28538
28539
|
"default": "reach-styles-module__default___zeGU1",
|
|
28539
28540
|
secondary: secondary$1,
|
|
@@ -28547,22 +28548,22 @@ const styles$3 = {
|
|
|
28547
28548
|
iconOnlySm,
|
|
28548
28549
|
container
|
|
28549
28550
|
};
|
|
28550
|
-
const badgeVariants = cva([styles$
|
|
28551
|
+
const badgeVariants = cva([styles$4.base], {
|
|
28551
28552
|
variants: {
|
|
28552
28553
|
variant: {
|
|
28553
|
-
default: styles$
|
|
28554
|
-
secondary: styles$
|
|
28555
|
-
destructive: styles$
|
|
28556
|
-
outline: styles$
|
|
28557
|
-
google: styles$
|
|
28558
|
-
date: styles$
|
|
28554
|
+
default: styles$4.default,
|
|
28555
|
+
secondary: styles$4.secondary,
|
|
28556
|
+
destructive: styles$4.destructive,
|
|
28557
|
+
outline: styles$4.outline,
|
|
28558
|
+
google: styles$4.google,
|
|
28559
|
+
date: styles$4.date
|
|
28559
28560
|
},
|
|
28560
28561
|
size: {
|
|
28561
|
-
default: styles$
|
|
28562
|
-
sm: styles$
|
|
28562
|
+
default: styles$4.sizeDefault,
|
|
28563
|
+
sm: styles$4.sizeSm
|
|
28563
28564
|
},
|
|
28564
28565
|
iconOnly: {
|
|
28565
|
-
true: styles$
|
|
28566
|
+
true: styles$4.iconOnly,
|
|
28566
28567
|
false: ""
|
|
28567
28568
|
}
|
|
28568
28569
|
},
|
|
@@ -28570,7 +28571,7 @@ const badgeVariants = cva([styles$3.base], {
|
|
|
28570
28571
|
{
|
|
28571
28572
|
iconOnly: true,
|
|
28572
28573
|
size: "sm",
|
|
28573
|
-
class: styles$
|
|
28574
|
+
class: styles$4.iconOnlySm
|
|
28574
28575
|
}
|
|
28575
28576
|
],
|
|
28576
28577
|
defaultVariants: {
|
|
@@ -28597,7 +28598,7 @@ const Badge = React.forwardRef(
|
|
|
28597
28598
|
);
|
|
28598
28599
|
Badge.displayName = "Badge";
|
|
28599
28600
|
const BadgeContainer = React.forwardRef(({ className: className2, ...props }, ref) => {
|
|
28600
|
-
return /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$
|
|
28601
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.container, className2), ...props });
|
|
28601
28602
|
});
|
|
28602
28603
|
BadgeContainer.displayName = "BadgeContainer";
|
|
28603
28604
|
var U = 1, Y$1 = 0.9, H = 0.8, J = 0.17, p = 0.1, u = 0.999, $ = 0.9999;
|
|
@@ -35037,7 +35038,7 @@ const NameAndDescription = ({ nameAndDescriptionState, setNameAndDescriptionStat
|
|
|
35037
35038
|
] })
|
|
35038
35039
|
] }) });
|
|
35039
35040
|
};
|
|
35040
|
-
const styles$
|
|
35041
|
+
const styles$3 = {
|
|
35041
35042
|
container: "relative rounded-lg"
|
|
35042
35043
|
};
|
|
35043
35044
|
const SegmentBuilder = ({
|
|
@@ -35191,17 +35192,17 @@ const SegmentBuilder = ({
|
|
|
35191
35192
|
}
|
|
35192
35193
|
};
|
|
35193
35194
|
if (isLoading) {
|
|
35194
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
35195
|
+
return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Segment data", "Finishing up"] }) });
|
|
35195
35196
|
}
|
|
35196
35197
|
if (isCreating || startedCreating) {
|
|
35197
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
35198
|
+
return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(
|
|
35198
35199
|
SpinLoader,
|
|
35199
35200
|
{
|
|
35200
35201
|
text: SEGMENT_ID && existingSegment ? ["Updating Segment", "Finishing up"] : ["Creating Segment", "Finishing up"]
|
|
35201
35202
|
}
|
|
35202
35203
|
) });
|
|
35203
35204
|
}
|
|
35204
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
35205
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$3.container, children: [
|
|
35205
35206
|
/* @__PURE__ */ jsx("div", { className: "relative w-full flex justify-end mb-4", children: /* @__PURE__ */ jsx(
|
|
35206
35207
|
Button$1,
|
|
35207
35208
|
{
|
|
@@ -35959,14 +35960,14 @@ const InfoTooltip = ({ title: title2, alertText, Icon: Icon2 = Info, onClick })
|
|
|
35959
35960
|
] }) })
|
|
35960
35961
|
] }) });
|
|
35961
35962
|
};
|
|
35962
|
-
const styles$
|
|
35963
|
+
const styles$2 = {
|
|
35963
35964
|
container: "flex flex-col items-center justify-center h-full"
|
|
35964
35965
|
};
|
|
35965
35966
|
const AutomationStatistics = ({ automationId, iconDefinitions }) => {
|
|
35966
35967
|
const [activeTab, setActiveTab] = useState("email");
|
|
35967
35968
|
const { statistics, isLoading: isStatisticsLoading } = useGetBusinessAutomationStatistics(automationId);
|
|
35968
35969
|
if (isStatisticsLoading || !statistics) {
|
|
35969
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
35970
|
+
return /* @__PURE__ */ jsx("div", { className: styles$2.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Statistics", "Finishing up"] }) });
|
|
35970
35971
|
}
|
|
35971
35972
|
const StatsGrid = () => {
|
|
35972
35973
|
const statGridMainDiv = "flex items-center bg-white rounded-lg p-4 shadow-sm border border-gray-200 transform transition-all duration-300 hover:shadow-md";
|
|
@@ -39119,7 +39120,7 @@ const AutomationRecipients = ({ automationId, iconDefinitions }) => {
|
|
|
39119
39120
|
const { recipients, isLoading, fetchError } = useGetBusinessAutomationRecipients(automationId);
|
|
39120
39121
|
const { isLoading: isStatisticsLoading } = useGetBusinessAutomationStatistics(automationId);
|
|
39121
39122
|
if (isLoading || isStatisticsLoading) {
|
|
39122
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
39123
|
+
return /* @__PURE__ */ jsx("div", { className: styles$2.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Recipients", "Finishing up"] }) });
|
|
39123
39124
|
}
|
|
39124
39125
|
if (fetchError) {
|
|
39125
39126
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -40496,18 +40497,38 @@ const DropdownMenuSeparator = React.forwardRef(({ className: className2, ...prop
|
|
|
40496
40497
|
}
|
|
40497
40498
|
));
|
|
40498
40499
|
DropdownMenuSeparator.displayName = Separator2.displayName;
|
|
40499
|
-
const
|
|
40500
|
+
const stepIndicatorContainer = "reach-styles-module__stepIndicatorContainer___FoKXB";
|
|
40501
|
+
const iconContainer = "reach-styles-module__iconContainer___Ki-1n";
|
|
40502
|
+
const checkIcon = "reach-styles-module__checkIcon___-krUS";
|
|
40503
|
+
const minusIcon = "reach-styles-module__minusIcon___r5cKs";
|
|
40504
|
+
const minusIconActive = "reach-styles-module__minusIconActive___-4JHM";
|
|
40505
|
+
const minusIconInactive = "reach-styles-module__minusIconInactive___JtvVB";
|
|
40506
|
+
const label = "reach-styles-module__label___tiCMA";
|
|
40507
|
+
const labelActive = "reach-styles-module__labelActive___EXydD";
|
|
40508
|
+
const labelInactive = "reach-styles-module__labelInactive___g-J3r";
|
|
40509
|
+
const styles$1 = {
|
|
40510
|
+
stepIndicatorContainer,
|
|
40511
|
+
iconContainer,
|
|
40512
|
+
checkIcon,
|
|
40513
|
+
minusIcon,
|
|
40514
|
+
minusIconActive,
|
|
40515
|
+
minusIconInactive,
|
|
40500
40516
|
label,
|
|
40517
|
+
labelActive,
|
|
40518
|
+
labelInactive
|
|
40519
|
+
};
|
|
40520
|
+
const StepIndicator = ({
|
|
40521
|
+
label: label2,
|
|
40501
40522
|
isCompleted,
|
|
40502
40523
|
isActive
|
|
40503
40524
|
}) => {
|
|
40504
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
40505
|
-
isCompleted ? /* @__PURE__ */ jsx("div", { className:
|
|
40525
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$1.stepIndicatorContainer, children: [
|
|
40526
|
+
isCompleted ? /* @__PURE__ */ jsx("div", { className: styles$1.iconContainer, children: /* @__PURE__ */ jsx(Check, { className: styles$1.checkIcon }) }) : /* @__PURE__ */ jsx("div", { className: styles$1.iconContainer, children: /* @__PURE__ */ jsx(
|
|
40506
40527
|
Minus,
|
|
40507
40528
|
{
|
|
40508
40529
|
className: cn$1(
|
|
40509
|
-
|
|
40510
|
-
isActive ?
|
|
40530
|
+
styles$1.minusIcon,
|
|
40531
|
+
isActive ? styles$1.minusIconActive : styles$1.minusIconInactive
|
|
40511
40532
|
)
|
|
40512
40533
|
}
|
|
40513
40534
|
) }),
|
|
@@ -40515,10 +40536,10 @@ const StepIndicator = ({
|
|
|
40515
40536
|
"span",
|
|
40516
40537
|
{
|
|
40517
40538
|
className: cn$1(
|
|
40518
|
-
|
|
40519
|
-
isActive ?
|
|
40539
|
+
styles$1.label,
|
|
40540
|
+
isActive ? styles$1.labelActive : styles$1.labelInactive
|
|
40520
40541
|
),
|
|
40521
|
-
children:
|
|
40542
|
+
children: label2
|
|
40522
40543
|
}
|
|
40523
40544
|
)
|
|
40524
40545
|
] });
|
|
@@ -40775,16 +40796,18 @@ const stripoKeys = {
|
|
|
40775
40796
|
demoTemplate: () => [...stripoKeys.templates(), "demo"]
|
|
40776
40797
|
};
|
|
40777
40798
|
const getStripoToken = async () => {
|
|
40778
|
-
const response = await baseRequest(
|
|
40799
|
+
const response = await baseRequest(`${STRIPO_PATH}/token`);
|
|
40779
40800
|
return response.data;
|
|
40780
40801
|
};
|
|
40781
40802
|
const getEditorData = async () => {
|
|
40782
|
-
const response = await baseRequest(
|
|
40803
|
+
const response = await baseRequest(
|
|
40804
|
+
`${STRIPO_PATH}/editor-data`
|
|
40805
|
+
);
|
|
40783
40806
|
return response.data;
|
|
40784
40807
|
};
|
|
40785
40808
|
const getTemplate = async (automationId) => {
|
|
40786
40809
|
const response = await baseRequest(
|
|
40787
|
-
|
|
40810
|
+
`${STRIPO_PATH}/template/${automationId}`
|
|
40788
40811
|
);
|
|
40789
40812
|
return response.data;
|
|
40790
40813
|
};
|
|
@@ -41123,12 +41146,6 @@ const EmailPreview = ({ automation }) => {
|
|
|
41123
41146
|
getCommunicationGroup2(communicationGroupId, {
|
|
41124
41147
|
onSuccess: (data) => {
|
|
41125
41148
|
setDataFromFetch(data);
|
|
41126
|
-
},
|
|
41127
|
-
onError: () => {
|
|
41128
|
-
console.log("error");
|
|
41129
|
-
},
|
|
41130
|
-
onSettled: () => {
|
|
41131
|
-
console.log("onSettled");
|
|
41132
41149
|
}
|
|
41133
41150
|
});
|
|
41134
41151
|
}
|
|
@@ -41594,7 +41611,7 @@ const SMSPreview = ({ automation, iconDefinitions }) => {
|
|
|
41594
41611
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Loading..."] }) });
|
|
41595
41612
|
}
|
|
41596
41613
|
const smsChannelSenders = channelSenders.channel_senders?.filter(
|
|
41597
|
-
(sender) => sender.channel_sender_metadata.from
|
|
41614
|
+
(sender) => sender.channel_sender_metadata.from || sender.channel_sender_metadata.messageServiceSid
|
|
41598
41615
|
);
|
|
41599
41616
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
41600
41617
|
/* @__PURE__ */ jsx(Dialog, { open: showSmsEditor, onOpenChange: setShowSmsEditor, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
@@ -45234,11 +45251,11 @@ function WeekNumber(props) {
|
|
|
45234
45251
|
if (!onWeekNumberClick) {
|
|
45235
45252
|
return jsx("span", { className: classNames.weeknumber, style: styles2.weeknumber, children: content2 });
|
|
45236
45253
|
}
|
|
45237
|
-
var
|
|
45254
|
+
var label2 = labelWeekNumber2(Number(weekNumber), { locale: locale2 });
|
|
45238
45255
|
var handleClick = function(e4) {
|
|
45239
45256
|
onWeekNumberClick(weekNumber, dates2, e4);
|
|
45240
45257
|
};
|
|
45241
|
-
return jsx(Button, { name: "week-number", "aria-label":
|
|
45258
|
+
return jsx(Button, { name: "week-number", "aria-label": label2, className: classNames.weeknumber, style: styles2.weeknumber, onClick: handleClick, children: content2 });
|
|
45242
45259
|
}
|
|
45243
45260
|
function Row(props) {
|
|
45244
45261
|
var _a, _b;
|
|
@@ -46909,7 +46926,7 @@ const ViewAutomationModalContent = ({
|
|
|
46909
46926
|
return /* @__PURE__ */ jsx("div", { children: "Invalid automation ID" });
|
|
46910
46927
|
}
|
|
46911
46928
|
if (!automation && (isFetching || isLoading)) {
|
|
46912
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
46929
|
+
return /* @__PURE__ */ jsx("div", { className: styles$6.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Automation data", "Finishing up"] }) });
|
|
46913
46930
|
}
|
|
46914
46931
|
if (fetchError) {
|
|
46915
46932
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -46920,7 +46937,7 @@ const ViewAutomationModalContent = ({
|
|
|
46920
46937
|
if (!automation) {
|
|
46921
46938
|
return /* @__PURE__ */ jsx("div", { children: "No automation found" });
|
|
46922
46939
|
}
|
|
46923
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
46940
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$6.container, children: [
|
|
46924
46941
|
/* @__PURE__ */ jsx(
|
|
46925
46942
|
ViewAutomationHeader,
|
|
46926
46943
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ declare type ReauthCallback = () => Promise<string> | void;
|
|
|
101
101
|
declare interface SDKCallbacks {
|
|
102
102
|
/** Called when reauthentication is required */
|
|
103
103
|
onReauthRequested: ReauthCallback;
|
|
104
|
-
/** Called when tenant information is requested
|
|
104
|
+
/** Called when tenant information is requested */
|
|
105
105
|
onTenantInformationRequested?: () => void;
|
|
106
106
|
}
|
|
107
107
|
|