@fluid-app/portal-sdk 0.1.797 → 0.1.799

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.
Files changed (45) hide show
  1. package/dist/{ContactsScreen-BPGDpGZu.mjs → ContactsScreen-C0e2DB_a.mjs} +13 -2
  2. package/dist/ContactsScreen-C0e2DB_a.mjs.map +1 -0
  3. package/dist/{ContactsScreen-J8cS9Y97.cjs → ContactsScreen-Cpj6b9ad.cjs} +1 -1
  4. package/dist/{ContactsScreen-CuuGPFIj.cjs → ContactsScreen-D4DBaIH_.cjs} +13 -2
  5. package/dist/ContactsScreen-D4DBaIH_.cjs.map +1 -0
  6. package/dist/{ContactsScreen-ChjOLSBG.mjs → ContactsScreen-De63SAAd.mjs} +1 -1
  7. package/dist/{FluidProvider-DAdZ-Lh8.mjs → FluidProvider-Bd329rjh.mjs} +71 -1
  8. package/dist/{FluidProvider-DAdZ-Lh8.mjs.map → FluidProvider-Bd329rjh.mjs.map} +1 -1
  9. package/dist/{FluidProvider-D6XJUmmK.cjs → FluidProvider-BwPBJfjs.cjs} +71 -1
  10. package/dist/{FluidProvider-D6XJUmmK.cjs.map → FluidProvider-BwPBJfjs.cjs.map} +1 -1
  11. package/dist/{MessagingScreen-B9Gw6jjz.cjs → MessagingScreen-CuiB8nPo.cjs} +2 -2
  12. package/dist/{MessagingScreen-CzFuFEqU.mjs → MessagingScreen-DLulZTv7.mjs} +2 -2
  13. package/dist/{MessagingScreen-CzFuFEqU.mjs.map → MessagingScreen-DLulZTv7.mjs.map} +1 -1
  14. package/dist/{MessagingScreen-DUJItpLf.cjs → MessagingScreen-Ry8EzZ0D.cjs} +2 -2
  15. package/dist/{MessagingScreen-DUJItpLf.cjs.map → MessagingScreen-Ry8EzZ0D.cjs.map} +1 -1
  16. package/dist/{MessagingScreen-yVAOdTnE.mjs → MessagingScreen-Ypz2-nu-.mjs} +2 -2
  17. package/dist/{OrdersScreen-urfCu-XA.mjs → OrdersScreen-6e2ikl1w.mjs} +2 -2
  18. package/dist/{OrdersScreen-urfCu-XA.mjs.map → OrdersScreen-6e2ikl1w.mjs.map} +1 -1
  19. package/dist/{OrdersScreen-C9Pt99gL.cjs → OrdersScreen-Cu6fDSB5.cjs} +2 -2
  20. package/dist/{OrdersScreen-D2i2EY7A.mjs → OrdersScreen-D0U5Zn1I.mjs} +2 -2
  21. package/dist/{OrdersScreen-DRUTC3FF.cjs → OrdersScreen-zcTwch78.cjs} +2 -2
  22. package/dist/{OrdersScreen-DRUTC3FF.cjs.map → OrdersScreen-zcTwch78.cjs.map} +1 -1
  23. package/dist/{ProfileScreen-yk2c_ICl.mjs → ProfileScreen-BpIPlbd2.mjs} +2 -2
  24. package/dist/{ProfileScreen-yk2c_ICl.mjs.map → ProfileScreen-BpIPlbd2.mjs.map} +1 -1
  25. package/dist/{ProfileScreen-DKp6Zvc-.mjs → ProfileScreen-CM3oqiU0.mjs} +3 -3
  26. package/dist/{ProfileScreen-CbhmsXGu.cjs → ProfileScreen-CY6anL_g.cjs} +2 -2
  27. package/dist/{ProfileScreen-CbhmsXGu.cjs.map → ProfileScreen-CY6anL_g.cjs.map} +1 -1
  28. package/dist/{ProfileScreen-JTRkqU7o.cjs → ProfileScreen-ChEvNc_d.cjs} +3 -3
  29. package/dist/{SubscriptionsScreen-B4lVFytP.mjs → SubscriptionsScreen-6GEqH3WA.mjs} +3 -3
  30. package/dist/{SubscriptionsScreen-CwiHeAUq.cjs → SubscriptionsScreen-B3Wk53We.cjs} +30 -31
  31. package/dist/SubscriptionsScreen-B3Wk53We.cjs.map +1 -0
  32. package/dist/{SubscriptionsScreen-CbPW31HU.cjs → SubscriptionsScreen-CHtDjlJK.cjs} +3 -3
  33. package/dist/{SubscriptionsScreen-DiRBZN4T.mjs → SubscriptionsScreen-D505K6IM.mjs} +30 -31
  34. package/dist/SubscriptionsScreen-D505K6IM.mjs.map +1 -0
  35. package/dist/index.cjs +17 -17
  36. package/dist/index.mjs +17 -17
  37. package/dist/{use-portal-card-add-3ds-flow-CsjnX_VV.mjs → use-portal-card-add-3ds-flow-C8LP1_2P.mjs} +2 -2
  38. package/dist/{use-portal-card-add-3ds-flow-CsjnX_VV.mjs.map → use-portal-card-add-3ds-flow-C8LP1_2P.mjs.map} +1 -1
  39. package/dist/{use-portal-card-add-3ds-flow-C4h3wg2u.cjs → use-portal-card-add-3ds-flow-D9H4Q46n.cjs} +2 -2
  40. package/dist/{use-portal-card-add-3ds-flow-C4h3wg2u.cjs.map → use-portal-card-add-3ds-flow-D9H4Q46n.cjs.map} +1 -1
  41. package/package.json +3 -3
  42. package/dist/ContactsScreen-BPGDpGZu.mjs.map +0 -1
  43. package/dist/ContactsScreen-CuuGPFIj.cjs.map +0 -1
  44. package/dist/SubscriptionsScreen-CwiHeAUq.cjs.map +0 -1
  45. package/dist/SubscriptionsScreen-DiRBZN4T.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  require("./chunk-9hOWP6kD.cjs");
