@flighthq/host-capacitor 0.5.1-next.1295.2b6bfa3 → 0.5.1-next.1345.0995dc5
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 +2 -2
- package/package.json +13 -13
- package/src/capacitorHost.test.ts +3 -29
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/host-capacitor`. The
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/host-capacitor@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/host-capacitor@0.5.1-next.1345.0995dc5](https://github.com/flighthq/flight/tree/0995dc5f840e6b57c3e85ecd2123aa798cf60b29/packages/host-capacitor)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/0995dc5f840e6b57c3e85ecd2123aa798cf60b29/LICENSE.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/host-capacitor",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.1345.0995dc5",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/app": "0.5.1-next.
|
|
42
|
-
"@flighthq/clipboard": "0.5.1-next.
|
|
43
|
-
"@flighthq/device": "0.5.1-next.
|
|
44
|
-
"@flighthq/dialog": "0.5.1-next.
|
|
45
|
-
"@flighthq/entity": "0.5.1-next.
|
|
46
|
-
"@flighthq/filesystem": "0.5.1-next.
|
|
47
|
-
"@flighthq/geolocation": "0.5.1-next.
|
|
48
|
-
"@flighthq/haptics": "0.5.1-next.
|
|
49
|
-
"@flighthq/notification": "0.5.1-next.
|
|
50
|
-
"@flighthq/share": "0.5.1-next.
|
|
51
|
-
"@flighthq/statusbar": "0.5.1-next.
|
|
52
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/app": "0.5.1-next.1345.0995dc5",
|
|
42
|
+
"@flighthq/clipboard": "0.5.1-next.1345.0995dc5",
|
|
43
|
+
"@flighthq/device": "0.5.1-next.1345.0995dc5",
|
|
44
|
+
"@flighthq/dialog": "0.5.1-next.1345.0995dc5",
|
|
45
|
+
"@flighthq/entity": "0.5.1-next.1345.0995dc5",
|
|
46
|
+
"@flighthq/filesystem": "0.5.1-next.1345.0995dc5",
|
|
47
|
+
"@flighthq/geolocation": "0.5.1-next.1345.0995dc5",
|
|
48
|
+
"@flighthq/haptics": "0.5.1-next.1345.0995dc5",
|
|
49
|
+
"@flighthq/notification": "0.5.1-next.1345.0995dc5",
|
|
50
|
+
"@flighthq/share": "0.5.1-next.1345.0995dc5",
|
|
51
|
+
"@flighthq/statusbar": "0.5.1-next.1345.0995dc5",
|
|
52
|
+
"@flighthq/types": "0.5.1-next.1345.0995dc5"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"typescript": "^5.3.0"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { readClipboardText } from '@flighthq/clipboard/contract';
|
|
2
|
+
import { createHost } from '@flighthq/entity/contract';
|
|
2
3
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
4
|
import type { CapacitorApi } from '@flighthq/types/contract';
|
|
4
5
|
|
|
@@ -67,35 +68,8 @@ describe('capacitor power slot coverage', () => {
|
|
|
67
68
|
});
|
|
68
69
|
|
|
69
70
|
describe('capacitorHost', () => {
|
|
70
|
-
it('publishes
|
|
71
|
-
expect(Object.keys(capacitorHost(fakeCapacitor(), 'ios')).sort()).toEqual(
|
|
72
|
-
'accessibility',
|
|
73
|
-
'app',
|
|
74
|
-
'clipboard',
|
|
75
|
-
'connectivity',
|
|
76
|
-
'dialog',
|
|
77
|
-
'graphics',
|
|
78
|
-
'input',
|
|
79
|
-
'ipc',
|
|
80
|
-
'media',
|
|
81
|
-
'menu',
|
|
82
|
-
'midi',
|
|
83
|
-
'net',
|
|
84
|
-
'notification',
|
|
85
|
-
'power',
|
|
86
|
-
'protocol',
|
|
87
|
-
'screen',
|
|
88
|
-
'share',
|
|
89
|
-
'shell',
|
|
90
|
-
'shortcut',
|
|
91
|
-
'storage',
|
|
92
|
-
'system',
|
|
93
|
-
'text',
|
|
94
|
-
'tray',
|
|
95
|
-
'ui',
|
|
96
|
-
'updater',
|
|
97
|
-
'window',
|
|
98
|
-
]);
|
|
71
|
+
it('publishes every Host group and no parallel top-level surface', () => {
|
|
72
|
+
expect(Object.keys(capacitorHost(fakeCapacitor(), 'ios')).sort()).toEqual(Object.keys(createHost()).sort());
|
|
99
73
|
});
|
|
100
74
|
|
|
101
75
|
it('exposes the real Capacitor haptics provider', () => {
|