@namiml/web-sdk 3.4.0-dev.202605201800 → 3.4.0-dev.202605261547

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.
@@ -25,6 +25,7 @@ export declare abstract class NamiElement<C extends TBaseComponent = TBaseCompon
25
25
  abstract component: C;
26
26
  protected willUpdate(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
27
27
  private applyTestId;
28
+ private applySpeechLabel;
28
29
  protected animationStyles(): CSSResult;
29
30
  protected getInstanceStyles(): CSSResult[];
30
31
  }
@@ -22,6 +22,8 @@ declare class PaywallComponent extends LitElement {
22
22
  private _sheetDragStartY;
23
23
  private _sheetIsDragging;
24
24
  private _dismissThreshold;
25
+ private _detachFocusSpeechListeners?;
26
+ private _boundHandleKeyDownEvent;
25
27
  constructor(type: string | undefined, value: string, context: NamiPaywallLaunchContext);
26
28
  private applyPresentationHostClasses;
27
29
  setPaywallData(): void;
@@ -10,11 +10,14 @@ export declare class NamiPaywallScreen extends LitElement {
10
10
  timeSpentOnPaywall: number;
11
11
  flow?: NamiFlow;
12
12
  private teardownEvent;
13
+ private activeTemplate;
13
14
  static styles: import("lit").CSSResult;
14
15
  connectedCallback(): void;
15
16
  disconnectedCallback(): void;
16
17
  private userInteractionListener;
17
18
  firstUpdated(): void;
19
+ protected updated(): void;
20
+ private updateActiveRenderRoot;
18
21
  private postImpression;
19
22
  private postPaywallScreenData;
20
23
  private getTemplate;
@@ -6,18 +6,15 @@ export declare class NamiButton extends NamiElement {
6
6
  inFocusedState: boolean;
7
7
  scaleFactor: number;
8
8
  minSDKVersion: TSemverObj;
9
- /** Tracks which nami-button most recently received focus so `_handleFocus`
10
- * can dedupe `cancelSpeech()` calls — only cancelling when focus actually
11
- * moves to a different button, not when the same button re-fires focus
12
- * during re-renders (e.g. product buttons after SKU data resolves). */
13
- private static _lastFocusedButton;
9
+ private defaultFocused;
10
+ private readonly _boundHandleFocus;
11
+ private readonly _boundHandleBlur;
14
12
  constructor();
15
13
  firstTextValue(): string | undefined;
16
14
  connectedCallback(): void;
17
15
  disconnectedCallback(): void;
18
16
  protected updated(changedProperties: PropertyValueMap<this>): void;
19
17
  private _handleFocus;
20
- private _announceButtonLabel;
21
18
  private _handleBlur;
22
19
  private _dispatchFocusChange;
23
20
  private _dispatchPageChange;
@@ -10,7 +10,6 @@ export declare class NamiPlayPauseButton extends NamiElement {
10
10
  private playing;
11
11
  constructor();
12
12
  private _handleFocus;
13
- private _announceButtonLabel;
14
13
  private _handleBlur;
15
14
  private _handleKeyDown;
16
15
  private _handleClick;
@@ -9,7 +9,6 @@ export declare class NamiSegmentPickerItem extends NamiElement {
9
9
  connectedCallback(): void;
10
10
  disconnectedCallback(): void;
11
11
  private _handleFocus;
12
- private _announceButtonLabel;
13
12
  private _handleKeyDown;
14
13
  private _getParentPicker;
15
14
  private _getParentFormId;
@@ -11,7 +11,6 @@ export declare class NamiToggleButton extends NamiElement {
11
11
  connectedCallback(): void;
12
12
  disconnectedCallback(): void;
13
13
  private _handleFocus;
14
- private _announceButtonLabel;
15
14
  private _handleKeyDown;
16
15
  private _handleClick;
17
16
  updated(): void;
@@ -10,7 +10,6 @@ export declare class NamiVolumeButton extends NamiElement {
10
10
  private muted;
11
11
  constructor();
12
12
  private _handleFocus;
13
- private _announceButtonLabel;
14
13
  private _handleBlur;
15
14
  private _handleKeyDown;
16
15
  private _handleClick;