Rename default banner to themed banner

Rename src/default/ to src/themed-banner/, update class names
(ProboDefaultBanner → ProboThemedBanner), style constant
(DEFAULT_STYLES → THEMED_STYLES), registration function
(registerDefault → registerThemedBanner), and adjust build
entrypoints and package.json exports accordingly.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-16 17:31:14 +04:00
parent 2e066c82ad
commit 1e306e5076
6 changed files with 494 additions and 6 deletions

View File

@@ -15,7 +15,6 @@
import * as esbuild from "esbuild";
const shared = {
entryPoints: ["src/index.ts"],
bundle: true,
target: "es2020",
};
@@ -23,14 +22,22 @@ const shared = {
await Promise.all([
esbuild.build({
...shared,
entryPoints: ["src/index.ts"],
outfile: "dist/cookie-banner.mjs",
format: "esm",
}),
esbuild.build({
...shared,
entryPoints: ["src/themed-banner/index.ts"],
outfile: "dist/cookie-banner-themed.mjs",
format: "esm",
}),
esbuild.build({
...shared,
entryPoints: ["src/themed-banner/iife.ts"],
outfile: "dist/cookie-banner.iife.js",
format: "iife",
globalName: "ProboCookieBanner",
minify: true,
}),
esbuild.build({
...shared,
outfile: "dist/cookie-banner.mjs",
format: "esm",
}),
]);