@wistia/react-embeds
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -457,2 +457,17 @@ 'use strict'; | ||
}, { | ||
key: "computedPopoverContent", | ||
get: function get() { | ||
if (this.isPopoverLink) { | ||
return /*#__PURE__*/react.createElement("a", { | ||
href: "#" | ||
}, this.props.children); | ||
} | ||
if (this.isPopoverHtml) { | ||
return this.props.children; | ||
} | ||
return null; | ||
} | ||
}, { | ||
key: "cssHeightValue", | ||
@@ -483,2 +498,7 @@ get: function get() { | ||
}, { | ||
key: "isPopoverHtml", | ||
get: function get() { | ||
return this.props.popoverContent === 'html'; | ||
} | ||
}, { | ||
key: "optionsAsCSSClassNames", | ||
@@ -567,5 +587,3 @@ get: function get() { | ||
style: this.style | ||
}, this.isPopover && this.isPopoverLink ? /*#__PURE__*/react.createElement("a", { | ||
href: "#" | ||
}, this.props.children) : ' '))); | ||
}, this.isPopover && this.computedPopoverContent))); | ||
} else { | ||
@@ -577,5 +595,3 @@ return /*#__PURE__*/react.createElement("div", { | ||
style: this.style | ||
}, this.isPopover && this.isPopoverLink ? /*#__PURE__*/react.createElement("a", { | ||
href: "#" | ||
}, this.props.children) : ' '); | ||
}, this.isPopover && this.computedPopoverContent); | ||
} | ||
@@ -1081,2 +1097,3 @@ } //-- Player events --// | ||
exports.PLAYER_OPTION_KEYS = PLAYER_OPTION_KEYS; | ||
exports.WistiaChannel = WistiaChannel; | ||
@@ -1083,0 +1100,0 @@ exports.WistiaPlayer = WistiaPlayer; |
@@ -441,2 +441,17 @@ 'use strict'; | ||
}, { | ||
key: "computedPopoverContent", | ||
get: function get() { | ||
if (this.isPopoverLink) { | ||
return /*#__PURE__*/react.createElement("a", { | ||
href: "#" | ||
}, this.props.children); | ||
} | ||
if (this.isPopoverHtml) { | ||
return this.props.children; | ||
} | ||
return null; | ||
} | ||
}, { | ||
key: "cssHeightValue", | ||
@@ -467,2 +482,7 @@ get: function get() { | ||
}, { | ||
key: "isPopoverHtml", | ||
get: function get() { | ||
return this.props.popoverContent === 'html'; | ||
} | ||
}, { | ||
key: "optionsAsCSSClassNames", | ||
@@ -551,5 +571,3 @@ get: function get() { | ||
style: this.style | ||
}, this.isPopover && this.isPopoverLink ? /*#__PURE__*/react.createElement("a", { | ||
href: "#" | ||
}, this.props.children) : ' '))); | ||
}, this.isPopover && this.computedPopoverContent))); | ||
} else { | ||
@@ -561,5 +579,3 @@ return /*#__PURE__*/react.createElement("div", { | ||
style: this.style | ||
}, this.isPopover && this.isPopoverLink ? /*#__PURE__*/react.createElement("a", { | ||
href: "#" | ||
}, this.props.children) : ' '); | ||
}, this.isPopover && this.computedPopoverContent); | ||
} | ||
@@ -1013,2 +1029,3 @@ } //-- Player events --// | ||
exports.PLAYER_OPTION_KEYS = PLAYER_OPTION_KEYS; | ||
exports.WistiaChannel = WistiaChannel; | ||
@@ -1015,0 +1032,0 @@ exports.WistiaPlayer = WistiaPlayer; |
@@ -206,2 +206,16 @@ 'use strict'; | ||
get computedPopoverContent() { | ||
if (this.isPopoverLink) { | ||
return /*#__PURE__*/react.createElement("a", { | ||
href: "#" | ||
}, this.props.children); | ||
} | ||
if (this.isPopoverHtml) { | ||
return this.props.children; | ||
} | ||
return null; | ||
} | ||
get cssHeightValue() { | ||
@@ -227,2 +241,6 @@ return isUndefined(this.props.height) ? '100%' : `${this.props.height}px`; | ||
get isPopoverHtml() { | ||
return this.props.popoverContent === 'html'; | ||
} | ||
get optionsAsCSSClassNames() { | ||
@@ -305,5 +323,3 @@ return Object.entries(this.props).filter(isWistiaPlayerOptionEntry).map(serializeOptionEntry).join(' '); | ||
style: this.style | ||
}, this.isPopover && this.isPopoverLink ? /*#__PURE__*/react.createElement("a", { | ||
href: "#" | ||
}, this.props.children) : ' '))); | ||
}, this.isPopover && this.computedPopoverContent))); | ||
} else { | ||
@@ -315,5 +331,3 @@ return /*#__PURE__*/react.createElement("div", { | ||
style: this.style | ||
}, this.isPopover && this.isPopoverLink ? /*#__PURE__*/react.createElement("a", { | ||
href: "#" | ||
}, this.props.children) : ' '); | ||
}, this.isPopover && this.computedPopoverContent); | ||
} | ||
@@ -1229,2 +1243,3 @@ } //-- Player events --// | ||
exports.PLAYER_OPTION_KEYS = PLAYER_OPTION_KEYS; | ||
exports.WistiaChannel = WistiaChannel; | ||
@@ -1231,0 +1246,0 @@ exports.WistiaPlayer = WistiaPlayer; |
{ | ||
"name": "@wistia/react-embeds", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "React component wrappers for Wistia embeddables", | ||
@@ -29,6 +29,3 @@ "browser": "browser.js", | ||
"peerDependencies": { | ||
"prop-types": "^15.7.2", | ||
"react": ">17.0.2", | ||
"react-dom": ">17.0.2", | ||
"regenerator-runtime": "^0.12.0" | ||
"react": ">17.0.2" | ||
}, | ||
@@ -35,0 +32,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190880
2
5052