Skip to content

♻️ Extract applyFillContent into a standalone function#34858

Merged
alanorozco merged 7 commits intoampproject:mainfrom
alanorozco:applyfillcontent
Jun 15, 2021
Merged

♻️ Extract applyFillContent into a standalone function#34858
alanorozco merged 7 commits intoampproject:mainfrom
alanorozco:applyfillcontent

Conversation

@alanorozco
Copy link
Copy Markdown
Member

@alanorozco alanorozco commented Jun 14, 2021

Bento components cannot rely on a full BaseElement implementation, so we intend to extract standalone helpers piece-meal.

We extract applyFillContent first since that's the only standalone method used by PreactBaseElement for now.

@amp-owners-bot
Copy link
Copy Markdown

Hey @gmajoulet, @processprocess, @t0mg! These files were changed:

extensions/amp-story-360/0.1/amp-story-360.js

Hey @jridgewell! These files were changed:

src/core/dom/layout.js

Copy link
Copy Markdown
Contributor

@rcebulko rcebulko left a comment

Choose a reason for hiding this comment

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

I think this may require a rebase or merge, but that aside, LGTM! Nice to see core filling up. /cc @samouri since this may reduce some work in #34810

Copy link
Copy Markdown
Member

@samouri samouri left a comment

Choose a reason for hiding this comment

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

Thank you for notifying me @rcebulko! This does indeed have overlap with #34810

@alanorozco alanorozco merged commit db9ee5c into ampproject:main Jun 15, 2021
@alanorozco alanorozco deleted the applyfillcontent branch June 15, 2021 17:42
westonruter added a commit to westonruter/amphtml that referenced this pull request Jun 16, 2021
…ebook-like-bento-version

* 'main' of github.com:ampproject/amphtml: (23 commits)
  `amp-story-desktop-one-panel` Update demo with usecases (ampproject#34867)
  🚮 Remove src/purifier.js rollup config (ampproject#34876)
  Validator Rollup (ampproject#34769)
  ✨ `amp-story-desktop-one-panel` Check UI type to get page dimension on tap (ampproject#34875)
  Refactor: move getRealChildNodes and getRealChildren to core (ampproject#34813)
  🏗📖 Fix some example files that do not validate (ampproject#34835)
  🏗Add `#test` and `#testing` to alias list (ampproject#34853)
  Add css files for missing components (ampproject#34861)
  Apply bulk transform to html tags (ampproject#34836)
  🐛 amp-ima-video: Fix duration label on livestreams (ampproject#34865)
  ♻️  Extract `applyFillContent` into a standalone function (ampproject#34858)
  Give script tag closing tag (ampproject#34832)
  🏗 Refinements to renovate config (ampproject#34862)
  Bento: Enable `SocialShare` for npm publishing (ampproject#34817)
  🏗 Use aliased paths in generated extensions (ampproject#34860)
  ✨ `amp-story-desktop-one-panel` Position distance="2" page below viewport (ampproject#34834)
  🏗 Set `wrapper` on generated Bento extensions (ampproject#34843)
  🧪[story-ads] Allow viewer to set progress bar segment experiment. (ampproject#34827)
  🏗 Allow extension bundles to specify their own wrapper (ampproject#34845)
  🏗🚀 Speed up validated example grouping ~45x (ampproject#34837)
  ...
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.

5 participants