create-crossbind 2.0.0-beta.63 → 2.0.0-beta.65

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 (37) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +7 -0
  3. package/src/manifest.json +8 -0
  4. package/src/readme.js +12 -0
  5. package/templates/backend-nodejs-native/package.json +3 -3
  6. package/templates/backend-nodejs-standalone/package.json +1 -1
  7. package/templates/backend-nodejs-wasm/package.json +2 -2
  8. package/templates/cloud-cloudflare-worker/package.json +2 -2
  9. package/templates/desktop-app/README.md +102 -0
  10. package/templates/desktop-app/_gitignore +3 -0
  11. package/templates/desktop-app/crossbind.config.js +17 -0
  12. package/templates/desktop-app/e2e/run.mjs +60 -0
  13. package/templates/desktop-app/index.html +11 -0
  14. package/templates/desktop-app/package.json +38 -0
  15. package/templates/desktop-app/src/main.js +15 -0
  16. package/templates/desktop-app/src/native/native.cpp +9 -0
  17. package/templates/desktop-app/src/native/native.h +12 -0
  18. package/templates/desktop-app/vite.config.js +6 -0
  19. package/templates/desktop-electron/package.json +3 -3
  20. package/templates/lib-cmake/package.json +1 -1
  21. package/templates/lib-prebuilt/README.md +1 -1
  22. package/templates/lib-prebuilt/package.json +2 -2
  23. package/templates/lib-source/package.json +1 -1
  24. package/templates/mobile-reactnative-cli/ci/crossbind-snapshot/cache.json +2 -2
  25. package/templates/mobile-reactnative-cli/package.json +16 -16
  26. package/templates/mobile-reactnative-expo/package-lock.json +1849 -2073
  27. package/templates/mobile-reactnative-expo/package.json +30 -30
  28. package/templates/mobile-reactnative-expo/src/components/animated-icon.tsx +1 -1
  29. package/templates/mobile-reactnative-expo/src/components/app-tabs.tsx +2 -2
  30. package/templates/mobile-reactnative-expo/src/components/app-tabs.web.tsx +1 -1
  31. package/templates/mobile-reactnative-expo/src/hooks/use-theme.ts +1 -1
  32. package/templates/native-executable/package.json +2 -2
  33. package/templates/web-react-rspack/package.json +3 -3
  34. package/templates/web-react-vite/package.json +2 -2
  35. package/templates/web-svelte-vite/package.json +2 -2
  36. package/templates/web-vanilla/package.json +2 -2
  37. package/templates/web-vue-vite/package.json +2 -2
@@ -23,39 +23,39 @@
23
23
  "e2e:android": "npm run run:android && npm run maestro:android"
24
24
  },
