@kiosinc/commons-rn 0.1.45 → 0.1.47

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 (88) hide show
  1. package/lib/commonjs/auth/hooks/useAuthentication.js +20 -2
  2. package/lib/commonjs/auth/hooks/useAuthentication.js.map +1 -1
  3. package/lib/commonjs/auth/screens/Login.js +5 -1
  4. package/lib/commonjs/auth/screens/Login.js.map +1 -1
  5. package/lib/commonjs/auth/screens/LoginWithEmail.js +11 -1
  6. package/lib/commonjs/auth/screens/LoginWithEmail.js.map +1 -1
  7. package/lib/commonjs/components/BottomSheet.js +11 -9
  8. package/lib/commonjs/components/BottomSheet.js.map +1 -1
  9. package/lib/commonjs/components/RefreshControl.js +7 -8
  10. package/lib/commonjs/components/RefreshControl.js.map +1 -1
  11. package/lib/commonjs/constants/analyticsKeys.js +18 -0
  12. package/lib/commonjs/constants/analyticsKeys.js.map +1 -0
  13. package/lib/commonjs/index.js +39 -1
  14. package/lib/commonjs/index.js.map +1 -1
  15. package/lib/commonjs/selectBusiness/CreateBusinessBottomSheet.js +11 -3
  16. package/lib/commonjs/selectBusiness/CreateBusinessBottomSheet.js.map +1 -1
  17. package/lib/commonjs/selectBusiness/SelectBusiness.js +2 -1
  18. package/lib/commonjs/selectBusiness/SelectBusiness.js.map +1 -1
  19. package/lib/commonjs/utils/analytics.js +46 -0
  20. package/lib/commonjs/utils/analytics.js.map +1 -0
  21. package/lib/commonjs/{selectBusiness → utils}/useMultiSnapBottomSheetRef.js +2 -5
  22. package/lib/commonjs/utils/useMultiSnapBottomSheetRef.js.map +1 -0
  23. package/lib/commonjs/utils/useSingleSnapBottomSheetRef.js.map +1 -0
  24. package/lib/module/auth/hooks/useAuthentication.js +20 -2
  25. package/lib/module/auth/hooks/useAuthentication.js.map +1 -1
  26. package/lib/module/auth/screens/Login.js +5 -1
  27. package/lib/module/auth/screens/Login.js.map +1 -1
  28. package/lib/module/auth/screens/LoginWithEmail.js +11 -1
  29. package/lib/module/auth/screens/LoginWithEmail.js.map +1 -1
  30. package/lib/module/components/BottomSheet.js +13 -11
  31. package/lib/module/components/BottomSheet.js.map +1 -1
  32. package/lib/module/components/RefreshControl.js +5 -6
  33. package/lib/module/components/RefreshControl.js.map +1 -1
  34. package/lib/module/constants/analyticsKeys.js +12 -0
  35. package/lib/module/constants/analyticsKeys.js.map +1 -0
  36. package/lib/module/index.js +3 -0
  37. package/lib/module/index.js.map +1 -1
  38. package/lib/module/selectBusiness/CreateBusinessBottomSheet.js +12 -4
  39. package/lib/module/selectBusiness/CreateBusinessBottomSheet.js.map +1 -1
  40. package/lib/module/selectBusiness/SelectBusiness.js +2 -1
  41. package/lib/module/selectBusiness/SelectBusiness.js.map +1 -1
  42. package/lib/module/utils/analytics.js +39 -0
  43. package/lib/module/utils/analytics.js.map +1 -0
  44. package/lib/module/{selectBusiness → utils}/useMultiSnapBottomSheetRef.js +2 -5
  45. package/lib/module/utils/useMultiSnapBottomSheetRef.js.map +1 -0
  46. package/lib/module/utils/useSingleSnapBottomSheetRef.js.map +1 -0
  47. package/lib/typescript/src/auth/hooks/useAuthentication.d.ts.map +1 -1
  48. package/lib/typescript/src/auth/screens/Login.d.ts.map +1 -1
  49. package/lib/typescript/src/auth/screens/LoginWithEmail.d.ts.map +1 -1
  50. package/lib/typescript/src/components/BottomSheet.d.ts +0 -1
  51. package/lib/typescript/src/components/BottomSheet.d.ts.map +1 -1
  52. package/lib/typescript/src/components/RefreshControl.d.ts +2 -4
  53. package/lib/typescript/src/components/RefreshControl.d.ts.map +1 -1
  54. package/lib/typescript/src/constants/analyticsKeys.d.ts +11 -0
  55. package/lib/typescript/src/constants/analyticsKeys.d.ts.map +1 -0
  56. package/lib/typescript/src/index.d.ts +3 -0
  57. package/lib/typescript/src/index.d.ts.map +1 -1
  58. package/lib/typescript/src/selectBusiness/CreateBusinessBottomSheet.d.ts +1 -0
  59. package/lib/typescript/src/selectBusiness/CreateBusinessBottomSheet.d.ts.map +1 -1
  60. package/lib/typescript/src/selectBusiness/SelectBusiness.d.ts.map +1 -1
  61. package/lib/typescript/src/utils/analytics.d.ts +12 -0
  62. package/lib/typescript/src/utils/analytics.d.ts.map +1 -0
  63. package/lib/typescript/src/utils/useMultiSnapBottomSheetRef.d.ts +18 -0
  64. package/lib/typescript/src/utils/useMultiSnapBottomSheetRef.d.ts.map +1 -0
  65. package/lib/typescript/src/utils/useSingleSnapBottomSheetRef.d.ts.map +1 -0
  66. package/package.json +3 -2
  67. package/src/auth/hooks/useAuthentication.ts +16 -4
  68. package/src/auth/screens/Login.tsx +5 -1
  69. package/src/auth/screens/LoginWithEmail.tsx +9 -0
  70. package/src/components/BottomSheet.tsx +15 -19
  71. package/src/components/RefreshControl.tsx +4 -4
  72. package/src/constants/analyticsKeys.ts +11 -0
  73. package/src/index.tsx +11 -0
  74. package/src/selectBusiness/CreateBusinessBottomSheet.tsx +12 -9
  75. package/src/selectBusiness/SelectBusiness.tsx +2 -1
  76. package/src/utils/analytics.ts +49 -0
  77. package/src/{selectBusiness → utils}/useMultiSnapBottomSheetRef.ts +3 -14
  78. package/lib/commonjs/selectBusiness/useMultiSnapBottomSheetRef.js.map +0 -1
  79. package/lib/commonjs/selectBusiness/useSingleSnapBottomSheetRef.js.map +0 -1
  80. package/lib/module/selectBusiness/useMultiSnapBottomSheetRef.js.map +0 -1
  81. package/lib/module/selectBusiness/useSingleSnapBottomSheetRef.js.map +0 -1
  82. package/lib/typescript/src/selectBusiness/useMultiSnapBottomSheetRef.d.ts +0 -28
  83. package/lib/typescript/src/selectBusiness/useMultiSnapBottomSheetRef.d.ts.map +0 -1
  84. package/lib/typescript/src/selectBusiness/useSingleSnapBottomSheetRef.d.ts.map +0 -1
  85. /package/lib/commonjs/{selectBusiness → utils}/useSingleSnapBottomSheetRef.js +0 -0
  86. /package/lib/module/{selectBusiness → utils}/useSingleSnapBottomSheetRef.js +0 -0
  87. /package/lib/typescript/src/{selectBusiness → utils}/useSingleSnapBottomSheetRef.d.ts +0 -0
  88. /package/src/{selectBusiness → utils}/useSingleSnapBottomSheetRef.ts +0 -0
