@namiml/web-sdk 1.5.0 → 1.5.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 +10 -0
- package/dist/components/ContextProvider.d.ts +2 -1
- package/dist/components/containers/CarouselContainer.d.ts +3 -0
- package/dist/components/utils/actionTap.d.ts +4 -1
- package/dist/nami/api.d.ts +1 -1
- package/dist/nami/index.d.ts +2 -1
- package/dist/nami/namiRefs.d.ts +1 -1
- package/dist/nami-web.cjs +6 -6
- package/dist/nami-web.js +6 -6
- package/dist/nami-web.mjs +6 -6
- package/dist/nami-web.umd.js +6 -6
- package/dist/services/storage.service.d.ts +8 -7
- package/dist/types/config.d.ts +0 -11
- package/dist/types/externals/config.d.ts +2 -3
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Device } from "
|
|
2
|
-
import { IConfig
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Device } from "../types/device";
|
|
2
|
+
import { IConfig } from "../types/config";
|
|
3
|
+
import { NamiConfiguration } from "../types/externals/config";
|
|
4
|
+
import { IPaywall } from "../types/paywall";
|
|
5
|
+
import { NamiCampaign } from "../types/externals/campaign";
|
|
6
|
+
import { NamiProfile } from "../types/profile";
|
|
6
7
|
import { IEntitlements, NamiEntitlement } from "../types/entitlements";
|
|
7
|
-
import { SKU } from "
|
|
8
|
-
import { CustomerJourneyState } from "
|
|
8
|
+
import { SKU } from "../types/sku";
|
|
9
|
+
import { CustomerJourneyState } from "../types/externals/customer";
|
|
9
10
|
declare class StorageService {
|
|
10
11
|
setDevice(device: Device): void;
|
|
11
12
|
getDevice(): Device | null;
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { NamiCampaign } from "../types/externals/campaign";
|
|
2
|
-
import { TDevice } from "./device";
|
|
3
|
-
import { NamiLanguageCodes } from "./externals/languages";
|
|
4
|
-
import { NamiLogLevel } from "./externals/loglevel";
|
|
5
2
|
import { IPaywall } from "./paywall";
|
|
6
3
|
import { PaywallSKU } from "./sku";
|
|
7
4
|
export interface IConfig {
|
|
@@ -9,14 +6,6 @@ export interface IConfig {
|
|
|
9
6
|
capabilities: string[];
|
|
10
7
|
marketplace_app_id?: string | null;
|
|
11
8
|
}
|
|
12
|
-
export type NamiConfiguration = {
|
|
13
|
-
appPlatformID: string;
|
|
14
|
-
logLevel?: NamiLogLevel;
|
|
15
|
-
namiLanguageCode?: NamiLanguageCodes;
|
|
16
|
-
namiCommands?: string[];
|
|
17
|
-
initialConfig?: string | InitialConfig;
|
|
18
|
-
formFactor?: TDevice;
|
|
19
|
-
};
|
|
20
9
|
export type InitialConfig = {
|
|
21
10
|
appConfig?: IConfig;
|
|
22
11
|
platform_config?: IConfig;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IConfig } from "../config";
|
|
2
|
-
import { TDevice } from "../device";
|
|
3
2
|
import { NamiLanguageCodes } from "./languages";
|
|
4
3
|
import { NamiLogLevel } from "./loglevel";
|
|
5
4
|
import { IPaywall } from "../paywall";
|
|
@@ -40,9 +39,9 @@ export type NamiInitialConfig = {
|
|
|
40
39
|
*/
|
|
41
40
|
export type NamiConfiguration = {
|
|
42
41
|
appPlatformID: string;
|
|
43
|
-
logLevel
|
|
42
|
+
logLevel?: NamiLogLevel;
|
|
44
43
|
namiCommands?: string[];
|
|
45
44
|
namiLanguageCode?: NamiLanguageCodes;
|
|
46
45
|
initialConfig?: string | NamiInitialConfig;
|
|
47
|
-
formFactor?:
|
|
46
|
+
formFactor?: string;
|
|
48
47
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namiml/web-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.1",
|
|
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": {
|