@financial-times/cmp-client 2.1.0 → 2.2.1
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 +16 -4
- package/dist/index.js +16 -4
- 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 = {
|
|
@@ -109,13 +121,13 @@ const defaults = {
|
|
|
109
121
|
const FT_DOTCOM_LOCAL = {
|
|
110
122
|
...defaults,
|
|
111
123
|
accountId: 1906,
|
|
112
|
-
baseEndpoint: "https://
|
|
124
|
+
baseEndpoint: "https://consent-manager.ft.com",
|
|
113
125
|
propertyHref: "https://local.ft.com"
|
|
114
126
|
};
|
|
115
127
|
const FT_DOTCOM_PROD = {
|
|
116
128
|
...defaults,
|
|
117
129
|
accountId: 1906,
|
|
118
|
-
baseEndpoint: "https://
|
|
130
|
+
baseEndpoint: "https://consent-manager.ft.com",
|
|
119
131
|
propertyId: 31642
|
|
120
132
|
};
|
|
121
133
|
const properties = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -159,7 +171,7 @@ function getSPConfig(config) {
|
|
|
159
171
|
return `window._sp_queue=[];window._sp_={config:{${encodeConfig(config)}}}`;
|
|
160
172
|
}
|
|
161
173
|
const scriptSources = {
|
|
162
|
-
cmpFrames: "https://
|
|
174
|
+
cmpFrames: "https://consent-manager.ft.com/unified/wrapperMessagingWithoutDetection.js"
|
|
163
175
|
};
|
|
164
176
|
const scriptContent = {
|
|
165
177
|
getSPConfig,
|
|
@@ -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 = {
|
|
@@ -107,13 +119,13 @@ const defaults = {
|
|
|
107
119
|
const FT_DOTCOM_LOCAL = {
|
|
108
120
|
...defaults,
|
|
109
121
|
accountId: 1906,
|
|
110
|
-
baseEndpoint: "https://
|
|
122
|
+
baseEndpoint: "https://consent-manager.ft.com",
|
|
111
123
|
propertyHref: "https://local.ft.com"
|
|
112
124
|
};
|
|
113
125
|
const FT_DOTCOM_PROD = {
|
|
114
126
|
...defaults,
|
|
115
127
|
accountId: 1906,
|
|
116
|
-
baseEndpoint: "https://
|
|
128
|
+
baseEndpoint: "https://consent-manager.ft.com",
|
|
117
129
|
propertyId: 31642
|
|
118
130
|
};
|
|
119
131
|
const properties = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -157,7 +169,7 @@ function getSPConfig(config) {
|
|
|
157
169
|
return `window._sp_queue=[];window._sp_={config:{${encodeConfig(config)}}}`;
|
|
158
170
|
}
|
|
159
171
|
const scriptSources = {
|
|
160
|
-
cmpFrames: "https://
|
|
172
|
+
cmpFrames: "https://consent-manager.ft.com/unified/wrapperMessagingWithoutDetection.js"
|
|
161
173
|
};
|
|
162
174
|
const scriptContent = {
|
|
163
175
|
getSPConfig,
|
|
@@ -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