@automattic/social-previews 3.0.12 → 3.1.0
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/CHANGELOG.md +8 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -124,6 +124,7 @@ var googleDescription = firstValid(
|
|
|
124
124
|
);
|
|
125
125
|
var GoogleSearchPreview = ({
|
|
126
126
|
description = "",
|
|
127
|
+
siteIcon,
|
|
127
128
|
siteTitle,
|
|
128
129
|
title = "",
|
|
129
130
|
url = ""
|
|
@@ -136,7 +137,7 @@ var GoogleSearchPreview = ({
|
|
|
136
137
|
"img",
|
|
137
138
|
{
|
|
138
139
|
className: "search-preview__icon",
|
|
139
|
-
src: `https://www.google.com/s2/favicons?sz=128&domain_url=${domain}`,
|
|
140
|
+
src: siteIcon || `https://www.google.com/s2/favicons?sz=128&domain_url=${domain}`,
|
|
140
141
|
alt: ""
|
|
141
142
|
}
|
|
142
143
|
),
|