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

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;
@@ -8592,9 +8593,34 @@ export declare class BluepicEmbed extends EventTarget {
8592
8593
  redirect?: string | undefined;
8593
8594
  };
8594
8595
  trackLinks?: boolean | undefined;
8596
+ redactLogging?: boolean | undefined;
8595
8597
  };
8596
8598
  logo?: string | undefined;
8597
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;
8598
8624
  customStyle?: Record<string, string> | undefined;
8599
8625
  captions?: Record<string, string> | undefined;
8600
8626
  categories?: {
@@ -8612,6 +8638,24 @@ export declare class BluepicEmbed extends EventTarget {
8612
8638
  bodyTitle?: string | undefined;
8613
8639
  bodySubtitle?: string | undefined;
8614
8640
  bodyHtml?: string | undefined;
8641
+ headerTitleStyle?: {
8642
+ color?: string | undefined;
8643
+ fontWeight?: "300" | "600" | "400" | "500" | "800" | "700" | undefined;
8644
+ fontStyle?: "italic" | "normal" | undefined;
8645
+ textAlign?: "left" | "right" | "center" | undefined;
8646
+ } | undefined;
8647
+ bodyTitleStyle?: {
8648
+ color?: string | undefined;
8649
+ fontWeight?: "300" | "600" | "400" | "500" | "800" | "700" | undefined;
8650
+ fontStyle?: "italic" | "normal" | undefined;
8651
+ textAlign?: "left" | "right" | "center" | undefined;
8652
+ } | undefined;
8653
+ bodySubtitleStyle?: {
8654
+ color?: string | undefined;
8655
+ fontWeight?: "300" | "600" | "400" | "500" | "800" | "700" | undefined;
8656
+ fontStyle?: "italic" | "normal" | undefined;
8657
+ textAlign?: "left" | "right" | "center" | undefined;
8658
+ } | undefined;
8615
8659
  customPrivacy?: string | undefined;
8616
8660
  customImprint?: string | undefined;
8617
8661
  pageLayout?: "scroll" | "flex" | undefined;
@@ -8669,9 +8713,34 @@ export declare class BluepicEmbed extends EventTarget {
8669
8713
  redirect?: string | undefined;
8670
8714
  };
8671
8715
  trackLinks?: boolean | undefined;
8716
+ redactLogging?: boolean | undefined;
8672
8717
  };
8673
8718
  logo?: string | undefined;
8674
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;
8675
8744
  customStyle?: Record<string, string> | undefined;
8676
8745
  captions?: Record<string, string> | undefined;
8677
8746
  categories?: {
@@ -8689,6 +8758,24 @@ export declare class BluepicEmbed extends EventTarget {
8689
8758
  bodyTitle?: string | undefined;
8690
8759
  bodySubtitle?: string | undefined;
8691
8760
  bodyHtml?: string | undefined;
8761
+ headerTitleStyle?: {
8762
+ color?: string | undefined;
8763
+ fontWeight?: "300" | "600" | "400" | "500" | "800" | "700" | undefined;
8764
+ fontStyle?: "italic" | "normal" | undefined;
8765
+ textAlign?: "left" | "right" | "center" | undefined;
8766
+ } | undefined;
8767
+ bodyTitleStyle?: {
8768
+ color?: string | undefined;
8769
+ fontWeight?: "300" | "600" | "400" | "500" | "800" | "700" | undefined;
8770
+ fontStyle?: "italic" | "normal" | undefined;
8771
+ textAlign?: "left" | "right" | "center" | undefined;
8772
+ } | undefined;
8773
+ bodySubtitleStyle?: {
8774
+ color?: string | undefined;
8775
+ fontWeight?: "300" | "600" | "400" | "500" | "800" | "700" | undefined;
8776
+ fontStyle?: "italic" | "normal" | undefined;
8777
+ textAlign?: "left" | "right" | "center" | undefined;
8778
+ } | undefined;
8692
8779
  customPrivacy?: string | undefined;
8693
8780
  customImprint?: string | undefined;
8694
8781
  pageLayout?: "scroll" | "flex" | undefined;
@@ -8720,7 +8807,8 @@ export declare class BluepicEmbed extends EventTarget {
8720
8807
  bxCoreVersion?: string;
8721
8808
  stripeEnv?: 'dev' | 'prod';
8722
8809
  theme?: 'light' | 'dark' | 'auto';
8723
- 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;
8724
8812
  bearerToken?: string;
8725
8813
  password?: string;
8726
8814
  });