@namiml/sdk-core 3.4.12-dev.202609242326 → 3.4.12-dev.202609251647
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/dist/index.cjs +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -106,7 +106,7 @@ const {
|
|
|
106
106
|
// version — stamped by scripts/version.sh
|
|
107
107
|
NAMI_SDK_VERSION: exports.NAMI_SDK_VERSION = "3.4.12",
|
|
108
108
|
// full package version including dev suffix — stamped by scripts/version.sh
|
|
109
|
-
NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.12-dev.
|
|
109
|
+
NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.12-dev.202609251647",
|
|
110
110
|
// environments
|
|
111
111
|
PRODUCTION: exports.PRODUCTION = "production", DEVELOPMENT: exports.DEVELOPMENT = "development",
|
|
112
112
|
// error messages
|
|
@@ -60779,6 +60779,7 @@ const initialState = {
|
|
|
60779
60779
|
isLoggedIn: false,
|
|
60780
60780
|
darkMode: false,
|
|
60781
60781
|
safeAreaTop: 0,
|
|
60782
|
+
safeAreaBottom: 0,
|
|
60782
60783
|
groups: [],
|
|
60783
60784
|
selectedProducts: {},
|
|
60784
60785
|
formStates: {},
|
|
@@ -61147,6 +61148,9 @@ class PaywallState extends SimpleEventTarget {
|
|
|
61147
61148
|
setSafeAreaTop(safeAreaTop) {
|
|
61148
61149
|
this.setState({ ...this.state, safeAreaTop });
|
|
61149
61150
|
}
|
|
61151
|
+
setSafeAreaBottom(safeAreaBottom) {
|
|
61152
|
+
this.setState({ ...this.state, safeAreaBottom });
|
|
61153
|
+
}
|
|
61150
61154
|
setFullScreenPresentation(fullScreenPresentation) {
|
|
61151
61155
|
this.setState({ ...this.state, fullScreenPresentation });
|
|
61152
61156
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1828,6 +1828,7 @@ type TPaywallContext = TInitialState & {
|
|
|
1828
1828
|
anySkuHasIntroOffer: boolean;
|
|
1829
1829
|
anySkuHasPromoOffer: boolean;
|
|
1830
1830
|
safeAreaTop: number;
|
|
1831
|
+
safeAreaBottom: number;
|
|
1831
1832
|
slides?: TCarouselSlidesState;
|
|
1832
1833
|
currentPage: string;
|
|
1833
1834
|
pageHistory: string[];
|
|
@@ -2551,6 +2552,7 @@ declare class PaywallState extends SimpleEventTarget {
|
|
|
2551
2552
|
setIsLoggedIn(isLoggedIn: boolean): void;
|
|
2552
2553
|
setMediaList(media: TPaywallMedia[]): void;
|
|
2553
2554
|
setSafeAreaTop(safeAreaTop: number): void;
|
|
2555
|
+
setSafeAreaBottom(safeAreaBottom: number): void;
|
|
2554
2556
|
setFullScreenPresentation(fullScreenPresentation: boolean): void;
|
|
2555
2557
|
setFormFactor(formFactor: TDevice): void;
|
|
2556
2558
|
getFormFactor(): TDevice;
|
package/dist/index.mjs
CHANGED
|
@@ -104,7 +104,7 @@ const {
|
|
|
104
104
|
// version — stamped by scripts/version.sh
|
|
105
105
|
NAMI_SDK_VERSION = "3.4.12",
|
|
106
106
|
// full package version including dev suffix — stamped by scripts/version.sh
|
|
107
|
-
NAMI_SDK_PACKAGE_VERSION = "3.4.12-dev.
|
|
107
|
+
NAMI_SDK_PACKAGE_VERSION = "3.4.12-dev.202609251647",
|
|
108
108
|
// environments
|
|
109
109
|
PRODUCTION = "production", DEVELOPMENT = "development",
|
|
110
110
|
// error messages
|
|
@@ -60777,6 +60777,7 @@ const initialState = {
|
|
|
60777
60777
|
isLoggedIn: false,
|
|
60778
60778
|
darkMode: false,
|
|
60779
60779
|
safeAreaTop: 0,
|
|
60780
|
+
safeAreaBottom: 0,
|
|
60780
60781
|
groups: [],
|
|
60781
60782
|
selectedProducts: {},
|
|
60782
60783
|
formStates: {},
|
|
@@ -61145,6 +61146,9 @@ class PaywallState extends SimpleEventTarget {
|
|
|
61145
61146
|
setSafeAreaTop(safeAreaTop) {
|
|
61146
61147
|
this.setState({ ...this.state, safeAreaTop });
|
|
61147
61148
|
}
|
|
61149
|
+
setSafeAreaBottom(safeAreaBottom) {
|
|
61150
|
+
this.setState({ ...this.state, safeAreaBottom });
|
|
61151
|
+
}
|
|
61148
61152
|
setFullScreenPresentation(fullScreenPresentation) {
|
|
61149
61153
|
this.setState({ ...this.state, fullScreenPresentation });
|
|
61150
61154
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namiml/sdk-core",
|
|
3
|
-
"version": "3.4.12-dev.
|
|
3
|
+
"version": "3.4.12-dev.202609251647",
|
|
4
4
|
"description": "Platform-agnostic core for the Nami SDK — business logic, API, types, and state management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|