@digipair/skill-web-inputs 0.8.37 → 0.8.40

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/index.cjs.js CHANGED
@@ -39,7 +39,7 @@ function _create_class$3(Constructor, protoProps, staticProps) {
39
39
  if (staticProps) _defineProperties$3(Constructor, staticProps);
40
40
  return Constructor;
41
41
  }
42
- function _instanceof$3(left, right) {
42
+ function _instanceof$2(left, right) {
43
43
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
44
44
  return !!right[Symbol.hasInstance](left);
45
45
  } else {
@@ -92,7 +92,7 @@ var r$5 = function(t) {
92
92
  }, S$1 = function(s, o) {
93
93
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
94
94
  if (e$2) s.adoptedStyleSheets = o.map(function(t) {
95
- return _instanceof$3(t, CSSStyleSheet) ? t : t.styleSheet;
95
+ return _instanceof$2(t, CSSStyleSheet) ? t : t.styleSheet;
96
96
  });
97
97
  else try {
98
98
  for(var _iterator = o[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -117,7 +117,7 @@ var r$5 = function(t) {
117
117
  }, c$2 = e$2 ? function(t) {
118
118
  return t;
119
119
  } : function(t) {
120
- return _instanceof$3(t, CSSStyleSheet) ? function(t) {
120
+ return _instanceof$2(t, CSSStyleSheet) ? function(t) {
121
121
  var e = "";
122
122
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
123
123
  try {
@@ -2386,15 +2386,8 @@ DomAttributeElement = __decorate([
2386
2386
 
2387
2387
  /**
2388
2388
  * Guard function that checks if provided `input` is an Element.
2389
- */ function _instanceof$2(left, right) {
2390
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
2391
- return !!right[Symbol.hasInstance](left);
2392
- } else {
2393
- return left instanceof right;
2394
- }
2395
- }
2396
- function isElement(input) {
2397
- return input && _instanceof$2(input, Element);
2389
+ */ function isElement(input) {
2390
+ return typeof input === "object" && input !== null && input.nodeType === Node.ELEMENT_NODE;
2398
2391
  }
2399
2392
 
2400
2393
  var OPERATOR = {
@@ -2765,11 +2758,6 @@ var attributeBlacklistMatch = createPatternMatcher([
2765
2758
  // Angular attributes
2766
2759
  "ng-*"
2767
2760
  ]);
2768
- /**
2769
- * Prevents errors when attribute name contains a colon (e.g. "xlink:href").
2770
- */ function sanitizeAttributeName(name) {
2771
- return name.replace(/:/g, "\\:");
2772
- }
2773
2761
  /**
2774
2762
  * Get simplified attribute selector for an element.
2775
2763
  */ function attributeNodeToSimplifiedSelector(param) {
@@ -2801,7 +2789,7 @@ var attributeBlacklistMatch = createPatternMatcher([
2801
2789
  */ function sanitizeAttributeData(param) {
2802
2790
  var nodeName = param.nodeName, nodeValue = param.nodeValue;
2803
2791
  return {
2804
- name: sanitizeAttributeName(nodeName),
2792
+ name: sanitizeSelectorItem(nodeName),
2805
2793
  value: sanitizeSelectorItem(nodeValue)
2806
2794
  };
2807
2795
  }
package/index.esm.js CHANGED
@@ -35,7 +35,7 @@ function _create_class$3(Constructor, protoProps, staticProps) {
35
35
  if (staticProps) _defineProperties$3(Constructor, staticProps);
36
36
  return Constructor;
37
37
  }
38
- function _instanceof$3(left, right) {
38
+ function _instanceof$2(left, right) {
39
39
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
40
40
  return !!right[Symbol.hasInstance](left);
41
41
  } else {
@@ -88,7 +88,7 @@ var r$5 = function(t) {
88
88
  }, S$1 = function(s, o) {
89
89
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
90
90
  if (e$2) s.adoptedStyleSheets = o.map(function(t) {
91
- return _instanceof$3(t, CSSStyleSheet) ? t : t.styleSheet;
91
+ return _instanceof$2(t, CSSStyleSheet) ? t : t.styleSheet;
92
92
  });
93
93
  else try {
94
94
  for(var _iterator = o[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -113,7 +113,7 @@ var r$5 = function(t) {
113
113
  }, c$2 = e$2 ? function(t) {
114
114
  return t;
115
115
  } : function(t) {
116
- return _instanceof$3(t, CSSStyleSheet) ? function(t) {
116
+ return _instanceof$2(t, CSSStyleSheet) ? function(t) {
117
117
  var e = "";
118
118
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
119
119
  try {
@@ -2382,15 +2382,8 @@ DomAttributeElement = __decorate([
2382
2382
 
2383
2383
  /**
2384
2384
  * Guard function that checks if provided `input` is an Element.
2385
- */ function _instanceof$2(left, right) {
2386
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
2387
- return !!right[Symbol.hasInstance](left);
2388
- } else {
2389
- return left instanceof right;
2390
- }
2391
- }
2392
- function isElement(input) {
2393
- return input && _instanceof$2(input, Element);
2385
+ */ function isElement(input) {
2386
+ return typeof input === "object" && input !== null && input.nodeType === Node.ELEMENT_NODE;
2394
2387
  }
2395
2388
 
2396
2389
  var OPERATOR = {
@@ -2761,11 +2754,6 @@ var attributeBlacklistMatch = createPatternMatcher([
2761
2754
  // Angular attributes
2762
2755
  "ng-*"
2763
2756
  ]);
2764
- /**
2765
- * Prevents errors when attribute name contains a colon (e.g. "xlink:href").
2766
- */ function sanitizeAttributeName(name) {
2767
- return name.replace(/:/g, "\\:");
2768
- }
2769
2757
  /**
2770
2758
  * Get simplified attribute selector for an element.
2771
2759
  */ function attributeNodeToSimplifiedSelector(param) {
@@ -2797,7 +2785,7 @@ var attributeBlacklistMatch = createPatternMatcher([
2797
2785
  */ function sanitizeAttributeData(param) {
2798
2786
  var nodeName = param.nodeName, nodeValue = param.nodeValue;
2799
2787
  return {
2800
- name: sanitizeAttributeName(nodeName),
2788
+ name: sanitizeSelectorItem(nodeName),
2801
2789
  value: sanitizeSelectorItem(nodeValue)
2802
2790
  };
2803
2791
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-inputs",
3
- "version": "0.8.37",
3
+ "version": "0.8.40",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"