@@ -1,7 +1,6 @@
1
1
  import { useRef, useState } from 'react';
2
2
  export const useMultiSnapBottomSheetRef = ({
3
- initialSnap,
4
- snapPoints
3
+ initialSnap
5
4
  }) => {
6
5
  const ref = useRef(null);
7
6
  const [selectedSnap, setSelectedSnap] = useState(initialSnap);
@@ -19,10 +18,8 @@ export const useMultiSnapBottomSheetRef = ({
19
18
  isVisible,
20
19
  ref,
21
20
  selectedSnap,
22
- snapPoints,
23
21
  expand,
24
- close,
25
- selectedSnapPoint: snapPoints[selectedSnap] ?? snapPoints[0]
22
+ close
26
23
  };
27
24
  };
28
25
  //# sourceMappingURL=useMultiSnapBottomSheetRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useRef","useState","useMultiSnapBottomSheetRef","initialSnap","ref","selectedSnap","setSelectedSnap","isVisible","setIsVisible","expand","snap","current","close"],"sourceRoot":"../../../src","sources":["utils/useMultiSnapBottomSheetRef.ts"],"mappings":"AAAA,SAASA,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAUxC,OAAO,MAAMC,0BAA0B,GAAGA,CAAmB;EAC3DC;AAGF,CAAC,KAAK;EACJ,MAAMC,GAAG,GAAGJ,MAAM,CAAM,IAAI,CAAC;EAC7B,MAAM,CAACK,YAAY,EAAEC,eAAe,CAAC,GAAGL,QAAQ,CAACE,WAAW,CAAC;EAC7D,MAAM,CAACI,SAAS,EAAEC,YAAY,CAAC,GAAGP,QAAQ,CAAC,KAAK,CAAC;EACjD,MAAMQ,MAAM,GAAIC,IAAO,IAAK;IAC1BJ,eAAe,CAACI,IAAI,CAAC;IACrBF,YAAY,CAAC,IAAI,CAAC;IAClBJ,GAAG,CAACO,OAAO,EAAEF,MAAM,CAAC,CAAC;EACvB,CAAC;EACD,MAAMG,KAAK,GAAGA,CAAA,KAAM;IAClBR,GAAG,CAACO,OAAO,EAAEC,KAAK,CAAC,CAAC;IACpBJ,YAAY,CAAC,KAAK,CAAC;EACrB,CAAC;EACD,OAAO;IACLD,SAAS;IACTH,GAAG;IACHC,YAAY;IACZI,MAAM;IACNG;EACF,CAAC;AACH,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useRef","useState","useSingleSnapBottomSheetRef","isVisible","setIsVisible","ref","expand","current","close"],"sourceRoot":"../../../src","sources":["utils/useSingleSnapBottomSheetRef.ts"],"mappings":"AAAA,SAASA,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AASxC,OAAO,MAAMC,2BAA2B,GAAGA,CAAA,KAAM;EAC/C,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGH,QAAQ,CAAC,KAAK,CAAC;EAEjD,MAAMI,GAAG,GAAGL,MAAM,CAAM,IAAI,CAAC;EAC7B,MAAMM,MAAM,GAAGA,CAAA,KAAM;IACnBD,GAAG,CAACE,OAAO,EAAED,MAAM,CAAC,CAAC;IACrBF,YAAY,CAAC,IAAI,CAAC;EACpB,CAAC;EACD,MAAMI,KAAK,GAAGA,CAAA,KAAM;IAClBJ,YAAY,CAAC,KAAK,CAAC;IACnBC,GAAG,CAACE,OAAO,EAAEC,KAAK,CAAC,CAAC;EACtB,CAAC;EACD,OAAO;IAAEL,SAAS;IAAEE,GAAG;IAAEC,MAAM;IAAEE;EAAM,CAAC;AAC1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAuthentication.d.ts","sourceRoot":"","sources":["../../../../../src/auth/hooks/useAuthentication.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;gBAQa,SAAS;cAAQ,MAAM;;;;;;;;;cA+CvB,MAAM;;;qBAIQ,MAAM;;;;eA0BlB,MAAM;;CAelD,CAAC"}
1
+ {"version":3,"file":"useAuthentication.d.ts","sourceRoot":"","sources":["../../../../../src/auth/hooks/useAuthentication.ts"],"names":[],"mappings":"AAqBA,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;gBAQa,SAAS;cAAQ,MAAM;;;;;;;;;cAoDvB,MAAM;;;qBAOQ,MAAM;;;;eA0BlB,MAAM;;CAgBlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Login.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/Login.tsx"],"names":[],"mappings":";AAsCA,eAAO,MAAM,KAAK,mBAoFjB,CAAC"}
1
+ {"version":3,"file":"Login.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/Login.tsx"],"names":[],"mappings":";AAyCA,eAAO,MAAM,KAAK,mBAqFjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LoginWithEmail.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/LoginWithEmail.tsx"],"names":[],"mappings":";AAqBA,eAAO,MAAM,cAAc,mBA6F1B,CAAC"}
1
+ {"version":3,"file":"LoginWithEmail.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/LoginWithEmail.tsx"],"names":[],"mappings":";AAwBA,eAAO,MAAM,cAAc,mBAmG1B,CAAC"}
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  export declare const BottomSheet: React.ForwardRefExoticComponent<{
3
3
  children: React.ReactNode;
4
4
  pressBehavior?: "none" | "close" | "collapse" | undefined;
5
- snapPoints: Array<string>;
6
5
  bottomInset?: boolean | undefined;
7
6
  close?: (() => void) | undefined;
8
7
  } & React.RefAttributes<any>>;
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAM3C,eAAO,MAAM,WAAW;cAGV,MAAM,SAAS;;gBAEb,MAAM,MAAM,CAAC;;mBAEX,IAAI;6BAyErB,CAAC"}
1
+ {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAQ3C,eAAO,MAAM,WAAW;cAGV,MAAM,SAAS;;;mBAGX,IAAI;6BAqErB,CAAC"}
@@ -1,6 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type RefreshControlProps } from 'react-native';
3
- type Props = RefreshControlProps;
4
- export declare const RefreshControl: ({ ...rest }: Props) => JSX.Element;
5
- export {};
3
+ export declare const RefreshControl: React.ForwardRefExoticComponent<RefreshControlProps & React.RefAttributes<unknown>>;
6
4
  //# sourceMappingURL=RefreshControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RefreshControl.d.ts","sourceRoot":"","sources":["../../../../src/components/RefreshControl.tsx"],"names":[],"mappings":";AACA,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAG9E,KAAK,KAAK,GAAG,mBAAmB,CAAC;AAEjC,eAAO,MAAM,cAAc,gBAAiB,KAAK,gBAIhD,CAAC"}
