@namiml/web-sdk 1.7.4 → 1.7.6-beta.1

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,23 @@
1
1
  # Nami Web SDK Changelog
2
2
 
3
+ ## 1.7.6-berta.01
4
+ **Release Date:** December 2, 2025
5
+
6
+ ### Enhancements
7
+ - Improve CTV focus handling
8
+
9
+ ## 1.7.5
10
+ **Release Date:** November 19, 2025
11
+
12
+ ### Enhancements
13
+ - Support using launch context custom attributes in flow analytics
14
+ - Initial support for a progress indicator component
15
+
16
+ ### Bug Fixes
17
+ - Resolve an issue where a user's signed in state wasn't reflected on the paywall properly
18
+ - Resolve an issue with content padding on certain components
19
+ - Resolve an ssue where CMS settings for video player audio playback was not honored
20
+
3
21
  ## 1.7.4
4
22
  **Release Date:** October 30, 2025
5
23
 
@@ -10,7 +10,6 @@ declare class PaywallComponent extends LitElement {
10
10
  flow: NamiFlow | undefined;
11
11
  pages: IPaywall[];
12
12
  private currentOffset;
13
- private isAnimating;
14
13
  private context;
15
14
  private formFactor;
16
15
  private timeSpentOnPaywall;
@@ -20,12 +19,16 @@ declare class PaywallComponent extends LitElement {
20
19
  private _originalBodyStyles;
21
20
  private _originalDocumentStyles;
22
21
  private _swipeHandler;
22
+ private _directionalNavigation?;
23
+ private boundKeyDownHandler;
23
24
  constructor(type: string | undefined, value: string, context: NamiPaywallLaunchContext);
24
25
  setPaywallData(): void;
25
26
  connectedCallback(): void;
26
27
  disconnectedCallback(): void;
27
28
  private setOriginalStyles;
28
29
  private restoreStyles;
30
+ private enableDirectionalNavigation;
31
+ private disableDirectionalNavigation;
29
32
  private handleKeyDownEvent;
30
33
  private handleSwipeEvent;
31
34
  firstUpdated(): void;
@@ -17,7 +17,7 @@ export declare class NamiButton extends NamiElement {
17
17
  private _handleBlur;
18
18
  private _dispatchFocusChange;
19
19
  private _dispatchPageChange;
20
- private _handleKeyUp;
20
+ private _handleKeyDown;
21
21
  private _handleClick;
22
22
  protected styles(): CSSResult;
23
23
  render(): any[] | import("lit").TemplateResult<1>;
@@ -0,0 +1,19 @@
1
+ import { CSSResult, TemplateResult } from 'lit';
2
+ import { NamiElement } from '../NamiElement';
3
+ import { TProgressIndicatorComponent } from '../../types/components/elements';
4
+ import { TSemverObj } from '../../utils/parsers';
5
+ export declare class NamiProgressIndicator extends NamiElement {
6
+ component: TProgressIndicatorComponent;
7
+ scaleFactor: number;
8
+ inFocusedState: boolean;
9
+ minSDKVersion: TSemverObj;
10
+ currentWidth: number;
11
+ private hasInitialized;
12
+ connectedCallback(): void;
13
+ firstUpdated(changedProperties: any): void;
14
+ updated(changedProperties: any): void;
15
+ protected styles(): CSSResult;
16
+ private getProgressPercentage;
17
+ private animateProgress;
18
+ render(): TemplateResult;
19
+ }
@@ -21,6 +21,7 @@ import { NamiPaywallScreen } from "./PaywallScreen";
21
21
  import { NamiQRCode } from "./elements/QRCode";
22
22
  import { NamiToggleSwitch } from "./elements/ToggleSwitch";
23
23
  import { NamiRadioButton } from "./elements/RadioButton";
24
+ import { NamiProgressIndicator } from "./elements/ProgressIndicator";
24
25
  declare global {
25
26
  interface HTMLElementTagNameMap {
26
27
  "nami-spacer": NamiSpacer;
@@ -47,6 +48,7 @@ declare global {
47
48
  "nami-qr-code": NamiQRCode;
48
49
  "nami-toggle-switch": NamiToggleSwitch;
49
50
  "nami-radio-button": NamiRadioButton;
51
+ "nami-progress-indicator": NamiProgressIndicator;
50
52
  }
51
53
  }
52
- export { NamiSpacer, NamiButton, NamiHeader, NamiFooter, NamiText, NamiSegmentPicker, NamiSegmentPickerItem, NamiContainer, NamiProductContainer, NamiImage, NamiBackgroundContainer, NamiContentContainer, NamiSymbol, NamiVideo, NamiCollapseContainer, NamiResponsiveGrid, NamiCarouselContainer, NamiPlayPauseButton, NamiVolumeButton, NamiStack, NamiPaywallScreen, NamiQRCode, NamiToggleSwitch, NamiRadioButton, };
54
+ export { NamiSpacer, NamiButton, NamiHeader, NamiFooter, NamiText, NamiSegmentPicker, NamiSegmentPickerItem, NamiContainer, NamiProductContainer, NamiImage, NamiBackgroundContainer, NamiContentContainer, NamiSymbol, NamiVideo, NamiCollapseContainer, NamiResponsiveGrid, NamiCarouselContainer, NamiPlayPauseButton, NamiVolumeButton, NamiStack, NamiPaywallScreen, NamiQRCode, NamiToggleSwitch, NamiRadioButton, NamiProgressIndicator, };
@@ -1,6 +1,6 @@
1
1
  import type { TCarouselContainer } from "../../types/components/containers";
2
2
  import { type TBaseComponent, type TContainerPosition } from "../../types/components";
3
- import type { TSegmentPickerItem, TTextLikeComponent } from "../../types/components/elements";
3
+ import type { TSegmentPicker, TSegmentPickerItem, TTextLikeComponent } from "../../types/components/elements";
4
4
  import type { TSemverObj } from "../../utils/parsers";
5
5
  export declare function parseSize(value: string | number, scaleFactor: number): string;
6
6
  export declare function backgroundColor(value: string, fallback?: string): string;
@@ -15,6 +15,7 @@ export declare function applyTextOverflow(component: TTextLikeComponent): string
15
15
  export declare function transition(): string;
16
16
  export declare function grow({ grow }: TBaseComponent): string;
17
17
  export declare function paddingAndMargin(component: TBaseComponent, scaleFactor: number): string;
18
+ export declare function applySegmentAbsoluteStyles(component: TSegmentPicker, scaleFactor: number): string;
18
19
  export declare function slidePaddingAndMargin(component: TCarouselContainer, scaleFactor: number): string;
19
20
  export declare function transform({ moveX, moveY, }: TBaseComponent): string;
20
21
  export declare function borders(component: TBaseComponent, scaleFactor: number, inFocusedState?: boolean): string;