@opexa/portal-components 0.0.755 → 0.0.757
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/dist/components/Jackpots/JackpotsCarouselNext/JackpotsCarouselStageItem.js +6 -2
- package/dist/components/Jackpots/JackpotsListNext/JackpotMultiStageDesktop.d.ts +1 -1
- package/dist/components/Jackpots/JackpotsListNext/JackpotMultiStageDesktop.js +7 -2
- package/dist/components/Jackpots/JackpotsListNext/JackpotMultiStageMobile.js +7 -3
- package/dist/components/Jackpots/JackpotsListNext/JackpotsList.js +2 -7
- package/dist/components/PortalProvider/AndroidOnlyComponents.d.ts +1 -0
- package/dist/components/PortalProvider/AndroidOnlyComponents.js +12 -0
- package/dist/constants/EnvVar.d.ts +1 -1
- package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Carousel/Carousel.d.ts +72 -72
- package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +33 -33
- package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Field/Field.d.ts +21 -21
- package/dist/ui/Field/field.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +144 -144
- package/dist/ui/Menu/menu.recipe.d.ts +8 -8
- package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
- package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
- package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
- package/dist/ui/PinInput/PinInput.d.ts +12 -12
- package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/QrCode/QrCode.d.ts +25 -25
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/package.json +1 -1
- package/dist/components/DepositWithdrawal/AiOPaymentMethods.d.ts +0 -11
- package/dist/components/DepositWithdrawal/AiOPaymentMethods.js +0 -55
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
- package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
- package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
- package/dist/components/SessionWatcher/index.d.ts +0 -1
- package/dist/components/SessionWatcher/index.js +0 -1
|
@@ -79,6 +79,10 @@ export function JackpotsCarouselStageItem({ style, className, viewAllUrl, animat
|
|
|
79
79
|
? 100
|
|
80
80
|
: parsed;
|
|
81
81
|
const isCompleted = overallPercentage >= 100;
|
|
82
|
+
const stage = jackpot.stage ?? 1;
|
|
83
|
+
const currentWinner = useMemo(() => jackpot.status === 'CLOSED'
|
|
84
|
+
? jackpot.stages?.[jackpot.stages.length - 1]
|
|
85
|
+
: jackpot.stages?.[jackpot.stages.length - 1 === stage ? stage - 1 : stage - 2], [jackpot, stage]);
|
|
82
86
|
useEffect(() => {
|
|
83
87
|
if (isMobileDevice && mainTooltipOpen) {
|
|
84
88
|
const timeout = setTimeout(() => setMainTooltipOpen(false), 3000);
|
|
@@ -108,10 +112,10 @@ export function JackpotsCarouselStageItem({ style, className, viewAllUrl, animat
|
|
|
108
112
|
currency: localeInfo.currency.code,
|
|
109
113
|
minDecimalPlaces: 2,
|
|
110
114
|
maxDecimalPlaces: 2,
|
|
111
|
-
})] })] })] }), _jsx("div", { className: "hidden min-w-25 lg:block" }), chestImages.image && (_jsx("div", { className: twMerge('right-0 bottom-[-60] z-1 min-w-30 lg:absolute', chestImages?.style?.wrapper), children: _jsx(Image, { width: 150, height: 150, src: chestImages.image, alt: "chest", className: twMerge('size-full h-25 w-25 p-2 lg:h-37.5 lg:w-37.5', chestImages?.style?.image) }) }))] }), _jsx("div", { className: twMerge('relative mt-4 hidden w-full gap-4 rounded-lg bg-bg-primary p-4 lg:flex', className?.latestPayoutRoot), children:
|
|
115
|
+
})] })] })] }), _jsx("div", { className: "hidden min-w-25 lg:block" }), chestImages.image && (_jsx("div", { className: twMerge('right-0 bottom-[-60] z-1 min-w-30 lg:absolute', chestImages?.style?.wrapper), children: _jsx(Image, { width: 150, height: 150, src: chestImages.image, alt: "chest", className: twMerge('size-full h-25 w-25 p-2 lg:h-37.5 lg:w-37.5', chestImages?.style?.image) }) }))] }), _jsx("div", { className: twMerge('relative mt-4 hidden w-full gap-4 rounded-lg bg-bg-primary p-4 lg:flex', className?.latestPayoutRoot), children: currentWinner?.member?.name ? (_jsxs(_Fragment, { children: [_jsx(ProfileIcon, {}), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsx(PayoutBadge, {}), _jsx("div", { className: "font-semibold", children: maskFirstLast(currentWinner?.member?.name, {
|
|
112
116
|
firstCharsCount: 3,
|
|
113
117
|
midLength: 3,
|
|
114
|
-
}) }), _jsx("div", { className: twMerge('text-2xl text-brand-400', className?.latestPayoutAmount), children: formatNumber(
|
|
118
|
+
}) }), _jsx("div", { className: twMerge('text-2xl text-brand-400', className?.latestPayoutAmount), children: formatNumber(currentWinner?.jackpotPayout, {
|
|
115
119
|
currency: localeInfo.currency.code,
|
|
116
120
|
minDecimalPlaces: 2,
|
|
117
121
|
maxDecimalPlaces: 2,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ImageProps } from 'next/image';
|
|
2
|
-
import type
|
|
2
|
+
import { type CSSProperties } from 'react';
|
|
3
3
|
import type { ClassNameEntries } from './JackpotsList';
|
|
4
4
|
interface JackpotsListItemDesktopProps {
|
|
5
5
|
className?: ClassNameEntries;
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Progress } from '@ark-ui/react/progress';
|
|
3
3
|
import { format } from 'date-fns';
|
|
4
4
|
import Image, {} from 'next/image';
|
|
5
|
+
import { useMemo } from 'react';
|
|
5
6
|
import { twMerge } from 'tailwind-merge';
|
|
6
7
|
import { ArrowNarrowUpRightIcon } from '../../../icons/ArrowNarrowUpRightIcon.js';
|
|
7
8
|
import { CheckCircleBrokenIcon } from '../../../icons/CheckCircleBrokenIcon.js';
|
|
@@ -56,6 +57,10 @@ export function JackpotMultiStageDesktop({ animate = true, customJackpotChestIma
|
|
|
56
57
|
: parsed;
|
|
57
58
|
const overallPercentage = parseInt(jackpot.overallProgressPercentage ?? '0');
|
|
58
59
|
const isCompleted = overallPercentage >= 100;
|
|
60
|
+
const stage = jackpot.stage ?? 1;
|
|
61
|
+
const currentWinner = useMemo(() => jackpot.status === 'CLOSED'
|
|
62
|
+
? jackpot.stages?.[jackpot.stages.length - 1]
|
|
63
|
+
: jackpot.stages?.[jackpot.stages.length - 1 === stage ? stage - 1 : stage - 2], [jackpot, stage]);
|
|
59
64
|
const ProfileIcon = () => jackpotProfileShape === 'oval' ? (_jsx("div", { className: "relative flex h-18 w-18 items-center justify-center rounded-full bg-bg-tertiary", children: _jsx(User01Icon, { className: "size-9 text-text-quarterary-500" }) })) : (_jsxs("div", { className: "relative grid h-18 w-18", children: [_jsx(StarIcon, { className: "col-start-1 row-start-1 h-full w-full" }), _jsx(User01Icon, { className: "z-10 col-start-1 row-start-1 size-9 place-self-center text-text-quarterary-500" })] }));
|
|
60
65
|
const PayoutBadge = () => (_jsxs("div", { className: twMerge('flex h-fit w-fit items-center gap-1 rounded-sm border border-utility-brand-200 bg-utility-brand-50 px-2 py-0.5 font-medium text-utility-brand-700 text-xs', className?.latestPayoutBadgeRoot), children: [_jsx(Trophy01Icon, { className: twMerge('size-3.5 text-utility-brand-600', className?.latestPayoutBadgeIcon) }), "Winner"] }));
|
|
61
66
|
const ProgressBar = () => (_jsxs("div", { className: "mt-3 lg:mt-4", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "font-semibold text-sm text-text-primary-900", children: ["Stage ", jackpot.stage, " Progress"] }), isCompleted ? 100 : currStageProgressPercentage, "%"] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary lg:h-4", max: 100, value: isCompleted ? 100 : currStageProgressPercentage, children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsx(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) })] }));
|
|
@@ -92,10 +97,10 @@ export function JackpotMultiStageDesktop({ animate = true, customJackpotChestIma
|
|
|
92
97
|
currency: localeInfo.currency.code,
|
|
93
98
|
minDecimalPlaces: 2,
|
|
94
99
|
maxDecimalPlaces: 2,
|
|
95
|
-
})] })] })] }), _jsx("div", { className: "min-w-30" }), chestImages.image && (_jsx("div", { className: twMerge('right-0 bottom-[-60] z-1 min-w-30 lg:absolute', chestImages?.style?.wrapper), children: _jsx(Image, { width: 150, height: 150, src: chestImages.image, alt: "chest", className: twMerge('size-full h-25 w-25 p-2 lg:h-37.5 lg:w-37.5', chestImages?.style?.image) }) }))] }), _jsx("div", { className: twMerge('relative mt-4 hidden w-full gap-4 rounded-lg bg-bg-primary p-4 lg:flex', className?.latestPayoutRoot), children:
|
|
100
|
+
})] })] })] }), _jsx("div", { className: "min-w-30" }), chestImages.image && (_jsx("div", { className: twMerge('right-0 bottom-[-60] z-1 min-w-30 lg:absolute', chestImages?.style?.wrapper), children: _jsx(Image, { width: 150, height: 150, src: chestImages.image, alt: "chest", className: twMerge('size-full h-25 w-25 p-2 lg:h-37.5 lg:w-37.5', chestImages?.style?.image) }) }))] }), _jsx("div", { className: twMerge('relative mt-4 hidden w-full gap-4 rounded-lg bg-bg-primary p-4 lg:flex', className?.latestPayoutRoot), children: currentWinner?.member?.name ? (_jsxs(_Fragment, { children: [_jsx(ProfileIcon, {}), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsx(PayoutBadge, {}), _jsx("div", { className: "font-semibold", children: maskFirstLast(currentWinner?.member?.name, {
|
|
96
101
|
firstCharsCount: 3,
|
|
97
102
|
midLength: 3,
|
|
98
|
-
}) }), _jsx("div", { className: twMerge('text-2xl text-brand-400', className?.latestPayoutAmount), children: formatNumber(
|
|
103
|
+
}) }), _jsx("div", { className: twMerge('text-2xl text-brand-400', className?.latestPayoutAmount), children: formatNumber(currentWinner.jackpotPayout, {
|
|
99
104
|
currency: localeInfo.currency.code,
|
|
100
105
|
minDecimalPlaces: 2,
|
|
101
106
|
maxDecimalPlaces: 2,
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Progress } from '@ark-ui/react/progress';
|
|
3
3
|
import { format } from 'date-fns';
|
|
4
4
|
import Image, {} from 'next/image';
|
|
5
|
-
import { useEffect, useState } from 'react';
|
|
5
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
7
|
import { ArrowNarrowDownIcon } from '../../../icons/ArrowNarrowDownIcon.js';
|
|
8
8
|
import { ArrowNarrowUpIcon } from '../../../icons/ArrowNarrowUpIcon.js';
|
|
@@ -74,6 +74,10 @@ export function JackpotMultiStageMobile({ animate = true, customJackpotChestImag
|
|
|
74
74
|
: parsed;
|
|
75
75
|
const overallPercentage = parseInt(jackpot.overallProgressPercentage ?? '0');
|
|
76
76
|
const isCompleted = overallPercentage >= 100;
|
|
77
|
+
const stage = jackpot.stage ?? 1;
|
|
78
|
+
const currentWinner = useMemo(() => jackpot.status === 'CLOSED'
|
|
79
|
+
? jackpot.stages?.[jackpot.stages.length - 1]
|
|
80
|
+
: jackpot.stages?.[jackpot.stages.length - 1 === stage ? stage - 1 : stage - 2], [jackpot, stage]);
|
|
77
81
|
const ProfileIcon = () => jackpotProfileShape === 'oval' ? (_jsx("div", { className: "relative flex h-18 w-18 items-center justify-center rounded-full bg-bg-tertiary", children: _jsx(User01Icon, { className: "size-9 text-text-quarterary-500" }) })) : (_jsxs("div", { className: "relative grid h-18 w-18", children: [_jsx(StarIcon, { className: "col-start-1 row-start-1 h-full w-full" }), _jsx(User01Icon, { className: "z-10 col-start-1 row-start-1 size-9 place-self-center text-text-quarterary-500" })] }));
|
|
78
82
|
const PayoutBadge = () => (_jsxs("div", { className: twMerge('flex h-fit w-fit items-center gap-1 rounded-sm border border-utility-brand-200 bg-utility-brand-50 px-2 py-0.5 font-medium text-utility-brand-700 text-xs', className?.latestPayoutBadgeRoot), children: [_jsx(Trophy01Icon, { className: twMerge('size-3.5 text-utility-brand-600', className?.latestPayoutBadgeIcon) }), "Winner"] }));
|
|
79
83
|
const ProgressBar = () => (_jsxs("div", { className: "flex w-full flex-col items-center justify-between", children: [_jsxs("div", { className: "mb-[5px] flex w-full items-center justify-between", children: [_jsxs("div", { className: "font-semibold text-text-primary-900 text-xs", children: ["Stage ", jackpot.stage] }), isCompleted ? 100 : currStageProgressPercentage, "%"] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary", max: 100, value: isCompleted ? 100 : currStageProgressPercentage, "aria-valuemax": 100, "aria-label": "Stage progress", children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsx(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) })] }));
|
|
@@ -110,9 +114,9 @@ export function JackpotMultiStageMobile({ animate = true, customJackpotChestImag
|
|
|
110
114
|
currency: localeInfo.currency.code,
|
|
111
115
|
minDecimalPlaces: 2,
|
|
112
116
|
maxDecimalPlaces: 2,
|
|
113
|
-
})] })] }), _jsx(ProgressBar, {})] }), chestImages?.image && (_jsx("div", { className: twMerge('right-0 bottom-[-60] z-1 block min-w-34.5 lg:absolute', chestImages?.style?.wrapper), children: _jsx(Image, { width: 100, height: 100, src: chestImages?.image, alt: "chest", className: twMerge('size-full h-34.5 w-34.5 p-2 lg:h-37.5 lg:w-37.5', chestImages?.style?.image) }) }))] }) }) }) }), _jsx("div", { className: twMerge('relative mt-4 flex w-full gap-4 rounded-lg bg-bg-primary p-4', className?.latestPayoutRoot), children:
|
|
117
|
+
})] })] }), _jsx(ProgressBar, {})] }), chestImages?.image && (_jsx("div", { className: twMerge('right-0 bottom-[-60] z-1 block min-w-34.5 lg:absolute', chestImages?.style?.wrapper), children: _jsx(Image, { width: 100, height: 100, src: chestImages?.image, alt: "chest", className: twMerge('size-full h-34.5 w-34.5 p-2 lg:h-37.5 lg:w-37.5', chestImages?.style?.image) }) }))] }) }) }) }), _jsx("div", { className: twMerge('relative mt-4 flex w-full gap-4 rounded-lg bg-bg-primary p-4', className?.latestPayoutRoot), children: currentWinner?.member?.name ? (_jsxs(_Fragment, { children: [_jsx(ProfileIcon, {}), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsx(PayoutBadge, {}), _jsx("div", { className: "font-semibold", children: maskFirstLast(currentWinner?.member?.name, {
|
|
114
118
|
firstCharsCount: 3,
|
|
115
|
-
}) }), _jsx("div", { className: twMerge('text-2xl text-brand-400', className?.latestPayoutAmount), children: formatNumber(
|
|
119
|
+
}) }), _jsx("div", { className: twMerge('text-2xl text-brand-400', className?.latestPayoutAmount), children: formatNumber(currentWinner?.jackpotPayout, {
|
|
116
120
|
currency: localeInfo.currency.code,
|
|
117
121
|
minDecimalPlaces: 2,
|
|
118
122
|
maxDecimalPlaces: 2,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { isString } from 'lodash-es';
|
|
4
4
|
import Image, {} from 'next/image';
|
|
5
|
-
import { useIntersectionObserver } from 'usehooks-ts';
|
|
6
5
|
import { useJackpotsNextQuery } from '../../../client/hooks/useJackpotsNextQuery.js';
|
|
7
6
|
import closeChest from '../../../images/close-chest.png';
|
|
8
7
|
import { isStyleEntries } from '../../../utils/isStyleEntries.js';
|
|
@@ -12,9 +11,6 @@ import { JackpotsListItemContext, JackpotsListPropsContext, } from './JackpotsLi
|
|
|
12
11
|
import { JackpotsListItemDesktop } from './JackpotsListItemDesktop.js';
|
|
13
12
|
import { JackpotsListItemMobile } from './JackpotsListItemMobile.js';
|
|
14
13
|
export function JackpotsListNext(props) {
|
|
15
|
-
const [ref, inView] = useIntersectionObserver({
|
|
16
|
-
threshold: 0.25,
|
|
17
|
-
});
|
|
18
14
|
const jackpotsNextQuery = useJackpotsNextQuery({
|
|
19
15
|
first: 100,
|
|
20
16
|
filter: {
|
|
@@ -27,17 +23,16 @@ export function JackpotsListNext(props) {
|
|
|
27
23
|
order: 'DESC',
|
|
28
24
|
},
|
|
29
25
|
}, {
|
|
30
|
-
refetchInterval:
|
|
26
|
+
refetchInterval: 5000,
|
|
31
27
|
});
|
|
32
28
|
const jackpots = jackpotsNextQuery.data?.pages[0].edges.map((edge) => edge.node) ?? [];
|
|
33
|
-
console.log;
|
|
34
29
|
const styles = isStyleEntries(props.style, ['root', 'itemRoot'])
|
|
35
30
|
? props.style
|
|
36
31
|
: { root: props.style };
|
|
37
32
|
const classNames = isString(props.className)
|
|
38
33
|
? { root: props.className }
|
|
39
34
|
: (props.className ?? {});
|
|
40
|
-
return (_jsx(JackpotsListPropsContext, { value: props, children: _jsxs("div", {
|
|
35
|
+
return (_jsx(JackpotsListPropsContext, { value: props, children: _jsxs("div", { style: styles.root, className: classNames.root, children: [_jsx("div", { className: "mb-3 font-semibold text-lg lg:mb-4.5", children: props.heading ?? 'Jackpots' }), jackpots.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "hidden flex-col gap-6 lg:flex", children: jackpots.map((jackpot, index) => {
|
|
41
36
|
if (jackpot?.stages?.length) {
|
|
42
37
|
return (_jsx(JackpotsListItemContext, { value: jackpot, children: _jsx(JackpotMultiStageDesktop, { style: styles.itemRoot, className: classNames, animate: props.animate, customJackpotChestImage: props.customJackpotChestImage, jackpotProfileShape: props.jackpotProfileShape, customJackpotStageChest: props.customJackpotStageChest, medalImage: props.medalImage }) }, index));
|
|
43
38
|
}
|
|
@@ -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
|
+
}
|
|
@@ -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: "
|
|
4
|
+
export declare const ENVIRONMENT: "development" | "production";
|
|
5
5
|
export declare const INTERNALS__REPORT_WEB_VITALS: boolean;
|