@buoy-gg/shared-ui 2.1.4-beta.2 → 2.1.4
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/lib/commonjs/clipboard/clipboard-impl.js +4 -4
- package/lib/commonjs/hooks/safe-area-impl.js +1 -1
- package/lib/module/clipboard/clipboard-impl.js +4 -4
- package/lib/module/hooks/safe-area-impl.js +1 -1
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/package.json +4 -4
- package/scripts/detect-clipboard.js +2 -2
|
@@ -28,12 +28,12 @@ exports.isClipboardAvailable = exports.clipboardType = exports.clipboardFunction
|
|
|
28
28
|
let _expoClipboard = null;
|
|
29
29
|
try {
|
|
30
30
|
_expoClipboard = require("expo-clipboard");
|
|
31
|
-
} catch {}
|
|
31
|
+
} catch {/* not installed */}
|
|
32
32
|
let _rnClipboard = null;
|
|
33
33
|
try {
|
|
34
34
|
const mod = require("@react-native-clipboard/clipboard");
|
|
35
35
|
_rnClipboard = mod.default || mod;
|
|
36
|
-
} catch {}
|
|
36
|
+
} catch {/* not installed */}
|
|
37
37
|
|
|
38
38
|
// Lazy detection: resolved on first clipboardFunction() call
|
|
39
39
|
let _detectedType = null;
|
|
@@ -51,7 +51,7 @@ async function detect(text) {
|
|
|
51
51
|
};
|
|
52
52
|
_detected = true;
|
|
53
53
|
return true;
|
|
54
|
-
} catch {}
|
|
54
|
+
} catch {/* expo-clipboard not functional */}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// 2. Try @react-native-clipboard/clipboard
|
|
@@ -65,7 +65,7 @@ async function detect(text) {
|
|
|
65
65
|
};
|
|
66
66
|
_detected = true;
|
|
67
67
|
return true;
|
|
68
|
-
} catch {}
|
|
68
|
+
} catch {/* rn-clipboard not functional */}
|
|
69
69
|
}
|
|
70
70
|
_detected = true;
|
|
71
71
|
return false;
|
|
@@ -7,7 +7,7 @@ exports.useNativeSafeAreaInsets = exports.safeAreaType = exports.hasSafeAreaPack
|
|
|
7
7
|
/**
|
|
8
8
|
* Auto-generated safe area implementation
|
|
9
9
|
* Detected: none
|
|
10
|
-
* Generated at: 2026-02-
|
|
10
|
+
* Generated at: 2026-02-12T09:56:31.164Z
|
|
11
11
|
*
|
|
12
12
|
* DO NOT EDIT - This file is generated by scripts/detect-safe-area.js
|
|
13
13
|
*
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
let _expoClipboard = null;
|
|
25
25
|
try {
|
|
26
26
|
_expoClipboard = require("expo-clipboard");
|
|
27
|
-
} catch {}
|
|
27
|
+
} catch {/* not installed */}
|
|
28
28
|
let _rnClipboard = null;
|
|
29
29
|
try {
|
|
30
30
|
const mod = require("@react-native-clipboard/clipboard");
|
|
31
31
|
_rnClipboard = mod.default || mod;
|
|
32
|
-
} catch {}
|
|
32
|
+
} catch {/* not installed */}
|
|
33
33
|
|
|
34
34
|
// Lazy detection: resolved on first clipboardFunction() call
|
|
35
35
|
let _detectedType = null;
|
|
@@ -47,7 +47,7 @@ async function detect(text) {
|
|
|
47
47
|
};
|
|
48
48
|
_detected = true;
|
|
49
49
|
return true;
|
|
50
|
-
} catch {}
|
|
50
|
+
} catch {/* expo-clipboard not functional */}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// 2. Try @react-native-clipboard/clipboard
|
|
@@ -61,7 +61,7 @@ async function detect(text) {
|
|
|
61
61
|
};
|
|
62
62
|
_detected = true;
|
|
63
63
|
return true;
|
|
64
|
-
} catch {}
|
|
64
|
+
} catch {/* rn-clipboard not functional */}
|
|
65
65
|
}
|
|
66
66
|
_detected = true;
|
|
67
67
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/shared-ui",
|
|
3
|
-
"version": "2.1.4
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "Shared UI components, hooks, and utilities",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -115,10 +115,10 @@
|
|
|
115
115
|
],
|
|
116
116
|
"sideEffects": false,
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@buoy-gg/floating-tools-core": "2.1.4
|
|
118
|
+
"@buoy-gg/floating-tools-core": "2.1.4"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
|
-
"@buoy-gg/license": "2.1.4
|
|
121
|
+
"@buoy-gg/license": "2.1.4",
|
|
122
122
|
"@react-native-clipboard/clipboard": "*",
|
|
123
123
|
"expo-clipboard": "*",
|
|
124
124
|
"expo-file-system": "*",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"expo-clipboard": "~7.1.5",
|
|
147
147
|
"react-native-safe-area-context": "^5.6.2",
|
|
148
148
|
"typescript": "~5.8.3",
|
|
149
|
-
"@buoy-gg/license": "2.1.4
|
|
149
|
+
"@buoy-gg/license": "2.1.4"
|
|
150
150
|
},
|
|
151
151
|
"react-native-builder-bob": {
|
|
152
152
|
"source": "src",
|
|
@@ -67,13 +67,13 @@ function moduleExists(name) {
|
|
|
67
67
|
try {
|
|
68
68
|
require.resolve(name);
|
|
69
69
|
return true;
|
|
70
|
-
} catch {}
|
|
70
|
+
} catch { /* not installed */ }
|
|
71
71
|
const additionalPaths = getAdditionalSearchPaths();
|
|
72
72
|
if (additionalPaths.length > 0) {
|
|
73
73
|
try {
|
|
74
74
|
require.resolve(name, { paths: additionalPaths });
|
|
75
75
|
return true;
|
|
76
|
-
} catch {}
|
|
76
|
+
} catch { /* not installed */ }
|
|
77
77
|
}
|
|
78
78
|
return false;
|
|
79
79
|
}
|