call-control-sdk 6.5.1-uat.0 → 6.5.1-uat.2

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/index.js CHANGED
@@ -106,6 +106,7 @@ var SDKStateManager = class {
106
106
  this.loadFromStorage();
107
107
  }
108
108
  getInitialState() {
109
+ var _a2, _b;
109
110
  return {
110
111
  authorization: void 0,
111
112
  process: null,
@@ -129,7 +130,7 @@ var SDKStateManager = class {
129
130
  status: "idle",
130
131
  callStartTime: null,
131
132
  controlPanelPosition: { x: 10, y: 10 },
132
- iframePosition: { x: 10, y: 80 },
133
+ iframePosition: { x: ((_a2 = window.screen) == null ? void 0 : _a2.availWidth) - 460, y: ((_b = window.screen) == null ? void 0 : _b.height) - 580 },
133
134
  callData: {
134
135
  agent_id: "",
135
136
  hold: 0,
@@ -196,6 +197,7 @@ var SDKStateManager = class {
196
197
  };
197
198
  }
198
199
  loadFromStorage() {
200
+ var _a2, _b;
199
201
  try {
200
202
  const stored = localStorage.getItem(this.STORAGE_KEY);
201
203
  if (stored) {
@@ -226,7 +228,10 @@ var SDKStateManager = class {
226
228
  x: 10,
227
229
  y: 10
228
230
  },
229
- iframePosition: parsedState.iframePosition || { x: 10, y: 80 },
231
+ iframePosition: parsedState.iframePosition || {
232
+ x: ((_a2 = window.screen) == null ? void 0 : _a2.availWidth) - 460,
233
+ y: ((_b = window.screen) == null ? void 0 : _b.height) - 580
234
+ },
230
235
  callData: parsedState.callData || {
231
236
  mobileNumber: "",
232
237
  callReferenceId: "",
@@ -3177,6 +3182,7 @@ function CallControls({ onDataChange }) {
3177
3182
  sdkStateManager.updateCallData(data);
3178
3183
  sdkStateManager.updateConferenceData([...confrence]);
3179
3184
  if (data.status === "RINGING" || data.status === "DIALING") {
3185
+ setShowIframe(true);
3180
3186
  sdkStateManager.updateConferenceData([
3181
3187
  {
3182
3188
  line: 1,
@@ -3414,7 +3420,7 @@ function CallControls({ onDataChange }) {
3414
3420
  )
3415
3421
  }
3416
3422
  ) }) }),
3417
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3423
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material4.Box, { onClick: () => setShowIframe(true), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3418
3424
  import_material4.Typography,
3419
3425
  {
3420
3426
  sx: {
@@ -3422,11 +3428,12 @@ function CallControls({ onDataChange }) {
3422
3428
  width: "40px",
3423
3429
  marginRight: "10px",
3424
3430
  fontSize: "18px",
3425
- fontWeight: "600"
3431
+ fontWeight: "600",
3432
+ cursor: "pointer"
3426
3433
  },
3427
3434
  children: formatDuration(callDuration)
3428
3435
  }
3429
- ),
3436
+ ) }),
3430
3437
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3431
3438
  import_material4.Chip,
3432
3439
  {