Skip to content

Commit

Permalink
Release Blaze package to 0.21.8
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoca authored and matticbot committed Dec 4, 2024
1 parent 065e7cf commit bb73ade
Show file tree
Hide file tree
Showing 23 changed files with 817 additions and 398 deletions.
2 changes: 1 addition & 1 deletion .github/files/autorelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [[ ! -f composer.json ]]; then
exit 1
fi

SLUG="$(jq -r '.extra.autorelease.slug? // .extra["wp-plugin-slug"] // ( .name | sub( "^.*/"; "" ) )' composer.json)"
SLUG="$(jq -r '.extra.autorelease.slug? // .extra["wp-plugin-slug"] // .extra["beta-plugin-slug"] // ( .name | sub( "^.*/"; "" ) )' composer.json)"
if [[ -z "$SLUG" ]]; then
echo '::error::Failed to get slug from composer.json.'
exit 1
Expand Down
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
## [3.1.1] - 2024-06-14
### Changed
- Internal updates.

## [3.1.0] - 2024-06-13
### Added
- New icon: `deezer` [#37799]
- New icon: `discord` [#37799]
- New icon: `git` [#37799]
- New icon: `line` [#37799]
- New icon: `messenger` [#37799]
- New icon: `quora` [#37799]
- New icon: `snapchat` [#37799]
- New icon: `soundcloud` [#37799]
- New icon: `untappd` [#37799]
- New icon: `vk` [#37799]

### Fixed
- Build: Better error handling. [#37799]
- Build: Ensure consistent filename sort. [#37799]
- Build: Fonts folder was missing. [#37799]
- Build: React was missing example CSS file. [#37799]

## [3.0.2] - 2024-06-05
### Changed
- Updated package dependencies. [#37706]

## [3.0.1] - 2024-05-27
### Added
- Added TypeScript support. [#37528]

## [3.0.0] - 2024-05-23
### Added
- CSS file with encoded inline font is now automatically generated. [#36964]
Expand All @@ -21,61 +52,81 @@
- Example files are rewritten. [#36964]

## 2.5.9 - 2024-03-05

- New icon: `sms`

## 2.5.8 - 2023-12-20

- New icon: `bluesky`

## 2.5.7 - 2023-12-11

- Updated icon: `patreon`

## 2.5.6 - 2023-10-13

- Updated icon: `x`
- Removed unnecessary aria label attributes from Threads and X SVGs.

## 2.5.5 - 2023-09-15

- New icon: `x`

## 2.5.4 - 2023-07-10

- New icon: `threads`

## 2.5.3 - 2023-06-15

- New icon: `fediverse`
- New icon: `nextdoor`
- Updated dev dependencies and build tools.
- Updated icon font.

## 2.5.2 - 2023-02-01

- New icon: `mastadon`

## 2.5.1 - 2023-01-13

- React 18 support.

## 2.5.0 - 2022-02-01

- Added copy post url button.

## 2.4.0 - 2021-09-01

- Updated icon: `medium`
- Updated icon: `facebook`
- React 17 support.
- Update dev dependencies and build tools.

## 2.3.0 - 2021-01-27

- New icon: `medium-alt`
- New icon: `tiktok`
- New icon: `tiktok-alt`
- Updated icon: `medium`

## 2.2.0 - 2021-01-19

- New icon: `patreon`

## 2.1.2 - 2020-03-12

- Built the package with updated dependencies.

## 2.1.1 - 2020-03-10

- Build: Fixed bug where React component would render no icon at all (despite properly passed properties).

## 2.1.0 - 2018-01-31

- Build: Refactored (aligned build system with Gridicons).

[3.1.1]: https://github.com/Automattic/social-logos/compare/v3.1.0...v3.1.1
[3.1.0]: https://github.com/Automattic/social-logos/compare/v3.0.2...v3.1.0
[3.0.2]: https://github.com/Automattic/social-logos/compare/v3.0.1...v3.0.2
[3.0.1]: https://github.com/Automattic/social-logos/compare/v3.0.0...v3.0.1
[3.0.0]: https://github.com/Automattic/social-logos/compare/v2.5.9...v3.0.0
25 changes: 5 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,17 @@
# Social Logos
A repository of all the social logos used on WordPress.com.

Each logo was pulled from the official branding resource of each service. Branding guidelines were adhered to as much as possible.
Where possible, each logo was pulled from the official branding resource of each service. Branding guidelines were adhered to as much as possible. For your convenience, we've compiled a list of official links [here](./official_links.md).

Some logos include an official alternate version, if it's provided by the guideline resource. Sometimes it is desirable to have a visually consistent row of icons, all enclosed with the same shape. If the guidelines permit it, then an alternate version was created with a 18dp square or 20dp circle.

For example, the Tumblr guidelines state that it's ok to enclose the logo in any shape, so there's an alternate logo with an 18dp square.

Official guideline resources:

- Facebook: https://www.facebookbrand.com
- Twitter: https://about.twitter.com/company/brand-assets
- Instagram: https://www.instagram-brand.com
- LinkedIn: https://brand.linkedin.com
- Google+: https://developers.google.com/+/branding-guidelines and http://gplus-brand.appspot.com
- Pinterest: https://business.pinterest.com/en/brand-guidelines
- Squarespace: http://www.squarespace.com/brand-guidelines/
- reddit: https://www.reddit.com/about/alien/
- Mastodon: https://joinmastodon.org/branding
- Fediverse: https://commons.wikimedia.org/wiki/File:Fediverse_logo_proposal.svg
- Nextdoor: https://about.nextdoor.com/gb/media/
- http://findguidelin.es
- Threads: https://en.wikipedia.org/wiki/File:Threads_(app)_logo.svg
- X: https://about.twitter.com/en/who-we-are/brand-toolkit

## Using the SocialLogo component in your project:

Note that this component requires [react](https://www.npmjs.com/package/react) to be installed in your project.
Note that this component requires [React](https://www.npmjs.com/package/react) to be installed in your project.

SocialLogo renders a single social-logo svg based on an `icon` prop. It takes a size property but defaults to 24px. For greater sharpness, the icons should only be shown at either 18px, 24px, 36px or 48px.
SocialLogo renders a single social logo SVG based on an `icon` prop. It takes a size property but defaults to 24px. For greater sharpness, the icons should only be shown at either 18px, 24px, 36px or 48px.

There's a gallery with all the available icons in https://wpcalypso.wordpress.com/devdocs/design/social-logo.

Expand Down Expand Up @@ -64,3 +47,5 @@ So to summarize:
## License

Social Logos is licensed under [GNU General Public License v2 (or later)](./LICENSE.txt).

This license to use the software library does not convey any intellectual property rights to third-party trademarks that may be included in the library. The logos are included with the library solely for the user’s convenience in gathering them all in one place. Before using any trademark, please review the proper usage guidelines of its owner.
12 changes: 11 additions & 1 deletion build/font/codepoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,15 @@
"microblog": 63013,
"stackexchange": 63014,
"stackoverflow": 63015,
"tripadvisor": 63016
"tripadvisor": 63016,
"deezer": 63017,
"discord": 63018,
"git": 63019,
"line": 63020,
"messenger": 63021,
"quora": 63022,
"snapchat": 63023,
"soundcloud": 63024,
"untappd": 63025,
"vk": 63026
}
12 changes: 11 additions & 1 deletion build/font/social-logos.css

Large diffs are not rendered by default.

Binary file modified build/font/social-logos.woff2
Binary file not shown.
8 changes: 8 additions & 0 deletions build/react/example.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import './example.css';
/**
* An example React component that displays all the social logos.
*
* @returns {React.Component} The `SocialLogosExample` component.
*/
declare function SocialLogosExample(): import("react/jsx-runtime").JSX.Element;
export default SocialLogosExample;
32 changes: 32 additions & 0 deletions build/react/example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const social_logo_1 = require("./social-logo");
const social_logo_data_1 = require("./social-logo-data");
require("./example.css");
/**
* An example React component that displays all the social logos.
*
* @returns {React.Component} The `SocialLogosExample` component.
*/
function SocialLogosExample() {
const [useSmallIcons, setUseSmallIcons] = (0, react_1.useState)(false);
const [showIconNames, setShowIconNames] = (0, react_1.useState)(true);
const iconSize = useSmallIcons ? 24 : 48;
const handleClick = name => {
const code = `<SocialLogo icon="${name}" size="${iconSize}" />`;
window.prompt('Copy component code:', code);
};
const handleSmallIconsToggle = e => {
setUseSmallIcons(e.target.checked);
};
const handleIconNamesToggle = e => {
setShowIconNames(e.target.checked);
};
const allSocialLogos = social_logo_data_1.SocialLogoData.map(logo => {
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(social_logo_1.SocialLogo, { icon: logo.name, size: iconSize, onClick: handleClick.bind(this, logo.name) }), showIconNames && (0, jsx_runtime_1.jsx)("p", { children: logo.name })] }, logo.name));
});
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" })) })] })));
}
exports.default = SocialLogosExample;
74 changes: 0 additions & 74 deletions build/react/example.jsx

This file was deleted.

6 changes: 6 additions & 0 deletions build/react/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Export components.
*/
export * from './social-logo';
export { SocialLogo as default } from './social-logo';
export { SocialLogoData } from './social-logo-data';
25 changes: 25 additions & 0 deletions build/react/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SocialLogoData = exports.default = void 0;
/**
* Export components.
*/
__exportStar(require("./social-logo"), exports);
var social_logo_1 = require("./social-logo");
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return social_logo_1.SocialLogo; } });
var social_logo_data_1 = require("./social-logo-data");
Object.defineProperty(exports, "SocialLogoData", { enumerable: true, get: function () { return social_logo_data_1.SocialLogoData; } });
5 changes: 0 additions & 5 deletions build/react/index.jsx

This file was deleted.

Loading

0 comments on commit bb73ade

Please sign in to comment.