25
25
  "dependencies": {
26
- "@crossbind/core-embind-jsi": "2.0.0-beta.63",
27
- "@crossbind/plugin-react-native": "2.0.0-beta.63",
28
- "@crossbind/plugin-react-native-ios-helper": "2.0.0-beta.63",
29
- "@crossbind/example-lib-prebuilt-matrix": "2.0.0-beta.63",
30
- "hermes-compiler": "250829098.0.17",
31
- "expo": "~57.0.24",
32
- "expo-constants": "~57.0.19",
33
- "expo-device": "~57.0.2",
34
- "expo-font": "~57.0.4",
35
- "expo-glass-effect": "~57.0.3",
36
- "expo-image": "~57.0.5",
37
- "expo-linking": "~57.0.10",
38
- "expo-router": "~57.0.24",
39
- "expo-splash-screen": "~57.0.9",
40
- "expo-status-bar": "~57.0.1",
41
- "expo-symbols": "~57.0.3",
42
- "expo-system-ui": "~57.0.4",
43
- "expo-web-browser": "~57.0.3",
44
- "react": "19.2.3",
45
- "react-dom": "19.2.3",
46
- "react-native": "0.86.3",
47
- "react-native-gesture-handler": "~2.32.0",
48
- "react-native-reanimated": "4.5.1",
49
- "react-native-safe-area-context": "~5.7.0",
50
- "react-native-screens": "~4.26.0",
51
- "react-native-web": "~0.21.0",
52
- "react-native-worklets": "0.10.1"
26
+ "@crossbind/core-embind-jsi": "2.0.0-beta.65",
27
+ "@crossbind/plugin-react-native": "2.0.0-beta.65",
28
+ "@crossbind/plugin-react-native-ios-helper": "2.0.0-beta.65",
29
+ "@crossbind/example-lib-prebuilt-matrix": "2.0.0-beta.65",
30
+ "hermes-compiler": "260318099.0.4",
31
+ "expo": "~58.0.14",
32
+ "expo-constants": "~58.0.12",
33
+ "expo-device": "~58.0.5",
34
+ "expo-font": "~58.0.8",
35
+ "expo-glass-effect": "~58.0.4",
36
+ "expo-image": "~58.0.15",
37
+ "expo-linking": "~58.0.13",
38
+ "expo-router": "~58.0.23",
39
+ "expo-splash-screen": "~58.0.10",
40
+ "expo-status-bar": "~58.0.3",
41
+ "expo-symbols": "~58.0.4",
42
+ "expo-system-ui": "~58.0.6",
43
+ "expo-web-browser": "~58.0.6",
44
+ "react": "19.3.0",
45
+ "react-dom": "19.3.0",
46
+ "react-native": "0.88.0",
47
+ "react-native-gesture-handler": "~3.3.0",
48
+ "react-native-reanimated": "4.7.1",
49
+ "react-native-safe-area-context": "~5.10.1",
50
+ "react-native-screens": "~4.30.0",
51
+ "react-native-web": "~0.21.4",
52
+ "react-native-worklets": "0.13.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@types/react": "~19.2.18",
55
+ "@types/react": "~19.3.0",
56
56
  "typescript": "~6.0.3",
57
- "@crossbind/typescript-config": "2.0.0-beta.63",
58
- "@crossbind/plugin-metro": "2.0.0-beta.63"
57
+ "@crossbind/typescript-config": "2.0.0-beta.65",
58
+ "@crossbind/plugin-metro": "2.0.0-beta.65"
59
59
  },
