smartnftportal
Advanced tools
Comparing version 1.0.39 to 1.0.40
@@ -38,13 +38,3 @@ "use strict"; | ||
onMouseOut, | ||
onMouseOver, | ||
onClick, | ||
onMouseDown, | ||
onMouseUp, | ||
onMouseMove, | ||
onContextMenu, | ||
onDblClick, | ||
onTouchStart, | ||
onTouchEnd, | ||
onTouchMove, | ||
onTouchCancel | ||
onMouseOver | ||
} = props; | ||
@@ -414,3 +404,3 @@ let loadingContent = props.loadingContent; | ||
} | ||
librariesHTML += getPortalAPIScripts(smartImports, metadata, activeHtmlStyle, inactiveHtmlStyle); | ||
librariesHTML += getPortalAPIScripts(smartImports, metadata, props); | ||
if (metadata && metadata.files && metadata.files[0]) { | ||
@@ -436,3 +426,17 @@ let newSrc = metadata.files[0].src; // Todo - this line and the line above assume that the text/html program code will be the first element in the files array | ||
// This is the API that's provided to the child iframe: | ||
const getPortalAPIScripts = (smartImports, metadata, activeHtmlStyle, inactiveHtmlStyle) => { | ||
const getPortalAPIScripts = (smartImports, metadata, props) => { | ||
const { | ||
onClick, | ||
onMouseDown, | ||
onMouseUp, | ||
onMouseMove, | ||
onContextMenu, | ||
onDblClick, | ||
onTouchStart, | ||
onTouchEnd, | ||
onTouchMove, | ||
onTouchCancel, | ||
activeHtmlStyle, | ||
inactiveHtmlStyle | ||
} = props; | ||
let ret = "<script>\n"; | ||
@@ -439,0 +443,0 @@ ret += "if (!window.cardano) window.cardano={};\n"; |
@@ -19,3 +19,3 @@ { | ||
"license": "BSD-3-Clause-Attribution", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"main": "dist/index.js", | ||
@@ -22,0 +22,0 @@ "scripts": { |
@@ -19,6 +19,3 @@ | ||
onMouseOut, | ||
onMouseOver, | ||
onClick, | ||
onMouseDown, | ||
onMouseUp, onMouseMove,onContextMenu,onDblClick,onTouchStart,onTouchEnd,onTouchMove,onTouchCancel} = props; | ||
onMouseOver} = props; | ||
let loadingContent = props.loadingContent; | ||
@@ -369,3 +366,3 @@ let ROOT = props.apiRoot; | ||
} | ||
librariesHTML+=getPortalAPIScripts(smartImports, metadata, activeHtmlStyle, inactiveHtmlStyle); | ||
librariesHTML+=getPortalAPIScripts(smartImports, metadata, props); | ||
if (metadata && metadata.files && metadata.files[0]) { | ||
@@ -387,4 +384,4 @@ let newSrc = metadata.files[0].src; // Todo - this line and the line above assume that the text/html program code will be the first element in the files array | ||
// This is the API that's provided to the child iframe: | ||
const getPortalAPIScripts = (smartImports, metadata, activeHtmlStyle, inactiveHtmlStyle) => { | ||
const getPortalAPIScripts = (smartImports, metadata, props) => { | ||
const {onClick, onMouseDown, onMouseUp, onMouseMove,onContextMenu,onDblClick,onTouchStart,onTouchEnd,onTouchMove,onTouchCancel, activeHtmlStyle, inactiveHtmlStyle} = props; | ||
let ret="<script>\n"; | ||
@@ -391,0 +388,0 @@ ret+="if (!window.cardano) window.cardano={};\n"; |
1229
64593