@quintype/components 3.3.2-check-sub-error.8 → 3.3.2-check-sub-error.10
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/cjs/index.js
CHANGED
|
@@ -4625,15 +4625,17 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
4625
4625
|
if (accessTypeKey && !isATScriptAlreadyPresent && !global.AccessType && global.document) {
|
|
4626
4626
|
console.log("enetred load script if block ");
|
|
4627
4627
|
var accessTypeScript = document.createElement("script");
|
|
4628
|
+
|
|
4629
|
+
accessTypeScript.onload = function () {
|
|
4630
|
+
_this.props.onATGlobalSet && _this.props.onATGlobalSet();
|
|
4631
|
+
callback();
|
|
4632
|
+
};
|
|
4633
|
+
|
|
4628
4634
|
accessTypeScript.setAttribute("src", accessTypeHost);
|
|
4629
4635
|
accessTypeScript.setAttribute("id", "AccessTypeScript");
|
|
4630
4636
|
accessTypeScript.setAttribute("data-accessType-script", "1");
|
|
4631
4637
|
accessTypeScript.async = 1;
|
|
4632
4638
|
|
|
4633
|
-
accessTypeScript.onload = function () {
|
|
4634
|
-
return callback();
|
|
4635
|
-
};
|
|
4636
|
-
|
|
4637
4639
|
accessTypeScript.onerror = function () {
|
|
4638
4640
|
callback();
|
|
4639
4641
|
console.log(" load s cript failed");
|
|
@@ -5578,7 +5580,8 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
5578
5580
|
validateCoupon: this.validateCoupon,
|
|
5579
5581
|
cancelSubscription: this.cancelSubscription,
|
|
5580
5582
|
getSubscriberMetadata: this.getSubscriberMetadata,
|
|
5581
|
-
setSubscriberMetadata: this.setSubscriberMetadata
|
|
5583
|
+
setSubscriberMetadata: this.setSubscriberMetadata,
|
|
5584
|
+
isAccessTypeObjectAVailable: this.state.isAccessTypeObjectAVailable
|
|
5582
5585
|
});
|
|
5583
5586
|
}
|
|
5584
5587
|
}]);
|
|
@@ -5807,7 +5810,7 @@ var mapDispatchToProps$1 = function mapDispatchToProps(dispatch) {
|
|
|
5807
5810
|
*/
|
|
5808
5811
|
|
|
5809
5812
|
|
|
5810
|
-
var
|
|
5813
|
+
var AccessType = /*#__PURE__*/reactRedux.connect(mapStateToProps$1, mapDispatchToProps$1)(AccessTypeBase);
|
|
5811
5814
|
|
|
5812
5815
|
function getSize(sizeMap) {
|
|
5813
5816
|
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
@@ -6173,6 +6176,7 @@ var ComponentReducers = {
|
|
|
6173
6176
|
exports.ACCESS_BEING_LOADED = ACCESS_BEING_LOADED;
|
|
6174
6177
|
exports.ACCESS_UPDATED = ACCESS_UPDATED;
|
|
6175
6178
|
exports.ASSET_PLANS = ASSET_PLANS;
|
|
6179
|
+
exports.AccessType = AccessType;
|
|
6176
6180
|
exports.AdbutlerAd = AdbutlerAd;
|
|
6177
6181
|
exports.BREAKING_NEWS_UPDATED = BREAKING_NEWS_UPDATED;
|
|
6178
6182
|
exports.BreakingNews = BreakingNews;
|
|
@@ -6239,4 +6243,3 @@ exports.removeDuplicateStories = removeDuplicateStories;
|
|
|
6239
6243
|
exports.replaceAllStoriesInCollection = replaceAllStoriesInCollection;
|
|
6240
6244
|
exports.withError = withError;
|
|
6241
6245
|
exports.wrapCollectionLayout = wrapCollectionLayout;
|
|
6242
|
-
exports.xAccessType = xAccessType;
|
|
@@ -55,15 +55,17 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
if (accessTypeKey && !isATScriptAlreadyPresent && !global.AccessType && global.document) {
|
|
56
56
|
console.log("enetred load script if block ");
|
|
57
57
|
var accessTypeScript = document.createElement("script");
|
|
58
|
+
|
|
59
|
+
accessTypeScript.onload = function () {
|
|
60
|
+
_this.props.onATGlobalSet && _this.props.onATGlobalSet();
|
|
61
|
+
callback();
|
|
62
|
+
};
|
|
63
|
+
|
|
58
64
|
accessTypeScript.setAttribute("src", accessTypeHost);
|
|
59
65
|
accessTypeScript.setAttribute("id", "AccessTypeScript");
|
|
60
66
|
accessTypeScript.setAttribute("data-accessType-script", "1");
|
|
61
67
|
accessTypeScript.async = 1;
|
|
62
68
|
|
|
63
|
-
accessTypeScript.onload = function () {
|
|
64
|
-
return callback();
|
|
65
|
-
};
|
|
66
|
-
|
|
67
69
|
accessTypeScript.onerror = function () {
|
|
68
70
|
callback();
|
|
69
71
|
console.log(" load s cript failed");
|
|
@@ -1008,7 +1010,8 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
1008
1010
|
validateCoupon: this.validateCoupon,
|
|
1009
1011
|
cancelSubscription: this.cancelSubscription,
|
|
1010
1012
|
getSubscriberMetadata: this.getSubscriberMetadata,
|
|
1011
|
-
setSubscriberMetadata: this.setSubscriberMetadata
|
|
1013
|
+
setSubscriberMetadata: this.setSubscriberMetadata,
|
|
1014
|
+
isAccessTypeObjectAVailable: this.state.isAccessTypeObjectAVailable
|
|
1012
1015
|
});
|
|
1013
1016
|
}
|
|
1014
1017
|
}]);
|
|
@@ -1237,4 +1240,4 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
1237
1240
|
*/
|
|
1238
1241
|
|
|
1239
1242
|
|
|
1240
|
-
export var
|
|
1243
|
+
export var AccessType = /*#__PURE__*/connect(mapStateToProps, mapDispatchToProps)(AccessTypeBase);
|
package/package.json
CHANGED