@useinsider/guido 3.31.0-beta.f5f4baf → 3.31.0-beta.ffda898

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.
@@ -1,8 +1,7 @@
1
- import { PENDING_MARKER_PATTERN as l } from "../../utils/dynamicContentPendingMarker.js";
2
- import { stripFontTags as d } from "../../utils/stripFontTags.js";
3
- import { trimHrefWhitespace as m } from "../../utils/trimHrefWhitespace.js";
4
- import { unescapeInsideTemplateTags as c } from "../../utils/unescapeInsideTemplateTags.js";
5
- const h = [
1
+ import { PENDING_MARKER_PATTERN as c } from "../../utils/dynamicContentPendingMarker.js";
2
+ import { stripFontTags as l } from "../../utils/stripFontTags.js";
3
+ import { trimHrefWhitespace as d } from "../../utils/trimHrefWhitespace.js";
4
+ const y = [
6
5
  {
7
6
  id: "fix-url-encoding-start",
8
7
  description: "Replace {%22 with %7B%22 to fix URL encoding",
@@ -41,30 +40,34 @@ const h = [
41
40
  },
42
41
  {
43
42
  id: "unescape-inequality-operators-start",
44
- description: "Replace &lt; with < inside template tags",
45
- type: "custom",
46
- processor: (e) => c(e, "&lt;", "<"),
43
+ description: "Replace &lt; with < to fix URL encoding",
44
+ type: "replace",
45
+ search: "&lt;",
46
+ replacement: "<",
47
+ replaceAll: !0,
47
48
  priority: 13
48
49
  },
49
50
  {
50
51
  id: "unescape-inequality-operators-end",
51
- description: "Replace &gt; with > inside template tags",
52
- type: "custom",
53
- processor: (e) => c(e, "&gt;", ">"),
52
+ description: "Replace &gt; with > to fix URL encoding",
53
+ type: "replace",
54
+ search: "&gt;",
55
+ replacement: ">",
56
+ replaceAll: !0,
54
57
  priority: 14
55
58
  },
56
59
  {
57
60
  id: "strip-font-tags",
58
61
  description: 'Unwrap browser-translate-injected <font dir="auto"> tags, keeping inner content; other <font> elements are left intact.',
59
62
  type: "custom",
60
- processor: (e) => d(e),
63
+ processor: (e) => l(e),
61
64
  priority: 15
62
65
  },
63
66
  {
64
67
  id: "trim-href-whitespace",
65
68
  description: "Trim leading/trailing whitespace and &nbsp; from every href value",
66
69
  type: "custom",
67
- processor: (e) => m(e),
70
+ processor: (e) => d(e),
68
71
  priority: 16
69
72
  },
70
73
  {
@@ -185,15 +188,16 @@ const h = [
185
188
  id: "remove-dc-pending-marker",
186
189
  description: "Strip the editor-only pending dynamic-content choice marker from compiled output",
187
190
  type: "regex",
188
- pattern: l,
191
+ pattern: c,
189
192
  replacement: "",
190
193
  flags: "g",
191
194
  priority: 46
192
195
  },
193
196
  {
194
197
  id: "remove-script-tags",
195
- // Parity with HB HtmlCleaner.removeUnsafeHtmlTags; runs after the template-tag unescape rules (13/14).
196
- // Do NOT add to AMP_SAFE_RULE_IDS (AMP needs <script>).
198
+ // SD-145051: parity with HB HtmlCleaner.removeUnsafeHtmlTags — strip <script> from
199
+ // compiled email. Priority 50 runs after the &lt;/&gt; unescape rules (13/14) so
200
+ // post-unescape tags are still caught. Do NOT add to AMP_SAFE_RULE_IDS (AMP needs <script>).
197
201
  description: "Strip <script>…<\/script> tags from compiled email",
198
202
  type: "regex",
199
203
  pattern: "<script[^>]*>.*?<\/script>",
@@ -214,5 +218,5 @@ const h = [
214
218
  }
215
219
  ];
216
220
  export {
217
- h as defaultHtmlCompilerRules
221
+ y as defaultHtmlCompilerRules
218
222
  };
@@ -1,4 +1,4 @@
1
- const o = "3.31.0-beta.f5f4baf", s = { stripo: { version: "2.87.0" } }, t = {
1
+ const o = "3.31.0-beta.ffda898", s = { stripo: { version: "2.88.0" } }, t = {
2
2
  version: o,
3
3
  guido: s
4
4
  };
@@ -1,4 +1,4 @@
1
- const s = "2.87.0", n = ["UIEditor.js", "zone.js", "styles-BWH3PMR4.css", "polyfills-FF3RLU5F.js", "main-SK54R2GT.js", "chunk-5JSR3XPV.js", "chunk-5RGJWP3O.js", "chunk-62K3AMOD.js", "chunk-6NY4OPPP.js", "chunk-6PETVV3Y.js", "chunk-BAJICSZF.js", "chunk-IR2UT3BR.js", "chunk-L4VYPQQP.js", "chunk-MJ64ER7E.js", "chunk-OOEQMFVO.js", "chunk-QIB2IKZH.js", "chunk-QRSO4EBZ.js", "chunk-WBL5ORCQ.js", "chunk-ZVLBXMBO.js", "assets/css/uiEditor.css", "assets/i18n/en.json", "assets/icons/ui-editor-icons.sprite.svg", "assets/icons/ui-editor-icons.map.json", "assets/imageeditor/scripts.min.js", "assets/imageeditor/assets/icons/merged.svg"], c = {
1
+ const s = "2.88.0", n = ["UIEditor.js", "zone.js", "styles-OBCVVGMC.css", "polyfills-FF3RLU5F.js", "main-KU6GYTPU.js", "chunk-3E3SGL6J.js", "chunk-3FAA5M5K.js", "chunk-4GVJ5NXR.js", "chunk-62K3AMOD.js", "chunk-7Y62K4UH.js", "chunk-ACJBD7LV.js", "chunk-AIUZ2TN7.js", "chunk-CFA64M3E.js", "chunk-E6PB2DKU.js", "chunk-EUD4XKLV.js", "chunk-FDZMBVN4.js", "chunk-ICKG3URH.js", "chunk-IJASO7CL.js", "chunk-INKWGIMS.js", "chunk-JLUJE3CD.js", "chunk-KGM5LPVL.js", "chunk-NAQTDEMJ.js", "chunk-OLZ4NN2R.js", "chunk-PZQXYAJG.js", "chunk-QTRXJFGV.js", "chunk-TOX4QPS4.js", "chunk-W2I6Q5QO.js", "chunk-YV4WE5LT.js", "chunk-ZDLMNQZB.js", "chunk-ZRCZN7CB.js", "assets/css/uiEditor.css", "assets/i18n/en.json", "assets/icons/ui-editor-icons.sprite.svg", "assets/icons/ui-editor-icons.map.json", "assets/imageeditor/scripts.min.js", "assets/imageeditor/assets/icons/merged.svg"], c = {
2
2
  version: s,
3
3
  files: n
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.31.0-beta.f5f4baf",
3
+ "version": "3.31.0-beta.ffda898",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
@@ -136,7 +136,7 @@
136
136
  },
137
137
  "guido": {
138
138
  "stripo": {
139
- "version": "2.87.0"
139
+ "version": "2.88.0"
140
140
  }
141
141
  }
142
142
  }
@@ -1 +0,0 @@
1
- export declare function unescapeInsideTemplateTags(html: string, entity: string, character: string): string;
@@ -1,8 +0,0 @@
1
- import { CONDITION_TAG_REGEX as c, DYNAMIC_CONTENT_TAG_REGEX as n } from "../enums/html-validator.js";
2
- function t(a, p, r) {
3
- const e = (T) => T.replaceAll(p, r);
4
- return a.replace(c, e).replace(n, e);
5
- }
6
- export {
7
- t as unescapeInsideTemplateTags
8
- };