Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fastlane 3ds support #102

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 22 additions & 20 deletions dist/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,37 +216,39 @@ module.exports = function(modules) {
var child = firstChild.render(function(opts) {
void 0 === opts && (opts = {});
var _opts$doc = opts.doc, doc = void 0 === _opts$doc ? document : _opts$doc;
return function domRenderer(node) {
if ("component" === node.type) return node.renderComponent(domRenderer);
var _xmlNamespaceDomRenderer = function(node, xmlNamespace) {
if ("component" === node.type) return node.renderComponent((function(childNode) {
return _xmlNamespaceDomRenderer(childNode, xmlNamespace);
}));
if ("text" === node.type) return createTextElement(doc, node);
if ("element" === node.type) {
var el = function(doc, node, xmlNamespace) {
return doc.createElementNS(xmlNamespace, node.name);
}(doc, node, xmlNamespace);
addProps(el, node);
addChildren(el, node, doc, (function(childNode) {
return _xmlNamespaceDomRenderer(childNode, xmlNamespace);
}));
return el;
}
throw new TypeError("Unhandleable node");
};
var _domRenderer = function(node) {
if ("component" === node.type) return node.renderComponent(_domRenderer);
if ("text" === node.type) return createTextElement(doc, node);
if ("element" === node.type) {
var xmlNamespace = ELEMENT_DEFAULT_XML_NAMESPACE[node.name.toLowerCase()];
if (xmlNamespace) return function xmlNamespaceDomRenderer(node, xmlNamespace) {
if ("component" === node.type) return node.renderComponent((function(childNode) {
return xmlNamespaceDomRenderer(childNode, xmlNamespace);
}));
if ("text" === node.type) return createTextElement(doc, node);
if ("element" === node.type) {
var el = function(doc, node, xmlNamespace) {
return doc.createElementNS(xmlNamespace, node.name);
}(doc, node, xmlNamespace);
addProps(el, node);
addChildren(el, node, doc, (function(childNode) {
return xmlNamespaceDomRenderer(childNode, xmlNamespace);
}));
return el;
}
throw new TypeError("Unhandleable node");
}(node, xmlNamespace);
if (xmlNamespace) return _xmlNamespaceDomRenderer(node, xmlNamespace);
var el = function(doc, node) {
return node.props.el ? node.props.el : doc.createElement(node.name);
}(doc, node);
addProps(el, node);
addChildren(el, node, doc, domRenderer);
addChildren(el, node, doc, _domRenderer);
return el;
}
throw new TypeError("Unhandleable node");
};
return _domRenderer;
}({
doc: doc
}));
Expand Down
Loading
Loading