@limrun/ui 0.4.0-rc.8 → 0.4.0-rc.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limrun/ui",
3
- "version": "0.4.0-rc.8",
3
+ "version": "0.4.0-rc.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
Binary file
Binary file
@@ -9,6 +9,7 @@ import pixelFrameImage from '../assets/pixel9_black.webp';
9
9
  import pixelFrameImageLandscape from '../assets/pixel9_black_landscape.webp';
10
10
  import iphoneFrameImageLandscape from '../assets/iphone16pro_black_landscape.webp';
11
11
  import appleLogoSvg from '../assets/Apple_logo_white.svg';
12
+ import androidBootImage from '../assets/android_boot.webp';
12
13
  import {
13
14
  createTouchControlMessage,
14
15
  createInjectKeycodeMessage,
@@ -98,13 +99,15 @@ const deviceConfig = {
98
99
  frameWidthMultiplier: 1.0841,
99
100
  videoBorderRadiusMultiplier: 0.15,
100
101
  loadingLogo: appleLogoSvg,
102
+ loadingLogoSize: '20%',
101
103
  },
102
104
  android: {
103
105
  frameImage: pixelFrameImage,
104
106
  frameImageLandscape: pixelFrameImageLandscape,
105
107
  frameWidthMultiplier: 1.107,
106
108
  videoBorderRadiusMultiplier: 0.13,
107
- loadingLogo: undefined,
109
+ loadingLogo: androidBootImage,
110
+ loadingLogoSize: '40%',
108
111
  },
109
112
  };
110
113
 
@@ -962,7 +965,7 @@ export const RemoteControl = forwardRef<RemoteControlHandle, RemoteControlProps>
962
965
  backgroundImage: `url("${config.loadingLogo}")`,
963
966
  backgroundRepeat: 'no-repeat',
964
967
  backgroundPosition: 'center',
965
- backgroundSize: '20%',
968
+ backgroundSize: config.loadingLogoSize,
966
969
  }
967
970
  : {}
968
971
  }
package/src/demo.tsx CHANGED
@@ -3,8 +3,8 @@ import { createRoot } from 'react-dom/client';
3
3
  import { RemoteControl, RemoteControlHandle } from './components/remote-control';
4
4
 
5
5
  function Demo() {
6
- const [url, setUrl] = useState('wss://eu-hel1-5-staging.limrun.dev/v1/ios_eustg_01kd7xz7wnecrr3qtc0mp9pyb4/endpointWebSocket');
7
- const [token, setToken] = useState('lim_e38efd8b6b38733e268514a866e7b568d1bdc106632bfc9f');
6
+ const [url, setUrl] = useState('wss://eu-hel1-5-staging.limrun.dev/v1/android_eustg_01kd887q1vedb9nt1xkp0s1nan/endpointWebSocket');
7
+ const [token, setToken] = useState('lim_6ffd2b5de18c6dcc59e047b7b8d923024fb45d59c802ca5d');
8
8
  const [platform, setPlatform] = useState<'ios' | 'android'>('ios');
9
9
  const [isConnected, setIsConnected] = useState(false);
10
10
  const [key, setKey] = useState(0);