Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon Kindle block #13510

Merged
merged 5 commits into from
Jan 25, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions packages/block-library/src/embed/core-embeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
embedVimeoIcon,
embedRedditIcon,
embedTumbrIcon,
embedAmazonIcon,
} from './icons';

/**
Expand Down Expand Up @@ -338,4 +339,25 @@ export const others = [
},
patterns: [ /^https?:\/\/wordpress\.tv\/.+/i ],
},
{
name: 'core-embed/amazon-kindle',
settings: {
title: 'Amazon Kindle',
icon: embedAmazonIcon,
keywords: [ __( 'ebook' ) ],
description: __( 'Embed Amazon Kindle content.' ),
Soean marked this conversation as resolved.
Show resolved Hide resolved
},
patterns: [
/^https?:\/\/([a-z0-9-]+\.)?amazon\.(com|com\.mx|com\.br|ca)\/./i,
/^https?:\/\/([a-z0-9-]+\.)?amazon\.(co\.uk|de|fr|it|es|in|nl|ru)\/./i,
/^https?:\/\/([a-z0-9-]+\.)?amazon\.(co\.jp|com\.au)\/./i,
/^https?:\/\/([a-z0-9-]+\.)?amazon\.cn\/./i,
/^https?:\/\/(www\.)?a\.co\/./i,
/^https?:\/\/(www\.)?amzn\.to\/./i,
/^https?:\/\/(www\.)?amzn\.eu\/./i,
/^https?:\/\/(www\.)?amzn\.in\/./i,
/^https?:\/\/(www\.)?amzn\.asia\/./i,
/^https?:\/\/(www\.)?z\.cn\/./i,
],
},
];
1 change: 1 addition & 0 deletions packages/block-library/src/embed/icons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.