@churchapps/apphelper 0.5.1 → 0.5.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.
Files changed (97) hide show
  1. package/dist/components/Loading.js +36 -36
  2. package/dist/components/notes/Notes.js +27 -27
  3. package/dist/helpers/AnalyticsHelper.d.ts.map +1 -1
  4. package/dist/helpers/AnalyticsHelper.js +21 -6
  5. package/dist/helpers/AnalyticsHelper.js.map +1 -1
  6. package/dist/public/css/cropper.css +309 -309
  7. package/dist/public/css/styles.css +111 -111
  8. package/dist/public/locales/de.json +270 -0
  9. package/dist/public/locales/en.json +277 -0
  10. package/dist/public/locales/es.json +272 -0
  11. package/dist/public/locales/fr.json +270 -0
  12. package/dist/public/locales/hi.json +270 -0
  13. package/dist/public/locales/it.json +270 -0
  14. package/dist/public/locales/ko.json +270 -0
  15. package/dist/public/locales/no.json +270 -0
  16. package/dist/public/locales/pt.json +270 -0
  17. package/dist/public/locales/ru.json +270 -0
  18. package/dist/public/locales/tl.json +270 -0
  19. package/dist/public/locales/zh.json +270 -0
  20. package/package.json +72 -72
  21. package/public/css/cropper.css +309 -309
  22. package/public/css/styles.css +111 -111
  23. package/public/locales/de.json +269 -269
  24. package/public/locales/en.json +276 -276
  25. package/public/locales/es.json +272 -272
  26. package/public/locales/fr.json +269 -269
  27. package/public/locales/hi.json +269 -269
  28. package/public/locales/it.json +269 -269
  29. package/public/locales/ko.json +269 -269
  30. package/public/locales/no.json +269 -269
  31. package/public/locales/pt.json +269 -269
  32. package/public/locales/ru.json +269 -269
  33. package/public/locales/tl.json +269 -269
  34. package/public/locales/zh.json +269 -269
  35. package/src/components/DisplayBox.tsx +83 -83
  36. package/src/components/ErrorMessages.tsx +28 -28
  37. package/src/components/ExportLink.tsx +81 -81
  38. package/src/components/FloatingSupport.tsx +18 -18
  39. package/src/components/FormCardPayment.tsx +184 -184
  40. package/src/components/FormSubmissionEdit.tsx +168 -168
  41. package/src/components/HelpIcon.tsx +12 -12
  42. package/src/components/ImageEditor.tsx +161 -161
  43. package/src/components/InputBox.tsx +96 -96
  44. package/src/components/Loading.tsx +77 -77
  45. package/src/components/PageHeader.tsx +110 -110
  46. package/src/components/PersonAvatar.tsx +77 -77
  47. package/src/components/QuestionEdit.tsx +99 -99
  48. package/src/components/SmallButton.tsx +42 -42
  49. package/src/components/SupportModal.tsx +32 -32
  50. package/src/components/TabPanel.tsx +28 -28
  51. package/src/components/gallery/GalleryModal.tsx +173 -173
  52. package/src/components/gallery/StockPhotos.tsx +95 -95
  53. package/src/components/gallery/index.ts +1 -1
  54. package/src/components/header/Banner.tsx +11 -11
  55. package/src/components/header/PrimaryMenu.tsx +100 -100
  56. package/src/components/header/SecondaryMenu.tsx +23 -23
  57. package/src/components/header/SecondaryMenuAlt.tsx +40 -40
  58. package/src/components/header/SiteHeader.tsx +207 -207
  59. package/src/components/header/SupportDrawer.tsx +111 -111
  60. package/src/components/header/index.tsx +2 -2
  61. package/src/components/index.tsx +20 -20
  62. package/src/components/notes/AddNote.tsx +180 -180
  63. package/src/components/notes/Note.tsx +68 -68
  64. package/src/components/notes/Notes.tsx +208 -208
  65. package/src/components/notes/index.ts +3 -3
  66. package/src/components/wrapper/AppList.tsx +19 -19
  67. package/src/components/wrapper/ChurchList.tsx +154 -154
  68. package/src/components/wrapper/NavItem.tsx +47 -47
  69. package/src/components/wrapper/NewPrivateMessage.tsx +253 -253
  70. package/src/components/wrapper/Notifications.tsx +223 -223
  71. package/src/components/wrapper/PrivateMessageDetails.tsx +112 -112
  72. package/src/components/wrapper/PrivateMessages.tsx +576 -576
  73. package/src/components/wrapper/UserMenu.tsx +383 -383
  74. package/src/components/wrapper/index.tsx +8 -8
  75. package/src/helpers/AnalyticsHelper.ts +44 -32
  76. package/src/helpers/AppearanceHelper.ts +73 -73
  77. package/src/helpers/ArrayHelper.ts +87 -87
  78. package/src/helpers/CurrencyHelper.ts +10 -10
  79. package/src/helpers/DateHelper.ts +104 -104
  80. package/src/helpers/ErrorHelper.ts +43 -43
  81. package/src/helpers/EventHelper.ts +49 -49
  82. package/src/helpers/FileHelper.ts +31 -31
  83. package/src/helpers/Locale.ts +457 -457
  84. package/src/helpers/NotificationService.ts +296 -296
  85. package/src/helpers/PersonHelper.ts +62 -62
  86. package/src/helpers/SlugHelper.ts +37 -37
  87. package/src/helpers/SocketHelper.ts +296 -296
  88. package/src/helpers/UniqueIdHelper.ts +36 -36
  89. package/src/helpers/UserHelper.ts +107 -107
  90. package/src/helpers/createEmotionCache.ts +17 -17
  91. package/src/helpers/index.ts +58 -58
  92. package/src/hooks/index.ts +3 -3
  93. package/src/hooks/useMountedState.ts +16 -16
  94. package/src/hooks/useNotifications.ts +93 -93
  95. package/src/index.ts +2 -2
  96. package/src/types/interface-extensions.d.ts +11 -11
  97. package/tsconfig.json +31 -31
