be-components 3.7.7 → 3.8.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/ProfileManager/Components/ProfileWizard.js +2 -0
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +85 -36
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/api/index.js +9 -0
- package/lib/commonjs/ProfileManager/api/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +2 -0
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/constants/useColors.js +3 -3
- package/lib/commonjs/constants/useColors.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +2 -0
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +86 -36
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/api/index.js +9 -0
- package/lib/module/ProfileManager/api/index.js.map +1 -1
- package/lib/module/ProfileManager/index.js +2 -0
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/constants/useColors.js +3 -3
- package/lib/module/constants/useColors.js.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/VouchCard.d.ts +2 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/api/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/ProfileManager/api/index.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/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/VouchCard.d.ts +2 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/api/index.d.ts +1 -0
- package/lib/typescript/lib/module/ProfileManager/api/index.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/ProfileManager/Components/ProfileWizard.d.ts +7 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts +7 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/api/index.d.ts +2 -0
- package/lib/typescript/src/ProfileManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +7 -1
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ProfileManager/Components/ProfileWizard.tsx +3 -1
- package/src/ProfileManager/Components/VouchCard.tsx +60 -39
- package/src/ProfileManager/api/index.ts +10 -0
- package/src/ProfileManager/index.tsx +3 -1
- package/src/constants/useColors.tsx +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useColorScheme","Colors","useColors","color_scheme","absolutes","light_theme","toggle","background","shades","shade100","button","active","brand","midnight","inactive","text","white","slate","order_book","tradeSide","electric","otherSide","cyan","selected","shade600","buttons","success","error","close","info","borders","utility","squares","highlights","highlight100","competition","highlight500","views","header","body","shade500","footer","gold","incentive","input","disabled_input","blur","liquidMarket","highlight500Faded","illiquidMarket","light","dark","accents","accent100","h1","h2","highlight","description","descriptionLight","action","black","placholder","
|
|
1
|
+
{"version":3,"names":["useColorScheme","Colors","useColors","color_scheme","absolutes","light_theme","toggle","background","shades","shade100","button","active","brand","midnight","inactive","text","white","slate","order_book","tradeSide","electric","otherSide","cyan","selected","shade600","buttons","success","error","close","info","borders","utility","squares","highlights","highlight100","competition","highlight500","views","header","body","shade500","footer","gold","incentive","input","disabled_input","shade400","blur","liquidMarket","highlight500Faded","illiquidMarket","light","dark","accents","accent100","h1","h2","highlight","description","descriptionLight","action","black","placholder","warning","silver","bronze","dark_theme","blackFadedHeavy","electricLight","midnightLight","highlight400","highlight300","successDark","errorDark","highlight100Faded","black_faded","goldDark","accent200","chart","slateLight","silverDark","bronzeDark","MyColors"],"sourceRoot":"../../../src","sources":["constants/useColors.tsx"],"mappings":"AAAA,SAASA,cAAc,QAAQ,cAAc;AAC7C,OAAOC,MAAM,MAAM,UAAU;AAG7B,OAAO,MAAMC,SAAS,GAAGA,CAAA,KAAM;EAC3B,IAAIC,YAAY,GAAGH,cAAc,CAAC,CAAC;EACnC,IAAII,SAAS,GAAGH,MAAM;EAEtB,IAAII,WAAW,GAAG;IACdD,SAAS;IACTE,MAAM,EAAC;MACHC,UAAU,EAAEN,MAAM,CAACO,MAAM,CAACC,QAAQ;MAClCC,MAAM,EAAE;QACJC,MAAM,EAAEV,MAAM,CAACW,KAAK,CAACC,QAAQ;QAC7BC,QAAQ,EAAE;MACd,CAAC;MACDC,IAAI,EAAE;QACFJ,MAAM,EAAEV,MAAM,CAACO,MAAM,CAACQ,KAAK;QAC3BF,QAAQ,EAACb,MAAM,CAACW,KAAK,CAACK;MAC1B;IACJ,CAAC;IACDC,UAAU,EAAC;MACPC,SAAS,EAAElB,MAAM,CAACW,KAAK,CAACQ,QAAQ;MAChCC,SAAS,EAAEpB,MAAM,CAACW,KAAK,CAACU,IAAI;MAC5BP,IAAI,EAAEd,MAAM,CAACO,MAAM,CAACQ,KAAK;MACzBO,QAAQ,EAAEtB,MAAM,CAACO,MAAM,CAACgB;IAC5B,CAAC;IACDC,OAAO,EA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SAAS,EAACxD,MAAM,CAAC6E,KAAK,CAACxD,IAAI;MAC3BsB,KAAK,EAAE3C,MAAM,CAACO,MAAM,CAACQ,KAAK;MAC1B8C,UAAU,EAAE7D,MAAM,CAACO,MAAM,CAACgC,QAAQ;MAClCmB,gBAAgB,EAAE1D,MAAM,CAACW,KAAK,CAACmE,UAAU;MACzCnB,MAAM,EAAE3D,MAAM,CAACW,KAAK,CAACwD,aAAa;MAAE;MACpCL,OAAO,EAAE9D,MAAM,CAAC8B,OAAO,CAACgC,OAAO;MAAE;MACjCrC,OAAO,EAAEzB,MAAM,CAACgC,UAAU,CAACqC,YAAY;MAAE;MACzC3C,KAAK,EAAE1B,MAAM,CAACgC,UAAU,CAACsC,YAAY;MACrC7B,IAAI,EAAEzC,MAAM,CAAC0C,SAAS,CAACiC,QAAQ;MAAI;MACnCZ,MAAM,EAAE/D,MAAM,CAAC0C,SAAS,CAACqC,UAAU;MAAE;MACrCf,MAAM,EAAEhE,MAAM,CAAC0C,SAAS,CAACsC;IAC7B;EACJ,CAAC;EACD,MAAMC,QAAQ,GAAG/E,YAAY,IAAI,MAAM,GAAG+D,UAAU,GAAG7D,WAAW;EAClE,OAAO6E,QAAQ;AACnB,CAAC","ignoreList":[]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export const __esModule: boolean;
|
|
2
2
|
export default ProfileWizard;
|
|
3
|
-
declare function 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 }: {
|
|
3
|
+
declare function ProfileWizard({ player, hide_powered_by, settings, player_settings, insets, onFocusPosition, onRedeemCode, init_walkthrough, show_welcome, onVouching, onNextStep, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onUpdatePlayerSetting, onPlayerUpdate, onSelectLevel, onClose, onLogout }: {
|
|
4
4
|
player: any;
|
|
5
5
|
hide_powered_by: any;
|
|
6
6
|
settings: any;
|
|
7
7
|
player_settings: any;
|
|
8
|
+
insets: any;
|
|
8
9
|
onFocusPosition: any;
|
|
9
10
|
onRedeemCode: any;
|
|
10
11
|
init_walkthrough: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileWizard.d.ts","sourceRoot":"","sources":["../../../../../commonjs/ProfileManager/Components/ProfileWizard.js"],"names":[],"mappings":";;AA8BA
|
|
1
|
+
{"version":3,"file":"ProfileWizard.d.ts","sourceRoot":"","sources":["../../../../../commonjs/ProfileManager/Components/ProfileWizard.js"],"names":[],"mappings":";;AA8BA;;;;;;;;;;;;;;;;;;;;;;QAw0BC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const __esModule: boolean;
|
|
2
2
|
export default VouchCard;
|
|
3
|
-
declare function VouchCard({ player, walkthrough, code_details, onVouching, onPlayerUpdate, onClaimGift, onClose }: {
|
|
3
|
+
declare function VouchCard({ player, walkthrough, insets, code_details, onVouching, onPlayerUpdate, onClaimGift, onClose }: {
|
|
4
4
|
player: any;
|
|
5
5
|
walkthrough: any;
|
|
6
|
+
insets: any;
|
|
6
7
|
code_details: any;
|
|
7
8
|
onVouching: any;
|
|
8
9
|
onPlayerUpdate: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VouchCard.d.ts","sourceRoot":"","sources":["../../../../../commonjs/ProfileManager/Components/VouchCard.js"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"VouchCard.d.ts","sourceRoot":"","sources":["../../../../../commonjs/ProfileManager/Components/VouchCard.js"],"names":[],"mappings":";;AAkBA;;;;;;;;;QAidC"}
|
|
@@ -6,6 +6,7 @@ export namespace ProfileApi {
|
|
|
6
6
|
VOUCHED_CALLBACK_URL: string;
|
|
7
7
|
VOUCHED_SANDBOX: boolean;
|
|
8
8
|
};
|
|
9
|
+
function getShortToken(): Promise<any>;
|
|
9
10
|
function isAttributeValid(attribute: any, attribute_value: any): Promise<any>;
|
|
10
11
|
function updatePlayerPic(profile_pic: any): Promise<any>;
|
|
11
12
|
function updatePlayerDOB(dob: any): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commonjs/ProfileManager/api/index.js"],"names":[],"mappings":";;IAckB,gCAMf;IACa;;;;MAMb;IACiB,8EAMjB;IACgB,yDAKhB;IACgB,iDAKhB;IACiB,yEAMjB;IACqB,2DAKrB;IACkB,sDAKlB;IACmB,sDAKnB;IACkB,sDAKlB;IACmB,sDAKnB;IACa,sCAGb;IACa,sCAGb;IACiB,0CAGjB;IACc,uCAId;IACoB,gEAMpB;IACW,wDAKX;IACe,0DAMf;IACY,2FAOZ;IACe,6EAMf;IACe,6EAMf;IACc,wFAOd;;;IAQY,gDAsBZ;IACa;;;;;;MAkBb;IAMc,4DAOd;IACkB,gEAWlB;IACiB;;;;;;MAsBjB;;IAMa;;;;;;MAuBb;IACgB,qEA2DhB;IAMmC,uEAKnC;IAMuB,2DAKvB;IAMkC,uEAMlC;IAMiB;;;;;;;;MAkBjB;IACuB,2DAavB;IACoB,gEAQpB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commonjs/ProfileManager/api/index.js"],"names":[],"mappings":";;IAckB,gCAMf;IACa;;;;MAMb;IACc,uCAQd;IACiB,8EAMjB;IACgB,yDAKhB;IACgB,iDAKhB;IACiB,yEAMjB;IACqB,2DAKrB;IACkB,sDAKlB;IACmB,sDAKnB;IACkB,sDAKlB;IACmB,sDAKnB;IACa,sCAGb;IACa,sCAGb;IACiB,0CAGjB;IACc,uCAId;IACoB,gEAMpB;IACW,wDAKX;IACe,0DAMf;IACY,2FAOZ;IACe,6EAMf;IACe,6EAMf;IACc,wFAOd;;;IAQY,gDAsBZ;IACa;;;;;;MAkBb;IAMc,4DAOd;IACkB,gEAWlB;IACiB;;;;;;MAsBjB;;IAMa;;;;;;MAuBb;IACgB,qEA2DhB;IAMmC,uEAKnC;IAMuB,2DAKvB;IAMkC,uEAMlC;IAMiB;;;;;;;;MAkBjB;IACuB,2DAavB;IACoB,gEAQpB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const __esModule: boolean;
|
|
2
2
|
export default ProfileManager;
|
|
3
|
-
declare function 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 }: {
|
|
3
|
+
declare function ProfileManager({ profile_attribute, hide_profile_header, insets, player, hide_powered_by, onRedeemCode, onPlayerUpdate, onNextStep, onFocusPosition, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, onClose, onLogout }: {
|
|
4
4
|
profile_attribute: any;
|
|
5
5
|
hide_profile_header: any;
|
|
6
|
+
insets: any;
|
|
6
7
|
player: any;
|
|
7
8
|
hide_powered_by: any;
|
|
8
9
|
onRedeemCode: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/ProfileManager/index.js"],"names":[],"mappings":";;AAeA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/ProfileManager/index.js"],"names":[],"mappings":";;AAeA;;;;;;;;;;;;;;;;;;QA0KC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export default ProfileWizard;
|
|
2
|
-
declare function 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 }: {
|
|
2
|
+
declare function ProfileWizard({ player, hide_powered_by, settings, player_settings, insets, onFocusPosition, onRedeemCode, init_walkthrough, show_welcome, onVouching, onNextStep, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onUpdatePlayerSetting, onPlayerUpdate, onSelectLevel, onClose, onLogout }: {
|
|
3
3
|
player: any;
|
|
4
4
|
hide_powered_by: any;
|
|
5
5
|
settings: any;
|
|
6
6
|
player_settings: any;
|
|
7
|
+
insets: any;
|
|
7
8
|
onFocusPosition: any;
|
|
8
9
|
onRedeemCode: any;
|
|
9
10
|
init_walkthrough: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileWizard.d.ts","sourceRoot":"","sources":["../../../../../module/ProfileManager/Components/ProfileWizard.js"],"names":[],"mappings":";AAqBA
|
|
1
|
+
{"version":3,"file":"ProfileWizard.d.ts","sourceRoot":"","sources":["../../../../../module/ProfileManager/Components/ProfileWizard.js"],"names":[],"mappings":";AAqBA;;;;;;;;;;;;;;;;;;;;;;kGAw0BC;kBA71B0C,OAAO"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export default VouchCard;
|
|
2
|
-
declare function VouchCard({ player, walkthrough, code_details, onVouching, onPlayerUpdate, onClaimGift, onClose }: {
|
|
2
|
+
declare function VouchCard({ player, walkthrough, insets, code_details, onVouching, onPlayerUpdate, onClaimGift, onClose }: {
|
|
3
3
|
player: any;
|
|
4
4
|
walkthrough: any;
|
|
5
|
+
insets: any;
|
|
5
6
|
code_details: any;
|
|
6
7
|
onVouching: any;
|
|
7
8
|
onPlayerUpdate: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VouchCard.d.ts","sourceRoot":"","sources":["../../../../../module/ProfileManager/Components/VouchCard.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"VouchCard.d.ts","sourceRoot":"","sources":["../../../../../module/ProfileManager/Components/VouchCard.js"],"names":[],"mappings":";AASA;;;;;;;;;kGAidC;kBA1d0C,OAAO"}
|
|
@@ -5,6 +5,7 @@ export namespace ProfileApi {
|
|
|
5
5
|
VOUCHED_CALLBACK_URL: string;
|
|
6
6
|
VOUCHED_SANDBOX: boolean;
|
|
7
7
|
};
|
|
8
|
+
function getShortToken(): Promise<any>;
|
|
8
9
|
function isAttributeValid(attribute: any, attribute_value: any): Promise<any>;
|
|
9
10
|
function updatePlayerPic(profile_pic: any): Promise<any>;
|
|
10
11
|
function updatePlayerDOB(dob: any): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../module/ProfileManager/api/index.js"],"names":[],"mappings":";IAOkB,gCAMf;IACa;;;;MAMb;IACiB,8EAMjB;IACgB,yDAKhB;IACgB,iDAKhB;IACiB,yEAMjB;IACqB,2DAKrB;IACkB,sDAKlB;IACmB,sDAKnB;IACkB,sDAKlB;IACmB,sDAKnB;IACa,sCAGb;IACa,sCAGb;IACiB,0CAGjB;IACc,uCAId;IACoB,gEAMpB;IACW,wDAKX;IACe,0DAMf;IACY,2FAOZ;IACe,6EAMf;IACe,6EAMf;IACc,wFAOd;;;IAQY,gDAsBZ;IACa;;;;;;MAkBb;IAMc,4DAOd;IACkB,gEAWlB;IACiB;;;;;;MAsBjB;;IAMa;;;;;;MAuBb;IACgB,qEA2DhB;IAMmC,uEAKnC;IAMuB,2DAKvB;IAMkC,uEAMlC;IAMiB;;;;;;;;MAkBjB;IACuB,2DAavB;IACoB,gEAQpB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../module/ProfileManager/api/index.js"],"names":[],"mappings":";IAOkB,gCAMf;IACa;;;;MAMb;IACc,uCAQd;IACiB,8EAMjB;IACgB,yDAKhB;IACgB,iDAKhB;IACiB,yEAMjB;IACqB,2DAKrB;IACkB,sDAKlB;IACmB,sDAKnB;IACkB,sDAKlB;IACmB,sDAKnB;IACa,sCAGb;IACa,sCAGb;IACiB,0CAGjB;IACc,uCAId;IACoB,gEAMpB;IACW,wDAKX;IACe,0DAMf;IACY,2FAOZ;IACe,6EAMf;IACe,6EAMf;IACc,wFAOd;;;IAQY,gDAsBZ;IACa;;;;;;MAkBb;IAMc,4DAOd;IACkB,gEAWlB;IACiB;;;;;;MAsBjB;;IAMa;;;;;;MAuBb;IACgB,qEA2DhB;IAMmC,uEAKnC;IAMuB,2DAKvB;IAMkC,uEAMlC;IAMiB;;;;;;;;MAkBjB;IACuB,2DAavB;IACoB,gEAQpB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export default ProfileManager;
|
|
2
|
-
declare function 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 }: {
|
|
2
|
+
declare function ProfileManager({ profile_attribute, hide_profile_header, insets, player, hide_powered_by, onRedeemCode, onPlayerUpdate, onNextStep, onFocusPosition, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, onClose, onLogout }: {
|
|
3
3
|
profile_attribute: any;
|
|
4
4
|
hide_profile_header: any;
|
|
5
|
+
insets: any;
|
|
5
6
|
player: any;
|
|
6
7
|
hide_powered_by: any;
|
|
7
8
|
onRedeemCode: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/ProfileManager/index.js"],"names":[],"mappings":";AAMA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/ProfileManager/index.js"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;;;;;kGA0KC;kBAhL0C,OAAO"}
|
|
@@ -10,6 +10,12 @@ type ProfileWizardProps = {
|
|
|
10
10
|
width: number;
|
|
11
11
|
onFocusPosition?: (position: FocusPositionProps) => void;
|
|
12
12
|
hide_powered_by?: boolean;
|
|
13
|
+
insets?: {
|
|
14
|
+
top: number;
|
|
15
|
+
bottom: number;
|
|
16
|
+
left: number;
|
|
17
|
+
right: number;
|
|
18
|
+
};
|
|
13
19
|
hidden_groups?: string[];
|
|
14
20
|
hidden_levels?: string[];
|
|
15
21
|
hidden_steps?: string[];
|
|
@@ -31,6 +37,6 @@ type ProfileWizardProps = {
|
|
|
31
37
|
onPlayerUpdate: (player: MyPlayerProps, attribute?: string) => void;
|
|
32
38
|
onUpdatePlayerSetting: (player_setting: PlayerSettingProps) => void;
|
|
33
39
|
};
|
|
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;
|
|
40
|
+
declare const ProfileWizard: ({ player, hide_powered_by, settings, player_settings, insets, 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;
|
|
35
41
|
export default ProfileWizard;
|
|
36
42
|
//# 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,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,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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,ySAA0S,kBAAkB,sBAmkB9U,CAAA;AAID,eAAe,aAAa,CAAA"}
|
|
@@ -3,6 +3,12 @@ import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps,
|
|
|
3
3
|
type VouchCardProps = {
|
|
4
4
|
player: MyPlayerProps;
|
|
5
5
|
walkthrough?: boolean;
|
|
6
|
+
insets?: {
|
|
7
|
+
top: number;
|
|
8
|
+
bottom: number;
|
|
9
|
+
left?: number;
|
|
10
|
+
right?: number;
|
|
11
|
+
};
|
|
6
12
|
onVouching: (active: boolean) => void;
|
|
7
13
|
code_details: {
|
|
8
14
|
code_request?: CodeRequestProps;
|
|
@@ -14,6 +20,6 @@ type VouchCardProps = {
|
|
|
14
20
|
onClaimGift: () => void;
|
|
15
21
|
onClose: () => void;
|
|
16
22
|
};
|
|
17
|
-
declare const VouchCard: ({ player, walkthrough, code_details, onVouching, onPlayerUpdate, onClaimGift, onClose }: VouchCardProps) => React.JSX.Element;
|
|
23
|
+
declare const VouchCard: ({ player, walkthrough, insets, code_details, onVouching, onPlayerUpdate, onClaimGift, onClose }: VouchCardProps) => React.JSX.Element;
|
|
18
24
|
export default VouchCard;
|
|
19
25
|
//# sourceMappingURL=VouchCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VouchCard.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/VouchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"VouchCard.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/VouchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,mBAAmB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAMvH,KAAK,cAAc,GAAG;IAClB,MAAM,EAAC,aAAa,CAAC;IACrB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,MAAM,CAAC,EAAC;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,MAAM,EAAC,MAAM,CAAC;QAAC,IAAI,CAAC,EAAC,MAAM,CAAC;QAAC,KAAK,CAAC,EAAC,MAAM,CAAA;KAAE,CAAC;IACnE,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,oGAAoG,cAAc,sBA2PhI,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PasswordStateProps, SettingProps } from './types';
|
|
2
2
|
import type { CodeRequestProps, MyPlayerProps, PlayerBalanceProps, PlayerReferralProps, PlayerSettingProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
3
|
+
import type { PlayerTokenProps } from '../../Authenticator/api/types';
|
|
3
4
|
declare const ProfileApi: {
|
|
4
5
|
setEnvironment: () => void;
|
|
5
6
|
getVouchKeys: () => {
|
|
@@ -7,6 +8,7 @@ declare const ProfileApi: {
|
|
|
7
8
|
VOUCHED_CALLBACK_URL: string;
|
|
8
9
|
VOUCHED_SANDBOX: boolean;
|
|
9
10
|
};
|
|
11
|
+
getShortToken: () => Promise<PlayerTokenProps | undefined>;
|
|
10
12
|
isAttributeValid: (attribute: string, attribute_value: string) => Promise<any>;
|
|
11
13
|
updatePlayerPic: (profile_pic: any) => Promise<MyPlayerProps>;
|
|
12
14
|
updatePlayerDOB: (dob: any) => Promise<MyPlayerProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/api/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/api/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,mBAAmB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MAAM,KAAE,kBAAkB;oCAK3C,UAAU;yCASN,gBAAgB;CAMnD,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -6,6 +6,12 @@ type ProfileOverviewProps = {
|
|
|
6
6
|
hide_profile_header?: boolean;
|
|
7
7
|
player?: MyPlayerProps;
|
|
8
8
|
hidden_groups?: string[];
|
|
9
|
+
insets?: {
|
|
10
|
+
top: number;
|
|
11
|
+
bottom: number;
|
|
12
|
+
left: number;
|
|
13
|
+
right: number;
|
|
14
|
+
};
|
|
9
15
|
hidden_steps?: string[];
|
|
10
16
|
hidden_levels?: string[];
|
|
11
17
|
onClose: () => void;
|
|
@@ -26,6 +32,6 @@ type ProfileOverviewProps = {
|
|
|
26
32
|
level: 'verify' | 'basic';
|
|
27
33
|
};
|
|
28
34
|
};
|
|
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;
|
|
35
|
+
declare const ProfileManager: ({ profile_attribute, hide_profile_header, insets, player, hide_powered_by, onRedeemCode, onPlayerUpdate, onNextStep, onFocusPosition, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, onClose, onLogout }: ProfileOverviewProps) => React.JSX.Element;
|
|
30
36
|
export default ProfileManager;
|
|
31
37
|
//# 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,kBAAkB,EAAE,aAAa,EAAsB,mBAAmB,EAAsB,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU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I,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,mPAAoP,oBAAoB,sBAmH3R,CAAA;AAED,eAAe,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -29,6 +29,7 @@ type ProfileWizardProps = {
|
|
|
29
29
|
width:number,
|
|
30
30
|
onFocusPosition?:(position:FocusPositionProps) => void,
|
|
31
31
|
hide_powered_by?:boolean,
|
|
32
|
+
insets?:{ top:number, bottom:number, left:number, right:number }
|
|
32
33
|
hidden_groups?:string[],
|
|
33
34
|
hidden_levels?:string[],
|
|
34
35
|
hidden_steps?:string[],
|
|
@@ -52,7 +53,7 @@ type ProfileWizardProps = {
|
|
|
52
53
|
}
|
|
53
54
|
// { num:5, check: 'code', label: 'Promo', description: `Lets get you started with some promo bucks!`, complete:false },
|
|
54
55
|
|
|
55
|
-
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) => {
|
|
56
|
+
const ProfileWizard = ({ player, hide_powered_by, settings, player_settings, insets, onFocusPosition, onRedeemCode, init_walkthrough, show_welcome, onVouching, onNextStep, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onUpdatePlayerSetting, onPlayerUpdate, onSelectLevel, onClose, onLogout }:ProfileWizardProps) => {
|
|
56
57
|
const C = useColors();
|
|
57
58
|
const [ draft_player, setDraftPlayer ] = useState(player);
|
|
58
59
|
const [ show_code_request, setShowCodeRequest ] = useState(false);
|
|
@@ -564,6 +565,7 @@ const ProfileWizard = ({ player, hide_powered_by, settings, player_settings, on
|
|
|
564
565
|
:active_step?.check == 'vouch' ?
|
|
565
566
|
<VouchCard
|
|
566
567
|
player={draft_player}
|
|
568
|
+
insets={insets}
|
|
567
569
|
onPlayerUpdate={(p) => onPlayerUpdate(p, 'vouched_status')}
|
|
568
570
|
walkthrough={walkthrough == 'verify' ? true : false}
|
|
569
571
|
code_details={code_details}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { TouchableOpacity, Image, ScrollView } from 'react-native';
|
|
3
|
-
//import { useCameraPermissions } from 'expo-camera';
|
|
4
|
-
//import vouchHtml from './Vouchhtml';
|
|
2
|
+
import { TouchableOpacity, Image, ScrollView, Modal, Alert } from 'react-native';
|
|
5
3
|
import { Icons } from '../../Components';
|
|
6
4
|
import Colors from '../../constants/colors';
|
|
7
5
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
@@ -9,10 +7,13 @@ import moment from 'moment-mini';
|
|
|
9
7
|
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
10
8
|
import { Button, Text, View } from '../../Components/Themed';
|
|
11
9
|
import { useColors } from '../../constants/useColors';
|
|
10
|
+
import WebView from 'react-native-webview';
|
|
11
|
+
import type { PlayerTokenProps } from '../../Authenticator/api/types';
|
|
12
12
|
|
|
13
13
|
type VouchCardProps = {
|
|
14
14
|
player:MyPlayerProps,
|
|
15
15
|
walkthrough?:boolean,
|
|
16
|
+
insets?:{ top:number, bottom:number, left?:number, right?:number },
|
|
16
17
|
onVouching:(active:boolean) => void,
|
|
17
18
|
code_details: {
|
|
18
19
|
code_request?:CodeRequestProps,
|
|
@@ -25,10 +26,12 @@ type VouchCardProps = {
|
|
|
25
26
|
onClose:() => void
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpdate, onClaimGift, onClose }:VouchCardProps) => {
|
|
29
|
+
const VouchCard = ({ player, walkthrough, insets, code_details, onVouching, onPlayerUpdate, onClaimGift, onClose }:VouchCardProps) => {
|
|
29
30
|
const C = useColors();
|
|
30
31
|
//const [ permission, requestPermission ] = useCameraPermissions();
|
|
31
32
|
const [ vouching, setVouching ] = useState(false);
|
|
33
|
+
const [ vouch_loading, setVouchLoading ] = useState(false);
|
|
34
|
+
const [ player_token, setPlayerToken ] = useState<PlayerTokenProps|undefined>(undefined);
|
|
32
35
|
//const [ view_height, setViewHeight ] = useState(0);
|
|
33
36
|
//const [ job_complete, setJobComplete ] = useState(false);
|
|
34
37
|
//const [ vouched, setVouched ] = useState<any | undefined>(undefined)
|
|
@@ -50,36 +53,6 @@ const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpda
|
|
|
50
53
|
if(onVouching){ onVouching(vouching) }
|
|
51
54
|
},[vouching])
|
|
52
55
|
|
|
53
|
-
/*
|
|
54
|
-
useEffect(() => {
|
|
55
|
-
initializeVouch()
|
|
56
|
-
if(!vouched){ return }
|
|
57
|
-
vouched.mount('#vouched-element')
|
|
58
|
-
|
|
59
|
-
},[vouched])
|
|
60
|
-
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
/*
|
|
64
|
-
const initializeVouch = () => {
|
|
65
|
-
if(Platform.OS != 'web' || !window || !document){ return }
|
|
66
|
-
if(window.Vouched){ return }
|
|
67
|
-
let script = document.createElement('script');
|
|
68
|
-
script.id = 'vouch';
|
|
69
|
-
script.src = 'https://static.vouched.id/plugin/releases/v2/index.js'
|
|
70
|
-
script.async = true;
|
|
71
|
-
script.defer = true;
|
|
72
|
-
script.onload = () => console.log('loaded!!!')
|
|
73
|
-
script.onerror = (e) => console.log(e);
|
|
74
|
-
|
|
75
|
-
document.body.appendChild(script);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const checkPlayerStatus = async() => {
|
|
79
|
-
const new_player = await ProfileApi.getMyDetails()
|
|
80
|
-
onPlayerUpdate(new_player)
|
|
81
|
-
}
|
|
82
|
-
*/
|
|
83
56
|
|
|
84
57
|
const verifyErrors = (p:MyPlayerProps) => {
|
|
85
58
|
let errors:string[] = []
|
|
@@ -97,7 +70,18 @@ const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpda
|
|
|
97
70
|
|
|
98
71
|
|
|
99
72
|
const startVouchingPlayer = async() => {
|
|
100
|
-
|
|
73
|
+
setVouchLoading(true);
|
|
74
|
+
const me = await ProfileApi.getMyDetails();
|
|
75
|
+
if(me.vouched_status != 'unverified'){
|
|
76
|
+
return onPlayerUpdate(me);
|
|
77
|
+
}
|
|
78
|
+
const player_token = await ProfileApi.getShortToken();
|
|
79
|
+
if(!player_token){
|
|
80
|
+
return Alert.alert('Unable to process at this time')
|
|
81
|
+
}
|
|
82
|
+
setPlayerToken(player_token);
|
|
83
|
+
setVouchLoading(false);
|
|
84
|
+
setVouching(true);
|
|
101
85
|
}
|
|
102
86
|
|
|
103
87
|
|
|
@@ -114,8 +98,6 @@ const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpda
|
|
|
114
98
|
let new_date = `${split_dob[1]}/${split_dob[2]}/${split_dob[0]}`
|
|
115
99
|
|
|
116
100
|
|
|
117
|
-
|
|
118
|
-
|
|
119
101
|
return (
|
|
120
102
|
<View style={{ flexGrow:1 }}>
|
|
121
103
|
<ScrollView style={{ flexGrow:1 }}>
|
|
@@ -217,8 +199,8 @@ const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpda
|
|
|
217
199
|
{player.vouched_status == 'unverified' ?
|
|
218
200
|
<Button
|
|
219
201
|
title={'START'}
|
|
220
|
-
loading={vouching}
|
|
221
|
-
disabled={
|
|
202
|
+
loading={vouching || vouch_loading}
|
|
203
|
+
disabled={!scan_ready || vouch_loading}
|
|
222
204
|
style={{ flex:3, opacity:scan_ready && scan_ready&&!vouching?1:0.5 }}
|
|
223
205
|
type='success'
|
|
224
206
|
onPress={() => startVouchingPlayer()}
|
|
@@ -254,6 +236,45 @@ const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpda
|
|
|
254
236
|
</View>
|
|
255
237
|
</View>
|
|
256
238
|
:<></>}
|
|
239
|
+
<Modal
|
|
240
|
+
visible={player?.vouched_status == 'unverified' && vouching && player_token ? true : false}
|
|
241
|
+
transparent
|
|
242
|
+
animationType='slide'
|
|
243
|
+
style={{flex:1}}
|
|
244
|
+
>
|
|
245
|
+
<View type='blur' style={{flex:1, padding:10, paddingBottom:insets?.bottom, paddingTop:insets?.top}}>
|
|
246
|
+
<View float style={{flex:1}} >
|
|
247
|
+
<View type='header' style={{ flexDirection:'row', padding:10, borderTopRightRadius:8, borderTopLeftRadius: 8}}>
|
|
248
|
+
<View transparent style={{flex:1}}>
|
|
249
|
+
<Text theme='h1'>Verifying Your Identity</Text>
|
|
250
|
+
<Text style={{marginTop:4}} theme='description'>Use the prompts below to verify. Please reach out to support if you have any issues.</Text>
|
|
251
|
+
</View>
|
|
252
|
+
</View>
|
|
253
|
+
{player?.vouched_status == 'unverified' && vouching && player_token ?
|
|
254
|
+
<WebView
|
|
255
|
+
source={{ uri: `https://verify.mybe.app/vouch/${player_token.token}` }}
|
|
256
|
+
style={{ }}
|
|
257
|
+
geolocationEnabled={true}
|
|
258
|
+
mediaPlaybackRequiresUserAction={false}
|
|
259
|
+
allowsInlineMediaPlayback
|
|
260
|
+
javaScriptEnabled={true}
|
|
261
|
+
onMessage={m => {
|
|
262
|
+
console.log('received a message!!!!!!')
|
|
263
|
+
console.log(m)
|
|
264
|
+
}}
|
|
265
|
+
/>
|
|
266
|
+
:<></>}
|
|
267
|
+
<View type='footer' style={{ flexDirection:'row', alignItems:'center', padding:10 }}>
|
|
268
|
+
<Button
|
|
269
|
+
type='error'
|
|
270
|
+
title='CANCEL'
|
|
271
|
+
style={{ flex:1 }}
|
|
272
|
+
onPress={() => setVouching(false)}
|
|
273
|
+
/>
|
|
274
|
+
</View>
|
|
275
|
+
</View>
|
|
276
|
+
</View>
|
|
277
|
+
</Modal>
|
|
257
278
|
</View>
|
|
258
279
|
)
|
|
259
280
|
}
|
|
@@ -2,6 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import type { PasswordStateProps, SettingProps } from './types';
|
|
3
3
|
import { APIOverrides } from '../../ApiOverrides';
|
|
4
4
|
import type { CodeRequestProps, MyPlayerProps, PlayerBalanceProps, PlayerReferralProps, PlayerSettingProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
5
|
+
import type { PlayerTokenProps } from '../../Authenticator/api/types';
|
|
5
6
|
|
|
6
7
|
let AUTH_SVC_API = '';
|
|
7
8
|
let VOUCH_ID = '';
|
|
@@ -19,6 +20,15 @@ const ProfileApi = {
|
|
|
19
20
|
getVouchKeys:() => {
|
|
20
21
|
return { VOUCH_ID, VOUCHED_CALLBACK_URL, VOUCHED_SANDBOX }
|
|
21
22
|
},
|
|
23
|
+
getShortToken: async():Promise<PlayerTokenProps | undefined> => {
|
|
24
|
+
try {
|
|
25
|
+
const resp = await axios.get(`${AUTH_SVC_API}/v1/players/tokens/short`);
|
|
26
|
+
return resp.data.player_token
|
|
27
|
+
} catch (e) {
|
|
28
|
+
console.log('ERROR!!!')
|
|
29
|
+
return undefined
|
|
30
|
+
}
|
|
31
|
+
},
|
|
22
32
|
isAttributeValid: async(attribute:string, attribute_value:string) => {
|
|
23
33
|
const resp = await axios.post(`${AUTH_SVC_API}/v1/players/player/attribute/valid`, { attribute, attribute_value })
|
|
24
34
|
return resp.data.valid
|
|
@@ -14,6 +14,7 @@ type ProfileOverviewProps = {
|
|
|
14
14
|
hide_profile_header?:boolean,
|
|
15
15
|
player?:MyPlayerProps,
|
|
16
16
|
hidden_groups?:string[],
|
|
17
|
+
insets?:{ top:number, bottom:number, left:number, right:number }
|
|
17
18
|
hidden_steps?:string[],
|
|
18
19
|
hidden_levels?:string[],
|
|
19
20
|
onClose:() => void,
|
|
@@ -35,7 +36,7 @@ type ProfileOverviewProps = {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
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 ) => {
|
|
39
|
+
const ProfileManager = ({ profile_attribute, hide_profile_header, insets, player, hide_powered_by, onRedeemCode, onPlayerUpdate, onNextStep, onFocusPosition, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, onClose, onLogout }: ProfileOverviewProps ) => {
|
|
39
40
|
const [ width, setModuleWidth ] = useState(400);
|
|
40
41
|
const [ loading, setLoading ] = useState(false);
|
|
41
42
|
const [ vouching, setVouching ] = useState(false);
|
|
@@ -127,6 +128,7 @@ const ProfileManager = ({ profile_attribute, hide_profile_header, player, hide_p
|
|
|
127
128
|
width={width}
|
|
128
129
|
onRedeemCode={onRedeemCode}
|
|
129
130
|
settings={settings}
|
|
131
|
+
insets={insets}
|
|
130
132
|
show_welcome={show_welcome}
|
|
131
133
|
onFocusPosition={onFocusPosition}
|
|
132
134
|
hide_powered_by={hide_powered_by}
|
|
@@ -53,8 +53,8 @@ export const useColors = () => {
|
|
|
53
53
|
body: Colors.shades.shade500,
|
|
54
54
|
footer: Colors.shades.shade100,
|
|
55
55
|
gold: Colors.incentive.gold,
|
|
56
|
-
input: Colors.shades.
|
|
57
|
-
disabled_input: Colors.
|
|
56
|
+
input: Colors.shades.white,
|
|
57
|
+
disabled_input: Colors.shades.shade400,
|
|
58
58
|
blur: 'rgba(242, 245, 247, 0.7)',
|
|
59
59
|
liquidMarket: Colors.highlights.highlight500Faded,
|
|
60
60
|
illiquidMarket: Colors.shades.shade100
|
|
@@ -62,7 +62,7 @@ export const useColors = () => {
|
|
|
62
62
|
borders: {
|
|
63
63
|
light: Colors.shades.shade600,
|
|
64
64
|
dark: Colors.accents.accent100,
|
|
65
|
-
input: Colors.shades.
|
|
65
|
+
input: Colors.shades.shade600
|
|
66
66
|
|
|
67
67
|
},
|
|
68
68
|
text: {
|