@didomi/react
Advanced tools
Comparing version 1.0.10 to 1.1.0
@@ -10,3 +10,2 @@ var _class, _temp; | ||
import { Component } from 'react'; | ||
import { renderToString } from 'react-dom/server'; | ||
import PropTypes from 'prop-types'; | ||
@@ -27,3 +26,3 @@ | ||
*/ | ||
DidomiSDK.prototype.didomiOnLoad = function didomiOnLoad(Didomi) { | ||
DidomiSDK.prototype.didomiOnReady = function didomiOnReady(Didomi) { | ||
this.props.onReady(Didomi); | ||
@@ -194,4 +193,4 @@ this.setEvents(Didomi); | ||
if (this.props.onReady) { | ||
window.didomiOnLoad = window.didomiOnLoad || []; | ||
window.didomiOnLoad.push(this.didomiOnLoad.bind(this)); | ||
window.didomiOnReady = window.didomiOnReady || []; | ||
window.didomiOnReady.push(this.didomiOnReady.bind(this)); | ||
} | ||
@@ -198,0 +197,0 @@ }; |
@@ -10,4 +10,2 @@ 'use strict'; | ||
var _server = require('react-dom/server'); | ||
var _propTypes = require('prop-types'); | ||
@@ -38,3 +36,3 @@ | ||
*/ | ||
DidomiSDK.prototype.didomiOnLoad = function didomiOnLoad(Didomi) { | ||
DidomiSDK.prototype.didomiOnReady = function didomiOnReady(Didomi) { | ||
this.props.onReady(Didomi); | ||
@@ -205,4 +203,4 @@ this.setEvents(Didomi); | ||
if (this.props.onReady) { | ||
window.didomiOnLoad = window.didomiOnLoad || []; | ||
window.didomiOnLoad.push(this.didomiOnLoad.bind(this)); | ||
window.didomiOnReady = window.didomiOnReady || []; | ||
window.didomiOnReady.push(this.didomiOnReady.bind(this)); | ||
} | ||
@@ -209,0 +207,0 @@ }; |
{ | ||
"name": "@didomi/react", | ||
"version": "1.0.10", | ||
"version": "1.1.0", | ||
"description": "didomi-react-test React component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -29,3 +29,3 @@ | ||
iab: { | ||
all: true | ||
all: true | ||
} | ||
@@ -50,8 +50,8 @@ } | ||
onPreferencesClickDisagreeToAll={() => console.log('Didomi Preferences Click Disagree to All')} | ||
onPreferencesClickPurposeAgree={() => console.log('Didomi Preferences Click Purpose Agree')} | ||
onPreferencesClickPurposeDisagree={() => console.log('Didomi Preferences Click Purpose Disagree')} | ||
onPreferencesClickPurposeAgree={purposeId => console.log('Didomi Preferences Click Purpose Agree', purposeId)} | ||
onPreferencesClickPurposeDisagree={purposeId => console.log('Didomi Preferences Click Purpose Disagree', purposeId)} | ||
onPreferencesClickViewVendors={() => console.log('Didomi Preferences Click View Vendors')} | ||
onPreferencesClickSaveChoices={() => console.log('Didomi Preferences Click Save Choices')} | ||
onPreferencesClickVendorAgree={() => console.log('Didomi Preferences Click Vendor Agree')} | ||
onPreferencesClickVendorDisagree={() => console.log('Didomi Preferences Click Vendor Disagree')} | ||
onPreferencesClickVendorAgree={vendorId => console.log('Didomi Preferences Click Vendor Agree', vendorId)} | ||
onPreferencesClickVendorDisagree={vendorId => console.log('Didomi Preferences Click Vendor Disagree', vendorId)} | ||
onPreferencesClickVendorSaveChoices={() => console.log('Didomi Preferences Click Vendor Save Choices')} | ||
@@ -99,3 +99,3 @@ /> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onNoticeShown</td> | ||
@@ -106,3 +106,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onNoticeHidden</td> | ||
@@ -114,3 +114,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onNoticeBackdropclick</td> | ||
@@ -122,3 +122,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onNoticeClickAgree</td> | ||
@@ -130,3 +130,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onNoticeClickMoreInfo</td> | ||
@@ -138,3 +138,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onPreferencesClickAgreeToAll</td> | ||
@@ -146,3 +146,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onPreferencesClickDisagreeToAll</td> | ||
@@ -154,3 +154,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onPreferencesClickPurposeAgree</td> | ||
@@ -162,3 +162,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onPreferencesClickPurposeDisagree</td> | ||
@@ -170,3 +170,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onPreferencesClickViewVendors</td> | ||
@@ -178,3 +178,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onPreferencesClickSaveChoices</td> | ||
@@ -186,3 +186,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onPreferencesClickVendorAgree</td> | ||
@@ -194,3 +194,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onPreferencesClickVendorDisagree</td> | ||
@@ -202,3 +202,3 @@ <td>function</td> | ||
</tr> | ||
<tr> | ||
<tr> | ||
<td>onPreferencesClickVendorSaveChoices</td> | ||
@@ -205,0 +205,0 @@ <td>function</td> |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
32955
409