acrolinx-sidebar-sdk
Advanced tools
Comparing version 0.4.6 to 0.4.8
@@ -11,2 +11,3 @@ "use strict"; | ||
'input[type=text]', | ||
'input[type=hidden]', | ||
'[contenteditable="true"]', | ||
@@ -41,4 +42,3 @@ '[contenteditable="plaintext-only"]', | ||
if (doc === void 0) { doc = document; } | ||
var visibleElements = _.filter(doc.querySelectorAll(EDITABLE_ELEMENTS_SELECTOR), utils_1.isDisplayed); | ||
return _(visibleElements).flatMap(function (el) { | ||
return _(doc.querySelectorAll(EDITABLE_ELEMENTS_SELECTOR)).flatMap(function (el) { | ||
if (utils_1.isIFrame(el)) { | ||
@@ -45,0 +45,0 @@ try { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var _ = require("lodash"); | ||
var utils_1 = require("../utils/utils"); | ||
function getAutobindWrapperAttributes(element) { | ||
var eleDisplay = utils_1.isDisplayed(element) ? "" : "hidden"; | ||
var attributes = { | ||
@@ -9,3 +11,4 @@ 'original-id': element.id, | ||
'original-name': element.name, | ||
'original-source': element.tagName.toLowerCase() | ||
'original-source': element.tagName.toLowerCase(), | ||
'original-display': eleDisplay | ||
}; | ||
@@ -12,0 +15,0 @@ return _.omitBy(attributes, _.isEmpty); |
{ | ||
"name": "acrolinx-sidebar-sdk", | ||
"description": "Acrolinx Sidebar SDK for JavaScript", | ||
"version": "0.4.6", | ||
"version": "0.4.8", | ||
"license": "Apache-2.0", | ||
@@ -32,2 +32,3 @@ "author": "Acrolinx", | ||
"@types/mocha": "2.2.35", | ||
"@types/node": "8.10.11", | ||
"browserify": "^16.1.1", | ||
@@ -34,0 +35,0 @@ "browserify-istanbul": "2.0.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2306894
54354
34