@namiml/web-sdk 3.4.7-dev.202607231500 → 3.4.7-dev.202607241811
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/components/utils/styles.d.ts +20 -0
- package/dist/legacy-support.cjs +3091 -1
- package/dist/legacy-support.mjs +3089 -1
- package/dist/nami-web.cjs +23 -23
- package/dist/nami-web.mjs +27 -27
- package/dist/nami-web.umd.js +24 -24
- package/dist/polyfills.cjs +1967 -1
- package/dist/polyfills.js +1965 -1
- package/package.json +2 -2
- package/dist/legacy-support-_commonjsHelpers-lGe4XDVY.mjs +0 -1
- package/dist/legacy-support-cjs.d.ts +0 -1
- package/dist/legacy-support-custom-elements-es5-adapter-E4qWtv8B.mjs +0 -1
- package/dist/legacy-support-polyfill-tg58WEdk.mjs +0 -1
- package/dist/legacy-support-url-polyfill.min-BgySTWoi.mjs +0 -1
- package/dist/legacy-support-webcomponents-bundle-DJRe-tdq.mjs +0 -1
- package/dist/utils/polyfill-loader.d.ts +0 -36
|
@@ -44,6 +44,26 @@ export declare function zIndex({ zIndex }: TBaseComponent): string;
|
|
|
44
44
|
export declare function dropShadow(dropShadow?: string, isText?: boolean): string;
|
|
45
45
|
export declare function textStrikethrough(value: boolean | undefined): string;
|
|
46
46
|
export declare function fontFamily(fontName?: string): string;
|
|
47
|
+
export declare function coerceNumeric(value: unknown): number;
|
|
48
|
+
export declare function hasValidLineHeight(component: {
|
|
49
|
+
lineHeight?: unknown;
|
|
50
|
+
}): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* lineHeight/letterSpacing text properties (NAM-1409). Mirrors the Page
|
|
53
|
+
* Builder previewer's `textSpacing()` contract (nami-platform PR #1722,
|
|
54
|
+
* services/frontend/src/components/PaywallPreview/css.ts):
|
|
55
|
+
* - lineHeight is an ABSOLUTE px value; only emitted when it coerces to a
|
|
56
|
+
* finite number > 0 (scaled by `scaleFactor`). Otherwise the caller's
|
|
57
|
+
* existing computed default line-height applies unchanged.
|
|
58
|
+
* - letterSpacing is an em fraction of font-size, signed decimal in
|
|
59
|
+
* [-1, 1]; emitted directly as `em` (NOT scaled). Applied whenever finite.
|
|
60
|
+
* Numeric strings ("4", "0.08") coerce via Number(); non-numeric / an
|
|
61
|
+
* unresolved `${var}` smart-text token coerce to NaN and are omitted.
|
|
62
|
+
*/
|
|
63
|
+
export declare function textSpacing(component: {
|
|
64
|
+
lineHeight?: unknown;
|
|
65
|
+
letterSpacing?: unknown;
|
|
66
|
+
}, scaleFactor: number): string;
|
|
47
67
|
export declare function applyStyles(component: TBaseComponent, scaleFactor: number, inFocusedState?: boolean): string;
|
|
48
68
|
export declare function applyGridStyles(component: TBaseComponent, inFocusedState?: boolean, scaleFactor?: number): string;
|
|
49
69
|
export declare function parsePosition(position?: TContainerPosition): string;
|