be-components 6.7.0 → 6.7.2
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/Group/api/index.js +75 -0
- package/lib/commonjs/Group/api/index.js.map +1 -1
- package/lib/commonjs/Group/components/CreateGroupWizard.js +611 -0
- package/lib/commonjs/Group/components/CreateGroupWizard.js.map +1 -0
- package/lib/commonjs/Group/components/GroupPlayerActionForm.js +17 -4
- package/lib/commonjs/Group/components/GroupPlayerActionForm.js.map +1 -1
- package/lib/commonjs/Group/index.js +2 -0
- package/lib/commonjs/Group/index.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.d.js.map +1 -1
- package/lib/module/Group/api/index.js +75 -0
- package/lib/module/Group/api/index.js.map +1 -1
- package/lib/module/Group/components/CreateGroupWizard.js +603 -0
- package/lib/module/Group/components/CreateGroupWizard.js.map +1 -0
- package/lib/module/Group/components/GroupPlayerActionForm.js +17 -4
- package/lib/module/Group/components/GroupPlayerActionForm.js.map +1 -1
- package/lib/module/Group/index.js +2 -0
- package/lib/module/Group/index.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.d.js.map +1 -1
- package/lib/typescript/lib/commonjs/Group/api/index.d.ts +21 -0
- package/lib/typescript/lib/commonjs/Group/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Group/components/CreateGroupWizard.d.ts +15 -0
- package/lib/typescript/lib/commonjs/Group/components/CreateGroupWizard.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Group/components/GroupPlayerActionForm.d.ts +3 -1
- package/lib/typescript/lib/commonjs/Group/components/GroupPlayerActionForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Group/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Group/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Group/api/index.d.ts +21 -0
- package/lib/typescript/lib/module/Group/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Group/components/CreateGroupWizard.d.ts +15 -0
- package/lib/typescript/lib/module/Group/components/CreateGroupWizard.d.ts.map +1 -0
- package/lib/typescript/lib/module/Group/components/GroupPlayerActionForm.d.ts +3 -1
- package/lib/typescript/lib/module/Group/components/GroupPlayerActionForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Group/index.d.ts +2 -1
- package/lib/typescript/lib/module/Group/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/index.d.ts +2 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/Group/api/index.d.ts +6 -1
- package/lib/typescript/src/Group/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Group/components/CreateGroupWizard.d.ts +18 -0
- package/lib/typescript/src/Group/components/CreateGroupWizard.d.ts.map +1 -0
- package/lib/typescript/src/Group/components/GroupPlayerActionForm.d.ts +3 -2
- package/lib/typescript/src/Group/components/GroupPlayerActionForm.d.ts.map +1 -1
- package/lib/typescript/src/Group/index.d.ts +2 -1
- package/lib/typescript/src/Group/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Group/api/index.ts +62 -2
- package/src/Group/components/CreateGroupWizard.tsx +386 -0
- package/src/Group/components/GroupPlayerActionForm.tsx +16 -6
- package/src/Group/index.tsx +3 -1
- package/src/index.tsx +2 -1
- package/src/types.d.ts +7 -0
package/src/Group/index.tsx
CHANGED
|
@@ -25,6 +25,7 @@ type GroupComponentProps = {
|
|
|
25
25
|
onNudgePlayer:(p:PublicPlayerProps, gp:GroupPlayerProps) => void,
|
|
26
26
|
onSelectPlayer:(p:PublicPlayerProps) => void,
|
|
27
27
|
onSelectCompetition:(c:CompetitionProps) => void,
|
|
28
|
+
onRequestAuthenticate:() => void,
|
|
28
29
|
onSelectPollCampaign:(pc:PollCampaignProps) => void,
|
|
29
30
|
onSelectSquaresCompetition:(sq:SquaresCompetitionProps) => void,
|
|
30
31
|
onCreateEngagement?: (g:GroupProps) => void,
|
|
@@ -60,7 +61,7 @@ const member_stat_options:{ stat_key:string, label:string, multiplier:number, pr
|
|
|
60
61
|
{ stat_key: 'original_stake', label: 'Betting Volume', multiplier: 1, prefix: '$' }
|
|
61
62
|
]
|
|
62
63
|
|
|
63
|
-
const GroupComponent = ({ refresh_key, group_id, player, mode, onCreateEngagement, onShareGroup, onInvitePlayer, onSelectCompetition, onSelectChat, onSelectPlayer, onNudgePlayer, onSelectPollCampaign, onSelectSquaresCompetition } : GroupComponentProps) => {
|
|
64
|
+
const GroupComponent = ({ refresh_key, group_id, player, mode, onCreateEngagement, onRequestAuthenticate, onShareGroup, onInvitePlayer, onSelectCompetition, onSelectChat, onSelectPlayer, onNudgePlayer, onSelectPollCampaign, onSelectSquaresCompetition } : GroupComponentProps) => {
|
|
64
65
|
const Colors = useColors();
|
|
65
66
|
const leader_options:TimeOptionProps[] = [
|
|
66
67
|
{ to: moment().subtract(1, 'days').unix(), from: moment().unix(), option: '24_hours', label: '24 Hours' },
|
|
@@ -670,6 +671,7 @@ const GroupComponent = ({ refresh_key, group_id, player, mode, onCreateEngagemen
|
|
|
670
671
|
group={group}
|
|
671
672
|
group_player={my_group_player}
|
|
672
673
|
me={player}
|
|
674
|
+
onRequestAuthenticate={onRequestAuthenticate}
|
|
673
675
|
onResponse={(new_gp) => {
|
|
674
676
|
setGroupData({
|
|
675
677
|
...group_data,
|
package/src/index.tsx
CHANGED
|
@@ -58,7 +58,7 @@ import ClaritySmartEvents from './Clarity/SmartEvents';
|
|
|
58
58
|
import RankingsCard from './RankingsCard';
|
|
59
59
|
import GuideView from './Guide';
|
|
60
60
|
import GroupComponent from './Group';
|
|
61
|
-
|
|
61
|
+
import CreateGroupWizard from './Group/components/CreateGroupWizard';
|
|
62
62
|
export {
|
|
63
63
|
Authenticator,
|
|
64
64
|
Observer,
|
|
@@ -70,6 +70,7 @@ export {
|
|
|
70
70
|
ManageFilter,
|
|
71
71
|
Ticker,
|
|
72
72
|
Premium,
|
|
73
|
+
CreateGroupWizard,
|
|
73
74
|
LeaderboardCard,
|
|
74
75
|
GroupComponent,
|
|
75
76
|
LocationTracker,
|
package/src/types.d.ts
CHANGED
|
@@ -82,6 +82,13 @@ export interface TourStepProps {
|
|
|
82
82
|
priority?: number; // lower = higher priority
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
+
export interface CreateGroupStepProps {
|
|
86
|
+
num:number,
|
|
87
|
+
title:string,
|
|
88
|
+
step_key:string,
|
|
89
|
+
description: string
|
|
90
|
+
}
|
|
91
|
+
|
|
85
92
|
export interface ClarityProps {
|
|
86
93
|
consent: () => void;
|
|
87
94
|
identify: (
|