Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
8845ebe
(docs)
potench Jun 9, 2018
cf7522a
Merge pull request #2 from Openmail/potench/pr-template-2
potench Jun 9, 2018
50ce53a
Feature/pr test 2 (#3)
potench Jun 9, 2018
61ee2ba
Create PULL_REQUEST_TEMPLATE.md
potench Jun 9, 2018
9659c0b
Create CONTENT_SITE_PR_TEMPLATE.md
potench Jun 9, 2018
6c55c57
Update PULL_REQUEST_TEMPLATE.md
potench Jun 9, 2018
a75f1f4
Merge branch 'master' of https://github.com/appnexus/cmp
potench Jun 29, 2018
f28b53d
(merge) upstream merge and remove pr_template tests
potench Jun 29, 2018
c95af02
Merge branch 'master' of https://github.com/appnexus/cmp
potench Jun 29, 2018
04052cd
PLTX-2337 (refactor) upgrade to latest CMP from appnexus (#4)
potench Jul 3, 2018
517ccc0
Update README.md
potench Jul 3, 2018
f6c710d
(refactor) move reference.html to version folder
potench Jul 3, 2018
1aefceb
(refactor) fix links on s1/reference html file
potench Jul 3, 2018
be5af53
(refactor) use S1 color for popup
potench Jul 3, 2018
52176d1
potench/upgrade cmp 0.0.1 (#5)
potench Aug 7, 2018
839e821
upgrade (all) update to 89504d7
potench Aug 15, 2019
e812f37
upgrade cmp
potench Aug 16, 2019
61478fc
update style vars
potench Aug 16, 2019
601a5d8
upstream merge and handle combining with customization from modal branch
potench Aug 19, 2019
b133978
fix tests
potench Aug 19, 2019
14534a4
bump
potench Aug 19, 2019
6bcb3d7
bump
potench Aug 19, 2019
e6d7e0e
fix pubVendorConsent to check against known vendors
potench Aug 20, 2019
a6bd8f1
adds footer / removes import tests because import isnt implemented co…
potench Aug 20, 2019
5508e00
remove FOUC
potench Aug 20, 2019
172af1a
update with compliant text
potench Aug 20, 2019
007df8d
FED-1162 upgrade (all) update to 89504d7 (#14)
potench Aug 20, 2019
eff8752
fix (build) add cross-var package
potench Aug 20, 2019
ae705e0
fix (build) add s3-deploy package
potench Aug 20, 2019
45bc10d
FED-1184 feat (ui: features) add ui for features names and descriptio…
potench Sep 4, 2019
c4ed5c9
FED-1193 refactor (banner: ui) provide a direct link to the vendor li…
potench Sep 4, 2019
487dea3
FED-1221 refactor (init: events) only emit consent-change when no err…
potench Nov 19, 2019
54110a6
FED-1220 feat (cmp: modal) add modal option and update styling (#19)
potench Nov 20, 2019
b81dfc3
SERV-1190 refactor (init: autoConsentFooter) auto consent with Banner…
potench Nov 21, 2019
69ad3fc
NS-1963 fix (cmp: cookie) coerce cookie to boolean and update order o…
potench Nov 23, 2019
abeffd7
feat (cookie) remove domain inference and expose config option to set…
potench Dec 3, 2019
deedcca
refactor (cookie: domain) allow wildcard cookie domain on naked prima…
potench Dec 3, 2019
c0f3164
feat(system1-cmp): Add call to ReactNativeWebView
Feb 19, 2020
395fef4
adding local versions of files
potench Feb 19, 2020
f40f657
Merge pull request #24 from Openmail/james/reactNative
Feb 19, 2020
dbde878
v1.3.5
Feb 19, 2020
78086c5
Changelog
Feb 19, 2020
8b45b40
Merge pull request #25 from Openmail/1.3.5
Feb 19, 2020
f0a9ecc
refactor (reference: info-acs) refactor build and add themes for the …
potench Feb 21, 2020
1772bb8
refactor (info-acs: listeners) post cookie to native app on init, con…
potench Feb 21, 2020
ba527d0
props was causing this to fail
Feb 21, 2020
7c9b400
fix(info-acs): Fix ReactNative detection
Feb 21, 2020
27ab66a
Merge pull request #29 from Openmail/james/fixReactNative
Feb 21, 2020
f1094aa
refactor (store: features, vendors) filter vendors from display based…
potench Feb 26, 2020
f538127
FED-1436 feat (logging) adds logging for health monitoring to CMP to …
potench Apr 29, 2020
c7c974c
refactor (bundlesize) increase bundlesize to 61k for tracking
potench Apr 29, 2020
92350f7
fix (logging) remove untyped param from CMPOnSubmit event (#32)
potench Apr 29, 2020
04c2767
refactor (cmp: config) hoist flag shouldExpandPurposes to disable pur…
potench May 12, 2020
756ee00
refactor (translations: en) hoist up all english strings to translati…
potench May 13, 2020
1ad9d64
styles (banner) fix title spacing (#35)
potench Jun 5, 2020
f4641e5
refactor (bundlesize) translation increases bundle size to 62kb
potench Jun 5, 2020
0252f10
refactor (translations) add ja, sv, pt, nl, zh, dk; refactor es, it, …
potench Jun 12, 2020
e3c1be9
refactor (locale: fr/pl) update french and polish localizations / rem…
potench Jun 23, 2020
955aa1b
refactor (fix) 1.5.7 use hosted vendorlist by default (#39)
potench Aug 18, 2020
533777b
feat (core + ui) refactor application to use tcf 2.0 (#41)
potench Aug 28, 2020
fbddcf2
docs (readme) update readme with 2.0.0 language
potench Aug 28, 2020
804c8c7
fix (errors/languages) use error schema message and fix config langua…
potench Sep 1, 2020
02bca16
feat (store: consentUrl) ?gdpr_consent url param used to automaticall…
potench Sep 8, 2020
9c780d6
fix (loader: polyfills) add polyfill check for promise.finally / add …
potench Sep 16, 2020
faff35d
feat (stacks: autoresize) configurable flag to autoresize to push pur…
potench Sep 18, 2020
f5c95b8
docs (readme) update version in readme
potench Sep 18, 2020
28909aa
fix (deploy) fix typo in s3 deploy script
potench Sep 18, 2020
979eea3
2.1.0 feats/refactors (store,sdk) updates to pass IAB TCF 2.0 validat…
potench Sep 28, 2020
b40546d
docs (readme) update toc
potench Sep 28, 2020
ba3ef09
docs (readme) fix config in quick-installation instructions
potench Sep 29, 2020
7356900
refactor (debugging) remove console log
potench Sep 30, 2020
7f1b91d
fix (language) auto-detect and auto-load relevant language files dur…
potench Sep 30, 2020
4d8b4c2
refactor (dpl) upgrade dpl to test latest schema validation changes (…
potench Oct 20, 2020
36ddef5
chore(vendors) updates vendors list to version 62 (#50)
shane-landry Nov 4, 2020
107fe8d
Pfe 4216 (#51)
shane-landry Nov 16, 2020
c38332e
refactor (bundlesize) bump bundlesize for latest features
potench Nov 17, 2020
6469d83
feat (vendors: cookieMaxAgeSeconds) adds UI to display cookieMaxAgeSe…
potench Feb 26, 2021
07bc5fe
refactor (cmp: click-monitoring) fix health monitoring (#53)
potench Feb 26, 2021
b92464e
translations for new rows (#55)
niwang55 Mar 5, 2021
1299254
refactor (cmp: inline) inline version of CMP (#58)
potench Jun 10, 2021
f6dae41
fix (cmp: showConsent) only show consent modal automatically if gdprA…
potench Sep 29, 2021
b284ff8
Show the save button by default on the CMP banner (#60)
jlikamwa Sep 30, 2021
cde02f8
Plte 6607 - Update TC String's created and lastUpdated dates to a day…
jlikamwa Feb 2, 2022
c0c06f1
increase size of bundle
danielrussellLA Feb 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"sourceMaps": true,
"presets": [
["es2015", { "loose":true }],
"stage-0"
],
"plugins": [
["transform-decorators-legacy"],
["transform-react-jsx", { "pragma": "h" }],
["transform-object-assign"]
]
"sourceMaps": true,
"presets": ["@babel/preset-env"],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-transform-object-assign"],
["@babel/plugin-transform-react-jsx", { "pragma": "h" }],
["@babel/plugin-proposal-class-properties"],
["@babel/plugin-syntax-object-rest-spread"]
]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/loader.js
165 changes: 82 additions & 83 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,85 +1,84 @@
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"plugins": [
"react",
"jest"
],
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true,
"jest/globals": true
},
"parserOptions": {
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"settings": {
"react": {
"pragma": "h"
}
},
"globals": {
"sleep": 1
},
"rules": {
"react/jsx-no-bind": [2, { "ignoreRefs": true }],
"react/jsx-no-duplicate-props": 2,
"react/self-closing-comp": 2,
"react/prefer-es6-class": 2,
"react/no-string-refs": 2,
"react/require-render-return": 2,
"react/no-find-dom-node": 2,
"react/no-is-mounted": 2,
"react/jsx-no-comment-textnodes": 2,
"react/jsx-curly-spacing": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 1,
"jest/no-identical-title": 2,
"no-empty": 0,
"no-console": 0,
"no-empty-pattern": 0,
"no-cond-assign": 1,
"semi": 2,
"camelcase": 0,
"comma-style": 2,
"comma-dangle": 0,
"indent": [2, "tab", {"SwitchCase": 1}],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"max-nested-callbacks": [2, 3],
"no-eval": 2,
"no-implied-eval": 2,
"no-new-func": 2,
"guard-for-in": 2,
"eqeqeq": 1,
"no-else-return": 2,
"no-redeclare": 2,
"no-dupe-keys": 2,
"radix": 2,
"strict": [2, "never"],
"no-shadow": 0,
"no-delete-var": 2,
"no-undef-init": 2,
"no-shadow-restricted-names": 2,
"handle-callback-err": 0,
"no-lonely-if": 2,
"keyword-spacing": 2,
"constructor-super": 2,
"no-this-before-super": 2,
"no-dupe-class-members": 2,
"no-const-assign": 2,
"prefer-spread": 2,
"no-useless-concat": 2,
"no-var": 2,
"object-shorthand": 2,
"prefer-arrow-callback": 2
}
"parser": "babel-eslint",
"extends": ["eslint:recommended", "prettier"],
"plugins": ["react", "jest"],
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true,
"jest/globals": true
},
"parserOptions": {
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"settings": {
"react": {
"pragma": "h"
}
},
"globals": {
"sleep": "readonly",
"define": "readonly"
},
"rules": {
"react/jsx-no-bind": [2, { "ignoreRefs": true }],
"react/jsx-no-duplicate-props": 2,
"react/self-closing-comp": 2,
"react/prefer-es6-class": 2,
"react/no-string-refs": 2,
"react/require-render-return": 2,
"react/no-find-dom-node": 2,
"react/no-is-mounted": 2,
"react/jsx-no-comment-textnodes": 2,
"react/jsx-curly-spacing": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 1,
"jest/no-identical-title": 2,
"no-empty": 0,
"no-console": 0,
"no-empty-pattern": 0,
"no-cond-assign": 1,
"semi": 2,
"camelcase": 0,
"comma-style": 2,
"comma-dangle": 0,
"indent": [2, "tab", { "SwitchCase": 1, "ObjectExpression": "off" }],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"max-nested-callbacks": [2, 3],
"no-eval": 2,
"no-implied-eval": 2,
"no-new-func": 2,
"guard-for-in": 2,
"eqeqeq": 1,
"no-else-return": 2,
"no-redeclare": 2,
"no-dupe-keys": 2,
"radix": 2,
"strict": [2, "never"],
"no-shadow": 0,
"no-delete-var": 2,
"no-undef-init": 2,
"no-shadow-restricted-names": 2,
"handle-callback-err": 0,
"no-lonely-if": 2,
"keyword-spacing": 2,
"constructor-super": 2,
"no-this-before-super": 2,
"no-dupe-class-members": 2,
"no-const-assign": 2,
"prefer-spread": 2,
"no-useless-concat": 2,
"no-var": 2,
"object-shorthand": 2,
"prefer-arrow-callback": 2,
"quotes": [1, "single"]
}
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/node_modules
/npm-debug.log
/build
/dist
.DS_Store
/coverage
/.idea
/.vscode
4 changes: 3 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
registry=https://registry.npmjs.org/
registry=https://system1.jfrog.io/system1/api/npm/npm-virtual/
//system1.jfrog.io/system1/api/npm/npm-virtual/:_authToken=${NPM_TOKEN}
always-auth=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.13.0
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/loader.js
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"bracketSpacing": true,
"printWidth": 120,
"useTabs": true
}
132 changes: 132 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
## [2.3.0](https://github.com/openmail/system1-cmp/compare/2.2.2...2.3.0) (2022-01-25)

### Feat

- [x] Upgrade vendor list
- [x] Upgrade iabtcf npm library from 1.1.4 to 1.4.0-0 - Set created and lastUpdated dates to a day-level UTC timestamp

## [2.2.2](https://github.com/openmail/system1-cmp/compare/2.2.1...2.2.2) (2021-09-29)

### Refactor

- [x] Show the `save` button by default on the banner

## [2.2.1](https://github.com/openmail/system1-cmp/compare/2.2.0...2.2.1) (2021-09-28)

### Refactor

- [x] Added `config.shouldAutoShowModal` to allow disabling auto show modal after `init`

## [2.2.0](https://github.com/openmail/system1-cmp/compare/2.1.7...2.2.0) (2021-05-17)

### Feat

- [x] Upgrade vendor list and script to download vendor list
- [x] Add relative position modal solution
- [x] Add `updateConfig` API to switch between relative and static position
- [x] Pass theme colors through to anchors

## [2.1.7](https://github.com/openmail/system1-cmp/compare/2.1.6...2.1.7) (2021-03-05)

### Feat

- [x] Add translations for device text

## [2.1.6](https://github.com/openmail/system1-cmp/compare/2.1.5...2.1.6) (2021-02-26)

### Refactor

- [x] Fix Monitoring; "category" should be a string not a click event

## [2.1.5](https://github.com/openmail/system1-cmp/compare/2.1.4...2.1.5) (2021-02-26)

### Feat

- [x] Upgrades cmpapi and cmpcore
- [x] Updates global vendor list
- [x] Adds Device Storage to Vendor Stack to display cookieMaxAgeSeconds
- [x] Splits legal-disclosure for legibility in Purpose Stack
- [x] Refactor error logger

## [2.1.4](https://github.com/openmail/system1-cmp/compare/2.1.3...2.1.4) (2020-11-05)

### Feat

- [x] Adds new slim banner with feature flag
- [x] Adds full width mode with feature flag
- [x] Adds drop shadow toggle feature flag
- [x] Adds close with × buttom feature flag
- [x] Adds default background color override

## [2.1.3](https://github.com/openmail/system1-cmp/compare/2.1.2...2.1.3) (2020-11-03)

### Chore

- [x] Update to vendor list versino 62

## [2.1.2](https://github.com/openmail/system1-cmp/compare/2.1.1...2.1.2) (2020-10-20)

### Refactor

- [x] Upgrade DPL

## [2.1.1](https://github.com/openmail/system1-cmp/compare/2.1.0...2.1.1) (2020-09-30)

### Fix

- [x] auto-detect `config.language` and auto-load relevant language files during CMP initialization
- [x] configurable `config.theme.maxWidthModal`

## [2.1.0](https://github.com/openmail/system1-cmp/compare/2.0.4...2.1.0) (2020-09-23)

### Refactor

- [x] `isServiceSpecific` passed through config, default true.
- [x] Upgrade to vendor-list 56
- [x] Config to turn off Stacks on Layer 1

### Dev Tooling

- [x] CMPVersion managed in package.json and incremented on each change
- [x] Add script to auto-upgrade vendor-list and remote translations using `yarn update-vendor-list`

## [2.0.4](https://github.com/openmail/system1-cmp/compare/2.0.3...2.0.4) (2020-09-17)

### Styling

- [x] Downsize fonts and spacing mobile
- [x] Downsize spacing desktop
- [x] Add scroll bar
- [x] Auto-position CMP vertically based on purposes

## [2.0.3](https://github.com/openmail/system1-cmp/compare/2.0.2...2.0.3) (2020-09-15)

### Fix

- [x] tcf-2.0-loader add check for Promise finally.
- [x] Add more information on localize fetch error log.

## [2.0.2](https://github.com/openmail/system1-cmp/compare/2.0.1...2.0.2) (2020-09-02)

### Feat

- [x] Automatically set and persist consent signal if valid TC String present on URLParam `?gdpr_consent`
- [x] Enforce boolean properties in logger

## [2.0.1](https://github.com/openmail/system1-cmp/compare/2.0.0...2.0.1) (2020-08-31)

### Refactor

- [x] Switch to node 12
- [x] Animate modal on first reveal

### Fix

- [x] Update logging Error and Save schemas
- [x] Fix initial language configuration

## [2.0.0](https://github.com/openmail/system1-cmp/compare/1.5.6...2.0.0) (2020-08-14)

### Refactor

- [x] Introduce new CMP based on TCF 2.0 framework
Loading