whale-cmp 0.14.0 → 0.15.0
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/index.d.ts +11 -5
- package/index.html +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -12,25 +12,31 @@ export class WhaleCMP {
|
|
|
12
12
|
onKeydown: Function
|
|
13
13
|
visible: boolean
|
|
14
14
|
close: Function
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
/**
|
|
17
17
|
* Create a new WhaleCMP instance
|
|
18
18
|
* @param ele - The element to attach to
|
|
19
19
|
* @param language - Initial language (default: 'en')
|
|
20
20
|
*/
|
|
21
|
-
constructor(
|
|
22
|
-
|
|
21
|
+
constructor(WhaleCMPOptions?: object);
|
|
22
|
+
|
|
23
23
|
/**
|
|
24
24
|
* Set the language for the CMP interface
|
|
25
25
|
* @param lang - Language code (ar, de, en, es, fr, it, pt, zh)
|
|
26
26
|
*/
|
|
27
27
|
setLanguage(lang: SupportedLanguage): void;
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
/**
|
|
30
30
|
* Get current language
|
|
31
31
|
*/
|
|
32
32
|
getLanguage(): SupportedLanguage;
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Set the cpId for the CMP instance
|
|
36
|
+
* @param cpId - The cpId string to set
|
|
37
|
+
*/
|
|
38
|
+
setCpId(cpId: string): void;
|
|
39
|
+
|
|
34
40
|
/**
|
|
35
41
|
* Cleanup method to unsubscribe from language changes
|
|
36
42
|
*/
|