social-logos 3.1.8 → 3.1.10
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 +10 -0
- package/build/react/example.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [3.1.10] - 2024-10-25
|
|
2
|
+
### Changed
|
|
3
|
+
- Updated package dependencies. [#39893]
|
|
4
|
+
|
|
5
|
+
## [3.1.9] - 2024-10-14
|
|
6
|
+
### Fixed
|
|
7
|
+
- Add `key` in React example to make it more correct. [#39709]
|
|
8
|
+
|
|
1
9
|
## [3.1.8] - 2024-09-05
|
|
2
10
|
### Fixed
|
|
3
11
|
- Address React usage issues found by eslint in example.tsx. [#39214]
|
|
@@ -153,6 +161,8 @@
|
|
|
153
161
|
|
|
154
162
|
- Build: Refactored (aligned build system with Gridicons).
|
|
155
163
|
|
|
164
|
+
[3.1.10]: https://github.com/Automattic/social-logos/compare/v3.1.9...v3.1.10
|
|
165
|
+
[3.1.9]: https://github.com/Automattic/social-logos/compare/v3.1.8...v3.1.9
|
|
156
166
|
[3.1.8]: https://github.com/Automattic/social-logos/compare/v3.1.7...v3.1.8
|
|
157
167
|
[3.1.7]: https://github.com/Automattic/social-logos/compare/v3.1.6...v3.1.7
|
|
158
168
|
[3.1.6]: https://github.com/Automattic/social-logos/compare/v3.1.5...v3.1.6
|
package/build/react/example.js
CHANGED
|
@@ -37,7 +37,7 @@ function SocialLogosExample() {
|
|
|
37
37
|
const handleIconNamesToggle = (0, react_1.useCallback)(e => {
|
|
38
38
|
setShowIconNames(e.target.checked);
|
|
39
39
|
}, [setShowIconNames]);
|
|
40
|
-
const allSocialLogos = social_logo_data_1.SocialLogoData.map(logo => ((0, jsx_runtime_1.jsx)(SocialLogoItemExample, { name: logo.name, iconSize: iconSize, showIconNames: showIconNames })));
|
|
40
|
+
const allSocialLogos = social_logo_data_1.SocialLogoData.map(logo => ((0, jsx_runtime_1.jsx)(SocialLogoItemExample, { name: logo.name, iconSize: iconSize, showIconNames: showIconNames }, logo.name)));
|
|
41
41
|
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "social-logos-example" }, { children: [(0, jsx_runtime_1.jsx)("h1", { children: "Social Logos" }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control-group" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control" }, { children: [(0, jsx_runtime_1.jsx)("h4", { children: "Small icons" }), (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "switch" }, { children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", onChange: handleSmallIconsToggle, checked: useSmallIcons }), (0, jsx_runtime_1.jsx)("span", { className: "handle" })] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control" }, { children: [(0, jsx_runtime_1.jsx)("h4", { children: "Icon names" }), (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "switch" }, { children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", onChange: handleIconNamesToggle, checked: showIconNames }), (0, jsx_runtime_1.jsx)("span", { className: "handle" }), (0, jsx_runtime_1.jsx)("span", { className: "switch-label", "data-on": "On", "data-off": "Off" })] }))] }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "icons" }, { children: allSocialLogos })), (0, jsx_runtime_1.jsx)("p", { children: (0, jsx_runtime_1.jsx)("a", Object.assign({ href: "https://github.com/Automattic/social-logos" }, { children: "GitHub" })) })] })));
|
|
42
42
|
}
|
|
43
43
|
exports.default = SocialLogosExample;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "social-logos",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.10",
|
|
4
4
|
"description": "A repository of all the social logos used on WordPress.com.",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/social-logos/",
|
|
6
6
|
"bugs": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@types/react-dom": "18.3.0",
|
|
32
32
|
"glob": "10.4.1",
|
|
33
33
|
"svg2ttf": "^6.0.3",
|
|
34
|
-
"svgicons2svgfont": "^
|
|
34
|
+
"svgicons2svgfont": "^14.0.0",
|
|
35
35
|
"svgo": "^3.3.2",
|
|
36
36
|
"svgstore": "^3.0.1",
|
|
37
37
|
"typescript": "5.0.4",
|