@namiml/web-sdk 3.4.0-dev.202605180118 → 3.4.0-dev.202605190129

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog - Web SDK
2
2
 
3
+ ## Unreleased
4
+
5
+ ### Bug Fixes
6
+ - Recognize Xbox controller B button (`BrowserBack`, `XF86Back`, keyCode 166) as the paywall Back key, so onboarding flows no longer reload the host SPA on Xbox UWP / Edge WebView. Back is still routed through the campaign's `__remoteback__` action — if no action is configured on the current flow step, the event is swallowed (no-op) the same as before, just without the browser falling through to `history.back`. (NAM-79)
7
+
8
+ ### New Features
9
+ - Support `modal` page presentation style: centered overlay with dim backdrop, internal scrolling capped at 85vh, 90vw on phone and 50vw on tablet/desktop/TV. Backdrop click and Escape dismiss the modal. (NAM-62)
10
+
3
11
  ## 1.7.8
4
12
  **Release Date:** February 17, 2026
5
13
 
@@ -23,11 +23,14 @@ declare class PaywallComponent extends LitElement {
23
23
  private _sheetIsDragging;
24
24
  private _dismissThreshold;
25
25
  constructor(type: string | undefined, value: string, context: NamiPaywallLaunchContext);
26
+ private applyPresentationHostClasses;
26
27
  setPaywallData(): void;
27
28
  private getPresentationStyle;
28
29
  private get isHalfSheet();
29
30
  private get isSheet();
30
31
  private get isOverlaySheet();
32
+ private get isModal();
33
+ private get isOverlay();
31
34
  connectedCallback(): void;
32
35
  disconnectedCallback(): void;
33
36
  private _stylesAlreadySaved;
@@ -50,7 +53,9 @@ declare class PaywallComponent extends LitElement {
50
53
  flowNavigateToScreen(next: IPaywall, animation: NamiFlowAnimation): Promise<void>;
51
54
  getSelectedSlideIndexForCurrentCarousel(): number | undefined;
52
55
  private renderFlow;
56
+ private renderFlowContainer;
53
57
  private renderHalfSheet;
58
+ private renderModal;
54
59
  private renderPaywall;
55
60
  render(): TemplateResult;
56
61
  }
@@ -0,0 +1,2 @@
1
+ import { type CSSResult } from 'lit';
2
+ export declare const MODAL_CSS: CSSResult;