@@ -2,42 +2,42 @@
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Dots } from "react-activity";
4
4
  // Inline CSS for react-activity to avoid external dependencies
5
- const activityStyles = `
6
- .activity-loader {
7
- position: relative;
8
- display: inline-block;
9
- }
10
- .activity-dots {
11
- position: relative;
12
- display: inline-block;
13
- }
14
- .activity-dots > div {
15
- position: absolute;
16
- border-radius: 50%;
17
- animation: activity-dots 1.2s infinite ease-in-out;
18
- animation-fill-mode: both;
19
- }
20
- .activity-dots > div:nth-child(1) { animation-delay: -1.1s; }
21
- .activity-dots > div:nth-child(2) { animation-delay: -1.0s; }
22
- .activity-dots > div:nth-child(3) { animation-delay: -0.9s; }
23
- .activity-dots > div:nth-child(4) { animation-delay: -0.8s; }
24
- .activity-dots > div:nth-child(5) { animation-delay: -0.7s; }
25
- .activity-dots > div:nth-child(6) { animation-delay: -0.6s; }
26
- .activity-dots > div:nth-child(7) { animation-delay: -0.5s; }
27
- .activity-dots > div:nth-child(8) { animation-delay: -0.4s; }
28
- .activity-dots > div:nth-child(9) { animation-delay: -0.3s; }
29
- .activity-dots > div:nth-child(10) { animation-delay: -0.2s; }
30
- .activity-dots > div:nth-child(11) { animation-delay: -0.1s; }
31
- .activity-dots > div:nth-child(12) { animation-delay: 0s; }
32
-
33
- @keyframes activity-dots {
34
- 0%, 80%, 100% {
35
- transform: scale(0);
36
- }
37
- 40% {
38
- transform: scale(1);
39
- }
40
- }
5
+ const activityStyles = `
6
+ .activity-loader {
7
+ position: relative;
8
+ display: inline-block;
9
+ }
10
+ .activity-dots {
11
+ position: relative;
12
+ display: inline-block;
13
+ }
14
+ .activity-dots > div {
15
+ position: absolute;
16
+ border-radius: 50%;
17
+ animation: activity-dots 1.2s infinite ease-in-out;
18
+ animation-fill-mode: both;
19
+ }
20
+ .activity-dots > div:nth-child(1) { animation-delay: -1.1s; }
21
+ .activity-dots > div:nth-child(2) { animation-delay: -1.0s; }
22
+ .activity-dots > div:nth-child(3) { animation-delay: -0.9s; }
23
+ .activity-dots > div:nth-child(4) { animation-delay: -0.8s; }
24
+ .activity-dots > div:nth-child(5) { animation-delay: -0.7s; }
25
+ .activity-dots > div:nth-child(6) { animation-delay: -0.6s; }
26
+ .activity-dots > div:nth-child(7) { animation-delay: -0.5s; }
27
+ .activity-dots > div:nth-child(8) { animation-delay: -0.4s; }
28
+ .activity-dots > div:nth-child(9) { animation-delay: -0.3s; }
29
+ .activity-dots > div:nth-child(10) { animation-delay: -0.2s; }
30
+ .activity-dots > div:nth-child(11) { animation-delay: -0.1s; }
31
+ .activity-dots > div:nth-child(12) { animation-delay: 0s; }
32
+
33
+ @keyframes activity-dots {
34
+ 0%, 80%, 100% {
35
+ transform: scale(0);
36
+ }
37
+ 40% {
38
+ transform: scale(1);
39
+ }
40
+ }
41
41
  `;
42
42
  // Add styles to document head if not already present
43
43
  if (typeof document !== 'undefined' && !document.getElementById('activity-styles')) {
@@ -15,33 +15,33 @@ export function Notes(props) {
15
15
  if (!document.getElementById(styleId)) {
16
16
  const style = document.createElement('style');
17
17
  style.id = styleId;
18
- style.textContent = `
19
- .notes-scroll-container {
20
- scrollbar-width: thin;
21
- scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
22
- }
23
- .notes-scroll-container::-webkit-scrollbar {
24
- width: 12px;
25
- background: transparent;
26
- }
27
- .notes-scroll-container::-webkit-scrollbar-track {
28
- background: rgba(0, 0, 0, 0.1);
29
- border-radius: 6px;
30
- margin: 4px;
31
- }
32
- .notes-scroll-container::-webkit-scrollbar-thumb {
33
- background: rgba(0, 0, 0, 0.3);
34
- border-radius: 6px;
35
- border: 2px solid transparent;
36
- background-clip: content-box;
37
- }
38
- .notes-scroll-container::-webkit-scrollbar-thumb:hover {
39
- background: rgba(0, 0, 0, 0.5);
40
- background-clip: content-box;
41
- }
42
- .notes-scroll-container::-webkit-scrollbar-corner {
43
- background: transparent;
44
- }
18
+ style.textContent = `
19
+ .notes-scroll-container {
20
+ scrollbar-width: thin;
21
+ scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
22
+ }
23
+ .notes-scroll-container::-webkit-scrollbar {
24
+ width: 12px;
25
+ background: transparent;
26
+ }
27
+ .notes-scroll-container::-webkit-scrollbar-track {
28
+ background: rgba(0, 0, 0, 0.1);
29
+ border-radius: 6px;
30
+ margin: 4px;
31
+ }
32
+ .notes-scroll-container::-webkit-scrollbar-thumb {
33
+ background: rgba(0, 0, 0, 0.3);
34
+ border-radius: 6px;
35
+ border: 2px solid transparent;
36
+ background-clip: content-box;
37
+ }
38
+ .notes-scroll-container::-webkit-scrollbar-thumb:hover {
39
+ background: rgba(0, 0, 0, 0.5);
40
+ background-clip: content-box;
41
+ }
42
+ .notes-scroll-container::-webkit-scrollbar-corner {
43
+ background: transparent;
44
+ }
45
45
  `;
