@v1nt1248/3nclient-lib 0.1.85 → 0.1.86

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.
@@ -4628,7 +4628,7 @@ function FE(Q, A, g) {
4628
4628
  let B = "", E = "";
4629
4629
  function e(k, J) {
4630
4630
  const H = this;
4631
- this.tag = k, this.attribs = J || {}, this.tagPosition = B.length, this.text = "", this.mediaChildren = [], this.updateParentNodeText = function() {
4631
+ this.tag = k, this.attribs = J || {}, this.tagPosition = B.length, this.text = "", this.openingTagLength = 0, this.mediaChildren = [], this.updateParentNodeText = function() {
4632
4632
  if (G.length) {
4633
4633
  const q = G[G.length - 1];
4634
4634
  q.text += H.text;
@@ -4693,11 +4693,11 @@ and ensure you are accounting for this risk.
4693
4693
  let q = !1;
4694
4694
  const tA = !!H.text;
4695
4695
  let nA;
4696
- if (aQ(u, k) && (nA = u[k](k, J), H.attribs = J = nA.attribs, nA.text !== void 0 && (H.innerText = nA.text), k !== nA.tagName && (H.name = k = nA.tagName, O[M] = nA.tagName)), U && (nA = U(k, J), H.attribs = J = nA.attribs, k !== nA.tagName && (H.name = k = nA.tagName, O[M] = nA.tagName)), (!o(k) || A.disallowedTagsMode === "recursiveEscape" && !YU(p) || A.nestingLimit != null && M >= A.nestingLimit) && (q = !0, p[M] = !0, (A.disallowedTagsMode === "discard" || A.disallowedTagsMode === "completelyDiscard") && r.indexOf(k) !== -1 && ($ = !0, v = 1), p[M] = !0), M++, q) {
4696
+ if (aQ(u, k) && (nA = u[k](k, J), H.attribs = J = nA.attribs, nA.text !== void 0 && (H.innerText = nA.text), k !== nA.tagName && (H.name = k = nA.tagName, O[M] = nA.tagName)), U && (nA = U(k, J), H.attribs = J = nA.attribs, k !== nA.tagName && (H.name = k = nA.tagName, O[M] = nA.tagName)), (!o(k) || A.disallowedTagsMode === "recursiveEscape" && !YU(p) || A.nestingLimit != null && M >= A.nestingLimit) && (q = !0, p[M] = !0, (A.disallowedTagsMode === "discard" || A.disallowedTagsMode === "completelyDiscard") && r.indexOf(k) !== -1 && ($ = !0, v = 1)), M++, q) {
4697
4697
  if (A.disallowedTagsMode === "discard" || A.disallowedTagsMode === "completelyDiscard") {
4698
4698
  if (H.innerText && !tA) {
4699
4699
  const sA = d(H.innerText);
4700
- A.textFilter ? B += A.textFilter(sA, k) : B += d(H.innerText), EA = !0;
4700
+ A.textFilter ? B += A.textFilter(sA, k) : B += sA, EA = !0;
4701
4701
  }
4702
4702
  return;
4703
4703
  }
@@ -4824,7 +4824,7 @@ and ensure you are accounting for this risk.
4824
4824
  B += " " + yA, sA && sA.length ? B += '="' + d(sA, !0) + '"' : A.allowedEmptyAttributes.includes(yA) && (B += '=""');
4825
4825
  } else
4826
4826
  delete H.attribs[yA];
4827
- }), A.selfClosing.indexOf(k) !== -1 ? B += " />" : (B += ">", H.innerText && !tA && !A.textFilter && (B += d(H.innerText), EA = !0)), q && (B = E + d(B), E = "");
4827
+ }), A.selfClosing.indexOf(k) !== -1 ? B += " />" : (B += ">", H.innerText && !tA && !A.textFilter && (B += d(H.innerText), EA = !0)), q && (B = E + d(B), E = ""), H.openingTagLength = B.length - H.tagPosition;
4828
4828
  },
4829
4829
  ontext: function(k) {
4830
4830
  if ($)
@@ -4835,9 +4835,9 @@ and ensure you are accounting for this risk.
4835
4835
  k = "";
4836
4836
  else if ((A.disallowedTagsMode === "discard" || A.disallowedTagsMode === "completelyDiscard") && (H === "script" || H === "style"))
4837
4837
  B += k;
4838
- else {
4838
+ else if (!EA) {
4839
4839
  const q = d(k, !1);
4840
- A.textFilter && !EA ? B += A.textFilter(q, H) : EA || (B += q);
4840
+ A.textFilter ? B += A.textFilter(q, H) : B += q;
4841
4841
  }
4842
4842
  if (G.length) {
4843
4843
  const q = G[G.length - 1];
@@ -4866,9 +4866,15 @@ and ensure you are accounting for this risk.
4866
4866
  }
4867
4867
  E = B, B = "";
4868
4868
  }
4869
- if (O[M] && (k = O[M], delete O[M]), A.exclusiveFilter && A.exclusiveFilter(H)) {
4870
- B = B.substr(0, H.tagPosition);
4871
- return;
4869
+ if (O[M] && (k = O[M], delete O[M]), A.exclusiveFilter) {
4870
+ const tA = A.exclusiveFilter(H);
4871
+ if (tA === "excludeTag") {
4872
+ q && (B = E, E = ""), B = B.substring(0, H.tagPosition) + B.substring(H.tagPosition + H.openingTagLength);
4873
+ return;
4874
+ } else if (tA) {
4875
+ B = B.substring(0, H.tagPosition);
4876
+ return;
4877
+ }
4872
4878
  }
4873
4879
  if (H.updateParentNodeMediaChildren(), H.updateParentNodeText(), // Already output />
4874
4880
  A.selfClosing.indexOf(k) !== -1 || // Escaped tag, closing tag is implied
@@ -4980,7 +4986,7 @@ FE.defaults = {
4980
4986
  "figure",
4981
4987
  "hr",
4982
4988
  "li",
4983
- "main",
4989
+ "menu",
4984
4990
  "ol",
4985
4991
  "p",
4986
4992
  "pre",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.1.85",
5
+ "version": "0.1.86",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -56,7 +56,7 @@
56
56
  "dayjs": "1.11.13",
57
57
  "lodash": "4.17.21",
58
58
  "mitt": "3.0.1",
59
- "sanitize-html": "2.14.0",
59
+ "sanitize-html": "2.15.0",
60
60
  "tslib": "2.8.1",
61
61
  "vuedraggable": "4.1.0"
62
62
  },
@@ -102,7 +102,7 @@
102
102
  "vue": "3.5.13",
103
103
  "vue-tsc": "2.2.0"
104
104
  },
105
- "packageManager": "pnpm@10.2.1",
105
+ "packageManager": "pnpm@10.7.0",
106
106
  "pnpm": {
107
107
  "peerDependencyRules": {
108
108
  "ignoreMissing": [