@opexa/portal-components 0.0.233 → 0.0.235

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 (92) hide show
  1. package/dist/components/Bonus/Bonus.client.js +1 -1
  2. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +2 -0
  3. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +5 -2
  4. package/dist/components/Empty.d.ts +2 -1
  5. package/dist/components/KYC/Header.js +2 -4
  6. package/dist/components/KYC/Step1.js +2 -3
  7. package/dist/components/KYC/Step2.js +2 -3
  8. package/dist/components/KYC/Step3.js +2 -4
  9. package/dist/components/KYC/Step4.js +2 -3
  10. package/dist/components/KYC/backup/KYCContext.d.ts +1 -5
  11. package/dist/components/Messages/Message.js +3 -2
  12. package/dist/components/Messages/MessageContext.d.ts +1 -5
  13. package/dist/components/Messages/MessagePopup.js +3 -2
  14. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -1
  15. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +5 -10
  16. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +3 -4
  17. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +1 -1
  18. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -1
  19. package/dist/components/Quests/WageringQuest/WageringQuest.js +2 -3
  20. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +3 -4
  21. package/dist/components/SignUp/SignUpForm.js +1 -6
  22. package/dist/constants/gameProviders.d.ts +2 -1
  23. package/dist/constants/gameProviders.js +0 -6
  24. package/dist/constants/gameTypes.d.ts +2 -1
  25. package/dist/constants/headerKeys.d.ts +0 -1
  26. package/dist/constants/headerKeys.js +0 -1
  27. package/dist/constants/secretQuestions.d.ts +1 -1
  28. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  29. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
  30. package/dist/ui/Avatar/avatar.recipe.d.ts +3 -3
  31. package/dist/ui/Badge/Badge.d.ts +12 -12
  32. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  33. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  34. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  35. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  36. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  37. package/dist/ui/Collapsible/Collapsible.d.ts +32 -32
  38. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  39. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  40. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  41. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  42. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  43. package/dist/ui/Dialog/Dialog.d.ts +88 -88
  44. package/dist/ui/Dialog/dialog.recipe.d.ts +11 -11
  45. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  46. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  47. package/dist/ui/Menu/Menu.d.ts +144 -144
  48. package/dist/ui/Menu/menu.recipe.d.ts +20 -20
  49. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  50. package/dist/ui/Popover/Popover.d.ts +55 -55
  51. package/dist/ui/Popover/popover.recipe.d.ts +8 -8
  52. package/dist/ui/Presence.d.ts +1 -1
  53. package/dist/ui/Presence.js +1 -1
  54. package/dist/ui/Progress/Progress.d.ts +27 -27
  55. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  56. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  57. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  58. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  59. package/dist/ui/Select/Select.d.ts +45 -45
  60. package/dist/ui/Select/select.recipe.d.ts +3 -3
  61. package/dist/ui/Table/Table.d.ts +21 -21
  62. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  63. package/dist/ui/Table/table.recipe.d.ts +3 -3
  64. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  65. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  66. package/dist/utils/constants.d.ts +2 -0
  67. package/dist/utils/constants.js +2 -0
  68. package/dist/utils/isBetween3amAnd3pm.d.ts +1 -0
  69. package/dist/utils/isBetween3amAnd3pm.js +5 -0
  70. package/package.json +1 -1
  71. package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +0 -2
  72. package/dist/components/CashbackBonus/CashbackBonus.client.js +0 -9
  73. package/dist/components/CashbackBonus/CashbackBonus.d.ts +0 -10
  74. package/dist/components/CashbackBonus/CashbackBonus.js +0 -5
  75. package/dist/components/CashbackBonus/index.d.ts +0 -1
  76. package/dist/components/CashbackBonus/index.js +0 -1
  77. package/dist/components/KYC/loadModels.d.ts +0 -1
  78. package/dist/components/KYC/loadModels.js +0 -9
  79. package/dist/components/Promo/PromoContent.d.ts +0 -2
  80. package/dist/components/Promo/PromoContent.js +0 -9
  81. package/dist/components/Promos/PromoCarousel.d.ts +0 -2
  82. package/dist/components/Promos/PromoCarousel.js +0 -41
  83. package/dist/components/Promos/PromoGrid.d.ts +0 -2
  84. package/dist/components/Promos/PromoGrid.js +0 -12
  85. package/dist/components/Promos/PromoItem.d.ts +0 -7
  86. package/dist/components/Promos/PromoItem.js +0 -10
  87. package/dist/constants/BranchCode.d.ts +0 -4
  88. package/dist/constants/BranchCode.js +0 -42
  89. package/dist/constants/endpoints.d.ts +0 -10
  90. package/dist/constants/endpoints.js +0 -41
  91. package/dist/utils/createErrorFromCode.d.ts +0 -2
  92. package/dist/utils/createErrorFromCode.js +0 -11
