callix-dialer-widget 1.4.4 → 1.4.6

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.
@@ -55813,7 +55813,6 @@ function DraggableClientInfoModal({
55813
55813
  {
55814
55814
  label: field.name,
55815
55815
  value: getFieldValue(field.code),
55816
- type: field.type,
55817
55816
  fullWidth: field.width === "100%"
55818
55817
  },
55819
55818
  `${rowIndex}-${fieldIndex}-${field.code}`
@@ -55839,7 +55838,6 @@ function DraggableClientInfoModal({
55839
55838
  function Field({
55840
55839
  label,
55841
55840
  value,
55842
- type,
55843
55841
  fullWidth
55844
55842
  }) {
55845
55843
  const widthClass = fullWidth ? "col-span-full" : "";
@@ -56101,9 +56099,7 @@ function DraggableQualificationModal({
56101
56099
  }
56102
56100
  function InlineDialer({ variant = "default", isAuthenticated, ...props }) {
56103
56101
  const isMiniMode = variant === "min";
56104
- if (!isAuthenticated || !isMiniMode) {
56105
- return /* @__PURE__ */ jsxRuntimeExports.jsx(FloatingDialer, { variant, isAuthenticated, ...props });
56106
- }
56102
+ const shouldUseMiniMode = isAuthenticated && isMiniMode;
56107
56103
  const { skipManualQualification } = useDialerConfig();
56108
56104
  const operatorState = clientSdkReactExports.useCallOperatorState();
56109
56105
  const currentCall = clientSdkReactExports.useCallOperatorCurrentCall();
@@ -56125,7 +56121,7 @@ function InlineDialer({ variant = "default", isAuthenticated, ...props }) {
56125
56121
  const isIncomingCall = (currentCall == null ? void 0 : currentCall.direction) === "incoming";
56126
56122
  const isAfterCall = callState === "afterCall";
56127
56123
  useEffect(() => {
56128
- if (!isMiniMode || !isInCall) {
56124
+ if (!shouldUseMiniMode || !isInCall) {
56129
56125
  if (!isInCall) {
56130
56126
  setCallDurationSeconds(0);
56131
56127
  }
@@ -56135,15 +56131,15 @@ function InlineDialer({ variant = "default", isAuthenticated, ...props }) {
56135
56131
  setCallDurationSeconds((prev) => prev + 1);
56136
56132
  }, 1e3);
56137
56133
  return () => clearInterval(interval);
56138
- }, [isMiniMode, isInCall]);
56134
+ }, [shouldUseMiniMode, isInCall]);
56139
56135
  useEffect(() => {
56140
- if (!isMiniMode) return;
56136
+ if (!shouldUseMiniMode) return;
56141
56137
  if ((isInCall || isConnecting) && isIncomingCall && (currentCallInfo == null ? void 0 : currentCallInfo.type) === "campaign") {
56142
56138
  setIsClientInfoModalOpen(true);
56143
56139
  }
56144
- }, [isMiniMode, isInCall, isConnecting, isIncomingCall, currentCallInfo]);
56140
+ }, [shouldUseMiniMode, isInCall, isConnecting, isIncomingCall, currentCallInfo]);
56145
56141
  useEffect(() => {
56146
- if (!isMiniMode) return;
56142
+ if (!shouldUseMiniMode) return;
56147
56143
  if (isAfterCall) {
56148
56144
  const shouldSkipCampaignQualification = (currentCallInfo == null ? void 0 : currentCallInfo.type) === "campaign" && currentCallInfo.info.campaign.skipCallQualification === true;
56149
56145
  if (shouldSkipCampaignQualification && finishAfterCall) {
@@ -56175,13 +56171,13 @@ function InlineDialer({ variant = "default", isAuthenticated, ...props }) {
56175
56171
  } else {
56176
56172
  setIsQualificationModalOpen(false);
56177
56173
  }
56178
- }, [isMiniMode, isAfterCall, currentCallInfo, finishAfterCall, successQualifications, discardQualifications, skipManualQualification]);
56174
+ }, [shouldUseMiniMode, isAfterCall, currentCallInfo, finishAfterCall, successQualifications, discardQualifications, skipManualQualification]);
56179
56175
  useEffect(() => {
56180
- if (!isMiniMode) return;
56176
+ if (!shouldUseMiniMode) return;
56181
56177
  if (!isInCall && !isConnecting && !isAfterCall) {
56182
56178
  setIsClientInfoModalOpen(false);
56183
56179
  }
56184
- }, [isMiniMode, isInCall, isConnecting, isAfterCall]);
56180
+ }, [shouldUseMiniMode, isInCall, isConnecting, isAfterCall]);
56185
56181
  const campaignCallInfo = useMemo(() => {
56186
56182
  if (!currentCallInfo || currentCallInfo.type !== "campaign") {
56187
56183
  return null;
@@ -56219,6 +56215,9 @@ function InlineDialer({ variant = "default", isAuthenticated, ...props }) {
56219
56215
  setIsSubmittingAfterCall(false);
56220
56216
  }
56221
56217
  };
56218
+ if (!shouldUseMiniMode) {
56219
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(FloatingDialer, { variant, isAuthenticated, ...props });
56220
+ }
56222
56221
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
56223
56222
  /* @__PURE__ */ jsxRuntimeExports.jsx(
56224
56223
  "style",