-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Social Link: group all variations under one block type (#19887)
* Social Link: group all variations under one block type * Social Link: Update test fixtures * Address review feedback * Fix misnamed attribute 'type' -> 'site' * Social Link: Rename attribute 'site' to 'service' * Social Link: Update description * Change attribute name to service (previously site) * Lint: Equal sign alignment * Social Link: Remove unnecessary block deprecation This PR introduces `core/social-link` as a new block type. Strictly speaking, any concerns of backwards compatibility should only deal with the migration of `core/social-link-FOO` types to this new one -- something that the parser is handling directly, populating the new `service` attribute in that process. Thus, no specific provisions are needed for the extant but obsolete `site` attribute: the attribute will be silently dropped during block validation. This can be attested by loading any content with links in the old `core/social-link-FOO` shape. Co-authored-by: Marcus Kazmierczak <[email protected]>
- Loading branch information
Showing
96 changed files
with
551 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "core/social-link", | ||
"category": "widgets", | ||
"attributes": { | ||
"url": { | ||
"type": "string" | ||
}, | ||
"service": { | ||
"type": "string" | ||
}, | ||
"label": { | ||
"type": "number" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.