@namiml/web-sdk 1.7.5 → 1.7.6-beta.2

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.
@@ -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>;
@@ -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;
@@ -9,6 +9,7 @@ export declare class NamiFlowManager {
9
9
  currentFlow?: NamiFlow;
10
10
  flowOpen: boolean;
11
11
  private lastAnimatedFlowProgress;
12
+ private navGraphCache;
12
13
  private constructor();
13
14
  handoffStepHandler?: NamiFlowHandoffStepHandler;
14
15
  static registerStepHandoff(handoffStepHandler?: NamiFlowHandoffStepHandler): void;
@@ -36,9 +37,32 @@ export declare class NamiFlowManager {
36
37
  /**
37
38
  * Gets the current flow progress based on screen steps
38
39
  * @param key Component ID (for compatibility)
39
- * @returns Progress as a percentage (0-100)
40
+ * @returns Progress as a percentage (0-1)
40
41
  */
41
42
  getCurrentFlowProgress(key?: string): number;
43
+ /**
44
+ * Find the first screen that has branching (multiple forward navigation targets)
45
+ */
46
+ private findBranchPoint;
47
+ /**
48
+ * Calculate progress for flows with branching (supports 2+ branches)
49
+ */
50
+ private calculateBranchingProgress;
51
+ /**
52
+ * Count how many screens are forward-reachable from the current step
53
+ * Only counts screens with higher indices (true forward navigation)
54
+ */
55
+ private countForwardScreens;
56
+ /**
57
+ * Checks if a screen has branching navigation (2 or more forward targets)
58
+ * Supports any number of branches: 2, 3, 4, etc.
59
+ */
60
+ private hasBranching;
61
+ /**
62
+ * Build navigation graph from flow steps
63
+ * Maps each step ID to its possible navigation targets
64
+ */
65
+ private buildNavGraph;
42
66
  static getLastAnimatedFlowProgress(key: string): number;
43
67
  static setLastAnimatedFlowProgress(key: string, value: number): void;
44
68
  static getCurrentFlowProgress(key?: string): number;