native-document 1.0.82 → 1.0.83

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.
@@ -1054,12 +1054,6 @@ var NativeComponents = (function (exports) {
1054
1054
  return NDElement;
1055
1055
  };
1056
1056
 
1057
- function TemplateBinding(hydrate) {
1058
- this.$hydrate = hydrate;
1059
- }
1060
-
1061
- TemplateBinding.prototype.__$isTemplateBinding = true;
1062
-
1063
1057
  const COMMON_NODE_TYPES = {
1064
1058
  ELEMENT: 1,
1065
1059
  TEXT: 3,
@@ -1069,10 +1063,10 @@ var NativeComponents = (function (exports) {
1069
1063
 
1070
1064
  const Validator = {
1071
1065
  isObservable(value) {
1072
- return value?.__$isObservable || value instanceof ObservableItem || value instanceof ObservableChecker;
1066
+ return value?.__$isObservable;
1073
1067
  },
1074
1068
  isTemplateBinding(value) {
1075
- return value?.__$isTemplateBinding || value instanceof TemplateBinding;
1069
+ return value?.__$isTemplateBinding;
1076
1070
  },
1077
1071
  isObservableWhenResult(value) {
1078
1072
  return value && (value.__$isObservableWhen || (typeof value === 'object' && '$target' in value && '$observer' in value));
@@ -1442,10 +1436,6 @@ var NativeComponents = (function (exports) {
1442
1436
  this.subscribe(toggleElementClass.bind(null, element, className));
1443
1437
  };
1444
1438
 
1445
- TemplateBinding.prototype.bindNdClass = function(element, className) {
1446
- this.$hydrate(element, className);
1447
- };
1448
-
1449
1439
  function toggleElementClass(element, className, shouldAdd) {
1450
1440
  element.classes.toggle(className, shouldAdd);
1451
1441
  }
@@ -1647,10 +1637,6 @@ var NativeComponents = (function (exports) {
1647
1637
  return ElementCreator.getChild(child());
1648
1638
  };
1649
1639
 
1650
- TemplateBinding.prototype.toNdElement = function () {
1651
- return ElementCreator.createHydratableNode(null, this);
1652
- };
1653
-
1654
1640
  String.prototype.handleNdAttribute = function(element, attributeName) {
1655
1641
  element.setAttribute(attributeName, this);
1656
1642
  };
@@ -1664,10 +1650,6 @@ var NativeComponents = (function (exports) {
1664
1650
  bindAttributeWithObservable(element, attributeName, this);
1665
1651
  };
1666
1652
 
1667
- TemplateBinding.prototype.handleNdAttribute = function(element, attributeName) {
1668
- this.$hydrate(element, attributeName);
1669
- };
1670
-
1671
1653
  const $nodeCache = new Map();
1672
1654
  let $textNodeCache = null;
1673
1655
 
@@ -1768,16 +1750,6 @@ var NativeComponents = (function (exports) {
1768
1750
  if (attributes) {
1769
1751
  AttributesWrapper(element, attributes);
1770
1752
  }
1771
- },
1772
- /**
1773
- *
1774
- * @param {HTMLElement} element
1775
- * @param {Object} attributes
1776
- * @param {?Function} customWrapper
1777
- * @returns {HTMLElement|DocumentFragment}
1778
- */
1779
- setup(element, attributes, customWrapper) {
1780
- return element;
1781
1753
  }
1782
1754
  };
1783
1755
 
@@ -2076,7 +2048,7 @@ var NativeComponents = (function (exports) {
2076
2048
 
2077
2049
  ElementCreator.processAttributes(finalElement, attributes);
2078
2050
  ElementCreator.processChildren(children, finalElement);
2079
- return ElementCreator.setup(finalElement, attributes, customWrapper);
2051
+ return finalElement;
2080
2052
  }
2081
2053
 
2082
2054
  /**
@@ -955,10 +955,10 @@ var NativeDocument = (function (exports) {
955
955
 
956
956
  const Validator = {
957
957
  isObservable(value) {
958
- return value?.__$isObservable || value instanceof ObservableItem || value instanceof ObservableChecker;
958
+ return value?.__$isObservable;
959
959
  },
960
960
  isTemplateBinding(value) {
961
- return value?.__$isTemplateBinding || value instanceof TemplateBinding;
961
+ return value?.__$isTemplateBinding;
962
962
  },
963
963
  isObservableWhenResult(value) {
964
964
  return value && (value.__$isObservableWhen || (typeof value === 'object' && '$target' in value && '$observer' in value));
@@ -1697,19 +1697,6 @@ var NativeDocument = (function (exports) {
1697
1697
  if (attributes) {
1698
1698
  AttributesWrapper(element, attributes);
1699
1699
  }
1700
- },
1701
- /**
1702
- *
1703
- * @param {HTMLElement} element
1704
- * @param {Object} attributes
1705
- * @param {?Function} customWrapper
1706
- * @returns {HTMLElement|DocumentFragment}
1707
- */
1708
- setup(element, attributes, customWrapper) {
1709
- {
1710
- PluginsManager.emit('Setup', element, attributes, customWrapper);
1711
- }
1712
- return element;
1713
1700
  }
1714
1701
  };
1715
1702
 
@@ -2129,7 +2116,7 @@ var NativeDocument = (function (exports) {
2129
2116
 
2130
2117
  ElementCreator.processAttributes(finalElement, attributes);
2131
2118
  ElementCreator.processChildren(children, finalElement);
2132
- return ElementCreator.setup(finalElement, attributes, customWrapper);
2119
+ return finalElement;
2133
2120
  }
2134
2121
 
2135
2122
  /**