@opexa/portal-components 0.0.789 → 0.0.790

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 (83) hide show
  1. package/dist/components/Messages/MessagesPopup.js +3 -7
  2. package/dist/components/PortalProvider/AndroidOnlyComponents.d.ts +1 -0
  3. package/dist/components/PortalProvider/AndroidOnlyComponents.js +12 -0
  4. package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
  5. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
  6. package/dist/ui/Badge/Badge.d.ts +12 -12
  7. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  8. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  9. package/dist/ui/Carousel/Carousel.d.ts +72 -72
  10. package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
  11. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  12. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  13. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  14. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  15. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  16. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  17. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  18. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  19. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  20. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  21. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  22. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  23. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  24. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  25. package/dist/ui/Field/Field.d.ts +21 -21
  26. package/dist/ui/Field/field.recipe.d.ts +3 -3
  27. package/dist/ui/Menu/Menu.d.ts +90 -90
  28. package/dist/ui/Menu/menu.recipe.d.ts +5 -5
  29. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  30. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  31. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  32. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  33. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  34. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  35. package/dist/ui/Progress/Progress.d.ts +27 -27
  36. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  37. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  38. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  39. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  40. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  41. package/dist/ui/Select/Select.d.ts +45 -45
  42. package/dist/ui/Select/select.recipe.d.ts +3 -3
  43. package/dist/ui/Table/Table.d.ts +21 -21
  44. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  45. package/dist/ui/Table/table.recipe.d.ts +3 -3
  46. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  47. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  48. package/package.json +1 -1
  49. package/dist/components/AccountInfo/GoogleDisconnect.d.ts +0 -7
  50. package/dist/components/AccountInfo/GoogleDisconnect.js +0 -11
  51. package/dist/components/DepositWithdrawal/AiOPaymentMethods.d.ts +0 -11
  52. package/dist/components/DepositWithdrawal/AiOPaymentMethods.js +0 -55
  53. package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit /GCashWebpayDeposit .d.ts +0 -1
  54. package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit /GCashWebpayDeposit .js +0 -191
  55. package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
  56. package/dist/components/DigitainLauncher/Loading.js +0 -5
  57. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
  58. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
  59. package/dist/components/KYC/BasicInformation.d.ts +0 -1
  60. package/dist/components/KYC/BasicInformation.js +0 -101
  61. package/dist/components/KYC/IdentityVerification.d.ts +0 -1
  62. package/dist/components/KYC/IdentityVerification.js +0 -120
  63. package/dist/components/KYC/Indicator.d.ts +0 -1
  64. package/dist/components/KYC/Indicator.js +0 -8
  65. package/dist/components/KYC/KYC.lazy.d.ts +0 -6
  66. package/dist/components/KYC/KYC.lazy.js +0 -45
  67. package/dist/components/KYC/KYCContext.d.ts +0 -6
  68. package/dist/components/KYC/KYCContext.js +0 -2
  69. package/dist/components/KYC/PersonalInformation.d.ts +0 -1
  70. package/dist/components/KYC/PersonalInformation.js +0 -122
  71. package/dist/components/KYC/useKYC.d.ts +0 -25
  72. package/dist/components/KYC/useKYC.js +0 -38
  73. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
  74. package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
  75. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
  76. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
  77. package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
  78. package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
  79. package/dist/components/SessionWatcher/index.d.ts +0 -1
  80. package/dist/components/SessionWatcher/index.js +0 -1
  81. package/dist/icons/LinkBrokenIcon.d.ts +0 -2
  82. package/dist/icons/LinkBrokenIcon.js +0 -4
  83. package/dist/images/responsible-gaming-yellow.png +0 -0
@@ -5,7 +5,6 @@ import { useState } from 'react';
5
5
  import { useInterval } from 'usehooks-ts';
6
6
  import { useShallow } from 'zustand/shallow';
7
7
  import { useDisclosure } from '../../client/hooks/useDisclosure.js';
8
- import { useFeatureFlag } from '../../client/hooks/useFeatureFlag.js';
9
8
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
10
9
  import { useMarkMessageAsReadMutation } from '../../client/hooks/useMarkMessageAsReadMutation.js';
11
10
  import { useMessagesQuery } from '../../client/hooks/useMessagesQuery.js';
@@ -61,8 +60,6 @@ export function MessagesPopup() {
61
60
  }
62
61
  },
63
62
  });
