@vpdev2/metakyc 1.0.9 → 1.0.10
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/identity/providers/sumsub.d.ts.map +1 -1
- package/dist/index.cjs +35 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +685 -697
- package/dist/index.js.map +1 -1
- package/dist/theme/theme-manager.d.ts +9 -23
- package/dist/theme/theme-manager.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -2,39 +2,25 @@ import { ThemeConfig } from '../types/theme';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Theme Manager
|
|
5
|
-
* Handles theme application and CSS variable management
|
|
5
|
+
* Handles theme application and CSS variable management.
|
|
6
|
+
* All CSS variables are scoped to .metakyc-sdk via injected <style> tags
|
|
7
|
+
* to prevent host-app interference.
|
|
6
8
|
*/
|
|
7
9
|
export declare class ThemeManager {
|
|
8
10
|
private currentTheme;
|
|
9
11
|
private customStyleElement;
|
|
10
|
-
private
|
|
11
|
-
|
|
12
|
-
constructor(container?: HTMLElement);
|
|
12
|
+
private themeStyleElement;
|
|
13
|
+
constructor();
|
|
13
14
|
/**
|
|
14
15
|
* Apply theme configuration
|
|
15
16
|
*/
|
|
16
17
|
applyTheme(theme: Partial<ThemeConfig>): void;
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* Build and inject a single <style> tag that sets all CSS variables on
|
|
20
|
+
* .metakyc-sdk AND re-asserts critical input/portal rules.
|
|
21
|
+
* Scoping to .metakyc-sdk means host-app variables can never interfere.
|
|
19
22
|
*/
|
|
20
|
-
private
|
|
21
|
-
/**
|
|
22
|
-
* Apply dark mode color overrides
|
|
23
|
-
*/
|
|
24
|
-
private applyDarkModeColors;
|
|
25
|
-
/**
|
|
26
|
-
* Apply typography settings
|
|
27
|
-
*/
|
|
28
|
-
private applyTypography;
|
|
29
|
-
/**
|
|
30
|
-
* Apply spacing settings
|
|
31
|
-
*/
|
|
32
|
-
private applySpacing;
|
|
33
|
-
/**
|
|
34
|
-
* Inject hard-coded CSS rules for inputs so the host/panel CSS cannot override them.
|
|
35
|
-
* These rules are placed BEFORE any custom CSS so that custom CSS can still override them.
|
|
36
|
-
*/
|
|
37
|
-
private injectInputColors;
|
|
23
|
+
private injectThemeCSS;
|
|
38
24
|
/**
|
|
39
25
|
* Inject custom CSS into document
|
|
40
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-manager.d.ts","sourceRoot":"","sources":["../../src/theme/theme-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"theme-manager.d.ts","sourceRoot":"","sources":["../../src/theme/theme-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;;GAKG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,kBAAkB,CAAiC;IAC3D,OAAO,CAAC,iBAAiB,CAAiC;;IAI1D;;OAEG;IACH,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI;IAW7C;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAmHtB;;OAEG;IACH,OAAO,CAAC,eAAe;IAUvB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAiCxB;;OAEG;IACH,eAAe,IAAI,WAAW;IAI9B;;OAEG;IACH,UAAU,IAAI,IAAI;IAIlB;;OAEG;IACH,OAAO,IAAI,IAAI;IAWf;;OAEG;IACH,OAAO,CAAC,SAAS;CAGlB"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.10";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vpdev2/metakyc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"require": "./dist/index.cjs",
|
|
17
17
|
"types": "./dist/index.d.ts"
|
|
18
18
|
},
|
|
19
|
-
"./
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|