@automattic/social-previews 3.0.12 → 3.1.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/CHANGELOG.md +13 -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 +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.1.1] - 2026-03-30
|
|
9
|
+
### Changed
|
|
10
|
+
- Update package dependencies. [#47799]
|
|
11
|
+
|
|
12
|
+
## [3.1.0] - 2026-03-23
|
|
13
|
+
### Added
|
|
14
|
+
- Google Search Preview: Add optional siteIcon prop to allow passing a custom favicon URL. [#47551]
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Update package dependencies. [#47684]
|
|
18
|
+
|
|
8
19
|
## [3.0.12] - 2026-03-16
|
|
9
20
|
### Changed
|
|
10
21
|
- Update dependencies. [#47472]
|
|
@@ -144,6 +155,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
144
155
|
|
|
145
156
|
- Initial release after extracting from Calypso.
|
|
146
157
|
|
|
158
|
+
[3.1.1]: https://github.com/Automattic/social-previews/compare/v3.1.0...v3.1.1
|
|
159
|
+
[3.1.0]: https://github.com/Automattic/social-previews/compare/v3.0.12...v3.1.0
|
|
147
160
|
[3.0.12]: https://github.com/Automattic/social-previews/compare/v3.0.11...v3.0.12
|
|
148
161
|
[3.0.11]: https://github.com/Automattic/social-previews/compare/v3.0.10...v3.0.11
|
|
149
162
|
[3.0.10]: https://github.com/Automattic/social-previews/compare/v3.0.9...v3.0.10
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
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
|
),
|