From 5c5e6ace990b978c4f490f9f2b8bee24a1da70e7 Mon Sep 17 00:00:00 2001 From: Enrique Marroquin <5449100+Enriqe@users.noreply.github.com> Date: Wed, 29 Jan 2020 14:08:12 -0500 Subject: [PATCH] rename story-embed to story-player (#26538) --- build-system/compile/bundles.config.js | 6 +- build-system/tasks/helpers.js | 2 +- build-system/tasks/presubmit-checks.js | 2 +- .../amp-story/{embed.html => player.html} | 14 ++--- src/OWNERS | 2 +- ...manager.js => amp-story-player-manager.js} | 57 ++++++++++--------- ...amp-story-embed.js => amp-story-player.js} | 20 +++---- ...tory-embed.js => test-amp-story-player.js} | 32 +++++------ 8 files changed, 68 insertions(+), 67 deletions(-) rename examples/amp-story/{embed.html => player.html} (92%) rename src/{amp-story-embed-manager.js => amp-story-player-manager.js} (55%) rename src/{amp-story-embed.js => amp-story-player.js} (92%) rename test/unit/{test-amp-story-embed.js => test-amp-story-player.js} (68%) diff --git a/build-system/compile/bundles.config.js b/build-system/compile/bundles.config.js index 1eb94f427590..05719e57bf95 100644 --- a/build-system/compile/bundles.config.js +++ b/build-system/compile/bundles.config.js @@ -144,13 +144,13 @@ exports.jsBundles = { includePolyfills: false, }, }, - 'amp-story-embed.js': { + 'amp-story-player.js': { srcDir: './src/', - srcFilename: 'amp-story-embed.js', + srcFilename: 'amp-story-player.js', destDir: './dist', minifiedDestDir: './dist', options: { - minifiedName: 'amp-story-embed-v0.js', + minifiedName: 'amp-story-player-v0.js', includePolyfills: false, }, }, diff --git a/build-system/tasks/helpers.js b/build-system/tasks/helpers.js index df3cea12e09c..75cba87bb5b0 100644 --- a/build-system/tasks/helpers.js +++ b/build-system/tasks/helpers.js @@ -213,7 +213,7 @@ async function compileAllJs(watch, minify) { doBuildJs(jsBundles, 'recaptcha.js', {watch, minify}), doBuildJs(jsBundles, 'amp-viewer-host.max.js', {watch, minify}), doBuildJs(jsBundles, 'video-iframe-integration.js', {watch, minify}), - doBuildJs(jsBundles, 'amp-story-embed.js', {watch, minify}), + doBuildJs(jsBundles, 'amp-story-player.js', {watch, minify}), doBuildJs(jsBundles, 'amp-inabox-host.js', {watch, minify}), doBuildJs(jsBundles, 'amp-shadow.js', {watch, minify}), doBuildJs(jsBundles, 'amp-inabox.js', {watch, minify}), diff --git a/build-system/tasks/presubmit-checks.js b/build-system/tasks/presubmit-checks.js index b765a4ca67f3..eaf1ccb83179 100644 --- a/build-system/tasks/presubmit-checks.js +++ b/build-system/tasks/presubmit-checks.js @@ -359,7 +359,7 @@ const forbiddenTerms = { 'src/service/navigation.js', 'src/service/url-impl.js', 'dist.3p/current/integration.js', - 'src/amp-story-embed.js', + 'src/amp-story-player.js', ], }, '\\.sendMessage\\(': { diff --git a/examples/amp-story/embed.html b/examples/amp-story/player.html similarity index 92% rename from examples/amp-story/embed.html rename to examples/amp-story/player.html index 139266371aec..2623287619bd 100644 --- a/examples/amp-story/embed.html +++ b/examples/amp-story/player.html @@ -1,23 +1,23 @@ - Story Embed (Non-AMP) - + Story Player (Non-AMP) +