be-components 3.6.9 → 3.7.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/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +2 -0
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +4 -3
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +2 -0
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +3 -0
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Components/Themed.js +25 -1
- package/lib/commonjs/Components/Themed.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +7 -3
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +3 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +2 -0
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +3 -0
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +4 -0
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +3 -0
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +10 -0
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +2 -0
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +38 -191
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +2 -0
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +2 -0
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +4 -3
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +2 -0
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +3 -0
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Components/Themed.js +26 -2
- package/lib/module/Components/Themed.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +6 -2
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +3 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +2 -0
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +3 -0
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +4 -0
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +3 -0
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +10 -0
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +2 -0
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +37 -191
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +2 -0
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts +2 -1
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +2 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +2 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/index.d.ts +2 -1
- package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts +3 -1
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +3 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +3 -2
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +3 -1
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Themed.d.ts +6 -0
- package/lib/typescript/src/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +4 -1
- package/src/Authenticator/Components/LoginForm.tsx +6 -4
- package/src/Authenticator/Components/StrategyForm.tsx +4 -2
- package/src/Authenticator/index.tsx +5 -2
- package/src/Components/Themed.tsx +26 -4
- package/src/ProfileManager/Components/BasicInfoManager.tsx +8 -4
- package/src/ProfileManager/Components/CodeRedeem.tsx +4 -2
- package/src/ProfileManager/Components/DOBManager.tsx +4 -2
- package/src/ProfileManager/Components/EmailManager.tsx +5 -2
- package/src/ProfileManager/Components/PasswordManager.tsx +6 -2
- package/src/ProfileManager/Components/PhoneManager.tsx +5 -2
- package/src/ProfileManager/Components/ProfileWizard.tsx +12 -2
- package/src/ProfileManager/Components/SettingsManager.tsx +4 -2
- package/src/ProfileManager/Components/VouchCard.tsx +20 -132
- package/src/ProfileManager/index.tsx +4 -2
- package/src/types.d.ts +7 -0
- package/lib/commonjs/ProfileManager/Components/Vouchhtml.js +0 -101
- package/lib/commonjs/ProfileManager/Components/Vouchhtml.js.map +0 -1
- package/lib/module/ProfileManager/Components/Vouchhtml.js +0 -95
- package/lib/module/ProfileManager/Components/Vouchhtml.js.map +0 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/Vouchhtml.d.ts +0 -9
- package/lib/typescript/lib/commonjs/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
- package/lib/typescript/lib/module/ProfileManager/Components/Vouchhtml.d.ts +0 -8
- package/lib/typescript/lib/module/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
- package/lib/typescript/src/ProfileManager/Components/Vouchhtml.d.ts +0 -10
- package/lib/typescript/src/ProfileManager/Components/Vouchhtml.d.ts.map +0 -1
- package/src/ProfileManager/Components/Vouchhtml.ts +0 -102
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailManager.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/EmailManager.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"EmailManager.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/EmailManager.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKrE,KAAK,iBAAiB,GAAG;IACrB,MAAM,EAAC,aAAa,CAAC;IACrB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,eAAe,CAAC,EAAC,CAAC,IAAI,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACnD,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,MAAM,EAAC,MAAM,IAAI,CAAC;IAClB,cAAc,EAAC,CAAC,MAAM,EAAC,aAAa,KAAK,IAAI,CAAA;CAChD,CAAA;AAED,QAAA,MAAM,YAAY,8EAA8E,iBAAiB,sBAwMhH,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MyPlayerProps } from '../../types';
|
|
2
|
+
import type { FocusPositionProps, MyPlayerProps } from '../../types';
|
|
3
3
|
type PasswordManagerProps = {
|
|
4
4
|
player: MyPlayerProps;
|
|
5
5
|
walkthrough?: boolean;
|
|
6
6
|
onNext: () => void;
|
|
7
|
+
onFocusPosition?: (data: FocusPositionProps) => void;
|
|
7
8
|
onClose: () => void;
|
|
8
9
|
onPlayerUpdate: (player: MyPlayerProps) => void;
|
|
9
10
|
};
|
|
10
|
-
declare const PasswordManager: ({ player, walkthrough, onPlayerUpdate, onNext, onClose }: PasswordManagerProps) => React.JSX.Element;
|
|
11
|
+
declare const PasswordManager: ({ player, walkthrough, onPlayerUpdate, onFocusPosition, onNext, onClose }: PasswordManagerProps) => React.JSX.Element;
|
|
11
12
|
export default PasswordManager;
|
|
12
13
|
//# sourceMappingURL=PasswordManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordManager.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/PasswordManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"PasswordManager.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/PasswordManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAIrE,KAAK,oBAAoB,GAAG;IACxB,MAAM,EAAC,aAAa,CAAC;IACrB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,MAAM,EAAC,MAAM,IAAI,CAAC;IAClB,eAAe,CAAC,EAAC,CAAC,IAAI,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACnD,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,cAAc,EAAC,CAAC,MAAM,EAAC,aAAa,KAAK,IAAI,CAAA;CAChD,CAAA;AAED,QAAA,MAAM,eAAe,8EAA8E,oBAAoB,sBAmMtH,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MyPlayerProps } from '../../types';
|
|
2
|
+
import type { FocusPositionProps, MyPlayerProps } from '../../types';
|
|
3
3
|
type PhoneManagerProps = {
|
|
4
4
|
player: MyPlayerProps;
|
|
5
5
|
walkthrough?: boolean;
|
|
6
6
|
onNext: () => void;
|
|
7
|
+
onFocusPosition?: (data: FocusPositionProps) => void;
|
|
7
8
|
onClose: () => void;
|
|
8
9
|
onPlayerUpdate: (player: MyPlayerProps) => void;
|
|
9
10
|
};
|
|
10
|
-
declare const PhoneManager: ({ player, walkthrough, onPlayerUpdate, onNext, onClose }: PhoneManagerProps) => React.JSX.Element;
|
|
11
|
+
declare const PhoneManager: ({ player, walkthrough, onPlayerUpdate, onFocusPosition, onNext, onClose }: PhoneManagerProps) => React.JSX.Element;
|
|
11
12
|
export default PhoneManager;
|
|
12
13
|
//# sourceMappingURL=PhoneManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneManager.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/PhoneManager.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"PhoneManager.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/PhoneManager.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKrE,KAAK,iBAAiB,GAAG;IACrB,MAAM,EAAC,aAAa,CAAC;IACrB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,MAAM,EAAC,MAAM,IAAI,CAAC;IAClB,eAAe,CAAC,EAAC,CAAC,IAAI,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACnD,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,cAAc,EAAC,CAAC,MAAM,EAAC,aAAa,KAAK,IAAI,CAAA;CAChD,CAAA;AAED,QAAA,MAAM,YAAY,8EAA8E,iBAAiB,sBA4MhH,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ProfileLevelProps, SettingProps } from "../api/types";
|
|
3
|
-
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PlayerSettingProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
3
|
+
import type { CodeRequestProps, FocusPositionProps, MyPlayerProps, PlayerReferralProps, PlayerSettingProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
4
4
|
type ProfileWizardProps = {
|
|
5
5
|
player: MyPlayerProps;
|
|
6
6
|
player_settings: PlayerSettingProps[];
|
|
@@ -8,6 +8,7 @@ type ProfileWizardProps = {
|
|
|
8
8
|
show_welcome?: boolean;
|
|
9
9
|
onVouching: (active: boolean) => void;
|
|
10
10
|
width: number;
|
|
11
|
+
onFocusPosition?: (position: FocusPositionProps) => void;
|
|
11
12
|
hide_powered_by?: boolean;
|
|
12
13
|
hidden_groups?: string[];
|
|
13
14
|
hidden_levels?: string[];
|
|
@@ -30,6 +31,6 @@ type ProfileWizardProps = {
|
|
|
30
31
|
onPlayerUpdate: (player: MyPlayerProps, attribute?: string) => void;
|
|
31
32
|
onUpdatePlayerSetting: (player_setting: PlayerSettingProps) => void;
|
|
32
33
|
};
|
|
33
|
-
declare const ProfileWizard: ({ player, hide_powered_by, settings, player_settings, onRedeemCode, init_walkthrough, show_welcome, onVouching, onNextStep, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onUpdatePlayerSetting, onPlayerUpdate, onSelectLevel, onClose, onLogout }: ProfileWizardProps) => React.JSX.Element;
|
|
34
|
+
declare const ProfileWizard: ({ player, hide_powered_by, settings, player_settings, onFocusPosition, onRedeemCode, init_walkthrough, show_welcome, onVouching, onNextStep, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onUpdatePlayerSetting, onPlayerUpdate, onSelectLevel, onClose, onLogout }: ProfileWizardProps) => React.JSX.Element;
|
|
34
35
|
export default ProfileWizard;
|
|
35
36
|
//# sourceMappingURL=ProfileWizard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileWizard.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/ProfileWizard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,iBAAiB,EAAoB,YAAY,EAAE,MAAM,cAAc,CAAA;AAarF,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ProfileWizard.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/ProfileWizard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,iBAAiB,EAAoB,YAAY,EAAE,MAAM,cAAc,CAAA;AAarF,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,aAAa,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOlL,KAAK,kBAAkB,GAAG;IACtB,MAAM,EAAC,aAAa,CAAC;IACrB,eAAe,EAAC,kBAAkB,EAAE,CAAC;IACrC,QAAQ,EAAC,YAAY,EAAE,CAAA;IACvB,YAAY,CAAC,EAAC,OAAO,CAAC;IACtB,UAAU,EAAC,CAAC,MAAM,EAAC,OAAO,KAAK,IAAI,CAAC;IACpC,KAAK,EAAC,MAAM,CAAC;IACb,eAAe,CAAC,EAAC,CAAC,QAAQ,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACvD,eAAe,CAAC,EAAC,OAAO,CAAC;IACzB,aAAa,CAAC,EAAC,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAC,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAC,MAAM,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAC;QACd,KAAK,EAAE,OAAO,GAAC,QAAQ,CAAA;KAC1B,CAAC;IACF,YAAY,EAAC,CAAC,YAAY,EAAC;QACvB,YAAY,CAAC,EAAC,gBAAgB,CAAC;QAC/B,KAAK,CAAC,EAAC,UAAU,CAAC;QAClB,eAAe,CAAC,EAAC,mBAAmB,CAAC;QACrC,aAAa,CAAC,EAAC,iBAAiB,CAAC;QACjC,QAAQ,CAAC,EAAC,iBAAiB,CAAA;KAC9B,KAAK,IAAI,CAAC;IACX,iBAAiB,CAAC,EAAC,OAAO,GAAC,OAAO,GAAC,OAAO,GAAC,KAAK,GAAC,UAAU,GAAC,OAAO,GAAC,cAAc,GAAC,aAAa,CAAC;IACjG,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,UAAU,EAAC,CAAC,IAAI,EAAC,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAC,MAAM,IAAI,CAAC;IACpB,aAAa,EAAC,CAAC,KAAK,EAAC,iBAAiB,KAAK,IAAI,CAAC;IAChD,cAAc,EAAC,CAAC,MAAM,EAAC,aAAa,EAAE,SAAS,CAAC,EAAC,MAAM,KAAK,IAAI,CAAA;IAChE,qBAAqB,EAAC,CAAC,cAAc,EAAC,kBAAkB,KAAK,IAAI,CAAA;CACpE,CAAA;AAGD,QAAA,MAAM,aAAa,iSAAkS,kBAAkB,sBAkkBtU,CAAA;AAID,eAAe,aAAa,CAAA"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SettingProps } from '../api/types';
|
|
3
|
-
import type { MyPlayerProps, PlayerSettingProps } from '../../types';
|
|
3
|
+
import type { FocusPositionProps, MyPlayerProps, PlayerSettingProps } from '../../types';
|
|
4
4
|
type SettingsManagerProps = {
|
|
5
5
|
title: string;
|
|
6
6
|
description: string;
|
|
7
|
+
onFocusPosition?: (data: FocusPositionProps) => void;
|
|
7
8
|
player: MyPlayerProps;
|
|
8
9
|
settings: SettingProps[];
|
|
9
10
|
icon: any;
|
|
10
11
|
player_settings: PlayerSettingProps[];
|
|
11
12
|
onUpdatePlayerSetting: (ps: PlayerSettingProps) => void;
|
|
12
13
|
};
|
|
13
|
-
declare const SettingsManager: ({ player, title, description, icon, settings, player_settings, onUpdatePlayerSetting }: SettingsManagerProps) => React.JSX.Element;
|
|
14
|
+
declare const SettingsManager: ({ player, title, description, icon, settings, player_settings, onFocusPosition, onUpdatePlayerSetting }: SettingsManagerProps) => React.JSX.Element;
|
|
14
15
|
export default SettingsManager;
|
|
15
16
|
//# sourceMappingURL=SettingsManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsManager.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/SettingsManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"SettingsManager.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/SettingsManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAKzF,KAAK,oBAAoB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAC,CAAC,IAAI,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACnD,MAAM,EAAC,aAAa,CAAC;IACrB,QAAQ,EAAC,YAAY,EAAE,CAAC;IACxB,IAAI,EAAC,GAAG,CAAC;IACT,eAAe,EAAE,kBAAkB,EAAE,CAAC;IACtC,qBAAqB,EAAC,CAAC,EAAE,EAAC,kBAAkB,KAAK,IAAI,CAAA;CACxD,CAAA;AAED,QAAA,MAAM,eAAe,4GAA4G,oBAAoB,sBAqIpJ,CAAA;AAGD,eAAe,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VouchCard.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/VouchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,mBAAmB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"VouchCard.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/VouchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,mBAAmB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIvH,KAAK,cAAc,GAAG;IAClB,MAAM,EAAC,aAAa,CAAC;IACrB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,UAAU,EAAC,CAAC,MAAM,EAAC,OAAO,KAAK,IAAI,CAAC;IACpC,YAAY,EAAE;QACV,YAAY,CAAC,EAAC,gBAAgB,CAAC;QAC/B,QAAQ,CAAC,EAAC,iBAAiB,CAAC;QAC5B,KAAK,CAAC,EAAC,UAAU,CAAC;QAClB,eAAe,CAAC,EAAC,mBAAmB,CAAA;KACvC,CAAA;IACD,cAAc,EAAC,CAAC,MAAM,EAAC,aAAa,KAAK,IAAI,CAAC;IAC9C,WAAW,EAAC,MAAM,IAAI,CAAC;IACvB,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,SAAS,4FAA4F,cAAc,sBAuOxH,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../types';
|
|
2
|
+
import type { CodeRequestProps, FocusPositionProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../types';
|
|
3
3
|
type ProfileOverviewProps = {
|
|
4
4
|
show_welcome?: boolean;
|
|
5
5
|
hide_powered_by?: boolean;
|
|
@@ -9,6 +9,7 @@ type ProfileOverviewProps = {
|
|
|
9
9
|
hidden_steps?: string[];
|
|
10
10
|
hidden_levels?: string[];
|
|
11
11
|
onClose: () => void;
|
|
12
|
+
onFocusPosition?: (data: FocusPositionProps) => void;
|
|
12
13
|
onVouchStart?: () => void;
|
|
13
14
|
onLogout: () => void;
|
|
14
15
|
onRedeemCode: (code_details: {
|
|
@@ -25,6 +26,6 @@ type ProfileOverviewProps = {
|
|
|
25
26
|
level: 'verify' | 'basic';
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
|
-
declare const ProfileManager: ({ profile_attribute, hide_profile_header, player, hide_powered_by, onRedeemCode, onPlayerUpdate, onNextStep, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, onClose, onLogout }: ProfileOverviewProps) => React.JSX.Element;
|
|
29
|
+
declare const ProfileManager: ({ profile_attribute, hide_profile_header, player, hide_powered_by, onRedeemCode, onPlayerUpdate, onNextStep, onFocusPosition, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, onClose, onLogout }: ProfileOverviewProps) => React.JSX.Element;
|
|
29
30
|
export default ProfileManager;
|
|
30
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProfileManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAsB,mBAAmB,EAAsB,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProfileManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,aAAa,EAAsB,mBAAmB,EAAsB,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGnM,KAAK,oBAAoB,GAAG;IACxB,YAAY,CAAC,EAAC,OAAO,CAAC;IAEtB,eAAe,CAAC,EAAC,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAC,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAC,aAAa,CAAC;IACtB,aAAa,CAAC,EAAC,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAC,MAAM,EAAE,CAAC;IACvB,aAAa,CAAC,EAAC,MAAM,EAAE,CAAC;IACxB,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,eAAe,CAAC,EAAC,CAAC,IAAI,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACnD,YAAY,CAAC,EAAC,MAAM,IAAI,CAAC;IACzB,QAAQ,EAAC,MAAM,IAAI,CAAC;IACpB,YAAY,EAAC,CAAC,YAAY,EAAC;QACvB,YAAY,CAAC,EAAC,gBAAgB,CAAC;QAC/B,KAAK,CAAC,EAAC,UAAU,CAAC;QAClB,eAAe,CAAC,EAAC,mBAAmB,CAAC;QACrC,aAAa,CAAC,EAAC,iBAAiB,CAAC;QACjC,QAAQ,CAAC,EAAC,iBAAiB,CAAA;KAC9B,KAAK,IAAI,CAAC;IACX,UAAU,CAAC,EAAC,CAAC,IAAI,EAAC,MAAM,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAC,CAAC,CAAC,EAAC,aAAa,EAAE,SAAS,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IAC7D,iBAAiB,CAAC,EAAC,OAAO,GAAC,OAAO,GAAC,OAAO,GAAC,KAAK,GAAC,UAAU,GAAC,OAAO,GAAC,cAAc,GAAC,aAAa,CAAC;IACjG,WAAW,CAAC,EAAE;QACV,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAA;KAC5B,CAAA;CACJ,CAAA;AAED,QAAA,MAAM,cAAc,2OAA4O,oBAAoB,sBAkHnR,CAAA;AAED,eAAe,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "be-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Components for BettorEdge Apps",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -185,6 +185,7 @@
|
|
|
185
185
|
"expo-notifications": "^0.29.11",
|
|
186
186
|
"expo-sharing": "~13.0.0",
|
|
187
187
|
"expo-status-bar": "~2.0.0",
|
|
188
|
+
"expo-web-browser": "~14.0.1",
|
|
188
189
|
"install-expo-modules": "latest",
|
|
189
190
|
"is-url": "^1.2.4",
|
|
190
191
|
"moment-mini": "^2.29.4",
|
|
@@ -5,15 +5,17 @@ import type { AuthStrategyIdentifierProps } from '../api/types';
|
|
|
5
5
|
import { AuthenticateHelpers } from '../api';
|
|
6
6
|
import { useColors } from '../../constants/useColors';
|
|
7
7
|
import { Text, View, TextInput } from '../../Components/Themed';
|
|
8
|
+
import type { FocusPositionProps } from '../../types';
|
|
8
9
|
|
|
9
10
|
type AuthStrategyIdentifierCardProps = {
|
|
10
11
|
auth_strategy_identifier:AuthStrategyIdentifierProps,
|
|
11
12
|
auth_request?: any,
|
|
12
13
|
auto_focus?:boolean,
|
|
14
|
+
onFocusPosition?:(data:FocusPositionProps) => void,
|
|
13
15
|
onChangeIdentifier: (text:string, is_valid:boolean, pretty_value?:string) => void
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
const AuthStrategyIdentifier = ({ auth_strategy_identifier, auto_focus, auth_request, onChangeIdentifier }:AuthStrategyIdentifierCardProps) => {
|
|
18
|
+
const AuthStrategyIdentifier = ({ auth_strategy_identifier, onFocusPosition, auto_focus, auth_request, onChangeIdentifier }:AuthStrategyIdentifierCardProps) => {
|
|
17
19
|
const C = useColors();
|
|
18
20
|
|
|
19
21
|
const getAttributeIcon = (attribute:string) => {
|
|
@@ -38,6 +40,7 @@ const AuthStrategyIdentifier = ({ auth_strategy_identifier, auto_focus, auth_req
|
|
|
38
40
|
</View>
|
|
39
41
|
<TextInput
|
|
40
42
|
style={{ flex:1 }}
|
|
43
|
+
onFocusPosition={onFocusPosition}
|
|
41
44
|
value={auth_request.pretty_value ?? auth_request.value}
|
|
42
45
|
transparent
|
|
43
46
|
placeholder={`${auth_strategy_identifier.label}`}
|
|
@@ -6,11 +6,13 @@ import { AuthenticateApi, AuthenticateHelpers } from '../api';
|
|
|
6
6
|
import type { AuthenticatedProps } from '../api/types';
|
|
7
7
|
import { Text, View, Button, TextInput } from '../../Components/Themed';
|
|
8
8
|
import { useColors } from '../../constants/useColors';
|
|
9
|
+
import type { FocusPositionProps } from '../../types';
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
type LoginFormProps = {
|
|
12
13
|
visible:boolean,
|
|
13
14
|
maxWidth?:number,
|
|
15
|
+
onFocusPosition?:(data:FocusPositionProps) => void,
|
|
14
16
|
onTryAuthenticate:(attribute:string, result:'success'|'fail') => void,
|
|
15
17
|
onRegister: () => void,
|
|
16
18
|
onAuthenticated: (auth_response:AuthenticatedProps) => void
|
|
@@ -18,10 +20,8 @@ type LoginFormProps = {
|
|
|
18
20
|
|
|
19
21
|
|
|
20
22
|
const attribute_options = ['username', 'email', 'phone']
|
|
21
|
-
const LoginForm = ({ maxWidth, visible, onRegister, onAuthenticated, onTryAuthenticate }:LoginFormProps) => {
|
|
23
|
+
const LoginForm = ({ maxWidth, visible, onRegister, onFocusPosition, onAuthenticated, onTryAuthenticate }:LoginFormProps) => {
|
|
22
24
|
const C = useColors();
|
|
23
|
-
const [ authenticated, setAuthenticated ] = useState(false);
|
|
24
|
-
console.log(authenticated)
|
|
25
25
|
const [ auth_check, setAuthCheck ] = useState<{
|
|
26
26
|
loading:boolean,
|
|
27
27
|
attribute: 'username'|'email'|'phone',
|
|
@@ -100,7 +100,6 @@ const LoginForm = ({ maxWidth, visible, onRegister, onAuthenticated, onTryAuthen
|
|
|
100
100
|
}, 5000);
|
|
101
101
|
}
|
|
102
102
|
setLoginTry({ ...login_try, loading:false, error:undefined })
|
|
103
|
-
setAuthenticated(true)
|
|
104
103
|
return onAuthenticated({
|
|
105
104
|
player_id,
|
|
106
105
|
access_token,
|
|
@@ -166,6 +165,7 @@ const LoginForm = ({ maxWidth, visible, onRegister, onAuthenticated, onTryAuthen
|
|
|
166
165
|
</View>
|
|
167
166
|
<TextInput
|
|
168
167
|
style={{ flex:1 }}
|
|
168
|
+
onFocusPosition={onFocusPosition}
|
|
169
169
|
value={value}
|
|
170
170
|
transparent
|
|
171
171
|
placeholder={attribute.toUpperCase()}
|
|
@@ -223,6 +223,7 @@ const LoginForm = ({ maxWidth, visible, onRegister, onAuthenticated, onTryAuthen
|
|
|
223
223
|
<TextInput
|
|
224
224
|
value={value}
|
|
225
225
|
transparent
|
|
226
|
+
onFocusPosition={onFocusPosition}
|
|
226
227
|
editable={false}
|
|
227
228
|
style={{ flex:1 }}
|
|
228
229
|
placeholderTextColor={Colors.brand.slate}
|
|
@@ -252,6 +253,7 @@ const LoginForm = ({ maxWidth, visible, onRegister, onAuthenticated, onTryAuthen
|
|
|
252
253
|
<TextInput
|
|
253
254
|
style={{ flex:1 }}
|
|
254
255
|
key={type}
|
|
256
|
+
onFocusPosition={onFocusPosition}
|
|
255
257
|
value={pass_token}
|
|
256
258
|
placeholder={`Enter ${type}`}
|
|
257
259
|
autoFocus={true}
|
|
@@ -4,7 +4,7 @@ import { Checkbox, Icons } from "../../Components";
|
|
|
4
4
|
import type { AuthExecutionRequestProps, AuthStrategyIdentifierProps, AuthStrategyProps, AuthenticatedProps } from '../api/types';
|
|
5
5
|
import { AuthenticateApi, AuthenticateHelpers } from '../api';
|
|
6
6
|
import { Linking, TouchableOpacity , FlatList } from 'react-native';
|
|
7
|
-
import type { CompanyProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
7
|
+
import type { CompanyProps, FocusPositionProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
8
8
|
import { ProfileHelpers } from '../../ProfileManager/api';
|
|
9
9
|
import AuthStrategyIdentifier from './AuthStrategyIdentifier';
|
|
10
10
|
import { useColors } from '../../constants/useColors';
|
|
@@ -18,6 +18,7 @@ type StrategyFormProps = {
|
|
|
18
18
|
company_id?:string,
|
|
19
19
|
distinct_id:string,
|
|
20
20
|
source:string,
|
|
21
|
+
onFocusPosition?:(data:FocusPositionProps) => void,
|
|
21
22
|
company?:CompanyProps,
|
|
22
23
|
opt_in_url?:string,
|
|
23
24
|
show_referral?:boolean,
|
|
@@ -28,7 +29,7 @@ type StrategyFormProps = {
|
|
|
28
29
|
|
|
29
30
|
//const mini_steps = ['intro', 'execution', 'verify']
|
|
30
31
|
|
|
31
|
-
const StrategyForm = ({ visible, strategy, auth_strategy_id, company_id, distinct_id, source, show_referral, referral_code, maxWidth, opt_in_url, onAuthenticated, onLogin }:StrategyFormProps) => {
|
|
32
|
+
const StrategyForm = ({ visible, strategy, auth_strategy_id, onFocusPosition, company_id, distinct_id, source, show_referral, referral_code, maxWidth, opt_in_url, onAuthenticated, onLogin }:StrategyFormProps) => {
|
|
32
33
|
const C = useColors();
|
|
33
34
|
const [ action_loading, setActionLoading ] = useState(false);
|
|
34
35
|
const [ active_view, setActiveView ] = useState('authenticate');
|
|
@@ -238,6 +239,7 @@ const StrategyForm = ({ visible, strategy, auth_strategy_id, company_id, distinc
|
|
|
238
239
|
style={{ textAlign:'center', minWidth:200 }}
|
|
239
240
|
value={token}
|
|
240
241
|
transparent
|
|
242
|
+
onFocusPosition={onFocusPosition}
|
|
241
243
|
placeholder='00000'
|
|
242
244
|
keyboardType='default'
|
|
243
245
|
autoFocus
|
|
@@ -6,7 +6,7 @@ import LoginForm from './Components/LoginForm';
|
|
|
6
6
|
import { Text, View, Button } from '../Components/Themed';
|
|
7
7
|
import type { AuthStrategyIdentifierProps, AuthStrategyProps, AuthenticatedProps } from './api/types';
|
|
8
8
|
import { APIOverrides } from '../ApiOverrides';
|
|
9
|
-
import type { CompanyProps } from '../types';
|
|
9
|
+
import type { CompanyProps, FocusPositionProps } from '../types';
|
|
10
10
|
import { useColors } from '../constants/useColors';
|
|
11
11
|
|
|
12
12
|
|
|
@@ -17,6 +17,7 @@ type AuthenticateWizardProps = {
|
|
|
17
17
|
default_view?:'login'|'register'
|
|
18
18
|
show_referral?:boolean,
|
|
19
19
|
source:string,
|
|
20
|
+
onFocusPosition?:(data:FocusPositionProps) => void,
|
|
20
21
|
theme?:'full'|'mini'
|
|
21
22
|
opt_in_url?:string,
|
|
22
23
|
referral_code?:string,
|
|
@@ -27,7 +28,7 @@ type AuthenticateWizardProps = {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
const auth_sections = ['header','strategy','login','actions']
|
|
30
|
-
const Authenticator = ({ show_referral, auth_strategy_id, default_view, company_id, source, referral_code, maxWidth, opt_in_url, onTryAuthenticate, onAuthenticated, onClose }:AuthenticateWizardProps) => {
|
|
31
|
+
const Authenticator = ({ show_referral, auth_strategy_id, onFocusPosition, default_view, company_id, source, referral_code, maxWidth, opt_in_url, onTryAuthenticate, onAuthenticated, onClose }:AuthenticateWizardProps) => {
|
|
31
32
|
const C = useColors();
|
|
32
33
|
const [ company, setCompany ] = useState<CompanyProps>();
|
|
33
34
|
const [ distinct_id, setDistinctID ] = useState<string>();
|
|
@@ -105,6 +106,7 @@ const Authenticator = ({ show_referral, auth_strategy_id, default_view, company_
|
|
|
105
106
|
maxWidth={maxWidth}
|
|
106
107
|
company={company}
|
|
107
108
|
strategy={strategy}
|
|
109
|
+
onFocusPosition={onFocusPosition}
|
|
108
110
|
onLogin={() => setActiveView('login')}
|
|
109
111
|
auth_strategy_id={auth_strategy_id}
|
|
110
112
|
company_id={company_id}
|
|
@@ -122,6 +124,7 @@ const Authenticator = ({ show_referral, auth_strategy_id, default_view, company_
|
|
|
122
124
|
maxWidth={maxWidth}
|
|
123
125
|
visible={ active_view == 'login' ? true : false }
|
|
124
126
|
onAuthenticated={handleAuthenticated}
|
|
127
|
+
onFocusPosition={onFocusPosition}
|
|
125
128
|
onTryAuthenticate={(attribute, result) => onTryAuthenticate ? onTryAuthenticate(attribute, result) : console.log()}
|
|
126
129
|
onRegister={() => setActiveView('register')}
|
|
127
130
|
/>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
2
|
+
import React, { forwardRef, useRef } from 'react';
|
|
3
3
|
import { TextInput as DefaultTextInput, ActivityIndicator, Text as DefaultText, View as DefaultView, TouchableOpacity, useWindowDimensions, type TouchableOpacityProps, useColorScheme } from 'react-native';
|
|
4
4
|
import { useColors } from '../constants/useColors';
|
|
5
5
|
import { MyTextStyles, MyViewStyles } from '../constants/styles';
|
|
@@ -213,13 +213,29 @@ let floated = float ? color_mode == 'dark' ? MyViewStyles.floatDark : MyViewStyl
|
|
|
213
213
|
|
|
214
214
|
type BETextInputProps = {
|
|
215
215
|
type?:string,
|
|
216
|
-
transparent?:boolean
|
|
216
|
+
transparent?:boolean,
|
|
217
|
+
onFocusPosition?: (position:{x:number, y:number, width:number, height:number}) => void
|
|
217
218
|
}
|
|
218
219
|
|
|
219
220
|
type TextInputProps = BETextInputProps & DefaultTextInput['props']
|
|
220
221
|
|
|
221
222
|
export const TextInput = (props:TextInputProps) => {
|
|
222
223
|
const C = useColors();
|
|
224
|
+
const inputRef = useRef<DefaultTextInput>(null);
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
const handleFocus = (e:any) => {
|
|
228
|
+
if(props.onFocus){ props.onFocus(e) }
|
|
229
|
+
if(!props.onFocusPosition){ return }
|
|
230
|
+
if (inputRef.current && props.onFocusPosition) {
|
|
231
|
+
inputRef.current.measureInWindow((x, y, width, height) => {
|
|
232
|
+
if(props.onFocusPosition){
|
|
233
|
+
props.onFocusPosition({x, y, width, height})
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
223
239
|
const { type, style, transparent, ...otherProps } = props;
|
|
224
240
|
|
|
225
241
|
const borderRadius = 8
|
|
@@ -230,6 +246,12 @@ export const TextInput = (props:TextInputProps) => {
|
|
|
230
246
|
const placeholder_color = C.text.placholder
|
|
231
247
|
|
|
232
248
|
return (
|
|
233
|
-
<DefaultTextInput
|
|
249
|
+
<DefaultTextInput
|
|
250
|
+
ref={inputRef}
|
|
251
|
+
placeholderTextColor={placeholder_color}
|
|
252
|
+
style={[{ padding:15, borderRadius, backgroundColor: background, borderColor: border, borderWidth, color }, style]} { ...otherProps }
|
|
253
|
+
onFocus={handleFocus}
|
|
254
|
+
/>
|
|
234
255
|
)
|
|
235
|
-
}
|
|
256
|
+
}
|
|
257
|
+
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { ActivityIndicator, TouchableOpacity, ScrollView } from 'react-native';
|
|
3
|
-
import { Icons
|
|
3
|
+
import { Icons } from '../../Components';
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
5
|
import { ProfileApi } from '../api';
|
|
6
6
|
import { button_styles } from '../../constants/styles';
|
|
7
|
-
import type { MyPlayerProps } from '../../types';
|
|
8
|
-
import { Button, Text, View } from '../../Components/Themed';
|
|
7
|
+
import type { FocusPositionProps, MyPlayerProps } from '../../types';
|
|
8
|
+
import { Button, Text, View, TextInput } from '../../Components/Themed';
|
|
9
9
|
import { useColors } from '../../constants/useColors';
|
|
10
10
|
|
|
11
11
|
type BasicInfoManagerProps = {
|
|
12
12
|
player:MyPlayerProps,
|
|
13
13
|
walkthrough?:boolean,
|
|
14
|
+
onFocusPosition?:(data:FocusPositionProps) => void,
|
|
14
15
|
onNext:() => void,
|
|
15
16
|
onClose:() => void,
|
|
16
17
|
onPlayerUpdate:(player:MyPlayerProps) => void
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
const BasicInfoManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose }:BasicInfoManagerProps) => {
|
|
20
|
+
const BasicInfoManager = ({ player, walkthrough, onFocusPosition, onPlayerUpdate, onNext, onClose }:BasicInfoManagerProps) => {
|
|
20
21
|
const C = useColors();
|
|
21
22
|
const [ draft_player, setDraftPlayer ] = useState<MyPlayerProps>(player)
|
|
22
23
|
const [ loading, setLoading ] = useState(false);
|
|
@@ -78,6 +79,7 @@ const BasicInfoManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
78
79
|
<TextInput
|
|
79
80
|
value={draft_player.username}
|
|
80
81
|
style={{ flex:1, borderRadius:0 }}
|
|
82
|
+
onFocusPosition={onFocusPosition}
|
|
81
83
|
onBlur={async() => {
|
|
82
84
|
if(draft_player.username.toLowerCase() == player.username.toLowerCase()){ return }//USERNAME HAS NOT CHANGED
|
|
83
85
|
setUsernameValid({ ...username_valid, loading:true })
|
|
@@ -124,6 +126,7 @@ const BasicInfoManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
124
126
|
<TextInput
|
|
125
127
|
value={draft_player.first_name}
|
|
126
128
|
placeholder='First Name'
|
|
129
|
+
onFocusPosition={onFocusPosition}
|
|
127
130
|
placeholderTextColor={Colors.brand.slate}
|
|
128
131
|
editable={player.vouched_status != 'verified' ? true : false}
|
|
129
132
|
style={{ flex:1, borderTopLeftRadius:0, borderBottomLeftRadius:0 }}
|
|
@@ -140,6 +143,7 @@ const BasicInfoManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
140
143
|
<TextInput
|
|
141
144
|
value={draft_player.last_name}
|
|
142
145
|
placeholder='Last Name'
|
|
146
|
+
onFocusPosition={onFocusPosition}
|
|
143
147
|
placeholderTextColor={Colors.brand.slate}
|
|
144
148
|
editable={player.vouched_status != 'verified' ? true : false}
|
|
145
149
|
style={{ flex:1, borderTopLeftRadius:0, borderBottomLeftRadius:0 }}
|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import { ActivityIndicator, Image } from 'react-native';
|
|
3
3
|
import { Icons } from '../../Components';
|
|
4
4
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
5
|
-
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
5
|
+
import type { CodeRequestProps, FocusPositionProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
6
6
|
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
7
7
|
import { useColors } from '../../constants/useColors';
|
|
8
8
|
|
|
@@ -10,6 +10,7 @@ type CodeRedeemProps = {
|
|
|
10
10
|
player:MyPlayerProps,
|
|
11
11
|
walkthrough?:boolean,
|
|
12
12
|
onVerify:() => void,
|
|
13
|
+
onFocusPosition?:(data:FocusPositionProps) => void,
|
|
13
14
|
onRedeemCode:(code_details:{
|
|
14
15
|
code_request?:CodeRequestProps,
|
|
15
16
|
promo?:PromoProps,
|
|
@@ -20,7 +21,7 @@ type CodeRedeemProps = {
|
|
|
20
21
|
onClose:() => void
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
const CodeRedeem = ({ walkthrough, onVerify, onClose, onRedeemCode }:CodeRedeemProps) => {
|
|
24
|
+
const CodeRedeem = ({ walkthrough, onVerify, onClose, onRedeemCode, onFocusPosition }:CodeRedeemProps) => {
|
|
24
25
|
const C = useColors();
|
|
25
26
|
const [ loading, setLoading ] = useState(false);
|
|
26
27
|
const [ show_reward, setShowReward ] = useState(false);
|
|
@@ -100,6 +101,7 @@ const CodeRedeem = ({ walkthrough, onVerify, onClose, onRedeemCode }:CodeRedeemP
|
|
|
100
101
|
</View>
|
|
101
102
|
<TextInput
|
|
102
103
|
value={draft_code}
|
|
104
|
+
onFocusPosition={onFocusPosition}
|
|
103
105
|
style={{ flex:1, textAlign: 'center' }}
|
|
104
106
|
placeholder='Add Code Here'
|
|
105
107
|
editable={change_allowed}
|
|
@@ -5,7 +5,7 @@ import { Icons } from '../../Components';
|
|
|
5
5
|
import Colors from '../../constants/colors';
|
|
6
6
|
import { ProfileApi } from '../api';
|
|
7
7
|
import { button_styles } from '../../constants/styles';
|
|
8
|
-
import type { MyPlayerProps } from '../../types';
|
|
8
|
+
import type { FocusPositionProps, MyPlayerProps } from '../../types';
|
|
9
9
|
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
10
10
|
import { useColors } from '../../constants/useColors';
|
|
11
11
|
|
|
@@ -13,11 +13,12 @@ type DOBManagerProps = {
|
|
|
13
13
|
player:MyPlayerProps,
|
|
14
14
|
walkthrough?:boolean,
|
|
15
15
|
onNext:() => void,
|
|
16
|
+
onFocusPosition?:(data:FocusPositionProps) => void,
|
|
16
17
|
onClose:() => void,
|
|
17
18
|
onPlayerUpdate:(player:MyPlayerProps) => void
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
const DOBManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose }: DOBManagerProps ) => {
|
|
21
|
+
const DOBManager = ({ player, walkthrough, onFocusPosition, onPlayerUpdate, onNext, onClose }: DOBManagerProps ) => {
|
|
21
22
|
const C = useColors();
|
|
22
23
|
const [ loading, setLoading ] = useState(false);
|
|
23
24
|
const [ dob, setDob ] = useState<string>('');
|
|
@@ -99,6 +100,7 @@ const DOBManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose }: DO
|
|
|
99
100
|
</View>
|
|
100
101
|
<TextInput
|
|
101
102
|
value={dob}
|
|
103
|
+
onFocusPosition={onFocusPosition}
|
|
102
104
|
placeholder='01/01/2005'
|
|
103
105
|
editable={player.vouched_status == 'verified' ? false : true}
|
|
104
106
|
style={{ flex:1 }}
|
|
@@ -4,7 +4,7 @@ import { ActivityIndicator, TouchableOpacity } from 'react-native';
|
|
|
4
4
|
import { Icons } from '../../Components';
|
|
5
5
|
import { button_styles } from '../../constants/styles';
|
|
6
6
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
7
|
-
import type { MyPlayerProps } from '../../types';
|
|
7
|
+
import type { FocusPositionProps, MyPlayerProps } from '../../types';
|
|
8
8
|
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
9
9
|
import { useColors } from '../../constants/useColors';
|
|
10
10
|
|
|
@@ -12,12 +12,13 @@ import { useColors } from '../../constants/useColors';
|
|
|
12
12
|
type EmailManagerProps = {
|
|
13
13
|
player:MyPlayerProps,
|
|
14
14
|
walkthrough?:boolean,
|
|
15
|
+
onFocusPosition?:(data:FocusPositionProps) => void,
|
|
15
16
|
onClose:() => void,
|
|
16
17
|
onNext:() => void,
|
|
17
18
|
onPlayerUpdate:(player:MyPlayerProps) => void
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
const EmailManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose }:EmailManagerProps) => {
|
|
21
|
+
const EmailManager = ({ player, walkthrough, onFocusPosition, onPlayerUpdate, onNext, onClose }:EmailManagerProps) => {
|
|
21
22
|
const C = useColors();
|
|
22
23
|
const [ loading, setLoading ] = useState(false);
|
|
23
24
|
const [ verify_token, setVerifyToken ] = useState({
|
|
@@ -107,6 +108,7 @@ const EmailManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose }:E
|
|
|
107
108
|
<TextInput
|
|
108
109
|
value={draft_player.email}
|
|
109
110
|
keyboardType='email-address'
|
|
111
|
+
onFocusPosition={onFocusPosition}
|
|
110
112
|
style={{ flex:1 }}
|
|
111
113
|
transparent
|
|
112
114
|
onChangeText={(text) => {
|
|
@@ -185,6 +187,7 @@ const EmailManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose }:E
|
|
|
185
187
|
<TextInput
|
|
186
188
|
value={verify_token.token}
|
|
187
189
|
textContentType='oneTimeCode'
|
|
190
|
+
onFocusPosition={onFocusPosition}
|
|
188
191
|
style={{ flex:1, textAlign:'center'}}
|
|
189
192
|
placeholder='00000'
|
|
190
193
|
transparent
|
|
@@ -5,7 +5,7 @@ import type { PasswordStateProps } from '../api/types';
|
|
|
5
5
|
import Colors from '../../constants/colors';
|
|
6
6
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
7
7
|
import { button_styles } from '../../constants/styles';
|
|
8
|
-
import type { MyPlayerProps } from '../../types';
|
|
8
|
+
import type { FocusPositionProps, MyPlayerProps } from '../../types';
|
|
9
9
|
import { Text, View, Button, TextInput } from '../../Components/Themed';
|
|
10
10
|
import { useColors } from '../../constants/useColors';
|
|
11
11
|
|
|
@@ -13,11 +13,12 @@ type PasswordManagerProps = {
|
|
|
13
13
|
player:MyPlayerProps,
|
|
14
14
|
walkthrough?:boolean,
|
|
15
15
|
onNext:() => void,
|
|
16
|
+
onFocusPosition?:(data:FocusPositionProps) => void,
|
|
16
17
|
onClose:() => void,
|
|
17
18
|
onPlayerUpdate:(player:MyPlayerProps) => void
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
const PasswordManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose }:PasswordManagerProps) => {
|
|
21
|
+
const PasswordManager = ({ player, walkthrough, onPlayerUpdate, onFocusPosition, onNext, onClose }:PasswordManagerProps) => {
|
|
21
22
|
const C = useColors();
|
|
22
23
|
const [ draft_player, setDraftPlayer ] = useState<MyPlayerProps>(player);
|
|
23
24
|
const [ draft_password, setDraftPassword ] = useState({
|
|
@@ -115,6 +116,7 @@ const PasswordManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
115
116
|
<TextInput
|
|
116
117
|
value={draft_password.current_password}
|
|
117
118
|
placeholder='My Current Password'
|
|
119
|
+
onFocusPosition={onFocusPosition}
|
|
118
120
|
secureTextEntry
|
|
119
121
|
transparent
|
|
120
122
|
style={{ flex:1 }}
|
|
@@ -132,6 +134,7 @@ const PasswordManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
132
134
|
<TextInput
|
|
133
135
|
value={draft_password.password}
|
|
134
136
|
placeholder='Enter Password'
|
|
137
|
+
onFocusPosition={onFocusPosition}
|
|
135
138
|
transparent
|
|
136
139
|
secureTextEntry
|
|
137
140
|
style={{ flex:1 }}
|
|
@@ -148,6 +151,7 @@ const PasswordManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
148
151
|
<TextInput
|
|
149
152
|
value={draft_password.re_password}
|
|
150
153
|
placeholder='Re-Enter Password'
|
|
154
|
+
onFocusPosition={onFocusPosition}
|
|
151
155
|
secureTextEntry
|
|
152
156
|
transparent
|
|
153
157
|
style={{ flex:1 }}
|
|
@@ -5,7 +5,7 @@ import { Icons } from '../../Components';
|
|
|
5
5
|
import Colors from '../../constants/colors';
|
|
6
6
|
import { button_styles } from '../../constants/styles';
|
|
7
7
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
8
|
-
import type { MyPlayerProps } from '../../types';
|
|
8
|
+
import type { FocusPositionProps, MyPlayerProps } from '../../types';
|
|
9
9
|
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
10
10
|
import { useColors } from '../../constants/useColors';
|
|
11
11
|
|
|
@@ -14,11 +14,12 @@ type PhoneManagerProps = {
|
|
|
14
14
|
player:MyPlayerProps,
|
|
15
15
|
walkthrough?:boolean,
|
|
16
16
|
onNext:() => void,
|
|
17
|
+
onFocusPosition?:(data:FocusPositionProps) => void,
|
|
17
18
|
onClose:() => void,
|
|
18
19
|
onPlayerUpdate:(player:MyPlayerProps) => void
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
const PhoneManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose }:PhoneManagerProps) => {
|
|
22
|
+
const PhoneManager = ({ player, walkthrough, onPlayerUpdate, onFocusPosition, onNext, onClose }:PhoneManagerProps) => {
|
|
22
23
|
const C = useColors();
|
|
23
24
|
const [ loading, setLoading ] = useState(false);
|
|
24
25
|
const [ verify_token, setVerifyToken ] = useState({
|
|
@@ -115,6 +116,7 @@ const PhoneManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose }:P
|
|
|
115
116
|
<TextInput
|
|
116
117
|
value={ProfileHelpers.formatPhone(draft_player.phone)}
|
|
117
118
|
keyboardType='phone-pad'
|
|
119
|
+
onFocusPosition={onFocusPosition}
|
|
118
120
|
style={{ flex:1 }}
|
|
119
121
|
transparent
|
|
120
122
|
onChangeText={(text) => handlePhoneChange(text)}
|
|
@@ -190,6 +192,7 @@ const PhoneManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose }:P
|
|
|
190
192
|
<TextInput
|
|
191
193
|
value={verify_token.token}
|
|
192
194
|
textContentType='oneTimeCode'
|
|
195
|
+
onFocusPosition={onFocusPosition}
|
|
193
196
|
style={{ flex:1, textAlign:'center'}}
|
|
194
197
|
placeholder='00000'
|
|
195
198
|
transparent
|