From 521b23cab6c1dead66449377909babc444b0c53b Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Mon, 29 Jul 2024 17:29:53 +0200 Subject: [PATCH] web: Move the players to internal/player --- .../core/src/{ => internal/player}/ruffle-embed.ts | 6 +++--- .../core/src/{ => internal/player}/ruffle-object.ts | 8 ++++---- .../core/src/{ => internal/player}/ruffle-player.tsx | 8 ++++---- web/packages/core/src/polyfills.ts | 4 ++-- web/packages/core/src/source-api.ts | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) rename web/packages/core/src/{ => internal/player}/ruffle-embed.ts (97%) rename web/packages/core/src/{ => internal/player}/ruffle-object.ts (98%) rename web/packages/core/src/{ => internal/player}/ruffle-player.tsx (95%) diff --git a/web/packages/core/src/ruffle-embed.ts b/web/packages/core/src/internal/player/ruffle-embed.ts similarity index 97% rename from web/packages/core/src/ruffle-embed.ts rename to web/packages/core/src/internal/player/ruffle-embed.ts index ce1d45f0dee2e..73927ef55190b 100644 --- a/web/packages/core/src/ruffle-embed.ts +++ b/web/packages/core/src/internal/player/ruffle-embed.ts @@ -4,9 +4,9 @@ import { isFallbackElement, isYoutubeFlashSource, workaroundYoutubeMixedContent, -} from "./internal/player/inner"; -import { registerElement } from "./internal/register-element"; -import { isSwf } from "./swf-utils"; +} from "./inner"; +import { registerElement } from "../register-element"; +import { isSwf } from "../../swf-utils"; /** * A polyfill html element. diff --git a/web/packages/core/src/ruffle-object.ts b/web/packages/core/src/internal/player/ruffle-object.ts similarity index 98% rename from web/packages/core/src/ruffle-object.ts rename to web/packages/core/src/internal/player/ruffle-object.ts index 7f5eec0d6317f..59d513df3da5f 100644 --- a/web/packages/core/src/ruffle-object.ts +++ b/web/packages/core/src/internal/player/ruffle-object.ts @@ -4,11 +4,11 @@ import { isFallbackElement, isYoutubeFlashSource, workaroundYoutubeMixedContent, -} from "./internal/player/inner"; -import { FLASH_ACTIVEX_CLASSID } from "./flash-identifiers"; -import { registerElement } from "./internal/register-element"; +} from "./inner"; +import { FLASH_ACTIVEX_CLASSID } from "../../flash-identifiers"; +import { registerElement } from "../register-element"; import { RuffleEmbed } from "./ruffle-embed"; -import { isSwf } from "./swf-utils"; +import { isSwf } from "../../swf-utils"; /** * Find and return the first value in obj with the given key. diff --git a/web/packages/core/src/ruffle-player.tsx b/web/packages/core/src/internal/player/ruffle-player.tsx similarity index 95% rename from web/packages/core/src/ruffle-player.tsx rename to web/packages/core/src/internal/player/ruffle-player.tsx index a8af007bb6412..81138482f1a60 100644 --- a/web/packages/core/src/ruffle-player.tsx +++ b/web/packages/core/src/internal/player/ruffle-player.tsx @@ -1,7 +1,7 @@ -import type { DataLoadOptions, URLLoadOptions } from "./load-options"; -import type { MovieMetadata } from "./movie-metadata"; -import { InnerPlayer, ReadyState } from "./internal/player/inner"; -import { Player } from "./public/player"; +import type { DataLoadOptions, URLLoadOptions } from "../../load-options"; +import type { MovieMetadata } from "../../movie-metadata"; +import { InnerPlayer, ReadyState } from "./inner"; +import { Player } from "../../public/player"; /** * The ruffle player element that should be inserted onto the page. diff --git a/web/packages/core/src/polyfills.ts b/web/packages/core/src/polyfills.ts index ac478b9aaf3c7..14f5824f40496 100644 --- a/web/packages/core/src/polyfills.ts +++ b/web/packages/core/src/polyfills.ts @@ -1,5 +1,5 @@ -import { RuffleObject } from "./ruffle-object"; -import { RuffleEmbed } from "./ruffle-embed"; +import { RuffleObject } from "./internal/player/ruffle-object"; +import { RuffleEmbed } from "./internal/player/ruffle-embed"; import { installPlugin, FLASH_PLUGIN } from "./plugin-polyfill"; import { publicPath } from "./public-path"; import type { DataLoadOptions, URLLoadOptions } from "./load-options"; diff --git a/web/packages/core/src/source-api.ts b/web/packages/core/src/source-api.ts index cbecf2ab924aa..014c4dbb5eedf 100644 --- a/web/packages/core/src/source-api.ts +++ b/web/packages/core/src/source-api.ts @@ -1,6 +1,6 @@ import { pluginPolyfill, polyfill } from "./polyfills"; import { registerElement } from "./internal/register-element"; -import { RufflePlayer } from "./ruffle-player"; +import { RufflePlayer } from "./internal/player/ruffle-player"; import { buildInfo } from "./build-info"; import { InstallationOptions } from "./install"; import { Player } from "./public/player";