@lingxia/types 0.10.0 → 0.11.1

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.
Files changed (130) hide show
  1. package/dist/automation/index.d.ts +942 -0
  2. package/dist/automation/index.d.ts.map +1 -0
  3. package/dist/automation/index.js +13 -0
  4. package/dist/automation/index.js.map +1 -0
  5. package/dist/generated/i18n.d.ts +1 -1
  6. package/dist/generated/i18n.d.ts.map +1 -1
  7. package/dist/generated/i18n.js +29 -0
  8. package/dist/generated/i18n.js.map +1 -1
  9. package/dist/generated/logic-web.d.ts +305 -0
  10. package/dist/generated/logic.d.ts +1909 -0
  11. package/dist/generated/logic.d.ts.map +1 -0
  12. package/dist/generated/logic.js +5 -0
  13. package/dist/generated/logic.js.map +1 -0
  14. package/dist/index.d.ts +16 -313
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +3 -16
  17. package/dist/index.js.map +1 -1
  18. package/dist/logic-globals.d.ts +1 -0
  19. package/dist/process.d.ts +117 -0
  20. package/dist/process.d.ts.map +1 -0
  21. package/dist/process.js +10 -0
  22. package/dist/process.js.map +1 -0
  23. package/package.json +73 -47
  24. package/src/automation/index.ts +1074 -0
  25. package/src/generated/i18n.ts +29 -0
  26. package/src/generated/logic-web.d.ts +305 -0
  27. package/src/generated/logic.ts +2123 -0
  28. package/src/index.ts +18 -459
  29. package/src/logic-globals.d.ts +1 -0
  30. package/src/process.ts +135 -0
  31. package/dist/app/index.d.ts +0 -328
  32. package/dist/app/index.d.ts.map +0 -1
  33. package/dist/app/index.js +0 -6
  34. package/dist/app/index.js.map +0 -1
  35. package/dist/device/actions.d.ts +0 -7
  36. package/dist/device/actions.d.ts.map +0 -1
  37. package/dist/device/actions.js +0 -6
  38. package/dist/device/actions.js.map +0 -1
  39. package/dist/device/index.d.ts +0 -5
  40. package/dist/device/index.d.ts.map +0 -1
  41. package/dist/device/index.js +0 -21
  42. package/dist/device/index.js.map +0 -1
  43. package/dist/device/info.d.ts +0 -16
  44. package/dist/device/info.d.ts.map +0 -1
  45. package/dist/device/info.js +0 -6
  46. package/dist/device/info.js.map +0 -1
  47. package/dist/device/network.d.ts +0 -12
  48. package/dist/device/network.d.ts.map +0 -1
  49. package/dist/device/network.js +0 -6
  50. package/dist/device/network.js.map +0 -1
  51. package/dist/device/wifi.d.ts +0 -20
  52. package/dist/device/wifi.d.ts.map +0 -1
  53. package/dist/device/wifi.js +0 -6
  54. package/dist/device/wifi.js.map +0 -1
  55. package/dist/display/index.d.ts +0 -8
  56. package/dist/display/index.d.ts.map +0 -1
  57. package/dist/display/index.js +0 -6
  58. package/dist/display/index.js.map +0 -1
  59. package/dist/env/index.d.ts +0 -8
  60. package/dist/env/index.d.ts.map +0 -1
  61. package/dist/env/index.js +0 -6
  62. package/dist/env/index.js.map +0 -1
  63. package/dist/file/index.d.ts +0 -146
  64. package/dist/file/index.d.ts.map +0 -1
  65. package/dist/file/index.js +0 -6
  66. package/dist/file/index.js.map +0 -1
  67. package/dist/input/index.d.ts +0 -18
  68. package/dist/input/index.d.ts.map +0 -1
  69. package/dist/input/index.js +0 -8
  70. package/dist/input/index.js.map +0 -1
  71. package/dist/location/index.d.ts +0 -19
  72. package/dist/location/index.d.ts.map +0 -1
  73. package/dist/location/index.js +0 -6
  74. package/dist/location/index.js.map +0 -1
  75. package/dist/lxapp/index.d.ts +0 -11
  76. package/dist/lxapp/index.d.ts.map +0 -1
  77. package/dist/lxapp/index.js +0 -6
  78. package/dist/lxapp/index.js.map +0 -1
  79. package/dist/media/index.d.ts +0 -372
  80. package/dist/media/index.d.ts.map +0 -1
  81. package/dist/media/index.js +0 -6
  82. package/dist/media/index.js.map +0 -1
  83. package/dist/navigator/index.d.ts +0 -14
  84. package/dist/navigator/index.d.ts.map +0 -1
  85. package/dist/navigator/index.js +0 -6
  86. package/dist/navigator/index.js.map +0 -1
  87. package/dist/share/index.d.ts +0 -90
  88. package/dist/share/index.d.ts.map +0 -1
  89. package/dist/share/index.js +0 -6
  90. package/dist/share/index.js.map +0 -1
  91. package/dist/storage/index.d.ts +0 -13
  92. package/dist/storage/index.d.ts.map +0 -1
  93. package/dist/storage/index.js +0 -6
  94. package/dist/storage/index.js.map +0 -1
  95. package/dist/system/index.d.ts +0 -9
  96. package/dist/system/index.d.ts.map +0 -1
  97. package/dist/system/index.js +0 -6
  98. package/dist/system/index.js.map +0 -1
  99. package/dist/transfer/index.d.ts +0 -166
  100. package/dist/transfer/index.d.ts.map +0 -1
  101. package/dist/transfer/index.js +0 -6
  102. package/dist/transfer/index.js.map +0 -1
  103. package/dist/ui/index.d.ts +0 -134
  104. package/dist/ui/index.d.ts.map +0 -1
  105. package/dist/ui/index.js +0 -6
  106. package/dist/ui/index.js.map +0 -1
  107. package/dist/update/index.d.ts +0 -17
  108. package/dist/update/index.d.ts.map +0 -1
  109. package/dist/update/index.js +0 -6
  110. package/dist/update/index.js.map +0 -1
  111. package/src/app/index.ts +0 -378
  112. package/src/device/actions.ts +0 -7
  113. package/src/device/index.ts +0 -4
  114. package/src/device/info.ts +0 -17
  115. package/src/device/network.ts +0 -23
  116. package/src/device/wifi.ts +0 -23
  117. package/src/display/index.ts +0 -9
  118. package/src/env/index.ts +0 -8
  119. package/src/file/index.ts +0 -171
  120. package/src/input/index.ts +0 -19
  121. package/src/location/index.ts +0 -20
  122. package/src/lxapp/index.ts +0 -12
  123. package/src/media/index.ts +0 -411
  124. package/src/navigator/index.ts +0 -16
  125. package/src/share/index.ts +0 -97
  126. package/src/storage/index.ts +0 -13
  127. package/src/system/index.ts +0 -9
  128. package/src/transfer/index.ts +0 -194
  129. package/src/ui/index.ts +0 -165
  130. package/src/update/index.ts +0 -19