1
+ {"version":3,"file":"RefreshControl.d.ts","sourceRoot":"","sources":["../../../../src/components/RefreshControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAK9E,eAAO,MAAM,cAAc,qFAIzB,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const analyticsKeys: {
2
+ loginCompleted: string;
3
+ signupCompleted: string;
4
+ signupStarted: string;
5
+ forgotPassword: string;
6
+ resetPasswordStarted: string;
7
+ resetPasswordCompleted: string;
8
+ registrationDate: string;
9
+ app: string;
10
+ };
11
+ //# sourceMappingURL=analyticsKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyticsKeys.d.ts","sourceRoot":"","sources":["../../../../src/constants/analyticsKeys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;CAUzB,CAAC"}
@@ -1,5 +1,8 @@
1
+ export { useMultiSnapBottomSheetRef, TMultiSnapBottomSheetRef, } from './utils/useMultiSnapBottomSheetRef';
2
+ export { useSingleSnapBottomSheetRef, TSingleSnapBottomSheetRef, } from './utils/useSingleSnapBottomSheetRef';
1
3
  export declare function multiply(a: number, b: number): Promise<number>;
2
4
  export * from './components';
3
5
  export * from './auth';
4
6
  export * from './selectBusiness';
7
+ export { analytics } from './utils/analytics';
5
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE9D;AACD,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAE7C,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE9D;AACD,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  type CreateBusinessBottomSheetProps = {
3
+ isVisible: boolean;
3
4
  close: () => void;
4
5
  };
5
6
  export declare const CreateBusinessBottomSheet: React.ForwardRefExoticComponent<CreateBusinessBottomSheetProps & React.RefAttributes<unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"CreateBusinessBottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/selectBusiness/CreateBusinessBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAcpD,KAAK,8BAA8B,GAAG;IACpC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,yBAAyB,gGAwDrC,CAAC"}
