Skip to content

Commit

Permalink
♻️ Rename Vimeo to BentoVimeo (ampproject#35995)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanorozco authored and Mahir committed Sep 9, 2021
1 parent f065d4b commit f58d017
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions extensions/amp-vimeo/1.0/base-element.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {Vimeo} from './component';
import {BentoVimeo} from './component';

import {VideoBaseElement} from '../../amp-video/1.0/video-base-element';

export class BaseElement extends VideoBaseElement {}

/** @override */
BaseElement['Component'] = Vimeo;
BaseElement['Component'] = BentoVimeo;

/** @override */
BaseElement['props'] = {
Expand Down
8 changes: 4 additions & 4 deletions extensions/amp-vimeo/1.0/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function makeMethodMessage(method) {
* @return {PreactDef.Renderable}
* @template T
*/
export function VimeoWithRef(
function BentoVimeoWithRef(
{autoplay = false, doNotTrack = false, onLoad, videoid, ...rest},
ref
) {
Expand Down Expand Up @@ -112,6 +112,6 @@ export function VimeoWithRef(
);
}

const Vimeo = forwardRef(VimeoWithRef);
Vimeo.displayName = 'Vimeo'; // Make findable for tests.
export {Vimeo};
const BentoVimeo = forwardRef(BentoVimeoWithRef);
BentoVimeo.displayName = 'BentoVimeo'; // Make findable for tests.
export {BentoVimeo};
6 changes: 3 additions & 3 deletions extensions/amp-vimeo/1.0/storybook/Basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import {boolean, number, text, withKnobs} from '@storybook/addon-knobs';

import * as Preact from '#preact';

import {Vimeo} from '../component';
import {BentoVimeo} from '../component';

export default {
title: 'Vimeo',
component: Vimeo,
component: BentoVimeo,
decorators: [withKnobs],
};

Expand All @@ -17,7 +17,7 @@ export const _default = () => {
const autoplay = boolean('autoplay', true);
const doNotTrack = boolean('do-not-track', false);
return (
<Vimeo
<BentoVimeo
style={{width, height}}
autoplay={autoplay}
doNotTrack={doNotTrack}
Expand Down

0 comments on commit f58d017

Please sign in to comment.