@charisol/plexo-sdk 1.1.14 → 1.1.15

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.
@@ -29,11 +29,23 @@ export interface ResolvedSocialLink {
29
29
  /**
30
30
  * Mirrors SortableElement.tsx's `elem.type === 'social'` block (per-link color/background/size
31
31
  * fall back to the element's own style, then a fixed default) -- except when the element's
32
- * `colorMode` attribute is 'branded', in which case every link's icon renders in that
33
- * provider's own official brand color on a transparent background, and any stored per-link or
34
- * element-level custom color/background is ignored rather than merely defaulted-around.
32
+ * `colorMode` attribute is 'branded' (a user's own choice, landing-page/canvas only), in which
33
+ * case every link's icon renders in that provider's own official brand color on a transparent
34
+ * background, and any stored per-link or element-level custom color/background is ignored
35
+ * rather than merely defaulted-around.
36
+ *
37
+ * `forceBrandedColor` is a second, independent way to get the branded icon color -- for an
38
+ * email-mode template, where compilerClient.ts's actual compiled output always uses the real
39
+ * brand-color PNG regardless of this attribute (Gmail supports neither inline <svg> nor any
40
+ * data:-URI image, so a custom icon color could never actually reach the inbox -- see that
41
+ * file's header comment). Passing it keeps the canvas/live-preview color in agreement with what
42
+ * will actually be sent, without the `colorMode: 'branded'` attribute's other effect (forcing a
43
+ * transparent background) -- an email badge's background is real CSS on its wrapping element,
44
+ * never baked into the image, so it stays fully customizable independent of the icon color.
35
45
  */
36
- export declare function resolveSocialLinks(elem: ElementJSON): ResolvedSocialLink[];
46
+ export declare function resolveSocialLinks(elem: ElementJSON, options?: {
47
+ forceBrandedColor?: boolean;
48
+ }): ResolvedSocialLink[];
37
49
  export interface ResolvedMenuLink {
38
50
  label: string;
39
51
  href: string;
@@ -38,5 +38,5 @@ export declare const resolveTokenValue: (value: string | undefined, tokenMapping
38
38
  /**
39
39
  * Create a swatch display for token values
40
40
  */
41
- export declare const createTokenSwatch: (token: StrataToken, className?: string) => string;
41
+ export declare const createTokenSwatch: (token: StrataToken, _className?: string) => string;
42
42
  export declare function fetchAndInitStrataTokens(projectId: string, setStrataTokens: (tokens: any[]) => void): Promise<boolean>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@charisol/plexo-sdk",
3
3
  "private": false,
4
- "version": "1.1.14",
4
+ "version": "1.1.15",
5
5
  "description": "Plexo visual email and landing page builder SDK — drag-and-drop template editor with AI integration.",
6
6
  "keywords": [
7
7
  "email-builder",