@vpdev2/metakyc 1.0.26 → 1.0.28
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/CreateApplicantForm.d.ts.map +1 -1
- package/dist/components/CreateCompanyApplicantForm.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +20 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/index.cjs +15 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1180 -1163
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateApplicantForm.d.ts","sourceRoot":"","sources":["../../src/components/CreateApplicantForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateApplicantForm.d.ts","sourceRoot":"","sources":["../../src/components/CreateApplicantForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAgBpE,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAsJD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAojClE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCompanyApplicantForm.d.ts","sourceRoot":"","sources":["../../src/components/CreateCompanyApplicantForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateCompanyApplicantForm.d.ts","sourceRoot":"","sources":["../../src/components/CreateCompanyApplicantForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAepE,MAAM,WAAW,+BAA+B;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAQD,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,+BAA+B,CAmnBhF,CAAC"}
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export type { TranslationDictionary, PartialTranslationDictionary };
|
|
|
4
4
|
export declare const bundledLocales: Record<string, TranslationDictionary>;
|
|
5
5
|
/**
|
|
6
6
|
* Deep-merge a partial dictionary on top of a base dictionary.
|
|
7
|
-
*
|
|
7
|
+
* Handles both standard domain objects and custom/arbitrary domains
|
|
8
|
+
* added via the translation overrides panel.
|
|
8
9
|
*/
|
|
9
10
|
export declare function deepMerge(base: TranslationDictionary, override: PartialTranslationDictionary): TranslationDictionary;
|
|
10
11
|
/**
|
|
@@ -13,6 +14,24 @@ export declare function deepMerge(base: TranslationDictionary, override: Partial
|
|
|
13
14
|
export declare function getBundledDictionary(locale: string): TranslationDictionary;
|
|
14
15
|
/**
|
|
15
16
|
* Create a `t()` function bound to a specific dictionary with English fallback.
|
|
17
|
+
*
|
|
18
|
+
* Resolution order:
|
|
19
|
+
* 1. Direct dot-path lookup in the active dictionary
|
|
20
|
+
* 2. If the key has no dots, scan all domains for a matching leaf
|
|
21
|
+
* 3. Same two steps against the English fallback dictionary
|
|
22
|
+
* 4. Return the raw key as-is
|
|
16
23
|
*/
|
|
17
24
|
export declare function createTFunction(dict: TranslationDictionary): (key: string, params?: Record<string, string | number>) => string;
|
|
25
|
+
/**
|
|
26
|
+
* Resolve translation markers embedded in backend-supplied display text.
|
|
27
|
+
*
|
|
28
|
+
* If `text` matches `t('domain.key')`, `t("domain.key")`, or `$t:domain.key`,
|
|
29
|
+
* the key is looked up via the provided `t` function.
|
|
30
|
+
* Otherwise the original text is returned unchanged.
|
|
31
|
+
*
|
|
32
|
+
* Use this for any dynamic string coming from the backend (field titles,
|
|
33
|
+
* display names, descriptions, etc.) that tenants may want to localize
|
|
34
|
+
* via the SDK translation overrides.
|
|
35
|
+
*/
|
|
36
|
+
export declare function resolveDisplayText(text: string | undefined | null, t: (key: string, params?: Record<string, string | number>) => string): string;
|
|
18
37
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/i18n/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAmBnF,YAAY,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,CAAC;AAEpE,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAEhE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAmBnF,YAAY,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,CAAC;AAEpE,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAEhE,CAAC;AA+BF;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,qBAAqB,EAC3B,QAAQ,EAAE,4BAA4B,GACrC,qBAAqB,CAWvB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,qBAAqB,CAG1E;AAiBD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,qBAAqB,GAC1B,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAYnE;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EAC/B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,GACnE,MAAM,CAgBR"}
|