@bigbinary/neeto-molecules 4.0.65 → 4.0.66
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/ProductEmbed.js
CHANGED
|
@@ -148,7 +148,8 @@ var elementPopupEmbedCode$1 = function elementPopupEmbedCode(_ref5) {
|
|
|
148
148
|
var iframeEmbedCode$1 = function iframeEmbedCode(_ref6) {
|
|
149
149
|
var id = _ref6.id,
|
|
150
150
|
customization = _ref6.customization,
|
|
151
|
-
queryParams = _ref6.queryParams
|
|
151
|
+
queryParams = _ref6.queryParams,
|
|
152
|
+
embedScriptLink = _ref6.embedScriptLink;
|
|
152
153
|
var height = customization.height,
|
|
153
154
|
width = customization.width,
|
|
154
155
|
iframeTitle = customization.iframeTitle,
|
|
@@ -160,7 +161,7 @@ var iframeEmbedCode$1 = function iframeEmbedCode(_ref6) {
|
|
|
160
161
|
queryParams: queryParams
|
|
161
162
|
});
|
|
162
163
|
var heightAttribute = dynamicHeight !== null && dynamicHeight !== void 0 && dynamicHeight.value ? "" : "\n".concat(TAB_STRING, "height=\"").concat(height, "\"");
|
|
163
|
-
return "\n <!-- ".concat(globalProps.appName, " iframe embed code begins -->\n <iframe\n allowfullscreen").concat(heightAttribute, "\n width=\"").concat(width, "\"\n frameborder=\"0\"\n title=\"").concat(iframeTitle, "\"\n src=\"").concat(iframeSrc, "\"\n ></iframe>\n <!-- ").concat(globalProps.appName, " iframe embed code ends -->");
|
|
164
|
+
return "\n <!-- ".concat(globalProps.appName, " iframe embed code begins -->\n ").concat(dynamicHeight !== null && dynamicHeight !== void 0 && dynamicHeight.value && embedScriptLink ? embedBaseScript(embedScriptLink) : "", "\n <iframe\n allowfullscreen").concat(heightAttribute, "\n width=\"").concat(width, "\"\n frameborder=\"0\"\n title=\"").concat(iframeTitle, "\"\n src=\"").concat(iframeSrc, "\"\n ></iframe>\n <!-- ").concat(globalProps.appName, " iframe embed code ends -->");
|
|
164
165
|
};
|
|
165
166
|
var htmlCodeGenerators = {
|
|
166
167
|
inline: inlineEmbedCode$1,
|