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.
Files changed (59) hide show
  1. package/lib/commonjs/Group/api/index.js +75 -0
  2. package/lib/commonjs/Group/api/index.js.map +1 -1
  3. package/lib/commonjs/Group/components/CreateGroupWizard.js +611 -0
  4. package/lib/commonjs/Group/components/CreateGroupWizard.js.map +1 -0
  5. package/lib/commonjs/Group/components/GroupPlayerActionForm.js +17 -4
  6. package/lib/commonjs/Group/components/GroupPlayerActionForm.js.map +1 -1
  7. package/lib/commonjs/Group/index.js +2 -0
  8. package/lib/commonjs/Group/index.js.map +1 -1
  9. package/lib/commonjs/index.js +7 -0
  10. package/lib/commonjs/index.js.map +1 -1
  11. package/lib/commonjs/types.d.js.map +1 -1
  12. package/lib/module/Group/api/index.js +75 -0
  13. package/lib/module/Group/api/index.js.map +1 -1
  14. package/lib/module/Group/components/CreateGroupWizard.js +603 -0
  15. package/lib/module/Group/components/CreateGroupWizard.js.map +1 -0
  16. package/lib/module/Group/components/GroupPlayerActionForm.js +17 -4
  17. package/lib/module/Group/components/GroupPlayerActionForm.js.map +1 -1
  18. package/lib/module/Group/index.js +2 -0
  19. package/lib/module/Group/index.js.map +1 -1
  20. package/lib/module/index.js +2 -1
  21. package/lib/module/index.js.map +1 -1
  22. package/lib/module/types.d.js.map +1 -1
  23. package/lib/typescript/lib/commonjs/Group/api/index.d.ts +21 -0
  24. package/lib/typescript/lib/commonjs/Group/api/index.d.ts.map +1 -1
  25. package/lib/typescript/lib/commonjs/Group/components/CreateGroupWizard.d.ts +15 -0
  26. package/lib/typescript/lib/commonjs/Group/components/CreateGroupWizard.d.ts.map +1 -0
  27. package/lib/typescript/lib/commonjs/Group/components/GroupPlayerActionForm.d.ts +3 -1
  28. package/lib/typescript/lib/commonjs/Group/components/GroupPlayerActionForm.d.ts.map +1 -1
  29. package/lib/typescript/lib/commonjs/Group/index.d.ts +2 -1
  30. package/lib/typescript/lib/commonjs/Group/index.d.ts.map +1 -1
  31. package/lib/typescript/lib/commonjs/index.d.ts +1 -0
  32. package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
  33. package/lib/typescript/lib/module/Group/api/index.d.ts +21 -0
  34. package/lib/typescript/lib/module/Group/api/index.d.ts.map +1 -1
  35. package/lib/typescript/lib/module/Group/components/CreateGroupWizard.d.ts +15 -0
  36. package/lib/typescript/lib/module/Group/components/CreateGroupWizard.d.ts.map +1 -0
  37. package/lib/typescript/lib/module/Group/components/GroupPlayerActionForm.d.ts +3 -1
  38. package/lib/typescript/lib/module/Group/components/GroupPlayerActionForm.d.ts.map +1 -1
  39. package/lib/typescript/lib/module/Group/index.d.ts +2 -1
  40. package/lib/typescript/lib/module/Group/index.d.ts.map +1 -1
  41. package/lib/typescript/lib/module/index.d.ts +2 -1
  42. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  43. package/lib/typescript/src/Group/api/index.d.ts +6 -1
  44. package/lib/typescript/src/Group/api/index.d.ts.map +1 -1
  45. package/lib/typescript/src/Group/components/CreateGroupWizard.d.ts +18 -0
  46. package/lib/typescript/src/Group/components/CreateGroupWizard.d.ts.map +1 -0
  47. package/lib/typescript/src/Group/components/GroupPlayerActionForm.d.ts +3 -2
  48. package/lib/typescript/src/Group/components/GroupPlayerActionForm.d.ts.map +1 -1
  49. package/lib/typescript/src/Group/index.d.ts +2 -1
  50. package/lib/typescript/src/Group/index.d.ts.map +1 -1
  51. package/lib/typescript/src/index.d.ts +2 -1
  52. package/lib/typescript/src/index.d.ts.map +1 -1
  53. package/package.json +1 -1
  54. package/src/Group/api/index.ts +62 -2
  55. package/src/Group/components/CreateGroupWizard.tsx +386 -0
  56. package/src/Group/components/GroupPlayerActionForm.tsx +16 -6
  57. package/src/Group/index.tsx +3 -1
  58. package/src/index.tsx +2 -1
  59. package/src/types.d.ts +7 -0
@@ -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: (