@charisol/plexo-sdk 1.1.4 → 1.1.6

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.
@@ -52,6 +52,7 @@ export declare const getDefaultStyle: (type: string) => {
52
52
  contentFontSize?: undefined;
53
53
  dividerColor?: undefined;
54
54
  contentPadding?: undefined;
55
+ minHeight?: undefined;
55
56
  } | {
56
57
  color: string;
57
58
  fontSize: string;
@@ -97,6 +98,7 @@ export declare const getDefaultStyle: (type: string) => {
97
98
  contentFontSize?: undefined;
98
99
  dividerColor?: undefined;
99
100
  contentPadding?: undefined;
101
+ minHeight?: undefined;
100
102
  } | {
101
103
  color: string;
102
104
  fontSize: string;
@@ -142,6 +144,7 @@ export declare const getDefaultStyle: (type: string) => {
142
144
  contentFontSize?: undefined;
143
145
  dividerColor?: undefined;
144
146
  contentPadding?: undefined;
147
+ minHeight?: undefined;
145
148
  } | {
146
149
  color: string;
147
150
  backgroundColor: string;
@@ -187,6 +190,7 @@ export declare const getDefaultStyle: (type: string) => {
187
190
  contentFontSize?: undefined;
188
191
  dividerColor?: undefined;
189
192
  contentPadding?: undefined;
193
+ minHeight?: undefined;
190
194
  } | {
191
195
  borderRadius: string;
192
196
  width: string;
@@ -232,6 +236,7 @@ export declare const getDefaultStyle: (type: string) => {
232
236
  contentFontSize?: undefined;
233
237
  dividerColor?: undefined;
234
238
  contentPadding?: undefined;
239
+ minHeight?: undefined;
235
240
  } | {
236
241
  backgroundColor: string;
237
242
  borderRadius: string;
@@ -277,6 +282,7 @@ export declare const getDefaultStyle: (type: string) => {
277
282
  contentFontSize?: undefined;
278
283
  dividerColor?: undefined;
279
284
  contentPadding?: undefined;
285
+ minHeight?: undefined;
280
286
  } | {
281
287
  backgroundColor: string;
282
288
  borderRadius: string;
@@ -322,6 +328,7 @@ export declare const getDefaultStyle: (type: string) => {
322
328
  contentFontSize?: undefined;
323
329
  dividerColor?: undefined;
324
330
  contentPadding?: undefined;
331
+ minHeight?: undefined;
325
332
  } | {
326
333
  color: string;
327
334
  backgroundColor: string;
@@ -367,6 +374,7 @@ export declare const getDefaultStyle: (type: string) => {
367
374
  contentFontSize?: undefined;
368
375
  dividerColor?: undefined;
369
376
  contentPadding?: undefined;
377
+ minHeight?: undefined;
370
378
  } | {
371
379
  color: string;
372
380
  fontSize: string;
@@ -412,6 +420,7 @@ export declare const getDefaultStyle: (type: string) => {
412
420
  contentFontSize?: undefined;
413
421
  dividerColor?: undefined;
414
422
  contentPadding?: undefined;
423
+ minHeight?: undefined;
415
424
  } | {
416
425
  padding: string;
417
426
  color?: undefined;
@@ -457,6 +466,7 @@ export declare const getDefaultStyle: (type: string) => {
457
466
  contentFontSize?: undefined;
458
467
  dividerColor?: undefined;
459
468
  contentPadding?: undefined;
469
+ minHeight?: undefined;
460
470
  } | {
461
471
  padding: string;
462
472
  borderWidth: string;
@@ -502,6 +512,7 @@ export declare const getDefaultStyle: (type: string) => {
502
512
  contentFontSize?: undefined;
503
513
  dividerColor?: undefined;
504
514
  contentPadding?: undefined;
515
+ minHeight?: undefined;
505
516
  } | {
506
517
  color: string;
507
518
  backgroundColor: string;
@@ -547,6 +558,7 @@ export declare const getDefaultStyle: (type: string) => {
547
558
  contentFontSize?: undefined;
548
559
  dividerColor?: undefined;
549
560
  contentPadding?: undefined;
561
+ minHeight?: undefined;
550
562
  } | {
551
563
  padding: string;
552
564
  borderRadius: string;
@@ -592,6 +604,7 @@ export declare const getDefaultStyle: (type: string) => {
592
604
  contentFontSize?: undefined;
593
605
  dividerColor?: undefined;
594
606
  contentPadding?: undefined;
607
+ minHeight?: undefined;
595
608
  } | {
596
609
  padding: string;
597
610
  textAlign: string;
@@ -637,6 +650,7 @@ export declare const getDefaultStyle: (type: string) => {
637
650
  contentFontSize?: undefined;
638
651
  dividerColor?: undefined;
639
652
  contentPadding?: undefined;
653
+ minHeight?: undefined;
640
654
  } | {
641
655
  headerBackgroundColor: string;
642
656
  headerTextColor: string;
@@ -682,6 +696,99 @@ export declare const getDefaultStyle: (type: string) => {
682
696
  buttonAlign?: undefined;
683
697
  buttonWidth?: undefined;
684
698
  cellPadding?: undefined;
699
+ minHeight?: undefined;
700
+ } | {
701
+ padding: string;
702
+ width: string;
703
+ color?: undefined;
704
+ fontSize?: undefined;
705
+ fontWeight?: undefined;
706
+ fontFamily?: undefined;
707
+ textAlign?: undefined;
708
+ lineHeight?: undefined;
709
+ backgroundColor?: undefined;
710
+ borderRadius?: undefined;
711
+ borderWidth?: undefined;
712
+ borderStyle?: undefined;
713
+ borderColor?: undefined;
714
+ boxShadow?: undefined;
715
+ paddingTop?: undefined;
716
+ paddingRight?: undefined;
717
+ paddingBottom?: undefined;
718
+ paddingLeft?: undefined;
719
+ fieldSpacing?: undefined;
720
+ buttonBackgroundColor?: undefined;
721
+ buttonTextColor?: undefined;
722
+ buttonBorderRadius?: undefined;
723
+ buttonPaddingTop?: undefined;
724
+ buttonPaddingBottom?: undefined;
725
+ buttonPaddingLeft?: undefined;
726
+ buttonPaddingRight?: undefined;
727
+ buttonFontSize?: undefined;
728
+ buttonFontWeight?: undefined;
729
+ buttonAlign?: undefined;
730
+ buttonWidth?: undefined;
731
+ cellPadding?: undefined;
732
+ headerBackgroundColor?: undefined;
733
+ headerTextColor?: undefined;
734
+ headerHoverBackgroundColor?: undefined;
735
+ headerActiveBackgroundColor?: undefined;
736
+ headerActiveTextColor?: undefined;
737
+ headerFontSize?: undefined;
738
+ headerFontWeight?: undefined;
739
+ iconColor?: undefined;
740
+ contentBackgroundColor?: undefined;
741
+ contentTextColor?: undefined;
742
+ contentFontSize?: undefined;
743
+ dividerColor?: undefined;
744
+ contentPadding?: undefined;
745
+ minHeight?: undefined;
746
+ } | {
747
+ padding: string;
748
+ width: string;
749
+ minHeight: string;
750
+ color?: undefined;
751
+ fontSize?: undefined;
752
+ fontWeight?: undefined;
753
+ fontFamily?: undefined;
754
+ textAlign?: undefined;
755
+ lineHeight?: undefined;
756
+ backgroundColor?: undefined;
757
+ borderRadius?: undefined;
758
+ borderWidth?: undefined;
759
+ borderStyle?: undefined;
760
+ borderColor?: undefined;
761
+ boxShadow?: undefined;
762
+ paddingTop?: undefined;
763
+ paddingRight?: undefined;
764
+ paddingBottom?: undefined;
765
+ paddingLeft?: undefined;
766
+ fieldSpacing?: undefined;
767
+ buttonBackgroundColor?: undefined;
768
+ buttonTextColor?: undefined;
769
+ buttonBorderRadius?: undefined;
770
+ buttonPaddingTop?: undefined;
771
+ buttonPaddingBottom?: undefined;
772
+ buttonPaddingLeft?: undefined;
773
+ buttonPaddingRight?: undefined;
774
+ buttonFontSize?: undefined;
775
+ buttonFontWeight?: undefined;
776
+ buttonAlign?: undefined;
777
+ buttonWidth?: undefined;
778
+ cellPadding?: undefined;
779
+ headerBackgroundColor?: undefined;
780
+ headerTextColor?: undefined;
781
+ headerHoverBackgroundColor?: undefined;
782
+ headerActiveBackgroundColor?: undefined;
783
+ headerActiveTextColor?: undefined;
784
+ headerFontSize?: undefined;
785
+ headerFontWeight?: undefined;
786
+ iconColor?: undefined;
787
+ contentBackgroundColor?: undefined;
788
+ contentTextColor?: undefined;
789
+ contentFontSize?: undefined;
790
+ dividerColor?: undefined;
791
+ contentPadding?: undefined;
685
792
  } | {
686
793
  color?: undefined;
687
794
  fontSize?: undefined;
@@ -727,6 +834,7 @@ export declare const getDefaultStyle: (type: string) => {
727
834
  contentFontSize?: undefined;
728
835
  dividerColor?: undefined;
729
836
  contentPadding?: undefined;
837
+ minHeight?: undefined;
730
838
  };
731
839
  export declare const normalizeTemplateWithDefaults: (data: TemplateJSON) => TemplateJSON;
732
840
  export declare const getDefaultAttributes: (type: string) => {
@@ -195,6 +195,15 @@ export interface PlexoBuilderProps {
195
195
  * ]}
196
196
  */
197
197
  mergeTags?: MergeTag[];
198
+ /**
199
+ * When true, the Content tab's palette also shows the "Blog" block group (Post Title,
200
+ * Post Content, Featured Image, Post Date, Post Author, Post Categories, Post Comments,
201
+ * Post List) — marker elements a host blog-rendering layer finds and fills with real
202
+ * post data at render time (see ElementType's blog_* variants). Hidden by default so
203
+ * ordinary landing-page/email editing never sees blocks that are meaningless there.
204
+ * @default false
205
+ */
206
+ isBlogLayout?: boolean;
198
207
  /**
199
208
  * Forces the canvas into its read-only preview state (drag-and-drop, property panels,
200
209
  * and the Save button are all unavailable) regardless of the built-in Preview/Edit
@@ -0,0 +1,17 @@
1
+ export interface SocialBrandIcon {
2
+ /** SVG path data on a 24x24 viewBox, matching the hand-rolled glyphs this replaces. */
3
+ path: string;
4
+ /** Official brand color as a `#rrggbb` hex string. */
5
+ color: string;
6
+ }
7
+ /**
8
+ * The fixed provider set the social block supports as a real icon (playground.constants.ts's
9
+ * SOCIAL_OPTIONS), each mapped to its actual brand mark and current official brand color --
10
+ * shared by icons.tsx (canvas/builder UI) and elementResolvers.ts (compiler.ts/compilerClient.ts's
11
+ * publish-time string rendering) so every render path draws the same shape, whether tinted to a
12
+ * user's custom color or locked to the provider's own branded color.
13
+ */
14
+ export declare const SOCIAL_BRAND_ICONS: Record<string, SocialBrandIcon>;
15
+ /** A generic dot, matching the existing fallback for a provider outside the fixed set above. */
16
+ export declare const FALLBACK_SOCIAL_ICON_PATH = "M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z";
17
+ export declare function getSocialBrandColor(normalizedProvider: string): string;
@@ -38,7 +38,7 @@ export interface ElementAttributes {
38
38
  }>;
39
39
  [key: string]: any;
40
40
  }
41
- export type ElementType = 'text' | 'button' | 'image' | 'spacer' | 'divider' | 'card' | 'form_container' | 'input' | 'textarea' | 'select' | 'heading' | 'paragraph' | 'carousel' | 'video' | 'social' | 'menu' | 'html' | 'table' | 'timer' | 'icon' | 'accordion';
41
+ export type ElementType = 'text' | 'button' | 'image' | 'spacer' | 'divider' | 'card' | 'form_container' | 'input' | 'textarea' | 'select' | 'heading' | 'paragraph' | 'carousel' | 'video' | 'social' | 'menu' | 'html' | 'table' | 'timer' | 'icon' | 'accordion' | 'blog_title' | 'blog_content' | 'blog_featured_image' | 'blog_date' | 'blog_author' | 'blog_categories' | 'blog_comments' | 'blog_post_list';
42
42
  export interface ElementJSON {
43
43
  id: string;
44
44
  type: ElementType;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@charisol/plexo-sdk",
3
3
  "private": false,
4
- "version": "1.1.4",
4
+ "version": "1.1.6",
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",
@@ -61,6 +61,7 @@
61
61
  "lucide-static": "^1.25.0",
62
62
  "react": "^19.2.7",
63
63
  "react-dom": "^19.2.7",
64
+ "simple-icons": "^16.28.0",
64
65
  "zod": "^4.4.3",
65
66
  "zustand": "^5.0.14"
66
67
  },