@symbiote-native/keep-awake 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 -4
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -17,6 +17,10 @@ depended on directly and never the `expo` meta-package, why the upstream JS is h
|
|
|
17
17
|
npm install @symbiote-native/keep-awake
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
Scaffolding or extending a SymbioteNative app? `npx @symbiote-native/cli new --keep-awake` (or
|
|
21
|
+
`add --keep-awake` in an existing app) installs and wires this for you — see
|
|
22
|
+
[`@symbiote-native/cli`](../cli).
|
|
23
|
+
|
|
20
24
|
Depends on `expo-keep-awake` and `expo-modules-core` directly (regular dependencies, pinned to
|
|
21
25
|
exact versions — never a caret range, since this package's `core/` is hand-ported against one
|
|
22
26
|
specific native API shape and a newer resolve could silently drift the two apart). Never install
|
|
@@ -84,7 +88,7 @@ import { useKeepAwake } from '@symbiote-native/keep-awake/react';
|
|
|
84
88
|
function KeepAwakeScreen() {
|
|
85
89
|
useKeepAwake(); // screen stays on for as long as this component is mounted
|
|
86
90
|
|
|
87
|
-
return <
|
|
91
|
+
return <text>Screen will not sleep</text>;
|
|
88
92
|
}
|
|
89
93
|
```
|
|
90
94
|
|
|
@@ -96,7 +100,7 @@ import { useKeepAwake } from '@symbiote-native/keep-awake/vue';
|
|
|
96
100
|
useKeepAwake();
|
|
97
101
|
</script>
|
|
98
102
|
<template>
|
|
99
|
-
<
|
|
103
|
+
<text>Screen will not sleep</text>
|
|
100
104
|
</template>
|
|
101
105
|
```
|
|
102
106
|
|
|
@@ -107,7 +111,8 @@ useKeepAwake();
|
|
|
107
111
|
|
|
108
112
|
useKeepAwake(); // screen stays on for as long as this component is mounted
|
|
109
113
|
</script>
|
|
110
|
-
|
|
114
|
+
|
|
115
|
+
<text>Screen will not sleep</text>
|
|
111
116
|
```
|
|
112
117
|
|
|
113
118
|
```tsx
|
|
@@ -117,7 +122,7 @@ import { createKeepAwake } from '@symbiote-native/keep-awake/solid';
|
|
|
117
122
|
function KeepAwakeScreen() {
|
|
118
123
|
createKeepAwake(); // activates in the primitive body, releases via onCleanup on dispose
|
|
119
124
|
|
|
120
|
-
return <
|
|
125
|
+
return <text>Screen will not sleep</text>;
|
|
121
126
|
}
|
|
122
127
|
```
|
|
123
128
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/keep-awake",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "expo-keep-awake wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, Svelte, Solid, and Angular adapters. Keeps the screen awake for the lifetime of a mounted component/composable/service, with an optional listener for keep-awake state changes.",
|
|
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",
|