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

✨Bento amp-wordpress-embed #2

Closed
wants to merge 35 commits into from
Closed

Conversation

ediamin
Copy link
Member

@ediamin ediamin commented Jun 17, 2021

This PR adds a bento component for amp-wordpress-embed.

  • Add amp-wordpress-embed
  • Add types
  • Add type annotations
  • Add test case
  • Update Storybook
  • prettify new amp-wordpress-embed

This PR solves the issues described in ampproject#18378

  • iframe Resizing: iframe height updates according to the height message sending by wp-embed-template.js.
  • Same-origin embeds: Embedding same origin url of a WordPress site is possible with this component.
  • Navigation: The links inside the embed are clickable and browser redirects to the related link.

Fixes ampproject#18378

Copy link
Member

@AnuragVasanwala AnuragVasanwala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems perfect! Only one parameter "npm": true need to be added to bundles.config.extensions.json.

@ediamin ediamin force-pushed the add/amp-wordpress-embed branch from aa8983b to 66c0b6e Compare June 22, 2021 11:24
AnuragVasanwala pushed a commit that referenced this pull request Jul 1, 2021
…mpproject#35023)

* Add runtime service to handle execute tasks like adding ports to the network.
- Add entry points to wrapper such as creating PortOperator and adding ports.
- Update compile script since it can perform as normal Closure compiler.

* Fix lint errors.

* Remove externs.js since the compiled code with it would keep 'goog' hence violate JSC_CANNOT_HAVE_MODULE_VAR_NAMED_GOOG.

* Construct channel with FrameService iframe and add it to the network.
- Add DeferredChannel to the network first and resolve it after the real channel is constructed.
- Ensure FrameService port is always added before any widget initialization

* Report available widgets to FrameService so that it can request widget ports to listen on.
- Add protocol buffer library to generate FrameService protocol
- Report widget by sending messages to FrameService's RespondingChannel.
- Add necessary endpoints to Closure custom API.

* Move proto library to third_party folder.
- Move entire proto folder to third_party folder
- Update whitelist and source globs for new third_party library
- Add exports file so that 'require' can be avoided in the extension

* Fix source glob error.

* Fix source glob error #2.

* Update protoc from protobug Github repo.

* Remove assistjs extension and all relevant libraries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intent to Implement: <amp-wordpress-embed> Embedding WordPress Posts
3 participants