@ethora/chat-component-rn 26.10.0 → 26.10.1

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 (69) hide show
  1. package/lib/commonjs/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.js +14 -12
  2. package/lib/commonjs/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.js.map +1 -1
  3. package/lib/commonjs/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.js +41 -39
  4. package/lib/commonjs/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.js.map +1 -1
  5. package/lib/commonjs/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js +137 -50
  6. package/lib/commonjs/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js.map +1 -1
  7. package/lib/commonjs/components/Modals/SettingsModals/ProfileShares/ProfileShares.js +15 -13
  8. package/lib/commonjs/components/Modals/SettingsModals/ProfileShares/ProfileShares.js.map +1 -1
  9. package/lib/commonjs/components/Modals/SettingsModals/Referrals/Referrals.js +57 -55
  10. package/lib/commonjs/components/Modals/SettingsModals/Referrals/Referrals.js.map +1 -1
  11. package/lib/commonjs/components/Modals/SettingsModals/SharedStyledComponents.js +15 -1
  12. package/lib/commonjs/components/Modals/SettingsModals/SharedStyledComponents.js.map +1 -1
  13. package/lib/commonjs/components/Modals/SettingsModals/Visibility/VisibilityModal.js +61 -59
  14. package/lib/commonjs/components/Modals/SettingsModals/Visibility/VisibilityModal.js.map +1 -1
  15. package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +8 -3
  16. package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
  17. package/lib/commonjs/i18n/strings.js +24 -0
  18. package/lib/commonjs/i18n/strings.js.map +1 -1
  19. package/lib/commonjs/networking/api-requests/user.api.js +32 -3
  20. package/lib/commonjs/networking/api-requests/user.api.js.map +1 -1
  21. package/lib/commonjs/roomStore/chatSettingsSlice.js +6 -0
  22. package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
  23. package/lib/module/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.js +15 -13
  24. package/lib/module/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.js.map +1 -1
  25. package/lib/module/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.js +42 -40
  26. package/lib/module/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.js.map +1 -1
  27. package/lib/module/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js +138 -52
  28. package/lib/module/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js.map +1 -1
  29. package/lib/module/components/Modals/SettingsModals/ProfileShares/ProfileShares.js +16 -14
  30. package/lib/module/components/Modals/SettingsModals/ProfileShares/ProfileShares.js.map +1 -1
  31. package/lib/module/components/Modals/SettingsModals/Referrals/Referrals.js +58 -56
  32. package/lib/module/components/Modals/SettingsModals/Referrals/Referrals.js.map +1 -1
  33. package/lib/module/components/Modals/SettingsModals/SharedStyledComponents.js +14 -0
  34. package/lib/module/components/Modals/SettingsModals/SharedStyledComponents.js.map +1 -1
  35. package/lib/module/components/Modals/SettingsModals/Visibility/VisibilityModal.js +62 -60
  36. package/lib/module/components/Modals/SettingsModals/Visibility/VisibilityModal.js.map +1 -1
  37. package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +9 -4
  38. package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
  39. package/lib/module/i18n/strings.js +24 -0
  40. package/lib/module/i18n/strings.js.map +1 -1
  41. package/lib/module/networking/api-requests/user.api.js +31 -3
  42. package/lib/module/networking/api-requests/user.api.js.map +1 -1
  43. package/lib/module/roomStore/chatSettingsSlice.js +6 -0
  44. package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
  45. package/lib/typescript/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.d.ts.map +1 -1
  46. package/lib/typescript/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.d.ts.map +1 -1
  47. package/lib/typescript/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.d.ts.map +1 -1
  48. package/lib/typescript/components/Modals/SettingsModals/ProfileShares/ProfileShares.d.ts.map +1 -1
  49. package/lib/typescript/components/Modals/SettingsModals/Referrals/Referrals.d.ts.map +1 -1
  50. package/lib/typescript/components/Modals/SettingsModals/SharedStyledComponents.d.ts +1 -0
  51. package/lib/typescript/components/Modals/SettingsModals/SharedStyledComponents.d.ts.map +1 -1
  52. package/lib/typescript/components/Modals/SettingsModals/Visibility/VisibilityModal.d.ts.map +1 -1
  53. package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts.map +1 -1
  54. package/lib/typescript/i18n/strings.d.ts.map +1 -1
  55. package/lib/typescript/networking/api-requests/user.api.d.ts +8 -0
  56. package/lib/typescript/networking/api-requests/user.api.d.ts.map +1 -1
  57. package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -1
  58. package/package.json +1 -1
  59. package/src/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.tsx +20 -17
  60. package/src/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.tsx +58 -55
  61. package/src/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.tsx +156 -62
  62. package/src/components/Modals/SettingsModals/ProfileShares/ProfileShares.tsx +22 -19
  63. package/src/components/Modals/SettingsModals/Referrals/Referrals.tsx +48 -45
  64. package/src/components/Modals/SettingsModals/SharedStyledComponents.ts +11 -0
  65. package/src/components/Modals/SettingsModals/Visibility/VisibilityModal.tsx +63 -60
  66. package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +11 -3
  67. package/src/i18n/strings.ts +24 -0
  68. package/src/networking/api-requests/user.api.ts +28 -2
  69. package/src/roomStore/chatSettingsSlice.ts +6 -0
