@opexa/portal-components 0.0.639 → 0.0.640

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.
@@ -1,12 +1,19 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Capacitor } from '@capacitor/core';
4
+ import { SplashScreen } from '@capacitor/splash-screen';
5
+ import { useEffect } from 'react';
4
6
  import { AddSafeArea } from './AddSafeArea.js';
5
7
  import { AndroidRoutingHandler } from './AndroidRoutingHandler.js';
6
8
  import PushNotification from './PushNotifications.js';
7
9
  export function AppOnlyComponents() {
8
10
  const platform = Capacitor.getPlatform();
9
11
  const isNative = platform === 'android' || platform === 'ios';
12
+ useEffect(() => {
13
+ if (isNative) {
14
+ SplashScreen.hide();
15
+ }
16
+ }, [isNative]);
10
17
  if (!isNative)
11
18
  return null;
12
19
  return (_jsxs(_Fragment, { children: [_jsx(PushNotification, {}), _jsx(AndroidRoutingHandler, {}), _jsx(AddSafeArea, {})] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.639",
3
+ "version": "0.0.640",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",
@@ -82,6 +82,7 @@
82
82
  "@capacitor/cli": "^7.4.3",
83
83
  "@capacitor/core": "^7.4.3",
84
84
  "@capacitor/push-notifications": "^7.0.2",
85
+ "@capacitor/splash-screen": "^7.0.2",
85
86
  "@date-fns/tz": "^1.2.0",
86
87
  "@greatsumini/react-facebook-login": "^3.4.0",
87
88
  "@mediapipe/tasks-vision": "0.10.22-rc.20250304",