1
+ {"version":3,"file":"CreateBusinessBottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/selectBusiness/CreateBusinessBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAavE,KAAK,8BAA8B,GAAG;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,yBAAyB,gGA2DrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectBusiness.d.ts","sourceRoot":"","sources":["../../../../src/selectBusiness/SelectBusiness.tsx"],"names":[],"mappings":";AA8DA,eAAO,MAAM,cAAc,mBA4G1B,CAAC"}
1
+ {"version":3,"file":"SelectBusiness.d.ts","sourceRoot":"","sources":["../../../../src/selectBusiness/SelectBusiness.tsx"],"names":[],"mappings":";AA8DA,eAAO,MAAM,cAAc,mBA6G1B,CAAC"}
@@ -0,0 +1,12 @@
1
+ interface Analytics {
2
+ init(): void;
3
+ identify(userId: string): void;
4
+ track(eventName: string, properties?: any): void;
5
+ profile: {
6
+ set: (key: string, value?: any) => void;
7
+ };
8
+ reset(): void;
9
+ }
10
+ export declare const analytics: Analytics;
11
+ export {};
12
+ //# sourceMappingURL=analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../../src/utils/analytics.ts"],"names":[],"mappings":"AAIA,UAAU,SAAS;IACjB,IAAI,IAAI,IAAI,CAAC;IACb,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IACjD,OAAO,EAAE;QACP,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;KACzC,CAAC;IACF,KAAK,IAAI,IAAI,CAAC;CACf;AAGD,eAAO,MAAM,SAAS,EAAE,SAiCvB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ export type TMultiSnapBottomSheetRef<T extends string> = {
3
+ ref: React.MutableRefObject<any>;
4
+ selectedSnap: T;
5
+ expand: (snap: T) => void;
6
+ close: () => any;
7
+ isVisible: boolean;
8
+ };
9
+ export declare const useMultiSnapBottomSheetRef: <T extends string>({ initialSnap, }: {
10
+ initialSnap: T;
11
+ }) => {
12
+ isVisible: boolean;
13
+ ref: import("react").MutableRefObject<any>;
14
+ selectedSnap: T;
15
+ expand: (snap: T) => void;
16
+ close: () => void;
17
+ };
18
+ //# sourceMappingURL=useMultiSnapBottomSheetRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMultiSnapBottomSheetRef.d.ts","sourceRoot":"","sources":["../../../../src/utils/useMultiSnapBottomSheetRef.ts"],"names":[],"mappings":";AAEA,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,MAAM,IAAI;IACvD,GAAG,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACjC,YAAY,EAAE,CAAC,CAAC;IAChB,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;CAwBtC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSingleSnapBottomSheetRef.d.ts","sourceRoot":"","sources":["../../../../src/utils/useSingleSnapBottomSheetRef.ts"],"names":[],"mappings":";AAEA,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;CAavC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiosinc/commons-rn",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "description": "Common Code",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -181,7 +181,7 @@
181
181
  ]
182
182
  },