@@ -1,42 +0,0 @@
1
- export const BRANCH_CODES = [
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,10 +0,0 @@
1
- export declare const ACCOUNT_GRAPHQL_ENDPOINT: string;
2
- export declare const FILE_GRAPHQL_ENDPOINT: string;
3
- export declare const GAME_GRAPHQL_ENDPOINT: string;
4
- export declare const PORTAL_GRAPHQL_ENDPOINT: string;
5
- export declare const REPORT_GRAPHQL_ENDPOINT: string;
6
- export declare const TRIGGER_GRAPHQL_ENDPOINT: string;
7
- export declare const WALLET_GRAPHQL_ENDPOINT: string;
8
- export declare const AUTH_ENDPOINT: string;
9
- export declare const CMS_PORTAL_ENDPOINT: string;
10
- export declare const STATIC_ENDPOINT: string;
@@ -1,41 +0,0 @@
1
- import { ENVIRONMENT } from './envVars.js';
2
- export const ACCOUNT_GRAPHQL_ENDPOINT = {
3
- development: 'https://account.development.opexa.io/graphql',
4
- production: 'https://account.opexa.io/graphql',
5
- }[ENVIRONMENT];
6
- export const FILE_GRAPHQL_ENDPOINT = {
7
- development: 'https://file.development.opexa.io/graphql',
8
- production: 'https://file.opexa.io/graphql',
9
- }[ENVIRONMENT];
10
- export const GAME_GRAPHQL_ENDPOINT = {
11
- development: 'https://game.development.opexa.io/graphql',
12
- production: 'https://game.opexa.io/graphql',
13
- }[ENVIRONMENT];
14
- export const PORTAL_GRAPHQL_ENDPOINT = {
15
- development: 'https://portal.development.opexa.io/graphql',
16
- production: 'https://portal.opexa.io/graphql',
17
- }[ENVIRONMENT];
18
- export const REPORT_GRAPHQL_ENDPOINT = {
19
- development: 'https://report.development.opexa.io/graphql',
20
- production: 'https://report.opexa.io/graphql',
21
- }[ENVIRONMENT];
22
- export const TRIGGER_GRAPHQL_ENDPOINT = {
23
- development: 'https://trigger.development.opexa.io/graphql',
24
- production: 'https://trigger.opexa.io/graphql',
25
- }[ENVIRONMENT];
26
- export const WALLET_GRAPHQL_ENDPOINT = {
27
- development: 'https://wallet.development.opexa.io/graphql',
28
- production: 'https://wallet.opexa.io/graphql',
29
- }[ENVIRONMENT];
30
- export const AUTH_ENDPOINT = {
31
- development: 'https://auth.development.opexa.io',
32
- production: 'https://auth.opexa.io',
33
- }[ENVIRONMENT];
34
- export const CMS_PORTAL_ENDPOINT = {
35
- development: 'https://portal-api.opexacms.io',
36
- production: 'https://portal-api.opexacms.io',
37
- }[ENVIRONMENT];
38
- export const STATIC_ENDPOINT = {
39
- development: 'https://static.development.atalos.io',
40
- production: 'https://static.atalos.io',
41
- }[ENVIRONMENT];
@@ -1,2 +0,0 @@
1
- export type KnownErrorName = '' | (string & {});
2
- export declare function createErrorFromCode(name: KnownErrorName | (string & {}), message?: string): Error;
@@ -1,11 +0,0 @@
1
- // ✏️ TODO
2
- const ERROR_CODES_MAP = {
3
- '': '',
4
- };
5
- export function createErrorFromCode(name, message) {
6
- const error = new Error();
7
- error.name = name;
8
- error.message = ERROR_CODES_MAP[name] ?? message ?? 'Something went wrong';
9
- Error.captureStackTrace?.(error, createErrorFromCode);
10
- return error;
11
- }