@plaidev/karte-action-sdk
Advanced tools
Comparing version 1.0.10 to 1.0.14
@@ -31,14 +31,15 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { | ||
var el = document.getElementById(KARTE_MODAL_ROOT); | ||
var root; | ||
if (el) { | ||
return useShadow ? el.shadowRoot || el.attachShadow({ mode: 'open' }) : el; | ||
root = useShadow ? el.shadowRoot || el.attachShadow({ mode: 'open' }) : el; | ||
} | ||
var newElement = document.createElement('div'); | ||
newElement.id = KARTE_MODAL_ROOT; | ||
document.body.appendChild(newElement); | ||
if (useShadow) { | ||
return newElement.attachShadow({ mode: 'open' }); | ||
} | ||
else { | ||
return newElement; | ||
var newRoot = document.createElement('div'); | ||
newRoot.id = KARTE_MODAL_ROOT; | ||
document.body.appendChild(newRoot); | ||
root = useShadow ? newRoot.attachShadow({ mode: 'open' }) : newRoot; | ||
} | ||
var modalContainer = document.createElement('div'); | ||
root.appendChild(modalContainer); | ||
return useShadow ? modalContainer.attachShadow({ mode: 'open' }) : modalContainer; | ||
} | ||
@@ -118,6 +119,11 @@ export var Position = function (props) { | ||
return (h(Fragment, null, state == 1 && (h(Fragment, null, | ||
props.fog && (h(Fog, { onClick: function () { setState(0); } })), | ||
props.fog && (h(Fog, { onClick: function () { | ||
setState(0); | ||
} })), | ||
h(Position, { position: props.position, zIndex: props.zIndex, fixed: props.fixed }, | ||
h(Base, null, | ||
h(CloseButton, { styled: props.styled, onClick: function () { props.send("message_close"); setState(0); } }), | ||
h(CloseButton, { styled: props.styled, onClick: function () { | ||
props.send('message_close'); | ||
setState(0); | ||
} }), | ||
h(Body, null, props.children))))))); | ||
@@ -141,6 +147,11 @@ }; | ||
return (h(Fragment, null, state == 1 && (h(Fragment, null, | ||
props.fog && (h(Fog, { onClick: function () { setState(0); } })), | ||
props.fog && (h(Fog, { onClick: function () { | ||
setState(0); | ||
} })), | ||
h(Position, { position: props.position, zIndex: props.zIndex, fixed: props.fixed }, | ||
h(Base, null, | ||
h(CloseButton, { styled: props.styled, onClick: function () { props.send("message_close"); setState(0); } }), | ||
h(CloseButton, { styled: props.styled, onClick: function () { | ||
props.send('message_close'); | ||
setState(0); | ||
} }), | ||
h(Body, null, props.children))))))); | ||
@@ -147,0 +158,0 @@ }; |
{ | ||
"name": "@plaidev/karte-action-sdk", | ||
"version": "1.0.10", | ||
"version": "1.0.14", | ||
"description": "", | ||
@@ -20,11 +20,18 @@ "keywords": [], | ||
"watch": "tsc --project . --watch", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"test": "jest --watch", | ||
"publish": "npm publish ." | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.11.6", | ||
"@babel/plugin-transform-modules-commonjs": "7.10.4", | ||
"@jest/core": "^26.2.2", | ||
"@types/jest": "^26.0.9", | ||
"babel-jest": "26.3.0", | ||
"goober": "2.0.5", | ||
"jest": "26.4.2", | ||
"preact": "10.4.8", | ||
"serialized-svg-icons": "4.1.0", | ||
"ts-jest": "^26.1.4", | ||
"typescript": "3.9.7" | ||
} | ||
} |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
31053
7
772
1
11