@opexa/portal-components 0.0.932 → 0.0.934

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.
@@ -43,6 +43,9 @@ export function GamesSearch(props) {
43
43
  const classNames = isString(props.className)
44
44
  ? { root: props.className }
45
45
  : (props.className ?? {});
46
+ function fixMojibake(str) {
47
+ return str.replace(/ÔÇÖ/g, "'").replace(/ÔÇô/g, '');
48
+ }
46
49
  return (_jsx("div", { className: classNames.root, children: _jsxs(Combobox.Root, { collection: collection, positioning: {
47
50
  sameWidth: true,
48
51
  placement: 'bottom',
@@ -62,7 +65,7 @@ export function GamesSearch(props) {
62
65
  provider: game.provider,
63
66
  image: game.image,
64
67
  }), alt: "", width: 200, height: 200, loading: "lazy", unoptimized: true, className: "aspect-square w-full rounded-t-md object-cover" }), _jsx("span", { className: twMerge('block w-full rounded-b-md bg-bg-tertiary px-2 py-2.5 text-center font-semibold text-text-primary-brand text-xs', props.variant !== '88play' &&
65
- 'truncate', classNames.thumbnailTitle), children: game.name })] }, game.id))) })) }), _jsx(Presence, { present: gamesQuery.hasNextPage, children: _jsx(Button, { variant: "outline", className: twMerge('mx-auto mt-4xl w-fit', classNames.loadMoreButton), onClick: () => gamesQuery.fetchNextPage(), children: "Load More" }) })] }))] })) })) })] })) }) })] }) }));
68
+ 'truncate', classNames.thumbnailTitle), children: fixMojibake(game.name) })] }, game.id))) })) }), _jsx(Presence, { present: gamesQuery.hasNextPage, children: _jsx(Button, { variant: "outline", className: twMerge('mx-auto mt-4xl w-fit', classNames.loadMoreButton), onClick: () => gamesQuery.fetchNextPage(), children: "Load More" }) })] }))] })) })) })] })) }) })] }) }));
66
69
  }
67
70
  function Alert({ message }) {
68
71
  return (_jsxs("div", { className: "py-lg", role: "alert", "aria-live": "polite", children: [_jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-lg border border-border-primary bg-bg-secondary shadow-xs", children: _jsx(SearchLgIcon, { className: "size-6 text-text-secondary-700" }) }), _jsx("p", { className: "mt-4 text-center text-text-secondary-700", children: message })] }));
@@ -10,10 +10,12 @@ import { toaster } from '../../client/utils/toaster.js';
10
10
  export function SessionWatcher() {
11
11
  const router = useRouter();
12
12
  const sessionQuery = useSessionQuery();
13
+ console.log('sessionQuery', sessionQuery.data);
13
14
  const sessionHealthQuery = useSessionHealthQuery({
14
15
  enabled: sessionQuery.data?.status === 'authenticated',
15
16
  refetchInterval: 1000 * 5,
16
17
  });
18
+ console.log('sessionHealthQuery', sessionHealthQuery.data);
17
19
  const { gameLaunch } = useGlobalStore(useShallow((ctx) => ({
18
20
  gameLaunch: ctx.gameLaunch,
19
21
  })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.932",
3
+ "version": "0.0.934",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",