@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 +18 -0
- package/dist/components/Paywall.d.ts +4 -1
- package/dist/components/elements/Button.d.ts +1 -1
- package/dist/components/elements/ProgressIndicator.d.ts +19 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/utils/styles.d.ts +2 -1
- package/dist/legacy-support.cjs +688 -159
- package/dist/legacy-support.mjs +688 -159
- package/dist/nami/flow/NamiFlowManager.d.ts +47 -0
- package/dist/nami-web.cjs +30 -21
- package/dist/nami-web.mjs +30 -21
- package/dist/nami-web.umd.js +33 -24
- package/dist/polyfills.cjs +688 -159
- package/dist/polyfills.js +688 -159
- package/dist/services/tvjsDirectionalNavigation.d.ts +1 -0
- package/dist/types/components/elements.d.ts +13 -0
- package/dist/types/components/index.d.ts +2 -2
- package/dist/utils/parsers.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ensureDirectionalNavigation(): any;
|
|
@@ -96,3 +96,16 @@ export type TQRCodeComponent = TBaseComponent & {
|
|
|
96
96
|
borderWidth?: number;
|
|
97
97
|
borderColor?: string;
|
|
98
98
|
};
|
|
99
|
+
export type TProgressIndicatorComponent = TBaseComponent & {
|
|
100
|
+
component: "progressIndicator";
|
|
101
|
+
activeBorderRadius?: number;
|
|
102
|
+
activeFillColor?: string;
|
|
103
|
+
activeFillColorFallback?: string;
|
|
104
|
+
inactiveBorderRadius?: number;
|
|
105
|
+
inactiveFillColor?: string;
|
|
106
|
+
inactiveFillColorFallback?: string;
|
|
107
|
+
percentage?: "auto" | number;
|
|
108
|
+
innerPadding?: number;
|
|
109
|
+
activeDropShadow?: string;
|
|
110
|
+
inactiveDropShadow?: string;
|
|
111
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NamiAnimationSpec } from "./animation";
|
|
2
2
|
import { TButtonContainer, TCarouselContainer, TCarouselSlide, TCollapseContainer, TFlexProductContainer, TPlayPauseButton, TProductContainer, TRadioButton, TResponsiveGrid, TStack, TToggleSwitch, TVolumeButton, UserAction } from "./containers";
|
|
3
|
-
import { TConditionalComponent, TImageComponent, TQRCodeComponent, TSegmentPicker, TSegmentPickerItem, TSpacerComponent, TSvgImageComponent, TSymbolComponent, TTextComponent, TTextListComponent, TVideoComponent } from "./elements";
|
|
3
|
+
import { TConditionalComponent, TImageComponent, TProgressIndicatorComponent, TQRCodeComponent, TSegmentPicker, TSegmentPickerItem, TSpacerComponent, TSvgImageComponent, TSymbolComponent, TTextComponent, TTextListComponent, TVideoComponent } from "./elements";
|
|
4
4
|
export interface TBaseComponent {
|
|
5
5
|
id?: string;
|
|
6
6
|
title?: string;
|
|
@@ -71,7 +71,7 @@ export interface TBaseComponent {
|
|
|
71
71
|
hidden?: boolean;
|
|
72
72
|
animation?: NamiAnimationSpec;
|
|
73
73
|
}
|
|
74
|
-
export type TComponent = TButtonContainer | TContainer | TTextListComponent | TTextComponent | TSpacerComponent | TImageComponent | TSvgImageComponent | TSymbolComponent | TCarouselContainer | TProductContainer | TFlexProductContainer | TStack | TConditionalComponent | TSegmentPicker | TSegmentPickerItem | TVideoComponent | TCollapseContainer | TResponsiveGrid | TVolumeButton | TPlayPauseButton | TQRCodeComponent | TToggleSwitch | TRadioButton;
|
|
74
|
+
export type TComponent = TButtonContainer | TContainer | TTextListComponent | TTextComponent | TSpacerComponent | TImageComponent | TSvgImageComponent | TSymbolComponent | TCarouselContainer | TProductContainer | TFlexProductContainer | TStack | TConditionalComponent | TSegmentPicker | TSegmentPickerItem | TVideoComponent | TCollapseContainer | TResponsiveGrid | TVolumeButton | TPlayPauseButton | TQRCodeComponent | TToggleSwitch | TRadioButton | TProgressIndicatorComponent;
|
|
75
75
|
export type DirectionType = "vertical" | "horizontal";
|
|
76
76
|
export type AlignmentType = "center" | "right" | "left" | "top" | "bottom";
|
|
77
77
|
export type BorderLocationType = "upperLeft" | "upperRight" | "lowerLeft" | "lowerRight";
|
package/dist/utils/parsers.d.ts
CHANGED
|
@@ -7,3 +7,20 @@ export type TSemverObj = {
|
|
|
7
7
|
buildmetadata: string;
|
|
8
8
|
};
|
|
9
9
|
export declare function parseToSemver(versionString: string): TSemverObj;
|
|
10
|
+
/**
|
|
11
|
+
* Compares two semantic versions
|
|
12
|
+
* @returns 1 if current > minimum, 0 if equal, -1 if current < minimum
|
|
13
|
+
*/
|
|
14
|
+
export declare function compareSemver(current: TSemverObj, minimum: TSemverObj): number;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if current SDK version meets minimum requirement
|
|
17
|
+
* @returns true if current version >= minimum version
|
|
18
|
+
*/
|
|
19
|
+
export declare function isVersionSupported(current: TSemverObj, minimum: TSemverObj): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Validates if the current SDK version meets the minimum required version for a component
|
|
22
|
+
* Logs a warning if the SDK version is insufficient
|
|
23
|
+
* @param minSDKVersion - The minimum SDK version required for the component
|
|
24
|
+
* @param componentName - The name of the component
|
|
25
|
+
*/
|
|
26
|
+
export declare function validateMinSDKVersion(minSDKVersion: TSemverObj | undefined, componentName: string): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namiml/web-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.6-beta.01",
|
|
5
5
|
"source": "src/nami-web.ts",
|
|
6
6
|
"description": "Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing",
|
|
7
7
|
"scripts": {
|