@namiml/web-sdk 1.5.2 → 1.5.3
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 +8 -0
- package/dist/components/ContextProvider.d.ts +2 -0
- package/dist/components/Paywall.d.ts +1 -0
- package/dist/components/TemplateComponent.d.ts +1 -1
- package/dist/components/containers/BackgroundContainer.d.ts +1 -0
- package/dist/components/containers/CarouselContainer.d.ts +1 -0
- package/dist/components/containers/CollapseContainer.d.ts +1 -0
- package/dist/components/containers/Container.d.ts +1 -0
- package/dist/components/containers/Content.d.ts +1 -0
- package/dist/components/containers/Footer.d.ts +1 -0
- package/dist/components/containers/Header.d.ts +1 -0
- package/dist/components/containers/ProductContainer.d.ts +1 -0
- package/dist/components/containers/ResponsiveGrid.d.ts +1 -0
- package/dist/components/elements/Button.d.ts +1 -0
- package/dist/components/elements/Image.d.ts +1 -0
- package/dist/components/elements/PlayPauseButton.d.ts +1 -0
- package/dist/components/elements/SegmentPicker.d.ts +1 -0
- package/dist/components/elements/SegmentPickerItem.d.ts +1 -0
- package/dist/components/elements/Spacer.d.ts +1 -0
- package/dist/components/elements/Stack.d.ts +1 -0
- package/dist/components/elements/Text.d.ts +7 -0
- package/dist/components/elements/Video.d.ts +1 -0
- package/dist/components/elements/VolumeButton.d.ts +1 -0
- package/dist/components/utils/actionTap.d.ts +2 -1
- package/dist/components/utils/state.d.ts +2 -2
- package/dist/components/utils/styles.d.ts +9 -9
- package/dist/nami-web.cjs +29 -16
- package/dist/nami-web.js +29 -16
- package/dist/nami-web.mjs +29 -16
- package/dist/nami-web.umd.js +30 -17
- package/dist/types/components/index.d.ts +1 -1
- package/dist/utils/device.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.3 (November 21, 2024)
|
|
4
|
+
|
|
5
|
+
## Bugfixes
|
|
6
|
+
- Resolve an issue where the collapse component caret icon was not updating when expanded
|
|
7
|
+
|
|
8
|
+
## Enahncements
|
|
9
|
+
- Support scaling on TV devices for optimal display on 720p, 1080p, 4K, and 8K devices
|
|
10
|
+
|
|
3
11
|
## 1.5.2 (October 24, 2024)
|
|
4
12
|
|
|
5
13
|
## Bugfixes
|
|
@@ -49,6 +49,8 @@ declare class ContextProvider implements ReactiveController {
|
|
|
49
49
|
setAppSuppliedVideoDetails({ url, name }: NamiAppSuppliedVideoDetails): void;
|
|
50
50
|
resetAppSuppliedVideoDetails(): void;
|
|
51
51
|
setLaunchDetails(value: string, type?: string): void;
|
|
52
|
+
setOpenHeaderIds(id: string, sku?: NamiSKU): void;
|
|
53
|
+
getCurrentCollapsibleSku(): NamiSKU;
|
|
52
54
|
}
|
|
53
55
|
declare const contextProvider: ContextProvider;
|
|
54
56
|
export default contextProvider;
|
|
@@ -6,6 +6,7 @@ import { NamiCampaign } from '../types/externals/campaign';
|
|
|
6
6
|
import { NamiPaywallEvent } from '../types/externals/paywall';
|
|
7
7
|
declare class PaywallComponent extends NamiElement {
|
|
8
8
|
formFactor: TDevice;
|
|
9
|
+
scaleFactor: number;
|
|
9
10
|
campaign: NamiCampaign;
|
|
10
11
|
paywall: IPaywall;
|
|
11
12
|
paywallEvent: Partial<NamiPaywallEvent>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TComponent } from "../types/components";
|
|
2
|
-
export declare function TemplateComponent(component: TComponent, inFocusedState?: boolean): any;
|
|
2
|
+
export declare function TemplateComponent(component: TComponent, scaleFactor: number, inFocusedState?: boolean): any;
|
|
@@ -5,6 +5,7 @@ import { NamiElement } from '../NamiElement';
|
|
|
5
5
|
export declare class NamiCarouselContainer extends NamiElement {
|
|
6
6
|
component: TCarouselContainer;
|
|
7
7
|
inFocusedState: boolean;
|
|
8
|
+
scaleFactor: number;
|
|
8
9
|
swiperInstance: Swiper;
|
|
9
10
|
slideSpacing: number;
|
|
10
11
|
connectedCallback(): void;
|
|
@@ -5,6 +5,7 @@ import { TProductContainer } from '../../types/components/containers';
|
|
|
5
5
|
export declare class NamiContainer extends NamiElement {
|
|
6
6
|
component: TContainer | TProductContainer;
|
|
7
7
|
inFocusedState: boolean;
|
|
8
|
+
scaleFactor: number;
|
|
8
9
|
constructor();
|
|
9
10
|
connectedCallback(): void;
|
|
10
11
|
disconnectedCallback(): void;
|
|
@@ -4,6 +4,7 @@ import { TProductContainer } from '../../types/components/containers';
|
|
|
4
4
|
export declare class NamiProductContainer extends NamiElement {
|
|
5
5
|
component: TProductContainer;
|
|
6
6
|
inFocusedState: boolean;
|
|
7
|
+
scaleFactor: number;
|
|
7
8
|
private currentGroupId;
|
|
8
9
|
protected styles(): CSSResult;
|
|
9
10
|
updated(): void;
|
|
@@ -4,6 +4,7 @@ import { TResponsiveGrid } from '../../types/components/containers';
|
|
|
4
4
|
export declare class NamiResponsiveGrid extends NamiElement {
|
|
5
5
|
component: TResponsiveGrid;
|
|
6
6
|
inFocusedState: boolean;
|
|
7
|
+
scaleFactor: number;
|
|
7
8
|
private mouseDown;
|
|
8
9
|
private startX;
|
|
9
10
|
scrollLeft: any;
|
|
@@ -4,6 +4,7 @@ import { TSpacerComponent } from '../../types/components/elements';
|
|
|
4
4
|
export declare class NamiSpacer extends NamiElement {
|
|
5
5
|
component: TSpacerComponent;
|
|
6
6
|
inFocusedState: boolean;
|
|
7
|
+
scaleFactor: number;
|
|
7
8
|
protected styles(): CSSResult;
|
|
8
9
|
render(): TemplateResult;
|
|
9
10
|
}
|
|
@@ -4,6 +4,7 @@ import { NamiElement } from '../NamiElement';
|
|
|
4
4
|
export declare class NamiText extends NamiElement {
|
|
5
5
|
component: TTextComponent;
|
|
6
6
|
inFocusedState: boolean;
|
|
7
|
+
scaleFactor: number;
|
|
7
8
|
protected styles(): CSSResult;
|
|
8
9
|
render(): TemplateResult;
|
|
9
10
|
}
|
|
@@ -16,12 +17,18 @@ export declare class TextListItemWrapper extends NamiElement {
|
|
|
16
17
|
export declare class NamiSymbol extends NamiElement {
|
|
17
18
|
component: TSymbolComponent;
|
|
18
19
|
inFocusedState: boolean;
|
|
20
|
+
scaleFactor: number;
|
|
21
|
+
previousSymbolName: string;
|
|
19
22
|
protected styles(): CSSResult;
|
|
23
|
+
protected updated(): void;
|
|
24
|
+
private shouldRenderCurrentIcon;
|
|
25
|
+
private renderSvgIcon;
|
|
20
26
|
render(): TemplateResult;
|
|
21
27
|
}
|
|
22
28
|
export declare class NamiTextList extends NamiElement {
|
|
23
29
|
component: TTextListComponent;
|
|
24
30
|
inFocusedState: boolean;
|
|
31
|
+
scaleFactor: number;
|
|
25
32
|
protected styles(): CSSResult;
|
|
26
33
|
render(): TemplateResult;
|
|
27
34
|
}
|
|
@@ -4,6 +4,7 @@ import { CSSResult, TemplateResult } from "lit";
|
|
|
4
4
|
export declare class NamiVideo extends NamiElement {
|
|
5
5
|
component: TVideoComponent;
|
|
6
6
|
inFocusedState: boolean;
|
|
7
|
+
scaleFactor: number;
|
|
7
8
|
private bgVideo;
|
|
8
9
|
protected styles(): CSSResult;
|
|
9
10
|
loadMediaSrc(video: HTMLVideoElement): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UserAction } from "../../types/components/containers";
|
|
2
2
|
import { NamiSKU } from "../../types/externals/sku";
|
|
3
|
-
|
|
3
|
+
import { NamiPaywallComponentChange } from "../../types/externals/paywall";
|
|
4
|
+
export declare const handleAction: (onTap?: UserAction, sku?: NamiSKU, componentChange?: NamiPaywallComponentChange | undefined) => void;
|
|
4
5
|
export declare const closePaywallHandler: () => void;
|
|
5
6
|
export declare const restorePurchase: () => void;
|
|
6
7
|
export declare const signIn: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISkuMenu, TInitialState } from "../../types/paywall";
|
|
2
2
|
import { NamiProductDetails } from "../../types/externals/product";
|
|
3
3
|
import { PaywallSKU } from "../../types/sku";
|
|
4
4
|
import { NamiPaywallLaunchContext } from "../../nami-web";
|
|
@@ -16,4 +16,4 @@ export declare function getSlideSmartTextValue(productDetail?: NamiProductDetail
|
|
|
16
16
|
export declare function checkAnySkuHasTrialOffer(productDetails: NamiProductDetails[], skuMenus: ISkuMenu[], productGroups: string[]): boolean;
|
|
17
17
|
export declare function checkAnySkuHasPromoOffer(productDetails: NamiProductDetails[], skuMenus: ISkuMenu[], productGroups: string[]): boolean;
|
|
18
18
|
export declare function productDetail(details: NamiProductDetails[] | undefined, refId: string): NamiProductDetails | null;
|
|
19
|
-
export declare function launchContext(
|
|
19
|
+
export declare function launchContext(stateContext: NamiPaywallLaunchContext, context?: NamiPaywallLaunchContext): NamiPaywallLaunchContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TCarouselContainer } from "src/types/components/containers";
|
|
2
2
|
import { TBaseComponent, TContainerPosition } from "../../types/components";
|
|
3
3
|
import { TSegmentPickerItem, TTextLikeComponent } from "../../types/components/elements";
|
|
4
|
-
export declare function parseSize(value: string | number): string;
|
|
4
|
+
export declare function parseSize(value: string | number, scaleFactor: number): string;
|
|
5
5
|
export declare function backgroundColor(value: string): string;
|
|
6
6
|
export declare function pickAndApplyBackgroundColor(component: TBaseComponent, inFocusedState?: boolean): string;
|
|
7
7
|
export declare function flexDirection({ direction }: TBaseComponent): string;
|
|
@@ -9,21 +9,21 @@ export declare function flexAlignments(component: TBaseComponent): string;
|
|
|
9
9
|
export declare function applyTextOverflow(component: TTextLikeComponent): string;
|
|
10
10
|
export declare function transition(): string;
|
|
11
11
|
export declare function grow({ grow }: TBaseComponent): string;
|
|
12
|
-
export declare function paddingAndMargin(component: TBaseComponent): string;
|
|
13
|
-
export declare function slidePaddingAndMargin(component: TCarouselContainer): string;
|
|
12
|
+
export declare function paddingAndMargin(component: TBaseComponent, scaleFactor: number): string;
|
|
13
|
+
export declare function slidePaddingAndMargin(component: TCarouselContainer, scaleFactor: number): string;
|
|
14
14
|
export declare function transform({ moveX, moveY, }: TBaseComponent): string;
|
|
15
|
-
export declare function borders(component: TBaseComponent, inFocusedState?: boolean): string;
|
|
15
|
+
export declare function borders(component: TBaseComponent, scaleFactor: number, inFocusedState?: boolean): string;
|
|
16
16
|
export declare function alignItems({ alignment, }: TBaseComponent): string;
|
|
17
17
|
export declare function justifyContent({ alignment, }: TBaseComponent): string;
|
|
18
|
-
export declare function widthAndHeight(component: TBaseComponent): string;
|
|
18
|
+
export declare function widthAndHeight(component: TBaseComponent, scaleFactor: number): string;
|
|
19
19
|
export declare function zIndex({ zIndex }: TBaseComponent): string;
|
|
20
20
|
export declare function dropShadow(component: TBaseComponent): string;
|
|
21
21
|
export declare function textStrikethrough(value: boolean | undefined): string;
|
|
22
22
|
export declare function font({ fontName }: TTextLikeComponent): string;
|
|
23
|
-
export declare function applyStyles(component: TBaseComponent, inFocusedState?: boolean): string;
|
|
24
|
-
export declare function applyGridStyles(component: TBaseComponent, inFocusedState?: boolean): string;
|
|
23
|
+
export declare function applyStyles(component: TBaseComponent, scaleFactor: number, inFocusedState?: boolean): string;
|
|
24
|
+
export declare function applyGridStyles(component: TBaseComponent, inFocusedState?: boolean, scaleFactor?: number): string;
|
|
25
25
|
export declare function parsePosition(position?: TContainerPosition): string;
|
|
26
26
|
export declare function getComponentStyles(prefix: string, component: TSegmentPickerItem): TSegmentPickerItem;
|
|
27
27
|
export declare function formatKey(key: string, prefix: string): string;
|
|
28
|
-
export declare function applySegmentStyles(styles: any, inFocusedState: boolean): string;
|
|
29
|
-
export declare function applySegmentFontStyles(styles: any): string;
|
|
28
|
+
export declare function applySegmentStyles(styles: any, scaleFactor: number, inFocusedState: boolean): string;
|
|
29
|
+
export declare function applySegmentFontStyles(styles: any, scaleFactor: number): string;
|