@livx.cc/native-kit 0.45.11 → 0.45.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livx.cc/native-kit",
3
- "version": "0.45.11",
3
+ "version": "0.45.12",
4
4
  "description": "Isomorphic native-capabilities kit for PWAs — same API in browser and in an appwrap native shell. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "author": "Elya Livshitz",
@@ -189,6 +189,7 @@ export class WebAdapter implements NativeKitAdapter {
189
189
  case 'toast.show':
190
190
  this.showToast(String(p.message ?? ''), p.duration === 'long' ? 3500 : 2000);
191
191
  return undefined as T;
192
+ case 'ui.splash.hide': // no launch splash on the web — nothing to hold
192
193
  case 'ui.statusBar.setStyle':
193
194
  return undefined as T; // no-op on web; capability reported as 'none'
194
195
  case 'ui.safeArea':
package/src/modules/ui.ts CHANGED
@@ -81,6 +81,13 @@ export class UiModule {
81
81
  return this.kit.invoke('ui.keepAwake', { on });
82
82
  }
83
83
 
84
+ /** End the shell's `splashHold`: call once the page has painted its first meaningful frame. The
85
+ * launch splash stays over the WebView until then (or its timeout). Safe everywhere — a no-op on
86
+ * the web and on a shell that holds nothing. */
87
+ hideSplash(): Promise<void> {
88
+ return this.kit.invoke('ui.splash.hide');
89
+ }
90
+
84
91
  // ── dialogs ──────────────────────────────────────────────────────────
85
92
 
86
93
  alert(opts: AlertOptions): Promise<void> {