@@ -1,328 +0,0 @@
1
- /**
2
- * Host app, app lifecycle, and page instance APIs.
3
- */
4
- export interface AppBaseInfo {
5
- language: string;
6
- productName: string;
7
- version: string;
8
- SDKVersion: string;
9
- }
10
- export interface HostAppUpdateInfo {
11
- version: string;
12
- size?: number;
13
- releaseNotes?: string[];
14
- isForceUpdate: boolean;
15
- /**
16
- * Download and apply this checked update.
17
- *
18
- * `apply()` is single-use for this update object.
19
- *
20
- * The returned task can be awaited directly when progress is not needed, or
21
- * consumed with `for await...of` to render progress.
22
- *
23
- * Direct package handoff is currently supported on Android and macOS. Other
24
- * platforms reject with an unsupported-operation error; use `version` and
25
- * `releaseNotes` to guide users to the appropriate app marketplace.
26
- */
27
- apply(): HostAppUpdateTask;
28
- }
29
- export type HostAppUpdateApplyStage = 'download' | 'install';
30
- export type HostAppUpdateCheckResult = {
31
- hasUpdate: false;
32
- update?: never;
33
- } | {
34
- hasUpdate: true;
35
- update: HostAppUpdateInfo;
36
- };
37
- export type HostAppUpdateEvent = {
38
- state: 'downloading';
39
- downloadedBytes?: number;
40
- progress?: number;
41
- } | {
42
- state: 'downloaded' | 'installRequested';
43
- } | {
44
- state: 'failed';
45
- stage: HostAppUpdateApplyStage;
46
- error: string;
47
- };
48
- export interface HostAppUpdateResult {
49
- state: 'installRequested';
50
- }
51
- export interface HostAppUpdateIteratorResult {
52
- done: boolean;
53
- value?: HostAppUpdateEvent;
54
- }
55
- export interface HostAppUpdateTask extends PromiseLike<HostAppUpdateResult>, AsyncIterable<HostAppUpdateEvent> {
56
- next(): Promise<HostAppUpdateIteratorResult>;
57
- /** Stops iteration only. It does not cancel an app update already handed to the platform. */
58
- return(): Promise<HostAppUpdateIteratorResult>;
59
- catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): Promise<HostAppUpdateResult | TResult>;
60
- finally(onfinally?: (() => void) | null): Promise<HostAppUpdateResult>;
61
- wait(): Promise<HostAppUpdateResult>;
62
- }
63
- /**
64
- * Build-time environment version of the host app.
65
- *
66
- * Surfaced via {@link HostAppApi.envVersion}. Mirrors the
67
- * `crates/lingxia-update::ReleaseType` enum and the `envVersion` field in the
68
- * generated `app.json`. Pre-envVersion app artifacts are treated as `'release'`.
69
- *
70
- * Note: this is *separate* from `LxAppEnvVersion` in the navigator module,
71
- * which encodes lxapp release channels (`'develop' | 'preview' | 'release'`)
72
- * for cross-app navigation URLs and uses the truncated `develop` form.
73
- */
74
- export type HostAppEnvVersion = 'developer' | 'preview' | 'release';
75
- export interface AppScreenshotOptions {
76
- /**
77
- * Platform-specific window id to capture (desktop only). Omit to let the
78
- * platform pick: the key/main window on desktop, the sole window on mobile.
79
- */
80
- windowId?: string;
81
- }
82
- export interface AppScreenshotResult {
83
- /** `lx://` URI of the captured PNG in the lxapp temp directory. */
84
- tempFilePath: string;
85
- /** Image width in pixels, when the runtime could read it from the PNG. */
86
- width?: number;
87
- /** Image height in pixels, when the runtime could read it from the PNG. */
88
- height?: number;
89
- }
90
- export interface HostAppApi {
91
- /**
92
- * The environment this build was produced for, mirroring `app.json::envVersion`.
93
- * Always present; defaults to `'release'` for builds produced before the field
94
- * existed in the artifact.
95
- *
96
- * Use this to branch on environment-specific behavior (e.g. verbose logging in
97
- * developer builds, distinct theme tinting, distinct error-reporter tags).
98
- * Synchronous; the value is fixed at app boot.
99
- */
100
- readonly envVersion: HostAppEnvVersion;
101
- getBaseInfo(): AppBaseInfo;
102
- /**
103
- * Check whether the host app has an update.
104
- *
105
- * This is a host app level capability and is only available to the home
106
- * lxapp. Non-home lxapps receive a permission error.
107
- *
108
- * Calling this API opts the host app into custom update handling for this
109
- * process. LingXia will not show its built-in host app update UI or
110
- * auto-install host app updates after that point.
111
- *
112
- * If no update is available, or if an update requires a newer LingXia
113
- * runtime than the current host app provides, `hasUpdate` is `false`.
114
- *
115
- * `checkUpdate()` may return version metadata on platforms that cannot apply
116
- * host app packages directly. In that case, `update.apply()` rejects with an
117
- * unsupported-operation error.
118
- */
119
- checkUpdate(): Promise<HostAppUpdateCheckResult>;
120
- /**
121
- * Exit the host app immediately.
122
- *
123
- * This API does not show a confirmation dialog. If the user should confirm
124
- * first, call `lx.showModal(...)` in page logic and invoke `lx.app.exit()`
125
- * only after the user confirms.
126
- */
127
- exit(): void;
128
- /**
129
- * Capture the host app's window as a PNG and save it to the lxapp temp
130
- * directory.
131
- *
132
- * App-level semantics — one level above any page/WebView capture: the image
133
- * is what the user currently sees of the whole app, including host-drawn
134
- * navigation chrome, native overlays, and every composited WebView. Because
135
- * that view can include other lxapps' UI, this API is only available to the
136
- * home lxapp; other lxapps receive a permission error.
137
- */
138
- screenshot(options?: AppScreenshotOptions): Promise<AppScreenshotResult>;
139
- /**
140
- * Set the app-icon badge — e.g. an unread count.
141
- *
142
- * Cross-platform: the dock (macOS), the taskbar (Windows), and the home /
143
- * launcher icon (iOS, Android). Pass `null` or an empty string to clear it.
144
- * On platforms where it is not wired this is a no-op (it never throws), so it
145
- * is safe to call from portable code.
146
- */
147
- setBadge(value: string | number | null): void;
148
- }
149
- export interface AppLifecycleEventArgs {
150
- source: 'host' | 'lxapp';
151
- reason: 'foreground' | 'background' | 'screenshot' | 'open' | 'close' | 'switch_back' | 'switch_away';
152
- }
153
- export interface AppLaunchOptions {
154
- path?: string;
155
- query?: Record<string, string>;
156
- scene?: number;
157
- referrerInfo?: {
158
- appId?: string;
159
- extraData?: Record<string, unknown>;
160
- };
161
- }
162
- export interface AppConfig {
163
- globalData?: Record<string, unknown>;
164
- onLaunch?: (options?: AppLaunchOptions) => void | Promise<void>;
165
- onShow?: (args?: AppLifecycleEventArgs) => void | Promise<void>;
166
- onHide?: (args?: AppLifecycleEventArgs) => void | Promise<void>;
167
- onUserCaptureScreen?: () => void | Promise<void>;
168
- [key: string]: unknown;
169
- }
170
- export interface AppInstance extends AppConfig {
171
- globalData: Record<string, unknown>;
172
- }
173
- export interface PageLoadOptions {
174
- [key: string]: string | undefined;
175
- }
176
- export interface PageConfig<TData extends Record<string, unknown> = Record<string, unknown>> {
177
- data?: TData;
178
- onLoad?: (options?: PageLoadOptions) => void | Promise<void>;
179
- onShow?: () => void | Promise<void>;
180
- onReady?: () => void | Promise<void>;
181
- onHide?: () => void | Promise<void>;
182
- onUnload?: () => void | Promise<void>;
183
- onPullDownRefresh?: () => void | Promise<void>;
184
- [key: string]: unknown;
185
- }
186
- export type SurfaceCloseReason = 'user' | 'programmatic' | 'owner_closed' | 'app_closed' | 'failed'
187
- /**
188
- * The SDK reclaimed a long-hidden overlay surface for resource reasons.
189
- * Treat as a normal close: the page instance is gone; further postMessage /
190
- * show / hide calls will fail. The opener may immediately reopen if needed.
191
- */
192
- | 'reclaimed' | 'unknown';
193
- export interface SurfaceClosedEvent {
194
- id: string;
195
- kind: 'overlay' | 'window';
196
- reason: SurfaceCloseReason;
197
- }
198
- /**
199
- * Detail payload for `onShow` / `onHide` events. `source` identifies which
200
- * Surface object initiated the visibility change so observers can
201
- * distinguish self-driven transitions from peer-driven ones (e.g. an opener
202
- * UI that wants to update its own button state only when the page side
203
- * toggled visibility).
204
- */
205
- export interface SurfaceVisibilityEvent {
206
- id: string;
207
- kind: 'overlay' | 'window';
208
- source: 'opener' | 'page';
209
- }
210
- export interface SurfaceHandle {
211
- readonly id: string;
212
- /**
213
- * Show a host-managed surface. Dynamic page/url surfaces return a Promise;
214
- * host-declared surfaces may complete synchronously.
215
- */
216
- show(): void | Promise<void>;
217
- /**
218
- * Hide without destroying user-visible state when the platform supports it.
219
- */
220
- hide(): void | Promise<void>;
221
- /**
222
- * Close or hide the surface depending on how it is managed by the host.
223
- */
224
- close(): void | Promise<void>;
225
- }
226
- export interface Surface extends SurfaceHandle {
227
- readonly kind: 'overlay' | 'window';
228
- /**
229
- * Last-known visibility, kept in sync with the native side via show/hide
230
- * events. False once the surface has been closed. Safe to bind into
231
- * declarative UI; for event-driven updates subscribe via `onShow`/`onHide`.
232
- */
233
- readonly visible: boolean;
234
- /**
235
- * True until `close()` fires. After close the surface is detached and the
236
- * page instance is being torn down; further `show()` / `hide()` calls will
237
- * reject.
238
- */
239
- readonly alive: boolean;
240
- /**
241
- * Sends a message to the other side of a page surface.
242
- *
243
- * For the opener this targets the opened page. For the opened page this
244
- * targets the opener. URL surfaces have no page-side receiver.
245
- */
246
- postMessage(message: unknown): void;
247
- onMessage(handler: (message: unknown) => void): () => void;
248
- onClose(handler: (event: SurfaceClosedEvent) => void): () => void;
249
- /**
250
- * Fires when the surface transitions to visible, regardless of whether
251
- * `show()` was called on this side or on the peer. Returns an unsubscribe
252
- * function. Only fires on real state changes — calling `show()` on an
253
- * already-visible surface is a no-op for listeners.
254
- */
255
- onShow(handler: (event: SurfaceVisibilityEvent) => void): () => void;
256
- /**
257
- * Fires when the surface transitions to hidden, regardless of which side
258
- * triggered it. Returns an unsubscribe function. Only fires on real state
259
- * changes.
260
- */
261
- onHide(handler: (event: SurfaceVisibilityEvent) => void): () => void;
262
- close(): Promise<void>;
263
- /**
264
- * Toggle the surface to visible without tearing it down. The page instance
265
- * and its state survive a hide / show round-trip — only close() actually
266
- * destroys the surface and fires the onClose listener. Idempotent: calling
267
- * on an already-visible surface resolves without firing `onShow`.
268
- */
269
- show(): Promise<void>;
270
- /**
271
- * Hide the surface without destroying it. The page instance stays mounted,
272
- * so a subsequent show() restores the same scroll position, form input,
273
- * and JS state. Hidden surfaces still receive postMessage but are not
274
- * visible to the user. Idempotent.
275
- */
276
- hide(): Promise<void>;
277
- }
278
- export interface PageMessagePort {
279
- postMessage(message: unknown): void;
280
- onMessage(handler: (message: unknown) => void): () => void;
281
- }
282
- export interface PageInstance<TData extends Record<string, unknown> = Record<string, unknown>> {
283
- data: TData;
284
- route: string;
285
- /**
286
- * Available when this page was opened as a surface via `lx.openSurface(...)`.
287
- */
288
- surface?: Surface;
289
- /**
290
- * Available when this page was opened by `lx.navigateTo(...)`.
291
- */
292
- opener?: PageMessagePort;
293
- setData(data: Partial<TData> | Record<string, unknown>, callback?: () => void): void;
294
- }
295
- /**
296
- * Injected by the runtime into methods listed in `stream_handlers` page metadata.
297
- *
298
- * Use this when your async source uses callbacks rather than an async iterator.
299
- * For the generator form (`async *method()`), no handle is needed — the runtime
300
- * pumps the generator automatically.
301
- */
302
- export interface StreamHandle<T = unknown> {
303
- /** Send a chunk to View. */
304
- send(payload: T): void;
305
- /** End the stream with an optional final value. */
306
- end(result?: unknown): void;
307
- /** End the stream with an error. */
308
- error(code: string, message?: string): void;
309
- }
310
- /**
311
- * Injected by the runtime as the second parameter when View opens a channel.
312
- *
313
- * Use `ch.send()` to push data to View, `ch.on()` to receive data/close
314
- * events from View, and `ch.close()` to shut down the channel.
315
- */
316
- export interface ChannelHandle<TSend = unknown, TReceive = unknown> {
317
- /** Push a message to View. */
318
- send(payload: TSend): void;
319
- /** Close the channel from Logic side. */
320
- close(code?: string, reason?: string): void;
321
- /** Register a listener for incoming events. */
322
- on(event: 'data', handler: (payload: TReceive) => void): void;
323
- on(event: 'close', handler: (info: {
324
- code: string;
325
- reason: string;
326
- }) => void): void;
327
- }
328
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB;;;;;;;;;;;OAWG;IACH,KAAK,IAAI,iBAAiB,CAAC;CAC5B;AAED,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,SAAS,CAAC;AAE7D,MAAM,MAAM,wBAAwB,GAChC;IACE,SAAS,EAAE,KAAK,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,GACD;IACE,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEN,MAAM,MAAM,kBAAkB,GAC1B;IACE,KAAK,EAAE,aAAa,CAA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,MAAM,GAAG,IAAI,CAAC;CAC7C;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa,CAAC,KAAK,GAAG,OAAO,EAAE,QAAQ,GAAG,OAAO;IAChE,8BAA8B;IAC9B,IAAI,CAAC,OAAO,EAAE,KAAK,GAAG,IAAI,CAAC;IAC3B,yCAAyC;IACzC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,+CAA+C;IAC/C,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI,CAAC;IAC9D,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,GAAG,IAAI,CAAC;CACrF"}
package/dist/app/index.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Host app, app lifecycle, and page instance APIs.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Device action APIs.
3
- */
4
- export interface MakePhoneCallOptions {
5
- phoneNumber: string;
6
- }
7
- //# sourceMappingURL=actions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/device/actions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Device action APIs.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=actions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/device/actions.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -1,5 +0,0 @@
1
- export * from './info';
2
- export * from './actions';
3
- export * from './wifi';
4
- export * from './network';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/device/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./info"), exports);
18
- __exportStar(require("./actions"), exports);
19
- __exportStar(require("./wifi"), exports);
20
- __exportStar(require("./network"), exports);
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/device/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,yCAAuB;AACvB,4CAA0B"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Device info APIs.
3
- */
4
- export interface DeviceInfo {
5
- brand: string;
6
- model: string;
7
- marketName: string;
8
- osName: string;
9
- osVersion: string;
10
- }
11
- export interface ScreenInfo {
12
- width: number;
13
- height: number;
14
- scale: number;
15
- }
16
- //# sourceMappingURL=info.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../src/device/info.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Device info APIs.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=info.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/device/info.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Network status APIs.
3
- */
4
- export type NetworkType = 'none' | 'unknown' | 'wifi' | '2g' | '3g' | '4g' | '5g' | 'ethernet';
5
- export interface NetworkInfo {
6
- isConnected: boolean;
7
- networkType: NetworkType;
8
- ipv4: string[];
9
- ipv6: string[];
10
- }
11
- export type NetworkChangeCallback = (info: NetworkInfo) => void;
12
- //# sourceMappingURL=network.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../src/device/network.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,SAAS,GACT,MAAM,GACN,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,UAAU,CAAC;AAEf,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Network status APIs.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=network.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network.js","sourceRoot":"","sources":["../../src/device/network.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -1,20 +0,0 @@
1
- /**
2
- * Wi-Fi APIs.
3
- */
4
- export interface WifiInfo {
5
- SSID: string;
6
- BSSID?: string;
7
- secure: boolean;
8
- signalStrength: number;
9
- frequency?: number;
10
- }
11
- export interface WifiConnectedInfo extends WifiInfo {
12
- connected: boolean;
13
- state: string;
14
- }
15
- export interface ConnectWifiOptions {
16
- SSID: string;
17
- password?: string;
18
- }
19
- export type WifiConnectedCallback = (info: WifiConnectedInfo) => void;
20
- //# sourceMappingURL=wifi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wifi.d.ts","sourceRoot":"","sources":["../../src/device/wifi.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Wi-Fi APIs.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=wifi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wifi.js","sourceRoot":"","sources":["../../src/device/wifi.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Display and orientation APIs.
3
- */
4
- export type DeviceOrientation = "portrait" | "landscape";
5
- export interface DeviceOrientationChangeEvent {
6
- value: DeviceOrientation;
7
- }
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/display/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,WAAW,CAAC;AAEzD,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,iBAAiB,CAAC;CAC1B"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Display and orientation APIs.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/display/index.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Runtime environment constants.
3
- */
4
- export interface LxEnv {
5
- USER_DATA_PATH: string;
6
- USER_CACHE_PATH: string;
7
- }
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/env/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,KAAK;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB"}
package/dist/env/index.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Runtime environment constants.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/env/index.ts"],"names":[],"mappings":";AAAA;;GAEG"}