@quintype/components 3.4.5-fix-fb-video-crop.0 → 3.4.5
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
|
@@ -3014,28 +3014,19 @@ var JSEmbed = /*#__PURE__*/function (_React$Component) {
|
|
|
3014
3014
|
}
|
|
3015
3015
|
|
|
3016
3016
|
return Buffer.from(embedJs, "base64").toString("utf-8");
|
|
3017
|
-
} // Method to check the innerHTMLEmbedFile is from Facebook or not
|
|
3018
|
-
|
|
3019
|
-
}, {
|
|
3020
|
-
key: "checkFacebookURL",
|
|
3021
|
-
value: function checkFacebookURL(innerHTMLEmbedFile) {
|
|
3022
|
-
return (innerHTMLEmbedFile === null || innerHTMLEmbedFile === void 0 ? void 0 : innerHTMLEmbedFile.includes("https://www.facebook.com")) || false;
|
|
3023
3017
|
}
|
|
3024
3018
|
}, {
|
|
3025
3019
|
key: "render",
|
|
3026
3020
|
value: function render() {
|
|
3027
3021
|
var _this2 = this;
|
|
3028
3022
|
|
|
3029
|
-
var innerHTMLEmbedFile = this.getEmbedJS(); // isFacebookFileEmbedded will add a new className for changing the iframe style only for facebook
|
|
3030
|
-
|
|
3031
|
-
var isFacebookFileEmbedded = this.checkFacebookURL(innerHTMLEmbedFile);
|
|
3032
3023
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3033
|
-
className: "jsembed-wrapper
|
|
3024
|
+
className: "jsembed-wrapper",
|
|
3034
3025
|
ref: function ref(jsembed) {
|
|
3035
3026
|
_this2.JSEmbed = jsembed;
|
|
3036
3027
|
},
|
|
3037
3028
|
dangerouslySetInnerHTML: {
|
|
3038
|
-
__html:
|
|
3029
|
+
__html: this.getEmbedJS()
|
|
3039
3030
|
}
|
|
3040
3031
|
});
|
|
3041
3032
|
}
|
|
@@ -5392,7 +5383,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
5392
5383
|
return null;
|
|
5393
5384
|
};
|
|
5394
5385
|
_context8.next = 3;
|
|
5395
|
-
return fetch("/api/v1/access-token/integrations/".concat(_this.props.accessTypeBkIntegrationId));
|
|
5386
|
+
return fetch("/api/auth/v1/access-token/integrations/".concat(_this.props.accessTypeBkIntegrationId));
|
|
5396
5387
|
|
|
5397
5388
|
case 3:
|
|
5398
5389
|
jwtResponse = _context8.sent;
|
|
@@ -429,7 +429,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
429
429
|
return null;
|
|
430
430
|
};
|
|
431
431
|
_context8.next = 3;
|
|
432
|
-
return fetch("/api/v1/access-token/integrations/".concat(_this.props.accessTypeBkIntegrationId));
|
|
432
|
+
return fetch("/api/auth/v1/access-token/integrations/".concat(_this.props.accessTypeBkIntegrationId));
|
|
433
433
|
|
|
434
434
|
case 3:
|
|
435
435
|
jwtResponse = _context8.sent;
|
|
@@ -77,28 +77,19 @@ var JSEmbed = /*#__PURE__*/function (_React$Component) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
return Buffer.from(embedJs, "base64").toString("utf-8");
|
|
80
|
-
} // Method to check the innerHTMLEmbedFile is from Facebook or not
|
|
81
|
-
|
|
82
|
-
}, {
|
|
83
|
-
key: "checkFacebookURL",
|
|
84
|
-
value: function checkFacebookURL(innerHTMLEmbedFile) {
|
|
85
|
-
return (innerHTMLEmbedFile === null || innerHTMLEmbedFile === void 0 ? void 0 : innerHTMLEmbedFile.includes("https://www.facebook.com")) || false;
|
|
86
80
|
}
|
|
87
81
|
}, {
|
|
88
82
|
key: "render",
|
|
89
83
|
value: function render() {
|
|
90
84
|
var _this2 = this;
|
|
91
85
|
|
|
92
|
-
var innerHTMLEmbedFile = this.getEmbedJS(); // isFacebookFileEmbedded will add a new className for changing the iframe style only for facebook
|
|
93
|
-
|
|
94
|
-
var isFacebookFileEmbedded = this.checkFacebookURL(innerHTMLEmbedFile);
|
|
95
86
|
return /*#__PURE__*/React.createElement("div", {
|
|
96
|
-
className: "jsembed-wrapper
|
|
87
|
+
className: "jsembed-wrapper",
|
|
97
88
|
ref: function ref(jsembed) {
|
|
98
89
|
_this2.JSEmbed = jsembed;
|
|
99
90
|
},
|
|
100
91
|
dangerouslySetInnerHTML: {
|
|
101
|
-
__html:
|
|
92
|
+
__html: this.getEmbedJS()
|
|
102
93
|
}
|
|
103
94
|
});
|
|
104
95
|
}
|