@bluepic/embed 0.4.0-next.112 → 0.4.0-next.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.d.ts CHANGED
@@ -67,9 +67,17 @@ export { default as BluepicLogo } from './components/BluepicLogo.vue';
67
67
  export * from './util/bluepicEmbed';
68
68
  export * from './util/useTheme';
69
69
  export * from './theme';
70
+ /**
71
+ * @deprecated Legacy preset dumps (theme system v1). They only exist so campaigns without
72
+ * `config.theme` keep rendering unchanged. New themes are `ThemeInput`s resolved by `resolveTheme()`
73
+ * (see `THEME_PRESETS` / `THEME_HOUSE_PRESETS`). Do not build new features on these.
74
+ */
70
75
  export { default as BxEmbedThemeDarkmode } from './styles/darkmode.scss?raw';
76
+ /** @deprecated see BxEmbedThemeDarkmode */
71
77
  export { default as BxEmbedThemeLightmode } from './styles/lightmode.scss?raw';
78
+ /** @deprecated see BxEmbedThemeDarkmode — high contrast is `{ contrast: 'high' }` in theme v2 */
72
79
  export { default as BxEmbedThemeDarkmodeWcag } from './styles/darkmode-wcag.scss?raw';
80
+ /** @deprecated see BxEmbedThemeDarkmode — high contrast is `{ contrast: 'high' }` in theme v2 */
73
81
  export { default as BxEmbedThemeLightmodeWcag } from './styles/lightmode-wcag.scss?raw';
74
82
  export { initEmbeds } from './embed/embed';
75
83
  export { getInitials } from './util/getInitials';
@@ -2,7 +2,13 @@ import { z } from '@hono/zod-openapi';
2
2
  import { EmbedV2 } from '@bluepic/types';
3
3
  import { Ref, type MaybeRefOrGetter } from 'vue';
4
4
  import { type ResolvedTheme, type ThemeInput } from '../theme';
5
+ /**
6
+ * @deprecated Legacy engine. Parses a preset SCSS dump into a flat variable map. Kept only so
7
+ * campaigns without `config.theme` keep rendering exactly as before; new code should use
8
+ * `resolveTheme()` / `useThemeV2()` (theme system v2). Will be removed once no legacy campaigns remain.
9
+ */
5
10
  export declare function getThemeStyle(rawCSS: string): Record<string, string>;
11
+ /** @deprecated Legacy engine — see `getThemeStyle`. Use `resolveTheme({ version: 2, preset })` + `themeToCssText()` instead. */
6
12
  export declare function resolveThemeStyle(theme: 'light' | 'dark' | 'auto'): Record<string, string>;
7
13
  export type UseThemeV2Options = {
8
14
  /** Selector of the app wrapper (default: GLOBAL_APP_WRAPPER_SELECTOR). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluepic/embed",
3
- "version": "0.4.0-next.112",
3
+ "version": "0.4.0-next.113",
4
4
  "description": "Bluepic embed sdk",
5
5
  "type": "module",
6
6
  "sideEffects": false,