diff --git a/packages/mux-player-react/src/themes/classic.ts b/packages/mux-player-react/src/themes/classic.ts new file mode 100644 index 000000000..e384768e1 --- /dev/null +++ b/packages/mux-player-react/src/themes/classic.ts @@ -0,0 +1,3 @@ +// @ts-ignore +import '@mux/mux-player/themes/classic'; +export default 'classic'; diff --git a/packages/mux-player-react/src/themes/daniel.ts b/packages/mux-player-react/src/themes/daniel.ts deleted file mode 100644 index c8d994d44..000000000 --- a/packages/mux-player-react/src/themes/daniel.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @ts-ignore -import '@mux/mux-player/themes/daniel'; -export default 'daniel'; diff --git a/packages/mux-player/package.json b/packages/mux-player/package.json index b3bef6cda..e26076bdc 100644 --- a/packages/mux-player/package.json +++ b/packages/mux-player/package.json @@ -47,11 +47,11 @@ "browser": "./dist/themes/minimal/index.mjs", "default": "./dist/themes/minimal/index.cjs.js" }, - "./themes/daniel": { - "import": "./dist/themes/daniel/index.mjs", - "require": "./dist/themes/daniel/index.cjs.js", - "browser": "./dist/themes/daniel/index.mjs", - "default": "./dist/themes/daniel/index.cjs.js" + "./themes/classic": { + "import": "./dist/themes/classic/index.mjs", + "require": "./dist/themes/classic/index.cjs.js", + "browser": "./dist/themes/classic/index.mjs", + "default": "./dist/themes/classic/index.cjs.js" }, "./themes/gerwig": { "import": "./dist/themes/gerwig/index.mjs", diff --git a/packages/mux-player/scripts/build-themes.mjs b/packages/mux-player/scripts/build-themes.mjs index 9635495f7..497f54285 100644 --- a/packages/mux-player/scripts/build-themes.mjs +++ b/packages/mux-player/scripts/build-themes.mjs @@ -1,7 +1,7 @@ #!/usr/bin/env node import { build } from 'esbuild'; -const themes = ['daniel', 'microvideo', 'minimal', 'gerwig']; +const themes = ['classic', 'microvideo', 'minimal', 'gerwig']; const devMode = process.argv.includes('--dev'); const shared = { diff --git a/packages/mux-player/src/index.ts b/packages/mux-player/src/index.ts index 70c242859..5fb5cafb5 100644 --- a/packages/mux-player/src/index.ts +++ b/packages/mux-player/src/index.ts @@ -29,8 +29,8 @@ import { getErrorLogs } from './errors'; import { toNumberOrUndefined, i18n, parseJwt, containsComposedNode, camelCase, kebabCase } from './utils'; import * as logger from './logger'; import type { MuxTemplateProps, ErrorEvent } from './types'; -import './themes/daniel'; -const DefaultThemeName = 'daniel'; +import './themes/classic'; +const DefaultThemeName = 'classic'; export { MediaError }; export type Tokens = { diff --git a/packages/mux-player/src/themes/daniel/daniel.html b/packages/mux-player/src/themes/classic/classic.html similarity index 99% rename from packages/mux-player/src/themes/daniel/daniel.html rename to packages/mux-player/src/themes/classic/classic.html index 123b0c605..af78ff7af 100644 --- a/packages/mux-player/src/themes/daniel/daniel.html +++ b/packages/mux-player/src/themes/classic/classic.html @@ -1,5 +1,5 @@ -