diff --git a/packages/mux-player-react/src/themes/classic.ts b/packages/mux-player-react/src/themes/classic.ts deleted file mode 100644 index e384768e1..000000000 --- a/packages/mux-player-react/src/themes/classic.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 new file mode 100644 index 000000000..c8d994d44 --- /dev/null +++ b/packages/mux-player-react/src/themes/daniel.ts @@ -0,0 +1,3 @@ +// @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 e26076bdc..b3bef6cda 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/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/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/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 497f54285..9635495f7 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 = ['classic', 'microvideo', 'minimal', 'gerwig']; +const themes = ['daniel', '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 5fb5cafb5..70c242859 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/classic'; -const DefaultThemeName = 'classic'; +import './themes/daniel'; +const DefaultThemeName = 'daniel'; export { MediaError }; export type Tokens = { diff --git a/packages/mux-player/src/themes/classic/classic.html b/packages/mux-player/src/themes/daniel/daniel.html similarity index 99% rename from packages/mux-player/src/themes/classic/classic.html rename to packages/mux-player/src/themes/daniel/daniel.html index af78ff7af..123b0c605 100644 --- a/packages/mux-player/src/themes/classic/classic.html +++ b/packages/mux-player/src/themes/daniel/daniel.html @@ -1,5 +1,5 @@ -