@cloudparse/up-miniapps-sdk 0.10.0 → 0.11.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/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +15 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3665,7 +3665,7 @@ var RoutingService = {
|
|
|
3665
3665
|
};
|
|
3666
3666
|
|
|
3667
3667
|
// package.json
|
|
3668
|
-
var version = "0.
|
|
3668
|
+
var version = "0.11.0";
|
|
3669
3669
|
|
|
3670
3670
|
// src/sdk.ts
|
|
3671
3671
|
function deepFreeze(obj) {
|
|
@@ -3946,7 +3946,19 @@ var MiniAppSDK = class {
|
|
|
3946
3946
|
* Configures native scroll behaviors like Pull-to-Refresh and Infinite Scroll.
|
|
3947
3947
|
* @param config Scroll configuration for top/bottom detection.
|
|
3948
3948
|
*/
|
|
3949
|
-
setScrollConfig: (config) => this.bridge.send("SET_SCROLL_CONFIG", config)
|
|
3949
|
+
setScrollConfig: (config) => this.bridge.send("SET_SCROLL_CONFIG", config),
|
|
3950
|
+
/**
|
|
3951
|
+
* Shows or hides the host's status bar / navigation bar while this
|
|
3952
|
+
* Mini-App is active — e.g. an immersive full-bleed map or video view.
|
|
3953
|
+
* Merges into any existing override: a key you omit keeps its current
|
|
3954
|
+
* value, pass `false` explicitly to un-hide a bar you'd previously
|
|
3955
|
+
* hidden. The host resets any override back to its own default the
|
|
3956
|
+
* moment this Mini-App stops being the active screen (exit, or the
|
|
3957
|
+
* app backgrounding/locking) — it never outlives this session and can
|
|
3958
|
+
* never keep a bar visible during an actual lock/security screen.
|
|
3959
|
+
* @param config Which bars to hide (`true`) or explicitly show (`false`).
|
|
3960
|
+
*/
|
|
3961
|
+
setSystemBarsHidden: (config) => this.bridge.send("SET_SYSTEM_BARS_HIDDEN", config)
|
|
3950
3962
|
});
|
|
3951
3963
|
/**
|
|
3952
3964
|
* Debug controls
|
|
@@ -4516,7 +4528,7 @@ var BridgeMocker = ({
|
|
|
4516
4528
|
transactionId: `tx_${Math.random().toString(36).slice(2)}`
|
|
4517
4529
|
});
|
|
4518
4530
|
}
|
|
4519
|
-
if (type === "TRIGGER_HAPTIC" || type === "EXIT" || type === "UPDATE_CONTEXT") {
|
|
4531
|
+
if (type === "TRIGGER_HAPTIC" || type === "EXIT" || type === "UPDATE_CONTEXT" || type === "SET_SYSTEM_BARS_HIDDEN") {
|
|
4520
4532
|
return Promise.resolve({ success: true });
|
|
4521
4533
|
}
|
|
4522
4534
|
return originalSend(type, payload);
|