@@ -21,19 +21,21 @@ const BlockedUsersModal = ({
21
21
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalHeaderComponent.default, {
22
22
  handleCloseModal: handleCloseModal,
23
23
  headerTitle: 'Blocke Users'
24
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsSectionContainer, {
25
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
26
- children: "Current Document Shares"
27
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsLabelData, {
28
- children: "Listed below are your currently active document sharing links. You can share or delete them."
29
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.BorderedContainer, {
30
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoPanel, {
31
- bgColor: config?.colors?.secondary,
32
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoText, {
33
- children: "There are no shares yet, or you can add them by clicking the \u201CAdd New Share\u201D button"
24
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsScrollBody, {
25
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsSectionContainer, {
26
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
27
+ children: "Current Document Shares"
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsLabelData, {
29
+ children: "Listed below are your currently active document sharing links. You can share or delete them."
30
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.BorderedContainer, {
31
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoPanel, {
32
+ bgColor: config?.colors?.secondary,
33
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoText, {
34
+ children: "There are no shares yet, or you can add them by clicking the \u201CAdd New Share\u201D button"
35
+ })
34
36
  })
35
- })
36
- })]
37
+ })]
38
+ })
37
39
  })]
38
40
  });
39
41
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_styledModalComponents","_ModalHeaderComponent","_reactRedux","_SharedStyledComponents","_jsxRuntime","e","__esModule","default","BlockedUsersModal","handleCloseModal","config","useSelector","state","chatSettingStore","jsxs","ModalContainerFullScreen","children","jsx","headerTitle","SharedSettingsSectionContainer","SharedSettingsStyledLabel","SharedSettingsLabelData","BorderedContainer","SharedSettingsInfoPanel","bgColor","colors","secondary","SharedSettingsInfoText","_default","exports"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAaA,IAAAE,qBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,uBAAA,GAAAJ,OAAA;AAMmC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMnC,MAAMG,iBAAmD,GAAGA,CAAC;EAC3DC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,uBAAW,EAAEC,KAAgB,IAAKA,KAAK,CAACC,gBAAgB,CAAC;EAE5E,oBACE,IAAAT,WAAA,CAAAU,IAAA,EAACd,sBAAA,CAAAe,wBAAwB;IAAAC,QAAA,gBACvB,IAAAZ,WAAA,CAAAa,GAAA,EAAChB,qBAAA,CAAAM,OAAoB;MACnBE,gBAAgB,EAAEA,gBAAiB;MACnCS,WAAW,EAAE;IAAe,CAC7B,CAAC,eACF,IAAAd,WAAA,CAAAU,IAAA,EAACX,uBAAA,CAAAgB,8BAA8B;MAAAH,QAAA,gBAC7B,IAAAZ,WAAA,CAAAa,GAAA,EAACd,uBAAA,CAAAiB,yBAAyB;QAAAJ,QAAA,EAAC;MAE3B,CAA2B,CAAC,eAC5B,IAAAZ,WAAA,CAAAa,GAAA,EAACd,uBAAA,CAAAkB,uBAAuB;QAAAL,QAAA,EAAC;MAGzB,CAAyB,CAAC,eAC1B,IAAAZ,WAAA,CAAAa,GAAA,EAACjB,sBAAA,CAAAsB,iBAAiB;QAAAN,QAAA,eAChB,IAAAZ,WAAA,CAAAa,GAAA,EAACd,uBAAA,CAAAoB,uBAAuB;UAACC,OAAO,EAAEd,MAAM,EAAEe,MAAM,EAAEC,SAAU;UAAAV,QAAA,eAC1D,IAAAZ,WAAA,CAAAa,GAAA,EAACd,uBAAA,CAAAwB,sBAAsB;YAAAX,QAAA,EAAC;UAGxB,CAAwB;QAAC,CACF;MAAC,CACT,CAAC;IAAA,CACU,CAAC;EAAA,CACT,CAAC;AAE/B,CAAC;AAAC,IAAAY,QAAA,GAAAC,OAAA,CAAAtB,OAAA,GAEaC,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_styledModalComponents","_ModalHeaderComponent","_reactRedux","_SharedStyledComponents","_jsxRuntime","e","__esModule","default","BlockedUsersModal","handleCloseModal","config","useSelector","state","chatSettingStore","jsxs","ModalContainerFullScreen","children","jsx","headerTitle","SharedSettingsScrollBody","SharedSettingsSectionContainer","SharedSettingsStyledLabel","SharedSettingsLabelData","BorderedContainer","SharedSettingsInfoPanel","bgColor","colors","secondary","SharedSettingsInfoText","_default","exports"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAaA,IAAAE,qBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,uBAAA,GAAAJ,OAAA;A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,CACT,CAAC;EAAA,CACH,CAAC;AAE/B,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,CAAAvB,OAAA,GAEaC,iBAAiB","ignoreList":[]}
@@ -27,53 +27,55 @@ const DocumentSharesModal = ({
27
27
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalHeaderComponent.default, {
28
28
  handleCloseModal: handleCloseModal,
29
29
  headerTitle: 'Document Shares'
30
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.CenterContainer, {
31
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsColumnContainer, {
32
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsSectionContainer, {
33
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
34
- children: "Current Document Shares"
35
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsLabelData, {
36
- children: "Listed below are your currently active document sharing links. You can share or delete them."
37
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.BorderedContainer, {
38
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
39
- style: {
40
- display: 'flex',
41
- padding: 8,
42
- width: '100%',
43
- justifyContent: 'space-between',
44
- alignItems: 'center'
45
- },
46
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
47
- children: "List of shares"
48
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
30
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsScrollBody, {
31
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.CenterContainer, {
32
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsColumnContainer, {
33
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsSectionContainer, {
34
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
35
+ children: "Current Document Shares"
36
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsLabelData, {
37
+ children: "Listed below are your currently active document sharing links. You can share or delete them."
38
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.BorderedContainer, {
39
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
49
40
  style: {
50
41
  display: 'flex',
51
- flexDirection: 'row'
42
+ padding: 8,
43
+ width: '100%',
44
+ justifyContent: 'space-between',
45
+ alignItems: 'center'
52
46
  },
53
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
54
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SortDropDown.default, {
55
- sortFunction: function (value) {
56
- throw new Error('Function not implemented.');
57
- },
58
- icon: '',
59
- values: ['Name', 'Surname']
60
- })
61
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
62
- variant: "filled",
63
- StartIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PlusIcon, {}),
47
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
48
+ children: "List of shares"
49
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
64
50
  style: {
65
- width: '100%'
51
+ display: 'flex',
52
+ flexDirection: 'row'
66
53
  },
67
- children: "Add New Share"
54
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
55
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SortDropDown.default, {
56
+ sortFunction: function (value) {
57
+ throw new Error('Function not implemented.');
58
+ },
59
+ icon: '',
60
+ values: ['Name', 'Surname']
61
+ })
62
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
63
+ variant: "filled",
64
+ StartIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PlusIcon, {}),
65
+ style: {
66
+ width: '100%'
67
+ },
68
+ children: "Add New Share"
69
+ })]
68
70
  })]
71
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoPanel, {
72
+ bgColor: config?.colors?.secondary,
73
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoText, {
74
+ children: "There are no shares yet, or you can add them by clicking the \u201CAdd New Share\u201D button"
75
+ })
69
76
  })]
70
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoPanel, {
71
- bgColor: config?.colors?.secondary,
72
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoText, {
73
- children: "There are no shares yet, or you can add them by clicking the \u201CAdd New Share\u201D button"
74
- })
75
77
  })]
