@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
|
|
2
|
-
import { stripFontTags as
|
|
3
|
-
import { trimHrefWhitespace as
|
|
4
|
-
|
|
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 < with <
|
|
45
|
-
type: "
|
|
46
|
-
|
|
43
|
+
description: "Replace < with < to fix URL encoding",
|
|
44
|
+
type: "replace",
|
|
45
|
+
search: "<",
|
|
46
|
+
replacement: "<",
|
|
47
|
+
replaceAll: !0,
|
|
47
48
|
priority: 13
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
51
|
id: "unescape-inequality-operators-end",
|
|
51
|
-
description: "Replace > with >
|
|
52
|
-
type: "
|
|
53
|
-
|
|
52
|
+
description: "Replace > with > to fix URL encoding",
|
|
53
|
+
type: "replace",
|
|
54
|
+
search: ">",
|
|
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) =>
|
|
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 from every href value",
|
|
66
69
|
type: "custom",
|
|
67
|
-
processor: (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:
|
|
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
|
-
//
|
|
196
|
-
//
|
|
198
|
+
// SD-145051: parity with HB HtmlCleaner.removeUnsafeHtmlTags — strip <script> from
|
|
199
|
+
// compiled email. Priority 50 runs after the </> 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
|
-
|
|
221
|
+
y as defaultHtmlCompilerRules
|
|
218
222
|
};
|
package/dist/package.json.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const s = "2.
|
|
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.
|
|
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.
|
|
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;
|