@ng-native/device 0.15.0 → 0.17.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/dist/conditions.d.ts +3 -2
- package/dist/conditions.js +10 -3
- package/dist/conditions.js.map +1 -1
- package/dist/deep-links.d.ts +5 -0
- package/dist/deep-links.js +7 -0
- package/dist/deep-links.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/keyboard.d.ts +42 -8
- package/dist/keyboard.js +27 -5
- package/dist/keyboard.js.map +1 -1
- package/dist/merge-claims.d.ts +6 -0
- package/dist/merge-claims.js +16 -0
- package/dist/merge-claims.js.map +1 -0
- package/dist/native-history.d.ts +8 -0
- package/dist/native-history.js +9 -0
- package/dist/native-history.js.map +1 -0
- package/dist/navigation-bar.d.ts +6 -12
- package/dist/navigation-bar.js +69 -31
- package/dist/navigation-bar.js.map +1 -1
- package/dist/status-bar.d.ts +7 -15
- package/dist/status-bar.js +72 -37
- package/dist/status-bar.js.map +1 -1
- package/dist/window-claims.d.ts +70 -0
- package/dist/window-claims.js +132 -0
- package/dist/window-claims.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What an app claims of the window: the status bar, the navigation bar, keep-awake, the orientation
|
|
3
|
+
* lock, the brightness, screen capture.
|
|
4
|
+
*
|
|
5
|
+
* The window is the runtime's, not an app's. Android recreates an activity after a configuration
|
|
6
|
+
* change it does not handle, a font size change among them: it mounts the new app on a new surface
|
|
7
|
+
* and only then stops the old one. Claims kept per app would let the old app, going after the new
|
|
8
|
+
* one has claimed, put the window back to the platform's own under the new app. So every app's
|
|
9
|
+
* claims for one native module are kept together, in one stack per module, as React Native keeps
|
|
10
|
+
* its own status bar's, and an app's claims leave with it.
|
|
11
|
+
*
|
|
12
|
+
* The window an app writes to can also be a new one: the recreated activity starts at the
|
|
13
|
+
* platform's own, and a call that comes while no activity is current is dropped. So a source tells
|
|
14
|
+
* its stack when a window comes to the front, and the stack writes the whole of it again.
|
|
15
|
+
*/
|
|
16
|
+
import { computed, signal, untracked } from '@angular/core';
|
|
17
|
+
import { reactNative } from "./react-native.js";
|
|
18
|
+
/**
|
|
19
|
+
* Every app's claims on one native module. An app's base claim is under its own pushed ones, and
|
|
20
|
+
* an app's claims are under those of an app that claimed after it first did.
|
|
21
|
+
*/
|
|
22
|
+
export class WindowClaims {
|
|
23
|
+
groups = signal([], /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []));
|
|
25
|
+
/** Every claim, the one in force last. */
|
|
26
|
+
all = computed(() => this.groups().flatMap((group) => (group.base ? [group.base, ...group.pushed] : group.pushed)), /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "all" }] : /* istanbul ignore next */ []));
|
|
28
|
+
/** The claim in force last that passes `test`. */
|
|
29
|
+
last(test) {
|
|
30
|
+
const all = this.all();
|
|
31
|
+
for (let at = all.length - 1; at >= 0; at--)
|
|
32
|
+
if (test(all[at].value))
|
|
33
|
+
return all[at];
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
/** The apps with claims, the one that claimed first first. */
|
|
37
|
+
owners = computed(() => this.groups().map((group) => group.owner), /* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "owners" }] : /* istanbul ignore next */ []));
|
|
39
|
+
/** `owner`'s base claim, replacing the one it had. */
|
|
40
|
+
setBase(owner, value) {
|
|
41
|
+
this.update(owner, (group) => ({ ...group, base: { value, owner } }));
|
|
42
|
+
}
|
|
43
|
+
/** A claim of `owner`'s on top of its others. Call the returned function to drop it. */
|
|
44
|
+
push(owner, value) {
|
|
45
|
+
const claim = { value, owner };
|
|
46
|
+
this.update(owner, (group) => ({ ...group, pushed: [...group.pushed, claim] }));
|
|
47
|
+
return () => this.groups.update((groups) => groups.map((group) => group.owner === owner
|
|
48
|
+
? { ...group, pushed: group.pushed.filter((one) => one !== claim) }
|
|
49
|
+
: group));
|
|
50
|
+
}
|
|
51
|
+
/** Every app's claims. */
|
|
52
|
+
clear() {
|
|
53
|
+
this.groups.set([]);
|
|
54
|
+
}
|
|
55
|
+
/** Every claim of `owner`'s, for an app that goes. */
|
|
56
|
+
drop(owner) {
|
|
57
|
+
this.groups.update((groups) => groups.filter((group) => group.owner !== owner));
|
|
58
|
+
}
|
|
59
|
+
update(owner, change) {
|
|
60
|
+
this.groups.update((groups) => {
|
|
61
|
+
const at = groups.findIndex((group) => group.owner === owner);
|
|
62
|
+
if (at === -1)
|
|
63
|
+
return [...groups, change({ owner, base: undefined, pushed: [] })];
|
|
64
|
+
return groups.map((group, index) => (index === at ? change(group) : group));
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/** The one stack, or whatever a module keeps for its window, for each native module. */
|
|
69
|
+
const shared = new WeakMap();
|
|
70
|
+
const ABSENT = {};
|
|
71
|
+
/**
|
|
72
|
+
* What every app on `source` shares, made the first time one asks. `source` is the native module
|
|
73
|
+
* the app writes through, or null for one that is not there.
|
|
74
|
+
*/
|
|
75
|
+
export function sharedBySource(source, create) {
|
|
76
|
+
const key = source ?? ABSENT;
|
|
77
|
+
if (!shared.has(key))
|
|
78
|
+
shared.set(key, create());
|
|
79
|
+
return shared.get(key);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Android: calls `listener` each time an activity comes to the front, a recreated one included,
|
|
83
|
+
* which starts with the platform's own window. Answers the function that stops listening. Nothing
|
|
84
|
+
* on iOS, where a window keeps what it was given.
|
|
85
|
+
*/
|
|
86
|
+
export function onWindowFront(listener) {
|
|
87
|
+
const native = reactNative();
|
|
88
|
+
if (native?.Platform?.OS !== 'android')
|
|
89
|
+
return () => { };
|
|
90
|
+
const subscription = native.AppState.addEventListener('change', (state) => {
|
|
91
|
+
if (state === 'active')
|
|
92
|
+
listener();
|
|
93
|
+
});
|
|
94
|
+
return () => subscription.remove();
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A window setting only the top claim decides, such as the orientation lock: every app's claims,
|
|
98
|
+
* the one claimed last in force, and the platform's own when none is left.
|
|
99
|
+
*/
|
|
100
|
+
export class TopClaim {
|
|
101
|
+
claims = new WindowClaims();
|
|
102
|
+
/** The claim the platform was last given, so a claim under it changes nothing. */
|
|
103
|
+
sent;
|
|
104
|
+
put;
|
|
105
|
+
putBack;
|
|
106
|
+
constructor(put, putBack, onFront) {
|
|
107
|
+
this.put = put;
|
|
108
|
+
this.putBack = putBack;
|
|
109
|
+
// Lives as long as the module, which is the runtime's.
|
|
110
|
+
onFront?.(() => {
|
|
111
|
+
if (this.sent)
|
|
112
|
+
this.put(this.sent.value);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/** Tell the platform, if the claim in force is not the one it was last given. */
|
|
116
|
+
apply() {
|
|
117
|
+
const top = untracked(this.claims.all).at(-1);
|
|
118
|
+
if (top === this.sent)
|
|
119
|
+
return;
|
|
120
|
+
this.sent = top;
|
|
121
|
+
if (top)
|
|
122
|
+
this.put(top.value);
|
|
123
|
+
else
|
|
124
|
+
this.putBack();
|
|
125
|
+
}
|
|
126
|
+
/** Every app's claims, and the platform's own back. */
|
|
127
|
+
clear() {
|
|
128
|
+
this.claims.clear();
|
|
129
|
+
this.sent = undefined;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=window-claims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window-claims.js","sourceRoot":"","sources":["../src/window-claims.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAe,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAchD;;;GAGG;AACH,MAAM,OAAO,YAAY;IACN,MAAM,GAAG,MAA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O,CAAa;IAErC,YACE,GAAuB,EACvB,OAAmB,EACnB,OAA8C;QAE9C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,uDAAuD;QACvD,OAAO,EAAE,CAAC,GAAG,EAAE;YACb,IAAI,IAAI,CAAC,IAAI;gBAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;IACL,CAAC;IAED,iFAAiF;IACjF,KAAK;QACH,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAC9C,IAAI,GAAG,KAAK,IAAI,CAAC,IAAI;YAAE,OAAO;QAC9B,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,GAAG;YAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;;YACxB,IAAI,CAAC,OAAO,EAAE,CAAC;IACtB,CAAC;IAED,uDAAuD;IACvD,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;IACxB,CAAC;CACF","sourcesContent":["/**\n * What an app claims of the window: the status bar, the navigation bar, keep-awake, the orientation\n * lock, the brightness, screen capture.\n *\n * The window is the runtime's, not an app's. Android recreates an activity after a configuration\n * change it does not handle, a font size change among them: it mounts the new app on a new surface\n * and only then stops the old one. Claims kept per app would let the old app, going after the new\n * one has claimed, put the window back to the platform's own under the new app. So every app's\n * claims for one native module are kept together, in one stack per module, as React Native keeps\n * its own status bar's, and an app's claims leave with it.\n *\n * The window an app writes to can also be a new one: the recreated activity starts at the\n * platform's own, and a call that comes while no activity is current is dropped. So a source tells\n * its stack when a window comes to the front, and the stack writes the whole of it again.\n */\nimport { computed, signal, untracked, type Signal } from '@angular/core';\nimport { reactNative } from './react-native.ts';\n\n/** One claim, and the app it came from. */\nexport interface Claim<T, O = unknown> {\n readonly value: T;\n readonly owner: O;\n}\n\ninterface Group<T, O> {\n readonly owner: O;\n readonly base: Claim<T, O> | undefined;\n readonly pushed: readonly Claim<T, O>[];\n}\n\n/**\n * Every app's claims on one native module. An app's base claim is under its own pushed ones, and\n * an app's claims are under those of an app that claimed after it first did.\n */\nexport class WindowClaims<T, O extends object = object> {\n private readonly groups = signal<readonly Group<T, O>[]>([]);\n\n /** Every claim, the one in force last. */\n readonly all: Signal<readonly Claim<T, O>[]> = computed(() =>\n this.groups().flatMap((group) => (group.base ? [group.base, ...group.pushed] : group.pushed)),\n );\n\n /** The claim in force last that passes `test`. */\n last(test: (value: T) => boolean): Claim<T, O> | undefined {\n const all = this.all();\n for (let at = all.length - 1; at >= 0; at--) if (test(all[at]!.value)) return all[at];\n return undefined;\n }\n\n /** The apps with claims, the one that claimed first first. */\n readonly owners: Signal<readonly O[]> = computed(() => this.groups().map((group) => group.owner));\n\n /** `owner`'s base claim, replacing the one it had. */\n setBase(owner: O, value: T): void {\n this.update(owner, (group) => ({ ...group, base: { value, owner } }));\n }\n\n /** A claim of `owner`'s on top of its others. Call the returned function to drop it. */\n push(owner: O, value: T): () => void {\n const claim: Claim<T, O> = { value, owner };\n this.update(owner, (group) => ({ ...group, pushed: [...group.pushed, claim] }));\n return () =>\n this.groups.update((groups) =>\n groups.map((group) =>\n group.owner === owner\n ? { ...group, pushed: group.pushed.filter((one) => one !== claim) }\n : group,\n ),\n );\n }\n\n /** Every app's claims. */\n clear(): void {\n this.groups.set([]);\n }\n\n /** Every claim of `owner`'s, for an app that goes. */\n drop(owner: O): void {\n this.groups.update((groups) => groups.filter((group) => group.owner !== owner));\n }\n\n private update(owner: O, change: (group: Group<T, O>) => Group<T, O>): void {\n this.groups.update((groups) => {\n const at = groups.findIndex((group) => group.owner === owner);\n if (at === -1) return [...groups, change({ owner, base: undefined, pushed: [] })];\n return groups.map((group, index) => (index === at ? change(group) : group));\n });\n }\n}\n\n/** The one stack, or whatever a module keeps for its window, for each native module. */\nconst shared = new WeakMap<object, unknown>();\nconst ABSENT = {};\n\n/**\n * What every app on `source` shares, made the first time one asks. `source` is the native module\n * the app writes through, or null for one that is not there.\n */\nexport function sharedBySource<W>(source: object | null, create: () => W): W {\n const key = source ?? ABSENT;\n if (!shared.has(key)) shared.set(key, create());\n return shared.get(key) as W;\n}\n\n/**\n * Android: calls `listener` each time an activity comes to the front, a recreated one included,\n * which starts with the platform's own window. Answers the function that stops listening. Nothing\n * on iOS, where a window keeps what it was given.\n */\nexport function onWindowFront(listener: () => void): () => void {\n const native = reactNative();\n if (native?.Platform?.OS !== 'android') return () => {};\n const subscription = native.AppState.addEventListener('change', (state) => {\n if (state === 'active') listener();\n });\n return () => subscription.remove();\n}\n\n/**\n * A window setting only the top claim decides, such as the orientation lock: every app's claims,\n * the one claimed last in force, and the platform's own when none is left.\n */\nexport class TopClaim<T> {\n readonly claims = new WindowClaims<T>();\n /** The claim the platform was last given, so a claim under it changes nothing. */\n private sent: Claim<T> | undefined;\n private readonly put: (value: T) => void;\n private readonly putBack: () => void;\n\n constructor(\n put: (value: T) => void,\n putBack: () => void,\n onFront?: (listener: () => void) => () => void,\n ) {\n this.put = put;\n this.putBack = putBack;\n // Lives as long as the module, which is the runtime's.\n onFront?.(() => {\n if (this.sent) this.put(this.sent.value);\n });\n }\n\n /** Tell the platform, if the claim in force is not the one it was last given. */\n apply(): void {\n const top = untracked(this.claims.all).at(-1);\n if (top === this.sent) return;\n this.sent = top;\n if (top) this.put(top.value);\n else this.putBack();\n }\n\n /** Every app's claims, and the platform's own back. */\n clear(): void {\n this.claims.clear();\n this.sent = undefined;\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-native/device",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Angular Native device services: keyboard, screen, color scheme, app state, accessibility, hardware back and deep links.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"main": "dist/index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ng-native/fabric": "0.
|
|
20
|
+
"@ng-native/fabric": "0.17.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@angular/core": "^22.0.0",
|