76
- })]
78
+ })
77
79
  })
78
80
  })
79
81
  })]
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_styledModalComponents","_icons","_ModalHeaderComponent","_reactRedux","_SharedStyledComponents","_Button","_SortDropDown","_reactNative","_jsxRuntime","e","__esModule","default","DocumentSharesModal","handleCloseModal","config","useSelector","state","chatSettingStore","jsxs","ModalContainerFullScreen","children","jsx","headerTitle","CenterContainer","SharedSettingsColumnContainer","SharedSettingsSectionContainer","SharedSettingsStyledLabel","SharedSettingsLabelData","BorderedContainer","View","style","display","padding","width","justifyContent","alignItems","flexDirection","sortFunction","value","Error","icon","values","variant","StartIcon","PlusIcon","SharedSettingsInfoPanel","bgColor","colors","secondary","SharedSettingsInfoText","_default","exports"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.tsx"],"mappings":";;;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,IAAE,CAAE;kBACxBd,KAAK,EAAE;oBAAEG,KAAK,EAAE;kBAAO,CAAE;kBAAAb,QAAA,EAC1B;gBAED,CAAQ,CAAC;cAAA,CACL,CAAC;YAAA,CACH,CAAC,eACP,IAAAZ,WAAA,CAAAa,GAAA,EAACjB,uBAAA,CAAAyC,uBAAuB;cAACC,OAAO,EAAEhC,MAAM,EAAEiC,MAAM,EAAEC,SAAU;cAAA5B,QAAA,eAC1D,IAAAZ,WAAA,CAAAa,GAAA,EAACjB,uBAAA,CAAA6C,sBAAsB;gBAAA7B,QAAA,EAAC;cAGxB,CAAwB;YAAC,CACF,CAAC;UAAA,CACT,CAAC;QAAA,CACU;MAAC,CACJ;IAAC,CACjB,CAAC;EAAA,CACM,CAAC;AAE/B,CAAC;AAAC,IAAA8B,QAAA,GAAAC,OAAA,CAAAxC,OAAA,GAEaC,mBAAmB","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_styledModalComponents","_icons","_ModalHeaderComponent","_reactRedux","_SharedStyledComponents","_Button","_SortDropDown","_reactNative","_jsxRuntime","e","__esModule","default","DocumentSharesModal","handleCloseModal","config","useSelector","state","chatSettingStore","jsxs","ModalContainerFullScreen","children","jsx","headerTitle","SharedSettingsScrollBody","CenterContainer","SharedSettingsColumnContainer","SharedSettingsSectionContainer","SharedSettingsStyledLabel","SharedSettingsLabelData","BorderedContainer","View","style","display","padding","width","justifyContent","alignItems","flexDirection","sortFunction","value","Error","icon","values","variant","StartIcon","PlusIcon","SharedSettingsInfoPanel","bgColor","colors","secondary","SharedSettingsInfoText","_default","exports"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAYA,IAAAE,MAAA,GAAAF,OAAA;AAMA,IAAAG,qBAAA,GAAAJ,sBAAA,CAAAC,OAAA;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AA,EAC1B;kBAED,CAAQ,CAAC;gBAAA,CACL,CAAC;cAAA,CACH,CAAC,eACP,IAAAZ,WAAA,CAAAa,GAAA,EAACjB,uBAAA,CAAA0C,uBAAuB;gBAACC,OAAO,EAAEjC,MAAM,EAAEkC,MAAM,EAAEC,SAAU;gBAAA7B,QAAA,eAC1D,IAAAZ,WAAA,CAAAa,GAAA,EAACjB,uBAAA,CAAA8C,sBAAsB;kBAAA9B,QAAA,EAAC;gBAGxB,CAAwB;cAAC,CACF,CAAC;YAAA,CACT,CAAC;UAAA,CACU;QAAC,CACJ;MAAC,CACjB;IAAC,CACM,CAAC;EAAA,CACH,CAAC;AAE/B,CAAC;AAAC,IAAA+B,QAAA,GAAAC,OAAA,CAAAzC,OAAA,GAEaC,mBAAmB","ignoreList":[]}
@@ -4,18 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
7
+ var _react = _interopRequireWildcard(require("react"));
8
8
  var _styledModalComponents = require("../../styledModalComponents");
