@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.
- package/dist/{compiler-1K7XytEa.js → compiler-TjBEKCfw.js} +1 -1
- package/dist/compiler.js +1 -1
- package/dist/compilerClient.js +1 -1
- package/dist/components/icons.d.ts +65 -66
- package/dist/{iconSvgStatic-CUYMC8Am.js → iconSvgStatic-CA1z-vnh.js} +9 -9
- package/dist/index.js +4963 -4954
- package/dist/utilities/elementResolvers.d.ts +16 -4
- package/dist/utilities/strataTokenMapping.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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'
|
|
33
|
-
* provider's own official brand color on a transparent
|
|
34
|
-
* element-level custom color/background is ignored
|
|
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
|
|
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,
|
|
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