@symbiote-native/clipboard 1.0.0 → 3.0.0
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/README.md +9 -6
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -15,6 +15,10 @@ mount/unmount lifecycle (`useClipboard`).
|
|
|
15
15
|
npm install @symbiote-native/clipboard
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
Scaffolding or extending a SymbioteNative app? `npx @symbiote-native/cli new --clipboard` (or
|
|
19
|
+
`add --clipboard` in an existing app) installs and wires this for you — see
|
|
20
|
+
[`@symbiote-native/cli`](../cli).
|
|
21
|
+
|
|
18
22
|
Depends on `expo-clipboard` and `expo-modules-core` directly (regular dependencies, pinned to an
|
|
19
23
|
exact version — never a caret range, since this package's `core/` is hand-ported against one
|
|
20
24
|
specific native API shape and a newer resolve could silently drift the two apart). Never install
|
|
@@ -93,7 +97,7 @@ function ClipboardScreen() {
|
|
|
93
97
|
const handleCopy = (input: string) =>
|
|
94
98
|
setStringAsync(input).then(() => getStringAsync().then(setText));
|
|
95
99
|
|
|
96
|
-
return <
|
|
100
|
+
return <text>{text ?? 'checking…'}</text>;
|
|
97
101
|
}
|
|
98
102
|
```
|
|
99
103
|
|
|
@@ -122,7 +126,7 @@ function handleCopy(input: string): void {
|
|
|
122
126
|
}
|
|
123
127
|
</script>
|
|
124
128
|
<template>
|
|
125
|
-
<
|
|
129
|
+
<text>{{ text }}</text>
|
|
126
130
|
</template>
|
|
127
131
|
```
|
|
128
132
|
|
|
@@ -151,7 +155,7 @@ function handleCopy(input: string): void {
|
|
|
151
155
|
}
|
|
152
156
|
</script>
|
|
153
157
|
|
|
154
|
-
<
|
|
158
|
+
<text>{text}</text>
|
|
155
159
|
```
|
|
156
160
|
|
|
157
161
|
```tsx
|
|
@@ -173,10 +177,9 @@ function ClipboardScreen() {
|
|
|
173
177
|
if (clipboardEvent() !== null) refresh();
|
|
174
178
|
});
|
|
175
179
|
|
|
176
|
-
const handleCopy = (input: string) =>
|
|
177
|
-
setStringAsync(input).then(refresh);
|
|
180
|
+
const handleCopy = (input: string) => setStringAsync(input).then(refresh);
|
|
178
181
|
|
|
179
|
-
return <
|
|
182
|
+
return <text>{text()}</text>;
|
|
180
183
|
}
|
|
181
184
|
```
|
|
182
185
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/clipboard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "expo-clipboard wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, Svelte, Solid, and Angular adapters. Reads and writes clipboard text, URLs, and images, plus a clipboard-change listener.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"solid-js": ">=1.9.0",
|
|
81
81
|
"svelte": ">=5.56.0",
|
|
82
82
|
"vue": ">=3.5.0",
|
|
83
|
-
"@symbiote-native/angular": "^
|
|
84
|
-
"@symbiote-native/engine": "^0.
|
|
85
|
-
"@symbiote-native/react": "^
|
|
86
|
-
"@symbiote-native/solid": "^
|
|
87
|
-
"@symbiote-native/svelte": "^
|
|
88
|
-
"@symbiote-native/vue": "^
|
|
83
|
+
"@symbiote-native/angular": "^3.0.0",
|
|
84
|
+
"@symbiote-native/engine": "^1.0.0",
|
|
85
|
+
"@symbiote-native/react": "^3.0.0",
|
|
86
|
+
"@symbiote-native/solid": "^3.0.0",
|
|
87
|
+
"@symbiote-native/svelte": "^3.0.0",
|
|
88
|
+
"@symbiote-native/vue": "^3.0.0"
|
|
89
89
|
},
|
|
90
90
|
"peerDependenciesMeta": {
|
|
91
91
|
"@symbiote-native/angular": {
|
|
@@ -133,13 +133,13 @@
|
|
|
133
133
|
"solid-js": "^1.9.14",
|
|
134
134
|
"svelte": "^5.56.0",
|
|
135
135
|
"typescript": "~6.0.0",
|
|
136
|
-
"@symbiote-native/angular": "
|
|
137
|
-
"@symbiote-native/engine": "0.
|
|
138
|
-
"@symbiote-native/react": "
|
|
139
|
-
"@symbiote-native/solid": "
|
|
140
|
-
"@symbiote-native/svelte": "
|
|
141
|
-
"@symbiote-native/test-utils": "0.3.
|
|
142
|
-
"@symbiote-native/vue": "
|
|
136
|
+
"@symbiote-native/angular": "3.0.0",
|
|
137
|
+
"@symbiote-native/engine": "1.0.0",
|
|
138
|
+
"@symbiote-native/react": "3.0.0",
|
|
139
|
+
"@symbiote-native/solid": "3.0.0",
|
|
140
|
+
"@symbiote-native/svelte": "3.0.0",
|
|
141
|
+
"@symbiote-native/test-utils": "0.3.1",
|
|
142
|
+
"@symbiote-native/vue": "3.0.0"
|
|
143
143
|
},
|
|
144
144
|
"scripts": {
|
|
145
145
|
"typecheck": "tsc --build",
|