@financial-times/cmp-client 2.0.2 → 2.0.3
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/client.cjs +2657 -0
- package/dist/client.d.ts +63 -0
- package/dist/client.js +2657 -0
- package/dist/debug.cjs +32 -0
- package/dist/debug.d.ts +13 -0
- package/dist/debug.js +32 -0
- package/dist/properties.cjs +21 -0
- package/dist/properties.d.ts +19 -0
- package/dist/properties.js +21 -0
- package/package.json +1 -1
package/dist/debug.cjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const events = {
|
|
4
|
+
onMessageChoiceSelect: function(...args) {
|
|
5
|
+
console.log("[event] onMessageChoiceSelect", args);
|
|
6
|
+
},
|
|
7
|
+
onMessageReady: function(...args) {
|
|
8
|
+
console.log("[event] onMessageReady", args);
|
|
9
|
+
},
|
|
10
|
+
onMessageChoiceError: function(...args) {
|
|
11
|
+
console.log("[event] onMessageChoiceError", args);
|
|
12
|
+
},
|
|
13
|
+
onPrivacyManagerAction: function(...args) {
|
|
14
|
+
console.log("[event] onPrivacyManagerAction", args);
|
|
15
|
+
},
|
|
16
|
+
onPMCancel: function(...args) {
|
|
17
|
+
console.log("[event] onPMCancel", args);
|
|
18
|
+
},
|
|
19
|
+
onMessageReceiveData: function(...args) {
|
|
20
|
+
console.log("[event] onMessageReceiveData", args);
|
|
21
|
+
},
|
|
22
|
+
onSPPMObjectReady: function(...args) {
|
|
23
|
+
console.log("[event] onSPPMObjectReady", args);
|
|
24
|
+
},
|
|
25
|
+
onConsentReady: function(...args) {
|
|
26
|
+
console.log("[event] onConsentReady", args);
|
|
27
|
+
},
|
|
28
|
+
onError: function(...args) {
|
|
29
|
+
console.log("[event] onError", args);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.events = events;
|
package/dist/debug.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const events: {
|
|
2
|
+
onMessageChoiceSelect: (...args: unknown[]) => void;
|
|
3
|
+
onMessageReady: (...args: unknown[]) => void;
|
|
4
|
+
onMessageChoiceError: (...args: unknown[]) => void;
|
|
5
|
+
onPrivacyManagerAction: (...args: unknown[]) => void;
|
|
6
|
+
onPMCancel: (...args: unknown[]) => void;
|
|
7
|
+
onMessageReceiveData: (...args: unknown[]) => void;
|
|
8
|
+
onSPPMObjectReady: (...args: unknown[]) => void;
|
|
9
|
+
onConsentReady: (...args: unknown[]) => void;
|
|
10
|
+
onError: (...args: unknown[]) => void;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { }
|
package/dist/debug.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const events = {
|
|
2
|
+
onMessageChoiceSelect: function(...args) {
|
|
3
|
+
console.log("[event] onMessageChoiceSelect", args);
|
|
4
|
+
},
|
|
5
|
+
onMessageReady: function(...args) {
|
|
6
|
+
console.log("[event] onMessageReady", args);
|
|
7
|
+
},
|
|
8
|
+
onMessageChoiceError: function(...args) {
|
|
9
|
+
console.log("[event] onMessageChoiceError", args);
|
|
10
|
+
},
|
|
11
|
+
onPrivacyManagerAction: function(...args) {
|
|
12
|
+
console.log("[event] onPrivacyManagerAction", args);
|
|
13
|
+
},
|
|
14
|
+
onPMCancel: function(...args) {
|
|
15
|
+
console.log("[event] onPMCancel", args);
|
|
16
|
+
},
|
|
17
|
+
onMessageReceiveData: function(...args) {
|
|
18
|
+
console.log("[event] onMessageReceiveData", args);
|
|
19
|
+
},
|
|
20
|
+
onSPPMObjectReady: function(...args) {
|
|
21
|
+
console.log("[event] onSPPMObjectReady", args);
|
|
22
|
+
},
|
|
23
|
+
onConsentReady: function(...args) {
|
|
24
|
+
console.log("[event] onConsentReady", args);
|
|
25
|
+
},
|
|
26
|
+
onError: function(...args) {
|
|
27
|
+
console.log("[event] onError", args);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
events
|
|
32
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const defaults = {
|
|
4
|
+
joinHref: true,
|
|
5
|
+
gdpr: {},
|
|
6
|
+
ccpa: {}
|
|
7
|
+
};
|
|
8
|
+
const FT_DOTCOM_LOCAL = {
|
|
9
|
+
...defaults,
|
|
10
|
+
accountId: 1906,
|
|
11
|
+
baseEndpoint: "https://cdn.privacy-mgmt.com",
|
|
12
|
+
propertyHref: "https://local.ft.com"
|
|
13
|
+
};
|
|
14
|
+
const FT_DOTCOM_PROD = {
|
|
15
|
+
...defaults,
|
|
16
|
+
accountId: 1906,
|
|
17
|
+
baseEndpoint: "https://cdn.privacy-mgmt.com",
|
|
18
|
+
propertyId: 31642
|
|
19
|
+
};
|
|
20
|
+
exports.FT_DOTCOM_LOCAL = FT_DOTCOM_LOCAL;
|
|
21
|
+
exports.FT_DOTCOM_PROD = FT_DOTCOM_PROD;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const FT_DOTCOM_LOCAL: {
|
|
2
|
+
accountId: number;
|
|
3
|
+
baseEndpoint: string;
|
|
4
|
+
propertyHref: string;
|
|
5
|
+
joinHref: boolean;
|
|
6
|
+
gdpr: {};
|
|
7
|
+
ccpa: {};
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export declare const FT_DOTCOM_PROD: {
|
|
11
|
+
accountId: number;
|
|
12
|
+
baseEndpoint: string;
|
|
13
|
+
propertyId: number;
|
|
14
|
+
joinHref: boolean;
|
|
15
|
+
gdpr: {};
|
|
16
|
+
ccpa: {};
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const defaults = {
|
|
2
|
+
joinHref: true,
|
|
3
|
+
gdpr: {},
|
|
4
|
+
ccpa: {}
|
|
5
|
+
};
|
|
6
|
+
const FT_DOTCOM_LOCAL = {
|
|
7
|
+
...defaults,
|
|
8
|
+
accountId: 1906,
|
|
9
|
+
baseEndpoint: "https://cdn.privacy-mgmt.com",
|
|
10
|
+
propertyHref: "https://local.ft.com"
|
|
11
|
+
};
|
|
12
|
+
const FT_DOTCOM_PROD = {
|
|
13
|
+
...defaults,
|
|
14
|
+
accountId: 1906,
|
|
15
|
+
baseEndpoint: "https://cdn.privacy-mgmt.com",
|
|
16
|
+
propertyId: 31642
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
FT_DOTCOM_LOCAL,
|
|
20
|
+
FT_DOTCOM_PROD
|
|
21
|
+
};
|