social-logos 3.2.4 → 3.2.6

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [3.2.6] - 2025-07-21
2
+ ### Changed
3
+ - Internal updates.
4
+
5
+ ## [3.2.5] - 2025-07-01
6
+ ### Changed
7
+ - Internal updates.
8
+
1
9
  ## [3.2.4] - 2025-06-18
2
10
  ### Changed
3
11
  - Internal updates.
@@ -236,6 +244,8 @@
236
244
 
237
245
  - Build: Refactored (aligned build system with Gridicons).
238
246
 
247
+ [3.2.6]: https://github.com/Automattic/social-logos/compare/v3.2.5...v3.2.6
248
+ [3.2.5]: https://github.com/Automattic/social-logos/compare/v3.2.4...v3.2.5
239
249
  [3.2.4]: https://github.com/Automattic/social-logos/compare/v3.2.3...v3.2.4
240
250
  [3.2.3]: https://github.com/Automattic/social-logos/compare/v3.2.2...v3.2.3
241
251
  [3.2.2]: https://github.com/Automattic/social-logos/compare/v3.2.1...v3.2.2
@@ -5,7 +5,8 @@
5
5
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
6
6
  line-height: 1.15;
7
7
 
8
- a:link, a:visited {
8
+ a:link,
9
+ a:visited {
9
10
  color: #999;
10
11
  }
11
12
 
@@ -2,7 +2,7 @@ import '../css/example.css';
2
2
  /**
3
3
  * An example React component that displays all the social logos.
4
4
  *
5
- * @return {React.Component} The `SocialLogosExample` component.
5
+ * @return {Component} The `SocialLogosExample` component.
6
6
  */
7
7
  declare function SocialLogosExample(): import("react/jsx-runtime").JSX.Element;
8
8
  export default SocialLogosExample;
@@ -13,7 +13,7 @@ require("../css/example.css");
13
13
  * @param {string} props.name - Logo name.
14
14
  * @param {number} props.iconSize - Icon size.
15
15
  * @param {boolean} props.showIconNames - Whether to show icon names.
16
- * @return {React.Component} The `SocialLogoItemExample` component.
16
+ * @return {Component} The `SocialLogoItemExample` component.
17
17
  */
18
18
  function SocialLogoItemExample({ name, iconSize, showIconNames }) {
19
19
  const handleClick = (0, react_1.useCallback)(() => {
@@ -25,7 +25,7 @@ function SocialLogoItemExample({ name, iconSize, showIconNames }) {
25
25
  /**
26
26
  * An example React component that displays all the social logos.
27
27
  *
28
- * @return {React.Component} The `SocialLogosExample` component.
28
+ * @return {Component} The `SocialLogosExample` component.
29
29
  */
30
30
  function SocialLogosExample() {
31
31
  const [useSmallIcons, setUseSmallIcons] = (0, react_1.useState)(false);
@@ -1,6 +1,7 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import { SocialLogoData } from './social-logo-data';
3
- export type SocialLogoProps = React.SVGAttributes<SVGSVGElement> & {
3
+ import type { SVGAttributes } from 'react';
4
+ export type SocialLogoProps = SVGAttributes<SVGSVGElement> & {
4
5
  icon: (typeof SocialLogoData)[number]['name'];
5
6
  size?: number;
6
7
  };
@@ -1,37 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  var __rest = (this && this.__rest) || function (s, e) {
36
3
  var t = {};
37
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -50,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
50
17
  exports.SocialLogo = void 0;
51
18
  const jsx_runtime_1 = require("react/jsx-runtime");
52
19
  const prop_types_1 = __importDefault(require("prop-types"));
53
- const react_1 = __importStar(require("react"));
20
+ const react_1 = require("react");
54
21
  const social_logo_data_1 = require("./social-logo-data");
55
22
  class SocialLogo extends react_1.PureComponent {
56
23
  render() {
@@ -62,7 +29,7 @@ class SocialLogo extends react_1.PureComponent {
62
29
  if (!logoData) {
63
30
  return (0, jsx_runtime_1.jsx)("svg", Object.assign({ height: size, width: size }, otherProps));
64
31
  }
65
- const svg = react_1.default.cloneElement(logoData.svg, Object.assign({ className: iconClass, height: size, width: size, onClick: onClick }, otherProps));
32
+ const svg = (0, react_1.cloneElement)(logoData.svg, Object.assign({ className: iconClass, height: size, width: size, onClick: onClick }, otherProps));
66
33
  return svg;
67
34
  }
68
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "social-logos",
3
- "version": "3.2.4",
3
+ "version": "3.2.6",
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": {