@mx-cartographer/experiences 6.5.3 → 6.5.4-alpha.mega1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [6.5.4] - 2025-06-16
2
+
3
+ - **ADDED** - API integration for user communication profile, aka `Delivery Methods`.
4
+
1
5
  ## [6.5.3] - 06-16-2025
2
6
 
3
7
  - **UPDATED** - getLocale precedence and default logic
package/dist/index.es.js CHANGED
@@ -14470,6 +14470,7 @@ class Nr {
14470
14470
  verifyPhoneToken = async (n) => this.fetchInstance.post(k.PHONE_VERIFICATIONS + "/verify", { sms_verification_token: n }).then((i) => ({ verified: i.verified }));
14471
14471
  updateDevice = async (n) => this.fetchInstance.put(`${k.DEVICES}/${n.guid}`, n).then((i) => i.device);
14472
14472
  updateNotificationProfile = async (n) => this.fetchInstance.put(`${k.NOTIFICATION_PROFILES}/${n.guid}`, n).then((i) => i.notification_profile);
14473
+ updateUserCommunicationProfile = async (n) => this.fetchInstance.put(k.USER_COMMUNICATION_PROFILE, n).then((i) => i.user_communication_profile);
14473
14474
  }
14474
14475
  const Dr = "PARENT-ENTITY", zp = (e, n) => {
14475
14476
  switch (e) {
@@ -14672,11 +14673,12 @@ class jp {
14672
14673
  this.setAlert(this.copy.information_updated_error, "error");
14673
14674
  });
14674
14675
  };
14675
- updateUserCommunicationsProfile = async (n) => {
14676
+ updateUserCommunicationProfile = async (n) => {
14676
14677
  try {
14677
- this.globalStore.appDataStore.setUserCommunicationProfile(n);
14678
+ const i = await this.api.updateUserCommunicationProfile(n);
14679
+ this.globalStore.appDataStore.setUserCommunicationProfile(i);
14678
14680
  } catch (i) {
14679
- console.error(`Error updating user communications profile: ${i}`);
14681
+ console.error(`Error occurred while updating user communication profile: ${i}`);
14680
14682
  }
14681
14683
  };
14682
14684
  verifyPhoneToken = async (n) => {
@@ -18774,7 +18776,7 @@ const B1 = ({
18774
18776
  /* @__PURE__ */ t(oe, { children: i.map((r, s) => /* @__PURE__ */ t(z1, { rule: r }, s)) })
18775
18777
  ] });
18776
18778
  }), j1 = A(({ posthog: e }) => {
18777
- const { settings: n } = I(), { clientCommunicationProfile: i, updateUserCommunicationsProfile: a, userCommunicationsProfile: o } = Lt(), { user: r } = zt(), s = async (c, d) => {
18779
+ const { settings: n } = I(), { clientCommunicationProfile: i, updateUserCommunicationProfile: a, userCommunicationsProfile: o } = Lt(), { user: r } = zt(), s = async (c, d) => {
18778
18780
  const _ = {
18779
18781
  ...o,
18780
18782
  [c]: d