@bluepic/embed 0.4.0-next.111 → 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.
@@ -1,6 +1,7 @@
1
1
  import { nextTick, Ref } from 'vue';
2
2
  import { FieldsBridge, Studio, Template, EmbedV2 } from '@bluepic/types';
3
3
  import { z } from 'zod';
4
+ import { type ThemeInput } from '../theme';
4
5
  export type PublicCampaignConfigOutput = z.infer<typeof Studio.publicCampaignConfigOutputSchema>;
5
6
  export declare class BluepicEmbed extends EventTarget {
6
7
  private element;
@@ -8596,6 +8597,30 @@ export declare class BluepicEmbed extends EventTarget {
8596
8597
  };
8597
8598
  logo?: string | undefined;
8598
8599
  title?: string | undefined;
8600
+ theme?: {
8601
+ version: 2;
8602
+ preset?: "light" | "dark" | undefined;
8603
+ surface?: string | undefined;
8604
+ primary?: string | undefined;
8605
+ contrast?: "normal" | "high" | undefined;
8606
+ radius?: "none" | "sm" | "md" | "lg" | "full" | undefined;
8607
+ font?: {
8608
+ size?: number | undefined;
8609
+ } | undefined;
8610
+ fonts?: {
8611
+ ui?: {
8612
+ name: string;
8613
+ src?: string | undefined;
8614
+ } | undefined;
8615
+ heading?: {
8616
+ name: string;
8617
+ src?: string | undefined;
8618
+ } | undefined;
8619
+ } | undefined;
8620
+ tint?: number | undefined;
8621
+ overrides?: Record<string, string> | undefined;
8622
+ customStyle?: Record<string, string> | undefined;
8623
+ } | undefined;
8599
8624
  customStyle?: Record<string, string> | undefined;
8600
8625
  captions?: Record<string, string> | undefined;
8601
8626
  categories?: {
@@ -8692,6 +8717,30 @@ export declare class BluepicEmbed extends EventTarget {
8692
8717
  };
8693
8718
  logo?: string | undefined;
8694
8719
  title?: string | undefined;
8720
+ theme?: {
8721
+ version: 2;
8722
+ preset?: "light" | "dark" | undefined;
8723
+ surface?: string | undefined;
8724
+ primary?: string | undefined;
8725
+ contrast?: "normal" | "high" | undefined;
8726
+ radius?: "none" | "sm" | "md" | "lg" | "full" | undefined;
8727
+ font?: {
8728
+ size?: number | undefined;
8729
+ } | undefined;
8730
+ fonts?: {
8731
+ ui?: {
8732
+ name: string;
8733
+ src?: string | undefined;
8734
+ } | undefined;
8735
+ heading?: {
8736
+ name: string;
8737
+ src?: string | undefined;
8738
+ } | undefined;
8739
+ } | undefined;
8740
+ tint?: number | undefined;
8741
+ overrides?: Record<string, string> | undefined;
8742
+ customStyle?: Record<string, string> | undefined;
8743
+ } | undefined;
8695
8744
  customStyle?: Record<string, string> | undefined;
8696
8745
  captions?: Record<string, string> | undefined;
8697
8746
  categories?: {
@@ -8758,7 +8807,8 @@ export declare class BluepicEmbed extends EventTarget {
8758
8807
  bxCoreVersion?: string;
8759
8808
  stripeEnv?: 'dev' | 'prod';
8760
8809
  theme?: 'light' | 'dark' | 'auto';
8761
- customThemeVars?: Partial<z.infer<typeof EmbedV2.customStyleSchema>>;
8810
+ /** Legacy variable overrides, or a theme-v2 `ThemeInput` (`{ version: 2, surface, primary, … }`). */
8811
+ customThemeVars?: Partial<z.infer<typeof EmbedV2.customStyleSchema>> | ThemeInput;
8762
8812
  bearerToken?: string;
8763
8813
  password?: string;
8764
8814
  });