@churchapps/apphelper 0.5.1 → 0.5.3
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/components/Loading.d.ts +1 -0
- package/dist/components/Loading.d.ts.map +1 -1
- package/dist/components/Loading.js +1 -45
- package/dist/components/Loading.js.map +1 -1
- package/dist/components/notes/Notes.js +27 -27
- package/dist/helpers/AnalyticsHelper.d.ts.map +1 -1
- package/dist/helpers/AnalyticsHelper.js +21 -6
- package/dist/helpers/AnalyticsHelper.js.map +1 -1
- package/dist/public/css/cropper.css +309 -309
- package/dist/public/css/styles.css +111 -111
- package/dist/public/locales/de.json +270 -0
- package/dist/public/locales/en.json +277 -0
- package/dist/public/locales/es.json +272 -0
- package/dist/public/locales/fr.json +270 -0
- package/dist/public/locales/hi.json +270 -0
- package/dist/public/locales/it.json +270 -0
- package/dist/public/locales/ko.json +270 -0
- package/dist/public/locales/no.json +270 -0
- package/dist/public/locales/pt.json +270 -0
- package/dist/public/locales/ru.json +270 -0
- package/dist/public/locales/tl.json +270 -0
- package/dist/public/locales/zh.json +270 -0
- package/package.json +72 -72
- package/public/css/cropper.css +309 -309
- package/public/css/styles.css +111 -111
- package/public/locales/de.json +269 -269
- package/public/locales/en.json +276 -276
- package/public/locales/es.json +272 -272
- package/public/locales/fr.json +269 -269
- package/public/locales/hi.json +269 -269
- package/public/locales/it.json +269 -269
- package/public/locales/ko.json +269 -269
- package/public/locales/no.json +269 -269
- package/public/locales/pt.json +269 -269
- package/public/locales/ru.json +269 -269
- package/public/locales/tl.json +269 -269
- package/public/locales/zh.json +269 -269
- package/src/components/DisplayBox.tsx +83 -83
- package/src/components/ErrorMessages.tsx +28 -28
- package/src/components/ExportLink.tsx +81 -81
- package/src/components/FloatingSupport.tsx +18 -18
- package/src/components/FormCardPayment.tsx +184 -184
- package/src/components/FormSubmissionEdit.tsx +168 -168
- package/src/components/HelpIcon.tsx +12 -12
- package/src/components/ImageEditor.tsx +161 -161
- package/src/components/InputBox.tsx +96 -96
- package/src/components/Loading.tsx +31 -77
- package/src/components/PageHeader.tsx +110 -110
- package/src/components/PersonAvatar.tsx +77 -77
- package/src/components/QuestionEdit.tsx +99 -99
- package/src/components/SmallButton.tsx +42 -42
- package/src/components/SupportModal.tsx +32 -32
- package/src/components/TabPanel.tsx +28 -28
- package/src/components/gallery/GalleryModal.tsx +173 -173
- package/src/components/gallery/StockPhotos.tsx +95 -95
- package/src/components/gallery/index.ts +1 -1
- package/src/components/header/Banner.tsx +11 -11
- package/src/components/header/PrimaryMenu.tsx +100 -100
- package/src/components/header/SecondaryMenu.tsx +23 -23
- package/src/components/header/SecondaryMenuAlt.tsx +40 -40
- package/src/components/header/SiteHeader.tsx +207 -207
- package/src/components/header/SupportDrawer.tsx +111 -111
- package/src/components/header/index.tsx +2 -2
- package/src/components/index.tsx +20 -20
- package/src/components/notes/AddNote.tsx +180 -180
- package/src/components/notes/Note.tsx +68 -68
- package/src/components/notes/Notes.tsx +208 -208
- package/src/components/notes/index.ts +3 -3
- package/src/components/wrapper/AppList.tsx +19 -19
- package/src/components/wrapper/ChurchList.tsx +154 -154
- package/src/components/wrapper/NavItem.tsx +47 -47
- package/src/components/wrapper/NewPrivateMessage.tsx +253 -253
- package/src/components/wrapper/Notifications.tsx +223 -223
- package/src/components/wrapper/PrivateMessageDetails.tsx +112 -112
- package/src/components/wrapper/PrivateMessages.tsx +576 -576
- package/src/components/wrapper/UserMenu.tsx +383 -383
- package/src/components/wrapper/index.tsx +8 -8
- package/src/helpers/AnalyticsHelper.ts +44 -32
- package/src/helpers/AppearanceHelper.ts +73 -73
- package/src/helpers/ArrayHelper.ts +87 -87
- package/src/helpers/CurrencyHelper.ts +10 -10
- package/src/helpers/DateHelper.ts +104 -104
- package/src/helpers/ErrorHelper.ts +43 -43
- package/src/helpers/EventHelper.ts +49 -49
- package/src/helpers/FileHelper.ts +31 -31
- package/src/helpers/Locale.ts +457 -457
- package/src/helpers/NotificationService.ts +296 -296
- package/src/helpers/PersonHelper.ts +62 -62
- package/src/helpers/SlugHelper.ts +37 -37
- package/src/helpers/SocketHelper.ts +296 -296
- package/src/helpers/UniqueIdHelper.ts +36 -36
- package/src/helpers/UserHelper.ts +107 -107
- package/src/helpers/createEmotionCache.ts +17 -17
- package/src/helpers/index.ts +58 -58
- package/src/hooks/index.ts +3 -3
- package/src/hooks/useMountedState.ts +16 -16
- package/src/hooks/useNotifications.ts +93 -93
- package/src/index.ts +2 -2
- package/src/types/interface-extensions.d.ts +11 -11
- package/tsconfig.json +31 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../src/components/Loading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../src/components/Loading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,8BAA8B,CAAC;AAEtC,UAAU,KAAK;IAAG,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;AAEnF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsBnC,CAAA"}
|
|
@@ -1,51 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Dots } from "react-activity";
|
|
4
|
-
|
|
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
|
-
`;
|
|
42
|
-
// Add styles to document head if not already present
|
|
43
|
-
if (typeof document !== 'undefined' && !document.getElementById('activity-styles')) {
|
|
44
|
-
const style = document.createElement('style');
|
|
45
|
-
style.id = 'activity-styles';
|
|
46
|
-
style.textContent = activityStyles;
|
|
47
|
-
document.head.appendChild(style);
|
|
48
|
-
}
|
|
4
|
+
import "react-activity/dist/Dots.css";
|
|
49
5
|
export const Loading = (props) => {
|
|
50
6
|
const getContents = () => {
|
|
51
7
|
const text = (props.loadingText) ? props.loadingText : "Loading";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.js","sourceRoot":"","sources":["../../src/components/Loading.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Loading.js","sourceRoot":"","sources":["../../src/components/Loading.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,8BAA8B,CAAC;AAItC,MAAM,CAAC,MAAM,OAAO,GAAoB,CAAC,KAAK,EAAE,EAAE;IAEhD,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAA;QAChE,MAAM,KAAK,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAA;QAClD,IAAI,MAAM,GAAG,8BAAE,KAAC,IAAI,IAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,EAAA,YAAG,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,YAAG,IAAI,GAAK,IAAG,CAAA;QACrH,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,IAAI;gBACP,MAAM,GAAG,8BAAE,KAAC,IAAI,IAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,EAAA,YAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,YAAG,IAAI,GAAK,IAAG,CAAA;gBAC/H,MAAM;YACR,KAAK,IAAI;gBACP,MAAM,GAAG,8BAAE,KAAC,IAAI,IAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,EAAA,YAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,YAAG,IAAI,GAAK,IAAG,CAAA;gBAC/H,MAAM;QACV,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAA;IAED,OAAO,CACL,cAAK,EAAE,EAAC,mBAAmB,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,YAC7E,WAAW,EAAE,GACV,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -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,
|
|
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
|
-
|
|
10
|
-
|
|
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
|
-
|
|
16
|
-
|
|
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
|
-
|
|
22
|
-
|
|
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;
|
|
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,IAAI,CAAC;YACH,OAAO,CAAC,UAAU,CAAC,CAAC,EAAC,UAAU,EAAE,uBAAuB,CAAC,kBAAkB,EAAC,CAAC,CAAC,CAAC;YAC/E,EAAe,CAAC,WAAW,EAAE,CAAC;QAChC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;AACH,CAAC,AATU,CASV;AAEM,2BAAW,GAAG,GAAG,EAAE;IACxB,IAAI,uBAAuB,CAAC,kBAAkB,KAAK,EAAE,IAAI,OAAM,CAAC,MAAM,CAAC,KAAG,WAAW,EAAE,CAAC;QACtF,IAAI,CAAC;YACH,EAAI,CAAC,YAAY,EAAE,CAAC;YACpB,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;QACjG,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC;AACH,CAAC,AATiB,CASjB;AAEM,wBAAQ,GAAG,CAAC,QAAgB,EAAE,MAAc,EAAE,KAAa,EAAE,EAAE;IACpE,IAAI,uBAAuB,CAAC,kBAAkB,KAAK,EAAE,IAAI,OAAM,CAAC,MAAM,CAAC,KAAG,WAAW,EAAE,CAAC;QACtF,IAAI,CAAC;YACH,EAAI,CAAC,YAAY,EAAE,CAAC;YACpB,OAAO,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAC7C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,KAAK,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;AACH,CAAC,AATc,CASd;AAEc,4BAAY,GAAG,GAAG,EAAE;IACjC,MAAM,SAAS,GAAG,UAAU,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,CAAC;IACnE,IAAI,SAAS;QAAE,OAAO,CAAC,GAAG,CAAC,EAAC,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC;AACvD,CAAC,AAH0B,CAG1B"}
|