@publier/shell 4.5.0 → 4.5.1
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/package.json
CHANGED
|
@@ -27,6 +27,9 @@ if (navProp !== undefined) {
|
|
|
27
27
|
? navConfig.defaultVariant
|
|
28
28
|
: (JSON.parse(matched) as string);
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
const emailProtectionStart = '<!--email_off-->';
|
|
32
|
+
const emailProtectionEnd = '<!--/email_off-->';
|
|
30
33
|
const storageKey = announcement?.storageKey ?? 'publier-announcement';
|
|
31
34
|
|
|
32
35
|
const [head, bodyOpen, bodyClose] = JSON.parse(shellRenderBaseLayout(JSON.stringify({
|
|
@@ -51,6 +54,8 @@ const [head, bodyOpen, bodyClose] = JSON.parse(shellRenderBaseLayout(JSON.string
|
|
|
51
54
|
</head>
|
|
52
55
|
<body class={className}>
|
|
53
56
|
|
|
57
|
+
<Fragment set:html={emailProtectionStart} />
|
|
58
|
+
|
|
54
59
|
<slot name="skip" />
|
|
55
60
|
<Fragment set:html={bodyOpen} />
|
|
56
61
|
{navVariant !== false && (
|
|
@@ -62,5 +67,6 @@ const [head, bodyOpen, bodyClose] = JSON.parse(shellRenderBaseLayout(JSON.string
|
|
|
62
67
|
)}
|
|
63
68
|
<slot />
|
|
64
69
|
<Fragment set:html={bodyClose} />
|
|
70
|
+
<Fragment set:html={emailProtectionEnd} />
|
|
65
71
|
</body>
|
|
66
72
|
</html>
|