46
46
  document.head.appendChild(style);
47
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/AnalyticsHelper.ts"],"names":[],"mappings":"AAGA,qBAAa,eAAe;IAE1B,MAAM,CAAC,IAAI,aAKV;IAED,MAAM,CAAC,WAAW,aAKjB;IAED,MAAM,CAAC,QAAQ,GAAI,UAAU,MAAM,EAAE,QAAQ,MAAM,EAAE,QAAO,MAAM,UAKjE;IAED,OAAO,CAAC,MAAM,CAAC,YAAY,CAG1B;CAEF"}
1
+ {"version":3,"file":"AnalyticsHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/AnalyticsHelper.ts"],"names":[],"mappings":"AAGA,qBAAa,eAAe;IAE1B,MAAM,CAAC,IAAI,aASV;IAED,MAAM,CAAC,WAAW,aASjB;IAED,MAAM,CAAC,QAAQ,GAAI,UAAU,MAAM,EAAE,QAAQ,MAAM,EAAE,QAAO,MAAM,UASjE;IAED,OAAO,CAAC,MAAM,CAAC,YAAY,CAG1B;CAEF"}
@@ -6,20 +6,35 @@ export class AnalyticsHelper {
6
6
  _a = AnalyticsHelper;
7
7
  AnalyticsHelper.init = () => {
8
8
  if (CommonEnvironmentHelper.GoogleAnalyticsTag !== "" && typeof (window) !== "undefined") {
9
- ReactGA.initialize([{ trackingId: CommonEnvironmentHelper.GoogleAnalyticsTag }]);
10
- _a.logPageView();
9
+ try {
10
+ ReactGA.initialize([{ trackingId: CommonEnvironmentHelper.GoogleAnalyticsTag }]);
11
+ _a.logPageView();
12
+ }
13
+ catch (error) {
14
+ console.warn('Analytics initialization failed:', error);
15
+ }
11
16
  }
12
17
  };
13
18
  AnalyticsHelper.logPageView = () => {
14
19
  if (CommonEnvironmentHelper.GoogleAnalyticsTag !== "" && typeof (window) !== "undefined") {
15
- _a.setChurchKey();
16
- ReactGA.send({ hitType: "pageview", page: window.location.pathname + window.location.search });
20
+ try {
21
+ _a.setChurchKey();
22
+ ReactGA.send({ hitType: "pageview", page: window.location.pathname + window.location.search });
23
+ }
24
+ catch (error) {
25
+ console.warn('Analytics page view logging failed:', error);
26
+ }
17
27
  }
18
28
  };
19
29
  AnalyticsHelper.logEvent = (category, action, label) => {
20
30
  if (CommonEnvironmentHelper.GoogleAnalyticsTag !== "" && typeof (window) !== "undefined") {
21
- _a.setChurchKey();
22
- ReactGA.event({ category, action, label });
31
+ try {
32
+ _a.setChurchKey();
33
+ ReactGA.event({ category, action, label });
34
+ }
35
+ catch (error) {
36
+ console.warn('Analytics event logging failed:', error);
37
+ }
23
38
  }
24
39
  };
25
40
  AnalyticsHelper.setChurchKey = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsHelper.js","sourceRoot":"","sources":["../../src/helpers/AnalyticsHelper.ts"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE1E,MAAM,OAAO,eAAe;;;AAEnB,oBAAI,GAAG,GAAG,EAAE;IACjB,IAAI,uBAAuB,CAAC,kBAAkB,KAAK,EAAE,IAAI,OAAM,CAAC,MAAM,CAAC,KAAG,WAAW,EAAE,CAAC;QACtF,OAAO,CAAC,UAAU,CAAC,CAAC,EAAC,UAAU,EAAE,uBAAuB,CAAC,kBAAkB,EAAC,CAAC,CAAC,CAAC;QAC/E,EAAe,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;AACH,CAAC,AALU,CAKV;AAEM,2BAAW,GAAG,GAAG,EAAE;IACxB,IAAI,uBAAuB,CAAC,kBAAkB,KAAK,EAAE,IAAI,OAAM,CAAC,MAAM,CAAC,KAAG,WAAW,EAAE,CAAC;QACtF,EAAI,CAAC,YAAY,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IACjG,CAAC;AACH,CAAC,AALiB,CAKjB;AAEM,wBAAQ,GAAG,CAAC,QAAgB,EAAE,MAAc,EAAE,KAAa,EAAE,EAAE;IACpE,IAAI,uBAAuB,CAAC,kBAAkB,KAAK,EAA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