@opexa/portal-components 0.0.741 → 0.0.743

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 (113) hide show
  1. package/dist/components/Account/Account.lazy.js +15 -15
  2. package/dist/components/Banner/Banner.client.d.ts +12 -0
  3. package/dist/components/Banner/Banner.client.js +49 -0
  4. package/dist/components/DigitainLauncher/Loading.d.ts +1 -0
  5. package/dist/components/DigitainLauncher/Loading.js +5 -0
  6. package/dist/components/Disclaimer/DisclaimerV2.js +15 -15
  7. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -0
  8. package/dist/components/Jackpots/JackpotsCarouselNext/JackpotsCarouselStageItem.js +12 -9
  9. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -0
  10. package/dist/components/Jackpots/JackpotsListNext/JackpotMultiStageDesktop.js +13 -14
  11. package/dist/components/Jackpots/JackpotsListNext/JackpotMultiStageMobile.js +13 -12
  12. package/dist/components/KYC/BasicInformation.d.ts +1 -0
  13. package/dist/components/KYC/BasicInformation.js +101 -0
  14. package/dist/components/KYC/IdentityVerification.d.ts +1 -0
  15. package/dist/components/KYC/IdentityVerification.js +120 -0
  16. package/dist/components/KYC/Indicator.d.ts +1 -0
  17. package/dist/components/KYC/Indicator.js +8 -0
  18. package/dist/components/KYC/KYC.lazy.d.ts +6 -0
  19. package/dist/components/KYC/KYC.lazy.js +45 -0
  20. package/dist/components/KYC/KYCContext.d.ts +6 -0
  21. package/dist/components/KYC/KYCContext.js +2 -0
  22. package/dist/components/KYC/KYCDefault/BasicInformation.d.ts +1 -0
  23. package/dist/components/KYC/KYCDefault/BasicInformation.js +101 -0
  24. package/dist/components/KYC/KYCDefault/IdentityVerification.js +15 -15
  25. package/dist/components/KYC/KYCDefault/PersonalInformation.js +15 -15
  26. package/dist/components/KYC/KYCReminder.lazy.js +45 -17
  27. package/dist/components/KYC/KYCVerificationStatus.d.ts +1 -0
  28. package/dist/components/KYC/KYCVerificationStatus.js +10 -0
  29. package/dist/components/KYC/KYCVerificationStatus.lazy.d.ts +1 -0
  30. package/dist/components/KYC/KYCVerificationStatus.lazy.js +36 -0
  31. package/dist/components/KYC/PersonalInformation.d.ts +1 -0
  32. package/dist/components/KYC/PersonalInformation.js +122 -0
  33. package/dist/components/KYC/useKYC.d.ts +25 -0
  34. package/dist/components/KYC/useKYC.js +38 -0
  35. package/dist/components/PortalProvider/AndroidOnlyComponents.d.ts +1 -0
  36. package/dist/components/PortalProvider/AndroidOnlyComponents.js +12 -0
  37. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +1 -0
  38. package/dist/components/PortalProvider/CXDTokenObserver.js +30 -0
  39. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +1 -0
  40. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +29 -0
  41. package/dist/components/Quests/JourneyQuest.js +15 -14
  42. package/dist/components/SessionWatcher/SessionWatcher.d.ts +1 -0
  43. package/dist/components/SessionWatcher/SessionWatcher.js +20 -0
  44. package/dist/components/SessionWatcher/index.d.ts +1 -0
  45. package/dist/components/SessionWatcher/index.js +1 -0
  46. package/dist/components/SignIn/utils.d.ts +8 -0
  47. package/dist/components/SignIn/utils.js +26 -0
  48. package/dist/components/TopProgress/TopProgressBar.js +4 -0
  49. package/dist/components/TopProgress/index.d.ts +1 -0
  50. package/dist/components/TopProgress/index.js +1 -0
  51. package/dist/constants/Branches.d.ts +2 -0
  52. package/dist/constants/Branches.js +42 -0
  53. package/dist/constants/EnvVar.d.ts +1 -1
  54. package/dist/images/responsible-gaming-yellow.png +0 -0
  55. package/dist/services/queries.d.ts +1 -1
  56. package/dist/services/queries.js +2 -0
  57. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
  58. package/dist/third-parties/FacebookPixel/FacebookPixel.js +4 -0
  59. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  60. package/dist/third-parties/FacebookPixel/api.js +1 -0
  61. package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
  62. package/dist/third-parties/FacebookPixel/index.js +1 -0
  63. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
  64. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +4 -0
  65. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  66. package/dist/third-parties/GoogleRecaptcha/api.js +1 -0
  67. package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
  68. package/dist/third-parties/GoogleRecaptcha/index.js +1 -0
  69. package/dist/third-parties/index.d.ts +2 -0
  70. package/dist/third-parties/index.js +2 -0
  71. package/dist/types/index.d.ts +2 -0
  72. package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
  73. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
  74. package/dist/ui/Badge/Badge.d.ts +12 -12
  75. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  76. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  77. package/dist/ui/Carousel/Carousel.d.ts +72 -72
  78. package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
  79. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  80. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  81. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  82. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  83. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  84. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  85. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  86. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  87. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  88. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  89. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  90. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  91. package/dist/ui/Field/Field.d.ts +21 -21
  92. package/dist/ui/Field/field.recipe.d.ts +3 -3
  93. package/dist/ui/Menu/Menu.d.ts +90 -90
  94. package/dist/ui/Menu/menu.recipe.d.ts +5 -5
  95. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  96. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  97. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  98. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  99. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  100. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  101. package/dist/ui/Progress/Progress.d.ts +27 -27
  102. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  103. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  104. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  105. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  106. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  107. package/dist/ui/Select/Select.d.ts +45 -45
  108. package/dist/ui/Select/select.recipe.d.ts +3 -3
  109. package/dist/ui/Table/Table.d.ts +21 -21
  110. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  111. package/dist/ui/Table/table.recipe.d.ts +3 -3
  112. package/package.json +1 -1
  113. package/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -92,6 +92,10 @@ export const TopProgressBar = ({ preset = 'Gold', customPreset, }) => {
92
92
  const href = target.getAttribute('href');
93
93
  if (!href)
94
94
  return;
95
+ // Don't start progress for links that open in new tabs
96
+ const targetBlank = target.getAttribute('target') === '_blank';
97
+ if (targetBlank)
98
+ return;
95
99
  const targetUrl = new URL(href, window.location.origin);
96
100
  const current = new URL(window.location.href);
97
101
  const isDifferent = targetUrl.origin !== current.origin ||
@@ -1 +1,2 @@
1
1
  export * from './TopProgressBar';
2
+ export * from './TopProgressBar.client';
@@ -1 +1,2 @@
1
1
  export * from './TopProgressBar.js';
2
+ export * from './TopProgressBar.client.js';
@@ -0,0 +1,2 @@
1
+ import type { Branch } from '../types';
2
+ export declare const BRANCHES: Branch[];
@@ -0,0 +1,42 @@
1
+ export const BRANCHES = [
2
+ {
3
+ code: 'BRCAL',
4
+ name: 'Bingo Republic 2nd floor Primark Center Deparo St., Caloocan City',
5
+ },
6
+ {
7
+ code: 'BRNAG',
8
+ name: 'Bingo Republic 3rd floor Robinsons Mall, Naga City, Camarines Sur',
9
+ },
10
+ {
11
+ code: 'BRANT',
12
+ name: 'Bingo Republic 2nd floor Robinsons Mall, San Vicente,Antique',
13
+ },
14
+ {
15
+ code: 'BRCLA',
16
+ name: 'Clark',
17
+ },
18
+ {
19
+ code: 'BRLAG',
20
+ name: 'Laguna',
21
+ },
22
+ {
23
+ code: 'BREAS',
24
+ name: 'Eastwood City, Quezon City',
25
+ },
26
+ {
27
+ code: 'BRMAR',
28
+ name: 'Bingo ng Bayan 4th floor Marikina Public Market, Marikina City',
29
+ },
30
+ {
31
+ code: 'BRILO',
32
+ name: 'Iloilo',
33
+ },
34
+ {
35
+ code: 'BRFIM',
36
+ name: 'Fisher Mall,Quezon City',
37
+ },
38
+ {
39
+ code: 'BRCAC',
40
+ name: 'Villa Caceres Hotel, Naga City,Camsur',
41
+ },
42
+ ];
@@ -1,5 +1,5 @@
1
1
  export declare const SITE_ID: string;
2
2
  export declare const PLATFORM_ID: string;
3
3
  export declare const PLATFORM_CODE: string;
4
- export declare const ENVIRONMENT: "production" | "development";
4
+ export declare const ENVIRONMENT: "development" | "production";
5
5
  export declare const INTERNALS__REPORT_WEB_VITALS: boolean;
@@ -122,7 +122,7 @@ export declare const AVAILABLE_QUEST_IDS = "\n query AvailableQuestIds {\n a
122
122
  export declare const CHECK_IN_DAILY_QUEST = "\n mutation checkInDailyCheckInQuest($input: CheckInDailyCheckInQuestInput!) {\n checkInDailyCheckInQuest(input: $input)\n }\n";
123
123
  export declare const TOP_WINS = "\n query TopWins($first: Int) {\n topWins(first: $first) {\n id\n game {\n id\n name\n type\n provider\n }\n member {\n id\n name\n }\n multiplier\n payout\n }\n }\n";
124
124
  export declare const JACKPOTS = "\n query Jackpots(\n $first: Int\n $after: Cursor\n $sort: JackpotSortInput\n $filter: JackpotFilterInput\n ) {\n jackpots(first: $first, after: $after, sort: $sort, filter: $filter) {\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n ... on Jackpot {\n id\n name\n description\n pool\n status\n minimumJackpotPoolDrawingLimit\n maximumJackpotPoolLimit\n drawing\n minimumMultiplier\n minimumBet\n jackpotPayoutPercentage\n jackpotTurnoverContributionPercentagePerGameProvider\n totalPayout\n }\n }\n }\n }\n }\n";
125
- export declare const JACKPOTS_NEXT = "\n query _Jackpots(\n $first: Int\n $after: Cursor\n $sort: JackpotSortInput\n $filter: JackpotFilterInput\n ) {\n _jackpots(first: $first, after: $after, sort: $sort, filter: $filter) {\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n ... on MultiplierJackpot {\n id\n name\n description\n pool\n status\n minimumJackpotPoolDrawingLimit\n maximumJackpotPoolLimit\n drawing\n minimumMultiplier\n minimumBet\n jackpotPayoutPercentage\n jackpotTurnoverContributionPercentagePerGameProvider\n totalPayout\n }\n ... on MultiStageJackpot{\n id\n name\n description\n status\n paused\n minimumBet\n activationDate\n deleted\n stage\n dateTimeCreated\n dateTimeLastUpdated\n jackpotTurnoverContributionPercentagePerGameProvider\n totalPayout\n totalTurnover\n stages {\n targetTurnover\n jackpotPayout\n member {\n name\n }\n dateTimeCompleted\n }\n }\n }\n }\n }\n }\n";
125
+ export declare const JACKPOTS_NEXT = "\n query _Jackpots(\n $first: Int\n $after: Cursor\n $sort: JackpotSortInput\n $filter: JackpotFilterInput\n ) {\n _jackpots(first: $first, after: $after, sort: $sort, filter: $filter) {\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n ... on MultiplierJackpot {\n id\n name\n description\n pool\n status\n minimumJackpotPoolDrawingLimit\n maximumJackpotPoolLimit\n drawing\n minimumMultiplier\n minimumBet\n jackpotPayoutPercentage\n jackpotTurnoverContributionPercentagePerGameProvider\n totalPayout\n }\n ... on MultiStageJackpot{\n id\n name\n description\n status\n paused\n minimumBet\n activationDate\n deleted\n stage\n dateTimeCreated\n dateTimeLastUpdated\n jackpotTurnoverContributionPercentagePerGameProvider\n totalPayout\n totalTurnover\n stages {\n targetTurnover\n jackpotPayout\n member {\n name\n }\n dateTimeCompleted\n }\n currentStageProgressPercentage\n overallProgressPercentage\n }\n }\n }\n }\n }\n";
126
126
  export declare const JACKPOTS_COUNT = "\n query JackpotsCount($filter: JackpotFilterInput) {\n jackpots(filter: $filter) {\n totalCount\n }\n }\n";
127
127
  export declare const JACKPOT_PAYOUTS = "\n query JackpotPayouts(\n $first: Int\n $after: Cursor\n $sort: JackpotPayoutSortInput\n $filter: JackpotPayoutFilterInput\n ) {\n jackpotPayouts(first: $first, after: $after, sort: $sort, filter: $filter) {\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n ... on JackpotPayout {\n id\n member {\n id\n name\n }\n serialCode\n jackpot {\n id\n name\n }\n multiplier\n bet\n amount\n dateTimeCreated\n game {\n provider\n }\n stage\n }\n }\n }\n }\n }\n";
128
128
  export declare const REGISTER_FCM_DEVICE = "\n mutation RegisterFCMDevice($input: RegisterFCMDeviceInput!) {\n registerFCMDevice(input: $input)\n }\n";
@@ -2877,6 +2877,8 @@ export const JACKPOTS_NEXT = /* GraphQL */ `
2877
2877
  }
2878
2878
  dateTimeCompleted
2879
2879
  }
2880
+ currentStageProgressPercentage
2881
+ overallProgressPercentage
2880
2882
  }
2881
2883
  }
2882
2884
  }
@@ -0,0 +1,4 @@
1
+ export interface FacebookPixelProps {
2
+ fbId: string;
3
+ }
4
+ export declare function FacebookPixel(props: FacebookPixelProps): null;
@@ -0,0 +1,4 @@
1
+ export function FacebookPixel(props) {
2
+ console.log(props);
3
+ return null;
4
+ }
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export * from './FacebookPixel';
@@ -0,0 +1 @@
1
+ export * from './FacebookPixel.js';
@@ -0,0 +1,4 @@
1
+ export interface GoogleRecaptchaProps {
2
+ siteKey: string;
3
+ }
4
+ export declare function GoogleRecaptcha(props: GoogleRecaptchaProps): null;
@@ -0,0 +1,4 @@
1
+ export function GoogleRecaptcha(props) {
2
+ console.log(props);
3
+ return null;
4
+ }
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export * from './GoogleRecaptcha';
@@ -0,0 +1 @@
1
+ export * from './GoogleRecaptcha.js';
@@ -0,0 +1,2 @@
1
+ export * from './FacebookPixel';
2
+ export * from './GoogleRecaptcha';
@@ -0,0 +1,2 @@
1
+ export * from './FacebookPixel/index.js';
2
+ export * from './GoogleRecaptcha/index.js';
@@ -832,6 +832,8 @@ export interface _Jackpot {
832
832
  activationDate?: Date;
833
833
  dateTimeCreated: Date;
834
834
  dateTimeLastUpdated: Date;
835
+ currentStageProgressPercentage?: string;
836
+ overallProgressPercentage?: string;
835
837
  }
836
838
  export interface JackpotPayout {
837
839
  id: string;