60
60
  "overrides": {
61
61
  "uuid": "11.1.1",
@@ -125,7 +125,7 @@ const styles = StyleSheet.create({
125
125
  position: 'absolute',
126
126
  },
127
127
  backgroundSolidColor: {
128
- ...StyleSheet.absoluteFillObject,
128
+ ...StyleSheet.absoluteFill,
129
129
  backgroundColor: '#208AEF',
130
130
  zIndex: 1000,
131
131
  },
@@ -1,4 +1,4 @@
1
- import { NativeTabs } from 'expo-router/unstable-native-tabs';
1
+ import { NativeTabs } from 'expo-router/native-tabs';
2
2
  import React from 'react';
3
3
  import { useColorScheme } from 'react-native';
4
4
 
@@ -6,7 +6,7 @@ import { Colors } from '@/constants/theme';
6
6
 
7
7
  export default function AppTabs() {
8
8
  const scheme = useColorScheme();
9
- const colors = Colors[scheme === 'unspecified' ? 'light' : scheme];
9
+ const colors = Colors[scheme === 'dark' ? 'dark' : 'light'];
10
10
 
11
11
  return (
12
12
  <NativeTabs
@@ -50,7 +50,7 @@ export function TabButton({ children, isFocused, ...props }: TabTriggerSlotProps
50
50
 
51
51
  export function CustomTabList(props: TabListProps) {
52
52
  const scheme = useColorScheme();
53
- const colors = Colors[scheme === 'unspecified' ? 'light' : scheme];
53
+ const colors = Colors[scheme === 'dark' ? 'dark' : 'light'];
54
54
 
55
55
  return (
56
56
  <View {...props} style={styles.tabListContainer}>
@@ -8,7 +8,7 @@ import { useColorScheme } from '@/hooks/use-color-scheme';
8
8
 
9
9
  export function useTheme() {
10
10
  const scheme = useColorScheme();
11
- const theme = scheme === 'unspecified' ? 'light' : scheme;
11
+ const theme = scheme === 'dark' ? 'dark' : 'light';
12
12
 
13
13
  return Colors[theme];
14
14
  }
@@ -12,10 +12,10 @@
12
12
  "e2e:prod": "node e2e/run.mjs"
13
13
  },
14
14
  "dependencies": {
15
- "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.63"
15
+ "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.65"
16
16
  },
17
17
  "devDependencies": {
18
- "crossbind": "^2.0.0-beta.63"
18
+ "crossbind": "^2.0.0-beta.65"
19
19
  },
20
20
  "keywords": [
21
21
  "crossbind-sample",
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "react": "^19.3.0",
18
18
  "react-dom": "^19.3.0",
19
- "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.63"
19
+ "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.65"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@rspack/plugin-react-refresh": "^2.0.2",
@@ -29,8 +29,8 @@
29
29
  "react-refresh": "^0.19.0",
30
30
  "@playwright/test": "^1.63.0",
31
31
  "serve": "^14.2.6",
32
- "@crossbind/plugin-webpack": "^2.0.0-beta.63",
33
- "@crossbind/plugin-webpack-loader": "^2.0.0-beta.63"
32
+ "@crossbind/plugin-webpack": "^2.0.0-beta.65",
33
+ "@crossbind/plugin-webpack-loader": "^2.0.0-beta.65"
34
34
  },
35
35
  "keywords": [
36
36
  "crossbind-sample",
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "react": "^19.3.0",
20
20
  "react-dom": "^19.3.0",
21
- "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.63"
21
+ "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.65"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@eslint/js": "^10.0.1",
@@ -31,7 +31,7 @@
31
31
  "globals": "^17.12.0",
32
32
  "vite": "^8.2.1",
33
33
  "@playwright/test": "^1.63.0",
34
- "@crossbind/plugin-vite": "^2.0.0-beta.63"
34
+ "@crossbind/plugin-vite": "^2.0.0-beta.65"
35
35
  },
36
36
  "keywords": [
37
37
  "crossbind-sample",
@@ -15,14 +15,14 @@
15
15
  "e2e:prod": "playwright test --config playwright.prod.config.cjs"
16
16
  },
17
17
  "dependencies": {
18
- "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.63"
18
+ "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.65"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
22
22
  "svelte": "^5.57.1",
23
23
  "vite": "^8.2.1",
24
24
  "@playwright/test": "^1.63.0",
25
- "@crossbind/plugin-vite": "^2.0.0-beta.63"
25
+ "@crossbind/plugin-vite": "^2.0.0-beta.65"
26
26
  },
27
27
  "keywords": [
28
28
  "crossbind-sample",
@@ -12,10 +12,10 @@
12
12
  "e2e:prod": "playwright test --config playwright.prod.config.cjs"
13
13
  },
14
14
  "dependencies": {
15
- "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.63"
15
+ "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.65"
16
16
  },
17
17
  "devDependencies": {
18
- "crossbind": "^2.0.0-beta.63",
18
+ "crossbind": "^2.0.0-beta.65",
19
19
  "serve": "^14.2.6",
20
20
  "@playwright/test": "^1.63.0"
21
21
  },
@@ -16,13 +16,13 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "vue": "^3.5.43",
19
- "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.63"
19
+ "@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.65"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@vitejs/plugin-vue": "^6.0.9",
23
23
  "vite": "^8.2.1",
24
24
  "@playwright/test": "^1.63.0",
25
- "@crossbind/plugin-vite": "^2.0.0-beta.63"
25
+ "@crossbind/plugin-vite": "^2.0.0-beta.65"
26
26
  },
27
27
  "keywords": [
28
28
  "crossbind-sample",