@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.d.cts CHANGED
@@ -398,6 +398,20 @@ interface ScrollConfig {
398
398
  loadingMore?: boolean;
399
399
  };
400
400
  }
401
+ /**
402
+ * Which system bars (status bar / navigation bar) to hide while this
403
+ * Mini-App is active. Any key omitted leaves that bar's current
404
+ * (host-driven) state untouched — pass only the bar(s) you want to
405
+ * override. The host resets to its own default the moment this Mini-App
406
+ * is no longer the active screen (exit, or the app being backgrounded/
407
+ * locked) — an override never outlives this Mini-App's own session.
408
+ */
409
+ interface SystemBarsHiddenConfig {
410
+ /** Hide/show the physical status bar. */
411
+ statusBar?: boolean;
412
+ /** Hide/show the physical navigation bar (3-button or gesture bar). */
413
+ navigationBar?: boolean;
414
+ }
401
415
  /**
402
416
  * Result of a `sdk.media.saveImage` call.
403
417
  */
@@ -658,6 +672,10 @@ type BridgeMessageType = {
658
672
  type: "SET_SCROLL_CONFIG";
659
673
  payload: ScrollConfig;
660
674
  callbackId: string;
675
+ } | {
676
+ type: "SET_SYSTEM_BARS_HIDDEN";
677
+ payload: SystemBarsHiddenConfig;
678
+ callbackId: string;
661
679
  } | {
662
680
  type: "SDK_ROUTING_GETROUTE";
663
681
  payload: {
@@ -1658,6 +1676,18 @@ declare class MiniAppSDK {
1658
1676
  * @param config Scroll configuration for top/bottom detection.
1659
1677
  */
1660
1678
  setScrollConfig: (config: ScrollConfig) => Promise<void>;
1679
+ /**
1680
+ * Shows or hides the host's status bar / navigation bar while this
1681
+ * Mini-App is active — e.g. an immersive full-bleed map or video view.
1682
+ * Merges into any existing override: a key you omit keeps its current
1683
+ * value, pass `false` explicitly to un-hide a bar you'd previously
1684
+ * hidden. The host resets any override back to its own default the
1685
+ * moment this Mini-App stops being the active screen (exit, or the
1686
+ * app backgrounding/locking) — it never outlives this session and can
1687
+ * never keep a bar visible during an actual lock/security screen.
1688
+ * @param config Which bars to hide (`true`) or explicitly show (`false`).
1689
+ */
1690
+ setSystemBarsHidden: (config: SystemBarsHiddenConfig) => Promise<void>;
1661
1691
  }>;
1662
1692
  /**
1663
1693
  * Debug controls
@@ -1993,4 +2023,4 @@ interface BroadcastWsServiceClient<TMessage extends WsMessage = WsMessage> {
1993
2023
  declare function createWsService<TMessage extends WsMessage = WsMessage>(options: CreateChannelWsServiceOptions<TMessage>): WsServiceClient<TMessage>;
1994
2024
  declare function createWsService<TMessage extends WsMessage = WsMessage>(options: CreateBroadcastWsServiceOptions<TMessage>): BroadcastWsServiceClient<TMessage>;
1995
2025
 
1996
- export { type ApiServiceClient, type BridgeMessageType, BridgeMocker, type BridgeMockerProps, type BroadcastWsServiceClient, type CenterCallbackParams, type CreateApiServiceOptions, type CreateBroadcastWsServiceOptions, type CreateChannelWsServiceOptions, type CreateWsServiceOptions, type CustomControl, DebugConsole, type DebugConsoleProps, type DeclarativeJourneyOptions, type DrawerState, type EtaData, type FidelityTransactionTypeType, type FlyToParams, GeolocationEvent, GlobalEvent, type HapticStyleType, type IAchievement, type IBridgeEnvelope, type IContextState, type IEdgeInsets, type IFidelityBalance, type IFidelityHistoryParams, type IFidelityTransaction, type IGenerateQrCodeOptions, type IInitializationOptions, type IInitializationResponse, type ILocationData, type INetworkOptions, type INetworkResponse, type IPaymentRequest, type IPickImageResult, type ISaveImageResult, type IUserProfile, type LiveRoutingOptions, type LiveRoutingResult, type LocationStreamConfig, Map, MapControls, MapControlsContext, type MapControlsProps, type MapControlsState, type MapInsets, MapMenu, MapMenuDivider, type MapMenuDividerProps, MapMenuFooter, type MapMenuFooterProps, MapMenuItem, type MapMenuItemProps, type MapMenuProps, MapMenuTitle, type MapMenuTitleProps, type MapProps, type MenuItem, MiniAppSDK, MockLocationContext, type MockLocationContextType, type NetworkMethodType, type POI, PullToRefresh, type PullToRefreshIndicatorState, type PullToRefreshProps, QRScanner, type QRScannerProps, RouteLayer, type RouteLayerProps, RouteRequest, RouteResponse, RouteStep, type SDKEvent, SDKMapProvider, SDKProvider, type SDKProviderProps, type ScrollConfig, type StreamAccelerometerData, type StreamHeadingData, type StreamLocationData, type StreamUpdatePayload, type SwipeAxisPriority, SwipeCarousel, type SwipeCarouselItem, type SwipeCarouselProps, type SwipeCarouselVerticalDragConfig, UIEvent, type UseJourneyOptions, type UseJourneyResult, type UserLocationState, type WsConnectionStatus, type WsMessage, type WsServiceClient, createApiService, createWsService, sdk as default, renderMap, sdk, useIsMocked, useJourney, useLiveRouting, useMapControls, useMockLocation, useRoute, useTapAction, useTrimmedRoute, useUserLocation };
2026
+ export { type ApiServiceClient, type BridgeMessageType, BridgeMocker, type BridgeMockerProps, type BroadcastWsServiceClient, type CenterCallbackParams, type CreateApiServiceOptions, type CreateBroadcastWsServiceOptions, type CreateChannelWsServiceOptions, type CreateWsServiceOptions, type CustomControl, DebugConsole, type DebugConsoleProps, type DeclarativeJourneyOptions, type DrawerState, type EtaData, type FidelityTransactionTypeType, type FlyToParams, GeolocationEvent, GlobalEvent, type HapticStyleType, type IAchievement, type IBridgeEnvelope, type IContextState, type IEdgeInsets, type IFidelityBalance, type IFidelityHistoryParams, type IFidelityTransaction, type IGenerateQrCodeOptions, type IInitializationOptions, type IInitializationResponse, type ILocationData, type INetworkOptions, type INetworkResponse, type IPaymentRequest, type IPickImageResult, type ISaveImageResult, type IUserProfile, type LiveRoutingOptions, type LiveRoutingResult, type LocationStreamConfig, Map, MapControls, MapControlsContext, type MapControlsProps, type MapControlsState, type MapInsets, MapMenu, MapMenuDivider, type MapMenuDividerProps, MapMenuFooter, type MapMenuFooterProps, MapMenuItem, type MapMenuItemProps, type MapMenuProps, MapMenuTitle, type MapMenuTitleProps, type MapProps, type MenuItem, MiniAppSDK, MockLocationContext, type MockLocationContextType, type NetworkMethodType, type POI, PullToRefresh, type PullToRefreshIndicatorState, type PullToRefreshProps, QRScanner, type QRScannerProps, RouteLayer, type RouteLayerProps, RouteRequest, RouteResponse, RouteStep, type SDKEvent, SDKMapProvider, SDKProvider, type SDKProviderProps, type ScrollConfig, type StreamAccelerometerData, type StreamHeadingData, type StreamLocationData, type StreamUpdatePayload, type SwipeAxisPriority, SwipeCarousel, type SwipeCarouselItem, type SwipeCarouselProps, type SwipeCarouselVerticalDragConfig, type SystemBarsHiddenConfig, UIEvent, type UseJourneyOptions, type UseJourneyResult, type UserLocationState, type WsConnectionStatus, type WsMessage, type WsServiceClient, createApiService, createWsService, sdk as default, renderMap, sdk, useIsMocked, useJourney, useLiveRouting, useMapControls, useMockLocation, useRoute, useTapAction, useTrimmedRoute, useUserLocation };
package/dist/index.d.ts CHANGED
@@ -398,6 +398,20 @@ interface ScrollConfig {
398
398
  loadingMore?: boolean;
399
399
  };
400
400
  }
401
+ /**
402
+ * Which system bars (status bar / navigation bar) to hide while this
403
+ * Mini-App is active. Any key omitted leaves that bar's current
404
+ * (host-driven) state untouched — pass only the bar(s) you want to
405
+ * override. The host resets to its own default the moment this Mini-App
406
+ * is no longer the active screen (exit, or the app being backgrounded/
407
+ * locked) — an override never outlives this Mini-App's own session.
408
+ */
409
+ interface SystemBarsHiddenConfig {
410
+ /** Hide/show the physical status bar. */
411
+ statusBar?: boolean;
412
+ /** Hide/show the physical navigation bar (3-button or gesture bar). */
413
+ navigationBar?: boolean;
414
+ }
401
415
  /**
402
416
  * Result of a `sdk.media.saveImage` call.
403
417
  */
@@ -658,6 +672,10 @@ type BridgeMessageType = {
658
672
  type: "SET_SCROLL_CONFIG";
659
673
  payload: ScrollConfig;
660
674
  callbackId: string;
675
+ } | {
676
+ type: "SET_SYSTEM_BARS_HIDDEN";
677
+ payload: SystemBarsHiddenConfig;
678
+ callbackId: string;
661
679
  } | {
662
680
  type: "SDK_ROUTING_GETROUTE";
663
681
  payload: {
@@ -1658,6 +1676,18 @@ declare class MiniAppSDK {
1658
1676
  * @param config Scroll configuration for top/bottom detection.
1659
1677
  */
1660
1678
  setScrollConfig: (config: ScrollConfig) => Promise<void>;
1679
+ /**
1680
+ * Shows or hides the host's status bar / navigation bar while this
1681
+ * Mini-App is active — e.g. an immersive full-bleed map or video view.
1682
+ * Merges into any existing override: a key you omit keeps its current
1683
+ * value, pass `false` explicitly to un-hide a bar you'd previously
1684
+ * hidden. The host resets any override back to its own default the
1685
+ * moment this Mini-App stops being the active screen (exit, or the
1686
+ * app backgrounding/locking) — it never outlives this session and can
1687
+ * never keep a bar visible during an actual lock/security screen.
1688
+ * @param config Which bars to hide (`true`) or explicitly show (`false`).
1689
+ */
1690
+ setSystemBarsHidden: (config: SystemBarsHiddenConfig) => Promise<void>;
1661
1691
  }>;
1662
1692
  /**
1663
1693
  * Debug controls
@@ -1993,4 +2023,4 @@ interface BroadcastWsServiceClient<TMessage extends WsMessage = WsMessage> {
1993
2023
  declare function createWsService<TMessage extends WsMessage = WsMessage>(options: CreateChannelWsServiceOptions<TMessage>): WsServiceClient<TMessage>;
1994
2024
  declare function createWsService<TMessage extends WsMessage = WsMessage>(options: CreateBroadcastWsServiceOptions<TMessage>): BroadcastWsServiceClient<TMessage>;
1995
2025
 
1996
- export { type ApiServiceClient, type BridgeMessageType, BridgeMocker, type BridgeMockerProps, type BroadcastWsServiceClient, type CenterCallbackParams, type CreateApiServiceOptions, type CreateBroadcastWsServiceOptions, type CreateChannelWsServiceOptions, type CreateWsServiceOptions, type CustomControl, DebugConsole, type DebugConsoleProps, type DeclarativeJourneyOptions, type DrawerState, type EtaData, type FidelityTransactionTypeType, type FlyToParams, GeolocationEvent, GlobalEvent, type HapticStyleType, type IAchievement, type IBridgeEnvelope, type IContextState, type IEdgeInsets, type IFidelityBalance, type IFidelityHistoryParams, type IFidelityTransaction, type IGenerateQrCodeOptions, type IInitializationOptions, type IInitializationResponse, type ILocationData, type INetworkOptions, type INetworkResponse, type IPaymentRequest, type IPickImageResult, type ISaveImageResult, type IUserProfile, type LiveRoutingOptions, type LiveRoutingResult, type LocationStreamConfig, Map, MapControls, MapControlsContext, type MapControlsProps, type MapControlsState, type MapInsets, MapMenu, MapMenuDivider, type MapMenuDividerProps, MapMenuFooter, type MapMenuFooterProps, MapMenuItem, type MapMenuItemProps, type MapMenuProps, MapMenuTitle, type MapMenuTitleProps, type MapProps, type MenuItem, MiniAppSDK, MockLocationContext, type MockLocationContextType, type NetworkMethodType, type POI, PullToRefresh, type PullToRefreshIndicatorState, type PullToRefreshProps, QRScanner, type QRScannerProps, RouteLayer, type RouteLayerProps, RouteRequest, RouteResponse, RouteStep, type SDKEvent, SDKMapProvider, SDKProvider, type SDKProviderProps, type ScrollConfig, type StreamAccelerometerData, type StreamHeadingData, type StreamLocationData, type StreamUpdatePayload, type SwipeAxisPriority, SwipeCarousel, type SwipeCarouselItem, type SwipeCarouselProps, type SwipeCarouselVerticalDragConfig, UIEvent, type UseJourneyOptions, type UseJourneyResult, type UserLocationState, type WsConnectionStatus, type WsMessage, type WsServiceClient, createApiService, createWsService, sdk as default, renderMap, sdk, useIsMocked, useJourney, useLiveRouting, useMapControls, useMockLocation, useRoute, useTapAction, useTrimmedRoute, useUserLocation };
2026
+ export { type ApiServiceClient, type BridgeMessageType, BridgeMocker, type BridgeMockerProps, type BroadcastWsServiceClient, type CenterCallbackParams, type CreateApiServiceOptions, type CreateBroadcastWsServiceOptions, type CreateChannelWsServiceOptions, type CreateWsServiceOptions, type CustomControl, DebugConsole, type DebugConsoleProps, type DeclarativeJourneyOptions, type DrawerState, type EtaData, type FidelityTransactionTypeType, type FlyToParams, GeolocationEvent, GlobalEvent, type HapticStyleType, type IAchievement, type IBridgeEnvelope, type IContextState, type IEdgeInsets, type IFidelityBalance, type IFidelityHistoryParams, type IFidelityTransaction, type IGenerateQrCodeOptions, type IInitializationOptions, type IInitializationResponse, type ILocationData, type INetworkOptions, type INetworkResponse, type IPaymentRequest, type IPickImageResult, type ISaveImageResult, type IUserProfile, type LiveRoutingOptions, type LiveRoutingResult, type LocationStreamConfig, Map, MapControls, MapControlsContext, type MapControlsProps, type MapControlsState, type MapInsets, MapMenu, MapMenuDivider, type MapMenuDividerProps, MapMenuFooter, type MapMenuFooterProps, MapMenuItem, type MapMenuItemProps, type MapMenuProps, MapMenuTitle, type MapMenuTitleProps, type MapProps, type MenuItem, MiniAppSDK, MockLocationContext, type MockLocationContextType, type NetworkMethodType, type POI, PullToRefresh, type PullToRefreshIndicatorState, type PullToRefreshProps, QRScanner, type QRScannerProps, RouteLayer, type RouteLayerProps, RouteRequest, RouteResponse, RouteStep, type SDKEvent, SDKMapProvider, SDKProvider, type SDKProviderProps, type ScrollConfig, type StreamAccelerometerData, type StreamHeadingData, type StreamLocationData, type StreamUpdatePayload, type SwipeAxisPriority, SwipeCarousel, type SwipeCarouselItem, type SwipeCarouselProps, type SwipeCarouselVerticalDragConfig, type SystemBarsHiddenConfig, UIEvent, type UseJourneyOptions, type UseJourneyResult, type UserLocationState, type WsConnectionStatus, type WsMessage, type WsServiceClient, createApiService, createWsService, sdk as default, renderMap, sdk, useIsMocked, useJourney, useLiveRouting, useMapControls, useMockLocation, useRoute, useTapAction, useTrimmedRoute, useUserLocation };
package/dist/index.js CHANGED
@@ -3441,7 +3441,7 @@ var loadImage2 = (src) => new Promise((resolve, reject) => {
3441
3441
  });
3442
3442
 
3443
3443
  // package.json
3444
- var version = "0.10.0";
3444
+ var version = "0.11.0";
3445
3445
 
3446
3446
  // src/sdk.ts
3447
3447
  function deepFreeze(obj) {
@@ -3722,7 +3722,19 @@ var MiniAppSDK = class {
3722
3722
  * Configures native scroll behaviors like Pull-to-Refresh and Infinite Scroll.
3723
3723
  * @param config Scroll configuration for top/bottom detection.
3724
3724
  */
3725
- setScrollConfig: (config) => this.bridge.send("SET_SCROLL_CONFIG", config)
3725
+ setScrollConfig: (config) => this.bridge.send("SET_SCROLL_CONFIG", config),
3726
+ /**
3727
+ * Shows or hides the host's status bar / navigation bar while this
3728
+ * Mini-App is active — e.g. an immersive full-bleed map or video view.
3729
+ * Merges into any existing override: a key you omit keeps its current
3730
+ * value, pass `false` explicitly to un-hide a bar you'd previously
3731
+ * hidden. The host resets any override back to its own default the
3732
+ * moment this Mini-App stops being the active screen (exit, or the
3733
+ * app backgrounding/locking) — it never outlives this session and can
3734
+ * never keep a bar visible during an actual lock/security screen.
3735
+ * @param config Which bars to hide (`true`) or explicitly show (`false`).
3736
+ */
3737
+ setSystemBarsHidden: (config) => this.bridge.send("SET_SYSTEM_BARS_HIDDEN", config)
3726
3738
  });
3727
3739
  /**
3728
3740
  * Debug controls
@@ -4292,7 +4304,7 @@ var BridgeMocker = ({
4292
4304
  transactionId: `tx_${Math.random().toString(36).slice(2)}`
4293
4305
  });
4294
4306
  }
4295
- if (type === "TRIGGER_HAPTIC" || type === "EXIT" || type === "UPDATE_CONTEXT") {
4307
+ if (type === "TRIGGER_HAPTIC" || type === "EXIT" || type === "UPDATE_CONTEXT" || type === "SET_SYSTEM_BARS_HIDDEN") {
4296
4308
  return Promise.resolve({ success: true });
4297
4309
  }
4298
4310
  return originalSend(type, payload);