@bigbinary/neeto-commons-rn 2.0.2 → 2.1.0
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/align-deps-preset.js +84 -0
- package/lib/typescript/api/app_version.d.ts.map +1 -1
- package/lib/typescript/components/AppVersion.d.ts.map +1 -1
- package/lib/typescript/components/DevToolsBridge.d.ts +8 -0
- package/lib/typescript/components/DevToolsBridge.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/ToggleSwitch.d.ts.map +1 -1
- package/lib/typescript/components/constants.d.ts +1 -0
- package/lib/typescript/components/constants.d.ts.map +1 -1
- package/lib/typescript/config/axios/constants.d.ts +1 -0
- package/lib/typescript/config/axios/constants.d.ts.map +1 -1
- package/lib/typescript/config/axios/groupingKey.d.ts +12 -0
- package/lib/typescript/config/axios/groupingKey.d.ts.map +1 -0
- package/lib/typescript/config/axios/index.d.ts.map +1 -1
- package/lib/typescript/config/bugsnag.d.ts +1 -1
- package/lib/typescript/config/bugsnag.d.ts.map +1 -1
- package/lib/typescript/constants/index.d.ts +10 -0
- package/lib/typescript/constants/index.d.ts.map +1 -1
- package/lib/typescript/helpers/notifications/firebaseMessaging.android.d.ts +10 -0
- package/lib/typescript/helpers/notifications/firebaseMessaging.android.d.ts.map +1 -0
- package/lib/typescript/helpers/notifications/firebaseMessaging.d.ts +24 -0
- package/lib/typescript/helpers/notifications/firebaseMessaging.d.ts.map +1 -0
- package/lib/typescript/helpers/notifications/getDeviceToken.d.ts.map +1 -1
- package/lib/typescript/helpers/notifications/index.d.ts +1 -0
- package/lib/typescript/helpers/notifications/index.d.ts.map +1 -1
- package/lib/typescript/helpers/scale.d.ts +10 -0
- package/lib/typescript/helpers/scale.d.ts.map +1 -1
- package/lib/typescript/helpers/utils.d.ts.map +1 -1
- package/lib/typescript/hooks/query/useAppVersionApi.d.ts.map +1 -1
- package/lib/typescript/hooks/query/useRolesApi.d.ts.map +1 -1
- package/lib/typescript/providers/NeetoCommonsRNProvider.d.ts +8 -1
- package/lib/typescript/providers/NeetoCommonsRNProvider.d.ts.map +1 -1
- package/lib/typescript/screens/authentication/LoginScreen.d.ts.map +1 -1
- package/lib/typescript/screens/authentication/OTPVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/screens/authentication/Organization.d.ts.map +1 -1
- package/lib/typescript/screens/authentication/SubDomainScreen.d.ts.map +1 -1
- package/lib/typescript/screens/profile/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/screens/team_members/ProductSelect.d.ts.map +1 -1
- package/lib/typescript/screens/team_members/index.d.ts.map +1 -1
- package/lib/typescript/screens/team_members/utils.d.ts.map +1 -1
- package/lib/typescript/store/index.d.ts +3 -2
- package/lib/typescript/store/index.d.ts.map +1 -1
- package/lib/typescript/utils/apiHelpers.d.ts.map +1 -1
- package/metro-devtools.js +48 -0
- package/package.json +485 -16
- package/src/api/app_version.ts +42 -2
- package/src/components/AppVersion.ts +46 -30
- package/src/components/DevToolsBridge.ts +40 -0
- package/src/components/Header.tsx +3 -1
- package/src/components/NotificationIcon.tsx +1 -1
- package/src/components/ToggleSwitch.tsx +2 -1
- package/src/components/WorkspaceSwitcherPane.tsx +1 -1
- package/src/components/constants.ts +4 -0
- package/src/config/axios/constants.ts +3 -0
- package/src/config/axios/groupingKey.ts +25 -0
- package/src/config/axios/index.ts +7 -4
- package/src/config/bugsnag.ts +11 -1
- package/src/constants/index.ts +13 -0
- package/src/contexts/localization.tsx +1 -1
- package/src/helpers/notifications/firebaseMessaging.android.ts +21 -0
- package/src/helpers/notifications/firebaseMessaging.ts +37 -0
- package/src/helpers/notifications/getDeviceToken.ts +1 -2
- package/src/helpers/notifications/index.ts +1 -0
- package/src/helpers/notifications/registerBackgroundHandlers.ts +1 -1
- package/src/helpers/notifications/usePushNotification.ts +1 -1
- package/src/helpers/scale.ts +21 -3
- package/src/helpers/utils.ts +2 -1
- package/src/hooks/query/useAppVersionApi.ts +9 -0
- package/src/hooks/query/useRolesApi.ts +3 -1
- package/src/providers/NeetoCommonsRNProvider.tsx +23 -0
- package/src/screens/authentication/IncompleteOnboardingInfo.tsx +2 -2
- package/src/screens/authentication/LoginScreen.tsx +50 -39
- package/src/screens/authentication/OTPVerificationScreen.tsx +17 -41
- package/src/screens/authentication/Organization.tsx +2 -6
- package/src/screens/authentication/SubDomainScreen.tsx +38 -70
- package/src/screens/profile/ProfileScreen.tsx +2 -1
- package/src/screens/team_members/Card.tsx +1 -1
- package/src/screens/team_members/ProductSelect.tsx +6 -7
- package/src/screens/team_members/index.tsx +2 -1
- package/src/screens/team_members/utils.ts +3 -1
- package/src/store/index.ts +68 -1
- package/src/utils/apiHelpers.ts +4 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Shared align-deps preset for every neeto app, layered over
|
|
2
|
+
// microsoft/react-native (declare it after that preset in the app's
|
|
3
|
+
// package.json so per-capability entries here win):
|
|
4
|
+
//
|
|
5
|
+
// "rnx-kit": {
|
|
6
|
+
// "alignDeps": {
|
|
7
|
+
// "presets": [
|
|
8
|
+
// "microsoft/react-native",
|
|
9
|
+
// "@bigbinary/neeto-commons-rn/align-deps-preset"
|
|
10
|
+
// ],
|
|
11
|
+
// ...
|
|
12
|
+
//
|
|
13
|
+
// The neeto apps pin many packages deliberately — new-arch compatibility,
|
|
14
|
+
// patch-package patches, and a deferred react-navigation v7 migration — so
|
|
15
|
+
// the built-in profile's ranges are overridden to match the pins instead of
|
|
16
|
+
// widening them. `deps:check` then guards the pins against accidental
|
|
17
|
+
// drift, and keeps every app on the same versions.
|
|
18
|
+
module.exports = {
|
|
19
|
+
"0.80": {
|
|
20
|
+
// Exact pins from the RN 0.80.3 migration.
|
|
21
|
+
core: { name: "react-native", version: "^0.80.3" },
|
|
22
|
+
"core-android": { name: "react-native", version: "^0.80.3" },
|
|
23
|
+
"core-ios": { name: "react-native", version: "^0.80.3" },
|
|
24
|
+
"core/metro-config": {
|
|
25
|
+
name: "@react-native/metro-config",
|
|
26
|
+
version: "0.80.3",
|
|
27
|
+
devOnly: true,
|
|
28
|
+
},
|
|
29
|
+
"babel-preset-react-native": {
|
|
30
|
+
name: "@react-native/babel-preset",
|
|
31
|
+
version: "0.80.3",
|
|
32
|
+
devOnly: true,
|
|
33
|
+
},
|
|
34
|
+
"community/cli": {
|
|
35
|
+
name: "@react-native-community/cli",
|
|
36
|
+
version: "19.1.2",
|
|
37
|
+
capabilities: ["community/cli-android", "community/cli-ios"],
|
|
38
|
+
devOnly: true,
|
|
39
|
+
},
|
|
40
|
+
"community/cli-android": {
|
|
41
|
+
name: "@react-native-community/cli-platform-android",
|
|
42
|
+
version: "19.1.2",
|
|
43
|
+
devOnly: true,
|
|
44
|
+
},
|
|
45
|
+
"community/cli-ios": {
|
|
46
|
+
name: "@react-native-community/cli-platform-ios",
|
|
47
|
+
version: "19.1.2",
|
|
48
|
+
devOnly: true,
|
|
49
|
+
},
|
|
50
|
+
animation: { name: "react-native-reanimated", version: "3.19.5" },
|
|
51
|
+
gestures: { name: "react-native-gesture-handler", version: "2.30.1" },
|
|
52
|
+
"safe-area": { name: "react-native-safe-area-context", version: "5.8.1" },
|
|
53
|
+
screens: { name: "react-native-screens", version: "4.18.0" },
|
|
54
|
+
svg: { name: "react-native-svg", version: "15.15.5" },
|
|
55
|
+
// Pinned because patch-package patches this exact version.
|
|
56
|
+
html: { name: "react-native-render-html", version: "6.3.4" },
|
|
57
|
+
// Ahead of the built-in profile on purpose (commons requires v3).
|
|
58
|
+
storage: {
|
|
59
|
+
name: "@react-native-async-storage/async-storage",
|
|
60
|
+
version: "^3.1.1",
|
|
61
|
+
},
|
|
62
|
+
"datetime-picker": {
|
|
63
|
+
name: "@react-native-community/datetimepicker",
|
|
64
|
+
version: "^9.1.0",
|
|
65
|
+
},
|
|
66
|
+
webview: { name: "react-native-webview", version: "^14.0.1" },
|
|
67
|
+
netinfo: { name: "@react-native-community/netinfo", version: "^12.0.0" },
|
|
68
|
+
// Behind the built-in profile on purpose: react-navigation v7
|
|
69
|
+
// migration is deferred (Rozenite nav plugin waits on it too).
|
|
70
|
+
"navigation/native": {
|
|
71
|
+
name: "@react-navigation/native",
|
|
72
|
+
version: "^6.1.9",
|
|
73
|
+
},
|
|
74
|
+
// Only used by the jest environment in the apps, so devOnly — the
|
|
75
|
+
// built-in profile wants it in dependencies.
|
|
76
|
+
"react-dom": {
|
|
77
|
+
name: "react-dom",
|
|
78
|
+
version: "19.1.0",
|
|
79
|
+
capabilities: ["react"],
|
|
80
|
+
devOnly: true,
|
|
81
|
+
},
|
|
82
|
+
jest: { name: "jest", version: "^29.6.3", devOnly: true },
|
|
83
|
+
},
|
|
84
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_version.d.ts","sourceRoot":"","sources":["../../../src/api/app_version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app_version.d.ts","sourceRoot":"","sources":["../../../src/api/app_version.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AA6CD,QAAA,MAAM,aAAa;;CAAY,CAAC;AAEhC,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppVersion.d.ts","sourceRoot":"","sources":["../../../src/components/AppVersion.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppVersion.d.ts","sourceRoot":"","sources":["../../../src/components/AppVersion.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,UAAU,YA0ItB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type QueryClient } from "@tanstack/react-query";
|
|
2
|
+
declare const DevToolsBridge: ({ queryClient }: {
|
|
3
|
+
queryClient?: QueryClient;
|
|
4
|
+
}) => import("react").FunctionComponentElement<{
|
|
5
|
+
queryClient: QueryClient;
|
|
6
|
+
}> | null;
|
|
7
|
+
export default DevToolsBridge;
|
|
8
|
+
//# sourceMappingURL=DevToolsBridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DevToolsBridge.d.ts","sourceRoot":"","sources":["../../../src/components/DevToolsBridge.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAmBzD,QAAA,MAAM,cAAc,GAAI,iBAAiB;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE;iBAXvD,WAAW;SAoBzB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AA0B5D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,4JAYpB,WAAW,sBAkFb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAcjD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,eAAO,MAAM,YAAY,GAAI,qCAI1B,iBAAiB,sBA4CnB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const ANDROID_APP_LINK: string;
|
|
2
2
|
export declare const IOS_PROD_APP_LINK: string;
|
|
3
3
|
export declare const IOS_STAGING_APP_LINK: string;
|
|
4
|
+
export declare const APP_VERSION_RECHECK_INTERVAL: number;
|
|
4
5
|
export declare const TOGGLE_KNOB_TRAVEL: number;
|
|
5
6
|
export declare const TOGGLE_ANIMATION_DURATION = 300;
|
|
6
7
|
export declare const PREFERENCE_TITLE_LINE_HEIGHT: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,QAA6E,CAAC;AAE3G,eAAO,MAAM,iBAAiB,QAAuD,CAAC;AAEtF,eAAO,MAAM,oBAAoB,QAA6D,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,QAA6E,CAAC;AAE3G,eAAO,MAAM,iBAAiB,QAAuD,CAAC;AAEtF,eAAO,MAAM,oBAAoB,QAA6D,CAAC;AAI/F,eAAO,MAAM,4BAA4B,QAAiB,CAAC;AAG3D,eAAO,MAAM,kBAAkB,QAAoB,CAAC;AACpD,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAG7C,eAAO,MAAM,4BAA4B,QAAoB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CaseConversionOptions } from "./types";
|
|
2
2
|
export declare const DEFAULT_CASE_CONVERSION: boolean;
|
|
3
|
+
export declare const UUID_SEGMENT: RegExp;
|
|
3
4
|
export declare const shouldEnableCaseConversion: (options?: CaseConversionOptions) => boolean;
|
|
4
5
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,uBAAuB,SAA2C,CAAC;AAEhF,eAAO,MAAM,0BAA0B,GACrC,UAAS,qBAA0B,YASpC,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,uBAAuB,SAA2C,CAAC;AAEhF,eAAO,MAAM,YAAY,QAC0C,CAAC;AAEpE,eAAO,MAAM,0BAA0B,GACrC,UAAS,qBAA0B,YASpC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collapses a request URL to its route shape for Bugsnag grouping: ids become
|
|
3
|
+
* `:id` and the query string is dropped.
|
|
4
|
+
*
|
|
5
|
+
* A 403 on ticket 2732 and a 403 on ticket 2698 are one bug, but grouping on
|
|
6
|
+
* the raw URL files them as separate errors — and a list endpoint whose filters
|
|
7
|
+
* ride in the query string ends up naming its group with ~900 characters of
|
|
8
|
+
* encoded params. The exact URL is still reported under
|
|
9
|
+
* `axios_error_details.requestUrl`, so nothing is lost by grouping on the shape.
|
|
10
|
+
*/
|
|
11
|
+
export declare const normalizeUrlForGrouping: (url?: string) => string;
|
|
12
|
+
//# sourceMappingURL=groupingKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groupingKey.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/groupingKey.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,WASnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/index.ts"],"names":[],"mappings":"AAIA,OAAc,EACZ,KAAK,UAAU,EAEf,KAAK,0BAA0B,EAChC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/index.ts"],"names":[],"mappings":"AAIA,OAAc,EACZ,KAAK,UAAU,EAEf,KAAK,0BAA0B,EAChC,MAAM,OAAO,CAAC;AAoBf,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AA2CD,eAAO,MAAM,cAAc,GAAI,eAAe;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,WACG,CAAC;AAgCvE,eAAO,MAAM,eAAe,GAC1B,MAAM,YAAY,GAAG,SAAS,EAC9B,OAAO,UAAU,KAChB,MAMF,CAAC;AA+IF,eAAO,MAAM,wBAAwB,YAUpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,SAAS,0BAA0B,kDAepC,CAAC;AAEF,eAAO,MAAM,cAAc,YAI1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type NotifiableError } from "@bugsnag/react-native";
|
|
2
|
-
export declare const bugsnagErrorHandler: (err: NotifiableError, origin: string) => void;
|
|
2
|
+
export declare const bugsnagErrorHandler: (err: NotifiableError, origin: string, groupingHash?: string) => void;
|
|
3
3
|
export declare const configureBugsnag: () => void;
|
|
4
4
|
//# sourceMappingURL=bugsnag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bugsnag.d.ts","sourceRoot":"","sources":["../../../src/config/bugsnag.ts"],"names":[],"mappings":"AACA,OAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAStE,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"bugsnag.d.ts","sourceRoot":"","sources":["../../../src/config/bugsnag.ts"],"names":[],"mappings":"AACA,OAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAStE,eAAO,MAAM,mBAAmB,GAC9B,KAAK,eAAe,EACpB,QAAQ,MAAM,EAGd,eAAe,MAAM,SAkBtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAsB5B,CAAC"}
|
|
@@ -5,4 +5,14 @@ export declare const STORAGE_KEYS: {
|
|
|
5
5
|
readonly NOTIFICATION_PERMISSION_REQUESTED: "notificationPermissionRequested";
|
|
6
6
|
};
|
|
7
7
|
export declare const DEFAULT_PAGE_SIZE = 30;
|
|
8
|
+
/**
|
|
9
|
+
* A failing app_versions endpoint affects every launch of every install, so it
|
|
10
|
+
* is reported at most once per window per session — enough to see the outage
|
|
11
|
+
* and its trend, not enough to bury the rest of the project.
|
|
12
|
+
*/
|
|
13
|
+
export declare const APP_VERSION_ERROR_REPORT_INTERVAL: number;
|
|
14
|
+
/** One Bugsnag group for every app_versions failure, whatever the status. */
|
|
15
|
+
export declare const APP_VERSION_ERROR_GROUPING_HASH = "app-version-check-failed";
|
|
16
|
+
/** Design baseline: a ~5" phone, the width every scaled size was drawn against. */
|
|
17
|
+
export declare const GUIDELINE_BASE_WIDTH = 350;
|
|
8
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,eAAO,MAAM,iBAAiB,KAAK,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,QAAiB,CAAC;AAEhE,6EAA6E;AAC7E,eAAO,MAAM,+BAA+B,6BAA6B,CAAC;AAE1E,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,MAAM,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import firebaseMessaging, { type FirebaseMessagingTypes } from "@react-native-firebase/messaging";
|
|
2
|
+
/**
|
|
3
|
+
* Android build of the Firebase seam — the only module in the package that
|
|
4
|
+
* names @react-native-firebase. See firebaseMessaging.ts for why the import
|
|
5
|
+
* cannot simply sit behind a platform check.
|
|
6
|
+
*/
|
|
7
|
+
export declare const messaging: typeof firebaseMessaging;
|
|
8
|
+
/** The notification that launched the app from a killed state, or null. */
|
|
9
|
+
export declare const getInitialFirebaseNotification: () => Promise<FirebaseMessagingTypes.RemoteMessage | null>;
|
|
10
|
+
//# sourceMappingURL=firebaseMessaging.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firebaseMessaging.android.d.ts","sourceRoot":"","sources":["../../../../src/helpers/notifications/firebaseMessaging.android.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,EAAE,EAGxB,KAAK,sBAAsB,EAC5B,MAAM,kCAAkC,CAAC;AAE1C;;;;GAIG;AAGH,eAAO,MAAM,SAAS,EAAE,OAAO,iBAAqC,CAAC;AAErE,2EAA2E;AAC3E,eAAO,MAAM,8BAA8B,QACrC,OAAO,CAAC,sBAAsB,CAAC,aAAa,GAAG,IAAI,CAGf,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { default as firebaseMessaging, FirebaseMessagingTypes } from "@react-native-firebase/messaging";
|
|
2
|
+
/**
|
|
3
|
+
* iOS/default build of the Firebase seam. Firebase is linked on Android only
|
|
4
|
+
* (react-native.config.js sets `platforms.ios = null`), so on iOS there is no
|
|
5
|
+
* RNFBAppModule — and @react-native-firebase/app constructs a native event
|
|
6
|
+
* emitter over it at *module scope*:
|
|
7
|
+
*
|
|
8
|
+
* export default new RNFBNativeEventEmitter();
|
|
9
|
+
*
|
|
10
|
+
* which throws "Native module RNFBAppModule not found" the moment anything
|
|
11
|
+
* imports the package. A `Platform.OS === "android"` guard around the call
|
|
12
|
+
* does not help: the import has already run. Every Firebase import therefore
|
|
13
|
+
* goes through this module, whose .android build is the only one that
|
|
14
|
+
* mentions the package.
|
|
15
|
+
*/
|
|
16
|
+
/** Never reached on iOS — every caller is behind a platform check. */
|
|
17
|
+
export declare const messaging: typeof firebaseMessaging;
|
|
18
|
+
/**
|
|
19
|
+
* The notification that launched the app from a killed state, or null. iOS
|
|
20
|
+
* has none to report: an APNs alert push is displayed by the OS and arrives
|
|
21
|
+
* through notify-kit, not Firebase.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getInitialFirebaseNotification: () => Promise<FirebaseMessagingTypes.RemoteMessage | null>;
|
|
24
|
+
//# sourceMappingURL=firebaseMessaging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firebaseMessaging.d.ts","sourceRoot":"","sources":["../../../../src/helpers/notifications/firebaseMessaging.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,OAAO,IAAI,iBAAiB,EAC5B,sBAAsB,EACvB,MAAM,kCAAkC,CAAC;AAE1C;;;;;;;;;;;;;GAaG;AAEH,sEAAsE;AACtE,eAAO,MAAM,SAAS,EAIL,OAAO,iBAAiB,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,QACrC,OAAO,CAAC,sBAAsB,CAAC,aAAa,GAAG,IAAI,CAChC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDeviceToken.d.ts","sourceRoot":"","sources":["../../../../src/helpers/notifications/getDeviceToken.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDeviceToken.d.ts","sourceRoot":"","sources":["../../../../src/helpers/notifications/getDeviceToken.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc,QAAO,OAAO,CAAC,MAAM,GAAG,IAAI,CAMtD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { usePushNotification } from "./usePushNotification";
|
|
2
2
|
export { registerBackgroundHandlers } from "./registerBackgroundHandlers";
|
|
3
3
|
export { NOTIFICATION_CHANNELS, NOTIFICATION_CHANNEL_IDS } from "./constants";
|
|
4
|
+
export { getInitialFirebaseNotification } from "./firebaseMessaging";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* react-native-size-matters' formula, read off the unistyles runtime instead
|
|
3
|
+
* of a Dimensions value captured at module load — that snapshot never updated
|
|
4
|
+
* for split-screen, foldables or iPad Slide Over. Reading `rt.screen` inside a
|
|
5
|
+
* unistyles StyleSheet also subscribes that sheet to window resizes.
|
|
6
|
+
*
|
|
7
|
+
* The short edge is used, so a size scales the same in either orientation, and
|
|
8
|
+
* it falls back to the baseline before unistyles has measured (its jest mock
|
|
9
|
+
* reports 0x0), leaving sizes untouched.
|
|
10
|
+
*/
|
|
1
11
|
export declare const moderateScale: (size: number, factor?: number) => number;
|
|
2
12
|
//# sourceMappingURL=scale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../src/helpers/scale.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../src/helpers/scale.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,eAAY,WAOvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/helpers/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/helpers/utils.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,WACyB,CAAC;AAEjE,eAAO,MAAM,kBAAkB,GAAU,MAAM,MAAM,GAAG,IAAI,kBAyB3D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,KAAK,SAAS,OAAO,EAAE,EAC9C,MAAM,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,IAAI,EAC9B,cAAW,MAIH,GAAG,MAAM,KAAK,SASvB,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,iBAAgB,MAAM,EAAO,EAC7B,sBAAsB,MAAM,GAAG,MAAM,EAAE,YASxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppVersionApi.d.ts","sourceRoot":"","sources":["../../../../src/hooks/query/useAppVersionApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAppVersionApi.d.ts","sourceRoot":"","sources":["../../../../src/hooks/query/useAppVersionApi.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,qBAAqB,sHAa9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRolesApi.d.ts","sourceRoot":"","sources":["../../../../src/hooks/query/useRolesApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRolesApi.d.ts","sourceRoot":"","sources":["../../../../src/hooks/query/useRolesApi.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,aAAa,GAAI,YAAY,8HAM/B,CAAC;AAEL,QAAA,MAAM,mBAAmB,GAAI,YAAY,2IAMrC,CAAC;AAEL,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { type ReactNode } from "react";
|
|
2
2
|
import { type NavigationContainerRef } from "@react-navigation/native";
|
|
3
|
+
import { type QueryClient } from "@tanstack/react-query";
|
|
3
4
|
import { type Reducer } from "redux";
|
|
4
5
|
import { type HostStrings } from "../contexts/localization";
|
|
5
6
|
export interface NeetoCommonsRNProviderProps {
|
|
@@ -8,7 +9,13 @@ export interface NeetoCommonsRNProviderProps {
|
|
|
8
9
|
hostStrings?: HostStrings;
|
|
9
10
|
hostRootReducer: Record<string, Reducer>;
|
|
10
11
|
blacklistedReducers?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* The host app's react-query client. Dev-only: when provided, the
|
|
14
|
+
* Rozenite TanStack Query DevTools panel streams this client's cache.
|
|
15
|
+
* Network and Storage panels work without it.
|
|
16
|
+
*/
|
|
17
|
+
queryClient?: QueryClient;
|
|
11
18
|
children?: ReactNode;
|
|
12
19
|
}
|
|
13
|
-
export declare const NeetoCommonsRNProvider: ({ appName, hostNavigationRef, hostStrings, hostRootReducer, blacklistedReducers, children, }: NeetoCommonsRNProviderProps) => React.JSX.Element;
|
|
20
|
+
export declare const NeetoCommonsRNProvider: ({ appName, hostNavigationRef, hostStrings, hostRootReducer, blacklistedReducers, queryClient, children, }: NeetoCommonsRNProviderProps) => React.JSX.Element;
|
|
14
21
|
//# sourceMappingURL=NeetoCommonsRNProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NeetoCommonsRNProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/NeetoCommonsRNProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"NeetoCommonsRNProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/NeetoCommonsRNProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,OAAO,CAAC;AAIrC,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,0BAA0B,CAAC;AAyBlC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CACxD,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CACnC,GAAG,IAAI,CAAC,CAAC;IACV,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,sBAAsB,GAAI,2GAQpC,2BAA2B,sBAgC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/authentication/LoginScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LoginScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/authentication/LoginScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA+DzC,eAAO,MAAM,WAAW,yBAqHvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTPVerificationScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/authentication/OTPVerificationScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OTPVerificationScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/authentication/OTPVerificationScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAiBxE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAKjE,eAAO,MAAM,qBAAqB,GAAI,oCAGnC,kBAAkB,CAAC,iBAAiB,CAAC,sBA2JvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Organization.d.ts","sourceRoot":"","sources":["../../../../src/screens/authentication/Organization.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAE,KAAK,YAAY,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,kBAAkB,CAAC;IACjC,oBAAoB,EAAE,CAAC,IAAI,EAAE;QAAE,YAAY,EAAE,kBAAkB,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3E,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,GAAI,qDAI1B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Organization.d.ts","sourceRoot":"","sources":["../../../../src/screens/authentication/Organization.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAE,KAAK,YAAY,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,kBAAkB,CAAC;IACjC,oBAAoB,EAAE,CAAC,IAAI,EAAE;QAAE,YAAY,EAAE,kBAAkB,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3E,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,GAAI,qDAI1B,iBAAiB,sBA4CnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubDomainScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/authentication/SubDomainScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SubDomainScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/authentication/SubDomainScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAkBrD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,eAAO,MAAM,eAAe,GAAI,wDAK7B,kBAAkB,CAAC,WAAW,CAAC,sBA6FjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/profile/ProfileScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ProfileScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/profile/ProfileScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAsB9C,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,6CAA6C,CAAC;AAWrD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2BAA2B,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACvD,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,aAAa,GAAI,qIAO3B,kBAAkB,sBA0IpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSelect.d.ts","sourceRoot":"","sources":["../../../../src/screens/team_members/ProductSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAK1C,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EAEtB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductSelect.d.ts","sourceRoot":"","sources":["../../../../src/screens/team_members/ProductSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAK1C,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EAEtB,MAAM,SAAS,CAAC;AAiBjB,UAAU,kBAAkB;IAC1B,MAAM,EAAE,uBAAuB,CAAC;IAChC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,aAAa,EAAE,WAAW,CAAC,uBAAuB,CAAC,CAAC,eAAe,CAAC,CAAC;CACtE;AAED,QAAA,MAAM,aAAa,GAAI,yCAKpB,kBAAkB,sBAyHpB,CAAC;AA4CF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/team_members/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/team_members/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAmCrD;;;GAGG;AACH,UAAU,sBAAsB;IAC9B,KAAK,CAAC,EAAE;QACN,MAAM,CAAC,EAAE;YACP,SAAS,CAAC,EAAE,OAAO,CAAC;YACpB,WAAW,CAAC,EAAE,OAAO,CAAC;SACvB,CAAC;KACH,CAAC;CACH;AAED,QAAA,MAAM,iBAAiB,GAAI,WAAW,sBAAsB,sBAsJ3D,CAAC;AAyBF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/screens/team_members/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/screens/team_members/utils.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,yEAAyE;AACzE,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;AAErE,kDAAkD;AAClD,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;AAID,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,2BAGR,CAAC;AAkBjC,eAAO,MAAM,6BAA6B,GACxC,aAAa,gBAAgB,GAAG,SAAS,EACzC,gBAAgB,MAAM,KACrB,WAAW,EAsBb,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,aAAS,EACT,cAAc,gBAAgB,KAC7B,uBAKD,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type UnknownAction } from "@reduxjs/toolkit";
|
|
1
2
|
import { type PersistConfig } from "redux-persist";
|
|
2
3
|
import { rootReducer } from "../slices";
|
|
3
4
|
export type CommonsState = ReturnType<typeof rootReducer>;
|
|
@@ -7,10 +8,10 @@ declare const Persistor: import("redux-persist").Persistor;
|
|
|
7
8
|
declare const Store: {
|
|
8
9
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
9
10
|
auth: import("../slices/auth").AuthState;
|
|
10
|
-
} & import("redux-persist/es/persistReducer").PersistPartial, undefined,
|
|
11
|
+
} & import("redux-persist/es/persistReducer").PersistPartial, undefined, UnknownAction>;
|
|
11
12
|
} & import("redux").Store<{
|
|
12
13
|
auth: import("../slices/auth").AuthState;
|
|
13
|
-
} & import("redux-persist/es/persistReducer").PersistPartial,
|
|
14
|
+
} & import("redux-persist/es/persistReducer").PersistPartial, UnknownAction, unknown> & {
|
|
14
15
|
Persistor: import("redux-persist").Persistor;
|
|
15
16
|
};
|
|
16
17
|
export type AppDispatch = typeof Store.dispatch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EASL,KAAK,aAAa,EACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIxC,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC1D,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE/D,QAAA,MAAM,aAAa,EAAE,aAAa,CAAC,YAAY,CAI9C,CAAC;AA4EF,QAAA,MAAM,SAAS,mCAA0B,CAAC;AAI1C,QAAA,MAAM,KAAK;;;;;;;;CAA0C,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiHelpers.d.ts","sourceRoot":"","sources":["../../../src/utils/apiHelpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apiHelpers.d.ts","sourceRoot":"","sources":["../../../src/utils/apiHelpers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,GAAI,2BAG5B;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,WAAuE,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rozenite DevTools metro integration, shared by every neeto app.
|
|
3
|
+
*
|
|
4
|
+
* Usage (app metro.config.js):
|
|
5
|
+
*
|
|
6
|
+
* const {
|
|
7
|
+
* withNeetoDevTools,
|
|
8
|
+
* } = require("@bigbinary/neeto-commons-rn/metro-devtools");
|
|
9
|
+
* module.exports = withNeetoDevTools(mergeConfig(defaultConfig, config));
|
|
10
|
+
*
|
|
11
|
+
* Opt-in via WITH_ROZENITE=true (apps expose it as `yarn start:devtools`).
|
|
12
|
+
* The Expo Atlas wrapper hooks metro's serializer unconditionally, so the
|
|
13
|
+
* whole chain is env-gated here rather than relying on withRozenite's
|
|
14
|
+
* `enabled` flag — plain `yarn start` must return the config untouched.
|
|
15
|
+
*
|
|
16
|
+
* This file is plain CommonJS on purpose: it is required by Node from the
|
|
17
|
+
* app's metro.config.js, which never passes through metro's TS transform.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
// Rozenite's auto-discovery only reads the HOST package.json's direct
|
|
21
|
+
// dependencies/devDependencies, and the plugins are dependencies of this
|
|
22
|
+
// package — invisible to it. Passing `include` switches discovery off and
|
|
23
|
+
// loads exactly this list (resolved from the app root, where hoisting puts
|
|
24
|
+
// them).
|
|
25
|
+
// eslint-disable-next-line @bigbinary/neeto/no-dangling-constants -- standalone CJS metro entry; the list belongs next to its only consumer
|
|
26
|
+
const NEETO_DEVTOOLS_PLUGINS = [
|
|
27
|
+
"@rozenite/tanstack-query-plugin",
|
|
28
|
+
"@rozenite/network-activity-plugin",
|
|
29
|
+
"@rozenite/storage-plugin",
|
|
30
|
+
"@rozenite/redux-devtools-plugin",
|
|
31
|
+
"@rozenite/expo-atlas-plugin",
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
const withNeetoDevTools = (config, { extraPlugins = [] } = {}) => {
|
|
35
|
+
if (process.env.WITH_ROZENITE !== "true") return config;
|
|
36
|
+
|
|
37
|
+
const { withRozenite } = require("@rozenite/metro");
|
|
38
|
+
const {
|
|
39
|
+
withRozeniteExpoAtlasPlugin,
|
|
40
|
+
} = require("@rozenite/expo-atlas-plugin");
|
|
41
|
+
|
|
42
|
+
return withRozenite(withRozeniteExpoAtlasPlugin(config), {
|
|
43
|
+
enabled: true,
|
|
44
|
+
include: [...NEETO_DEVTOOLS_PLUGINS, ...extraPlugins],
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
module.exports = { withNeetoDevTools };
|