@namiml/web-sdk 3.4.0-dev.202604010118 → 3.4.0-dev.202604170506
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/adapters/index.d.ts +1 -0
- package/dist/adapters/web-device.adapter.d.ts +14 -0
- package/dist/adapters/web-storage.adapter.d.ts +8 -0
- package/dist/adapters/web-ui.adapter.d.ts +9 -0
- package/dist/components/ContextConsumer.d.ts +1 -1
- package/dist/components/ContextProvider.d.ts +32 -87
- package/dist/components/NamiElement.d.ts +1 -1
- package/dist/components/Paywall.d.ts +1 -5
- package/dist/components/PaywallScreen.d.ts +2 -4
- package/dist/components/TemplateComponent.d.ts +2 -2
- package/dist/components/containers/BackgroundContainer.d.ts +1 -2
- package/dist/components/containers/CarouselContainer.d.ts +3 -3
- package/dist/components/containers/CollapseContainer.d.ts +3 -3
- package/dist/components/containers/Container.d.ts +3 -3
- package/dist/components/containers/Content.d.ts +1 -2
- package/dist/components/containers/Footer.d.ts +2 -2
- package/dist/components/containers/Header.d.ts +2 -2
- package/dist/components/containers/ProductContainer.d.ts +2 -2
- package/dist/components/containers/RepeatingGrid.d.ts +1 -2
- package/dist/components/containers/ResponsiveGrid.d.ts +2 -2
- package/dist/components/elements/Button.d.ts +3 -3
- package/dist/components/elements/CountdownTimerText.d.ts +2 -3
- package/dist/components/elements/Image.d.ts +1 -1
- package/dist/components/elements/PlayPauseButton.d.ts +2 -2
- package/dist/components/elements/ProgressBar.d.ts +2 -2
- package/dist/components/elements/ProgressIndicator.d.ts +2 -2
- package/dist/components/elements/QRCode.d.ts +2 -2
- package/dist/components/elements/RadioButton.d.ts +2 -2
- package/dist/components/elements/SegmentPicker.d.ts +3 -3
- package/dist/components/elements/SegmentPickerItem.d.ts +2 -2
- package/dist/components/elements/Spacer.d.ts +2 -2
- package/dist/components/elements/Stack.d.ts +2 -2
- package/dist/components/elements/Text.d.ts +2 -2
- package/dist/components/elements/ToggleButton.d.ts +2 -2
- package/dist/components/elements/ToggleSwitch.d.ts +2 -2
- package/dist/components/elements/Video.d.ts +1 -1
- package/dist/components/elements/VolumeButton.d.ts +2 -2
- package/dist/components/productDetails.d.ts +1 -1
- package/dist/components/utils/actionTap.d.ts +1 -1
- package/dist/components/utils/helpers.d.ts +5 -5
- package/dist/components/utils/impression.d.ts +2 -2
- package/dist/components/utils/products.d.ts +1 -2
- package/dist/components/utils/state.d.ts +4 -4
- package/dist/components/utils/styles.d.ts +12 -4
- package/dist/legacy-support.cjs +213 -25528
- package/dist/legacy-support.d.ts +48 -1
- package/dist/legacy-support.mjs +213 -25528
- package/dist/nami-web.cjs +26 -26
- package/dist/nami-web.d.ts +606 -10
- package/dist/nami-web.mjs +26 -26
- package/dist/nami-web.umd.js +91 -91
- package/dist/polyfills.cjs +50 -25519
- package/dist/polyfills.js +50 -25519
- package/dist/translations/translate.d.ts +1 -6
- package/dist/types/externals/campaign.d.ts +2 -62
- package/dist/types/externals/config.d.ts +1 -41
- package/dist/types/externals/customer.d.ts +1 -18
- package/dist/types/externals/entitlement.d.ts +1 -38
- package/dist/types/externals/errors.d.ts +1 -12
- package/dist/types/externals/flow.d.ts +2 -51
- package/dist/types/externals/languages.d.ts +1 -197
- package/dist/types/externals/loglevel.d.ts +2 -10
- package/dist/types/externals/paywall.d.ts +2 -109
- package/dist/types/externals/product.d.ts +1 -32
- package/dist/types/externals/purchase.d.ts +1 -42
- package/dist/types/externals/sku.d.ts +1 -31
- package/dist/utils/animations.d.ts +1 -1
- package/dist/utils/fonts.d.ts +1 -1
- package/package.json +35 -51
- package/dist/core/errors.d.ts +0 -55
- package/dist/core/withRetry.d.ts +0 -2
- package/dist/decorators/index.d.ts +0 -2
- package/dist/nami/api.d.ts +0 -20
- package/dist/nami/campaign.d.ts +0 -87
- package/dist/nami/customer.d.ts +0 -136
- package/dist/nami/emitter.d.ts +0 -13
- package/dist/nami/entitlement.d.ts +0 -46
- package/dist/nami/flow/NamiFlow.d.ts +0 -77
- package/dist/nami/flow/NamiFlowManager.d.ts +0 -77
- package/dist/nami/index.d.ts +0 -19
- package/dist/nami/namiRefs.d.ts +0 -17
- package/dist/nami/paywalls.d.ts +0 -77
- package/dist/nami/profile.d.ts +0 -12
- package/dist/nami/purchase.d.ts +0 -9
- package/dist/nami/utils/campaign.d.ts +0 -29
- package/dist/nami/utils/entitlement.d.ts +0 -55
- package/dist/nami/utils/index.d.ts +0 -1
- package/dist/nami/utils/paywall.d.ts +0 -21
- package/dist/nami/utils/purchase.d.ts +0 -4
- package/dist/nami/utils/resolvers/BaseNamespaceResolver.d.ts +0 -7
- package/dist/nami/utils/resolvers/ConditionalEvaluator.d.ts +0 -19
- package/dist/nami/utils/resolvers/DeviceResolver.d.ts +0 -10
- package/dist/nami/utils/resolvers/FlowLiquidResolver.d.ts +0 -19
- package/dist/nami/utils/resolvers/FormStateResolver.d.ts +0 -7
- package/dist/nami/utils/resolvers/LaunchContextResolver.d.ts +0 -8
- package/dist/nami/utils/resolvers/PlacementLabelResolver.d.ts +0 -8
- package/dist/nami/utils/resolvers/URLParamsResolver.d.ts +0 -7
- package/dist/repositories/campaignRule.repository.d.ts +0 -21
- package/dist/repositories/config.repository.d.ts +0 -5
- package/dist/repositories/customerJourney.repository.d.ts +0 -5
- package/dist/repositories/device.repository.d.ts +0 -16
- package/dist/repositories/entitlement.repository.d.ts +0 -11
- package/dist/repositories/paywall.repository.d.ts +0 -10
- package/dist/repositories/products.repository.d.ts +0 -6
- package/dist/services/logger.service.d.ts +0 -13
- package/dist/services/session.service.d.ts +0 -4
- package/dist/services/storage.service.d.ts +0 -90
- package/dist/types/api.d.ts +0 -30
- package/dist/types/campaign.d.ts +0 -16
- package/dist/types/components/animation.d.ts +0 -40
- package/dist/types/components/containers.d.ts +0 -182
- package/dist/types/components/elements.d.ts +0 -188
- package/dist/types/components/index.d.ts +0 -137
- package/dist/types/conditions.d.ts +0 -26
- package/dist/types/config.d.ts +0 -38
- package/dist/types/customer.d.ts +0 -2
- package/dist/types/device.d.ts +0 -36
- package/dist/types/entitlements.d.ts +0 -21
- package/dist/types/flow.d.ts +0 -108
- package/dist/types/paywall.d.ts +0 -201
- package/dist/types/products.d.ts +0 -6
- package/dist/types/profile.d.ts +0 -21
- package/dist/types/purchase.d.ts +0 -32
- package/dist/types/sku.d.ts +0 -26
- package/dist/types/utils.d.ts +0 -1
- package/dist/utils/anonymousMode.d.ts +0 -25
- package/dist/utils/config.d.ts +0 -10
- package/dist/utils/const.d.ts +0 -1
- package/dist/utils/device.d.ts +0 -10
- package/dist/utils/events.d.ts +0 -30
- package/dist/utils/feature-flags.d.ts +0 -1
- package/dist/utils/helpers.d.ts +0 -1
- package/dist/utils/parsers.d.ts +0 -26
- package/dist/utils/simple-event-target.d.ts +0 -7
- package/dist/utils/url-params.d.ts +0 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ISkuMenu, TInitialState, TPaywallLaunchContext } from "
|
|
1
|
+
import { ISkuMenu, TInitialState, TPaywallLaunchContext } from "@namiml/sdk-core";
|
|
2
2
|
import { NamiProductDetails } from "../../types/externals/product";
|
|
3
|
-
import { PaywallSKU } from "
|
|
4
|
-
import { NamiPaywallLaunchContext } from "
|
|
5
|
-
import { TCarouselSlide } from "
|
|
3
|
+
import { PaywallSKU } from "@namiml/sdk-core";
|
|
4
|
+
import type { NamiPaywallLaunchContext } from "@namiml/sdk-core";
|
|
5
|
+
import { TCarouselSlide } from "@namiml/sdk-core";
|
|
6
6
|
export declare function currentSku(productDetails: NamiProductDetails[], initialState: TInitialState, skuMenus: ISkuMenu[], skus: PaywallSKU[]): {
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TCarouselContainer } from "
|
|
2
|
-
import { TComponent, type TBaseComponent, type TContainerPosition } from
|
|
3
|
-
import type { TSegmentPicker, TTextLikeComponent } from "
|
|
4
|
-
import type { TSemverObj } from "
|
|
1
|
+
import type { TCarouselContainer } from "@namiml/sdk-core";
|
|
2
|
+
import { TComponent, type TBaseComponent, type TContainerPosition } from '@namiml/sdk-core';
|
|
3
|
+
import type { TSegmentPicker, TTextLikeComponent } from "@namiml/sdk-core";
|
|
4
|
+
import type { TSemverObj } from "@namiml/sdk-core";
|
|
5
5
|
export declare function parseSize(value: string | number, scaleFactor: number): string;
|
|
6
6
|
export declare function backgroundColor(value: string, fallback?: string): string;
|
|
7
7
|
export declare function filteredBorderColor(value: string, fallback?: string): string;
|
|
@@ -9,6 +9,14 @@ export declare function filteredTextColor(value: string, fallback?: string): str
|
|
|
9
9
|
export declare function pickAndApplyBackgroundColor(component: TBaseComponent, inFocusedState?: boolean): string;
|
|
10
10
|
export declare function flexDirection({ direction }: TBaseComponent): string;
|
|
11
11
|
export declare function alignAndJustifyItems(component: TBaseComponent): string;
|
|
12
|
+
/**
|
|
13
|
+
* Content-container-specific alignment: respects verticalAlignment and
|
|
14
|
+
* horizontalAlignment when explicitly set, but falls back to the content
|
|
15
|
+
* container's original defaults (align-items: center, justify-content: start)
|
|
16
|
+
* instead of using the generic `alignment` property which controls child/text
|
|
17
|
+
* alignment and would produce incorrect cross-axis values.
|
|
18
|
+
*/
|
|
19
|
+
export declare function contentAlignAndJustify(component: TBaseComponent): string;
|
|
12
20
|
export declare function applyTextWidth(minSDKVersion: TSemverObj): string;
|
|
13
21
|
export declare function applyChildSizing(minSDKVersion: TSemverObj, sizeKey: string): string;
|
|
14
22
|
export declare function applyTextOverflow(component: TTextLikeComponent): string;
|