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.
- package/package.json +1 -1
- package/src/index.js +7 -0
- package/src/manifest.json +8 -0
- package/src/readme.js +12 -0
- package/templates/backend-nodejs-native/package.json +3 -3
- package/templates/backend-nodejs-standalone/package.json +1 -1
- package/templates/backend-nodejs-wasm/package.json +2 -2
- package/templates/cloud-cloudflare-worker/package.json +2 -2
- package/templates/desktop-app/README.md +102 -0
- package/templates/desktop-app/_gitignore +3 -0
- package/templates/desktop-app/crossbind.config.js +17 -0
- package/templates/desktop-app/e2e/run.mjs +60 -0
- package/templates/desktop-app/index.html +11 -0
- package/templates/desktop-app/package.json +38 -0
- package/templates/desktop-app/src/main.js +15 -0
- package/templates/desktop-app/src/native/native.cpp +9 -0
- package/templates/desktop-app/src/native/native.h +12 -0
- package/templates/desktop-app/vite.config.js +6 -0
- package/templates/desktop-electron/package.json +3 -3
- package/templates/lib-cmake/package.json +1 -1
- package/templates/lib-prebuilt/README.md +1 -1
- package/templates/lib-prebuilt/package.json +2 -2
- package/templates/lib-source/package.json +1 -1
- package/templates/mobile-reactnative-cli/ci/crossbind-snapshot/cache.json +2 -2
- package/templates/mobile-reactnative-cli/package.json +16 -16
- package/templates/mobile-reactnative-expo/package-lock.json +1849 -2073
- package/templates/mobile-reactnative-expo/package.json +30 -30
- package/templates/mobile-reactnative-expo/src/components/animated-icon.tsx +1 -1
- package/templates/mobile-reactnative-expo/src/components/app-tabs.tsx +2 -2
- package/templates/mobile-reactnative-expo/src/components/app-tabs.web.tsx +1 -1
- package/templates/mobile-reactnative-expo/src/hooks/use-theme.ts +1 -1
- package/templates/native-executable/package.json +2 -2
- package/templates/web-react-rspack/package.json +3 -3
- package/templates/web-react-vite/package.json +2 -2
- package/templates/web-svelte-vite/package.json +2 -2
- package/templates/web-vanilla/package.json +2 -2
- 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.
|
|
27
|
-
"@crossbind/plugin-react-native": "2.0.0-beta.
|
|
28
|
-
"@crossbind/plugin-react-native-ios-helper": "2.0.0-beta.
|
|
29
|
-
"@crossbind/example-lib-prebuilt-matrix": "2.0.0-beta.
|
|
30
|
-
"hermes-compiler": "
|
|
31
|
-
"expo": "~
|
|
32
|
-
"expo-constants": "~
|
|
33
|
-
"expo-device": "~
|
|
34
|
-
"expo-font": "~
|
|
35
|
-
"expo-glass-effect": "~
|
|
36
|
-
"expo-image": "~
|
|
37
|
-
"expo-linking": "~
|
|
38
|
-
"expo-router": "~
|
|
39
|
-
"expo-splash-screen": "~
|
|
40
|
-
"expo-status-bar": "~
|
|
41
|
-
"expo-symbols": "~
|
|
42
|
-
"expo-system-ui": "~
|
|
43
|
-
"expo-web-browser": "~
|
|
44
|
-
"react": "19.
|
|
45
|
-
"react-dom": "19.
|
|
46
|
-
"react-native": "0.
|
|
47
|
-
"react-native-gesture-handler": "~
|
|
48
|
-
"react-native-reanimated": "4.
|
|
49
|
-
"react-native-safe-area-context": "~5.
|
|
50
|
-
"react-native-screens": "~4.
|
|
51
|
-
"react-native-web": "~0.21.
|
|
52
|
-
"react-native-worklets": "0.
|
|
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.
|
|
55
|
+
"@types/react": "~19.3.0",
|
|
56
56
|
"typescript": "~6.0.3",
|
|
57
|
-
"@crossbind/typescript-config": "2.0.0-beta.
|
|
58
|
-
"@crossbind/plugin-metro": "2.0.0-beta.
|
|
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",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NativeTabs } from 'expo-router/
|
|
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 === '
|
|
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 === '
|
|
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 === '
|
|
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.
|
|
15
|
+
"@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.65"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"crossbind": "^2.0.0-beta.
|
|
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.
|
|
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.
|
|
33
|
-
"@crossbind/plugin-webpack-loader": "^2.0.0-beta.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
15
|
+
"@crossbind/example-lib-prebuilt-matrix": "^2.0.0-beta.65"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"crossbind": "^2.0.0-beta.
|
|
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.
|
|
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.
|
|
25
|
+
"@crossbind/plugin-vite": "^2.0.0-beta.65"
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
|
28
28
|
"crossbind-sample",
|