@namiml/web-sdk 1.7.6-beta.1 → 1.7.6
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 +11 -3
- package/dist/components/ContextProvider.d.ts +2 -0
- package/dist/components/Paywall.d.ts +0 -4
- package/dist/components/elements/Button.d.ts +1 -1
- package/dist/components/elements/ToggleButton.d.ts +18 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/utils/actionTap.d.ts +8 -1
- package/dist/components/utils/styles.d.ts +4 -4
- package/dist/nami/utils/resolvers/FormStateResolver.d.ts +7 -0
- package/dist/nami-web.cjs +18 -18
- package/dist/nami-web.mjs +18 -18
- package/dist/nami-web.umd.js +16 -16
- package/dist/types/components/containers.d.ts +14 -1
- package/dist/types/components/elements.d.ts +22 -1
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/paywall.d.ts +3 -0
- package/package.json +3 -2
- package/dist/services/tvjsDirectionalNavigation.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
# Nami Web SDK Changelog
|
|
2
2
|
|
|
3
|
-
## 1.7.6
|
|
4
|
-
|
|
3
|
+
## 1.7.6
|
|
4
|
+
|
|
5
|
+
**Release Date:** December 16, 2025
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
- Fix padding issues in toggle and list components
|
|
9
|
+
- Fix gradient background issue
|
|
10
|
+
|
|
11
|
+
### New Features
|
|
12
|
+
- Add radio and standard toggle button components
|
|
5
13
|
|
|
6
14
|
### Enhancements
|
|
7
|
-
-
|
|
15
|
+
- Support disabled button properties
|
|
8
16
|
|
|
9
17
|
## 1.7.5
|
|
10
18
|
**Release Date:** November 19, 2025
|
|
@@ -46,6 +46,8 @@ export declare class PaywallContextProvider extends SimpleEventTarget implements
|
|
|
46
46
|
setCurrentGroupData(currentGroupId: string, currentGroupName: string): void;
|
|
47
47
|
getCurrentGroupId(): string;
|
|
48
48
|
getCurrentGroupName(): string;
|
|
49
|
+
setCurrentFormId(formId: string, value?: string): void;
|
|
50
|
+
getCurrentFormId(formId: string): boolean | string;
|
|
49
51
|
setSelectedProducts(products: {
|
|
50
52
|
[currentGroupId: string]: string | null;
|
|
51
53
|
}): void;
|
|
@@ -19,16 +19,12 @@ declare class PaywallComponent extends LitElement {
|
|
|
19
19
|
private _originalBodyStyles;
|
|
20
20
|
private _originalDocumentStyles;
|
|
21
21
|
private _swipeHandler;
|
|
22
|
-
private _directionalNavigation?;
|
|
23
|
-
private boundKeyDownHandler;
|
|
24
22
|
constructor(type: string | undefined, value: string, context: NamiPaywallLaunchContext);
|
|
25
23
|
setPaywallData(): void;
|
|
26
24
|
connectedCallback(): void;
|
|
27
25
|
disconnectedCallback(): void;
|
|
28
26
|
private setOriginalStyles;
|
|
29
27
|
private restoreStyles;
|
|
30
|
-
private enableDirectionalNavigation;
|
|
31
|
-
private disableDirectionalNavigation;
|
|
32
28
|
private handleKeyDownEvent;
|
|
33
29
|
private handleSwipeEvent;
|
|
34
30
|
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
|
|
20
|
+
private _handleKeyUp;
|
|
21
21
|
private _handleClick;
|
|
22
22
|
protected styles(): CSSResult;
|
|
23
23
|
render(): any[] | import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSResult } from 'lit';
|
|
2
|
+
import { NamiElement } from '../NamiElement';
|
|
3
|
+
import type { TSemverObj } from '../../utils/parsers';
|
|
4
|
+
import { TToggleButtonComponent } from '../../types/components/elements';
|
|
5
|
+
export declare class NamiToggleButton extends NamiElement {
|
|
6
|
+
component: TToggleButtonComponent;
|
|
7
|
+
inFocusedState: boolean;
|
|
8
|
+
scaleFactor: number;
|
|
9
|
+
minSDKVersion: TSemverObj;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
disconnectedCallback(): void;
|
|
13
|
+
private _handleKeyDown;
|
|
14
|
+
private _handleClick;
|
|
15
|
+
updated(): void;
|
|
16
|
+
protected styles(): CSSResult;
|
|
17
|
+
render(): any[];
|
|
18
|
+
}
|
|
@@ -22,6 +22,7 @@ import { NamiQRCode } from "./elements/QRCode";
|
|
|
22
22
|
import { NamiToggleSwitch } from "./elements/ToggleSwitch";
|
|
23
23
|
import { NamiRadioButton } from "./elements/RadioButton";
|
|
24
24
|
import { NamiProgressIndicator } from "./elements/ProgressIndicator";
|
|
25
|
+
import { NamiToggleButton } from "./elements/ToggleButton";
|
|
25
26
|
declare global {
|
|
26
27
|
interface HTMLElementTagNameMap {
|
|
27
28
|
"nami-spacer": NamiSpacer;
|
|
@@ -49,6 +50,7 @@ declare global {
|
|
|
49
50
|
"nami-toggle-switch": NamiToggleSwitch;
|
|
50
51
|
"nami-radio-button": NamiRadioButton;
|
|
51
52
|
"nami-progress-indicator": NamiProgressIndicator;
|
|
53
|
+
"nami-toggle-button": NamiToggleButton;
|
|
52
54
|
}
|
|
53
55
|
}
|
|
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, };
|
|
56
|
+
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, NamiToggleButton, };
|
|
@@ -15,9 +15,16 @@ export declare const signIn: () => void;
|
|
|
15
15
|
export declare const deepLink: (url?: string) => void;
|
|
16
16
|
export declare const buySKU: (contextProvider: PaywallContextProvider, onTap: UserAction, sku: NamiSKU) => NamiSKU;
|
|
17
17
|
export declare const navigateToScreen: (contextProvider: PaywallContextProvider, screen?: string) => void;
|
|
18
|
-
export declare const setState: (contextProvider: PaywallContextProvider) => {
|
|
18
|
+
export declare const setState: (contextProvider: PaywallContextProvider, formId?: string, value?: string) => {
|
|
19
|
+
formId: string;
|
|
20
|
+
value: string | undefined;
|
|
21
|
+
id?: undefined;
|
|
22
|
+
name?: undefined;
|
|
23
|
+
} | {
|
|
19
24
|
id: string;
|
|
20
25
|
name: string;
|
|
26
|
+
formId?: undefined;
|
|
27
|
+
value?: undefined;
|
|
21
28
|
};
|
|
22
29
|
export declare const selectSKU: (contextProvider: PaywallContextProvider, sku: NamiSKU) => void;
|
|
23
30
|
export declare const purchaseSelectedSKU: (contextProvider: PaywallContextProvider, sku: NamiSKU) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TCarouselContainer } from "../../types/components/containers";
|
|
2
|
-
import { type TBaseComponent, type TContainerPosition } from "../../types/components";
|
|
3
|
-
import type { TSegmentPicker,
|
|
2
|
+
import { TComponent, type TBaseComponent, type TContainerPosition } from "../../types/components";
|
|
3
|
+
import type { TSegmentPicker, 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;
|
|
@@ -23,13 +23,13 @@ export declare function alignItems({ alignment, verticalAlignment }: TBaseCompon
|
|
|
23
23
|
export declare function justifyContent({ alignment, horizontalAlignment }: TBaseComponent): string;
|
|
24
24
|
export declare function widthAndHeight(component: TBaseComponent, scaleFactor: number): string;
|
|
25
25
|
export declare function zIndex({ zIndex }: TBaseComponent): string;
|
|
26
|
-
export declare function dropShadow(
|
|
26
|
+
export declare function dropShadow(dropShadow?: string): string;
|
|
27
27
|
export declare function textStrikethrough(value: boolean | undefined): string;
|
|
28
28
|
export declare function font({ fontName }: TTextLikeComponent): string;
|
|
29
29
|
export declare function applyStyles(component: TBaseComponent, scaleFactor: number, inFocusedState?: boolean): string;
|
|
30
30
|
export declare function applyGridStyles(component: TBaseComponent, inFocusedState?: boolean, scaleFactor?: number): string;
|
|
31
31
|
export declare function parsePosition(position?: TContainerPosition): string;
|
|
32
|
-
export declare function getComponentStyles(prefix: string, component:
|
|
32
|
+
export declare function getComponentStyles(prefix: string, component: TComponent): TComponent;
|
|
33
33
|
export declare function formatKey(key: string, prefix: string): string;
|
|
34
34
|
export declare function applySegmentStyles(styles: any, scaleFactor: number, inFocusedState: boolean): string;
|
|
35
35
|
export declare function applySegmentFontStyles(styles: any, scaleFactor: number): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseNamespaceResolver } from "./BaseNameSpaceResolver";
|
|
2
|
+
export declare class FormStateResolver extends BaseNamespaceResolver {
|
|
3
|
+
protected readonly namespace = "state";
|
|
4
|
+
private getContextProvider;
|
|
5
|
+
constructor();
|
|
6
|
+
protected resolveValue(keyPath: string): any;
|
|
7
|
+
}
|