@stacksjs/stx 0.2.794 → 0.2.798
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/{chunk-d6arvs57.js → chunk-0beyn8ak.js} +5 -5
- package/dist/{chunk-5a92srn2.js → chunk-0gsq8gps.js} +1 -1
- package/dist/chunk-0xnvjw7s.js +2 -0
- package/dist/chunk-1wyccmsr.js +2 -0
- package/dist/{chunk-7pk3t82j.js → chunk-20yz8bjp.js} +2 -2
- package/dist/{chunk-h0jnatd4.js → chunk-2ws2qe1k.js} +2 -2
- package/dist/{chunk-ssh2gycr.js → chunk-2z2bq2at.js} +3 -3
- package/dist/chunk-31qjy9xr.js +2 -0
- package/dist/chunk-33devn0s.js +2 -0
- package/dist/{chunk-c0ejyxfj.js → chunk-33vr7x2t.js} +3 -3
- package/dist/chunk-33wpv2n1.js +2 -0
- package/dist/{chunk-wk6xsyv3.js → chunk-3mby4nes.js} +3 -3
- package/dist/chunk-3p5gxc6t.js +2 -0
- package/dist/{chunk-j6255z7f.js → chunk-3x598qjt.js} +4 -4
- package/dist/chunk-4hgz9dkv.js +2 -0
- package/dist/{chunk-rrb9m2q2.js → chunk-4sesw88b.js} +5 -5
- package/dist/{chunk-94gyfwpz.js → chunk-4v50nafp.js} +14 -14
- package/dist/chunk-5kc9kjaa.js +2 -0
- package/dist/{chunk-vav9ktgm.js → chunk-5wwcgze3.js} +2 -2
- package/dist/chunk-5xd53dwe.js +2 -0
- package/dist/chunk-5y6518h8.js +2 -0
- package/dist/chunk-5y77pe7b.js +2 -0
- package/dist/chunk-6a97a9wk.js +2 -0
- package/dist/{chunk-5j619xgb.js → chunk-6b5zhtb3.js} +2 -2
- package/dist/chunk-6hre8cg4.js +2 -0
- package/dist/{chunk-4s5q1aea.js → chunk-6m4y5dh5.js} +6 -6
- package/dist/chunk-6pyweb05.js +2 -0
- package/dist/chunk-6tp7ys77.js +2 -0
- package/dist/chunk-6zxzr20d.js +2 -0
- package/dist/chunk-75ctpxr3.js +2 -0
- package/dist/{chunk-w9nwb8r3.js → chunk-7bxnjr3b.js} +7 -7
- package/dist/chunk-7gw96jpj.js +2 -0
- package/dist/chunk-7m4eesp0.js +2 -0
- package/dist/chunk-7na8bets.js +2 -0
- package/dist/{chunk-kr8qdg0r.js → chunk-7yb82rm6.js} +2 -2
- package/dist/{chunk-e3wmnjz8.js → chunk-810r5dk3.js} +3 -3
- package/dist/{chunk-e0wxcst7.js → chunk-89jn2jmf.js} +4 -4
- package/dist/{chunk-488kx8j5.js → chunk-8bzq2z0m.js} +5 -5
- package/dist/chunk-8k2n6abg.js +2 -0
- package/dist/chunk-8vqs94f3.js +2 -0
- package/dist/{chunk-dhqp3z4w.js → chunk-91htcq62.js} +2 -2
- package/dist/chunk-9736003n.js +2 -0
- package/dist/{chunk-agtvdtx4.js → chunk-9b6896tb.js} +2 -2
- package/dist/{chunk-y0pqpch2.js → chunk-9k6tza24.js} +7 -7
- package/dist/chunk-9w33k6f7.js +2 -0
- package/dist/{chunk-enep9r03.js → chunk-9x62j5f0.js} +52 -52
- package/dist/{chunk-b4r7d6me.js → chunk-a1ba9d2r.js} +5 -5
- package/dist/{chunk-efrc97by.js → chunk-a20wq8wf.js} +4 -4
- package/dist/{chunk-t3ptzpfc.js → chunk-a3xqfyb6.js} +2 -2
- package/dist/chunk-ag8j9ec2.js +2 -0
- package/dist/chunk-ak15dt1a.js +2 -0
- package/dist/{chunk-27rzdq3n.js → chunk-akcyaxwv.js} +2 -2
- package/dist/{chunk-w5hhqjwr.js → chunk-aw6369cx.js} +1 -1
- package/dist/chunk-b5ck6epd.js +177 -0
- package/dist/chunk-b98743ja.js +2 -0
- package/dist/{chunk-14ft0zc7.js → chunk-b9d70mgr.js} +6 -6
- package/dist/chunk-bskxswmn.js +2 -0
- package/dist/chunk-bv5h4etd.js +2 -0
- package/dist/chunk-c7x3bmvs.js +2 -0
- package/dist/{chunk-2gqhfge6.js → chunk-c84pxd2k.js} +2 -2
- package/dist/chunk-camm2hcx.js +2 -0
- package/dist/chunk-cd2wda5c.js +2 -0
- package/dist/chunk-cv6pqg85.js +2 -0
- package/dist/chunk-cy0mab8y.js +2 -0
- package/dist/chunk-d554f2fj.js +2 -0
- package/dist/chunk-dd1vqndp.js +2 -0
- package/dist/{chunk-0r61tkfe.js → chunk-ddhkhhc7.js} +2 -2
- package/dist/{chunk-9tqa8xvf.js → chunk-dsnggn3g.js} +2 -2
- package/dist/chunk-e14v1q9c.js +2 -0
- package/dist/{chunk-2m5h2mtr.js → chunk-e37g6ezw.js} +41 -41
- package/dist/chunk-e3xw2bzh.js +2 -0
- package/dist/{chunk-nps2whkz.js → chunk-eegb7f3t.js} +6 -6
- package/dist/chunk-eeztqt6f.js +2 -0
- package/dist/{chunk-1y9ez7nz.js → chunk-ef3w5thv.js} +2 -2
- package/dist/chunk-eh528njb.js +2 -0
- package/dist/chunk-en0wry1c.js +20 -0
- package/dist/chunk-eszpqrxy.js +2 -0
- package/dist/{chunk-2p4yad7w.js → chunk-fp0ew9n4.js} +4 -4
- package/dist/chunk-fyxkzs9c.js +2 -0
- package/dist/{chunk-d18xd9x5.js → chunk-gjf8cjdt.js} +3 -3
- package/dist/{chunk-7gdwvnwc.js → chunk-gvnfb6s2.js} +2 -2
- package/dist/{chunk-fpn4dren.js → chunk-gzfvj15b.js} +1 -1
- package/dist/chunk-hb4jkdfr.js +2 -0
- package/dist/{chunk-qp3xd98j.js → chunk-hg9mwgnr.js} +2 -2
- package/dist/{chunk-8q63njnd.js → chunk-hmt0vqhb.js} +1 -1
- package/dist/{chunk-v8rfeev5.js → chunk-hp9e8nz6.js} +2 -2
- package/dist/chunk-hzps1xya.js +2 -0
- package/dist/{chunk-985afhhy.js → chunk-j3st59hv.js} +2 -2
- package/dist/{chunk-7sartb04.js → chunk-jde0shn4.js} +2 -2
- package/dist/{chunk-15ckxpq7.js → chunk-jeprxn45.js} +6 -6
- package/dist/{chunk-bwcj9z19.js → chunk-jt0yn7ab.js} +4 -4
- package/dist/chunk-k8gpvg0w.js +2 -0
- package/dist/chunk-kgn911k7.js +2 -0
- package/dist/{chunk-jdj1358b.js → chunk-kj8dvzpc.js} +2 -2
- package/dist/chunk-km8c0j9g.js +2 -0
- package/dist/{chunk-w6taxq7d.js → chunk-mj3hzy1e.js} +5 -5
- package/dist/{chunk-66b56g2z.js → chunk-nw0v655w.js} +6 -6
- package/dist/{chunk-6v4b0xc1.js → chunk-p1mghe1h.js} +6 -6
- package/dist/{chunk-pa9zfbh6.js → chunk-p2a6dwj6.js} +6 -6
- package/dist/chunk-pw89m3re.js +2 -0
- package/dist/chunk-q38vjqv2.js +2 -0
- package/dist/{chunk-yyr7vb7k.js → chunk-q3ma4khe.js} +5 -5
- package/dist/{chunk-ne69yaak.js → chunk-q7q9e0gj.js} +10 -10
- package/dist/{chunk-kce6pzmj.js → chunk-qef2vv0m.js} +3 -3
- package/dist/{chunk-q14d714d.js → chunk-qjbpa1n4.js} +4 -4
- package/dist/{chunk-5gppagt3.js → chunk-qm2wmqre.js} +1 -1
- package/dist/{chunk-605b93pe.js → chunk-qpvwxppw.js} +4 -4
- package/dist/{chunk-8nb8b0nf.js → chunk-qxt6hdat.js} +1 -1
- package/dist/{chunk-1hajf3wc.js → chunk-r6d6jphq.js} +21 -21
- package/dist/chunk-rbv6fxtx.js +3 -0
- package/dist/chunk-rrketemm.js +2 -0
- package/dist/chunk-rwys552r.js +3 -0
- package/dist/chunk-s0bx4gjh.js +2 -0
- package/dist/{chunk-gv3bfkdm.js → chunk-s14jcqdf.js} +5 -5
- package/dist/{chunk-es006emk.js → chunk-s3fmmm98.js} +3 -3
- package/dist/chunk-s8s7b7rv.js +2 -0
- package/dist/{chunk-vkn133cs.js → chunk-s9b6abkb.js} +2 -2
- package/dist/{chunk-3gn1t0pa.js → chunk-sprgkk9j.js} +31 -31
- package/dist/chunk-sywqa4da.js +2 -0
- package/dist/{chunk-gb65t4n1.js → chunk-t65tn8ee.js} +2 -2
- package/dist/{chunk-vrbcdds3.js → chunk-trjhz9d9.js} +1 -1
- package/dist/chunk-txrbz95y.js +2 -0
- package/dist/{chunk-h0c6jtrj.js → chunk-v9hm1xv6.js} +5 -5
- package/dist/{chunk-bmfk3b29.js → chunk-w0zayhmg.js} +2 -2
- package/dist/{chunk-tnn0br4w.js → chunk-w58bnt44.js} +3 -3
- package/dist/chunk-w7681v48.js +2 -0
- package/dist/chunk-w7wz670a.js +2 -0
- package/dist/{chunk-epcy3r18.js → chunk-wp6bdac7.js} +113 -105
- package/dist/{chunk-8ztgy5y4.js → chunk-x8ckxemg.js} +107 -107
- package/dist/{chunk-74rf78w8.js → chunk-x8h81amr.js} +2 -2
- package/dist/{chunk-hh9t97hr.js → chunk-xa36escd.js} +3 -3
- package/dist/{chunk-7fr038wx.js → chunk-xskswvef.js} +4 -4
- package/dist/chunk-xzgtdcbg.js +2 -0
- package/dist/{chunk-k4bdf0dw.js → chunk-y9bj3566.js} +2 -2
- package/dist/chunk-yfdb3x3p.js +2 -0
- package/dist/{chunk-qv85c3qy.js → chunk-yv4dwdhc.js} +2 -2
- package/dist/{chunk-1stvxcjv.js → chunk-z1aq59qj.js} +3 -3
- package/dist/{chunk-nwbq8qvb.js → chunk-z1fb5k3h.js} +1305 -449
- package/dist/{chunk-tnkxww7b.js → chunk-z8wfvqbk.js} +5 -5
- package/dist/chunk-z9a80qqg.js +2 -0
- package/dist/chunk-za5kx15m.js +2 -0
- package/dist/{chunk-8e23zh2y.js → chunk-zbv8e4rq.js} +2 -2
- package/dist/{chunk-v1z6n7wz.js → chunk-znx5m1jv.js} +4 -4
- package/dist/{chunk-6pt4158p.js → chunk-zqsacq3r.js} +1 -1
- package/dist/{chunk-rgz797k3.js → chunk-zsy145ac.js} +3 -3
- package/dist/{chunk-j56mg28d.js → chunk-zx8tnhfr.js} +3 -3
- package/dist/cli.js +19 -19
- package/dist/client/signals-authoring-runtime.js +6 -3
- package/dist/client/signals-binding-utils-runtime.js +2 -4
- package/dist/client/signals-component-props-runtime.js +8 -2
- package/dist/client/signals-expression-compiler-runtime.js +1 -1
- package/dist/client/signals-for-runtime.js +34 -0
- package/dist/client/signals-handler-runtime.js +68 -24
- package/dist/client/signals-helpers-runtime.js +51 -0
- package/dist/client/signals-native-row-runtime.d.ts +26 -0
- package/dist/client/signals-native-row-runtime.js +661 -0
- package/dist/client/signals-pipe-runtime.js +16 -0
- package/dist/client/signals-process-element-runtime.js +305 -287
- package/dist/client/signals-proxy-runtime.js +56 -31
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/native/accessibility.js +8 -0
- package/dist/native/compiler/bundle.js +1 -1
- package/dist/native/compiler/inline-style.js +93 -4
- package/dist/native/compiler/style-variables.js +9 -1
- package/dist/native/event-names.js +1 -0
- package/dist/native/prop-names.js +9 -1
- package/dist/native/runtime/binding-tree.d.ts +2 -0
- package/dist/native/runtime/binding-tree.js +12 -1
- package/dist/native/runtime/craft-bridge.js +66 -0
- package/dist/native/runtime/craft.d.ts +78 -2
- package/dist/native/runtime/native-host.d.ts +2 -0
- package/dist/native/runtime/native-host.js +315 -91
- package/dist/native-build.js +2 -23
- package/dist/pwa.js +3 -3
- package/dist/signals.d.ts +13 -10
- package/dist/signals.js +5 -3
- package/dist/ssg.js +15 -15
- package/dist/stx-virtual-ts.d.ts +25 -1
- package/dist/stx-virtual-ts.js +109 -6
- package/dist/typecheck.d.ts +3 -1
- package/dist/typecheck.js +28 -11
- package/package.json +6 -6
- package/dist/chunk-0675z8hj.js +0 -177
- package/dist/chunk-1brkqd5f.js +0 -2
- package/dist/chunk-1ds97d9m.js +0 -2
- package/dist/chunk-1tvb2stj.js +0 -2
- package/dist/chunk-2vxh8b8g.js +0 -2
- package/dist/chunk-33na85q2.js +0 -2
- package/dist/chunk-3t4t655h.js +0 -2
- package/dist/chunk-43ynckvh.js +0 -2
- package/dist/chunk-4v22nj67.js +0 -2
- package/dist/chunk-5v5w0cd2.js +0 -2
- package/dist/chunk-699t603m.js +0 -2
- package/dist/chunk-6f6xqzhb.js +0 -2
- package/dist/chunk-7mrr4ke5.js +0 -2
- package/dist/chunk-7tzzzvdg.js +0 -2
- package/dist/chunk-8a5txj4f.js +0 -2
- package/dist/chunk-8pphy0p1.js +0 -2
- package/dist/chunk-8rmb79zw.js +0 -2
- package/dist/chunk-8rwnzmvb.js +0 -2
- package/dist/chunk-90pxjq62.js +0 -2
- package/dist/chunk-9s4ggstz.js +0 -2
- package/dist/chunk-9wmjmas8.js +0 -2
- package/dist/chunk-9xdz8r73.js +0 -2
- package/dist/chunk-agvykxs8.js +0 -2
- package/dist/chunk-ajj56vrw.js +0 -2
- package/dist/chunk-ay4ep67v.js +0 -2
- package/dist/chunk-bwfncfe1.js +0 -3
- package/dist/chunk-cdsv4yrv.js +0 -2
- package/dist/chunk-d5e47gr4.js +0 -2
- package/dist/chunk-d910ytt2.js +0 -2
- package/dist/chunk-d9p7xaj7.js +0 -2
- package/dist/chunk-dsrn2vgp.js +0 -2
- package/dist/chunk-fkkdt6sj.js +0 -2
- package/dist/chunk-fpw03bhv.js +0 -2
- package/dist/chunk-fxy0cq7h.js +0 -2
- package/dist/chunk-g6smtcc0.js +0 -2
- package/dist/chunk-g747k4gg.js +0 -3
- package/dist/chunk-gryrg1c0.js +0 -2
- package/dist/chunk-gvj862m1.js +0 -2
- package/dist/chunk-h5nrnen8.js +0 -2
- package/dist/chunk-hagk74x6.js +0 -2
- package/dist/chunk-hv0whj8t.js +0 -2
- package/dist/chunk-k2brrhf8.js +0 -2
- package/dist/chunk-k6ncb5qm.js +0 -2
- package/dist/chunk-kn38mjpp.js +0 -2
- package/dist/chunk-kvmpc0sg.js +0 -2
- package/dist/chunk-nbjgytem.js +0 -2
- package/dist/chunk-nf2bzqaw.js +0 -2
- package/dist/chunk-nt7wqqax.js +0 -2
- package/dist/chunk-pq1qs7bp.js +0 -2
- package/dist/chunk-pvw58x2j.js +0 -20
- package/dist/chunk-qk9v0emh.js +0 -2
- package/dist/chunk-qnj444zc.js +0 -2
- package/dist/chunk-qzb0v08n.js +0 -2
- package/dist/chunk-s1wdzttg.js +0 -2
- package/dist/chunk-sq0qc9sk.js +0 -2
- package/dist/chunk-th5afzmv.js +0 -2
- package/dist/chunk-tktkj2dc.js +0 -2
- package/dist/chunk-vgzfsh1z.js +0 -2
- package/dist/chunk-wmh4yxcs.js +0 -2
- package/dist/chunk-wr3adhd8.js +0 -2
- package/dist/chunk-xmae29mn.js +0 -2
- package/dist/chunk-zdwnzq78.js +0 -2
- package/dist/chunk-zssf9fdg.js +0 -2
- package/dist/chunk-zyf6737j.js +0 -2
|
@@ -106,6 +106,9 @@ export declare interface NativeLocation {
|
|
|
106
106
|
timestamp: number
|
|
107
107
|
}
|
|
108
108
|
export declare interface NativeLocationRecordingState {
|
|
109
|
+
barometer?: boolean
|
|
110
|
+
barometerError?: string
|
|
111
|
+
barometerEvents?: NativeRecordingPressureEvent[]
|
|
109
112
|
id: string | null
|
|
110
113
|
active: boolean
|
|
111
114
|
paused: boolean
|
|
@@ -148,7 +151,53 @@ export declare interface NativeFile {
|
|
|
148
151
|
type: string
|
|
149
152
|
size: number
|
|
150
153
|
}
|
|
154
|
+
export declare interface NativeRawMotionSensors {
|
|
155
|
+
getAvailability: () => Promise<Record<NativeRawMotionSensor, boolean>>
|
|
156
|
+
start: (options: { sensor: NativeRawMotionSensor, intervalMs?: number }) => Promise<boolean>
|
|
157
|
+
stop: (sensor: NativeRawMotionSensor) => Promise<boolean>
|
|
158
|
+
stopAll: () => Promise<boolean>
|
|
159
|
+
onUpdate: (callback: (reading: NativeRawMotionReading) => void) => () => void
|
|
160
|
+
}
|
|
161
|
+
export declare interface NativeBarometer {
|
|
162
|
+
getAvailability: () => Promise<{ relativeAltitude: boolean, absoluteAltitude: boolean, background: boolean, permissionDenied?: boolean }>
|
|
163
|
+
start: (options?: { intervalMs?: number, background?: boolean }) => Promise<boolean>
|
|
164
|
+
stop: () => Promise<boolean>
|
|
165
|
+
onUpdate: (callback: (event: NativeBarometerEvent) => void) => () => void
|
|
166
|
+
}
|
|
167
|
+
export declare interface NativePedometer {
|
|
168
|
+
getAvailability: () => Promise<Record<string, boolean>>
|
|
169
|
+
getPermissionStatus: () => Promise<'granted' | 'denied' | 'restricted' | 'notDetermined' | 'unavailable'>
|
|
170
|
+
requestPermission: () => Promise<'granted' | 'denied' | 'restricted' | 'notDetermined' | 'unavailable'>
|
|
171
|
+
start: (options?: { startDate?: number, sensor?: 'counter' | 'detector', background?: false }) => Promise<boolean>
|
|
172
|
+
stop: () => Promise<boolean>
|
|
173
|
+
query: (options: { startDate: number, endDate?: number }) => Promise<Extract<NativePedometerEvent, { kind: 'interval' }>>
|
|
174
|
+
onUpdate: (callback: (event: NativePedometerEvent) => void) => () => void
|
|
175
|
+
}
|
|
176
|
+
export declare interface NativeHealthBackgroundBatch {
|
|
177
|
+
id: string
|
|
178
|
+
type: string
|
|
179
|
+
samples: Array<{ id: string, startDate: number, endDate: number, value?: number, unit?: string, category?: number, workoutActivity?: number, durationSeconds?: number }>
|
|
180
|
+
deleted: string[]
|
|
181
|
+
}
|
|
182
|
+
export declare interface NativeHealthBackground {
|
|
183
|
+
status: () => Promise<{ types: string[], frequency: string, pendingBatches: number, errors: Record<string, string> }>
|
|
184
|
+
pending: () => Promise<NativeHealthBackgroundBatch[]>
|
|
185
|
+
acknowledge: (ids: string[]) => Promise<boolean>
|
|
186
|
+
refresh: () => Promise<boolean>
|
|
187
|
+
onChange: (callback: (detail: { type: string }) => void) => () => void
|
|
188
|
+
}
|
|
189
|
+
export declare interface NativePedometerPassive {
|
|
190
|
+
availability: () => Promise<{ supported: boolean, enabled: boolean, permissionGranted: boolean }>
|
|
191
|
+
start: () => Promise<boolean>
|
|
192
|
+
stop: () => Promise<boolean>
|
|
193
|
+
history: () => Promise<Array<{ kind: 'daily', source: 'healthServices', day: string, timeZone: string, startDate: number, endDate: number, steps: number }>>
|
|
194
|
+
}
|
|
151
195
|
export declare interface NativeCraft {
|
|
196
|
+
pedometerPassive?: NativePedometerPassive
|
|
197
|
+
healthBackground?: NativeHealthBackground
|
|
198
|
+
pedometer?: NativePedometer
|
|
199
|
+
rawMotionSensors?: NativeRawMotionSensors
|
|
200
|
+
barometer?: NativeBarometer
|
|
152
201
|
liveActivity?: NativeLiveActivities
|
|
153
202
|
desktop?: NativeDesktop
|
|
154
203
|
web?: NativeWeb
|
|
@@ -238,12 +287,12 @@ export declare interface NativeCraft {
|
|
|
238
287
|
getCurrentPosition: (options?: { enableHighAccuracy?: boolean, timeout?: number, maximumAge?: number }) => Promise<NativeLocation>
|
|
239
288
|
watchPosition: (callback: (location: NativeLocation) => unknown, options?: Record<string, unknown>) => number
|
|
240
289
|
clearWatch: (id?: number) => void
|
|
241
|
-
startRecording: (options?: Record<string, unknown> & { recordingId?: string }) => Promise<NativeLocationRecordingState>
|
|
290
|
+
startRecording: (options?: Record<string, unknown> & { recordingId?: string, barometer?: boolean }) => Promise<NativeLocationRecordingState>
|
|
242
291
|
pauseRecording: (options?: { expectedId: string }) => Promise<NativeLocationRecordingState>
|
|
243
292
|
resumeRecording: (options?: { expectedId: string }) => Promise<NativeLocationRecordingState>
|
|
244
293
|
stopRecording: (options?: { expectedId: string }) => Promise<NativeLocationRecordingState & { locations: NativeLocation[] }>
|
|
245
294
|
acknowledgeRecording: (options: { expectedId: string }) => Promise<boolean>
|
|
246
|
-
getRecordingState: (options?: { expectedId
|
|
295
|
+
getRecordingState: (options?: { expectedId?: string, includeBarometerSamples?: boolean }) => Promise<NativeLocationRecordingState & { sampleCount: number }>
|
|
247
296
|
readRecording: (options?: { expectedId: string }) => Promise<NativeLocation[]>
|
|
248
297
|
}
|
|
249
298
|
setKeepAwake?: (enabled: boolean) => Promise<boolean>
|
|
@@ -429,6 +478,33 @@ export declare interface NativeWeb {
|
|
|
429
478
|
openDownload: (path: string) => Promise<boolean>
|
|
430
479
|
}
|
|
431
480
|
export type NativePermissionStatus = 'granted' | 'denied' | 'undetermined';
|
|
481
|
+
/** Recorded pressure uses a new relative-altitude reference for each segment. */
|
|
482
|
+
export type NativeRecordingPressureEvent = {
|
|
483
|
+
recordingId: string
|
|
484
|
+
/** Unix milliseconds when the native journal received this event. */
|
|
485
|
+
timestamp: number
|
|
486
|
+
} & (
|
|
487
|
+
| { state: 'sample', segmentId: string, pressureHpa: number, referencePressureHpa: number, relativeAltitudeMeters: number, timestampMs: number }
|
|
488
|
+
| { state: 'segment', segmentId: string, reason: 'startedOrRecovered' | 'sampleGap', timestampMs?: number }
|
|
489
|
+
| { state: 'stopped', segmentId?: string, reason: 'paused' | 'stopped' | 'sensorOrStorageError' }
|
|
490
|
+
);
|
|
491
|
+
export type NativeRawMotionSensor = 'accelerometer' | 'gyroscope' | 'magnetometer' | 'rotationVector';
|
|
492
|
+
export type NativeRawMotionReading = {
|
|
493
|
+
/** Monotonic milliseconds since boot, not Unix time. */
|
|
494
|
+
timestampMs: number
|
|
495
|
+
accuracy: number
|
|
496
|
+
} & (
|
|
497
|
+
| { sensor: 'accelerometer', unit: 'm/s²', values: { x: number, y: number, z: number } }
|
|
498
|
+
| { sensor: 'gyroscope', unit: 'rad/s', values: { x: number, y: number, z: number } }
|
|
499
|
+
| { sensor: 'magnetometer', unit: 'µT', values: { x: number, y: number, z: number } }
|
|
500
|
+
| { sensor: 'rotationVector', unit: 'quaternion', values: { w: number, x: number, y: number, z: number } }
|
|
501
|
+
);
|
|
502
|
+
export type NativeBarometerEvent = | { state: 'sample', pressureHpa: number, relativeAltitudeMeters: number, timestampMs: number, referencePressureHpa?: number }
|
|
503
|
+
| { state: 'stopped', reason: 'background' | 'requested' | 'disposed' | 'sensorError' | 'permissionDenied' }
|
|
504
|
+
export type NativePedometerEvent = | { state: 'sample', kind: 'interval', startDate: number, endDate: number, steps: number, distanceMeters?: number, cadenceStepsPerSecond?: number, paceSecondsPerMeter?: number, averageActivePaceSecondsPerMeter?: number, floorsAscended?: number, floorsDescended?: number }
|
|
505
|
+
| { state: 'sample', kind: 'counter', stepsSinceBoot: number, timestampMs: number }
|
|
506
|
+
| { state: 'sample', kind: 'step', count: 1, timestampMs: number }
|
|
507
|
+
| { state: 'stopped', reason: 'requested' | 'background' | 'disposed' | 'sensorError' | 'permissionDenied' }
|
|
432
508
|
export type NativeWebEvent = | ({ type: 'state' } & NativeWebTabState)
|
|
433
509
|
| { type: 'navigationStart' | 'navigationFinish', tab: string, url: string }
|
|
434
510
|
| { type: 'navigationError', tab: string, url: string, code: number, domain: string, message: string }
|
|
@@ -53,6 +53,8 @@ export declare interface NativeHost {
|
|
|
53
53
|
setVisible: (node: NativeNode, visible: boolean) => boolean
|
|
54
54
|
anchor: (label: string) => NativeNode
|
|
55
55
|
clone: (node: NativeNode) => NativeNode
|
|
56
|
+
cloneElement: (node: NativeNode, attributes: Array<{ name: string, value: string }>) => NativeNode
|
|
57
|
+
append: (parent: NativeNode, node: NativeNode) => void
|
|
56
58
|
insert: (parent: NativeNode, node: NativeNode, before?: NativeNode | null) => void
|
|
57
59
|
remove: (node: NativeNode) => void
|
|
58
60
|
descendants: (node: NativeNode) => NativeNode[]
|