183
183
  "dependencies": {
184
- "@gorhom/bottom-sheet": "^4.5.1",
184
+ "@gorhom/bottom-sheet": "^4.6.1",
185
185
  "@hookform/resolvers": "^3.3.2",
186
186
  "@react-navigation/material-top-tabs": "^6.6.13",
187
187
  "@shopify/restyle": "^2.4.2",
@@ -189,6 +189,7 @@
189
189
  "axios": "^1.4.0",
190
190
  "color": "^4.2.3",
191
191
  "i18next": "^23.7.6",
192
+ "mixpanel-react-native": "^3.0.2",
192
193
  "react-content-loader": "^6.2.1",
193
194
  "react-hook-form": "^7.48.2",
194
195
  "react-i18next": "^13.5.0",
@@ -13,6 +13,9 @@ import {
13
13
  import { useTranslation } from 'react-i18next';
14
14
  import { Alert } from '../../components';
15
15
  import { checkIsRegisteredAPI, signUpAPI } from '../api/authentication';
16
+ import Config from 'react-native-config';
17
+ import { analytics } from '../../utils/analytics';
18
+ import { analyticsKeys } from '../../constants/analyticsKeys';
16
19
 
17
20
  let confirmationResult: FirebaseAuthTypes.ConfirmationResult;
18
21
 
@@ -50,12 +53,17 @@ export const useAuthentication = () => {
50
53
  payload.params.password
51
54
  );
52
55
  // Reauthenticate user
53
- await auth().currentUser?.reauthenticateWithCredential(
54
- credential
55
- );
56
- await auth().currentUser?.reload();
56
+ await auth().currentUser.reauthenticateWithCredential(credential);
57
+ await auth().currentUser.reload();
57
58
  // Update user after re-authentication.
58
59
  dispatch(changeUser(auth().currentUser));
60
+
61
+ // On completing sign up
62
+ analytics.identify(auth().currentUser.uid);
63
+ const now = new Date().toISOString();
64
+ analytics.profile.set(analyticsKeys.registrationDate, now);
65
+ analytics.profile.set(analyticsKeys.app, Config.APP_NAME);
66
+ analytics.track(analyticsKeys.signupCompleted);
59
67
  } catch (error: any) {
60
68
  console.log('error', error);
61
69
  // Sign out user if something goes wrong
@@ -81,6 +89,9 @@ export const useAuthentication = () => {
81
89
  useConfirmPhoneNumber: () =>
82
90
  useMutation(async ({ code }: { code: string }) => {
83
91
  await confirmationResult.confirm(code);
92
+ analytics.identify(auth().currentUser.uid);
93
+ analytics.profile.set(analyticsKeys.app, Config.APP_NAME);
94
+ analytics.track(analyticsKeys.loginCompleted, { method: 'phone' });
84
95
  }),
85
96
  useVerifyPhoneNumberForLogin: () =>
86
97
  useMutation(async ({ phoneNumber }: { phoneNumber: string }) => {
@@ -115,6 +126,7 @@ export const useAuthentication = () => {
115
126
  navigation.navigate('ResetPasswordInstructionSent', {
116
127
  email: email,
117
128
  });
129
+ analytics.track(analyticsKeys.resetPasswordCompleted, { email });
118
130
  } catch {
119
131
  Alert.show({
120
132
  description: t('authentication.userDoesNotExist', {
@@ -23,6 +23,9 @@ import { StyleSheet } from 'react-native';
23
23
  import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
24
24
  import { LoginWithPhoneNumber } from './LoginWithPhoneNumber';
25
25
  import { LoginWithEmail } from './LoginWithEmail';
26
+ import { moderateScale } from 'react-native-size-matters';
27
+ import { analytics } from '../../utils/analytics';
28
+ import { analyticsKeys } from '../../constants/analyticsKeys';
26
29
 
27
30
  const Tab = createMaterialTopTabNavigator();
28
31
 
@@ -69,7 +72,7 @@ export const Login = () => {
69
72
  {t('authentication.logIn')}
70
73
  </Text>
71
74
  </View>
72
- <View height={340} pt="24">
75
+ <View height={moderateScale(360)} pt="24">
73
76
  <Tab.Navigator
74
77
  screenOptions={{
75
78
  tabBarIndicatorStyle: tabBarStyles.tabBarIndicatorStyle,
@@ -109,6 +112,7 @@ export const Login = () => {
109
112
  <LinkButton
110
113
  mode="text"
111
114
  onPress={() => {
115
+ analytics.track(analyticsKeys.signupStarted);
112
116
  navigation.navigate('SignUp');
113
117
  }}
114
118
  >
@@ -13,6 +13,9 @@ import { yupResolver } from '@hookform/resolvers/yup';
13
13
  import { loginValidationSchema } from './validators';
14
14
  import auth from '@react-native-firebase/auth';
15
15
  import { StyleSheet } from 'react-native';
16
+ import { analytics } from '../../utils/analytics';
17
+ import Config from 'react-native-config';
18
+ import { analyticsKeys } from '../../constants/analyticsKeys';
16
19
 
17
20
  type FormData = {
18
21
  email: string;
@@ -40,6 +43,11 @@ export const LoginWithEmail = () => {
40
43
  setIsLoading(true);
41
44
  auth()
42
45
  .signInWithEmailAndPassword(data.email, data.password)
46
+ .then(() => {
47
+ analytics.identify(auth().currentUser.uid);
48
+ analytics.profile.set(analyticsKeys.app, Config.APP_NAME);
49
+ analytics.track(analyticsKeys.loginCompleted, { method: 'email' });
50
+ })
43
51
  .catch(() => {
44
52
  Snackbar.show({ title: t('authentication.wrongCredentials') });
45
53
  })
@@ -96,6 +104,7 @@ export const LoginWithEmail = () => {
96
104
  alignSelf="flex-end"
97
105
  mode="text"
98
106
  onPress={() => {
107
+ analytics.track(analyticsKeys.resetPasswordStarted);
99
108
  navigation.navigate('ResetPassword');
100
109
  }}
101
110
  >
@@ -1,28 +1,22 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { useTheme } from 'react-native-paper';
3
- import { ParentView, View } from '../components';
4
- import BS, { BottomSheetBackdrop } from '@gorhom/bottom-sheet';
3
+ import { View } from '../components';
4
+ import BS, { BottomSheetBackdrop, BottomSheetView } from '@gorhom/bottom-sheet';
5
5
  import { Keyboard, StyleSheet } from 'react-native';
6
+ import { useSharedValue } from 'react-native-reanimated';
7
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
6
8
 
7
9
  export const BottomSheet = React.forwardRef<
8
10
  typeof BS,
9
11
  {
10
12
  children: React.ReactNode;
11
13
  pressBehavior?: 'close' | 'collapse' | 'none';
12
- snapPoints: Array<string>;
13
14
  bottomInset?: boolean;
14
15
  close?: () => void;
15
16
  }
16
17
  >(
17
18
  (
18
- {
19
- children,
20
- close,
21
- bottomInset = true,
22
- pressBehavior = 'none',
23
- snapPoints,
24
- ...rest
25
- },
19
+ { children, close, bottomInset = true, pressBehavior = 'none', ...rest },
26
20
  ref
27
21
  ) => {
28
22
  const theme = useTheme();
@@ -41,9 +35,6 @@ export const BottomSheet = React.forwardRef<
41
35
  appearsOnIndex={1}
42
36
  >
43
37
  <View
44
- onTouchStart={() => {
45
- Keyboard.dismiss();
46
- }}
47
38
  style={[
48
39
  styles.backdrop,
49
40
  {
@@ -57,6 +48,9 @@ export const BottomSheet = React.forwardRef<
57
48
  []
58
49
  );
59
50
 
51
+ const animatedContentHeight = useSharedValue(0);
52
+ const insets = useSafeAreaInsets();
53
+
60
54
  return (
61
55
  <BS
62
56
  android_keyboardInputMode="adjustPan"
@@ -71,21 +65,23 @@ export const BottomSheet = React.forwardRef<
71
65
  backgroundColor: theme.colors.onBackground,
72
66
  }}
73
67
  backdropComponent={renderBackdrop}
68
+ enableDynamicSizing={true}
74
69
  enablePanDownToClose={true}
75
- snapPoints={snapPoints}
76
70
  ref={ref as any}
77
71
  index={-1}
72
+ contentHeight={animatedContentHeight}
78
73
  onChange={(index: number) => index === -1 && Keyboard.dismiss()}
79
74
  {...rest}
80
75
  >
81
- <ParentView topInset={false} bottomInset={bottomInset}>
82
- {children}
83
- </ParentView>
76
+ <BottomSheetView>
77
+ <View flex={1} {...(bottomInset && { pb: String(insets.bottom) })}>
78
+ {children}
79
+ </View>
80
+ </BottomSheetView>
84
81
  </BS>
85
82
  );
86
83
  }
87
84
  );
88
-
89
85
  const styles = StyleSheet.create({
90
86
  backdrop: {
91
87
  flex: 1,
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import React, { forwardRef } from 'react';
2
2
  import { RefreshControl as RC, type RefreshControlProps } from 'react-native';
3
3
  import { useTheme } from 'react-native-paper';
4
4
 
5
5
  type Props = RefreshControlProps;
6
6
 
7
- export const RefreshControl = ({ ...rest }: Props) => {
7
+ export const RefreshControl = forwardRef((props: Props, ref: any) => {
8
8
  const theme = useTheme();
9
9
 
10
- return <RC tintColor={theme.colors.primary} {...rest} />;
11
- };
10
+ return <RC ref={ref} tintColor={theme.colors.primary} {...props} />;
11
+ });
@@ -0,0 +1,11 @@
1
+ export const analyticsKeys = {
2
+ // Authentication
3
+ loginCompleted: 'login_completed',
4
+ signupCompleted: 'sign_up_completed',
5
+ signupStarted: 'sign_up_started',
6
+ forgotPassword: 'forgot_password',
7
+ resetPasswordStarted: 'reset_password_started',
8
+ resetPasswordCompleted: 'reset_password_completed',
9
+ registrationDate: 'registration_date',
10
+ app: 'app',
11
+ };
package/src/index.tsx CHANGED
@@ -1,6 +1,17 @@
1
+ export {
2
+ useMultiSnapBottomSheetRef,
3
+ TMultiSnapBottomSheetRef,
4
+ } from './utils/useMultiSnapBottomSheetRef';
5
+ export {
6
+ useSingleSnapBottomSheetRef,
7
+ TSingleSnapBottomSheetRef,
8
+ } from './utils/useSingleSnapBottomSheetRef';
9
+
1
10
  export function multiply(a: number, b: number): Promise<number> {
2
11
  return Promise.resolve(a * b);
3
12
  }
4
13
  export * from './components';
5
14
  export * from './auth';
6
15
  export * from './selectBusiness';
16
+
17
+ export { analytics } from './utils/analytics';
@@ -1,4 +1,4 @@
1
- import React, { forwardRef, useState } from 'react';
1
+ import React, { forwardRef, useEffect, useRef, useState } from 'react';
2
2
  import {
3
3
  Text,
4
4
  Button,
@@ -8,16 +8,16 @@ import {
8
8
  BottomSheet,
9
9
  } from '../components';
10
10
  import { BottomSheetTextInput } from '@gorhom/bottom-sheet';
11
- import { getPercentageFromHeight } from '../utils';
12
11
  import { useTranslation } from 'react-i18next';
13
12
  import { useCreateBusiness } from './useCreateBusiness';
14
13
 
15
14
  type CreateBusinessBottomSheetProps = {
15
+ isVisible: boolean;
16
16
  close: () => void;
17
17
  };
18
18
 
19
19
  export const CreateBusinessBottomSheet = forwardRef(
20
- ({ close }: CreateBusinessBottomSheetProps, ref) => {
20
+ ({ isVisible, close }: CreateBusinessBottomSheetProps, ref) => {
21
21
  const [name, setName] = useState('');
22
22
  const { mutate: createNewMenuGroup, isLoading } = useCreateBusiness({
23
23
  onSuccess: () => {
@@ -25,6 +25,7 @@ export const CreateBusinessBottomSheet = forwardRef(
25
25
  },
26
26
  });
27
27
  const { t } = useTranslation();
28
+ const textInputRef = useRef<typeof BottomSheetTextInput>();
28
29
 
29
30
  const onCreate = () => {
30
31
  createNewMenuGroup({
@@ -33,12 +34,14 @@ export const CreateBusinessBottomSheet = forwardRef(
33
34
  setName('');
34
35
  };
35
36
 
37
+ useEffect(() => {
38
+ if (isVisible) {
39
+ textInputRef?.current?.focus();
40
+ }
41
+ }, [isVisible]);
42
+
36
43
  return (
37
- <BottomSheet
38
- pressBehavior="close"
39
- snapPoints={[getPercentageFromHeight(220)]}
40
- ref={ref as any}
41
- >
44
+ <BottomSheet pressBehavior="close" ref={ref as any}>
42
45
  <View px="16" bg="background" flex={1}>
43
46
  <Text pt="16" variant="titleLarge">
44
47
  {t('home.createBusiness')}
@@ -46,7 +49,7 @@ export const CreateBusinessBottomSheet = forwardRef(
46
49
  <KeyboardAvoidingView>
47
50
  <TextInput
48
51
  render={(props) => {
49
- return <BottomSheetTextInput {...props} />;
52
+ return <BottomSheetTextInput {...props} ref={textInputRef} />;
50
53
  }}
51
54
  mt="16"
52
55
  mode="outlined"
@@ -20,7 +20,7 @@ import { useQueryClient } from '@tanstack/react-query';
20
20
  import { CreateBusinessBottomSheet } from './CreateBusinessBottomSheet';
21
21
  import { useBusinesses } from './useBusinesses';
22
22
  import { MMKV_KEYS } from '../constants';
23
- import { useSingleSnapBottomSheetRef } from './useSingleSnapBottomSheetRef';
23
+ import { useSingleSnapBottomSheetRef } from '../utils/useSingleSnapBottomSheetRef';
24
24
  import Tick from '../assets/icons/tick.svg';
25
25
  import FastImage from 'react-native-fast-image';
26
26
  import auth from '@react-native-firebase/auth';
@@ -163,6 +163,7 @@ export const SelectBusiness = () => {
163
163
  )}
164
164
  </View>
165
165
  <CreateBusinessBottomSheet
166
+ isVisible={createBusinessBottomSheet.isVisible}
166
167
  ref={createBusinessBottomSheet.ref}
167
168
  close={createBusinessBottomSheet.close}
168
169
  />
@@ -0,0 +1,49 @@
1
+ import { Mixpanel } from 'mixpanel-react-native';
2
+ import { Platform } from 'react-native';
3
+ import Config from 'react-native-config';
4
+
5
+ interface Analytics {
6
+ init(): void;
7
+ identify(userId: string): void;
8
+ track(eventName: string, properties?: any): void;
9
+ profile: {
10
+ set: (key: string, value?: any) => void;
11
+ };
12
+ reset(): void;
13
+ }
14
+
15
+ let mixpanel: Mixpanel;
16
+ export const analytics: Analytics = {
17
+ init: () => {
18
+ const trackAutomaticEvents = false;
19
+ // @ts-ignore
20
+ mixpanel = new Mixpanel(Config.MIXPANEL_TOKEN, trackAutomaticEvents);
21
+ mixpanel.init();
22
+ mixpanel.registerSuperProperties({
23
+ version: Platform.Version,
24
+ });
25
+ const now = new Date().toISOString();
26
+ mixpanel.registerSuperPropertiesOnce({
27
+ app: Config.APP_NAME,
28
+ platform: Platform.OS,
29
+ first_time_install: now,
30
+ });
31
+ },
32
+ identify: (userId: string) => {
33
+ mixpanel?.identify(userId);
34
+ mixpanel?.registerSuperProperties({
35
+ version: Platform.Version,
36
+ });
37
+ },
38
+ track: (eventName: string, properties?: any) => {
39
+ mixpanel?.track(eventName, properties);
40
+ },
41
+ profile: {
42
+ set: (key: string, value?: any) => {
43
+ mixpanel?.getPeople()?.set(key, value);
44
+ },
45
+ },
46
+ reset: () => {
47
+ mixpanel?.reset();
48
+ },
49
+ };
@@ -1,31 +1,22 @@
1
1
  import { useRef, useState } from 'react';
2
2
 
3
- type SnapPoints = Record<string, any>;
4
- type ValidInitialSnap<T extends SnapPoints> = keyof T;
5
-
6
3
  export type TMultiSnapBottomSheetRef<T extends string> = {
7
4
  ref: React.MutableRefObject<any>;
8
5
  selectedSnap: T;
9
- snapPoints: {
10
- [K in T]: string[];
11
- };
12
6
  expand: (snap: T) => void;
13
7
  close: () => any;
14
- selectedSnapPoint: any;
15
8
  isVisible: boolean;
16
9
  };
17
10
 
18
- export const useMultiSnapBottomSheetRef = <T extends SnapPoints>({
11
+ export const useMultiSnapBottomSheetRef = <T extends string>({
19
12
  initialSnap,
20
- snapPoints,
21
13
  }: {
22
- initialSnap: ValidInitialSnap<T>;
23
- snapPoints: T;
14
+ initialSnap: T;
24
15
  }) => {
25
16
  const ref = useRef<any>(null);
26
17
  const [selectedSnap, setSelectedSnap] = useState(initialSnap);
27
18
  const [isVisible, setIsVisible] = useState(false);
28
- const expand = (snap: keyof typeof snapPoints) => {
19
+ const expand = (snap: T) => {
29
20
  setSelectedSnap(snap);
30
21
  setIsVisible(true);
31
22
  ref.current?.expand();
@@ -38,9 +29,7 @@ export const useMultiSnapBottomSheetRef = <T extends SnapPoints>({
38
29
  isVisible,
39
30
  ref,
40
31
  selectedSnap,
41
- snapPoints,
42
32
  expand,
43
33
  close,
44
- selectedSnapPoint: snapPoints[selectedSnap] ?? snapPoints[0],
45
34
  };
46
35
  };
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","useMultiSnapBottomSheetRef","initialSnap","snapPoints","ref","useRef","selectedSnap","setSelectedSnap","useState","isVisible","setIsVisible","expand","snap","current","close","selectedSnapPoint","exports"],"sourceRoot":"../../../src","sources":["selectBusiness/useMultiSnapBottomSheetRef.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAiBO,MAAMC,0BAA0B,GAAGA,CAAuB;EAC/DC,WAAW;EACXC;AAIF,CAAC,KAAK;EACJ,MAAMC,GAAG,GAAG,IAAAC,aAAM,EAAM,IAAI,CAAC;EAC7B,MAAM,CAACC,YAAY,EAAEC,eAAe,CAAC,GAAG,IAAAC,eAAQ,EAACN,WAAW,CAAC;EAC7D,MAAM,CAACO,SAAS,EAAEC,YAAY,CAAC,GAAG,IAAAF,eAAQ,EAAC,KAAK,CAAC;EACjD,MAAMG,MAAM,GAAIC,IAA6B,IAAK;IAChDL,eAAe,CAACK,IAAI,CAAC;IACrBF,YAAY,CAAC,IAAI,CAAC;IAClBN,GAAG,CAACS,OAAO,EAAEF,MAAM,CAAC,CAAC;EACvB,CAAC;EACD,MAAMG,KAAK,GAAGA,CAAA,KAAM;IAClBV,GAAG,CAACS,OAAO,EAAEC,KAAK,CAAC,CAAC;IACpBJ,YAAY,CAAC,KAAK,CAAC;EACrB,CAAC;EACD,OAAO;IACLD,SAAS;IACTL,GAAG;IACHE,YAAY;IACZH,UAAU;IACVQ,MAAM;IACNG,KAAK;IACLC,iBAAiB,EAAEZ,UAAU,CAACG,YAAY,CAAC,IAAIH,UAAU,CAAC,CAAC;EAC7D,CAAC;AACH,CAAC;AAACa,OAAA,CAAAf,0BAAA,GAAAA,0BAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","useSingleSnapBottomSheetRef","isVisible","setIsVisible","useState","ref","useRef","expand","current","close","exports"],"sourceRoot":"../../../src","sources":["selectBusiness/useSingleSnapBottomSheetRef.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AASO,MAAMC,2BAA2B,GAAGA,CAAA,KAAM;EAC/C,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAEjD,MAAMC,GAAG,GAAG,IAAAC,aAAM,EAAM,IAAI,CAAC;EAC7B,MAAMC,MAAM,GAAGA,CAAA,KAAM;IACnBF,GAAG,CAACG,OAAO,EAAED,MAAM,CAAC,CAAC;IACrBJ,YAAY,CAAC,IAAI,CAAC;EACpB,CAAC;EACD,MAAMM,KAAK,GAAGA,CAAA,KAAM;IAClBN,YAAY,CAAC,KAAK,CAAC;IACnBE,GAAG,CAACG,OAAO,EAAEC,KAAK,CAAC,CAAC;EACtB,CAAC;EACD,OAAO;IAAEP,SAAS;IAAEG,GAAG;IAAEE,MAAM;IAAEE;EAAM,CAAC;AAC1C,CAAC;AAACC,OAAA,CAAAT,2BAAA,GAAAA,2BAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["useRef","useState","useMultiSnapBottomSheetRef","initialSnap","snapPoints","ref","selectedSnap","setSelectedSnap","isVisible","setIsVisible","expand","snap","current","close","selectedSnapPoint"],"sourceRoot":"../../../src","sources":["selectBusiness/useMultiSnapBottomSheetRef.ts"],"mappings":"AAAA,SAASA,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAiBxC,OAAO,MAAMC,0BAA0B,GAAGA,CAAuB;EAC/DC,WAAW;EACXC;AAIF,CAAC,KAAK;EACJ,MAAMC,GAAG,GAAGL,MAAM,CAAM,IAAI,CAAC;EAC7B,MAAM,CAACM,YAAY,EAAEC,eAAe,CAAC,GAAGN,QAAQ,CAACE,WAAW,CAAC;EAC7D,MAAM,CAACK,SAAS,EAAEC,YAAY,CAAC,GAAGR,QAAQ,CAAC,KAAK,CAAC;EACjD,MAAMS,MAAM,GAAIC,IAA6B,IAAK;IAChDJ,eAAe,CAACI,IAAI,CAAC;IACrBF,YAAY,CAAC,IAAI,CAAC;IAClBJ,GAAG,CAACO,OAAO,EAAEF,MAAM,CAAC,CAAC;EACvB,CAAC;EACD,MAAMG,KAAK,GAAGA,CAAA,KAAM;IAClBR,GAAG,CAACO,OAAO,EAAEC,KAAK,CAAC,CAAC;IACpBJ,YAAY,CAAC,KAAK,CAAC;EACrB,CAAC;EACD,OAAO;IACLD,SAAS;IACTH,GAAG;IACHC,YAAY;IACZF,UAAU;IACVM,MAAM;IACNG,KAAK;IACLC,iBAAiB,EAAEV,UAAU,CAACE,YAAY,CAAC,IAAIF,UAAU,CAAC,CAAC;EAC7D,CAAC;AACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["useRef","useState","useSingleSnapBottomSheetRef","isVisible","setIsVisible","ref","expand","current","close"],"sourceRoot":"../../../src","sources":["selectBusiness/useSingleSnapBottomSheetRef.ts"],"mappings":"AAAA,SAASA,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AASxC,OAAO,MAAMC,2BAA2B,GAAGA,CAAA,KAAM;EAC/C,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGH,QAAQ,CAAC,KAAK,CAAC;EAEjD,MAAMI,GAAG,GAAGL,MAAM,CAAM,IAAI,CAAC;EAC7B,MAAMM,MAAM,GAAGA,CAAA,KAAM;IACnBD,GAAG,CAACE,OAAO,EAAED,MAAM,CAAC,CAAC;IACrBF,YAAY,CAAC,IAAI,CAAC;EACpB,CAAC;EACD,MAAMI,KAAK,GAAGA,CAAA,KAAM;IAClBJ,YAAY,CAAC,KAAK,CAAC;IACnBC,GAAG,CAACE,OAAO,EAAEC,KAAK,CAAC,CAAC;EACtB,CAAC;EACD,OAAO;IAAEL,SAAS;IAAEE,GAAG;IAAEC,MAAM;IAAEE;EAAM,CAAC;AAC1C,CAAC"}