@mx-cartographer/experiences 6.2.8 → 6.2.9-alpha.al0

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.es.js CHANGED
@@ -3198,7 +3198,22 @@ const Dn = ({
3198
3198
  sx: c = {},
3199
3199
  title: d = ""
3200
3200
  }) => {
3201
- const [_, { height: u, width: h }] = oc();
3201
+ const [_, { height: u, width: h }] = oc(), m = () => {
3202
+ try {
3203
+ window.parent.postMessage(
3204
+ {
3205
+ type: "MINI_WIDGET_CTA_CLICK",
3206
+ payload: {
3207
+ widgetTitle: d,
3208
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
3209
+ }
3210
+ },
3211
+ "*"
3212
+ ), r && r();
3213
+ } catch (C) {
3214
+ console.error("Error sending postMessage:", C);
3215
+ }
3216
+ };
3202
3217
  return /* @__PURE__ */ l(Gt, { className: e, sx: { borderRadius: "8px", ...c }, children: [
3203
3218
  /* @__PURE__ */ t(
3204
3219
  wn,
@@ -3207,7 +3222,7 @@ const Dn = ({
3207
3222
  ee,
3208
3223
  {
3209
3224
  endIcon: /* @__PURE__ */ t(yt, { name: "keyboard_arrow_right_rounded" }),
3210
- onClick: r,
3225
+ onClick: m,
3211
3226
  children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: o })
3212
3227
  }
3213
3228
  ),