@usercentrics/cmp-browser-sdk
Advanced tools
Comparing version 1.2.7 to 1.3.0
@@ -17,2 +17,13 @@ # Changelog | ||
## [1.3.0] - 2020-11-30 | ||
### Added | ||
- Added `TCF` restoration to Cross Device Consent Sharing | ||
- Added support to disable `legitimate Interest` in `TCF` | ||
### Changed | ||
- `ucMobileSdk.getUserSessionData()` expects JSON encoded string | ||
## [1.2.7] - 2020-11-18 | ||
@@ -19,0 +30,0 @@ |
@@ -24,3 +24,3 @@ import { CONSENT_TYPE } from './services/DataFacade/enums'; | ||
[WINDOW_MOBILE_SDK_NAMESPACE]: { | ||
getUserSessionData: () => UserSessionData; | ||
getUserSessionData: () => string; | ||
}; | ||
@@ -27,0 +27,0 @@ } |
@@ -42,2 +42,3 @@ import { DATA_EXCHANGE_TYPE, LEGACY_CCPA_REGION, VERSION } from '../enums'; | ||
gdprApplies: boolean; | ||
hideLegitimateInterestToggles: boolean; | ||
isServiceSpecific: boolean; | ||
@@ -44,0 +45,0 @@ publisherCountryCode: string; |
@@ -139,2 +139,3 @@ import { FIRST_LAYER_VARIANT, LEGACY_CCPA_REGION, LEGACY_DATA_EXCHANGE_TYPE, LEGACY_VERSION, SECOND_LAYER_VARIANT, TCF_SCOPE } from '../enums'; | ||
accepted: string; | ||
anyDomain: string; | ||
btnAcceptAll: string; | ||
@@ -157,5 +158,10 @@ btnDeny: string; | ||
date: string; | ||
day: string; | ||
days: string; | ||
decision: string; | ||
denied: string; | ||
descriptionOfService: string; | ||
detailedStorageInformation: string; | ||
domain: string; | ||
duration: string; | ||
explicit: string; | ||
@@ -165,7 +171,21 @@ firstLayerTitle: string | null; | ||
history: string; | ||
hour: string; | ||
hours: string; | ||
identifier: string; | ||
implicit: string; | ||
imprintLinkText: string; | ||
informationLoadingNotPossible: string; | ||
legalBasisList: string; | ||
legalBasisInfo: string; | ||
loadingStorageInformation: string; | ||
locationOfProcessing: string; | ||
maximumAgeCookieStorage: string; | ||
minute: string; | ||
minutes: string; | ||
month: string; | ||
months: string; | ||
multipleDomains: string; | ||
name: string; | ||
no: string; | ||
nonCookieStorage: string; | ||
optOut: string; | ||
@@ -178,3 +198,7 @@ partnerPoweredByLinkText: string; | ||
retentionPeriod: string; | ||
second: string; | ||
seconds: string; | ||
session: string; | ||
showMore: string; | ||
storageInformation: string; | ||
technologiesUsed: string; | ||
@@ -185,2 +209,7 @@ technologiesUsedInfo: string; | ||
transferToThirdCountriesInfo: string; | ||
tryAgain: string; | ||
type: string; | ||
year: string; | ||
years: string; | ||
yes: string; | ||
} | ||
@@ -207,2 +236,3 @@ interface LegacyTCF2 { | ||
gdprApplies: boolean; | ||
hideLegitimateInterestToggles: boolean; | ||
hideNonIabOnFirstLayer: boolean; | ||
@@ -209,0 +239,0 @@ labelsDisclaimer: string; |
@@ -70,2 +70,33 @@ import { BaseButtons, BaseFirstLayer, BaseSecondLayer, BaseUISettings } from './interfaces.ui'; | ||
} | ||
export interface CookieInformationLabels { | ||
anyDomain: string; | ||
day: string; | ||
days: string; | ||
domain: string; | ||
duration: string; | ||
error: string; | ||
hour: string; | ||
hours: string; | ||
identifier: string; | ||
loading: string; | ||
maximumAge: string; | ||
minute: string; | ||
minutes: string; | ||
month: string; | ||
months: string; | ||
multipleDomains: string; | ||
name: string; | ||
no: string; | ||
nonCookieStorage: string; | ||
second: string; | ||
seconds: string; | ||
session: string; | ||
title: string; | ||
titleDetailed: string; | ||
tryAgain: string; | ||
type: string; | ||
year: string; | ||
years: string; | ||
yes: string; | ||
} | ||
export interface TCFUISettings extends BaseUISettings { | ||
@@ -95,2 +126,3 @@ buttons: BaseButtons & DefaultUIButtons & { | ||
labels: { | ||
cookieInformation: CookieInformationLabels; | ||
general: { | ||
@@ -116,2 +148,3 @@ features: string; | ||
secondLayer: BaseSecondLayer & { | ||
hideLegitimateInterestToggles: boolean; | ||
hideToggles: boolean; | ||
@@ -118,0 +151,0 @@ tabs: { |
@@ -80,3 +80,3 @@ import { BasePurpose } from './interfaces'; | ||
/** A number that determines the max age for the cookie in seconds */ | ||
cookieMaxAgeSeconds: number; | ||
cookieMaxAgeSeconds: number | null; | ||
/** A value which states the URL of storage disclosure */ | ||
@@ -83,0 +83,0 @@ deviceStorageDisclosureUrl: string; |
{ | ||
"name": "@usercentrics/cmp-browser-sdk", | ||
"version": "1.2.7", | ||
"version": "1.3.0", | ||
"tcfCmpVersion": "3", | ||
"author": "Usercentrics GmbH", | ||
"description": "Usercentrics CMP Browser SDK", | ||
"homepage": "https://docs.usercentrics.com/cmp_browser_sdk/1.2.7/index.html", | ||
"homepage": "https://docs.usercentrics.com/cmp_browser_sdk/1.3.0/index.html", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
@@ -29,2 +29,3 @@ "main": "dist/index.js", | ||
"prebuild": "rimraf dist", | ||
"precommit": "npm test", | ||
"prepublishOnly": "npm run build", | ||
@@ -75,6 +76,6 @@ "start": "npm run start:cookie-server & npm run start:cross-domain-server & npm run start:rollup", | ||
"eslint-plugin-tsdoc": "^0.2.5", | ||
"husky": "^4.2.5", | ||
"husky": "^4.3.0", | ||
"jest": "^26.0.1", | ||
"jest-localstorage-mock": "^2.4.2", | ||
"lint-staged": "^10.2.11", | ||
"lint-staged": "^10.5.1", | ||
"npm-run-all": "^4.1.5", | ||
@@ -81,0 +82,0 @@ "prettier": "^2.0.5", |
@@ -43,3 +43,3 @@ # Usercentrics CMP Browser SDK | ||
The constructor also supports an optional [Options](https://docs.usercentrics.com/cmp_browser_sdk/1.2.7/interfaces/options.html) parameter. | ||
The constructor also supports an optional [Options](https://docs.usercentrics.com/cmp_browser_sdk/1.3.0/interfaces/options.html) parameter. | ||
@@ -120,3 +120,3 @@ ## Accept / deny / update services in the default (non-TCF) context | ||
The constructor also supports an optional [Options](https://docs.usercentrics.com/cmp_browser_sdk/1.2.7/interfaces/options.html) parameter. | ||
The constructor also supports an optional [Options](https://docs.usercentrics.com/cmp_browser_sdk/1.3.0/interfaces/options.html) parameter. | ||
@@ -248,3 +248,3 @@ For TCF, the `createTcfApiStub` option needs to be set to true in order for the \_\_tcfapi queue to initialize right away (we cannot wait for the settings request to finish). | ||
```html | ||
<script type="application/javascript" src="https://app.usercentrics.eu/browser-sdk/1.2.7/bundle.js"></script> | ||
<script type="application/javascript" src="https://app.usercentrics.eu/browser-sdk/1.3.0/bundle.js"></script> | ||
``` | ||
@@ -280,3 +280,3 @@ | ||
**NOTE**: If you need Internet Explorer 11 support, you can point the `src` attribute to `https://app.usercentrics.eu/browser-sdk/1.2.7/bundle_legacy.js`. | ||
**NOTE**: If you need Internet Explorer 11 support, you can point the `src` attribute to `https://app.usercentrics.eu/browser-sdk/1.3.0/bundle_legacy.js`. | ||
@@ -289,6 +289,6 @@ ## Considerations for building your custom TCF v2.0 UI | ||
Additionally, the IAB will provide you with your own subdomain on the `consensu.org domain`. This subdomain is needed for settings the global-scope `euconsent-v2` cookie. In order for the TCF global-scope to work as intended with this SDK, you need to host a `cookie-handler iframe` on your own `consensu.org subdomain`. You can copy the following iframe `view-source:https://usercentrics.mgr.consensu.org/browser-sdk/1.2.7/cookie-bridge.html` (view page source). Make sure to provide your own `consensu.org subdomain` in the Usercentrics admin settings. Make sure the subdomain starts with `https://`. For your development setup to work correctly we also recommend adding port 443 (https) at the end (e.g. `https://YOUR_COMPANY_NAME.mgr.consensu.org:443`). You also need to provide the relative path to the iframe (including the filename) on that subdomain (e.g. `/YOUR_CURRENT_VERSION/cookie-bridge.html`) . | ||
Additionally, the IAB will provide you with your own subdomain on the `consensu.org domain`. This subdomain is needed for settings the global-scope `euconsent-v2` cookie. In order for the TCF global-scope to work as intended with this SDK, you need to host a `cookie-handler iframe` on your own `consensu.org subdomain`. You can copy the following iframe `view-source:https://usercentrics.mgr.consensu.org/browser-sdk/1.3.0/cookie-bridge.html` (view page source). Make sure to provide your own `consensu.org subdomain` in the Usercentrics admin settings. Make sure the subdomain starts with `https://`. For your development setup to work correctly we also recommend adding port 443 (https) at the end (e.g. `https://YOUR_COMPANY_NAME.mgr.consensu.org:443`). You also need to provide the relative path to the iframe (including the filename) on that subdomain (e.g. `/YOUR_CURRENT_VERSION/cookie-bridge.html`) . | ||
## Documentation | ||
Documentation can be found on our [documentation website](https://docs.usercentrics.com/cmp_browser_sdk/1.2.7/index.html). | ||
Documentation can be found on our [documentation website](https://docs.usercentrics.com/cmp_browser_sdk/1.3.0/index.html). |
Sorry, the diff of this file is too big to display
270299
2177