@financial-times/cmp-client 2.1.0 → 2.2.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/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/index.cjs +13 -1
- package/dist/index.js +13 -1
- package/dist/lib/constants.d.ts.map +1 -1
- package/package.json +1 -1
- package/typings/types.d.ts +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CMPInitOptions } from "../typings/types.d.ts";
|
|
2
|
-
export declare function initSourcepointCmp({ propertyConfig, userId, useFTSession, consentProxyHost, cookieDomain, formOfWordsId, useConsentStore, }
|
|
2
|
+
export declare function initSourcepointCmp({ propertyConfig, userId, useFTSession, consentProxyHost, cookieDomain, formOfWordsId, useConsentStore, }?: CMPInitOptions): Promise<void>;
|
|
3
3
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAS5D,wBAAsB,kBAAkB,CAAC,EACvC,cAA+B,EAC/B,MAAM,EACN,YAAmB,EACnB,gBAAwC,EACxC,YAA+B,EAC/B,aAAkC,EAClC,eAAsB,GACvB,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAS5D,wBAAsB,kBAAkB,CAAC,EACvC,cAA+B,EAC/B,MAAM,EACN,YAAmB,EACnB,gBAAwC,EACxC,YAA+B,EAC/B,aAAkC,EAClC,eAAsB,GACvB,GAAE,cAAmB,iBAiCrB"}
|
package/dist/index.cjs
CHANGED
|
@@ -99,6 +99,18 @@ const iabCustomCategories = {
|
|
|
99
99
|
iabVendors: [],
|
|
100
100
|
customVendors: [],
|
|
101
101
|
specialFeatures: []
|
|
102
|
+
},
|
|
103
|
+
behaviouralAds: {
|
|
104
|
+
purposes: [2, 4, 8, 9],
|
|
105
|
+
iabVendors: [],
|
|
106
|
+
customVendors: [],
|
|
107
|
+
specialFeatures: []
|
|
108
|
+
},
|
|
109
|
+
personalisedMarketing: {
|
|
110
|
+
purposes: [1, 4, 8, 9, 10],
|
|
111
|
+
iabVendors: [],
|
|
112
|
+
customVendors: [],
|
|
113
|
+
specialFeatures: []
|
|
102
114
|
}
|
|
103
115
|
};
|
|
104
116
|
const defaults = {
|
|
@@ -2824,7 +2836,7 @@ async function initSourcepointCmp({
|
|
|
2824
2836
|
cookieDomain = FT_COOKIE_DOMAIN,
|
|
2825
2837
|
formOfWordsId = SOURCEPOINT_FOW_ID,
|
|
2826
2838
|
useConsentStore = true
|
|
2827
|
-
}) {
|
|
2839
|
+
} = {}) {
|
|
2828
2840
|
if (!userId && useFTSession) {
|
|
2829
2841
|
try {
|
|
2830
2842
|
const response = await getUuid();
|
package/dist/index.js
CHANGED
|
@@ -97,6 +97,18 @@ const iabCustomCategories = {
|
|
|
97
97
|
iabVendors: [],
|
|
98
98
|
customVendors: [],
|
|
99
99
|
specialFeatures: []
|
|
100
|
+
},
|
|
101
|
+
behaviouralAds: {
|
|
102
|
+
purposes: [2, 4, 8, 9],
|
|
103
|
+
iabVendors: [],
|
|
104
|
+
customVendors: [],
|
|
105
|
+
specialFeatures: []
|
|
106
|
+
},
|
|
107
|
+
personalisedMarketing: {
|
|
108
|
+
purposes: [1, 4, 8, 9, 10],
|
|
109
|
+
iabVendors: [],
|
|
110
|
+
customVendors: [],
|
|
111
|
+
specialFeatures: []
|
|
100
112
|
}
|
|
101
113
|
};
|
|
102
114
|
const defaults = {
|
|
@@ -2822,7 +2834,7 @@ async function initSourcepointCmp({
|
|
|
2822
2834
|
cookieDomain = FT_COOKIE_DOMAIN,
|
|
2823
2835
|
formOfWordsId = SOURCEPOINT_FOW_ID,
|
|
2824
2836
|
useConsentStore = true
|
|
2825
|
-
}) {
|
|
2837
|
+
} = {}) {
|
|
2826
2838
|
if (!userId && useFTSession) {
|
|
2827
2839
|
try {
|
|
2828
2840
|
const response = await getUuid();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAC5D,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAE/C,eAAO,MAAM,kBAAkB,oDAAoD,CAAC;AACpF,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAE9D,eAAO,MAAM,WAAW;;;CAGvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAC5D,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAE/C,eAAO,MAAM,kBAAkB,oDAAoD,CAAC;AACpF,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAE9D,eAAO,MAAM,WAAW;;;CAGvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAyBjE,CAAC"}
|
package/package.json
CHANGED
package/typings/types.d.ts
CHANGED