9
9
  var _ModalHeaderComponent = _interopRequireDefault(require("../../ModalHeaderComponent"));
10
10
  var _reactRedux = require("react-redux");
11
11
  var _native = _interopRequireDefault(require("styled-components/native"));
12
12
  var _icons = require("../../../../assets/icons");
13
+ var _user = require("../../../../networking/api-requests/user.api");
13
14
  var _SharedStyledComponents = require("../SharedStyledComponents");
14
15
  var _reactNative = require("react-native");
16
+ var FileSystem = _interopRequireWildcard(require("expo-file-system/legacy"));
15
17
  var _useTheme = require("../../../../hooks/useTheme");
16
18
  var _useT = require("../../../../i18n/useT");
19
+ var _useLogout = require("../../../../hooks/useLogout");
20
+ var _ToastContext = require("../../../../context/ToastContext");
17
21
  var _jsxRuntime = require("react/jsx-runtime");
18
22
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
23
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
19
24
  const InfoPanel = _native.default.View`
20
25
  background-color: "#F3F6FC";
21
26
  display: flex;
@@ -31,64 +36,146 @@ const ManageDataModal = ({
31
36
  } = (0, _reactRedux.useSelector)(state => state.chatSettingStore);
32
37
  const theme = (0, _useTheme.useTheme)();
33
38
  const t = (0, _useT.useT)();
39
+ const performLogout = (0, _useLogout.useLogout)();
40
+ const {
41
+ showToast
42
+ } = (0, _ToastContext.useToast)();
43
+ const [isDownloading, setIsDownloading] = (0, _react.useState)(false);
44
+ const [isDeleting, setIsDeleting] = (0, _react.useState)(false);
45
+ const showError = message => showToast({
46
+ id: Date.now().toString(),
47
+ title: t('toast.error'),
48
+ message,
49
+ type: 'error'
50
+ });
34
51
  const handleDownloadClick = async () => {
35
- // const exportedData = await getExportMyData();
36
- // const binaryData = exportedData.data;
37
- // console.log(binaryData);
38
- // const blob = new Blob([binaryData], { type: "text/plain" });
39
- // const url = URL.createObjectURL(blob);
40
- // const a = document.createElement("a");
41
- // a.href = url;
42
- // a.download = "mydata.json";
43
- // document.body.appendChild(a);
44
- // a.click();
45
- // document.body.removeChild(a);
46
- // URL.revokeObjectURL(url);
52
+ if (isDownloading) {
53
+ return;
54
+ }
55
+ setIsDownloading(true);
56
+ try {
57
+ const fileName = 'my-data.json';
58
+ const download = await (0, _user.downloadMyDataExport)(`${FileSystem.cacheDirectory}${fileName}`);
59
+ if (_reactNative.Platform.OS === 'android') {
60
+ // Android has no shareable file URL; let the user pick a folder
61
+ // through the Storage Access Framework and write the copy there.
62
+ const saf = FileSystem.StorageAccessFramework;
63
+ const perm = await saf.requestDirectoryPermissionsAsync();
64
+ if (!perm.granted) {
65
+ return;
66
+ }
67
+ const base64 = await FileSystem.readAsStringAsync(download.uri, {
68
+ encoding: FileSystem.EncodingType.Base64
69
+ });
70
+ const destUri = await saf.createFileAsync(perm.directoryUri, fileName.replace(/\.[^/.]+$/, ''), download.mimeType || 'application/json');
71
+ await FileSystem.writeAsStringAsync(destUri, base64, {
72
+ encoding: FileSystem.EncodingType.Base64
73
+ });
74
+ showToast({
75
+ id: Date.now().toString(),
76
+ title: t('toast.successTitle'),
77
+ message: t('toast.saveSuccessful'),
78
+ type: 'success'
79
+ });
80
+ return;
81
+ }
82
+
83
+ // iOS: the share sheet offers "Save to Files", AirDrop, etc. and is
84
+ // itself the confirmation, so no success toast.
85
+ await _reactNative.Share.share({
86
+ url: download.uri,
87
+ title: fileName
88
+ });
89
+ } catch (err) {
90
+ console.error('ManageDataModal: data export failed', err);
91
+ showError(t('settings.manageData.downloadFailed'));
92
+ } finally {
93
+ setIsDownloading(false);
94
+ }
95
+ };
96
+ const deleteAccount = async () => {
97
+ setIsDeleting(true);
98
+ try {
99
+ await (0, _user.deleteMe)();
100
+ } catch (err) {
101
+ console.error('ManageDataModal: account deletion failed', err);
102
+ showError(t('settings.manageData.deleteFailed'));
103
+ setIsDeleting(false);
104
+ return;
105
+ }
106
+ // The account is gone server-side: tear the local session down the
107
+ // same way a logout does, then let the host navigate away.
108
+ await performLogout();
109
+ try {
110
+ await config?.logout?.onAfterLogout?.();
111
+ } catch (e) {
112
+ console.warn('ManageDataModal: onAfterLogout threw', e);
113
+ }
114
+ };
115
+ const handleDeleteClick = () => {
116
+ if (isDeleting) {
117
+ return;
118
+ }
119
+ _reactNative.Alert.alert(t('settings.manageData.deleteConfirmTitle'), t('settings.manageData.deleteConfirmMessage'), [{
120
+ text: t('action.cancel'),
121
+ style: 'cancel'
122
+ }, {
123
+ text: t('action.delete'),
124
+ style: 'destructive',
125
+ onPress: () => {
126
+ deleteAccount();
127
+ }
128
+ }]);
47
129
  };
48
130
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.ModalContainerFullScreen, {
49
131
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalHeaderComponent.default, {
50
132
  handleCloseModal: handleCloseModal,
51
133
  headerTitle: t('settings.manageData.title')
52
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsCenterContainer, {
53
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsColumnContainer, {
54
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsSectionContainer, {
55
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
56
- children: t('settings.manageData.downloadLabel')
57
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.LabelData, {
58
- style: {
59
- fontSize: 12,
60
- textAlign: 'left'
61
- },
62
- children: t('settings.manageData.downloadDescription')
63
- })]
64
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledButton, {
65
- borderColor: theme.primary,
66
- onPress: handleDownloadClick,
67
- text: t('settings.manageData.downloadLabel'),
68
- color: theme.primary
69
- })]
70
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsColumnContainer, {
71
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsSectionContainer, {
72
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
73
- children: t('settings.manageData.deleteLabel')
74
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsLabelData, {
75
- children: t('settings.manageData.deleteDescription')
134
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsScrollBody, {
135
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsCenterContainer, {
136
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsColumnContainer, {
137
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsSectionContainer, {
138
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
139
+ children: t('settings.manageData.downloadLabel')
140
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.LabelData, {
141
+ style: {
142
+ fontSize: 12,
143
+ textAlign: 'left'
144
+ },
145
+ children: t('settings.manageData.downloadDescription')
146
+ })]
147
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledButton, {
148
+ borderColor: theme.primary,
149
+ onPress: handleDownloadClick,
150
+ loading: isDownloading,
151
+ text: t('settings.manageData.downloadLabel'),
152
+ color: theme.primary
76
153
  })]
77
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsInfoPanel, {
78
- bgColor: config?.colors?.secondary || theme.surfaceHighlight,
79
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
80
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.InfoIcon, {
81
- color: theme.primary
82
- })
83
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoText, {
84
- children: t('settings.manageData.deleteDisclosure')
154
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsColumnContainer, {
155
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsSectionContainer, {
156
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
157
+ children: t('settings.manageData.deleteLabel')
158
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsLabelData, {
159
+ children: t('settings.manageData.deleteDescription')
160
+ })]
161
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsInfoPanel, {
162
+ bgColor: theme.surfaceHighlight,
163
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
164
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.InfoIcon, {
165
+ color: theme.primary
166
+ })
167
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoText, {
168
+ children: t('settings.manageData.deleteDisclosure')
169
+ })]
170
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledButton, {
171
+ borderColor: theme.danger,
172
+ onPress: handleDeleteClick,
173
+ loading: isDeleting,
174
+ text: t('action.deleteMyAccount'),
175
+ color: theme.danger
85
176
  })]
86
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledButton, {
87
- borderColor: theme.danger,
88
- text: t('action.deleteMyAccount'),
89
- color: theme.danger
90
177
  })]
91
- })]
178
+ })
92
179
  })]
93
180
  });
94
181
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_styledModalComponents","_ModalHeaderComponent","_reactRedux","_native","_icons","_SharedStyledComponents","_reactNative","_useTheme","_useT","_jsxRuntime","e","__esModule","default","InfoPanel","styled","View","ManageDataModal","handleCloseModal","config","useSelector","state","chatSettingStore","theme","useTheme","t","useT","handleDownloadClick","jsxs","ModalContainerFullScreen","children","jsx","headerTitle","SharedSettingsCenterContainer","SharedSettingsColumnContainer","SharedSettingsSectionContainer","SharedSettingsStyledLabel","LabelData","style","fontSize","textAlign","SharedSettingsStyledButton","borderColor","primary","onPress","text","color","SharedSettingsLabelData","SharedSettingsInfoPanel","bgColor","colors","secondary","surfaceHighlight","InfoIcon","SharedSettingsInfoText","danger","_default","exports"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/ManageDataModal/ManageDataModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAIA,IAAAE,qBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAEA,IAAAM,uBAAA,GAAAN,OAAA;AAUA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,KAAA,GAAAT,OAAA;AAA6C,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAD,uBAAAY,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAM7C,MAAMG,SAAS,GAAGC,eAAM,CAACC,IAAI;AAC7B;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,MAAMC,eAA+C,GAAGA,CAAC;EACvDC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,uBAAW,EAAEC,KAAgB,IAAKA,KAAK,CAACC,gBAAgB,CAAC;EAC5E,MAAMC,KAAK,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EACxB,MAAMC,CAAC,GAAG,IAAAC,UAAI,EAAC,CAAC;EAEhB,MAAMC,mBAAmB,GAAG,MAAAA,CAAA,KAAY;IACtC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;EAAA,CACD;EAED,oBACE,IAAAjB,WAAA,CAAAkB,IAAA,EAAC3B,sBAAA,CAAA4B,wBAAwB;IAAAC,QAAA,gBACvB,IAAApB,WAAA,CAAAqB,GAAA,EAAC7B,qBAAA,CAAAW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AC5B,IAAAf,WAAA,CAAAqB,GAAA,EAACzB,uBAAA,CAAAyC,uBAAuB;YAAAjB,QAAA,EACrBL,CAAC,CAAC,uCAAuC;UAAC,CACpB,CAAC;QAAA,CACI,CAAC,eACjC,IAAAf,WAAA,CAAAkB,IAAA,EAACtB,uBAAA,CAAA0C,uBAAuB;UACtBC,OAAO,EAAE9B,MAAM,EAAE+B,MAAM,EAAEC,SAAS,IAAI5B,KAAK,CAAC6B,gBAAiB;UAAAtB,QAAA,gBAE7D,IAAApB,WAAA,CAAAqB,GAAA,EAACxB,YAAA,CAAAS,IAAI;YAAAc,QAAA,eACH,IAAApB,WAAA,CAAAqB,GAAA,EAAC1B,MAAA,CAAAgD,QAAQ;cAACP,KAAK,EAAEvB,KAAK,CAACoB;YAAQ,CAAE;UAAC,CAC9B,CAAC,eACP,IAAAjC,WAAA,CAAAqB,GAAA,EAACzB,uBAAA,CAAAgD,sBAAsB;YAAAxB,QAAA,EACpBL,CAAC,CAAC,sCAAsC;UAAC,CACpB,CAAC;QAAA,CACF,CAAC,eAC1B,IAAAf,WAAA,CAAAqB,GAAA,EAACzB,uBAAA,CAAAmC,0BAA0B;UACzBC,WAAW,EAAEnB,KAAK,CAACgC,MAAO;UAC1BV,IAAI,EAAEpB,CAAC,CAAC,wBAAwB,CAAE;UAClCqB,KAAK,EAAEvB,KAAK,CAACgC;QAAO,CACrB,CAAC;MAAA,CAC2B,CAAC;IAAA,CACH,CAAC;EAAA,CACR,CAAC;AAE/B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA5C,OAAA,GAEaI,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_styledModalComponents","_ModalHeaderComponent","_interopRequireDefault","_reactRedux","_native","_icons","_user","_SharedStyledComponents","_reactNative","FileSystem","_useTheme","_useT","_useLogout","_ToastContext","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","InfoPanel","styled","View","ManageDataModal","handleCloseModal","config","useSelector","state","chatSettingStore","theme","useTheme","useT","performLogout","useLogout","showToast","useToast","isDownloading","setIsDownloading","useState","isDeleting","setIsDeleting","showError","message","id","Date","now","toString","title","type","handleDownloadClick","fileName","download","downloadMyDataExport","cacheDirectory","Platform","OS","saf","StorageAccessFramework","perm","requestDirectoryPermissionsAsync","granted","base64","readAsStringAsync","uri","encoding","EncodingType","Base64","destUri","createFileAsync","directoryUri","replace","mimeType","writeAsStringAsync","Share","share","url","err","console","error","deleteAccount","deleteMe","logout","onAfterLogout","warn","handleDeleteClick","Alert","alert","text","style","onPress","jsxs","ModalContainerFullScreen","children","jsx","headerTitle","SharedSettingsScrollBody","SharedSettingsCenterContainer","SharedSettingsColumnContainer","SharedSettingsSectionContainer","SharedSettingsStyledLabel","LabelData","fontSize","textAlign","SharedSettingsStyledButton","borderColor","primary","loading","color","SharedSettingsLabelData","SharedSettingsInfoPanel","bgColor","surfaceHighlight","InfoIcon","SharedSettingsInfoText","danger","_default","exports"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/ManageDataModal/ManageDataModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAIA,IAAAE,qBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AAIA,IAAAQ,uBAAA,GAAAR,OAAA;AAWA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAX,uBAAA,CAAAC,OAAA;AACA,IAAAW,SAAA,GAAAX,OAAA;AACA,IAAAY,KAAA,GAAAZ,OAAA;AACA,IAAAa,UAAA,GAAAb,OAAA;AACA,IAAAc,a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CAAC,eACjC,IAAAJ,WAAA,CAAA0F,IAAA,EAACjG,uBAAA,CAAAoH,uBAAuB;YACtBC,OAAO,EAAEjF,KAAK,CAACkF,gBAAiB;YAAAnB,QAAA,gBAEhC,IAAA5F,WAAA,CAAA6F,GAAA,EAACnG,YAAA,CAAA4B,IAAI;cAAAsE,QAAA,eACH,IAAA5F,WAAA,CAAA6F,GAAA,EAACtG,MAAA,CAAAyH,QAAQ;gBAACL,KAAK,EAAE9E,KAAK,CAAC4E;cAAQ,CAAE;YAAC,CAC9B,CAAC,eACP,IAAAzG,WAAA,CAAA6F,GAAA,EAACpG,uBAAA,CAAAwH,sBAAsB;cAAArB,QAAA,EACpBxF,CAAC,CAAC,sCAAsC;YAAC,CACpB,CAAC;UAAA,CACF,CAAC,eAC1B,IAAAJ,WAAA,CAAA6F,GAAA,EAACpG,uBAAA,CAAA8G,0BAA0B;YACzBC,WAAW,EAAE3E,KAAK,CAACqF,MAAO;YAC1BzB,OAAO,EAAEL,iBAAkB;YAC3BsB,OAAO,EAAEnE,UAAW;YACpBgD,IAAI,EAAEnF,CAAC,CAAC,wBAAwB,CAAE;YAClCuG,KAAK,EAAE9E,KAAK,CAACqF;UAAO,CACrB,CAAC;QAAA,CAC2B,CAAC;MAAA,CACH;IAAC,CACR,CAAC;EAAA,CACH,CAAC;AAE/B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjH,OAAA,GAEaoB,eAAe","ignoreList":[]}
@@ -21,20 +21,22 @@ const ProfileSharesModal = ({
21
21
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalHeaderComponent.default, {
22
22
  handleCloseModal: handleCloseModal,
23
23
  headerTitle: 'Profile Shares'
24
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.CenterContainer, {
25
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsSectionContainer, {
26
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
27
- children: "Current Profile Shares"
28
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsLabelData, {
29
- children: "Listed below are your currently active profile sharing links. You can share or delete them."
30
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.BorderedContainer, {
31
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoPanel, {
32
- bgColor: config?.colors?.secondary,
33
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoText, {
34
- children: "There are no shares yet, or you can add them by clicking the \u201CAdd New Share\u201D button"
24
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsScrollBody, {
25
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.CenterContainer, {
26
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsSectionContainer, {
27
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
28
+ children: "Current Profile Shares"
29
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsLabelData, {
30
+ children: "Listed below are your currently active profile sharing links. You can share or delete them."
31
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.BorderedContainer, {
32
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoPanel, {
33
+ bgColor: config?.colors?.secondary,
34
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsInfoText, {
35
+ children: "There are no shares yet, or you can add them by clicking the \u201CAdd New Share\u201D button"
36
+ })
35
37
  })
36
- })
37
- })]
38
+ })]
39
+ })
38
40
  })
39
41
  })]
40
42
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_styledModalComponents","_ModalHeaderComponent","_reactRedux","_SharedStyledComponents","_jsxRuntime","e","__esModule","default","ProfileSharesModal","handleCloseModal","config","useSelector","state","chatSettingStore","jsxs","ModalContainerFullScreen","children","jsx","headerTitle","CenterContainer","SharedSettingsSectionContainer","SharedSettingsStyledLabel","SharedSettingsLabelData","BorderedContainer","SharedSettingsInfoPanel","bgColor","colors","secondary","SharedSettingsInfoText","_default","exports"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/ProfileShares/ProfileShares.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAaA,IAAAE,qBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,uBAAA,GAAAJ,OAAA;AAMmC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMnC,MAAMG,kBAAqD,GAAGA,CAAC;EAC7DC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,uBAAW,EAAEC,KAAgB,IAAKA,KAAK,CAACC,gBAAgB,CAAC;EAE5E,oBACE,IAAAT,WAAA,CAAAU,IAAA,EAACd,sBAAA,CAAAe,wBAAwB;IAAAC,QAAA,gBACvB,IAAAZ,WAAA,CAAAa,GAAA,EAAChB,qBAAA,CAAAM,OAAoB;MACnBE,gBAAgB,EAAEA,gBAAiB;MACnCS,WAAW,EAAE;IAAiB,CAC/B,CAAC,eACF,IAAAd,WAAA,CAAAa,GAAA,EAACjB,sBAAA,CAAAmB,eAAe;MAAAH,QAAA,eACd,IAAAZ,WAAA,CAAAU,IAAA,EAACX,uBAAA,CAAAiB,8BAA8B;QAAAJ,QAAA,gBAC7B,IAAAZ,WAAA,CAAAa,GAAA,EAACd,uBAAA,CAAAkB,yBAAyB;UAAAL,QAAA,EAAC;QAE3B,CAA2B,CAAC,eAC5B,IAAAZ,WAAA,CAAAa,GAAA,EAACd,uBAAA,CAAAmB,uBAAuB;UAAAN,QAAA,EAAC;QAGzB,CAAyB,CAAC,eAC1B,IAAAZ,WAAA,CAAAa,GAAA,EAACjB,sBAAA,CAAAuB,iBAAiB;UAAAP,QAAA,eAChB,IAAAZ,WAAA,CAAAa,GAAA,EAACd,uBAAA,CAAAqB,uBAAuB;YAACC,OAAO,EAAEf,MAAM,EAAEgB,MAAM,EAAEC,SAAU;YAAAX,QAAA,eAC1D,IAAAZ,WAAA,CAAAa,GAAA,EAACd,uBAAA,CAAAyB,sBAAsB;cAAAZ,QAAA,EAAC;YAGxB,CAAwB;UAAC,CACF;QAAC,CACT,CAAC;MAAA,CACU;IAAC,CAClB,CAAC;EAAA,CACM,CAAC;AAE/B,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,CAAAvB,OAAA,GAEaC,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_styledModalComponents","_ModalHeaderComponent","_reactRedux","_SharedStyledComponents","_jsxRuntime","e","__esModule","default","ProfileSharesModal","handleCloseModal","config","useSelector","state","chatSettingStore","jsxs","ModalContainerFullScreen","children","jsx","headerTitle","SharedSettingsScrollBody","CenterContainer","SharedSettingsSectionContainer","SharedSettingsStyledLabel","SharedSettingsLabelData","BorderedContainer","SharedSettingsInfoPanel","bgColor","colors","secondary","SharedSettingsInfoText","_default","exports"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/ProfileShares/ProfileShares.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAaA,IAAAE,qBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,uBAAA,GA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A0B,sBAAsB;gBAAAb,QAAA,EAAC;cAGxB,CAAwB;YAAC,CACF;UAAC,CACT,CAAC;QAAA,CACU;MAAC,CAClB;IAAC,CACM,CAAC;EAAA,CACH,CAAC;AAE/B,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAxB,OAAA,GAEaC,kBAAkB","ignoreList":[]}
@@ -27,65 +27,67 @@ const ReferralsModal = ({
27
27
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalHeaderComponent.default, {
28
28
  handleCloseModal: handleCloseModal,
29
29
  headerTitle: 'Referrals'
30
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.CenterContainer, {
31
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ReferalsIcon, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
32
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
33
- children: "Gift friends 25"
34
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.SendCoinIcon, {
30
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsScrollBody, {
31
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.CenterContainer, {
32
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ReferalsIcon, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
33
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
34
+ children: "Gift friends 25"
35
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.SendCoinIcon, {
36
+ style: {
37
+ width: 24,
38
+ height: 24
39
+ }
40
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
41
+ children: "and receive 25"
42
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.SendCoinIcon, {
43
+ style: {
44
+ width: 24,
45
+ height: 24
46
+ }
47
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
48
+ style: {
49
+ color: theme.text
50
+ },
51
+ children: "."
52
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
53
+ children: "Send friends invite with your personal invitation code."
54
+ })]
55
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsColumnContainer, {
35
56
  style: {
36
- width: 24,
37
- height: 24
38
- }
39
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
40
- children: "and receive 25"
41
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.SendCoinIcon, {
42
- style: {
43
- width: 24,
44
- height: 24
45
- }
46
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
57
+ width: '100%'
58
+ },
59
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
60
+ children: "Your invitation code"
61
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledInputComponents.StyledInput, {
62
+ color: config?.colors?.primary || theme.primary,
63
+ placeholder: "Your invitation code"
64
+ // label={'About'}
65
+ // value={message}
66
+ // onChange={handleInputChange}
67
+ // onKeyDown={handleKeyDown}
68
+ // onFocus={handleFocus}
69
+ // onBlur={handleBlur}
70
+ // disabled={isLoading}
71
+ })]
72
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsColumnContainer, {
47
73
  style: {
48
- color: theme.text
74
+ width: '100%'
49
75
  },
50
- children: "."
51
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
52
- children: "Send friends invite with your personal invitation code."
53
- })]
54
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsColumnContainer, {
55
- style: {
56
- width: '100%'
57
- },
58
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
59
- children: "Your invitation code"
60
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledInputComponents.StyledInput, {
61
- color: config?.colors?.primary || theme.primary,
62
- placeholder: "Your invitation code"
63
- // label={'About'}
64
- // value={message}
65
- // onChange={handleInputChange}
66
- // onKeyDown={handleKeyDown}
67
- // onFocus={handleFocus}
68
- // onBlur={handleBlur}
69
- // disabled={isLoading}
70
- })]
71
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SharedStyledComponents.SharedSettingsColumnContainer, {
72
- style: {
73
- width: '100%'
74
- },
75
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
76
- children: "Or enter your referral code to earn coins"
77
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledInputComponents.StyledInput, {
78
- color: config?.colors?.primary || theme.primary,
79
- placeholder: "Your referral code"
80
- // label={'About'}
81
- // value={message}
82
- // onChange={handleInputChange}
83
- // onKeyDown={handleKeyDown}
84
- // onFocus={handleFocus}
85
- // onBlur={handleBlur}
86
- // disabled={isLoading}
76
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SharedStyledComponents.SharedSettingsStyledLabel, {
77
+ children: "Or enter your referral code to earn coins"
78
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledInputComponents.StyledInput, {
79
+ color: config?.colors?.primary || theme.primary,
80
+ placeholder: "Your referral code"
81
+ // label={'About'}
82
+ // value={message}
83
+ // onChange={handleInputChange}
84
+ // onKeyDown={handleKeyDown}
85
+ // onFocus={handleFocus}
86
+ // onBlur={handleBlur}
87
+ // disabled={isLoading}
88
+ })]
87
89
  })]
88
- })]
90
+ })
89
91
  })]
90
92
  });
91
93
  };