64
- const future = useFeatureFlag();
65
- const isGameLaunchWaiting = globalStore.gameLaunch.details.status === 'WAITING' || future.enabled;
66
63
  const messagesQuery = useMessagesQuery({
67
64
  first: 20,
68
65
  filter: {
@@ -74,8 +71,7 @@ export function MessagesPopup() {
74
71
  },
75
72
  },
76
73
  }, {
77
- enabled: isGameLaunchWaiting &&
78
- !globalStore.depositWithdrawal.open &&
74
+ enabled: !globalStore.depositWithdrawal.open &&
79
75
  !globalStore.messages.open &&
80
76
  !globalStore.message.open &&
81
77
  !globalStore.account.open &&
@@ -86,7 +82,7 @@ export function MessagesPopup() {
86
82
  refetchInterval: disclosure.open ? undefined : 1000 * 10,
87
83
  });
88
84
  const messages = messagesQuery.data?.pages.flatMap((page) => page.edges
89
- .filter((edge) => globalStore.gameLaunch.details.status === 'PLAYING' && future.enabled
85
+ .filter((edge) => globalStore.gameLaunch.details.status === 'PLAYING'
90
86
  ? edge.node.force
91
87
  : true)
92
88
  .map((edge) => edge.node)) ?? [];
@@ -132,7 +128,7 @@ export function MessagesPopup() {
132
128
  setIndex(details.page);
133
129
  }, slideCount: messages.length, allowMouseDrag: true, autoplay: false, children: [_jsx(Carousel.ItemGroup, { children: messages.map((message, index) => (_jsxs(Carousel.Item, { index: index, className: "select-none", children: [_jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-brand-secondary text-text-brand", children: _jsx(MessageIcon, { type: message.icon, className: "size-6" }) }), _jsx("h2", { className: "mt-lg text-center font-semibold text-lg xl:mt-xl", children: message.title }), message.content && (_jsx("div", { dangerouslySetInnerHTML: {
134
130
  __html: transformContent(message.content),
135
- }, className: "mt-xs pb-5 text-left text-sm text-text-secondary-700 [&_li>ol]:list-decimal [&_li>ol]:pl-5 [&_li>ul]:list-disc [&_li>ul]:pl-5 [&_li]:mb-1 [&_ol]:list-decimal [&_ol]:pl-5 [&_ul]:list-disc [&_ul]:pl-5" })), message.image && (_jsx("div", { className: "mt-5 pb-5", children: _jsx(Image, { src: message.image, alt: "", width: 400, height: 250, loading: "lazy", unoptimized: true, className: "h-auto w-full rounded-sm" }) })), message.actions.length ? (_jsx("div", { className: "mt-3xl flex flex-col gap-2 text-center lg:mt-4xl", children: message.actions.map((action, index) => (_jsx(Button, { asChild: true, children: _jsx(Link, { href: normalizeActionUrl(action.url, session?.token || '', {
131
+ }, className: "mt-xs pb-5 text-center text-sm text-text-secondary-700 [&_li>ol]:list-decimal [&_li>ol]:pl-5 [&_li>ul]:list-disc [&_li>ul]:pl-5 [&_li]:mb-1 [&_ol]:list-decimal [&_ol]:pl-5 [&_ul]:list-disc [&_ul]:pl-5" })), message.image && (_jsx("div", { className: "mt-5 pb-5", children: _jsx(Image, { src: message.image, alt: "", width: 400, height: 250, loading: "lazy", unoptimized: true, className: "h-auto w-full rounded-sm" }) })), message.actions.length ? (_jsx("div", { className: "mt-3xl flex flex-col gap-2 text-center lg:mt-4xl", children: message.actions.map((action, index) => (_jsx(Button, { asChild: true, children: _jsx(Link, { href: normalizeActionUrl(action.url, session?.token || '', {
136
132
  questsPageUrl,
137
133
  transactionsPageUrl,
138
134
  }), onClick: () => {
@@ -0,0 +1 @@
1
+ export declare function AndroidOnlyComponents(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,12 @@
1
+ 'use client';
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Capacitor } from '@capacitor/core';
4
+ import { AndroidRoutingHandler } from './AndroidRoutingHandler.js';
5
+ import PushNotification from './PushNotifications.js';
6
+ export function AndroidOnlyComponents() {
7
+ const platform = Capacitor.getPlatform();
8
+ const isNative = platform === 'android' || platform === 'ios';
9
+ if (!isNative)
10
+ return null;
11
+ return (_jsxs(_Fragment, { children: [_jsx(PushNotification, {}), _jsx(AndroidRoutingHandler, {})] }));
12
+ }