2
- const require_ContactsScreen = require("./ContactsScreen-CuuGPFIj.cjs");
2
+ const require_ContactsScreen = require("./ContactsScreen-D4DBaIH_.cjs");
3
3
  require("./ContactsTranslationBridge-FyqcnCwN.cjs");
4
4
  require("./account-api-context-BAC-rNdx.cjs");
5
5
  require("./Combobox-DW-UuPXX.cjs");
@@ -1790,6 +1790,14 @@ createContactFormSchema.passthrough();
1790
1790
  //#endregion
1791
1791
  //#region ../../contacts/ui/src/shared/hooks/useContactDetailPage.ts
1792
1792
  const mutableKeys = Object.keys(createContactFormSchema.shape);
1793
+ function isDeepEqual(left, right) {
1794
+ if (Object.is(left, right)) return true;
1795
+ if (typeof left !== "object" || left === null) return false;
1796
+ if (typeof right !== "object" || right === null) return false;
1797
+ const leftEntries = Object.entries(left);
1798
+ const rightEntries = Object.entries(right);
1799
+ return leftEntries.length === rightEntries.length && leftEntries.every(([key, value]) => Object.hasOwn(right, key) && isDeepEqual(value, right[key]));
1800
+ }
1793
1801
  function useContactDetailPage(contactId, options) {
1794
1802
  const i18n = require_task_composer_form.useOptionalContactsTranslation();
1795
1803
  const queryKeyPrefix = options?.queryKeyPrefix ?? "contacts";
@@ -1828,7 +1836,10 @@ function useContactDetailPage(contactId, options) {
1828
1836
  const onSave = (0, react.useCallback)(() => {
1829
1837
  methods.handleSubmit((formData) => {
1830
1838
  const payload = {};
1831
- for (const key of mutableKeys) if (key in formData) payload[key] = formData[key];
1839
+ for (const key of mutableKeys) {
1840
+ if (key === "affiliate" && isDeepEqual(formData.affiliate, methods.formState.defaultValues?.affiliate)) continue;
1841
+ if (key in formData) payload[key] = formData[key];
1842
+ }
1832
1843
  updateMutation.mutate({
1833
1844
  id: contactId,
1834
1845
  data: payload
@@ -5280,4 +5291,4 @@ Object.defineProperty(exports, "contactsScreenPropertySchema", {
5280
5291
  }
5281
5292
  });
5282
5293
 
5283
- //# sourceMappingURL=ContactsScreen-CuuGPFIj.cjs.map
5294
+ //# sourceMappingURL=ContactsScreen-D4DBaIH_.cjs.map