@tak-ps/cloudtak 13.52.1 → 13.53.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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform charging-state source for the "Charging" wake lock mode.
|
|
3
|
+
* Native uses `@capacitor/device` (imported lazily, polled); web uses the
|
|
4
|
+
* `navigator.getBattery()` Battery Status API where available.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BatteryStatus {
|
|
7
|
+
private pollTimer;
|
|
8
|
+
private webBattery;
|
|
9
|
+
private webListener;
|
|
10
|
+
isCharging(): Promise<boolean>;
|
|
11
|
+
watch(onChange: (charging: boolean) => void): Promise<void>;
|
|
12
|
+
unwatch(): Promise<void>;
|
|
13
|
+
private webBatteryManager;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Feature } from '../../types.ts';
|
|
2
|
+
export declare function copyFeatureToClipboard(feat: Feature): Promise<void>;
|
|
3
|
+
export type ClipboardReadAccess = 'granted' | 'prompt' | 'denied';
|
|
4
|
+
/**
|
|
5
|
+
* Whether the clipboard can be read, and if so whether reading it will first
|
|
6
|
+
* surface browser UI (a permission dialog in Chromium, a "Paste" confirmation
|
|
7
|
+
* popup in Firefox). Callers should only read speculatively - eg. to decide
|
|
8
|
+
* whether to offer a paste action - when access is 'granted'.
|
|
9
|
+
*/
|
|
10
|
+
export declare function clipboardReadAccess(): Promise<ClipboardReadAccess>;
|
|
11
|
+
export declare function readFeatureFromClipboard(): Promise<Feature | null>;
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import type { DevicePermissionContext } from './types.ts';
|
|
2
|
+
export type WakeLockMode = 'Default' | 'Charging' | 'Always On';
|
|
3
|
+
/**
|
|
4
|
+
* Coerce a stored preference (which may be a stale or corrupt value from an
|
|
5
|
+
* older client) to a known mode. Falls back to "Charging" to match the
|
|
6
|
+
* server-side profile default (api/stateless/lib/control/profile.ts).
|
|
7
|
+
*/
|
|
8
|
+
export declare function coerceWakeLockMode(value: unknown): WakeLockMode;
|
|
2
9
|
export declare class WakeLockPermission {
|
|
3
10
|
private readonly context;
|
|
11
|
+
private readonly battery;
|
|
12
|
+
private mode;
|
|
4
13
|
constructor(context: DevicePermissionContext);
|
|
14
|
+
/**
|
|
15
|
+
* Apply the user's wake lock display preference. "Always On" holds the
|
|
16
|
+
* screen awake for the session, "Charging" only while the device is
|
|
17
|
+
* charging, "Default" lets the OS sleep the screen normally.
|
|
18
|
+
*/
|
|
19
|
+
applyPreference(mode: unknown): Promise<void>;
|
|
20
|
+
teardown(): Promise<void>;
|
|
21
|
+
private onChargingChange;
|
|
22
|
+
private acquire;
|
|
5
23
|
refreshStatus(): Promise<void>;
|
|
6
24
|
request(): Promise<void>;
|
|
7
25
|
releaseSentinel(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tak-ps/cloudtak",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "13.
|
|
4
|
+
"version": "13.53.0",
|
|
5
5
|
"types": "dist/types/plugin.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/types"
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"@capacitor/camera": "^8.2.0",
|
|
38
38
|
"@capacitor/clipboard": "^8.0.1",
|
|
39
39
|
"@capacitor/core": "^8.3.1",
|
|
40
|
+
"@capacitor/device": "^8.0.3",
|
|
40
41
|
"@capacitor/geolocation": "^8.1.0",
|
|
41
42
|
"@capacitor/haptics": "^8.0.2",
|
|
42
43
|
"@capacitor/keyboard": "^8.0.3",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
label: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
modelValue: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
required: true;
|
|
9
|
-
description: string;
|
|
10
|
-
};
|
|
11
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
-
label: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
modelValue: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
required: true;
|
|
19
|
-
description: string;
|
|
20
|
-
};
|
|
21
|
-
}>> & Readonly<{}>, {
|
|
22
|
-
label: string;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
|
-
declare const _default: typeof __VLS_export;
|
|
25
|
-
export default _default;
|